@p697/clawket 0.2.4 → 0.3.0

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- (function(_0x395fc5,_0x49b62c){const _0x14613d={_0x50fc33:0x1d7,_0x2b3a68:0x111,_0xfd9bfe:0x4d9,_0xf0eb0c:0x4e2,_0x2ea5a9:0x5ec,_0x1fb512:0x10e,_0x47ae8d:0x112,_0x3f90fb:0x47b,_0x5979e4:0x64d,_0x26cdbf:0x3b2,_0x3e5dae:0x244,_0x2c0721:0x153},_0x4a5bec=_0x395fc5();function _0x36ccdb(_0x5affe2,_0x486bc6){return _0x3b9b(_0x486bc6-0x2a9,_0x5affe2);}function _0x2c733f(_0x55fac2,_0x285135){return _0x3b9b(_0x285135- -0x325,_0x55fac2);}while(!![]){try{const _0x2d492a=-parseInt(_0x2c733f(_0x14613d._0x50fc33,_0x14613d._0x2b3a68))/0x1*(-parseInt(_0x36ccdb(0x43f,_0x14613d._0xfd9bfe))/0x2)+parseInt(_0x36ccdb(0x59a,_0x14613d._0xf0eb0c))/0x3*(-parseInt(_0x36ccdb(0x58c,_0x14613d._0x2ea5a9))/0x4)+-parseInt(_0x2c733f(-_0x14613d._0x1fb512,-0x5a))/0x5+-parseInt(_0x2c733f(0x20a,_0x14613d._0x47ae8d))/0x6*(-parseInt(_0x36ccdb(_0x14613d._0x3f90fb,_0x14613d._0x5979e4))/0x7)+-parseInt(_0x36ccdb(_0x14613d._0x26cdbf,0x529))/0x8+-parseInt(_0x2c733f(-_0x14613d._0x3e5dae,-0x1bb))/0x9+parseInt(_0x2c733f(-0x28d,-_0x14613d._0x2c0721))/0xa;if(_0x2d492a===_0x49b62c)break;else _0x4a5bec['push'](_0x4a5bec['shift']());}catch(_0x275c88){_0x4a5bec['push'](_0x4a5bec['shift']());}}}(_0x5e63,0x3880b));const _0x188f57=(function(){let _0x49cccc=!![];return function(_0x6f03e0,_0x3f4d58){const _0x58feaf={_0x584f21:0x59,_0x10c216:0xd9},_0x1ddeb2=_0x49cccc?function(){function _0x479cca(_0x589ad1,_0x15cff8){return _0x3b9b(_0x15cff8- -0x1a6,_0x589ad1);}if(_0x3f4d58){const _0x361f7c=_0x3f4d58[_0x479cca(_0x58feaf._0x584f21,-_0x58feaf._0x10c216)](_0x6f03e0,arguments);return _0x3f4d58=null,_0x361f7c;}}:function(){};return _0x49cccc=![],_0x1ddeb2;};}()),_0xd919fd=_0x188f57(this,function(){const _0x580cac={_0xf63a8a:0x295,_0x465b22:0x4f3,_0x1c96fa:0x3eb,_0x2aa655:0x42a,_0x3fa2da:0x31b,_0x1065a2:0x58f};function _0x206acd(_0x4174ad,_0x1afe76){return _0x3b9b(_0x1afe76-0x16e,_0x4174ad);}function _0x48ce99(_0x4562,_0x2a1669){return _0x3b9b(_0x2a1669-0x1c0,_0x4562);}return _0xd919fd[_0x206acd(0x577,0x452)]()[_0x48ce99(0x271,_0x580cac._0xf63a8a)]('(((.+)+)'+_0x48ce99(_0x580cac._0x465b22,0x5e1))[_0x48ce99(_0x580cac._0x1c96fa,0x4a4)]()[_0x206acd(0x437,0x5a6)+_0x206acd(_0x580cac._0x2aa655,_0x580cac._0x3fa2da)](_0xd919fd)[_0x48ce99(0x38e,_0x580cac._0xf63a8a)]('(((.+)+)'+_0x206acd(0x630,_0x580cac._0x1065a2));});_0xd919fd();import _0x2f1765 from'qrcode-terminal';import{readFileSync as _0x36a53f}from'fs';import{Socket}from'net';import{homedir as _0xec9ee5}from'os';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(),_0x33cded(0x58b,0x57d)),CONFIG_PATH=join(CONFIG_DIR,_0x33cded(0x580,0x5ee)+'li.json');function getPairingConfigPath(){return CONFIG_PATH;}function readPairingConfig(){const _0x54e1a2={_0x81796b:0x4c5,_0x13757d:0x366,_0x29f4d5:0x586,_0x37f0ca:0x2e4,_0x58b409:0x769,_0x4ff80a:0x5a7,_0x370294:0x60a,_0x3a7dc1:0x317,_0x281c6b:0x633,_0x4ce05a:0x3c0,_0x592c01:0x2e4,_0x36917:0x487,_0x5b00dd:0x42e,_0x4409d7:0x3c6,_0x1f0ec0:0x4a9,_0x2282ed:0x58f,_0x216e65:0x42f,_0x3cbe04:0x332},_0x1957f2={_0x1fc94c:0x2d};function _0xe8ecd9(_0x3b45c2,_0x3b0cdb){return _0x33cded(_0x3b0cdb,_0x3b45c2- -_0x1957f2._0x1fc94c);}function _0x3567a9(_0x2ad973,_0x3aedbc){return _0x33cded(_0x2ad973,_0x3aedbc- -0x10d);}const _0x5abee9={'PTmPO':function(_0x213fed,_0x238304,_0x4ca763){return _0x213fed(_0x238304,_0x4ca763);}};if(!existsSync(CONFIG_PATH))return null;try{const _0x48f0af=JSON[_0xe8ecd9(0x4fd,_0x54e1a2._0x81796b)](_0x5abee9[_0x3567a9(_0x54e1a2._0x13757d,0x2a6)](readFileSync,CONFIG_PATH,_0xe8ecd9(0x511,0x3e0)));if(!_0x48f0af['serverUr'+'l']||!_0x48f0af['gatewayI'+'d']||!_0x48f0af[_0xe8ecd9(_0x54e1a2._0x29f4d5,0x74b)+_0x3567a9(0x463,_0x54e1a2._0x37f0ca)]||!_0x48f0af[_0x3567a9(_0x54e1a2._0x58b409,_0x54e1a2._0x4ff80a)])return null;const _0x2e00b2={'serverUrl':_0x48f0af[_0x3567a9(0x6af,_0x54e1a2._0x370294)+'l'],'gatewayId':_0x48f0af[_0x3567a9(_0x54e1a2._0x3a7dc1,0x321)+'d'],'relaySecret':_0x48f0af[_0xe8ecd9(0x586,_0x54e1a2._0x281c6b)+_0x3567a9(_0x54e1a2._0x4ce05a,_0x54e1a2._0x592c01)],'relayUrl':_0x48f0af['relayUrl'],'instanceId':_0x48f0af[_0x3567a9(0x349,_0x54e1a2._0x36917)+'Id']?.['trim']()||createInstanceId(),'displayName':_0x48f0af[_0xe8ecd9(0x40f,0x47d)+'ame']??null,'createdAt':_0x48f0af[_0xe8ecd9(0x4be,_0x54e1a2._0x5b00dd)+'t']??new Date()[_0x3567a9(_0x54e1a2._0x4409d7,0x4d9)+'ing'](),'updatedAt':_0x48f0af[_0xe8ecd9(_0x54e1a2._0x1f0ec0,0x30b)+'t']??new Date()[_0x3567a9(_0x54e1a2._0x2282ed,0x4d9)+_0xe8ecd9(_0x54e1a2._0x216e65,_0x54e1a2._0x3cbe04)]()};return _0x48f0af['instance'+'Id']!==_0x2e00b2['instance'+'Id']&&writePairingConfig(_0x2e00b2),_0x2e00b2;}catch{return null;}}function writePairingConfig(_0x152286){const _0x40c827={_0x3c1e45:0x5b5,_0x29e3eb:0x4d5,_0x3b9bea:0x3ee,_0x324828:0x480},_0xe08f26={_0x39b829:0x1bd},_0x37f567={_0x16514e:0x151},_0x6819d0={'yWwKP':function(_0x269120,_0x219fa9,_0x17748c){return _0x269120(_0x219fa9,_0x17748c);},'aHMhK':function(_0x1c6fb3,_0x4f7d1e,_0xa568f9,_0x45dda1){return _0x1c6fb3(_0x4f7d1e,_0xa568f9,_0x45dda1);}},_0xfa4d1f={};function _0x2f9fb8(_0x5191f5,_0xc1fe7f){return _0x5338aa(_0x5191f5-_0x37f567._0x16514e,_0xc1fe7f);}function _0x1237cb(_0x266570,_0x14c38c){return _0x5338aa(_0x266570-_0xe08f26._0x39b829,_0x14c38c);}_0xfa4d1f[_0x2f9fb8(0x30f,0x174)+'e']=!![],_0x6819d0[_0x2f9fb8(_0x40c827._0x3c1e45,_0x40c827._0x29e3eb)](mkdirSync,CONFIG_DIR,_0xfa4d1f),_0x6819d0['aHMhK'](writeFileSync,CONFIG_PATH,JSON['stringif'+'y'](_0x152286,null,0x2)+'\x0a',_0x2f9fb8(_0x40c827._0x3b9bea,_0x40c827._0x324828));}function deletePairingConfig(){const _0x59adf2={_0xff6e39:0x20b},_0x26a16e={_0x13add9:0x287},_0x3a0684={'MkoNZ':function(_0x245e95,_0x384a68,_0x43038f){return _0x245e95(_0x384a68,_0x43038f);}};if(!existsSync(CONFIG_PATH))return;const _0x5e04b5={};function _0x4bb903(_0x2234c5,_0x32d276){return _0x33cded(_0x32d276,_0x2234c5- -_0x26a16e._0x13add9);}_0x5e04b5[_0x4bb903(_0x59adf2._0xff6e39,0xd3)]=!![],_0x3a0684['MkoNZ'](rmSync,CONFIG_PATH,_0x5e04b5);}function getDefaultBridgeDisplayName(){const _0x12a536={_0x5b82fd:0x709,_0x1e3777:0x500,_0x58672d:0x734,_0x16b41d:0x392},_0x5414ec={_0x1c25cc:0x5f},_0xac50a1={'pfZae':function(_0x1de775){return _0x1de775();}};function _0x43c671(_0x5b2c47,_0x1be2c5){return _0x33cded(_0x5b2c47,_0x1be2c5- -0x1aa);}const _0x498d19=_0xac50a1['pfZae'](readOpenClawDefaultAgentName);if(_0x498d19)return _0x498d19;function _0x3acf53(_0x360c28,_0x3e1ee6){return _0x33cded(_0x360c28,_0x3e1ee6-_0x5414ec._0x1c25cc);}try{const _0x32c061=userInfo()['username'][_0x3acf53(0x775,_0x12a536._0x5b82fd)]();if(_0x32c061)return _0x32c061;}catch{}const _0x5c4328=(process.env.LOGNAME??process.env.USER??process.env.USERNAME??'')[_0x43c671(0x3bc,_0x12a536._0x1e3777)]();if(_0x5c4328)return _0x5c4328;return _0xac50a1[_0x43c671(_0x12a536._0x58672d,0x564)](hostname)['trim']()||_0x43c671(0x353,_0x12a536._0x16b41d)+'Bridge';}function pickOpenClawDefaultAgentName(_0x9b07f9){const _0x4e9148={_0x443754:0x1ff,_0x885266:0x22c,_0x4eb1c8:0x49d,_0x14a671:0x3ba,_0x227bf2:0x84,_0x5d1885:0x22,_0x39b732:0x84},_0xf7467b={'oQvvN':function(_0x210159,_0x297e6a){return _0x210159(_0x297e6a);}};if(!_0x9b07f9||typeof _0x9b07f9!==_0x17bad7(0x36f,_0x4e9148._0x443754))return null;const _0x8c86d1=_0x9b07f9[_0x31598b(0x4ff,0x3c6)];function _0x17bad7(_0xdd4498,_0x2f6e10){return _0x5338aa(_0x2f6e10- -0xa8,_0xdd4498);}const _0x6cc90e=Array[_0x31598b(0xe4,_0x4e9148._0x885266)](_0x8c86d1?.['list'])?_0x8c86d1[_0x17bad7(_0x4e9148._0x4eb1c8,_0x4e9148._0x14a671)]:[];function _0x31598b(_0x4c169b,_0x3e6aef){return _0x5338aa(_0x3e6aef-0x9b,_0x4c169b);}const _0x250637=_0x6cc90e[_0x17bad7(0x8d,_0x4e9148._0x227bf2)](_0x2f020b=>isDefaultAgent(_0x2f020b))??_0x6cc90e[_0x17bad7(_0x4e9148._0x5d1885,_0x4e9148._0x39b732)](_0x12ae45=>hasAgentId(_0x12ae45,'main'))??_0x6cc90e[0x0];return _0xf7467b['oQvvN'](readAgentName,_0x250637);}function createInstanceId(){const _0x179097={_0x36622e:0x358},_0x5b2476=sanitizeId(hostname()||'host');function _0x226992(_0x5a987c,_0x5c3a39){return _0x33cded(_0x5a987c,_0x5c3a39- -0x3a1);}return'inst-'+_0x5b2476+'-'+randomUUID()[_0x226992(_0x179097._0x36622e,0x181)](0x0,0xa);}function sanitizeId(_0x2764f0){const _0x11ee18={_0x12b06b:0x10d,_0x4947ac:0x11b,_0x4b6560:0x15f,_0x57edd8:0x181,_0x4816af:0x320,_0xcf2bc5:0x269};function _0x3c7613(_0x829f1e,_0x2a3704){return _0x33cded(_0x2a3704,_0x829f1e- -0x58f);}function _0x4cbc5c(_0xe194e7,_0x5b73ff){return _0x33cded(_0x5b73ff,_0xe194e7- -0x366);}const _0x4d2410={};_0x4d2410[_0x3c7613(-0x18d,0x51)]=_0x3c7613(_0x11ee18._0x12b06b,0x2e4);const _0x3cb52f=_0x4d2410;return _0x2764f0[_0x3c7613(_0x11ee18._0x4947ac,_0x11ee18._0x4b6560)]()[_0x3c7613(0x116,_0x11ee18._0x57edd8)+_0x4cbc5c(0x2e5,_0x11ee18._0x4816af)]()['replace'](/[^a-z0-9._-]+/g,'-')[_0x4cbc5c(_0x11ee18._0xcf2bc5,0x442)](/^-+|-+$/g,'')||_0x3cb52f['GFZTD'];}function readOpenClawDefaultAgentName(){const _0x7293a6={_0x38fc8c:0x69f,_0x27a9fe:0x16,_0x487e10:0xba},_0x1214fe={'QiLKy':function(_0x4b726a,_0x1c965,_0x35cf91){return _0x4b726a(_0x1c965,_0x35cf91);}},_0x23afb5=resolveOpenClawConfigPath();if(!_0x23afb5||!existsSync(_0x23afb5))return null;function _0x3dcd63(_0x4c06a9,_0x46c15f){return _0x33cded(_0x46c15f,_0x4c06a9- -0x4d3);}function _0x53f5ea(_0x4379b5,_0x2cce44){return _0x33cded(_0x4379b5,_0x2cce44-0x30);}try{const _0x35571f=JSON[_0x53f5ea(_0x7293a6._0x38fc8c,0x55a)](_0x1214fe[_0x3dcd63(_0x7293a6._0x27a9fe,-_0x7293a6._0x487e10)](readFileSync,_0x23afb5,'utf8'));return pickOpenClawDefaultAgentName(_0x35571f);}catch{return null;}}function resolveOpenClawConfigPath(){const _0xc91dce={_0x1f296d:0xbe,_0x8d5ba6:0x217,_0x44b513:0x1ec,_0x2a4671:0x17,_0x9add06:0x166,_0x1b9170:0x45e,_0xbd8991:0x366},_0x248523={_0x3bfe0c:0x295},_0xaef4af={_0x34f8e3:0x35a},_0x34875e=new Set(),_0x2a4106=[homedir(),'/root']['map'](_0x459b3d=>_0x459b3d[_0x35cacf(0x4d7,0x415)]())['filter'](Boolean)[_0xa53605(-0x226,-_0xc91dce._0x1f296d)](_0xcd89a4=>{const _0x376164={_0x564ce1:0x168};if(_0x34875e[_0x1f2879(_0xaef4af._0x34f8e3,0x24d)](_0xcd89a4))return![];function _0xa6209d(_0x159d9c,_0x587804){return _0x35cacf(_0x159d9c,_0x587804- -_0x376164._0x564ce1);}_0x34875e[_0xa6209d(0x406,0x27e)](_0xcd89a4);function _0x1f2879(_0x4d6d39,_0x23c62e){return _0x35cacf(_0x4d6d39,_0x23c62e- -0x3a);}return!![];});function _0x35cacf(_0x35df5b,_0x2faa31){return _0x33cded(_0x35df5b,_0x2faa31- -_0x248523._0x3bfe0c);}for(const _0x99e792 of _0x2a4106){const _0x5ae1ae=join(_0x99e792,_0xa53605(-_0xc91dce._0x8d5ba6,-_0xc91dce._0x44b513)+'w',_0xa53605(-_0xc91dce._0x2a4671,-0xa4)+_0x35cacf(-0x5,_0xc91dce._0x9add06));if(existsSync(_0x5ae1ae))return _0x5ae1ae;}function _0xa53605(_0x4e6a40,_0x2afb0a){return _0x33cded(_0x4e6a40,_0x2afb0a- -0x69f);}return _0x2a4106[0x0]?join(_0x2a4106[0x0],'.opencla'+'w',_0x35cacf(_0xc91dce._0x1b9170,_0xc91dce._0xbd8991)+_0x35cacf(0x2f8,0x166)):null;}function isDefaultAgent(_0x3385b8){const _0x4800a3={_0x16970f:0x215,_0x1675c7:0x1ff,_0x351f8a:0x319};function _0x400aad(_0x1ece40,_0x5ef1b9){return _0x33cded(_0x5ef1b9,_0x1ece40- -0x333);}function _0x5e77bd(_0x14b039,_0x3fa46f){return _0x33cded(_0x14b039,_0x3fa46f- -0x2db);}return Boolean(_0x3385b8&&typeof _0x3385b8===_0x400aad(_0x4800a3._0x16970f,_0x4800a3._0x1675c7)&&_0x3385b8[_0x400aad(_0x4800a3._0x351f8a,0x41b)]===!![]);}function hasAgentId(_0x20c552,_0x596ecb){const _0x23d321={_0x4e86e0:0x1a1,_0x2f1393:0x1a4,_0x615712:0x1a4,_0x12b7c4:0xec},_0x160f06={_0x210253:0x16b};function _0x5b7d84(_0x12f4be,_0xbd5bdb){return _0x5338aa(_0xbd5bdb- -0x31d,_0x12f4be);}const _0x51f241={};function _0x3f1207(_0x54e250,_0x68b04a){return _0x5338aa(_0x54e250-_0x160f06._0x210253,_0x68b04a);}_0x51f241[_0x5b7d84(-_0x23d321._0x4e86e0,-_0x23d321._0x2f1393)]=function(_0x54a7e1,_0x521846){return _0x54a7e1===_0x521846;};const _0x49794f=_0x51f241;return Boolean(_0x20c552&&typeof _0x20c552===_0x5b7d84(-0x16,-0x76)&&typeof _0x20c552['id']==='string'&&_0x49794f[_0x5b7d84(-0xcc,-_0x23d321._0x615712)](_0x20c552['id'][_0x5b7d84(-0x5e,_0x23d321._0x12b7c4)](),_0x596ecb));}function readAgentName(_0x1b1481){const _0x995237={_0x427de5:0x3b5,_0x3da1ee:0x499,_0x1058ae:0x53d,_0x2602cb:0x49a,_0x181648:0x566,_0x27511a:0x6d,_0x646fa9:0x14e,_0x56ff04:0x12f,_0x2c9779:0x566,_0x5f1a53:0x437,_0x175638:0x517};if(!_0x1b1481||typeof _0x1b1481!==_0x495a30(0x2ad,_0x995237._0x427de5))return null;function _0x3d9aa9(_0x5f09a1,_0x384bc2){return _0x5338aa(_0x5f09a1- -0x2da,_0x384bc2);}const _0x337e7a=_0x1b1481,_0x4aa5af=typeof _0x337e7a[_0x495a30(_0x995237._0x3da1ee,_0x995237._0x1058ae)]?.[_0x495a30(_0x995237._0x2602cb,_0x995237._0x181648)]===_0x3d9aa9(-_0x995237._0x27511a,-0x172)?_0x337e7a[_0x3d9aa9(0x155,_0x995237._0x646fa9)]['name'][_0x3d9aa9(_0x995237._0x56ff04,0x14a)]():'';if(_0x4aa5af)return _0x4aa5af;const _0x56ece2=typeof _0x337e7a[_0x495a30(0x6d2,_0x995237._0x2c9779)]==='string'?_0x337e7a['name'][_0x495a30(_0x995237._0x5f1a53,_0x995237._0x175638)]():'';function _0x495a30(_0x27c3e9,_0x38e2cc){return _0x5338aa(_0x38e2cc-0x10e,_0x27c3e9);}return _0x56ece2||null;}function buildPairingQrPayload(_0x1e4d27){const _0x31b9a2={_0x5221ca:0xab,_0x237881:0x229,_0x52a861:0x103,_0x2771b2:0x45,_0x4dc6af:0x9,_0x337ac2:0x2a4,_0x42afb5:0x37,_0x184b53:0xb2,_0xacb924:0x5e6,_0x1385bf:0x58b,_0x513269:0x50f,_0x595e99:0x415,_0x4e4927:0x329,_0x29d3b1:0x120,_0x27f5a2:0x6d},_0x781576={};_0x781576['v']=0x2,_0x781576['k']='cp',_0x781576['s']=_0x1e4d27[_0x48e507(_0x31b9a2._0x5221ca,-0x4)],_0x781576['g']=_0x1e4d27['gatewayI'+'d'],_0x781576['a']=_0x1e4d27['accessCo'+'de'];const _0x157207=_0x781576;function _0x5575b0(_0x24edc5,_0x386020){return _0x5338aa(_0x386020-0x182,_0x24edc5);}_0x1e4d27[_0x48e507(-_0x31b9a2._0x237881,-0x35d)+_0x48e507(-0x2a4,-_0x31b9a2._0x52a861)]?.[_0x48e507(_0x31b9a2._0x2771b2,-_0x31b9a2._0x4dc6af)]()&&(_0x157207['n']=_0x1e4d27['displayN'+_0x48e507(-_0x31b9a2._0x337ac2,-0x167)]['trim']());_0x1e4d27[_0x48e507(-_0x31b9a2._0x42afb5,-_0x31b9a2._0x184b53)]?.[_0x5575b0(_0x31b9a2._0xacb924,_0x31b9a2._0x1385bf)]()&&(_0x157207['t']=_0x1e4d27[_0x5575b0(0x647,_0x31b9a2._0x513269)][_0x5575b0(_0x31b9a2._0x595e99,_0x31b9a2._0x1385bf)]());function _0x48e507(_0xd5483b,_0x1de059){return _0x5338aa(_0xd5483b- -0x3c4,_0x1de059);}return _0x1e4d27[_0x5575b0(0x491,0x2bb)]?.['trim']()&&(_0x157207['p']=_0x1e4d27[_0x5575b0(_0x31b9a2._0x4e4927,0x2bb)]['trim']()),JSON[_0x48e507(-_0x31b9a2._0x29d3b1,-_0x31b9a2._0x27f5a2)+'y'](_0x157207);}async function pairGateway(_0x17e921){const _0x5e7f76={_0x4dd251:0x2eb,_0x51aae4:0x295,_0x563e32:0x3d,_0x2e10dd:0x17a,_0x35683b:0x237,_0x2cb0a2:0x3c4,_0x68bf53:0x30b,_0xd0bf4:0x1cb,_0x4d8413:0x5d4,_0x48a132:0x354,_0x4f15b0:0x4c0,_0x31d5be:0xe,_0x4aa479:0x19a,_0x37d6c1:0x142,_0x2e8307:0x2c1,_0x406b4b:0x16a,_0xa45793:0x13,_0x1baa66:0x2ad,_0x57d801:0x382,_0x5469fb:0x2a2,_0x3bd567:0x3d9,_0x17a2f1:0x3b0,_0x52a4e8:0x297,_0x52008c:0x1fe,_0x3101d0:0x171,_0x902bbe:0x240,_0x4adb5a:0x204,_0x192fb9:0x11a,_0x5e1ad3:0x34,_0x3eaea8:0x36d,_0x1bbb6f:0x51f,_0x11c8f5:0x3de,_0x5943a3:0x56d,_0x3154de:0x3bf,_0x4c2626:0x508,_0x1f4023:0x492,_0x220574:0x436,_0x5c69b1:0x538,_0x5c194b:0x461,_0x2c89ee:0x388,_0x44c92e:0x3c7,_0x1a1f13:0x4be,_0x43710d:0x165,_0x59ea8:0x253,_0x5619db:0x381,_0x4a33dc:0x34c,_0x180ad3:0x11b,_0x11a155:0x374,_0xf17ed5:0x145,_0x4afbda:0x45e,_0x4634a5:0x342,_0x32fb7b:0x18e,_0x4bc5cc:0x278,_0x68ed1e:0x113,_0x56c517:0x431,_0x1890a1:0x153,_0x5b9f05:0x4ad,_0x469184:0x4dd,_0xd39a15:0x247,_0x57b14a:0x38f,_0x5b78ef:0x40d,_0x3599a5:0x45d,_0x4dd4ce:0x2e6,_0x38ad63:0x306,_0x26965a:0x23e,_0x554a12:0xcd,_0x2e4ab6:0x1a9,_0xf66617:0x2fc,_0x528d4b:0x214,_0x399667:0x373,_0xddb564:0x513,_0x4f81db:0x12d,_0x5689fb:0x16a,_0x328986:0x3d9,_0x18a798:0x585},_0x1d472b={_0x5e3e0b:0xd},_0x5ddf97={'Sxboc':function(_0x122ec4,_0x439ab9){return _0x122ec4(_0x439ab9);},'aBnfa':_0x3a34e8(_0x5e7f76._0x4dd251,_0x5e7f76._0x51aae4)+'existing','rWxgK':_0x3a34e8(_0x5e7f76._0x563e32,_0x5e7f76._0x2e10dd)+_0x3a34e8(0x4ed,0x506)},_0x52c186=_0x5ddf97[_0x3a34e8(_0x5e7f76._0x35683b,_0x5e7f76._0x2cb0a2)](normalizeHttpBase,_0x17e921[_0x47f108(0x469,_0x5e7f76._0x68bf53)+'l']),_0x19108f=readPairingConfig(),_0x491f33=assessPairingCompatibility(_0x19108f,_0x52c186);if(_0x491f33===_0x5ddf97[_0x3a34e8(0x36e,_0x5e7f76._0xd0bf4)]&&_0x19108f){const _0x43cf4a={};return _0x43cf4a[_0x3a34e8(_0x5e7f76._0x4d8413,0x4c0)+'l']=_0x19108f[_0x3a34e8(_0x5e7f76._0x48a132,_0x5e7f76._0x4f15b0)+'l'],_0x43cf4a['gatewayI'+'d']=_0x19108f[_0x3a34e8(-_0x5e7f76._0x31d5be,0x1d7)+'d'],_0x43cf4a['relaySec'+_0x3a34e8(0xac,_0x5e7f76._0x4aa479)]=_0x19108f['relaySec'+'ret'],_0x43cf4a[_0x3a34e8(_0x5e7f76._0x37d6c1,0x1e5)+_0x3a34e8(_0x5e7f76._0x2e8307,_0x5e7f76._0x406b4b)]=_0x17e921[_0x47f108(0x18e,-_0x5e7f76._0xa45793)+_0x3a34e8(_0x5e7f76._0x1baa66,_0x5e7f76._0x406b4b)],_0x43cf4a['gatewayT'+_0x47f108(_0x5e7f76._0x57d801,0x292)]=_0x17e921['gatewayT'+_0x3a34e8(_0x5e7f76._0x5469fb,_0x5e7f76._0x3bd567)],_0x43cf4a[_0x3a34e8(_0x5e7f76._0x17a2f1,_0x5e7f76._0x52a4e8)+_0x3a34e8(_0x5e7f76._0x52008c,_0x5e7f76._0x3101d0)]=_0x17e921[_0x47f108(_0x5e7f76._0x902bbe,_0x5e7f76._0x4adb5a)+_0x47f108(_0x5e7f76._0x192fb9,-_0x5e7f76._0x5e1ad3)],_0x5ddf97[_0x47f108(_0x5e7f76._0x3eaea8,_0x5e7f76._0x1bbb6f)](refreshAccessCode,_0x43cf4a);}if(_0x491f33==='server-m'+_0x47f108(_0x5e7f76._0x11c8f5,_0x5e7f76._0x5943a3))throw new Error(_0x3a34e8(0x314,_0x5e7f76._0x3154de)+_0x3a34e8(0x63e,_0x5e7f76._0x4c2626)+_0x47f108(0x390,_0x5e7f76._0x1f4023)+'aired\x20wi'+_0x3a34e8(_0x5e7f76._0x220574,0x275)+_0x19108f?.[_0x47f108(0x469,_0x5e7f76._0x5c69b1)+'l']+(_0x3a34e8(0x32b,_0x5e7f76._0x5c194b)+'lawket\x20r'+_0x47f108(0x2cb,0x446)+_0x47f108(0x37c,_0x5e7f76._0x2c89ee)+_0x3a34e8(_0x5e7f76._0x44c92e,_0x5e7f76._0x1a1f13)+_0x3a34e8(_0x5e7f76._0x43710d,_0x5e7f76._0x59ea8)+'erent\x20se'+_0x47f108(_0x5e7f76._0x5619db,0x390)));const _0xf2f7fc={};_0xf2f7fc[_0x47f108(0x3b5,0x3a4)+_0x3a34e8(0x3df,0x254)]=_0x5ddf97[_0x47f108(0x25b,_0x5e7f76._0x4a33dc)],_0xf2f7fc[_0x3a34e8(_0x5e7f76._0x180ad3,0x243)]=_0x5ddf97[_0x3a34e8(_0x5e7f76._0x11a155,0x2b2)];function _0x3a34e8(_0x960e73,_0x259a77){return _0x5338aa(_0x259a77-0x4a,_0x960e73);}const _0x44875c=await fetch(_0x52c186+(_0x47f108(_0x5e7f76._0xf17ed5,0x2a2)+_0x3a34e8(0x311,_0x5e7f76._0x4afbda)+'r'),{'method':_0x3a34e8(0x27d,0x27d),'headers':_0xf2f7fc,'body':JSON[_0x47f108(0x297,_0x5e7f76._0x4634a5)+'y']({'displayName':_0x17e921[_0x47f108(_0x5e7f76._0x32fb7b,_0x5e7f76._0x4bc5cc)+_0x47f108(_0x5e7f76._0x68ed1e,0x33)]?.[_0x3a34e8(0x30c,0x453)]()||null})});if(!_0x44875c['ok'])throw new Error(_0x47f108(_0x5e7f76._0x56c517,0x53a)+_0x3a34e8(_0x5e7f76._0x1890a1,0x1ad)+_0x47f108(_0x5e7f76._0x5b9f05,_0x5e7f76._0x469184)+_0x44875c[_0x3a34e8(0x35f,0x409)]+'):\x20'+await _0x44875c[_0x47f108(_0x5e7f76._0xd39a15,0x372)]());function _0x47f108(_0x5a190a,_0x56b8d3){return _0x5338aa(_0x5a190a- -_0x1d472b._0x5e3e0b,_0x56b8d3);}const _0x239b62=await _0x44875c[_0x3a34e8(0x199,0x283)](),_0x3b2a35=new Date()[_0x3a34e8(0x234,_0x5e7f76._0x57b14a)+_0x47f108(0x1ae,0x109)](),_0x296eb1={'serverUrl':_0x52c186,'gatewayId':_0x239b62[_0x3a34e8(0x326,0x1d7)+'d'],'relaySecret':_0x239b62[_0x3a34e8(0x1ba,0x35c)+'ret'],'relayUrl':_0x239b62[_0x3a34e8(_0x5e7f76._0x5b78ef,_0x5e7f76._0x3599a5)],'instanceId':_0x19108f?.[_0x47f108(_0x5e7f76._0x4dd4ce,0x445)+'Id']??_0x47f108(_0x5e7f76._0x38ad63,_0x5e7f76._0x26965a)+_0x239b62[_0x3a34e8(0x234,0x1d7)+'d'][_0x47f108(0x274,_0x5e7f76._0x554a12)](-0xa),'displayName':_0x239b62['displayN'+'ame'],'createdAt':_0x3b2a35,'updatedAt':_0x3b2a35};return writePairingConfig(_0x296eb1),{'config':_0x296eb1,'accessCode':_0x239b62['accessCo'+'de'],'accessCodeExpiresAt':_0x239b62[_0x47f108(_0x5e7f76._0x2e4ab6,0x21d)+_0x3a34e8(_0x5e7f76._0xf66617,_0x5e7f76._0x528d4b)+_0x47f108(_0x5e7f76._0x399667,0x1ef)],'action':_0x3a34e8(0x57a,_0x5e7f76._0xddb564)+'ed','qrPayload':_0x5ddf97[_0x3a34e8(0x2e5,_0x5e7f76._0x2cb0a2)](buildPairingQrPayload,{'server':_0x52c186,'gatewayId':_0x239b62[_0x47f108(0x180,_0x5e7f76._0x4f81db)+'d'],'accessCode':_0x239b62['accessCo'+'de'],'displayName':_0x239b62[_0x3a34e8(0x342,0x1e5)+_0x3a34e8(0x294,_0x5e7f76._0x5689fb)],'token':_0x17e921['gatewayT'+_0x3a34e8(0x4be,_0x5e7f76._0x328986)]?.[_0x47f108(0x3fc,_0x5e7f76._0x18a798)]()||null,'password':_0x17e921[_0x3a34e8(0x3fb,0x297)+_0x47f108(0x11a,0x2cb)]?.['trim']()||null})};}async function refreshAccessCode(_0x35ac0e){const _0x253628={_0x271710:0x19,_0x468f47:0x10d,_0xe38684:0x115,_0x4f3b82:0x6f,_0x521ad7:0x92,_0x36b6e9:0x105,_0x33dafa:0x273,_0x595f4a:0x1e4,_0xb86747:0x362,_0x13f123:0x221,_0x25d172:0xad,_0x579daf:0x5f,_0x1e8c88:0x2ad,_0x4ad6ff:0x21c,_0x30b9de:0x21f,_0x9cada7:0x1af,_0x26f732:0x251,_0x4628bf:0x4d,_0x1abd2b:0x197,_0x259096:0x91,_0x2ad8af:0x11d,_0x9c406c:0x34a,_0x3b2806:0x314,_0x235db6:0xd5,_0xc7f74a:0xa2,_0x1c8d9e:0x42,_0x3526c7:0x7e,_0x4cc3f4:0x392,_0x387d04:0x28,_0x79c371:0x456,_0x12deaa:0x1b6,_0x322f71:0x103,_0x1e2e7f:0x1bb,_0x226899:0x133,_0x3b337e:0xf,_0x37798a:0x1e4,_0x1a34ca:0x42b,_0x2e2f75:0x366,_0x15770b:0x4a0,_0x5cc0ea:0x5f7,_0x4083da:0x135,_0x25a759:0x98,_0x331a82:0x35e,_0x186562:0x34f,_0x1b4049:0xdd},_0x37b39c={_0x33bd9b:0x111},_0x11cb7b={'RgCrq':function(_0xbedbed){return _0xbedbed();},'BEaJf':_0x1dd641(-_0x253628._0x271710,-_0x253628._0x468f47)+_0x1dd641(-0x12e,-0x145)+_0x1f332f(0x41b,0x2f8)+_0x1dd641(0x107,-0x73)+_0x1dd641(0x28,_0x253628._0xe38684)+'.','wkhLD':'POST'},_0x12f01f=_0x11cb7b[_0x1dd641(0x53,_0x253628._0x4f3b82)](readPairingConfig),_0x3d4b14=normalizeHttpBase(_0x35ac0e?.[_0x1dd641(0x2f,0x105)+'l']??_0x12f01f?.[_0x1dd641(_0x253628._0x521ad7,_0x253628._0x36b6e9)+'l']??''),_0x3575f1=_0x35ac0e?.[_0x1dd641(-_0x253628._0x33dafa,-_0x253628._0x595f4a)+'d']??_0x12f01f?.[_0x1dd641(-0x259,-0x1e4)+'d']??'',_0x2420ca=_0x35ac0e?.['relaySec'+_0x1dd641(-_0x253628._0xb86747,-_0x253628._0x13f123)]??_0x12f01f?.[_0x1dd641(-_0x253628._0x25d172,-_0x253628._0x579daf)+_0x1dd641(-0xd4,-0x221)]??'';if(!_0x3d4b14||!_0x3575f1||!_0x2420ca)throw new Error(_0x11cb7b['BEaJf']);const _0x343953={};_0x343953[_0x1dd641(0x209,0x51)+_0x1dd641(-0x330,-0x167)]='applicat'+_0x1f332f(0x5cd,0x4e8);function _0x1f332f(_0x4dd210,_0x318ad8){return _0x5338aa(_0x4dd210-_0x37b39c._0x33bd9b,_0x318ad8);}_0x343953[_0x1f332f(0x30a,_0x253628._0x1e8c88)]=_0x1dd641(-_0x253628._0x4ad6ff,-0x241)+_0x1f332f(0x5cd,0x4cf);const _0x3ce5f6=await fetch(_0x3d4b14+(_0x1dd641(-0x133,-_0x253628._0x30b9de)+'/access-'+'code'),{'method':_0x11cb7b['wkhLD'],'headers':_0x343953,'body':JSON[_0x1f332f(0x3b5,0x35c)+'y']({'gatewayId':_0x3575f1,'relaySecret':_0x2420ca,'displayName':_0x35ac0e?.['displayN'+_0x1dd641(-_0x253628._0x9cada7,-_0x253628._0x26f732)]?.[_0x1f332f(0x51a,0x478)]()||void 0x0})});if(!_0x3ce5f6['ok'])throw new Error(_0x1dd641(-_0x253628._0x4628bf,0x4a)+_0x1dd641(-0x277,-0x139)+_0x1dd641(-_0x253628._0x1abd2b,-_0x253628._0x259096)+_0x1dd641(-0x17c,-0x4e)+_0x3ce5f6[_0x1f332f(0x4d0,0x312)]+'):\x20'+await _0x3ce5f6[_0x1dd641(-0x6b,-_0x253628._0x2ad8af)]());function _0x1dd641(_0x529a12,_0x544d7e){return _0x5338aa(_0x544d7e- -0x371,_0x529a12);}const _0x3f7130=await _0x3ce5f6[_0x1f332f(_0x253628._0x9c406c,_0x253628._0x3b2806)](),_0xd4cc40={'serverUrl':_0x3d4b14,'gatewayId':_0x3f7130['gatewayI'+'d'],'relaySecret':_0x2420ca,'relayUrl':_0x3f7130[_0x1dd641(_0x253628._0x235db6,_0x253628._0xc7f74a)],'instanceId':_0x12f01f?.[_0x1dd641(-_0x253628._0x1c8d9e,-_0x253628._0x3526c7)+'Id']??'inst-'+_0x3f7130[_0x1dd641(-0x2e8,-_0x253628._0x595f4a)+'d'][_0x1f332f(_0x253628._0x4cc3f4,0x4a0)](-0xa),'displayName':_0x3f7130[_0x1dd641(-_0x253628._0x387d04,-0x1d6)+_0x1dd641(-0x1b2,-0x251)],'createdAt':_0x12f01f?.['createdA'+'t']??new Date()[_0x1f332f(0x456,0x313)+_0x1f332f(0x2cc,0xfe)](),'updatedAt':new Date()[_0x1f332f(_0x253628._0x79c371,0x599)+_0x1dd641(-0x14d,-_0x253628._0x12deaa)]()};return writePairingConfig(_0xd4cc40),{'config':_0xd4cc40,'accessCode':_0x3f7130[_0x1dd641(-_0x253628._0x322f71,-_0x253628._0x1e2e7f)+'de'],'accessCodeExpiresAt':_0x3f7130[_0x1dd641(-0x2f3,-_0x253628._0x1e2e7f)+_0x1f332f(0x2db,0x3b0)+_0x1dd641(-_0x253628._0x226899,_0x253628._0x3b337e)],'action':_0x1f332f(0x574,0x657)+'d','qrPayload':buildPairingQrPayload({'server':_0x3d4b14,'gatewayId':_0x3f7130[_0x1dd641(-0x2b1,-_0x253628._0x37798a)+'d'],'accessCode':_0x3f7130[_0x1f332f(0x2c7,0x3df)+'de'],'displayName':_0x3f7130['displayN'+'ame'],'token':_0x35ac0e?.[_0x1f332f(_0x253628._0x1a34ca,_0x253628._0x2e2f75)+_0x1f332f(_0x253628._0x15770b,_0x253628._0x5cc0ea)]?.[_0x1dd641(_0x253628._0x4083da,_0x253628._0x25a759)]()||null,'password':_0x35ac0e?.[_0x1f332f(_0x253628._0x331a82,0x48f)+_0x1f332f(0x238,_0x253628._0x186562)]?.[_0x1dd641(-_0x253628._0x1b4049,0x98)]()||null})};}function normalizeHttpBase(_0x3eb083){const _0x5c3893={_0x4e2a83:0x18a,_0x28074f:0x223,_0x25bd3f:0x315,_0x3a3762:0x223,_0x590a51:0x394,_0x252cd0:0xde,_0x4c2c9f:0x90,_0x2d060b:0x24b,_0x538bc2:0x1a0,_0x2f4c76:0xeb,_0x426e0f:0x169,_0x1564a1:0x303,_0x396227:0x1cb,_0xbefd5:0xb,_0x516fda:0x3e,_0x31bc94:0x3f6,_0x190e0f:0x2ea,_0x1dd794:0x151,_0x45dbd1:0x3d1,_0x2f3a33:0x24d,_0x37a933:0x3e9},_0x464c16={_0x4a3347:0xe1},_0x291100=_0x3eb083[_0x446c71(_0x5c3893._0x4e2a83,0x1c6)]();function _0x446c71(_0x5ce0a3,_0x5c1c66){return _0x5338aa(_0x5c1c66- -0x243,_0x5ce0a3);}if(!_0x291100)return'';if(_0x291100[_0x561d19(_0x5c3893._0x28074f,_0x5c3893._0x25bd3f)+'th']('http://')||_0x291100[_0x561d19(_0x5c3893._0x3a3762,0x263)+'th']('https://'))return _0x291100[_0x561d19(0x24d,_0x5c3893._0x590a51)](/\/+$/,'');function _0x561d19(_0x394a3f,_0x28b286){return _0x5338aa(_0x394a3f- -_0x464c16._0x4a3347,_0x28b286);}if(_0x291100[_0x446c71(0x45,0xc1)+'th'](_0x561d19(_0x5c3893._0x252cd0,-_0x5c3893._0x4c2c9f)))return(_0x446c71(0x409,_0x5c3893._0x2d060b)+_0x291100[_0x561d19(_0x5c3893._0x538bc2,0x1ba)](_0x561d19(_0x5c3893._0x252cd0,0x12d)[_0x446c71(0x338,0x1f3)]))[_0x446c71(-0xee,_0x5c3893._0x2f4c76)](/\/+$/,'');if(_0x291100[_0x561d19(_0x5c3893._0x3a3762,_0x5c3893._0x426e0f)+'th'](_0x561d19(0x316,0x2ab)))return(_0x561d19(_0x5c3893._0x1564a1,_0x5c3893._0x396227)+_0x291100[_0x446c71(_0x5c3893._0xbefd5,_0x5c3893._0x516fda)](_0x561d19(0x316,_0x5c3893._0x31bc94)[_0x561d19(0x355,_0x5c3893._0x190e0f)]))[_0x561d19(0x24d,_0x5c3893._0x1dd794)](/\/+$/,'');return(_0x561d19(0x303,_0x5c3893._0x45dbd1)+_0x291100)[_0x561d19(_0x5c3893._0x2f3a33,_0x5c3893._0x37a933)](/\/+$/,'');}function assessPairingCompatibility(_0xa29afe,_0x5446ce){const _0x487f5d={_0x429773:0x60c,_0x4f300e:0x5d8,_0x23aa30:0x6e6,_0x135d55:0x3a8},_0x1cf136={_0x2193d2:0x143},_0x4dce8c={_0x377672:0x2f0};if(!_0xa29afe)return _0x3beeea(0x66a,_0x487f5d._0x429773)+'-new';if(_0xa29afe[_0x3beeea(0x559,0x5b9)+'l']===_0x5446ce)return'refresh-'+_0x203836(_0x487f5d._0x4f300e,0x7bb);function _0x203836(_0x1d893b,_0xffb6d0){return _0x5338aa(_0x1d893b-_0x4dce8c._0x377672,_0xffb6d0);}function _0x3beeea(_0x482cf0,_0x3ec5b2){return _0x5338aa(_0x3ec5b2-_0x1cf136._0x2193d2,_0x482cf0);}return _0x203836(_0x487f5d._0x23aa30,0x6ed)+_0x3beeea(_0x487f5d._0x135d55,0x52e);}import{execFileSync,spawn}from'child_process';function _0x5338aa(_0x70776a,_0x2d6d04){const _0x29bffb={_0x8467e7:0x95};return _0x3b9b(_0x70776a-_0x29bffb._0x8467e7,_0x2d6d04);}import{chmodSync,closeSync,existsSync as _0x30c183,mkdirSync as _0x5dc03e,openSync,readFileSync as _0x13f7bf,realpathSync,rmSync as _0xec8a4d,writeFileSync as _0x2eff19}from'fs';import{homedir as _0x56a1f5}from'os';import{dirname,join as _0x1bc804}from'path';var SERVICE_LABEL=_0x5338aa(0x4d3,0x350)+_0x5338aa(0x142,0x290)+'e.cli',SYSTEMD_UNIT_NAME=SERVICE_LABEL+_0x5338aa(0x13b,0x144),WINDOWS_RUN_KEY=_0x33cded(0x43d,0x5c9)+_0x5338aa(0x237,0x3dd),SERVICE_DIR=_0x1bc804(_0x56a1f5(),'.clawket'),LOG_DIR=_0x1bc804(SERVICE_DIR,_0x33cded(0x29c,0x437)),SERVICE_STATE_PATH=_0x1bc804(SERVICE_DIR,'bridge-s'+_0x5338aa(0x3cb,0x38c)+_0x33cded(0x3b7,0x40d)),SERVICE_LAUNCHER_PATH=_0x1bc804(SERVICE_DIR,_0x33cded(0x43b,0x4fd)+'ervice-l'+'auncher.'+'sh'),SERVICE_LOG_PATH=_0x1bc804(LOG_DIR,_0x33cded(0x718,0x5ee)+_0x5338aa(0x432,0x5fd)),SERVICE_ERROR_LOG_PATH=_0x1bc804(LOG_DIR,_0x33cded(0x67a,0x5ee)+_0x33cded(0x568,0x5e8)+_0x33cded(0x83e,0x73b)),MACOS_PLIST_PATH=_0x1bc804(_0x56a1f5(),_0x33cded(0x527,0x430),_0x5338aa(0x3f0,0x39a)+'ents',SERVICE_LABEL+_0x5338aa(0x358,0x3cb)),LINUX_SERVICE_PATH=_0x1bc804(_0x56a1f5(),_0x5338aa(0x155,-0x8),_0x33cded(0x335,0x4ce),_0x5338aa(0x3dc,0x445),SYSTEMD_UNIT_NAME);function getServiceProgramArgs(_0x4fefcc={},_0x37f4fa=process[_0x33cded(0x6c2,0x5dd)]){const _0x2669a6={_0x69eee5:0x34a,_0x499014:0x2be,_0x44c055:0x299,_0x41f7c4:0x517,_0xaa1cbc:0x4c2,_0x3e9a0a:0xca,_0x205dc7:0x108,_0x18dd0a:0x39c,_0x27157c:0x378,_0x791790:0x120,_0x3f2400:0x4,_0x54d665:0x2fb,_0x418b9d:0xe,_0x1cfab1:0x1d6,_0x544476:0x3de,_0x59d7e4:0x14a},_0x3a056a={};_0x3a056a[_0xa0e6f8(0x2c1,_0x2669a6._0x69eee5)]=function(_0x34cdd4,_0x57c038){return _0x34cdd4!==_0x57c038;};function _0x5c1702(_0x2682a4,_0x7997ed){return _0x33cded(_0x2682a4,_0x7997ed- -0x4e9);}const _0x12edca=_0x3a056a,_0x356b18=_0x4fefcc[_0xa0e6f8(_0x2669a6._0x499014,_0x2669a6._0x44c055)]?.[_0xa0e6f8(_0x2669a6._0x41f7c4,_0x2669a6._0xaa1cbc)]()||process[_0x5c1702(-_0x2669a6._0x3e9a0a,_0x2669a6._0x205dc7)],_0xd54970=resolveScriptPath(_0x4fefcc[_0xa0e6f8(_0x2669a6._0x18dd0a,_0x2669a6._0x27157c)+'th']);if(!_0xd54970)throw new Error(_0xa0e6f8(0x3c8,0x42b)+_0x5c1702(-_0x2669a6._0x791790,_0x2669a6._0x3f2400)+'e\x20CLI\x20sc'+_0xa0e6f8(0x396,0x46b)+_0xa0e6f8(_0x2669a6._0x54d665,0x39c)+'rvice\x20in'+_0x5c1702(-0x4b,0x11b)+'on.');if(_0x12edca[_0x5c1702(-0xd7,0x49)](_0x37f4fa,_0x5c1702(_0x2669a6._0x418b9d,0x59))){const _0x4df27a={};_0x4df27a['nodePath']=_0x356b18,_0x4df27a['scriptPa'+'th']=_0xd54970,_0x4df27a[_0xa0e6f8(0x1d9,_0x2669a6._0x1cfab1)]=process.env.PATH??'';const _0x3fb6bb=writeServiceLauncher(_0x4df27a);return ensureLaunchScriptExecutable(_0x3fb6bb,_0x37f4fa),[_0x3fb6bb];}function _0xa0e6f8(_0x185ee6,_0x85dcd5){return _0x33cded(_0x185ee6,_0x85dcd5- -0x1e8);}return[_0x356b18,_0xd54970,_0x5c1702(_0x2669a6._0x544476,0x20b),_0x5c1702(0x1e7,_0x2669a6._0x59d7e4)+'e'];}function getServiceStatus(){const _0x25f02f={_0x2d772d:0x45d,_0x49a463:0x639,_0x267c85:0x3dd,_0x46a167:0x3b5,_0x551f86:0x6e8,_0x3725fa:0x592,_0x479e31:0x5ef,_0x338d42:0x47b,_0x6a6900:0x4c8,_0x1ef098:0x4d7,_0x26fa1c:0x388,_0x388666:0x7f9,_0x21f6f8:0x6d5,_0x17854d:0x37b,_0x4ba409:0x5c2,_0x28800c:0x2f2,_0x387efb:0x4c1,_0x6415fa:0x591,_0x5c96ef:0x3fd,_0x51546b:0x5ab,_0x2de401:0x983,_0x3cd22b:0x484,_0x2b55f2:0x3fa,_0x308430:0x5b4,_0x495eba:0x718,_0x571a3e:0x5ad,_0x403a95:0x643,_0x5ec9e5:0x2ec,_0x2e2061:0x32a,_0x25a4a9:0x734},_0x505e04={'fmjGB':function(_0x41d488){return _0x41d488();},'lbOCe':function(_0x4ba188,_0x4361b2){return _0x4ba188!=_0x4361b2;},'kgXCa':'--user','hmNmN':function(_0x508567,_0x144a48,_0x4a8bf0){return _0x508567(_0x144a48,_0x4a8bf0);}};_0x505e04[_0x66c792(_0x25f02f._0x2d772d,_0x25f02f._0x49a463)](ensureServiceDirs);function _0x4a4bae(_0x2d04c0,_0x17fd89){return _0x5338aa(_0x2d04c0-0x265,_0x17fd89);}const _0x2f6229=readServiceState()?.[_0x4a4bae(_0x25f02f._0x267c85,_0x25f02f._0x46a167)]??null,_0x1a622a={'installed':![],'running':_0x505e04['lbOCe'](_0x2f6229,null)&&isPidRunning(_0x2f6229),'method':detectServiceMethod(),'servicePath':getServicePath(),'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'pid':_0x2f6229};_0x1a622a['pid']!=null&&!_0x1a622a['running']&&(clearServiceState(_0x1a622a['pid']),_0x1a622a[_0x66c792(0x5ab,0x4b7)]=null);function _0x66c792(_0x33047c,_0x4ab050){return _0x5338aa(_0x4ab050-0x33f,_0x33047c);}switch(_0x1a622a[_0x4a4bae(0x58a,_0x25f02f._0x551f86)]){case _0x66c792(_0x25f02f._0x3725fa,_0x25f02f._0x479e31)+_0x66c792(_0x25f02f._0x338d42,0x59f):_0x1a622a[_0x66c792(0x600,_0x25f02f._0x6a6900)+'d']=_0x30c183(MACOS_PLIST_PATH);_0x1a622a['installe'+'d']&&(_0x1a622a[_0x66c792(0x50f,_0x25f02f._0x1ef098)]=commandSucceeds('launchct'+'l',['list',SERVICE_LABEL])||_0x1a622a[_0x66c792(_0x25f02f._0x26fa1c,0x4d7)]);return _0x1a622a;case _0x66c792(_0x25f02f._0x388666,_0x25f02f._0x21f6f8)+'user':_0x1a622a[_0x4a4bae(0x3ee,0x4a3)+'d']=_0x30c183(LINUX_SERVICE_PATH);_0x1a622a[_0x66c792(_0x25f02f._0x17854d,0x4c8)+'d']&&(_0x1a622a['running']=commandSucceeds('systemct'+'l',[_0x505e04[_0x4a4bae(0x47e,_0x25f02f._0x4ba409)],_0x66c792(_0x25f02f._0x28800c,_0x25f02f._0x387efb)+'e',_0x66c792(0x6eb,_0x25f02f._0x6415fa),SYSTEMD_UNIT_NAME])||_0x1a622a[_0x4a4bae(_0x25f02f._0x5c96ef,0x317)]);return _0x1a622a;case _0x66c792(0x407,_0x25f02f._0x51546b)+_0x66c792(_0x25f02f._0x2de401,0x7d1)+_0x4a4bae(_0x25f02f._0x3cd22b,0x387):_0x1a622a['installe'+'d']=_0x505e04[_0x66c792(_0x25f02f._0x2b55f2,_0x25f02f._0x308430)](commandSucceeds,_0x66c792(_0x25f02f._0x495eba,0x7b4),[_0x4a4bae(_0x25f02f._0x571a3e,0x63d),_0x66c792(_0x25f02f._0x403a95,0x539)+_0x66c792(0x54b,0x586)+_0x4a4bae(0x3d9,_0x25f02f._0x5ec9e5)+_0x66c792(0x8c2,0x77f)+_0x4a4bae(0x41d,_0x25f02f._0x2e2061)+_0x66c792(_0x25f02f._0x25a4a9,0x608)+'un','/v',WINDOWS_RUN_KEY]);return _0x1a622a;default:return _0x1a622a;}}function installService(_0x43b961={}){const _0x9dcdaf={_0x3c19f1:0x2b9,_0x1e21c9:0x3c6,_0x55fd9f:0x4cb,_0x3200cc:0x438,_0x5bcddb:0x3f6,_0x483318:0x273,_0x1d85dc:0x28c,_0x32090b:0x35b,_0x378445:0x438,_0x162ff6:0x5d7,_0x19f224:0xdf,_0x5e2475:0x246,_0x56aaaf:0x88,_0x45afe9:0x2f1,_0x3db06d:0x3e2,_0x364060:0x3c9,_0x4157ee:0x325,_0xcda435:0x5b9,_0x1f122:0x4e2,_0x14f1c2:0x25a,_0x2b6864:0x365,_0x221b34:0x1a9,_0x565a3b:0x420,_0x11ee76:0x442,_0x172570:0x2ee,_0x898273:0x1d3,_0x4768cf:0x17e,_0x548ce2:0x56,_0xc0cf05:0x3a4,_0x495668:0x134,_0x4923f8:0x54c,_0x17d4f5:0x502,_0x4c18e5:0x3d5,_0x4787fb:0xec,_0x3e9962:0x14,_0x279056:0x197,_0x38cbb7:0x344,_0x4a4c0f:0x119,_0x4b20fe:0x214,_0x54b530:0x419,_0x5bc5f7:0x448,_0x52f6b2:0x2ab},_0x5761a3={_0x30dc63:0x7c},_0x5bee5c={'SSXLN':'darwin','dksOA':function(_0x5d2545,_0x2991bf,_0x1e033f,_0x2e6d27){return _0x5d2545(_0x2991bf,_0x1e033f,_0x2e6d27);},'nxRfA':function(_0x344838,_0x57c158,_0x453a0d){return _0x344838(_0x57c158,_0x453a0d);},'ohtqw':_0x4087fe(0x21b,0x3ed),'rVksx':_0x37d80e(0x352,0x329),'DTBfM':'win32','LqTVY':function(_0x42a93b){return _0x42a93b();}};ensureServiceDirs();function _0x37d80e(_0x580571,_0x17375a){return _0x5338aa(_0x580571- -_0x5761a3._0x30dc63,_0x17375a);}const _0x9910c0=getServiceProgramArgs(_0x43b961);switch(process['platform']){case _0x5bee5c[_0x37d80e(_0x9dcdaf._0x3c19f1,0x23b)]:_0x2eff19(MACOS_PLIST_PATH,_0x5bee5c[_0x37d80e(_0x9dcdaf._0x1e21c9,0x288)](buildMacosPlist,_0x9910c0,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x4087fe(0x3a9,_0x9dcdaf._0x55fd9f)),execIgnoreFailure(_0x4087fe(_0x9dcdaf._0x3200cc,_0x9dcdaf._0x5bcddb)+'l',[_0x4087fe(_0x9dcdaf._0x483318,_0x9dcdaf._0x1d85dc),'-w',MACOS_PLIST_PATH]);const _0x769af2={};_0x769af2[_0x4087fe(_0x9dcdaf._0x32090b,0x2bd)]='ignore',execFileSync(_0x4087fe(_0x9dcdaf._0x378445,_0x9dcdaf._0x162ff6)+'l',['load','-w',MACOS_PLIST_PATH],_0x769af2);break;case _0x37d80e(_0x9dcdaf._0x19f224,_0x9dcdaf._0x5e2475):const _0x3f132c={};_0x3f132c[_0x37d80e(0x142,-_0x9dcdaf._0x56aaaf)+'e']=!![],_0x5bee5c[_0x4087fe(0x3c3,_0x9dcdaf._0x45afe9)](_0x5dc03e,dirname(LINUX_SERVICE_PATH),_0x3f132c),_0x2eff19(LINUX_SERVICE_PATH,buildLinuxSystemdUnit(_0x9910c0,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),'utf8');const _0x1f9a4c={};_0x1f9a4c[_0x4087fe(0x35b,0x217)]='ignore',execFileSync(_0x4087fe(_0x9dcdaf._0x3db06d,0x4f5)+'l',[_0x4087fe(0x365,0x253),_0x37d80e(_0x9dcdaf._0x364060,_0x9dcdaf._0x4157ee)+_0x4087fe(_0x9dcdaf._0xcda435,_0x9dcdaf._0x1f122)],_0x1f9a4c),execFileSync(_0x37d80e(_0x9dcdaf._0x14f1c2,0x3fc)+'l',[_0x4087fe(_0x9dcdaf._0x2b6864,_0x9dcdaf._0x221b34),_0x4087fe(_0x9dcdaf._0x565a3b,0x2dd),_0x5bee5c['ohtqw'],SYSTEMD_UNIT_NAME],{'stdio':_0x5bee5c['rVksx']});break;case _0x5bee5c[_0x4087fe(_0x9dcdaf._0x11ee76,_0x9dcdaf._0x172570)]:stopRunningProcess();const _0x563651={};_0x563651[_0x37d80e(_0x9dcdaf._0x898273,0x306)]=_0x5bee5c['rVksx'],execFileSync('reg',['add',_0x37d80e(_0x9dcdaf._0x4768cf,_0x9dcdaf._0x548ce2)+_0x37d80e(0x1cb,_0x9dcdaf._0xc0cf05)+_0x4087fe(0x280,_0x9dcdaf._0x495668)+_0x4087fe(_0x9dcdaf._0x4923f8,_0x9dcdaf._0x17d4f5)+_0x4087fe(0x2c4,0x3e4)+_0x4087fe(_0x9dcdaf._0x4c18e5,0x455)+'un','/v',WINDOWS_RUN_KEY,'/t',_0x37d80e(_0x9dcdaf._0x4787fb,_0x9dcdaf._0x3e9962),'/d',buildWindowsRunCommand(_0x9910c0),'/f'],_0x563651),startDetachedWindowsService(_0x9910c0);break;default:throw new Error(_0x4087fe(0x3dd,0x532)+_0x37d80e(_0x9dcdaf._0x279056,_0x9dcdaf._0x38cbb7)+_0x37d80e(_0x9dcdaf._0x4a4c0f,-0x95)+_0x4087fe(0x3e5,_0x9dcdaf._0x4b20fe)+_0x4087fe(0x3d7,0x528)+'tallatio'+_0x4087fe(_0x9dcdaf._0x54b530,0x24f)+process[_0x4087fe(_0x9dcdaf._0x5bc5f7,0x46b)]);}function _0x4087fe(_0x24f9f6,_0x44d3fd){return _0x5338aa(_0x24f9f6-0x10c,_0x44d3fd);}return _0x5bee5c[_0x4087fe(_0x9dcdaf._0x52f6b2,0x376)](getServiceStatus);}function restartService(_0x2b0367={}){const _0x10f7c5={_0x5779eb:0x36b,_0x58f17c:0x36a,_0x14c789:0x296,_0x5ba50f:0x3ad,_0x5b7b21:0x1a8,_0x1c6b29:0x2ac,_0x37946e:0x53b,_0x59adad:0x51d,_0x462def:0x47e,_0x3e42d6:0x467,_0x436ca7:0x4c9,_0x1dbc36:0x3ae,_0x24e65f:0x38a,_0x3b7472:0x5b4,_0xf2d97:0x4c4,_0x2a294f:0x57e,_0x2d4326:0x365,_0x187eb2:0x374,_0x14b144:0x330,_0x49430f:0x5e8,_0x897f5e:0x491,_0x5bb16c:0x24c,_0x11222b:0x5c8,_0x4aafb5:0x376,_0x4b5fba:0x485,_0x33a762:0x326,_0x41e978:0x335,_0x521b22:0x224,_0x44aa72:0x2af,_0x1fbc23:0x517,_0x4f5751:0x3a0,_0x3511ed:0x452,_0x365727:0x3a8,_0x1fcec3:0x18f},_0x3c7414={_0x2b836b:0x166},_0x157487={'yYsvi':function(_0x42e827,_0x1b4458){return _0x42e827(_0x1b4458);},'BbgTY':_0x225784(0x525,_0x10f7c5._0x5779eb),'nuWKy':function(_0x3f3629,_0x30bb8b,_0x4eaeea){return _0x3f3629(_0x30bb8b,_0x4eaeea);},'KBYXe':'unload','UkpHa':_0x225784(0x1de,_0x10f7c5._0x58f17c),'lfNqg':_0x225784(0x186,_0x10f7c5._0x14c789),'EaUGn':function(_0xdb1d13,_0xb8489a){return _0xdb1d13(_0xb8489a);},'dFQMa':function(_0x22a544,_0x22894b){return _0x22a544(_0x22894b);},'uciJJ':function(_0xe5df7e,_0x30b6fb,_0x1a34e2,_0x46c796){return _0xe5df7e(_0x30b6fb,_0x1a34e2,_0x46c796);},'EbRDb':_0x2eb736(0x1cf,_0x10f7c5._0x5ba50f)+'l','qTVHR':_0x225784(0x508,0x394),'SsJBQ':_0x225784(_0x10f7c5._0x5b7b21,_0x10f7c5._0x1c6b29),'ImTmF':_0x225784(0x5a8,0x3dc),'GfVfU':'REG_SZ','TZfnd':function(_0x507aa9){return _0x507aa9();}};function _0x225784(_0x29b876,_0xba249a){return _0x33cded(_0x29b876,_0xba249a- -_0x3c7414._0x2b836b);}function _0x2eb736(_0x36bc1b,_0x1ceab5){return _0x33cded(_0x36bc1b,_0x1ceab5- -0x1ca);}ensureServiceDirs();const _0x4da12b=_0x157487[_0x225784(_0x10f7c5._0x37946e,_0x10f7c5._0x59adad)](getServiceProgramArgs,_0x2b0367);switch(process[_0x2eb736(0x515,0x413)]){case _0x157487['BbgTY']:if(!_0x30c183(MACOS_PLIST_PATH))return installService(_0x2b0367);_0x2eff19(MACOS_PLIST_PATH,buildMacosPlist(_0x4da12b,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),'utf8'),_0x157487[_0x225784(0x39b,_0x10f7c5._0x462def)](execIgnoreFailure,_0x225784(0x426,_0x10f7c5._0x3e42d6)+'l',[_0x157487[_0x225784(_0x10f7c5._0x436ca7,_0x10f7c5._0x1dbc36)],'-w',MACOS_PLIST_PATH]);const _0x2aa54e={};_0x2aa54e[_0x225784(0x415,_0x10f7c5._0x24e65f)]=_0x2eb736(0x588,0x4a5),execFileSync(_0x225784(_0x10f7c5._0x3b7472,0x467)+'l',[_0x157487[_0x225784(0x475,0x502)],'-w',MACOS_PLIST_PATH],_0x2aa54e);break;case _0x157487[_0x2eb736(_0x10f7c5._0xf2d97,0x51d)]:if(!_0x157487[_0x225784(0x48b,0x4be)](_0x30c183,LINUX_SERVICE_PATH))return installService(_0x2b0367);const _0x1ce4d9={};_0x1ce4d9['recursiv'+'e']=!![],_0x5dc03e(_0x157487[_0x225784(0x71c,_0x10f7c5._0x2a294f)](dirname,LINUX_SERVICE_PATH),_0x1ce4d9),_0x2eff19(LINUX_SERVICE_PATH,buildLinuxSystemdUnit(_0x4da12b,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x2eb736(_0x10f7c5._0x2d4326,_0x10f7c5._0x187eb2));const _0x1d4cdb={};_0x1d4cdb['stdio']='ignore',execFileSync('systemct'+'l',[_0x2eb736(0x4f7,_0x10f7c5._0x14b144),'daemon-r'+_0x225784(0x6ec,_0x10f7c5._0x49430f)],_0x1d4cdb);const _0x1d285f={};_0x1d285f['stdio']=_0x225784(_0x10f7c5._0x897f5e,0x509),_0x157487[_0x225784(0x14e,_0x10f7c5._0x5bb16c)](execFileSync,_0x157487['EbRDb'],[_0x157487[_0x225784(0x69e,_0x10f7c5._0x11222b)],_0x157487['SsJBQ'],SYSTEMD_UNIT_NAME],_0x1d285f);break;case _0x157487[_0x2eb736(_0x10f7c5._0x4aafb5,0x525)]:stopRunningProcess();const _0x1691b7={};_0x1691b7[_0x2eb736(_0x10f7c5._0x4b5fba,_0x10f7c5._0x33a762)]=_0x225784(0x62d,0x509),execFileSync(_0x2eb736(0x514,0x54c),['add',_0x225784(_0x10f7c5._0x33a762,_0x10f7c5._0x41e978)+_0x2eb736(0x3c0,0x31e)+_0x225784(_0x10f7c5._0x521b22,_0x10f7c5._0x44aa72)+_0x2eb736(0x5c6,_0x10f7c5._0x1fbc23)+_0x225784(0x2d6,0x2f3)+_0x2eb736(0x514,_0x10f7c5._0x4f5751)+'un','/v',WINDOWS_RUN_KEY,'/t',_0x157487[_0x2eb736(0x59a,0x498)],'/d',buildWindowsRunCommand(_0x4da12b),'/f'],_0x1691b7),_0x157487['yYsvi'](startDetachedWindowsService,_0x4da12b);break;default:throw new Error(_0x2eb736(_0x10f7c5._0x3511ed,_0x10f7c5._0x365727)+_0x2eb736(_0x10f7c5._0x1fcec3,0x2ea)+'form\x20for'+'\x20CLI\x20ser'+_0x2eb736(0x2ae,0x2b3)+'tart:\x20'+process['platform']);}return _0x157487[_0x225784(0x1e9,0x332)](getServiceStatus);}function uninstallService(){const _0x8db153={_0x194b48:0x163,_0x53d209:0x13a,_0x21a821:0x18,_0x551caa:0x67,_0x3303da:0x1e3,_0x1c2fe3:0x22c,_0x43df83:0x13f,_0x56a331:0x433,_0x2f5b12:0x5e,_0x1c31ff:0x108,_0x2b1784:0x4fc,_0x430611:0x4ea,_0x410dfe:0x13a,_0x49b329:0xb2,_0x2c06f1:0x6d3,_0x3f6ef3:0x508,_0x4a4d26:0x52d,_0x2e8e11:0x199,_0x1fa956:0x1db,_0x3994bd:0x138,_0x45725b:0x48a,_0x1aa4f0:0x51b},_0x33293d={_0x9e4247:0x393},_0x36c0f8={_0xcc95ca:0x226};function _0x5ce9dc(_0x279411,_0x12ee4b){return _0x5338aa(_0x279411-_0x36c0f8._0xcc95ca,_0x12ee4b);}function _0x6ee3a6(_0xc3d3cc,_0xe5477){return _0x5338aa(_0xc3d3cc- -_0x33293d._0x9e4247,_0xe5477);}const _0x193b5c={'yLiJH':_0x6ee3a6(-_0x8db153._0x194b48,-0x343),'KNCHM':_0x5ce9dc(0x4fc,0x36b)+'l','JAfSz':_0x6ee3a6(-_0x8db153._0x53d209,-_0x8db153._0x21a821),'NqEZy':function(_0x5c1817,_0x266134){return _0x5c1817(_0x266134);},'Qjvkf':'win32','rKilA':_0x6ee3a6(-0x26b,-0x3f5),'lCWoP':function(_0x4ea5ed){return _0x4ea5ed();}};stopRunningProcess();switch(process['platform']){case _0x193b5c[_0x5ce9dc(0x3d8,0x492)]:execIgnoreFailure(_0x6ee3a6(-_0x8db153._0x551caa,-_0x8db153._0x3303da)+'l',[_0x6ee3a6(-_0x8db153._0x1c2fe3,-_0x8db153._0x43df83),'-w',MACOS_PLIST_PATH]),rmIfExists(MACOS_PLIST_PATH);break;case _0x5ce9dc(0x381,_0x8db153._0x56a331):_0x30c183(LINUX_SERVICE_PATH)&&(execIgnoreFailure(_0x193b5c[_0x6ee3a6(-0x76,0x12a)],[_0x193b5c[_0x6ee3a6(_0x8db153._0x2f5b12,0x6b)],'disable',_0x5ce9dc(0x335,0x451),SYSTEMD_UNIT_NAME]),_0x193b5c[_0x6ee3a6(-_0x8db153._0x1c31ff,-0x240)](rmIfExists,LINUX_SERVICE_PATH),execIgnoreFailure(_0x5ce9dc(_0x8db153._0x2b1784,_0x8db153._0x430611)+'l',[_0x6ee3a6(-_0x8db153._0x410dfe,-0xc),_0x6ee3a6(_0x8db153._0x49b329,-0x67)+_0x5ce9dc(_0x8db153._0x2c06f1,0x750)]));break;case _0x193b5c[_0x5ce9dc(_0x8db153._0x3f6ef3,0x64f)]:execIgnoreFailure('reg',[_0x193b5c[_0x5ce9dc(_0x8db153._0x4a4d26,0x430)],_0x6ee3a6(-_0x8db153._0x2e8e11,-0xd8)+'tware\x5cMi'+'crosoft\x5c'+_0x6ee3a6(0xad,-0x122)+_0x6ee3a6(-_0x8db153._0x1fa956,-_0x8db153._0x3994bd)+_0x5ce9dc(0x4ef,_0x8db153._0x45725b)+'un','/v',WINDOWS_RUN_KEY,'/f']);break;default:break;}return _0x193b5c[_0x5ce9dc(_0x8db153._0x1aa4f0,0x48c)](clearServiceState),_0x193b5c['lCWoP'](getServiceStatus);}function stopService(){const _0x4f221c={_0x2e5ca8:0x10d,_0x12786c:0x1d,_0x307cd7:0x1a,_0x31db93:0x1cd,_0x2bbf54:0x2ef,_0x156d1f:0x47,_0x261717:0x2c,_0x42b240:0x85,_0x54f38f:0x146,_0x246b95:0x5c},_0x19585f={_0x17a24b:0x3ae},_0x7d104d={_0x27648c:0x302},_0x5ba156={'FnXki':function(_0x4f647e,_0x188a26){return _0x4f647e(_0x188a26);},'FpRhp':function(_0xa3db4d,_0x306ff0,_0x1a7576){return _0xa3db4d(_0x306ff0,_0x1a7576);},'yAVBO':_0x49c233(-_0x4f221c._0x2e5ca8,-_0x4f221c._0x12786c),'gikVm':function(_0x2d221a){return _0x2d221a();}};function _0x4f82e0(_0x1d97da,_0x30fbe3){return _0x5338aa(_0x30fbe3- -_0x7d104d._0x27648c,_0x1d97da);}function _0x49c233(_0x4bb11e,_0xa585c0){return _0x5338aa(_0x4bb11e- -_0x19585f._0x17a24b,_0xa585c0);}stopRunningProcess();switch(process['platform']){case'darwin':_0x5ba156[_0x4f82e0(-_0x4f221c._0x307cd7,-0x1ef)](_0x30c183,MACOS_PLIST_PATH)&&_0x5ba156[_0x4f82e0(-0x372,-_0x4f221c._0x31db93)](execIgnoreFailure,_0x49c233(-0x82,0xb7)+'l',['unload',MACOS_PLIST_PATH]);break;case _0x4f82e0(-_0x4f221c._0x2bbf54,-0x1a7):_0x30c183(LINUX_SERVICE_PATH)&&execIgnoreFailure(_0x4f82e0(_0x4f221c._0x156d1f,-_0x4f221c._0x261717)+'l',['--user',_0x49c233(-0x7e,-_0x4f221c._0x42b240),SYSTEMD_UNIT_NAME]);break;case _0x5ba156[_0x4f82e0(_0x4f221c._0x54f38f,-_0x4f221c._0x246b95)]:break;default:break;}return _0x5ba156[_0x49c233(-0x1b0,-0x231)](clearServiceState),getServiceStatus();}function writeServiceState(_0x215461=process['pid']){const _0x24cdbd={_0x205354:0x268,_0x7e2d88:0x310,_0x85f8cd:0x1bc,_0x4e35d4:0x186,_0x226dd2:0x180,_0x1732af:0x137},_0x4b19f7={_0x44b392:0x424};function _0x2c2212(_0x28e0e6,_0x565ac0){return _0x5338aa(_0x28e0e6- -0x35,_0x565ac0);}const _0x41ebcb={'DxaMg':function(_0x4ff926,_0x66481f,_0x222bf4,_0x4e727e){return _0x4ff926(_0x66481f,_0x222bf4,_0x4e727e);},'uzxBb':_0x2c2212(_0x24cdbd._0x205354,0x305)};ensureServiceDirs();function _0x22be34(_0x1cb9a8,_0x26f915){return _0x5338aa(_0x1cb9a8- -_0x4b19f7._0x44b392,_0x26f915);}const _0x224b8f={'pid':_0x215461,'startedAt':new Date()[_0x2c2212(_0x24cdbd._0x7e2d88,_0x24cdbd._0x85f8cd)+_0x2c2212(_0x24cdbd._0x4e35d4,0x25)]()};_0x41ebcb['DxaMg'](_0x2eff19,SERVICE_STATE_PATH,JSON[_0x22be34(-_0x24cdbd._0x226dd2,-_0x24cdbd._0x1732af)+'y'](_0x224b8f,null,0x2)+'\x0a',_0x41ebcb['uzxBb']);}function clearServiceState(_0xeebe8f){if(!_0x30c183(SERVICE_STATE_PATH))return;if(_0xeebe8f!=null){const _0x30aa23=readServiceState();if(_0x30aa23&&_0x30aa23['pid']!==_0xeebe8f)return;}rmIfExists(SERVICE_STATE_PATH);}function getServicePaths(){return{'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'servicePath':getServicePath()};}function buildMacosPlist(_0x53aec9,_0xdab123,_0x3a0574){const _0x59df55={_0x37f6f3:0x4a9,_0x48e1ba:0x1e,_0x37751c:0x200,_0xace323:0x4,_0x2fac42:0xdc,_0x51ba3a:0x106,_0x14a2f8:0xa9,_0x18ae2e:0x11f,_0x435439:0x240,_0x4f8a89:0x325,_0x23fbb9:0x281,_0x7c36c5:0x499,_0x10a125:0x226,_0x5bca4b:0x402,_0x1f0ff7:0x400,_0xbf0f33:0x297,_0x503978:0x3,_0x201525:0xd6,_0x295388:0x51b,_0x560c7d:0x2ef,_0x26e845:0x480,_0x55d365:0xbd,_0x51f2d5:0x299,_0x152751:0x353,_0x5714fa:0x442,_0xab78d1:0x1a0,_0x4e5e6b:0x12a,_0x5e218a:0x62,_0x45dd89:0x2b0,_0x278aa9:0x3a6,_0x49eb49:0x88,_0x3c33db:0x24f,_0x18f345:0x271,_0x1e4712:0x156,_0xfb1323:0x437,_0x3f249d:0x301,_0x1a7764:0x29,_0x2a96d1:0x8a,_0xca6182:0x1f4,_0x2a0505:0x2d3,_0x41d131:0x80,_0x9a6563:0x60,_0x5ac88c:0x3ae,_0x3b0fbc:0x3a0,_0x5e961f:0x1bc,_0x46f853:0x241,_0x5a21dd:0xc6,_0x34d1eb:0x272},_0x2d5e1f={_0x458704:0x6c};function _0x316d79(_0xe13bee,_0x3a8637){return _0x5338aa(_0xe13bee- -_0x2d5e1f._0x458704,_0x3a8637);}const _0x3773be=_0x53aec9[_0x316d79(0x43c,_0x59df55._0x37f6f3)](_0x5cc37b=>_0x316d79(0x138,0x38)+'ing>'+escapeXml(_0x5cc37b)+(_0x39c550(0x11c,0x22c)+'>'))[_0x39c550(_0x59df55._0x48e1ba,_0x59df55._0x37751c)]('\x0a');function _0x39c550(_0x4630e7,_0x20ab7e){return _0x5338aa(_0x4630e7- -0x200,_0x20ab7e);}return'<?xml\x20ve'+_0x39c550(0xf4,-_0x59df55._0xace323)+_0x39c550(-_0x59df55._0x2fac42,-_0x59df55._0x51ba3a)+_0x39c550(-_0x59df55._0x14a2f8,_0x59df55._0x18ae2e)+_0x39c550(0x62,_0x59df55._0x435439)+_0x316d79(_0x59df55._0x4f8a89,_0x59df55._0x23fbb9)+_0x316d79(0x391,_0x59df55._0x7c36c5)+'UBLIC\x20\x22-'+'//Apple/'+_0x39c550(_0x59df55._0x10a125,_0x59df55._0x5bca4b)+_0x39c550(0x43,-0x12e)+'EN\x22\x20\x22htt'+_0x316d79(_0x59df55._0x1f0ff7,_0x59df55._0xbf0f33)+_0x39c550(_0x59df55._0x503978,-_0x59df55._0x201525)+_0x316d79(0x3fa,_0x59df55._0x295388)+_0x316d79(_0x59df55._0x560c7d,_0x59df55._0x26e845)+_0x39c550(-_0x59df55._0x55d365,-0x6e)+'dtd\x22>\x0a<p'+_0x39c550(0x24,0x1e)+_0x316d79(_0x59df55._0x51f2d5,_0x59df55._0x152751)+_0x316d79(_0x59df55._0x5714fa,0x427)+_0x316d79(0x21c,0x306)+'y>Label<'+_0x39c550(0x282,_0x59df55._0xab78d1)+_0x39c550(_0x59df55._0x4e5e6b,-_0x59df55._0x5e218a)+SERVICE_LABEL+(_0x316d79(_0x59df55._0x45dd89,0x362)+_0x39c550(0x1e6,_0x59df55._0x278aa9)+_0x39c550(0x117,-_0x59df55._0x49eb49)+_0x39c550(_0x59df55._0x3c33db,0x38b)+_0x316d79(0x3a5,0x380)+_0x316d79(0x1af,_0x59df55._0x18f345)+'>\x0a')+_0x3773be+(_0x39c550(_0x59df55._0x1e4712,0x18d)+'ay>\x0a\x20\x20<k'+_0x316d79(_0x59df55._0xfb1323,0x414)+'Load</ke'+_0x316d79(0x39e,0x362)+'ue/>\x0a\x20\x20<'+'key>Keep'+'Alive</k'+_0x39c550(0x223,0x183)+_0x316d79(0x190,0x358)+'<key>Sta'+_0x316d79(0x157,0x194)+_0x316d79(_0x59df55._0x3f249d,0x401)+_0x39c550(_0x59df55._0x1a7764,-_0x59df55._0x2a96d1)+_0x39c550(_0x59df55._0xca6182,_0x59df55._0x2a0505))+escapeXml(_0xdab123)+(_0x316d79(_0x59df55._0x45dd89,0x278)+'>\x0a\x20\x20<key'+'>Standar'+_0x39c550(_0x59df55._0x41d131,-_0x59df55._0x9a6563)+_0x316d79(_0x59df55._0x5ac88c,0x569)+_0x316d79(0x3cb,0x4d7)+_0x316d79(_0x59df55._0x3b0fbc,_0x59df55._0x5e961f))+escapeXml(_0x3a0574)+('</string'+'>\x0a</dict'+_0x39c550(_0x59df55._0x46f853,_0x59df55._0x5a21dd)+_0x316d79(_0x59df55._0x34d1eb,0x315));}function buildLinuxSystemdUnit(_0x31099a,_0x1f515f,_0x49df52){const _0x2074a2={_0x42e269:0x2c4,_0x25d4c3:0x1e8,_0x237be2:0xe4,_0x286358:0x41b,_0x1c32c0:0x3d7,_0x6d2295:0x415,_0x55df20:0x508,_0x1e650f:0x3d9,_0x20e3b4:0x3a0,_0x11fe3b:0x40c,_0x18415a:0x2fb,_0x538209:0x45b,_0x4c0795:0x5ba,_0xb920bc:0x2b8,_0x5d2523:0x1bf,_0x12a22c:0x517,_0x20e2f9:0x102,_0x35afe4:0xbb,_0x5ca325:0xa7},_0xc22100={_0x23f4b8:0x172},_0x40f6e4={_0x3fbf80:0x316};function _0x496faa(_0x1bd80c,_0x6d49e5){return _0x33cded(_0x6d49e5,_0x1bd80c- -_0x40f6e4._0x3fbf80);}const _0x4ef4ce=_0x31099a[_0x496faa(0x433,_0x2074a2._0x42e269)](escapeSystemdArg)[_0x2e6a90(_0x2074a2._0x25d4c3,0x34d)]('\x20');function _0x2e6a90(_0x92adc3,_0x6762b2){return _0x33cded(_0x92adc3,_0x6762b2- -_0xc22100._0x23f4b8);}return'[Unit]\x0aD'+'escripti'+_0x496faa(_0x2074a2._0x237be2,0x93)+_0x2e6a90(_0x2074a2._0x286358,_0x2074a2._0x1c32c0)+'e\x20CLI\x0aAf'+'ter=netw'+'ork-onli'+_0x2e6a90(_0x2074a2._0x6d2295,_0x2074a2._0x55df20)+_0x2e6a90(_0x2074a2._0x1e650f,0x52d)+'network-'+_0x2e6a90(0x5ce,0x3f0)+_0x496faa(0x203,0x189)+_0x2e6a90(_0x2074a2._0x20e3b4,0x282)+_0x2e6a90(0x217,0x2cc)+_0x496faa(0x3b6,_0x2074a2._0x11fe3b)+_0x2e6a90(_0x2074a2._0x18415a,0x243)+_0x4ef4ce+('\x0aRestart'+_0x496faa(_0x2074a2._0x538209,0x297)+_0x2e6a90(0x1ce,0x349)+_0x2e6a90(0x5aa,_0x2074a2._0x4c0795)+_0x496faa(_0x2074a2._0xb920bc,_0x2074a2._0x5d2523)+_0x2e6a90(_0x2074a2._0x12a22c,0x3eb))+escapeSystemdArg(SERVICE_DIR)+(_0x496faa(0x44c,0x4fa)+'dOutput='+'append:')+_0x1f515f+('\x0aStandar'+_0x496faa(0x3f6,0x3a7)+_0x2e6a90(0x5f5,0x560))+_0x49df52+(_0x496faa(0x387,0x465)+_0x2e6a90(0x219,0x29c)+_0x496faa(_0x2074a2._0x20e2f9,-_0x2074a2._0x35afe4)+_0x2e6a90(0x553,0x49a)+_0x496faa(_0x2074a2._0x5ca325,-0xf9));}function getServicePath(){const _0x4fb502={_0x514107:0xb3,_0x311b4d:0x1d1,_0x2c2126:0x192,_0x172c0e:0x38,_0x3ae8e8:0x233,_0x125f3e:0x97,_0x71a95b:0x173,_0x110381:0x57},_0x387411={};_0x387411[_0x40152d(0x73,-_0x4fb502._0x514107)]=_0x3973ed(0x5d,_0x4fb502._0x311b4d)+_0x3973ed(0xaa,0x202)+_0x3973ed(-0x29,_0x4fb502._0x2c2126)+_0x40152d(0x232,0x250)+_0x40152d(0x9c,-_0x4fb502._0x172c0e)+_0x40152d(_0x4fb502._0x3ae8e8,0xd9)+'un\x5cClawk'+_0x40152d(_0x4fb502._0x125f3e,0x197)+_0x3973ed(_0x4fb502._0x71a95b,-_0x4fb502._0x110381);function _0x3973ed(_0x4db4dd,_0x3f1838){return _0x5338aa(_0x4db4dd- -0x19d,_0x3f1838);}function _0x40152d(_0x2d3f7f,_0x10015c){return _0x5338aa(_0x10015c- -0x1f0,_0x2d3f7f);}const _0x533998=_0x387411;switch(process[_0x3973ed(0x19f,0xe6)]){case _0x40152d(-0x19,0x40):return MACOS_PLIST_PATH;case _0x3973ed(-0x42,-0x9f):return LINUX_SERVICE_PATH;case'win32':return _0x533998['pQBwE'];default:return'';}}function detectServiceMethod(){const _0x59cc2e={_0x5f5495:0x18,_0x29c833:0x1f5,_0xe82a82:0x152,_0x5d6839:0x56,_0x32916d:0x218,_0x1ed351:0xc7,_0x434f94:0x114,_0x5de296:0x37,_0x2420e1:0x167,_0x324b7a:0x123},_0x3348fb={_0x5be1cb:0x3c5},_0x22e75e={_0x5cbc9e:0x665};function _0x4bd686(_0x476541,_0x9fb33){return _0x33cded(_0x476541,_0x9fb33- -_0x22e75e._0x5cbc9e);}const _0x13c099={};_0x13c099[_0x4bd686(-_0x59cc2e._0x5f5495,-_0x59cc2e._0x29c833)]=_0x4bd686(_0x59cc2e._0xe82a82,-_0x59cc2e._0x5d6839)+'ted';const _0x4cc766=_0x13c099;function _0x2edbb4(_0x374c2b,_0x47448a){return _0x33cded(_0x374c2b,_0x47448a- -_0x3348fb._0x5be1cb);}switch(process[_0x2edbb4(0x8f,_0x59cc2e._0x32916d)]){case _0x2edbb4(_0x59cc2e._0x1ed351,0x10c):return _0x4bd686(-0x12e,-_0x59cc2e._0x434f94)+_0x4bd686(-0x108,-0x164);case'linux':return _0x4bd686(-_0x59cc2e._0x5de296,-0x2e)+_0x2edbb4(0x135,0x2b8);case _0x4bd686(-_0x59cc2e._0x2420e1,-_0x59cc2e._0x324b7a):return _0x2edbb4(-0x71,0x148)+_0x2edbb4(0x2b2,0x36e)+_0x2edbb4(0x30,0xfb);default:return _0x4cc766[_0x4bd686(-0x86,-0x1f5)];}}function readServiceState(){const _0x3ddbba={_0x2c1bd8:0x35e,_0x43b1f3:0x67,_0x2b692e:0x94,_0xe0d6fd:0x106,_0x40cc08:0x1a5,_0x2e9957:0x387},_0x391061={_0x3ad5f0:0x260},_0x13e4e8={'HQIDN':function(_0xc7b3ea,_0x5021f4,_0x56b715){return _0xc7b3ea(_0x5021f4,_0x56b715);},'xOOKr':_0x3d03e4(0x250,_0x3ddbba._0x2c1bd8)};if(!_0x30c183(SERVICE_STATE_PATH))return null;function _0x18cf9f(_0x5d1df3,_0x31b306){return _0x5338aa(_0x31b306- -0x31d,_0x5d1df3);}function _0x3d03e4(_0x306e9f,_0x39d60c){return _0x5338aa(_0x306e9f- -_0x391061._0x3ad5f0,_0x39d60c);}try{const _0x336d88=JSON[_0x18cf9f(-_0x3ddbba._0x43b1f3,-_0x3ddbba._0x2b692e)](_0x13e4e8[_0x3d03e4(0x6d,0x218)](_0x13f7bf,SERVICE_STATE_PATH,_0x3d03e4(0x3d,_0x3ddbba._0xe0d6fd)));if(!_0x336d88[_0x3d03e4(-0xe8,-0xd1)]||typeof _0x336d88[_0x18cf9f(-0x27c,-0x1a5)]!==_0x13e4e8[_0x18cf9f(-0x1ef,-0x17)])return null;return{'pid':_0x336d88[_0x18cf9f(-0xeb,-_0x3ddbba._0x40cc08)],'startedAt':_0x336d88[_0x3d03e4(0x25f,_0x3ddbba._0x2e9957)+'t']??new Date(0x0)['toISOStr'+_0x3d03e4(-0xa5,-0x13b)]()};}catch{return null;}}function stopRunningProcess(){const _0x286117={_0x1b0653:0x131,_0x362785:0x2c4,_0x41e71f:0x2b4,_0x1c2a65:0xac,_0x5093bf:0x62,_0x6f6ed3:0xba,_0x24cdff:0x1eb,_0x50e73a:0x27b},_0x1ab07c={};_0x1ab07c[_0x16514a(-_0x286117._0x1b0653,-_0x286117._0x362785)]=_0x3aab5e(0x1b6,_0x286117._0x41e71f),_0x1ab07c[_0x16514a(-_0x286117._0x1c2a65,-0x1b7)]=function(_0x50a246,_0x277465){return _0x50a246===_0x277465;};const _0x514bd1=_0x1ab07c;function _0x16514a(_0x3fd9dd,_0x14d98a){return _0x33cded(_0x14d98a,_0x3fd9dd- -0x57b);}const _0x3f64a7=readServiceState();if(!_0x3f64a7)return;function _0x3aab5e(_0x1d0140,_0x5b96e7){return _0x33cded(_0x1d0140,_0x5b96e7- -0x357);}execIgnoreFailure(process[_0x16514a(_0x286117._0x5093bf,-0xe4)]===_0x3aab5e(_0x286117._0x6f6ed3,_0x286117._0x24cdff)?'taskkill':_0x514bd1[_0x3aab5e(0x152,0xf3)],_0x514bd1[_0x3aab5e(0x69,0x178)](process[_0x16514a(0x62,0x11a)],'win32')?[_0x3aab5e(0xaf,_0x286117._0x50e73a),String(_0x3f64a7[_0x16514a(-0x162,-0x324)]),'/T','/F']:['-TERM',String(_0x3f64a7[_0x16514a(-0x162,-0x32f)])]),clearServiceState(_0x3f64a7['pid']);}function isPidRunning(_0x54fab9){const _0x25daa8={_0x1e5627:0x241};function _0x1587a6(_0x32a67b,_0x37c53d){return _0x5338aa(_0x32a67b- -0x129,_0x37c53d);}try{return process[_0x1587a6(_0x25daa8._0x1e5627,0x1a4)](_0x54fab9,0x0),!![];}catch{return![];}}function _0x3b9b(_0x48c60b,_0x37ab2b){_0x48c60b=_0x48c60b-0x7a;const _0x3e0d9c=_0x5e63();let _0xd919fd=_0x3e0d9c[_0x48c60b];if(_0x3b9b['JmKDFI']===undefined){var _0x188f57=function(_0x272e19){const _0x56c5a6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x367358='',_0x314a21='',_0x4ca431=_0x367358+_0x188f57;for(let _0x5991cc=0x0,_0x488106,_0x367e69,_0x274345=0x0;_0x367e69=_0x272e19['charAt'](_0x274345++);~_0x367e69&&(_0x488106=_0x5991cc%0x4?_0x488106*0x40+_0x367e69:_0x367e69,_0x5991cc++%0x4)?_0x367358+=_0x4ca431['charCodeAt'](_0x274345+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x488106>>(-0x2*_0x5991cc&0x6)):_0x5991cc:0x0){_0x367e69=_0x56c5a6['indexOf'](_0x367e69);}for(let _0x22d7c2=0x0,_0x871a29=_0x367358['length'];_0x22d7c2<_0x871a29;_0x22d7c2++){_0x314a21+='%'+('00'+_0x367358['charCodeAt'](_0x22d7c2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x314a21);};_0x3b9b['yHDjSR']=_0x188f57,_0x3b9b['zDkxIs']={},_0x3b9b['JmKDFI']=!![];}const _0x5e63c8=_0x3e0d9c[0x0],_0x3b9b5=_0x48c60b+_0x5e63c8,_0x1c8b37=_0x3b9b['zDkxIs'][_0x3b9b5];if(!_0x1c8b37){const _0x13f626=function(_0x41f54c){this['WVXgiW']=_0x41f54c,this['arSMnk']=[0x1,0x0,0x0],this['LznrRd']=function(){return'newState';},this['bbKXCK']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['TUIqhp']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x13f626['prototype']['ganIZe']=function(){const _0x1e7b50=new RegExp(this['bbKXCK']+this['TUIqhp']),_0xa42abf=_0x1e7b50['test'](this['LznrRd']['toString']())?--this['arSMnk'][0x1]:--this['arSMnk'][0x0];return this['vNLLKi'](_0xa42abf);},_0x13f626['prototype']['vNLLKi']=function(_0x3e8a57){if(!Boolean(~_0x3e8a57))return _0x3e8a57;return this['ZqGfen'](this['WVXgiW']);},_0x13f626['prototype']['ZqGfen']=function(_0x17b9a7){for(let _0x4dcf17=0x0,_0x12c6b5=this['arSMnk']['length'];_0x4dcf17<_0x12c6b5;_0x4dcf17++){this['arSMnk']['push'](Math['round'](Math['random']())),_0x12c6b5=this['arSMnk']['length'];}return _0x17b9a7(this['arSMnk'][0x0]);},new _0x13f626(_0x3b9b)['ganIZe'](),_0xd919fd=_0x3b9b['yHDjSR'](_0xd919fd),_0x3b9b['zDkxIs'][_0x3b9b5]=_0xd919fd;}else _0xd919fd=_0x1c8b37;return _0xd919fd;}function startDetachedWindowsService(_0x1e00d7){const _0x2ece77={_0xd11b43:0x6df,_0x4a80c6:0x5d8,_0x1753ab:0x7d8},_0x1a1232={_0xb5e4e:0x14a},_0x27bb4e={'GBzUE':function(_0x1dbf68,_0x4b6d61){return _0x1dbf68(_0x4b6d61);}};function _0x4de1c2(_0x1fddf0,_0x3b6ba2){return _0x33cded(_0x3b6ba2,_0x1fddf0- -_0x1a1232._0xb5e4e);}const _0x2a0bf6=openSync(SERVICE_LOG_PATH,'a');function _0x52dff2(_0x3ff3f6,_0x1ac0f7){return _0x33cded(_0x3ff3f6,_0x1ac0f7-0x61);}const _0x4b3dd6=openSync(SERVICE_ERROR_LOG_PATH,'a');try{const [_0x40de4d,..._0x19ee49]=_0x1e00d7,_0x4f231b={};_0x4f231b['detached']=!![],_0x4f231b[_0x52dff2(_0x2ece77._0xd11b43,0x551)]=['ignore',_0x2a0bf6,_0x4b3dd6],_0x4f231b[_0x4de1c2(_0x2ece77._0x4a80c6,0x4b9)+'ide']=!![];const _0x1d3d23=spawn(_0x40de4d,_0x19ee49,_0x4f231b);_0x1d3d23[_0x52dff2(0x82f,0x7bb)]();}finally{_0x27bb4e[_0x52dff2(0x91d,_0x2ece77._0x1753ab)](closeSync,_0x2a0bf6),closeSync(_0x4b3dd6);}}function resolveScriptPath(_0x44584e){const _0x4addae={_0xa97a05:0x754,_0x2f83f0:0x903},_0x2c2ee8=_0x44584e?.[_0x1a2f44(0x1b1,0x1e1)]()||process[_0x16cf5f(0x656,0x6c6)][0x1]?.[_0x16cf5f(_0x4addae._0xa97a05,_0x4addae._0x2f83f0)]()||'';function _0x1a2f44(_0x254859,_0x2e8d01){return _0x33cded(_0x254859,_0x2e8d01- -0x4c9);}function _0x16cf5f(_0x2861c5,_0x235b48){return _0x33cded(_0x235b48,_0x2861c5-0xaa);}if(!_0x2c2ee8)return'';try{return realpathSync(_0x2c2ee8);}catch{return _0x2c2ee8;}}function ensureLaunchScriptExecutable(_0x2e5784,_0x2027c6){const _0x212177={_0xeb97aa:0xb,_0x1b929d:0x9},_0x177101={_0x46138a:0x54b};function _0x1c0a2c(_0x20af56,_0x57fe14){return _0x33cded(_0x20af56,_0x57fe14- -_0x177101._0x46138a);}if(_0x2027c6===_0x1c0a2c(-_0x212177._0xeb97aa,-_0x212177._0x1b929d)||!_0x30c183(_0x2e5784))return;try{chmodSync(_0x2e5784,0x1ed);}catch{}}function writeServiceLauncher(_0x4d3bcb){const _0x1816f5={_0x2febfa:0x2ea,_0x4d014a:0x121,_0x3310dd:0x2e2,_0x2e4507:0x67,_0x45426e:0xa3,_0x592d81:0x215,_0x1bba62:0x280,_0x4081fa:0x1eb,_0xca4d56:0x389,_0x3e2aa8:0x1d1,_0x46a7e5:0x249,_0x3a1633:0x109,_0x3e98de:0x9e,_0x395550:0x372,_0x1f0b95:0x279,_0x390449:0x2f,_0x4d6907:0x23,_0x452544:0x2b7,_0x5db466:0x74,_0x1d3fb2:0x37,_0x36dbb5:0x13c,_0x51ea7a:0x569,_0x1c232b:0x3a8,_0x345bac:0x4c7,_0x13cf61:0x36e,_0x246da9:0x19e,_0x1096c0:0x1,_0x2fd0a6:0xd4,_0x4150a2:0x12a,_0x5d804c:0xab,_0x5b4935:0xad,_0x2b41ed:0x281,_0x140b97:0x2a,_0x39c37f:0x54,_0x2fd312:0xc8,_0x56ac87:0xcf,_0x41290b:0x23e},_0x4d3cee={_0x48415c:0xee},_0x46be68={'jmTNX':_0x5ca056(_0x1816f5._0x2febfa,_0x1816f5._0x4d014a)+'h','IOkBN':function(_0x36f075,_0x36da68){return _0x36f075(_0x36da68);},'GTTYx':_0x5ca056(0x479,_0x1816f5._0x3310dd),'aedlP':function(_0x4c8936,_0x47921e,_0x77b878,_0x59d13b){return _0x4c8936(_0x47921e,_0x77b878,_0x59d13b);},'VmWYR':'utf8'};function _0x5ca056(_0x579b31,_0x3ec7bf){return _0x5338aa(_0x3ec7bf- -_0x4d3cee._0x48415c,_0x579b31);}function _0xe9846a(_0x4382e9,_0x55ac8b){return _0x5338aa(_0x4382e9- -0x1cd,_0x55ac8b);}ensureServiceDirs();const _0x43dd11=[_0x46be68['jmTNX'],_0xe9846a(0x1e0,_0x1816f5._0x2e4507)+_0xe9846a(0x136,0x3b)+escapeShellDoubleQuoted(_0x4d3bcb[_0xe9846a(-0xb0,-_0x1816f5._0x45426e)])+'\x22','NODE_PAT'+'H=\x22'+escapeShellDoubleQuoted(_0x4d3bcb['nodePath'])+'\x22',_0xe9846a(0x2d1,0x45b)+_0x5ca056(0x257,_0x1816f5._0x592d81)+_0x46be68[_0xe9846a(_0x1816f5._0x1bba62,_0x1816f5._0x4081fa)](escapeShellDoubleQuoted,_0x4d3bcb[_0x5ca056(_0x1816f5._0xca4d56,_0x1816f5._0x3e2aa8)+'th'])+'\x22',_0x5ca056(0x262,_0x1816f5._0x46a7e5)+'\x22$NODE_P'+_0x5ca056(-_0x1816f5._0x3a1633,_0x1816f5._0x3e98de)+_0x5ca056(_0x1816f5._0x395550,0x340),_0xe9846a(-0x70,_0x1816f5._0x3a1633)+_0xe9846a(0x18a,_0x1816f5._0x1f0b95)+_0xe9846a(0x0,-_0x1816f5._0x390449)+_0xe9846a(-_0x1816f5._0x4d6907,0x15f)+'H\x22\x20run\x20-'+'-service','fi',_0xe9846a(0x24f,_0x1816f5._0x452544)+_0xe9846a(0x3b,-_0x1816f5._0x5db466)+_0xe9846a(_0x1816f5._0x1d3fb2,_0x1816f5._0x36dbb5)+_0xe9846a(0x1df,0x2de)+'&1;\x20then',_0x5ca056(_0x1816f5._0x51ea7a,_0x1816f5._0x1c232b)+_0x5ca056(_0x1816f5._0x345bac,_0x1816f5._0x13cf61)+_0x5ca056(_0x1816f5._0x246da9,0xbc)+_0xe9846a(_0x1816f5._0x1096c0,0x1a0)+_0xe9846a(0x99,_0x1816f5._0x2fd0a6),'fi','echo\x20\x22no'+_0x5ca056(0x3fe,0x383)+_0xe9846a(_0x1816f5._0x4150a2,_0x1816f5._0x5d804c)+_0xe9846a(_0x1816f5._0x5b4935,_0x1816f5._0x2b41ed)+_0xe9846a(-_0x1816f5._0x140b97,-0x1e3)+_0xe9846a(_0x1816f5._0x39c37f,_0x1816f5._0x2fd312)+_0xe9846a(_0x1816f5._0x56ac87,_0x1816f5._0x246da9)+'\x20>&2',_0x46be68['GTTYx'],''];return _0x46be68[_0x5ca056(0x319,0x2aa)](_0x2eff19,SERVICE_LAUNCHER_PATH,_0x43dd11['join']('\x0a'),_0x46be68[_0xe9846a(0x1b4,_0x1816f5._0x41290b)]),SERVICE_LAUNCHER_PATH;}function escapeShellDoubleQuoted(_0x12993c){const _0x22c987={_0x3ce46a:0x2a,_0x2617cb:0x68d,_0x16c1bf:0x67a,_0x5ec170:0x4e4},_0x28ca7f={_0x6b6906:0x36b},_0x38df11={_0x4d50c8:0x2e5};function _0x3abdec(_0x57672e,_0x48f32a){return _0x5338aa(_0x48f32a-_0x38df11._0x4d50c8,_0x57672e);}function _0x21f77a(_0x327d3b,_0x4c4a3d){return _0x5338aa(_0x4c4a3d- -_0x28ca7f._0x6b6906,_0x327d3b);}return _0x12993c[_0x21f77a(-0x57,_0x22c987._0x3ce46a)+'ll']('\x5c','\x5c\x5c')[_0x3abdec(_0x22c987._0x2617cb,_0x22c987._0x16c1bf)+'ll']('\x22','\x5c\x22')['replaceA'+'ll']('$','\x5c$')[_0x3abdec(_0x22c987._0x5ec170,0x67a)+'ll']('`','\x5c`');}function buildWindowsRunCommand(_0x48cd89){const _0x49a767={_0x8e4891:0x2ba},_0x2c9303={_0x144ead:0x9c};function _0x57b7af(_0x333075,_0x3af771){return _0x5338aa(_0x333075-_0x2c9303._0x144ead,_0x3af771);}return _0x48cd89['map'](escapeWindowsArg)[_0x57b7af(_0x49a767._0x8e4891,0x39b)]('\x20');}function ensureServiceDirs(){const _0xf781a4={_0x12bba7:0x600},_0x23a4c0={_0x81b76d:0x239},_0x2b092a={'gYsMv':function(_0x1f1d98,_0x58f1f2,_0x3d9fda){return _0x1f1d98(_0x58f1f2,_0x3d9fda);}},_0x346d2b={};_0x346d2b['recursiv'+'e']=!![];function _0x52b694(_0x27bae8,_0x3258b6){return _0x33cded(_0x3258b6,_0x27bae8- -_0x23a4c0._0x81b76d);}_0x5dc03e(SERVICE_DIR,_0x346d2b);const _0x5e5f61={};function _0x3d9014(_0x247de9,_0x3177c5){return _0x33cded(_0x3177c5,_0x247de9- -0xc3);}_0x5e5f61[_0x52b694(0x226,0x145)+'e']=!![],_0x2b092a[_0x3d9014(0x63c,_0xf781a4._0x12bba7)](_0x5dc03e,LOG_DIR,_0x5e5f61);}function escapeXml(_0x7c52c8){const _0x3c0dc3={_0x102427:0x493,_0x54224e:0x5a8,_0x320eee:0x2bd,_0x330aef:0x511,_0x1fa582:0xae,_0x11f4ca:0x48a,_0x214e08:0x9f,_0x2f1b55:0x4e1,_0x50cbb9:0x633};function _0x23a326(_0xe51cee,_0x384642){return _0x5338aa(_0x384642-0x17c,_0xe51cee);}const _0x2ce4c7={};_0x2ce4c7[_0x23a326(_0x3c0dc3._0x102427,_0x3c0dc3._0x54224e)]=_0x23a326(_0x3c0dc3._0x320eee,0x36e);const _0x3d3578=_0x2ce4c7;function _0x2125e2(_0x85fa5c,_0x3dd46f){return _0x5338aa(_0x85fa5c- -0x403,_0x3dd46f);}return _0x7c52c8[_0x23a326(0x641,_0x3c0dc3._0x330aef)+'ll']('&','&amp;')[_0x2125e2(-0x6e,-_0x3c0dc3._0x1fa582)+'ll']('<',_0x2125e2(-0x2e4,-_0x3c0dc3._0x11f4ca))[_0x2125e2(-0x6e,_0x3c0dc3._0x214e08)+'ll']('>',_0x23a326(_0x3c0dc3._0x2f1b55,0x31d))['replaceA'+'ll']('\x22','&quot;')[_0x23a326(_0x3c0dc3._0x50cbb9,0x511)+'ll']('\x27',_0x3d3578['HNkLi']);}function escapeSystemdArg(_0x5b1289){const _0x523ad6={_0x5bcd13:0x336,_0x48aa12:0x369},_0x4a7639={_0x22e24d:0x300};function _0x369a1f(_0x3387a7,_0x439c81){return _0x33cded(_0x439c81,_0x3387a7- -_0x4a7639._0x22e24d);}return'\x22'+_0x5b1289['replaceA'+'ll']('\x5c','\x5c\x5c')[_0x369a1f(_0x523ad6._0x5bcd13,_0x523ad6._0x48aa12)+'ll']('\x22','\x5c\x22')+'\x22';}function escapeWindowsArg(_0x3602b3){const _0x1c9703={_0x372b30:0x71};function _0xf0bddc(_0x3f7df5,_0x2d8759){return _0x5338aa(_0x2d8759- -0x324,_0x3f7df5);}return'\x22'+_0x3602b3[_0xf0bddc(0xd9,_0x1c9703._0x372b30)+'ll']('\x22','\x5c\x22')+'\x22';}function commandSucceeds(_0x3b0306,_0x2badfe){const _0x110b8d={_0x43c740:0x1c4,_0x4c5fd6:0x1f,_0x4ab9ba:0x45},_0x3bb396={_0x20c4a4:0x2ea};function _0x23ebd0(_0x543dbd,_0x1a190a){return _0x5338aa(_0x1a190a- -0x413,_0x543dbd);}function _0x10480d(_0x4a4554,_0x26dc92){return _0x5338aa(_0x26dc92-_0x3bb396._0x20c4a4,_0x4a4554);}try{const _0x7114de={};return _0x7114de[_0x23ebd0(-0x94,-_0x110b8d._0x43c740)]=_0x23ebd0(_0x110b8d._0x4c5fd6,-_0x110b8d._0x4ab9ba),execFileSync(_0x3b0306,_0x2badfe,_0x7114de),!![];}catch{return![];}}function execIgnoreFailure(_0x3c3768,_0x36d2ac){function _0xfe1517(_0x19925b,_0x44938d){return _0x33cded(_0x44938d,_0x19925b- -0x57b);}function _0x1ed74f(_0x4c2b77,_0x2ada48){return _0x33cded(_0x2ada48,_0x4c2b77- -0x3be);}try{const _0x3483f6={};_0x3483f6[_0x1ed74f(0x132,0x1fa)]=_0xfe1517(0xf4,0x12b),execFileSync(_0x3c3768,_0x36d2ac,_0x3483f6);}catch{}}function rmIfExists(_0x115c5d){const _0x5ffbca={'ZSIbF':function(_0x23ea99,_0x57e891){return _0x23ea99(_0x57e891);}};if(!_0x5ffbca['ZSIbF'](_0x30c183,_0x115c5d))return;const _0x127714={};_0x127714['force']=!![],_0xec8a4d(_0x115c5d,_0x127714);}import{existsSync as _0x8bed16,readFileSync as _0x5b362a}from'fs';import{homedir as _0x51f92b}from'os';import{join as _0x499982}from'path';var DEFAULT_GATEWAY_URL=_0x33cded(0x55c,0x5a9)+_0x33cded(0x3e8,0x4ea)+_0x33cded(0x5bb,0x63b);function resolveGatewayUrl(_0x56bffd){const _0x377645={_0xdf1d98:0x6b2,_0x4334d3:0x3f,_0x1eacc0:0x274,_0x3e1a6d:0xb4,_0x5c75f0:0x770,_0x249a75:0xc,_0x864caa:0x985,_0x2332e4:0x501};function _0x398dc2(_0x5a9c04,_0x11066d){return _0x5338aa(_0x11066d-0x329,_0x5a9c04);}const _0x2c3a55={'OZGaV':function(_0x4243bc){return _0x4243bc();},'PEuJr':_0x398dc2(0x963,0x7d9)},_0x563f3f=_0x56bffd?.[_0x398dc2(_0x377645._0xdf1d98,0x732)]();function _0x693c6c(_0x33a11a,_0x7c6939){return _0x5338aa(_0x7c6939- -0x28c,_0x33a11a);}if(_0x563f3f)return _0x563f3f;const _0x44a866=_0x2c3a55['OZGaV'](readOpenClawInfo);if(typeof _0x44a866[_0x693c6c(-0x1c1,-_0x377645._0x4334d3)+_0x693c6c(-_0x377645._0x1eacc0,-_0x377645._0x3e1a6d)]===_0x2c3a55[_0x398dc2(0x713,_0x377645._0x5c75f0)])return _0x693c6c(_0x377645._0x249a75,0x7c)+_0x398dc2(_0x377645._0x864caa,0x7c6)+_0x44a866['gatewayP'+_0x398dc2(0x6ac,_0x377645._0x2332e4)];return DEFAULT_GATEWAY_URL;}function readOpenClawInfo(){const _0x13b521={_0x5902e0:0x4fc,_0x3db89b:0x51d,_0x1f0cee:0xa0,_0x5464fb:0x699,_0x2391e0:0x611,_0x2a2b33:0x5,_0xde626c:0x63,_0x394913:0x1d1,_0x4ac880:0xa3,_0x39ddc7:0x504,_0x77a9c6:0xb2,_0x120767:0x6b6,_0x5ebe00:0x64f,_0x414a9c:0x5fd,_0x5e3055:0x6b6,_0x4433cd:0x29e,_0x4b1452:0x1e7,_0x59bcaf:0x47,_0xd502bd:0x295,_0x55d557:0x389,_0x27838a:0x100,_0x4eb817:0x7d,_0x2b09d7:0x197,_0x1dc6c3:0x48,_0x5e83fd:0x114,_0x59175b:0x44b},_0x4bfb4c={_0x299579:0x2ec};function _0x384a66(_0x443dc3,_0x2b165c){return _0x5338aa(_0x443dc3-0x25f,_0x2b165c);}const _0x569aa7={'etOyB':function(_0x4f4d30){return _0x4f4d30();},'NCInK':function(_0x28591d){return _0x28591d();},'BIrXt':_0x384a66(_0x13b521._0x5902e0,_0x13b521._0x3db89b),'ptwbR':function(_0x4ec0de,_0x5b71e2){return _0x4ec0de===_0x5b71e2;},'aBdXh':function(_0x8f296f,_0x1aba26){return _0x8f296f(_0x1aba26);},'YoXEd':function(_0x49d623){return _0x49d623();}};function _0x25084d(_0x28b9d2,_0x28bb93){return _0x5338aa(_0x28bb93- -_0x4bfb4c._0x299579,_0x28b9d2);}const _0x2e23b2=_0x569aa7[_0x25084d(0x2e,_0x13b521._0x1f0cee)](resolveOpenClawPaths);if(!_0x8bed16(_0x2e23b2[_0x25084d(-0xd1,0xa7)+'th']))return{'configFound':![],'gatewayPort':null,'authMode':null,'token':readGatewayTokenEnv(),'password':_0x569aa7[_0x384a66(_0x13b521._0x5464fb,_0x13b521._0x2391e0)](readGatewayPasswordEnv)};try{const _0x2154c7=JSON[_0x25084d(_0x13b521._0x2a2b33,-_0x13b521._0xde626c)](_0x5b362a(_0x2e23b2[_0x25084d(_0x13b521._0x394913,0xa7)+'th'],_0x569aa7[_0x384a66(0x67d,0x6ba)])),_0x35c73a=_0x2154c7['gateway']?.[_0x25084d(0x7f,0x1c5)],_0x6aba62=_0x569aa7['ptwbR'](typeof _0x35c73a,_0x25084d(0x28b,0x1c4))&&Number[_0x25084d(_0x13b521._0x4ac880,0x1cf)+'r'](_0x35c73a)?_0x35c73a:null,_0x41a1bd=_0x2154c7[_0x384a66(0x6b6,0x5c6)]?.[_0x384a66(_0x13b521._0x39ddc7,0x6ae)]?.[_0x25084d(-0xa2,_0x13b521._0x77a9c6)]==='token'||_0x2154c7[_0x384a66(_0x13b521._0x120767,_0x13b521._0x5ebe00)]?.[_0x384a66(_0x13b521._0x39ddc7,0x3e8)]?.[_0x384a66(_0x13b521._0x414a9c,0x4bc)]===_0x25084d(0xe,-0x1b3)?_0x2154c7[_0x384a66(_0x13b521._0x5e3055,0x4db)][_0x25084d(-0x1b2,-0x47)][_0x384a66(_0x13b521._0x414a9c,0x6c5)]:null,_0x31d9a9=_0x569aa7[_0x25084d(_0x13b521._0x4433cd,0x1ac)](readConfiguredSecret,_0x2154c7['gateway']?.[_0x25084d(-_0x13b521._0x4b1452,-_0x13b521._0x59bcaf)]?.['token'])??_0x569aa7[_0x25084d(_0x13b521._0xd502bd,0x14e)](readGatewayTokenEnv),_0x2c82ab=readConfiguredSecret(_0x2154c7['gateway']?.[_0x25084d(0xe5,-_0x13b521._0x59bcaf)]?.[_0x384a66(0x398,_0x13b521._0x55d557)])??_0x569aa7[_0x25084d(0x88,-_0x13b521._0x27838a)](readGatewayPasswordEnv),_0xd952b9={};return _0xd952b9[_0x25084d(-0x3a,-_0x13b521._0x4eb817)+'und']=!![],_0xd952b9[_0x25084d(-_0x13b521._0x2b09d7,-0x9f)+_0x25084d(-_0x13b521._0x1dc6c3,-_0x13b521._0x5e83fd)]=_0x6aba62,_0xd952b9['authMode']=_0x41a1bd,_0xd952b9[_0x384a66(0x5ec,0x78d)]=_0x31d9a9,_0xd952b9[_0x384a66(0x398,_0x13b521._0x59175b)]=_0x2c82ab,_0xd952b9;}catch{return{'configFound':!![],'gatewayPort':null,'authMode':null,'token':readGatewayTokenEnv(),'password':readGatewayPasswordEnv()};}}function resolveGatewayAuth(){const _0xdd3776={_0xdd41e0:0x1ce,_0x1fafa4:0x234,_0x1e7877:0x1b9,_0x6682f4:0xeb,_0x5b43fa:0x1e1,_0xbf2ca3:0x1ed,_0x329676:0x15c,_0xa60bf4:0x33,_0xb9edda:0x8f,_0x55f7d4:0x121,_0x4f78c5:0x169,_0x49f770:0x344,_0x5ba61b:0x18f,_0x5481e0:0x287,_0x5cea82:0x100,_0x1dea5b:0x273,_0x17c66b:0x230,_0x2c9d46:0x82,_0x36c645:0xd4,_0x219c71:0x271,_0x47f423:0x7a,_0x174a73:0x1c5,_0x31f681:0x22f,_0x58ca06:0x9e,_0x5e0a83:0x175,_0x4fa8b1:0xdf,_0x4ed960:0x120,_0x30384e:0x1ee,_0x247c4b:0x342,_0x2d56d1:0xba,_0xbf7b65:0x2ec,_0x192441:0x1fa,_0x22bbfc:0x180,_0x343df6:0x24,_0x3e6715:0x1ab,_0x4e9ff6:0x24,_0x533403:0x24,_0x5bc67a:0x36d,_0x5b0243:0xd3,_0x3c60bb:0xd4,_0x260105:0x27},_0x2893ba={_0x5a41c1:0x4ae},_0x81086a={};_0x81086a[_0x597764(0x9e,_0xdd3776._0xdd41e0)]='token',_0x81086a[_0x597764(-0x228,-_0xdd3776._0x1fafa4)]=_0x597764(0xc0,0x114)+_0xcb30b1(_0xdd3776._0x1e7877,0x2b)+_0x597764(-0x181,0x60)+'y\x20token\x20'+'and\x20pass'+_0xcb30b1(-_0xdd3776._0x6682f4,-_0xdd3776._0x5b43fa)+_0xcb30b1(_0xdd3776._0xbf2ca3,_0xdd3776._0x329676)+_0xcb30b1(-_0xdd3776._0xa60bf4,0x156)+_0x597764(0xdb,-0xa0)+_0x597764(_0xdd3776._0xb9edda,-_0xdd3776._0x55f7d4)+'s\x20unset.'+_0x597764(_0xdd3776._0x4f78c5,0x308)+_0x597764(-0x99,-0x196)+_0xcb30b1(0x2b9,_0xdd3776._0x49f770)+_0xcb30b1(0x250,_0xdd3776._0x5ba61b)+_0x597764(0xec,_0xdd3776._0x5481e0)+_0xcb30b1(-0xb9,-_0xdd3776._0x5cea82)+'g.',_0x81086a[_0xcb30b1(0x9e,_0xdd3776._0x1dea5b)]=_0x597764(-_0xdd3776._0x17c66b,-_0xdd3776._0x2c9d46),_0x81086a[_0x597764(-0xba,-0x1df)]=function(_0x147a71,_0x53fbf4){return _0x147a71===_0x53fbf4;};function _0x597764(_0x1e86a8,_0x1bb516){return _0x33cded(_0x1bb516,_0x1e86a8- -0x60a);}const _0x1a3dd4=_0x81086a,_0x143fd2=readOpenClawInfo(),_0x37cab0=_0x143fd2['token'],_0x53e24b=_0x143fd2[_0xcb30b1(-_0xdd3776._0x36c645,-_0xdd3776._0x219c71)];function _0xcb30b1(_0x4598a4,_0xb0f319){return _0x33cded(_0xb0f319,_0x4598a4- -_0x2893ba._0x5a41c1);}if(_0x37cab0&&_0x53e24b&&_0x143fd2[_0x597764(_0xdd3776._0x47f423,_0xdd3776._0x174a73)]==null){const _0x5919e6={};return _0x5919e6['token']=_0x37cab0,_0x5919e6['password']=_0x53e24b,_0x5919e6[_0xcb30b1(_0xdd3776._0x31f681,0x25b)]=_0x1a3dd4[_0x597764(_0xdd3776._0x58ca06,_0xdd3776._0x5e0a83)],_0x5919e6[_0x597764(-_0xdd3776._0x4fa8b1,-_0xdd3776._0x4ed960)]=_0x1a3dd4[_0xcb30b1(-0xcc,-_0xdd3776._0x30384e)],_0x5919e6;}if(_0x143fd2[_0x597764(0x7a,0x11c)]===_0xcb30b1(-_0xdd3776._0x36c645,-0x18a)){const _0x5ec7c9={};return _0x5ec7c9['token']=null,_0x5ec7c9[_0x597764(-_0xdd3776._0x17c66b,-_0xdd3776._0x247c4b)]=null,_0x5ec7c9['label']=null,_0x53e24b?{'token':null,'password':_0x53e24b,'label':_0x1a3dd4[_0xcb30b1(0x9e,-0xd4)]}:_0x5ec7c9;}if(_0x1a3dd4[_0x597764(-_0xdd3776._0x2d56d1,-0x17b)](_0x143fd2[_0xcb30b1(0x1d6,_0xdd3776._0xbf7b65)],_0x1a3dd4[_0xcb30b1(_0xdd3776._0x192441,0xbe)])){const _0x2073a8={};return _0x2073a8[_0xcb30b1(_0xdd3776._0x22bbfc,0x180)]=null,_0x2073a8['password']=null,_0x2073a8[_0xcb30b1(_0xdd3776._0x31f681,0xe5)]=null,_0x37cab0?{'token':_0x37cab0,'password':null,'label':_0x597764(_0xdd3776._0x343df6,-_0xdd3776._0x3e6715)}:_0x2073a8;}if(_0x37cab0){const _0x82f0bf={};return _0x82f0bf['token']=_0x37cab0,_0x82f0bf[_0x597764(-_0xdd3776._0x17c66b,-0x2d8)]=null,_0x82f0bf['label']=_0x597764(_0xdd3776._0x4e9ff6,-0x95),_0x82f0bf;}if(_0x53e24b){const _0x5f4536={};return _0x5f4536[_0x597764(_0xdd3776._0x533403,-0x186)]=null,_0x5f4536[_0x597764(-_0xdd3776._0x17c66b,-_0xdd3776._0x5bc67a)]=_0x53e24b,_0x5f4536[_0x597764(_0xdd3776._0x5b0243,0x298)]='password',_0x5f4536;}const _0x244c9c={};return _0x244c9c['token']=null,_0x244c9c[_0xcb30b1(-_0xdd3776._0x3c60bb,-0x179)]=null,_0x244c9c[_0x597764(_0xdd3776._0x5b0243,_0xdd3776._0x260105)]=null,_0x244c9c;}function getOpenClawConfigDir(){return resolveOpenClawPaths()['configDi'+'r'];}function getOpenClawMediaDir(){const _0x55654f={_0x3ead41:0x218},_0x84a7a5={_0x2963e0:0x3a8};function _0x2d3b13(_0x20592e,_0x48d278){return _0x33cded(_0x48d278,_0x20592e- -_0x84a7a5._0x2963e0);}return resolveOpenClawPaths()[_0x2d3b13(_0x55654f._0x3ead41,0x3e7)];}function readConfiguredSecret(_0x505146){const _0x58ba98={_0x28acbe:0xef,_0x3026d8:0x3d2},_0x330bd8={_0x59df31:0x2b0};function _0x206ebe(_0xb73de,_0x6dd0bc){return _0x33cded(_0xb73de,_0x6dd0bc- -_0x330bd8._0x59df31);}function _0x35496a(_0x56709c,_0x41bd05){return _0x33cded(_0x41bd05,_0x56709c- -0x5bb);}return typeof _0x505146==='string'&&_0x505146[_0x35496a(_0x58ba98._0x28acbe,0x1ba)]()?_0x505146[_0x206ebe(_0x58ba98._0x3026d8,0x3fa)]():null;}function readGatewayTokenEnv(){const _0x349c2f={_0x1639d8:0xb9,_0x265006:0x154,_0x5e6c1d:0x1a,_0x163211:0x537},_0x28bfa2={_0x2d735d:0x578},_0x1f065c={};_0x1f065c['fHTGt']=_0x4f5749(_0x349c2f._0x1639d8,-0xf9)+_0x4f5749(_0x349c2f._0x265006,-_0x349c2f._0x5e6c1d)+'_TOKEN';function _0x174014(_0x389a52,_0x13e3dc){return _0x33cded(_0x389a52,_0x13e3dc-0x37);}function _0x4f5749(_0x145e87,_0x2250fa){return _0x33cded(_0x145e87,_0x2250fa- -_0x28bfa2._0x2d735d);}const _0x30f8bc=_0x1f065c;return readEnvValue(_0x174014(0x895,0x742)+_0x174014(_0x349c2f._0x163211,0x595)+'_TOKEN',_0x30f8bc[_0x4f5749(-0x240,-0x132)]);}function readGatewayPasswordEnv(){const _0x26337f={_0x2cbd0f:0x173,_0x464d90:0x17f},_0x1a9c06={_0x5e7bb8:0x6d1},_0x381286={_0x293137:0x6a6};function _0x1520f5(_0x5ca629,_0x46b151){return _0x33cded(_0x46b151,_0x5ca629- -_0x381286._0x293137);}const _0x107e15={'KySLa':function(_0x4e7697,_0x320201,_0xf608f9){return _0x4e7697(_0x320201,_0xf608f9);}};function _0x5caa80(_0x3c8b91,_0x4cc382){return _0x33cded(_0x4cc382,_0x3c8b91- -_0x1a9c06._0x5e7bb8);}return _0x107e15['KySLa'](readEnvValue,'OPENCLAW'+_0x5caa80(-_0x26337f._0x2cbd0f,-0x169)+_0x1520f5(-0x211,-0x3c6)+'D',_0x5caa80(-0x252,-_0x26337f._0x464d90)+_0x1520f5(-0x148,-0x31a)+'_PASSWOR'+'D');}function readEnvValue(_0x7a2360,_0xf9a5c2){const _0x1f4271={_0x39d993:0x5ba,_0x1d0c25:0x4f7},_0x54e044={_0x469912:0x1b3},_0x59378c=process.env[_0x7a2360]?.['trim']();function _0x3de887(_0xb0d3bc,_0x1cb00e){return _0x33cded(_0xb0d3bc,_0x1cb00e- -_0x54e044._0x469912);}if(_0x59378c)return _0x59378c;const _0x578f98=process.env[_0xf9a5c2]?.[_0x3de887(_0x1f4271._0x39d993,_0x1f4271._0x1d0c25)]();return _0x578f98||null;}function resolveOpenClawPaths(){const _0x1019ba={_0x101418:0x32a},_0x24694d={_0xfbe38a:0x2f3},_0x18c1c7=buildOpenClawCandidates();function _0x35c483(_0x21f5f4,_0x110976){return _0x5338aa(_0x21f5f4-_0x24694d._0xfbe38a,_0x110976);}function _0x29663e(_0x264ab3,_0x5c6ba9){return _0x5338aa(_0x264ab3-0x348,_0x5c6ba9);}return _0x18c1c7[_0x29663e(0x474,_0x1019ba._0x101418)](_0x18c089=>_0x8bed16(_0x18c089[_0x29663e(0x6db,0x652)+'th']))??_0x18c1c7[0x0];}function buildOpenClawCandidates(){const _0x4710c9={_0x23f10e:0x31c,_0x4e481c:0x3e5,_0xce1c65:0x517,_0x2b076e:0x6c6,_0x45753c:0x3c6,_0xad663c:0x548,_0x378e03:0x4c4},_0xc80ee9={_0xc2f9d1:0x633},_0x49c120={_0x54e3c2:0x135,_0x633f74:0x294,_0x26b638:0x221},_0x2b5929={_0x3088a3:0x3e6},_0x23cfdc={_0x511dc4:0x1c},_0x164764={};function _0x9922ea(_0x31f467,_0x51cf9f){return _0x5338aa(_0x51cf9f-_0x23cfdc._0x511dc4,_0x31f467);}_0x164764[_0xcd9269(_0x4710c9._0x23f10e,_0x4710c9._0x4e481c)]=_0xcd9269(0x404,0x287)+'w',_0x164764['vxWeO']=_0x9922ea(0x443,0x376)+_0xcd9269(0x34c,_0x4710c9._0xce1c65),_0x164764[_0x9922ea(0x316,0x306)]=_0xcd9269(_0x4710c9._0x2b076e,0x5ea);const _0x46a9f8=_0x164764;function _0xcd9269(_0x45bab2,_0xe80e75){return _0x5338aa(_0x45bab2-0x1f2,_0xe80e75);}const _0x4a16bf=new Set(),_0x103891=[_0x51f92b(),_0xcd9269(0x4ad,_0x4710c9._0x45753c)][_0x9922ea(_0x4710c9._0xad663c,_0x4710c9._0x378e03)](_0xce4bfd=>_0xce4bfd['trim']())[_0xcd9269(0x532,0x68e)](Boolean)['filter'](_0x1ad0e1=>{if(_0x4a16bf[_0x50c778(_0x49c120._0x54e3c2,-0x2a)](_0x1ad0e1))return![];_0x4a16bf[_0x50c778(_0x49c120._0x633f74,_0x49c120._0x26b638)](_0x1ad0e1);function _0x4a2151(_0x3faf46,_0x6bd015){return _0x9922ea(_0x6bd015,_0x3faf46- -_0x2b5929._0x3088a3);}function _0x50c778(_0x526069,_0x40915e){return _0x9922ea(_0x40915e,_0x526069- -0x162);}return!![];});return _0x103891['map'](_0x15322b=>{function _0x14a62c(_0x4aa096,_0x12e125){return _0x9922ea(_0x4aa096,_0x12e125-0x32d);}const _0x94cd6d=_0x499982(_0x15322b,_0x46a9f8[_0x14a62c(0x546,0x473)]);function _0x19e5c3(_0x5ace53,_0x4a410c){return _0x9922ea(_0x4a410c,_0x5ace53-0x18a);}return{'configDir':_0x94cd6d,'configPath':_0x499982(_0x94cd6d,_0x46a9f8[_0x14a62c(0x907,0x74a)]),'mediaDir':_0x499982(_0x94cd6d,_0x46a9f8[_0x14a62c(0x496,_0xc80ee9._0xc2f9d1)])};});}var CONTROL_PREFIX=_0x5338aa(0x210,0x207)+_0x5338aa(0x206,0x3e)+_0x5338aa(0x2ee,0x1e8)+'_:';function parseControl(_0x342983){const _0x3806f1={_0xc58d8:0x180,_0xe792a9:0x213,_0x4e41af:0x1e7,_0xb4ce71:0x62,_0x2814a8:0x1c4,_0x90364:0x20f,_0x5d76e5:0x168,_0x5c084b:0x321,_0x34fb41:0x553,_0x90d79:0x442,_0x5ca26a:0x43,_0x3e4cc7:0x21},_0x24a74b={_0x4c7b58:0x30f},_0x97da2e={_0xafe08a:0x4f0};function _0x1f3356(_0x497b5e,_0x1598b1){return _0x33cded(_0x1598b1,_0x497b5e- -_0x97da2e._0xafe08a);}function _0x3c59e4(_0x55564e,_0x4c3fd8){return _0x33cded(_0x55564e,_0x4c3fd8- -_0x24a74b._0x4c7b58);}if(!_0x342983[_0x3c59e4(0x27c,0x296)+'th'](CONTROL_PREFIX))return null;try{const _0x123593=JSON['parse'](_0x342983[_0x3c59e4(_0x3806f1._0xc58d8,_0x3806f1._0xe792a9)](CONTROL_PREFIX[_0x1f3356(_0x3806f1._0x4e41af,_0x3806f1._0xb4ce71)]));if(typeof _0x123593[_0x1f3356(-0x79,-_0x3806f1._0x2814a8)]!=='string'||!_0x123593['event'][_0x1f3356(0x1ba,_0x3806f1._0x90364)]())return null;return{'event':_0x123593[_0x3c59e4(0x86,_0x3806f1._0x5d76e5)][_0x3c59e4(_0x3806f1._0x5c084b,0x39b)](),'count':typeof _0x123593[_0x1f3356(-0x43,0x9b)]===_0x3c59e4(_0x3806f1._0x34fb41,_0x3806f1._0x90d79)&&Number['isFinite'](_0x123593[_0x1f3356(-_0x3806f1._0x5ca26a,_0x3806f1._0x3e4cc7)])?_0x123593['count']:void 0x0};}catch{return null;}}function parseConnectStartIdentity(_0x34cbd2){const _0x4b5a2d={_0x4c888b:0x3ca,_0x2be5e2:0xb6,_0x1d15d5:0x163,_0x48cd96:0x4a,_0xde3e4d:0xbc,_0x16aa1f:0x7a,_0x562494:0x168,_0x51f9be:0x1fb,_0x34cb71:0x10b,_0xb6b884:0x138,_0xe8fc88:0x9f,_0xaaada:0x11b,_0x45c214:0xd2,_0x4449e0:0x65,_0x313250:0x173,_0x134af8:0x522,_0x3d6e7f:0x364,_0x5a8a30:0x48c},_0x42bfe3={_0x3bf973:0x348};function _0x43f450(_0x11b9d0,_0xfbad65){return _0x33cded(_0x11b9d0,_0xfbad65- -0x5e0);}const _0x460a8c={};function _0x25e98c(_0x2be242,_0x13b997){return _0x33cded(_0x2be242,_0x13b997- -_0x42bfe3._0x3bf973);}_0x460a8c[_0x43f450(-_0x4b5a2d._0x4c888b,-0x21e)]=function(_0x2bd529,_0x5add43){return _0x2bd529!==_0x5add43;},_0x460a8c[_0x25e98c(-0xc8,0x11b)]=function(_0x501529,_0x54f433){return _0x501529===_0x54f433;};const _0x14d6a1=_0x460a8c;try{const _0x402cfb=JSON[_0x43f450(-0x20e,-_0x4b5a2d._0x2be5e2)](_0x34cbd2);if(_0x402cfb[_0x25e98c(0x318,_0x4b5a2d._0x1d15d5)]!==_0x43f450(0x130,0x181))return null;if(_0x402cfb['method']!==_0x43f450(_0x4b5a2d._0x48cd96,-_0x4b5a2d._0xde3e4d)&&_0x14d6a1[_0x25e98c(0x16e,_0x4b5a2d._0x16aa1f)](_0x402cfb[_0x43f450(-_0x4b5a2d._0x562494,-0x1a)],_0x43f450(-0x142,-0x211)+_0x25e98c(_0x4b5a2d._0x51f9be,0x1d5)))return null;const _0x45e314=_0x402cfb[_0x43f450(_0x4b5a2d._0x34cb71,_0x4b5a2d._0xb6b884)]??{},_0x3c2fd3=_0x14d6a1[_0x25e98c(_0x4b5a2d._0xe8fc88,_0x4b5a2d._0xaaada)](typeof _0x402cfb['id'],_0x43f450(-0x93,-_0x4b5a2d._0x45c214))&&_0x402cfb['id']['trim']()?_0x402cfb['id'][_0x43f450(-_0x4b5a2d._0x4449e0,0xca)]():_0x43f450(0xc8,_0x4b5a2d._0x313250)+Math[_0x43f450(0x1f7,_0x4b5a2d._0x4449e0)]()['toString'](0x24)['slice'](0x2,0xc),_0x300909=firstString(_0x45e314['deviceNa'+'me'],_0x45e314[_0x25e98c(_0x4b5a2d._0x134af8,_0x4b5a2d._0x3d6e7f)+'me'],_0x45e314['deviceId'],_0x25e98c(0x285,0x2cc)+'lient'),_0x3410cf={};return _0x3410cf['id']=_0x3c2fd3,_0x3410cf[_0x25e98c(_0x4b5a2d._0x5a8a30,0x395)]=_0x300909,_0x3410cf;}catch{return null;}}function isConnectHandshakeRequest(_0x22f2ed){const _0x2fbb88={_0x11578e:0x544,_0x31574c:0x20d,_0x4a4409:0x1b9,_0xf1b618:0x435},_0x2ecba9={_0x25220:0x99},_0x542089={_0x57d23d:0x35e},_0x10e7e0={};_0x10e7e0[_0x20b7b7(0x20d,0x2b1)]=function(_0x34d2f4,_0x3f8ef4){return _0x34d2f4===_0x3f8ef4;};const _0x432b2e=_0x10e7e0;function _0x20b7b7(_0x5b311a,_0x4c50db){return _0x33cded(_0x4c50db,_0x5b311a- -_0x542089._0x57d23d);}function _0x5c0163(_0x4f08b7,_0x9c238){return _0x33cded(_0x4f08b7,_0x9c238-_0x2ecba9._0x25220);}try{const _0x1fa849=JSON['parse'](_0x22f2ed);return _0x1fa849[_0x5c0163(0x42c,_0x2fbb88._0x11578e)]===_0x20b7b7(0x403,0x5b0)&&(_0x1fa849['method']===_0x20b7b7(0x1c6,0x69)||_0x432b2e[_0x20b7b7(_0x2fbb88._0x31574c,_0x2fbb88._0x4a4409)](_0x1fa849[_0x20b7b7(0x268,0x397)],_0x5c0163(_0x2fbb88._0xf1b618,0x468)+_0x5c0163(0x5f9,0x5b6)));}catch{return![];}}function parsePairingRequestFromError(_0x4ce221,_0x26ef47=Date['now']()){const _0x1e6b9f={_0x135893:0x1c5,_0x3ef883:0x1cd,_0x18d391:0x2a,_0x2116f9:0xaa,_0x32af43:0x2be,_0xec9a9d:0x181,_0x96a129:0x2c3,_0x537140:0x25c,_0x367712:0x24e,_0x5bc23e:0x295,_0x4bb6ea:0x1c4,_0x59244c:0x287,_0x181a3c:0x13b,_0x4fb4:0x2f,_0x70d34b:0x3,_0x25b656:0x3eb,_0x155ad7:0x571,_0x112306:0x317,_0x13fd43:0x2fc,_0x2ede16:0x207,_0x2a8c32:0xf1,_0x3b9c3a:0x313};function _0x5e617e(_0x1f3be5,_0x509595){return _0x5338aa(_0x1f3be5-0x34,_0x509595);}const _0xbac65f={'KvWZC':function(_0x8a0247,_0x18e31f){return _0x8a0247===_0x18e31f;},'KoFfW':function(_0x1722b0,_0x206764){return _0x1722b0(_0x206764);},'WiJFr':function(_0x2fff3d,_0x26a88a){return _0x2fff3d(_0x26a88a);},'VuxfH':_0x2722bf(-0x2c8,-0x22f)};function _0x2722bf(_0x423a89,_0x1a1ecf){return _0x5338aa(_0x423a89- -0x44e,_0x1a1ecf);}try{const _0x18a40f=JSON[_0x2722bf(-_0x1e6b9f._0x135893,-0x4a)](_0x4ce221);if(_0x18a40f[_0x5e617e(0x23e,_0x1e6b9f._0x3ef883)]!==_0x2722bf(_0x1e6b9f._0x18d391,-_0x1e6b9f._0x2116f9)||_0x18a40f['ok']!==![]||!_0x18a40f['error'])return null;const _0x2e1809=typeof _0x18a40f[_0x5e617e(_0x1e6b9f._0x32af43,_0x1e6b9f._0xec9a9d)]['code']==='string'?_0x18a40f['error'][_0x5e617e(_0x1e6b9f._0x96a129,_0x1e6b9f._0x537140)]:'',_0xae48ea=_0xbac65f[_0x2722bf(-_0x1e6b9f._0x367712,-_0x1e6b9f._0x5bc23e)](typeof _0x18a40f[_0x2722bf(-_0x1e6b9f._0x4bb6ea,-0x1c8)][_0x5e617e(_0x1e6b9f._0x59244c,0x35d)],_0x2722bf(-0x1e1,-0x213))?_0x18a40f['error'][_0x5e617e(0x287,_0x1e6b9f._0x181a3c)]:'';if(!_0x2e1809[_0x5e617e(0x47f,0x396)]('NOT_PAIR'+'ED')&&!_0x2e1809[_0x5e617e(0x47f,0x514)](_0x2722bf(-_0x1e6b9f._0x4fb4,-0xd9)+'REQUIRED')&&!_0xae48ea[_0x5e617e(0x47f,0x52e)]('NOT_PAIR'+'ED')&&!_0xae48ea[_0x2722bf(-_0x1e6b9f._0x70d34b,0x1a4)]('pairing\x20'+_0x5e617e(0x21f,_0x1e6b9f._0x25b656)))return null;const _0xee799c=_0x18a40f['error'][_0x2722bf(-0x8b,-0x5f)]??_0x18a40f['error'][_0x5e617e(0x4a4,_0x1e6b9f._0x155ad7)]??{},_0x319fe5=firstString(_0xee799c[_0x2722bf(-_0x1e6b9f._0x112306,-0x3b6)+'d'],extractRequestIdFromMessage(_0xae48ea),'unknown');return{'requestId':_0x319fe5,'deviceId':firstString(_0xee799c[_0x5e617e(0x1e9,_0x1e6b9f._0x13fd43)],''),'displayName':firstNullableString(_0xee799c['displayN'+'ame']),'platform':_0xbac65f['KoFfW'](firstNullableString,_0xee799c[_0x5e617e(0x370,0x238)]),'deviceFamily':firstNullableString(_0xee799c[_0x2722bf(-0x229,-_0x1e6b9f._0x2ede16)+'mily']),'role':firstNullableString(_0xee799c['role']),'remoteIp':_0xbac65f[_0x2722bf(-0x247,-0x72)](firstNullableString,_0xee799c[_0x2722bf(-_0x1e6b9f._0x2a8c32,-0xd9)]),'receivedAtMs':_0x26ef47,'status':_0xbac65f[_0x5e617e(_0x1e6b9f._0x3b9c3a,0x2b1)]};}catch{return null;}}function parsePairResolvedEvent(_0x3731f0){const _0x435855={_0x5ddff4:0x18c,_0x207660:0x2a0,_0x20ee0f:0x22c,_0x12aac9:0x2e9,_0x2ffa2d:0x39c,_0x5e8e64:0x1be,_0x4fbc58:0x209,_0x105040:0x170,_0x19770e:0x3c0,_0x4b766a:0x6,_0x4495b2:0x34f,_0x2a2581:0x11c,_0x453f6c:0x662,_0x26f3cf:0x16a,_0x38b19e:0x2ef,_0x1f468f:0x2d3,_0xe2bee3:0x36e,_0x297851:0x2d9,_0x535946:0x349,_0x4c720e:0x2b6},_0x3ce9bd={_0x5ec3ba:0x136},_0x1b34bf={_0x5834eb:0x33},_0x4ad892={};_0x4ad892['HHxFj']=function(_0x1332b4,_0x2fef9e){return _0x1332b4===_0x2fef9e;},_0x4ad892[_0x3efcec(-0x3f,_0x435855._0x5ddff4)]=_0x2ce1b7(_0x435855._0x207660,0x258);function _0x2ce1b7(_0x51637e,_0x166f20){return _0x5338aa(_0x51637e-_0x1b34bf._0x5834eb,_0x166f20);}function _0x3efcec(_0xaf80fd,_0x348bf8){return _0x5338aa(_0x348bf8- -_0x3ce9bd._0x5ec3ba,_0xaf80fd);}_0x4ad892[_0x3efcec(_0x435855._0x20ee0f,0x349)]=_0x2ce1b7(_0x435855._0x12aac9,_0x435855._0x2ffa2d);const _0x3864eb=_0x4ad892;try{const _0x5e5e4e=JSON['parse'](_0x3731f0);if(_0x5e5e4e[_0x2ce1b7(0x23d,_0x435855._0x5e8e64)]!==_0x2ce1b7(_0x435855._0x4fbc58,_0x435855._0x105040)||_0x5e5e4e[_0x3efcec(0x129,0xa0)]!=='device.p'+_0x3efcec(_0x435855._0x19770e,0x1fd)+'lved'||!_0x5e5e4e['payload'])return null;const _0x4e453d=_0x3864eb[_0x3efcec(-0x13c,_0x435855._0x4b766a)](typeof _0x5e5e4e[_0x3efcec(_0x435855._0x4495b2,0x36e)][_0x3efcec(_0x435855._0x2a2581,0x1)+'d'],_0x2ce1b7(0x2a0,0x46c))?_0x5e5e4e[_0x2ce1b7(0x4d7,_0x435855._0x453f6c)][_0x2ce1b7(_0x435855._0x26f3cf,0x8)+'d'][_0x3efcec(_0x435855._0x38b19e,_0x435855._0x1f468f)]():'';if(!_0x4e453d)return null;const _0x21391a=typeof _0x5e5e4e[_0x3efcec(0x236,_0x435855._0xe2bee3)]['decision']===_0x3864eb['bBmNV']?_0x5e5e4e['payload']['decision']:_0x3864eb[_0x3efcec(_0x435855._0x297851,_0x435855._0x535946)],_0x48fd92=_0x21391a==='approved'||_0x21391a===_0x3efcec(0x224,_0x435855._0x4c720e)?_0x21391a:'unknown',_0x4de69a={};return _0x4de69a['requestI'+'d']=_0x4e453d,_0x4de69a['decision']=_0x48fd92,_0x4de69a;}catch{return null;}}function firstString(..._0x2b0418){const _0x302a14={_0x3718fb:0x5c2,_0x101c0b:0x24c,_0x2afca1:0x197},_0x36455b={_0x55d375:0x1bd};for(const _0x58e8b4 of _0x2b0418){if(typeof _0x58e8b4===_0x577254(0xb0,0x119)&&_0x58e8b4[_0xf1e76f(0x5c2,_0x302a14._0x3718fb)]())return _0x58e8b4[_0x577254(_0x302a14._0x101c0b,_0x302a14._0x2afca1)]();}function _0x577254(_0x66d0d7,_0x28e58b){return _0x5338aa(_0x66d0d7- -_0x36455b._0x55d375,_0x28e58b);}function _0xf1e76f(_0x3c6afc,_0x1e04a2){return _0x5338aa(_0x1e04a2-0x1b9,_0x3c6afc);}return'';}function firstNullableString(_0x5efd62){const _0x440bcd={_0x38a7e9:0x5bd,_0x50c0ea:0x71d,_0xe2eb1b:0x7c8},_0x960a25={_0x13a019:0x3ae};function _0x4c0cb8(_0x22d6bb,_0x5eb93f){return _0x5338aa(_0x22d6bb- -_0x960a25._0x13a019,_0x5eb93f);}const _0x5bff2f={};_0x5bff2f[_0x3fd5b7(0x592,_0x440bcd._0x38a7e9)]=function(_0xca9b67,_0x91f6d3){return _0xca9b67===_0x91f6d3;};function _0x3fd5b7(_0x22b4be,_0x346261){return _0x5338aa(_0x22b4be-0x314,_0x346261);}const _0x2ca015=_0x5bff2f;return _0x2ca015['Fzhzw'](typeof _0x5efd62,'string')&&_0x5efd62[_0x3fd5b7(0x71d,0x7c9)]()?_0x5efd62[_0x3fd5b7(_0x440bcd._0x50c0ea,_0x440bcd._0xe2eb1b)]():null;}function extractRequestIdFromMessage(_0x56cac0){const _0x2c46be=_0x56cac0['match'](/requestId[:\s]*([a-f0-9-]+)/i);return _0x2c46be?.[0x1]??null;}import{randomUUID as _0x372cc4}from'crypto';import{setTimeout as _0x3d9273}from'timers/promises';import _0x10c370 from'ws';var HEARTBEAT_INTERVAL_MS=0x2710,HEARTBEAT_TIMEOUT_MS=0x88b8,GATEWAY_RETRY_DELAY_MS=0x4b0,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{[_0x5338aa(0x20b,0x3d1)];[_0x33cded(0x3ea,0x559)+'ket']=null;['gatewayS'+'ocket']=null;[_0x33cded(0x617,0x765)+'necting']=![];[_0x33cded(0x299,0x405)+_0x33cded(0x424,0x4d5)+'g']=![];[_0x33cded(0x520,0x5f5)]=!![];[_0x5338aa(0x223,0x25b)+_0x33cded(0x4d2,0x4a6)]=0x0;[_0x5338aa(0x2c7,0x2d2)+_0x5338aa(0x48a,0x48c)+'yMs']=0x0;['reconnec'+_0x33cded(0x6ab,0x52f)]=null;['gatewayR'+'etryTime'+'r']=null;[_0x5338aa(0x149,0x13)+'tTimer']=null;[_0x5338aa(0x39c,0x2c8)+'atewayMe'+_0x5338aa(0x1d7,0xb1)]=[];[_0x33cded(0x7a3,0x5ea)+_0x33cded(0x49d,0x47c)+_0x33cded(0x61f,0x486)]=![];[_0x33cded(0x516,0x49e)+'mandStar'+_0x33cded(0x447,0x58d)]=null;[_0x33cded(0x44a,0x405)+_0x33cded(0x234,0x3b7)+'AtMs']=null;[_0x5338aa(0x1dd,0x90)];constructor(_0x41a80d){const _0x5d502b={_0xd914ab:0x169,_0x379fe6:0x3a3,_0x5cf0ea:0xf4,_0x1f9168:0x329,_0x268a10:0x38a,_0x3e40dc:0x130},_0x1be4c3={_0x58b8b0:0x12c};function _0x375502(_0x3fd184,_0x47ac12){return _0x33cded(_0x3fd184,_0x47ac12- -_0x1be4c3._0x58b8b0);}this['options']=_0x41a80d;function _0x58e313(_0x142859,_0x53a7dd){return _0x33cded(_0x53a7dd,_0x142859- -0x688);}this[_0x58e313(-0x20a,-_0x5d502b._0xd914ab)]={'running':![],'relayConnected':![],'gatewayConnected':![],'gatewayId':_0x41a80d[_0x375502(0x2e2,0x38a)]['gatewayI'+'d'],'instanceId':_0x41a80d[_0x375502(_0x5d502b._0x379fe6,0x38a)][_0x58e313(-_0x5d502b._0x5cf0ea,-0x167)+'Id'],'relayUrl':_0x41a80d[_0x375502(_0x5d502b._0x1f9168,_0x5d502b._0x268a10)][_0x58e313(0x2c,_0x5d502b._0x3e40dc)],'gatewayUrl':_0x41a80d['gatewayU'+'rl'],'clientCount':0x0,'connectedDevices':[],'pendingPairRequests':[],'lastError':null,'lastUpdatedMs':Date['now']()};}[_0x33cded(0x383,0x51d)](){const _0x416706={_0x1fae36:0x238,_0x19e81a:0x53a,_0x41c065:0x68c,_0xcc8be5:0x506,_0x226e2d:0x48f,_0x2f14f9:0x34d,_0x65dec9:0x2e7,_0x50c4f0:0x168,_0x2f3f2e:0x2bd,_0x5ca7df:0x4e1,_0x4774b0:0x610,_0x12ac38:0x449,_0x5dd125:0x298,_0x42080b:0x190,_0x145bd2:0x2be,_0x563780:0x298,_0x143921:0x3f5,_0x373e4a:0x311},_0x524be6={_0x5ace9b:0x284};if(!this[_0x54deb7(0x3e1,_0x416706._0x1fae36)])return;function _0x4d2c96(_0x297450,_0x290a2c){return _0x5338aa(_0x297450-_0x524be6._0x5ace9b,_0x290a2c);}this[_0x4d2c96(0x5d8,_0x416706._0x19e81a)]=![],this[_0x4d2c96(_0x416706._0x41c065,0x6aa)+_0x54deb7(_0x416706._0xcc8be5,0x4e9)]({'running':!![],'gatewayUrl':this[_0x4d2c96(_0x416706._0x226e2d,_0x416706._0x2f14f9)][_0x54deb7(0x507,0x602)+'rl']}),this[_0x54deb7(_0x416706._0x65dec9,_0x416706._0x50c4f0)](_0x54deb7(0x411,_0x416706._0x2f3f2e)+_0x54deb7(_0x416706._0x5ca7df,_0x416706._0x4774b0)+'\x20gateway'+_0x54deb7(_0x416706._0x12ac38,0x5a2)+this[_0x54deb7(_0x416706._0x5dd125,_0x416706._0x42080b)]['config'][_0x4d2c96(0x411,_0x416706._0x145bd2)+'d']+(_0x4d2c96(0x477,0x5c0)+'Url=')+this[_0x54deb7(_0x416706._0x563780,0x2cf)][_0x54deb7(0x507,0x45d)+'rl']);function _0x54deb7(_0x3549c8,_0x1d1bc9){return _0x5338aa(_0x3549c8-0x8d,_0x1d1bc9);}void this[_0x54deb7(0x2b4,0x199)+_0x54deb7(_0x416706._0x143921,_0x416706._0x373e4a)]();}async[_0x5338aa(0x330,0x2f1)](){const _0x3ef42e={_0x8ee2de:0x641,_0xe068c3:0x45,_0x50992e:0x4b,_0x560e42:0x74,_0x30b128:0x64c,_0x5247d8:0x5a5,_0x2d836e:0x574,_0x53baf4:0x547,_0x137c1b:0x1,_0xfde547:0x158,_0x18756f:0x313,_0x1a10b0:0x74c,_0xbadfbf:0x333,_0x2ca086:0x480,_0x774f2e:0xbc,_0xc1f8a5:0x502,_0x1ca26e:0x4c8,_0x35585e:0x451,_0x12ce14:0xe7,_0x101b26:0x846,_0x24edf3:0x7b2,_0x41c73a:0x1bb,_0x4d8bd1:0x1eb,_0x1d6af7:0x521,_0x5dfee5:0x490,_0x4db9a1:0x2ff,_0x184eb2:0x364,_0x2ca0c3:0x21c,_0x252ec1:0x251,_0x6352f2:0x5e2,_0x152389:0x6f5,_0x14d315:0x319,_0x31a4f7:0xfa,_0x125cca:0x671,_0x174f1b:0x37,_0x8ee119:0x1f4,_0x476035:0x4e8},_0x4a07f0={_0x39bec3:0x4c},_0x3e6607={'eMQeM':function(_0x3ce6a2,_0x1fe6fc){return _0x3ce6a2(_0x1fe6fc);}};if(this[_0x5dcd6b(0x302,0x1f4)])return;this[_0x183b2f(0x6c5,_0x3ef42e._0x8ee2de)]=!![],this[_0x5dcd6b(_0x3ef42e._0xe068c3,-_0x3ef42e._0x50992e)+_0x5dcd6b(0x1fc,_0x3ef42e._0x560e42)](),this[_0x183b2f(_0x3ef42e._0x30b128,_0x3ef42e._0x5247d8)+'ket']?.[_0x183b2f(0x661,_0x3ef42e._0x2d836e)]();function _0x183b2f(_0x38634c,_0x526e4f){return _0x33cded(_0x38634c,_0x526e4f-_0x4a07f0._0x39bec3);}this['gatewayS'+'ocket']?.[_0x183b2f(_0x3ef42e._0x53baf4,_0x3ef42e._0x2d836e)]();function _0x5dcd6b(_0xdb762f,_0x56b619){return _0x33cded(_0xdb762f,_0x56b619- -0x401);}this[_0x5dcd6b(_0x3ef42e._0x137c1b,_0x3ef42e._0xfde547)+_0x183b2f(_0x3ef42e._0x18756f,0x433)]=null,this['gatewayS'+_0x183b2f(0x6c6,_0x3ef42e._0x1a10b0)]=null,this['pendingG'+_0x5dcd6b(0x3aa,_0x3ef42e._0xbadfbf)+_0x183b2f(_0x3ef42e._0x2ca086,0x4c4)]=[],this[_0x5dcd6b(_0x3ef42e._0x774f2e,0x1e9)+_0x183b2f(_0x3ef42e._0xc1f8a5,_0x3ef42e._0x1ca26e)+'Started']=![],this['clientDe'+'mandStar'+'tedAtMs']=null,this[_0x183b2f(0x57e,_0x3ef42e._0x35585e)+_0x5dcd6b(-_0x3ef42e._0x12ce14,-0x4a)+_0x183b2f(_0x3ef42e._0x101b26,_0x3ef42e._0x24edf3)]=null,this[_0x5dcd6b(_0x3ef42e._0x41c73a,0x364)+_0x5dcd6b(0x2d2,_0x3ef42e._0x4d8bd1)]=![],this[_0x183b2f(0x30b,0x451)+_0x183b2f(0x528,_0x3ef42e._0x1d6af7)+'g']=![];const _0x59bfe9={};_0x59bfe9[_0x183b2f(_0x3ef42e._0x5dfee5,0x485)]=![],_0x59bfe9[_0x5dcd6b(_0x3ef42e._0x4db9a1,_0x3ef42e._0x184eb2)+_0x5dcd6b(0x1a7,_0x3ef42e._0x2ca0c3)]=![],_0x59bfe9['gatewayC'+'onnected']=![],_0x59bfe9['clientCo'+_0x5dcd6b(0x2ba,_0x3ef42e._0x252ec1)]=0x0,_0x59bfe9[_0x183b2f(0x56d,0x735)+'r']=null,this[_0x183b2f(_0x3ef42e._0x6352f2,_0x3ef42e._0x152389)+_0x5dcd6b(0x218,_0x3ef42e._0x14d315)](_0x59bfe9),this[_0x5dcd6b(-0x11,_0x3ef42e._0x31a4f7)](_0x183b2f(0x517,_0x3ef42e._0x125cca)+_0x5dcd6b(_0x3ef42e._0x174f1b,_0x3ef42e._0x8ee119)),await _0x3e6607[_0x183b2f(0x682,_0x3ef42e._0x476035)](_0x3d9273,0x19);}async[_0x33cded(0x2ed,0x42b)+_0x5338aa(0x451,0x4e4)+'st'](_0xc35c66){const _0x4981fe={_0x2dac90:0x1c6,_0x3da974:0x265,_0xe29cc2:0x2a6,_0x27f639:0x318,_0x2a8768:0xc6,_0x8b3b83:0x152},_0x5879e8={_0x3e4b8a:0x3a2},_0x49c940={_0x466d30:0x57a},_0x49f9cc={};_0x49f9cc[_0xf81f97(-0x1a2,-0x91)+'d']=_0xc35c66;function _0xf81f97(_0x353b2c,_0x16432f){return _0x33cded(_0x16432f,_0x353b2c- -_0x49c940._0x466d30);}this[_0x7e7e8d(0x162,0x324)+'wayReque'+'st'](_0xf81f97(_0x4981fe._0x2dac90,0x7)+_0x7e7e8d(_0x4981fe._0x3da974,_0x4981fe._0xe29cc2)+'ove',_0x49f9cc);function _0x7e7e8d(_0x4b62f3,_0x2df6ba){return _0x33cded(_0x2df6ba,_0x4b62f3- -_0x5879e8._0x3e4b8a);}this[_0xf81f97(0x96,-0x8d)+_0x7e7e8d(0x113,-0x19)+_0x7e7e8d(_0x4981fe._0x27f639,0x4db)](_0xc35c66,_0x7e7e8d(_0x4981fe._0x2a8768,_0x4981fe._0x8b3b83));}async[_0x33cded(0x4a6,0x5e7)+'irReques'+'t'](_0x195143){const _0x51dac6={_0x15c021:0x1a7,_0x2c99df:0x19f,_0x578a8c:0x8a,_0x62edc4:0x196,_0x5b2518:0x276,_0x59380f:0x3b,_0x4372e8:0x169,_0x34425d:0x240,_0x2af666:0x213},_0x1dd2b9={_0xed89d1:0x2f8},_0x3116db={};function _0x304399(_0x47ec96,_0x4eae1e){return _0x5338aa(_0x47ec96- -0x1d9,_0x4eae1e);}_0x3116db[_0x304399(0x226,0x380)]=_0x5ef870(_0x51dac6._0x15c021,0xa4)+_0x5ef870(_0x51dac6._0x2c99df,0x151)+'ct';const _0x55f766=_0x3116db,_0x2ef360={};_0x2ef360['requestI'+'d']=_0x195143;function _0x5ef870(_0xc36932,_0x300007){return _0x5338aa(_0xc36932- -_0x1dd2b9._0xed89d1,_0x300007);}this[_0x304399(_0x51dac6._0x578a8c,-0xab)+'wayReque'+'st'](_0x55f766[_0x304399(0x226,0x3b5)],_0x2ef360),this[_0x304399(_0x51dac6._0x62edc4,_0x51dac6._0x5b2518)+_0x304399(_0x51dac6._0x59380f,_0x51dac6._0x4372e8)+_0x304399(_0x51dac6._0x34425d,0x351)](_0x195143,_0x304399(_0x51dac6._0x2af666,0x2fe));}['getSnaps'+'hot'](){const _0x458cea={_0x31086c:0x398,_0x3113d4:0x124,_0x2e91aa:0x203,_0x51b02d:0x13,_0x4b5c8c:0xc,_0x41ba35:0x251,_0x2cd52e:0x206,_0x40e1bf:0x16d,_0x11e836:0x41b,_0x36949c:0x50b},_0x35305e={_0xf3f5ec:0x184},_0x25682b={...this['snapshot']};function _0x726247(_0x184bd9,_0x3f240d){return _0x33cded(_0x3f240d,_0x184bd9- -0x4a1);}function _0x5d3df9(_0x7fd6c0,_0x44bcf1){return _0x33cded(_0x7fd6c0,_0x44bcf1- -_0x35305e._0xf3f5ec);}return _0x25682b['connecte'+'dDevices']=[...this[_0x5d3df9(_0x458cea._0x31086c,0x2fa)]['connecte'+_0x726247(_0x458cea._0x3113d4,_0x458cea._0x2e91aa)]],_0x25682b[_0x726247(-_0x458cea._0x51b02d,_0x458cea._0x4b5c8c)+_0x726247(_0x458cea._0x41ba35,0x250)+_0x726247(_0x458cea._0x2cd52e,0x3df)]=[...this[_0x726247(-0x23,_0x458cea._0x40e1bf)][_0x726247(-0x13,0xdb)+_0x726247(_0x458cea._0x41ba35,_0x458cea._0x11e836)+_0x5d3df9(_0x458cea._0x36949c,0x523)]],_0x25682b;}async['connectR'+_0x33cded(0x43a,0x609)](){const _0x7ebc63={_0x3f4b74:0xd1,_0x6eaea2:0x362,_0x48dc2d:0x4c3,_0x10ecd4:0x44f,_0x138882:0x565,_0x16c360:0x3a5,_0x1d15ed:0x156,_0x5affbd:0x45e,_0x5f5229:0x23a,_0x1e2307:0x1ba,_0x1ccead:0x607,_0x1d6903:0x3a,_0x4b0fd8:0x18d,_0x56c0a8:0xec,_0x1546b6:0x166,_0x4ccff5:0x5ce,_0x4ec820:0x169,_0x863b2b:0x245,_0x5acfac:0x1fb,_0x58d704:0x31f,_0x2eeaf5:0x405,_0x5bb684:0x38c,_0x4ff418:0x531,_0x2cadb2:0x46c,_0x358d02:0xe2,_0x403351:0x1d1,_0x5ae15d:0x86,_0x35d3c5:0x492,_0x48c6c2:0x7c},_0x3a6176={_0x558822:0x302,_0x19bec5:0x27e,_0x2bf22a:0x190,_0x24c67f:0x6c0,_0x2ccfec:0x7f4,_0x5797aa:0x340,_0x195e51:0x3c3,_0x5f5db3:0x2f1,_0xb7b27e:0x69d,_0x2a67b8:0x4d1,_0x411775:0x360,_0x147ff7:0x4c0,_0x3995d7:0x50f,_0x49f4d4:0x23,_0x51173e:0x180,_0x56d11e:0x280,_0x5b3323:0x2bb,_0x5ae6d1:0x31a,_0x47b909:0x575,_0x2aacc1:0x5cd,_0x1c0a1d:0x5d1,_0x514b6e:0x719,_0x321f37:0x378,_0x311f8e:0x2c0},_0x2d3a4a={_0x540409:0x117,_0x2aada2:0x107},_0x9097df={_0x1b29f7:0x23d},_0x1b3db4={_0x3ca3c2:0x54c,_0x154c77:0x553},_0x22893b={_0x101d6e:0x178},_0x5e587e={_0x44ac1f:0x1de,_0x59835e:0x7cb,_0x463899:0x805,_0x41a32e:0x652,_0x3bbbee:0x644,_0x5df0be:0x5ce,_0x5ef42f:0x791,_0x36b362:0x109,_0x5a28e2:0x1f0,_0x8ff53:0x23,_0x573c37:0x7de,_0x4bbea8:0x683,_0x579f83:0x6d5,_0x3492d3:0x155,_0x8c5362:0x561,_0x28a65c:0xa2,_0x4b7b80:0x4d9,_0x3e0d1d:0x783,_0x1836b6:0x838,_0x61ff76:0x472,_0x1164b3:0x2b9,_0x33d7a2:0xc9},_0x4f217a={_0xc5ad41:0x9a},_0x4531d8={};_0x4531d8[_0x11e92b(-0x154,-_0x7ebc63._0x3f4b74)]=function(_0x656af8,_0x555dfb){return _0x656af8===_0x555dfb;},_0x4531d8[_0x4f82f6(_0x7ebc63._0x6eaea2,0x29c)]=_0x4f82f6(_0x7ebc63._0x48dc2d,_0x7ebc63._0x10ecd4),_0x4531d8[_0x4f82f6(_0x7ebc63._0x138882,0x44a)]=_0x4f82f6(0x35d,_0x7ebc63._0x16c360),_0x4531d8[_0x4f82f6(0x258,_0x7ebc63._0x1d15ed)]='error';const _0x2bf639=_0x4531d8;if(this[_0x4f82f6(_0x7ebc63._0x5affbd,0x328)]||this[_0x11e92b(_0x7ebc63._0x5f5229,_0x7ebc63._0x1e2307)+_0x4f82f6(0x455,_0x7ebc63._0x1ccead)]||this[_0x11e92b(_0x7ebc63._0x1d6903,-_0x7ebc63._0x4b0fd8)+_0x11e92b(-_0x7ebc63._0x56c0a8,-_0x7ebc63._0x1546b6)]())return;this[_0x4f82f6(_0x7ebc63._0x4ccff5,0x60e)+_0x11e92b(0xc1,_0x7ebc63._0x4ec820)]=!![],this[_0x11e92b(-0x67,-_0x7ebc63._0x863b2b)+'empt']+=0x1;const _0x31e22c=this[_0x4f82f6(0x32d,_0x7ebc63._0x5acfac)+'empt'],_0x2e7c72=buildRelayWsUrl(this['options'][_0x4f82f6(_0x7ebc63._0x58d704,0x306)]);function _0x11e92b(_0x943a3d,_0x40d7af){return _0x5338aa(_0x943a3d- -0x28a,_0x40d7af);}this[_0x4f82f6(0x364,_0x7ebc63._0x2eeaf5)](_0x4f82f6(_0x7ebc63._0x5bb684,0x497)+_0x4f82f6(0x23b,0x11c)+'tempt='+_0x31e22c+_0x4f82f6(_0x7ebc63._0x4ff418,0x4f4)+redactRelayWsUrl(_0x2e7c72));const _0x345ed3={};_0x345ed3[_0x4f82f6(_0x7ebc63._0x2cadb2,0x313)+'ad']=0x19*0x400*0x400;const _0x2bc32f=new _0x10c370(_0x2e7c72,_0x345ed3);this['relaySoc'+'ket']=_0x2bc32f,_0x2bc32f[_0x4f82f6(0x2da,0x31d)](_0x11e92b(-_0x7ebc63._0x358d02,0x8a),()=>{function _0x23e196(_0x5d8252,_0x5bec78){return _0x11e92b(_0x5d8252-0x591,_0x5bec78);}if(this[_0x23e196(0x65b,0x80d)]||this[_0x23e196(0x5bf,0x5a6)+_0x5f1f6d(-_0x5e587e._0x44ac1f,-0x8a)]!==_0x2bc32f){_0x2bc32f['close']();return;}this[_0x23e196(_0x5e587e._0x59835e,_0x5e587e._0x463899)+_0x23e196(_0x5e587e._0x41a32e,_0x5e587e._0x3bbbee)]=![],this[_0x23e196(_0x5e587e._0x5df0be,0x419)+_0x23e196(_0x5e587e._0x5ef42f,0x6c4)+_0x5f1f6d(_0x5e587e._0x36b362,_0x5e587e._0x5a28e2)]=Date[_0x5f1f6d(-_0x5e587e._0x8ff53,-0x59)]();const _0x5cc665={};_0x5cc665[_0x23e196(0x7cb,_0x5e587e._0x573c37)+_0x23e196(_0x5e587e._0x4bbea8,_0x5e587e._0x579f83)]=!![];function _0x5f1f6d(_0x56b13d,_0x1aa049){return _0x11e92b(_0x56b13d- -_0x4f217a._0xc5ad41,_0x1aa049);}_0x5cc665[_0x5f1f6d(0x124,-0x97)+'r']=null,this[_0x5f1f6d(0xe4,-0xbd)+_0x5f1f6d(_0x5e587e._0x3492d3,0x1b1)](_0x5cc665),this[_0x23e196(_0x5e587e._0x8c5362,0x49c)](_0x5f1f6d(-_0x5e587e._0x28a65c,0x47)+'nnected\x20'+_0x23e196(_0x5e587e._0x4b7b80,0x4bf)+_0x31e22c),this['startHea'+_0x23e196(_0x5e587e._0x3e0d1d,_0x5e587e._0x1836b6)](),this[_0x23e196(_0x5e587e._0x61ff76,_0x5e587e._0x1164b3)+_0x5f1f6d(_0x5e587e._0x33d7a2,0x182)+'nected']();}),_0x2bc32f['on'](_0x2bf639[_0x11e92b(_0x7ebc63._0x403351,_0x7ebc63._0x5ae15d)],(_0x4eac31,_0x452c75)=>{function _0x463308(_0x4009b6,_0x327872){return _0x11e92b(_0x327872-0x4b2,_0x4009b6);}function _0x11c71e(_0x11a7e8,_0x42aec6){return _0x11e92b(_0x42aec6-_0x22893b._0x101d6e,_0x11a7e8);}void this[_0x11c71e(0x442,0x28e)+_0x463308(0x4c5,0x41d)+'ge'](_0x4eac31,_0x452c75);}),_0x2bc32f['on'](_0x4f82f6(_0x7ebc63._0x35d3c5,0x454),()=>{function _0x4e7936(_0x4e84a8,_0x52371b){return _0x11e92b(_0x52371b-0x353,_0x4e84a8);}function _0x106fe7(_0x4e1d64,_0x4a298a){return _0x11e92b(_0x4a298a-0x4a0,_0x4e1d64);}this[_0x106fe7(0x51f,0x4dd)+_0x4e7936(_0x1b3db4._0x3ca3c2,_0x1b3db4._0x154c77)+_0x106fe7(0x732,0x643)]=Date[_0x106fe7(0x4c4,0x517)]();});function _0x4f82f6(_0x504e99,_0x5064c2){return _0x5338aa(_0x504e99-0x10a,_0x5064c2);}_0x2bc32f[_0x11e92b(-0xba,-0x101)](_0x2bf639['qTSRn'],_0x264d3f=>{const _0x195f0c={_0x9e55ab:0x534};function _0x355934(_0x3a6bc3,_0x5136b5){return _0x4f82f6(_0x3a6bc3- -_0x195f0c._0x9e55ab,_0x5136b5);}function _0x330b0b(_0x203b05,_0x53d679){return _0x4f82f6(_0x203b05- -_0x9097df._0x1b29f7,_0x53d679);}this[_0x330b0b(0x127,_0x2d3a4a._0x540409)](_0x355934(0x26,_0x2d3a4a._0x2aada2)+_0x330b0b(0x32e,0x2ad)+String(_0x264d3f));}),_0x2bc32f[_0x4f82f6(0x2da,0x101)](_0x11e92b(-0x3,_0x7ebc63._0x48c6c2),(_0x474786,_0x58726b)=>{const _0x1ca9cd={_0x24432b:0xf2};this[_0x236be5(0x2b1,_0x3a6176._0x558822)+'ket']===_0x2bc32f&&(this['relaySoc'+_0x236be5(_0x3a6176._0x19bec5,_0x3a6176._0x2bf22a)]=null);this[_0x28ce3d(_0x3a6176._0x24c67f,_0x3a6176._0x2ccfec)+_0x28ce3d(0x547,0x401)]=![],this[_0x28ce3d(0x30c,_0x3a6176._0x5797aa)+_0x236be5(_0x3a6176._0x195e51,0x514)](),this[_0x236be5(_0x3a6176._0x5f5db3,0x247)+_0x28ce3d(_0x3a6176._0xb7b27e,_0x3a6176._0x2a67b8)+_0x236be5(0x1a4,0x336)]=null;function _0x28ce3d(_0x3179dc,_0x917eb1){return _0x4f82f6(_0x3179dc-_0x1ca9cd._0x24432b,_0x917eb1);}function _0x236be5(_0x7ed4d9,_0x426d3b){return _0x4f82f6(_0x426d3b- -0xc0,_0x7ed4d9);}this[_0x28ce3d(_0x3a6176._0x411775,_0x3a6176._0x147ff7)+'onnected'+_0x236be5(0x4a2,_0x3a6176._0x3995d7)]=null,this[_0x28ce3d(0x604,0x5de)+_0x28ce3d(0x675,0x724)]({'relayConnected':![],'gatewayConnected':![],'clientCount':0x0,'lastError':_0x2bf639[_0x236be5(-_0x3a6176._0x49f4d4,_0x3a6176._0x51173e)](_0x474786,0x3e8)?null:'relay\x20cl'+_0x236be5(0x51d,0x3ff)+(_0x58726b[_0x236be5(_0x3a6176._0x56d11e,_0x3a6176._0x195e51)]()||_0x474786)}),this[_0x28ce3d(0x456,_0x3a6176._0x5b3323)](_0x236be5(0x47c,0x46b)+'sconnect'+'ed\x20code='+_0x474786+_0x28ce3d(0x49e,_0x3a6176._0x5ae6d1)+(_0x58726b[_0x28ce3d(_0x3a6176._0x47b909,_0x3a6176._0x2aacc1)]()||_0x2bf639['sFUnc'])),this[_0x28ce3d(_0x3a6176._0x1c0a1d,_0x3a6176._0x514b6e)+_0x28ce3d(_0x3a6176._0x321f37,0x207)](),this[_0x236be5(0x409,0x401)+_0x236be5(0x2d8,_0x3a6176._0x311f8e)+'onnect']();});}async['handleRe'+_0x5338aa(0x1f5,0x138)+'ge'](_0x47ff77,_0x27eee9){const _0x57e4ba={_0x5c31ca:0x4ec,_0x1d028a:0x5a7,_0x4ceed3:0x5c9,_0x268ab1:0x638,_0x455cc6:0x49c,_0x45eab2:0x454,_0x541be3:0x476,_0x5c7317:0x484,_0x35fab7:0x3c7,_0x57773a:0x5bd,_0x5a7bd8:0x3e1,_0x4c3422:0x417,_0x347b05:0x3a1,_0xb4c497:0x3c6,_0x580f6f:0x502,_0x14caa2:0x2c4,_0x1d46cf:0x57c,_0x267c51:0x6bd,_0x11f213:0x589,_0x1caa20:0x371,_0x1e9eef:0x497,_0x21d963:0x519,_0x513a81:0x27c,_0x11e93e:0x2f9,_0x184a3f:0x3f8,_0xd994d1:0x484,_0x5a7056:0x3c7,_0x3e06c4:0x30c};function _0x4c796c(_0x526b36,_0x237c0e){return _0x33cded(_0x237c0e,_0x526b36- -0x184);}this[_0x4c796c(0x3e4,_0x57e4ba._0x5c31ca)+_0x4c796c(_0x57e4ba._0x1d028a,0x782)+_0x517428(_0x57e4ba._0x4ceed3,_0x57e4ba._0x268ab1)]=Date[_0x517428(0x6d0,0x50c)]();if(_0x27eee9){this[_0x4c796c(_0x57e4ba._0x455cc6,_0x57e4ba._0x45eab2)+_0x4c796c(0x27c,0x9a)+_0x517428(_0x57e4ba._0x541be3,_0x57e4ba._0x5c7317)+_0x4c796c(_0x57e4ba._0x35fab7,0x2ab)]({'kind':_0x517428(_0x57e4ba._0x57773a,0x534),'data':normalizeBinary(_0x47ff77)});return;}const _0x38a7e2=normalizeText(_0x47ff77);if(_0x38a7e2==null)return;const _0x3255ea=parseControl(_0x38a7e2);function _0x517428(_0x551db7,_0x455c48){return _0x33cded(_0x551db7,_0x455c48- -0x96);}if(_0x3255ea){this['handleRe'+'layContr'+'ol'](_0x3255ea[_0x517428(0x36d,_0x57e4ba._0x5a7bd8)],_0x3255ea[_0x517428(0x437,_0x57e4ba._0x4c3422)]);return;}const _0x3b6fe8=parseConnectStartIdentity(_0x38a7e2);_0x3b6fe8&&this[_0x4c796c(_0x57e4ba._0x347b05,0x1ff)+_0x4c796c(_0x57e4ba._0xb4c497,_0x57e4ba._0x580f6f)+_0x4c796c(_0x57e4ba._0x14caa2,0x40a)](_0x3b6fe8['id'],_0x3b6fe8[_0x517428(_0x57e4ba._0x1d46cf,0x647)]);const _0x5e3d88={};_0x5e3d88[_0x517428(_0x57e4ba._0x267c51,_0x57e4ba._0x11f213)]=_0x4c796c(_0x57e4ba._0x1caa20,_0x57e4ba._0x1e9eef),_0x5e3d88['text']=_0x38a7e2,this[_0x517428(_0x57e4ba._0x21d963,0x58a)+_0x4c796c(_0x57e4ba._0x513a81,_0x57e4ba._0x11e93e)+_0x517428(_0x57e4ba._0x184a3f,_0x57e4ba._0xd994d1)+_0x4c796c(_0x57e4ba._0x5a7056,_0x57e4ba._0x3e06c4)](_0x5e3d88);}[_0x5338aa(0x3a0,0x375)+_0x33cded(0x729,0x5d9)+'ol'](_0xc058e,_0x4cc6f5){const _0x53bec8={_0x4bded0:0x7b3,_0xac0151:0x7f9,_0x96a94d:0x26e,_0x5effe4:0x524,_0x38b044:0x6b6,_0x2911ae:0x7fa,_0x395ffd:0x2a2,_0x82c205:0x42e,_0xe0cc50:0x675,_0x30ab30:0x4c2,_0x4b607d:0x614,_0x549c0c:0x7a2,_0x466a4b:0x5d1,_0x1f7e86:0x42d,_0x58becc:0x636,_0x4ed585:0x696,_0x169ef0:0x79d,_0x1afa97:0x796,_0x2e3a71:0x679,_0xe5d682:0x5a1,_0x5e6bb5:0x583,_0x2b31c1:0x6fd,_0x7b5e34:0x5de,_0xe2609f:0x4d5,_0x52ff0b:0x711,_0x2870e5:0x731,_0x1ccd82:0x615,_0xa041f9:0x22e,_0x2a8571:0x28f,_0x1dc35a:0x852,_0x35636d:0x6ed,_0x1ba4a5:0x5dc,_0x3515fc:0x4b8,_0x5952ff:0x45e,_0x453a57:0x2a6,_0x4eb522:0x60a,_0x5c41ad:0x449,_0x26bd62:0x289,_0x3c871a:0x233,_0x4f41a2:0x521,_0x551249:0x63e,_0xa3d812:0x74d,_0xccca08:0x786,_0x26a275:0x354,_0x194e78:0x40d,_0x4eb6d6:0x566,_0x502465:0x532,_0x26ade2:0x4f5,_0x1f5271:0x6d6,_0x38f92b:0x34a,_0x1497d2:0x3e3,_0xe6851a:0x52f,_0x127a53:0x69b,_0x2503c3:0x4bc,_0x3f9d15:0x354,_0x4ecb8a:0x8e9,_0x1e0c79:0x7f0,_0x334d39:0x2aa,_0x1dedcb:0x3d7,_0xe351a9:0x566},_0x2c9913={_0x4ef8a3:0x44},_0x2a328c={};_0x2a328c[_0x2fd6b6(_0x53bec8._0x4bded0,_0x53bec8._0xac0151)]=function(_0xb5b6bf,_0xe6c8c1){return _0xb5b6bf===_0xe6c8c1;},_0x2a328c[_0x53be9a(_0x53bec8._0x96a94d,0x417)]=_0x2fd6b6(0x769,0x8dd)+_0x53be9a(_0x53bec8._0x5effe4,0x4ed)+'opped\x20to'+_0x2fd6b6(_0x53bec8._0x38b044,_0x53bec8._0x2911ae)+_0x53be9a(_0x53bec8._0x395ffd,0x35a)+_0x53be9a(0x3cf,0x3be)+'onnected';function _0x2fd6b6(_0x5d035a,_0x398dc9){return _0x33cded(_0x398dc9,_0x5d035a-_0x2c9913._0x4ef8a3);}const _0x4cf8ea=_0x2a328c;function _0x53be9a(_0x3b292e,_0x1d3407){return _0x33cded(_0x3b292e,_0x1d3407- -0x128);}if(_0xc058e==='client_c'+_0x2fd6b6(0x3fb,_0x53bec8._0x82c205)||_0xc058e===_0x2fd6b6(_0x53bec8._0xe0cc50,0x685)+_0x2fd6b6(0x5d6,0x615)){const _0x5c440e=this[_0x2fd6b6(_0x53bec8._0x30ab30,0x4a3)][_0x53be9a(0x6d5,0x636)+'unt'],_0x32bbe3=_0x4cc6f5??Math['max'](0x1,this[_0x2fd6b6(0x4c2,_0x53bec8._0x4b607d)][_0x2fd6b6(_0x53bec8._0x549c0c,0x629)+_0x2fd6b6(0x696,0x861)]);_0x32bbe3>0x0&&this['clientDe'+'mandStar'+_0x2fd6b6(_0x53bec8._0x466a4b,0x53d)]==null&&(this[_0x2fd6b6(0x4e2,_0x53bec8._0x1f7e86)+'mandStar'+'tedAtMs']=Date['now']());const _0x2a3bfc={};_0x2a3bfc[_0x53be9a(0x468,_0x53bec8._0x58becc)+_0x2fd6b6(_0x53bec8._0x4ed585,0x736)]=_0x32bbe3,this[_0x53be9a(0x5de,0x581)+_0x2fd6b6(0x75e,0x8ec)](_0x2a3bfc);if(_0x4cf8ea[_0x2fd6b6(0x7b3,0x8e6)](_0x32bbe3,0x0))this['gatewayH'+_0x2fd6b6(0x4c0,0x41d)+_0x2fd6b6(0x4ca,0x39b)]=![],this[_0x2fd6b6(_0x53bec8._0x169ef0,_0x53bec8._0x1afa97)+_0x2fd6b6(_0x53bec8._0x2e3a71,_0x53bec8._0xe5d682)+'t'](),this[_0x2fd6b6(0x53f,0x5f0)](_0x4cf8ea[_0x2fd6b6(_0x53bec8._0x5e6bb5,0x4bd)]);else{shouldRecycleGatewayForFreshClient(_0x5c440e,_0x32bbe3,this[_0x2fd6b6(_0x53bec8._0x2b31c1,_0x53bec8._0x7b5e34)+_0x2fd6b6(_0x53bec8._0xe2609f,0x4c3)](),![])&&(this[_0x2fd6b6(0x53f,_0x53bec8._0x52ff0b)]('gateway\x20'+'recycle\x20'+_0x53be9a(0x645,0x5c5)+_0x53be9a(_0x53bec8._0x2870e5,_0x53bec8._0x1ccd82)+'esh\x20clie'+_0x2fd6b6(0x4ba,0x427)+'d'),this['closeGat'+'eway']());if(this['isGatewa'+_0x2fd6b6(_0x53bec8._0xe2609f,0x417)]()){const _0x55151e={};_0x55151e['gatewayC'+_0x53be9a(_0x53bec8._0xa041f9,_0x53bec8._0x2a8571)]=!![],_0x55151e[_0x2fd6b6(0x72d,_0x53bec8._0x1dc35a)+'r']=null,this[_0x2fd6b6(_0x53bec8._0x35636d,0x54c)+_0x53be9a(_0x53bec8._0x1ba4a5,0x5f2)](_0x55151e),this[_0x2fd6b6(0x53f,0x527)](_0x2fd6b6(0x70a,_0x53bec8._0x58becc)+_0x2fd6b6(0x41d,0x409)+_0x53be9a(0x39c,0x4a0)+_0x53be9a(0x3d2,_0x53bec8._0x3515fc)+_0x53be9a(0x44e,0x4d8)+'enMs='+this[_0x53be9a(_0x53bec8._0x5952ff,_0x53bec8._0x453a57)+_0x2fd6b6(0x542,_0x53bec8._0x4eb522)](this[_0x2fd6b6(_0x53bec8._0x5c41ad,_0x53bec8._0x26bd62)+_0x2fd6b6(0x3fb,_0x53bec8._0x3c871a)+_0x53be9a(_0x53bec8._0x4f41a2,_0x53bec8._0x551249)])+('\x20handsha'+_0x2fd6b6(_0x53bec8._0xa3d812,_0x53bec8._0xccca08)+'d=')+this['gatewayH'+_0x53be9a(_0x53bec8._0x4f41a2,_0x53bec8._0x26a275)+_0x53be9a(0x405,0x35e)]);}}this['ensureGa'+_0x53be9a(_0x53bec8._0x194e78,_0x53bec8._0x4eb6d6)+_0x53be9a(_0x53bec8._0x502465,_0x53bec8._0x26ade2)]();return;}if(_0xc058e===_0x53be9a(_0x53bec8._0x1f5271,0x630)+_0x53be9a(_0x53bec8._0x38f92b,_0x53bec8._0x1497d2)+_0x2fd6b6(0x55c,_0x53bec8._0xe6851a)){const _0x5418c5=(_0x53be9a(0x26a,0x44c)+_0x2fd6b6(0x463,0x396))['split']('|');let _0x4a0a21=0x0;while(!![]){switch(_0x5418c5[_0x4a0a21++]){case'0':this[_0x53be9a(_0x53bec8._0x127a53,0x4c2)+_0x53be9a(_0x53bec8._0x2503c3,_0x53bec8._0x3f9d15)+_0x53be9a(0x541,0x35e)]=![];continue;case'1':const _0x1ad7f5={};_0x1ad7f5[_0x53be9a(0x457,0x636)+'unt']=0x0,this['updateSn'+_0x2fd6b6(0x75e,_0x53bec8._0x4ecb8a)](_0x1ad7f5);continue;case'2':this['markDevi'+_0x2fd6b6(_0x53bec8._0x2e3a71,_0x53bec8._0x1e0c79)+'t']();continue;case'3':this['log']('client\x20d'+_0x53be9a(0x2f4,_0x53bec8._0x1497d2)+_0x53be9a(_0x53bec8._0x334d39,0x3b8)+'ping\x20gat'+_0x53be9a(0x2de,_0x53bec8._0x1dedcb)+_0x53be9a(0x431,0x4f5));continue;case'4':this['ensureGa'+_0x53be9a(0x518,_0x53bec8._0xe351a9)+'nected']();continue;case'5':return;}break;}}}[_0x33cded(0x60c,0x620)+_0x5338aa(0x15f,0x22)+_0x5338aa(0x279,0x145)+_0x33cded(0x6c1,0x54b)](_0x2bf017){const _0x24383e={_0x4eb18e:0x42,_0x218ae9:0x161,_0x2a36b2:0x2c,_0x5f13a4:0xba,_0x37c6e9:0x1a,_0x256588:0x156,_0xa3fbef:0x34,_0x2f0c51:0x151,_0x13d4e4:0x1d3,_0x332198:0x11d,_0x42d810:0x8f,_0x47121c:0x12d,_0x526148:0x23f,_0x50e685:0x2e,_0x54f3ff:0x25,_0x34afc7:0x3c3,_0x26d654:0x218,_0x233a60:0x7b,_0x4f79f4:0x50,_0x3585cd:0x1b9,_0x4caedc:0x14c,_0xf54949:0x6d,_0xfc47a:0x28,_0x5546c3:0x32,_0x5e5c7c:0x12e,_0x313afb:0x3bb,_0x48c1c6:0x21f,_0x474d7b:0x17c,_0x1020f6:0x20c,_0x18a7d3:0x1eb,_0x40d522:0x182,_0x32cbb0:0xe9,_0x238273:0x268,_0x4bf937:0x8c,_0x25d87a:0x4f},_0x229dd1={'nzPdg':function(_0x451f33,_0x466578){return _0x451f33===_0x466578;},'dazgX':function(_0x5cae75,_0x469324){return _0x5cae75(_0x469324);}},_0x5f29a6=_0x229dd1[_0x5a0682(-_0x24383e._0x4eb18e,-0x33)](_0x2bf017[_0x5a0682(-_0x24383e._0x218ae9,-_0x24383e._0x2a36b2)],_0x2efbed(-_0x24383e._0x5f13a4,-0xe7))&&_0x229dd1[_0x5a0682(-0x127,_0x24383e._0x37c6e9)](isConnectHandshakeRequest,_0x2bf017[_0x5a0682(-0x29,-_0x24383e._0x256588)]),_0x25bc4a=this[_0x2efbed(-0x17a,_0x24383e._0xa3fbef)+_0x2efbed(_0x24383e._0x2f0c51,_0x24383e._0x13d4e4)];if(!_0x25bc4a||_0x25bc4a[_0x5a0682(-_0x24383e._0x332198,-_0x24383e._0x42d810)+'te']!==_0x10c370[_0x5a0682(0x2,-_0x24383e._0x47121c)]){this[_0x5a0682(-0x8e,-_0x24383e._0x526148)+'tewayCon'+_0x5a0682(-0x20f,-_0x24383e._0x50e685)](),this[_0x5a0682(-_0x24383e._0x54f3ff,-0x1c1)+_0x2efbed(-0x183,-0x2d2)+_0x5a0682(-_0x24383e._0x34afc7,-_0x24383e._0x26d654)+'e'](_0x2bf017);_0x5f29a6&&this[_0x5a0682(0x17,-0x150)](_0x5a0682(0x13d,_0x24383e._0x233a60)+_0x5a0682(-0x24f,-0x213)+_0x5a0682(-_0x24383e._0x4f79f4,-0x14f)+_0x2efbed(0x192,_0x24383e._0x3585cd)+'ct\x20hands'+_0x5a0682(-_0x24383e._0x4caedc,-0x25e)+_0x2efbed(0x62,0x82)+'il\x20gatew'+_0x2efbed(_0x24383e._0xf54949,_0x24383e._0xfc47a)+'nects');return;}if(!this[_0x2efbed(0x3b,-0x57)+_0x5a0682(-_0x24383e._0x5546c3,-0x1cf)+_0x2efbed(-0x129,-_0x24383e._0x5e5c7c)]){if(!_0x5f29a6){this[_0x5a0682(-0x29e,-0x1c1)+_0x5a0682(-_0x24383e._0x313afb,-_0x24383e._0x48c1c6)+_0x2efbed(-_0x24383e._0x474d7b,-0xab)+'e'](_0x2bf017);return;}this[_0x5a0682(-0xc,-0x61)+_0x5a0682(-_0x24383e._0x1020f6,-0x1cf)+'Started']=!![],this['log'](_0x5a0682(0x1d1,_0x24383e._0x233a60)+'handshak'+_0x2efbed(-_0x24383e._0x18a7d3,-0xb4)+_0x2efbed(_0x24383e._0x40d522,0x317)+'='+this['pendingG'+_0x5a0682(0x11f,_0x24383e._0x32cbb0)+'ssages'][_0x5a0682(_0x24383e._0x238273,_0x24383e._0x4bf937)]);}function _0x5a0682(_0x3d6901,_0xb84b4d){return _0x5338aa(_0xb84b4d- -0x3aa,_0x3d6901);}function _0x2efbed(_0x1c4b42,_0xdce3e6){return _0x5338aa(_0x1c4b42- -0x30e,_0xdce3e6);}this[_0x5a0682(0x230,_0x24383e._0x25d87a)+_0x2efbed(0x1,0x85)](_0x2bf017);}[_0x5338aa(0x16b,0xe1)+_0x5338aa(0x3ed,0x423)+_0x5338aa(0x37c,0x291)](){const _0x466068={_0x41cc6b:0x495,_0x4ff0f0:0x62a,_0x4e325e:0x19d,_0x96c3cb:0x5d1,_0x2aa4a0:0x713,_0x587284:0x3c1,_0x1527f:0x597,_0x14e9fc:0x387,_0x361e1c:0x346,_0x2f9591:0x356,_0x289781:0x47d,_0xf5269d:0x155,_0x3cf6b9:0x1c3,_0x6386:0x13c,_0x373aa4:0x3a8,_0xe55ca:0x495,_0x5edf45:0x404,_0x6caf05:0x38d,_0x38ae8d:0x411},_0x3ec52e={_0x5503da:0x38e,_0x566719:0x4b7,_0x3a2db6:0x3a4,_0x24ee17:0x65c,_0x946a17:0x51a,_0x58181a:0x66c,_0x31acdb:0x1a8,_0x342924:0x3c9,_0x46a237:0x509,_0x427c4d:0x5d0,_0x4a8125:0x5a3,_0x1caae0:0x500,_0x325615:0x8e7,_0x37679c:0x76b,_0x948759:0x5d6,_0x445515:0x620,_0x4ecfa4:0x69c,_0x949aec:0x29e,_0x1ec7bd:0x38e,_0x3a595c:0x519,_0x1a5542:0x4c2,_0x46fe52:0x69c,_0x553620:0x8a0,_0x3ddd88:0x6f7,_0x5bd689:0x241,_0x5d8f31:0x7c4,_0x89ea9b:0x330,_0x20ba94:0x2d0,_0x7a1ceb:0x20c},_0x318729={_0x53cf79:0x335,_0x2116f2:0x2ad,_0x2fb9f1:0x35b,_0x46e029:0x3f8},_0x460952={_0x4a1c06:0x223},_0x6fba33={_0x5c0b93:0x173,_0x2bf15e:0x183,_0x3c1ce6:0x1cc},_0x3c8958={_0x45dde8:0x136,_0x183fdd:0xa2,_0x32940e:0xe7,_0x2adc41:0x20,_0x3a854e:0xba,_0x4c63e3:0x1c5,_0x264403:0x232,_0x579968:0x299,_0x20df3d:0x28a,_0x27f2e6:0x28,_0xf7aeaa:0xd7,_0x22dca6:0x1cd,_0x5b73e7:0x285,_0x26d076:0xec,_0x24b5c3:0x223,_0x3121d3:0x119,_0x4a3620:0x1fc,_0x59c835:0x147,_0x471d27:0x266,_0x1dcbdb:0x102,_0x231779:0xb1,_0xb66a24:0xa6,_0x1bec4c:0x1f1,_0x42ba3a:0x13e,_0x59fc32:0x26},_0x4b7890={_0x50dbaa:0xd2},_0x58e725={};_0x58e725[_0x5aaf17(_0x466068._0x41cc6b,_0x466068._0x4ff0f0)]=function(_0x37733b,_0x53b6c8){return _0x37733b*_0x53b6c8;},_0x58e725[_0x564c05(_0x466068._0x4e325e,0x1db)]=_0x5aaf17(0x476,_0x466068._0x96c3cb);const _0x5713cb=_0x58e725;if(this[_0x5aaf17(0x577,_0x466068._0x2aa4a0)]||!this['isRelayO'+_0x5aaf17(_0x466068._0x587284,_0x466068._0x1527f)]()||this[_0x5aaf17(_0x466068._0x14e9fc,0x328)+_0x564c05(0x1c6,0x162)+'g']||this[_0x564c05(0x2f8,_0x466068._0x361e1c)+_0x5aaf17(0x413,0x23e)]())return;this[_0x5aaf17(_0x466068._0x14e9fc,_0x466068._0x2f9591)+'onnectin'+'g']=!![],this[_0x5aaf17(_0x466068._0x289781,0x622)]('gateway\x20'+_0x564c05(_0x466068._0xf5269d,_0x466068._0x3cf6b9)+_0x564c05(0x31e,_0x466068._0x6386)+'l='+this['options'][_0x564c05(0x2bd,_0x466068._0x373aa4)+'rl']);const _0x312119=new _0x10c370(this['options'][_0x5aaf17(0x69d,0x7eb)+'rl'],{'maxPayload':_0x5713cb[_0x5aaf17(_0x466068._0xe55ca,_0x466068._0x5edf45)](0x19*0x400,0x400)});function _0x564c05(_0x3e414e,_0x48349a){return _0x5338aa(_0x48349a- -_0x4b7890._0x50dbaa,_0x3e414e);}this[_0x564c05(0x7d,0xc2)+_0x564c05(0x461,_0x466068._0x6caf05)]=_0x312119,_0x312119[_0x564c05(0x1ff,0xfe)]('open',()=>{const _0x579314={_0x5b2f97:0x45e};if(this['stopped']||this['gatewayS'+_0xee79f4(0x297,_0x3c8958._0x45dde8)]!==_0x312119){_0x312119[_0xee79f4(-0x11,-_0x3c8958._0x183fdd)]();return;}function _0x588bbb(_0x25a551,_0x4597a3){return _0x5aaf17(_0x4597a3- -_0x579314._0x5b2f97,_0x25a551);}this['gatewayC'+_0x588bbb(-_0x3c8958._0x32940e,-0x7)+'g']=![],this[_0xee79f4(-0x102,_0x3c8958._0x2adc41)+_0x588bbb(_0x3c8958._0x3a854e,-0x60)+'Started']=![],this[_0xee79f4(-0x1a3,-_0x3c8958._0x4c63e3)+_0xee79f4(-_0x3c8958._0x264403,-0x213)+_0x588bbb(_0x3c8958._0x579968,_0x3c8958._0x20df3d)]=Date[_0xee79f4(-0x84,-_0x3c8958._0x27f2e6)]();const _0x3d143f={};_0x3d143f[_0x588bbb(-0xec,-_0x3c8958._0xf7aeaa)+_0xee79f4(-0x2f4,-0x213)]=!![],_0x3d143f[_0x588bbb(0x208,0x20d)+'r']=null;function _0xee79f4(_0x5df076,_0x1b9b65){return _0x5aaf17(_0x1b9b65- -0x54c,_0x5df076);}this[_0x588bbb(0x19a,_0x3c8958._0x22dca6)+'apshot'](_0x3d143f),this[_0xee79f4(-_0x3c8958._0x5b73e7,-0xcf)]('gateway\x20'+_0x588bbb(0x190,_0x3c8958._0x26d076)+_0x588bbb(-_0x3c8958._0x24b5c3,-0xfd)+'lientDem'+_0xee79f4(-_0x3c8958._0x3121d3,-0xaa)+this[_0xee79f4(-0x171,-_0x3c8958._0x4a3620)+'ince'](this[_0x588bbb(_0x3c8958._0x59c835,-0x3e)+_0x588bbb(0x1a9,_0x3c8958._0x471d27)+_0x588bbb(-_0x3c8958._0x1dcbdb,_0x3c8958._0x231779)])),this['flushPen'+_0x588bbb(0x5f,_0x3c8958._0xb66a24)+_0xee79f4(_0x3c8958._0x1bec4c,_0x3c8958._0x42ba3a)+_0xee79f4(0x89,_0x3c8958._0x59fc32)]();}),_0x312119['on'](_0x5713cb[_0x5aaf17(0x4d0,_0x466068._0x38ae8d)],(_0xa0bb54,_0x10ce96)=>{function _0xf8f40e(_0x448e6f,_0x4b3134){return _0x5aaf17(_0x4b3134- -0x443,_0x448e6f);}function _0x2ee876(_0x4daba0,_0x4404b6){return _0x5aaf17(_0x4daba0- -0x60f,_0x4404b6);}this[_0x2ee876(0x99,-0x24)+_0x2ee876(-_0x6fba33._0x5c0b93,-_0x6fba33._0x2bf15e)+_0xf8f40e(_0x6fba33._0x3c1ce6,0x8a)](_0xa0bb54,_0x10ce96);});function _0x5aaf17(_0x1af34a,_0x573036){return _0x5338aa(_0x1af34a-_0x460952._0x4a1c06,_0x573036);}_0x312119[_0x5aaf17(0x3f3,0x37c)](_0x5aaf17(0x4ad,0x539),_0x42633f=>{function _0x355120(_0x3253b3,_0x3b9c0d){return _0x5aaf17(_0x3253b3- -0x324,_0x3b9c0d);}function _0x24e74a(_0x2cea45,_0x2d8d8a){return _0x5aaf17(_0x2cea45- -0x31a,_0x2d8d8a);}this[_0x355120(0x159,_0x318729._0x53cf79)](_0x24e74a(0x32e,_0x318729._0x2116f2)+_0x24e74a(_0x318729._0x2fb9f1,_0x318729._0x46e029)+String(_0x42633f));}),_0x312119['once'](_0x5aaf17(0x4aa,0x43d),(_0x548c93,_0x459e6e)=>{const _0x2a842c={_0x573ef5:0x1df},_0x2cd418={_0x3419ae:0x100};this[_0x6e5d6e(_0x3ec52e._0x5503da,_0x3ec52e._0x566719)+'ocket']===_0x312119&&(this['gatewayS'+'ocket']=null);this[_0x6e5d6e(_0x3ec52e._0x3a2db6,0x487)+_0x6e5d6e(_0x3ec52e._0x24ee17,0x557)+'g']=![],this[_0x6e5d6e(_0x3ec52e._0x946a17,_0x3ec52e._0x58181a)+_0x6e5d6e(0x656,0x4fe)+_0x6e5d6e(0x682,0x508)]=![],this[_0x63a20f(_0x3ec52e._0x31acdb,0x306)+_0x6e5d6e(_0x3ec52e._0x342924,0x439)+_0x63a20f(_0x3ec52e._0x46a237,_0x3ec52e._0x427c4d)]=null;function _0x6e5d6e(_0x2ad428,_0x4a187d){return _0x5aaf17(_0x4a187d-_0x2cd418._0x3419ae,_0x2ad428);}this[_0x63a20f(0x44c,0x2e8)+'apshot']({'gatewayConnected':![],'lastError':_0x548c93===0x3e8?this[_0x6e5d6e(_0x3ec52e._0x4a8125,_0x3ec52e._0x1caae0)][_0x6e5d6e(_0x3ec52e._0x325615,_0x3ec52e._0x37679c)+'r']:_0x6e5d6e(_0x3ec52e._0x948759,0x748)+'closed:\x20'+(_0x459e6e[_0x6e5d6e(_0x3ec52e._0x445515,_0x3ec52e._0x4ecfa4)]()||_0x548c93)}),this[_0x63a20f(_0x3ec52e._0x949aec,0x196)]('gateway\x20'+_0x63a20f(_0x3ec52e._0x1ec7bd,_0x3ec52e._0x3a595c)+'cted\x20cod'+'e='+_0x548c93+'\x20reason='+(_0x459e6e[_0x6e5d6e(_0x3ec52e._0x1a5542,_0x3ec52e._0x46fe52)]()||_0x63a20f(0x3fd,0x2c3))+(_0x6e5d6e(_0x3ec52e._0x553620,_0x3ec52e._0x3ddd88)+_0x63a20f(0x333,0x4d1)+'ndMs=')+this['elapsedS'+_0x6e5d6e(0x52e,0x580)](this[_0x63a20f(_0x3ec52e._0x5bd689,0x1ff)+_0x6e5d6e(0x615,_0x3ec52e._0x5d8f31)+_0x63a20f(_0x3ec52e._0x89ea9b,_0x3ec52e._0x20ba94)]));function _0x63a20f(_0x2f3037,_0x1a618d){return _0x5aaf17(_0x2f3037- -_0x2a842c._0x573ef5,_0x1a618d);}this['schedule'+_0x6e5d6e(0x542,0x6cc)+_0x63a20f(_0x3ec52e._0x7a1ceb,0x3c)]();});}[_0x5338aa(0x485,0x2e4)+_0x33cded(0x369,0x51a)+_0x33cded(0x3bf,0x54b)](_0x6e4f46,_0x35b0de){const _0x3e8382={_0x57813f:0x18,_0xfda3c9:0x2d,_0x3cd241:0xe4,_0xf62554:0xcd,_0x4ca139:0x75,_0x3b093f:0x10d,_0x4d6cec:0x26f,_0x15339c:0x19e,_0x3df9bb:0x2cc,_0x4645d3:0x3d7,_0x3242df:0x41,_0x42d0a8:0xe4},_0x790ea7={'vOgMx':function(_0x5e4b18,_0x3108c7){return _0x5e4b18(_0x3108c7);},'KLZGC':function(_0x4c6404,_0x13c9f0){return _0x4c6404==_0x13c9f0;}},_0x6bf531=this['relaySoc'+'ket'];if(!_0x6bf531||_0x6bf531['readySta'+'te']!==_0x10c370[_0x182362(-0xbb,-_0x3e8382._0x57813f)])return;if(_0x35b0de){_0x6bf531[_0x182362(_0x3e8382._0xfda3c9,-_0x3e8382._0x3cd241)](normalizeBinary(_0x6e4f46));return;}const _0x469e88=_0x790ea7['vOgMx'](normalizeText,_0x6e4f46);if(_0x790ea7[_0x182362(-_0x3e8382._0xf62554,-_0x3e8382._0x4ca139)](_0x469e88,null))return;const _0x2198ab=parsePairingRequestFromError(_0x469e88);_0x2198ab&&this[_0x182362(0x229,_0x3e8382._0x3b093f)+_0x17dbfc(_0x3e8382._0x4d6cec,0x41e)+_0x182362(0x6e,0xad)](_0x2198ab);const _0x5311bc=parsePairResolvedEvent(_0x469e88);function _0x182362(_0x26f474,_0x4401d8){return _0x5338aa(_0x4401d8- -0x295,_0x26f474);}function _0x17dbfc(_0x195eae,_0xbeacfd){return _0x5338aa(_0x195eae- -0x76,_0xbeacfd);}_0x5311bc&&this[_0x182362(0x222,0xda)+_0x17dbfc(_0x3e8382._0x15339c,_0x3e8382._0x3df9bb)+_0x17dbfc(0x3a3,_0x3e8382._0x4645d3)](_0x5311bc[_0x17dbfc(0xc1,_0x3e8382._0x3242df)+'d'],_0x5311bc['decision']),_0x6bf531[_0x182362(-0xe2,-_0x3e8382._0x42d0a8)](_0x469e88);}[_0x33cded(0x3b7,0x3b8)+_0x33cded(0x4a6,0x582)+_0x33cded(0x588,0x708)+_0x33cded(0x7a9,0x5f0)](){const _0x5c5fdf={_0x4b3ee3:0xf6,_0x5854bb:0x2a4,_0x4ad107:0x120,_0x459131:0x209,_0x45303a:0x103,_0x23ba22:0x219,_0x119b19:0x167,_0x298b22:0x20b,_0x1e6473:0x72,_0x2b98ee:0x2d5,_0x5765e4:0x20b,_0x2eb208:0x29,_0x2372e8:0x2cc,_0x7ebf59:0x29b,_0x428ac3:0x3e8,_0x1e0986:0x113},_0x34110e={_0x41d0d2:0x3f0},_0x31c153={};function _0x5397e2(_0x22b699,_0x53af88){return _0x5338aa(_0x53af88- -0x74,_0x22b699);}_0x31c153['FRnnv']=_0x5397e2(_0x5c5fdf._0x4b3ee3,0x1e0);const _0x59ee06=_0x31c153,_0x3ce1a5=this[_0x5397e2(_0x5c5fdf._0x5854bb,_0x5c5fdf._0x4ad107)+'ocket'];if(!_0x3ce1a5||_0x3ce1a5[_0x5a30c3(-0x20c,-0xd5)+'te']!==_0x10c370[_0x5397e2(0x39d,_0x5c5fdf._0x459131)])return;const _0x4cd1bb=[];function _0x5a30c3(_0xbb1cf,_0x82594c){return _0x5338aa(_0x82594c- -_0x34110e._0x41d0d2,_0xbb1cf);}const _0x576a3e=[...this['pendingG'+_0x5a30c3(_0x5c5fdf._0x45303a,0xa3)+_0x5397e2(0x346,0x163)]];this['pendingG'+_0x5a30c3(0x128,0xa3)+_0x5a30c3(-0x152,-_0x5c5fdf._0x23ba22)]=[];for(const _0x4e50eb of _0x576a3e){if(!this[_0x5397e2(0xf0,0x2d5)+_0x5397e2(0xfb,_0x5c5fdf._0x119b19)+_0x5a30c3(-0x3a3,-_0x5c5fdf._0x298b22)]){if(_0x4e50eb[_0x5a30c3(0x1c,-_0x5c5fdf._0x1e6473)]!==_0x59ee06[_0x5a30c3(0xc0,-0xce)]||!isConnectHandshakeRequest(_0x4e50eb['text'])){_0x4cd1bb['push'](_0x4e50eb);continue;}this['gatewayH'+'andshake'+_0x5a30c3(-_0x5c5fdf._0x2b98ee,-_0x5c5fdf._0x5765e4)]=!![];}this[_0x5a30c3(_0x5c5fdf._0x2eb208,0x9)+_0x5397e2(_0x5c5fdf._0x2372e8,_0x5c5fdf._0x7ebf59)](_0x4e50eb);}this['pendingG'+_0x5397e2(_0x5c5fdf._0x428ac3,0x41f)+_0x5397e2(_0x5c5fdf._0x1e0986,0x163)]=_0x4cd1bb;}['sendToGa'+_0x5338aa(0x30f,0x469)](_0x5c20f4){const _0x3b45fd={_0x264ef9:0x58f,_0x1efc09:0x17,_0x2f6c1b:0x1d2,_0x3fea44:0x3ff,_0x285c62:0x406,_0x6d35f4:0x118,_0x5f3d5e:0xa4,_0x381ccc:0x12,_0x54640e:0xc,_0x4b3f4e:0x524,_0x200356:0x259,_0x329f79:0xcc,_0x752a7f:0x3d,_0x5a3918:0x12,_0x52bfd6:0xe9,_0x59f980:0x20a},_0x56a990={_0x4960e8:0x266},_0x3770a6=this['gatewayS'+_0x190a1b(0x357,0x1f9)];if(!_0x3770a6||_0x3770a6[_0x1b113b(0x596,_0x3b45fd._0x264ef9)+'te']!==_0x10c370[_0x190a1b(0x148,_0x3b45fd._0x1efc09)]){this[_0x190a1b(-_0x3b45fd._0x2f6c1b,-0x7d)+_0x1b113b(0x23d,_0x3b45fd._0x3fea44)+_0x1b113b(0x293,_0x3b45fd._0x285c62)+'e'](_0x5c20f4);return;}function _0x190a1b(_0x5584cb,_0x14c137){return _0x5338aa(_0x14c137- -_0x56a990._0x4960e8,_0x5584cb);}function _0x1b113b(_0x198082,_0x177202){return _0x5338aa(_0x177202-0x274,_0x198082);}if(_0x5c20f4[_0x190a1b(-0x6e,_0x3b45fd._0x6d35f4)]==='text'){const _0x32dd59=patchConnectRequestGatewayAuth(_0x5c20f4[_0x190a1b(-_0x3b45fd._0x5f3d5e,-_0x3b45fd._0x381ccc)],readOpenClawInfo());_0x32dd59['injected']&&this[_0x190a1b(-0x1ec,-_0x3b45fd._0x54640e)](_0x1b113b(0x6d7,0x699)+_0x1b113b(_0x3b45fd._0x4b3f4e,0x509)+_0x1b113b(0x5b6,0x6b3)+_0x190a1b(_0x3b45fd._0x200356,_0x3b45fd._0x329f79)+'e=passwo'+'rd');_0x3770a6[_0x1b113b(0x26d,0x425)](_0x32dd59[_0x190a1b(_0x3b45fd._0x752a7f,-_0x3b45fd._0x5a3918)]);return;}_0x3770a6['send'](_0x5c20f4[_0x190a1b(_0x3b45fd._0x52bfd6,_0x3b45fd._0x59f980)]);}['sendGate'+'wayReque'+'st'](_0x27e831,_0x328105){const _0x302ac5={_0x175e0f:0x54b,_0x25e637:0x6da,_0x318b0e:0x233,_0x54518f:0xa5,_0x5db0e0:0x2df,_0x1f21c1:0x37,_0x40aa8f:0x1ea,_0x15be41:0x166},_0x23e613={};_0x23e613['nQjnA']=_0x589c4b(_0x302ac5._0x175e0f,_0x302ac5._0x25e637);const _0x2c09cc=_0x23e613;function _0x54d58b(_0x4ce34c,_0x2bb684){return _0x5338aa(_0x4ce34c- -0x348,_0x2bb684);}function _0x589c4b(_0x5e1a64,_0xfc2684){return _0x5338aa(_0x5e1a64-0x8b,_0xfc2684);}const _0x5da850=JSON['stringif'+'y']({'type':_0x2c09cc[_0x54d58b(-0x122,-_0x302ac5._0x318b0e)],'id':'bridge-'+_0x372cc4(),'method':_0x27e831,'params':_0x328105}),_0x1bb19b={};_0x1bb19b[_0x54d58b(0x36,-_0x302ac5._0x54518f)]=_0x589c4b(_0x302ac5._0x5db0e0,0x27c),_0x1bb19b[_0x589c4b(_0x302ac5._0x5db0e0,0x405)]=_0x5da850,this[_0x54d58b(_0x302ac5._0x1f21c1,-0x10a)+_0x589c4b(_0x302ac5._0x40aa8f,_0x302ac5._0x15be41)+'tewayMes'+_0x589c4b(0x335,0x2ec)](_0x1bb19b);}[_0x5338aa(0x3d5,0x257)+_0x5338aa(0x17c,0x15d)](){const _0x23732d={_0x5077dd:0x569,_0x53626a:0x2ef,_0x4c97c6:0x5b8,_0x1c33ef:0x79c,_0x18b179:0x83,_0x1e2794:0x1c6,_0x31aae1:0xec,_0x5e9b19:0x296,_0x4f0b5c:0x522,_0x38dbc1:0x5cd,_0x329034:0x4a1},_0x4ee939={_0x4d78eb:0x62};function _0x1cca82(_0x4e9a94,_0x2a1c7a){return _0x5338aa(_0x2a1c7a-_0x4ee939._0x4d78eb,_0x4e9a94);}this[_0x454584(_0x23732d._0x5077dd,0x4d1)+_0x1cca82(0x55c,0x4c1)]?.['close'](),this[_0x1cca82(_0x23732d._0x53626a,0x1f6)+_0x454584(_0x23732d._0x4c97c6,_0x23732d._0x1c33ef)]=null;function _0x454584(_0x574225,_0x74f4f9){return _0x5338aa(_0x74f4f9-0x33d,_0x574225);}this[_0x1cca82(_0x23732d._0x18b179,_0x23732d._0x1e2794)+_0x1cca82(_0x23732d._0x31aae1,_0x23732d._0x5e9b19)+'g']=![],this[_0x454584(0x53f,0x686)+'andshake'+_0x454584(0x618,_0x23732d._0x4f0b5c)]=![],this[_0x454584(_0x23732d._0x38dbc1,_0x23732d._0x329034)+_0x454584(0x5cf,0x453)+_0x454584(0x90c,0x802)]=null;}[_0x5338aa(0x3b7,0x369)+_0x5338aa(0x276,0x3b8)+_0x33cded(0x7bc,0x67c)](){const _0x4ba596={_0x4385f5:0x5a5,_0x70327e:0x49a,_0x257872:0x1a4,_0xcf2d93:0x14a,_0x465faa:0x6bc,_0x5efc82:0x3bf,_0x2656f3:0x4b2,_0x57cd3a:0x1d4,_0x256f1b:0xb3,_0x36e0a9:0x646,_0x20adbc:0x76e},_0x2d8a52={_0x33bc41:0x616,_0x2288ad:0x196,_0x506dca:0x4bc},_0x357011={_0x232a2d:0x2fc},_0x5e1657={_0x589b73:0x362},_0x4c5578={_0x4dd3f0:0x12};if(this[_0x3a857b(_0x4ba596._0x4385f5,0x5e3)]||this['reconnec'+_0x54ba4b(0x1cd,-0x8)])return;function _0x3a857b(_0x3f92ae,_0x4049c9){return _0x33cded(_0x3f92ae,_0x4049c9- -_0x4c5578._0x4dd3f0);}function _0x54ba4b(_0x3b1734,_0x25abc4){return _0x33cded(_0x25abc4,_0x3b1734- -_0x5e1657._0x589b73);}const _0x65afa9=this[_0x3a857b(0x2e6,_0x4ba596._0x70327e)]['reconnec'+_0x54ba4b(0x363,0x2ca)+_0x54ba4b(_0x4ba596._0x257872,0x291)]??RECONNECT_BASE_DELAY_MS,_0x5c4e84=this[_0x54ba4b(_0x4ba596._0xcf2d93,0x2bf)]['reconnec'+_0x54ba4b(0xeb,-0x79)+_0x3a857b(0x4ec,_0x4ba596._0x465faa)]??RECONNECT_MAX_DELAY_MS,_0x1c555c=Math[_0x54ba4b(0x238,0x372)](_0x5c4e84,_0x65afa9*Math['max'](0x1,this[_0x3a857b(_0x4ba596._0x5efc82,_0x4ba596._0x2656f3)+'empt']));this[_0x54ba4b(0x199,-0x10)](_0x54ba4b(0x22c,0x16a)+_0x54ba4b(_0x4ba596._0x57cd3a,_0x4ba596._0x256f1b)+_0x3a857b(0x532,_0x4ba596._0x36e0a9)+_0x3a857b(0x3f4,0x47d)+'s='+_0x1c555c),this[_0x3a857b(_0x4ba596._0x20adbc,0x751)+_0x54ba4b(0x1cd,-0xe)]=setTimeout(()=>{function _0x3f670c(_0xd0f301,_0x128969){return _0x54ba4b(_0xd0f301- -_0x357011._0x232a2d,_0x128969);}function _0x31adba(_0x1ab84e,_0x47c3de){return _0x54ba4b(_0x47c3de-0x215,_0x1ab84e);}this[_0x31adba(0x494,_0x2d8a52._0x33bc41)+_0x3f670c(-0x12f,-0x2a3)]=null,void this[_0x3f670c(-_0x2d8a52._0x2288ad,-0x272)+_0x31adba(0x62a,_0x2d8a52._0x506dca)]();},_0x1c555c);}['schedule'+_0x5338aa(0x3a9,0x217)+_0x33cded(0x576,0x469)](){const _0x3f09c6={_0xb063d8:0x497,_0x30b157:0xb6,_0x2d8b52:0x10,_0x8e79c1:0xaa,_0x277ce8:0x143,_0x30a1b7:0x40},_0x451f0b={_0x13b7f7:0x9f,_0x243ed9:0x15a,_0x2571db:0x647,_0x29ea47:0x4b4,_0x397780:0x3c,_0xbcdf3c:0x6c5},_0x146156={_0xf369d2:0x385};if(this[_0x252824(0x470,_0x3f09c6._0xb063d8)]||this['gatewayR'+_0x14bad0(-_0x3f09c6._0x30b157,-_0x3f09c6._0x2d8b52)+'r']||!this[_0x14bad0(-0xc1,_0x3f09c6._0x8e79c1)+'pen']())return;function _0x14bad0(_0x1d8df8,_0x2615e0){return _0x5338aa(_0x1d8df8- -_0x146156._0xf369d2,_0x2615e0);}function _0x252824(_0x15a8f3,_0x19fe2d){return _0x5338aa(_0x15a8f3-0x11c,_0x19fe2d);}const _0x1d7f8a=this['options'][_0x14bad0(0x143,0x31e)+_0x252824(0x346,0x28b)+_0x252824(0x549,0x5ce)]??GATEWAY_RETRY_DELAY_MS;this[_0x14bad0(_0x3f09c6._0x277ce8,-_0x3f09c6._0x30a1b7)+_0x252824(0x3eb,0x2c9)+'r']=setTimeout(()=>{const _0x524334={_0x4c7034:0x22d};this[_0x5c6adf(_0x451f0b._0x13b7f7,0x125)+_0x5c6adf(-_0x451f0b._0x243ed9,-0x10d)+'r']=null;function _0x5c6adf(_0x2f6542,_0x4ac0ff){return _0x252824(_0x2f6542- -0x545,_0x4ac0ff);}function _0x31709d(_0x475a62,_0x4fcc1e){return _0x252824(_0x4fcc1e-_0x524334._0x4c7034,_0x475a62);}this[_0x31709d(_0x451f0b._0x2571db,_0x451f0b._0x29ea47)+_0x5c6adf(-_0x451f0b._0x397780,-0x108)+_0x31709d(0x7fd,_0x451f0b._0xbcdf3c)]();},_0x1d7f8a);}['startHea'+_0x33cded(0x753,0x71d)](){const _0x5a2e1c={_0x3fc497:0x10a,_0x4c1933:0x4dd,_0x35465a:0x397},_0x46219b={_0x37480e:0x2b6,_0xc4be77:0x304,_0x2e4889:0xe1,_0x239354:0x242,_0x46a27e:0x2e1,_0x3fcc6b:0x1f1,_0xbc7ea3:0x309,_0x43807e:0x1e4,_0x1cc7ee:0x610,_0x422223:0xac,_0x19535c:0x4e,_0x3bad6f:0x2e9,_0x36def4:0x18a,_0x32b542:0x109},_0x1dab03={_0x524740:0xcb};this[_0x216440(-_0x5a2e1c._0x3fc497,-0x49)+_0x10f409(0x595,0x50e)]();function _0x216440(_0x175a84,_0x21c8b9){return _0x5338aa(_0x175a84- -0x21a,_0x21c8b9);}function _0x10f409(_0x46cd43,_0x4b1dbb){return _0x5338aa(_0x46cd43-_0x1dab03._0x524740,_0x4b1dbb);}this['heartbea'+'tTimer']=setInterval(()=>{const _0x35423d=this['relaySoc'+_0x30ab91(-_0x46219b._0x37480e,-_0x46219b._0xc4be77)];if(!_0x35423d||_0x35423d[_0x30ab91(-_0x46219b._0x2e4889,0xb6)+'te']!==_0x10c370[_0x5fa15(_0x46219b._0x239354,_0x46219b._0x46a27e)])return;const _0x56b40e=this[_0x30ab91(-_0x46219b._0x3fcc6b,-0x260)]['heartbea'+_0x5fa15(_0x46219b._0xbc7ea3,0x23d)+'Ms']??HEARTBEAT_TIMEOUT_MS;function _0x30ab91(_0x33b61c,_0x410a7a){return _0x216440(_0x33b61c- -0x1e2,_0x410a7a);}function _0x5fa15(_0x4200f4,_0x337e48){return _0x216440(_0x4200f4-0x1df,_0x337e48);}if(Date['now']()-this[_0x5fa15(0x28c,_0x46219b._0x43807e)+_0x5fa15(0x44f,_0x46219b._0x1cc7ee)+_0x30ab91(0x31,-_0x46219b._0x422223)]>_0x56b40e){this['log']('relay\x20he'+_0x30ab91(_0x46219b._0x19535c,0xd9)+_0x5fa15(0x3aa,_0x46219b._0x3bad6f)+'t'),_0x35423d[_0x5fa15(0x368,0x1b7)+'e']();return;}_0x35423d[_0x5fa15(_0x46219b._0x36def4,_0x46219b._0x32b542)]();},this['options']['heartbea'+_0x10f409(0x37e,_0x5a2e1c._0x4c1933)+_0x10f409(_0x5a2e1c._0x35465a,0x485)]??HEARTBEAT_INTERVAL_MS);}['stopHear'+_0x33cded(0x5f2,0x76b)](){const _0x5676e8={_0x344ea2:0x29e,_0x273731:0x159,_0x312b54:0x137,_0x40086d:0x29e,_0x4d845d:0x1b5,_0x38496e:0x113,_0x4334e5:0x39},_0x1cc372={_0x1eb861:0x255};function _0x5a81aa(_0x5b4344,_0x4b7f0d){return _0x5338aa(_0x5b4344- -0x3e7,_0x4b7f0d);}const _0xe50aec={'JvAEw':function(_0x35e92d,_0x141bbb){return _0x35e92d(_0x141bbb);}};function _0x2568d6(_0x240398,_0x1d680f){return _0x5338aa(_0x1d680f- -_0x1cc372._0x1eb861,_0x240398);}this[_0x5a81aa(-_0x5676e8._0x344ea2,-0x104)+_0x5a81aa(-_0x5676e8._0x273731,-_0x5676e8._0x312b54)]&&(_0xe50aec['JvAEw'](clearInterval,this[_0x2568d6(-0x27f,-0x10c)+_0x2568d6(-0xbb,0x39)]),this[_0x5a81aa(-_0x5676e8._0x40086d,-_0x5676e8._0x4d845d)+_0x2568d6(-_0x5676e8._0x38496e,_0x5676e8._0x4334e5)]=null);}['pushPend'+'ingGatew'+_0x33cded(0x2ca,0x433)+'e'](_0x4e01f2){const _0x199b73={_0xedfaa:0x2e3,_0xec967:0x66c,_0x3a7d13:0x5ad,_0x2ad933:0x6c9,_0x1f451f:0xaf,_0x22351b:0x296,_0x2d71a3:0x7d,_0x44d83e:0x5c,_0x28b405:0x268,_0x49c70a:0x43d},_0x5c8941={_0x40f090:0x6b7};function _0x5b3c7a(_0x8a0e02,_0x425dd5){return _0x33cded(_0x8a0e02,_0x425dd5- -0x6b);}function _0x1487b1(_0x42ae6e,_0x2062d2){return _0x33cded(_0x2062d2,_0x42ae6e- -_0x5c8941._0x40f090);}this['pendingG'+_0x5b3c7a(0x881,0x6c9)+_0x5b3c7a(_0x199b73._0xedfaa,0x40d)][_0x5b3c7a(0x815,_0x199b73._0xec967)]>=MAX_PENDING_GATEWAY_MESSAGES&&this[_0x1487b1(-0x7a,0x168)+_0x5b3c7a(_0x199b73._0x3a7d13,_0x199b73._0x2ad933)+_0x1487b1(-0x23f,-_0x199b73._0x1f451f)][_0x1487b1(-0x2b0,-_0x199b73._0x22351b)](),this['pendingG'+_0x1487b1(_0x199b73._0x2d71a3,-_0x199b73._0x44d83e)+'ssages'][_0x1487b1(-_0x199b73._0x28b405,-_0x199b73._0x49c70a)](_0x4e01f2);}[_0x5338aa(0x284,0x403)+_0x33cded(0x660,0x54a)+_0x5338aa(0x1a7,0x40)](_0x171566,_0x231b18){const _0x1e1cba={_0x55c2c3:0x4be,_0x178598:0xe5,_0x2988e4:0x3f,_0x4ced82:0xa8,_0x38fb6b:0x21d,_0xbac0f8:0x10e,_0x312f22:0x87,_0x124db3:0x670,_0x22da40:0x752,_0x30a766:0x1f2,_0x5141ad:0x14d,_0x4051bf:0xb4,_0x476b64:0x61},_0x544a3c={_0x49466c:0x1bd},_0x171f2d={_0x5077ab:0x3ae},_0x1185ba=Date[_0x104799(_0x1e1cba._0x55c2c3,0x57f)](),_0x1f333a=new Map(this[_0x3720ee(-_0x1e1cba._0x178598,-0x1d1)][_0x104799(0x4e4,0x431)+_0x3720ee(-_0x1e1cba._0x2988e4,-0x8a)][_0x104799(0x665,0x847)](_0x484888=>[_0x484888['id'],{..._0x484888}])),_0x28fcb9=_0x1f333a[_0x3720ee(-0x177,-0x1ac)](_0x171566)??{'id':_0x171566,'label':_0x231b18,'state':'connecte'+'d','lastSeenMs':_0x1185ba};_0x28fcb9[_0x3720ee(-_0x1e1cba._0x4ced82,0x8e)]=_0x231b18,_0x28fcb9[_0x3720ee(_0x1e1cba._0x38fb6b,0x129)]=_0x3720ee(-_0x1e1cba._0xbac0f8,-_0x1e1cba._0x312f22)+'d';function _0x3720ee(_0x48ccb5,_0x20bd44){return _0x5338aa(_0x20bd44- -_0x171f2d._0x5077ab,_0x48ccb5);}_0x28fcb9[_0x104799(_0x1e1cba._0x124db3,_0x1e1cba._0x22da40)+'Ms']=_0x1185ba,_0x1f333a[_0x3720ee(-_0x1e1cba._0x30a766,-_0x1e1cba._0x5141ad)](_0x171566,_0x28fcb9);const _0x187520=[..._0x1f333a['values']()][_0x104799(0x509,0x392)]((_0x167746,_0x4c0e20)=>_0x4c0e20[_0x3720ee(0x28c,0x105)+'Ms']-_0x167746['lastSeen'+'Ms'])['slice'](0x0,MAX_DEVICE_DETAILS);function _0x104799(_0x9a0419,_0x13c11f){return _0x5338aa(_0x9a0419-_0x544a3c._0x49466c,_0x13c11f);}const _0x49d0b4={};_0x49d0b4['connecte'+'dDevices']=_0x187520,this[_0x3720ee(_0x1e1cba._0x4051bf,0x5a)+_0x3720ee(_0x1e1cba._0x476b64,0xcb)](_0x49d0b4);}[_0x5338aa(0x4b8,0x50f)+_0x5338aa(0x394,0x317)+'t'](){const _0x2e32a2={_0x4d811e:0x28f,_0x4f512d:0x64,_0x838a15:0xee,_0xb4f5ff:0x49},_0x3eb60f={_0x2e63d0:0x308},_0x4b1bf7={_0x3418d4:0x6b6};function _0xcaa11a(_0x207e67,_0x6e46f9){return _0x33cded(_0x207e67,_0x6e46f9- -_0x4b1bf7._0x3418d4);}function _0x33cc76(_0x111f62,_0x309ed9){return _0x33cded(_0x309ed9,_0x111f62- -_0x3eb60f._0x2e63d0);}this[_0x33cc76(0x3a1,_0x2e32a2._0x4d811e)+_0xcaa11a(0x1c5,_0x2e32a2._0x4f512d)]({'connectedDevices':this['snapshot'][_0xcaa11a(-0xcc,-_0x2e32a2._0x838a15)+_0xcaa11a(_0x2e32a2._0xb4f5ff,-0xf1)]['map'](_0xe971d8=>({..._0xe971d8,'state':_0x33cc76(0x1cb,0x2fa)}))});}['addPendi'+'ngPairRe'+_0x5338aa(0x342,0x2f1)](_0x4283bb){const _0x5af58b={_0x1666bc:0x209,_0x5cf515:0x2f1,_0x5f3ed7:0x35,_0x2118f9:0x160,_0x3a8c5f:0x2a9,_0x1ed67d:0x2ae,_0x41e300:0x10b,_0x21dff6:0x362,_0x47cc3b:0x326,_0xf6453f:0x255,_0x15ed54:0x129,_0x4c8c17:0x218,_0x12ac91:0xb9,_0x302acc:0x14f,_0x385dfd:0x21,_0x272022:0x4,_0x48b8e5:0x39e,_0x109e4a:0x2b8,_0x4f2aea:0xd,_0x4d8299:0x3cb},_0x28192e={_0x398adb:0x1a8},_0x455174={_0x1faa6d:0xe2};if(this[_0x1cd4fe(_0x5af58b._0x1666bc,0xfb)][_0x1cd4fe(0x200,0x10b)+'airReque'+'sts'][_0x1cd4fe(0x206,_0x5af58b._0x5cf515)](_0x974e25=>_0x974e25['requestI'+'d']===_0x4283bb[_0x10ad0e(-0x71,-0x104)+'d']))return;const _0x2da652=[...this[_0x10ad0e(_0x5af58b._0x5f3ed7,-_0x5af58b._0x2118f9)][_0x10ad0e(0x45,0x1a)+_0x10ad0e(_0x5af58b._0x3a8c5f,_0x5af58b._0x1ed67d)+_0x10ad0e(0x25e,0x221)],_0x4283bb][_0x10ad0e(0xd9,0x2e)](-MAX_PENDING_PAIR_REQUESTS);function _0x1cd4fe(_0x11d2a6,_0x2d0a74){return _0x5338aa(_0x2d0a74- -_0x455174._0x1faa6d,_0x11d2a6);}const _0xa2a477={};_0xa2a477[_0x1cd4fe(0x2e8,_0x5af58b._0x41e300)+_0x10ad0e(0x2a9,_0x5af58b._0x21dff6)+'sts']=_0x2da652,this[_0x1cd4fe(0x4b2,_0x5af58b._0x47cc3b)+'apshot'](_0xa2a477);function _0x10ad0e(_0x154f68,_0x2c80a0){return _0x5338aa(_0x154f68- -_0x28192e._0x398adb,_0x2c80a0);}this[_0x1cd4fe(_0x5af58b._0xf6453f,_0x5af58b._0x15ed54)]['onPendin'+_0x10ad0e(0x2d3,_0x5af58b._0x4c8c17)+'uest']?.(_0x4283bb),this[_0x1cd4fe(0xf7,0x178)](_0x1cd4fe(_0x5af58b._0x12ac91,_0x5af58b._0x302acc)+_0x10ad0e(-_0x5af58b._0x385dfd,_0x5af58b._0x272022)+_0x1cd4fe(_0x5af58b._0x48b8e5,0x209)+_0x10ad0e(0x1b1,_0x5af58b._0x109e4a)+_0x4283bb[_0x1cd4fe(-0x138,0x55)+'d']+('\x20deviceI'+'d=')+(_0x4283bb[_0x10ad0e(_0x5af58b._0x4f2aea,0x37)]||_0x1cd4fe(_0x5af58b._0x4d8299,0x24d)+'>'));}[_0x33cded(0x62c,0x610)+'RequestR'+'esolved'](_0x3f2ce5,_0x39fd19){const _0x4a4d2c={_0x2dcbba:0xce,_0x4530e8:0x1bb,_0x5d23a0:0xbe,_0x56f728:0x1ad,_0x5112f9:0x1fd,_0x6e217e:0x262,_0x2765ac:0xec,_0x4892dc:0x1a6,_0x317927:0x56,_0x21e527:0x61d,_0x350dee:0x46f,_0x4597cb:0x3a1,_0x201431:0x406,_0x227fb4:0x4a8,_0x5af4df:0xf4,_0x4bb378:0x146},_0x3b8bfc={_0x1395b3:0x2ab};function _0x40e6a7(_0x48781f,_0x4259ce){return _0x5338aa(_0x48781f-0x215,_0x4259ce);}const _0x515380=this[_0x239797(-_0x4a4d2c._0x2dcbba,-_0x4a4d2c._0x4530e8)][_0x239797(-_0x4a4d2c._0x5d23a0,-_0x4a4d2c._0x56f728)+'airReque'+'sts'][_0x239797(_0x4a4d2c._0x5112f9,_0x4a4d2c._0x6e217e)](_0xa77323=>_0xa77323[_0x40e6a7(0x34c,0x32e)+'d']===_0x3f2ce5?{..._0xa77323,'status':_0x39fd19===_0x239797(-0xe4,-0x8f)||_0x39fd19===_0x239797(0x141,0x69)?_0x39fd19:_0xa77323[_0x239797(0x114,0x2ab)]}:_0xa77323);function _0x239797(_0x938093,_0x54f0a4){return _0x5338aa(_0x938093- -_0x3b8bfc._0x1395b3,_0x54f0a4);}const _0x33c266={};_0x33c266[_0x239797(-0xbe,_0x4a4d2c._0x2765ac)+_0x239797(_0x4a4d2c._0x4892dc,_0x4a4d2c._0x317927)+'sts']=_0x515380,this[_0x40e6a7(_0x4a4d2c._0x21e527,0x60d)+'apshot'](_0x33c266),this[_0x40e6a7(_0x4a4d2c._0x350dee,_0x4a4d2c._0x4597cb)](_0x40e6a7(0x446,_0x4a4d2c._0x201431)+_0x40e6a7(_0x4a4d2c._0x227fb4,0x629)+'olved\x20re'+_0x239797(-_0x4a4d2c._0x5af4df,-_0x4a4d2c._0x4bb378)+_0x3f2ce5+(_0x40e6a7(0x3c5,0x201)+'n=')+_0x39fd19);}['updateSn'+_0x5338aa(0x479,0x415)](_0x1eaed8){const _0x208adc={_0x1b2474:0x1ab,_0xc8d27d:0x126,_0x179460:0x1a1,_0x3720d6:0x1b0,_0x23b29b:0x125,_0x3bc07a:0x5e,_0x3dc31f:0xf0};Object[_0x174494(0x1ad,_0x208adc._0x1b2474)](this[_0xc49a26(-0xca,-0x253)],_0x1eaed8,{'lastUpdatedMs':Date[_0xc49a26(0x5a,-_0x208adc._0xc8d27d)]()});function _0x174494(_0x330046,_0x37f30c){return _0x33cded(_0x37f30c,_0x330046- -0x30b);}function _0xc49a26(_0x540b31,_0x1b0c35){return _0x33cded(_0x1b0c35,_0x540b31- -0x548);}this[_0x174494(_0x208adc._0x179460,_0x208adc._0x3720d6)][_0xc49a26(_0x208adc._0x23b29b,0x24b)]?.(this[_0xc49a26(-0xb1,-_0x208adc._0x3bc07a)+_0xc49a26(_0x208adc._0x3dc31f,-0x34)]());}['log'](_0x21187f){const _0x41dc63={_0x42a7e7:0x15d,_0x3887ea:0x14},_0x5c3a76={_0x2c376d:0x498};function _0x1ccd40(_0x400c2a,_0x586826){return _0x33cded(_0x400c2a,_0x586826- -_0x5c3a76._0x2c376d);}function _0x4db1d0(_0x18e9ac,_0x66d386){return _0x33cded(_0x66d386,_0x18e9ac-0x7d);}this[_0x1ccd40(_0x41dc63._0x42a7e7,_0x41dc63._0x3887ea)][_0x1ccd40(0x17c,0x21f)]?.(_0x21187f);}['isRelayO'+_0x33cded(0x379,0x43f)](){const _0x484666={_0x1cf010:0x3c};function _0x49e37c(_0x78a6b0,_0x42b5a1){return _0x5338aa(_0x78a6b0-0xee,_0x42b5a1);}function _0x2f21e0(_0xc02053,_0x563353){return _0x5338aa(_0x563353- -_0x484666._0x1cf010,_0xc02053);}return this[_0x49e37c(0x3a6,0x4f4)+_0x49e37c(0x234,0x71)]?.[_0x49e37c(0x409,0x295)+'te']===_0x10c370['OPEN'];}[_0x5338aa(0x418,0x578)+_0x5338aa(0x1f0,0x32a)](){const _0x4affe3={_0x1f59ea:0x2e0,_0x5577a9:0x3e4,_0x3af016:0x467,_0xd52170:0x50e,_0x2a9ca2:0x113},_0x1c4f5f={_0x3fae8d:0x14c};function _0x5c23a0(_0x2214d0,_0x351a77){return _0x5338aa(_0x351a77- -0x1d9,_0x2214d0);}function _0x173f35(_0x548dc1,_0x386380){return _0x5338aa(_0x548dc1-_0x1c4f5f._0x3fae8d,_0x386380);}return this[_0x173f35(_0x4affe3._0x1f59ea,_0x4affe3._0x5577a9)+'ocket']?.[_0x173f35(_0x4affe3._0x3af016,_0x4affe3._0xd52170)+'te']===_0x10c370[_0x5c23a0(-_0x4affe3._0x2a9ca2,0xa4)];}[_0x33cded(0x56a,0x3b6)+_0x5338aa(0x1d4,0x2e9)](){const _0x142fdc={_0x3c3f6a:0x60,_0x2e207a:0x1d4,_0x17b231:0x285,_0x47dc6c:0x38e,_0x22c4c8:0x51,_0x124d3e:0x130,_0x5b37b7:0x28b,_0x3f1d85:0x66,_0x5a9b42:0x28b,_0x461e74:0x2ff,_0x60749f:0x92},_0x3ad5bd={_0x224cbd:0x462},_0x2ed46a={_0x4c7af2:0x23d};function _0x40d8d6(_0x16ed57,_0xaf51ed){return _0x5338aa(_0x16ed57- -_0x2ed46a._0x4c7af2,_0xaf51ed);}this[_0x40d8d6(-0x12d,-0x117)+'tbeat']();this[_0x232e39(-0x11f,_0x142fdc._0x3c3f6a)+_0x232e39(-0x1f4,-_0x142fdc._0x2e207a)]&&(clearTimeout(this[_0x40d8d6(_0x142fdc._0x17b231,_0x142fdc._0x47dc6c)+_0x40d8d6(_0x142fdc._0x22c4c8,-_0x142fdc._0x124d3e)]),this['reconnec'+_0x40d8d6(_0x142fdc._0x22c4c8,0x42)]=null);function _0x232e39(_0x3e31c6,_0x50e3f1){return _0x5338aa(_0x50e3f1- -_0x3ad5bd._0x224cbd,_0x3e31c6);}this[_0x40d8d6(_0x142fdc._0x5b37b7,0x39b)+_0x232e39(0x22,-0x193)+'r']&&(clearTimeout(this[_0x232e39(-0x122,_0x142fdc._0x3f1d85)+'etryTime'+'r']),this[_0x40d8d6(_0x142fdc._0x5a9b42,_0x142fdc._0x461e74)+_0x40d8d6(_0x142fdc._0x60749f,0x248)+'r']=null);}[_0x33cded(0x220,0x3ce)+'ince'](_0x10aca8){const _0x4a3417={_0x7bf957:0x1e,_0x38d318:0x2aa,_0x303c3a:0x241},_0x5497d5={_0x1d88e1:0x595};function _0x2e4ace(_0x2331ed,_0x47ca9d){return _0x33cded(_0x47ca9d,_0x2331ed- -_0x5497d5._0x1d88e1);}function _0x3e9d1a(_0x51e0f8,_0x4705a0){return _0x33cded(_0x51e0f8,_0x4705a0- -0x361);}return _0x10aca8==null?null:Math[_0x2e4ace(-0x121,_0x4a3417._0x7bf957)](0x0,Date[_0x3e9d1a(_0x4a3417._0x38d318,_0x4a3417._0x303c3a)]()-_0x10aca8);}};function shouldRecycleGatewayForFreshClient(_0x34534a,_0x2bdcd2,_0x44b434,_0x17e765){return _0x44b434&&_0x2bdcd2>0x0&&(_0x34534a===0x0||_0x17e765);}function patchConnectRequestGatewayAuth(_0x180fb2,_0x18dce7){const _0x363c39={_0x4fb8a2:0x13d,_0x2cac6:0x51,_0x4d34f8:0x35,_0x633e65:0x174,_0x4a6c26:0xee,_0x212d32:0xb6,_0x3af051:0x86,_0x398491:0x3cd,_0x464266:0xa,_0x103797:0xd4,_0x1ba730:0x21,_0x283b2c:0x176,_0x1ca452:0x311,_0x479a8f:0x235,_0x5f29d6:0x13,_0x1307b7:0x112,_0x1a5c60:0x11a,_0x1c7dd5:0x29,_0xcc3732:0x224,_0x50d0d9:0x91,_0x7accfe:0x29f,_0x3094f5:0x82,_0x46b303:0xb8,_0x4760f8:0x46,_0x1c8dbb:0x16,_0x47a67e:0x10f},_0x1526ba={_0x31406c:0x363},_0x4b49fe={};_0x4b49fe[_0x33eb81(_0x363c39._0x4fb8a2,_0x363c39._0x2cac6)]=function(_0x22ff4f,_0x2a5a56){return _0x22ff4f!==_0x2a5a56;};function _0x33eb81(_0x1b23ec,_0x2f659a){return _0x5338aa(_0x2f659a- -_0x1526ba._0x31406c,_0x1b23ec);}_0x4b49fe[_0x47cd40(_0x363c39._0x4d34f8,-0xd1)]=function(_0x6c9a66,_0x1b0a45){return _0x6c9a66!==_0x1b0a45;};function _0x47cd40(_0x4ce5fc,_0x1aebf6){return _0x5338aa(_0x1aebf6- -0x35d,_0x4ce5fc);}_0x4b49fe[_0x33eb81(-0x22b,-_0x363c39._0x633e65)]=_0x47cd40(_0x363c39._0x4a6c26,-_0x363c39._0x212d32),_0x4b49fe['nybfk']=function(_0x3757b2,_0xd4528f){return _0x3757b2===_0xd4528f;};const _0x328ac1=_0x4b49fe;if(_0x18dce7[_0x47cd40(0x136,_0x363c39._0x3af051)]!==_0x47cd40(-_0x363c39._0x398491,-0x224)||!_0x18dce7[_0x33eb81(-0x3a5,-0x22a)]){const _0x3e424e={};return _0x3e424e[_0x33eb81(-0x73,-0x10f)]=_0x180fb2,_0x3e424e['injected']=![],_0x3e424e;}try{const _0xe34108=JSON[_0x47cd40(_0x363c39._0x464266,-_0x363c39._0x103797)](_0x180fb2);if(_0x328ac1[_0x33eb81(_0x363c39._0x1ba730,_0x363c39._0x2cac6)](_0xe34108[_0x47cd40(-_0x363c39._0x283b2c,-0x153)],_0x33eb81(0x209,0x15d))||_0x328ac1['mwgXi'](_0xe34108[_0x47cd40(-0x50,-0x38)],_0x33eb81(0x7f,-0xe0))&&_0xe34108['method']!==_0x33eb81(-_0x363c39._0x1ca452,-_0x363c39._0x479a8f)+_0x47cd40(0xd9,-0xe1)){const _0x4b7865={};return _0x4b7865[_0x33eb81(-_0x363c39._0x5f29d6,-0x10f)]=_0x180fb2,_0x4b7865[_0x33eb81(-0x108,-_0x363c39._0x1307b7)]=![],_0x4b7865;}const _0x3f31a7=_0xe34108[_0x47cd40(0x222,_0x363c39._0x1a5c60)]&&typeof _0xe34108[_0x47cd40(0x296,_0x363c39._0x1a5c60)]===_0x47cd40(0x19,-_0x363c39._0x212d32)?{..._0xe34108['params']}:{},_0x3b0ff3=_0x3f31a7[_0x33eb81(0x69,-0xbe)]&&typeof _0x3f31a7['auth']===_0x328ac1['dPOxV']?{..._0x3f31a7['auth']}:{},_0x1f45b6=_0x328ac1[_0x33eb81(-0xc1,-_0x363c39._0x1c7dd5)](typeof _0x3b0ff3[_0x47cd40(-0x16d,-_0x363c39._0xcc3732)],_0x33eb81(-_0x363c39._0x50d0d9,-0xf6))?_0x3b0ff3[_0x47cd40(-_0x363c39._0x7accfe,-_0x363c39._0xcc3732)][_0x33eb81(0x129,0xa6)]():'';if(_0x1f45b6){const _0x180246={};return _0x180246[_0x47cd40(-0x103,-0x109)]=_0x180fb2,_0x180246['injected']=![],_0x180246;}_0x3b0ff3['password']=_0x18dce7['password'],_0x3f31a7[_0x47cd40(-_0x363c39._0x3094f5,-_0x363c39._0x46b303)]=_0x3b0ff3;const _0x3fdab8={..._0xe34108};return _0x3fdab8[_0x33eb81(-_0x363c39._0x4760f8,0x114)]=_0x3f31a7,{'text':JSON['stringif'+'y'](_0x3fdab8),'injected':!![]};}catch{const _0x4a109d={};return _0x4a109d[_0x33eb81(-_0x363c39._0x1c8dbb,-_0x363c39._0x47a67e)]=_0x180fb2,_0x4a109d['injected']=![],_0x4a109d;}}function buildRelayWsUrl(_0xdd8dc7){const _0x58db14={_0x247890:0x1b5,_0xf0909b:0x28,_0x9c84db:0x3d,_0x2ec104:0x2d5,_0x375069:0x292,_0x51229c:0x72,_0x267ed8:0x50,_0x50052a:0x249,_0x1d920e:0x5e,_0x716a4:0x3b,_0x3b7711:0x1b5,_0x194b78:0x263,_0x54c6fd:0x1c8,_0x1ad006:0x113,_0x5c0af6:0x125,_0x42b604:0x1d2,_0x522505:0x58,_0x10345b:0xc4,_0x2c6588:0x1f6,_0x707152:0xc0},_0x27864c={_0x398d8b:0x3d6},_0x316b2b={_0x6e088d:0x2b9},_0x5b45cb={};_0x5b45cb[_0x5f2ba7(0x397,_0x58db14._0x247890)]=_0x5f2ba7(_0x58db14._0xf0909b,0x19e);const _0x3c5f91=_0x5b45cb;function _0x5f2ba7(_0x244842,_0x41e549){return _0x5338aa(_0x41e549- -_0x316b2b._0x6e088d,_0x244842);}const _0x446746=new URL(_0xdd8dc7[_0x3e4dd5(-0x35,_0x58db14._0x9c84db)]);(!_0x446746['pathname']||_0x446746[_0x3e4dd5(-_0x58db14._0x2ec104,-_0x58db14._0x375069)]==='/')&&(_0x446746[_0x3e4dd5(-0x281,-0x292)]=_0x5f2ba7(-_0x58db14._0x51229c,-_0x58db14._0x267ed8));function _0x3e4dd5(_0x5e9553,_0x5de24b){return _0x5338aa(_0x5de24b- -_0x27864c._0x398d8b,_0x5e9553);}return _0x446746[_0x3e4dd5(0x88,-0x125)+'rams']['set'](_0x3e4dd5(-0x2cf,-_0x58db14._0x50052a)+'d',_0xdd8dc7[_0x3e4dd5(-0x3e2,-0x249)+'d']),_0x446746['searchPa'+_0x5f2ba7(-0x20c,-0x146)][_0x5f2ba7(-_0x58db14._0x1d920e,-0x58)](_0x5f2ba7(_0x58db14._0x716a4,0x21c),_0x3c5f91[_0x5f2ba7(0x114,_0x58db14._0x3b7711)]),_0x446746[_0x5f2ba7(-0x1bc,-0x8)+_0x3e4dd5(-0x422,-_0x58db14._0x194b78)]['set'](_0x3e4dd5(_0x58db14._0x54c6fd,-0x7),_0xdd8dc7[_0x5f2ba7(_0x58db14._0x1ad006,0x3a)+'Id']),_0x446746[_0x3e4dd5(0x83,-_0x58db14._0x5c0af6)+'rams'][_0x5f2ba7(-_0x58db14._0x42b604,-_0x58db14._0x522505)](_0x5f2ba7(-0x5e,0xd4),_0xdd8dc7[_0x3e4dd5(-0x26b,-_0x58db14._0x10345b)+'ret']),_0x446746[_0x5f2ba7(_0x58db14._0x2c6588,_0x58db14._0x707152)]();}function redactRelayWsUrl(_0x1e0bb6){const _0x3c3ee7={_0x2295f3:0x103,_0x4ad172:0x121,_0x86d4db:0x523,_0x494610:0x288,_0x5032ff:0x4ed,_0x57b1ea:0x47f,_0x3b92ae:0x5ff,_0x7befd:0x3bb,_0x388863:0x4d3,_0x4c076e:0x5eb};function _0x592920(_0x4e8566,_0xf2ff15){return _0x33cded(_0x4e8566,_0xf2ff15- -0x2f);}const _0x4d5fba={};_0x4d5fba[_0x592920(0x51b,0x43d)]=_0x305bc2(-_0x3c3ee7._0x2295f3,-_0x3c3ee7._0x4ad172)+'d>';const _0x528b71=_0x4d5fba,_0x23ce34=new URL(_0x1e0bb6);_0x23ce34[_0x592920(0x5c7,_0x3c3ee7._0x86d4db)+_0x305bc2(-0x175,-_0x3c3ee7._0x494610)][_0x592920(0x588,_0x3c3ee7._0x5032ff)](_0x592920(_0x3c3ee7._0x57b1ea,_0x3c3ee7._0x3b92ae))&&_0x23ce34['searchPa'+'rams'][_0x592920(_0x3c3ee7._0x7befd,_0x3c3ee7._0x388863)](_0x305bc2(-0x139,-0x6e),_0x528b71[_0x592920(0x360,0x43d)]);function _0x305bc2(_0x4e8f39,_0x4653d8){return _0x33cded(_0x4e8f39,_0x4653d8- -0x69c);}return _0x23ce34[_0x592920(0x655,_0x3c3ee7._0x4c076e)]();}function normalizeText(_0x20b7ce){const _0x525245={_0xdb2e56:0x6dc,_0x4b48d1:0x605,_0x5679f2:0xcb,_0x4f8a99:0xe3,_0x257c6d:0x605,_0x4d9890:0x57},_0x52ecbf={_0x3382f9:0x28c},_0x4b4857={};_0x4b4857[_0x3cb993(0x360,0x3b7)]=_0x5666af(0xa9,-0x8f),_0x4b4857['ybVzp']=_0x3cb993(_0x525245._0xdb2e56,0x529);const _0x3f5f3a=_0x4b4857;if(typeof _0x20b7ce===_0x3f5f3a['lUgdw'])return _0x20b7ce;if(Buffer[_0x5666af(-0x256,-0x14d)](_0x20b7ce))return _0x20b7ce[_0x3cb993(0x7bb,_0x525245._0x4b48d1)](_0x3f5f3a[_0x5666af(-_0x525245._0x5679f2,0x57)]);function _0x3cb993(_0x2f0798,_0x12b583){return _0x5338aa(_0x12b583-_0x52ecbf._0x3382f9,_0x2f0798);}if(Array['isArray'](_0x20b7ce))return Buffer[_0x5666af(0x208,_0x525245._0x4f8a99)](_0x20b7ce)[_0x3cb993(0x598,_0x525245._0x257c6d)](_0x3f5f3a[_0x5666af(0x14f,_0x525245._0x4d9890)]);if(_0x20b7ce instanceof ArrayBuffer)return Buffer[_0x3cb993(0x5ab,0x511)](_0x20b7ce)[_0x3cb993(0x799,0x605)](_0x3f5f3a[_0x3cb993(0x417,0x5df)]);function _0x5666af(_0x2f5cc7,_0x2370e7){return _0x5338aa(_0x2370e7- -0x2fc,_0x2f5cc7);}return null;}function normalizeBinary(_0x20ee24){const _0x26d530={_0xec6ad2:0x521,_0x9d61c5:0x562,_0x43970c:0x6c,_0x23e4a5:0x21e,_0x171d7c:0x3e},_0x51758f={_0x269f02:0x650},_0x3b4d8b={_0x370d60:0x91},_0x59f43d={};_0x59f43d[_0x30cab4(0x4a1,_0x26d530._0xec6ad2)]=_0x30cab4(_0x26d530._0x9d61c5,0x47d);const _0x3e7f5d=_0x59f43d;function _0x30cab4(_0x56a39a,_0x220dec){return _0x33cded(_0x56a39a,_0x220dec- -_0x3b4d8b._0x370d60);}if(Buffer[_0x5f09f5(-_0x26d530._0x43970c,-0x200)](_0x20ee24))return _0x20ee24;if(typeof _0x20ee24===_0x3e7f5d['NsBft'])return Buffer['from'](_0x20ee24,_0x5f09f5(-0x5d,-0x112));if(Array[_0x5f09f5(-0x66,-_0x26d530._0x23e4a5)](_0x20ee24))return Buffer[_0x5f09f5(-0x66,0x30)](_0x20ee24);function _0x5f09f5(_0x4c4550,_0x5002a0){return _0x33cded(_0x4c4550,_0x5002a0- -_0x51758f._0x269f02);}return Buffer[_0x5f09f5(-_0x26d530._0x171d7c,-0x12a)](_0x20ee24);}function readRecentCliLogs(_0x2cba23){const _0x19cf01={_0x18367c:0x2f6,_0x1fffcf:0x1e9,_0x4a8b90:0x1f8,_0x3fc610:0x2,_0x28b7b4:0x12d,_0x3ef7ac:0x237},_0x4339fe={_0x58a834:0x322},_0x5a5534={};function _0x5c4e9d(_0x5ceb22,_0x3b2836){return _0x33cded(_0x3b2836,_0x5ceb22- -_0x4339fe._0x58a834);}_0x5a5534[_0x38b901(0x2af,_0x19cf01._0x18367c)]=function(_0x5d3871,_0x15dcd9){return _0x5d3871-_0x15dcd9;};const _0x198f79=_0x5a5534,{logPath:_0x2aaf56,errorLogPath:_0x44ceda}=getServicePaths();function _0x38b901(_0x3de330,_0x1fec69){return _0x33cded(_0x1fec69,_0x3de330- -0x3aa);}const _0x2735d7=clampLines(_0x2cba23?.[_0x38b901(_0x19cf01._0x1fffcf,0x2d6)]??0xc8),_0x1eb73c=_0x2cba23?.[_0x38b901(0x119,0x2a)]??null,_0x49997a=_0x1eb73c!=null?_0x198f79['pWzwN'](Date[_0x38b901(_0x19cf01._0x4a8b90,0x350)](),_0x1eb73c):null,_0x402b1b=[_0x2aaf56];_0x2cba23?.['includeE'+_0x38b901(0x76,_0x19cf01._0x3fc610)]&&_0x402b1b[_0x5c4e9d(_0x19cf01._0x28b7b4,0xf4)](_0x44ceda);const _0xd679d8=_0x402b1b['flatMap'](_0x3abd9d=>readLogFile(_0x3abd9d)),_0x32e184=_0x49997a==null?_0xd679d8:_0xd679d8[_0x38b901(_0x19cf01._0x3ef7ac,0x1e4)](_0x4acea9=>_0x4acea9['ts']!=null&&_0x4acea9['ts']>=_0x49997a);return _0x32e184['slice'](-_0x2735d7)['map'](_0xa76558=>_0xa76558[_0x38b901(0x2a5,0x1c4)]);}async function buildDoctorReport(){const _0x4909f6={_0x2dc348:0x19f,_0x169114:0x4c1,_0x3cf5e9:0x429,_0x45919f:0xd6,_0x56317f:0x1ae,_0x4c2995:0xdc,_0xf10dd1:0x25,_0x2d7e6a:0x464,_0x6c5d7c:0x43e,_0x4f8308:0x21,_0x1fc96b:0x60e,_0x66feb9:0x24d,_0xa5a4c:0x2e8,_0x1d64aa:0x3cc},_0x412607={_0x44a697:0x16},_0x56e9b6={_0x5c8086:0x2d7},_0x1e7dae={'lDnaO':function(_0x1cadca){return _0x1cadca();}},_0x4aa5b2=_0x1e7dae['lDnaO'](readPairingConfig),_0x809392=getServiceStatus();function _0x333384(_0x4cfbbb,_0x5decd2){return _0x5338aa(_0x5decd2- -_0x56e9b6._0x5c8086,_0x4cfbbb);}function _0x35b688(_0x1e6761,_0x2531d5){return _0x5338aa(_0x2531d5-_0x412607._0x44a697,_0x1e6761);}const _0x5b7a48=readOpenClawInfo(),_0x272dcd=resolveGatewayUrl(),_0xac1d98=await checkGatewayReachable(_0x272dcd);return{'paired':Boolean(_0x4aa5b2),'gatewayId':_0x4aa5b2?.['gatewayI'+'d']??null,'serverUrl':_0x4aa5b2?.[_0x333384(0x1be,_0x4909f6._0x2dc348)+'l']??null,'relayUrl':_0x4aa5b2?.[_0x35b688(_0x4909f6._0x169114,_0x4909f6._0x3cf5e9)]??null,'instanceId':_0x4aa5b2?.[_0x333384(-_0x4909f6._0x45919f,0x1c)+'Id']??null,'serviceInstalled':_0x809392[_0x35b688(0xa,_0x4909f6._0x2dc348)+'d'],'serviceRunning':_0x809392[_0x35b688(0xff,_0x4909f6._0x56317f)],'serviceMethod':_0x809392['method'],'servicePath':_0x809392[_0x333384(_0x4909f6._0x4c2995,-_0x4909f6._0xf10dd1)+_0x35b688(_0x4909f6._0x2d7e6a,_0x4909f6._0x6c5d7c)],'logPath':_0x809392[_0x333384(0x19e,_0x4909f6._0x4f8308)],'errorLogPath':_0x809392[_0x35b688(_0x4909f6._0x1fc96b,0x4b8)+'Path'],'openclawConfigDir':getOpenClawConfigDir(),'openclawMediaDir':getOpenClawMediaDir(),'openclawConfigFound':_0x5b7a48['configFo'+_0x35b688(_0x4909f6._0x66feb9,_0x4909f6._0xa5a4c)],'openclawAuthMode':_0x5b7a48[_0x35b688(0x462,0x3f9)],'openclawTokenFound':Boolean(_0x5b7a48[_0x35b688(_0x4909f6._0x1d64aa,0x3a3)]),'openclawPasswordFound':Boolean(_0x5b7a48[_0x35b688(0x2d9,0x14f)]),'localGatewayUrl':_0x272dcd,'localGatewayReachable':_0xac1d98};}async function ensurePairPrerequisites(){const _0xa08556={_0x3debf1:0x589,_0x241b1e:0x1d2,_0x1595de:0xa5,_0x227594:0x287,_0xd4d4c4:0x2ef,_0x47399a:0x7a,_0x4c63a3:0x3e,_0x4b2768:0x37b,_0x18a3f1:0x28f,_0xbed923:0x1d6,_0x286b3d:0x249,_0x36035b:0x645,_0x2ccaf5:0x5bc,_0x20cff7:0x6be,_0x3334bd:0x53c,_0x1cdd6b:0x85,_0x1f575f:0x2d6,_0x10c154:0xe4,_0x4c0b6d:0x2e3,_0x2736ba:0x84,_0x42885a:0xcf,_0x360ead:0x536},_0x2133bc={_0x228327:0x14e},_0x2ec29d={};_0x2ec29d['vQPqO']=function(_0x301436,_0x151264){return _0x301436>_0x151264;};const _0x3d4fca=_0x2ec29d;function _0x8da798(_0x296a38,_0x1492f2){return _0x33cded(_0x1492f2,_0x296a38- -0x4bd);}const _0x42ab9c=await buildDoctorReport(),_0x113051=listPairPrerequisiteFailures(_0x42ab9c);function _0x190c60(_0x2492f4,_0x3fb8b5){return _0x33cded(_0x2492f4,_0x3fb8b5- -_0x2133bc._0x228327);}if(_0x3d4fca[_0x190c60(0x421,0x399)](_0x113051[_0x190c60(0x404,_0xa08556._0x3debf1)],0x0))throw new Error([_0x8da798(_0xa08556._0x241b1e,_0xa08556._0x1595de)+_0x190c60(0x165,_0xa08556._0x227594)+_0x190c60(_0xa08556._0xd4d4c4,0x2ec)+_0x8da798(_0xa08556._0x47399a,_0xa08556._0x4c63a3)+_0x190c60(0x4c5,_0xa08556._0x4b2768)+_0x8da798(-0x35,-0x1df)+_0x190c60(_0xa08556._0x18a3f1,0x317)+_0x8da798(_0xa08556._0xbed923,0x325)+'tes\x20are\x20'+_0x190c60(0x14b,0x2ed)+'y.',..._0x113051['map'](_0x1b5ca4=>'-\x20'+_0x1b5ca4),_0x8da798(_0xa08556._0x286b3d,0x1d0)+_0x190c60(0x610,0x5df)+_0x190c60(_0xa08556._0x36035b,_0xa08556._0x2ccaf5)+_0x190c60(_0xa08556._0x20cff7,_0xa08556._0x3334bd)+_0x190c60(0x74f,0x602)+'r\x20use\x20`c'+_0x8da798(-0x62,_0xa08556._0x1cdd6b)+_0x190c60(0x377,0x3ec)+_0x190c60(0x255,_0xa08556._0x1f575f)+_0x8da798(_0xa08556._0x10c154,0x2c5)+_0x190c60(0x3fa,0x2cd)+'onally\x20w'+_0x8da798(0x125,_0xa08556._0x4c0b6d)+_0x8da798(_0xa08556._0x2736ba,-_0xa08556._0x42885a)+_0x8da798(-0x101,-0xe2)+_0x190c60(_0xa08556._0x360ead,0x43a)]['join']('\x0a'));return _0x42ab9c;}function _0x33cded(_0x27eaf3,_0x38bf43){return _0x3b9b(_0x38bf43-0x336,_0x27eaf3);}function listPairPrerequisiteFailures(_0x37a0b0){const _0x480a84={_0x3ad173:0x11e,_0x45cb9a:0x73,_0x332112:0x20a,_0x9a4740:0x13c,_0x22f969:0xf8,_0x1ca0a3:0x15,_0x4a862f:0x17e,_0x215489:0x2eb,_0x455843:0x17b,_0x3ee5e4:0x105,_0x76f4c0:0x17,_0x39a02a:0xc8,_0x5cd3d7:0x125,_0x57e3a5:0x61,_0x3e4cb9:0x95,_0x303048:0x6d,_0x502b63:0x52,_0x3b0a60:0x23d,_0x1b0ddb:0x1cb,_0x4c1ee2:0x1d5,_0x10f7a9:0x181,_0x4ef995:0x17,_0x16bb0c:0x193,_0x2c904e:0x20a,_0x413c18:0xd1,_0x1d9d21:0x148,_0x48b7be:0x122,_0x4eaecf:0x13e,_0x28d11d:0x1b9,_0x2e5ce8:0x157,_0x27f259:0x5e,_0x38d6f4:0xaa,_0x51de5f:0x4f,_0x23b0a5:0x20c,_0x2fa67a:0x28d,_0xc01735:0x5a,_0x161c25:0x12,_0x12f0dd:0x190,_0x20394f:0x27,_0xc436d2:0x80,_0x1876f2:0x306,_0x3e6dad:0x1b4,_0x2b75f8:0x17,_0x28b49f:0x13f,_0x3e4355:0x13c,_0x5aa6b1:0xbd,_0x4a0758:0x225,_0x479302:0x13f,_0x49a4e7:0x300},_0x109de7={_0x1bbc8e:0x3b8};function _0x26a344(_0x42b0b6,_0x146f9d){return _0x5338aa(_0x146f9d- -0x2ed,_0x42b0b6);}const _0xf09924={};_0xf09924[_0x26a344(-0x2a,0x61)]=function(_0x324981,_0x5bb315){return _0x324981==_0x5bb315;},_0xf09924[_0x26a344(0x16c,0x118)]=function(_0x1749cf,_0x17bc2a){return _0x1749cf===_0x17bc2a;};const _0xac114=_0xf09924,_0x40818d=[];!_0x37a0b0[_0x26a344(_0x480a84._0x3ad173,0x6d)+_0x42f9b9(_0x480a84._0x45cb9a,0x117)+_0x26a344(-0x77,-0x1b)]&&_0x40818d[_0x42f9b9(-0xd5,-_0x480a84._0x332112)](_0x26a344(0x238,_0x480a84._0x9a4740)+_0x26a344(_0x480a84._0x22f969,0x8b)+_0x26a344(-0xea,_0x480a84._0x1ca0a3)+_0x26a344(-0x74,-_0x480a84._0x4a862f)+'der\x20'+formatOpenClawConfigLocations()+'.');_0x37a0b0[_0x26a344(0x239,0x6d)+_0x42f9b9(-_0x480a84._0x215489,-_0x480a84._0x455843)+'nd']&&_0x37a0b0[_0x42f9b9(0x87,-0x5e)+_0x42f9b9(-_0x480a84._0x3ee5e4,-_0x480a84._0x76f4c0)+_0x42f9b9(0x7e,_0x480a84._0x39a02a)]&&_0xac114[_0x26a344(-_0x480a84._0x5cd3d7,_0x480a84._0x57e3a5)](_0x37a0b0[_0x26a344(-_0x480a84._0x3e4cb9,_0x480a84._0x303048)+'AuthMode'],null)&&_0x40818d[_0x42f9b9(-0x32c,-_0x480a84._0x332112)]('OpenClaw'+_0x42f9b9(-0xa2,0xe)+'h\x20gatewa'+_0x26a344(-_0x480a84._0x502b63,-0x8e)+_0x26a344(-0x1d,-0xa9)+_0x26a344(-_0x480a84._0x3b0a60,-_0x480a84._0x1b0ddb)+_0x42f9b9(0xd6,0x42)+'\x20but\x20gat'+'eway.aut'+'h.mode\x20i'+'s\x20unset.');function _0x42f9b9(_0x1dceb4,_0x138052){return _0x5338aa(_0x138052- -_0x109de7._0x1bbc8e,_0x1dceb4);}return!_0x37a0b0[_0x42f9b9(-_0x480a84._0x4c1ee2,-0x5e)+_0x42f9b9(0x5b,-0x17b)+'nd']&&!_0x37a0b0[_0x42f9b9(_0x480a84._0x10f7a9,-0x5e)+_0x42f9b9(-0x92,-_0x480a84._0x4ef995)+_0x26a344(0x1b4,_0x480a84._0x16bb0c)]&&_0x40818d[_0x42f9b9(-0x389,-_0x480a84._0x2c904e)](_0x26a344(0x20c,0x13c)+'\x20gateway'+_0x42f9b9(0x1ab,_0x480a84._0x413c18)+_0x42f9b9(-0x1d8,-0x204)+_0x26a344(_0x480a84._0x1d9d21,_0x480a84._0x48b7be)+_0x26a344(_0x480a84._0x4eaecf,0x1a8)+_0x42f9b9(-_0x480a84._0x28d11d,-_0x480a84._0x22f969)),_0x37a0b0[_0x42f9b9(_0x480a84._0x2e5ce8,-_0x480a84._0x27f259)+'AuthMode']===_0x26a344(0x284,0xa0)&&!_0x37a0b0[_0x42f9b9(-_0x480a84._0x38d6f4,-0x5e)+_0x26a344(_0x480a84._0x51de5f,-0xb0)+'nd']&&_0x40818d[_0x42f9b9(-_0x480a84._0x23b0a5,-_0x480a84._0x332112)](_0x26a344(0x24c,0x13c)+_0x42f9b9(-0x2f9,-0x1c5)+_0x42f9b9(-_0x480a84._0x2fa67a,-0x246)+_0x26a344(_0x480a84._0xc01735,_0x480a84._0x161c25)+'g.'),_0xac114[_0x42f9b9(_0x480a84._0x12f0dd,0x4d)](_0x37a0b0[_0x26a344(_0x480a84._0x20394f,_0x480a84._0x303048)+_0x42f9b9(-_0x480a84._0xc436d2,0xc6)],_0x26a344(-_0x480a84._0x1876f2,-_0x480a84._0x3e6dad))&&!_0x37a0b0[_0x26a344(-0x8f,0x6d)+_0x42f9b9(0x7,-_0x480a84._0x2b75f8)+'Found']&&_0x40818d[_0x26a344(-0x23d,-_0x480a84._0x28b49f)](_0x26a344(0x2fb,_0x480a84._0x3e4355)+_0x42f9b9(-_0x480a84._0x5aa6b1,-0x1c5)+_0x42f9b9(-0xd1,-0x1a0)+'d\x20is\x20mis'+_0x42f9b9(-0x26c,-0x233)),!_0x37a0b0['localGat'+_0x26a344(-0x16,-0x16)+_0x42f9b9(-0x2f0,-_0x480a84._0x4a0758)]&&_0x40818d[_0x26a344(-0x29,-_0x480a84._0x479302)]('Local\x20Op'+'enClaw\x20G'+_0x26a344(-_0x480a84._0x49a4e7,-0x191)+'s\x20not\x20re'+_0x42f9b9(0x14a,0x12)+'at\x20'+_0x37a0b0[_0x26a344(0x1d,-0xad)+'ewayUrl']+'.'),_0x40818d;}function formatOpenClawConfigLocations(){const _0x1518cf={_0x1a79fc:0x704,_0x5eb952:0x390,_0x30b173:0x473},_0x400547={_0x297b9d:0x1b1},_0x2fb9ea={_0x13cbe:0x5ed},_0x4f610f={_0x5cd5ef:0x12f},_0x3a0f0f={_0x4bad19:0xc6};function _0x4d1eaa(_0x1a4d63,_0x20038e){return _0x33cded(_0x1a4d63,_0x20038e- -_0x3a0f0f._0x4bad19);}const _0x2b452b=new Set();function _0x50c1a3(_0x2ef8ff,_0x2dc1e3){return _0x33cded(_0x2dc1e3,_0x2ef8ff- -_0x4f610f._0x5cd5ef);}return[_0xec9ee5(),'/root'][_0x4d1eaa(_0x1518cf._0x1a79fc,0x683)](_0x3251ef=>_0x3251ef[_0x50c1a3(0x57b,0x6ab)]()+(_0x4d1eaa(0x179,0x333)+'aw'))[_0x50c1a3(0x4b2,0x439)](_0x3222b6=>_0x3222b6!=='/.opencl'+'aw')['filter'](_0x4b9d38=>{if(_0x2b452b['has'](_0x4b9d38))return![];function _0x531314(_0xc191f8,_0x3b0dde){return _0x50c1a3(_0xc191f8- -_0x2fb9ea._0x13cbe,_0x3b0dde);}return _0x2b452b[_0x531314(-0xa1,-_0x400547._0x297b9d)](_0x4b9d38),!![];})[_0x50c1a3(_0x1518cf._0x5eb952,0x261)](_0x50c1a3(0x5af,_0x1518cf._0x30b173));}function readLogFile(_0x33ee50){const _0x4b4c92={_0xd20852:0x32e,_0x3e7386:0x3d1,_0x2a1b19:0xfd,_0x2bfe29:0x114},_0x31a9d6={_0x113ff6:0x394};function _0x23b144(_0xfa5ef3,_0x408a4a){return _0x5338aa(_0xfa5ef3- -_0x31a9d6._0x113ff6,_0x408a4a);}function _0x455eba(_0x4a5d22,_0x40e6d9){return _0x5338aa(_0x40e6d9- -0xa1,_0x4a5d22);}try{const _0x5ea79f=_0x36a53f(_0x33ee50,_0x23b144(-0xf7,-0x1d4));return _0x5ea79f[_0x455eba(_0x4b4c92._0xd20852,_0x4b4c92._0x3e7386)](/\r?\n/)[_0x455eba(_0x4b4c92._0x2a1b19,0x29f)](Boolean)[_0x23b144(_0x4b4c92._0x2bfe29,-0x86)](_0x4cd7f3=>({'raw':_0x4cd7f3,'ts':parseTimestamp(_0x4cd7f3)}));}catch{return[];}}function parseTimestamp(_0x2a2c73){const _0xf749ec={_0x26d7ab:0x9d},_0x2df12d=_0x2a2c73[_0x43481b(-0x26,-_0xf749ec._0x26d7ab)](/^\[(\d{13})\]\s/);function _0x43481b(_0x257aa8,_0x1fb517){return _0x33cded(_0x1fb517,_0x257aa8- -0x710);}if(!_0x2df12d)return null;const _0x1a5623=Number(_0x2df12d[0x1]);return Number['isFinite'](_0x1a5623)?_0x1a5623:null;}function clampLines(_0x423b33){const _0x605784={_0x5a8315:0x269,_0x25004e:0x458},_0x7bb0e7={_0x4a6c5e:0x96};function _0x5a1f2(_0x920f92,_0x4a87cf){return _0x5338aa(_0x4a87cf-0x2b2,_0x920f92);}function _0x4b02b9(_0xf9b3bf,_0x2be0b7){return _0x5338aa(_0xf9b3bf-_0x7bb0e7._0x4a6c5e,_0x2be0b7);}if(!Number[_0x5a1f2(0x3c1,0x551)](_0x423b33))return 0xc8;return Math[_0x4b02b9(_0x605784._0x5a8315,0x2ef)](0x1,Math['min'](0x7d0,Math[_0x5a1f2(0x4d3,_0x605784._0x25004e)](_0x423b33)));}async function checkGatewayReachable(_0xaf5377){const _0x200b6d={_0x46997b:0x633,_0x3676ff:0x6a6,_0x76aa98:0x511,_0x12c583:0x28e,_0x11751c:0x152,_0x3d0429:0x70},_0x258266={_0xee6c60:0x2f9,_0x4e80ca:0x8ef,_0x179720:0x488},_0x2edb2b={_0x166879:0x16c},_0x25ba04={_0x37d01e:0x3e2},_0x56fe85={};function _0x381d7a(_0x1eab32,_0x5275f5){return _0x5338aa(_0x1eab32- -_0x25ba04._0x37d01e,_0x5275f5);}_0x56fe85[_0x238f4b(_0x200b6d._0x46997b,_0x200b6d._0x3676ff)]='connect',_0x56fe85[_0x381d7a(-0x1a8,0x30)]=_0x238f4b(_0x200b6d._0x76aa98,0x366);const _0xfb9460=_0x56fe85;function _0x238f4b(_0x2e6d96,_0x13cab0){return _0x5338aa(_0x2e6d96-_0x2edb2b._0x166879,_0x13cab0);}try{const _0x49c953=new URL(_0xaf5377),_0x5d05d3=_0x49c953[_0x238f4b(0x308,_0x200b6d._0x12c583)]||_0x238f4b(0x52c,0x6a1)+'1',_0x9e6afc=_0x49c953['port']?Number(_0x49c953[_0x238f4b(0x61d,0x534)]):_0x49c953['protocol']===_0x381d7a(-_0x200b6d._0x11751c,-_0x200b6d._0x3d0429)?0x1bb:0x50;return await new Promise((_0x3fff63,_0x29f93d)=>{const _0x4272e3={_0x7d5c97:0x43,_0x4c8058:0x7d1},_0x291b09={_0x1279c8:0x446},_0x2d9093={_0xf5660:0x69a},_0x516608=new Socket();_0x516608[_0x1ab14a(_0x258266._0xee6c60,0x441)+'ut'](0x384);function _0x593ad7(_0x762544,_0x3a2974){return _0x381d7a(_0x3a2974-_0x2d9093._0xf5660,_0x762544);}function _0x1ab14a(_0x1306fd,_0x160e4a){return _0x381d7a(_0x160e4a-_0x291b09._0x1279c8,_0x1306fd);}_0x516608['once'](_0xfb9460[_0x593ad7(_0x258266._0x4e80ca,0x77f)],()=>{_0x516608['destroy'](),_0x3fff63();}),_0x516608['once'](_0xfb9460['LekDR'],()=>{_0x516608[_0x220ca2(0xba,-_0x4272e3._0x7d5c97)]();function _0x5e3485(_0x29faef,_0x37a1de){return _0x1ab14a(_0x29faef,_0x37a1de-0x25b);}function _0x220ca2(_0x324fc0,_0xdf9453){return _0x1ab14a(_0xdf9453,_0x324fc0- -0x258);}_0x29f93d(new Error(_0x5e3485(_0x4272e3._0x4c8058,0x664)));}),_0x516608[_0x593ad7(0x4b8,_0x258266._0x179720)]('error',_0x4a4537=>{_0x516608['destroy'](),_0x29f93d(_0x4a4537);}),_0x516608['connect'](_0x9e6afc,_0x5d05d3);}),!![];}catch{return![];}}function parseLookbackToMs(_0x551711){const _0x753b77={_0x72633d:0x45e,_0x4bb87b:0x3bb,_0x3a5f68:0x614,_0x201256:0x45c,_0x106f8a:0x17e,_0x1d1fde:0x236},_0x387b59={_0x4be04e:0x2ef},_0x48867a={_0x1ab915:0x46f},_0x1d23dc=_0x551711?.[_0x3d4ef6(_0x753b77._0x72633d,_0x753b77._0x4bb87b)]();function _0x376f68(_0x43bf96,_0x3a53e1){return _0x33cded(_0x43bf96,_0x3a53e1- -_0x48867a._0x1ab915);}if(!_0x1d23dc)return null;const _0x1c940a=_0x1d23dc['match'](/^(\d+)(ms|s|m|h|d)$/i);if(!_0x1c940a)throw new Error(_0x3d4ef6(_0x753b77._0x3a5f68,0x44b)+_0x376f68(0x19b,0xbf)+_0x3d4ef6(0x4be,_0x753b77._0x201256)+_0x1d23dc+(_0x376f68(0x5a,0x232)+'alues\x20li'+'ke\x2030s,\x20'+_0x3d4ef6(_0x753b77._0x106f8a,0x1f0)+'or\x201d.'));const _0x38d2db=Number(_0x1c940a[0x1]),_0x243f13=_0x1c940a[0x2][_0x376f68(0x33e,_0x753b77._0x1d1fde)+_0x376f68(0x3a5,0x1dc)](),_0x1d0866=_0x243f13==='ms'?0x1:_0x243f13==='s'?0x3e8:_0x243f13==='m'?0xea60:_0x243f13==='h'?0x36ee80:0x5265c00;function _0x3d4ef6(_0x17d31e,_0xfe719d){return _0x33cded(_0x17d31e,_0xfe719d- -_0x387b59._0x4be04e);}return _0x38d2db*_0x1d0866;}import{readFileSync as _0x18f906}from'fs';import{dirname as _0x42ba1b,resolve}from'path';import{fileURLToPath}from'url';function readCliVersion(){const _0x104bd7={_0x258194:0x118,_0x4a390d:0x1ba,_0x22005a:0x2da,_0x56c2c2:0x3ac,_0x5d6a30:0x13,_0x404727:0x18e,_0x207283:0x1a,_0x188a70:0x19},_0x5245d5={_0x19bf7e:0x45},_0x209ea4={'rJvuq':function(_0x2df969,_0x1abf69){return _0x2df969(_0x1abf69);},'IeSFo':'../packa'+'ge.json','GreCz':'utf8'},_0x2e8417=_0x42ba1b(_0x209ea4['rJvuq'](fileURLToPath,import.meta.url)),_0xd700a8=resolve(_0x2e8417,_0x209ea4[_0x1b79ab(_0x104bd7._0x258194,_0x104bd7._0x4a390d)]);function _0x1b79ab(_0x26721f,_0x5cc8da){return _0x5338aa(_0x5cc8da-_0x5245d5._0x19bf7e,_0x26721f);}const _0x4a5e12=_0x18f906(_0xd700a8,_0x209ea4[_0x1b79ab(_0x104bd7._0x22005a,_0x104bd7._0x56c2c2)]);function _0x2f037d(_0x2eb309,_0x349dd5){return _0x5338aa(_0x2eb309- -0x29c,_0x349dd5);}const _0x3ce752=JSON[_0x2f037d(-_0x104bd7._0x5d6a30,_0x104bd7._0x404727)](_0x4a5e12);return _0x3ce752[_0x1b79ab(0x489,0x33b)]??_0x2f037d(_0x104bd7._0x207283,_0x104bd7._0x188a70);}function buildPairingJson(_0x585d34,_0x5ae55b,_0x4db04b,_0x5f3b45){const _0x18e2d9={_0x5636b9:0x3ea,_0x5c4d11:0x28c,_0x314764:0x375,_0x45784b:0x29b,_0x5eae28:0x4b6,_0x425683:0x428,_0x1d1107:0x4de,_0x1e7605:0x530,_0x1d3a50:0x52b,_0x238936:0x4c3,_0x3f11c3:0x3fb,_0x255336:0x52a,_0xacbfc4:0x479,_0x2aa8fd:0x28,_0xb6ace0:0x200,_0x1e8ade:0x23a,_0x530a0c:0x195,_0x3f14c1:0x290,_0x4e0c0e:0x49b,_0x2814ac:0x318,_0x41a04e:0x2db,_0x1b7cc2:0x442,_0x92eff4:0x4fe,_0x2f26fd:0x2b9,_0xe77f72:0x2cd,_0x1e18c1:0x52b},_0x520f94={_0x2c4a7d:0x219};function _0x3b06ba(_0x5b2547,_0x5413bc){return _0x33cded(_0x5b2547,_0x5413bc- -_0x520f94._0x2c4a7d);}const _0x2e3448={};_0x2e3448[_0x5e37d5(_0x18e2d9._0x5636b9,_0x18e2d9._0x5c4d11)+'d']=_0x4db04b['installe'+'d'],_0x2e3448['running']=_0x4db04b[_0x5e37d5(_0x18e2d9._0x314764,_0x18e2d9._0x45784b)],_0x2e3448[_0x5e37d5(0x3a0,0x428)]=_0x4db04b[_0x5e37d5(_0x18e2d9._0x5eae28,_0x18e2d9._0x425683)],_0x2e3448[_0x5e37d5(_0x18e2d9._0x1d1107,0x3b5)+_0x5e37d5(_0x18e2d9._0x1e7605,0x52b)]=_0x4db04b['serviceP'+_0x5e37d5(0x5a7,_0x18e2d9._0x1d3a50)],_0x2e3448[_0x3b06ba(_0x18e2d9._0x238936,0x380)]=_0x4db04b[_0x5e37d5(0x2e9,_0x18e2d9._0x3f11c3)],_0x2e3448[_0x3b06ba(0x6c8,_0x18e2d9._0x255336)+_0x5e37d5(0x3c3,0x479)]=_0x4db04b[_0x3b06ba(0x6b7,0x52a)+_0x5e37d5(0x3d6,_0x18e2d9._0xacbfc4)],_0x2e3448['pid']=_0x4db04b[_0x3b06ba(_0x18e2d9._0x2aa8fd,_0x18e2d9._0xb6ace0)];const _0x3373b8={};_0x3373b8['ok']=!![],_0x3373b8[_0x5e37d5(0x240,0x3d8)]=_0x585d34['action'],_0x3373b8['message']=_0x5f3b45,_0x3373b8['gatewayI'+'d']=_0x585d34[_0x5e37d5(_0x18e2d9._0x1e8ade,0x318)][_0x5e37d5(_0x18e2d9._0x530a0c,_0x18e2d9._0x3f14c1)+'d'],_0x3373b8[_0x3b06ba(0x327,_0x18e2d9._0x4e0c0e)]=_0x585d34[_0x5e37d5(0x15b,_0x18e2d9._0x2814ac)]['relayUrl'],_0x3373b8['serverUr'+'l']=_0x585d34[_0x5e37d5(_0x18e2d9._0x41a04e,_0x18e2d9._0x2814ac)][_0x3b06ba(_0x18e2d9._0x1b7cc2,_0x18e2d9._0x92eff4)+'l'],_0x3373b8['instance'+'Id']=_0x585d34[_0x5e37d5(0x385,0x318)][_0x5e37d5(0x242,0x3f6)+'Id'],_0x3373b8['accessCo'+'de']=_0x585d34[_0x5e37d5(0x30e,_0x18e2d9._0x2f26fd)+'de'],_0x3373b8[_0x3b06ba(0x26c,0x23e)+'deExpire'+_0x3b06ba(0x4bd,0x408)]=_0x585d34['accessCo'+_0x5e37d5(0x308,_0x18e2d9._0xe77f72)+'sAt'];function _0x5e37d5(_0x365e6e,_0x23d8d8){return _0x33cded(_0x365e6e,_0x23d8d8- -0x19e);}return _0x3373b8[_0x5e37d5(0x3d4,0x511)+_0x5e37d5(0x57d,_0x18e2d9._0x1e18c1)]=_0x5ae55b,_0x3373b8[_0x3b06ba(0x3ed,0x30e)]=_0x2e3448,_0x3373b8;}import{mkdirSync as _0x51276e,writeFileSync as _0x319ac8}from'fs';import{dirname as _0x428ed7,isAbsolute,join as _0x313058,resolve as _0x4e1d94}from'path';import _0x5801b1 from'qrcode';var DEFAULT_QR_DIR=getOpenClawMediaDir();async function writePairingQrPng(_0x35492b,_0x5aa86c){const _0x39ae36={_0x3097e0:0x512,_0x800b8c:0x3b0,_0x57def9:0x609,_0x3d69fe:0x557,_0xe0ad9d:0x3da,_0x28481a:0x609,_0x1158bb:0x2dd,_0x51761b:0x2be,_0xaedc34:0x2fc,_0x56155e:0x468,_0x38abb:0x39f,_0x1b340f:0x269},_0x3a7caa={_0x299b7e:0xaf},_0x4b4304={'DoUvi':function(_0x459a03,_0x26d5bd,_0x2e9645){return _0x459a03(_0x26d5bd,_0x2e9645);}},_0x3b908e=_0x4b4304[_0x7829d(0x46d,_0x39ae36._0x3097e0)](resolveQrOutputPath,_0x35492b,_0x5aa86c),_0x242cfb={};_0x242cfb[_0x7829d(0x2a2,_0x39ae36._0x800b8c)+'e']=!![],_0x51276e(_0x428ed7(_0x3b908e),_0x242cfb);const _0x370e1e={};function _0x7829d(_0x14d654,_0x10749a){return _0x33cded(_0x14d654,_0x10749a- -_0x3a7caa._0x299b7e);}_0x370e1e[_0x5686d6(0x2a7,0x324)]=_0x7829d(_0x39ae36._0x57def9,_0x39ae36._0x3d69fe)+'g',_0x370e1e[_0x7829d(_0x39ae36._0xe0ad9d,0x3d5)+_0x5686d6(_0x39ae36._0x28481a,0x58d)+_0x7829d(_0x39ae36._0x1158bb,0x343)]='M',_0x370e1e['margin']=0x1,_0x370e1e['width']=0x2d0;const _0x537b05=await _0x5801b1['toDataUR'+'L'](_0x35492b[_0x5686d6(_0x39ae36._0x51761b,_0x39ae36._0xaedc34)+'d'],_0x370e1e),_0x10afc1=_0x537b05['replace'](/^data:image\/png;base64,/,'');_0x319ac8(_0x3b908e,Buffer[_0x5686d6(_0x39ae36._0x56155e,_0x39ae36._0x38abb)](_0x10afc1,_0x5686d6(0x356,_0x39ae36._0x1b340f)));function _0x5686d6(_0x8e7302,_0x20a397){return _0x33cded(_0x8e7302,_0x20a397- -0x187);}return _0x3b908e;}function resolveQrOutputPath(_0x2a0f46,_0x2afecb){const _0x2620fa={_0x2a377a:0x110,_0x345bfb:0xc4},_0x4401e={_0x817eb:0x21c},_0x32bf48={'qgZRG':function(_0xf8048,_0x95376f){return _0xf8048(_0x95376f);},'vxOBT':function(_0x5950c9,_0x4f31be){return _0x5950c9(_0x4f31be);}};function _0x598512(_0x513c8a,_0x4557a2){return _0x5338aa(_0x4557a2- -_0x4401e._0x817eb,_0x513c8a);}const _0x55d324=_0x2afecb?.['trim']();function _0x125b9c(_0xdaa20d,_0xa6c1e6){return _0x5338aa(_0xa6c1e6- -0x2a,_0xdaa20d);}if(_0x55d324)return _0x32bf48['qgZRG'](isAbsolute,_0x55d324)?_0x55d324:_0x32bf48[_0x125b9c(0x2b4,0x105)](_0x4e1d94,_0x55d324);return _0x313058(DEFAULT_QR_DIR,_0x2a0f46[_0x125b9c(_0x2620fa._0x2a377a,0x1eb)]['gatewayI'+'d']+_0x598512(_0x2620fa._0x345bfb,0x20));}function decidePairServiceAction(_0x3465f0,_0x5d43eb){const _0xcca25e={_0x549ad0:0x1d,_0x44b9b5:0x3c3,_0x2622e6:0x3ce,_0x397133:0x2f,_0x4d3a8b:0x1d3},_0x4f2414={_0x8b62e2:0xf9},_0x317925={_0x4a01db:0x154};function _0x3afefa(_0x490d4a,_0x2aa02c){return _0x5338aa(_0x490d4a- -_0x317925._0x4a01db,_0x2aa02c);}if(!_0x5d43eb[_0x1ed0a1(0x383,0x282)+'d'])return'install';if(!_0x5d43eb[_0x3afefa(0x44,0xed)])return _0x3afefa(_0xcca25e._0x549ad0,0x1ae);if(_0x3465f0[_0x1ed0a1(_0xcca25e._0x44b9b5,_0xcca25e._0x2622e6)]===_0x1ed0a1(0x56e,0x5c2)+'ed')return _0x3afefa(0x1d,_0xcca25e._0x397133);function _0x1ed0a1(_0x48f5e9,_0x253603){return _0x5338aa(_0x253603-_0x4f2414._0x8b62e2,_0x48f5e9);}return _0x3afefa(0x2e7,_0xcca25e._0x4d3a8b);}async function main(){const _0x2f54bd={_0x3760de:0x316,_0x2be1e1:0x23f,_0x299057:0x1b5,_0x19b6e9:0x2a6,_0x5543dc:0x20,_0x54dc37:0x162,_0x200431:0x428,_0x1ec880:0x2fd,_0x1af0f3:0x3d1,_0x3b9ee2:0x125,_0x505b8d:0x27f,_0xa0fd41:0x272,_0x50b554:0x102,_0x5893cd:0x115,_0x58db5e:0x364,_0x1992cd:0x2cf,_0x5f2fe2:0x64,_0x1e06ed:0x35c,_0x52e9fa:0x28c,_0x1f136e:0x45,_0x432d5e:0x26f,_0x36fb8f:0x134,_0x29c44b:0x2a0,_0x2cb66a:0x443,_0xc904a1:0x296,_0x4ca3a7:0x2dd,_0x3a0f14:0x298,_0x6d2383:0x3cb,_0x239d0d:0x2,_0x3c39ba:0x244,_0x3579a6:0x2e0,_0x27f007:0x385,_0x27fcc5:0x7c,_0x6c4a29:0x2e,_0x553c53:0x14d,_0x5734b7:0xb2,_0x272daf:0x306,_0x102731:0x349,_0x457612:0x436,_0x3b2dba:0x299,_0x3ea81e:0x334,_0x28cd29:0xce,_0x13ff61:0x1fa,_0x802a61:0x1e5,_0x26d30a:0xb0,_0x1eff75:0x128,_0x59996b:0x394,_0x591d41:0x16a,_0x16fc46:0x580,_0x4053eb:0x305,_0x710d0a:0x117,_0x1f48e5:0xee,_0x500460:0x247,_0x46013b:0xbc,_0x5cb466:0x73,_0x587f1c:0x5c,_0x1e0bdc:0x82,_0x2006a4:0x52,_0x56a96c:0x28d,_0x1a54f6:0x1b2,_0xd770f1:0x10f,_0x408129:0x24c,_0x442be5:0x3e5,_0x313556:0x6c,_0x1f4893:0x1bf,_0x479f1e:0x126,_0x168004:0x9c,_0x3e892f:0x290,_0x1e9845:0x1b0,_0x431ee4:0x34b,_0x12f2c7:0xcd,_0x27a7a9:0x1e8,_0x40aafc:0x53,_0x294e11:0x1db,_0x367a70:0x4e1,_0x2a10c2:0x1f2,_0x5e6496:0x32b,_0x36f7ce:0x366,_0xce7e88:0x3d2,_0x5ecaff:0x2df,_0x3f467e:0x389,_0x4d8618:0x24c,_0x44395a:0xc4,_0x164da5:0x362,_0x212238:0x1e5,_0x11aa7d:0x251,_0x3945b6:0x2cc,_0x45219a:0x2df,_0x564292:0x23e,_0x37d453:0x22d,_0x1c0c20:0x9d,_0x5441a8:0x21,_0x22c2dd:0x156,_0x1e7e54:0x46,_0x3e833e:0x1e5,_0x2ed4e3:0x228,_0x5ea83c:0xbb,_0x1f157e:0x21,_0x5cae34:0x406,_0x4a4e8a:0x3ba,_0x526ef9:0x57a,_0x2e885d:0x329,_0x1c26bf:0x5b,_0xb517fa:0x17,_0x1d21f7:0xa4,_0xff61c6:0xb1,_0x47d6d9:0xb5,_0x2c3596:0x263,_0x5b40d4:0x17,_0x2b97a5:0x165,_0x29856f:0x2f4,_0x159cc9:0x15,_0x211764:0x1e2,_0x372f08:0x118,_0x40489d:0x249,_0x5d321d:0xf9,_0x41f579:0x1b,_0x5738c5:0x2fc,_0x36b40c:0x46e,_0xcc228a:0x1e9,_0x4363e9:0x546,_0x58ad5a:0x14c,_0x468778:0x38c,_0x11fc3b:0x1e5,_0x581a1d:0x269,_0x27cfec:0x265,_0x6d563f:0x168,_0x4d1110:0x1a1,_0xa9c6ad:0x68,_0x414c8f:0x131,_0x284710:0xde,_0x30721b:0x1fb,_0x5a4519:0x2bf,_0x2e95ab:0x66,_0x4c945e:0xf8,_0x63750e:0x138,_0x530a74:0x29c,_0xd77291:0x2d,_0x5ed945:0x1e1,_0x5691d2:0x2c2,_0x392e26:0x210},_0x26d747={_0x3907ed:0x360,_0x3bf8d7:0x223,_0x22597e:0x2fc,_0x46336b:0x2f5,_0x5afb89:0x4aa},_0x4717b0={_0xcc61af:0x276},_0x25ee52={_0x59e350:0x6e5,_0x1b30d2:0x5a8,_0x46a7cd:0x53,_0x26d7e5:0x356,_0x255d3f:0x299},_0x213437={_0x23339b:0x721},_0x483eb7={_0x5420b9:0x339,_0x4962aa:0x24d,_0x4eb391:0x102,_0x23e2f8:0xc0,_0xc96bf1:0x22e,_0x255a6a:0x1d6,_0x1ca958:0x27c,_0x53f282:0x1fb,_0x2e5a64:0xb6,_0xd7e350:0x2d0,_0x2eaa95:0x269,_0x265de8:0x19f,_0x5df0c7:0x3f1,_0x1efd48:0x12b,_0x24a836:0x3a1},_0x27df73={_0x4c7125:0xe2},_0x3605a6={_0x2cf263:0x2bc},_0xd51cd0={_0x1e470d:0x138},_0x2ae11a={_0x454210:0x43f},_0x4c31d6={'LyFRx':function(_0x143d09,_0x33a8c1){return _0x143d09(_0x33a8c1);},'Uwcsa':_0x1f4a68(-0x2f4,-_0x2f54bd._0x3760de),'GAEkB':_0x1f4a68(-0x19d,-0x110)+'>','JQDpS':_0x1f4a68(-_0x2f54bd._0x2be1e1,-_0x2f54bd._0x299057),'lGWZR':'https://'+_0x1f4a68(-_0x2f54bd._0x19b6e9,-0x2b7)+_0x1f4a68(_0x2f54bd._0x5543dc,-0x163)+_0x1f4a68(-0x2d6,-_0x2f54bd._0x54dc37),'CuinJ':_0x1f4a68(-_0x2f54bd._0x200431,-0x294),'MuCSy':function(_0x5dd73c,_0x30b293,_0x99de4c){return _0x5dd73c(_0x30b293,_0x99de4c);},'KGvam':function(_0xcde1ae,_0x5d44f6,_0x3e7511,_0x420a5b,_0x4d4ee2){return _0xcde1ae(_0x5d44f6,_0x3e7511,_0x420a5b,_0x4d4ee2);},'kDVvo':_0x1ab0ce(_0x2f54bd._0x1ec880,0x307)+_0x1ab0ce(0x36e,0x211)+_0x1f4a68(-_0x2f54bd._0x1af0f3,-0x2f7)+'dy\x20runni'+'ng.\x20Left'+_0x1f4a68(-_0x2f54bd._0x3b9ee2,-_0x2f54bd._0x505b8d)+_0x1ab0ce(_0x2f54bd._0xa0fd41,0x2f0),'ECTmk':function(_0x3b4b4b,_0x1e6228){return _0x3b4b4b===_0x1e6228;},'RfQmW':function(_0x5b86ad,_0x17fafe){return _0x5b86ad===_0x17fafe;},'GtBDH':_0x1f4a68(-0x2fe,-0x1ab)+_0x1f4a68(0x49,-0x72)+_0x1f4a68(0x4f,-_0x2f54bd._0x50b554)+'d\x20servic'+'e.','dxBRe':function(_0x2f659e,_0x2bb0f9){return _0x2f659e(_0x2bb0f9);},'Xwwiw':_0x1ab0ce(0xb0,_0x2f54bd._0x5893cd),'dZiTV':function(_0x5055e5){return _0x5055e5();},'XaeFF':function(_0x3ee3d2,_0x233e9d){return _0x3ee3d2===_0x233e9d;},'CYHMf':function(_0x22b8fc){return _0x22b8fc();},'MgniG':'--errors','utjJb':_0x1ab0ce(_0x2f54bd._0x58db5e,_0x2f54bd._0x1992cd),'umXnd':function(_0x5ef79d){return _0x5ef79d();},'ojfrt':_0x1f4a68(-_0x2f54bd._0x5f2fe2,-0x1d1)+_0x1f4a68(-_0x2f54bd._0x1e06ed,-_0x2f54bd._0x52e9fa)},[,,_0x24cd5b=_0x1f4a68(_0x2f54bd._0x1f136e,0x76),..._0x170630]=process[_0x1f4a68(-_0x2f54bd._0x432d5e,-_0x2f54bd._0x36fb8f)],_0x5ba2a2=hasFlag(_0x170630,_0x1ab0ce(_0x2f54bd._0x29c44b,_0x2f54bd._0x2cb66a)+'e'),_0x44f1a6=hasFlag(_0x170630,_0x1ab0ce(0x31b,_0x2f54bd._0xc904a1));function _0x1f4a68(_0x2e894b,_0x2f2b5a){return _0x5338aa(_0x2f2b5a- -_0x2ae11a._0x454210,_0x2e894b);}if(_0x24cd5b===_0x1f4a68(-_0x2f54bd._0x4ca3a7,-0x30c)){const _0x350969=hasFlag(_0x170630,_0x1ab0ce(_0x2f54bd._0x3a0f14,_0x2f54bd._0x6d2383));!_0x350969&&await ensurePairPrerequisites();const _0x2d12ac=resolveGatewayAuth();if(_0x4c31d6[_0x1f4a68(-0x473,-0x2fa)]in _0x2d12ac)throw new Error(_0x2d12ac[_0x1f4a68(_0x2f54bd._0x239d0d,-0x1b5)]);const _0x555ec8=readFlag(_0x170630,_0x1f4a68(-0x1f,-0x1ce))??readFlag(_0x170630,'-s')??_0x4c31d6[_0x1f4a68(-_0x2f54bd._0x3c39ba,-0x8c)],_0x432333=readFlag(_0x170630,_0x4c31d6[_0x1ab0ce(_0x2f54bd._0x3579a6,_0x2f54bd._0x27f007)])??readFlag(_0x170630,'-n')??getDefaultBridgeDisplayName(),_0x5a09ec=_0x4c31d6[_0x1f4a68(0x171,0x6d)](readFlag,_0x170630,_0x1ab0ce(_0x2f54bd._0x27fcc5,0xd0)+'e'),_0x1df28e={};_0x1df28e[_0x1ab0ce(0x384,0x526)+'l']=_0x555ec8,_0x1df28e[_0x1ab0ce(0xa9,0x96)+_0x1ab0ce(_0x2f54bd._0x6c4a29,_0x2f54bd._0x553c53)]=_0x432333,_0x1df28e['gatewayT'+'oken']=_0x2d12ac[_0x1f4a68(0xbb,-_0x2f54bd._0x5734b7)],_0x1df28e[_0x1f4a68(-0x42,-0x1f2)+_0x1ab0ce(0x35,-0x13b)]=_0x2d12ac[_0x1f4a68(-0x46e,-_0x2f54bd._0x272daf)];const _0x18d14e=await pairGateway(_0x1df28e),_0x49de93=await writePairingQrPng(_0x18d14e,_0x5a09ec),_0x314301=getServiceStatus(),_0x10d226=decidePairServiceAction(_0x18d14e,_0x314301);if(_0x10d226===_0x1ab0ce(_0x2f54bd._0x102731,_0x2f54bd._0x457612)){_0x44f1a6?printJson(_0x4c31d6[_0x1ab0ce(0x2f5,0x3d8)](buildPairingJson,_0x18d14e,_0x49de93,_0x314301,'Backgrou'+'nd\x20servi'+'ce\x20alrea'+_0x1ab0ce(_0x2f54bd._0x3b2dba,_0x2f54bd._0x3ea81e)+'ng.\x20Left'+_0x1ab0ce(_0x2f54bd._0x28cd29,0x29f)+'ed.')):(printPairingInfo(_0x18d14e,_0x49de93),console[_0x1f4a68(-_0x2f54bd._0x13ff61,-_0x2f54bd._0x802a61)](_0x4c31d6[_0x1f4a68(-0x122,-0xa4)]),printServiceResult(null,_0x314301));return;}try{const _0x497148=_0x4c31d6[_0x1f4a68(-0x242,-0x273)](_0x10d226,_0x1ab0ce(_0x2f54bd._0x26d30a,-_0x2f54bd._0x1eff75))?installService():restartService(),_0x33e04a=_0x4c31d6['RfQmW'](_0x10d226,_0x1ab0ce(0xb0,0x157))?_0x4c31d6[_0x1ab0ce(0x301,_0x2f54bd._0x59996b)]:_0x18d14e[_0x1f4a68(-0x2cc,-_0x2f54bd._0x591d41)]===_0x1ab0ce(0x3d7,_0x2f54bd._0x16fc46)+'ed'?_0x1f4a68(-0x21f,-_0x2f54bd._0x4053eb)+'dentity\x20'+_0x1ab0ce(0x11b,-0x3b)+_0x1ab0ce(0x2d7,0x3d7)+_0x1f4a68(-_0x2f54bd._0x710d0a,-_0x2f54bd._0x1f48e5)+_0x1ab0ce(0xcf,0xd1)+'rvice\x20to'+_0x1f4a68(-0x12f,-_0x2f54bd._0x500460)+_0x1f4a68(-_0x2f54bd._0x46013b,-0x1f)+'iring.':'Backgrou'+_0x1f4a68(0x12c,0x21)+_0x1f4a68(0x181,-0xc)+_0x1f4a68(-_0x2f54bd._0x5cb466,-0x97)+_0x1f4a68(0x205,_0x2f54bd._0x587f1c)+'pped.\x20Re'+_0x1f4a68(-0xa1,-_0x2f54bd._0x1e0bdc)+_0x1f4a68(_0x2f54bd._0x2006a4,-0x106);_0x44f1a6?printJson(buildPairingJson(_0x18d14e,_0x49de93,_0x497148,_0x33e04a)):(printPairingInfo(_0x18d14e,_0x49de93),printServiceResult(_0x33e04a,_0x497148));}catch(_0x579207){console[_0x1ab0ce(0x198,-0x24)](_0x1ab0ce(0x172,_0x2f54bd._0x56a96c)+'succeede'+_0x1ab0ce(0x64,_0x2f54bd._0x1a54f6)+_0x1ab0ce(0x1f4,0x31b)+_0x1f4a68(-0x1f9,-0x77)+_0x1ab0ce(_0x2f54bd._0xd770f1,0xe0)+':\x20'+_0x4c31d6[_0x1ab0ce(0x3b9,0x394)](formatError,_0x579207)),console['error'](_0x1ab0ce(_0x2f54bd._0x408129,_0x2f54bd._0x442be5)+_0x1ab0ce(_0x2f54bd._0x313556,_0x2f54bd._0x1f4893)+'n\x20\x22clawk'+'et\x20insta'+_0x1ab0ce(0x1c7,_0x2f54bd._0x479f1e)+_0x1ab0ce(0x310,0x132)+_0x1ab0ce(0x92,0x232)+'ually.'),process[_0x1ab0ce(_0x2f54bd._0x168004,-0x55)]=0x1;}return;}if(_0x24cd5b===_0x1ab0ce(0x159,_0x2f54bd._0x3e892f)+_0x1f4a68(-0x20d,-_0x2f54bd._0x1e9845)){const _0x311f35=readFlag(_0x170630,_0x1ab0ce(0x7c,0x166)+'e'),_0xcb40c4=resolveGatewayAuth();if('error'in _0xcb40c4)throw new Error(_0xcb40c4[_0x1ab0ce(0x198,_0x2f54bd._0x431ee4)]);const _0x50b2ea={};_0x50b2ea[_0x1f4a68(-0xa1,-0x125)+'oken']=_0xcb40c4[_0x1f4a68(_0x2f54bd._0x12f2c7,-0xb2)],_0x50b2ea[_0x1f4a68(-_0x2f54bd._0x27a7a9,-0x1f2)+'assword']=_0xcb40c4[_0x1ab0ce(0x47,-_0x2f54bd._0x5cb466)];const _0xf39355=await refreshAccessCode(_0x50b2ea),_0x144621=await writePairingQrPng(_0xf39355,_0x311f35);_0x44f1a6?printJson(buildPairingJson(_0xf39355,_0x144621,getServiceStatus(),_0x1f4a68(-_0x2f54bd._0x40aafc,-_0x2f54bd._0x294e11)+'code\x20ref'+_0x1ab0ce(0x39f,_0x2f54bd._0x367a70))):printPairingInfo(_0xf39355,_0x144621);return;}if(_0x24cd5b===_0x4c31d6[_0x1ab0ce(0x391,0x424)]){const _0x417643=requirePairingConfig(),_0x5e0d9a=_0x4c31d6[_0x1ab0ce(_0x2f54bd._0x2a10c2,0x281)](installService);console[_0x1f4a68(-0x1f8,-0x1e5)]('Installe'+_0x1ab0ce(_0x2f54bd._0x5e6496,_0x2f54bd._0x36f7ce)+_0x1ab0ce(0x2cc,_0x2f54bd._0xce7e88)+_0x1f4a68(-0x211,-_0x2f54bd._0x5ecaff)+_0x1f4a68(-_0x2f54bd._0x3f467e,-_0x2f54bd._0x4d8618)+'\x20'+_0x417643[_0x1ab0ce(0x9b,0x2e)+'d']+'.'),printServiceResult(null,_0x5e0d9a);return;}if(_0x4c31d6[_0x1ab0ce(0xd7,-_0x2f54bd._0x44395a)](_0x24cd5b,_0x1ab0ce(0x7f,-0x3e))){const _0xf26c30=requirePairingConfig(),_0x51e403=restartService();console[_0x1f4a68(-_0x2f54bd._0x164da5,-_0x2f54bd._0x212238)](_0x1ab0ce(0x124,_0x2f54bd._0x11aa7d)+_0x1ab0ce(_0x2f54bd._0x5e6496,0x3c6)+_0x1ab0ce(_0x2f54bd._0x3945b6,0x43d)+_0x1ab0ce(0x6e,-0x12b)+_0x1f4a68(-_0x2f54bd._0x45219a,-_0x2f54bd._0x408129)+'\x20'+_0xf26c30[_0x1ab0ce(0x9b,_0x2f54bd._0x3c39ba)+'d']+'.'),printServiceResult(null,_0x51e403);return;}if(_0x24cd5b===_0x1ab0ce(_0x2f54bd._0x564292,_0x2f54bd._0x37d453)){const _0x4a1da8=stopService();console[_0x1ab0ce(0x168,0x124)](_0x1f4a68(-_0x2f54bd._0x1c0c20,0x67)+_0x1ab0ce(0x395,0x4c6)+_0x1f4a68(-_0x2f54bd._0x5543dc,_0x2f54bd._0x5441a8)+_0x1f4a68(0x79,-0x14f)),printServiceResult(null,_0x4a1da8);return;}if(_0x24cd5b===_0x1f4a68(-0x3e,-_0x2f54bd._0x22c2dd)+'l'){const _0x1eafb8=uninstallService();console[_0x1f4a68(-_0x2f54bd._0x1e7e54,-_0x2f54bd._0x3e833e)](_0x1ab0ce(0x226,_0x2f54bd._0x2ed4e3)+'backgrou'+_0x1f4a68(-_0x2f54bd._0x5ea83c,_0x2f54bd._0x1f157e)+'ce\x20regis'+_0x1ab0ce(0x26c,_0x2f54bd._0x5cae34)),_0x4c31d6[_0x1ab0ce(_0x2f54bd._0x4a4e8a,_0x2f54bd._0x526ef9)](printServiceResult,null,_0x1eafb8);return;}if(_0x24cd5b===_0x1f4a68(-0x22e,-0x204)){stopService(),_0x4c31d6['CYHMf'](deletePairingConfig),console[_0x1f4a68(-_0x2f54bd._0x2e885d,-0x1e5)]('Cleared\x20'+_0x1ab0ce(_0x2f54bd._0x1c26bf,_0x2f54bd._0xb517fa)+_0x1ab0ce(0x2bd,0x357)+_0x4c31d6[_0x1ab0ce(0xc7,0x230)](getPairingConfigPath));return;}function _0x1ab0ce(_0x2e9699,_0x49aa79){return _0x5338aa(_0x2e9699- -0xf2,_0x49aa79);}if(_0x24cd5b==='status'){printStatus();return;}if(_0x24cd5b===_0x1ab0ce(_0x2f54bd._0x1d21f7,-_0x2f54bd._0xff61c6)){const _0x1a9ee5=Number(readFlag(_0x170630,_0x1ab0ce(0x28,-_0x2f54bd._0x47d6d9))??'200'),_0x55df87=parseLookbackToMs(readFlag(_0x170630,_0x1ab0ce(_0x2f54bd._0x2c3596,0x1c1))??readFlag(_0x170630,'-l')),_0x2ee00e=_0x4c31d6[_0x1f4a68(-0xcf,0x66)](readRecentCliLogs,{'lines':_0x1a9ee5,'lastMs':_0x55df87,'includeErrorLog':hasFlag(_0x170630,_0x4c31d6[_0x1f4a68(0xae,0x75)])});if(_0x44f1a6){const _0x3fde5e={};_0x3fde5e['ok']=!![],_0x3fde5e[_0x1f4a68(-_0x2f54bd._0x5b40d4,-0x14d)]=_0x2ee00e,printJson(_0x3fde5e);}else _0x2ee00e[_0x1f4a68(-0x1bd,-0x9)]===0x0?console[_0x1ab0ce(0x168,_0x2f54bd._0x2b97a5)](_0x1f4a68(-_0x2f54bd._0x1e06ed,-_0x2f54bd._0x29856f)+_0x1f4a68(-0x16e,-_0x2f54bd._0x159cc9)+_0x1ab0ce(_0x2f54bd._0x211764,_0x2f54bd._0x372f08)+_0x1ab0ce(_0x2f54bd._0x40489d,_0x2f54bd._0x5d321d)):console['log'](_0x2ee00e['join']('\x0a'));return;}if(_0x24cd5b===_0x4c31d6[_0x1f4a68(0x90,_0x2f54bd._0x41f579)]){const _0x103e98=await _0x4c31d6[_0x1f4a68(-_0x2f54bd._0x5738c5,-0x1a8)](buildDoctorReport);_0x44f1a6?printJson(_0x103e98):printDoctorReport(_0x103e98);return;}if(_0x24cd5b===_0x1ab0ce(0x361,_0x2f54bd._0x36b40c)){const _0x1d8e03=requirePairingConfig(),_0x45468b=resolveGatewayUrl(_0x4c31d6[_0x1ab0ce(_0x2f54bd._0x4a4e8a,0x3ee)](readFlag,_0x170630,_0x1ab0ce(0x329,0x2bf)+'y-url')??readFlag(_0x170630,'-g')),_0x53206f=_0x1cb03f=>{const _0x4a11bc={_0x4bb6b1:0x14f};function _0x5b80be(_0x5c02ce,_0x48e84d){return _0x1ab0ce(_0x5c02ce-_0x4a11bc._0x4bb6b1,_0x48e84d);}function _0x4ab300(_0x3126aa,_0x4878ff){return _0x1ab0ce(_0x4878ff-0x66,_0x3126aa);}console[_0x5b80be(0x2b7,_0xd51cd0._0x1e470d)]('['+Date[_0x4ab300(0x150,0x275)]()+']\x20'+_0x1cb03f);};if(!_0x5ba2a2){const _0x1e5143=_0x4c31d6[_0x1ab0ce(0x15e,_0x2f54bd._0xcc228a)]['split']('|');let _0x221b36=0x0;while(!![]){switch(_0x1e5143[_0x221b36++]){case'0':console[_0x1ab0ce(0x168,0x242)]('Instance'+_0x1ab0ce(0x38b,_0x2f54bd._0x4363e9)+_0x1d8e03[_0x1f4a68(-0x22d,-_0x2f54bd._0x58ad5a)+'Id']);continue;case'1':console[_0x1ab0ce(0x168,0x17)]('');continue;case'2':console[_0x1f4a68(-_0x2f54bd._0x468778,-0x1e5)]('Gateway\x20'+_0x1f4a68(-0x44e,-0x2ff)+_0x45468b);continue;case'3':console[_0x1f4a68(-0x10e,-_0x2f54bd._0x11fc3b)]('');continue;case'4':console[_0x1ab0ce(0x168,_0x2f54bd._0x581a1d)](_0x1f4a68(-0x2e0,-0x18b)+'ID:\x20'+_0x1d8e03[_0x1f4a68(-_0x2f54bd._0x27cfec,-0x2b2)+'d']);continue;case'5':console[_0x1ab0ce(_0x2f54bd._0x6d563f,_0x2f54bd._0x11aa7d)](_0x1ab0ce(0xf8,-0x98)+'\x20bridge\x20'+_0x1f4a68(_0x2f54bd._0x4d1110,_0x2f54bd._0xa9c6ad)+_0x1f4a68(0x7f,-_0x2f54bd._0x414c8f)+_0x1f4a68(-0x18c,-_0x2f54bd._0x284710)+_0x1f4a68(-_0x2f54bd._0x30721b,-_0x2f54bd._0x5a4519));continue;}break;}}else _0x4c31d6[_0x1f4a68(-0xbc,_0x2f54bd._0x2e95ab)](_0x53206f,_0x1ab0ce(_0x2f54bd._0x4c945e,0x2d4)+_0x1f4a68(-_0x2f54bd._0x63750e,-_0x2f54bd._0x530a74)+_0x1f4a68(-0x204,-_0x2f54bd._0xd77291)+'\x20runtime'+_0x1ab0ce(0x277,0x19b)+'eway\x20'+_0x1d8e03[_0x1f4a68(-0x30f,-0x2b2)+'d']);_0x5ba2a2&&_0x4c31d6[_0x1f4a68(-_0x2f54bd._0x5ed945,-0x15b)](writeServiceState);const _0x4f853e=new BridgeRuntime({'config':_0x1d8e03,'gatewayUrl':_0x45468b,'onLog':_0x35be64=>{const _0x48d101={_0x5220d6:0x256};function _0x9d8289(_0x3b2628,_0x45b7f7){return _0x1f4a68(_0x3b2628,_0x45b7f7-_0x48d101._0x5220d6);}_0x4c31d6[_0x9d8289(0x2c0,_0x3605a6._0x2cf263)](_0x53206f,'[clawket'+']\x20'+_0x35be64);},'onStatus':_0x21a2e4=>{if(_0x21a2e4['lastErro'+'r']){_0x53206f('[status]'+_0x40e430(0x33f,0x29c)+(_0x21a2e4[_0x40e430(_0x483eb7._0x5420b9,0x4b4)+_0x40e430(_0x483eb7._0x4962aa,0x36c)]?'up':_0x4c31d6[_0x2c3590(_0x483eb7._0x4eb391,_0x483eb7._0x23e2f8)])+('\x20gateway'+'=')+(_0x21a2e4[_0x2c3590(-_0x483eb7._0xc96bf1,-_0x483eb7._0x255a6a)+_0x2c3590(-_0x483eb7._0x1ca958,-0x1e5)]?'up':'down')+('\x20clients'+'=')+_0x21a2e4['clientCo'+_0x2c3590(0x1f,_0x483eb7._0x53f282)]+_0x2c3590(-0x279,-0x1a6)+_0x21a2e4[_0x2c3590(_0x483eb7._0x2e5a64,0x18c)+'r']);return;}function _0x40e430(_0xb5051e,_0xdb23a7){return _0x1ab0ce(_0xdb23a7-_0x27df73._0x4c7125,_0xb5051e);}function _0x2c3590(_0x137ec5,_0x493755){return _0x1ab0ce(_0x137ec5- -0x2a0,_0x493755);}_0x53206f('[status]'+'\x20relay='+(_0x21a2e4[_0x40e430(_0x483eb7._0xd7e350,0x4b4)+'nected']?'up':_0x2c3590(-_0x483eb7._0x2eaa95,-0x3b3))+(_0x2c3590(-_0x483eb7._0x265de8,-0x1af)+'=')+(_0x21a2e4[_0x2c3590(-_0x483eb7._0xc96bf1,-0x3ef)+_0x2c3590(-0x27c,-_0x483eb7._0x5df0c7)]?'up':_0x40e430(0x2a6,0x119))+(_0x2c3590(0x58,0x67)+'=')+_0x21a2e4[_0x2c3590(_0x483eb7._0x1efd48,-0xb0)+_0x40e430(0x350,_0x483eb7._0x24a836)]);},'onPendingPairRequest':_0x1dd5df=>{function _0xfe1e18(_0x348982,_0x2bd9fe){return _0x1f4a68(_0x348982,_0x2bd9fe-_0x213437._0x23339b);}function _0x5e8ee2(_0x5f2785,_0x44280f){return _0x1f4a68(_0x5f2785,_0x44280f-0x3a9);}_0x53206f('[pair-re'+_0xfe1e18(0x594,0x429)+_0x5e8ee2(0x292,0x22d)+'='+_0x1dd5df['requestI'+'d']+(_0x5e8ee2(0x343,0x340)+'d=')+(_0x1dd5df[_0x5e8ee2(-0x8c,0x11f)]||_0x4c31d6[_0xfe1e18(0x839,_0x25ee52._0x59e350)])+_0xfe1e18(0x52e,_0x25ee52._0x1b30d2)+(_0x1dd5df[_0x5e8ee2(_0x25ee52._0x46a7cd,0x105)+'ame']??_0x5e8ee2(_0x25ee52._0x26d7e5,_0x25ee52._0x255d3f)+'>'));}});_0x4f853e[_0x1ab0ce(0x18a,_0x2f54bd._0x5691d2)]();const _0x4dd00c=async()=>{process[_0x406dce(0x42d,0x5b4)](_0x72b4ee(0x1d4,_0x26d747._0x3907ed),_0x4dd00c);function _0x72b4ee(_0x9186c7,_0x2105c0){return _0x1ab0ce(_0x2105c0-0x131,_0x9186c7);}process['off']('SIGTERM',_0x4dd00c),await _0x4f853e[_0x406dce(0x48b,0x4b4)]();function _0x406dce(_0x4d8a2a,_0x1540ee){return _0x1ab0ce(_0x1540ee-_0x4717b0._0xcc61af,_0x4d8a2a);}_0x5ba2a2&&clearServiceState(process[_0x406dce(_0x26d747._0x3bf8d7,_0x26d747._0x22597e)]),process[_0x406dce(_0x26d747._0x46336b,_0x26d747._0x5afb89)](0x0);};process['on'](_0x1ab0ce(0x22f,0x2a0),_0x4dd00c),process['on'](_0x1f4a68(-_0x2f54bd._0x392e26,-0x22e),_0x4dd00c),await new Promise(()=>{});}printHelp();}function printPairingInfo(_0x36c920,_0x3afe82){const _0x438f27={_0xb4e7cc:0x349,_0x122f3e:0x19c,_0x48d02b:0x393,_0x5a1493:0x1ef,_0x265da7:0x3e6,_0x2e31e5:0x4e2,_0x2dc152:0x4c9,_0x211014:0x2d9,_0x2033ae:0x334,_0x39cbb3:0x3ba,_0x5259bd:0x197,_0x500727:0x195,_0x22cc9f:0x3c6,_0x3cc21f:0x467,_0x294cdb:0x53c,_0x5dab18:0x145,_0x582591:0x20c,_0x356867:0x25f,_0x516bf3:0x79,_0x13c961:0x15e,_0x2cdda1:0x41a,_0x3f4543:0x528,_0x171ba6:0x261,_0x411a2b:0x286,_0x2afe28:0x273,_0x582e7c:0x208,_0x15b6db:0x589},_0x58acfb={_0x16c257:0x7f},_0x5281a8={};function _0x5399cb(_0x2c15d2,_0x2f7ca7){return _0x5338aa(_0x2f7ca7-0x2c,_0x2c15d2);}_0x5281a8[_0x5399cb(_0x438f27._0xb4e7cc,_0x438f27._0x122f3e)]=function(_0x22c128,_0x13575e){return _0x22c128===_0x13575e;},_0x5281a8[_0x8f6225(0x1b1,0x4a)]=_0x5399cb(_0x438f27._0x48d02b,0x283)+'is\x20QR\x20co'+'de\x20in\x20th'+_0x5399cb(0x412,0x27a)+'t\x20app:\x0a';const _0x199b52=_0x5281a8;_0x199b52[_0x8f6225(_0x438f27._0x5a1493,0x4c)](_0x36c920[_0x8f6225(0x354,_0x438f27._0x265da7)],_0x8f6225(_0x438f27._0x2e31e5,_0x438f27._0x2dc152)+'d')&&console[_0x8f6225(_0x438f27._0x211014,0x2d0)](_0x8f6225(_0x438f27._0x2033ae,0x39d)+_0x5399cb(_0x438f27._0x39cbb3,0x3c9)+_0x8f6225(0x3eb,0x491)+_0x8f6225(_0x438f27._0x5259bd,0x29e)+'\x20the\x20pai'+_0x5399cb(0x31b,_0x438f27._0x500727)+'e.');console[_0x8f6225(0x2d9,_0x438f27._0x22cc9f)]('Gateway\x20'+_0x8f6225(_0x438f27._0x3cc21f,_0x438f27._0x294cdb)+_0x36c920[_0x8f6225(0x294,_0x438f27._0x5dab18)][_0x8f6225(_0x438f27._0x582591,_0x438f27._0x356867)+'d']),console['log'](_0x199b52[_0x5399cb(_0x438f27._0x516bf3,_0x438f27._0x13c961)]);const _0x5de285={};_0x5de285[_0x5399cb(_0x438f27._0x2cdda1,0x3d3)]=!![];function _0x8f6225(_0x46a8ac,_0x17ccf6){return _0x5338aa(_0x46a8ac-_0x58acfb._0x16c257,_0x17ccf6);}_0x2f1765[_0x8f6225(_0x438f27._0x3f4543,0x372)](_0x36c920[_0x8f6225(_0x438f27._0x171ba6,0x2bc)+'d'],_0x5de285),console[_0x5399cb(0xd9,_0x438f27._0x411a2b)]('Expires:'+'\x20'+formatLocalTime(_0x36c920[_0x5399cb(0x2be,0x1e2)+_0x8f6225(0x249,0xda)+_0x8f6225(0x3ff,_0x438f27._0x2afe28)])),console[_0x8f6225(0x2d9,_0x438f27._0x582e7c)](_0x8f6225(0x4b3,_0x438f27._0x15b6db)+':\x20'+_0x3afe82);}function printStatus(){const _0xc7aaf={_0x2e6a6f:0x3ab,_0x2b9f4f:0x392,_0x58810f:0x2a9,_0x22987f:0x25b,_0x5d9361:0x3f4,_0x4918e8:0x4c1,_0x2d6766:0x4d5,_0x2b124b:0x43c,_0x8e9d1a:0x4ab,_0x14a664:0x55f,_0xa46afa:0x51b,_0x910508:0x46b,_0x1cb5ef:0x4ce,_0x21e5d1:0x32d,_0x46bb8d:0x16f,_0x34c5b0:0x5d,_0x4ed3bf:0x38d,_0x58b73a:0x273,_0x4798a1:0x4d2,_0x5ac7ce:0x668,_0x5d94fb:0x34f,_0x48c939:0x4f0,_0x119cb2:0x2bc,_0x585795:0x47d,_0x22a028:0x270,_0x3028a2:0x458,_0x3d621f:0x414,_0x45956a:0x4d7,_0x1fa1b7:0x33f,_0x29cf9a:0x138,_0xbf6e63:0x6ad,_0x517bd0:0x38d,_0x19686f:0x53f,_0x145550:0x251,_0x59c664:0x40d,_0x33b1b8:0x405,_0x981916:0x401,_0x363ce2:0x21b},_0x2cd322={_0x342cee:0x252};function _0x234d8e(_0x341fec,_0x1b4c66){return _0x33cded(_0x1b4c66,_0x341fec- -0x16e);}const _0x5353b0={'FxsZf':function(_0x25bb80){return _0x25bb80();},'CCgwL':function(_0x56d1a4){return _0x56d1a4();},'kSwEV':'4|1|0|2|'+'3','dTdbE':'installe'+'d'},_0x5602a3=readPairingConfig(),_0x120f00=_0x5353b0[_0x2ccb26(_0xc7aaf._0x2e6a6f,0x498)](getServiceStatus),{logPath:_0x3d907b,errorLogPath:_0x5db800}=_0x5353b0[_0x2ccb26(0x1c5,_0xc7aaf._0x2b9f4f)](getServicePaths),_0x4d27dc=readCliVersion();console[_0x2ccb26(_0xc7aaf._0x58810f,0x2b0)](_0x2ccb26(0x2c3,_0xc7aaf._0x22987f)+'\x20'+_0x4d27dc);if(!_0x5602a3)console['log'](_0x234d8e(0x4a4,0x2f9)+'not\x20pair'+_0x234d8e(0x456,_0xc7aaf._0x5d9361)+getPairingConfigPath()+')');else{const _0x23aa45=_0x5353b0['kSwEV'][_0x2ccb26(_0xc7aaf._0x4918e8,0x420)]('|');let _0x560273=0x0;while(!![]){switch(_0x23aa45[_0x560273++]){case'0':console[_0x234d8e(0x38d,_0xc7aaf._0x2d6766)](_0x234d8e(_0xc7aaf._0x2b124b,_0xc7aaf._0x8e9d1a)+':\x20'+_0x5602a3[_0x2ccb26(0x342,0x443)+'Id']);continue;case'1':console[_0x2ccb26(_0xc7aaf._0x58810f,0x2a7)](_0x234d8e(0x3e7,_0xc7aaf._0x14a664)+_0x234d8e(_0xc7aaf._0xa46afa,0x38e)+_0x5602a3['gatewayI'+'d']);continue;case'2':console[_0x2ccb26(_0xc7aaf._0x58810f,_0xc7aaf._0x910508)]('Server\x20U'+_0x234d8e(0x317,_0xc7aaf._0x1cb5ef)+_0x5602a3[_0x2ccb26(0x4c5,_0xc7aaf._0x21e5d1)+'l']);continue;case'3':console['log']('Name:\x20'+(_0x5602a3[_0x2ccb26(0x1ea,0x342)+_0x2ccb26(_0xc7aaf._0x46bb8d,_0xc7aaf._0x34c5b0)]??'-'));continue;case'4':console[_0x234d8e(_0xc7aaf._0x4ed3bf,_0xc7aaf._0x58b73a)]('Config:\x20'+_0x234d8e(_0xc7aaf._0x4798a1,_0xc7aaf._0x5ac7ce));continue;}break;}}console[_0x2ccb26(_0xc7aaf._0x58810f,0x101)](_0x234d8e(_0xc7aaf._0x5d94fb,_0xc7aaf._0x48c939)+'\x20'+resolveGatewayUrl()),console[_0x234d8e(_0xc7aaf._0x4ed3bf,0x2e2)](_0x2ccb26(0x317,0x3bd)+'\x20'+(_0x120f00[_0x234d8e(_0xc7aaf._0x119cb2,_0xc7aaf._0x585795)+'d']?_0x5353b0[_0x234d8e(0x485,0x4f9)]:_0x234d8e(0x40e,_0xc7aaf._0x22a028)+'alled')+'\x20('+_0x120f00[_0x234d8e(_0xc7aaf._0x3028a2,0x5e8)]+')'),console['log'](_0x2ccb26(_0xc7aaf._0x3d621f,_0xc7aaf._0x45956a)+'\x20'+(_0x120f00[_0x234d8e(0x2cb,_0xc7aaf._0x1fa1b7)]?_0x2ccb26(0x215,_0xc7aaf._0x29cf9a):'no')),console['log']('Path:\x20'+(_0x120f00[_0x234d8e(0x3e5,0x2b3)+'ath']||'-'));function _0x2ccb26(_0x4e3468,_0x57061a){return _0x33cded(_0x57061a,_0x4e3468- -_0x2cd322._0x342cee);}console['log'](_0x234d8e(0x548,_0xc7aaf._0xbf6e63)+_0x3d907b),console[_0x234d8e(_0xc7aaf._0x517bd0,_0xc7aaf._0x19686f)](_0x234d8e(_0xc7aaf._0x145550,_0xc7aaf._0x59c664)+_0x2ccb26(_0xc7aaf._0x33b1b8,_0xc7aaf._0x981916)+_0x5db800),!_0x5602a3&&(process[_0x234d8e(0x2c1,_0xc7aaf._0x363ce2)]=0x1);}function printServiceResult(_0xbc6b23,_0x29032d){const _0x3e5672={_0x329956:0x235,_0x489106:0x38b,_0x27491b:0x1e6,_0x59363f:0x1ea,_0x7c72a7:0x2c4,_0x3bd736:0x89,_0x52c4ec:0x224,_0x28d183:0x10c,_0x2767b0:0x16d},_0x49a9ed={_0x34a012:0x71a},_0x56c44b={_0xe93819:0x65f},_0x50324c={};_0x50324c['sWyMl']=_0x379554(-_0x3e5672._0x329956,-0x82)+_0x19f30d(-0x29a,-_0x3e5672._0x489106)+'ng';function _0x379554(_0x4f023d,_0x3b2872){return _0x33cded(_0x3b2872,_0x4f023d- -_0x56c44b._0xe93819);}const _0x3414df=_0x50324c;function _0x19f30d(_0x30ff24,_0x23778b){return _0x33cded(_0x23778b,_0x30ff24- -_0x49a9ed._0x34a012);}_0xbc6b23&&console['log'](_0xbc6b23),console[_0x19f30d(-0x21f,-0x1f8)]('Service:'+'\x20'+(_0x29032d[_0x379554(-_0x3e5672._0x329956,-_0x3e5672._0x27491b)+'d']?_0x29032d['running']?_0x3414df[_0x19f30d(-0xbf,-_0x3e5672._0x59363f)]:_0x19f30d(-0x2f0,-_0x3e5672._0x7c72a7)+_0x19f30d(-0x84,_0x3e5672._0x3bd736)+'ed':_0x379554(-0xe3,-0x177)+'alled')),console[_0x19f30d(-0x21f,-_0x3e5672._0x52c4ec)]('Service\x20'+'path:\x20'+(_0x29032d[_0x379554(-_0x3e5672._0x28d183,-_0x3e5672._0x2767b0)+_0x19f30d(-0x51,-0x37)]||'-'));}function printDoctorReport(_0x35de94){const _0x360fa9={_0xc0939b:0x45,_0x4025b7:0xfc,_0x95d6c7:0xfa,_0x28daa4:0x4f,_0x51189d:0x1ec,_0x3d3589:0x271,_0x2f88f5:0x25c,_0x1b58f4:0x266,_0x586184:0xc1,_0x25990d:0x12d,_0x6f30a2:0x32,_0x3989f8:0x1a9,_0x4e1942:0x16,_0x54cce9:0x1e6,_0x1c9efb:0x4ff,_0x37cbc8:0x19b,_0xf3164c:0x302,_0x5c9885:0x285,_0x924035:0x37a,_0x3abe01:0x25a,_0x4764da:0x28a,_0x3174ab:0x32,_0x2cad40:0x138,_0x2d229b:0x57c,_0x5139c6:0x443,_0x386740:0x32,_0x1cd377:0x1f0,_0x13f14d:0x21,_0xdc2ca7:0x4,_0x100115:0x459,_0x2338c3:0xef,_0x48222a:0x16f,_0x192ff0:0x30d,_0x243062:0x28,_0x20f309:0x2ae,_0x33a6cc:0x270,_0x20163c:0x212,_0x22a94c:0x286,_0x55b5ef:0x14b,_0x5d8538:0x3e0,_0x28253d:0x2c2,_0xda82b0:0xb4,_0x261a2f:0x20c,_0x41b429:0x1f6,_0x226bdb:0x22b,_0xfd1053:0x1f6,_0x196658:0x364,_0x4aefe4:0x14e,_0x3552dc:0x237,_0xc0fd8d:0x307,_0x2e3fa1:0xf9,_0x38ce4e:0xe0,_0x50335c:0x32,_0x2b222c:0x24e,_0x457e27:0x7f,_0xdb6a90:0x201,_0x3c8ec3:0x3b6,_0x3a5965:0x1ac,_0x53336f:0x3a5,_0x3a756e:0x2e4,_0x5e7f32:0x15c,_0x21e8a5:0x110,_0x1209bb:0x330,_0xfe6f7:0x28a},_0x4db76d={_0x2c9a36:0x52d},_0x2cda11={};_0x2cda11[_0x1d19ad(-0x7,-0x37)]=_0x1d19ad(_0x360fa9._0xc0939b,-_0x360fa9._0x4025b7),_0x2cda11[_0x1d19ad(0x4,_0x360fa9._0x95d6c7)]=_0x1d19ad(0x216,_0x360fa9._0x28daa4)+_0x1d19ad(-0x75,-0xec);const _0x4cd868=_0x2cda11;function _0x1d19ad(_0x3fffe8,_0x5aa9fe){return _0x33cded(_0x3fffe8,_0x5aa9fe- -_0x4db76d._0x2c9a36);}function _0x3137aa(_0x1d5cae,_0x325399){return _0x33cded(_0x1d5cae,_0x325399- -0x271);}const _0x3454f0=(_0x3137aa(0x299,_0x360fa9._0x51189d)+_0x3137aa(0xa0,_0x360fa9._0x3d3589)+_0x3137aa(_0x360fa9._0x2f88f5,_0x360fa9._0x1b58f4)+_0x3137aa(0x59e,0x3e0)+_0x1d19ad(_0x360fa9._0x586184,-0xcf))['split']('|');let _0x35ec4c=0x0;while(!![]){switch(_0x3454f0[_0x35ec4c++]){case'0':console[_0x1d19ad(-_0x360fa9._0x25990d,-_0x360fa9._0x6f30a2)]('Service\x20'+_0x1d19ad(0x92,_0x360fa9._0x3989f8)+(_0x35de94[_0x1d19ad(_0x360fa9._0x4e1942,0x26)+'ath']||'-'));continue;case'1':console[_0x3137aa(_0x360fa9._0x54cce9,0x28a)]('OpenClaw'+'\x20dir:\x20'+_0x35de94[_0x1d19ad(0x1de,0xce)+_0x3137aa(0x354,0x1ad)+'r']);continue;case'2':console[_0x1d19ad(-0x99,-0x32)]('OpenClaw'+'\x20config:'+'\x20'+(_0x35de94['openclaw'+_0x3137aa(0x4cc,_0x360fa9._0x1c9efb)+_0x3137aa(_0x360fa9._0x37cbc8,_0x360fa9._0xf3164c)]?_0x4cd868[_0x3137aa(0x281,_0x360fa9._0x5c9885)]:_0x3137aa(_0x360fa9._0x924035,0x4bf)));continue;case'3':console[_0x3137aa(_0x360fa9._0x3abe01,_0x360fa9._0x4764da)]('Paired:\x20'+(_0x35de94[_0x3137aa(0x27d,0x3cf)]?_0x3137aa(0x33a,0x1f6):'no'));continue;case'4':console[_0x1d19ad(-0xce,-_0x360fa9._0x3174ab)](_0x3137aa(0x492,0x339)+'\x20ID:\x20'+(_0x35de94['instance'+'Id']??'-'));continue;case'5':console[_0x1d19ad(-_0x360fa9._0x2cad40,-0x32)]('Relay\x20UR'+_0x1d19ad(-0x50,0x80)+(_0x35de94[_0x3137aa(_0x360fa9._0x2d229b,_0x360fa9._0x5139c6)]??'-'));continue;case'6':console[_0x1d19ad(-0x136,-_0x360fa9._0x386740)](_0x1d19ad(0x1a1,0x19d)+_0x1d19ad(0x63,0x92)+_0x35de94[_0x1d19ad(_0x360fa9._0x1cd377,0xce)+_0x1d19ad(0x142,-_0x360fa9._0x13f14d)]);continue;case'7':console[_0x1d19ad(-_0x360fa9._0xdc2ca7,-0x32)](_0x3137aa(0x2c2,_0x360fa9._0x100115)+_0x3137aa(_0x360fa9._0x2338c3,_0x360fa9._0x48222a)+(_0x35de94['openclaw'+'TokenFou'+'nd']?_0x3137aa(_0x360fa9._0x192ff0,0x1c0):'missing'));continue;case'8':console[_0x1d19ad(0x4f,-_0x360fa9._0x6f30a2)]('Error\x20lo'+'g\x20path:\x20'+_0x35de94['errorLog'+_0x3137aa(0x1f5,0x3a6)]);continue;case'9':console['log'](_0x1d19ad(0x1cf,_0x360fa9._0x243062)+'URL:\x20'+_0x35de94[_0x3137aa(_0x360fa9._0x20f309,_0x360fa9._0x33a6cc)+'ewayUrl']);continue;case'10':console[_0x1d19ad(-_0x360fa9._0x20163c,-0x32)](_0x1d19ad(_0x360fa9._0x22a94c,_0x360fa9._0x55b5ef)+_0x3137aa(_0x360fa9._0x5d8538,_0x360fa9._0x28253d)+'\x20'+(_0x35de94[_0x3137aa(_0x360fa9._0xda82b0,0x195)+'unning']?_0x3137aa(_0x360fa9._0x261a2f,_0x360fa9._0x41b429):'no'));continue;case'11':console[_0x3137aa(_0x360fa9._0x226bdb,0x28a)]('Gateway\x20'+_0x3137aa(_0x360fa9._0xfd1053,_0x360fa9._0x196658)+_0x1d19ad(_0x360fa9._0x4aefe4,_0x360fa9._0x3552dc)+(_0x35de94['localGat'+_0x3137aa(0x4a5,_0x360fa9._0xc0fd8d)+_0x1d19ad(-0x53,-_0x360fa9._0x2e3fa1)]?_0x3137aa(0x314,0x1f6):'no'));continue;case'12':console[_0x1d19ad(_0x360fa9._0x38ce4e,-_0x360fa9._0x50335c)](_0x3137aa(_0x360fa9._0x2b222c,0x2f8)+'\x20'+(_0x35de94[_0x1d19ad(_0x360fa9._0x457e27,0x17)+'nstalled']?'installe'+'d':_0x4cd868[_0x3137aa(_0x360fa9._0xdb6a90,_0x360fa9._0x3c8ec3)])+'\x20('+_0x35de94[_0x1d19ad(0xe3,_0x360fa9._0x3a5965)+'ethod']+')');continue;case'13':console['log']('Server\x20U'+'RL:\x20'+(_0x35de94[_0x1d19ad(_0x360fa9._0x53336f,0x1ea)+'l']??'-'));continue;case'14':console[_0x3137aa(0x23b,0x28a)](_0x3137aa(0x4c7,_0x360fa9._0x3a756e)+_0x1d19ad(0x70,_0x360fa9._0x5e7f32)+(_0x35de94[_0x3137aa(_0x360fa9._0x21e8a5,0x1bd)+'d']??'-'));continue;case'15':console[_0x3137aa(_0x360fa9._0x1209bb,_0x360fa9._0xfe6f7)](_0x1d19ad(0x92,0x155)+':\x20'+_0x35de94[_0x1d19ad(-0x118,0x6c)]);continue;}break;}}function requirePairingConfig(){const _0x3914a1={_0x36f79e:0x3f3,_0x28b581:0x132,_0x101a94:0x89,_0x2df9ad:0x262,_0x4a9325:0x35,_0x1ab5ff:0x437},_0x39c0c9={_0x21d1d4:0x262};function _0x1611d3(_0x4d8ead,_0x3c399e){return _0x5338aa(_0x4d8ead- -0x9a,_0x3c399e);}const _0x487a2c=readPairingConfig();function _0x5d8451(_0x387a7f,_0x2cf41c){return _0x5338aa(_0x387a7f- -_0x39c0c9._0x21d1d4,_0x2cf41c);}return!_0x487a2c&&(console['error'](_0x1611d3(0x3bf,_0x3914a1._0x36f79e)+_0x5d8451(0x36,_0x3914a1._0x28b581)+_0x1611d3(0x13f,-_0x3914a1._0x101a94)+_0x1611d3(_0x3914a1._0x2df9ad,0x416)+_0x5d8451(-0x45,-0x1c7)+_0x5d8451(0x11b,_0x3914a1._0x4a9325)+_0x1611d3(_0x3914a1._0x1ab5ff,0x61a)+getPairingConfigPath()),process[_0x1611d3(0x28c,0x468)](0x1)),_0x487a2c;}function readFlag(_0x16c8cd,_0x334ea6){const _0x16a2e6={_0x335def:0x3b2,_0x5aedb1:0x343,_0xa1ff00:0x4a9,_0x48dfcf:0x37b,_0x3a1b1a:0x4db,_0x3717d4:0x42d},_0x33c3aa={_0x3f5196:0x1cf},_0x18c08a={_0x58c042:0x304},_0x46579f={};_0x46579f[_0x3623d4(_0x16a2e6._0x335def,_0x16a2e6._0x5aedb1)]=function(_0x52b78d,_0x54b71e){return _0x52b78d+_0x54b71e;};const _0xa707a1=_0x46579f;function _0x3623d4(_0x12be1b,_0x5d81a2){return _0x33cded(_0x12be1b,_0x5d81a2- -_0x18c08a._0x58c042);}const _0x5d0c37=_0x16c8cd[_0x3623d4(_0x16a2e6._0xa1ff00,_0x16a2e6._0x48dfcf)](_0x334ea6);if(_0x5d0c37<0x0)return null;function _0x368fed(_0x358964,_0x4cbd17){return _0x33cded(_0x4cbd17,_0x358964- -_0x33c3aa._0x3f5196);}const _0x6d5ff=_0x16c8cd[_0xa707a1['leMXt'](_0x5d0c37,0x1)];return _0x6d5ff?.[_0x368fed(0x4db,0x627)]()?_0x6d5ff[_0x368fed(_0x16a2e6._0x3a1b1a,_0x16a2e6._0x3717d4)]():null;}function _0x5e63(){const _0x406944=['yxjNDG','tdOG','BJOG','ifbYzxnZiem','Dgv3yxK','q2XP','tNnczNq','CMvSyxLtzwm','Aw5ZDc0','zw5HyMXL','mJq2mtyZmMnACxnnCa','lwPZB25D','pLbYB2DYyw0','uMvTB3zLzca','pL0GwY0Tzxi','z2f0zxDHEvq','CMvHzhLtDge','pc9ZDhjPBMC','s05dse0','ig1LzgLHoIa','BwvKAwfeAxi','rg9vDMK','u0Lhsu5u','rLjUBNy','zwqGka','zerLDMLJzxm','Bwv0Ag9K','zxHPDa','y29UBMvJDgu','q2XHD2TLDei','yMLUyxj5','phn0CMLUzZ4','ywDLBNrZ','Bgf1BMnOy3q','A2LUz0rPCMu','CMvWBgfJzq','phvUA25VD24','C3rVCa','l1bjra','y2HLzcbTB2q','ywLYlNjLC28','CMvHy2HHyMW','u1nyte4','rfrczK0','AwyGwYaTEca','Bgf5q29UDhi','AxqU','BNLIzMS','BMqU','CgXHDgzVCM0','ywnRz3jVDw4','ww91ignHBIa','zcbZAw5JzuC','zMLSDgvY','yw50ihrVigi','CxvLC3q','BNvxs3K','DfrPBwvVDxq','Dg9ju09tDhi','CMvQzwn0uge','BgKTzxjYB3i','CxvLCNK','z2f0zxDHEuG','zgLZy29UBMu','BMvJDgLUzW','C29YDa','yNjPzgDLlwm','vK9WrNG','z2vZ','zxHLy1bHDgG','zwqGyMfJA2C','zfrKyKu','EwjwENa','C3rVChbLza','ls1Syxn0','cIaGpc9HCNi','je5prevFuee','lNbSAxn0','DwvZDeLKpq','B3bLBMnSyxC','CM9Wzxj0EuW','rNHZwMy','CMvTB3rLsxa','DhjHDgLVBI4','yxrLD2f5t3a','mtCZmtC1qK9kwxzO','DhjSk0mGDg8','Bwf4ugf5Bg8','C3rHBgXHDgK','zwqU','Aw1Hz2uVCg4','ywLYlMfWChi','r3jLq3O','zwXHEq','igzVCIbNyxq','A2LSBa','yxvSDc50yxi','ywLYzwqUifi','ugf0AdWVA2u','Dw5ZDxbWB3i','BwfYA1bHAxi','zxvLzcb1BNq','q29UzMLNoIa','vw5HyMXLihq','tw9IAwXLiem','zw1HBMqGzhi','vgHPCYbICMK','ugf0Aa','BNPqzgC','ignVBMzPzYa','Dg9tDhjPBMC','u3HIB2m','yxKGCMvJB24','BMvJDgvK','BMzPzYbWyxq','A2LUza','zM9YD2fYze8','C0f0','vM1xwvi','C2vYDMvYidW','rwfvr24','CNvUDgLTzsa','CNvUifSTlwC','uvLgr28','zxrcCMLKz2u','Cg9UzW','zM9YzsbWywK','ls1MB3jJzq','zhKGCNvUBMK','zxrpEui','Dg9Rzw4','CNzLCI4','B2TLBG','y2XPzw50x2m','iurpq1rzueu','ls1Zzxj2Awm','y29UzMLNuge','y2vZuMvJzw4','CMvWBgfJzue','C3LZDgvTzc0','Ag90','ywvKBfa','wY0TANnVBL0','odC4oq','A0rwDM8','CgvUzgLUz0C','BhjLywr5iha','Bw9Kzq','CgfPCMvK','AgfUzgXLuMu','ugfZC3DVCMq','ywrKugvUzgK','DgvYBwLUyxq','CMfUzg9T','DgLTzw91Da','Bgvnwhq','C21HBgW','BNn0ywXSzwq','r2f0zxDHEvi','yxnL','zgvMyxvSDa','l251BgWGmJ4','zxHWB3j0ifa','CMf3','y29UzMLNoIa','Fdf8nNWYFdC','Dw50','CMLWDcbWyxq','BeDxwLi','r0rPwxe','B3nLzdOG','zZOG','C2nOzwr1Bgu','CfD6D04','pg5VBMu+','C1D5twW','qwnJzxnZigm','swq9','C3rHCNrLzca','B3vUzcbZzxi','C3rHDhvZ','mti3lJaUmc4','r2zwzLu','y29UDgvUDc0','zgv0ywLSCW','zgf6z1G','uNvUBMLUzZO','igHHCYbIB3q','vwTWsge','y3rPDMf0Aw8','ifjLC3rHCNq','ywnOywjSzsa','zxj2AwnLlMO','B25tDgf0Dxm','DgfSBgvKigi','AwDUB3jL','y2XPzw50swq','zxHPDcaXmJC','ihPLCM87igS','q3vPBKO','C29Tzq','ihnPBMnLq2W','y2XVC2vhyxq','igrLDMLJzuK','u2vYDMLJzsa','oti1nZeYyuniweXK','BMuUDgfYz2u','ywrK','B25Uzwn0','DxnLCG','C2v0vgLTzw8','Aw5KzxHpzG','y29Uy2f0','uMDdCNe','tg9NihbHDgG','EvLZDMK','yxv0Ae1Vzgu','Ahr0Chm6lY8','DgLTzwqGB3u','pGOGidXRzxK','s0D2yw0','suq6ia','ig1VCMuGzgu','ignSAwvUDhm','AxnTyxrJAa','CMvQzwn0zwq','Dgv3yxLdB24','q2fUBM90igm','qMfJA2DYB3u','tgf1BMnOqwC','sKfMu3O','zxjLCxvPC2K','r3rcreG','CMLUzZ4','zcWGC3rVCha','C2vYDMvYlw0','D3nZoI8V','Ac5TB2rLigK','C2vUzfrVr2e','zMLNDxjLzcW','Ag9ZDa','cGPBsw5ZDge','ihbSAxn0ifa','DaPxyw50CZ0','z0rkruG','iI4GvxnLihy','DNHxzu8','y2XHD2TLDca','r0ffA0i','Dg9mB3DLCKm','EunZvgC','C3rZ','ELflyxC','DxbKyxrLu24','DhjPBq','Et4kica8Dhi','y2XPzw50tMe','BMC+','ls1QC29U','CxjjBwfNzva','icH0B2TLBIa','CM9YC10GwY0','CZWVA2v5pGO','ihnLCNzPy2u','CMvSyxLvCMW','l3jLz2LZDgu','tg9NoIa','B25mB2C','lIbsDw4GiMm','AxnhyxrLD2e','zxnVBhzLza','DgG8l2TLEt4','ls1NyxrLD2e','AwyGy29TBwe','zcbIywnRz3i','qKLYwhq','uefjuKLor18','zsbUzxCGCge','CMvSyxKGzgK','CMWGphDZoI8','zxK+cIaGphq','DejHC2vezwW','z2f0zxDHEsa','l0rurcbqteK','ihvYBd0','yxrO','t3bLBKnSyxC','Aw5Nienmssa','BxbSzqPfEgu','se5RtgK','Eu1Z','DgHLBG','AwrLBNrPDhK','B2zM','ChbLBMq6','BgKUBg9N','y2uGD2fZigK','uviGAw1Hz2u','Cgf0AdOG','BgvUz3rO','cIaGphn0CMK','C2vYDMLJzu0','otfvzhvQwue','tKnjBKS','BM9VCa','BgfIzwW','ig9Yia','ugfPCIbYzwC','yxv0AcbWyxq','v2LUzg93C1W','pGO8l3bSAxm','zgTZt0e','zezrtwe','zxDHEs5HDxq','zgfLBw9Ulxi','BgzoCwC','uev1sNi','BgfZDevYCM8','Bwf0y2G','yxj0yMvHDca','Aw5JBhvKzxm','CMvXDwvZDgu','su9RqK4','sw1uBuy','qxjNDw1LBNq','CMvSyxKGzxi','ywLYuMvXDwu','zxjYB3i6ia','CNvU','C3rHCNrPBMC','CMqGyMvMB3i','zg9JDg9Y','z2f0zxDHEq','BMfTzq','tM90ihbHAxi','DxrQsMi','u2fYufm','B2rLiciKu0m','CIbWyxnZD28','z1LZtxy','B2nRzxq','BMqGC2vYDMK','CM9YoIa','BgLZDa','CMvMCMvZAgu','EvD3s1a','uNvUigbJBge','Bs9everZl1a','D2f5twvZC2e','A2vtDgfYDgu','Dg9YycbMB3i','t1bftKnmqvC','zevYCM9Ypwe','CdOVl3D3DY4','CgzAywu','C1zuz3O','C2vYDMvY','zgf0yq','zguGCNvUDgK','C3bSAxq','CMvJDgLVBKW','CMLUzYb3Axq','CMvN','C2vYDMvYvxi','CgfYyw1Z','CMvZ','yxbZAg90','z2f0zxDHEvu','z1bHAxjszxe','CNrIzwf0','ieLeoIa','qxv0Ae1Vzgu','BNPhEge','rM91BMq','D2LUzg93C0G','l2TLEt4kica','whD3AxC','y2XPzw50igq','AgfUzgXLr2e','AxiGzMLYC3q','yMfJA2DYB3u','Dg9mB2nHBgu','igf1DgGGAxm','EufJDgL2Axq','zwm9mGPxB3i','D2TLDcbKB2m','Cvrwsfi','Ahr0CdOVlW','BwLZC2LUzW','zcbXDwv1zwq','CMvZAgvKlG','CNvUlxjLz2K','yxrLD2f5twu','vxDJC2e','B3iGCgfZC3C','icbLEgvJig4','ywLYlNjLAMu','yujKwgG','sw52ywXPzca','lMXVzW','igj1DcbZDg8','zcbMB3iGzNi','lJaUmc4XoG','u0nssvbux1a','zgv2AwnLlNa','BMCGy29UBMu','BwfUzfn0yxi','zxjYB3jmB2C','zxK+uNvUqxq','Cgf5Bg9Hza','thLguNG','u3rVChbLzca','CNvUDgLTzs4','BwfW','z2vUzxjHDgu','ywX1zsaI','zhHcuMu','txvdu3K','zwXVywq','mci+cJXKAwm','DgfPBhmSig8','BNvTyMvY','Cg9YDa','CMvXlq','BgfZDfnLzw4','twDUAuC','AgvSCa','kYKRja','y2XPzw50x2q','BwfYA0rLDMK','Dw5Yzwy','AwXLzcaO','AxnjBNrLz2u','Aw9Ul2PZB24','y2XPzw50q28','zgDLigLZige','C3rHCNrLzee','CMvX','cLn0yw5Kyxi','CMvJB25Uzwm','ztOG','CMvSyxLdB24','qxrnCW','ihrVA2vUig8','v1nqB3y','z2f0zxDHEvi','CMvNAxn0zxi','DgjLyxq','mtaXwhHZvMjM','mtG3nZq2sKzcsxjt','y29UC3rYDwm','zKXmEuy','q29UzMLNrM8','pwfSD2f5CWO','AdOG','ifnLDcb0Agu','ywKUy2XHD2S','BwvKAwe','CM9Szq','r0j6vuu','C3rHDgu','ls1UB3C','C3rVCeHLyxi','DwnPsKO','ufrTue8','rM5yA2K','y1n0yxj0pq','y2XLyxjuAw0','B25Uzwn0zwq','zMX1C2Hqzw4','zwzYzxnOzwq','igvYCM9Ypq','ls1SAw5LCW','AxmGC2fMzxq','z2v0cG','Cgf0AevUDG','rxjYB3iGtg8','jMX0oW','yw1L','Ahfmrxa','D29YzcbJB24','zsbZDgfYDgu','lJaIigvUy28','BwD0t2O','BgfZDca8mM0','yxnZD29Yza','zgvSzxrL','zg93BG','weTsB2q','BfvNzhC','zMLUza','zwXHChnLzfm','y29UBMvJDc4','DNHpqLq','yxbWBgLJyxq','BM5Ly3qGyxq','C0LMBuq','CgfPCG','B21WBgv0zsa','rNbsAha','wxrlEKS','CMvXDwvZDeK','ywXYzwfKEsa','CgfZC3DVCMq','qNjPzgDLigK','lNnLCNzPy2u','seH4rMO','CffcD0u','zcbZAw5Jzum','ihrVA2vUoIa','vvjmoIa','Cg9Tz2G','zxqUyNjPzgC','Axn0lteUmc4','Cgf0Ag5HBwu','sLfeCfm','A2v0','CxvLC3rDihi','y2uGywXYzwe','AgvHCNrIzwe','lw5HBwuGpgq','tM8GBwf0y2G','AgfRztSGCxu','CgfPCMLUzYa','CvrtuM4','yMfZzty0','CMv0','zxzLBa','l3yXl3bHAxi','u2vYDMLJzv0','zsbWywLYAw4','lMnVBMzPzW','zcWGyNv0ihm','zgLUzZ0Ivvq','lY5VCgvUy2W','B249q2XHD2S','lMPZB24','BgLUDxG','yxrLD2f5igK','icbLEgvJici','C3rPBgWGCNu','CLf1zxvLr2e','DMLJzsbMB3i','r0zAveq','yxbWBhK','Axn0zxiGzMe','z2f0zxDHEum','C2vYDMLJzvi','C2HPzNq','Dw5SB2fK','uKvhx1nA','CMLUzYbJB2q','C2vHCMnO','zw5ZDxjLr2e','C29U','BgXDcLDHBNq','ls1XCI1MAwW','zM91BMqGDw4','zK5Wvwe','CMvZDgfYDa','ihrVA2vUigK','CMfTCW','y3jVC29MDfW','swvtrM8','q0nND0W','zwrcEt1Kzwy','CgLK','EgLzv0O','igLUDgvUDgK','Bwu+xsbBls0','zxDHEq','q29UzMLNrgK','nhW1','CNjVCKXVzW','ihn0B3aU','yujUzMe','AxmTywn0Axy','CMnLycbVBMW','CNvUiIbTyw4','C2LUzY4','CgvUzgLUzW','DwvZDcbWzw4','CMvNAxn0CNK','Aw5ZDgfSBgu','yxbWCM92zva','Aw5Nr2f0zxC','qvriiIbDoYa','z2f0zxDHEuK','zxHPDenVzgu','tgLICMfYEq','zM91BMq','AxnbCNjHEq','yxLnzxnZywC','AgfIBgu','z2f0zxDHEvm','zM9YBsbMB3i','Bg9NCW','Dw5HDMfPBge','CNvUBMLUzW','ygnSyxDRzxq','BM90ihjLywq','zgLZCgXHEu4','Ag9ZDg5HBwu','cLr5Cgu9C2K','CgvU','thfuvLK','ywXSzwq','jMD0oW','Aw5ZDgfSBa','ienSyxDRzxq','icaGidXZDhi','zKHur3q','zMXVB3i','yxj0','B3bLBG','v2fZsui','uKLqvf9qqvq','ls1Uyw1L','De1HEerLBge','CxiTzMLSzsa','ChvZAa','AxncDwzMzxi','igrLy2LZAw8','C2vUza','EuXPsKG','nxWZ','ig1PC3nPBMC','zgv2AwnLswq','ywnJzxnZq28','CxvLC3rjzd0','q3vYCMvUDfy','q1Litwy','Bgf3A2v0iha','Aw5N','m3WXnhWXm3W','FdL8mte','CMvJDxjZAxy','D3m6lY8','ihvUy2HHBMC','CM91BMqGC2u','Ahnfq08','BMrHCMrpDxq','BKnSyxCGChi','CgLUzW','EwvZ','yxbWCM92zwq','zwnVBM5Ly3q','wgfLrKy','zgvfEhbPCMu','v0TyBxK','runuBwS','veGIiciKu0m','sciGCNvUic0','tKHgrui','B25Jzq','zg9JDg9YifS','yxr0zw1WDd0','Bwf4','zxjZ','BNqGzgvTyw4','zxzLBNq','C3nHz2vZ','B3j0','iMnSyxDRzxq','igj1DcbNyxq','yw5KC2HHA2u','DMLJzsbYzxm','C25HChnOB3q','q0Xbv0rct1q','zcWGCNvUBMK','BM9KzvbHDgG','zwvWAw5NigC','CxjqyxLSB2e','zxjYB3jdB3i','uKW6ia','u3rHCNrLza','y2f0y2G','B2nHBcbpCgu','AcbNyxrLD2e','ChvZAfbLBMq','u3rHCNrPBMC','CMvXDwLYzwq','ww9yrwq','CgvUzgLUz1a','zcbKzwXHEu0','zfbpEfy','Eu9Wzw4','zM9Yy2u','jMfWB3m7','igDHDgv3yxK','x1bbu1nxt1i','Bgf5twvZC2e','z2v0u25HChm','vfPMBMq','igXVywqGDgG','ywnJzxb0','seTdvvXtB2y','zu1rzu0','CNvLlZ4kica','y2XPzw50rgu','z2LRvM0','nJaYodKYD1rJDuT2','s3zxwKm','BIbMywLSzwq','z2v0','yxbWBguUy28','zguGpI9Kzxy','zw1WDa','Df9YzwXHEv8','v2LkrNi','BMqGlxyGBM8','AcbHigrPzMy','DhLWzq','B3b0Aw9UCW','y291BNq','y2HHBMDLzc4','C3rHCNqGDxi','iYeVyMLUl3m','x19JBgf3A2u','u0Lhvevstq','lM9Wzw5JBge','DgvKihbSyxq','uMvXDwvZDfi','y29UzMLN','uMvZDgfYDgu','yxnZAwDU','ihbHC3n3B3i','A2Dyq2e','uMvZDgfYDfm','ica8yxjYyxK','r2f0zxDHEtO','AxjZDc4Gq28','AM9PBG','C3rYEq','s0XAr0m','iejYAwrNzsa','BgfZDe1Z','CMvSyxLbDhq','BgLZDcb2zxi','zgv2AwnLrMe','BLfQBKe','y29UBMvJDfi','zwnHDxnLigW','Et4kica8C3q','zxrYEurLBge','DgGG','y29UzMLNig4','C3LZDgvTza','v3Hbv2W','Bg9Hza','zgfYD2LU','CgfPCIbYzxe','CMvJzw50','ue9tva','B25Uzwn0Aw4','DxbKyxrLzee','mhWWFde1FdG','CMLKz2vdBgK','B2rLihjLzNi','ANnVBG','tgvRrfi','CMvZzxq','lNbUzW','vg9Rzw5gB3u','mM0SidfOlca','DgvKoYbRzwu','Bg9JywXhyxq','nxW0FdeYFde','Dg9Y','u1qGms4WlY8','yw5KihbHC3m','yxrLD2f5igm','DLfqCu8','DhDHCMvCtwK','uwLms3K','lJaUmc4XoJe','y3jLyxrLzee','CMvMCMvZAc0','BYbYzxnVBhy','z2f0zxDHEva','zsbdBgf3A2u','C3rKAw8','B2PMCNq','Aw5Qzwn0zwq','ls1XDwLLDa','BwvZC2fNzq','Dgv4Da','sLjby3C','lJe6mtG3odK','cLnJyw4GDgG','C0zvBMm','ls11C2vY','Bg9N','yMXLigr1CMK','yNjPzgDLlxm','Aw5Jzq','zxDHEsbJB24','Esb0B2TLBIa','zw50','C2v0','rI04iJ8+cJW','C2vUzeDHDgu','ugfPCMLUzYa','yxLnCW','lxnLCNzPy2u','nJeZnZeYme1vywDPEq','CLD4z0S','l3DZ','AxnJB25Uzwm','twvKAwfeAxi','D2LUzg93CY0','C3rYAw5N','nhWWFdj8mxW','y29UzMLNrM8','CgfPCIbBls0','ls1Zzxj2zxi','ywPWCvu','s0jzwgu','vMvYC2LVBJO','Ag1oBu4','uMvSyxLszwm','DgvK','yxjNzxqkcLS','Dgv3yxLnzxm','B3vUzcbMB3i','AgfZ','C3rHCNq','t1bftG','rNPOENC','yw5Ktxm9','zevYCM9Yuge','C2XPy2u','CMvSyxKGy28','y29UBMvJDa','B2jZzxj2zum','zNjVBq','C2vYDMLJzq','y2XVC2u','Dd4kica8A2u','CgfYC2u','zxjYB3i','tNffwNK','BxDNwgK','ls1Syxn0ihy','DfrPBwvY','y29Kzq','D3nZoG','DNnyBNu','CNvUBMLUzZO','DwvZDcbYzxm','qxv0BY1PBNm','y29UBMvJDca','ihbHAxjGigi','Dw1yBMq','zwqUifj1BIa','ywLYic0TzM8','Axnoyu4','q2XHD2TLDca','C2vYDMLJzsi','DxrMoa','sKzLD3C','AxngAw5PDgu','ExbHC3mGDgG','D2LUmZi','ihjLyxnVBJ0','C2vYDMLJzuK','C3rYAw5NAwy','yxv0Aa','EufwqK8','B2jQzwn0','zxqGqNjPzgC','B25Uzwn0u3q','C2fNzq','wfrQs1G','ihjLBgf5pq','wNPYuLO','zgvZDhjVEq','yNrKq2S','Bgf1BMnOywC','C2vHCMnOuge','C2vYDMLJzva','DeLUDgvYDMe','r2f0zxDHEsa','qNjPzgDLige','Dw5RBM93BG','BNHszKe','CMvSyxLtB2m','BgWIig9Yici','AxnWBgf5tMe','l3jVB3q','y3rVCNK9','x0DbvevxqvK','Bg9NCYbBls0','C2nYAxb0uge','B3jKks4','B25SAw5LlNq','yKjTtLy','zxf1zxn0swq','AxnszwXHEu8','mty0nKDQEKTpAG','ig5HBwu9','BgfZDfjLBge','u2vYDMLJztO','zxjZAw9Uxfi','rgLjtKu','DMLJzsbPBNm','Be1Z','sffjre4','nKzSwNrNsa','zxrYEvrPBwu','ig1VzguGDg8','vw5ZDxbWB3i','Dw5K','mhWXFdj8m3W','Bg9NCYbMB3u','ywn0Aw9U','C3LZDgvTy3q','zxDHEvjLywm','zxnLDciGyMu','ienmssbZzxi','phjLzgfJDgu','BM90igLUC3q','lMnSyxDRzxq','lMfP','Dd4k','vNv4zKG','zxnOigzHAwW','zgLUz0DHDgu','uwP2A2y','AcbMB3iGC2u','zfPPvfy','BMDqywLYuMu','zxj2AwnLige','EsbJAgvJAY4','zxHPC3rPBMC','Dw5PBNn0ywW','CuDZzvO','zgLUzYbYzxe','DgvKqxrnCW','CMvSyxKGCMu','y29UDhjVBf8','AwvUDerLBwe','y2uU','B3vUDa','BgLUzxm','Aw5ZDgfUy2u','CNnPB249iJe','BenxB1a','DMvYC2LVBG','BwuGBM90igy','Bg9Nugf0Aa','BwLU','zM1Qr0i','z2v0vgLTzq','ihbHAxiIigy','rgHjvNu','lIbsDw4GCge','CYbTAxnZAw4','EsbPzIb5B3u','BM93','D2fZig5VDca','qvripsi','C3rHCNrZv2K','C2LVBJ0Ims4','Ee9ps3i','CKTPBee','D3m6lY8XmJC','sw5ZDgfUy2u','B3qGzM91BMq'];_0x5e63=function(){return _0x406944;};return _0x5e63();}function hasFlag(_0x5966c5,_0x2e76ce){return _0x5966c5['includes'](_0x2e76ce);}function printHelp(){const _0x763b01={_0x255b97:0x3d8,_0x32dfb1:0x6b5,_0x547c78:0x48d,_0x344896:0x4eb,_0x345923:0x635,_0x325bd3:0x23d,_0x4f5502:0x3fd,_0x4f8e4b:0xe2,_0x30a2d7:0xcb,_0x1eec14:0x2ce,_0x2d14bc:0x9f,_0x52d82e:0x1a5,_0xe2ecf1:0x1fa,_0x129c9a:0x5a,_0x582b4e:0x142,_0xed16dd:0x205,_0x131207:0x3df,_0xba7601:0x22b,_0x5b79bb:0x344,_0x275aea:0x66,_0x1d2f61:0xc2,_0x486e5a:0x66,_0x573d0e:0xe,_0x2ed25d:0x4d7,_0x1d9db0:0xde,_0x247b2d:0x85b,_0x2338e4:0x6c3,_0x534195:0x86,_0x391b72:0x53,_0x1f0ae3:0x6b5,_0x57658b:0x17,_0x411b4f:0x196,_0x57d66b:0x67},_0x5373a8={_0x418eea:0x39c},_0x413b4c={};function _0x4884c3(_0x5e7d12,_0x591e15){return _0x5338aa(_0x5e7d12- -_0x5373a8._0x418eea,_0x591e15);}function _0x4e829f(_0x49075f,_0x26af46){return _0x5338aa(_0x26af46-0x2b3,_0x49075f);}_0x413b4c[_0x4e829f(0x286,_0x763b01._0x255b97)]=_0x4e829f(0x6a4,_0x763b01._0x32dfb1)+_0x4e829f(_0x763b01._0x547c78,0x523)+_0x4e829f(_0x763b01._0x344896,_0x763b01._0x345923)+'url>]\x20[-'+_0x4e829f(_0x763b01._0x325bd3,_0x763b01._0x4f5502)+_0x4884c3(-_0x763b01._0x4f8e4b,_0x763b01._0x30a2d7)+_0x4e829f(_0x763b01._0x1eec14,0x42e)+_0x4884c3(-0x1ef,-0x3a3)+'<path>]\x20'+'[--json]'+'\x20[--forc'+'e]',_0x413b4c[_0x4884c3(-_0x763b01._0x2d14bc,-_0x763b01._0x52d82e)]='clawket\x20'+_0x4884c3(-_0x763b01._0xe2ecf1,-_0x763b01._0x129c9a);const _0x5ee709=_0x413b4c;console[_0x4884c3(-_0x763b01._0x582b4e,-0x320)]([_0x5ee709['mgtOj'],'clawket\x20'+'refresh-'+'code\x20[--'+_0x4884c3(-0x1ef,-_0x763b01._0xed16dd)+'<path>]\x20'+_0x4e829f(0x5f1,0x64c),_0x5ee709[_0x4e829f(_0x763b01._0x131207,0x5b0)],_0x4e829f(0x826,_0x763b01._0x32dfb1)+_0x4884c3(-_0x763b01._0xba7601,-_0x763b01._0x5b79bb),_0x4884c3(_0x763b01._0x275aea,_0x763b01._0x1d2f61)+_0x4e829f(0x5d8,0x5e3),_0x4884c3(_0x763b01._0x486e5a,_0x763b01._0x573d0e)+_0x4e829f(0x575,0x59c)+'l','clawket\x20'+'reset',_0x4e829f(_0x763b01._0x2ed25d,_0x763b01._0x32dfb1)+'status',_0x4884c3(_0x763b01._0x486e5a,0xca)+_0x4884c3(-_0x763b01._0x1d9db0,0x6)+_0x4e829f(0x460,0x3d9)+'>]\x20[--li'+'nes\x20<200'+_0x4884c3(-0x83,-0x197)+_0x4e829f(_0x763b01._0x247b2d,_0x763b01._0x2338e4)+_0x4884c3(-_0x763b01._0x534195,_0x763b01._0x391b72),_0x4e829f(0x855,_0x763b01._0x1f0ae3)+_0x4884c3(-0x1cb,-0x7)+'--json]','clawket\x20'+_0x4884c3(-_0x763b01._0x57658b,-_0x763b01._0x411b4f)+'ateway-u'+_0x4e829f(0x869,0x6d5)+'/127.0.0'+_0x4884c3(-0x146,-_0x763b01._0x57d66b)+'>]'][_0x4884c3(-0x17e,0x18)]('\x0a'));}function formatLocalTime(_0x55c41c){const _0x13fcfa={_0x3f68a4:0x36,_0x2114b4:0xd4,_0x272ed6:0x1dc};function _0x161744(_0x148e36,_0x473a80){return _0x5338aa(_0x473a80- -0x470,_0x148e36);}const _0x57bc7c=new Date(_0x55c41c);if(Number[_0x587ee7(-0x12,-_0x13fcfa._0x3f68a4)](_0x57bc7c[_0x161744(-_0x13fcfa._0x2114b4,-0x175)]()))return _0x55c41c;function _0x587ee7(_0x9c9a40,_0x217a58){return _0x5338aa(_0x9c9a40- -0x2ac,_0x217a58);}return _0x57bc7c[_0x587ee7(_0x13fcfa._0x272ed6,0xd7)+'String']();}function formatError(_0xdf5608){const _0x590a65={_0x5c7149:0x250};function _0x358095(_0xf23721,_0x2ba704){return _0x33cded(_0xf23721,_0x2ba704- -0x561);}return _0xdf5608 instanceof Error?_0xdf5608[_0x358095(-_0x590a65._0x5c7149,-0x6d)]:String(_0xdf5608);}function printJson(_0x150da4){console['log'](JSON['stringif'+'y'](_0x150da4,null,0x2));}main()[_0x5338aa(0x1e6,0xfa)](_0x437f6=>{const _0x436adc={_0x1530c9:0x47b,_0x1ce5d7:0x407};console['error'](formatError(_0x437f6));function _0x49fbfa(_0x3d2653,_0x5984a3){return _0x33cded(_0x3d2653,_0x5984a3- -0x1c0);}process[_0x49fbfa(_0x436adc._0x1530c9,_0x436adc._0x1ce5d7)](0x1);});
2
+ (function(_0x3fd2b3,_0x1358a2){const _0x77aa76={_0xb49380:0x11b,_0x207447:0x1fa,_0x12cf33:0xa7,_0x1706ec:0x5ee,_0x5849ce:0x718,_0x223394:0x463,_0x1a66eb:0x248},_0x1f5bbe={_0x1146f7:0x72};function _0x5c9966(_0x529996,_0x2a4290){return _0x1472(_0x529996- -_0x1f5bbe._0x1146f7,_0x2a4290);}function _0x1dfb1b(_0xc70ce3,_0x510cd3){return _0x1472(_0xc70ce3-0x16d,_0x510cd3);}const _0x1edf41=_0x3fd2b3();while(!![]){try{const _0xa9c170=-parseInt(_0x1dfb1b(0x519,0x621))/0x1+-parseInt(_0x5c9966(0x2c6,_0x77aa76._0xb49380))/0x2*(-parseInt(_0x1dfb1b(0x389,0x3af))/0x3)+parseInt(_0x5c9966(_0x77aa76._0x207447,_0x77aa76._0x12cf33))/0x4+-parseInt(_0x1dfb1b(_0x77aa76._0x1706ec,_0x77aa76._0x5849ce))/0x5+parseInt(_0x5c9966(0x4f2,0x4ab))/0x6*(-parseInt(_0x1dfb1b(0x445,0x586))/0x7)+parseInt(_0x1dfb1b(_0x77aa76._0x223394,0x383))/0x8*(-parseInt(_0x5c9966(0x195,0x38f))/0x9)+parseInt(_0x5c9966(0x47b,_0x77aa76._0x1a66eb))/0xa;if(_0xa9c170===_0x1358a2)break;else _0x1edf41['push'](_0x1edf41['shift']());}catch(_0x2fdb69){_0x1edf41['push'](_0x1edf41['shift']());}}}(_0x3a12,0x323b3));const _0x2cbf26=(function(){let _0x2f36f4=!![];return function(_0x190ca4,_0x2c3614){const _0x422f8d={_0x3e6c54:0x96},_0x520a0a={_0x4d000c:0x354},_0x180d42=_0x2f36f4?function(){function _0x110524(_0x433175,_0x4e5f60){return _0x1472(_0x433175- -_0x520a0a._0x4d000c,_0x4e5f60);}if(_0x2c3614){const _0x28447f=_0x2c3614[_0x110524(0xd3,_0x422f8d._0x3e6c54)](_0x190ca4,arguments);return _0x2c3614=null,_0x28447f;}}:function(){};return _0x2f36f4=![],_0x180d42;};}()),_0x3073ce=_0x2cbf26(this,function(){const _0x48a07e={_0x5f8299:0x196,_0x16c23c:0x492,_0x3b91e3:0x747,_0x1c7dc3:0x85d,_0x398a26:0x5da},_0x14d402={_0x420fa8:0x210},_0x29785f={_0x225581:0x8d};function _0x4fe873(_0x217e73,_0x322a21){return _0x1472(_0x322a21- -_0x29785f._0x225581,_0x217e73);}function _0x4e9819(_0x4ec284,_0xe15319){return _0x1472(_0x4ec284-_0x14d402._0x420fa8,_0xe15319);}return _0x3073ce[_0x4fe873(0x26e,_0x48a07e._0x5f8299)]()[_0x4e9819(0x43a,0x455)]('(((.+)+)'+'+)+$')[_0x4e9819(0x433,_0x48a07e._0x16c23c)]()[_0x4e9819(_0x48a07e._0x3b91e3,_0x48a07e._0x1c7dc3)+_0x4fe873(_0x48a07e._0x398a26,0x3f1)](_0x3073ce)[_0x4fe873(0x73,0x19d)]('(((.+)+)'+_0x4e9819(0x3f1,0x42b));});_0x3073ce();import _0x236742 from'qrcode-terminal';import{readFileSync as _0x5b3c95}from'fs';import{Socket}from'net';import{homedir as _0x1e39b0}from'os';import{existsSync,mkdirSync,readFileSync,rmSync,writeFileSync}from'fs';import{randomUUID}from'crypto';import{homedir,hostname,userInfo}from'os';function _0x4985a8(_0x55d809,_0x2b349a){return _0x1472(_0x55d809-0x2d8,_0x2b349a);}import{join}from'path';function _0x1472(_0x9f0d1d,_0x282949){_0x9f0d1d=_0x9f0d1d-0x1cf;const _0x49e259=_0x3a12();let _0x3073ce=_0x49e259[_0x9f0d1d];if(_0x1472['ymNpRK']===undefined){var _0x2cbf26=function(_0x5be502){const _0x5b65da='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x227c3f='',_0x23abb4='',_0x3e46fb=_0x227c3f+_0x2cbf26;for(let _0x550ce4=0x0,_0x4c3274,_0x58733e,_0x3a25b8=0x0;_0x58733e=_0x5be502['charAt'](_0x3a25b8++);~_0x58733e&&(_0x4c3274=_0x550ce4%0x4?_0x4c3274*0x40+_0x58733e:_0x58733e,_0x550ce4++%0x4)?_0x227c3f+=_0x3e46fb['charCodeAt'](_0x3a25b8+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x4c3274>>(-0x2*_0x550ce4&0x6)):_0x550ce4:0x0){_0x58733e=_0x5b65da['indexOf'](_0x58733e);}for(let _0x545d80=0x0,_0x9ee8a6=_0x227c3f['length'];_0x545d80<_0x9ee8a6;_0x545d80++){_0x23abb4+='%'+('00'+_0x227c3f['charCodeAt'](_0x545d80)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x23abb4);};_0x1472['vkkDyA']=_0x2cbf26,_0x1472['jSHJdW']={},_0x1472['ymNpRK']=!![];}const _0x3a1271=_0x49e259[0x0],_0x147211=_0x9f0d1d+_0x3a1271,_0x3ffae6=_0x1472['jSHJdW'][_0x147211];if(!_0x3ffae6){const _0xe1ca3d=function(_0x404f3e){this['oUVVbC']=_0x404f3e,this['xTxjfA']=[0x1,0x0,0x0],this['mkEZrq']=function(){return'newState';},this['HCpzSM']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['EBMzmK']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0xe1ca3d['prototype']['VLfoZv']=function(){const _0x2bf23f=new RegExp(this['HCpzSM']+this['EBMzmK']),_0x31715e=_0x2bf23f['test'](this['mkEZrq']['toString']())?--this['xTxjfA'][0x1]:--this['xTxjfA'][0x0];return this['ukElZx'](_0x31715e);},_0xe1ca3d['prototype']['ukElZx']=function(_0x6d03b9){if(!Boolean(~_0x6d03b9))return _0x6d03b9;return this['UXZaBe'](this['oUVVbC']);},_0xe1ca3d['prototype']['UXZaBe']=function(_0x587189){for(let _0x13c801=0x0,_0x3d5b5d=this['xTxjfA']['length'];_0x13c801<_0x3d5b5d;_0x13c801++){this['xTxjfA']['push'](Math['round'](Math['random']())),_0x3d5b5d=this['xTxjfA']['length'];}return _0x587189(this['xTxjfA'][0x0]);},new _0xe1ca3d(_0x1472)['VLfoZv'](),_0x3073ce=_0x1472['vkkDyA'](_0x3073ce),_0x1472['jSHJdW'][_0x147211]=_0x3073ce;}else _0x3073ce=_0x3ffae6;return _0x3073ce;}var CONFIG_DIR=join(homedir(),_0x4985a8(0x536,0x715)),CONFIG_PATH=join(CONFIG_DIR,_0x285196(0x573,0x3a5)+_0x285196(0x425,0x277));function getPairingConfigPath(){return CONFIG_PATH;}function readPairingConfig(){const _0x3138e2={_0x2895c6:0x724,_0x3f7bc5:0x849,_0x30e58c:0x201,_0x5578a0:0x1ed,_0xe61514:0x15b,_0x51da2a:0x4f,_0x145473:0x724,_0x502daa:0x7e3,_0x4b7d16:0x875,_0x3be723:0x185,_0x1ad556:0x123,_0x12d28c:0xa66,_0x1c6a4a:0x1ae,_0x207c99:0x9ab,_0x1b1420:0x7f6,_0x3efd83:0x283},_0x5ae616={_0x243928:0x196},_0x9d445e={'iekuB':function(_0x1f3f70,_0x20bdad,_0x162f65){return _0x1f3f70(_0x20bdad,_0x162f65);},'XWans':function(_0x7305fb){return _0x7305fb();},'Kdqkk':function(_0x37c1d6,_0x1387f3){return _0x37c1d6!==_0x1387f3;},'shDKg':function(_0x91448,_0x141657){return _0x91448(_0x141657);}};function _0x19a1de(_0x4e0235,_0x104811){return _0x285196(_0x104811- -0x4a5,_0x4e0235);}if(!existsSync(CONFIG_PATH))return null;function _0x2ffda8(_0x5db099,_0x1eff24){return _0x285196(_0x5db099-_0x5ae616._0x243928,_0x1eff24);}try{const _0x4961c1=JSON[_0x2ffda8(0x885,0x6f0)](_0x9d445e['iekuB'](readFileSync,CONFIG_PATH,_0x19a1de(0x127,-0x4e)));if(!_0x4961c1['serverUr'+'l']||!_0x4961c1['gatewayI'+'d']||!_0x4961c1['relaySec'+_0x2ffda8(_0x3138e2._0x2895c6,_0x3138e2._0x3f7bc5)]||!_0x4961c1[_0x19a1de(-_0x3138e2._0x30e58c,-0x83)])return null;const _0x1e02d1={'serverUrl':_0x4961c1[_0x19a1de(_0x3138e2._0x5578a0,0x287)+'l'],'gatewayId':_0x4961c1[_0x19a1de(_0x3138e2._0xe61514,-_0x3138e2._0x51da2a)+'d'],'relaySecret':_0x4961c1[_0x2ffda8(0x6a4,0x6b4)+_0x2ffda8(_0x3138e2._0x145473,0x74c)],'relayUrl':_0x4961c1[_0x19a1de(0x30,-0x83)],'instanceId':_0x4961c1[_0x2ffda8(_0x3138e2._0x502daa,_0x3138e2._0x4b7d16)+'Id']?.[_0x19a1de(_0x3138e2._0x3be723,_0x3138e2._0x1ad556)]()||_0x9d445e[_0x2ffda8(0x97d,_0x3138e2._0x12d28c)](createInstanceId),'displayName':_0x4961c1[_0x19a1de(-_0x3138e2._0x1c6a4a,-0x2f)+_0x19a1de(0x3cf,0x311)]??null,'createdAt':_0x4961c1['createdA'+'t']??new Date()['toISOStr'+_0x2ffda8(0x9b3,_0x3138e2._0x207c99)](),'updatedAt':_0x4961c1[_0x2ffda8(0x610,0x55f)+'t']??new Date()[_0x2ffda8(0xa17,0x974)+_0x19a1de(0x48a,0x378)]()};return _0x9d445e[_0x2ffda8(0x89b,0x673)](_0x4961c1[_0x19a1de(0x91,0x1a8)+'Id'],_0x1e02d1[_0x2ffda8(0x7e3,_0x3138e2._0x1b1420)+'Id'])&&_0x9d445e[_0x19a1de(_0x3138e2._0x3efd83,0x78)](writePairingConfig,_0x1e02d1),_0x1e02d1;}catch{return null;}}function writePairingConfig(_0x2ab2b9){const _0x41b611={_0xe04901:0x2a1,_0xa9a48c:0x316,_0x140953:0x205},_0xda8e42={_0x130515:0xd6},_0x33416f={_0xa6db2:0x2df};function _0x5c0a20(_0x424a83,_0x406bff){return _0x4985a8(_0x406bff- -_0x33416f._0xa6db2,_0x424a83);}const _0x160e4e={};_0x160e4e['recursiv'+'e']=!![],mkdirSync(CONFIG_DIR,_0x160e4e);function _0x27dbf5(_0x5c56f7,_0x407cc6){return _0x4985a8(_0x407cc6- -_0xda8e42._0x130515,_0x5c56f7);}writeFileSync(CONFIG_PATH,JSON[_0x5c0a20(0x466,_0x41b611._0xe04901)+'y'](_0x2ab2b9,null,0x2)+'\x0a',_0x5c0a20(_0x41b611._0xa9a48c,_0x41b611._0x140953));}function deletePairingConfig(){const _0x45dc71={_0x59de6b:0x92c,_0x59bf7b:0x872},_0x32696c={_0x32ed86:0x9f},_0x37c933={'FJYIr':function(_0x5d9c7e,_0x40eb5e,_0x24cc93){return _0x5d9c7e(_0x40eb5e,_0x24cc93);}};function _0x1cd3f4(_0x47ac89,_0x54c24b){return _0x4985a8(_0x47ac89-_0x32696c._0x32ed86,_0x54c24b);}if(!existsSync(CONFIG_PATH))return;const _0x36a9cc={};_0x36a9cc['force']=!![],_0x37c933[_0x1cd3f4(_0x45dc71._0x59de6b,_0x45dc71._0x59bf7b)](rmSync,CONFIG_PATH,_0x36a9cc);}function getDefaultBridgeDisplayName(){const _0x44b0e8={_0x4989a2:0x85c,_0x5930f0:0x4ca,_0x48049e:0x736,_0x4666b7:0x5ef,_0x21c4d4:0x6be,_0x52f151:0xc3,_0x2c7d4e:0x3a,_0x11213b:0xeb,_0x4a3b21:0x615,_0x3c31a7:0x70d},_0x597877={_0x3079bb:0x4dd},_0xad8660={'EEBFb':function(_0x66af4d){return _0x66af4d();},'kzLXP':'Clawket\x20'+_0x37bbe8(0x77b,_0x44b0e8._0x4989a2)};function _0x1f055a(_0x2677ef,_0x5ea116){return _0x285196(_0x5ea116- -_0x597877._0x3079bb,_0x2677ef);}const _0x75d556=_0xad8660[_0x37bbe8(_0x44b0e8._0x5930f0,0x53f)](readOpenClawDefaultAgentName);if(_0x75d556)return _0x75d556;try{const _0x43387c=userInfo()[_0x37bbe8(0x6b0,_0x44b0e8._0x48049e)]['trim']();if(_0x43387c)return _0x43387c;}catch{}const _0x3634f3=(process.env.LOGNAME??process.env.USER??process.env.USERNAME??'')[_0x37bbe8(_0x44b0e8._0x4666b7,_0x44b0e8._0x21c4d4)]();if(_0x3634f3)return _0x3634f3;function _0x37bbe8(_0x1d414f,_0xfd3de2){return _0x285196(_0x1d414f-0x27,_0xfd3de2);}return _0xad8660[_0x1f055a(-_0x44b0e8._0x52f151,-_0x44b0e8._0x2c7d4e)](hostname)[_0x1f055a(0x1b9,_0x44b0e8._0x11213b)]()||_0xad8660[_0x37bbe8(_0x44b0e8._0x4a3b21,_0x44b0e8._0x3c31a7)];}function pickOpenClawDefaultAgentName(_0x9df644){const _0x210e9f={_0x5426ff:0x5cf,_0x5615cb:0x5e7,_0x1e2c56:0x701},_0x1fcc36={_0x40d8a4:0x53};if(!_0x9df644||typeof _0x9df644!==_0x5d13a6(_0x210e9f._0x5426ff,_0x210e9f._0x5615cb))return null;const _0x2fba09=_0x9df644['agents'];function _0x34512d(_0x3b0d99,_0x2e0b7d){return _0x4985a8(_0x3b0d99-0xb2,_0x2e0b7d);}const _0xf23708=Array[_0x34512d(0x6a4,0x849)](_0x2fba09?.[_0x5d13a6(_0x210e9f._0x1e2c56,0x5c0)])?_0x2fba09['list']:[],_0xb776f2=_0xf23708['find'](_0x3ea002=>isDefaultAgent(_0x3ea002))??_0xf23708[_0x5d13a6(0x8a4,0x7d8)](_0x590eef=>hasAgentId(_0x590eef,'main'))??_0xf23708[0x0];function _0x5d13a6(_0x515669,_0x175c9b){return _0x4985a8(_0x515669-_0x1fcc36._0x40d8a4,_0x175c9b);}return readAgentName(_0xb776f2);}function createInstanceId(){const _0x4db4a3={_0x4160e2:0x143,_0x5e0959:0x4d},_0x5c19de={_0x3c43f4:0x456};function _0x48452b(_0x203e72,_0xcd74e8){return _0x285196(_0x203e72- -_0x5c19de._0x3c43f4,_0xcd74e8);}const _0x140a31=sanitizeId(hostname()||'host');return'inst-'+_0x140a31+'-'+randomUUID()[_0x48452b(_0x4db4a3._0x4160e2,-_0x4db4a3._0x5e0959)](0x0,0xa);}function sanitizeId(_0x19b1ae){const _0x290f45={_0x28d044:0x5c8,_0x41525c:0x560,_0x14d03f:0x5cf,_0x401b21:0x640,_0x3690f0:0x5fa,_0x5a3cd2:0x57e,_0x5c5303:0x7ef,_0x11d752:0x5e8},_0x2378f2={_0x55d314:0x242};function _0x43dfd7(_0x5ce101,_0x39bb65){return _0x285196(_0x39bb65- -_0x2378f2._0x55d314,_0x5ce101);}function _0x4528a3(_0x5864b4,_0x148fa9){return _0x285196(_0x5864b4-0xbb,_0x148fa9);}return _0x19b1ae[_0x4528a3(0x683,_0x290f45._0x28d044)]()[_0x43dfd7(_0x290f45._0x41525c,_0x290f45._0x14d03f)+_0x43dfd7(0x322,0x49e)]()[_0x43dfd7(_0x290f45._0x401b21,_0x290f45._0x3690f0)](/[^a-z0-9._-]+/g,'-')[_0x43dfd7(_0x290f45._0x5a3cd2,_0x290f45._0x3690f0)](/^-+|-+$/g,'')||_0x43dfd7(_0x290f45._0x5c5303,_0x290f45._0x11d752);}function readOpenClawDefaultAgentName(){const _0x291b4b={_0x5c58f1:0xbe},_0x4e2fc0={'jTSXs':function(_0x5a4d9b,_0x1e5376){return _0x5a4d9b(_0x1e5376);}};function _0x4c3a2c(_0x4990a9,_0x1755bf){return _0x4985a8(_0x1755bf- -0x443,_0x4990a9);}function _0x1bf0b5(_0x583b74,_0x548118){return _0x4985a8(_0x583b74-_0x291b4b._0x5c58f1,_0x548118);}const _0x7c9015=resolveOpenClawConfigPath();if(!_0x7c9015||!_0x4e2fc0['jTSXs'](existsSync,_0x7c9015))return null;try{const _0x12982c=JSON[_0x1bf0b5(0x83a,0x974)](readFileSync(_0x7c9015,_0x1bf0b5(0x5a2,0x621)));return pickOpenClawDefaultAgentName(_0x12982c);}catch{return null;}}function resolveOpenClawConfigPath(){const _0x309268={_0x4d2981:0x7a7,_0x1a178e:0x38,_0x3f1e3a:0xbe,_0x1bf527:0x13f,_0xa11306:0xa5,_0x1a4727:0x466,_0x2eb727:0x38b,_0x26fb8d:0x79f,_0x2ec900:0x6bf,_0x576f5b:0x466,_0x4553c2:0x61a,_0x2afa16:0x5fa},_0x36127c={_0x6b70bb:0x51c,_0x4c5e58:0x8c6},_0x15de52={_0x4fe44b:0xad},_0x2d73b1={_0x47da0e:0x332},_0xa2a392={_0x413dc5:0x4b0},_0x45cbe4={_0x3169ec:0x29},_0x2f803b={'HJlze':function(_0x3b196c){return _0x3b196c();},'xtnVc':'openclaw'+_0x56a3fb(0x55,0x108)};function _0x12cc28(_0x40a12e,_0x377dd3){return _0x285196(_0x40a12e-_0x45cbe4._0x3169ec,_0x377dd3);}const _0x5ca02f=new Set();function _0x56a3fb(_0x43172f,_0xcb2484){return _0x285196(_0x43172f- -_0xa2a392._0x413dc5,_0xcb2484);}const _0xaa37aa=[_0x2f803b['HJlze'](homedir),_0x12cc28(0x70c,_0x309268._0x4d2981)][_0x56a3fb(_0x309268._0x1a178e,_0x309268._0x3f1e3a)](_0x7ee652=>_0x7ee652[_0x56a3fb(0x118,0x33a)]())['filter'](Boolean)[_0x56a3fb(_0x309268._0x1bf527,-_0x309268._0xa11306)](_0x48c8f4=>{if(_0x5ca02f[_0x5bfdde(0x67c,_0x36127c._0x6b70bb)](_0x48c8f4))return![];function _0x2ea11f(_0x5062a1,_0x1fde78){return _0x12cc28(_0x5062a1- -_0x2d73b1._0x47da0e,_0x1fde78);}_0x5ca02f[_0x5bfdde(_0x36127c._0x4c5e58,0x769)](_0x48c8f4);function _0x5bfdde(_0x2fdb94,_0x5d9496){return _0x12cc28(_0x5d9496-_0x15de52._0x4fe44b,_0x2fdb94);}return!![];});for(const _0xbafd18 of _0xaa37aa){const _0x586314=join(_0xbafd18,_0x12cc28(_0x309268._0x1a4727,_0x309268._0x2eb727)+'w',_0x12cc28(_0x309268._0x26fb8d,_0x309268._0x2ec900)+_0x56a3fb(0x55,-0x1b4));if(existsSync(_0x586314))return _0x586314;}return _0xaa37aa[0x0]?join(_0xaa37aa[0x0],_0x12cc28(_0x309268._0x576f5b,0x55c)+'w',_0x2f803b[_0x12cc28(_0x309268._0x4553c2,_0x309268._0x2afa16)]):null;}function isDefaultAgent(_0x559a0b){const _0x33b29d={_0x16dfca:0x63a,_0x505ee9:0x5e4};function _0x527ae8(_0x1b05e2,_0x1a5963){return _0x285196(_0x1a5963- -0x77,_0x1b05e2);}function _0x9ac0f3(_0x5aa2ef,_0x3c0775){return _0x285196(_0x5aa2ef-0x14b,_0x3c0775);}return Boolean(_0x559a0b&&typeof _0x559a0b===_0x9ac0f3(_0x33b29d._0x16dfca,_0x33b29d._0x505ee9)&&_0x559a0b[_0x527ae8(0x435,0x498)]===!![]);}function hasAgentId(_0x49f07d,_0x36c8cd){const _0x11db46={_0x49cf54:0x328,_0x473c8d:0x208},_0x190696={_0x37a544:0x217},_0xa5b3de={_0x2c5fa1:0x49f};function _0x2a32f5(_0x2480df,_0x3ce359){return _0x285196(_0x2480df- -_0xa5b3de._0x2c5fa1,_0x3ce359);}function _0x47a484(_0x58b339,_0x1ff063){return _0x285196(_0x58b339- -_0x190696._0x37a544,_0x1ff063);}const _0x2e658d={};_0x2e658d[_0x47a484(0x5b0,0x4d4)]=function(_0x51cb30,_0x15f7b8){return _0x51cb30===_0x15f7b8;};const _0x2b205f=_0x2e658d;return Boolean(_0x49f07d&&_0x2b205f[_0x2a32f5(_0x11db46._0x49cf54,0x2e2)](typeof _0x49f07d,_0x2a32f5(0x50,_0x11db46._0x473c8d))&&typeof _0x49f07d['id']===_0x2a32f5(-0x5d,-0xbc)&&_0x49f07d['id'][_0x47a484(0x3b1,0x3b1)]()===_0x36c8cd);}function readAgentName(_0x9282fd){const _0xeb7993={_0x50625e:0x62b,_0x3a489d:0x717,_0x5de2da:0x63f,_0x56907a:0x626,_0xd1f491:0x67c,_0x4a2e04:0x542,_0x45d7ac:0x6bd,_0x397fbf:0x95f,_0x2fd79d:0x6c8,_0x2891a0:0x836},_0x2eac07={_0x16b2fa:0x62a},_0x41d2a5={};_0x41d2a5[_0x25c490(_0xeb7993._0x50625e,_0xeb7993._0x3a489d)]=_0x3ccd6b(0x140,-0xae),_0x41d2a5[_0x3ccd6b(0x57,0x18a)]=function(_0x549f9e,_0x2db9a7){return _0x549f9e||_0x2db9a7;};function _0x25c490(_0x50a89a,_0x3c263a){return _0x4985a8(_0x50a89a-0x73,_0x3c263a);}const _0x21ab34=_0x41d2a5;if(!_0x9282fd||typeof _0x9282fd!==_0x21ab34[_0x25c490(0x62b,_0xeb7993._0x5de2da)])return null;const _0x2a06b4=_0x9282fd,_0x3a4ead=typeof _0x2a06b4[_0x25c490(_0xeb7993._0x56907a,_0xeb7993._0xd1f491)]?.['name']===_0x25c490(_0xeb7993._0x4a2e04,0x45a)?_0x2a06b4[_0x25c490(0x626,_0xeb7993._0x45d7ac)]['name']['trim']():'';if(_0x3a4ead)return _0x3a4ead;const _0x2ae9ee=typeof _0x2a06b4[_0x25c490(0x969,0xb3a)]==='string'?_0x2a06b4[_0x25c490(0x969,_0xeb7993._0x397fbf)][_0x25c490(_0xeb7993._0x2fd79d,_0xeb7993._0x2891a0)]():'';function _0x3ccd6b(_0x4ca8e6,_0x18918d){return _0x4985a8(_0x18918d- -_0x2eac07._0x16b2fa,_0x4ca8e6);}return _0x21ab34['FuNMW'](_0x2ae9ee,null);}function buildPairingQrPayload(_0x4f57da){const _0x44aea7={_0x22804c:0x280,_0x1a1b3a:0x7d9,_0x54343b:0x6d2,_0x4b3763:0x29f,_0x3e1013:0x633,_0x3ec7f8:0x5eb,_0x5eef58:0x7be,_0x29cd1a:0x5b9,_0x69f7d2:0x48d,_0x423a79:0x5eb,_0x302c7d:0x3e1,_0x3ec697:0x4d1},_0x581592={};_0x581592['v']=0x2;function _0x55468b(_0x1d03e0,_0x14eb87){return _0x4985a8(_0x14eb87- -0x9c,_0x1d03e0);}_0x581592['k']='cp';function _0xc892f0(_0x1a5b14,_0x166776){return _0x4985a8(_0x1a5b14- -0x6a,_0x166776);}_0x581592['s']=_0x4f57da[_0x55468b(_0x44aea7._0x22804c,0x426)],_0x581592['g']=_0x4f57da['gatewayI'+'d'],_0x581592['a']=_0x4f57da['accessCo'+'de'];const _0x1b98d8=_0x581592;return _0x4f57da['displayN'+_0xc892f0(_0x44aea7._0x1a1b3a,_0x44aea7._0x54343b)]?.['trim']()&&(_0x1b98d8['n']=_0x4f57da[_0x55468b(_0x44aea7._0x4b3763,0x467)+_0xc892f0(_0x44aea7._0x1a1b3a,_0x44aea7._0x3e1013)][_0xc892f0(_0x44aea7._0x3ec7f8,0x63b)]()),_0x4f57da[_0xc892f0(0x678,0x811)]?.[_0x55468b(_0x44aea7._0x5eef58,_0x44aea7._0x29cd1a)]()&&(_0x1b98d8['t']=_0x4f57da[_0x55468b(_0x44aea7._0x69f7d2,0x646)][_0xc892f0(_0x44aea7._0x423a79,0x459)]()),_0x4f57da[_0x55468b(0x4af,0x4d1)]?.[_0x55468b(0x7ec,_0x44aea7._0x29cd1a)]()&&(_0x1b98d8['p']=_0x4f57da[_0x55468b(_0x44aea7._0x302c7d,_0x44aea7._0x3ec697)][_0x55468b(0x60d,0x5b9)]()),JSON['stringif'+'y'](_0x1b98d8);}function buildGatewayQrPayload(_0x5d43b6){const _0x37cf13={_0x10daac:0x711,_0xc219fa:0x7aa,_0x378f5:0x5b3,_0x2cc9de:0x651,_0x22deef:0x35e,_0x1bc875:0x4f1,_0x33e8df:0x3cc,_0x27d379:0x31d,_0x39d961:0x1e4},_0x478dd1={'lpzuP':function(_0x3808da,_0x37ae9e){return _0x3808da(_0x37ae9e);},'GoKPD':function(_0xc3f19a,_0x2672d8){return _0xc3f19a+_0x2672d8;}},_0x125201=_0x478dd1[_0x3784e5(0x5f3,0x3b9)](normalizeGatewayQrUrl,_0x5d43b6['gatewayU'+'rl']);function _0x3784e5(_0x49da9f,_0x4bab9d){return _0x4985a8(_0x4bab9d- -0x289,_0x49da9f);}const _0x462c54={'url':_0x125201['url'],'host':_0x125201[_0x3784e5(0x6aa,0x62e)],'port':_0x125201['port'],'tls':_0x125201[_0x3cc127(0x6e8,_0x37cf13._0x10daac)],'mode':_0x3cc127(_0x37cf13._0xc219fa,0x5ab),'expiresAt':_0x5d43b6[_0x3784e5(_0x37cf13._0x378f5,0x57d)+'t']??_0x478dd1[_0x3cc127(0x24a,0x351)](Date[_0x3cc127(_0x37cf13._0x2cc9de,0x446)](),0xa*0x3c*0x3e8),'qrVersion':0x2};_0x5d43b6[_0x3784e5(_0x37cf13._0x22deef,0x459)]?.[_0x3784e5(0x578,0x3cc)]()&&(_0x462c54['token']=_0x5d43b6['token']['trim']());function _0x3cc127(_0x5358c5,_0x48f029){return _0x4985a8(_0x48f029- -0x17d,_0x5358c5);}return _0x5d43b6[_0x3784e5(_0x37cf13._0x1bc875,0x2e4)]?.[_0x3784e5(0x429,_0x37cf13._0x33e8df)]()&&(_0x462c54[_0x3784e5(_0x37cf13._0x27d379,0x2e4)]=_0x5d43b6[_0x3cc127(_0x37cf13._0x39d961,0x3f0)]['trim']()),JSON[_0x3784e5(0x19b,0x2f7)+'y'](_0x462c54);}function normalizeGatewayQrUrl(_0x407ec0){const _0x8b5449={_0x5247a3:0x13c,_0xbd04be:0x1c7,_0x202997:0x325,_0x446f0b:0x136,_0xbd7f66:0x3d3,_0x420c19:0x3a1,_0x23fb87:0x230,_0x57fb67:0x35a,_0x2dc985:0xce,_0x7863d:0x2a3,_0x20d2cb:0x52,_0x5ab4b9:0x117,_0x4fc0e3:0x27f,_0x1e58f6:0x387,_0x21cab2:0x237},_0x3cfd08={'lmnyu':function(_0x1fd6a8,_0x22c98b){return _0x1fd6a8===_0x22c98b;},'lfFun':function(_0x4e1104,_0xa57794){return _0x4e1104(_0xa57794);}},_0x557997=new URL(_0x407ec0[_0x45677f(0x86,0x12d)]()),_0x5ed5cd=_0x557997[_0xf401d3(_0x8b5449._0x5247a3,_0x8b5449._0xbd04be)]===_0x45677f(0x175,-0xbd)||_0x3cfd08[_0xf401d3(_0x8b5449._0x202997,_0x8b5449._0x446f0b)](_0x557997[_0x45677f(-0x1e,0x216)],_0xf401d3(_0x8b5449._0xbd7f66,_0x8b5449._0x420c19)),_0x49cb2e=_0x5ed5cd?_0xf401d3(_0x8b5449._0x23fb87,_0x8b5449._0x57fb67):_0xf401d3(0xcb,_0x8b5449._0x2dc985),_0x24b1d4=_0x557997[_0xf401d3(_0x8b5449._0x7863d,0x20f)],_0xc94663=_0x557997[_0x45677f(_0x8b5449._0x20d2cb,_0x8b5449._0x5ab4b9)]?_0x3cfd08[_0x45677f(_0x8b5449._0x4fc0e3,0x32a)](Number,_0x557997[_0xf401d3(0xd,0x237)]):_0x5ed5cd?0x1bb:0x50,_0x232756=!_0x557997['pathname']||_0x557997['pathname']===''?'/':_0x557997['pathname'],_0x55dbb1={};_0x55dbb1[_0xf401d3(_0x8b5449._0x1e58f6,0x3cc)]=_0x49cb2e+'//'+_0x24b1d4+':'+_0xc94663+_0x232756,_0x55dbb1['host']=_0x24b1d4,_0x55dbb1[_0xf401d3(0x27f,_0x8b5449._0x21cab2)]=_0xc94663;function _0x45677f(_0x5cedbf,_0x34c54a){return _0x4985a8(_0x5cedbf- -0x5cf,_0x34c54a);}_0x55dbb1['path']=_0x232756;function _0xf401d3(_0x24418e,_0x4f278e){return _0x4985a8(_0x4f278e- -0x3ea,_0x24418e);}return _0x55dbb1['tls']=_0x5ed5cd,_0x55dbb1;}var DEFAULT_REGISTRY_BASE='https://'+_0x285196(0x7a2,0x694)+'.clawket'+_0x4985a8(0x87c,0x94a),DEFAULT_REGISTRY_FALLBACK_BASE=_0x285196(0x70c,0x66e)+_0x285196(0x5fd,0x45e)+_0x285196(0x7a2,0x5c0)+'.clawket'+_0x285196(0x697,0x5d6)+_0x4985a8(0x4f8,0x67a);async function pairGateway(_0xcc2142){const _0x3d310e={_0x338652:0x5,_0x191d74:0x822,_0x32821b:0x29c,_0x1aec2e:0x52f,_0x4f5aff:0x162,_0x5f55a3:0x9b,_0x3f8e0c:0x29d,_0x5a7172:0x4ca,_0x5113b7:0x5dd,_0x57b19c:0x547,_0x1e864f:0x300,_0xad2a40:0x624,_0x36c93c:0x1fa,_0x4e8410:0x6c8,_0x30d79c:0x2ca,_0x25d7c4:0x42c,_0x56351e:0x36f,_0x3adf2b:0x238,_0x1dd273:0x4b5,_0x50fbe7:0x2fe,_0x1e1236:0x2f8,_0x3db3d2:0x4c,_0x35d5ed:0x553,_0x5908d8:0x41b,_0x336c9d:0x34c,_0x552d00:0x6b0,_0x4c8e95:0x509,_0xbeafe5:0x319,_0x19f132:0x1f8,_0x36b1c3:0x26d,_0x2debba:0x47e,_0x4bbbb4:0x15f,_0x3e77a7:0x79,_0x284832:0x23,_0x1548e5:0x7b,_0x27a399:0x2c5,_0xf98ae4:0x44e,_0x367245:0x669,_0x185e71:0xe,_0x50d233:0x102,_0x702a2e:0x9d,_0x2b81fc:0xcf,_0x1015aa:0x63,_0x265cb0:0x15c,_0x40b893:0x698,_0x3473bd:0x21c,_0x41bca5:0x45d,_0x85b5fb:0x55b,_0x2a35bb:0x1fe,_0x503965:0x260,_0x2cb318:0x23a,_0x467d6b:0x61c,_0x33a831:0x4d1,_0x25d484:0x37d,_0x475658:0x248,_0x1a3091:0x100,_0x45956b:0x7b,_0x43e0e7:0x23,_0x30e7a5:0x296,_0x13cfda:0x3ef},_0x5b9da2={'oCfwR':function(_0x2b0834){return _0x2b0834();},'kdaqR':function(_0x245d2a,_0x40b41a,_0x17b60d){return _0x245d2a(_0x40b41a,_0x17b60d);},'cKXlD':function(_0x22343c,_0x4b85af){return _0x22343c(_0x4b85af);},'ViFpr':'applicat'+_0x3215c1(-0x227,_0x3d310e._0x338652)},_0x24baf8=normalizeHttpBase(_0xcc2142['serverUr'+'l']),_0xf36f7e=_0x5b9da2[_0x12afe3(0x609,_0x3d310e._0x191d74)](readPairingConfig),_0x2d8046=_0x5b9da2[_0x12afe3(0x636,0x5fd)](assessPairingCompatibility,_0xf36f7e,_0x24baf8);if(_0x2d8046===_0x3215c1(_0x3d310e._0x32821b,0x115)+'existing'&&_0xf36f7e){const _0x12f625={};return _0x12f625['serverUr'+'l']=_0xf36f7e[_0x12afe3(0x553,_0x3d310e._0x1aec2e)+'l'],_0x12f625['gatewayI'+'d']=_0xf36f7e[_0x3215c1(_0x3d310e._0x4f5aff,-_0x3d310e._0x5f55a3)+'d'],_0x12f625[_0x3215c1(0x17d,0x1d)+_0x3215c1(-0xf7,0x9d)]=_0xf36f7e[_0x3215c1(0x14e,0x1d)+'ret'],_0x12f625[_0x12afe3(_0x3d310e._0x3f8e0c,_0x3d310e._0x5a7172)+_0x12afe3(_0x3d310e._0x5113b7,0x413)]=_0xcc2142['displayN'+_0x12afe3(0x5dd,_0x3d310e._0x57b19c)],_0x12f625[_0x12afe3(0x33b,_0x3d310e._0x1e864f)+_0x12afe3(_0x3d310e._0xad2a40,0x43d)]=_0xcc2142[_0x3215c1(-_0x3d310e._0x36c93c,0x23)+_0x12afe3(_0x3d310e._0xad2a40,0x481)],_0x12f625['gatewayP'+_0x12afe3(0x687,_0x3d310e._0x4e8410)]=_0xcc2142[_0x12afe3(0x296,_0x3d310e._0x30d79c)+_0x3215c1(_0x3d310e._0x25d7c4,_0x3d310e._0x56351e)],_0x5b9da2[_0x3215c1(_0x3d310e._0x3adf2b,0x11)](refreshAccessCode,_0x12f625);}function _0x12afe3(_0x5ce7ed,_0x16bafe){return _0x4985a8(_0x5ce7ed- -0x266,_0x16bafe);}if(_0x2d8046===_0x12afe3(0x4c7,_0x3d310e._0x1dd273)+_0x12afe3(0x505,_0x3d310e._0x50fbe7))throw new Error(_0x12afe3(_0x3d310e._0x1e1236,0x524)+_0x12afe3(0x45f,0x30d)+'lready\x20p'+_0x3215c1(-_0x3d310e._0x3db3d2,0x41)+'th\x20'+_0xf36f7e?.[_0x12afe3(_0x3d310e._0x35d5ed,_0x3d310e._0x5908d8)+'l']+('.\x20Run\x20\x22c'+_0x3215c1(0x28a,_0x3d310e._0x336c9d)+_0x12afe3(_0x3d310e._0x552d00,_0x3d310e._0x4c8e95)+'fore\x20pai'+'ring\x20wit'+'h\x20a\x20diff'+'erent\x20se'+_0x3215c1(0xc9,0x5b)));const _0x3d225d={};_0x3d225d[_0x12afe3(0x650,0x573)+_0x12afe3(_0x3d310e._0xbeafe5,_0x3d310e._0x19f132)]=_0x3215c1(0x1c8,_0x3d310e._0x36b1c3)+'ion/json',_0x3d225d[_0x3215c1(-0x41,0x1e2)]=_0x5b9da2[_0x12afe3(_0x3d310e._0x2debba,0x25c)];const _0x523235=await postJsonWithCloudflareFallback(_0x24baf8+('/v1/pair'+_0x12afe3(0x54a,0x342)+'r'),{'method':_0x3215c1(-_0x3d310e._0x4bbbb4,-_0x3d310e._0x3e77a7),'headers':_0x3d225d,'body':JSON['stringif'+'y']({'displayName':_0xcc2142[_0x3215c1(_0x3d310e._0x284832,-_0x3d310e._0x1548e5)+_0x3215c1(0x401,_0x3d310e._0x27a399)]?.[_0x12afe3(0x3ef,0x352)]()||null})});if(!_0x523235[_0x12afe3(0x326,_0x3d310e._0xf98ae4)]['ok'])throw await buildPairingRequestError(_0x12afe3(_0x3d310e._0x367245,0x6e6)+'ister',_0x523235);const _0x4bbc32=await _0x523235[_0x3215c1(0x9e,_0x3d310e._0x185e71)]['json'](),_0x379799=new Date()['toISOStr'+_0x12afe3(0x644,0x417)]();function _0x3215c1(_0x4b5d9a,_0x49cc3c){return _0x4985a8(_0x49cc3c- -0x57e,_0x4b5d9a);}const _0x42739d={'serverUrl':_0x24baf8,'gatewayId':_0x4bbc32[_0x3215c1(-_0x3d310e._0x50d233,-0x9b)+'d'],'relaySecret':_0x4bbc32[_0x3215c1(-0x177,0x1d)+_0x3215c1(-0x13a,_0x3d310e._0x702a2e)],'relayUrl':_0x4bbc32[_0x3215c1(-0x9d,-_0x3d310e._0x2b81fc)],'instanceId':_0xf36f7e?.[_0x3215c1(_0x3d310e._0x1015aa,_0x3d310e._0x265cb0)+'Id']??_0x12afe3(0x510,_0x3d310e._0x40b893)+_0x4bbc32[_0x3215c1(-0x260,-0x9b)+'d']['slice'](-0xa),'displayName':_0x4bbc32[_0x3215c1(-0x136,-0x7b)+_0x3215c1(_0x3d310e._0x3473bd,0x2c5)],'createdAt':_0x379799,'updatedAt':_0x379799};return writePairingConfig(_0x42739d),{'config':_0x42739d,'accessCode':_0x4bbc32[_0x12afe3(_0x3d310e._0x41bca5,_0x3d310e._0x85b5fb)+'de'],'accessCodeExpiresAt':_0x4bbc32[_0x3215c1(_0x3d310e._0x2a35bb,0x145)+_0x3215c1(_0x3d310e._0x503965,_0x3d310e._0x2cb318)+_0x12afe3(_0x3d310e._0x467d6b,_0x3d310e._0x33a831)],'action':_0x3215c1(0x1af,_0x3d310e._0x25d484)+'ed','qrPayload':_0x5b9da2['cKXlD'](buildPairingQrPayload,{'server':_0x24baf8,'gatewayId':_0x4bbc32['gatewayI'+'d'],'accessCode':_0x4bbc32[_0x12afe3(_0x3d310e._0x41bca5,_0x3d310e._0x475658)+'de'],'displayName':_0x4bbc32[_0x3215c1(_0x3d310e._0x1a3091,-_0x3d310e._0x45956b)+_0x3215c1(0x40c,0x2c5)],'token':_0xcc2142[_0x3215c1(-0x43,_0x3d310e._0x43e0e7)+_0x12afe3(0x624,0x626)]?.[_0x12afe3(0x3ef,0x21e)]()||null,'password':_0xcc2142[_0x12afe3(_0x3d310e._0x30e7a5,0x1dc)+_0x3215c1(0x41d,0x36f)]?.[_0x12afe3(_0x3d310e._0x13cfda,0x3a6)]()||null})};}async function refreshAccessCode(_0x1220e6){const _0x3e67eb={_0x206610:0x468,_0x364374:0x4aa,_0x4d2576:0x6d4,_0x45ad8e:0xdd,_0x7c6732:0x4ee,_0x5be727:0x71e,_0x40f3ca:0x7a8,_0x32bc7e:0x48a,_0x11648e:0x546,_0x5cd939:0x7b2,_0x355eb2:0x4e3,_0x3ab1e0:0x799,_0x33ca73:0x54a,_0x5d109a:0xe,_0x20a41f:0xd6,_0x2857e9:0x150,_0x19e1da:0x625,_0x5b0556:0x547,_0x3b6e04:0x1d2,_0x4f081f:0x553,_0x502ad3:0x520,_0x4fb68f:0x553,_0x15fac4:0x38,_0x6b0d70:0x62,_0xdba200:0x4aa,_0x50e3c6:0x296,_0x165bcb:0x175,_0x15e781:0x80a,_0x3a1ad9:0x871,_0x47d00e:0x132,_0x59bb3e:0x20a,_0x5c435e:0x55d,_0x367736:0x648,_0x4f4293:0x8aa,_0x448b90:0x68a,_0x171bc9:0x568,_0x13aae8:0x212,_0x5692b8:0x310,_0x1e886f:0x8b4,_0x538da4:0x556},_0xd332a7={_0x59ef7b:0x5eb},_0x1393ee={'kIYjR':function(_0x2bf454,_0x398270){return _0x2bf454(_0x398270);}},_0x3d9c0a=readPairingConfig(),_0x396f47=normalizeHttpBase(_0x1220e6?.['serverUr'+'l']??_0x3d9c0a?.['serverUr'+'l']??''),_0x5f294c=_0x1220e6?.[_0x128a9a(_0x3e67eb._0x206610,_0x3e67eb._0x364374)+'d']??_0x3d9c0a?.[_0x128a9a(_0x3e67eb._0x4d2576,_0x3e67eb._0x364374)+'d']??'';function _0x128a9a(_0xc0cfc5,_0x56cfe6){return _0x285196(_0x56cfe6-0x54,_0xc0cfc5);}const _0x5ba957=_0x1220e6?.['relaySec'+_0x128a9a(0x5e6,0x5e2)]??_0x3d9c0a?.[_0x2de83d(-0x28a,-_0x3e67eb._0x45ad8e)+_0x128a9a(_0x3e67eb._0x7c6732,0x5e2)]??'';if(!_0x396f47||!_0x5f294c||!_0x5ba957)throw new Error('Pairing\x20'+_0x2de83d(-0x153,-0x12d)+_0x128a9a(0x8eb,_0x3e67eb._0x5be727)+_0x128a9a(_0x3e67eb._0x40f3ca,0x647)+'ir\x20first'+'.');const _0x8b088c={};_0x8b088c[_0x2de83d(0xef,0x23e)+_0x128a9a(_0x3e67eb._0x32bc7e,_0x3e67eb._0x11648e)]=_0x128a9a(0x649,_0x3e67eb._0x5cd939)+_0x128a9a(_0x3e67eb._0x355eb2,0x54a),_0x8b088c['accept']=_0x128a9a(_0x3e67eb._0x3ab1e0,0x7b2)+_0x128a9a(0x4fb,_0x3e67eb._0x33ca73);const _0x1bdbab=await postJsonWithCloudflareFallback(_0x396f47+(_0x2de83d(-_0x3e67eb._0x5d109a,0x223)+_0x2de83d(_0x3e67eb._0x20a41f,_0x3e67eb._0x2857e9)+_0x128a9a(0x73a,_0x3e67eb._0x19e1da)),{'method':'POST','headers':_0x8b088c,'body':JSON[_0x128a9a(0x629,_0x3e67eb._0x5b0556)+'y']({'gatewayId':_0x5f294c,'relaySecret':_0x5ba957,'displayName':_0x1220e6?.[_0x2de83d(-_0x3e67eb._0x3b6e04,-0x175)+_0x2de83d(0x2d3,0x1cb)]?.['trim']()||void 0x0})});if(!_0x1bdbab[_0x128a9a(0x546,_0x3e67eb._0x4f081f)]['ok'])throw await buildPairingRequestError(_0x128a9a(0x333,_0x3e67eb._0x502ad3)+_0x2de83d(-0x163,-0x197)+_0x2de83d(0x326,0x136),_0x1bdbab);const _0x2b49ca=await _0x1bdbab[_0x128a9a(0x595,_0x3e67eb._0x4fb68f)]['json'](),_0x26328e={'serverUrl':_0x396f47,'gatewayId':_0x2b49ca['gatewayI'+'d'],'relaySecret':_0x5ba957,'relayUrl':_0x2b49ca[_0x2de83d(-0x150,-0x1c9)],'instanceId':_0x3d9c0a?.[_0x2de83d(_0x3e67eb._0x15fac4,_0x3e67eb._0x6b0d70)+'Id']??'inst-'+_0x2b49ca[_0x128a9a(0x6b7,_0x3e67eb._0xdba200)+'d'][_0x2de83d(-0xb8,-0x52)](-0xa),'displayName':_0x2b49ca[_0x2de83d(-_0x3e67eb._0x50e3c6,-_0x3e67eb._0x165bcb)+_0x128a9a(0x869,_0x3e67eb._0x15e781)],'createdAt':_0x3d9c0a?.['createdA'+'t']??new Date()['toISOStr'+_0x2de83d(0x8f,0x232)](),'updatedAt':new Date()[_0x2de83d(0x70,_0x3e67eb._0x50e3c6)+_0x128a9a(0x951,_0x3e67eb._0x3a1ad9)]()};writePairingConfig(_0x26328e);function _0x2de83d(_0x2c763f,_0x66dbdb){return _0x285196(_0x66dbdb- -_0xd332a7._0x59ef7b,_0x2c763f);}return{'config':_0x26328e,'accessCode':_0x2b49ca[_0x2de83d(-0x163,0x4b)+'de'],'accessCodeExpiresAt':_0x2b49ca[_0x2de83d(_0x3e67eb._0x47d00e,0x4b)+'deExpire'+_0x2de83d(0x34,_0x3e67eb._0x59bb3e)],'action':_0x2de83d(0x1d2,-0x20)+'d','qrPayload':_0x1393ee[_0x128a9a(_0x3e67eb._0x5c435e,_0x3e67eb._0x367736)](buildPairingQrPayload,{'server':_0x396f47,'gatewayId':_0x2b49ca['gatewayI'+'d'],'accessCode':_0x2b49ca[_0x128a9a(_0x3e67eb._0x4f4293,_0x3e67eb._0x448b90)+'de'],'displayName':_0x2b49ca[_0x128a9a(0x392,0x4ca)+'ame'],'token':_0x1220e6?.[_0x128a9a(0x35f,_0x3e67eb._0x171bc9)+_0x2de83d(0x8d,_0x3e67eb._0x13aae8)]?.['trim']()||null,'password':_0x1220e6?.[_0x128a9a(_0x3e67eb._0x5692b8,0x4c3)+_0x128a9a(0xaec,_0x3e67eb._0x1e886f)]?.[_0x128a9a(_0x3e67eb._0x538da4,0x61c)]()||null})};}function normalizeHttpBase(_0x26ea07){const _0x120bd1={_0x29bcc9:0x716,_0x688d4c:0x57f,_0xbcd06:0x737,_0xddb876:0x2ee,_0x5466a7:0x436,_0x2e93ea:0x879,_0xf8998f:0x7e5,_0x144d97:0x623,_0x5aa938:0x23f,_0x22509c:0xf3,_0x1d2bad:0x494,_0x2ab7c4:0x5d5,_0x1b3af1:0x7a1,_0x132647:0x781,_0xf005ca:0x41a,_0x4b07c3:0x435,_0x2ad6b0:0x6c3,_0xa61000:0x3ff,_0x344a73:0x58b,_0x523069:0x689,_0x344321:0x935,_0x3f6ab4:0x60b,_0x4a8d13:0x7f3},_0x545a23=_0x26ea07[_0x1294cb(_0x120bd1._0x29bcc9,_0x120bd1._0x688d4c)]();if(!_0x545a23)return'';if(_0x545a23[_0x1294cb(_0x120bd1._0xbcd06,0x810)+'th'](_0x1294cb(_0x120bd1._0xddb876,_0x120bd1._0x5466a7))||_0x545a23[_0x1294cb(_0x120bd1._0x2e93ea,0x810)+'th']('https://'))return _0x545a23[_0x45f02c(0x5dd,_0x120bd1._0xf8998f)](/\/+$/,'');if(_0x545a23[_0x1294cb(_0x120bd1._0x144d97,0x810)+'th'](_0x45f02c(_0x120bd1._0x5aa938,_0x120bd1._0x22509c)))return('http://'+_0x545a23['slice'](_0x1294cb(_0x120bd1._0x1d2bad,0x455)[_0x1294cb(_0x120bd1._0x2ab7c4,_0x120bd1._0x1b3af1)]))[_0x1294cb(_0x120bd1._0x132647,0x7f3)](/\/+$/,'');function _0x45f02c(_0x288705,_0x1e2fd5){return _0x4985a8(_0x288705- -0x2ec,_0x1e2fd5);}if(_0x545a23['startsWi'+'th'](_0x1294cb(_0x120bd1._0xf005ca,_0x120bd1._0x4b07c3)))return(_0x1294cb(0x58f,_0x120bd1._0x2ad6b0)+_0x545a23['slice'](_0x45f02c(0x21f,_0x120bd1._0xa61000)[_0x45f02c(_0x120bd1._0x344a73,_0x120bd1._0x523069)]))[_0x1294cb(_0x120bd1._0x344321,0x7f3)](/\/+$/,'');function _0x1294cb(_0x15112f,_0x20d9e8){return _0x4985a8(_0x20d9e8- -0xd6,_0x15112f);}return(_0x1294cb(0x506,_0x120bd1._0x2ad6b0)+_0x545a23)[_0x1294cb(_0x120bd1._0x3f6ab4,_0x120bd1._0x4a8d13)](/\/+$/,'');}function assessPairingCompatibility(_0xd8be55,_0x43d2c3){const _0x36e4f3={_0x4e2937:0x5ce,_0x322889:0x3df,_0x4ede84:0x3a4,_0x4c64aa:0x16b,_0x2901ec:0x7b,_0x328408:0x193,_0x941e40:0x1d1,_0x22daaf:0x28b},_0x409aa4={_0x1c5093:0x2ef},_0x27f996={_0x25d365:0x59a};function _0x17835a(_0x9c32c5,_0x269123){return _0x4985a8(_0x9c32c5- -_0x27f996._0x25d365,_0x269123);}const _0x4a1e22={};_0x4a1e22[_0x56c0ec(_0x36e4f3._0x4e2937,_0x36e4f3._0x322889)]=_0x56c0ec(_0x36e4f3._0x4ede84,_0x36e4f3._0x4c64aa)+_0x17835a(-_0x36e4f3._0x2901ec,-0x1ce);const _0x5b70ec=_0x4a1e22;if(!_0xd8be55)return _0x56c0ec(0x60c,0x48d)+_0x56c0ec(0x22d,0x434);if(_0xd8be55[_0x17835a(0x21f,0x126)+'l']===_0x43d2c3)return _0x5b70ec[_0x17835a(0x323,0x208)];function _0x56c0ec(_0x1e89e9,_0x480288){return _0x4985a8(_0x1e89e9- -_0x409aa4._0x1c5093,_0x480288);}return _0x17835a(_0x36e4f3._0x328408,0x2f6)+_0x17835a(_0x36e4f3._0x941e40,_0x36e4f3._0x22daaf);}async function postJsonWithCloudflareFallback(_0x271027,_0x5abdd0){const _0x5e3ce2={_0x3dc81c:0x52c,_0xc73f4f:0x767,_0x52c8b6:0x574,_0x2b00ae:0x7c1,_0x4a3ad2:0x59d},_0x4aea7f={_0xcabad8:0x14f},_0x317b80=await fetch(_0x271027,_0x5abdd0),_0x27e9ae=resolveCloudflareChallengeFallbackUrl(_0x271027,_0x317b80);if(!_0x27e9ae){const _0x101c1d={};return _0x101c1d[_0xce5b4a(_0x5e3ce2._0x3dc81c,_0x5e3ce2._0xc73f4f)]=_0x317b80,_0x101c1d[_0xce5b4a(_0x5e3ce2._0x52c8b6,0x5e4)+_0xce5b4a(_0x5e3ce2._0x2b00ae,_0x5e3ce2._0x4a3ad2)]=_0x271027,_0x101c1d[_0x3583b9(0x370,0x164)+_0xce5b4a(0x4b7,0x62a)]=null,_0x101c1d;}function _0xce5b4a(_0x5db8c3,_0x343d45){return _0x285196(_0x5db8c3-0x2d,_0x343d45);}function _0x3583b9(_0x886ea7,_0x4bb7a2){return _0x285196(_0x886ea7- -_0x4aea7f._0xcabad8,_0x4bb7a2);}return{'response':await fetch(_0x27e9ae,_0x5abdd0),'attemptedUrl':_0x271027,'fallbackUrl':_0x27e9ae};}async function buildPairingRequestError(_0xbf0ddf,_0x2e30d7){const _0x7cc54d={_0x18c07e:0x2eb,_0x41a42f:0x1de,_0x35d8e5:0x40,_0x5e741a:0x1a9,_0x478841:0x391,_0x48b6f:0x87,_0x4352f3:0x263,_0x166eca:0x365,_0x32bd61:0x470,_0x33f8e9:0xe4,_0x219a9e:0x41,_0x4976da:0x659,_0x47c442:0x50b,_0x5c010e:0x42,_0x74296c:0x1e3,_0x15c607:0x43e,_0x14e88a:0x452,_0x31c5c2:0x347,_0x16ffe4:0x1db,_0x2c7cc1:0x3ea,_0x2e746b:0x3d6,_0x1a7442:0x4f1,_0x3eb6e2:0x4e,_0x1d4fbf:0x3ce,_0x528dce:0x523,_0x2ee864:0x187,_0x12cbe0:0x4fd,_0x52d8e5:0x483,_0x59bfd2:0x67,_0x529bc4:0x484,_0x484901:0x43e,_0x4012b9:0x21e,_0x414a1d:0x11c,_0x2a6fa1:0x22e},_0xf6256={_0x41e7e9:0x36e},_0x2ead45={'cbSBi':function(_0x1e4eae,_0x19f209){return _0x1e4eae(_0x19f209);},'auaSO':function(_0x1026a5,_0x52802f){return _0x1026a5(_0x52802f);}};if(_0x2ead45[_0x2941fa(0x3b7,0x577)](isCloudflareChallengeResponse,_0x2e30d7[_0xe3e474(_0x7cc54d._0x18c07e,0x21e)])){const _0x312afe=new URL(_0x2e30d7[_0xe3e474(0x3c0,_0x7cc54d._0x41a42f)+_0xe3e474(_0x7cc54d._0x35d8e5,_0x7cc54d._0x5e741a)]??_0x2e30d7['attempte'+_0x2941fa(_0x7cc54d._0x478841,0x1e9)])['origin'],_0x1427f8=_0x2e30d7['fallback'+_0x2941fa(_0x7cc54d._0x48b6f,0xe)]?'\x20Automat'+_0x2941fa(_0x7cc54d._0x4352f3,_0x7cc54d._0x166eca)+_0x2941fa(0x38f,_0x7cc54d._0x32bd61)+_0x2e30d7[_0x2941fa(0xbc,-_0x7cc54d._0x33f8e9)+_0x2941fa(0x87,_0x7cc54d._0x219a9e)]+('\x20also\x20hi'+_0xe3e474(_0x7cc54d._0x4976da,_0x7cc54d._0x47c442)+'dflare\x20c'+_0xe3e474(-_0x7cc54d._0x5c010e,_0x7cc54d._0x74296c)+'.'):'';return new Error(_0xbf0ddf+(_0x2941fa(_0x7cc54d._0x15c607,0x4c0)+'(')+_0x2e30d7[_0xe3e474(_0x7cc54d._0x14e88a,0x21e)]['status']+(_0x2941fa(_0x7cc54d._0x31c5c2,_0x7cc54d._0x16ffe4)+'flare\x20ch'+'allenge\x20'+_0x2941fa(_0x7cc54d._0x2c7cc1,0x39e)+_0xe3e474(_0x7cc54d._0x2e746b,0x342)+'stry\x20API'+_0x2941fa(0x46a,_0x7cc54d._0x1a7442))+_0x312afe+'.'+_0x1427f8+(_0x2941fa(0x16c,_0x7cc54d._0x3eb6e2)+_0xe3e474(_0x7cc54d._0x1d4fbf,_0x7cc54d._0x528dce)+_0xe3e474(0x68c,0x595)+_0x2941fa(0x130,_0x7cc54d._0x2ee864)+_0xe3e474(_0x7cc54d._0x12cbe0,_0x7cc54d._0x52d8e5)+_0x2941fa(0x202,0xdf)+_0xe3e474(0x2b9,0x1a4)+_0x2941fa(_0x7cc54d._0x59bfd2,0x20b)+_0xe3e474(0x230,0x2dd)+_0x2941fa(0xaa,-0x14e)+'\x20browser'+_0xe3e474(0x43b,_0x7cc54d._0x529bc4)+'ation.'));}function _0x2941fa(_0x40a8d3,_0x84e8b1){return _0x4985a8(_0x40a8d3- -0x490,_0x84e8b1);}function _0xe3e474(_0x190033,_0x4e7361){return _0x4985a8(_0x4e7361- -_0xf6256._0x41e7e9,_0x190033);}return new Error(_0xbf0ddf+(_0x2941fa(_0x7cc54d._0x484901,0x42d)+'(')+_0x2e30d7['response']['status']+'):\x20'+_0x2ead45[_0x2941fa(0x316,0x447)](summarizeFailedResponse,await _0x2e30d7[_0xe3e474(0x399,_0x7cc54d._0x4012b9)][_0x2941fa(_0x7cc54d._0x414a1d,_0x7cc54d._0x2a6fa1)]()));}function isCloudflareChallengeResponse(_0x5579b6){const _0x33aa84={_0x2a1766:0x539,_0x4255b2:0x543,_0xf038e7:0x8fb,_0x50259f:0x7fc,_0x53de37:0x993,_0x4740ad:0x614,_0x5384dd:0x47a,_0x4b8d54:0x3cc,_0x22feca:0x145,_0x3ac9b5:0x1d,_0x3c3712:0x113},_0x419d39={_0x2e2692:0x28},_0x1004e5={};function _0x2d36ae(_0x4d85e1,_0x11db5a){return _0x4985a8(_0x4d85e1- -0x510,_0x11db5a);}_0x1004e5[_0x2d36ae(0x2c4,0x2d8)]=function(_0x1739bc,_0x97d10d){return _0x1739bc===_0x97d10d;},_0x1004e5[_0x2d36ae(-0x12,-0x176)]=_0x41df87(0x8a7,0x6f4)+_0x41df87(_0x33aa84._0x2a1766,_0x33aa84._0x4255b2);function _0x41df87(_0x4ed797,_0x214b88){return _0x4985a8(_0x4ed797-_0x419d39._0x2e2692,_0x214b88);}_0x1004e5['qBoBK']=_0x41df87(_0x33aa84._0xf038e7,0x93f)+'e';const _0x58eaa5=_0x1004e5;return _0x58eaa5[_0x41df87(_0x33aa84._0x50259f,_0x33aa84._0x53de37)](_0x5579b6['status'],0x193)&&_0x5579b6[_0x41df87(_0x33aa84._0x4740ad,_0x33aa84._0x5384dd)][_0x2d36ae(0x385,0x497)](_0x58eaa5[_0x41df87(0x526,_0x33aa84._0x4b8d54)])?.[_0x2d36ae(_0x33aa84._0x22feca,0x1e4)]()[_0x2d36ae(0x38e,0x301)+_0x41df87(0x795,0x77b)]()===_0x58eaa5[_0x2d36ae(_0x33aa84._0x3ac9b5,_0x33aa84._0x3c3712)];}function resolveCloudflareChallengeFallbackUrl(_0x1a9df9,_0x10cb45){if(!isCloudflareChallengeResponse(_0x10cb45))return null;const _0x3fcad9=new URL(_0x1a9df9);if(_0x3fcad9['origin']!==DEFAULT_REGISTRY_BASE)return null;return''+DEFAULT_REGISTRY_FALLBACK_BASE+_0x3fcad9['pathname']+_0x3fcad9['search'];}function summarizeFailedResponse(_0x315067){const _0x1ecb6b={_0x42c656:0x347,_0x1d5e40:0x4dd,_0x2e46c5:0x307,_0x4d147b:0x4dc,_0x33f68d:0x366},_0x303155={_0x246993:0x1dd},_0x37755a={_0x184a95:0x30e};function _0x264dc3(_0x5efd3b,_0x1b8383){return _0x4985a8(_0x5efd3b- -_0x37755a._0x184a95,_0x1b8383);}const _0x1f8bea=_0x315067[_0x264dc3(0x5bb,0x771)](/\s+/g,'\x20')[_0x264dc3(_0x1ecb6b._0x42c656,_0x1ecb6b._0x1d5e40)]();if(!_0x1f8bea)return _0x264dc3(_0x1ecb6b._0x2e46c5,_0x1ecb6b._0x4d147b)+'sponse\x20b'+'ody';if(_0x1f8bea['length']<=0xf0)return _0x1f8bea;function _0x521c04(_0x1250bb,_0x1de97d){return _0x4985a8(_0x1250bb- -_0x303155._0x246993,_0x1de97d);}return _0x1f8bea['slice'](0x0,0xed)+_0x264dc3(_0x1ecb6b._0x33f68d,0x187);}import{execFileSync,spawn}from'child_process';import{chmodSync,closeSync,existsSync as _0xed7e36,mkdirSync as _0x2eeddd,openSync,readFileSync as _0x18c07f,realpathSync,rmSync as _0x32ecb6,writeFileSync as _0x40e72f}from'fs';import{homedir as _0x34f2e8}from'os';import{dirname,join as _0x2bb140}from'path';var SERVICE_LABEL=_0x4985a8(0x61e,0x58c)+_0x4985a8(0x6b3,0x862)+_0x285196(0x451,0x68b),SYSTEMD_UNIT_NAME=SERVICE_LABEL+'.service',WINDOWS_RUN_KEY=_0x4985a8(0x64d,0x759)+_0x285196(0x740,0x6df),SERVICE_DIR=_0x2bb140(_0x34f2e8(),_0x285196(0x4a9,0x535)),LOG_DIR=_0x2bb140(SERVICE_DIR,'logs'),SERVICE_STATE_PATH=_0x2bb140(SERVICE_DIR,_0x4985a8(0x746,0x6fe)+'ervice.j'+_0x4985a8(0x666,0x562)),SERVICE_LAUNCHER_PATH=_0x2bb140(SERVICE_DIR,_0x285196(0x6b9,0x48d)+_0x4985a8(0x742,0x75d)+_0x285196(0x44e,0x47a)+'sh'),SERVICE_LOG_PATH=_0x2bb140(LOG_DIR,_0x285196(0x573,0x577)+_0x285196(0x84c,0x7a9)),SERVICE_ERROR_LOG_PATH=_0x2bb140(LOG_DIR,'bridge-c'+_0x285196(0x810,0x961)+_0x285196(0x5b8,0x78d)),MACOS_PLIST_PATH=_0x2bb140(_0x34f2e8(),_0x4985a8(0x83f,0x978),'LaunchAg'+'ents',SERVICE_LABEL+_0x285196(0x41e,0x56c)),LINUX_SERVICE_PATH=_0x2bb140(_0x34f2e8(),_0x285196(0x55e,0x66a),'systemd','user',SYSTEMD_UNIT_NAME);function getServiceProgramArgs(_0xdd7637={},_0x3412d6=process['platform']){const _0x18ce5a={_0x29addb:0x37d,_0x30bf94:0x1cd,_0x4cb65f:0x4bd,_0x297310:0x284,_0x128113:0x415,_0x36b2ef:0x411,_0x9d3d4e:0x12,_0x3cd97c:0x19,_0x460a57:0x31b,_0x2fce53:0x108,_0x1c9314:0x5c3,_0x29c263:0x431},_0x386991={'bOpky':function(_0xa62c2f,_0x37299d){return _0xa62c2f(_0x37299d);},'RvhQN':_0x566a2e(_0x18ce5a._0x29addb,_0x18ce5a._0x30bf94)+'o\x20resolv'+'e\x20CLI\x20sc'+_0x566a2e(0x3a3,0x218)+_0x566a2e(_0x18ce5a._0x4cb65f,_0x18ce5a._0x297310)+_0x566a2e(_0x18ce5a._0x128113,_0x18ce5a._0x36b2ef)+'stallati'+_0x391ef1(0x1a8,0x120),'MjakI':'win32','ilQmb':function(_0x4a3d57,_0x39fd13){return _0x4a3d57(_0x39fd13);},'IeEHC':_0x391ef1(-_0x18ce5a._0x9d3d4e,-_0x18ce5a._0x3cd97c)},_0x14373e=_0xdd7637[_0x566a2e(0x297,0x1e0)]?.[_0x566a2e(0x2b5,0x192)]()||process['execPath'],_0x1eb9dd=_0x386991['bOpky'](resolveScriptPath,_0xdd7637[_0x391ef1(0x1b3,0x4c)+'th']);function _0x391ef1(_0x30ea41,_0x1e2f23){return _0x285196(_0x1e2f23- -0x449,_0x30ea41);}if(!_0x1eb9dd)throw new Error(_0x386991[_0x391ef1(0x311,0x398)]);function _0x566a2e(_0x4a5004,_0x464d84){return _0x285196(_0x464d84- -0x436,_0x4a5004);}if(_0x3412d6!==_0x386991['MjakI']){const _0x375620={};_0x375620[_0x566a2e(0xe4,0x1e0)]=_0x14373e,_0x375620['scriptPa'+'th']=_0x1eb9dd,_0x375620[_0x391ef1(_0x18ce5a._0x460a57,0x1e6)]=process.env.PATH??'';const _0x5b4c16=_0x386991[_0x391ef1(_0x18ce5a._0x2fce53,0x1a4)](writeServiceLauncher,_0x375620);return ensureLaunchScriptExecutable(_0x5b4c16,_0x3412d6),[_0x5b4c16];}return[_0x14373e,_0x1eb9dd,_0x386991[_0x391ef1(_0x18ce5a._0x1c9314,_0x18ce5a._0x29c263)],'--servic'+'e'];}function getServiceStatus(){const _0x5285b8={_0x5ab0f4:0x75d,_0x521f5b:0x5a7,_0x8fc6ce:0x582,_0x2b7007:0x45f,_0x3cc66b:0x33c,_0x36c4c1:0x720,_0x2c7643:0x894,_0xef9945:0x358,_0x218bbb:0x3a7,_0xaf2f24:0x666,_0x568fef:0x7a3,_0x54b222:0x17d,_0x57a8c7:0x5b1,_0x472b07:0x7c4,_0x2b6ff0:0x874,_0x3aa246:0x90e,_0x546ef2:0x678,_0x28da79:0x6c1,_0x5d285f:0x5de,_0x3a8b1a:0x7f3,_0x4cbb59:0x619,_0x5a6192:0x6c3,_0x390622:0x14b};function _0x319904(_0x115600,_0x4b1b0d){return _0x4985a8(_0x115600-0xf2,_0x4b1b0d);}const _0x32dac4={'vkRhM':function(_0x43a29d,_0xc97fd8,_0x3b03fe){return _0x43a29d(_0xc97fd8,_0x3b03fe);},'oTDoc':'is-activ'+'e'};ensureServiceDirs();const _0x564b37=readServiceState()?.['pid']??null;function _0x39617d(_0x2d3b6b,_0x22dc5e){return _0x4985a8(_0x2d3b6b- -0x35d,_0x22dc5e);}const _0x5b505b={'installed':![],'running':_0x564b37!=null&&isPidRunning(_0x564b37),'method':detectServiceMethod(),'servicePath':getServicePath(),'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'pid':_0x564b37};_0x5b505b['pid']!=null&&!_0x5b505b['running']&&(clearServiceState(_0x5b505b['pid']),_0x5b505b[_0x39617d(0x50a,0x576)]=null);switch(_0x5b505b[_0x319904(_0x5285b8._0x5ab0f4,_0x5285b8._0x521f5b)]){case _0x39617d(_0x5285b8._0x8fc6ce,0x611)+_0x39617d(_0x5285b8._0x2b7007,_0x5285b8._0x3cc66b):_0x5b505b['installe'+'d']=_0xed7e36(MACOS_PLIST_PATH);_0x5b505b[_0x319904(0x7f6,0x618)+'d']&&(_0x5b505b[_0x319904(_0x5285b8._0x36c4c1,0x5e2)]=commandSucceeds(_0x319904(0x876,_0x5285b8._0x2c7643)+'l',[_0x39617d(0x351,_0x5285b8._0xef9945),SERVICE_LABEL])||_0x5b505b['running']);return _0x5b505b;case'systemd-'+'user':_0x5b505b[_0x319904(0x7f6,0x5f0)+'d']=_0xed7e36(LINUX_SERVICE_PATH);_0x5b505b[_0x39617d(_0x5285b8._0x218bbb,0x519)+'d']&&(_0x5b505b[_0x39617d(0x2d1,0x25d)]=_0x32dac4[_0x319904(_0x5285b8._0xaf2f24,_0x5285b8._0x568fef)](commandSucceeds,'systemct'+'l',[_0x39617d(_0x5285b8._0x54b222,0x1b2),_0x32dac4[_0x319904(_0x5285b8._0x57a8c7,_0x5285b8._0x472b07)],_0x319904(0x952,0x7a8),SYSTEMD_UNIT_NAME])||_0x5b505b['running']);return _0x5b505b;case _0x319904(_0x5285b8._0x2b6ff0,_0x5285b8._0x3aa246)+_0x319904(0x61b,_0x5285b8._0x546ef2)+'stry':_0x5b505b[_0x319904(0x7f6,0x85d)+'d']=commandSucceeds(_0x319904(0x7c5,0x637),['query',_0x319904(_0x5285b8._0x28da79,0x6dd)+_0x319904(_0x5285b8._0x5d285f,_0x5285b8._0x3a8b1a)+_0x319904(_0x5285b8._0x4cbb59,_0x5285b8._0x5a6192)+_0x39617d(_0x5285b8._0x390622,-0x6)+_0x39617d(0x5a3,0x3f7)+'ersion\x5cR'+'un','/v',WINDOWS_RUN_KEY]);return _0x5b505b;default:return _0x5b505b;}}function installService(_0x34666a={}){const _0x24e873={_0x43eddc:0x4de,_0x587633:0x37f,_0x43c6d9:0x4db,_0x3aea09:0x98,_0x1b1a1a:0x467,_0xf3682a:0x394,_0x271e12:0x210,_0x14d776:0x1c1,_0xc8deb0:0x3e4,_0x4e8268:0x400,_0x51a9d2:0x55f,_0x20411b:0x321,_0x512fac:0x151,_0x26b90a:0x1c5,_0x5694db:0x309,_0xfd8b1d:0x31a,_0x14ba6b:0x263,_0x5e9d28:0x165,_0x2569cd:0x40f,_0x448637:0x1fb,_0x6c0573:0x36,_0x2d8900:0x1c4,_0x3cd44b:0x47c,_0x35943f:0x28a,_0x9e80e0:0x46,_0x431e94:0x5,_0x22e157:0x114,_0x5d12ff:0x337,_0x412256:0x3ed,_0x2eefcd:0x270,_0x42b84a:0x2fe,_0xbf9416:0x4d3,_0x4d3e96:0x35d,_0x3b7615:0x60f,_0x486040:0x5ec,_0x277c12:0x2bc,_0x42f25f:0x772},_0x437145={_0x4919e6:0x247};function _0x210bdc(_0xf31501,_0x5e2f30){return _0x285196(_0xf31501- -_0x437145._0x4919e6,_0x5e2f30);}const _0x1b06ff={'aWbXi':_0x210bdc(_0x24e873._0x43eddc,_0x24e873._0x587633),'WITMa':function(_0x4192c1,_0x287ee5,_0x34dd1a){return _0x4192c1(_0x287ee5,_0x34dd1a);},'DbmTF':_0x5ca3e0(0x1c5,-0x65)+'l','aIdka':'unload','Qhvof':function(_0x1c3cf6,_0x10d41d,_0x54357f,_0x4675c0){return _0x1c3cf6(_0x10d41d,_0x54357f,_0x4675c0);},'JFWDa':'--user','XvAQo':_0x210bdc(0x2fb,_0x24e873._0x43c6d9)+'tware\x5cMi'+_0x5ca3e0(-_0x24e873._0x3aea09,-0xf4)+_0x5ca3e0(-0x117,-0x208)+_0x210bdc(0x62c,0x750)+'ersion\x5cR'+'un','QPGDE':function(_0x3a6ae5,_0x943472){return _0x3a6ae5(_0x943472);},'nynVl':'ignore'};ensureServiceDirs();const _0x5d70c4=getServiceProgramArgs(_0x34666a);function _0x5ca3e0(_0x46a897,_0x32c1ab){return _0x285196(_0x46a897- -0x532,_0x32c1ab);}switch(process[_0x5ca3e0(0x2aa,0x305)]){case _0x1b06ff[_0x210bdc(_0x24e873._0x1b1a1a,_0x24e873._0xf3682a)]:_0x40e72f(MACOS_PLIST_PATH,buildMacosPlist(_0x5d70c4,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x210bdc(_0x24e873._0x271e12,_0x24e873._0x14d776)),_0x1b06ff[_0x210bdc(0x235,0x42a)](execIgnoreFailure,_0x1b06ff[_0x210bdc(_0x24e873._0xc8deb0,_0x24e873._0x4e8268)],[_0x1b06ff[_0x210bdc(_0x24e873._0x51a9d2,0x70c)],'-w',MACOS_PLIST_PATH]);const _0x1e9dd9={};_0x1e9dd9[_0x210bdc(_0x24e873._0x20411b,_0x24e873._0x512fac)]=_0x5ca3e0(0x191,0x125),execFileSync(_0x5ca3e0(_0x24e873._0x26b90a,0x4e)+'l',[_0x5ca3e0(0x1aa,_0x24e873._0x5694db),'-w',MACOS_PLIST_PATH],_0x1e9dd9);break;case _0x210bdc(0x2b3,0x299):const _0x40bc1e={};_0x40bc1e[_0x210bdc(_0x24e873._0xfd8b1d,0x1df)+'e']=!![],_0x2eeddd(dirname(LINUX_SERVICE_PATH),_0x40bc1e),_0x40e72f(LINUX_SERVICE_PATH,buildLinuxSystemdUnit(_0x5d70c4,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x5ca3e0(-0xdb,-_0x24e873._0x14ba6b));const _0x9a627a={};_0x9a627a[_0x5ca3e0(0x36,0x271)]='ignore',_0x1b06ff[_0x210bdc(0x295,0x117)](execFileSync,_0x210bdc(0x331,_0x24e873._0x5e9d28)+'l',[_0x5ca3e0(-0xe5,-0xfa),_0x210bdc(_0x24e873._0x2569cd,0x4b4)+_0x5ca3e0(0x39,-_0x24e873._0x448637)],_0x9a627a);const _0x52aa2f={};_0x52aa2f[_0x5ca3e0(_0x24e873._0x6c0573,-_0x24e873._0x2d8900)]=_0x210bdc(_0x24e873._0x3cd44b,_0x24e873._0x35943f),execFileSync(_0x5ca3e0(_0x24e873._0x9e80e0,-_0x24e873._0x431e94)+'l',[_0x1b06ff[_0x5ca3e0(-0xd7,0x48)],_0x5ca3e0(0x19d,0x3d2),_0x210bdc(0x417,0x1f9),SYSTEMD_UNIT_NAME],_0x52aa2f);break;case'win32':stopRunningProcess(),execFileSync(_0x5ca3e0(_0x24e873._0x22e157,_0x24e873._0x5d12ff),[_0x210bdc(0x44c,_0x24e873._0x412256),_0x1b06ff[_0x210bdc(0x313,_0x24e873._0x2eefcd)],'/v',WINDOWS_RUN_KEY,'/t',_0x210bdc(_0x24e873._0x42b84a,_0x24e873._0xbf9416),'/d',_0x1b06ff['QPGDE'](buildWindowsRunCommand,_0x5d70c4),'/f'],{'stdio':_0x1b06ff['nynVl']}),_0x1b06ff['QPGDE'](startDetachedWindowsService,_0x5d70c4);break;default:throw new Error(_0x210bdc(0x202,0x389)+'ted\x20plat'+_0x5ca3e0(0x26e,_0x24e873._0x4d3e96)+_0x210bdc(0x4b4,0x33f)+_0x210bdc(_0x24e873._0x3b7615,_0x24e873._0x486040)+_0x5ca3e0(0x32b,_0x24e873._0x277c12)+_0x210bdc(0x51c,0x4d5)+process[_0x210bdc(0x595,_0x24e873._0x42f25f)]);}return getServiceStatus();}function restartService(_0x2ed555={}){const _0x4fc8ad={_0x508d6a:0x4aa,_0x531931:0x3f0,_0x2ecdb8:0x243,_0x356569:0x39d,_0x467313:0x23f,_0x5a3496:0x122,_0x23f108:0x502,_0x5dbc7d:0x38e,_0x16ac36:0x535,_0x493bbe:0x39f,_0x7315f9:0x191,_0x10d952:0xc7,_0x46e97c:0x1c5,_0x1fc966:0x15b,_0x443b42:0x38e,_0x25cba2:0x7d,_0x237a1e:0x118,_0x25ac9d:0x348,_0x36bd21:0x13a,_0xbf7e5e:0x213,_0x51d3b7:0xe6,_0x1b1efb:0xf5,_0x253c76:0x103,_0x5b6880:0x4a6,_0x5492ea:0xc3,_0x482013:0x51b,_0x230026:0x28e,_0x46db2b:0xb2,_0x3ba1fb:0x114,_0x20bbbd:0x415,_0x2d286f:0x1d4,_0x46d1a1:0x3c6,_0x308282:0x404,_0x5d41e1:0x2a8,_0x1f1bb2:0x535},_0x46860d={_0x3db1aa:0x335};function _0x50b334(_0x128ef3,_0x1b9b10){return _0x285196(_0x1b9b10- -_0x46860d._0x3db1aa,_0x128ef3);}const _0x465f5e={'rLmkp':_0x50b334(_0x4fc8ad._0x508d6a,_0x4fc8ad._0x531931),'dRaqb':function(_0x2bb1b4,_0x526a89,_0x1e8deb,_0x467c4c){return _0x2bb1b4(_0x526a89,_0x1e8deb,_0x467c4c);},'FfTsW':function(_0x462c1f,_0x23a564,_0x4ae003,_0x32bb79){return _0x462c1f(_0x23a564,_0x4ae003,_0x32bb79);},'hxbzF':_0x50b334(0x445,_0x4fc8ad._0x2ecdb8)+'l','HvWcs':_0x50b334(_0x4fc8ad._0x356569,0x38e),'cYDAt':'add','rlpXn':function(_0x531f34,_0x478680){return _0x531f34(_0x478680);}};ensureServiceDirs();const _0x2dc868=getServiceProgramArgs(_0x2ed555);function _0x55d42f(_0x45b4d1,_0x58759b){return _0x285196(_0x58759b- -0x358,_0x45b4d1);}switch(process[_0x55d42f(0x5d2,0x484)]){case _0x465f5e[_0x55d42f(0x55b,0x419)]:if(!_0xed7e36(MACOS_PLIST_PATH))return installService(_0x2ed555);_0x40e72f(MACOS_PLIST_PATH,_0x465f5e[_0x55d42f(_0x4fc8ad._0x467313,0x382)](buildMacosPlist,_0x2dc868,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x50b334(-0x45,_0x4fc8ad._0x5a3496)),execIgnoreFailure('launchct'+'l',['unload','-w',MACOS_PLIST_PATH]);const _0x47dae2={};_0x47dae2[_0x50b334(0x41f,0x233)]=_0x50b334(_0x4fc8ad._0x23f108,_0x4fc8ad._0x5dbc7d),execFileSync(_0x55d42f(_0x4fc8ad._0x16ac36,_0x4fc8ad._0x493bbe)+'l',[_0x55d42f(_0x4fc8ad._0x7315f9,0x384),'-w',MACOS_PLIST_PATH],_0x47dae2);break;case _0x50b334(_0x4fc8ad._0x10d952,_0x4fc8ad._0x46e97c):if(!_0xed7e36(LINUX_SERVICE_PATH))return installService(_0x2ed555);const _0x17fc79={};_0x17fc79['recursiv'+'e']=!![],_0x2eeddd(dirname(LINUX_SERVICE_PATH),_0x17fc79),_0x40e72f(LINUX_SERVICE_PATH,buildLinuxSystemdUnit(_0x2dc868,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x50b334(_0x4fc8ad._0x1fc966,0x122));const _0x538ba7={};_0x538ba7[_0x55d42f(0x195,0x210)]=_0x50b334(0x53e,_0x4fc8ad._0x443b42),_0x465f5e['FfTsW'](execFileSync,_0x465f5e[_0x50b334(0x38c,0x1a0)],[_0x50b334(_0x4fc8ad._0x25cba2,_0x4fc8ad._0x237a1e),_0x55d42f(_0x4fc8ad._0x25ac9d,0x2fe)+_0x55d42f(_0x4fc8ad._0x36bd21,_0x4fc8ad._0xbf7e5e)],_0x538ba7);const _0x28d4fd={};_0x28d4fd['stdio']=_0x465f5e['HvWcs'],execFileSync(_0x55d42f(0x168,0x220)+'l',[_0x55d42f(_0x4fc8ad._0x51d3b7,_0x4fc8ad._0x1b1efb),_0x50b334(_0x4fc8ad._0x253c76,0x306),SYSTEMD_UNIT_NAME],_0x28d4fd);break;case _0x50b334(_0x4fc8ad._0x5b6880,0x4de):stopRunningProcess(),execFileSync('reg',[_0x465f5e['cYDAt'],_0x50b334(0x31c,0x20d)+'tware\x5cMi'+'crosoft\x5c'+_0x55d42f(-0x7f,_0x4fc8ad._0x5492ea)+_0x55d42f(0x54c,_0x4fc8ad._0x482013)+'ersion\x5cR'+'un','/v',WINDOWS_RUN_KEY,'/t',_0x55d42f(_0x4fc8ad._0x230026,0x1ed),'/d',_0x465f5e[_0x50b334(-0xc,0x20b)](buildWindowsRunCommand,_0x2dc868),'/f'],{'stdio':_0x465f5e['HvWcs']}),startDetachedWindowsService(_0x2dc868);break;default:throw new Error(_0x50b334(_0x4fc8ad._0x46db2b,_0x4fc8ad._0x3ba1fb)+_0x55d42f(_0x4fc8ad._0x20bbbd,0x2dd)+'form\x20for'+_0x50b334(_0x4fc8ad._0x2d286f,_0x4fc8ad._0x46d1a1)+_0x55d42f(_0x4fc8ad._0x308282,_0x4fc8ad._0x5d41e1)+_0x50b334(0x60d,_0x4fc8ad._0x1f1bb2)+process['platform']);}return getServiceStatus();}function uninstallService(){const _0x49236d={_0x55de55:0x2a,_0x417190:0x57b,_0x117d5b:0x373,_0x2c472e:0x246,_0x219315:0xce,_0xacc103:0x225,_0x5d208f:0x68c,_0xd68a86:0x7a8,_0x380123:0x181,_0x4605df:0x64,_0x2fca8b:0x2a9,_0x14d3f2:0x249,_0x22d176:0x67a,_0x20d4d3:0x7d7,_0x333ea8:0x532,_0x13590f:0x50,_0x561665:0x1bb,_0x3d60bf:0x91,_0x2ff254:0x1a3,_0x4e152c:0x1eb,_0x294a47:0x17,_0x5b3a5f:0x271,_0xb6d647:0x73,_0x4810ef:0x5b1};function _0x539a8c(_0x597e55,_0x46d2ac){return _0x4985a8(_0x46d2ac- -0x53e,_0x597e55);}const _0x1b25fe={'DsWrR':function(_0x158140,_0x14f762,_0xe3919d){return _0x158140(_0x14f762,_0xe3919d);},'UbCLB':_0x539a8c(-_0x49236d._0x55de55,0xc7)+'l'};stopRunningProcess();function _0x1807c8(_0x387f2e,_0x2ca8da){return _0x4985a8(_0x387f2e- -0x237,_0x2ca8da);}switch(process['platform']){case _0x1807c8(_0x49236d._0x417190,0x56b):_0x1b25fe[_0x539a8c(0x379,_0x49236d._0x117d5b)](execIgnoreFailure,_0x539a8c(0xe5,_0x49236d._0x2c472e)+'l',[_0x539a8c(_0x49236d._0x219315,_0x49236d._0xacc103),'-w',MACOS_PLIST_PATH]),rmIfExists(MACOS_PLIST_PATH);break;case'linux':_0xed7e36(LINUX_SERVICE_PATH)&&(execIgnoreFailure(_0x1b25fe[_0x1807c8(_0x49236d._0x5d208f,_0x49236d._0xd68a86)],[_0x539a8c(-_0x49236d._0x380123,-_0x49236d._0x4605df),_0x539a8c(_0x49236d._0x2fca8b,_0x49236d._0x14d3f2),_0x1807c8(0x4b4,0x4b2),SYSTEMD_UNIT_NAME]),rmIfExists(LINUX_SERVICE_PATH),execIgnoreFailure('systemct'+'l',['--user','daemon-r'+_0x539a8c(-0x28,0xba)]));break;case _0x1807c8(0x669,0x519):_0x1b25fe[_0x1807c8(_0x49236d._0x22d176,_0x49236d._0x20d4d3)](execIgnoreFailure,_0x1807c8(0x49c,_0x49236d._0x333ea8),[_0x539a8c(-_0x49236d._0x13590f,_0x49236d._0x561665),_0x539a8c(0x1c1,_0x49236d._0x3d60bf)+_0x1807c8(0x2b5,_0x49236d._0x2ff254)+_0x539a8c(_0x49236d._0x4e152c,-_0x49236d._0x294a47)+_0x1807c8(_0x49236d._0x5b3a5f,_0x49236d._0xb6d647)+_0x1807c8(0x6c9,_0x49236d._0x4810ef)+_0x1807c8(0x34d,0x151)+'un','/v',WINDOWS_RUN_KEY,'/f']);break;default:break;}return clearServiceState(),getServiceStatus();}function stopService(){const _0x3593d8={_0x1610a0:0x858,_0x47bc44:0x83b,_0xbc7929:0x53c,_0x1d6c65:0x51d,_0x1daeaf:0x411,_0xee5d65:0x9e8,_0x57188d:0x7d7},_0x53178d={'mlnNT':_0x17eb1e(0x750,0x6d0)+'l','swswi':function(_0x41cb5f){return _0x41cb5f();}};stopRunningProcess();function _0x1c72ab(_0x1b6fe2,_0x1fa923){return _0x4985a8(_0x1fa923- -0xc9,_0x1b6fe2);}switch(process[_0x1c72ab(_0x3593d8._0x1610a0,0x7a0)]){case _0x17eb1e(0x77e,_0x3593d8._0x47bc44):_0xed7e36(MACOS_PLIST_PATH)&&execIgnoreFailure(_0x53178d['mlnNT'],['unload',MACOS_PLIST_PATH]);break;case'linux':_0xed7e36(LINUX_SERVICE_PATH)&&execIgnoreFailure(_0x1c72ab(0x769,_0x3593d8._0xbc7929)+'l',[_0x1c72ab(_0x3593d8._0x1d6c65,_0x3593d8._0x1daeaf),'stop',SYSTEMD_UNIT_NAME]);break;case _0x1c72ab(_0x3593d8._0xee5d65,_0x3593d8._0x57188d):break;default:break;}function _0x17eb1e(_0xb703ea,_0x1b5591){return _0x4985a8(_0xb703ea- -0x34,_0x1b5591);}return _0x53178d['swswi'](clearServiceState),getServiceStatus();}function writeServiceState(_0x434c37=process['pid']){const _0x4606b4={_0x5e770f:0x243},_0x5b393c={_0x1f59dc:0x49e};function _0x3eeea3(_0x4ff3c5,_0x33dd08){return _0x285196(_0x33dd08- -0x4be,_0x4ff3c5);}function _0x44e731(_0x208eee,_0x4a09c2){return _0x285196(_0x208eee- -_0x5b393c._0x1f59dc,_0x4a09c2);}ensureServiceDirs();const _0x1f4442={'pid':_0x434c37,'startedAt':new Date()['toISOStr'+_0x44e731(0x37f,0x55b)]()};_0x40e72f(SERVICE_STATE_PATH,JSON[_0x44e731(0x55,_0x4606b4._0x5e770f)+'y'](_0x1f4442,null,0x2)+'\x0a','utf8');}function clearServiceState(_0x1d3c98){const _0x5e7b9d={_0x6402e0:0x54e,_0x45f932:0x768,_0x164673:0x54f,_0x15befb:0x741,_0x19c3a9:0x35},_0x533b2d={_0x4153ea:0x99};function _0x4d7a02(_0x3791d1,_0x424871){return _0x285196(_0x424871- -_0x533b2d._0x4153ea,_0x3791d1);}const _0x1d36f3={'yFzUT':function(_0x28291e,_0x5a4cf8){return _0x28291e!==_0x5a4cf8;},'zviri':function(_0x35ca34,_0x10061c){return _0x35ca34(_0x10061c);}};function _0x498182(_0x4fed64,_0x8def27){return _0x285196(_0x4fed64- -0x2de,_0x8def27);}if(!_0xed7e36(SERVICE_STATE_PATH))return;if(_0x1d3c98!=null){const _0x28894f=readServiceState();if(_0x28894f&&_0x1d36f3[_0x498182(_0x5e7b9d._0x6402e0,_0x5e7b9d._0x45f932)](_0x28894f[_0x4d7a02(_0x5e7b9d._0x164673,_0x5e7b9d._0x15befb)],_0x1d3c98))return;}_0x1d36f3[_0x498182(0x19f,-_0x5e7b9d._0x19c3a9)](rmIfExists,SERVICE_STATE_PATH);}function getServicePaths(){const _0x4630ad={_0x431884:0x2aa,_0x34de58:0x32f};function _0x3c6fac(_0x6f7594,_0x14949b){return _0x285196(_0x14949b- -0x2e1,_0x6f7594);}const _0x31f130={'iJwwt':function(_0x4bd9c2){return _0x4bd9c2();}};return{'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'servicePath':_0x31f130[_0x3c6fac(_0x4630ad._0x431884,_0x4630ad._0x34de58)](getServicePath)};}function buildMacosPlist(_0x554ecf,_0x319f96,_0x5e271e){const _0x1c7a53={_0x6c34b4:0x173,_0x3d50ae:0x390,_0x40e4bf:0x335,_0x769ce4:0x203,_0x48a1ea:0x3ed,_0x3608d5:0x42c,_0x36e4ce:0x202,_0x394846:0x6b9,_0x4c9e7f:0x4a3,_0x16744f:0x380,_0x56f08f:0x512,_0x1bc373:0x5b7,_0xd94563:0x76d,_0x3c2825:0x3e2,_0x2867bf:0x10f,_0x105510:0x294,_0x743988:0xf1,_0x106bbc:0x319,_0x2f2144:0x314,_0xc76e06:0x9d,_0x42c105:0x1ce,_0x533ca4:0xa3,_0x121b58:0x13c,_0x39ef57:0x374,_0x132e0a:0x49c,_0x150989:0x474,_0x41b26d:0x158,_0x25484f:0x376,_0x5a10ad:0x3b1,_0x3ce750:0x42c,_0xd76985:0x1e8,_0x71b050:0x6d2,_0x3d96fa:0x54d,_0x34e658:0x2f6,_0x5e8740:0x3b5,_0x1dc246:0x57e},_0xf804fa={_0x4bfe08:0x402},_0x1155f3={_0x3fd7b1:0x212};function _0xfc5d5c(_0xcf615d,_0x3d9c32){return _0x4985a8(_0xcf615d- -_0x1155f3._0x3fd7b1,_0x3d9c32);}function _0x427788(_0x555390,_0x3bc95b){return _0x4985a8(_0x3bc95b- -_0xf804fa._0x4bfe08,_0x555390);}const _0x2ba480=_0x554ecf[_0x427788(-0xa6,_0x1c7a53._0x6c34b4)](_0x426d76=>'\x20\x20\x20\x20<str'+_0xfc5d5c(0x435,0x3b4)+escapeXml(_0x426d76)+(_0xfc5d5c(0x314,0x3e1)+'>'))['join']('\x0a');return _0x427788(0x24e,0x3eb)+'rsion=\x221'+'.0\x22\x20enco'+'ding=\x22UT'+'F-8\x22?>\x0a<'+'!DOCTYPE'+_0x427788(0xd0,0x1ed)+_0xfc5d5c(_0x1c7a53._0x3d50ae,_0x1c7a53._0x40e4bf)+_0xfc5d5c(0x4c2,0x5af)+'/DTD\x20PLI'+_0x427788(_0x1c7a53._0x769ce4,_0x1c7a53._0x48a1ea)+_0xfc5d5c(0x4ab,_0x1c7a53._0x3608d5)+_0x427788(0x43a,_0x1c7a53._0x36e4ce)+_0x427788(_0x1c7a53._0x394846,_0x1c7a53._0x4c9e7f)+_0x427788(_0x1c7a53._0x16744f,_0x1c7a53._0x56f08f)+'ropertyL'+_0xfc5d5c(_0x1c7a53._0x1bc373,_0x1c7a53._0xd94563)+'dtd\x22>\x0a<p'+_0xfc5d5c(0x2a2,_0x1c7a53._0x3c2825)+_0x427788(0x390,0x2a9)+_0x427788(_0x1c7a53._0x2867bf,_0x1c7a53._0x105510)+'t>\x0a\x20\x20<ke'+_0xfc5d5c(0x3c8,0x229)+_0x427788(0x2f3,0x230)+_0x427788(_0x1c7a53._0x743988,_0x1c7a53._0x106bbc)+SERVICE_LABEL+(_0xfc5d5c(_0x1c7a53._0x2f2144,0x3f5)+_0x427788(_0x1c7a53._0xc76e06,_0x1c7a53._0x42c105)+'>Program'+_0x427788(-_0x1c7a53._0x533ca4,_0x1c7a53._0x121b58)+'s</key>\x0a'+_0x427788(_0x1c7a53._0x39ef57,0x323)+'>\x0a')+_0x2ba480+('\x0a\x20\x20</arr'+_0xfc5d5c(0x65e,_0x1c7a53._0x132e0a)+_0xfc5d5c(_0x1c7a53._0x150989,0x3be)+_0x427788(0x374,_0x1c7a53._0x41b26d)+_0xfc5d5c(_0x1c7a53._0x25484f,0x55f)+_0xfc5d5c(0x5e7,_0x1c7a53._0x5a10ad)+_0x427788(0x64c,_0x1c7a53._0x3ce750)+'Alive</k'+'ey>\x0a\x20\x20<t'+'rue/>\x0a\x20\x20'+_0x427788(_0x1c7a53._0xc76e06,_0x1c7a53._0xd76985)+_0xfc5d5c(0x6f3,0x508)+'Path</ke'+'y>\x0a\x20\x20<st'+_0xfc5d5c(_0x1c7a53._0x71b050,_0x1c7a53._0x3d96fa))+escapeXml(_0x319f96)+(_0xfc5d5c(0x314,0x244)+_0xfc5d5c(0x3be,_0x1c7a53._0x34e658)+_0x427788(0x489,0x266)+_0x427788(_0x1c7a53._0x5e8740,0x399)+_0x427788(0x48c,0x4e6)+'\x0a\x20\x20<stri'+'ng>')+escapeXml(_0x5e271e)+('</string'+_0xfc5d5c(0x4fc,_0x1c7a53._0x1dc246)+'>\x0a</plis'+'t>\x0a');}function buildLinuxSystemdUnit(_0x424440,_0xf7bb,_0x10a1cd){const _0x309f61={_0xf27ad:0x5d4,_0x51b68d:0x46f,_0x4dcde5:0x443,_0x2e8c81:0x6f0,_0x4a3262:0x641,_0x47da2c:0x72d,_0xd3e239:0x2ed,_0x58511b:0x5db,_0x181818:0x48e,_0x4669eb:0x33e,_0x4ca597:0x33f,_0x263f1d:0x530,_0x2da26b:0x2cf,_0x2a7471:0x302,_0x3c646f:0x7d4,_0x3a65e2:0x267,_0x2cb350:0x552,_0x446d57:0x36a,_0x4da1f2:0x184,_0x1e094d:0x707,_0x52a84b:0x4df,_0x4c2951:0x3c9},_0x4c19dd={_0x105d56:0x0},_0x575571={_0x514629:0x20b},_0x153585=_0x424440[_0x116bdf(0x4e8,0x721)](escapeSystemdArg)[_0x116bdf(0x7bf,_0x309f61._0xf27ad)]('\x20');function _0x2fb55a(_0x271849,_0x548f12){return _0x285196(_0x548f12- -_0x575571._0x514629,_0x271849);}function _0x116bdf(_0x49f53e,_0x3f7c23){return _0x285196(_0x49f53e-_0x4c19dd._0x105d56,_0x3f7c23);}return _0x2fb55a(0x7d4,0x602)+_0x2fb55a(_0x309f61._0x51b68d,0x400)+_0x2fb55a(0x3fa,0x579)+_0x116bdf(0x631,_0x309f61._0x4dcde5)+_0x116bdf(0x6a2,_0x309f61._0x2e8c81)+_0x116bdf(_0x309f61._0x4a3262,_0x309f61._0x47da2c)+_0x2fb55a(0x4df,_0x309f61._0xd3e239)+'ne.targe'+_0x2fb55a(0x2f3,0x2d8)+_0x2fb55a(0x358,0x276)+_0x116bdf(0x60d,_0x309f61._0x58511b)+_0x2fb55a(_0x309f61._0x181818,_0x309f61._0x4669eb)+_0x2fb55a(_0x309f61._0x4ca597,0x261)+'\x0aType=si'+_0x116bdf(_0x309f61._0x263f1d,0x740)+_0x2fb55a(0x20d,_0x309f61._0x2da26b)+_0x153585+(_0x2fb55a(_0x309f61._0x2a7471,0x333)+'=always\x0a'+'RestartS'+_0x116bdf(_0x309f61._0x3c646f,0x809)+_0x2fb55a(0x74,_0x309f61._0x3a65e2)+_0x2fb55a(0x4ee,_0x309f61._0x2cb350))+escapeSystemdArg(SERVICE_DIR)+(_0x2fb55a(0x436,0x2ad)+_0x2fb55a(_0x309f61._0x446d57,0x46e)+'append:')+_0xf7bb+(_0x2fb55a(_0x309f61._0x4da1f2,0x2ad)+_0x116bdf(0x582,0x565)+_0x2fb55a(0x4ba,0x581))+_0x10a1cd+(_0x116bdf(_0x309f61._0x1e094d,_0x309f61._0x52a84b)+_0x116bdf(0x817,0x7ed)+_0x2fb55a(0x187,0x31d)+_0x2fb55a(0x4ac,_0x309f61._0x4c2951)+_0x2fb55a(0x695,0x617));}function getServicePath(){const _0x453e8a={_0x1d2b66:0x8,_0x128660:0x25c,_0x17dcdc:0x205,_0x334136:0x16a,_0xfea209:0x1d8,_0x4cc9f5:0x1fc,_0x321fcf:0x75,_0x259912:0x1f3,_0x5f3b8f:0x53b,_0x45e870:0x54b},_0x3a0438={_0x219166:0x60e},_0x1816a0={_0x4477e4:0x29e};function _0x2fcc80(_0x4a2311,_0x367667){return _0x285196(_0x367667- -_0x1816a0._0x4477e4,_0x4a2311);}function _0x3aa405(_0x5c38ee,_0x470aa1){return _0x285196(_0x470aa1- -_0x3a0438._0x219166,_0x5c38ee);}switch(process[_0x3aa405(-_0x453e8a._0x1d2b66,0x1ce)]){case _0x2fcc80(0x37f,0x487):return MACOS_PLIST_PATH;case _0x2fcc80(0x3c3,_0x453e8a._0x128660):return LINUX_SERVICE_PATH;case _0x3aa405(0x1e3,_0x453e8a._0x17dcdc):return _0x2fcc80(0x494,0x2a4)+_0x2fcc80(_0x453e8a._0x334136,0x1c1)+_0x2fcc80(_0x453e8a._0xfea209,_0x453e8a._0x4cc9f5)+_0x3aa405(-_0x453e8a._0x321fcf,-_0x453e8a._0x259912)+_0x2fcc80(_0x453e8a._0x5f3b8f,0x5d5)+_0x3aa405(-0x29e,-0x117)+'un\x5cClawk'+'etBridge'+_0x2fcc80(_0x453e8a._0x45e870,0x3e6);default:return'';}}function detectServiceMethod(){const _0x11a617={_0x22b83b:0x660,_0x25b2db:0x5c8,_0x1c7f23:0x63b,_0x89588a:0x68b,_0x26ebde:0x7c6,_0x32606d:0x626,_0x35d7f5:0x9f,_0x2cbb7d:0xc7,_0x571b5d:0x3c6,_0x364598:0xf3,_0x3fb007:0x1d2,_0x294e50:0xe4,_0x51e71d:0x8e4,_0x13e7be:0x76a,_0x5ba7b2:0x3fb,_0x1736cf:0x2af,_0xbf2f49:0x1b6,_0x1e9b84:0x212},_0x2d2f6f={_0x2fa8aa:0x4a3},_0x57b091={_0x54abc4:0x44},_0xb083ce={};_0xb083ce[_0x117b07(0x3b9,0x1d2)]=_0x202a1d(0x923,0x869)+_0x117b07(0x149,0x319),_0xb083ce['rcfkK']=_0x202a1d(_0x11a617._0x22b83b,_0x11a617._0x25b2db)+'user',_0xb083ce[_0x202a1d(_0x11a617._0x1c7f23,_0x11a617._0x89588a)]=_0x202a1d(_0x11a617._0x26ebde,0x6d1)+_0x202a1d(0x56d,_0x11a617._0x32606d)+_0x117b07(-_0x11a617._0x35d7f5,_0x11a617._0x2cbb7d);const _0x23024d=_0xb083ce;function _0x202a1d(_0x38f1ca,_0x278d3b){return _0x4985a8(_0x38f1ca-_0x57b091._0x54abc4,_0x278d3b);}function _0x117b07(_0x4f7a20,_0x52d132){return _0x4985a8(_0x52d132- -_0x2d2f6f._0x2fa8aa,_0x4f7a20);}switch(process[_0x117b07(0x53a,_0x11a617._0x571b5d)]){case'darwin':return _0x23024d[_0x117b07(_0x11a617._0x364598,_0x11a617._0x3fb007)];case _0x117b07(0x258,_0x11a617._0x294e50):return _0x23024d[_0x117b07(0x8d,0x1a6)];case _0x202a1d(_0x11a617._0x51e71d,_0x11a617._0x13e7be):return _0x23024d[_0x202a1d(0x63b,0x67c)];default:return _0x117b07(_0x11a617._0x5ba7b2,_0x11a617._0x1736cf)+_0x117b07(_0x11a617._0xbf2f49,_0x11a617._0x1e9b84);}}function readServiceState(){const _0x564785={_0x3867a3:0x5b2,_0x4213fe:0x28d,_0x170ce1:0x348,_0x18829d:0x19e,_0x168e96:0x8eb,_0x529a76:0x84b,_0x4dd79c:0x902,_0x545221:0x5af,_0x1bf09d:0x92e};function _0x408382(_0x2e5eff,_0x1c3918){return _0x285196(_0x2e5eff-0x111,_0x1c3918);}const _0x4cbe11={};function _0x317f65(_0x28e1f8,_0x11d4c7){return _0x285196(_0x28e1f8- -0x159,_0x11d4c7);}_0x4cbe11[_0x408382(_0x564785._0x3867a3,0x439)]=function(_0x99951c,_0x2bc259){return _0x99951c!==_0x2bc259;},_0x4cbe11['NwtEL']=_0x317f65(0x3bd,_0x564785._0x4213fe);const _0x4885c5=_0x4cbe11;if(!_0xed7e36(SERVICE_STATE_PATH))return null;try{const _0x2c6445=JSON[_0x317f65(0x596,0x672)](_0x18c07f(SERVICE_STATE_PATH,_0x408382(0x568,0x5b7)));if(!_0x2c6445['pid']||_0x4885c5[_0x317f65(_0x564785._0x170ce1,_0x564785._0x18829d)](typeof _0x2c6445[_0x408382(_0x564785._0x168e96,_0x564785._0x529a76)],_0x4885c5[_0x408382(_0x564785._0x4dd79c,0xacc)]))return null;return{'pid':_0x2c6445['pid'],'startedAt':_0x2c6445[_0x408382(0x63a,_0x564785._0x545221)+'t']??new Date(0x0)[_0x317f65(0x728,0x799)+_0x408382(_0x564785._0x1bf09d,0xae9)]()};}catch{return null;}}function stopRunningProcess(){const _0x1eca87={_0x3aaf58:0x749,_0x42f447:0x8ac,_0x17cb27:0x274,_0x39abed:0x14b,_0x490f10:0x375,_0x20ad76:0x479,_0x2fb183:0x335,_0x3878a2:0xaf8,_0x94500e:0x95e,_0x28136d:0x708,_0x36e406:0x795,_0x873d3a:0x216,_0x47287b:0x84c,_0x4ef24f:0x2a8,_0x4b0f0d:0x3f4},_0x115812={_0x234ad5:0x3e6},_0x110db1={_0x1c4f4a:0x184},_0x590e38={'FOqRr':function(_0x39216b){return _0x39216b();},'HHFTf':function(_0x530b37,_0x9f37ee,_0x38cc71){return _0x530b37(_0x9f37ee,_0x38cc71);},'PZALL':function(_0x531aad,_0x518c2f){return _0x531aad===_0x518c2f;},'zCHwy':'kill','lZayB':function(_0x432647,_0x1e149d){return _0x432647(_0x1e149d);},'MLjtl':function(_0x2c44af,_0x557ad7){return _0x2c44af(_0x557ad7);}},_0x17bbf6=_0x590e38[_0x1c969f(_0x1eca87._0x3aaf58,_0x1eca87._0x42f447)](readServiceState);function _0x1c969f(_0x26ffed,_0x268159){return _0x285196(_0x268159-_0x110db1._0x1c4f4a,_0x26ffed);}if(!_0x17bbf6)return;_0x590e38[_0x124ab6(0x206,0x2af)](execIgnoreFailure,_0x590e38['PZALL'](process[_0x124ab6(0x546,0x3f6)],'win32')?_0x124ab6(_0x1eca87._0x17cb27,_0x1eca87._0x39abed):_0x590e38['zCHwy'],process[_0x124ab6(_0x1eca87._0x490f10,0x3f6)]==='win32'?['/PID',_0x590e38[_0x124ab6(_0x1eca87._0x20ad76,_0x1eca87._0x2fb183)](String,_0x17bbf6[_0x1c969f(_0x1eca87._0x3878a2,_0x1eca87._0x94500e)]),'/T','/F']:[_0x1c969f(_0x1eca87._0x28136d,_0x1eca87._0x36e406),String(_0x17bbf6[_0x124ab6(_0x1eca87._0x873d3a,0x3f4)])]);function _0x124ab6(_0x43be93,_0x3cd408){return _0x285196(_0x3cd408- -_0x115812._0x234ad5,_0x43be93);}_0x590e38[_0x1c969f(0x898,_0x1eca87._0x47287b)](clearServiceState,_0x17bbf6[_0x124ab6(_0x1eca87._0x4ef24f,_0x1eca87._0x4b0f0d)]);}function isPidRunning(_0x425021){function _0x459d05(_0xbcc502,_0x53c883){return _0x285196(_0x53c883-0x10e,_0xbcc502);}try{return process[_0x459d05(0x48a,0x6ab)](_0x425021,0x0),!![];}catch{return![];}}function startDetachedWindowsService(_0x191c0b){const _0x1886f3={_0x3687d8:0x67b,_0x59cddb:0x132,_0x5eaf0e:0xd9,_0x15002d:0x3d,_0x19023b:0x140,_0x4507f5:0x33,_0x85a002:0x309},_0x1bbf51={_0x8aa9cf:0x4b5},_0x31c3dc={_0x53d1f2:0xd5},_0x4c4356={'wRlGW':function(_0x34d753,_0x2731b4,_0x4b4d92){return _0x34d753(_0x2731b4,_0x4b4d92);},'EEjki':_0x582910(0x752,_0x1886f3._0x3687d8),'lMczI':function(_0x527a5a,_0x3b229b){return _0x527a5a(_0x3b229b);}},_0x3aacee=_0x4c4356[_0x10708e(-_0x1886f3._0x59cddb,0xd9)](openSync,SERVICE_LOG_PATH,'a'),_0x56ac7e=_0x4c4356[_0x10708e(0x24d,_0x1886f3._0x5eaf0e)](openSync,SERVICE_ERROR_LOG_PATH,'a');function _0x582910(_0x32ee48,_0x5d820e){return _0x4985a8(_0x5d820e- -_0x31c3dc._0x53d1f2,_0x32ee48);}function _0x10708e(_0x50d502,_0x166b20){return _0x4985a8(_0x166b20- -_0x1bbf51._0x8aa9cf,_0x50d502);}try{const [_0x107e11,..._0x2a3f55]=_0x191c0b,_0x236646={};_0x236646[_0x10708e(-_0x1886f3._0x15002d,0x162)]=!![],_0x236646[_0x10708e(0x5d,_0x1886f3._0x19023b)]=[_0x4c4356[_0x10708e(_0x1886f3._0x4507f5,0x243)],_0x3aacee,_0x56ac7e],_0x236646[_0x582910(0x951,0x797)+_0x10708e(0x3e4,_0x1886f3._0x85a002)]=!![];const _0x318091=spawn(_0x107e11,_0x2a3f55,_0x236646);_0x318091[_0x10708e(-0x1b7,0x2)]();}finally{closeSync(_0x3aacee),_0x4c4356['lMczI'](closeSync,_0x56ac7e);}}function resolveScriptPath(_0x3bb077){const _0x46aecd={_0x452212:0x1c4,_0x4092b6:0x2d7},_0x589653={_0x37c4ed:0x491},_0x40c507={_0x4bb643:0x60e};function _0x3dc2af(_0x1d4031,_0x482f57){return _0x4985a8(_0x1d4031- -_0x40c507._0x4bb643,_0x482f57);}const _0x4c78f3=_0x3bb077?.[_0x4cfcc6(_0x46aecd._0x452212,_0x46aecd._0x4092b6)]()||process['argv'][0x1]?.[_0x4cfcc6(0x1c4,-0x3f)]()||'';function _0x4cfcc6(_0x158632,_0x13afe5){return _0x4985a8(_0x158632- -_0x589653._0x37c4ed,_0x13afe5);}if(!_0x4c78f3)return'';try{return realpathSync(_0x4c78f3);}catch{return _0x4c78f3;}}function _0x3a12(){const _0x2d08cf=['Bgf1BMnOy3q','Dgv3yxK','B25Uzwn0u3q','zgLZywjSzq','ienmssbZzxi','y29UzMLNrM8','zhjVChbLzca','Ahr0Chm6','DgfW','yMXLigr1CMK','ignVBM5Ly3q','yxbZAg90','jMfWB3m7','CNzPy2uGDg8','s2rXA2S','ugf0AdOG','cGPBsw5ZDge','igjPBMfYEt0','B21WBgv0zsa','BM90ihbHAxi','C2vYDMLJzvi','Ahr0Chm6lY8','lxnLCNzPy2u','zevYCM9Yuge','ywLYlNjLC28','uMvXDwvZDfi','sK5MAgu','C3rHCNrizwe','zxnLBNq9','Bg9JywW','l251BgWGmJ4','ifbYzxnZiem','u3rYAw5N','Axnoyu4','yxvHu08','y3rPDMf0Aw8','BfPHEui','BwvZC2fNzxm','zerLDMLJzxm','DLfjqLO','Bg9JywXhyxq','A2v0','zxnO','z2uUANnVBG','l3jLz2LZDgu','wwfmCxu','zgfYD2LU','zxDHEq','rNvotvC','rK9XuNi','DxjS','zwvWAw5NigC','zgvfEhbPCMu','C2vYDMvYvxi','CNvUiIbTyw4','DwvZDcbYzxm','zw50','y3LiC3C','AwrL','y2HLzcbTB2q','z2f0zxDHEvm','CgLUzYbNyxq','DgvTChq9','Bwf0y2G','wKjPCxO','mZmYmdKYmfL5uNjOzq','ugPhtwK','ig1PC3nPBMC','l2fJy2vZCY0','Axn0lteUmc4','tIbjucbHzgq','BgfZDfjLBge','ls1Uyw1L','CMLKz2vdBgK','idXWyxrOpL0','tMfTztOG','tg9NoIa','CgvUzgLUz1a','rxjYB3iGtg8','BgLLBNrezw0','txbjsfy','rxbzA3G','lw5HBwuGpgq','ktOGq2XVDwq','zgv2AwnLtMe','BM5Ly3rLzca','suq6ia','Aw5ZDgfSBa','tMHZD1a','zgv2AwnLswq','ig5HBwu9','ls1MB3jJzq','yxrLD2f5t3a','qNjPzgDL','uMvSyxLszwm','DMfSDwvZ','B2nRzxq','ugf0Aa','qK95yxO','CxjqyxLSB2e','DgfPBhmSig8','sMHxAuO','y3rVCNK9','yxbWBgLJyxq','Dg9eyxrHvvi','pd94BwWGDMu','BM5Ly3qGyxq','u1qGms4WlY8','BJOG','B3iGDxnLige','ihzLCMLMAwm','DxbKyxrLu24','jNf1B3q7','sgHpz0i','BMvJDgLUzW','C2vUzeDHDgu','CxvLC3rDihi','DwuVpGOGidW','zNPjvgu','Dgv3yxLdB24','sfn2zvO','yw5KC2HHA2u','CKXTA3a','zxDHEsa','y2XPzw50rgu','vgfKtuS','zNjVBq','B3bLBMnSyxC','yxrLD2f5igm','Bg9JywWTCge','zxHWAxjLC0e','BNbRC2u','Euj2CKe','zgvUDgL0Esa','zcbMB3iGzNi','wKPQueq','yxLnzxnZywC','Dw5RBM93BG','zwXHEq','y29UC3rYDwm','yxv0AcbWyxq','B249q2XHD2S','Bwf4ugf5Bg8','uKnAzM0','z2vUzxjHDgu','DcbHCha6cG','ignVBMzPzZO','sg1hENe','rLjqugy','ChbLBMq6','ywn0Aw9U','y29UDhjVBf8','yxv0Ae1Vzgu','C2vYDMLJzu0','AwXpANa','ywnRihrVia','sNnIC1G','zfvYBa','mNWZFdu','DMLJzsbMB3i','zYbWyxrOoIa','yMDMt0K','r211u3G','zwnHDxnLigW','DgvZigfYzsa','pL0GwY0Tzxi','zwnOBYaIBM8','ifSTlwPZB24','ugntzei','zM9YBsbMB3i','A2v5pKTLzxa','CMvNAxn0CNK','rM91BMq','Aw5JBhvKzxm','BwLU','yuLKA2e','u2vYDMLJztO','B2jZzxj2zum','jJe7ihrOzw4','ihvUy2HHBMC','q1PwwuS','B3iGmwqU','zxHWBgLJAxq','AguGq2XHD2S','nZu0mK5rwNnYrW','C2v0','zcbXDwv1zwq','tgLICMfYEq','Dxr1BG','B1zIrMO','CujOuLu','yw1L','CMuGCMvJEwm','zwzuDhu','ihPLCM87igS','y2jtqMK','AgvHCNrIzwe','v2nnvui','AgfUzgXLuMu','igvYCM9Ypq','AM9PBG','CLf1zxvLr2e','BgzgDw4','BgX3','Dw5PBNn0ywW','zMLUza','zcbHigXVy2e','C2vYDMLJzq','C2vWyLm','zw50CMLLCW','zxzLCNK','DhvU','CMvHy2HHyMW','BMqGC2vYDMK','CgPgANa','EsbruIbPBIa','C3rwqKC','DhLyDfi','A2DPAMq','BgfZDfnLzw4','ls1XDwLLDa','zwm9mGPxB3i','AxnhyxrLD2e','l3DZ','zYbruI4','AwXRAeW','zgvMyxvSDeC','CgLK','zg9JA2vY','CgXHDgzVCM0','zxjYB3i','ls1Syxn0ihy','D2LUzg93C0G','CM9YC10GwY0','uNzOuu4','B0nMD1i','yxK+cIaGpgS','zxqGAw5ZDge','CgfPCMvK','CMvJEwnSzsa','wfDHBNm','uKW6ia','CMvZCY4Guge','BgvUz3rO','qxrnCW','DcbHienSB3u','yMXVy2TLzca','Dd5DifSTlxe','lMfP','yxv0AezPzwW','tND0ruW','y2yTBwL0AwC','z2f0zxDHEsa','id4MmG','C0f0','Aw5KzxHpzG','zt1WyxnZD28','ywrKugvUzgK','ls1SB2nHBa','Bgf5twvZC2e','vg9Rzw5gB3u','y2uGywXYzwe','B2TLBG','tLruEfK','vvjmoIa','rKPzsxi','DgXZ','tK9erv9qqvq','zwq9','CM9TigeGzgK','BNn0ywXSzwq','zxzLBNq','EKPksLm','z2v0','AwyGy29TBwe','uefjuKLor18','icbLEgvJici','iYeVyMLUl3m','w1vUAxrDcKq','l3yXl3bHAxi','A2rHCvi','BgKTzxjYB3i','Dg9mB3DLCKm','y2f0y2G','D2LUmZi','qvripsi','CYbTAxnZAw4','C2vYDMLJzsi','BgXDcLDHBNq','yxbWBguUy28','zxHWB3j0ifa','r2f0zxDHEtO','zgv2AwnLlNa','EufJDgL2Axq','Aw5N','lZeYnY4WlJa','Eevxshu','vgPdAe8','iMnSyxDRzxq','z2v0cG','CMvJDgLVBKW','rhnxCLi','AxmGC2fMzxq','C2vYDMLJzuK','zcbKzwXHEu0','x1rps0vo','y29UDgvUDc0','Ag9ZDa','uMvTB3zLzca','Euz6vvq','AxjPBMCU','ihrVihnWzwm','x1bbu1nxt1i','txHgsNi','ugfPCMLUzYa','Bgf5q29UDhi','BIaIy2XHD2S','D3m6lY8XmJC','C3rHCNrLzca','vwjdtei','ihjLCuLKpq','zgroqKy','B3vUzcbZzxi','q29UzMLNrgK','AwyGwYaTEca','CMvWBgfJzq','Bgf3A2v0ihi','D29YzcbJB24','z2f0zxDHEvu','z1bHAxjszxe','igzHAwXLzca','ugfPCIbYzwC','B25HBgX5ihC','CMvXlq','ygnSyxDRzxq','y2HHBgXLBMC','CNzPy2uGAw4','ihbHAxiIigy','BwvZC2fNzq','FdeZFdb8oxW','Dw5HDMfPBge','BgKUBg9N','DMjVEa','CMvSyxKGzgK','z2f0zxDHEuG','yxnZAwDU','ihrVA2vUoIa','Bgf1BMnOywC','uNvUigbJBge','vxjSpq','DeT1uKO','DMLJzsbPBNm','CMLUzZ4','zM9YD2fYzgu','C3rHCNrZv2K','BM9Uy2vmzw4','DgG8l2TLEt4','zgLUz0DHDgu','DgfSBgf0Aw8','Bg9NCYbBls0','zMXVB3i','yxnZD29Yza','u3rVChbLzca','zxHPDcaXmJC','vvbKExK','y29UzMLN','x0DbvevxqvK','qNjPzgDLigK','C3rHDgu','ywLYic0TzM8','BMfTzq','DgfYDdOG','qMfJA2DYB3u','yuLnA1y','igf0ia','CMvNAxn0zxi','ls1Zzxj2Awm','C2vHCMnOuge','BM9VCa','z25QzNm','q3vYCMvUDfy','AxjZDc4Gq28','yMfZzty0','zMzLCMvUDca','yxrO','BMrHCMrpDxq','vLruuuO','swvfsem','A2v0igfWCdO','zgvJAxnPB24','zxjYB3jmB2C','CMvXDwvZDgu','zcbZAw5Jzum','ieLeoIa','Dg9ju09tDhi','zsbWywLYAw4','z1fzsfO','yw5KihbHC3m','u3rHCNrPBMC','ihnPBMnLq2W','Bs9everZl1a','y29UzMLNoIa','zxnLDciGyMu','CMvSyxKGCMu','EMzqwwy','ifjLC3rHCNq','phvUA25VD24','zM9YD2fYze8','igLUDgvUDgK','v2LUzg93C1W','CIbWyxnZD28','ihjLBgf5pq','lNbSAxn0','seTuuLG','zxnVBhzLza','vMvYC2LVBJO','CMvSyxLvCMW','BKnSyxCGChi','yMLUyxj5','BgKUANnVBG','uKvrvuLsruq','BgLZDcb2zxi','m3WWFdj8nhW','zxDHEvjLywm','Dw5Yzwy','D3m6','kYKRja','sw52ywXPzca','ls1Syxn0','BwfYA1bHAxi','CNvU','zxrOB2q','B1reB2m','ywrKCMvZCW','Dw5K','C2vYDMvY','q3DQC0S','DhjHDgLVBI4','yxbWCM92zva','BMvZidWYmda','zgLZy29UBMu','zxjLCxvPC2K','y2XPzw50q28','lM9Wzw5JBge','y29KzsbBls0','yxrLD2f5twu','icH0B2TLBIa','r29lueq','C3rYAw5N','BenNzgi','CLrtt3i','BwvKAwe','AgfZ','rwj4zxy','iIrot0rfx1a','vw5ZDxbWB3i','zxvLzcbNyxq','y2XPzw50x2q','wMHgqNu','ls11C2vY','yxvUy2HLCI4','zxj2AwnLige','zhKGCNvUBMK','zs5JBgK','ote1mZLcCvjWr0S','zxrO','B2rLihjLzNi','AuDVEvu','z2f0zxDHEuK','DxrMoa','yNiT','C2vYDMLJzva','DgHLienSyxC','sKzxrge','DgvZDa','zM91BMqGDw4','D2XHBG','DhDHCMvCtwK','BgLUzxm','zsbZDgfYDgu','igrLDMLJzuK','wLf4v3a','zxDHEvvYBa','Aw5Nienmssa','AxmGy3vZDg8','mZnyzKDTz1m','zwqUifj1BIa','C2HPzNq','BNqGDgHHDca','lMrLDG','u2vYDMLJzv0','C3rHCNrPBMC','Dg9tDhjPBMC','z2f0zxDHEva','ww91ignHBIa','yKPLAhy','A2LUz0rPCMu','Bg9N','zxf1zxn0swq','C2vHCMnO','zgLZCgXHEu4','m3W0Fdf8mNW','ue9tva','CxiTzMLSzsa','DxbKyxrLzee','AgvSCa','v0Lutwe','ENzPCMK','D3nZoI8V','Ahr0CdOVlW','CNjVCKXVzW','BMv0D29YAY0','ywLYzwqUifi','CMvHzhLtDge','yxrLza','EsbLBMrWB2K','y29UBMvJDgu','zw1WDa','Bw9Kzq','yw5Ktxm9','vxjS','ugfZC3DVCMq','igj1DcbNyxq','igzVCIbNyxq','igTLChq9','lw5LDW','y29UBMvJDc4','lNbUzW','zxHPC3rPBMC','Bg1UExu','C3rPBgWGCNu','C2nYAxb0uge','BKLpqxi','Dg9YycbMB3i','vvj2z2W','pc9ZDhjPBMC','y3jVC29MDfW','CMvQzwn0uge','CNvUlxjLz2K','CMvXDwvZDeK','D3m6lY8','Bg8W','CujVqKS','txDbzeu','zguGAw4GDgG','ruvcrMi','CMWGphDZoI8','u0Lhsu5u','ls1Zzxj2zxi','zMLNDxjLzcW','mtb8nNW0Fde','lMnSyxDRzxq','ihrLEhq9','CgfYyw1Z','B3vUDa','ihjLCxvPCMu','zxjYB3jdB3i','vgHXAeC','D1fKvMe','qxjNDw1LBNq','BMDqywLYuMu','Dgv3yxLnzxm','zZOG','pL0GwY0TBgK','zxDHEs5HDxq','nty1ndb0qvvIuvO','cLn0yw5Kyxi','AwWGz2f0zxC','tvHnDgi','B25tDgf0Dxm','tdOG','AgfUzhnOywS','y29UzMLNig4','zMfSBgjHy2S','mc4WlJaUma','ANH6zMq','AgfIBgu','BLrbreC','AgfSBgvUz2u','EsbPzIb5B3u','lJaUmc4XoJe','tK9ux1bbsvi','qvriiIbDoYa','zxjZ','DM1Uzxq','y29Uy2f0','qwnJzxnZigm','tg9HzdWVA2u','A2v5CW','ls1QC29Uxq','Bg9NCYbMB3u','vgHPCYbICMK','Esb0B2TLBIa','ywLYlMfWChi','AxnJB25Uzwm','AhHIEKy','CgfPCG','C2nVBM5Ly3q','zxf1zxn0CW','vgLYBe4','y1n0yxj0pq','y2uGCMvNAxm','uwH2B2y','C3rYEq','CMvSyxLbDhq','yxKGCMvJB24','CgfZC3DVCMq','zwqU','CI1MAwXLidW','DaPxyw50CZ0','y291BNq','u2vYDMLJzsa','zsbdBgf3A2u','DMTsAe0','BwfW','igHHCYbIB3q','B2nHBcbpCgu','DgvKqxrnCW','ywX1zxmGBgK','sd0I','r2f0zxDHEvi','B2jQzwn0','Df9YzwXHEv8','y2XPzw50swq','DhLWzq','C3rYAw5NAwy','zxrYEvrPBwu','CgfPCIbSB2m','Aw9Ul2PZB24','zxjZAw9Uxfi','B3jRlw9UBgK','lJe6mtG3odK','BgLUDxG','Et4kica8Dhi','zg13BvK','wY0TANnVBL0','zwzYzxnOzwq','CMvZCg9UC2u','z3rO','D1jSr1C','y0TyBeq','yxr0zw1WDd0','svb2na','lMPZB24','D2f5twvZC2e','igj1DcbZDg8','yNjPzgDL','tffdCvy','C3rZ','Eu1Z','Bg9Nugf0Aa','zM9YzsbMBhu','CMvSyxLtzwm','zgvMyxvSDa','Aw5Jzq','B25Uzwn0zwq','y2XVC2u','CxvLC3rjzd0','z2f0zxDHEvq','vujmsumGiI0','BNvTyMvY','ztOG','BuHhrNi','zgv2AwnLrMe','yxrLD2f5igK','uKLqvf9qqvq','CIb1C2uGygm','C2Hes2C','C2nOzwr1Bgu','Dgv4Da','ruv4shy','EsbWywLYAw4','CMvJzw50','mty2nM1lEe1KrW','ChjVDg9JB2W','EwvZ','AwrLBNrPDhK','CMvJB25Uzwm','zwrcEt1Kzwy','C3rHCNrLzee','ihjLyxnVBJ0','zwXYBvy','CLrIDKm','y2uU','igf1DgGGAxm','ihbHAxjGigi','BxbSzqPfEgu','DgfZA2TPBgW','ywLYzwqGD2K','BMv0D29YAYa','rxjYB3iGBg8','CMvSyxLtB2m','BM93','odC4oq','y3rLzcbJB2q','zxvLzcb1BNq','CYb1BNnLDc4','iI4GvxnLihy','ig5VBMnLtgu','C3nHz2vZ','cLjLC3rHCNq','ChbLzc4GuMu','CMXWwg4','oeXzCgrPAW','seTdvvXtB2y','pGOGidXRzxK','y29UBMvJDfi','uKvhx1nA','CMvXDwvZDca','yxr0zw1WDgu','je5prevFuee','yxjNzxqkcLS','rxHWAxjLCZO','B25Uzwn0Aw4','CNzLCI4','Et5mywjLBdW','sw5ZDgfSBgu','ChvZAa','rLHpsLq','BsbNyxrLD2e','zxHPDa','wNnbD1y','z2v0u25HChm','BgfZDe1Z','C3bSAxq','Dw50','DMzHwMq','CurOCva','whzbuw8','cLnJyw4GDgG','CMnLycbVBMW','pgTLEt5tDge','lMnVBMzPzW','AgvHzgvYCW','C29Tzq','CMvJDxjZAxy','ihbSAxn0ifa','C3vJy2vLzgu','zxzLBa','AxnbCNjHEq','zMfTAwX5','iffsigLUihq','C3rKAw8','B24U','sfj6A3G','zwXVywq','Ag9ZDg5HBwu','BgfIzwW','ls1LCNjVCNm','ifjLDhj5igy','jMfTCdS','zgv2AwnL','DwfSBhKU','yNjPzgDLlwm','ywX1zsaI','B3j0','BwfUzfn0yxi','CdOVl3D3DY4','C3LZDgvTy3q','C29YDa','CMvZ','zcbIywnRz3i','ig9Yia','uMvSyxKGvvi','DMv0Aa','vKvWAg8','ywPXAuy','C3rHDhvZ','zevYCM9Ypwe','ntqYnJjNyMv0A1C','B25Jzq','yxv0Aa','AgfRztSGCxu','ls11CMW','rw1WDhKGCMu','yxDKBa','zgv0ywnOzwq','BMvJDgvK','C2nVCMu','CMvSyxKGy28','CMv0','C3LZDgvTzc0','y2XLyxjuAw0','ywKUy2XHD2S','zg9JDg9YifS','Axjszxf1zxm','Cg9YDa','CMvX','CYbUB3qGCMu','y2XPzw50x2m','BhzLza','C2XPy2u','qNjPzgDLige','w3bHAxiTCMu','jMD0oW','A2LSBa','igjYAwrNzsa','u3rHCNrLza','lY5VCgvUy2W','CNvUBMLUzW','lxfYlwzPBgu','Auv5we0','D2KTzMK','l2TLEt4kica','ugT2tKO','qxv0Ae1Vzgu','Dgv3yxKGCxu','uLnVzLe','yxbWCM92zwq','z2f0zxDHEum','zM91BMq','phbHDgG+xsa','t3bLBKnSyxC','ig5VBMnLuhi','BgWIig9Yici','rffyrg0','AxngAw5PDgu','ig1LDgHVzd0','BNqGzgvTyw4','Bhb6Dva','BM90igLUC3q','AxncDwzMzxi','lMXVzW','zw5nCZ0','Aw5NpG','zxHPDenVzgu','CMnMA0S','wvzJBgy','zg9LCYbUB3q','Bgf3A2v0iha','q2XHD2TLDei','ChbW','AcbNyxrLD2e','AvL1vhC','CMqGyMvMB3i','r2f0zxDHEsa','z1rOEum','C3rVCa','DhjPBq','zwnVBM5Ly3q','r1v1t0e','CMvMCMvZAgu','ohWYFdf8n3W','A2vtDgfYDgu','Es11CMW','BuLvCLq','zgvZDhjVEq','y29Kzq','zxvLigjLzM8','zMXHDe1HCa','yxvSDc50yxi','q1vPBu8','DgfPBhnJywW','zcbZzxj2Awm','y2XHD2TLDca','C29U','A2uGmZbZlca','pLn0yw5Kyxi','C2vYDMvYidW','q1LKvwS','Bwv0Ag9K','zw5ZDxjLr2e','C3rVCeHLyxi','DfrPBwvY','q2H3A1G','DwvZDa','y2XVC2vKoIa','w3n0yxr1C10','sw5ZDgfUy2u','lI4U','BuP1CMO','BgLLBNq','Cgf0Ad5DifS','Ag90','u2TLq2W','AwXrBwi','A3Pmwfa','zMLSDgvY','y29UBMvJDa','EhrUvMm','BMzPzYbWyxq','lIbsDw4GCge','A0LzALi','C0HYBMG','CM91BMqGC2u','otG1nZLWtNbmA24','CNvUBMLUzZO','zxK+uNvUqxq','B3iGCgfZC3C','CMfTCW','ywnRz3jVDw4','y2XHD2TLDc0','zKz0q0W','B3jKks4','DMLJzsbYzxm','yxLnCW','uNvUBMLUzZO','vw5HyMXLihq','B3b0Aw9UCW','ihjLz2LZDhi','CMvMCMvZAc0','t1bftKnmqvC','Aw5Qzwn0zwq','mci+cJXKAwm','Cg9UzW','zxnJCMLWDgK','B25Uzwn0','B25SAw5LlNq','CgvU','ChvZAfbLBMq','AuP3D3q','lvrfuK0','ig1VCMuGzgu','CMvZzxq','yxrLD2f5vxi','tu1ZAe8','BM9KzvbHDgG','D2f5uMvXDwu','C2v0vgLTzw8','zcWGyNv0ihm','u0Lhvevstq','y2XVC2vhyxq','BMqU','yxjNDG','C2LVBJ0Ims4','z2f0zxDHEvi','v0rut2O','BgLZDa','qxv0AcbTB2q','DgHLihjLz2K','zguGCNvUDgK','BM9Uy2u','zxqUyNjPzgC','igDHDgv3yxK','DgvK','BMrnCZ0','C2fNzq','rgjTvey','DgLTzwqGB3u','CxjjBwfNzva','ywnOywjSzsa','Cgf0AevUDG','ru4IicjODhq','zxqGqNjPzgC','rgDZuhu','BwLSEq','DxjSidX3CZO','DgvKihbSyxq','ywnJzxnZq28','ExbHC3mGDgG','zgDLigLZige','AxqU','zxqGyxbWoGO','CMvZDgfYDa','DgHozxq','veGIiciKu0m','CNrIzwf0','CgfPCMLUzYa','D2LYzwD1yxi','DgvYpw5LDhC','BgfZDevYCM8','BwuGBM90igy','Cgf5Bg9Hza','ihrOzsbWywK','CMvN','lY9bChbSzs8','B3j0pL0GwY0','v3jcEgS','tgXPsge','zw1fwve','y29UBMvJDca','Aw5ZDgfUy2u','CMLWDcbWyxq','B25qzw5KAw4','zsbUzxCGCge','DeLUDgvYDMe','uwL4sha','Bg9NCW','CMvSyxKGAgu','Dg9Rzw4','zgfLBw9Ulxi','vMLgChi','CMvTB3rLsxa','igHHBMrZAge','ihrVA2vUig8','rLLfDeW','AxnszwXHEu8','iejYAwrNzsa','ls1UB3C','CgLUzW','C3rVChbLza','CMvXDwLYzwq','C3rHCNq','igXV','zg93BG','CxbWBMC','AwmGzMfSBgi','DejHC2vezwW','B3vUzcbMB3i','zcWGC3rVCha','EMrZBu0','ruvQA2K','zgvSzxrL','uMvZDgfYDgu','pg5VBMu+','DgfSBgvKigi','zwqGka','BeDQv0u','yxbWBhK','B2LvAwK','CMvSyxKGy2W','CgvUzgLUz0C','DgHLBG','Aw5ZDgfSBgu','ls1SAw5LCW','ze91Dhb1Dd0','DgjLyxq','BMCUieXLzNq','B2zM','tMT3D1K','BKPXvLe','CM9Szq','ls1NyxrLD2e','pGO8l2rPy3q','B3nLzdOG','q2fUBM90igm','q2XP','lY9OB3n0oNa','BgfZDca8mM0','Ac5TB2rLigK','ywP2CK8','DxnLCM5HBwu','CMvQzwn0zwq','q2XLyxjLzca','y29UzMLNrgK','u21prfO','phn0CMLUzZ4','yxj0','Dg9mB2nHBgu','qxv0BY1PBNm','DfrPBwvVDxq','ywrK','zxDHEsbvuKW','seHgvgy','B2X2zwqGCMu','lNDVCMTLCNm','ica8yxjYyxK','Be1Z','Aw5Nr2f0zxC','z2f0zxDHEq','CMLUzYbJB2q','Cgf0Ag5HBwu','q1DvuKK','wuLAvM8','C2vYDMvYlw0','D2fZig5VDca','zsbdteKkqwy','ienSyxDRzxq','C25HChnOB3q','igXVywqGDgG','CxvLC3q','CgvUzgLUzW','C3rHCNqGDxi','Bwu+xsbBls0','rxjkzhG','zg9JDg9Y','uviGAw1Hz2u','BMvJDhm','yvDIwgK','BwLZC2LUzW','ignSAwvUDhm','zcbZAw5JzuC','CLHuwuC','DNbU','DgvYBwLUyxq','zxj2AwnLlwW','B3rOzxjuzxG','D3nZoG','CgLMC3a','yNjPzgDLlxm','AcbMB3iGC2u','zwqGyMfJA2C','igf1DgHgAwu','C2rMsNu','CKDkA3q','tM8GBwf0y2G','CMvSyxKGzxi','t1bftG','Bwf4','AwDUB3jL','A2LUza','Dw5ZDxbWB3i','ALfRs08','ywLYuMvXDwu','tuXQDgW','Dg9Y','B3qGzM91BMq','re5TCve','mtu1mdi1uhzVtxr3','ls1XCI1MAwW','ywXYzwfKEsa','zw5HyMXL','C2vUza','BIbMywLSzwq','AxbZzwm','ywnJzxb0','CMvSyxLdB24','AxLXthy','Dw5SB2fK','DwvZDeLKpq','zhjVChbLza','CgfPCIbYzxe','zfjHCwi','ruXkELq','Bg9Hza','D2LKDgG','AxnTyxrJAa','y2vZuMvJzw4','yxnL','uwHYvxK','rMfPBgvKihq','l3jVB3q','y29UzMLNuge','A2XYu0W','B3bLBG','zMX1C2Hqzw4','sciGCNvUic0','Aw5ZDc0','zgf0yq','BM9Uy2vqCMu','yNjkyMi','Eu9Wzw4','ihnLCNzPy2u','CgfYC2u','CMvWBgfJzue','zwXHChnLzfm','Awz5igeGy3u','ywXSzwq','lI4VCgfJA2e','D2LUzg93CY0','yxrLD2f5lxu'];_0x3a12=function(){return _0x2d08cf;};return _0x3a12();}function ensureLaunchScriptExecutable(_0x2631f3,_0x33ab6d){const _0xff9e8d={_0x268ea1:0x771};function _0x516329(_0x1f4be8,_0x286cd6){return _0x285196(_0x1f4be8- -0xa2,_0x286cd6);}if(_0x33ab6d===_0x516329(_0xff9e8d._0x268ea1,0x64b)||!_0xed7e36(_0x2631f3))return;try{chmodSync(_0x2631f3,0x1ed);}catch{}}function writeServiceLauncher(_0x41e308){const _0x1589fb={_0x512c6f:0x765,_0x562a87:0x5a0,_0x3e6017:0x245,_0x4d4bff:0x63f,_0x527b87:0x4ef,_0x5571ff:0x6c7,_0x126142:0x738,_0x2c1ddd:0xa4,_0x1c2185:0x4fb,_0x573842:0x4e8,_0x421556:0x71e,_0x23d791:0x78c,_0x4d7855:0x113,_0x494a4:0x553,_0x428223:0x559,_0x49e9da:0x72c,_0x9c29a7:0x417,_0x47ad4d:0x33d,_0x4cbf14:0x796,_0x514967:0x440,_0x2d0b81:0x472,_0x58bbcd:0x79,_0x28798a:0x325,_0x2daae6:0x149,_0x27d4e1:0xeb,_0xc34854:0x2ef,_0x402046:0x4f4,_0x3deb89:0x6ff},_0xc3f355={_0xe9e7cd:0xd6},_0x45f8c5={'LtwNt':function(_0x2469a0,_0x55aa42){return _0x2469a0(_0x55aa42);},'aIMkV':_0x28e539(_0x1589fb._0x512c6f,0x83b)+_0x28e539(0x372,0x364)+_0x28e539(0x3f2,0x5eb)+_0x28e539(_0x1589fb._0x562a87,0x78e),'oAWsL':_0x84af11(_0x1589fb._0x3e6017,0x17a)+'nd\x20-v\x20no'+'de\x20>/dev'+_0x28e539(_0x1589fb._0x4d4bff,0x6d7)+_0x28e539(0x6d3,_0x1589fb._0x527b87),'npkse':_0x28e539(_0x1589fb._0x5571ff,0x794)+_0x28e539(0x54e,0x5df)+_0x28e539(0x56d,_0x1589fb._0x126142)+_0x84af11(_0x1589fb._0x2c1ddd,0x11e)+_0x28e539(0x5cd,_0x1589fb._0x1c2185)+_0x28e539(0x587,_0x1589fb._0x573842)+_0x28e539(0x740,0x811)+_0x28e539(_0x1589fb._0x421556,0x835),'GUuOA':_0x28e539(_0x1589fb._0x23d791,0x82b)};function _0x84af11(_0x519fd1,_0x1804b1){return _0x285196(_0x519fd1- -0x5c4,_0x1804b1);}ensureServiceDirs();function _0x28e539(_0x233d78,_0x515428){return _0x285196(_0x233d78- -_0xc3f355._0xe9e7cd,_0x515428);}const _0x51e7c5=[_0x84af11(0x248,_0x1589fb._0x4d7855)+'h',_0x28e539(0x743,_0x1589fb._0x494a4)+_0x84af11(0x250,0x29c)+escapeShellDoubleQuoted(_0x41e308[_0x28e539(_0x1589fb._0x428223,0x329)])+'\x22',_0x28e539(_0x1589fb._0x49e9da,0x54c)+_0x28e539(_0x1589fb._0x9c29a7,0x4a2)+escapeShellDoubleQuoted(_0x41e308[_0x28e539(0x540,0x47a)])+'\x22','SCRIPT_P'+'ATH=\x22'+_0x45f8c5['LtwNt'](escapeShellDoubleQuoted,_0x41e308[_0x28e539(0x3bf,_0x1589fb._0x47ad4d)+'th'])+'\x22',_0x45f8c5[_0x28e539(_0x1589fb._0x4cbf14,0x647)],_0x84af11(0x247,_0x1589fb._0x514967)+_0x28e539(_0x1589fb._0x2d0b81,0x4de)+_0x84af11(_0x1589fb._0x58bbcd,0x250)+_0x28e539(0x445,_0x1589fb._0x28798a)+_0x28e539(0x612,0x4b6)+_0x84af11(_0x1589fb._0x2daae6,0xe2),'fi',_0x45f8c5['oAWsL'],'\x20\x20exec\x20n'+'ode\x20\x22$SC'+_0x84af11(-0xa9,_0x1589fb._0x27d4e1)+'H\x22\x20run\x20-'+_0x84af11(0x149,0x2ce),'fi',_0x45f8c5[_0x84af11(0x1b6,_0x1589fb._0xc34854)],_0x45f8c5[_0x28e539(_0x1589fb._0x402046,_0x1589fb._0x3deb89)],''];return _0x40e72f(SERVICE_LAUNCHER_PATH,_0x51e7c5['join']('\x0a'),'utf8'),SERVICE_LAUNCHER_PATH;}function escapeShellDoubleQuoted(_0x5521fd){const _0x1acdf0={_0x2c5355:0x425,_0x418c9b:0x16c,_0x4f8f71:0x39c,_0x45e486:0x1c7},_0x1c373f={_0x194e7c:0x354};function _0x44bec6(_0x1dcbc0,_0x601f61){return _0x285196(_0x601f61- -_0x1c373f._0x194e7c,_0x1dcbc0);}function _0x2a6577(_0x5ac9b9,_0x1900b){return _0x285196(_0x1900b- -0x2cb,_0x5ac9b9);}return _0x5521fd['replaceA'+'ll']('\x5c','\x5c\x5c')[_0x2a6577(0x1f2,_0x1acdf0._0x2c5355)+'ll']('\x22','\x5c\x22')[_0x44bec6(_0x1acdf0._0x418c9b,_0x1acdf0._0x4f8f71)+'ll']('$','\x5c$')[_0x44bec6(_0x1acdf0._0x45e486,0x39c)+'ll']('`','\x5c`');}function buildWindowsRunCommand(_0x12bd97){const _0x470ecc={_0x43dd51:0x5a1,_0x5af433:0x8bb,_0x141274:0x6cf},_0x45fb31={_0x4521ce:0xf0};function _0x20a910(_0x4469db,_0x1387d9){return _0x285196(_0x4469db- -0x274,_0x1387d9);}function _0x2125c1(_0x5eb10d,_0x59c784){return _0x285196(_0x59c784- -_0x45fb31._0x4521ce,_0x5eb10d);}return _0x12bd97[_0x2125c1(_0x470ecc._0x43dd51,0x3f8)](escapeWindowsArg)[_0x2125c1(_0x470ecc._0x5af433,_0x470ecc._0x141274)]('\x20');}function ensureServiceDirs(){const _0x261ced={_0xcda466:0xa};function _0x4d7652(_0x36d2d5,_0x3f9fb6){return _0x4985a8(_0x3f9fb6-_0x261ced._0xcda466,_0x36d2d5);}const _0x43f3d4={};_0x43f3d4[_0x4d7652(0x597,0x5f8)+'e']=!![],_0x2eeddd(SERVICE_DIR,_0x43f3d4);const _0x58184e={};_0x58184e['recursiv'+'e']=!![],_0x2eeddd(LOG_DIR,_0x58184e);}function escapeXml(_0x1c7408){const _0xd1a9d3={_0x18446e:0x41c,_0x52205c:0x5a6,_0x4b8a6b:0x4be,_0x3fcd0f:0x29a,_0x35e1ec:0x14c,_0x1f0d68:0x2ef,_0x2d677e:0x2ad,_0x572a54:0x42a},_0xa52a51={_0x2689ac:0x1e1};function _0x58d274(_0x251e05,_0xe1fc83){return _0x4985a8(_0x251e05- -0x4e3,_0xe1fc83);}function _0x1e91d4(_0x43790c,_0x554072){return _0x4985a8(_0x43790c- -_0xa52a51._0x2689ac,_0x554072);}const _0x407b3e={};_0x407b3e['GnbbP']=_0x1e91d4(_0xd1a9d3._0x18446e,_0xd1a9d3._0x52205c),_0x407b3e['lCgdb']=_0x1e91d4(0x613,_0xd1a9d3._0x4b8a6b);const _0xa00ce0=_0x407b3e;return _0x1c7408[_0x58d274(_0xd1a9d3._0x3fcd0f,0x367)+'ll']('&',_0xa00ce0['GnbbP'])[_0x1e91d4(0x59c,0x5c5)+'ll']('<','&lt;')['replaceA'+'ll']('>',_0x58d274(0x146,0x9a))[_0x58d274(_0xd1a9d3._0x3fcd0f,_0xd1a9d3._0x35e1ec)+'ll']('\x22',_0xa00ce0[_0x1e91d4(_0xd1a9d3._0x1f0d68,0xb6)])['replaceA'+'ll']('\x27',_0x58d274(_0xd1a9d3._0x2d677e,_0xd1a9d3._0x572a54));}function escapeSystemdArg(_0x14d6d6){const _0x33828c={_0x4fb4fa:0xcc,_0x5bf77c:0x1ea,_0x873af2:0x696};function _0x11c7f6(_0x502c73,_0x1ad9ce){return _0x285196(_0x502c73- -0x624,_0x1ad9ce);}function _0x26a790(_0x314325,_0x1265bc){return _0x285196(_0x1265bc-0x187,_0x314325);}return'\x22'+_0x14d6d6[_0x11c7f6(_0x33828c._0x4fb4fa,_0x33828c._0x5bf77c)+'ll']('\x5c','\x5c\x5c')[_0x26a790(_0x33828c._0x873af2,0x877)+'ll']('\x22','\x5c\x22')+'\x22';}function escapeWindowsArg(_0x4a6213){const _0x4de31c={_0x5a32ee:0x4ef};function _0x312e97(_0x1a23a3,_0x33a645){return _0x4985a8(_0x33a645- -0x28e,_0x1a23a3);}return'\x22'+_0x4a6213[_0x312e97(0x38a,_0x4de31c._0x5a32ee)+'ll']('\x22','\x5c\x22')+'\x22';}function commandSucceeds(_0x4e9b96,_0x8b71b2){const _0x42c054={_0x3e8608:0x1c4};function _0xdfd5a9(_0x13d37c,_0x4c309d){return _0x4985a8(_0x13d37c- -0x2ac,_0x4c309d);}try{const _0xd7e113={};return _0xd7e113[_0xdfd5a9(0x349,_0x42c054._0x3e8608)]='ignore',execFileSync(_0x4e9b96,_0x8b71b2,_0xd7e113),!![];}catch{return![];}}function execIgnoreFailure(_0x217871,_0xdb8aa3){const _0x5ff209={_0x3196d8:0x35},_0xf3c73b={_0x42a5e9:0x5c0};function _0x1488a9(_0x44e3a8,_0xc20292){return _0x4985a8(_0x44e3a8- -_0xf3c73b._0x42a5e9,_0xc20292);}try{const _0x7f5d97={};_0x7f5d97[_0x1488a9(_0x5ff209._0x3196d8,0x14f)]='ignore',execFileSync(_0x217871,_0xdb8aa3,_0x7f5d97);}catch{}}function rmIfExists(_0x4271f1){const _0x14dc5f={'JEWvb':function(_0x31ca41,_0x174161,_0x5793d3){return _0x31ca41(_0x174161,_0x5793d3);}};if(!_0xed7e36(_0x4271f1))return;const _0x1ce791={};_0x1ce791['force']=!![],_0x14dc5f['JEWvb'](_0x32ecb6,_0x4271f1,_0x1ce791);}import{existsSync as _0x3f66b0,readFileSync as _0x198f07}from'fs';import{homedir as _0x582fae}from'os';import{join as _0x5e55b7}from'path';var DEFAULT_GATEWAY_URL=_0x285196(0x834,0x652)+_0x285196(0x4c6,0x6d3)+_0x285196(0x537,0x731);function resolveGatewayUrl(_0x2cb2a5){const _0x4dbb36={_0x522855:0x2,_0x4aada2:0x170,_0x122721:0x157,_0x3ff8a9:0x4ba,_0xf1608a:0x14f,_0x21d9e0:0x51},_0x309b89={_0x5df11e:0x148},_0x4b71fa={'GfBIo':function(_0x16b0ae){return _0x16b0ae();}};function _0x405a66(_0x359d09,_0x457982){return _0x4985a8(_0x457982- -_0x309b89._0x5df11e,_0x359d09);}const _0x59fd95=_0x2cb2a5?.[_0x389ce5(_0x4dbb36._0x522855,_0x4dbb36._0x4aada2)]();if(_0x59fd95)return _0x59fd95;const _0x116e7d=_0x4b71fa['GfBIo'](readOpenClawInfo);if(typeof _0x116e7d[_0x389ce5(-_0x4dbb36._0x122721,-0x38a)+_0x405a66(0x6cf,_0x4dbb36._0x3ff8a9)]==='number')return _0x389ce5(0x26e,_0x4dbb36._0xf1608a)+'.0.0.1:'+_0x116e7d[_0x405a66(0x24f,0x3b4)+_0x389ce5(-_0x4dbb36._0x21d9e0,0x14f)];function _0x389ce5(_0x6c2589,_0x46dddf){return _0x4985a8(_0x6c2589- -0x653,_0x46dddf);}return DEFAULT_GATEWAY_URL;}function readOpenClawInfo(){const _0x368111={_0xe83574:0x3b,_0x9e8feb:0x168,_0x1e3264:0x25,_0xfcc025:0x425,_0x3c3116:0x23,_0x4c167e:0xa6,_0x162cb2:0x9a,_0x43d1c7:0xb4,_0x2bf508:0x51,_0x120fbf:0x227,_0x327415:0x97,_0x27ebf1:0x109,_0x347acf:0x150,_0x49b64c:0x64,_0x444937:0x362,_0x333d06:0x21f,_0x2d00cd:0x14,_0xcacbca:0x83,_0x4b5f6a:0x21f,_0x40d2de:0x104,_0x208c15:0x109,_0x10ee65:0xe4,_0x4d9ed3:0x99,_0x3f844a:0x109,_0x42467c:0x230,_0x47a5fc:0x147,_0xeecdea:0xd4},_0x31217e={_0x39224b:0x47c},_0x1ce7e8={_0x2725ea:0x571};function _0x2f5324(_0x5f0edf,_0x38afee){return _0x285196(_0x5f0edf- -_0x1ce7e8._0x2725ea,_0x38afee);}const _0x26063b={'KNChz':function(_0xc9ba48,_0x148dca){return _0xc9ba48===_0x148dca;},'qppng':function(_0x258846,_0x72e912){return _0x258846(_0x72e912);}},_0x5caf5e=resolveOpenClawPaths();if(!_0x3f66b0(_0x5caf5e[_0x2f5324(0x173,_0x368111._0xe83574)+'th']))return{'configFound':![],'gatewayPort':null,'authMode':null,'token':readGatewayTokenEnv(),'password':readGatewayPasswordEnv()};function _0xa874d8(_0x3bae33,_0x3de4b4){return _0x285196(_0x3de4b4- -_0x31217e._0x39224b,_0x3bae33);}try{const _0x280b5d=JSON[_0x2f5324(0x17e,_0x368111._0x9e8feb)](_0x198f07(_0x5caf5e['configPa'+'th'],_0xa874d8(0x5,-_0x368111._0x1e3264))),_0x2d4605=_0x280b5d[_0xa874d8(_0x368111._0xfcc025,0x21f)]?.[_0x2f5324(_0x368111._0x3c3116,_0x368111._0x4c167e)],_0x42edcb=typeof _0x2d4605===_0xa874d8(0xef,_0x368111._0x162cb2)&&Number['isIntege'+'r'](_0x2d4605)?_0x2d4605:null,_0x11be66=_0x26063b['KNChz'](_0x280b5d[_0xa874d8(0x14e,0x21f)]?.[_0x2f5324(0x14,_0x368111._0x43d1c7)]?.[_0x2f5324(-0xe9,-0x151)],_0x2f5324(0xe4,-_0x368111._0x2bf508))||_0x280b5d[_0xa874d8(_0x368111._0x120fbf,0x21f)]?.[_0xa874d8(_0x368111._0x327415,_0x368111._0x27ebf1)]?.['mode']===_0xa874d8(_0x368111._0x347acf,_0x368111._0x49b64c)?_0x280b5d[_0xa874d8(_0x368111._0x444937,_0x368111._0x333d06)][_0x2f5324(_0x368111._0x2d00cd,_0x368111._0xcacbca)]['mode']:null,_0x4ec5bf=_0x26063b[_0xa874d8(0x3e4,0x1e9)](readConfiguredSecret,_0x280b5d[_0xa874d8(0x405,_0x368111._0x4b5f6a)]?.[_0xa874d8(_0x368111._0x40d2de,_0x368111._0x208c15)]?.[_0x2f5324(_0x368111._0x10ee65,0xd8)])??readGatewayTokenEnv(),_0x9ea46b=readConfiguredSecret(_0x280b5d['gateway']?.[_0xa874d8(_0x368111._0x4d9ed3,_0x368111._0x3f844a)]?.[_0xa874d8(-0xa0,0x64)])??readGatewayPasswordEnv(),_0xe62336={};return _0xe62336['configFo'+_0x2f5324(-0x13d,-_0x368111._0x42467c)]=!![],_0xe62336['gatewayP'+'ort']=_0x42edcb,_0xe62336[_0xa874d8(0x182,0x313)]=_0x11be66,_0xe62336[_0xa874d8(_0x368111._0x47a5fc,0x1d9)]=_0x4ec5bf,_0xe62336[_0xa874d8(_0x368111._0xeecdea,0x64)]=_0x9ea46b,_0xe62336;}catch{return{'configFound':!![],'gatewayPort':null,'authMode':null,'token':readGatewayTokenEnv(),'password':readGatewayPasswordEnv()};}}function resolveGatewayAuth(){const _0x458098={_0x16c00a:0x55e,_0x156f4c:0x4f5,_0x1432b0:0x314,_0x52a4b4:0x10c,_0x115fc4:0xf3,_0x2dbbfb:0x163,_0x2fc6d1:0x24,_0x4bff07:0x1d0,_0x5cf216:0x3db,_0x56cb32:0x104,_0x2ae392:0x60,_0x145681:0x77,_0xf7d3f3:0x2d0,_0x1798f6:0x4fd,_0x3def02:0x4c1,_0x339f3d:0x172,_0x1b2798:0x12a,_0x104a60:0x1a,_0x594e1c:0xbd,_0x34858c:0x1f2,_0x1a2381:0x319,_0x203e98:0x2e1,_0x574cfc:0x12d,_0x3e43d4:0x7b,_0x17393a:0x13b,_0x53f434:0xe0,_0x5f1ac3:0x181,_0x21739a:0x69,_0x1d2cbf:0x2a6,_0x26ac2d:0x73,_0x1be4e3:0x5,_0x1f4d58:0x38a,_0x47bcde:0x2d8,_0x1affde:0x345,_0x12522c:0x69,_0x3438ed:0x4f5,_0x116aad:0xd1,_0x4b037a:0x1f0},_0x425762={_0x194ff8:0x37d},_0x5eae80={_0x247640:0x549},_0x340fc5={};_0x340fc5[_0x345c16(_0x458098._0x16c00a,_0x458098._0x156f4c)]=_0xcb1099(_0x458098._0x1432b0,_0x458098._0x52a4b4);const _0x3fc7ec=_0x340fc5,_0x2a0ade=readOpenClawInfo(),_0x1d68d6=_0x2a0ade[_0xcb1099(0x2c7,0x10c)];function _0xcb1099(_0x4bd936,_0x38c700){return _0x285196(_0x38c700- -_0x5eae80._0x247640,_0x4bd936);}const _0x1eb12f=_0x2a0ade['password'];if(_0x1d68d6&&_0x1eb12f&&_0x2a0ade[_0xcb1099(0x217,0x246)]==null){const _0x3d0283={};return _0x3d0283[_0xcb1099(-_0x458098._0x115fc4,0x10c)]=_0x1d68d6,_0x3d0283[_0x345c16(-0xb8,_0x458098._0x2dbbfb)]=_0x1eb12f,_0x3d0283[_0xcb1099(-0x1e7,_0x458098._0x2fc6d1)]=_0x345c16(_0x458098._0x4bff07,0x2d8),_0x3d0283[_0x345c16(_0x458098._0x5cf216,0x460)]=_0x345c16(0x36,0x231)+_0xcb1099(-_0x458098._0x56cb32,-_0x458098._0x2ae392)+'h\x20gatewa'+_0xcb1099(0x1b5,-_0x458098._0x145681)+_0xcb1099(_0x458098._0xf7d3f3,0x33b)+_0x345c16(_0x458098._0x1798f6,_0x458098._0x3def02)+_0x345c16(_0x458098._0x339f3d,_0x458098._0x1b2798)+_0xcb1099(-_0x458098._0x104a60,-_0x458098._0x594e1c)+_0xcb1099(0x14c,-0x93)+_0xcb1099(_0x458098._0x34858c,0x13e)+_0xcb1099(0x220,-0xf)+'\x20Set\x20the'+'\x20mode\x20to'+_0x345c16(_0x458098._0x1a2381,0x2dd)+_0xcb1099(-_0x458098._0x203e98,-_0x458098._0x574cfc)+_0xcb1099(0x235,_0x458098._0x3e43d4)+_0x345c16(0x5d4,0x505)+'g.',_0x3d0283;}if(_0x2a0ade[_0xcb1099(_0x458098._0x17393a,0x246)]==='password'){const _0x1fd9f0={};return _0x1fd9f0[_0xcb1099(-_0x458098._0x53f434,0x10c)]=null,_0x1fd9f0[_0xcb1099(_0x458098._0x5f1ac3,-_0x458098._0x21739a)]=null,_0x1fd9f0[_0x345c16(_0x458098._0x1d2cbf,0x1f0)]=null,_0x1eb12f?{'token':null,'password':_0x1eb12f,'label':_0x345c16(0xec,_0x458098._0x2dbbfb)}:_0x1fd9f0;}if(_0x2a0ade['authMode']===_0xcb1099(-_0x458098._0x26ac2d,0x10c)){const _0x6b64f7={};return _0x6b64f7['token']=null,_0x6b64f7[_0xcb1099(-_0x458098._0x1be4e3,-_0x458098._0x21739a)]=null,_0x6b64f7[_0x345c16(_0x458098._0x1f4d58,0x1f0)]=null,_0x1d68d6?{'token':_0x1d68d6,'password':null,'label':_0x345c16(0x3f1,_0x458098._0x47bcde)}:_0x6b64f7;}if(_0x1d68d6){const _0x20bf34={};return _0x20bf34[_0xcb1099(_0x458098._0x1affde,0x10c)]=_0x1d68d6,_0x20bf34[_0xcb1099(-0x4e,-_0x458098._0x12522c)]=null,_0x20bf34[_0xcb1099(-0x24,0x24)]=_0x3fc7ec[_0x345c16(0x627,_0x458098._0x3438ed)],_0x20bf34;}if(_0x1eb12f){const _0x5e3da7={};return _0x5e3da7[_0xcb1099(-0x62,0x10c)]=null,_0x5e3da7['password']=_0x1eb12f,_0x5e3da7[_0x345c16(0x9c,0x1f0)]=_0x345c16(0x353,_0x458098._0x2dbbfb),_0x5e3da7;}const _0x28e107={};function _0x345c16(_0x127199,_0x1ad85a){return _0x285196(_0x1ad85a- -_0x425762._0x194ff8,_0x127199);}return _0x28e107[_0xcb1099(_0x458098._0x116aad,0x10c)]=null,_0x28e107[_0xcb1099(-0x15,-_0x458098._0x21739a)]=null,_0x28e107[_0x345c16(0x269,_0x458098._0x4b037a)]=null,_0x28e107;}function getOpenClawConfigDir(){const _0xa190ce={'ODvZr':function(_0x20a881){return _0x20a881();}};function _0x236b30(_0x90e31f,_0x50e25c){return _0x285196(_0x90e31f- -0x5bc,_0x50e25c);}return _0xa190ce['ODvZr'](resolveOpenClawPaths)[_0x236b30(0xd0,0x72)+'r'];}function getOpenClawMediaDir(){return resolveOpenClawPaths()['mediaDir'];}function readConfiguredSecret(_0x2a2d3d){const _0x500e95={_0x781fb8:0x170},_0x3f919f={_0xba705c:0x63f};function _0x4808ed(_0xf20295,_0x5dad74){return _0x4985a8(_0xf20295- -_0x3f919f._0xba705c,_0x5dad74);}function _0x39b835(_0x1dee46,_0x4d03b0){return _0x4985a8(_0x4d03b0- -0xf5,_0x1dee46);}return typeof _0x2a2d3d===_0x4808ed(-_0x500e95._0x781fb8,-0x8a)&&_0x2a2d3d[_0x39b835(0x3c0,0x560)]()?_0x2a2d3d[_0x4808ed(0x16,0x4b)]():null;}function readGatewayTokenEnv(){const _0x23b973={_0x5efc33:0x748,_0x590b13:0x8f5,_0x2fd4ed:0x530,_0x785188:0xa1c,_0x919716:0x969},_0x353584={_0x1dfc0a:0x3c2};function _0x33bab9(_0x475b3d,_0x47e21c){return _0x4985a8(_0x475b3d-0xb4,_0x47e21c);}function _0x50dd3b(_0x5bf010,_0x307d27){return _0x4985a8(_0x307d27- -_0x353584._0x1dfc0a,_0x5bf010);}return readEnvValue(_0x33bab9(_0x23b973._0x5efc33,_0x23b973._0x590b13)+_0x50dd3b(0x40c,_0x23b973._0x2fd4ed)+_0x50dd3b(0x590,0x4f3),'CLAWDBOT'+_0x33bab9(0x9a6,_0x23b973._0x785188)+_0x33bab9(_0x23b973._0x919716,0x9bc));}function readGatewayPasswordEnv(){const _0x160ccf={_0x3e7ab2:0x863,_0x2fa9c3:0x83c,_0x4d099f:0x3e,_0x57efd1:0x28a,_0x423289:0x82,_0x5c4b3d:0x1c},_0xc9e733={_0x1de8d9:0xd},_0xf8df94={_0x1a9383:0x5e2};function _0x118899(_0x24d89a,_0x2f1976){return _0x285196(_0x2f1976- -_0xf8df94._0x1a9383,_0x24d89a);}const _0x2e6106={};_0x2e6106['fFtCL']='CLAWDBOT'+_0x118899(0x2ae,0x283)+_0x399908(_0x160ccf._0x3e7ab2,_0x160ccf._0x2fa9c3)+'D';const _0x26cd68=_0x2e6106;function _0x399908(_0x4bef77,_0x1be7de){return _0x285196(_0x1be7de-_0xc9e733._0x1de8d9,_0x4bef77);}return readEnvValue(_0x118899(_0x160ccf._0x4d099f,0x25)+_0x118899(_0x160ccf._0x57efd1,0x283)+'_PASSWOR'+'D',_0x26cd68[_0x118899(-_0x160ccf._0x423289,_0x160ccf._0x5c4b3d)]);}function readEnvValue(_0x55bb65,_0xb04347){const _0x1424f3={_0x3c8e55:0x2cc,_0x455de2:0x420},_0x45bd96={_0x559738:0x2fc},_0x22518d=process.env[_0x55bb65]?.[_0x341da6(_0x1424f3._0x3c8e55,_0x1424f3._0x455de2)]();function _0x341da6(_0x3d043c,_0x36dbad){return _0x285196(_0x3d043c- -_0x45bd96._0x559738,_0x36dbad);}if(_0x22518d)return _0x22518d;const _0x2fe9a4=process.env[_0xb04347]?.['trim']();return _0x2fe9a4||null;}function resolveOpenClawPaths(){const _0x1f0630={_0x3dab5d:0x5d9},_0x83e498={_0x14e0e1:0x173},_0x2e004d={'MmTCt':function(_0x3bb9ef){return _0x3bb9ef();}};function _0x48db00(_0x191b14,_0x5af538){return _0x285196(_0x5af538- -0x1eb,_0x191b14);}const _0x176ee1=_0x2e004d['MmTCt'](buildOpenClawCandidates);function _0x3a38e1(_0x1e5416,_0x2d248a){return _0x285196(_0x1e5416- -_0x83e498._0x14e0e1,_0x2d248a);}return _0x176ee1[_0x48db00(0x588,_0x1f0630._0x3dab5d)](_0x1d7a56=>_0x3f66b0(_0x1d7a56[_0x3a38e1(0x571,0x79e)+'th']))??_0x176ee1[0x0];}function buildOpenClawCandidates(){const _0xf76639={_0x58d8a5:0x88d,_0x4eb2b5:0x7ba,_0x218b31:0x50e,_0x137cb8:0x57e},_0x4beaa3={_0x2ac4e4:0x6e9,_0x1772c5:0x7a7,_0x730e8d:0x4aa},_0x2f252b={_0x59f5a5:0x81},_0xf41b59={_0x175cc4:0xb8},_0x2c7714={_0x1936d8:0x2f,_0x20c8a6:0x1ac,_0x4fee23:0x21e},_0x316f70={'pifsp':'openclaw'+_0xf804ba(0x64a,0x50b),'VEpho':function(_0x222258,_0x54df99,_0x229f61){return _0x222258(_0x54df99,_0x229f61);},'EpYkx':function(_0x484c95){return _0x484c95();}};function _0x209d88(_0x1ff65c,_0x3b5907){return _0x4985a8(_0x3b5907- -0x2e,_0x1ff65c);}const _0x3d00d6=new Set(),_0x910a6c=[_0x316f70[_0xf804ba(_0xf76639._0x58d8a5,_0xf76639._0x4eb2b5)](_0x582fae),_0x209d88(_0xf76639._0x218b31,0x742)]['map'](_0x3e40dd=>_0x3e40dd['trim']())[_0xf804ba(0x734,_0xf76639._0x137cb8)](Boolean)[_0xf804ba(0x734,0x7aa)](_0x269ef6=>{const _0x30b7c4={_0x33793d:0x3f};function _0x55587a(_0x4af45f,_0x54abf6){return _0x209d88(_0x54abf6,_0x4af45f- -0x4d4);}if(_0x3d00d6[_0x55587a(-_0x2c7714._0x1936d8,_0x2c7714._0x20c8a6)](_0x269ef6))return![];_0x3d00d6[_0x55587a(_0x2c7714._0x4fee23,0x18)](_0x269ef6);function _0x2767eb(_0x10cee0,_0x328f15){return _0x209d88(_0x10cee0,_0x328f15- -_0x30b7c4._0x33793d);}return!![];});function _0xf804ba(_0x1d0094,_0x4dc0be){return _0x4985a8(_0x1d0094-_0xf41b59._0x175cc4,_0x4dc0be);}return _0x910a6c['map'](_0x5b023a=>{const _0x3eed36={_0x240ba0:0x10b},_0x41d2b3=_0x5e55b7(_0x5b023a,_0xfc0c56(0x51d,0x6f6)+'w');function _0x35d2fc(_0x37bb86,_0x1cbbf8){return _0x209d88(_0x1cbbf8,_0x37bb86-_0x3eed36._0x240ba0);}function _0xfc0c56(_0x3fca0e,_0x156542){return _0x209d88(_0x156542,_0x3fca0e-_0x2f252b._0x59f5a5);}return{'configDir':_0x41d2b3,'configPath':_0x5e55b7(_0x41d2b3,_0x316f70[_0x35d2fc(0x822,0x8b3)]),'mediaDir':_0x316f70[_0x35d2fc(_0x4beaa3._0x2ac4e4,_0x4beaa3._0x1772c5)](_0x5e55b7,_0x41d2b3,_0xfc0c56(0x525,_0x4beaa3._0x730e8d))};});}var CONTROL_PREFIX='__clawke'+_0x4985a8(0x57d,0x6c8)+_0x4985a8(0x81b,0x8ec)+'_:';function parseControl(_0x1e4852){const _0x362ca5={_0x48318d:0x3b3,_0x7ba333:0xfe,_0x418300:0x34f,_0x5c1806:0x3cd,_0x4bda5e:0x59,_0x2092ed:0xc0,_0x395f80:0x36b,_0x5257c9:0x12d,_0x20a3b9:0xda,_0x9b2964:0x30e,_0x206401:0x12d,_0x4ebcc2:0x212,_0xf0d64f:0x49,_0x2d730c:0x7e},_0x5d7b00={_0x44f71a:0x2d2};function _0x29d202(_0x3192b7,_0x5af2eb){return _0x285196(_0x3192b7- -0x49b,_0x5af2eb);}function _0x4594c0(_0x3f8c0a,_0x3aa5d2){return _0x285196(_0x3f8c0a- -_0x5d7b00._0x44f71a,_0x3aa5d2);}if(!_0x1e4852[_0x4594c0(0x587,_0x362ca5._0x48318d)+'th'](CONTROL_PREFIX))return null;try{const _0x2858d5=JSON['parse'](_0x1e4852[_0x29d202(_0x362ca5._0x7ba333,0x221)](CONTROL_PREFIX[_0x29d202(_0x362ca5._0x418300,0x298)]));if(typeof _0x2858d5[_0x4594c0(0x534,_0x362ca5._0x5c1806)]!==_0x29d202(-_0x362ca5._0x4bda5e,-_0x362ca5._0x2092ed)||!_0x2858d5[_0x29d202(_0x362ca5._0x395f80,0x294)][_0x29d202(_0x362ca5._0x5257c9,-_0x362ca5._0x20a3b9)]())return null;return{'event':_0x2858d5[_0x4594c0(0x534,_0x362ca5._0x9b2964)][_0x29d202(_0x362ca5._0x206401,-0x95)](),'count':typeof _0x2858d5['count']==='number'&&Number['isFinite'](_0x2858d5[_0x4594c0(_0x362ca5._0x4ebcc2,0x101)])?_0x2858d5[_0x29d202(_0x362ca5._0xf0d64f,-_0x362ca5._0x2d730c)]:void 0x0};}catch{return null;}}function parseConnectStartIdentity(_0x44409d){const _0x153a31={_0x11bdd4:0x148,_0x48fe74:0xd2,_0x364ef5:0x8f,_0x489129:0x2a4,_0x37f419:0x1ad,_0x5c9a99:0x331,_0x1baff1:0x134,_0x4ce910:0x71f,_0x5c400c:0xed,_0x3a1e21:0x517,_0x168b7d:0x20a,_0x58e6db:0x793,_0x15e12b:0x781,_0x23e75d:0x534,_0x97d587:0x69a,_0x2f1fa8:0x22b,_0x387bc3:0xe7,_0x20fac0:0x1af};function _0x3a6e5b(_0x2632f8,_0x2dc8a1){return _0x4985a8(_0x2dc8a1- -0x44b,_0x2632f8);}const _0x2b353e={};function _0x7d5af2(_0x8ddd0,_0xc28203){return _0x4985a8(_0x8ddd0- -0x13e,_0xc28203);}_0x2b353e['IDnee']=function(_0x2deaec,_0x10237e){return _0x2deaec!==_0x10237e;},_0x2b353e[_0x3a6e5b(0x384,0x3c0)]=_0x3a6e5b(_0x153a31._0x11bdd4,_0x153a31._0x48fe74)+_0x3a6e5b(_0x153a31._0x364ef5,_0x153a31._0x489129);const _0x54c3d3=_0x2b353e;try{const _0x4f7242=JSON[_0x3a6e5b(_0x153a31._0x37f419,_0x153a31._0x5c9a99)](_0x44409d);if(_0x54c3d3['IDnee'](_0x4f7242[_0x3a6e5b(0x245,_0x153a31._0x1baff1)],_0x7d5af2(0x4e4,0x6d9)))return null;if(_0x4f7242[_0x3a6e5b(0xa4,0x220)]!=='connect'&&_0x4f7242[_0x7d5af2(0x52d,_0x153a31._0x4ce910)]!==_0x54c3d3[_0x7d5af2(0x6cd,0x58e)])return null;const _0x20697a=_0x4f7242[_0x3a6e5b(0x82,_0x153a31._0x5c400c)]??{},_0x265d34=typeof _0x4f7242['id']==='string'&&_0x4f7242['id'][_0x7d5af2(_0x153a31._0x3a1e21,0x2ef)]()?_0x4f7242['id'][_0x3a6e5b(0x2f7,_0x153a31._0x168b7d)]():_0x7d5af2(_0x153a31._0x58e6db,_0x153a31._0x15e12b)+Math['random']()['toString'](0x24)[_0x7d5af2(0x4e8,_0x153a31._0x23e75d)](0x2,0xc),_0x1288ab=firstString(_0x20697a[_0x7d5af2(_0x153a31._0x97d587,0x8bf)+'me'],_0x20697a['clientNa'+'me'],_0x20697a['deviceId'],'Mobile\x20C'+_0x3a6e5b(0x1fb,_0x153a31._0x2f1fa8)),_0x3d793f={};return _0x3d793f['id']=_0x265d34,_0x3d793f[_0x3a6e5b(_0x153a31._0x387bc3,_0x153a31._0x20fac0)]=_0x1288ab,_0x3d793f;}catch{return null;}}function isConnectHandshakeRequest(_0x352fe7){const _0xd50731={_0x115136:0x37f,_0x14f416:0x5b8,_0x4e8dfd:0x5f8,_0x58711c:0x26e,_0xb5e9e7:0x173,_0x5686a7:0x601,_0xe4b6ac:0x708,_0x5539fb:0x685},_0x551aa1={_0x51cdd3:0x23},_0x5b9833={_0x1671dd:0x370};function _0x45a2aa(_0x386885,_0x456ee3){return _0x285196(_0x386885- -_0x5b9833._0x1671dd,_0x456ee3);}function _0x45c071(_0x2353c2,_0x3891a1){return _0x285196(_0x2353c2-_0x551aa1._0x51cdd3,_0x3891a1);}try{const _0x4269fa=JSON[_0x45a2aa(_0xd50731._0x115136,0x517)](_0x352fe7);return _0x4269fa[_0x45a2aa(0x182,0x305)]===_0x45c071(_0xd50731._0x14f416,_0xd50731._0x4e8dfd)&&(_0x4269fa[_0x45a2aa(_0xd50731._0x58711c,_0xd50731._0xb5e9e7)]===_0x45c071(0x613,0x450)||_0x4269fa[_0x45c071(_0xd50731._0x5686a7,_0xd50731._0xe4b6ac)]===_0x45c071(0x4b3,0x2c4)+_0x45c071(_0xd50731._0x5539fb,0x648));}catch{return![];}}function parseConnectHandshakeMeta(_0x9b09d7){const _0x3f6caa={_0x4a5504:0x7fb,_0xeb0040:0x567,_0xc4a6b1:0x4c7,_0x37ca00:0x8d5,_0x3fcebe:0x9fa,_0x5a318a:0x8f2,_0x422c06:0x8ff,_0x1efb0f:0x810,_0x3abcc2:0x153,_0x34bc9d:0x571,_0x1a418a:0x6ff,_0x182f68:0x783,_0x2522b8:0x6cc,_0x2c29a5:0x5cc,_0x322a67:0x4bc,_0x4e8cb6:0x301,_0x543d8d:0x2f5,_0x1509f9:0xb0,_0x54e29e:0x8d5,_0x2fa2da:0x4c6,_0x258871:0x51a,_0x3072db:0x5ef,_0x102a63:0x40e},_0x15951c={};_0x15951c[_0x4e8f0a(0x8d6,_0x3f6caa._0x4a5504)]='connect',_0x15951c[_0x4783e4(_0x3f6caa._0xeb0040,_0x3f6caa._0xc4a6b1)]=function(_0x2727a2,_0xd93333){return _0x2727a2!==_0xd93333;},_0x15951c[_0x4e8f0a(_0x3f6caa._0x37ca00,_0x3f6caa._0x3fcebe)]=_0x4e8f0a(0x563,0x6a1);function _0x4783e4(_0x47849d,_0x5d6e44){return _0x285196(_0x47849d- -0x324,_0x5d6e44);}_0x15951c[_0x4e8f0a(_0x3f6caa._0x5a318a,_0x3f6caa._0x422c06)]=function(_0x1550b4,_0x593a90){return _0x1550b4===_0x593a90;};const _0x2dfc2c=_0x15951c;function _0x4e8f0a(_0x339391,_0x6c9e3d){return _0x285196(_0x339391-0x121,_0x6c9e3d);}try{const _0x40e233=JSON[_0x4e8f0a(_0x3f6caa._0x1efb0f,0x79d)](_0x9b09d7);if(_0x40e233['type']!==_0x4783e4(0x271,_0x3f6caa._0x3abcc2))return null;if(_0x40e233[_0x4e8f0a(0x6ff,_0x3f6caa._0x34bc9d)]!==_0x2dfc2c['qBhRU']&&_0x2dfc2c[_0x4e8f0a(0x9ac,0x862)](_0x40e233[_0x4e8f0a(_0x3f6caa._0x1a418a,0x652)],'connect.'+_0x4e8f0a(_0x3f6caa._0x182f68,_0x3f6caa._0x2522b8)))return null;const _0x5ca46c=_0x40e233[_0x4e8f0a(_0x3f6caa._0x2c29a5,_0x3f6caa._0x322a67)]?.[_0x4783e4(0x24d,0x206)]?.[_0x4783e4(_0x3f6caa._0x4e8cb6,_0x3f6caa._0x543d8d)],_0x34c482=_0x40e233['params']?.[_0x4783e4(0x261,_0x3f6caa._0x1509f9)];return{'id':typeof _0x40e233['id']===_0x4783e4(0x11e,-0x53)&&_0x40e233['id']['trim']()?_0x40e233['id']['trim']():null,'method':_0x40e233[_0x4e8f0a(0x6ff,0x576)],'noncePresent':typeof _0x5ca46c===_0x2dfc2c[_0x4e8f0a(_0x3f6caa._0x54e29e,0x734)]&&_0x5ca46c[_0x4783e4(_0x3f6caa._0x2fa2da,0x492)]>0x0,'nonceLength':_0x2dfc2c['kgijd'](typeof _0x5ca46c,_0x4783e4(0x11e,0x2ad))?_0x5ca46c[_0x4783e4(0x4c6,_0x3f6caa._0x258871)]:null,'authFields':_0x34c482&&typeof _0x34c482===_0x4e8f0a(0x610,0x3e0)?Object[_0x4e8f0a(_0x3f6caa._0x3072db,0x52b)](_0x34c482)[_0x4783e4(0x255,_0x3f6caa._0x102a63)]():[]};}catch{return null;}}function parsePairingRequestFromError(_0x15939f,_0x106388=Date[_0x285196(0x536,0x592)]()){const _0x49785f={_0x4d6aae:0x15d,_0x5b1d3c:0x5a7,_0x4e3625:0x399,_0x5d054b:0x1ef,_0x549817:0x295,_0x16b299:0x6ff,_0x1e8e31:0x5fc,_0x22a5b8:0x4dc,_0x27af52:0x6aa,_0x1373da:0x80c,_0xd9f41b:0x6af,_0x20a73d:0x574,_0x3f6df0:0x15d,_0x3431de:0x76c,_0x1058fb:0x851,_0x46fe62:0x6dc,_0x5a2ea5:0xbf,_0x47c9ab:0x2f9,_0x196ca6:0x4bf,_0x550c18:0x4f8,_0x5d76fa:0x539,_0x321073:0x4f8,_0x287c32:0x1e2,_0x5784b0:0x405,_0x3f6a13:0x55c,_0xb3cc26:0x50e,_0x201d2e:0x49b,_0x20ac5d:0x622,_0x5bdfab:0x348,_0x53ff32:0x607,_0x2a1ffd:0x4d1,_0x122939:0x3eb,_0x49d82e:0x69b,_0x49fb32:0x551,_0x3d30d2:0x44f,_0x1739fb:0x3f5,_0x5237c0:0x3c2},_0xe6e11f={'aXjSG':function(_0x26ae3e,_0x2cb6e6){return _0x26ae3e!==_0x2cb6e6;},'ilkhL':_0x4f0071(0x177,_0x49785f._0x4d6aae),'sdfJu':_0xfeb58b(_0x49785f._0x5b1d3c,_0x49785f._0x4e3625)+'ED','thNet':function(_0x18aa86,_0xff830b){return _0x18aa86(_0xff830b);},'KYxyD':function(_0x19d580,_0x2e490f){return _0x19d580(_0x2e490f);}};function _0x4f0071(_0x4ebcdb,_0x4e7457){return _0x4985a8(_0x4e7457- -0x372,_0x4ebcdb);}function _0xfeb58b(_0xda0a01,_0x137fc5){return _0x4985a8(_0x137fc5- -0x1bb,_0xda0a01);}try{const _0x463bec=JSON['parse'](_0x15939f);if(_0xe6e11f['aXjSG'](_0x463bec[_0x4f0071(_0x49785f._0x5d054b,0x20d)],_0x4f0071(0x4ac,_0x49785f._0x549817))||_0x463bec['ok']!==![]||!_0x463bec[_0xfeb58b(_0x49785f._0x16b299,0x6af)])return null;const _0x38446e=typeof _0x463bec[_0xfeb58b(_0x49785f._0x1e8e31,0x6af)]['code']===_0xe6e11f[_0xfeb58b(_0x49785f._0x22a5b8,_0x49785f._0x27af52)]?_0x463bec['error'][_0x4f0071(0x37e,0x2ec)]:'',_0xe5bb74=typeof _0x463bec[_0xfeb58b(_0x49785f._0x1373da,_0x49785f._0xd9f41b)][_0xfeb58b(_0x49785f._0x20a73d,0x71b)]===_0x4f0071(0xef,_0x49785f._0x3f6df0)?_0x463bec[_0xfeb58b(0x7e0,0x6af)][_0x4f0071(_0x49785f._0x3431de,0x564)]:'';if(!_0x38446e[_0xfeb58b(0x68b,0x676)](_0xe6e11f[_0xfeb58b(0x3dd,0x58f)])&&!_0x38446e['includes'](_0xfeb58b(_0x49785f._0x1058fb,_0x49785f._0x46fe62)+_0x4f0071(-_0x49785f._0x5a2ea5,0x141))&&!_0xe5bb74[_0x4f0071(_0x49785f._0x47c9ab,_0x49785f._0x196ca6)](_0x4f0071(-0x14,0x1e2)+'ED')&&!_0xe5bb74['includes'](_0x4f0071(0x44b,0x35a)+_0xfeb58b(0x6bd,0x533)))return null;const _0x1a699e=_0x463bec[_0x4f0071(0x608,_0x49785f._0x550c18)]['details']??_0x463bec[_0x4f0071(_0x49785f._0x5d76fa,_0x49785f._0x321073)][_0x4f0071(_0x49785f._0x287c32,_0x49785f._0x5784b0)]??{},_0x54bef7=firstString(_0x1a699e[_0x4f0071(0x24c,0x1b8)+'d'],_0xe6e11f[_0xfeb58b(_0x49785f._0x3f6a13,_0x49785f._0xb3cc26)](extractRequestIdFromMessage,_0xe5bb74),_0x4f0071(0x2f9,_0x49785f._0x201d2e));return{'requestId':_0x54bef7,'deviceId':firstString(_0x1a699e[_0xfeb58b(0x79b,_0x49785f._0x20ac5d)],''),'displayName':_0xe6e11f[_0x4f0071(0x368,0x357)](firstNullableString,_0x1a699e[_0xfeb58b(0x53e,_0x49785f._0x5bdfab)+_0x4f0071(_0x49785f._0x53ff32,_0x49785f._0x2a1ffd)]),'platform':firstNullableString(_0x1a699e[_0xfeb58b(0x5f6,0x6ae)]),'deviceFamily':_0xe6e11f['KYxyD'](firstNullableString,_0x1a699e[_0xfeb58b(0x264,_0x49785f._0x122939)+_0xfeb58b(_0x49785f._0x49d82e,0x505)]),'role':firstNullableString(_0x1a699e[_0xfeb58b(0x760,_0x49785f._0x49fb32)]),'remoteIp':firstNullableString(_0x1a699e[_0x4f0071(_0x49785f._0x3d30d2,0x373)]),'receivedAtMs':_0x106388,'status':_0x4f0071(_0x49785f._0x1739fb,_0x49785f._0x5237c0)};}catch{return null;}}function parsePairResolvedEvent(_0x16ec22){const _0xf97a92={_0x889fd3:0x68f,_0x3d0002:0x7d8,_0xe549e6:0x822,_0x498b10:0x642,_0x24a348:0x72b,_0x1fa0c9:0x6a4,_0xc508a4:0x5b4,_0x180fb6:0x723,_0x396390:0x60b,_0x645178:0x553,_0x11cc1b:0x33c,_0x45332b:0x4d6,_0xae8a48:0x46b,_0x460379:0x3ac,_0x156f92:0x5e4,_0x19f2b3:0x4f6,_0x195db5:0x898,_0x14d72f:0x5b4,_0x44ba79:0x69a,_0x29a10f:0x5e0,_0x523be0:0x4ac,_0x4cbf15:0x599,_0x586032:0x68f,_0x526a44:0x76a,_0x16f08a:0x4b9,_0x4600e3:0x550,_0x1abf30:0x898,_0x130252:0x887},_0x29dc9f={_0x4ebeb8:0x17e},_0x1e17ed={};_0x1e17ed['CwjsK']=function(_0x394536,_0x372db4){return _0x394536===_0x372db4;};function _0x37ee76(_0x26d01b,_0x270e14){return _0x4985a8(_0x26d01b- -0x71,_0x270e14);}_0x1e17ed[_0x37ee76(0x4cc,0x300)]=_0x34735f(0x474,0x4b9),_0x1e17ed[_0x37ee76(_0xf97a92._0x889fd3,0x575)]='unknown';const _0x383849=_0x1e17ed;function _0x34735f(_0x489f01,_0x375ba1){return _0x4985a8(_0x375ba1- -_0x29dc9f._0x4ebeb8,_0x489f01);}try{const _0xe44531=JSON[_0x37ee76(0x70b,_0xf97a92._0x3d0002)](_0x16ec22);if(_0xe44531['type']!==_0x37ee76(_0xf97a92._0xe549e6,_0xf97a92._0x498b10)||_0xe44531['event']!=='device.p'+_0x37ee76(_0xf97a92._0x24a348,_0xf97a92._0x1fa0c9)+_0x37ee76(_0xf97a92._0xc508a4,0x424)||!_0xe44531[_0x37ee76(0x660,_0xf97a92._0x180fb6)])return null;const _0x3b9b7f=_0x383849[_0x34735f(0x30b,0x345)](typeof _0xe44531[_0x34735f(_0xf97a92._0x396390,_0xf97a92._0x645178)][_0x37ee76(0x4b9,_0xf97a92._0x11cc1b)+'d'],_0x37ee76(0x45e,_0xf97a92._0x45332b))?_0xe44531[_0x37ee76(0x660,_0xf97a92._0xae8a48)][_0x34735f(0x3b0,_0xf97a92._0x460379)+'d'][_0x37ee76(_0xf97a92._0x156f92,_0xf97a92._0x19f2b3)]():'';if(!_0x3b9b7f)return null;const _0x49950e=typeof _0xe44531['payload'][_0x37ee76(_0xf97a92._0x195db5,0x7c1)]==='string'?_0xe44531[_0x37ee76(0x660,_0xf97a92._0x14d72f)][_0x37ee76(0x898,_0xf97a92._0x44ba79)]:_0x34735f(_0xf97a92._0x29a10f,0x68f),_0x80611e=_0x49950e===_0x383849[_0x34735f(_0xf97a92._0x523be0,0x3bf)]||_0x49950e===_0x34735f(0x66f,_0xf97a92._0x4cbf15)?_0x49950e:_0x383849[_0x37ee76(_0xf97a92._0x586032,_0xf97a92._0x526a44)],_0x14fb54={};return _0x14fb54[_0x37ee76(_0xf97a92._0x16f08a,_0xf97a92._0x4600e3)+'d']=_0x3b9b7f,_0x14fb54[_0x37ee76(_0xf97a92._0x1abf30,_0xf97a92._0x130252)]=_0x80611e,_0x14fb54;}catch{return null;}}function firstString(..._0x20aeee){const _0x5a6527={_0x55c814:0x524,_0x4072a9:0x505,_0x1d074a:0x3c8},_0x540c49={_0x58a3df:0x200},_0x421fe5={};function _0x4f374a(_0x127f46,_0x49bca0){return _0x285196(_0x49bca0- -0x199,_0x127f46);}_0x421fe5['YaLqu']=function(_0x2e3085,_0x2aa903){return _0x2e3085===_0x2aa903;};const _0x2c26a9=_0x421fe5;for(const _0x2256b5 of _0x20aeee){if(_0x2c26a9[_0x5333dd(_0x5a6527._0x55c814,_0x5a6527._0x4072a9)](typeof _0x2256b5,'string')&&_0x2256b5[_0x5333dd(_0x5a6527._0x1d074a,0x1cb)]())return _0x2256b5[_0x5333dd(0x3c8,0x400)]();}function _0x5333dd(_0xacec96,_0x482e0e){return _0x285196(_0xacec96- -_0x540c49._0x58a3df,_0x482e0e);}return'';}function firstNullableString(_0xe4daeb){const _0x5a0bb3={_0x40a7d1:0x3a6,_0x3fa629:0x5e0,_0x48bc4d:0x443,_0x1cc228:0x383},_0x13dc62={_0x381d57:0xa2},_0x2abdad={};_0x2abdad[_0x20f7ab(_0x5a0bb3._0x40a7d1,_0x5a0bb3._0x3fa629)]=function(_0xd08fcd,_0x4ab120){return _0xd08fcd===_0x4ab120;};const _0x42c193=_0x2abdad;function _0x20f7ab(_0x9ebce8,_0x4417e6){return _0x285196(_0x4417e6- -0xbf,_0x9ebce8);}function _0x210e89(_0x1cdb09,_0x2d5a1e){return _0x285196(_0x2d5a1e- -_0x13dc62._0x381d57,_0x1cdb09);}return _0x42c193[_0x20f7ab(_0x5a0bb3._0x48bc4d,_0x5a0bb3._0x3fa629)](typeof _0xe4daeb,_0x20f7ab(0x2b1,_0x5a0bb3._0x1cc228))&&_0xe4daeb['trim']()?_0xe4daeb[_0x20f7ab(0x319,0x509)]():null;}function extractRequestIdFromMessage(_0x51fdb5){const _0x5319d0={_0x928881:0x5ef};function _0x19648a(_0x465063,_0x263ebe){return _0x4985a8(_0x263ebe- -_0x5319d0._0x928881,_0x465063);}const _0x4cb9a3=_0x51fdb5[_0x19648a(0x59,0x1d4)](/requestId[:\s]*([a-f0-9-]+)/i);return _0x4cb9a3?.[0x1]??null;}import{randomUUID as _0x4adff6}from'crypto';import{setTimeout as _0x51c4f7}from'timers/promises';import _0x2c411f from'ws';var HEARTBEAT_INTERVAL_MS=0x2710,HEARTBEAT_TIMEOUT_MS=0x88b8,GATEWAY_RETRY_DELAY_MS=0x4b0,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{['options'];[_0x285196(0x535,0x6dc)+'ket']=null;['gatewayS'+_0x4985a8(0x7e4,0x8c0)]=null;[_0x4985a8(0x761,0x5bb)+_0x285196(0x769,0x65e)]=![];[_0x4985a8(0x638,0x758)+_0x285196(0x54b,0x71f)+'g']=![];[_0x285196(0x660,0x84e)]=!![];[_0x4985a8(0x56b,0x640)+_0x4985a8(0x514,0x52a)]=0x0;[_0x4985a8(0x7cb,0x69c)+'yActivit'+_0x4985a8(0x598,0x52c)]=0x0;['reconnec'+'tTimer']=null;[_0x4985a8(0x6ac,0x478)+'etryTime'+'r']=null;['heartbea'+_0x285196(0x5e1,0x4a8)]=null;[_0x4985a8(0x702,0x512)+_0x285196(0x43f,0x2bd)+'ssages']=[];[_0x285196(0x84f,0x8c5)+_0x285196(0x770,0x54a)+_0x285196(0x59f,0x44f)]=![];['clientDe'+_0x285196(0x576,0x74e)+'tedAtMs']=null;[_0x285196(0x5ab,0x3de)+'onnected'+_0x285196(0x7eb,0x974)]=null;['snapshot'];constructor(_0x5326fc){const _0x432d4b={_0x55b4a7:0x4e6,_0x4537cd:0x77d,_0xfc015a:0x7de,_0x58c282:0x2f3};function _0xd242f3(_0x48bf0d,_0x248779){return _0x4985a8(_0x48bf0d- -0x9d,_0x248779);}this['options']=_0x5326fc;function _0xbe9865(_0x2d6832,_0x1b6626){return _0x4985a8(_0x2d6832- -0x58,_0x1b6626);}this[_0xbe9865(0x6d9,_0x432d4b._0x55b4a7)]={'running':![],'relayConnected':![],'gatewayConnected':![],'gatewayId':_0x5326fc[_0xd242f3(0x854,_0x432d4b._0x4537cd)]['gatewayI'+'d'],'instanceId':_0x5326fc[_0xbe9865(0x899,0x9a3)][_0xd242f3(0x63d,0x622)+'Id'],'relayUrl':_0x5326fc[_0xbe9865(0x899,_0x432d4b._0xfc015a)][_0xbe9865(0x457,_0x432d4b._0x58c282)],'gatewayUrl':_0x5326fc['gatewayU'+'rl'],'clientCount':0x0,'connectedDevices':[],'pendingPairRequests':[],'lastError':null,'lastUpdatedMs':Date[_0xd242f3(0x526,0x57c)]()};}[_0x4985a8(0x6ef,0x847)](){const _0x418ba1={_0xada68b:0x51e,_0x2e5858:0x604,_0x44b864:0x6e3,_0x239222:0x795,_0x28c4f3:0x7c1,_0x577d90:0x7d5,_0x273414:0x68b,_0x5e3edb:0x6aa,_0x49680c:0x7f1,_0x10fbd2:0x841,_0x2e8454:0x8f7,_0x6b639:0x7fb,_0x439b84:0x64d,_0x44a440:0x698,_0xb792dd:0x59a},_0x2df28a={_0x40bd40:0xf7},_0x4ee869={_0x1d70f1:0x104},_0x45967a=('2|4|3|0|'+'1')[_0xefa7bd(_0x418ba1._0xada68b,0x4ec)]('|');function _0x556164(_0x3a67f7,_0x2e1a55){return _0x4985a8(_0x3a67f7-_0x4ee869._0x1d70f1,_0x2e1a55);}function _0xefa7bd(_0x3de2d0,_0x3e7760){return _0x4985a8(_0x3e7760- -_0x2df28a._0x40bd40,_0x3de2d0);}let _0x48afa9=0x0;while(!![]){switch(_0x45967a[_0x48afa9++]){case'0':this[_0x556164(_0x418ba1._0x2e5858,0x58f)]('runtime\x20'+_0x556164(0x5fe,_0x418ba1._0x44b864)+'\x20gateway'+'Id='+this['options'][_0xefa7bd(0x9e5,0x7fa)]['gatewayI'+'d']+('\x20gateway'+_0x556164(0x9e5,0x94b))+this[_0x556164(_0x418ba1._0x239222,_0x418ba1._0x28c4f3)][_0xefa7bd(0x61d,_0x418ba1._0x577d90)+'rl']);continue;case'1':void this[_0x556164(0x6d5,_0x418ba1._0x273414)+_0xefa7bd(_0x418ba1._0x5e3edb,0x717)]();continue;case'2':if(!this[_0x556164(_0x418ba1._0x49680c,_0x418ba1._0x10fbd2)])return;continue;case'3':this[_0x556164(_0x418ba1._0x2e8454,_0x418ba1._0x6b639)+_0xefa7bd(_0x418ba1._0x439b84,_0x418ba1._0x44a440)]({'running':!![],'gatewayUrl':this[_0xefa7bd(0x670,_0x418ba1._0xb792dd)]['gatewayU'+'rl']});continue;case'4':this[_0x556164(_0x418ba1._0x49680c,0x8bd)]=![];continue;}break;}}async[_0x4985a8(0x654,0x4b4)](){const _0x2df04f={_0x4780e1:0x209,_0x8b0c1:0x561,_0x11ce6f:0x810,_0x33d262:0x87a,_0x29a5e7:0x88c,_0x106c9b:0x829,_0x3b4c36:0x4a4,_0x4ef772:0x379,_0x2ff28e:0x4f8,_0x4cdd1f:0x66b,_0x2e04c1:0x2e3,_0x543300:0x177,_0x46ced8:0x719,_0x2326d4:0x873,_0x33776f:0x664,_0x263443:0x604,_0x422a94:0x40b,_0x322856:0x3d8,_0x44ba92:0x9b,_0x2e338e:0x27a,_0xd2df0c:0x278,_0x5ed8e8:0x62d,_0x50fcfa:0x437,_0x1a818f:0x43d,_0x5b0647:0x28f,_0x4954e5:0xe8,_0x1c36ee:0x4f5,_0x12336f:0x5ee,_0x35f098:0x61e,_0x285d4a:0x7d9,_0x106b98:0x663,_0x49c3c6:0x5cb,_0x1c3feb:0x833},_0x45d35e={_0x289244:0x2c};function _0x147c84(_0x50ad4b,_0x33773a){return _0x4985a8(_0x50ad4b-_0x45d35e._0x289244,_0x33773a);}const _0x2988fd=('15|11|14'+_0x3d8f1b(0x58f,0x54e)+_0x3d8f1b(_0x2df04f._0x4780e1,0x2d0)+_0x147c84(_0x2df04f._0x8b0c1,0x6b7)+_0x147c84(0x84e,0x6f0))['split']('|');function _0x3d8f1b(_0x42123e,_0x1b850c){return _0x4985a8(_0x1b850c- -0x389,_0x42123e);}let _0x291d2a=0x0;while(!![]){switch(_0x2988fd[_0x291d2a++]){case'0':this[_0x3d8f1b(0x3cc,0x437)+_0x147c84(_0x2df04f._0x11ce6f,_0x2df04f._0x33d262)]?.[_0x147c84(0x5cb,0x5ab)]();continue;case'1':this[_0x147c84(0x908,_0x2df04f._0x29a5e7)+_0x147c84(_0x2df04f._0x106c9b,0x99d)+_0x3d8f1b(_0x2df04f._0x3b4c36,0x2a3)]=![];continue;case'2':this[_0x3d8f1b(0x2fd,_0x2df04f._0x4ef772)+_0x147c84(_0x2df04f._0x2ff28e,_0x2df04f._0x4cdd1f)+_0x3d8f1b(_0x2df04f._0x2e04c1,0x241)]=[];continue;case'3':this[_0x3d8f1b(0x203,_0x2df04f._0x543300)]('runtime\x20'+_0x147c84(_0x2df04f._0x46ced8,_0x2df04f._0x2326d4));continue;case'4':this[_0x147c84(_0x2df04f._0x33776f,0x65d)+_0x147c84(_0x2df04f._0x263443,0x554)+'g']=![];continue;case'5':await _0x51c4f7(0x19);continue;case'6':this[_0x3d8f1b(_0x2df04f._0x422a94,_0x2df04f._0x322856)+'necting']=![];continue;case'7':this[_0x3d8f1b(0x33d,0x477)+_0x3d8f1b(_0x2df04f._0x44ba92,_0x2df04f._0x2e338e)+_0x3d8f1b(_0x2df04f._0xd2df0c,0x1ef)]=null;continue;case'8':this[_0x3d8f1b(_0x2df04f._0x5ed8e8,_0x2df04f._0x50fcfa)+'ocket']=null;continue;case'9':this['relaySoc'+_0x3d8f1b(0x629,0x424)]=null;continue;case'10':this[_0x147c84(_0x2df04f._0x33776f,0x860)+_0x3d8f1b(0x37f,0x215)+_0x3d8f1b(_0x2df04f._0x1a818f,0x4ef)]=null;continue;case'11':this[_0x147c84(0x719,0x8a6)]=!![];continue;case'12':const _0x331099={};_0x331099[_0x147c84(0x65a,0x430)]=![],_0x331099[_0x147c84(0x78d,0x8ea)+_0x3d8f1b(0x1cf,_0x2df04f._0x5b0647)]=![],_0x331099['gatewayC'+_0x3d8f1b(_0x2df04f._0x4954e5,0x215)]=![],_0x331099[_0x147c84(_0x2df04f._0x1c36ee,0x5bd)+'unt']=0x0,_0x331099[_0x3d8f1b(0x47e,0x346)+'r']=null,this['updateSn'+'apshot'](_0x331099);continue;case'13':this[_0x147c84(_0x2df04f._0x12336f,_0x2df04f._0x35f098)+_0x147c84(_0x2df04f._0x285d4a,_0x2df04f._0x106b98)]?.[_0x147c84(_0x2df04f._0x49c3c6,0x4b3)]();continue;case'14':this[_0x147c84(0x649,0x64b)+'ers']();continue;case'15':if(this[_0x147c84(0x719,_0x2df04f._0x1c3feb)])return;continue;}break;}}async[_0x4985a8(0x4c5,0x6aa)+'airReque'+'st'](_0x2d7b9d){const _0x1943fb={_0x5b71d3:0x5d9,_0x575a89:0x3a8,_0x397976:0x8fe,_0x3cba21:0x701,_0x558d30:0x726,_0x3592e2:0x1c8,_0x3ac06d:0x33a,_0x30e6f1:0x4d9,_0x17b358:0x61b,_0x581fd8:0x5c8},_0x26ca7a={_0x456c81:0x5d};function _0x374f66(_0x5ed78d,_0x35f5de){return _0x4985a8(_0x35f5de-_0x26ca7a._0x456c81,_0x5ed78d);}const _0x403886={};_0x403886[_0x19e745(_0x1943fb._0x5b71d3,_0x1943fb._0x575a89)+'d']=_0x2d7b9d;function _0x19e745(_0x48e2a8,_0x10473e){return _0x4985a8(_0x10473e- -0x182,_0x48e2a8);}this['sendGate'+_0x374f66(_0x1943fb._0x397976,_0x1943fb._0x3cba21)+'st'](_0x19e745(0x8a4,_0x1943fb._0x558d30)+_0x19e745(0x24a,0x3de)+'ove',_0x403886),this[_0x19e745(_0x1943fb._0x3592e2,_0x1943fb._0x3ac06d)+_0x19e745(_0x1943fb._0x30e6f1,_0x1943fb._0x17b358)+'esolved'](_0x2d7b9d,_0x374f66(_0x1943fb._0x581fd8,0x694));}async[_0x4985a8(0x528,0x358)+_0x285196(0x593,0x53b)+'t'](_0x490efc){const _0x2e3fe2={_0x1e2e03:0x57a,_0x2781ef:0x5b1,_0x2e562c:0x61e,_0x585f84:0x601,_0x4da57b:0x70b,_0x1beff4:0x642,_0x5e7d4c:0x3b5,_0x4b7061:0x427,_0x359a72:0x4ca};function _0x4ea529(_0x20976f,_0x3548c0){return _0x285196(_0x20976f-0x7,_0x3548c0);}const _0x560987={};_0x560987['KvUjo']=_0x14e64b(_0x2e3fe2._0x1e2e03,0x5a0);const _0x10d406=_0x560987,_0x3cf494={};_0x3cf494[_0x14e64b(0x38d,_0x2e3fe2._0x2781ef)+'d']=_0x490efc;function _0x14e64b(_0x25212e,_0x4144c8){return _0x285196(_0x25212e- -0x110,_0x4144c8);}this['sendGate'+_0x4ea529(_0x2e3fe2._0x2e562c,_0x2e3fe2._0x585f84)+'st'](_0x14e64b(_0x2e3fe2._0x4da57b,_0x2e3fe2._0x1beff4)+'air.reje'+'ct',_0x3cf494),this[_0x14e64b(0x31f,_0x2e3fe2._0x5e7d4c)+_0x14e64b(0x600,0x3d1)+_0x4ea529(_0x2e3fe2._0x4b7061,_0x2e3fe2._0x359a72)](_0x490efc,_0x10d406['KvUjo']);}[_0x4985a8(0x5e1,0x79f)+_0x285196(0x5eb,0x3dd)](){const _0x3f8842={_0x13c431:0x3b4,_0xea78e2:0x87,_0x1688fb:0xa5,_0x98ea5a:0x4c7,_0x2d0f8c:0x2eb,_0x240c48:0x196,_0x3e2ce1:0x1ba,_0x277362:0x21a,_0x252c51:0x575},_0x1fdd44={...this[_0x15fedf(_0x3f8842._0x13c431,0x205)]};function _0x15fedf(_0x4a0fc1,_0x2d0f99){return _0x285196(_0x4a0fc1- -0x2f0,_0x2d0f99);}_0x1fdd44[_0x2c9343(-_0x3f8842._0xea78e2,_0x3f8842._0x1688fb)+_0x15fedf(0x42d,_0x3f8842._0x98ea5a)]=[...this[_0x15fedf(_0x3f8842._0x13c431,_0x3f8842._0x2d0f8c)][_0x15fedf(_0x3f8842._0x240c48,-0x18)+'dDevices']];function _0x2c9343(_0x49d5f5,_0x47be94){return _0x285196(_0x49d5f5- -0x50d,_0x47be94);}return _0x1fdd44['pendingP'+_0x2c9343(_0x3f8842._0x3e2ce1,0x3da)+_0x15fedf(_0x3f8842._0x277362,0x3b0)]=[...this[_0x15fedf(0x3b4,_0x3f8842._0x252c51)][_0x15fedf(0x454,0x277)+_0x2c9343(0x1ba,0xb)+_0x2c9343(-0x3,-0x106)]],_0x1fdd44;}async[_0x285196(0x544,0x415)+_0x4985a8(0x80e,0x6d5)](){const _0x1f4ab5={_0x31dc7f:0x8f2,_0x4a95ff:0x6b3,_0x10c000:0x708,_0x4c39a7:0x1aa,_0x27e926:0xee,_0x17d36c:0x132,_0x56c68e:0xf5,_0x464a1c:0x5c6,_0x1d6c22:0x530,_0x384348:0x741,_0x371f55:0x40f,_0x598d56:0x636,_0x178bda:0x5f3,_0x2bb2fe:0x8bf,_0x37b42f:0x2e0,_0x43022a:0x8c0,_0x2004f8:0x6fb,_0x3d82c3:0x71c,_0x32daec:0x97e,_0x17db91:0x5a,_0x443489:0x2b3,_0x471e08:0x62d,_0x25edee:0x33},_0x4f5a32={_0x1c2932:0xc6,_0x5551b1:0xb5,_0x2782c1:0x4a7,_0x380ead:0x569,_0x11e4db:0x2b6,_0x4b0635:0x304,_0x3d61da:0x25b,_0x10c5a3:0x380,_0x56244a:0x440,_0x2d3d7c:0x777,_0x319f2b:0x509,_0x182f7e:0x512,_0x5c4d19:0x627,_0x589c24:0x3df,_0x12f979:0x498,_0x56b4f7:0x36,_0x59088c:0x89},_0x139a0b={_0x1a446d:0x661},_0x31378a={_0x57f25d:0x2fe,_0x384748:0x215,_0x1d8b24:0xee,_0x3c1264:0x22a,_0x4109d6:0x157},_0x57ba50={_0x23c563:0x5d2},_0x21794d={_0x1621e5:0x3ec},_0x425704={_0x102d38:0x2aa,_0x5ce3aa:0x432,_0x1d3b24:0x280,_0x42f9a7:0x2f6,_0x29e65f:0x2ab,_0x2bb3b4:0x3a5,_0x1fb36c:0x449,_0x439c3f:0x300,_0xadc0f4:0x6bc,_0x25482d:0x516,_0x525e2a:0x331,_0x200c9e:0x26a,_0x31ece7:0x48d,_0x4920c2:0x4c1,_0x3fe26d:0x57c,_0x3eedb8:0x447,_0x89d1dd:0x3b3,_0xf46c0:0x354,_0x1c2513:0x38b,_0x463e8a:0x4e3,_0x3b13c3:0x2b3},_0x36598a={_0x2ea28a:0x5b7},_0x473a04={'RSofQ':function(_0x1f7298,_0x31d5b2){return _0x1f7298(_0x31d5b2);},'TadMK':function(_0x221005,_0x49a708){return _0x221005*_0x49a708;},'xEWHu':_0x44040c(0x78f,0x692),'sxysX':_0x44040c(_0x1f4ab5._0x31dc7f,0x864),'HSveZ':_0x44040c(_0x1f4ab5._0x4a95ff,_0x1f4ab5._0x10c000),'SmODZ':'close'};if(this['stopped']||this[_0x20ad67(_0x1f4ab5._0x4c39a7,0x82)+_0x20ad67(0x23f,_0x1f4ab5._0x27e926)]||this[_0x20ad67(_0x1f4ab5._0x17d36c,-_0x1f4ab5._0x56c68e)+_0x44040c(0x6b7,0x832)]())return;function _0x20ad67(_0x5f44e3,_0x222550){return _0x4985a8(_0x5f44e3- -_0x36598a._0x2ea28a,_0x222550);}this[_0x44040c(0x77d,_0x1f4ab5._0x464a1c)+_0x20ad67(0x23f,0xa4)]=!![],this['relayAtt'+_0x44040c(_0x1f4ab5._0x1d6c22,0x34f)]+=0x1;const _0xb5d1e3=this[_0x44040c(0x587,_0x1f4ab5._0x384348)+_0x44040c(0x530,0x756)],_0x1f3ba1=buildRelayWsUrl(this[_0x44040c(0x6ad,0x65d)][_0x20ad67(0x33a,_0x1f4ab5._0x371f55)]);this['log'](_0x44040c(_0x1f4ab5._0x598d56,_0x1f4ab5._0x178bda)+_0x44040c(0x80a,_0x1f4ab5._0x2bb2fe)+_0x20ad67(0x20b,_0x1f4ab5._0x37b42f)+_0xb5d1e3+'\x20url='+redactRelayWsUrl(_0x1f3ba1));const _0x368e69=new _0x2c411f(_0x1f3ba1,{'maxPayload':_0x473a04[_0x44040c(0x81d,_0x1f4ab5._0x43022a)](0x19,0x400)*0x400});this[_0x44040c(0x5de,_0x1f4ab5._0x2004f8)+_0x20ad67(0x1f6,0x3ae)]=_0x368e69;function _0x44040c(_0x23f6ef,_0x32219e){return _0x4985a8(_0x23f6ef-0x1c,_0x32219e);}_0x368e69[_0x44040c(0x62d,_0x1f4ab5._0x3d82c3)](_0x473a04[_0x44040c(0x8c8,0x898)],()=>{function _0x1568b6(_0x3b299f,_0x1c7bd2){return _0x20ad67(_0x3b299f-0x29f,_0x1c7bd2);}if(this['stopped']||this[_0x1568b6(_0x425704._0x102d38,0x3dd)+'ket']!==_0x368e69){_0x368e69[_0x1568b6(0x287,_0x425704._0x5ce3aa)]();return;}this[_0x5665f9(0x567,0x484)+'necting']=![],this[_0x5665f9(0x41e,0x4ee)+'yActivit'+_0x1568b6(_0x425704._0x1d3b24,_0x425704._0x42f9a7)]=Date[_0x1568b6(_0x425704._0x29e65f,_0x425704._0x2bb3b4)]();const _0x4b9941={};_0x4b9941[_0x1568b6(_0x425704._0x1fb36c,0x421)+_0x1568b6(_0x425704._0x439c3f,0x36e)]=!![],_0x4b9941['lastErro'+'r']=null,this[_0x5665f9(_0x425704._0xadc0f4,_0x425704._0x25482d)+_0x5665f9(_0x425704._0x525e2a,0x4b2)](_0x4b9941),this[_0x1568b6(0x1e8,_0x425704._0x200c9e)](_0x1568b6(0x302,_0x425704._0x31ece7)+_0x1568b6(_0x425704._0x4920c2,_0x425704._0x3fe26d)+_0x5665f9(_0x425704._0x3eedb8,0x2b3)+_0xb5d1e3);function _0x5665f9(_0x99cb00,_0x3feea6){return _0x20ad67(_0x3feea6-0x2da,_0x99cb00);}this[_0x5665f9(0x417,0x4c2)+_0x1568b6(_0x425704._0x89d1dd,0x47e)](),this[_0x1568b6(_0x425704._0xf46c0,_0x425704._0x1c2513)+_0x1568b6(_0x425704._0x463e8a,_0x425704._0x3b13c3)+_0x1568b6(0x300,0x2e6)]();}),_0x368e69['on'](_0x473a04['sxysX'],(_0x4bf84d,_0x3603a7)=>{const _0x1aaa33={_0x2c0130:0x4b7};function _0x1b9e53(_0x1f09ac,_0x4143b4){return _0x44040c(_0x4143b4- -_0x1aaa33._0x2c0130,_0x1f09ac);}void this['handleRe'+_0x1b9e53(0x3fa,_0x21794d._0x1621e5)+'ge'](_0x4bf84d,_0x3603a7);}),_0x368e69['on'](_0x473a04[_0x44040c(0x818,_0x1f4ab5._0x32daec)],()=>{function _0x2808e9(_0x191167,_0x2d1cf0){return _0x44040c(_0x2d1cf0- -_0x57ba50._0x23c563,_0x191167);}function _0x5ee426(_0x363234,_0x13ab54){return _0x44040c(_0x363234- -0x4c6,_0x13ab54);}this[_0x2808e9(_0x31378a._0x57f25d,_0x31378a._0x384748)+'yActivit'+_0x5ee426(_0x31378a._0x1d8b24,_0x31378a._0x3c1264)]=Date[_0x2808e9(-_0x31378a._0x4109d6,0xd)]();}),_0x368e69[_0x20ad67(_0x1f4ab5._0x17db91,-0x167)](_0x20ad67(_0x1f4ab5._0x443489,0x334),_0x26b024=>{const _0x56e8d1={_0x146da6:0x5f9};function _0x49912f(_0x333471,_0x56f4c2){return _0x20ad67(_0x56f4c2-_0x56e8d1._0x146da6,_0x333471);}function _0x23235f(_0x370a49,_0x37739e){return _0x20ad67(_0x370a49-0x680,_0x37739e);}this[_0x49912f(0x629,0x542)](_0x23235f(0x816,_0x139a0b._0x1a446d)+'ror:\x20'+_0x473a04[_0x23235f(0x6ff,0x6c0)](String,_0x26b024));}),_0x368e69[_0x44040c(_0x1f4ab5._0x471e08,0x517)](_0x473a04[_0x20ad67(0x163,_0x1f4ab5._0x25edee)],(_0x20f54a,_0x2cd2da)=>{function _0x5e86e7(_0x47ff84,_0x50c054){return _0x20ad67(_0x47ff84-0x3bf,_0x50c054);}this[_0x5e86e7(0x3ca,0x4e1)+'ket']===_0x368e69&&(this[_0x3fd821(_0x4f5a32._0x1c2932,_0x4f5a32._0x5551b1)+_0x5e86e7(0x5b5,_0x4f5a32._0x2782c1)]=null);this[_0x5e86e7(_0x4f5a32._0x380ead,0x4bc)+_0x3fd821(0x2fa,_0x4f5a32._0x11e4db)]=![],this[_0x3fd821(0x171,0x303)+'tbeat'](),this[_0x3fd821(_0x4f5a32._0x4b0635,0x1b3)+_0x3fd821(0x107,_0x4f5a32._0x3d61da)+_0x5e86e7(_0x4f5a32._0x10c5a3,0x4db)]=null;function _0x3fd821(_0x1b8e26,_0x549b0c){return _0x20ad67(_0x1b8e26-0xbb,_0x549b0c);}this[_0x5e86e7(_0x4f5a32._0x56244a,0x408)+'onnected'+_0x3fd821(0x37c,0x16b)]=null,this[_0x5e86e7(0x5fb,_0x4f5a32._0x2d3d7c)+'apshot']({'relayConnected':![],'gatewayConnected':![],'clientCount':0x0,'lastError':_0x20f54a===0x3e8?null:_0x5e86e7(_0x4f5a32._0x319f2b,_0x4f5a32._0x182f7e)+_0x5e86e7(0x517,_0x4f5a32._0x5c4d19)+(_0x2cd2da['toString']()||_0x20f54a)}),this['log'](_0x3fd821(_0x4f5a32._0x589c24,_0x4f5a32._0x12f979)+_0x3fd821(0x68,-_0x4f5a32._0x56b4f7)+'ed\x20code='+_0x20f54a+'\x20reason='+(_0x2cd2da[_0x3fd821(-0x1,_0x4f5a32._0x59088c)]()||_0x3fd821(0x1ff,0x221))),this[_0x3fd821(0x1ac,-0x53)+'eway'](),this[_0x5e86e7(0x3b3,0x44f)+'RelayRec'+_0x3fd821(0x19d,0x79)]();});}async[_0x4985a8(0x84a,0x7c9)+_0x285196(0x7fa,0x857)+'ge'](_0x2cebf7,_0x4cb8db){const _0x3d62f0={_0x5a446d:0x1e6,_0x21c9b0:0x3a2,_0xc9792a:0x7c6,_0x132719:0x767,_0x509274:0x2bc,_0x2bcd75:0x3c0,_0x382492:0x4c2,_0x45399c:0x53e,_0x5ec2b8:0x353,_0x3ec39b:0x6fd,_0x137e60:0x8fa,_0x4592b5:0x971,_0x33801f:0x4e1,_0x48e34d:0x70d,_0x1b9b83:0x1bf,_0x3a3d31:0x3d4,_0x221cb4:0x5ca,_0x7b9f57:0x7cc,_0x3a6447:0x1fa,_0x294048:0x124,_0x2e6717:0x1fa,_0x497d1e:0x7e4,_0x4270b7:0x1fc},_0x4a8bf0={_0x1d9f55:0xb0},_0x848a27={_0x264e00:0x3b2},_0x26aeb6={'UPdyy':function(_0x1b6639,_0x1a48c4){return _0x1b6639(_0x1a48c4);},'klrSL':function(_0x2b99a0,_0x4d3e01){return _0x2b99a0==_0x4d3e01;}};function _0x43d794(_0x29eba9,_0x5f359a){return _0x4985a8(_0x29eba9- -_0x848a27._0x264e00,_0x5f359a);}this[_0x43d794(0x419,0x270)+'yActivit'+_0x43d794(_0x3d62f0._0x5a446d,0x318)]=Date['now']();if(_0x4cb8db){this[_0x43d794(0x569,_0x3d62f0._0x21c9b0)+_0x1b07a5(_0x3d62f0._0xc9792a,0x8fd)+'tewayMes'+_0x1b07a5(0x91e,_0x3d62f0._0x132719)]({'kind':_0x43d794(0xff,_0x3d62f0._0x509274),'data':_0x26aeb6[_0x43d794(0x53e,0x76e)](normalizeBinary,_0x2cebf7)});return;}const _0x1ead6b=normalizeText(_0x2cebf7);if(_0x26aeb6[_0x43d794(_0x3d62f0._0x2bcd75,_0x3d62f0._0x382492)](_0x1ead6b,null))return;const _0x4eb949=_0x26aeb6[_0x43d794(_0x3d62f0._0x45399c,_0x3d62f0._0x5ec2b8)](parseControl,_0x1ead6b);if(_0x4eb949){this[_0x1b07a5(_0x3d62f0._0x3ec39b,_0x3d62f0._0x137e60)+_0x1b07a5(_0x3d62f0._0x4592b5,0x96f)+'ol'](_0x4eb949[_0x43d794(_0x3d62f0._0x33801f,_0x3d62f0._0x48e34d)],_0x4eb949[_0x43d794(_0x3d62f0._0x1b9b83,-0x45)]);return;}const _0x3bf3bf=parseConnectStartIdentity(_0x1ead6b);_0x3bf3bf&&this[_0x43d794(0x483,0x507)+_0x43d794(_0x3d62f0._0x3a3d31,_0x3d62f0._0x221cb4)+_0x1b07a5(0x7d6,_0x3d62f0._0x7b9f57)](_0x3bf3bf['id'],_0x3bf3bf[_0x43d794(0x248,0x460)]);const _0x48d7da={};_0x48d7da[_0x1b07a5(0x745,0x801)]=_0x43d794(_0x3d62f0._0x3a6447,_0x3d62f0._0x294048);function _0x1b07a5(_0x25c736,_0x5d530c){return _0x4985a8(_0x5d530c-_0x4a8bf0._0x1d9f55,_0x25c736);}_0x48d7da[_0x43d794(_0x3d62f0._0x2e6717,0x271)]=_0x1ead6b,this[_0x1b07a5(_0x3d62f0._0x497d1e,0x9cb)+_0x1b07a5(0x873,0x8fd)+_0x43d794(0x18e,0x4f)+_0x43d794(0x305,_0x3d62f0._0x4270b7)](_0x48d7da);}['handleRe'+_0x4985a8(0x8bf,0x87e)+'ol'](_0xaf61cd,_0x52a1d8){const _0x1d0c2e={_0x27593d:0x290,_0x3eb5ed:0x2ce,_0x3879d3:0x459,_0xb1752b:0x774,_0x5108e1:0x5c4,_0x1e9ad6:0x6c4,_0xe21070:0x675,_0x276628:0x6f3,_0x44493c:0x594,_0x200d82:0x664,_0x1aded0:0x455,_0x3032af:0x615,_0x41c8a7:0x431,_0x708401:0x571,_0x3a4318:0x372,_0x474b07:0x3bc,_0x3bf113:0x7cb,_0x1bb77f:0x5bc,_0x3ec351:0x3f9,_0x25ecbc:0x1f6,_0x88d04b:0x7c1,_0x18e929:0x4e0,_0xc9fb:0x5ef,_0x5bddb6:0x4a1,_0x4c82b8:0x2d1,_0x35a799:0x3cf,_0x2926b9:0x6f5,_0x5a3f6f:0x710,_0x2714b8:0x76d,_0x4a5aad:0x60f,_0x154e93:0x59e,_0x5772c6:0x4b6,_0x4b50d6:0x643,_0x4f316f:0x551,_0x916821:0x542,_0x4f5293:0x603,_0x14378c:0x3f4,_0x496174:0x3ac,_0x55d6b9:0x6a7,_0x38ebef:0x5b8,_0x1404a0:0x59a,_0x4e1037:0x271,_0x5f096f:0x45f,_0x2612fa:0x6e1,_0x2067a0:0x783,_0x5373f8:0x577,_0x1b45f1:0x1fd,_0x131fa0:0x570,_0x48390f:0x76d,_0x4e8916:0x5ff,_0x4d6af9:0x5c7,_0x261c1f:0x6a8,_0xb3cb0d:0x6b9,_0x171d96:0x56a,_0x432a2d:0x390,_0x133f39:0x782,_0x3a77f4:0x61e,_0x12ed2b:0x6ec,_0x1eccfa:0x527,_0x475eb5:0x381,_0x56af8b:0x727,_0x225544:0x544,_0x1081aa:0x68a,_0x306589:0x156,_0x41ef9c:0x7eb,_0x56d616:0x40d,_0x591262:0x5d0,_0x6cae10:0x55e,_0x2da53b:0x44b,_0x314409:0x412,_0x2878df:0x3a3,_0x2f705d:0x2e9,_0x59b054:0x7d3,_0x42593a:0x6ed,_0x3ab4eb:0x4fb,_0x446e7a:0x55b,_0x365011:0x611,_0x4c0e16:0x7dd,_0x105c20:0x672,_0x2173c3:0x431,_0x5eaa68:0x648,_0xb81420:0x471,_0x2096a8:0x67e,_0x2cd617:0x600,_0x50bfee:0x5a9,_0x4e6a7a:0x2dd,_0x42c22b:0x32f,_0x351374:0x366,_0x3d312c:0x4ef,_0x30adf1:0x653,_0x3f4d7e:0x4ba,_0xf0edc0:0x2c1,_0x2649dc:0x2ce,_0x18af75:0x591},_0x1fcf6b={_0x43424e:0x1fb},_0x43948d={_0x4a8ff2:0x18b};function _0x5cf4b7(_0x1f9d00,_0x1eaf1a){return _0x4985a8(_0x1eaf1a- -_0x43948d._0x4a8ff2,_0x1f9d00);}const _0x1409cb={'iYuTw':function(_0x4f6d96,_0x531280){return _0x4f6d96===_0x531280;},'rTbvC':function(_0x4ad98a,_0x12ba8d){return _0x4ad98a(_0x12ba8d);}};function _0x5ec88e(_0x5c2598,_0x338bc8){return _0x4985a8(_0x5c2598- -_0x1fcf6b._0x43424e,_0x338bc8);}if(_0xaf61cd===_0x5ec88e(0x429,0x2e7)+'onnected'||_0xaf61cd==='client_c'+_0x5cf4b7(_0x1d0c2e._0x27593d,0x3ae)){const _0x574208=this['snapshot'][_0x5ec88e(_0x1d0c2e._0x3eb5ed,0x3e3)+_0x5cf4b7(0x3ed,_0x1d0c2e._0x3879d3)],_0x5ac73b=_0x52a1d8??Math[_0x5cf4b7(_0x1d0c2e._0xb1752b,_0x1d0c2e._0x5108e1)](0x1,this['snapshot'][_0x5cf4b7(0x3b9,0x33e)+'unt']);_0x5ac73b>0x0&&this[_0x5cf4b7(_0x1d0c2e._0x1e9ad6,_0x1d0c2e._0xe21070)+_0x5ec88e(0x408,0x4fa)+'tedAtMs']==null&&(this['clientDe'+_0x5ec88e(0x408,0x3d9)+_0x5ec88e(0x37d,0x4ce)]=Date['now']());const _0x1d338c={};_0x1d338c[_0x5ec88e(0x2ce,_0x1d0c2e._0x3eb5ed)+_0x5ec88e(0x3e9,0x4b5)]=_0x5ac73b,this[_0x5cf4b7(_0x1d0c2e._0x276628,0x668)+_0x5ec88e(_0x1d0c2e._0x44493c,_0x1d0c2e._0x200d82)](_0x1d338c);if(_0x1409cb[_0x5ec88e(_0x1d0c2e._0x1aded0,0x4e1)](_0x5ac73b,0x0))this[_0x5ec88e(0x6e1,_0x1d0c2e._0x3032af)+_0x5cf4b7(0x851,0x672)+_0x5ec88e(_0x1d0c2e._0x41c8a7,0x593)]=![],this['markDevi'+_0x5ec88e(_0x1d0c2e._0x708401,_0x1d0c2e._0x3a4318)+'t'](),this[_0x5ec88e(0x305,_0x1d0c2e._0x474b07)]('client\x20d'+'emand\x20dr'+'opped\x20to'+_0x5ec88e(0x64b,_0x1d0c2e._0x3bf113)+_0x5ec88e(_0x1d0c2e._0x1bb77f,_0x1d0c2e._0x3ec351)+_0x5ec88e(0x609,0x3d5)+_0x5ec88e(0x3a3,_0x1d0c2e._0x25ecbc));else{if(shouldRecycleGatewayForFreshClient(_0x574208,_0x5ac73b,this[_0x5cf4b7(_0x1d0c2e._0x88d04b,0x6d7)+_0x5cf4b7(_0x1d0c2e._0x18e929,_0x1d0c2e._0xc9fb)](),![])){const _0x11f1cb=summarizePendingGatewayMessages(this[_0x5cf4b7(_0x1d0c2e._0x5bddb6,0x577)+_0x5ec88e(_0x1d0c2e._0x4c82b8,0x366)+_0x5ec88e(_0x1d0c2e._0x35a799,0x555)]);this['log'](_0x5cf4b7(0x8b1,_0x1d0c2e._0x2926b9)+_0x5cf4b7(0x790,0x6e8)+_0x5ec88e(_0x1d0c2e._0x5a3f6f,_0x1d0c2e._0x2714b8)+_0x5ec88e(_0x1d0c2e._0x4a5aad,0x831)+'esh\x20clie'+_0x5cf4b7(_0x1d0c2e._0x154e93,_0x1d0c2e._0x5772c6)+_0x5ec88e(_0x1d0c2e._0x4b50d6,_0x1d0c2e._0x4f316f)+'='+_0x11f1cb['total']+(_0x5cf4b7(_0x1d0c2e._0x916821,_0x1d0c2e._0x4f5293)+'=')+_0x11f1cb[_0x5ec88e(0x3d6,_0x1d0c2e._0x14378c)+'equests']+_0x5cf4b7(0x2d2,_0x1d0c2e._0x496174)+_0x11f1cb[_0x5cf4b7(_0x1d0c2e._0x55d6b9,_0x1d0c2e._0x38ebef)+'t']+_0x5ec88e(_0x1d0c2e._0x1404a0,0x3ee)+_0x11f1cb[_0x5cf4b7(_0x1d0c2e._0x4e1037,0x326)]+('\x20handsha'+_0x5ec88e(_0x1d0c2e._0x5f096f,0x5dc)+'d=')+this[_0x5ec88e(_0x1d0c2e._0x2612fa,_0x1d0c2e._0x2067a0)+_0x5ec88e(0x602,0x478)+'Started']);const _0xa7e9f4=_0x1409cb[_0x5ec88e(0x3be,0x264)](prunePendingGatewayMessagesForFreshDemand,this['pendingG'+_0x5cf4b7(0x415,0x341)+_0x5cf4b7(0x4b5,0x43f)]);_0xa7e9f4['dropped']>0x0&&(this[_0x5cf4b7(0x748,_0x1d0c2e._0x5373f8)+_0x5ec88e(0x2d1,_0x1d0c2e._0x1b45f1)+'ssages']=_0xa7e9f4[_0x5cf4b7(_0x1d0c2e._0x131fa0,0x61e)],this[_0x5cf4b7(0x36c,0x375)](_0x5cf4b7(_0x1d0c2e._0x48390f,_0x1d0c2e._0x4e8916)+'stale\x20ga'+_0x5ec88e(0x43a,_0x1d0c2e._0x4d6af9)+_0x5cf4b7(0x521,0x4d4)+_0x5cf4b7(_0x1d0c2e._0x261c1f,_0x1d0c2e._0xb3cb0d)+'le\x20dropp'+_0x5cf4b7(0x89f,0x705)+_0xa7e9f4[_0x5ec88e(_0x1d0c2e._0x171d96,0x64c)]+_0x5cf4b7(0x565,_0x1d0c2e._0x432a2d)+_0xa7e9f4[_0x5cf4b7(_0x1d0c2e._0x133f39,_0x1d0c2e._0x3a77f4)][_0x5cf4b7(0x60a,_0x1d0c2e._0x12ed2b)])),this[_0x5ec88e(0x4ad,0x686)+_0x5cf4b7(_0x1d0c2e._0x1eccfa,0x628)]();}if(this[_0x5ec88e(0x667,0x673)+_0x5cf4b7(_0x1d0c2e._0x5f096f,_0x1d0c2e._0xc9fb)]()){const _0x130619={};_0x130619[_0x5cf4b7(0x6e7,0x4ad)+_0x5cf4b7(_0x1d0c2e._0x475eb5,0x413)]=!![],_0x130619[_0x5cf4b7(_0x1d0c2e._0x56af8b,_0x1d0c2e._0x225544)+'r']=null,this['updateSn'+_0x5cf4b7(_0x1d0c2e._0x1081aa,0x604)](_0x130619),this[_0x5ec88e(0x305,_0x1d0c2e._0x306589)](_0x5cf4b7(_0x1d0c2e._0x41ef9c,_0x1d0c2e._0x2926b9)+_0x5cf4b7(_0x1d0c2e._0x56d616,_0x1d0c2e._0x591262)+'connecte'+_0x5cf4b7(_0x1d0c2e._0x6cae10,0x5b3)+_0x5cf4b7(0x4e6,0x655)+_0x5ec88e(_0x1d0c2e._0x2da53b,0x57d)+this['elapsedS'+_0x5cf4b7(0x3f0,_0x1d0c2e._0x314409)](this['gatewayC'+_0x5ec88e(_0x1d0c2e._0x2878df,_0x1d0c2e._0x2f705d)+_0x5cf4b7(_0x1d0c2e._0x59b054,_0x1d0c2e._0x42593a)])+(_0x5cf4b7(_0x1d0c2e._0x3ab4eb,_0x1d0c2e._0x446e7a)+_0x5ec88e(_0x1d0c2e._0x5f096f,_0x1d0c2e._0x365011)+'d=')+this[_0x5ec88e(0x6e1,_0x1d0c2e._0x4c0e16)+_0x5cf4b7(0x6b8,_0x1d0c2e._0x105c20)+_0x5ec88e(_0x1d0c2e._0x2173c3,_0x1d0c2e._0x5eaa68)]);}}this[_0x5ec88e(_0x1d0c2e._0xb81420,_0x1d0c2e._0x2096a8)+_0x5ec88e(_0x1d0c2e._0x2cd617,_0x1d0c2e._0x50bfee)+'nected']();return;}if(_0xaf61cd===_0x5ec88e(_0x1d0c2e._0x4e6a7a,_0x1d0c2e._0x42c22b)+_0x5ec88e(_0x1d0c2e._0x351374,_0x1d0c2e._0x3d312c)+'ted'){this[_0x5cf4b7(_0x1d0c2e._0x30adf1,0x751)+_0x5cf4b7(_0x1d0c2e._0x3f4d7e,0x672)+_0x5cf4b7(_0x1d0c2e._0xf0edc0,0x4a1)]=![];const _0x2e50e1={};_0x2e50e1[_0x5ec88e(_0x1d0c2e._0x2649dc,0x218)+_0x5cf4b7(0x2ad,_0x1d0c2e._0x3879d3)]=0x0,this[_0x5ec88e(0x5f8,0x6f2)+_0x5ec88e(0x594,0x5c3)](_0x2e50e1),this['markDevi'+_0x5cf4b7(0x677,0x5e1)+'t'](),this[_0x5ec88e(0x305,0x29b)]('client\x20d'+'isconnec'+'ted;\x20kee'+_0x5ec88e(0x5c6,0x5ae)+'eway\x20con'+_0x5cf4b7(_0x1d0c2e._0x18af75,0x48d)),this['ensureGa'+_0x5ec88e(0x600,0x782)+_0x5cf4b7(0x42c,0x48d)]();return;}}[_0x4985a8(0x91b,0x8b6)+_0x4985a8(0x84d,0x85e)+'tewayMes'+_0x285196(0x62a,0x593)](_0x232033){const _0xbb3c80={_0x702880:0x265,_0x3653f9:0x1f2,_0xe4297:0x4d,_0x37bca1:0x4d,_0x46b95:0x212,_0x552847:0x3d5,_0x48d16b:0x10d,_0x1886a4:0x274,_0x3e5684:0x412,_0x511059:0x602,_0x541ff5:0x619,_0x3357af:0x283,_0x59a2d1:0x22e,_0x30d714:0x2fe,_0x552677:0x67,_0x138e19:0x231,_0xcee171:0x280,_0xaecad2:0x412,_0x4028e3:0x37d,_0xc7a609:0x181,_0x19bd3c:0xcd,_0xd32e17:0x100,_0x36d792:0x1c8,_0x2e635a:0x684,_0x42b746:0x446,_0x27aa29:0x297,_0x577d82:0x1eb,_0x2e0c08:0x34c,_0x44b321:0x5f,_0x329289:0x529,_0xcfa978:0x4bf,_0x4d7994:0x1a3,_0xb526d7:0x120,_0x5f53d2:0x6b,_0x5bfbd4:0x3f6},_0x27098b={_0x2fbfe9:0x315};function _0x41c00d(_0x3d19cd,_0x2078e6){return _0x4985a8(_0x2078e6- -0x55f,_0x3d19cd);}const _0x343e0f={'ZBiqz':function(_0xb73d16,_0x117e9b){return _0xb73d16===_0x117e9b;},'stVBG':function(_0x493f84,_0x1ea15f){return _0x493f84(_0x1ea15f);}};function _0x3d232c(_0x25cc8f,_0x388c57){return _0x4985a8(_0x25cc8f- -_0x27098b._0x2fbfe9,_0x388c57);}const _0x28693e=_0x343e0f[_0x41c00d(0xcf,_0xbb3c80._0x702880)](_0x232033[_0x41c00d(0x2c6,_0xbb3c80._0x3653f9)],_0x41c00d(0x1da,_0xbb3c80._0xe4297))&&_0x343e0f['stVBG'](isConnectHandshakeRequest,_0x232033[_0x41c00d(-0x98,_0xbb3c80._0x37bca1)]),_0x4282eb=this[_0x3d232c(0x4ab,0x663)+_0x3d232c(0x4cf,0x615)];if(!_0x4282eb||_0x4282eb[_0x41c00d(-_0xbb3c80._0x46b95,-0x4f)+'te']!==_0x2c411f[_0x3d232c(0x439,_0xbb3c80._0x552847)]){this[_0x41c00d(0x115,_0xbb3c80._0x48d16b)+_0x41c00d(_0xbb3c80._0x1886a4,0x29c)+'nected'](),this['pushPend'+_0x3d232c(_0xbb3c80._0x3e5684,0x447)+_0x3d232c(0x4f7,_0xbb3c80._0x511059)+'e'](_0x232033);_0x28693e&&this['log'](_0x3d232c(0x56b,_0xbb3c80._0x541ff5)+_0x41c00d(_0xbb3c80._0x3357af,0x379)+_0x41c00d(0x115,_0xbb3c80._0x59a2d1)+'ng\x20conne'+'ct\x20hands'+_0x3d232c(_0xbb3c80._0x30d714,0x3d5)+_0x41c00d(0x70,_0xbb3c80._0x552677)+_0x3d232c(_0xbb3c80._0x138e19,_0xbb3c80._0xcee171)+_0x3d232c(0x257,_0xbb3c80._0xaecad2)+_0x41c00d(0x1c0,0x1db));return;}if(!this[_0x41c00d(0x4ef,_0xbb3c80._0x4028e3)+'andshake'+_0x41c00d(_0xbb3c80._0xc7a609,_0xbb3c80._0x19bd3c)]){if(!_0x28693e){this['pushPend'+_0x41c00d(_0xbb3c80._0xd32e17,_0xbb3c80._0x36d792)+_0x3d232c(0x4f7,_0xbb3c80._0x2e635a)+'e'](_0x232033);return;}this[_0x41c00d(0x34f,_0xbb3c80._0x4028e3)+'andshake'+'Started']=!![];const _0x5de36d=_0x343e0f[_0x41c00d(_0xbb3c80._0x42b746,0x2fd)](parseConnectHandshakeMeta,_0x232033[_0x3d232c(_0xbb3c80._0x27aa29,0x27a)]);this[_0x3d232c(_0xbb3c80._0x577d82,0x2f)](_0x41c00d(_0xbb3c80._0x2e0c08,0x321)+_0x41c00d(-_0xbb3c80._0x44b321,-0x15)+_0x41c00d(0xa0,-0x71)+_0x3d232c(_0xbb3c80._0x329289,_0xbb3c80._0xcfa978)+'='+this[_0x41c00d(0x202,_0xbb3c80._0x4d7994)+_0x3d232c(0x1b7,0x154)+_0x41c00d(-_0xbb3c80._0xb526d7,_0xbb3c80._0x5f53d2)]['length']+formatConnectHandshakeMetaForLog(_0x5de36d));}this['sendToGa'+_0x41c00d(_0xbb3c80._0x5bfbd4,0x226)](_0x232033);}['ensureGa'+_0x285196(0x76e,0x61d)+_0x285196(0x58b,0x6d1)](){const _0x2f3353={_0x4dd519:0x74f,_0x1f4ded:0x8a9,_0x3826e3:0x58c,_0x562a7d:0x835,_0x23f56e:0x74d,_0x4c9fc7:0x705,_0x37c27a:0x648,_0x580c72:0x4d3,_0x428524:0x56d,_0x4a8376:0xa14,_0x305696:0x645,_0x1031e3:0x7a5,_0x314243:0x7e5,_0x7c2158:0x610,_0x30d410:0x754,_0x21ec0b:0x633,_0x24f3b2:0x83d},_0x1939de={_0x466c12:0x29d,_0x5398ca:0xf1,_0x7730b8:0x4f9,_0x3af230:0x4bc,_0x54a8cd:0x181,_0xf6ca9c:0x59f,_0x371976:0x65,_0x518bec:0x331,_0x250ead:0x714,_0x151559:0x6b0,_0x446a25:0x652,_0x2549ba:0x7a1,_0x49b38f:0x826,_0x1f7da9:0x41c,_0x5ba0c0:0x47,_0x5cec44:0x5,_0x5d08f6:0x4d8,_0x4c0b9a:0x3b9,_0xc58e9e:0x1b4,_0x2f52c1:0x2a7,_0x5161ff:0x675,_0x2ca0c3:0x64,_0x47be46:0x1e1,_0x3a1420:0x34,_0x2c8422:0x577},_0x6057bc={_0x3f74be:0x25},_0x2a6006={_0x108530:0x52c,_0x4e6096:0x3dd,_0x3c7987:0x15c},_0x492a34={_0x2929e7:0x19},_0x2c7f8b={_0x315325:0x5ba,_0x58d823:0x76f,_0x452654:0x59b,_0x1e3432:0x703,_0x9ff636:0x4a4,_0x567260:0x627,_0x529268:0x501,_0x1d264d:0x5d5,_0x5c6f45:0x730,_0x14e0e7:0x7fb,_0x462b35:0x6f2,_0x406178:0xa6b,_0x64451e:0x6d9,_0x2a03c6:0x7ea,_0x4da403:0x364,_0x494080:0x479,_0x42fe4f:0x684,_0xdf9301:0x5e3,_0x323ad3:0x500,_0x56a269:0x509,_0x1179c0:0x76b,_0x31bab2:0x6d7,_0x22d79a:0xa32,_0x23ad30:0x84c},_0x350405={_0x2ce76e:0x10d},_0x373f2c={_0x298180:0x60},_0xc9526a={};function _0x46035d(_0x341521,_0x915a55){return _0x285196(_0x341521-_0x373f2c._0x298180,_0x915a55);}_0xc9526a[_0x46035d(0x7f8,_0x2f3353._0x4dd519)]=_0x46035d(_0x2f3353._0x1f4ded,0x749);const _0x1b403b=_0xc9526a;if(this['stopped']||!this[_0x46035d(0x6bc,_0x2f3353._0x3826e3)+'pen']()||this['gatewayC'+'onnectin'+'g']||this[_0x46035d(_0x2f3353._0x562a7d,0x7e2)+_0x46035d(_0x2f3353._0x23f56e,_0x2f3353._0x4c9fc7)]())return;this['gatewayC'+_0x196c39(0x640,_0x2f3353._0x37c27a)+'g']=!![],this[_0x46035d(_0x2f3353._0x580c72,_0x2f3353._0x428524)](_0x46035d(0x853,_0x2f3353._0x4a8376)+'connect\x20'+_0x196c39(_0x2f3353._0x305696,_0x2f3353._0x1031e3)+'l='+this['options']['gatewayU'+'rl']);const _0x415d08={};function _0x196c39(_0x1e3bf6,_0x41a5b5){return _0x285196(_0x41a5b5-0xfd,_0x1e3bf6);}_0x415d08[_0x46035d(_0x2f3353._0x314243,0xa0f)+'ad']=0x19*0x400*0x400;const _0x3c03a2=new _0x2c411f(this[_0x46035d(0x664,_0x2f3353._0x7c2158)]['gatewayU'+'rl'],_0x415d08);this['gatewayS'+_0x46035d(0x7b7,_0x2f3353._0x30d410)]=_0x3c03a2,_0x3c03a2[_0x46035d(0x5e4,0x400)](_0x46035d(0x746,0x65d),()=>{const _0x2b8734={_0x4ec0ef:0x16a};if(this[_0x5c5dc5(0x7eb,0x650)]||this[_0x19f5b(0x6c6,_0x2c7f8b._0x315325)+_0x19f5b(0x6ea,_0x2c7f8b._0x58d823)]!==_0x3c03a2){_0x3c03a2[_0x5c5dc5(0x4b6,0x502)]();return;}this[_0x5c5dc5(0x79c,_0x2c7f8b._0x452654)+_0x5c5dc5(0x401,0x53b)+'g']=![],this[_0x5c5dc5(0x7f2,0x83f)+_0x19f5b(_0x2c7f8b._0x1e3432,0x502)+'Started']=![];function _0x19f5b(_0x34ba33,_0x1d9023){return _0x196c39(_0x1d9023,_0x34ba33- -_0x2b8734._0x4ec0ef);}this['gatewayC'+_0x19f5b(_0x2c7f8b._0x9ff636,0x48d)+_0x19f5b(0x77e,_0x2c7f8b._0x567260)]=Date[_0x5c5dc5(0x452,0x526)]();const _0x53ffcc={};_0x53ffcc[_0x5c5dc5(0x72e,0x59b)+_0x5c5dc5(0x5b2,_0x2c7f8b._0x529268)]=!![],_0x53ffcc[_0x19f5b(_0x2c7f8b._0x1d264d,_0x2c7f8b._0x5c6f45)+'r']=null;function _0x5c5dc5(_0x4870c0,_0xbbcee6){return _0x196c39(_0x4870c0,_0xbbcee6- -_0x350405._0x2ce76e);}this['updateSn'+_0x5c5dc5(_0x2c7f8b._0x14e0e7,_0x2c7f8b._0x462b35)](_0x53ffcc),this[_0x19f5b(0x406,0x32d)](_0x19f5b(0x786,0x5bc)+_0x5c5dc5(0x376,0x476)+_0x5c5dc5(_0x2c7f8b._0x406178,0x86f)+_0x19f5b(_0x2c7f8b._0x64451e,_0x2c7f8b._0x2a03c6)+_0x5c5dc5(_0x2c7f8b._0x4da403,_0x2c7f8b._0x494080)+this[_0x19f5b(_0x2c7f8b._0x42fe4f,_0x2c7f8b._0xdf9301)+_0x5c5dc5(0x459,_0x2c7f8b._0x323ad3)](this[_0x5c5dc5(0x7c1,0x763)+_0x19f5b(_0x2c7f8b._0x56a269,0x686)+_0x19f5b(0x47e,0x506)])),this[_0x5c5dc5(_0x2c7f8b._0x1179c0,_0x2c7f8b._0x31bab2)+_0x5c5dc5(_0x2c7f8b._0x22d79a,_0x2c7f8b._0x23ad30)+_0x19f5b(0x499,0x2d6)+'ges']();}),_0x3c03a2['on'](_0x1b403b['bgfOI'],(_0x291836,_0x5e988c)=>{function _0x1be108(_0xd80c46,_0x464c39){return _0x46035d(_0xd80c46- -0x4b8,_0x464c39);}function _0x2aa6dc(_0x4d87f3,_0x369541){return _0x46035d(_0x4d87f3-_0x492a34._0x2929e7,_0x369541);}this['handleGa'+_0x2aa6dc(_0x2a6006._0x108530,_0x2a6006._0x4e6096)+_0x1be108(0x1d2,_0x2a6006._0x3c7987)](_0x291836,_0x5e988c);}),_0x3c03a2[_0x196c39(_0x2f3353._0x21ec0b,0x681)](_0x46035d(_0x2f3353._0x24f3b2,0x74b),_0x4e1d9d=>{function _0x59bdff(_0x1c5a88,_0x382f6c){return _0x196c39(_0x1c5a88,_0x382f6c-_0x6057bc._0x3f74be);}this['log'](_0x59bdff(0xb1b,0x915)+'error:\x20'+String(_0x4e1d9d));}),_0x3c03a2[_0x46035d(0x5e4,0x528)](_0x196c39(0x653,0x60f),(_0x4c648a,_0x521f07)=>{const _0x5351f7={_0x214f61:0xb2},_0x273435={_0xa94ffa:0x51a};this[_0x37ee37(0x6e1,0x54f)+_0x52ba8a(0x29d,0x26f)]===_0x3c03a2&&(this['gatewayS'+_0x52ba8a(_0x1939de._0x466c12,0x1d5)]=null);this[_0x52ba8a(_0x1939de._0x5398ca,0x48)+_0x37ee37(_0x1939de._0x7730b8,_0x1939de._0x3af230)+'g']=![];function _0x52ba8a(_0x55e646,_0x332185){return _0x46035d(_0x55e646- -_0x273435._0xa94ffa,_0x332185);}function _0x37ee37(_0x55b504,_0x51d4a4){return _0x46035d(_0x55b504- -_0x5351f7._0x214f61,_0x51d4a4);}this[_0x52ba8a(0x395,_0x1939de._0x54a8cd)+_0x52ba8a(0x2b6,0x30e)+_0x37ee37(0x54d,_0x1939de._0xf6ca9c)]=![],this[_0x52ba8a(_0x1939de._0x5398ca,-0xb5)+_0x52ba8a(0x57,-_0x1939de._0x371976)+_0x52ba8a(_0x1939de._0x518bec,0x455)]=null,this[_0x37ee37(_0x1939de._0x250ead,0x922)+_0x37ee37(_0x1939de._0x151559,0x6dc)]({'gatewayConnected':![],'lastError':_0x4c648a===0x3e8?this[_0x37ee37(_0x1939de._0x446a25,0x6af)]['lastErro'+'r']:_0x37ee37(_0x1939de._0x2549ba,_0x1939de._0x49b38f)+_0x52ba8a(0x12a,0x1d5)+(_0x521f07[_0x37ee37(_0x1939de._0x1f7da9,0x23a)]()||_0x4c648a)}),this[_0x52ba8a(-_0x1939de._0x5ba0c0,0x11d)](_0x52ba8a(0x339,0x1fb)+_0x52ba8a(-0x80,-_0x1939de._0x5cec44)+_0x52ba8a(0x7e,-0x56)+'e='+_0x4c648a+_0x37ee37(_0x1939de._0x5d08f6,0x5ac)+(_0x521f07[_0x37ee37(0x41c,_0x1939de._0x4c0b9a)]()||_0x52ba8a(_0x1939de._0xc58e9e,_0x1939de._0x2f52c1))+(_0x37ee37(0x834,0x996)+'ientDema'+_0x37ee37(0x5d7,_0x1939de._0x5161ff))+this['elapsedS'+'ince'](this[_0x52ba8a(0x2b9,0x1ca)+'mandStar'+_0x52ba8a(0x31,-0x1d7)])),this[_0x52ba8a(_0x1939de._0x2ca0c3,_0x1939de._0x47be46)+_0x52ba8a(_0x1939de._0x3a1420,0xf1)+_0x37ee37(_0x1939de._0x2c8422,0x370)]();});}['handleGa'+_0x285196(0x4b3,0x612)+_0x285196(0x62a,0x56f)](_0x18c226,_0x3a42b5){const _0x55c712={_0x2e5885:0x1f9,_0x3ac0e0:0x5c,_0x5321d5:0x14e,_0x52c2bd:0x2ed,_0x2f742f:0x2c1,_0x929251:0x48e,_0xe01482:0x2d2,_0x3b7f6c:0x143,_0x22fc23:0x76},_0x4b7cc2={};function _0x4ef768(_0x4dfe6d,_0x4c7938){return _0x4985a8(_0x4c7938- -0x461,_0x4dfe6d);}_0x4b7cc2[_0xc9a3fd(_0x55c712._0x2e5885,0x1b7)]=function(_0x1ed857,_0x6898e1){return _0x1ed857==_0x6898e1;};const _0x20f17d=_0x4b7cc2,_0x2484fa=this['relaySoc'+'ket'];if(!_0x2484fa||_0x2484fa[_0xc9a3fd(_0x55c712._0x3ac0e0,_0x55c712._0x5321d5)+'te']!==_0x2c411f[_0x4ef768(0x4d5,_0x55c712._0x52c2bd)])return;if(_0x3a42b5){_0x2484fa['send'](normalizeBinary(_0x18c226));return;}const _0x4b9535=normalizeText(_0x18c226);if(_0x20f17d[_0x4ef768(0x405,0x24c)](_0x4b9535,null))return;const _0x34a9cb=parsePairingRequestFromError(_0x4b9535);_0x34a9cb&&this[_0xc9a3fd(0x3d1,_0x55c712._0x2f742f)+'ngPairRe'+_0x4ef768(_0x55c712._0x929251,_0x55c712._0xe01482)](_0x34a9cb);const _0x41b76a=parsePairResolvedEvent(_0x4b9535);_0x41b76a&&this[_0x4ef768(-0xa7,0x5b)+'RequestR'+_0x4ef768(-_0x55c712._0x3b7f6c,0x4c)](_0x41b76a[_0xc9a3fd(_0x55c712._0x22fc23,0x18c)+'d'],_0x41b76a['decision']);function _0xc9a3fd(_0x443ff2,_0x26a2d6){return _0x4985a8(_0x443ff2- -0x4b4,_0x26a2d6);}_0x2484fa[_0x4ef768(0x3ee,0x2fc)](_0x4b9535);}[_0x4985a8(0x774,0x6f5)+_0x285196(0x85c,0x884)+_0x4985a8(0x593,0x50c)+'ges'](){const _0x2d08de={_0x157f62:0x761,_0x172b6e:0x67b,_0x2ce4d0:0x6a2,_0x39a35c:0x4a1,_0x1306cc:0x3b2,_0x465b76:0x72b,_0x48dfaf:0x478,_0x1313f1:0x830,_0x1824f4:0x705,_0xfb67cd:0x59e,_0x529478:0x4bc,_0x1a52e5:0x4c6,_0x229c6f:0x749,_0x9f69c4:0x8ed,_0x3cf91a:0x87d,_0x18b536:0x5cd,_0x4c038f:0x85d,_0x244e5d:0x54c,_0x4bbd1c:0x54c,_0x299165:0x63d,_0xd87d86:0x50e,_0xec68cd:0x46d,_0x29adc0:0x56a},_0x34c550={_0x56998b:0x2d},_0x1a9a1e={_0x2e3338:0x2e},_0x1eac66=this[_0x1e2964(_0x2d08de._0x157f62,_0x2d08de._0x172b6e)+'ocket'];if(!_0x1eac66||_0x1eac66[_0x1e2964(0x4b1,0x6e5)+'te']!==_0x2c411f['OPEN'])return;function _0x1e2964(_0x3c5b23,_0x31d0d4){return _0x285196(_0x3c5b23-_0x1a9a1e._0x2e3338,_0x31d0d4);}const _0x5e6ba8=[],_0x5ad57b=dedupePendingGatewayMessages(this[_0x1f85af(_0x2d08de._0x2ce4d0,0x8d0)+_0x1e2964(0x46d,0x274)+'ssages']);function _0x1f85af(_0x1a8e68,_0x37b01d){return _0x285196(_0x1a8e68-_0x34c550._0x56998b,_0x37b01d);}_0x5ad57b[_0x1f85af(0x705,0x67e)]>0x0&&this[_0x1e2964(_0x2d08de._0x39a35c,_0x2d08de._0x1306cc)](_0x1e2964(_0x2d08de._0x465b76,0x808)+'stale\x20qu'+_0x1e2964(_0x2d08de._0x48dfaf,0x496)+'eway\x20mes'+'sages\x20be'+_0x1f85af(0x53a,0x711)+'sh\x20dropp'+_0x1f85af(_0x2d08de._0x1313f1,0x94b)+_0x5ad57b[_0x1f85af(_0x2d08de._0x1824f4,_0x2d08de._0xfb67cd)]+_0x1e2964(_0x2d08de._0x529478,_0x2d08de._0x1a52e5)+_0x5ad57b[_0x1e2964(0x74a,0x826)][_0x1e2964(0x818,0x936)]);this['pendingG'+'atewayMe'+_0x1f85af(0x56a,0x5cd)]=[];for(const _0x45331f of _0x5ad57b[_0x1f85af(_0x2d08de._0x229c6f,_0x2d08de._0x9f69c4)]){if(!this[_0x1e2964(_0x2d08de._0x3cf91a,0x840)+'andshake'+_0x1e2964(_0x2d08de._0x18b536,0x68f)]){if(_0x45331f[_0x1f85af(0x6f1,_0x2d08de._0x4c038f)]!==_0x1f85af(_0x2d08de._0x244e5d,0x625)||!isConnectHandshakeRequest(_0x45331f[_0x1f85af(_0x2d08de._0x4bbd1c,_0x2d08de._0x299165)])){_0x5e6ba8['push'](_0x45331f);continue;}this['gatewayH'+_0x1f85af(0x79d,0x65e)+_0x1f85af(0x5cc,_0x2d08de._0xd87d86)]=!![];}this['sendToGa'+_0x1e2964(0x726,0x93c)](_0x45331f);}this[_0x1e2964(0x6a3,0x5b9)+_0x1e2964(_0x2d08de._0xec68cd,0x666)+_0x1f85af(_0x2d08de._0x29adc0,0x3e2)]=_0x5e6ba8;}['sendToGa'+'teway'](_0x3f9637){const _0x10a0f1={_0x3616ad:0x6ff,_0xb89a24:0x28b,_0x427e40:0x27a,_0x17899d:0x38c,_0x18de84:0x51a,_0x58b79f:0x573,_0x24179b:0x268,_0x846355:0x78a,_0x1acac7:0x3d8,_0x2591f6:0x51b,_0x26db22:0x1d0,_0x4a7d87:0x8ae,_0x5e86ce:0xa2,_0xe46fe0:0x44c,_0x136fdd:0x3b2,_0x4e81b2:0x19f,_0x583b13:0x4b1,_0x365e54:0x365,_0x4389b7:0x3dc,_0x34a03e:0x1d7,_0x17d299:0x38b,_0x345e33:0x8e7,_0xa10fdc:0x329,_0x4818b1:0x1a0,_0x1fd5fb:0x232},_0x15a22f={_0x210dfa:0x3a7},_0x14058a={};_0x14058a[_0x1d48d9(_0x10a0f1._0x3616ad,0x545)]=function(_0x3d1a7a,_0xe0c8e8){return _0x3d1a7a!==_0xe0c8e8;},_0x14058a[_0x35955f(_0x10a0f1._0xb89a24,_0x10a0f1._0x427e40)]=function(_0x4ea02f,_0x1f251a){return _0x4ea02f===_0x1f251a;};function _0x35955f(_0x23da88,_0x59e982){return _0x285196(_0x23da88- -_0x15a22f._0x210dfa,_0x59e982);}const _0x523433=_0x14058a,_0x6fad12=this[_0x35955f(_0x10a0f1._0x17899d,_0x10a0f1._0x18de84)+'ocket'];if(!_0x6fad12||_0x523433['iGoyU'](_0x6fad12[_0x1d48d9(0x5ca,_0x10a0f1._0x58b79f)+'te'],_0x2c411f['OPEN'])){this[_0x35955f(_0x10a0f1._0x24179b,0x237)+_0x1d48d9(0x570,_0x10a0f1._0x846355)+_0x35955f(_0x10a0f1._0x1acac7,_0x10a0f1._0x2591f6)+'e'](_0x3f9637);return;}function _0x1d48d9(_0x517210,_0x1b20b7){return _0x285196(_0x1b20b7-0xf0,_0x517210);}if(_0x523433[_0x35955f(_0x10a0f1._0xb89a24,_0x10a0f1._0x26db22)](_0x3f9637[_0x1d48d9(_0x10a0f1._0x4a7d87,0x7b4)],'text')){const _0x1cc867=patchConnectRequestGatewayAuth(_0x3f9637['text'],readOpenClawInfo()),_0x3bc91a=parseConnectHandshakeMeta(_0x1cc867[_0x1d48d9(0x7fe,0x60f)]);_0x3bc91a&&this[_0x35955f(0xcc,-_0x10a0f1._0x5e86ce)](_0x35955f(_0x10a0f1._0xe46fe0,_0x10a0f1._0x136fdd)+'connect\x20'+_0x35955f(_0x10a0f1._0x4e81b2,0x3cd)+_0x35955f(_0x10a0f1._0x583b13,_0x10a0f1._0x365e54)+'d'+formatConnectHandshakeMetaForLog(_0x3bc91a));_0x1cc867['injected']&&this['log'](_0x35955f(0x44c,0x4db)+_0x1d48d9(0x55e,0x73c)+_0x35955f(_0x10a0f1._0x4389b7,_0x10a0f1._0x34a03e)+_0x35955f(_0x10a0f1._0x17d299,0x25f)+_0x1d48d9(0x740,_0x10a0f1._0x345e33)+'rd');_0x6fad12['send'](_0x1cc867['text']);return;}_0x6fad12[_0x35955f(_0x10a0f1._0xa10fdc,_0x10a0f1._0x4818b1)](_0x3f9637[_0x35955f(0x343,_0x10a0f1._0x1fd5fb)]);}[_0x285196(0x76a,0x586)+'wayReque'+'st'](_0x263c27,_0x51326a){const _0x1473c0={_0x2c7b16:0x13f,_0x4c8a14:0x1fa,_0x54c15b:0x427,_0x339855:0x556,_0x57ba0a:0x39a,_0xc856cc:0x206,_0x3f9178:0x5a8,_0x1687f1:0x435},_0xa064e8={_0x1d6cd7:0x16e},_0x191488=JSON[_0x1cdc46(_0x1473c0._0x2c7b16,0x1da)+'y']({'type':_0x4330af(_0x1473c0._0x4c8a14,_0x1473c0._0x54c15b),'id':'bridge-'+_0x4adff6(),'method':_0x263c27,'params':_0x51326a});function _0x1cdc46(_0x3d0faf,_0x29f59e){return _0x285196(_0x29f59e- -0x319,_0x3d0faf);}const _0x231fa2={};function _0x4330af(_0xbb36cf,_0x528504){return _0x285196(_0x528504- -_0xa064e8._0x1d6cd7,_0xbb36cf);}_0x231fa2[_0x4330af(0x6bb,_0x1473c0._0x339855)]=_0x1cdc46(0x440,0x206),_0x231fa2[_0x1cdc46(_0x1473c0._0x57ba0a,_0x1473c0._0xc856cc)]=_0x191488,this[_0x1cdc46(0x5b9,0x575)+_0x4330af(_0x1473c0._0x3f9178,0x652)+'tewayMes'+_0x4330af(_0x1473c0._0x1687f1,0x4bc)](_0x231fa2);}[_0x285196(0x61b,0x7c7)+'eway'](){const _0x3f3e41={_0x24773f:0x3ff,_0x129550:0x219,_0x23523c:0x70,_0x3df08f:0x50c,_0x288bf4:0x5d8,_0x3a72cf:0x1b7,_0x1bede2:0x3b3,_0x5e55ce:0x26b,_0x248f0c:0x1dd,_0x70bdf1:0x37c},_0x58a196={_0xdc3401:0x3c1},_0xaa0079={_0x4eed6c:0x44a};function _0x5e6d9e(_0x27497b,_0x3b44ba){return _0x4985a8(_0x27497b- -_0xaa0079._0x4eed6c,_0x3b44ba);}this[_0x4a62c4(_0x3f3e41._0x24773f,_0x3f3e41._0x129550)+_0x5e6d9e(0x39a,0x177)]?.[_0x5e6d9e(0x155,_0x3f3e41._0x23523c)](),this[_0x4a62c4(0x3ff,_0x3f3e41._0x3df08f)+_0x4a62c4(0x423,_0x3f3e41._0x288bf4)]=null,this[_0x4a62c4(0x277,_0x3f3e41._0x3a72cf)+'onnectin'+'g']=![],this['gatewayH'+_0x5e6d9e(_0x3f3e41._0x1bede2,0x288)+_0x4a62c4(_0x3f3e41._0x5e55ce,0x361)]=![];function _0x4a62c4(_0x274489,_0x267e1f){return _0x4985a8(_0x274489- -_0x58a196._0xdc3401,_0x267e1f);}this['gatewayC'+_0x4a62c4(_0x3f3e41._0x248f0c,_0x3f3e41._0x70bdf1)+'AtMs']=null;}[_0x285196(0x51e,0x5c5)+_0x4985a8(0x7e2,0x9a3)+_0x285196(0x60c,0x834)](){const _0x4a2022={_0xa7b741:0x324,_0x5a13ad:0x279,_0x4cb1ba:0x438,_0x57e940:0x2dc,_0x1a7b10:0x489,_0x3bca76:0x324,_0x78425a:0x308,_0x84dc8c:0x50a,_0x3cef5a:0x2db,_0x1bb5dd:0x687,_0x56d383:0x193,_0x2b4a9b:0x6d5,_0x1348b9:0x49c,_0x4e64e6:0x34b,_0x319412:0x19c,_0x37e513:0x3c5},_0xa2ea74={_0x1b1bfa:0xdc,_0x886855:0x26e,_0x4d048f:0x3f};if(this[_0x14bd34(0x58a,0x45d)]||this[_0x14bd34(0x43d,_0x4a2022._0xa7b741)+'tTimer'])return;function _0x14bd34(_0x3ada74,_0x14fa69){return _0x285196(_0x14fa69- -0x203,_0x3ada74);}const _0x174a3d=this[_0x40f5f1(0x366,_0x4a2022._0x5a13ad)][_0x40f5f1(0x37a,0x19c)+_0x40f5f1(_0x4a2022._0x4cb1ba,_0x4a2022._0x57e940)+_0x14bd34(_0x4a2022._0x1a7b10,0x3fe)]??RECONNECT_BASE_DELAY_MS,_0x42d4a9=this['options'][_0x14bd34(0x101,_0x4a2022._0x3bca76)+'tMaxDela'+_0x14bd34(0x30f,_0x4a2022._0x78425a)]??RECONNECT_MAX_DELAY_MS,_0x59364b=Math[_0x14bd34(_0x4a2022._0x84dc8c,0x5a2)](_0x42d4a9,_0x174a3d*Math[_0x40f5f1(0x523,0x337)](0x1,this[_0x14bd34(0x24c,_0x4a2022._0x3cef5a)+_0x14bd34(0x471,0x284)]));function _0x40f5f1(_0x266d7c,_0xafa5e3){return _0x285196(_0xafa5e3- -0x38b,_0x266d7c);}this['log'](_0x14bd34(0x8b3,_0x4a2022._0x1bb5dd)+'connect\x20'+_0x40f5f1(0x2f7,_0x4a2022._0x56d383)+_0x40f5f1(_0x4a2022._0x2b4a9b,_0x4a2022._0x1348b9)+'s='+_0x59364b),this[_0x40f5f1(_0x4a2022._0x4e64e6,_0x4a2022._0x319412)+_0x14bd34(_0x4a2022._0x37e513,0x3de)]=setTimeout(()=>{const _0x4f4bb1={_0x469d8d:0x302};function _0x55f2b4(_0x36edb0,_0x4e9069){return _0x14bd34(_0x36edb0,_0x4e9069- -_0x4f4bb1._0x469d8d);}function _0x51c9e3(_0x1d7312,_0x275f40){return _0x14bd34(_0x1d7312,_0x275f40-0x379);}this['reconnec'+_0x55f2b4(0xcb,_0xa2ea74._0x1b1bfa)]=null,void this[_0x55f2b4(_0xa2ea74._0x886855,_0xa2ea74._0x4d048f)+'elay']();},_0x59364b);}[_0x285196(0x51e,0x4ee)+_0x4985a8(0x57b,0x4da)+_0x285196(0x5c9,0x45d)](){const _0x5e591a={_0x53338a:0x1e,_0x1be361:0x14a,_0x2c1e2d:0xe1,_0x5d0b11:0x1f5,_0x3c3aee:0x7,_0x322054:0x205},_0x191447={_0x3e4c8e:0x4a9,_0x48bf5e:0x535,_0x366af9:0x65b,_0x120f00:0x620},_0x2a4308={_0x39a6ec:0x49b};function _0x1d2af7(_0x383874,_0x2b1104){return _0x4985a8(_0x383874- -_0x2a4308._0x39a6ec,_0x2b1104);}function _0x324fe5(_0x4a0fe6,_0xd4f486){return _0x4985a8(_0xd4f486- -0x59f,_0x4a0fe6);}if(this['stopped']||this['gatewayR'+_0x324fe5(-0x1e3,-_0x5e591a._0x53338a)+'r']||!this[_0x324fe5(0x8c,_0x5e591a._0x1be361)+_0x1d2af7(0x200,_0x5e591a._0x2c1e2d)]())return;const _0x46fa28=this[_0x1d2af7(0x1f6,0x12d)]['gatewayR'+'etryDela'+_0x324fe5(-_0x5e591a._0x5d0b11,-_0x5e591a._0x3c3aee)]??GATEWAY_RETRY_DELAY_MS;this[_0x1d2af7(0x211,_0x5e591a._0x322054)+'etryTime'+'r']=setTimeout(()=>{const _0x9b3c33={_0x179c33:0x44f};function _0x94f11(_0x3f49b7,_0x4a5016){return _0x1d2af7(_0x4a5016-_0x9b3c33._0x179c33,_0x3f49b7);}this['gatewayR'+_0x94f11(_0x191447._0x3e4c8e,_0x191447._0x48bf5e)+'r']=null;function _0x383e33(_0x1eb725,_0x2fc5b9){return _0x1d2af7(_0x2fc5b9-0x28b,_0x1eb725);}this[_0x94f11(_0x191447._0x366af9,_0x191447._0x120f00)+'tewayCon'+'nected']();},_0x46fa28);}[_0x285196(0x712,0x8db)+_0x4985a8(0x6cb,0x73c)](){const _0x2825db={_0x272590:0x419,_0xb0d3e1:0x430,_0x1f8b1a:0x48a,_0x3a0eea:0x47a,_0x5abb52:0x78f,_0x2db609:0x9a9,_0x5c31a7:0x78f,_0x5a731c:0x98e,_0x1ce144:0x656,_0x723ed6:0x66d},_0x89997e={_0x8dcec9:0x721,_0x279edd:0x690,_0x1aea83:0x86a,_0x4fe29f:0x80b,_0x440a84:0x905,_0x2e0f8d:0x664,_0x3985d0:0x66a,_0x4b2fef:0x80d,_0xc012f4:0x655,_0x227e2:0x840,_0x3264bd:0x5ce,_0x11d918:0x845,_0x192e3b:0x776,_0x58e723:0x7fe,_0x3a2314:0x848,_0x3636e2:0x9e1},_0x1f05f1={_0x21c1d5:0xf0},_0x271198={_0x18210e:0x2c},_0x1029a1={};_0x1029a1[_0x338b65(_0x2825db._0x272590,0x2fe)]=function(_0x4b1f1f,_0x48b0d6){return _0x4b1f1f>_0x48b0d6;},_0x1029a1[_0x338b65(_0x2825db._0xb0d3e1,_0x2825db._0x1f8b1a)]=function(_0x284f0e,_0x2aeb4f){return _0x284f0e-_0x2aeb4f;};const _0x30f8fc=_0x1029a1;function _0x286aa5(_0x2cbbb9,_0x3959a3){return _0x285196(_0x2cbbb9- -_0x271198._0x18210e,_0x3959a3);}function _0x338b65(_0x31c164,_0x18532a){return _0x285196(_0x31c164- -_0x1f05f1._0x21c1d5,_0x18532a);}this[_0x338b65(0x4f0,0x5fe)+_0x286aa5(0x64e,_0x2825db._0x3a0eea)](),this[_0x286aa5(_0x2825db._0x5abb52,_0x2825db._0x2db609)+'tTimer']=setInterval(()=>{const _0x3e1fa4={_0x5aafb0:0x187},_0x19c8cb=this[_0x2b9948(_0x89997e._0x8dcec9,_0x89997e._0x279edd)+_0x31793e(_0x89997e._0x1aea83,0x97e)];if(!_0x19c8cb||_0x19c8cb['readySta'+'te']!==_0x2c411f[_0x31793e(_0x89997e._0x4fe29f,0x63a)])return;function _0x31793e(_0x5d2295,_0x532a5e){return _0x286aa5(_0x5d2295-0x176,_0x532a5e);}const _0x5b75a1=this['options'][_0x31793e(_0x89997e._0x440a84,0x6d7)+_0x2b9948(0x83c,0x7ed)+'Ms']??HEARTBEAT_TIMEOUT_MS;if(_0x30f8fc[_0x2b9948(0x7a0,_0x89997e._0x2e0f8d)](_0x30f8fc[_0x31793e(_0x89997e._0x3985d0,0x5fd)](Date[_0x31793e(0x680,_0x89997e._0x4b2fef)](),this['lastRela'+_0x31793e(0x966,0x75b)+_0x31793e(_0x89997e._0xc012f4,_0x89997e._0x227e2)]),_0x5b75a1)){this[_0x2b9948(0x650,_0x89997e._0x3264bd)](_0x31793e(0x79e,_0x89997e._0x11d918)+'artbeat\x20'+_0x31793e(_0x89997e._0x192e3b,0x87c)+'t'),_0x19c8cb[_0x31793e(_0x89997e._0x58e723,_0x89997e._0x3a2314)+'e']();return;}function _0x2b9948(_0x2e067e,_0x5ccc7c){return _0x286aa5(_0x5ccc7c-_0x3e1fa4._0x5aafb0,_0x2e067e);}_0x19c8cb[_0x2b9948(_0x89997e._0x3636e2,0x7ba)]();},this[_0x338b65(0x514,0x446)][_0x286aa5(_0x2825db._0x5c31a7,_0x2825db._0x5a731c)+_0x338b65(0x561,_0x2825db._0x1ce144)+_0x286aa5(_0x2825db._0x723ed6,0x4c1)]??HEARTBEAT_INTERVAL_MS);}['stopHear'+_0x4985a8(0x707,0x7d8)](){const _0xafde51={_0x5ded98:0x2fa,_0x460ab4:0x4cf,_0x3611b5:0x4ed},_0x40dd6a={_0x40731e:0x4c1};function _0x4adafb(_0x17a6c9,_0x17a88f){return _0x285196(_0x17a6c9- -_0x40dd6a._0x40731e,_0x17a88f);}function _0x4e608c(_0x1f3b3c,_0x31a955){return _0x285196(_0x1f3b3c- -0x112,_0x31a955);}this[_0x4e608c(0x6a9,0x852)+_0x4e608c(0x4cf,0x5ec)]&&(clearInterval(this[_0x4adafb(_0xafde51._0x5ded98,0x2bc)+_0x4e608c(_0xafde51._0x460ab4,0x409)]),this[_0x4adafb(0x2fa,_0xafde51._0x3611b5)+_0x4e608c(0x4cf,0x675)]=null);}['pushPend'+_0x4985a8(0x727,0x61a)+_0x285196(0x77f,0x7a6)+'e'](_0x33d081){const _0x476959={_0x128dd5:0x67f,_0x22a567:0x68a,_0x3e13a6:0x8dd,_0x528428:0x16,_0x32120e:0xae,_0x479ae3:0x8a,_0x16466d:0x11a};function _0x57e537(_0x139e10,_0x397351){return _0x4985a8(_0x397351-0xc0,_0x139e10);}this[_0x57e537(_0x476959._0x128dd5,0x7c2)+_0x57e537(0x7ae,0x58c)+_0x57e537(0x4cd,_0x476959._0x22a567)]['length']>=MAX_PENDING_GATEWAY_MESSAGES&&this[_0x57e537(_0x476959._0x3e13a6,0x7c2)+'atewayMe'+_0x3d79d2(-_0x476959._0x528428,-_0x476959._0x32120e)][_0x57e537(0x6cc,0x5b6)]();function _0x3d79d2(_0x2c30e6,_0xba84ef){return _0x4985a8(_0xba84ef- -0x678,_0x2c30e6);}this[_0x3d79d2(0x146,_0x476959._0x479ae3)+_0x57e537(0x3b0,0x58c)+_0x3d79d2(-0x70,-_0x476959._0x32120e)][_0x3d79d2(_0x476959._0x16466d,-0x9c)](_0x33d081);}[_0x4985a8(0x835,0x7d3)+_0x4985a8(0x786,0x968)+_0x4985a8(0x71c,0x527)](_0x224dd7,_0x6707b8){const _0x807549={_0x1d07c1:0x558,_0x4c368c:0x80c,_0x422c28:0x56d,_0x2a439c:0x5ef,_0x3dd1f1:0xa00,_0x25f28e:0x56d,_0x33ab3f:0x66f,_0x481d9b:0x8f2,_0x29f4e7:0x8d4,_0x16a13f:0x7ec,_0x50b8da:0x8a8},_0x215cde={_0x2c2474:0x5a};function _0x153992(_0x51df82,_0x1cbe97){return _0x4985a8(_0x51df82-_0x215cde._0x2c2474,_0x1cbe97);}const _0x28bdfd=Date[_0x42fe76(_0x807549._0x1d07c1,0x678)](),_0x29bebb=new Map(this[_0x42fe76(_0x807549._0x4c368c,0x7e6)][_0x153992(0x56d,0x3ff)+_0x153992(0x804,0x839)]['map'](_0x5018f4=>[_0x5018f4['id'],{..._0x5018f4}])),_0x39eb94=_0x29bebb['get'](_0x224dd7)??{'id':_0x224dd7,'label':_0x6707b8,'state':_0x153992(_0x807549._0x422c28,_0x807549._0x2a439c)+'d','lastSeenMs':_0x28bdfd};_0x39eb94['label']=_0x6707b8,_0x39eb94[_0x153992(0x94e,_0x807549._0x3dd1f1)]=_0x153992(_0x807549._0x25f28e,_0x807549._0x33ab3f)+'d',_0x39eb94['lastSeen'+'Ms']=_0x28bdfd,_0x29bebb[_0x42fe76(0xa0e,_0x807549._0x481d9b)](_0x224dd7,_0x39eb94);const _0x2eadd7=[..._0x29bebb[_0x153992(0x83d,0x8e5)]()][_0x42fe76(0x48a,0x6bb)]((_0x1391bf,_0x4877b1)=>_0x4877b1[_0x153992(0x8b9,0x82c)+'Ms']-_0x1391bf[_0x42fe76(0x910,0x914)+'Ms'])[_0x153992(0x680,0x712)](0x0,MAX_DEVICE_DETAILS),_0x21f13b={};function _0x42fe76(_0x266fd2,_0x48627f){return _0x4985a8(_0x48627f-0xb5,_0x266fd2);}_0x21f13b[_0x153992(0x56d,0x54c)+_0x153992(0x804,_0x807549._0x29f4e7)]=_0x2eadd7,this[_0x42fe76(_0x807549._0x16a13f,_0x807549._0x50b8da)+_0x42fe76(0x97b,0x844)](_0x21f13b);}['markDevi'+'cesRecen'+'t'](){const _0x216631={_0xb4ce61:0x7fa,_0x56f786:0x79c,_0x2281b8:0x3bf,_0x582944:0x68f,_0x42b84d:0x43},_0xb03c0f={_0x4da841:0x532};function _0x535e73(_0x2576f2,_0x3151ae){return _0x4985a8(_0x2576f2- -_0xb03c0f._0x4da841,_0x3151ae);}function _0x2e8ea0(_0x438ca6,_0x3a6b9d){return _0x4985a8(_0x438ca6-0x6b,_0x3a6b9d);}this['updateSn'+_0x2e8ea0(_0x216631._0xb4ce61,0x5f2)]({'connectedDevices':this[_0x2e8ea0(_0x216631._0x56f786,0x643)][_0x2e8ea0(0x57e,_0x216631._0x2281b8)+_0x2e8ea0(0x815,_0x216631._0x582944)][_0x535e73(_0x216631._0x42b84d,0x25a)](_0x43fc46=>({..._0x43fc46,'state':_0x535e73(0x7d,0x87)}))});}[_0x285196(0x7f8,0x95d)+_0x4985a8(0x53f,0x473)+_0x285196(0x6a6,0x5c7)](_0x17a89a){const _0xaa0715={_0x330285:0x14a,_0x45464e:0x298,_0x32d00f:0x2d2,_0x33a978:0x16d,_0x3496cd:0x7e,_0x2580c1:0x91,_0x58d4bb:0x14a,_0x18f97c:0x1d,_0x59721e:0x59,_0x2ac05f:0x3b,_0x2171a7:0x20c,_0x5e3e86:0x19e,_0x2a2efa:0xaa,_0x5378ba:0x371,_0x5537f2:0xe7,_0x15caf7:0x113,_0x3ee433:0x208,_0x18cf61:0xf8,_0x4f7581:0x1f6,_0x97a9af:0x78,_0x10f44b:0x3be},_0x2808fa={_0x870c89:0x55c};if(this[_0x14c2c9(_0xaa0715._0x330285,_0xaa0715._0x45464e)][_0x14c2c9(0x1ea,_0xaa0715._0x32d00f)+_0x14c2c9(_0xaa0715._0x33a978,_0xaa0715._0x3496cd)+'sts'][_0x30e7b9(0xe2,_0xaa0715._0x2580c1)](_0x186114=>_0x186114[_0x14c2c9(-0xbd,0x131)+'d']===_0x17a89a[_0x14c2c9(-0xbd,-0xdb)+'d']))return;function _0x14c2c9(_0x5a9f39,_0x11c78c){return _0x4985a8(_0x5a9f39- -0x5e7,_0x11c78c);}const _0x349dae=[...this[_0x14c2c9(_0xaa0715._0x58d4bb,-_0xaa0715._0x18f97c)]['pendingP'+_0x14c2c9(0x16d,0x109)+_0x14c2c9(-0x50,_0xaa0715._0x59721e)],_0x17a89a]['slice'](-MAX_PENDING_PAIR_REQUESTS),_0x25003d={};_0x25003d['pendingP'+'airReque'+_0x30e7b9(0x1e,_0xaa0715._0x2ac05f)]=_0x349dae,this[_0x14c2c9(_0xaa0715._0x2171a7,_0xaa0715._0x5e3e86)+'apshot'](_0x25003d),this[_0x14c2c9(_0xaa0715._0x2a2efa,-0x18)][_0x14c2c9(0xf5,0x211)+_0x30e7b9(0x2cd,_0xaa0715._0x5378ba)+_0x30e7b9(0x1f0,0x114)]?.(_0x17a89a);function _0x30e7b9(_0xc22273,_0x28139d){return _0x4985a8(_0x28139d- -_0x2808fa._0x870c89,_0xc22273);}this[_0x14c2c9(-_0xaa0715._0x5537f2,0x4b)]('pair\x20req'+'uest\x20pen'+'ding\x20req'+_0x30e7b9(_0xaa0715._0x15caf7,_0xaa0715._0x3ee433)+_0x17a89a[_0x14c2c9(-0xbd,-0x269)+'d']+(_0x14c2c9(-_0xaa0715._0x18cf61,-0x9b)+'d=')+(_0x17a89a[_0x14c2c9(_0xaa0715._0x4f7581,_0xaa0715._0x97a9af)]||_0x30e7b9(0x202,_0xaa0715._0x10f44b)+'>'));}[_0x4985a8(0x4bc,0x38e)+_0x4985a8(0x79d,0x5cd)+'esolved'](_0x286dce,_0x4f93ea){const _0x113f7d={_0x27f102:0x71e,_0xbf6af6:0x16e,_0x3f630a:0x721,_0x481f92:0x54e,_0x2af073:0xd7,_0x49bf49:0x52a,_0x197d0a:0x4f6,_0x2ce18f:0x2be,_0x381b6c:0x177},_0x29a285={_0x563349:0x1a0},_0x3e999a=this[_0x20a995(0x504,0x611)][_0x20a995(0x5a4,_0x113f7d._0x27f102)+_0x593896(0x32b,0x4c6)+_0x593896(_0x113f7d._0xbf6af6,-0xc7)]['map'](_0x1d0173=>_0x1d0173[_0x593896(0x101,-0x132)+'d']===_0x286dce?{..._0x1d0173,'status':_0x4f93ea==='approved'||_0x4f93ea===_0x593896(0x2ee,0x42a)?_0x4f93ea:_0x1d0173[_0x593896(0x1e5,0xe)]}:_0x1d0173),_0x5c5d37={};function _0x20a995(_0x75e8e4,_0x4548bd){return _0x285196(_0x75e8e4- -_0x29a285._0x563349,_0x4548bd);}function _0x593896(_0x1d24c1,_0xfe2ea9){return _0x285196(_0x1d24c1- -0x39c,_0xfe2ea9);}_0x5c5d37['pendingP'+_0x20a995(0x527,_0x113f7d._0x3f630a)+_0x20a995(0x36a,_0x113f7d._0x481f92)]=_0x3e999a,this[_0x20a995(0x5c6,0x3a7)+'apshot'](_0x5c5d37),this[_0x593896(_0x113f7d._0x2af073,-0x161)](_0x20a995(0x539,_0x113f7d._0x49bf49)+_0x20a995(0x58e,0x6cf)+_0x20a995(_0x113f7d._0x197d0a,_0x113f7d._0x2ce18f)+_0x593896(_0x113f7d._0x381b6c,0x3d)+_0x286dce+('\x20decisio'+'n=')+_0x4f93ea);}[_0x4985a8(0x7f3,0x78b)+_0x4985a8(0x78f,0x76c)](_0x29fac5){const _0x471c59={_0x5e78f2:0x577,_0x56a0dc:0x53f},_0x42f245={_0x18a301:0x139};function _0x4b812d(_0x139dd9,_0x2b9dde){return _0x4985a8(_0x139dd9- -_0x42f245._0x18a301,_0x2b9dde);}function _0x20ce09(_0x4ec36d,_0x38c74a){return _0x4985a8(_0x38c74a- -0xd2,_0x4ec36d);}Object[_0x20ce09(0x9da,0x80b)](this['snapshot'],_0x29fac5,{'lastUpdatedMs':Date['now']()}),this[_0x4b812d(0x558,0x6db)][_0x20ce09(_0x471c59._0x5e78f2,0x476)]?.(this['getSnaps'+_0x4b812d(_0x471c59._0x56a0dc,0x68a)]());}['log'](_0x717042){const _0x3884f4={_0x5639ab:0x2b6};function _0x503e86(_0x2231a4,_0x20e589){return _0x4985a8(_0x2231a4- -_0x3884f4._0x5639ab,_0x20e589);}this[_0x503e86(0x3db,0x510)]['onLog']?.(_0x717042);}[_0x285196(0x65c,0x748)+_0x285196(0x60e,0x4ba)](){const _0x17b2c9={_0x427298:0x133,_0x35d844:0x519};function _0x352fd7(_0x446f02,_0x570199){return _0x4985a8(_0x570199- -0x48,_0x446f02);}function _0x2221df(_0x50c612,_0x4ce294){return _0x4985a8(_0x50c612- -0x48f,_0x4ce294);}return this[_0x2221df(_0x17b2c9._0x427298,0xcf)+_0x2221df(0x31e,_0x17b2c9._0x35d844)]?.['readySta'+'te']===_0x2c411f['OPEN'];}[_0x285196(0x7d5,0x826)+_0x4985a8(0x77a,0x991)](){const _0x37b2cf={_0x249760:0x1aa,_0x343be4:0x375},_0x3c4972={_0x5629b6:0x4a2},_0x2c6572={_0x1a1a1a:0x6ba};function _0x1f6f86(_0x43d364,_0x487360){return _0x4985a8(_0x43d364- -_0x2c6572._0x1a1a1a,_0x487360);}function _0x22251d(_0x20f1bf,_0xbf1ef2){return _0x4985a8(_0x20f1bf- -_0x3c4972._0x5629b6,_0xbf1ef2);}return this[_0x22251d(0x31e,0x332)+'ocket']?.[_0x1f6f86(-_0x37b2cf._0x249760,-_0x37b2cf._0x343be4)+'te']===_0x2c411f[_0x22251d(0x2ac,0x99)];}[_0x285196(0x590,0x6b8)+_0x4985a8(0x556,0x354)](){const _0xa7b2c3={_0x3b5b0a:0x240,_0x170f9f:0x200,_0x44d549:0x30,_0x501b0e:0xea,_0x27dd6a:0x4e9,_0x3c68e9:0x68b,_0x5a2eab:0x157,_0x2351b7:0x128,_0x559e47:0x3be,_0x5cf683:0x595},_0x30ef70={_0x2cb377:0x136};function _0x4ab72e(_0x4dce60,_0x586f77){return _0x285196(_0x586f77- -0x4f7,_0x4dce60);}this['stopHear'+_0x1fc9d8(0x544,0x42d)]();function _0x1fc9d8(_0x3038e8,_0x1b3eee){return _0x285196(_0x3038e8- -_0x30ef70._0x2cb377,_0x1b3eee);}this[_0x4ab72e(_0xa7b2c3._0x3b5b0a,0x30)+'tTimer']&&(clearTimeout(this[_0x4ab72e(-_0xa7b2c3._0x170f9f,_0xa7b2c3._0x44d549)+_0x4ab72e(-0xb9,_0xa7b2c3._0x501b0e)]),this['reconnec'+'tTimer']=null),this[_0x4ab72e(0xe0,0x128)+_0x4ab72e(-0x209,-0x3)+'r']&&(clearTimeout(this[_0x1fc9d8(_0xa7b2c3._0x27dd6a,_0xa7b2c3._0x3c68e9)+'etryTime'+'r']),this[_0x4ab72e(_0xa7b2c3._0x5a2eab,_0xa7b2c3._0x2351b7)+_0x1fc9d8(_0xa7b2c3._0x559e47,_0xa7b2c3._0x5cf683)+'r']=null);}[_0x4985a8(0x77e,0x6f7)+'ince'](_0x508884){const _0x38424c={_0x4204a6:0xe4,_0x8dd8fa:0x30a},_0x3459b6={_0x5779d9:0x3b8};function _0x489526(_0x22db09,_0x4f94b3){return _0x285196(_0x4f94b3- -_0x3459b6._0x5779d9,_0x22db09);}return _0x508884==null?null:Math[_0x489526(_0x38424c._0x4204a6,_0x38424c._0x8dd8fa)](0x0,Date['now']()-_0x508884);}};function shouldRecycleGatewayForFreshClient(_0x2c32d3,_0x41eb7a,_0xda4720,_0x10422e){const _0x38bfb0={};_0x38bfb0['rddJu']=function(_0x1512c8,_0x2bebfc){return _0x1512c8>_0x2bebfc;};const _0x1f1e3c=_0x38bfb0;return _0xda4720&&_0x1f1e3c['rddJu'](_0x41eb7a,0x0)&&(_0x2c32d3===0x0||_0x10422e);}function summarizePendingGatewayMessages(_0x15a29b){const _0x5f09a0={_0x4d3e69:0x786,_0xcf8d4b:0x5c0,_0x52fec1:0x49a,_0x5e29f6:0x208,_0x330d00:0x5b8,_0x491a79:0x3c0,_0x3eac5f:0x5c5,_0x550602:0x4bb,_0x127dc2:0x4cc,_0x17f110:0x2e4,_0x434bb4:0x2f4,_0x34d47f:0x2bc},_0x4a97e7={_0x5777d2:0x64},_0x360944={_0x166d77:0x21c},_0x2055c3={};function _0x483047(_0x5e590b,_0x3094df){return _0x285196(_0x3094df- -_0x360944._0x166d77,_0x5e590b);}_0x2055c3['total']=_0x15a29b[_0x459359(_0x5f09a0._0x4d3e69,_0x5f09a0._0xcf8d4b)],_0x2055c3[_0x483047(0x236,0x328)+_0x459359(0x474,0x3e8)]=0x0,_0x2055c3[_0x483047(0x3ac,_0x5f09a0._0x52fec1)+'t']=0x0;function _0x459359(_0x981fb0,_0x2e14a3){return _0x285196(_0x981fb0- -_0x4a97e7._0x5777d2,_0x2e14a3);}_0x2055c3[_0x483047(0x1b9,_0x5f09a0._0x5e29f6)]=0x0;const _0x295521=_0x2055c3;for(const _0x30f15c of _0x15a29b){if(_0x30f15c[_0x483047(_0x5f09a0._0x330d00,0x4a8)]===_0x459359(_0x5f09a0._0x491a79,_0x5f09a0._0x3eac5f)){_0x295521['binary']+=0x1;continue;}if(isConnectHandshakeRequest(_0x30f15c[_0x459359(_0x5f09a0._0x550602,_0x5f09a0._0x127dc2)])){_0x295521[_0x483047(_0x5f09a0._0x17f110,0x328)+_0x483047(_0x5f09a0._0x434bb4,_0x5f09a0._0x34d47f)]+=0x1;continue;}_0x295521['otherTex'+'t']+=0x1;}return _0x295521;}function dedupePendingGatewayMessages(_0xe7e40e){const _0x3c9048={_0x16c578:0x707,_0x2108d7:0x604,_0x20e866:0x73a,_0x420db2:0x5c2,_0x4e58ce:0x5dc,_0x37452e:0x332,_0x9d934:0x367,_0x50529a:0x59d,_0x30575c:0x507,_0x1150a7:0x33c,_0x139f5e:0x39a,_0x3680a7:0x5dc,_0x4dab05:0x74d,_0x1c8bc9:0x4e1,_0xf48e57:0x7d9,_0x29855b:0x608,_0x6411d7:0x6d9,_0x3a2294:0x2bd},_0x1a6db4={_0x409247:0x370},_0x40bf02={};_0x40bf02[_0x2afccc(_0x3c9048._0x16c578,_0x3c9048._0x2108d7)]=function(_0x518150,_0x63da4b){return _0x518150-_0x63da4b;},_0x40bf02['sZslA']=function(_0x54c9fa,_0x174eab){return _0x54c9fa>=_0x174eab;},_0x40bf02[_0x2afccc(_0x3c9048._0x20e866,_0x3c9048._0x420db2)]=_0x2afccc(_0x3c9048._0x4e58ce,0x80e);function _0x2afccc(_0x38a95c,_0x272a32){return _0x4985a8(_0x38a95c-0x30,_0x272a32);}_0x40bf02[_0x21afca(_0x3c9048._0x37452e,0x2b2)]=function(_0x48bd5a,_0x2d5b62){return _0x48bd5a<=_0x2d5b62;};const _0x528488=_0x40bf02;let _0x2a38a4=-0x1;for(let _0x5ab234=_0x528488[_0x21afca(_0x3c9048._0x9d934,_0x3c9048._0x50529a)](_0xe7e40e[_0x21afca(_0x3c9048._0x30575c,_0x3c9048._0x1150a7)],0x1);_0x528488['sZslA'](_0x5ab234,0x0);_0x5ab234-=0x1){const _0x1ccd70=_0xe7e40e[_0x5ab234];if(_0x1ccd70?.[_0x2afccc(0x781,0x97e)]===_0x528488[_0x21afca(_0x3c9048._0x139f5e,0x325)]&&isConnectHandshakeRequest(_0x1ccd70[_0x2afccc(_0x3c9048._0x3680a7,_0x3c9048._0x4dab05)])){_0x2a38a4=_0x5ab234;break;}}function _0x21afca(_0x3ac7a9,_0x1e6d38){return _0x4985a8(_0x3ac7a9- -_0x1a6db4._0x409247,_0x1e6d38);}if(_0x528488[_0x21afca(_0x3c9048._0x37452e,_0x3c9048._0x1c8bc9)](_0x2a38a4,0x0)){const _0x25ca65={};return _0x25ca65[_0x2afccc(_0x3c9048._0xf48e57,_0x3c9048._0x29855b)]=[..._0xe7e40e],_0x25ca65[_0x2afccc(0x795,_0x3c9048._0x6411d7)]=0x0,_0x25ca65;}const _0x530bcd=_0xe7e40e[_0x2afccc(0x6ac,0x850)]((_0xcb2168,_0x531dc5)=>_0x531dc5>=_0x2a38a4||(_0xcb2168[_0x21afca(0x3e1,0x542)]!==_0x21afca(0x23c,0x420)||!isConnectHandshakeRequest(_0xcb2168[_0x21afca(0x23c,0x2b4)])));return{'messages':_0x530bcd,'dropped':_0x528488[_0x21afca(0x367,_0x3c9048._0x3a2294)](_0xe7e40e[_0x2afccc(0x8a7,0x78e)],_0x530bcd[_0x21afca(0x507,0x696)])};}function prunePendingGatewayMessagesForFreshDemand(_0x4c7d6a){const _0x2d7404={_0x11aae2:0x2ff,_0x1f9ec2:0x37c,_0x230954:0x2dc,_0x4e239c:0x5c2,_0x1b4c39:0x417,_0x1f8c32:0x2c0,_0x4d66f4:0x272,_0x1614fc:0x231,_0x424e82:0x2b2,_0x11d2e2:0x3ab,_0x5c2974:0x2ec,_0x805985:0x42b,_0x165a3a:0x4d8,_0x2a33de:0x53d},_0x38e342={};_0x38e342['zJJJS']=function(_0x5da798,_0x58d5dc){return _0x5da798===_0x58d5dc;},_0x38e342[_0x194448(0xf7,-0xf)]=function(_0x1bac4d,_0x22f24a){return _0x1bac4d-_0x22f24a;};const _0x2ae971=_0x38e342;function _0x2ea295(_0x2aa56f,_0x2d729e){return _0x285196(_0x2d729e- -0x2ad,_0x2aa56f);}if(_0x2ae971['zJJJS'](_0x4c7d6a[_0x194448(_0x2d7404._0x11aae2,_0x2d7404._0x1f9ec2)],0x0)){const _0x1c9420={};return _0x1c9420['messages']=[],_0x1c9420[_0x2ea295(_0x2d7404._0x230954,0x42b)]=0x0,_0x1c9420;}let _0xb15b2f=-0x1;function _0x194448(_0x9edc45,_0x14e983){return _0x285196(_0x9edc45- -0x4eb,_0x14e983);}for(let _0x355a94=_0x2ae971[_0x2ea295(0x518,0x335)](_0x4c7d6a[_0x194448(_0x2d7404._0x11aae2,0x1b1)],0x1);_0x355a94>=0x0;_0x355a94-=0x1){const _0x4f51a0=_0x4c7d6a[_0x355a94];if(_0x2ae971[_0x2ea295(0x712,0x55a)](_0x4f51a0?.[_0x2ea295(_0x2d7404._0x4e239c,_0x2d7404._0x1b4c39)],_0x2ea295(_0x2d7404._0x1f8c32,_0x2d7404._0x4d66f4))&&isConnectHandshakeRequest(_0x4f51a0[_0x2ea295(0x1d4,0x272)])){_0xb15b2f=_0x355a94;break;}}if(_0xb15b2f===-0x1){const _0x102999={};return _0x102999[_0x194448(_0x2d7404._0x1614fc,0x255)]=[],_0x102999['dropped']=_0x4c7d6a[_0x194448(0x2ff,_0x2d7404._0x424e82)],_0x102999;}const _0x282849=_0x4c7d6a[_0x2ea295(_0x2d7404._0x11d2e2,_0x2d7404._0x5c2974)](_0xb15b2f),_0x124cc9={};return _0x124cc9[_0x2ea295(0x420,0x46f)]=_0x282849,_0x124cc9[_0x2ea295(0x4a8,_0x2d7404._0x805985)]=_0x4c7d6a[_0x2ea295(_0x2d7404._0x165a3a,_0x2d7404._0x2a33de)]-_0x282849[_0x194448(0x2ff,0x2ab)],_0x124cc9;}function patchConnectRequestGatewayAuth(_0x24ec85,_0x24b493){const _0x20526a={_0x143c29:0x55b,_0x1e3a0c:0xae4,_0x1a00ff:0x659,_0x115fcd:0x9c1,_0xcbbe26:0x946,_0x198114:0x9f,_0x490ca9:0x57,_0x5d06ef:0x9c,_0x31d5bf:0x84b,_0x31f151:0x8a,_0x7c3a62:0x4c8,_0x47ac74:0x698,_0x213621:0x1c,_0x2383f2:0xbf,_0x5e321b:0x140,_0x122524:0x624,_0x59f7c6:0x801,_0x2fe414:0x156,_0x22e237:0x5a,_0x151e24:0x1bc,_0xed3edd:0x3c,_0xff4dd3:0x69,_0x3f137d:0x6d8,_0x2834f2:0x55a,_0x28e405:0x635,_0xef753c:0x90,_0x1c3260:0xbf,_0x20b047:0xc3,_0x3aec6e:0x6fe,_0xc2ac64:0xbf},_0x13d60f={_0x34bcbb:0xec},_0x4760cd={};_0x4760cd['pjFjp']=function(_0x3b89d2,_0x4e369e){return _0x3b89d2!==_0x4e369e;};function _0x117c6b(_0x55ee38,_0x295129){return _0x4985a8(_0x295129-_0x13d60f._0x34bcbb,_0x55ee38);}function _0x4addf4(_0x177c01,_0x2cb062){return _0x4985a8(_0x2cb062- -0x5d6,_0x177c01);}_0x4760cd[_0x117c6b(_0x20526a._0x143c29,0x6d2)]=function(_0x2ab3b6,_0x18663e){return _0x2ab3b6===_0x18663e;},_0x4760cd['rQuZN']=function(_0x23a318,_0x3f5494){return _0x23a318===_0x3f5494;};const _0x5d666a=_0x4760cd;if(_0x24b493[_0x117c6b(_0x20526a._0x1e3a0c,0x908)]!==_0x117c6b(0x53b,_0x20526a._0x1a00ff)||!_0x24b493[_0x4addf4(-0x9a,-0x69)]){const _0x43676f={};return _0x43676f['text']=_0x24ec85,_0x43676f[_0x117c6b(0x7e5,0x781)]=![],_0x43676f;}try{const _0x3d40e9=JSON['parse'](_0x24ec85);if(_0x5d666a[_0x117c6b(_0x20526a._0x115fcd,_0x20526a._0xcbbe26)](_0x3d40e9[_0x4addf4(_0x20526a._0x198114,-_0x20526a._0x490ca9)],_0x4addf4(-_0x20526a._0x5d06ef,0x4c))||_0x3d40e9[_0x117c6b(_0x20526a._0x31d5bf,0x757)]!==_0x4addf4(_0x20526a._0x31f151,0xa7)&&_0x3d40e9['method']!=='connect.'+_0x117c6b(0x817,0x7db)){const _0x6946a6={};return _0x6946a6[_0x117c6b(_0x20526a._0x7c3a62,_0x20526a._0x47ac74)]=_0x24ec85,_0x6946a6[_0x4addf4(-_0x20526a._0x213621,_0x20526a._0x2383f2)]=![],_0x6946a6;}const _0x17333b=_0x3d40e9[_0x4addf4(_0x20526a._0x5e321b,-0x9e)]&&_0x5d666a[_0x117c6b(0x7d9,0x6d2)](typeof _0x3d40e9['params'],_0x4addf4(-0x189,-0x5a))?{..._0x3d40e9[_0x117c6b(0x4df,_0x20526a._0x122524)]}:{},_0x323766=_0x17333b[_0x117c6b(_0x20526a._0x59f7c6,0x6fe)]&&_0x5d666a['rQuZN'](typeof _0x17333b[_0x4addf4(_0x20526a._0x2fe414,0x3c)],_0x4addf4(-0x14e,-_0x20526a._0x22e237))?{..._0x17333b[_0x4addf4(-_0x20526a._0x151e24,_0x20526a._0xed3edd)]}:{},_0x3063ca=typeof _0x323766[_0x4addf4(0x75,-_0x20526a._0xff4dd3)]===_0x117c6b(_0x20526a._0x3f137d,0x5bb)?_0x323766[_0x117c6b(_0x20526a._0x2834f2,0x659)][_0x117c6b(_0x20526a._0x28e405,0x741)]():'';if(_0x3063ca){const _0x48e508={};return _0x48e508[_0x4addf4(-_0x20526a._0xef753c,-0x2a)]=_0x24ec85,_0x48e508[_0x4addf4(-0x11a,_0x20526a._0x1c3260)]=![],_0x48e508;}_0x323766['password']=_0x24b493[_0x4addf4(_0x20526a._0x20b047,-0x69)],_0x17333b[_0x117c6b(0x536,_0x20526a._0x3aec6e)]=_0x323766;const _0x5afe72={..._0x3d40e9};return _0x5afe72[_0x117c6b(0x7a8,0x624)]=_0x17333b,{'text':JSON['stringif'+'y'](_0x5afe72),'injected':!![]};}catch{const _0x16b05e={};return _0x16b05e['text']=_0x24ec85,_0x16b05e[_0x4addf4(-0x10f,_0x20526a._0xc2ac64)]=![],_0x16b05e;}}function formatConnectHandshakeMetaForLog(_0x14f5a8){const _0x2aed28={_0xd93a6f:0x551,_0x283b53:0x883,_0x496a1b:0x919,_0x5a03fc:0x3ce,_0x2dc284:0x5a2,_0x553f97:0x75f,_0xda080d:0x7d2,_0x21a6d7:0x6de,_0x405ced:0x708,_0x4cf7bf:0x84d,_0xa5e820:0x5d6,_0x2c9114:0x4f3,_0x18254b:0x708,_0x43ce17:0x6c7,_0x1385a0:0x7e3,_0x15f990:0x6be,_0x54b4c2:0x7b2},_0x479203={_0x2862d6:0x41};function _0x1b6fa6(_0x2a1888,_0x5285fc){return _0x4985a8(_0x2a1888- -_0x479203._0x2862d6,_0x5285fc);}function _0x1f5dd7(_0x2bbab5,_0x4eea25){return _0x4985a8(_0x4eea25- -0x9a,_0x2bbab5);}if(!_0x14f5a8)return'';return _0x1f5dd7(_0x2aed28._0xd93a6f,0x5a6)+_0x14f5a8['method']+_0x1b6fa6(_0x2aed28._0x283b53,_0x2aed28._0x496a1b)+(_0x14f5a8['id']??_0x1b6fa6(0x6ba,0x795))+(_0x1f5dd7(_0x2aed28._0x5a03fc,_0x2aed28._0x2dc284)+_0x1b6fa6(_0x2aed28._0x553f97,0x8eb))+_0x14f5a8[_0x1f5dd7(_0x2aed28._0xda080d,_0x2aed28._0x21a6d7)+'sent']+(_0x1f5dd7(_0x2aed28._0x405ced,0x52f)+'ngth=')+(_0x14f5a8[_0x1f5dd7(0x982,_0x2aed28._0x4cf7bf)+_0x1f5dd7(_0x2aed28._0xa5e820,_0x2aed28._0x2c9114)]??0x0)+(_0x1b6fa6(_0x2aed28._0x18254b,_0x2aed28._0x43ce17)+'lds=')+(_0x14f5a8['authFiel'+'ds']['length']>0x0?_0x14f5a8[_0x1f5dd7(0x69d,_0x2aed28._0x1385a0)+'ds'][_0x1f5dd7(_0x2aed28._0x15f990,_0x2aed28._0x54b4c2)](','):'<none>');}function buildRelayWsUrl(_0x5cf9f2){const _0x5435fc={_0x394421:0x714,_0x419319:0x4ee,_0x24f974:0x38f,_0x42abe5:0x2ff,_0x5277ac:0x4ed,_0x33048a:0x4ee,_0x5c7460:0x4af,_0x1da5ef:0x2a6,_0x91cd96:0x74d,_0x1cc151:0x4eb,_0x5bc3cb:0x2d0,_0x15704b:0x4d8,_0x20e609:0x3ce,_0x3ccdbb:0x869,_0x4830d6:0x4d8,_0x26f896:0x725,_0x2ff4b3:0x600,_0x19fddd:0x5ea,_0x3fa834:0x565},_0x684d04={_0x3fd589:0x123},_0x9552cf={};_0x9552cf[_0x332e8e(_0x5435fc._0x394421,_0x5435fc._0x419319)]=_0x332e8e(0x814,0x626),_0x9552cf[_0x332e8e(_0x5435fc._0x24f974,0x4d8)]='token';function _0x332e8e(_0x441c6d,_0x44aa49){return _0x285196(_0x44aa49- -0x1b0,_0x441c6d);}const _0x19eeef=_0x9552cf,_0x4315e0=new URL(_0x5cf9f2[_0xfd2d12(0x12d,_0x5435fc._0x42abe5)]);(!_0x4315e0['pathname']||_0x4315e0[_0x332e8e(0x560,_0x5435fc._0x5277ac)]==='/')&&(_0x4315e0[_0xfd2d12(0x5ac,0x57a)]=_0x19eeef[_0x332e8e(0x439,_0x5435fc._0x33048a)]);_0x4315e0[_0x332e8e(_0x5435fc._0x5c7460,0x6c0)+_0xfd2d12(0x481,0x4d8)]['set'](_0x332e8e(0x400,_0x5435fc._0x1da5ef)+'d',_0x5cf9f2[_0x332e8e(0x1b6,0x2a6)+'d']),_0x4315e0[_0xfd2d12(0x734,_0x5435fc._0x91cd96)+'rams']['set'](_0xfd2d12(0x395,0x55c),_0x332e8e(0x307,_0x5435fc._0x1cc151)),_0x4315e0['searchPa'+_0xfd2d12(_0x5435fc._0x5bc3cb,_0x5435fc._0x15704b)]['set'](_0xfd2d12(0x360,_0x5435fc._0x20e609),_0x5cf9f2['instance'+'Id']),_0x4315e0[_0xfd2d12(_0x5435fc._0x3ccdbb,0x74d)+_0xfd2d12(0x6aa,_0x5435fc._0x4830d6)][_0x332e8e(_0x5435fc._0x26f896,_0x5435fc._0x2ff4b3)](_0x19eeef[_0xfd2d12(_0x5435fc._0x19fddd,_0x5435fc._0x3fa834)],_0x5cf9f2['relaySec'+'ret']);function _0xfd2d12(_0x124747,_0x1050cf){return _0x285196(_0x1050cf- -_0x684d04._0x3fd589,_0x124747);}return _0x4315e0[_0x332e8e(0xfe,0x2be)]();}function redactRelayWsUrl(_0x5c7b42){const _0x747c24={_0x5a08b4:0x567,_0x7a48c8:0x621,_0x49ba21:0x436,_0x35e8a8:0x213,_0x1ef9ab:0x508,_0x5af8c5:0x860,_0x468012:0x58e,_0x134005:0x18,_0x458ae5:0x21e},_0x506ec8={_0x4312f7:0x437},_0x1f60b9={_0x1679b9:0x10},_0x37437b=new URL(_0x5c7b42);_0x37437b[_0x4468cc(_0x747c24._0x5a08b4,0x439)+_0x1ad8c3(0x5eb,_0x747c24._0x7a48c8)][_0x1ad8c3(_0x747c24._0x49ba21,_0x747c24._0x35e8a8)](_0x1ad8c3(0x645,_0x747c24._0x1ef9ab))&&_0x37437b[_0x1ad8c3(_0x747c24._0x5af8c5,0x756)+_0x1ad8c3(0x5eb,_0x747c24._0x468012)][_0x4468cc(0x459,0x379)](_0x4468cc(_0x747c24._0x134005,_0x747c24._0x458ae5),'<redacte'+'d>');function _0x1ad8c3(_0x5a6e45,_0x58bbe7){return _0x285196(_0x5a6e45- -_0x1f60b9._0x1679b9,_0x58bbe7);}function _0x4468cc(_0x3be5f8,_0x1627cc){return _0x285196(_0x1627cc- -_0x506ec8._0x4312f7,_0x3be5f8);}return _0x37437b['toString']();}function normalizeText(_0x4ba1bb){const _0x43778c={_0x105c83:0x2a9,_0x11747b:0x23b,_0x22f5e8:0x388,_0x51127b:0x390,_0x4fb1ad:0x19f,_0x2be6a4:0x4f9,_0x27ad00:0x2a0,_0x1ff625:0x289,_0x188d8f:0x52c,_0x36dab7:0x3e9},_0x591610={_0x15871e:0x13b},_0x157ae9={_0x9ba9a:0x1ce},_0x221830={};_0x221830['jQkKO']=_0x80e52d(_0x43778c._0x105c83,_0x43778c._0x11747b)+'0';function _0x80e52d(_0xd621c1,_0x8506ca){return _0x285196(_0xd621c1- -_0x157ae9._0x9ba9a,_0x8506ca);}const _0x2763fc=_0x221830,_0x366b01=_0x2763fc[_0x80e52d(0x4f8,0x54c)][_0x80e52d(_0x43778c._0x22f5e8,0x49f)]('|');let _0x39733f=0x0;function _0x2c5b50(_0x57168d,_0x17ef33){return _0x285196(_0x57168d- -_0x591610._0x15871e,_0x17ef33);}while(!![]){switch(_0x366b01[_0x39733f++]){case'0':return null;case'1':if(Array['isArray'](_0x4ba1bb))return Buffer[_0x2c5b50(_0x43778c._0x51127b,0x224)](_0x4ba1bb)[_0x2c5b50(0x333,_0x43778c._0x4fb1ad)](_0x80e52d(0x289,0x13b));continue;case'2':if(_0x4ba1bb instanceof ArrayBuffer)return Buffer[_0x80e52d(0x5a7,_0x43778c._0x2be6a4)](_0x4ba1bb)[_0x80e52d(_0x43778c._0x27ad00,0xf3)](_0x80e52d(_0x43778c._0x1ff625,0x384));continue;case'3':if(typeof _0x4ba1bb===_0x2c5b50(0x307,_0x43778c._0x188d8f))return _0x4ba1bb;continue;case'4':if(Buffer[_0x80e52d(_0x43778c._0x36dab7,0x41d)](_0x4ba1bb))return _0x4ba1bb['toString']('utf8');continue;}break;}}function normalizeBinary(_0xf4acbb){const _0x4f01e5={_0x32168c:0x52d,_0xc95902:0x5cf},_0x4cb371={_0x24aa34:0x489};if(Buffer[_0x4e0fd7(0x1bb,0x292)](_0xf4acbb))return _0xf4acbb;if(typeof _0xf4acbb==='string')return Buffer[_0x24faf0(_0x4f01e5._0x32168c,_0x4f01e5._0xc95902)](_0xf4acbb,_0x24faf0(0x20f,0x36a));if(Array['isArray'](_0xf4acbb))return Buffer['concat'](_0xf4acbb);function _0x4e0fd7(_0x23da1f,_0x20335f){return _0x4985a8(_0x23da1f- -_0x4cb371._0x24aa34,_0x20335f);}function _0x24faf0(_0x33e16c,_0x449c07){return _0x4985a8(_0x33e16c- -0x2d5,_0x449c07);}return Buffer['from'](_0xf4acbb);}function readRecentCliLogs(_0x51d357){const _0x238492={_0x539755:0x4e5,_0x375cda:0x67d,_0x972507:0x27,_0x27e3ff:0xac,_0x213ab0:0x6e2,_0x5b1f1f:0x674,_0x4feaa1:0x29,_0x1828b2:0x56d,_0x1040fc:0x45a};function _0x2fecb0(_0x3114b5,_0x42cc4c){return _0x4985a8(_0x42cc4c- -0x59c,_0x3114b5);}const _0x6187c6={'KoQof':function(_0x2dd223){return _0x2dd223();},'iTPhF':function(_0x1f3778,_0x2bb114){return _0x1f3778==_0x2bb114;}},{logPath:_0x33bc59,errorLogPath:_0x3a529c}=_0x6187c6['KoQof'](getServicePaths),_0x3011ed=clampLines(_0x51d357?.[_0x553d76(_0x238492._0x539755,0x348)]??0xc8);function _0x553d76(_0x49a4eb,_0x4132cb){return _0x4985a8(_0x49a4eb- -0x8,_0x4132cb);}const _0x3e1062=_0x51d357?.[_0x553d76(0x5da,_0x238492._0x375cda)]??null,_0x421ec5=_0x3e1062!=null?Date[_0x2fecb0(0x227,_0x238492._0x972507)]()-_0x3e1062:null,_0x596437=[_0x33bc59];_0x51d357?.['includeE'+_0x2fecb0(_0x238492._0x27e3ff,-0x8f)]&&_0x596437['push'](_0x3a529c);const _0x2f9bd0=_0x596437[_0x553d76(0x658,_0x238492._0x213ab0)](_0x1d4eaf=>readLogFile(_0x1d4eaf)),_0x32ea84=_0x6187c6['iTPhF'](_0x421ec5,null)?_0x2f9bd0:_0x2f9bd0[_0x553d76(_0x238492._0x5b1f1f,0x47a)](_0x71367c=>_0x71367c['ts']!=null&&_0x71367c['ts']>=_0x421ec5);return _0x32ea84[_0x2fecb0(-_0x238492._0x4feaa1,0x8a)](-_0x3011ed)[_0x553d76(_0x238492._0x1828b2,_0x238492._0x1040fc)](_0x2c0510=>_0x2c0510['raw']);}async function buildDoctorReport(){const _0x3ae4d3={_0x101620:0x5b0,_0x33f5ea:0x434,_0x1ce543:0x7d1,_0x84992e:0x2b5,_0xcfc7ca:0x388,_0x819366:0x7e5,_0x1523ab:0x65e,_0x50508b:0x8b2,_0x1f9ff3:0x511,_0x1925fe:0x609,_0x1cf1bf:0x856,_0x281655:0x104},_0x334342={_0x411fe9:0x2a6},_0x188186={'ThqhG':function(_0x57148f){return _0x57148f();}},_0x5e69d6=readPairingConfig();function _0x15f847(_0x411747,_0x24d856){return _0x4985a8(_0x24d856- -_0x334342._0x411fe9,_0x411747);}const _0x48a327=getServiceStatus(),_0x1e4ee3=readOpenClawInfo(),_0x26ce26=resolveGatewayUrl(),_0xdddfde=await checkGatewayReachable(_0x26ce26);function _0x54256b(_0x541914,_0x335f8){return _0x4985a8(_0x335f8-0xcd,_0x541914);}return{'paired':Boolean(_0x5e69d6),'gatewayId':_0x5e69d6?.[_0x54256b(0x4b0,_0x3ae4d3._0x101620)+'d']??null,'serverUrl':_0x5e69d6?.[_0x54256b(0x909,0x886)+'l']??null,'relayUrl':_0x5e69d6?.['relayUrl']??null,'instanceId':_0x5e69d6?.[_0x15f847(0x43d,_0x3ae4d3._0x33f5ea)+'Id']??null,'serviceInstalled':_0x48a327[_0x54256b(0x6cb,_0x3ae4d3._0x1ce543)+'d'],'serviceRunning':_0x48a327[_0x15f847(_0x3ae4d3._0x84992e,_0x3ae4d3._0xcfc7ca)],'serviceMethod':_0x48a327[_0x54256b(_0x3ae4d3._0x819366,0x738)],'servicePath':_0x48a327[_0x15f847(0x29d,0x240)+_0x15f847(0x589,_0x3ae4d3._0x1523ab)],'logPath':_0x48a327['logPath'],'errorLogPath':_0x48a327[_0x15f847(0x497,0x664)+_0x54256b(0xa8a,_0x3ae4d3._0x50508b)],'openclawConfigDir':getOpenClawConfigDir(),'openclawMediaDir':_0x188186[_0x54256b(_0x3ae4d3._0x1f9ff3,_0x3ae4d3._0x1925fe)](getOpenClawMediaDir),'openclawConfigFound':_0x1e4ee3[_0x54256b(0x680,_0x3ae4d3._0x1cf1bf)+'und'],'openclawAuthMode':_0x1e4ee3[_0x15f847(0x5ae,0x576)],'openclawTokenFound':Boolean(_0x1e4ee3[_0x15f847(0x3be,0x43c)]),'openclawPasswordFound':Boolean(_0x1e4ee3[_0x15f847(_0x3ae4d3._0x281655,0x2c7)]),'localGatewayUrl':_0x26ce26,'localGatewayReachable':_0xdddfde};}async function ensurePairPrerequisites(){const _0x212f60={_0x36c2bf:0x64e,_0x1d01c9:0x5b3,_0x574cdf:0x26a,_0x343eaf:0x756,_0x47f43d:0x349,_0x41680c:0x55a,_0x533ab2:0x14,_0x349026:0x32c,_0x549e53:0x4af,_0x38f4c4:0x1ff,_0xbcd742:0x138,_0x3b3d9b:0x311,_0x183f90:0xa08,_0x3f1fd4:0x4e4,_0x8f72da:0x569,_0x129428:0x588,_0x1d368b:0x60c,_0x401875:0x7c5,_0x3d91b8:0x3ed,_0x3d97e7:0x4fb,_0x5dfc24:0x5d7,_0x3a6daa:0x467,_0x38e518:0x614,_0x30ebbf:0x890,_0x4dd0e8:0x684,_0x48f0c0:0x872},_0x456fe4={'tyXtR':function(_0xb66883){return _0xb66883();},'HXnhH':function(_0x1ace6f,_0xc9333f){return _0x1ace6f(_0xc9333f);}},_0x5ae484=await _0x456fe4[_0x18f94e(0x81d,_0x212f60._0x36c2bf)](buildDoctorReport),_0x2d7b40=_0x456fe4['HXnhH'](listPairPrerequisiteFailures,_0x5ae484);if(_0x2d7b40[_0x2492f0(_0x212f60._0x1d01c9,0x4ff)]>0x0)throw new Error([_0x2492f0(_0x212f60._0x574cdf,0x398)+_0x18f94e(_0x212f60._0x343eaf,0x8bf)+_0x2492f0(_0x212f60._0x47f43d,_0x212f60._0x41680c)+_0x2492f0(_0x212f60._0x533ab2,0x244)+_0x2492f0(_0x212f60._0x349026,_0x212f60._0x549e53)+_0x2492f0(0x188,_0x212f60._0x38f4c4)+_0x2492f0(0x76,_0x212f60._0xbcd742)+_0x18f94e(0x488,_0x212f60._0x3b3d9b)+_0x18f94e(0x7e8,_0x212f60._0x183f90)+'not\x20read'+'y.',..._0x2d7b40[_0x18f94e(0x535,0x3b5)](_0x2ee19f=>'-\x20'+_0x2ee19f),_0x2492f0(0x639,0x568)+'wket\x20doc'+_0x18f94e(_0x212f60._0x3f1fd4,0x4d7)+_0x18f94e(0x65f,0x6d8)+_0x18f94e(0x7a8,0x586)+_0x18f94e(_0x212f60._0x8f72da,_0x212f60._0x129428)+_0x18f94e(_0x212f60._0x1d368b,_0x212f60._0x401875)+_0x2492f0(_0x212f60._0x3d91b8,0x57d)+_0x18f94e(0x5a9,_0x212f60._0x3d97e7)+_0x18f94e(0x512,_0x212f60._0x5dfc24)+_0x18f94e(_0x212f60._0x3a6daa,_0x212f60._0x38e518)+_0x18f94e(_0x212f60._0x30ebbf,0x8a7)+'ant\x20to\x20b'+_0x18f94e(_0x212f60._0x4dd0e8,0x570)+_0x18f94e(_0x212f60._0x48f0c0,0x809)+'y\x20check.']['join']('\x0a'));function _0x2492f0(_0x400396,_0x3ce376){return _0x4985a8(_0x3ce376- -0x378,_0x400396);}function _0x18f94e(_0x2212c9,_0x4d9e4e){return _0x4985a8(_0x2212c9- -0x40,_0x4d9e4e);}return _0x5ae484;}function listPairPrerequisiteFailures(_0x933387){const _0x3ca3e7={_0x1fccb8:0x48b,_0x169974:0x41c,_0x31622d:0xc6,_0x4d694b:0x249,_0x4b8925:0x111,_0x41c0f1:0xb5,_0x1b1ac4:0x4d1,_0x3c3b20:0x60a,_0x50c29f:0x4cb,_0x19fdde:0x3f4,_0x37619d:0x5ef,_0x3461f9:0x97,_0x568e1c:0xf4,_0xa5c1a0:0x2e5,_0x16a8e3:0xcb,_0x39e434:0x67d,_0x14e8cf:0x674,_0x3c7868:0x24e,_0x47cfb0:0x304,_0x3b28d6:0x470,_0x2a9de6:0x9a,_0x4b6b2a:0x35c,_0x356d55:0x4,_0x420281:0x81,_0x3a83aa:0x92,_0x59aabd:0x5e4,_0x45b503:0x500,_0x13af80:0x3c8,_0x116288:0x4ce,_0xd2fd45:0x23b,_0x292f02:0x2d3,_0x3a3887:0x120,_0x93f69b:0x7f,_0x44d52e:0x13a,_0x184f9e:0x27,_0x394711:0xe,_0x385014:0x40f,_0x4fe10a:0x44f,_0x44345a:0x4a7,_0x2c17a6:0xc4},_0x4e0b55={_0x326cda:0x214},_0x5e8c22={};_0x5e8c22[_0x283ddd(_0x3ca3e7._0x1fccb8,_0x3ca3e7._0x169974)]=_0x283ddd(0x446,0x427)+_0x3a7811(-_0x3ca3e7._0x31622d,0xff)+_0x3a7811(0x137,0x6)+_0x283ddd(0x6b3,0x5b3)+_0x283ddd(_0x3ca3e7._0x4d694b,0x2b9)+'or\x20passw'+_0x3a7811(0x235,0xd7),_0x5e8c22[_0x3a7811(-_0x3ca3e7._0x4b8925,_0x3ca3e7._0x41c0f1)]=function(_0x3359ec,_0x2bc5b1){return _0x3359ec===_0x2bc5b1;},_0x5e8c22[_0x283ddd(0x3b4,0x333)]='OpenClaw'+_0x3a7811(0x2e,0xff)+'\x20token\x20i'+_0x3a7811(_0x3ca3e7._0x1b1ac4,0x2ed)+'g.',_0x5e8c22[_0x283ddd(_0x3ca3e7._0x3c3b20,_0x3ca3e7._0x50c29f)]=function(_0x55af06,_0x56d4f4){return _0x55af06===_0x56d4f4;};function _0x283ddd(_0x46a19a,_0x565a2e){return _0x4985a8(_0x565a2e- -_0x4e0b55._0x326cda,_0x46a19a);}const _0x23830a=_0x5e8c22;function _0x3a7811(_0x3d78bc,_0x3c4975){return _0x4985a8(_0x3c4975- -0x5b5,_0x3d78bc);}const _0x319b2d=[];return!_0x933387[_0x283ddd(_0x3ca3e7._0x19fdde,_0x3ca3e7._0x37619d)+'ConfigFo'+_0x3a7811(-_0x3ca3e7._0x3461f9,-_0x3ca3e7._0x568e1c)]&&_0x319b2d[_0x283ddd(0x592,0x3c8)]('OpenClaw'+'\x20config\x20'+_0x283ddd(0x693,0x51a)+_0x3a7811(-_0x3ca3e7._0xa5c1a0,-_0x3ca3e7._0x16a8e3)+'der\x20'+formatOpenClawConfigLocations()+'.'),_0x933387['openclaw'+_0x283ddd(_0x3ca3e7._0x39e434,_0x3ca3e7._0x14e8cf)+'nd']&&_0x933387[_0x3a7811(0x1c4,_0x3ca3e7._0x3c7868)+_0x283ddd(0x481,_0x3ca3e7._0x47cfb0)+_0x3a7811(0x336,0x27b)]&&_0x933387['openclaw'+_0x283ddd(_0x3ca3e7._0x3b28d6,0x420)]==null&&_0x319b2d[_0x283ddd(0x25a,0x3c8)]('OpenClaw'+'\x20has\x20bot'+_0x3a7811(-0x166,_0x3ca3e7._0x2a9de6)+_0x3a7811(-0x12d,-0x56)+_0x3a7811(0x328,_0x3ca3e7._0x4b6b2a)+'word\x20con'+_0x3a7811(-_0x3ca3e7._0x356d55,-_0x3ca3e7._0x420281)+_0x283ddd(0x414,0x305)+_0x3a7811(-_0x3ca3e7._0x3a83aa,-0x72)+_0x283ddd(_0x3ca3e7._0x59aabd,_0x3ca3e7._0x45b503)+_0x3a7811(-0xad,0x12)),!_0x933387[_0x3a7811(0x396,0x24e)+_0x283ddd(0x4b7,_0x3ca3e7._0x14e8cf)+'nd']&&!_0x933387[_0x3a7811(0x220,0x24e)+'Password'+'Found']&&_0x319b2d[_0x283ddd(0x544,_0x3ca3e7._0x13af80)](_0x23830a[_0x283ddd(0x2c9,0x41c)]),_0x23830a[_0x283ddd(0x657,0x456)](_0x933387[_0x283ddd(0x53d,_0x3ca3e7._0x37619d)+'AuthMode'],_0x283ddd(0x6db,_0x3ca3e7._0x116288))&&!_0x933387[_0x3a7811(0x2e6,0x24e)+_0x3a7811(_0x3ca3e7._0xd2fd45,_0x3ca3e7._0x292f02)+'nd']&&_0x319b2d['push'](_0x23830a[_0x283ddd(_0x3ca3e7._0x3a3887,0x333)]),_0x23830a[_0x3a7811(0x7f,0x12a)](_0x933387['openclaw'+_0x3a7811(0x180,_0x3ca3e7._0x93f69b)],'password')&&!_0x933387[_0x283ddd(0x827,0x5ef)+_0x3a7811(-0x214,-0x9d)+'Found']&&_0x319b2d[_0x3a7811(_0x3ca3e7._0x44d52e,_0x3ca3e7._0x184f9e)](_0x283ddd(0x5cd,0x427)+'\x20gateway'+'\x20passwor'+'d\x20is\x20mis'+'sing.'),!_0x933387['localGat'+_0x283ddd(0x13e,0x2a2)+_0x3a7811(-0x106,-0x66)]&&_0x319b2d['push']('Local\x20Op'+'enClaw\x20G'+_0x3a7811(-0x35,-_0x3ca3e7._0x394711)+_0x283ddd(0x37e,_0x3ca3e7._0x385014)+_0x283ddd(_0x3ca3e7._0x4fe10a,_0x3ca3e7._0x44345a)+'at\x20'+_0x933387[_0x283ddd(0x527,0x598)+_0x3a7811(-0x10e,-_0x3ca3e7._0x2c17a6)]+'.'),_0x319b2d;}function formatOpenClawConfigLocations(){const _0x52a82c={_0x31e8e9:0x6b5,_0x161694:0x5c4,_0x37ad57:0x4b5,_0x4456de:0x6d7,_0x587502:0x442,_0x5c2ace:0x3e8},_0x2a28f3={_0x1a6feb:0x2a,_0x3da932:0x277},_0x3d1b66={_0x51b65a:0x1c7},_0x52b123={_0x5755a8:0xb8};function _0x52100b(_0x369af9,_0x2c9163){return _0x4985a8(_0x2c9163- -_0x52b123._0x5755a8,_0x369af9);}function _0x5021c8(_0x5b2a88,_0x15a42d){return _0x4985a8(_0x5b2a88- -_0x3d1b66._0x51b65a,_0x15a42d);}const _0x39268a=new Set();return[_0x1e39b0(),'/root'][_0x5021c8(0x3ae,0x391)](_0x45176c=>_0x45176c['trim']()+('/.opencl'+'aw'))[_0x52100b(_0x52a82c._0x31e8e9,_0x52a82c._0x161694)](_0x5f5a71=>_0x5f5a71!==_0x52100b(0x5f7,0x575)+'aw')[_0x5021c8(_0x52a82c._0x37ad57,_0x52a82c._0x4456de)](_0x2c9105=>{function _0x3e2eef(_0x15e044,_0x4e74b3){return _0x5021c8(_0x4e74b3- -0x34c,_0x15e044);}if(_0x39268a[_0x6a9faf(-0xda,_0x2a28f3._0x1a6feb)](_0x2c9105))return![];function _0x6a9faf(_0x56c381,_0x4d5488){return _0x5021c8(_0x4d5488- -0x2e2,_0x56c381);}return _0x39268a[_0x6a9faf(0x1db,_0x2a28f3._0x3da932)](_0x2c9105),!![];})['join'](_0x5021c8(_0x52a82c._0x587502,_0x52a82c._0x5c2ace));}function readLogFile(_0x10d178){const _0x5f3ab7={_0x45bda0:0xaf,_0x5c8094:0x55f,_0x22a936:0x588},_0x1f3158={_0x5ce430:0x435};function _0x19f859(_0x3a7eb1,_0x5cdcee){return _0x4985a8(_0x3a7eb1- -0x84,_0x5cdcee);}function _0x32b40e(_0x29f863,_0x1ddfb9){return _0x4985a8(_0x1ddfb9- -_0x1f3158._0x5ce430,_0x29f863);}try{const _0x2337bc=_0x5b3c95(_0x10d178,_0x32b40e(0x55,_0x5f3ab7._0x45bda0));return _0x2337bc[_0x19f859(_0x5f3ab7._0x5c8094,_0x5f3ab7._0x22a936)](/\r?\n/)[_0x19f859(0x5f8,0x7ce)](Boolean)['map'](_0x51ee84=>({'raw':_0x51ee84,'ts':parseTimestamp(_0x51ee84)}));}catch{return[];}}function parseTimestamp(_0x4ebe1e){const _0x3cf565={_0x362e51:0x4bf},_0x3929c8=_0x4ebe1e['match'](/^\[(\d{13})\]\s/);if(!_0x3929c8)return null;function _0x20b24c(_0x148d08,_0xeb5fcd){return _0x285196(_0xeb5fcd- -0xf3,_0x148d08);}const _0x864334=Number(_0x3929c8[0x1]);return Number[_0x20b24c(0x6af,_0x3cf565._0x362e51)](_0x864334)?_0x864334:null;}function clampLines(_0x477972){const _0x4bf812={_0x9fcacd:0x569,_0x134660:0x49a,_0x279c89:0x636};function _0x25857a(_0x4bf9ec,_0x1a55d6){return _0x285196(_0x1a55d6- -0x5da,_0x4bf9ec);}if(!Number[_0x2d23c7(0x47a,0x2a7)](_0x477972))return 0xc8;function _0x2d23c7(_0x1ab932,_0x3b4d05){return _0x285196(_0x3b4d05- -0x30b,_0x1ab932);}return Math[_0x2d23c7(_0x4bf812._0x9fcacd,0x3b7)](0x1,Math[_0x2d23c7(0x484,_0x4bf812._0x134660)](0x7d0,Math[_0x2d23c7(_0x4bf812._0x279c89,0x554)](_0x477972)));}async function checkGatewayReachable(_0x9f358e){const _0x35d3d8={_0x353136:0x153,_0x3ba1a1:0x31c,_0x53fbee:0x486,_0x52f2db:0x529,_0x15b735:0x6fb,_0x2361b5:0x5b4},_0x1b07fa={_0x20727c:0xb0,_0x1c7459:0xac,_0x5ba507:0x9b},_0x64802b={_0x273ff1:0x178,_0x44f261:0x51,_0x3288ce:0x2e3},_0x687aea={_0x452790:0x103};function _0x95a41a(_0x20e4c5,_0x24ae5b){return _0x285196(_0x24ae5b- -_0x687aea._0x452790,_0x20e4c5);}function _0xa2e7bd(_0x2e6249,_0x2f9032){return _0x285196(_0x2e6249- -0x35d,_0x2f9032);}const _0x331125={'mIUrT':function(_0x50a536,_0x458700){return _0x50a536(_0x458700);},'HKTRX':'127.0.0.'+'1','NTTxY':function(_0x4189b1,_0x324b69){return _0x4189b1(_0x324b69);}};try{const _0x44e144=new URL(_0x9f358e),_0x269064=_0x44e144['hostname']||_0x331125[_0x95a41a(_0x35d3d8._0x353136,_0x35d3d8._0x3ba1a1)],_0x4ed687=_0x44e144[_0x95a41a(_0x35d3d8._0x53fbee,0x491)]?_0x331125[_0x95a41a(_0x35d3d8._0x52f2db,_0x35d3d8._0x15b735)](Number,_0x44e144[_0x95a41a(0x473,0x491)]):_0x44e144[_0xa2e7bd(0x1c7,0x12d)]===_0x95a41a(0x6d9,_0x35d3d8._0x2361b5)?0x1bb:0x50;return await new Promise((_0x3ed7b8,_0x533c97)=>{const _0x47c4d5={_0x2f1b76:0x699},_0x4af6ed={'PkvNJ':function(_0x207530,_0x48aae6){return _0x207530(_0x48aae6);}},_0x4aa168=new Socket();function _0x563671(_0x22fe70,_0x4db9da){return _0x95a41a(_0x4db9da,_0x22fe70- -0x3d1);}function _0x3d0eca(_0x3b8474,_0x5cce0b){return _0x95a41a(_0x5cce0b,_0x3b8474- -0x400);}_0x4aa168[_0x563671(0x144,0x261)+'ut'](0x384),_0x4aa168[_0x563671(_0x1b07fa._0x20727c,0x263)](_0x3d0eca(0xed,0x212),()=>{function _0x38a992(_0x218338,_0x53a59c){return _0x563671(_0x218338-0x59d,_0x53a59c);}_0x4aa168[_0x38a992(_0x47c4d5._0x2f1b76,0x66b)](),_0x3ed7b8();}),_0x4aa168[_0x563671(0xb0,0x1b5)]('timeout',()=>{const _0x53630a={_0x287c83:0x2c6},_0x5595e5={_0x3df016:0xa5};function _0x268499(_0x21583a,_0x45bcd9){return _0x563671(_0x45bcd9-_0x5595e5._0x3df016,_0x21583a);}function _0x33764f(_0x4c5f6b,_0xb5525f){return _0x563671(_0xb5525f-_0x53630a._0x287c83,_0x4c5f6b);}_0x4aa168[_0x268499(0x84,0x1a1)](),_0x331125[_0x268499(0xfe,0x1a0)](_0x533c97,new Error('timeout'));}),_0x4aa168[_0x563671(0xb0,-_0x1b07fa._0x1c7459)]('error',_0xd103c3=>{function _0x19dc32(_0x255190,_0x2ba331){return _0x563671(_0x255190-0x7c,_0x2ba331);}function _0x54bb85(_0x15ecf2,_0x15aa23){return _0x563671(_0x15ecf2-0x54,_0x15aa23);}_0x4aa168[_0x19dc32(_0x64802b._0x273ff1,_0x64802b._0x44f261)](),_0x4af6ed[_0x54bb85(0x126,_0x64802b._0x3288ce)](_0x533c97,_0xd103c3);}),_0x4aa168[_0x3d0eca(0xed,-_0x1b07fa._0x5ba507)](_0x4ed687,_0x269064);}),!![];}catch{return![];}}function parseLookbackToMs(_0x4a3466){const _0x5df140={_0x1152af:0x45f,_0x3cd599:0x321,_0x31924b:0x675,_0x214e50:0x73e,_0x51c76f:0x1a8,_0x476e2c:0x383,_0x1a1144:0x5e0,_0x5bc4c8:0x45d,_0x36751c:0x4f0,_0x31b4e4:0x5c4},_0x5e8967={_0x23d675:0x9e},_0x2abc33={};_0x2abc33[_0x59a379(0x470,0x5b5)]=function(_0x4ee27c,_0x4d51df){return _0x4ee27c===_0x4d51df;};function _0x59a379(_0x5aecdb,_0x55a6e9){return _0x4985a8(_0x55a6e9- -_0x5e8967._0x23d675,_0x5aecdb);}function _0x247e6a(_0x1b9859,_0x348743){return _0x4985a8(_0x1b9859- -0x1f6,_0x348743);}_0x2abc33['CUimO']=function(_0x4ec878,_0xad3ae7){return _0x4ec878*_0xad3ae7;};const _0x4ef6a0=_0x2abc33,_0x4d2694=_0x4a3466?.[_0x247e6a(_0x5df140._0x1152af,_0x5df140._0x3cd599)]();if(!_0x4d2694)return null;const _0x23bcc0=_0x4d2694[_0x247e6a(0x5cd,0x7c3)](/^(\d+)(ms|s|m|h|d)$/i);if(!_0x23bcc0)throw new Error(_0x247e6a(0x2c4,0x2c5)+_0x247e6a(_0x5df140._0x31924b,0x74c)+_0x59a379(_0x5df140._0x214e50,0x563)+_0x4d2694+(_0x247e6a(0x3d2,_0x5df140._0x51c76f)+_0x247e6a(_0x5df140._0x476e2c,0x3d4)+_0x59a379(_0x5df140._0x1a1144,0x5c9)+'2m,\x201h,\x20'+_0x59a379(0x56b,0x79b)));const _0x244a6d=Number(_0x23bcc0[0x1]),_0x5ee155=_0x23bcc0[0x2]['toLowerC'+'ase'](),_0x57b5e6=_0x4ef6a0['gThyC'](_0x5ee155,'ms')?0x1:_0x5ee155==='s'?0x3e8:_0x4ef6a0[_0x247e6a(_0x5df140._0x5bc4c8,0x54e)](_0x5ee155,'m')?0xea60:_0x5ee155==='h'?0x36ee80:0x5265c00;return _0x4ef6a0[_0x59a379(_0x5df140._0x36751c,_0x5df140._0x31b4e4)](_0x244a6d,_0x57b5e6);}import{networkInterfaces}from'os';var BLOCKED_INTERFACE_TOKENS=[_0x285196(0x7b3,0x772),_0x4985a8(0x857,0x8d0),_0x4985a8(0x78c,0x9b8),_0x4985a8(0x663,0x6f1)+'e',_0x285196(0x640,0x77d)+'d','wg',_0x4985a8(0x740,0x648),_0x4985a8(0x75f,0x8b8),_0x285196(0x7db,0x9c1),_0x285196(0x57e,0x3d4),_0x285196(0x4ca,0x45b),_0x4985a8(0x8da,0xaef),'loopback',_0x4985a8(0x6f0,0x7eb),_0x4985a8(0x52c,0x366),_0x4985a8(0x616,0x4a5),_0x285196(0x7c2,0x686),_0x285196(0x508,0x619),_0x4985a8(0x4e5,0x707),_0x4985a8(0x64e,0x615)];function buildLocalPairingInfo(_0x18d388){const _0x285191={_0x5e5a60:0x91f,_0x5d4719:0xa52,_0xb66f3a:0x5f7,_0x3ee193:0x78b,_0xc4b671:0x4a0},_0x3fb586={_0x11b156:0xe5},_0x320842={'ZsAwV':function(_0x594fd0,_0x383cd5){return _0x594fd0(_0x383cd5);}},_0x1251f0=resolveLocalPairAuth(_0x18d388),_0x4b3df3={};_0x4b3df3['explicit'+_0x1e2bf5(0x5fc,0x46a)]=_0x18d388[_0x1e2bf5(_0x285191._0x5e5a60,_0x285191._0x5d4719)+'Url'];function _0x1e2bf5(_0x55fc1d,_0x6ab6ba){return _0x4985a8(_0x55fc1d-_0x3fb586._0x11b156,_0x6ab6ba);}_0x4b3df3[_0xaa1f86(0x719,0x8f5)+_0x1e2bf5(0x786,_0x285191._0xb66f3a)+'l']=_0x18d388[_0xaa1f86(0x719,0x6e7)+'atewayUr'+'l'];const _0x5eeca1=resolveLocalPairGatewayUrl(_0x4b3df3),_0x2f391c=_0x18d388[_0x1e2bf5(0x8eb,_0x285191._0x3ee193)+'t']??Date['now']()+0xa*0x3c*0x3e8;function _0xaa1f86(_0x2cd05c,_0x5a9b18){return _0x4985a8(_0x2cd05c- -0x14d,_0x5a9b18);}return{'gatewayUrl':_0x5eeca1,'expiresAt':_0x2f391c,'authMode':_0x1251f0[_0x1e2bf5(0x5fa,0x7d8)],'qrPayload':_0x320842[_0x1e2bf5(0x6c5,0x562)](buildGatewayQrPayload,{'gatewayUrl':_0x5eeca1,'token':_0x1251f0[_0xaa1f86(0x595,_0x285191._0xc4b671)],'password':_0x1251f0['password'],'expiresAt':_0x2f391c})};}function resolveLocalPairGatewayUrl(_0x348652){const _0x51a74b={_0x2de45c:0x8f1,_0x24bf2d:0x6da,_0x532a2a:0x13c,_0x3ed9d4:0x4,_0x494b42:0x40e,_0x28fee1:0x695,_0x33a372:0x790,_0x5f4ded:0x79c,_0x383342:0x301,_0x38d92d:0x2f4,_0x90fdaa:0x49c},_0x204f9e={_0x4c2ee6:0x4d},_0x4cbd6={_0xecf100:0x618},_0x4dc348=_0x348652?.[_0x373dbe(_0x51a74b._0x2de45c,0x760)+_0x54d149(-0x18e,-0x2e8)]?.[_0x373dbe(_0x51a74b._0x24bf2d,0x57b)]();function _0x54d149(_0x14a997,_0x15e602){return _0x285196(_0x14a997- -_0x4cbd6._0xecf100,_0x15e602);}if(_0x4dc348)return normalizeExplicitGatewayUrl(_0x4dc348);function _0x373dbe(_0x4662a0,_0x12ce5b){return _0x285196(_0x12ce5b- -_0x204f9e._0x4c2ee6,_0x4662a0);}const _0x32e745=_0x348652?.[_0x54d149(0x1c1,_0x51a74b._0x532a2a)+_0x54d149(-_0x51a74b._0x3ed9d4,0x1ec)+'l']?.[_0x373dbe(_0x51a74b._0x494b42,0x57b)]()||resolveGatewayUrl(),_0x1a6a64=detectLanIp();if(!_0x1a6a64)throw new Error(_0x373dbe(0x491,_0x51a74b._0x28fee1)+'o\x20determ'+'ine\x20a\x20LA'+_0x373dbe(0x533,0x6f0)+_0x373dbe(_0x51a74b._0x33a372,_0x51a74b._0x5f4ded)+'ss\x20--url'+_0x54d149(0x216,_0x51a74b._0x383342)+_0x54d149(0xda,_0x51a74b._0x38d92d)+'stom\x20gat'+_0x373dbe(_0x51a74b._0x90fdaa,0x647)+'.');return rewriteGatewayHost(_0x32e745,_0x1a6a64);}function normalizeExplicitGatewayUrl(_0x49719e){const _0x3d32bb={_0x267610:0x2f2,_0x34acae:0x72d,_0x395373:0x5e6,_0x5daa49:0x9b5,_0x584989:0x8bd},_0x2a37d0={'VTTQJ':function(_0x47a393,_0x93be3c){return _0x47a393(_0x93be3c);}},_0x298fb3=_0x49719e[_0x19a77f(_0x3d32bb._0x267610,0x335)]();function _0x19a77f(_0x53b0f4,_0xeca2d3){return _0x285196(_0xeca2d3- -0x293,_0x53b0f4);}const _0xb64f14=/^[a-z]+:\/\//i[_0x2e3b9b(0x418,0x5f0)](_0x298fb3)?_0x298fb3:'ws://'+_0x298fb3;function _0x2e3b9b(_0x48df91,_0x5d335f){return _0x285196(_0x5d335f-0x194,_0x48df91);}return _0x2a37d0[_0x19a77f(_0x3d32bb._0x34acae,_0x3d32bb._0x395373)](normalizeGatewayQrUrl,_0xb64f14)[_0x2e3b9b(_0x3d32bb._0x5daa49,_0x3d32bb._0x584989)];}function rewriteGatewayHost(_0x59cfed,_0x5c663c){const _0x4e97c2={_0x149c4f:0x43a,_0x5dcb20:0x5ba,_0x21d01a:0x4cc,_0x52e063:0x44e,_0x41b32e:0x2f8,_0xf85908:0x490,_0x5bb718:0x4fb},_0x351eb8={_0x1eb4a1:0x9b};function _0x13e789(_0x1b75aa,_0xb5756d){return _0x4985a8(_0xb5756d- -0x127,_0x1b75aa);}const _0x534b26=_0x59cfed[_0xbd4ca8(_0x4e97c2._0x149c4f,_0x4e97c2._0x5dcb20)](),_0x4fcfad=/^[a-z]+:\/\//i[_0xbd4ca8(_0x4e97c2._0x21d01a,_0x4e97c2._0x52e063)](_0x534b26)?_0x534b26:_0xbd4ca8(_0x4e97c2._0x41b32e,_0x4e97c2._0xf85908)+_0x534b26,_0x48a2f5=new URL(_0x4fcfad);function _0xbd4ca8(_0x131a06,_0x3295a2){return _0x4985a8(_0x3295a2- -_0x351eb8._0x1eb4a1,_0x131a06);}return _0x48a2f5['hostname']=_0x5c663c,normalizeGatewayQrUrl(_0x48a2f5[_0x13e789(_0x4e97c2._0x5bb718,0x3d4)]())['url'];}function detectLanIp(){const _0x599574={_0x224c9f:0x1d5,_0x4ab2ed:0x4be,_0x2c5a94:0x227,_0x334aa0:0x42b,_0x29587a:0x0,_0x2b3fe2:0x67};function _0x1aa925(_0x56b871,_0x37a527){return _0x285196(_0x56b871- -0xd9,_0x37a527);}const _0x562b9d={'PcSdB':function(_0x28ad86,_0x8bc67a){return _0x28ad86!==_0x8bc67a;},'mvtOT':function(_0x1d31a3,_0x53fa70,_0x179700){return _0x1d31a3(_0x53fa70,_0x179700);}},_0x46c9f6=networkInterfaces();function _0x3bf3dc(_0x4c694b,_0x1442e8){return _0x285196(_0x1442e8- -0x5f3,_0x4c694b);}let _0x1172cd=null;for(const [_0x42b362,_0x465627]of Object[_0x3bf3dc(0x2f3,_0x599574._0x224c9f)](_0x46c9f6)){for(const _0x3c5f59 of _0x465627??[]){if(_0x562b9d[_0x1aa925(0x6c6,_0x599574._0x4ab2ed)](_0x3c5f59[_0x3bf3dc(-_0x599574._0x2c5a94,-0x8d)],_0x1aa925(_0x599574._0x334aa0,0x401)))continue;const _0x2dbb40=_0x562b9d['mvtOT'](scoreLanCandidate,_0x42b362,_0x3c5f59[_0x1aa925(0x35a,0x4d8)]);if(_0x2dbb40===0x0)continue;if(!_0x1172cd||_0x2dbb40>_0x1172cd['score']){const _0x34c52f={};_0x34c52f[_0x3bf3dc(_0x599574._0x29587a,-_0x599574._0x2b3fe2)]=_0x2dbb40,_0x34c52f['ip']=_0x3c5f59['address'],_0x1172cd=_0x34c52f;}}}return _0x1172cd?.['ip']??null;}function scoreLanCandidate(_0xe5907f,_0x44e559){const _0x14c3da={_0x395424:0x512,_0x348d3b:0x442,_0x1cb8b8:0x4ce,_0x2f8ef7:0x5bb,_0x56765b:0x509,_0x1c8065:0x8a8,_0x373a56:0x8b6,_0x4c2e7f:0x3cc,_0x5ad558:0x1cf,_0x131f37:0x7c7,_0x909e49:0x506,_0x16227d:0x49f,_0x131eb5:0x649,_0xc812c6:0x669},_0xbcfb54={_0x119174:0x29e},_0x194023={'SXpwy':function(_0x3b3b01,_0x31b6fc){return _0x3b3b01(_0x31b6fc);},'ELJzT':_0x241ebf(_0x14c3da._0x395424,0x6a5)};if(!isLanIpv4(_0x44e559))return 0x0;const _0x180ffd=_0xe5907f[_0x1a1e6f(0x573,0x528)+_0x1a1e6f(_0x14c3da._0x348d3b,0x5b2)]();function _0x241ebf(_0x5c8a78,_0x1898ed){return _0x285196(_0x5c8a78- -0x92,_0x1898ed);}function _0x1a1e6f(_0x412a46,_0x49d105){return _0x285196(_0x412a46- -_0xbcfb54._0x119174,_0x49d105);}if(BLOCKED_INTERFACE_TOKENS[_0x241ebf(_0x14c3da._0x1cb8b8,0x5a8)](_0x352b79=>_0x180ffd[_0x241ebf(0x712,0x8f8)](_0x352b79)))return 0x0;let _0x205e33=isRfc1918(_0x44e559)?0x78:_0x194023['SXpwy'](isCgnat,_0x44e559)?0x5a:0x28;return(_0x180ffd[_0x1a1e6f(_0x14c3da._0x2f8ef7,_0x14c3da._0x56765b)+'th']('en')||_0x180ffd[_0x241ebf(0x7c7,_0x14c3da._0x1c8065)+'th'](_0x241ebf(0x3c1,0x38d))||_0x180ffd[_0x241ebf(0x7c7,_0x14c3da._0x373a56)+'th'](_0x241ebf(_0x14c3da._0x4c2e7f,_0x14c3da._0x5ad558))||_0x180ffd[_0x241ebf(_0x14c3da._0x131f37,0x906)+'th']('wl')||_0x180ffd['includes']('wifi')||_0x180ffd[_0x1a1e6f(_0x14c3da._0x909e49,_0x14c3da._0x16227d)](_0x194023[_0x241ebf(_0x14c3da._0x131eb5,_0x14c3da._0xc812c6)]))&&(_0x205e33+=0x14),_0x205e33;}function resolveLocalPairAuth(_0x5a9e29){const _0x2eb5fe={_0x2a141c:0x13c,_0x5e8601:0x230,_0x25f07e:0x21d,_0x2be8f3:0x32d,_0x172fa6:0x2d1,_0x1dcbac:0x33e,_0xf895de:0x129,_0x3dd487:0x502,_0x4495fe:0x4ee,_0x5141c1:0x1d5,_0x12a256:0x79a,_0x48987c:0x3a9,_0x542304:0x4d0,_0x1ff974:0x182,_0x2be6f7:0x468,_0x2ad70d:0xce,_0x92bdb0:0x539,_0x1b0e72:0x747},_0x20bc2c={_0x5da669:0x153},_0x44bc6f={_0x43bb9d:0x5b9};function _0x3c95f9(_0x23b91f,_0x2ac2cb){return _0x4985a8(_0x2ac2cb- -_0x44bc6f._0x43bb9d,_0x23b91f);}const _0x494182={};_0x494182[_0x3c95f9(_0x2eb5fe._0x2a141c,_0x2eb5fe._0x5e8601)]=_0x3c95f9(-_0x2eb5fe._0x25f07e,-0x4c);const _0x5a538a=_0x494182;function _0x3ac6a3(_0x29255f,_0x5cf4c7){return _0x4985a8(_0x29255f- -_0x20bc2c._0x5da669,_0x5cf4c7);}if(_0x5a9e29[_0x3ac6a3(0x44e,0x654)+_0x3c95f9(_0x2eb5fe._0x2be8f3,_0x2eb5fe._0x172fa6)]?.['trim']())return{'mode':_0x3c95f9(_0x2eb5fe._0x1dcbac,_0x2eb5fe._0xf895de),'token':_0x5a9e29['gatewayT'+'oken'][_0x3ac6a3(_0x2eb5fe._0x3dd487,_0x2eb5fe._0x4495fe)](),'password':null};if(_0x5a9e29[_0x3ac6a3(0x3a9,_0x2eb5fe._0x5141c1)+_0x3ac6a3(_0x2eb5fe._0x12a256,0x81e)]?.['trim']())return{'mode':_0x5a538a[_0x3c95f9(0x33c,_0x2eb5fe._0x5e8601)],'token':null,'password':_0x5a9e29[_0x3ac6a3(_0x2eb5fe._0x48987c,_0x2eb5fe._0x542304)+'assword'][_0x3c95f9(-_0x2eb5fe._0x1ff974,0x9c)]()};throw new Error('OpenClaw'+_0x3c95f9(0x2af,0xfb)+_0x3ac6a3(_0x2eb5fe._0x2be6f7,0x6a2)+'\x20missing'+'\x20(token\x20'+_0x3c95f9(0x1b3,_0x2eb5fe._0x2ad70d)+_0x3ac6a3(_0x2eb5fe._0x92bdb0,_0x2eb5fe._0x1b0e72));}function isLanIpv4(_0x29c0b7){const _0xb2c553={_0x2d429a:0x330,_0x443445:0x410,_0x25f707:0x253,_0x270630:0x14a,_0x2c1771:0x348,_0x493b6b:0x40d},_0x30dff1={'RCZfm':function(_0x1c4ead,_0x33dae8){return _0x1c4ead(_0x33dae8);},'rGJkt':function(_0x59fbdf,_0x172cfe){return _0x59fbdf===_0x172cfe;},'ilOjp':function(_0x50db80,_0x386a84){return _0x50db80===_0x386a84;},'tooJi':function(_0x4fa62f,_0x5c350f){return _0x4fa62f(_0x5c350f);}};function _0x2a11dc(_0x3dddf8,_0x4dcf9d){return _0x285196(_0x3dddf8- -0x1e9,_0x4dcf9d);}if(!_0x30dff1[_0x534f92(_0xb2c553._0x2d429a,_0xb2c553._0x443445)](isValidIpv4,_0x29c0b7))return![];if(_0x29c0b7===_0x534f92(_0xb2c553._0x25f707,_0xb2c553._0x270630))return![];const [_0x13105d,_0x5a66b6,_0x3d2b14,_0x4b8a2a]=_0x29c0b7['split']('.')[_0x2a11dc(0x2ff,0x223)](Number);if(_0x30dff1['rGJkt'](_0x13105d,0x7f))return![];if(_0x13105d===0xa9&&_0x5a66b6===0xfe)return![];if(_0x13105d>=0xe0&&_0x13105d<=0xef)return![];function _0x534f92(_0x2f728a,_0x457e7f){return _0x285196(_0x457e7f- -0x376,_0x2f728a);}if(_0x13105d===0xff&&_0x5a66b6===0xff&&_0x30dff1[_0x534f92(0x1af,_0xb2c553._0x2c1771)](_0x3d2b14,0xff)&&_0x4b8a2a===0xff)return![];if(_0x13105d===0xc6&&(_0x5a66b6===0x12||_0x30dff1[_0x534f92(_0xb2c553._0x493b6b,0x41b)](_0x5a66b6,0x13)))return![];return isRfc1918(_0x29c0b7)||_0x30dff1['tooJi'](isCgnat,_0x29c0b7);}function isRfc1918(_0x547e24){const _0x637ef7={_0x297b06:0x6a,_0x54e9c2:0x14f,_0x202618:0x150,_0x2f126b:0x129};function _0x1d625f(_0x38ffd2,_0x3d3189){return _0x4985a8(_0x3d3189- -0x62a,_0x38ffd2);}const _0x302362={};_0x302362[_0x1d625f(-_0x637ef7._0x297b06,_0x637ef7._0x54e9c2)]=function(_0x5532cf,_0x12b82c){return _0x5532cf===_0x12b82c;};const _0x344822=_0x302362,[_0xc109e7,_0x37fdbf]=_0x547e24['split']('.')['map'](Number);function _0x10b54f(_0x501eef,_0x565ed5){return _0x4985a8(_0x501eef- -0x629,_0x565ed5);}return _0xc109e7===0xa||_0xc109e7===0xac&&_0x37fdbf>=0x10&&_0x37fdbf<=0x1f||_0xc109e7===0xc0&&_0x344822[_0x10b54f(_0x637ef7._0x202618,_0x637ef7._0x2f126b)](_0x37fdbf,0xa8);}function isCgnat(_0x15784c){const _0x4c9db6={_0xe70713:0x7cb,_0x389b04:0x63f,_0x2ae9ed:0x569,_0x3836bb:0x9c6},_0x5a129f={_0x478efd:0x47b},_0x31a20e={};function _0x12778e(_0x43757e,_0x44e8d9){return _0x4985a8(_0x43757e- -_0x5a129f._0x478efd,_0x44e8d9);}_0x31a20e['dQlYD']=function(_0x15247a,_0x5af237){return _0x15247a===_0x5af237;},_0x31a20e[_0x2f4e5b(_0x4c9db6._0xe70713,_0x4c9db6._0x389b04)]=function(_0x4a2b98,_0xde2a15){return _0x4a2b98>=_0xde2a15;};const _0x175ba3=_0x31a20e,[_0xbd064,_0x43df08]=_0x15784c[_0x2f4e5b(_0x4c9db6._0x2ae9ed,0x791)]('.')['map'](Number);function _0x2f4e5b(_0x69f8b7,_0x1b2396){return _0x4985a8(_0x69f8b7- -0x7a,_0x1b2396);}return _0x175ba3['dQlYD'](_0xbd064,0x64)&&_0x175ba3[_0x2f4e5b(0x7cb,_0x4c9db6._0x3836bb)](_0x43df08,0x40)&&_0x43df08<=0x7f;}function isValidIpv4(_0x9453eb){const _0x1c49b6={_0x432bac:0x6a2,_0x15a1b8:0x4bf,_0x4d58e8:0x394,_0x1f463e:0x30a,_0x4cd8aa:0x41e,_0x485219:0x48a},_0x17e4d8={};_0x17e4d8[_0x1fc970(_0x1c49b6._0x432bac,_0x1c49b6._0x15a1b8)]=function(_0xdc5f89,_0x28e3eb){return _0xdc5f89===_0x28e3eb;};const _0x19945e=_0x17e4d8;function _0x1fc970(_0x347bf3,_0x25187a){return _0x285196(_0x25187a- -0x18a,_0x347bf3);}function _0x15e34d(_0x30baf2,_0x18287b){return _0x285196(_0x18287b- -0x33f,_0x30baf2);}const _0x540776=_0x9453eb['split']('.');return _0x19945e[_0x15e34d(_0x1c49b6._0x4d58e8,_0x1c49b6._0x1f463e)](_0x540776[_0x15e34d(_0x1c49b6._0x4cd8aa,0x4ab)],0x4)&&_0x540776[_0x15e34d(0x65e,_0x1c49b6._0x485219)](_0x5409da=>{if(!/^\d+$/['test'](_0x5409da))return![];const _0x306981=Number(_0x5409da);return _0x306981>=0x0&&_0x306981<=0xff;});}import{readFileSync as _0x1ad90f}from'fs';import{dirname as _0x50354a,resolve}from'path';import{fileURLToPath}from'url';function readCliVersion(){const _0x338a30={_0x3957de:0x75,_0x5a64f6:0x176,_0x379da7:0x801,_0x30dbd5:0x340,_0x3efd9e:0x7c1,_0x5ab92e:0x8d9,_0x1b0a69:0x5d0,_0x39653c:0x56f},_0xcfeb0a={_0x42cac2:0x80};function _0x5ebbf1(_0xac8863,_0x203515){return _0x4985a8(_0xac8863-_0xcfeb0a._0x42cac2,_0x203515);}const _0x18328d={'Zwtsd':function(_0x2c5c29,_0x84b815){return _0x2c5c29(_0x84b815);},'mHGFr':_0x9a5abf(_0x338a30._0x3957de,_0x338a30._0x5a64f6),'nTADG':'unknown'},_0x292b00=_0x18328d['Zwtsd'](_0x50354a,fileURLToPath(import.meta.url)),_0x17df5b=resolve(_0x292b00,_0x5ebbf1(_0x338a30._0x379da7,0x97d)+_0x9a5abf(_0x338a30._0x30dbd5,0x335)),_0x10530b=_0x1ad90f(_0x17df5b,_0x18328d[_0x5ebbf1(0x625,_0x338a30._0x3efd9e)]);function _0x9a5abf(_0x5c1958,_0x2e0b54){return _0x4985a8(_0x5c1958- -0x46f,_0x2e0b54);}const _0x517a9c=JSON[_0x5ebbf1(0x7fc,_0x338a30._0x5ab92e)](_0x10530b);return _0x517a9c['version']??_0x18328d[_0x5ebbf1(_0x338a30._0x1b0a69,_0x338a30._0x39653c)];}function buildPairingJson(_0x13632c,_0x2901c6,_0x486d6a,_0x2bc2ec){const _0x17c1d5={_0x562049:0x568,_0x3ec56a:0x3dc,_0x201f46:0x3e2,_0x25934d:0x3a3,_0x3d0352:0x448,_0x4b2ef1:0x4cf,_0xe345de:0x29a,_0x1d5755:0x34d,_0x4172c8:0x494,_0x1f6a1f:0x550,_0x3b60c7:0x76e,_0xcff720:0x599,_0x4b389d:0x55a,_0xfda4c0:0x5fa,_0xa56773:0x4f5,_0x384e3b:0x5ce,_0x15b3e4:0x754,_0x50e2d3:0x297,_0x1e2cdf:0x134,_0x547672:0x263,_0x299e3f:0x86f,_0x221d7c:0x7aa,_0x3cbbc3:0x61d,_0x324c10:0x68a,_0x50459f:0x53e,_0x4b73e7:0x23d,_0x306169:0x302,_0x390c8c:0x527,_0x2a5ff8:0x56c,_0x395531:0x477,_0x3cb4d2:0x611,_0x83f6f5:0x4ea,_0x21d464:0x6e6,_0x2d0fd4:0x634},_0x589bbd={_0x1b4484:0x24c},_0x1765ae={};_0x1765ae[_0x316324(0x6a4,_0x17c1d5._0x562049)+'d']=_0x486d6a[_0x4a565a(0x4b8,_0x17c1d5._0x3ec56a)+'d'],_0x1765ae[_0x4a565a(_0x17c1d5._0x201f46,_0x17c1d5._0x25934d)]=_0x486d6a[_0x4a565a(0x3e2,0x529)],_0x1765ae[_0x316324(0x419,0x4cf)]=_0x486d6a[_0x316324(_0x17c1d5._0x3d0352,_0x17c1d5._0x4b2ef1)],_0x1765ae[_0x4a565a(_0x17c1d5._0xe345de,0x43a)+_0x316324(0x54e,0x768)]=_0x486d6a[_0x4a565a(0x29a,0x9e)+'ath'],_0x1765ae[_0x4a565a(_0x17c1d5._0x1d5755,_0x17c1d5._0x4172c8)]=_0x486d6a[_0x4a565a(0x34d,0x4f3)],_0x1765ae[_0x316324(_0x17c1d5._0x1f6a1f,_0x17c1d5._0x3b60c7)+_0x4a565a(_0x17c1d5._0xcff720,_0x17c1d5._0x4b389d)]=_0x486d6a['errorLog'+_0x316324(_0x17c1d5._0xfda4c0,0x649)],_0x1765ae[_0x4a565a(0x61b,_0x17c1d5._0xa56773)]=_0x486d6a[_0x316324(0x5f4,0x6cb)];const _0x5b4cee={};_0x5b4cee['ok']=!![],_0x5b4cee['action']=_0x13632c[_0x4a565a(_0x17c1d5._0x384e3b,0x3ea)],_0x5b4cee['message']=_0x2bc2ec,_0x5b4cee['gatewayI'+'d']=_0x13632c[_0x4a565a(0x6a5,_0x17c1d5._0x15b3e4)][_0x4a565a(_0x17c1d5._0x50e2d3,_0x17c1d5._0x1e2cdf)+'d'],_0x5b4cee[_0x4a565a(_0x17c1d5._0x547672,0x15b)]=_0x13632c[_0x4a565a(0x6a5,_0x17c1d5._0x299e3f)][_0x316324(0x46d,0x313)],_0x5b4cee[_0x4a565a(0x56d,0x4e6)+'l']=_0x13632c[_0x4a565a(0x6a5,0x48a)][_0x316324(_0x17c1d5._0x221d7c,_0x17c1d5._0x3cbbc3)+'l'];function _0x316324(_0x3ddd1d,_0x1093b5){return _0x4985a8(_0x1093b5- -0x19c,_0x3ddd1d);}_0x5b4cee['instance'+'Id']=_0x13632c['config'][_0x316324(_0x17c1d5._0x324c10,_0x17c1d5._0x50459f)+'Id'];function _0x4a565a(_0x18cdf4,_0x3f6617){return _0x4985a8(_0x18cdf4- -_0x589bbd._0x1b4484,_0x3f6617);}return _0x5b4cee[_0x4a565a(0x477,_0x17c1d5._0x4b73e7)+'de']=_0x13632c['accessCo'+'de'],_0x5b4cee[_0x316324(_0x17c1d5._0x306169,_0x17c1d5._0x390c8c)+_0x4a565a(_0x17c1d5._0x2a5ff8,0x696)+'sAt']=_0x13632c[_0x4a565a(_0x17c1d5._0x395531,_0x17c1d5._0x3cb4d2)+'deExpire'+_0x316324(_0x17c1d5._0x83f6f5,_0x17c1d5._0x21d464)],_0x5b4cee[_0x316324(0x64f,0x51e)+_0x4a565a(0x6b8,_0x17c1d5._0x2d0fd4)]=_0x2901c6,_0x5b4cee[_0x4a565a(0x607,0x473)]=_0x1765ae,_0x5b4cee;}function buildLocalPairingJson(_0x5b0be1){const _0x4a6fe6={_0x5d957d:0x114,_0x5313fd:0x63c,_0x15791e:0x4e6,_0x1230e3:0x630,_0xfd0fe9:0x225,_0x240920:0x31,_0x29631d:0xd9,_0x3afe85:0x2b3,_0x13a0c9:0xd9},_0x32041f={_0x165838:0x15f},_0x53e250={_0x9371db:0x554},_0x414421={};_0x414421['emEYQ']=_0x55654a(0x3c3,0x5b5);const _0xeadaf6=_0x414421,_0x60eb1f={};_0x60eb1f['ok']=!![],_0x60eb1f[_0x9e0d35(0x239,_0x4a6fe6._0x5d957d)]=_0xeadaf6[_0x55654a(_0x4a6fe6._0x5313fd,0x4ec)],_0x60eb1f['message']=_0x5b0be1[_0x9e0d35(0x2f5,_0x4a6fe6._0x15791e)],_0x60eb1f['gatewayU'+'rl']=_0x5b0be1['gatewayU'+'rl'],_0x60eb1f[_0x55654a(0x782,0x630)]=_0x5b0be1[_0x55654a(0x791,_0x4a6fe6._0x1230e3)],_0x60eb1f[_0x55654a(0x404,0x61a)+'t']=_0x5b0be1[_0x9e0d35(_0x4a6fe6._0xfd0fe9,_0x4a6fe6._0x240920)+'t'],_0x60eb1f[_0x9e0d35(_0x4a6fe6._0x29631d,_0x4a6fe6._0x3afe85)+'ath']=_0x5b0be1[_0x9e0d35(_0x4a6fe6._0x13a0c9,0xe8)+_0x9e0d35(0x323,0x1bd)];function _0x9e0d35(_0x2525ec,_0x5c34a9){return _0x285196(_0x2525ec- -_0x53e250._0x9371db,_0x5c34a9);}function _0x55654a(_0x230a16,_0x58afec){return _0x285196(_0x58afec- -_0x32041f._0x165838,_0x230a16);}return _0x60eb1f;}import{mkdirSync as _0x2ad50c,writeFileSync as _0x5d8135}from'fs';import{dirname as _0x1eb88f,isAbsolute,join as _0x5cc19a,resolve as _0x553a7c}from'path';import _0x47f065 from'qrcode';var DEFAULT_QR_DIR=getOpenClawMediaDir();async function writePairingQrPng(_0x1053aa,_0x509392){const _0x5e7416={_0x434169:0x6dd,_0x1377f5:0x427},_0x21c867={_0x211f2e:0x370},_0x2e7735=resolveQrOutputPath(_0x1053aa[_0x3133f2(0x4f4,_0x5e7416._0x434169)][_0x3133f2(0xe6,0x15e)+'d'],_0x509392);function _0x3133f2(_0x35b008,_0x3b2f4f){return _0x285196(_0x35b008- -_0x21c867._0x211f2e,_0x3b2f4f);}function _0x1c38e4(_0x36445c,_0x3c7c86){return _0x285196(_0x3c7c86- -0x3d4,_0x36445c);}return writeQrPng(_0x1053aa[_0x3133f2(0x3ea,_0x5e7416._0x1377f5)+'d'],_0x2e7735);}async function writeRawQrPng(_0xf1fe2d,_0x249926,_0x4490fe){const _0x5596c6=resolveQrOutputPath(_0x249926,_0x4490fe);return writeQrPng(_0xf1fe2d,_0x5596c6);}async function writeQrPng(_0x42a844,_0xae7e57){const _0x202ac1={_0x37bb1e:0x160,_0x434e7d:0xc5,_0x5dc457:0x14,_0x2e9033:0x26c,_0x14bff5:0x367,_0x5ef274:0x285},_0x3e7ca5={_0x3fa72d:0x644},_0x189093={'PjGMi':'image/pn'+'g','kxKDO':function(_0x242709,_0x5c0ee4,_0x151c2c){return _0x242709(_0x5c0ee4,_0x151c2c);}},_0x3e9dc0={};function _0x425fa8(_0x33b052,_0x3bdaf1){return _0x4985a8(_0x33b052- -_0x3e7ca5._0x3fa72d,_0x3bdaf1);}_0x3e9dc0[_0x425fa8(-0x56,_0x202ac1._0x37bb1e)+'e']=!![],_0x2ad50c(_0x1eb88f(_0xae7e57),_0x3e9dc0);function _0x4f5575(_0x2a5a1a,_0x2bd877){return _0x4985a8(_0x2bd877- -0x28a,_0x2a5a1a);}const _0xbe4cef={};_0xbe4cef[_0x425fa8(-_0x202ac1._0x434e7d,_0x202ac1._0x5dc457)]=_0x189093[_0x4f5575(0x770,0x53c)],_0xbe4cef[_0x425fa8(-0x109,0xf1)+_0x425fa8(_0x202ac1._0x2e9033,0x3dc)+_0x4f5575(0x240,_0x202ac1._0x14bff5)]='M',_0xbe4cef['margin']=0x1,_0xbe4cef[_0x425fa8(0x126,0x12a)]=0x2d0;const _0x28fd00=await _0x47f065[_0x4f5575(0x3b9,0x562)+'L'](_0x42a844,_0xbe4cef),_0x588a8c=_0x28fd00[_0x425fa8(_0x202ac1._0x5ef274,0x24f)](/^data:image\/png;base64,/,'');return _0x189093['kxKDO'](_0x5d8135,_0xae7e57,Buffer['from'](_0x588a8c,_0x425fa8(0x2be,0x198))),_0xae7e57;}function resolveQrOutputPath(_0x55b393,_0xc6133c){const _0x3a7a27={_0x857413:0xaf},_0x335f10=_0xc6133c?.['trim']();function _0x5662e9(_0x4b1a91,_0x3a8eda){return _0x285196(_0x3a8eda- -0x540,_0x4b1a91);}if(_0x335f10)return isAbsolute(_0x335f10)?_0x335f10:_0x553a7c(_0x335f10);return _0x5cc19a(DEFAULT_QR_DIR,_0x55b393+_0x5662e9(-0x5d,-_0x3a7a27._0x857413));}function decidePairServiceAction(_0x2921f9,_0x4318c9){const _0x17e8e2={_0x370e66:0x46e,_0x191e91:0x4a7,_0xacd37a:0x35a,_0x13c38f:0x380,_0x587475:0x124,_0x451e81:0x32a,_0x5d6ed4:0xca,_0x12d919:0x37b,_0x21b527:0x590},_0x21796e={_0x3e5a21:0x5e0};function _0xde10b8(_0x358996,_0xab4911){return _0x4985a8(_0x358996- -0x36e,_0xab4911);}function _0x31e48f(_0x41b4f3,_0x4fe320){return _0x4985a8(_0x41b4f3- -_0x21796e._0x3e5a21,_0x4fe320);}const _0x360736={};_0x360736[_0xde10b8(_0x17e8e2._0x370e66,_0x17e8e2._0x191e91)]=_0xde10b8(_0x17e8e2._0xacd37a,_0x17e8e2._0x13c38f);const _0x55485c=_0x360736;if(!_0x4318c9[_0x31e48f(_0x17e8e2._0x587475,_0x17e8e2._0x451e81)+'d'])return'install';if(!_0x4318c9[_0xde10b8(0x2c0,_0x17e8e2._0x5d6ed4)])return _0x55485c['NhswP'];if(_0x2921f9['action']===_0x31e48f(0x31b,_0x17e8e2._0x12d919)+'ed')return'restart';return _0xde10b8(_0x17e8e2._0x21b527,0x629);}async function main(){const _0x1e72fd={_0x4ece2c:0x260,_0x18fe46:0x1f5,_0x495024:0x722,_0x2db4b2:0x525,_0x2fcfe1:0x6f,_0x27a9c7:0x52e,_0x3a0221:0x68a,_0x4c72be:0x347,_0x3ca92f:0x567,_0xc956e8:0x5a7,_0x24850b:0x4aa,_0xd7ae2c:0x2ec,_0x25a925:0x2ab,_0x270f04:0x415,_0x1e9d35:0x353,_0x49620f:0x574,_0x3a160a:0x61e,_0x4e9e0b:0x273,_0x13839a:0x665,_0x3d5521:0x452,_0x2943d1:0x13b,_0xf0774d:0x16d,_0xd90953:0x155,_0x337b92:0x1c,_0x4aad84:0x168,_0x111a5d:0x13a,_0x6155d4:0x375,_0x59690c:0x3e7,_0x1eaf74:0x1d7,_0x4da003:0x294,_0x1b9468:0x105,_0xb9d536:0x357,_0x46d07c:0x2da,_0x1df2e7:0x166,_0x158284:0x612,_0x3d5832:0x2c5,_0x1a1ed2:0x441,_0x44797a:0x5c4,_0x1035dd:0x1df,_0x1647ba:0x12,_0x3d8acd:0x139,_0x1a0ae1:0x7ac,_0x351017:0x658,_0x50cd16:0x5a8,_0x28fcff:0x592,_0x399f9f:0x115,_0x47249c:0x5d2,_0x4efbb0:0x461,_0x5e01d3:0x33a,_0x2b3ad3:0x5f0,_0x1ee6dc:0x30c,_0x4a3b04:0xbe,_0x1f14fb:0xcc,_0xd4e5cb:0x736,_0x67ff91:0x594,_0x2a34b0:0x82,_0xe4c876:0x4,_0xbe776e:0x214,_0x3fd133:0xa2,_0x37a16e:0x389,_0x586e6d:0xbf,_0x1b36d9:0x46e,_0x334558:0x1a2,_0x339986:0x387,_0x5b011e:0x2e4,_0x3d6c4d:0xe9,_0x5b2328:0x402,_0x3fe739:0x269,_0x1ca8c0:0x494,_0x2129ae:0x11a,_0x291f01:0x29a,_0x500ba6:0x160,_0x2501a4:0x472,_0x1fc66d:0x615,_0x3110af:0x30d,_0x335a34:0x5c3,_0x4d7a55:0x10e,_0x653047:0x2fa,_0x2737ef:0x50d,_0x51e486:0x14f,_0x3ffd22:0x4a8,_0xeacab5:0x5a6,_0x57ae57:0x465,_0x379ec8:0x687,_0x446cdb:0x87c,_0x309a91:0x81f,_0xba9f56:0x2fd,_0x1c1cb8:0x4d4,_0x190200:0x1ec,_0x5764c4:0x3f,_0x757257:0x2aa,_0xa83bf2:0x4be,_0x4900c5:0x469,_0x750e4d:0x646,_0x2daf9c:0x5e1,_0x50eeb6:0x440,_0x57f3ff:0x152,_0x806693:0x4b,_0x6343d3:0xf6,_0x127d56:0x23e,_0x2ad3e6:0x26d,_0x7523b5:0x268,_0x4725b7:0x202,_0x22f5b7:0x1b9,_0x58a4da:0x247,_0xddc37d:0x2bd,_0x492d69:0x64c,_0x1b610c:0x3c9,_0x2b1143:0x546,_0x63ef3:0x285,_0x1b5331:0x41f,_0x4f84e1:0x107,_0x2667c1:0x74b,_0x58fdc4:0x89,_0x2bc41a:0x2a4,_0x3d1773:0xb9,_0x5222e1:0x250,_0xcadbad:0x2bc,_0xd375aa:0xcd,_0x46013d:0x394,_0x17bbb5:0x1f8,_0x14f643:0x486,_0x22043f:0x594,_0x1e0e53:0x652,_0x12435f:0x58c,_0x55be98:0x26f,_0xc81ce2:0x399,_0x474798:0xaf,_0xf30965:0x1e,_0x203f98:0x67a,_0x3cb745:0x2b4,_0x4bca01:0x18b,_0x1a8b0b:0x5dc,_0x1b12cf:0xaa,_0x13d190:0x3ae,_0x1399f9:0x4dc,_0x35285e:0x7f,_0x128548:0xe1,_0x43406a:0x350,_0x307b8f:0x42c,_0xa86de6:0x367,_0x405016:0x28c,_0x521847:0x283,_0x2256bf:0x458,_0x47f337:0x6a1,_0x5c4c43:0x4c0,_0x3660b3:0x5ac,_0x15bec2:0x519,_0x3238bd:0x44f,_0x501096:0x354,_0x4bb340:0x371,_0x2a9dfb:0x160,_0x3f5379:0xd4,_0x5c3d97:0x367,_0x4f892d:0x4c3,_0x201d58:0x56,_0x47439d:0x190,_0x10c2a9:0x279,_0x48dc33:0xa5,_0x4a4b6f:0x470,_0x342526:0x91,_0x4def23:0x30f,_0x308d43:0x2e9,_0x2b366d:0x7f1,_0x2adafb:0x5d8,_0x9e088e:0x497,_0xef1dee:0x5c5,_0x43a473:0x3d6,_0x5495f7:0x4f6,_0x421dc7:0x315,_0x239aa2:0x143,_0x39ffcb:0x3de,_0x48d182:0x566,_0x37d99c:0x24e,_0x37e13c:0x3ff,_0x16fbd1:0x42f,_0x43d7fd:0x2d8,_0xc0ab23:0x9c,_0x34d4da:0x36d,_0x166873:0x379,_0x3c72eb:0x86,_0x4be08c:0x1e9,_0x12f82d:0x3a4,_0x2119e8:0x52f,_0x2bc972:0x69e,_0x259dae:0x18b,_0xb24d4a:0x1ac,_0x20a011:0x58b,_0x3cfdb9:0x65d},_0x3f6af8={_0x45557f:0x147,_0x1f8aee:0x77,_0x16bbb5:0xf9,_0x8d2b40:0x1d8,_0x40860b:0x2d0,_0xe2bd79:0x34e,_0x51219b:0x13a,_0x4461ac:0x44d,_0x9e0a19:0x33},_0x11943f={_0x3eb44f:0x1a6},_0x1ed782={_0x364934:0x610,_0xe0c3b0:0x156,_0x99a619:0x4e9,_0x5cdf4a:0x4d7,_0x54d0c6:0x2ab,_0x1d738c:0x7c5,_0x32c73e:0x733,_0x12c466:0x2c6,_0x42ec93:0x25e},_0x5d823b={_0x581cf3:0x50d,_0x4d5656:0x7f0,_0x11a3ce:0x686,_0x57c939:0x948,_0x4b9e04:0x775,_0x4c4c66:0x52f,_0x41b434:0x459,_0x3c69a1:0x64c,_0x52eb4e:0x574,_0xbeec8b:0x6c8,_0x14547f:0x6c8,_0x253358:0x85f,_0x3c723a:0x4d8,_0x8e09e9:0x719,_0x4a9896:0x686,_0x4ddf57:0x728,_0x4af259:0x55d,_0x29e120:0x79c,_0x19eb97:0x5b2,_0x591311:0x5dc,_0x1a4f48:0x51c,_0x2e2b4c:0x5f8},_0x41a4f9={_0x9c23d5:0x5b9},_0x2f8962={_0x100dd0:0x145},_0x1c14ce={_0x59edcf:0x5eb},_0x3c9ed6={'ZQxWp':function(_0x39e13b,_0x56cb53){return _0x39e13b(_0x56cb53);},'JNfhe':'down','ddNBF':'<unknown'+'>','jxzfd':'--json','HhOgB':function(_0xba3f7e,_0x360279){return _0xba3f7e===_0x360279;},'tKuRJ':'local','vfaZd':function(_0x1bf5a6,_0x1ec888,_0x1687e7){return _0x1bf5a6(_0x1ec888,_0x1687e7);},'CZVYK':'--qr-fil'+'e','DNmqQ':'clawket-'+_0x5a3f13(_0x1e72fd._0x4ece2c,_0x1e72fd._0x18fe46)+'ir','uxkUO':function(_0xff4a80,_0x28d98a){return _0xff4a80 in _0x28d98a;},'ZhFBu':_0xa2fa3b(0x31c,0x2bf),'nIOAr':function(_0x45c992,_0x4b04f6,_0xc0d36b){return _0x45c992(_0x4b04f6,_0xc0d36b);},'yBvrA':_0xa2fa3b(_0x1e72fd._0x495024,_0x1e72fd._0x2db4b2)+'registry'+_0x5a3f13(-_0x1e72fd._0x2fcfe1,-0x164)+_0xa2fa3b(_0x1e72fd._0x27a9c7,0x608),'BhUOv':_0xa2fa3b(0x824,_0x1e72fd._0x3a0221),'iyqLv':function(_0x34631c,_0xa991b5){return _0x34631c(_0xa991b5);},'BOyaz':function(_0x27f2a6,_0x29d49f){return _0x27f2a6===_0x29d49f;},'vNAhV':_0xa2fa3b(_0x1e72fd._0x4c72be,_0x1e72fd._0x3ca92f),'aFUbP':_0xa2fa3b(_0x1e72fd._0xc956e8,_0x1e72fd._0x24850b)+_0x5a3f13(0x157,_0x1e72fd._0xd7ae2c)+_0xa2fa3b(_0x1e72fd._0x25a925,_0x1e72fd._0x270f04)+_0xa2fa3b(0x46f,0x3f0)+'e.','fzITe':_0x5a3f13(_0x1e72fd._0x1e9d35,_0x1e72fd._0x49620f)+_0xa2fa3b(0x5e0,0x5e5)+'ce\x20was\x20i'+_0xa2fa3b(0x53d,_0x1e72fd._0x3a160a)+_0xa2fa3b(_0x1e72fd._0x4e9e0b,0x320)+_0x5a3f13(0x27,0x15c)+_0x5a3f13(0x31d,0x3f9)+_0xa2fa3b(_0x1e72fd._0x13839a,_0x1e72fd._0x3d5521),'cyHsw':function(_0x2dec21,_0x43b621,_0x586471,_0x26f4ab,_0x401540){return _0x2dec21(_0x43b621,_0x586471,_0x26f4ab,_0x401540);},'zdsmM':function(_0x25bd37,_0x40fe32,_0x2ddbf6){return _0x25bd37(_0x40fe32,_0x2ddbf6);},'WkGcH':function(_0x20ba06,_0x156f84){return _0x20ba06 in _0x156f84;},'WcMUB':'Pairing\x20'+'code\x20ref'+'reshed.','GmuSx':function(_0x502b24){return _0x502b24();},'ajqiF':function(_0x1984eb,_0x3eee4d){return _0x1984eb===_0x3eee4d;},'TirlN':function(_0x1a3065){return _0x1a3065();},'JsbsX':function(_0x52ab95){return _0x52ab95();},'TukZj':_0x5a3f13(_0x1e72fd._0x2943d1,_0x1e72fd._0xf0774d),'ErJdx':function(_0x15c728,_0x32e7f8){return _0x15c728(_0x32e7f8);},'SkeCl':'200','VdBBD':function(_0x335fde,_0x5551b6,_0x4325f8){return _0x335fde(_0x5551b6,_0x4325f8);},'nJqVQ':_0x5a3f13(0x193,_0x1e72fd._0xd90953),'rTSOr':function(_0x311bbf){return _0x311bbf();},'YVclf':function(_0x289096,_0x29a1ab){return _0x289096(_0x29a1ab);},'QLDjL':function(_0x5c657a,_0x53d5f5){return _0x5c657a===_0x53d5f5;},'dmwmY':_0xa2fa3b(_0x1e72fd._0x337b92,0x249),'FYEtL':_0x5a3f13(_0x1e72fd._0x4aad84,_0x1e72fd._0x111a5d)+_0xa2fa3b(_0x1e72fd._0x6155d4,_0x1e72fd._0x59690c),'HmGzq':_0x5a3f13(-0x73,0xdc)},[,,_0x6bbf96=_0xa2fa3b(_0x1e72fd._0x1eaf74,_0x1e72fd._0x4da003),..._0x1b9c9a]=process[_0x5a3f13(_0x1e72fd._0x1b9468,0x25a)],_0x390cbd=hasFlag(_0x1b9c9a,_0x5a3f13(_0x1e72fd._0xb9d536,0x14c)+'e');function _0x5a3f13(_0x3f902b,_0x5ef5c6){return _0x4985a8(_0x3f902b- -0x5a5,_0x5ef5c6);}function _0xa2fa3b(_0x48214c,_0x5e9544){return _0x4985a8(_0x5e9544- -0x274,_0x48214c);}const _0x283052=hasFlag(_0x1b9c9a,_0x3c9ed6[_0xa2fa3b(0x495,_0x1e72fd._0x46d07c)]);if(_0x6bbf96===_0x5a3f13(-0x42,-_0x1e72fd._0x1df2e7)){const _0x23051d=readPairSubcommand(_0x1b9c9a),_0x38d170=_0x3c9ed6['HhOgB'](_0x23051d,_0x3c9ed6[_0xa2fa3b(0x4ba,0x66e)])||hasFlag(_0x1b9c9a,_0xa2fa3b(0x546,_0x1e72fd._0x158284));if(_0x38d170){const _0x463ae9=resolveGatewayAuth();if(_0x5a3f13(_0x1e72fd._0x3d5832,_0x1e72fd._0x1a1ed2)in _0x463ae9)throw new Error(_0x463ae9['error']);const _0x29443d=_0x3c9ed6[_0xa2fa3b(0x56f,0x371)](readFlag,_0x1b9c9a,_0x3c9ed6[_0xa2fa3b(0x6ed,_0x1e72fd._0x44797a)]),_0xfc20b5=buildLocalPairingInfo({'explicitUrl':readFlag(_0x1b9c9a,_0x5a3f13(0x6f,_0x1e72fd._0x1035dd)),'gatewayToken':_0x463ae9[_0x5a3f13(0x13d,_0x1e72fd._0x1647ba)],'gatewayPassword':_0x463ae9[_0x5a3f13(-0x38,-0x127)]}),_0x344d73=await writeRawQrPng(_0xfc20b5['qrPayloa'+'d'],_0x3c9ed6[_0x5a3f13(0x1b3,_0x1e72fd._0x3d8acd)],_0x29443d);if(_0x283052){const _0x2af093={};_0x2af093[_0xa2fa3b(_0x1e72fd._0x1a0ae1,_0x1e72fd._0x351017)+'rl']=_0xfc20b5['gatewayU'+'rl'],_0x2af093[_0x5a3f13(0x277,0x33b)]=_0xfc20b5[_0xa2fa3b(0x657,_0x1e72fd._0x50cd16)],_0x2af093[_0xa2fa3b(0x6c0,_0x1e72fd._0x28fcff)+'t']=_0xfc20b5[_0xa2fa3b(0x772,0x592)+'t'],_0x2af093[_0x5a3f13(_0x1e72fd._0x399f9f,0x2b)+_0xa2fa3b(_0x1e72fd._0x47249c,0x690)]=_0x344d73,_0x2af093['message']='Generate'+_0xa2fa3b(0x6ec,0x5de)+'l\x20gatewa'+_0xa2fa3b(_0x1e72fd._0x4efbb0,_0x1e72fd._0x5e01d3)+_0xa2fa3b(0x432,_0x1e72fd._0x2b3ad3),printJson(buildLocalPairingJson(_0x2af093));}else printLocalPairingInfo(_0xfc20b5[_0xa2fa3b(0x7ba,_0x1e72fd._0x351017)+'rl'],_0xfc20b5[_0xa2fa3b(0x56e,_0x1e72fd._0x50cd16)],_0xfc20b5[_0xa2fa3b(0x429,0x592)+'t'],_0xfc20b5[_0x5a3f13(0x242,0x146)+'d'],_0x344d73,readFlag(_0x1b9c9a,'--url'));return;}const _0x25fe77=hasFlag(_0x1b9c9a,_0x5a3f13(0x23a,_0x1e72fd._0x1ee6dc));!_0x25fe77&&await ensurePairPrerequisites();const _0xfdd96c=resolveGatewayAuth();if(_0x3c9ed6['uxkUO'](_0x5a3f13(_0x1e72fd._0x3d5832,0x124),_0xfdd96c))throw new Error(_0xfdd96c[_0x5a3f13(_0x1e72fd._0x3d5832,_0x1e72fd._0x4a3b04)]);const _0x260499=readFlag(_0x1b9c9a,_0x3c9ed6[_0x5a3f13(-_0x1e72fd._0x1f14fb,-0xf4)])??_0x3c9ed6['nIOAr'](readFlag,_0x1b9c9a,'-s')??_0x3c9ed6[_0xa2fa3b(_0x1e72fd._0xd4e5cb,_0x1e72fd._0x67ff91)],_0x28a3a7=readFlag(_0x1b9c9a,_0x5a3f13(0x227,0x224))??_0x3c9ed6[_0x5a3f13(-_0x1e72fd._0x2a34b0,-_0x1e72fd._0xe4c876)](readFlag,_0x1b9c9a,'-n')??getDefaultBridgeDisplayName(),_0x45ae74=readFlag(_0x1b9c9a,_0x3c9ed6[_0xa2fa3b(0x70a,0x5c4)]),_0x315ccb={};_0x315ccb[_0x5a3f13(_0x1e72fd._0xbe776e,0xa4)+'l']=_0x260499,_0x315ccb[_0x5a3f13(-_0x1e72fd._0x3fd133,0x128)+_0x5a3f13(0x29e,_0x1e72fd._0x37a16e)]=_0x28a3a7,_0x315ccb['gatewayT'+_0x5a3f13(0x2e5,_0x1e72fd._0x586e6d)]=_0xfdd96c[_0xa2fa3b(0x330,_0x1e72fd._0x1b36d9)],_0x315ccb['gatewayP'+'assword']=_0xfdd96c[_0xa2fa3b(0x2ba,0x2f9)];const _0x1d6e9e=await pairGateway(_0x315ccb),_0x657ac0=await writePairingQrPng(_0x1d6e9e,_0x45ae74),_0x5ef4ef=getServiceStatus(),_0x1625ad=decidePairServiceAction(_0x1d6e9e,_0x5ef4ef);if(_0x1625ad===_0x3c9ed6['BhUOv']){_0x283052?_0x3c9ed6[_0xa2fa3b(0x38d,0x4ee)](printJson,buildPairingJson(_0x1d6e9e,_0x657ac0,_0x5ef4ef,_0x5a3f13(0x353,_0x1e72fd._0x334558)+_0x5a3f13(0x2b4,_0x1e72fd._0x339986)+_0x5a3f13(_0x1e72fd._0x5b011e,_0x1e72fd._0x3d6c4d)+_0xa2fa3b(_0x1e72fd._0x5b2328,_0x1e72fd._0x3fe739)+_0xa2fa3b(0x668,_0x1e72fd._0x1ca8c0)+_0xa2fa3b(0x468,0x5c3)+'ed.')):(printPairingInfo(_0x1d6e9e,_0x657ac0),console[_0xa2fa3b(_0x1e72fd._0x2129ae,0x28c)](_0x5a3f13(_0x1e72fd._0x1e9d35,_0x1e72fd._0x291f01)+_0x5a3f13(0x2b4,_0x1e72fd._0x500ba6)+_0xa2fa3b(_0x1e72fd._0x2501a4,_0x1e72fd._0x1fc66d)+_0xa2fa3b(0x2e2,_0x1e72fd._0x3fe739)+_0xa2fa3b(_0x1e72fd._0x3110af,0x494)+_0xa2fa3b(0x51e,_0x1e72fd._0x335a34)+_0xa2fa3b(_0x1e72fd._0x4d7a55,_0x1e72fd._0x653047)),_0x3c9ed6['nIOAr'](printServiceResult,null,_0x5ef4ef));return;}try{const _0x4baf58=_0x1625ad===_0xa2fa3b(_0x1e72fd._0x2737ef,0x567)?installService():restartService(),_0x244687=_0x3c9ed6[_0x5a3f13(0x241,_0x1e72fd._0x51e486)](_0x1625ad,_0x3c9ed6['vNAhV'])?_0x3c9ed6['aFUbP']:_0x1d6e9e[_0xa2fa3b(_0x1e72fd._0x3ffd22,_0x1e72fd._0xeacab5)]===_0xa2fa3b(_0x1e72fd._0x57ae57,_0x1e72fd._0x379ec8)+'ed'?_0xa2fa3b(_0x1e72fd._0x446cdb,0x67f)+_0x5a3f13(0x264,0x1db)+'changed.'+_0xa2fa3b(_0x1e72fd._0x309a91,0x6a5)+_0xa2fa3b(_0x1e72fd._0xba9f56,_0x1e72fd._0x1c1cb8)+_0xa2fa3b(0x5d9,0x40f)+_0x5a3f13(_0x1e72fd._0x190200,_0x1e72fd._0x5764c4)+_0xa2fa3b(_0x1e72fd._0x757257,_0x1e72fd._0xa83bf2)+_0xa2fa3b(0x4ed,_0x1e72fd._0x4900c5)+_0xa2fa3b(0x667,_0x1e72fd._0x750e4d):_0x3c9ed6[_0xa2fa3b(_0x1e72fd._0x2daf9c,0x586)];_0x283052?printJson(_0x3c9ed6[_0xa2fa3b(_0x1e72fd._0x50eeb6,0x549)](buildPairingJson,_0x1d6e9e,_0x657ac0,_0x4baf58,_0x244687)):(_0x3c9ed6['nIOAr'](printPairingInfo,_0x1d6e9e,_0x657ac0),_0x3c9ed6[_0x5a3f13(_0x1e72fd._0x57f3ff,0x158)](printServiceResult,_0x244687,_0x4baf58));}catch(_0x5909fe){console[_0x5a3f13(_0x1e72fd._0x3d5832,0x19b)](_0x5a3f13(0x319,0x526)+_0x5a3f13(_0x1e72fd._0x806693,_0x1e72fd._0x6343d3)+_0x5a3f13(0x101,_0x1e72fd._0x127d56)+_0xa2fa3b(_0x1e72fd._0x2ad3e6,_0x1e72fd._0x7523b5)+_0x5a3f13(_0x1e72fd._0x4725b7,0x2b1)+_0x5a3f13(_0x1e72fd._0x22f5b7,_0x1e72fd._0x58a4da)+':\x20'+formatError(_0x5909fe)),console[_0x5a3f13(0x2c5,0x14e)](_0x5a3f13(-0xa8,-_0x1e72fd._0xddc37d)+_0xa2fa3b(0xad,0x2ad)+_0xa2fa3b(0x750,_0x1e72fd._0x492d69)+_0x5a3f13(0x2cc,0x2f6)+_0xa2fa3b(0x4a3,_0x1e72fd._0x1b610c)+_0x5a3f13(0xc0,0x190)+_0xa2fa3b(0x50f,_0x1e72fd._0x2b1143)+_0xa2fa3b(_0x1e72fd._0x67ff91,0x38b)),process[_0xa2fa3b(_0x1e72fd._0x63ef3,0x3d4)]=0x1;}return;}if(_0x6bbf96===_0xa2fa3b(0x367,_0x1e72fd._0x1b5331)+'code'){const _0x2476fd=readFlag(_0x1b9c9a,_0x5a3f13(0x1b5,0x1f1)+'e'),_0xc1a245=resolveGatewayAuth();if(_0x3c9ed6['WkGcH']('error',_0xc1a245))throw new Error(_0xc1a245['error']);const _0x4f5edb={};_0x4f5edb['gatewayT'+_0x5a3f13(0x2e5,_0x1e72fd._0x4f84e1)]=_0xc1a245[_0xa2fa3b(0x64b,_0x1e72fd._0x1b36d9)],_0x4f5edb['gatewayP'+_0xa2fa3b(_0x1e72fd._0x2667c1,0x679)]=_0xc1a245[_0x5a3f13(-0x38,-_0x1e72fd._0x58fdc4)];const _0xf6235c=await refreshAccessCode(_0x4f5edb),_0x26b672=await writePairingQrPng(_0xf6235c,_0x2476fd);_0x283052?printJson(buildPairingJson(_0xf6235c,_0x26b672,getServiceStatus(),_0x3c9ed6[_0x5a3f13(_0x1e72fd._0x2bc41a,_0x1e72fd._0x3d1773)])):printPairingInfo(_0xf6235c,_0x26b672);return;}if(_0x3c9ed6[_0x5a3f13(_0x1e72fd._0x5222e1,_0x1e72fd._0xcadbad)](_0x6bbf96,_0x3c9ed6['vNAhV'])){const _0x378f83=requirePairingConfig(),_0x24c7b2=_0x3c9ed6[_0x5a3f13(0x281,0x3ed)](installService);console[_0xa2fa3b(_0x1e72fd._0xd375aa,0x28c)](_0x5a3f13(0x36,0x252)+_0xa2fa3b(0x1ee,_0x1e72fd._0x46013d)+_0xa2fa3b(0x7ab,0x652)+'vice\x20for'+'\x20gateway'+'\x20'+_0x378f83[_0xa2fa3b(0x17e,0x26f)+'d']+'.'),printServiceResult(null,_0x24c7b2);return;}if(_0x6bbf96==='restart'){const _0x628267=_0x3c9ed6[_0x5a3f13(0x281,_0x1e72fd._0x17bbb5)](requirePairingConfig),_0x5e9480=_0x3c9ed6[_0xa2fa3b(0x682,0x5b2)](restartService);console['log'](_0xa2fa3b(0x558,_0x1e72fd._0x14f643)+_0xa2fa3b(0x17b,0x394)+_0xa2fa3b(_0x1e72fd._0x22043f,_0x1e72fd._0x1e0e53)+_0xa2fa3b(_0x1e72fd._0x12435f,0x5af)+'\x20gateway'+'\x20'+_0x628267[_0xa2fa3b(0x34f,_0x1e72fd._0x55be98)+'d']+'.'),printServiceResult(null,_0x5e9480);return;}if(_0x3c9ed6[_0xa2fa3b(0x501,_0x1e72fd._0xc81ce2)](_0x6bbf96,_0x5a3f13(_0x1e72fd._0x474798,_0x1e72fd._0xf30965))){const _0x264a18=_0x3c9ed6[_0xa2fa3b(0x4d3,0x2f2)](stopService);console['log'](_0xa2fa3b(0x57a,_0x1e72fd._0x203f98)+'backgrou'+_0x5a3f13(_0x1e72fd._0x3cb745,0x34f)+_0xa2fa3b(_0x1e72fd._0x4bca01,0x346)),printServiceResult(null,_0x264a18);return;}if(_0x6bbf96===_0xa2fa3b(0x3d5,_0x1e72fd._0x1a8b0b)+'l'){const _0x3de684=_0x3c9ed6[_0x5a3f13(-0x3f,-_0x1e72fd._0x1b12cf)](uninstallService);console[_0xa2fa3b(_0x1e72fd._0x13d190,0x28c)](_0xa2fa3b(0x84a,0x644)+'backgrou'+_0xa2fa3b(_0x1e72fd._0x1399f9,0x5e5)+_0x5a3f13(-0x3d,_0x1e72fd._0x35285e)+_0x5a3f13(-_0x1e72fd._0x128548,-0x12)),printServiceResult(null,_0x3de684);return;}if(_0x6bbf96===_0xa2fa3b(_0x1e72fd._0x43406a,_0x1e72fd._0x307b8f)){stopService(),deletePairingConfig(),console[_0xa2fa3b(_0x1e72fd._0xa86de6,_0x1e72fd._0x405016)](_0xa2fa3b(0x6d3,0x4a4)+_0xa2fa3b(_0x1e72fd._0x521847,_0x1e72fd._0x2256bf)+_0xa2fa3b(0x657,_0x1e72fd._0x47f337)+_0x3c9ed6[_0xa2fa3b(_0x1e72fd._0x5c4c43,_0x1e72fd._0x3660b3)](getPairingConfigPath));return;}if(_0x6bbf96===_0xa2fa3b(_0x1e72fd._0x15bec2,0x39a)){printStatus();return;}if(_0x6bbf96===_0x3c9ed6['TukZj']){const _0x988cf=_0x3c9ed6[_0xa2fa3b(_0x1e72fd._0x3238bd,0x4c3)](Number,_0x3c9ed6[_0xa2fa3b(_0x1e72fd._0x501096,_0x1e72fd._0x4bb340)](readFlag,_0x1b9c9a,_0x5a3f13(_0x1e72fd._0x2a9dfb,0x2e7))??_0x3c9ed6[_0x5a3f13(_0x1e72fd._0x3f5379,-0x49)]),_0x539bff=parseLookbackToMs(readFlag(_0x1b9c9a,_0xa2fa3b(0x331,0x247))??readFlag(_0x1b9c9a,'-l')),_0x4cda93=_0x3c9ed6[_0xa2fa3b(_0x1e72fd._0x5c3d97,_0x1e72fd._0x4f892d)](readRecentCliLogs,{'lines':_0x988cf,'lastMs':_0x539bff,'includeErrorLog':_0x3c9ed6['VdBBD'](hasFlag,_0x1b9c9a,_0x5a3f13(_0x1e72fd._0x201d58,0xb3))});if(_0x283052){const _0x221316={};_0x221316['ok']=!![],_0x221316[_0xa2fa3b(_0x1e72fd._0x47439d,_0x1e72fd._0x10c2a9)]=_0x4cda93,printJson(_0x221316);}else _0x3c9ed6[_0x5a3f13(0x250,0x8e)](_0x4cda93['length'],0x0)?console[_0x5a3f13(-_0x1e72fd._0x48dc33,-0x29e)](_0xa2fa3b(_0x1e72fd._0x4a4b6f,0x4d8)+_0xa2fa3b(_0x1e72fd._0x342526,0x27e)+_0xa2fa3b(_0x1e72fd._0x4def23,_0x1e72fd._0x308d43)+_0xa2fa3b(0x255,0x435)):console['log'](_0x4cda93[_0xa2fa3b(_0x1e72fd._0x2b366d,_0x1e72fd._0x2adafb)]('\x0a'));return;}if(_0x6bbf96===_0x3c9ed6[_0xa2fa3b(0x2af,_0x1e72fd._0x9e088e)]){const _0x542dca=await _0x3c9ed6[_0xa2fa3b(0x420,0x25d)](buildDoctorReport);_0x283052?printJson(_0x542dca):_0x3c9ed6[_0xa2fa3b(_0x1e72fd._0xef1dee,_0x1e72fd._0x43a473)](printDoctorReport,_0x542dca);return;}if(_0x3c9ed6['QLDjL'](_0x6bbf96,_0x3c9ed6[_0xa2fa3b(_0x1e72fd._0x5495f7,_0x1e72fd._0x421dc7)])){const _0x4852a8=requirePairingConfig(),_0x4517ad=resolveGatewayUrl(readFlag(_0x1b9c9a,_0x3c9ed6[_0x5a3f13(_0x1e72fd._0x239aa2,0x27c)])??readFlag(_0x1b9c9a,'-g')),_0x3b2069=_0x71d327=>{function _0x27eea3(_0x88fc3f,_0x5624b7){return _0x5a3f13(_0x5624b7-0x691,_0x88fc3f);}console['log']('['+Date[_0x27eea3(_0x1c14ce._0x59edcf,0x6af)]()+']\x20'+_0x71d327);};!_0x390cbd?(console['log'](_0xa2fa3b(0x27b,_0x1e72fd._0x39ffcb)+_0xa2fa3b(0x341,_0x1e72fd._0x48d182)+_0x4852a8[_0xa2fa3b(_0x1e72fd._0x37d99c,0x26f)+'d']),console[_0xa2fa3b(0x3b5,0x28c)](_0xa2fa3b(0x266,_0x1e72fd._0x37e13c)+_0xa2fa3b(0x80f,0x699)+_0x4852a8['instance'+'Id']),console[_0xa2fa3b(_0x1e72fd._0x16fbd1,0x28c)]('Gateway\x20'+_0x5a3f13(0x2e7,_0x1e72fd._0x43d7fd)+_0x4517ad),console[_0xa2fa3b(0x79,_0x1e72fd._0x405016)](''),console[_0x5a3f13(-_0x1e72fd._0x48dc33,-_0x1e72fd._0xc0ab23)](_0x5a3f13(_0x1e72fd._0x34d4da,_0x1e72fd._0x166873)+_0x5a3f13(_0x1e72fd._0x3c72eb,_0x1e72fd._0x4be08c)+'runtime.'+_0xa2fa3b(_0x1e72fd._0x12f82d,_0x1e72fd._0x2119e8)+'trl+C\x20to'+'\x20stop.'),console['log']('')):_0x3b2069(_0xa2fa3b(0x6c4,_0x1e72fd._0x2bc972)+_0x5a3f13(_0x1e72fd._0x259dae,-0x2)+_0x5a3f13(0x1d6,0x197)+'\x20runtime'+_0x5a3f13(-0x8b,-_0x1e72fd._0xb24d4a)+_0xa2fa3b(0x6d3,_0x1e72fd._0x20a011)+_0x4852a8[_0xa2fa3b(0x2ef,_0x1e72fd._0x55be98)+'d']);_0x390cbd&&writeServiceState();const _0x33292d=new BridgeRuntime({'config':_0x4852a8,'gatewayUrl':_0x4517ad,'onLog':_0x3b7463=>{const _0x4f6450={_0x24da71:0x90};function _0x21cab0(_0x375654,_0x43db47){return _0x5a3f13(_0x375654- -_0x4f6450._0x24da71,_0x43db47);}_0x3c9ed6[_0x21cab0(-_0x2f8962._0x100dd0,-0x272)](_0x3b2069,'[clawket'+']\x20'+_0x3b7463);},'onStatus':_0x9601d8=>{if(_0x9601d8[_0x35f9e3(0x5c4,_0x5d823b._0x581cf3)+'r']){_0x3b2069(_0x13eb80(_0x5d823b._0x4d5656,_0x5d823b._0x11a3ce)+'\x20relay='+(_0x9601d8[_0x13eb80(_0x5d823b._0x57c939,_0x5d823b._0x4b9e04)+'nected']?'up':_0x35f9e3(0x49c,_0x5d823b._0x4c4c66))+('\x20gateway'+'=')+(_0x9601d8[_0x13eb80(_0x5d823b._0x41b434,_0x5d823b._0x3c69a1)+_0x35f9e3(_0x5d823b._0x52eb4e,0x3dc)]?'up':_0x35f9e3(_0x5d823b._0xbeec8b,0x52f))+(_0x35f9e3(_0x5d823b._0x14547f,0x57b)+'=')+_0x9601d8[_0x35f9e3(0x261,0x307)+_0x13eb80(0x81c,0x5f8)]+_0x13eb80(0x986,_0x5d823b._0x253358)+_0x9601d8['lastErro'+'r']);return;}function _0x13eb80(_0x2fa179,_0x3b26bf){return _0x5a3f13(_0x3b26bf-_0x41a4f9._0x9c23d5,_0x2fa179);}function _0x35f9e3(_0x5f27e4,_0x355540){return _0x5a3f13(_0x355540-0x3e3,_0x5f27e4);}_0x3c9ed6[_0x13eb80(_0x5d823b._0x3c723a,0x504)](_0x3b2069,_0x13eb80(_0x5d823b._0x8e09e9,_0x5d823b._0x4a9896)+_0x13eb80(0x65f,0x4be)+(_0x9601d8[_0x13eb80(_0x5d823b._0x4ddf57,0x775)+_0x35f9e3(0x2c1,0x456)]?'up':_0x35f9e3(_0x5d823b._0x4af259,_0x5d823b._0x4c4c66))+('\x20gateway'+'=')+(_0x9601d8[_0x13eb80(0x467,0x64c)+_0x13eb80(_0x5d823b._0x29e120,_0x5d823b._0x19eb97)]?'up':_0x3c9ed6[_0x35f9e3(0x533,_0x5d823b._0x591311)])+(_0x13eb80(_0x5d823b._0x1a4f48,0x751)+'=')+_0x9601d8['clientCo'+_0x13eb80(0x507,_0x5d823b._0x2e2b4c)]);},'onPendingPairRequest':_0x3c08c4=>{function _0x5d3dbd(_0x5f0863,_0x33394a){return _0x5a3f13(_0x5f0863- -0x5a,_0x33394a);}function _0x507c53(_0x15c20c,_0x1522d4){return _0x5a3f13(_0x15c20c-0x58d,_0x1522d4);}_0x3b2069(_0x507c53(_0x1ed782._0x364934,0x790)+_0x5d3dbd(0x1f9,_0x1ed782._0xe0c3b0)+_0x507c53(_0x1ed782._0x99a619,0x3b2)+'='+_0x3c08c4['requestI'+'d']+(_0x507c53(_0x1ed782._0x5cdf4a,_0x1ed782._0x54d0c6)+'d=')+(_0x3c08c4[_0x507c53(_0x1ed782._0x1d738c,0x811)]||_0x507c53(0x902,_0x1ed782._0x32c73e)+'>')+_0x5d3dbd(0x1df,0x196)+(_0x3c08c4[_0x507c53(0x4eb,0x34c)+'ame']??_0x3c9ed6[_0x5d3dbd(_0x1ed782._0x12c466,_0x1ed782._0x42ec93)]));}});_0x33292d['start']();const _0x1ae9cc=async()=>{const _0x2f741f={_0x5a6864:0x1c5};process[_0x2db589(_0x3f6af8._0x45557f,0x2d0)](_0x2db589(-_0x3f6af8._0x1f8aee,_0x3f6af8._0x16bbb5),_0x1ae9cc);function _0x525abe(_0x20b60a,_0x19da4d){return _0xa2fa3b(_0x19da4d,_0x20b60a- -_0x11943f._0x3eb44f);}process[_0x2db589(_0x3f6af8._0x8d2b40,_0x3f6af8._0x40860b)](_0x2db589(_0x3f6af8._0xe2bd79,0x26e),_0x1ae9cc);function _0x2db589(_0x1acb86,_0x33dc6d){return _0xa2fa3b(_0x1acb86,_0x33dc6d- -_0x2f741f._0x5a6864);}await _0x33292d[_0x525abe(0x23a,_0x3f6af8._0x51219b)](),_0x390cbd&&_0x3c9ed6['ZQxWp'](clearServiceState,process[_0x525abe(_0x3f6af8._0x4461ac,0x244)]),process[_0x2db589(-_0x3f6af8._0x9e0a19,0x1a6)](0x0);};process['on'](_0x3c9ed6[_0xa2fa3b(_0x1e72fd._0x3cfdb9,0x5a3)],_0x1ae9cc),process['on']('SIGTERM',_0x1ae9cc),await new Promise(()=>{});}printHelp();}function printPairingInfo(_0x34dba4,_0x534b13){const _0x3fdf18={_0xcbe1fe:0x75e,_0x4582a9:0x844,_0x4bf81a:0x58c,_0x264e22:0x6b8,_0x3eed16:0x485,_0x16afb5:0x443,_0x456262:0x498,_0x5b6e98:0x65d,_0x2efae8:0x982,_0x81bb66:0xb80,_0x1262f2:0x417,_0x3b480b:0x591,_0x2587aa:0x5c1,_0x5af406:0x604,_0x350815:0x75a,_0x54f634:0x8ff,_0x4666ac:0x748,_0x4183a5:0x81c,_0x120b6c:0x71b,_0x182d86:0x590,_0x1d5948:0x668,_0x3b6676:0x76a},_0x5881ea={_0x56239a:0x3f},_0x37e500={_0x1fcdfd:0x11e};function _0xbdd460(_0x1d013e,_0x13547d){return _0x285196(_0x1d013e-_0x37e500._0x1fcdfd,_0x13547d);}const _0x34807e={};_0x34807e[_0x236936(_0x3fdf18._0xcbe1fe,_0x3fdf18._0x4582a9)]=_0x236936(0x43f,_0x3fdf18._0x4bf81a)+'d';const _0x1cda80=_0x34807e;function _0x236936(_0x145f8a,_0x1e76b4){return _0x285196(_0x1e76b4- -_0x5881ea._0x56239a,_0x145f8a);}_0x34dba4['action']===_0x1cda80['gQYHZ']&&console[_0x236936(0x4bd,0x434)](_0xbdd460(_0x3fdf18._0x264e22,_0x3fdf18._0x3eed16)+'lready\x20p'+_0x236936(0x20c,_0x3fdf18._0x16afb5)+_0x236936(_0x3fdf18._0x456262,0x4bf)+_0xbdd460(0x763,0x934)+_0x236936(0x452,_0x3fdf18._0x5b6e98)+'e.');console['log'](_0x236936(0x547,0x586)+'ID:\x20'+_0x34dba4[_0xbdd460(_0x3fdf18._0x2efae8,_0x3fdf18._0x81bb66)][_0x236936(0x4cf,_0x3fdf18._0x1262f2)+'d']),console[_0xbdd460(_0x3fdf18._0x3b480b,0x759)](_0xbdd460(0x679,_0x3fdf18._0x2587aa)+'is\x20QR\x20co'+_0xbdd460(0x5c0,0x762)+_0xbdd460(_0x3fdf18._0x5af406,_0x3fdf18._0x350815)+_0xbdd460(0x8a6,_0x3fdf18._0x54f634));const _0x4e0347={};_0x4e0347['small']=!![],_0x236742[_0x236936(0x967,_0x3fdf18._0x4666ac)](_0x34dba4[_0x236936(_0x3fdf18._0x4183a5,_0x3fdf18._0x120b6c)+'d'],_0x4e0347),console[_0xbdd460(_0x3fdf18._0x3b480b,_0x3fdf18._0x182d86)](_0xbdd460(_0x3fdf18._0x1d5948,_0x3fdf18._0x3b6676)+'\x20'+formatLocalTime(_0x34dba4['accessCo'+'deExpire'+_0x236936(0x9e7,0x7b6)])),console['log']('QR\x20image'+':\x20'+_0x534b13);}function printLocalPairingInfo(_0x34e2ce,_0x302537,_0x3ea2f2,_0x3e12dd,_0x115d49,_0x4ae1dd){const _0x1a8a9d={_0xdae57c:0x4,_0x5bb6c6:0xa8,_0x5f0a5c:0x26d,_0x5b1fb5:0x3f7,_0x4ca38f:0xdb,_0x130249:0xc0,_0x481783:0xbc,_0x4cb238:0x20e,_0x1c3c6f:0x341,_0x232d0c:0x2a0,_0x395e7d:0x4cd,_0x44068c:0x2d2,_0x291e6f:0xc3,_0x4521f9:0xec,_0x327e25:0x1c7,_0x2999b5:0x205,_0x5e378d:0x30,_0x2c7823:0x105,_0x23fec7:0x4c4,_0x27e116:0x432,_0x15ca2e:0x34f,_0x1f8f2b:0xe2,_0x3dd5c0:0xf3,_0x1a985d:0x135},_0x1d801a={_0x163b16:0x3b7},_0x31dc87={_0x2951f3:0x55f};function _0x1792a1(_0x2e1cb1,_0x5c34a1){return _0x285196(_0x2e1cb1- -_0x31dc87._0x2951f3,_0x5c34a1);}const _0x2d228e={};_0x2d228e['vQIBZ']=_0x1792a1(-_0x1a8a9d._0xdae57c,_0x1a8a9d._0x5bb6c6)+'is\x20local'+_0x1792a1(0xc8,_0x1a8a9d._0x5f0a5c)+_0x52c109(0x1b0,0x2d8)+_0x52c109(_0x1a8a9d._0x5b1fb5,0x52c)+_0x1792a1(_0x1a8a9d._0x4ca38f,_0x1a8a9d._0x130249);const _0x3f0efc=_0x2d228e;console[_0x52c109(_0x1a8a9d._0x481783,0x44)](_0x52c109(_0x1a8a9d._0x4cb238,_0x1a8a9d._0x1c3c6f)+_0x1792a1(_0x1a8a9d._0x232d0c,_0x1a8a9d._0x395e7d)+_0x34e2ce),console[_0x52c109(0xbc,_0x1a8a9d._0x44068c)](_0x1792a1(_0x1a8a9d._0x291e6f,0xab)+_0x1792a1(-0x48,-0xf0)+_0x302537),console[_0x1792a1(-_0x1a8a9d._0x4521f9,-_0x1a8a9d._0x327e25)](_0x4ae1dd?_0x52c109(0x1a4,0x211)+_0x1792a1(-0xf9,-_0x1a8a9d._0x2999b5)+_0x52c109(0x19a,-_0x1a8a9d._0x5e378d)+_0x52c109(0x417,0x50d)+_0x1792a1(-_0x1a8a9d._0x2c7823,0x77)+_0x52c109(_0x1a8a9d._0x23fec7,_0x1a8a9d._0x27e116)+'\x0a':_0x3f0efc[_0x52c109(0x367,_0x1a8a9d._0x15ca2e)]);const _0x49c652={};_0x49c652['small']=!![];function _0x52c109(_0x3d5398,_0x3b47e5){return _0x285196(_0x3d5398- -_0x1d801a._0x163b16,_0x3b47e5);}_0x236742[_0x1792a1(0x228,_0x1a8a9d._0x1f8f2b)](_0x3e12dd,_0x49c652),console['log']('Expires:'+'\x20'+new Date(_0x3ea2f2)[_0x52c109(0x2d9,0x3ff)+_0x1792a1(0x1b8,_0x1a8a9d._0x3dd5c0)]()),console[_0x1792a1(-_0x1a8a9d._0x4521f9,-_0x1a8a9d._0x1a985d)](_0x1792a1(0x14d,-0xce)+':\x20'+_0x115d49);}function printStatus(){const _0xdc307e={_0x333fe8:0x395,_0xefaaf2:0x705,_0x1f9e51:0x7a4,_0x4902ec:0x2b,_0x1a8911:0x84,_0x5b15ec:0x7d,_0x2720a4:0x314,_0x4e4add:0x6fe,_0x5a2970:0x5e4,_0x5388cf:0x54f,_0x31b397:0x653,_0x97f799:0x814,_0x40f67d:0x7db,_0x90ca36:0x4e4,_0xec0cb0:0x4fe,_0xb1a9ce:0x501,_0x1a4c76:0x80,_0x348605:0x8d,_0x28cc9e:0x7d,_0x5ea18c:0x876,_0xd1abde:0x7f7,_0x210a90:0x644,_0x179271:0x49a,_0x28edc6:0x1ab,_0x348c28:0x501,_0xb5ff9b:0x33,_0xed1d4b:0x32e,_0x1edb57:0x7d3,_0x29cba3:0x991},_0x5d7936={_0x1aea93:0x483},_0x333a6f={_0x437046:0x1},_0x3548f2={};function _0x383e2a(_0xccbd6f,_0x1914d7){return _0x4985a8(_0xccbd6f-_0x333a6f._0x437046,_0x1914d7);}_0x3548f2[_0x34a10e(_0xdc307e._0x333fe8,0x3af)]=_0x383e2a(0x4b6,0x4e1)+'1',_0x3548f2['URvgl']=_0x383e2a(_0xdc307e._0xefaaf2,_0xdc307e._0x1f9e51)+'d';const _0x29fe80=_0x3548f2,_0x5ec3b2=readPairingConfig(),_0x394036=getServiceStatus(),{logPath:_0x551724,errorLogPath:_0x1f7c4}=getServicePaths();function _0x34a10e(_0x534f0d,_0x2c83ec){return _0x4985a8(_0x534f0d- -_0x5d7936._0x1aea93,_0x2c83ec);}const _0x5e7619=readCliVersion();console['log'](_0x34a10e(_0xdc307e._0x4902ec,_0xdc307e._0x1a8911)+'\x20'+_0x5e7619);if(!_0x5ec3b2)console[_0x34a10e(_0xdc307e._0x5b15ec,0xba)]('Config:\x20'+_0x34a10e(_0xdc307e._0x2720a4,0x4c3)+_0x383e2a(_0xdc307e._0x4e4add,0x61c)+getPairingConfigPath()+')');else{const _0x1023f8=_0x29fe80['FRPPf'][_0x383e2a(_0xdc307e._0x5a2970,_0xdc307e._0x5388cf)]('|');let _0x51e724=0x0;while(!![]){switch(_0x1023f8[_0x51e724++]){case'0':console['log'](_0x383e2a(_0xdc307e._0x31b397,_0xdc307e._0x97f799)+_0x383e2a(_0xdc307e._0x40f67d,0x86a)+_0x5ec3b2[_0x383e2a(_0xdc307e._0x90ca36,_0xdc307e._0xec0cb0)+'d']);continue;case'1':console[_0x383e2a(_0xdc307e._0xb1a9ce,0x54c)](_0x34a10e(0x34c,0x57f)+(_0x5ec3b2[_0x34a10e(_0xdc307e._0x1a4c76,_0xdc307e._0x348605)+'ame']??'-'));continue;case'2':console[_0x34a10e(_0xdc307e._0x28cc9e,0x82)](_0x34a10e(0x1f0,0x1e5)+':\x20'+_0x5ec3b2[_0x34a10e(0x257,0x87)+'Id']);continue;case'3':console[_0x34a10e(0x7d,0x1dd)]('Config:\x20'+_0x34a10e(0x3ef,0x3af));continue;case'4':console[_0x383e2a(_0xdc307e._0xb1a9ce,0x4d9)]('Server\x20U'+_0x383e2a(_0xdc307e._0x5ea18c,0x76c)+_0x5ec3b2['serverUr'+'l']);continue;}break;}}console['log'](_0x383e2a(0x8a8,0x875)+'\x20'+resolveGatewayUrl()),console['log'](_0x383e2a(0x835,_0xdc307e._0xd1abde)+'\x20'+(_0x394036[_0x34a10e(0x281,0x3aa)+'d']?_0x29fe80[_0x383e2a(0x526,0x524)]:_0x383e2a(_0xdc307e._0x210a90,0x720)+'alled')+'\x20('+_0x394036[_0x383e2a(0x66c,0x4bf)]+')'),console['log'](_0x383e2a(0x690,_0xdc307e._0x179271)+'\x20'+(_0x394036[_0x34a10e(_0xdc307e._0x28edc6,0x31f)]?'yes':'no')),console[_0x383e2a(_0xdc307e._0x348c28,0x4ef)](_0x383e2a(0x794,0x758)+(_0x394036[_0x383e2a(0x4e7,0x457)+_0x34a10e(0x481,0x555)]||'-')),console[_0x34a10e(0x7d,_0xdc307e._0xb5ff9b)](_0x34a10e(0x34d,0x2d9)+_0x551724),console[_0x383e2a(_0xdc307e._0xb1a9ce,_0xdc307e._0xed1d4b)](_0x383e2a(_0xdc307e._0x1edb57,_0xdc307e._0x29cba3)+_0x383e2a(0x542,0x589)+_0x1f7c4),!_0x5ec3b2&&(process[_0x383e2a(0x649,0x641)]=0x1);}function printServiceResult(_0x3539c3,_0x9f794d){const _0x1eaa32={_0x1226a8:0x8e,_0x21d3de:0x2a4,_0x115514:0x334,_0x4a8428:0x1ec,_0xec058a:0xc2,_0x424a26:0x88,_0x1cc683:0x129,_0x555fe7:0x204,_0x1a1f2b:0x4e,_0x42358b:0x1a,_0x44820d:0x40,_0x277c01:0x181,_0x3b8a2b:0x72,_0x3d91c9:0x1d0,_0x32a7c1:0x24e},_0x5ea9a6={_0x42ad88:0x473};_0x3539c3&&console['log'](_0x3539c3);function _0x2ca876(_0x2beef2,_0x270ffc){return _0x285196(_0x270ffc- -_0x5ea9a6._0x42ad88,_0x2beef2);}function _0xcb3d4b(_0x43eacb,_0x2e8bf6){return _0x285196(_0x2e8bf6- -0x629,_0x43eacb);}console[_0x2ca876(-_0x1eaa32._0x1226a8,0x0)](_0x2ca876(_0x1eaa32._0x21d3de,_0x1eaa32._0x115514)+'\x20'+(_0x9f794d[_0xcb3d4b(-_0x1eaa32._0x4a8428,0x4e)+'d']?_0x9f794d[_0xcb3d4b(-_0x1eaa32._0xec058a,-_0x1eaa32._0x424a26)]?_0x2ca876(_0x1eaa32._0x1cc683,_0x1eaa32._0x555fe7)+'d,\x20runni'+'ng':_0xcb3d4b(0x8b,_0x1eaa32._0x1a1f2b)+_0xcb3d4b(-_0x1eaa32._0x42358b,_0x1eaa32._0x44820d)+'ed':'not\x20inst'+_0x2ca876(0x1f0,0x280))),console[_0xcb3d4b(-0x226,-0x1b6)](_0x2ca876(-_0x1eaa32._0x277c01,_0x1eaa32._0x3b8a2b)+'path:\x20'+(_0x9f794d[_0xcb3d4b(-0x300,-_0x1eaa32._0x3d91c9)+_0xcb3d4b(0x391,_0x1eaa32._0x32a7c1)]||'-'));}function printDoctorReport(_0x2b2d78){const _0x3b6246={_0x388113:0x5ef,_0x24ab1f:0x3e7,_0x5347b0:0x27c,_0x2feb7c:0x4e4,_0x1e4e1e:0x5b4,_0x2d8797:0x35a,_0x395279:0x592,_0x175579:0x4f4,_0x27e2ed:0x2df,_0x54df93:0x4fb,_0x5e354d:0x2f5,_0x3d54e:0x263,_0x5006f3:0x3b5,_0x26925f:0x412,_0x5496c1:0x3f4,_0x45c533:0x54e,_0x22cd0e:0x419,_0x419811:0x648,_0x1ae714:0x385,_0x3efbdc:0x200,_0x44ae34:0x21a,_0x30c5ee:0x2d3,_0x348f43:0x4b2,_0x13d00f:0x2f4,_0x4463e7:0x228,_0x53ff3b:0x646,_0x3784d6:0x366,_0x3da70d:0x242,_0x4fd16a:0x2db,_0x12043c:0x566,_0x2abd6f:0x590,_0x5f1764:0x624,_0x35ad1a:0x372,_0x1e6c19:0x4ff,_0x1b6b1e:0x2cf,_0xbb6ec2:0x253,_0x3bb8dd:0x37d,_0x23268a:0x32e,_0x5cd00c:0x609,_0x3100a9:0x37d,_0x12fd24:0x51d,_0x5817b8:0x44d,_0x192552:0x43b,_0xc44f19:0x1db,_0x5c9490:0x451,_0x358521:0x3aa,_0x496aab:0x620,_0x175ad8:0x5a2,_0x19c4a6:0x2b2,_0x172403:0x36c,_0x55d9cb:0x5a6,_0x59f74a:0x4c6,_0x521193:0x1f8,_0x3a244e:0x269,_0x4be4ec:0x2cc},_0x56d0fa={_0x3fc21e:0x231};function _0x3585e1(_0x439bd2,_0x3fbad3){return _0x285196(_0x3fbad3- -0x259,_0x439bd2);}const _0x27a75f={};_0x27a75f[_0xd8d4d0(0x4cd,_0x3b6246._0x388113)]=_0x3585e1(_0x3b6246._0x24ab1f,0x353);const _0x56a5dc=_0x27a75f;console[_0x3585e1(_0x3b6246._0x5347b0,0x21a)]('Paired:\x20'+(_0x2b2d78[_0xd8d4d0(_0x3b6246._0x2feb7c,_0x3b6246._0x1e4e1e)]?_0xd8d4d0(_0x3b6246._0x2d8797,0x2f4):'no')),console['log']('Gateway\x20'+_0x3585e1(_0x3b6246._0x395279,_0x3b6246._0x175579)+(_0x2b2d78[_0x3585e1(0x39b,0x1fd)+'d']??'-')),console['log']('Server\x20U'+_0xd8d4d0(0x5bb,0x5b7)+(_0x2b2d78[_0xd8d4d0(_0x3b6246._0x27e2ed,_0x3b6246._0x54df93)+'l']??'-')),console[_0x3585e1(_0x3b6246._0x5e354d,0x21a)](_0x3585e1(0x291,0x324)+_0x3585e1(0x35,_0x3b6246._0x3d54e)+(_0x2b2d78[_0xd8d4d0(0x329,0x1f1)]??'-')),console[_0x3585e1(-0x9,0x21a)](_0xd8d4d0(0x29f,_0x3b6246._0x5006f3)+_0x3585e1(_0x3b6246._0x26925f,0x627)+(_0x2b2d78[_0x3585e1(0x45b,_0x3b6246._0x5496c1)+'Id']??'-')),console[_0x3585e1(0x406,0x21a)](_0x3585e1(0x3b3,_0x3b6246._0x45c533)+'\x20'+(_0x2b2d78[_0xd8d4d0(0x7e3,0x5f5)+_0xd8d4d0(_0x3b6246._0x22cd0e,0x5d4)]?_0xd8d4d0(_0x3b6246._0x419811,0x446)+'d':_0xd8d4d0(0x512,_0x3b6246._0x1ae714)+_0xd8d4d0(0x33a,0x4c2))+'\x20('+_0x2b2d78[_0xd8d4d0(0x58c,0x55f)+_0xd8d4d0(0x18e,_0x3b6246._0x3efbdc)]+')'),console[_0x3585e1(0x2c7,_0x3b6246._0x44ae34)]('Service\x20'+_0xd8d4d0(0x497,0x3c7)+'\x20'+(_0x2b2d78[_0x3585e1(_0x3b6246._0x30c5ee,_0x3b6246._0x348f43)+'unning']?_0xd8d4d0(0x507,_0x3b6246._0x13d00f):'no')),console['log']('Service\x20'+'path:\x20'+(_0x2b2d78[_0xd8d4d0(0x3be,_0x3b6246._0x4463e7)+_0xd8d4d0(0x6da,_0x3b6246._0x53ff3b)]||'-'));function _0xd8d4d0(_0x30b2d7,_0x3001e2){return _0x285196(_0x3001e2- -_0x56d0fa._0x3fc21e,_0x30b2d7);}console['log']('Log\x20path'+':\x20'+_0x2b2d78[_0x3585e1(0x1bb,0x2b3)]),console[_0xd8d4d0(_0x3b6246._0x3784d6,_0x3b6246._0x3da70d)](_0x3585e1(0x48e,_0x3b6246._0x4fd16a)+_0xd8d4d0(0x759,_0x3b6246._0x12043c)+_0x2b2d78[_0x3585e1(_0x3b6246._0x2abd6f,_0x3b6246._0x5f1764)+_0x3585e1(_0x3b6246._0x35ad1a,_0x3b6246._0x1e6c19)]),console[_0x3585e1(_0x3b6246._0x1b6b1e,_0x3b6246._0x44ae34)](_0xd8d4d0(_0x3b6246._0xbb6ec2,_0x3b6246._0x3bb8dd)+'\x20dir:\x20'+_0x2b2d78[_0xd8d4d0(_0x3b6246._0x23268a,0x545)+_0xd8d4d0(0x449,_0x3b6246._0x5cd00c)+'r']),console['log'](_0xd8d4d0(0x1b9,_0x3b6246._0x3100a9)+'\x20media:\x20'+_0x2b2d78[_0x3585e1(0x732,_0x3b6246._0x12fd24)+'MediaDir']),console[_0x3585e1(_0x3b6246._0x5817b8,0x21a)]('OpenClaw'+_0xd8d4d0(_0x3b6246._0x192552,0x558)+'\x20'+(_0x2b2d78['openclaw'+'ConfigFo'+_0x3585e1(0x34e,_0x3b6246._0xc44f19)]?_0x56a5dc['TjChO']:_0xd8d4d0(_0x3b6246._0x5c9490,0x47e))),console['log'](_0xd8d4d0(_0x3b6246._0x358521,0x37d)+_0xd8d4d0(0x671,_0x3b6246._0x496aab)+(_0x2b2d78['openclaw'+_0x3585e1(0x736,_0x3b6246._0x175ad8)+'nd']?'found':_0xd8d4d0(_0x3b6246._0x19c4a6,0x47e))),console['log'](_0x3585e1(0x53a,_0x3b6246._0x172403)+_0x3585e1(0x5ed,_0x3b6246._0x55d9cb)+_0x2b2d78[_0x3585e1(0x465,_0x3b6246._0x59f74a)+_0x3585e1(0x40f,0x20b)]),console['log'](_0x3585e1(0x2eb,_0x3b6246._0x172403)+_0xd8d4d0(0x6e1,0x59a)+_0xd8d4d0(0x47d,0x2e6)+(_0x2b2d78[_0x3585e1(0x312,0x4c6)+_0xd8d4d0(0x325,_0x3b6246._0x521193)+_0x3585e1(0x295,_0x3b6246._0x3a244e)]?_0x3585e1(_0x3b6246._0x521193,_0x3b6246._0x4be4ec):'no'));}function requirePairingConfig(){const _0xe32978={_0x12de2d:0x149,_0x15945b:0x128,_0x28f47c:0x604,_0x29be53:0x5d2,_0x1abbcd:0x2e4,_0x46f630:0x2cb,_0x1f9a2c:0x3d5,_0x26f90f:0x51b},_0x31e120={'Ebxev':function(_0x1ac8dd){return _0x1ac8dd();},'rXTYG':function(_0x51da44){return _0x51da44();}};function _0xceb3c3(_0xeafa12,_0x1b9936){return _0x285196(_0xeafa12- -0x590,_0x1b9936);}function _0x42cdd4(_0x460395,_0x2d1d86){return _0x285196(_0x460395- -0x21d,_0x2d1d86);}const _0x236e41=_0x31e120[_0xceb3c3(-_0xe32978._0x12de2d,0xcb)](readPairingConfig);return!_0x236e41&&(console[_0xceb3c3(0x24d,0x8c)]('Not\x20pair'+_0xceb3c3(-_0xe32978._0x15945b,-0x22a)+_0x42cdd4(_0xe32978._0x28f47c,0x639)+_0x42cdd4(0x62b,_0xe32978._0x29be53)+_0xceb3c3(_0xe32978._0x1abbcd,_0xe32978._0x46f630)+_0x42cdd4(_0xe32978._0x1f9a2c,_0xe32978._0x26f90f)+'h:\x20'+_0x31e120[_0xceb3c3(0x122,0x147)](getPairingConfigPath)),process[_0x42cdd4(0x335,0x48c)](0x1)),_0x236e41;}function readFlag(_0x4a2c73,_0x19b89d){const _0x58f85c={_0x215e7d:0x6b3,_0x11395f:0x5fb,_0x1eb623:0x3fe},_0x239d0b={_0x222531:0x9f},_0x1da3ab={};_0x1da3ab[_0x4c9124(0x3e0,0x583)]=function(_0x94ca6c,_0x2f7c54){return _0x94ca6c<_0x2f7c54;};function _0x476088(_0x2b9a50,_0x5a2f63){return _0x285196(_0x5a2f63-_0x239d0b._0x222531,_0x2b9a50);}const _0x4c9084=_0x1da3ab,_0x45a2a1=_0x4a2c73[_0x4c9124(_0x58f85c._0x215e7d,0x829)](_0x19b89d);if(_0x4c9084[_0x4c9124(0x579,0x583)](_0x45a2a1,0x0))return null;const _0x27b474=_0x4a2c73[_0x45a2a1+0x1];function _0x4c9124(_0x18f848,_0x2e1777){return _0x285196(_0x2e1777-0x33,_0x18f848);}return _0x27b474?.[_0x4c9124(0x721,_0x58f85c._0x11395f)]()?_0x27b474[_0x4c9124(_0x58f85c._0x1eb623,0x5fb)]():null;}function hasFlag(_0x2ee072,_0x3d27e1){const _0x124c3e={_0x5646e0:0x463};function _0x3b45ac(_0x1be49c,_0x1b9930){return _0x4985a8(_0x1b9930- -_0x124c3e._0x5646e0,_0x1be49c);}return _0x2ee072[_0x3b45ac(0x3e3,0x3ce)](_0x3d27e1);}function readPairSubcommand(_0x43948c){const _0x1998e2={_0x11e00b:0x7dc,_0x17fe1e:0x9e8,_0x30d42f:0x757};for(const _0x2c961d of _0x43948c){if(!_0x2c961d[_0x56e373(_0x1998e2._0x11e00b,_0x1998e2._0x17fe1e)+'th']('-'))return _0x2c961d[_0x56e373(0x867,_0x1998e2._0x30d42f)]()||null;}function _0xe4a27f(_0x146975,_0x484795){return _0x4985a8(_0x146975- -0x46a,_0x484795);}function _0x56e373(_0x64f63b,_0x165a50){return _0x4985a8(_0x165a50-0x102,_0x64f63b);}return null;}function printHelp(){const _0x1ad452={_0x15cd90:0xcc,_0x42e899:0x386,_0x56583a:0x7a,_0x242af4:0xe7,_0x3e71fa:0x1a,_0xc6e4e:0x129,_0x72fa6d:0x1af,_0x424cd8:0x1cc,_0xb37969:0x2c4,_0x1490ea:0x21d,_0x745e2e:0x1e0,_0x479476:0x2cf,_0xe89d11:0x223,_0x44c107:0x366,_0x84d0ee:0x2ab,_0x51399a:0x279,_0x52d444:0x7,_0x584178:0x1af,_0x1b700d:0x12a,_0x2a795e:0xba,_0x43e549:0xd6,_0x22cf2f:0xb,_0x5481f3:0x39c,_0xb3ebf4:0x1b3,_0x14eb3f:0x2e1,_0x138f56:0x365,_0xe2e45a:0x1e,_0x1cd87b:0x95,_0x3670e1:0x250,_0x4a1381:0x190,_0x2cb53c:0x145,_0x22b4c7:0x98,_0x5b2a37:0xd4,_0x53c13a:0xce,_0xfd581c:0x1af,_0x22dd91:0x26a,_0x3b624f:0x325,_0x2a7944:0x184,_0x279a79:0x1d5,_0x2c0aa3:0x15f,_0x1cdaab:0x22d,_0x219739:0x252,_0x312e32:0x35b,_0x15191c:0x1af,_0x129e6b:0x3f6,_0x4168db:0x91,_0x38fada:0x2f,_0x28c79d:0x113,_0x2c3712:0x334,_0x36a6dc:0x52b,_0x287172:0x378,_0x263233:0x2cd,_0x10763b:0x3c,_0x223d2b:0x139,_0x21fd0e:0x3ab},_0x131725={_0x1129b2:0x468};function _0x2104be(_0x3560b4,_0x11cbe4){return _0x285196(_0x3560b4- -_0x131725._0x1129b2,_0x11cbe4);}const _0x3254b8={};_0x3254b8[_0x2104be(0x18d,0x1df)]='clawket\x20'+_0x2a647e(-0x2a,_0x1ad452._0x15cd90)+'al\x20[--ur'+'l\x20<ws://'+'host:por'+_0x2104be(_0x1ad452._0x42e899,0x356)+_0x2104be(_0x1ad452._0x56583a,_0x1ad452._0x242af4)+_0x2a647e(-_0x1ad452._0x3e71fa,0x1c1)+_0x2a647e(_0x1ad452._0xc6e4e,0xa6);function _0x2a647e(_0x57df43,_0x11de43){return _0x285196(_0x11de43- -0x429,_0x57df43);}_0x3254b8['DQXDm']=_0x2a647e(-0x22,_0x1ad452._0x72fa6d)+'pair\x20--l'+'ocal\x20[--'+_0x2104be(_0x1ad452._0x424cd8,_0x1ad452._0xb37969)+_0x2104be(_0x1ad452._0x1490ea,0x44a)+_0x2104be(_0x1ad452._0x745e2e,_0x1ad452._0x479476)+_0x2a647e(_0x1ad452._0xe89d11,0x179)+_0x2a647e(_0x1ad452._0x44c107,0x318)+_0x2104be(0x336,_0x1ad452._0x84d0ee)+']',_0x3254b8[_0x2104be(_0x1ad452._0x51399a,0x61)]=_0x2a647e(-_0x1ad452._0x52d444,_0x1ad452._0x584178)+_0x2104be(_0x1ad452._0x1b700d,_0x1ad452._0x2a795e)+_0x2104be(0x67,-_0x1ad452._0x43e549);const _0x1c5650=_0x3254b8;console[_0x2104be(_0x1ad452._0x22cf2f,0x1dd)](['clawket\x20'+'pair\x20[--'+_0x2a647e(_0x1ad452._0x5481f3,_0x1ad452._0xb3ebf4)+'url>]\x20[-'+_0x2104be(_0x1ad452._0x14eb3f,0x1d0)+'isplayNa'+_0x2a647e(_0x1ad452._0x138f56,0x280)+_0x2104be(0x11,-_0x1ad452._0xe2e45a)+'<path>]\x20'+_0x2104be(_0x1ad452._0x1cd87b,0x160)+'\x20[--forc'+'e]',_0x1c5650[_0x2a647e(_0x1ad452._0x3670e1,0x1cc)],_0x1c5650[_0x2a647e(0x192,0x188)],'clawket\x20'+_0x2104be(0x19e,0x2b1)+_0x2a647e(0x1f5,0x15)+_0x2a647e(-_0x1ad452._0x4a1381,0x50)+_0x2104be(_0x1ad452._0x2cb53c,-0xab)+_0x2a647e(-_0x1ad452._0x22b4c7,_0x1ad452._0x5b2a37),_0x2a647e(_0x1ad452._0x53c13a,_0x1ad452._0xfd581c)+_0x2a647e(_0x1ad452._0x22dd91,_0x1ad452._0x3b624f),_0x2a647e(_0x1ad452._0x2a7944,0x1af)+'restart',_0x2104be(0x170,_0x1ad452._0x279a79)+_0x2104be(_0x1ad452._0x2c0aa3,_0x1ad452._0x1cdaab),_0x2a647e(_0x1ad452._0x219739,0x1af)+_0x2104be(_0x1ad452._0x312e32,0x4de)+'l',_0x2104be(0x170,0x2cf)+_0x2104be(0x1ab,0x228),'clawket\x20'+'status',_0x2a647e(0x248,_0x1ad452._0x15191c)+_0x2104be(_0x1ad452._0x129e6b,0x615)+_0x2104be(0x21e,_0x1ad452._0x4168db)+_0x2104be(0x4d,0x267)+_0x2104be(-_0x1ad452._0x38fada,_0x1ad452._0x28c79d)+_0x2104be(_0x1ad452._0x2c3712,_0x1ad452._0x36a6dc)+_0x2104be(_0x1ad452._0x287172,0x422)+'-json]',_0x1c5650[_0x2104be(_0x1ad452._0x51399a,0x89)],'clawket\x20'+'run\x20[--g'+_0x2a647e(0x31c,_0x1ad452._0x263233)+_0x2104be(_0x1ad452._0x10763b,_0x1ad452._0x223d2b)+_0x2a647e(_0x1ad452._0x21fd0e,0x3f5)+_0x2104be(_0x1ad452._0x4168db,0x5)+'>]']['join']('\x0a'));}function formatLocalTime(_0x3b03b8){const _0x580487={_0x521d92:0x4d1},_0x576d5c={_0x112dc8:0x4c0};function _0x2631c8(_0x2cb01a,_0x5f2de4){return _0x285196(_0x5f2de4- -0x246,_0x2cb01a);}function _0x5a9d20(_0x182515,_0x40e3ed){return _0x285196(_0x182515- -_0x576d5c._0x112dc8,_0x40e3ed);}const _0x231e70=new Date(_0x3b03b8);if(Number[_0x2631c8(0x653,0x4d2)](_0x231e70['getTime']()))return _0x3b03b8;return _0x231e70['toLocale'+_0x2631c8(0x46f,_0x580487._0x521d92)]();}function formatError(_0x2a2872){const _0x3dbd9d={_0xa42579:0x241,_0x3bd04c:0x29b};function _0x8bdbfe(_0x568844,_0x276ed0){return _0x285196(_0x568844- -0x608,_0x276ed0);}return _0x2a2872 instanceof Error?_0x2a2872[_0x8bdbfe(_0x3dbd9d._0xa42579,_0x3dbd9d._0x3bd04c)]:String(_0x2a2872);}function _0x285196(_0x430013,_0x183e0a){const _0x562cae={_0x498dda:0x24b};return _0x1472(_0x430013-_0x562cae._0x498dda,_0x183e0a);}function printJson(_0x1218bf){const _0x1270eb={_0x341aee:0x234};function _0x55a98d(_0x2f80ef,_0x2f867f){return _0x285196(_0x2f80ef- -0x23f,_0x2f867f);}console[_0x55a98d(_0x1270eb._0x341aee,0x301)](JSON['stringif'+'y'](_0x1218bf,null,0x2));}main()[_0x4985a8(0x89f,0x6ee)](_0x20b312=>{const _0xf49d77={_0x26378f:0x294,_0x20c8bd:0x1e5,_0x5b3b5b:0x144},_0x1bd07f={_0x3fd188:0x57e},_0x6364c8={'lGjWE':function(_0x517015,_0xe59dfa){return _0x517015(_0xe59dfa);}};console[_0x406d8b(_0xf49d77._0x26378f,_0xf49d77._0x20c8bd)](_0x6364c8[_0x3061e0(_0xf49d77._0x5b3b5b,0xf3)](formatError,_0x20b312));function _0x406d8b(_0x533de8,_0x4e863a){return _0x285196(_0x4e863a- -0x5f8,_0x533de8);}function _0x3061e0(_0x4d4f73,_0x3cded2){return _0x285196(_0x3cded2- -_0x1bd07f._0x3fd188,_0x4d4f73);}process[_0x406d8b(0x132,-0xa6)](0x1);});