@p697/clawket 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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(_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);});
2
+ (function(_0x4fff46,_0x22b60a){const _0xdc1efc={_0x4d0146:0x533,_0x377594:0x68e,_0x34eb72:0x61a,_0x24cd95:0x604,_0x4d27d0:0x256,_0x42049a:0x4e4,_0x1eeb7b:0x480,_0x354cf0:0x5fb,_0x16c40f:0x384,_0x8bb1d8:0x43f,_0x3058bd:0x40a},_0x28d081={_0x5859e6:0x16f},_0x1213f6={_0x126773:0x29};function _0xc6918a(_0x5d9ed5,_0x13166a){return _0x2370(_0x13166a-_0x1213f6._0x126773,_0x5d9ed5);}const _0x91daa3=_0x4fff46();function _0xe48dce(_0x5604ff,_0x5e4e43){return _0x2370(_0x5e4e43-_0x28d081._0x5859e6,_0x5604ff);}while(!![]){try{const _0x4486a5=-parseInt(_0xc6918a(0x7c8,0x5f9))/0x1+-parseInt(_0xc6918a(0x4c1,_0xdc1efc._0x4d0146))/0x2+-parseInt(_0xe48dce(0x4e6,_0xdc1efc._0x377594))/0x3+-parseInt(_0xe48dce(_0xdc1efc._0x34eb72,_0xdc1efc._0x24cd95))/0x4*(parseInt(_0xc6918a(0x22,_0xdc1efc._0x4d27d0))/0x5)+-parseInt(_0xc6918a(_0xdc1efc._0x42049a,_0xdc1efc._0x1eeb7b))/0x6*(-parseInt(_0xe48dce(0x5bb,_0xdc1efc._0x354cf0))/0x7)+-parseInt(_0xe48dce(_0xdc1efc._0x16c40f,0x548))/0x8*(parseInt(_0xe48dce(0x3c4,_0xdc1efc._0x8bb1d8))/0x9)+parseInt(_0xc6918a(0x361,_0xdc1efc._0x3058bd))/0xa*(parseInt(_0xe48dce(0x5c7,0x465))/0xb);if(_0x4486a5===_0x22b60a)break;else _0x91daa3['push'](_0x91daa3['shift']());}catch(_0x42ecc8){_0x91daa3['push'](_0x91daa3['shift']());}}}(_0x472c,0xef2bb));const _0x2b7cce=(function(){let _0x4c1f3b=!![];return function(_0x115823,_0x3e9b72){const _0x49fdd1=_0x4c1f3b?function(){if(_0x3e9b72){const _0x38da65=_0x3e9b72['apply'](_0x115823,arguments);return _0x3e9b72=null,_0x38da65;}}:function(){};return _0x4c1f3b=![],_0x49fdd1;};}()),_0x345fc1=_0x2b7cce(this,function(){const _0x4acad8={_0x3a590a:0x112,_0x1e638f:0x63,_0x9e1c89:0x505,_0x357e51:0x733,_0x193b4f:0x544,_0x270999:0x785,_0x41e2aa:0x5ad,_0xfb3dd8:0x304,_0x1f2291:0x522,_0x3c3e3a:0x47f,_0x2a0640:0x452,_0x1cc8a6:0x606},_0x366357={_0x134f72:0x12f},_0x549a19={};_0x549a19['KFocj']=_0x258a43(_0x4acad8._0x3a590a,-_0x4acad8._0x1e638f)+_0x258a43(_0x4acad8._0x9e1c89,_0x4acad8._0x357e51);function _0x573077(_0x3bfcad,_0x238085){return _0x2370(_0x238085-0x3c5,_0x3bfcad);}const _0x2d1836=_0x549a19;function _0x258a43(_0xbf4697,_0x15f7d0){return _0x2370(_0xbf4697- -_0x366357._0x134f72,_0x15f7d0);}return _0x345fc1[_0x258a43(0x304,_0x4acad8._0x193b4f)]()[_0x573077(0x5d4,_0x4acad8._0x270999)](_0x2d1836[_0x573077(0x39a,_0x4acad8._0x41e2aa)])[_0x258a43(_0x4acad8._0xfb3dd8,_0x4acad8._0x1f2291)]()[_0x258a43(_0x4acad8._0x3c3e3a,0x2c5)+_0x573077(_0x4acad8._0x2a0640,0x640)](_0x345fc1)['search'](_0x573077(0x599,_0x4acad8._0x1cc8a6)+_0x258a43(0x505,0x579));});_0x345fc1();import _0x5b54b5 from'qrcode-terminal';import{readFileSync as _0x285c85}from'fs';import{Socket}from'net';import{homedir as _0xc0aab1}from'os';import{existsSync,mkdirSync,readFileSync,rmSync,writeFileSync}from'fs';import{randomUUID}from'crypto';import{homedir,hostname,userInfo}from'os';import{join}from'path';var CONFIG_DIR=join(homedir(),_0x3a7f13(0x39d,0x36b)),CONFIG_PATH=join(CONFIG_DIR,_0x32d8ea(0x8ea,0x8d0)+_0x32d8ea(0x8fd,0x728));function getPairingConfigPath(){return CONFIG_PATH;}function readPairingConfig(){const _0x481b8c={_0x71b4e:0x8d,_0x260933:0x60,_0x2a296d:0xa,_0x5206c9:0x31f,_0x3faff8:0x13f,_0xe60029:0x10a,_0x3d6950:0x1bd,_0xef4f56:0x118,_0x2a454e:0x402,_0x5413e0:0x50c,_0x5befcb:0x343,_0x41f0bb:0x45c,_0x2c076f:0x242,_0x2b3447:0x2ab,_0x4be370:0x383,_0x34a8ee:0x13,_0x59d9ef:0x129,_0x57299f:0x142,_0x5f1676:0x343},_0x3dbfdb={_0x1efc16:0x516},_0x380d7e={_0x29fff9:0x6de};function _0x233995(_0x5ef7db,_0x385fb2){return _0x32d8ea(_0x5ef7db,_0x385fb2- -_0x380d7e._0x29fff9);}const _0xc1ea09={};function _0x1b0a0a(_0x45d155,_0x32031a){return _0x32d8ea(_0x32031a,_0x45d155- -_0x3dbfdb._0x1efc16);}_0xc1ea09[_0x233995(0x60,-_0x481b8c._0x71b4e)]='utf8',_0xc1ea09[_0x233995(-_0x481b8c._0x260933,-_0x481b8c._0x2a296d)]=function(_0x1c6d98,_0xcf11c5){return _0x1c6d98!==_0xcf11c5;};const _0x55b07a=_0xc1ea09;if(!existsSync(CONFIG_PATH))return null;try{const _0x3c09a7=JSON[_0x233995(0x2a8,0x5e)](readFileSync(CONFIG_PATH,_0x55b07a[_0x1b0a0a(0x13b,0x357)]));if(!_0x3c09a7[_0x1b0a0a(0xee,-0x20)+'l']||!_0x3c09a7['gatewayI'+'d']||!_0x3c09a7[_0x1b0a0a(0x2b3,_0x481b8c._0x5206c9)+'ret']||!_0x3c09a7['relayUrl'])return null;const _0xbc2527={'serverUrl':_0x3c09a7[_0x233995(_0x481b8c._0x3faff8,-0xda)+'l'],'gatewayId':_0x3c09a7[_0x233995(_0x481b8c._0xe60029,_0x481b8c._0x3d6950)+'d'],'relaySecret':_0x3c09a7[_0x233995(-_0x481b8c._0xef4f56,0xeb)+_0x233995(_0x481b8c._0x2a454e,0x1d4)],'relayUrl':_0x3c09a7[_0x1b0a0a(0x4a4,_0x481b8c._0x5413e0)],'instanceId':_0x3c09a7[_0x233995(0x409,_0x481b8c._0x5befcb)+'Id']?.[_0x233995(_0x481b8c._0x41f0bb,0x351)]()||createInstanceId(),'displayName':_0x3c09a7[_0x1b0a0a(_0x481b8c._0x2c076f,_0x481b8c._0x2b3447)+_0x233995(0x3f8,0x2af)]??null,'createdAt':_0x3c09a7[_0x1b0a0a(0x514,_0x481b8c._0x4be370)+'t']??new Date()[_0x1b0a0a(0x9f,-_0x481b8c._0x34a8ee)+'ing'](),'updatedAt':_0x3c09a7['updatedA'+'t']??new Date()[_0x233995(-0x27d,-_0x481b8c._0x59d9ef)+'ing']()};return _0x55b07a[_0x233995(_0x481b8c._0x57299f,-0xa)](_0x3c09a7['instance'+'Id'],_0xbc2527[_0x233995(0x437,_0x481b8c._0x5f1676)+'Id'])&&writePairingConfig(_0xbc2527),_0xbc2527;}catch{return null;}}function writePairingConfig(_0xf00c35){const _0x446494={_0x3ab799:0x3db,_0x591c0a:0x190,_0x5e04f8:0x32e},_0x43a0a8={_0x4e829c:0x42a},_0x1d7e12={};_0x1d7e12['YxpHO']=function(_0x4940ca,_0x1af02f){return _0x4940ca+_0x1af02f;};const _0x577d6a=_0x1d7e12,_0x2a22eb={};_0x2a22eb[_0x4c2eed(_0x446494._0x3ab799,_0x446494._0x591c0a)+'e']=!![],mkdirSync(CONFIG_DIR,_0x2a22eb);function _0x4c2eed(_0x47fb30,_0x4f14f7){return _0x32d8ea(_0x47fb30,_0x4f14f7- -_0x43a0a8._0x4e829c);}function _0x5557ae(_0x517213,_0x26c73){return _0x32d8ea(_0x26c73,_0x517213- -0x62a);}writeFileSync(CONFIG_PATH,_0x577d6a['YxpHO'](JSON[_0x4c2eed(0x50e,0x42d)+'y'](_0xf00c35,null,0x2),'\x0a'),_0x5557ae(_0x446494._0x5e04f8,0x2a3));}function deletePairingConfig(){if(!existsSync(CONFIG_PATH))return;function _0x427726(_0x4469fa,_0x24801a){return _0x32d8ea(_0x24801a,_0x4469fa- -0xba);}const _0x4c5d0c={};_0x4c5d0c[_0x427726(0x76f,0x6fc)]=!![],rmSync(CONFIG_PATH,_0x4c5d0c);}function getDefaultBridgeDisplayName(){const _0x51ce8a={_0x3e62a7:0x5f8,_0x14cb51:0xe3,_0x247505:0x397,_0x3372e7:0x300,_0x5a0b2f:0x111,_0x52776a:0xd4,_0xc1ca22:0x56c},_0x12d00b={_0x1d216c:0x72f},_0x162c55={'NvLxc':function(_0x39b53b){return _0x39b53b();}},_0xe8b65c=readOpenClawDefaultAgentName();if(_0xe8b65c)return _0xe8b65c;try{const _0x327fdd=_0x162c55[_0x187a22(_0x51ce8a._0x3e62a7,0x5b9)](userInfo)[_0x180033(-_0x51ce8a._0x14cb51,-0x56)][_0x180033(_0x51ce8a._0x247505,_0x51ce8a._0x3372e7)]();if(_0x327fdd)return _0x327fdd;}catch{}const _0x271d04=(process.env.LOGNAME??process.env.USER??process.env.USERNAME??'')[_0x180033(_0x51ce8a._0x5a0b2f,_0x51ce8a._0x3372e7)]();function _0x187a22(_0x3c18c2,_0x432fdb){return _0x32d8ea(_0x432fdb,_0x3c18c2- -0x334);}if(_0x271d04)return _0x271d04;function _0x180033(_0x555c62,_0x3b8120){return _0x32d8ea(_0x555c62,_0x3b8120- -_0x12d00b._0x1d216c);}return hostname()[_0x180033(_0x51ce8a._0x52776a,_0x51ce8a._0x3372e7)]()||_0x187a22(_0x51ce8a._0xc1ca22,0x39f)+'Bridge';}function pickOpenClawDefaultAgentName(_0x3b91cc){const _0x3df43f={_0x1b498c:0x1a6,_0xdb9ea7:0x6b,_0x10f787:0x83,_0x42b4cf:0x5e5,_0x2509b7:0x51b,_0x4d96fe:0xcf};function _0x396fcd(_0x2fd176,_0x7fee55){return _0x3a7f13(_0x7fee55,_0x2fd176-0x152);}const _0x280b6c={};_0x280b6c[_0x594c7d(0x3c2,_0x3df43f._0x1b498c)]='object';const _0x27f0f0=_0x280b6c;if(!_0x3b91cc||typeof _0x3b91cc!==_0x27f0f0['hyDSP'])return null;function _0x594c7d(_0x2a9888,_0x4ed06e){return _0x3a7f13(_0x2a9888,_0x4ed06e- -0x37e);}const _0x3846ed=_0x3b91cc[_0x396fcd(0x354,0x45a)],_0x522db6=Array[_0x594c7d(-_0x3df43f._0xdb9ea7,-_0x3df43f._0x10f787)](_0x3846ed?.[_0x396fcd(_0x3df43f._0x42b4cf,_0x3df43f._0x2509b7)])?_0x3846ed['list']:[],_0x16bfb1=_0x522db6[_0x594c7d(0x1a4,_0x3df43f._0x4d96fe)](_0x25f13f=>isDefaultAgent(_0x25f13f))??_0x522db6['find'](_0x4af7d8=>hasAgentId(_0x4af7d8,_0x396fcd(0x730,0x92d)))??_0x522db6[0x0];return readAgentName(_0x16bfb1);}function createInstanceId(){const _0x57543b={_0x29e204:0x2c0,_0x59b561:0x49d,_0x201e7d:0x24e,_0x5b8a04:0x1b3,_0x147589:0x159,_0x331bc7:0x45c,_0x2f35c7:0x18},_0x4469a0={_0x549a16:0x759},_0xbeac5b={_0x57b23a:0x70c};function _0xbcbfd8(_0x5466fe,_0x46b496){return _0x32d8ea(_0x46b496,_0x5466fe- -_0xbeac5b._0x57b23a);}function _0x56c446(_0x4ff197,_0x2dffb5){return _0x32d8ea(_0x2dffb5,_0x4ff197- -_0x4469a0._0x549a16);}const _0x2e1d4d={'pRvmd':function(_0x366372,_0x18b093){return _0x366372(_0x18b093);},'iTeOC':function(_0x29b353){return _0x29b353();}},_0x251dd3=_0x2e1d4d[_0xbcbfd8(_0x57543b._0x29e204,_0x57543b._0x59b561)](sanitizeId,hostname()||_0x56c446(_0x57543b._0x201e7d,_0x57543b._0x5b8a04));return _0xbcbfd8(_0x57543b._0x147589,0x31)+_0x251dd3+'-'+_0x2e1d4d[_0xbcbfd8(0x2c5,_0x57543b._0x331bc7)](randomUUID)[_0x56c446(-_0x57543b._0x2f35c7,-0x171)](0x0,0xa);}function sanitizeId(_0x55358f){const _0x30be95={_0x38a6b2:0x683,_0x5bb8c6:0x1a7,_0xf82460:0x71a,_0x35c604:0x768},_0x1f9f47={_0x3c5020:0x71a},_0x470559={_0x1390f2:0x23f};function _0x3ce935(_0x27cfa0,_0xb5626d){return _0x32d8ea(_0x27cfa0,_0xb5626d- -_0x470559._0x1390f2);}function _0x383a2b(_0x5f2413,_0x333b66){return _0x32d8ea(_0x333b66,_0x5f2413- -_0x1f9f47._0x3c5020);}return _0x55358f['trim']()[_0x3ce935(0x4db,_0x30be95._0x38a6b2)+_0x383a2b(0x238,_0x30be95._0x5bb8c6)]()['replace'](/[^a-z0-9._-]+/g,'-')[_0x383a2b(-0x7b,0xb5)](/^-+|-+$/g,'')||_0x3ce935(_0x30be95._0xf82460,_0x30be95._0x35c604);}function readOpenClawDefaultAgentName(){const _0x687c94={_0x3fa505:0x709,_0x4aaf15:0x57e},_0x4ac9ee={_0x1d0730:0x30e},_0x5d0059=resolveOpenClawConfigPath();if(!_0x5d0059||!existsSync(_0x5d0059))return null;function _0x5b72bf(_0x1d2c82,_0x4673c2){return _0x3a7f13(_0x4673c2,_0x1d2c82- -_0x4ac9ee._0x1d0730);}function _0x17941d(_0x48cd40,_0x1c152f){return _0x3a7f13(_0x48cd40,_0x1c152f-0x4c);}try{const _0x1ee93b=JSON[_0x17941d(0x1f6,0x362)](readFileSync(_0x5d0059,_0x17941d(_0x687c94._0x3fa505,_0x687c94._0x4aaf15)));return pickOpenClawDefaultAgentName(_0x1ee93b);}catch{return null;}}function resolveOpenClawConfigPath(){const _0x470478={_0x51756c:0x6bb,_0x43b77b:0x4a9,_0x5413c1:0x544,_0x55d89d:0x19d,_0x34200d:0x62,_0x357b1a:0x69c,_0x59145d:0x18f,_0x32b4ee:0x6bb,_0x216e78:0x8ea,_0xf11cb1:0xc,_0x5d364f:0x292},_0x578d91={_0x441aaa:0x32},_0x20cb0c={_0x226f34:0x559},_0xc9e5f2={_0x503cb0:0x5d6},_0x26569b={_0x252b36:0x121};function _0x18df30(_0x251143,_0x4cb24a){return _0x32d8ea(_0x4cb24a,_0x251143- -_0x26569b._0x252b36);}const _0x1f39f6={'NNBQK':function(_0x36f66b,_0x5b2455,_0x5723df,_0x3c95bc){return _0x36f66b(_0x5b2455,_0x5723df,_0x3c95bc);},'IpvzX':function(_0x16aa71,_0x2e2b75,_0x42b752,_0x43f72c){return _0x16aa71(_0x2e2b75,_0x42b752,_0x43f72c);},'FCVSl':_0x18df30(_0x470478._0x51756c,0x476)+_0x18df30(_0x470478._0x43b77b,0x2d9)},_0x30ce21=new Set();function _0xe07bde(_0x199e14,_0x52bcf4){return _0x32d8ea(_0x199e14,_0x52bcf4- -_0xc9e5f2._0x503cb0);}const _0x25459f=[homedir(),_0x18df30(_0x470478._0x5413c1,0x34b)][_0xe07bde(0x1b4,_0x470478._0x55d89d)](_0x323ba2=>_0x323ba2[_0x18df30(0x90e,0x965)]())[_0xe07bde(_0x470478._0x34200d,0x298)](Boolean)['filter'](_0x2f0b90=>{if(_0x30ce21[_0x337b0d(0x2a1,0x4c2)](_0x2f0b90))return![];function _0x41db62(_0x29202b,_0x28be3a){return _0x18df30(_0x29202b- -0x328,_0x28be3a);}_0x30ce21[_0x337b0d(-0x3,-_0x578d91._0x441aaa)](_0x2f0b90);function _0x337b0d(_0x4420c5,_0x410032){return _0x18df30(_0x4420c5- -_0x20cb0c._0x226f34,_0x410032);}return!![];});for(const _0x202c2e of _0x25459f){const _0x2b9696=_0x1f39f6[_0x18df30(0x483,_0x470478._0x357b1a)](join,_0x202c2e,_0xe07bde(_0x470478._0x59145d,0x292)+'w',_0x18df30(_0x470478._0x32b4ee,_0x470478._0x216e78)+_0xe07bde(-0x190,-_0x470478._0xf11cb1));if(existsSync(_0x2b9696))return _0x2b9696;}return _0x25459f[0x0]?_0x1f39f6['IpvzX'](join,_0x25459f[0x0],_0xe07bde(0x350,_0x470478._0x5d364f)+'w',_0x1f39f6[_0xe07bde(0x90,-0x13)]):null;}function isDefaultAgent(_0x5a04e7){const _0x5bf2ae={_0x5f2766:0x465,_0x873a2b:0x2db,_0x2f94ba:0x4ee},_0x5f47da={_0x3a683d:0x449},_0x190a70={_0xbfa142:0x3f0},_0x2dbf14={};function _0x3c790e(_0x5dcaba,_0x451c77){return _0x32d8ea(_0x5dcaba,_0x451c77- -_0x190a70._0xbfa142);}function _0x28c015(_0x2ffc01,_0x4ba026){return _0x32d8ea(_0x4ba026,_0x2ffc01- -_0x5f47da._0x3a683d);}_0x2dbf14[_0x28c015(0x48e,_0x5bf2ae._0x5f2766)]=function(_0x5d5605,_0x2bdd55){return _0x5d5605===_0x2bdd55;};const _0x16bac5=_0x2dbf14;return Boolean(_0x5a04e7&&typeof _0x5a04e7==='object'&&_0x16bac5['iEriB'](_0x5a04e7[_0x3c790e(_0x5bf2ae._0x873a2b,_0x5bf2ae._0x2f94ba)],!![]));}function hasAgentId(_0x1c0c91,_0x5601e8){const _0x28e666={_0x21ce9e:0x2a0,_0x55b7c1:0x7a,_0x9c9713:0x1b6,_0x4f02c6:0x22f,_0x39b95a:0x6d5,_0x6dbd:0x843};function _0x143f72(_0xa6d38,_0x1c2a56){return _0x32d8ea(_0x1c2a56,_0xa6d38- -0x456);}function _0x33a6dd(_0x3f3e27,_0xf4cfe9){return _0x32d8ea(_0xf4cfe9,_0x3f3e27- -0x35a);}return Boolean(_0x1c0c91&&typeof _0x1c0c91===_0x143f72(_0x28e666._0x21ce9e,_0x28e666._0x55b7c1)&&typeof _0x1c0c91['id']===_0x143f72(_0x28e666._0x9c9713,_0x28e666._0x4f02c6)&&_0x1c0c91['id'][_0x33a6dd(_0x28e666._0x39b95a,_0x28e666._0x6dbd)]()===_0x5601e8);}function readAgentName(_0x57143d){const _0x336f70={_0x2d36e3:0x475,_0x3d8751:0x400,_0x181b43:0x516,_0x55ddbc:0x195,_0x2d9b08:0x637,_0x3f66d5:0x5a2,_0x10394e:0x398,_0x8bd1a4:0x809,_0x40357c:0x3b5,_0x591941:0x278,_0x2fe7f7:0x5f1},_0x1a4a82={_0x2b9d94:0x130},_0x3b1324={};_0x3b1324[_0x3e1e65(0x516,_0x336f70._0x2d36e3)]=function(_0x575402,_0x576f0c){return _0x575402===_0x576f0c;},_0x3b1324[_0x422b86(0x2b1,0x278)]=_0x422b86(-0x137,0x81);const _0xcd108b=_0x3b1324;function _0x422b86(_0x3a96dc,_0x33d0d4){return _0x3a7f13(_0x3a96dc,_0x33d0d4- -0x165);}if(!_0x57143d||typeof _0x57143d!==_0x3e1e65(_0x336f70._0x3d8751,0x609))return null;const _0x37389c=_0x57143d,_0x148a71=_0xcd108b[_0x3e1e65(_0x336f70._0x181b43,0x6f5)](typeof _0x37389c[_0x422b86(0x18a,_0x336f70._0x55ddbc)]?.['name'],'string')?_0x37389c[_0x3e1e65(0x42a,_0x336f70._0x2d9b08)][_0x422b86(_0x336f70._0x3f66d5,_0x336f70._0x10394e)][_0x3e1e65(0x739,_0x336f70._0x8bd1a4)]():'';if(_0x148a71)return _0x148a71;const _0x338302=typeof _0x37389c[_0x422b86(_0x336f70._0x40357c,_0x336f70._0x10394e)]===_0xcd108b[_0x422b86(0x41b,_0x336f70._0x591941)]?_0x37389c[_0x3e1e65(0x62d,_0x336f70._0x2fe7f7)][_0x422b86(0x292,0x4a4)]():'';function _0x3e1e65(_0x25a9c7,_0x32a7ac){return _0x3a7f13(_0x32a7ac,_0x25a9c7-_0x1a4a82._0x2b9d94);}return _0x338302||null;}function buildPairingQrPayload(_0x59f8f1){const _0x1b90af={_0x275830:0x644,_0x255a2e:0x3d4,_0x32233a:0x248,_0x328731:0x69e,_0x55a327:0x6b9,_0x274bbd:0x7d9,_0x5b02b0:0x6b9,_0x3260c3:0x6ce,_0x3b78c6:0x4d4,_0x43ee9d:0x8c9,_0x209fcb:0x58d,_0x155220:0x4e1,_0x4c4194:0x39d},_0x190f9c={_0x642b90:0x376},_0x8ff90c={_0x3897d2:0x2ef};function _0x5bf577(_0x2ff57f,_0x112eb4){return _0x32d8ea(_0x2ff57f,_0x112eb4- -_0x8ff90c._0x3897d2);}const _0xaccc4b={};function _0x130b5b(_0x1061ab,_0x3326bc){return _0x32d8ea(_0x3326bc,_0x1061ab- -_0x190f9c._0x642b90);}_0xaccc4b['v']=0x2,_0xaccc4b['k']='cp',_0xaccc4b['s']=_0x59f8f1[_0x5bf577(_0x1b90af._0x275830,0x608)],_0xaccc4b['g']=_0x59f8f1['gatewayI'+'d'],_0xaccc4b['a']=_0x59f8f1[_0x130b5b(_0x1b90af._0x255a2e,0x351)+'de'];const _0x40358b=_0xaccc4b;return _0x59f8f1[_0x5bf577(_0x1b90af._0x32233a,0x469)+_0x5bf577(0x47b,_0x1b90af._0x328731)]?.[_0x130b5b(_0x1b90af._0x55a327,_0x1b90af._0x274bbd)]()&&(_0x40358b['n']=_0x59f8f1[_0x5bf577(0x4bf,0x469)+'ame'][_0x130b5b(_0x1b90af._0x5b02b0,_0x1b90af._0x3260c3)]()),_0x59f8f1[_0x5bf577(0x3db,0x5a0)]?.[_0x130b5b(_0x1b90af._0x55a327,0x5cc)]()&&(_0x40358b['t']=_0x59f8f1[_0x130b5b(0x519,_0x1b90af._0x3b78c6)][_0x130b5b(_0x1b90af._0x5b02b0,_0x1b90af._0x43ee9d)]()),_0x59f8f1['password']?.[_0x130b5b(_0x1b90af._0x5b02b0,_0x1b90af._0x209fcb)]()&&(_0x40358b['p']=_0x59f8f1['password']['trim']()),JSON[_0x130b5b(_0x1b90af._0x155220,_0x1b90af._0x4c4194)+'y'](_0x40358b);}function buildGatewayQrPayload(_0x412a42){const _0xd95b43={_0x5b5a16:0x681,_0x363e24:0x470,_0x5c3bc8:0x4f9,_0x189c6e:0x363,_0x4c3803:0x5b3,_0x4fc8c5:0x64c,_0xaa66db:0x5f5,_0x29f948:0x63d,_0x3183da:0x2a8,_0x4e78f3:0x13d,_0x1b5df0:0x74c,_0x366318:0x539,_0x29293e:0x3b4,_0x3d0fb7:0x3b2,_0x1ed41f:0x59e,_0xdbb382:0x5a6,_0x14c44e:0x62b,_0x3ec9bc:0x5e3,_0x5d8663:0x584,_0x4af9f7:0x765,_0xf25c34:0x6ec},_0x3582b8={_0x17f6a3:0xb7},_0x24212b={};_0x24212b[_0x237318(_0xd95b43._0x5b5a16,0x506)]=function(_0x122965,_0x49eeef){return _0x122965+_0x49eeef;},_0x24212b['OboGC']=function(_0x5180e1,_0x22975b){return _0x5180e1*_0x22975b;};function _0x5ae5a0(_0x273922,_0x35f55f){return _0x3a7f13(_0x35f55f,_0x273922-0x214);}const _0x40f231=_0x24212b;function _0x237318(_0x1999e8,_0x3c936e){return _0x3a7f13(_0x1999e8,_0x3c936e- -_0x3582b8._0x17f6a3);}const _0x11418f=normalizeGatewayQrUrl(_0x412a42[_0x5ae5a0(_0xd95b43._0x363e24,_0xd95b43._0x5c3bc8)+'rl']),_0x17e774={'url':_0x11418f[_0x237318(_0xd95b43._0x189c6e,0x134)],'host':_0x11418f[_0x5ae5a0(0x795,_0xd95b43._0x4c3803)],'port':_0x11418f[_0x5ae5a0(_0xd95b43._0x4fc8c5,_0xd95b43._0xaa66db)],'tls':_0x11418f[_0x5ae5a0(_0xd95b43._0x29f948,0x5a1)],'mode':_0x237318(0x1a7,_0xd95b43._0x3183da),'expiresAt':_0x412a42[_0x237318(-0xcc,_0xd95b43._0x4e78f3)+'t']??_0x40f231[_0x5ae5a0(0x7d1,0x6f5)](Date[_0x237318(_0xd95b43._0x1b5df0,_0xd95b43._0x366318)](),_0x40f231['OboGC'](0xa*0x3c,0x3e8)),'qrVersion':0x2};return _0x412a42[_0x237318(_0xd95b43._0x29293e,_0xd95b43._0x3d0fb7)]?.['trim']()&&(_0x17e774[_0x237318(_0xd95b43._0x1ed41f,_0xd95b43._0x3d0fb7)]=_0x412a42[_0x237318(_0xd95b43._0xdbb382,0x3b2)]['trim']()),_0x412a42[_0x5ae5a0(0x584,_0xd95b43._0x14c44e)]?.[_0x5ae5a0(0x81d,_0xd95b43._0x3ec9bc)]()&&(_0x17e774[_0x5ae5a0(_0xd95b43._0x5d8663,_0xd95b43._0x4af9f7)]=_0x412a42[_0x5ae5a0(_0xd95b43._0x5d8663,0x7bc)][_0x5ae5a0(0x81d,_0xd95b43._0xf25c34)]()),JSON['stringif'+'y'](_0x17e774);}function normalizeGatewayQrUrl(_0x51f9d3){const _0x8a7fb0={_0x17c78c:0x267,_0x216e0f:0x3a3,_0x1cb8a0:0x6ef,_0x513a00:0x2c4,_0x1d9b00:0x299,_0x5a4d5a:0x2e7,_0x11188b:0x2c1,_0x115d44:0x515,_0x51c2ec:0x52d,_0x1a53ed:0x291,_0x27a0d0:0x1d2,_0x2994ad:0x71e,_0x26510b:0x54f,_0x1fa7a3:0x8d5,_0xd36cb4:0x50,_0x595a4c:0x1e3,_0x1dfa5d:0x7ca,_0x3d01a4:0x694,_0x117d44:0x2f0,_0x5a0d53:0x488},_0x398236={_0x2a39ea:0x68c},_0x456873={};_0x456873[_0x290994(0xe7,_0x8a7fb0._0x17c78c)]=function(_0x122f18,_0x4976cd){return _0x122f18===_0x4976cd;},_0x456873[_0x3b306d(0x5ac,0x560)]=function(_0x38ce6e,_0x3029e3){return _0x38ce6e===_0x3029e3;};const _0x26ca36=_0x456873,_0xf16735=new URL(_0x51f9d3[_0x290994(0x58c,_0x8a7fb0._0x216e0f)]()),_0x2726ad=_0xf16735[_0x3b306d(_0x8a7fb0._0x1cb8a0,0x4cb)]===_0x290994(0x2e8,_0x8a7fb0._0x513a00)||_0x26ca36[_0x290994(_0x8a7fb0._0x1d9b00,_0x8a7fb0._0x17c78c)](_0xf16735['protocol'],_0x290994(_0x8a7fb0._0x5a4d5a,_0x8a7fb0._0x11188b)),_0xabdad4=_0x2726ad?_0x290994(0x4c5,0x2c4):'ws:';function _0x290994(_0x52e37a,_0x41f4cb){return _0x32d8ea(_0x52e37a,_0x41f4cb- -_0x398236._0x2a39ea);}const _0x2e615c=_0xf16735[_0x3b306d(_0x8a7fb0._0x115d44,_0x8a7fb0._0x51c2ec)],_0x548a7a=_0xf16735[_0x290994(_0x8a7fb0._0x1a53ed,_0x8a7fb0._0x27a0d0)]?Number(_0xf16735[_0x3b306d(_0x8a7fb0._0x2994ad,_0x8a7fb0._0x26510b)]):_0x2726ad?0x1bb:0x50,_0x5a605c=!_0xf16735[_0x3b306d(_0x8a7fb0._0x1fa7a3,0x694)]||_0x26ca36[_0x290994(_0x8a7fb0._0xd36cb4,_0x8a7fb0._0x595a4c)](_0xf16735[_0x3b306d(_0x8a7fb0._0x1dfa5d,_0x8a7fb0._0x3d01a4)],'')?'/':_0xf16735['pathname'],_0x54ae09={};_0x54ae09[_0x3b306d(0x3c0,0x302)]=_0xabdad4+'//'+_0x2e615c+':'+_0x548a7a+_0x5a605c,_0x54ae09[_0x290994(_0x8a7fb0._0x117d44,0x31b)]=_0x2e615c,_0x54ae09[_0x3b306d(0x669,0x54f)]=_0x548a7a,_0x54ae09[_0x3b306d(0x6f6,0x5a6)]=_0x5a605c,_0x54ae09[_0x3b306d(_0x8a7fb0._0x5a0d53,0x540)]=_0x2726ad;function _0x3b306d(_0x2c9779,_0x214987){return _0x32d8ea(_0x2c9779,_0x214987- -0x30f);}return _0x54ae09;}var DEFAULT_REGISTRY_BASE=_0x32d8ea(0x681,0x707)+_0x32d8ea(0x921,0x95a)+_0x32d8ea(0x71d,0x791)+_0x3a7f13(0x415,0x287),DEFAULT_REGISTRY_FALLBACK_BASE=_0x3a7f13(0x1bb,0x2e1)+_0x3a7f13(0x5cf,0x562)+_0x3a7f13(0x376,0x534)+_0x32d8ea(0x975,0x791)+_0x3a7f13(0x447,0x554)+_0x32d8ea(0xa53,0x84a);async function pairGateway(_0x2994c9){const _0x3ade50={_0x429066:0x482,_0x5daeab:0x499,_0x5d17ea:0x469,_0xc52102:0xa5,_0x35ced8:0xec,_0x449882:0xd5,_0x1cc421:0x4bd,_0x52a6fa:0x1c2,_0x220412:0x284,_0x198c66:0x132,_0xb71404:0x29d,_0x5e5c3c:0xd1,_0x19ec67:0x5af,_0xc024d6:0x5b1,_0x2083db:0x4af,_0x1781e9:0x356,_0x397261:0x778,_0x394a34:0x65,_0x40e060:0x187,_0x2ec97b:0x373,_0x535789:0x2ad,_0x46f3de:0x26d,_0x33f591:0x87,_0x19e586:0x24,_0x2e5117:0x27,_0xabceae:0xdc,_0x578776:0x12b,_0x4b9172:0x12f,_0x83d83f:0x51,_0x4b5fc3:0x58f,_0x51c832:0x1c9,_0x1d7b65:0x465,_0x238a59:0x4af,_0x3060b3:0x191,_0x2f630b:0xce,_0x1973ad:0x158,_0x1c057e:0x3c5,_0x4edd91:0x307,_0x1c829e:0x30d,_0x5f1a5c:0x510,_0x50f8e4:0x29d,_0x2b072e:0x46d,_0x351f43:0x200,_0x32cf47:0x1ec,_0x974698:0x599,_0x80b842:0x2ca,_0x472aa1:0x7c8,_0x304a2d:0x274,_0x5be016:0x5a,_0x4ecdff:0x1d3,_0x54fa4b:0xfd,_0x1f81e4:0x1a2,_0x5f89de:0x34c},_0x4786b5={_0x21fd6a:0x2ca},_0x3b71f7={'oJpbO':function(_0x2259a3){return _0x2259a3();},'PIJBv':function(_0x28a7ef,_0x2dd7b6){return _0x28a7ef===_0x2dd7b6;},'RONRH':_0x2c7127(0x19d,0x3d1)+_0x51f968(_0x3ade50._0x429066,_0x3ade50._0x5daeab)};function _0x51f968(_0x43eaee,_0x417804){return _0x3a7f13(_0x43eaee,_0x417804-0x48);}const _0x3c673a=normalizeHttpBase(_0x2994c9[_0x51f968(0x2d1,0x226)+'l']),_0x180e83=_0x3b71f7[_0x51f968(0x37a,_0x3ade50._0x5d17ea)](readPairingConfig),_0x64061c=assessPairingCompatibility(_0x180e83,_0x3c673a);if(_0x64061c==='refresh-'+_0x2c7127(_0x3ade50._0xc52102,-0xd5)&&_0x180e83){const _0x3b145f={};return _0x3b145f['serverUr'+'l']=_0x180e83[_0x2c7127(-_0x3ade50._0x35ced8,_0x3ade50._0x449882)+'l'],_0x3b145f[_0x51f968(0x66c,_0x3ade50._0x1cc421)+'d']=_0x180e83[_0x51f968(0x3ff,_0x3ade50._0x1cc421)+'d'],_0x3b145f[_0x2c7127(0xd9,0x2b9)+_0x2c7127(_0x3ade50._0x52a6fa,_0x3ade50._0x220412)]=_0x180e83['relaySec'+_0x2c7127(_0x3ade50._0x52a6fa,0xc8)],_0x3b145f[_0x51f968(_0x3ade50._0x198c66,0x37a)+_0x2c7127(_0x3ade50._0xb71404,_0x3ade50._0x5e5c3c)]=_0x2994c9['displayN'+_0x51f968(0x7a6,_0x3ade50._0x19ec67)],_0x3b145f['gatewayT'+_0x51f968(_0x3ade50._0xc024d6,0x603)]=_0x2994c9[_0x51f968(_0x3ade50._0x2083db,_0x3ade50._0x1781e9)+_0x51f968(_0x3ade50._0x397261,0x603)],_0x3b145f['gatewayP'+_0x2c7127(-_0x3ade50._0x394a34,-_0x3ade50._0x40e060)]=_0x2994c9['gatewayP'+_0x51f968(_0x3ade50._0x2ec97b,_0x3ade50._0x535789)],refreshAccessCode(_0x3b145f);}if(_0x3b71f7['PIJBv'](_0x64061c,_0x51f968(0x40b,0x257)+_0x51f968(0x3a2,0x445)))throw new Error(_0x51f968(_0x3ade50._0x46f3de,0x4b7)+_0x2c7127(_0x3ade50._0x33f591,0x1ba)+'lready\x20p'+_0x2c7127(_0x3ade50._0x19e586,-_0x3ade50._0x2e5117)+_0x2c7127(-_0x3ade50._0xabceae,-0x31d)+_0x180e83?.['serverUr'+'l']+('.\x20Run\x20\x22c'+'lawket\x20r'+_0x2c7127(0x12e,0x116)+'fore\x20pai'+_0x2c7127(_0x3ade50._0x578776,0x6c)+_0x2c7127(-_0x3ade50._0x4b9172,0x29)+_0x2c7127(0xa2,_0x3ade50._0x83d83f)+_0x51f968(0x73f,_0x3ade50._0x4b5fc3)));const _0x52f545={};_0x52f545[_0x2c7127(0x2a,_0x3ade50._0x51c832)+'type']=_0x51f968(_0x3ade50._0x1d7b65,_0x3ade50._0x238a59)+'ion/json',_0x52f545[_0x51f968(0x40d,0x33a)]=_0x3b71f7[_0x2c7127(_0x3ade50._0x3060b3,-0x61)];function _0x2c7127(_0x17ffef,_0x14f525){return _0x3a7f13(_0x14f525,_0x17ffef- -_0x4786b5._0x21fd6a);}const _0x5bf1a2=await postJsonWithCloudflareFallback(_0x3c673a+(_0x2c7127(_0x3ade50._0x2f630b,-_0x3ade50._0x1973ad)+_0x2c7127(0x189,_0x3ade50._0x1c057e)+'r'),{'method':_0x51f968(_0x3ade50._0x4edd91,_0x3ade50._0x1c829e),'headers':_0x52f545,'body':JSON['stringif'+'y']({'displayName':_0x2994c9[_0x51f968(_0x3ade50._0x5f1a5c,0x37a)+_0x2c7127(_0x3ade50._0x50f8e4,_0x3ade50._0x2b072e)]?.[_0x51f968(0x6c6,0x651)]()||null})});if(!_0x5bf1a2['response']['ok'])throw await buildPairingRequestError('Pair\x20reg'+_0x2c7127(_0x3ade50._0x351f43,_0x3ade50._0x32cf47),_0x5bf1a2);const _0x21963b=await _0x5bf1a2['response'][_0x2c7127(-0x7c,0x142)](),_0x2de348=new Date()['toISOStr'+'ing'](),_0x1c96c2={'serverUrl':_0x3c673a,'gatewayId':_0x21963b[_0x51f968(_0x3ade50._0x974698,_0x3ade50._0x1cc421)+'d'],'relaySecret':_0x21963b['relaySec'+_0x51f968(0x610,0x4d4)],'relayUrl':_0x21963b[_0x2c7127(_0x3ade50._0x80b842,0x2e7)],'instanceId':_0x180e83?.['instance'+'Id']??_0x2c7127(0x175,-0x9a)+_0x21963b[_0x51f968(0x356,_0x3ade50._0x1cc421)+'d'][_0x2c7127(0x51,-0xe2)](-0xa),'displayName':_0x21963b['displayN'+_0x51f968(_0x3ade50._0x472aa1,0x5af)],'createdAt':_0x2de348,'updatedAt':_0x2de348};return writePairingConfig(_0x1c96c2),{'config':_0x1c96c2,'accessCode':_0x21963b[_0x2c7127(0x5a,-0x4)+'de'],'accessCodeExpiresAt':_0x21963b['accessCo'+_0x2c7127(0x32c,0x1d5)+'sAt'],'action':_0x51f968(_0x3ade50._0x304a2d,0x473)+'ed','qrPayload':buildPairingQrPayload({'server':_0x3c673a,'gatewayId':_0x21963b[_0x51f968(0x326,0x4bd)+'d'],'accessCode':_0x21963b[_0x2c7127(_0x3ade50._0x5be016,-_0x3ade50._0x4ecdff)+'de'],'displayName':_0x21963b['displayN'+_0x2c7127(_0x3ade50._0xb71404,_0x3ade50._0x54fa4b)],'token':_0x2994c9[_0x51f968(_0x3ade50._0x1f81e4,_0x3ade50._0x1781e9)+'oken']?.[_0x2c7127(0x33f,0x55a)]()||null,'password':_0x2994c9['gatewayP'+_0x51f968(_0x3ade50._0x5f89de,0x2ad)]?.[_0x51f968(0x756,0x651)]()||null})};}async function refreshAccessCode(_0x32e6c5){const _0x2551d7={_0x2f43e7:0x298,_0x2b721c:0xd,_0x140c16:0x17d,_0x589596:0x3cf,_0x51a9ed:0x3d5,_0x28e015:0x1e5,_0x701cf1:0x479,_0x2dae19:0x2aa,_0x15372b:0x2bb,_0x55eb0a:0x10e,_0x27f338:0x283,_0x1712a8:0x27a,_0x374619:0x26d,_0x34a7e9:0x2b1,_0x114c96:0x56e,_0x25ff63:0x111,_0x1c4041:0x4ad,_0x55d98c:0x58f,_0x4ad9a7:0x34e,_0x178cd0:0x254,_0x162e3c:0x3bd,_0xc71d90:0x384,_0x18ae22:0x137,_0x4ce1a7:0x599,_0x2d1309:0x740,_0x4abf15:0x40e,_0x11fb01:0x512,_0x4e1665:0x49a,_0x574c0c:0x356,_0x307043:0x152,_0x33ac40:0x356,_0x5f3748:0x2c8,_0x5157d7:0x57d,_0x15d420:0x364,_0x55f449:0x63c},_0x3993ae={_0x3a6ec6:0x32},_0xf166c={_0x177891:0x1e4},_0x13b6bf={'toQhx':function(_0x3940f9,_0x51fece){return _0x3940f9(_0x51fece);},'GAciL':_0x2a0dd0(0x1b1,0x175)+_0xcf259a(_0x2551d7._0x2f43e7,0x78)+_0x2a0dd0(_0x2551d7._0x2b721c,0x1ef)+_0xcf259a(0x44e,0x47f)+_0x2a0dd0(_0x2551d7._0x140c16,0x102)+'.','vmbnG':function(_0x1eb307,_0x26d6b4,_0x2069d5){return _0x1eb307(_0x26d6b4,_0x2069d5);},'mjpHO':function(_0x2c8805,_0xaec785){return _0x2c8805(_0xaec785);}},_0x478b9e=readPairingConfig();function _0x2a0dd0(_0x5e1c09,_0xa81060){return _0x3a7f13(_0xa81060,_0x5e1c09- -_0xf166c._0x177891);}const _0x34d53c=_0x13b6bf['toQhx'](normalizeHttpBase,_0x32e6c5?.['serverUr'+'l']??_0x478b9e?.[_0x2a0dd0(-0x6,0x5f)+'l']??''),_0x2c55a2=_0x32e6c5?.[_0x2a0dd0(0x291,_0x2551d7._0x589596)+'d']??_0x478b9e?.[_0x2a0dd0(0x291,0x3a2)+'d']??'',_0x82f524=_0x32e6c5?.[_0xcf259a(_0x2551d7._0x51a9ed,_0x2551d7._0x28e015)+_0x2a0dd0(0x2a8,0x1fe)]??_0x478b9e?.[_0x2a0dd0(0x1bf,0x1e0)+'ret']??'';if(!_0x34d53c||!_0x2c55a2||!_0x82f524)throw new Error(_0x13b6bf[_0xcf259a(0x2b3,_0x2551d7._0x701cf1)]);const _0x2f106c={};_0x2f106c[_0x2a0dd0(0x110,_0x2551d7._0x2dae19)+_0xcf259a(0x48b,0x512)]=_0xcf259a(0x499,_0x2551d7._0x15372b)+'ion/json',_0x2f106c[_0x2a0dd0(_0x2551d7._0x55eb0a,0x29d)]=_0x2a0dd0(_0x2551d7._0x27f338,_0x2551d7._0x1712a8)+_0x2a0dd0(_0x2551d7._0x374619,0x30c);const _0x4caff8=await _0x13b6bf[_0xcf259a(_0x2551d7._0x34a7e9,0x432)](postJsonWithCloudflareFallback,_0x34d53c+('/v1/pair'+_0xcf259a(_0x2551d7._0x114c96,0x3ef)+_0x2a0dd0(0x163,_0x2551d7._0x25ff63)),{'method':_0x2a0dd0(0xe1,0x105),'headers':_0x2f106c,'body':JSON[_0x2a0dd0(0x24d,0x27a)+'y']({'gatewayId':_0x2c55a2,'relaySecret':_0x82f524,'displayName':_0x32e6c5?.['displayN'+'ame']?.['trim']()||void 0x0})});function _0xcf259a(_0x406ac4,_0x4dd472){return _0x3a7f13(_0x4dd472,_0x406ac4-_0x3993ae._0x3a6ec6);}if(!_0x4caff8['response']['ok'])throw await buildPairingRequestError(_0xcf259a(_0x2551d7._0x1c4041,_0x2551d7._0x55d98c)+_0xcf259a(0x48a,_0x2551d7._0x4ad9a7)+_0xcf259a(0x329,_0x2551d7._0x178cd0),_0x4caff8);const _0x5cb1f5=await _0x4caff8[_0xcf259a(_0x2551d7._0x162e3c,0x1f3)]['json'](),_0x5924b3={'serverUrl':_0x34d53c,'gatewayId':_0x5cb1f5[_0xcf259a(0x4a7,0x31f)+'d'],'relaySecret':_0x82f524,'relayUrl':_0x5cb1f5['relayUrl'],'instanceId':_0x478b9e?.[_0x2a0dd0(0x417,_0x2551d7._0xc71d90)+'Id']??_0x2a0dd0(0x25b,0x452)+_0x5cb1f5['gatewayI'+'d'][_0x2a0dd0(_0x2551d7._0x18ae22,0x25b)](-0xa),'displayName':_0x5cb1f5['displayN'+_0xcf259a(_0x2551d7._0x4ce1a7,_0x2551d7._0x2d1309)],'createdAt':_0x478b9e?.['createdA'+'t']??new Date()[_0x2a0dd0(-0x55,-0x9)+_0x2a0dd0(_0x2551d7._0x4abf15,_0x2551d7._0x11fb01)](),'updatedAt':new Date()[_0xcf259a(0x1c1,0x155)+_0x2a0dd0(_0x2551d7._0x4abf15,_0x2551d7._0x4e1665)]()};return writePairingConfig(_0x5924b3),{'config':_0x5924b3,'accessCode':_0x5cb1f5[_0xcf259a(_0x2551d7._0x574c0c,_0x2551d7._0x307043)+'de'],'accessCodeExpiresAt':_0x5cb1f5[_0xcf259a(_0x2551d7._0x33ac40,0x318)+_0xcf259a(0x628,0x875)+_0x2a0dd0(_0x2551d7._0x5f3748,0x24e)],'action':_0xcf259a(0x3c3,_0x2551d7._0x5157d7)+'d','qrPayload':_0x13b6bf[_0xcf259a(0x5a0,0x632)](buildPairingQrPayload,{'server':_0x34d53c,'gatewayId':_0x5cb1f5['gatewayI'+'d'],'accessCode':_0x5cb1f5['accessCo'+'de'],'displayName':_0x5cb1f5[_0xcf259a(_0x2551d7._0x15d420,0x526)+'ame'],'token':_0x32e6c5?.[_0xcf259a(0x340,0x2ce)+_0xcf259a(0x5ed,0x4ef)]?.[_0xcf259a(0x63b,_0x2551d7._0x55f449)]()||null,'password':_0x32e6c5?.['gatewayP'+'assword']?.[_0x2a0dd0(0x425,0x1e8)]()||null})};}function normalizeHttpBase(_0x17d247){const _0x27ab3c={_0x1f7c48:0x52b,_0x22a6bd:0x704,_0x7bcae8:0x78f,_0x579beb:0x419,_0x2cd5ff:0x46f,_0x5a4845:0x741,_0x2337be:0x939,_0x464432:0x52b,_0x57253b:0x5d1,_0x34c0ed:0x5a7,_0x51a852:0x5eb,_0x2952d9:0x269,_0x45923b:0x275,_0x193223:0x638,_0x3f6b6d:0x3fa,_0xd328e9:0x36a,_0x41857a:0x2d5,_0x480d9b:0x46f,_0x12c943:0x6bc,_0x443cc0:0x46f},_0x5e9f96={_0x478d4f:0x46d},_0x48bdbb={_0x3e03cf:0x230};function _0x2a7a56(_0x48a90a,_0xc84889){return _0x32d8ea(_0x48a90a,_0xc84889- -_0x48bdbb._0x3e03cf);}const _0x45b38b={};_0x45b38b[_0x15b82c(0x767,_0x27ab3c._0x1f7c48)]=_0x2a7a56(_0x27ab3c._0x22a6bd,_0x27ab3c._0x7bcae8),_0x45b38b[_0x2a7a56(0x7dc,0x637)]='wss://';const _0x411692=_0x45b38b;function _0x15b82c(_0x4e54f0,_0x1af61f){return _0x32d8ea(_0x4e54f0,_0x1af61f- -_0x5e9f96._0x478d4f);}const _0xdc9789=_0x17d247[_0x15b82c(0x6d8,0x5c2)]();if(!_0xdc9789)return'';if(_0xdc9789[_0x2a7a56(0x2ad,_0x27ab3c._0x579beb)+'th'](_0x15b82c(0x42e,0x553))||_0xdc9789[_0x2a7a56(0x348,0x419)+'th'](_0x15b82c(0x2d0,0x29a)))return _0xdc9789[_0x2a7a56(0x28f,_0x27ab3c._0x2cd5ff)](/\/+$/,'');if(_0xdc9789[_0x15b82c(0x36,0x1dc)+'th'](_0x411692[_0x15b82c(_0x27ab3c._0x5a4845,0x52b)]))return(_0x2a7a56(_0x27ab3c._0x2337be,0x790)+_0xdc9789[_0x15b82c(0x354,0x2d4)](_0x411692[_0x15b82c(0x620,_0x27ab3c._0x464432)][_0x2a7a56(_0x27ab3c._0x57253b,_0x27ab3c._0x34c0ed)]))['replace'](/\/+$/,'');if(_0xdc9789[_0x2a7a56(_0x27ab3c._0x51a852,0x419)+'th'](_0x15b82c(0xbb,_0x27ab3c._0x2952d9)))return('https://'+_0xdc9789[_0x15b82c(_0x27ab3c._0x45923b,0x2d4)](_0x411692[_0x15b82c(_0x27ab3c._0x193223,_0x27ab3c._0x3f6b6d)][_0x15b82c(0x4f9,_0x27ab3c._0xd328e9)]))[_0x2a7a56(_0x27ab3c._0x41857a,_0x27ab3c._0x480d9b)](/\/+$/,'');return('https://'+_0xdc9789)[_0x2a7a56(_0x27ab3c._0x12c943,_0x27ab3c._0x443cc0)](/\/+$/,'');}function assessPairingCompatibility(_0x4ccb17,_0x328c84){const _0x15dbda={_0x9212e2:0x1ab,_0x2b036b:0x6fb,_0x181475:0x4b6,_0x10e583:0x119,_0x4499bd:0x1fa,_0x31dbe8:0x1d2,_0x952790:0x22b,_0x2c1600:0x281},_0x56f4b0={_0x481354:0x6ff},_0x33e57f={_0x1ea04b:0x40a},_0x37ab5b={};function _0x4531b1(_0x51b810,_0x7e21c6){return _0x32d8ea(_0x51b810,_0x7e21c6- -_0x33e57f._0x1ea04b);}_0x37ab5b['nhVdj']=function(_0x15427e,_0x57a084){return _0x15427e===_0x57a084;};const _0x436cb7=_0x37ab5b;if(!_0x4ccb17)return _0x260c28(_0x15dbda._0x9212e2,0x152)+_0x4531b1(_0x15dbda._0x2b036b,_0x15dbda._0x181475);if(_0x436cb7[_0x260c28(_0x15dbda._0x10e583,-0x55)](_0x4ccb17[_0x4531b1(0xef,_0x15dbda._0x4499bd)+'l'],_0x328c84))return _0x4531b1(0x2ec,0x48d)+'existing';function _0x260c28(_0xf7c7fd,_0x2f0761){return _0x32d8ea(_0xf7c7fd,_0x2f0761- -_0x56f4b0._0x481354);}return _0x4531b1(_0x15dbda._0x31dbe8,_0x15dbda._0x952790)+_0x260c28(_0x15dbda._0x2c1600,0x124);}async function postJsonWithCloudflareFallback(_0x31d11a,_0x5d2ab1){const _0x328dc5={_0x28385a:0x193,_0x4a21ee:0x2f,_0x68fb4f:0x72,_0x10d25d:0x7b,_0x354b98:0x18b,_0x53d24e:0x1a7},_0x222367={_0x4ac65c:0x75b},_0x37d3ed={_0x4a2ab3:0x61e};function _0x2e18b5(_0x4f088f,_0x3b2fbd){return _0x32d8ea(_0x3b2fbd,_0x4f088f- -_0x37d3ed._0x4a2ab3);}const _0x4ec2c7={'MTZha':function(_0x1eb014,_0x1e6cdc,_0x4cd772){return _0x1eb014(_0x1e6cdc,_0x4cd772);}},_0x1b9f54=await _0x4ec2c7['MTZha'](fetch,_0x31d11a,_0x5d2ab1),_0x5dff58=resolveCloudflareChallengeFallbackUrl(_0x31d11a,_0x1b9f54);function _0x38452b(_0x35d44,_0x22d0e4){return _0x32d8ea(_0x35d44,_0x22d0e4- -_0x222367._0x4ac65c);}if(!_0x5dff58){const _0x44de53={};return _0x44de53[_0x2e18b5(_0x328dc5._0x28385a,_0x328dc5._0x4a21ee)]=_0x1b9f54,_0x44de53[_0x2e18b5(-_0x328dc5._0x68fb4f,-0x18a)+_0x2e18b5(_0x328dc5._0x10d25d,0x93)]=_0x31d11a,_0x44de53[_0x38452b(0x13f,_0x328dc5._0x354b98)+_0x2e18b5(_0x328dc5._0x53d24e,0x17f)]=null,_0x44de53;}return{'response':await fetch(_0x5dff58,_0x5d2ab1),'attemptedUrl':_0x31d11a,'fallbackUrl':_0x5dff58};}async function buildPairingRequestError(_0xa99653,_0x28a51d){const _0x1a6429={_0x31e6aa:0x5b0,_0x4ab6c6:0x4ca,_0x4947d4:0x5ea,_0x931009:0x755,_0x20ca6a:0x2de,_0x4c3f68:0x96e,_0xbe4ce6:0x885,_0x1ca3a5:0x892,_0x49c322:0x9d0,_0x55826a:0x75e,_0x47aaa7:0x5d5,_0xe164a2:0x68e,_0x20c68b:0x60a,_0x41b7c7:0x56d,_0x54eab1:0x66c,_0x29dbaa:0x61b,_0x891a0a:0x803,_0x5d89a2:0x61d,_0x4917da:0x5f7,_0x192400:0x927,_0x39f6f5:0x5a0,_0x1b1046:0x785,_0x16b9d9:0x723,_0x50c2ff:0x8c4,_0x45c87b:0x730,_0x390b5e:0x838,_0x5ac3fd:0x7ad,_0x3b1e30:0x702,_0x420178:0x91b,_0x34b4fc:0x814,_0x2d1a1e:0x6b1,_0x5f2991:0x64c},_0x419836={_0x50f146:0x165};if(isCloudflareChallengeResponse(_0x28a51d[_0x2868e7(0x561,0x64c)])){const _0x155f17=new URL(_0x28a51d[_0x2868e7(_0x1a6429._0x31e6aa,0x781)+'Url']??_0x28a51d[_0x3aad7c(0x4fd,_0x1a6429._0x4ab6c6)+_0x3aad7c(_0x1a6429._0x4947d4,0x6a6)])['origin'],_0x382f58=_0x28a51d[_0x3aad7c(0x837,0x6b5)+'Url']?_0x2868e7(0x91a,_0x1a6429._0x931009)+_0x2868e7(_0x1a6429._0x20ca6a,0x489)+_0x3aad7c(_0x1a6429._0x4c3f68,0xa85)+_0x28a51d['fallback'+_0x2868e7(_0x1a6429._0xbe4ce6,0x660)]+(_0x2868e7(0x610,0x4ee)+'t\x20a\x20Clou'+_0x3aad7c(0x6b4,_0x1a6429._0x1ca3a5)+_0x3aad7c(0x94e,0xab4)+'.'):'';return new Error(_0xa99653+(_0x3aad7c(0x7b0,_0x1a6429._0x49c322)+'(')+_0x28a51d[_0x3aad7c(0x702,0x508)][_0x2868e7(0x69f,_0x1a6429._0x55826a)]+(_0x3aad7c(_0x1a6429._0x47aaa7,_0x1a6429._0xe164a2)+_0x2868e7(0x470,_0x1a6429._0x20c68b)+_0x2868e7(0x70f,_0x1a6429._0x41b7c7)+_0x3aad7c(_0x1a6429._0x54eab1,0x49f)+'the\x20regi'+'stry\x20API'+_0x3aad7c(_0x1a6429._0x29dbaa,_0x1a6429._0x891a0a))+_0x155f17+'.'+_0x382f58+(_0x2868e7(_0x1a6429._0x5d89a2,_0x1a6429._0x4917da)+_0x3aad7c(_0x1a6429._0x192400,0x920)+_0x2868e7(0x3e9,_0x1a6429._0x39f6f5)+'network\x20'+'or\x20use\x20a'+_0x2868e7(0x89e,_0x1a6429._0x1b1046)+'y\x20endpoi'+_0x2868e7(_0x1a6429._0x16b9d9,_0x1a6429._0x50c2ff)+_0x2868e7(0x477,0x5a3)+_0x3aad7c(_0x1a6429._0x45c87b,0x738)+_0x2868e7(_0x1a6429._0x390b5e,0x64a)+_0x2868e7(0x386,0x456)+_0x2868e7(_0x1a6429._0x5ac3fd,0x6a9)));}function _0x3aad7c(_0x2246fd,_0x175b2c){return _0x32d8ea(_0x175b2c,_0x2246fd- -0xaf);}function _0x2868e7(_0x3b026e,_0x1f8903){return _0x32d8ea(_0x3b026e,_0x1f8903- -_0x419836._0x50f146);}return new Error(_0xa99653+('\x20failed\x20'+'(')+_0x28a51d[_0x3aad7c(_0x1a6429._0x3b1e30,_0x1a6429._0x420178)][_0x3aad7c(_0x1a6429._0x34b4fc,0xa54)]+_0x3aad7c(0x7e9,0x9a3)+summarizeFailedResponse(await _0x28a51d[_0x2868e7(_0x1a6429._0x2d1a1e,_0x1a6429._0x5f2991)][_0x2868e7(0x59b,0x537)]()));}function isCloudflareChallengeResponse(_0x1d58bc){const _0x2bfc06={_0x453001:0x5dd,_0xb1e1db:0x684,_0x188c49:0x6ab,_0x163bea:0x563,_0x13b7db:0x8fd},_0x169246={_0x151543:0x55};function _0x4876c6(_0x42e866,_0x18fdd3){return _0x32d8ea(_0x18fdd3,_0x42e866- -_0x169246._0x151543);}function _0x410146(_0x4cefd4,_0x3e24d6){return _0x32d8ea(_0x4cefd4,_0x3e24d6- -0x758);}return _0x1d58bc['status']===0x193&&_0x1d58bc[_0x4876c6(_0x2bfc06._0x453001,_0x2bfc06._0xb1e1db)]['get'](_0x4876c6(_0x2bfc06._0x188c49,_0x2bfc06._0x163bea)+'ated')?.['trim']()['toLowerC'+_0x4876c6(_0x2bfc06._0x13b7db,0x6ec)]()===_0x4876c6(0x758,0x8eb)+'e';}function resolveCloudflareChallengeFallbackUrl(_0x307e65,_0x4c8606){if(!isCloudflareChallengeResponse(_0x4c8606))return null;const _0xadd3df=new URL(_0x307e65);if(_0xadd3df['origin']!==DEFAULT_REGISTRY_BASE)return null;return''+DEFAULT_REGISTRY_FALLBACK_BASE+_0xadd3df['pathname']+_0xadd3df['search'];}function summarizeFailedResponse(_0x940b2d){const _0x3b1da6={_0x1243e3:0x660,_0x32b69b:0x77e,_0x264205:0x3a1,_0x52963e:0x97b,_0x49e149:0x660,_0x184807:0x8a4,_0x35d081:0x9da,_0x5dc76f:0x79a,_0x587de3:0x9d7},_0x1a6469={_0x1aabdb:0x3d},_0x1ebcd0={_0x58e987:0x12a},_0x1d74bf={};function _0x4b8a95(_0x12c0ad,_0xe5c371){return _0x32d8ea(_0xe5c371,_0x12c0ad- -_0x1ebcd0._0x58e987);}_0x1d74bf[_0x1ce119(0x656,_0x3b1da6._0x1243e3)]=_0x4b8a95(0x78c,0x94e)+'sponse\x20b'+_0x4b8a95(0x8aa,_0x3b1da6._0x32b69b);function _0x1ce119(_0x51e885,_0x2c55b9){return _0x32d8ea(_0x51e885,_0x2c55b9- -_0x1a6469._0x1aabdb);}_0x1d74bf['GJtyO']=function(_0x2b4dbd,_0x41fa4b){return _0x2b4dbd<=_0x41fa4b;};const _0xbbe988=_0x1d74bf,_0x2b9c55=_0x940b2d[_0x4b8a95(0x575,_0x3b1da6._0x264205)](/\s+/g,'\x20')[_0x4b8a95(0x905,_0x3b1da6._0x52963e)]();if(!_0x2b9c55)return _0xbbe988[_0x1ce119(0x494,_0x3b1da6._0x49e149)];if(_0xbbe988[_0x1ce119(_0x3b1da6._0x184807,_0x3b1da6._0x35d081)](_0x2b9c55[_0x1ce119(0x5d7,_0x3b1da6._0x5dc76f)],0xf0))return _0x2b9c55;return _0x2b9c55[_0x1ce119(0x8f7,0x704)](0x0,0xed)+_0x1ce119(0xb83,_0x3b1da6._0x587de3);}import{execFileSync,spawn}from'child_process';import{chmodSync,closeSync,existsSync as _0x103d0e,mkdirSync as _0x2669a4,openSync,readFileSync as _0x2d25c1,realpathSync,rmSync as _0x34a55c,writeFileSync as _0x5e0dad}from'fs';import{homedir as _0x42adab}from'os';function _0x32d8ea(_0x9765cd,_0x3846fd){const _0x50480c={_0x4bbe26:0x3e1};return _0x2370(_0x3846fd-_0x50480c._0x4bbe26,_0x9765cd);}import{dirname,join as _0x5ea869}from'path';var SERVICE_LABEL=_0x32d8ea(0x97a,0x737)+_0x3a7f13(0x40c,0x3c2)+_0x3a7f13(0x9c,0x27b),SYSTEMD_UNIT_NAME=SERVICE_LABEL+_0x3a7f13(0x41b,0x29f),WINDOWS_RUN_KEY='ClawketB'+'ridgeCli',SERVICE_DIR=_0x5ea869(_0x42adab(),_0x32d8ea(0x84a,0x791)),LOG_DIR=_0x5ea869(SERVICE_DIR,_0x32d8ea(0x8c4,0x73a)),SERVICE_STATE_PATH=_0x5ea869(SERVICE_DIR,_0x32d8ea(0x6bf,0x859)+'ervice.j'+_0x3a7f13(0x384,0x198)),SERVICE_LAUNCHER_PATH=_0x5ea869(SERVICE_DIR,_0x32d8ea(0x953,0x859)+_0x32d8ea(0xb77,0x9a2)+_0x3a7f13(0x493,0x5b1)+'sh'),SERVICE_LOG_PATH=_0x5ea869(LOG_DIR,_0x3a7f13(0x26d,0x4aa)+_0x32d8ea(0x769,0x710)),SERVICE_ERROR_LOG_PATH=_0x5ea869(LOG_DIR,'bridge-c'+'li-error'+'.log'),MACOS_PLIST_PATH=_0x5ea869(_0x42adab(),_0x32d8ea(0x6c1,0x7d1),_0x3a7f13(0x590,0x37f)+_0x3a7f13(0x2da,0x498),SERVICE_LABEL+_0x3a7f13(0x517,0x452)),LINUX_SERVICE_PATH=_0x5ea869(_0x42adab(),_0x32d8ea(0x916,0x82f),_0x3a7f13(0x6d1,0x545),_0x3a7f13(0x3b4,0x34c),SYSTEMD_UNIT_NAME);function getServiceProgramArgs(_0x5b6a7b={},_0x252ff7=process[_0x32d8ea(0x84a,0x774)]){const _0x45675c={_0x104bf0:0x461,_0x1eb8e8:0x445,_0x4cadcb:0x122,_0x1c0dd8:0x49,_0x16b1d9:0xc3,_0xb1b376:0x484,_0x3a184f:0x311,_0x34f72e:0xe4,_0x2f2855:0x99,_0x33e9b9:0x56c,_0x4e8586:0x3cb,_0x44f967:0x426},_0x5c4447={'qGxnf':function(_0x5d169b,_0x243ff0){return _0x5d169b(_0x243ff0);},'SgySe':function(_0x3ed79d,_0x493f70){return _0x3ed79d!==_0x493f70;},'aNAkd':function(_0x14e7f4,_0xc373e2,_0x231295){return _0x14e7f4(_0xc373e2,_0x231295);}};function _0x34a325(_0x5c771d,_0x45ad4b){return _0x32d8ea(_0x5c771d,_0x45ad4b- -0x5ea);}const _0x512b88=_0x5b6a7b['nodePath']?.[_0x34a325(_0x45675c._0x104bf0,_0x45675c._0x1eb8e8)]()||process[_0x34a325(_0x45675c._0x4cadcb,_0x45675c._0x1c0dd8)];function _0x116b7a(_0x54511c,_0x36e447){return _0x32d8ea(_0x54511c,_0x36e447- -0x262);}const _0x275f6a=_0x5c4447[_0x34a325(-_0x45675c._0x16b1d9,0x42)](resolveScriptPath,_0x5b6a7b['scriptPa'+'th']);if(!_0x275f6a)throw new Error(_0x34a325(_0x45675c._0xb1b376,_0x45675c._0x3a184f)+_0x34a325(-_0x45675c._0x34f72e,_0x45675c._0x2f2855)+'e\x20CLI\x20sc'+'ript\x20pat'+_0x116b7a(0x609,0x7b9)+'rvice\x20in'+_0x34a325(0xf9,-0x1d)+_0x34a325(0x225,0x14b));if(_0x5c4447[_0x116b7a(_0x45675c._0x33e9b9,0x6d0)](_0x252ff7,'win32')){const _0x332a38={};_0x332a38[_0x116b7a(0x4a7,0x48d)]=_0x512b88,_0x332a38[_0x34a325(0x220,0xe9)+'th']=_0x275f6a,_0x332a38[_0x116b7a(0x53c,0x42e)]=process.env.PATH??'';const _0x28ea59=writeServiceLauncher(_0x332a38);return _0x5c4447[_0x34a325(_0x45675c._0x4e8586,0x1ce)](ensureLaunchScriptExecutable,_0x28ea59,_0x252ff7),[_0x28ea59];}return[_0x512b88,_0x275f6a,_0x116b7a(_0x45675c._0x44f967,0x369),_0x116b7a(0x35c,_0x45675c._0x44f967)+'e'];}function getServiceStatus(){const _0x85ab44={_0x16978f:0x398,_0x57cfd9:0x1be,_0x2a0741:0x3c8,_0x3780ba:0x6ab,_0x13fdea:0x8a2,_0x1d5b78:0xb3c,_0x57fdf0:0x927,_0x34f442:0x6c1,_0x358b3e:0x6c3,_0x10f5c0:0x6b5,_0x45efb2:0x6c3,_0x469404:0x51e,_0xd80418:0x343,_0x568954:0x217,_0x3fedca:0x39a,_0x6a6306:0x49a,_0x2c270b:0x60e,_0x3e0e87:0x59f,_0x338c75:0x698,_0x14ed55:0x45d,_0x127e64:0x620,_0x498d12:0x624,_0xd8cb70:0x26a,_0x2df595:0x5d5,_0xc3e1a8:0x1c5,_0xa9b1ce:0x1b8,_0x3e089b:0x77d,_0x345906:0x7da,_0x12b112:0x9aa,_0x1259dd:0x53f,_0x1cf902:0x53d,_0x513c18:0x506},_0x1b386c={_0x3b02e1:0x41a},_0x28790e={'CkDsm':function(_0x33ff29,_0x14abea){return _0x33ff29(_0x14abea);},'lLBgA':_0x5ac579(_0x85ab44._0x16978f,_0x85ab44._0x57cfd9)+_0x5ac579(0x1be,_0x85ab44._0x2a0741),'czoyR':function(_0x22ca23,_0x145f3f,_0x124c30){return _0x22ca23(_0x145f3f,_0x124c30);},'AyQms':'launchct'+'l','leLEa':_0x61d723(0x9c9,0x837),'DJsGO':_0x5ac579(0x4be,0x29a)+'l','CjjcO':_0x61d723(_0x85ab44._0x3780ba,0x59e),'VyHSR':_0x61d723(_0x85ab44._0x13fdea,0x65b)+'e','itRPZ':_0x61d723(_0x85ab44._0x1d5b78,_0x85ab44._0x57fdf0)};ensureServiceDirs();const _0x3d0972=readServiceState()?.['pid']??null,_0x12f6b3={'installed':![],'running':_0x3d0972!=null&&_0x28790e[_0x5ac579(0x598,_0x85ab44._0x34f442)](isPidRunning,_0x3d0972),'method':detectServiceMethod(),'servicePath':getServicePath(),'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'pid':_0x3d0972};_0x12f6b3[_0x61d723(0x510,_0x85ab44._0x358b3e)]!=null&&!_0x12f6b3['running']&&(clearServiceState(_0x12f6b3[_0x61d723(0x877,_0x85ab44._0x358b3e)]),_0x12f6b3[_0x61d723(_0x85ab44._0x10f5c0,_0x85ab44._0x45efb2)]=null);function _0x61d723(_0x2bbf1d,_0x438a14){return _0x32d8ea(_0x2bbf1d,_0x438a14- -0x82);}function _0x5ac579(_0x2b4721,_0x2de4f2){return _0x32d8ea(_0x2de4f2,_0x2b4721- -_0x1b386c._0x3b02e1);}switch(_0x12f6b3[_0x5ac579(0x321,_0x85ab44._0x469404)]){case _0x28790e['lLBgA']:_0x12f6b3['installe'+'d']=_0x103d0e(MACOS_PLIST_PATH);_0x12f6b3[_0x5ac579(_0x85ab44._0xd80418,0x349)+'d']&&(_0x12f6b3[_0x5ac579(_0x85ab44._0x568954,_0x85ab44._0x3fedca)]=_0x28790e['czoyR'](commandSucceeds,_0x28790e[_0x5ac579(0x537,0x53a)],[_0x28790e[_0x5ac579(_0x85ab44._0x6a6306,_0x85ab44._0x2c270b)],SERVICE_LABEL])||_0x12f6b3['running']);return _0x12f6b3;case _0x61d723(0x418,_0x85ab44._0x3e0e87)+_0x5ac579(0x358,0x395):_0x12f6b3[_0x61d723(0x4f1,0x6db)+'d']=_0x103d0e(LINUX_SERVICE_PATH);_0x12f6b3['installe'+'d']&&(_0x12f6b3[_0x61d723(_0x85ab44._0x338c75,0x5af)]=commandSucceeds(_0x28790e[_0x61d723(_0x85ab44._0x14ed55,_0x85ab44._0x127e64)],[_0x28790e[_0x61d723(0x62e,0x724)],_0x28790e['VyHSR'],_0x5ac579(_0x85ab44._0x498d12,0x5c3),SYSTEMD_UNIT_NAME])||_0x12f6b3[_0x5ac579(_0x85ab44._0x568954,0x3b7)]);return _0x12f6b3;case _0x61d723(0x576,0x71a)+_0x5ac579(0x223,_0x85ab44._0xd8cb70)+_0x61d723(0x82e,0x9a9):_0x12f6b3[_0x61d723(0x758,0x6db)+'d']=commandSucceeds(_0x61d723(0x430,_0x85ab44._0x2df595),[_0x28790e[_0x5ac579(_0x85ab44._0xc3e1a8,_0x85ab44._0xa9b1ce)],_0x61d723(_0x85ab44._0x3e089b,0x924)+_0x61d723(_0x85ab44._0x345906,_0x85ab44._0x12b112)+_0x5ac579(0x1e6,0x385)+_0x5ac579(0x4a5,0x6c5)+_0x5ac579(_0x85ab44._0x1259dd,0x50e)+_0x5ac579(_0x85ab44._0x1cf902,_0x85ab44._0x513c18)+'un','/v',WINDOWS_RUN_KEY]);return _0x12f6b3;default:return _0x12f6b3;}}function installService(_0x37261a={}){const _0x15d244={_0x50773f:0x718,_0x511d2c:0x3ac,_0x47b301:0x3e3,_0x42c3cc:0x60c,_0x44252b:0x5f7,_0x41d01a:0x5f5,_0x6a656d:0x712,_0x58f76c:0x7f8,_0xadf161:0x77c,_0x4a6113:0x65f,_0x46629e:0x6e4,_0x20204e:0x65d,_0x34bdf1:0x765,_0x357b71:0x586,_0x564378:0x6e4,_0x234406:0x670,_0xa076d1:0x684,_0x3f2a84:0x2cf,_0x1be44e:0x74f,_0xba87bc:0x53f,_0x43eda3:0x7ba,_0x3d9e5b:0x6f3,_0x5c1ab1:0x759,_0x18c3d1:0x5ee,_0x40bd4d:0x66b,_0xd6f6d7:0x646,_0x15a2e5:0x734,_0x41c233:0x6cb,_0x4eaed2:0x7af,_0x17352e:0x38c,_0x258e49:0x7da,_0x1ede21:0x577,_0x133b67:0x6e3,_0x5ef522:0x6a8,_0x167915:0x5ad,_0x580067:0x641,_0x383834:0x5aa,_0x491bfe:0x731,_0x45f0eb:0x528,_0x1e9c75:0x432},_0x2f6a93={'lMKhp':function(_0xbe1147,_0x5ccfef,_0x375183,_0x11e158){return _0xbe1147(_0x5ccfef,_0x375183,_0x11e158);},'pbhGo':_0x175a53(_0x15d244._0x50773f,0x664)+'l','lKpIj':_0x175a53(0x5c8,_0x15d244._0x511d2c),'fcHao':'--now','CcVya':function(_0x3d0bf6){return _0x3d0bf6();},'XGFsS':_0x175a53(0x3be,_0x15d244._0x47b301),'NiFID':function(_0x302fb9,_0x9d4329){return _0x302fb9(_0x9d4329);},'LCtDt':_0x4b8057(_0x15d244._0x42c3cc,0x765)};ensureServiceDirs();const _0x4abd63=getServiceProgramArgs(_0x37261a);function _0x175a53(_0x1f3177,_0x28e8fa){return _0x3a7f13(_0x1f3177,_0x28e8fa-0x1b2);}switch(process[_0x4b8057(_0x15d244._0x44252b,_0x15d244._0x41d01a)]){case _0x4b8057(_0x15d244._0x6a656d,_0x15d244._0x58f76c):_0x5e0dad(MACOS_PLIST_PATH,_0x2f6a93[_0x4b8057(_0x15d244._0xadf161,_0x15d244._0x4a6113)](buildMacosPlist,_0x4abd63,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x175a53(0x57c,_0x15d244._0x46629e)),execIgnoreFailure('launchct'+'l',['unload','-w',MACOS_PLIST_PATH]);const _0x30ceb9={};_0x30ceb9['stdio']=_0x4b8057(_0x15d244._0x20204e,_0x15d244._0x34bdf1),execFileSync(_0x4b8057(_0x15d244._0x357b71,0x5ed)+'l',[_0x175a53(0x59a,0x434),'-w',MACOS_PLIST_PATH],_0x30ceb9);break;case'linux':const _0x45520f={};_0x45520f[_0x4b8057(0x635,0x43b)+'e']=!![],_0x2669a4(dirname(LINUX_SERVICE_PATH),_0x45520f),_0x5e0dad(LINUX_SERVICE_PATH,buildLinuxSystemdUnit(_0x4abd63,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x175a53(0x5c7,_0x15d244._0x564378));const _0x339f79={};_0x339f79[_0x4b8057(0x8e2,0x7ba)]=_0x175a53(0x485,_0x15d244._0x234406),execFileSync(_0x2f6a93[_0x175a53(_0x15d244._0xa076d1,0x57a)],[_0x175a53(_0x15d244._0x3f2a84,0x3ac),_0x175a53(_0x15d244._0x1be44e,_0x15d244._0xba87bc)+_0x4b8057(0x87b,0x882)],_0x339f79);const _0x49011d={};_0x49011d[_0x4b8057(0x7b6,_0x15d244._0x43eda3)]=_0x4b8057(0x981,0x765),execFileSync(_0x4b8057(_0x15d244._0x3d9e5b,_0x15d244._0x5c1ab1)+'l',[_0x2f6a93[_0x175a53(0x402,_0x15d244._0x18c3d1)],'enable',_0x2f6a93['fcHao'],SYSTEMD_UNIT_NAME],_0x49011d);break;case _0x175a53(_0x15d244._0x40bd4d,0x5c2):_0x2f6a93[_0x175a53(_0x15d244._0xd6f6d7,0x432)](stopRunningProcess),execFileSync(_0x2f6a93[_0x175a53(_0x15d244._0x15a2e5,_0x15d244._0x41c233)],['add',_0x4b8057(_0x15d244._0x4eaed2,0x827)+_0x175a53(0x5ef,0x7b8)+_0x175a53(0x217,_0x15d244._0x17352e)+'Windows\x5c'+_0x4b8057(0x855,_0x15d244._0x258e49)+_0x175a53(_0x15d244._0x1ede21,_0x15d244._0x133b67)+'un','/v',WINDOWS_RUN_KEY,'/t',_0x4b8057(0x405,0x438),'/d',_0x2f6a93['NiFID'](buildWindowsRunCommand,_0x4abd63),'/f'],{'stdio':_0x2f6a93[_0x4b8057(0x44f,0x64e)]}),startDetachedWindowsService(_0x4abd63);break;default:throw new Error(_0x175a53(0x496,_0x15d244._0x5ef522)+_0x175a53(0x705,0x53a)+'form\x20for'+_0x4b8057(0x501,0x544)+_0x4b8057(_0x15d244._0x167915,_0x15d244._0x580067)+_0x175a53(_0x15d244._0x383834,_0x15d244._0x491bfe)+_0x4b8057(0x585,0x5d5)+process[_0x4b8057(_0x15d244._0x45f0eb,0x5f5)]);}function _0x4b8057(_0x4e8dae,_0x14052){return _0x3a7f13(_0x4e8dae,_0x14052-0x2a7);}return _0x2f6a93[_0x175a53(0x5d4,_0x15d244._0x1e9c75)](getServiceStatus);}function restartService(_0x2413fa={}){const _0x5ca788={_0x5b1099:0x58e,_0x1fb424:0x476,_0x1b621c:0x367,_0x5320f1:0x2ca,_0x2f182b:0x528,_0x27e4d3:0x4b3,_0x41c941:0x500,_0x4d05f2:0x77a,_0x799c3b:0x5a4,_0xe770bd:0x62b,_0x45c0df:0x6ab,_0x3cc081:0x90e,_0x538e83:0x706,_0x5eab6b:0x14a,_0x55c198:0x403,_0x460192:0x2a6,_0xf8ed63:0x979,_0x5db56e:0x4df,_0x5b81ab:0x6fa,_0x3de53e:0x623,_0x16939d:0x553,_0x3bf322:0x35d,_0x2413b6:0x25c,_0x1d7c3d:0x68f,_0x117830:0x706,_0x25700d:0x17e,_0x380f21:0x7c8,_0x525420:0x553,_0x176b3d:0x422,_0x379c72:0x61c,_0x3dba48:0x270,_0x59c3a1:0x73e,_0x1ec5d5:0x73f,_0x11d059:0x5f1,_0x2f94de:0x278,_0x5bf4db:0x1ea,_0xb1cc09:0x2e4,_0xde7cd7:0x2f7,_0x5e4963:0x121,_0x1b5ce8:0x525},_0x1f26b0={'IFWQc':function(_0x2b8ba3,_0x26e0ec){return _0x2b8ba3(_0x26e0ec);},'fEDdx':function(_0x10cc4d,_0x1eb49a,_0x117413,_0x20ef37){return _0x10cc4d(_0x1eb49a,_0x117413,_0x20ef37);},'gVKIM':'unload','JRfad':_0x302320(_0x5ca788._0x5b1099,_0x5ca788._0x1fb424)+'l','idAUu':'load','DgxHl':function(_0x4933a7,_0x37449c){return _0x4933a7(_0x37449c);},'zIurE':_0x302320(0x442,_0x5ca788._0x1b621c),'pkhod':_0x55dc20(0x2da,_0x5ca788._0x5320f1)+_0x55dc20(_0x5ca788._0x2f182b,_0x5ca788._0x27e4d3),'RQopP':function(_0x2562fa){return _0x2562fa();},'ihSZu':_0x55dc20(0x19e,-0x97),'fgZOb':function(_0x46ed78){return _0x46ed78();}};ensureServiceDirs();const _0x103cdf=getServiceProgramArgs(_0x2413fa);function _0x55dc20(_0x1dd2df,_0x50005d){return _0x3a7f13(_0x50005d,_0x1dd2df- -0xb3);}switch(process[_0x302320(0x596,0x596)]){case'darwin':if(!_0x1f26b0[_0x302320(0x566,_0x5ca788._0x41c941)](_0x103d0e,MACOS_PLIST_PATH))return installService(_0x2413fa);_0x1f26b0['fEDdx'](_0x5e0dad,MACOS_PLIST_PATH,buildMacosPlist(_0x103cdf,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x302320(_0x5ca788._0x4d05f2,_0x5ca788._0x799c3b)),execIgnoreFailure(_0x302320(0x58e,_0x5ca788._0xe770bd)+'l',[_0x1f26b0[_0x302320(0x5ee,_0x5ca788._0x45c0df)],'-w',MACOS_PLIST_PATH]);const _0x45a41f={};_0x45a41f[_0x302320(0x75b,_0x5ca788._0x3cc081)]=_0x302320(_0x5ca788._0x538e83,0x62e),execFileSync(_0x1f26b0[_0x55dc20(0xd9,_0x5ca788._0x5eab6b)],[_0x1f26b0[_0x55dc20(0x30a,0x1f3)],'-w',MACOS_PLIST_PATH],_0x45a41f);break;case _0x302320(_0x5ca788._0x55c198,0x475):if(!_0x1f26b0[_0x55dc20(_0x5ca788._0x460192,0x294)](_0x103d0e,LINUX_SERVICE_PATH))return installService(_0x2413fa);const _0x207aa9={};_0x207aa9[_0x302320(0x3dc,0x569)+'e']=!![],_0x2669a4(dirname(LINUX_SERVICE_PATH),_0x207aa9),_0x5e0dad(LINUX_SERVICE_PATH,buildLinuxSystemdUnit(_0x103cdf,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),'utf8');const _0x551ae7={};_0x551ae7[_0x302320(0x75b,_0x5ca788._0xf8ed63)]=_0x55dc20(0x40b,0x4a7),execFileSync('systemct'+'l',[_0x1f26b0[_0x302320(0x686,0x74b)],_0x1f26b0[_0x55dc20(_0x5ca788._0x5db56e,0x49a)]],_0x551ae7);const _0x200a8f={};_0x200a8f[_0x302320(0x75b,0x73b)]=_0x55dc20(0x40b,0x541),execFileSync(_0x302320(_0x5ca788._0x5b81ab,_0x5ca788._0x3de53e)+'l',['--user',_0x302320(_0x5ca788._0x16939d,0x791),SYSTEMD_UNIT_NAME],_0x200a8f);break;case _0x55dc20(_0x5ca788._0x3bf322,_0x5ca788._0x2413b6):_0x1f26b0[_0x302320(0x742,0x7bc)](stopRunningProcess);const _0x16c7ba={};_0x16c7ba[_0x302320(0x75b,_0x5ca788._0x1d7c3d)]=_0x302320(_0x5ca788._0x117830,0x6b1),execFileSync(_0x55dc20(_0x5ca788._0x25700d,0x1a4),[_0x1f26b0['ihSZu'],_0x302320(_0x5ca788._0x380f21,0x8b4)+_0x55dc20(_0x5ca788._0x525420,0x3a0)+_0x302320(_0x5ca788._0x176b3d,0x332)+'Windows\x5c'+_0x55dc20(0x480,0x3d7)+_0x55dc20(0x47e,_0x5ca788._0x379c72)+'un','/v',WINDOWS_RUN_KEY,'/t',_0x55dc20(0xde,_0x5ca788._0x3dba48),'/d',buildWindowsRunCommand(_0x103cdf),'/f'],_0x16c7ba),startDetachedWindowsService(_0x103cdf);break;default:throw new Error(_0x302320(_0x5ca788._0x59c3a1,_0x5ca788._0x1ec5d5)+_0x302320(0x5d0,_0x5ca788._0x11d059)+_0x302320(0x40a,_0x5ca788._0x2f94de)+_0x55dc20(_0x5ca788._0x5bf4db,0x21f)+_0x55dc20(0x26a,_0x5ca788._0xb1cc09)+_0x55dc20(_0x5ca788._0xde7cd7,_0x5ca788._0x5e4963)+process[_0x55dc20(0x29b,0x3cf)]);}function _0x302320(_0x28c24c,_0x2c31b7){return _0x3a7f13(_0x2c31b7,_0x28c24c-0x248);}return _0x1f26b0[_0x302320(_0x5ca788._0x1b5ce8,0x500)](getServiceStatus);}function uninstallService(){const _0x5f017d={_0x54f9e1:0x200,_0x1461e0:0x173,_0xe85a2e:0x5ba,_0x2c7a3e:0x5b5,_0x4b6c0b:0x16b,_0x8b345c:0xda,_0x43727e:0x360,_0x3d33b3:0x2da,_0xb58905:0x236,_0x1c61ca:0x363,_0x3afe84:0xdf,_0x3ef93f:0x1f,_0x4aedfe:0x431,_0x255df1:0x400,_0xcf9bf6:0x59,_0x56b97e:0x295,_0x56ffea:0x51a,_0x434cc4:0x3a5,_0x26b622:0x19f,_0x44f8ab:0x57c,_0x5422f6:0x50f},_0x4a8301={_0xdb8b1a:0x601},_0x242e42={_0x5388d9:0x3c2},_0x9acb25={'MYHVg':_0x3e98cd(_0x5f017d._0x54f9e1,0x327),'hkvxD':function(_0x3cc00b,_0x4c19e3){return _0x3cc00b(_0x4c19e3);},'WuJOh':function(_0x105c12,_0x15fc29,_0x35434b){return _0x105c12(_0x15fc29,_0x35434b);},'GCciw':function(_0x39134c){return _0x39134c();}};stopRunningProcess();switch(process[_0x525793(0x18b,_0x5f017d._0x1461e0)]){case _0x3e98cd(_0x5f017d._0xe85a2e,_0x5f017d._0x2c7a3e):execIgnoreFailure(_0x525793(0x187,_0x5f017d._0x4b6c0b)+'l',[_0x3e98cd(0x43d,0x43e),'-w',MACOS_PLIST_PATH]),rmIfExists(MACOS_PLIST_PATH);break;case _0x525793(_0x5f017d._0x8b345c,-0x20):_0x103d0e(LINUX_SERVICE_PATH)&&(execIgnoreFailure(_0x3e98cd(_0x5f017d._0x43727e,0x516)+'l',[_0x525793(0x1d3,0x1f),_0x525793(_0x5f017d._0x3d33b3,_0x5f017d._0xb58905),_0x9acb25[_0x3e98cd(_0x5f017d._0x1c61ca,0x458)],SYSTEMD_UNIT_NAME]),_0x9acb25[_0x525793(-0xe5,_0x5f017d._0x3afe84)](rmIfExists,LINUX_SERVICE_PATH),execIgnoreFailure(_0x3e98cd(0x500,0x516)+'l',[_0x525793(-0x45,_0x5f017d._0x3ef93f),_0x3e98cd(_0x5f017d._0x4aedfe,0x3f1)+_0x525793(0x229,_0x5f017d._0x255df1)]));break;case _0x525793(_0x5f017d._0xcf9bf6,0x235):_0x9acb25['WuJOh'](execIgnoreFailure,_0x3e98cd(0x30a,_0x5f017d._0x56b97e),['delete',_0x525793(_0x5f017d._0x56ffea,_0x5f017d._0x434cc4)+'tware\x5cMi'+_0x3e98cd(_0x5f017d._0x26b622,0x23e)+'Windows\x5c'+'CurrentV'+'ersion\x5cR'+'un','/v',WINDOWS_RUN_KEY,'/f']);break;default:break;}function _0x3e98cd(_0x5b88b2,_0x3fbff3){return _0x32d8ea(_0x5b88b2,_0x3fbff3- -_0x242e42._0x5388d9);}_0x9acb25[_0x3e98cd(_0x5f017d._0x44f8ab,_0x5f017d._0x5422f6)](clearServiceState);function _0x525793(_0x257947,_0x4b0467){return _0x32d8ea(_0x257947,_0x4b0467- -_0x4a8301._0xdb8b1a);}return getServiceStatus();}function stopService(){const _0x19f3be={_0x1e0768:0x633,_0x1790a0:0x6ec,_0x4d4cde:0x376,_0x2f4a8b:0x561,_0xd9232d:0x57d,_0x446305:0x35d,_0x962d68:0x2c5,_0x3b7278:0x906},_0x2f5730={'JmQad':_0x28fc73(0xa30,0x8f7),'KXekN':function(_0xa34b42,_0x2ef400,_0x5713fb){return _0xa34b42(_0x2ef400,_0x5713fb);}};stopRunningProcess();switch(process[_0x28fc73(0x8a5,0x6f4)]){case _0x2f5730[_0x376f44(0x610,_0x19f3be._0x1e0768)]:_0x103d0e(MACOS_PLIST_PATH)&&_0x2f5730[_0x376f44(0x4fe,0x58a)](execIgnoreFailure,_0x28fc73(0x85c,_0x19f3be._0x1790a0)+'l',['unload',MACOS_PLIST_PATH]);break;case _0x28fc73(_0x19f3be._0x4d4cde,_0x19f3be._0x2f4a8b):_0x103d0e(LINUX_SERVICE_PATH)&&execIgnoreFailure(_0x376f44(0x625,_0x19f3be._0xd9232d)+'l',[_0x376f44(_0x19f3be._0x446305,_0x19f3be._0x962d68),_0x376f44(0x458,0x585),SYSTEMD_UNIT_NAME]);break;case _0x28fc73(_0x19f3be._0x3b7278,0x7b6):break;default:break;}function _0x376f44(_0x19d6f4,_0x4e3a15){return _0x32d8ea(_0x19d6f4,_0x4e3a15- -0x35b);}clearServiceState();function _0x28fc73(_0x6c77df,_0x13f296){return _0x32d8ea(_0x6c77df,_0x13f296- -0x80);}return getServiceStatus();}function writeServiceState(_0xc1e747=process['pid']){const _0x3cd800={_0x278072:0x336,_0x422f31:0x6d5},_0x232360={_0x1cd7e8:0x3dd};function _0x2d8c61(_0x227422,_0xf1f99d){return _0x3a7f13(_0x227422,_0xf1f99d-_0x232360._0x1cd7e8);}const _0x2a2e1a={'DpCoX':function(_0x39a9fb){return _0x39a9fb();}};_0x2a2e1a['DpCoX'](ensureServiceDirs);const _0xb41ab4={'pid':_0xc1e747,'startedAt':new Date()[_0x2d8c61(_0x3cd800._0x278072,0x56c)+_0x3e16a6(_0x3cd800._0x422f31,0x48a)]()};function _0x3e16a6(_0x14c761,_0x4fccea){return _0x3a7f13(_0x14c761,_0x4fccea- -0x168);}_0x5e0dad(SERVICE_STATE_PATH,JSON['stringif'+'y'](_0xb41ab4,null,0x2)+'\x0a',_0x2d8c61(0xb4a,0x90f));}function clearServiceState(_0x7aa9df){const _0x2fff02={_0x5df3e5:0x915},_0x32bc4d={_0x30a82f:0x8f};function _0x446720(_0x188147,_0x32d49c){return _0x32d8ea(_0x188147,_0x32d49c- -0x62f);}function _0x3fb3e8(_0x13aa72,_0x2223dc){return _0x32d8ea(_0x2223dc,_0x13aa72- -_0x32bc4d._0x30a82f);}const _0x418d39={'GdyDZ':function(_0x5bc988){return _0x5bc988();}};if(!_0x103d0e(SERVICE_STATE_PATH))return;if(_0x7aa9df!=null){const _0x5b0b63=_0x418d39[_0x3fb3e8(0x8a5,_0x2fff02._0x5df3e5)](readServiceState);if(_0x5b0b63&&_0x5b0b63[_0x446720(0x219,0x116)]!==_0x7aa9df)return;}rmIfExists(SERVICE_STATE_PATH);}function getServicePaths(){function _0x2d0493(_0x291a1a,_0x80763c){return _0x32d8ea(_0x291a1a,_0x80763c- -0x4c2);}const _0x248911={'SEpke':function(_0x4e61ee){return _0x4e61ee();}};return{'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'servicePath':_0x248911[_0x2d0493(0x4a0,0x284)](getServicePath)};}function buildMacosPlist(_0x19d64b,_0x2bf595,_0x311df3){const _0x5e02ed={_0x15efee:0x3e,_0x39bbcf:0x1c5,_0x5239f6:0x7e,_0x34261c:0xef,_0x43c230:0xbd,_0x1a31b1:0x2fd,_0x3fed4f:0x278,_0x2f8c8c:0x18c,_0x30f59f:0xd1,_0x56c75a:0x1b4,_0x4d7201:0x23,_0x4d44a5:0x221,_0x3f462f:0xe7,_0x59105c:0x330,_0x87ada2:0x1f8,_0x374a26:0x82,_0x50da76:0x1be,_0x16b42e:0x2c2,_0x4cd239:0x340,_0x720116:0xdb,_0x20efc9:0x48,_0x32140d:0x7f,_0x137266:0x50,_0x3978f9:0x141,_0x325e45:0x381,_0x3e1e42:0x16c,_0x485813:0x33,_0x20ccf3:0x122,_0x3f9738:0x1c,_0x508664:0x289,_0x72aa66:0x6c,_0x43c524:0x143,_0x3ae86d:0x124,_0x32bd96:0x8e,_0x4e7119:0x1d,_0x5d2f70:0x17b,_0x586382:0x27b,_0x4937c4:0xd0,_0x2b1965:0x24e,_0x2af9f9:0x166,_0x9dac6c:0x91,_0x39f97e:0xa2,_0x49ed0a:0x1ce},_0x5e2652={_0x1c70c2:0x2f3};function _0x493a60(_0x33315b,_0xefc1db){return _0x3a7f13(_0x33315b,_0xefc1db- -0x29c);}const _0x592899=_0x19d64b[_0x493a60(0x1ca,0xb1)](_0x340f0e=>_0x493a60(0x16c,0xdc)+_0x1456a1(0x114,-0x4b)+escapeXml(_0x340f0e)+('</string'+'>'))['join']('\x0a');function _0x1456a1(_0x1fab7a,_0x228ccf){return _0x3a7f13(_0x1fab7a,_0x228ccf- -_0x5e2652._0x1c70c2);}return _0x1456a1(0x3c,_0x5e02ed._0x15efee)+'rsion=\x221'+_0x493a60(0x187,_0x5e02ed._0x39bbcf)+_0x1456a1(0x345,0x1f9)+'F-8\x22?>\x0a<'+_0x493a60(-0x247,-0xd6)+_0x1456a1(-_0x5e02ed._0x5239f6,-_0x5e02ed._0x34261c)+_0x493a60(0xcd,-_0x5e02ed._0x43c230)+_0x1456a1(_0x5e02ed._0x1a31b1,_0x5e02ed._0x3fed4f)+_0x493a60(-_0x5e02ed._0x2f8c8c,-0xf0)+_0x1456a1(-0x36,_0x5e02ed._0x30f59f)+_0x1456a1(_0x5e02ed._0x56c75a,0x320)+_0x493a60(_0x5e02ed._0x4d7201,_0x5e02ed._0x4d44a5)+_0x493a60(_0x5e02ed._0x3f462f,0x204)+_0x1456a1(-0x330,-0x122)+'ropertyL'+'ist-1.0.'+_0x1456a1(_0x5e02ed._0x59105c,_0x5e02ed._0x87ada2)+'list\x20ver'+_0x1456a1(-_0x5e02ed._0x374a26,-0x120)+_0x1456a1(0xba,0x32)+_0x493a60(_0x5e02ed._0x50da76,_0x5e02ed._0x16b42e)+_0x493a60(0x520,_0x5e02ed._0x4cd239)+'/key>\x0a\x20\x20'+_0x493a60(_0x5e02ed._0x56c75a,_0x5e02ed._0x720116)+SERVICE_LABEL+(_0x1456a1(0x37,_0x5e02ed._0x20efc9)+_0x493a60(-_0x5e02ed._0x32140d,-0x105)+_0x1456a1(0x109,0x81)+_0x1456a1(0x186,0x2dc)+_0x1456a1(-_0x5e02ed._0x137266,-0x18)+_0x1456a1(-0x30,_0x5e02ed._0x3978f9)+'>\x0a')+_0x592899+(_0x1456a1(-_0x5e02ed._0x325e45,-0x174)+_0x493a60(_0x5e02ed._0x3e1e42,_0x5e02ed._0x485813)+_0x493a60(_0x5e02ed._0x20ccf3,_0x5e02ed._0x3f9738)+'Load</ke'+_0x493a60(0x3b2,_0x5e02ed._0x508664)+'ue/>\x0a\x20\x20<'+'key>Keep'+_0x493a60(_0x5e02ed._0x72aa66,_0x5e02ed._0x43c524)+_0x493a60(0xca,0x1ed)+_0x493a60(_0x5e02ed._0x3ae86d,-_0x5e02ed._0x32bd96)+'<key>Sta'+_0x1456a1(-_0x5e02ed._0x4e7119,_0x5e02ed._0x5d2f70)+_0x493a60(-_0x5e02ed._0x586382,-_0x5e02ed._0x4937c4)+'y>\x0a\x20\x20<st'+_0x493a60(0x1f9,0xb9))+escapeXml(_0x2bf595)+(_0x493a60(0x284,0x9f)+_0x493a60(-0x82,-0x105)+_0x1456a1(0x6a,_0x5e02ed._0x2b1965)+_0x493a60(0x4ea,0x2a3)+_0x493a60(_0x5e02ed._0x2af9f9,-0x78)+_0x493a60(0x131,-0xc0)+_0x1456a1(_0x5e02ed._0x9dac6c,0xe0))+escapeXml(_0x311df3)+('</string'+_0x493a60(_0x5e02ed._0x39f97e,-0xa4)+'>\x0a</plis'+_0x493a60(_0x5e02ed._0x49ed0a,0x2f5));}function buildLinuxSystemdUnit(_0x20f92b,_0x46472f,_0x5f30a1){const _0x5e65c7={_0x31dbf7:0x134,_0x2a7685:0x1ea,_0x24b3a8:0x2f2,_0x538490:0x133,_0x19f81c:0x5f8,_0x591ebe:0x3bb,_0x124970:0xd6,_0x119c64:0x66,_0x32264b:0x1f4,_0x44d32c:0x15e,_0x5eff95:0x7,_0x58328d:0x182,_0x39770c:0xb2,_0x187806:0xeb,_0xd4d0a0:0x259,_0x28f445:0x1ef,_0x25f586:0x6d,_0x580e8b:0x1b3,_0x312ab7:0x9a,_0x4bf9ba:0x79,_0xa49b5e:0x79,_0x4dcfe3:0x379,_0x5dd248:0xf2,_0x5c3dcc:0x135,_0xfbaa68:0x425,_0x32de3d:0x40b},_0x3318a0={_0x2e80ba:0x147},_0x5eb2d9={_0x42911a:0x2fa};function _0x55acec(_0x261e49,_0x4e445a){return _0x3a7f13(_0x4e445a,_0x261e49- -_0x5eb2d9._0x42911a);}function _0xa60fa(_0x383220,_0x50ab97){return _0x3a7f13(_0x383220,_0x50ab97- -_0x3318a0._0x2e80ba);}const _0x253daa=_0x20f92b['map'](escapeSystemdArg)['join']('\x20');return _0x55acec(_0x5e65c7._0x31dbf7,0x275)+_0xa60fa(0x53c,0x486)+_0x55acec(_0x5e65c7._0x2a7685,0x36b)+_0xa60fa(_0x5e65c7._0x24b3a8,_0x5e65c7._0x538490)+_0xa60fa(_0x5e65c7._0x19f81c,_0x5e65c7._0x591ebe)+_0xa60fa(0x1ea,0x33a)+'ork-onli'+_0x55acec(_0x5e65c7._0x124970,0x68)+_0xa60fa(0x235,_0x5e65c7._0x119c64)+_0xa60fa(0x644,0x49c)+'online.t'+_0x55acec(_0x5e65c7._0x32264b,_0x5e65c7._0x44d32c)+_0xa60fa(0x39b,0x1b7)+_0x55acec(_0x5e65c7._0x5eff95,-0x1eb)+'mple\x0aExe'+_0xa60fa(_0x5e65c7._0x58328d,0x29d)+_0x253daa+(_0xa60fa(0x94,0x159)+_0xa60fa(_0x5e65c7._0x39770c,_0x5e65c7._0x187806)+'RestartS'+_0xa60fa(0x11f,0x17f)+_0x55acec(_0x5e65c7._0xd4d0a0,_0x5e65c7._0x28f445)+'ctory=')+escapeSystemdArg(SERVICE_DIR)+(_0x55acec(-_0x5e65c7._0x25f586,-_0x5e65c7._0x580e8b)+_0xa60fa(0x78,0xae)+_0x55acec(-0xbd,_0x5e65c7._0x312ab7))+_0x46472f+(_0x55acec(-_0x5e65c7._0x25f586,-_0x5e65c7._0x4bf9ba)+_0x55acec(_0x5e65c7._0xa49b5e,0x15d)+_0xa60fa(_0x5e65c7._0x4dcfe3,0x237))+_0x5f30a1+(_0xa60fa(0xbf,0x147)+_0x55acec(_0x5e65c7._0x5dd248,_0x5e65c7._0x5c3dcc)+_0xa60fa(_0x5e65c7._0xfbaa68,0x419)+'ault.tar'+_0xa60fa(_0x5e65c7._0x32de3d,0x1fb));}function getServicePath(){const _0x454824={_0x493ae9:0xa9a,_0xd0148d:0x640,_0x165598:0x635,_0x3fe4b9:0x42d,_0x3f5ea0:0x550,_0x20c3b4:0x803,_0x3b0252:0x80f,_0x4dcba8:0x666,_0x280d6a:0x560,_0x10a7dc:0x742,_0x45cef0:0x370,_0x1d3346:0x46a,_0x4e94c5:0x531},_0x3129c1={};function _0x3ba06c(_0x5bef95,_0x204fb1){return _0x32d8ea(_0x5bef95,_0x204fb1- -0x3f7);}function _0x76ad0c(_0x731564,_0x512c74){return _0x32d8ea(_0x731564,_0x512c74- -0xb0);}_0x3129c1[_0x76ad0c(0x6db,0x87e)]=_0x76ad0c(_0x454824._0x493ae9,0x8f6)+_0x3ba06c(_0x454824._0xd0148d,_0x454824._0x165598)+_0x76ad0c(_0x454824._0x3fe4b9,_0x454824._0x3f5ea0)+_0x76ad0c(_0x454824._0x20c3b4,_0x454824._0x3b0252)+'CurrentV'+_0x3ba06c(_0x454824._0x4dcba8,_0x454824._0x280d6a)+'un\x5cClawk'+_0x76ad0c(_0x454824._0x10a7dc,0x508)+'Cli';const _0x581bf3=_0x3129c1;switch(process[_0x3ba06c(0x275,0x37d)]){case _0x3ba06c(_0x454824._0x45cef0,0x580):return MACOS_PLIST_PATH;case _0x76ad0c(_0x454824._0x1d3346,_0x454824._0x4e94c5):return LINUX_SERVICE_PATH;case'win32':return _0x581bf3[_0x3ba06c(0x6f2,0x537)];default:return'';}}function detectServiceMethod(){const _0x3ef37f={_0x2f8105:0x403,_0x5ebe14:0x32c,_0x5c0100:0x2b6,_0xbf934b:0x48f,_0x3ea46c:0xb3,_0x36fa63:0x7a,_0x36d2b8:0x60a,_0x42afe3:0x29b,_0x109123:0x2a4,_0x4515cf:0x3a,_0x163026:0x435,_0x56d991:0x175,_0x475feb:0x54,_0x3a5073:0xdb},_0x4b6c7={_0x174b03:0x6c1},_0x1149ac={};function _0x37ab43(_0x526afb,_0xc3bfc3){return _0x32d8ea(_0xc3bfc3,_0x526afb- -0x33d);}_0x1149ac[_0x37ab43(_0x3ef37f._0x2f8105,_0x3ef37f._0x5ebe14)]=_0x3b73a4(_0x3ef37f._0x5c0100,_0x3ef37f._0xbf934b);function _0x3b73a4(_0x12b7cc,_0x221e08){return _0x32d8ea(_0x221e08,_0x12b7cc- -_0x4b6c7._0x174b03);}const _0x401415=_0x1149ac;switch(process[_0x3b73a4(_0x3ef37f._0x3ea46c,-_0x3ef37f._0x36fa63)]){case _0x401415[_0x37ab43(_0x3ef37f._0x2f8105,0x338)]:return _0x37ab43(0x475,_0x3ef37f._0x36d2b8)+_0x37ab43(_0x3ef37f._0x42afe3,0x1e9);case _0x37ab43(_0x3ef37f._0x109123,0x207):return _0x3b73a4(-0xa0,-_0x3ef37f._0x4515cf)+_0x37ab43(_0x3ef37f._0x163026,0x343);case _0x3b73a4(_0x3ef37f._0x56d991,-_0x3ef37f._0x475feb):return _0x3b73a4(_0x3ef37f._0x3a5073,0x1b7)+_0x37ab43(0x300,0x4db)+'stry';default:return'unsuppor'+'ted';}}function readServiceState(){const _0x8d58a9={_0x4f944d:0x391,_0x1494ca:0x2cc,_0x4e2344:0x651,_0x2abf0c:0xe0,_0x2bb0de:0x103,_0x4d3acc:0x74b,_0x3ff7d6:0x628},_0x556de6={_0x59135d:0x6cc},_0x20afd6={_0x24687d:0x3f0};function _0x29931c(_0x445ce0,_0x5e713d){return _0x32d8ea(_0x445ce0,_0x5e713d- -_0x20afd6._0x24687d);}const _0x41dc4b={'uUIwe':function(_0xc4ed83,_0x40eae2){return _0xc4ed83(_0x40eae2);},'OJQGv':function(_0x14f79f,_0xa1d941,_0x47ad89){return _0x14f79f(_0xa1d941,_0x47ad89);},'NePLD':_0x190b46(_0x8d58a9._0x4f944d,0x28c)};if(!_0x41dc4b[_0x29931c(0x44a,_0x8d58a9._0x1494ca)](_0x103d0e,SERVICE_STATE_PATH))return null;function _0x190b46(_0xa0b58d,_0x471d62){return _0x32d8ea(_0xa0b58d,_0x471d62- -_0x556de6._0x59135d);}try{const _0x5c4fe2=JSON['parse'](_0x41dc4b['OJQGv'](_0x2d25c1,SERVICE_STATE_PATH,_0x41dc4b[_0x29931c(_0x8d58a9._0x4e2344,0x599)]));if(!_0x5c4fe2['pid']||typeof _0x5c4fe2['pid']!=='number')return null;return{'pid':_0x5c4fe2['pid'],'startedAt':_0x5c4fe2[_0x190b46(-_0x8d58a9._0x2abf0c,_0x8d58a9._0x2bb0de)+'t']??new Date(0x0)[_0x29931c(-0x49,0x1c5)+_0x29931c(_0x8d58a9._0x4d3acc,_0x8d58a9._0x3ff7d6)]()};}catch{return null;}}function stopRunningProcess(){const _0x16b95a={_0x37ea0a:0x1cf,_0xb6bc6c:0x14f,_0x175aed:0x49,_0x18a1d3:0x23e,_0x3a0bf9:0x230,_0xeb1bf2:0x6b,_0x3747fd:0x28a,_0x1598bb:0x3c},_0x4f545e={_0x568f59:0x241},_0x1ef77b={'hyzrD':function(_0x39f67d,_0x23c746,_0x5f20b0){return _0x39f67d(_0x23c746,_0x5f20b0);},'OxLWc':_0x25e72c(0x28a,0x182),'ExrCY':_0x25e72c(_0x16b95a._0x37ea0a,-0x2d),'Nigns':_0x25e72c(0x14f,0x335)},_0x1e3f6e=readServiceState();if(!_0x1e3f6e)return;_0x1ef77b['hyzrD'](execIgnoreFailure,process[_0x504340(0x6b,-_0x16b95a._0xb6bc6c)]===_0x25e72c(_0x16b95a._0x37ea0a,0x216)?_0x1ef77b[_0x504340(_0x16b95a._0x175aed,0x120)]:_0x504340(_0x16b95a._0x18a1d3,_0x16b95a._0x3a0bf9),process[_0x504340(_0x16b95a._0xeb1bf2,0x52)]===_0x1ef77b[_0x504340(-0x8a,0xf8)]?[_0x25e72c(0x3be,_0x16b95a._0x3747fd),String(_0x1e3f6e[_0x504340(_0x16b95a._0x1598bb,-0x1f)]),'/T','/F']:[_0x1ef77b[_0x25e72c(0x161,0x90)],String(_0x1e3f6e[_0x504340(_0x16b95a._0x1598bb,0xaf)])]);function _0x504340(_0xd11f2a,_0x3ea559){return _0x3a7f13(_0x3ea559,_0xd11f2a- -0x2e3);}function _0x25e72c(_0x3d6699,_0x550942){return _0x3a7f13(_0x550942,_0x3d6699- -_0x4f545e._0x568f59);}clearServiceState(_0x1e3f6e['pid']);}function isPidRunning(_0x34b3a6){const _0x366997={_0x1773cb:0x284};function _0x482e83(_0x2e9599,_0x5933d0){return _0x32d8ea(_0x2e9599,_0x5933d0- -_0x366997._0x1773cb);}try{return process[_0x482e83(0x8f4,0x6c3)](_0x34b3a6,0x0),!![];}catch{return![];}}function startDetachedWindowsService(_0x473c28){const _0x2c7aac={_0x276cb4:0x555,_0x5d9b59:0x4b8,_0x13ba42:0x58c},_0x3e34ca={_0x3f7b47:0x377},_0x202e91={'umXju':function(_0x1eef4f,_0x14f96b,_0x46fcf2){return _0x1eef4f(_0x14f96b,_0x46fcf2);}},_0x1cdb2c=_0x202e91[_0x548895(0x5f2,0x73a)](openSync,SERVICE_LOG_PATH,'a');function _0x548895(_0x3dd1b9,_0x56ff87){return _0x32d8ea(_0x56ff87,_0x3dd1b9- -_0x3e34ca._0x3f7b47);}function _0x15b3be(_0x54812d,_0x334d12){return _0x32d8ea(_0x334d12,_0x54812d- -0x481);}const _0x1e8e21=openSync(SERVICE_ERROR_LOG_PATH,'a');try{const [_0x27321c,..._0x5e9a44]=_0x473c28,_0x522748={};_0x522748[_0x548895(_0x2c7aac._0x276cb4,0x357)]=!![],_0x522748[_0x15b3be(_0x2c7aac._0x5d9b59,0x2ac)]=['ignore',_0x1cdb2c,_0x1e8e21],_0x522748[_0x15b3be(0x128,0x223)+_0x548895(_0x2c7aac._0x13ba42,0x5f3)]=!![];const _0x4e90d0=spawn(_0x27321c,_0x5e9a44,_0x522748);_0x4e90d0[_0x548895(0x5b8,0x51d)]();}finally{closeSync(_0x1cdb2c),closeSync(_0x1e8e21);}}function resolveScriptPath(_0x4b3eba){const _0x52c77a={_0x348821:0xa45,_0x4f6369:0x82a,_0x3ceb39:0x42c,_0xcc6aa3:0x61e,_0x1591a9:0x4d0},_0xcde5ae=_0x4b3eba?.[_0x2968d8(_0x52c77a._0x348821,_0x52c77a._0x4f6369)]()||process[_0x1183c4(_0x52c77a._0x3ceb39,0x2f1)][0x1]?.[_0x1183c4(_0x52c77a._0xcc6aa3,_0x52c77a._0x1591a9)]()||'';function _0x1183c4(_0x942f58,_0x297b6e){return _0x32d8ea(_0x297b6e,_0x942f58- -0x411);}function _0x2968d8(_0x418d19,_0x582f76){return _0x32d8ea(_0x418d19,_0x582f76- -0x205);}if(!_0xcde5ae)return'';try{return realpathSync(_0xcde5ae);}catch{return _0xcde5ae;}}function ensureLaunchScriptExecutable(_0x46cc59,_0x52029c){const _0x4f295e={_0x16619e:0x34a,_0x43cc8d:0x39d};if(_0x52029c===_0x544828(_0x4f295e._0x16619e,_0x4f295e._0x43cc8d)||!_0x103d0e(_0x46cc59))return;function _0x544828(_0x1fe3e3,_0x46f06e){return _0x3a7f13(_0x46f06e,_0x1fe3e3- -0xc6);}try{chmodSync(_0x46cc59,0x1ed);}catch{}}function writeServiceLauncher(_0x2b94cb){const _0x4e164c={_0x3760cd:0x2c6,_0x409a49:0x89,_0x349020:0x3f8,_0x4a01ca:0x1d,_0x118298:0xd4,_0x4c0362:0x28a,_0x2494b1:0xc5,_0x66f8a8:0x33f,_0x33783f:0x98,_0x371574:0x219,_0x507fe0:0xf,_0x301276:0x367,_0x19d9b9:0x4ec,_0x1f149e:0x406,_0x69c7eb:0x223,_0x192a12:0xba,_0xd69bd8:0x273,_0x27b2eb:0x521,_0x1f1255:0x8f,_0x4168f3:0xdb,_0x2e3414:0x2ae,_0x5266b1:0x215,_0x552f03:0x333,_0x3c2838:0x335,_0x543bc5:0xc3,_0x79879c:0x1c7,_0x53bc4e:0x45,_0x61145:0x209,_0xd4b940:0xef,_0x17c370:0x275,_0x23cd27:0x37,_0xe2f25c:0x1d2,_0x1cc05e:0x31c,_0x5cb890:0x3d2},_0x1567a2={_0x5d4690:0x4cc},_0xac0c37={'xiIsE':function(_0x5eb71d,_0x3545d7){return _0x5eb71d(_0x3545d7);},'GvmKQ':function(_0x318a5e,_0x716e4c){return _0x318a5e(_0x716e4c);},'tyxnR':_0x7ef03e(_0x4e164c._0x3760cd,_0x4e164c._0x409a49)+_0x7ef03e(0x48b,_0x4e164c._0x349020)+_0x7ef03e(0x487,0x307)+_0x7ef03e(_0x4e164c._0x4a01ca,0xf5)+_0x7ef03e(0x227,_0x4e164c._0x118298)+_0x7ef03e(_0x4e164c._0x4c0362,_0x4e164c._0x2494b1)};ensureServiceDirs();function _0x7ef03e(_0x5a9a4e,_0xac5595){return _0x32d8ea(_0x5a9a4e,_0xac5595- -0x5f8);}const _0x51f887=[_0x7ef03e(0x1b4,_0x4e164c._0x66f8a8)+'h',_0x338299(0x30d,0x307)+_0x7ef03e(0x16d,0x147)+escapeShellDoubleQuoted(_0x2b94cb[_0x7ef03e(0x237,_0x4e164c._0x33783f)])+'\x22',_0x7ef03e(_0x4e164c._0x371574,-_0x4e164c._0x507fe0)+_0x7ef03e(_0x4e164c._0x301276,0x172)+_0xac0c37[_0x7ef03e(_0x4e164c._0x19d9b9,_0x4e164c._0x1f149e)](escapeShellDoubleQuoted,_0x2b94cb[_0x338299(0x205,_0x4e164c._0x69c7eb)])+'\x22',_0x7ef03e(_0x4e164c._0x192a12,0x254)+_0x338299(0x39a,_0x4e164c._0xd69bd8)+_0xac0c37[_0x338299(_0x4e164c._0x27b2eb,0x4e3)](escapeShellDoubleQuoted,_0x2b94cb[_0x7ef03e(_0x4e164c._0x1f1255,_0x4e164c._0x4168f3)+'th'])+'\x22',_0x338299(0x34d,_0x4e164c._0x2e3414)+'\x22$NODE_P'+_0x7ef03e(_0x4e164c._0x5266b1,_0x4e164c._0x552f03)+_0x7ef03e(0x1a4,0x76),_0xac0c37['tyxnR'],'fi',_0x338299(_0x4e164c._0x3c2838,0x308)+'nd\x20-v\x20no'+_0x338299(0x4d5,0x438)+_0x338299(_0x4e164c._0x543bc5,0x247)+_0x7ef03e(_0x4e164c._0x79879c,-0x31),_0x338299(-_0x4e164c._0x53bc4e,0xe2)+_0x338299(0x2c4,0xdf)+'RIPT_PAT'+'H\x22\x20run\x20-'+'-service','fi',_0x7ef03e(0xdd,_0x4e164c._0x61145)+_0x338299(0x3be,0x180)+'me\x20not\x20f'+_0x7ef03e(0x6a,_0x4e164c._0xd4b940)+_0x7ef03e(_0x4e164c._0x17c370,_0x4e164c._0x23cd27)+_0x338299(0xe,_0x4e164c._0xe2f25c)+'service\x22'+_0x7ef03e(_0x4e164c._0x1cc05e,0x21e),_0x338299(_0x4e164c._0x5cb890,0x490),''];function _0x338299(_0x4cee4a,_0x4cd23c){return _0x32d8ea(_0x4cee4a,_0x4cd23c- -_0x1567a2._0x5d4690);}return _0x5e0dad(SERVICE_LAUNCHER_PATH,_0x51f887['join']('\x0a'),_0x7ef03e(0x1e3,0x360)),SERVICE_LAUNCHER_PATH;}function escapeShellDoubleQuoted(_0x4534d6){const _0x248770={_0x4fc718:0x34c,_0x154bdc:0x37b},_0x2c807d={_0x19c4cb:0x4d5};function _0x20648c(_0x243fe5,_0x2c77f5){return _0x32d8ea(_0x243fe5,_0x2c77f5- -0x6c3);}function _0x5dc1de(_0x4b796e,_0x5067){return _0x32d8ea(_0x4b796e,_0x5067- -_0x2c807d._0x19c4cb);}return _0x4534d6[_0x20648c(0x152,0x18d)+'ll']('\x5c','\x5c\x5c')[_0x5dc1de(_0x248770._0x4fc718,_0x248770._0x154bdc)+'ll']('\x22','\x5c\x22')['replaceA'+'ll']('$','\x5c$')[_0x20648c(0x77,0x18d)+'ll']('`','\x5c`');}function buildWindowsRunCommand(_0x2c3d90){const _0x50f6ae={_0x386a15:0x30e};function _0x3dc492(_0x56263d,_0x10042b){return _0x32d8ea(_0x10042b,_0x56263d- -0x32f);}function _0x18d847(_0x54c647,_0x40afa4){return _0x32d8ea(_0x40afa4,_0x54c647- -0x5dd);}return _0x2c3d90[_0x3dc492(0x444,_0x50f6ae._0x386a15)](escapeWindowsArg)[_0x18d847(0x408,0x394)]('\x20');}function ensureServiceDirs(){const _0x3d0aa0={_0x2ff423:0x1a4},_0x31d8c5={_0x5ab6a5:0x196},_0x302af5={};_0x302af5[_0xf13ad(0x104,_0x3d0aa0._0x2ff423)+'e']=!![],_0x2669a4(SERVICE_DIR,_0x302af5);function _0x1ea10a(_0x1dece3,_0x48eed7){return _0x3a7f13(_0x1dece3,_0x48eed7-_0x31d8c5._0x5ab6a5);}function _0xf13ad(_0x597a80,_0xcb45fb){return _0x3a7f13(_0x597a80,_0xcb45fb-0x10);}const _0x1ad26f={};_0x1ad26f[_0xf13ad(-0x97,0x1a4)+'e']=!![],_0x2669a4(LOG_DIR,_0x1ad26f);}function escapeXml(_0x39bb03){const _0x1ba379={_0x5d8b53:0x88a,_0x349092:0x765,_0x3dc899:0x6ad,_0x35523a:0x105,_0x42b9fd:0x1d7,_0x34ba7e:0x1d7,_0x276461:0x286,_0x114597:0x2f1};function _0x3a7911(_0xfb2dd3,_0x150095){return _0x3a7f13(_0x150095,_0xfb2dd3- -0x253);}const _0x125304={};_0x125304[_0x8914a8(0xa9c,_0x1ba379._0x5d8b53)]='&amp;';function _0x8914a8(_0x3c1f43,_0x5665aa){return _0x3a7f13(_0x3c1f43,_0x5665aa-0x283);}const _0x2463b0=_0x125304;return _0x39bb03['replaceA'+'ll']('&',_0x2463b0[_0x8914a8(0x961,_0x1ba379._0x5d8b53)])[_0x8914a8(_0x1ba379._0x349092,_0x1ba379._0x3dc899)+'ll']('<',_0x3a7911(_0x1ba379._0x35523a,0x78))[_0x3a7911(_0x1ba379._0x42b9fd,0x320)+'ll']('>','&gt;')[_0x3a7911(_0x1ba379._0x34ba7e,_0x1ba379._0x276461)+'ll']('\x22',_0x3a7911(0x365,_0x1ba379._0x114597))['replaceA'+'ll']('\x27',_0x8914a8(0x63a,0x722));}function escapeSystemdArg(_0x3e1278){function _0x13a663(_0x7f906a,_0x291f72){return _0x32d8ea(_0x291f72,_0x7f906a- -0x258);}return'\x22'+_0x3e1278['replaceA'+'ll']('\x5c','\x5c\x5c')[_0x13a663(0x5f8,0x764)+'ll']('\x22','\x5c\x22')+'\x22';}function escapeWindowsArg(_0x580fe4){const _0x31f9e5={_0x186d92:0x771,_0x10a119:0x7be},_0xffef41={_0x2b6779:0xdf};function _0x4391e9(_0x46977b,_0x313dea){return _0x32d8ea(_0x313dea,_0x46977b- -_0xffef41._0x2b6779);}return'\x22'+_0x580fe4[_0x4391e9(_0x31f9e5._0x186d92,_0x31f9e5._0x10a119)+'ll']('\x22','\x5c\x22')+'\x22';}function commandSucceeds(_0x133700,_0x9412c1){try{const _0x1ed3c3={};return _0x1ed3c3['stdio']='ignore',execFileSync(_0x133700,_0x9412c1,_0x1ed3c3),!![];}catch{return![];}}function execIgnoreFailure(_0x372739,_0x179080){const _0x510c67={_0x40f216:0x122},_0x2b4e97={'SLPAf':function(_0x32075e,_0x3d15e4,_0x542e7f,_0x27ef8c){return _0x32075e(_0x3d15e4,_0x542e7f,_0x27ef8c);}};function _0x15acd8(_0x4c4001,_0x5d6528){return _0x3a7f13(_0x5d6528,_0x4c4001- -0x101);}function _0x579463(_0x232430,_0x127fc6){return _0x3a7f13(_0x232430,_0x127fc6- -0xa0);}try{const _0x464700={};_0x464700['stdio']=_0x579463(0x5c8,0x41e),_0x2b4e97[_0x15acd8(0x7f,_0x510c67._0x40f216)](execFileSync,_0x372739,_0x179080,_0x464700);}catch{}}function rmIfExists(_0x1af702){const _0xd992d0={_0x21e709:0x51a};if(!_0x103d0e(_0x1af702))return;function _0x3f8dbc(_0x25d19f,_0x3a6b44){return _0x32d8ea(_0x3a6b44,_0x25d19f- -0x30f);}const _0x24d9ae={};_0x24d9ae[_0x3f8dbc(_0xd992d0._0x21e709,0x4cc)]=!![],_0x34a55c(_0x1af702,_0x24d9ae);}import{existsSync as _0x57e053,readFileSync as _0x1b8c77}from'fs';import{homedir as _0x1c41ad}from'os';import{join as _0x3ca535}from'path';var DEFAULT_GATEWAY_URL=_0x3a7f13(0x2a1,0x4a1)+_0x32d8ea(0x4ac,0x5f6)+_0x3a7f13(0x6ab,0x528);function resolveGatewayUrl(_0x3ccaeb){const _0x41e848={_0x47504a:0x3bc,_0x585841:0x22f,_0x44b81f:0x128,_0x4f0543:0x3f3,_0x3f3f09:0x4b7},_0x2df2a6={_0x222c4d:0x56c},_0xece52c=_0x3ccaeb?.[_0x4e58f7(0x351,0x355)]();function _0x3d3fdc(_0x23c4af,_0x5df981){return _0x32d8ea(_0x23c4af,_0x5df981- -_0x2df2a6._0x222c4d);}if(_0xece52c)return _0xece52c;const _0x10e1a0=readOpenClawInfo();if(typeof _0x10e1a0[_0x3d3fdc(_0x41e848._0x47504a,_0x41e848._0x585841)+_0x3d3fdc(_0x41e848._0x44b81f,0x2cf)]===_0x3d3fdc(_0x41e848._0x4f0543,_0x41e848._0x3f3f09))return'ws://127'+'.0.0.1:'+_0x10e1a0['gatewayP'+_0x4e58f7(0x221,0x161)];function _0x4e58f7(_0x27545c,_0x40aa5e){return _0x32d8ea(_0x27545c,_0x40aa5e- -0x6da);}return DEFAULT_GATEWAY_URL;}function readOpenClawInfo(){const _0x2c9fba={_0x567991:0x72c,_0x25cbd8:0x57,_0x258a4c:0x445,_0x46b840:0x34f,_0x363048:0x57d,_0x5e91dc:0x127,_0x10d6bb:0x62,_0x4d6952:0x494,_0x347290:0x2f7,_0x16c453:0x492,_0x20a0be:0x21c,_0x2a3cc3:0x1e7,_0x54c896:0x2a0,_0x1b00df:0x2ca,_0x55520f:0x49f,_0x4742bf:0x36e,_0x19c438:0x681,_0x5361d9:0x48e,_0xccb032:0x55a,_0x32a6b5:0x70f,_0x3fb023:0x598,_0x3b28a8:0x47c};function _0x5cb7eb(_0x42d711,_0x40b3e0){return _0x32d8ea(_0x42d711,_0x40b3e0- -0x5ef);}const _0x41399a={'dSdQw':'utf8','YfKwg':_0x51bfca(_0x2c9fba._0x567991,0x74a),'yQhgr':function(_0x69e2df,_0x59f191){return _0x69e2df===_0x59f191;},'yUOkp':function(_0x2db320,_0x573449){return _0x2db320(_0x573449);}},_0x1187c8=resolveOpenClawPaths();if(!_0x57e053(_0x1187c8[_0x5cb7eb(0x24c,_0x2c9fba._0x25cbd8)+'th']))return{'configFound':![],'gatewayPort':null,'authMode':null,'token':readGatewayTokenEnv(),'password':readGatewayPasswordEnv()};function _0x51bfca(_0x3c2d04,_0x366eaa){return _0x32d8ea(_0x366eaa,_0x3c2d04- -0x2f7);}try{const _0x44009d=JSON[_0x51bfca(_0x2c9fba._0x258a4c,0x570)](_0x1b8c77(_0x1187c8[_0x51bfca(_0x2c9fba._0x46b840,_0x2c9fba._0x363048)+'th'],_0x41399a[_0x5cb7eb(_0x2c9fba._0x5e91dc,0x153)])),_0x48c089=_0x44009d[_0x5cb7eb(-_0x2c9fba._0x10d6bb,0x196)]?.['port'],_0x156c6a=typeof _0x48c089===_0x41399a[_0x51bfca(_0x2c9fba._0x4d6952,_0x2c9fba._0x347290)]&&Number[_0x51bfca(_0x2c9fba._0x16c453,0x664)+'r'](_0x48c089)?_0x48c089:null,_0x1f6ec3=_0x41399a[_0x5cb7eb(0x373,_0x2c9fba._0x20a0be)](_0x44009d['gateway']?.['auth']?.[_0x5cb7eb(0x1e7,_0x2c9fba._0x2a3cc3)],_0x5cb7eb(0x473,_0x2c9fba._0x54c896))||_0x44009d[_0x51bfca(0x48e,_0x2c9fba._0x1b00df)]?.['auth']?.['mode']===_0x51bfca(_0x2c9fba._0x55520f,0x56f)?_0x44009d['gateway']['auth'][_0x5cb7eb(_0x2c9fba._0x4742bf,_0x2c9fba._0x2a3cc3)]:null,_0x19e23e=_0x41399a[_0x51bfca(0x6a8,_0x2c9fba._0x19c438)](readConfiguredSecret,_0x44009d[_0x51bfca(_0x2c9fba._0x5361d9,_0x2c9fba._0xccb032)]?.[_0x51bfca(_0x2c9fba._0x32a6b5,0x6f0)]?.[_0x51bfca(_0x2c9fba._0x3fb023,0x783)])??readGatewayTokenEnv(),_0x4a3767=readConfiguredSecret(_0x44009d[_0x51bfca(0x48e,0x3b5)]?.[_0x51bfca(0x70f,0x87d)]?.[_0x5cb7eb(0x3cb,0x1a7)])??readGatewayPasswordEnv(),_0xf1256d={};return _0xf1256d['configFo'+_0x5cb7eb(_0x2c9fba._0x3b28a8,0x2b0)]=!![],_0xf1256d[_0x51bfca(0x4a4,0x3ec)+_0x51bfca(0x544,0x57c)]=_0x156c6a,_0xf1256d[_0x5cb7eb(0x45d,0x2bc)]=_0x1f6ec3,_0xf1256d[_0x5cb7eb(0x446,0x2a0)]=_0x19e23e,_0xf1256d['password']=_0x4a3767,_0xf1256d;}catch{return{'configFound':!![],'gatewayPort':null,'authMode':null,'token':readGatewayTokenEnv(),'password':readGatewayPasswordEnv()};}}function resolveGatewayAuth(){const _0x3812e8={_0x4632d0:0x7b8,_0xe24fce:0x1c8,_0x5a7f72:0x882,_0x3c620b:0xa11,_0x545d22:0x31d,_0x2be9d3:0x17e,_0x1ae62f:0x9c1,_0x1fe46d:0x631,_0x759a75:0x5e3,_0x3ee91a:0x120,_0x20749d:0xbc,_0x37c3ba:0x12,_0x53fdff:0x58,_0x71281f:0x8c9,_0x4341e0:0x641,_0x43163d:0x7f5,_0x17964a:0x85f,_0x4f067b:0x855,_0x3103e7:0x289,_0x4fb7ce:0xd1,_0x4979f7:0x6c,_0x4bfb05:0x26e,_0x499a48:0x271,_0x18061f:0xb3,_0xf9d2b1:0x3f9,_0x525c15:0x843,_0x4ec3fa:0x882,_0x44e8c9:0x938,_0x1d1977:0x7a,_0x10f604:0x71e,_0x293174:0x2c7,_0x59cef5:0xb,_0x27efa7:0x2bd,_0x93714d:0x8f0,_0x2ad971:0x346},_0x2e0f81={_0xdf604a:0xd},_0x148d2f={_0x2371cd:0x711},_0x2961f8={};_0x2961f8[_0x111784(0x651,_0x3812e8._0x4632d0)]=function(_0x3cedef,_0x29d357){return _0x3cedef===_0x29d357;},_0x2961f8['xjMjo']=_0x179e65(-_0x3812e8._0xe24fce,0x85),_0x2961f8[_0x111784(0x9a1,0x80b)]=_0x111784(_0x3812e8._0x5a7f72,0x8d9);const _0x1af41c=_0x2961f8;function _0x179e65(_0x239a7c,_0x42aad4){return _0x32d8ea(_0x239a7c,_0x42aad4- -_0x148d2f._0x2371cd);}const _0x52fa94=readOpenClawInfo(),_0x369912=_0x52fa94[_0x179e65(0x146,0x17e)],_0x327235=_0x52fa94[_0x179e65(-0x1b4,0x85)];if(_0x369912&&_0x327235&&_0x52fa94[_0x111784(0x89e,_0x3812e8._0x3c620b)]==null){const _0xdf167d={};return _0xdf167d[_0x179e65(_0x3812e8._0x545d22,_0x3812e8._0x2be9d3)]=_0x369912,_0xdf167d['password']=_0x327235,_0xdf167d[_0x111784(_0x3812e8._0x1ae62f,0xb56)]=_0x111784(0x882,0xa83),_0xdf167d[_0x111784(_0x3812e8._0x1fe46d,_0x3812e8._0x759a75)]='OpenClaw'+_0x179e65(0xab,-_0x3812e8._0x3ee91a)+'h\x20gatewa'+_0x179e65(-0xac,-0x57)+'and\x20pass'+_0x179e65(_0x3812e8._0x20749d,-_0x3812e8._0x37c3ba)+_0x179e65(0x1e5,-_0x3812e8._0x53fdff)+_0x179e65(0x179,-0x95)+_0x111784(_0x3812e8._0x71281f,0xa67)+_0x179e65(-0x1ae,-0x48)+_0x111784(_0x3812e8._0x4341e0,_0x3812e8._0x43163d)+_0x111784(_0x3812e8._0x17964a,_0x3812e8._0x4f067b)+_0x179e65(_0x3812e8._0x3103e7,0x19f)+_0x179e65(-0x2d1,-_0x3812e8._0x4fb7ce)+_0x111784(0x654,0x6f3)+_0x179e65(_0x3812e8._0x4979f7,_0x3812e8._0x4bfb05)+_0x179e65(0x223,0x53)+'g.',_0xdf167d;}if(_0x1af41c[_0x179e65(-_0x3812e8._0x499a48,-_0x3812e8._0x18061f)](_0x52fa94['authMode'],_0x1af41c[_0x111784(0x603,_0x3812e8._0xf9d2b1)])){const _0x15fe4e={};return _0x15fe4e[_0x179e65(-0xd,_0x3812e8._0x2be9d3)]=null,_0x15fe4e[_0x111784(0x789,_0x3812e8._0x525c15)]=null,_0x15fe4e[_0x111784(_0x3812e8._0x1ae62f,0x976)]=null,_0x327235?{'token':null,'password':_0x327235,'label':'password'}:_0x15fe4e;}if(_0x52fa94['authMode']===_0x1af41c[_0x111784(0x9a1,0x7df)]){const _0x50e5e8={};return _0x50e5e8[_0x111784(_0x3812e8._0x4ec3fa,0x6ab)]=null,_0x50e5e8[_0x111784(0x789,_0x3812e8._0x44e8c9)]=null,_0x50e5e8[_0x179e65(_0x3812e8._0x1d1977,0x2bd)]=null,_0x369912?{'token':_0x369912,'password':null,'label':'token'}:_0x50e5e8;}function _0x111784(_0x4a1fcc,_0x211b8a){return _0x32d8ea(_0x211b8a,_0x4a1fcc- -_0x2e0f81._0xdf604a);}if(_0x369912){const _0x17e841={};return _0x17e841[_0x111784(0x882,0xa7d)]=_0x369912,_0x17e841[_0x111784(0x789,_0x3812e8._0x10f604)]=null,_0x17e841[_0x179e65(_0x3812e8._0x293174,0x2bd)]=_0x111784(0x882,0x723),_0x17e841;}if(_0x327235){const _0x14351f={};return _0x14351f['token']=null,_0x14351f[_0x179e65(-_0x3812e8._0x59cef5,0x85)]=_0x327235,_0x14351f[_0x179e65(0xfe,_0x3812e8._0x27efa7)]=_0x1af41c['xjMjo'],_0x14351f;}const _0x929339={};return _0x929339['token']=null,_0x929339[_0x111784(0x789,_0x3812e8._0x93714d)]=null,_0x929339[_0x179e65(_0x3812e8._0x2ad971,0x2bd)]=null,_0x929339;}function getOpenClawConfigDir(){const _0x22d121={_0x27e940:0x253};function _0x54d1b7(_0x32e574,_0x3357c4){return _0x32d8ea(_0x32e574,_0x3357c4- -0x7b3);}return resolveOpenClawPaths()[_0x54d1b7(_0x22d121._0x27e940,0x45)+'r'];}function getOpenClawMediaDir(){const _0x553630={_0x341154:0x56a};function _0x3f8e15(_0x36fae1,_0x3636df){return _0x32d8ea(_0x36fae1,_0x3636df- -_0x553630._0x341154);}const _0x5b619c={'HsgUl':function(_0x399781){return _0x399781();}};return _0x5b619c[_0x3f8e15(0x12c,0xe8)](resolveOpenClawPaths)['mediaDir'];}function readConfiguredSecret(_0x4675a2){const _0x5bb179={_0x43020e:0x421,_0x1e2d4b:0x268,_0x5a65b5:0x475,_0x795405:0x22e},_0x37e641={_0x4e5d5a:0x425},_0x1ae9a2={};_0x1ae9a2[_0x49208e(0x1b8,0x268)]=function(_0x54abc9,_0x5dece0){return _0x54abc9===_0x5dece0;};const _0x231dc6=_0x1ae9a2;function _0x2e13fb(_0x18b3ea,_0x21fec0){return _0x32d8ea(_0x18b3ea,_0x21fec0- -0x3de);}function _0x49208e(_0x4104d5,_0x5bbc30){return _0x32d8ea(_0x4104d5,_0x5bbc30- -_0x37e641._0x4e5d5a);}return _0x231dc6[_0x49208e(_0x5bb179._0x43020e,_0x5bb179._0x1e2d4b)](typeof _0x4675a2,_0x2e13fb(_0x5bb179._0x5a65b5,_0x5bb179._0x795405))&&_0x4675a2['trim']()?_0x4675a2['trim']():null;}function readGatewayTokenEnv(){const _0x81eec5={_0x228e6c:0x58e,_0x5e1377:0x806,_0x45c7a6:0x533,_0x46fe27:0x6ab,_0x2df0fa:0x68a},_0x395db2={_0x56ad04:0xd9},_0x4cc6df={};function _0x4a91d0(_0x4c4b59,_0x5326c2){return _0x3a7f13(_0x5326c2,_0x4c4b59- -_0x395db2._0x56ad04);}_0x4cc6df['OUkbk']='OPENCLAW'+_0x1d5aeb(_0x81eec5._0x228e6c,0x3b9)+_0x1d5aeb(0x5e6,_0x81eec5._0x5e1377);function _0x1d5aeb(_0x561aa2,_0x53117c){return _0x3a7f13(_0x53117c,_0x561aa2-0x20d);}const _0x3cdec0=_0x4cc6df;return readEnvValue(_0x3cdec0[_0x1d5aeb(_0x81eec5._0x45c7a6,0x533)],_0x4a91d0(0x49d,_0x81eec5._0x46fe27)+_0x1d5aeb(_0x81eec5._0x228e6c,_0x81eec5._0x2df0fa)+'_TOKEN');}function readGatewayPasswordEnv(){const _0x510e24={_0x5d2932:0x60,_0x3df72f:0x13e,_0x1b612e:0x7d,_0x597f6c:0x18b,_0x4d3927:0x78,_0x1f759e:0x93,_0x1d1b3e:0x272},_0x2c70d4={_0x3b643f:0x72a};function _0x3899b1(_0x15b4e7,_0x37718a){return _0x32d8ea(_0x37718a,_0x15b4e7- -0x7af);}const _0x4c2240={};function _0x2acefc(_0x1610bb,_0x8052d7){return _0x32d8ea(_0x8052d7,_0x1610bb- -_0x2c70d4._0x3b643f);}_0x4c2240[_0x2acefc(-0x93,-_0x510e24._0x5d2932)]=_0x3899b1(-_0x510e24._0x3df72f,-0x263)+_0x2acefc(_0x510e24._0x1b612e,_0x510e24._0x597f6c)+_0x3899b1(-0xb2,-_0x510e24._0x4d3927)+'D';const _0x4b16b5=_0x4c2240;return readEnvValue(_0x4b16b5[_0x2acefc(-_0x510e24._0x1f759e,-0x256)],_0x2acefc(_0x510e24._0x1d1b3e,0x3ec)+'_GATEWAY'+'_PASSWOR'+'D');}function readEnvValue(_0x56121d,_0x97d755){const _0x4a2baf={_0x236f37:0x4e2,_0x43107d:0x309},_0x3a1a1f={_0x3b54b8:0x2cd},_0x3bf12a={_0x51a96e:0x127};function _0x5b010c(_0x2fdfb6,_0x593cff){return _0x3a7f13(_0x593cff,_0x2fdfb6- -_0x3bf12a._0x51a96e);}function _0x9e06b9(_0x428829,_0x2bb827){return _0x3a7f13(_0x428829,_0x2bb827- -_0x3a1a1f._0x3b54b8);}const _0x4b5e27=process.env[_0x56121d]?.[_0x5b010c(_0x4a2baf._0x236f37,_0x4a2baf._0x43107d)]();if(_0x4b5e27)return _0x4b5e27;const _0x4d5cd6=process.env[_0x97d755]?.[_0x5b010c(0x4e2,0x448)]();return _0x4d5cd6||null;}function resolveOpenClawPaths(){const _0x62d021={_0x1859ee:0x121};function _0x43f219(_0x20897f,_0x3f448b){return _0x32d8ea(_0x20897f,_0x3f448b- -0x39);}function _0x558cdc(_0xd3a20f,_0x5ae68a){return _0x32d8ea(_0x5ae68a,_0xd3a20f- -_0x62d021._0x1859ee);}const _0x3e155e=buildOpenClawCandidates();return _0x3e155e[_0x558cdc(0x752,0x8d0)](_0x345c03=>_0x57e053(_0x345c03[_0x558cdc(0x525,0x410)+'th']))??_0x3e155e[0x0];}function buildOpenClawCandidates(){const _0x49768d={_0x5c789d:0x857,_0x57aaec:0x918},_0x2b3db1={_0x550da0:0x474,_0x1df9c8:0xde,_0x1fadab:0x3},_0x1f3b05={_0x11ccdc:0x32e},_0x41614e={_0x31d6a1:0xc7},_0x5492ea={_0x5f2918:0x11b},_0x228223={'okGis':function(_0x2fc40b,_0xfd4f5f,_0x2e7a75){return _0x2fc40b(_0xfd4f5f,_0x2e7a75);}},_0xb68b77=new Set(),_0xe93fbe=[_0x1c41ad(),'/root']['map'](_0x31eccf=>_0x31eccf['trim']())['filter'](Boolean)[_0x35a930(_0x49768d._0x5c789d,_0x49768d._0x57aaec)](_0x5aadb2=>{if(_0xb68b77['has'](_0x5aadb2))return![];function _0x4cf0d8(_0x3f3bce,_0x3cee69){return _0x35a930(_0x3cee69- -0x4d7,_0x3f3bce);}return _0xb68b77[_0x4cf0d8(_0x5492ea._0x5f2918,0x189)](_0x5aadb2),!![];});function _0x4e339a(_0x24f537,_0x42a4f6){return _0x3a7f13(_0x24f537,_0x42a4f6-_0x41614e._0x31d6a1);}function _0x35a930(_0xc0e85e,_0x5159db){return _0x3a7f13(_0x5159db,_0xc0e85e-0x40f);}return _0xe93fbe[_0x4e339a(0x392,0x414)](_0x2be1a3=>{function _0x3d17b1(_0x9faeb4,_0x4fcb36){return _0x35a930(_0x9faeb4- -_0x1f3b05._0x11ccdc,_0x4fcb36);}function _0x30d8dc(_0x1bba48,_0x4907dd){return _0x35a930(_0x4907dd- -0x5b0,_0x1bba48);}const _0x2d8489=_0x228223[_0x30d8dc(0x5ee,_0x2b3db1._0x550da0)](_0x3ca535,_0x2be1a3,_0x3d17b1(0x523,0x43a)+'w');return{'configDir':_0x2d8489,'configPath':_0x3ca535(_0x2d8489,_0x30d8dc(0x3fd,0x215)+_0x30d8dc(-_0x2b3db1._0x1df9c8,_0x2b3db1._0x1fadab)),'mediaDir':_0x228223[_0x3d17b1(0x6f6,0x801)](_0x3ca535,_0x2d8489,'media')};});}var CONTROL_PREFIX='__clawke'+_0x32d8ea(0x3fb,0x603)+'control_'+'_:';function parseControl(_0xc8a0b5){const _0x2e2b1c={_0xd847ce:0x1be,_0x178d1e:0x18d,_0x418008:0x159,_0x396462:0x3a2,_0x1be8ce:0x8d6,_0x2eefaa:0x396,_0x2152a3:0x597,_0x31b1b2:0x764,_0xde712d:0x3a8,_0x4decc5:0x254,_0x46e7ac:0x26c},_0x5d5b6f={_0x3355ee:0x68d};function _0x330182(_0x148070,_0x3f9b13){return _0x32d8ea(_0x3f9b13,_0x148070- -0x159);}function _0x4c6792(_0x4f47d8,_0x1d1e08){return _0x32d8ea(_0x1d1e08,_0x4f47d8- -_0x5d5b6f._0x3355ee);}if(!_0xc8a0b5[_0x4c6792(-0x44,_0x2e2b1c._0xd847ce)+'th'](CONTROL_PREFIX))return null;try{const _0x1a92bc=JSON[_0x4c6792(0xaf,-_0x2e2b1c._0x178d1e)](_0xc8a0b5['slice'](CONTROL_PREFIX[_0x4c6792(0x14a,_0x2e2b1c._0x418008)]));if(typeof _0x1a92bc['event']!=='string'||!_0x1a92bc[_0x4c6792(0x17,0x1df)][_0x4c6792(_0x2e2b1c._0x396462,0x4fa)]())return null;return{'event':_0x1a92bc['event'][_0x330182(_0x2e2b1c._0x1be8ce,0x75b)](),'count':typeof _0x1a92bc[_0x330182(0x8dc,0x820)]===_0x4c6792(_0x2e2b1c._0x2eefaa,_0x2e2b1c._0x2152a3)&&Number[_0x330182(_0x2e2b1c._0x31b1b2,0x731)](_0x1a92bc[_0x4c6792(_0x2e2b1c._0xde712d,_0x2e2b1c._0x4decc5)])?_0x1a92bc[_0x4c6792(0x3a8,_0x2e2b1c._0x46e7ac)]:void 0x0};}catch{return null;}}function parseConnectStartIdentity(_0x37d986){const _0x50c0aa={_0x4bf469:0x133,_0x2879cc:0x8f,_0x2d7c26:0x15a,_0x43f74b:0x4c,_0x3785dd:0xb2,_0x15a059:0xe4,_0x470cac:0x4,_0x1122cb:0x3,_0x223d4d:0x25f,_0x48bf8e:0x1c5,_0x382109:0x3,_0x99c11c:0x234,_0x24d916:0x70,_0x10313c:0xc4,_0x58bb0c:0x3aa,_0x18d2df:0x195,_0x7618fb:0xdc,_0xac2fc:0x199,_0x1e7f14:0x9,_0x5d24c7:0xba,_0x8c8c89:0x17,_0x388a4f:0x27c},_0x1ee63f={_0x28d567:0x738},_0x34d18c={};_0x34d18c[_0x108186(0x96,-_0x50c0aa._0x4bf469)]=_0x2883a3(_0x50c0aa._0x2879cc,_0x50c0aa._0x2d7c26),_0x34d18c['mBgAl']=_0x108186(-_0x50c0aa._0x43f74b,-_0x50c0aa._0x3785dd);function _0x2883a3(_0x5a0965,_0x14de3b){return _0x32d8ea(_0x5a0965,_0x14de3b- -_0x1ee63f._0x28d567);}function _0x108186(_0x149fff,_0x545853){return _0x32d8ea(_0x545853,_0x149fff- -0x658);}const _0x1db803=_0x34d18c;try{const _0x3c3f2a=JSON[_0x2883a3(-_0x50c0aa._0x15a059,_0x50c0aa._0x470cac)](_0x37d986);if(_0x3c3f2a['type']!==_0x1db803['Jkbcv'])return null;if(_0x3c3f2a[_0x2883a3(-0xfc,_0x50c0aa._0x1122cb)]!==_0x108186(_0x50c0aa._0x223d4d,_0x50c0aa._0x48bf8e)&&_0x3c3f2a[_0x2883a3(-0x10e,_0x50c0aa._0x382109)]!==_0x108186(_0x50c0aa._0x99c11c,_0x50c0aa._0x24d916)+'start')return null;const _0xef000f=_0x3c3f2a['params']??{},_0x1b2448=typeof _0x3c3f2a['id']===_0x1db803[_0x2883a3(-_0x50c0aa._0x10313c,0x120)]&&_0x3c3f2a['id'][_0x2883a3(0x424,0x2f7)]()?_0x3c3f2a['id'][_0x2883a3(0x3a6,0x2f7)]():_0x2883a3(-_0x50c0aa._0x58bb0c,-0x167)+Math[_0x108186(0x259,0x2a3)]()[_0x2883a3(_0x50c0aa._0x18d2df,_0x50c0aa._0x7618fb)](0x24)[_0x2883a3(_0x50c0aa._0xac2fc,_0x50c0aa._0x1e7f14)](0x2,0xc),_0x1ba450=firstString(_0xef000f[_0x2883a3(_0x50c0aa._0x5d24c7,-_0x50c0aa._0x3785dd)+'me'],_0xef000f['clientNa'+'me'],_0xef000f[_0x108186(-_0x50c0aa._0x8c8c89,-0x1a8)],'Mobile\x20C'+_0x108186(_0x50c0aa._0x388a4f,0x7b)),_0x126a44={};return _0x126a44['id']=_0x1b2448,_0x126a44['label']=_0x1ba450,_0x126a44;}catch{return null;}}function isConnectHandshakeRequest(_0x37b3eb){const _0x21ea28={_0x212dee:0x841,_0x14927e:0xa4c,_0x315b68:0x59f,_0x1848da:0x7a5,_0x56aac3:0x306};function _0x3f82bc(_0x502a1e,_0x312e7d){return _0x3a7f13(_0x312e7d,_0x502a1e-0x3d5);}function _0x2e7080(_0x419604,_0xdbbd0a){return _0x3a7f13(_0x419604,_0xdbbd0a- -0x264);}try{const _0x57dc84=JSON[_0x3f82bc(0x6eb,0x5a8)](_0x37b3eb);return _0x57dc84['type']===_0x3f82bc(_0x21ea28._0x212dee,_0x21ea28._0x14927e)&&(_0x57dc84[_0x3f82bc(0x6ea,_0x21ea28._0x315b68)]===_0x3f82bc(0x866,_0x21ea28._0x1848da)||_0x57dc84[_0x3f82bc(0x6ea,0x73c)]===_0x2e7080(-0x36,0x202)+_0x2e7080(_0x21ea28._0x56aac3,0x364));}catch{return![];}}function parseConnectHandshakeMeta(_0x15b8b0){const _0x56f22d={_0x8147f6:0x280,_0x4b6316:0x522,_0x53943b:0x3f6,_0x48fffc:0x4bf,_0xc609d4:0x656,_0x2577d3:0x192,_0x570038:0x21,_0x4a948f:0x17f,_0x2d12b1:0x5e5,_0x10c723:0x62b,_0x2af0dc:0x1c6,_0x30d2fe:0x12,_0x5a80f8:0x51f,_0x42ab7a:0x43b,_0x59ff11:0x31,_0x5d2f31:0x6cc,_0x5bbd06:0x3fa,_0x20aa4e:0x66e,_0x3e3cc4:0x343,_0x2a2087:0x499,_0x3547fc:0x5dc,_0x420afd:0x43f,_0x5e5cab:0xa8,_0x493e34:0x100,_0x27accc:0x276,_0x1659ad:0x57,_0x30be09:0x2a5,_0x2574a2:0x251};function _0x580e23(_0x1ec97a,_0x25adc4){return _0x32d8ea(_0x1ec97a,_0x25adc4- -0x74d);}const _0x3d6429={};_0x3d6429[_0x580e23(0x490,_0x56f22d._0x8147f6)]=_0x143817(_0x56f22d._0x4b6316,0x4fa),_0x3d6429[_0x143817(0x452,_0x56f22d._0x53943b)]=_0x143817(0x2d2,0x4f4)+_0x143817(_0x56f22d._0x48fffc,_0x56f22d._0xc609d4),_0x3d6429[_0x580e23(-_0x56f22d._0x2577d3,_0x56f22d._0x570038)]=_0x580e23(-_0x56f22d._0x4a948f,-0x141),_0x3d6429[_0x143817(_0x56f22d._0x2d12b1,0x45d)]=function(_0xe3c444,_0x2c10f4){return _0xe3c444===_0x2c10f4;},_0x3d6429[_0x143817(0x4a0,_0x56f22d._0x10c723)]=function(_0x22442a,_0x58fb51){return _0x22442a===_0x58fb51;};const _0x3363f6=_0x3d6429;function _0x143817(_0x4a920b,_0x5f22fd){return _0x32d8ea(_0x4a920b,_0x5f22fd- -0x398);}try{const _0x570309=JSON['parse'](_0x15b8b0);if(_0x570309[_0x580e23(0x229,0x132)]!==_0x3363f6['KsZVQ'])return null;if(_0x570309[_0x580e23(_0x56f22d._0x2af0dc,-_0x56f22d._0x30d2fe)]!==_0x143817(0x413,_0x56f22d._0x5a80f8)&&_0x570309[_0x143817(0x546,0x3a3)]!==_0x3363f6['jZMmI'])return null;const _0x3f83ac=_0x570309[_0x143817(_0x56f22d._0x42ab7a,0x397)]?.[_0x580e23(-0x95,-_0x56f22d._0x59ff11)]?.[_0x143817(_0x56f22d._0x5d2f31,0x68e)],_0x4bf3e8=_0x570309[_0x143817(_0x56f22d._0x5bbd06,0x397)]?.[_0x143817(0x83b,_0x56f22d._0x20aa4e)];return{'id':typeof _0x570309['id']===_0x580e23(-_0x56f22d._0x3e3cc4,-0x141)&&_0x570309['id']['trim']()?_0x570309['id'][_0x580e23(0x4fc,0x2e2)]():null,'method':_0x570309[_0x143817(_0x56f22d._0x2a2087,0x3a3)],'noncePresent':typeof _0x3f83ac===_0x3363f6[_0x143817(_0x56f22d._0x3547fc,0x3d6)]&&_0x3f83ac[_0x143817(0x5ba,_0x56f22d._0x420afd)]>0x0,'nonceLength':_0x3363f6[_0x580e23(-0x30,_0x56f22d._0x5e5cab)](typeof _0x3f83ac,_0x3363f6[_0x580e23(-_0x56f22d._0x493e34,0x21)])?_0x3f83ac['length']:null,'authFields':_0x4bf3e8&&_0x3363f6[_0x580e23(0x159,_0x56f22d._0x27accc)](typeof _0x4bf3e8,_0x580e23(-0x185,-_0x56f22d._0x1659ad))?Object[_0x143817(0x759,0x630)](_0x4bf3e8)[_0x580e23(_0x56f22d._0x30be09,_0x56f22d._0x2574a2)]():[]};}catch{return null;}}function parsePairingRequestFromError(_0x521a90,_0x82134c=Date[_0x32d8ea(0x9f2,0xa16)]()){const _0x6bd566={_0x1c624d:0xb43,_0x441200:0x5d9,_0x194d36:0x3b0,_0x5e9ef4:0x1e8,_0x3d527f:0x6a1,_0x48f87b:0x17b,_0xaa271c:0x332,_0x5461fb:0x2e4,_0x577c56:0x4ee,_0xc5ae89:0xa3,_0x4279b7:0x1e6,_0x456409:0x85f,_0x3073f6:0x71,_0x44e0a5:0x163,_0x363ef2:0x727,_0x28f938:0x733,_0x3f8f1d:0x91a,_0x107ef4:0xa3,_0x3a7ead:0xbf,_0x4bd1c2:0x1bd,_0x14760f:0x6cf,_0x512782:0x429,_0xcdec40:0x3cf,_0xe4d1c6:0x2eb,_0x2536a3:0x9c2,_0x3d45c0:0x104,_0x160c57:0x776,_0x5c4cbd:0x811,_0x562898:0x381,_0x41ee36:0xa6,_0x21466f:0x625,_0xe6b46a:0x947,_0x5821af:0xae2,_0x5f02f6:0x9d9,_0x2279aa:0x20d,_0xa4584b:0x217},_0x2e7f25={_0x5a3981:0x175},_0x5109ab={_0xa3279f:0x3e0};function _0xac88f9(_0x16d208,_0x507d2c){return _0x3a7f13(_0x507d2c,_0x16d208-_0x5109ab._0xa3279f);}const _0x31619a={'YuzbE':_0xac88f9(0x5c7,0x4a7),'fxmeZ':function(_0x5c3b98,_0x23f3e2){return _0x5c3b98===_0x23f3e2;},'SQzbU':_0xac88f9(0x97e,_0x6bd566._0x1c624d)+'ED','itDKe':_0xac88f9(_0x6bd566._0x441200,_0x6bd566._0x194d36)+_0x3b3c54(_0x6bd566._0x5e9ef4,0x23b),'xkPeO':_0xac88f9(0x8d8,_0x6bd566._0x3d527f),'OKzIu':function(_0x473b6c,_0x2753b4){return _0x473b6c(_0x2753b4);},'pQLfx':_0x3b3c54(_0x6bd566._0x48f87b,_0x6bd566._0xaa271c)};function _0x3b3c54(_0x2ac9f6,_0x58a899){return _0x3a7f13(_0x58a899,_0x2ac9f6- -_0x2e7f25._0x5a3981);}try{const _0x3876c2=JSON[_0xac88f9(0x6f6,0x61c)](_0x521a90);if(_0x3876c2[_0x3b3c54(_0x6bd566._0x5461fb,_0x6bd566._0x577c56)]!==_0x31619a[_0x3b3c54(0x3ad,0x296)]||_0x3876c2['ok']!==![]||!_0x3876c2['error'])return null;const _0x1410e3=typeof _0x3876c2[_0x3b3c54(_0x6bd566._0xc5ae89,_0x6bd566._0x4279b7)][_0xac88f9(0x727,_0x6bd566._0x456409)]===_0x3b3c54(_0x6bd566._0x3073f6,0x79)?_0x3876c2[_0x3b3c54(_0x6bd566._0xc5ae89,-_0x6bd566._0x44e0a5)][_0xac88f9(_0x6bd566._0x363ef2,0x91b)]:'',_0x1f4c99=_0x31619a[_0xac88f9(_0x6bd566._0x28f938,_0x6bd566._0x3f8f1d)](typeof _0x3876c2[_0x3b3c54(_0x6bd566._0x107ef4,-_0x6bd566._0x3a7ead)][_0x3b3c54(0x246,0x46e)],_0x3b3c54(_0x6bd566._0x3073f6,_0x6bd566._0x4bd1c2))?_0x3876c2['error'][_0xac88f9(0x79b,_0x6bd566._0x14760f)]:'';if(!_0x1410e3['includes'](_0x3b3c54(_0x6bd566._0x512782,_0x6bd566._0xcdec40)+'ED')&&!_0x1410e3[_0x3b3c54(0x2cb,_0x6bd566._0xe4d1c6)]('PAIRING_'+_0xac88f9(0x802,_0x6bd566._0x2536a3))&&!_0x1f4c99[_0x3b3c54(0x2cb,_0x6bd566._0x3d45c0)](_0x31619a['SQzbU'])&&!_0x1f4c99[_0xac88f9(0x820,0x769)](_0x31619a[_0x3b3c54(0x173,0x74)]))return null;const _0x1ca0d6=_0x3876c2['error'][_0xac88f9(_0x6bd566._0x160c57,0x634)]??_0x3876c2[_0x3b3c54(0xa3,-0xc9)]['data']??{},_0x1591f0=firstString(_0x1ca0d6[_0xac88f9(0x8dc,_0x6bd566._0x5c4cbd)+'d'],extractRequestIdFromMessage(_0x1f4c99),_0x31619a[_0x3b3c54(0x49d,_0x6bd566._0x562898)]);return{'requestId':_0x1591f0,'deviceId':firstString(_0x1ca0d6[_0x3b3c54(_0x6bd566._0x41ee36,-0x2)],''),'displayName':_0x31619a[_0xac88f9(_0x6bd566._0x21466f,0x7d9)](firstNullableString,_0x1ca0d6['displayN'+_0xac88f9(_0x6bd566._0xe6b46a,_0x6bd566._0x5821af)]),'platform':firstNullableString(_0x1ca0d6[_0xac88f9(0x72e,0x841)]),'deviceFamily':firstNullableString(_0x1ca0d6['deviceFa'+_0x3b3c54(0x6f,0xc7)]),'role':_0x31619a['OKzIu'](firstNullableString,_0x1ca0d6[_0xac88f9(_0x6bd566._0x5f02f6,0xbe3)]),'remoteIp':firstNullableString(_0x1ca0d6[_0x3b3c54(_0x6bd566._0x2279aa,_0x6bd566._0xa4584b)]),'receivedAtMs':_0x82134c,'status':_0x31619a[_0x3b3c54(0x30a,0x2a0)]};}catch{return null;}}function parsePairResolvedEvent(_0x1615b6){const _0x4a011a={_0x2a5559:0x62f,_0x55469e:0x89a,_0x470b2e:0x646,_0x2c4b32:0x566,_0x26aa1c:0x61f,_0x498fdb:0x7d7,_0xfa8caf:0x5b4,_0x3f5792:0x667,_0x66b8ba:0x6cd,_0x1932d5:0x747,_0x39be9f:0x4d6,_0x2098ae:0x7ee,_0x387a85:0x719,_0x3bdb8b:0x832,_0x2044cf:0x605,_0x3dee17:0x557,_0x12649b:0x516,_0x36a2c0:0x41a,_0x1a60d3:0x738,_0x240071:0x4f4,_0x4d4e15:0x9d5,_0x7d2a83:0x88d,_0x1fd0d8:0x79e,_0x11f658:0x3f5},_0x5f4812={_0x37ead5:0x330};function _0x2b6218(_0x164110,_0x30e79f){return _0x3a7f13(_0x30e79f,_0x164110-_0x5f4812._0x37ead5);}const _0x413c99={};_0x413c99[_0x8840e2(0x427,_0x4a011a._0x2a5559)]=_0x8840e2(_0x4a011a._0x55469e,0x866),_0x413c99['EBcGZ']=function(_0x2d337f,_0x160e40){return _0x2d337f===_0x160e40;};function _0x8840e2(_0x39216e,_0x4cd556){return _0x3a7f13(_0x39216e,_0x4cd556-0x336);}const _0x1f9085=_0x413c99;try{const _0x24d1b2=JSON[_0x2b6218(_0x4a011a._0x470b2e,_0x4a011a._0x2c4b32)](_0x1615b6);if(_0x24d1b2[_0x2b6218(0x789,_0x4a011a._0x26aa1c)]!==_0x8840e2(_0x4a011a._0x498fdb,_0x4a011a._0xfa8caf)||_0x24d1b2[_0x8840e2(_0x4a011a._0x3f5792,0x5b4)]!==_0x2b6218(0x5fd,0x51a)+_0x2b6218(_0x4a011a._0x66b8ba,0x8a4)+_0x8840e2(_0x4a011a._0x1932d5,0x597)||!_0x24d1b2[_0x8840e2(_0x4a011a._0x39be9f,0x60b)])return null;const _0x5504d5=typeof _0x24d1b2[_0x8840e2(_0x4a011a._0x2098ae,0x60b)]['requestI'+'d']==='string'?_0x24d1b2[_0x2b6218(0x605,0x51e)][_0x8840e2(_0x4a011a._0x387a85,_0x4a011a._0x3bdb8b)+'d']['trim']():'';if(!_0x5504d5)return null;const _0x5ca5d7=typeof _0x24d1b2[_0x2b6218(_0x4a011a._0x2044cf,0x6e6)][_0x8840e2(0x3e7,_0x4a011a._0x3dee17)]===_0x2b6218(_0x4a011a._0x12649b,_0x4a011a._0x36a2c0)?_0x24d1b2[_0x2b6218(0x605,_0x4a011a._0x1a60d3)][_0x2b6218(0x551,_0x4a011a._0x240071)]:'unknown',_0x5e9aa1=_0x5ca5d7===_0x1f9085['YLJGg']||_0x1f9085[_0x8840e2(_0x4a011a._0x4d4e15,_0x4a011a._0x7d2a83)](_0x5ca5d7,_0x8840e2(0x311,0x4bf))?_0x5ca5d7:'unknown',_0x3e1960={};return _0x3e1960[_0x2b6218(0x82c,_0x4a011a._0x1fd0d8)+'d']=_0x5504d5,_0x3e1960[_0x2b6218(0x551,_0x4a011a._0x11f658)]=_0x5e9aa1,_0x3e1960;}catch{return null;}}function firstString(..._0x206b6d){const _0x486d16={_0x3ffa99:0x219,_0x47ac96:0x457},_0x7c2ebc={_0x34d8d3:0x1b2};for(const _0x8a8eb4 of _0x206b6d){if(typeof _0x8a8eb4===_0x3bd7f4(-_0x486d16._0x3ffa99,0x34)&&_0x8a8eb4['trim']())return _0x8a8eb4[_0x3bd7f4(0x673,_0x486d16._0x47ac96)]();}function _0x3bd7f4(_0x3f84d6,_0x4b44b4){return _0x3a7f13(_0x3f84d6,_0x4b44b4- -_0x7c2ebc._0x34d8d3);}function _0x573fc4(_0xe41b94,_0x41047a){return _0x3a7f13(_0xe41b94,_0x41047a- -0x395);}return'';}function firstNullableString(_0x570dd9){const _0x4a5605={_0x548c87:0x634},_0x5b8f9b={_0x59dad2:0x18a};function _0x2819f4(_0xcc9aff,_0x3de583){return _0x32d8ea(_0xcc9aff,_0x3de583- -_0x5b8f9b._0x59dad2);}const _0x5aaa65={};function _0x376f96(_0x5b2c3b,_0x3285db){return _0x32d8ea(_0x5b2c3b,_0x3285db- -0x30e);}_0x5aaa65['whPbo']=function(_0x5c8f59,_0x200f95){return _0x5c8f59===_0x200f95;};const _0x1913b3=_0x5aaa65;return _0x1913b3['whPbo'](typeof _0x570dd9,_0x2819f4(_0x4a5605._0x548c87,0x482))&&_0x570dd9['trim']()?_0x570dd9[_0x376f96(0x910,0x721)]():null;}function extractRequestIdFromMessage(_0xeef4fa){const _0xf31e08={_0x143ffc:0x5cc,_0x325506:0x669},_0xf56788={_0x39ffeb:0x330};function _0x56be58(_0x5357c8,_0x1af215){return _0x3a7f13(_0x1af215,_0x5357c8-_0xf56788._0x39ffeb);}const _0x5ec343=_0xeef4fa[_0x56be58(_0xf31e08._0x143ffc,_0xf31e08._0x325506)](/requestId[:\s]*([a-f0-9-]+)/i);return _0x5ec343?.[0x1]??null;}import{randomUUID as _0x45799a}from'crypto';import{setTimeout as _0x20a233}from'timers/promises';import _0x30847f 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{[_0x3a7f13(0x31f,0x2e4)];[_0x32d8ea(0x8b6,0x7e9)+_0x3a7f13(0x1fe,0x268)]=null;['gatewayS'+_0x3a7f13(0x81e,0x5f4)]=null;[_0x3a7f13(0x52b,0x59b)+_0x3a7f13(0x131,0x35c)]=![];[_0x3a7f13(0x459,0x286)+_0x32d8ea(0xafb,0x930)+'g']=![];[_0x32d8ea(0x9d2,0x84b)]=!![];[_0x32d8ea(0x8cf,0x8dd)+_0x32d8ea(0x7fc,0x831)]=0x0;[_0x32d8ea(0x6b6,0x7d2)+'yActivit'+_0x32d8ea(0x9dc,0x85c)]=0x0;[_0x32d8ea(0x6b5,0x72d)+'tTimer']=null;[_0x3a7f13(0x2d6,0x1f0)+'etryTime'+'r']=null;[_0x3a7f13(0x443,0x45d)+_0x3a7f13(0x2ee,0x1b5)]=null;['pendingG'+_0x32d8ea(0xb76,0xa2e)+_0x3a7f13(0x9c,0x18a)]=[];['gatewayH'+'andshake'+_0x32d8ea(0x973,0x9e2)]=![];['clientDe'+_0x3a7f13(0x504,0x4c8)+_0x32d8ea(0x569,0x642)]=null;[_0x32d8ea(0x72b,0x6ac)+_0x32d8ea(0x7f7,0x673)+'AtMs']=null;[_0x3a7f13(0x1d2,0x2e3)];constructor(_0xc19279){const _0x36a253={_0x15ce4b:0x538,_0x17b447:0x57e,_0x4677ea:0x6c9,_0x47ab2d:0x555,_0x172754:0x4f1,_0x1a3fb7:0x628,_0x4804d1:0x417},_0x2705bf={_0x1d8806:0x2fe};function _0x47a35e(_0x950431,_0x2ed468){return _0x3a7f13(_0x2ed468,_0x950431-0x254);}this[_0x47a35e(_0x36a253._0x15ce4b,0x77c)]=_0xc19279;function _0x10266f(_0x16b542,_0x3918b1){return _0x3a7f13(_0x16b542,_0x3918b1-_0x2705bf._0x1d8806);}this['snapshot']={'running':![],'relayConnected':![],'gatewayConnected':![],'gatewayId':_0xc19279[_0x47a35e(_0x36a253._0x17b447,0x723)][_0x47a35e(_0x36a253._0x4677ea,_0x36a253._0x47ab2d)+'d'],'instanceId':_0xc19279[_0x10266f(_0x36a253._0x172754,_0x36a253._0x1a3fb7)][_0x10266f(0x98f,0x8f9)+'Id'],'relayUrl':_0xc19279[_0x47a35e(0x57e,_0x36a253._0x4804d1)][_0x47a35e(0x7e8,0x678)],'gatewayUrl':_0xc19279['gatewayU'+'rl'],'clientCount':0x0,'connectedDevices':[],'pendingPairRequests':[],'lastError':null,'lastUpdatedMs':Date['now']()};}[_0x3a7f13(0x3b9,0x5c8)](){const _0x2c8eae={_0x29d054:0x97,_0x88a8:0x63e,_0x35e508:0x58c,_0x1dbfa7:0x343,_0x239f32:0x48e,_0x3e43cc:0x46,_0x133e6d:0x850,_0x283a5:0x2b1,_0x31305a:0x6d};function _0x1c6c0c(_0x1156b0,_0x23aadf){return _0x32d8ea(_0x23aadf,_0x1156b0- -0x6c5);}if(!this['stopped'])return;this[_0x1c6c0c(0x186,0xd1)]=![],this[_0x1c6c0c(-0xd0,_0x2c8eae._0x29d054)+_0x1c6c0c(0x2b7,0x25e)]({'running':!![],'gatewayUrl':this['options']['gatewayU'+'rl']}),this[_0x385915(0x663,0x55d)](_0x385915(_0x2c8eae._0x88a8,_0x2c8eae._0x35e508)+'starting'+_0x1c6c0c(0x1d5,0x209)+_0x1c6c0c(_0x2c8eae._0x1dbfa7,_0x2c8eae._0x239f32)+this[_0x1c6c0c(0x45,_0x2c8eae._0x3e43cc)][_0x385915(0x705,0x6e6)][_0x385915(_0x2c8eae._0x133e6d,0x9ea)+'d']+(_0x1c6c0c(0x1d5,0xb3)+'Url=')+this['options']['gatewayU'+'rl']);function _0x385915(_0x5bb5f7,_0x3b2380){return _0x32d8ea(_0x3b2380,_0x5bb5f7- -0x4b);}void this[_0x1c6c0c(_0x2c8eae._0x283a5,0xe2)+_0x1c6c0c(-0xc4,_0x2c8eae._0x31305a)]();}async[_0x32d8ea(0x855,0x8e0)](){const _0x5d89fa={_0x51b232:0x469,_0x16fa7b:0x231,_0x338222:0x407,_0x2d0e2e:0x18c,_0x40ef60:0x412,_0x1d5f96:0x39c,_0x1abd36:0x6d5,_0x48f41a:0x2c2,_0x63acc9:0x6,_0x149076:0x18c,_0x2b9557:0x3aa,_0xc0823d:0x3a1,_0x5df586:0x193,_0x375188:0x52c,_0x3d6e7d:0x37c,_0x46b47b:0x266,_0x263736:0x47c,_0x393d48:0x42a,_0x57cd40:0x35c,_0x18e77c:0xe7,_0x4a30ce:0x140,_0x5ba9bb:0x2b,_0x588ab5:0x337,_0x31f77f:0x5df,_0x5b94ef:0x95,_0x43eb95:0x12f,_0x4a9f65:0x411,_0x24d611:0x607,_0x144976:0x291,_0x35a329:0x5d7,_0x18d3ea:0x3ea,_0x3a4c38:0x8,_0x4013a9:0x1ac,_0xdf00b9:0x31,_0x288146:0x349},_0x456309={_0x8a46fe:0x502},_0x4fbaf7={_0x20fa7:0x3e2};if(this[_0x239919(0x2d7,_0x5d89fa._0x51b232)])return;this['stopped']=!![],this['clearTim'+_0x3338a4(0x52,0x124)](),this[_0x239919(_0x5d89fa._0x16fa7b,_0x5d89fa._0x338222)+_0x3338a4(-0x80,_0x5d89fa._0x2d0e2e)]?.[_0x3338a4(_0x5d89fa._0x40ef60,_0x5d89fa._0x1d5f96)](),this[_0x239919(_0x5d89fa._0x1abd36,0x58e)+_0x3338a4(0x335,0x518)]?.['close'](),this[_0x239919(_0x5d89fa._0x48f41a,0x407)+_0x3338a4(-_0x5d89fa._0x63acc9,_0x5d89fa._0x149076)]=null,this[_0x239919(_0x5d89fa._0x2b9557,0x58e)+_0x3338a4(_0x5d89fa._0xc0823d,0x518)]=null,this[_0x3338a4(_0x5d89fa._0x5df586,0x2c2)+_0x3338a4(0x54a,_0x5d89fa._0x375188)+_0x3338a4(-0x176,0xae)]=[],this[_0x239919(0x302,_0x5d89fa._0x3d6e7d)+_0x3338a4(_0x5d89fa._0x46b47b,_0x5d89fa._0x263736)+_0x239919(_0x5d89fa._0x393d48,0x600)]=![],this['clientDe'+_0x3338a4(_0x5d89fa._0x57cd40,0x3ec)+_0x3338a4(_0x5d89fa._0x18e77c,_0x5d89fa._0x4a30ce)]=null,this[_0x3338a4(_0x5d89fa._0x5ba9bb,0x1aa)+'onnected'+_0x3338a4(0x371,_0x5d89fa._0x588ab5)]=null,this[_0x239919(0x480,_0x5d89fa._0x31f77f)+_0x3338a4(0x3de,0x280)]=![],this['gatewayC'+'onnectin'+'g']=![];function _0x239919(_0x2597f3,_0x17e29a){return _0x32d8ea(_0x2597f3,_0x17e29a- -_0x4fbaf7._0x20fa7);}const _0x2d1b3a={};_0x2d1b3a[_0x3338a4(-_0x5d89fa._0x5b94ef,_0x5d89fa._0x43eb95)]=![],_0x2d1b3a['relayCon'+_0x239919(_0x5d89fa._0x4a9f65,_0x5d89fa._0x24d611)]=![],_0x2d1b3a['gatewayC'+_0x239919(0xaf,_0x5d89fa._0x144976)]=![],_0x2d1b3a[_0x239919(0x45a,_0x5d89fa._0x35a329)+_0x239919(0x520,0x473)]=0x0,_0x2d1b3a[_0x239919(_0x5d89fa._0x18d3ea,0x4c8)+'r']=null,this[_0x3338a4(_0x5d89fa._0x3a4c38,0xf3)+_0x239919(0x60c,0x59a)](_0x2d1b3a);function _0x3338a4(_0x1b308e,_0x4b3e94){return _0x32d8ea(_0x1b308e,_0x4b3e94- -_0x456309._0x8a46fe);}this[_0x3338a4(-0x6f,_0x5d89fa._0x4013a9)](_0x3338a4(-_0x5d89fa._0xdf00b9,0x187)+_0x3338a4(0x19b,_0x5d89fa._0x288146)),await _0x20a233(0x19);}async[_0x32d8ea(0x860,0x6c1)+_0x3a7f13(0x3c7,0x250)+'st'](_0x526e82){const _0x56f155={_0x3601b6:0x84,_0x545d78:0x1a8,_0xe8498e:0x79e,_0x51f78d:0x314,_0xf74d81:0x37f,_0x507ec1:0x455,_0x311a34:0x22a,_0x2b6622:0x77c,_0x3240aa:0x8b3,_0x4b62ec:0xa92},_0x5370d8={};_0x5370d8[_0x476d51(_0x56f155._0x3601b6,_0x56f155._0x545d78)+'d']=_0x526e82,this[_0x59b8d6(_0x56f155._0xe8498e,0x8d3)+_0x476d51(-_0x56f155._0x51f78d,-0x195)+'st'](_0x59b8d6(0x588,_0x56f155._0xf74d81)+_0x59b8d6(0x4f9,0x739)+'ove',_0x5370d8);function _0x59b8d6(_0x1c9d6a,_0x282dd1){return _0x3a7f13(_0x282dd1,_0x1c9d6a-0x2bb);}function _0x476d51(_0x33f68e,_0x33a5ed){return _0x3a7f13(_0x33f68e,_0x33a5ed- -0x354);}this[_0x476d51(_0x56f155._0x507ec1,_0x56f155._0x311a34)+_0x59b8d6(_0x56f155._0x2b6622,0x54a)+_0x59b8d6(_0x56f155._0x3240aa,_0x56f155._0x4b62ec)](_0x526e82,'approved');}async[_0x32d8ea(0x665,0x8a9)+'irReques'+'t'](_0x555f1d){const _0x1e085b={_0x426a36:0x54d,_0x308a14:0x60,_0x366cae:0x5a1,_0x11f3c9:0x649,_0x28c0ef:0x6c0,_0x2d11fe:0x4},_0x47271f={_0x44ea88:0x51},_0x3186f7={};_0x3186f7[_0x2edd9e(_0x1e085b._0x426a36,0x75b)+'d']=_0x555f1d;function _0x2d463f(_0xa7ce19,_0xd6cd1b){return _0x3a7f13(_0xd6cd1b,_0xa7ce19- -0x15f);}function _0x2edd9e(_0x176ff3,_0x5d67e5){return _0x3a7f13(_0x5d67e5,_0x176ff3-_0x47271f._0x44ea88);}this[_0x2edd9e(0x534,0x41c)+_0x2d463f(_0x1e085b._0x308a14,0xba)+'st']('device.p'+_0x2d463f(0x472,0x54c)+'ct',_0x3186f7),this['markPair'+_0x2edd9e(0x512,_0x1e085b._0x366cae)+_0x2edd9e(_0x1e085b._0x11f3c9,_0x1e085b._0x28c0ef)](_0x555f1d,_0x2d463f(0x2a,_0x1e085b._0x2d11fe));}['getSnaps'+_0x32d8ea(0x73f,0x8f2)](){const _0x3bf970={_0x3f6bf7:0x84,_0x5ac613:0x7b0,_0x37aedf:0x48e,_0x5e4f3b:0x4d1,_0x1db1d5:0x802,_0x519cf0:0x1a4,_0x48f745:0x2d5,_0xee83d7:0x554,_0x251336:0x338},_0x480c01={_0xd0c7d5:0x271},_0x296571={_0x15a137:0xac};function _0x2189e1(_0x191301,_0x38fcda){return _0x3a7f13(_0x38fcda,_0x191301- -_0x296571._0x15a137);}const _0x4ed85e={...this[_0x21aaa5(0x554,0x5dd)]};_0x4ed85e[_0x2189e1(0x171,_0x3bf970._0x3f6bf7)+_0x21aaa5(0x719,_0x3bf970._0x5ac613)]=[...this['snapshot'][_0x21aaa5(_0x3bf970._0x37aedf,_0x3bf970._0x5e4f3b)+_0x21aaa5(0x719,_0x3bf970._0x1db1d5)]],_0x4ed85e[_0x2189e1(0x1d1,0x252)+_0x2189e1(_0x3bf970._0x519cf0,_0x3bf970._0x48f745)+_0x2189e1(0x3b0,0x5c5)]=[...this[_0x21aaa5(_0x3bf970._0xee83d7,0x4e4)][_0x2189e1(0x1d1,0x136)+_0x21aaa5(0x4c1,_0x3bf970._0x251336)+_0x2189e1(0x3b0,0x4bc)]];function _0x21aaa5(_0x16d62b,_0x317b77){return _0x3a7f13(_0x317b77,_0x16d62b-_0x480c01._0xd0c7d5);}return _0x4ed85e;}async[_0x3a7f13(0x6d4,0x550)+_0x3a7f13(0x15f,0x1db)](){const _0x42c754={_0x32f32b:0x227,_0x123dbc:0x291,_0x4c04c2:0x375,_0x14cf69:0x72e,_0x9ca813:0x760,_0x4e197e:0x1c8,_0xed4ebb:0x837,_0x226ba0:0x7ac,_0x331661:0x24e,_0x5570d4:0x85,_0x496c0b:0x7dd,_0x30b6d4:0x78d,_0x17e004:0x196,_0x52b40e:0xd2,_0xa6a10e:0x60f,_0x4015e6:0x3b8,_0x2028da:0x35e,_0x135d4f:0x209,_0x508e9c:0x373,_0x42e673:0x3dd,_0xb3e61a:0x938,_0x53e194:0x41d},_0x3083f9={_0x92ef38:0x557,_0xc0ae80:0xc8,_0x58345c:0x660,_0x4016a9:0x53c,_0x2a7ee2:0x4f8,_0x4a9a45:0xb3,_0x1e5496:0xc2,_0x1dbeed:0xf2,_0x1735ba:0x55c,_0x164957:0x5d2,_0x47c23f:0x25,_0x26ccce:0x8f,_0x5e3e2e:0x21c,_0x1845e0:0x27f,_0x4d270f:0x296,_0x43f013:0x71,_0xf6d42:0x4cd,_0x5ab2a6:0x302,_0x1aee25:0x91,_0x364627:0x50,_0x344164:0x3c2,_0x398e07:0x99,_0x20c731:0x4b3,_0x537af0:0x313},_0x5e6032={_0x1bd5eb:0x2d6,_0x5a7aa4:0x4fd,_0x621e0b:0x208,_0x3abdc3:0x499,_0x330e78:0x671},_0x4665b7={_0x27bd38:0x0,_0x2a5571:0x12f,_0x588c48:0x34,_0xf56732:0x215,_0x38880f:0x1a1,_0xcc0256:0x371,_0x41ddd3:0x3b6,_0x530213:0x289,_0x532667:0x86,_0x51c115:0x32,_0x47bde7:0x3b,_0x5c28f7:0xc5,_0x1077a2:0x378,_0x1a8a6e:0xa3,_0x65337d:0x137,_0x57d616:0x44b,_0x4d6035:0x243},_0x20b856={'fRhfx':_0x11c8d2(0x23d,0x265)+_0x11c8d2(0x1a6,0x24c),'ERHOm':function(_0x20226e,_0x2c53c1){return _0x20226e===_0x2c53c1;},'WZyxU':function(_0x5e6996,_0x18a8b4){return _0x5e6996(_0x18a8b4);},'zwivv':_0x11c8d2(_0x42c754._0x32f32b,0x367)};if(this[_0x11c8d2(_0x42c754._0x123dbc,_0x42c754._0x4c04c2)]||this[_0x237489(_0x42c754._0x14cf69,_0x42c754._0x9ca813)+_0x11c8d2(_0x42c754._0x4e197e,0x2c2)]||this[_0x237489(_0x42c754._0xed4ebb,_0x42c754._0x226ba0)+_0x11c8d2(_0x42c754._0x331661,_0x42c754._0x5570d4)]())return;this[_0x237489(_0x42c754._0x496c0b,0x760)+_0x11c8d2(0x1c8,0x38a)]=!![],this[_0x237489(_0x42c754._0x30b6d4,0x67c)+'empt']+=0x1;const _0x3ee4c4=this['relayAtt'+'empt'],_0x504b3f=_0x20b856[_0x237489(0x7e7,0x6e0)](buildRelayWsUrl,this['options'][_0x11c8d2(_0x42c754._0x17e004,_0x42c754._0x52b40e)]);function _0x237489(_0x3c00b3,_0x3d23b8){return _0x32d8ea(_0x3c00b3,_0x3d23b8- -0x261);}this['log'](_0x237489(0x89b,0x66c)+_0x237489(_0x42c754._0xa6a10e,0x599)+'tempt='+_0x3ee4c4+_0x237489(_0x42c754._0x4015e6,0x347)+redactRelayWsUrl(_0x504b3f));const _0x2a48db={};_0x2a48db[_0x237489(0x940,0x76f)+'ad']=0x19*0x400*0x400;const _0x21ac8b=new _0x30847f(_0x504b3f,_0x2a48db);function _0x11c8d2(_0x371b8d,_0x4125e9){return _0x32d8ea(_0x4125e9,_0x371b8d- -0x5ba);}this['relaySoc'+_0x237489(0x256,0x42d)]=_0x21ac8b,_0x21ac8b[_0x11c8d2(0x459,_0x42c754._0x2028da)]('open',()=>{const _0x106f36={_0xc687e5:0x535},_0x56d9f5={_0x3839b3:0x3aa};function _0x2b5ecf(_0x43ddce,_0x4c4a94){return _0x237489(_0x4c4a94,_0x43ddce- -_0x56d9f5._0x3839b3);}const _0x24753c=_0x20b856[_0x2b5ecf(_0x4665b7._0x27bd38,_0x4665b7._0x2a5571)][_0x59edb3(-0x5c,_0x4665b7._0x588c48)]('|');let _0x23b2cc=0x0;function _0x59edb3(_0x4bcba8,_0x1026e8){return _0x237489(_0x4bcba8,_0x1026e8- -_0x106f36._0xc687e5);}while(!![]){switch(_0x24753c[_0x23b2cc++]){case'0':const _0x284fb6={};_0x284fb6['relayCon'+_0x2b5ecf(0x3de,_0x4665b7._0xf56732)]=!![],_0x284fb6['lastErro'+'r']=null,this[_0x59edb3(-0x38a,-_0x4665b7._0x38880f)+_0x2b5ecf(_0x4665b7._0xcc0256,0x46e)](_0x284fb6);continue;case'1':this[_0x2b5ecf(0x247,0x1)+_0x59edb3(-0x50,0x29)+'nected']();continue;case'2':this[_0x2b5ecf(_0x4665b7._0x41ddd3,0x4a5)+_0x2b5ecf(0x177,_0x4665b7._0x530213)]=![];continue;case'3':if(this[_0x2b5ecf(0x240,0x1c2)]||this[_0x59edb3(_0x4665b7._0x532667,0x53)+_0x2b5ecf(0x83,-_0x4665b7._0x51c115)]!==_0x21ac8b){_0x21ac8b[_0x2b5ecf(0x293,0x43d)]();return;}continue;case'4':this[_0x2b5ecf(0x1c7,0x366)+_0x59edb3(-_0x4665b7._0x47bde7,_0x4665b7._0x5c28f7)+'yMs']=Date[_0x59edb3(_0x4665b7._0x1077a2,0x280)]();continue;case'5':this[_0x2b5ecf(_0x4665b7._0x1a8a6e,-0xd2)](_0x59edb3(-0x4d,_0x4665b7._0x65337d)+_0x59edb3(_0x4665b7._0x57d616,_0x4665b7._0x4d6035)+'attempt='+_0x3ee4c4);continue;case'6':this['startHea'+'rtbeat']();continue;}break;}}),_0x21ac8b['on'](_0x20b856[_0x237489(0x4c6,0x37f)],(_0x33cc2a,_0xf6d79)=>{function _0x44b1da(_0x2d2a0c,_0x46f829){return _0x11c8d2(_0x46f829-0x1d0,_0x2d2a0c);}void this[_0x44b1da(0x3c5,0x1cc)+'layMessa'+'ge'](_0x33cc2a,_0xf6d79);}),_0x21ac8b['on'](_0x11c8d2(0x3b7,_0x42c754._0x135d4f),()=>{function _0x5772b6(_0x1502ec,_0x460c48){return _0x237489(_0x1502ec,_0x460c48- -0x144);}function _0x12cc32(_0x133793,_0x583373){return _0x237489(_0x583373,_0x133793- -0x324);}this['lastRela'+_0x12cc32(_0x5e6032._0x1bd5eb,_0x5e6032._0x5a7aa4)+_0x12cc32(0x2d7,_0x5e6032._0x621e0b)]=Date[_0x5772b6(_0x5e6032._0x3abdc3,_0x5e6032._0x330e78)]();}),_0x21ac8b['once'](_0x237489(_0x42c754._0x508e9c,_0x42c754._0x42e673),_0x3325cf=>{const _0x3e09f7={_0x448165:0x165};function _0x39fcdd(_0x2d4e7a,_0x595790){return _0x237489(_0x595790,_0x2d4e7a- -0x2df);}function _0x281623(_0xa6679d,_0x206a4b){return _0x237489(_0x206a4b,_0xa6679d-_0x3e09f7._0x448165);}this[_0x281623(0x5b2,0x618)](_0x281623(0x698,0x4ed)+'ror:\x20'+String(_0x3325cf));}),_0x21ac8b[_0x237489(_0x42c754._0xb3e61a,0x7b2)](_0x11c8d2(0x2e4,_0x42c754._0x53e194),(_0x4c6cb8,_0x3c4131)=>{function _0x201ee5(_0x31945c,_0x47d9b9){return _0x237489(_0x47d9b9,_0x31945c- -0x3bc);}const _0x16e2db=(_0x76bb8d(_0x3083f9._0x92ef38,0x376)+_0x201ee5(_0x3083f9._0xc0ae80,-0x123)+'2')[_0x76bb8d(0x691,0x4ae)]('|');function _0x76bb8d(_0x325391,_0x4e3b9c){return _0x237489(_0x325391,_0x4e3b9c- -0xbb);}let _0x20e144=0x0;while(!![]){switch(_0x16e2db[_0x20e144++]){case'0':this[_0x76bb8d(0x519,0x2d9)+_0x76bb8d(0x63c,_0x3083f9._0x58345c)]({'relayConnected':![],'gatewayConnected':![],'clientCount':0x0,'lastError':_0x20b856['ERHOm'](_0x4c6cb8,0x3e8)?null:'relay\x20cl'+_0x76bb8d(_0x3083f9._0x4016a9,0x509)+(_0x3c4131[_0x76bb8d(0x57b,_0x3083f9._0x2a7ee2)]()||_0x4c6cb8)});continue;case'1':this[_0x201ee5(_0x3083f9._0x4a9a45,-0x123)+_0x201ee5(_0x3083f9._0x1e5496,_0x3083f9._0x1dbeed)]();continue;case'2':this[_0x201ee5(0x257,0x228)+'RelayRec'+_0x201ee5(0x13e,-0xc4)]();continue;case'3':this['clientDe'+_0x76bb8d(_0x3083f9._0x1735ba,_0x3083f9._0x164957)+_0x201ee5(_0x3083f9._0x47c23f,0xd9)]=null;continue;case'4':this[_0x201ee5(_0x3083f9._0x26ccce,0x239)+'onnected'+_0x201ee5(_0x3083f9._0x5e3e2e,0x362)]=null;continue;case'5':this[_0x201ee5(_0x3083f9._0x1845e0,_0x3083f9._0x4d270f)+'tbeat']();continue;case'6':this['relaySoc'+_0x201ee5(_0x3083f9._0x43f013,0x14)]===_0x21ac8b&&(this[_0x76bb8d(0x5e8,_0x3083f9._0xf6d42)+_0x76bb8d(_0x3083f9._0x5ab2a6,0x372)]=null);continue;case'7':this[_0x201ee5(_0x3083f9._0x1aee25,-_0x3083f9._0x364627)](_0x76bb8d(0x562,0x653)+_0x201ee5(0x3d0,0x549)+'ed\x20code='+_0x4c6cb8+'\x20reason='+(_0x3c4131[_0x201ee5(0x1f7,_0x3083f9._0x344164)]()||_0x201ee5(_0x3083f9._0x398e07,0x266)));continue;case'8':this[_0x201ee5(0x3a4,_0x3083f9._0x20c731)+_0x76bb8d(_0x3083f9._0x537af0,0x466)]=![];continue;}break;}});}async[_0x3a7f13(0x1d5,0x190)+_0x3a7f13(0x1b9,0x38a)+'ge'](_0x113840,_0x15e601){const _0x35a697={_0x48d3a5:0xd5,_0x2f1e16:0x109,_0x25a1d5:0xd1,_0x4e6293:0xbc,_0x219d28:0x443,_0x287bda:0x33b,_0x15ac0a:0x57f,_0x4b2839:0x68e,_0x1b3407:0x85c,_0x213c5f:0x165,_0x200b20:0x298,_0x4f609b:0x722,_0x11565d:0x64a,_0x408e6f:0x7f,_0x4836bc:0x1a1,_0x21c113:0x6ac,_0x367984:0x577,_0x5b4baf:0x27c,_0x1ee10a:0x82,_0x13feb3:0x52f,_0xbe740d:0x1ed},_0x55680f={_0x403ffe:0x313},_0x3f4fc0={'XXHgC':function(_0xfb3e65,_0x48d853){return _0xfb3e65(_0x48d853);},'DnhHn':_0x289a44(_0x35a697._0x48d3a5,-0x103)};this[_0x289a44(-_0x35a697._0x2f1e16,0x33)+_0x289a44(_0x35a697._0x25a1d5,_0x35a697._0x4e6293)+_0x19a259(0x549,0x464)]=Date[_0x289a44(0x3a4,0x277)]();if(_0x15e601){this['forwardO'+_0x19a259(_0x35a697._0x219d28,_0x35a697._0x287bda)+_0x19a259(0x72a,0x7e8)+'sage']({'kind':_0x19a259(0x521,_0x35a697._0x15ac0a),'data':_0x3f4fc0[_0x19a259(_0x35a697._0x4b2839,_0x35a697._0x1b3407)](normalizeBinary,_0x113840)});return;}const _0x17ff93=normalizeText(_0x113840);function _0x19a259(_0xda6d78,_0x2faef9){return _0x32d8ea(_0x2faef9,_0xda6d78- -_0x55680f._0x403ffe);}if(_0x17ff93==null)return;const _0x8433ee=parseControl(_0x17ff93);if(_0x8433ee){this[_0x19a259(0x2a3,0xbb)+_0x289a44(_0x35a697._0x213c5f,_0x35a697._0x200b20)+'ol'](_0x8433ee[_0x19a259(0x391,0x502)],_0x8433ee[_0x19a259(_0x35a697._0x4f609b,_0x35a697._0x11565d)]);return;}const _0x13c642=parseConnectStartIdentity(_0x17ff93);_0x13c642&&this[_0x289a44(_0x35a697._0x408e6f,-_0x35a697._0x4836bc)+'onnectSt'+_0x289a44(0xce,0x253)](_0x13c642['id'],_0x13c642[_0x19a259(0x6bb,_0x35a697._0x21c113)]);const _0x5c05a1={};_0x5c05a1[_0x19a259(0x665,_0x35a697._0x367984)]=_0x3f4fc0[_0x289a44(-_0x35a697._0x5b4baf,-0x16f)];function _0x289a44(_0x46827e,_0x54dfdf){return _0x32d8ea(_0x46827e,_0x54dfdf- -0x79f);}_0x5c05a1['text']=_0x17ff93,this[_0x289a44(-_0x35a697._0x1ee10a,-0x12f)+_0x19a259(0x443,0x396)+_0x19a259(0x72a,_0x35a697._0x13feb3)+_0x289a44(0x21,_0x35a697._0xbe740d)](_0x5c05a1);}[_0x3a7f13(0x97,0x190)+_0x32d8ea(0x966,0xa37)+'ol'](_0x454d8f,_0x159a4a){const _0x12caed={_0x4e7347:0x952,_0x1bcbc7:0x258,_0x3864fa:0xe,_0x1da572:0x8ce,_0x37e042:0x9a1,_0x175358:0x9d7,_0x4007a5:0x672,_0x136de2:0x450,_0x4e37bd:0x5ee,_0x5f2589:0x95d,_0x420f62:0x840,_0x3c6bd9:0x6b1,_0x2a5ee1:0x5b4,_0x5f4b8c:0x55e,_0x4d90e0:0x444,_0x268c55:0x54e,_0x21e770:0x541,_0x408798:0x4e9,_0x34e242:0x23d,_0x3f1562:0x27a,_0x3b448c:0x82d,_0x2b6883:0x7fd,_0x2e885b:0xa16,_0x4894e0:0x7b9,_0x22a211:0x926,_0x5e2445:0x6ea,_0x2f0b6c:0x656,_0x2e1a7e:0x484,_0x59099f:0x1bc,_0x67a46f:0xb8,_0x4a6312:0x378,_0x4115b2:0x2b1,_0xe48f8e:0x953,_0x5b54be:0xa64,_0x4c44da:0x30a,_0x3e0af1:0x60d,_0x11128a:0x4ea,_0x5eaac4:0x5a3,_0x3f8169:0x608,_0x4593d6:0x4b6,_0x2c834c:0x6fd,_0x58c23b:0x56a,_0xcfdead:0x5c7,_0x22f127:0x91e,_0x5a2f42:0x999,_0x2850f4:0x1f8,_0x1d7264:0x7dc,_0x57bf90:0x5ff,_0x1df3e2:0x500,_0x11bfbb:0x7e6,_0x15a7d4:0x2f2,_0x46a6f3:0x764,_0x19d720:0x98a,_0x36293b:0xb8b,_0x1f21cf:0x3bf,_0x28dc6c:0x3ec,_0x593bbc:0x353,_0x5c4653:0x512,_0x17b6e5:0x4b8,_0x5bcc2a:0x629,_0x500017:0x56b,_0xc02a47:0x295,_0x249274:0x559,_0xabd676:0x58c,_0x12344c:0x611,_0x36c9ae:0x3a5,_0x5f37eb:0x7bc,_0x9bf0ae:0x2cb,_0x169ca3:0x687,_0x47ab8e:0x5d5,_0x2b7f79:0x654,_0x12edcc:0x529,_0x45d048:0x26e,_0x453b9c:0x1f0,_0x435c64:0x247,_0x37c7d6:0x9ed,_0x17a8f0:0x23e,_0x47a894:0x6d1,_0x170c2c:0x7d7,_0x242158:0x57d,_0x4c92db:0x4b4,_0x1af8ec:0x2a7,_0x3d7f3f:0x706,_0x43eb03:0x98a,_0x3cdcb6:0xb21,_0x87b0be:0x556,_0x52301b:0x961,_0xcac473:0x7b6,_0x2e7c99:0x251,_0x16befd:0x3a4,_0x5bea1f:0x219,_0x4fa2af:0x351,_0x594ffe:0x3ba,_0x988747:0x991},_0x347c92={_0x4a97d7:0x21},_0x3ec6e1={'rxgjg':_0x378ce3(_0x12caed._0x4e7347,0x786)+'ount','PLZQq':function(_0x1ab9c7,_0xe402bf){return _0x1ab9c7==_0xe402bf;},'whQab':function(_0x2cccd6,_0x4f484f){return _0x2cccd6(_0x4f484f);},'AmzKV':function(_0x5182d8,_0x4fab5d){return _0x5182d8>_0x4fab5d;},'nBoaW':_0x25464f(_0x12caed._0x1bcbc7,_0x12caed._0x3864fa)+_0x25464f(0x37f,0x5c3)+_0x25464f(0x2cc,0x354),'QrpVy':_0x25464f(0x4f0,0x414)+'isconnec'+'ted;\x20kee'+'ping\x20gat'+_0x378ce3(_0x12caed._0x1da572,_0x12caed._0x37e042)+_0x378ce3(0x991,_0x12caed._0x175358)};function _0x25464f(_0x31ef3f,_0x26e9ff){return _0x3a7f13(_0x26e9ff,_0x31ef3f-_0x347c92._0x4a97d7);}function _0x378ce3(_0x2cfc19,_0x4e4e1e){return _0x3a7f13(_0x4e4e1e,_0x2cfc19-0x3ce);}if(_0x454d8f===_0x378ce3(0x952,0x9b9)+_0x378ce3(0x61b,_0x12caed._0x4007a5)||_0x454d8f===_0x3ec6e1['rxgjg']){const _0x1e2641=this[_0x378ce3(0x6b1,0x467)][_0x378ce3(0x961,0x8c4)+_0x25464f(_0x12caed._0x136de2,_0x12caed._0x4e37bd)],_0x482b81=_0x159a4a??Math[_0x378ce3(_0x12caed._0x5f2589,_0x12caed._0x420f62)](0x1,this[_0x378ce3(_0x12caed._0x3c6bd9,0x5a8)][_0x25464f(_0x12caed._0x2a5ee1,0x4e6)+_0x378ce3(0x7fd,0x61c)]);_0x482b81>0x0&&_0x3ec6e1[_0x25464f(_0x12caed._0x5f4b8c,_0x12caed._0x4d90e0)](this[_0x25464f(_0x12caed._0x268c55,0x4c7)+_0x25464f(0x4e9,_0x12caed._0x21e770)+_0x378ce3(0x5ea,0x40a)],null)&&(this[_0x25464f(0x54e,0x669)+_0x25464f(_0x12caed._0x408798,0x37f)+_0x25464f(_0x12caed._0x34e242,_0x12caed._0x3f1562)]=Date[_0x378ce3(0x9be,_0x12caed._0x3b448c)]());const _0x2239c0={};_0x2239c0['clientCo'+_0x378ce3(_0x12caed._0x2b6883,_0x12caed._0x2e885b)]=_0x482b81,this[_0x378ce3(0x59d,_0x12caed._0x4894e0)+_0x378ce3(0x924,0x7f1)](_0x2239c0);if(_0x482b81===0x0)this[_0x378ce3(0x706,0x911)+_0x378ce3(_0x12caed._0x22a211,0x930)+_0x378ce3(0x98a,0x845)]=![],this[_0x25464f(0x3a4,0x541)+_0x378ce3(0x773,_0x12caed._0x5e2445)+'t'](),this[_0x378ce3(_0x12caed._0x2f0b6c,_0x12caed._0x2e1a7e)]('client\x20d'+_0x25464f(0x248,_0x12caed._0x59099f)+'opped\x20to'+'\x20zero;\x20k'+_0x25464f(0x4f4,0x5d0)+_0x25464f(0x466,0x66b)+_0x25464f(0x26e,_0x12caed._0x67a46f));else{if(shouldRecycleGatewayForFreshClient(_0x1e2641,_0x482b81,this[_0x378ce3(0x603,0x805)+_0x25464f(0x595,0x55f)](),![])){const _0x40c389=_0x3ec6e1[_0x25464f(_0x12caed._0x4a6312,_0x12caed._0x4115b2)](summarizePendingGatewayMessages,this['pendingG'+_0x378ce3(0x9d6,_0x12caed._0xe48f8e)+'ssages']);this['log'](_0x378ce3(0x8d1,_0x12caed._0x5b54be)+_0x25464f(0x268,_0x12caed._0x4c44da)+_0x25464f(0x3f9,_0x12caed._0x3e0af1)+_0x25464f(_0x12caed._0x11128a,0x54c)+_0x25464f(_0x12caed._0x5eaac4,_0x12caed._0x3f8169)+_0x25464f(_0x12caed._0x4593d6,_0x12caed._0x2c834c)+_0x378ce3(_0x12caed._0x58c23b,_0x12caed._0xcfdead)+'='+_0x40c389['total']+('\x20connect'+'=')+_0x40c389[_0x378ce3(_0x12caed._0x22f127,_0x12caed._0x5a2f42)+'equests']+_0x25464f(0x1b7,_0x12caed._0x2850f4)+_0x40c389[_0x378ce3(0x620,0x5b5)+'t']+_0x25464f(0x49e,0x511)+_0x40c389[_0x378ce3(_0x12caed._0x1d7264,_0x12caed._0x57bf90)]+(_0x25464f(_0x12caed._0x1df3e2,0x6d7)+_0x378ce3(0x9e4,_0x12caed._0x11bfbb)+'d=')+this[_0x25464f(0x359,_0x12caed._0x15a7d4)+_0x378ce3(0x926,_0x12caed._0x46a6f3)+_0x378ce3(_0x12caed._0x19d720,_0x12caed._0x36293b)]);const _0x3c7d17=prunePendingGatewayMessagesForFreshDemand(this[_0x25464f(_0x12caed._0x1f21cf,_0x12caed._0x28dc6c)+'atewayMe'+_0x25464f(0x1ab,_0x12caed._0x593bbc)]);_0x3ec6e1[_0x25464f(0x321,0x53e)](_0x3c7d17[_0x25464f(_0x12caed._0x5c4653,_0x12caed._0x17b6e5)],0x0)&&(this['pendingG'+_0x25464f(_0x12caed._0x5bcc2a,0x52d)+_0x378ce3(0x558,_0x12caed._0x500017)]=_0x3c7d17['messages'],this[_0x25464f(0x2a9,0x47a)](_0x378ce3(0x66c,0x4d6)+'stale\x20ga'+_0x25464f(_0x12caed._0xc02a47,0x3fb)+_0x378ce3(_0x12caed._0x249274,0x536)+_0x378ce3(_0x12caed._0xabd676,_0x12caed._0x12344c)+_0x378ce3(0x719,0x8ef)+'ed='+_0x3c7d17['dropped']+_0x25464f(_0x12caed._0x36c9ae,0x35c)+_0x3c7d17[_0x378ce3(0x8a2,_0x12caed._0x5f37eb)][_0x25464f(0x3d2,0x60d)])),this[_0x25464f(_0x12caed._0x9bf0ae,0x13a)+_0x378ce3(_0x12caed._0x169ca3,_0x12caed._0x47ab8e)]();}if(this[_0x25464f(0x256,0x3fc)+_0x25464f(0x595,0x690)]()){const _0x1f8f78={};_0x1f8f78[_0x378ce3(_0x12caed._0x2b7f79,_0x12caed._0x12edcc)+_0x25464f(_0x12caed._0x45d048,0x298)]=!![],_0x1f8f78['lastErro'+'r']=null,this[_0x25464f(_0x12caed._0x453b9c,_0x12caed._0x435c64)+_0x378ce3(0x924,_0x12caed._0x37c7d6)](_0x1f8f78),this[_0x25464f(0x2a9,0x2a9)]('gateway\x20'+_0x378ce3(0x88a,0x79c)+_0x25464f(_0x12caed._0x17a8f0,0xd3)+_0x378ce3(0x761,0x7ee)+_0x378ce3(_0x12caed._0x47a894,_0x12caed._0x170c2c)+_0x378ce3(_0x12caed._0x242158,_0x12caed._0x4c92db)+this[_0x378ce3(0x860,0x736)+_0x378ce3(0x9c1,0xa57)](this[_0x25464f(_0x12caed._0x1af8ec,0x403)+_0x378ce3(0x61b,0x495)+'AtMs'])+('\x20handsha'+'keStarte'+'d=')+this[_0x378ce3(_0x12caed._0x3d7f3f,0x4c2)+_0x25464f(0x579,0x5cc)+_0x378ce3(_0x12caed._0x43eb03,0xb3f)]);}}this[_0x25464f(0x44d,0x2d7)+_0x25464f(0x3ba,0x39c)+_0x378ce3(0x991,_0x12caed._0x3cdcb6)]();return;}if(_0x454d8f===_0x3ec6e1[_0x25464f(_0x12caed._0x87b0be,0x77b)]){this['gatewayH'+_0x378ce3(0x926,0x986)+'Started']=![];const _0x3f8ed1={};_0x3f8ed1[_0x378ce3(_0x12caed._0x52301b,_0x12caed._0xcac473)+_0x378ce3(0x7fd,0x73a)]=0x0,this[_0x25464f(0x1f0,_0x12caed._0x2e7c99)+'apshot'](_0x3f8ed1),this[_0x25464f(_0x12caed._0x16befd,_0x12caed._0x5bea1f)+_0x25464f(0x3c6,_0x12caed._0x4fa2af)+'t'](),this[_0x378ce3(0x656,0x547)](_0x3ec6e1['QrpVy']),this[_0x378ce3(0x7fa,0x711)+_0x25464f(_0x12caed._0x594ffe,0x495)+_0x378ce3(_0x12caed._0x988747,0xb82)]();return;}}['forwardO'+_0x3a7f13(0x233,0x330)+_0x3a7f13(0x4d2,0x617)+_0x3a7f13(0x39f,0x566)](_0x5be2fa){const _0x36f3f2={_0x52d1c0:0x599,_0x1a8699:0x409,_0x534a4a:0x29e,_0x1d478e:0x15d,_0x514564:0x310,_0x8c983b:0x273,_0x4a6654:0x95,_0x316051:0x121,_0x2c6a68:0x3d7,_0x57521d:0x17c,_0x10ea90:0x211,_0x5c9686:0x28d,_0x5f0cb6:0x76,_0x228a5b:0x14c,_0x32c385:0x1de,_0xc823fb:0xf3,_0x429525:0x1b9,_0x4fe4e1:0x1ed,_0x5212e9:0x188,_0x38602e:0x24c,_0x1f3b09:0x47,_0x45ec76:0x23e,_0x28242b:0x21f,_0x2b9143:0x3f2,_0x3dc9fe:0xd4,_0x27aa0d:0x2f0,_0x427e9b:0x1ed,_0x52f556:0x283,_0x4c98eb:0x2ff,_0x202af0:0x17c,_0x594831:0x1d4,_0x3285c7:0x3a4,_0x2ee922:0x3c1,_0x327d26:0x50e,_0x56f9e2:0x1ae,_0x3a7c3e:0xa,_0x27b079:0x93,_0x54f3cb:0x109};function _0x30831e(_0x5bf5f9,_0x19a8d8){return _0x3a7f13(_0x5bf5f9,_0x19a8d8- -0xfa);}const _0xf794e9={'cwjRO':function(_0x361183,_0x18ce5a){return _0x361183===_0x18ce5a;},'yZVGc':function(_0x565f9d,_0xa9bf18){return _0x565f9d!==_0xa9bf18;},'MJByu':_0x30831e(_0x36f3f2._0x52d1c0,_0x36f3f2._0x1a8699)+_0x98eac6(-0x19b,-0x30e)+_0x30831e(-0x10,0xc6)+_0x98eac6(0x111,_0x36f3f2._0x534a4a)+_0x30831e(0xa1,_0x36f3f2._0x1d478e)+'hake;\x20qu'+_0x30831e(_0x36f3f2._0x514564,_0x36f3f2._0x8c983b)+_0x98eac6(-0x22,-_0x36f3f2._0x4a6654)+'ay\x20recon'+_0x98eac6(0x21,0x10f),'lzVfP':function(_0x27a566,_0x1a572c){return _0x27a566(_0x1a572c);}},_0x285e55=_0xf794e9[_0x30831e(-_0x36f3f2._0x316051,0xe7)](_0x5be2fa[_0x98eac6(0x219,_0x36f3f2._0x2c6a68)],'text')&&isConnectHandshakeRequest(_0x5be2fa[_0x30831e(0x2f4,_0x36f3f2._0x57521d)]);function _0x98eac6(_0x2ac862,_0x391f28){return _0x3a7f13(_0x391f28,_0x2ac862- -0x339);}const _0x4a4120=this[_0x98eac6(_0x36f3f2._0x10ea90,_0x36f3f2._0x5c9686)+'ocket'];if(!_0x4a4120||_0xf794e9['yZVGc'](_0x4a4120[_0x30831e(-_0x36f3f2._0x5f0cb6,0x171)+'te'],_0x30847f[_0x98eac6(-_0x36f3f2._0x228a5b,-_0x36f3f2._0x32c385)])){this[_0x98eac6(_0x36f3f2._0xc823fb,0x199)+'tewayCon'+_0x98eac6(0x28a,0x89)](),this['pushPend'+_0x30831e(_0x36f3f2._0x429525,_0x36f3f2._0x4fe4e1)+_0x98eac6(0x215,_0x36f3f2._0x5212e9)+'e'](_0x5be2fa);_0x285e55&&this['log'](_0xf794e9[_0x30831e(_0x36f3f2._0x38602e,0x202)]);return;}if(!this[_0x30831e(_0x36f3f2._0x1f3b09,_0x36f3f2._0x45ec76)+_0x98eac6(_0x36f3f2._0x28242b,_0x36f3f2._0x2b9143)+_0x98eac6(0x283,0x1c1)]){if(!_0x285e55){this[_0x30831e(0x79,_0x36f3f2._0x3dc9fe)+_0x30831e(_0x36f3f2._0x27aa0d,_0x36f3f2._0x427e9b)+_0x30831e(0x467,0x454)+'e'](_0x5be2fa);return;}this['gatewayH'+_0x98eac6(0x21f,0x42c)+_0x98eac6(_0x36f3f2._0x52f556,_0x36f3f2._0x4c98eb)]=!![];const _0x56b8a7=_0xf794e9[_0x98eac6(-_0x36f3f2._0x5212e9,-0xa9)](parseConnectHandshakeMeta,_0x5be2fa[_0x30831e(0xd4,_0x36f3f2._0x202af0)]);this['log'](_0x30831e(0x486,0x409)+'handshak'+_0x98eac6(_0x36f3f2._0x594831,_0x36f3f2._0x3285c7)+_0x30831e(-0x16b,0xa2)+'='+this[_0x30831e(_0x36f3f2._0x2ee922,0x2a4)+_0x30831e(0x431,_0x36f3f2._0x327d26)+_0x30831e(-_0x36f3f2._0x56f9e2,0x90)][_0x98eac6(0x78,0x26b)]+formatConnectHandshakeMetaForLog(_0x56b8a7));}this[_0x30831e(_0x36f3f2._0x3a7c3e,_0x36f3f2._0x27b079)+_0x30831e(-0x105,_0x36f3f2._0x54f3cb)](_0x5be2fa);}[_0x32d8ea(0x82f,0x852)+'tewayCon'+_0x3a7f13(0x790,0x5c3)](){const _0x5e6043={_0x53af4a:0x420,_0x52a94e:0x2ad,_0x235bfc:0x2df,_0x5dfe33:0x4da,_0x3c2567:0x307,_0x154a94:0x4ec,_0x235353:0x33f,_0x119697:0x456,_0xd5d84b:0x406,_0x3fa634:0x171,_0x52589c:0x80a,_0x501c30:0x6f0,_0x31ac49:0x3ee,_0x4bc083:0x23f,_0x361bb0:0x5c9,_0x48ad15:0x90,_0x3e5fd0:0x14f,_0xf1f662:0x416,_0x24a6a8:0x7bf,_0x123b98:0x654,_0x59ce62:0x173,_0x440b3b:0x1ae,_0x267420:0x2ae,_0x2cb2d8:0x4b1,_0x44dd87:0x582},_0x313872={_0x35c388:0x471,_0x2dae16:0x3ba,_0x61c0a5:0x671,_0x2d25f9:0x47f,_0x4f4d98:0x723,_0x3c7cc3:0x22f,_0x588153:0x336,_0x5d6674:0x484,_0x3bda27:0x6bd,_0x5b8616:0x5b6,_0x50b745:0x21f,_0x546730:0x7bc,_0x31678a:0x60a,_0x50d403:0x1af,_0x4da0d1:0x3ba,_0x2cc5e8:0x555,_0x1a03c1:0x31a,_0x2e4e68:0x443,_0x17cab4:0x3e0,_0x47192a:0x412,_0x1d26f8:0x4e2,_0x171a57:0x694,_0x1df616:0x788,_0x17396d:0x62f,_0x57398e:0x355,_0x452b57:0x383,_0xe9ed35:0x32c},_0x4e5219={_0x571290:0x34},_0x2f3caa={_0x381519:0x274},_0x488768={_0x4e1250:0x4e6,_0x2d0a05:0x7c3},_0x4b5e8f={_0xeb4ded:0x36b},_0x313145={_0x43ab1d:0x74},_0x171522={_0x419ef6:0x4bd,_0xd69c39:0x579,_0x88897c:0x373,_0x5ee01b:0x2d5},_0x18fc23={_0x4c6a02:0x235},_0x476a56={_0x101da8:0x43b,_0x1c7f24:0x7f,_0x149100:0x271,_0x47c02e:0x3d,_0x19ee90:0x268,_0x1f41fa:0x66e,_0x3b46e8:0x17a,_0x44376c:0x293,_0xf2c7b5:0x81,_0x34e5ae:0x339,_0x50e7b1:0xcf,_0xa42df5:0x48b,_0x34085d:0x3f3,_0x49a4fe:0x60b,_0x59e0cd:0x460,_0x520782:0x593,_0x4194a4:0x60f,_0x5eab63:0x581,_0x4ca393:0x493,_0x30be6c:0x51e,_0x53b98d:0x454,_0x2637ae:0x3bc,_0x59e1e6:0x30a,_0x2fd0e3:0x28b,_0x403de2:0x4ad,_0x5f1c5b:0x182,_0x271b57:0x1cf,_0x51cfe9:0x150},_0x353c1f={_0x57c211:0x533};function _0x7c344a(_0x587345,_0x15d9ce){return _0x32d8ea(_0x587345,_0x15d9ce- -_0x353c1f._0x57c211);}function _0x487313(_0x240c85,_0x400ce1){return _0x32d8ea(_0x240c85,_0x400ce1- -0x31c);}const _0xc46e44={};_0xc46e44[_0x7c344a(_0x5e6043._0x53af4a,_0x5e6043._0x52a94e)]=function(_0x1c31cc,_0x351662){return _0x1c31cc*_0x351662;};const _0x47679d=_0xc46e44;if(this[_0x7c344a(_0x5e6043._0x235bfc,0x318)]||!this[_0x7c344a(0x663,_0x5e6043._0x5dfe33)+_0x487313(_0x5e6043._0x3c2567,_0x5e6043._0x154a94)]()||this['gatewayC'+'onnectin'+'g']||this[_0x487313(0x4af,_0x5e6043._0x235353)+_0x7c344a(_0x5e6043._0x119697,0x467)]())return;this['gatewayC'+_0x7c344a(_0x5e6043._0xd5d84b,0x3fd)+'g']=!![],this[_0x7c344a(_0x5e6043._0x3fa634,0x17b)](_0x487313(_0x5e6043._0x52589c,0x60d)+_0x487313(_0x5e6043._0x501c30,0x588)+_0x487313(0x847,0x638)+'l='+this[_0x487313(0x1a9,_0x5e6043._0x31ac49)][_0x7c344a(_0x5e6043._0x4bc083,0x14f)+'rl']);const _0x1644fc=new _0x30847f(this[_0x487313(_0x5e6043._0x361bb0,0x3ee)][_0x7c344a(-_0x5e6043._0x48ad15,_0x5e6043._0x3e5fd0)+'rl'],{'maxPayload':_0x47679d[_0x7c344a(_0x5e6043._0xf1f662,0x2ad)](0x19,0x400)*0x400});this[_0x487313(_0x5e6043._0x24a6a8,_0x5e6043._0x123b98)+_0x7c344a(0x3f8,0x4e7)]=_0x1644fc,_0x1644fc[_0x7c344a(0x45b,0x4e0)](_0x7c344a(_0x5e6043._0x59ce62,_0x5e6043._0x440b3b),()=>{const _0x4d30b0={_0x7c0b8c:0xef};function _0xf6a34f(_0x1d84ee,_0x42ae21){return _0x487313(_0x42ae21,_0x1d84ee- -_0x4d30b0._0x7c0b8c);}function _0x30b596(_0x559ec6,_0x44843f){return _0x487313(_0x559ec6,_0x44843f- -0x3cd);}const _0x5cc1d4=(_0xf6a34f(_0x476a56._0x101da8,0x252)+_0x30b596(0x2a6,0x1bd))[_0x30b596(_0x476a56._0x1c7f24,0xe1)]('|');let _0x18de4f=0x0;while(!![]){switch(_0x5cc1d4[_0x18de4f++]){case'0':this[_0x30b596(0x25,-0x3d)+_0x30b596(0x108,0x247)+'g']=![];continue;case'1':const _0x352c71={};_0x352c71[_0x30b596(-_0x476a56._0x149100,-_0x476a56._0x47c02e)+_0xf6a34f(_0x476a56._0x19ee90,0x415)]=!![],_0x352c71[_0xf6a34f(0x49f,_0x476a56._0x1f41fa)+'r']=null,this['updateSn'+_0x30b596(_0x476a56._0x3b46e8,_0x476a56._0x44376c)](_0x352c71);continue;case'2':this[_0x30b596(_0x476a56._0xf2c7b5,0x75)+_0xf6a34f(0x573,_0x476a56._0x34e5ae)+'Started']=![];continue;case'3':this[_0x30b596(_0x476a56._0x50e7b1,-0xaf)+_0x30b596(-0xeb,0x15)+'wayMessa'+_0xf6a34f(_0x476a56._0xa42df5,_0x476a56._0x34085d)]();continue;case'4':this['gatewayC'+'onnected'+'AtMs']=Date[_0xf6a34f(_0x476a56._0x49a4fe,_0x476a56._0x59e0cd)]();continue;case'5':if(this['stopped']||this[_0xf6a34f(0x565,_0x476a56._0x520782)+_0xf6a34f(_0x476a56._0x4194a4,_0x476a56._0x5eab63)]!==_0x1644fc){_0x1644fc[_0xf6a34f(_0x476a56._0x4ca393,0x523)]();return;}continue;case'6':this['log'](_0xf6a34f(_0x476a56._0x30be6c,_0x476a56._0x53b98d)+_0xf6a34f(0x238,0x3bb)+_0x30b596(_0x476a56._0x2637ae,0x234)+_0xf6a34f(_0x476a56._0x59e1e6,0x498)+_0xf6a34f(_0x476a56._0x2fd0e3,_0x476a56._0x403de2)+this[_0x30b596(_0x476a56._0x5f1c5b,_0x476a56._0x271b57)+'ince'](this[_0x30b596(_0x476a56._0x51cfe9,0x26a)+_0x30b596(0x2e1,0x205)+_0x30b596(-0x276,-0xa7)]));continue;}break;}}),_0x1644fc['on'](_0x7c344a(0x220,_0x5e6043._0x267420),(_0x1cf2f2,_0x38db95)=>{function _0x2ab852(_0x517efe,_0x558b3d){return _0x7c344a(_0x517efe,_0x558b3d- -_0x18fc23._0x4c6a02);}function _0x38d9c7(_0x417467,_0x508c51){return _0x7c344a(_0x508c51,_0x417467-0x7d);}this[_0x38d9c7(_0x171522._0x419ef6,_0x171522._0xd69c39)+_0x2ab852(_0x171522._0x88897c,_0x171522._0x5ee01b)+_0x2ab852(0x2f7,0x224)](_0x1cf2f2,_0x38db95);}),_0x1644fc[_0x487313(_0x5e6043._0x2cb2d8,0x6f7)](_0x7c344a(0x9f,0x10b),_0xb68914=>{function _0x3ac37d(_0x598284,_0x57314f){return _0x7c344a(_0x598284,_0x57314f- -_0x313145._0x43ab1d);}function _0x598958(_0x58cea0,_0x904d7e){return _0x7c344a(_0x904d7e,_0x58cea0-_0x4b5e8f._0xeb4ded);}this[_0x598958(_0x488768._0x4e1250,0x611)]('gateway\x20'+_0x598958(_0x488768._0x2d0a05,0x7bd)+String(_0xb68914));}),_0x1644fc['once'](_0x487313(0x3cf,_0x5e6043._0x44dd87),(_0x4575dc,_0x577e76)=>{this[_0x36e8a4(_0x313872._0x35c388,0x5f5)+_0x8d57d8(0x608,0x75b)]===_0x1644fc&&(this[_0x36e8a4(0x471,0x225)+'ocket']=null);this[_0x8d57d8(_0x313872._0x2dae16,0x3ed)+_0x8d57d8(0x4c3,_0x313872._0x61c0a5)+'g']=![];function _0x8d57d8(_0x3e3fa5,_0x1760a4){return _0x7c344a(_0x3e3fa5,_0x1760a4-_0x2f3caa._0x381519);}this['gatewayH'+_0x36e8a4(_0x313872._0x2d25f9,0x2b3)+_0x8d57d8(0x4f5,_0x313872._0x4f4d98)]=![];function _0x36e8a4(_0x5ca5a0,_0x228707){return _0x7c344a(_0x228707,_0x5ca5a0-_0x4e5219._0x571290);}this[_0x8d57d8(_0x313872._0x3c7cc3,0x3ed)+'onnected'+'AtMs']=null,this[_0x8d57d8(0x1b5,_0x313872._0x588153)+_0x8d57d8(_0x313872._0x5d6674,_0x313872._0x3bda27)]({'gatewayConnected':![],'lastError':_0x4575dc===0x3e8?this[_0x8d57d8(_0x313872._0x5b8616,0x44a)][_0x36e8a4(0x3ab,_0x313872._0x50b745)+'r']:_0x8d57d8(_0x313872._0x546730,0x66a)+_0x8d57d8(_0x313872._0x31678a,0x439)+(_0x577e76[_0x36e8a4(0x315,0x3f5)]()||_0x4575dc)}),this[_0x36e8a4(_0x313872._0x50d403,0x352)]('gateway\x20'+_0x36e8a4(0x233,0x57)+'cted\x20cod'+'e='+_0x4575dc+_0x8d57d8(0x4f4,_0x313872._0x4da0d1)+(_0x577e76[_0x8d57d8(0x390,_0x313872._0x2cc5e8)]()||_0x36e8a4(0x1b7,_0x313872._0x1a03c1))+(_0x36e8a4(_0x313872._0x2e4e68,0x496)+'ientDema'+_0x36e8a4(_0x313872._0x17cab4,_0x313872._0x47192a))+this['elapsedS'+_0x36e8a4(0x51a,_0x313872._0x1d26f8)](this[_0x8d57d8(0x616,_0x313872._0x171a57)+_0x8d57d8(_0x313872._0x1df616,_0x313872._0x17396d)+_0x8d57d8(_0x313872._0x57398e,_0x313872._0x452b57)])),this['schedule'+'GatewayR'+_0x8d57d8(0x2b4,_0x313872._0xe9ed35)]();});}[_0x3a7f13(0x470,0x54d)+'tewayMes'+'sage'](_0x5ebb0e,_0x1cc094){const _0x5186df={_0x281ace:0x511,_0x1cacc0:0x493,_0x2df121:0x5a6,_0x524613:0x5d9,_0x46bc7d:0x813,_0xc9904f:0x775,_0x5120b6:0x5b9,_0x133547:0x73f,_0x280c1f:0x7e0,_0x303b75:0x976,_0x4dd3d7:0x877,_0x54b162:0x710,_0xe5860:0x54c,_0x3eba12:0x470,_0xdb79d3:0x46f,_0x293b5b:0x423};function _0x3b797e(_0x2d23ed,_0x3fa1be){return _0x32d8ea(_0x2d23ed,_0x3fa1be- -0x1d7);}const _0x303f25={'bPGrb':function(_0x1db5b0,_0x5da861){return _0x1db5b0(_0x5da861);}},_0x210e9b=this['relaySoc'+'ket'];if(!_0x210e9b||_0x210e9b[_0x33fd7a(_0x5186df._0x281ace,0x53f)+'te']!==_0x30847f[_0x33fd7a(_0x5186df._0x1cacc0,0x5c8)])return;if(_0x1cc094){_0x210e9b[_0x3b797e(_0x5186df._0x2df121,0x418)](_0x303f25[_0x33fd7a(_0x5186df._0x524613,_0x5186df._0x46bc7d)](normalizeBinary,_0x5ebb0e));return;}function _0x33fd7a(_0x7163f,_0x4ba99b){return _0x32d8ea(_0x4ba99b,_0x7163f- -0x180);}const _0x4bb06a=normalizeText(_0x5ebb0e);if(_0x4bb06a==null)return;const _0x5c2463=parsePairingRequestFromError(_0x4bb06a);_0x5c2463&&this[_0x33fd7a(0x77e,_0x5186df._0xc9904f)+_0x33fd7a(_0x5186df._0x5120b6,_0x5186df._0x133547)+_0x33fd7a(_0x5186df._0x280c1f,_0x5186df._0x303b75)](_0x5c2463);const _0x52631a=_0x303f25[_0x3b797e(0x47f,0x582)](parsePairResolvedEvent,_0x4bb06a);_0x52631a&&this[_0x3b797e(_0x5186df._0x4dd3d7,0x7cd)+_0x3b797e(0x5d0,_0x5186df._0x54b162)+_0x33fd7a(0x89e,0x989)](_0x52631a[_0x33fd7a(0x7a2,0x95a)+'d'],_0x52631a[_0x3b797e(_0x5186df._0xe5860,_0x5186df._0x3eba12)]),_0x210e9b[_0x33fd7a(_0x5186df._0xdb79d3,_0x5186df._0x293b5b)](_0x4bb06a);}['flushPen'+_0x32d8ea(0x556,0x6fe)+_0x3a7f13(0x488,0x4ce)+'ges'](){const _0x15a353={_0x36d576:0x731,_0x17b44e:0x68c,_0x321d18:0x272,_0x35a9f1:0x75,_0x254356:0x10e,_0x39771f:0x223,_0x5105d5:0xcb,_0x1b6e5a:0x51e,_0x18585e:0x1e,_0x4110d7:0x13e,_0xace224:0x1b,_0x32b917:0x13e,_0x2a228d:0x741,_0x1a6c3f:0x6a0,_0xcad3a6:0x20c,_0x317d1e:0x264,_0x38a85d:0x36d,_0x562f0a:0x1bc,_0x5efa5f:0x11b,_0x183718:0x120,_0x671a9c:0x486,_0x32f436:0x3d0,_0x4febca:0x226,_0x47579b:0x209,_0x3e2277:0x1e5,_0x252ee0:0x222},_0x2fef28={_0x3315b1:0x396},_0x2e7282={};_0x2e7282[_0x2512eb(0x20a,0x32d)]=function(_0x5a01a1,_0x1256e5){return _0x5a01a1>_0x1256e5;};const _0x46db71=_0x2e7282,_0x3c35be=this[_0x171b37(_0x15a353._0x36d576,0x5e2)+_0x171b37(0x5bc,_0x15a353._0x17b44e)];if(!_0x3c35be||_0x3c35be[_0x171b37(0x4a3,0x303)+'te']!==_0x30847f['OPEN'])return;const _0x47fa68=[],_0x7317cf=dedupePendingGatewayMessages(this['pendingG'+_0x2512eb(_0x15a353._0x321d18,0x1bc)+_0x2512eb(-0x20c,-_0x15a353._0x35a9f1)]);_0x46db71['Xcsnp'](_0x7317cf['dropped'],0x0)&&this[_0x2512eb(-_0x15a353._0x254356,-0x25)]('dropped\x20'+_0x2512eb(_0x15a353._0x39771f,_0x15a353._0x5105d5)+_0x171b37(0x1fa,0x384)+_0x171b37(0x5c4,_0x15a353._0x1b6e5a)+_0x2512eb(-0x1b4,_0x15a353._0x18585e)+'fore\x20flu'+_0x2512eb(0x1c7,0x1bd)+'ed='+_0x7317cf[_0x2512eb(0x15b,-0xc8)]+_0x171b37(0x20d,0x41c)+_0x7317cf[_0x2512eb(_0x15a353._0x4110d7,0x2b0)][_0x2512eb(_0x15a353._0xace224,_0x15a353._0x32b917)]);this['pendingG'+_0x171b37(_0x15a353._0x2a228d,_0x15a353._0x1a6c3f)+_0x2512eb(-_0x15a353._0xcad3a6,-_0x15a353._0x317d1e)]=[];function _0x171b37(_0x27ab60,_0x2dc8de){return _0x3a7f13(_0x27ab60,_0x2dc8de-0x98);}for(const _0xabf106 of _0x7317cf[_0x2512eb(0x13e,0x251)]){if(!this['gatewayH'+'andshake'+_0x2512eb(0x226,_0x15a353._0x38a85d)]){if(_0xabf106[_0x2512eb(_0x15a353._0x562f0a,0x0)]!==_0x171b37(_0x15a353._0x5efa5f,0x30e)||!isConnectHandshakeRequest(_0xabf106[_0x2512eb(-_0x15a353._0x183718,-0x180)])){_0x47fa68['push'](_0xabf106);continue;}this[_0x171b37(_0x15a353._0x671a9c,_0x15a353._0x32f436)+_0x171b37(0x545,0x5f0)+_0x2512eb(_0x15a353._0x4febca,0x8)]=!![];}this[_0x2512eb(-_0x15a353._0x47579b,-0x3ec)+'teway'](_0xabf106);}function _0x2512eb(_0x14e56b,_0x45590f){return _0x3a7f13(_0x45590f,_0x14e56b- -_0x2fef28._0x3315b1);}this['pendingG'+'atewayMe'+_0x171b37(_0x15a353._0x3e2277,_0x15a353._0x252ee0)]=_0x47fa68;}[_0x32d8ea(0x5bf,0x5b3)+_0x3a7f13(0x294,0x203)](_0x4105aa){const _0x51cb4c={_0x46afcf:0x5be,_0x1c7c6b:0x27e,_0xbf7767:0x492,_0x2ba374:0x8c7,_0x42296c:0x8f8,_0x401a01:0x5ef,_0x27d50f:0x5e8,_0x1e0cb0:0x5ef,_0x104533:0x474,_0x8bb785:0x4af,_0x36ba26:0x52f,_0x185fcf:0x390,_0x5d17f6:0x7f8,_0x58dd3a:0x7b0,_0x292ab6:0x80b,_0x7b0fbd:0x45e,_0x304e97:0x568,_0x1177df:0x3f1},_0x11cfa0={_0x12143d:0x91},_0x270631={'pixCJ':function(_0x62a9c1,_0x2218be,_0x233f70){return _0x62a9c1(_0x2218be,_0x233f70);},'tbVbe':function(_0x4bd9c8,_0x147897){return _0x4bd9c8(_0x147897);}};function _0x5ebf72(_0xcf9ac0,_0x293e92){return _0x3a7f13(_0xcf9ac0,_0x293e92-_0x11cfa0._0x12143d);}const _0x1ca838=this[_0x5ebf72(_0x51cb4c._0x46afcf,0x5db)+_0x25f179(0x96d,0xb35)];function _0x25f179(_0xba29b7,_0x536a09){return _0x3a7f13(_0x536a09,_0xba29b7-0x379);}if(!_0x1ca838||_0x1ca838[_0x25f179(0x5e4,0x826)+'te']!==_0x30847f[_0x5ebf72(0x45d,_0x51cb4c._0x1c7c6b)]){this['pushPend'+_0x25f179(0x660,_0x51cb4c._0xbf7767)+_0x25f179(_0x51cb4c._0x2ba374,_0x51cb4c._0x42296c)+'e'](_0x4105aa);return;}if(_0x4105aa[_0x5ebf72(0x62d,0x5e3)]===_0x25f179(_0x51cb4c._0x401a01,0x789)){const _0x2b2883=_0x270631[_0x5ebf72(0x111,0x2c4)](patchConnectRequestGatewayAuth,_0x4105aa[_0x25f179(0x5ef,_0x51cb4c._0x27d50f)],readOpenClawInfo()),_0xe3b951=parseConnectHandshakeMeta(_0x2b2883[_0x25f179(_0x51cb4c._0x1e0cb0,_0x51cb4c._0x104533)]);_0xe3b951&&this[_0x25f179(0x601,_0x51cb4c._0x401a01)]('gateway\x20'+'connect\x20'+_0x5ebf72(0x679,_0x51cb4c._0x8bb785)+'forwarde'+'d'+_0x270631[_0x5ebf72(0x328,_0x51cb4c._0x36ba26)](formatConnectHandshakeMetaForLog,_0xe3b951));_0x2b2883[_0x5ebf72(0x285,_0x51cb4c._0x185fcf)]&&this[_0x5ebf72(0x1a6,0x319)]('gateway\x20'+_0x25f179(0x7f7,_0x51cb4c._0x5d17f6)+_0x25f179(_0x51cb4c._0x58dd3a,_0x51cb4c._0x292ab6)+_0x5ebf72(_0x51cb4c._0x7b0fbd,_0x51cb4c._0x304e97)+'e=passwo'+'rd');_0x1ca838[_0x25f179(0x542,0x3c8)](_0x2b2883[_0x25f179(0x5ef,0x558)]);return;}_0x1ca838[_0x25f179(0x542,_0x51cb4c._0x1177df)](_0x4105aa['data']);}['sendGate'+_0x3a7f13(-0x82,0x1bf)+'st'](_0x22be31,_0x47ab7b){const _0x267bd7={_0x249989:0x2d6,_0x1dcc1c:0x3be,_0x426c2a:0x2d7,_0x103cb2:0x39,_0x535374:0x2c0},_0x9f8db1={_0x3c4c1c:0x151},_0x16a880={'HRiwJ':function(_0x1b1f86){return _0x1b1f86();}},_0x4fde71=JSON[_0x223756(0x32,0xda)+'y']({'type':_0x223756(0x1a1,0x115),'id':'bridge-'+_0x16a880[_0x51f64f(_0x267bd7._0x249989,0x13b)](_0x45799a),'method':_0x22be31,'params':_0x47ab7b}),_0x313719={};function _0x51f64f(_0x2c5bbb,_0x3c6af3){return _0x3a7f13(_0x3c6af3,_0x2c5bbb- -_0x9f8db1._0x3c4c1c);}_0x313719[_0x223756(_0x267bd7._0x1dcc1c,0x1fb)]='text';function _0x223756(_0x38cf9a,_0xe33c72){return _0x3a7f13(_0x38cf9a,_0xe33c72- -0x357);}_0x313719[_0x51f64f(0x125,_0x267bd7._0x426c2a)]=_0x4fde71,this[_0x223756(_0x267bd7._0x103cb2,-0x10d)+_0x51f64f(0x1df,0x328)+_0x223756(0x104,_0x267bd7._0x535374)+'sage'](_0x313719);}['closeGat'+_0x32d8ea(0x7e8,0x6df)](){const _0x745f04={_0x5a5b2d:0x200,_0x4d0ea3:0x766,_0x380f02:0x880,_0x6f4e08:0xc9,_0x41e2a8:0x193};this[_0x42ed82(_0x745f04._0x5a5b2d,0x361)+_0x103206(0x6e0,0x8e2)]?.[_0x103206(0x779,_0x745f04._0x4d0ea3)](),this[_0x103206(_0x745f04._0x380f02,0x838)+'ocket']=null;function _0x103206(_0x5b8805,_0x4bc590){return _0x3a7f13(_0x5b8805,_0x4bc590-0x2ee);}this['gatewayC'+_0x103206(0x7f3,0x7f8)+'g']=![],this[_0x103206(0x7f3,0x626)+_0x42ed82(0x20e,0x2bd)+_0x42ed82(0x272,0x36)]=![];function _0x42ed82(_0x4cad2b,_0x4daa98){return _0x3a7f13(_0x4daa98,_0x4cad2b- -0x34a);}this[_0x103206(0x790,0x574)+_0x103206(0x69e,0x53b)+_0x42ed82(_0x745f04._0x6f4e08,_0x745f04._0x41e2a8)]=null;}[_0x3a7f13(0x479,0x44e)+_0x3a7f13(0x65d,0x42d)+'onnect'](){const _0x5b6102={_0x21ee16:0xa0,_0xbbaf29:0xf4,_0x5b971d:0x157,_0xea00ea:0x226,_0x1b2840:0x10,_0xc42bef:0x3e2,_0x27da81:0x15f,_0xe6fee3:0x249,_0x35c033:0x378,_0x20b32f:0x56a,_0x147a65:0x1ec,_0x6566ea:0x81,_0x3268c1:0x2f1,_0xa15002:0x11c,_0x243850:0x42,_0x5da79b:0x29f,_0xac9db9:0x1b4,_0x514fe1:0x184,_0x2d638e:0x115},_0x4aa87f={_0xe92fe1:0x40c,_0x5b142b:0x140,_0x4cce5f:0x51e,_0xb618ad:0x389,_0x502ff3:0x27f},_0xf37f28={_0x5683dd:0x2ca},_0x1e2c4a={_0x55fbcd:0xbe},_0x3485d0={};function _0x191543(_0x5b7546,_0x732850){return _0x3a7f13(_0x732850,_0x5b7546- -_0x1e2c4a._0x55fbcd);}_0x3485d0[_0x22836b(_0x5b6102._0x21ee16,-_0x5b6102._0xbbaf29)]=function(_0x1f57ad,_0x17cafb){return _0x1f57ad*_0x17cafb;};const _0x365556=_0x3485d0;if(this['stopped']||this['reconnec'+_0x191543(0xf7,_0x5b6102._0x5b971d)])return;function _0x22836b(_0x1bbca7,_0x43fc86){return _0x3a7f13(_0x1bbca7,_0x43fc86- -_0xf37f28._0x5683dd);}const _0x5d182f=this[_0x191543(_0x5b6102._0xea00ea,-_0x5b6102._0x1b2840)][_0x191543(0x249,0x2fa)+_0x191543(0x4ef,_0x5b6102._0xc42bef)+_0x22836b(0x45a,0x2c6)]??RECONNECT_BASE_DELAY_MS,_0x3140f0=this[_0x22836b(-_0x5b6102._0x27da81,0x1a)][_0x191543(_0x5b6102._0xe6fee3,0x9f)+'tMaxDela'+_0x191543(_0x5b6102._0x35c033,_0x5b6102._0x20b32f)]??RECONNECT_MAX_DELAY_MS,_0x1719d2=Math[_0x22836b(-_0x5b6102._0x147a65,-_0x5b6102._0x6566ea)](_0x3140f0,_0x365556[_0x191543(0x118,0x92)](_0x5d182f,Math[_0x22836b(0x7c,0x2c5)](0x1,this['relayAtt'+_0x191543(0x34d,_0x5b6102._0x3268c1)])));this[_0x22836b(_0x5b6102._0xa15002,-_0x5b6102._0x243850)](_0x191543(0x488,_0x5b6102._0x5da79b)+_0x22836b(0x13d,_0x5b6102._0xac9db9)+_0x22836b(0x277,_0x5b6102._0x514fe1)+'d\x20delayM'+'s='+_0x1719d2),this['reconnec'+_0x22836b(-0x7e,-_0x5b6102._0x2d638e)]=setTimeout(()=>{function _0x3e9d10(_0x2fd62f,_0x2bfc99){return _0x191543(_0x2fd62f-0x26c,_0x2bfc99);}function _0x332067(_0x4cd742,_0x475117){return _0x191543(_0x475117-0x8c,_0x4cd742);}this[_0x332067(_0x4aa87f._0xe92fe1,0x2d5)+_0x3e9d10(0x363,_0x4aa87f._0x5b142b)]=null,void this[_0x332067(0x6f5,_0x4aa87f._0x4cce5f)+_0x3e9d10(_0x4aa87f._0xb618ad,_0x4aa87f._0x502ff3)]();},_0x1719d2);}['schedule'+_0x3a7f13(0x2b9,0x3e1)+_0x3a7f13(0x1d2,0x1c5)](){const _0x3dd219={_0x17e0be:0x42c,_0xd33e9d:0x330,_0x527aae:0x56e,_0x793df1:0x229,_0x3b0ea4:0x30,_0x68f39c:0xc6,_0x2ffafc:0x658,_0x30569b:0x4fe,_0x162128:0x55a},_0x4adc95={_0xca7a30:0x367,_0x3872cb:0x36c,_0x20d360:0x45f,_0x117440:0x29c},_0x1fae21={_0xa41843:0x15d},_0x4a8eec={_0x2ab395:0x7};function _0x2c8749(_0x3961bb,_0x2a704c){return _0x3a7f13(_0x3961bb,_0x2a704c- -0x12a);}function _0x143c0(_0x52bdc5,_0x1df513){return _0x3a7f13(_0x1df513,_0x52bdc5-_0x4a8eec._0x2ab395);}if(this[_0x143c0(_0x3dd219._0x17e0be,_0x3dd219._0xd33e9d)]||this['gatewayR'+_0x2c8749(0x407,0x33a)+'r']||!this['isRelayO'+_0x143c0(0x3e9,_0x3dd219._0x527aae)]())return;const _0x245f5e=this[_0x2c8749(_0x3dd219._0x793df1,0x1ba)][_0x2c8749(-_0x3dd219._0x3b0ea4,_0x3dd219._0x68f39c)+_0x143c0(0x5f2,_0x3dd219._0x2ffafc)+_0x2c8749(_0x3dd219._0x30569b,0x30c)]??GATEWAY_RETRY_DELAY_MS;this[_0x143c0(0x1f7,0x21)+_0x143c0(0x46b,_0x3dd219._0x162128)+'r']=setTimeout(()=>{this[_0x422dbb(0xf3,-0xda)+_0x422dbb(_0x4adc95._0xca7a30,_0x4adc95._0x3872cb)+'r']=null;function _0x1874dd(_0x248b04,_0x2ba807){return _0x2c8749(_0x248b04,_0x2ba807-_0x1fae21._0xa41843);}function _0x422dbb(_0x350e65,_0x33864f){return _0x2c8749(_0x33864f,_0x350e65-0x2d);}this[_0x1874dd(0x58c,_0x4adc95._0x20d360)+_0x422dbb(_0x4adc95._0x117440,0x1a5)+_0x1874dd(0x79a,0x5f6)]();},_0x245f5e);}[_0x3a7f13(0x347,0x4e1)+_0x3a7f13(0x2af,0x34f)](){const _0x6b88cf={_0x5dc74d:0xe4,_0x4fb2fb:0x501,_0x4a9526:0x51e,_0x3ce620:0x3e0,_0x4ef356:0x153,_0x1494b2:0x1d1,_0x35f891:0x37e,_0x5ebd89:0x41d,_0xb9af3c:0x3a4},_0x2e7547={_0x13ca45:0x49b,_0x48a27f:0x51c,_0x26b65f:0x3bb,_0x30e2ed:0x434,_0x48b0e1:0x4d0,_0x5268c5:0x58b,_0x254e3a:0x3de,_0x450382:0x912,_0x495e5d:0x484,_0x1ae785:0x50d,_0x13b774:0x588,_0x1d1a0b:0x3c5,_0x1c80ee:0x1d1},_0x3d0e84={};_0x3d0e84[_0x51c516(_0x6b88cf._0x5dc74d,-0xbb)]='relay\x20he'+_0x16187d(_0x6b88cf._0x4fb2fb,_0x6b88cf._0x4a9526)+_0x51c516(_0x6b88cf._0x3ce620,0x621)+'t';const _0x53516d=_0x3d0e84;function _0x51c516(_0x272911,_0x17f3b4){return _0x32d8ea(_0x17f3b4,_0x272911- -0x5b7);}this['stopHear'+'tbeat']();function _0x16187d(_0x1e58d3,_0x2b13d5){return _0x32d8ea(_0x1e58d3,_0x2b13d5- -0x2ce);}this[_0x16187d(0x608,0x5b5)+'tTimer']=setInterval(()=>{const _0x188d58={_0x294f35:0x80};function _0x213929(_0x52aa23,_0x4dce58){return _0x16187d(_0x4dce58,_0x52aa23- -0x8);}function _0x436faa(_0x17cb06,_0x4117d0){return _0x16187d(_0x4117d0,_0x17cb06- -_0x188d58._0x294f35);}const _0x52c69a=this[_0x436faa(_0x2e7547._0x13ca45,_0x2e7547._0x48a27f)+_0x436faa(0x340,0x2f1)];if(!_0x52c69a||_0x52c69a[_0x213929(_0x2e7547._0x26b65f,0x4f1)+'te']!==_0x30847f['OPEN'])return;const _0x2afcc0=this[_0x213929(_0x2e7547._0x30e2ed,_0x2e7547._0x48b0e1)][_0x213929(0x5ad,0x526)+_0x436faa(_0x2e7547._0x5268c5,_0x2e7547._0x254e3a)+'Ms']??HEARTBEAT_TIMEOUT_MS;if(Date[_0x436faa(0x6c8,_0x2e7547._0x450382)]()-this[_0x436faa(_0x2e7547._0x495e5d,0x32d)+_0x436faa(_0x2e7547._0x1ae785,_0x2e7547._0x13b774)+'yMs']>_0x2afcc0){this[_0x213929(0x3d8,0x3fa)](_0x53516d[_0x213929(_0x2e7547._0x1d1a0b,_0x2e7547._0x1c80ee)]),_0x52c69a['terminat'+'e']();return;}_0x52c69a[_0x213929(0x346,0x171)]();},this[_0x51c516(_0x6b88cf._0x4ef356,0x10d)][_0x51c516(0x2cc,_0x6b88cf._0x1494b2)+_0x51c516(_0x6b88cf._0x35f891,_0x6b88cf._0x5ebd89)+_0x16187d(0x4ab,_0x6b88cf._0xb9af3c)]??HEARTBEAT_INTERVAL_MS);}[_0x3a7f13(0x29b,0x476)+'tbeat'](){const _0xee489d={_0x25f1e7:0x9e9,_0x24f2a1:0x4ad,_0x4b1650:0x2b2,_0x4c8f8c:0x8dc,_0x4935fc:0xac5,_0x1f3bc5:0x6f9,_0x1cbe39:0x64a,_0xefb076:0x7e4};function _0x2e6178(_0x30c707,_0x17ef40){return _0x32d8ea(_0x17ef40,_0x30c707- -0x12e);}function _0x1b1ae9(_0x4a640f,_0x112a8f){return _0x32d8ea(_0x4a640f,_0x112a8f- -0x9f);}const _0xd12a43={'dZhJW':function(_0xce0f7,_0x427a61){return _0xce0f7(_0x427a61);}};this[_0x1b1ae9(_0xee489d._0x25f1e7,0x7e4)+_0x2e6178(_0xee489d._0x24f2a1,_0xee489d._0x4b1650)]&&(_0xd12a43[_0x2e6178(_0xee489d._0x4c8f8c,_0xee489d._0x4935fc)](clearInterval,this[_0x1b1ae9(_0xee489d._0x1f3bc5,0x7e4)+'tTimer']),this[_0x1b1ae9(_0xee489d._0x1cbe39,_0xee489d._0xefb076)+'tTimer']=null);}['pushPend'+'ingGatew'+_0x3a7f13(0x49c,0x54e)+'e'](_0x4fd96e){const _0x4321e7={_0x49cb5e:0xa2c,_0x36a262:0x34b,_0x198faa:0x509,_0x2891aa:0x7fe,_0x1cf3b4:0x34b,_0x5278cc:0x2fd};this[_0x2ca63f(0x7c2,0x5aa)+_0x2ca63f(_0x4321e7._0x49cb5e,0xc28)+'ssages'][_0x2ca63f(0x7d5,0x846)]>=MAX_PENDING_GATEWAY_MESSAGES&&this['pendingG'+_0x2ca63f(_0x4321e7._0x49cb5e,0x837)+_0x546512(_0x4321e7._0x36a262,_0x4321e7._0x198faa)][_0x2ca63f(0x8df,0xa89)]();function _0x546512(_0x459f2b,_0x184289){return _0x32d8ea(_0x184289,_0x459f2b- -0x265);}function _0x2ca63f(_0x245d0d,_0x2068fe){return _0x32d8ea(_0x2068fe,_0x245d0d- -0x2);}this['pendingG'+_0x2ca63f(_0x4321e7._0x49cb5e,_0x4321e7._0x2891aa)+_0x546512(_0x4321e7._0x1cf3b4,_0x4321e7._0x5278cc)]['push'](_0x4fd96e);}['observeC'+'onnectSt'+'art'](_0x146a82,_0x148ea6){const _0x541aad={_0x5d8154:0x510,_0xbece0f:0x46b,_0x49c9ca:0x37b,_0x19ece2:0x63a,_0x4f5282:0x640,_0x5f4257:0x810,_0x14726d:0x89b,_0x233fbb:0xa7f,_0x4f1547:0x5bd,_0x3d662f:0x6ab,_0x453aab:0x6ef,_0x273d25:0x603,_0x1b2b43:0x2d9,_0x1d2a4f:0x599,_0x4b15aa:0x484,_0x4a6964:0x432,_0x8a20a3:0x540,_0x3a761b:0x4ae,_0x1d853d:0x267,_0x506b4b:0x53d},_0x1cfd45={_0x45417a:0x98},_0x953c9c={_0x62be95:0x2f3},_0x493d95={};_0x493d95['vVOAc']=_0x1bfa65(_0x541aad._0x5d8154,0x6aa)+'d';const _0x4c651b=_0x493d95;function _0x1bfa65(_0x146566,_0x1101e4){return _0x3a7f13(_0x1101e4,_0x146566-_0x953c9c._0x62be95);}const _0x57399b=Date[_0x1eea31(0x688,_0x541aad._0xbece0f)](),_0x6564c0=new Map(this[_0x1eea31(_0x541aad._0x49c9ca,0x361)][_0x1bfa65(0x510,0x6df)+_0x1eea31(0x540,_0x541aad._0x19ece2)][_0x1bfa65(_0x541aad._0x4f5282,0x66d)](_0x2fa302=>[_0x2fa302['id'],{..._0x2fa302}])),_0x768f93=_0x6564c0['get'](_0x146a82)??{'id':_0x146a82,'label':_0x148ea6,'state':_0x4c651b[_0x1bfa65(_0x541aad._0x5f4257,0x7c2)],'lastSeenMs':_0x57399b};_0x768f93[_0x1bfa65(_0x541aad._0x14726d,_0x541aad._0x233fbb)]=_0x148ea6,_0x768f93[_0x1bfa65(_0x541aad._0x4f1547,_0x541aad._0x3d662f)]='connecte'+'d',_0x768f93[_0x1bfa65(_0x541aad._0x453aab,_0x541aad._0x273d25)+'Ms']=_0x57399b,_0x6564c0[_0x1eea31(_0x541aad._0x1b2b43,0x3e3)](_0x146a82,_0x768f93);const _0x204725=[..._0x6564c0[_0x1eea31(0x40a,_0x541aad._0x1d2a4f)]()]['sort']((_0xd8e026,_0x3202a8)=>_0x3202a8[_0x1bfa65(0x6ef,0x5dc)+'Ms']-_0xd8e026['lastSeen'+'Ms'])[_0x1eea31(0x3b3,_0x541aad._0x4b15aa)](0x0,MAX_DEVICE_DETAILS),_0x48130e={};_0x48130e[_0x1bfa65(0x510,_0x541aad._0x4a6964)+_0x1eea31(_0x541aad._0x8a20a3,_0x541aad._0x3a761b)]=_0x204725;function _0x1eea31(_0x20fda2,_0xef427){return _0x3a7f13(_0xef427,_0x20fda2-_0x1cfd45._0x45417a);}this[_0x1eea31(_0x541aad._0x1d853d,0x2d8)+_0x1eea31(0x5ee,_0x541aad._0x506b4b)](_0x48130e);}[_0x32d8ea(0x89f,0x7a9)+_0x3a7f13(0x271,0x3a5)+'t'](){const _0x7ed173={_0x1c4e32:0x7f6,_0x2b74b5:0x595,_0x4a58ee:0x309,_0x45fa66:0x53,_0x2fd3b4:0x33};function _0x53a16a(_0x3052bc,_0x22ba52){return _0x3a7f13(_0x22ba52,_0x3052bc- -0x3a0);}function _0x45d8c9(_0x4ea480,_0x5b0ab7){return _0x3a7f13(_0x5b0ab7,_0x4ea480-0x2b2);}this['updateSn'+_0x45d8c9(0x808,_0x7ed173._0x1c4e32)]({'connectedDevices':this[_0x45d8c9(_0x7ed173._0x2b74b5,0x415)]['connecte'+_0x53a16a(0x108,_0x7ed173._0x4a58ee)][_0x53a16a(-_0x7ed173._0x45fa66,-_0x7ed173._0x2fd3b4)](_0x25603a=>({..._0x25603a,'state':_0x53a16a(-0x106,-0x10b)}))});}[_0x32d8ea(0xa82,0x8fe)+_0x3a7f13(0x259,0x313)+_0x3a7f13(0x431,0x53a)](_0x235b93){const _0x2a101b={_0x379cb9:0x82b,_0x37df8a:0x62a,_0x3fb738:0x4ef,_0x43ad03:0x967,_0x36f8d9:0x726,_0x4cad89:0x233,_0x370e16:0xa,_0x356a57:0x1c6,_0x30fc12:0x5fd,_0x1ca1aa:0x611,_0xecb1be:0x30a,_0x156abb:0x5f6,_0x8e5cb4:0x635,_0x29f07b:0x66b,_0x47a3ed:0x5c8,_0x45a628:0x7b1,_0x3b9909:0xbb};if(this[_0x39b3b8(0x690,_0x2a101b._0x379cb9)][_0x39b3b8(_0x2a101b._0x37df8a,_0x2a101b._0x3fb738)+'airReque'+'sts'][_0x39b3b8(_0x2a101b._0x43ad03,_0x2a101b._0x36f8d9)](_0x4c738f=>_0x4c738f[_0x5aeee4(0x38b,0x445)+'d']===_0x235b93[_0x5aeee4(0x4cb,0x445)+'d']))return;const _0x5b0ecb=[...this[_0x5aeee4(_0x2a101b._0x4cad89,0x22c)][_0x5aeee4(_0x2a101b._0x370e16,_0x2a101b._0x356a57)+'airReque'+'sts'],_0x235b93]['slice'](-MAX_PENDING_PAIR_REQUESTS),_0xb8944c={};function _0x5aeee4(_0x4d7dd9,_0x52d6cc){return _0x32d8ea(_0x4d7dd9,_0x52d6cc- -0x4dd);}_0xb8944c[_0x5aeee4(0x3b2,0x1c6)+_0x39b3b8(_0x2a101b._0x30fc12,0x42f)+'sts']=_0x5b0ecb,this[_0x39b3b8(0x57c,_0x2a101b._0x1ca1aa)+'apshot'](_0xb8944c),this[_0x39b3b8(0x691,0x793)][_0x39b3b8(0x642,0x47f)+_0x5aeee4(0x133,_0x2a101b._0xecb1be)+_0x5aeee4(_0x2a101b._0x156abb,0x3df)]?.(_0x235b93);function _0x39b3b8(_0x472860,_0x21711d){return _0x32d8ea(_0x21711d,_0x472860- -0x79);}this[_0x39b3b8(_0x2a101b._0x8e5cb4,0x400)]('pair\x20req'+_0x39b3b8(0x6da,0x7c0)+_0x39b3b8(_0x2a101b._0x29f07b,0x470)+_0x5aeee4(0x42f,0x2cf)+_0x235b93['requestI'+'d']+('\x20deviceI'+'d=')+(_0x235b93[_0x39b3b8(_0x2a101b._0x47a3ed,_0x2a101b._0x45a628)]||_0x5aeee4(_0x2a101b._0x3b9909,0x182)+'>'));}[_0x3a7f13(0x55c,0x57e)+_0x32d8ea(0xa26,0x8e7)+'esolved'](_0x3b8105,_0x5146e7){const _0x594d6c={_0x49a52a:0x506,_0x2524b3:0x752,_0x9f0ebc:0x6e5,_0x30e93b:0x744,_0x5ae1a1:0x421,_0x9c0894:0x2c8,_0x5c2176:0x4d9,_0x546a4c:0x458,_0xd0c633:0x41a,_0x4af966:0x239,_0x5ce297:0x6ec,_0x35f50e:0x663,_0x40bf57:0x658},_0x2baa14=this[_0x827a22(0x487,0x52d)][_0x5c6964(_0x594d6c._0x49a52a,_0x594d6c._0x2524b3)+_0x5c6964(0x4d9,0x541)+_0x5c6964(_0x594d6c._0x9f0ebc,_0x594d6c._0x30e93b)][_0x827a22(0x4f1,0x625)](_0xcda4f2=>_0xcda4f2['requestI'+'d']===_0x3b8105?{..._0xcda4f2,'status':_0x5146e7===_0x5c6964(0x7b9,0x9f4)||_0x5146e7===_0x5c6964(0x412,0x35f)?_0x5146e7:_0xcda4f2['status']}:_0xcda4f2);function _0x5c6964(_0x27adb2,_0x174797){return _0x3a7f13(_0x174797,_0x27adb2-0x289);}const _0xbf4f5b={};_0xbf4f5b[_0x827a22(_0x594d6c._0x5ae1a1,_0x594d6c._0x9c0894)+_0x5c6964(_0x594d6c._0x5c2176,0x364)+_0x5c6964(0x6e5,0x4a4)]=_0x2baa14;function _0x827a22(_0x5be46a,_0x40e774){return _0x3a7f13(_0x40e774,_0x5be46a-0x1a4);}this[_0x5c6964(_0x594d6c._0x546a4c,_0x594d6c._0xd0c633)+_0x5c6964(0x7df,0x656)](_0xbf4f5b),this[_0x827a22(0x42c,_0x594d6c._0x4af966)](_0x827a22(_0x594d6c._0x5ce297,_0x594d6c._0x35f50e)+_0x5c6964(0x55a,0x5b3)+'olved\x20re'+'questId='+_0x3b8105+(_0x827a22(_0x594d6c._0x40bf57,0x6c1)+'n=')+_0x5146e7);}[_0x32d8ea(0x3d6,0x5f5)+'apshot'](_0x203e9d){const _0x6c7134={_0x4e476d:0x263,_0x24a7df:0x29c,_0x166ca8:0x456,_0x275be2:0x10b,_0x7829b8:0x1f4,_0x17f345:0x2cd,_0x500098:0x409,_0x1dcd19:0x485},_0x5312e9={_0x41237a:0x259};function _0x343d4e(_0x5b7447,_0x99efd3){return _0x3a7f13(_0x99efd3,_0x5b7447- -_0x5312e9._0x41237a);}Object[_0x3f06f3(0x5b2,0x57d)](this[_0x3f06f3(_0x6c7134._0x4e476d,_0x6c7134._0x24a7df)],_0x203e9d,{'lastUpdatedMs':Date['now']()});function _0x3f06f3(_0x2aaf4d,_0x5dd903){return _0x3a7f13(_0x2aaf4d,_0x5dd903- -0x47);}this[_0x3f06f3(_0x6c7134._0x166ca8,0x29d)][_0x343d4e(_0x6c7134._0x275be2,_0x6c7134._0x7829b8)]?.(this[_0x343d4e(0x234,_0x6c7134._0x17f345)+_0x3f06f3(_0x6c7134._0x500098,_0x6c7134._0x1dcd19)]());}['log'](_0x48e639){function _0x5e6bfb(_0x44ce56,_0x108ce2){return _0x32d8ea(_0x44ce56,_0x108ce2- -0x249);}this[_0x5e6bfb(0x698,0x4c1)]['onLog']?.(_0x48e639);}[_0x3a7f13(0x6f3,0x5e7)+_0x32d8ea(0x92f,0x808)](){const _0x5857d3={_0x385283:0xd4,_0x58d155:0x90,_0x49a5a0:0x146,_0xc808aa:0x86},_0x4a79a9={_0x169be1:0x759},_0x62f6ba={_0x7042ca:0x70d},_0x10fa60={};function _0x46e165(_0x368343,_0x2e5c5a){return _0x32d8ea(_0x2e5c5a,_0x368343- -_0x62f6ba._0x7042ca);}_0x10fa60[_0x53673e(_0x5857d3._0x385283,0x221)]=function(_0x357942,_0x4f57bf){return _0x357942===_0x4f57bf;};const _0x576e7f=_0x10fa60;function _0x53673e(_0x440e47,_0x281f28){return _0x32d8ea(_0x281f28,_0x440e47- -_0x4a79a9._0x169be1);}return _0x576e7f['CpzvN'](this[_0x53673e(_0x5857d3._0x58d155,-0xd9)+'ket']?.[_0x53673e(-0xc8,-0x2bb)+'te'],_0x30847f[_0x53673e(-_0x5857d3._0x49a5a0,-_0x5857d3._0xc808aa)]);}[_0x32d8ea(0x545,0x65b)+_0x32d8ea(0xa4b,0x99a)](){const _0x26e8af={_0x1c8d07:0x2aa,_0x1a9cfa:0x563,_0x204ea4:0x57e,_0x23ee3f:0x90b,_0x4cd086:0x62c,_0x349471:0x307,_0x408aef:0x3dc},_0x5f39bc={_0x134079:0x65},_0x35eed7={};_0x35eed7[_0xf34309(0x2bc,_0x26e8af._0x1c8d07)]=function(_0x3a0da4,_0x15ed2f){return _0x3a0da4===_0x15ed2f;};function _0x3cc6c1(_0x36b4e7,_0x38030f){return _0x32d8ea(_0x38030f,_0x36b4e7- -_0x5f39bc._0x134079);}const _0x18ed18=_0x35eed7;function _0xf34309(_0x13911a,_0x1a4aec){return _0x32d8ea(_0x1a4aec,_0x13911a- -0x30c);}return _0x18ed18[_0x3cc6c1(_0x26e8af._0x1a9cfa,_0x26e8af._0x204ea4)](this[_0x3cc6c1(_0x26e8af._0x23ee3f,0xab9)+_0x3cc6c1(0x9b5,0x979)]?.[_0x3cc6c1(_0x26e8af._0x4cd086,0x6f0)+'te'],_0x30847f[_0xf34309(_0x26e8af._0x349471,_0x26e8af._0x408aef)]);}[_0x3a7f13(0x606,0x516)+_0x32d8ea(0x508,0x626)](){const _0x33936d={_0x512fdd:0x514,_0x28b916:0x1e2,_0x5b4cc6:0x5c,_0x3bd44b:0x85,_0xc40430:0x1d7,_0x290bef:0x234,_0x44a766:0x14e,_0x720ef6:0x49c,_0x13f0ac:0xd8,_0x17f3f3:0x502},_0x1180f6={_0xd5e108:0x7b2},_0x20aedc={'CZZvg':function(_0x2410fd,_0x12d68b){return _0x2410fd(_0x12d68b);}};this[_0x45572a(_0x33936d._0x512fdd,0x3d2)+_0x2b1852(-_0x33936d._0x28b916,_0x33936d._0x5b4cc6)]();function _0x2b1852(_0x2ae157,_0x2a4f36){return _0x32d8ea(_0x2a4f36,_0x2ae157- -_0x1180f6._0xd5e108);}function _0x45572a(_0x5648c7,_0x574d1e){return _0x32d8ea(_0x574d1e,_0x5648c7- -0x388);}this['reconnec'+'tTimer']&&(_0x20aedc[_0x45572a(0x6ab,0x471)](clearTimeout,this[_0x2b1852(-_0x33936d._0x3bd44b,0x16f)+'tTimer']),this['reconnec'+_0x2b1852(-_0x33936d._0xc40430,-0x2e5)]=null),this[_0x45572a(0x28e,_0x33936d._0x290bef)+_0x2b1852(0xd8,-_0x33936d._0x44a766)+'r']&&(_0x20aedc[_0x45572a(0x6ab,_0x33936d._0x720ef6)](clearTimeout,this[_0x2b1852(-0x19c,-0x209)+_0x2b1852(_0x33936d._0x13f0ac,0x159)+'r']),this[_0x45572a(0x28e,0x217)+_0x45572a(_0x33936d._0x17f3f3,0x3bd)+'r']=null);}[_0x3a7f13(0x333,0x492)+_0x3a7f13(0x64b,0x5f3)](_0x287304){const _0x45f31c={_0x316ed5:0x56c,_0x49b979:0x31e,_0x3158e0:0x9cd},_0xa449ef={_0x351257:0x23},_0x1f0018={_0x2bf83f:0x3dd};function _0x5a7a2c(_0x22268b,_0x46445c){return _0x3a7f13(_0x22268b,_0x46445c-_0x1f0018._0x2bf83f);}function _0x5087aa(_0x3c1502,_0x57119e){return _0x3a7f13(_0x57119e,_0x3c1502- -_0xa449ef._0x351257);}return _0x287304==null?null:Math[_0x5087aa(_0x45f31c._0x316ed5,_0x45f31c._0x49b979)](0x0,Date[_0x5a7a2c(0xbce,_0x45f31c._0x3158e0)]()-_0x287304);}};function shouldRecycleGatewayForFreshClient(_0x18f9ba,_0x1f077c,_0x1a11c7,_0x1a0d5f){return _0x1a11c7&&_0x1f077c>0x0&&(_0x18f9ba===0x0||_0x1a0d5f);}function summarizePendingGatewayMessages(_0x15fc80){const _0x2ce4f1={_0x2ad8a8:0x586,_0x4f747a:0x710,_0x285aee:0x544,_0x3f422d:0x64c,_0x4a491c:0x6a0,_0x4e8028:0x508,_0x433f5e:0x369,_0x19fa73:0x7e2,_0x38a81b:0x1b0,_0x12c9dd:0x203,_0x187790:0x269},_0x20b3e8={_0x39c7ac:0x40f},_0x490eaf={_0x530c6c:0x194},_0x5e69fe={};_0x5e69fe[_0x12be22(0x3a2,_0x2ce4f1._0x2ad8a8)]=_0x8edcef(0x6a0,_0x2ce4f1._0x4f747a);const _0x57130f=_0x5e69fe,_0x55a403={};_0x55a403['total']=_0x15fc80[_0x8edcef(0x643,_0x2ce4f1._0x285aee)],_0x55a403[_0x8edcef(0x7e2,0x806)+'equests']=0x0;function _0x8edcef(_0x49d132,_0x44f30d){return _0x32d8ea(_0x44f30d,_0x49d132- -_0x490eaf._0x530c6c);}_0x55a403[_0x12be22(0x31b,0x269)+'t']=0x0;function _0x12be22(_0x495be7,_0x552978){return _0x32d8ea(_0x495be7,_0x552978- -_0x20b3e8._0x39c7ac);}_0x55a403['binary']=0x0;const _0x482d3d=_0x55a403;for(const _0x1a1445 of _0x15fc80){if(_0x1a1445[_0x12be22(_0x2ce4f1._0x3f422d,0x569)]===_0x57130f[_0x12be22(0x592,0x586)]){_0x482d3d[_0x8edcef(_0x2ce4f1._0x4a491c,0x858)]+=0x1;continue;}if(isConnectHandshakeRequest(_0x1a1445[_0x8edcef(_0x2ce4f1._0x4e8028,_0x2ce4f1._0x433f5e)])){_0x482d3d[_0x8edcef(_0x2ce4f1._0x19fa73,0x5b2)+_0x12be22(0x35,_0x2ce4f1._0x38a81b)]+=0x1;continue;}_0x482d3d[_0x12be22(_0x2ce4f1._0x12c9dd,_0x2ce4f1._0x187790)+'t']+=0x1;}return _0x482d3d;}function dedupePendingGatewayMessages(_0x4280c7){const _0x29b484={_0x1575ea:0x3e1,_0x753c63:0x4ef,_0x4b9581:0x789,_0x1b8572:0x213,_0x2dc8b6:0x6b4,_0x58ec6c:0x291,_0x241c0a:0x2df,_0x2bd355:0x110,_0x398996:0x205,_0x5042ba:0x99},_0x3cf6d4={_0xdc4ee5:0x23b},_0x2dd3bf={_0x1925a4:0x669};function _0x4da3ce(_0x524d2b,_0x1e7674){return _0x32d8ea(_0x1e7674,_0x524d2b- -_0x2dd3bf._0x1925a4);}function _0x123ab2(_0x30b0eb,_0x4743fa){return _0x32d8ea(_0x30b0eb,_0x4743fa- -_0x3cf6d4._0xdc4ee5);}const _0xe41506={};_0xe41506[_0x123ab2(_0x29b484._0x1575ea,_0x29b484._0x753c63)]=function(_0x55e0f3,_0x4b6fb5){return _0x55e0f3<=_0x4b6fb5;},_0xe41506[_0x123ab2(_0x29b484._0x4b9581,0x604)]=function(_0x3ce36f,_0x5547f2){return _0x3ce36f-_0x5547f2;};const _0x4720f0=_0xe41506;let _0x575bcd=-0x1;for(let _0x38913c=_0x4280c7[_0x4da3ce(0x16e,_0x29b484._0x1b8572)]-0x1;_0x38913c>=0x0;_0x38913c-=0x1){const _0xbb07b=_0x4280c7[_0x38913c];if(_0xbb07b?.[_0x123ab2(_0x29b484._0x2dc8b6,0x73d)]==='text'&&isConnectHandshakeRequest(_0xbb07b[_0x4da3ce(0x33,-0x11a)])){_0x575bcd=_0x38913c;break;}}if(_0x4720f0['UgLJE'](_0x575bcd,0x0)){const _0x837300={};return _0x837300[_0x4da3ce(_0x29b484._0x58ec6c,_0x29b484._0x241c0a)]=[..._0x4280c7],_0x837300[_0x4da3ce(0x2ae,_0x29b484._0x2bd355)]=0x0,_0x837300;}const _0x56e61e=_0x4280c7[_0x4da3ce(_0x29b484._0x398996,0xc1)]((_0x84ae08,_0x3d5bb9)=>_0x3d5bb9>=_0x575bcd||(_0x84ae08[_0x4da3ce(0x30f,0x372)]!==_0x4da3ce(0x33,0x26b)||!isConnectHandshakeRequest(_0x84ae08[_0x4da3ce(0x33,0xf8)])));return{'messages':_0x56e61e,'dropped':_0x4720f0['QrXAf'](_0x4280c7['length'],_0x56e61e[_0x4da3ce(0x16e,_0x29b484._0x5042ba)])};}function prunePendingGatewayMessagesForFreshDemand(_0x37a750){const _0x1eb042={_0x587fbb:0x19,_0x426151:0x2e6,_0x173081:0xd2,_0x23109c:0xd8,_0x5a446a:0x212,_0x1e92f3:0x19,_0x117bfa:0x137,_0x480112:0x70c,_0x36f36c:0x553,_0x265844:0x78,_0x1c8e8e:0x1f5,_0x5c3067:0xcb,_0x4c93b9:0xd2},_0x20a1c7={_0xc16832:0x705},_0x5be7ce={_0x2915df:0x1ee},_0x5a927e={};_0x5a927e[_0x13648e(0x247,_0x1eb042._0x587fbb)]=function(_0x3d1ad3,_0x46811f){return _0x3d1ad3-_0x46811f;},_0x5a927e[_0x1f7a63(0x7c5,0x797)]=function(_0x24296f,_0x15029b){return _0x24296f===_0x15029b;};const _0x51ccb2=_0x5a927e;if(_0x37a750[_0x13648e(_0x1eb042._0x426151,_0x1eb042._0x173081)]===0x0){const _0xca3526={};return _0xca3526[_0x13648e(0xa9,0x1f5)]=[],_0xca3526[_0x13648e(_0x1eb042._0x23109c,_0x1eb042._0x5a446a)]=0x0,_0xca3526;}function _0x1f7a63(_0x6c61ef,_0x32c4d7){return _0x32d8ea(_0x6c61ef,_0x32c4d7- -_0x5be7ce._0x2915df);}let _0x35200b=-0x1;for(let _0x3f0674=_0x51ccb2[_0x13648e(-0x26,_0x1eb042._0x1e92f3)](_0x37a750[_0x13648e(0x167,0xd2)],0x1);_0x3f0674>=0x0;_0x3f0674-=0x1){const _0x4bcf19=_0x37a750[_0x3f0674];if(_0x4bcf19?.[_0x13648e(0x354,0x273)]===_0x13648e(_0x1eb042._0x117bfa,-0x69)&&isConnectHandshakeRequest(_0x4bcf19['text'])){_0x35200b=_0x3f0674;break;}}if(_0x51ccb2[_0x1f7a63(0x911,0x797)](_0x35200b,-0x1)){const _0x3fc91c={};return _0x3fc91c[_0x1f7a63(0x5e5,_0x1eb042._0x480112)]=[],_0x3fc91c[_0x1f7a63(0x808,0x729)]=_0x37a750[_0x1f7a63(0x7f5,0x5e9)],_0x3fc91c;}const _0x549490=_0x37a750[_0x1f7a63(0x5f1,_0x1eb042._0x36f36c)](_0x35200b),_0x4d08dd={};_0x4d08dd[_0x13648e(_0x1eb042._0x265844,_0x1eb042._0x1c8e8e)]=_0x549490;function _0x13648e(_0x4b075c,_0x4b180c){return _0x32d8ea(_0x4b075c,_0x4b180c- -_0x20a1c7._0xc16832);}return _0x4d08dd[_0x13648e(_0x1eb042._0x5c3067,0x212)]=_0x37a750['length']-_0x549490[_0x13648e(0x1c4,_0x1eb042._0x4c93b9)],_0x4d08dd;}function patchConnectRequestGatewayAuth(_0x11536e,_0x5a369b){const _0x3ad6e9={_0x29cb8b:0x9de,_0x53dffc:0x9e3,_0x4c7f7a:0x395,_0x465b48:0x46b,_0x12f0fd:0x97d,_0x1980a4:0x6b5,_0x1f3bd9:0x45f,_0x509b35:0x6b6,_0x1d8ba0:0x755,_0xb04e0e:0x755,_0xab5cf:0x394,_0x43605b:0x70b,_0x37aca1:0x6fa,_0xd247cd:0x51b,_0x36f534:0x674,_0xe75d92:0x5a2,_0x53367e:0x2d9,_0x4205e6:0x1f1,_0x190a97:0x2e3,_0x5cb0eb:0x65e,_0x515936:0x5ba,_0x13b2e5:0x8b7,_0x1b1be5:0x65b,_0x22f840:0x2f6},_0x23b892={_0xf5f2a2:0x26},_0x19183e={};_0x19183e[_0x488f46(_0x3ad6e9._0x29cb8b,_0x3ad6e9._0x53dffc)]=_0x4340ad(_0x3ad6e9._0x4c7f7a,0x446),_0x19183e[_0x4340ad(0xf2,0x1a4)]=_0x4340ad(0x583,_0x3ad6e9._0x465b48),_0x19183e[_0x488f46(0x8c6,_0x3ad6e9._0x12f0fd)]=_0x488f46(0x488,_0x3ad6e9._0x1980a4);const _0x23dd96=_0x19183e;if(_0x5a369b[_0x4340ad(0x2c7,_0x3ad6e9._0x1f3bd9)]!==_0x488f46(_0x3ad6e9._0x509b35,_0x3ad6e9._0x1d8ba0)||!_0x5a369b[_0x488f46(0x551,_0x3ad6e9._0xb04e0e)]){const _0x365a9d={};return _0x365a9d[_0x4340ad(_0x3ad6e9._0xab5cf,0x250)]=_0x11536e,_0x365a9d['injected']=![],_0x365a9d;}function _0x4340ad(_0x1471dc,_0x23637a){return _0x3a7f13(_0x1471dc,_0x23637a- -_0x23b892._0xf5f2a2);}function _0x488f46(_0x1ee7c7,_0x2be30e){return _0x3a7f13(_0x1ee7c7,_0x2be30e-0x3e5);}try{const _0x56ae17=JSON[_0x488f46(0x7a5,0x6fb)](_0x11536e);if(_0x56ae17[_0x488f46(_0x3ad6e9._0x43605b,0x83e)]!==_0x23dd96['gEhsb']||_0x56ae17[_0x488f46(0x4b8,_0x3ad6e9._0x37aca1)]!==_0x23dd96[_0x488f46(_0x3ad6e9._0xd247cd,0x5af)]&&_0x56ae17[_0x488f46(0x714,_0x3ad6e9._0x37aca1)]!=='connect.'+_0x4340ad(_0x3ad6e9._0x36f534,_0x3ad6e9._0xe75d92)){const _0x21f8cd={};return _0x21f8cd['text']=_0x11536e,_0x21f8cd[_0x4340ad(0xbf,_0x3ad6e9._0x53367e)]=![],_0x21f8cd;}const _0x48c863=_0x56ae17[_0x4340ad(_0x3ad6e9._0x4205e6,_0x3ad6e9._0x190a97)]&&typeof _0x56ae17['params']==='object'?{..._0x56ae17[_0x4340ad(0x360,0x2e3)]}:{},_0x48631c=_0x48c863['auth']&&typeof _0x48c863['auth']===_0x23dd96['bUGPU']?{..._0x48c863[_0x4340ad(_0x3ad6e9._0x5cb0eb,_0x3ad6e9._0x515936)]}:{},_0x253a81=typeof _0x48631c[_0x488f46(0x57f,0x755)]===_0x4340ad(0x256,0x1c0)?_0x48631c[_0x488f46(_0x3ad6e9._0x13b2e5,0x755)][_0x488f46(0x8ab,0x9ee)]():'';if(_0x253a81){const _0x5a017e={};return _0x5a017e[_0x488f46(0x411,_0x3ad6e9._0x1b1be5)]=_0x11536e,_0x5a017e[_0x488f46(0x4d1,0x6e4)]=![],_0x5a017e;}_0x48631c['password']=_0x5a369b[_0x4340ad(0x319,0x34a)],_0x48c863[_0x488f46(0x865,0x9c5)]=_0x48631c;const _0xc37d41={..._0x56ae17};return _0xc37d41[_0x488f46(0x4bb,0x6ee)]=_0x48c863,{'text':JSON['stringif'+'y'](_0xc37d41),'injected':!![]};}catch{const _0x49aa6e={};return _0x49aa6e[_0x4340ad(0x190,0x250)]=_0x11536e,_0x49aa6e[_0x4340ad(_0x3ad6e9._0x22f840,_0x3ad6e9._0x53367e)]=![],_0x49aa6e;}}function formatConnectHandshakeMetaForLog(_0x11737f){const _0x8a2974={_0x174dce:0xa6,_0x8276fe:0x290,_0xb52bb1:0x126,_0x498eb6:0x1fc,_0x4adf78:0x110,_0x460b89:0x144,_0x3617b9:0x2ff,_0x513feb:0x2b8,_0x4c82dc:0x272,_0x1d7a62:0x19d,_0x1781be:0x89,_0x50aafb:0xc3,_0x2fb13:0x2bc,_0x1d584c:0x3d9,_0xaa20ae:0x33d,_0x248c9e:0x3c4,_0x5e3c62:0x3d4},_0x120f63={_0x546282:0x683},_0x12ac69={_0x424d86:0x53f},_0xeebe90={};_0xeebe90[_0x259672(-_0x8a2974._0x174dce,0x4b)]=function(_0x3d3608,_0x37202c){return _0x3d3608>_0x37202c;},_0xeebe90[_0x259672(_0x8a2974._0x8276fe,_0x8a2974._0xb52bb1)]=_0x259672(0x33,-0x1f9);function _0x5a68a2(_0x5932e7,_0x48ae65){return _0x32d8ea(_0x5932e7,_0x48ae65- -_0x12ac69._0x424d86);}function _0x259672(_0x437ac8,_0x54ec26){return _0x32d8ea(_0x54ec26,_0x437ac8- -_0x120f63._0x546282);}const _0x11da30=_0xeebe90;if(!_0x11737f)return'';return _0x5a68a2(_0x8a2974._0x498eb6,_0x8a2974._0x4adf78)+_0x11737f['method']+_0x259672(0x258,_0x8a2974._0x460b89)+(_0x11737f['id']??_0x259672(0x33,0x20))+(_0x259672(_0x8a2974._0x3617b9,0xea)+_0x259672(_0x8a2974._0x513feb,_0x8a2974._0x4c82dc))+_0x11737f['noncePre'+_0x259672(_0x8a2974._0x1d7a62,-_0x8a2974._0x1781be)]+('\x20nonceLe'+_0x5a68a2(0x4b8,0x45a))+(_0x11737f[_0x5a68a2(_0x8a2974._0x50aafb,0x196)+'gth']??0x0)+(_0x5a68a2(0x102,_0x8a2974._0x2fb13)+_0x259672(0x2b3,_0x8a2974._0x1d584c))+(_0x11da30['TCxrv'](_0x11737f[_0x259672(0x190,_0x8a2974._0xaa20ae)+'ds']['length'],0x0)?_0x11737f[_0x5a68a2(_0x8a2974._0x248c9e,0x2d4)+'ds']['join'](','):_0x11da30[_0x5a68a2(0x52b,_0x8a2974._0x5e3c62)]);}function buildRelayWsUrl(_0x589cb4){const _0x3de812={_0x5013d3:0x2ee,_0x2f09a9:0x872,_0x1dedd5:0x426,_0x4a230d:0x84a,_0x5d6604:0x42b,_0x513186:0x485,_0xea731:0x5c6,_0x58b9d6:0x3f1,_0x372a3e:0x6e4,_0x423b94:0x309,_0x5562ee:0x53c,_0x1f22b7:0x1f9,_0x419452:0x44c,_0x1fbfb3:0x5e9,_0x1dddc9:0x20f,_0x260caa:0x2b,_0x758bcb:0x54b,_0x3e256c:0x5c6,_0x2138d2:0x5aa,_0x2871c9:0x836,_0x487ae4:0x91b},_0x1df9ad={_0xc4d836:0x385},_0x444e4e={_0x1c9c90:0x60},_0x23ebf1={};function _0x17098a(_0x325f29,_0x2e2794){return _0x3a7f13(_0x2e2794,_0x325f29-_0x444e4e._0x1c9c90);}_0x23ebf1[_0x17098a(0x3d9,_0x3de812._0x5013d3)]=_0x2bdbf2(_0x3de812._0x2f09a9,0x97e);function _0x2bdbf2(_0x634379,_0x519a15){return _0x3a7f13(_0x634379,_0x519a15-_0x1df9ad._0xc4d836);}const _0x33bba6=_0x23ebf1,_0x546300=new URL(_0x589cb4['relayUrl']);return(!_0x546300[_0x17098a(0x5dd,_0x3de812._0x1dedd5)]||_0x546300['pathname']==='/')&&(_0x546300[_0x2bdbf2(_0x3de812._0x4a230d,0x902)]=_0x17098a(_0x3de812._0x5d6604,_0x3de812._0x513186)),_0x546300[_0x17098a(0x309,0x3ee)+_0x2bdbf2(0x33e,0x53d)][_0x2bdbf2(0x63b,_0x3de812._0xea731)](_0x17098a(0x4d5,0x66b)+'d',_0x589cb4['gatewayI'+'d']),_0x546300[_0x17098a(0x309,_0x3de812._0x58b9d6)+'rams'][_0x2bdbf2(0x76b,_0x3de812._0xea731)](_0x33bba6['nDnmQ'],_0x2bdbf2(0x526,_0x3de812._0x372a3e)),_0x546300[_0x17098a(_0x3de812._0x423b94,_0x3de812._0x5562ee)+_0x17098a(0x218,0x45e)][_0x17098a(0x2a1,_0x3de812._0x1f22b7)](_0x2bdbf2(_0x3de812._0x419452,_0x3de812._0x1fbfb3),_0x589cb4['instance'+'Id']),_0x546300[_0x17098a(0x309,_0x3de812._0x1dddc9)+_0x17098a(0x218,_0x3de812._0x260caa)][_0x2bdbf2(_0x3de812._0x758bcb,_0x3de812._0x3e256c)]('token',_0x589cb4[_0x17098a(0x403,_0x3de812._0x2138d2)+_0x2bdbf2(_0x3de812._0x2871c9,0x811)]),_0x546300[_0x2bdbf2(_0x3de812._0x487ae4,0x773)]();}function redactRelayWsUrl(_0x33e478){const _0x5bb0db={_0x469788:0x50f,_0x45d8e7:0x73d,_0xe00fe4:0x6b1,_0x22d457:0x7e8,_0x4e6108:0x598,_0x5bdc7e:0x616};function _0x49b288(_0x2eec10,_0xacbca0){return _0x32d8ea(_0xacbca0,_0x2eec10- -0x1de);}function _0x1602d2(_0x4a1fa4,_0x34d562){return _0x32d8ea(_0x34d562,_0x4a1fa4- -0xcf);}const _0x5395e4=new URL(_0x33e478);return _0x5395e4['searchPa'+_0x1602d2(_0x5bb0db._0x469788,0x41c)][_0x49b288(_0x5bb0db._0x45d8e7,0x975)](_0x49b288(_0x5bb0db._0xe00fe4,_0x5bb0db._0x22d457))&&_0x5395e4['searchPa'+'rams'][_0x1602d2(_0x5bb0db._0x4e6108,0x5ae)](_0x1602d2(0x7c0,_0x5bb0db._0x5bdc7e),'<redacte'+'d>'),_0x5395e4['toString']();}function _0x472c(){const _0x183dbe=['DgLTzwqGB3u','AfbZrhi','BMD0Ad0','Eu9Wzw4','ihrOzsbWywK','q0Xbv0rct1q','zg9JDg9YifS','C29YDa','EvvpA3a','zcbPCYbTAxm','wfHiz0m','zxj2AwnLlwW','Cgf0Ag5HBwu','BwfYA1bHAxi','DgfSBgf0Aw8','seTdvvXtB2y','Ag9ZDa','zxnOignSAwu','CxvLCNK','y2XPzw50x2m','DuTMuLO','yNiT','ig5HBwu9','tNf0ufy','r3zTs1e','mc4WlJaUma','nJyWndi1wg1zrwXU','q2TeC20','D2Lyzvq','Bg9NCYbMB3u','Bwf4','yxLnCW','Dd4k','CgTOB2q','y2XPzw50q28','CMvSyxLvCMW','tg9JywWGt3a','zguGAw4GDgG','B2zM','yLvhufu','D3m6lY8','Ahr0CdOVlW','CMvSyxLdB24','y2uGCMvNAxm','tfvwyM4','tK9ux1bbsvi','w3n0yxr1C10','wgnZBNa','BIbMywLSzwq','A2v5CW','y29UzMLNrM8','ls1Uyw1L','zNjVBq','Cfj2Bwq','s3nAvLe','BgfIzwW','ig1VCMuGzgu','Bwf4ugf5Bg8','AvrLt0m','BMqGC2vYDMK','DejHC2vezwW','B2r5','DhvU','CM9TigeGzgK','yxvUy2HLCI4','zxqGyxbWoGO','BM5Ly3rLzca','B3iGCgfZC3C','Dg9YycbMB3i','zgvZDhjVEq','ywnRz3jVDw4','jNf1B3q7','C3rHBguGCxu','C29Tzq','B2TLBG','u3rHCNrLza','C0HqCwu','DhjHDgLVBI4','AM9PBG','yvrTy3y','ihjLBgf5pq','C2vYDMLJzq','BMvJDgvK','yxnZAwDU','BIaIy2XHD2S','rM91BMq','C2nVBM5Ly3q','C3rHCNq','y29UzMLNoIa','je5prevFuee','Dw5PBNn0ywW','yxj0','zxnJCMLWDgK','zgvMyxvSDeC','qxjNDw1LBNq','zgvYia','ywLYlNjLAMu','Dxr1BG','B2nHBcbBls0','ihrVihnWzwm','zxj2AwnLige','tM8GBwf0y2G','AgfSBgvUz2u','EgLjC0u','idXWyxrOpL0','z2uUANnVBG','zwXVywq','Et5mywjLBdW','DM1Uzxq','BwfPBG','AgfIBgu','yxv0Aa','DgfPBhnJywW','swq9','BMv0D29YAY0','zfPOsLC','u3rHCNrPBMC','qun4yxG','AxnszwXHEu8','CM91BMqGC2u','AgvSCa','y2HHBMDLzc4','zxrYEurLBge','qMfJA2DYB3u','B25Jzq','lI4U','kYKRja','BM93','r0P0Eu8','Aw5N','Aw5Jzq','B2nRzxq','AcbMB3iGC2u','zgvfEhbPCMu','ywnRihrVia','zxnVBhzLza','CM9Szq','ig9Yia','Aw5ZDgfUy2u','rxHWAxjLCZO','BNvTyMvY','z0vOC2i','l1bjra','BM9Uy2u','zxHPDenVzgu','Aw5Nienmssa','BNqGDgHHDca','y3jLyxrLzee','C3rYEq','DhDHCMvCtwK','twnmzuW','yxrLD2f5twu','DhjPBq','BgLUzxm','BgfZDe1Z','y0rQtNu','q1PADMC','igrPCJOG','y291BNq','Es11CMW','Bgf5q29UDhi','EgTqzu8','ru4IicjODhq','AxqU','B2ThAxm','A2vtDgfYDgu','Dgv3yxLnzxm','ls1XDwLLDa','tK5cuuS','cIaGpc9HCNi','u0Xqqwy','zg93BG','ihvYBd0','D2LUzg93C0G','zM91BMqGDw4','B2rLiciKu0m','yxr0zw1WDgu','C2vYDMvYidW','icbLEgvJig4','CMvQzwn0zwq','C3nHz2vZ','zxvLigjLzM8','sLjMywq','C2vUzfrVr2e','CMvHy2HHyMW','Dg9ju09tDhi','AgfUzgXLuMu','uKvhx1nA','zxrcCMLKz2u','DMv0Aa','CMvJDxjZAxy','ihzLCMLMAwm','ihrLEhq9','pGOGidXRzxK','C29U','zxf1zxn0CW','zwnHDxnLigW','AcbHigrPzMy','zcbXDwv1zwq','rKnwu2W','Dw5HDMfPBge','tvvmAKK','uKW6ia','jJe7ihrOzw4','tMPds0m','s0zVy2O','lMPZB24','CNvU','DhjSk0mGDg8','C3rHBgXHDgK','Aw1Hz2uVCg4','ygnSyxDRzxq','DgjLyxq','CMvXlq','l0rurcbqteK','DaPxyw50CZ0','AwXTBMi','zw5nCZ0','zxjYB3jdB3i','BhPwzLa','zw50','nxW3FdL8mNW','igjYAwrNzsa','DfrPBwvY','zuXLALy','ven4CNy','CMfTCW','AxrsufO','ENDPDNy','BgLUDxG','CNvUiIbTyw4','A2uGmZbZlca','CMuGCMvJEwm','D2f5uMvXDwu','yMXLigr1CMK','tKHTD3G','zM9YBsbMB3i','tK9erv9qqvq','zZOG','zwnVBM5Ly3q','iurpq1rzueu','r2f0zxDHEsa','AwmGzMfSBgi','C2vUza','z2rTAhe','igHHCYbIB3q','ugf0AdWVA2u','phbHDgG+xsa','ChvZAfbLBMq','DxbKyxrLu24','lJaUmc4XoJe','Bs9everZl1a','ChvZAa','C2LVBJ0Ims4','Bg9Nugf0Aa','ls1SAw5LCW','C0ftufe','EwvZ','B2jZzxj2zum','BMvZidWYmda','y3jVC29MDfW','zwXHEq','cIaGphn0CMK','Df9YzwXHEv8','C2vYDMvYvxi','vujmsumGiI0','r2vUzxjHDgu','y3DQuK8','C2fNzxmGyMu','ChbW','BwLSEq','zLjOzNG','C3rYAw5N','CMvZ','mtbVy3vdwwu','vND0uLG','EgPnAM8','DxjS','zw50CMLLCW','t1bftG','DgGG','uviGAw1Hz2u','z2f0zxDHEvi','B3qGzM91BMq','DgfPBhmSig8','Aw5ZDgfSBa','zxHWAxjLC0e','ze91Dhb1Dd0','CgLUzW','DgHLienSyxC','pGO8l2rPy3q','CgfPCMLUzYa','ls11C2vY','C3LZDgvTzc0','kcGOlISPkYK','CgfPCMvK','ugf0Aa','uMvZDgfYDgu','zxjZ','ihrVA2vUoIa','ywDLBNrZ','Dgv3yxK','ihbSAxn0ifa','lZeYnY4WlJa','CuD4BMy','BeTSzwW','zxHWBgLJAxq','ienSyxDRzxq','rg5Osg4','CNvUBMLUzW','AgvHzgvYCW','zxHLy1bHDgG','CNvLlZ4kica','C2vYDMvYlw0','tLvOvfe','mti3lJaUmc4','ywXSzwq','zcbHigXVy2e','zMX1C2Hqzw4','ls1Zzxj2zxi','Bef0wNq','CNvUlxjLz2K','zxjYB3i','AxmGBg9JywW','ihrVA2vUig8','zgv2AwnLswq','DgvKqxrnCW','y29UBMvJDgu','ztOG','y2uU','y29UzMLNuge','zgvJAxnPB24','BMqU','C3rHCNrZv2K','DgG8l2TLEt4','C21HBgW','zguGCNvUDgK','zw1HBMqGzhi','CYb1BNnLDc4','ig1LDgHVzd0','tfLtrhu','C21QAey','shnNvwW','igfSC28GAgK','sgTzBwm','q1buAgK','CgfPCIaTlwW','CMvN','pwfSD2f5CWO','CgL4q0O','Fdr8mtq','AxnhyxrLD2e','Dg9Y','y2XPzw50x2q','yuLstfe','phvUA25VD24','AxmGuviGy28','CIbWyxnZD28','C3vJy2vLzgu','yxbWzw5KoG','ywLYlMfWChi','l3jVB3q','DxjSpL0GwY0','C2v0','yxrO','z2v0vgLTzq','lxfYlwzPBgu','t0T6sxu','zxDHEvvYBa','CMvJEwnSzsa','DgHLBG','BwLU','zM9YD2fYze8','t1bftKnmqvC','Be1Z','B25Uzwn0zwq','ANnVBG','ihbHC3n3B3i','ywLYuMvXDwu','ywrK','B3rOzxjuzxG','ihjLyxnVBJ0','igXV','zcWGCNvUBMK','igj1DcbNyxq','y3qGAgfUzhm','AxjZDc4Gq28','rxHYq1K','zcbIywnRz3i','icbLEgvJici','z2f0zxDHEvu','BYbYzxnVBhy','ktOGq2XVDwq','mNW0Fdv8mxW','zgv2AwnLtMe','BhzLza','ls1Zzxj2Awm','CNvUDgLTzsa','y2XPzw50swq','yxnZD29Yza','y29UzMLNig4','tu5Iu3m','A2v0','B25HBgX5ihC','Cgf0AevUDG','CMvHzhLtDge','nNW4Fdv8m3W','zwqU','uMvTB3zLzca','thr3DMS','yw5Ktxm9','rwrYA28','y29Uy2f0','zfvYBa','Dgv3yxKGCxu','ANPqvwK','Dgv4Da','AvnLyM4','iejYAwrNzsa','CMvWBgfJzq','zxqGqNjPzgC','zs5JBgK','rePZr08','CgvUzgLUz1a','zxzLBNq','DM1IBKC','q2nwEwe','r0fJAuW','Bg9Hza','BwLZC2LUzW','BMHwzgO','CLvKwNq','z2f0zxDHEum','lMfP','Bg9N','yMfJA2DYB3u','DgfSBgvKigi','mtH2rK5JA1a','zhKGCNvUBMK','cLn0yw5Kyxi','cGPBsw5ZDge','q3vlAw4','pg5VBMu+','ihrVA2vUigK','ihvUy2HHBMC','zMLNDxjLzcW','Esb0B2TLBIa','B25qzw5KAw4','DvvjD2u','lxnLCNzPy2u','qxv0BY1PBNm','Bg9JywXhyxq','CMvJzw50','yxbWCM92zva','Bwf0y2G','ienmssbZzxi','zhjVChbLzca','lNnLCNzPy2u','cLjLC3rHCNq','Bwu+xsbBls0','q2XLyxjLzca','Ac5TB2rLigK','igf0ia','lY5VCgvUy2W','sciGCNvUic0','CgfPCG','Aw5NpG','C2vHCMnOuge','y2XVC2vhyxq','DgvK','ywXSzw5Nzsa','C2nYAxb0uge','Bhr0tNO','BM9Uy2vmzw4','D3nZoI8V','mteWu2LSzxHT','ls1XCI1MAwW','DxnLCM5HBwu','ls1LCNjVCNm','EsbruIbPBIa','AxjJqNa','AxmTywn0Axy','zxK+uNvUqxq','zxDHEq','AgT2Eeq','B3bLBG','m3W2Fdb8mtm','B3jKks4','zgLUzYbYzxe','nhWWFdD8mxW','BMzPzYbWyxq','B3vUzcbMB3i','yMfZzty0','ls1UB3C','wNb4tgK','ue9tva','zwm9mGPxB3i','uKLqvf9qqvq','sMTIy3y','BM9KzvbHDgG','C3rHDgu','BKnSyxCGChi','suq6ia','zgv2AwnLlNa','CgfPCIbSB2m','yxK+cIaGpgS','B2jQzwn0','DwvZDcbYzxm','y2XVC2vKoIa','yw50ihrVigi','iI4GvxnLihy','Cgf5Bg9Hza','vwD1Bgu','x1bbu1nxt1i','zgLUz0DHDgu','D29YzcbJB24','y2yTBwL0AwC','CZWVA2v5pGO','zMXVB3i','zMDAt2i','rLrPvLe','zMzLCMvUDca','vg9Rzw5gB3u','Ahr0Chm6lY8','zg9LCYbUB3q','C25HChnOB3q','B3b0Aw9UCW','zxDHEsa','vvjmoIa','Aw5Nr2f0zxC','Axres2u','CMvZAgvKlG','BgKUBg9N','CMnLycbVBMW','zxvLzcbNyxq','l251BgWGmJ4','ywLYzwqGD2K','BgLLBNrezw0','CgvUzgLUzW','ywn0Aw9U','ywnJzxb0','tNzmv2q','y29UDgvUDc0','yMXVy2TLzca','zgv2AwnL','zxnO','thriy3i','wuXkr2C','AwrLBNrPDhK','AxnbCNjHEq','tuPcExu','CNvUifSTlwC','u2vYDMLJzv0','Aw5Qzwn0zwq','qw16s1y','cLr5Cgu9C2K','BgKUANnVBG','yxrLD2f5t3a','vwDmsKu','yuPIAhu','tNPwu0G','CMvJB25Uzwm','twvKAwfeAxi','CgfYyw1Z','C3rHCNrLzca','CMvZDgfYDa','zgLZy29UBMu','B3j0pL0GwY0','z2f0zxDHEvq','B24U','wKPXAeK','ywKUy2XHD2S','igvYCM9Ypq','BMDqywLYuMu','Bg9NCW','Bwv0Ag9K','CgfYC2u','AwWGz2f0zxC','zg9JDg9Y','qvripsi','C29wsLy','C2XPy2u','zfnKuxC','DMLJzsbYzxm','suzxuwm','CgLK','u0vWA2u','tg9NihbHDgG','swHxwha','Cgf0AdOG','ywnJzxnZq28','mci+cJXKAwm','t1vRyMS','C2LUzY4','igLUDgvUDgK','CxjqyxLSB2e','y29UzMLN','DNbU','t3Hmv2m','DwvZDcbWzw4','BJOG','mhWZ','CLf1zxvLr2e','pd94BwWGDMu','zgLZCgXHEu4','yLbhCMi','ChbLzc4GuMu','B25Uzwn0','ifjLDhj5igy','Aw5ZDgfSBgu','z2f0zxDHEuG','DgvZigfYzsa','nxW2Fde','pc9ZDhjPBMC','ifbYzxnZiem','zgzSyxjLigm','zsbWywLYAw4','D2XHBG','z2vUzxjHDgu','D2KTzMK','z2v0cG','BNn0ywXSzwq','sd0I','CMvJDgLVBKW','Bgf1BMnOy3q','y29Kzq','Ae1xBgm','zMXHCMuGy2G','BM9VCa','BguGzhjVCha','DxnLCG','BwfW','CgXHDgzVCM0','CNrIzwf0','u3f2wNG','zgDLigLZige','vLrtD0S','zNHTzvO','AwyGwYaTEca','CMLUzZ4','Cgf0Ad5DifS','D2Hrywi','jMX0oW','rgD4sgW','BMvJDhm','C2nVCMu','BMvJDgLUzW','CMvXDwLYzwq','AxnJB25Uzwm','z2f0zxDHEq','ugfZC3DVCMq','AxiGzMLYC3q','qNjPzgDLigK','AxnjBNrLz2u','B25tDgf0Dxm','wwzlD2C','vxj5tu0','u3rVChbLzca','ALPnBuK','u2vYDMLJzsa','CNjVCKXVzW','lMnSyxDRzxq','zxjLBNqGC2u','zxvLzcb1BNq','CMvSyxKGzxi','zxHPC3rPBMC','CgfZC3DVCMq','yw5KihbHC3m','DMfSDwvZ','zevYCM9Ypwe','pLbYB2DYyw0','z2f0zxDHEva','D2LUzg93CY0','phn0CMLUzZ4','icaGidXZDhi','BKrUBve','yxrLD2f5igK','C2vHCMnO','ls11CMW','DwfSBhKU','ChbLBMq6','tgf1BMnOqwC','q2PQy08','x0DbvevxqvK','CMvTB3rLsxa','BwfYA0rLDMK','igTLChq9','C2vYDMLJzva','DwvZDeLKpq','y2HHBgXLBMC','DgvKihbSyxq','igjYB3DZzxi','Bgf5twvZC2e','CMvZCg9UC2u','Bgf1BMnOywC','zgfLBw9Ulxi','tM90ihbHAxi','CuHeENa','lvrfuK0','CMvMCMvZAgu','yu5bA2q','zcbZAw5JzuC','mZm3otq0oevTwvHorG','ugfPCMLUzYa','zgv0ywLSCW','zsbdBgf3A2u','l3yXl3bHAxi','Dgv3yxLdB24','DMLJzsbPBNm','zcbZzxj2Awm','nJaZodCXmefpDKf5Dq','ywLYlNjLC28','CgvUzgLUz0C','vxjS','w2nSyxDRzxq','svb2na','tMLNBNm','CMvSyxLtzwm','C3bSAxq','y2vZuMvJzw4','z1zlsu0','ten0rhq','AxnWBgf5tMe','C3rHCNrLzee','DgfYDdOG','tgLICMfYEq','BgfZDfjLBge','zxHWB3j0ifa','AwyGy29TBwe','BYbKzxrLCM0','Bw9Kzq','BgvUz3rO','DMLJzsbMB3i','DgvZDa','ChjVDg9JB2W','qxv0Ae1Vzgu','B3bLBMnSyxC','vMvYC2LVBJO','Be1lAha','ihjLCxvPCMu','DhvcrKi','BwvZC2fNzq','tdOG','Awrbvxu','ls1QC29Uxq','sw5ZDgfSBgu','D2fZig5VDca','z1bHAxjszxe','zxqUyNjPzgC','CMvSyxLtB2m','u1qGms4WlY8','zYbWyxrOoIa','yxj0yMvHDca','se1by1q','CgjOr28','BgfZDca8mM0','mM0SidfOlca','l3DZ','y2XHD2TLDca','lw5HBwuGpgq','A2v0igfWCdO','s3vYrfG','BMuUDgfYz2u','m3WYFdr8mhW','y29UzMLNrgK','BMC+','BM5Ly3qGyxq','igf1DgHgAwu','y2uGD2fZigK','ywWGwY0TDxi','CMvXDwvZDgu','x1rps0vo','Dw5SB2fK','zwnOBYaIBM8','C3mGls11CMW','q053BfO','Dd5DifSTlxe','qwXPDMu8l2S','yxrLD2f5vxi','r2f0zxDHEvi','CgvU','AxjPBMCU','y1n0yxj0pq','EvfOz3i','tfHWDxG','Dxj6shu','yxrPB24U','Aw5LigeGtee','qNjPzgDLige','DenLAem','BgXDcLDHBNq','yxv0AezPzwW','Dg9tDhjPBMC','BKTOAKC','id4MmG','lwPZB25D','ifSTlwzVCMm','zxzLCNK','tvLivMC','CMLUzYb3Axq','AxncDwzMzxi','CufzBwW','zxnLDciGyMu','u2vYDMLJztO','C2vUDa','CYbTAxnZAw4','BgfZDfnLzw4','AxnTyxrJAa','whfsquK','B3nLzdOG','t3f0zhq','D2LMAq','ALf6rwi','zM9Yy2u','AxmGC2fMzxq','BwfYz2LU','CMvZzxq','q3b6DK4','D2TLDcbKB2m','lMnVBMzPzW','u2vYDMvYifu','zw1WDa','EsbPzIb5B3u','r2f0zxDHEtO','yMLUyxj5','zwqGyMfJA2C','D2LUmZi','zgLZywjSzq','mJi4s1zlwg14','qxrnCW','ignSAwvUDhm','B3j0','Ag9ZDg5HBwu','yxjNDG','uM1XwM4','uxjyqwy','vKDjuey','yNjPzgDL','lIbsDw4GCge','nhWZFdf8mhW','CMvXDwvZDca','q29UzMLNrM8','nxWWFdj8nhW','B0PWyK8','uKvrvuLsruq','igzVCIbNyxq','lMrLDG','C3rVChbLza','u0nssvbux1a','sfjPD0O','rxjYB3iGtg8','DgXZ','CMvWBgfJzue','CMvNAxn0zxi','zw5ZDxjLr2e','uMvSyxLszwm','w1vUAxrDcKq','Dw50','Chn4Ce8','C3rYAw5NAwy','BujNqwW','yNjPzgDLlxm','ica8yxjYyxK','EufJDgL2Axq','Eu1Z','yxv0AcbWyxq','Cg9YDa','igzHAwXLzca','qxv0AcbTB2q','tujXrxu','BeTWswO','zg9JA2vY','EKL1CKu','Aw5ZDc0','Aw5JBhvKzxm','qvrxq3C','lM9Wzw5JBge','zw5dBgf3ieC','zMfTAwX5','yxrLD2f5igm','ifnLDcb0Agu','mJa1nZntEvPQEgm','zMLSDgvY','r3LKsKO','BMCGy29UBMu','C2vYDMLJzuK','icH0B2TLBIa','zMLUza','C2nOzwr1Bgu','Bg9JywW','mJu2otyWngHvEvDQwq','Aw9Ul2PZB24','lNbSAxn0','l3jLz2LZDgu','zM91BMq','Dg9eyxrHvvi','rxvAAgq','ieLeoIa','B2rLihjLzNi','DhLWzq','iMnSyxDRzxq','uK9ouKG','C3rZ','AgvHCNrIzwe','pL0GwY0TBgK','sw52ywXPzca','C2vYDMLJzvi','lJaIigvUy28','AxmGy3vZDg8','zxDHEvjLywm','zxrYEvrPBwu','igj1DcbZDg8','y29UBMvJDc4','yxbWBgLJyxq','Dw5UAw5N','Dg9Rzw4','rxDzC0u','y2f0y2G','CMvX','CxjjBwfNzva','BMrHCMrpDxq','vgHPCYbICMK','z2vZ','CMvMCMvZAc0','ktOG','cLnJyw4GDgG','igDHDgv3yxK','z2f0zxDHEuK','C3rVCeHLyxi','ig1PC3nPBMC','y2XVC2u','Dw5K','q2XHD2TLDca','qwnJzxnZigm','CNzPy2uGDg8','igjPBMfYEt0','y29UBMvJDca','CffmzNG','mxW2Fdm','DgvYpw5LDhC','y29KzsbYzwy','CMvQzwn0uge','BgfZDevYCM8','yxv0Ae1Vzgu','zxDHEsbTzxm','zxrO','wY0TANnVBL0','zxK+cIaGphq','ig1VzguGDg8','CMfUzg9T','CMv0','z2v0u25HChm','Bgvmrwe','Cgf0Aa','rw1WDhKGCMu','y29UBMvJDa','zwXHChnLzfm','BgLZDa','ief1Dg9Tyxq','BNqGzgvTyw4','DwvZDa','AxngAw5PDgu','zw50CW','v2LUzg93C1W','lw5LDW','shLiB2y','Dg9mB3DLCKm','C3rHDhvZ','DgjwyMu','jMfWB3m7','yxbWBguUy28','D3m6lY8XmJC','yMD1BNO','ww91ignHBIa','BM90ihbHAxi','sNHqChC','zgv0ywnOzwq','CMvSyxKGy28','zerLDMLJzxm','CxiTzMLSzsa','yNjPzgDLlwm','r0nJAxC','C0f0','y2uGywXYzwe','BgLLBNq','wvPor1a','zxDHEs5HDxq','AuvYAui','C3LZDgvTy3q','DfrPBwvVDxq','igrLy2LZAw8','ihjLCuLKpq','sw5ZDgfUy2u','CMvSyxLbDhq','zgvMyxvSDa','BMrnCZ0','C3rVCa','C2HPzNq','ywXYzwfKEsa','CdOVl3D3DY4','AwDUB3jL','s1HLA04','zMfSBgjHy2S','uMvXDwvZDfi','CYbUB3qGCMu','BM90igLUC3q','ihjLz2LZDhi','mJi4nJm0ofrjEufhwa','AguGq2XHD2S','ihn0B3aU','BwfUzfn0yxi','zcbMB3iGzNi','Axn0zxi','DgfZA2TPBgW','Ag90','vLjHsLG','D2f5twvZC2e','y2XPzw50igq','zxHPDa','C2vYDMvY','AdOG','zwvWAw5NigC','BwvZC2fNzxm','vw5HyMXLihq','ls1MB3jJzq','y2HLzcbTB2q','ywrKugvUzgK','veGIiciKu0m','mZCXmJq1ohPlBKLdzq','tMfTztOG','uNnYu20','AwrL','zguGpI9Kzxy','igHHBMrZAge','ExbHC3mGDgG','C3rHCNrizwe','pL0GwY0Tzxi','C2vUzeDHDgu','B249q2XHD2S','Aw5KzxHpzG','C2v0vgLTzw8','Bg9VCgjHy2S','BsbNyxrLD2e','zxDHEsbvuKW','B3vUzcbZzxi','zhrKiJ4kpha','zgLUzZ0Ivvq','renuBhG','yxjNzxqkcLS','zxjLCxvPC2K','Bgf3A2v0iha','zhjVChbLza','Bg9NCYbBls0','C3rPBgWGCNu','uuPfyMe','AgfZ','vw5ZDxbWB3i','zcbZAw5Jzum','Dw5RBM93BG','mJaW','uLfVCfa','Awz5igeGy3u','CMvXDwvZDeK','BMfTzq','q29UzMLNrgK','ugf0AdOG','zxDHEsbJB24','zKzlywu','zsbdteKkqwy','z2f0zxDHEsa','lY9OB3n0oNa','qvriiIbDoYa','tNzmEgm','u0Lhsu5u','CvHwrvm','Dw5Yzwy','B25Uzwn0Aw4','Dg9mB2nHBgu','u2D5u2u','zsbZDgfYDgu','r2r5rfO','DeLUDgvYDMe','BgrZpq','iYeVyMLUl3m','ywX1zxmGBgK','C3rKAw8','ihbHAxjGigi','zxnLBNq9','y2XLyxjuAw0','CMf3','zxjYB3jmB2C','weDgC1m','CMWGphDZoI8','v1P5Efu','ihnPBMnLq2W','DLzpqwm','ihj1BNrPBwu','ywLYzwqUifi','ignVBMzPzZO','A2LSBa','wxv6yKu','uNvUigbJBge','AhLeu1a','Et4kica8Dhi','ignVBMzPzYa','Ahr0Chm6','odC4oq','seHAywm','D3nZoG','qxLrBxm','yxnL','y2XPzw50rgu','C3rHCNqGDxi','zwzYzxnOzwq','yxbWCM92zwq','zxjZAw9Uxfi','DxrMoa','q3vYCMvUDfy','CMvNAxn0CNK','BKjVyvC','zxHPDcaXmJC','zeXYt2S','igf1DgGGAxm','rfrvqKC','CxvLC3q','ls1NyxrLD2e','l2fJy2vZCY0','ueXAuxe','t3bLBKnSyxC','zevYCM9Yuge','BgX3','pLn0yw5Kyxi','yNDjzuC','Dw1yANu','D2LYzwD1yxi','C3LZDgvTza','CMvSyxKGCMu','CNzLCI4','CgfPCIbYzxe','CMvSyxKGzgK','z2f0zxDHEvm','Cg9UzW','BMCUieXLzNq','AgfUzgXLr2e','yxLnzxnZywC','CMvZCY4Guge','y29UBMvJDfi','zgfYD2LU','A2LUza','A2LUz0rPCMu','lNDVCMTLCNm','u0Lhvevstq','yxbZAg90','rujJr1O','yw5KC2HHA2u','CMqGyMvMB3i','ls1SB2nHBa','ls1Syxn0','ig5VBMnLuhi','C2GGzhjVCha','Dd4kica8A2u','suLRueG','zwrcEt1Kzwy','tIbjucbHzgq','y2XHD2TLDc0','tMvqteq','u3zJrLy','zxjYB3i6ia','C2fNzq','yw1L','sM1rywq','y29UC3rYDwm','CNvUBMLUzZO','lY9bChbSzs8','u3rYAw5N','BcbNyxrLD2e','BwPWse8','BKLUsKW','ls1QC29U'];_0x472c=function(){return _0x183dbe;};return _0x472c();}function normalizeText(_0x5315db){const _0x81be14={_0x1c5e8e:0x83b,_0x23053a:0x7c2,_0x32095:0x6a8,_0x1942d6:0x817,_0x32112f:0x764,_0x22c693:0x5b5,_0xff5eed:0x44d,_0x13db06:0x60e,_0x20928b:0x6bb,_0xf0ab64:0x632,_0x2e232a:0x824,_0xc225d3:0xaac,_0xe284c4:0x3fe,_0x3aa5ce:0x625,_0x114e2c:0x412,_0x3e7ca3:0x2b6,_0x55e68c:0x417},_0x4739d5={_0x4387e1:0x416},_0x50fbfa={_0x7ceda6:0x66},_0x10c2f0={};_0x10c2f0[_0x3d0f56(_0x81be14._0x1c5e8e,_0x81be14._0x23053a)]=_0x3d0f56(_0x81be14._0x32095,0x8f2);const _0x19f68a=_0x10c2f0,_0x24d5ac=(_0x3d0f56(0x866,0x7dd)+'2')[_0x3d0f56(_0x81be14._0x1942d6,_0x81be14._0x32112f)]('|');function _0x3d0f56(_0x369f93,_0x88cc15){return _0x32d8ea(_0x369f93,_0x88cc15- -_0x50fbfa._0x7ceda6);}let _0x393adc=0x0;function _0x1e22ef(_0x51ad17,_0xb2599d){return _0x32d8ea(_0xb2599d,_0x51ad17- -_0x4739d5._0x4387e1);}while(!![]){switch(_0x24d5ac[_0x393adc++]){case'0':if(_0x5315db instanceof ArrayBuffer)return Buffer[_0x1e22ef(_0x81be14._0x22c693,_0x81be14._0xff5eed)](_0x5315db)[_0x3d0f56(0x63a,0x7ae)]('utf8');continue;case'1':if(Array[_0x3d0f56(_0x81be14._0x13db06,_0x81be14._0x20928b)](_0x5315db))return Buffer[_0x3d0f56(0x4a3,_0x81be14._0xf0ab64)](_0x5315db)[_0x3d0f56(_0x81be14._0x2e232a,0x7ae)](_0x3d0f56(_0x81be14._0xc225d3,0x8f2));continue;case'2':return null;case'3':if(Buffer['isBuffer'](_0x5315db))return _0x5315db[_0x1e22ef(_0x81be14._0xe284c4,_0x81be14._0x3aa5ce)](_0x19f68a[_0x1e22ef(_0x81be14._0x114e2c,_0x81be14._0x3e7ca3)]);continue;case'4':if(typeof _0x5315db===_0x1e22ef(0x1f6,_0x81be14._0x55e68c))return _0x5315db;continue;}break;}}function normalizeBinary(_0x2ef43d){const _0x23f885={_0x576b71:0x559,_0x268aa0:0x373,_0x582f5f:0x69c,_0xfd5b2d:0x7d4,_0x37a6a4:0x46a,_0xc93047:0x70f},_0x41dd4b={_0x25225d:0x16a};function _0x21def5(_0x31e7c2,_0x524b6d){return _0x3a7f13(_0x524b6d,_0x31e7c2-_0x41dd4b._0x25225d);}const _0x51c1ad={};_0x51c1ad[_0x160c7c(0x39e,_0x23f885._0x576b71)]=_0x160c7c(0x355,0x2c6);function _0x160c7c(_0xb4b8e8,_0x1048fd){return _0x3a7f13(_0x1048fd,_0xb4b8e8-0x16f);}const _0x4ac932=_0x51c1ad;if(Buffer[_0x21def5(0x560,0x3a2)](_0x2ef43d))return _0x2ef43d;if(typeof _0x2ef43d===_0x4ac932[_0x21def5(0x399,_0x23f885._0x268aa0)])return Buffer[_0x160c7c(0x714,0x4df)](_0x2ef43d,_0x21def5(_0x23f885._0x582f5f,_0x23f885._0xfd5b2d));if(Array[_0x160c7c(_0x23f885._0x37a6a4,0x340)](_0x2ef43d))return Buffer['concat'](_0x2ef43d);return Buffer[_0x21def5(_0x23f885._0xc93047,0x8d5)](_0x2ef43d);}function readRecentCliLogs(_0x435e08){const _0x338ef8={_0xe677b1:0x4ca,_0x39ab5c:0xb7,_0x3996ab:0x2c4,_0x1ff899:0x222,_0x89670c:0x204,_0x4645f7:0x127},_0xccd6cf={_0x352202:0x64c},_0x491ee9={_0xa4d32d:0x14e},{logPath:_0x203fe5,errorLogPath:_0x4182c4}=getServicePaths(),_0x198cb4=clampLines(_0x435e08?.['lines']??0xc8),_0x848ee4=_0x435e08?.[_0x51d298(_0x338ef8._0xe677b1,0x3e5)]??null;function _0x32b237(_0x99640b,_0x537c79){return _0x32d8ea(_0x99640b,_0x537c79- -_0x491ee9._0xa4d32d);}const _0x1abddd=_0x848ee4!=null?Date['now']()-_0x848ee4:null,_0x1241b1=[_0x203fe5];function _0x51d298(_0x5eeb18,_0x106c86){return _0x32d8ea(_0x5eeb18,_0x106c86- -_0xccd6cf._0x352202);}_0x435e08?.['includeE'+_0x51d298(-_0x338ef8._0x39ab5c,0x144)]&&_0x1241b1['push'](_0x4182c4);const _0x2ded92=_0x1241b1['flatMap'](_0x1c9501=>readLogFile(_0x1c9501)),_0x1d76ea=_0x1abddd==null?_0x2ded92:_0x2ded92[_0x51d298(_0x338ef8._0x3996ab,_0x338ef8._0x1ff899)](_0x2eec08=>_0x2eec08['ts']!=null&&_0x2eec08['ts']>=_0x1abddd);return _0x1d76ea['slice'](-_0x198cb4)[_0x51d298(_0x338ef8._0x89670c,_0x338ef8._0x4645f7)](_0x2e987d=>_0x2e987d[_0x51d298(0x3b5,0x2f1)]);}async function buildDoctorReport(){const _0x719c96={_0xacbb6f:0x62e,_0x1b4ea5:0x30b,_0x5dda4f:0x2a5,_0x25b49f:0x73e,_0x107490:0x5fb,_0x5a3833:0x493,_0x28817f:0x298,_0x545a50:0x4cc,_0x46d140:0x537,_0x53bf0c:0x513,_0x14bea7:0x4a5,_0x5db0aa:0x503},_0x20d144={_0x218656:0x38c},_0x1278ff={_0x4eb98a:0x6d};function _0x47fa74(_0x550bfe,_0x5b12f2){return _0x32d8ea(_0x550bfe,_0x5b12f2- -_0x1278ff._0x4eb98a);}const _0x2624f2={'psxpO':function(_0x4ff9eb){return _0x4ff9eb();},'FCYLD':function(_0x51d444,_0x3bf94e){return _0x51d444(_0x3bf94e);}},_0x2a1773=readPairingConfig(),_0x18b8be=_0x2624f2[_0x47fa74(0x5bb,0x7e9)](getServiceStatus),_0x80b8ff=readOpenClawInfo();function _0x5d3ccc(_0x4adb88,_0x987432){return _0x32d8ea(_0x4adb88,_0x987432- -_0x20d144._0x218656);}const _0x2896cf=resolveGatewayUrl(),_0x5d26ba=await checkGatewayReachable(_0x2896cf);return{'paired':_0x2624f2['FCYLD'](Boolean,_0x2a1773),'gatewayId':_0x2a1773?.[_0x47fa74(0x8e5,0x82e)+'d']??null,'serverUrl':_0x2a1773?.['serverUr'+'l']??null,'relayUrl':_0x2a1773?.[_0x5d3ccc(0x4ad,_0x719c96._0xacbb6f)]??null,'instanceId':_0x2a1773?.['instance'+'Id']??null,'serviceInstalled':_0x18b8be['installe'+'d'],'serviceRunning':_0x18b8be[_0x5d3ccc(_0x719c96._0x1b4ea5,_0x719c96._0x5dda4f)],'serviceMethod':_0x18b8be['method'],'servicePath':_0x18b8be[_0x47fa74(0x6ce,_0x719c96._0x25b49f)+_0x47fa74(0x54b,_0x719c96._0x107490)],'logPath':_0x18b8be[_0x47fa74(0x766,0x58d)],'errorLogPath':_0x18b8be['errorLog'+_0x5d3ccc(_0x719c96._0x5a3833,_0x719c96._0x28817f)],'openclawConfigDir':getOpenClawConfigDir(),'openclawMediaDir':getOpenClawMediaDir(),'openclawConfigFound':_0x80b8ff[_0x5d3ccc(_0x719c96._0x545a50,0x63d)+_0x5d3ccc(_0x719c96._0x46d140,_0x719c96._0x53bf0c)],'openclawAuthMode':_0x80b8ff[_0x47fa74(0x785,0x83e)],'openclawTokenFound':Boolean(_0x80b8ff[_0x5d3ccc(_0x719c96._0x14bea7,_0x719c96._0x5db0aa)]),'openclawPasswordFound':Boolean(_0x80b8ff['password']),'localGatewayUrl':_0x2896cf,'localGatewayReachable':_0x5d26ba};}async function ensurePairPrerequisites(){const _0xdbf08f={_0x2d1c1d:0x540,_0x33ac93:0x585,_0x36d675:0x665,_0x5d74dc:0x37d,_0x1feafc:0x54a,_0x9f6fdb:0x7de,_0x4166cb:0x6eb,_0x5171dc:0x5fd,_0xa48a2e:0x54e,_0x306d56:0x60d,_0x2d12c8:0x5d6,_0x1750cf:0x83e,_0x3ffc78:0x7c5,_0x2c7a4c:0x665,_0x48cff7:0x546,_0x296d7a:0x696,_0x44e8f8:0x484,_0x4c9c41:0x858,_0xecdf11:0x656,_0x2554fd:0x48f,_0x56cf9f:0x604},_0x56c1d5={_0x524c44:0x142};function _0x5afd9f(_0x1660c9,_0x20ba36){return _0x3a7f13(_0x1660c9,_0x20ba36-0x2e5);}const _0x41c7c1={};_0x41c7c1[_0x699a52(0x62d,_0xdbf08f._0x2d1c1d)]=_0x699a52(_0xdbf08f._0x33ac93,_0xdbf08f._0x36d675)+_0x699a52(_0xdbf08f._0x5d74dc,_0xdbf08f._0x1feafc)+_0x699a52(0x71a,0x6f7)+_0x699a52(_0xdbf08f._0x9f6fdb,_0xdbf08f._0x4166cb)+_0x699a52(0x366,0x334)+'r\x20use\x20`c'+_0x5afd9f(_0xdbf08f._0x5171dc,0x7d5)+'air\x20--fo'+_0x5afd9f(0x738,0x5d0)+_0x699a52(0x697,_0xdbf08f._0xa48a2e)+_0x5afd9f(0x3eb,_0xdbf08f._0x306d56)+_0x699a52(_0xdbf08f._0x2d12c8,0x3ab)+_0x699a52(0x1ce,0x415)+_0x5afd9f(_0xdbf08f._0x1750cf,_0xdbf08f._0x3ffc78)+_0x699a52(_0xdbf08f._0x2c7a4c,_0xdbf08f._0x48cff7)+'y\x20check.';function _0x699a52(_0x3a3c98,_0x1694a4){return _0x3a7f13(_0x3a3c98,_0x1694a4-_0x56c1d5._0x524c44);}const _0x1f757c=_0x41c7c1,_0x404b5a=await buildDoctorReport(),_0x5c9f47=listPairPrerequisiteFailures(_0x404b5a);if(_0x5c9f47[_0x5afd9f(0x50e,_0xdbf08f._0x296d7a)]>0x0)throw new Error(['Cannot\x20c'+'omplete\x20'+_0x699a52(_0xdbf08f._0x44e8f8,0x2eb)+_0x699a52(_0xdbf08f._0x4c9c41,_0xdbf08f._0xecdf11)+_0x5afd9f(0x439,0x47f)+'ocal\x20Ope'+_0x5afd9f(0x5dc,0x5b0)+_0x699a52(0x712,0x631)+_0x5afd9f(0x4ba,0x61e)+'not\x20read'+'y.',..._0x5c9f47[_0x699a52(0x58f,_0xdbf08f._0x2554fd)](_0x1cf2bb=>'-\x20'+_0x1cf2bb),_0x1f757c[_0x699a52(_0xdbf08f._0x56cf9f,_0xdbf08f._0x2d1c1d)]][_0x699a52(0x76a,0x701)]('\x0a'));return _0x404b5a;}function listPairPrerequisiteFailures(_0xaf067e){const _0x3eb1ea={_0xd865c1:0x2ee,_0x558c83:0xc9,_0x2bb41b:0x118,_0x4bfda7:0x4bc,_0x1be0f5:0x627,_0xe060ef:0x23a,_0x277f13:0x4,_0x7c6087:0x342,_0x298eef:0x2f8,_0x3f97fe:0x125,_0x23188d:0x408,_0x457dba:0x2f8,_0x2dd399:0x2a1,_0x25f5c3:0x22f,_0x2bd4c2:0x4a,_0x251349:0x4c,_0x28e91a:0x196,_0x1152f4:0x10d,_0x21c64f:0x261,_0x2ec009:0x10d,_0xc63a67:0x198,_0x43bec9:0x1,_0x47a339:0x32a,_0x3ed589:0x245,_0x4f7d05:0x2fa,_0x1cf6be:0xa2,_0x312c83:0x209,_0x3b25ba:0x230,_0x40f024:0x2a2,_0x3ef39f:0x3b6,_0x1fe2ab:0x3f3,_0x335d70:0x3b2,_0x18207f:0x3b9,_0x3d70e3:0x2dd,_0x2866ce:0x1ff,_0x51c2a4:0x2f8,_0x33a637:0x2f7,_0x5984b7:0x27b,_0x217697:0x289,_0x4ec1e0:0x222,_0xdc021a:0x114,_0x4980c5:0xaf,_0x41b4f1:0x2ee,_0x58a507:0x1d3,_0x2741c4:0x36d,_0x4d461:0x33d,_0xaa2245:0xfd,_0x15b89b:0x28,_0x301cee:0x1ee,_0x9864dc:0x441,_0x512a9c:0x3ab,_0xb30e01:0x3d3,_0x27b173:0x1da,_0x3ee0b0:0x4c,_0x39af5d:0x31f,_0x411634:0x521,_0xe2303c:0x37f,_0x2d55b6:0x114,_0xf17242:0x95,_0x29fb9a:0x2bd,_0x4a5fb2:0x404,_0x59803d:0x3b3},_0x43d9be={'Oqtdt':function(_0x15635b){return _0x15635b();},'HMAcT':function(_0x6a8a36,_0x572b5e){return _0x6a8a36==_0x572b5e;},'ALeXE':function(_0x385713,_0x1d9d94){return _0x385713===_0x1d9d94;},'ilmnb':function(_0x2e8431,_0x1850aa){return _0x2e8431===_0x1850aa;},'QJEba':'password','JxPpw':_0x39b765(0x480,0x2dc)+_0x416979(_0x3eb1ea._0xd865c1,0x1dd)+_0x416979(_0x3eb1ea._0x558c83,_0x3eb1ea._0x2bb41b)+_0x39b765(_0x3eb1ea._0x4bfda7,_0x3eb1ea._0x1be0f5)+_0x39b765(0x269,0x439)},_0x4db2bf=[];!_0xaf067e[_0x416979(0x230,0x304)+_0x416979(0x299,0xe3)+_0x39b765(0x3bb,0x1e8)]&&_0x4db2bf['push'](_0x416979(0x3b8,0x1c0)+_0x416979(0x3a0,0x19f)+_0x416979(_0x3eb1ea._0xe060ef,0x226)+_0x39b765(0xc6,-_0x3eb1ea._0x277f13)+_0x416979(0x44a,0x59f)+_0x43d9be[_0x39b765(_0x3eb1ea._0x7c6087,0x171)](formatOpenClawConfigLocations)+'.');_0xaf067e[_0x39b765(_0x3eb1ea._0x298eef,0x370)+_0x39b765(0x222,0x231)+'nd']&&_0xaf067e[_0x39b765(0x2f8,0x534)+_0x416979(0x1da,_0x3eb1ea._0x3f97fe)+_0x416979(0x440,0x2b4)]&&_0x43d9be[_0x39b765(0x309,_0x3eb1ea._0x23188d)](_0xaf067e[_0x39b765(_0x3eb1ea._0x457dba,_0x3eb1ea._0x2dd399)+_0x416979(_0x3eb1ea._0x25f5c3,_0x3eb1ea._0x2bd4c2)],null)&&_0x4db2bf[_0x416979(_0x3eb1ea._0x251349,-_0x3eb1ea._0x28e91a)]('OpenClaw'+_0x39b765(_0x3eb1ea._0x1152f4,_0x3eb1ea._0x21c64f)+'h\x20gatewa'+_0x39b765(0x1d6,0x377)+_0x416979(0x1eb,0x173)+_0x39b765(0x21b,0x17e)+_0x416979(_0x3eb1ea._0x2ec009,0xb2)+_0x39b765(_0x3eb1ea._0xc63a67,-_0x3eb1ea._0x43bec9)+_0x416979(_0x3eb1ea._0x47a339,_0x3eb1ea._0x3ed589)+_0x416979(0x11d,_0x3eb1ea._0x4f7d05)+_0x416979(_0x3eb1ea._0x1cf6be,_0x3eb1ea._0x312c83));!_0xaf067e[_0x416979(_0x3eb1ea._0x3b25ba,0x12f)+'TokenFou'+'nd']&&!_0xaf067e[_0x416979(0x230,-0x1c)+_0x39b765(_0x3eb1ea._0x40f024,0x394)+'Found']&&_0x4db2bf['push']('OpenClaw'+_0x39b765(_0x3eb1ea._0x3ef39f,_0x3eb1ea._0x1fe2ab)+_0x416979(_0x3eb1ea._0x335d70,0x328)+_0x39b765(_0x3eb1ea._0x18207f,_0x3eb1ea._0x3d70e3)+'\x20(token\x20'+_0x39b765(0x4f6,0x3a7)+_0x39b765(_0x3eb1ea._0x2866ce,0x322));function _0x416979(_0xb97a9a,_0x4149c1){return _0x3a7f13(_0x4149c1,_0xb97a9a- -0x186);}_0x43d9be['ALeXE'](_0xaf067e[_0x39b765(_0x3eb1ea._0x51c2a4,0x359)+_0x39b765(_0x3eb1ea._0x33a637,_0x3eb1ea._0x5984b7)],_0x39b765(0x3ab,_0x3eb1ea._0x217697))&&!_0xaf067e['openclaw'+_0x39b765(_0x3eb1ea._0x4ec1e0,0x59)+'nd']&&_0x4db2bf[_0x39b765(_0x3eb1ea._0xdc021a,_0x3eb1ea._0x4980c5)](_0x39b765(0x480,0x31b)+_0x416979(_0x3eb1ea._0x41b4f1,0x184)+_0x39b765(_0x3eb1ea._0x58a507,_0x3eb1ea._0x2741c4)+_0x39b765(_0x3eb1ea._0x4d461,_0x3eb1ea._0xaa2245)+'g.');_0x43d9be[_0x416979(_0x3eb1ea._0x15b89b,-_0x3eb1ea._0x301cee)](_0xaf067e['openclaw'+_0x39b765(0x2f7,_0x3eb1ea._0x9864dc)],_0x43d9be[_0x39b765(0x436,_0x3eb1ea._0x512a9c)])&&!_0xaf067e[_0x39b765(_0x3eb1ea._0x457dba,_0x3eb1ea._0xb30e01)+_0x416979(_0x3eb1ea._0x27b173,0x2b)+_0x39b765(0x508,0x5e0)]&&_0x4db2bf[_0x416979(_0x3eb1ea._0x3ee0b0,0x80)](_0x43d9be[_0x416979(_0x3eb1ea._0x39af5d,0x323)]);!_0xaf067e[_0x39b765(0x1db,0x93)+_0x416979(_0x3eb1ea._0x3d70e3,0x392)+_0x39b765(_0x3eb1ea._0x411634,_0x3eb1ea._0xe2303c)]&&_0x4db2bf[_0x39b765(_0x3eb1ea._0x2d55b6,-_0x3eb1ea._0xf17242)](_0x416979(0x40f,0x3c3)+_0x416979(_0x3eb1ea._0x29fb9a,0x381)+_0x39b765(0x2bc,0x371)+_0x39b765(_0x3eb1ea._0x4a5fb2,0x577)+'achable\x20'+'at\x20'+_0xaf067e['localGat'+_0x39b765(0x188,_0x3eb1ea._0x59803d)]+'.');function _0x39b765(_0x2a95dd,_0xe6f305){return _0x3a7f13(_0xe6f305,_0x2a95dd- -0xbe);}return _0x4db2bf;}function formatOpenClawConfigLocations(){const _0x373995={_0x161191:0x666,_0x3fd52f:0x5c6,_0x5b17bf:0x5de,_0x4ef9f4:0x6d9,_0x19377c:0x86f,_0x51a12a:0x88b,_0x708c40:0x99e},_0x111e3f={_0x20f596:0x728},_0x596e7e={_0x139aaf:0x195},_0x99cef4={_0x517d02:0x1};function _0x2d6123(_0x9752bb,_0x1ddd88){return _0x32d8ea(_0x1ddd88,_0x9752bb-_0x99cef4._0x517d02);}const _0x390c74=new Set();function _0x2e76d8(_0x5a5b4d,_0x457b20){return _0x32d8ea(_0x457b20,_0x5a5b4d- -_0x596e7e._0x139aaf);}return[_0xc0aab1(),_0x2d6123(_0x373995._0x161191,_0x373995._0x3fd52f)][_0x2e76d8(_0x373995._0x5b17bf,0x56f)](_0x446786=>_0x446786[_0x2d6123(0xa30,0xc44)]()+(_0x2d6123(0x6cc,0x8cb)+'aw'))[_0x2e76d8(_0x373995._0x4ef9f4,0x82f)](_0x22ca35=>_0x22ca35!==_0x2d6123(0x6cc,0x546)+'aw')[_0x2d6123(_0x373995._0x19377c,0xa7d)](_0x5b4b63=>{if(_0x390c74['has'](_0x5b4b63))return![];_0x390c74[_0x5e289c(_0x111e3f._0x20f596,0x55d)](_0x5b4b63);function _0x5e289c(_0x49dc61,_0x5791fe){return _0x2e76d8(_0x5791fe-0x7b,_0x49dc61);}return!![];})['join'](_0x2e76d8(_0x373995._0x51a12a,_0x373995._0x708c40));}function readLogFile(_0x4ad7bb){const _0x529064={_0x2f0ce5:0x5bd,_0xd33bed:0x8aa,_0x2271a0:0x551,_0xfb6917:0x5a5},_0x219ad8={_0x36f6f6:0x2c9};function _0x45566e(_0x1f743a,_0x74e25a){return _0x32d8ea(_0x74e25a,_0x1f743a- -0x74);}function _0x19475a(_0x4b7eef,_0x2648ec){return _0x32d8ea(_0x4b7eef,_0x2648ec- -_0x219ad8._0x36f6f6);}try{const _0x37605a=_0x285c85(_0x4ad7bb,_0x19475a(_0x529064._0x2f0ce5,0x68f));return _0x37605a[_0x45566e(0x756,_0x529064._0xd33bed)](/\r?\n/)[_0x19475a(_0x529064._0x2271a0,_0x529064._0xfb6917)](Boolean)['map'](_0x3a7543=>({'raw':_0x3a7543,'ts':parseTimestamp(_0x3a7543)}));}catch{return[];}}function parseTimestamp(_0x52122b){const _0x3b7811=_0x52122b['match'](/^\[(\d{13})\]\s/);if(!_0x3b7811)return null;const _0x4c1f39=Number(_0x3b7811[0x1]);return Number['isFinite'](_0x4c1f39)?_0x4c1f39:null;}function clampLines(_0x172060){const _0x477033={_0x359d1e:0x44d,_0x19dcec:0x68d,_0x1ab532:0x604},_0x17c1a2={_0x16ee71:0x3b1};if(!Number[_0x5486ce(0x468,_0x477033._0x359d1e)](_0x172060))return 0xc8;function _0x5486ce(_0x175ac0,_0x2f005){return _0x3a7f13(_0x175ac0,_0x2f005- -0x4a);}function _0x5a5da6(_0x4df710,_0x3cd6d8){return _0x3a7f13(_0x3cd6d8,_0x4df710-_0x17c1a2._0x16ee71);}return Math[_0x5a5da6(0x940,0x9c8)](0x1,Math['min'](0x7d0,Math[_0x5a5da6(_0x477033._0x19dcec,_0x477033._0x1ab532)](_0x172060)));}async function checkGatewayReachable(_0x5c431a){const _0x572fc5={_0x3b19ee:0x228,_0x5edef5:0x70c,_0x3e63f3:0x573,_0x568184:0x4e3},_0x798455={_0x395d8b:0x7db,_0x13db03:0x505},_0x4530b4={_0x590ae9:0x13b},_0x9d6590={};_0x9d6590['NUhTQ']='error';function _0x447911(_0x57cbc5,_0x99a5b9){return _0x3a7f13(_0x57cbc5,_0x99a5b9-0x88);}const _0x5da404=_0x9d6590;function _0x436e7e(_0x521164,_0xe8ed3b){return _0x3a7f13(_0x521164,_0xe8ed3b-_0x4530b4._0x590ae9);}try{const _0x63d496=new URL(_0x5c431a),_0x339935=_0x63d496['hostname']||_0x447911(_0x572fc5._0x3b19ee,0x299)+'1',_0x496d17=_0x63d496[_0x436e7e(_0x572fc5._0x5edef5,_0x572fc5._0x3e63f3)]?Number(_0x63d496[_0x436e7e(_0x572fc5._0x568184,0x573)]):_0x63d496['protocol']==='wss:'?0x1bb:0x50;return await new Promise((_0x4e5439,_0x3d0d12)=>{const _0x216c1d={_0x21ca1e:0x811,_0x54193a:0x820},_0x128406={_0x10779e:0x26d};function _0x4cf17f(_0x8f4478,_0x3d0cb4){return _0x447911(_0x3d0cb4,_0x8f4478-_0x128406._0x10779e);}const _0x23874b=new Socket();_0x23874b[_0x4cf17f(_0x798455._0x395d8b,0xa0e)+'ut'](0x384),_0x23874b[_0x4cf17f(0x8e2,0x749)](_0xe51091(0x7c6,0x628),()=>{_0x23874b['destroy'](),_0x4e5439();});function _0xe51091(_0x189046,_0x56415c){return _0x447911(_0x56415c,_0x189046-0x2ad);}_0x23874b['once']('timeout',()=>{_0x23874b[_0x4adb5d(0x5a9,0x449)]();function _0x4adb5d(_0x20c5a6,_0x5b08fc){return _0xe51091(_0x20c5a6- -0x342,_0x5b08fc);}_0x3d0d12(new Error('timeout'));}),_0x23874b[_0x4cf17f(0x8e2,0x89c)](_0x5da404[_0x4cf17f(_0x798455._0x13db03,0x4ba)],_0x35786d=>{const _0xba34ee={_0xda6dfa:0x9a};function _0x190a29(_0x728ee2,_0x4ba3c0){return _0x4cf17f(_0x728ee2- -_0xba34ee._0xda6dfa,_0x4ba3c0);}_0x23874b[_0x190a29(_0x216c1d._0x21ca1e,_0x216c1d._0x54193a)](),_0x3d0d12(_0x35786d);}),_0x23874b['connect'](_0x496d17,_0x339935);}),!![];}catch{return![];}}function parseLookbackToMs(_0x236b59){const _0x578587={_0x586989:0x5f2,_0x2b477c:0x65f,_0x1def02:0x3b3,_0x4a04ac:0x464,_0x2d8b43:0x2bd,_0x31e639:0x3a9,_0x29de9e:0x3c9,_0x3285fb:0x3b3,_0x3f6b4e:0x244,_0x1b971e:0x485,_0x59bb05:0x864},_0x3f09f7={_0x400476:0xee},_0x2b8f81=_0x236b59?.[_0x53cae9(0x5d1,_0x578587._0x586989)]();if(!_0x2b8f81)return null;function _0x53cae9(_0x3b6a1c,_0xc134bb){return _0x32d8ea(_0x3b6a1c,_0xc134bb- -0x43d);}const _0x502105=_0x2b8f81[_0x42ee69(0x5d4,_0x578587._0x2b477c)](/^(\d+)(ms|s|m|h|d)$/i);if(!_0x502105)throw new Error(_0x53cae9(_0x578587._0x1def02,0x448)+'--last\x20v'+'alue\x20\x22'+_0x2b8f81+(_0x53cae9(_0x578587._0x4a04ac,_0x578587._0x2d8b43)+_0x53cae9(_0x578587._0x31e639,0x4fb)+_0x53cae9(_0x578587._0x29de9e,0x1a6)+_0x53cae9(0x210,_0x578587._0x3285fb)+'or\x201d.'));function _0x42ee69(_0x31fa98,_0x1ac142){return _0x32d8ea(_0x1ac142,_0x31fa98- -_0x3f09f7._0x400476);}const _0x5be541=Number(_0x502105[0x1]),_0x280514=_0x502105[0x2][_0x53cae9(_0x578587._0x3f6b4e,_0x578587._0x1b971e)+_0x42ee69(_0x578587._0x59bb05,0x6e6)](),_0x5b724b=_0x280514==='ms'?0x1:_0x280514==='s'?0x3e8:_0x280514==='m'?0xea60:_0x280514==='h'?0x36ee80:0x5265c00;return _0x5be541*_0x5b724b;}import{networkInterfaces}from'os';var BLOCKED_INTERFACE_TOKENS=[_0x3a7f13(0x749,0x5d2),_0x3a7f13(0x4ed,0x5af),'tap',_0x3a7f13(0x599,0x5e1)+'e',_0x32d8ea(0x81a,0x96a)+'d','wg',_0x3a7f13(0x2e0,0x32b),'ipsec',_0x3a7f13(0x5ea,0x43d),_0x3a7f13(0x365,0x193),_0x3a7f13(0x528,0x5dd),'vbox',_0x3a7f13(0x5e6,0x4e7),_0x32d8ea(0x7a4,0x67a),'lo0','awdl',_0x3a7f13(0x60d,0x540),_0x32d8ea(0x9cb,0x841),_0x32d8ea(0xb6d,0x9ac),_0x32d8ea(0x685,0x609)];function buildLocalPairingInfo(_0x6c14e5){const _0x44830e={_0x2ccb68:0x76f,_0xe15dc6:0x623,_0x3a33cd:0x623,_0xe32c80:0x436,_0x194002:0x448,_0x536d3c:0x6a9,_0x1c2843:0x88f,_0x871ead:0x7fb,_0x395554:0x60f,_0x1bfc1a:0x67b,_0x239260:0x48b,_0x10fbac:0x637,_0xc262e5:0xaa7};function _0x3f9d00(_0xe7c103,_0x2944af){return _0x32d8ea(_0x2944af,_0xe7c103- -0x34b);}const _0x259ddc={'bgunz':function(_0x536985,_0x2384e8){return _0x536985(_0x2384e8);},'DTUBG':function(_0x5eceeb,_0x474c10){return _0x5eceeb(_0x474c10);},'SvcFV':function(_0x3625db,_0x4b9c29){return _0x3625db*_0x4b9c29;}},_0x4782d2=_0x259ddc[_0x32e0b3(0x8bd,_0x44830e._0x2ccb68)](resolveLocalPairAuth,_0x6c14e5),_0x5da348={};_0x5da348[_0x32e0b3(_0x44830e._0xe15dc6,0x4e4)+_0x32e0b3(0x7ba,0x790)]=_0x6c14e5[_0x32e0b3(_0x44830e._0x3a33cd,_0x44830e._0xe32c80)+'Url'],_0x5da348['defaultG'+_0x3f9d00(0x4bb,_0x44830e._0x194002)+'l']=_0x6c14e5[_0x3f9d00(_0x44830e._0x536d3c,_0x44830e._0x1c2843)+_0x32e0b3(_0x44830e._0x871ead,0x6e0)+'l'];const _0x2e19aa=_0x259ddc[_0x32e0b3(0x954,0x8d9)](resolveLocalPairGatewayUrl,_0x5da348);function _0x32e0b3(_0x1d74b9,_0x3d7bee){return _0x32d8ea(_0x3d7bee,_0x1d74b9- -0xb);}const _0x10185d=_0x6c14e5[_0x32e0b3(_0x44830e._0x395554,0x3d9)+'t']??Date[_0x3f9d00(0x6cb,_0x44830e._0x1bfc1a)]()+_0x259ddc[_0x3f9d00(0x63f,0x69c)](0xa,0x3c)*0x3e8;return{'gatewayUrl':_0x2e19aa,'expiresAt':_0x10185d,'authMode':_0x4782d2[_0x3f9d00(_0x44830e._0x239260,_0x44830e._0x10fbac)],'qrPayload':buildGatewayQrPayload({'gatewayUrl':_0x2e19aa,'token':_0x4782d2[_0x32e0b3(0x884,_0x44830e._0xc262e5)],'password':_0x4782d2[_0x32e0b3(0x78b,0x881)],'expiresAt':_0x10185d})};}function resolveLocalPairGatewayUrl(_0x54e190){const _0x442a64={_0xe2fa7:0x52d,_0x33b61c:0x581,_0x2f1cb5:0x7eb,_0x9a6809:0x774,_0x3602e1:0x42e,_0x3d254d:0x1b7,_0x191fdc:0x731,_0x3fbec2:0x5e1,_0x22dba9:0x7b6};function _0x3d00a2(_0x3361f3,_0x181b21){return _0x32d8ea(_0x3361f3,_0x181b21- -0x244);}const _0x5017dc={'aTmcv':function(_0x5103fe,_0x15e027){return _0x5103fe(_0x15e027);}},_0x491afc=_0x54e190?.[_0xb942a6(-0x144,0x58)+_0x3d00a2(_0x442a64._0xe2fa7,_0x442a64._0x33b61c)]?.[_0x3d00a2(0x630,_0x442a64._0x2f1cb5)]();if(_0x491afc)return _0x5017dc[_0x3d00a2(_0x442a64._0x9a6809,0x7a2)](normalizeExplicitGatewayUrl,_0x491afc);const _0x3136d6=_0x54e190?.[_0x3d00a2(0x8d1,0x7b0)+_0x3d00a2(_0x442a64._0x3602e1,0x5c2)+'l']?.['trim']()||resolveGatewayUrl(),_0x296ea8=detectLanIp();function _0xb942a6(_0x2a9db8,_0x3763ba){return _0x32d8ea(_0x3763ba,_0x2a9db8- -0x772);}if(!_0x296ea8)throw new Error('Failed\x20t'+_0xb942a6(0x63,_0x442a64._0x3d254d)+_0x3d00a2(0x6b3,0x5cb)+_0xb942a6(0x215,0x44b)+_0x3d00a2(0x520,_0x442a64._0x191fdc)+_0xb942a6(0x90,0xfb)+_0x3d00a2(_0x442a64._0x3fbec2,_0x442a64._0x22dba9)+_0xb942a6(0x1af,0x19a)+'stom\x20gat'+_0xb942a6(0x19d,0x311)+'.');return rewriteGatewayHost(_0x3136d6,_0x296ea8);}function normalizeExplicitGatewayUrl(_0x40c1e7){const _0x3dd15e={_0x4d9361:0x81a,_0x6e3728:0x529,_0x1acd5c:0x689,_0x33b20c:0x54a,_0x521dfa:0x5a0};function _0x5d93cc(_0x31b3af,_0x432723){return _0x3a7f13(_0x432723,_0x31b3af-0x3fe);}const _0x29dab7=_0x40c1e7[_0x5d93cc(0xa07,_0x3dd15e._0x4d9361)](),_0x2238fa=/^[a-z]+:\/\//i[_0x260dcc(_0x3dd15e._0x6e3728,_0x3dd15e._0x1acd5c)](_0x29dab7)?_0x29dab7:_0x260dcc(0x70f,_0x3dd15e._0x33b20c)+_0x29dab7;function _0x260dcc(_0x3580e4,_0x1af28f){return _0x3a7f13(_0x1af28f,_0x3580e4-0x176);}return normalizeGatewayQrUrl(_0x2238fa)[_0x260dcc(0x361,_0x3dd15e._0x521dfa)];}function rewriteGatewayHost(_0x25aa5f,_0x5d2ccc){const _0x2ab1d9={_0x18ea12:0x168,_0x580a6c:0x35,_0x41b670:0x195},_0x1e7073={_0xa0f7e5:0x21f},_0x1d1104={'BFWeD':function(_0x54feca,_0xe9a439){return _0x54feca(_0xe9a439);}},_0x3c20ef=_0x25aa5f['trim']();function _0x45dee0(_0x499061,_0xda8383){return _0x3a7f13(_0x499061,_0xda8383- -0x2ae);}function _0x36d8be(_0x4aeaba,_0xb328d5){return _0x3a7f13(_0x4aeaba,_0xb328d5- -_0x1e7073._0xa0f7e5);}const _0xce4181=/^[a-z]+:\/\//i[_0x36d8be(0x370,0x194)](_0x3c20ef)?_0x3c20ef:_0x45dee0(0x342,0x2eb)+_0x3c20ef,_0x13b596=new URL(_0xce4181);return _0x13b596[_0x45dee0(0x41,_0x2ab1d9._0x18ea12)]=_0x5d2ccc,_0x1d1104['BFWeD'](normalizeGatewayQrUrl,_0x13b596[_0x36d8be(-_0x2ab1d9._0x580a6c,0x1cf)]())[_0x45dee0(-_0x2ab1d9._0x41b670,-0xc3)];}function detectLanIp(){const _0x1864cf={_0xddff3d:0x143,_0x101720:0x1fc,_0x46cfbd:0x13,_0x57ab8b:0x314,_0xd704b1:0x416},_0x5c1200={_0x571217:0x2aa},_0x423790={_0x42e371:0xbb},_0x1b5386={};function _0x42fb2e(_0x4f5cad,_0x1ecdd8){return _0x3a7f13(_0x4f5cad,_0x1ecdd8-_0x423790._0x42e371);}_0x1b5386[_0x42804a(0x257,_0x1864cf._0xddff3d)]=function(_0x177279,_0x561c6c){return _0x177279===_0x561c6c;};const _0x4cec3d=_0x1b5386,_0x25b4c9=networkInterfaces();let _0x6c54bc=null;function _0x42804a(_0x1b97dc,_0x5756c0){return _0x3a7f13(_0x5756c0,_0x1b97dc- -_0x5c1200._0x571217);}for(const [_0x599a4b,_0x3c45e5]of Object[_0x42fb2e(_0x1864cf._0x101720,0x2a7)](_0x25b4c9)){for(const _0x10f5ca of _0x3c45e5??[]){if(_0x10f5ca[_0x42fb2e(0x2b3,0x4ff)]!==_0x42fb2e(0x288,0x45c))continue;const _0x52f47b=scoreLanCandidate(_0x599a4b,_0x10f5ca['address']);if(_0x4cec3d[_0x42804a(0x257,_0x1864cf._0x46cfbd)](_0x52f47b,0x0))continue;if(!_0x6c54bc||_0x52f47b>_0x6c54bc[_0x42fb2e(_0x1864cf._0x57ab8b,0x416)]){const _0x23eed8={};_0x23eed8[_0x42fb2e(0x311,_0x1864cf._0xd704b1)]=_0x52f47b,_0x23eed8['ip']=_0x10f5ca['address'],_0x6c54bc=_0x23eed8;}}}return _0x6c54bc?.['ip']??null;}function scoreLanCandidate(_0x138e5c,_0x520e27){const _0x421987={_0x1a3427:0x75b,_0x5aa9d1:0x675,_0x4805a7:0x80a,_0x40be57:0x86a,_0xce22c4:0x724,_0x171c71:0x4e2,_0x856152:0x3df,_0x445225:0x3fa,_0x507885:0x369,_0x13214b:0x6ff,_0x185819:0x5e6,_0x105f7a:0x6c0,_0x408720:0x3fc,_0x27fdb3:0x2be},_0x93b1c1={_0x1ff35b:0x167};function _0x2748f0(_0x14b477,_0x3c5b22){return _0x32d8ea(_0x14b477,_0x3c5b22- -_0x93b1c1._0x1ff35b);}const _0x336b0f={'iTSER':function(_0x31055d,_0x236ac4){return _0x31055d(_0x236ac4);},'dLrOk':function(_0x270b50,_0x3c3e27){return _0x270b50(_0x3c3e27);}};if(!isLanIpv4(_0x520e27))return 0x0;function _0x29bf5e(_0x4f00cf,_0x2e90ac){return _0x32d8ea(_0x2e90ac,_0x4f00cf- -0x36b);}const _0x5dd22e=_0x138e5c[_0x2748f0(0x526,_0x421987._0x1a3427)+'ase']();if(BLOCKED_INTERFACE_TOKENS[_0x29bf5e(_0x421987._0x5aa9d1,_0x421987._0x4805a7)](_0x29edf7=>_0x5dd22e[_0x2748f0(0x4ce,0x6ff)](_0x29edf7)))return 0x0;let _0x5e364b=_0x336b0f['iTSER'](isRfc1918,_0x520e27)?0x78:_0x336b0f[_0x2748f0(_0x421987._0x40be57,0x7f6)](isCgnat,_0x520e27)?0x5a:0x28;return(_0x5dd22e[_0x2748f0(_0x421987._0xce22c4,0x4e2)+'th']('en')||_0x5dd22e[_0x2748f0(0x505,_0x421987._0x171c71)+'th'](_0x29bf5e(0x542,_0x421987._0x856152))||_0x5dd22e[_0x29bf5e(0x2de,0x1d9)+'th'](_0x29bf5e(_0x421987._0x445225,0x1df))||_0x5dd22e[_0x2748f0(_0x421987._0x507885,_0x421987._0x171c71)+'th']('wl')||_0x5dd22e[_0x2748f0(0x54d,_0x421987._0x13214b)](_0x2748f0(_0x421987._0x185819,_0x421987._0x105f7a))||_0x5dd22e['includes'](_0x29bf5e(_0x421987._0x408720,_0x421987._0x27fdb3)))&&(_0x5e364b+=0x14),_0x5e364b;}function resolveLocalPairAuth(_0x1fe2b9){const _0x45914e={_0x4cacab:0x2a2,_0x1454c7:0x112,_0x294b8c:0x161,_0xd92fb3:0x33c,_0x5eeb2e:0x52d,_0x257573:0xe2,_0x114143:0x4eb,_0x1bd981:0x1a,_0x3cda08:0x17d,_0x140308:0x7c1,_0x159a44:0x5d0,_0xbedcbd:0x6f6,_0x5cbd99:0x4be,_0x5d1372:0x6f0,_0x4c3af1:0x62f,_0x2e4774:0x75e,_0x172000:0x30,_0x43f83f:0x76c},_0x3c98ee={_0x5326b5:0x1b8},_0x665b99={_0x1fd113:0x27f},_0x44abd1={};_0x44abd1[_0x3da04e(0x4bd,_0x45914e._0x4cacab)]=_0x3da04e(0x528,0x359);const _0x304347=_0x44abd1;function _0xb411be(_0xd2e451,_0x42c7cb){return _0x3a7f13(_0x42c7cb,_0xd2e451- -_0x665b99._0x1fd113);}if(_0x1fe2b9['gatewayT'+_0xb411be(0x33c,0x196)]?.['trim']())return{'mode':_0xb411be(0x1ea,_0x45914e._0x1454c7),'token':_0x1fe2b9[_0xb411be(0x8f,-_0x45914e._0x294b8c)+_0xb411be(_0x45914e._0xd92fb3,0x481)][_0xb411be(0x38a,0x2aa)](),'password':null};if(_0x1fe2b9[_0x3da04e(_0x45914e._0x5eeb2e,0x590)+_0xb411be(-0x1a,_0x45914e._0x257573)]?.[_0x3da04e(0x7c1,0x93f)]())return{'mode':_0x304347[_0x3da04e(0x4bd,_0x45914e._0x114143)],'token':null,'password':_0x1fe2b9['gatewayP'+_0xb411be(-_0x45914e._0x1bd981,_0x45914e._0x3cda08)][_0x3da04e(_0x45914e._0x140308,_0x45914e._0x159a44)]()};function _0x3da04e(_0x2e864d,_0x26fe2d){return _0x3a7f13(_0x26fe2d,_0x2e864d-_0x3c98ee._0x5326b5);}throw new Error(_0x3da04e(_0x45914e._0xbedcbd,_0x45914e._0x5cbd99)+'\x20gateway'+_0x3da04e(_0x45914e._0x5d1372,0x617)+_0x3da04e(_0x45914e._0x4c3af1,_0x45914e._0x2e4774)+_0xb411be(0x1cd,_0x45914e._0x172000)+_0x3da04e(_0x45914e._0x43f83f,0x979)+'ord).');}function isLanIpv4(_0x31ba62){const _0x194fe7={_0x21e135:0x52e,_0x596308:0x582,_0x591286:0x5b3,_0x583453:0x543,_0x3add00:0x4cf,_0x5b649a:0x373,_0x1f9d6f:0x63a},_0x44031f={_0x45a6ad:0x405},_0x4bb46e={};_0x4bb46e['VwtRX']=function(_0x3de991,_0x381c9){return _0x3de991===_0x381c9;},_0x4bb46e[_0x4a7619(_0x194fe7._0x21e135,0x3b5)]=function(_0x3c6daf,_0xe5af15){return _0x3c6daf>=_0xe5af15;},_0x4bb46e['VTSwK']=function(_0x166547,_0x3fe16a){return _0x166547<=_0x3fe16a;};function _0x4d718f(_0x2af97b,_0x272719){return _0x32d8ea(_0x2af97b,_0x272719- -_0x44031f._0x45a6ad);}_0x4bb46e[_0x4d718f(0x69e,0x4bc)]=function(_0x23a26c,_0x3677c6){return _0x23a26c===_0x3677c6;},_0x4bb46e[_0x4a7619(0x5f5,_0x194fe7._0x596308)]=function(_0x28df5b,_0x407abd){return _0x28df5b===_0x407abd;};const _0x2d0d59=_0x4bb46e;if(!isValidIpv4(_0x31ba62))return![];if(_0x31ba62===_0x4d718f(_0x194fe7._0x591286,0x5ab))return![];const [_0x148f44,_0x358565,_0x460a25,_0x564ea6]=_0x31ba62[_0x4a7619(_0x194fe7._0x583453,0x74b)]('.')['map'](Number);if(_0x2d0d59['VwtRX'](_0x148f44,0x7f))return![];if(_0x148f44===0xa9&&_0x358565===0xfe)return![];if(_0x2d0d59[_0x4d718f(0x1ef,0x3b0)](_0x148f44,0xe0)&&_0x2d0d59[_0x4d718f(_0x194fe7._0x3add00,_0x194fe7._0x5b649a)](_0x148f44,0xef))return![];if(_0x2d0d59[_0x4d718f(0x20b,0x20a)](_0x148f44,0xff)&&_0x2d0d59[_0x4a7619(_0x194fe7._0x1f9d6f,0x653)](_0x358565,0xff)&&_0x460a25===0xff&&_0x2d0d59[_0x4d718f(0x1d7,0x20a)](_0x564ea6,0xff))return![];function _0x4a7619(_0x7f5943,_0x3fb6f8){return _0x32d8ea(_0x3fb6f8,_0x7f5943- -0x287);}if(_0x148f44===0xc6&&(_0x2d0d59[_0x4a7619(0x5f5,0x503)](_0x358565,0x12)||_0x358565===0x13))return![];return isRfc1918(_0x31ba62)||isCgnat(_0x31ba62);}function isRfc1918(_0xe9067){const _0x342813={_0x5b4a93:0x2cb,_0x45fb54:0xa5},_0x143aab={_0x41411a:0x60a},_0x379d24={_0x38a3eb:0x781};function _0x2de6de(_0x933299,_0x1aa417){return _0x32d8ea(_0x933299,_0x1aa417- -_0x379d24._0x38a3eb);}const _0x428f7b={};_0x428f7b[_0xc26a4f(0x417,_0x342813._0x5b4a93)]=function(_0x2d2d4b,_0x4432a0){return _0x2d2d4b<=_0x4432a0;};const _0x3bf160=_0x428f7b,[_0x55f654,_0x52f759]=_0xe9067[_0x2de6de(-_0x342813._0x45fb54,0x49)]('.')[_0xc26a4f(0x299,0x169)](Number);function _0xc26a4f(_0x298345,_0x341224){return _0x32d8ea(_0x298345,_0x341224- -_0x143aab._0x41411a);}return _0x55f654===0xa||_0x55f654===0xac&&_0x52f759>=0x10&&_0x3bf160[_0xc26a4f(0x3ce,_0x342813._0x5b4a93)](_0x52f759,0x1f)||_0x55f654===0xc0&&_0x52f759===0xa8;}function isCgnat(_0x3aa99e){const _0x3b7127={_0x421f7c:0x5d};function _0x58af5f(_0x159a4e,_0xea2064){return _0x32d8ea(_0xea2064,_0x159a4e- -0x51c);}function _0x11fefb(_0x1748a2,_0x2f398c){return _0x32d8ea(_0x1748a2,_0x2f398c- -0x14d);}const [_0x47123e,_0xf9d1ee]=_0x3aa99e[_0x58af5f(0x2ae,0x330)]('.')[_0x58af5f(0x257,_0x3b7127._0x421f7c)](Number);return _0x47123e===0x64&&_0xf9d1ee>=0x40&&_0xf9d1ee<=0x7f;}function isValidIpv4(_0x43cb60){const _0x44344f={_0x39aafa:0x3d7},_0x39b8eb={_0xd23c8a:0x294},_0x36288b={_0x40497e:0x5f},_0x2638cb={'UryMM':function(_0x5cba69,_0x7b6eb6){return _0x5cba69(_0x7b6eb6);}};function _0x3825ad(_0x1b8855,_0x49fdb4){return _0x3a7f13(_0x1b8855,_0x49fdb4- -0x73);}const _0x2ed8e8=_0x43cb60['split']('.');return _0x2ed8e8['length']===0x4&&_0x2ed8e8[_0x3825ad(_0x44344f._0x39aafa,0x380)](_0x4c25fd=>{if(!/^\d+$/['test'](_0x4c25fd))return![];function _0xdff87a(_0x1d32a9,_0x4577ae){return _0x3825ad(_0x4577ae,_0x1d32a9- -_0x36288b._0x40497e);}const _0xb5715c=_0x2638cb[_0xdff87a(_0x39b8eb._0xd23c8a,0x2be)](Number,_0x4c25fd);return _0xb5715c>=0x0&&_0xb5715c<=0xff;});}function _0x2370(_0x637ef,_0x1368cc){_0x637ef=_0x637ef-0x1c3;const _0x4bc50a=_0x472c();let _0x345fc1=_0x4bc50a[_0x637ef];if(_0x2370['ECVRxC']===undefined){var _0x2b7cce=function(_0x1b68c3){const _0x2c5bae='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x75bb2f='',_0x2b085f='',_0x513af7=_0x75bb2f+_0x2b7cce;for(let _0x18f9a6=0x0,_0x2e3a84,_0x3716e5,_0x23c8a5=0x0;_0x3716e5=_0x1b68c3['charAt'](_0x23c8a5++);~_0x3716e5&&(_0x2e3a84=_0x18f9a6%0x4?_0x2e3a84*0x40+_0x3716e5:_0x3716e5,_0x18f9a6++%0x4)?_0x75bb2f+=_0x513af7['charCodeAt'](_0x23c8a5+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x2e3a84>>(-0x2*_0x18f9a6&0x6)):_0x18f9a6:0x0){_0x3716e5=_0x2c5bae['indexOf'](_0x3716e5);}for(let _0x8a4c48=0x0,_0x45c0d2=_0x75bb2f['length'];_0x8a4c48<_0x45c0d2;_0x8a4c48++){_0x2b085f+='%'+('00'+_0x75bb2f['charCodeAt'](_0x8a4c48)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2b085f);};_0x2370['IcvOlM']=_0x2b7cce,_0x2370['dafVvv']={},_0x2370['ECVRxC']=!![];}const _0x472c2c=_0x4bc50a[0x0],_0x23706c=_0x637ef+_0x472c2c,_0x5c3753=_0x2370['dafVvv'][_0x23706c];if(!_0x5c3753){const _0x55fa60=function(_0x44712a){this['TDYVLO']=_0x44712a,this['AjoClQ']=[0x1,0x0,0x0],this['HOTMwY']=function(){return'newState';},this['szpkbe']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['LMHndt']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x55fa60['prototype']['awWmeJ']=function(){const _0x791ef0=new RegExp(this['szpkbe']+this['LMHndt']),_0x1fa53a=_0x791ef0['test'](this['HOTMwY']['toString']())?--this['AjoClQ'][0x1]:--this['AjoClQ'][0x0];return this['zqIAjF'](_0x1fa53a);},_0x55fa60['prototype']['zqIAjF']=function(_0x53ae32){if(!Boolean(~_0x53ae32))return _0x53ae32;return this['uqRGnm'](this['TDYVLO']);},_0x55fa60['prototype']['uqRGnm']=function(_0xbe82c){for(let _0x2d5d28=0x0,_0x477718=this['AjoClQ']['length'];_0x2d5d28<_0x477718;_0x2d5d28++){this['AjoClQ']['push'](Math['round'](Math['random']())),_0x477718=this['AjoClQ']['length'];}return _0xbe82c(this['AjoClQ'][0x0]);},new _0x55fa60(_0x2370)['awWmeJ'](),_0x345fc1=_0x2370['IcvOlM'](_0x345fc1),_0x2370['dafVvv'][_0x23706c]=_0x345fc1;}else _0x345fc1=_0x5c3753;return _0x345fc1;}import{readFileSync as _0x242515}from'fs';function _0x3a7f13(_0x50f014,_0x31f839){const _0x111bc5={_0x2324ed:0x45};return _0x2370(_0x31f839- -_0x111bc5._0x2324ed,_0x50f014);}import{dirname as _0xd755a,resolve}from'path';import{fileURLToPath}from'url';function readCliVersion(){const _0x10d99d={_0x588d67:0x5ac,_0x5b1b00:0x4f1,_0x362ce4:0x4fe,_0xd988d8:0x4d8,_0x45c95b:0x4b7},_0x330f7a={_0x20c3ff:0xd},_0x32e445=_0xd755a(fileURLToPath(import.meta.url)),_0x6a0397=resolve(_0x32e445,'../packa'+_0x5d9873(0x3b6,0x599)),_0x2ab18f=_0x242515(_0x6a0397,_0x5d9873(_0x10d99d._0x588d67,_0x10d99d._0x5b1b00)),_0x4125bd=JSON[_0x5e6559(0x309,_0x10d99d._0x362ce4)](_0x2ab18f);function _0x5e6559(_0x2aec8d,_0x5f2ffa){return _0x3a7f13(_0x5f2ffa,_0x2aec8d- -_0x330f7a._0x20c3ff);}function _0x5d9873(_0x3e23a5,_0x2458cd){return _0x3a7f13(_0x3e23a5,_0x2458cd- -0x41);}return _0x4125bd['version']??_0x5d9873(_0x10d99d._0xd988d8,_0x10d99d._0x45c95b);}function buildPairingJson(_0x1440ff,_0x2d0222,_0x2fecad,_0x30a72a){const _0x3b8daf={_0x2d346d:0x603,_0x44dc34:0x1c1,_0x513bd1:0x66e,_0xe74bd5:0x178,_0x3768d6:0xc,_0x319ed8:0x1f9,_0x38d713:0x50e,_0x2ce7d4:0x48a,_0x2ebc96:0x1bd,_0x14e32d:0x4ca,_0x53a5c2:0x373,_0x5b0e80:0x187,_0x4d1dce:0xa0,_0x1776a4:0xa,_0x3db4fb:0x6ef,_0x38d810:0x2a,_0x129362:0x5f6,_0x3f3b67:0x4e6,_0x571bd6:0x203,_0xb81f3a:0xfa,_0x26838e:0x5f6,_0x30ecff:0x4aa,_0x239f93:0x8c7,_0x2f1f95:0x5f6,_0x74ae7a:0x3f9,_0x49c3c0:0xa1e,_0x3ea0a6:0x5f0,_0x57505b:0x5f0,_0x332c52:0x6d,_0x2afdf8:0x18b,_0x1fffba:0x2bf,_0x43594c:0x4f2,_0x529d20:0x50e,_0x3e7da7:0x58b},_0x284820={_0x4e65ed:0x391},_0x212ad4={_0x2ad2f9:0x2cc},_0x5bc7a3={};_0x5bc7a3[_0x49bb62(_0x3b8daf._0x2d346d,0x710)+'d']=_0x2fecad[_0x3e007c(-0x5a,0xc9)+'d'],_0x5bc7a3[_0x3e007c(-0x186,-_0x3b8daf._0x44dc34)]=_0x2fecad[_0x3e007c(-0x186,-0x1db)];function _0x49bb62(_0x356bcc,_0x550c12){return _0x3a7f13(_0x550c12,_0x356bcc-_0x212ad4._0x2ad2f9);}_0x5bc7a3[_0x49bb62(0x5e1,_0x3b8daf._0x513bd1)]=_0x2fecad['method'],_0x5bc7a3[_0x3e007c(-0xc,_0x3b8daf._0xe74bd5)+'ath']=_0x2fecad[_0x3e007c(-_0x3b8daf._0x3768d6,-_0x3b8daf._0x319ed8)+_0x49bb62(_0x3b8daf._0x38d713,_0x3b8daf._0x2ce7d4)],_0x5bc7a3[_0x49bb62(0x4a0,0x3d3)]=_0x2fecad[_0x3e007c(-_0x3b8daf._0x2ebc96,-0x139)];function _0x3e007c(_0x49c810,_0x4b345f){return _0x3a7f13(_0x4b345f,_0x49c810- -_0x284820._0x4e65ed);}_0x5bc7a3['errorLog'+_0x49bb62(_0x3b8daf._0x14e32d,_0x3b8daf._0x53a5c2)]=_0x2fecad[_0x3e007c(_0x3b8daf._0x5b0e80,0x2d5)+_0x3e007c(-0x193,-0x84)],_0x5bc7a3['pid']=_0x2fecad['pid'];const _0x35ea66={};return _0x35ea66['ok']=!![],_0x35ea66[_0x3e007c(-_0x3b8daf._0x4d1dce,-_0x3b8daf._0x1776a4)]=_0x1440ff[_0x49bb62(0x5bd,_0x3b8daf._0x3db4fb)],_0x35ea66[_0x3e007c(_0x3b8daf._0x38d810,0x191)]=_0x30a72a,_0x35ea66[_0x49bb62(0x741,0x7ab)+'d']=_0x1440ff[_0x49bb62(_0x3b8daf._0x129362,_0x3b8daf._0x3f3b67)]['gatewayI'+'d'],_0x35ea66[_0x3e007c(_0x3b8daf._0x571bd6,_0x3b8daf._0xb81f3a)]=_0x1440ff['config'][_0x49bb62(0x860,0x8e7)],_0x35ea66[_0x49bb62(0x4aa,0x696)+'l']=_0x1440ff[_0x49bb62(_0x3b8daf._0x26838e,0x7e1)][_0x49bb62(_0x3b8daf._0x30ecff,0x311)+'l'],_0x35ea66[_0x49bb62(_0x3b8daf._0x239f93,0x995)+'Id']=_0x1440ff[_0x49bb62(_0x3b8daf._0x2f1f95,_0x3b8daf._0x74ae7a)][_0x49bb62(0x8c7,_0x3b8daf._0x49c3c0)+'Id'],_0x35ea66[_0x49bb62(_0x3b8daf._0x3ea0a6,0x6c3)+'de']=_0x1440ff[_0x49bb62(_0x3b8daf._0x57505b,0x5d7)+'de'],_0x35ea66[_0x3e007c(-_0x3b8daf._0x332c52,_0x3b8daf._0x2afdf8)+_0x3e007c(0x265,0x358)+_0x3e007c(0x11b,_0x3b8daf._0x1fffba)]=_0x1440ff[_0x49bb62(0x5f0,0x3f2)+_0x49bb62(0x8c2,0x6a6)+_0x49bb62(0x778,0x89d)],_0x35ea66[_0x49bb62(0x739,_0x3b8daf._0x43594c)+_0x49bb62(_0x3b8daf._0x529d20,_0x3b8daf._0x3e7da7)]=_0x2d0222,_0x35ea66[_0x49bb62(0x88e,0xa82)]=_0x5bc7a3,_0x35ea66;}function buildLocalPairingJson(_0x6a3bbc){const _0x184882={_0x4a678:0x1b6,_0x3faab5:0x26a,_0x435a4b:0x2f5,_0x486228:0x12e,_0x2c8952:0x14a,_0x3c9586:0x3c3},_0xd3e913={_0x3daef5:0xc6},_0x560286={};_0x560286['ok']=!![],_0x560286[_0x55bce3(_0x184882._0x4a678,0x247)]=_0xb2dfda(_0x184882._0x3faab5,0x389),_0x560286[_0xb2dfda(0x2ad,_0x184882._0x435a4b)]=_0x6a3bbc[_0xb2dfda(0x246,_0x184882._0x435a4b)],_0x560286[_0xb2dfda(0x109,0x196)+'rl']=_0x6a3bbc['gatewayU'+'rl'];function _0xb2dfda(_0x1011f5,_0x35d966){return _0x3a7f13(_0x1011f5,_0x35d966- -_0xd3e913._0x3daef5);}_0x560286[_0xb2dfda(0x339,0x3bf)]=_0x6a3bbc['authMode'];function _0x55bce3(_0x5d289e,_0x26509c){return _0x3a7f13(_0x5d289e,_0x26509c- -0xaa);}return _0x560286[_0xb2dfda(0x312,_0x184882._0x486228)+'t']=_0x6a3bbc[_0x55bce3(0x33f,_0x184882._0x2c8952)+'t'],_0x560286[_0x55bce3(0x418,_0x184882._0x3c9586)+_0x55bce3(0x3b0,0x198)]=_0x6a3bbc[_0x55bce3(0x2b5,0x3c3)+_0xb2dfda(0x3b4,0x17c)],_0x560286;}import{mkdirSync as _0x3e75a8,writeFileSync as _0x5f24f7}from'fs';import{dirname as _0x2104fa,isAbsolute,join as _0x2bdafe,resolve as _0x1546d3}from'path';import _0x3ce7bc from'qrcode';var DEFAULT_QR_DIR=getOpenClawMediaDir();async function writePairingQrPng(_0x16464a,_0x37cc27){const _0x27215d={_0xd6132a:0x1a4,_0x3f3f0c:0x7b};function _0x2ccd06(_0x564e12,_0x1542b3){return _0x3a7f13(_0x564e12,_0x1542b3- -0x2ae);}function _0x4ff1d0(_0x26f118,_0x57ce53){return _0x3a7f13(_0x57ce53,_0x26f118- -0x117);}const _0x4f60aa=resolveQrOutputPath(_0x16464a[_0x4ff1d0(0x213,0xf7)]['gatewayI'+'d'],_0x37cc27);return writeQrPng(_0x16464a[_0x2ccd06(_0x27215d._0xd6132a,_0x27215d._0x3f3f0c)+'d'],_0x4f60aa);}async function writeRawQrPng(_0x341227,_0x3ac7fa,_0x88492d){const _0x3c6f56={_0x26c267:0x5a0};function _0x372f19(_0x453985,_0x40a60e){return _0x32d8ea(_0x40a60e,_0x453985- -0x3b0);}const _0x4b4cbc={'FTiVQ':function(_0x4ef232,_0x55a062,_0x5c60ee){return _0x4ef232(_0x55a062,_0x5c60ee);}},_0xe8dcb8=_0x4b4cbc[_0x372f19(0x354,_0x3c6f56._0x26c267)](resolveQrOutputPath,_0x3ac7fa,_0x88492d);return writeQrPng(_0x341227,_0xe8dcb8);}async function writeQrPng(_0x4d3910,_0x452613){const _0x5f0930={_0x2560db:0x2f9,_0x1918d9:0x2b4,_0x3a27eb:0x661,_0x2d25b6:0x556,_0x5abd27:0x19e};function _0x161f8e(_0x334265,_0x4fb10f){return _0x3a7f13(_0x334265,_0x4fb10f-0x151);}const _0x446ffe={};_0x446ffe[_0x161f8e(0x369,0x2e5)+'e']=!![],_0x3e75a8(_0x2104fa(_0x452613),_0x446ffe);function _0x1e53e6(_0x373eaf,_0x1fa25f){return _0x3a7f13(_0x373eaf,_0x1fa25f-0x104);}const _0x3eddb1={};_0x3eddb1['type']=_0x161f8e(0x4cc,_0x5f0930._0x2560db)+'g',_0x3eddb1[_0x1e53e6(0x8f,_0x5f0930._0x1918d9)+_0x161f8e(0x553,0x496)+'evel']='M',_0x3eddb1[_0x161f8e(_0x5f0930._0x3a27eb,_0x5f0930._0x2d25b6)]=0x1,_0x3eddb1['width']=0x2d0;const _0x527403=await _0x3ce7bc[_0x161f8e(0x732,0x5a6)+'L'](_0x4d3910,_0x3eddb1),_0x38dc5e=_0x527403['replace'](/^data:image\/png;base64,/,'');return _0x5f24f7(_0x452613,Buffer['from'](_0x38dc5e,_0x1e53e6(_0x5f0930._0x5abd27,0x3c6))),_0x452613;}function resolveQrOutputPath(_0x779c06,_0x20fb70){const _0x2d9c10={_0x794f7c:0x571,_0x3e7e0d:0x3e8},_0x48b77c={_0x9138f7:0x1ae},_0x120e21={'Ugule':function(_0x3e4dac,_0x2df285){return _0x3e4dac(_0x2df285);},'Iohpi':function(_0xb51877,_0x5d4533,_0x5cb8ec){return _0xb51877(_0x5d4533,_0x5cb8ec);}},_0x5e4013=_0x20fb70?.[_0x54f84e(0x881,0xab5)]();function _0x54f84e(_0x173144,_0x456129){return _0x32d8ea(_0x456129,_0x173144- -_0x48b77c._0x9138f7);}if(_0x5e4013)return _0x120e21[_0x29efd7(_0x2d9c10._0x794f7c,_0x2d9c10._0x3e7e0d)](isAbsolute,_0x5e4013)?_0x5e4013:_0x1546d3(_0x5e4013);function _0x29efd7(_0x5a4381,_0x31337f){return _0x32d8ea(_0x31337f,_0x5a4381- -0x18b);}return _0x120e21['Iohpi'](_0x2bdafe,DEFAULT_QR_DIR,_0x779c06+'.png');}function decidePairServiceAction(_0x1f96b9,_0x1018a8){const _0x5d6e6b={_0x1be4aa:0x367,_0x144fe8:0x43e,_0x2d3fa1:0x4f9},_0x280e70={};_0x280e70['kynzT']='restart';const _0x233959=_0x280e70;if(!_0x1018a8[_0x213b26(_0x5d6e6b._0x1be4aa,0x3da)+'d'])return _0x54c245(0x2d6,_0x5d6e6b._0x144fe8);function _0x213b26(_0x5c5479,_0x13dc8d){return _0x32d8ea(_0x5c5479,_0x13dc8d- -0x383);}function _0x54c245(_0x41ad44,_0x27114b){return _0x32d8ea(_0x41ad44,_0x27114b- -0x1db);}if(!_0x1018a8['running'])return _0x233959['kynzT'];if(_0x1f96b9[_0x213b26(0x4dd,0x394)]==='register'+'ed')return _0x213b26(_0x5d6e6b._0x2d3fa1,0x3ae);return'noop';}async function main(){const _0x19a62e={_0x1bbf60:0x108,_0x4ccb37:0x52,_0x5ef4c9:0x542,_0x5ba3c0:0xea,_0x440854:0x268,_0x4e839b:0x464,_0x49bc2e:0x4bb,_0xd773a4:0x2f2,_0x2b648e:0x570,_0x1accc7:0x404,_0x493870:0x516,_0x20631c:0x55d,_0x3c97ce:0x22e,_0x41efca:0x1b9,_0x21838a:0x4e1,_0x4c7166:0x4e1,_0x17205b:0x205,_0x5ea1eb:0x152,_0x332f51:0x3f0,_0x308187:0x3cf,_0x2ef7c4:0x35d,_0x1a9d43:0xeb,_0x154c1f:0x318,_0x3b1e9b:0x472,_0x15726b:0x17b,_0x15274d:0x27,_0x1d8c9d:0x45a,_0x4849da:0x342,_0x5c959b:0xfb,_0x3ec8fc:0x38,_0x2add96:0x200,_0x5f3458:0x40c,_0x4d2b51:0x5b,_0xf5ab26:0x1e1,_0x303250:0x2b0,_0x301925:0x3d4,_0x4ccd3f:0x23a,_0x22a165:0x45d,_0x426598:0x22a,_0x31bb0c:0x202,_0x3e3d13:0x437,_0x1e405b:0x591,_0x55e88f:0x396,_0x358bf4:0x366,_0x1b8397:0x31f,_0x51ce40:0x554,_0x18bbb9:0x5a8,_0x364e9c:0x3f0,_0x383638:0x362,_0x976b9a:0x1ec,_0x316aa5:0x2b6,_0x4e89c4:0x614,_0x5a2837:0x457,_0x395973:0x12e,_0x149a6b:0x337,_0x10b15b:0x533,_0x1b16a4:0x2fe,_0x39bfbd:0x219,_0x4d6fc9:0x15,_0x30a78d:0x37,_0x2bfc4d:0x573,_0x4df754:0x32e,_0x107196:0x213,_0x3c38ba:0x3f4,_0x5a7fdf:0x68d,_0x59bdde:0x539,_0x4595ac:0x484,_0x2c398a:0x21f,_0x556514:0x456,_0x5b37b3:0x5a4,_0x2bd0fa:0x322,_0x2954b1:0x237,_0x2ad0db:0x535,_0x5ce4be:0x3cd,_0x413c92:0x34f,_0x40bb13:0x40e,_0x230118:0x403,_0x109e39:0x3d0,_0x275975:0x35d,_0x2f01ae:0x2ca,_0x379582:0x244,_0x118422:0x10c,_0x72a53b:0x321,_0x46c0dc:0x59b,_0x17773a:0x484,_0x1b33b4:0x57a,_0x547f89:0x148,_0x4a7e0a:0x19f,_0x159e17:0x1c3,_0x41d722:0x2bd,_0x495a16:0x787,_0x84cfb0:0x4bf,_0x31821c:0x58e,_0xd594a9:0x1bb,_0x320fc5:0x46f,_0x30a69e:0x7fc,_0x213207:0x304,_0x3e2dbb:0x1ee,_0x592404:0x29f,_0xe2bd70:0x33a,_0x1222f1:0x477,_0x127e24:0x31c,_0x230f05:0x469,_0x3d9189:0x2d6,_0x56d02f:0x13d,_0x2d025a:0x31b,_0x22c310:0x181,_0x593021:0x54f,_0x4a21c3:0x485,_0x260b2f:0x365,_0x194119:0x3fb,_0xff9717:0x307,_0x292114:0x74a,_0x2258e1:0x30f,_0x385a7b:0x186,_0x2dd1a9:0x18d,_0x29db94:0x1ba,_0x789dde:0x247,_0xb90119:0x4d7,_0x2e0efb:0x462,_0x224919:0x3d4,_0x256f86:0x367,_0xf3cf91:0x45b,_0x3ba8cf:0x2f6,_0x40c21b:0x553,_0x5039d7:0x2e0,_0x30b912:0x276,_0x3c58ef:0x604,_0x5afcf6:0x543,_0x560789:0x3e9,_0xdbe6d8:0x28f,_0x462e8b:0x206,_0x1bbe8d:0x342,_0xda5685:0x480,_0x33dcc9:0x175,_0x13c1b3:0x4f3,_0x47cb95:0x21a,_0xe0524:0x56d,_0x52c33a:0x23b,_0x139abd:0x1c2,_0x23808e:0x338,_0x2125b4:0x55d,_0x336247:0x20f,_0x312606:0x20f,_0xb0f34e:0x18a,_0xc34ea:0x428,_0x52fbbf:0x189,_0x34ac71:0x597,_0x712bbf:0x64b,_0x279b1f:0x2e5,_0x5eb76f:0x4a3,_0x45772d:0x39,_0x497537:0x26d,_0x336fc3:0x33e,_0x2f221c:0x275,_0x17fe32:0x5d2,_0x41905b:0x3c8,_0x40f07d:0x331,_0x38d6b9:0x193,_0x5b5c82:0x44e,_0x217e9b:0x62,_0x2ae8d4:0x3e1,_0x2cb598:0x51d,_0x176e9a:0x190,_0x205222:0x4f7,_0x21e16d:0x3aa,_0x4f9793:0x4c4,_0x4edec1:0x26c,_0x5da919:0x1b4,_0x44a660:0x462,_0x4e2717:0x25c},_0x176968={_0x33aa56:0x749,_0x5a13bd:0x8b0,_0xfc8f53:0x372,_0x466d40:0x66c,_0x40c7bc:0x814,_0x1eeaba:0x7e},_0xad1212={_0xd536e3:0x22b},_0x15d8ca={_0x104afd:0x283,_0x3c6d8f:0x51b,_0x2132e6:0x336,_0x3a6ee6:0x64a,_0x55fa44:0x4bb,_0x405e11:0x28a},_0x5570ad={_0x458221:0x66d,_0x102074:0x716,_0x5a6392:0x5f0,_0x129a4d:0x7fd,_0xf02c4d:0x855,_0x11cff1:0x4c5,_0x4e3364:0x6a9,_0x20f565:0x2d7,_0x3cd002:0x752,_0x1c7521:0x825,_0x33ea87:0x6c1,_0x3bff53:0x2f1,_0x40813a:0x4bb,_0x179ef9:0x831,_0x1bb383:0x5ec,_0x5042d2:0x43a,_0x58646b:0x706,_0x4562f6:0x61e,_0x2ca56b:0x518,_0x5e2592:0x611,_0x2bd788:0x4df,_0x2c82b6:0x6a6,_0x37cfd1:0x7f8,_0x58e831:0x7d9},_0x1ba0ef={_0x4edc8d:0xca},_0x2c6833={_0x1ed2ca:0x85d},_0x2d9514={_0x308d79:0x13},_0x4e0c81={'CuKin':_0x468f81(_0x19a62e._0x1bbf60,_0x19a62e._0x4ccb37),'EwYsE':function(_0x5dd4c1,_0x2de0b5){return _0x5dd4c1(_0x2de0b5);},'ZJqhI':_0x276253(0x615,_0x19a62e._0x5ef4c9),'urzHu':function(_0x7c43d,_0x18cd5b,_0x262a2c){return _0x7c43d(_0x18cd5b,_0x262a2c);},'MULjI':function(_0x4a81a0,_0x260c98){return _0x4a81a0 in _0x260c98;},'dexhu':'clawket-'+'local-pa'+'ir','NHmwx':function(_0x530d38,_0x1617ef,_0x4d2cbe){return _0x530d38(_0x1617ef,_0x4d2cbe);},'RsrSm':function(_0x137aaf){return _0x137aaf();},'jjJkn':function(_0x39a19f,_0x315e4f){return _0x39a19f in _0x315e4f;},'rQyFe':_0x468f81(0x19f,_0x19a62e._0x5ba3c0),'otAuB':_0x468f81(_0x19a62e._0x440854,_0x19a62e._0x4e839b)+_0x468f81(_0x19a62e._0x49bc2e,0x3f5)+_0x468f81(_0x19a62e._0xd773a4,0x346)+_0x468f81(0x20e,0x389),'LYSDu':function(_0x1f334e){return _0x1f334e();},'lAtZt':function(_0x594239,_0x2aed93,_0x394cc9){return _0x594239(_0x2aed93,_0x394cc9);},'eLejV':function(_0x3215e8,_0xea2399){return _0x3215e8===_0xea2399;},'wiXeT':function(_0x44b6ce,_0xad3970,_0x374752,_0x3685f6,_0x58cde5){return _0x44b6ce(_0xad3970,_0x374752,_0x3685f6,_0x58cde5);},'NzVSH':function(_0x5ac861,_0x520586){return _0x5ac861(_0x520586);},'HHZac':function(_0x5c4cd6,_0x335370){return _0x5c4cd6===_0x335370;},'IhWXp':_0x276253(0x2db,0x2f8),'ircBp':function(_0x3da46d,_0x3ccfef,_0x1af826){return _0x3da46d(_0x3ccfef,_0x1af826);},'rUdZt':function(_0x1ecc5f,_0x314efb){return _0x1ecc5f(_0x314efb);},'ZpxLi':function(_0x469279,_0x143191,_0x2e8d84){return _0x469279(_0x143191,_0x2e8d84);},'ACxax':function(_0x2f2057,_0x2fb81d){return _0x2f2057(_0x2fb81d);},'MBqEu':function(_0x5566ef){return _0x5566ef();},'nKhjG':function(_0x3c5add,_0x30e94c,_0x4c8db9){return _0x3c5add(_0x30e94c,_0x4c8db9);},'Ltwvk':_0x276253(0x63e,0x4f4)},[,,_0x311c82=_0x468f81(_0x19a62e._0x2b648e,0x612),..._0x53ee04]=process[_0x276253(0x3de,_0x19a62e._0x1accc7)],_0x3a5270=hasFlag(_0x53ee04,'--servic'+'e'),_0x5c7b62=hasFlag(_0x53ee04,_0x276253(_0x19a62e._0x493870,_0x19a62e._0x20631c));if(_0x311c82===_0x468f81(_0x19a62e._0x3c97ce,0x69)){const _0x4083fd=readPairSubcommand(_0x53ee04),_0x48619d=_0x4083fd===_0x276253(0x22d,0x43c)||_0x4e0c81[_0x468f81(0x36e,_0x19a62e._0x41efca)](hasFlag,_0x53ee04,_0x468f81(_0x19a62e._0x21838a,_0x19a62e._0x4c7166));if(_0x48619d){const _0x1cac0e=resolveGatewayAuth();if(_0x4e0c81[_0x276253(0x372,0x18c)](_0x276253(0x33,_0x19a62e._0x17205b),_0x1cac0e))throw new Error(_0x1cac0e[_0x276253(_0x19a62e._0x5ea1eb,_0x19a62e._0x17205b)]);const _0x1b4c29=readFlag(_0x53ee04,'--qr-fil'+'e'),_0x3070ac=buildLocalPairingInfo({'explicitUrl':readFlag(_0x53ee04,'--url'),'gatewayToken':_0x1cac0e[_0x468f81(_0x19a62e._0x332f51,_0x19a62e._0x308187)],'gatewayPassword':_0x1cac0e[_0x276253(0x271,_0x19a62e._0x2ef7c4)]}),_0x47bed1=await writeRawQrPng(_0x3070ac[_0x468f81(0x2b0,0x488)+'d'],_0x4e0c81['dexhu'],_0x1b4c29);if(_0x5c7b62){const _0x1da0b3={};_0x1da0b3[_0x468f81(0x1e3,_0x19a62e._0x1a9d43)+'rl']=_0x3070ac['gatewayU'+'rl'],_0x1da0b3[_0x468f81(0x40c,_0x19a62e._0x154c1f)]=_0x3070ac[_0x276253(0x2fb,_0x19a62e._0x3b1e9b)],_0x1da0b3[_0x468f81(_0x19a62e._0x15726b,0x283)+'t']=_0x3070ac[_0x468f81(0x17b,_0x19a62e._0x15274d)+'t'],_0x1da0b3[_0x276253(0x51e,_0x19a62e._0x1d8c9d)+'ath']=_0x47bed1,_0x1da0b3[_0x468f81(_0x19a62e._0x4849da,_0x19a62e._0x5c959b)]=_0x276253(0x12a,0x1cd)+_0x276253(_0x19a62e._0x3ec8fc,_0x19a62e._0x2add96)+_0x276253(0x6c5,0x55a)+'y\x20pairin'+'g\x20QR.',printJson(buildLocalPairingJson(_0x1da0b3));}else printLocalPairingInfo(_0x3070ac[_0x276253(0x28e,0x249)+'rl'],_0x3070ac[_0x468f81(_0x19a62e._0x5f3458,0x52a)],_0x3070ac[_0x276253(-_0x19a62e._0x4d2b51,_0x19a62e._0xf5ab26)+'t'],_0x3070ac[_0x468f81(_0x19a62e._0x303250,0x224)+'d'],_0x47bed1,_0x4e0c81[_0x276253(0x289,_0x19a62e._0x301925)](readFlag,_0x53ee04,_0x276253(_0x19a62e._0x4ccd3f,0x369)));return;}const _0x5a7d4c=_0x4e0c81['NHmwx'](hasFlag,_0x53ee04,_0x468f81(_0x19a62e._0x22a165,0x47e));!_0x5a7d4c&&await ensurePairPrerequisites();const _0x673f8d=_0x4e0c81['RsrSm'](resolveGatewayAuth);if(_0x4e0c81['jjJkn'](_0x4e0c81['rQyFe'],_0x673f8d))throw new Error(_0x673f8d[_0x276253(0x32,_0x19a62e._0x17205b)]);const _0xbd3e3b=readFlag(_0x53ee04,_0x276253(_0x19a62e._0x426598,_0x19a62e._0x31bb0c))??_0x4e0c81['NHmwx'](readFlag,_0x53ee04,'-s')??_0x4e0c81['otAuB'],_0x202b73=readFlag(_0x53ee04,_0x276253(_0x19a62e._0x3e3d13,_0x19a62e._0x1e405b))??readFlag(_0x53ee04,'-n')??getDefaultBridgeDisplayName(),_0x2a0654=readFlag(_0x53ee04,_0x276253(_0x19a62e._0x55e88f,0x29f)+'e'),_0x19b701={};_0x19b701['serverUr'+'l']=_0xbd3e3b,_0x19b701[_0x276253(_0x19a62e._0x358bf4,_0x19a62e._0x1b8397)+_0x276253(0x309,_0x19a62e._0x51ce40)]=_0x202b73,_0x19b701[_0x468f81(0x295,0x376)+_0x276253(0x470,_0x19a62e._0x18bbb9)]=_0x673f8d[_0x468f81(_0x19a62e._0x364e9c,0x519)],_0x19b701[_0x276253(0x397,_0x19a62e._0x383638)+_0x468f81(_0x19a62e._0x976b9a,0x55)]=_0x673f8d[_0x276253(_0x19a62e._0x316aa5,_0x19a62e._0x2ef7c4)];const _0x2b6ae4=await _0x4e0c81[_0x276253(_0x19a62e._0x4e89c4,_0x19a62e._0x5a2837)](pairGateway,_0x19b701),_0x320531=await _0x4e0c81[_0x468f81(0x148,_0x19a62e._0x395973)](writePairingQrPng,_0x2b6ae4,_0x2a0654),_0x5f226c=_0x4e0c81['LYSDu'](getServiceStatus),_0x33bd92=decidePairServiceAction(_0x2b6ae4,_0x5f226c);if(_0x33bd92===_0x276253(0x217,_0x19a62e._0x149a6b)){_0x5c7b62?printJson(buildPairingJson(_0x2b6ae4,_0x320531,_0x5f226c,'Backgrou'+_0x468f81(_0x19a62e._0x10b15b,_0x19a62e._0x1b16a4)+_0x276253(0x345,0x49a)+'dy\x20runni'+_0x276253(0x2f8,0x539)+_0x468f81(_0x19a62e._0x39bfbd,_0x19a62e._0x4d6fc9)+'ed.')):(_0x4e0c81[_0x468f81(0x19d,-_0x19a62e._0x30a78d)](printPairingInfo,_0x2b6ae4,_0x320531),console['log'](_0x468f81(_0x19a62e._0x2bfc4d,_0x19a62e._0x4df754)+'nd\x20servi'+_0x276253(0x507,0x49a)+_0x468f81(_0x19a62e._0x107196,_0x19a62e._0x3c38ba)+_0x276253(_0x19a62e._0x5a7fdf,_0x19a62e._0x59bdde)+'\x20unchang'+_0x276253(0x3a8,0x25a)),printServiceResult(null,_0x5f226c));return;}try{const _0x57de99=_0x33bd92==='install'?installService():_0x4e0c81[_0x468f81(0x463,_0x19a62e._0x4595ac)](restartService),_0x18fe82=_0x33bd92==='install'?_0x468f81(_0x19a62e._0x2c398a,0x202)+_0x468f81(0x211,_0x19a62e._0x556514)+_0x276253(0x356,_0x19a62e._0x5b37b3)+_0x468f81(_0x19a62e._0x2bd0fa,0xe4)+'e.':_0x4e0c81['eLejV'](_0x2b6ae4[_0x468f81(0x278,_0x19a62e._0x2954b1)],_0x276253(_0x19a62e._0x2ad0db,0x418)+'ed')?_0x276253(_0x19a62e._0x5ce4be,_0x19a62e._0x413c92)+'dentity\x20'+_0x276253(_0x19a62e._0x40bb13,0x5d7)+'\x20Restart'+_0x276253(_0x19a62e._0x316aa5,0x3fc)+_0x276253(0x77e,0x5d5)+_0x468f81(_0x19a62e._0x230118,0x651)+'\x20load\x20th'+'e\x20new\x20pa'+_0x276253(0x34d,_0x19a62e._0x109e39):'Backgrou'+'nd\x20servi'+_0x468f81(_0x19a62e._0x275975,0x22d)+_0x468f81(_0x19a62e._0x2f01ae,0x320)+_0x276253(_0x19a62e._0x379582,0x452)+_0x276253(_0x19a62e._0x118422,_0x19a62e._0x72a53b)+_0x468f81(0x291,0x1f5)+_0x468f81(_0x19a62e._0x46c0dc,_0x19a62e._0x17773a);_0x5c7b62?printJson(_0x4e0c81[_0x276253(0x418,_0x19a62e._0x1b33b4)](buildPairingJson,_0x2b6ae4,_0x320531,_0x57de99,_0x18fe82)):(printPairingInfo(_0x2b6ae4,_0x320531),_0x4e0c81[_0x468f81(_0x19a62e._0x547f89,0xe5)](printServiceResult,_0x18fe82,_0x57de99));}catch(_0x1adf19){console[_0x468f81(_0x19a62e._0x4a7e0a,-0x1)](_0x276253(0x31f,0x382)+_0x468f81(_0x19a62e._0x159e17,_0x19a62e._0x41d722)+'d,\x20but\x20s'+_0x468f81(0x55c,_0x19a62e._0x495a16)+'ctivatio'+_0x276253(_0x19a62e._0x84cfb0,_0x19a62e._0x31821c)+':\x20'+formatError(_0x1adf19)),console[_0x468f81(_0x19a62e._0x4a7e0a,_0x19a62e._0xd594a9)](_0x276253(0x4cf,0x490)+_0x276253(_0x19a62e._0x320fc5,0x4e0)+_0x276253(_0x19a62e._0x30a69e,0x5b2)+'et\x20insta'+'ll\x22\x20or\x20\x22'+_0x276253(0x4e0,0x3b9)+_0x276253(0x9,0x1a9)+_0x468f81(_0x19a62e._0x213207,_0x19a62e._0x3e2dbb)),process[_0x468f81(0x588,0x409)]=0x1;}return;}if(_0x311c82==='refresh-'+'code'){const _0x2f918a=readFlag(_0x53ee04,_0x276253(0x1dc,_0x19a62e._0x592404)+'e'),_0x5bc22b=resolveGatewayAuth();if(_0x468f81(0x19f,-0x46)in _0x5bc22b)throw new Error(_0x5bc22b['error']);const _0x5ce2de={};_0x5ce2de[_0x276253(_0x19a62e._0xe2bd70,0x2fb)+_0x276253(0x437,0x5a8)]=_0x5bc22b['token'],_0x5ce2de['gatewayP'+'assword']=_0x5bc22b[_0x276253(_0x19a62e._0x1222f1,0x35d)];const _0x9948c1=await refreshAccessCode(_0x5ce2de),_0x54d0e3=await writePairingQrPng(_0x9948c1,_0x2f918a);_0x5c7b62?_0x4e0c81[_0x276253(0x31b,0x2f3)](printJson,buildPairingJson(_0x9948c1,_0x54d0e3,getServiceStatus(),_0x468f81(_0x19a62e._0x127e24,0x549)+_0x276253(0x3e5,0x46f)+_0x276253(_0x19a62e._0x230f05,_0x19a62e._0x3d9189))):printPairingInfo(_0x9948c1,_0x54d0e3);return;}if(_0x4e0c81[_0x468f81(_0x19a62e._0x56d02f,_0x19a62e._0x2d025a)](_0x311c82,_0x276253(_0x19a62e._0x22c310,0x1e0))||_0x311c82===_0x468f81(_0x19a62e._0x593021,0x380)){const _0x94a45e=requirePairingConfig(),_0x157539=installService();console['log'](_0x276253(_0x19a62e._0x4a21c3,0x3ac)+_0x468f81(0x1e1,0x196)+_0x276253(0x651,0x4d7)+_0x276253(_0x19a62e._0x260b2f,0x39f)+_0x468f81(_0x19a62e._0x194119,_0x19a62e._0xff9717)+'\x20'+_0x94a45e[_0x468f81(0x3fc,0x25c)+'d']+'.'),printServiceResult(null,_0x157539);return;}if(_0x4e0c81[_0x276253(_0x19a62e._0x292114,0x516)](_0x311c82,_0x4e0c81[_0x276253(0x187,_0x19a62e._0x2258e1)])){const _0x1a097a=requirePairingConfig(),_0x3344fe=restartService();console[_0x468f81(0x20f,0x1bc)](_0x468f81(_0x19a62e._0x385a7b,_0x19a62e._0x2dd1a9)+_0x276253(_0x19a62e._0x29db94,_0x19a62e._0x789dde)+_0x276253(0x6da,_0x19a62e._0xb90119)+'vice\x20for'+'\x20gateway'+'\x20'+_0x1a097a[_0x276253(0x41f,_0x19a62e._0x2e0efb)+'d']+'.'),_0x4e0c81[_0x276253(0x3f8,_0x19a62e._0x224919)](printServiceResult,null,_0x3344fe);return;}if(_0x311c82===_0x276253(_0x19a62e._0x256f86,0x4a7)){const _0x4364c4=_0x4e0c81[_0x276253(_0x19a62e._0xf3cf91,0x4c9)](stopService);console[_0x468f81(0x20f,_0x19a62e._0x3ba8cf)](_0x276253(0x179,0x354)+'backgrou'+_0x468f81(0x533,0x4de)+_0x276253(0x257,0x20c)),_0x4e0c81[_0x276253(_0x19a62e._0x40c21b,_0x19a62e._0x224919)](printServiceResult,null,_0x4364c4);return;}if(_0x311c82==='uninstal'+'l'){const _0x157de9=uninstallService();console[_0x276253(0x1c7,0x275)](_0x468f81(0x1f5,0x3a0)+_0x276253(_0x19a62e._0x5039d7,_0x19a62e._0x30b912)+_0x468f81(0x533,0x636)+_0x468f81(0x523,_0x19a62e._0x3c58ef)+_0x468f81(0x545,0x4d0)),_0x4e0c81[_0x276253(0x3d3,0x2a3)](printServiceResult,null,_0x157de9);return;}if(_0x311c82===_0x276253(_0x19a62e._0x5afcf6,0x3f3)){stopService(),_0x4e0c81[_0x468f81(0x1b1,0x343)](deletePairingConfig),console[_0x276253(0x31b,0x275)](_0x276253(_0x19a62e._0x560789,_0x19a62e._0xdbe6d8)+_0x468f81(0x180,_0x19a62e._0x462e8b)+_0x468f81(0x550,0x3fe)+getPairingConfigPath());return;}if(_0x311c82===_0x468f81(0x424,0x47c)){printStatus();return;}function _0x276253(_0x190279,_0x2cfa0d){return _0x3a7f13(_0x190279,_0x2cfa0d- -_0x2d9514._0x308d79);}if(_0x4e0c81[_0x276253(_0x19a62e._0x39bfbd,0x1a3)](_0x311c82,'logs')){const _0x14a761=Number(readFlag(_0x53ee04,_0x468f81(0x15c,_0x19a62e._0x1bbe8d))??_0x468f81(_0x19a62e._0xda5685,0x446)),_0x520e2d=_0x4e0c81[_0x276253(_0x19a62e._0x33dcc9,0x272)](parseLookbackToMs,_0x4e0c81[_0x468f81(0x19d,0x3c9)](readFlag,_0x53ee04,_0x276253(_0x19a62e._0x13c1b3,0x548))??_0x4e0c81[_0x276253(_0x19a62e._0x47cb95,0x2b1)](readFlag,_0x53ee04,'-l')),_0x479e1c=_0x4e0c81[_0x468f81(_0x19a62e._0xe0524,0x458)](readRecentCliLogs,{'lines':_0x14a761,'lastMs':_0x520e2d,'includeErrorLog':hasFlag(_0x53ee04,_0x468f81(_0x19a62e._0x52c33a,_0x19a62e._0x139abd))});if(_0x5c7b62){const _0x1bb1af={};_0x1bb1af['ok']=!![],_0x1bb1af[_0x276253(0x7dc,0x5f7)]=_0x479e1c,printJson(_0x1bb1af);}else _0x479e1c[_0x468f81(_0x19a62e._0x23808e,0x4cd)]===0x0?console['log'](_0x468f81(_0x19a62e._0x2125b4,0x5b4)+_0x276253(0x760,0x5ef)+_0x276253(0x5da,0x57b)+_0x276253(0x332,_0x19a62e._0x336247)):console[_0x468f81(_0x19a62e._0x312606,_0x19a62e._0xb0f34e)](_0x479e1c['join']('\x0a'));return;}if(_0x311c82===_0x276253(0x11b,0x305)){const _0x7f3161=await _0x4e0c81[_0x276253(0x2c4,_0x19a62e._0xc34ea)](buildDoctorReport);_0x5c7b62?printJson(_0x7f3161):printDoctorReport(_0x7f3161);return;}if(_0x4e0c81['HHZac'](_0x311c82,_0x276253(_0x19a62e._0x52fbbf,0x192))){const _0x9bf94e=requirePairingConfig(),_0x5cb57b=resolveGatewayUrl(readFlag(_0x53ee04,_0x276253(0x3ce,0x528)+_0x468f81(_0x19a62e._0x34ac71,_0x19a62e._0x712bbf))??_0x4e0c81[_0x468f81(0x376,_0x19a62e._0x279b1f)](readFlag,_0x53ee04,'-g')),_0x312bfd=_0x3d6aaa=>{function _0x2dc090(_0x3f69a0,_0x23664f){return _0x468f81(_0x23664f-0x2e9,_0x3f69a0);}console['log']('['+Date[_0x2dc090(_0x2c6833._0x1ed2ca,0x860)]()+']\x20'+_0x3d6aaa);};!_0x3a5270?(console['log'](_0x276253(0x23f,0x1b4)+'ID:\x20'+_0x9bf94e['gatewayI'+'d']),console['log'](_0x276253(0x50a,_0x19a62e._0x5eb76f)+'\x20ID:\x20'+_0x9bf94e[_0x276253(0x434,0x5e8)+'Id']),console[_0x468f81(0x20f,_0x19a62e._0x45772d)](_0x276253(0x3c4,0x1b4)+_0x468f81(_0x19a62e._0x497537,_0x19a62e._0x336fc3)+_0x5cb57b),console[_0x276253(0x158,_0x19a62e._0x2f221c)](''),console['log'](_0x276253(0x819,_0x19a62e._0x17fe32)+_0x276253(_0x19a62e._0x41905b,0x1a1)+'runtime.'+_0x468f81(0x2c3,_0x19a62e._0x40f07d)+_0x276253(0x1e,_0x19a62e._0x38d6b9)+_0x468f81(_0x19a62e._0x5b5c82,0x2d0)),console[_0x276253(_0x19a62e._0x217e9b,0x275)]('')):_0x4e0c81[_0x468f81(_0x19a62e._0xe0524,_0x19a62e._0x2ae8d4)](_0x312bfd,_0x276253(_0x19a62e._0x2cb598,0x5d2)+_0x468f81(_0x19a62e._0x176e9a,0x45)+'\x20service'+_0x276253(_0x19a62e._0x205222,0x50b)+_0x468f81(_0x19a62e._0x21e16d,_0x19a62e._0x4f9793)+_0x468f81(_0x19a62e._0x4edec1,_0x19a62e._0x5da919)+_0x9bf94e[_0x276253(0x294,_0x19a62e._0x44a660)+'d']);_0x3a5270&&writeServiceState();const _0x15bb0e=new BridgeRuntime({'config':_0x9bf94e,'gatewayUrl':_0x5cb57b,'onLog':_0x2d24dc=>{function _0x34ed33(_0x1cf949,_0xb6fd98){return _0x276253(_0xb6fd98,_0x1cf949- -0x73);}_0x312bfd(_0x34ed33(0x31a,0x45b)+']\x20'+_0x2d24dc);},'onStatus':_0x6061bb=>{function _0x4f1023(_0x4d5b20,_0x259ed4){return _0x468f81(_0x259ed4-0x30b,_0x4d5b20);}function _0x5f2004(_0x47fd6d,_0xcbe9b1){return _0x468f81(_0x47fd6d-_0x1ba0ef._0x4edc8d,_0xcbe9b1);}if(_0x6061bb[_0x4f1023(_0x5570ad._0x458221,_0x5570ad._0x102074)+'r']){_0x312bfd(_0x5f2004(_0x5570ad._0x5a6392,_0x5570ad._0x129a4d)+'\x20relay='+(_0x6061bb[_0x4f1023(0x693,0x82d)+_0x4f1023(0x6a8,_0x5570ad._0xf02c4d)]?'up':_0x4e0c81[_0x5f2004(0x2e0,0x3bb)])+(_0x5f2004(_0x5570ad._0x11cff1,_0x5570ad._0x4e3364)+'=')+(_0x6061bb[_0x5f2004(_0x5570ad._0x20f565,0x12f)+_0x5f2004(0x29e,0x244)]?'up':'down')+(_0x4f1023(_0x5570ad._0x3cd002,0x6a6)+'=')+_0x6061bb[_0x4f1023(0x6d1,_0x5570ad._0x1c7521)+_0x4f1023(0x5c1,_0x5570ad._0x33ea87)]+_0x5f2004(0x363,_0x5570ad._0x3bff53)+_0x6061bb[_0x4f1023(0x8f8,_0x5570ad._0x102074)+'r']);return;}_0x4e0c81[_0x5f2004(_0x5570ad._0x40813a,0x2a2)](_0x312bfd,_0x4f1023(0x861,_0x5570ad._0x179ef9)+_0x4f1023(0x800,0x853)+(_0x6061bb[_0x5f2004(_0x5570ad._0x1bb383,_0x5570ad._0x5042d2)+_0x4f1023(0x8c8,_0x5570ad._0xf02c4d)]?'up':_0x5f2004(0x1d2,0x2c3))+(_0x4f1023(0x509,_0x5570ad._0x58646b)+'=')+(_0x6061bb[_0x4f1023(_0x5570ad._0x4562f6,_0x5570ad._0x2ca56b)+_0x4f1023(_0x5570ad._0x5e2592,_0x5570ad._0x2bd788)]?'up':_0x4e0c81[_0x5f2004(0x2e0,0x408)])+(_0x4f1023(0x6c2,_0x5570ad._0x2c82b6)+'=')+_0x6061bb[_0x5f2004(0x5e4,_0x5570ad._0x37cfd1)+_0x4f1023(_0x5570ad._0x58e831,_0x5570ad._0x33ea87)]);},'onPendingPairRequest':_0x50487e=>{const _0x4d3470={_0xdc7b48:0x2fb};function _0x49ab27(_0x4cfda9,_0x4742e1){return _0x468f81(_0x4cfda9-0xd,_0x4742e1);}function _0x4ffbdf(_0x2e4dbe,_0x5b670b){return _0x468f81(_0x2e4dbe-_0x4d3470._0xdc7b48,_0x5b670b);}_0x312bfd('[pair-re'+'quest]\x20r'+'equestId'+'='+_0x50487e[_0x4ffbdf(0x77e,0x6b6)+'d']+('\x20deviceI'+'d=')+(_0x50487e['deviceId']||_0x4ffbdf(0x4bb,_0x15d8ca._0x104afd)+'>')+_0x49ab27(_0x15d8ca._0x3c6d8f,_0x15d8ca._0x2132e6)+(_0x50487e['displayN'+_0x49ab27(0x4fb,_0x15d8ca._0x3a6ee6)]??_0x4ffbdf(_0x15d8ca._0x55fa44,_0x15d8ca._0x405e11)+'>'));}});_0x15bb0e[_0x468f81(_0x19a62e._0x593021,0x688)]();const _0x38cbe3=async()=>{process[_0x51e330(_0x176968._0x33aa56,_0x176968._0x5a13bd)](_0x51e330(0x6b9,0x8ac),_0x38cbe3),process['off'](_0x4e0c81[_0x51e330(0x4c2,_0x176968._0xfc8f53)],_0x38cbe3);function _0xe0703d(_0x186605,_0x1dbfcd){return _0x468f81(_0x186605- -0x324,_0x1dbfcd);}await _0x15bb0e[_0x51e330(_0x176968._0x466d40,_0x176968._0x40c7bc)]();function _0x51e330(_0x204633,_0x1c0ffb){return _0x468f81(_0x204633-_0xad1212._0xd536e3,_0x1c0ffb);}_0x3a5270&&clearServiceState(process[_0xe0703d(-_0x176968._0x1eeaba,-0xe1)]),process['exit'](0x0);};process['on'](_0x4e0c81[_0x276253(0x1e7,_0x19a62e._0x4e2717)],_0x38cbe3),process['on'](_0x4e0c81[_0x276253(0x4bf,0x2fd)],_0x38cbe3),await new Promise(()=>{});}function _0x468f81(_0x518bb1,_0x2e18c3){return _0x3a7f13(_0x2e18c3,_0x518bb1- -0x79);}printHelp();}function printPairingInfo(_0x481627,_0x503ba5){const _0x378275={_0x3852bc:0x89c,_0x4389ef:0x66b,_0x1a0cfa:0xee,_0xf06f10:0x8a,_0x327846:0xd9,_0x2acea:0x7d3,_0x38fc8c:0x6d9,_0x327380:0x534,_0x1c639f:0x23,_0x3133cb:0x7e2,_0x3f2b45:0x9fe,_0x1492e5:0x5f5,_0x4d1652:0x16c,_0x344192:0x9e,_0x241f18:0x8b6,_0x2811db:0x164,_0x5e1b77:0xca,_0x592c06:0x156,_0x198c6a:0x51d,_0x2576c9:0x4cf,_0x53cdd2:0xbb,_0x391ce4:0x2ef,_0x177ef6:0x316,_0x166613:0x7f,_0x21697a:0x21d,_0x26c1d8:0x39c},_0x24a475={_0x11621d:0x72d},_0x3ab1a0={_0x780d7b:0xb9},_0x493b66={'VGIPF':_0x540bb7(0xe3,0x107)+'lready\x20p'+_0x540bb7(0x218,0x321)+_0x5a58dc(_0x378275._0x3852bc,_0x378275._0x4389ef)+_0x540bb7(0x26e,0x439)+'ring\x20cod'+'e.','SqvZx':function(_0x2d423c,_0x3dd053){return _0x2d423c(_0x3dd053);}};_0x481627[_0x540bb7(-0x16,-_0x378275._0x1a0cfa)]===_0x540bb7(_0x378275._0xf06f10,_0x378275._0x327846)+'d'&&console[_0x540bb7(-0x7f,0x1e)](_0x493b66[_0x5a58dc(0x787,_0x378275._0x2acea)]);console[_0x5a58dc(0x5f5,_0x378275._0x38fc8c)](_0x5a58dc(_0x378275._0x327380,0x3fc)+'ID:\x20'+_0x481627[_0x540bb7(_0x378275._0x1c639f,-0x75)][_0x5a58dc(_0x378275._0x3133cb,_0x378275._0x3f2b45)+'d']),console[_0x5a58dc(_0x378275._0x1492e5,0x67c)](_0x540bb7(_0x378275._0x4d1652,-_0x378275._0x344192)+_0x540bb7(-0xcd,-0x30d)+_0x5a58dc(0x903,_0x378275._0x241f18)+_0x540bb7(0x90,-_0x378275._0x2811db)+'t\x20app:\x0a');const _0x4bf770={};_0x4bf770[_0x540bb7(-0xe2,-_0x378275._0x5e1b77)]=!![];function _0x5a58dc(_0x5c614a,_0x4ad84d){return _0x32d8ea(_0x4ad84d,_0x5c614a- -_0x3ab1a0._0x780d7b);}_0x5b54b5[_0x540bb7(0x39,_0x378275._0x592c06)](_0x481627[_0x540bb7(0x22,-0x1d3)+'d'],_0x4bf770),console[_0x5a58dc(_0x378275._0x1492e5,_0x378275._0x198c6a)](_0x540bb7(0x2f5,_0x378275._0x2576c9)+'\x20'+_0x493b66[_0x540bb7(0x49,_0x378275._0x53cdd2)](formatLocalTime,_0x481627[_0x540bb7(0x1d,-0x1b6)+_0x540bb7(_0x378275._0x391ce4,_0x378275._0x177ef6)+'sAt']));function _0x540bb7(_0x223d1a,_0x447c6b){return _0x32d8ea(_0x447c6b,_0x223d1a- -_0x24a475._0x11621d);}console[_0x540bb7(-_0x378275._0x166613,-_0x378275._0x21697a)](_0x5a58dc(0x55c,_0x378275._0x26c1d8)+':\x20'+_0x503ba5);}function printLocalPairingInfo(_0x2edf63,_0x1aeaf3,_0x59bc6d,_0x104fe8,_0x1de7c5,_0x4581b4){const _0x6481dc={_0x450372:0x57a,_0x552df8:0x6fc,_0x1d2e32:0x7fe,_0x35c297:0x917,_0x1f9a3d:0x62e,_0x28ac97:0x5a3,_0x1abe07:0x4e0,_0x1d6f9d:0x2c8,_0x1bde23:0x50a,_0x4ee3cb:0x5db,_0x1481b0:0x706,_0x2faf6f:0x3f9,_0x91bdf2:0x4a8,_0x477426:0x713,_0x496966:0x603,_0x1b32c0:0x56e,_0xef19df:0x689,_0x1a7c45:0x664,_0x216a67:0x470,_0x4f6230:0x5d0,_0x195f4e:0x5c2,_0x5c0cbe:0x56f,_0x56bdc4:0x36b,_0xc62ed2:0x615,_0xb660b9:0x487,_0x530500:0x7e1,_0x102d75:0x78c},_0x1e9e1d={_0x4876df:0x285},_0x270255=(_0x5923dd(0x3ff,_0x6481dc._0x450372)+_0x5923dd(_0x6481dc._0x552df8,0x64a))['split']('|');function _0x5923dd(_0x3013d4,_0x37210e){return _0x32d8ea(_0x3013d4,_0x37210e- -0x10b);}function _0x1ebb60(_0x544610,_0x411b78){return _0x32d8ea(_0x411b78,_0x544610- -_0x1e9e1d._0x4876df);}let _0x2df215=0x0;while(!![]){switch(_0x270255[_0x2df215++]){case'0':console['log'](_0x5923dd(_0x6481dc._0x1d2e32,_0x6481dc._0x35c297)+'\x20'+new Date(_0x59bc6d)['toLocale'+_0x5923dd(0x823,0x887)]());continue;case'1':const _0x2a7ffb={};_0x2a7ffb['small']=!![],_0x5b54b5['generate'](_0x104fe8,_0x2a7ffb);continue;case'2':console[_0x5923dd(_0x6481dc._0x1f9a3d,_0x6481dc._0x28ac97)](_0x1ebb60(0x368,0x26f)+_0x5923dd(_0x6481dc._0x1abe07,0x601)+_0x2edf63);continue;case'3':console[_0x1ebb60(0x429,0x308)](_0x5923dd(_0x6481dc._0x1d6f9d,_0x6481dc._0x1bde23)+':\x20'+_0x1de7c5);continue;case'4':console['log'](_0x1ebb60(_0x6481dc._0x4ee3cb,_0x6481dc._0x1481b0)+_0x1ebb60(0x3bf,_0x6481dc._0x2faf6f)+_0x1aeaf3);continue;case'5':console[_0x1ebb60(0x429,_0x6481dc._0x91bdf2)](_0x4581b4?_0x5923dd(_0x6481dc._0x477426,0x78e)+_0x1ebb60(_0x6481dc._0x496966,_0x6481dc._0x1b32c0)+_0x1ebb60(_0x6481dc._0xef19df,_0x6481dc._0x1a7c45)+_0x5923dd(_0x6481dc._0x216a67,_0x6481dc._0x4f6230)+_0x5923dd(_0x6481dc._0x195f4e,0x512)+_0x1ebb60(_0x6481dc._0x5c0cbe,0x556)+'\x0a':_0x1ebb60(0x614,0x7a9)+_0x5923dd(_0x6481dc._0x56bdc4,0x534)+_0x1ebb60(_0x6481dc._0xc62ed2,_0x6481dc._0xb660b9)+'\x20QR\x20in\x20t'+_0x5923dd(0x9d3,_0x6481dc._0x530500)+_0x1ebb60(0x753,_0x6481dc._0x102d75));continue;}break;}}function printStatus(){const _0x1f6930={_0x1612c1:0x6f3,_0x4fcf9e:0x5c4,_0x16287b:0x39b,_0x2c6fcd:0x7ec,_0x591971:0x608,_0x1be6ef:0x8e4,_0x122296:0x20c,_0x488388:0x2c2,_0x51cddc:0x1f0,_0x44fc00:0x937,_0x1794c6:0x20c,_0x1bd193:0x217,_0x546f1f:0x591,_0x3607f7:0x404,_0x4537e8:0x66e,_0x3fb0b7:0x4eb,_0x264fc0:0x58c,_0xfdafaf:0x5cb,_0x6db325:0xf0,_0xcef3a6:0x447,_0x4d27a0:0x656,_0x2d6d38:0x1fe,_0x3cd1a0:0x878,_0x11688c:0x18f,_0x38aa4b:0x513,_0x4a9a6d:0x20c,_0x4a012c:0x7db,_0x496665:0x6c1,_0x41f3a8:0x70f,_0xfb6012:0x405,_0x360845:0x3ac,_0x56867a:0x4db,_0x334e43:0x500},_0x24dd5a={_0x5b1fda:0x4a2},_0xf802={_0x4937a5:0xea},_0x3f6bc1={'Vwwqn':function(_0x427e7f){return _0x427e7f();},'bhrsk':function(_0x3ec992){return _0x3ec992();}};function _0x20c2dc(_0x25f4be,_0x175b44){return _0x32d8ea(_0x175b44,_0x25f4be- -_0xf802._0x4937a5);}const _0x37e924=readPairingConfig(),_0x1ba7e3=getServiceStatus(),{logPath:_0x1d4d06,errorLogPath:_0x4dd5ec}=_0x3f6bc1['Vwwqn'](getServicePaths),_0x55669e=_0x3f6bc1['bhrsk'](readCliVersion);console['log'](_0x20c2dc(_0x1f6930._0x1612c1,0x59e)+'\x20'+_0x55669e);function _0x1da90e(_0x1e63b3,_0x306926){return _0x32d8ea(_0x306926,_0x1e63b3- -_0x24dd5a._0x5b1fda);}!_0x37e924?console[_0x1da90e(0x20c,0x93)]('Config:\x20'+_0x1da90e(0x428,0x3b6)+'ed\x20('+getPairingConfigPath()+')'):(console[_0x20c2dc(_0x1f6930._0x4fcf9e,0x409)]('Config:\x20'+_0x1da90e(0x181,_0x1f6930._0x16287b)),console[_0x20c2dc(0x5c4,_0x1f6930._0x2c6fcd)]('Gateway\x20'+_0x20c2dc(_0x1f6930._0x591971,0x42e)+_0x37e924[_0x20c2dc(0x7b1,_0x1f6930._0x1be6ef)+'d']),console[_0x1da90e(_0x1f6930._0x122296,_0x1f6930._0x488388)](_0x1da90e(0x43a,_0x1f6930._0x51cddc)+':\x20'+_0x37e924[_0x20c2dc(_0x1f6930._0x44fc00,0x7d6)+'Id']),console[_0x1da90e(_0x1f6930._0x1794c6,_0x1f6930._0x1bd193)](_0x20c2dc(0x746,_0x1f6930._0x546f1f)+_0x1da90e(0x124,0x8d)+_0x37e924['serverUr'+'l']),console[_0x1da90e(0x20c,0x8d)](_0x1da90e(0x45f,_0x1f6930._0x3607f7)+(_0x37e924[_0x20c2dc(_0x1f6930._0x4537e8,0x8b2)+_0x1da90e(_0x1f6930._0x3fb0b7,_0x1f6930._0x264fc0)]??'-'))),console['log'](_0x20c2dc(0x749,0x891)+'\x20'+resolveGatewayUrl()),console[_0x20c2dc(0x5c4,_0x1f6930._0xfdafaf)](_0x1da90e(0x37d,0x184)+'\x20'+(_0x1ba7e3['installe'+'d']?_0x1da90e(0x2bb,_0x1f6930._0x6db325)+'d':_0x1da90e(_0x1f6930._0xcef3a6,_0x1f6930._0x4d27a0)+_0x1da90e(0x196,_0x1f6930._0x2d6d38))+'\x20('+_0x1ba7e3[_0x20c2dc(0x651,_0x1f6930._0x3cd1a0)]+')'),console[_0x20c2dc(0x5c4,0x7bd)]('Running:'+'\x20'+(_0x1ba7e3[_0x1da90e(_0x1f6930._0x11688c,0x251)]?_0x20c2dc(_0x1f6930._0x38aa4b,0x50a):'no')),console[_0x1da90e(_0x1f6930._0x4a9a6d,0xd7)](_0x20c2dc(0x83b,_0x1f6930._0x4a012c)+(_0x1ba7e3[_0x20c2dc(_0x1f6930._0x496665,_0x1f6930._0x41f3a8)+_0x1da90e(0x1c6,_0x1f6930._0xfb6012)]||'-')),console['log']('Log:\x20'+_0x1d4d06),console[_0x20c2dc(_0x1f6930._0x4fcf9e,0x47e)](_0x1da90e(_0x1f6930._0x360845,_0x1f6930._0x56867a)+_0x20c2dc(_0x1f6930._0x334e43,0x62a)+_0x4dd5ec),!_0x37e924&&(process[_0x20c2dc(0x93d,0xa90)]=0x1);}function printServiceResult(_0x2e4b95,_0x45da0e){const _0x5b1365={_0x585cbf:0x174,_0x3d959a:0x5b4,_0x46dabd:0xba,_0x3e82b3:0x170,_0x44d6d7:0x24e,_0x43a584:0x2a8},_0x26b51d={_0x2ffbc4:0x57e},_0x51e3ab={};function _0xf8eea0(_0x4dd745,_0xbb4dd1){return _0x32d8ea(_0x4dd745,_0xbb4dd1- -0x541);}_0x51e3ab['yQsRU']=_0xf8eea0(0x10c,0x21c)+_0x1aeb68(0xfd,0x16b)+'ng';const _0x4dc7cd=_0x51e3ab;_0x2e4b95&&console['log'](_0x2e4b95);function _0x1aeb68(_0x506f77,_0x3a2f64){return _0x32d8ea(_0x3a2f64,_0x506f77- -_0x26b51d._0x2ffbc4);}console[_0x1aeb68(0x130,0x326)]('Service:'+'\x20'+(_0x45da0e[_0x1aeb68(0x1df,-0x31)+'d']?_0x45da0e[_0x1aeb68(0xb3,-_0x5b1365._0x585cbf)]?_0x4dc7cd['yQsRU']:'installe'+'d,\x20stopp'+'ed':_0xf8eea0(_0x5b1365._0x3d959a,0x3a8)+_0x1aeb68(_0x5b1365._0x46dabd,-_0x5b1365._0x3e82b3))),console['log'](_0xf8eea0(0xd7,_0x5b1365._0x44d6d7)+_0xf8eea0(_0x5b1365._0x43a584,0x208)+(_0x45da0e['serviceP'+_0xf8eea0(0xd3,0x127)]||'-'));}function printDoctorReport(_0x594a62){const _0x523d19={_0x217a04:0x615,_0xe81acb:0x471,_0x3762e7:0x4dd,_0x25b9cc:0x4ad,_0x2bde55:0x574,_0x521860:0x59b,_0x361490:0x260,_0x3da853:0x7cb,_0x535dcb:0x4c8,_0x39cafb:0x2f6,_0x20407f:0x4f2,_0x404bce:0x2c8,_0x3dea80:0x28d,_0x582c1b:0x3bd,_0x214253:0x531,_0x5718bf:0x40f,_0x314392:0x3fa,_0x426052:0x503,_0x451d46:0x471,_0x377a32:0x454,_0x4524c1:0x626,_0xd4ce1b:0x2d9,_0x4deb85:0x2e1,_0x49a568:0x435,_0xd4c92a:0x599,_0x2d620b:0x5c3,_0x24d845:0x2a3,_0x26fca2:0x34a,_0x495dbc:0x228,_0x252878:0x3d7,_0x223d3e:0x2c8,_0x266052:0x49a,_0x2602c3:0x4ff,_0x51069a:0x557,_0x1eca2a:0x240,_0x8e88ad:0x3ca,_0x2384df:0x2f2,_0x36bc8b:0x287,_0x85e94a:0x32a,_0x208199:0x254,_0x2c3be7:0x43d,_0x141b43:0x533,_0x184844:0x1d3,_0x89ac25:0x361,_0x21742f:0x2e1,_0x53a95e:0x551,_0x5f2eda:0x559,_0x3e4f0c:0x296,_0x43b3ba:0x36c,_0x5121e6:0x3e3,_0x9584c3:0x37a,_0x10ac92:0x4fd,_0x4c647b:0xca,_0x287278:0x1f9,_0x5258b8:0x262,_0x58e37a:0x2c2,_0x2a7991:0x4a9,_0x1a5bb9:0x341,_0x3be8e2:0x2e2,_0x5d677d:0x4dd,_0x4eef50:0x5a0,_0x1f0277:0x52f,_0x47543b:0x427,_0x46b7e8:0x50f,_0x5314a2:0x6df,_0x208052:0x496,_0x52e0aa:0x35c,_0x2782fa:0x538,_0x3ab92f:0x4bc,_0xbf1449:0x6c3,_0x2b31fe:0x230,_0x43b5ff:0x37c,_0x2e3ce1:0x3de},_0x1e8189={};_0x1e8189[_0x5339c0(_0x523d19._0x217a04,_0x523d19._0xe81acb)]=_0x5339c0(_0x523d19._0x3762e7,_0x523d19._0x25b9cc),_0x1e8189[_0x5339c0(_0x523d19._0x2bde55,_0x523d19._0x521860)]=_0x24e55c(0x34b,0x367),_0x1e8189['NvLWd']='yes',_0x1e8189[_0x5339c0(0x19e,_0x523d19._0x361490)]=_0x24e55c(_0x523d19._0x3da853,0x5a7)+_0x24e55c(_0x523d19._0x535dcb,_0x523d19._0x39cafb);const _0x839573=_0x1e8189;function _0x5339c0(_0xd0fbd9,_0x44ede9){return _0x3a7f13(_0xd0fbd9,_0x44ede9-0x59);}const _0x32077f=(_0x5339c0(0x22f,0x20c)+'12|11|1|'+'15|8|10|'+_0x24e55c(_0x523d19._0x20407f,0x3a0)+_0x5339c0(_0x523d19._0x404bce,_0x523d19._0x3dea80))['split']('|');let _0x5d7d0a=0x0;function _0x24e55c(_0x4d18bb,_0x44593c){return _0x3a7f13(_0x4d18bb,_0x44593c-0xe4);}while(!![]){switch(_0x32077f[_0x5d7d0a++]){case'0':console['log'](_0x5339c0(_0x523d19._0x582c1b,0x597)+_0x24e55c(_0x523d19._0x214253,0x604)+'\x20'+(_0x594a62[_0x5339c0(0x45d,_0x523d19._0x5718bf)+_0x24e55c(_0x523d19._0x314392,_0x523d19._0x426052)+_0x5339c0(0x587,0x4d2)]?_0x839573[_0x5339c0(0x55b,_0x523d19._0x451d46)]:_0x839573[_0x24e55c(_0x523d19._0x377a32,_0x523d19._0x4524c1)]));continue;case'1':console[_0x5339c0(_0x523d19._0xd4ce1b,_0x523d19._0x4deb85)](_0x24e55c(_0x523d19._0x49a568,0x44d)+_0x5339c0(_0x523d19._0xd4c92a,_0x523d19._0x2d620b)+'\x20'+(_0x594a62[_0x5339c0(_0x523d19._0x24d845,0x4b9)+_0x24e55c(_0x523d19._0x26fca2,0x54c)]?_0x839573[_0x24e55c(_0x523d19._0x495dbc,_0x523d19._0x252878)]:'no'));continue;case'2':console[_0x5339c0(0x333,_0x523d19._0x4deb85)]('Relay\x20UR'+_0x5339c0(0x1f9,0x415)+(_0x594a62[_0x24e55c(0x681,0x678)]??'-'));continue;case'3':console[_0x5339c0(_0x523d19._0x223d3e,0x2e1)](_0x5339c0(0x3d2,0x597)+_0x5339c0(0x4bc,0x667)+_0x594a62[_0x24e55c(0x68e,_0x523d19._0x266052)+_0x5339c0(_0x523d19._0x2602c3,_0x523d19._0x51069a)+'r']);continue;case'4':console['log'](_0x24e55c(0x1a4,0x2ab)+_0x24e55c(_0x523d19._0x1eca2a,_0x523d19._0x8e88ad)+_0x594a62[_0x5339c0(0x218,_0x523d19._0x2384df)+_0x24e55c(_0x523d19._0x36bc8b,_0x523d19._0x85e94a)]);continue;case'5':console[_0x24e55c(0x16e,0x36c)]('Paired:\x20'+(_0x594a62[_0x5339c0(_0x523d19._0x208199,0x256)]?_0x5339c0(_0x523d19._0x2c3be7,0x230):'no'));continue;case'6':console[_0x24e55c(_0x523d19._0x208199,0x36c)](_0x24e55c(_0x523d19._0x141b43,0x622)+'\x20media:\x20'+_0x594a62[_0x24e55c(0x30b,_0x523d19._0x266052)+_0x5339c0(_0x523d19._0x184844,_0x523d19._0x89ac25)]);continue;case'7':console[_0x5339c0(0x48c,_0x523d19._0x21742f)]('Gateway\x20'+_0x5339c0(_0x523d19._0x53a95e,0x325)+(_0x594a62[_0x24e55c(0x3c7,_0x523d19._0x5f2eda)+'d']??'-'));continue;case'8':console[_0x24e55c(_0x523d19._0x3e4f0c,_0x523d19._0x43b3ba)](_0x5339c0(_0x523d19._0x5121e6,_0x523d19._0x9584c3)+':\x20'+_0x594a62['logPath']);continue;case'9':console['log'](_0x24e55c(_0x523d19._0x10ac92,0x4ee)+_0x5339c0(_0x523d19._0x4c647b,_0x523d19._0x287278)+(_0x594a62[_0x24e55c(_0x523d19._0x5258b8,_0x523d19._0x58e37a)+'l']??'-'));continue;case'10':console['log']('Error\x20lo'+_0x24e55c(0x2cd,_0x523d19._0x2a7991)+_0x594a62[_0x5339c0(_0x523d19._0x1a5bb9,0x571)+_0x24e55c(0x48d,_0x523d19._0x3be8e2)]);continue;case'11':console[_0x5339c0(0x3fa,_0x523d19._0x4deb85)](_0x24e55c(0x640,_0x523d19._0x5d677d)+'\x20'+(_0x594a62[_0x24e55c(_0x523d19._0x4eef50,_0x523d19._0x1f0277)+_0x24e55c(0x20b,_0x523d19._0x47543b)]?_0x5339c0(0x243,0x390)+'d':_0x839573['lKlel'])+'\x20('+_0x594a62['serviceM'+'ethod']+')');continue;case'12':console['log'](_0x5339c0(0x603,_0x523d19._0x46b7e8)+_0x5339c0(0x4d2,0x4b0)+(_0x594a62[_0x24e55c(0x852,_0x523d19._0x5314a2)+'Id']??'-'));continue;case'13':console[_0x24e55c(0x1e8,0x36c)](_0x5339c0(0x637,0x597)+_0x24e55c(_0x523d19._0x208052,0x2e5)+(_0x594a62[_0x24e55c(0x439,0x49a)+'TokenFou'+'nd']?_0x24e55c(_0x523d19._0x52e0aa,_0x523d19._0x2782fa):_0x839573[_0x24e55c(0x827,0x626)]));continue;case'14':console[_0x5339c0(0x417,0x2e1)]('Gateway\x20'+_0x24e55c(0x292,0x272)+_0x5339c0(0x17c,0x277)+(_0x594a62['localGat'+_0x5339c0(0x38f,_0x523d19._0x3ab92f)+_0x24e55c(0x8ac,_0x523d19._0xbf1449)]?_0x5339c0(0x6c,_0x523d19._0x2b31fe):'no'));continue;case'15':console[_0x5339c0(0xb8,_0x523d19._0x21742f)](_0x5339c0(0x240,0x3c2)+_0x5339c0(0x13e,_0x523d19._0x43b5ff)+(_0x594a62[_0x5339c0(0x1aa,_0x523d19._0x2e3ce1)+_0x24e55c(0x2fb,0x326)]||'-'));continue;}break;}}function requirePairingConfig(){const _0x365824={_0x49ec80:0x759,_0x2adef2:0x56b,_0x3eb199:0x478,_0x46566f:0x3df,_0xdfd7a4:0x245,_0x560c66:0x457,_0x6be8e7:0xa3d},_0x321d6f={_0xcb642a:0x7b},_0x90f548={_0x351d4f:0x353};function _0x416b5c(_0xf6b83b,_0x4ed8c5){return _0x3a7f13(_0xf6b83b,_0x4ed8c5-_0x90f548._0x351d4f);}const _0x1c0de0=readPairingConfig();!_0x1c0de0&&(console[_0x416b5c(_0x365824._0x49ec80,_0x365824._0x2adef2)](_0x2588fc(0xda,0x313)+'ed.\x20Run\x20'+_0x2588fc(_0x365824._0x3eb199,_0x365824._0x46566f)+'\x20pair\x22\x20f'+_0x416b5c(0x5c0,0x5ab)+_0x2588fc(0x299,_0x365824._0xdfd7a4)+_0x2588fc(0x295,_0x365824._0x560c66)+getPairingConfigPath()),process[_0x416b5c(_0x365824._0x6be8e7,0x823)](0x1));function _0x2588fc(_0x577e83,_0x174f76){return _0x3a7f13(_0x577e83,_0x174f76- -_0x321d6f._0xcb642a);}return _0x1c0de0;}function readFlag(_0x24d311,_0x44bd0f){const _0x524d52={_0x3b2c33:0x275,_0x220276:0x43a,_0x593394:0x432},_0x28eab5={_0x11d7a0:0xf3},_0x4adcf6=_0x24d311[_0x420110(_0x524d52._0x3b2c33,0x1e4)](_0x44bd0f);function _0x231912(_0x297d9f,_0x2cbb3f){return _0x3a7f13(_0x2cbb3f,_0x297d9f- -_0x28eab5._0x11d7a0);}if(_0x4adcf6<0x0)return null;function _0x420110(_0x125726,_0x15f23a){return _0x3a7f13(_0x125726,_0x15f23a- -0x301);}const _0x359818=_0x24d311[_0x4adcf6+0x1];return _0x359818?.[_0x420110(_0x524d52._0x220276,0x308)]()?_0x359818[_0x420110(_0x524d52._0x593394,0x308)]():null;}function hasFlag(_0x344184,_0x51cbc8){return _0x344184['includes'](_0x51cbc8);}function readPairSubcommand(_0xf6f63c){const _0x18f02d={_0x57ddb5:0x43c,_0x2a7c71:0x807,_0x2f5c2a:0x9f3},_0x2a0ffb={_0x2bb3ec:0x3ea};function _0xc84d2e(_0x6b1598,_0x2ec4e8){return _0x3a7f13(_0x6b1598,_0x2ec4e8-_0x2a0ffb._0x2bb3ec);}for(const _0x2fedde of _0xf6f63c){if(!_0x2fedde[_0xc84d2e(_0x18f02d._0x57ddb5,0x60d)+'th']('-'))return _0x2fedde[_0xc84d2e(_0x18f02d._0x2a7c71,_0x18f02d._0x2f5c2a)]()||null;}function _0x463461(_0x16cd33,_0x20eac8){return _0x3a7f13(_0x16cd33,_0x20eac8-0x41a);}return null;}function printHelp(){const _0xb983fb={_0x28bed7:0x64b,_0x4fd4d0:0x737,_0x8c079:0x51b,_0x3afaec:0x64c,_0x2cec1e:0x784,_0x34ac7c:0x771,_0xe073ef:0x664,_0x30f531:0x57a,_0x4e3e8c:0x54d,_0x5a81dc:0x458,_0xe96151:0x445,_0x39d6b3:0x55d,_0x5cc30d:0x4ea,_0x4c938f:0x57b,_0x455158:0x4a0,_0x23ca05:0x43a,_0xd667d2:0x661,_0x2d36e5:0x501,_0x32b598:0x4a2,_0x2c9151:0x715,_0x465264:0x445,_0x2e4cbf:0x555,_0x3b1565:0x58f,_0x5b8586:0x86f,_0x1c7598:0x6d3,_0x4fc53b:0x55b,_0x325546:0x3a4,_0x75b235:0x639,_0x1e158f:0x200,_0x24fd77:0x416,_0x2e6a1a:0x4ad,_0xb05eb4:0x446,_0x2c1119:0x79e,_0x97bdd7:0x31a,_0x2c5a5b:0x658,_0x4f13e8:0x82f,_0x114183:0x5f9,_0x430632:0x26c,_0x56262b:0x313,_0x40f032:0x849,_0x5081bd:0x727,_0x338d50:0x8c6,_0x31ac68:0x532,_0x142604:0x738,_0x8b0bcb:0x371,_0x5101d6:0x491,_0x6f4e0e:0x7e4,_0x2447b1:0x56a,_0x59f3fe:0x593,_0x2a031f:0x3d9,_0x493557:0x641},_0xfc428f={_0x45ed4f:0x26d},_0x2c9b0e={_0x1e2e69:0x79},_0x2a5eae={};_0x2a5eae[_0x47de80(0x49b,0x66c)]=_0x48309c(0x445,0x4e6)+_0x47de80(0x53b,0x6b1)+_0x48309c(0x450,0x399)+'l\x20<ws://'+'host:por'+_0x47de80(_0xb983fb._0x28bed7,_0xb983fb._0x4fd4d0)+'r-file\x20<'+_0x48309c(0x3cf,0x22d)+_0x47de80(0x62b,_0xb983fb._0x8c079);function _0x48309c(_0x476657,_0x1904b2){return _0x3a7f13(_0x1904b2,_0x476657-_0x2c9b0e._0x1e2e69);}_0x2a5eae[_0x48309c(0x5fe,0x824)]='clawket\x20'+_0x48309c(0x2a9,0x19c)+_0x48309c(_0xb983fb._0x3afaec,_0xb983fb._0x2cec1e)+'url\x20<ws:'+_0x47de80(_0xb983fb._0x34ac7c,_0xb983fb._0xe073ef)+_0x47de80(_0xb983fb._0x30f531,_0xb983fb._0x4e3e8c)+_0x47de80(0x4b1,_0xb983fb._0x5a81dc)+_0x48309c(0x652,0x6dd)+'\x20[--json'+']',_0x2a5eae[_0x47de80(0x658,0x4b7)]=_0x48309c(_0xb983fb._0xe96151,_0xb983fb._0x39d6b3)+_0x48309c(_0xb983fb._0x5cc30d,_0xb983fb._0x4c938f)+'code\x20[--'+_0x48309c(0x522,_0xb983fb._0x455158)+_0x47de80(_0xb983fb._0x23ca05,_0xb983fb._0xd667d2)+_0x48309c(_0xb983fb._0x2d36e5,0x3d5);function _0x47de80(_0x482002,_0x5a3dde){return _0x3a7f13(_0x5a3dde,_0x482002-_0xfc428f._0x45ed4f);}_0x2a5eae['qAYml']=_0x48309c(0x445,0x2b3)+_0x48309c(0x384,_0xb983fb._0x32b598),_0x2a5eae[_0x48309c(0x685,_0xb983fb._0x2c9151)]=_0x48309c(_0xb983fb._0x465264,0x574)+_0x47de80(0x838,0x78d)+'l',_0x2a5eae['HFQWb']=_0x47de80(0x639,_0xb983fb._0x2e4cbf)+_0x47de80(0x75f,_0xb983fb._0x3b1565)+_0x47de80(0x636,_0xb983fb._0x5b8586)+_0x47de80(0x6cb,_0xb983fb._0x1c7598)+_0x47de80(0x446,0x657)+_0x48309c(_0xb983fb._0x4fc53b,_0xb983fb._0x325546)+'rors]\x20[-'+_0x48309c(0x46a,0x3be);const _0x3e1902=_0x2a5eae;console['log']([_0x47de80(_0xb983fb._0x75b235,0x702)+'pair\x20[--'+_0x48309c(_0xb983fb._0x1e158f,_0xb983fb._0x24fd77)+_0x47de80(_0xb983fb._0x2e6a1a,0x3fd)+_0x48309c(_0xb983fb._0xb05eb4,0x248)+_0x47de80(0x615,_0xb983fb._0x2c1119)+_0x48309c(_0xb983fb._0x97bdd7,0x1c3)+'qr-file\x20'+'<path>]\x20'+'[--json]'+_0x48309c(0x46b,0x57e)+'e]',_0x3e1902['HkYmc'],_0x3e1902['uKfRZ'],_0x3e1902[_0x47de80(_0xb983fb._0x2c5a5b,0x7c8)],_0x47de80(0x639,_0xb983fb._0x4f13e8)+_0x47de80(0x835,_0xb983fb._0x114183),'clawket\x20'+_0x48309c(_0xb983fb._0x430632,0x214),_0x3e1902[_0x48309c(0x470,_0xb983fb._0x56262b)],_0x47de80(0x639,_0xb983fb._0x40f032)+_0x47de80(_0xb983fb._0x5081bd,_0xb983fb._0x338d50),_0x3e1902[_0x47de80(0x879,0x6ba)],_0x48309c(_0xb983fb._0xe96151,_0xb983fb._0x31ac68)+_0x47de80(0x673,_0xb983fb._0x8c079),_0x47de80(_0xb983fb._0x75b235,_0xb983fb._0x142604)+_0x48309c(0x516,_0xb983fb._0x8b0bcb),_0x3e1902['HFQWb'],_0x48309c(_0xb983fb._0xe96151,_0xb983fb._0x5101d6)+_0x47de80(_0xb983fb._0x6f4e0e,0x79a)+'--json]',_0x47de80(0x639,0x738)+_0x47de80(_0xb983fb._0x2447b1,0x589)+'ateway-u'+_0x48309c(_0xb983fb._0x59f3fe,_0xb983fb._0x2a031f)+_0x47de80(0x472,_0xb983fb._0x493557)+'.1:18789'+'>]']['join']('\x0a'));}function formatLocalTime(_0xaf4fa2){const _0x2ecfa5={_0x49974b:0x698,_0x3501c9:0x607,_0x3c9c12:0x5f1};function _0x475d3d(_0x427ead,_0x250678){return _0x3a7f13(_0x250678,_0x427ead-0x18d);}const _0x11b371=new Date(_0xaf4fa2);function _0x24c05a(_0x5a3f1e,_0x174929){return _0x3a7f13(_0x5a3f1e,_0x174929-0x85);}if(Number['isNaN'](_0x11b371[_0x24c05a(0x248,0x2c8)]()))return _0xaf4fa2;return _0x11b371[_0x475d3d(_0x2ecfa5._0x49974b,0x812)+_0x24c05a(_0x2ecfa5._0x3501c9,_0x2ecfa5._0x3c9c12)]();}function formatError(_0x116e47){const _0x4572cc={_0x29a34e:0x51f,_0x4d95ec:0x2e4},_0x32ea83={_0x15265c:0xd7};function _0x7bcc85(_0x126152,_0x982fb5){return _0x3a7f13(_0x126152,_0x982fb5- -_0x32ea83._0x15265c);}return _0x116e47 instanceof Error?_0x116e47[_0x7bcc85(_0x4572cc._0x29a34e,_0x4572cc._0x4d95ec)]:String(_0x116e47);}function printJson(_0x389300){console['log'](JSON['stringif'+'y'](_0x389300,null,0x2));}main()[_0x32d8ea(0x67f,0x891)](_0x2ec9c7=>{const _0x2de458={_0x322cfc:0x780};function _0x2e273b(_0x2e8c32,_0x96d5fe){return _0x32d8ea(_0x96d5fe,_0x2e8c32- -0x24e);}console['error'](formatError(_0x2ec9c7)),process[_0x2e273b(0x6a8,_0x2de458._0x322cfc)](0x1);});