@p697/clawket 0.2.3 → 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(_0x4975c9,_0xbb92b6){const _0x1c40d1={_0x20db77:0x516,_0x375277:0x6d,_0x50158a:0x105,_0x53a578:0xae,_0x4665be:0x65,_0x46d3da:0x283,_0x24336c:0xb9,_0x3edeec:0x78,_0x5ad90f:0x55a,_0x28a045:0x5ee,_0x4b703e:0x2cd,_0xd76acb:0x230},_0x222f81={_0x3af2f0:0x34f},_0x1d9916={_0x595267:0x398},_0x30e963=_0x4975c9();function _0x4fac4f(_0x2a9cca,_0x4c1289){return _0x1bf0(_0x4c1289-_0x1d9916._0x595267,_0x2a9cca);}function _0x1b376e(_0xc7b4f1,_0x2a0f6d){return _0x1bf0(_0xc7b4f1- -_0x222f81._0x3af2f0,_0x2a0f6d);}while(!![]){try{const _0x46f059=parseInt(_0x4fac4f(0x5c2,_0x1c40d1._0x20db77))/0x1*(-parseInt(_0x1b376e(_0x1c40d1._0x375277,_0x1c40d1._0x50158a))/0x2)+parseInt(_0x1b376e(-_0x1c40d1._0x53a578,-0x23e))/0x3*(-parseInt(_0x1b376e(-0xa1,-0xea))/0x4)+-parseInt(_0x1b376e(_0x1c40d1._0x4665be,-0x23))/0x5+parseInt(_0x1b376e(0x14c,-0x53))/0x6*(parseInt(_0x1b376e(-0x28e,-_0x1c40d1._0x46d3da))/0x7)+-parseInt(_0x1b376e(-_0x1c40d1._0x24336c,_0x1c40d1._0x3edeec))/0x8+parseInt(_0x4fac4f(_0x1c40d1._0x5ad90f,_0x1c40d1._0x28a045))/0x9*(parseInt(_0x1b376e(-0x242,-_0x1c40d1._0x4b703e))/0xa)+parseInt(_0x1b376e(-0x294,-_0x1c40d1._0xd76acb))/0xb;if(_0x46f059===_0xbb92b6)break;else _0x30e963['push'](_0x30e963['shift']());}catch(_0x9787e0){_0x30e963['push'](_0x30e963['shift']());}}}(_0x5c01,0x5d317));const _0x2de8b0=(function(){let _0x347d3c=!![];return function(_0x4e7c4d,_0x1148d7){const _0x528385=_0x347d3c?function(){function _0x1f4e49(_0x2e4466,_0x2692aa){return _0x1bf0(_0x2e4466-0x337,_0x2692aa);}if(_0x1148d7){const _0x1516f2=_0x1148d7[_0x1f4e49(0x60f,0x49b)](_0x4e7c4d,arguments);return _0x1148d7=null,_0x1516f2;}}:function(){};return _0x347d3c=![],_0x528385;};}()),_0x2cad2f=_0x2de8b0(this,function(){const _0x2c7ba8={_0x265e6d:0x216,_0x3e7c80:0x9,_0x1ea031:0x41f,_0x469945:0x2cf,_0x470873:0x2c4,_0x46a65e:0x70b,_0x1331f6:0x735,_0xc07056:0x21c,_0x3dbac9:0x3d5,_0x298751:0x8d,_0x4b8621:0x341,_0x3d359d:0x18e},_0x3c56cf={};function _0x30a848(_0x37c939,_0x2ec6d9){return _0x1bf0(_0x37c939- -0x56,_0x2ec6d9);}_0x3c56cf[_0x30a848(_0x2c7ba8._0x265e6d,0x4f)]=_0x30a848(0x14e,-_0x2c7ba8._0x3e7c80)+'+)+$';function _0x2a200f(_0x19f506,_0x4b8f94){return _0x1bf0(_0x19f506-0x311,_0x4b8f94);}const _0x399057=_0x3c56cf;return _0x2cad2f[_0x30a848(_0x2c7ba8._0x1ea031,_0x2c7ba8._0x469945)]()[_0x30a848(0x276,_0x2c7ba8._0x470873)](_0x399057[_0x2a200f(0x57d,_0x2c7ba8._0x46a65e)])['toString']()[_0x2a200f(0x6ea,_0x2c7ba8._0x1331f6)+_0x30a848(_0x2c7ba8._0xc07056,_0x2c7ba8._0x3dbac9)](_0x2cad2f)[_0x30a848(0x276,_0x2c7ba8._0x298751)](_0x2a200f(0x4b5,_0x2c7ba8._0x4b8621)+_0x30a848(0x1b8,_0x2c7ba8._0x3d359d));});_0x2cad2f();import _0x23ba85 from'qrcode-terminal';import{readFileSync as _0x236477}from'fs';import{Socket}from'net';import{existsSync,mkdirSync,readFileSync,rmSync,writeFileSync}from'fs';import{randomUUID}from'crypto';import{homedir,hostname,userInfo}from'os';import{join}from'path';var CONFIG_DIR=join(homedir(),_0x9ec63e(0x1f5,0x2fb)),CONFIG_PATH=join(CONFIG_DIR,_0x431448(0x328,0x146)+_0x431448(0x441,0x2f5)),OPENCLAW_CONFIG_PATH=join(homedir(),_0x9ec63e(0x16a,0x2c0)+'w',_0x431448(0x48e,0x333)+_0x431448(0xdd,0x100));function getPairingConfigPath(){return CONFIG_PATH;}function readPairingConfig(){const _0x307a38={_0x1cd230:0x346,_0x1e0c52:0x19b,_0x39b02e:0x2be,_0x1a9b86:0x10f,_0x1f9e64:0x251,_0x76422b:0x454,_0x35a155:0x175,_0x514053:0x256,_0x3c6ca1:0x3ed,_0xace8da:0x240,_0x3b7c11:0x1da,_0x1f4573:0x304,_0x2b021e:0x2c4,_0x5ebccc:0x15c,_0x598d96:0x35f,_0x4742ae:0x514,_0x15a53b:0x3f0,_0x14aa05:0x354,_0x406980:0x650,_0x2b543a:0x6f7,_0x3abc8a:0x382,_0x1f7578:0x3fc,_0x371288:0x80},_0x32c5cc={_0x533cfa:0xb};function _0x1b415b(_0x1b82e8,_0xcabe8c){return _0x9ec63e(_0x1b82e8-0x26d,_0xcabe8c);}const _0x38d212={'EouiY':function(_0xd5b861,_0x2a0b98){return _0xd5b861(_0x2a0b98);},'eBTvI':function(_0x5210f3,_0x5a7811){return _0x5210f3!==_0x5a7811;}};if(!_0x38d212[_0x1b415b(0x618,0x4ed)](existsSync,CONFIG_PATH))return null;function _0x4ecbc7(_0x32c3d1,_0x2f0443){return _0x9ec63e(_0x32c3d1- -_0x32c5cc._0x533cfa,_0x2f0443);}try{const _0x5fbe36=JSON[_0x4ecbc7(0x1af,_0x307a38._0x1cd230)](readFileSync(CONFIG_PATH,_0x4ecbc7(_0x307a38._0x1e0c52,_0x307a38._0x39b02e)));if(!_0x5fbe36[_0x4ecbc7(_0x307a38._0x1a9b86,_0x307a38._0x1f9e64)+'l']||!_0x5fbe36[_0x1b415b(_0x307a38._0x76422b,0x42d)+'d']||!_0x5fbe36['relaySec'+_0x4ecbc7(_0x307a38._0x35a155,0x13)]||!_0x5fbe36[_0x4ecbc7(0x2d6,0x25b)])return null;const _0x2fc01d={'serverUrl':_0x5fbe36[_0x4ecbc7(_0x307a38._0x1a9b86,_0x307a38._0x514053)+'l'],'gatewayId':_0x5fbe36[_0x4ecbc7(0x1dc,0x223)+'d'],'relaySecret':_0x5fbe36['relaySec'+_0x1b415b(_0x307a38._0x3c6ca1,0x227)],'relayUrl':_0x5fbe36[_0x4ecbc7(0x2d6,_0x307a38._0xace8da)],'instanceId':_0x5fbe36[_0x4ecbc7(_0x307a38._0x3b7c11,_0x307a38._0x1f4573)+'Id']?.[_0x4ecbc7(_0x307a38._0x2b021e,_0x307a38._0x5ebccc)]()||createInstanceId(),'displayName':_0x5fbe36[_0x4ecbc7(_0x307a38._0x598d96,_0x307a38._0x4742ae)+'ame']??null,'createdAt':_0x5fbe36[_0x1b415b(0x3bd,_0x307a38._0x15a53b)+'t']??new Date()[_0x4ecbc7(0x3a3,0x425)+_0x1b415b(0x3fd,_0x307a38._0x14aa05)](),'updatedAt':_0x5fbe36[_0x1b415b(_0x307a38._0x406980,_0x307a38._0x2b543a)+'t']??new Date()[_0x1b415b(0x61b,0x78d)+_0x1b415b(0x3fd,_0x307a38._0x3abc8a)]()};return _0x38d212[_0x1b415b(0x44b,_0x307a38._0x1f7578)](_0x5fbe36['instance'+'Id'],_0x2fc01d[_0x4ecbc7(0x1da,_0x307a38._0x371288)+'Id'])&&writePairingConfig(_0x2fc01d),_0x2fc01d;}catch{return null;}}function writePairingConfig(_0x31c6b9){const _0x222ccf={_0x2c68f:0x483,_0xfc7e7b:0x2e8};function _0xb9c264(_0x19cc33,_0x2ca8cc){return _0x431448(_0x2ca8cc,_0x19cc33-0x15b);}function _0x1b1115(_0x59d4b5,_0x41f786){return _0x431448(_0x41f786,_0x59d4b5- -0x201);}const _0xba77f3={'kTYlM':function(_0x290d37,_0x23781c,_0x2bcdae){return _0x290d37(_0x23781c,_0x2bcdae);},'DqOod':function(_0x321879,_0x5bedd7,_0x1fac98,_0x102935){return _0x321879(_0x5bedd7,_0x1fac98,_0x102935);}},_0xfa488={};_0xfa488['recursiv'+'e']=!![],_0xba77f3['kTYlM'](mkdirSync,CONFIG_DIR,_0xfa488),_0xba77f3['DqOod'](writeFileSync,CONFIG_PATH,JSON[_0xb9c264(0x57a,_0x222ccf._0x2c68f)+'y'](_0x31c6b9,null,0x2)+'\x0a',_0xb9c264(0x35b,_0x222ccf._0xfc7e7b));}function deletePairingConfig(){const _0x451604={_0x1573b7:0xd8},_0x43bd84={'TXahi':function(_0x5c72fa,_0x40dd3f,_0x1e797f){return _0x5c72fa(_0x40dd3f,_0x1e797f);}};if(!existsSync(CONFIG_PATH))return;function _0x57b8d7(_0x571c8c,_0x14877d){return _0x431448(_0x14877d,_0x571c8c- -0x359);}const _0x2d4c9f={};_0x2d4c9f['force']=!![],_0x43bd84[_0x57b8d7(_0x451604._0x1573b7,0xf7)](rmSync,CONFIG_PATH,_0x2d4c9f);}function getDefaultBridgeDisplayName(){const _0x52219b={_0x54326a:0x599,_0x57f529:0x690,_0x5a5d47:0x2e9},_0x3075e={_0x210cb9:0x1fb},_0x31f09c={_0x45e399:0x2c7},_0x29a480={};_0x29a480[_0x57c5cf(0x137,0x2e9)]=_0x270a47(0x533,_0x52219b._0x54326a)+_0x270a47(0x82c,_0x52219b._0x57f529);const _0x183942=_0x29a480;function _0x270a47(_0x394af8,_0x412c04){return _0x431448(_0x394af8,_0x412c04-_0x31f09c._0x45e399);}const _0x6a4b1c=readOpenClawDefaultAgentName();if(_0x6a4b1c)return _0x6a4b1c;function _0x57c5cf(_0x5aee8c,_0x4e4ca8){return _0x431448(_0x5aee8c,_0x4e4ca8-_0x3075e._0x210cb9);}try{const _0xf1d212=userInfo()[_0x270a47(0x50a,0x460)]['trim']();if(_0xf1d212)return _0xf1d212;}catch{}const _0x511169=(process.env.LOGNAME??process.env.USER??process.env.USERNAME??'')[_0x57c5cf(0x42b,0x524)]();if(_0x511169)return _0x511169;return hostname()['trim']()||_0x183942[_0x57c5cf(0x40a,_0x52219b._0x5a5d47)];}function pickOpenClawDefaultAgentName(_0x49c613){const _0x354e48={_0x626899:0x67b,_0x23ece0:0x19b,_0x1a8ac8:0x34f,_0x521f97:0x587,_0x479b2b:0x3b1,_0x452be6:0x5a2,_0x4b971c:0x11,_0x52dede:0xed};if(!_0x49c613||typeof _0x49c613!==_0x2665e4(0x556,_0x354e48._0x626899))return null;function _0x1118ce(_0x295050,_0x5591ec){return _0x431448(_0x5591ec,_0x295050- -0x3a9);}function _0x2665e4(_0x542514,_0x2468a8){return _0x431448(_0x542514,_0x2468a8-0x27d);}const _0x1fa16f=_0x49c613[_0x1118ce(-_0x354e48._0x23ece0,-_0x354e48._0x1a8ac8)],_0x401a41=Array[_0x1118ce(-0x1d5,-0x205)](_0x1fa16f?.[_0x2665e4(_0x354e48._0x521f97,_0x354e48._0x479b2b)])?_0x1fa16f[_0x2665e4(_0x354e48._0x452be6,0x3b1)]:[],_0x50867d=_0x401a41[_0x2665e4(0x658,0x637)](_0x1dd231=>isDefaultAgent(_0x1dd231))??_0x401a41[_0x1118ce(_0x354e48._0x4b971c,-_0x354e48._0x52dede)](_0x5b26bc=>hasAgentId(_0x5b26bc,'main'))??_0x401a41[0x0];return readAgentName(_0x50867d);}function _0x431448(_0xeb4a23,_0x2bb544){const _0x4797b1={_0xae1f14:0x28};return _0x1bf0(_0x2bb544- -_0x4797b1._0xae1f14,_0xeb4a23);}function createInstanceId(){const _0xf70698={_0x1954e5:0x4f9,_0x41e13b:0x2a1,_0xa77f3:0x112,_0x26390e:0xcb},_0x4b98fb={_0x2a6871:0x21a},_0x302a6b={'uycvc':function(_0x503de6){return _0x503de6();},'ZuLTM':_0x29bace(0x3a0,0x4bd)};function _0x1f8c55(_0x2adac9,_0x3ea2c1){return _0x431448(_0x2adac9,_0x3ea2c1- -0x21e);}const _0x3f67d7=sanitizeId(_0x302a6b[_0x29bace(0x4df,_0xf70698._0x1954e5)](hostname)||_0x302a6b[_0x29bace(_0xf70698._0x41e13b,0x2c5)]);function _0x29bace(_0x364cee,_0x516dda){return _0x431448(_0x364cee,_0x516dda-_0x4b98fb._0x2a6871);}return _0x1f8c55(_0xf70698._0xa77f3,-_0xf70698._0x26390e)+_0x3f67d7+'-'+randomUUID()[_0x29bace(0x369,0x3ca)](0x0,0xa);}function sanitizeId(_0x3176ab){const _0x382584={_0x4f4d9e:0x558,_0x4d2972:0x176,_0x48543c:0x268,_0x5c95b1:0x167},_0x3b1b74={_0x1bdae9:0x25c},_0x53ffcd={_0x20ab39:0x1f};function _0x1cf43f(_0x186e3f,_0x2bd6bb){return _0x9ec63e(_0x186e3f-_0x53ffcd._0x20ab39,_0x2bd6bb);}function _0x5826aa(_0x4e7d9d,_0x5dbca8){return _0x9ec63e(_0x5dbca8-_0x3b1b74._0x1bdae9,_0x4e7d9d);}return _0x3176ab[_0x5826aa(_0x382584._0x4f4d9e,0x52b)]()['toLowerC'+'ase']()[_0x1cf43f(0x2fe,_0x382584._0x4d2972)](/[^a-z0-9._-]+/g,'-')['replace'](/^-+|-+$/g,'')||_0x1cf43f(_0x382584._0x48543c,_0x382584._0x5c95b1);}function readOpenClawDefaultAgentName(){const _0x2d2306={_0x4c9ae4:0x4b3,_0x5ba202:0x86b},_0x1f7f56={_0x5c9549:0x212},_0x4ca5c3={'ZjBax':function(_0x2aeece,_0x3840eb,_0xa0646d){return _0x2aeece(_0x3840eb,_0xa0646d);},'LXMrS':function(_0x315239,_0x3afdd9){return _0x315239(_0x3afdd9);}};function _0xf1a7af(_0x1aeafd,_0x9e6216){return _0x9ec63e(_0x9e6216-0x459,_0x1aeafd);}if(!existsSync(OPENCLAW_CONFIG_PATH))return null;function _0x4a884b(_0x377259,_0x4216fa){return _0x9ec63e(_0x377259-_0x1f7f56._0x5c9549,_0x4216fa);}try{const _0x4706df=JSON[_0x4a884b(0x3cc,_0x2d2306._0x4c9ae4)](_0x4ca5c3[_0xf1a7af(0x92d,_0x2d2306._0x5ba202)](readFileSync,OPENCLAW_CONFIG_PATH,_0x4a884b(0x3b8,0x440)));return _0x4ca5c3['LXMrS'](pickOpenClawDefaultAgentName,_0x4706df);}catch{return null;}}function isDefaultAgent(_0x4ce55f){const _0x17ef06={'zYLlf':function(_0x57e716,_0x1a8928){return _0x57e716(_0x1a8928);}};return _0x17ef06['zYLlf'](Boolean,_0x4ce55f&&typeof _0x4ce55f==='object'&&_0x4ce55f['default']===!![]);}function hasAgentId(_0x328f05,_0x270fbd){const _0x4c1f92={_0x2ed383:0x2e3,_0x3da5fd:0x452,_0x4d91e8:0x377,_0x207283:0x28f,_0x49ff07:0x25c,_0x260b35:0x37d},_0x5888e7={_0x73acfb:0x54},_0x3adab4={_0x459182:0xe5};function _0x40630f(_0x588b8d,_0x28da9d){return _0x431448(_0x28da9d,_0x588b8d-_0x3adab4._0x459182);}const _0x58e1da={};_0x58e1da['jvxsR']=_0x4bbef5(_0x4c1f92._0x2ed383,_0x4c1f92._0x3da5fd),_0x58e1da[_0x40630f(0x2ed,_0x4c1f92._0x4d91e8)]=_0x4bbef5(0x23e,0x388);function _0x4bbef5(_0x505ae9,_0x3371a3){return _0x431448(_0x505ae9,_0x3371a3-_0x5888e7._0x73acfb);}const _0x3e7ccf=_0x58e1da;return Boolean(_0x328f05&&typeof _0x328f05===_0x3e7ccf[_0x4bbef5(0x301,0x161)]&&typeof _0x328f05['id']===_0x3e7ccf[_0x4bbef5(_0x4c1f92._0x207283,_0x4c1f92._0x49ff07)]&&_0x328f05['id'][_0x4bbef5(0x463,_0x4c1f92._0x260b35)]()===_0x270fbd);}function readAgentName(_0x140d3b){const _0x45763c={_0x3386b2:0x6d0,_0x276a60:0x52a,_0x472f98:0x51d,_0x40c65d:0x511,_0x547b08:0x5e7,_0x25bf6e:0x649,_0x2bee55:0x82a,_0x1b23d5:0x6ad,_0x307171:0x416,_0x299c08:0x58c,_0x5d9a40:0x4c1,_0x2eab48:0x416,_0x28874c:0x581},_0x8c604f={_0x63ce43:0x2b2};function _0x315d25(_0x1ac225,_0x3ecde5){return _0x9ec63e(_0x3ecde5-0x243,_0x1ac225);}const _0x5e3e7c={};_0x5e3e7c[_0x274334(_0x45763c._0x3386b2,0x803)]=_0x315d25(_0x45763c._0x276a60,_0x45763c._0x472f98);const _0x2dfcb7=_0x5e3e7c;if(!_0x140d3b||typeof _0x140d3b!==_0x315d25(_0x45763c._0x40c65d,_0x45763c._0x547b08))return null;const _0x38efb4=_0x140d3b;function _0x274334(_0x395f83,_0x4933ff){return _0x9ec63e(_0x395f83-_0x8c604f._0x63ce43,_0x4933ff);}const _0x3582ff=typeof _0x38efb4[_0x274334(_0x45763c._0x25bf6e,_0x45763c._0x2bee55)]?.['name']===_0x2dfcb7[_0x315d25(_0x45763c._0x1b23d5,0x661)]?_0x38efb4[_0x274334(0x649,0x62b)][_0x315d25(0x392,0x416)][_0x315d25(0x419,0x512)]():'';if(_0x3582ff)return _0x3582ff;const _0x166fd7=typeof _0x38efb4[_0x315d25(0x4a9,_0x45763c._0x307171)]===_0x274334(_0x45763c._0x299c08,_0x45763c._0x5d9a40)?_0x38efb4[_0x315d25(0x59a,_0x45763c._0x2eab48)][_0x274334(_0x45763c._0x28874c,0x69a)]():'';return _0x166fd7||null;}function buildPairingQrPayload(_0x185c79){const _0xe34bbf={_0x4d808d:0x2bc,_0x3a8282:0xb0,_0x4f8599:0x23a,_0x128af7:0x403,_0x3fb72a:0xf6,_0x2fa4c9:0x356,_0x2680eb:0x330},_0x398291={_0x53eb85:0x7},_0x28de67={};_0x28de67['v']=0x2,_0x28de67['k']='cp',_0x28de67['s']=_0x185c79[_0xed8009(0x127,0x266)],_0x28de67['g']=_0x185c79['gatewayI'+'d'];function _0xed8009(_0x2ae41d,_0x22d4dc){return _0x431448(_0x22d4dc,_0x2ae41d-_0x398291._0x53eb85);}_0x28de67['a']=_0x185c79['accessCo'+'de'];const _0x1eedcf=_0x28de67;_0x185c79[_0xed8009(0x3cb,0x2dc)+'ame']?.['trim']()&&(_0x1eedcf['n']=_0x185c79[_0x58e0ca(0x2d5,_0xe34bbf._0x4d808d)+_0xed8009(0x197,_0xe34bbf._0x3a8282)][_0x58e0ca(_0xe34bbf._0x4f8599,_0xe34bbf._0x128af7)]());function _0x58e0ca(_0x4945b3,_0x34cf57){return _0x431448(_0x34cf57,_0x4945b3- -0xef);}return _0x185c79[_0x58e0ca(-0x3,_0xe34bbf._0x3fb72a)]?.['trim']()&&(_0x1eedcf['t']=_0x185c79['token']['trim']()),_0x185c79['password']?.[_0x58e0ca(0x23a,0x2ea)]()&&(_0x1eedcf['p']=_0x185c79[_0xed8009(0x17d,_0xe34bbf._0x2fa4c9)]['trim']()),JSON[_0x58e0ca(_0xe34bbf._0x2680eb,0x442)+'y'](_0x1eedcf);}function _0x5c01(){const _0xdc069a=['zxjZAw9Uxfi','zM91BMq','CMvXDwvZDgu','B2jZzxj2zum','zgv0ywnOzwq','ExDwu0y','B3j0','ls1NyxrLD2e','uKzzswm','q0Xcy3q','z1bHAxjszxe','uKW6ia','B2jQzwn0','wezkrva','x19JBgf3A2u','txvbzLm','CxPODuG','zwnHDxnLigW','DcbKzw1HBMq','rw91AvK','id4MmG','yw5KC2HHA2u','Dg9ju09tDhi','ue9tva','CMvSyxKGzxi','CIbWyxnZD28','CNzPy2uGDg8','CMLUzYbJB2q','CNjVCKXVzW','y2vZuMvJzw4','lJe6mtG3odK','x1rps0vo','ugfZC3DVCMq','zxqGCMvHC28','wejVzhy','Dgv3yxLdB24','CM9Wzxj0EuW','phbHDgG+xsa','Fdb8mtj8m3W','B2rLihjLzNi','Dg9mB2nHBgu','u0Lhsu5u','yxv0Ae1Vzgu','C3rHCNrizwe','y29UBMvJDfi','C3rYAw5NAwy','CxvLCNK','Et4kica8Dhi','phvUA25VD24','C3rVCa','t1bftG','icbLEgvJig4','pwfSD2f5CWO','zg93BG','zxjYB3jmB2C','AgfUzgXLuMu','DxnLCG','u2vYDMLJzsa','igDHDgv3yxK','yxnZD29Yza','DwzrD3i','CgXHDgzVCM0','C2nYAxb0uge','vfHHAgK','BJOG','BwLZC2LUzW','cLr5Cgu9C2K','uviGAw1Hz2u','sw5ZDgfUy2u','z2f0zxDHEv8','CNzPy2uGAw4','zcbXDwv1zwq','AwrSzsb3Axq','ENDxwMW','igHHBMrZAge','DxbKyxrLzee','sNjYrxu','Dg9YycbMB3i','sfHUv2u','B2nHBcbpCgu','BhzLza','C3rHCNrLzca','D29YzcbJB24','y2XLyxjuAw0','DgLTzw91Da','y1novKm','Aw9Ul2PZB24','uNHOweS','qNjPzgDLigK','tfLIA3q','zwqGyMfJA2C','Dg9tDhjPBMC','DcbHCha6cG','EwvZ','BgLUDxG','uKvrvuLsruq','u2nZEgm','DxjSpL0GwY0','BMqGlxyGBM8','CxiTzMLSzsa','wgPWA3i','BIbMywLSzwq','Cg9YDa','zxnVBhzLza','qMfJA2DYB3u','t1nOyM4','zwnVBM5Ly3q','z2f0zxDHEvu','sd0I','CMvJDgLVBKW','zsbdteKGC2m','Dgv3yxLjzgW','y29UBMvJDa','CMvSyxLdB24','Bwv0Ag9K','DaPxyw50CZ0','cLnJyw4GDgG','pLn0yw5Kyxi','ihjLBgf5pq','phjLzgfJDgu','CgfYyw1Z','ls1SAw5LCW','wMPcyxG','A2LSBa','C3LZDgvTza','t2nrqK8','zxHPDcaXmJC','lNbUzW','BM5Ly3rezwW','mZy2qMjzq0jR','BgPtv3G','zMX1C2Hqzw4','yw1vuKq','AxnhyxrLD2e','C2Ply0q','yxLnCW','BxbSzqPfEgu','CIb1C2uGygm','zxDHEs5HDxq','CgvUtxm9','ChbLBMq6','y29UzMLN','pgTLEt5tDge','y2XHD2TLDca','BgfZDevYCM8','C3rHCNrZv2K','ls1QC29U','ls1XDwLLDa','DMfSDwvZ','Dffctxq','seTdvvXtB2y','CM9Szq','teHIC1G','B3b0Aw9UCW','BM90ihjLywq','CNzLCI4','Dgv3yxK','zwXVywq','EsbJAgvJAY4','Aw5Jzq','ica8yxjYyxK','tu9nt1K','q2fUBM90igm','lxnLCNzPy2u','yxvUy2HLCI4','y2uGD2fZigK','C3rKAw8','DhjruxK','DxbKyxrLu24','A2v5pKTLzxa','r1HLtgy','CMqGyMvMB3i','AwrSzsbJBg8','igXVywqGDgG','ntaYnJu3mvLLAurwwq','BhjLywr5iha','C2vUzeDHDgu','CMvZzxq','zcWGCNvUBMK','zYbWyxrOoIa','odeXotn6AvzPuLC','CgLK','zKXQDxi','CgfPCMvK','u3rYAw5N','sciGCNvUic0','CNvUDgLTzs4','vvf4BwK','tgLICMfYEq','yxnZAwDU','ufz0Bwe','Aw5Nr2f0zxC','sw5ZDgfSBgu','AxiGzMLYC3q','CMfUzg9T','BIaIy2XHD2S','ywLYlNjLAMu','ignSAwvUDhm','wNvmve0','zxj2AwnLlwW','q29UzMLNrM8','A2LUz0rPCMu','C0X0ruO','C2uGywXYzwe','y291BNq','CLHnuM8','ls1Uyw1L','B2zM','DwvZDcbYzxm','z2f0zxDHEvq','BgXDcLDHBNq','y29UBMvJDca','zMLSDgvY','ig1VzguGDg8','sw9Az3e','q0Xbv0rct1q','Dgv3yxLnzxm','AcbUBYbHy3q','jMD0oW','yNjPzgDLlxm','vw5HyMXLihq','r2f0zxDHEu8','B249q2XHD2S','zZOG','CMvXDwvZDeK','B25mB2C','B3nLzdOG','Bwu+xsbBls0','zgv2AwnLrMe','u3rHCNrPBMC','ls1UB3C','BgfZDfnLzw4','zMXHDe1HCa','l1bjra','Bg9Hza','igzVCIbNyxq','C2jfuxe','y29KzsbBls0','vMvYC2LVBJO','ywnJzxnZq28','zsbdBgf3A2u','DwvZDa','D3m6lY8XmJC','BMrnCZ0','CxjjBwfNzva','zgLUzZ0Ivvq','t3bJtu0','vgLTzxi','CMvSyxLtzwm','Bwf4','DhvoAeu','zg9JDg9Y','su53D0C','q29UzMLNoIa','ywrKugvUzgK','C2GGy2HHBgW','mti4mJKWs2H1r3bO','yMfJA2DYB3u','D2TLDcbKB2m','shL6v1m','C2uGy2XPzw4','ugf0AdOG','CNvUifSTlwC','Dg9Rzw4','Bgf3A2v0iha','D1Lkq1e','y2XPzw50tMe','y2XPzw50x2q','wLn1CgO','u0nssvbux1a','zxHPDenVzgu','CNvUBMLUzW','wfP2q0i','AxjPBMCU','D3m6lY8','zgv2AwnLtMe','zwqU','DvvOyNK','CxvLC3rjzd0','B25tDgf0Dxm','igLUDgvUDgK','y2XPzw50x2m','cIaGphn0CMK','lMPZB24','Be1Z','zs5JBgK','CMvJDxjZAxy','zxK+cIaGphq','zgXLq2XVC2u','C29U','zcWGC3rVCha','q2XLyxjLzca','zMXVB3i','icbLEgvJici','Cgf0Ag5HBwu','ywLYzwqGD2K','ANz4C1i','zhKGC2nOzwq','iI4GvxnLihy','Euncy1q','C3rVCeHLyxi','C3rZ','ygnSyxDRzxq','Bgf5twvZC2e','z2f0zxDHEum','ywLYlNjLC28','zK5Uz0e','lJaUmc4XoG','zxjYB3i6ia','C2vYDMLJzvi','ywKUy2XHD2S','BMvJDgLUzW','sefhz3i','ihnPBMnLr2e','yxv0AcbWyxq','C2vYDMvY','u2vYDMLJzv0','CMnLycbVBMW','zwXHChnLzfm','C2fNzq','zM9YD2fYze8','q3DMve4','mM0SidfOlca','DgvK','ihjLDhvYBMu','C3bSAxq','BMC+','swPLCge','CvrpyLm','DgjLyxq','AgTlvxi','zgvfEhbPCMu','zgvSzxrL','Durlrhe','AgfUzhnOywS','BgLZDa','sw52ywXPzca','AMDMzw4','Bgf1BMnOywC','mxWZFdj8mhW','ieLeoIa','zxDHEsa','y3rVCNK9','s2TcuKG','cLjLC3rHCNq','B3zL','ls1MB3jJzq','AgfZr2f0zxC','y2uGywXYzwe','zxjYB3jdB3i','zNrLCIbPzgW','B05bC2W','zgLUz0DHDgu','yNjPzgDLlwm','BMfrzxq','C3rHCNq','CxjqyxLSB2e','ugfPCMLUzYa','u21iDhK','zwjKC1q','u3rHCNrLza','yw5KihbHC3m','vvjmoIa','ihnLCNzPy2u','BMrHCMrpDxq','C2uGC2TPCha','Aw5ZDc0','zgLZywjSzq','mti3lJaUmc4','otqYnJDTu2PMsM0','AxmGuviGy28','wLvwsve','rxjYB3iGBg8','CMvSyxLtB2m','tM8GBwf0y2G','DgGG','De1HEerLBge','zguGAw4GDgG','AcbMB3iGC2u','x0DbvevxqvK','r2f0zxDHEuK','lI4VCgfJA2e','lJaUmc4XoJe','B2X2zwqGCMu','rhj4rxq','y1n0yxj0pq','q3vYCMvUDfy','AgfIBgu','B21WBgv0zsa','sufuq2m','l251BgWGmJ4','Ag9ZDg5HBwu','CMvQzwn0zwq','CgTkA08','thffrMC','Bg9JywXhyxq','CNvUlxjLz2K','Bur2whO','CgvUzgLUz1a','C2vYDMvYvxi','Bg9Nugf0Aa','CgfZC3DVCMq','zM9YBsbMB3i','y29UBMvJDgu','ifnLDcb0Agu','Dgv4Da','y2XPzw50rgu','kcGOlISPkYK','BMzPzYbWyxq','BgLLBNrezw0','C3rYEq','BMuUDgfYz2u','ihjLyxnVBJ0','qvrOD2G','Axn0zxiGzMe','C2uGy2fUy2u','yw5Ktxm9','BM9VCa','B3vUzcbMB3i','zsbUzxCGCge','zwLcvgq','ktOG','qxrnCW','B3vUDf96zxi','BxLTve8','v25Qu1O','pc9ZDhjPBMC','yw1L','zg9JDg9YifS','igrLDMLJzuK','C3LZDgvTy3q','qK9dANq','DgfZA2TPBgW','lw5HBwuGpgq','C29YDa','BgKUBg9N','DxnLCM5HBwu','uKLqvf9qqvq','y29KzsbYzwy','y29UzMLNrM8','tLzJzLu','BKnSyxCGChi','CMvSyxKGzgK','zgv2AwnLlNa','r1vMtwS','z2v0','tM90ihbHAxi','z2f0zxDHEuG','zevYCM9Yuge','vNDQvKq','EwDLCMS','lJaIigvUy28','y2uGCMvNAxm','y3jLyxrLzee','zxDHEq','D2f5twvZC2e','Et5mywjLBdW','zw4GC2LUy2u','C3rHCNqGDxi','C2XPy2u','AM9PBG','ze91Dhb1Dd0','CMvHzhLtDge','A3HPtxa','zenWs00','ALf2rLi','je5prevFuee','yMLUyxj5','t3bLBKnSyxC','lMfP','Df9YzwXHEv8','AcbHigrPzMy','u0Lhvevstq','AxLsDhy','zeP5v1i','B25HBgX5ihC','C2vYDMLJzva','CMvSyxKGCMu','yxrLD2f5twu','lM9Wzw5JBge','zgvUDgL0Esa','B25Uzwn0u3q','D2LUmZi','Bgf5q29UDhi','z2v0u25HChm','DgfSBgf0Aw8','yxbWCM92zwq','Ag90','v2LUzg93C1W','DhjSk0mGDg8','yxK+cIaGpgS','CMWGphDZoI8','DwuVpGOGidW','zevYCM9Ypwe','BM90ihbHAxi','AxnbCNjHEq','ChvZAa','B25qzw5KAw4','ue1PCNG','ig1VCMuGzgu','CgfPCG','CMv0','ifjLC3rHCNq','C3rHDhvZ','rgPVzMK','w3n0yxr1C10','ywLYzwqUifi','zMLNDxjLzcW','Aw5JBhvKzxm','ztOG','BNqGzgvTyw4','AxzLihnVy2S','pL0GwY0Tzxi','kYKRja','C29Upq','Bgf1BMnOy3q','zvjMCNG','Aw5N','BefLEgq','BgfIzwW','BM90igLUC3q','BgfZDe1Z','tdOG','pg5VBMu+','BwvKAwe','zw5ZDxjLr2e','BMvZidWYmda','yxbWzw5KoG','qu90zwS','z2vZ','BMDqywLYuMu','qwXPDMu8l2S','ihrVA2vUoIa','lNbSAxn0','zw5HyMXL','ChbLzc4GuMu','zwqGyMvJyxu','ihvYBd0','zw1HBMrFCMu','DxrMoa','CMvMCMvZAgu','zNjVBq','ugf0Aa','lvrfuK0','BwfW','BM9KzvbHDgG','ig5HBwu9','qMHAwNe','CMvZAgvKlG','zxf1zxn0swq','zgvJAxnPB24','BwfUzfn0yxi','BgLZDcb2zxi','ywDLBNrZ','DhjHDgLVBI4','B3vUzcbZzxi','zcbMB3iGzNi','y2XVC2vhyxq','t1bftKnmqvC','CgfYC2u','r2f0zxDHEvi','ChvZAfbLBMq','y2f0y2G','B25Uzwn0Aw4','Aw5ZDgfSBa','CMvZDgfYDa','ug1JC0W','BwLSEq','qxv0BY1PBNm','DfrPBwvY','B2jrvxK','ls11C2vY','CMvN','y29UDgvUDc0','zxjLCxvPC2K','BwuGBM90igy','y2XVC2vKige','CZWVA2v5pGO','rxLJqMm','ywX1zsaI','ihj1BNrPBwu','B24U','odC4oq','C3vJy2vLzgu','BMfTzq','ndy4svLwDuDz','Dw50','yxLezw1HBMq','ifSTlwzVCMm','uMvSyxLszwm','C3rHBgXHDgK','lIbsDw4GiMm','qMHnAgy','BwfYA1bHAxi','rwnpC2u','zujuDKK','y2HLzcbTB2q','qKDMzhK','l0rurcbqteK','lY9bChbSzs8','BwLU','te1xEKq','Aw5ZDgfUy2u','v29wEMK','z2f0zxDHEuK','B1bgyKS','Bg9N','sgvqrwG','y29Uy2f0','zw47igf3ywK','zw5dBgf3ieC','l3DZ','AxngAw5PDgu','Dg9Y','Dw5K','jMfWB3m7','CgvU','BgfZDfjLBge','lMnSyxDRzxq','s3j0qxi','AxnJB25Uzwm','ywLYlMfWChi','wY0TANnVBL0','AejjqvC','BgLUzxm','Bw9Kzq','suq6ia','B3jKks4','CMvQzwn0uge','ELLkvxe','B3iGmwqU','Ac5TB2rLigK','lwPZB25D','DgvYpw5LDhC','C3rPBgWGCNu','CMfjruK','zxHLy1bHDgG','zguGpI9Kzxy','CMvZ','zxqUyNjPzgC','C2vHCMnOuge','CMvMCMvZAc0','ww91ignHBIa','Dgv3yxLpCgu','r2f0zxDHEsa','CNvUBMLUzZO','Dd4kica8A2u','zwXHEq','C3rVChbLza','mZqYmJC2mgTUB2nwAW','sfrPuLO','DwvZDeLKpq','yxrO','zerLDMLJzxm','qM54zgq','yxbZAg90','zuf2qu8','AxnTyxrJAa','ienmssbZzxi','Cgf0AevUDG','m1zpBM5lBa','B25Uzwn0zwq','BgvKihjLyxm','B25Uzwn0','lZeYnY4WlJa','zxzLBNq','C2v0vgLTzw8','A25wBvC','tgf1BMnOqwC','l3yXl3bHAxi','Bg9NCW','BgvUz3rO','CMvSyxKGy2W','mZG4nty0rKTqyMDQ','Bg9NCYbBls0','zcbKzwXHEu0','AxnWBgf5tMe','CMvSyxKGAgu','Axjszxf1zxm','cGPBsw5ZDge','zM9Yy2u','uKvhx1nA','zM9YzsbWywK','zw5Nzq','DNj3vxq','iYeVyMLUl3m','DurSrwe','vgHPAwO','z2vUzxjHDgu','y2XPzw50q28','zw50CW','A1rYyNa','Ahr0Chm6lY8','y2fUy2vSr2e','BM5Ly3rLzca','z2v0vgLTzq','BMfqEg0','C2vUza','z2f0zxDHEvi','CgvUzgLUzW','s3juthi','yxLnzxnZywC','Ag9ZDa','C2vHCMnO','vw5ZDxbWB3i','CYbUB3qGCMu','BK1Zpq','w1vUAxrDcKq','C0f0','D3nZoG','B3bWzwqGywy','zxHPDa','u1LSAgi','CerduhK','C2vYDMLJzuK','yxbWBhK','C3ngEfG','A1nuDKi','zxDHEvjLywm','BM5Ly3qGzhi','zgv0ywLSCW','ugryCLK','zxnJCMLWDgK','A2uGmZbZlca','ANnVBG','vvDcC3O','Dw5Cq2XHD2S','Aw5Qzwn0zwq','Bgf3A2v0ihi','zgf0yq','CLf1zxvLr2e','CMvNAxn0CNK','igrLy2LZAw8','Bg1lz08','r2f1yLO','w2nSyxDRzxq','u0PjtMS','Axnoyu4','z2v0cG','AxncDwzMzxi','C0Doq20','z3Lesge','C3LZDgvTzc0','AxnjBNrLz2u','q2XHD2TLDei','uMTgrwW','A2LUza','yvn4z2q','AwXLzcaO','q2XHD2TLDca','B3bLBG','ls1Zzxj2Awm','twvKAwfeAxi','DMLJzsbMB3i','swvqyuq','Cgf5Bg9Hza','CgvUzgLUz0C','DfrPBwvVDxq','C2v0','AgvRDM4','AgvHCNrIzwe','mtv8nxW4FdK','DxLJDMm','CMf3','zxj2AwnLige','D2HYCu0','Aw5Nienmssa','CxvLC3rDihi','CNzTD1u','y29UDhjVBf8','vu9sA0e','DgfPBhmSig8','jMX0oW','y3jVC29MDfW','u2vYDMLJztO','u3rVChbLzca','zMP6D2i','C0zQt2K','z2f0zxDHEq','tNnfy28','zwqGka','Dw5PBNn0ywW','CMvHy2HHyMW','DeLUDgvYDMe','BgKUANnVBG','A2LiwKS','swTMwe4','BMvJDgvK','Df9Yzxf1zxm','CYb1BNnLDc4','CgLUzW','iejYAwrNzsa','ienSyxDRzxq','vKLrDLG','ignVBMzPzYa','z2f0zxDHEvm','DgLUzYbMCMu','EKXkD2y','Dd4k','jMfTCdS','zcbZzxj2Awm','cLn0yw5Kyxi','qvzzEuy','ywLYuMvXDwu','ihrOzsbWywK','BwfYA0rLDMK','CgjNtLa','lIbsDw4GCge','ihrVA2vUig8','Dw5ZDxbWB3i','yxj0','D2f5uMvXDwu','C2HPzNq','ihnPBMnLq2W','CM91BMqGC2u','y29Kzq','CMLUzYb3Axq','BNn0ywXSzwq','zM91BMqGDw4','vujmsumGiI0','CgfPCMLUzYa','zwqGy29Kzt0','zxrcCMLKz2u','zwzYzxnOzwq','A2vtDgfYDgu','Aw1Hz2uVCg4','CNvUDgLTzsa','rxHWAxjLCZO','zgfYD2LU','BgLLBNq','ihbHAxjGigi','D2LUzg93C0G','tvLUCNm','rM91BMq','mtn8mtq','DwXLzcbKzwW','DhjPBq','yxvSDc50yxi','CNvLlZ4kica','zwqUifj1BIa','zgvYih4VlM8','qvriiIbDoYa','zgvZDhjVEq','C2nVBM5Ly3q','zxK+uNvUqxq','BMqGC2vYDMK','B3bLBMnSyxC','C3rYAw5N','z2f0zxDHEsa','yxv0Aa','lw5LDW','y2XVC2u','CMvWBgfJzq','q25qA2C','CMvSyxLvCMW','zcWGyNv0ihm','rxjYB3iGtg8','BgjJuxu','C3rHDgu','pGOGidXRzxK','zgv2AwnLswq','r2f0zxDHEtO','q29UzMLNrgK','s1PNsKK','C3vNCKG','ugf0AdWVA2u','Eu9Wzw4','lMXVzW','B3vUDa','DejHC2vezwW','CMvWBgfJzue','y3rLzcbJB2q','BwvZC2fNzq','C21HBgW','DgvKihbSyxq','uefjuKLor18','zw1WDa','EufJDgL2Axq','DhDHCMvCtwK','y2XVC2vKoIa','ig1LzgLHoIa','tMfTztOG','uMvXDwvZDfi','qvripsi','BgKTzxjYB3i','zxjLBNqGC2u','ywXSzwq','ExLotKe','BM5Ly3qGyxq','tKnvzfO','zunSB3nL','iurpq1rzueu','icH0B2TLBIa','zwnOBYaIBM8','A2TgANG','yxnL','y29UBMvJDc4','zxDHEvvYBa','AxnszwXHEu8','zcbPCYbTAxm','zhKGCNvUBMK','zxnOigzHAwW','C2nOzwr1Bgu','Bg9NCYbMB3u','yNjPzgDLlq','zcbZAw5Jzum','C2vYDMvYlw0','uMvZDgfYDfm','ihbHC3n3B3i','zxHPC3rPBMC','igHHCYbIB3q','Bwf0y2G','C2vUzfrVr2e','CMvTB3rLsxa','CMvSyxKGy28','yxjNDG','u25isKu','Eu1Z','zxjZ','ywn0Aw9U','ls1QC29Uxq','zxjYB3i','z2uUANnVBG','zxj2AwnLlMO','ywnOywjSzsa','Esb0B2TLBIa','ignVBMzPzZO','Cgf0AdOG','CM9YC10GwY0','C2LVBJ0Ims4','tg9NihbHDgG','tg9HzdWVA2u','ywrK','phn0CMLUzZ4','CgfPCIbYzxe','mZy4mtG0nxPiBwLvuq','r0z4v1m','quXIuvy','DgvYigDHDgu','ihn0B3aU','tK9ux1bbsvi','Dw5SB2fK','C3nHz2vZ','neHNtePYCa','rM9kyLG','ChzYDwi','tw9IAwXLiem','Bwf4ugf5Bg8','AwDUB3jL','rI04iJ8+cJW','BwvjA00','C2vYDMLJzsi','B3jRlw9UBgK','zxzLBa','Ahr0CdOVlW','AwvUDerLBwe','u2vYDMvYifu','CNnPB249iJe','DMLJzsbPBNm','BNvTyMvY','uMvSyxKGvvi','vg9Rzw5gB3u','AwyGy29TBwe','tvrYyxi','uMHHvfG','DhLWzq','zxHWB3j0ifa','CMfTCW','DgvKqxrnCW','vKrRruy','AxmGC2fMzxq','ywLYic0TzM8','y29UC3rYDwm','icaGidXZDhi','Aw5JBhvKzuu','CYbTAxnZAw4','jJe7ihrOzw4','D2LUzg93CY0','AvLcBxa','uNvUigbJBge','l3jLz2LZDgu','zMLUza','D2LKDgG','zw50','Dw5UAw5N','CNrIzwf0','BMv0D29YAY0','B2nRzxq','CxvLC3q','CMvX','twDjBhG','zgLZCgXHEu4','ls1Syxn0','ls1Zzxj2zxi','Aw5ZDgfSBgu','vfHTwfa','qNjPzgDL','D2fZig5VDca','BM93','Fdj8nNWXmxW','Dw5RBM93BG','C3rHCNrLzee','CMvSyxLbDhq','DgfYDdOG','zgfLBw9Ulxi','C2uGC2nOzwq','Es11CMW','CMvNAxn0zxi','zcbIywnRz3i','C29Tzq','ifbYzxnZiem','q2XP','B3iGCgfZC3C','zgXLrgLZy28','zxrYEvrPBwu','C2vYDMvYidW','AfbqEeG','tK9erv9qqvq','CNvU','uxPAte4','veXey2K','igj1DcbNyxq','B25Jzq','qxv0Ae1Vzgu','mci+cJXKAwm','DgLTzwqGB3u','CNvUiIbTyw4','z2f0zxDHEva','A2v0','C2vYDMLJzq','CMvJB25Uzwm','yxbWBgLJyxq','mhWZ','C25HChnOB3q','D3nZoI8V','B2TLBG','AwrLBNrPDhK'];_0x5c01=function(){return _0xdc069a;};return _0x5c01();}async function pairGateway(_0x2ab292){const _0x329cf5={_0x3b684f:0x159,_0x255139:0x2bd,_0x18e7aa:0x3ad,_0x5d8bc1:0x4f2,_0x4fd7bd:0x3fc,_0xece64f:0x472,_0x34e465:0x159,_0x466952:0x156,_0x158b62:0x273,_0x21b77b:0x3a9,_0x70f500:0x252,_0x42292a:0x326,_0x8a9fcb:0x84,_0x54ee43:0x147,_0x15fdc1:0x5b7,_0x3c9fd2:0x586,_0x349caa:0x27a,_0x126477:0x5c3,_0x15c487:0x424,_0x47aba4:0x354,_0x45a876:0x409,_0x29ae3a:0x195,_0x3a1a7d:0x3da,_0x4de01f:0x159,_0x4e3002:0x583,_0x329f76:0x3ca,_0x4c2a1b:0x4a5,_0x1d8e50:0x2fa,_0x5a84f5:0x14a,_0x54b13e:0x2c8,_0x27c35b:0x352,_0x38691b:0x4f0,_0x3a3c18:0x472,_0xddf0:0x516,_0xb75d5e:0x3b8,_0x30838d:0x3fe,_0x4c17e2:0x5de,_0x4ccb26:0x582,_0x3603cf:0x267,_0x229a1d:0x3df,_0x26ad91:0x3ee,_0x4542c3:0x3a9,_0x22bacc:0x139,_0x44b8d2:0x326,_0x4f6608:0x4bf,_0x3fb19a:0x366,_0x9dd1cf:0x2b6,_0xfad1d7:0x372,_0x2751f6:0x16f,_0x3adde8:0x1a3,_0x23522a:0x29e,_0x441a1c:0x16a,_0x421f1b:0x2d0,_0x4002f1:0x380,_0x1ecd51:0x3ba,_0x1dfed0:0x273,_0x1e786a:0x1bf,_0x5c625e:0x108,_0xb46d8a:0x4d1,_0x398834:0x224,_0x1ea4b4:0x2d1,_0x110470:0x346,_0x163373:0x4b6,_0x34ae80:0x43f,_0x4582c2:0x411,_0x6ebbf9:0x33c,_0x5a347d:0x1db,_0x43b763:0x3d7,_0x356ef9:0x26a,_0x4b4117:0x3de,_0x2ef90e:0x5a8,_0x4b7950:0x4bf,_0x67d76a:0x412},_0x338dd7={_0x6d9cfa:0x1f0},_0x4cd4e1={'TXmXP':function(_0x29c127,_0x16dc5e){return _0x29c127===_0x16dc5e;},'VwjVD':_0xdf5030(0x3b9,0x35b)+'ed','oPFbK':function(_0xe85260,_0xd8a3e9){return _0xe85260(_0xd8a3e9);}},_0x38c766=normalizeHttpBase(_0x2ab292[_0xdf5030(_0x329cf5._0x3b684f,_0x329cf5._0x255139)+'l']),_0xaca511=readPairingConfig(),_0x52ead9=assessPairingCompatibility(_0xaca511,_0x38c766);if(_0x4cd4e1[_0xdf5030(_0x329cf5._0x18e7aa,0x537)](_0x52ead9,_0x407941(_0x329cf5._0x5d8bc1,_0x329cf5._0x4fd7bd)+_0x407941(_0x329cf5._0xece64f,0x508))&&_0xaca511){const _0x609753={};return _0x609753[_0xdf5030(_0x329cf5._0x34e465,_0x329cf5._0x466952)+'l']=_0xaca511[_0xdf5030(0x159,0x72)+'l'],_0x609753[_0xdf5030(0x226,0x2a6)+'d']=_0xaca511['gatewayI'+'d'],_0x609753['relaySec'+'ret']=_0xaca511[_0x407941(0x141,_0x329cf5._0x158b62)+'ret'],_0x609753[_0xdf5030(_0x329cf5._0x21b77b,0x4da)+_0x407941(_0x329cf5._0x70f500,_0x329cf5._0x42292a)]=_0x2ab292['displayN'+_0xdf5030(0x175,_0x329cf5._0x8a9fcb)],_0x609753[_0xdf5030(0x9b,-_0x329cf5._0x54ee43)+_0x407941(_0x329cf5._0x15fdc1,_0x329cf5._0x3c9fd2)]=_0x2ab292[_0x407941(_0x329cf5._0x349caa,0x24c)+_0xdf5030(0x3d5,0x420)],_0x609753[_0x407941(0x51d,0x57e)+_0x407941(0x5ba,_0x329cf5._0x126477)]=_0x2ab292[_0x407941(0x485,0x57e)+_0x407941(_0x329cf5._0x15c487,_0x329cf5._0x126477)],refreshAccessCode(_0x609753);}if(_0x52ead9===_0xdf5030(_0x329cf5._0x47aba4,_0x329cf5._0x45a876)+_0xdf5030(0x25b,_0x329cf5._0x29ae3a))throw new Error('This\x20bri'+'dge\x20is\x20a'+_0x407941(0x179,0x22a)+_0x407941(_0x329cf5._0x3a1a7d,0x2a2)+_0x407941(0x1de,0x2f2)+_0xaca511?.[_0xdf5030(_0x329cf5._0x4de01f,0x315)+'l']+(_0x407941(_0x329cf5._0x4e3002,_0x329cf5._0x329f76)+_0x407941(0x33b,0x453)+'eset\x22\x20be'+_0x407941(_0x329cf5._0x4c2a1b,0x425)+_0xdf5030(_0x329cf5._0x1d8e50,_0x329cf5._0x5a84f5)+_0x407941(_0x329cf5._0x54b13e,_0x329cf5._0x27c35b)+_0x407941(0x3bf,_0x329cf5._0x38691b)+_0xdf5030(_0x329cf5._0x3a3c18,_0x329cf5._0xddf0)));const _0x2ea6e1={};_0x2ea6e1[_0x407941(0x567,_0x329cf5._0xb75d5e)+_0x407941(_0x329cf5._0x30838d,0x540)]='applicat'+_0x407941(0x4e5,_0x329cf5._0x4c17e2),_0x2ea6e1['accept']=_0x407941(0x43e,_0x329cf5._0x4ccb26)+'ion/json';const _0x991a82=await fetch(_0x38c766+(_0xdf5030(_0x329cf5._0x3603cf,0x38f)+_0xdf5030(0x39e,_0x329cf5._0x229a1d)+'r'),{'method':_0xdf5030(_0x329cf5._0x26ad91,0x3e6),'headers':_0x2ea6e1,'body':JSON[_0x407941(0x42e,0x5b5)+'y']({'displayName':_0x2ab292[_0xdf5030(_0x329cf5._0x4542c3,0x479)+_0x407941(_0x329cf5._0x22bacc,_0x329cf5._0x44b8d2)]?.[_0x407941(0x566,_0x329cf5._0x4f6608)]()||null})});if(!_0x991a82['ok'])throw new Error('Pair\x20reg'+_0x407941(_0x329cf5._0x3fb19a,0x319)+_0xdf5030(_0x329cf5._0x9dd1cf,0x3a5)+_0x991a82[_0x407941(0x1f3,_0x329cf5._0xfad1d7)]+_0xdf5030(_0x329cf5._0x2751f6,_0x329cf5._0x3adde8)+await _0x991a82[_0x407941(0x1cb,0x310)]());const _0x9951de=await _0x991a82[_0xdf5030(_0x329cf5._0x23522a,_0x329cf5._0x441a1c)]();function _0xdf5030(_0x4f4361,_0x187d22){return _0x9ec63e(_0x4f4361-0x3f,_0x187d22);}const _0x178833=new Date()['toISOStr'+_0x407941(_0x329cf5._0x421f1b,_0x329cf5._0x4002f1)]();function _0x407941(_0x14058d,_0xf2567f){return _0x9ec63e(_0xf2567f-_0x338dd7._0x6d9cfa,_0x14058d);}const _0x5d0d59={'serverUrl':_0x38c766,'gatewayId':_0x9951de[_0xdf5030(0x226,0x23f)+'d'],'relaySecret':_0x9951de[_0x407941(_0x329cf5._0x1ecd51,_0x329cf5._0x1dfed0)+_0xdf5030(_0x329cf5._0x1e786a,_0x329cf5._0x5c625e)],'relayUrl':_0x9951de[_0x407941(0x3b7,_0x329cf5._0xb46d8a)],'instanceId':_0xaca511?.[_0xdf5030(_0x329cf5._0x398834,_0x329cf5._0x1ea4b4)+'Id']??_0xdf5030(0x138,0xa1)+_0x9951de[_0x407941(0x3a1,0x3d7)+'d'][_0x407941(0x2bf,_0x329cf5._0x110470)](-0xa),'displayName':_0x9951de['displayN'+_0x407941(_0x329cf5._0x163373,0x326)],'createdAt':_0x178833,'updatedAt':_0x178833};return writePairingConfig(_0x5d0d59),{'config':_0x5d0d59,'accessCode':_0x9951de['accessCo'+'de'],'accessCodeExpiresAt':_0x9951de['accessCo'+'deExpire'+_0x407941(0x630,_0x329cf5._0x34ae80)],'action':_0x4cd4e1[_0x407941(_0x329cf5._0x4582c2,_0x329cf5._0x6ebbf9)],'qrPayload':_0x4cd4e1[_0x407941(0x3c8,0x3d8)](buildPairingQrPayload,{'server':_0x38c766,'gatewayId':_0x9951de[_0x407941(_0x329cf5._0x5a347d,_0x329cf5._0x43b763)+'d'],'accessCode':_0x9951de[_0x407941(0xa4,_0x329cf5._0x356ef9)+'de'],'displayName':_0x9951de[_0x407941(0x62e,0x55a)+_0x407941(0x4b9,0x326)],'token':_0x2ab292[_0x407941(0x19d,0x24c)+_0x407941(_0x329cf5._0x4b4117,0x586)]?.[_0x407941(_0x329cf5._0x2ef90e,_0x329cf5._0x4b7950)]()||null,'password':_0x2ab292[_0xdf5030(0x3cd,0x407)+_0xdf5030(_0x329cf5._0x67d76a,0x430)]?.[_0x407941(0x32f,0x4bf)]()||null})};}async function refreshAccessCode(_0xc5aa8f){const _0x58021a={_0x1bc252:0x3cc,_0x3bf7cd:0x431,_0x4180db:0x148,_0x3dfdae:0x7a,_0x4eda33:0x328,_0x2a4c96:0x2d4,_0x160486:0x3f2,_0x4bd5f1:0x50,_0x1aa249:0x17e,_0x27d909:0x4c3,_0x583896:0x15a,_0x60d0f5:0x31,_0x1f568e:0x16,_0x3df61e:0x175,_0x365a47:0x5d1,_0x2068d2:0x504,_0x332320:0x584,_0x4a37a8:0x228,_0x405771:0x25f,_0x4ac4c3:0x2ef,_0x559837:0x6a1,_0x4e9328:0x646,_0x3986e4:0x652,_0x48c688:0x5ec,_0x912df5:0x14a,_0x3bf106:0x40c,_0x56d3e1:0xf5,_0x5964d2:0x81,_0x52da8b:0x5bd,_0x3d6d33:0x41f,_0x48dd8c:0x7b,_0x5eda27:0x10c,_0x24e46d:0x7d,_0x14c01f:0xe7,_0x51c19c:0x1a,_0x5349a7:0x508,_0x26dfa8:0x1e5,_0x5b48bf:0x51,_0x10a97b:0x356,_0x415188:0x170,_0x37a78f:0x3b2,_0x5cdd1a:0x398,_0x120d10:0x52b,_0x4b38a6:0x4fc,_0xa8a67:0x30c,_0x437298:0x3bf,_0x1817c7:0x4f9,_0x57f6f8:0x108,_0x2cf43f:0x5ab,_0x5cdda2:0x812,_0xb595c6:0x94},_0xdcd2ab={'SnHJE':_0x1067d4(_0x58021a._0x1bc252,_0x58021a._0x3bf7cd)+'config\x20n'+'ot\x20found'+_0x1a01ac(_0x58021a._0x4180db,_0x58021a._0x3dfdae)+_0x1067d4(_0x58021a._0x4eda33,_0x58021a._0x2a4c96)+'.','Thiij':function(_0x196a83,_0x351d95,_0x20acea){return _0x196a83(_0x351d95,_0x20acea);},'zLJwf':_0x1a01ac(0x245,_0x58021a._0x160486),'HDCCH':_0x1067d4(0x66e,0x578)+_0x1a01ac(0x284,0x46a),'RhaTX':function(_0x516970,_0x21d478){return _0x516970(_0x21d478);},'qkbcq':_0x1a01ac(0x3d,0x14c)+'d'},_0x3e67ab=readPairingConfig(),_0x57e023=normalizeHttpBase(_0xc5aa8f?.[_0x1a01ac(-0x50,-0x206)+'l']??_0x3e67ab?.[_0x1a01ac(-_0x58021a._0x4bd5f1,_0x58021a._0x1aa249)+'l']??''),_0x562676=_0xc5aa8f?.[_0x1067d4(0x4c3,0x3c1)+'d']??_0x3e67ab?.[_0x1067d4(_0x58021a._0x27d909,0x583)+'d']??'',_0x10e22d=_0xc5aa8f?.[_0x1067d4(0x35f,_0x58021a._0x583896)+'ret']??_0x3e67ab?.[_0x1a01ac(-0xe7,-_0x58021a._0x60d0f5)+_0x1a01ac(_0x58021a._0x1f568e,_0x58021a._0x3df61e)]??'';if(!_0x57e023||!_0x562676||!_0x10e22d)throw new Error(_0xdcd2ab[_0x1067d4(0x5fb,0x407)]);const _0x187edf=await _0xdcd2ab[_0x1067d4(0x516,_0x58021a._0x365a47)](fetch,_0x57e023+(_0x1067d4(_0x58021a._0x2068d2,0x3b0)+'/access-'+'code'),{'method':_0xdcd2ab[_0x1067d4(_0x58021a._0x332320,0x404)],'headers':{'content-type':_0xdcd2ab['HDCCH'],'accept':_0x1a01ac(_0x58021a._0x4a37a8,_0x58021a._0x405771)+_0x1a01ac(0x284,_0x58021a._0x4ac4c3)},'body':JSON[_0x1067d4(_0x58021a._0x559837,0x875)+'y']({'gatewayId':_0x562676,'relaySecret':_0x10e22d,'displayName':_0xc5aa8f?.[_0x1067d4(_0x58021a._0x4e9328,_0x58021a._0x3986e4)+'ame']?.[_0x1a01ac(0x165,0x6e)]()||void 0x0})});function _0x1a01ac(_0x2bcc63,_0x33a3b0){return _0x9ec63e(_0x2bcc63- -0x16a,_0x33a3b0);}if(!_0x187edf['ok'])throw new Error('Access\x20c'+_0x1067d4(0x69b,0x608)+_0x1067d4(_0x58021a._0x48c688,0x5da)+_0x1a01ac(0x12d,_0x58021a._0x912df5)+_0x187edf['status']+_0x1067d4(_0x58021a._0x3bf106,0x5d8)+await _0x187edf[_0x1a01ac(-0x4a,0x132)]());const _0xdac26f=await _0x187edf[_0x1a01ac(_0x58021a._0x56d3e1,-_0x58021a._0x5964d2)]();function _0x1067d4(_0x1bce24,_0x11ef2f){return _0x9ec63e(_0x1bce24-0x2dc,_0x11ef2f);}const _0x55255b={'serverUrl':_0x57e023,'gatewayId':_0xdac26f[_0x1a01ac(0x7d,0xff)+'d'],'relaySecret':_0x10e22d,'relayUrl':_0xdac26f[_0x1067d4(_0x58021a._0x52da8b,_0x58021a._0x3d6d33)],'instanceId':_0x3e67ab?.[_0x1a01ac(_0x58021a._0x48dd8c,_0x58021a._0x5eda27)+'Id']??_0x1a01ac(-0x71,-0x264)+_0xdac26f[_0x1a01ac(_0x58021a._0x24e46d,-0x43)+'d']['slice'](-0xa),'displayName':_0xdac26f['displayN'+_0x1a01ac(-0x34,_0x58021a._0x14c01f)],'createdAt':_0x3e67ab?.[_0x1a01ac(-_0x58021a._0x51c19c,-0x159)+'t']??new Date()[_0x1067d4(0x68a,_0x58021a._0x5349a7)+_0x1a01ac(0x26,0x10a)](),'updatedAt':new Date()[_0x1067d4(0x68a,0x81b)+_0x1067d4(0x46c,0x410)]()};return _0xdcd2ab[_0x1a01ac(_0x58021a._0x26dfa8,_0x58021a._0x5b48bf)](writePairingConfig,_0x55255b),{'config':_0x55255b,'accessCode':_0xdac26f[_0x1a01ac(-0xf0,-0x3c)+'de'],'accessCodeExpiresAt':_0xdac26f[_0x1067d4(_0x58021a._0x10a97b,_0x58021a._0x415188)+_0x1067d4(_0x58021a._0x37a78f,_0x58021a._0x5cdd1a)+_0x1067d4(_0x58021a._0x120d10,_0x58021a._0x4b38a6)],'action':_0xdcd2ab['qkbcq'],'qrPayload':buildPairingQrPayload({'server':_0x57e023,'gatewayId':_0xdac26f['gatewayI'+'d'],'accessCode':_0xdac26f[_0x1067d4(_0x58021a._0x10a97b,_0x58021a._0xa8a67)+'de'],'displayName':_0xdac26f[_0x1067d4(0x646,0x5de)+_0x1067d4(0x412,_0x58021a._0x437298)],'token':_0xc5aa8f?.[_0x1067d4(0x338,_0x58021a._0x1817c7)+_0x1a01ac(0x22c,_0x58021a._0x57f6f8)]?.[_0x1067d4(_0x58021a._0x2cf43f,0x478)]()||null,'password':_0xc5aa8f?.[_0x1067d4(0x66a,_0x58021a._0x5cdda2)+_0x1a01ac(0x269,_0x58021a._0xb595c6)]?.[_0x1067d4(_0x58021a._0x2cf43f,_0x58021a._0x48c688)]()||null})};}function normalizeHttpBase(_0x257354){const _0x3221e2={_0x268eb7:0x3e1,_0x157511:0x525,_0x2e2c53:0x66d,_0x353b3a:0x53b,_0xa12511:0x19c,_0x5c948e:0x2e6,_0x514aa2:0x351,_0x37252f:0x46e,_0x3cb2b1:0x4a7,_0x535bd0:0xb0,_0xdcdff4:0xe7,_0x4228fd:0x3f1},_0x263c39={_0x4441eb:0xb8},_0x38327f={};_0x38327f[_0x4dd2f3(0x329,0x4b3)]=_0x4dd2f3(0x2a,0x1af),_0x38327f[_0x2b5443(-0x5,0x12c)]=_0x4dd2f3(0x4bf,0x4a7);const _0x4f475b=_0x38327f;function _0x2b5443(_0x2a744f,_0x1bbcf9){return _0x431448(_0x2a744f,_0x1bbcf9- -0x19d);}const _0x325462=_0x257354[_0x4dd2f3(0x454,_0x3221e2._0x268eb7)]();if(!_0x325462)return'';if(_0x325462[_0x4dd2f3(_0x3221e2._0x157511,0x53b)+'th']('http://')||_0x325462[_0x4dd2f3(_0x3221e2._0x2e2c53,_0x3221e2._0x353b3a)+'th'](_0x2b5443(0x1f,0xfc)))return _0x325462[_0x2b5443(0x195,_0x3221e2._0xa12511)](/\/+$/,'');if(_0x325462[_0x2b5443(0x441,0x2e6)+'th'](_0x4dd2f3(0x32f,0x1af)))return(_0x4dd2f3(0x5bc,0x457)+_0x325462['slice'](_0x4f475b['CLBct']['length']))[_0x2b5443(0x123,_0x3221e2._0xa12511)](/\/+$/,'');function _0x4dd2f3(_0xb7641e,_0x2f0826){return _0x431448(_0xb7641e,_0x2f0826-_0x263c39._0x4441eb);}if(_0x325462[_0x2b5443(0x29c,_0x3221e2._0x5c948e)+'th'](_0x4f475b['sGNCm']))return(_0x4dd2f3(0x271,_0x3221e2._0x514aa2)+_0x325462['slice'](_0x4dd2f3(_0x3221e2._0x37252f,_0x3221e2._0x3cb2b1)[_0x2b5443(-_0x3221e2._0x535bd0,_0x3221e2._0xdcdff4)]))['replace'](/\/+$/,'');return(_0x4dd2f3(0x29d,0x351)+_0x325462)[_0x4dd2f3(0x443,_0x3221e2._0x4228fd)](/\/+$/,'');}function assessPairingCompatibility(_0x47e66c,_0x2fecf8){const _0x1c8939={_0x18aa37:0x512,_0x586136:0x244,_0x2c107c:0x3b7,_0x5bef56:0x173,_0x572e8d:0x2e6,_0x56ea0b:0x5fb},_0xecb183={_0x327e5c:0x80},_0x53bf8a={_0x2f0090:0x28c};if(!_0x47e66c)return _0xc4a75(_0x1c8939._0x18aa37,0x454)+_0xc4a75(_0x1c8939._0x586136,_0x1c8939._0x2c107c);function _0xa1f17f(_0x2ca411,_0x3b6871){return _0x431448(_0x2ca411,_0x3b6871-_0x53bf8a._0x2f0090);}if(_0x47e66c['serverUr'+'l']===_0x2fecf8)return _0xc4a75(_0x1c8939._0x5bef56,_0x1c8939._0x572e8d)+'existing';function _0xc4a75(_0x383ec9,_0x39e4ad){return _0x431448(_0x383ec9,_0x39e4ad-_0xecb183._0x327e5c);}return _0xa1f17f(0x4c8,_0x1c8939._0x56ea0b)+'ismatch';}import{execFileSync,spawn}from'child_process';import{chmodSync,closeSync,existsSync as _0x146d3f,mkdirSync as _0x282046,openSync,readFileSync as _0x1cabb2,realpathSync,rmSync as _0x9ac38d,writeFileSync as _0x161090}from'fs';import{homedir as _0x4d0c40}from'os';import{dirname,join as _0x2e2b7f}from'path';var SERVICE_LABEL=_0x431448(0x10a,0x11b)+_0x431448(0x30e,0x264)+_0x9ec63e(0xa8,-0xfb),SYSTEMD_UNIT_NAME=SERVICE_LABEL+'.service',WINDOWS_RUN_KEY=_0x9ec63e(0x273,0x3c6)+'ridgeCli',SERVICE_DIR=_0x2e2b7f(_0x4d0c40(),_0x431448(0x440,0x24f)),LOG_DIR=_0x2e2b7f(SERVICE_DIR,_0x9ec63e(0x229,0x386)),SERVICE_STATE_PATH=_0x2e2b7f(SERVICE_DIR,_0x431448(0x19,0xc0)+_0x9ec63e(0x326,0x3c1)+_0x9ec63e(0xac,0x2)),SERVICE_LAUNCHER_PATH=_0x2e2b7f(SERVICE_DIR,_0x431448(0x4,0xc0)+_0x431448(0xfc,0xac)+_0x431448(0x4ae,0x496)+'sh'),SERVICE_LOG_PATH=_0x2e2b7f(LOG_DIR,_0x431448(0xef,0x146)+_0x9ec63e(0x13e,0x22)),SERVICE_ERROR_LOG_PATH=_0x2e2b7f(LOG_DIR,_0x431448(0x1c2,0x146)+_0x9ec63e(0x2ff,0x406)+_0x431448(0x373,0x348)),MACOS_PLIST_PATH=_0x2e2b7f(_0x4d0c40(),_0x431448(0x4b,0xa1),_0x431448(0x1ca,0x281)+_0x9ec63e(0x23d,0x2d1),SERVICE_LABEL+_0x431448(0x17f,0x1fa)),LINUX_SERVICE_PATH=_0x2e2b7f(_0x4d0c40(),'.config',_0x431448(0x4c1,0x46e),_0x431448(0x2f8,0x42a),SYSTEMD_UNIT_NAME);function getServiceProgramArgs(_0x5d2f43={},_0x41a0a2=process['platform']){const _0x1aa96e={_0x360ea0:0x4cf,_0x20740c:0x581,_0x44df73:0x4a8,_0x335b4a:0x244,_0x48bc34:0x25c,_0x4b87a5:0x1a0,_0x4eee02:0x37f,_0x33772b:0x121,_0xd233cd:0x2b7,_0x20b7d9:0x384,_0x567999:0x486,_0x1d9ba4:0x2d6,_0x27428e:0x6cc,_0x1d8b2d:0x5af,_0x516b37:0x459,_0x512b01:0x3aa,_0x373c7d:0x3e9,_0x2f7cd8:0x5c9,_0x53e152:0x1bc,_0x4b0f55:0x37d,_0x5c3dc1:0x486,_0x3743b7:0x435,_0x940508:0x49b,_0x5c291e:0x44b},_0x1a475b={_0x43d794:0x177},_0x2ea13d={_0x346a5c:0x56},_0xb3e127={};function _0x1826b8(_0x410b43,_0x417a45){return _0x431448(_0x410b43,_0x417a45-_0x2ea13d._0x346a5c);}_0xb3e127[_0xf7c552(_0x1aa96e._0x360ea0,0x5eb)]=function(_0x110d6b,_0x831485){return _0x110d6b!==_0x831485;},_0xb3e127[_0x1826b8(_0x1aa96e._0x20740c,_0x1aa96e._0x44df73)]=_0x1826b8(0x2cd,0x21d);const _0x2dcee7=_0xb3e127;function _0xf7c552(_0x17703d,_0x2f3533){return _0x431448(_0x17703d,_0x2f3533-_0x1a475b._0x43d794);}const _0x26b67c=_0x5d2f43[_0x1826b8(_0x1aa96e._0x335b4a,_0x1aa96e._0x48bc34)]?.[_0x1826b8(_0x1aa96e._0x4b87a5,_0x1aa96e._0x4eee02)]()||process[_0x1826b8(_0x1aa96e._0x33772b,_0x1aa96e._0xd233cd)],_0xd819e6=resolveScriptPath(_0x5d2f43[_0x1826b8(_0x1aa96e._0x20b7d9,_0x1aa96e._0x567999)+'th']);if(!_0xd819e6)throw new Error(_0xf7c552(0x199,0x238)+'o\x20resolv'+_0x1826b8(0x591,0x4b6)+'ript\x20pat'+_0xf7c552(0x366,_0x1aa96e._0x1d9ba4)+_0xf7c552(_0x1aa96e._0x27428e,_0x1aa96e._0x1d8b2d)+_0xf7c552(_0x1aa96e._0x516b37,_0x1aa96e._0x512b01)+_0xf7c552(0x373,0x3a1));if(_0x2dcee7[_0x1826b8(_0x1aa96e._0x373c7d,0x4ca)](_0x41a0a2,_0x2dcee7[_0xf7c552(0x601,_0x1aa96e._0x2f7cd8)])){const _0x54017b={};_0x54017b[_0xf7c552(_0x1aa96e._0x53e152,_0x1aa96e._0x4b0f55)]=_0x26b67c,_0x54017b[_0x1826b8(_0x1aa96e._0x5c3dc1,0x486)+'th']=_0xd819e6,_0x54017b['pathEnv']=process.env.PATH??'';const _0x43200f=writeServiceLauncher(_0x54017b);return ensureLaunchScriptExecutable(_0x43200f,_0x41a0a2),[_0x43200f];}return[_0x26b67c,_0xd819e6,_0x1826b8(0x4da,_0x1aa96e._0x3743b7),_0xf7c552(_0x1aa96e._0x940508,_0x1aa96e._0x5c291e)+'e'];}function getServiceStatus(){const _0x3e57af={_0x37c662:0x12b,_0xcece39:0x36,_0x427a54:0x15c,_0x4c1404:0x19e,_0x232a7f:0xc0,_0x2c6063:0x178,_0x36e8b2:0x17f,_0x43557f:0x29,_0x2594cc:0x23,_0x32874b:0x191,_0x4407ab:0x30a,_0x9f8c76:0x150,_0x3625e4:0x75,_0x440cfa:0x37,_0x4caa76:0x26d,_0x25397b:0x83,_0x18771a:0x8e,_0x76189d:0x143,_0x329f83:0x250,_0x13a284:0x26d,_0x3505d1:0xf6,_0x1a6723:0x127,_0x19f653:0x66,_0x7f1897:0x25c,_0x2a45ee:0x17,_0x42b19a:0xed,_0x486a25:0x3cb,_0x4bd96b:0xfd,_0x3d1dd8:0x1b4,_0x4a5c31:0x32,_0x12d4b8:0x469,_0x339546:0x32e,_0x21b843:0xbc,_0x51f519:0x1f9,_0x40817f:0x9f,_0x46b055:0x309},_0x31bf2b={_0x1a1d63:0x212};function _0x47baef(_0x1fabc0,_0x4fc056){return _0x9ec63e(_0x4fc056- -0x100,_0x1fabc0);}const _0x28e7b0={'Bnxdd':function(_0x525635){return _0x525635();},'PdXrY':function(_0x1058e1,_0x3b4776){return _0x1058e1(_0x3b4776);},'Feyvn':_0x59b85e(0x5f,_0x3e57af._0x37c662)+_0x59b85e(0x1be,0x241),'tofCl':'systemct'+'l','KrtAr':'--user','SJINk':'reg'};ensureServiceDirs();const _0x5691c5=_0x28e7b0[_0x47baef(-_0x3e57af._0xcece39,0x119)](readServiceState)?.['pid']??null,_0x186601={'installed':![],'running':_0x5691c5!=null&&_0x28e7b0[_0x47baef(0x10a,_0x3e57af._0x427a54)](isPidRunning,_0x5691c5),'method':detectServiceMethod(),'servicePath':getServicePath(),'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'pid':_0x5691c5};function _0x59b85e(_0x386f01,_0x5501d6){return _0x9ec63e(_0x386f01- -_0x31bf2b._0x1a1d63,_0x5501d6);}_0x186601[_0x47baef(-_0x3e57af._0x4c1404,-_0x3e57af._0x232a7f)]!=null&&!_0x186601[_0x59b85e(-_0x3e57af._0x2c6063,-_0x3e57af._0x36e8b2)]&&(clearServiceState(_0x186601[_0x59b85e(-0x1d2,_0x3e57af._0x43557f)]),_0x186601[_0x47baef(_0x3e57af._0x2594cc,-0xc0)]=null);switch(_0x186601[_0x47baef(_0x3e57af._0x32874b,_0x3e57af._0x4407ab)]){case _0x47baef(-0x1eb,-_0x3e57af._0x2594cc)+_0x59b85e(_0x3e57af._0x9f8c76,-_0x3e57af._0x3625e4):_0x186601[_0x59b85e(0x15b,-_0x3e57af._0x440cfa)+'d']=_0x28e7b0[_0x59b85e(0x4a,-0x14e)](_0x146d3f,MACOS_PLIST_PATH);_0x186601[_0x47baef(0x288,_0x3e57af._0x4caa76)+'d']&&(_0x186601[_0x47baef(-0x72,-0x66)]=commandSucceeds(_0x47baef(-_0x3e57af._0x25397b,_0x3e57af._0x18771a)+'l',[_0x47baef(_0x3e57af._0x76189d,-0x26),SERVICE_LABEL])||_0x186601[_0x59b85e(-0x178,-_0x3e57af._0x329f83)]);return _0x186601;case _0x28e7b0['Feyvn']:_0x186601[_0x47baef(0x122,0x26d)+'d']=_0x146d3f(LINUX_SERVICE_PATH);_0x186601[_0x47baef(0x1b9,_0x3e57af._0x13a284)+'d']&&(_0x186601[_0x47baef(-0x141,-0x66)]=commandSucceeds(_0x28e7b0['tofCl'],[_0x28e7b0[_0x47baef(0x19d,_0x3e57af._0x3505d1)],'is-activ'+'e',_0x59b85e(0x219,0x3ea),SYSTEMD_UNIT_NAME])||_0x186601[_0x47baef(-_0x3e57af._0x1a6723,-_0x3e57af._0x19f653)]);return _0x186601;case _0x47baef(0x1df,_0x3e57af._0x7f1897)+_0x47baef(-0x175,_0x3e57af._0x2a45ee)+_0x59b85e(-_0x3e57af._0x42b19a,-0x258):_0x186601[_0x47baef(_0x3e57af._0x486a25,0x26d)+'d']=commandSucceeds(_0x28e7b0[_0x59b85e(0x59,-_0x3e57af._0x4bd96b)],[_0x59b85e(_0x3e57af._0x3d1dd8,-_0x3e57af._0x4a5c31),_0x47baef(_0x3e57af._0x12d4b8,_0x3e57af._0x339546)+_0x47baef(_0x3e57af._0x21b843,_0x3e57af._0x51f519)+_0x59b85e(0x7e,0x3f)+_0x59b85e(-_0x3e57af._0x40817f,-0x1ca)+_0x59b85e(-0x105,-_0x3e57af._0x46b055)+'ersion\x5cR'+'un','/v',WINDOWS_RUN_KEY]);return _0x186601;default:return _0x186601;}}function installService(_0x335d56={}){const _0x334ec3={_0x187042:0x108,_0x6d2487:0x198,_0xcc4948:0xdb,_0x435bb2:0x1bb,_0x386ecd:0x189,_0x356990:0x11a,_0x9c3f4f:0x1ae,_0x219c8d:0x20f,_0x4295a4:0x1ed,_0x26626f:0x29,_0xeb9639:0x2e4,_0x4ac066:0x28,_0x14e3a5:0xb0,_0x36d3cb:0x19f,_0x3ce1d6:0x7d,_0x114b14:0x1c,_0x540b44:0x13a,_0x3eb8a3:0x129,_0x3c289a:0x121,_0x1b23bb:0x57,_0x34852c:0x135,_0x483101:0x1c2,_0x1990d6:0xae,_0x1a35d0:0x128,_0x508019:0x14a,_0x582d4e:0x1b7},_0x2f6974={_0x55840a:0x278};function _0x54a6dc(_0x54ac67,_0x356888){return _0x431448(_0x356888,_0x54ac67- -0x2f0);}const _0x84f4ca={'xXsuf':_0x54a6dc(-_0x334ec3._0x187042,0xc8)+'l','hkKUr':_0x35e1eb(0x121,0x17),'UWBsz':function(_0x1f95a5,_0x45791c){return _0x1f95a5(_0x45791c);},'pvrub':function(_0x5f3573,_0x99b1fb,_0x4538a6,_0x25078e){return _0x5f3573(_0x99b1fb,_0x4538a6,_0x25078e);},'WoVzi':_0x54a6dc(-0xd0,-0x1e8),'vrwUt':_0x35e1eb(-0x1ad,0x52),'kkFjx':_0x54a6dc(_0x334ec3._0x6d2487,0xad)+_0x35e1eb(_0x334ec3._0xcc4948,_0x334ec3._0x435bb2)+'crosoft\x5c'+_0x35e1eb(-0xab,0x102)+_0x54a6dc(-_0x334ec3._0x386ecd,-0x300)+'ersion\x5cR'+'un'};function _0x35e1eb(_0xc9fee,_0x2f00da){return _0x431448(_0x2f00da,_0xc9fee- -_0x2f6974._0x55840a);}ensureServiceDirs();const _0x2ae629=getServiceProgramArgs(_0x335d56);switch(process[_0x54a6dc(0x13f,-0xac)]){case _0x35e1eb(0xa9,-0xd6):_0x161090(MACOS_PLIST_PATH,buildMacosPlist(_0x2ae629,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x54a6dc(-0xf0,-0x34)),execIgnoreFailure(_0x84f4ca['xXsuf'],[_0x35e1eb(_0x334ec3._0x356990,0x173),'-w',MACOS_PLIST_PATH]);const _0x14ca96={};_0x14ca96[_0x35e1eb(0x220,_0x334ec3._0x9c3f4f)]=_0x84f4ca[_0x54a6dc(-0x1c1,-0x137)],execFileSync('launchct'+'l',[_0x54a6dc(-0x221,-_0x334ec3._0x219c8d),'-w',MACOS_PLIST_PATH],_0x14ca96);break;case _0x54a6dc(0x160,0x1a7):const _0x5096fd={};_0x5096fd[_0x54a6dc(-_0x334ec3._0x4295a4,-0xbb)+'e']=!![],_0x282046(_0x84f4ca[_0x35e1eb(0x42,_0x334ec3._0x435bb2)](dirname,LINUX_SERVICE_PATH),_0x5096fd),_0x161090(LINUX_SERVICE_PATH,buildLinuxSystemdUnit(_0x2ae629,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x54a6dc(-0xf0,_0x334ec3._0x26626f));const _0x580989={};_0x580989[_0x35e1eb(0x220,0x15f)]='ignore',_0x84f4ca['pvrub'](execFileSync,'systemct'+'l',[_0x35e1eb(-0x58,-0x3b),_0x35e1eb(0x159,_0x334ec3._0xeb9639)+'eload'],_0x580989);const _0x43880a={};_0x43880a['stdio']='ignore',_0x84f4ca[_0x54a6dc(0xa6,_0x334ec3._0x4ac066)](execFileSync,'systemct'+'l',[_0x84f4ca[_0x54a6dc(-_0x334ec3._0x14e3a5,-_0x334ec3._0x36d3cb)],_0x35e1eb(-_0x334ec3._0x3ce1d6,-_0x334ec3._0x114b14),_0x84f4ca[_0x54a6dc(-0x5f,-_0x334ec3._0x540b44)],SYSTEMD_UNIT_NAME],_0x43880a);break;case _0x54a6dc(-_0x334ec3._0x3eb8a3,0xdb):stopRunningProcess();const _0x498f2d={};_0x498f2d['stdio']=_0x35e1eb(_0x334ec3._0x3c289a,0x137),execFileSync(_0x35e1eb(-_0x334ec3._0x1b23bb,-_0x334ec3._0x34852c),[_0x35e1eb(0x111,0x6d),_0x84f4ca[_0x54a6dc(0x73,0x143)],'/v',WINDOWS_RUN_KEY,'/t',_0x35e1eb(0x16,-0x189),'/d',buildWindowsRunCommand(_0x2ae629),'/f'],_0x498f2d),startDetachedWindowsService(_0x2ae629);break;default:throw new Error('Unsuppor'+'ted\x20plat'+'form\x20for'+'\x20CLI\x20ser'+_0x54a6dc(0xb3,_0x334ec3._0x483101)+_0x35e1eb(-_0x334ec3._0x1990d6,-_0x334ec3._0x1a35d0)+_0x54a6dc(0x142,_0x334ec3._0x508019)+process[_0x35e1eb(_0x334ec3._0x582d4e,0x290)]);}return getServiceStatus();}function restartService(_0x432a81={}){const _0x185233={_0x49ca46:0x23f,_0x258ada:0x2fc,_0x16c0e6:0x3f8,_0x19aa28:0xbe,_0x452b94:0x1de,_0x14cd6e:0xd0,_0x24dcb0:0x4b,_0x959b56:0x1b2,_0x48fe92:0x141,_0x249b7c:0x294,_0x1d5fb3:0x3e9,_0x3e383a:0x43,_0x28df77:0x182,_0x17510b:0x86,_0x2f61e5:0x34,_0x528133:0x15a,_0x5bc31e:0x458,_0xc13913:0x88,_0x55f855:0x1c1,_0x3b4af5:0x1ea,_0x2a78cd:0x4e6,_0x545e26:0x2b1,_0x4bd515:0x4ef,_0x35083c:0x100,_0x22210a:0x4dc,_0x53fd49:0x31,_0x2afb61:0x148,_0x177e64:0x2c1,_0x145dd1:0x19e,_0x115093:0x4df,_0x3fcde2:0x18b,_0x5a01af:0xea,_0x136175:0x518,_0x5146b4:0x3a6,_0x3e0093:0x1ce,_0x580437:0x427,_0xd07e6f:0x486},_0xb8785a={_0x2c50fa:0xb1};function _0xd40e9e(_0xdddd35,_0x16f9dd){return _0x9ec63e(_0x16f9dd-_0xb8785a._0x2c50fa,_0xdddd35);}const _0x1cb92d={'RkFEl':function(_0x195b87,_0x1a2457){return _0x195b87(_0x1a2457);},'UQxmi':function(_0xbc8f22,_0x523dfb,_0x19ebe9,_0x412c9a){return _0xbc8f22(_0x523dfb,_0x19ebe9,_0x412c9a);},'CnPkg':_0xd40e9e(0x286,_0x185233._0x49ca46)+'l','IoZgq':_0x287183(0x148,_0x185233._0x258ada),'zwWZl':_0xd40e9e(_0x185233._0x16c0e6,0x4a7),'MuAfS':function(_0x4d8404,_0x2f1f9c,_0x1f8c75){return _0x4d8404(_0x2f1f9c,_0x1f8c75);},'IATCc':function(_0x3da5d8,_0x253b33,_0x2734f0,_0x46fe59){return _0x3da5d8(_0x253b33,_0x2734f0,_0x46fe59);},'hPPxH':_0x287183(-_0x185233._0x19aa28,-0x21c)+'l','naQet':_0xd40e9e(0x33e,0x278)};ensureServiceDirs();const _0xd777ce=getServiceProgramArgs(_0x432a81);function _0x287183(_0x734857,_0x272ef7){return _0x9ec63e(_0x734857- -0x1f7,_0x272ef7);}switch(process[_0x287183(_0x185233._0x452b94,0x3b0)]){case _0x287183(_0x185233._0x14cd6e,-_0x185233._0x24dcb0):if(!_0x146d3f(MACOS_PLIST_PATH))return _0x1cb92d[_0x287183(0x7d,_0x185233._0x959b56)](installService,_0x432a81);_0x1cb92d[_0x287183(-0x1b1,-0x6b)](_0x161090,MACOS_PLIST_PATH,buildMacosPlist(_0xd777ce,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),'utf8'),execIgnoreFailure(_0x1cb92d[_0x287183(0xe9,_0x185233._0x48fe92)],[_0xd40e9e(_0x185233._0x249b7c,_0x185233._0x1d5fb3),'-w',MACOS_PLIST_PATH]);const _0x2b2762={};_0x2b2762['stdio']=_0x1cb92d[_0xd40e9e(_0x185233._0x3e383a,0x112)],execFileSync('launchct'+'l',[_0x287183(-_0x185233._0x28df77,-_0x185233._0x17510b),'-w',MACOS_PLIST_PATH],_0x2b2762);break;case _0x1cb92d[_0x287183(0x1ea,0x21a)]:if(!_0x146d3f(LINUX_SERVICE_PATH))return installService(_0x432a81);const _0x4b49b8={};_0x4b49b8[_0xd40e9e(_0x185233._0x2f61e5,_0x185233._0x528133)+'e']=!![],_0x1cb92d[_0xd40e9e(0x5e6,_0x185233._0x5bc31e)](_0x282046,dirname(LINUX_SERVICE_PATH),_0x4b49b8),_0x161090(LINUX_SERVICE_PATH,buildLinuxSystemdUnit(_0xd777ce,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),'utf8'),_0x1cb92d[_0xd40e9e(_0x185233._0xc13913,_0x185233._0x55f855)](execFileSync,_0xd40e9e(0x128,_0x185233._0x3b4af5)+'l',['--user','daemon-r'+_0xd40e9e(0x4c8,_0x185233._0x2a78cd)],{'stdio':_0x1cb92d[_0xd40e9e(_0x185233._0x545e26,0x112)]});const _0x3ba9cb={};_0x3ba9cb[_0xd40e9e(0x5cd,_0x185233._0x4bd515)]=_0x287183(0x148,_0x185233._0x35083c),execFileSync(_0x1cb92d[_0xd40e9e(_0x185233._0x22210a,0x434)],[_0x287183(-_0x185233._0x53fd49,-0xca),_0xd40e9e(0x321,0x271),SYSTEMD_UNIT_NAME],_0x3ba9cb);break;case'win32':stopRunningProcess();const _0xcbb79b={};_0xcbb79b['stdio']=_0x287183(_0x185233._0x2afb61,_0x185233._0x177e64),execFileSync(_0x1cb92d[_0xd40e9e(0x324,_0x185233._0x145dd1)],['add',_0xd40e9e(0x52c,_0x185233._0x115093)+_0xd40e9e(0x31e,0x3aa)+_0xd40e9e(_0x185233._0x3fcde2,0x341)+'Windows\x5c'+_0x287183(-_0x185233._0x5a01af,-0x1f2)+_0xd40e9e(0x418,0x449)+'un','/v',WINDOWS_RUN_KEY,'/t','REG_SZ','/d',buildWindowsRunCommand(_0xd777ce),'/f'],_0xcbb79b),startDetachedWindowsService(_0xd777ce);break;default:throw new Error(_0xd40e9e(0x141,0x2fc)+_0xd40e9e(_0x185233._0x136175,_0x185233._0x5146b4)+_0xd40e9e(0x285,_0x185233._0x3e0093)+_0x287183(0x26,0x159)+'vice\x20res'+_0xd40e9e(0x3c4,_0x185233._0x580437)+process[_0xd40e9e(0x55c,_0x185233._0xd07e6f)]);}return getServiceStatus();}function uninstallService(){const _0x5300ce={_0x325bcc:0x7f0,_0x47a0b6:0x63f,_0x4a6d34:0x6d8,_0x468550:0x6b7,_0x515fa5:0x247,_0x4a85b2:0x104,_0x2308a6:0x18f,_0x59185d:0x63f,_0x11dd93:0x180,_0x128412:0x50f,_0x211bf0:0x322,_0x3943fe:0x368,_0x36ac00:0x4a8,_0x2e26ed:0x1ce,_0x4cfc74:0x717,_0x25ac94:0x1e,_0x122ebf:0x425,_0x2d8780:0x3b9,_0x327fcc:0x304,_0x4de8a6:0x285,_0x135ead:0x137,_0x31617b:0x2c4,_0x19588b:0x455},_0x2b5b7c={};_0x2b5b7c[_0x3f718c(_0x5300ce._0x325bcc,_0x5300ce._0x47a0b6)]=_0x3f718c(0x6a2,_0x5300ce._0x4a6d34);const _0x28a37d=_0x2b5b7c;stopRunningProcess();switch(process[_0x3f718c(0x88e,_0x5300ce._0x468550)]){case _0x479c27(_0x5300ce._0x515fa5,0x11e):execIgnoreFailure(_0x3f718c(0x674,0x470)+'l',[_0x479c27(_0x5300ce._0x4a85b2,_0x5300ce._0x2308a6),'-w',MACOS_PLIST_PATH]),rmIfExists(MACOS_PLIST_PATH);break;case _0x28a37d[_0x3f718c(0x618,_0x5300ce._0x59185d)]:_0x146d3f(LINUX_SERVICE_PATH)&&(execIgnoreFailure(_0x479c27(-_0x5300ce._0x11dd93,-0x70)+'l',['--user',_0x3f718c(_0x5300ce._0x128412,0x3dc),_0x479c27(-_0x5300ce._0x211bf0,-0x138),SYSTEMD_UNIT_NAME]),rmIfExists(LINUX_SERVICE_PATH),execIgnoreFailure('systemct'+'l',[_0x3f718c(_0x5300ce._0x3943fe,_0x5300ce._0x36ac00),_0x479c27(-0x1c,_0x5300ce._0x2e26ed)+_0x3f718c(0x7de,_0x5300ce._0x4cfc74)]));break;case'win32':execIgnoreFailure(_0x479c27(0x1cb,_0x5300ce._0x25ac94),[_0x3f718c(_0x5300ce._0x122ebf,_0x5300ce._0x2d8780),_0x479c27(_0x5300ce._0x327fcc,_0x5300ce._0x4de8a6)+'tware\x5cMi'+_0x479c27(_0x5300ce._0x135ead,0xe7)+_0x3f718c(_0x5300ce._0x31617b,_0x5300ce._0x19588b)+_0x3f718c(0x56a,0x3ef)+'ersion\x5cR'+'un','/v',WINDOWS_RUN_KEY,'/f']);break;default:break;}clearServiceState();function _0x479c27(_0x38d07d,_0x134c23){return _0x9ec63e(_0x134c23- -0x1a9,_0x38d07d);}function _0x3f718c(_0xde4046,_0x3f94dc){return _0x9ec63e(_0x3f94dc-0x2e2,_0xde4046);}return getServiceStatus();}function stopService(){const _0x1acc7e={_0x47554a:0x481,_0x19a98a:0x28f,_0x95fa89:0x77e,_0x8433e4:0x537,_0x376f84:0x131,_0x5dd431:0x7dc,_0x48240a:0xce,_0x462e50:0x516,_0x49b397:0x3cc},_0x18fadb={_0x5389a2:0x261},_0x51e8a9={'uDKDq':function(_0xbeeaff){return _0xbeeaff();}};function _0x51553f(_0x4cf718,_0x2f57dd){return _0x431448(_0x2f57dd,_0x4cf718-0x34f);}function _0x128751(_0x2c96a5,_0x1c23fc){return _0x431448(_0x2c96a5,_0x1c23fc- -_0x18fadb._0x5389a2);}_0x51e8a9[_0x51553f(_0x1acc7e._0x47554a,_0x1acc7e._0x19a98a)](stopRunningProcess);switch(process[_0x51553f(_0x1acc7e._0x95fa89,0x93d)]){case'darwin':_0x146d3f(MACOS_PLIST_PATH)&&execIgnoreFailure(_0x51553f(_0x1acc7e._0x8433e4,0x5ab)+'l',[_0x128751(0x30f,_0x1acc7e._0x376f84),MACOS_PLIST_PATH]);break;case _0x51553f(0x79f,_0x1acc7e._0x5dd431):_0x146d3f(LINUX_SERVICE_PATH)&&execIgnoreFailure(_0x128751(-0x121,-_0x1acc7e._0x48240a)+'l',['--user','stop',SYSTEMD_UNIT_NAME]);break;case _0x51553f(_0x1acc7e._0x462e50,_0x1acc7e._0x49b397):break;default:break;}return clearServiceState(),getServiceStatus();}function writeServiceState(_0x1325a3=process[_0x431448(0x141,0x9a)]){const _0x3dfeb3={_0x4e897d:0x166,_0x151dd5:0x1d6,_0x584084:0x143},_0x39064d={'whrqM':function(_0x4d65a3){return _0x4d65a3();},'MOMOY':function(_0x334a95,_0x54adae,_0x5b01a6,_0x5bd383){return _0x334a95(_0x54adae,_0x5b01a6,_0x5bd383);}};function _0x1d22f9(_0x2efd40,_0x3cf638){return _0x9ec63e(_0x3cf638- -0x2f6,_0x2efd40);}_0x39064d[_0x11f808(-0x43,0x123)](ensureServiceDirs);const _0xb999cd={'pid':_0x1325a3,'startedAt':new Date()['toISOStr'+_0x1d22f9(0x76,-_0x3dfeb3._0x4e897d)]()};function _0x11f808(_0x14d01d,_0x4d3631){return _0x9ec63e(_0x14d01d- -0x2cb,_0x4d3631);}_0x39064d[_0x1d22f9(_0x3dfeb3._0x151dd5,_0x3dfeb3._0x584084)](_0x161090,SERVICE_STATE_PATH,JSON[_0x11f808(0xfa,0x1c4)+'y'](_0xb999cd,null,0x2)+'\x0a','utf8');}function clearServiceState(_0x4ec039){const _0x3cd7d9={_0xeda674:0x25d},_0x4092f9={_0x56e938:0x300},_0x2178c8={'jgfen':function(_0x10d7e7,_0x1689d7){return _0x10d7e7(_0x1689d7);}};if(!_0x2178c8[_0x5f3e3c(-0x1ca,-_0x3cd7d9._0xeda674)](_0x146d3f,SERVICE_STATE_PATH))return;if(_0x4ec039!=null){const _0x2409b0=readServiceState();if(_0x2409b0&&_0x2409b0['pid']!==_0x4ec039)return;}function _0x5f3e3c(_0x5dea75,_0x4c9b0e){return _0x431448(_0x4c9b0e,_0x5dea75- -_0x4092f9._0x56e938);}rmIfExists(SERVICE_STATE_PATH);}function getServicePaths(){return{'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'servicePath':getServicePath()};}function buildMacosPlist(_0x34546d,_0x5474cc,_0x31f57a){const _0xe31bad={_0x12a055:0x45,_0x41591d:0x23a,_0xac6ec1:0xa1,_0x3bc216:0xac,_0x917718:0x369,_0x3eb9f7:0x1be,_0x44a6be:0x1dd,_0x2556cc:0xb2,_0x4011e2:0x10f,_0x1acaae:0x2e1,_0x652e:0x13d,_0x4317f4:0xb8,_0xfa76ad:0xf8,_0x11f621:0xbb,_0x338adb:0x21,_0x5a21df:0x270,_0x3126b7:0x2a6,_0x1cc122:0x260,_0x1b38c3:0x188,_0x2da914:0x26f,_0x32f850:0x375,_0x473291:0x25b,_0x29263c:0x4c7,_0x54bfbe:0x27,_0x5719ed:0x438,_0x23da86:0x366,_0x2692b3:0x14,_0x5a2288:0x8c,_0x10e4dc:0x642,_0x315173:0x65,_0x2494ce:0x139,_0x5c4b8b:0x4a3,_0x4b9956:0x360,_0x52282f:0x223,_0x447ac2:0x251,_0x4406a1:0x2d,_0x12b354:0xe9,_0x43cae2:0xce,_0x92addb:0x1a5,_0x52c158:0x11b,_0x16ee7b:0xa6,_0x425d87:0x12,_0x47349b:0x132,_0x4b2edb:0x1a,_0x3f4b3e:0xa6},_0x19ed4f={_0x4b0cb1:0x203};function _0x228651(_0x2be56b,_0x1c1bb8){return _0x9ec63e(_0x1c1bb8-0x8f,_0x2be56b);}const _0x21cd99=_0x34546d[_0x228651(_0xe31bad._0x12a055,_0xe31bad._0x41591d)](_0x247710=>_0x228651(0x27c,0x3e7)+'ing>'+escapeXml(_0x247710)+('</string'+'>'))[_0x367df1(_0xe31bad._0xac6ec1,-_0xe31bad._0x3bc216)]('\x0a');function _0x367df1(_0x2b83db,_0x365c3a){return _0x9ec63e(_0x365c3a- -_0x19ed4f._0x4b0cb1,_0x2b83db);}return'<?xml\x20ve'+_0x228651(_0xe31bad._0x917718,0x3d7)+_0x228651(_0xe31bad._0x3eb9f7,_0xe31bad._0x44a6be)+_0x228651(-_0xe31bad._0x2556cc,_0xe31bad._0x4011e2)+_0x367df1(_0xe31bad._0x1acaae,_0xe31bad._0x652e)+_0x367df1(_0xe31bad._0x4317f4,0x103)+'\x20plist\x20P'+_0x367df1(-_0xe31bad._0xfa76ad,_0xe31bad._0x11f621)+_0x367df1(-0xa7,-_0xe31bad._0x338adb)+_0x228651(0x1e9,_0xe31bad._0x5a21df)+'ST\x201.0//'+'EN\x22\x20\x22htt'+'p://www.'+'apple.co'+'m/DTDs/P'+_0x228651(0x588,0x44b)+'ist-1.0.'+'dtd\x22>\x0a<p'+_0x228651(_0xe31bad._0x3126b7,0x242)+_0x367df1(_0xe31bad._0x1cc122,0x129)+_0x367df1(0x367,_0xe31bad._0x1b38c3)+_0x367df1(0x197,0xe)+_0x228651(0x49,0x1e2)+'/key>\x0a\x20\x20'+_0x228651(_0xe31bad._0x2da914,0x3bf)+SERVICE_LABEL+(_0x228651(0x1f5,0x1c4)+_0x228651(0x3c9,_0xe31bad._0x32f850)+'>Program'+'Argument'+_0x228651(0x346,_0xe31bad._0x473291)+_0x228651(0x56e,_0xe31bad._0x29263c)+'>\x0a')+_0x21cd99+('\x0a\x20\x20</arr'+_0x367df1(-_0xe31bad._0x54bfbe,-0x8e)+_0x228651(_0xe31bad._0x5719ed,_0xe31bad._0x23da86)+_0x367df1(-0x5,0x12b)+_0x367df1(0x1ac,0x1c4)+_0x367df1(_0xe31bad._0x2692b3,-_0xe31bad._0x5a2288)+_0x228651(_0xe31bad._0x10e4dc,0x4d0)+_0x367df1(0x118,-_0xe31bad._0x315173)+_0x228651(0x2d2,_0xe31bad._0x2494ce)+_0x228651(_0xe31bad._0x5c4b8b,_0xe31bad._0x4b9956)+_0x367df1(0x357,_0xe31bad._0x52282f)+_0x367df1(-_0xe31bad._0x447ac2,-0x10c)+_0x367df1(-_0xe31bad._0x4406a1,_0xe31bad._0x12b354)+'y>\x0a\x20\x20<st'+'ring>')+escapeXml(_0x5474cc)+(_0x367df1(-0x9b,-_0xe31bad._0x43cae2)+_0x228651(_0xe31bad._0x92addb,0x375)+_0x367df1(_0xe31bad._0x52c158,0x20a)+_0x367df1(0x10b,-0xb8)+'th</key>'+_0x228651(_0xe31bad._0x16ee7b,0x134)+_0x367df1(-_0xe31bad._0x425d87,-_0xe31bad._0x47349b))+escapeXml(_0x31f57a)+(_0x367df1(-0xeb,-0xce)+'>\x0a</dict'+'>\x0a</plis'+_0x367df1(_0xe31bad._0x4b2edb,_0xe31bad._0x3f4b3e));}function buildLinuxSystemdUnit(_0x5b8e36,_0x554848,_0x4857bd){const _0x41e2dc={_0x2a5513:0x3b,_0xc8ec16:0x595,_0x431e32:0x5a4,_0x2ef4a4:0x27e,_0xeb4469:0x1a,_0x1974e1:0x1b1,_0xed3d12:0x2ad,_0x220d93:0x6c,_0x126c5e:0x65,_0x4fa361:0x279,_0x3d7755:0x6ac,_0x2270c5:0x7fa,_0x4cb281:0x40e,_0x2c5375:0x767,_0x5dd194:0x9,_0x583712:0xaf,_0x3fabe9:0x23a,_0x4cd3c7:0x20e,_0x4378d8:0x184,_0x12de60:0x27d,_0x1cd325:0x39b,_0x5a5f59:0xb1,_0x2a0dc3:0x3de,_0x14fd4f:0x4e1,_0x5b4583:0x5f3,_0x38c7c2:0x4bf,_0x5d6bd2:0x579,_0x78c6ab:0x47a,_0x2a0d73:0x617,_0x150099:0x505,_0x1ffdc0:0x51c};function _0x59c100(_0x2bb99f,_0xf648a){return _0x9ec63e(_0x2bb99f-0x347,_0xf648a);}function _0x25c3c3(_0x2e324f,_0x2f8f7c){return _0x9ec63e(_0x2e324f- -0x192,_0x2f8f7c);}const _0x5283a1={'ZSupj':function(_0x1e4136,_0x1675bf){return _0x1e4136(_0x1675bf);}},_0x2d4cc1=_0x5b8e36[_0x59c100(0x4f2,0x529)](escapeSystemdArg)[_0x25c3c3(-_0x41e2dc._0x2a5513,0x79)]('\x20');return _0x59c100(_0x41e2dc._0xc8ec16,0x666)+_0x59c100(_0x41e2dc._0x431e32,0x6f2)+_0x25c3c3(-0x129,-_0x41e2dc._0x2ef4a4)+'et\x20Bridg'+'e\x20CLI\x0aAf'+_0x25c3c3(0x72,-_0x41e2dc._0xeb4469)+_0x25c3c3(_0x41e2dc._0x1974e1,_0x41e2dc._0xed3d12)+_0x25c3c3(-_0x41e2dc._0x220d93,-_0x41e2dc._0x126c5e)+_0x25c3c3(_0x41e2dc._0x4fa361,0x2fe)+_0x59c100(_0x41e2dc._0x3d7755,_0x41e2dc._0x2270c5)+'online.t'+'arget\x0a\x0a['+_0x59c100(_0x41e2dc._0x4cb281,0x287)+_0x59c100(0x721,0x568)+_0x59c100(_0x41e2dc._0x2c5375,0x573)+_0x25c3c3(-0x86,_0x41e2dc._0x5dd194)+_0x2d4cc1+(_0x25c3c3(-_0x41e2dc._0x583712,-0x269)+_0x25c3c3(_0x41e2dc._0x3fabe9,_0x41e2dc._0x4cd3c7)+_0x25c3c3(_0x41e2dc._0x4378d8,_0x41e2dc._0x12de60)+'ec=2\x0aWor'+_0x59c100(_0x41e2dc._0x1cd325,0x427)+_0x25c3c3(-_0x41e2dc._0x5a5f59,0x5a))+_0x5283a1[_0x59c100(_0x41e2dc._0x2a0dc3,_0x41e2dc._0x14fd4f)](escapeSystemdArg,SERVICE_DIR)+(_0x59c100(0x5f3,0x719)+_0x59c100(0x49f,0x2af)+_0x25c3c3(0x8,-0x15c))+_0x554848+(_0x59c100(_0x41e2dc._0x5b4583,0x684)+_0x59c100(_0x41e2dc._0x38c7c2,0x560)+_0x59c100(0x76b,0x82b))+_0x4857bd+(_0x59c100(_0x41e2dc._0x5d6bd2,_0x41e2dc._0x78c6ab)+_0x59c100(0x3a4,0x320)+'edBy=def'+_0x59c100(_0x41e2dc._0x2a0d73,_0x41e2dc._0x150099)+_0x59c100(0x5b4,_0x41e2dc._0x1ffdc0));}function getServicePath(){const _0x57b317={_0x1f87b9:0x531,_0x17de6c:0x512,_0x3036a6:0x48b,_0x43825d:0x3fa,_0x6387ec:0x58a,_0xecfbd7:0x15b,_0x40d31d:0x194,_0x125df0:0x354,_0x4d7269:0x103,_0x1be704:0x263,_0x5ee466:0x3bd,_0x4a4865:0x88,_0x1b1808:0x298},_0x39cc95={_0x26e4c2:0x135},_0x1ef978={_0x102081:0x15c};function _0x24696e(_0x531e99,_0x2fcb78){return _0x9ec63e(_0x531e99-_0x1ef978._0x102081,_0x2fcb78);}function _0x23e453(_0x2d7783,_0x221828){return _0x9ec63e(_0x221828- -_0x39cc95._0x26e4c2,_0x2d7783);}switch(process[_0x24696e(_0x57b317._0x1f87b9,_0x57b317._0x17de6c)]){case _0x24696e(0x423,0x2ce):return MACOS_PLIST_PATH;case _0x23e453(_0x57b317._0x3036a6,0x2c1):return LINUX_SERVICE_PATH;case _0x24696e(0x2c9,_0x57b317._0x43825d):return _0x24696e(_0x57b317._0x6387ec,0x5b5)+_0x24696e(0x455,0x384)+_0x23e453(0x16e,_0x57b317._0xecfbd7)+_0x24696e(0x2cf,_0x57b317._0x40d31d)+_0x24696e(0x269,_0x57b317._0x125df0)+_0x23e453(_0x57b317._0x4d7269,_0x57b317._0x1be704)+_0x24696e(_0x57b317._0x5ee466,0x57d)+_0x23e453(_0x57b317._0x4a4865,0x18c)+_0x23e453(_0x57b317._0x1b1808,0x249);default:return'';}}function _0x1bf0(_0x3fd06a,_0x3e75bc){_0x3fd06a=_0x3fd06a-0xbb;const _0x25ab31=_0x5c01();let _0x2cad2f=_0x25ab31[_0x3fd06a];if(_0x1bf0['nJavCm']===undefined){var _0x2de8b0=function(_0xd746){const _0x3f15e2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x7fee90='',_0xcd7219='',_0x61b8e6=_0x7fee90+_0x2de8b0;for(let _0x2915f9=0x0,_0x3bb806,_0x1d623b,_0x29c900=0x0;_0x1d623b=_0xd746['charAt'](_0x29c900++);~_0x1d623b&&(_0x3bb806=_0x2915f9%0x4?_0x3bb806*0x40+_0x1d623b:_0x1d623b,_0x2915f9++%0x4)?_0x7fee90+=_0x61b8e6['charCodeAt'](_0x29c900+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x3bb806>>(-0x2*_0x2915f9&0x6)):_0x2915f9:0x0){_0x1d623b=_0x3f15e2['indexOf'](_0x1d623b);}for(let _0x5f13e5=0x0,_0x2bd3c4=_0x7fee90['length'];_0x5f13e5<_0x2bd3c4;_0x5f13e5++){_0xcd7219+='%'+('00'+_0x7fee90['charCodeAt'](_0x5f13e5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xcd7219);};_0x1bf0['UHhEAL']=_0x2de8b0,_0x1bf0['FHOsCN']={},_0x1bf0['nJavCm']=!![];}const _0x5c01b8=_0x25ab31[0x0],_0x1bf0a2=_0x3fd06a+_0x5c01b8,_0xecdf90=_0x1bf0['FHOsCN'][_0x1bf0a2];if(!_0xecdf90){const _0x1dc02e=function(_0xbd1ce8){this['ltDOpR']=_0xbd1ce8,this['RjAVYS']=[0x1,0x0,0x0],this['UPGcvv']=function(){return'newState';},this['lMBifS']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['aNzKIt']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x1dc02e['prototype']['RtIZFZ']=function(){const _0x109e3d=new RegExp(this['lMBifS']+this['aNzKIt']),_0x103a16=_0x109e3d['test'](this['UPGcvv']['toString']())?--this['RjAVYS'][0x1]:--this['RjAVYS'][0x0];return this['qIccRY'](_0x103a16);},_0x1dc02e['prototype']['qIccRY']=function(_0x40a464){if(!Boolean(~_0x40a464))return _0x40a464;return this['pKIkme'](this['ltDOpR']);},_0x1dc02e['prototype']['pKIkme']=function(_0x5223db){for(let _0x65b0d2=0x0,_0x41cd73=this['RjAVYS']['length'];_0x65b0d2<_0x41cd73;_0x65b0d2++){this['RjAVYS']['push'](Math['round'](Math['random']())),_0x41cd73=this['RjAVYS']['length'];}return _0x5223db(this['RjAVYS'][0x0]);},new _0x1dc02e(_0x1bf0)['RtIZFZ'](),_0x2cad2f=_0x1bf0['UHhEAL'](_0x2cad2f),_0x1bf0['FHOsCN'][_0x1bf0a2]=_0x2cad2f;}else _0x2cad2f=_0xecdf90;return _0x2cad2f;}function detectServiceMethod(){const _0x4efe94={_0x53c5ea:0x118,_0x29ea34:0x1,_0x2c3463:0x573,_0x32354a:0x409,_0x2d1fe2:0x56b,_0x14fc4b:0x452,_0x5ba7fd:0x2da,_0x49a661:0x89,_0x276571:0x375,_0x48c09e:0x1,_0x5cb471:0x1f6,_0x20efa8:0x20,_0x4adcec:0x138,_0x4c040c:0x2c7,_0x154620:0x98},_0x1c62e0={_0x30a97c:0x1c0};function _0xc6a92b(_0x3de0e2,_0x339dc3){return _0x431448(_0x3de0e2,_0x339dc3- -0x47);}const _0x2c7691={};function _0x2f3ee5(_0x2ea45d,_0x2a9eab){return _0x431448(_0x2ea45d,_0x2a9eab- -_0x1c62e0._0x30a97c);}_0x2c7691[_0x2f3ee5(_0x4efe94._0x53c5ea,-_0x4efe94._0x29ea34)]=_0xc6a92b(_0x4efe94._0x2c3463,_0x4efe94._0x32354a);const _0x267198=_0x2c7691;switch(process[_0xc6a92b(_0x4efe94._0x2d1fe2,0x3e8)]){case _0xc6a92b(_0x4efe94._0x14fc4b,_0x4efe94._0x5ba7fd):return _0x2f3ee5(-0x1f,-_0x4efe94._0x49a661)+_0xc6a92b(0x17c,_0x4efe94._0x276571);case _0x267198[_0x2f3ee5(0x1fd,-_0x4efe94._0x48c09e)]:return _0xc6a92b(0x16a,0x284)+_0xc6a92b(0x403,0x3e3);case'win32':return _0x2f3ee5(0x20b,_0x4efe94._0x5cb471)+'run-regi'+_0xc6a92b(_0x4efe94._0x20efa8,_0x4efe94._0x4adcec);default:return _0xc6a92b(0xcf,_0x4efe94._0x4c040c)+_0x2f3ee5(0xc5,-_0x4efe94._0x154620);}}function readServiceState(){const _0x413ac4={_0x4a49af:0x95,_0xdd1dd7:0x32f,_0x1f97b2:0x359,_0x5f239c:0x30d,_0xd84065:0x393,_0x1bc9a3:0x104,_0x558d47:0x42},_0x5b52f7={_0x161394:0x294};function _0x5eab8a(_0x1a60b5,_0x2ecb2d){return _0x9ec63e(_0x2ecb2d- -0x1b,_0x1a60b5);}function _0x1a76ce(_0x134174,_0x133fc2){return _0x9ec63e(_0x134174- -_0x5b52f7._0x161394,_0x133fc2);}const _0x297031={'qTObS':function(_0x573808,_0x587cfd,_0x44c341){return _0x573808(_0x587cfd,_0x44c341);}};if(!_0x146d3f(SERVICE_STATE_PATH))return null;try{const _0x5567e2=JSON[_0x5eab8a(0x180,0x19f)](_0x297031[_0x5eab8a(-_0x413ac4._0x4a49af,0xb8)](_0x1cabb2,SERVICE_STATE_PATH,'utf8'));if(!_0x5567e2['pid']||typeof _0x5567e2[_0x5eab8a(-0x178,0x25)]!==_0x5eab8a(0x468,_0x413ac4._0xdd1dd7))return null;return{'pid':_0x5567e2['pid'],'startedAt':_0x5567e2[_0x5eab8a(0x3e0,_0x413ac4._0x1f97b2)+'t']??new Date(0x0)[_0x5eab8a(_0x413ac4._0x5f239c,_0x413ac4._0xd84065)+_0x1a76ce(-_0x413ac4._0x1bc9a3,-_0x413ac4._0x558d47)]()};}catch{return null;}}function stopRunningProcess(){const _0x38f1d5={_0xb4c30:0x1fb,_0x2742e0:0x2ba,_0x30a690:0x334,_0x55864a:0x50,_0x302396:0x9e,_0x1d59af:0x23a,_0x2cf099:0x3fd,_0x528ed6:0x265,_0x2e8c92:0x1ba,_0x1cdf5b:0xf2,_0x5fffc7:0x2f,_0x3fc912:0x1a5,_0x34a654:0x182,_0x3f1fb2:0xf2},_0x119a06={_0x24b43a:0x18c};function _0xae0bd6(_0x3369d2,_0x176239){return _0x431448(_0x176239,_0x3369d2- -0x233);}const _0x3cfa40={'ufQwr':function(_0x3199e6,_0x469ea0,_0x509d64){return _0x3199e6(_0x469ea0,_0x509d64);},'KkBRH':'win32','lAexd':function(_0x420ab9,_0x133c2e){return _0x420ab9(_0x133c2e);}},_0xb67638=readServiceState();if(!_0xb67638)return;_0x3cfa40[_0xae0bd6(_0x38f1d5._0xb4c30,_0x38f1d5._0x2742e0)](execIgnoreFailure,process[_0xae0bd6(0x1fc,_0x38f1d5._0x30a690)]===_0x3cfa40[_0x393ce4(0x18,-_0x38f1d5._0x55864a)]?_0xae0bd6(-_0x38f1d5._0x302396,0x65):_0xae0bd6(_0x38f1d5._0x1d59af,_0x38f1d5._0x2cf099),process[_0x393ce4(0x258,0x2a3)]===_0x3cfa40[_0x393ce4(-0x1a,-0x50)]?[_0xae0bd6(-0x165,-0x95),_0x3cfa40[_0x393ce4(_0x38f1d5._0x528ed6,0x5f)](String,_0xb67638[_0x393ce4(-_0x38f1d5._0x2e8c92,-_0x38f1d5._0x1cdf5b)]),'/T','/F']:[_0xae0bd6(-_0x38f1d5._0x5fffc7,_0x38f1d5._0x3fc912),String(_0xb67638[_0x393ce4(-_0x38f1d5._0x34a654,-_0x38f1d5._0x3f1fb2)])]);function _0x393ce4(_0x23a2d8,_0x1f1447){return _0x431448(_0x23a2d8,_0x1f1447- -_0x119a06._0x24b43a);}clearServiceState(_0xb67638[_0x393ce4(-0x239,-0xf2)]);}function isPidRunning(_0x5d429d){try{return process['kill'](_0x5d429d,0x0),!![];}catch{return![];}}function startDetachedWindowsService(_0x42eec3){const _0x1db6f5={_0x13d031:0x494,_0x179161:0x293,_0x15d4cd:0x146,_0x180b30:0x1c1,_0x45705:0xd4},_0x39bd62={_0x205f42:0x109},_0x58ac10={'hydga':'ignore','EcOse':function(_0x3e759d,_0x390196){return _0x3e759d(_0x390196);}};function _0x2ad0d2(_0x458298,_0x5bceaf){return _0x9ec63e(_0x5bceaf- -_0x39bd62._0x205f42,_0x458298);}const _0x117c47=openSync(SERVICE_LOG_PATH,'a');function _0x1b27e1(_0x15f426,_0x1401f3){return _0x9ec63e(_0x15f426- -0x1af,_0x1401f3);}const _0x243602=openSync(SERVICE_ERROR_LOG_PATH,'a');try{const [_0x212160,..._0x291da4]=_0x42eec3,_0x2c270e={};_0x2c270e[_0x2ad0d2(_0x1db6f5._0x13d031,_0x1db6f5._0x179161)]=!![],_0x2c270e['stdio']=[_0x58ac10['hydga'],_0x117c47,_0x243602],_0x2c270e[_0x2ad0d2(_0x1db6f5._0x15d4cd,_0x1db6f5._0x180b30)+'ide']=!![];const _0x3724ad=spawn(_0x212160,_0x291da4,_0x2c270e);_0x3724ad['unref']();}finally{closeSync(_0x117c47),_0x58ac10[_0x2ad0d2(0x1e3,_0x1db6f5._0x45705)](closeSync,_0x243602);}}function resolveScriptPath(_0x123dbb){const _0xceaae5={_0x18810e:0x23c};function _0x4ea11a(_0x319aa2,_0x112399){return _0x431448(_0x319aa2,_0x112399-_0xceaae5._0x18810e);}const _0x54b174=_0x123dbb?.['trim']()||process[_0x4ea11a(0x6c8,0x5b4)][0x1]?.[_0x1a4fb2(0x517,0x6cb)]()||'';if(!_0x54b174)return'';function _0x1a4fb2(_0x43b611,_0x305ecf){return _0x431448(_0x43b611,_0x305ecf-0x3a2);}try{return realpathSync(_0x54b174);}catch{return _0x54b174;}}function ensureLaunchScriptExecutable(_0x5b3213,_0x56813c){const _0x421ae5={_0x22ef2c:0x11,_0x577773:0x4d},_0x3953d9={'QBRZE':function(_0x96b328,_0x5a5e8e){return _0x96b328===_0x5a5e8e;},'MYnrs':function(_0x36713a,_0x12fe3a,_0x2868ec){return _0x36713a(_0x12fe3a,_0x2868ec);}};if(_0x3953d9['QBRZE'](_0x56813c,'win32')||!_0x146d3f(_0x5b3213))return;function _0x841123(_0x228645,_0x58aa01){return _0x431448(_0x228645,_0x58aa01- -0x2d8);}try{_0x3953d9[_0x841123(_0x421ae5._0x22ef2c,_0x421ae5._0x577773)](chmodSync,_0x5b3213,0x1ed);}catch{}}function writeServiceLauncher(_0x1b079c){const _0x27354d={_0x5a3661:0x281,_0x361488:0x246,_0x5b5ea4:0x35f,_0x37b8ee:0x30c,_0x44d5d4:0x681,_0x513dec:0x392,_0xe3460d:0x412,_0x4a0f45:0x4cd,_0x38b4c0:0x5e,_0x473ec4:0xa6,_0x1188b6:0x2e2,_0x4cc7e0:0xe0,_0x3ee068:0x14e,_0x2910f1:0x7b0,_0x3687c6:0x773,_0x337228:0x85d,_0x117475:0x84a,_0xaa2f42:0x85e,_0x57f69f:0xe2,_0x2e92ea:0x7be,_0x101ccc:0x8aa,_0x41cfa7:0x82e,_0x2e7472:0x89e,_0x123c6a:0x7df,_0x4a1cc2:0x590,_0x2e723b:0x75f,_0x3ba7ac:0x705,_0x3d75b6:0x7c2,_0x3904b4:0x350,_0x4b31c8:0x80f,_0x3f3e51:0x3ec,_0x871fea:0x424,_0x143c61:0x57c,_0x581186:0x609},_0x5cbfb2={_0xe5ed8d:0xe},_0x13193c={'dXpun':function(_0xfb259b){return _0xfb259b();},'JuKYk':function(_0x4e4713,_0x462d10,_0x25c2a3,_0x5cbbda){return _0x4e4713(_0x462d10,_0x25c2a3,_0x5cbbda);}};_0x13193c['dXpun'](ensureServiceDirs);function _0x13cef7(_0x38c954,_0x2ecc73){return _0x9ec63e(_0x2ecc73-_0x5cbfb2._0xe5ed8d,_0x38c954);}function _0x5e0b59(_0x4834e1,_0x8b0e6){return _0x9ec63e(_0x4834e1-0x463,_0x8b0e6);}const _0x4c7ac0=[_0x13cef7(_0x27354d._0x5a3661,_0x27354d._0x361488)+'h',_0x13cef7(0x203,_0x27354d._0x5b5ea4)+_0x13cef7(0x1cf,_0x27354d._0x37b8ee)+escapeShellDoubleQuoted(_0x1b079c[_0x5e0b59(_0x27354d._0x44d5d4,0x49d)])+'\x22',_0x13cef7(0x435,_0x27354d._0x513dec)+_0x13cef7(0x2f5,_0x27354d._0xe3460d)+escapeShellDoubleQuoted(_0x1b079c[_0x5e0b59(0x60f,_0x27354d._0x4a0f45)])+'\x22',_0x13cef7(_0x27354d._0x38b4c0,_0x27354d._0x473ec4)+'ATH=\x22'+escapeShellDoubleQuoted(_0x1b079c['scriptPa'+'th'])+'\x22','if\x20[\x20-x\x20'+'\x22$NODE_P'+_0x13cef7(0x165,_0x27354d._0x1188b6)+'then',_0x13cef7(-_0x27354d._0x4cc7e0,0xbe)+_0x13cef7(0x2d0,0x16b)+'TH\x22\x20\x22$SC'+_0x13cef7(-0x9,_0x27354d._0x3ee068)+_0x13cef7(-0x83,0x52)+'-service','fi',_0x5e0b59(_0x27354d._0x2910f1,_0x27354d._0x3687c6)+_0x5e0b59(_0x27354d._0x337228,_0x27354d._0x117475)+_0x5e0b59(0x66b,_0x27354d._0xaa2f42)+_0x13cef7(-_0x27354d._0x57f69f,0x11f)+_0x5e0b59(_0x27354d._0x2e92ea,_0x27354d._0x101ccc),_0x5e0b59(_0x27354d._0x41cfa7,0x66e)+'ode\x20\x22$SC'+_0x13cef7(-0x85,_0x27354d._0x3ee068)+_0x13cef7(0x10c,0x52)+_0x5e0b59(_0x27354d._0x2e7472,0x9f0),'fi',_0x5e0b59(0x76b,0x632)+'de\x20runti'+_0x5e0b59(0x62d,_0x27354d._0x123c6a)+_0x5e0b59(_0x27354d._0x4a1cc2,0x4b7)+_0x5e0b59(0x706,_0x27354d._0x2e723b)+_0x5e0b59(_0x27354d._0x3ba7ac,_0x27354d._0x3d75b6)+_0x13cef7(0x515,_0x27354d._0x3904b4)+_0x5e0b59(_0x27354d._0x4b31c8,0x63f),_0x13cef7(_0x27354d._0x3f3e51,_0x27354d._0x871fea),''];return _0x13193c['JuKYk'](_0x161090,SERVICE_LAUNCHER_PATH,_0x4c7ac0[_0x5e0b59(0x5ba,_0x27354d._0x143c61)]('\x0a'),_0x5e0b59(_0x27354d._0x581186,0x51d)),SERVICE_LAUNCHER_PATH;}function escapeShellDoubleQuoted(_0x316a13){const _0x11dc7e={_0x434179:0x725,_0x5e2608:0x2c1},_0x8bcb33={_0x39080c:0x3da};function _0x5dc5a7(_0x47de5b,_0x422d95){return _0x431448(_0x47de5b,_0x422d95- -0x277);}function _0x54542d(_0x31e9a3,_0xaa3dce){return _0x431448(_0x31e9a3,_0xaa3dce-_0x8bcb33._0x39080c);}return _0x316a13[_0x54542d(0x6f4,_0x11dc7e._0x434179)+'ll']('\x5c','\x5c\x5c')['replaceA'+'ll']('\x22','\x5c\x22')['replaceA'+'ll']('$','\x5c$')[_0x5dc5a7(_0x11dc7e._0x5e2608,0xd4)+'ll']('`','\x5c`');}function buildWindowsRunCommand(_0x1ec178){return _0x1ec178['map'](escapeWindowsArg)['join']('\x20');}function ensureServiceDirs(){const _0x51847a={_0x458594:0x4d1,_0x362fee:0x496,_0x15fcf4:0x83d},_0x54dc9d={'GFxWS':function(_0x4ebb1c,_0x5ef493,_0x57f6af){return _0x4ebb1c(_0x5ef493,_0x57f6af);}},_0x2a628d={};_0x2a628d[_0x55bc41(0x4bb,0x621)+'e']=!![];function _0x55bc41(_0x5b61d9,_0x2a1e3e){return _0x431448(_0x2a1e3e,_0x5b61d9-0x3b8);}function _0x4d2045(_0x3bcda2,_0x17d708){return _0x431448(_0x17d708,_0x3bcda2-0x3ce);}_0x282046(SERVICE_DIR,_0x2a628d);const _0x484806={};_0x484806[_0x4d2045(_0x51847a._0x458594,_0x51847a._0x362fee)+'e']=!![],_0x54dc9d[_0x55bc41(0x745,_0x51847a._0x15fcf4)](_0x282046,LOG_DIR,_0x484806);}function escapeXml(_0x49a058){const _0x5da87c={_0x513b01:0x284,_0x415575:0x4da,_0x19ea34:0x478,_0x25495d:0x566,_0x3c39cd:0x24e,_0x3daab1:0x27a,_0x1c9c1f:0x43b,_0x4af6a2:0x43a,_0x239f5a:0x165},_0x162860={_0x5294cb:0x18f},_0x15cc2c={};_0x15cc2c[_0x2fb7e5(_0x5da87c._0x513b01,0x143)]=_0x480a00(0x381,0x33b);function _0x2fb7e5(_0x4671a0,_0x2c641d){return _0x431448(_0x2c641d,_0x4671a0-_0x162860._0x5294cb);}const _0x1077b9=_0x15cc2c;function _0x480a00(_0x4acc96,_0xa97a68){return _0x431448(_0x4acc96,_0xa97a68-0xef);}return _0x49a058['replaceA'+'ll']('&',_0x480a00(0x29d,0x3f3))[_0x2fb7e5(_0x5da87c._0x415575,0x6d7)+'ll']('<',_0x2fb7e5(_0x5da87c._0x19ea34,_0x5da87c._0x25495d))['replaceA'+'ll']('>',_0x2fb7e5(_0x5da87c._0x3c39cd,_0x5da87c._0x3daab1))[_0x480a00(0x477,0x43a)+'ll']('\x22','&quot;')[_0x480a00(_0x5da87c._0x1c9c1f,_0x5da87c._0x4af6a2)+'ll']('\x27',_0x1077b9[_0x480a00(_0x5da87c._0x239f5a,0x1e4)]);}function escapeSystemdArg(_0x2f30d3){const _0x38df0b={_0x62b21:0x543},_0x3e92c6={_0x5f2bab:0x185};function _0x2ac89d(_0x42fda9,_0x4de73f){return _0x431448(_0x42fda9,_0x4de73f-_0x3e92c6._0x5f2bab);}function _0x5d2c3c(_0x2762bd,_0xb75d16){return _0x431448(_0xb75d16,_0x2762bd-0x1f8);}return'\x22'+_0x2f30d3[_0x2ac89d(0x3f4,0x4d0)+'ll']('\x5c','\x5c\x5c')[_0x5d2c3c(_0x38df0b._0x62b21,0x743)+'ll']('\x22','\x5c\x22')+'\x22';}function escapeWindowsArg(_0x2dfdde){return'\x22'+_0x2dfdde['replaceA'+'ll']('\x22','\x5c\x22')+'\x22';}function commandSucceeds(_0x2a82d6,_0x46b0c0){const _0x27beeb={_0x261578:0x54e},_0x3e9b00={_0x1998cd:0xd7};function _0x2ac8c4(_0x3a20d0,_0x793ecd){return _0x431448(_0x3a20d0,_0x793ecd-0x368);}function _0x37521b(_0xf360ae,_0x3cf66f){return _0x431448(_0xf360ae,_0x3cf66f- -_0x3e9b00._0x1998cd);}try{const _0x2cd7dd={};return _0x2cd7dd[_0x2ac8c4(0x7b0,0x800)]=_0x2ac8c4(_0x27beeb._0x261578,0x701),execFileSync(_0x2a82d6,_0x46b0c0,_0x2cd7dd),!![];}catch{return![];}}function execIgnoreFailure(_0x2a1486,_0x7aaabd){const _0x2068cc={_0x1d092a:0x597,_0x179b40:0x498};function _0x5774bc(_0x281a1a,_0x41472e){return _0x431448(_0x281a1a,_0x41472e-0x368);}function _0x272893(_0x3c679d,_0xc5e283){return _0x431448(_0xc5e283,_0x3c679d-0xff);}try{const _0x43423e={};_0x43423e[_0x272893(_0x2068cc._0x1d092a,0x549)]=_0x272893(_0x2068cc._0x179b40,0x447),execFileSync(_0x2a1486,_0x7aaabd,_0x43423e);}catch{}}function rmIfExists(_0x23f8af){const _0x1dbf96={_0x1c1a15:0x349,_0x12aae5:0x183};if(!_0x146d3f(_0x23f8af))return;function _0x29fb9e(_0x479f9b,_0x1355de){return _0x431448(_0x479f9b,_0x1355de- -0x10a);}const _0x25d21e={};_0x25d21e[_0x29fb9e(_0x1dbf96._0x1c1a15,_0x1dbf96._0x12aae5)]=!![],_0x9ac38d(_0x23f8af,_0x25d21e);}import{existsSync as _0x312356,readFileSync as _0x453671}from'fs';import{homedir as _0x251b2f}from'os';import{join as _0x21174e}from'path';var DEFAULT_GATEWAY_URL=_0x431448(0x206,0xd7)+_0x431448(0xf0,0x163)+_0x431448(0x176,0x22b),OPENCLAW_DIR=_0x21174e(_0x251b2f(),_0x9ec63e(0x16a,-0x46)+'w'),OPENCLAW_CONFIG_PATH2=_0x21174e(OPENCLAW_DIR,_0x9ec63e(0x2d9,0x110)+_0x9ec63e(0xa6,0x213)),OPENCLAW_MEDIA_DIR=_0x21174e(OPENCLAW_DIR,_0x431448(0x386,0x1f1));function resolveGatewayUrl(_0x2b2244){const _0x12eb9e={_0x3cf8df:0x2b3,_0x558f3e:0x99a,_0x3522b3:0xb4,_0x2f8672:0x8b4},_0x27bc5a={_0x53c060:0x118},_0x172e68={'NCUdZ':function(_0x366773){return _0x366773();}},_0x4daaac=_0x2b2244?.['trim']();if(_0x4daaac)return _0x4daaac;const _0x4ffdc7=_0x172e68[_0x19de6b(_0x12eb9e._0x3cf8df,0x1ec)](readOpenClawInfo);function _0x2a0355(_0x8db2b5,_0x25035f){return _0x9ec63e(_0x25035f-0x461,_0x8db2b5);}if(typeof _0x4ffdc7['gatewayP'+'ort']===_0x2a0355(_0x12eb9e._0x558f3e,0x7ab))return _0x19de6b(-0x124,-0x9b)+_0x19de6b(-_0x12eb9e._0x3522b3,-0x5a)+_0x4ffdc7[_0x2a0355(_0x12eb9e._0x2f8672,0x7ef)+'ort'];function _0x19de6b(_0x3c68ef,_0x2c87df){return _0x9ec63e(_0x2c87df- -_0x27bc5a._0x53c060,_0x3c68ef);}return DEFAULT_GATEWAY_URL;}function readOpenClawInfo(){const _0x27f757={_0x1aa399:0x120,_0x56c948:0x4ee,_0x4d470b:0x589,_0x35813c:0x15e,_0x4aafdb:0x5f3,_0x1e0eaf:0x1a,_0x135faa:0x54,_0x94fad9:0x3d,_0x3d3a5:0x242,_0x343334:0x2d,_0x3fd8b0:0x46,_0x8711ae:0x5ec,_0x404d71:0x72c,_0x59e0df:0xb3,_0x3bf7de:0x14b,_0x43d228:0x36,_0x22b5d9:0x92,_0x94c452:0x55b,_0x4e2b44:0x533,_0x34705e:0x1a,_0x4d8160:0x64,_0x307cc9:0x204,_0x4b8fa8:0x3f1,_0x169134:0x106,_0x1acb99:0x27f,_0x4b122a:0x16d,_0x3f7908:0x6ed,_0x1fb844:0x7ab,_0x5806ce:0x6fd,_0x1cee1c:0x615,_0x436086:0x113,_0x2a95be:0x19,_0xbe2889:0x21d,_0x234915:0x47b},_0x2ead24={_0x320ff1:0x2af};function _0x58e2a6(_0x47f048,_0x5dd07e){return _0x9ec63e(_0x47f048-0x35f,_0x5dd07e);}function _0x265c03(_0x431b08,_0x5e748f){return _0x9ec63e(_0x431b08- -_0x2ead24._0x320ff1,_0x5e748f);}const _0x3b6acd={'eRfrx':function(_0x17c42f){return _0x17c42f();},'sFjOi':_0x58e2a6(0x505,0x67a),'sbEQq':function(_0x2fa046,_0x24006e){return _0x2fa046===_0x24006e;},'XBodv':'token','iyRtv':'password'};if(!_0x312356(OPENCLAW_CONFIG_PATH2))return{'configFound':![],'gatewayPort':null,'authMode':null,'token':_0x3b6acd[_0x265c03(-_0x27f757._0x1aa399,-0x3f)](readGatewayTokenEnv),'password':_0x3b6acd[_0x58e2a6(_0x27f757._0x56c948,_0x27f757._0x4d470b)](readGatewayPasswordEnv)};try{const _0x1fed86=JSON[_0x265c03(-0xf5,-_0x27f757._0x35813c)](_0x453671(OPENCLAW_CONFIG_PATH2,_0x3b6acd[_0x58e2a6(_0x27f757._0x4aafdb,0x709)])),_0xd64626=_0x1fed86[_0x265c03(-_0x27f757._0x1e0eaf,_0x27f757._0x135faa)]?.['port'],_0x56a912=_0x3b6acd[_0x265c03(-0x238,-0x206)](typeof _0xd64626,'number')&&Number[_0x265c03(-_0x27f757._0x94fad9,-_0x27f757._0x3d3a5)+'r'](_0xd64626)?_0xd64626:null,_0x30ed6b=_0x1fed86[_0x58e2a6(0x5f4,0x71f)]?.[_0x265c03(_0x27f757._0x343334,-_0x27f757._0x3fd8b0)]?.['mode']===_0x3b6acd[_0x58e2a6(0x719,_0x27f757._0x8711ae)]||_0x3b6acd['sbEQq'](_0x1fed86[_0x58e2a6(0x5f4,_0x27f757._0x404d71)]?.[_0x265c03(_0x27f757._0x343334,0x143)]?.[_0x265c03(-_0x27f757._0x59e0df,-0x184)],_0x3b6acd[_0x265c03(-_0x27f757._0x3bf7de,_0x27f757._0x43d228)])?_0x1fed86[_0x58e2a6(0x5f4,0x663)][_0x265c03(_0x27f757._0x343334,-_0x27f757._0x22b5d9)][_0x58e2a6(_0x27f757._0x94c452,_0x27f757._0x4e2b44)]:null,_0x596ded=readConfiguredSecret(_0x1fed86[_0x265c03(-_0x27f757._0x34705e,_0x27f757._0x4d8160)]?.[_0x265c03(0x2d,_0x27f757._0x307cc9)]?.[_0x58e2a6(_0x27f757._0x4b8fa8,0x533)])??readGatewayTokenEnv(),_0x7aaaca=readConfiguredSecret(_0x1fed86['gateway']?.[_0x265c03(0x2d,-_0x27f757._0x169134)]?.[_0x265c03(-0x193,-_0x27f757._0x1acb99)])??_0x3b6acd['eRfrx'](readGatewayPasswordEnv),_0x3e143c={};return _0x3e143c[_0x265c03(-_0x27f757._0x4b122a,-0x150)+_0x58e2a6(0x550,0x6ba)]=!![],_0x3e143c[_0x58e2a6(_0x27f757._0x3f7908,_0x27f757._0x1fb844)+_0x58e2a6(_0x27f757._0x5806ce,_0x27f757._0x1cee1c)]=_0x56a912,_0x3e143c[_0x265c03(_0x27f757._0x436086,_0x27f757._0x2a95be)]=_0x30ed6b,_0x3e143c[_0x265c03(-_0x27f757._0xbe2889,-0x3ce)]=_0x596ded,_0x3e143c[_0x58e2a6(_0x27f757._0x234915,0x3be)]=_0x7aaaca,_0x3e143c;}catch{return{'configFound':!![],'gatewayPort':null,'authMode':null,'token':readGatewayTokenEnv(),'password':readGatewayPasswordEnv()};}}function resolveGatewayAuth(){const _0x350af8={_0x1133db:0x16,_0x293f77:0xba,_0x43f783:0x424,_0x4bec25:0xa0,_0x2da7c9:0x2e,_0x51226c:0x5e7,_0x51b109:0x290,_0xcabb8c:0x133,_0x372ef3:0x2b0,_0x5003b7:0x3c1,_0x3aebdf:0x54,_0x3be252:0x80,_0x345b38:0x817,_0x100340:0xa,_0x3956ce:0x16e,_0x460c40:0x13,_0x328148:0x32d,_0xe19b17:0x580,_0xb7b9ab:0x27f,_0x5bc69b:0x311,_0x53815c:0x120,_0x107e03:0x30d,_0x2071cc:0x360,_0x53034c:0x3a2,_0x2ba45b:0x45f,_0x2100fb:0x16,_0x1273c4:0x57,_0x514e5b:0xa0,_0x3337f1:0x3e9,_0x327ac5:0x60,_0x1de7f6:0x1e8,_0x4d27cb:0x96,_0x1cbb13:0x3e9,_0x91087c:0x279},_0x15595c={_0x56b060:0x2cd},_0x1f5371={'jQvFR':function(_0x4108a4){return _0x4108a4();},'Djofi':function(_0x51700c,_0x199e4c){return _0x51700c&&_0x199e4c;},'trQQy':_0x209473(-_0x350af8._0x1133db,-_0x350af8._0x293f77),'hSKWr':'token'},_0xd493eb=_0x1f5371[_0x2bb97f(_0x350af8._0x43f783,0x429)](readOpenClawInfo),_0x14c12e=_0xd493eb[_0x209473(-_0x350af8._0x4bec25,-_0x350af8._0x2da7c9)];function _0x209473(_0x1b8b47,_0x32a930){return _0x9ec63e(_0x1b8b47- -0x132,_0x32a930);}const _0x48e026=_0xd493eb['password'];if(_0x1f5371[_0x2bb97f(_0x350af8._0x51226c,0x450)](_0x14c12e,_0x48e026)&&_0xd493eb[_0x209473(_0x350af8._0x51b109,0xc3)]==null){const _0x32bff7={};return _0x32bff7[_0x209473(-_0x350af8._0x4bec25,_0x350af8._0xcabb8c)]=_0x14c12e,_0x32bff7[_0x209473(-_0x350af8._0x1133db,-0x21d)]=_0x48e026,_0x32bff7['label']=_0x209473(-0xa0,-0xbc),_0x32bff7[_0x209473(0x1f2,_0x350af8._0x372ef3)]='OpenClaw'+'\x20has\x20bot'+'h\x20gatewa'+'y\x20token\x20'+_0x2bb97f(0x54a,_0x350af8._0x5003b7)+'word\x20con'+_0x209473(_0x350af8._0x3aebdf,-_0x350af8._0x3be252)+_0x2bb97f(_0x350af8._0x345b38,0x655)+'eway.aut'+_0x209473(0xd0,_0x350af8._0x100340)+_0x209473(_0x350af8._0x3956ce,0xb)+_0x209473(-_0x350af8._0x460c40,0xe7)+_0x2bb97f(0x52e,_0x350af8._0x328148)+_0x2bb97f(0x478,_0x350af8._0xe19b17)+_0x209473(_0x350af8._0xb7b9ab,0x1f2)+_0x209473(_0x350af8._0x5bc69b,_0x350af8._0x53815c)+'e\x20pairin'+'g.',_0x32bff7;}if(_0xd493eb['authMode']===_0x1f5371[_0x209473(_0x350af8._0x107e03,_0x350af8._0x2071cc)]){const _0x123246={};return _0x123246[_0x2bb97f(0x3b1,0x35f)]=null,_0x123246['password']=null,_0x123246[_0x2bb97f(_0x350af8._0x53034c,_0x350af8._0x2ba45b)]=null,_0x48e026?{'token':null,'password':_0x48e026,'label':_0x209473(-_0x350af8._0x2100fb,-_0x350af8._0x1273c4)}:_0x123246;}if(_0xd493eb['authMode']===_0x2bb97f(0x34b,0x35f)){const _0xe7bf8f={};return _0xe7bf8f['token']=null,_0xe7bf8f['password']=null,_0xe7bf8f[_0x2bb97f(0x398,0x45f)]=null,_0x14c12e?{'token':_0x14c12e,'password':null,'label':_0x1f5371['hSKWr']}:_0xe7bf8f;}if(_0x14c12e){const _0x3bb6e3={};return _0x3bb6e3[_0x209473(-_0x350af8._0x514e5b,-0xdb)]=_0x14c12e,_0x3bb6e3[_0x2bb97f(0x29f,_0x350af8._0x3337f1)]=null,_0x3bb6e3[_0x209473(_0x350af8._0x327ac5,-0x171)]='token',_0x3bb6e3;}function _0x2bb97f(_0xc572ea,_0x178524){return _0x9ec63e(_0x178524-_0x15595c._0x56b060,_0xc572ea);}if(_0x48e026){const _0x2718ca={};return _0x2718ca[_0x2bb97f(0x3e2,0x35f)]=null,_0x2718ca[_0x209473(-0x16,-_0x350af8._0x1de7f6)]=_0x48e026,_0x2718ca[_0x209473(0x60,_0x350af8._0x4d27cb)]=_0x2bb97f(0x1e8,_0x350af8._0x1cbb13),_0x2718ca;}const _0x3eb8ee={};return _0x3eb8ee[_0x2bb97f(0x18f,0x35f)]=null,_0x3eb8ee['password']=null,_0x3eb8ee[_0x2bb97f(_0x350af8._0x91087c,0x45f)]=null,_0x3eb8ee;}function getOpenClawConfigDir(){return OPENCLAW_DIR;}function getOpenClawMediaDir(){return OPENCLAW_MEDIA_DIR;}function readConfiguredSecret(_0x3c0aed){const _0x5a90d7={_0x182829:0x6f5,_0x362a6d:0x53f,_0x4f3df5:0x31,_0x1b47ad:0x534},_0x183fcd={_0x53bb6f:0x35a},_0x3cf411={_0x1f5fdd:0x20b};function _0x12774e(_0x51e7d5,_0x25ed2a){return _0x431448(_0x51e7d5,_0x25ed2a-_0x3cf411._0x1f5fdd);}function _0x5a304b(_0x205f6b,_0x2d5ea5){return _0x431448(_0x2d5ea5,_0x205f6b- -_0x183fcd._0x53bb6f);}return typeof _0x3c0aed===_0x12774e(_0x5a90d7._0x182829,_0x5a90d7._0x362a6d)&&_0x3c0aed[_0x5a304b(-_0x5a90d7._0x4f3df5,-0x98)]()?_0x3c0aed[_0x12774e(0x5df,_0x5a90d7._0x1b47ad)]():null;}function readGatewayTokenEnv(){const _0x370fde={_0xa0f036:0x150,_0x5e2281:0x1c3,_0x55e940:0x4d3,_0x3db9bb:0x5c0,_0x2cd940:0x267,_0x34c99f:0x37},_0x46a4cb={_0x1bc187:0x11c};function _0x28e507(_0x512299,_0xb4ab0){return _0x9ec63e(_0x512299- -0x2c9,_0xb4ab0);}function _0x1b4ad0(_0x1db4d4,_0x2594da){return _0x9ec63e(_0x1db4d4-_0x46a4cb._0x1bc187,_0x2594da);}const _0x52ad53={};_0x52ad53[_0x28e507(0xd7,_0x370fde._0xa0f036)]=_0x28e507(-0x110,-0x216)+_0x28e507(-_0x370fde._0x5e2281,-0x2ec)+_0x1b4ad0(_0x370fde._0x55e940,_0x370fde._0x3db9bb);const _0x1c249e=_0x52ad53;return readEnvValue(_0x1c249e['RFYIc'],_0x28e507(-_0x370fde._0x2cd940,-0x43e)+_0x28e507(-0x1c3,_0x370fde._0x34c99f)+'_TOKEN');}function readGatewayPasswordEnv(){const _0x55354f={_0x3aaf10:0x3ec,_0x1771b8:0x470,_0x5e3986:0x510,_0x150c23:0x3bb,_0x3a8db3:0x295,_0x5921de:0x3c3,_0x1a1476:0x2c4},_0x191708={_0x34857e:0x1d9},_0x1cdd2b={'pbgNP':function(_0x47c9a5,_0x1fb1a6,_0x1c4d02){return _0x47c9a5(_0x1fb1a6,_0x1c4d02);},'SYlhb':_0x4887ea(_0x55354f._0x3aaf10,0x27a)+_0x39e91f(0x3c3,_0x55354f._0x1771b8)+'_PASSWOR'+'D'};function _0x4887ea(_0x559615,_0x4a9177){return _0x431448(_0x4a9177,_0x559615-_0x191708._0x34857e);}function _0x39e91f(_0x2d8ea2,_0x38592e){return _0x431448(_0x38592e,_0x2d8ea2-0x263);}return _0x1cdd2b[_0x39e91f(0x56e,0x5b4)](readEnvValue,_0x1cdd2b[_0x39e91f(_0x55354f._0x5e3986,_0x55354f._0x150c23)],_0x4887ea(_0x55354f._0x3a8db3,0x2f1)+_0x39e91f(_0x55354f._0x5921de,_0x55354f._0x1a1476)+'_PASSWOR'+'D');}function readEnvValue(_0x107db5,_0xeff46f){function _0xdfefcc(_0x1b33d0,_0x59b195){return _0x9ec63e(_0x1b33d0-0xda,_0x59b195);}function _0x476e9c(_0x447862,_0x59efdc){return _0x9ec63e(_0x59efdc-0x2e9,_0x447862);}const _0x2a9b05=process.env[_0x107db5]?.[_0xdfefcc(0x3a9,0x1e2)]();if(_0x2a9b05)return _0x2a9b05;const _0x2e2ae8=process.env[_0xeff46f]?.[_0xdfefcc(0x3a9,0x553)]();return _0x2e2ae8||null;}var CONTROL_PREFIX=_0x431448(0x33a,0x400)+_0x9ec63e(0x161,0x14f)+_0x431448(0x413,0x2e6)+'_:';function parseControl(_0x265687){const _0x28dee4={_0x4b20a0:0x5cf,_0x99f43:0x6a7,_0x2330ce:0x971,_0x435f53:0x7cd,_0x2bb163:0x4bc,_0x363b38:0x4ad,_0x4b0a17:0x3fb,_0x2f79e8:0x699,_0x13d45c:0x5dc,_0x4b7867:0x481,_0x5cb425:0x2e9},_0x2d11bf={_0x5c1e54:0x34a},_0x51b886={};_0x51b886[_0xa9d87e(_0x28dee4._0x4b20a0,_0x28dee4._0x99f43)]='string';const _0x132fb2=_0x51b886;if(!_0x265687[_0x4e5518(_0x28dee4._0x2330ce,_0x28dee4._0x435f53)+'th'](CONTROL_PREFIX))return null;function _0x4e5518(_0x36d60c,_0xa283cc){return _0x431448(_0x36d60c,_0xa283cc-_0x2d11bf._0x5c1e54);}function _0xa9d87e(_0x5e55e4,_0x303e34){return _0x431448(_0x5e55e4,_0x303e34-0x238);}try{const _0xd12a4d=JSON['parse'](_0x265687['slice'](CONTROL_PREFIX[_0xa9d87e(0x576,_0x28dee4._0x2bb163)]));if(typeof _0xd12a4d['event']!==_0x132fb2['OcQBO']||!_0xd12a4d[_0xa9d87e(0x388,0x4b6)]['trim']())return null;return{'event':_0xd12a4d[_0xa9d87e(_0x28dee4._0x363b38,0x4b6)]['trim'](),'count':typeof _0xd12a4d[_0x4e5518(0x3ad,_0x28dee4._0x4b0a17)]===_0xa9d87e(_0x28dee4._0x2f79e8,_0x28dee4._0x13d45c)&&Number[_0xa9d87e(0x33e,_0x28dee4._0x4b7867)](_0xd12a4d[_0xa9d87e(0x1a9,_0x28dee4._0x5cb425)])?_0xd12a4d['count']:void 0x0};}catch{return null;}}function parseConnectStartIdentity(_0x154883){const _0x657389={_0x379001:0x85a,_0x3e6122:0x72c,_0x433126:0x7f7,_0x30e850:0x779,_0x752583:0x91a,_0x7d5bd2:0x82d,_0x321efb:0x742,_0x517509:0x390,_0x136f24:0x8ca,_0x5a14bd:0x804,_0x53986e:0x43e,_0x12efb1:0x427,_0x4a88a7:0x595,_0x27493e:0x4dd,_0x1ee17c:0x4f0,_0xf13156:0x38e,_0x5babce:0x7e9,_0x47ef23:0x6d9,_0x1349c:0x895,_0x24b90c:0x5e4},_0x4f9f76={'RxhXK':_0x44eed3(0x80b,_0x657389._0x379001),'SmHty':_0x44eed3(0x891,_0x657389._0x3e6122),'NVcfU':function(_0x9cedd8,_0x28e28b,_0x53b8d8,_0x46fe98,_0x137ccc){return _0x9cedd8(_0x28e28b,_0x53b8d8,_0x46fe98,_0x137ccc);}};function _0x48fee2(_0x446e90,_0x247224){return _0x431448(_0x247224,_0x446e90-0x3b7);}function _0x44eed3(_0x47df93,_0x52c609){return _0x431448(_0x47df93,_0x52c609-0x3f8);}try{const _0xd87e52=JSON['parse'](_0x154883);if(_0xd87e52[_0x48fee2(0x761,_0x657389._0x433126)]!==_0x48fee2(_0x657389._0x30e850,_0x657389._0x752583))return null;if(_0xd87e52['method']!==_0x4f9f76[_0x44eed3(0x742,0x841)]&&_0xd87e52['method']!==_0x44eed3(_0x657389._0x7d5bd2,0x75d)+'start')return null;const _0x118726=_0xd87e52[_0x44eed3(_0x657389._0x321efb,0x862)]??{},_0xa9a061=typeof _0xd87e52['id']===_0x4f9f76[_0x44eed3(_0x657389._0x517509,0x543)]&&_0xd87e52['id']['trim']()?_0xd87e52['id'][_0x44eed3(_0x657389._0x136f24,0x721)]():'req-'+Math[_0x48fee2(0x45e,0x41b)]()[_0x48fee2(_0x657389._0x5a14bd,0x7bb)](0x24)[_0x48fee2(0x567,_0x657389._0x53986e)](0x2,0xc),_0x3e837e=_0x4f9f76[_0x44eed3(_0x657389._0x12efb1,_0x657389._0x4a88a7)](firstString,_0x118726[_0x44eed3(_0x657389._0x27493e,_0x657389._0x1ee17c)+'me'],_0x118726[_0x44eed3(_0x657389._0xf13156,0x4e7)+'me'],_0x118726['deviceId'],_0x44eed3(_0x657389._0x5babce,0x78f)+_0x48fee2(_0x657389._0x47ef23,_0x657389._0x1349c)),_0x376832={};return _0x376832['id']=_0xa9a061,_0x376832[_0x44eed3(0x418,_0x657389._0x24b90c)]=_0x3e837e,_0x376832;}catch{return null;}}function isConnectHandshakeRequest(_0xe163b7){const _0x6f9ee5={_0x59453b:0x16,_0x79c053:0x478,_0x16e640:0x391,_0x4381d8:0x16,_0x409e61:0x204,_0xcbdfe4:0x597,_0x4bf545:0x4b3,_0xee83a4:0x4e4,_0x2604a7:0xdb,_0x11a65c:0x80,_0x31a6f7:0xfb,_0x215adc:0x97,_0x56e4c9:0x27b},_0x16bdf8={};_0x16bdf8[_0x4d0522(_0x6f9ee5._0x59453b,-0x8b)]='req',_0x16bdf8[_0xa78eb3(_0x6f9ee5._0x79c053,_0x6f9ee5._0x16e640)]=function(_0x4cde97,_0x33d2ba){return _0x4cde97===_0x33d2ba;};function _0xa78eb3(_0x2a9510,_0x498be3){return _0x9ec63e(_0x2a9510-0x18d,_0x498be3);}function _0x4d0522(_0x2acc82,_0xc81d05){return _0x9ec63e(_0x2acc82- -0x210,_0xc81d05);}const _0x255935=_0x16bdf8;try{const _0xf51306=JSON['parse'](_0xe163b7);return _0xf51306['type']===_0x255935[_0x4d0522(_0x6f9ee5._0x4381d8,_0x6f9ee5._0x409e61)]&&(_0xf51306[_0xa78eb3(_0x6f9ee5._0xcbdfe4,_0x6f9ee5._0x4bf545)]===_0xa78eb3(0x595,_0x6f9ee5._0xee83a4)||_0x255935[_0x4d0522(_0x6f9ee5._0x2604a7,-_0x6f9ee5._0x11a65c)](_0xf51306[_0x4d0522(0x1fa,0x27b)],_0x4d0522(_0x6f9ee5._0x31a6f7,_0x6f9ee5._0x215adc)+_0xa78eb3(_0x6f9ee5._0x56e4c9,0x352)));}catch{return![];}}function parsePairingRequestFromError(_0x55c416,_0x220223=Date[_0x431448(0x509,0x3cb)]()){const _0x56b849={_0x1e97ca:0x2fb,_0x59ab0b:0xc8,_0x5d8cbf:0x209,_0x1ae64e:0x7b,_0x274837:0x385,_0x37de2f:0x12,_0x2afa9c:0x301,_0x7f1bd4:0x226,_0x179e85:0x12d,_0x535aa3:0x303,_0x16f992:0xfc,_0xffb3e7:0x2dc,_0x4b0fe5:0x294,_0x1ffd4d:0x1f0,_0x820870:0x164,_0x45afe4:0xe1,_0x474365:0x238,_0x56f36d:0x4da,_0x25c068:0x235,_0x27ae3b:0x2c4,_0x4037fc:0x347,_0x568fcf:0x188,_0xfa9b3e:0x35,_0x46fa21:0x125,_0x165aed:0x12b},_0x262f05={'RUzHg':function(_0x4757b2,_0x18b8c0){return _0x4757b2!==_0x18b8c0;},'CkfOS':_0x344bcc(0x2b7,_0x56b849._0x1e97ca),'fjzwb':_0x285ab5(_0x56b849._0x59ab0b,_0x56b849._0x5d8cbf)+'required','kSTvB':_0x285ab5(0x17c,-_0x56b849._0x1ae64e),'cDxJZ':function(_0x9b5b3,_0xcec88,_0x9f8df9){return _0x9b5b3(_0xcec88,_0x9f8df9);},'GUfMk':function(_0x202fd5,_0x3ffc6c){return _0x202fd5(_0x3ffc6c);},'gyDHa':_0x344bcc(0x223,_0x56b849._0x274837)};function _0x344bcc(_0x9e15a4,_0x14e6e0){return _0x431448(_0x14e6e0,_0x9e15a4- -0x7d);}function _0x285ab5(_0x13bdea,_0x2aaaa5){return _0x431448(_0x2aaaa5,_0x13bdea- -0x251);}try{const _0x319e3b=JSON[_0x344bcc(0x197,-0x3e)](_0x55c416);if(_0x319e3b['type']!==_0x285ab5(_0x56b849._0x37de2f,0x1c8)||_0x262f05['RUzHg'](_0x319e3b['ok'],![])||!_0x319e3b[_0x344bcc(_0x56b849._0x2afa9c,_0x56b849._0x7f1bd4)])return null;const _0x45bb2f=typeof _0x319e3b[_0x285ab5(_0x56b849._0x179e85,0x26)][_0x344bcc(0x297,_0x56b849._0x535aa3)]===_0x262f05['CkfOS']?_0x319e3b[_0x344bcc(0x301,0x25a)]['code']:'',_0x2eb466=typeof _0x319e3b['error'][_0x285ab5(_0x56b849._0x16f992,_0x56b849._0xffb3e7)]===_0x285ab5(0xe3,0x282)?_0x319e3b[_0x344bcc(_0x56b849._0x2afa9c,0x108)][_0x285ab5(_0x56b849._0x16f992,_0x56b849._0x4b0fe5)]:'';if(!_0x45bb2f['includes'](_0x344bcc(0x314,0x3cb)+'ED')&&!_0x45bb2f[_0x285ab5(-0x70,-_0x56b849._0x1ffd4d)](_0x285ab5(0xff,-0x44)+_0x285ab5(0x200,0x28))&&!_0x2eb466[_0x344bcc(_0x56b849._0x820870,0x234)]('NOT_PAIR'+'ED')&&!_0x2eb466[_0x344bcc(_0x56b849._0x820870,0x42)](_0x262f05[_0x285ab5(0x9c,_0x56b849._0x45afe4)]))return null;const _0x4bb872=_0x319e3b['error'][_0x344bcc(_0x56b849._0x474365,0xe2)]??_0x319e3b[_0x344bcc(_0x56b849._0x2afa9c,_0x56b849._0x56f36d)][_0x344bcc(0x241,0xcb)]??{},_0x5c9f01=firstString(_0x4bb872[_0x344bcc(0x48,-0x7b)+'d'],extractRequestIdFromMessage(_0x2eb466),_0x262f05[_0x344bcc(_0x56b849._0x25c068,0x249)]);return{'requestId':_0x5c9f01,'deviceId':_0x262f05['cDxJZ'](firstString,_0x4bb872[_0x344bcc(_0x56b849._0x27ae3b,0x205)],''),'displayName':firstNullableString(_0x4bb872[_0x344bcc(_0x56b849._0x4037fc,0x16c)+_0x344bcc(0x113,0xa)]),'platform':firstNullableString(_0x4bb872[_0x285ab5(0x1de,0x32)]),'deviceFamily':firstNullableString(_0x4bb872[_0x285ab5(-_0x56b849._0x568fcf,-0x2de)+_0x285ab5(-_0x56b849._0xfa9b3e,-0x82)]),'role':_0x262f05[_0x285ab5(-0xb0,-0x1cf)](firstNullableString,_0x4bb872[_0x285ab5(0x238,0x257)]),'remoteIp':firstNullableString(_0x4bb872[_0x285ab5(_0x56b849._0x46fa21,0x116)]),'receivedAtMs':_0x220223,'status':_0x262f05[_0x344bcc(0x24d,_0x56b849._0x165aed)]};}catch{return null;}}function parsePairResolvedEvent(_0x134036){const _0x226be7={_0x31fcea:0x5bf,_0x3fd127:0x3f1,_0x37c7ac:0x571,_0x7963b2:0x6ab,_0x4e9e39:0x569,_0x294348:0x782,_0x1d0c5f:0x4bb,_0x1b65de:0x547,_0x48b05c:0x4b3,_0x388d64:0x650,_0x362b98:0x789,_0x4a4d78:0x8b3,_0x5c384d:0x7b7,_0x3428fb:0x5c0,_0x17ecc8:0x6cb,_0xf22551:0x5a1,_0x12b9b3:0x4ea,_0x149205:0x5c0,_0x8252fe:0x696,_0x2827ae:0x522,_0xac27ca:0x5c1};function _0x2fc87b(_0x231522,_0x16d3ce){return _0x9ec63e(_0x16d3ce-0x40f,_0x231522);}const _0x1ba7b2={};_0x1ba7b2[_0x2970dc(_0x226be7._0x31fcea,_0x226be7._0x3fd127)]=function(_0x310fcc,_0x18e634){return _0x310fcc!==_0x18e634;},_0x1ba7b2[_0x2970dc(0x6cb,0x7db)]=_0x2970dc(0x5fd,_0x226be7._0x37c7ac),_0x1ba7b2[_0x2fc87b(_0x226be7._0x7963b2,_0x226be7._0x4e9e39)]=_0x2fc87b(0x8ce,_0x226be7._0x294348);const _0x4a7d76=_0x1ba7b2;function _0x2970dc(_0x1f8311,_0x3c697e){return _0x9ec63e(_0x1f8311-0x323,_0x3c697e);}try{const _0x34f672=JSON['parse'](_0x134036);if(_0x4a7d76['kiHZK'](_0x34f672['type'],_0x2970dc(0x547,_0x226be7._0x1d0c5f))||_0x34f672[_0x2970dc(_0x226be7._0x1b65de,_0x226be7._0x48b05c)]!=='device.p'+_0x2fc87b(_0x226be7._0x388d64,0x4cb)+_0x2fc87b(_0x226be7._0x362b98,0x7f7)||!_0x34f672['payload'])return null;const _0x66d648=typeof _0x34f672[_0x2fc87b(0x7bb,0x68d)]['requestI'+'d']===_0x4a7d76[_0x2fc87b(_0x226be7._0x4a4d78,_0x226be7._0x5c384d)]?_0x34f672[_0x2fc87b(0x70a,0x68d)][_0x2970dc(0x38e,0x45b)+'d']['trim']():'';if(!_0x66d648)return null;const _0x5f0729=typeof _0x34f672['payload'][_0x2fc87b(0x683,_0x226be7._0x3428fb)]===_0x4a7d76[_0x2970dc(_0x226be7._0x17ecc8,0x667)]?_0x34f672[_0x2970dc(_0x226be7._0xf22551,0x479)][_0x2fc87b(_0x226be7._0x12b9b3,_0x226be7._0x149205)]:_0x2970dc(_0x226be7._0x8252fe,0x86a),_0x3f2a21=_0x5f0729===_0x2fc87b(0x442,0x580)||_0x5f0729===_0x2fc87b(0x683,_0x226be7._0x2827ae)?_0x5f0729:_0x4a7d76['kxiMp'],_0x2435cc={};return _0x2435cc[_0x2fc87b(0x3cd,0x47a)+'d']=_0x66d648,_0x2435cc[_0x2970dc(0x4d4,_0x226be7._0xac27ca)]=_0x3f2a21,_0x2435cc;}catch{return null;}}function firstString(..._0x2d29bf){const _0x4000ff={_0xe6580b:0x4f7,_0x3706ee:0x706,_0x3e7d8f:0x5cf},_0x31712e={_0x5bc69e:0x300};function _0x4153ea(_0x390701,_0x5a36b){return _0x9ec63e(_0x5a36b-_0x31712e._0x5bc69e,_0x390701);}for(const _0x546029 of _0x2d29bf){if(typeof _0x546029===_0x4153ea(_0x4000ff._0xe6580b,0x5da)&&_0x546029['trim']())return _0x546029[_0x4153ea(_0x4000ff._0x3706ee,_0x4000ff._0x3e7d8f)]();}function _0x249d78(_0x4e00ce,_0x4620ec){return _0x9ec63e(_0x4620ec-0x3cb,_0x4e00ce);}return'';}function firstNullableString(_0x1406c6){const _0x206bfd={};function _0x26ed74(_0x4551f1,_0x8178b5){return _0x431448(_0x4551f1,_0x8178b5-0x2c1);}function _0xfffacb(_0x55fbdc,_0x8d7914){return _0x431448(_0x55fbdc,_0x8d7914- -0x1a4);}_0x206bfd['AOtek']='string';const _0x44d509=_0x206bfd;return typeof _0x1406c6===_0x44d509[_0xfffacb(0x12e,0x51)]&&_0x1406c6[_0x26ed74(0x61f,0x5ea)]()?_0x1406c6[_0xfffacb(0x18b,0x185)]():null;}function extractRequestIdFromMessage(_0x30ee44){const _0x284a6c=_0x30ee44['match'](/requestId[:\s]*([a-f0-9-]+)/i);return _0x284a6c?.[0x1]??null;}import{randomUUID as _0x452365}from'crypto';import{setTimeout as _0x169008}from'timers/promises';import _0x1f8130 from'ws';var HEARTBEAT_INTERVAL_MS=0x2710,HEARTBEAT_TIMEOUT_MS=0x88b8,GATEWAY_RETRY_DELAY_MS=0x4b0,GATEWAY_IDLE_DISCONNECT_DELAY_MS=0x1d4c0,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{[_0x431448(0x301,0x48b)];['relaySoc'+_0x9ec63e(0x38f,0x34e)]=null;[_0x9ec63e(0x2a6,0x161)+_0x431448(0x49e,0x3c0)]=null;['relayCon'+_0x431448(0x1cd,0x11c)]=![];['gatewayC'+_0x431448(0x18,0x218)+'g']=![];[_0x431448(0x254,0x26d)]=!![];[_0x431448(0x38d,0x3cf)+_0x9ec63e(0x2f7,0x2f7)]=0x0;['lastRela'+_0x9ec63e(0x2f8,0x2cb)+_0x9ec63e(0x320,0x2df)]=0x0;['reconnec'+_0x9ec63e(0x1c4,-0x27)]=null;[_0x431448(0x489,0x29f)+_0x9ec63e(0x381,0x1f7)+'r']=null;['gatewayI'+'dleClose'+_0x431448(0x2c7,0xdc)]=null;[_0x9ec63e(0x283,0x317)+_0x9ec63e(0x1c4,0x13)]=null;['pendingG'+_0x431448(0x28,0x1c3)+_0x9ec63e(0x339,0x1e3)]=[];['gatewayH'+'andshake'+'Started']=![];[_0x431448(0x127,0x17b)+'mandStar'+_0x431448(0x477,0x3ad)]=null;[_0x431448(0x1ca,0x115)+_0x9ec63e(0x220,0x283)+_0x9ec63e(0x131,0x2a7)]=null;[_0x9ec63e(0x394,0x443)];constructor(_0x36db7e){const _0x4e139c={_0x392d98:0xa4,_0x5c432c:0xe0,_0x4b519e:0x2bc,_0x2f2e05:0x16d,_0x12045e:0x2,_0x171d3e:0xd3,_0x2b84df:0x1a},_0x22551b={_0x3f26f7:0x3ac};function _0x3f69b5(_0x18f428,_0x54cab9){return _0x431448(_0x18f428,_0x54cab9- -_0x22551b._0x3f26f7);}this[_0x3f69b5(_0x4e139c._0x392d98,0xdf)]=_0x36db7e;function _0x5da857(_0x4877e3,_0x1aef4f){return _0x431448(_0x4877e3,_0x1aef4f- -0x321);}this[_0x3f69b5(0x8f,0x42)]={'running':![],'relayConnected':![],'gatewayConnected':![],'gatewayId':_0x36db7e[_0x5da857(0x209,0x15e)][_0x5da857(-0xcf,-_0x4e139c._0x5c432c)+'d'],'instanceId':_0x36db7e[_0x3f69b5(0x27b,0xd3)][_0x3f69b5(-_0x4e139c._0x4b519e,-_0x4e139c._0x2f2e05)+'Id'],'relayUrl':_0x36db7e[_0x3f69b5(-_0x4e139c._0x12045e,_0x4e139c._0x171d3e)][_0x5da857(0x5e,_0x4e139c._0x2b84df)],'gatewayUrl':_0x36db7e[_0x5da857(0x1fe,0x13c)+'rl'],'clientCount':0x0,'connectedDevices':[],'pendingPairRequests':[],'lastError':null,'lastUpdatedMs':Date['now']()};}[_0x431448(0x13a,0x148)](){const _0x4e2c65={_0x2882e7:0x542,_0x21fd8d:0x2ce,_0x307090:0x482,_0xa04510:0x25c,_0x5cd33b:0x732,_0x214938:0x159,_0x2f3c12:0x307,_0x57423f:0x473,_0x4413f6:0x807,_0x31e7a8:0x229,_0x54aaa8:0x426,_0x5c1dc3:0x760,_0x58bb83:0x5e1,_0xa19fec:0x445,_0x3ea873:0x55b,_0x575f55:0x3cc},_0x4dc541={_0x1db196:0x18};if(!this['stopped'])return;this[_0x4c7949(0x735,_0x4e2c65._0x2882e7)]=![];function _0x2298f0(_0x4f9c8b,_0x17b74c){return _0x431448(_0x4f9c8b,_0x17b74c- -_0x4dc541._0x1db196);}function _0x4c7949(_0x36c843,_0x3d963b){return _0x431448(_0x36c843,_0x3d963b-0x2d5);}this[_0x2298f0(_0x4e2c65._0x21fd8d,_0x4e2c65._0x307090)+_0x2298f0(0x203,_0x4e2c65._0xa04510)]({'running':!![],'gatewayUrl':this['options'][_0x4c7949(0x6ee,_0x4e2c65._0x5cd33b)+'rl']}),this[_0x2298f0(0x33e,0x22b)](_0x2298f0(_0x4e2c65._0x214938,_0x4e2c65._0x2f3c12)+'starting'+_0x2298f0(0x396,0x414)+'Id='+this[_0x2298f0(0x515,_0x4e2c65._0x57423f)][_0x4c7949(_0x4e2c65._0x4413f6,0x754)][_0x2298f0(0xbf,_0x4e2c65._0x31e7a8)+'d']+(_0x2298f0(_0x4e2c65._0x54aaa8,0x414)+'Url=')+this[_0x4c7949(0x879,_0x4e2c65._0x5c1dc3)][_0x2298f0(_0x4e2c65._0x58bb83,_0x4e2c65._0xa19fec)+'rl']),void this[_0x4c7949(_0x4e2c65._0x3ea873,0x6f3)+_0x4c7949(_0x4e2c65._0x575f55,0x541)]();}async[_0x431448(0x2aa,0x423)](){const _0x4ea380={_0x1e4fe2:0x2ee,_0x4d8a52:0x45a,_0x109ca5:0x75b,_0x4fec33:0x76e,_0x45a350:0x375,_0x4c3526:0x548,_0x395916:0x2bb,_0x1db3a4:0x4a3,_0x2ef9e1:0x3f5,_0x226f47:0x67b,_0x2e75a6:0x6cb,_0x586a5d:0x706,_0xfefaa6:0x339,_0x56e8cb:0x348,_0x2090ae:0x53c,_0xb49f23:0x445,_0x31649b:0x50f,_0x3f4fc5:0x3d5,_0x20d8bb:0x458,_0x118bf0:0x398,_0x3d2075:0x394,_0xca1ad0:0x353,_0x3948c4:0x2f7,_0x259323:0x4c2,_0x547e9c:0x62d,_0x1e3f3b:0x5c1,_0xd591cb:0x6be,_0x4f6530:0x49d,_0x19caba:0x67b,_0x1f0137:0x5fe,_0x5780cb:0x3f6,_0x29d197:0x437,_0xba5a06:0x5f7,_0x2613e7:0x7a6,_0x160f76:0x8df,_0x3daecf:0x291,_0xc69d79:0x5d9,_0x106697:0x5ad,_0x517d10:0x616,_0x52ad44:0x4dc,_0x4002c4:0x41d,_0xd164d:0x67b,_0x41d5e8:0x586,_0x20ce7e:0x6b8,_0x5f53a7:0x55a,_0x89034c:0x5b0},_0x3ae785={_0x4edb47:0x39d};function _0x2d0e7c(_0x2264e7,_0x4901f7){return _0x9ec63e(_0x4901f7-0x1d6,_0x2264e7);}function _0x4f5b6e(_0x4641a7,_0x2a7303){return _0x9ec63e(_0x4641a7-_0x3ae785._0x4edb47,_0x2a7303);}const _0x48bda1=(_0x2d0e7c(_0x4ea380._0x1e4fe2,_0x4ea380._0x4d8a52)+_0x4f5b6e(_0x4ea380._0x109ca5,_0x4ea380._0x4fec33)+'4|1|7|10'+_0x2d0e7c(_0x4ea380._0x45a350,_0x4ea380._0x4c3526)+_0x2d0e7c(_0x4ea380._0x395916,_0x4ea380._0x1db3a4))['split']('|');let _0x473320=0x0;while(!![]){switch(_0x48bda1[_0x473320++]){case'0':this['gatewayS'+_0x2d0e7c(_0x4ea380._0x2ef9e1,0x53c)]?.[_0x4f5b6e(_0x4ea380._0x226f47,_0x4ea380._0x2e75a6)]();continue;case'1':this['gatewayH'+_0x2d0e7c(_0x4ea380._0x586a5d,0x583)+_0x2d0e7c(_0x4ea380._0xfefaa6,0x2c9)]=![];continue;case'2':this['relayCon'+_0x4f5b6e(0x45f,_0x4ea380._0x56e8cb)]=![];continue;case'3':this['gatewayS'+_0x2d0e7c(0x588,_0x4ea380._0x2090ae)]=null;continue;case'4':this[_0x2d0e7c(_0x4ea380._0xb49f23,0x455)+'atewayMe'+_0x2d0e7c(0x677,_0x4ea380._0x31649b)]=[];continue;case'5':this[_0x4f5b6e(0x5b0,_0x4ea380._0x3f4fc5)]=!![];continue;case'6':this[_0x4f5b6e(_0x4ea380._0x20d8bb,_0x4ea380._0x118bf0)+_0x2d0e7c(0x25d,_0x4ea380._0x3d2075)+'g']=![];continue;case'7':this[_0x2d0e7c(_0x4ea380._0xca1ad0,_0x4ea380._0x3948c4)+_0x2d0e7c(_0x4ea380._0x259323,0x388)+'tedAtMs']=null;continue;case'8':this[_0x2d0e7c(_0x4ea380._0x547e9c,_0x4ea380._0x1e3f3b)+_0x4f5b6e(_0x4ea380._0xd591cb,0x60f)]();continue;case'9':this[_0x4f5b6e(_0x4ea380._0x4f6530,0x419)+'ket']?.[_0x4f5b6e(_0x4ea380._0x19caba,_0x4ea380._0x1f0137)]();continue;case'10':this[_0x2d0e7c(0x1cd,0x291)+_0x2d0e7c(0x2ed,_0x4ea380._0x5780cb)+'AtMs']=null;continue;case'11':const _0xe34aa8={};_0xe34aa8[_0x4f5b6e(_0x4ea380._0x29d197,_0x4ea380._0xba5a06)]=![],_0xe34aa8[_0x4f5b6e(_0x4ea380._0x2613e7,_0x4ea380._0x160f76)+_0x2d0e7c(0x41d,0x474)]=![],_0xe34aa8[_0x2d0e7c(0x33a,_0x4ea380._0x3daecf)+_0x4f5b6e(0x5bd,0x580)]=![],_0xe34aa8[_0x4f5b6e(_0x4ea380._0xc69d79,0x691)+_0x4f5b6e(0x572,_0x4ea380._0x106697)]=0x0,_0xe34aa8['lastErro'+'r']=null,this[_0x2d0e7c(0x53c,_0x4ea380._0x517d10)+_0x2d0e7c(_0x4ea380._0x52ad44,0x3f0)](_0xe34aa8);continue;case'12':this[_0x4f5b6e(0x49d,_0x4ea380._0x4002c4)+_0x4f5b6e(0x72c,_0x4ea380._0xd164d)]=null;continue;case'13':this[_0x4f5b6e(_0x4ea380._0x41d5e8,_0x4ea380._0x20ce7e)](_0x4f5b6e(0x662,_0x4ea380._0x5f53a7)+_0x2d0e7c(0x49d,0x3e9));continue;case'14':await _0x169008(0x19);continue;case'15':if(this[_0x4f5b6e(_0x4ea380._0x89034c,0x79e)])return;continue;}break;}}async['approveP'+_0x431448(0x3eb,0x308)+'st'](_0x4a0fd5){const _0x120659={_0x2f9c34:0x3af,_0x36faa0:0xb,_0x45b290:0xb5,_0x32a0ff:0x8b,_0x4cf628:0x105,_0x57a447:0x197,_0x5c50a6:0x2e0};function _0x387fc8(_0x5a4c96,_0x160ce7){return _0x9ec63e(_0x160ce7- -0x11f,_0x5a4c96);}const _0x54da4d={};_0x54da4d[_0x48abaf(0x4eb,_0x120659._0x2f9c34)]=_0x387fc8(_0x120659._0x36faa0,0x27)+_0x387fc8(-_0x120659._0x45b290,0xd9)+_0x387fc8(_0x120659._0x32a0ff,-0x3b);function _0x48abaf(_0x294520,_0x11806a){return _0x9ec63e(_0x11806a-0x132,_0x294520);}const _0x531a3b=_0x54da4d,_0x35835a={};_0x35835a[_0x387fc8(-0x80,-0xb4)+'d']=_0x4a0fd5,this[_0x48abaf(_0x120659._0x4cf628,0x16d)+_0x387fc8(0x1e7,_0x120659._0x57a447)+'st'](_0x531a3b[_0x48abaf(0x502,0x3af)],_0x35835a),this['markPair'+_0x387fc8(0x1e4,0x1de)+_0x387fc8(0x381,_0x120659._0x5c50a6)](_0x4a0fd5,_0x387fc8(0x84,0x52));}async[_0x431448(0x3de,0x259)+_0x9ec63e(0x231,0x57)+'t'](_0x408cfc){const _0x12daba={_0x196bb4:0x12c,_0x479147:0x14a,_0x1db1f6:0x1d1,_0x2f0577:0x63,_0x3927d8:0x27a},_0x2187de={_0x4ab2e1:0x12c};function _0x49420f(_0x3447ed,_0x2efca9){return _0x9ec63e(_0x3447ed- -_0x2187de._0x4ab2e1,_0x2efca9);}const _0x385d4e={};function _0x2128b8(_0x3e9b0d,_0x275e9c){return _0x9ec63e(_0x275e9c- -0x185,_0x3e9b0d);}_0x385d4e['requestI'+'d']=_0x408cfc,this[_0x2128b8(-_0x12daba._0x196bb4,-_0x12daba._0x479147)+_0x2128b8(0x334,0x131)+'st'](_0x49420f(0x1a,0x7e)+_0x2128b8(-0x1e,-0x136)+'ct',_0x385d4e),this['markPair'+_0x49420f(_0x12daba._0x1db1f6,_0x12daba._0x2f0577)+_0x2128b8(0x1e7,_0x12daba._0x3927d8)](_0x408cfc,'rejected');}[_0x431448(0x2a8,0x1c9)+'hot'](){const _0x2bdf5a={_0x5b0779:0x55b,_0x5708e7:0x467,_0x44aa7d:0x7d1,_0x8a9eb9:0x55b,_0x107d16:0x5fd,_0x4aa598:0x56d,_0x20f747:0x4fe,_0x5e4b2d:0x4f5,_0x43eb0f:0x534,_0x15bbba:0x779,_0x1e0a0c:0x37b},_0x340ffb={_0x4ab95b:0x3e5},_0x222b06={...this['snapshot']};_0x222b06[_0x4e23eb(_0x2bdf5a._0x5b0779,_0x2bdf5a._0x5708e7)+'dDevices']=[...this[_0x4e23eb(_0x2bdf5a._0x44aa7d,0x788)][_0x4e23eb(_0x2bdf5a._0x8a9eb9,0x535)+_0x528c43(_0x2bdf5a._0x107d16,_0x2bdf5a._0x4aa598)]];function _0x528c43(_0x433f6e,_0x1fd265){return _0x9ec63e(_0x433f6e-_0x340ffb._0x4ab95b,_0x1fd265);}_0x222b06[_0x528c43(_0x2bdf5a._0x20f747,0x6a8)+_0x4e23eb(0x6eb,0x640)+_0x4e23eb(_0x2bdf5a._0x5e4b2d,_0x2bdf5a._0x43eb0f)]=[...this[_0x528c43(_0x2bdf5a._0x15bbba,0x95d)][_0x4e23eb(0x556,_0x2bdf5a._0x1e0a0c)+'airReque'+_0x4e23eb(0x4f5,0x6f9)]];function _0x4e23eb(_0x45e52d,_0x11a835){return _0x9ec63e(_0x45e52d-0x43d,_0x11a835);}return _0x222b06;}async['connectR'+_0x431448(0x3dd,0x26c)](){const _0x2346ab={_0x30f90e:0x7a,_0x4182a9:0x78b,_0xe4c949:0x2d9,_0x36a0f9:0x222,_0x56cf13:0x1c0,_0x234f8e:0x575,_0xbdf9fd:0x5c9,_0x3d281f:0x3d8,_0x5858a8:0x444,_0x3dd47d:0x5c7,_0x5ea2ea:0x5a,_0x41c009:0x7b3,_0x15b829:0x8d7,_0x16d807:0x69f,_0x5a573d:0x526,_0x381733:0x4e8,_0xfd0c01:0x269,_0x1460c7:0x109,_0x472a1c:0x2ef,_0x45feb2:0x208,_0x4c0498:0x3e0,_0x2a0a8b:0xde,_0x18b0fd:0x73f,_0x2ad1e2:0x337,_0x543fd0:0x70b},_0x2ed7db={_0x2d3054:0x1d5,_0x587ce4:0x4f3,_0x469953:0x1a1,_0xe6e9ac:0x169,_0x3fcb15:0x62,_0x433919:0x2c6,_0x53d521:0x255,_0x31c7e4:0x43d,_0xac94dc:0x2c,_0x1e688e:0x1fc,_0x52c9c5:0x1c6,_0x1a0132:0xf,_0x49a615:0x2af,_0x35864d:0x165,_0x804d3e:0xf6,_0x57d7f1:0x157,_0x15cbf4:0x4dd,_0x5dd304:0x27e,_0x4330d1:0xf1,_0x5914be:0x2e,_0x4aef55:0x22f,_0x14084a:0x276,_0x55f7e3:0x1d8,_0x4451ff:0x3aa,_0x160c46:0x47d,_0x3465c4:0x1e6,_0x253a90:0x15,_0x5be53e:0x34f,_0x137544:0x2c2,_0x347998:0x2dc},_0x3e0507={_0x3c733f:0x1d5},_0x1445d9={_0x4f09d0:0x3b2,_0x1cc60b:0x514},_0x27c548={_0x49518c:0x21e},_0x223080={_0xa15e40:0x714,_0x4e114e:0x841,_0x24a4ef:0x2ba},_0x5a2abf={_0x3f8e11:0x5a,_0x39d8a6:0x5e0,_0x24b929:0x5bd,_0x4fa9ec:0x2ca,_0x246e33:0x270,_0x4912dc:0x31b,_0x4a2731:0x819,_0x1bd335:0x412,_0x526a99:0x2ea,_0x231934:0x3b7,_0x3e9ba5:0x2ef},_0x1a0617={_0x547f40:0xeb},_0x176d03={'LHbsX':function(_0x20f050,_0x289740){return _0x20f050(_0x289740);},'hWTch':function(_0x4a333a,_0x38a753){return _0x4a333a(_0x38a753);},'VDkEF':function(_0xd8b817,_0x5aba85){return _0xd8b817*_0x5aba85;},'ZUVIQ':'pong'};if(this[_0xb22b57(0x128,-_0x2346ab._0x30f90e)]||this[_0x48f8c4(_0x2346ab._0x4182a9,0x673)+_0x48f8c4(0x444,_0x2346ab._0xe4c949)]||this[_0xb22b57(_0x2346ab._0x36a0f9,_0x2346ab._0x56cf13)+_0x48f8c4(_0x2346ab._0x234f8e,_0x2346ab._0xbdf9fd)]())return;this[_0xb22b57(0x31e,_0x2346ab._0x3d281f)+_0x48f8c4(_0x2346ab._0x5858a8,_0x2346ab._0x3dd47d)]=!![];function _0x48f8c4(_0x3d8596,_0x4183b9){return _0x9ec63e(_0x3d8596-0x382,_0x4183b9);}this['relayAtt'+_0x48f8c4(0x679,0x855)]+=0x1;const _0x2e2c51=this[_0x48f8c4(0x6f7,0x4f4)+_0xb22b57(0x20c,_0x2346ab._0x5ea2ea)],_0x34cfb2=_0x176d03[_0xb22b57(0x345,0x515)](buildRelayWsUrl,this[_0x48f8c4(_0x2346ab._0x41c009,_0x2346ab._0x15b829)][_0xb22b57(0x33a,0x255)]);this['log'](_0x48f8c4(_0x2346ab._0x16d807,0x899)+_0x48f8c4(0x685,0x88a)+'tempt='+_0x2e2c51+_0x48f8c4(_0x2346ab._0x5a573d,_0x2346ab._0x381733)+_0x176d03['hWTch'](redactRelayWsUrl,_0x34cfb2));function _0xb22b57(_0x239d8e,_0xceb6a9){return _0x9ec63e(_0x239d8e- -_0x1a0617._0x547f40,_0xceb6a9);}const _0xb730ce=new _0x1f8130(_0x34cfb2,{'maxPayload':_0x176d03[_0xb22b57(_0x2346ab._0xfd0c01,0x283)](0x19*0x400,0x400)});this[_0xb22b57(0x15,_0x2346ab._0x1460c7)+'ket']=_0xb730ce,_0xb730ce[_0xb22b57(0x29e,0x42f)](_0xb22b57(0x18e,_0x2346ab._0x472a1c),()=>{if(this[_0x3eba05(0x1e5,_0x5a2abf._0x3f8e11)]||this[_0x499ff6(0x4f1,0x4ba)+'ket']!==_0xb730ce){_0xb730ce[_0x499ff6(0x6cf,_0x5a2abf._0x39d8a6)]();return;}this[_0x3eba05(0x3db,_0x5a2abf._0x24b929)+'necting']=![];function _0x499ff6(_0x9197e,_0x407276){return _0x48f8c4(_0x9197e-0x6f,_0x407276);}this[_0x499ff6(0x5e5,0x7bb)+_0x3eba05(_0x5a2abf._0x4fa9ec,0x4bb)+'yMs']=Date[_0x3eba05(0x343,0x3d2)]();const _0x22a76f={};function _0x3eba05(_0x5ce52b,_0x366353){return _0x48f8c4(_0x5ce52b- -0x3b0,_0x366353);}_0x22a76f['relayCon'+_0x3eba05(_0x5a2abf._0x246e33,_0x5a2abf._0x4912dc)]=!![],_0x22a76f[_0x499ff6(_0x5a2abf._0x4a2731,0x804)+'r']=null,this[_0x3eba05(_0x5a2abf._0x1bd335,_0x5a2abf._0x526a99)+'apshot'](_0x22a76f),this[_0x3eba05(0x1bb,_0x5a2abf._0x231934)](_0x3eba05(_0x5a2abf._0x3e9ba5,0x266)+_0x3eba05(0x213,0x88)+'attempt='+_0x2e2c51),this[_0x3eba05(0x395,0x4d9)+'rtbeat']();}),_0xb730ce['on'](_0xb22b57(_0x2346ab._0x45feb2,_0x2346ab._0x4c0498),(_0x55196e,_0x278bb5)=>{const _0x3a1e6b={_0x2124f8:0x49b};function _0x5af41f(_0x41c66b,_0x2d241e){return _0xb22b57(_0x41c66b-_0x3a1e6b._0x2124f8,_0x2d241e);}void this['handleRe'+_0x5af41f(0x46a,0x56a)+'ge'](_0x55196e,_0x278bb5);}),_0xb730ce['on'](_0x176d03[_0xb22b57(0x13,_0x2346ab._0x2a0a8b)],()=>{function _0x525e8e(_0x5194ea,_0x590d4b){return _0xb22b57(_0x5194ea-0x34,_0x590d4b);}function _0xd68d44(_0x4d4314,_0x52b673){return _0xb22b57(_0x4d4314-0x507,_0x52b673);}this['lastRela'+_0xd68d44(_0x223080._0xa15e40,_0x223080._0x4e114e)+'yMs']=Date[_0x525e8e(_0x223080._0x24a4ef,0x31c)]();}),_0xb730ce[_0x48f8c4(0x70b,_0x2346ab._0x18b0fd)](_0xb22b57(0x239,_0x2346ab._0x2ad1e2),_0x35e628=>{function _0x3c3ab7(_0x29f643,_0x55271a){return _0x48f8c4(_0x29f643- -0x1c1,_0x55271a);}function _0x50fffa(_0xac1229,_0x4bf635){return _0x48f8c4(_0xac1229- -_0x27c548._0x49518c,_0x4bf635);}this[_0x3c3ab7(0x3aa,_0x1445d9._0x4f09d0)](_0x50fffa(_0x1445d9._0x1cc60b,0x432)+'ror:\x20'+_0x176d03[_0x50fffa(0x594,0x409)](String,_0x35e628));}),_0xb730ce[_0x48f8c4(_0x2346ab._0x543fd0,0x765)](_0xb22b57(0x1f3,0x359),(_0x4cb3b1,_0x5869d4)=>{this['relaySoc'+'ket']===_0xb730ce&&(this[_0x94f7f8(_0x2ed7db._0x2d3054,0x1ea)+'ket']=null);function _0x94f7f8(_0x2e3e66,_0x51cee3){return _0xb22b57(_0x51cee3-_0x3e0507._0x3c733f,_0x2e3e66);}this[_0x94f7f8(0x5e4,_0x2ed7db._0x587ce4)+_0x4a098a(0x157,0x180)]=![],this[_0x94f7f8(0x37d,_0x2ed7db._0x469953)+_0x4a098a(_0x2ed7db._0xe6e9ac,-_0x2ed7db._0x3fcb15)]();function _0x4a098a(_0x2457a6,_0x5f48ad){return _0xb22b57(_0x2457a6-0x180,_0x5f48ad);}this[_0x4a098a(0x1b6,_0x2ed7db._0x433919)+_0x4a098a(0x247,0x419)+_0x94f7f8(_0x2ed7db._0x53d521,_0x2ed7db._0x31c7e4)]=null,this[_0x94f7f8(-_0x2ed7db._0xac94dc,0x1a5)+_0x4a098a(0x2b5,_0x2ed7db._0x1e688e)+_0x4a098a(_0x2ed7db._0x52c9c5,-_0x2ed7db._0x1a0132)]=null,this['updateSn'+_0x4a098a(_0x2ed7db._0x49a615,_0x2ed7db._0x35864d)]({'relayConnected':![],'gatewayConnected':![],'clientCount':0x0,'lastError':_0x4cb3b1===0x3e8?null:_0x4a098a(0x2c0,_0x2ed7db._0x804d3e)+_0x94f7f8(0x241,_0x2ed7db._0x57d7f1)+(_0x5869d4[_0x94f7f8(0x6db,_0x2ed7db._0x15cbf4)]()||_0x4cb3b1)}),this[_0x4a098a(_0x2ed7db._0x5dd304,_0x2ed7db._0x4330d1)](_0x94f7f8(_0x2ed7db._0x5914be,_0x2ed7db._0x4aef55)+_0x94f7f8(_0x2ed7db._0x14084a,0x3c0)+_0x94f7f8(_0x2ed7db._0x55f7e3,_0x2ed7db._0x4451ff)+_0x4cb3b1+_0x4a098a(0x1bc,0x1a0)+(_0x5869d4[_0x4a098a(0x488,_0x2ed7db._0x160c46)]()||'<none>')),this['closeGat'+_0x4a098a(_0x2ed7db._0x3465c4,_0x2ed7db._0x253a90)](),this[_0x4a098a(0x3a6,0x1c9)+_0x94f7f8(_0x2ed7db._0x5be53e,_0x2ed7db._0x137544)+_0x94f7f8(_0x2ed7db._0x347998,0x30c)]();});}async['handleRe'+_0x9ec63e(0xba,0x2a9)+'ge'](_0x9c700f,_0xca1f93){const _0x1b911b={_0x338392:0x68e,_0x50f5bd:0x735,_0x50aff5:0x4d5,_0x291640:0x69c,_0x46657c:0x86f,_0xcb0312:0x7ed,_0x1b9d57:0x237,_0x4ce598:0x489,_0x5a04ab:0x607,_0x1b93c5:0x6b0,_0x379e9a:0x5c8,_0x59d6cb:0x3fe,_0x51e0ed:0x342,_0x24e6e2:0x853,_0x5c3214:0x67c,_0x2c385e:0x536,_0x4eccfc:0x556,_0x2815ea:0x568,_0x2f28af:0x2ca,_0x3165bf:0x656,_0x1f02c5:0x344,_0x13ce5e:0x3ab},_0x59315a={};_0x59315a['MphUn']=_0x1263b5(0x502,0x390),_0x59315a[_0x1263b5(_0x1b911b._0x338392,_0x1b911b._0x50f5bd)]=function(_0x335023,_0x2542cc){return _0x335023==_0x2542cc;};const _0x27e079=_0x59315a;this[_0x1c6aa2(0x6a4,_0x1b911b._0x50aff5)+_0x1263b5(_0x1b911b._0x291640,_0x1b911b._0x46657c)+'yMs']=Date[_0x1263b5(0x715,_0x1b911b._0xcb0312)]();if(_0xca1f93){this['forwardO'+_0x1263b5(0x609,0x7c1)+_0x1263b5(0x407,_0x1b911b._0x1b9d57)+_0x1263b5(0x46e,_0x1b911b._0x4ce598)]({'kind':_0x27e079['MphUn'],'data':normalizeBinary(_0x9c700f)});return;}function _0x1c6aa2(_0x32c109,_0x5dbe3){return _0x9ec63e(_0x5dbe3-0x2e1,_0x32c109);}const _0x22492a=normalizeText(_0x9c700f);if(_0x27e079[_0x1263b5(_0x1b911b._0x338392,_0x1b911b._0x5a04ab)](_0x22492a,null))return;const _0xccbc6b=parseControl(_0x22492a);if(_0xccbc6b){this[_0x1c6aa2(0x888,_0x1b911b._0x1b93c5)+'layContr'+'ol'](_0xccbc6b[_0x1263b5(_0x1b911b._0x379e9a,_0x1b911b._0x59d6cb)],_0xccbc6b[_0x1c6aa2(_0x1b911b._0x51e0ed,0x338)]);return;}const _0x166ba9=parseConnectStartIdentity(_0x22492a);_0x166ba9&&this[_0x1c6aa2(_0x1b911b._0x24e6e2,_0x1b911b._0x5c3214)+_0x1c6aa2(0x27a,0x44d)+_0x1c6aa2(0x755,0x596)](_0x166ba9['id'],_0x166ba9[_0x1263b5(_0x1b911b._0x2c385e,0x425)]);function _0x1263b5(_0x1f2ad5,_0x5a9e0e){return _0x9ec63e(_0x1f2ad5-0x3a4,_0x5a9e0e);}const _0x44e5ff={};_0x44e5ff[_0x1c6aa2(0x425,_0x1b911b._0x4eccfc)]=_0x1263b5(0x4c4,0x3d2),_0x44e5ff[_0x1c6aa2(_0x1b911b._0x2815ea,0x401)]=_0x22492a,this[_0x1263b5(0x46f,_0x1b911b._0x2f28af)+_0x1c6aa2(_0x1b911b._0x3165bf,0x546)+_0x1c6aa2(0x2fb,_0x1b911b._0x1f02c5)+_0x1c6aa2(0x286,_0x1b911b._0x13ce5e)](_0x44e5ff);}[_0x9ec63e(0x3cf,0x378)+_0x9ec63e(0x16e,0x22e)+'ol'](_0x268da5,_0x46a2c0){const _0x4260be={_0x37bdae:0x6d,_0x312b8f:0x176,_0x593822:0x100,_0x3112c6:0x287,_0x52a037:0x18a,_0x4e6e76:0x51,_0x564314:0x25d,_0x3df24c:0xe4,_0x2a814a:0x1cf,_0x25c5df:0x1b3,_0x304232:0x275,_0x2fa3ac:0x73,_0x566e40:0x2,_0x196fe7:0x1d0,_0x23b253:0xee,_0x3a2401:0x14c,_0x4e2f44:0x128,_0x57767e:0xd2,_0x3a7db7:0x63,_0x39e3c4:0x186,_0x3b922d:0x2a1,_0x4de2f8:0xba,_0x146b39:0x1f7,_0x2bad7e:0xe8,_0x3aaf76:0x263,_0x25aa29:0x190,_0x234d0f:0x1e6,_0xf863a7:0x1e3,_0x4f6dec:0x97,_0x3339fe:0xa3,_0x3a02a6:0x162,_0x351ed9:0xaf,_0x1dd744:0xd5,_0x34f884:0x81,_0x1c5f4e:0x41,_0x316a16:0xb5,_0x29873d:0x219,_0x2d4ce9:0x1e,_0x5042a1:0x4e,_0x2b1100:0x98,_0x4609fb:0x196,_0x3793f6:0x55,_0x133c40:0x1c9,_0x19dda5:0x1d2,_0x2b00a7:0x1a,_0x1f92ee:0x6d,_0x1a1b10:0x22b,_0x2fb9b2:0x1de,_0x595aeb:0x17a,_0x11ffc4:0x15a,_0x5ad10f:0xa1,_0xc01e3:0x164,_0x5317ee:0x56,_0x14dd89:0x48,_0x3b7b2d:0x78,_0x187e4e:0x17d,_0x12db0d:0x14c,_0x16a1f4:0x4,_0x3d9075:0xb8,_0x2a1ea3:0x1b3,_0x8b5d20:0x73,_0xd704ca:0xa8},_0x13dc81={_0x2f2480:0x2e7};function _0x50f3f6(_0x9ee5f1,_0x40837b){return _0x431448(_0x40837b,_0x9ee5f1- -_0x13dc81._0x2f2480);}const _0x2699f8={'JrrEu':function(_0x56e6bd,_0x215045){return _0x56e6bd(_0x215045);},'fNngA':function(_0x45c725,_0xfad6b4){return _0x45c725===_0xfad6b4;}};if(_0x268da5==='client_c'+_0x50f3f6(-_0x4260be._0x37bdae,-_0x4260be._0x312b8f)||_0x268da5===_0xff210(-_0x4260be._0x593822,-0x194)+_0xff210(_0x4260be._0x3112c6,0xb7)){const _0x1fedb7=this[_0x50f3f6(0x107,0x10b)]['clientCo'+_0xff210(0x47,-0x63)],_0xd3b370=_0x46a2c0??Math[_0xff210(-0x48,-0x1b4)](0x1,this[_0xff210(0xc0,0x15c)]['clientCo'+_0x50f3f6(-0xb8,-0x1c5)]),_0x5389e4=_0x2699f8[_0xff210(0x2ed,0x1ac)](Boolean,this[_0xff210(_0x4260be._0x52a037,-_0x4260be._0x4e6e76)+_0xff210(-0x8c,-0x18d)+_0x50f3f6(-0x20b,-0x3b9)]);_0xd3b370>0x0&&this['clientDe'+_0xff210(-_0x4260be._0x564314,-0x86)+_0x50f3f6(0xc6,0x54)]==null&&(this[_0x50f3f6(-0x16c,-0x2c3)+_0x50f3f6(-0xdb,-0xdf)+'tedAtMs']=Date[_0x50f3f6(_0x4260be._0x3df24c,-0x115)]());const _0x249ec6={};_0x249ec6[_0xff210(-_0x4260be._0x2a814a,0x4)+'unt']=_0xd3b370,this[_0x50f3f6(_0x4260be._0x25c5df,_0x4260be._0x304232)+_0x50f3f6(-_0x4260be._0x2fa3ac,_0x4260be._0x566e40)](_0x249ec6);if(_0x2699f8[_0x50f3f6(-_0x4260be._0x196fe7,-_0x4260be._0x23b253)](_0xd3b370,0x0))this[_0x50f3f6(0x23,_0x4260be._0x3a2401)+_0x50f3f6(_0x4260be._0x4e2f44,_0x4260be._0x57767e)+'t'](),this[_0x50f3f6(0x84,-_0x4260be._0x3a7db7)+_0x50f3f6(-_0x4260be._0x39e3c4,-0x201)+_0xff210(-0xc0,-0x18d)](_0xff210(-0x5b,-0x194)+_0xff210(-_0x4260be._0x3b922d,-0x106)+'o');else{this['cancelGa'+_0xff210(_0x4260be._0x4de2f8,0x1cf)+'eClose'](_0x50f3f6(-_0x4260be._0x146b39,-0x277)+_0x50f3f6(-_0x4260be._0x2bad7e,-_0x4260be._0x3aaf76)+'stored');shouldRecycleGatewayForFreshClient(_0x1fedb7,_0xd3b370,this[_0x50f3f6(_0x4260be._0x25aa29,_0x4260be._0x234d0f)+_0xff210(-0x118,0xb5)](),_0x5389e4)&&(this[_0xff210(-_0x4260be._0xf863a7,-0x4f)](_0xff210(_0x4260be._0x4f6dec,_0x4260be._0x3339fe)+'recycle\x20'+_0xff210(0x90,_0x4260be._0x3a02a6)+_0x50f3f6(-0xd6,-0x4)+'esh\x20clie'+_0xff210(-0x1cc,-_0x4260be._0x351ed9)+'d'),this[_0x50f3f6(-_0x4260be._0x1dd744,-_0x4260be._0x34f884)+'eway']());if(this[_0x50f3f6(_0x4260be._0x25aa29,0x344)+_0xff210(_0x4260be._0x1c5f4e,_0x4260be._0x316a16)]()){const _0x54d886={};_0x54d886[_0xff210(-0x2a2,-0x17d)+_0xff210(-_0x4260be._0x29873d,-0x18)]=!![],_0x54d886[_0x50f3f6(0x19b,0xa0)+'r']=null,this[_0xff210(0x35a,0x208)+_0xff210(-0x1c2,-_0x4260be._0x2d4ce9)](_0x54d886),this['log'](_0x50f3f6(_0x4260be._0x5042a1,0xf9)+'reuse\x20op'+_0xff210(-0x2ae,-0xe4)+_0x50f3f6(-0x225,-_0x4260be._0x2b1100)+_0x50f3f6(_0x4260be._0x4609fb,_0x4260be._0x3793f6)+this[_0xff210(-0x24e,-0x16f)+_0x50f3f6(0x1aa,_0x4260be._0x133c40)](this[_0x50f3f6(-_0x4260be._0x19dda5,-_0x4260be._0x2b00a7)+_0x50f3f6(-_0x4260be._0x1f92ee,-_0x4260be._0x1a1b10)+_0x50f3f6(-0x15c,-_0x4260be._0x2fb9b2)])+(_0x50f3f6(0x155,_0x4260be._0x595aeb)+_0xff210(0x175,0x8b)+'d=')+this[_0xff210(0x6b,-0xee)+'andshake'+'Started']);}this['ensureGa'+'tewayCon'+'nected']();}return;}function _0xff210(_0xca4645,_0x33ac29){return _0x431448(_0xca4645,_0x33ac29- -0x292);}if(_0x268da5===_0xff210(-0x2e7,-0x1a2)+_0xff210(_0x4260be._0x2b1100,-0x41)+_0x50f3f6(-0x1bf,-0x37)){const _0x45ca7f=(_0xff210(-_0x4260be._0x34f884,-_0x4260be._0x11ffc4)+'4')[_0xff210(-0xa6,-0x168)]('|');let _0x1f669d=0x0;while(!![]){switch(_0x45ca7f[_0x1f669d++]){case'0':this[_0xff210(-0x3f,0xd9)+_0xff210(_0x4260be._0x5ad10f,-0x131)+_0x50f3f6(-0x1e2,-0x3d6)]('client_d'+_0x50f3f6(-0x96,-0x8)+_0x50f3f6(-0x1bf,-_0x4260be._0xc01e3));continue;case'1':this[_0x50f3f6(-0x143,0x42)+_0x50f3f6(0x120,0x1e3)+_0xff210(_0x4260be._0x5317ee,-0x145)]=![];continue;case'2':this[_0xff210(_0x4260be._0x14dd89,_0x4260be._0x3b7b2d)+_0xff210(0x106,_0x4260be._0x187e4e)+'t']();continue;case'3':const _0xad0b51={};_0xad0b51[_0xff210(_0x4260be._0x12db0d,_0x4260be._0x16a1f4)+_0x50f3f6(-_0x4260be._0x3d9075,-0x2b5)]=0x0,this[_0x50f3f6(_0x4260be._0x2a1ea3,0x340)+_0x50f3f6(-_0x4260be._0x8b5d20,_0x4260be._0xd704ca)](_0xad0b51);continue;case'4':return;}break;}}}[_0x9ec63e(0xcb,0x20d)+_0x431448(0x1c2,0x2bf)+'tewayMes'+'sage'](_0x51e18a){const _0x440578={_0x287ef4:0x41,_0xb77b41:0x73,_0x3a4879:0x14c,_0x4ef046:0x1ea,_0x5b2cbc:0xa5,_0x325161:0x81,_0x507c2f:0x4f,_0x1c3f85:0x1db,_0x4cc84f:0x19,_0x103535:0x1b2,_0x14a6cb:0xe,_0xe4ab1e:0x4c,_0x528273:0x37c,_0x3c103b:0x2b9,_0x7fb4f:0x101,_0x3a697d:0x239,_0x2512dd:0x1ee,_0x512c1d:0x380,_0x47b1b1:0x2e2,_0x1d58fa:0x250,_0x23981b:0x1b5,_0x52a47e:0x1ee,_0x35bbae:0xee,_0x17188d:0xc7,_0x14a582:0x19d,_0x1078c4:0x27a,_0x4047cc:0x1c6,_0x53f928:0x26a,_0x44d345:0x196,_0x546d29:0x47,_0x4ee9e8:0x1a6,_0x221339:0xa,_0x124e76:0xe3,_0x15d23e:0x49,_0x1f1b86:0xf1},_0x5a0047={_0x33e146:0x39d},_0x2cf66d={};function _0x4a4d97(_0x20790d,_0x54fc04){return _0x431448(_0x54fc04,_0x20790d- -0x292);}_0x2cf66d[_0x2767e9(0x4f,-_0x440578._0x287ef4)]=function(_0x566ee1,_0x66ae3b){return _0x566ee1!==_0x66ae3b;};function _0x2767e9(_0x54c52e,_0x12ada9){return _0x431448(_0x54c52e,_0x12ada9- -_0x5a0047._0x33e146);}const _0x37bed5=_0x2cf66d,_0x3f5141=_0x51e18a[_0x4a4d97(0x3d,_0x440578._0xb77b41)]==='text'&&isConnectHandshakeRequest(_0x51e18a['text']),_0x2945c5=this[_0x2767e9(-0x257,-0x9d)+_0x2767e9(-_0x440578._0x3a4879,0x23)];if(!_0x2945c5||_0x37bed5['yyNNA'](_0x2945c5[_0x2767e9(0x1d,-_0x440578._0x4ef046)+'te'],_0x1f8130[_0x2767e9(0x57,0x87)])){this[_0x2767e9(-0xcb,-0x1ab)+'tewayCon'+_0x2767e9(0x6f,-_0x440578._0x5b2cbc)]();if(shouldDropStaleConnectAfterGatewayReopen(Boolean(_0x2945c5&&_0x2945c5[_0x4a4d97(-0xdf,_0x440578._0x325161)+'te']===_0x1f8130[_0x4a4d97(0x192,0x307)]),_0x3f5141)){this[_0x4a4d97(-_0x440578._0x507c2f,-0x24)]('stale\x20co'+_0x2767e9(-_0x440578._0x1c3f85,-0xe9)+_0x4a4d97(_0x440578._0x4cc84f,0x1b4)+_0x2767e9(_0x440578._0x103535,-_0x440578._0x14a6cb)+'way\x20reop'+_0x4a4d97(-_0x440578._0xe4ab1e,0x189)+_0x2767e9(-0x232,-0x9c)+_0x2767e9(-_0x440578._0x528273,-_0x440578._0x3c103b)+_0x4a4d97(-0x2,-_0x440578._0x7fb4f));return;}this[_0x2767e9(-_0x440578._0x3a697d,-0x187)+_0x4a4d97(-_0x440578._0x2512dd,-_0x440578._0x512c1d)+_0x2767e9(-0x2dd,-0xfb)+'e'](_0x51e18a);return;}if(!this[_0x2767e9(-_0x440578._0x47b1b1,-0x1f9)+'andshake'+_0x2767e9(-0x18c,-_0x440578._0x1d58fa)]){if(!_0x3f5141){this[_0x2767e9(-_0x440578._0x23981b,-0x187)+_0x4a4d97(-_0x440578._0x52a47e,-0xce)+'ayMessag'+'e'](_0x51e18a);return;}this[_0x4a4d97(-_0x440578._0x35bbae,-_0x440578._0x17188d)+'andshake'+'Started']=!![],this[_0x4a4d97(-0x4f,-_0x440578._0x14a582)](_0x4a4d97(0xa3,_0x440578._0x1078c4)+_0x2767e9(-_0x440578._0x4047cc,-_0x440578._0x53f928)+'e\x20starte'+_0x4a4d97(0x1a7,_0x440578._0x44d345)+'='+this[_0x4a4d97(_0x440578._0x546d29,0x131)+'atewayMe'+_0x2767e9(_0x440578._0x4ee9e8,-_0x440578._0x221339)][_0x2767e9(-0x84,-0x119)]);}this[_0x4a4d97(_0x440578._0x124e76,_0x440578._0x15d23e)+_0x2767e9(-0x85,_0x440578._0x1f1b86)](_0x51e18a);}[_0x431448(0x265,0x1f2)+_0x9ec63e(0x3bb,0x534)+_0x9ec63e(0x29e,0x409)](){const _0x1072a6={_0x4dbef1:0x183,_0x41195e:0x80,_0x2b7931:0x74,_0x2361c4:0x1df,_0x3eed94:0x154,_0x24b379:0x168,_0x30a38d:0x19f,_0x32633d:0x393,_0x2be737:0x1c2,_0x154443:0x22b,_0x191b5a:0x2b2,_0x2eb336:0x1c5,_0x20fd41:0x2dd,_0x11b42b:0x235,_0x3abf0e:0x18d,_0x10f061:0x4f7,_0xfd65df:0x26,_0x1ca9e2:0x4bb,_0x30b20c:0x128,_0x574787:0x8,_0x1d575b:0x541,_0x282efc:0xb5,_0x5235d7:0x7c,_0x129971:0x14b,_0x5d769e:0x25f},_0xe66f02={_0x15648b:0x41b,_0x57fd7e:0x4db,_0x161e27:0x320,_0x3e2bee:0x47,_0xa90418:0x1e7,_0x4c7cf8:0x107,_0x38e95d:0x2bf,_0x5a6781:0x35d,_0x51c4d3:0x14e,_0x456938:0x37c,_0x535f8c:0x5b5,_0x14430e:0x58e,_0x3c5d7d:0x70,_0x15bda5:0x45,_0x422c7c:0x1c9,_0x7147b8:0x5e9,_0x40ce8f:0xc7,_0x13bd85:0x183,_0x2d6fdb:0x194,_0x551114:0x93,_0x378f5e:0x2c,_0x6666c6:0x194,_0x47a1cb:0x42d,_0xdae6b6:0x241,_0x375030:0x4bb,_0xdf2726:0x1e1,_0x103729:0x23e,_0x395a00:0xaa,_0x5eeb10:0x61,_0x309e96:0xad,_0x416d32:0x68d,_0x161b88:0xb2,_0x4b958a:0x1a3},_0x14c7bd={_0x1f4dc9:0x3b3},_0x6ba5a9={_0x4aeb9c:0x39b,_0x245646:0x3b7,_0x567c61:0x7a},_0x28ebbc={_0x5d60d8:0x213,_0x27b4de:0x65},_0x25e481={_0x5b89ea:0x569,_0x5e4695:0x549,_0xfa1283:0x33c,_0x11e866:0x1a8,_0x2d3cb9:0x36e,_0x5e5074:0x703,_0x59c6fb:0x1b9,_0xf504a0:0x70,_0x590847:0x6c7,_0x5cb15b:0x52d,_0x2a30f4:0x46b,_0x4e175c:0x576,_0x37c3fc:0x49e,_0x405b47:0x570,_0x273545:0x59d,_0x525078:0x53f,_0x2d0fda:0x5c9,_0xea4b90:0x631,_0x22c9a6:0x66a,_0x23b5e6:0x481,_0x4f7fea:0x569,_0x27dd29:0x41f,_0x3307a2:0x271,_0x59c076:0x495,_0x106a7a:0x63c,_0x6c8e64:0x210,_0x5e66d0:0x771,_0x1be6de:0x8bb,_0x1762bc:0x441,_0x149d1d:0x217},_0x1b64a6={_0x167e18:0x262},_0x238950={_0x4e2f58:0x9a};if(this[_0x491aa3(-0x2b,0xcb)]||!this[_0x491aa3(0xcf,0x204)+'pen']()||this[_0x491aa3(-_0x1072a6._0x4dbef1,0x38)+_0x491aa3(-_0x1072a6._0x41195e,-_0x1072a6._0x2b7931)+'g']||this[_0x491aa3(_0x1072a6._0x2361c4,0x28a)+_0x491aa3(0xaf,_0x1072a6._0x3eed94)]()||!this[_0x491aa3(-0x158,-_0x1072a6._0x24b379)+_0x491aa3(-0x68,-0x1b6)]())return;function _0x3365a4(_0xa0b998,_0x2bd5a6){return _0x431448(_0x2bd5a6,_0xa0b998-_0x238950._0x4e2f58);}this[_0x3365a4(0x334,0x455)+_0x491aa3(0x1c9,0x1f1)+_0x3365a4(0x3f9,0x488)](_0x491aa3(_0x1072a6._0x30a38d,0x125)+'reconnec'+_0x3365a4(_0x1072a6._0x32633d,0x2ba)+_0x3365a4(_0x1072a6._0x2be737,_0x1072a6._0x154443)),this['gatewayC'+_0x3365a4(_0x1072a6._0x191b5a,_0x1072a6._0x2eb336)+'g']=!![],this[_0x3365a4(_0x1072a6._0x20fd41,_0x1072a6._0x11b42b)](_0x491aa3(0x9d,-0x131)+_0x3365a4(0x152,_0x1072a6._0x3abf0e)+_0x491aa3(-0xe9,-0x141)+'l='+this[_0x3365a4(0x525,0x498)][_0x3365a4(_0x1072a6._0x10f061,0x5a6)+'rl']);const _0x594d1e={};_0x594d1e[_0x491aa3(0x100,_0x1072a6._0xfd65df)+'ad']=0x19*0x400*0x400;function _0x491aa3(_0x2f2fd1,_0x4cf59c){return _0x431448(_0x4cf59c,_0x2f2fd1- -0x298);}const _0x47f4bd=new _0x1f8130(this['options']['gatewayU'+'rl'],_0x594d1e);this[_0x3365a4(0x39a,_0x1072a6._0x1ca9e2)+_0x491aa3(_0x1072a6._0x30b20c,-_0x1072a6._0x574787)]=_0x47f4bd,_0x47f4bd[_0x3365a4(0x47d,_0x1072a6._0x1d575b)]('open',()=>{if(this[_0x587cbe(_0x25e481._0x5b89ea,_0x25e481._0x5e4695)]||this['gatewayS'+'ocket']!==_0x47f4bd){_0x47f4bd[_0x192a13(_0x25e481._0xfa1283,0x37a)]();return;}this['gatewayC'+'onnectin'+'g']=![],this[_0x192a13(_0x25e481._0x11e866,_0x25e481._0x2d3cb9)+_0x587cbe(_0x25e481._0x5e5074,0x694)+_0x192a13(0x151,_0x25e481._0x59c6fb)]=![];function _0x587cbe(_0x3d76fa,_0xff14eb){return _0x3365a4(_0x3d76fa-_0x1b64a6._0x167e18,_0xff14eb);}this[_0x587cbe(0x411,0x482)+'onnected'+_0x192a13(0x18f,-_0x25e481._0xf504a0)]=Date[_0x587cbe(_0x25e481._0x590847,_0x25e481._0x5cb15b)]();const _0x252071={};_0x252071[_0x587cbe(0x411,_0x25e481._0x2a30f4)+_0x587cbe(_0x25e481._0x4e175c,0x5d1)]=!![];function _0x192a13(_0x134268,_0x14afba){return _0x3365a4(_0x134268- -0x96,_0x14afba);}_0x252071['lastErro'+'r']=null,this[_0x192a13(_0x25e481._0x37c3fc,0x56d)+_0x587cbe(_0x25e481._0x405b47,_0x25e481._0x273545)](_0x252071),this[_0x587cbe(_0x25e481._0x525078,_0x25e481._0x2d0fda)](_0x587cbe(_0x25e481._0xea4b90,0x5bb)+_0x192a13(0x17c,0x211)+_0x587cbe(_0x25e481._0x22c9a6,0x583)+_0x192a13(0x182,0x1e1)+_0x587cbe(_0x25e481._0x23b5e6,_0x25e481._0x4f7fea)+this[_0x587cbe(_0x25e481._0x27dd29,_0x25e481._0x3307a2)+_0x192a13(_0x25e481._0x59c076,_0x25e481._0x106a7a)](this['clientDe'+_0x192a13(_0x25e481._0x6c8e64,0x3ee)+_0x587cbe(0x6a9,0x6f2)])),this[_0x587cbe(_0x25e481._0x5e66d0,_0x25e481._0x1be6de)+_0x587cbe(_0x25e481._0x1762bc,0x484)+_0x192a13(0x1b0,_0x25e481._0x149d1d)+'ges']();}),_0x47f4bd['on'](_0x491aa3(_0x1072a6._0x282efc,_0x1072a6._0x5235d7),(_0x551052,_0x57b634)=>{const _0xbf9c83={_0x48629b:0xb};function _0x5a865b(_0x1eae45,_0x35a8e3){return _0x3365a4(_0x35a8e3-_0xbf9c83._0x48629b,_0x1eae45);}function _0x130459(_0x43f86b,_0x5efef2){return _0x3365a4(_0x5efef2- -0x36a,_0x43f86b);}this['handleGa'+_0x130459(-0x3f,-_0x28ebbc._0x5d60d8)+_0x5a865b(_0x28ebbc._0x27b4de,0x1c9)](_0x551052,_0x57b634);}),_0x47f4bd['once']('error',_0x77553a=>{const _0x28fefc={_0x1242c2:0x139},_0x2c084e={_0x1cf0b4:0x18};function _0x15b596(_0x4f43ff,_0x3d414c){return _0x3365a4(_0x3d414c- -_0x2c084e._0x1cf0b4,_0x4f43ff);}function _0x3197ef(_0x10cdc9,_0x4c6b74){return _0x3365a4(_0x10cdc9- -_0x28fefc._0x1242c2,_0x4c6b74);}this[_0x3197ef(0x1a4,_0x6ba5a9._0x4aeb9c)](_0x15b596(0x397,_0x6ba5a9._0x245646)+_0x3197ef(_0x6ba5a9._0x567c61,0x162)+String(_0x77553a));}),_0x47f4bd[_0x491aa3(_0x1072a6._0x129971,_0x1072a6._0x5d769e)](_0x491aa3(0xa0,0x28d),(_0x3b49bd,_0x15adf6)=>{this[_0x2bd2ee(_0xe66f02._0x15648b,0x4b4)+_0x2bd2ee(_0xe66f02._0x57fd7e,_0xe66f02._0x161e27)]===_0x47f4bd&&(this[_0x47987a(0x110,_0xe66f02._0x3e2bee)+_0x47987a(_0xe66f02._0xa90418,_0xe66f02._0x4c7cf8)]=null);function _0x47987a(_0xb9dba4,_0x3e3e51){return _0x491aa3(_0x3e3e51- -0x21,_0xb9dba4);}this['gatewayC'+_0x47987a(0xc3,-0xa1)+'g']=![],this[_0x2bd2ee(_0xe66f02._0x38e95d,_0xe66f02._0x5a6781)+_0x47987a(0x206,_0xe66f02._0x51c4d3)+_0x2bd2ee(0x268,_0xe66f02._0x456938)]=![],this['gatewayC'+'onnected'+'AtMs']=null,this[_0x2bd2ee(_0xe66f02._0x535f8c,_0xe66f02._0x14430e)+_0x47987a(_0xe66f02._0x3c5d7d,-_0xe66f02._0x15bda5)]({'gatewayConnected':![],'lastError':_0x3b49bd===0x3e8?this['snapshot'][_0x47987a(0x30,_0xe66f02._0x422c7c)+'r']:_0x2bd2ee(0x450,_0xe66f02._0x7147b8)+_0x47987a(_0xe66f02._0x40ce8f,0x9b)+(_0x15adf6[_0x47987a(_0xe66f02._0x13bd85,_0xe66f02._0x2d6fdb)]()||_0x3b49bd)}),this[_0x47987a(-0x1f1,-0x76)]('gateway\x20'+'disconne'+_0x47987a(0x1e,_0xe66f02._0x551114)+'e='+_0x3b49bd+_0x2bd2ee(0x29c,0xb0)+(_0x15adf6[_0x47987a(_0xe66f02._0x378f5e,_0xe66f02._0x6666c6)]()||_0x47987a(-0xe8,-0xc9))+(_0x2bd2ee(_0xe66f02._0x47a1cb,_0xe66f02._0xdae6b6)+_0x2bd2ee(_0xe66f02._0x375030,0x619)+_0x47987a(-0x3b7,-_0xe66f02._0xdf2726))+this[_0x2bd2ee(_0xe66f02._0x103729,_0xe66f02._0x395a00)+'ince'](this['clientDe'+_0x47987a(_0xe66f02._0x5eeb10,-_0xe66f02._0x309e96)+_0x2bd2ee(0x4c8,_0xe66f02._0x416d32)]));function _0x2bd2ee(_0x9754d9,_0xd781ab){return _0x491aa3(_0x9754d9-_0x14c7bd._0x1f4dc9,_0xd781ab);}this[_0x47987a(0x290,_0xe66f02._0x161b88)+_0x47987a(-0x157,-0xa4)+_0x47987a(0x176,_0xe66f02._0x4b958a)]();});}['handleGa'+_0x431448(0xe4,0xbd)+_0x9ec63e(0xca,0xbd)](_0x617f2,_0xb72e92){const _0x3ecf87={_0x1919c7:0x10a,_0x33792f:0x237,_0xb6b90:0x6ac,_0x28571e:0x631,_0x475c9b:0x3e2,_0x2caf96:0x2b4,_0x98b067:0x53,_0x541c94:0x684,_0x309161:0x4f9,_0x46faa0:0x68f,_0x49f2ed:0x307,_0x524c31:0x409,_0x1ac570:0x429,_0x3f2d60:0x388,_0x41608f:0x304,_0x273998:0x24e,_0x95e12b:0x125},_0xcb8d3b={_0x3bb8fa:0x2c3};function _0x1d8873(_0x449915,_0x1079ce){return _0x431448(_0x1079ce,_0x449915- -0x50);}const _0x5a0772={'HXnWe':function(_0x3fdd01,_0x28bfca){return _0x3fdd01!==_0x28bfca;},'PVtma':function(_0x2c65eb,_0xd003f8){return _0x2c65eb(_0xd003f8);}},_0x1b8929=this[_0x1d8873(_0x3ecf87._0x1919c7,_0x3ecf87._0x33792f)+_0x2947f0(_0x3ecf87._0xb6b90,_0x3ecf87._0x28571e)];if(!_0x1b8929||_0x5a0772[_0x1d8873(0x3f0,_0x3ecf87._0x475c9b)](_0x1b8929[_0x1d8873(0x163,0x4d)+'te'],_0x1f8130[_0x1d8873(0x3d4,_0x3ecf87._0x2caf96)]))return;if(_0xb72e92){_0x1b8929['send'](_0x5a0772[_0x2947f0(0x366,0x18c)](normalizeBinary,_0x617f2));return;}const _0x3a08b4=_0x5a0772[_0x1d8873(_0x3ecf87._0x98b067,-0xe2)](normalizeText,_0x617f2);if(_0x3a08b4==null)return;const _0x300ca8=parsePairingRequestFromError(_0x3a08b4);_0x300ca8&&this['addPendi'+'ngPairRe'+_0x2947f0(_0x3ecf87._0x541c94,0x59d)](_0x300ca8);function _0x2947f0(_0x1fee49,_0x4b0e1a){return _0x431448(_0x4b0e1a,_0x1fee49-_0xcb8d3b._0x3bb8fa);}const _0x62d829=parsePairResolvedEvent(_0x3a08b4);_0x62d829&&this[_0x2947f0(_0x3ecf87._0x309161,_0x3ecf87._0x46faa0)+_0x1d8873(_0x3ecf87._0x49f2ed,0x22c)+_0x1d8873(_0x3ecf87._0x524c31,_0x3ecf87._0x1ac570)](_0x62d829[_0x2947f0(_0x3ecf87._0x3f2d60,_0x3ecf87._0x41608f)+'d'],_0x62d829['decision']),_0x1b8929[_0x1d8873(_0x3ecf87._0x273998,_0x3ecf87._0x95e12b)](_0x3a08b4);}['flushPen'+'dingGate'+_0x9ec63e(0x152,0xcc)+_0x9ec63e(0x19c,0xe0)](){const _0xf3fce3={_0x3c47c8:0x175,_0x2f8d08:0x208,_0x17f8f9:0xb5,_0x566153:0x93,_0x220e46:0x12b,_0x1881bc:0x57,_0xbf1dd2:0x55,_0x15f1ad:0xda,_0x1ae948:0xd4,_0x3ab5a3:0x193,_0x1d80b9:0x19b,_0x24b3e5:0x11b,_0x4876ad:0x90},_0x22ce34={_0x40db52:0x131},_0x4a79fb={};_0x4a79fb['yCBcT']=_0x5c6dc6(0x19a,-0x11);function _0x5c6dc6(_0x2f247a,_0x575afa){return _0x9ec63e(_0x575afa- -_0x22ce34._0x40db52,_0x2f247a);}const _0x7de3c6=_0x4a79fb,_0x241977=this[_0x5c6dc6(-0x28,_0xf3fce3._0x3c47c8)+_0x5c6dc6(0x3a1,0x235)];if(!_0x241977||_0x241977[_0x500389(-0xc5,0x3f)+'te']!==_0x1f8130['OPEN'])return;const _0x2cfb28=[],_0x34d693=[...this['pendingG'+_0x5c6dc6(0xc0,0x38)+_0x5c6dc6(0x14e,_0xf3fce3._0x2f8d08)]];this[_0x5c6dc6(0x52,0x14e)+_0x500389(-_0xf3fce3._0x17f8f9,0x137)+_0x500389(0x11b,-_0xf3fce3._0x566153)]=[];for(const _0x576c1b of _0x34d693){if(!this[_0x5c6dc6(-0x165,0x19)+'andshake'+_0x500389(-_0xf3fce3._0x220e46,-0xb4)]){if(_0x576c1b[_0x500389(_0xf3fce3._0x1881bc,_0xf3fce3._0xbf1dd2)]!==_0x7de3c6[_0x500389(-0x168,0x29)]||!isConnectHandshakeRequest(_0x576c1b[_0x500389(-0xfe,_0xf3fce3._0x15f1ad)])){_0x2cfb28[_0x500389(-0xa3,-0x18c)](_0x576c1b);continue;}this[_0x500389(-_0xf3fce3._0x1ae948,0x70)+_0x5c6dc6(0xec,0x27c)+'Started']=!![];}this[_0x5c6dc6(_0xf3fce3._0x3ab5a3,0x1ea)+_0x500389(0x216,_0xf3fce3._0x1d80b9)](_0x576c1b);}function _0x500389(_0xd4e299,_0x293147){return _0x9ec63e(_0xd4e299- -0x21e,_0x293147);}this[_0x500389(0x61,0x192)+_0x500389(-0xb5,_0xf3fce3._0x17f8f9)+_0x500389(_0xf3fce3._0x24b3e5,-_0xf3fce3._0x4876ad)]=_0x2cfb28;}[_0x9ec63e(0x31b,0x1b5)+'teway'](_0x1c356c){const _0x3bd491={_0x4e9962:0x28f,_0x48e262:0x3c1,_0x13e616:0x17f,_0xd21f93:0x3d,_0x33477c:0x1a5,_0x3c5bed:0x172,_0x1bdc24:0xb4,_0x2d6d51:0x27f,_0x1e7522:0x227,_0x288cc5:0x41b,_0x1f7023:0x209,_0x3cc96c:0xaf,_0x188619:0x171,_0x55bc2d:0x14a,_0x21a803:0x245,_0xb81d49:0xe2,_0x280971:0xc5},_0x181c9d={_0x2e4b9e:0x17},_0x1430d8={_0x4c3142:0x329},_0xadc742={'NsEco':_0x4a33df(0x109,0x1b),'kTrbp':function(_0x4ecfa5,_0x1395b1,_0x277043){return _0x4ecfa5(_0x1395b1,_0x277043);}};function _0x5d5e69(_0x237f89,_0x57a55c){return _0x9ec63e(_0x57a55c- -_0x1430d8._0x4c3142,_0x237f89);}const _0x4058f2=this[_0x4a33df(_0x3bd491._0x4e9962,_0x3bd491._0x48e262)+_0x5d5e69(_0x3bd491._0x13e616,_0x3bd491._0xd21f93)];if(!_0x4058f2||_0x4058f2[_0x4a33df(0x142,0x17c)+'te']!==_0x1f8130[_0x4a33df(0x3b3,0x40a)]){this[_0x4a33df(_0x3bd491._0x33477c,0x15c)+_0x4a33df(0x33,0x14)+_0x5d5e69(-0x16d,-0xe1)+'e'](_0x1c356c);return;}function _0x4a33df(_0x23cd7e,_0x2fa444){return _0x9ec63e(_0x23cd7e- -_0x181c9d._0x2e4b9e,_0x2fa444);}if(_0x1c356c[_0x5d5e69(-_0x3bd491._0x3c5bed,-_0x3bd491._0x1bdc24)]===_0xadc742[_0x4a33df(_0x3bd491._0x2d6d51,0x1fc)]){const _0x50a275=_0xadc742[_0x4a33df(_0x3bd491._0x1e7522,_0x3bd491._0x288cc5)](patchConnectRequestGatewayAuth,_0x1c356c[_0x5d5e69(-0x185,-_0x3bd491._0x1f7023)],readOpenClawInfo());_0x50a275['injected']&&this[_0x5d5e69(0x8f,-0x140)]('gateway\x20'+_0x4a33df(0x47,-0x61)+_0x5d5e69(-_0x3bd491._0x3cc96c,-0x264)+_0x5d5e69(-_0x3bd491._0x188619,-_0x3bd491._0x55bc2d)+'e=passwo'+'rd');_0x4058f2[_0x5d5e69(-0x6b,-0xe5)](_0x50a275[_0x4a33df(0x109,_0x3bd491._0x21a803)]);return;}_0x4058f2['send'](_0x1c356c[_0x5d5e69(-_0x3bd491._0xb81d49,-_0x3bd491._0x280971)]);}[_0x9ec63e(0x3b,0x23c)+_0x9ec63e(0x2b6,0x118)+'st'](_0x32675d,_0x173242){const _0x4e5a86={_0x568d13:0x672,_0x297696:0x5dd},_0x3bab0f={_0x3f106d:0x2d1},_0x1049b1={_0x150a19:0x153};function _0x535348(_0x1e7965,_0x2d286e){return _0x9ec63e(_0x1e7965-_0x1049b1._0x150a19,_0x2d286e);}function _0x41ae1c(_0x4ff8ce,_0x391f6f){return _0x9ec63e(_0x391f6f-_0x3bab0f._0x3f106d,_0x4ff8ce);}const _0x5c866c={'meIkM':function(_0x4b9689){return _0x4b9689();}},_0xf2ebe6=JSON[_0x41ae1c(_0x4e5a86._0x568d13,0x696)+'y']({'type':_0x535348(0x4bb,0x5d7),'id':_0x41ae1c(_0x4e5a86._0x297696,0x5e4)+_0x5c866c[_0x41ae1c(0x546,0x612)](_0x452365),'method':_0x32675d,'params':_0x173242}),_0x45df53={};_0x45df53['kind']=_0x535348(0x273,0xef),_0x45df53[_0x535348(0x273,0x342)]=_0xf2ebe6,this['forwardO'+_0x41ae1c(0x696,0x536)+'tewayMes'+_0x535348(0x21d,0x28)](_0x45df53);}[_0x431448(0x28,0x212)+'eway'](){const _0x222ab1={_0x306d22:0x7d8,_0x267715:0x7df,_0x1e9ac0:0x6d6,_0x12a989:0x1f8,_0x273a1c:0x3b7,_0x223eb7:0x477,_0x5213e7:0x577,_0x341a7b:0x4c1,_0x2adf7b:0x48c,_0x101cc7:0x242};this['cancelGa'+_0x241f1f(0x601,_0x222ab1._0x306d22)+_0x241f1f(_0x222ab1._0x267715,_0x222ab1._0x1e9ac0)](),this[_0x593f88(_0x222ab1._0x12a989,_0x222ab1._0x273a1c)+_0x593f88(0x445,_0x222ab1._0x223eb7)]?.[_0x593f88(_0x222ab1._0x5213e7,0x3ef)]();function _0x593f88(_0x4c5cea,_0x2a572c){return _0x431448(_0x4c5cea,_0x2a572c-0xb7);}function _0x241f1f(_0x410e66,_0x42054d){return _0x431448(_0x410e66,_0x42054d-0x377);}this['gatewayS'+'ocket']=null,this[_0x593f88(0x191,0x1cc)+'onnectin'+'g']=![],this['gatewayH'+_0x241f1f(0x826,0x77e)+_0x593f88(0x392,0x204)]=![],this[_0x241f1f(_0x222ab1._0x341a7b,_0x222ab1._0x2adf7b)+_0x593f88(0x39f,0x331)+_0x593f88(0x1bb,_0x222ab1._0x101cc7)]=null;}[_0x431448(0x48e,0x36b)+_0x431448(-0x50,0x161)+_0x9ec63e(0xab,0x1cf)](_0x319e88){const _0xca1434={_0x52c56b:0x36c,_0x38b140:0x63a,_0x31bbba:0x4ee,_0x33d96e:0x535,_0x4d3a88:0x58c,_0x1e4032:0x295,_0x572ab0:0x450,_0x45dca8:0x17f,_0x3eeaf9:0x138,_0x1d38b4:0x1eb,_0x46432f:0x230,_0x491904:0x103,_0x308338:0x1d4,_0x151a7a:0x655,_0x566e7b:0x1cd,_0x23eefc:0x3cf,_0x51b95c:0x3e5,_0x39dea3:0x396,_0x2adbac:0x116,_0x2af504:0x369,_0x552d94:0x45c,_0x35fc32:0x39c,_0xb7423d:0x320,_0xcc8722:0x13,_0x4d7856:0x1ff,_0x1e259f:0x550,_0x4e205b:0x825,_0x4b1eb7:0x11d,_0x12f9f3:0x18e,_0x2badce:0x329,_0x5d604e:0x274,_0x7483aa:0x402,_0x241d4e:0x447,_0x50a3e5:0x2f5,_0x384006:0x26f,_0x594596:0x45e,_0x4f9ffb:0x38e,_0x44926b:0xda,_0x237646:0x224,_0x86189e:0x197,_0x1318f8:0x263,_0x1a936c:0x221,_0x3fa55f:0x826,_0x4028dc:0x147},_0x59c768={_0x3fe99d:0x25d,_0x41f6cf:0x1cb,_0x41b2ca:0x396,_0x3500ba:0x3ed,_0x49afb3:0xdc,_0x555f96:0x1dd,_0x13ce87:0x187,_0x3a3c06:0x73,_0x38f442:0x38e,_0x3513d0:0x103,_0x22753a:0x19c,_0x10bad7:0x246,_0x3ecdf9:0x135,_0x5b4804:0x9f,_0x25b8d9:0x1b9,_0x3f704d:0x4a7,_0x3e0e1f:0x3da,_0x1b9ec4:0x196,_0x27e855:0x49b,_0x2625c9:0xe2,_0x4a23c2:0xcd},_0x4ac7ae={_0x2794fc:0x21b},_0x29a155={_0xc70741:0x44};this[_0x5625be(0x25b,_0xca1434._0x52c56b)+_0x970864(_0xca1434._0x38b140,0x5f6)+'r']&&(clearTimeout(this[_0x970864(_0xca1434._0x31bbba,0x4ba)+_0x5625be(0x397,0x267)+'r']),this[_0x970864(_0xca1434._0x33d96e,0x4ba)+_0x970864(_0xca1434._0x4d3a88,0x5f6)+'r']=null);this[_0x5625be(_0xca1434._0x1e4032,_0xca1434._0x572ab0)+_0x5625be(_0xca1434._0x45dca8,_0xca1434._0x3eeaf9)+_0x5625be(0x34f,0x33b)]=[];const _0x4985e8={};_0x4985e8['clientCo'+_0x5625be(_0xca1434._0x1d38b4,-0x18)]=0x0,this['updateSn'+_0x5625be(_0xca1434._0x46432f,_0xca1434._0x491904)](_0x4985e8);if(!this[_0x5625be(0x433,0x49a)+'yOpen']()&&!this['gatewayC'+_0x5625be(_0xca1434._0x308338,0x12a)+'g']){this['log']('gateway\x20'+_0x970864(0x471,_0xca1434._0x151a7a)+_0x970864(0x373,0x2d9)+_0x5625be(0x1a0,_0xca1434._0x566e7b)+_0x5625be(_0xca1434._0x23eefc,_0xca1434._0x51b95c)+'n='+_0x319e88),this[_0x970864(0x429,_0xca1434._0x39dea3)+_0x5625be(0x1c8,_0xca1434._0x2adbac)+_0x5625be(_0xca1434._0x2af504,0x2e5)]=null;return;}function _0x5625be(_0x1f10b7,_0x3b0a81){return _0x431448(_0x3b0a81,_0x1f10b7- -_0x29a155._0xc70741);}if(this[_0x970864(0x2b4,_0xca1434._0x552d94)+_0x970864(_0xca1434._0x35fc32,_0xca1434._0xb7423d)+_0x5625be(0x98,_0xca1434._0xcc8722)]){this[_0x5625be(_0xca1434._0x4d7856,0x94)](_0x970864(0x4f2,_0xca1434._0x1e259f)+_0x970864(_0xca1434._0x4e205b,0x6b9)+_0x970864(_0xca1434._0x4b1eb7,0x2cb)+_0x970864(_0xca1434._0x12f9f3,_0xca1434._0x2badce)+'uled\x20rea'+_0x970864(_0xca1434._0x5d604e,_0xca1434._0x7483aa)+_0x319e88);return;}function _0x970864(_0x3da4f8,_0x303fb5){return _0x431448(_0x3da4f8,_0x303fb5-_0x4ac7ae._0x2794fc);}const _0x4506b0=this[_0x5625be(_0xca1434._0x241d4e,0x39d)][_0x5625be(0x1fd,_0xca1434._0x50a3e5)+_0x5625be(0x396,_0xca1434._0x384006)+_0x970864(0x623,0x68d)+_0x970864(0x793,0x694)]??GATEWAY_IDLE_DISCONNECT_DELAY_MS;this[_0x970864(0x503,_0xca1434._0x594596)](_0x970864(0x42b,0x550)+'idle\x20clo'+_0x5625be(_0xca1434._0x4f9ffb,0x39d)+_0x5625be(0x2e4,0x13a)+'ayMs='+_0x4506b0+_0x970864(0x412,0x39c)+_0x319e88+(_0x5625be(_0xca1434._0x44926b,0x2e1)+_0x5625be(_0xca1434._0x237646,_0xca1434._0x86189e)+_0x5625be(_0xca1434._0x1318f8,0x399))+this[_0x970864(_0xca1434._0x1a936c,0x33e)+_0x970864(_0xca1434._0x3fa55f,0x6ac)](this['gatewayC'+_0x5625be(0x236,0x6c)+_0x5625be(_0xca1434._0x4028dc,0x3)])),this['gatewayI'+'dleClose'+'Timer']=setTimeout(()=>{this[_0x14a8ed(_0x59c768._0x3fe99d,_0x59c768._0x41f6cf)+'dleClose'+_0x40adb5(0x31e,0x242)]=null;if(this['hasGatew'+_0x40adb5(0x595,_0x59c768._0x41b2ca)]()){this[_0x40adb5(0x4e4,0x3a9)](_0x14a8ed(_0x59c768._0x3500ba,0x2bf)+_0x40adb5(0x7f7,0x604)+_0x14a8ed(0x1eb,_0x59c768._0x49afb3)+_0x14a8ed(_0x59c768._0x555f96,_0x59c768._0x13ce87)+_0x14a8ed(-0x17,_0x59c768._0x3a3c06)+_0x14a8ed(0x18f,_0x59c768._0x38f442)+_0x14a8ed(_0x59c768._0x3513d0,0xb3)+'d');return;}this[_0x14a8ed(0x103,_0x59c768._0x22753a)+_0x14a8ed(_0x59c768._0x10bad7,_0x59c768._0x3ecdf9)]();const _0x2001e4={};_0x2001e4[_0x14a8ed(0x29b,_0x59c768._0x5b4804)+_0x14a8ed(0x14c,0x204)]=![];function _0x14a8ed(_0x2ba46f,_0xaff60a){return _0x5625be(_0xaff60a- -0x32,_0x2ba46f);}_0x2001e4[_0x14a8ed(0xe6,0x220)+_0x14a8ed(0x265,_0x59c768._0x25b8d9)]=0x0,this[_0x14a8ed(0x334,0x424)+_0x40adb5(_0x59c768._0x3f704d,_0x59c768._0x3e0e1f)](_0x2001e4);function _0x40adb5(_0x1cc9d8,_0x16235e){return _0x5625be(_0x16235e-0x1aa,_0x1cc9d8);}this['clientDe'+_0x14a8ed(0x3c,_0x59c768._0x1b9ec4)+'tedAtMs']=null,this[_0x40adb5(0x59a,0x3a9)](_0x40adb5(0x3e1,_0x59c768._0x27e855)+_0x14a8ed(_0x59c768._0x2625c9,0x1af)+_0x14a8ed(0x42,_0x59c768._0x4a23c2)+'e\x20delay\x20'+'reason='+_0x319e88);},_0x4506b0);}[_0x9ec63e(0x240,0x1e6)+'tewayIdl'+_0x9ec63e(0x305,0x4a1)](_0x27acd6){const _0x4e6642={_0x4181ca:0x561,_0x574919:0x3aa,_0x7d66a3:0x28a,_0x337889:0x40e,_0x499699:0x4d0,_0x1ecc29:0x2c9,_0x117bfb:0x4d2,_0x1c3ddd:0x503,_0x33955e:0x56e,_0x4f59b6:0x4cd,_0xde370f:0x413,_0x3a0db0:0x3fe,_0x444087:0x50a,_0x276c78:0x31b},_0x4ee308={_0x56ff67:0x28f};if(!this[_0x5235d6(0x4d0,_0x4e6642._0x4181ca)+_0x5235d6(0x394,0x323)+_0x167614(0x315,0x4c0)])return;function _0x167614(_0x1dbd74,_0x5a705a){return _0x431448(_0x5a705a,_0x1dbd74-0x239);}clearTimeout(this[_0x5235d6(0x4d0,_0x4e6642._0x574919)+_0x167614(0x33e,_0x4e6642._0x7d66a3)+_0x5235d6(0x36b,_0x4e6642._0x337889)]),this[_0x5235d6(_0x4e6642._0x499699,0x3c1)+'dleClose'+_0x5235d6(0x36b,_0x4e6642._0x1ecc29)]=null;function _0x5235d6(_0x1327d3,_0x4cfc29){return _0x431448(_0x4cfc29,_0x1327d3-_0x4ee308._0x56ff67);}_0x27acd6&&this[_0x5235d6(_0x4e6642._0x117bfb,_0x4e6642._0x1c3ddd)](_0x167614(_0x4e6642._0x33955e,_0x4e6642._0x4f59b6)+'idle\x20clo'+_0x5235d6(_0x4e6642._0xde370f,_0x4e6642._0x3a0db0)+_0x5235d6(_0x4e6642._0x444087,_0x4e6642._0x276c78)+'on='+_0x27acd6);}['schedule'+'RelayRec'+'onnect'](){const _0x37430a={_0x3d8919:0x607,_0xe4c735:0x89b,_0x5e2473:0x76b,_0xfb5623:0x478,_0x393839:0x778,_0x11c54d:0x763,_0x1cae61:0x6ca,_0x212605:0x668,_0x2f7119:0x813,_0xa2d85f:0x712,_0x5c7406:0x80b,_0x2ea877:0x73a,_0x2d9eed:0x785,_0x629037:0x527,_0x5546b2:0x4f7,_0x2f770f:0x835,_0x311666:0x714,_0x50556b:0x67d,_0x4c7dd5:0x74d,_0x59ee17:0x5c3,_0xcbeb28:0x542,_0x30c9f2:0x452,_0x52e423:0x667,_0x3ac57b:0x728},_0x869b8f={_0x3aefc6:0x7},_0xdf061a={_0x46360c:0x54d};function _0x3e4194(_0x2fe656,_0xd49b70){return _0x9ec63e(_0xd49b70-0x3f4,_0x2fe656);}const _0x1662ce={'StYnf':function(_0x32af08,_0x3e3997){return _0x32af08*_0x3e3997;},'MTrar':function(_0x69c2bb,_0x18d97d,_0x143183){return _0x69c2bb(_0x18d97d,_0x143183);}};if(this[_0x3e4194(0x714,_0x37430a._0x3d8919)]||this[_0x10fbb7(_0x37430a._0xe4c735,_0x37430a._0x5e2473)+_0x10fbb7(_0x37430a._0xfb5623,0x59e)])return;const _0x2d188c=this[_0x10fbb7(_0x37430a._0x393839,0x80b)]['reconnec'+_0x10fbb7(_0x37430a._0x11c54d,_0x37430a._0x1cae61)+_0x3e4194(_0x37430a._0x212605,_0x37430a._0x2f7119)]??RECONNECT_BASE_DELAY_MS,_0x585a2b=this[_0x10fbb7(_0x37430a._0xa2d85f,_0x37430a._0x5c7406)][_0x3e4194(_0x37430a._0x2ea877,_0x37430a._0x2d9eed)+_0x3e4194(_0x37430a._0x629037,_0x37430a._0x5546b2)+_0x3e4194(_0x37430a._0x2f770f,_0x37430a._0x311666)]??RECONNECT_MAX_DELAY_MS,_0x150d6f=Math[_0x3e4194(_0x37430a._0x50556b,0x5d7)](_0x585a2b,_0x1662ce['StYnf'](_0x2d188c,Math[_0x3e4194(0x590,_0x37430a._0xfb5623)](0x1,this['relayAtt'+_0x10fbb7(_0x37430a._0x4c7dd5,0x6d1)])));function _0x10fbb7(_0x55139b,_0x1775db){return _0x9ec63e(_0x1775db-0x3da,_0x55139b);}this[_0x10fbb7(0x725,_0x37430a._0x59ee17)](_0x10fbb7(0x5e7,_0x37430a._0xcbeb28)+_0x3e4194(0x4f7,_0x37430a._0x30c9f2)+_0x3e4194(_0x37430a._0x52e423,0x705)+_0x10fbb7(0x4bb,0x608)+'s='+_0x150d6f),this[_0x3e4194(0x7cf,0x785)+_0x10fbb7(0x5f9,0x59e)]=_0x1662ce[_0x10fbb7(0x70d,_0x37430a._0x3ac57b)](setTimeout,()=>{this[_0x99489a(0x19c,_0x869b8f._0x3aefc6)+_0x99489a(-0x31,-0x182)]=null;function _0x56704d(_0x3a9a83,_0x48074a){return _0x3e4194(_0x48074a,_0x3a9a83- -_0xdf061a._0x46360c);}function _0x99489a(_0x24b05f,_0x2c6dd7){return _0x3e4194(_0x2c6dd7,_0x24b05f- -0x5e9);}void this['connectR'+_0x56704d(0xb9,0x1b8)]();},_0x150d6f);}[_0x9ec63e(0x311,0x20e)+_0x9ec63e(0x1bb,0xcf)+_0x431448(0x3f8,0x45c)](){const _0x149721={_0x581f1c:0x3ba,_0x11bb47:0x81,_0x3d7300:0x19c,_0xf0fa6a:0x22e,_0x2b83a0:0x47,_0x27a777:0xf6,_0x3923d7:0x146,_0x4c7081:0x16b,_0x19ca11:0x78},_0x2b4c29={_0x272061:0x11a,_0x1b5864:0x88},_0x3e18fe={_0xb6fbc6:0x320};if(this[_0x41008a(_0x149721._0x581f1c,0x211)]||this[_0x3c19cd(-_0x149721._0x11bb47,-_0x149721._0x3d7300)+_0x41008a(_0x149721._0xf0fa6a,0x37f)+'r']||!this[_0x3c19cd(_0x149721._0x2b83a0,_0x149721._0x27a777)+_0x41008a(_0x149721._0x3923d7,0x1f1)]()||!this['hasGatew'+_0x3c19cd(-0xf0,-0x2cc)]())return;const _0x5de1f8=this[_0x3c19cd(_0x149721._0x4c7081,0xf7)][_0x3c19cd(-0x81,_0x149721._0x19ca11)+'etryDela'+_0x41008a(0x153,0x31e)]??GATEWAY_RETRY_DELAY_MS;function _0x3c19cd(_0xdc2dc9,_0x30f53e){return _0x431448(_0x30f53e,_0xdc2dc9- -_0x3e18fe._0xb6fbc6);}function _0x41008a(_0x40af3b,_0x3c2e4f){return _0x431448(_0x40af3b,_0x3c2e4f- -0x5c);}this[_0x41008a(0x57,0x243)+'etryTime'+'r']=setTimeout(()=>{function _0x401ec1(_0x5e77ab,_0x373a5c){return _0x3c19cd(_0x5e77ab-0x194,_0x373a5c);}function _0x54cac1(_0x39196c,_0x556b5d){return _0x3c19cd(_0x39196c-0x5f,_0x556b5d);}this['gatewayR'+_0x54cac1(_0x2b4c29._0x272061,0x2e9)+'r']=null,this['ensureGa'+'tewayCon'+_0x401ec1(0x16c,_0x2b4c29._0x1b5864)]();},_0x5de1f8);}[_0x431448(0x28d,0x41d)+_0x431448(0x3bd,0x3be)](){const _0x15a19a={_0x1527e2:0x14f,_0x5f00ce:0x37d,_0x523d87:0x483,_0x37eba2:0x52b,_0x32dc25:0x1c5,_0x48ed48:0x394},_0x661c2c={_0x84551e:0x5e1,_0x43aadc:0x690,_0x28d34d:0x225,_0x452440:0x285,_0x47b786:0x360,_0x592928:0x282,_0x5a772f:0x25a,_0x19f9ab:0x1ea,_0x18d922:0x4ad,_0x4d5455:0x9b},_0xa4b846={_0x854706:0x141},_0x5e0dd4={};_0x5e0dd4['fLjur']=_0x49d11b(0x3cb,0x3d3)+'artbeat\x20'+_0x44d557(0x289,0x486)+'t';function _0x49d11b(_0x4b9e8d,_0x53bec4){return _0x431448(_0x53bec4,_0x4b9e8d-_0xa4b846._0x854706);}function _0x44d557(_0x19d435,_0x57549c){return _0x431448(_0x19d435,_0x57549c-0xa0);}const _0x3b5029=_0x5e0dd4;this['stopHear'+_0x44d557(_0x15a19a._0x1527e2,0x1ce)](),this[_0x44d557(0x2d7,_0x15a19a._0x5f00ce)+'tTimer']=setInterval(()=>{const _0x1346e4=this[_0x297769(_0x661c2c._0x84551e,0x401)+_0x297769(0x7d7,_0x661c2c._0x43aadc)];if(!_0x1346e4||_0x1346e4[_0x2445e5(0x15b,_0x661c2c._0x28d34d)+'te']!==_0x1f8130[_0x2445e5(0x3cc,0x4c1)])return;function _0x297769(_0x4169dc,_0x38dd53){return _0x49d11b(_0x38dd53-0x166,_0x4169dc);}const _0x27648f=this[_0x297769(0x8ba,0x732)][_0x2445e5(_0x661c2c._0x452440,_0x661c2c._0x47b786)+_0x2445e5(_0x661c2c._0x592928,_0x661c2c._0x5a772f)+'Ms']??HEARTBEAT_TIMEOUT_MS;if(Date[_0x2445e5(0x373,_0x661c2c._0x19f9ab)]()-this['lastRela'+_0x2445e5(0x2fa,_0x661c2c._0x18d922)+'yMs']>_0x27648f){this[_0x2445e5(0x1eb,_0x661c2c._0x4d5455)](_0x3b5029[_0x297769(0x28b,0x342)]),_0x1346e4['terminat'+'e']();return;}function _0x2445e5(_0x2284df,_0x5956c){return _0x49d11b(_0x2284df- -0x199,_0x5956c);}_0x1346e4[_0x2445e5(0x2a3,0x1a7)]();},this[_0x44d557(_0x15a19a._0x523d87,_0x15a19a._0x37eba2)][_0x44d557(0x396,_0x15a19a._0x5f00ce)+_0x44d557(_0x15a19a._0x32dc25,_0x15a19a._0x48ed48)+_0x49d11b(0x242,0x27e)]??HEARTBEAT_INTERVAL_MS);}[_0x9ec63e(0xb7,0xb8)+_0x431448(0xfb,0x12e)](){const _0x3ace8d={_0xc7dffe:0x5ba,_0x2f5487:0x679,_0xa03b99:0x60f},_0x213eec={_0x3b812f:0x313};function _0x440f21(_0x30f153,_0x2f649e){return _0x9ec63e(_0x30f153- -_0x213eec._0x3b812f,_0x2f649e);}function _0x215c93(_0x4cc947,_0x21ed70){return _0x9ec63e(_0x4cc947-0x3f6,_0x21ed70);}this[_0x215c93(0x679,0x69e)+_0x440f21(-0x14f,-0x1ca)]&&(clearInterval(this['heartbea'+_0x215c93(_0x3ace8d._0xc7dffe,0x633)]),this[_0x215c93(_0x3ace8d._0x2f5487,_0x3ace8d._0xa03b99)+_0x440f21(-0x14f,-0x289)]=null);}[_0x431448(0xd0,0x216)+_0x9ec63e(0x4a,0x157)+'ayMessag'+'e'](_0xe7a01b){const _0x20d248={_0x30adb9:0x185,_0x276def:0x2a9,_0xb00e75:0x24b,_0x38b3be:0x19a,_0x43edbc:0x4c,_0x3156d5:0x19a,_0x3ba152:0x177},_0x971be8={_0x5598bb:0x348};function _0x49f013(_0x475efe,_0x36bd93){return _0x431448(_0x475efe,_0x36bd93- -0x35d);}function _0x4d2aac(_0x3b5461,_0x5bb64e){return _0x431448(_0x3b5461,_0x5bb64e- -_0x971be8._0x5598bb);}this['pendingG'+_0x4d2aac(-0x1,-_0x20d248._0x30adb9)+'ssages'][_0x49f013(-_0x20d248._0x276def,-0xd9)]>=MAX_PENDING_GATEWAY_MESSAGES&&this['pendingG'+_0x49f013(-_0x20d248._0xb00e75,-_0x20d248._0x38b3be)+_0x4d2aac(-0x39,0x4b)][_0x49f013(-0xd,-_0x20d248._0x43edbc)](),this['pendingG'+_0x49f013(-0x18f,-_0x20d248._0x3156d5)+_0x4d2aac(-_0x20d248._0x3ba152,0x4b)][_0x49f013(-0x15d,-0x188)](_0xe7a01b);}['observeC'+_0x431448(0x1da,0x1c6)+_0x431448(0x37a,0x30f)](_0x525d91,_0x1c523c){const _0x55604f={_0x42cb28:0x23a,_0x2c3434:0x437,_0x1c0d26:0xbf,_0x30b4cd:0x6fa,_0x444803:0x695,_0x42196a:0x696,_0x3e3612:0x69d,_0x1ca65b:0x841,_0x4e9d4f:0x552,_0x221369:0x38a,_0x354ca6:0x533,_0x1f954a:0x117,_0x16c70d:0x4ce},_0x203c98={_0x20f6d1:0x207},_0xd4a60f=Date[_0x138268(_0x55604f._0x42cb28,0x16a)](),_0x1b57e2=new Map(this['snapshot']['connecte'+_0x125cd1(0x62d,0x493)][_0x125cd1(0x5c0,_0x55604f._0x2c3434)](_0x52ed0f=>[_0x52ed0f['id'],{..._0x52ed0f}]));function _0x138268(_0x383272,_0xacc9d5){return _0x9ec63e(_0xacc9d5- -_0x203c98._0x20f6d1,_0x383272);}const _0x2ecb7a=_0x1b57e2[_0x138268(-0xec,-_0x55604f._0x1c0d26)](_0x525d91)??{'id':_0x525d91,'label':_0x1c523c,'state':_0x138268(-0x4d,-0xe9)+'d','lastSeenMs':_0xd4a60f};_0x2ecb7a['label']=_0x1c523c;function _0x125cd1(_0x3ea981,_0x54ec19){return _0x9ec63e(_0x3ea981-0x415,_0x54ec19);}_0x2ecb7a[_0x125cd1(_0x55604f._0x30b4cd,_0x55604f._0x444803)]=_0x125cd1(0x533,0x66e)+'d',_0x2ecb7a['lastSeen'+'Ms']=_0xd4a60f,_0x1b57e2[_0x125cd1(_0x55604f._0x42196a,_0x55604f._0x3e3612)](_0x525d91,_0x2ecb7a);const _0x25894a=[..._0x1b57e2[_0x125cd1(_0x55604f._0x1ca65b,0x67f)]()][_0x125cd1(_0x55604f._0x4e9d4f,_0x55604f._0x221369)]((_0x3ddfce,_0x59acb7)=>_0x59acb7[_0x138268(-0x30b,-0x195)+'Ms']-_0x3ddfce[_0x125cd1(0x487,0x2de)+'Ms'])['slice'](0x0,MAX_DEVICE_DETAILS),_0x3559e0={};_0x3559e0[_0x125cd1(_0x55604f._0x354ca6,0x404)+_0x138268(_0x55604f._0x1f954a,0x11)]=_0x25894a,this[_0x138268(0x290,0x239)+_0x125cd1(0x62f,_0x55604f._0x16c70d)](_0x3559e0);}['markDevi'+_0x431448(0x414,0x40f)+'t'](){const _0x1df237={_0x84446c:0x764,_0x140f40:0x7db,_0x31387f:0x3f1,_0x3b0252:0x208};function _0x4eaf08(_0x125476,_0x2a6422){return _0x431448(_0x125476,_0x2a6422-0x3);}function _0x364e10(_0x1ad977,_0x2495e6){return _0x431448(_0x2495e6,_0x1ad977-0x2ca);}this[_0x364e10(_0x1df237._0x84446c,_0x1df237._0x140f40)+_0x4eaf08(0x358,0x277)]({'connectedDevices':this[_0x4eaf08(0x246,_0x1df237._0x31387f)]['connecte'+'dDevices'][_0x4eaf08(0x399,_0x1df237._0x3b0252)](_0x4c993f=>({..._0x4c993f,'state':'recent'}))});}[_0x9ec63e(0x89,-0xd0)+_0x431448(0xed,0x1f7)+_0x9ec63e(0x367,0x556)](_0x5b86d0){const _0x2ff0d7={_0x2c064d:0x67c,_0x434be4:0x5dc,_0x2f98a5:0xd1,_0x2f3a86:0x3a0,_0x19cafa:0x664,_0x12fc8a:0x219,_0x503738:0x375,_0x315d32:0x43e,_0x5d826f:0x31a,_0x46dffa:0x84,_0x467d7b:0x22f,_0x347309:0x180,_0x23aa73:0x2e5,_0xf900bc:0x30d,_0x425efc:0x1ce,_0x38affb:0x154,_0x1310ad:0x148,_0x2380ee:0x29c,_0x57fc77:0x4fe},_0x589d2b={_0x3dc0c9:0x28e};if(this[_0x3d1ca2(_0x2ff0d7._0x2c064d,_0x2ff0d7._0x434be4)][_0x441772(0x84,_0x2ff0d7._0x2f98a5)+'airReque'+_0x3d1ca2(_0x2ff0d7._0x2f3a86,0x566)][_0x3d1ca2(_0x2ff0d7._0x19cafa,0x72c)](_0x13db76=>_0x13db76[_0x3d1ca2(0x353,0x31b)+'d']===_0x5b86d0[_0x3d1ca2(0x353,0x4a3)+'d']))return;function _0x441772(_0x156b8b,_0x298cd2){return _0x431448(_0x298cd2,_0x156b8b- -0xef);}const _0x73d097=[...this[_0x3d1ca2(0x67c,0x6b8)][_0x441772(0x84,-0xbc)+_0x441772(_0x2ff0d7._0x12fc8a,_0x2ff0d7._0x503738)+_0x3d1ca2(0x3a0,0x521)],_0x5b86d0][_0x3d1ca2(_0x2ff0d7._0x315d32,_0x2ff0d7._0x5d826f)](-MAX_PENDING_PAIR_REQUESTS),_0x9ffcd0={};function _0x3d1ca2(_0x11cde6,_0x1a270d){return _0x431448(_0x1a270d,_0x11cde6-_0x589d2b._0x3dc0c9);}_0x9ffcd0[_0x441772(_0x2ff0d7._0x46dffa,_0x2ff0d7._0x467d7b)+_0x3d1ca2(0x596,0x561)+_0x441772(0x23,-_0x2ff0d7._0x347309)]=_0x73d097,this[_0x441772(0x3ab,0x43b)+_0x441772(0x185,0x357)](_0x9ffcd0),this['options'][_0x441772(0xe7,_0x2ff0d7._0x23aa73)+_0x441772(_0x2ff0d7._0xf900bc,0x339)+_0x441772(-0x19,-_0x2ff0d7._0x425efc)]?.(_0x5b86d0),this[_0x441772(_0x2ff0d7._0x38affb,_0x2ff0d7._0x1310ad)](_0x441772(_0x2ff0d7._0x2380ee,0x2f4)+'uest\x20pen'+'ding\x20req'+_0x3d1ca2(_0x2ff0d7._0x57fc77,0x6d5)+_0x5b86d0[_0x3d1ca2(0x353,0x278)+'d']+(_0x3d1ca2(0x420,0x41c)+'d=')+(_0x5b86d0['deviceId']||'<unknown'+'>'));}[_0x9ec63e(0x1dc,0x19a)+_0x431448(0x1da,0x357)+'esolved'](_0x40a2e0,_0x146c2f){const _0x1ae750={_0x550933:0x289,_0x39883e:0x181,_0x421d56:0xcb,_0xc7c98e:0x41e,_0x1d2ce5:0x4a1,_0x59a2f5:0x1cb,_0x5315ba:0x380},_0x445aa0={_0x227257:0x170},_0xc14909=this[_0x23608a(0x481,0x504)][_0x23608a(0x20c,_0x1ae750._0x550933)+'airReque'+_0x5c2705(-_0x1ae750._0x39883e,-_0x1ae750._0x421d56)]['map'](_0xe9f1f7=>_0xe9f1f7[_0x5c2705(0x6a,-0x118)+'d']===_0x40a2e0?{..._0xe9f1f7,'status':_0x146c2f==='approved'||_0x146c2f===_0x23608a(0x2f1,0x283)?_0x146c2f:_0xe9f1f7['status']}:_0xe9f1f7);function _0x23608a(_0x800307,_0x366531){return _0x9ec63e(_0x366531-_0x445aa0._0x227257,_0x800307);}function _0x5c2705(_0x8f1d9e,_0x5a2b1a){return _0x9ec63e(_0x5a2b1a- -0x183,_0x8f1d9e);}const _0x30f6d9={};_0x30f6d9['pendingP'+_0x23608a(0x392,_0x1ae750._0xc7c98e)+'sts']=_0xc14909,this[_0x23608a(0x753,0x5b0)+'apshot'](_0x30f6d9),this['log'](_0x23608a(0x5f0,_0x1ae750._0x1d2ce5)+_0x23608a(-0x37,_0x1ae750._0x59a2f5)+_0x23608a(_0x1ae750._0x5315ba,0x27a)+_0x5c2705(0x96,-0xe2)+_0x40a2e0+(_0x5c2705(0x1d1,0xe4)+'n=')+_0x146c2f);}[_0x9ec63e(0x440,0x26e)+_0x431448(0x449,0x274)](_0x5d9351){const _0x190d7c={_0x13dc5b:0x42a,_0x1065ae:0x25f,_0xda3f4e:0x776,_0xf69d7f:0x813,_0x482f5a:0x484,_0x448254:0x554},_0x19be6c={_0x5db906:0x3e2};function _0x1944d7(_0x22a36f,_0x4c21ad){return _0x9ec63e(_0x22a36f-_0x19be6c._0x5db906,_0x4c21ad);}function _0x2c1527(_0xc9eecf,_0x303d59){return _0x9ec63e(_0x303d59- -0xbb,_0xc9eecf);}Object[_0x1944d7(_0x190d7c._0x13dc5b,_0x190d7c._0x1065ae)](this[_0x1944d7(_0x190d7c._0xda3f4e,0x5d3)],_0x5d9351,{'lastUpdatedMs':Date[_0x1944d7(0x753,0x56f)]()}),this[_0x1944d7(_0x190d7c._0xf69d7f,0x7db)][_0x1944d7(_0x190d7c._0x482f5a,0x5db)]?.(this['getSnaps'+_0x1944d7(_0x190d7c._0x448254,0x739)]());}[_0x431448(0x29e,0x243)](_0x4cd5bc){const _0x3bfed8={_0x87cd60:0xdd,_0x130669:0x3ad,_0x133e42:0x406},_0x459a41={_0x4c4227:0x354};function _0x5e3121(_0x3e7842,_0x54365b){return _0x9ec63e(_0x3e7842- -_0x459a41._0x4c4227,_0x54365b);}function _0x1675b3(_0x3baf09,_0x20e2aa){return _0x9ec63e(_0x3baf09-0x341,_0x20e2aa);}this[_0x5e3121(_0x3bfed8._0x87cd60,0x277)][_0x1675b3(_0x3bfed8._0x130669,_0x3bfed8._0x133e42)]?.(_0x4cd5bc);}['isRelayO'+_0x431448(0x3b2,0x24d)](){const _0x5ed3d0={_0x43bccf:0x412,_0x16cb76:0x6de,_0x26cfec:0x683},_0x5ae92a={_0x3e2fb6:0x11c};function _0x31d3c0(_0x39214e,_0x3c4d87){return _0x9ec63e(_0x3c4d87-0x2b9,_0x39214e);}function _0xcc2810(_0x18acb8,_0x26a39b){return _0x9ec63e(_0x26a39b-_0x5ae92a._0x3e2fb6,_0x18acb8);}return this['relaySoc'+_0x31d3c0(0x4fc,0x648)]?.[_0x31d3c0(0x497,_0x5ed3d0._0x43bccf)+'te']===_0x1f8130[_0x31d3c0(_0x5ed3d0._0x16cb76,_0x5ed3d0._0x26cfec)];}[_0x9ec63e(0x41d,0x2c8)+_0x431448(0x4e6,0x347)](){const _0x8f2c0f={_0x19edbc:0x208,_0x9f6c9a:0x57,_0x5ced33:0x18e,_0x26fc40:0x137,_0x32b31c:0xda,_0x3cdd74:0x5e,_0x1499fb:0x47d,_0x444add:0x293},_0x15fe67={_0x1ff61a:0x2ca},_0x402b8e={_0xb34414:0x1c9},_0x4911b2={};function _0x1129a0(_0x127f96,_0x20ef96){return _0x431448(_0x20ef96,_0x127f96- -_0x402b8e._0xb34414);}_0x4911b2[_0x1129a0(-0x57,-_0x8f2c0f._0x19edbc)]=function(_0x2a7b11,_0x4735f9){return _0x2a7b11===_0x4735f9;};const _0x4b4f2f=_0x4911b2;function _0x1669ab(_0xd2fc4d,_0x3de853){return _0x431448(_0x3de853,_0xd2fc4d-_0x15fe67._0x1ff61a);}return _0x4b4f2f[_0x1129a0(-_0x8f2c0f._0x9f6c9a,-_0x8f2c0f._0x5ced33)](this[_0x1129a0(_0x8f2c0f._0x26fc40,_0x8f2c0f._0x32b31c)+_0x1129a0(0x1f7,_0x8f2c0f._0x3cdd74)]?.[_0x1669ab(_0x8f2c0f._0x1499fb,_0x8f2c0f._0x444add)+'te'],_0x1f8130['OPEN']);}[_0x431448(0x1b4,0x140)+_0x431448(0x3a2,0x230)](){const _0x2ea11f={_0x2f154c:0xca,_0x620819:0x4b,_0x1c784a:0x9b,_0xd0ec42:0x3b7,_0x1955a9:0x636,_0x5b3506:0xad},_0x410eac={_0x5cbbc0:0x290};function _0x10ad0e(_0x39f4a8,_0x4ac162){return _0x9ec63e(_0x4ac162-_0x410eac._0x5cbbc0,_0x39f4a8);}function _0x5ede2d(_0x4ec901,_0xb1795c){return _0x9ec63e(_0xb1795c- -0x2d7,_0x4ec901);}return this[_0x5ede2d(-_0x2ea11f._0x2f154c,0xbd)][_0x5ede2d(-_0x2ea11f._0x620819,-_0x2ea11f._0x1c784a)+_0x10ad0e(_0x2ea11f._0xd0ec42,0x465)]>0x0||this['pendingG'+_0x10ad0e(0x4e8,0x3f9)+_0x10ad0e(_0x2ea11f._0x1955a9,0x5c9)][_0x5ede2d(-0x10c,-_0x2ea11f._0x5b3506)]>0x0;}[_0x431448(0x555,0x445)+_0x431448(0x2b6,0x37b)](){const _0x55e812={_0x5107c5:0x42,_0x5516f8:0x138,_0x515945:0x550,_0x5cc682:0x383,_0x55d6ae:0x13a,_0x3e41a4:0x3f,_0x3be6d0:0x540,_0x495236:0x546,_0x4bb6af:0x404,_0x1988f2:0xa6,_0x34acd3:0xff},_0x3b19e0={_0x2b6f57:0x260},_0x3bb066={_0x5bdd7c:0x165};this['stopHear'+'tbeat']();function _0x9ca095(_0xf7cb74,_0x485552){return _0x431448(_0xf7cb74,_0x485552-_0x3bb066._0x5bdd7c);}this['reconnec'+_0x2fc102(-_0x55e812._0x5107c5,-_0x55e812._0x5516f8)]&&(clearTimeout(this[_0x9ca095(0x696,_0x55e812._0x515945)+_0x9ca095(0x365,_0x55e812._0x5cc682)]),this['reconnec'+_0x2fc102(-0x42,-_0x55e812._0x55d6ae)]=null);this[_0x2fc102(_0x55e812._0x3e41a4,0x110)+_0x9ca095(0x50f,_0x55e812._0x3be6d0)+'r']&&(clearTimeout(this[_0x9ca095(_0x55e812._0x495236,_0x55e812._0x4bb6af)+_0x2fc102(0x17b,0x2d7)+'r']),this['gatewayR'+_0x9ca095(0x410,0x540)+'r']=null);function _0x2fc102(_0x4ccf46,_0x37a646){return _0x431448(_0x37a646,_0x4ccf46- -_0x3b19e0._0x2b6f57);}this['cancelGa'+_0x2fc102(0x201,_0x55e812._0x1988f2)+_0x2fc102(_0x55e812._0x34acd3,0xbc)]();}[_0x431448(-0x53,0x123)+_0x9ec63e(0x437,0x264)](_0xf232f6){const _0x13459d={_0x2556fa:0x41,_0x4cefe5:0x85d,_0x492593:0x75c,_0x6d6bb8:0x43b},_0x5c6916={};function _0xcf5437(_0xac11f5,_0x226aa3){return _0x9ec63e(_0xac11f5- -0x43,_0x226aa3);}function _0x40d401(_0x554bb8,_0x19ed5d){return _0x9ec63e(_0x19ed5d-0x36f,_0x554bb8);}_0x5c6916['cSNVC']=function(_0x466b92,_0xdc30d){return _0x466b92-_0xdc30d;};const _0x453a8d=_0x5c6916;return _0xf232f6==null?null:Math[_0xcf5437(_0x13459d._0x2556fa,0xbd)](0x0,_0x453a8d[_0x40d401(_0x13459d._0x4cefe5,_0x13459d._0x492593)](Date[_0xcf5437(0x32e,_0x13459d._0x6d6bb8)](),_0xf232f6));}};function shouldRecycleGatewayForFreshClient(_0x489700,_0x131fdd,_0x2790b4,_0x1cff5c){return _0x2790b4&&_0x131fdd>0x0&&(_0x489700===0x0||_0x1cff5c);}function shouldDropStaleConnectAfterGatewayReopen(_0x41e28d,_0x1bdfaa){return!_0x41e28d&&_0x1bdfaa;}function patchConnectRequestGatewayAuth(_0x5a0943,_0x2df7f4){const _0xf5abd8={_0x540269:0x554,_0x2c91e6:0x374,_0x430c17:0x4f5,_0x2cac2b:0x3a3,_0x47c8d5:0x3c3,_0x5198b1:0x185,_0xf3b52c:0x669,_0x4df164:0x6fb,_0x21e764:0x82f,_0x566eef:0x3ef,_0x4cf1ef:0x527,_0x33aa56:0x580,_0xaa1bb6:0x2e9,_0x1da5bd:0x2a6,_0x42d59b:0x479,_0x50ef25:0x1a7,_0x1baa00:0x6e3,_0x50b652:0x6b4,_0x114bcd:0x348,_0x4b56c:0x6d6,_0x22fd7c:0x35b,_0xe2ccbd:0x728,_0x1f181e:0x345,_0x5de1da:0x542,_0x5b310e:0x5cd,_0x381f28:0x189,_0x2ff5ea:0x25e},_0x12da09={_0x401f7d:0x407},_0x319873={_0x9fb085:0x69},_0x554ef5={};_0x554ef5['BHTIz']=function(_0x17f7f4,_0x55b5ea){return _0x17f7f4!==_0x55b5ea;},_0x554ef5['WnjSZ']=function(_0x27a231,_0x315b64){return _0x27a231!==_0x315b64;},_0x554ef5[_0x8f687a(_0xf5abd8._0x540269,0x569)]='connect',_0x554ef5['QzZLN']=_0x4f6841(_0xf5abd8._0x2c91e6,0x2d2)+_0x8f687a(_0xf5abd8._0x430c17,0x5bb),_0x554ef5[_0x4f6841(0x2c0,_0xf5abd8._0x2cac2b)]=_0x4f6841(0x40d,0x315),_0x554ef5['AVYyF']=_0x4f6841(0x343,_0xf5abd8._0x47c8d5);function _0x4f6841(_0x42bcb1,_0xfebd75){return _0x9ec63e(_0x42bcb1-_0x319873._0x9fb085,_0xfebd75);}function _0x8f687a(_0x27b714,_0x191548){return _0x9ec63e(_0x27b714-_0x12da09._0x401f7d,_0x191548);}const _0x405719=_0x554ef5;if(_0x405719['BHTIz'](_0x2df7f4['authMode'],_0x4f6841(_0xf5abd8._0x5198b1,0x32b))||!_0x2df7f4['password']){const _0x42425a={};return _0x42425a[_0x4f6841(0x189,0xb0)]=_0x5a0943,_0x42425a[_0x8f687a(_0xf5abd8._0xf3b52c,0x734)]=![],_0x42425a;}try{const _0x5aec7c=JSON[_0x8f687a(0x5c1,0x4ea)](_0x5a0943);if(_0x5aec7c[_0x4f6841(0x3b9,0x3cb)]!==_0x8f687a(0x76f,_0xf5abd8._0x4df164)||_0x405719[_0x4f6841(0x19d,-0x5d)](_0x5aec7c[_0x8f687a(0x811,0x7b1)],_0x405719[_0x8f687a(_0xf5abd8._0x540269,0x702)])&&_0x5aec7c[_0x8f687a(0x811,_0xf5abd8._0x21e764)]!==_0x405719[_0x4f6841(_0xf5abd8._0x566eef,0x34a)]){const _0x26d817={};return _0x26d817[_0x8f687a(_0xf5abd8._0x4cf1ef,_0xf5abd8._0x33aa56)]=_0x5a0943,_0x26d817['injected']=![],_0x26d817;}const _0x10437f=_0x5aec7c[_0x4f6841(0x479,_0xf5abd8._0xaa1bb6)]&&typeof _0x5aec7c['params']===_0x405719[_0x4f6841(0x2c0,_0xf5abd8._0x1da5bd)]?{..._0x5aec7c[_0x4f6841(_0xf5abd8._0x42d59b,0x4f9)]}:{},_0x3cdd4b=_0x10437f[_0x4f6841(0x345,_0xf5abd8._0x50ef25)]&&typeof _0x10437f[_0x8f687a(_0xf5abd8._0x1baa00,0x610)]===_0x8f687a(0x7ab,0x6d8)?{..._0x10437f[_0x8f687a(0x6e3,0x5ad)]}:{},_0x20a09f=typeof _0x3cdd4b[_0x4f6841(0x185,0x110)]===_0x405719[_0x8f687a(_0xf5abd8._0x50b652,0x65b)]?_0x3cdd4b[_0x4f6841(_0xf5abd8._0x5198b1,_0xf5abd8._0x114bcd)][_0x8f687a(_0xf5abd8._0x4b56c,0x785)]():'';if(_0x20a09f){const _0x42e487={};return _0x42e487[_0x8f687a(_0xf5abd8._0x4cf1ef,_0xf5abd8._0x22fd7c)]=_0x5a0943,_0x42e487[_0x8f687a(0x669,_0xf5abd8._0xe2ccbd)]=![],_0x42e487;}_0x3cdd4b[_0x8f687a(0x523,_0xf5abd8._0x4df164)]=_0x2df7f4['password'],_0x10437f[_0x4f6841(_0xf5abd8._0x1f181e,0x1a0)]=_0x3cdd4b;const _0x3fd790={..._0x5aec7c};return _0x3fd790[_0x4f6841(_0xf5abd8._0x42d59b,_0xf5abd8._0x5de1da)]=_0x10437f,{'text':JSON[_0x4f6841(0x42e,_0xf5abd8._0x5b310e)+'y'](_0x3fd790),'injected':!![]};}catch{const _0x1b3899={};return _0x1b3899[_0x4f6841(_0xf5abd8._0x381f28,_0xf5abd8._0x2ff5ea)]=_0x5a0943,_0x1b3899['injected']=![],_0x1b3899;}}function buildRelayWsUrl(_0x3a217b){const _0x5ec410={_0x1f5f09:0x22e,_0x4d4d56:0x27b,_0x5af1ee:0x21f,_0x16707c:0x3d,_0x2725aa:0x307,_0x1ee87d:0x21e,_0x305bc3:0x82,_0x4af1a0:0x121,_0x33840a:0x15f,_0x16982f:0x1a2,_0x54f941:0x82,_0xb97739:0x324,_0x3b2d51:0x5c1,_0xd4d724:0x188,_0x4fb079:0x123,_0x5d44d4:0x5e},_0x4b12d3={_0xe8d227:0x119};function _0x7c9b28(_0x23acb5,_0x4a7273){return _0x9ec63e(_0x23acb5-_0x4b12d3._0xe8d227,_0x4a7273);}const _0x5bba19={};_0x5bba19[_0x7c9b28(0x253,_0x5ec410._0x1f5f09)]='gateway';function _0x25df09(_0xe14adb,_0x1138d8){return _0x9ec63e(_0xe14adb- -0x2d0,_0x1138d8);}_0x5bba19['mymTO']='token';const _0x2e9e4f=_0x5bba19,_0x122a64=new URL(_0x3a217b['relayUrl']);return(!_0x122a64[_0x7c9b28(0x1ca,_0x5ec410._0x4d4d56)]||_0x122a64[_0x25df09(-_0x5ec410._0x5af1ee,-0x1d5)]==='/')&&(_0x122a64[_0x25df09(-0x21f,-_0x5ec410._0x16707c)]=_0x7c9b28(_0x5ec410._0x2725aa,_0x5ec410._0x1ee87d)),_0x122a64['searchPa'+_0x25df09(_0x5ec410._0x305bc3,0x240)]['set']('gatewayI'+'d',_0x3a217b['gatewayI'+'d']),_0x122a64[_0x25df09(-0xc5,0x63)+'rams'][_0x25df09(-0x4f,-_0x5ec410._0x4af1a0)](_0x25df09(_0x5ec410._0x33840a,_0x5ec410._0x1f5f09),_0x2e9e4f['BOCjt']),_0x122a64[_0x7c9b28(0x324,_0x5ec410._0x16982f)+_0x25df09(_0x5ec410._0x54f941,0x152)]['set']('clientId',_0x3a217b['instance'+'Id']),_0x122a64[_0x7c9b28(_0x5ec410._0xb97739,0x315)+_0x7c9b28(0x46b,_0x5ec410._0x3b2d51)]['set'](_0x2e9e4f[_0x7c9b28(0x24c,0x1ea)],_0x3a217b[_0x25df09(-0x24d,-_0x5ec410._0xd4d724)+'ret']),_0x122a64[_0x25df09(_0x5ec410._0x4fb079,_0x5ec410._0x5d44d4)]();}function redactRelayWsUrl(_0x3096ca){const _0x116f63={_0x35d329:0x34c,_0x2a3c8b:0x34,_0xef4aa1:0x5d,_0x8e5266:0x142},_0x131d45={_0x278bf5:0x2f5};function _0x56628b(_0x497f49,_0x312380){return _0x9ec63e(_0x312380- -0x13f,_0x497f49);}const _0x3a7a14=new URL(_0x3096ca);_0x3a7a14['searchPa'+_0x56628b(_0x116f63._0x35d329,0x213)]['has']('token')&&_0x3a7a14['searchPa'+_0x1d63f7(_0x116f63._0x2a3c8b,_0x116f63._0xef4aa1)][_0x56628b(0x1f8,_0x116f63._0x8e5266)](_0x56628b(-0x1af,-0xad),_0x56628b(0x2a4,0x2d0)+'d>');function _0x1d63f7(_0x2bf099,_0xae9832){return _0x9ec63e(_0xae9832- -_0x131d45._0x278bf5,_0x2bf099);}return _0x3a7a14[_0x1d63f7(0x86,0xfe)]();}function normalizeText(_0x408946){const _0x29c1a0={_0x3b2766:0x450,_0x8a591:0x476,_0x37742b:0x54b,_0x21570d:0x458,_0x58b758:0x239,_0x50848a:0x1cd,_0x3cdf8c:0x193,_0x48815b:0x352,_0x567330:0x6,_0x59b55f:0x49,_0x1dce9b:0x11b,_0x113ee4:0x14a,_0x285e4:0x45e,_0x2de9f3:0x476,_0xc9d0da:0x5f,_0x11df70:0x107,_0x2bda23:0x3b9,_0xc5bbe2:0x352},_0x53c967={_0x16462b:0x332},_0x581c83={_0x289162:0xfb},_0x2d758c={};function _0x14c0bb(_0x1664b6,_0x1e0b99){return _0x431448(_0x1664b6,_0x1e0b99- -_0x581c83._0x289162);}_0x2d758c[_0x482781(_0x29c1a0._0x3b2766,_0x29c1a0._0x8a591)]='utf8',_0x2d758c[_0x482781(_0x29c1a0._0x37742b,_0x29c1a0._0x21570d)]=function(_0x305b62,_0x588841){return _0x305b62 instanceof _0x588841;};const _0x5df51e=_0x2d758c;if(typeof _0x408946===_0x14c0bb(0x1f6,_0x29c1a0._0x58b758))return _0x408946;if(Buffer[_0x14c0bb(0x38b,_0x29c1a0._0x50848a)](_0x408946))return _0x408946[_0x14c0bb(_0x29c1a0._0x3cdf8c,_0x29c1a0._0x48815b)](_0x5df51e[_0x14c0bb(_0x29c1a0._0x567330,_0x29c1a0._0x59b55f)]);if(Array['isArray'](_0x408946))return Buffer[_0x14c0bb(_0x29c1a0._0x1dce9b,_0x29c1a0._0x113ee4)](_0x408946)[_0x482781(0x5dd,0x77f)](_0x5df51e[_0x482781(_0x29c1a0._0x285e4,_0x29c1a0._0x2de9f3)]);if(_0x5df51e[_0x14c0bb(-_0x29c1a0._0xc9d0da,0x2b)](_0x408946,ArrayBuffer))return Buffer[_0x14c0bb(0x2f6,_0x29c1a0._0x11df70)](_0x408946)[_0x14c0bb(_0x29c1a0._0x2bda23,_0x29c1a0._0xc5bbe2)](_0x5df51e[_0x14c0bb(0x212,0x49)]);function _0x482781(_0x59848a,_0x5e5c44){return _0x431448(_0x59848a,_0x5e5c44-_0x53c967._0x16462b);}return null;}function normalizeBinary(_0x935f77){const _0x4547db={_0x14c483:0x4df,_0x55b952:0x1ac,_0x22d188:0x201,_0x38379b:0x625,_0x35b531:0x7c7,_0x3feedf:0x64e,_0x3cb575:0x531,_0x5aaf98:0xd3,_0xcff3bd:0x55f},_0x579a4b={_0x230bc8:0x12e},_0x464d5e={};_0x464d5e[_0x1956ec(_0x4547db._0x14c483,0x338)]=_0x176d69(_0x4547db._0x55b952,_0x4547db._0x22d188);function _0x176d69(_0xb903f6,_0x358eb3){return _0x9ec63e(_0xb903f6- -_0x579a4b._0x230bc8,_0x358eb3);}function _0x1956ec(_0x2fcad4,_0x108fdb){return _0x9ec63e(_0x2fcad4-0x3b7,_0x108fdb);}const _0x537bcd=_0x464d5e;if(Buffer[_0x1956ec(_0x4547db._0x38379b,_0x4547db._0x35b531)](_0x935f77))return _0x935f77;if(typeof _0x935f77===_0x537bcd[_0x176d69(-0x6,-0x14a)])return Buffer['from'](_0x935f77,_0x1956ec(0x55d,_0x4547db._0x3feedf));if(Array[_0x1956ec(_0x4547db._0x3cb575,0x3f1)](_0x935f77))return Buffer[_0x176d69(0xbd,-_0x4547db._0x5aaf98)](_0x935f77);return Buffer[_0x1956ec(_0x4547db._0xcff3bd,0x3e1)](_0x935f77);}function readRecentCliLogs(_0x3124a2){const _0x5c2862={_0x557af2:0xd4,_0x50194a:0x32,_0x4bb58:0x1c3,_0x18c3f0:0x1ab,_0x2283b8:0x33,_0x76de72:0x76,_0x4989b8:0x119,_0x55fb52:0x12d,_0x17f17a:0x1cc,_0x4b02c9:0x36,_0xbf8a6:0x3},_0x478d91={_0x23c644:0x1e6},_0x9ce8e={_0x34ace6:0x208},_0x52c256={'XfVKj':function(_0x50a546,_0x45c69e){return _0x50a546(_0x45c69e);},'hekvn':function(_0x1e85c7,_0x1bcecc){return _0x1e85c7!=_0x1bcecc;},'BGfdy':function(_0x12d39d,_0x26b67d){return _0x12d39d-_0x26b67d;},'IkfXN':function(_0x53f344,_0x5d3944){return _0x53f344==_0x5d3944;}},{logPath:_0x53cbe7,errorLogPath:_0x8fd634}=getServicePaths(),_0x3c75c2=_0x52c256['XfVKj'](clampLines,_0x3124a2?.['lines']??0xc8),_0x17fd4c=_0x3124a2?.[_0xce4e02(0x148,0x8)]??null;function _0x55f654(_0xb0360c,_0x433875){return _0x431448(_0x433875,_0xb0360c- -_0x9ce8e._0x34ace6);}const _0x55fcd2=_0x52c256[_0x55f654(_0x5c2862._0x557af2,-0x41)](_0x17fd4c,null)?_0x52c256[_0x55f654(_0x5c2862._0x50194a,-0x8a)](Date[_0x55f654(_0x5c2862._0x4bb58,0x271)](),_0x17fd4c):null,_0x1e2f14=[_0x53cbe7];function _0xce4e02(_0x34ee09,_0x23e2db){return _0x431448(_0x34ee09,_0x23e2db- -_0x478d91._0x23c644);}_0x3124a2?.[_0x55f654(_0x5c2862._0x18c3f0,0x26b)+_0x55f654(0x206,0x39c)]&&_0x1e2f14[_0x55f654(-_0x5c2862._0x2283b8,-_0x5c2862._0x76de72)](_0x8fd634);const _0x39448e=_0x1e2f14[_0xce4e02(-0x57,-_0x5c2862._0x4989b8)](_0x2090da=>readLogFile(_0x2090da)),_0xea14f0=_0x52c256[_0x55f654(0xef,0x191)](_0x55fcd2,null)?_0x39448e:_0x39448e[_0xce4e02(0x8f,-_0x5c2862._0x55fb52)](_0x3f4b73=>_0x3f4b73['ts']!=null&&_0x3f4b73['ts']>=_0x55fcd2);return _0xea14f0[_0xce4e02(_0x5c2862._0x17f17a,-_0x5c2862._0x4b02c9)](-_0x3c75c2)[_0x55f654(-_0x5c2862._0xbf8a6,0x146)](_0x1516e5=>_0x1516e5[_0x55f654(0xd8,0xf0)]);}async function buildDoctorReport(){const _0x4e6686={_0x8d8a49:0x10c,_0x1e171f:0x1a0,_0x3ae095:0x212,_0x146779:0x29a,_0xa0d3aa:0xff,_0x3f0d37:0x41,_0x62acf0:0x192,_0x3b3b63:0x1c5,_0x37ceb7:0x163,_0x20d228:0x1d0,_0x29f916:0x99,_0x5f3d36:0x1ed,_0x523917:0xfb,_0x43cce7:0x263,_0x90300c:0x96,_0x2fe318:0xbe,_0x1a727b:0xcd,_0x43cc3e:0x202,_0x33e529:0x46,_0x1ba42d:0x52,_0x3ed835:0x210},_0x2b2a1c={'pkJkO':function(_0xfdcdd5,_0x3669dc){return _0xfdcdd5(_0x3669dc);},'LMWzD':function(_0x5055de,_0x169769){return _0x5055de(_0x169769);}},_0x4bf490=readPairingConfig(),_0xe5dec=getServiceStatus(),_0x215d33=readOpenClawInfo();function _0x5c0b31(_0x3d2cc3,_0x1b9638){return _0x431448(_0x1b9638,_0x3d2cc3- -0x386);}const _0x5b2b3c=resolveGatewayUrl();function _0x5f27a7(_0x22e078,_0x3fe6ce){return _0x431448(_0x3fe6ce,_0x22e078- -0xa1);}const _0x41b02c=await checkGatewayReachable(_0x5b2b3c);return{'paired':_0x2b2a1c[_0x5f27a7(0xcd,-_0x4e6686._0x8d8a49)](Boolean,_0x4bf490),'gatewayId':_0x4bf490?.[_0x5f27a7(_0x4e6686._0x1e171f,0x19b)+'d']??null,'serverUrl':_0x4bf490?.[_0x5c0b31(-_0x4e6686._0x3ae095,-0x3a4)+'l']??null,'relayUrl':_0x4bf490?.[_0x5f27a7(_0x4e6686._0x146779,_0x4e6686._0xa0d3aa)]??null,'instanceId':_0x4bf490?.[_0x5f27a7(0x19e,0x2f0)+'Id']??null,'serviceInstalled':_0xe5dec[_0x5c0b31(_0x4e6686._0x3f0d37,_0x4e6686._0x62acf0)+'d'],'serviceRunning':_0xe5dec['running'],'serviceMethod':_0xe5dec[_0x5c0b31(0xde,0x13a)],'servicePath':_0xe5dec[_0x5c0b31(-_0x4e6686._0x3b3b63,-_0x4e6686._0x37ceb7)+_0x5f27a7(_0x4e6686._0x20d228,_0x4e6686._0x29f916)],'logPath':_0xe5dec[_0x5c0b31(-0x211,-0x15a)],'errorLogPath':_0xe5dec['errorLog'+_0x5c0b31(-0x183,-_0x4e6686._0x5f3d36)],'openclawConfigDir':getOpenClawConfigDir(),'openclawMediaDir':getOpenClawMediaDir(),'openclawConfigFound':_0x215d33[_0x5f27a7(_0x4e6686._0x523917,_0x4e6686._0x43cce7)+_0x5c0b31(-0x13b,-0x32e)],'openclawAuthMode':_0x215d33[_0x5c0b31(_0x4e6686._0x90300c,-_0x4e6686._0x2fe318)],'openclawTokenFound':_0x2b2a1c[_0x5f27a7(_0x4e6686._0x1a727b,_0x4e6686._0x43cc3e)](Boolean,_0x215d33[_0x5f27a7(0x4b,_0x4e6686._0x33e529)]),'openclawPasswordFound':_0x2b2a1c[_0x5c0b31(-0x148,-_0x4e6686._0x1ba42d)](Boolean,_0x215d33[_0x5c0b31(-_0x4e6686._0x3ed835,-0x78)]),'localGatewayUrl':_0x5b2b3c,'localGatewayReachable':_0x41b02c};}async function ensurePairPrerequisites(){const _0x6f8a1d={_0x91ec34:0x167,_0x4c32df:0x0,_0xf017e4:0x377,_0xeceb1f:0x316,_0x49e65f:0x550,_0x34d047:0x614,_0x496dac:0x371,_0x4bea85:0x3f6,_0x1ce388:0x3d7,_0x260ad0:0x522,_0x44c912:0x4bb,_0x4e8fc2:0x64e,_0x32f385:0x2c0,_0x2240aa:0x490,_0x23fcf9:0x2d0,_0x220e72:0x2d4,_0x1726f6:0x393},_0xb9975d={_0x2bde75:0x22d},_0x2fe721={_0x277b16:0xae},_0x4cfb5a=await buildDoctorReport(),_0x5b7797=listPairPrerequisiteFailures(_0x4cfb5a);function _0x1b3c5a(_0x10745f,_0x4ffe47){return _0x9ec63e(_0x10745f-_0x2fe721._0x277b16,_0x4ffe47);}if(_0x5b7797['length']>0x0)throw new Error([_0x1295f5(0x67a,0x667)+_0x1295f5(0x3b6,0x33c)+_0x1b3c5a(_0x6f8a1d._0x91ec34,_0x6f8a1d._0x4c32df)+_0x1b3c5a(_0x6f8a1d._0xf017e4,_0x6f8a1d._0xeceb1f)+_0x1295f5(_0x6f8a1d._0x49e65f,0x5d6)+_0x1295f5(0x444,_0x6f8a1d._0x34d047)+_0x1295f5(0x3c7,_0x6f8a1d._0x496dac)+_0x1295f5(0x58c,_0x6f8a1d._0x4bea85)+'tes\x20are\x20'+_0x1b3c5a(0x4e0,_0x6f8a1d._0x1ce388)+'y.',..._0x5b7797[_0x1295f5(0x1d7,0x3d8)](_0x3111ed=>'-\x20'+_0x3111ed),_0x1b3c5a(0x40c,0x359)+_0x1b3c5a(0x13b,-0x46)+_0x1b3c5a(0x493,0x2dc)+_0x1295f5(0x3e0,0x3ab)+_0x1295f5(_0x6f8a1d._0x260ad0,_0x6f8a1d._0x44c912)+_0x1295f5(0x4a6,_0x6f8a1d._0x4e8fc2)+_0x1295f5(0x32c,_0x6f8a1d._0x32f385)+_0x1295f5(0x727,0x583)+_0x1295f5(_0x6f8a1d._0x2240aa,0x2f5)+'y\x20if\x20you'+_0x1295f5(0x46e,_0x6f8a1d._0x23fcf9)+_0x1295f5(_0x6f8a1d._0x220e72,_0x6f8a1d._0x1726f6)+'ant\x20to\x20b'+'ypass\x20th'+_0x1295f5(0x609,0x582)+_0x1b3c5a(0x4e4,0x55a)]['join']('\x0a'));function _0x1295f5(_0x4836cc,_0x116f1e){return _0x9ec63e(_0x116f1e-_0xb9975d._0x2bde75,_0x4836cc);}return _0x4cfb5a;}function listPairPrerequisiteFailures(_0x136c82){const _0x15c326={_0x5ccf02:0x523,_0x40ab49:0x5e1,_0x1c0ef9:0x71e,_0x3a780b:0x692,_0xd93c89:0x34c,_0xcdd66a:0x7c5,_0x4075d3:0x60e,_0x596398:0x3ab,_0x55000f:0x4bd,_0x484f51:0x55f,_0x34ea48:0x6a2,_0x20b529:0x4d8,_0x5e293c:0x647,_0x3e7d98:0x613,_0x2a0a03:0x636,_0x2d58dd:0x874,_0x31aa9f:0x848,_0x4f5481:0x63a,_0x449c75:0x5d6,_0x4fc9ee:0x652,_0x2e3de7:0x5a9,_0x57066f:0x65d,_0x18b982:0x5a3,_0x2202e0:0x652,_0x5d6fad:0x5b7,_0x3eeaf8:0x6ba,_0x5a577f:0x645,_0x5f2cf5:0x390,_0x37473d:0x5e1,_0x4d79b7:0x74b,_0x3d56e5:0x77a,_0x152417:0x775,_0x500741:0x577,_0x5ddb8e:0x6be,_0x14afb3:0x703,_0x8feb60:0x4e3,_0x1dc1c8:0x40b,_0xbcf632:0x6ba,_0x25fd5c:0x876,_0x208598:0x681,_0x5a0d77:0x495,_0x3b2054:0x601,_0x3898d7:0x690,_0x4870ea:0x67c,_0x7520a8:0x487,_0xfc78d7:0x4f4,_0x183a73:0x39d,_0x1f440a:0x566,_0x12f772:0x4de,_0x43b017:0x695,_0x242d92:0x381,_0x41eedf:0x484,_0x56ba3e:0x6f1},_0x2fbd75={_0x17b59d:0x36e},_0xa615c0={_0x46fce4:0x379},_0x20c410={};_0x20c410[_0x1fcdab(_0x15c326._0x5ccf02,_0x15c326._0x40ab49)]=function(_0x207a67,_0x25dd9f){return _0x207a67==_0x25dd9f;},_0x20c410['VzzkO']='OpenClaw'+_0x1fcdab(_0x15c326._0x1c0ef9,_0x15c326._0x3a780b)+'h\x20gatewa'+_0x21b601(0x752,0x696)+_0x21b601(_0x15c326._0xd93c89,0x462)+_0x21b601(_0x15c326._0xcdd66a,0x758)+'figured,'+_0x21b601(0x5e6,0x6f6)+_0x1fcdab(0x744,0x79b)+'h.mode\x20i'+_0x21b601(0x7c3,_0x15c326._0x4075d3);const _0x353e4a=_0x20c410;function _0x1fcdab(_0x263b43,_0x4adf71){return _0x9ec63e(_0x4adf71-_0xa615c0._0x46fce4,_0x263b43);}const _0xf15261=[];!_0x136c82['openclaw'+_0x21b601(_0x15c326._0x596398,0x3c1)+_0x21b601(_0x15c326._0x55000f,_0x15c326._0x484f51)]&&_0xf15261['push'](_0x1fcdab(_0x15c326._0x34ea48,_0x15c326._0x20b529)+_0x21b601(_0x15c326._0x5e293c,_0x15c326._0x3e7d98)+_0x1fcdab(0x79b,0x6e9)+_0x1fcdab(0x5be,_0x15c326._0x2a0a03)+_0x21b601(0x4bc,0x641)+'penclaw/'+'.');_0x136c82['openclaw'+_0x21b601(_0x15c326._0x2d58dd,0x6ba)+'nd']&&_0x136c82[_0x21b601(_0x15c326._0x31aa9f,_0x15c326._0x5e293c)+'Password'+_0x21b601(_0x15c326._0x5e293c,_0x15c326._0x4f5481)]&&_0x353e4a[_0x21b601(0x56e,_0x15c326._0x449c75)](_0x136c82[_0x1fcdab(0x5c6,_0x15c326._0x4fc9ee)+_0x1fcdab(_0x15c326._0x2e3de7,0x703)],null)&&_0xf15261[_0x21b601(_0x15c326._0x57066f,0x4e9)](_0x353e4a['VzzkO']);!_0x136c82[_0x1fcdab(_0x15c326._0x18b982,_0x15c326._0x2202e0)+_0x21b601(_0x15c326._0x5d6fad,_0x15c326._0x3eeaf8)+'nd']&&!_0x136c82['openclaw'+_0x21b601(0x846,0x726)+_0x1fcdab(0x724,_0x15c326._0x5a577f)]&&_0xf15261['push'](_0x21b601(_0x15c326._0x5f2cf5,0x4cd)+_0x1fcdab(_0x15c326._0x37473d,_0x15c326._0x4d79b7)+'\x20auth\x20is'+'\x20missing'+_0x1fcdab(0x6f0,0x680)+_0x21b601(_0x15c326._0x3d56e5,0x6ed)+_0x1fcdab(_0x15c326._0x152417,_0x15c326._0x500741));_0x136c82[_0x1fcdab(0x772,0x652)+_0x1fcdab(_0x15c326._0x5ddb8e,_0x15c326._0x14afb3)]===_0x1fcdab(_0x15c326._0x8feb60,_0x15c326._0x1dc1c8)&&!_0x136c82[_0x21b601(0x761,0x647)+_0x21b601(0x6dd,_0x15c326._0xbcf632)+'nd']&&_0xf15261[_0x21b601(0x3eb,0x4e9)](_0x21b601(0x417,0x4cd)+'\x20gateway'+'\x20token\x20i'+_0x1fcdab(_0x15c326._0x25fd5c,0x6d3)+'g.');function _0x21b601(_0x17dc14,_0x54e1f9){return _0x9ec63e(_0x54e1f9-_0x2fbd75._0x17b59d,_0x17dc14);}return _0x136c82[_0x21b601(_0x15c326._0x208598,0x647)+_0x21b601(0x8c8,0x6f8)]===_0x1fcdab(0x3f1,_0x15c326._0x5a0d77)&&!_0x136c82[_0x21b601(_0x15c326._0x3b2054,0x647)+'Password'+_0x21b601(0x49b,0x63a)]&&_0xf15261[_0x1fcdab(0x3eb,0x4f4)]('OpenClaw'+_0x21b601(0x7c8,0x740)+_0x1fcdab(0x5e7,_0x15c326._0x3898d7)+_0x21b601(0x72a,_0x15c326._0x4870ea)+'sing.'),!_0x136c82['localGat'+_0x21b601(0x754,0x5c7)+_0x1fcdab(0x40f,_0x15c326._0x7520a8)]&&_0xf15261[_0x1fcdab(0x6f0,_0x15c326._0xfc78d7)]('Local\x20Op'+_0x1fcdab(_0x15c326._0x183a73,_0x15c326._0x1f440a)+'ateway\x20i'+_0x21b601(0x600,0x5ba)+_0x21b601(_0x15c326._0x12f772,_0x15c326._0x43b017)+'at\x20'+_0x136c82[_0x21b601(_0x15c326._0x242d92,_0x15c326._0x41eedf)+_0x1fcdab(_0x15c326._0x56ba3e,0x685)]+'.'),_0xf15261;}function readLogFile(_0x2e4276){const _0x36d3ed={_0x42e352:0x1a2,_0x4b0335:0x17b,_0x113cf5:0x1e2,_0xe7b607:0xdf},_0x3deb77={_0x2a49e2:0x321},_0x412e79={_0x8aee1b:0xcc};function _0x373c54(_0x2e685f,_0x2d25a1){return _0x9ec63e(_0x2d25a1- -_0x412e79._0x8aee1b,_0x2e685f);}function _0x54ec7c(_0x24013e,_0x28d151){return _0x9ec63e(_0x28d151- -_0x3deb77._0x2a49e2,_0x24013e);}try{const _0x4b1586=_0x236477(_0x2e4276,_0x54ec7c(-_0x36d3ed._0x42e352,-_0x36d3ed._0x4b0335));return _0x4b1586[_0x373c54(-_0x36d3ed._0x113cf5,0x4)](/\r?\n/)['filter'](Boolean)[_0x373c54(-0xcf,_0x36d3ed._0xe7b607)](_0x2d7a9d=>({'raw':_0x2d7a9d,'ts':parseTimestamp(_0x2d7a9d)}));}catch{return[];}}function parseTimestamp(_0x5884b0){const _0xd89023={_0x3a0c54:0xf,_0x19ef4f:0x31},_0x29c210={_0x226497:0xc9};function _0x437e4(_0x5f208c,_0x5852bd){return _0x431448(_0x5f208c,_0x5852bd- -0x27a);}const _0x143ea0=_0x5884b0[_0x437e4(0x1,0xfa)](/^\[(\d{13})\]\s/);function _0x45d3e6(_0x10d3e8,_0x2eafc3){return _0x431448(_0x10d3e8,_0x2eafc3-_0x29c210._0x226497);}if(!_0x143ea0)return null;const _0x203cdf=Number(_0x143ea0[0x1]);return Number[_0x437e4(-_0xd89023._0x3a0c54,-_0xd89023._0x19ef4f)](_0x203cdf)?_0x203cdf:null;}function clampLines(_0x582e00){const _0x480f27={_0x599db9:0x2f3,_0x1c62e8:0x4e7,_0x30aadc:0x630,_0x57b7f3:0x34d},_0x22e525={_0x51338b:0x2c2};function _0x509b1d(_0x57ea26,_0x55baa5){return _0x9ec63e(_0x57ea26-0x26f,_0x55baa5);}if(!Number['isFinite'](_0x582e00))return 0xc8;function _0x336627(_0x4d2308,_0x5a1b2d){return _0x9ec63e(_0x5a1b2d-_0x22e525._0x51338b,_0x4d2308);}return Math[_0x509b1d(_0x480f27._0x599db9,_0x480f27._0x1c62e8)](0x1,Math[_0x509b1d(0x452,_0x480f27._0x30aadc)](0x7d0,Math[_0x336627(_0x480f27._0x57b7f3,0x371)](_0x582e00)));}async function checkGatewayReachable(_0x3df930){const _0x595dcc={_0x679271:0x33f,_0x1d12c9:0x33b,_0x581278:0x2aa,_0x377428:0x141,_0x351222:0x16a,_0x4ebaf3:0x1c2},_0x94282={_0x5e08a2:0x460,_0x55cb11:0x4b3,_0x4df121:0x643},_0x57dd8c={_0x56ddfb:0x4f4},_0x210217={_0x3c0189:0x2e1,_0x4644e9:0x396,_0x664d65:0x24f},_0x1dbb1f={_0x3e79e8:0x23c},_0x5f5267={_0x5478e1:0x22d};function _0x6eb4b4(_0x2950d3,_0x5b14e9){return _0x9ec63e(_0x2950d3-_0x5f5267._0x5478e1,_0x5b14e9);}const _0x11aedf={'naPxm':function(_0xcb396e){return _0xcb396e();},'zYJUq':function(_0x52b7f5,_0x25ea1d){return _0x52b7f5(_0x25ea1d);},'PjGSm':_0x6eb4b4(0x47d,0x4c4)};function _0x1d3d74(_0x37c187,_0x37e79b){return _0x9ec63e(_0x37e79b- -_0x1dbb1f._0x3e79e8,_0x37c187);}try{const _0x2d9611=new URL(_0x3df930),_0x1d090a=_0x2d9611[_0x6eb4b4(_0x595dcc._0x679271,_0x595dcc._0x1d12c9)]||_0x1d3d74(-_0x595dcc._0x581278,-_0x595dcc._0x377428)+'1',_0x5357d7=_0x2d9611[_0x1d3d74(_0x595dcc._0x351222,_0x595dcc._0x4ebaf3)]?Number(_0x2d9611[_0x1d3d74(0x20d,_0x595dcc._0x4ebaf3)]):_0x2d9611['protocol']===_0x11aedf['PjGSm']?0x1bb:0x50;return await new Promise((_0x531446,_0x261d50)=>{const _0x7f83df={_0x439bda:0x477},_0x402734={_0x1b86a5:0x29c},_0x1c7b9a={_0x11a168:0x490},_0x449882={_0x21802c:0x4da,_0x519f30:0x109},_0x258c34={_0x2bd0fd:0x22f},_0x22c93c={_0x277459:0x573,_0x10a20a:0x66e},_0x5203c5={'GXeLf':function(_0x2914c4,_0x299185){function _0x41577b(_0x1e01d2,_0x19ffc2){return _0x1bf0(_0x1e01d2-0x2f1,_0x19ffc2);}return _0x11aedf[_0x41577b(_0x22c93c._0x277459,_0x22c93c._0x10a20a)](_0x2914c4,_0x299185);}},_0x3d23cc=new Socket();_0x3d23cc[_0x6de274(_0x94282._0x5e08a2,0x3ea)+'ut'](0x384),_0x3d23cc['once']('connect',()=>{const _0x2f8280={_0x58d97a:0x48a};function _0x4419de(_0x53323a,_0x2f2445){return _0x6de274(_0x53323a- -_0x2f8280._0x58d97a,_0x2f2445);}_0x3d23cc[_0x30dea0(0x1b3,_0x210217._0x3c0189)]();function _0x30dea0(_0x13929a,_0x125722){return _0x6de274(_0x125722- -_0x258c34._0x2bd0fd,_0x13929a);}_0x11aedf[_0x30dea0(_0x210217._0x4644e9,_0x210217._0x664d65)](_0x531446);}),_0x3d23cc[_0x4ee6d9(0x549,0x3e9)]('timeout',()=>{const _0x5ad6ad={_0x28f49a:0x1a5};_0x3d23cc[_0x3865ef(_0x449882._0x21802c,0x6d7)]();function _0x3865ef(_0x4e75f4,_0x517538){return _0x4ee6d9(_0x517538,_0x4e75f4-_0x5ad6ad._0x28f49a);}function _0x2bbd40(_0x49169d,_0x19c86a){return _0x4ee6d9(_0x19c86a,_0x49169d- -0x343);}_0x261d50(new Error(_0x2bbd40(_0x449882._0x519f30,0x19)));}),_0x3d23cc[_0x6de274(0x5c4,_0x94282._0x55cb11)]('error',_0x187775=>{function _0x15529c(_0x340e55,_0x2e52aa){return _0x6de274(_0x2e52aa- -0x1c,_0x340e55);}_0x3d23cc[_0x15529c(0x666,_0x57dd8c._0x56ddfb)]();function _0xdff93f(_0x5aeaf8,_0x5abb15){return _0x6de274(_0x5aeaf8- -_0x1c7b9a._0x11a168,_0x5abb15);}_0x5203c5[_0xdff93f(0x1ed,0x224)](_0x261d50,_0x187775);});function _0x4ee6d9(_0x9efe4b,_0x398f7f){return _0x1d3d74(_0x9efe4b,_0x398f7f-_0x402734._0x1b86a5);}function _0x6de274(_0x44f08f,_0x3dce8b){return _0x1d3d74(_0x3dce8b,_0x44f08f-_0x7f83df._0x439bda);}_0x3d23cc[_0x6de274(_0x94282._0x4df121,0x81d)](_0x5357d7,_0x1d090a);}),!![];}catch{return![];}}function parseLookbackToMs(_0x1bdd34){const _0x59dd99={_0x1cbad6:0x4a,_0x37c8f7:0x1cd,_0x1d2bf4:0x43,_0x37fa9d:0x143,_0x564784:0x1fc,_0xd35336:0x2a8,_0x22e0d1:0x4,_0xc51107:0xd6,_0x7df9b9:0x3cc},_0x4fb636={_0x568e1b:0x2d7},_0x301f6f={};_0x301f6f[_0x3089ac(-_0x59dd99._0x1cbad6,-0x82)]=function(_0x15ee42,_0x1ea4dd){return _0x15ee42===_0x1ea4dd;};const _0x1dba5f=_0x301f6f,_0x27a802=_0x1bdd34?.[_0x38defc(0x391,_0x59dd99._0x37c8f7)]();function _0x3089ac(_0x61dee7,_0x427782){return _0x9ec63e(_0x61dee7- -_0x4fb636._0x568e1b,_0x427782);}if(!_0x27a802)return null;const _0x36b869=_0x27a802[_0x3089ac(_0x59dd99._0x1d2bf4,-_0x59dd99._0x37fa9d)](/^(\d+)(ms|s|m|h|d)$/i);if(!_0x36b869)throw new Error(_0x3089ac(-_0x59dd99._0x564784,-0x13b)+'--last\x20v'+_0x3089ac(-0x109,-_0x59dd99._0xd35336)+_0x27a802+(_0x3089ac(-0x222,-0x329)+'alues\x20li'+_0x3089ac(-0x79,-0x10f)+_0x38defc(0x18f,_0x59dd99._0x22e0d1)+_0x3089ac(-_0x59dd99._0xc51107,-0x133)));const _0x554b6e=Number(_0x36b869[0x1]),_0x5a447c=_0x36b869[0x2]['toLowerC'+_0x38defc(_0x59dd99._0x7df9b9,0x268)](),_0x36efa0=_0x5a447c==='ms'?0x1:_0x1dba5f['UORkA'](_0x5a447c,'s')?0x3e8:_0x5a447c==='m'?0xea60:_0x5a447c==='h'?0x36ee80:0x5265c00;function _0x38defc(_0x5be1a6,_0x418a33){return _0x9ec63e(_0x5be1a6-0xc2,_0x418a33);}return _0x554b6e*_0x36efa0;}import{readFileSync as _0x500803}from'fs';import{dirname as _0x5a8ef5,resolve}from'path';import{fileURLToPath}from'url';function readCliVersion(){const _0x262366={_0x5b96fc:0x4ab,_0x64cf44:0x23d,_0x2a1092:0x359,_0x4584e9:0x419,_0x52e376:0x303},_0x4632cb={_0x294d20:0x26},_0xd418e6={_0x4a62ff:0xdb},_0x54cc45={'fuQzh':function(_0x524735,_0x399997){return _0x524735(_0x399997);},'DAhrK':function(_0x5286f2,_0x1803eb,_0x506539){return _0x5286f2(_0x1803eb,_0x506539);},'lbcQu':_0x41800f(0x2db,_0x262366._0x5b96fc)},_0x3816ef=_0x5a8ef5(_0x54cc45['fuQzh'](fileURLToPath,import.meta.url)),_0x256208=_0x54cc45['DAhrK'](resolve,_0x3816ef,_0x41800f(_0x262366._0x64cf44,0x16b)+_0x3a6105(_0x262366._0x2a1092,0x197));function _0x41800f(_0x6b87aa,_0x178ffd){return _0x431448(_0x178ffd,_0x6b87aa-_0xd418e6._0x4a62ff);}const _0x1bcc72=_0x500803(_0x256208,_0x54cc45[_0x41800f(_0x262366._0x4584e9,_0x262366._0x52e376)]);function _0x3a6105(_0x261056,_0x1520b8){return _0x431448(_0x1520b8,_0x261056- -_0x4632cb._0x294d20);}const _0x48a331=JSON['parse'](_0x1bcc72);return _0x48a331['version']??'unknown';}function buildPairingJson(_0x161a76,_0x33f3bd,_0x2b7400,_0xe4e3c4){const _0x11fc5d={_0xe4c060:0x775,_0x306821:0x611,_0x395bf1:0x759,_0x39a88f:0x4a2,_0x5d1b7c:0x5a6,_0x360203:0x9f7,_0x5cbe84:0x5b0,_0x56a88b:0x57a,_0x47cdae:0x585,_0x41b2b7:0x54c,_0x16f8fb:0x5db,_0x533aab:0x448,_0x4b9178:0x436,_0x24f499:0x82d,_0x46e9db:0x749,_0x63c986:0x6f2,_0x181cfb:0x6e9,_0x255436:0x884,_0x1904de:0x4d9,_0x25793b:0x33d,_0x4f1c6a:0x53b,_0x370879:0x657,_0x5da84c:0x654,_0x4fbfa1:0x3ce,_0xe710cc:0x61f,_0x2cd550:0x439,_0x4f11b4:0x798,_0x5e008c:0x5f6},_0x2c81f8={_0x484f4e:0x3ae},_0x2ca9b3={};_0x2ca9b3[_0x1e7e3d(_0x11fc5d._0xe4c060,_0x11fc5d._0x306821)+'d']=_0x2b7400[_0x1e7e3d(_0x11fc5d._0xe4c060,_0x11fc5d._0x395bf1)+'d'],_0x2ca9b3[_0x16e19d(0x4f9,0x3ee)]=_0x2b7400[_0x1e7e3d(_0x11fc5d._0x39a88f,_0x11fc5d._0x5d1b7c)],_0x2ca9b3[_0x1e7e3d(0x812,_0x11fc5d._0x360203)]=_0x2b7400['method'],_0x2ca9b3['serviceP'+_0x1e7e3d(0x61f,0x679)]=_0x2b7400[_0x16e19d(0x5c6,0x51a)+'ath'];function _0x1e7e3d(_0x5e0577,_0x3aaf69){return _0x431448(_0x3aaf69,_0x5e0577-_0x2c81f8._0x484f4e);}_0x2ca9b3[_0x16e19d(0x57a,_0x11fc5d._0x5cbe84)]=_0x2b7400[_0x16e19d(_0x11fc5d._0x56a88b,_0x11fc5d._0x47cdae)],_0x2ca9b3['errorLog'+_0x1e7e3d(0x5b1,_0x11fc5d._0x41b2b7)]=_0x2b7400['errorLog'+_0x16e19d(0x608,_0x11fc5d._0x16f8fb)],_0x2ca9b3[_0x16e19d(0x49f,0x360)]=_0x2b7400[_0x1e7e3d(_0x11fc5d._0x533aab,_0x11fc5d._0x4b9178)];const _0x17f5f6={};_0x17f5f6['ok']=!![],_0x17f5f6['action']=_0x161a76['action'],_0x17f5f6['message']=_0xe4e3c4,_0x17f5f6[_0x1e7e3d(0x5ef,0x583)+'d']=_0x161a76[_0x1e7e3d(_0x11fc5d._0x24f499,_0x11fc5d._0x46e9db)][_0x16e19d(0x646,_0x11fc5d._0x63c986)+'d'],_0x17f5f6[_0x1e7e3d(_0x11fc5d._0x181cfb,0x7a4)]=_0x161a76[_0x16e19d(_0x11fc5d._0x255436,0x966)][_0x1e7e3d(0x6e9,0x622)],_0x17f5f6[_0x16e19d(0x579,0x632)+'l']=_0x161a76[_0x1e7e3d(0x82d,0x9e2)][_0x1e7e3d(0x522,0x545)+'l'],_0x17f5f6['instance'+'Id']=_0x161a76[_0x1e7e3d(0x82d,0x8d2)]['instance'+'Id'],_0x17f5f6[_0x16e19d(_0x11fc5d._0x1904de,0x568)+'de']=_0x161a76['accessCo'+'de'],_0x17f5f6[_0x16e19d(0x4d9,_0x11fc5d._0x25793b)+_0x16e19d(0x535,_0x11fc5d._0x4f1c6a)+_0x1e7e3d(_0x11fc5d._0x370879,0x601)]=_0x161a76['accessCo'+_0x16e19d(0x535,0x3b0)+_0x16e19d(0x6ae,_0x11fc5d._0x5da84c)],_0x17f5f6[_0x16e19d(0x4de,_0x11fc5d._0x4fbfa1)+_0x1e7e3d(_0x11fc5d._0xe710cc,_0x11fc5d._0x2cd550)]=_0x33f3bd,_0x17f5f6[_0x1e7e3d(_0x11fc5d._0x4f11b4,_0x11fc5d._0x5e008c)]=_0x2ca9b3;function _0x16e19d(_0x27f607,_0x1cc8d2){return _0x431448(_0x1cc8d2,_0x27f607-0x405);}return _0x17f5f6;}import{mkdirSync as _0x41762f,writeFileSync as _0x47d3ab}from'fs';import{dirname as _0x497424,isAbsolute,join as _0x13ee84,resolve as _0x37838e}from'path';import _0x142aec from'qrcode';var DEFAULT_QR_DIR=getOpenClawMediaDir();async function writePairingQrPng(_0x1a74f0,_0x2695b4){const _0x37ca76={_0x498fc0:0xae,_0x1b451b:0xc8,_0x4a4eda:0x1f6,_0x5bce00:0x244,_0x219cbf:0xe6,_0x217969:0xbf,_0x4d2abd:0x102,_0x3d39ef:0x1b3,_0x3a4250:0x110,_0x23e725:0x8,_0x4330e9:0x1a1},_0x52e599={_0x15f979:0x1b0},_0x2d15e8=resolveQrOutputPath(_0x1a74f0,_0x2695b4),_0x45397a={};_0x45397a[_0x3253c0(-0x119,-0x1f9)+'e']=!![],_0x41762f(_0x497424(_0x2d15e8),_0x45397a);const _0x295e95={};_0x295e95[_0x3253c0(0x181,_0x37ca76._0x498fc0)]=_0x2c16de(0x114,-0x6)+'g',_0x295e95[_0x2c16de(-_0x37ca76._0x1b451b,-_0x37ca76._0x4a4eda)+_0x2c16de(0x255,_0x37ca76._0x5bce00)+_0x3253c0(0x132,0xa2)]='M';function _0x2c16de(_0x19875c,_0x56c825){return _0x9ec63e(_0x19875c- -_0x52e599._0x15f979,_0x56c825);}_0x295e95['margin']=0x1,_0x295e95[_0x3253c0(-_0x37ca76._0x219cbf,_0x37ca76._0x217969)]=0x2d0;function _0x3253c0(_0x33360d,_0x92aff5){return _0x9ec63e(_0x92aff5- -0x2a2,_0x33360d);}const _0x35b93c=await _0x142aec['toDataUR'+'L'](_0x1a74f0[_0x3253c0(-_0x37ca76._0x4d2abd,-_0x37ca76._0x3d39ef)+'d'],_0x295e95),_0x15450d=_0x35b93c[_0x2c16de(0x12f,_0x37ca76._0x3a4250)](/^data:image\/png;base64,/,'');return _0x47d3ab(_0x2d15e8,Buffer[_0x2c16de(-_0x37ca76._0x23e725,_0x37ca76._0x4330e9)](_0x15450d,'base64')),_0x2d15e8;}function resolveQrOutputPath(_0x946228,_0xa1be00){const _0x246238={_0x50a8a7:0x3e6,_0x3d5d0f:0x480,_0x312261:0x400,_0x3f0040:0xe0,_0x5ce7ef:0x1c2,_0x219473:0x25f,_0xc02fcf:0x3f2},_0x8171d2={'MgIlx':function(_0xfde867,_0x20eecc){return _0xfde867(_0x20eecc);}},_0x59e2e8=_0xa1be00?.[_0x581a6(_0x246238._0x50a8a7,0x4b4)]();if(_0x59e2e8)return isAbsolute(_0x59e2e8)?_0x59e2e8:_0x8171d2[_0x581a6(_0x246238._0x3d5d0f,0x677)](_0x37838e,_0x59e2e8);function _0x5bb126(_0x23c197,_0xe5d662){return _0x431448(_0x23c197,_0xe5d662- -0x7f);}function _0x581a6(_0x2d2a82,_0xda115f){return _0x431448(_0xda115f,_0x2d2a82-0xbd);}return _0x13ee84(DEFAULT_QR_DIR,_0x946228[_0x5bb126(0x2cd,_0x246238._0x312261)][_0x5bb126(_0x246238._0x3f0040,_0x246238._0x5ce7ef)+'d']+_0x5bb126(_0x246238._0x219473,_0x246238._0xc02fcf));}function decidePairServiceAction(_0x1e6763,_0x2c23c5){const _0x2e0cc3={_0xf9bb56:0x237,_0x5e2db0:0x9c,_0x34e97a:0x2c4,_0x3fe1ab:0x1a0,_0x42782a:0xb5,_0x5d6697:0x306,_0x1797c0:0x293,_0x33a984:0x301,_0x1cb476:0x1bb,_0x479fb4:0x3c},_0x34210b={_0x11b5bf:0x3f},_0x19c302={_0x7c0109:0x36e};function _0x3c0c7a(_0x18963f,_0x2952c2){return _0x431448(_0x2952c2,_0x18963f- -_0x19c302._0x7c0109);}const _0x22971f={};_0x22971f[_0x3c0c7a(-0x10e,-0x264)]='install';function _0x23ac1f(_0x4af375,_0x36e0d6){return _0x431448(_0x4af375,_0x36e0d6- -_0x34210b._0x11b5bf);}_0x22971f[_0x23ac1f(_0x2e0cc3._0xf9bb56,_0x2e0cc3._0x5e2db0)]=function(_0x4acb89,_0x13d7c9){return _0x4acb89===_0x13d7c9;},_0x22971f[_0x23ac1f(_0x2e0cc3._0x34e97a,0x215)]='restart';const _0x3921c5=_0x22971f;if(!_0x2c23c5['installe'+'d'])return _0x3921c5[_0x23ac1f(_0x2e0cc3._0x3fe1ab,0x221)];if(!_0x2c23c5[_0x23ac1f(0x211,_0x2e0cc3._0x42782a)])return _0x23ac1f(_0x2e0cc3._0x5d6697,0x1db);if(_0x3921c5[_0x3c0c7a(-_0x2e0cc3._0x1797c0,-_0x2e0cc3._0x33a984)](_0x1e6763['action'],_0x3c0c7a(0x66,_0x2e0cc3._0x1cb476)+'ed'))return _0x3921c5[_0x23ac1f(0x3b2,0x215)];return _0x3c0c7a(-0x1e8,-_0x2e0cc3._0x479fb4);}async function main(){const _0x111053={_0x132558:0x59,_0xf8b231:0xa4,_0x107870:0x265,_0x2baaeb:0x1a2,_0x1b5531:0x4ca,_0x325de6:0x41d,_0x25c572:0x18b,_0x358ee5:0xa0,_0x3f03b9:0xce,_0x4203d4:0x206,_0x3c0efc:0x3c7,_0x210e97:0x244,_0x33fb7d:0x154,_0x2800c8:0xc5,_0x31b83e:0x304,_0x32ec66:0x799,_0x48c3da:0x4b,_0x33b0eb:0x161,_0x141e1d:0x12a,_0x2e9794:0x1f1,_0x1503d2:0xe5,_0x41aeb1:0xd1,_0xf157bd:0x588,_0x1e2211:0x15a,_0x2b29aa:0xa7,_0x5b1e1b:0x346,_0x1b55f5:0x37e,_0x15edfd:0x56a,_0x294ae6:0x16e,_0x2cbf23:0x2f6,_0x5d23df:0x3de,_0x3ed30d:0x167,_0x4b349f:0x9e,_0x27302a:0x6d,_0x2caa56:0x9a,_0x35266c:0x34b,_0x5206c5:0x42c,_0x350b24:0x12b,_0x9356bb:0xbb,_0x37b615:0x1b8,_0x19718f:0x145,_0x5c8ec5:0x12b,_0x29805e:0xf1,_0x5a8390:0x2f2,_0x4e2a1f:0x1bd,_0x1eceff:0x232,_0x34160c:0x20c,_0x57c8ea:0x158,_0x1b7e00:0x4da,_0x15c8bd:0x577,_0xc62f8a:0x226,_0x2b15df:0x374,_0x5971d2:0x5f,_0x3bc515:0xc,_0x104c2e:0x6d6,_0x5a5dbb:0x60f,_0x47567c:0x392,_0xdaa111:0x236,_0xc39fd9:0x53c,_0x10b9f4:0x719,_0x4369f5:0x118,_0x25d923:0xf2,_0x262960:0x406,_0x223343:0x5e9,_0x3e6ef8:0xd8,_0x487754:0x49,_0x517f74:0xbd,_0x2ba9e0:0x2d7,_0x296222:0x43,_0x4f3715:0xb3,_0x735e21:0x5cf,_0x210a71:0x1a3,_0x41066c:0x1c3,_0x12cf65:0x4,_0x410689:0x569,_0x2a37ce:0x7af,_0x3b5fb0:0x44c,_0x2b1be9:0xec,_0x59eff6:0x2c0,_0xb6dc45:0x5fa,_0x4dc23d:0x4a0,_0x1b9908:0x1d6,_0x350ffd:0x1c4,_0x49c2a4:0x6f3,_0x148b2:0x680,_0xf47aa3:0x414,_0x1e6942:0x153,_0x4f7cc6:0x365,_0xd3161d:0x53d,_0x54c0a4:0x5df,_0x2bf266:0x705,_0x204fb5:0x1e2,_0x2d4057:0xb2,_0x372c4a:0x636,_0x419b04:0x1d,_0x5ba2c6:0x44d,_0x452270:0x48e,_0x991c4:0x41a,_0x7c5acf:0x4e0,_0x5910ff:0x1d,_0x49b156:0x260,_0x2c0b05:0x62d,_0x24d20d:0x6ec,_0x114cbf:0x1f,_0xe82af7:0x13e,_0x12b861:0x126,_0xbcd970:0x6f,_0x2cf936:0x7b,_0x6a5aa6:0x3d,_0x533ece:0x18e,_0x340885:0x342,_0x5b9509:0x386,_0x264852:0x16,_0x377a89:0x11c,_0x2ee631:0xcf,_0x5e1af1:0x2c1,_0x3a2d31:0x29a,_0x95220b:0x336,_0xf8d3c:0x247,_0x229a14:0xc8,_0x4c2f1d:0x45f,_0x338e14:0xe4,_0x428718:0x576,_0x285025:0x461,_0x14b251:0x20a,_0x507f04:0x17a,_0x501b97:0x274,_0x53bfae:0x1c9,_0x4a73b6:0xfa,_0xe4599a:0x22a,_0x56a74e:0x185,_0x4eb03a:0x1b3,_0x5880e7:0x18f,_0x7d3f16:0x461,_0x5caef2:0x44d,_0x28eba7:0x5cb,_0x522933:0x299,_0x1bf00f:0x449,_0x312b7c:0x1de,_0x33d7b3:0x306,_0x1691b7:0xd5,_0x23481e:0xe3,_0x2147f9:0xd4,_0x264d25:0x56,_0x1126e4:0x2a5,_0x498287:0x1d,_0x2c2182:0x3,_0x5ef3b3:0x352,_0x37aab7:0x479,_0x1e981c:0x64f},_0x5537c5={_0x45fe32:0x96,_0x3edee9:0x45,_0x329eaf:0x14e,_0x44b344:0x316,_0x1a43a4:0x73,_0x5b38eb:0x42,_0x37329b:0x162,_0x31f88c:0x2e9},_0x172ec0={_0x1aaf4a:0x459},_0x17f057={_0x1836eb:0x233,_0x5e04ee:0xe7,_0x17d37e:0x1e1,_0x139921:0xf8,_0x55c648:0xe1,_0xce9421:0x1,_0x1708a0:0x22f,_0x59cce1:0x568,_0xce0d89:0x153,_0x2a4d4c:0x4b5,_0x2188ed:0x2b2,_0x2c2f34:0xdf,_0xcfd75c:0x1b6,_0x26ee98:0x310},_0x45658e={_0x5a54b7:0x2bb},_0x3ecd8c={_0x9d0e65:0x31d,_0x17fa21:0x3db,_0x4859a3:0x561,_0x2dbd10:0x665,_0x16ea5e:0x6aa,_0x29528a:0x4fc,_0x713e65:0x241,_0x153065:0x7a,_0x2136a0:0xbb,_0xd20ae7:0x131,_0x48d22d:0x26c,_0x102970:0xca,_0x33191d:0x168,_0x344152:0x1f9,_0x262b20:0x3db,_0x13be74:0x3c7,_0x5d75e3:0x183,_0x46c072:0x36c,_0x582622:0x355,_0x1e0ec8:0x24d},_0x4fdee2={_0x416a13:0x4fe,_0x866ab2:0x4e3},_0x2cd34b={_0x1a4320:0x19c,_0x2a36f6:0x109,_0x340583:0x272,_0x100750:0x2e2},_0x521e23={_0x3ca207:0x363},_0x15e8b2={'DrxEt':function(_0x53456b,_0x37f706){return _0x53456b(_0x37f706);},'PMirx':function(_0x55050d,_0x204dba){return _0x55050d(_0x204dba);},'LqEFg':_0x1abcba(0x203,_0x111053._0x132558),'INwwG':_0x1abcba(0x1f7,_0x111053._0xf8b231),'DggkL':_0x1abcba(0xb0,_0x111053._0x107870)+'e','uUhby':function(_0x1e2456,_0x4927d3,_0x4be671){return _0x1e2456(_0x4927d3,_0x4be671);},'TiTKv':_0x1abcba(_0x111053._0x2baaeb,-0x64),'eAvAO':_0x1abcba(0x75,-0x165)+_0x5325ff(_0x111053._0x1b5531,0x607)+_0x5325ff(0x459,0x4cb)+_0x5325ff(0x3c4,_0x111053._0x325de6),'Xjpkr':function(_0x23f0c2,_0x486faa){return _0x23f0c2===_0x486faa;},'PmcsL':function(_0xe84cd9,_0x1960a4,_0x2292c7,_0x3fb1e6,_0x52c35a){return _0xe84cd9(_0x1960a4,_0x2292c7,_0x3fb1e6,_0x52c35a);},'HyzWS':function(_0x5e6f37,_0x185be0,_0x56eea6){return _0x5e6f37(_0x185be0,_0x56eea6);},'TLDci':_0x1abcba(-0xb,-_0x111053._0x25c572),'OIhNi':_0x5325ff(0x427,0x512)+'talled\x20b'+'ackgroun'+_0x1abcba(0xe1,_0x111053._0x358ee5)+'e.','aSxgd':'register'+'ed','ebdsT':function(_0x38083c,_0x51ac8c,_0x34d5cf){return _0x38083c(_0x51ac8c,_0x34d5cf);},'obQUy':'--qr-fil'+'e','ywVSF':function(_0x556a1a,_0x4a7787){return _0x556a1a in _0x4a7787;},'HAGgr':'error','amURD':function(_0xe734f2,_0x717b51){return _0xe734f2(_0x717b51);},'rXMRo':function(_0x254fb9,_0x466994){return _0x254fb9===_0x466994;},'sLtEJ':function(_0x239f66){return _0x239f66();},'uDlEa':function(_0x23b1f3,_0x533efa,_0x570b84){return _0x23b1f3(_0x533efa,_0x570b84);},'OShbn':_0x1abcba(_0x111053._0x3f03b9,_0x111053._0x4203d4)+'l','dCpKM':function(_0xb41191){return _0xb41191();},'KrTLr':function(_0x2747ac){return _0x2747ac();},'tuNhE':function(_0x1a4132,_0x3e8dca){return _0x1a4132===_0x3e8dca;},'Ijepa':function(_0x2ced1b,_0x78914c){return _0x2ced1b(_0x78914c);},'BhMhf':'--errors','GaubZ':function(_0x1d497d,_0x5726fe){return _0x1d497d===_0x5726fe;},'WLyIj':function(_0x35db6e,_0x23c720,_0x1a4c61){return _0x35db6e(_0x23c720,_0x1a4c61);},'rvmwU':function(_0x45cc69,_0x29bc85,_0x5ad76a){return _0x45cc69(_0x29bc85,_0x5ad76a);},'HTiRZ':_0x5325ff(_0x111053._0x3c0efc,_0x111053._0x210e97)},[,,_0x5e2d69='help',..._0x32b198]=process[_0x1abcba(_0x111053._0x33fb7d,_0x111053._0x2800c8)],_0x71fd2d=hasFlag(_0x32b198,_0x15e8b2['DggkL']),_0x51fbf7=_0x15e8b2[_0x5325ff(_0x111053._0x31b83e,0x3ed)](hasFlag,_0x32b198,_0x5325ff(0x68e,_0x111053._0x32ec66));if(_0x5e2d69===_0x1abcba(-_0x111053._0x48c3da,-_0x111053._0x33b0eb)){const _0x58a5b8=_0x15e8b2[_0x1abcba(-_0x111053._0x141e1d,-_0x111053._0x2e9794)](hasFlag,_0x32b198,_0x1abcba(-_0x111053._0x1503d2,_0x111053._0x41aeb1));!_0x58a5b8&&await ensurePairPrerequisites();const _0x4d6a42=resolveGatewayAuth();if(_0x5325ff(_0x111053._0xf157bd,0x54e)in _0x4d6a42)throw new Error(_0x4d6a42[_0x1abcba(_0x111053._0x1e2211,0xe3)]);const _0x309c34=_0x15e8b2[_0x1abcba(-_0x111053._0x141e1d,_0x111053._0x2b29aa)](readFlag,_0x32b198,_0x15e8b2['TiTKv'])??readFlag(_0x32b198,'-s')??_0x15e8b2[_0x5325ff(0x47f,0x33b)],_0x2c3b86=readFlag(_0x32b198,_0x1abcba(-0x171,-_0x111053._0x5b1e1b))??readFlag(_0x32b198,'-n')??getDefaultBridgeDisplayName(),_0x418ef2=readFlag(_0x32b198,'--qr-fil'+'e'),_0x11cb9f={};_0x11cb9f[_0x5325ff(_0x111053._0x1b55f5,_0x111053._0x15edfd)+'l']=_0x309c34,_0x11cb9f['displayN'+'ame']=_0x2c3b86,_0x11cb9f[_0x1abcba(-_0x111053._0x294ae6,-0x74)+_0x1abcba(0x1cc,0x1bc)]=_0x4d6a42[_0x5325ff(_0x111053._0x2cbf23,_0x111053._0x5d23df)],_0x11cb9f['gatewayP'+_0x1abcba(0x209,_0x111053._0x3ed30d)]=_0x4d6a42[_0x5325ff(0x380,0x3ec)];const _0x18c9c4=await _0x15e8b2['DrxEt'](pairGateway,_0x11cb9f),_0x422c6a=await writePairingQrPng(_0x18c9c4,_0x418ef2),_0x2e9f3e=getServiceStatus(),_0x46a3ba=decidePairServiceAction(_0x18c9c4,_0x2e9f3e);if(_0x15e8b2[_0x1abcba(0x232,0x306)](_0x46a3ba,_0x1abcba(-_0x111053._0x4b349f,_0x111053._0x27302a))){_0x51fbf7?printJson(_0x15e8b2[_0x5325ff(0x425,0x48f)](buildPairingJson,_0x18c9c4,_0x422c6a,_0x2e9f3e,'Backgrou'+_0x1abcba(0x10e,_0x111053._0x2caa56)+_0x5325ff(_0x111053._0x35266c,0x30f)+_0x5325ff(0x573,_0x111053._0x5206c5)+'ng.\x20Left'+'\x20unchang'+_0x1abcba(-_0x111053._0x350b24,-_0x111053._0x9356bb))):(printPairingInfo(_0x18c9c4,_0x422c6a),console['log']('Backgrou'+_0x1abcba(0x10e,_0x111053._0x37b615)+_0x5325ff(_0x111053._0x35266c,0x2d7)+_0x1abcba(_0x111053._0x19718f,0x143)+'ng.\x20Left'+'\x20unchang'+_0x1abcba(-_0x111053._0x5c8ec5,-_0x111053._0x29805e)),_0x15e8b2[_0x5325ff(_0x111053._0x5a8390,0x3ce)](printServiceResult,null,_0x2e9f3e));return;}try{const _0x33fceb=_0x15e8b2['Xjpkr'](_0x46a3ba,_0x1abcba(-0xb,-0x179))?installService():restartService(),_0x58045f=_0x15e8b2['Xjpkr'](_0x46a3ba,_0x15e8b2[_0x1abcba(_0x111053._0x4e2a1f,0x7a)])?_0x15e8b2['OIhNi']:_0x15e8b2[_0x1abcba(_0x111053._0x1eceff,_0x111053._0x34160c)](_0x18c9c4[_0x1abcba(_0x111053._0x57c8ea,-0xa3)],_0x15e8b2[_0x5325ff(_0x111053._0x1b7e00,_0x111053._0x15c8bd)])?_0x1abcba(_0x111053._0xc62f8a,_0x111053._0x2b15df)+_0x1abcba(-_0x111053._0x5971d2,_0x111053._0x3bc515)+'changed.'+_0x1abcba(-0x49,-0x1a9)+_0x5325ff(0x656,_0x111053._0x104c2e)+_0x5325ff(0x51d,_0x111053._0x5a5dbb)+_0x5325ff(0x616,0x5ee)+_0x1abcba(0x27b,0x164)+_0x5325ff(_0x111053._0x47567c,0x58b)+_0x1abcba(-0x12e,-0x28b):_0x1abcba(_0x111053._0xdaa111,0x27c)+_0x5325ff(_0x111053._0xc39fd9,_0x111053._0x10b9f4)+_0x1abcba(0x273,_0x111053._0x4369f5)+_0x1abcba(_0x111053._0x25d923,0x1cc)+'\x20but\x20sto'+_0x5325ff(_0x111053._0x262960,0x2eb)+_0x5325ff(0x64d,_0x111053._0x223343)+'it.';_0x51fbf7?_0x15e8b2[_0x1abcba(-0x4d,-0x239)](printJson,buildPairingJson(_0x18c9c4,_0x422c6a,_0x33fceb,_0x58045f)):(_0x15e8b2[_0x1abcba(-_0x111053._0x3e6ef8,0xa9)](printPairingInfo,_0x18c9c4,_0x422c6a),printServiceResult(_0x58045f,_0x33fceb));}catch(_0x2f4c09){console['error']('Pairing\x20'+_0x1abcba(0x8,_0x111053._0x487754)+_0x1abcba(_0x111053._0x4369f5,0x2ad)+_0x1abcba(_0x111053._0x517f74,0x14a)+'ctivatio'+_0x1abcba(0x233,_0x111053._0x2ba9e0)+':\x20'+formatError(_0x2f4c09)),console['error'](_0x1abcba(_0x111053._0x296222,_0x111053._0x4f3715)+_0x5325ff(0x469,_0x111053._0x735e21)+_0x5325ff(0x2b2,_0x111053._0x210a71)+'et\x20insta'+'ll\x22\x20or\x20\x22'+'clawket\x20'+_0x1abcba(_0x111053._0x41066c,_0x111053._0x12cf65)+'ually.'),process[_0x1abcba(-0x131,-0x147)]=0x1;}return;}if(_0x5e2d69==='refresh-'+_0x1abcba(0xf0,0x2c6)){const _0x4c92bf=readFlag(_0x32b198,_0x15e8b2[_0x5325ff(0x429,_0x111053._0x410689)]),_0x2adcfe=resolveGatewayAuth();if(_0x15e8b2[_0x5325ff(0x601,_0x111053._0x2a37ce)](_0x15e8b2[_0x5325ff(0x327,_0x111053._0x3b5fb0)],_0x2adcfe))throw new Error(_0x2adcfe[_0x1abcba(0x15a,_0x111053._0x2b1be9)]);const _0x5374cd={};_0x5374cd[_0x5325ff(_0x111053._0x59eff6,0x448)+_0x5325ff(_0x111053._0xb6dc45,_0x111053._0x4dc23d)]=_0x2adcfe[_0x1abcba(-0x138,-_0x111053._0x1b9908)],_0x5374cd[_0x1abcba(_0x111053._0x350ffd,0x63)+_0x5325ff(0x637,_0x111053._0x49c2a4)]=_0x2adcfe['password'];const _0x2a33fd=await refreshAccessCode(_0x5374cd),_0x1d2433=await writePairingQrPng(_0x2a33fd,_0x4c92bf);_0x51fbf7?_0x15e8b2[_0x5325ff(_0x111053._0x148b2,0x6df)](printJson,buildPairingJson(_0x2a33fd,_0x1d2433,getServiceStatus(),_0x5325ff(0x354,_0x111053._0xf47aa3)+_0x1abcba(-0x89,_0x111053._0x1e6942)+_0x5325ff(0x413,_0x111053._0x4f7cc6))):printPairingInfo(_0x2a33fd,_0x1d2433);return;}function _0x5325ff(_0x4a284c,_0x17e068){return _0x431448(_0x17e068,_0x4a284c-0x20a);}if(_0x5e2d69===_0x5325ff(0x423,_0x111053._0xd3161d)){const _0x35600c=requirePairingConfig(),_0x37344a=installService();console['log'](_0x1abcba(-0x17f,-0x99)+_0x5325ff(_0x111053._0x54c0a4,_0x111053._0x2bf266)+_0x1abcba(-0x14,_0x111053._0x204fb5)+_0x1abcba(_0x111053._0x2d4057,0x20c)+_0x5325ff(_0x111053._0x372c4a,0x7a6)+'\x20'+_0x35600c[_0x1abcba(_0x111053._0x419b04,0x3a)+'d']+'.'),printServiceResult(null,_0x37344a);return;}if(_0x15e8b2[_0x5325ff(0x2bc,0x282)](_0x5e2d69,_0x1abcba(-0xa,0x83))){const _0x4b2806=_0x15e8b2['sLtEJ'](requirePairingConfig),_0x4d4f49=restartService();console[_0x5325ff(_0x111053._0x5ba2c6,_0x111053._0x452270)]('Restarte'+'d\x20backgr'+_0x5325ff(_0x111053._0x991c4,0x288)+_0x5325ff(_0x111053._0x7c5acf,0x6e2)+'\x20gateway'+'\x20'+_0x4b2806[_0x1abcba(_0x111053._0x5910ff,0x41)+'d']+'.'),_0x15e8b2[_0x1abcba(0x6f,_0x111053._0x49b156)](printServiceResult,null,_0x4d4f49);return;}if(_0x5e2d69===_0x5325ff(_0x111053._0x2c0b05,_0x111053._0x24d20d)){const _0x18be2a=stopService();console[_0x5325ff(0x44d,0x303)](_0x1abcba(0xc8,0x1ed)+'backgrou'+'nd\x20servi'+'ce.'),_0x15e8b2[_0x1abcba(-0xd8,0xc9)](printServiceResult,null,_0x18be2a);return;}if(_0x5e2d69===_0x15e8b2[_0x1abcba(0x237,0x28b)]){const _0x354c94=uninstallService();console[_0x1abcba(_0x111053._0x114cbf,0x15c)]('Removed\x20'+_0x1abcba(-_0x111053._0xe82af7,-_0x111053._0x12b861)+_0x1abcba(0x10e,_0x111053._0xbcd970)+_0x1abcba(-_0x111053._0x2cf936,_0x111053._0x6a5aa6)+_0x1abcba(-0x15,0x1e6)),printServiceResult(null,_0x354c94);return;}if(_0x5e2d69===_0x1abcba(-_0x111053._0x533ece,-_0x111053._0x340885)){stopService(),_0x15e8b2[_0x5325ff(0x3bf,_0x111053._0x5b9509)](deletePairingConfig),console[_0x1abcba(0x1f,-_0x111053._0x264852)](_0x1abcba(-_0x111053._0x377a89,_0x111053._0x2ee631)+'pairing\x20'+'config:\x20'+getPairingConfigPath());return;}if(_0x5e2d69===_0x5325ff(0x3e6,_0x111053._0x5e1af1)){_0x15e8b2[_0x5325ff(0x4ab,0x382)](printStatus);return;}if(_0x15e8b2[_0x5325ff(0x2e9,_0x111053._0x3a2d31)](_0x5e2d69,'logs')){const _0x18d954=_0x15e8b2[_0x5325ff(_0x111053._0x95220b,0x19b)](Number,readFlag(_0x32b198,_0x1abcba(_0x111053._0xf8d3c,0x2ae))??'200'),_0x55ea6e=parseLookbackToMs(readFlag(_0x32b198,_0x1abcba(0x1a1,_0x111053._0x229a14))??readFlag(_0x32b198,'-l')),_0x3f6302=readRecentCliLogs({'lines':_0x18d954,'lastMs':_0x55ea6e,'includeErrorLog':hasFlag(_0x32b198,_0x15e8b2[_0x1abcba(0x11,-0x116)])});if(_0x51fbf7){const _0x179293={};_0x179293['ok']=!![],_0x179293[_0x5325ff(_0x111053._0x4c2f1d,0x48d)]=_0x3f6302,printJson(_0x179293);}else _0x3f6302['length']===0x0?console['log'](_0x1abcba(-0xc9,-_0x111053._0x338e14)+_0x1abcba(0xbf,-0x95)+_0x5325ff(_0x111053._0x428718,0x459)+'nd.'):console['log'](_0x3f6302[_0x5325ff(0x3bb,_0x111053._0x285025)]('\x0a'));return;}if(_0x15e8b2[_0x5325ff(0x4cd,0x590)](_0x5e2d69,_0x1abcba(-0x144,-0x96))){const _0x399e86=await _0x15e8b2[_0x1abcba(-0x175,-0x202)](buildDoctorReport);_0x51fbf7?_0x15e8b2[_0x1abcba(-0xbf,-_0x111053._0x14b251)](printJson,_0x399e86):_0x15e8b2[_0x5325ff(0x336,0x3a0)](printDoctorReport,_0x399e86);return;}function _0x1abcba(_0x30af11,_0x530b20){return _0x431448(_0x530b20,_0x30af11- -0x224);}if(_0x5e2d69===_0x5325ff(0x5e9,0x4e4)){const _0x318cf6=requirePairingConfig(),_0x305a64=resolveGatewayUrl(_0x15e8b2['WLyIj'](readFlag,_0x32b198,_0x5325ff(0x603,0x740)+_0x1abcba(0x1af,_0x111053._0x507f04))??_0x15e8b2[_0x1abcba(0xc1,_0x111053._0x501b97)](readFlag,_0x32b198,'-g')),_0x568d63=_0x5e9404=>{function _0x4f05ef(_0x156e74,_0x3cdecd){return _0x5325ff(_0x156e74- -0x2b1,_0x3cdecd);}function _0x4a2be4(_0x125aac,_0x3b161b){return _0x5325ff(_0x125aac- -_0x521e23._0x3ca207,_0x3b161b);}console[_0x4f05ef(_0x2cd34b._0x1a4320,_0x2cd34b._0x2a36f6)]('['+Date[_0x4a2be4(_0x2cd34b._0x340583,_0x2cd34b._0x100750)]()+']\x20'+_0x5e9404);};if(!_0x71fd2d){const _0x16d49b=('1|2|4|5|'+_0x1abcba(_0x111053._0x53bfae,0x3b9))[_0x1abcba(-_0x111053._0x4a73b6,-_0x111053._0xe4599a)]('|');let _0x4494aa=0x0;while(!![]){switch(_0x16d49b[_0x4494aa++]){case'0':console['log'](_0x1abcba(-0x15a,-0x2a0)+'\x20bridge\x20'+_0x1abcba(-_0x111053._0x56a74e,-0x14a)+_0x1abcba(_0x111053._0x4eb03a,_0x111053._0x5880e7)+_0x1abcba(-0x56,-0xf0)+_0x5325ff(0x59a,0x743));continue;case'1':console['log'](_0x5325ff(0x473,0x617)+_0x5325ff(_0x111053._0x7d3f16,0x62a)+_0x318cf6['gatewayI'+'d']);continue;case'2':console[_0x5325ff(_0x111053._0x5caef2,_0x111053._0x28eba7)](_0x1abcba(0x212,0x15c)+_0x5325ff(0x343,_0x111053._0x522933)+_0x318cf6[_0x5325ff(_0x111053._0x1bf00f,0x37c)+'Id']);continue;case'3':console[_0x1abcba(0x1f,_0x111053._0x312b7c)]('');continue;case'4':console['log'](_0x5325ff(0x473,_0x111053._0x33d7b3)+_0x1abcba(-_0x111053._0x1691b7,_0x111053._0x23481e)+_0x305a64);continue;case'5':console['log']('');continue;}break;}}else _0x568d63('Starting'+'\x20Clawket'+_0x1abcba(-_0x111053._0x2147f9,0xe8)+_0x1abcba(0x5,_0x111053._0x264d25)+_0x5325ff(0x2da,_0x111053._0x1126e4)+_0x5325ff(0x344,0x185)+_0x318cf6[_0x1abcba(_0x111053._0x498287,-_0x111053._0x2c2182)+'d']);_0x71fd2d&&writeServiceState();const _0x10db96=new BridgeRuntime({'config':_0x318cf6,'gatewayUrl':_0x305a64,'onLog':_0x1f3350=>{const _0x1fcc40={_0x66e3c9:0x30};function _0x290a0b(_0x3987f0,_0x3bfa4c){return _0x5325ff(_0x3987f0-_0x1fcc40._0x66e3c9,_0x3bfa4c);}_0x15e8b2['DrxEt'](_0x568d63,_0x290a0b(_0x4fdee2._0x416a13,_0x4fdee2._0x866ab2)+']\x20'+_0x1f3350);},'onStatus':_0x5e531c=>{function _0x1fe383(_0x92b781,_0x37d257){return _0x1abcba(_0x92b781-0x421,_0x37d257);}function _0x572809(_0x5c917f,_0x2683d8){return _0x1abcba(_0x5c917f-0xbf,_0x2683d8);}if(_0x5e531c[_0x572809(_0x3ecd8c._0x9d0e65,0x319)+'r']){_0x15e8b2['PMirx'](_0x568d63,_0x1fe383(_0x3ecd8c._0x17fa21,_0x3ecd8c._0x4859a3)+_0x1fe383(_0x3ecd8c._0x2dbd10,_0x3ecd8c._0x16ea5e)+(_0x5e531c[_0x1fe383(0x660,_0x3ecd8c._0x29528a)+'nected']?'up':'down')+(_0x572809(0x2c7,_0x3ecd8c._0x713e65)+'=')+(_0x5e531c[_0x1fe383(0x312,0x2b9)+_0x572809(0x115,-_0x3ecd8c._0x153065)]?'up':'down')+(_0x572809(-_0x3ecd8c._0x2136a0,-0x53)+'=')+_0x5e531c[_0x572809(_0x3ecd8c._0xd20ae7,_0x3ecd8c._0x48d22d)+_0x572809(_0x3ecd8c._0x102970,_0x3ecd8c._0x33191d)]+'\x20error='+_0x5e531c[_0x572809(_0x3ecd8c._0x9d0e65,_0x3ecd8c._0x344152)+'r']);return;}_0x568d63(_0x1fe383(_0x3ecd8c._0x262b20,_0x3ecd8c._0x13be74)+_0x1fe383(0x665,0x4d0)+(_0x5e531c[_0x572809(0x2fe,0x484)+_0x572809(0x193,0x153)]?'up':_0x1fe383(0x624,0x6ed))+('\x20gateway'+'=')+(_0x5e531c[_0x572809(-0x50,_0x3ecd8c._0x5d75e3)+_0x1fe383(0x477,0x302)]?'up':_0x15e8b2[_0x1fe383(_0x3ecd8c._0x46c072,0x33c)])+(_0x1fe383(0x2a7,_0x3ecd8c._0x582622)+'=')+_0x5e531c[_0x572809(_0x3ecd8c._0xd20ae7,-0x5b)+_0x1fe383(0x42c,_0x3ecd8c._0x1e0ec8)]);},'onPendingPairRequest':_0x2ebcee=>{function _0x7470f3(_0x55e92a,_0x184c52){return _0x5325ff(_0x55e92a- -_0x45658e._0x5a54b7,_0x184c52);}function _0x130787(_0x477fbb,_0xdf9427){return _0x5325ff(_0xdf9427- -0x31c,_0x477fbb);}_0x568d63('[pair-re'+_0x7470f3(_0x17f057._0x1836eb,_0x17f057._0x5e04ee)+_0x130787(_0x17f057._0x17d37e,_0x17f057._0x139921)+'='+_0x2ebcee['requestI'+'d']+(_0x7470f3(_0x17f057._0x55c648,_0x17f057._0xce9421)+'d=')+(_0x2ebcee[_0x130787(0x120,_0x17f057._0x1708a0)]||_0x7470f3(0x371,_0x17f057._0x59cce1)+'>')+_0x7470f3(0x156,_0x17f057._0xce0d89)+(_0x2ebcee[_0x130787(_0x17f057._0x2a4d4c,_0x17f057._0x2188ed)+_0x7470f3(_0x17f057._0x2c2f34,_0x17f057._0xcfd75c)]??_0x130787(0x291,_0x17f057._0x26ee98)+'>'));}});_0x10db96[_0x5325ff(_0x111053._0x5ef3b3,0x379)]();const _0x35bc50=async()=>{const _0x112d38={_0x54a45d:0xda};process[_0x4256df(-_0x5537c5._0x45fe32,_0x5537c5._0x3edee9)](_0x15e8b2[_0x18d6a1(_0x5537c5._0x329eaf,_0x5537c5._0x44b344)],_0x35bc50);function _0x18d6a1(_0xeb17a5,_0x57019c){return _0x1abcba(_0x57019c-_0x172ec0._0x1aaf4a,_0xeb17a5);}process['off'](_0x4256df(_0x5537c5._0x1a43a4,-_0x5537c5._0x5b38eb),_0x35bc50),await _0x10db96['stop']();function _0x4256df(_0x4deb9e,_0x2b9891){return _0x1abcba(_0x4deb9e-_0x112d38._0x54a45d,_0x2b9891);}_0x71fd2d&&clearServiceState(process['pid']),process[_0x4256df(_0x5537c5._0x37329b,_0x5537c5._0x31f88c)](0x0);};process['on']('SIGINT',_0x35bc50),process['on'](_0x15e8b2[_0x5325ff(_0x111053._0x37aab7,_0x111053._0x1e981c)],_0x35bc50),await new Promise(()=>{});}printHelp();}function printPairingInfo(_0x2f8b1b,_0x260d5f){const _0x46892c={_0x311167:0x36e,_0x1a2b07:0x1c,_0x534c8c:0x182,_0x2d3dfc:0x7,_0xbd5cf7:0x381,_0x5ac5fd:0x251,_0x2c6a50:0x3ba,_0x4b8a4c:0x4cd,_0x399c25:0x5f6,_0x3d63cc:0x1e2,_0x15c97:0x49,_0x46743f:0x4b2,_0x1cec39:0x1f0,_0x3b0d76:0x3e9,_0x1179ad:0x6ab,_0x2456d5:0x5e9,_0x51651e:0x40c,_0x5ce824:0x2ca,_0x5a085b:0x2c0,_0x5a52a5:0x19b,_0x2d1e61:0x3a1,_0x3d562e:0x1d3,_0x32802f:0x24b,_0x30fac1:0xca,_0x363734:0x1a,_0x25abac:0x714},_0x56f97b={_0x17927d:0x1a0},_0x435be4={_0x2acaf6:0x1d1},_0x322aab={'LYbkt':'Bridge\x20a'+'lready\x20p'+_0x448ea1(_0x46892c._0x311167,0x356)+_0x3f73df(-_0x46892c._0x1a2b07,0x122)+_0x3f73df(-0xe1,0x10f)+_0x448ea1(0x52b,0x584)+'e.','FoJbX':function(_0x4b13e1,_0x145483){return _0x4b13e1(_0x145483);}};_0x2f8b1b[_0x3f73df(-0x1f,_0x46892c._0x534c8c)]===_0x3f73df(0x1ba,_0x46892c._0x2d3dfc)+'d'&&console['log'](_0x322aab[_0x3f73df(_0x46892c._0xbd5cf7,_0x46892c._0x5ac5fd)]);console[_0x448ea1(0x3d2,_0x46892c._0x2c6a50)]('Gateway\x20'+_0x3f73df(0x157,0x5d)+_0x2f8b1b[_0x448ea1(_0x46892c._0x4b8a4c,_0x46892c._0x399c25)][_0x3f73df(_0x46892c._0x3d63cc,0x47)+'d']),console[_0x3f73df(-0x186,_0x46892c._0x15c97)](_0x448ea1(0x513,0x5dd)+_0x448ea1(_0x46892c._0x46743f,0x2ce)+_0x3f73df(-0x7,-0x9c)+_0x448ea1(_0x46892c._0x1cec39,0x24c)+_0x3f73df(_0x46892c._0x3b0d76,0x254));const _0x14bfa8={};_0x14bfa8[_0x448ea1(_0x46892c._0x1179ad,0x4c5)]=!![],_0x23ba85[_0x448ea1(_0x46892c._0x2456d5,_0x46892c._0x51651e)](_0x2f8b1b[_0x448ea1(_0x46892c._0x5ce824,_0x46892c._0x5a085b)+'d'],_0x14bfa8),console['log'](_0x3f73df(_0x46892c._0x5a52a5,0x126)+'\x20'+_0x322aab[_0x448ea1(_0x46892c._0x2d1e61,0x50c)](formatLocalTime,_0x2f8b1b[_0x448ea1(_0x46892c._0x3d562e,_0x46892c._0x32802f)+_0x3f73df(-0x101,-_0x46892c._0x30fac1)+_0x448ea1(0x3cb,0x420)]));function _0x448ea1(_0x424f15,_0x1a3992){return _0x9ec63e(_0x1a3992-_0x435be4._0x2acaf6,_0x424f15);}function _0x3f73df(_0x2b7feb,_0x180ad9){return _0x9ec63e(_0x180ad9- -_0x56f97b._0x17927d,_0x2b7feb);}console[_0x3f73df(-_0x46892c._0x363734,0x49)](_0x448ea1(_0x46892c._0x25abac,0x5ac)+':\x20'+_0x260d5f);}function _0x9ec63e(_0x1c1fc1,_0x344010){return _0x1bf0(_0x1c1fc1- -0x82,_0x344010);}function printStatus(){const _0x1f1981={_0x1ac57d:0x172,_0x454745:0x191,_0x11b94c:0x78,_0x15a178:0x1b1,_0x857d60:0x51,_0x38653b:0xd,_0x41d888:0x118,_0x158841:0x41,_0x896281:0xf6,_0x39deda:0x2d,_0x2e4e15:0xb5,_0x5239ad:0xb1,_0x436513:0x11,_0x119a4c:0x140,_0x4be737:0x56,_0x3b2650:0xf4,_0x3e6619:0x10c,_0x417fc2:0x86,_0x860258:0x184,_0x1b2827:0x10a,_0x1b7d4d:0x49,_0x16b39d:0xd7,_0x38a96a:0x1e0,_0x299b4d:0x366,_0x20956d:0x9f,_0x283d12:0x49,_0x361d02:0x2e,_0x119913:0x2c3,_0x12115c:0x107};function _0x5bc87e(_0x5994c2,_0xad94f9){return _0x431448(_0xad94f9,_0x5994c2- -0x284);}const _0x478f5e={'QrmqM':function(_0x2a2c84){return _0x2a2c84();},'pDCPy':function(_0x28e338){return _0x28e338();},'ALbQV':_0x1461f1(_0x1f1981._0x1ac57d,_0x1f1981._0x454745)+'d'},_0x2253a2=_0x478f5e['QrmqM'](readPairingConfig),_0x5d74f2=_0x478f5e[_0x1461f1(0x271,_0x1f1981._0x11b94c)](getServiceStatus),{logPath:_0x4e1b9f,errorLogPath:_0x5b96ca}=getServicePaths(),_0x1beaf9=readCliVersion();console[_0x5bc87e(-0x41,-0x239)](_0x5bc87e(-_0x1f1981._0x15a178,-0x30a)+'\x20'+_0x1beaf9);!_0x2253a2?console[_0x1461f1(-_0x1f1981._0x857d60,_0x1f1981._0x38653b)]('Config:\x20'+_0x1461f1(_0x1f1981._0x41d888,-0x63)+'ed\x20('+getPairingConfigPath()+')'):(console[_0x5bc87e(-_0x1f1981._0x158841,0x1b0)](_0x5bc87e(-0x1a2,0x54)+_0x5bc87e(-0x1e8,-0x3cf)),console[_0x5bc87e(-0x41,-0x13a)](_0x1461f1(-_0x1f1981._0x896281,0x33)+_0x5bc87e(-_0x1f1981._0x39deda,-0xe1)+_0x2253a2['gatewayI'+'d']),console['log'](_0x5bc87e(0x1b2,0x2b2)+':\x20'+_0x2253a2[_0x1461f1(-_0x1f1981._0x2e4e15,0x9)+'Id']),console[_0x1461f1(_0x1f1981._0x5239ad,_0x1f1981._0x38653b)]('Server\x20U'+_0x5bc87e(0x179,-0x69)+_0x2253a2['serverUr'+'l']),console[_0x5bc87e(-_0x1f1981._0x158841,-_0x1f1981._0x436513)](_0x5bc87e(0xd2,0x100)+(_0x2253a2[_0x5bc87e(_0x1f1981._0x119a4c,_0x1f1981._0x4be737)+_0x5bc87e(-_0x1f1981._0x3b2650,-0x1c3)]??'-')));function _0x1461f1(_0xc4ea38,_0x115a93){return _0x431448(_0xc4ea38,_0x115a93- -0x236);}console['log'](_0x1461f1(0x4e,_0x1f1981._0x3e6619)+'\x20'+resolveGatewayUrl()),console[_0x1461f1(_0x1f1981._0x417fc2,_0x1f1981._0x38653b)](_0x5bc87e(0x67,0x8d)+'\x20'+(_0x5d74f2[_0x5bc87e(0x143,_0x1f1981._0x860258)+'d']?_0x478f5e[_0x5bc87e(_0x1f1981._0x1b2827,0x135)]:_0x1461f1(0x169,-_0x1f1981._0x1b7d4d)+_0x5bc87e(_0x1f1981._0x16b39d,-0x72))+'\x20('+_0x5d74f2[_0x5bc87e(_0x1f1981._0x38a96a,_0x1f1981._0x299b4d)]+')'),console[_0x5bc87e(-0x41,0xf2)]('Running:'+'\x20'+(_0x5d74f2[_0x1461f1(_0x1f1981._0x20956d,-0x142)]?'yes':'no')),console['log'](_0x1461f1(_0x1f1981._0x283d12,-0x14c)+(_0x5d74f2[_0x1461f1(-_0x1f1981._0x361d02,-0x75)+_0x5bc87e(-0x13,-0x120)]||'-')),console['log']('Log:\x20'+_0x4e1b9f),console['log'](_0x1461f1(_0x1f1981._0x119913,_0x1f1981._0x12115c)+_0x5bc87e(-0x1c0,-0x10d)+_0x5b96ca),!_0x2253a2&&(process['exitCode']=0x1);}function printServiceResult(_0x53f02d,_0x1ed9cc){const _0x2ae34e={_0x11d7fe:0x522,_0x1865cd:0x5ca,_0x10630e:0x6a6,_0x32f6ec:0x563,_0x3f1aa1:0x3d3,_0x5d0db0:0x28b,_0x4c7246:0x444,_0x5cad98:0x2c9,_0x38a79e:0x1d6,_0x447577:0x530,_0x52c983:0x4cc,_0x5e0bb0:0x526,_0x48ab9b:0x85,_0x5196b0:0x193,_0x81f02b:0x3b5};function _0xf78c18(_0x2099f5,_0x2e72d7){return _0x431448(_0x2099f5,_0x2e72d7-0x2df);}_0x53f02d&&console[_0xf78c18(0x723,_0x2ae34e._0x11d7fe)](_0x53f02d);function _0x351b7c(_0x51e494,_0x528b78){return _0x431448(_0x528b78,_0x51e494- -0x13c);}console['log'](_0xf78c18(0x3d8,_0x2ae34e._0x1865cd)+'\x20'+(_0x1ed9cc[_0xf78c18(0x633,_0x2ae34e._0x10630e)+'d']?_0x1ed9cc[_0xf78c18(_0x2ae34e._0x32f6ec,_0x2ae34e._0x3f1aa1)]?_0x351b7c(_0x2ae34e._0x5d0db0,_0x2ae34e._0x4c7246)+_0xf78c18(_0x2ae34e._0x5cad98,0x376)+'ng':_0x351b7c(0x28b,_0x2ae34e._0x38a79e)+_0x351b7c(-0x35,-0x1bf)+'ed':_0xf78c18(_0x2ae34e._0x447577,_0x2ae34e._0x52c983)+'alled')),console[_0x351b7c(0x107,0xe4)](_0xf78c18(_0x2ae34e._0x5e0bb0,0x70a)+'path:\x20'+(_0x1ed9cc[_0x351b7c(_0x2ae34e._0x48ab9b,_0x2ae34e._0x5196b0)+_0xf78c18(_0x2ae34e._0x81f02b,0x550)]||'-'));}function printDoctorReport(_0x3d5243){const _0x1e380d={_0x166bf4:0x3d0,_0x2b06f1:0x2cf,_0x55f3ec:0x164,_0x5f1c95:0x139,_0x12c2c6:0x127,_0x238a0b:0x328,_0x4e0881:0x111,_0x631541:0xe,_0x4f6e79:0x336,_0x3f6263:0x433,_0x4db3f3:0x239,_0x257562:0x6e,_0x57b46b:0x39b,_0x42f82f:0x1e5,_0x58cefa:0x1f4,_0x3038d2:0x2d0,_0x596f15:0x10f,_0x56d64e:0x297,_0x264d15:0x254,_0xb0f0b8:0x2ad,_0x55623b:0x39f,_0x41e5a4:0xa1,_0x59b31f:0x110,_0x50ad9a:0xa8,_0x1dc7c5:0x338,_0x14a2ff:0x31f,_0x516123:0x304,_0x4f401f:0x239,_0x47cc5f:0x1bb,_0x5b1fe4:0x37a,_0x361b8f:0x257,_0x81a047:0x16b,_0x342c36:0x113,_0xe91684:0x113,_0x1f92da:0x1f5,_0x1d870d:0x29,_0x3a2096:0x65,_0x5ee12c:0x1f9,_0x4842de:0x41e,_0x83eef:0x113,_0x3009f0:0x30e,_0x22b349:0x3d,_0x25d74a:0x203,_0x28600d:0x198,_0x45f289:0x339,_0x5e7ac2:0x1ce,_0x3b6656:0x89,_0x4fa7e8:0x3a6,_0x5972b5:0x379,_0x24b602:0x83,_0x360f40:0x51,_0x55dd6d:0x11b,_0x4f09b8:0x137,_0x5054f1:0x2c3,_0x472a06:0x191,_0x48d837:0x612,_0x6eb53f:0x15f,_0x35e67d:0x1f1,_0x11c669:0x2c3,_0x23f48c:0x491,_0x5154c0:0x4f7,_0x106710:0x28c,_0x170027:0x1f,_0x2887c9:0x69,_0x3d53f5:0x166,_0x3dd766:0xb3,_0x1f8ec1:0x73,_0x21abe1:0x25f,_0x43b6ee:0x2e9,_0x1803e7:0xb2,_0x577907:0xef,_0x4cf009:0x2a9},_0x36a022={_0x195605:0x50},_0x442b30={};_0x442b30['wkgrw']=_0x438e9e(0xbd,0x233)+_0x4f5aa6(0x351,_0x1e380d._0x166bf4),_0x442b30[_0x438e9e(_0x1e380d._0x2b06f1,_0x1e380d._0x55f3ec)]='yes';const _0x53b805=_0x442b30;console[_0x438e9e(0x113,-0x8c)]('Paired:\x20'+(_0x3d5243[_0x438e9e(-0x94,-0x86)]?'yes':'no')),console['log'](_0x438e9e(_0x1e380d._0x5f1c95,0x1d4)+_0x438e9e(_0x1e380d._0x12c2c6,_0x1e380d._0x238a0b)+(_0x3d5243[_0x438e9e(_0x1e380d._0x4e0881,-_0x1e380d._0x631541)+'d']??'-')),console['log'](_0x438e9e(0x271,_0x1e380d._0x4f6e79)+_0x438e9e(0x2cd,_0x1e380d._0x3f6263)+(_0x3d5243['serverUr'+'l']??'-')),console[_0x4f5aa6(_0x1e380d._0x4db3f3,_0x1e380d._0x257562)](_0x4f5aa6(_0x1e380d._0x57b46b,0x290)+_0x4f5aa6(_0x1e380d._0x42f82f,_0x1e380d._0x58cefa)+(_0x3d5243[_0x438e9e(0x20b,_0x1e380d._0x3038d2)]??'-'));function _0x4f5aa6(_0x5a693e,_0xa198b3){return _0x9ec63e(_0x5a693e-_0x36a022._0x195605,_0xa198b3);}console[_0x4f5aa6(_0x1e380d._0x4db3f3,0xdf)](_0x438e9e(0x306,0x3ce)+_0x4f5aa6(0x12f,0x1ed)+(_0x3d5243[_0x438e9e(_0x1e380d._0x596f15,0x2fb)+'Id']??'-')),console[_0x438e9e(0x113,0x248)](_0x4f5aa6(0x2e1,0x1a8)+'\x20'+(_0x3d5243[_0x438e9e(0x17f,-0x6f)+_0x438e9e(0x1e6,0xe7)]?_0x438e9e(_0x1e380d._0x56d64e,_0x1e380d._0x264d15)+'d':_0x53b805['wkgrw'])+'\x20('+_0x3d5243['serviceM'+'ethod']+')'),console[_0x4f5aa6(0x239,_0x1e380d._0xb0f0b8)](_0x4f5aa6(0x421,_0x1e380d._0x55623b)+_0x438e9e(0x13a,-_0x1e380d._0x41e5a4)+'\x20'+(_0x3d5243[_0x4f5aa6(_0x1e380d._0x59b31f,_0x1e380d._0x50ad9a)+_0x438e9e(0x28d,_0x1e380d._0x1dc7c5)]?_0x438e9e(_0x1e380d._0x14a2ff,_0x1e380d._0x516123):'no')),console[_0x4f5aa6(_0x1e380d._0x4f401f,0x127)](_0x438e9e(0x2fb,_0x1e380d._0x47cc5f)+_0x4f5aa6(_0x1e380d._0x5b1fe4,0x1f8)+(_0x3d5243['serviceP'+'ath']||'-')),console['log'](_0x438e9e(_0x1e380d._0x361b8f,0x80)+':\x20'+_0x3d5243[_0x4f5aa6(_0x1e380d._0x81a047,_0x1e380d._0x342c36)]);function _0x438e9e(_0x2f4538,_0x259ffe){return _0x9ec63e(_0x2f4538- -0xd6,_0x259ffe);}console[_0x438e9e(_0x1e380d._0xe91684,_0x1e380d._0x1f92da)](_0x438e9e(_0x1e380d._0x1d870d,-_0x1e380d._0x3a2096)+_0x438e9e(-0x98,-_0x1e380d._0x5ee12c)+_0x3d5243[_0x4f5aa6(_0x1e380d._0x4842de,0x56f)+'Path']),console[_0x438e9e(_0x1e380d._0x83eef,_0x1e380d._0x3009f0)](_0x4f5aa6(0x1af,_0x1e380d._0x22b349)+'\x20dir:\x20'+_0x3d5243[_0x438e9e(_0x1e380d._0x25d74a,_0x1e380d._0x28600d)+_0x4f5aa6(_0x1e380d._0x45f289,_0x1e380d._0x5e7ac2)+'r']),console[_0x4f5aa6(0x239,0x2ef)](_0x438e9e(_0x1e380d._0x3b6656,-0x121)+_0x438e9e(0x225,_0x1e380d._0x4fa7e8)+_0x3d5243[_0x4f5aa6(0x329,0x25d)+_0x438e9e(0x1a5,0x2f1)]),console['log']('OpenClaw'+_0x4f5aa6(_0x1e380d._0x5972b5,0x4cf)+'\x20'+(_0x3d5243[_0x438e9e(_0x1e380d._0x25d74a,0x359)+_0x438e9e(-_0x1e380d._0x24b602,-_0x1e380d._0x360f40)+_0x438e9e(_0x1e380d._0x55dd6d,_0x1e380d._0x4f09b8)]?_0x438e9e(_0x1e380d._0x5054f1,_0x1e380d._0x472a06):_0x4f5aa6(0x429,_0x1e380d._0x48d837))),console[_0x438e9e(0x113,0x222)]('OpenClaw'+_0x438e9e(0xc9,_0x1e380d._0x6eb53f)+(_0x3d5243[_0x4f5aa6(0x329,_0x1e380d._0x35e67d)+_0x438e9e(0x276,0x165)+'nd']?_0x438e9e(_0x1e380d._0x11c669,_0x1e380d._0x23f48c):_0x4f5aa6(0x429,_0x1e380d._0x5154c0))),console[_0x438e9e(0x113,-0xc4)](_0x4f5aa6(0x25f,_0x1e380d._0x106710)+_0x438e9e(_0x1e380d._0x170027,_0x1e380d._0x2887c9)+_0x3d5243[_0x4f5aa6(_0x1e380d._0x3d53f5,_0x1e380d._0x3dd766)+_0x438e9e(0x236,_0x1e380d._0x1f8ec1)]),console['log'](_0x4f5aa6(_0x1e380d._0x21abe1,0x2ad)+_0x4f5aa6(_0x1e380d._0x43b6ee,0xf2)+_0x438e9e(_0x1e380d._0x1803e7,0x1a)+(_0x3d5243[_0x4f5aa6(_0x1e380d._0x3d53f5,_0x1e380d._0x577907)+_0x4f5aa6(_0x1e380d._0x4cf009,0x1fb)+_0x4f5aa6(0x15e,0x2b9)]?_0x53b805[_0x4f5aa6(0x3f5,0x2a0)]:'no'));}function requirePairingConfig(){const _0x347183={_0x1c7799:0x615,_0x310efe:0x36f,_0xa98ee9:0x517,_0x24e647:0x250,_0x434da4:0x78,_0x4d5047:0x374},_0x573910={_0x4dbed3:0x245},_0x2f2d27={_0x22bbb8:0x12d};function _0x464cc7(_0x2ba4a7,_0x5e5862){return _0x9ec63e(_0x2ba4a7-_0x2f2d27._0x22bbb8,_0x5e5862);}const _0x2dc990={'eiBTd':function(_0x27fbc1){return _0x27fbc1();}};function _0x82d741(_0x14920a,_0x151905){return _0x9ec63e(_0x151905-_0x573910._0x4dbed3,_0x14920a);}const _0x13aa4c=readPairingConfig();return!_0x13aa4c&&(console[_0x464cc7(0x451,_0x347183._0x1c7799)](_0x82d741(0x49c,0x38e)+_0x82d741(_0x347183._0x310efe,_0x347183._0xa98ee9)+'\x22clawket'+'\x20pair\x22\x20f'+'irst.\x20Co'+_0x464cc7(_0x347183._0x24e647,_0x347183._0x434da4)+'h:\x20'+_0x2dc990[_0x82d741(0x3aa,_0x347183._0x4d5047)](getPairingConfigPath)),process['exit'](0x1)),_0x13aa4c;}function readFlag(_0x5e5396,_0x1d6ee9){const _0x38a51d={_0x585a54:0x68c,_0x31f621:0x667},_0x308ca8={_0x1a0571:0x33e},_0x43a442=_0x5e5396['indexOf'](_0x1d6ee9);function _0x423f3f(_0x507a4d,_0x2e6a74){return _0x431448(_0x507a4d,_0x2e6a74-_0x308ca8._0x1a0571);}if(_0x43a442<0x0)return null;const _0x55ba6a=_0x5e5396[_0x43a442+0x1];function _0x197a05(_0x5dfd21,_0x32cc48){return _0x431448(_0x32cc48,_0x5dfd21- -0xa);}return _0x55ba6a?.[_0x423f3f(_0x38a51d._0x585a54,_0x38a51d._0x31f621)]()?_0x55ba6a[_0x423f3f(0x516,_0x38a51d._0x31f621)]():null;}function hasFlag(_0x114464,_0x8abf72){return _0x114464['includes'](_0x8abf72);}function printHelp(){const _0xc0082f={_0x44a9d6:0x136,_0x433c08:0x1da,_0x31a48f:0x6bf,_0xfccd74:0x881,_0x860e4f:0x7a3,_0x3f9e5e:0x625,_0xe4dc66:0xa2a,_0x2301cf:0x853,_0x2952ed:0x286,_0x57b0a8:0x149,_0x24d9d2:0x3eb,_0x4ac231:0x4c8,_0x349206:0x501,_0x1a8688:0x408,_0x44f3e4:0x73c,_0x1aeaa5:0x206,_0x2171a5:0x650,_0x57dca7:0x3ca,_0x1725d9:0x80e,_0x44b262:0x61a,_0x176c68:0x47c,_0xafe1ca:0x434,_0x585f3d:0x823,_0x44b173:0xa79,_0x35e0d1:0x70d,_0x4ac1fc:0x588,_0x3352eb:0x687,_0x27deb0:0x306,_0x3ace8c:0x363,_0xdfb26d:0x785,_0x1d7a94:0x415,_0x51e23a:0x952,_0x48c5a6:0x434,_0x25ae94:0x411,_0x3244bc:0x54c,_0x2fdbe8:0x67d,_0x22635e:0x9ee,_0x1d27e2:0x7ac,_0xbbad81:0x5b1},_0x2313e6={_0x4f166d:0x4d},_0x554172={};_0x554172['VIQvX']='clawket\x20'+_0x2b3459(_0xc0082f._0x44a9d6,0x2a5)+'l';function _0x2b3459(_0x40e260,_0x34ecfe){return _0x431448(_0x40e260,_0x34ecfe- -_0x2313e6._0x4f166d);}function _0x10ed72(_0x44b5b8,_0x162374){return _0x431448(_0x44b5b8,_0x162374-0x400);}_0x554172[_0x2b3459(0x309,_0xc0082f._0x433c08)]=_0x10ed72(_0xc0082f._0x31a48f,_0xc0082f._0xfccd74)+'reset';const _0x3a76f2=_0x554172;console[_0x10ed72(_0xc0082f._0x860e4f,0x643)](['clawket\x20'+'pair\x20[--'+_0x10ed72(_0xc0082f._0x3f9e5e,0x7dc)+_0x10ed72(_0xc0082f._0xe4dc66,_0xc0082f._0x2301cf)+_0x2b3459(_0xc0082f._0x2952ed,_0xc0082f._0x57b0a8)+_0x2b3459(0x33e,0x23c)+_0x10ed72(_0xc0082f._0x24d9d2,_0xc0082f._0x4ac231)+_0x2b3459(_0xc0082f._0x349206,_0xc0082f._0x1a8688)+_0x10ed72(_0xc0082f._0x44f3e4,0x817)+_0x2b3459(0x1df,_0xc0082f._0x1aeaa5)+_0x2b3459(0x3f,0x1e4)+'e]',_0x10ed72(0x736,_0xc0082f._0xfccd74)+'refresh-'+_0x10ed72(_0xc0082f._0x2171a5,0x4d2)+_0x10ed72(0x747,0x855)+_0x2b3459(0x4b8,_0xc0082f._0x57dca7)+'[--json]','clawket\x20'+'install',_0x10ed72(_0xc0082f._0x1725d9,0x881)+_0x10ed72(0x53d,_0xc0082f._0x44b262),_0x2b3459(_0xc0082f._0x176c68,_0xc0082f._0xafe1ca)+_0x10ed72(0x8a3,_0xc0082f._0x585f3d),_0x3a76f2[_0x2b3459(0x260,0x2b1)],_0x3a76f2[_0x2b3459(0x190,_0xc0082f._0x433c08)],_0x10ed72(_0xc0082f._0x44b173,0x881)+'status',_0x10ed72(_0xc0082f._0x35e0d1,_0xc0082f._0xfccd74)+_0x10ed72(_0xc0082f._0x4ac1fc,_0xc0082f._0x3352eb)+'last\x20<2m'+'>]\x20[--li'+_0x2b3459(_0xc0082f._0x27deb0,0x1a6)+_0x2b3459(_0xc0082f._0x3ace8c,0x198)+_0x10ed72(0x8fc,_0xc0082f._0xdfb26d)+_0x2b3459(_0xc0082f._0x1d7a94,0x210),_0x10ed72(_0xc0082f._0x51e23a,_0xc0082f._0xfccd74)+_0x10ed72(0x484,0x591)+_0x10ed72(0x5e8,0x77d),_0x2b3459(0x249,_0xc0082f._0x48c5a6)+_0x10ed72(_0xc0082f._0x25ae94,0x4eb)+'ateway-u'+_0x10ed72(0x6ec,0x5d0)+_0x10ed72(_0xc0082f._0x3244bc,_0xc0082f._0x2fdbe8)+_0x10ed72(_0xc0082f._0x22635e,0x810)+'>]'][_0x10ed72(_0xc0082f._0x1d27e2,_0xc0082f._0xbbad81)]('\x0a'));}function formatLocalTime(_0x248efe){const _0x3223ea={_0x322f6d:0x466,_0x4e532f:0x4c3,_0x236720:0x134},_0x85580c={_0x7e01f2:0x224},_0x3d6de9={_0x55f688:0x1e6},_0x11baf4=new Date(_0x248efe);function _0x2c609a(_0x540683,_0x29777f){return _0x9ec63e(_0x29777f-_0x3d6de9._0x55f688,_0x540683);}function _0x23a273(_0x5c286c,_0x2015d0){return _0x9ec63e(_0x5c286c-_0x85580c._0x7e01f2,_0x2015d0);}if(Number[_0x23a273(0x490,0x3d9)](_0x11baf4[_0x23a273(_0x3223ea._0x322f6d,0x600)]()))return _0x248efe;return _0x11baf4[_0x2c609a(_0x3223ea._0x4e532f,0x5a6)+_0x2c609a(_0x3223ea._0x236720,0x229)]();}function formatError(_0x4d6071){const _0x1b110b={_0x386415:0x4e7,_0x231afe:0x6be,_0x216463:0x16b,_0x4da043:0x43,_0x3ab5bd:0x31},_0x34134d={_0x4da25d:0x60};function _0x503306(_0x4ffd8e,_0x1d7fbe){return _0x431448(_0x4ffd8e,_0x1d7fbe- -0x31c);}const _0x33a10f={};_0x33a10f[_0xa55262(_0x1b110b._0x386415,_0x1b110b._0x231afe)]=function(_0x51ba2a,_0x1866ff){return _0x51ba2a instanceof _0x1866ff;};function _0xa55262(_0x340fc2,_0x50027b){return _0x431448(_0x50027b,_0x340fc2-_0x34134d._0x4da25d);}const _0x41fd35=_0x33a10f;return _0x41fd35[_0x503306(0x360,_0x1b110b._0x216463)](_0x4d6071,Error)?_0x4d6071[_0x503306(_0x1b110b._0x4da043,_0x1b110b._0x3ab5bd)]:String(_0x4d6071);}function printJson(_0x3aff10){const _0x23a040={_0xed9667:0x4aa,_0x579c0f:0x77a},_0xfad090={_0x33dfc5:0x3b5};function _0x4f6a66(_0x1d14bc,_0x572215){return _0x9ec63e(_0x1d14bc-0x3dc,_0x572215);}function _0x1052c0(_0x9a6bdf,_0x588f0c){return _0x9ec63e(_0x9a6bdf-_0xfad090._0x33dfc5,_0x588f0c);}console[_0x4f6a66(0x5c5,_0x23a040._0xed9667)](JSON[_0x1052c0(_0x23a040._0x579c0f,0x816)+'y'](_0x3aff10,null,0x2));}main()[_0x9ec63e(0x1bd,0x20f)](_0x384ce6=>{const _0x19bb0e={_0x2692c3:0x2c6};console[_0x1e617c(0x4aa,_0x19bb0e._0x2692c3)](formatError(_0x384ce6));function _0x1e617c(_0x51bbd2,_0x4b98e8){return _0x9ec63e(_0x51bbd2-0x186,_0x4b98e8);}function _0x483e3e(_0x486d45,_0x395751){return _0x9ec63e(_0x395751-0x35d,_0x486d45);}process[_0x483e3e(0x75d,0x5af)](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);});