@p697/clawket 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- function _0x269e(){const _0x13df14=['vujmsumGiI0','Aw5ZDgfUy2u','Dw5SB2fK','ienmssbZzxi','igXVywqGDgG','BMC+','yxK+cIaGpgS','zw1WDa','zsbZDgfYDgu','zw50pwnSAwu','BwuGBM90igy','C3rVCa','CMvMCMvZAc0','A3L6Ehy','ALbKzMS','igj1DcbNyxq','AwXLzcaO','yxrLD2f5igK','AxnTyxrJAa','CMvZDgfYDa','ywrK','C2foCge','uMvSyxKGvvi','ieLeoIaGica','rKP0Bxm','y2uGywXYzwe','D3m6lY8','q0Xbv0rct1q','CMLUzYbJB2q','A2uGmZbZlca','zxDHEvjLywm','C2GGC2L6zt0','q3vYCMvUDfy','D2f5twvZC2e','suq6icaGica','mci+cJXKAwm','wMHiA3a','zwr4v0G','zxDHEvvYBa','DgjLyxq','Bg9NCYbBls0','Ag90','CMvSyxKGAgu','twvKAwfeAxi','uMvZDgfYDgu','CMvSyxKGy28','ywnOywjSzsa','BgvUz3rO','DcbKzw1HBMq','ignVzgu9','C3rVChbLza','cGPBsw5ZDge','CNzPy2uGDg8','phn0CMLUzZ4','thbRu20','tg9JywWGt3a','y29UzMLNoIa','z2v0cG','CMvSyxLtzwm','q2XLyxjLzca','D3nZoI8V','BMfTzq','C3rHDgu','zgLUz0DHDgu','pg5VBMu+','ywLYlMfWChi','whLmvMS','pL0GwY0TBgK','q2XHD2TLDca','BgfIzwW','A2u9','z2f0zxDHEq','BM5Ly3rLzca','C3rHBguGy28','zgLZCgXHEu4','icaG','AM9PBG','B21WBgv0zsa','B25tDgf0Dxm','DgvK','Dgv3yxLpCgu','zufLqKS','zxnVBhzLza','yw5KC2HHA2u','y2uGD2fZigK','DgLTzwqGB3u','ignVBMzPzZO','DgvTChq9','zxDHEq','v0j3BKK','ihn0B3aU','sxjyswy','u2vYDMvYifu','u0nssvbux1a','y29UBMvJDfi','icH0B2TLBIa','BMvJDgvK','ugf0AdOGica','CNvUDgLTzs4','zgvZDhjVEq','ANnVBG','C2uGy2XPzw4','AxnbCNjHEq','qwnJzxnZigm','z1bHAxjszxe','Bwu9','ChvZAa','BgLLBNq','yxrLD2f5twu','u01bt1O','CNvUifSTlwC','BMuUDgfYz2u','CM9YC10GwY0','ugfZC3DVCMq','z2f0zxDHEum','BMCUieXLzNq','C2fNzq','ifSTlwzVCMm','CYbUB3qGCMu','vgrcrxG','Axn0zxiGzMe','CePlC1y','CYbTAxnZAw4','DwfSBhKU','AxmGuviGy28','C29Upq','Bg9Hza','uxjZvee','DwXLzcbKzwW','mti3lJaUmc4','AxqU','zxzLBNqGBMe','B2PsDuO','r2f0zxDHEu8','DcbHCha6cG','zgXLrgLZy28','BIaIy2XHD2S','nhW1Fdb8n3W','jJe7ihrOzw4','AxnhyxrLD2e','CMvHy2HHyMW','Et5mywjLBdW','B3iGmwqU','C3rZ','ywX1zxmGBgK','zxHPDenVzgu','qxHRy3G','quDhqMy','zcWGyNv0ihm','CgLK','AxncDwzMzxi','BgvKihjLyxm','Et4kica8C3q','C3rKAw8','zcbMB3iGzNi','AxnIsNq','C2LVBJ0Ims4','DKf3BMK','CgfPCMvKicG','C3rHCNrPBMC','DxbKyxrLu24','DMLJzsbYzxm','lMPZB24','B3b0Aw9UCW','zMLUza','ChjdsgS','y291BNq','jMD0oW','DgvKihbSyxq','C3rHCNrizwe','zw5Nzq','CYb1BNnLDc4','zxjZ','CMvNAxn0zxi','l0rurcbqteK','ze91Dhb1Dd0','BhjLywr5iha','ue9tva','C3LZDgvTzc0','Esb0B2TLBIa','ig1VCMuGzgu','B249q2XHD2S','AxiGzMLYC3q','CMvWBgfJzue','CNzLCI4','DhjqDwK','zw4GC2LUy2u','CMqGyMvMB3i','lMnSyxDRzxq','A2LUz0rPCMu','zgvfEhbPCMu','CgfPCMvK','DMLJzsbMB3i','A2LSBa','AxjPBMCU','ChjVDg9JB2W','BMvJDgLUzW','mhWXFdn8nhW','Es11CMW','ienSyxDRzxq','whv0zvm','B25SAw5LlNq','ig1LzgLHoIa','igLUDgvUDgK','z2f0zxDHEsa','BYbYzxnVBhy','D2TLDcbKB2m','uhLsvLe','Bwf4ugf5Bg8','qunvr1O','B25Uzwn0','ihjLyxnVBJ0','DgfZA2TPBgW','y29UBMvJDca','rhv1A0C','BgfZDfjLBge','Bgf1BMnOy3q','ihjLDhvYBMu','A2v5pKTLzxa','vg9Rzw5gB3u','CgfPCIbBls0','Dgv4Da','uKvrvuLsruq','BMv0D29YAY0','B2TLBG','rejAEMm','B24U','C3rHCNrZv2K','tuLYCwq','CLf1zxvLr2e','B2X2zwqGCMu','ls1Syxn0ihy','B3LnDxC','Aw1Hz2uVCg4','CgfZC3DVCMq','Bwv0Ag9K','y3n5C0W','Dw5PBNn0ywW','y2XVC2vhyxq','qwXPDMu8l2S','icaGicaGica','yxj0yMvHDca','Aw5Nr2f0zxC','wvbstwK','y29UBMvJDgu','ANjut2u','CZWVA2v5pGO','C3rYAw5N','veGIiciKu0m','igvYCM9Ypq','BgLUzxm','CdOVl3D3DY4','iIrot0rfx1a','AcbNyxrLD2e','t1bftG','CMnLycbVBMW','yMTNzfG','CNjVCKXVzW','AcbMB3iGC2u','tfLiuKy','rhbes0u','mZyXmtiWD1vTvgDA','yw1L','C2vYDMvY','z2f0zxDHEvq','CMv0','igrLy2LZAw8','tenlr3C','zwqGyMfJA2C','CMvQzwn0zwq','ls1XCI1MAwW','kYKRja','z2vZ','ywn0Aw9U','Aw5JBhvKzxm','DgfSBgvKigi','CgD4qwm','w1vUAxrDcKq','rMXIChC','zgfYD2LU','zxrOB2q','ig9Rpq','zcbPCYbTAxm','zgvYih4VlM8','zwXHChnLzfm','whjPEuu','AxnszwXHEu8','s1juCKu','yxv0Ae1Vzgu','zxnJCMLWDgK','C25HChnOB3q','ihrOzsbWywK','CMvHzhLtDge','Bgf5twvZC2e','q2fUBM90igm','yxvUy2HLCI4','BgfZDevYCM8','BwfYz2LU','qNjPzgDLige','lZeYnY4WlJa','C3vJy2vLzgu','Dg9Y','zgf0yq','u2ffvKe','Bwf0y2G','vgHPCYbICMK','lJaUmc4XoG','zgvSzxrL','mtjmvwDcCw0','yNjPzgDLlwm','qxjNDw1LBNq','AgfUzgXLuMu','yxnZD29Yza','zwm9mGPxB3i','CgvUy2XHDY8','yxbWCM92zva','zxjYB3i','yvPtvMC','ifjLC3rHCNq','sNrMzKO','Dxv6ww8','DhjPBq','Bwf4','BNvTyMvY','C2vYDMvYvxi','y2uU','zNjkCgK','pLbYB2DYyw0','CNvUDgLTzsa','C2v0','BM9VCa','zw50','lMnVBMzPzW','zxj2AwnLlMO','BM5Ly3qGzhi','phbHDgG+xsa','D2f5ihjLB3a','q2XHD2TLDei','pc9ZDhjPBMC','A3f1sLi','AfbSru0','vw5ZDxbWB3i','zcbZAw5Jzum','CvH0yMO','zxjZAw9Uxfi','ls1NyxrLD2e','Cg9UzW','yxbZAg90','BwfYA1bHAxi','cIaGpc9HCNi','ls1Zzxj2Awm','tg9HzdWVA2u','ywLYlNjLAMu','rLfTrvm','Aw5JBhvKzuu','C0f0','ica8yxjYyxK','zwqUifj1BIa','u3vdwKW','y2vZuMvJzw4','ugfPCMLUzYa','DxnLCM5HBwu','EfnOyNa','icaGia','yNjPzgDLlq','zwnVBM5Ly3q','vuj2yMO','A2LUza','AuLev00','Ahr0Chm6lY8','Dw5RBM93BG','ywXSzwq','zgfLBw9Ulxi','C2vYDMLJzq','AdOG','CM9Szq','tg9NihbHDgG','B3vUzcbZzxi','DfrPBwvVDxq','zguGCNvUDgK','zwXVywq','mM0SidfOlca','ihnPBMnLq2W','CMvZ','y29UDhjVBf8','zgLZy29UBMu','y2fUy2vSr2e','z2uUANnVBG','AxmTywn0Axy','zxHPDcaXmJC','yxbWBguUy28','sw5ZDgfSBgu','seTfreO','BMqGC2vYDMK','Aw5Jzq','igHHCYbIB3q','DhDHCMvCtwK','CgfYC2u','zwnHDxnLigW','yxLnCW','y2XVC2vKige','z2Dxs2y','id4MmG','AwyGwYaTEca','zsbUzxCGCge','rKf3vei','yxrO','zxnLDciGyMu','qKnXugS','rezntfi','D2f5uMvXDwu','jMfWB3m7','CMvJDxjZAxy','uMvSyxLszwm','iurpq1rzueu','D2fZig5VDca','z2f0zxDHEva','rvHtAKO','BMrHCMrpDxq','zwqU','y29KzsbYzwy','seTdvvXtB2y','EhvLz0q','CNvUiIbTyw4','C2vHCMnO','zhKGC2nOzwq','C3rHCNrLzca','CM91BMqGC2u','C3rYAw5NAwy','BgKUANnVBG','CLL4y3G','mhWZFdj8nhW','r2f0zxDHEsa','y3rVCNK9','AwrLBNrPDhK','u0Lhsu5u','DgvYigDHDgu','CgfPCIbYzxe','y29UDgvUDc0','u3rHCNrPBMC','vxjSpq','AxngAw5PDgu','qxzPqvO','CNrIzwf0','Bgf1BMnOywC','z2f0zxDHEuK','igDHDgv3yxK','zxf1zxn0swq','CMvXDwvZDeK','zcWGC3rVCha','y2XVC2vKoIa','lJe6mtG3odK','q29UzMLNoIa','ls1XDwLLDa','BgLZDa','y29UzMLN','w2nSyxDRzxq','zxzsy28','BM5Ly3rezwW','yxv0Aa','zxjYB3jdB3i','zvHds1O','zerLDMLJzxm','AwvUDerLBwe','u2vYDMLJzv0','mZCXz1fmy3Db','zxrYEvrPBwu','Cgf0AdOG','Bg9Nugf0Aa','C2vUzeDHDgu','zxzLBNq','DMfSDwvZ','y2XPzw50x2m','C2nOzwr1Bgu','whnrBK0','uKW6icaGica','BwvKAwe','q2TmAM8','txfhwLu','BwLU','Eu9Wzw4','B2rLihjLzNi','DMLJzsbPBNm','Aw5NpG','B3bWzwqGywy','yxbWBhK','iMnSyxDRzxq','y2XLyxjuAw0','CxiTzMLSzsa','CfvxwLy','y2XVC2u','icbLEgvJig4','qNvdsuW','AgfIBgu','BxbSzqPfEgu','y3rLzcbJB2q','qLvQBgu','DKf3Axa','C2LUzY4','ihbSAxn0ifa','C3LZDgvTza','zgLUzZ0Ivvq','zwzYzxnOzwq','zgv0ywLSCW','vwrlrg8','zsbKzwXHEsa','BfvnDLK','igzVCIbNyxq','yxLnzxnZywC','zNrLCIbPzgW','qK9osxq','EufJDgL2Axq','yxj0','DwvZDeLKpq','CevbtMq','sLzizxC','yNjPzgDLlxm','vwnzvhO','Dgv3yxLjzgW','CIbWyxnZD28','z2v0','DhjHDgLVBI4','q2XQDfu','BgKUBg9N','CMvMCMvZAgu','wY0TANnVBL0','zM9YzsbWywK','x0DbvevxqvK','BwLZC2LUzW','BKnSyxCGChi','ig1VzguGDg8','zNjVBq','CMvZigLKpq','vxzLuLy','Bg9JywXhyxq','nNW1Fdb8mNW','sciGCNvUic0','zw5ZDxjLr2e','mJm0zuX3sNH1','CNvLlZ4kica','ihj1BNrPBwu','C2XPy2u','l251BgWGmJ4','BM93','lI4VCgfJA2e','D3r2shK','y3jVC29MDfW','ihnPBMnLr2e','B2zM','ywnJzxnZq28','DaPxyw50CZ0','zgv2AwnLlNa','EK5LCM0','ywLYic0TzM8','pGO8l3bSAxm','vMvYC2LVBJO','je5prevFuee','lY9bChbSzs8','AxzLihnVy2S','zxHPC3rPBMC','CMvSyxKGy2W','ywnJzxb0','pgTLEt5tDge','CuLzu3C','Ahr0CdOVlW','BNqGzgvTyw4','zxrYEurLBge','B2rLiciKu0m','qxv0Ae1Vzgu','zwXHEq','z2f0zxDHEvu','yxbWCM92zwq','Dw50','zxqGCMvHC28','ywLYzwqUifi','ugf0Aa','C2vHCMnOuge','ihbHAxjGigi','CNvUlxjLz2K','pd94BwWGDMu','wvbPuLm','CIb1C2uGygm','zM91BMqGDw4','EMHiCuG','BhzLza','C3rHDhvZ','B3j0','zgv2AwnLrMe','B3bLBMnSyxC','De9LAKu','s1z0rgK','yxLnCZ0','tKDbC3i','zvP3tgC','Dgv3yxLdB24','t3bLBKnSyxC','zMXVB3i','BgLZDcb2zxi','DeLUDgvYDMe','ls1QC29U','CMWGphDZoI8','mtK2odvlsKPsAvm','y29KzsbBls0','icaGidXZDhi','Dgv3yxK','ls1SAw5LCW','zMLNDxjLzcW','zg9JDg9YifS','z21gq2q','ihrVA2vUig8','C3rVCeHLyxi','yMfJA2DYB3u','C3rYEq','cLjLC3rHCNq','DwvZDcbWzw4','CgvUtxm9','zw50rgvTyw4','Dg9YycbMB3i','zxjYB3jmB2C','zxjLBNqGC2u','C2vYDMLJzsi','C2vYDMvYidW','zwrcEt1Kzwy','zunSB3nL','B25Jzq','DgvKqxrnCW','yw50ihrVigi','lIbsDw4GiMm','Bg9NCW','ywLYuMvXDwu','zM9YBsbMB3i','CgfPCMLUzYa','zxj2AwnLige','ls11C2vY','CMvTB3rLsxa','r3rMzhK','zxqUyNjPzgC','Bgf3A2v0ihi','CgLUzW','DwvZDa','D2LUzg93C0G','u3rHCNrLza','CMLWDcbWyxq','Dg9mB3DLCKm','zw50pq','zwqGyMvJyxu','DgfSBgf0Aw8','Au1TrMi','BgfZDe1Z','BLjXrfa','ze1Zpq','Dvf0sxm','y29UBMvJDc4','zZOGia','zxjLCxvPC2K','yxjNDG','DgfPBhmSig8','runps0C','oIaGicaGica','D2DtrNu','igf1DgGGAxm','zxvLzd0','vgjZA3a','u2TAAMe','y29UzMLNig4','C2vYDMLJzvi','tgf1BMnOqwC','ANLAtfa','BgPKuNO','ihjLBgf5pq','zxqGAw5ZDge','y29Uy2f0','zM9YD2fYze8','D29YzcbJB24','Dw5ZDxbWB3i','zsbdteKGC2m','zMX1C2Hqzw4','AcbHigrPzMy','Dw5K','DgLUzYbMCMu','Dgv3yxLnzxm','zgvMyxvSDa','BNDzA3i','rxjYB3iGBg8','mtq5mdy0A3vXD1j5','B3jRlw9UBgK','q210D0q','tM90ihbHAxi','z2f0zxDHEvm','uKLqvf9qqvq','Dg9ju09tDhi','r1zer1i','cLn0yw5Kyxi','wxzpDuG','Bgf3A2v0iha','CMfTCW','igrLDMLJzuK','Et4kica8Dhi','CxjqyxLSB2e','v2LUzg93C1W','reXQu0i','mteXnZGYnJzRvvDyAeG','DgLTzw91Da','BwfUzfn0yxi','CgvUzgLUz1a','Axjszxf1zxm','vNjRqvi','q2XP','zYbWyxrOoIa','y1n0yxj0pq','CM9YoIa','zuLYDKW','B249','CxfYyMm','AxnWBgf5tMe','l3yXl3bHAxi','CMvX','yxLezw1HBMq','yxbWzw5KoG','zgXLq2XVC2u','BgLUDxG','CxvLC3rjzd0','y29UBMvJDa','ihvYBd0','zcbXDwv1zwq','Eu1Z','qxrnCW','Bw9Kzq','AgvHCNrIzwe','yKDuANG','EwvZ','ls1QC29Uxq','yxr0zw1WDd0','BMqGlxyGBM8','C2GGy2HHBgW','Bg1IwKu','ntKYmty2B09Yvfne','CMfUzg9T','CxjjBwfNzva','cLnJyw4GDgG','ls1Syxn0','suq6ia','B25Uzwn0Aw4','BMvZidWYmda','sMjWsgi','EsbPzIb5B3u','zMX1C2GGCxu','Aw5KzxHpzG','B3bLBG','zM91BMq','rxHWAxjLCZO','ywLYlNjLC28','sw52ywXPzca','l3jLz2LZDgu','sM9ZzM8','BMqU','v21UAxO','Dw5Cq2XHD2S','uuzyCxC','zgv0ywnOzwq','BgfZDca8mM0','CMvNAxn0CNK','ignVDw50pq','icaGig5VDca','z291vxm','CNzPy2uGAw4','zg9JDg9Y','BK1Zpq','u3HcCg0','yw5Ktxm9','Aw5ZDgfSBgu','ihrVA2vUigK','BMjIBMW','pGO8l2rPy3q','yw5KihbHC3m','uNvUigbJBge','Cgf5Bg9Hza','ls1MB3jJzq','ignVBMzPzYa','zhrKiJ4kpha','l2fJy2vZCY0','zNjHBwuG','BM90igLUC3q','ugfPCIbYzwC','AxnjBNrLz2u','Dhj1zq','BwfW','Dg9tDhjPBMC','CNnPB249iJe','vhjREwy','r2f0zxDHEuK','B2jZzxj2zum','y2XPzw50rgu','C3LZDgvTy3q','qNjPzgDLigK','Cgf0Ag5HBwu','pGOGidXRzxK','Ac5TB2rLigK','yxrLD2f5lxu','B2nHBcbpCgu','ugfPCMvKoIa','lvrfuK0','C3rHBgXHDgK','lNbUzW','phjLzgfJDgu','CMvJEwnSzsa','ywrKugvUzgK','BNrFzgLZy28','z2vUzxjHDgu','BKjAA2m','uMvTB3zLzca','tdOGicaGica','yxnL','ifnLDcb0Agu','y2XPzw50swq','ru9vzwW','x1rps0vo','Cg52CxG','ChbXvuS','CMvN','AwDUB3jL','mtCXmefuz296zW','B2nRzxq','C2vUzfrVr2e','DxnLCG','qvriiIbDoYa','B25Uzwn0zwq','DhLWzq','zxj2AwnLlwW','rM91BMq','BM9KzvbHDgG','C2vYDMLJzva','CgvU','q3zYr1u','CxvLCNK','y2XPzw50q28','CMv1C2uGB3a','BIbMywLSzwq','C3nHz2vZ','A1HZr2e','r2fzBK4','v1jTBey','y29UC3rYDwm','yw9WyMi','zu5NDMK','BwLSEq','BgfZDfnLzw4','D3nZoG','zguGpI9Kzxy','BgXDcLDHBNq','C2nYAxb0uge','cIaGphn0CMK','CMvSyxLtB2m','BwvZC2fNzq','zs5JBgK','CgXHDgzVCM0','z25uAgm','Evb5wgq','CMvSyxLbDhq','CMvJB25Uzwm','DgHLBG','phvUA25VD24','u2vYDMLJzsa','r0zzt2K','BMDqywLYuMu','ChvZAfbLBMq','C3bSAxq','vvjmoIaGica','yMfZzty0','CMvSyxLvCMW','Dw9rD3C','CMvXig1LDgG','y2uGCMvNAxm','CMvHC29Upq','EgrzAgC','C3rVCMvK','CxvLC3rDihi','q29UzMLNrM8','zgvJAxnPB24','zgvUDgL0Esa','zhKGCNvUBMK','CMvJDgLVBKW','Cgf0AevUDG','yMLUyxj5','Cw1yDgG','C2uGy2fUy2u','lJaUmc4XoJe','Be1Z','DgGG','oIaGia','y3jLyxrLzee','AgfZr2f0zxC','AgvSCa','Ag9ZDa','y2XHD2TLDca','zw5dBgf3ieC','BMrnCZ0','sw5ZDgfUy2u','Aw5ZDgfSBa','yKr6uu0','tM8GBwf0y2G','pL0GwY0Tzxi','rI04iJ8+cJW','DxjSpL0GwY0','DejHC2vezwW','DxrMoa','CMvQzwn0uge','DxrHuxu','z2v0vgLTzq','C29U','vezODw8','zguGAw4GDgG','lMXVzW','BNrYB2WGzxy','D3m6lY8XmJC','z2v0u25HChm','iI4GvxnLihy','Cg9YDa','yxrLuwO','ELnzwKm','vw5HyMXLihq','zxnOignSAwu','DhjSk0mGDg8','mJaW','C2vUza','tMfTztOGica','DgvYBwLUyxq','ls1UB3C','v2nnzeK','zgv2AwnLswq','BgLLBNrezw0','lw5HBwuGpgq','mtnXuM1tvfu','pwfSD2f5CWO','AgfUzgXLr2e','yw1Lia','Bwu+xsbBls0','yxnZAwDU','qvripsi','suq6ica','uNvUBMLUzZO','D2LUmZi','igHHBMrZAge','CMvSyxLdB24','B2q9','q29UzMLNrgK','CMvXDwLYzwq','B3iGCgfZC3C','uMvXDwvZDfi','y2HHBMDLzc4','Aw9Ul2PZB24','C2nVBM5Ly3q','Bgf5q29UDhi','Bg9N','y2XPzw50x2q','CxvLDwuGChu','CNvUBMLUzZO','CxvLC3q','y29Kzq','DfrPBwvY','vgLTzxi','zxHPDa','B25mB2C','u252Dfi','BNn0ywXSzwq','Aw5N','x1bbu1nxt1i','z2f0zxDHEuG','DM1SCuu','tw9IAwXLiem','B3zL','C21HBgW','C3rHCNq','CMvWBgfJzq','ktOG','De1HEerLBge','u0Lhvevstq','Dg9mB2nHBgu','Aw5ZDc0','vgjkvgu','ls1Zzxj2zxi','y2XPzw50tMe','qMfJA2DYB3u','C2v0vgLTzw8','B3vUzcbMB3i','Ag9ZDg5HBwu','ignSAwvUDhm','w3bHAxiTCMu','z2f0zxDHEvi','A2v0','zwnOBYaIBM8','BgWIig9Yici','zM9Yy2u','u2vYDMLJztO','uKvhx1nA','Bs9everZl1a','zgDLigLZige','t252ENa','tg9NoIaGica','Df9Yzxf1zxm','CMf3','DfbzA2C','Avfyt2u','tMLkA3C','tNHXB1e','CgfPCG','lIbsDw4GCge','oty5odmXB05kyuf5','zsbWywLYAw4','zcbKzwXHEu0','CMvSyxKGzgK','Ee1kA00','x19JBgf3A2u','AwrSzsb3Axq','uMvZDgfYDfm','kcGOlISPkYK','t1bftKnmqvC','ihf1zxvLzd0','BwfYA0rLDMK','BM90ihjLywq','CgvUzgLUz0C','DwvZDcbYzxm','CMvXlq','w3n0yxr1C10','ruXtEey','u3rVChbLzca','u01Hr3m','t2jsAMq','zMLSDgvY','q1v2zeW','yuDvCgi','zMLLz2O','zw50CW','zg93BG','icaGihbHAxi','ndaWmti2otjLwNLWr2O','CNvUBMLUzW','B3vUDa','B2jQzwn0','ieLeoIa','EsbJAgvJAY4','igrPCJOGica','ywDLBNrZ','m2nctK5euG','zsbdBgf3A2u','cLr5Cgu9C2K','q2jbChy','AwrSzsbJBg8','DgG8l2TLEt4','zxnOigzHAwW','Dg9Rzw4','B25Uzwn0u3q'];_0x269e=function(){return _0x13df14;};return _0x269e();}(function(_0x2c9a1b,_0x486b0c){const _0x140881={_0x520a62:0x60e,_0x1b3a0e:0x602,_0x429403:0x711,_0x22cc57:0x416,_0x2d76ad:0x5e7,_0xba8663:0x3cc,_0x48eb0d:0x434,_0x51c8c1:0x5ce,_0x2242a3:0x53c,_0xebd50:0x61c,_0x38d30b:0x64c,_0x13b428:0x642,_0x3b1c77:0x6c6},_0x10cb2f={_0x42cef0:0x2f8};function _0x1e8c53(_0x20db7b,_0x3bb5c2){return _0x4e7e(_0x3bb5c2-0x1d1,_0x20db7b);}function _0x312027(_0xa2e8d9,_0x5dd089){return _0x4e7e(_0x5dd089-_0x10cb2f._0x42cef0,_0xa2e8d9);}const _0x617c24=_0x2c9a1b();while(!![]){try{const _0x15e400=-parseInt(_0x1e8c53(0x741,_0x140881._0x520a62))/0x1*(-parseInt(_0x312027(0x765,_0x140881._0x1b3a0e))/0x2)+parseInt(_0x312027(0x6a1,_0x140881._0x429403))/0x3*(-parseInt(_0x312027(0x5b3,0x456))/0x4)+parseInt(_0x312027(_0x140881._0x22cc57,0x57b))/0x5*(parseInt(_0x1e8c53(_0x140881._0x2d76ad,0x530))/0x6)+parseInt(_0x1e8c53(0x41c,_0x140881._0xba8663))/0x7*(parseInt(_0x312027(_0x140881._0x48eb0d,_0x140881._0x51c8c1))/0x8)+-parseInt(_0x312027(0x711,_0x140881._0x2242a3))/0x9*(-parseInt(_0x312027(0x6be,0x843))/0xa)+parseInt(_0x312027(_0x140881._0xebd50,0x5df))/0xb+-parseInt(_0x312027(_0x140881._0x38d30b,0x72d))/0xc*(parseInt(_0x312027(_0x140881._0x13b428,_0x140881._0x3b1c77))/0xd);if(_0x15e400===_0x486b0c)break;else _0x617c24['push'](_0x617c24['shift']());}catch(_0x2ce8ad){_0x617c24['push'](_0x617c24['shift']());}}}(_0x269e,0x9e623));const _0x12f8dd=(function(){let _0x49c99e=!![];return function(_0x3b105c,_0x430f20){const _0x3738b8={_0x53b4ea:0x384},_0x1519c9=_0x49c99e?function(){function _0x21f236(_0xecd907,_0x16604c){return _0x4e7e(_0x16604c-_0x3738b8._0x53b4ea,_0xecd907);}if(_0x430f20){const _0x3f4184=_0x430f20[_0x21f236(0x559,0x593)](_0x3b105c,arguments);return _0x430f20=null,_0x3f4184;}}:function(){};return _0x49c99e=![],_0x1519c9;};}()),_0x3fc3ea=_0x12f8dd(this,function(){const _0x10e407={_0x377009:0x569,_0x3d3aee:0x1c7,_0xaccf56:0x35c,_0x2dfe9c:0x3b0,_0x411d34:0x419,_0x37ce5a:0x1b8,_0x49ca0f:0x1cf,_0x253d69:0x54a,_0x2600c2:0x1b6},_0xe09fca={_0x213941:0x1a5};function _0x28e241(_0x4dc0f5,_0x516c59){return _0x4e7e(_0x516c59-0x34d,_0x4dc0f5);}const _0x3311b0={};_0x3311b0[_0x28e241(_0x10e407._0x377009,0x6a8)]=_0x9538b4(0x27c,_0x10e407._0x3d3aee)+_0x9538b4(0x3b0,0x4b4);function _0x9538b4(_0x361baa,_0x5ab094){return _0x4e7e(_0x361baa- -_0xe09fca._0x213941,_0x5ab094);}const _0x1b2ec4=_0x3311b0;return _0x3fc3ea[_0x9538b4(0x198,0x200)]()[_0x28e241(_0x10e407._0xaccf56,0x51f)]('(((.+)+)'+_0x9538b4(_0x10e407._0x2dfe9c,_0x10e407._0x411d34))[_0x9538b4(0x198,_0x10e407._0x37ce5a)]()[_0x9538b4(_0x10e407._0x49ca0f,0xa5)+_0x28e241(_0x10e407._0x253d69,0x4a4)](_0x3fc3ea)[_0x9538b4(0x2d,-0x9c)](_0x1b2ec4[_0x9538b4(_0x10e407._0x2600c2,0x1f4)]);});_0x3fc3ea();import _0x1da8c7 from'qrcode-terminal';import{readFileSync as _0xa5ba60}from'fs';import{Socket}from'net';import{existsSync,mkdirSync,readFileSync,rmSync,writeFileSync}from'fs';import{randomUUID}from'crypto';import{homedir,hostname,userInfo}from'os';import{join}from'path';var CONFIG_DIR=join(homedir(),_0x143ed5(0x2d7,0x1c1)),CONFIG_PATH=join(CONFIG_DIR,_0x143ed5(-0xcc,0x57)+_0x75393(0xea,0x1a1)),OPENCLAW_CONFIG_PATH=join(homedir(),'.opencla'+'w',_0x75393(0x216,0x240)+_0x75393(0x405,0x4b2));function getPairingConfigPath(){return CONFIG_PATH;}function _0x75393(_0x2ed32c,_0x3d8625){return _0x4e7e(_0x3d8625- -0x36,_0x2ed32c);}function readPairingConfig(){const _0x1cbeed={_0x476f89:0x3e3,_0x1d28b9:0x27d,_0x24e485:0x8b,_0x3cc570:0x4de,_0x4f680c:0x1d2,_0x42b800:0x1c9,_0xa6205a:0x7b4,_0x1b3a3f:0x622,_0x3ae485:0x6c1,_0xcb4c85:0x7bc},_0x2d1ffd={_0x571b1f:0x2f1};function _0x52f294(_0x4da869,_0x5239b8){return _0x143ed5(_0x4da869-_0x2d1ffd._0x571b1f,_0x5239b8);}const _0x59eafd={'MqGZU':function(_0x7688fc,_0x380fd2){return _0x7688fc(_0x380fd2);},'lBaUl':function(_0x4d017a,_0x1af6be,_0x2623fa){return _0x4d017a(_0x1af6be,_0x2623fa);}};function _0x56e99e(_0xd35b57,_0x25acf5){return _0x143ed5(_0x25acf5-0x406,_0xd35b57);}if(!_0x59eafd[_0x56e99e(0x3eb,_0x1cbeed._0x476f89)](existsSync,CONFIG_PATH))return null;try{const _0x3f1c5e=JSON[_0x52f294(_0x1cbeed._0x1d28b9,_0x1cbeed._0x24e485)](_0x59eafd['lBaUl'](readFileSync,CONFIG_PATH,'utf8'));if(!_0x3f1c5e['serverUr'+'l']||!_0x3f1c5e[_0x56e99e(0x56d,0x3c2)+'d']||!_0x3f1c5e[_0x52f294(0x546,_0x1cbeed._0x3cc570)+'ret']||!_0x3f1c5e['relayUrl'])return null;const _0x21c501={'serverUrl':_0x3f1c5e[_0x56e99e(_0x1cbeed._0x4f680c,0x349)+'l'],'gatewayId':_0x3f1c5e[_0x56e99e(_0x1cbeed._0x42b800,0x3c2)+'d'],'relaySecret':_0x3f1c5e['relaySec'+'ret'],'relayUrl':_0x3f1c5e[_0x56e99e(0x61c,0x56a)],'instanceId':_0x3f1c5e[_0x56e99e(_0x1cbeed._0xa6205a,_0x1cbeed._0x1b3a3f)+'Id']?.[_0x52f294(0x231,0x160)]()||createInstanceId(),'displayName':_0x3f1c5e[_0x52f294(0x556,0x3ae)+_0x56e99e(0x684,0x727)]??null,'createdAt':_0x3f1c5e[_0x52f294(0x46a,0x37f)+'t']??new Date()['toISOStr'+'ing'](),'updatedAt':_0x3f1c5e['updatedA'+'t']??new Date()[_0x56e99e(_0x1cbeed._0x3ae485,0x4b7)+'ing']()};return _0x3f1c5e[_0x56e99e(_0x1cbeed._0xcb4c85,0x622)+'Id']!==_0x21c501['instance'+'Id']&&writePairingConfig(_0x21c501),_0x21c501;}catch{return null;}}function writePairingConfig(_0x2b41b1){const _0x2aea5c={_0x41139f:0x1b2,_0x2ab3b4:0x308,_0x19e3ab:0x308},_0x58118f={_0x4268c3:0x3cc},_0x5a6f7f={_0x27c892:0x484};function _0x2c0ef3(_0x20ef9f,_0x248136){return _0x143ed5(_0x20ef9f-_0x5a6f7f._0x27c892,_0x248136);}function _0x5258d8(_0x1ef978,_0x18d1a3){return _0x143ed5(_0x18d1a3-_0x58118f._0x4268c3,_0x1ef978);}const _0x2a06d4={};_0x2a06d4[_0x5258d8(_0x2aea5c._0x41139f,_0x2aea5c._0x2ab3b4)]='utf8';const _0x3dcb55=_0x2a06d4,_0x178f36={};_0x178f36['recursiv'+'e']=!![],mkdirSync(CONFIG_DIR,_0x178f36),writeFileSync(CONFIG_PATH,JSON[_0x5258d8(0x440,0x377)+'y'](_0x2b41b1,null,0x2)+'\x0a',_0x3dcb55[_0x5258d8(0x41e,_0x2aea5c._0x19e3ab)]);}function deletePairingConfig(){const _0x453127={_0x3426b1:0x3c};if(!existsSync(CONFIG_PATH))return;const _0x54b083={};function _0x5831c2(_0x21f5b2,_0x100061){return _0x143ed5(_0x21f5b2- -0x1a3,_0x100061);}_0x54b083[_0x5831c2(_0x453127._0x3426b1,0x17e)]=!![],rmSync(CONFIG_PATH,_0x54b083);}function getDefaultBridgeDisplayName(){const _0x4d615e={_0x1d4149:0x333,_0x3b7d1e:0x165,_0x17ff57:0x23f,_0x3d8f5d:0xe0},_0x3db39a={_0x16af2c:0x374},_0x1daf25={'YuOak':function(_0x3b420b){return _0x3b420b();}},_0x1c4e4f=readOpenClawDefaultAgentName();function _0x2c5685(_0x43c9e6,_0x40657e){return _0x75393(_0x43c9e6,_0x40657e-0x1d6);}function _0x562322(_0x807586,_0x34f049){return _0x75393(_0x807586,_0x34f049- -_0x3db39a._0x16af2c);}if(_0x1c4e4f)return _0x1c4e4f;try{const _0x587fbb=_0x1daf25['YuOak'](userInfo)[_0x2c5685(0x3ce,_0x4d615e._0x1d4149)][_0x562322(-0x44b,-0x23f)]();if(_0x587fbb)return _0x587fbb;}catch{}const _0x47e0dd=(process.env.LOGNAME??process.env.USER??process.env.USERNAME??'')[_0x562322(-_0x4d615e._0x3b7d1e,-0x23f)]();if(_0x47e0dd)return _0x47e0dd;return hostname()[_0x562322(-0x225,-_0x4d615e._0x17ff57)]()||_0x562322(0x189,_0x4d615e._0x3d8f5d)+'Bridge';}function pickOpenClawDefaultAgentName(_0xd69b07){const _0x1240e2={_0x3c5980:0x5e4,_0x3a9d5a:0x659,_0x1eee83:0x4e7,_0x52fdb1:0x6f2,_0x30a7c6:0x54a,_0x170a76:0x299,_0x598d8d:0x7ae},_0x9d7ff5={_0x32ad43:0x272};function _0x4a85b4(_0x5d1bbf,_0x186f0b){return _0x143ed5(_0x186f0b-0x471,_0x5d1bbf);}const _0x2a405c={};_0x2a405c[_0x6d828(0x45a,_0x1240e2._0x3c5980)]=function(_0x527bad,_0x619d31){return _0x527bad!==_0x619d31;};const _0x4b99a4=_0x2a405c;if(!_0xd69b07||_0x4b99a4[_0x4a85b4(0x7e3,_0x1240e2._0x3a9d5a)](typeof _0xd69b07,'object'))return null;const _0x4c43ea=_0xd69b07[_0x6d828(0x483,0x63a)];function _0x6d828(_0x47d472,_0x43653b){return _0x143ed5(_0x47d472-_0x9d7ff5._0x32ad43,_0x43653b);}const _0x1d52ae=Array[_0x4a85b4(_0x1240e2._0x1eee83,_0x1240e2._0x52fdb1)](_0x4c43ea?.[_0x4a85b4(_0x1240e2._0x30a7c6,0x436)])?_0x4c43ea[_0x4a85b4(_0x1240e2._0x170a76,0x436)]:[],_0x41b6fd=_0x1d52ae[_0x4a85b4(_0x1240e2._0x598d8d,0x730)](_0x2d6bf3=>isDefaultAgent(_0x2d6bf3))??_0x1d52ae[_0x6d828(0x531,0x491)](_0x566be1=>hasAgentId(_0x566be1,'main'))??_0x1d52ae[0x0];return readAgentName(_0x41b6fd);}function createInstanceId(){const _0xfa310={_0x4fd2ca:0x1a,_0x1c10e7:0xae,_0x21e8d9:0x65,_0x210124:0x1b0},_0x4d7f7d={_0x7a587f:0x35},_0x93734={'xuegD':function(_0x514858,_0x2ed3ee){return _0x514858(_0x2ed3ee);},'BONIt':function(_0x3fac05){return _0x3fac05();}};function _0x486398(_0x2481f2,_0x5235c3){return _0x143ed5(_0x5235c3- -0x21,_0x2481f2);}const _0x13277b=_0x93734[_0x486398(-_0xfa310._0x4fd2ca,-0x7c)](sanitizeId,_0x93734[_0x486398(_0xfa310._0x1c10e7,-0x24)](hostname)||'host');function _0x32795c(_0x1c4397,_0x4daee5){return _0x143ed5(_0x4daee5-_0x4d7f7d._0x7a587f,_0x1c4397);}return _0x486398(_0xfa310._0x21e8d9,_0xfa310._0x210124)+_0x13277b+'-'+randomUUID()[_0x32795c(0x93,0x51)](0x0,0xa);}function sanitizeId(_0x147da8){const _0x16877d={_0x676fef:0x2e1,_0x4ed735:0x11a,_0x3f8ae4:0x2b8};function _0xc1b3f4(_0x38d136,_0xe136b5){return _0x75393(_0x38d136,_0xe136b5- -0x1b);}function _0x45ff91(_0xa60241,_0x2a68b7){return _0x75393(_0x2a68b7,_0xa60241- -0x101);}return _0x147da8[_0xc1b3f4(_0x16877d._0x676fef,_0x16877d._0x4ed735)]()[_0xc1b3f4(0x285,0x25c)+_0xc1b3f4(_0x16877d._0x3f8ae4,0x305)]()[_0xc1b3f4(0x3a5,0x3a6)](/[^a-z0-9._-]+/g,'-')[_0x45ff91(0x2c0,0x295)](/^-+|-+$/g,'')||_0x45ff91(0x270,0x151);}function readOpenClawDefaultAgentName(){const _0x59bdec={_0x20200f:0x62,_0xdfb556:0x135},_0x176a81={_0x2c6011:0x149};function _0x261dc2(_0x2525ec,_0x1513a4){return _0x143ed5(_0x2525ec- -_0x176a81._0x2c6011,_0x1513a4);}const _0x225d9e={'JbpHb':function(_0x4427ab,_0x228066){return _0x4427ab(_0x228066);},'hUPtY':function(_0x5460e7,_0x5242af,_0x89d5df){return _0x5460e7(_0x5242af,_0x89d5df);}};if(!_0x225d9e[_0x261dc2(-_0x59bdec._0x20200f,_0x59bdec._0xdfb556)](existsSync,OPENCLAW_CONFIG_PATH))return null;function _0x25fe4e(_0x366d4c,_0x2c77e1){return _0x143ed5(_0x2c77e1-0x1b0,_0x366d4c);}try{const _0x4c41a8=JSON[_0x261dc2(-0x1bd,-0x189)](_0x225d9e['hUPtY'](readFileSync,OPENCLAW_CONFIG_PATH,_0x25fe4e(0x3cb,0x338)));return pickOpenClawDefaultAgentName(_0x4c41a8);}catch{return null;}}function isDefaultAgent(_0x44dd50){const _0x37cb37={_0x510537:0x199,_0x146d0e:0xba,_0x280d2e:0x35,_0x5d0af3:0xab};function _0x178521(_0x5f4690,_0xb249f7){return _0x143ed5(_0xb249f7- -0x153,_0x5f4690);}function _0x160ddb(_0x2adb42,_0x5557e3){return _0x143ed5(_0x5557e3-0x2cb,_0x2adb42);}return Boolean(_0x44dd50&&typeof _0x44dd50===_0x178521(_0x37cb37._0x510537,_0x37cb37._0x146d0e)&&_0x44dd50[_0x178521(_0x37cb37._0x280d2e,-_0x37cb37._0x5d0af3)]===!![]);}function hasAgentId(_0x412cd1,_0x2c3620){const _0x48c1ab={_0x44ff20:0x1ec,_0x2f02e3:0x212,_0x31ca7c:0xc6,_0x56e417:0x417,_0x2d0d29:0x20b,_0x554df0:0x3d5,_0x298a8a:0x173,_0x309595:0x27f},_0x278422={_0x104376:0x1f0};function _0x3c32ba(_0x2605ce,_0x470cbe){return _0x75393(_0x470cbe,_0x2605ce- -_0x278422._0x104376);}const _0x1f19e6={};function _0x18725f(_0x53f0ce,_0xb4d397){return _0x75393(_0xb4d397,_0x53f0ce-0x14a);}_0x1f19e6[_0x3c32ba(0x9b,_0x48c1ab._0x44ff20)]=_0x3c32ba(_0x48c1ab._0x2f02e3,_0x48c1ab._0x31ca7c),_0x1f19e6[_0x18725f(_0x48c1ab._0x56e417,_0x48c1ab._0x2d0d29)]=function(_0xce64cc,_0xe2d39c){return _0xce64cc===_0xe2d39c;},_0x1f19e6['QFXqw']=function(_0x3ec55d,_0x360183){return _0x3ec55d===_0x360183;};const _0x8c6366=_0x1f19e6;return Boolean(_0x412cd1&&typeof _0x412cd1===_0x8c6366[_0x18725f(_0x48c1ab._0x554df0,0x41c)]&&_0x8c6366[_0x3c32ba(0xdd,_0x48c1ab._0x298a8a)](typeof _0x412cd1['id'],'string')&&_0x8c6366[_0x3c32ba(0xfa,0x2a1)](_0x412cd1['id'][_0x18725f(_0x48c1ab._0x309595,0x199)](),_0x2c3620));}function readAgentName(_0x3914d8){const _0x54003f={_0x35950f:0x7b,_0x1e5f62:0xb9,_0x186179:0xcf,_0x2e88b3:0x105,_0x199f63:0x9e,_0x3686f2:0x104,_0x56103a:0x63c,_0x3ad29d:0x497,_0x8a44e:0x26a,_0x586955:0x2f5,_0x1d98d6:0x53a,_0x50db81:0x3dd,_0x492a6a:0xdf},_0x344dc3={};_0x344dc3[_0x155f3f(-_0x54003f._0x35950f,-0x105)]=_0x155f3f(-0xe8,_0x54003f._0x1e5f62);const _0x2c3b35=_0x344dc3;if(!_0x3914d8||typeof _0x3914d8!==_0x2c3b35[_0x155f3f(_0x54003f._0x186179,-_0x54003f._0x2e88b3)])return null;const _0x2ca7b8=_0x3914d8,_0x94f43c=typeof _0x2ca7b8['identity']?.[_0x155f3f(-_0x54003f._0x199f63,_0x54003f._0x3686f2)]===_0x18d5b8(_0x54003f._0x56103a,_0x54003f._0x3ad29d)?_0x2ca7b8[_0x18d5b8(0x2a,0x136)]['name'][_0x155f3f(-_0x54003f._0x8a44e,-0x214)]():'';if(_0x94f43c)return _0x94f43c;function _0x18d5b8(_0x1294d9,_0x5bdf44){return _0x143ed5(_0x5bdf44-0x185,_0x1294d9);}function _0x155f3f(_0x453f2b,_0x1d04c7){return _0x143ed5(_0x1d04c7- -0x154,_0x453f2b);}const _0x3ce18d=typeof _0x2ca7b8[_0x155f3f(0x13f,_0x54003f._0x3686f2)]===_0x155f3f(_0x54003f._0x586955,0x1be)?_0x2ca7b8[_0x18d5b8(_0x54003f._0x1d98d6,_0x54003f._0x50db81)][_0x155f3f(-_0x54003f._0x492a6a,-0x214)]():'';return _0x3ce18d||null;}function buildPairingQrPayload(_0x27170c){const _0x1089c6={_0x3eac57:0x88b,_0x465830:0x8ea,_0x194bb3:0x584,_0x217265:0x3fa,_0x82302f:0x23b,_0x5995ec:0x316,_0x58783b:0x480,_0x21d0b7:0x856,_0x476818:0x7e1,_0x5684b4:0x3ce,_0x5b92eb:0x508,_0x41d194:0x5ef,_0x5ad356:0x545,_0x281697:0x40b,_0x2515ec:0x6db,_0x5c8b49:0x634,_0x46f395:0x316},_0x4bb13d={_0x998a80:0x3d6},_0x8c8f8d={_0xe0a47b:0x5c8},_0x4cf5f8={};function _0x95c478(_0x160e41,_0x3c6c08){return _0x143ed5(_0x3c6c08-_0x8c8f8d._0xe0a47b,_0x160e41);}function _0x1e2c3a(_0x2388f9,_0x1ea041){return _0x143ed5(_0x2388f9-_0x4bb13d._0x998a80,_0x1ea041);}_0x4cf5f8['v']=0x2,_0x4cf5f8['k']='cp',_0x4cf5f8['s']=_0x27170c[_0x95c478(_0x1089c6._0x3eac57,_0x1089c6._0x465830)],_0x4cf5f8['g']=_0x27170c[_0x95c478(0x435,_0x1089c6._0x194bb3)+'d'],_0x4cf5f8['a']=_0x27170c[_0x1e2c3a(_0x1089c6._0x217265,_0x1089c6._0x82302f)+'de'];const _0x3c8b02=_0x4cf5f8;return _0x27170c[_0x1e2c3a(0x63b,0x4ca)+_0x1e2c3a(0x6f7,0x7f2)]?.[_0x1e2c3a(_0x1089c6._0x5995ec,_0x1089c6._0x58783b)]()&&(_0x3c8b02['n']=_0x27170c[_0x95c478(_0x1089c6._0x21d0b7,0x82d)+_0x95c478(0xab6,0x8e9)]['trim']()),_0x27170c[_0x95c478(0x99e,_0x1089c6._0x476818)]?.[_0x95c478(_0x1089c6._0x5684b4,_0x1089c6._0x5b92eb)]()&&(_0x3c8b02['t']=_0x27170c[_0x1e2c3a(_0x1089c6._0x41d194,_0x1089c6._0x5ad356)][_0x1e2c3a(0x316,_0x1089c6._0x281697)]()),_0x27170c[_0x1e2c3a(_0x1089c6._0x2515ec,_0x1089c6._0x5c8b49)]?.[_0x1e2c3a(0x316,0x1c7)]()&&(_0x3c8b02['p']=_0x27170c[_0x1e2c3a(0x6db,0x666)][_0x1e2c3a(_0x1089c6._0x46f395,0x138)]()),JSON[_0x95c478(0x423,0x573)+'y'](_0x3c8b02);}async function pairGateway(_0x22bf2d){const _0x2cdcd9={_0x247003:0x381,_0x3fb7e2:0x3fa,_0x10988b:0x98,_0x29eb75:0x23d,_0x2f3565:0x4c,_0x58fa82:0x11a,_0x12975e:0x271,_0x410d04:0x319,_0x2070b7:0x1f8,_0x4575d6:0x116,_0x5ce0a4:0x24e,_0x42e3e3:0xa1,_0x206c4d:0x15c,_0x505e74:0x47e,_0xb25e45:0x29e,_0xcbb445:0xb1,_0x2766b4:0x125,_0x180294:0xb1,_0x2f00f3:0x62,_0x2a429d:0x47d,_0x5d4b48:0x5ea,_0x40cff1:0x15,_0x141c67:0x91,_0x138cda:0x273,_0x318acb:0x284,_0x57e7c2:0x174,_0x4c8e96:0x19c,_0x3a51d6:0x1cc,_0x2e0120:0x3a,_0x17321b:0x118,_0x2383e1:0x138,_0x338850:0x19c,_0x327d47:0xa8,_0x3f7e6f:0x17c,_0x534c8a:0x169,_0x595710:0x7a,_0x19d0ca:0x30f,_0x1ff262:0x18a,_0x3cba18:0x128,_0x9e5cf3:0x8c,_0x3df4d9:0x24a,_0x54260f:0x15a,_0x3e5bba:0x5dd,_0x566375:0xb1,_0x394485:0x1c2,_0x166e78:0x268,_0x32d50c:0x385,_0x5c0e38:0x226,_0x367c4c:0x19,_0x3d9d42:0x45,_0x489a01:0xaa,_0x50db24:0x31e,_0xb1f05:0x176,_0x288b00:0x18,_0x14ac06:0x68,_0x5324f3:0x279,_0x276661:0xc1,_0x572d47:0x47b,_0x570f66:0x673,_0x3ee6fb:0x433,_0x5ef147:0xbc,_0x175791:0xd8,_0x4b0fef:0x281,_0x515fd1:0x190,_0x3f8a5b:0x2a5,_0x56fbba:0xb1,_0x476bd0:0x16f,_0x469f86:0x455,_0x57f9c4:0x2bc,_0x5382a3:0x322,_0xf82dd4:0x274},_0x54211c={_0x68c787:0x3a9},_0x3d52b9={_0x28e26f:0x9b},_0x4b7ac7={'JtffJ':function(_0x464bfb,_0x5a290d){return _0x464bfb(_0x5a290d);},'MIrqd':_0x4ab349(_0x2cdcd9._0x247003,0x2e9)+'existing','edxWH':function(_0x5770b7,_0xf9a849,_0x4521b5){return _0x5770b7(_0xf9a849,_0x4521b5);},'Tbskp':_0x4ab349(0x422,_0x2cdcd9._0x3fb7e2)+'ed'},_0x3e6d76=_0x4b7ac7[_0x4ab349(_0x2cdcd9._0x10988b,_0x2cdcd9._0x29eb75)](normalizeHttpBase,_0x22bf2d[_0x4ab349(0x9d,_0x2cdcd9._0x2f3565)+'l']),_0x2063e1=readPairingConfig(),_0x25d612=assessPairingCompatibility(_0x2063e1,_0x3e6d76);if(_0x25d612===_0x4b7ac7[_0x4ab349(0x459,0x5a3)]&&_0x2063e1){const _0x1eb3dd={};return _0x1eb3dd[_0x48b0ad(-_0x2cdcd9._0x58fa82,-_0x2cdcd9._0x12975e)+'l']=_0x2063e1['serverUr'+'l'],_0x1eb3dd[_0x48b0ad(-_0x2cdcd9._0x410d04,-_0x2cdcd9._0x2070b7)+'d']=_0x2063e1[_0x4ab349(_0x2cdcd9._0x4575d6,0x1a2)+'d'],_0x1eb3dd[_0x48b0ad(_0x2cdcd9._0x5ce0a4,_0x2cdcd9._0x42e3e3)+'ret']=_0x2063e1[_0x48b0ad(_0x2cdcd9._0x206c4d,0xa1)+_0x4ab349(_0x2cdcd9._0x505e74,_0x2cdcd9._0xb25e45)],_0x1eb3dd[_0x48b0ad(0x2ba,_0x2cdcd9._0xcbb445)+_0x48b0ad(0x20d,0x16d)]=_0x22bf2d[_0x48b0ad(_0x2cdcd9._0x2766b4,_0x2cdcd9._0x180294)+'ame'],_0x1eb3dd[_0x48b0ad(0x11b,0x16f)+_0x48b0ad(_0x2cdcd9._0x2f00f3,0x147)]=_0x22bf2d[_0x4ab349(_0x2cdcd9._0x2a429d,_0x2cdcd9._0x5d4b48)+_0x48b0ad(-_0x2cdcd9._0x40cff1,0x147)],_0x1eb3dd['gatewayP'+_0x4ab349(_0x2cdcd9._0x141c67,-0xc4)]=_0x22bf2d['gatewayP'+_0x48b0ad(-_0x2cdcd9._0x138cda,-0x27d)],refreshAccessCode(_0x1eb3dd);}function _0x4ab349(_0x3b4f4e,_0x4ee80d){return _0x75393(_0x4ee80d,_0x3b4f4e- -_0x3d52b9._0x28e26f);}function _0x48b0ad(_0x1d87d7,_0x2e914f){return _0x75393(_0x1d87d7,_0x2e914f- -_0x54211c._0x68c787);}if(_0x25d612==='server-m'+_0x4ab349(0x387,0x32c))throw new Error(_0x48b0ad(-0x43d,-_0x2cdcd9._0x318acb)+_0x4ab349(0x33d,_0x2cdcd9._0x57e7c2)+_0x4ab349(0x425,0x45d)+'aired\x20wi'+_0x4ab349(0x2d1,_0x2cdcd9._0x4c8e96)+_0x2063e1?.['serverUr'+'l']+(_0x4ab349(_0x2cdcd9._0x3a51d6,-_0x2cdcd9._0x2e0120)+_0x48b0ad(-_0x2cdcd9._0x17321b,-_0x2cdcd9._0x2383e1)+_0x48b0ad(-0x1c2,-0x21e)+_0x48b0ad(-_0x2cdcd9._0x338850,-0x1a7)+'ring\x20wit'+_0x48b0ad(_0x2cdcd9._0x327d47,-0x110)+_0x4ab349(0x1c4,_0x2cdcd9._0x3f7e6f)+_0x4ab349(0x42d,0x2b7)));const _0x21ac0e={};_0x21ac0e[_0x48b0ad(-0x22f,-0x1ff)+_0x48b0ad(_0x2cdcd9._0x534c8a,-_0x2cdcd9._0x595710)]='applicat'+_0x4ab349(_0x2cdcd9._0x19d0ca,0x39a),_0x21ac0e[_0x4ab349(_0x2cdcd9._0x1ff262,0x30c)]='applicat'+'ion/json';const _0xc9e2c1=await _0x4b7ac7[_0x48b0ad(-_0x2cdcd9._0x3cba18,_0x2cdcd9._0x9e5cf3)](fetch,_0x3e6d76+('/v1/pair'+_0x4ab349(_0x2cdcd9._0x3df4d9,_0x2cdcd9._0x54260f)+'r'),{'method':_0x4ab349(0x426,_0x2cdcd9._0x3e5bba),'headers':_0x21ac0e,'body':JSON['stringif'+'y']({'displayName':_0x22bf2d[_0x48b0ad(0xb,_0x2cdcd9._0x566375)+_0x48b0ad(0x2e4,0x16d)]?.[_0x4ab349(0x9a,_0x2cdcd9._0x394485)]()||null})});if(!_0xc9e2c1['ok'])throw new Error(_0x4ab349(_0x2cdcd9._0x166e78,0x41c)+_0x48b0ad(0x1c3,0xdf)+_0x4ab349(_0x2cdcd9._0x32d50c,_0x2cdcd9._0x5c0e38)+_0xc9e2c1['status']+_0x48b0ad(0x1c5,_0x2cdcd9._0x367c4c)+await _0xc9e2c1[_0x48b0ad(-_0x2cdcd9._0x3d9d42,0x144)]());const _0x4cc775=await _0xc9e2c1[_0x4ab349(0x3d9,0x32b)](),_0x14251c=new Date()[_0x48b0ad(-_0x2cdcd9._0x489a01,-0x103)+_0x4ab349(_0x2cdcd9._0x50db24,_0x2cdcd9._0xb1f05)](),_0x3d00ef={'serverUrl':_0x3e6d76,'gatewayId':_0x4cc775[_0x48b0ad(-0x301,-_0x2cdcd9._0x2070b7)+'d'],'relaySecret':_0x4cc775[_0x48b0ad(0x15,0xa1)+_0x48b0ad(0x15e,0x170)],'relayUrl':_0x4cc775['relayUrl'],'instanceId':_0x2063e1?.[_0x48b0ad(-_0x2cdcd9._0x288b00,_0x2cdcd9._0x14ac06)+'Id']??_0x48b0ad(-0x16a,0x1d)+_0x4cc775[_0x4ab349(0x116,_0x2cdcd9._0x5324f3)+'d'][_0x4ab349(0x176,_0x2cdcd9._0x276661)](-0xa),'displayName':_0x4cc775[_0x4ab349(0x3bf,0x5b8)+_0x4ab349(_0x2cdcd9._0x572d47,_0x2cdcd9._0x570f66)],'createdAt':_0x14251c,'updatedAt':_0x14251c};return writePairingConfig(_0x3d00ef),{'config':_0x3d00ef,'accessCode':_0x4cc775['accessCo'+'de'],'accessCodeExpiresAt':_0x4cc775[_0x48b0ad(-0x21a,-0x190)+_0x4ab349(_0x2cdcd9._0x3ee6fb,0x435)+_0x4ab349(_0x2cdcd9._0x5ef147,-_0x2cdcd9._0x175791)],'action':_0x4b7ac7[_0x48b0ad(-0xeb,-0x11f)],'qrPayload':buildPairingQrPayload({'server':_0x3e6d76,'gatewayId':_0x4cc775[_0x4ab349(0x116,0x2b3)+'d'],'accessCode':_0x4cc775[_0x48b0ad(-_0x2cdcd9._0x4b0fef,-_0x2cdcd9._0x515fd1)+'de'],'displayName':_0x4cc775[_0x48b0ad(_0x2cdcd9._0x3f8a5b,_0x2cdcd9._0x56fbba)+_0x4ab349(_0x2cdcd9._0x572d47,0x64f)],'token':_0x22bf2d[_0x48b0ad(0x326,_0x2cdcd9._0x476bd0)+_0x4ab349(_0x2cdcd9._0x469f86,_0x2cdcd9._0x57f9c4)]?.['trim']()||null,'password':_0x22bf2d[_0x4ab349(0xf9,0x145)+_0x4ab349(_0x2cdcd9._0x141c67,0x1d7)]?.[_0x48b0ad(-_0x2cdcd9._0x5382a3,-_0x2cdcd9._0xf82dd4)]()||null})};}async function refreshAccessCode(_0x39c876){const _0x35b4e2={_0x2ac762:0x3f1,_0x16bbc9:0x3c5,_0x1206c4:0x3a0,_0x8b6b26:0x43e,_0x3503eb:0x664,_0xd825c9:0x6d7,_0x36fe6c:0x628,_0x472aa1:0x609,_0x2e8721:0x559,_0x1b0831:0x4f1,_0x22011f:0x7a7,_0x42ebfd:0x753,_0x540086:0x4b9,_0x3e73ba:0x356,_0xd18d6d:0x54c,_0x1344a0:0x721,_0x2386f9:0x58d,_0x28ab9e:0x42f,_0x419f5f:0x4c1,_0x37f6e2:0x42d,_0x4704f2:0x3fc,_0x1f3831:0x244,_0x3acfff:0x586,_0x4561df:0x462,_0xf6e73a:0x69a,_0xc4f6a4:0x34c,_0x30204d:0x4d1,_0x1a8ef9:0x5fc,_0xd3ed53:0x774,_0x27ebdb:0x5df,_0x13ef35:0x4d5,_0x5cd749:0x212,_0x5a1894:0x320,_0x394c6f:0x677,_0x3d9261:0x6e7,_0xed60c7:0x460,_0x190d78:0x625,_0x50f03c:0x47d,_0x37e964:0x533,_0x57ec88:0x4ae,_0x17565f:0x646,_0x4adb18:0x137,_0x4c3607:0x328,_0x7c3b73:0x1c1,_0x2d00a9:0x30f,_0x5a582a:0x175,_0x3687c3:0x5ff,_0xeae9fb:0xc8,_0x572de8:0x334},_0x3f73b1={_0x1d6ad1:0x10f},_0x239166=readPairingConfig(),_0x2d7948=normalizeHttpBase(_0x39c876?.[_0x38eee9(_0x35b4e2._0x2ac762,_0x35b4e2._0x16bbc9)+'l']??_0x239166?.['serverUr'+'l']??'');function _0x38eee9(_0x2722da,_0x450fd2){return _0x75393(_0x2722da,_0x450fd2-0x28d);}const _0x319bc3=_0x39c876?.[_0x38eee9(_0x35b4e2._0x1206c4,_0x35b4e2._0x8b6b26)+'d']??_0x239166?.['gatewayI'+'d']??'';function _0x348e97(_0x2a9543,_0xfad2e1){return _0x75393(_0x2a9543,_0xfad2e1-_0x3f73b1._0x1d6ad1);}const _0x2a3dd2=_0x39c876?.[_0x38eee9(_0x35b4e2._0x3503eb,_0x35b4e2._0xd825c9)+_0x348e97(0x49c,_0x35b4e2._0x36fe6c)]??_0x239166?.[_0x348e97(_0x35b4e2._0x472aa1,_0x35b4e2._0x2e8721)+'ret']??'';if(!_0x2d7948||!_0x319bc3||!_0x2a3dd2)throw new Error('Pairing\x20'+_0x38eee9(0x559,0x519)+'ot\x20found'+_0x348e97(0x521,_0x35b4e2._0x1b0831)+_0x38eee9(_0x35b4e2._0x22011f,_0x35b4e2._0x42ebfd)+'.');const _0x3a653b={};_0x3a653b[_0x348e97(0xf5,0x2b9)+'type']='applicat'+_0x348e97(0x669,0x4b9),_0x3a653b[_0x38eee9(0x2db,0x4b2)]='applicat'+_0x348e97(0x387,_0x35b4e2._0x540086);const _0x4c1968=await fetch(_0x2d7948+(_0x38eee9(_0x35b4e2._0x3e73ba,_0x35b4e2._0xd18d6d)+_0x38eee9(_0x35b4e2._0x1344a0,_0x35b4e2._0x2386f9)+_0x348e97(_0x35b4e2._0x28ab9e,_0x35b4e2._0x419f5f)),{'method':'POST','headers':_0x3a653b,'body':JSON[_0x38eee9(0x4f5,_0x35b4e2._0x37f6e2)+'y']({'gatewayId':_0x319bc3,'relaySecret':_0x2a3dd2,'displayName':_0x39c876?.[_0x348e97(_0x35b4e2._0x4704f2,0x569)+_0x348e97(0x771,0x625)]?.[_0x348e97(0x10d,_0x35b4e2._0x1f3831)]()||void 0x0})});if(!_0x4c1968['ok'])throw new Error(_0x348e97(0x5ee,_0x35b4e2._0x3acfff)+_0x38eee9(0x3da,_0x35b4e2._0x4561df)+_0x38eee9(0x5b4,_0x35b4e2._0xf6e73a)+'ed\x20('+_0x4c1968[_0x348e97(0x248,_0x35b4e2._0xc4f6a4)]+_0x348e97(0x34b,_0x35b4e2._0x30204d)+await _0x4c1968[_0x348e97(0x64c,_0x35b4e2._0x1a8ef9)]());const _0x4e764d=await _0x4c1968[_0x38eee9(0x53c,0x701)](),_0x10d286={'serverUrl':_0x2d7948,'gatewayId':_0x4e764d['gatewayI'+'d'],'relaySecret':_0x2a3dd2,'relayUrl':_0x4e764d[_0x38eee9(0x587,0x5e6)],'instanceId':_0x239166?.[_0x38eee9(_0x35b4e2._0xd3ed53,0x69e)+'Id']??_0x348e97(_0x35b4e2._0x27ebdb,_0x35b4e2._0x13ef35)+_0x4e764d[_0x348e97(0x369,0x2c0)+'d'][_0x348e97(_0x35b4e2._0x5cd749,_0x35b4e2._0x5a1894)](-0xa),'displayName':_0x4e764d[_0x38eee9(_0x35b4e2._0x394c6f,_0x35b4e2._0x3d9261)+_0x348e97(_0x35b4e2._0xed60c7,_0x35b4e2._0x190d78)],'createdAt':_0x239166?.[_0x348e97(0x5d7,_0x35b4e2._0x50f03c)+'t']??new Date()['toISOStr'+'ing'](),'updatedAt':new Date()[_0x38eee9(0x72e,_0x35b4e2._0x37e964)+_0x38eee9(_0x35b4e2._0x57ec88,_0x35b4e2._0x17565f)]()};return writePairingConfig(_0x10d286),{'config':_0x10d286,'accessCode':_0x4e764d['accessCo'+'de'],'accessCodeExpiresAt':_0x4e764d[_0x348e97(_0x35b4e2._0x4adb18,_0x35b4e2._0x4c3607)+'deExpire'+_0x38eee9(0x502,0x3e4)],'action':_0x348e97(_0x35b4e2._0x7c3b73,_0x35b4e2._0x2d00a9)+'d','qrPayload':buildPairingQrPayload({'server':_0x2d7948,'gatewayId':_0x4e764d[_0x348e97(_0x35b4e2._0x5a582a,0x2c0)+'d'],'accessCode':_0x4e764d['accessCo'+'de'],'displayName':_0x4e764d['displayN'+'ame'],'token':_0x39c876?.['gatewayT'+_0x348e97(0x64a,_0x35b4e2._0x3687c3)]?.['trim']()||null,'password':_0x39c876?.[_0x348e97(_0x35b4e2._0xeae9fb,0x2a3)+_0x348e97(_0x35b4e2._0x572de8,0x23b)]?.[_0x348e97(0x29c,0x244)]()||null})};}function normalizeHttpBase(_0x4fb4d1){const _0x2d1f01={_0x366031:0x70a,_0x40d093:0x663,_0x32c68e:0x15b,_0x1a71e1:0x1c2,_0x576eae:0xf1,_0x32bb7f:0xa7,_0x2564b:0x42,_0x192c11:0x4e6,_0x4ecde7:0x36d,_0x4c16db:0x1a3,_0x57640b:0x694,_0xfefc05:0x62f,_0xd66990:0x3e,_0x1a154d:0x14f},_0x45fb12={_0x49b5f8:0x383},_0x4458a9={};function _0x53cc5d(_0x2a0ca9,_0x396f79){return _0x75393(_0x396f79,_0x2a0ca9- -_0x45fb12._0x49b5f8);}_0x4458a9[_0x53cc5d(0x1a3,0x178)]=_0x660ab8(_0x2d1f01._0x366031,_0x2d1f01._0x40d093);const _0x122038=_0x4458a9,_0x255b0d=_0x4fb4d1[_0x53cc5d(-0x24e,-0x300)]();if(!_0x255b0d)return'';if(_0x255b0d['startsWi'+'th'](_0x53cc5d(-_0x2d1f01._0x32c68e,-_0x2d1f01._0x1a71e1))||_0x255b0d['startsWi'+'th'](_0x660ab8(0x423,0x56e)))return _0x255b0d[_0x53cc5d(0x3e,_0x2d1f01._0x576eae)](/\/+$/,'');if(_0x255b0d[_0x660ab8(0x7b1,0x94f)+'th'](_0x53cc5d(_0x2d1f01._0x32bb7f,-_0x2d1f01._0x2564b)))return(_0x660ab8(_0x2d1f01._0x192c11,0x611)+_0x255b0d[_0x53cc5d(-0x172,-_0x2d1f01._0x4ecde7)]('ws://'['length']))['replace'](/\/+$/,'');function _0x660ab8(_0x207684,_0x3d9e07){return _0x75393(_0x3d9e07,_0x207684-0x2be);}if(_0x255b0d['startsWi'+'th'](_0x660ab8(0x70a,0x68b)))return('https://'+_0x255b0d[_0x660ab8(0x4cf,0x56c)](_0x122038[_0x53cc5d(_0x2d1f01._0x4c16db,-0x43)][_0x660ab8(0x6fd,0x859)]))[_0x660ab8(0x67f,_0x2d1f01._0x57640b)](/\/+$/,'');return(_0x660ab8(0x423,_0x2d1f01._0xfefc05)+_0x255b0d)[_0x53cc5d(_0x2d1f01._0xd66990,_0x2d1f01._0x1a154d)](/\/+$/,'');}function assessPairingCompatibility(_0x3f12ce,_0x425c26){const _0x44dd14={_0x59664d:0x11b,_0x5dfeda:0x767,_0x4c3731:0x4ba,_0x4cc721:0x483},_0x2a44b9={_0x4f2d11:0x540},_0x91ae26={};_0x91ae26[_0x484518(_0x44dd14._0x59664d,0x1e0)]=function(_0x1931c5,_0x1768fe){return _0x1931c5===_0x1768fe;},_0x91ae26['ydvtp']=_0x4b88b7(0x6f0,_0x44dd14._0x5dfeda)+_0x4b88b7(0x5ec,0x56e);function _0x4b88b7(_0x2786fd,_0x2e8355){return _0x143ed5(_0x2e8355-_0x2a44b9._0x4f2d11,_0x2786fd);}_0x91ae26[_0x484518(0xbd,-0xa4)]='server-m'+'ismatch';function _0x484518(_0x4d1009,_0x1a73fd){return _0x143ed5(_0x4d1009-0xd5,_0x1a73fd);}const _0x50b337=_0x91ae26;if(!_0x3f12ce)return _0x4b88b7(0x935,0x808)+'-new';if(_0x50b337[_0x484518(_0x44dd14._0x59664d,0x14c)](_0x3f12ce[_0x4b88b7(_0x44dd14._0x4c3731,_0x44dd14._0x4cc721)+'l'],_0x425c26))return _0x50b337['ydvtp'];return _0x50b337[_0x484518(0xbd,-0x48)];}import{execFileSync,spawn}from'child_process';import{chmodSync,closeSync,existsSync as _0x380e31,mkdirSync as _0x2eb1d2,openSync,readFileSync as _0x38dd2e,realpathSync,rmSync as _0x12515c,writeFileSync as _0x54e92a}from'fs';import{homedir as _0x4465b1}from'os';import{dirname,join as _0x53af81}from'path';var SERVICE_LABEL='ai.clawk'+_0x143ed5(0x7b,0x60)+_0x143ed5(0x155,0xb7),SYSTEMD_UNIT_NAME=SERVICE_LABEL+'.service',WINDOWS_RUN_KEY=_0x143ed5(-0xb0,-0x28a)+'ridgeCli',SERVICE_DIR=_0x53af81(_0x4465b1(),_0x143ed5(0x2d7,0x34f)),LOG_DIR=_0x53af81(SERVICE_DIR,'logs'),SERVICE_STATE_PATH=_0x53af81(SERVICE_DIR,_0x143ed5(0x3,-0xce)+_0x75393(0x19d,0x141)+_0x75393(0x18e,0x381)),SERVICE_LAUNCHER_PATH=_0x53af81(SERVICE_DIR,_0x143ed5(0x3,-0x199)+_0x143ed5(0x13b,0xcf)+_0x143ed5(0x342,0x4a0)+'sh'),SERVICE_LOG_PATH=_0x53af81(LOG_DIR,_0x143ed5(-0xcc,0x5c)+_0x143ed5(0xa,-0x19f)),SERVICE_ERROR_LOG_PATH=_0x53af81(LOG_DIR,_0x143ed5(-0xcc,-0xaf)+'li-error'+_0x75393(0x2e4,0x384)),MACOS_PLIST_PATH=_0x53af81(_0x4465b1(),'Library',_0x143ed5(0x99,-0x130)+_0x143ed5(0x207,0xbe),SERVICE_LABEL+'.plist'),LINUX_SERVICE_PATH=_0x53af81(_0x4465b1(),_0x75393(0x22c,0x140),_0x143ed5(-0xd,0xc4),_0x143ed5(0x137,0x158),SYSTEMD_UNIT_NAME);function getServiceProgramArgs(_0x902865={},_0x3fa496=process[_0x75393(0x357,0x34b)]){const _0x4b7268={_0x73681b:0x5e3,_0xf92dae:0x71f,_0x4d9dfd:0x6b7,_0xe060fe:0x65c,_0x49e7dd:0x6fd,_0x5dae8d:0x4ff,_0x4d34f1:0x31f,_0x10be60:0x257,_0x3d688b:0x5bb,_0x491611:0x39a,_0x16542d:0x687,_0x307862:0x6a2,_0x17f71b:0x4a4,_0x2df581:0x712,_0x54f8ba:0x90d,_0x28231d:0x6a3,_0x1c4561:0x4e5,_0x16cf21:0x49c,_0x213668:0x6be,_0x36289f:0x73e},_0x35d7db={'kXsGa':function(_0x5af408,_0x563b71){return _0x5af408(_0x563b71);},'fiegj':function(_0x38591b,_0x1e2dfe){return _0x38591b!==_0x1e2dfe;},'yPyXd':function(_0xe6deb4,_0x35d430){return _0xe6deb4(_0x35d430);}},_0x4164c7=_0x902865[_0x2ca193(0x3db,_0x4b7268._0x73681b)]?.['trim']()||process['execPath'];function _0x5a37e4(_0x3ae2b1,_0x12b7c9){return _0x143ed5(_0x3ae2b1-0x566,_0x12b7c9);}const _0x4dddd3=_0x35d7db[_0x5a37e4(0x6ac,_0x4b7268._0xf92dae)](resolveScriptPath,_0x902865[_0x5a37e4(_0x4b7268._0x4d9dfd,_0x4b7268._0xe060fe)+'th']);if(!_0x4dddd3)throw new Error(_0x5a37e4(_0x4b7268._0x49e7dd,0x8c4)+_0x2ca193(0x586,0x768)+_0x5a37e4(0x608,_0x4b7268._0x5dae8d)+_0x2ca193(_0x4b7268._0x4d34f1,_0x4b7268._0x10be60)+_0x2ca193(_0x4b7268._0x3d688b,0x740)+_0x2ca193(_0x4b7268._0x491611,0x31c)+_0x5a37e4(_0x4b7268._0x16542d,_0x4b7268._0x307862)+_0x2ca193(0x59b,0x71e));function _0x2ca193(_0x4803f0,_0x534642){return _0x143ed5(_0x4803f0-0x29e,_0x534642);}if(_0x35d7db[_0x2ca193(_0x4b7268._0x17f71b,0x470)](_0x3fa496,_0x5a37e4(_0x4b7268._0x2df581,_0x4b7268._0x54f8ba))){const _0xf99d4d={};_0xf99d4d[_0x5a37e4(_0x4b7268._0x28231d,_0x4b7268._0x1c4561)]=_0x4164c7,_0xf99d4d[_0x2ca193(0x3ef,_0x4b7268._0x16cf21)+'th']=_0x4dddd3,_0xf99d4d['pathEnv']=process.env.PATH??'';const _0x3499f7=_0x35d7db[_0x5a37e4(_0x4b7268._0x213668,_0x4b7268._0x36289f)](writeServiceLauncher,_0xf99d4d);return ensureLaunchScriptExecutable(_0x3499f7,_0x3fa496),[_0x3499f7];}return[_0x4164c7,_0x4dddd3,'run',_0x2ca193(0x1fb,0x2dc)+'e'];}function getServiceStatus(){const _0x25a1b1={_0x32ef20:0x4ca,_0x2ee747:0x31f,_0x274104:0x38c,_0x1ffe4c:0x1a1,_0xb8fcb7:0x35c,_0x42cd6d:0x21e,_0x20aec4:0x2b8,_0x2a0a6c:0x112,_0x35da7b:0x154,_0x184472:0x5fe,_0x394b2e:0x172,_0x516007:0x498,_0x957d1:0x2aa,_0x5d89dd:0x4ad,_0x25accf:0x5e8,_0x199a27:0x503,_0x40d20c:0x176,_0x3820bd:0x1a3,_0x4fe06f:0x132,_0xcc4ac8:0x2fe,_0xd25112:0x3da,_0x5656d1:0x4f0,_0x2fabde:0x2cf,_0x1c8d98:0x1ad,_0x295fb5:0x4ca,_0x39874d:0x235,_0x141339:0x146,_0x4bb1fd:0x351,_0x3f2a93:0x16b,_0x23a924:0x1ac,_0x1be085:0x43e,_0x3867b1:0x190,_0x535505:0x311,_0x5d6147:0x29a,_0x48cd01:0x4a3,_0x147a59:0x4f1,_0x4e1e2c:0x579},_0x27313b={_0x7a9392:0x8},_0x148c6f={_0x1251e9:0xd};function _0x2b935c(_0x4fb99c,_0x76154e){return _0x75393(_0x4fb99c,_0x76154e- -_0x148c6f._0x1251e9);}const _0x41b131={'gnThc':function(_0x467ef4){return _0x467ef4();},'RnhWD':function(_0x2d82d7,_0x41421e){return _0x2d82d7!=_0x41421e;},'nreaQ':function(_0x201138,_0x5fec7a){return _0x201138(_0x5fec7a);},'eNgvi':_0x1a0766(0x4b9,_0x25a1b1._0x32ef20)+_0x2b935c(0x12c,_0x25a1b1._0x2ee747),'GVDGR':function(_0x20fa19,_0x26b550,_0x5962cf){return _0x20fa19(_0x26b550,_0x5962cf);},'DBZzc':_0x1a0766(_0x25a1b1._0x274104,_0x25a1b1._0x1ffe4c)+_0x1a0766(_0x25a1b1._0xb8fcb7,0x188)+_0x1a0766(0x1ce,_0x25a1b1._0x42cd6d)+_0x2b935c(0x362,0x2a2)+_0x1a0766(_0x25a1b1._0x20aec4,0x438)+_0x1a0766(_0x25a1b1._0x2a0a6c,_0x25a1b1._0x35da7b)+'un'};ensureServiceDirs();function _0x1a0766(_0x5e0ceb,_0x1db433){return _0x75393(_0x5e0ceb,_0x1db433-_0x27313b._0x7a9392);}const _0x139318=readServiceState()?.[_0x1a0766(_0x25a1b1._0x184472,0x4ad)]??null,_0x156ee5={'installed':![],'running':_0x139318!=null&&isPidRunning(_0x139318),'method':_0x41b131[_0x1a0766(_0x25a1b1._0x394b2e,0x354)](detectServiceMethod),'servicePath':getServicePath(),'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'pid':_0x139318};_0x41b131['RnhWD'](_0x156ee5[_0x2b935c(0x576,_0x25a1b1._0x516007)],null)&&!_0x156ee5[_0x1a0766(0x2dd,0x408)]&&(clearServiceState(_0x156ee5[_0x1a0766(_0x25a1b1._0x957d1,_0x25a1b1._0x5d89dd)]),_0x156ee5['pid']=null);switch(_0x156ee5[_0x1a0766(_0x25a1b1._0x25accf,_0x25a1b1._0x199a27)]){case _0x2b935c(_0x25a1b1._0x40d20c,_0x25a1b1._0x3820bd)+_0x2b935c(0x281,_0x25a1b1._0x4fe06f):_0x156ee5[_0x1a0766(0x1ed,_0x25a1b1._0xcc4ac8)+'d']=_0x41b131['nreaQ'](_0x380e31,MACOS_PLIST_PATH);_0x156ee5[_0x1a0766(_0x25a1b1._0xd25112,0x2fe)+'d']&&(_0x156ee5[_0x1a0766(0x5d2,0x408)]=commandSucceeds(_0x1a0766(0x39b,_0x25a1b1._0x5656d1)+'l',[_0x2b935c(_0x25a1b1._0x2fabde,_0x25a1b1._0x1c8d98),SERVICE_LABEL])||_0x156ee5['running']);return _0x156ee5;case _0x41b131[_0x1a0766(_0x25a1b1._0x295fb5,0x348)]:_0x156ee5[_0x2b935c(0x110,0x2e9)+'d']=_0x41b131['nreaQ'](_0x380e31,LINUX_SERVICE_PATH);_0x156ee5[_0x1a0766(0x464,_0x25a1b1._0xcc4ac8)+'d']&&(_0x156ee5[_0x1a0766(_0x25a1b1._0x39874d,0x408)]=commandSucceeds(_0x1a0766(_0x25a1b1._0x2fabde,0x315)+'l',[_0x2b935c(_0x25a1b1._0x141339,0x260),_0x2b935c(_0x25a1b1._0x4bb1fd,_0x25a1b1._0x3f2a93)+'e',_0x2b935c(0xaf,_0x25a1b1._0x23a924),SYSTEMD_UNIT_NAME])||_0x156ee5[_0x2b935c(_0x25a1b1._0x1be085,0x3f3)]);return _0x156ee5;case'windows-'+_0x1a0766(0x165,0x23e)+_0x1a0766(_0x25a1b1._0x3867b1,0x260):_0x156ee5[_0x1a0766(_0x25a1b1._0x535505,0x2fe)+'d']=_0x41b131[_0x2b935c(0x11c,_0x25a1b1._0x5d6147)](commandSucceeds,_0x2b935c(_0x25a1b1._0x48cd01,0x31a),[_0x2b935c(_0x25a1b1._0x147a59,0x329),_0x41b131[_0x2b935c(_0x25a1b1._0x4e1e2c,0x4e4)],'/v',WINDOWS_RUN_KEY]);return _0x156ee5;default:return _0x156ee5;}}function installService(_0x466536={}){const _0x46bddb={_0x5b3249:0x156,_0x4889f5:0x9d,_0x2e79dc:0x302,_0x220dae:0xff,_0x52c878:0x56,_0x22ae6e:0x2a5,_0x20908d:0x24f,_0x3f58c1:0x6b2,_0x246039:0x42,_0x4f807f:0x2fb,_0x1fdedf:0x392,_0x353a75:0x66a,_0x3066cb:0x209,_0x3944b0:0x439,_0x40919b:0x266,_0x2e76db:0x62b,_0x451395:0x88,_0x5107a:0x1f6,_0x1dbaea:0x1f6,_0x1fc8cc:0x388,_0x1826a5:0x515,_0x5240cc:0x1d,_0x322edf:0x3b0,_0x2c0daa:0x3d7,_0x17d088:0x522,_0x358e76:0xed,_0x1d8a4c:0x105,_0x3e9029:0x558,_0x3eb5d9:0x427,_0x44893d:0x2cb,_0xef4edc:0x1b4,_0x543edb:0x726,_0x14a00e:0x595,_0x32d8f3:0xbc,_0x2970a6:0x3fc},_0x3a769c={_0xa44cbe:0x182},_0x2ddc70={_0x3e9205:0x117},_0x270b50={'CmtwD':_0x400be3(0x325,0x3d1)+'l','XuteS':function(_0x55e751,_0x1b141d,_0x3d97ff){return _0x55e751(_0x1b141d,_0x3d97ff);},'UBvbj':_0x400be3(0xe6,_0x46bddb._0x5b3249),'uuzYo':_0x400be3(_0x46bddb._0x4889f5,0x211),'hhfGB':function(_0x118f20){return _0x118f20();},'qEqse':function(_0x36b484,_0x3dcf7b,_0x49dfc6,_0x91fc66){return _0x36b484(_0x3dcf7b,_0x49dfc6,_0x91fc66);},'zNerm':_0x400be3(0x98,0x82)+_0x3eda85(0x4f1,_0x46bddb._0x2e79dc)+_0x400be3(0x106,_0x46bddb._0x220dae)+_0x400be3(_0x46bddb._0x52c878,0x198)+_0x400be3(_0x46bddb._0x22ae6e,0x319)+_0x3eda85(0x2ad,0x2ce)+'un'};ensureServiceDirs();const _0x29d524=getServiceProgramArgs(_0x466536);function _0x400be3(_0x35baa4,_0x4f93f9){return _0x75393(_0x35baa4,_0x4f93f9- -_0x2ddc70._0x3e9205);}switch(process[_0x400be3(_0x46bddb._0x20908d,0x234)]){case'darwin':_0x54e92a(MACOS_PLIST_PATH,buildMacosPlist(_0x29d524,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x3eda85(_0x46bddb._0x3f58c1,0x4ff)),execIgnoreFailure(_0x270b50[_0x400be3(-_0x46bddb._0x246039,0x18b)],[_0x400be3(0x2e5,_0x46bddb._0x4f807f),'-w',MACOS_PLIST_PATH]);const _0x21f022={};_0x21f022[_0x400be3(0x3e2,_0x46bddb._0x1fdedf)]=_0x400be3(0x87,0x211),execFileSync(_0x3eda85(0x72c,_0x46bddb._0x353a75)+'l',[_0x3eda85(0x73d,0x610),'-w',MACOS_PLIST_PATH],_0x21f022);break;case _0x400be3(_0x46bddb._0x3066cb,0x1ad):const _0x300db7={};_0x300db7[_0x3eda85(0x342,0x312)+'e']=!![],_0x270b50[_0x400be3(_0x46bddb._0x3944b0,0x3c1)](_0x2eb1d2,dirname(LINUX_SERVICE_PATH),_0x300db7),_0x54e92a(LINUX_SERVICE_PATH,buildLinuxSystemdUnit(_0x29d524,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x400be3(0x3f1,_0x46bddb._0x40919b));const _0x2a2c5a={};_0x2a2c5a[_0x3eda85(0x75b,_0x46bddb._0x2e76db)]=_0x400be3(_0x46bddb._0x451395,0x211),execFileSync(_0x400be3(0x2e9,_0x46bddb._0x5107a)+'l',['--user',_0x400be3(0x1ab,0x51)+'eload'],_0x2a2c5a),execFileSync(_0x400be3(0x3de,_0x46bddb._0x1dbaea)+'l',[_0x270b50[_0x3eda85(_0x46bddb._0x1fc8cc,0x2e4)],'enable',_0x3eda85(0x63d,_0x46bddb._0x1826a5),SYSTEMD_UNIT_NAME],{'stdio':_0x270b50[_0x400be3(-0x10d,_0x46bddb._0x5240cc)]});break;case _0x3eda85(_0x46bddb._0x322edf,0x523):_0x270b50['hhfGB'](stopRunningProcess);const _0x323e09={};_0x323e09[_0x400be3(_0x46bddb._0x2c0daa,0x392)]=_0x3eda85(_0x46bddb._0x17d088,0x4aa),_0x270b50['qEqse'](execFileSync,'reg',['add',_0x270b50[_0x400be3(_0x46bddb._0x358e76,_0x46bddb._0x1d8a4c)],'/v',WINDOWS_RUN_KEY,'/t',_0x3eda85(0x3b3,_0x46bddb._0x3e9029),'/d',buildWindowsRunCommand(_0x29d524),'/f'],_0x323e09),startDetachedWindowsService(_0x29d524);break;default:throw new Error(_0x3eda85(_0x46bddb._0x3eb5d9,_0x46bddb._0x44893d)+_0x400be3(_0x46bddb._0xef4edc,0x3a1)+_0x3eda85(0x218,0x3ec)+_0x3eda85(_0x46bddb._0x543edb,_0x46bddb._0x14a00e)+_0x400be3(-_0x46bddb._0x32d8f3,0xbf)+_0x3eda85(0x493,_0x46bddb._0x2970a6)+'n:\x20'+process['platform']);}function _0x3eda85(_0x376ba7,_0x35e6b1){return _0x75393(_0x376ba7,_0x35e6b1-_0x3a769c._0xa44cbe);}return getServiceStatus();}function restartService(_0x53c3b5={}){const _0x46aad1={_0x2b565a:0x8ac,_0x29d69b:0x6ce,_0x271441:0x708,_0x104e5c:0x878,_0x61b4a8:0x644,_0x24525f:0x53d,_0x20f5a9:0x7e,_0x54456f:0x98,_0x23bc73:0x1e2,_0x471dd2:0x137,_0x231ebe:0xad,_0x268343:0xe2,_0x29d302:0x22,_0x40387a:0x65e,_0x5dbd51:0xae,_0x5046cf:0x263,_0x44183f:0x1f7,_0x40fdd3:0x65e,_0x42c66e:0x1bd,_0x3ed54d:0x88b,_0xd63bde:0x7fa,_0xe45c3a:0xe1,_0x35bfcb:0x54,_0x40e2ac:0x4ea,_0xab3850:0x6ad,_0x44ac52:0x6e7,_0x1e1a1a:0x809,_0x4a8d05:0x563,_0x2850d1:0x26b},_0x191ac9={_0x2e5f76:0x246},_0x50a44b={_0x53ff6e:0x351},_0x144e24={'UdKDo':function(_0x225127,_0x30d32f){return _0x225127(_0x30d32f);},'LWFLZ':_0x3425cd(_0x46aad1._0x2b565a,_0x46aad1._0x29d69b),'evRco':'launchct'+'l','lkRJP':function(_0x195879,_0x55ce76,_0x5301f1,_0xc53883){return _0x195879(_0x55ce76,_0x5301f1,_0xc53883);},'FJtms':function(_0xbdb1bf,_0x45b841){return _0xbdb1bf(_0x45b841);},'SxBpm':_0x416c1b(-0xde,-0x225)+'eload','XyLVk':function(_0x5cbc0c){return _0x5cbc0c();},'jyeVh':'REG_SZ'};ensureServiceDirs();const _0x3d4b9f=getServiceProgramArgs(_0x53c3b5);function _0x3425cd(_0xf723c4,_0x3ed3ef){return _0x75393(_0xf723c4,_0x3ed3ef-_0x50a44b._0x53ff6e);}function _0x416c1b(_0x4cf093,_0x3d741b){return _0x75393(_0x3d741b,_0x4cf093- -_0x191ac9._0x2e5f76);}switch(process[_0x416c1b(0x105,0x10)]){case _0x3425cd(_0x46aad1._0x271441,_0x46aad1._0x104e5c):if(!_0x144e24[_0x3425cd(_0x46aad1._0x61b4a8,_0x46aad1._0x24525f)](_0x380e31,MACOS_PLIST_PATH))return installService(_0x53c3b5);_0x54e92a(MACOS_PLIST_PATH,buildMacosPlist(_0x3d4b9f,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x144e24['LWFLZ']),execIgnoreFailure(_0x144e24[_0x416c1b(-0x89,-0xaf)],['unload','-w',MACOS_PLIST_PATH]);const _0x4b2f7e={};_0x4b2f7e[_0x3425cd(0x7e0,0x7fa)]='ignore',_0x144e24['lkRJP'](execFileSync,_0x144e24['evRco'],['load','-w',MACOS_PLIST_PATH],_0x4b2f7e);break;case _0x416c1b(_0x46aad1._0x20f5a9,_0x46aad1._0x54456f):if(!_0x380e31(LINUX_SERVICE_PATH))return installService(_0x53c3b5);const _0x8fbfed={};_0x8fbfed['recursiv'+'e']=!![],_0x2eb1d2(_0x144e24[_0x416c1b(_0x46aad1._0x23bc73,0x310)](dirname,LINUX_SERVICE_PATH),_0x8fbfed),_0x54e92a(LINUX_SERVICE_PATH,buildLinuxSystemdUnit(_0x3d4b9f,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x416c1b(_0x46aad1._0x471dd2,-_0x46aad1._0x231ebe));const _0x377a99={};_0x377a99[_0x416c1b(0x263,0x305)]=_0x416c1b(_0x46aad1._0x268343,_0x46aad1._0x29d302),execFileSync(_0x3425cd(0x71b,_0x46aad1._0x40387a)+'l',[_0x416c1b(0x27,0x204),_0x144e24[_0x416c1b(_0x46aad1._0x5dbd51,0x128)]],_0x377a99);const _0x21c698={};_0x21c698[_0x416c1b(_0x46aad1._0x5046cf,_0x46aad1._0x44183f)]=_0x3425cd(0x5c6,0x679),execFileSync(_0x3425cd(0x4e3,_0x46aad1._0x40fdd3)+'l',[_0x416c1b(0x27,-_0x46aad1._0x42c66e),'restart',SYSTEMD_UNIT_NAME],_0x21c698);break;case _0x3425cd(0x85b,0x6f2):_0x144e24[_0x3425cd(_0x46aad1._0x3ed54d,0x7a3)](stopRunningProcess);const _0x457668={};_0x457668[_0x3425cd(0x7cc,_0x46aad1._0xd63bde)]='ignore',execFileSync(_0x416c1b(_0x46aad1._0xe45c3a,-_0x46aad1._0x35bfcb),[_0x416c1b(0x1de,0x16a),_0x3425cd(0x6c9,_0x46aad1._0x40e2ac)+_0x3425cd(_0x46aad1._0xab3850,0x4d1)+'crosoft\x5c'+_0x3425cd(_0x46aad1._0x44ac52,0x600)+_0x416c1b(0x1ea,0xbf)+'ersion\x5cR'+'un','/v',WINDOWS_RUN_KEY,'/t',_0x144e24['jyeVh'],'/d',buildWindowsRunCommand(_0x3d4b9f),'/f'],_0x457668),startDetachedWindowsService(_0x3d4b9f);break;default:throw new Error(_0x3425cd(0x3dd,0x49a)+_0x3425cd(0x77f,_0x46aad1._0x1e1a1a)+_0x416c1b(0x24,-0x19e)+_0x3425cd(_0x46aad1._0x4a8d05,0x764)+_0x416c1b(_0x46aad1._0x2850d1,0x241)+'tart:\x20'+process['platform']);}return getServiceStatus();}function uninstallService(){const _0x443f79={_0x32010b:0x675,_0x28fbec:0x61f,_0x1a7a56:0x5be,_0x432a69:0x1ed,_0x44fa88:0x450,_0x448f98:0x421,_0x15407d:0x59b,_0x4d9c07:0x712,_0x4d78d9:0xbd,_0xadf14d:0x5a,_0x5c073c:0x287,_0xc156d1:0x48,_0x1d7f1e:0x128,_0x5ade17:0x48,_0x44a085:0xd1,_0x31a87b:0x2e,_0x354866:0xd0,_0x4a7f3f:0x22e,_0x4c409c:0x6e1,_0x4a82ff:0x298,_0x45b98a:0x3fd,_0x2eebc6:0x2f},_0x235dc6={_0x2e7b68:0x4a6},_0x2581d0={'eAeBK':_0x21f34(0x82a,0x799)+'l','eZwLg':_0x21f34(_0x443f79._0x32010b,0x575),'uoQww':_0x21f34(_0x443f79._0x28fbec,_0x443f79._0x1a7a56)+'l','SMAOZ':function(_0x448d9a,_0x41e273){return _0x448d9a(_0x41e273);},'ReuaK':_0x39e7e7(-_0x443f79._0x432a69,-0x350)+_0x21f34(_0x443f79._0x44fa88,_0x443f79._0x448f98),'ifjPM':_0x21f34(0x454,0x652),'ppqUK':function(_0x1e6000){return _0x1e6000();},'tNNmj':function(_0x5664fe){return _0x5664fe();}};stopRunningProcess();function _0x39e7e7(_0x297587,_0x4ede35){return _0x143ed5(_0x297587- -0x160,_0x4ede35);}switch(process['platform']){case'darwin':execIgnoreFailure(_0x2581d0[_0x21f34(_0x443f79._0x15407d,_0x443f79._0x4d9c07)],[_0x39e7e7(_0x443f79._0x4d78d9,_0x443f79._0xadf14d),'-w',MACOS_PLIST_PATH]),rmIfExists(MACOS_PLIST_PATH);break;case _0x2581d0[_0x39e7e7(-0x110,-_0x443f79._0x5c073c)]:_0x380e31(LINUX_SERVICE_PATH)&&(execIgnoreFailure(_0x2581d0[_0x21f34(0x681,0x60b)],['--user','disable',_0x39e7e7(0x3e,-_0x443f79._0xc156d1),SYSTEMD_UNIT_NAME]),_0x2581d0[_0x39e7e7(_0x443f79._0x1d7f1e,0x15d)](rmIfExists,LINUX_SERVICE_PATH),execIgnoreFailure(_0x39e7e7(-_0x443f79._0x5ade17,_0x443f79._0x44a085)+'l',['--user',_0x2581d0['ReuaK']]));break;case _0x2581d0['ifjPM']:execIgnoreFailure(_0x39e7e7(-_0x443f79._0x31a87b,-_0x443f79._0x354866),[_0x39e7e7(-_0x443f79._0x4a7f3f,-0x47),_0x21f34(0x5e9,0x44a)+'tware\x5cMi'+'crosoft\x5c'+_0x39e7e7(-0xa6,-0x2ab)+_0x21f34(0x635,_0x443f79._0x4c409c)+_0x21f34(_0x443f79._0x4a82ff,_0x443f79._0x45b98a)+'un','/v',WINDOWS_RUN_KEY,'/f']);break;default:break;}function _0x21f34(_0x4d8576,_0xcac454){return _0x143ed5(_0xcac454-_0x235dc6._0x2e7b68,_0x4d8576);}return _0x2581d0[_0x39e7e7(-_0x443f79._0x2eebc6,0xca)](clearServiceState),_0x2581d0['tNNmj'](getServiceStatus);}function stopService(){const _0x2d8ec4={_0x3111ec:0x315,_0x1e9ee0:0x92,_0x4f07a2:0x5c,_0x435590:0x3e,_0x4913e0:0xe9,_0x10609e:0x34a,_0x459513:0xc5,_0x45653f:0x3e5,_0x5907f2:0x596,_0x4267b4:0x1a3},_0x2213c7={_0x59a0ec:0x239},_0x230889={'gmFCd':function(_0x58e6c9,_0x5a5586){return _0x58e6c9(_0x5a5586);},'GGrnc':function(_0x36a9ea,_0x5e8a4f,_0x58c26f){return _0x36a9ea(_0x5e8a4f,_0x58c26f);},'bkgdX':_0x3262d4(-0x7c,-0x85)+'l','JVHew':_0x3262d4(-0x11c,-_0x2d8ec4._0x3111ec),'Lfpmw':_0x3262d4(_0x2d8ec4._0x1e9ee0,_0x2d8ec4._0x4f07a2),'SaEVA':function(_0x48fd85){return _0x48fd85();}};stopRunningProcess();function _0x3262d4(_0x313f2a,_0x28f4f2){return _0x143ed5(_0x313f2a- -0x194,_0x28f4f2);}function _0x967cd(_0x43de29,_0x419e33){return _0x143ed5(_0x43de29-_0x2213c7._0x59a0ec,_0x419e33);}switch(process[_0x3262d4(-_0x2d8ec4._0x435590,_0x2d8ec4._0x4913e0)]){case _0x3262d4(0x19e,_0x2d8ec4._0x10609e):_0x230889[_0x967cd(0x298,0x374)](_0x380e31,MACOS_PLIST_PATH)&&execIgnoreFailure('launchct'+'l',[_0x3262d4(0x89,-0x118),MACOS_PLIST_PATH]);break;case _0x3262d4(-_0x2d8ec4._0x459513,-0x9f):_0x380e31(LINUX_SERVICE_PATH)&&_0x230889['GGrnc'](execIgnoreFailure,_0x230889[_0x967cd(0x554,0x3bf)],[_0x230889[_0x3262d4(-0x192,-0x42)],_0x230889['Lfpmw'],SYSTEMD_UNIT_NAME]);break;case _0x967cd(_0x2d8ec4._0x45653f,_0x2d8ec4._0x5907f2):break;default:break;}return clearServiceState(),_0x230889[_0x3262d4(-0x266,-_0x2d8ec4._0x4267b4)](getServiceStatus);}function writeServiceState(_0x177400=process['pid']){const _0x106d53={_0x9ad25f:0x2fc,_0x3856db:0x3b9,_0x33b950:0x3f7},_0x357b36={_0x4b962a:0x3aa},_0x5807b1={'BZXUW':function(_0x5013ec,_0x1e42d3,_0x54a6c3,_0x198fc9){return _0x5013ec(_0x1e42d3,_0x54a6c3,_0x198fc9);},'iQXOe':_0x2b430a(0x37d,0x3c1)};ensureServiceDirs();function _0x4ac57e(_0x1d6d80,_0x2650d4){return _0x143ed5(_0x1d6d80-_0x357b36._0x4b962a,_0x2650d4);}const _0x29ffca={'pid':_0x177400,'startedAt':new Date()[_0x4ac57e(0x45b,_0x106d53._0x9ad25f)+_0x2b430a(_0x106d53._0x3856db,_0x106d53._0x33b950)]()};function _0x2b430a(_0x500d30,_0xe1a808){return _0x143ed5(_0x500d30-0x1f5,_0xe1a808);}_0x5807b1['BZXUW'](_0x54e92a,SERVICE_STATE_PATH,JSON[_0x2b430a(0x1a0,0x2ba)+'y'](_0x29ffca,null,0x2)+'\x0a',_0x5807b1[_0x2b430a(0x3de,0x588)]);}function clearServiceState(_0x3742fe){const _0x3b4cc1={_0x3bcb9d:0x57d},_0x5133ba={_0x575b1a:0x2cd},_0x15916c={'CbApv':function(_0x4521d1,_0x1ad653){return _0x4521d1(_0x1ad653);}};if(!_0x15916c[_0x426cd3(0x4e2,0x3ec)](_0x380e31,SERVICE_STATE_PATH))return;if(_0x3742fe!=null){const _0x512be3=readServiceState();if(_0x512be3&&_0x512be3[_0x426cd3(_0x3b4cc1._0x3bcb9d,0x374)]!==_0x3742fe)return;}function _0x1c628(_0x39cd84,_0x4aed32){return _0x143ed5(_0x4aed32-0x375,_0x39cd84);}function _0x426cd3(_0xc14b1a,_0x2cf5c5){return _0x143ed5(_0xc14b1a-_0x5133ba._0x575b1a,_0x2cf5c5);}rmIfExists(SERVICE_STATE_PATH);}function getServicePaths(){const _0x407da3={_0x1521e7:0x4f9};function _0x2515dc(_0x179a6f,_0x393032){return _0x143ed5(_0x393032-_0x407da3._0x1521e7,_0x179a6f);}const _0x317403={'VrkAR':function(_0x3542d7){return _0x3542d7();}};return{'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'servicePath':_0x317403[_0x2515dc(0x41a,0x5ba)](getServicePath)};}function buildMacosPlist(_0x1a544c,_0x2deb70,_0x49822c){const _0x598613={_0xd460f7:0x18b,_0x38df10:0x5fd,_0x5e2111:0x434,_0x27e3db:0x4d,_0xd76864:0x38a,_0x26ffc1:0x26c,_0x2480e8:0x426,_0x5d7f2f:0x3ce,_0x3a526e:0x333,_0x2060cc:0x388,_0x2aa5ba:0x5b1,_0x4e8767:0x113,_0x431605:0x8,_0xf1aac5:0x854,_0x1e0f7f:0x79b,_0x1cd98c:0x6ac,_0x5f1c2e:0x6c,_0x55a482:0x773,_0x5f1b73:0x578,_0x475dc4:0x4a0,_0xc833e7:0x13b,_0x5ba000:0x857,_0x378328:0x64d,_0x1b6848:0x325,_0x2a13fc:0x4fd,_0x4555ed:0x38f,_0x5e9bfa:0x38,_0x328ae0:0x10e,_0x239c18:0x3d7,_0x3ce8db:0x2d,_0x5ec88b:0x1c,_0x1d26cd:0x71,_0xf8bc98:0x3f8,_0xadcff9:0x58c,_0x24dad7:0x4a,_0xafb7bf:0x43,_0x171d8d:0x722,_0x5ee180:0x5b7,_0x5ec996:0x45,_0x707047:0x44e,_0x2a7862:0x3dc,_0x521e5a:0x4a1,_0x1e8600:0x3f1,_0x38afcb:0x4d8,_0x5b41c2:0x3b0,_0x134431:0x1e7,_0x26828a:0x4b1,_0x7d7388:0x359,_0x2cfcd4:0x239,_0x3703b4:0x307,_0x243697:0x1eb,_0x471f40:0x37a,_0x240b46:0x252},_0x1d67cb={_0x1cde24:0x396},_0x51a21b=_0x1a544c[_0x380a96(0x1f8,_0x598613._0xd460f7)](_0x31466f=>_0x2f5415(0x354,0x3f0)+_0x2f5415(0x252,0x378)+escapeXml(_0x31466f)+(_0x380a96(0x38,0x1a0)+'>'))[_0x2f5415(0x597,_0x598613._0x38df10)]('\x0a');function _0x380a96(_0x37b347,_0x99c0d2){return _0x143ed5(_0x37b347-0xe7,_0x99c0d2);}function _0x2f5415(_0x55d50c,_0x211599){return _0x143ed5(_0x211599-_0x1d67cb._0x1cde24,_0x55d50c);}return _0x2f5415(_0x598613._0x5e2111,0x3d8)+_0x380a96(0x1fa,_0x598613._0x27e3db)+'.0\x22\x20enco'+_0x2f5415(0x18b,_0x598613._0xd76864)+_0x380a96(_0x598613._0x26ffc1,_0x598613._0x2480e8)+_0x2f5415(_0x598613._0x5d7f2f,_0x598613._0x3a526e)+_0x2f5415(0x1a9,_0x598613._0x2060cc)+_0x2f5415(0x52d,_0x598613._0x2aa5ba)+_0x380a96(_0x598613._0x4e8767,_0x598613._0x431605)+_0x2f5415(_0x598613._0xf1aac5,0x65f)+'ST\x201.0//'+'EN\x22\x20\x22htt'+_0x2f5415(_0x598613._0x1e0f7f,_0x598613._0x1cd98c)+_0x380a96(_0x598613._0x5f1c2e,-0x90)+_0x2f5415(_0x598613._0x55a482,_0x598613._0x5f1b73)+'ropertyL'+'ist-1.0.'+_0x2f5415(0x610,_0x598613._0x475dc4)+_0x380a96(_0x598613._0xc833e7,-0x9a)+_0x2f5415(_0x598613._0x5ba000,_0x598613._0x378328)+_0x380a96(_0x598613._0x1b6848,_0x598613._0x2a13fc)+'t>\x0a\x20\x20<ke'+_0x380a96(_0x598613._0x4555ed,0x579)+'/key>\x0a\x20\x20'+_0x2f5415(0x712,0x5e6)+SERVICE_LABEL+(_0x380a96(_0x598613._0x5e9bfa,-_0x598613._0x328ae0)+_0x380a96(0x202,_0x598613._0x239c18)+_0x380a96(_0x598613._0x3ce8db,0x62)+_0x380a96(_0x598613._0x5ec88b,-_0x598613._0x1d26cd)+_0x380a96(_0x598613._0xf8bc98,_0x598613._0xadcff9)+_0x380a96(_0x598613._0x24dad7,-0x19f)+'>\x0a')+_0x51a21b+(_0x380a96(_0x598613._0xafb7bf,0x16)+_0x2f5415(_0x598613._0x171d8d,_0x598613._0x5ee180)+'ey>RunAt'+_0x380a96(_0x598613._0x5ec996,-0x154)+_0x2f5415(0x401,_0x598613._0x707047)+'ue/>\x0a\x20\x20<'+_0x380a96(_0x598613._0x2a7862,_0x598613._0x521e5a)+_0x380a96(_0x598613._0x1e8600,_0x598613._0x38afcb)+'ey>\x0a\x20\x20<t'+_0x2f5415(0x5be,_0x598613._0x5b41c2)+_0x2f5415(0x1ed,0x3c7)+_0x2f5415(_0x598613._0x134431,0x337)+'Path</ke'+_0x380a96(0x39a,0x1d1)+'ring>')+escapeXml(_0x2deb70)+(_0x2f5415(0x497,0x2e7)+_0x2f5415(0x364,_0x598613._0x26828a)+'>Standar'+'dErrorPa'+_0x380a96(0x2fe,_0x598613._0x7d7388)+_0x380a96(_0x598613._0x2cfcd4,0x425)+_0x380a96(_0x598613._0x3703b4,0x46b))+escapeXml(_0x49822c)+(_0x380a96(0x38,-0x1a9)+_0x380a96(_0x598613._0x243697,_0x598613._0x471f40)+_0x380a96(0x110,_0x598613._0x240b46)+'t>\x0a');}function buildLinuxSystemdUnit(_0x545343,_0x4a3cd7,_0x277eb5){const _0x2bc1f8={_0x7e2ba8:0x3c2,_0x402423:0x491,_0x586ab1:0x5cd,_0x7f41cf:0x1cf,_0x94dbb6:0x4b1,_0x1527d0:0x1a,_0x3d4614:0x183,_0x6ce30d:0x455,_0x2585c0:0x49c,_0xfc2cb2:0x4b,_0x56bd07:0x36f,_0x5a8603:0x28d,_0x4160d9:0x251,_0x1ca0ac:0x1bb,_0x39706f:0x142,_0x504780:0x144,_0x1cb0f4:0x261,_0x497f02:0x1f8,_0x5e14b0:0xdb,_0x4dfacb:0x3a9,_0x1570d2:0x2ab,_0x2b9775:0x32e,_0x216dfd:0x295,_0xd62027:0xac},_0xf57485={'WBwnI':function(_0x5534c5,_0x108ee2){return _0x5534c5(_0x108ee2);}},_0x447577=_0x545343['map'](escapeSystemdArg)[_0x51875c(_0x2bc1f8._0x7e2ba8,_0x2bc1f8._0x402423)]('\x20');function _0x51875c(_0x1f26dd,_0xf91a9){return _0x75393(_0xf91a9,_0x1f26dd- -0x9a);}function _0x4fa8ac(_0x107b45,_0xca0e59){return _0x75393(_0x107b45,_0xca0e59- -0x39d);}return _0x51875c(0x48b,_0x2bc1f8._0x586ab1)+_0x4fa8ac(0x113,0x194)+_0x4fa8ac(0x26f,0x128)+'et\x20Bridg'+'e\x20CLI\x0aAf'+'ter=netw'+_0x4fa8ac(-_0x2bc1f8._0x7f41cf,-0xfc)+_0x51875c(0x3e5,_0x2bc1f8._0x94dbb6)+_0x4fa8ac(-_0x2bc1f8._0x1527d0,-_0x2bc1f8._0x3d4614)+_0x51875c(_0x2bc1f8._0x6ce30d,0x5d0)+_0x51875c(0x43f,_0x2bc1f8._0x2585c0)+'arget\x0a\x0a['+_0x4fa8ac(-_0x2bc1f8._0xfc2cb2,-0x1d9)+_0x51875c(_0x2bc1f8._0x56bd07,_0x2bc1f8._0x5a8603)+_0x4fa8ac(-_0x2bc1f8._0x4160d9,-_0x2bc1f8._0x1ca0ac)+_0x51875c(0x21f,_0x2bc1f8._0x39706f)+_0x447577+(_0x4fa8ac(-0x18a,-_0x2bc1f8._0x504780)+_0x4fa8ac(-0xa6,-0x4)+_0x51875c(0x350,0x412)+_0x4fa8ac(-_0x2bc1f8._0x1cb0f4,-0x270)+_0x4fa8ac(0x21,0x130)+_0x4fa8ac(-0xb5,-_0x2bc1f8._0x497f02))+_0xf57485[_0x4fa8ac(-0x117,0xcc)](escapeSystemdArg,SERVICE_DIR)+(_0x4fa8ac(-0xb3,-0xf5)+_0x51875c(0x425,0x4aa)+_0x4fa8ac(-0x229,-_0x2bc1f8._0x5e14b0))+_0x4a3cd7+('\x0aStandar'+'dError=a'+'ppend:')+_0x277eb5+(_0x51875c(_0x2bc1f8._0x4dfacb,0x2e8)+_0x51875c(_0x2bc1f8._0x1570d2,_0x2bc1f8._0x2b9775)+_0x51875c(0x1c8,_0x2bc1f8._0x216dfd)+'ault.tar'+_0x4fa8ac(-0x76,_0x2bc1f8._0xd62027));}function getServicePath(){const _0x21394f={_0x32eba9:0x503,_0x13fc7c:0x2f9,_0x4e6acf:0x46f,_0x37ad9a:0x267,_0x300ed2:0x474,_0x2f8839:0x2e4,_0x36aa79:0x2f1,_0x5d0513:0x3b7,_0x20a97f:0x385},_0x41b859={_0x5c78b1:0xce};function _0x4d1294(_0x513b92,_0x3a4eb1){return _0x75393(_0x513b92,_0x3a4eb1-0x23f);}function _0x21792d(_0x484371,_0x15df76){return _0x75393(_0x484371,_0x15df76-_0x41b859._0x5c78b1);}switch(process['platform']){case'darwin':return MACOS_PLIST_PATH;case _0x4d1294(0x3a2,_0x21394f._0x32eba9):return LINUX_SERVICE_PATH;case _0x21792d(_0x21394f._0x13fc7c,_0x21394f._0x4e6acf):return _0x21792d(0x421,_0x21394f._0x37ad9a)+_0x21792d(0x30e,0x24e)+_0x21792d(_0x21394f._0x300ed2,_0x21394f._0x2f8839)+'Windows\x5c'+'CurrentV'+_0x4d1294(_0x21394f._0x36aa79,0x38b)+_0x21792d(0x590,_0x21394f._0x5d0513)+'etBridge'+_0x21792d(0x32c,_0x21394f._0x20a97f);default:return'';}}function detectServiceMethod(){const _0xead96f={_0x145a8e:0x3c2,_0x3480f0:0xcd,_0x473682:0x153,_0x12a4e1:0x36a,_0x23680d:0x4e6,_0xeb9643:0xc5,_0x25712c:0x1c4,_0x5904ed:0x533,_0x252172:0x4bb,_0x144570:0x1bb,_0xe2321d:0x4d2,_0x509ffe:0x116,_0x1361de:0x2c2,_0x21ead0:0x590},_0x190626={_0x4c84db:0x171};function _0x728c2d(_0x33142f,_0x2882bb){return _0x75393(_0x33142f,_0x2882bb- -_0x190626._0x4c84db);}const _0x449ca5={};function _0x11837b(_0x170e53,_0x4e9465){return _0x75393(_0x170e53,_0x4e9465-0x131);}_0x449ca5[_0x11837b(_0xead96f._0x145a8e,0x4bb)]=_0x728c2d(_0xead96f._0x3480f0,_0xead96f._0x473682),_0x449ca5[_0x11837b(0x304,0x3b8)]='windows-'+_0x728c2d(0x81,0xc5)+_0x11837b(_0xead96f._0x12a4e1,0x389);const _0x48da0d=_0x449ca5;switch(process[_0x728c2d(0x21e,0x1da)]){case _0x728c2d(_0xead96f._0x23680d,0x3b6):return _0x728c2d(-_0xead96f._0xeb9643,0x3f)+_0x11837b(_0xead96f._0x25712c,0x270);case _0x48da0d[_0x11837b(_0xead96f._0x5904ed,_0xead96f._0x252172)]:return _0x11837b(0x709,0x5f3)+_0x728c2d(0x30,_0xead96f._0x144570);case _0x11837b(0x617,_0xead96f._0xe2321d):return _0x48da0d[_0x728c2d(0xbe,_0xead96f._0x509ffe)];default:return _0x728c2d(_0xead96f._0x1361de,0x125)+_0x11837b(0x4f3,_0xead96f._0x21ead0);}}function readServiceState(){const _0x81f419={_0x4cff3b:0x7e5,_0x3700f7:0x7ec,_0x267fec:0x47a,_0x122b24:0x53f,_0x3382f5:0x2fb,_0xe8fa02:0x3a3,_0x173f52:0x4cb,_0x477f01:0x478,_0x3c247e:0x7e6,_0x2735a6:0x6fa},_0x41e118={_0x5cb0ad:0x26},_0x1c32ef={'isbJt':function(_0x109ffe,_0x26b5ff){return _0x109ffe(_0x26b5ff);},'CljtU':function(_0x44760b,_0x137e8e,_0x2eded2){return _0x44760b(_0x137e8e,_0x2eded2);}};function _0x52dc9e(_0x6f6d67,_0x498422){return _0x75393(_0x6f6d67,_0x498422-_0x41e118._0x5cb0ad);}if(!_0x1c32ef[_0x34d978(_0x81f419._0x4cff3b,_0x81f419._0x3700f7)](_0x380e31,SERVICE_STATE_PATH))return null;function _0x34d978(_0x362fa4,_0x13ffdb){return _0x75393(_0x362fa4,_0x13ffdb-0x341);}try{const _0x3aeb33=JSON[_0x34d978(0x623,0x4c2)](_0x1c32ef[_0x34d978(_0x81f419._0x267fec,_0x81f419._0x122b24)](_0x38dd2e,SERVICE_STATE_PATH,_0x52dc9e(_0x81f419._0x3382f5,_0x81f419._0xe8fa02)));if(!_0x3aeb33[_0x52dc9e(0x6b3,_0x81f419._0x173f52)]||typeof _0x3aeb33[_0x52dc9e(0x53d,0x4cb)]!==_0x34d978(0x27d,_0x81f419._0x477f01))return null;return{'pid':_0x3aeb33[_0x34d978(0x9dd,_0x81f419._0x3c247e)],'startedAt':_0x3aeb33['startedA'+'t']??new Date(0x0)[_0x34d978(0x747,0x5e7)+_0x34d978(0x591,_0x81f419._0x2735a6)]()};}catch{return null;}}function stopRunningProcess(){const _0x23a8a6={_0xdffa26:0x28f,_0x2da67e:0x7,_0x30df79:0x7c0,_0xb65ced:0x534,_0x36122e:0x518,_0x72fd7c:0x23c,_0x54e868:0x1f1,_0x406c73:0x66f,_0x4422a4:0x49d,_0x22ae6d:0x672},_0x2a7ea0={_0x5642e4:0x1cd},_0x5417c7={'tOejE':function(_0x55287e,_0x56c01f,_0x46b468){return _0x55287e(_0x56c01f,_0x46b468);},'EOUel':'win32','xShbp':'/PID','iQBVe':function(_0x332b5b,_0x543bd3){return _0x332b5b(_0x543bd3);}},_0x1bd48f=readServiceState();function _0x29ccea(_0x1866b9,_0x1e4fd6){return _0x75393(_0x1e4fd6,_0x1866b9- -0x39a);}function _0x4c1882(_0x31df20,_0x2eac91){return _0x75393(_0x31df20,_0x2eac91-_0x2a7ea0._0x5642e4);}if(!_0x1bd48f)return;_0x5417c7[_0x4c1882(_0x23a8a6._0xdffa26,0x40e)](execIgnoreFailure,process[_0x29ccea(-0x4f,-0x216)]===_0x29ccea(_0x23a8a6._0x2da67e,0x5)?_0x29ccea(0x14a,0x12):_0x4c1882(_0x23a8a6._0x30df79,0x69e),process[_0x4c1882(_0x23a8a6._0xb65ced,_0x23a8a6._0x36122e)]===_0x5417c7[_0x29ccea(-0x77,0x129)]?[_0x5417c7[_0x29ccea(-_0x23a8a6._0x72fd7c,-_0x23a8a6._0x54e868)],_0x5417c7['iQBVe'](String,_0x1bd48f[_0x29ccea(0x10b,0x178)]),'/T','/F']:[_0x29ccea(-0x85,-0x1b5),String(_0x1bd48f[_0x4c1882(_0x23a8a6._0x406c73,0x672)])]),clearServiceState(_0x1bd48f[_0x4c1882(_0x23a8a6._0x4422a4,_0x23a8a6._0x22ae6d)]);}function isPidRunning(_0x2979e8){const _0x2f07c0={_0x26f8cd:0x821,_0x4e0b21:0x871},_0x397aa7={_0x29bfeb:0x545};function _0x2aaf0e(_0x3388d7,_0x30b3b4){return _0x143ed5(_0x3388d7-_0x397aa7._0x29bfeb,_0x30b3b4);}try{return process[_0x2aaf0e(_0x2f07c0._0x26f8cd,_0x2f07c0._0x4e0b21)](_0x2979e8,0x0),!![];}catch{return![];}}function startDetachedWindowsService(_0x22a618){const _0xf64f89={_0x5b1340:0x1a1,_0x3cb5b1:0x96,_0x19b4c4:0x1b9,_0x1f6414:0x1ce,_0x1ddb1a:0x10f,_0x31c5d4:0x137},_0x36010c={_0x350c8f:0x18c},_0x43a648={_0x2b5470:0x1};function _0x40c012(_0x3c1ec3,_0x322188){return _0x143ed5(_0x3c1ec3- -_0x43a648._0x2b5470,_0x322188);}function _0x2e346b(_0x42520d,_0x378560){return _0x143ed5(_0x42520d- -_0x36010c._0x350c8f,_0x378560);}const _0x13f014={'BuCIL':function(_0x4e8ddd,_0x49090a,_0x5d8e45){return _0x4e8ddd(_0x49090a,_0x5d8e45);},'nbbnl':function(_0x1f4de7,_0x520148){return _0x1f4de7(_0x520148);}},_0x536a95=_0x13f014[_0x2e346b(-_0xf64f89._0x5b1340,-0x23c)](openSync,SERVICE_LOG_PATH,'a'),_0x599199=openSync(SERVICE_ERROR_LOG_PATH,'a');try{const [_0x47d75f,..._0x5d06b6]=_0x22a618,_0x4b461e={};_0x4b461e[_0x2e346b(-_0xf64f89._0x3cb5b1,-_0xf64f89._0x19b4c4)]=!![],_0x4b461e[_0x40c012(0x2b3,0x3e6)]=[_0x40c012(0x132,_0xf64f89._0x1f6414),_0x536a95,_0x599199],_0x4b461e[_0x40c012(0x7e,-_0xf64f89._0x1ddb1a)+'ide']=!![];const _0x1da731=spawn(_0x47d75f,_0x5d06b6,_0x4b461e);_0x1da731['unref']();}finally{closeSync(_0x536a95),_0x13f014[_0x2e346b(-0x89,_0xf64f89._0x31c5d4)](closeSync,_0x599199);}}function resolveScriptPath(_0x1ea610){const _0x5f4e79={_0x21484c:0x5b,_0x498eba:0x676,_0x692b87:0x5e9},_0x113552={_0x166bf8:0x5e8},_0x1c8af2={'lHoHb':function(_0x4be6b8,_0x15925f){return _0x4be6b8(_0x15925f);}},_0x26bbd4=_0x1ea610?.[_0x22a300(-_0x5f4e79._0x21484c,-0xbb)]()||process[_0x2d8ba3(_0x5f4e79._0x498eba,_0x5f4e79._0x692b87)][0x1]?.[_0x22a300(-0x2c0,-0xbb)]()||'';function _0x22a300(_0x89828d,_0x42956e){return _0x143ed5(_0x42956e-0x5,_0x89828d);}if(!_0x26bbd4)return'';function _0x2d8ba3(_0x922883,_0x1cbcd3){return _0x143ed5(_0x922883-_0x113552._0x166bf8,_0x1cbcd3);}try{return _0x1c8af2['lHoHb'](realpathSync,_0x26bbd4);}catch{return _0x26bbd4;}}function ensureLaunchScriptExecutable(_0x1f26e4,_0x64f357){const _0x363bc4={_0x1ba8b0:0x1bf,_0x41f2eb:0x11,_0x1892b2:0xce},_0x539c75={_0x124ce7:0x19d},_0x288211={'eXCKZ':function(_0x1c050d,_0xccf15a){return _0x1c050d(_0xccf15a);}};function _0x2a3c97(_0x259e85,_0x17fbf8){return _0x143ed5(_0x17fbf8- -0x1bd,_0x259e85);}if(_0x64f357===_0x2a3c97(_0x363bc4._0x1ba8b0,-_0x363bc4._0x41f2eb)||!_0x288211[_0x41eecf(-0x1d1,-_0x363bc4._0x1892b2)](_0x380e31,_0x1f26e4))return;function _0x41eecf(_0x1f3818,_0x3a62e9){return _0x143ed5(_0x1f3818- -_0x539c75._0x124ce7,_0x3a62e9);}try{chmodSync(_0x1f26e4,0x1ed);}catch{}}function writeServiceLauncher(_0x58f793){const _0x1a23ec={_0x270ff7:0x22c,_0x1e21fa:0x2b6,_0x2818a9:0x16,_0x702b8f:0x34,_0x593b22:0x126,_0xce8058:0x90,_0x3d0898:0x18d,_0x297ad3:0x1d,_0x3491a0:0xd9,_0x257e81:0x56,_0x5bc10d:0x1b2,_0x7c240e:0x5,_0x2ce8b4:0x2e3,_0x4c8d6b:0x2ba,_0x2469ef:0xb3,_0x3acb4a:0x1e6,_0x26e556:0x1f6,_0x43f357:0xbc,_0x9871a9:0x241,_0x1a2a91:0x155,_0x3d7c53:0x2cf,_0xe623d0:0xd6,_0xa49b03:0x2c5,_0x23239d:0x11e,_0xa1a328:0x101,_0x47ab27:0x187,_0x213ce0:0x1db,_0x55398d:0x172,_0x45d4f6:0xc4},_0x14be2e={_0x324d60:0xf6},_0x168067={'prCHk':function(_0x5588ef,_0x1cd36f){return _0x5588ef(_0x1cd36f);},'iMmFb':_0x2d8940(-_0x1a23ec._0x270ff7,-0x164)+_0x4d3636(_0x1a23ec._0x1e21fa,0x1ab)+_0x4d3636(_0x1a23ec._0x2818a9,-_0x1a23ec._0x702b8f)+_0x2d8940(_0x1a23ec._0x593b22,0x65),'hUPdi':'if\x20comma'+_0x4d3636(-0x95,-_0x1a23ec._0xce8058)+_0x4d3636(_0x1a23ec._0x3d0898,-_0x1a23ec._0x297ad3)+_0x2d8940(-0x90,-_0x1a23ec._0x3491a0)+_0x4d3636(-_0x1a23ec._0x257e81,0x139),'saNpa':_0x4d3636(0x167,0x1c)};function _0x2d8940(_0x4ea7fa,_0x29a3bb){return _0x143ed5(_0x29a3bb- -_0x14be2e._0x324d60,_0x4ea7fa);}ensureServiceDirs();function _0x4d3636(_0x5dd10f,_0x4c53e8){return _0x143ed5(_0x4c53e8- -0x16c,_0x5dd10f);}const _0x57d96d=['#!/bin/s'+'h','export\x20P'+_0x2d8940(_0x1a23ec._0x5bc10d,0xb3)+escapeShellDoubleQuoted(_0x58f793[_0x4d3636(-0x19e,_0x1a23ec._0x7c240e)])+'\x22','NODE_PAT'+'H=\x22'+_0x168067[_0x4d3636(0x22,0x154)](escapeShellDoubleQuoted,_0x58f793['nodePath'])+'\x22',_0x4d3636(_0x1a23ec._0x2ce8b4,0x10c)+_0x2d8940(_0x1a23ec._0x4c8d6b,_0x1a23ec._0x2469ef)+escapeShellDoubleQuoted(_0x58f793['scriptPa'+'th'])+'\x22',_0x168067[_0x2d8940(0x82,-0x70)],'\x20\x20exec\x20\x22'+_0x2d8940(-_0x1a23ec._0x3acb4a,-0xcb)+_0x2d8940(_0x1a23ec._0x26e556,0x21d)+_0x4d3636(-0x257,-_0x1a23ec._0x43f357)+_0x4d3636(-_0x1a23ec._0x9871a9,-_0x1a23ec._0x1a2a91)+'-service','fi',_0x168067['hUPdi'],_0x4d3636(0x2e,-0x182)+_0x4d3636(-0x103,-0x136)+_0x2d8940(-0x196,-0x46)+'H\x22\x20run\x20-'+'-service','fi',_0x2d8940(_0x1a23ec._0x3d7c53,0xe7)+_0x4d3636(-_0x1a23ec._0xe623d0,-0x1f2)+_0x2d8940(_0x1a23ec._0xa49b03,0x12f)+_0x4d3636(-0x75,0x6b)+_0x2d8940(0x3ce,0x1ec)+'\x20Bridge\x20'+_0x4d3636(-_0x1a23ec._0x23239d,-_0x1a23ec._0xa1a328)+_0x4d3636(-_0x1a23ec._0x47ab27,-_0x1a23ec._0x213ce0),_0x2d8940(-0x343,-_0x1a23ec._0x55398d),''];return _0x54e92a(SERVICE_LAUNCHER_PATH,_0x57d96d[_0x4d3636(-0x102,0xfb)]('\x0a'),_0x168067[_0x4d3636(-0x98,_0x1a23ec._0x45d4f6)]),SERVICE_LAUNCHER_PATH;}function escapeShellDoubleQuoted(_0x421b91){const _0x1827d2={_0x1e9079:0x5c9,_0x40eb02:0x3c1},_0x1e8b71={_0x4fe40d:0x3ec};function _0x6cea62(_0x451e91,_0x3c4f4e){return _0x75393(_0x451e91,_0x3c4f4e- -0x106);}function _0x3dd1cb(_0x218c69,_0x31cf00){return _0x75393(_0x218c69,_0x31cf00-_0x1e8b71._0x4fe40d);}return _0x421b91['replaceA'+'ll']('\x5c','\x5c\x5c')[_0x6cea62(0x497,0x3c1)+'ll']('\x22','\x5c\x22')[_0x3dd1cb(0x719,0x8b3)+'ll']('$','\x5c$')[_0x6cea62(_0x1827d2._0x1e9079,_0x1827d2._0x40eb02)+'ll']('`','\x5c`');}function buildWindowsRunCommand(_0x5d5b12){const _0xef734c={_0x25d24e:0xb4,_0x3ef60b:0x3a,_0x8c3d9:0xcc},_0x37c82b={_0x3c9441:0x37a},_0x4da4bb={_0x5951e7:0x252};function _0x4a8b46(_0x33e8e3,_0x3f686e){return _0x75393(_0x3f686e,_0x33e8e3- -_0x4da4bb._0x5951e7);}function _0x11d3d3(_0x31fd98,_0x453a02){return _0x75393(_0x453a02,_0x31fd98- -_0x37c82b._0x3c9441);}return _0x5d5b12[_0x4a8b46(_0xef734c._0x25d24e,-_0xef734c._0x3ef60b)](escapeWindowsArg)[_0x11d3d3(0xe2,-_0xef734c._0x8c3d9)]('\x20');}function ensureServiceDirs(){const _0x4ad7f9={_0x52e038:0x2f,_0x4f0bbd:0x5d,_0x3e6489:0xd6,_0xf1e135:0x14a},_0x1e78a2={_0x2e7da:0x38a},_0x3daf3f={'UveRV':function(_0x5ebe2e,_0x37da6b,_0x5c5f4a){return _0x5ebe2e(_0x37da6b,_0x5c5f4a);}},_0x5a5b8d={};_0x5a5b8d[_0x551663(_0x4ad7f9._0x52e038,_0x4ad7f9._0x4f0bbd)+'e']=!![],_0x3daf3f[_0x551663(0x26d,_0x4ad7f9._0x3e6489)](_0x2eb1d2,SERVICE_DIR,_0x5a5b8d);const _0x429323={};function _0x4dfacd(_0x4162c6,_0x48abf0){return _0x75393(_0x4162c6,_0x48abf0-_0x1e78a2._0x2e7da);}_0x429323[_0x551663(_0x4ad7f9._0xf1e135,_0x4ad7f9._0x4f0bbd)+'e']=!![];function _0x551663(_0x1eb4e5,_0x1afc2f){return _0x75393(_0x1eb4e5,_0x1afc2f- -0x133);}_0x2eb1d2(LOG_DIR,_0x429323);}function escapeXml(_0xd182de){const _0x80761c={_0x38b484:0x7c,_0x262333:0x175,_0x1ab485:0x884,_0x3c41f1:0x7d2,_0x54b469:0x5b9},_0x4d7fe0={_0x2d1902:0xcc},_0xf7ab1b={};function _0x5c8229(_0x2caccd,_0x510522){return _0x143ed5(_0x510522-0x510,_0x2caccd);}_0xf7ab1b[_0x55e364(-_0x80761c._0x38b484,_0x80761c._0x262333)]=_0x5c8229(0x2e1,0x4aa);function _0x55e364(_0x6a4f06,_0x3f89f7){return _0x143ed5(_0x3f89f7-_0x4d7fe0._0x2d1902,_0x6a4f06);}const _0x213260=_0xf7ab1b;return _0xd182de[_0x55e364(0x2e9,0x39e)+'ll']('&','&amp;')[_0x5c8229(_0x80761c._0x1ab485,0x7e2)+'ll']('<','&lt;')[_0x5c8229(0x8e5,0x7e2)+'ll']('>',_0x5c8229(0x757,_0x80761c._0x3c41f1))['replaceA'+'ll']('\x22','&quot;')[_0x5c8229(0x99c,0x7e2)+'ll']('\x27',_0x213260[_0x5c8229(0x653,_0x80761c._0x54b469)]);}function escapeSystemdArg(_0x2fb54c){return'\x22'+_0x2fb54c['replaceA'+'ll']('\x5c','\x5c\x5c')['replaceA'+'ll']('\x22','\x5c\x22')+'\x22';}function escapeWindowsArg(_0x49fbfe){const _0x4c4059={_0x44d647:0x34f};function _0x5985cc(_0x1790e8,_0x3ff77d){return _0x143ed5(_0x3ff77d-0x7d,_0x1790e8);}return'\x22'+_0x49fbfe[_0x5985cc(0x3da,_0x4c4059._0x44d647)+'ll']('\x22','\x5c\x22')+'\x22';}function commandSucceeds(_0x50727e,_0x57666a){const _0x1d8393={_0x394323:0x50f,_0x57ad9b:0x3e3,_0xbbd9bb:0x5b8,_0x4d22ba:0x4b5,_0x2293d6:0x473},_0x2364f9={_0x43287a:0x2b0},_0x2d119d={};function _0x8f8c3c(_0x45081a,_0x1964b6){return _0x143ed5(_0x45081a-_0x2364f9._0x43287a,_0x1964b6);}_0x2d119d[_0x8f8c3c(0x4b5,_0x1d8393._0x394323)]=_0x8f8c3c(_0x1d8393._0x57ad9b,_0x1d8393._0xbbd9bb);function _0xf9eaa2(_0x2748b7,_0x3ec6b3){return _0x143ed5(_0x2748b7-0x607,_0x3ec6b3);}const _0x4a8f3c=_0x2d119d;try{const _0x166c39={};return _0x166c39['stdio']=_0x4a8f3c[_0x8f8c3c(_0x1d8393._0x4d22ba,_0x1d8393._0x2293d6)],execFileSync(_0x50727e,_0x57666a,_0x166c39),!![];}catch{return![];}}function execIgnoreFailure(_0xccc800,_0x957c7c){const _0x2eef3e={_0x362fbc:0x533,_0x15bf3c:0x693,_0x5d9fce:0x303},_0x235f14={_0x7c32b5:0x49},_0x3edef4={_0x369f88:0x3df};function _0xa35fe2(_0x3c47c6,_0x307906){return _0x143ed5(_0x307906-_0x3edef4._0x369f88,_0x3c47c6);}const _0xb12b1={'wtvHy':function(_0x78e8de,_0x2a95e1,_0x23efa1,_0x3eb8c5){return _0x78e8de(_0x2a95e1,_0x23efa1,_0x3eb8c5);}};function _0x287e8f(_0x5579c0,_0x20462b){return _0x143ed5(_0x5579c0-_0x235f14._0x7c32b5,_0x20462b);}try{const _0x34ed3f={};_0x34ed3f[_0xa35fe2(_0x2eef3e._0x362fbc,_0x2eef3e._0x15bf3c)]=_0x287e8f(0x17c,0x357),_0xb12b1[_0xa35fe2(_0x2eef3e._0x5d9fce,0x3ff)](execFileSync,_0xccc800,_0x957c7c,_0x34ed3f);}catch{}}function rmIfExists(_0x1ba0d0){const _0x4b5679={_0x106e89:0x416};if(!_0x380e31(_0x1ba0d0))return;function _0x765fd3(_0x2754f7,_0x5925dc){return _0x143ed5(_0x2754f7-0x237,_0x5925dc);}const _0x222764={};_0x222764[_0x765fd3(_0x4b5679._0x106e89,0x606)]=!![],_0x12515c(_0x1ba0d0,_0x222764);}import{existsSync as _0x18b84e,readFileSync as _0x2d1449}from'fs';import{homedir as _0x456b97}from'os';import{join as _0xdc19fb}from'path';var DEFAULT_GATEWAY_URL=_0x143ed5(0x191,0x90)+_0x75393(0x2e2,0x36a)+'8789',OPENCLAW_DIR=_0xdc19fb(_0x456b97(),'.opencla'+'w'),OPENCLAW_CONFIG_PATH2=_0xdc19fb(OPENCLAW_DIR,_0x143ed5(0x4b,0x21f)+_0x75393(0x2d0,0x4b2)),OPENCLAW_MEDIA_DIR=_0xdc19fb(OPENCLAW_DIR,_0x143ed5(-0x25,0x1bc));function resolveGatewayUrl(_0x46d4f3){const _0x160c29={_0x3a6025:0x70,_0x1edeac:0x184,_0x1dc0c0:0x478,_0x4b2ba1:0x34e,_0x464d56:0x96,_0x37b96e:0x247,_0x3b097c:0x1aa,_0x545ca5:0x61,_0x5ce702:0x275,_0x3222f6:0x333,_0x1ea40c:0x179},_0x19d5ec={_0x4f7593:0xc5};function _0x1c0203(_0x3511ed,_0x421329){return _0x75393(_0x3511ed,_0x421329-0x110);}function _0x133151(_0x50ea75,_0x457605){return _0x75393(_0x50ea75,_0x457605- -_0x19d5ec._0x4f7593);}const _0x460451=_0x46d4f3?.[_0x133151(0x1e8,_0x160c29._0x3a6025)]();if(_0x460451)return _0x460451;const _0x391734=readOpenClawInfo();if(typeof _0x391734[_0x1c0203(_0x160c29._0x1edeac,0x2a4)+_0x1c0203(_0x160c29._0x1dc0c0,_0x160c29._0x4b2ba1)]===_0x1c0203(_0x160c29._0x464d56,_0x160c29._0x37b96e))return _0x133151(_0x160c29._0x3b097c,0x2c1)+_0x133151(0x81,_0x160c29._0x545ca5)+_0x391734[_0x1c0203(_0x160c29._0x5ce702,0x2a4)+_0x133151(_0x160c29._0x3222f6,_0x160c29._0x1ea40c)];return DEFAULT_GATEWAY_URL;}function readOpenClawInfo(){const _0xdca822={_0x2ee886:0x8,_0x25b30e:0x1e0,_0x412a22:0x4e,_0x1fa135:0x1e,_0x3e8571:0x4d3,_0xa07fae:0x17f,_0x511eb6:0x140,_0xe1f719:0x14d,_0x3f6cb9:0x5d8,_0x5c80e9:0x5a0,_0x306505:0xbb,_0x15c17f:0x1fd,_0x4eb9e2:0x495,_0x5f2c28:0x188,_0x3f4ae8:0x140,_0x418b5a:0x2d9,_0x780449:0x389,_0xfcb830:0x1ce,_0x114cf4:0xbd,_0x4d35a9:0x141,_0x49a4f1:0x6fa,_0x36fa8f:0x1e3,_0x55a51c:0xbb,_0x578980:0x175},_0x37d116={_0x2dbb8c:0x1ca};function _0x301a44(_0x3d0f70,_0x5ea41c){return _0x75393(_0x5ea41c,_0x3d0f70-_0x37d116._0x2dbb8c);}const _0x478280={'CvrGU':'utf8','Trkyf':_0x423b9d(_0xdca822._0x2ee886,-_0xdca822._0x25b30e),'rYxcx':function(_0x48f715){return _0x48f715();}};if(!_0x18b84e(OPENCLAW_CONFIG_PATH2))return{'configFound':![],'gatewayPort':null,'authMode':null,'token':readGatewayTokenEnv(),'password':readGatewayPasswordEnv()};function _0x423b9d(_0x19046b,_0x31b3be){return _0x75393(_0x19046b,_0x31b3be- -0x317);}try{const _0x3f34bb=JSON['parse'](_0x2d1449(OPENCLAW_CONFIG_PATH2,_0x478280[_0x423b9d(_0xdca822._0x412a22,_0xdca822._0x1fa135)])),_0x9dc66d=_0x3f34bb[_0x423b9d(0x317,0x140)]?.['port'],_0x3b7b25=typeof _0x9dc66d===_0x478280[_0x301a44(_0xdca822._0x3e8571,0x4ba)]&&Number[_0x423b9d(_0xdca822._0xa07fae,-0x13)+'r'](_0x9dc66d)?_0x9dc66d:null,_0x31074a=_0x3f34bb[_0x423b9d(0x1cc,_0xdca822._0x511eb6)]?.[_0x301a44(0x389,0x3f6)]?.[_0x423b9d(-_0xdca822._0xe1f719,-0x4c)]===_0x301a44(_0xdca822._0x3f6cb9,_0xdca822._0x5c80e9)||_0x3f34bb[_0x301a44(0x621,0x4bd)]?.[_0x423b9d(-0x2,-0x158)]?.[_0x423b9d(-_0xdca822._0x306505,-0x4c)]==='password'?_0x3f34bb[_0x423b9d(0x2fd,0x140)][_0x423b9d(-_0xdca822._0x15c17f,-0x158)][_0x301a44(_0xdca822._0x4eb9e2,0x5ba)]:null,_0x36eb64=readConfiguredSecret(_0x3f34bb[_0x423b9d(_0xdca822._0x5f2c28,_0xdca822._0x3f4ae8)]?.[_0x423b9d(-_0xdca822._0x418b5a,-0x158)]?.[_0x301a44(_0xdca822._0x3f6cb9,0x575)])??readGatewayTokenEnv(),_0x28a759=readConfiguredSecret(_0x3f34bb['gateway']?.[_0x301a44(_0xdca822._0x780449,_0xdca822._0xfcb830)]?.[_0x423b9d(0x49,0x1e3)])??readGatewayPasswordEnv(),_0x57a84e={};return _0x57a84e['configFo'+_0x423b9d(-_0xdca822._0x114cf4,-0x7d)]=!![],_0x57a84e[_0x301a44(0x35e,0x507)+_0x423b9d(-_0xdca822._0x4d35a9,-0xd9)]=_0x3b7b25,_0x57a84e[_0x301a44(_0xdca822._0x49a4f1,0x893)]=_0x31074a,_0x57a84e[_0x423b9d(0x1a1,0xf7)]=_0x36eb64,_0x57a84e[_0x423b9d(0x117,_0xdca822._0x36fa8f)]=_0x28a759,_0x57a84e;}catch{return{'configFound':!![],'gatewayPort':null,'authMode':null,'token':_0x478280[_0x423b9d(-_0xdca822._0x55a51c,-_0xdca822._0x578980)](readGatewayTokenEnv),'password':readGatewayPasswordEnv()};}}function resolveGatewayAuth(){const _0x5b1a13={_0x2247e1:0x212,_0x3b1134:0x2aa,_0xe01905:0x6c,_0x240ac0:0x1dc,_0xb1812b:0x226,_0x4ecea4:0x137,_0x5c2225:0x40,_0x4c5f89:0x189,_0x5d82d6:0x19f,_0x345f9f:0x445,_0x3ecf30:0x72,_0x2b6c2f:0x131,_0x42770b:0x2bb,_0x377f99:0x366,_0x45654e:0x19d,_0x315eea:0x317,_0x375d36:0x1bd,_0x3192f3:0x1f4,_0x4c995d:0x1ad,_0x2cc105:0x1a3,_0xd59e88:0x3cc,_0x3b94a0:0x1dc,_0x3d9057:0x106,_0x1cd8cd:0x1fe,_0x221faa:0x355,_0x3a8ccf:0x396,_0x10f781:0xf0,_0x1b8e48:0x3c9,_0x54b65c:0x222,_0x44e9e4:0x449,_0x5db444:0x2ff,_0x320a2e:0x1db,_0x455ccc:0x312,_0xb9d192:0x396,_0x127a1b:0x2e0,_0x5c2916:0x2aa,_0x397a2b:0x137},_0x141bd9={};_0x141bd9[_0x4baa0c(0x39f,_0x5b1a13._0x2247e1)]=_0x4baa0c(_0x5b1a13._0x3b1134,0x47d);const _0x249ed9=_0x141bd9,_0x1fba86=readOpenClawInfo(),_0x4a8113=_0x1fba86[_0x322d04(0xf0,_0x5b1a13._0xe01905)],_0x566c06=_0x1fba86[_0x322d04(_0x5b1a13._0x240ac0,0x390)];if(_0x4a8113&&_0x566c06&&_0x1fba86['authMode']==null){const _0x5e18fc={};return _0x5e18fc[_0x322d04(0xf0,_0x5b1a13._0xb1812b)]=_0x4a8113,_0x5e18fc['password']=_0x566c06,_0x5e18fc[_0x322d04(_0x5b1a13._0x4ecea4,-_0x5b1a13._0x5c2225)]=_0x249ed9[_0x4baa0c(0x39f,0x4ea)],_0x5e18fc[_0x4baa0c(-0x34,-_0x5b1a13._0x4c5f89)]='OpenClaw'+_0x322d04(-_0x5b1a13._0x5d82d6,-0xec)+_0x4baa0c(0x3a9,_0x5b1a13._0x345f9f)+_0x4baa0c(0x35f,0x4aa)+_0x4baa0c(0x196,_0x5b1a13._0x3ecf30)+_0x4baa0c(_0x5b1a13._0x2b6c2f,0x29c)+_0x322d04(-0xcc,-0x4b)+_0x4baa0c(_0x5b1a13._0x42770b,_0x5b1a13._0x377f99)+'eway.aut'+'h.mode\x20i'+_0x322d04(_0x5b1a13._0x45654e,_0x5b1a13._0x315eea)+_0x4baa0c(_0x5b1a13._0x375d36,_0x5b1a13._0x3192f3)+_0x4baa0c(0xa2,0x242)+_0x322d04(-0xc9,-0xba)+_0x4baa0c(0x97,-0x51)+_0x322d04(_0x5b1a13._0x4c995d,_0x5b1a13._0x2cc105)+_0x4baa0c(0x280,0x309)+'g.',_0x5e18fc;}if(_0x1fba86[_0x4baa0c(_0x5b1a13._0xd59e88,0x28d)]===_0x322d04(_0x5b1a13._0x3b94a0,_0x5b1a13._0x3d9057)){const _0x367d59={};return _0x367d59[_0x4baa0c(0x2aa,_0x5b1a13._0x1cd8cd)]=null,_0x367d59[_0x322d04(0x1dc,-0xc)]=null,_0x367d59[_0x4baa0c(0x2f1,_0x5b1a13._0x221faa)]=null,_0x566c06?{'token':null,'password':_0x566c06,'label':_0x4baa0c(_0x5b1a13._0x3a8ccf,0x479)}:_0x367d59;}if(_0x1fba86['authMode']===_0x322d04(_0x5b1a13._0x10f781,0x167)){const _0x2b89cb={};return _0x2b89cb[_0x4baa0c(0x2aa,_0x5b1a13._0x1b8e48)]=null,_0x2b89cb[_0x322d04(0x1dc,_0x5b1a13._0x54b65c)]=null,_0x2b89cb['label']=null,_0x4a8113?{'token':_0x4a8113,'password':null,'label':_0x4baa0c(0x2aa,_0x5b1a13._0x44e9e4)}:_0x2b89cb;}if(_0x4a8113){const _0x183835={};return _0x183835[_0x4baa0c(0x2aa,0x2bf)]=_0x4a8113,_0x183835[_0x322d04(_0x5b1a13._0x240ac0,_0x5b1a13._0x5db444)]=null,_0x183835[_0x4baa0c(0x2f1,0x335)]=_0x322d04(0xf0,_0x5b1a13._0x320a2e),_0x183835;}if(_0x566c06){const _0x3c40ca={};return _0x3c40ca[_0x4baa0c(0x2aa,0x31d)]=null,_0x3c40ca[_0x4baa0c(_0x5b1a13._0x3a8ccf,0x2b9)]=_0x566c06,_0x3c40ca[_0x322d04(0x137,_0x5b1a13._0x455ccc)]=_0x4baa0c(_0x5b1a13._0xb9d192,_0x5b1a13._0x127a1b),_0x3c40ca;}const _0x142c56={};function _0x4baa0c(_0x541916,_0x61ea88){return _0x75393(_0x61ea88,_0x541916- -0x164);}function _0x322d04(_0x72f211,_0x442839){return _0x75393(_0x442839,_0x72f211- -0x31e);}return _0x142c56[_0x4baa0c(_0x5b1a13._0x5c2916,0x40a)]=null,_0x142c56[_0x322d04(0x1dc,0x222)]=null,_0x142c56[_0x322d04(_0x5b1a13._0x397a2b,0x1c4)]=null,_0x142c56;}function getOpenClawConfigDir(){return OPENCLAW_DIR;}function getOpenClawMediaDir(){return OPENCLAW_MEDIA_DIR;}function readConfiguredSecret(_0x496ab4){const _0x3a9fea={_0x3965d6:0x686,_0x20d057:0x355,_0x2ef70e:0x4f4,_0x2e1145:0x6c3,_0x4e1b32:0x122,_0x3e0d07:0x6f},_0x214103={_0xdab1e4:0x513},_0xe2ab6a={_0x5914d0:0x1e2};function _0x5b4ae6(_0x76cc91,_0x14c3ac){return _0x143ed5(_0x76cc91-_0xe2ab6a._0x5914d0,_0x14c3ac);}const _0x3e00a4={};function _0x4a4a98(_0x252c1e,_0x33f95f){return _0x143ed5(_0x33f95f-_0x214103._0xdab1e4,_0x252c1e);}_0x3e00a4[_0x4a4a98(0x6bf,_0x3a9fea._0x3965d6)]=function(_0x286326,_0x2e3da0){return _0x286326===_0x2e3da0;};const _0x5b0746=_0x3e00a4;return _0x5b0746[_0x5b4ae6(_0x3a9fea._0x20d057,0x261)](typeof _0x496ab4,_0x5b4ae6(_0x3a9fea._0x2ef70e,_0x3a9fea._0x2e1145))&&_0x496ab4[_0x5b4ae6(_0x3a9fea._0x4e1b32,_0x3a9fea._0x3e0d07)]()?_0x496ab4['trim']():null;}function readGatewayTokenEnv(){const _0x403837={_0x2b7dc4:0x730,_0x228b02:0x568,_0x356907:0x5bc,_0x590c1a:0x46b,_0x1b2261:0x572,_0x434479:0x29b};function _0x3363f4(_0x4cbbf3,_0x152df9){return _0x75393(_0x152df9,_0x4cbbf3-0x344);}function _0x520085(_0xa2f7fb,_0x1c8bf5){return _0x75393(_0xa2f7fb,_0x1c8bf5-0x147);}return readEnvValue(_0x3363f4(_0x403837._0x2b7dc4,_0x403837._0x228b02)+_0x3363f4(0x547,0x353)+_0x520085(_0x403837._0x356907,_0x403837._0x590c1a),_0x520085(0x6d0,_0x403837._0x1b2261)+_0x520085(0x4f5,0x34a)+_0x520085(_0x403837._0x434479,0x46b));}function readGatewayPasswordEnv(){const _0x4f88d5={_0x6aecb6:0xcf,_0x1e3c12:0xd8,_0x4ffcd3:0x62a,_0x40b637:0x4d0,_0xd90d21:0x545},_0x52850d={_0x2c52da:0x30b};function _0x45e992(_0x3c818c,_0x4149cc){return _0x143ed5(_0x3c818c- -0x128,_0x4149cc);}function _0x2d854c(_0x5d72c2,_0x48520d){return _0x143ed5(_0x5d72c2-_0x52850d._0x2c52da,_0x48520d);}return readEnvValue(_0x45e992(_0x4f88d5._0x6aecb6,-_0x4f88d5._0x1e3c12)+'_GATEWAY'+_0x2d854c(0x4d0,_0x4f88d5._0x4ffcd3)+'D',_0x45e992(0x10e,-0xa5)+'_GATEWAY'+_0x2d854c(_0x4f88d5._0x40b637,_0x4f88d5._0xd90d21)+'D');}function readEnvValue(_0x2eb5d8,_0x2d0d7c){const _0x3e5cfd={_0x35f2da:0xde},_0x490e6f=process.env[_0x2eb5d8]?.['trim']();function _0x446935(_0x1371a6,_0x2d7271){return _0x143ed5(_0x2d7271- -_0x3e5cfd._0x35f2da,_0x1371a6);}if(_0x490e6f)return _0x490e6f;const _0x2fa08c=process.env[_0x2d0d7c]?.[_0x446935(-0xda,-0x19e)]();return _0x2fa08c||null;}var CONTROL_PREFIX=_0x75393(0x20c,0x3e8)+'t_relay_'+_0x75393(0x111,0x174)+'_:';function parseControl(_0x41c910){const _0x2cdb8d={_0x2b03c1:0x3aa,_0x53f8d3:0x3ae,_0x41c88f:0xa7,_0x2b7958:0xac,_0x3a1c11:0x19a,_0x56032d:0x2f,_0xf84ec7:0x56a,_0x2c6432:0x3c2,_0x31459b:0xf8,_0x43d5c4:0x10c,_0x2dfaf1:0x3ad,_0x6b4f1a:0x371,_0x453378:0x211},_0x5642b3={_0x5706a6:0xb0},_0x2c97e0={_0x3f5b3e:0xb0};function _0x59ef26(_0x26c567,_0x49366b){return _0x143ed5(_0x49366b-_0x2c97e0._0x3f5b3e,_0x26c567);}function _0x5ca38f(_0x1eabd3,_0x90c04a){return _0x143ed5(_0x1eabd3- -_0x5642b3._0x5706a6,_0x90c04a);}if(!_0x41c910[_0x59ef26(_0x2cdb8d._0x2b03c1,_0x2cdb8d._0x53f8d3)+'th'](CONTROL_PREFIX))return null;try{const _0x15e3c0=JSON[_0x59ef26(_0x2cdb8d._0x41c88f,0x3c)](_0x41c910[_0x5ca38f(-0x94,-_0x2cdb8d._0x2b7958)](CONTROL_PREFIX[_0x5ca38f(_0x2cdb8d._0x3a1c11,_0x2cdb8d._0x56032d)]));if(typeof _0x15e3c0['event']!==_0x59ef26(_0x2cdb8d._0xf84ec7,_0x2cdb8d._0x2c6432)||!_0x15e3c0[_0x59ef26(-0x38,0x85)]['trim']())return null;return{'event':_0x15e3c0['event']['trim'](),'count':typeof _0x15e3c0['count']==='number'&&Number[_0x5ca38f(-_0x2cdb8d._0x31459b,_0x2cdb8d._0x43d5c4)](_0x15e3c0[_0x59ef26(_0x2cdb8d._0x2dfaf1,_0x2cdb8d._0x6b4f1a)])?_0x15e3c0[_0x5ca38f(_0x2cdb8d._0x453378,0x387)]:void 0x0};}catch{return null;}}function parseConnectStartIdentity(_0x49f523){const _0x525690={_0x541e56:0x53c,_0x34e950:0x158,_0x2f9314:0x20a,_0x36c742:0x306,_0x325f29:0x3f8,_0x425cf5:0x297,_0x35ae7b:0x4d2,_0x2364dd:0x31d,_0x5ee848:0xd1,_0x589d1c:0xd4,_0x1eff67:0x10c,_0x5565c3:0x133,_0x2ea31b:0xc5,_0x201362:0xe5,_0x4ee5d1:0x93,_0x15ee68:0x3a0,_0x392dfe:0x5,_0x34fe4d:0xe1,_0x21684e:0x42c},_0x57c831={_0x41cb7d:0x39a};function _0x56d1fd(_0x44f111,_0x1b4175){return _0x75393(_0x44f111,_0x1b4175- -0x29);}function _0x2d3e9f(_0x44ab47,_0x39a4ca){return _0x75393(_0x44ab47,_0x39a4ca- -_0x57c831._0x41cb7d);}const _0x5609ed={'trPui':function(_0x2d0780,_0x121d1a){return _0x2d0780===_0x121d1a;},'IrXIf':_0x56d1fd(_0x525690._0x541e56,0x4de),'rdSLh':function(_0x436af3,_0x5a326a,_0x5714a3,_0x51bb67,_0x3261ce){return _0x436af3(_0x5a326a,_0x5714a3,_0x51bb67,_0x3261ce);}};try{const _0xb574bd=JSON[_0x56d1fd(0x1bf,_0x525690._0x34e950)](_0x49f523);if(_0xb574bd[_0x56d1fd(_0x525690._0x2f9314,_0x525690._0x36c742)]!==_0x56d1fd(_0x525690._0x325f29,_0x525690._0x425cf5))return null;if(_0xb574bd[_0x56d1fd(0x4a1,_0x525690._0x35ae7b)]!==_0x56d1fd(0x313,0x29d)&&_0xb574bd[_0x2d3e9f(0xa,0x161)]!=='connect.'+'start')return null;const _0x1d6d3c=_0xb574bd['params']??{},_0x3c037b=_0x5609ed[_0x56d1fd(_0x525690._0x2364dd,0x4a0)](typeof _0xb574bd['id'],_0x5609ed[_0x2d3e9f(0x1bc,_0x525690._0x5ee848)])&&_0xb574bd['id'][_0x56d1fd(-_0x525690._0x589d1c,_0x525690._0x1eff67)]()?_0xb574bd['id']['trim']():_0x2d3e9f(_0x525690._0x5565c3,0x58)+Math[_0x2d3e9f(-0x12d,-_0x525690._0x2ea31b)]()[_0x2d3e9f(_0x525690._0x201362,-_0x525690._0x4ee5d1)](0x24)[_0x2d3e9f(0x78,-0x189)](0x2,0xc),_0x4e973a=_0x5609ed['rdSLh'](firstString,_0x1d6d3c['deviceNa'+'me'],_0x1d6d3c[_0x56d1fd(0x3f4,_0x525690._0x15ee68)+'me'],_0x1d6d3c[_0x2d3e9f(0x1a8,-_0x525690._0x392dfe)],_0x56d1fd(0x4c7,0x394)+_0x2d3e9f(-0x88,_0x525690._0x34fe4d)),_0x175d54={};return _0x175d54['id']=_0x3c037b,_0x175d54[_0x56d1fd(0x348,_0x525690._0x21684e)]=_0x4e973a,_0x175d54;}catch{return null;}}function isConnectHandshakeRequest(_0x1c98a1){const _0x2f0017={_0x5eb1fc:0x1af,_0x5e2030:0xac,_0x5c98c6:0x76a,_0x21baab:0x8d0,_0x2ed8ab:0x702,_0x2301ee:0x806,_0x415a87:0x498,_0x2ba3ec:0x10c,_0x106bc1:0xcb,_0x3a472f:0x4ee},_0x31eaec={_0x3f649c:0x34b};function _0x144eeb(_0x4fb30b,_0x43d59a){return _0x75393(_0x4fb30b,_0x43d59a- -_0x31eaec._0x3f649c);}const _0x50cc4b={};_0x50cc4b[_0x144eeb(_0x2f0017._0x5eb1fc,_0x2f0017._0x5e2030)]='req';const _0x69fa80=_0x50cc4b;function _0x5a602f(_0x11990e,_0x10313c){return _0x75393(_0x11990e,_0x10313c-0x30b);}try{const _0x71c2f4=JSON[_0x144eeb(-0x2ae,-0x1ca)](_0x1c98a1);return _0x71c2f4[_0x5a602f(_0x2f0017._0x5c98c6,0x63a)]===_0x69fa80[_0x5a602f(_0x2f0017._0x21baab,_0x2f0017._0x2ed8ab)]&&(_0x71c2f4[_0x5a602f(0x935,_0x2f0017._0x2301ee)]===_0x5a602f(_0x2f0017._0x415a87,0x5d1)||_0x71c2f4['method']===_0x144eeb(-_0x2f0017._0x2ba3ec,-_0x2f0017._0x106bc1)+_0x5a602f(_0x2f0017._0x3a472f,0x6cb));}catch{return![];}}function parsePairingRequestFromError(_0xaf8fb,_0x5d3efb=Date[_0x143ed5(0x1e,-0x104)]()){const _0x11ebab={_0x34841a:0x3ae,_0xa26017:0x441,_0x535c26:0x2e2,_0x4d68bb:0x45a,_0x111570:0xd5,_0x59a6c8:0x29f,_0x37b59c:0x689,_0x122494:0x277,_0x19c2b7:0x61a,_0x30acd4:0x4cb,_0x51d7fb:0x4c4,_0x1b3a97:0x2b2,_0x28def9:0x6c1,_0x1189bf:0x67c,_0x3c300e:0x6a4,_0x1e219b:0x3da,_0x3aef5a:0x45f,_0x171cc9:0x528,_0x8f442c:0x445,_0x344c84:0x2eb,_0x3ad359:0x3d4,_0x3ecbf7:0x2d5,_0x42f8c7:0x4f2,_0x211faa:0x5c9,_0xd6131c:0x38e,_0x3dda88:0x4cd,_0x2a13e7:0x3c1,_0x5a0272:0x4b0,_0x3a4553:0x4c7,_0x2137a7:0x2ed,_0x56a7a4:0x4ab,_0x2fa1a4:0x3f0},_0x37ac4b={_0x2ee0c3:0x16f};function _0x1e8c59(_0x2679de,_0x1eb920){return _0x75393(_0x2679de,_0x1eb920-0x182);}function _0x296d81(_0x4f01c5,_0x58a69b){return _0x75393(_0x4f01c5,_0x58a69b-_0x37ac4b._0x2ee0c3);}const _0x1091ac={'gNgPK':function(_0x26322e,_0x607464){return _0x26322e===_0x607464;},'CUvdL':function(_0x56fc38,_0x382136,_0x2e136f){return _0x56fc38(_0x382136,_0x2e136f);},'hSBjH':function(_0x19db6f,_0x4d5519){return _0x19db6f(_0x4d5519);}};try{const _0x3a806f=JSON['parse'](_0xaf8fb);if(_0x3a806f[_0x1e8c59(_0x11ebab._0x34841a,0x4b1)]!==_0x296d81(_0x11ebab._0xa26017,_0x11ebab._0x535c26)||_0x3a806f['ok']!==![]||!_0x3a806f[_0x1e8c59(_0x11ebab._0x4d68bb,0x2b2)])return null;const _0x2b9a8a=typeof _0x3a806f[_0x296d81(_0x11ebab._0x111570,_0x11ebab._0x59a6c8)]['code']===_0x1e8c59(0x836,_0x11ebab._0x37b59c)?_0x3a806f[_0x1e8c59(_0x11ebab._0x122494,0x2b2)]['code']:'',_0x1e9e92=_0x1091ac['gNgPK'](typeof _0x3a806f['error'][_0x1e8c59(_0x11ebab._0x19c2b7,_0x11ebab._0x30acd4)],_0x296d81(_0x11ebab._0x51d7fb,0x676))?_0x3a806f[_0x1e8c59(0x450,_0x11ebab._0x1b3a97)][_0x296d81(_0x11ebab._0x28def9,0x4b8)]:'';if(!_0x2b9a8a['includes']('NOT_PAIR'+'ED')&&!_0x2b9a8a[_0x1e8c59(_0x11ebab._0x1189bf,_0x11ebab._0x3c300e)]('PAIRING_'+_0x1e8c59(0x786,0x670))&&!_0x1e9e92['includes']('NOT_PAIR'+'ED')&&!_0x1e9e92['includes'](_0x296d81(0x3f5,_0x11ebab._0x1e219b)+_0x1e8c59(_0x11ebab._0x3aef5a,_0x11ebab._0x171cc9)))return null;const _0x3c38da=_0x3a806f[_0x296d81(_0x11ebab._0x8f442c,_0x11ebab._0x59a6c8)][_0x1e8c59(0x4f2,0x36d)]??_0x3a806f[_0x296d81(_0x11ebab._0x344c84,0x29f)]['data']??{},_0x399023=firstString(_0x3c38da[_0x296d81(_0x11ebab._0x3ad359,0x323)+'d'],extractRequestIdFromMessage(_0x1e9e92),_0x296d81(0x3f9,_0x11ebab._0x3ecbf7));return{'requestId':_0x399023,'deviceId':_0x1091ac[_0x296d81(0x5a5,0x568)](firstString,_0x3c38da['deviceId'],''),'displayName':firstNullableString(_0x3c38da[_0x296d81(_0x11ebab._0x42f8c7,_0x11ebab._0x211faa)+'ame']),'platform':firstNullableString(_0x3c38da[_0x1e8c59(_0x11ebab._0xd6131c,_0x11ebab._0x3dda88)]),'deviceFamily':firstNullableString(_0x3c38da[_0x1e8c59(0x554,_0x11ebab._0x2a13e7)+_0x296d81(0x574,_0x11ebab._0x5a0272)]),'role':firstNullableString(_0x3c38da[_0x1e8c59(_0x11ebab._0x3a4553,_0x11ebab._0x2137a7)]),'remoteIp':_0x1091ac['hSBjH'](firstNullableString,_0x3c38da[_0x1e8c59(_0x11ebab._0x56a7a4,_0x11ebab._0x2fa1a4)]),'receivedAtMs':_0x5d3efb,'status':'pending'};}catch{return null;}}function parsePairResolvedEvent(_0x1694dd){const _0x409584={_0x5ea0e2:0x21a,_0x93107c:0x1ba,_0xbd267:0x46,_0x22aed3:0x29a,_0x5a1189:0xdc,_0x2e3819:0x34,_0x32057a:0x24,_0x232c76:0x2e4,_0x3ff7ab:0x199,_0x57207c:0x57,_0x518c45:0x67,_0xfaa864:0x2d1,_0x254ea2:0x29,_0x1b9a9e:0x82,_0x23947b:0x9f},_0x1a9c75={_0x9615d1:0x315},_0x36c1d8={_0x2498b1:0x363},_0x514e5d={};_0x514e5d[_0x1c6c6d(_0x409584._0x5ea0e2,0x32c)]=_0x5a17bf(_0x409584._0x93107c,0x184);function _0x5a17bf(_0x466f96,_0x5ece84){return _0x75393(_0x5ece84,_0x466f96- -_0x36c1d8._0x2498b1);}function _0x1c6c6d(_0x2e54a2,_0x443017){return _0x75393(_0x443017,_0x2e54a2- -_0x1a9c75._0x9615d1);}_0x514e5d[_0x5a17bf(0x14,-_0x409584._0xbd267)]=_0x5a17bf(-0x1fd,-_0x409584._0x22aed3);const _0x54b9f9=_0x514e5d;try{const _0x5ba145=JSON[_0x1c6c6d(-0x194,-_0x409584._0x5a1189)](_0x1694dd);if(_0x5ba145[_0x5a17bf(-_0x409584._0x2e3819,_0x409584._0x32057a)]!==_0x1c6c6d(-0x14b,-_0x409584._0x232c76)||_0x5ba145[_0x5a17bf(-_0x409584._0x3ff7ab,-0x4f)]!=='device.p'+_0x5a17bf(-0x80,0x146)+_0x5a17bf(-0x127,-0x2e4)||!_0x5ba145['payload'])return null;const _0x3d2e91=typeof _0x5ba145[_0x1c6c6d(-0x19,-0x6d)][_0x1c6c6d(-0x161,_0x409584._0x57207c)+'d']==='string'?_0x5ba145[_0x5a17bf(-_0x409584._0x518c45,-0xb1)]['requestI'+'d'][_0x5a17bf(-0x22e,-_0x409584._0xfaa864)]():'';if(!_0x3d2e91)return null;const _0x5dc6b6=typeof _0x5ba145[_0x1c6c6d(-0x19,0x1bf)]['decision']==='string'?_0x5ba145[_0x1c6c6d(-0x19,-0x1f8)]['decision']:_0x1c6c6d(-0x1af,_0x409584._0x254ea2),_0x1995fd=_0x5dc6b6===_0x1c6c6d(-0xe6,-_0x409584._0x1b9a9e)||_0x5dc6b6===_0x54b9f9[_0x5a17bf(0x1cc,0x1bc)]?_0x5dc6b6:_0x54b9f9[_0x1c6c6d(0x62,0x15d)],_0x254230={};return _0x254230[_0x1c6c6d(-0x161,_0x409584._0x23947b)+'d']=_0x3d2e91,_0x254230[_0x5a17bf(-0x1,-0x9)]=_0x1995fd,_0x254230;}catch{return null;}}function firstString(..._0x5c0215){const _0x39901c={_0x4ce9b2:0x2a3,_0x490ffd:0x442,_0xd86d99:0x2a3,_0x13f156:0x22e,_0x314493:0x311,_0x2e5533:0x124,_0x49e825:0x19e};function _0x82f7c5(_0x5ef01c,_0x52667d){return _0x75393(_0x52667d,_0x5ef01c- -0x259);}const _0x2d6d2c={};_0x2d6d2c[_0x82f7c5(_0x39901c._0x4ce9b2,_0x39901c._0x490ffd)]='string';const _0x31b628=_0x2d6d2c;function _0x41629f(_0x4c051e,_0x5924d4){return _0x75393(_0x5924d4,_0x4c051e- -0xb2);}for(const _0x109ac8 of _0x5c0215){if(typeof _0x109ac8===_0x31b628[_0x82f7c5(_0x39901c._0xd86d99,_0x39901c._0x13f156)]&&_0x109ac8[_0x82f7c5(-0x124,-_0x39901c._0x314493)]())return _0x109ac8[_0x82f7c5(-_0x39901c._0x2e5533,-_0x39901c._0x49e825)]();}return'';}function firstNullableString(_0x238a0e){const _0x10b02c={_0x35f353:0x4ab,_0x2a9852:0x106,_0x392c7d:0x108,_0x4b5001:0x106},_0x595aaa={_0x367ecb:0x23b};function _0x3ce289(_0x10fea8,_0x3f6579){return _0x75393(_0x10fea8,_0x3f6579-0x78);}function _0x1824b0(_0x1c9c90,_0x371b37){return _0x75393(_0x371b37,_0x1c9c90- -_0x595aaa._0x367ecb);}return typeof _0x238a0e===_0x3ce289(_0x10b02c._0x35f353,0x57f)&&_0x238a0e[_0x1824b0(-_0x10b02c._0x2a9852,_0x10b02c._0x392c7d)]()?_0x238a0e[_0x1824b0(-_0x10b02c._0x4b5001,-0x12a)]():null;}function extractRequestIdFromMessage(_0x23b0c8){const _0x4fd57b={_0xb9596e:0x4a2,_0xf8a814:0x36e};function _0x475ae1(_0x7cd47c,_0x32aeaa){return _0x75393(_0x32aeaa,_0x7cd47c-0x37e);}const _0x38dba9=_0x23b0c8[_0x475ae1(_0x4fd57b._0xb9596e,_0x4fd57b._0xf8a814)](/requestId[:\s]*([a-f0-9-]+)/i);return _0x38dba9?.[0x1]??null;}import{randomUUID as _0xeb6c2c}from'crypto';import{setTimeout as _0x2b5e3a}from'timers/promises';import _0x4cde07 from'ws';var HEARTBEAT_INTERVAL_MS=0x2710,HEARTBEAT_TIMEOUT_MS=0x88b8,GATEWAY_RETRY_DELAY_MS=0x4b0,GATEWAY_IDLE_DISCONNECT_DELAY_MS=0x7530,RECONNECT_BASE_DELAY_MS=0x3e8,RECONNECT_MAX_DELAY_MS=0x3a98,MAX_PENDING_GATEWAY_MESSAGES=0x100,MAX_DEVICE_DETAILS=0x20,MAX_PENDING_PAIR_REQUESTS=0x10,BridgeRuntime=class{[_0x75393(0x2b7,0x4b3)];[_0x143ed5(0x153,0x2e6)+_0x75393(0x24a,0x3d1)]=null;[_0x75393(0x3d5,0x2a4)+_0x143ed5(0x135,0x1ed)]=null;[_0x143ed5(0x1ae,0xd6)+_0x143ed5(0x2df,0x404)]=![];[_0x75393(0x639,0x482)+'onnectin'+'g']=![];[_0x143ed5(0x24d,0xd5)]=!![];[_0x75393(0x3b6,0x34e)+_0x75393(0x401,0x417)]=0x0;[_0x75393(0x6ba,0x4e7)+_0x75393(0x94,0x1f3)+'yMs']=0x0;[_0x143ed5(0x15a,0xf)+_0x75393(0x48c,0x3b3)]=null;[_0x75393(0x554,0x3d0)+'etryTime'+'r']=null;[_0x143ed5(-0x44,0x10a)+_0x143ed5(0xce,0x110)+'Timer']=null;[_0x75393(0x42c,0x2cc)+_0x75393(0x2bc,0x3b3)]=null;['pendingG'+_0x75393(0x29e,0x47c)+_0x143ed5(0x145,0x13f)]=[];['gatewayH'+_0x143ed5(0x26e,0x1a9)+_0x75393(0x140,0x275)]=![];[_0x143ed5(0x117,0x45)+'mandStar'+_0x75393(0x321,0x265)]=null;[_0x75393(0x654,0x482)+_0x75393(0x400,0x32e)+_0x75393(0x29a,0x2ca)]=null;[_0x75393(0x33f,0x532)];constructor(_0x5e17dd){const _0x459a6c={_0x2dfbbd:0x3f4,_0x555ef0:0x5e8,_0x33a7a2:0x64a,_0xb1ae86:0x5e0,_0x3346b5:0x467,_0x3afb29:0x1c5},_0x49dd3e={_0x46a112:0x16};function _0xfd5b9f(_0x4b1c5e,_0x589356){return _0x143ed5(_0x589356-_0x49dd3e._0x46a112,_0x4b1c5e);}function _0x50689b(_0x59b1e4,_0x5afa53){return _0x143ed5(_0x59b1e4-0x42e,_0x5afa53);}this[_0xfd5b9f(0x424,0x2d4)]=_0x5e17dd,this[_0x50689b(0x76b,0x929)]={'running':![],'relayConnected':![],'gatewayConnected':![],'gatewayId':_0x5e17dd[_0x50689b(_0x459a6c._0x2dfbbd,0x23f)][_0x50689b(0x3ea,_0x459a6c._0x555ef0)+'d'],'instanceId':_0x5e17dd['config'][_0x50689b(_0x459a6c._0x33a7a2,_0x459a6c._0xb1ae86)+'Id'],'relayUrl':_0x5e17dd['config']['relayUrl'],'gatewayUrl':_0x5e17dd[_0x50689b(_0x459a6c._0x3346b5,0x356)+'rl'],'clientCount':0x0,'connectedDevices':[],'pendingPairRequests':[],'lastError':null,'lastUpdatedMs':Date[_0xfd5b9f(_0x459a6c._0x3afb29,0x34)]()};}[_0x75393(0x3e9,0x3c0)](){const _0x47a08b={_0x8dbe2a:0x9ef,_0x41c703:0x8ed,_0x1b2173:0x864,_0x6934df:0x867,_0x24486e:0x177,_0x392ae9:0xa3,_0x4433d7:0x800,_0x366e78:0x761,_0x29e934:0x595,_0x19719b:0x10e,_0x9fc907:0x566,_0x3c1aad:0x37f,_0x310d03:0x359},_0x2fa352={_0x1f8a4e:0x3b4};function _0x357ddd(_0x1b0d57,_0x475f77){return _0x75393(_0x1b0d57,_0x475f77-_0x2fa352._0x1f8a4e);}function _0xad7c7a(_0x42c254,_0x42d815){return _0x75393(_0x42d815,_0x42c254- -0x3a5);}if(!this[_0xad7c7a(0x9d,-0xa2)])return;this[_0x357ddd(_0x47a08b._0x8dbe2a,0x7f6)]=![],this[_0x357ddd(_0x47a08b._0x41c703,_0x47a08b._0x1b2173)+_0xad7c7a(-0x256,-0xf2)]({'running':!![],'gatewayUrl':this[_0x357ddd(0x8ec,_0x47a08b._0x6934df)][_0xad7c7a(-_0x47a08b._0x24486e,-_0x47a08b._0x392ae9)+'rl']}),this[_0x357ddd(_0x47a08b._0x4433d7,_0x47a08b._0x366e78)](_0x357ddd(_0x47a08b._0x29e934,0x4f0)+_0xad7c7a(0x10a,0x207)+'\x20gateway'+'Id='+this[_0xad7c7a(_0x47a08b._0x19719b,0x1bd)][_0x357ddd(0x592,0x56f)]['gatewayI'+'d']+(_0x357ddd(0x3d7,_0x47a08b._0x9fc907)+_0xad7c7a(-0x1f9,-_0x47a08b._0x3c1aad))+this[_0x357ddd(0x997,0x867)]['gatewayU'+'rl']),void this[_0x357ddd(0x850,0x822)+_0xad7c7a(-0x178,-_0x47a08b._0x310d03)]();}async['stop'](){const _0x303ec6={_0x34ba15:0x775,_0x2606b9:0x244,_0x3e5128:0x40a,_0x574def:0x46a,_0x5b3173:0x7ef,_0x4b2a12:0x2dd,_0x53e588:0x511,_0x29a1d4:0x310,_0x4edd61:0x399,_0x46faea:0x24d,_0x2fca84:0x2f2,_0x24f2d1:0x302,_0x276dce:0x5e6,_0x2d7026:0x5a4,_0x2cbaed:0x661,_0x4fec8a:0x690,_0x1cc9ac:0x62b,_0x1a310f:0x168,_0x334955:0x2a2,_0x16e2c4:0x36b,_0x37498c:0x98e,_0x52d045:0x7a3,_0x5a2fad:0x250,_0x56d6e8:0x44a,_0x3f6704:0xa6d,_0x502ad5:0x7e3},_0x44b6c8={_0x84b317:0x528},_0x5661a4={'aopbb':function(_0x4013f0,_0x265440){return _0x4013f0(_0x265440);}};if(this[_0x2e1b68(0x91b,_0x303ec6._0x34ba15)])return;this[_0x7f6d70(_0x303ec6._0x2606b9,_0x303ec6._0x3e5128)]=!![];function _0x2e1b68(_0x4441b7,_0x123c06){return _0x143ed5(_0x123c06-_0x44b6c8._0x84b317,_0x4441b7);}this[_0x2e1b68(_0x303ec6._0x574def,0x50e)+_0x2e1b68(0x896,_0x303ec6._0x5b3173)](),this[_0x2e1b68(0x56d,0x67b)+'ket']?.[_0x7f6d70(_0x303ec6._0x4b2a12,0x1a6)](),this[_0x7f6d70(0x25e,0x26c)+'ocket']?.[_0x2e1b68(0x349,_0x303ec6._0x53e588)](),this[_0x7f6d70(0x3bd,_0x303ec6._0x29a1d4)+_0x7f6d70(0x567,_0x303ec6._0x4edd61)]=null,this[_0x2e1b68(0x7be,0x5d7)+_0x7f6d70(_0x303ec6._0x46faea,_0x303ec6._0x2fca84)]=null,this[_0x2e1b68(0x697,0x723)+_0x2e1b68(0x92a,0x7af)+_0x7f6d70(0x499,_0x303ec6._0x24f2d1)]=[],this['gatewayH'+'andshake'+'Started']=![],this[_0x7f6d70(0x3a0,0x2d4)+_0x2e1b68(_0x303ec6._0x3e5128,_0x303ec6._0x276dce)+'tedAtMs']=null,this[_0x7f6d70(0x64b,0x44a)+_0x2e1b68(_0x303ec6._0x2d7026,_0x303ec6._0x2cbaed)+_0x2e1b68(0x46d,0x5fd)]=null;function _0x7f6d70(_0x55f09f,_0x36a869){return _0x143ed5(_0x36a869-0x1bd,_0x55f09f);}this[_0x7f6d70(0x523,0x36b)+_0x7f6d70(_0x303ec6._0x4fec8a,0x49c)]=![],this[_0x7f6d70(_0x303ec6._0x1cc9ac,0x44a)+_0x7f6d70(_0x303ec6._0x1a310f,_0x303ec6._0x334955)+'g']=![];const _0x35b76d={};_0x35b76d['running']=![],_0x35b76d[_0x7f6d70(0x2e0,_0x303ec6._0x16e2c4)+_0x2e1b68(_0x303ec6._0x37498c,_0x303ec6._0x52d045)]=![],_0x35b76d[_0x7f6d70(_0x303ec6._0x5a2fad,_0x303ec6._0x56d6e8)+'onnected']=![],_0x35b76d['clientCo'+'unt']=0x0,_0x35b76d[_0x2e1b68(_0x303ec6._0x3f6704,0x86b)+'r']=null,this[_0x2e1b68(0x8fa,_0x303ec6._0x502ad5)+'apshot'](_0x35b76d),this['log'](_0x2e1b68(0x2dd,0x46f)+'stopped'),await _0x5661a4[_0x2e1b68(0x510,0x672)](_0x2b5e3a,0x19);}async[_0x143ed5(-0xc6,-0x21)+_0x143ed5(0x74,-0x2f)+'st'](_0x140604){const _0x39bb53={_0x337322:0x248,_0x2e6cb2:0x200,_0x2375fc:0x12f,_0x437b34:0x11e,_0x25c9c3:0x19e};function _0x535481(_0x2e5b21,_0x385c29){return _0x75393(_0x2e5b21,_0x385c29- -0x333);}const _0x12662b={};_0x12662b['EXSjJ']='approved';const _0x583733=_0x12662b;function _0x5d2fa5(_0x4cf31f,_0x3a3a78){return _0x75393(_0x4cf31f,_0x3a3a78-0x94);}const _0x47ffb2={};_0x47ffb2[_0x5d2fa5(0x2a9,_0x39bb53._0x337322)+'d']=_0x140604,this[_0x535481(-_0x39bb53._0x2e6cb2,-0x16a)+'wayReque'+'st']('device.p'+_0x535481(0x15,0x11e)+_0x5d2fa5(0x347,0x452),_0x47ffb2),this['markPair'+_0x535481(0x173,0x75)+_0x535481(-0x7e,_0x39bb53._0x2375fc)](_0x140604,_0x583733[_0x535481(-_0x39bb53._0x437b34,-_0x39bb53._0x25c9c3)]);}async[_0x143ed5(0x189,0x190)+_0x75393(0x221,0x2b5)+'t'](_0x2ab78f){const _0x2afd71={_0x2d3624:0x91,_0x21e5de:0x34,_0x565ed6:0x407},_0x514c21={};function _0x2144c0(_0x33011b,_0x3ac3c3){return _0x75393(_0x3ac3c3,_0x33011b-0x262);}_0x514c21[_0x58d5d5(-0xd0,0x2c)+'d']=_0x2ab78f;function _0x58d5d5(_0x1f2ee6,_0x2ba11a){return _0x75393(_0x1f2ee6,_0x2ba11a- -0x188);}this['sendGate'+_0x2144c0(0x3f0,0x53b)+'st'](_0x58d5d5(0x9,0x93)+_0x58d5d5(-_0x2afd71._0x2d3624,-_0x2afd71._0x21e5de)+'ct',_0x514c21),this[_0x2144c0(0x3b2,0x2a0)+'RequestR'+'esolved'](_0x2ab78f,_0x58d5d5(_0x2afd71._0x565ed6,0x395));}[_0x75393(0x4ca,0x387)+_0x75393(0x5cd,0x439)](){const _0xcf97f9={_0x56c4c5:0x1f5,_0x389377:0x23d,_0x463427:0x225,_0x258d5e:0x5ff,_0x4282f9:0xb8,_0x26395e:0x2c2,_0x38a30d:0x2bc},_0x47bd79={_0x8617b2:0x33d};function _0x4c02e2(_0x56ddf5,_0x2a10bd){return _0x75393(_0x2a10bd,_0x56ddf5- -_0x47bd79._0x8617b2);}const _0x15dce2={...this[_0x4c02e2(_0xcf97f9._0x56c4c5,0x3d7)]};_0x15dce2[_0x4c02e2(0x1c7,_0xcf97f9._0x389377)+_0x13c313(-0x74,0xb8)]=[...this[_0x4c02e2(0x1f5,_0xcf97f9._0x463427)][_0x13c313(_0xcf97f9._0x258d5e,0x3fa)+_0x13c313(0x10,_0xcf97f9._0x4282f9)]],_0x15dce2[_0x13c313(_0xcf97f9._0x26395e,0x1aa)+_0x13c313(_0xcf97f9._0x38a30d,0x15f)+'sts']=[...this['snapshot'][_0x4c02e2(-0x89,-0x286)+'airReque'+_0x4c02e2(0x162,0x294)]];function _0x13c313(_0x26f2b5,_0x5d9789){return _0x75393(_0x26f2b5,_0x5d9789- -0x10a);}return _0x15dce2;}async[_0x75393(0x2cf,0x46e)+_0x75393(0x322,0x22d)](){const _0x1cacb6={_0xd7ed34:0x1e3,_0x205f0f:0x8f,_0x5522ab:0xd9,_0x30c631:0x269,_0x496e2a:0x4ca,_0x323e1b:0x58e,_0x13286d:0x551,_0x291668:0x788,_0x32d658:0x34e,_0x50aa5a:0x3de,_0x409728:0x408,_0x268c8c:0x4fe,_0x23b90b:0x400,_0x2f7eb9:0x641,_0x8d35f8:0x268,_0xb02179:0x261,_0x5e9267:0x39d,_0x4ccd3b:0x482,_0x554e33:0xef,_0x5bc419:0x66a,_0x898599:0x17f,_0x32df2c:0x32e},_0x3ab038={_0x4af06e:0x198,_0x3a751e:0x30,_0x3cfe95:0x221,_0x9a8bcf:0x342,_0x5f5264:0x2d9,_0x1c11fb:0xb1,_0x458609:0x47,_0x204a58:0x1bd,_0x190e99:0xd0,_0x4752de:0x131,_0x28e034:0x181,_0x1ddca9:0x1fa,_0x2858ca:0x1af,_0x46d903:0x237,_0x5150ee:0x2dd,_0x594726:0x2ef,_0x4877b2:0x183,_0xb409f0:0xb,_0x3524d2:0x89,_0x572099:0x121,_0xc68d1c:0x1fd,_0x4c4ea8:0x360,_0x498b8e:0x134,_0x3222fd:0xcc,_0x10294c:0x124,_0x2dd4fc:0x15c,_0x276f94:0x363},_0x557886={_0x16dd3e:0x819,_0x18aaff:0x6f7},_0x12ba4e={_0x4d3cd4:0x181,_0x295134:0xb,_0x103682:0x173,_0x491a57:0x20},_0x380477={_0x2b3963:0xa9},_0x19ac14={_0x366ce3:0x1ce,_0x393d68:0x424,_0x48bb21:0x5d8},_0x23245d={_0x1a94d2:0xad},_0x574260={_0x4b482a:0x60b,_0x20acc1:0x4d4,_0x379691:0x552,_0x1d3842:0x35f,_0x29d216:0x3f2,_0x2c0ca9:0x655,_0x56e0e5:0x6ea,_0x16c2dd:0x6f2,_0xf7ac0b:0x374,_0x363002:0x44a,_0x508865:0x4a8,_0x1b0a2a:0x41e,_0x57236b:0x57d,_0x378073:0x4c1,_0x2ec64b:0x6cb,_0x132e45:0x631,_0x78288:0x5be,_0x4bb59d:0x7a6,_0x4d4b54:0x663,_0x5aea82:0x8c6},_0x374e5d={_0x1e8f04:0x48},_0x590d3e={_0x275dff:0x5f},_0x41c035={_0x18df5b:0x139},_0x25261b={};_0x25261b[_0x5ab75b(_0x1cacb6._0xd7ed34,_0x1cacb6._0x205f0f)]=function(_0x2391ab,_0xd771dc){return _0x2391ab===_0xd771dc;},_0x25261b[_0x5ab75b(0x395,0x221)]=_0x79a983(_0x1cacb6._0x5522ab,_0x1cacb6._0x30c631);function _0x79a983(_0xc2100e,_0x11820b){return _0x75393(_0xc2100e,_0x11820b-_0x41c035._0x18df5b);}const _0x2b2756=_0x25261b;if(this['stopped']||this[_0x79a983(0x608,0x4dc)+'necting']||this[_0x79a983(0x62c,0x667)+_0x5ab75b(0x2d5,0x207)]())return;function _0x5ab75b(_0x393c56,_0x28d7cf){return _0x75393(_0x28d7cf,_0x393c56- -_0x590d3e._0x275dff);}this[_0x5ab75b(0x344,_0x1cacb6._0x496e2a)+'necting']=!![],this[_0x79a983(_0x1cacb6._0x323e1b,0x487)+'empt']+=0x1;const _0x582a1e=this[_0x79a983(_0x1cacb6._0x13286d,0x487)+_0x79a983(0x3c1,0x550)],_0x502d3d=buildRelayWsUrl(this[_0x79a983(_0x1cacb6._0x291668,0x5ec)]['config']);this[_0x5ab75b(_0x1cacb6._0x32d658,0x274)](_0x5ab75b(_0x1cacb6._0x50aa5a,0x550)+'nnect\x20at'+_0x5ab75b(_0x1cacb6._0x409728,_0x1cacb6._0x268c8c)+_0x582a1e+_0x79a983(0x4f7,_0x1cacb6._0x23b90b)+redactRelayWsUrl(_0x502d3d));const _0x4844e9={};_0x4844e9[_0x5ab75b(0x481,_0x1cacb6._0x2f7eb9)+'ad']=0x19*0x400*0x400;const _0xf9c744=new _0x4cde07(_0x502d3d,_0x4844e9);this['relaySoc'+_0x5ab75b(0x372,_0x1cacb6._0x8d35f8)]=_0xf9c744,_0xf9c744[_0x79a983(_0x1cacb6._0xb02179,_0x1cacb6._0x5e9267)](_0x79a983(0x548,0x419),()=>{if(this[_0x504886(0x64d,_0x574260._0x4b482a)]||this[_0x48f7cf(0x4c9,_0x574260._0x20acc1)+_0x48f7cf(_0x574260._0x379691,0x44b)]!==_0xf9c744){_0xf9c744[_0x48f7cf(_0x574260._0x1d3842,_0x574260._0x29d216)]();return;}function _0x504886(_0x452d59,_0x33e0da){return _0x79a983(_0x33e0da,_0x452d59-0xd2);}this['relayCon'+_0x48f7cf(_0x574260._0x2c0ca9,_0x574260._0x56e0e5)]=![],this[_0x504886(_0x574260._0x16c2dd,0x728)+_0x48f7cf(_0x574260._0xf7ac0b,0x1ce)+_0x48f7cf(_0x574260._0x363002,_0x574260._0x508865)]=Date[_0x504886(_0x574260._0x1b0a2a,_0x574260._0x57236b)]();const _0x36f2dd={};_0x36f2dd[_0x504886(0x5ae,_0x574260._0x378073)+'nected']=!![],_0x36f2dd[_0x48f7cf(0x6b9,_0x574260._0x2ec64b)+'r']=null,this[_0x48f7cf(_0x574260._0x132e45,0x772)+_0x48f7cf(0x2d0,0x20a)](_0x36f2dd);function _0x48f7cf(_0x202c1d,_0x2b9c0f){return _0x79a983(_0x2b9c0f,_0x202c1d-_0x374e5d._0x1e8f04);}this[_0x48f7cf(0x52e,0x3de)](_0x48f7cf(_0x574260._0x78288,_0x574260._0x4bb59d)+_0x504886(_0x574260._0x4d4b54,0x633)+_0x48f7cf(0x451,0x3de)+_0x582a1e),this[_0x504886(0x6c4,_0x574260._0x5aea82)+_0x48f7cf(0x330,0x338)]();}),_0xf9c744['on'](_0x79a983(0x534,_0x1cacb6._0x4ccd3b),(_0x4beff2,_0x249f9d)=>{function _0x4def50(_0x5f4deb,_0x32a3cc){return _0x5ab75b(_0x32a3cc-0x102,_0x5f4deb);}function _0x521cc7(_0x40084b,_0x5a79df){return _0x5ab75b(_0x40084b- -_0x23245d._0x1a94d2,_0x5a79df);}void this[_0x4def50(0x1f4,_0x19ac14._0x366ce3)+_0x4def50(_0x19ac14._0x393d68,_0x19ac14._0x48bb21)+'ge'](_0x4beff2,_0x249f9d);}),_0xf9c744['on'](_0x5ab75b(_0x1cacb6._0x554e33,0x1d1),()=>{const _0x50288d={_0x1a1b94:0x49f};function _0xae9af5(_0x38a8bb,_0x3621a4){return _0x79a983(_0x38a8bb,_0x3621a4-_0x380477._0x2b3963);}function _0x25f49c(_0x4fdebc,_0x2fa0b6){return _0x79a983(_0x2fa0b6,_0x4fdebc- -_0x50288d._0x1a1b94);}this[_0x25f49c(_0x12ba4e._0x4d3cd4,-_0x12ba4e._0x295134)+_0x25f49c(-_0x12ba4e._0x103682,-_0x12ba4e._0x491a57)+_0xae9af5(0x2b3,0x4ab)]=Date['now']();}),_0xf9c744[_0x79a983(0x505,_0x1cacb6._0x5e9267)](_0x2b2756[_0x79a983(_0x1cacb6._0x5bc419,0x52d)],_0x68c9c6=>{const _0x2cc2ef={_0x108254:0x211};function _0x3a0ae7(_0x263322,_0x43c701){return _0x79a983(_0x263322,_0x43c701- -0x2f6);}function _0x35deff(_0xf730c9,_0x18bed7){return _0x79a983(_0xf730c9,_0x18bed7-_0x2cc2ef._0x108254);}this[_0x35deff(_0x557886._0x16dd3e,_0x557886._0x18aaff)]('relay\x20er'+_0x35deff(0x558,0x604)+String(_0x68c9c6));}),_0xf9c744['once'](_0x5ab75b(_0x1cacb6._0x898599,_0x1cacb6._0x32df2c),(_0xd8c0c8,_0x5ab169)=>{const _0xcc38c1={_0xbc0a39:0x4bf},_0x42362e=('3|1|2|6|'+_0x4a9eb7(_0x3ab038._0x4af06e,0x205)+'8')[_0x2cb82c(-_0x3ab038._0x3a751e,-0x9b)]('|');function _0x4a9eb7(_0x142f5e,_0x47d33a){return _0x79a983(_0x47d33a,_0x142f5e- -0x43a);}let _0x402090=0x0;function _0x2cb82c(_0x577b5f,_0x42e189){return _0x79a983(_0x42e189,_0x577b5f- -_0xcc38c1._0xbc0a39);}while(!![]){switch(_0x42362e[_0x402090++]){case'0':this['log'](_0x4a9eb7(0xe5,-0xe9)+_0x4a9eb7(0xaa,-0x1d)+'ed\x20code='+_0xd8c0c8+_0x4a9eb7(0x1e2,_0x3ab038._0x3cfe95)+(_0x5ab169[_0x2cb82c(-0x7f,-0x13c)]()||'<none>'));continue;case'1':this[_0x4a9eb7(0xa2,0x57)+_0x2cb82c(0x14e,_0x3ab038._0x9a8bcf)]=![];continue;case'2':this[_0x2cb82c(-0x130,-_0x3ab038._0x5f5264)+_0x2cb82c(_0x3ab038._0x1c11fb,-0x155)]();continue;case'3':this[_0x4a9eb7(_0x3ab038._0x458609,_0x3ab038._0x204a58)+'ket']===_0xf9c744&&(this[_0x2cb82c(-0x3e,-0x154)+_0x4a9eb7(_0x3ab038._0x190e99,_0x3ab038._0x4752de)]=null);continue;case'4':this[_0x4a9eb7(_0x3ab038._0x28e034,0x191)+_0x2cb82c(-0x58,-_0x3ab038._0x1ddca9)+_0x4a9eb7(-0x37,-0x1ff)]=null;continue;case'5':this[_0x4a9eb7(_0x3ab038._0x2858ca,0x13e)+_0x2cb82c(-_0x3ab038._0x46d903,-_0x3ab038._0x5150ee)]({'relayConnected':![],'gatewayConnected':![],'clientCount':0x0,'lastError':_0x2b2756['KVtDi'](_0xd8c0c8,0x3e8)?null:_0x2cb82c(-0x162,-_0x3ab038._0x594726)+'osed:\x20'+(_0x5ab169[_0x2cb82c(-0x7f,-_0x3ab038._0x4877b2)]()||_0xd8c0c8)});continue;case'6':this[_0x4a9eb7(_0x3ab038._0xb409f0,0xf7)+_0x2cb82c(-0xd3,-_0x3ab038._0x3524d2)+_0x2cb82c(-_0x3ab038._0x572099,-0x25e)]=null;continue;case'7':this[_0x4a9eb7(_0x3ab038._0xc68d1c,_0x3ab038._0x4c4ea8)+_0x4a9eb7(0x167,-0x1e)]();continue;case'8':this[_0x4a9eb7(-_0x3ab038._0x498b8e,-_0x3ab038._0x3222fd)+_0x2cb82c(-0x1f5,-_0x3ab038._0x10294c)+_0x2cb82c(_0x3ab038._0x2dd4fc,_0x3ab038._0x276f94)]();continue;}break;}});}async[_0x75393(0x24d,0x12b)+'layMessa'+'ge'](_0x422cc6,_0xaff9b){const _0x4aa2b8={_0x3c045a:0xfe,_0x151be2:0x39e,_0x337003:0x1ce,_0x2a00a7:0x308,_0x2111f6:0x278,_0x214014:0x1a1,_0x166327:0x525,_0x5d05a3:0x325,_0x56e52b:0x34b,_0x14323a:0x510,_0x5ef0c6:0x390,_0x485c4e:0x5fe,_0x4d595c:0x49a,_0xf2ffa1:0x2d9,_0x21df29:0x292,_0x2547e4:0xf9,_0x1670ce:0x5a4,_0x45d935:0x278,_0x38d8ee:0x5e8,_0x27641a:0x73,_0x3a3222:0x280,_0xfe7e3a:0x2e3},_0x249b51={_0x1dbf03:0x1d9};function _0x1dffa5(_0xcc7a34,_0x11bd24){return _0x143ed5(_0x11bd24-_0x249b51._0x1dbf03,_0xcc7a34);}const _0x48410a={'jyZLP':function(_0x1bddb0,_0x8d26a6){return _0x1bddb0(_0x8d26a6);}};function _0x2aadf4(_0x5ea30a,_0x476763){return _0x143ed5(_0x476763-0xfa,_0x5ea30a);}this[_0x2aadf4(0x32d,0x3ec)+_0x2aadf4(-_0x4aa2b8._0x3c045a,0xf8)+_0x2aadf4(_0x4aa2b8._0x151be2,_0x4aa2b8._0x337003)]=Date[_0x1dffa5(_0x4aa2b8._0x2a00a7,0x1f7)]();if(_0xaff9b){this[_0x1dffa5(0x178,_0x4aa2b8._0x2111f6)+'rQueueGa'+_0x2aadf4(0x28f,_0x4aa2b8._0x214014)+_0x1dffa5(_0x4aa2b8._0x166327,0x468)]({'kind':_0x1dffa5(_0x4aa2b8._0x5d05a3,_0x4aa2b8._0x56e52b),'data':normalizeBinary(_0x422cc6)});return;}const _0x2f4f5d=normalizeText(_0x422cc6);if(_0x2f4f5d==null)return;const _0x38b925=_0x48410a[_0x2aadf4(0x359,0x194)](parseControl,_0x2f4f5d);if(_0x38b925){this['handleRe'+_0x1dffa5(_0x4aa2b8._0x14323a,_0x4aa2b8._0x5ef0c6)+'ol'](_0x38b925['event'],_0x38b925[_0x1dffa5(_0x4aa2b8._0x485c4e,_0x4aa2b8._0x4d595c)]);return;}const _0x12cd58=parseConnectStartIdentity(_0x2f4f5d);_0x12cd58&&this[_0x1dffa5(0x313,0x2ef)+_0x2aadf4(_0x4aa2b8._0xf2ffa1,0x314)+_0x2aadf4(_0x4aa2b8._0x21df29,_0x4aa2b8._0x2547e4)](_0x12cd58['id'],_0x12cd58['label']);const _0x39121d={};_0x39121d['kind']=_0x1dffa5(_0x4aa2b8._0x1670ce,0x4d1),_0x39121d['text']=_0x2f4f5d,this[_0x1dffa5(0x3ce,_0x4aa2b8._0x45d935)+_0x2aadf4(_0x4aa2b8._0x38d8ee,0x3fa)+_0x1dffa5(_0x4aa2b8._0x27641a,_0x4aa2b8._0x3a3222)+_0x2aadf4(_0x4aa2b8._0xfe7e3a,0x389)](_0x39121d);}[_0x75393(0x1e0,0x12b)+_0x143ed5(0x1b7,0x79)+'ol'](_0x436652,_0x6e4260){const _0x44af80={_0x35f8a8:0x2c4,_0x587d52:0x184,_0x41c135:0x5ac,_0x5d6dcd:0x95,_0x5a3989:0x516,_0x4850ad:0x9d9,_0x53d9a2:0x19c,_0x4ee42b:0x21,_0x371f41:0x16,_0x2dc87b:0x171,_0xd3c103:0xcc,_0x3ddb06:0x61b,_0x2b5a2b:0x610,_0x5b3a70:0x529,_0x282fb7:0x86a,_0x3eec7a:0x734,_0x20e70d:0x674,_0xcdf6fb:0x31,_0x196209:0x1d1,_0x52d5f5:0x1e9,_0x5ed533:0x5da,_0x420647:0x345,_0x1bd48a:0x5b4,_0x233b74:0x78d,_0x34ad2a:0x17e,_0xa7bafe:0x376,_0x49e7d4:0x88a,_0x18bdf3:0x107,_0x5ed596:0x848,_0x32896a:0x2e7,_0x11dd3c:0x193,_0x250dc2:0x14e,_0x49daa0:0x9ec,_0x49b229:0x4c,_0x8f78f4:0x1b7,_0x1ea4fa:0x78d,_0x5ac6fd:0x943,_0x4d7a2b:0x590,_0x1447f1:0x2cc,_0x344c4b:0x72f,_0x157c68:0x90c,_0x35ded1:0x77e,_0x338d8c:0x862,_0x3ee532:0xda,_0x5ef4be:0x2c3,_0x36f69f:0x72,_0x217f82:0x19c,_0x5d99c3:0x2d5,_0x2fc1e5:0x2a2,_0x57debb:0x63e,_0xb3786:0x619,_0x417a50:0x5a3,_0x1cf234:0x91a,_0x548a1:0x91b,_0x3e37ce:0x171,_0x4ba040:0x1bf,_0x2eac37:0x118,_0xea11df:0x120,_0x2b7c6d:0x252,_0xba6936:0x87f,_0x3fc045:0x7d0,_0x4a7f59:0x33f,_0x4c27c9:0x969,_0x3e68a5:0x843,_0x5e57e7:0xc4,_0x7f8181:0x28f,_0x3a5071:0x837,_0x4ef692:0x718,_0x34f46e:0x53b,_0x4bd79d:0xea,_0x1b573b:0x29,_0x504489:0x7e9,_0x56213b:0x4a0,_0x58d9d5:0x1ea,_0x3d5998:0x180,_0x594758:0xc1,_0x5c42f5:0x34,_0x29f905:0xe3,_0x25af2c:0x19b,_0x14079f:0x35f,_0x52a802:0x117,_0x56ddec:0x4cc,_0x426f37:0x645,_0x412ed9:0x840,_0x362439:0x8ae,_0x218c85:0x3c8,_0x46195f:0xa1e,_0x49f0dc:0x8ee,_0x264117:0x70e,_0x9ea7bb:0x640,_0x1196fd:0x1ea,_0x4bd670:0xdd},_0xdc98db={_0x2e0f10:0x5d5},_0x56e69b={};_0x56e69b['zNlgy']=function(_0x2748ce,_0xbd01e8){return _0x2748ce===_0xbd01e8;};function _0x4d2572(_0x5b649a,_0x1b18e0){return _0x143ed5(_0x5b649a-0x5a,_0x1b18e0);}_0x56e69b[_0x4d2572(0xea,0x2be)]=_0x33da0b(0x7f5,0x78e)+'isconnec'+_0x4d2572(_0x44af80._0x35f8a8,0x40c);const _0x37dc3c=_0x56e69b;function _0x33da0b(_0x245183,_0x3f3d10){return _0x143ed5(_0x3f3d10-_0xdc98db._0x2e0f10,_0x245183);}if(_0x436652==='client_c'+_0x4d2572(0x193,_0x44af80._0x587d52)||_0x436652===_0x33da0b(0x48a,_0x44af80._0x41c135)+_0x33da0b(0x965,0x7e1)){const _0x55116d=this[_0x4d2572(0x397,0x20e)][_0x33da0b(0x7f6,0x717)+_0x4d2572(_0x44af80._0x5d6dcd,0x11d)],_0x13fd01=_0x6e4260??Math[_0x33da0b(0x6a2,_0x44af80._0x5a3989)](0x1,this[_0x33da0b(_0x44af80._0x4850ad,0x912)][_0x4d2572(_0x44af80._0x53d9a2,0xd7)+_0x4d2572(0x95,_0x44af80._0x4ee42b)]),_0x392a13=Boolean(this[_0x4d2572(_0x44af80._0x371f41,-0x18)+_0x33da0b(0x719,0x6a3)+'Timer']);_0x13fd01>0x0&&this[_0x4d2572(_0x44af80._0x2dc87b,-0x2e)+'mandStar'+'tedAtMs']==null&&(this[_0x33da0b(0x52d,0x6ec)+'mandStar'+'tedAtMs']=Date[_0x33da0b(0x5e8,0x5f3)]());const _0x493aa2={};_0x493aa2[_0x4d2572(_0x44af80._0x53d9a2,_0x44af80._0xd3c103)+_0x33da0b(_0x44af80._0x3ddb06,_0x44af80._0x2b5a2b)]=_0x13fd01,this[_0x33da0b(0x728,0x890)+_0x33da0b(_0x44af80._0x5b3a70,0x52f)](_0x493aa2);if(_0x37dc3c['zNlgy'](_0x13fd01,0x0))this[_0x33da0b(_0x44af80._0x282fb7,0x7ce)+_0x33da0b(_0x44af80._0x3eec7a,0x53b)+'t'](),this[_0x33da0b(0x784,0x5ad)+'GatewayI'+_0x33da0b(_0x44af80._0x20e70d,0x6a3)](_0x4d2572(_0x44af80._0xcdf6fb,-_0x44af80._0x196209)+'ount_zer'+'o');else{this[_0x4d2572(-0x25,_0x44af80._0x52d5f5)+_0x33da0b(0x6fa,_0x44af80._0x5ed533)+'eClose'](_0x33da0b(0x74d,0x78e)+'emand_re'+_0x4d2572(0x1c4,_0x44af80._0x420647));shouldRecycleGatewayForFreshClient(_0x55116d,_0x13fd01,this['isGatewa'+_0x33da0b(0x486,_0x44af80._0x1bd48a)](),_0x392a13)&&(this[_0x33da0b(0x5a8,_0x44af80._0x233b74)](_0x4d2572(0x341,0x2d7)+_0x4d2572(_0x44af80._0x34ad2a,_0x44af80._0xa7bafe)+'requeste'+_0x33da0b(0x7b3,_0x44af80._0x49e7d4)+_0x4d2572(0x1f2,_0x44af80._0x18bdf3)+_0x4d2572(0x8e,0x269)+'d'),this['closeGat'+_0x33da0b(0x99f,_0x44af80._0x5ed596)]());if(this['isGatewa'+_0x33da0b(0x559,0x5b4)]()){const _0x3129eb={};_0x3129eb[_0x4d2572(_0x44af80._0x32896a,0x238)+_0x4d2572(_0x44af80._0x11dd3c,_0x44af80._0x250dc2)]=!![],_0x3129eb[_0x33da0b(_0x44af80._0x49daa0,0x918)+'r']=null,this['updateSn'+_0x4d2572(-_0x44af80._0x49b229,-_0x44af80._0x8f78f4)](_0x3129eb),this[_0x33da0b(0x5c5,_0x44af80._0x1ea4fa)](_0x33da0b(_0x44af80._0x5ac6fd,0x8bc)+_0x33da0b(_0x44af80._0x4d7a2b,0x718)+_0x4d2572(0x32f,_0x44af80._0x1447f1)+_0x33da0b(0x9fd,0x875)+_0x33da0b(_0x44af80._0x344c4b,0x63b)+this[_0x33da0b(0x881,_0x44af80._0x157c68)+'ince'](this[_0x33da0b(_0x44af80._0x35ded1,_0x44af80._0x338d8c)+_0x4d2572(_0x44af80._0x11dd3c,0x9c)+_0x33da0b(0x88a,0x6aa)])+(_0x4d2572(0x207,0x1af)+'keStarte'+'d=')+this['gatewayH'+_0x4d2572(0x2c8,0x3e5)+_0x4d2572(_0x44af80._0x3ee532,_0x44af80._0x5ef4be)]);}this[_0x4d2572(_0x44af80._0x36f69f,-_0x44af80._0x217f82)+'tewayCon'+_0x4d2572(_0x44af80._0x5d99c3,0x39f)]();}this['log'](_0x4d2572(_0x44af80._0x2fc1e5,0x2d0)+'ntrol\x20ev'+_0x33da0b(_0x44af80._0x57debb,0x658)+_0x436652+_0x33da0b(0x5ab,0x6ce)+_0x13fd01+(_0x33da0b(_0x44af80._0xb3786,0x552)+_0x33da0b(0x506,_0x44af80._0x417a50)+_0x33da0b(_0x44af80._0x1cf234,0x754))+this[_0x33da0b(_0x44af80._0x548a1,0x90c)+_0x33da0b(0x4b0,0x55e)](this[_0x4d2572(_0x44af80._0x3e37ce,_0x44af80._0x4ba040)+_0x4d2572(_0x44af80._0x2eac37,_0x44af80._0xea11df)+'tedAtMs'])+_0x4d2572(_0x44af80._0x2b7c6d,0x11f)+this[_0x33da0b(_0x44af80._0xba6936,_0x44af80._0x3fc045)+'atewayMe'+'ssages'][_0x33da0b(0x9cd,0x81f)]);return;}if(_0x436652==='client_d'+'isconnec'+_0x33da0b(0x674,0x83f)){this[_0x4d2572(0x220,_0x44af80._0x4a7f59)+_0x33da0b(_0x44af80._0x4c27c9,_0x44af80._0x3e68a5)+_0x4d2572(0xda,0x33)]=![];const _0x5c0d78={};_0x5c0d78[_0x4d2572(0x19c,_0x44af80._0x5e57e7)+'unt']=0x0,this[_0x4d2572(0x315,_0x44af80._0x7f8181)+'apshot'](_0x5c0d78),this[_0x33da0b(_0x44af80._0x3a5071,0x7ce)+_0x33da0b(_0x44af80._0x4ef692,_0x44af80._0x34f46e)+'t'](),this['schedule'+_0x4d2572(0x16f,0x1ab)+'dleClose'](_0x37dc3c[_0x4d2572(_0x44af80._0x4bd79d,-_0x44af80._0x1b573b)]),this[_0x33da0b(_0x44af80._0x504489,0x78d)](_0x4d2572(0x2a2,_0x44af80._0x56213b)+_0x4d2572(_0x44af80._0x58d9d5,0x24c)+_0x33da0b(0x6bd,0x7f9)+_0x4d2572(_0x44af80._0x3d5998,0x31b)+'nnected\x20'+'sinceCli'+_0x4d2572(_0x44af80._0x594758,_0x44af80._0x5c42f5)+_0x4d2572(_0x44af80._0x29f905,_0x44af80._0x25af2c)+this[_0x33da0b(0x8b3,0x90c)+'ince'](this[_0x4d2572(0x171,_0x44af80._0x14079f)+_0x4d2572(_0x44af80._0x2eac37,_0x44af80._0x52a802)+_0x33da0b(_0x44af80._0x56ddec,_0x44af80._0x426f37)])+(_0x4d2572(0x7c,-_0x44af80._0x18bdf3)+_0x33da0b(0x900,_0x44af80._0x412ed9)+'nMs=')+this[_0x33da0b(_0x44af80._0x362439,0x90c)+_0x33da0b(_0x44af80._0x218c85,0x55e)](this[_0x33da0b(_0x44af80._0x46195f,_0x44af80._0x338d8c)+_0x33da0b(_0x44af80._0x49f0dc,_0x44af80._0x264117)+'AtMs']));return;}this[_0x33da0b(_0x44af80._0x9ea7bb,0x78d)]('relay\x20co'+_0x4d2572(_0x44af80._0x1196fd,_0x44af80._0xa7bafe)+_0x4d2572(_0x44af80._0x4bd670,0x26c)+_0x436652);}[_0x143ed5(0x9f,0x1b3)+_0x75393(0x58c,0x4f5)+_0x143ed5(0xa7,-0x38)+_0x143ed5(0x28f,0x429)](_0x24af08){const _0x2e163c={_0x2541c2:0x6d6,_0x1228e7:0x608,_0x2bab8c:0x2f1,_0x598796:0x387,_0x4473ea:0x210,_0x386bc2:0x355,_0x4ccd81:0x44a,_0x598b74:0x583,_0x14a149:0x386,_0x23aa02:0x312,_0x2e4544:0x53c,_0x107929:0x607,_0x57542f:0x7b2,_0x579623:0x6be,_0x45fb9c:0x403,_0x167489:0x5fa,_0x2427eb:0x361,_0x523aa5:0x64a,_0x573d9e:0x23c,_0x1d674d:0x539,_0x29ce45:0x62b,_0x4c4e58:0x1ee,_0x19970:0x6e3,_0x5c4682:0x6bd,_0x487baa:0x2ae,_0x4482cd:0x4e8,_0x1530f9:0x56c,_0x544647:0x73f,_0x4009dc:0x415,_0x4ead2e:0x3d8,_0x38446e:0x3bd,_0x53bf0e:0x25b,_0x47e85e:0x39f,_0x46c241:0x5ac,_0x30bba5:0x6b4,_0x2bd079:0x612,_0x4b730b:0x4fe,_0x57fe49:0x551,_0xbb5fb9:0x805,_0x401e83:0x612,_0x3138e0:0x450,_0x5647f3:0x32e,_0x2ad6b5:0x4e4,_0x185b41:0x423,_0xf45e13:0x4ba,_0x26440e:0x393,_0x376436:0x193,_0x24d45e:0x2b8,_0x561100:0x1f2},_0x46c826={_0x3e0a9e:0x25d},_0x47f0ee={'xMJkM':function(_0x46fe5a,_0x60c8ed){return _0x46fe5a(_0x60c8ed);},'PyRVQ':_0x5f3c72(_0x2e163c._0x2541c2,_0x2e163c._0x1228e7)+_0x5f3c72(0x136,_0x2e163c._0x2bab8c)+_0x5f3c72(0x185,_0x2e163c._0x598796)+_0x112d63(_0x2e163c._0x4473ea,0x1cb)+_0x5f3c72(_0x2e163c._0x386bc2,0x2f3)+'en;\x20awai'+_0x5f3c72(0x387,_0x2e163c._0x4ccd81)+_0x5f3c72(_0x2e163c._0x598b74,0x481)+_0x5f3c72(0x5fc,0x669)},_0x2d55fe=_0x24af08[_0x5f3c72(_0x2e163c._0x14a149,_0x2e163c._0x23aa02)]===_0x5f3c72(_0x2e163c._0x2e4544,0x69c)&&isConnectHandshakeRequest(_0x24af08[_0x5f3c72(_0x2e163c._0x107929,0x69c)]);function _0x112d63(_0x14dab5,_0x23d530){return _0x143ed5(_0x14dab5-_0x46c826._0x3e0a9e,_0x23d530);}if(_0x24af08[_0x5f3c72(0x2b6,0x312)]===_0x5f3c72(_0x2e163c._0x57542f,0x69c)){const _0x1bf3b0=summarizeJsonFrame(_0x24af08[_0x112d63(0x555,_0x2e163c._0x579623)]);_0x1bf3b0&&this[_0x112d63(0x415,0x51e)]('relay\x20fr'+_0x112d63(_0x2e163c._0x45fb9c,0x53f)+_0x1bf3b0+(_0x5f3c72(_0x2e163c._0x167489,0x551)+_0x5f3c72(0x4aa,0x605))+_0x2d55fe+(_0x5f3c72(0x3ac,_0x2e163c._0x2427eb)+'Open=')+this[_0x5f3c72(0x6a3,_0x2e163c._0x523aa5)+_0x112d63(_0x2e163c._0x573d9e,0x403)]()+'\x20queued='+this[_0x5f3c72(0x54e,0x59f)+_0x5f3c72(_0x2e163c._0x1d674d,_0x2e163c._0x29ce45)+'ssages'][_0x5f3c72(0x5e1,0x5ee)]);}const _0x3bde79=this[_0x5f3c72(0x352,0x453)+_0x112d63(0x392,_0x2e163c._0x4c4e58)];if(!_0x3bde79||_0x3bde79[_0x5f3c72(0x8de,_0x2e163c._0x19970)+'te']!==_0x4cde07[_0x5f3c72(0x5c0,_0x2e163c._0x5c4682)]){this[_0x5f3c72(0x40d,0x3bc)+_0x112d63(_0x2e163c._0x487baa,0x2be)+_0x5f3c72(_0x2e163c._0x4482cd,0x61f)]();if(shouldDropStaleConnectAfterGatewayReopen(_0x47f0ee[_0x112d63(0x44f,_0x2e163c._0x1530f9)](Boolean,_0x3bde79&&_0x3bde79[_0x5f3c72(_0x2e163c._0x544647,_0x2e163c._0x19970)+'te']===_0x4cde07['OPEN']),_0x2d55fe)){this[_0x112d63(_0x2e163c._0x4009dc,_0x2e163c._0x4ead2e)](_0x47f0ee[_0x5f3c72(0x5da,0x68e)]);return;}this[_0x112d63(_0x2e163c._0x38446e,0x31a)+_0x112d63(0x56a,0x469)+_0x5f3c72(_0x2e163c._0x53bf0e,_0x2e163c._0x47e85e)+'e'](_0x24af08);return;}function _0x5f3c72(_0x3158a0,_0x3e8340){return _0x143ed5(_0x3e8340-0x3a4,_0x3158a0);}if(!this[_0x5f3c72(_0x2e163c._0x46c241,0x56a)+_0x5f3c72(_0x2e163c._0x30bba5,_0x2e163c._0x2bd079)+'Started']){if(!_0x2d55fe){this[_0x112d63(_0x2e163c._0x38446e,_0x2e163c._0x4b730b)+_0x5f3c72(_0x2e163c._0x57fe49,0x6b1)+_0x112d63(0x258,0x36b)+'e'](_0x24af08);return;}this[_0x5f3c72(0x380,0x56a)+_0x5f3c72(_0x2e163c._0xbb5fb9,_0x2e163c._0x401e83)+_0x5f3c72(_0x2e163c._0x3138e0,0x424)]=!![],this[_0x112d63(0x415,0x425)](_0x5f3c72(0x5f5,0x68b)+'handshak'+_0x5f3c72(0x6f5,0x5c7)+_0x5f3c72(0x33a,0x477)+'='+this[_0x112d63(0x458,_0x2e163c._0x5647f3)+_0x112d63(_0x2e163c._0x2ad6b5,_0x2e163c._0x185b41)+_0x5f3c72(_0x2e163c._0xf45e13,0x4e9)]['length']);}this[_0x112d63(_0x2e163c._0x26440e,_0x2e163c._0x376436)+_0x112d63(_0x2e163c._0x24d45e,_0x2e163c._0x561100)](_0x24af08);}[_0x143ed5(0x18,0xa3)+'tewayCon'+_0x75393(0x59a,0x470)](){const _0x189593={_0x1f4dd1:0x3bf,_0x70d31f:0x314,_0x4c9160:0x32d,_0x4c7360:0x771,_0x2b4567:0x418,_0x1198be:0x28f,_0x42b91b:0x8c,_0x49cd10:0x5f1,_0x237e16:0x605,_0x3047ca:0x40f,_0x3f5b39:0x26d,_0x490578:0x770,_0x287285:0x16c,_0x40ec5a:0x64f,_0x4790cc:0x518,_0x236a0c:0x886,_0x5f3f47:0x782,_0x27b983:0x4c3,_0x7fb7aa:0x506,_0x2358cf:0x506},_0x1b4374={_0x2a5759:0x2c6,_0x40f8b0:0x3c2,_0x41992e:0x5fc,_0x4df8e8:0x2e1,_0x304d4a:0x288,_0x1b0de6:0x1da,_0x31c0fd:0x6af,_0xa731d0:0x3c3,_0x3398db:0x336,_0x4f24bc:0x56b,_0xe10597:0x45d,_0x366aa0:0x20a,_0xaaf142:0x64,_0x53deab:0x6e2,_0x122d46:0x5b8,_0x8875af:0x271,_0x517886:0x468,_0x1bd9ee:0x24f,_0x446c21:0x50b,_0x102f8b:0x61a,_0xddef43:0x1de,_0x2eb38:0x27e,_0x235e6b:0x1bc,_0x3c2eea:0x57a,_0x5e1e6b:0x1ea,_0x878128:0x378,_0x577a24:0x2b9,_0x53eda0:0x320,_0x15c382:0x2d1,_0x18fdc5:0x58d,_0x487b2e:0x346,_0x26e847:0x164,_0x123556:0x5e8,_0x1d0225:0x431,_0x436629:0x35f,_0x540bee:0x427,_0x4ae2b4:0x396,_0xd4fc63:0x239,_0x57f7f7:0x397,_0x4be6d1:0x1b3},_0x1cf9b9={_0x303da6:0xf7,_0x5dac66:0xc3},_0x25f035={_0x31bba8:0x148},_0x411c7b={_0x4bcfb6:0x116,_0x43b43a:0x14a,_0x70dab6:0x24c},_0x27959f={_0x2f5587:0x16e},_0x1f8d4d={_0x3cae6d:0x599,_0x54d97:0x6cd,_0x4faf7f:0x26f,_0x194864:0x8de,_0xcf6a76:0x71a,_0x3add2a:0x5d7,_0xf3cbb4:0x6fb,_0x637629:0x777,_0x1a4f5a:0x4d6,_0x5729cb:0x5bf,_0x2718ca:0x601,_0x31045f:0x4ab,_0x4b8c10:0x447,_0x209112:0x865,_0x337074:0x871,_0x27b9b1:0x748,_0x5c0c48:0x214,_0xb083d7:0x6a2,_0x5361d0:0x98c,_0x107deb:0x32b,_0x418d96:0x45e,_0x27069c:0x58d,_0x2f0460:0x7e6,_0x5ba77d:0x473,_0x150741:0x55e,_0xb183dc:0x5a4,_0x5bd2c8:0x55a,_0x4d830f:0x563,_0x4a9d8e:0x42f,_0x4e560e:0x592,_0x14b499:0x6e7,_0xda8693:0x726,_0x44447d:0x8c8},_0x5218c9={_0x226766:0x2a2},_0x26f91d={};_0x26f91d[_0x40a702(0x525,_0x189593._0x1f4dd1)]=function(_0x5663db,_0x53a679){return _0x5663db===_0x53a679;};function _0x503cc7(_0x355abe,_0x158824){return _0x75393(_0x158824,_0x355abe-_0x5218c9._0x226766);}const _0x342d78=_0x26f91d;if(this[_0x40a702(0x301,0x2d4)]||!this[_0x40a702(0x2f6,0x3c0)+'pen']()||this[_0x40a702(0x4ca,_0x189593._0x70d31f)+'onnectin'+'g']||this[_0x40a702(0x510,_0x189593._0x4c9160)+_0x40a702(-0x59,0x66)]()||!this['hasGatew'+_0x503cc7(0x563,_0x189593._0x4c7360)]())return;this[_0x503cc7(_0x189593._0x2b4567,_0x189593._0x1198be)+_0x40a702(0x103,_0x189593._0x42b91b)+_0x40a702(0xc4,0xf5)]('gateway_'+_0x503cc7(_0x189593._0x49cd10,_0x189593._0x237e16)+_0x40a702(_0x189593._0x3047ca,_0x189593._0x3f5b39)+_0x503cc7(0x701,_0x189593._0x490578)),this[_0x503cc7(0x724,0x7ef)+_0x40a702(0x1fb,_0x189593._0x287285)+'g']=!![],this[_0x503cc7(_0x189593._0x40ec5a,_0x189593._0x4790cc)]('gateway\x20'+'connect\x20'+'start\x20ur'+'l='+this[_0x503cc7(0x755,_0x189593._0x236a0c)][_0x40a702(0x239,0xc0)+'rl']);const _0x2e64aa={};_0x2e64aa[_0x503cc7(_0x189593._0x5f3f47,0x704)+'ad']=0x19*0x400*0x400;const _0x53c26c=new _0x4cde07(this[_0x40a702(0x3e3,0x345)][_0x503cc7(0x4d0,_0x189593._0x27b983)+'rl'],_0x2e64aa);this['gatewayS'+'ocket']=_0x53c26c,_0x53c26c[_0x503cc7(_0x189593._0x7fb7aa,0x5dd)](_0x503cc7(0x582,0x74b),()=>{const _0x14e58b={_0x1dd763:0xa};if(this['stopped']||this[_0x252a24(_0x1f8d4d._0x3cae6d,_0x1f8d4d._0x54d97)+'ocket']!==_0x53c26c){_0x53c26c[_0x5027d5(_0x1f8d4d._0x4faf7f,0x476)]();return;}this[_0x5027d5(_0x1f8d4d._0x194864,_0x1f8d4d._0xcf6a76)+'onnectin'+'g']=![],this['gatewayH'+_0x5027d5(_0x1f8d4d._0x3add2a,_0x1f8d4d._0xf3cbb4)+_0x252a24(0x56a,0x5af)]=![],this[_0x252a24(_0x1f8d4d._0x637629,0x882)+_0x252a24(0x623,_0x1f8d4d._0x1a4f5a)+_0x252a24(_0x1f8d4d._0x5729cb,_0x1f8d4d._0x2718ca)]=Date[_0x5027d5(0x5a3,_0x1f8d4d._0x31045f)]();const _0xcf3292={};_0xcf3292[_0x252a24(0x777,0x8c3)+_0x252a24(0x623,_0x1f8d4d._0x4b8c10)]=!![],_0xcf3292[_0x5027d5(_0x1f8d4d._0x209112,0x7d0)+'r']=null,this[_0x5027d5(_0x1f8d4d._0x337074,_0x1f8d4d._0x27b9b1)+_0x5027d5(_0x1f8d4d._0x5c0c48,0x3e7)](_0xcf3292);function _0x5027d5(_0x562828,_0x555963){return _0x503cc7(_0x555963- -_0x14e58b._0x1dd763,_0x562828);}this[_0x252a24(_0x1f8d4d._0xb083d7,0x727)](_0x252a24(0x7d1,0x5c6)+_0x252a24(0x7f9,_0x1f8d4d._0x5361d0)+_0x252a24(0x43f,_0x1f8d4d._0x107deb)+_0x5027d5(0x744,0x62e)+_0x5027d5(_0x1f8d4d._0x418d96,_0x1f8d4d._0x27069c)+this[_0x5027d5(_0x1f8d4d._0x2f0460,0x7c4)+_0x252a24(_0x1f8d4d._0x5ba77d,0x484)](this[_0x5027d5(_0x1f8d4d._0x150741,_0x1f8d4d._0xb183dc)+'mandStar'+_0x252a24(_0x1f8d4d._0x5bd2c8,_0x1f8d4d._0x4d830f)]));function _0x252a24(_0x449442,_0x30a820){return _0x503cc7(_0x449442-0x53,_0x30a820);}this[_0x252a24(0x58d,_0x1f8d4d._0x4a9d8e)+_0x5027d5(_0x1f8d4d._0x4e560e,_0x1f8d4d._0x14b499)+_0x252a24(_0x1f8d4d._0xda8693,_0x1f8d4d._0x44447d)+'ges']();});function _0x40a702(_0x234614,_0x3e624b){return _0x75393(_0x234614,_0x3e624b- -_0x27959f._0x2f5587);}_0x53c26c['on'](_0x40a702(0xd3,0x1db),(_0x2a9ec2,_0x248786)=>{const _0xc427f={_0x376275:0x3f4};function _0x506d10(_0x54fcb1,_0x17e140){return _0x503cc7(_0x54fcb1-0x169,_0x17e140);}function _0x4efe1b(_0x524684,_0x51a3d5){return _0x503cc7(_0x51a3d5- -_0xc427f._0x376275,_0x524684);}this['handleGa'+_0x4efe1b(_0x411c7b._0x4bcfb6,_0x411c7b._0x43b43a)+_0x4efe1b(_0x411c7b._0x70dab6,0x332)](_0x2a9ec2,_0x248786);}),_0x53c26c[_0x503cc7(0x506,0x4f5)]('error',_0x42da4e=>{function _0x922434(_0x15a136,_0x4c5f99){return _0x40a702(_0x4c5f99,_0x15a136- -_0x25f035._0x31bba8);}this[_0x922434(_0x1cf9b9._0x303da6,_0x1cf9b9._0x5dac66)]('gateway\x20'+'error:\x20'+String(_0x42da4e));}),_0x53c26c[_0x503cc7(_0x189593._0x2358cf,0x583)]('close',(_0x166281,_0x454173)=>{const _0x15212b=(_0x1187b1(_0x1b4374._0x2a5759,0x2b5)+'3|4|1')[_0x491721(_0x1b4374._0x40f8b0,0x538)]('|');function _0x1187b1(_0x3aef49,_0x2469bb){return _0x40a702(_0x2469bb,_0x3aef49-0x229);}function _0x491721(_0x332a1b,_0x437dcd){return _0x40a702(_0x437dcd,_0x332a1b-0x1da);}let _0x41d9b6=0x0;while(!![]){switch(_0x15212b[_0x41d9b6++]){case'0':this[_0x1187b1(0x476,_0x1b4374._0x41992e)+'andshake'+_0x491721(_0x1b4374._0x4df8e8,0x14b)]=![];continue;case'1':this[_0x1187b1(_0x1b4374._0x304d4a,_0x1b4374._0x1b0de6)+'GatewayR'+_0x1187b1(0x21c,0xf9)]();continue;case'2':this[_0x1187b1(0x53d,_0x1b4374._0x31c0fd)+_0x1187b1(0x3e9,_0x1b4374._0xa731d0)+_0x491721(_0x1b4374._0x3398db,0x1f2)]=null;continue;case'3':this[_0x1187b1(_0x1b4374._0x4f24bc,_0x1b4374._0xe10597)+_0x1187b1(_0x1b4374._0x366aa0,_0x1b4374._0xaaf142)]({'gatewayConnected':![],'lastError':_0x166281===0x3e8?this[_0x1187b1(0x5ed,_0x1b4374._0x53deab)][_0x1187b1(0x5f3,_0x1b4374._0x122d46)+'r']:_0x491721(0x548,0x353)+_0x1187b1(_0x1b4374._0x8875af,0x27a)+(_0x454173[_0x1187b1(_0x1b4374._0x40f8b0,0x33a)]()||_0x166281)});continue;case'4':this[_0x1187b1(_0x1b4374._0x517886,0x25c)]('gateway\x20'+_0x1187b1(0x230,0x1ad)+_0x491721(_0x1b4374._0x1bd9ee,0x445)+'e='+_0x166281+'\x20reason='+(_0x454173['toString']()||_0x1187b1(_0x1b4374._0x446c21,_0x1b4374._0x102f8b))+(_0x491721(_0x1b4374._0xddef43,0x131)+_0x1187b1(_0x1b4374._0x2eb38,_0x1b4374._0x235e6b)+_0x1187b1(0x42f,_0x1b4374._0x3c2eea))+this['elapsedS'+_0x491721(_0x1b4374._0x5e1e6b,0xa0)](this[_0x491721(_0x1b4374._0x878128,_0x1b4374._0x577a24)+_0x491721(0x31f,_0x1b4374._0x53eda0)+_0x491721(_0x1b4374._0x15c382,0x1dd)]));continue;case'5':this[_0x491721(0x4ee,_0x1b4374._0x18fdc5)+_0x491721(_0x1b4374._0x487b2e,_0x1b4374._0x26e847)+'g']=![];continue;case'6':_0x342d78[_0x1187b1(_0x1b4374._0x123556,_0x1b4374._0x1d0225)](this[_0x1187b1(_0x1b4374._0x436629,_0x1b4374._0x540bee)+_0x491721(_0x1b4374._0x4ae2b4,_0x1b4374._0xd4fc63)],_0x53c26c)&&(this[_0x491721(0x310,_0x1b4374._0x57f7f7)+_0x491721(0x396,_0x1b4374._0x4be6d1)]=null);continue;}break;}});}[_0x143ed5(0x1a5,0x355)+'tewayMes'+_0x75393(0x2a2,0x484)](_0x9ada2c,_0x1ff138){const _0x24ee63={_0x4d33e3:0xf8,_0x47f403:0x45d,_0x39ead3:0x41,_0x3c1339:0xc8,_0x4a3652:0x2ba,_0x2f3070:0x113,_0x4be8ec:0x27f,_0x24cd89:0x5b,_0x37c884:0x226,_0xb5006c:0xce,_0x2a1bac:0x116,_0x126430:0xf4,_0x41374a:0x370,_0x29c743:0x26,_0x28fe6e:0xea,_0x107c38:0x287,_0x8e17ba:0x9d,_0x410676:0x128,_0x496516:0x156},_0x5530d3={_0x306884:0x272},_0x14bf68=this[_0x4ddc79(-_0x24ee63._0x4d33e3,0xd6)+'ket'];if(!_0x14bf68||_0x14bf68[_0x4ddc79(0x362,0x2c2)+'te']!==_0x4cde07[_0x193e69(0x2d4,_0x24ee63._0x47f403)])return;if(_0x1ff138){_0x14bf68['send'](normalizeBinary(_0x9ada2c));return;}function _0x4ddc79(_0xa77acd,_0x205be6){return _0x75393(_0xa77acd,_0x205be6- -_0x5530d3._0x306884);}function _0x193e69(_0x54711f,_0x1ed031){return _0x75393(_0x1ed031,_0x54711f- -0x23a);}const _0x232cb3=normalizeText(_0x9ada2c);if(_0x232cb3==null)return;const _0x544406=summarizeJsonFrame(_0x232cb3);_0x544406&&this['log'](_0x193e69(0x2a2,0xd4)+_0x193e69(0xc7,-_0x24ee63._0x39ead3)+_0x544406+(_0x193e69(-_0x24ee63._0x3c1339,-0x12c)+'ientDema'+'ndMs=')+this[_0x4ddc79(0x11a,_0x24ee63._0x4a3652)+_0x4ddc79(_0x24ee63._0x2f3070,-0xf4)](this[_0x4ddc79(_0x24ee63._0x4be8ec,0x9a)+'mandStar'+'tedAtMs'])+(_0x4ddc79(-0x132,-_0x24ee63._0x24cd89)+_0x193e69(_0x24ee63._0x37c884,0x412)+_0x4ddc79(-_0x24ee63._0xb5006c,0x81))+this[_0x4ddc79(_0x24ee63._0x2a1bac,0x2ba)+_0x4ddc79(-0x2d6,-_0x24ee63._0x126430)](this[_0x4ddc79(_0x24ee63._0x41374a,0x210)+_0x4ddc79(0x297,0xbc)+_0x193e69(0x90,-0xcf)]));const _0x5c4256=parsePairingRequestFromError(_0x232cb3);_0x5c4256&&this[_0x4ddc79(0x87,0xa8)+_0x193e69(0x11a,_0x24ee63._0x29c743)+'quest'](_0x5c4256);const _0x154e88=parsePairResolvedEvent(_0x232cb3);_0x154e88&&this[_0x193e69(-_0x24ee63._0x28fe6e,-_0x24ee63._0x107c38)+_0x193e69(0x16e,_0x24ee63._0x8e17ba)+_0x4ddc79(0x126,0x1f0)](_0x154e88['requestI'+'d'],_0x154e88[_0x193e69(_0x24ee63._0x410676,0x121)]),_0x14bf68[_0x193e69(_0x24ee63._0x496516,0x294)](_0x232cb3);}[_0x143ed5(0xa3,0xc1)+'dingGate'+_0x75393(0x345,0x431)+_0x75393(0x5c5,0x520)](){const _0x36900b={_0x25554a:0x48c,_0x3da7cd:0x32c,_0x278d7:0x58f,_0x5f3a10:0x1b1,_0x1c3ccc:0x5fd,_0x1a3494:0x49,_0x5ab4ad:0x64e,_0x51a71d:0x2aa,_0x4c6b5c:0x3c2,_0x49af3a:0x1a,_0x45f5ae:0x2a,_0x2fddf3:0x564,_0x16c515:0x26d,_0x15011a:0x51d,_0x5d09ca:0x1eb,_0x4ceff6:0x1aa,_0x1129d2:0xf7,_0x2d460c:0xf0,_0xa1be79:0x38,_0x1e81eb:0xa3,_0x268c9a:0x10e,_0x53326f:0x133};function _0x5aa51c(_0x37dc67,_0xb3bba){return _0x143ed5(_0xb3bba-0x27d,_0x37dc67);}const _0x56f541={};_0x56f541[_0x1c0c7a(0x223,0x191)]=_0x5aa51c(0x728,0x575);const _0x521c59=_0x56f541,_0x5a63fe=this[_0x5aa51c(_0x36900b._0x25554a,_0x36900b._0x3da7cd)+_0x5aa51c(_0x36900b._0x278d7,0x3b2)];if(!_0x5a63fe||_0x5a63fe[_0x1c0c7a(0xe3,_0x36900b._0x5f3a10)+'te']!==_0x4cde07[_0x5aa51c(_0x36900b._0x1c3ccc,0x596)])return;const _0x342f84=[];function _0x1c0c7a(_0xa88ced,_0x45b378){return _0x143ed5(_0x45b378- -0x18e,_0xa88ced);}const _0x140c78=[...this[_0x1c0c7a(-0x4a,0x6d)+'atewayMe'+_0x1c0c7a(0x9,-_0x36900b._0x1a3494)]];this[_0x5aa51c(_0x36900b._0x5ab4ad,0x478)+'atewayMe'+_0x5aa51c(_0x36900b._0x51a71d,_0x36900b._0x4c6b5c)]=[],this[_0x1c0c7a(-_0x36900b._0x49af3a,_0x36900b._0x45f5ae)](_0x5aa51c(0x671,_0x36900b._0x2fddf3)+_0x1c0c7a(0x114,-0xa5)+_0x5aa51c(0x430,0x311)+_0x140c78[_0x1c0c7a(_0x36900b._0x16c515,0xbc)]);for(const _0x4699b2 of _0x140c78){if(!this[_0x5aa51c(_0x36900b._0x15011a,0x443)+'andshake'+'Started']){if(_0x4699b2[_0x5aa51c(0x364,_0x36900b._0x5d09ca)]!==_0x521c59['DpDKE']||!isConnectHandshakeRequest(_0x4699b2[_0x1c0c7a(0x283,0x16a)])){_0x342f84[_0x1c0c7a(_0x36900b._0x4ceff6,_0x36900b._0x1129d2)](_0x4699b2);continue;}this[_0x1c0c7a(-_0x36900b._0x2d460c,_0x36900b._0xa1be79)+'andshake'+_0x1c0c7a(-_0x36900b._0x1e81eb,-_0x36900b._0x268c9a)]=!![];}this['sendToGa'+_0x1c0c7a(-0x17,-_0x36900b._0x53326f)](_0x4699b2);}this['pendingG'+'atewayMe'+'ssages']=_0x342f84;}[_0x75393(0x2e0,0x32b)+_0x143ed5(0x5b,0x5d)](_0x4fc8d7){const _0x5acd91={_0x53589a:0x738,_0x7fd656:0x45a,_0x32beab:0x5b4,_0xba3c3f:0x5f4,_0x1b7029:0x51d,_0x4c5d6c:0x81e,_0xfa68fe:0x500,_0x507eec:0x374,_0x329e4f:0x4d6,_0x1dc6e0:0x6a0,_0x346c5b:0x3ce,_0x16acc8:0x379,_0x4f4eb1:0x2fb},_0x6a3a50={};_0x6a3a50[_0xaf78c1(_0x5acd91._0x53589a,0x69b)]=function(_0x5c2381,_0x2d8e00){return _0x5c2381===_0x2d8e00;};const _0x5179d4=_0x6a3a50;function _0x70af96(_0x2abe6d,_0x4731a1){return _0x143ed5(_0x4731a1-0x1de,_0x2abe6d);}const _0x2b96fd=this[_0xaf78c1(_0x5acd91._0x7fd656,_0x5acd91._0x32beab)+_0xaf78c1(_0x5acd91._0xba3c3f,0x63a)];if(!_0x2b96fd||_0x2b96fd[_0x70af96(0x4c7,_0x5acd91._0x1b7029)+'te']!==_0x4cde07[_0xaf78c1(0x6fa,_0x5acd91._0x4c5d6c)]){this[_0xaf78c1(0x663,0x665)+_0x70af96(0x4ce,0x4eb)+_0xaf78c1(0x6ac,_0x5acd91._0xfa68fe)+'e'](_0x4fc8d7);return;}function _0xaf78c1(_0x2ed2f0,_0x2b6dd6){return _0x143ed5(_0x2b6dd6-0x505,_0x2ed2f0);}if(_0x5179d4[_0x70af96(0x1ef,_0x5acd91._0x507eec)](_0x4fc8d7['kind'],_0x70af96(0x549,_0x5acd91._0x329e4f))){_0x2b96fd[_0xaf78c1(0x864,_0x5acd91._0x1dc6e0)](_0x4fc8d7[_0x70af96(_0x5acd91._0x346c5b,_0x5acd91._0x329e4f)]);return;}_0x2b96fd[_0x70af96(0x53d,_0x5acd91._0x16acc8)](_0x4fc8d7[_0xaf78c1(_0x5acd91._0x4f4eb1,0x432)]);}[_0x75393(0x360,0x1c9)+'wayReque'+'st'](_0xc5e4a3,_0x3eaba8){const _0x5b788c={_0x39cb6d:0x1c4,_0x5954cf:0x1aa,_0x143051:0x4d,_0x2de2f0:0x4d,_0x30bf21:0x210,_0x29f71b:0x3df},_0x197596={_0x385852:0x3ce},_0x294ac5={_0x50c444:0x116},_0x2642ff={};_0x2642ff['idZXC']=_0xbfb4d1(0x32f,0x3d7);const _0x8a4ab=_0x2642ff,_0x48165f=JSON['stringif'+'y']({'type':_0xbfb4d1(_0x5b788c._0x39cb6d,_0x5b788c._0x5954cf),'id':_0xbfb4d1(-_0x5b788c._0x143051,0x4a)+_0xeb6c2c(),'method':_0xc5e4a3,'params':_0x3eaba8});function _0xbfb4d1(_0x2b1049,_0x17dfee){return _0x75393(_0x2b1049,_0x17dfee- -_0x294ac5._0x50c444);}const _0xc964cb={};_0xc964cb[_0xbfb4d1(0x1de,_0x5b788c._0x2de2f0)]=_0x8a4ab['idZXC'];function _0x362c4b(_0x345a68,_0x3aa79b){return _0x75393(_0x3aa79b,_0x345a68-_0x197596._0x385852);}_0xc964cb['text']=_0x48165f,this[_0x362c4b(0x662,0x687)+_0xbfb4d1(_0x5b788c._0x30bf21,_0x5b788c._0x29f71b)+'tewayMes'+_0xbfb4d1(0x317,0x36e)](_0xc964cb);}[_0x75393(0x580,0x4fe)+_0x143ed5(0x273,0x2e6)](){const _0x5be517={_0x3d39e9:0x64,_0x13c278:0x1a6,_0x542726:0xb9,_0x5ca0bc:0xe,_0x4b29c2:0x13e,_0x6bef21:0x7f2,_0x354730:0x250,_0x35bc54:0x598};this[_0x12d6e9(_0x5be517._0x3d39e9,-_0x5be517._0x13c278)+'tewayIdl'+_0x12d6e9(-0x185,-_0x5be517._0x542726)](),this[_0x12d6e9(-0x2c,-0x78)+_0x12d6e9(-0x9b,_0x5be517._0x5ca0bc)]?.[_0x12d6e9(-0x330,-_0x5be517._0x4b29c2)](),this['gatewayS'+_0x530e75(0x56a,0x594)]=null;function _0x12d6e9(_0x179988,_0xd8559f){return _0x143ed5(_0xd8559f- -0x127,_0x179988);}this['gatewayC'+_0x12d6e9(-0x29,-0x42)+'g']=![];function _0x530e75(_0x2b3085,_0x28445f){return _0x143ed5(_0x28445f-0x45f,_0x2b3085);}this[_0x530e75(_0x5be517._0x6bef21,0x625)+'andshake'+_0x530e75(0x6b7,0x4df)]=![],this[_0x12d6e9(_0x5be517._0x354730,0x166)+_0x530e75(0x64b,_0x5be517._0x35bc54)+'AtMs']=null;}[_0x75393(0x76,0x1cd)+'GatewayI'+'dleClose'](_0x5d9cfb){const _0xeb9978={_0xb3df29:0x49b,_0x11f14c:0x316,_0x5611d6:0x4ea,_0x396cf1:0x468,_0xe31d41:0x50a,_0x294777:0x4e6,_0x504285:0x656,_0x4edca7:0x451,_0x45333f:0x269,_0x191643:0x195,_0x290ac9:0x71a,_0x2a72d4:0x59c,_0x192df4:0x756,_0x26e7d2:0x5bc,_0x2e992a:0x549,_0x5022bf:0x2cb,_0x2431e4:0x37f,_0x429001:0x123,_0x5b36cc:0x301,_0x5a7bb3:0x429,_0xe54d53:0x55b,_0x309ded:0x11d,_0x46c69c:0x5dd,_0x3e8549:0x5cd,_0x3a6e61:0x78d,_0x24f690:0x5cc,_0x1f6f7b:0x2d8,_0x50df2a:0x17b,_0x400486:0x2d3,_0x170755:0x4fd,_0x2c084d:0x551,_0x4b8410:0x525,_0x4330f8:0x535,_0x10f120:0x5aa,_0x5d3c80:0x393,_0x260b33:0x605,_0x355f46:0x633,_0x1e8527:0x293,_0x29b041:0x371,_0x2d571e:0x43d,_0x2c1832:0x443,_0x470495:0x358,_0x172a62:0x41a,_0x743444:0x684},_0x449222={_0x343279:0x76d,_0xcfa4d1:0x26c,_0x26bfcc:0x50a,_0x5490d0:0x2e5,_0x304b1b:0x68b,_0xe4f257:0x27e,_0xb9eacf:0x433,_0x40dd83:0x59d,_0x1ad0e9:0x742,_0x1257ca:0x415,_0x14add5:0x3a7,_0x88008b:0x482,_0x683706:0x2bb,_0x49af1e:0x19b,_0x17323e:0x17,_0x8d04e7:0x5ee},_0x2dfdfb={_0x4e2f8e:0x30f},_0x51e0d0={_0xfda807:0x345},_0x4a767b={'ojRuJ':function(_0x40f68c,_0x49097d,_0x5b31db){return _0x40f68c(_0x49097d,_0x5b31db);}};function _0x12f424(_0x122e95,_0x20109d){return _0x143ed5(_0x20109d-_0x51e0d0._0xfda807,_0x122e95);}this['gatewayR'+_0x12f424(_0xeb9978._0xb3df29,_0xeb9978._0x11f14c)+'r']&&(clearTimeout(this['gatewayR'+_0x12f424(0x3e8,0x316)+'r']),this[_0x3716a8(_0xeb9978._0x5611d6,0x696)+_0x12f424(_0xeb9978._0x396cf1,0x316)+'r']=null);function _0x3716a8(_0x9e6424,_0x232727){return _0x143ed5(_0x9e6424-_0x2dfdfb._0x4e2f8e,_0x232727);}this[_0x3716a8(_0xeb9978._0xe31d41,_0xeb9978._0x294777)+_0x3716a8(0x596,_0xeb9978._0x504285)+'ssages']=[];const _0x148b78={};_0x148b78[_0x3716a8(_0xeb9978._0x4edca7,0x53d)+_0x3716a8(0x34a,0x555)]=0x0,this['updateSn'+_0x3716a8(_0xeb9978._0x45333f,_0xeb9978._0x191643)](_0x148b78);if(!this[_0x3716a8(0x5b5,_0xeb9978._0x290ac9)+'yOpen']()&&!this[_0x3716a8(_0xeb9978._0x2a72d4,_0xeb9978._0x192df4)+'onnectin'+'g']){this[_0x12f424(_0xeb9978._0x26e7d2,0x4fd)]('gateway\x20'+_0x3716a8(0x503,0x5b2)+'h\x20no\x20act'+_0x3716a8(0x33c,0x42e)+_0x3716a8(0x34b,_0xeb9978._0x2e992a)+'n='+_0x5d9cfb),this['clientDe'+_0x3716a8(0x3cd,_0xeb9978._0x5022bf)+_0x3716a8(_0xeb9978._0x2431e4,0x38e)]=null;return;}if(this[_0x12f424(_0xeb9978._0x429001,_0xeb9978._0x5b36cc)+'dleClose'+_0x3716a8(0x4ce,0x2f4)]){this[_0x3716a8(0x4c7,0x2dd)](_0x12f424(_0xeb9978._0x5a7bb3,0x62c)+_0x12f424(0x6e5,_0xeb9978._0xe54d53)+'se\x20alrea'+_0x3716a8(0x2b7,_0xeb9978._0x309ded)+'uled\x20rea'+_0x12f424(0x799,_0xeb9978._0x46c69c)+_0x5d9cfb);return;}const _0x1b3ab2=this[_0x3716a8(_0xeb9978._0x3e8549,_0xeb9978._0x3a6e61)]['gatewayI'+_0x3716a8(0x5b1,_0xeb9978._0x24f690)+_0x3716a8(_0xeb9978._0x1f6f7b,_0xeb9978._0x50df2a)+_0x12f424(0x336,_0xeb9978._0x400486)]??GATEWAY_IDLE_DISCONNECT_DELAY_MS;this[_0x12f424(0x4cf,_0xeb9978._0x170755)](_0x12f424(_0xeb9978._0x2c084d,0x62c)+_0x3716a8(_0xeb9978._0x4b8410,_0xeb9978._0x4330f8)+'se\x20sched'+_0x3716a8(_0xeb9978._0x10f120,0x6e8)+_0x12f424(0x539,_0xeb9978._0x5d3c80)+_0x1b3ab2+_0x12f424(_0xeb9978._0x260b33,_0xeb9978._0x355f46)+_0x5d9cfb+(_0x3716a8(0x331,_0xeb9978._0x1e8527)+_0x3716a8(0x57a,_0xeb9978._0x29b041)+_0x12f424(_0xeb9978._0x2d571e,_0xeb9978._0x2c1832))+this['elapsedS'+_0x3716a8(0x298,_0xeb9978._0x470495)](this['gatewayC'+'onnected'+_0x12f424(0x47f,_0xeb9978._0x172a62)])),this[_0x3716a8(0x2cb,0x3db)+_0x12f424(0x410,0x413)+'Timer']=_0x4a767b[_0x3716a8(0x5ae,_0xeb9978._0x743444)](setTimeout,()=>{const _0x4cf5b4={_0x5a6f25:0x141};this['gatewayI'+_0x343f4f(-0x52,0xbf)+'Timer']=null;if(this['hasGatew'+'ayDemand']()){this['log'](_0x5d5d4a(_0x449222._0x343279,0x6a6)+_0x343f4f(_0x449222._0xcfa4d1,0x207)+'se\x20skipp'+_0x5d5d4a(_0x449222._0x26bfcc,0x5c1)+_0x343f4f(0x2d7,0x271)+_0x5d5d4a(0x6d1,0x644)+_0x343f4f(0x24f,_0x449222._0x5490d0)+'d');return;}function _0x343f4f(_0x23f2c8,_0x44310b){return _0x12f424(_0x23f2c8,_0x44310b- -0x354);}this[_0x5d5d4a(0x78f,_0x449222._0x304b1b)+'eway']();const _0x56de1f={};_0x56de1f[_0x343f4f(0x36b,_0x449222._0xe4f257)+_0x343f4f(0x17c,0x12a)]=![];function _0x5d5d4a(_0x49107b,_0x589e44){return _0x12f424(_0x589e44,_0x49107b-_0x4cf5b4._0x5a6f25);}_0x56de1f['clientCo'+_0x343f4f(0x51,0x2c)]=0x0,this[_0x343f4f(_0x449222._0xb9eacf,0x2ac)+'apshot'](_0x56de1f),this[_0x5d5d4a(_0x449222._0x40dd83,_0x449222._0x1ad0e9)+'mandStar'+'tedAtMs']=null,this[_0x343f4f(0x10c,0x1a9)](_0x5d5d4a(_0x449222._0x343279,0x84e)+_0x5d5d4a(_0x449222._0x1257ca,_0x449222._0x14add5)+_0x5d5d4a(_0x449222._0x88008b,_0x449222._0x683706)+_0x343f4f(_0x449222._0x49af1e,-_0x449222._0x17323e)+_0x5d5d4a(_0x449222._0x8d04e7,0x3e5)+_0x5d9cfb);},_0x1b3ab2);}[_0x143ed5(-0x7f,-0x137)+_0x143ed5(0x5,-0x1e9)+'eClose'](_0x7dabd2){const _0x34b79e={_0x440389:0x147,_0x98b34a:0x280,_0x584407:0x3ea,_0x585213:0xd2,_0x57ef19:0x39e,_0x5457fc:0x3ac,_0x3c8685:0x4dc,_0x569b46:0x31d,_0x560372:0x17b},_0x22fef1={_0x4b3246:0x1b2};if(!this['gatewayI'+_0x105884(_0x34b79e._0x440389,_0x34b79e._0x98b34a)+_0x105884(_0x34b79e._0x584407,0x371)])return;function _0x105884(_0x165ed1,_0x11ab26){return _0x143ed5(_0x11ab26-_0x22fef1._0x4b3246,_0x165ed1);}clearTimeout(this[_0x4b3fc4(0x1e6,_0x34b79e._0x585213)+_0x4b3fc4(0x2f8,0x48c)+'Timer']);function _0x4b3fc4(_0x115a3d,_0x113c7b){return _0x143ed5(_0x115a3d-0x22a,_0x113c7b);}this[_0x4b3fc4(0x1e6,0x27c)+'dleClose'+'Timer']=null,_0x7dabd2&&this[_0x105884(0x49a,0x36a)](_0x105884(0x625,0x499)+_0x105884(0x41f,0x3c8)+_0x4b3fc4(_0x34b79e._0x57ef19,_0x34b79e._0x5457fc)+_0x4b3fc4(_0x34b79e._0x3c8685,_0x34b79e._0x569b46)+_0x4b3fc4(0x2f1,_0x34b79e._0x560372)+_0x7dabd2);}[_0x143ed5(-0x28,-0x15b)+_0x143ed5(-0x64,-0x1a)+'onnect'](){const _0x38a06b={_0x2c6996:0x594,_0x127b74:0x4b5,_0x465c85:0x734,_0x3a9755:0x50a,_0x54fc51:0x83a,_0x20b209:0x97d,_0xd7022a:0x6da,_0x53e95d:0x759,_0x2e5246:0x650,_0x16b0e0:0x769,_0x1d8572:0x4bd,_0x599fef:0x58f,_0x3295fa:0x72e,_0x1f2f19:0x734,_0x34f2fb:0x7fc,_0xfdb558:0x4e4,_0x298dcb:0x6fc,_0x1840e4:0x753,_0x1ad5ce:0x666,_0xebeb6e:0x63f},_0x219c34={_0x32c98f:0x214,_0x25059c:0x1a9,_0x16c2fa:0xe,_0x21f4dc:0x20d,_0x1e289c:0x2c8,_0x451f63:0xeb},_0x514f18={_0xbc7dd0:0x317};if(this[_0x15e363(0x759,0x6e4)]||this['reconnec'+_0x15e363(0x6ca,_0x38a06b._0x2c6996)])return;const _0x2897c5=this[_0x15e363(0x7ca,0x771)][_0x15e363(0x666,_0x38a06b._0x127b74)+_0x57d962(0x703,_0x38a06b._0x465c85)+_0x57d962(_0x38a06b._0x3a9755,0x41e)]??RECONNECT_BASE_DELAY_MS,_0x1d5914=this[_0x57d962(_0x38a06b._0x54fc51,_0x38a06b._0x20b209)][_0x15e363(0x666,0x5a0)+_0x15e363(_0x38a06b._0xd7022a,_0x38a06b._0x53e95d)+_0x57d962(_0x38a06b._0x2e5246,_0x38a06b._0x16b0e0)]??RECONNECT_MAX_DELAY_MS;function _0x15e363(_0xa2b5f9,_0x5b2624){return _0x75393(_0x5b2624,_0xa2b5f9-_0x514f18._0xbc7dd0);}function _0x57d962(_0x4f7899,_0x44eccc){return _0x75393(_0x44eccc,_0x4f7899-0x387);}const _0x2aa36f=Math[_0x15e363(0x4ea,0x551)](_0x1d5914,_0x2897c5*Math[_0x57d962(_0x38a06b._0x1d8572,_0x38a06b._0x599fef)](0x1,this['relayAtt'+_0x15e363(_0x38a06b._0x3295fa,0x577)]));this[_0x57d962(_0x38a06b._0x1f2f19,0x5fc)]('relay\x20re'+_0x15e363(_0x38a06b._0x34f2fb,0x811)+_0x15e363(_0x38a06b._0xfdb558,0x5f2)+_0x15e363(_0x38a06b._0x298dcb,_0x38a06b._0x1840e4)+'s='+_0x2aa36f),this[_0x15e363(_0x38a06b._0x1ad5ce,_0x38a06b._0xebeb6e)+_0x57d962(0x73a,0x7a3)]=setTimeout(()=>{this[_0x2f2140(_0x219c34._0x32c98f,_0x219c34._0x25059c)+_0x2f2140(_0x219c34._0x16c2fa,_0x219c34._0x21f4dc)]=null;function _0x2f2140(_0x11c7cd,_0x5d0155){return _0x15e363(_0x5d0155- -0x4bd,_0x11c7cd);}function _0x2a09be(_0x2be326,_0x82e84e){return _0x15e363(_0x2be326- -0x62f,_0x82e84e);}void this[_0x2f2140(0x2fe,_0x219c34._0x1e289c)+_0x2a09be(-_0x219c34._0x451f63,0x7d)]();},_0x2aa36f);}[_0x143ed5(-0x28,-0xc7)+'GatewayR'+_0x75393(0x28f,0x161)](){const _0x3a90aa={_0x4005f0:0x2b9,_0x122576:0x2f,_0x55a097:0x60,_0x2c976b:0x10e,_0x21a456:0x428,_0x432a20:0x1f5,_0x357951:0x134},_0x2c50be={_0x2fe53c:0x63,_0x40c08e:0xf6,_0x3a6c06:0x9a,_0x1aa1cc:0x14e,_0x40231b:0x767},_0x5e9565={_0x1ab056:0x3c8},_0x313f45={_0x1de2e0:0x2dd},_0x4474da={'qIYSw':function(_0x21a573,_0x14400a,_0x3e7bce){return _0x21a573(_0x14400a,_0x3e7bce);}};if(this[_0x5ba686(0x52a,0x563)]||this[_0x5ba686(0x4b8,_0x3a90aa._0x4005f0)+_0x2bde6a(_0x3a90aa._0x122576,-_0x3a90aa._0x55a097)+'r']||!this['isRelayO'+_0x2bde6a(0x298,_0x3a90aa._0x2c976b)]()||!this['hasGatew'+_0x5ba686(0x3a9,0x307)]())return;function _0x2bde6a(_0x2c31bc,_0xb3d268){return _0x143ed5(_0xb3d268- -0x31,_0x2c31bc);}const _0xeb0473=this[_0x2bde6a(0xa5,0x28d)][_0x2bde6a(0xa3,0x1aa)+_0x5ba686(0x312,0x2be)+_0x5ba686(0x3b1,_0x3a90aa._0x21a456)]??GATEWAY_RETRY_DELAY_MS;function _0x5ba686(_0x21f42c,_0x38e0c1){return _0x143ed5(_0x21f42c-_0x313f45._0x1de2e0,_0x38e0c1);}this[_0x2bde6a(0x37e,0x1aa)+_0x5ba686(0x2ae,_0x3a90aa._0x432a20)+'r']=_0x4474da[_0x5ba686(0x30f,_0x3a90aa._0x357951)](setTimeout,()=>{function _0x3e7d0e(_0xe490a6,_0x13c348){return _0x5ba686(_0x13c348-0x20f,_0xe490a6);}this[_0x4f24c1(0xf0,_0x2c50be._0x2fe53c)+_0x3e7d0e(0x4f6,0x4bd)+'r']=null;function _0x4f24c1(_0x416818,_0x1934b9){return _0x5ba686(_0x416818- -_0x5e9565._0x1ab056,_0x1934b9);}this[_0x4f24c1(-0xd3,-_0x2c50be._0x40c08e)+_0x4f24c1(-_0x2c50be._0x3a6c06,_0x2c50be._0x1aa1cc)+_0x3e7d0e(0x752,_0x2c50be._0x40231b)]();},_0xeb0473);}['startHea'+_0x75393(-0x5d,0x1af)](){const _0x4cb974={_0x53a0bc:0x1c0,_0xa894ef:0x359,_0x4cc41d:0x5bf,_0x58eb6d:0x251,_0x4a693b:0x117,_0x393a40:0x25f,_0x4031b7:0xb9,_0x460b8a:0xf6,_0x160a07:0x584},_0x3cca5c={_0xb534a8:0x553,_0x46c24a:0x411,_0x57ebb7:0x612,_0x4987ea:0x515,_0x18b52:0x4ba,_0xd0687d:0x601,_0x45a2fa:0x531,_0xb985ed:0x41e,_0x29858f:0x6f2,_0x29c75f:0x1fa,_0x51062f:0x3a0,_0xa2c418:0x348,_0x1ff1c4:0x4d4,_0xeb0f93:0x3d9,_0x271438:0x6a4,_0x467898:0x670,_0x167c3d:0x2c9},_0x30a29a={_0x47d329:0x212};function _0x2aebac(_0x3af6f8,_0xfb1b47){return _0x75393(_0x3af6f8,_0xfb1b47- -0x154);}function _0x3c1cbc(_0x8534f7,_0x582c8b){return _0x75393(_0x582c8b,_0x8534f7-0x219);}const _0x466c9d={};_0x466c9d[_0x2aebac(_0x4cb974._0x53a0bc,_0x4cb974._0xa894ef)]=function(_0x1a893d,_0x339944){return _0x1a893d!==_0x339944;},_0x466c9d['pNiQS']=function(_0x465181,_0x150507){return _0x465181-_0x150507;};const _0x327c56=_0x466c9d;this[_0x3c1cbc(0x46f,_0x4cb974._0x4cc41d)+_0x2aebac(_0x4cb974._0x58eb6d,0x2e3)](),this['heartbea'+_0x2aebac(_0x4cb974._0x4a693b,_0x4cb974._0x393a40)]=setInterval(()=>{function _0x210931(_0x5443b1,_0x5a8e04){return _0x3c1cbc(_0x5a8e04- -0xe,_0x5443b1);}const _0x393e01=this[_0x210931(0x75b,_0x3cca5c._0xb534a8)+_0xe1e3e3(0x3d8,_0x3cca5c._0x46c24a)];if(!_0x393e01||_0x327c56[_0xe1e3e3(0x4b4,_0x3cca5c._0x57ebb7)](_0x393e01['readySta'+'te'],_0x4cde07[_0xe1e3e3(_0x3cca5c._0x4987ea,0x5f8)]))return;function _0xe1e3e3(_0x165e07,_0x25a467){return _0x3c1cbc(_0x165e07- -_0x30a29a._0x47d329,_0x25a467);}const _0x1fa098=this[_0xe1e3e3(_0x3cca5c._0x18b52,0x43e)][_0x210931(_0x3cca5c._0xd0687d,0x4d7)+_0x210931(_0x3cca5c._0x45a2fa,0x379)+'Ms']??HEARTBEAT_TIMEOUT_MS;if(_0x327c56['pNiQS'](Date[_0x210931(0x520,_0x3cca5c._0xb985ed)](),this[_0x210931(0x520,_0x3cca5c._0x29858f)+_0xe1e3e3(_0x3cca5c._0x29c75f,_0x3cca5c._0x51062f)+_0x210931(_0x3cca5c._0xa2c418,_0x3cca5c._0x1ff1c4)])>_0x1fa098){this[_0x210931(0x6f1,0x5b8)](_0xe1e3e3(0x441,_0x3cca5c._0xeb0f93)+_0xe1e3e3(0x508,0x600)+_0x210931(_0x3cca5c._0x271438,_0x3cca5c._0x467898)+'t'),_0x393e01[_0xe1e3e3(0x399,0x468)+'e']();return;}_0x393e01[_0x210931(_0x3cca5c._0x167c3d,0x47d)]();},this['options'][_0x2aebac(0x313,0x178)+_0x2aebac(-_0x4cb974._0x4031b7,_0x4cb974._0x460b8a)+_0x3c1cbc(_0x4cb974._0x160a07,0x77f)]??HEARTBEAT_INTERVAL_MS);}[_0x143ed5(0x61,0x1f9)+_0x143ed5(0x242,0x176)](){const _0x364464={_0xf0932:0xe7,_0x425a26:0x2f,_0x10ec8d:0x338,_0x6f327d:0x15c,_0x29fd03:0x251},_0x2335d4={_0x11c968:0x17a},_0x45c497={_0x141ffd:0x10};function _0x2bc5eb(_0x2c1a8f,_0xe257e2){return _0x143ed5(_0x2c1a8f-_0x45c497._0x141ffd,_0xe257e2);}function _0x9ae2fe(_0x247b66,_0x16277c){return _0x143ed5(_0x16277c-_0x2335d4._0x11c968,_0x247b66);}this[_0x2bc5eb(_0x364464._0xf0932,_0x364464._0x425a26)+_0x9ae2fe(0x130,_0x364464._0x10ec8d)]&&(clearInterval(this[_0x9ae2fe(_0x364464._0x6f327d,_0x364464._0x29fd03)+_0x2bc5eb(0x1ce,0x177)]),this['heartbea'+'tTimer']=null);}[_0x75393(0x241,0x355)+'ingGatew'+_0x143ed5(-0x5,-0x1b4)+'e'](_0x4e98f9){const _0x2e6f61={_0x3ade9c:0x1fc,_0x3b4002:0x37b,_0x1f8dc0:0x288,_0xaf9722:0x3c9,_0x2babb3:0xed,_0x27a232:0x3ea,_0x1e0784:0x323,_0x4ee133:0x41a,_0x27fe29:0x4f0,_0x1b42bb:0x33d,_0x189c10:0x61f,_0x407020:0x551,_0x481e67:0x717,_0x4defd6:0x55c,_0x14a79b:0x669,_0x259324:0x582,_0x153ee2:0x436},_0x265a9a={_0x448e0b:0x338};this[_0x5b2d4f(0x255,_0x2e6f61._0x3ade9c)+_0x5b2d4f(_0x2e6f61._0x3b4002,_0x2e6f61._0x1f8dc0)+'ssages'][_0x5b2d4f(_0x2e6f61._0xaf9722,0x24b)]>=MAX_PENDING_GATEWAY_MESSAGES&&this[_0x5b2d4f(_0x2e6f61._0x2babb3,_0x2e6f61._0x3ade9c)+_0x5b2d4f(_0x2e6f61._0x27a232,0x288)+_0x5b2d4f(_0x2e6f61._0x1e0784,0x146)]['shift']();function _0x45f549(_0x498546,_0x57c84e){return _0x143ed5(_0x498546-_0x265a9a._0x448e0b,_0x57c84e);}this['pendingG'+_0x45f549(0x5bf,_0x2e6f61._0x4ee133)+'ssages']['push'](_0x4e98f9);function _0x5b2d4f(_0x155765,_0x275d81){return _0x143ed5(_0x275d81-0x1,_0x155765);}this[_0x45f549(_0x2e6f61._0x27fe29,_0x2e6f61._0x1b42bb)](_0x45f549(_0x2e6f61._0x189c10,_0x2e6f61._0x407020)+_0x5b2d4f(0x318,0x1bb)+_0x5b2d4f(0x27b,0x23b)+this[_0x45f549(0x533,_0x2e6f61._0x481e67)+_0x45f549(0x5bf,_0x2e6f61._0x4defd6)+_0x45f549(0x47d,_0x2e6f61._0x14a79b)][_0x45f549(_0x2e6f61._0x259324,_0x2e6f61._0x153ee2)]);}[_0x75393(0x1d8,0x30b)+_0x143ed5(0x21a,0x1fb)+_0x143ed5(-0x1,-0x194)](_0x2f3358,_0x2f3e85){const _0x12c07e={_0x5c9a43:0x109,_0x48335f:0x25e,_0x4f29f8:0x2c1,_0x41de4a:0x5c1,_0x978db6:0x2ff,_0x29f114:0x2fb,_0x3e40d2:0x3ed,_0x194403:0x4e5,_0x48f938:0x603,_0x52aec2:0x2e3,_0x15c98e:0x3d0,_0x36b3b5:0xd3,_0x179e01:0x23c,_0x309c6e:0x259,_0x30b567:0x309,_0x1784d7:0x60e,_0xde7709:0x24e},_0x5e1336=Date[_0x31fb5b(_0x12c07e._0x5c9a43,0x2a1)](),_0x36c1cd=new Map(this[_0x31fb5b(0x52c,0x5c0)]['connecte'+_0x5d3f10(_0x12c07e._0x48335f,_0x12c07e._0x4f29f8)][_0x5d3f10(_0x12c07e._0x41de4a,0x405)](_0x1d476c=>[_0x1d476c['id'],{..._0x1d476c}])),_0x2dd9e1=_0x36c1cd[_0x5d3f10(_0x12c07e._0x978db6,_0x12c07e._0x29f114)](_0x2f3358)??{'id':_0x2f3358,'label':_0x2f3e85,'state':'connecte'+'d','lastSeenMs':_0x5e1336};function _0x5d3f10(_0x36b189,_0x1e47c8){return _0x75393(_0x36b189,_0x1e47c8-0xff);}_0x2dd9e1[_0x5d3f10(_0x12c07e._0x3e40d2,0x554)]=_0x2f3e85,_0x2dd9e1[_0x5d3f10(0x6a8,0x54d)]=_0x5d3f10(_0x12c07e._0x194403,_0x12c07e._0x48f938)+'d',_0x2dd9e1[_0x31fb5b(_0x12c07e._0x52aec2,_0x12c07e._0x15c98e)+'Ms']=_0x5e1336,_0x36c1cd[_0x5d3f10(_0x12c07e._0x36b3b5,_0x12c07e._0x179e01)](_0x2f3358,_0x2dd9e1);const _0x50864d=[..._0x36c1cd[_0x31fb5b(0x434,_0x12c07e._0x309c6e)]()]['sort']((_0xd57422,_0x3c29da)=>_0x3c29da[_0x31fb5b(0x36f,0x3d0)+'Ms']-_0xd57422['lastSeen'+'Ms'])[_0x31fb5b(_0x12c07e._0x30b567,0x29f)](0x0,MAX_DEVICE_DETAILS),_0x2a498c={};function _0x31fb5b(_0x4571b6,_0x5c148d){return _0x75393(_0x4571b6,_0x5c148d-0x8e);}_0x2a498c[_0x5d3f10(_0x12c07e._0x1784d7,0x603)+_0x5d3f10(0x22d,0x2c1)]=_0x50864d,this['updateSn'+_0x5d3f10(0xd8,_0x12c07e._0xde7709)](_0x2a498c);}[_0x75393(0x356,0x3ee)+'cesRecen'+'t'](){const _0x3c1ee5={_0x571a86:0x61e,_0x5e2775:0x677,_0x58c0f2:0x474},_0x1ced95={_0x493f65:0x15e};function _0x3d9c22(_0x2d3e12,_0x2c303c){return _0x143ed5(_0x2c303c- -_0x1ced95._0x493f65,_0x2d3e12);}function _0x2d3059(_0x43bdd2,_0x115623){return _0x143ed5(_0x115623-0x363,_0x43bdd2);}this[_0x2d3059(0x652,_0x3c1ee5._0x571a86)+_0x3d9c22(-0x4d,-0x204)]({'connectedDevices':this[_0x2d3059(_0x3c1ee5._0x5e2775,0x6a0)][_0x2d3059(0x6a4,0x672)+'dDevices'][_0x2d3059(0x5df,_0x3c1ee5._0x58c0f2)](_0x3eaf13=>({..._0x3eaf13,'state':'recent'}))});}[_0x75393(0x481,0x31a)+_0x143ed5(0x15f,0x16e)+_0x75393(0x31a,0x3b1)](_0x4d4f1e){const _0x51eb95={_0x333169:0x566,_0x212757:0x358,_0x205597:0x4df,_0x2d1e85:0x4b1,_0x162b8e:0x6bc,_0x5d2949:0x531,_0x2ad9f3:0x773,_0x5e97f0:0x6e0,_0x193c7e:0x452,_0x2b91a9:0x3f3,_0x41c0b2:0x81a,_0x270a19:0x629,_0x2ea51c:0x711,_0x435448:0x425,_0x55535b:0x2d9,_0x5b631a:0x64a,_0x592fc6:0x4a7,_0xfb44ba:0x6ae,_0x7ee9d1:0x5ee,_0x57882b:0x37f,_0x3e200f:0x3a6,_0x34da68:0x33e,_0xa3820:0x2da};function _0x39bbb2(_0x3519c6,_0x4ed4e6){return _0x143ed5(_0x4ed4e6-0x37f,_0x3519c6);}const _0x15c942={};_0x15c942[_0x39bbb2(_0x51eb95._0x333169,_0x51eb95._0x212757)]=_0x15e31c(_0x51eb95._0x205597,0x592)+'>';const _0x559e44=_0x15c942;if(this[_0x39bbb2(_0x51eb95._0x2d1e85,_0x51eb95._0x162b8e)][_0x39bbb2(0x32e,0x43e)+_0x15e31c(_0x51eb95._0x5d2949,0x4aa)+'sts']['some'](_0x364070=>_0x364070[_0x39bbb2(0x2e6,0x33e)+'d']===_0x4d4f1e[_0x15e31c(0x3b5,0x3f5)+'d']))return;const _0x427f17=[...this[_0x15e31c(0x8a1,_0x51eb95._0x2ad9f3)][_0x15e31c(0x5e8,0x4f5)+'airReque'+_0x15e31c(0x5f3,_0x51eb95._0x5e97f0)],_0x4d4f1e][_0x15e31c(0x3b2,_0x51eb95._0x193c7e)](-MAX_PENDING_PAIR_REQUESTS),_0x49a498={};_0x49a498[_0x15e31c(0x362,0x4f5)+_0x39bbb2(0x470,_0x51eb95._0x2b91a9)+_0x39bbb2(_0x51eb95._0x41c0b2,_0x51eb95._0x270a19)]=_0x427f17,this[_0x39bbb2(_0x51eb95._0x2ea51c,0x63a)+_0x39bbb2(_0x51eb95._0x435448,_0x51eb95._0x55535b)](_0x49a498);function _0x15e31c(_0x2614f1,_0x1354ae){return _0x143ed5(_0x1354ae-0x436,_0x2614f1);}this[_0x15e31c(0x54d,0x6f4)]['onPendin'+_0x15e31c(_0x51eb95._0x5b631a,0x6b9)+_0x39bbb2(_0x51eb95._0x592fc6,0x3fd)]?.(_0x4d4f1e),this[_0x15e31c(_0x51eb95._0xfb44ba,_0x51eb95._0x7ee9d1)](_0x39bbb2(0x12d,0x333)+_0x39bbb2(0x279,0x3e4)+'ding\x20req'+_0x39bbb2(0x2cc,_0x51eb95._0x57882b)+_0x4d4f1e[_0x39bbb2(_0x51eb95._0x3e200f,_0x51eb95._0x34da68)+'d']+(_0x39bbb2(_0x51eb95._0xa3820,0x436)+'d=')+(_0x4d4f1e['deviceId']||_0x559e44[_0x39bbb2(0x289,_0x51eb95._0x212757)]));}[_0x75393(0x3c,0x150)+_0x75393(0x5a8,0x3a8)+_0x75393(0x4cd,0x462)](_0x4225e2,_0xd85ae3){const _0x739028={_0x350de6:0x6ee,_0x248ee6:0x41e,_0x11f51d:0x93,_0x56a20f:0x7d,_0x394e13:0x2c8,_0x17a9ee:0x4c0,_0x3ad825:0xde,_0x497bc2:0xdb,_0x1c7ec6:0x2da,_0x4cd426:0x30,_0x173214:0x1d7,_0x2e8449:0x1ca,_0x20238d:0x21b,_0x5cf781:0x320,_0x5ee8ad:0x2c5},_0x24a80b={_0x4cda7a:0x1d6};function _0x440ecc(_0x2b45d5,_0x2df21f){return _0x75393(_0x2df21f,_0x2b45d5- -_0x24a80b._0x4cda7a);}const _0x25dd56=this[_0x1971e7(_0x739028._0x350de6,0x553)][_0x1971e7(_0x739028._0x248ee6,0x2d5)+_0x440ecc(_0x739028._0x11f51d,_0x739028._0x56a20f)+_0x1971e7(_0x739028._0x394e13,_0x739028._0x17a9ee)]['map'](_0xe88100=>_0xe88100[_0x440ecc(-0x22,0xef)+'d']===_0x4225e2?{..._0xe88100,'status':_0xd85ae3===_0x1971e7(0x87,0x250)||_0xd85ae3==='rejected'?_0xd85ae3:_0xe88100[_0x1971e7(0x197,0x25e)]}:_0xe88100),_0x392226={};function _0x1971e7(_0x1af4fa,_0x25fb5c){return _0x75393(_0x1af4fa,_0x25fb5c-0x21);}_0x392226[_0x440ecc(_0x739028._0x3ad825,-0xf6)+_0x1971e7(_0x739028._0x497bc2,0x28a)+'sts']=_0x25dd56,this[_0x440ecc(_0x739028._0x1c7ec6,0x3fd)+_0x1971e7(-_0x739028._0x4cd426,0x170)](_0x392226),this[_0x440ecc(_0x739028._0x173214,0x28)](_0x1971e7(0x155,_0x739028._0x2e8449)+_0x440ecc(_0x739028._0x20238d,0xcf)+_0x440ecc(_0x739028._0x5cf781,_0x739028._0x5ee8ad)+_0x440ecc(0xef,0x2af)+_0x4225e2+(_0x1971e7(0x5fb,0x53b)+'n=')+_0xd85ae3);}[_0x75393(0x3ab,0x4b0)+_0x75393(0x2f5,0x14f)](_0xebbc5){const _0x4f3372={_0x5ce7f4:0x477,_0x2bccc6:0x523,_0x2771c5:0x54f,_0x4e8553:0x7f7,_0x5c878d:0x7ef,_0x2fb514:0x901,_0x1d92a4:0x79a,_0x18d1e9:0x805,_0x5bd900:0x6c3},_0xe7648c={_0x473357:0x37b},_0x1d36f6={_0x51d111:0x531};Object[_0x96ba78(0x523,_0x4f3372._0x5ce7f4)](this['snapshot'],_0xebbc5,{'lastUpdatedMs':Date[_0x2428c4(_0x4f3372._0x2bccc6,_0x4f3372._0x2771c5)]()});function _0x2428c4(_0x3489e8,_0x53b7f6){return _0x143ed5(_0x53b7f6-_0x1d36f6._0x51d111,_0x3489e8);}function _0x96ba78(_0x1096a8,_0x38b8e8){return _0x143ed5(_0x1096a8-_0xe7648c._0x473357,_0x38b8e8);}this[_0x2428c4(_0x4f3372._0x4e8553,_0x4f3372._0x5c878d)][_0x2428c4(_0x4f3372._0x2fb514,_0x4f3372._0x1d92a4)]?.(this[_0x2428c4(_0x4f3372._0x18d1e9,_0x4f3372._0x5bd900)+'hot']());}['log'](_0x143243){const _0x470baf={_0x404b16:0x3bc,_0x43138f:0x2e4,_0x45b39c:0x2bf,_0xc0c5ca:0x3ee};function _0x527cee(_0x5e599f,_0x20ba60){return _0x143ed5(_0x20ba60-0x119,_0x5e599f);}function _0x28f8c5(_0x8d588f,_0x5013c5){return _0x143ed5(_0x8d588f-0xfe,_0x5013c5);}this[_0x28f8c5(_0x470baf._0x404b16,_0x470baf._0x43138f)][_0x28f8c5(_0x470baf._0x45b39c,_0x470baf._0xc0c5ca)]?.(_0x143243);}['isRelayO'+_0x143ed5(0x13f,0x16d)](){const _0x248182={_0x5399a2:0x4ea,_0x3ef5ee:0x4b2,_0x15c4c3:0x604,_0x222f37:0x53b,_0x509142:0x69e,_0x3d3591:0x51a};function _0x112c86(_0xee4225,_0x415985){return _0x75393(_0x415985,_0xee4225-0xc);}function _0x239424(_0x4dc4c1,_0x20d579){return _0x75393(_0x20d579,_0x4dc4c1-0x16a);}const _0xf6534f={};_0xf6534f[_0x239424(0x64b,_0x248182._0x5399a2)]=function(_0xd853a2,_0x2f25aa){return _0xd853a2===_0x2f25aa;};const _0x972c5d=_0xf6534f;return _0x972c5d[_0x239424(0x64b,0x4e1)](this[_0x239424(_0x248182._0x3ef5ee,_0x248182._0x15c4c3)+_0x239424(_0x248182._0x222f37,0x454)]?.[_0x239424(_0x248182._0x509142,0x53a)+'te'],_0x4cde07[_0x112c86(_0x248182._0x3d3591,0x3e2)]);}[_0x143ed5(0x2a6,0x140)+_0x143ed5(-0x21,0x113)](){const _0x2be02b={_0x1f8e43:0x116,_0x513dfc:0x424},_0x2b25c1={_0x5c878c:0x10b};function _0x53341d(_0x4f451b,_0xa274af){return _0x143ed5(_0x4f451b- -0x62,_0xa274af);}function _0x112c89(_0x59aa58,_0x36069d){return _0x143ed5(_0x36069d-_0x2b25c1._0x5c878c,_0x59aa58);}return this['gatewayS'+_0x53341d(0xd3,-_0x2be02b._0x1f8e43)]?.['readySta'+'te']===_0x4cde07[_0x112c89(0x527,_0x2be02b._0x513dfc)];}[_0x75393(0x3ca,0x36f)+_0x143ed5(0xcc,0x16b)](){const _0x40043e={_0x5c709c:0x507,_0x38461c:0x487,_0x418803:0x30c,_0xccf1e6:0x3f7,_0x4932f3:0x52e,_0x1a9fa1:0x30f,_0x1825ee:0x272,_0x28ca57:0x13c,_0x28b73a:0xc0};function _0x48112c(_0x1250e9,_0x4f692d){return _0x75393(_0x4f692d,_0x1250e9- -0x2b);}function _0x51dcd6(_0x3a464f,_0x565a4f){return _0x75393(_0x3a464f,_0x565a4f- -0x37f);}return this[_0x48112c(_0x40043e._0x5c709c,_0x40043e._0x38461c)][_0x48112c(_0x40043e._0x418803,_0x40043e._0xccf1e6)+'unt']>0x0||this[_0x48112c(0x3c5,_0x40043e._0x4932f3)+_0x51dcd6(0x14,0xfd)+_0x48112c(_0x40043e._0x1a9fa1,_0x40043e._0x1825ee)][_0x51dcd6(-_0x40043e._0x28ca57,_0x40043e._0x28b73a)]>0x0;}[_0x143ed5(-0x1a,-0x16b)+_0x143ed5(0x2c7,0x1aa)](){const _0xc458a5={_0x4a5743:0xe,_0x55ef05:0x56a,_0x40f49a:0x373,_0x159617:0x56a,_0x14842d:0x73b,_0x3f1c6f:0x16c,_0x478d8a:0x14f,_0x84845e:0x139,_0x20054f:0x3e1,_0x550caf:0x551,_0x322113:0x655,_0x3d5733:0x95,_0x4df25c:0x16c,_0x4921ae:0x263,_0x52eec1:0x467,_0x3ab8f6:0x415,_0x365e22:0x345,_0x37a4c2:0x84};this[_0x118d7c(0x8a,-_0xc458a5._0x4a5743)+'tbeat']();this[_0x3ac9a3(_0xc458a5._0x55ef05,_0xc458a5._0x40f49a)+_0x3ac9a3(0x5ce,0x477)]&&(clearTimeout(this[_0x3ac9a3(_0xc458a5._0x159617,0x657)+_0x3ac9a3(0x5ce,_0xc458a5._0x14842d)]),this['reconnec'+_0x118d7c(_0xc458a5._0x3f1c6f,_0xc458a5._0x478d8a)]=null);function _0x3ac9a3(_0xdaf5aa,_0x488135){return _0x75393(_0x488135,_0xdaf5aa-0x21b);}this[_0x118d7c(_0xc458a5._0x84845e,_0xc458a5._0x3f1c6f)+_0x3ac9a3(_0xc458a5._0x20054f,_0xc458a5._0x550caf)+'r']&&(clearTimeout(this[_0x3ac9a3(0x5eb,_0xc458a5._0x322113)+'etryTime'+'r']),this[_0x118d7c(-_0xc458a5._0x3d5733,_0xc458a5._0x4df25c)+_0x3ac9a3(0x3e1,_0xc458a5._0x4921ae)+'r']=null);function _0x118d7c(_0xf2632d,_0x13ca63){return _0x75393(_0xf2632d,_0x13ca63- -0x264);}this[_0x3ac9a3(0x391,_0xc458a5._0x52eec1)+_0x3ac9a3(_0xc458a5._0x3ab8f6,_0xc458a5._0x365e22)+_0x118d7c(_0xc458a5._0x37a4c2,-0x1)]();}[_0x143ed5(0x337,0x447)+_0x143ed5(-0x77,0x7a)](_0x71194b){const _0x344872={_0x52b7a5:0x7d3,_0x15e1ee:0x7e8},_0x266bc1={};function _0x3a44d2(_0x8f3927,_0xf57a65){return _0x75393(_0xf57a65,_0x8f3927- -0x171);}function _0x56c4f1(_0x461985,_0xaee54e){return _0x75393(_0x461985,_0xaee54e-0x2c4);}_0x266bc1[_0x56c4f1(_0x344872._0x52b7a5,0x7e8)]=function(_0x213ea7,_0x513a69){return _0x213ea7-_0x513a69;};const _0x62d3f8=_0x266bc1;return _0x71194b==null?null:Math[_0x3a44d2(-0x3b,-0xeb)](0x0,_0x62d3f8[_0x56c4f1(0x9c0,_0x344872._0x15e1ee)](Date['now'](),_0x71194b));}};function shouldRecycleGatewayForFreshClient(_0x18af4f,_0xb31bc7,_0x38dc8f,_0x54959e){return _0x38dc8f&&_0xb31bc7>0x0&&(_0x18af4f===0x0||_0x54959e);}function summarizeJsonFrame(_0x455a67){const _0x39d067={_0xe643e4:0x1b7,_0x159a60:0x5,_0x22358d:0x427,_0x6f0e22:0x5a2,_0x1c4001:0x6c8,_0x3ee18f:0x57c,_0x1b7456:0x1ce,_0x4b27ad:0x758,_0x337959:0x902,_0x56f078:0x3cb,_0x1f17e1:0x51a,_0xef55e1:0x414,_0x3a7476:0x8f6,_0xf018f9:0x4ef,_0xc8b242:0x3b5,_0x31307f:0x695,_0x1f536b:0x884,_0x4ff7ea:0x5b6,_0x1a627f:0x503,_0x30cc73:0x23a,_0x1d6f20:0x36e,_0x10891e:0x4b0,_0x478764:0x45f,_0x460a93:0x608,_0x441cc0:0xa25,_0x293c38:0x52b,_0x50bbb2:0x422,_0x14aeb8:0x5fa,_0x38133a:0x278,_0x56a3db:0x30b,_0x3a5824:0x924,_0x44b5d6:0x677},_0x335a82={_0x46b68a:0x3fb};function _0x54a611(_0x1a3cd4,_0x1453a1){return _0x75393(_0x1a3cd4,_0x1453a1-_0x335a82._0x46b68a);}const _0x3ca6b5={};_0x3ca6b5['Josfo']=function(_0x1ab533,_0x9912ce){return _0x1ab533===_0x9912ce;},_0x3ca6b5['pJKsV']=_0x5482d9(0x23a,0x261);function _0x5482d9(_0x338fb2,_0x14dbcf){return _0x75393(_0x14dbcf,_0x338fb2-0x70);}_0x3ca6b5[_0x5482d9(_0x39d067._0xe643e4,_0x39d067._0x159a60)]=_0x5482d9(0x577,0x64a),_0x3ca6b5[_0x5482d9(_0x39d067._0x22358d,_0x39d067._0x6f0e22)]=function(_0x58700d,_0x2b74d5){return _0x58700d===_0x2b74d5;};const _0x1f996b=_0x3ca6b5;try{const _0x1280b8=JSON[_0x54a611(_0x39d067._0x1c4001,_0x39d067._0x3ee18f)](_0x455a67);if(_0x1280b8[_0x5482d9(0x39f,0x472)]===_0x5482d9(0x330,_0x39d067._0x1b7456)&&typeof _0x1280b8[_0x5482d9(0x56b,_0x39d067._0x4b27ad)]===_0x54a611(0xa29,_0x39d067._0x337959))return _0x5482d9(_0x39d067._0x56f078,_0x39d067._0x1f17e1)+_0x5482d9(_0x39d067._0xef55e1,0x298)+_0x1280b8[_0x54a611(0xacd,_0x39d067._0x3a7476)]+'\x20id='+(_0x1f996b['Josfo'](typeof _0x1280b8['id'],_0x5482d9(0x577,_0x39d067._0xf018f9))?_0x1280b8['id']:'<unknown'+'>');if(_0x1f996b[_0x5482d9(0x356,_0x39d067._0xc8b242)](_0x1280b8['type'],_0x1f996b[_0x54a611(_0x39d067._0x31307f,_0x39d067._0x1f536b)])&&typeof _0x1280b8[_0x54a611(_0x39d067._0x4ff7ea,0x5c5)]===_0x1f996b['kquJR'])return _0x5482d9(_0x39d067._0x1a627f,0x392)+_0x5482d9(0x4e9,0x6e4)+_0x1280b8[_0x5482d9(_0x39d067._0x30cc73,_0x39d067._0x1d6f20)];if(_0x1280b8[_0x5482d9(0x39f,0x271)]==='res'){const _0x2690ba=typeof _0x1280b8['id']===_0x1f996b[_0x5482d9(0x1b7,0x8b)]?_0x1280b8['id']:_0x5482d9(0x3c1,_0x39d067._0x10891e)+'>',_0xb05202=_0x1280b8['ok']===!![]?_0x5482d9(0x375,_0x39d067._0x478764):'false',_0x42d717=_0x1f996b[_0x5482d9(_0x39d067._0x22358d,0x53c)](typeof _0x1280b8['error']?.[_0x54a611(_0x39d067._0x460a93,0x7ad)],_0x54a611(_0x39d067._0x441cc0,0x902))?_0x1280b8[_0x54a611(0x72c,_0x39d067._0x293c38)][_0x5482d9(_0x39d067._0x50bbb2,0x4ac)]:_0x5482d9(0x4c0,_0x39d067._0x14aeb8);return _0x5482d9(_0x39d067._0x38133a,_0x39d067._0x56a3db)+_0x2690ba+_0x54a611(0xace,_0x39d067._0x3a5824)+_0xb05202+_0x54a611(_0x39d067._0x44b5d6,0x83c)+_0x42d717;}return null;}catch{return null;}}function shouldDropStaleConnectAfterGatewayReopen(_0x740caf,_0x40e71b){const _0x9f3507={_0x908c82:0x11c},_0xb04f30={};_0xb04f30['jrTOe']=function(_0x17f1c6,_0x355d6c){return _0x17f1c6&&_0x355d6c;};const _0x2a3ab9=_0xb04f30;function _0x507b8b(_0xbd1a83,_0x62850a){return _0x143ed5(_0xbd1a83- -0x9a,_0x62850a);}return _0x2a3ab9[_0x507b8b(0x276,_0x9f3507._0x908c82)](!_0x740caf,_0x40e71b);}function buildRelayWsUrl(_0x23b83f){const _0x103594={_0x2f5753:0x628,_0x22985a:0x4a0,_0x16dddc:0x3b0,_0x4417c8:0x204,_0x3ef486:0x1df,_0x3c12c3:0x2cd,_0x5c77d9:0x104,_0x51209b:0x5fd,_0x4c49b2:0x2ce,_0xf1b5f7:0x3c5,_0xb915d7:0x620,_0x350ea2:0x684,_0x372c13:0x168,_0x308620:0x338,_0x5d977d:0x3b,_0x4323ce:0x5e8,_0x4e6215:0x41b,_0x3fcbc6:0x36,_0x276836:0xd,_0x5632c2:0x57f,_0x40db9e:0x5a2,_0x4cd25d:0x464,_0x475687:0x14a,_0x55941d:0x59f},_0xf8f44a={_0x1900e5:0xc5},_0x532c4c={};_0x532c4c[_0x11d0ff(0x464,_0x103594._0x2f5753)]=function(_0x3e503b,_0x37a4fa){return _0x3e503b===_0x37a4fa;};function _0x11d0ff(_0x1a5fd,_0x551fde){return _0x143ed5(_0x1a5fd-0x386,_0x551fde);}_0x532c4c['QrsTA']=_0x11d0ff(0x342,0x165)+'d';const _0x288497=_0x532c4c,_0x10b085=new URL(_0x23b83f['relayUrl']);function _0xa9c7c8(_0x532c7f,_0x55e6db){return _0x143ed5(_0x532c7f-_0xf8f44a._0x1900e5,_0x55e6db);}return(!_0x10b085[_0x11d0ff(_0x103594._0x22985a,_0x103594._0x16dddc)]||_0x288497[_0xa9c7c8(0x1a3,_0x103594._0x4417c8)](_0x10b085[_0xa9c7c8(_0x103594._0x3ef486,0x41)],'/'))&&(_0x10b085[_0x11d0ff(_0x103594._0x22985a,_0x103594._0x3c12c3)]='/ws'),_0x10b085[_0xa9c7c8(_0x103594._0x5c77d9,-0x71)+_0x11d0ff(0x43c,_0x103594._0x51209b)][_0x11d0ff(_0x103594._0x4c49b2,_0x103594._0xf1b5f7)](_0x288497[_0x11d0ff(_0x103594._0xb915d7,_0x103594._0x350ea2)],_0x23b83f[_0xa9c7c8(0x81,-_0x103594._0x372c13)+'d']),_0x10b085[_0x11d0ff(0x3c5,0x2d5)+_0x11d0ff(0x43c,_0x103594._0x308620)]['set'](_0xa9c7c8(_0x103594._0x5d977d,0x15e),_0x11d0ff(_0x103594._0x4323ce,_0x103594._0x4e6215)),_0x10b085['searchPa'+_0xa9c7c8(0x17b,-_0x103594._0x3fcbc6)][_0xa9c7c8(_0x103594._0x276836,0x29)](_0x11d0ff(0x4b3,_0x103594._0x5632c2),_0x23b83f[_0x11d0ff(_0x103594._0x40db9e,_0x103594._0x4cd25d)+'Id']),_0x10b085[_0xa9c7c8(_0x103594._0x5c77d9,-0xfd)+_0xa9c7c8(0x17b,_0x103594._0x475687)]['set'](_0x11d0ff(_0x103594._0x55941d,0x63d),_0x23b83f['relaySec'+'ret']),_0x10b085['toString']();}function redactRelayWsUrl(_0x4f8165){const _0x37c494={_0xdd2c54:0x655,_0x4b90ad:0x24d,_0x36b8c6:0x4f2,_0x2579a1:0x169,_0x14e8a1:0x435,_0x5acfff:0x72,_0x46ab9a:0x260},_0x5a1a94={_0x22fe40:0x43c},_0xa3f2e4={_0x176d27:0xb1};function _0x3c69eb(_0x2713c5,_0x5bc48b){return _0x143ed5(_0x2713c5- -_0xa3f2e4._0x176d27,_0x5bc48b);}const _0x447eb5={};_0x447eb5['lUMvY']='token';const _0x104012=_0x447eb5,_0x2db10b=new URL(_0x4f8165);_0x2db10b[_0x2294f2(0x47b,0x62e)+_0x3c69eb(0x5,0x9e)]['has'](_0x2294f2(_0x37c494._0xdd2c54,0x7e4))&&_0x2db10b[_0x3c69eb(-0x72,-_0x37c494._0x4b90ad)+_0x2294f2(_0x37c494._0x36b8c6,0x643)][_0x3c69eb(-_0x37c494._0x2579a1,-0x1d9)](_0x104012[_0x2294f2(_0x37c494._0x14e8a1,0x276)],_0x3c69eb(_0x37c494._0x5acfff,_0x37c494._0x46ab9a)+'d>');function _0x2294f2(_0x1620d4,_0x47ca5d){return _0x143ed5(_0x1620d4-_0x5a1a94._0x22fe40,_0x47ca5d);}return _0x2db10b[_0x2294f2(0x54e,0x3a1)]();}function normalizeText(_0xa88540){const _0x1b4419={_0x1269af:0x38c,_0x1cb68f:0x5b,_0x590456:0x33,_0x43f747:0x233,_0x1e4f32:0x1f4,_0x2dfa7d:0x230,_0x2344fc:0x33,_0x1ae009:0x1be,_0x2d7ad3:0xb4},_0x405c05={_0x1fc00f:0xa2},_0x1501e3={};_0x1501e3['WRmlF']=_0x235d2a(0x2c0,_0x1b4419._0x1269af)+'2';function _0x32859c(_0x395ed4,_0x16a470){return _0x143ed5(_0x16a470-_0x405c05._0x1fc00f,_0x395ed4);}function _0x235d2a(_0x1ad5f6,_0x3cd8f7){return _0x143ed5(_0x3cd8f7-0xac,_0x1ad5f6);}_0x1501e3[_0x235d2a(-_0x1b4419._0x1cb68f,_0x1b4419._0x590456)]='utf8';const _0x1f7292=_0x1501e3,_0x322348=_0x1f7292[_0x235d2a(_0x1b4419._0x43f747,_0x1b4419._0x1e4f32)][_0x235d2a(0x248,0x20d)]('|');let _0x410e73=0x0;while(!![]){switch(_0x322348[_0x410e73++]){case'0':if(typeof _0xa88540===_0x235d2a(_0x1b4419._0x2dfa7d,0x3be))return _0xa88540;continue;case'1':if(Buffer['isBuffer'](_0xa88540))return _0xa88540[_0x235d2a(0x278,0x1be)](_0x1f7292[_0x235d2a(0x82,_0x1b4419._0x2344fc)]);continue;case'2':return null;case'3':if(Array['isArray'](_0xa88540))return Buffer[_0x32859c(0x46,0x140)](_0xa88540)[_0x235d2a(0x18b,_0x1b4419._0x1ae009)]('utf8');continue;case'4':if(_0xa88540 instanceof ArrayBuffer)return Buffer[_0x32859c(-0xc4,_0x1b4419._0x2d7ad3)](_0xa88540)['toString']('utf8');continue;}break;}}function normalizeBinary(_0x5da819){const _0x5eb299={_0x52544c:0x44a,_0x1ddcaf:0x3c8,_0x28f8fc:0x455};function _0x606df(_0x4d2a08,_0x3b198e){return _0x143ed5(_0x4d2a08-0x32a,_0x3b198e);}if(Buffer[_0x1d9fdc(0x6f4,0x7d9)](_0x5da819))return _0x5da819;if(typeof _0x5da819===_0x1d9fdc(0x755,0x7be))return Buffer[_0x1d9fdc(0x455,0x470)](_0x5da819,_0x1d9fdc(0x5cb,_0x5eb299._0x52544c));function _0x1d9fdc(_0x3c4d11,_0x3b5a79){return _0x143ed5(_0x3c4d11-0x443,_0x3b5a79);}if(Array['isArray'](_0x5da819))return Buffer[_0x606df(_0x5eb299._0x1ddcaf,0x286)](_0x5da819);return Buffer[_0x1d9fdc(_0x5eb299._0x28f8fc,0x42d)](_0x5da819);}function readRecentCliLogs(_0x320628){const _0x5f0c01={_0x2a3376:0x599,_0x4d11b9:0x4b5,_0x5619ee:0x5f7,_0x1814de:0x480,_0x15adf2:0x534,_0x672bea:0x43d,_0x52d820:0x30a,_0x4393e0:0x8a5,_0x3e0971:0x88c,_0x1cf973:0x7c0,_0x471445:0x86b,_0x57d8ef:0x726,_0x1f0e2b:0x773,_0x1fbaf9:0x390,_0x13bde0:0x87a};function _0x3e10a8(_0x14774f,_0x572558){return _0x143ed5(_0x572558-0x570,_0x14774f);}const _0x86fbde={};function _0x1d223c(_0x383c02,_0x2176e7){return _0x143ed5(_0x383c02-0x53b,_0x2176e7);}_0x86fbde[_0x3e10a8(_0x5f0c01._0x2a3376,_0x5f0c01._0x4d11b9)]=function(_0x3000cc,_0x1d8829){return _0x3000cc!=_0x1d8829;};const _0x1e2e30=_0x86fbde,{logPath:_0x215f0f,errorLogPath:_0x32c82d}=getServicePaths(),_0x35cb11=clampLines(_0x320628?.[_0x3e10a8(0x766,0x885)]??0xc8),_0x16f8fd=_0x320628?.[_0x3e10a8(0x735,_0x5f0c01._0x5619ee)]??null,_0x1bbac4=_0x1e2e30[_0x1d223c(_0x5f0c01._0x1814de,_0x5f0c01._0x15adf2)](_0x16f8fd,null)?Date[_0x3e10a8(_0x5f0c01._0x672bea,0x58e)]()-_0x16f8fd:null,_0x21ee47=[_0x215f0f];_0x320628?.[_0x3e10a8(_0x5f0c01._0x52d820,0x4d1)+_0x3e10a8(_0x5f0c01._0x4393e0,_0x5f0c01._0x3e0971)]&&_0x21ee47[_0x1d223c(_0x5f0c01._0x1cf973,_0x5f0c01._0x471445)](_0x32c82d);const _0x48f12f=_0x21ee47['flatMap'](_0x56197d=>readLogFile(_0x56197d)),_0x2f3b0b=_0x1bbac4==null?_0x48f12f:_0x48f12f[_0x3e10a8(_0x5f0c01._0x57d8ef,_0x5f0c01._0x1f0e2b)](_0x46098a=>_0x46098a['ts']!=null&&_0x46098a['ts']>=_0x1bbac4);return _0x2f3b0b[_0x1d223c(0x557,_0x5f0c01._0x1fbaf9)](-_0x35cb11)[_0x3e10a8(_0x5f0c01._0x13bde0,0x681)](_0x300759=>_0x300759[_0x3e10a8(0x70d,0x757)]);}async function buildDoctorReport(){const _0x43acdd={_0x4d93c2:0x208,_0xee875f:0x167,_0x561190:0x130,_0x2db398:0x1ca,_0x4b59e7:0x41,_0x44b930:0xa4,_0x172e8d:0xf9,_0x5e54fb:0xba,_0xbba204:0x22,_0x30eaf0:0x305,_0x2e34a5:0x105,_0x2723ff:0x2e2,_0x3fd787:0x2a1,_0x41a9a1:0x4ab,_0x21102b:0x272},_0x2e420c={_0x1fcad3:0x123},_0x674cc={'FQmES':function(_0x246a11){return _0x246a11();},'RwfRS':function(_0x1014a1,_0x52c0d6){return _0x1014a1(_0x52c0d6);},'Onvzp':function(_0x43d45f){return _0x43d45f();}};function _0x263a5e(_0x259fc9,_0x300c9b){return _0x143ed5(_0x259fc9- -_0x2e420c._0x1fcad3,_0x300c9b);}const _0x53a93a=readPairingConfig(),_0x56758=_0x674cc[_0x3b900f(0xd0,_0x43acdd._0x4d93c2)](getServiceStatus),_0x416cb6=readOpenClawInfo(),_0xfa51b0=resolveGatewayUrl();function _0x3b900f(_0x146a6c,_0x62f510){return _0x143ed5(_0x146a6c-0x170,_0x62f510);}const _0x485371=await checkGatewayReachable(_0xfa51b0);return{'paired':_0x674cc['RwfRS'](Boolean,_0x53a93a),'gatewayId':_0x53a93a?.[_0x263a5e(-_0x43acdd._0xee875f,-_0x43acdd._0x561190)+'d']??null,'serverUrl':_0x53a93a?.[_0x263a5e(-0x1e0,-_0x43acdd._0x2db398)+'l']??null,'relayUrl':_0x53a93a?.[_0x263a5e(_0x43acdd._0x4b59e7,-_0x43acdd._0x44b930)]??null,'instanceId':_0x53a93a?.[_0x263a5e(_0x43acdd._0x172e8d,-_0x43acdd._0x5e54fb)+'Id']??null,'serviceInstalled':_0x56758[_0x263a5e(-_0x43acdd._0xbba204,0x5d)+'d'],'serviceRunning':_0x56758[_0x3b900f(0x37b,_0x43acdd._0x30eaf0)],'serviceMethod':_0x56758['method'],'servicePath':_0x56758[_0x263a5e(0x1b,0xe0)+_0x3b900f(_0x43acdd._0x2e34a5,_0x43acdd._0x2723ff)],'logPath':_0x56758[_0x263a5e(-0x150,-0xd3)],'errorLogPath':_0x56758['errorLog'+'Path'],'openclawConfigDir':getOpenClawConfigDir(),'openclawMediaDir':_0x674cc[_0x3b900f(0x354,_0x43acdd._0x3fd787)](getOpenClawMediaDir),'openclawConfigFound':_0x416cb6['configFo'+'und'],'openclawAuthMode':_0x416cb6[_0x3b900f(_0x43acdd._0x41a9a1,0x581)],'openclawTokenFound':Boolean(_0x416cb6[_0x3b900f(0x389,_0x43acdd._0x21102b)]),'openclawPasswordFound':_0x674cc['RwfRS'](Boolean,_0x416cb6[_0x263a5e(0x1e2,0x2ac)]),'localGatewayUrl':_0xfa51b0,'localGatewayReachable':_0x485371};}async function ensurePairPrerequisites(){const _0x5cad4d={_0x2cede3:0x3b9,_0x877f35:0x31b,_0x3f69e3:0x14d,_0xd1af5:0x582,_0x2197e5:0x5b9,_0x466f78:0x3f8,_0x5321f3:0x56e,_0x239bd5:0x368,_0x4eafca:0x844,_0x51b79f:0x940,_0x4b4c47:0x324,_0x5cb79a:0x421,_0x462494:0x739,_0xaead51:0x81c,_0x5844f7:0x5f4,_0x748bb2:0x7b9,_0x4b3975:0x6ca,_0x3283af:0x2f3,_0x534199:0x26d,_0x1c8c74:0x648,_0x2b467f:0x5b7},_0xc639a2={_0x239b17:0x52a};function _0x1861ec(_0x4ab9e4,_0x270b41){return _0x143ed5(_0x4ab9e4-0x2b3,_0x270b41);}const _0x23aee8={};function _0x1b3e57(_0x22c107,_0x2ca29e){return _0x143ed5(_0x22c107-_0xc639a2._0x239b17,_0x2ca29e);}_0x23aee8[_0x1b3e57(0x848,0x7cf)]=_0x1861ec(_0x5cad4d._0x2cede3,0x26e)+_0x1861ec(0x59c,0x75d)+_0x1861ec(_0x5cad4d._0x877f35,_0x5cad4d._0x3f69e3)+_0x1861ec(_0x5cad4d._0xd1af5,0x6ca)+_0x1b3e57(_0x5cad4d._0x2197e5,_0x5cad4d._0x466f78)+_0x1b3e57(_0x5cad4d._0x5321f3,0x672)+_0x1861ec(_0x5cad4d._0x239bd5,0x53e)+_0x1b3e57(0x552,0x3af)+_0x1b3e57(_0x5cad4d._0x4eafca,0x751)+_0x1b3e57(0x612,0x52c)+_0x1b3e57(0x810,_0x5cad4d._0x51b79f)+'onally\x20w'+_0x1861ec(_0x5cad4d._0x4b4c47,_0x5cad4d._0x5cb79a)+'ypass\x20th'+'is\x20safet'+_0x1b3e57(_0x5cad4d._0x462494,_0x5cad4d._0xaead51);const _0x182a36=_0x23aee8,_0x46243e=await buildDoctorReport(),_0x32b9da=listPairPrerequisiteFailures(_0x46243e);if(_0x32b9da['length']>0x0)throw new Error([_0x1861ec(_0x5cad4d._0x5844f7,_0x5cad4d._0x748bb2)+_0x1861ec(0x51b,_0x5cad4d._0x4b3975)+'`clawket'+_0x1861ec(_0x5cad4d._0x3283af,_0x5cad4d._0x534199)+_0x1b3e57(0x4b7,0x536)+_0x1b3e57(_0x5cad4d._0x1c8c74,0x4b4)+_0x1b3e57(0x53a,0x37f)+_0x1b3e57(_0x5cad4d._0x2b467f,0x5d2)+'tes\x20are\x20'+_0x1861ec(0x4ad,0x619)+'y.',..._0x32b9da['map'](_0x3d4e73=>'-\x20'+_0x3d4e73),_0x182a36['LYHRF']]['join']('\x0a'));return _0x46243e;}function listPairPrerequisiteFailures(_0xfa95bb){const _0x4df50a={_0x14b381:0x4a5,_0x1bec51:0x641,_0x26797b:0x54c,_0x33a8c8:0x503,_0x302a51:0x5b3,_0x8b856:0x3a3,_0x59dbbd:0x6a0,_0x3fa720:0x4fc,_0x1e016b:0x556,_0x5519c3:0x6d3,_0x588a52:0x68b,_0x4a937b:0x2d1,_0x372ec6:0x7e7,_0x43594b:0x582,_0x1fd0ef:0x2c3,_0x381cd2:0x3c6,_0x46adff:0x588,_0x467ba8:0x7c9,_0x2e52e3:0x78f,_0x6cbf2a:0x7bb,_0x9abb71:0x2b8,_0x5e7a47:0x6db,_0x4d8888:0x3a8,_0x52f2bd:0x3e4,_0x3d5888:0x7a7,_0x442bcc:0x843,_0x2d6df3:0x47b,_0x41a7a5:0x73d,_0x5df0ad:0x7ee,_0x1cbfe2:0x249,_0x3ac3b6:0x355,_0x4bd94f:0x31f,_0x2b1db8:0x3f5,_0x4bd4d6:0x2f4,_0x116734:0x44f,_0x572c1d:0x33e,_0x2164c9:0x419,_0xa073c6:0x668,_0x5f0313:0x80b,_0x3faefd:0x5ed,_0x13c8e9:0x5c1,_0x270ada:0x6f6,_0x17d180:0xa7,_0x5b4dab:0x470,_0x5beec8:0x4c5,_0x3cb72f:0x278,_0x15da85:0x511,_0x50c545:0x6ea,_0x16ac3c:0x4de,_0x205975:0x50a,_0x54ba7:0x6dd,_0x7879dd:0x7f1,_0x5adca0:0x51d,_0x411ce9:0x373,_0x19b330:0x6a3,_0xf52646:0x4cd,_0x40fce2:0x485},_0x37691e={_0x2559a9:0x97},_0xfb37e2={};function _0x448428(_0xe2ad8d,_0x2f5c43){return _0x75393(_0x2f5c43,_0xe2ad8d-0x2bc);}_0xfb37e2['jPdfk']=_0x21e6ef(_0x4df50a._0x14b381,_0x4df50a._0x1bec51),_0xfb37e2[_0x448428(_0x4df50a._0x26797b,0x52a)]=_0x448428(_0x4df50a._0x33a8c8,0x4f8)+'\x20gateway'+_0x448428(_0x4df50a._0x302a51,0x75a)+_0x21e6ef(0x521,_0x4df50a._0x8b856)+'g.',_0xfb37e2[_0x448428(0x4f4,_0x4df50a._0x59dbbd)]=function(_0x5ab3f4,_0xc19f7d){return _0x5ab3f4===_0xc19f7d;};const _0x5cf6d9=_0xfb37e2,_0x51a1e2=[];!_0xfa95bb[_0x448428(_0x4df50a._0x3fa720,0x3e5)+'ConfigFo'+_0x448428(_0x4df50a._0x1e016b,_0x4df50a._0x5519c3)]&&_0x51a1e2[_0x448428(0x736,0x8c1)](_0x448428(0x503,_0x4df50a._0x588a52)+_0x448428(0x5ba,0x6ce)+_0x448428(0x44f,0x260)+_0x21e6ef(_0x4df50a._0x4a937b,0x4c7)+_0x448428(_0x4df50a._0x372ec6,0x82d)+_0x21e6ef(0x1c5,0x307)+'.');_0xfa95bb[_0x448428(0x4fc,_0x4df50a._0x1e016b)+_0x21e6ef(_0x4df50a._0x43594b,0x75f)+'nd']&&_0xfa95bb['openclaw'+_0x21e6ef(0x518,0x3be)+'Found']&&_0xfa95bb[_0x448428(0x4fc,0x6f4)+_0x21e6ef(_0x4df50a._0x1fd0ef,0x1d0)]==null&&_0x51a1e2['push'](_0x21e6ef(0x2de,_0x4df50a._0x381cd2)+_0x448428(0x43b,_0x4df50a._0x46adff)+_0x448428(_0x4df50a._0x467ba8,_0x4df50a._0x2e52e3)+'y\x20token\x20'+_0x448428(0x5b6,_0x4df50a._0x6cbf2a)+_0x21e6ef(0x32c,_0x4df50a._0x9abb71)+'figured,'+_0x448428(_0x4df50a._0x5e7a47,0x892)+'eway.aut'+_0x21e6ef(_0x4df50a._0x4d8888,_0x4df50a._0x52f2bd)+_0x448428(0x777,0x880));function _0x21e6ef(_0x55e950,_0x42087){return _0x75393(_0x42087,_0x55e950-_0x37691e._0x2559a9);}return!_0xfa95bb['openclaw'+_0x448428(_0x4df50a._0x3d5888,_0x4df50a._0x442bcc)+'nd']&&!_0xfa95bb[_0x21e6ef(0x2d7,_0x4df50a._0x2d6df3)+_0x448428(_0x4df50a._0x41a7a5,0x5a8)+'Found']&&_0x51a1e2[_0x448428(0x736,_0x4df50a._0x5df0ad)](_0x448428(_0x4df50a._0x33a8c8,_0x4df50a._0x52f2bd)+_0x21e6ef(_0x4df50a._0x1cbfe2,_0x4df50a._0x3ac3b6)+_0x21e6ef(_0x4df50a._0x4bd94f,0x197)+'\x20missing'+_0x21e6ef(0x506,_0x4df50a._0x2b1db8)+_0x21e6ef(0x43e,0x560)+'ord).'),_0xfa95bb[_0x448428(0x4fc,0x50a)+'AuthMode']===_0x5cf6d9[_0x21e6ef(0x4b5,_0x4df50a._0x4bd4d6)]&&!_0xfa95bb[_0x21e6ef(0x2d7,_0x4df50a._0x116734)+_0x448428(_0x4df50a._0x3d5888,0x86b)+'nd']&&_0x51a1e2['push'](_0x5cf6d9[_0x448428(_0x4df50a._0x26797b,0x399)]),_0x5cf6d9[_0x448428(0x4f4,0x41c)](_0xfa95bb[_0x21e6ef(0x2d7,_0x4df50a._0x572c1d)+_0x448428(0x4e8,_0x4df50a._0x2164c9)],_0x21e6ef(0x591,_0x4df50a._0xa073c6))&&!_0xfa95bb['openclaw'+_0x448428(0x73d,_0x4df50a._0x5f0313)+_0x448428(_0x4df50a._0x3faefd,0x78f)]&&_0x51a1e2['push']('OpenClaw'+'\x20gateway'+'\x20passwor'+_0x21e6ef(_0x4df50a._0x13c8e9,_0x4df50a._0x270ada)+_0x21e6ef(0x27d,_0x4df50a._0x17d180)),!_0xfa95bb[_0x448428(0x4c6,_0x4df50a._0x5b4dab)+_0x21e6ef(_0x4df50a._0x5beec8,0x506)+_0x21e6ef(_0x4df50a._0x3cb72f,0x125)]&&_0x51a1e2[_0x21e6ef(_0x4df50a._0x15da85,_0x4df50a._0x50c545)](_0x21e6ef(_0x4df50a._0x16ac3c,0x47b)+_0x21e6ef(0x40a,_0x4df50a._0x205975)+_0x448428(_0x4df50a._0x54ba7,_0x4df50a._0x7879dd)+_0x21e6ef(_0x4df50a._0x5adca0,_0x4df50a._0x411ce9)+_0x21e6ef(0x4d5,_0x4df50a._0x19b330)+'at\x20'+_0xfa95bb[_0x448428(0x4c6,0x5f8)+_0x21e6ef(_0x4df50a._0xf52646,_0x4df50a._0x40fce2)]+'.'),_0x51a1e2;}function readLogFile(_0x23e976){const _0x369a45={_0x54d030:0x66d},_0x58a278={_0x5022eb:0x367},_0x31c1a8={_0x1b6e8b:0x122};function _0x3aaf15(_0xfc3f33,_0x457900){return _0x75393(_0xfc3f33,_0x457900-_0x31c1a8._0x1b6e8b);}function _0x3b63c3(_0x2b35bf,_0x588a7d){return _0x75393(_0x2b35bf,_0x588a7d-_0x58a278._0x5022eb);}try{const _0x15e4f9=_0xa5ba60(_0x23e976,_0x3b63c3(0x882,0x6e4));return _0x15e4f9['split'](/\r?\n/)[_0x3b63c3(0x658,0x75f)](Boolean)[_0x3b63c3(0x515,_0x369a45._0x54d030)](_0x1df695=>({'raw':_0x1df695,'ts':parseTimestamp(_0x1df695)}));}catch{return[];}}function parseTimestamp(_0xed7774){const _0x1ede4a={_0x3e6c98:0xfb,_0x274d84:0x6f},_0x549156={_0x4aac9c:0x3c2},_0x543ddc={_0x3084ca:0x8b};function _0x14b3ca(_0x580140,_0x511b34){return _0x143ed5(_0x511b34-_0x543ddc._0x3084ca,_0x580140);}const _0x2eca9a={'JyntE':function(_0x476556,_0x52b96f){return _0x476556(_0x52b96f);}},_0x7386b6=_0xed7774[_0x34c525(0x2f1,_0x1ede4a._0x3e6c98)](/^\[(\d{13})\]\s/);function _0x34c525(_0x2b54dd,_0x48600b){return _0x143ed5(_0x2b54dd-_0x549156._0x4aac9c,_0x48600b);}if(!_0x7386b6)return null;const _0x86348f=_0x2eca9a['JyntE'](Number,_0x7386b6[0x1]);return Number[_0x14b3ca(-_0x1ede4a._0x274d84,0x43)](_0x86348f)?_0x86348f:null;}function clampLines(_0x350996){const _0x157d87={_0x26d4a2:0x597},_0x35f4bc={_0x51b4b4:0x160};function _0x4b47ed(_0x3f48f7,_0x46af47){return _0x143ed5(_0x46af47-0x4dd,_0x3f48f7);}if(!Number[_0x4b47ed(0x667,0x495)](_0x350996))return 0xc8;function _0x2835e3(_0x3ec601,_0x127b58){return _0x143ed5(_0x127b58- -_0x35f4bc._0x51b4b4,_0x3ec601);}return Math[_0x4b47ed(_0x157d87._0x26d4a2,0x41e)](0x1,Math['min'](0x7d0,Math[_0x4b47ed(0x445,0x530)](_0x350996)));}async function checkGatewayReachable(_0x5c5599){const _0xf4c025={_0x127171:0x397,_0x50742a:0x1b6,_0x4d252d:0xdc,_0x38df84:0x31a},_0xca56e1={_0x1830d1:0x3ba,_0x4462c8:0x36d,_0x1a74e8:0x16d,_0x444d21:0x17b,_0x2ea24f:0x206,_0x1e4e76:0x66},_0x55a649={_0x2c062c:0x583,_0x5814fb:0x23c},_0x1996f3={_0x31b9a9:0x8b8},_0x509567={};function _0x1d6972(_0x10c6e7,_0x4b617d){return _0x75393(_0x4b617d,_0x10c6e7- -0x1b9);}function _0x4f9555(_0x2ec981,_0x10b130){return _0x75393(_0x10b130,_0x2ec981- -0xfa);}_0x509567['DLjSB']=_0x4f9555(_0xf4c025._0x127171,0x4dc)+'1';const _0x3e943e=_0x509567;try{const _0x6c6805=new URL(_0x5c5599),_0x50f9a7=_0x6c6805[_0x1d6972(0x214,0x13f)]||_0x3e943e[_0x4f9555(_0xf4c025._0x50742a,_0xf4c025._0x4d252d)],_0x3661d2=_0x6c6805['port']?Number(_0x6c6805[_0x4f9555(0x28f,0x223)]):_0x6c6805[_0x1d6972(_0xf4c025._0x38df84,0x11f)]===_0x4f9555(0x249,0x282)?0x1bb:0x50;return await new Promise((_0x2781f9,_0x43e0b8)=>{const _0x4ed109={'hPlEM':function(_0x12ed76,_0x2948c8){return _0x12ed76(_0x2948c8);},'SMaGs':'timeout'},_0x52ddff=new Socket();function _0x4a0e6f(_0x3d86fe,_0x27788e){return _0x4f9555(_0x3d86fe- -0x79,_0x27788e);}function _0x2c6d32(_0x4cd283,_0x49bca5){return _0x4f9555(_0x49bca5-0x9c,_0x4cd283);}_0x52ddff[_0x2c6d32(_0xca56e1._0x1830d1,_0xca56e1._0x4462c8)+'ut'](0x384),_0x52ddff[_0x2c6d32(0x339,0x206)](_0x4a0e6f(0x153,_0xca56e1._0x1a74e8),()=>{_0x52ddff[_0x55d54f(0x812,_0x1996f3._0x31b9a9)]();function _0x55d54f(_0x119e83,_0x122103){return _0x2c6d32(_0x122103,_0x119e83-0x3fd);}_0x2781f9();}),_0x52ddff[_0x2c6d32(_0xca56e1._0x444d21,_0xca56e1._0x2ea24f)](_0x4a0e6f(0x13f,-_0xca56e1._0x1e4e76),()=>{const _0x818150={_0x3b7de9:0x69};function _0x64d968(_0x4a738d,_0x3db613){return _0x2c6d32(_0x4a738d,_0x3db613-0xec);}function _0x50da1a(_0x49d1e7,_0x4e44ae){return _0x2c6d32(_0x4e44ae,_0x49d1e7-_0x818150._0x3b7de9);}_0x52ddff[_0x64d968(_0x55a649._0x2c062c,0x501)](),_0x4ed109[_0x50da1a(0x153,_0x55a649._0x5814fb)](_0x43e0b8,new Error(_0x4ed109[_0x64d968(0x63b,0x484)]));}),_0x52ddff[_0x2c6d32(0x412,0x206)](_0x2c6d32(0x18a,0xd2),_0x5e4353=>{_0x52ddff['destroy'](),_0x43e0b8(_0x5e4353);}),_0x52ddff[_0x2c6d32(0x132,0x268)](_0x3661d2,_0x50f9a7);}),!![];}catch{return![];}}function parseLookbackToMs(_0x25a133){const _0x3ed935={_0x32285d:0x35d,_0x163126:0x5e,_0x2bd036:0x4d,_0xae4c46:0x10,_0x5cdb9f:0x20d,_0x4307c5:0x5f6,_0x188a3f:0x5ba,_0x1a8d1a:0x2b1,_0x500da2:0x6d4,_0x286d4d:0x2f4,_0x2b0867:0x356,_0x285084:0x271,_0x1556bd:0x1a0,_0x9a62c6:0x3d0,_0x32b5c5:0x533,_0x41fdde:0x6e9},_0x3a598d={_0x23e90a:0x2f4},_0x13a7ec={_0x56aae1:0x11e},_0x130f68={};_0x130f68[_0x4bcd17(0x3f0,_0x3ed935._0x32285d)]=function(_0xe9b385,_0x1f298d){return _0xe9b385===_0x1f298d;};const _0x466cdf=_0x130f68,_0x1d0309=_0x25a133?.[_0x4bcd17(0x1e3,_0x3ed935._0x163126)]();if(!_0x1d0309)return null;const _0x1ffd59=_0x1d0309[_0x4bcd17(-0x105,_0x3ed935._0x2bd036)](/^(\d+)(ms|s|m|h|d)$/i);function _0x4bcd17(_0x21397f,_0x1fefb2){return _0x143ed5(_0x1fefb2-_0x13a7ec._0x56aae1,_0x21397f);}if(!_0x1ffd59)throw new Error(_0x4bcd17(_0x3ed935._0xae4c46,_0x3ed935._0x5cdb9f)+_0x34b018(_0x3ed935._0x4307c5,_0x3ed935._0x188a3f)+'alue\x20\x22'+_0x1d0309+(_0x4bcd17(0x164,_0x3ed935._0x1a8d1a)+_0x34b018(0x59f,_0x3ed935._0x500da2)+_0x4bcd17(_0x3ed935._0x286d4d,_0x3ed935._0x2b0867)+_0x34b018(0x270,_0x3ed935._0x285084)+_0x34b018(0x59d,0x6d2)));const _0x5a54c0=Number(_0x1ffd59[0x1]),_0x28534d=_0x1ffd59[0x2][_0x4bcd17(0xd7,_0x3ed935._0x1556bd)+_0x34b018(0x41f,0x2cd)]();function _0x34b018(_0x286211,_0x1f916d){return _0x143ed5(_0x286211-_0x3a598d._0x23e90a,_0x1f916d);}const _0x3532ec=_0x28534d==='ms'?0x1:_0x466cdf[_0x4bcd17(_0x3ed935._0x9a62c6,0x35d)](_0x28534d,'s')?0x3e8:_0x466cdf[_0x34b018(_0x3ed935._0x32b5c5,0x3e3)](_0x28534d,'m')?0xea60:_0x466cdf[_0x34b018(0x533,_0x3ed935._0x41fdde)](_0x28534d,'h')?0x36ee80:0x5265c00;return _0x5a54c0*_0x3532ec;}import{readFileSync as _0x4106bf}from'fs';import{dirname as _0x212ec4,resolve}from'path';import{fileURLToPath}from'url';function readCliVersion(){const _0x4813bc={_0x1cab74:0xd0,_0x26e661:0x45,_0x201f5b:0xa7,_0x17ec28:0xe4,_0x9c1715:0x71},_0x164b30={_0x2d7dd4:0xc9},_0x4897d1={'nRqDP':function(_0x252c87,_0x426d9f){return _0x252c87(_0x426d9f);},'AviAZ':_0x32aee6(0x11f,-_0x4813bc._0x1cab74)+_0x32feb7(-0x147,_0x4813bc._0x26e661)};function _0x32aee6(_0x4b1277,_0x248f8c){return _0x143ed5(_0x4b1277-0x100,_0x248f8c);}const _0x49e03f=_0x4897d1[_0x32feb7(-0x41,-_0x4813bc._0x201f5b)](_0x212ec4,fileURLToPath(import.meta.url));function _0x32feb7(_0x4a472b,_0x266fe7){return _0x143ed5(_0x4a472b- -_0x164b30._0x2d7dd4,_0x266fe7);}const _0x1ed8a5=resolve(_0x49e03f,_0x4897d1[_0x32feb7(-0x110,_0x4813bc._0x17ec28)]),_0x243c4e=_0x4106bf(_0x1ed8a5,'utf8'),_0x51734b=JSON['parse'](_0x243c4e);return _0x51734b['version']??_0x32aee6(_0x4813bc._0x9c1715,-0x9f);}function buildPairingJson(_0x4fa2c6,_0x1bc8fd,_0x320d08,_0x8deda7){const _0x1e7bab={_0x2850de:0x3bd,_0x387413:0x264,_0xe4e95c:0x42f,_0x10877f:0x374,_0x3dc07a:0x3a4,_0x287177:0x1fc,_0x106320:0x239,_0x1dcab5:0x3a1,_0x985ee4:0x488,_0x14a97a:0x2a5,_0x4a726c:0x1c3,_0x43b51c:0x2cf,_0x4cdd3b:0x592,_0x4458ad:0x1da,_0xe5ae76:0x223,_0x6c2e97:0x20,_0x465f8a:0x22c,_0x4434b3:0x3f,_0x30e934:0x1a9,_0x5b6b52:0x482,_0xcae5f8:0x28a,_0x1da98c:0x28b,_0x3dc797:0x61f,_0x5ef5bd:0x53f,_0x4271b5:0x59c,_0x3384fc:0x1c2,_0x1d16f3:0x1db},_0x51b2b9={_0x54957d:0x266},_0x1527fb={};_0x1527fb[_0x5ce0a2(_0x1e7bab._0x2850de,0x368)+'d']=_0x320d08[_0x49d902(0x52f,0x367)+'d'],_0x1527fb[_0x49d902(_0x1e7bab._0x387413,0x471)]=_0x320d08[_0x49d902(_0x1e7bab._0xe4e95c,0x471)],_0x1527fb[_0x49d902(_0x1e7bab._0x10877f,0x56c)]=_0x320d08['method'],_0x1527fb['serviceP'+_0x5ce0a2(0x177,0x1fc)]=_0x320d08[_0x49d902(0x326,_0x1e7bab._0x3dc07a)+_0x5ce0a2(0x28d,_0x1e7bab._0x287177)],_0x1527fb[_0x49d902(0xaa,_0x1e7bab._0x106320)]=_0x320d08['logPath'],_0x1527fb[_0x5ce0a2(_0x1e7bab._0x1dcab5,0x2d0)+_0x5ce0a2(_0x1e7bab._0x985ee4,_0x1e7bab._0x14a97a)]=_0x320d08[_0x49d902(_0x1e7bab._0x4a726c,_0x1e7bab._0x43b51c)+'Path'],_0x1527fb[_0x5ce0a2(0x511,0x517)]=_0x320d08['pid'];const _0x92f87={};function _0x49d902(_0x91f136,_0x49ce41){return _0x143ed5(_0x49ce41-_0x51b2b9._0x54957d,_0x91f136);}_0x92f87['ok']=!![],_0x92f87['action']=_0x4fa2c6[_0x49d902(0x4b4,_0x1e7bab._0x4cdd3b)],_0x92f87[_0x5ce0a2(_0x1e7bab._0x4458ad,0x3bb)]=_0x8deda7,_0x92f87[_0x5ce0a2(0x2df,0x223)+'d']=_0x4fa2c6['config'][_0x5ce0a2(0x188,_0x1e7bab._0xe5ae76)+'d'];function _0x5ce0a2(_0x4e34fc,_0x1e16b7){return _0x143ed5(_0x1e16b7-0x267,_0x4e34fc);}return _0x92f87[_0x49d902(0x3e4,0x3ca)]=_0x4fa2c6[_0x49d902(_0x1e7bab._0x6c2e97,_0x1e7bab._0x465f8a)]['relayUrl'],_0x92f87[_0x49d902(-_0x1e7bab._0x4434b3,_0x1e7bab._0x30e934)+'l']=_0x4fa2c6['config'][_0x5ce0a2(-0x27,0x1aa)+'l'],_0x92f87['instance'+'Id']=_0x4fa2c6[_0x5ce0a2(0x246,0x22d)][_0x49d902(0x53c,_0x1e7bab._0x5b6b52)+'Id'],_0x92f87[_0x49d902(0x45f,_0x1e7bab._0xcae5f8)+'de']=_0x4fa2c6['accessCo'+'de'],_0x92f87[_0x5ce0a2(0x141,_0x1e7bab._0x1da98c)+_0x49d902(_0x1e7bab._0x3dc797,_0x1e7bab._0x5ef5bd)+_0x49d902(0xed,0x1c8)]=_0x4fa2c6[_0x5ce0a2(0x2a8,_0x1e7bab._0x1da98c)+_0x49d902(_0x1e7bab._0x4271b5,_0x1e7bab._0x5ef5bd)+_0x49d902(0x223,0x1c8)],_0x92f87[_0x5ce0a2(0x21e,0x348)+_0x5ce0a2(0x2e5,_0x1e7bab._0x287177)]=_0x1bc8fd,_0x92f87[_0x5ce0a2(_0x1e7bab._0x3384fc,_0x1e7bab._0x1d16f3)]=_0x1527fb,_0x92f87;}import{mkdirSync as _0x23b70c,writeFileSync as _0x5ec589}from'fs';function _0x143ed5(_0x32a55d,_0x557ce1){const _0x4cfa3c={_0xbb0f47:0x22b};return _0x4e7e(_0x32a55d- -_0x4cfa3c._0xbb0f47,_0x557ce1);}import{dirname as _0x10220c,isAbsolute,join as _0x167a5e,resolve as _0x147aad}from'path';import _0x43b88d from'qrcode';var DEFAULT_QR_DIR=getOpenClawMediaDir();async function writePairingQrPng(_0x1fe3bd,_0x1098e8){const _0x1ba743={_0x406ac2:0x17c,_0x451aee:0x7cc,_0x4109b3:0x1ed,_0x13bf60:0x17b,_0x5a43a2:0x1bd,_0x4ab7e3:0x1c6,_0x3e7486:0x6b,_0x3b0052:0x44,_0xc7465:0x1e0},_0x1c4091={_0x4fe014:0x5fa},_0x4afb92={_0x587b1f:0x188},_0x4f72e1={'TbJTe':function(_0x380979,_0x178a34,_0xbd3ad9){return _0x380979(_0x178a34,_0xbd3ad9);},'gouUs':function(_0x289980,_0xfee071){return _0x289980(_0xfee071);},'oyMuw':_0x57179d(0x29d,_0x1ba743._0x406ac2)+'g'},_0x583f61=_0x4f72e1[_0x2f949a(_0x1ba743._0x451aee,0x6a9)](resolveQrOutputPath,_0x1fe3bd,_0x1098e8),_0x15d020={};_0x15d020[_0x57179d(-0x39e,-_0x1ba743._0x4109b3)+'e']=!![],_0x23b70c(_0x4f72e1[_0x57179d(0x67,-0x8d)](_0x10220c,_0x583f61),_0x15d020);const _0x170fda={};_0x170fda[_0x57179d(-0x8c,-0x4e)]=_0x4f72e1[_0x57179d(0xda,_0x1ba743._0x13bf60)];function _0x57179d(_0x3bb82c,_0x3f1eea){return _0x143ed5(_0x3f1eea- -_0x4afb92._0x587b1f,_0x3bb82c);}_0x170fda[_0x57179d(-0x21d,-_0x1ba743._0x5a43a2)+_0x57179d(-_0x1ba743._0x4ab7e3,-0x18)+'evel']='M',_0x170fda[_0x2f949a(0x93e,0x8b0)]=0x1;function _0x2f949a(_0x3ce211,_0x148a6a){return _0x143ed5(_0x3ce211-_0x1c4091._0x4fe014,_0x148a6a);}_0x170fda['width']=0x2d0;const _0x2b901e=await _0x43b88d['toDataUR'+'L'](_0x1fe3bd[_0x57179d(0x3,-0xcf)+'d'],_0x170fda),_0x169bd6=_0x2b901e[_0x57179d(-_0x1ba743._0x3e7486,_0x1ba743._0x3b0052)](/^data:image\/png;base64,/,'');return _0x5ec589(_0x583f61,Buffer['from'](_0x169bd6,_0x57179d(_0x1ba743._0xc7465,-0x25))),_0x583f61;}function resolveQrOutputPath(_0x26320a,_0x3a839d){const _0x2b9f4f={_0x774dbc:0x12a,_0x33fc97:0x2c,_0x3eaa4d:0x2d1},_0x523c70={_0x1f8891:0x1af};function _0x1bd580(_0x48e3c,_0xe96264){return _0x143ed5(_0xe96264-_0x523c70._0x1f8891,_0x48e3c);}const _0x4aac63={'vYwLd':function(_0x3986d6,_0x16d3b5){return _0x3986d6(_0x16d3b5);},'EuZDf':function(_0x3b27f0,_0xc627f6){return _0x3b27f0(_0xc627f6);},'nBZkc':function(_0xfd9c4b,_0x19eb5c,_0x46116e){return _0xfd9c4b(_0x19eb5c,_0x46116e);}},_0x181daf=_0x3a839d?.['trim']();function _0x232949(_0x48cd25,_0x197621){return _0x143ed5(_0x197621-0x18,_0x48cd25);}if(_0x181daf)return _0x4aac63['vYwLd'](isAbsolute,_0x181daf)?_0x181daf:_0x4aac63['EuZDf'](_0x147aad,_0x181daf);return _0x4aac63[_0x232949(0xb,0x140)](_0x167a5e,DEFAULT_QR_DIR,_0x26320a[_0x232949(-_0x2b9f4f._0x774dbc,-0x22)][_0x232949(-0x4,-_0x2b9f4f._0x33fc97)+'d']+_0x1bd580(0x124,_0x2b9f4f._0x3eaa4d));}function _0x4e7e(_0x5cdcc3,_0x16552c){_0x5cdcc3=_0x5cdcc3-0x156;const _0x2ded83=_0x269e();let _0x3fc3ea=_0x2ded83[_0x5cdcc3];if(_0x4e7e['ZUhWcs']===undefined){var _0x12f8dd=function(_0x25ba3e){const _0x1764cb='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x531963='',_0x5654e1='',_0x3bc792=_0x531963+_0x12f8dd;for(let _0x27eed8=0x0,_0x862a51,_0x45c72e,_0x4939d2=0x0;_0x45c72e=_0x25ba3e['charAt'](_0x4939d2++);~_0x45c72e&&(_0x862a51=_0x27eed8%0x4?_0x862a51*0x40+_0x45c72e:_0x45c72e,_0x27eed8++%0x4)?_0x531963+=_0x3bc792['charCodeAt'](_0x4939d2+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x862a51>>(-0x2*_0x27eed8&0x6)):_0x27eed8:0x0){_0x45c72e=_0x1764cb['indexOf'](_0x45c72e);}for(let _0x28a010=0x0,_0x5dce7f=_0x531963['length'];_0x28a010<_0x5dce7f;_0x28a010++){_0x5654e1+='%'+('00'+_0x531963['charCodeAt'](_0x28a010)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5654e1);};_0x4e7e['lsoPRJ']=_0x12f8dd,_0x4e7e['VAUryg']={},_0x4e7e['ZUhWcs']=!![];}const _0x269e8f=_0x2ded83[0x0],_0x4e7e57=_0x5cdcc3+_0x269e8f,_0x5704f7=_0x4e7e['VAUryg'][_0x4e7e57];if(!_0x5704f7){const _0x577fa6=function(_0x2d8694){this['WTzoRE']=_0x2d8694,this['hMWcTY']=[0x1,0x0,0x0],this['rSHsLa']=function(){return'newState';},this['zkUPOB']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['eaaNsr']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x577fa6['prototype']['HhkOJi']=function(){const _0x462305=new RegExp(this['zkUPOB']+this['eaaNsr']),_0x4212c9=_0x462305['test'](this['rSHsLa']['toString']())?--this['hMWcTY'][0x1]:--this['hMWcTY'][0x0];return this['QSHlTo'](_0x4212c9);},_0x577fa6['prototype']['QSHlTo']=function(_0x16324c){if(!Boolean(~_0x16324c))return _0x16324c;return this['hTBrfy'](this['WTzoRE']);},_0x577fa6['prototype']['hTBrfy']=function(_0x1ecf64){for(let _0x40ec70=0x0,_0x2c5274=this['hMWcTY']['length'];_0x40ec70<_0x2c5274;_0x40ec70++){this['hMWcTY']['push'](Math['round'](Math['random']())),_0x2c5274=this['hMWcTY']['length'];}return _0x1ecf64(this['hMWcTY'][0x0]);},new _0x577fa6(_0x4e7e)['HhkOJi'](),_0x3fc3ea=_0x4e7e['lsoPRJ'](_0x3fc3ea),_0x4e7e['VAUryg'][_0x4e7e57]=_0x3fc3ea;}else _0x3fc3ea=_0x5704f7;return _0x3fc3ea;}function decidePairServiceAction(_0x26543e,_0x1b84c9){const _0x46211d={_0x2986c3:0x18d,_0x325754:0x71,_0x4891a5:0x7eb,_0x572605:0x6be,_0x4eb65f:0x5e0,_0x232046:0x397,_0x1d8d05:0x3ba,_0x105a4d:0x885,_0x27c312:0x6d1,_0x566da1:0x506,_0x19db93:0x51a},_0x2d66a6={};_0x2d66a6[_0x354225(_0x46211d._0x2986c3,_0x46211d._0x325754)]=_0x4ec98d(_0x46211d._0x4891a5,0x801);const _0x181660=_0x2d66a6;if(!_0x1b84c9[_0x4ec98d(_0x46211d._0x572605,_0x46211d._0x4eb65f)+'d'])return _0x354225(0x30d,0x411);if(!_0x1b84c9[_0x354225(_0x46211d._0x232046,0x572)])return _0x354225(_0x46211d._0x1d8d05,0x1ad);if(_0x26543e['action']===_0x4ec98d(_0x46211d._0x105a4d,_0x46211d._0x27c312)+'ed')return _0x181660['pEANd'];function _0x4ec98d(_0x247285,_0x1a7366){return _0x75393(_0x1a7366,_0x247285-0x3c8);}function _0x354225(_0x3a7de1,_0xebce6){return _0x75393(_0xebce6,_0x3a7de1- -0x69);}return _0x4ec98d(_0x46211d._0x566da1,_0x46211d._0x19db93);}async function main(){const _0x4c0860={_0x3eed7a:0x2ea,_0x148382:0x22d,_0xd5fe9b:0x410,_0x194ee0:0x541,_0x103434:0x11,_0x33d4c7:0x39c,_0x59ba63:0x5f9,_0x46d85b:0x476,_0x463cae:0x45b,_0x31b391:0x26,_0x14c999:0xb4,_0x21ee1c:0x13e,_0x171089:0x6d3,_0x3256a6:0x42b,_0x1b9460:0x351,_0x375ab1:0x279,_0x38f430:0x14a,_0x21cc1f:0x34f,_0x3e91ed:0x356,_0x35fc8f:0x2c8,_0xbbb1c6:0x34f,_0xc5874c:0x118,_0x86c4c2:0x436,_0x298b36:0x501,_0x31f6bd:0x1a5,_0x55b256:0x334,_0x1ba591:0x2b5,_0x5fdaa1:0x21e,_0x2c3a14:0x52,_0x313cfd:0x20,_0x5d3812:0x1da,_0x31199f:0x6d0,_0xfe566f:0x45a,_0x3b7e12:0x64a,_0x303efe:0x347,_0x283d74:0x6f7,_0x259066:0x3dd,_0x993a01:0x213,_0x5d8f69:0x2fb,_0x384724:0x1fb,_0x3defcc:0x398,_0x8a172f:0x28c,_0x12fd39:0x3e7,_0x226be5:0x3d5,_0x353243:0x2b,_0x168e07:0x31,_0x422a69:0x2b7,_0x27789a:0x1c7,_0x450eb8:0x523,_0x2939d8:0x687,_0x389b40:0x84,_0x542e4e:0x29a,_0x52b05b:0x1a9,_0x2febf3:0x498,_0x393a7f:0x6a,_0x36e80e:0x5e,_0x4cf9a8:0x316,_0xbc58a0:0x84,_0x2b7581:0x263,_0x48499d:0x385,_0x251aae:0xd1,_0x2cc292:0x5df,_0x3ac635:0x250,_0x30ff46:0x296,_0x512499:0x358,_0x51938b:0x392,_0x2acb09:0x336,_0x1def13:0x88c,_0x5dca21:0x3b,_0x5b1d14:0x618,_0x479194:0x513,_0x4584f7:0x38c,_0x492434:0x5dc,_0x18c714:0x17d,_0x5dfafc:0x77b,_0x1287e4:0x668,_0x3d5e81:0x4bf,_0x3b320e:0x138,_0x888c56:0x4ab,_0x1d1382:0x360,_0x51b593:0x324,_0x2e7e4a:0x391,_0x450adc:0x369,_0x296bbf:0x340,_0x24cd5f:0x470,_0x4993d4:0x1b1,_0x401687:0xbb,_0x21b7f2:0x496,_0x1b0812:0x436,_0x4f089c:0x5d7,_0x11eaa7:0x67b,_0x26329e:0x576,_0x59743a:0x311,_0x3b69d1:0x572,_0x587d9f:0x29f,_0x1897ad:0xff,_0x57a21c:0x722,_0x1c9e10:0x486,_0x2a1d36:0x6f4,_0x43ed86:0x449,_0x5afccd:0x330,_0xe7351a:0x635,_0x2f555c:0x6fe,_0x16ab40:0x112,_0x4e2947:0x503,_0x11b9f1:0x799,_0x34d573:0x6d4,_0x400164:0x72,_0x2e7407:0x9e,_0xb130d6:0x4ad,_0x50d6f0:0x310,_0x1c2418:0x13c,_0x412da3:0x68b,_0xa40793:0x1c3,_0x1d872a:0x640,_0x18505d:0x182,_0x56f330:0x371,_0x3d9156:0x74f,_0x56d1aa:0x286,_0x199676:0x5b1,_0x23dd4f:0x43d,_0x2d2b9e:0x522,_0x347aa4:0x375,_0x1a34f7:0x560,_0x3de26e:0xea,_0x4a48b7:0x38f,_0x56b19a:0x32c,_0x17bf52:0x158,_0x36f7fa:0x55,_0xf86c15:0x573,_0x10c976:0x64c,_0x1aa32d:0x441,_0x43f81c:0x372,_0x3310b3:0x46c,_0x5ef52c:0x593,_0x508f89:0x586,_0x16aaf7:0x59f,_0x86f4f3:0x2a9,_0x143433:0x5f2,_0xf5f7ac:0x30a,_0x5ccc78:0x1d4,_0x265f05:0x4ac,_0x29592b:0x236,_0x235927:0x368,_0x10327e:0x6a7,_0x5e64a5:0x331,_0x4ba775:0x3a8,_0x2f63c1:0x5a3,_0x5846cb:0x4cf,_0x334600:0x579,_0x1ef360:0x2f0,_0x433966:0x1c9,_0x4557a9:0x17e,_0x1f2f24:0x35f,_0x3070fa:0x481,_0x33be80:0x10b,_0x5e9171:0x2e9,_0x2d6fe7:0x3af,_0x4b8b94:0x435,_0x399c02:0xfd,_0x3aebe7:0x27f,_0x1e8fa8:0x134,_0x3deb8d:0x3b5,_0x3f4eb5:0x4c1,_0x3160f6:0x2ad},_0x46c959={_0x5b8188:0x4b8,_0x3fe16e:0x5ba,_0x5deb75:0x109,_0x52b2e9:0xa35,_0x2fe571:0x82e,_0x361600:0x353,_0xdc578:0x260,_0x2dca6e:0x1ea,_0x315346:0x1a},_0x2b29b9={_0x4eed6e:0x1a8},_0x5be056={_0x46c337:0x1ed,_0x2d0810:0xe3,_0x5188d8:0x17e,_0x1bec91:0x331,_0x240f3a:0x2e,_0x14f8e0:0x304,_0x80374e:0x35c,_0x1c1d41:0x39a,_0x52a83b:0x334,_0x58fc71:0x83},_0x7c83db={_0x26caa3:0xcf},_0x50d978={_0x11df67:0x647,_0x2ba9a3:0x6ee,_0x2d6748:0x6bb,_0x30aafc:0x8bd,_0x3eb86b:0x715,_0x1d19d5:0x4ca,_0x17d002:0x40c,_0x91465e:0x73f,_0x4c7bd7:0x646,_0x253086:0x837,_0x50a7e7:0x86e,_0x5ba09c:0x55f,_0x2e2b59:0x4ed,_0x1f4cb9:0x821,_0x3427f7:0x6fc,_0x303b00:0x6bb,_0x25be20:0x4a5,_0x12bab7:0x3e0,_0x4a250e:0x813,_0x2fe663:0x6ba,_0x312f92:0x6e6,_0x36f11e:0x44e,_0xe764ed:0x548},_0x322ff5={_0x3e2908:0xae},_0x3f0d74={_0x4300e5:0x3e0,_0x11acfe:0x511,_0x490749:0x59c},_0x1dff0a={_0x1ec786:0x204},_0x2b2269={'DFMLR':_0x17fdd1(_0x4c0860._0x3eed7a,_0x4c0860._0x148382),'LCKGw':function(_0x42e8d6,_0x174f8b){return _0x42e8d6(_0x174f8b);},'qXtbj':function(_0x580f75,_0x5d72b0,_0x3a1791){return _0x580f75(_0x5d72b0,_0x3a1791);},'LpkSm':function(_0x13d08c,_0x107023,_0x55a2ba){return _0x13d08c(_0x107023,_0x55a2ba);},'CkLjo':function(_0x5110ae,_0x97451a){return _0x5110ae===_0x97451a;},'BUjle':'Auto-ins'+_0x17fdd1(_0x4c0860._0xd5fe9b,_0x4c0860._0x194ee0)+'ackgroun'+'d\x20servic'+'e.','ZzTTz':'register'+'ed','UamKM':function(_0x4c43c7,_0x182cef){return _0x4c43c7(_0x182cef);},'eIrvL':function(_0x4831d6,_0x1e6231,_0x21a567,_0x1ca948,_0x1c8560){return _0x4831d6(_0x1e6231,_0x21a567,_0x1ca948,_0x1c8560);},'TFhuo':function(_0x479463,_0x13dc31,_0x430730){return _0x479463(_0x13dc31,_0x430730);},'xSRKI':_0x17fdd1(0x49,-_0x4c0860._0x103434)+_0x3a1378(0x223,_0x4c0860._0x33d4c7)+'reshed.','EACGy':function(_0x1009d2,_0x10e5f5){return _0x1009d2===_0x10e5f5;},'GFYOi':function(_0x219d75){return _0x219d75();},'ggWKf':function(_0x50c9e8,_0x36ca58,_0xcd0a90){return _0x50c9e8(_0x36ca58,_0xcd0a90);},'YvOuH':function(_0x112f8b,_0x4c81a8){return _0x112f8b===_0x4c81a8;},'TdBEx':function(_0x386685){return _0x386685();},'xdYhg':function(_0x294fb2,_0x50d4d3){return _0x294fb2===_0x50d4d3;},'WcMdI':_0x3a1378(0x57f,_0x4c0860._0x59ba63)+_0x3a1378(_0x4c0860._0x46d85b,_0x4c0860._0x463cae)+_0x17fdd1(0x6a,0xff)+_0x17fdd1(_0x4c0860._0x31b391,-_0x4c0860._0x14c999),'Axkcx':function(_0x4c945e){return _0x4c945e();},'NjdpM':function(_0x2f9b34,_0x3e7932){return _0x2f9b34(_0x3e7932);},'IQpWJ':_0x17fdd1(_0x4c0860._0x21ee1c,-0xb8),'NxqoQ':function(_0x2f4784,_0x16ae54){return _0x2f4784(_0x16ae54);},'vmlqE':function(_0x23b0d8,_0xd93987,_0x36a75d){return _0x23b0d8(_0xd93987,_0x36a75d);},'uQtIs':_0x3a1378(_0x4c0860._0x171089,0x4f6),'Wmniz':function(_0x2b39ed){return _0x2b39ed();},'iIDWM':function(_0x23842a,_0x235b1b){return _0x23842a(_0x235b1b);},'AGGBf':_0x3a1378(_0x4c0860._0x3256a6,_0x4c0860._0x1b9460)+_0x17fdd1(0x3c3,_0x4c0860._0x375ab1),'qqrbc':function(_0x193263){return _0x193263();},'TMTHf':'SIGINT','vAwip':_0x17fdd1(0x2b1,_0x4c0860._0x38f430),'kyzxv':function(_0x51263d){return _0x51263d();}},[,,_0x1cf95f=_0x3a1378(0x659,0x574),..._0x11c354]=process[_0x3a1378(0x34a,0x487)],_0x1351f5=_0x2b2269[_0x3a1378(0x357,_0x4c0860._0x21cc1f)](hasFlag,_0x11c354,_0x3a1378(0x298,_0x4c0860._0x3e91ed)+'e'),_0x457f21=_0x2b2269[_0x3a1378(_0x4c0860._0x35fc8f,_0x4c0860._0xbbb1c6)](hasFlag,_0x11c354,_0x17fdd1(0x138,_0x4c0860._0xc5874c));function _0x3a1378(_0x3c9c28,_0x46471d){return _0x75393(_0x3c9c28,_0x46471d-_0x1dff0a._0x1ec786);}if(_0x1cf95f===_0x3a1378(_0x4c0860._0x86c4c2,0x5e5)){const _0x501f32=hasFlag(_0x11c354,_0x3a1378(0x3d0,_0x4c0860._0x298b36));!_0x501f32&&await ensurePairPrerequisites();const _0x1bb8b9=resolveGatewayAuth();if(_0x3a1378(_0x4c0860._0x31f6bd,_0x4c0860._0x55b256)in _0x1bb8b9)throw new Error(_0x1bb8b9['error']);const _0x562680=readFlag(_0x11c354,_0x17fdd1(_0x4c0860._0x1ba591,_0x4c0860._0x5fdaa1))??readFlag(_0x11c354,'-s')??_0x17fdd1(_0x4c0860._0x2c3a14,_0x4c0860._0x313cfd)+_0x17fdd1(_0x4c0860._0x5d3812,0x1e4)+_0x3a1378(0x7e7,_0x4c0860._0x31199f)+'.ai',_0x309462=_0x2b2269[_0x3a1378(_0x4c0860._0xfe566f,_0x4c0860._0x3b7e12)](readFlag,_0x11c354,'--name')??readFlag(_0x11c354,'-n')??getDefaultBridgeDisplayName(),_0x4ffdc9=_0x2b2269['LpkSm'](readFlag,_0x11c354,'--qr-fil'+'e'),_0xe7627b={};_0xe7627b['serverUr'+'l']=_0x562680,_0xe7627b[_0x17fdd1(_0x4c0860._0x303efe,0x1a9)+_0x17fdd1(0x403,0x402)]=_0x309462,_0xe7627b[_0x3a1378(_0x4c0860._0x283d74,0x71c)+_0x17fdd1(_0x4c0860._0x259066,_0x4c0860._0x993a01)]=_0x1bb8b9[_0x17fdd1(_0x4c0860._0x5d8f69,0x1c7)],_0xe7627b[_0x3a1378(_0x4c0860._0x384724,_0x4c0860._0x3defcc)+_0x3a1378(_0x4c0860._0x8a172f,0x330)]=_0x1bb8b9[_0x17fdd1(_0x4c0860._0x12fd39,0x47f)];const _0x131403=await pairGateway(_0xe7627b),_0x3c0db7=await writePairingQrPng(_0x131403,_0x4ffdc9),_0x590f03=getServiceStatus(),_0x51e076=_0x2b2269[_0x3a1378(0x29b,_0x4c0860._0xbbb1c6)](decidePairServiceAction,_0x131403,_0x590f03);if(_0x2b2269[_0x3a1378(0x527,_0x4c0860._0x226be5)](_0x51e076,_0x17fdd1(_0x4c0860._0x353243,_0x4c0860._0x168e07))){_0x457f21?printJson(buildPairingJson(_0x131403,_0x3c0db7,_0x590f03,_0x17fdd1(_0x4c0860._0x422a69,0x185)+_0x17fdd1(0x6a,_0x4c0860._0x27789a)+'ce\x20alrea'+_0x3a1378(0x5a9,0x568)+_0x3a1378(_0x4c0860._0x450eb8,_0x4c0860._0x2939d8)+'\x20unchang'+_0x17fdd1(_0x4c0860._0x389b40,-0x9a))):(printPairingInfo(_0x131403,_0x3c0db7),console[_0x17fdd1(_0x4c0860._0x542e4e,_0x4c0860._0x52b05b)](_0x3a1378(_0x4c0860._0x2febf3,0x5ce)+_0x17fdd1(_0x4c0860._0x393a7f,-_0x4c0860._0x36e80e)+_0x17fdd1(_0x4c0860._0x4cf9a8,0x2b6)+'dy\x20runni'+'ng.\x20Left'+'\x20unchang'+_0x17fdd1(_0x4c0860._0xbc58a0,-0x81)),printServiceResult(null,_0x590f03));return;}try{const _0x5bcfe9=_0x51e076===_0x17fdd1(_0x4c0860._0x2b7581,0x64)?installService():restartService(),_0x4b5239=_0x51e076===_0x3a1378(_0x4c0860._0x48499d,0x57a)?_0x2b2269[_0x17fdd1(_0x4c0860._0x251aae,-0xf8)]:_0x131403[_0x3a1378(_0x4c0860._0x2cc292,0x725)]===_0x2b2269['ZzTTz']?_0x17fdd1(0x1fb,0x21c)+_0x17fdd1(_0x4c0860._0x3ac635,0x3d6)+_0x17fdd1(_0x4c0860._0x30ff46,_0x4c0860._0x512499)+_0x3a1378(_0x4c0860._0x51938b,_0x4c0860._0x2acb09)+_0x3a1378(_0x4c0860._0x1def13,0x720)+_0x17fdd1(0x8c,-_0x4c0860._0x5dca21)+_0x17fdd1(0x331,0x2c1)+_0x3a1378(0x7e0,_0x4c0860._0x5b1d14)+_0x3a1378(_0x4c0860._0x479194,_0x4c0860._0x4584f7)+_0x3a1378(_0x4c0860._0x492434,0x6d6):_0x17fdd1(0x2b7,0x39e)+_0x17fdd1(0x6a,_0x4c0860._0x18c714)+_0x3a1378(_0x4c0860._0x5dfafc,_0x4c0860._0x1287e4)+'nstalled'+'\x20but\x20sto'+'pped.\x20Re'+_0x17fdd1(0x8b,-0x13)+_0x3a1378(0x7cd,0x696);_0x457f21?_0x2b2269['UamKM'](printJson,_0x2b2269[_0x3a1378(0x623,_0x4c0860._0x3d5e81)](buildPairingJson,_0x131403,_0x3c0db7,_0x5bcfe9,_0x4b5239)):(printPairingInfo(_0x131403,_0x3c0db7),_0x2b2269[_0x17fdd1(0x26f,_0x4c0860._0x3b320e)](printServiceResult,_0x4b5239,_0x5bcfe9));}catch(_0x3d2d9d){console[_0x3a1378(0x189,0x334)](_0x3a1378(_0x4c0860._0x888c56,_0x4c0860._0x1d1382)+_0x3a1378(0x2ff,_0x4c0860._0x51b593)+_0x17fdd1(_0x4c0860._0x2e7e4a,_0x4c0860._0x450adc)+_0x3a1378(_0x4c0860._0x296bbf,_0x4c0860._0x24cd5f)+'ctivatio'+_0x17fdd1(0x226,_0x4c0860._0x4993d4)+':\x20'+formatError(_0x3d2d9d)),console[_0x17fdd1(0x1d,-_0x4c0860._0x401687)]('You\x20can\x20'+'still\x20ru'+_0x17fdd1(_0x4c0860._0x48499d,0x407)+_0x3a1378(0x592,_0x4c0860._0x21b7f2)+_0x3a1378(_0x4c0860._0x1b0812,_0x4c0860._0x4f089c)+_0x3a1378(_0x4c0860._0x11eaa7,_0x4c0860._0x26329e)+_0x3a1378(0x38f,0x39f)+_0x17fdd1(0x378,_0x4c0860._0x59743a)),process[_0x17fdd1(0x38e,_0x4c0860._0x3b69d1)]=0x1;}return;}if(_0x1cf95f==='refresh-'+_0x17fdd1(_0x4c0860._0x587d9f,_0x4c0860._0x1897ad)){const _0x1a55ff=readFlag(_0x11c354,_0x3a1378(0x8c9,_0x4c0860._0x57a21c)+'e'),_0x313d7f=resolveGatewayAuth();if(_0x17fdd1(0x1d,0x1a0)in _0x313d7f)throw new Error(_0x313d7f[_0x3a1378(_0x4c0860._0x1c9e10,0x334)]);const _0x5750c3={};_0x5750c3[_0x3a1378(0x68a,0x71c)+_0x3a1378(0x895,_0x4c0860._0x2a1d36)]=_0x313d7f[_0x17fdd1(_0x4c0860._0x5d8f69,0x28c)],_0x5750c3['gatewayP'+_0x3a1378(_0x4c0860._0x43ed86,_0x4c0860._0x5afccd)]=_0x313d7f[_0x3a1378(_0x4c0860._0xe7351a,_0x4c0860._0x2f555c)];const _0x21c4d5=await refreshAccessCode(_0x5750c3),_0x1f3977=await writePairingQrPng(_0x21c4d5,_0x1a55ff);_0x457f21?printJson(_0x2b2269['eIrvL'](buildPairingJson,_0x21c4d5,_0x1f3977,getServiceStatus(),_0x2b2269['xSRKI'])):printPairingInfo(_0x21c4d5,_0x1f3977);return;}if(_0x2b2269['EACGy'](_0x1cf95f,_0x17fdd1(0x263,_0x4c0860._0x16ab40))){const _0x34f48d=requirePairingConfig(),_0x44deb7=_0x2b2269[_0x3a1378(0x6fd,0x557)](installService);console[_0x3a1378(_0x4c0860._0x4e2947,0x5b1)](_0x3a1378(0x44f,0x37f)+'d\x20backgr'+'ound\x20ser'+_0x3a1378(_0x4c0860._0x11b9f1,_0x4c0860._0x34d573)+'\x20gateway'+'\x20'+_0x34f48d[_0x17fdd1(0x9e,-0x13a)+'d']+'.'),_0x2b2269[_0x17fdd1(_0x4c0860._0x400164,-_0x4c0860._0x2e7407)](printServiceResult,null,_0x44deb7);return;}if(_0x2b2269[_0x3a1378(0x390,_0x4c0860._0xb130d6)](_0x1cf95f,_0x17fdd1(_0x4c0860._0x50d6f0,_0x4c0860._0x1c2418))){const _0xea23d9=_0x2b2269[_0x3a1378(0x659,_0x4c0860._0x412da3)](requirePairingConfig),_0xf0616b=restartService();console[_0x17fdd1(_0x4c0860._0x542e4e,_0x4c0860._0xa40793)](_0x3a1378(0x588,_0x4c0860._0x1d872a)+'d\x20backgr'+_0x3a1378(_0x4c0860._0x18505d,_0x4c0860._0x56f330)+'vice\x20for'+'\x20gateway'+'\x20'+_0xea23d9['gatewayI'+'d']+'.'),_0x2b2269[_0x3a1378(0x404,0x586)](printServiceResult,null,_0xf0616b);return;}if(_0x2b2269['xdYhg'](_0x1cf95f,_0x17fdd1(0x308,_0x4c0860._0x16ab40))){const _0x5710d7=stopService();console[_0x3a1378(_0x4c0860._0x3d9156,0x5b1)](_0x2b2269[_0x17fdd1(0x281,_0x4c0860._0x56d1aa)]),printServiceResult(null,_0x5710d7);return;}if(_0x1cf95f==='uninstal'+'l'){const _0x56331b=_0x2b2269['GFYOi'](uninstallService);console[_0x3a1378(0x765,_0x4c0860._0x199676)](_0x3a1378(_0x4c0860._0x23dd4f,_0x4c0860._0x2d2b9e)+'backgrou'+'nd\x20servi'+_0x3a1378(_0x4c0860._0x347aa4,_0x4c0860._0x1a34f7)+_0x17fdd1(_0x4c0860._0x3de26e,0x214)),printServiceResult(null,_0x56331b);return;}if(_0x1cf95f==='reset'){_0x2b2269[_0x17fdd1(_0x4c0860._0x4a48b7,0x19a)](stopService),deletePairingConfig(),console[_0x17fdd1(_0x4c0860._0x542e4e,0x246)](_0x17fdd1(0x338,_0x4c0860._0x56b19a)+_0x17fdd1(_0x4c0860._0x17bf52,_0x4c0860._0x36f7fa)+_0x3a1378(_0x4c0860._0xf86c15,_0x4c0860._0x10c976)+getPairingConfigPath());return;}if(_0x2b2269[_0x17fdd1(0x24b,_0x4c0860._0x450adc)](_0x1cf95f,_0x3a1378(0x62c,_0x4c0860._0x1aa32d))){_0x2b2269['Axkcx'](printStatus);return;}if(_0x1cf95f===_0x3a1378(_0x4c0860._0x43f81c,_0x4c0860._0x3310b3)){const _0x55feb9=_0x2b2269['NjdpM'](Number,_0x2b2269[_0x17fdd1(0x38,-0x8b)](readFlag,_0x11c354,_0x2b2269['IQpWJ'])??_0x3a1378(0x4ad,_0x4c0860._0x5ef52c)),_0x319caf=_0x2b2269[_0x17fdd1(0x2cd,0x434)](parseLookbackToMs,_0x2b2269[_0x3a1378(0x763,_0x4c0860._0x508f89)](readFlag,_0x11c354,_0x3a1378(_0x4c0860._0x16aaf7,0x4dc))??_0x2b2269[_0x17fdd1(_0x4c0860._0x86f4f3,0xae)](readFlag,_0x11c354,'-l')),_0x5f24b3=readRecentCliLogs({'lines':_0x55feb9,'lastMs':_0x319caf,'includeErrorLog':hasFlag(_0x11c354,'--errors')});if(_0x457f21){const _0x3dfa56={};_0x3dfa56['ok']=!![],_0x3dfa56[_0x17fdd1(0x3f7,_0x4c0860._0x143433)]=_0x5f24b3,printJson(_0x3dfa56);}else _0x5f24b3[_0x17fdd1(0x32c,0x241)]===0x0?console[_0x17fdd1(0x29a,_0x4c0860._0xf5f7ac)](_0x3a1378(0x447,0x57c)+'ing\x20CLI\x20'+'logs\x20fou'+_0x17fdd1(_0x4c0860._0x5ccc78,0x346)):console[_0x3a1378(0x739,0x5b1)](_0x5f24b3[_0x17fdd1(0x349,0x52f)]('\x0a'));return;}function _0x17fdd1(_0x13cfb6,_0x2a5270){return _0x75393(_0x2a5270,_0x13cfb6- -0x113);}if(_0x1cf95f===_0x2b2269[_0x3a1378(0x66b,0x483)]){const _0x591caf=await _0x2b2269[_0x3a1378(0x655,0x4ec)](buildDoctorReport);_0x457f21?_0x2b2269[_0x17fdd1(0x2cd,_0x4c0860._0x265f05)](printJson,_0x591caf):printDoctorReport(_0x591caf);return;}if(_0x1cf95f==='run'){const _0x3e57f7=requirePairingConfig(),_0x598eeb=_0x2b2269[_0x3a1378(_0x4c0860._0x29592b,_0x4c0860._0x235927)](resolveGatewayUrl,readFlag(_0x11c354,_0x2b2269[_0x3a1378(0x64e,_0x4c0860._0x10327e)])??readFlag(_0x11c354,'-g')),_0x314cbb=_0x18f487=>{const _0x2e12d1={_0x540025:0x49c},_0x11cb87={_0x31237f:0x146};function _0x16710c(_0x29594d,_0x235380){return _0x17fdd1(_0x29594d-_0x11cb87._0x31237f,_0x235380);}function _0x3e8d8e(_0x15c015,_0xa1e9b7){return _0x17fdd1(_0xa1e9b7-_0x2e12d1._0x540025,_0x15c015);}console[_0x16710c(_0x3f0d74._0x4300e5,_0x3f0d74._0x11acfe)]('['+Date[_0x3e8d8e(0x5df,_0x3f0d74._0x490749)]()+']\x20'+_0x18f487);};!_0x1351f5?(console[_0x3a1378(0x462,0x5b1)](_0x3a1378(_0x4c0860._0x5e64a5,_0x4c0860._0x4ba775)+_0x3a1378(0x45a,_0x4c0860._0x2f63c1)+_0x3e57f7['gatewayI'+'d']),console['log'](_0x3a1378(_0x4c0860._0x5846cb,_0x4c0860._0x334600)+_0x17fdd1(_0x4c0860._0x1ef360,0x4fa)+_0x3e57f7[_0x17fdd1(0x2fe,0x2d7)+'Id']),console[_0x3a1378(0x751,0x5b1)](_0x3a1378(_0x4c0860._0x433966,_0x4c0860._0x4ba775)+'URL:\x20'+_0x598eeb),console['log'](''),console[_0x17fdd1(0x29a,_0x4c0860._0x4557a9)](_0x17fdd1(0x98,0x16b)+'\x20bridge\x20'+_0x17fdd1(_0x4c0860._0x1f2f24,_0x4c0860._0x3070fa)+'\x20Press\x20C'+_0x17fdd1(0x27b,0x25b)+_0x17fdd1(0x357,0x3c4)),console[_0x17fdd1(_0x4c0860._0x542e4e,_0x4c0860._0x33be80)]('')):_0x314cbb(_0x3a1378(_0x4c0860._0x5e9171,_0x4c0860._0x2d6fe7)+_0x17fdd1(0x3c4,_0x4c0860._0x4b8b94)+'\x20service'+_0x17fdd1(_0x4c0860._0x399c02,_0x4c0860._0x3aebe7)+_0x17fdd1(0xdc,_0x4c0860._0x1e8fa8)+'eway\x20'+_0x3e57f7[_0x3a1378(0x34a,_0x4c0860._0x3deb8d)+'d']);_0x1351f5&&_0x2b2269[_0x3a1378(0x3a8,_0x4c0860._0x3f4eb5)](writeServiceState);const _0x33f721=new BridgeRuntime({'config':_0x3e57f7,'gatewayUrl':_0x598eeb,'onLog':_0x1eac97=>{function _0x4f88f1(_0x1b5e52,_0x13819b){return _0x17fdd1(_0x13819b-0x5,_0x1b5e52);}_0x314cbb(_0x4f88f1(0x26b,_0x322ff5._0x3e2908)+']\x20'+_0x1eac97);},'onStatus':_0x160ffe=>{const _0x238c87={_0xc2d32a:0x42b};function _0x14f7a6(_0x101856,_0x1a8e2e){return _0x17fdd1(_0x1a8e2e-0x3d0,_0x101856);}function _0x8cb6c9(_0xf9cf22,_0x35725e){return _0x17fdd1(_0xf9cf22-_0x238c87._0xc2d32a,_0x35725e);}if(_0x160ffe[_0x8cb6c9(0x850,0xa0e)+'r']){_0x314cbb(_0x14f7a6(_0x50d978._0x11df67,0x6b0)+_0x8cb6c9(0x5a9,_0x50d978._0x2ba9a3)+(_0x160ffe[_0x8cb6c9(_0x50d978._0x2d6748,0x7f6)+_0x14f7a6(_0x50d978._0x30aafc,0x72d)]?'up':_0x8cb6c9(_0x50d978._0x3eb86b,0x5d9))+(_0x8cb6c9(_0x50d978._0x1d19d5,_0x50d978._0x17d002)+'=')+(_0x160ffe[_0x14f7a6(0x6fc,_0x50d978._0x91465e)+_0x8cb6c9(_0x50d978._0x4c7bd7,_0x50d978._0x253086)]?'up':_0x8cb6c9(0x715,0x896))+(_0x14f7a6(_0x50d978._0x50a7e7,0x68b)+'=')+_0x160ffe[_0x8cb6c9(0x64f,_0x50d978._0x5ba09c)+_0x14f7a6(0x474,_0x50d978._0x2e2b59)]+_0x8cb6c9(_0x50d978._0x1f4cb9,0x711)+_0x160ffe['lastErro'+'r']);return;}_0x314cbb('[status]'+_0x8cb6c9(0x5a9,_0x50d978._0x3427f7)+(_0x160ffe[_0x8cb6c9(_0x50d978._0x303b00,0x4fb)+'nected']?'up':_0x2b2269[_0x8cb6c9(_0x50d978._0x25be20,_0x50d978._0x12bab7)])+(_0x14f7a6(0x393,0x46f)+'=')+(_0x160ffe['gatewayC'+'onnected']?'up':_0x14f7a6(_0x50d978._0x4a250e,_0x50d978._0x2fe663))+(_0x8cb6c9(_0x50d978._0x312f92,0x853)+'=')+_0x160ffe[_0x14f7a6(_0x50d978._0x36f11e,0x5f4)+_0x8cb6c9(_0x50d978._0xe764ed,0x464)]);},'onPendingPairRequest':_0x232554=>{function _0x4df6e5(_0x15f7a4,_0x956f61){return _0x17fdd1(_0x15f7a4- -_0x7c83db._0x26caa3,_0x956f61);}function _0x30860a(_0x47288f,_0xe0bb52){return _0x17fdd1(_0x47288f-0x15,_0xe0bb52);}_0x314cbb(_0x4df6e5(_0x5be056._0x46c337,_0x5be056._0x2d0810)+_0x4df6e5(_0x5be056._0x5188d8,_0x5be056._0x1bec91)+_0x30860a(0xb5,0x234)+'='+_0x232554[_0x4df6e5(-_0x5be056._0x240f3a,-0x1e5)+'d']+(_0x4df6e5(0xca,-0x3d)+'d=')+(_0x232554[_0x30860a(0x297,0x32d)]||_0x4df6e5(0x16f,_0x5be056._0x14f8e0)+'>')+'\x20name='+(_0x232554[_0x30860a(_0x5be056._0x80374e,_0x5be056._0x1c1d41)+_0x4df6e5(_0x5be056._0x52a83b,0x33b)]??_0x4df6e5(0x16f,_0x5be056._0x58fc71)+'>'));}});_0x33f721[_0x17fdd1(_0x4c0860._0x3160f6,_0x4c0860._0x51b593)]();const _0x72cb63=async()=>{function _0x1063ff(_0x230770,_0x5f4a68){return _0x17fdd1(_0x5f4a68- -_0x2b29b9._0x4eed6e,_0x230770);}function _0x113692(_0x47c8bd,_0x21e77e){return _0x17fdd1(_0x21e77e-0x526,_0x47c8bd);}process['off'](_0x113692(_0x46c959._0x5b8188,_0x46c959._0x3fe16e),_0x72cb63),process[_0x113692(0x7ab,0x62b)](_0x1063ff(0x27c,_0x46c959._0x5deb75),_0x72cb63),await _0x33f721[_0x113692(_0x46c959._0x52b2e9,_0x46c959._0x2fe571)](),_0x1351f5&&_0x2b2269[_0x1063ff(_0x46c959._0x361600,_0x46c959._0xdc578)](clearServiceState,process[_0x1063ff(0x332,_0x46c959._0x2dca6e)]),process[_0x1063ff(_0x46c959._0x315346,0xfa)](0x0);};process['on'](_0x2b2269['TMTHf'],_0x72cb63),process['on'](_0x2b2269[_0x17fdd1(0xd2,0x223)],_0x72cb63),await new Promise(()=>{});}_0x2b2269[_0x3a1378(0x455,0x621)](printHelp);}function printPairingInfo(_0x3e6d9d,_0x5542f7){const _0x2d7aba={_0x57c4f6:0x590,_0x3163cf:0x3f2,_0x401fdb:0x2ad,_0x4adc9e:0x2d4,_0x50cd5f:0x4aa,_0x5d5aa1:0x289,_0x4cb067:0x33d,_0x40a40c:0x4a9,_0x5dfe97:0x291,_0x410bf6:0x23b,_0x1f3eef:0x162,_0x4b57b1:0x213,_0x1bbaa0:0x2ef,_0x1499ce:0x316,_0x3d4abf:0x43e,_0x47e1bf:0x1c2,_0x507f0e:0xc7,_0x460e28:0x483,_0x196a13:0x394,_0x618eed:0x4d6,_0xeda826:0x459,_0xe765f:0x378,_0x5124e0:0x56c,_0x3082ec:0x638,_0x2afb55:0x28c,_0x547400:0x3a4},_0x2567cc={_0x523ab7:0x90},_0x217324={_0x3b8f15:0xd6},_0x491eef={};function _0x5f4491(_0xf69d2e,_0x2b7d8d){return _0x75393(_0x2b7d8d,_0xf69d2e-_0x217324._0x3b8f15);}_0x491eef[_0x14c52c(0x3cb,0x456)]=function(_0x42627a,_0x13fd29){return _0x42627a===_0x13fd29;};const _0x2eb935=_0x491eef;_0x2eb935['DuukG'](_0x3e6d9d[_0x14c52c(_0x2d7aba._0x57c4f6,0x491)],_0x5f4491(0x2d6,_0x2d7aba._0x3163cf)+'d')&&console[_0x14c52c(_0x2d7aba._0x401fdb,0x31d)](_0x14c52c(_0x2d7aba._0x4adc9e,_0x2d7aba._0x50cd5f)+'lready\x20p'+_0x14c52c(_0x2d7aba._0x5d5aa1,0x1a2)+_0x14c52c(_0x2d7aba._0x4cb067,0x15a)+_0x14c52c(0x467,0x4a3)+_0x14c52c(_0x2d7aba._0x40a40c,0x39c)+'e.');console['log'](_0x14c52c(-0xd0,0x114)+_0x5f4491(0x3af,0x30b)+_0x3e6d9d[_0x5f4491(_0x2d7aba._0x5dfe97,0xaf)]['gatewayI'+'d']);function _0x14c52c(_0x501c76,_0x371c30){return _0x75393(_0x501c76,_0x371c30- -_0x2567cc._0x523ab7);}console[_0x14c52c(_0x2d7aba._0x410bf6,0x31d)](_0x14c52c(_0x2d7aba._0x1f3eef,0x252)+_0x14c52c(_0x2d7aba._0x4b57b1,0xcf)+formatLocalTime(_0x3e6d9d[_0x5f4491(_0x2d7aba._0x1bbaa0,0x39f)+_0x14c52c(_0x2d7aba._0x1499ce,_0x2d7aba._0x3d4abf)+_0x14c52c(_0x2d7aba._0x47e1bf,_0x2d7aba._0x507f0e)])),console[_0x5f4491(_0x2d7aba._0x460e28,0x282)]('QR\x20image'+_0x14c52c(_0x2d7aba._0x196a13,0x2dd)+_0x5542f7),console[_0x5f4491(_0x2d7aba._0x460e28,_0x2d7aba._0x618eed)](_0x5f4491(0x3ad,0x542)+_0x14c52c(0x54a,0x3fc)+_0x5f4491(_0x2d7aba._0xeda826,0x34c)+_0x14c52c(0x36e,_0x2d7aba._0xe765f)+_0x5f4491(_0x2d7aba._0x5124e0,_0x2d7aba._0x3082ec));const _0x45eec7={};_0x45eec7[_0x14c52c(_0x2d7aba._0x2afb55,0x32f)]=!![],_0x1da8c7[_0x5f4491(0x3f2,_0x2d7aba._0x547400)](_0x3e6d9d['qrPayloa'+'d'],_0x45eec7);}function printStatus(){const _0x100ed3={_0x5b5a45:0x980,_0x3393c8:0x7a5,_0x237ce3:0x504,_0x453eac:0x56b,_0x5281af:0x557,_0x2a5b31:0x5d4,_0x26500d:0x740,_0x5e916a:0x91f,_0x3a9c50:0x8a6,_0x29f0df:0x488,_0x50b1de:0x52d,_0x27c917:0x63b,_0x5a358b:0x6e3,_0x158ac6:0x77d,_0x482373:0x73f,_0xf5b50b:0x858,_0x5203a0:0x753,_0x494f60:0x6d1,_0x81a0fd:0x5a9,_0x531767:0x692,_0x42af73:0x751,_0x4231bb:0x57d,_0x22b9a4:0x530,_0x3f6936:0x6da,_0x3bfed4:0x5c8,_0x41d4fc:0x5e7,_0x4757d8:0x53e,_0x1e2d43:0x798,_0x5c1243:0x444,_0x56e83b:0x591,_0x14753e:0x8bb,_0x266576:0x692,_0x47f2a3:0x756,_0x2644dd:0x742,_0x26af99:0x618,_0x3c26ba:0x6fe,_0x415f77:0x786},_0x52736b={_0x315cdc:0x3f8};function _0x2289a5(_0x15bd9f,_0x3e4152){return _0x75393(_0x3e4152,_0x15bd9f-0x2e5);}const _0x1e7dde=readPairingConfig(),_0x109331=getServiceStatus(),{logPath:_0xd889f5,errorLogPath:_0x5bc086}=getServicePaths(),_0x7cf89f=readCliVersion();console[_0x27904e(_0x100ed3._0x5b5a45,_0x100ed3._0x3393c8)](_0x2289a5(_0x100ed3._0x237ce3,_0x100ed3._0x453eac)+_0x27904e(0x68c,_0x100ed3._0x5281af)+_0x7cf89f);if(!_0x1e7dde)console[_0x27904e(0x59d,_0x100ed3._0x3393c8)]('Config:\x20'+_0x2289a5(_0x100ed3._0x2a5b31,_0x100ed3._0x26500d)+_0x27904e(_0x100ed3._0x5e916a,_0x100ed3._0x3a9c50)+getPairingConfigPath()+')');else{const _0x18a75c=(_0x2289a5(_0x100ed3._0x29f0df,_0x100ed3._0x50b1de)+'1')[_0x2289a5(_0x100ed3._0x27c917,0x634)]('|');let _0x8dfd02=0x0;while(!![]){switch(_0x18a75c[_0x8dfd02++]){case'0':console['log'](_0x27904e(0x503,0x5b0)+_0x2289a5(_0x100ed3._0x5a358b,_0x100ed3._0x158ac6)+'ed');continue;case'1':console['log'](_0x2289a5(0x676,0x51e)+_0x27904e(0x634,_0x100ed3._0x5281af)+(_0x1e7dde[_0x2289a5(_0x100ed3._0x482373,0x739)+'ame']??'-'));continue;case'2':console[_0x27904e(_0x100ed3._0xf5b50b,0x7a5)]('Instance'+':\x20\x20\x20'+_0x1e7dde[_0x27904e(0x7de,0x809)+'Id']);continue;case'3':console['log'](_0x2289a5(0x489,0x2f4)+_0x27904e(_0x100ed3._0x5203a0,_0x100ed3._0x494f60)+_0x1e7dde[_0x27904e(0x46e,_0x100ed3._0x81a0fd)+'d']);continue;case'4':console[_0x2289a5(_0x100ed3._0x531767,0x4f8)](_0x2289a5(_0x100ed3._0x42af73,_0x100ed3._0x4231bb)+'RL:\x20'+_0x1e7dde[_0x27904e(0x450,_0x100ed3._0x22b9a4)+'l']);continue;}break;}}console[_0x2289a5(0x692,_0x100ed3._0x3f6936)]('Gateway:'+_0x27904e(0x508,0x557)+resolveGatewayUrl()),console[_0x2289a5(0x692,0x59e)]('Service:'+_0x2289a5(0x444,0x56e)+(_0x109331[_0x2289a5(0x5db,_0x100ed3._0x3bfed4)+'d']?_0x27904e(0x764,0x6ee)+'d':_0x2289a5(_0x100ed3._0x41d4fc,0x45a)+_0x2289a5(0x44c,_0x100ed3._0x4757d8))+'\x20('+_0x109331[_0x2289a5(0x7e0,0x6e7)]+')'),console[_0x27904e(0x616,0x7a5)](_0x27904e(0x6ca,_0x100ed3._0x1e2d43)+_0x2289a5(_0x100ed3._0x5c1243,_0x100ed3._0x56e83b)+(_0x109331[_0x27904e(_0x100ed3._0x14753e,0x7f8)]?_0x27904e(0x756,0x6c6):'no')),console[_0x2289a5(_0x100ed3._0x266576,0x49e)](_0x2289a5(_0x100ed3._0x47f2a3,_0x100ed3._0x2644dd)+'\x20\x20\x20\x20'+(_0x109331[_0x2289a5(_0x100ed3._0x26af99,_0x100ed3._0x3c26ba)+'ath']||'-')),console[_0x27904e(0x92a,0x7a5)](_0x27904e(0x85a,0x7d2)+_0x27904e(0x367,0x557)+_0xd889f5),console[_0x27904e(0x8e3,0x7a5)]('Error\x20Lo'+_0x27904e(0x492,0x679)+_0x5bc086);function _0x27904e(_0x19b3f8,_0x3779e3){return _0x75393(_0x19b3f8,_0x3779e3-_0x52736b._0x315cdc);}!_0x1e7dde&&(process[_0x2289a5(_0x100ed3._0x415f77,0x945)]=0x1);}function printServiceResult(_0x16ef0c,_0x27d326){const _0x55b97f={_0x124a58:0x3d9,_0x52a46e:0x528,_0x124328:0x3e5,_0x1c1faf:0x612,_0x147663:0x3c0,_0x2dddd1:0x520,_0x281fd8:0x6fc,_0x10a204:0x52c,_0x34a1e5:0x1c1,_0x31452d:0xcb,_0x4ba195:0x3be,_0x6080cc:0x3ac,_0x5c4adb:0x39c,_0x317f05:0x3f1,_0x4219ef:0xed},_0xcffd7f={_0x59e639:0x24f};function _0x1730e9(_0x10be4b,_0xaad924){return _0x143ed5(_0x10be4b-_0xcffd7f._0x59e639,_0xaad924);}const _0x4fb33f={};function _0x4219f5(_0x3d206a,_0x3c78be){return _0x143ed5(_0x3c78be-0x41f,_0x3d206a);}_0x4fb33f[_0x1730e9(_0x55b97f._0x124a58,0x5dd)]=_0x4219f5(_0x55b97f._0x52a46e,0x520)+_0x4219f5(_0x55b97f._0x124328,0x3df)+'ed';const _0xef64ac=_0x4fb33f;_0x16ef0c&&console['log'](_0x16ef0c),console[_0x1730e9(0x407,_0x55b97f._0x1c1faf)]('Service:'+'\x20'+(_0x27d326[_0x4219f5(0x4e0,0x520)+'d']?_0x27d326[_0x4219f5(0x43f,0x62a)]?_0x4219f5(_0x55b97f._0x147663,_0x55b97f._0x2dddd1)+'d,\x20runni'+'ng':_0xef64ac['utaQu']:_0x4219f5(_0x55b97f._0x281fd8,_0x55b97f._0x10a204)+_0x1730e9(_0x55b97f._0x34a1e5,_0x55b97f._0x31452d))),console[_0x1730e9(0x407,_0x55b97f._0x4ba195)](_0x1730e9(_0x55b97f._0x6080cc,_0x55b97f._0x5c4adb)+_0x4219f5(0x408,_0x55b97f._0x317f05)+(_0x27d326['serviceP'+_0x1730e9(0x1e4,_0x55b97f._0x4219ef)]||'-'));}function printDoctorReport(_0x277add){const _0x206917={_0x2761c5:0x2f3,_0x94744c:0x3bb,_0x4e20b0:0x256,_0x4cee60:0x394,_0x4eed4d:0x1bd,_0x47b88f:0x1b2,_0x35f8bd:0x304,_0x3abd19:0x2ce,_0x5008b9:0x177,_0x2dc70c:0x3f4,_0x23c982:0x2db,_0x4ad2ad:0x6c7,_0xa2a99a:0x533,_0x394a69:0x5a,_0x78d351:0x415,_0x2d15f6:0x315,_0x375a4a:0x173,_0x259b55:0x55f,_0x453fea:0x485,_0x14dc1b:0x210,_0x2f0d10:0x431,_0x3a33c8:0xb0,_0x5847aa:0x217,_0x187e6e:0x21e,_0x299e1f:0x312,_0x4c70aa:0x5d,_0x50adf1:0x256,_0x485d23:0xd9,_0x153255:0x571,_0x481a02:0x478,_0x2f3fd9:0x2a7,_0x5a4aa3:0x490,_0x2437c6:0x4d1,_0x330108:0x141,_0x215c27:0x304,_0x2c925c:0x9f,_0xd3e4b:0x136,_0x252fc7:0x2b2,_0x37aeaa:0x1fb,_0x1e926b:0x4b9,_0x40385a:0x163,_0x143ee1:0x15,_0x51e736:0x2a0,_0x4974a2:0x2d7,_0x1e0b96:0x304,_0x1b46f2:0x107,_0x2c2df0:0x22,_0x3f17b8:0x5f5,_0x16759c:0xf0,_0x4d7607:0x3fa,_0x1baa3f:0x4dd,_0x5b8803:0x44c,_0xdd6bb7:0x533,_0x358fcf:0x1f3,_0x52fee:0x447,_0x31a929:0x5b2,_0x51db8b:0x1b6,_0x124a87:0x30f,_0x3d700e:0x20a,_0x421128:0x9,_0xfe7179:0x143,_0x4ac1e9:0x3b9,_0x10a3bf:0x18a,_0x4894a6:0x485,_0x2acd4c:0x27c,_0x24effa:0xe9,_0xae20d0:0x1b4,_0x538ee9:0x1da,_0x3ed701:0x200,_0x26a846:0x71c,_0x1a8bff:0x230,_0x5282d4:0x2e2,_0x5d63ef:0x2df,_0x25e05b:0x256,_0x5c4874:0x52,_0x292f1b:0x4d,_0x529b99:0x3d2,_0x321d41:0x2b9,_0x5d6676:0x227,_0x4d1b3c:0x3a6},_0x35f393={_0x4b611f:0xd8},_0x2882e7={};_0x2882e7[_0x21cfaa(_0x206917._0x2761c5,0x232)]='found';const _0x572bda=_0x2882e7;console[_0x363861(_0x206917._0x94744c,_0x206917._0x4e20b0)](_0x363861(_0x206917._0x4cee60,_0x206917._0x4eed4d)+'\x20\x20\x20\x20\x20\x20\x20\x20'+_0x363861(_0x206917._0x47b88f,_0x206917._0x35f8bd)+(_0x277add[_0x21cfaa(0x3da,0x5a7)]?_0x363861(_0x206917._0x3abd19,_0x206917._0x5008b9):'no')),console['log']('Gateway\x20'+_0x363861(_0x206917._0x2dc70c,_0x206917._0x23c982)+_0x21cfaa(_0x206917._0x4ad2ad,_0x206917._0xa2a99a)+(_0x277add[_0x363861(0x15c,_0x206917._0x394a69)+'d']??'-')),console[_0x21cfaa(_0x206917._0x78d351,0x485)](_0x363861(0x3e8,_0x206917._0x2d15f6)+_0x363861(-_0x206917._0x375a4a,0x78)+'\x20\x20\x20'+(_0x277add['serverUr'+'l']??'-')),console[_0x21cfaa(_0x206917._0x259b55,_0x206917._0x453fea)](_0x21cfaa(0x578,0x4fe)+_0x21cfaa(_0x206917._0x14dc1b,0x3f7)+'\x20\x20\x20'+(_0x277add[_0x21cfaa(0x42f,_0x206917._0x2f0d10)]??'-')),console[_0x363861(_0x206917._0x3a33c8,0x256)](_0x363861(_0x206917._0x5847aa,_0x206917._0x187e6e)+_0x363861(_0x206917._0x299e1f,0x2d0)+_0x363861(0x179,0x304)+(_0x277add['instance'+'Id']??'-'));function _0x363861(_0x4c959f,_0x3d129c){return _0x75393(_0x4c959f,_0x3d129c- -0x157);}console[_0x363861(_0x206917._0x4c70aa,_0x206917._0x50adf1)](_0x363861(_0x206917._0x485d23,0x27e)+_0x21cfaa(_0x206917._0x153255,0x5d8)+_0x21cfaa(_0x206917._0x481a02,0x533)+(_0x277add['serviceI'+_0x21cfaa(_0x206917._0x2f3fd9,_0x206917._0x5a4aa3)]?_0x21cfaa(_0x206917._0x2437c6,0x3ce)+'d':'not\x20inst'+'alled')+'\x20('+_0x277add['serviceM'+_0x21cfaa(0x5c2,0x600)]+')');function _0x21cfaa(_0x2e7449,_0x595de0){return _0x75393(_0x2e7449,_0x595de0-_0x35f393._0x4b611f);}console['log'](_0x21cfaa(0x4be,0x42a)+_0x363861(0x1d8,0x259)+_0x363861(_0x206917._0x330108,_0x206917._0x215c27)+(_0x277add[_0x363861(_0x206917._0x2c925c,_0x206917._0xd3e4b)+'unning']?_0x21cfaa(0x2d4,0x3a6):'no')),console['log'](_0x363861(_0x206917._0x252fc7,_0x206917._0x37aeaa)+'path:\x20\x20\x20'+_0x21cfaa(_0x206917._0x1e926b,0x533)+(_0x277add[_0x21cfaa(0x5ef,0x40b)+'ath']||'-')),console['log'](_0x363861(_0x206917._0x40385a,_0x206917._0x143ee1)+_0x363861(0x22b,0x12f)+'\x20\x20\x20'+_0x277add[_0x21cfaa(0x400,_0x206917._0x51e736)]),console[_0x363861(0x37d,0x256)](_0x363861(0x5d,0x148)+_0x21cfaa(_0x206917._0x4974a2,0x390)+_0x363861(0x38b,_0x206917._0x1e0b96)+_0x277add[_0x363861(0x201,_0x206917._0x1b46f2)+_0x363861(_0x206917._0x2c2df0,0xdc)]),console[_0x21cfaa(_0x206917._0x3f17b8,_0x206917._0x453fea)](_0x363861(0x218,_0x206917._0x16759c)+_0x21cfaa(_0x206917._0x4d7607,_0x206917._0x1baa3f)+_0x21cfaa(_0x206917._0x5b8803,_0x206917._0xdd6bb7)+_0x277add[_0x363861(_0x206917._0x358fcf,0xe9)+_0x363861(0x100,0x24e)+'r']),console[_0x363861(0x371,0x256)](_0x21cfaa(0x1a5,0x31f)+_0x21cfaa(_0x206917._0x52fee,_0x206917._0x31a929)+'\x20\x20\x20'+_0x277add['openclaw'+_0x363861(0x4ae,0x2e4)]),console['log'](_0x363861(_0x206917._0x51db8b,_0x206917._0x16759c)+_0x363861(0x2a0,_0x206917._0x124a87)+'\x20\x20\x20'+(_0x277add[_0x21cfaa(0x46f,0x318)+_0x363861(0x2a,_0x206917._0x3d700e)+_0x363861(-_0x206917._0x421128,_0x206917._0xfe7179)]?_0x21cfaa(0x2cb,_0x206917._0x4ac1e9):_0x21cfaa(_0x206917._0x10a3bf,0x2dc))),console[_0x21cfaa(0x648,_0x206917._0x4894a6)]('OpenClaw'+'\x20token:\x20'+_0x363861(0x4da,0x304)+(_0x277add[_0x363861(_0x206917._0x2acd4c,_0x206917._0x24effa)+_0x363861(_0x206917._0xae20d0,0x394)+'nd']?_0x572bda[_0x363861(-_0x206917._0x538ee9,0x3)]:'missing')),console[_0x21cfaa(0x2e0,0x485)](_0x21cfaa(0x1e6,0x27c)+_0x363861(0x385,_0x206917._0x3ed701)+_0x21cfaa(_0x206917._0x26a846,0x533)+_0x277add[_0x21cfaa(_0x206917._0x1a8bff,_0x206917._0x5282d4)+_0x363861(0x1eb,_0x206917._0x5d63ef)]),console[_0x363861(0x32c,_0x206917._0x25e05b)](_0x363861(_0x206917._0x5c4874,_0x206917._0x292f1b)+_0x21cfaa(0x61b,0x574)+'e:\x20'+(_0x277add[_0x21cfaa(0x48d,0x2e2)+_0x21cfaa(0x3e2,0x506)+_0x21cfaa(_0x206917._0x529b99,_0x206917._0x321d41)]?_0x21cfaa(_0x206917._0x5d6676,_0x206917._0x4d1b3c):'no'));}function requirePairingConfig(){const _0x480522={_0x5bbe98:0x18d,_0x407993:0x4a5,_0x53e060:0x35b,_0x37fc1f:0x3a9,_0x4184c0:0xb9},_0x1b9eb1={'haUEN':function(_0x140953){return _0x140953();}},_0x1a6bdc=_0x1b9eb1['haUEN'](readPairingConfig);function _0x22eacb(_0x3d8d1b,_0x57d65a){return _0x75393(_0x57d65a,_0x3d8d1b-0x202);}!_0x1a6bdc&&(console[_0x118cc1(-0x163,-_0x480522._0x5bbe98)](_0x22eacb(_0x480522._0x407993,0x599)+_0x22eacb(_0x480522._0x53e060,_0x480522._0x37fc1f)+_0x118cc1(-_0x480522._0x4184c0,-0x15e)+'\x20pair\x22\x20f'+'irst.\x20Co'+'nfig\x20pat'+_0x22eacb(0x36c,0x211)+getPairingConfigPath()),process['exit'](0x1));function _0x118cc1(_0xde2c2,_0x334f45){return _0x75393(_0x334f45,_0xde2c2- -0x293);}return _0x1a6bdc;}function readFlag(_0x471da0,_0x9dcac4){const _0x2c70cf={_0x4cfde7:0x3aa,_0x9b0e0f:0x188,_0x374fe9:0x2c4,_0x5f25f7:0x276,_0xe66fea:0x200},_0x9e89d8={_0x3edf57:0xcb},_0x2919f7={};_0x2919f7['NiJkw']=function(_0x3fc311,_0x31c623){return _0x3fc311<_0x31c623;};function _0x64e029(_0x98eb56,_0x3dd00c){return _0x75393(_0x98eb56,_0x3dd00c- -0x36f);}_0x2919f7[_0x64e029(-0x36c,-0x176)]=function(_0x4f07bd,_0x62ff81){return _0x4f07bd+_0x62ff81;};const _0xabf64b=_0x2919f7;function _0x265791(_0x197d6c,_0x5f12){return _0x75393(_0x5f12,_0x197d6c-_0x9e89d8._0x3edf57);}const _0x19968a=_0x471da0[_0x265791(_0x2c70cf._0x4cfde7,0x582)](_0x9dcac4);if(_0xabf64b[_0x64e029(-_0x2c70cf._0x9b0e0f,0x70)](_0x19968a,0x0))return null;const _0x4c8d00=_0x471da0[_0xabf64b[_0x265791(_0x2c70cf._0x374fe9,0x4b7)](_0x19968a,0x1)];return _0x4c8d00?.[_0x64e029(-_0x2c70cf._0x5f25f7,-0x23a)]()?_0x4c8d00[_0x265791(_0x2c70cf._0xe66fea,0x45)]():null;}function hasFlag(_0x3cdef0,_0x24a1ec){const _0x5d71d2={_0x11aa25:0x315,_0x4c9983:0x48c},_0x4351c3={_0x41483d:0x20d};function _0x54ead3(_0x23e473,_0x55ef25){return _0x75393(_0x55ef25,_0x23e473- -_0x4351c3._0x41483d);}return _0x3cdef0[_0x54ead3(_0x5d71d2._0x11aa25,_0x5d71d2._0x4c9983)](_0x24a1ec);}function printHelp(){const _0x1b03f2={_0x52b9e6:0x130,_0x21c2aa:0xf9,_0x11124f:0x2b9,_0x5407a0:0x325,_0x307d3d:0x15e,_0x194fe7:0x273,_0x8bb935:0x1de,_0x5cac98:0x18,_0x4b85a8:0x53,_0x5e2cc8:0x43f,_0x5bc7c8:0x208,_0x45353e:0x136,_0x53d56a:0x30,_0x5d2e5a:0x2a1,_0x2f1e90:0xd4,_0x174529:0x13b,_0x2f31ff:0x31d,_0x1084a4:0x284,_0x521b33:0x250,_0x5b7d89:0x45,_0x455eb9:0x1ec,_0x134eff:0xf9,_0x393a90:0x91,_0xa221e3:0x73,_0xbbeaa6:0x3b8,_0x18d9ce:0x20f,_0x1b9e10:0x427,_0x37f331:0xc3,_0x6f86f2:0x1e3},_0x5ccbb5={};_0x5ccbb5[_0x5a8cc4(0x22,_0x1b03f2._0x52b9e6)]=_0x5a8cc4(0x4f0,0x319)+_0x3d5324(0x1aa,0x6c),_0x5ccbb5[_0x3d5324(-0xa,0x1a5)]=_0x3d5324(_0x1b03f2._0x21c2aa,-0x114)+_0x3d5324(0x1a2,0x291);function _0x5a8cc4(_0x21dcf4,_0x21fa77){return _0x75393(_0x21dcf4,_0x21fa77- -0x59);}_0x5ccbb5[_0x3d5324(0xc3,0xe8)]='clawket\x20'+_0x3d5324(0x205,0x264)+_0x5a8cc4(0x11b,_0x1b03f2._0x11124f)+_0x5a8cc4(0x10e,0x1f3)+_0x3d5324(0x2c2,_0x1b03f2._0x5407a0)+_0x5a8cc4(0x17d,_0x1b03f2._0x307d3d)+'>]';const _0x11ea26=_0x5ccbb5;function _0x3d5324(_0x574bcd,_0x1e7247){return _0x75393(_0x1e7247,_0x574bcd- -0x279);}console['log'](['clawket\x20'+_0x3d5324(_0x1b03f2._0x194fe7,_0x1b03f2._0x8bb935)+_0x3d5324(-_0x1b03f2._0x5cac98,_0x1b03f2._0x4b85a8)+_0x5a8cc4(_0x1b03f2._0x5e2cc8,0x322)+_0x3d5324(0x11e,_0x1b03f2._0x5bc7c8)+_0x3d5324(0x45,0x1ea)+_0x5a8cc4(0x1f4,0x343)+_0x5a8cc4(0x391,0x183)+_0x3d5324(-_0x1b03f2._0x45353e,-_0x1b03f2._0x53d56a)+'[--json]'+_0x3d5324(0x20c,_0x1b03f2._0x5d2e5a)+'e]','clawket\x20'+'refresh-'+_0x3d5324(-0x2b,_0x1b03f2._0x2f1e90)+'qr-file\x20'+'<path>]\x20'+_0x5a8cc4(0x39e,0x1a8),'clawket\x20'+_0x5a8cc4(_0x1b03f2._0x174529,_0x1b03f2._0x2f31ff),_0x11ea26[_0x5a8cc4(0x20e,0x130)],_0x11ea26[_0x5a8cc4(0x31d,0x216)],'clawket\x20'+_0x3d5324(_0x1b03f2._0x1084a4,_0x1b03f2._0x521b33)+'l','clawket\x20'+'reset',_0x3d5324(0xf9,-_0x1b03f2._0x5b7d89)+_0x5a8cc4(_0x1b03f2._0x455eb9,0x1e4),_0x3d5324(_0x1b03f2._0x134eff,-_0x1b03f2._0x393a90)+_0x3d5324(0x1bf,-0x4d)+_0x3d5324(_0x1b03f2._0xa221e3,-0x182)+_0x3d5324(0x1da,_0x1b03f2._0xbbeaa6)+_0x5a8cc4(0x22f,0x282)+_0x5a8cc4(_0x1b03f2._0x18d9ce,0x320)+_0x5a8cc4(0x2ad,_0x1b03f2._0x1b9e10)+'-json]','clawket\x20'+_0x5a8cc4(0x2eb,0x1fa)+_0x5a8cc4(0x46b,0x276),_0x11ea26[_0x3d5324(_0x1b03f2._0x37f331,0x4c)]][_0x3d5324(_0x1b03f2._0x6f86f2,0x379)]('\x0a'));}function formatLocalTime(_0x16a196){const _0x41dc76={_0x4ee442:0x61e,_0x2e9a7b:0x783,_0xf7f43c:0x36d},_0x5c39c7={_0xa9022:0x19d};function _0x4dce72(_0x27d4e4,_0x2fb8a9){return _0x143ed5(_0x2fb8a9-0x5f8,_0x27d4e4);}const _0x27c26a=new Date(_0x16a196);if(Number['isNaN'](_0x27c26a[_0x4dce72(_0x41dc76._0x4ee442,_0x41dc76._0x2e9a7b)]()))return _0x16a196;function _0x4cd50d(_0x508f85,_0x392340){return _0x143ed5(_0x392340-_0x5c39c7._0xa9022,_0x508f85);}return _0x27c26a[_0x4cd50d(0x491,_0x41dc76._0xf7f43c)+'String']();}function formatError(_0x5a7c0d){const _0x2bdf4e={_0x35d79f:0x250};function _0x241c66(_0x130b56,_0x5b6973){return _0x143ed5(_0x130b56-_0x2bdf4e._0x35d79f,_0x5b6973);}return _0x5a7c0d instanceof Error?_0x5a7c0d[_0x241c66(0x3a4,0x31a)]:String(_0x5a7c0d);}function printJson(_0x247193){const _0x492e5a={_0x336baf:0x54a,_0x5d8469:0x6ea};function _0x4b47cc(_0x2ba7dc,_0x197039){return _0x75393(_0x2ba7dc,_0x197039-0x33d);}console[_0x4b47cc(_0x492e5a._0x336baf,_0x492e5a._0x5d8469)](JSON['stringif'+'y'](_0x247193,null,0x2));}main()['catch'](_0x2c1298=>{const _0x1eb876={_0x3ea8f7:0x156,_0x5d22d1:0x23f,_0x4c1515:0x181,_0x8f3fb7:0x29b,_0x539b78:0x368},_0x2c102b={_0x338b13:0x304};function _0x2b450b(_0x28fe36,_0x5d0402){return _0x143ed5(_0x5d0402-0x29,_0x28fe36);}function _0x5bb522(_0x3e3874,_0x42ce1a){return _0x143ed5(_0x42ce1a-_0x2c102b._0x338b13,_0x3e3874);}const _0x17d6ec={'BCqPk':function(_0x1c23a5,_0xe2a54b){return _0x1c23a5(_0xe2a54b);}};console[_0x5bb522(_0x1eb876._0x3ea8f7,_0x1eb876._0x5d22d1)](_0x17d6ec[_0x5bb522(_0x1eb876._0x4c1515,_0x1eb876._0x8f3fb7)](formatError,_0x2c1298)),process[_0x2b450b(_0x1eb876._0x539b78,0x1e9)](0x1);});
2
+ (function(_0x43b581,_0x29e054){const _0x5df907={_0x34dae4:0x547,_0x2f7b21:0x33f,_0x3b2ef5:0x1c6,_0x5ecf56:0x33,_0x58363d:0x293,_0x34b8ee:0x10d,_0x7e425c:0x27d,_0x543de6:0x94,_0x2160cd:0x21,_0x5c16d8:0x314,_0x27c970:0x13,_0x597e04:0x215,_0x4217cc:0x27a,_0x464dba:0x52,_0x3b4e4d:0x229},_0x452189={_0x55c09c:0x13e},_0x260985=_0x43b581();function _0x13f85f(_0x123af3,_0x4c01f6){return _0x2e58(_0x4c01f6- -0xff,_0x123af3);}function _0x3d264e(_0x4bc343,_0x4fa588){return _0x2e58(_0x4fa588- -_0x452189._0x55c09c,_0x4bc343);}while(!![]){try{const _0x430d83=parseInt(_0x3d264e(_0x5df907._0x34dae4,_0x5df907._0x2f7b21))/0x1*(parseInt(_0x13f85f(_0x5df907._0x3b2ef5,-_0x5df907._0x5ecf56))/0x2)+-parseInt(_0x13f85f(0x1c4,_0x5df907._0x58363d))/0x3+-parseInt(_0x13f85f(_0x5df907._0x34b8ee,0x195))/0x4*(-parseInt(_0x3d264e(-0x62,0x119))/0x5)+parseInt(_0x3d264e(-_0x5df907._0x7e425c,-_0x5df907._0x543de6))/0x6*(-parseInt(_0x13f85f(0x1fc,_0x5df907._0x2160cd))/0x7)+parseInt(_0x3d264e(_0x5df907._0x5c16d8,0x1e7))/0x8+parseInt(_0x13f85f(-0x129,_0x5df907._0x27c970))/0x9*(parseInt(_0x3d264e(_0x5df907._0x597e04,_0x5df907._0x4217cc))/0xa)+parseInt(_0x13f85f(_0x5df907._0x464dba,_0x5df907._0x3b4e4d))/0xb;if(_0x430d83===_0x29e054)break;else _0x260985['push'](_0x260985['shift']());}catch(_0xb5f0d8){_0x260985['push'](_0x260985['shift']());}}}(_0x39fb,0xc3f52));const _0x2f63a8=(function(){const _0x4cc0c1={_0x586ba5:0x27a,_0x4481a9:0x1fc};let _0x2e068d=!![];return function(_0x1b12b9,_0x26b762){const _0x5b62cc=_0x2e068d?function(){const _0x1f8a61={_0x23e46c:0x39b};function _0x117838(_0x5188ea,_0x46e40f){return _0x2e58(_0x5188ea- -_0x1f8a61._0x23e46c,_0x46e40f);}if(_0x26b762){const _0x45d011=_0x26b762[_0x117838(-_0x4cc0c1._0x586ba5,-_0x4cc0c1._0x4481a9)](_0x1b12b9,arguments);return _0x26b762=null,_0x45d011;}}:function(){};return _0x2e068d=![],_0x5b62cc;};}()),_0x5b6c10=_0x2f63a8(this,function(){const _0x48ded4={_0x157456:0x41c,_0x16b277:0x2eb,_0x3e3129:0x5e6,_0x52e82a:0x563,_0x76fe95:0x3d8,_0x14860c:0x596},_0x269a67={_0x450b2a:0x253},_0x3d6f2e={};function _0x55cf07(_0x4c6c27,_0x42f05c){return _0x2e58(_0x4c6c27-_0x269a67._0x450b2a,_0x42f05c);}function _0x211ac3(_0x494fc5,_0xb4316b){return _0x2e58(_0xb4316b-0x165,_0x494fc5);}_0x3d6f2e[_0x55cf07(_0x48ded4._0x157456,0x532)]='(((.+)+)'+_0x211ac3(_0x48ded4._0x16b277,0x4c7);const _0x55272c=_0x3d6f2e;return _0x5b6c10[_0x55cf07(0x563,0x473)]()[_0x55cf07(0x3bc,0x4e5)](_0x55272c[_0x55cf07(0x41c,_0x48ded4._0x3e3129)])[_0x55cf07(_0x48ded4._0x52e82a,_0x48ded4._0x76fe95)]()[_0x55cf07(0x459,0x505)+_0x211ac3(0x282,0x34d)](_0x5b6c10)[_0x55cf07(0x3bc,_0x48ded4._0x14860c)](_0x55272c['eKXmJ']);});_0x5b6c10();import _0x52e07e from'qrcode-terminal';import{readFileSync as _0x365046}from'fs';import{Socket}from'net';import{existsSync,mkdirSync,readFileSync,rmSync,writeFileSync}from'fs';import{randomUUID}from'crypto';import{homedir,hostname,userInfo}from'os';import{join}from'path';var CONFIG_DIR=join(homedir(),_0x11b7ab(0x4c1,0x2c6)),CONFIG_PATH=join(CONFIG_DIR,'bridge-c'+_0x11b7ab(-0x20f,-0xb2)),OPENCLAW_CONFIG_PATH=join(homedir(),_0x6eb3(0x1a8,0x271)+'w','openclaw'+'.json');function getPairingConfigPath(){return CONFIG_PATH;}function readPairingConfig(){const _0x313ce0={_0x1d4b82:0x4,_0x554f8c:0x67,_0x4bbd1e:0x24e,_0x2d8907:0x146,_0x18d1c1:0x1ef,_0x1962e8:0x1ff,_0x1a1de4:0x274,_0x219999:0x3b5,_0x155848:0x1c3,_0x42c29b:0x4c8,_0x56b55c:0x2fd,_0x16c1de:0x4a,_0x4f2620:0x158};function _0x59905f(_0x20c1f1,_0x3952f0){return _0x11b7ab(_0x3952f0,_0x20c1f1-0x2ee);}const _0x3f6e3d={'PNHCF':function(_0x2aaa79,_0x592090){return _0x2aaa79(_0x592090);},'ksbkr':function(_0x38de26,_0x23ca2c){return _0x38de26!==_0x23ca2c;},'bmPuY':function(_0x4ea86e,_0x9c220a){return _0x4ea86e(_0x9c220a);}};function _0x526f40(_0x272069,_0x286e5d){return _0x11b7ab(_0x286e5d,_0x272069-0x61);}if(!_0x3f6e3d['PNHCF'](existsSync,CONFIG_PATH))return null;try{const _0x2f4c17=JSON['parse'](readFileSync(CONFIG_PATH,_0x526f40(0x179,-_0x313ce0._0x1d4b82)));if(!_0x2f4c17['serverUr'+'l']||!_0x2f4c17[_0x59905f(0x4db,0x488)+'d']||!_0x2f4c17[_0x526f40(-_0x313ce0._0x554f8c,-0xc4)+_0x59905f(0x5cb,0x5b2)]||!_0x2f4c17['relayUrl'])return null;const _0x4e13e8={'serverUrl':_0x2f4c17['serverUr'+'l'],'gatewayId':_0x2f4c17[_0x526f40(_0x313ce0._0x4bbd1e,0x107)+'d'],'relaySecret':_0x2f4c17[_0x526f40(-0x67,_0x313ce0._0x2d8907)+_0x526f40(0x33e,_0x313ce0._0x18d1c1)],'relayUrl':_0x2f4c17[_0x59905f(_0x313ce0._0x1962e8,0x3fa)],'instanceId':_0x2f4c17['instance'+'Id']?.[_0x526f40(0x160,-0x51)]()||createInstanceId(),'displayName':_0x2f4c17['displayN'+'ame']??null,'createdAt':_0x2f4c17[_0x526f40(_0x313ce0._0x1a1de4,_0x313ce0._0x219999)+'t']??new Date()[_0x526f40(_0x313ce0._0x155848,0xbe)+'ing'](),'updatedAt':_0x2f4c17[_0x526f40(0x2cf,_0x313ce0._0x42c29b)+'t']??new Date()['toISOStr'+'ing']()};return _0x3f6e3d[_0x526f40(_0x313ce0._0x56b55c,0x36f)](_0x2f4c17[_0x526f40(0x8b,_0x313ce0._0x16c1de)+'Id'],_0x4e13e8[_0x526f40(0x8b,-_0x313ce0._0x4f2620)+'Id'])&&_0x3f6e3d[_0x59905f(0x339,0x348)](writePairingConfig,_0x4e13e8),_0x4e13e8;}catch{return null;}}function writePairingConfig(_0x337a9d){const _0x3c0612={_0x33f6fc:0xd6,_0x5442dd:0xe4};function _0x367be6(_0x5650c1,_0x2c06ef){return _0x11b7ab(_0x2c06ef,_0x5650c1- -0x170);}function _0x5689e3(_0xb311b1,_0x40d39b){return _0x11b7ab(_0x40d39b,_0xb311b1- -0x202);}const _0x37b251={'zkrdp':function(_0x43895a,_0x1ec109,_0x280330,_0x1f6680){return _0x43895a(_0x1ec109,_0x280330,_0x1f6680);},'NIlGi':_0x367be6(-0x58,_0x3c0612._0x33f6fc)},_0x13064d={};_0x13064d['recursiv'+'e']=!![],mkdirSync(CONFIG_DIR,_0x13064d),_0x37b251[_0x5689e3(-0x216,-0x18e)](writeFileSync,CONFIG_PATH,JSON['stringif'+'y'](_0x337a9d,null,0x2)+'\x0a',_0x37b251[_0x367be6(-_0x3c0612._0x5442dd,-0x116)]);}function deletePairingConfig(){if(!existsSync(CONFIG_PATH))return;const _0x4f9c43={};_0x4f9c43['force']=!![],rmSync(CONFIG_PATH,_0x4f9c43);}function getDefaultBridgeDisplayName(){const _0x4597cd={_0x2fcb90:0x15d,_0x373af0:0x447,_0x5d8b2b:0x49d,_0x2cb1da:0x199,_0x3c8b42:0x69,_0x3f5ef7:0xc6,_0x54eda3:0x3cd,_0xfa6eb5:0x56f},_0x549fa6={_0x1f5058:0x54},_0x481a06={_0x168573:0x35e},_0x1164b9={'pfHGK':function(_0x10d5a5){return _0x10d5a5();},'eKRkn':_0x19830f(-_0x4597cd._0x2fcb90,-0x242)+'Bridge'},_0x2026c7=_0x1164b9[_0x19830f(0x1a3,0xd6)](readOpenClawDefaultAgentName);function _0x20b005(_0x53e83b,_0x1e4432){return _0x6eb3(_0x53e83b,_0x1e4432-_0x481a06._0x168573);}if(_0x2026c7)return _0x2026c7;try{const _0x339c59=userInfo()[_0x20b005(_0x4597cd._0x373af0,_0x4597cd._0x5d8b2b)][_0x19830f(0x69,-_0x4597cd._0x2cb1da)]();if(_0x339c59)return _0x339c59;}catch{}const _0x2ed3bb=(process.env.LOGNAME??process.env.USER??process.env.USERNAME??'')[_0x19830f(_0x4597cd._0x3c8b42,_0x4597cd._0x3f5ef7)]();if(_0x2ed3bb)return _0x2ed3bb;function _0x19830f(_0x20c3ab,_0x58479f){return _0x6eb3(_0x58479f,_0x20c3ab- -_0x549fa6._0x1f5058);}return hostname()['trim']()||_0x1164b9[_0x20b005(_0x4597cd._0x54eda3,_0x4597cd._0xfa6eb5)];}function pickOpenClawDefaultAgentName(_0x492853){const _0x25ff05={_0x1b9dfa:0x49,_0x1f6f60:0x6d,_0x11881a:0x228},_0x4f6664={_0x4ce526:0x13d},_0x1b6e62={_0x4da85f:0x272};function _0x192d25(_0x1ae225,_0x53bc56){return _0x6eb3(_0x1ae225,_0x53bc56-_0x1b6e62._0x4da85f);}if(!_0x492853||typeof _0x492853!==_0x192d25(_0x25ff05._0x1b9dfa,0x16f))return null;const _0x146e31=_0x492853['agents'];function _0x24c5c6(_0x2500fd,_0x36b729){return _0x6eb3(_0x36b729,_0x2500fd- -_0x4f6664._0x4ce526);}const _0x2d8e3b=Array[_0x192d25(0x337,0x2bf)](_0x146e31?.[_0x192d25(0x2b9,0x21d)])?_0x146e31['list']:[],_0x1aab03=_0x2d8e3b[_0x24c5c6(-_0x25ff05._0x1f6f60,-_0x25ff05._0x11881a)](_0x327cc1=>isDefaultAgent(_0x327cc1))??_0x2d8e3b[_0x192d25(0x415,0x342)](_0x527a21=>hasAgentId(_0x527a21,_0x192d25(0x10a,0x1df)))??_0x2d8e3b[0x0];return readAgentName(_0x1aab03);}function createInstanceId(){const _0x38c8d5={_0x46e6bd:0x1f0,_0x4cd723:0x1c8,_0x16a9cd:0x1fb,_0x3a3c54:0x176,_0x3569df:0x38e,_0x161f74:0x441};function _0x4d79bd(_0x254727,_0x3d835a){return _0x6eb3(_0x3d835a,_0x254727-0x261);}const _0x2a8487={'TxkMd':_0x4d79bd(0x300,0x217),'EJQCj':function(_0x3e04c7){return _0x3e04c7();}};function _0x15c007(_0x3b6c08,_0x4d1802){return _0x6eb3(_0x4d1802,_0x3b6c08- -0x17a);}const _0x3b4678=sanitizeId(hostname()||_0x2a8487[_0x15c007(-_0x38c8d5._0x46e6bd,-0x65)]);return _0x15c007(-_0x38c8d5._0x4cd723,-_0x38c8d5._0x16a9cd)+_0x3b4678+'-'+_0x2a8487[_0x4d79bd(_0x38c8d5._0x3a3c54,0x1c1)](randomUUID)[_0x4d79bd(_0x38c8d5._0x3569df,_0x38c8d5._0x161f74)](0x0,0xa);}function sanitizeId(_0x2f754e){const _0xc2dde6={_0x505793:0x93,_0x5b623f:0x200,_0x2dbe75:0x20d,_0x54bccc:0x61},_0x104480={_0x373a8f:0x100},_0x242c4f={_0x186d8c:0xa9};function _0x2392d9(_0x5b94da,_0x42b581){return _0x6eb3(_0x5b94da,_0x42b581-_0x242c4f._0x186d8c);}function _0x1224bc(_0x5351c4,_0x2a9721){return _0x6eb3(_0x5351c4,_0x2a9721- -_0x104480._0x373a8f);}return _0x2f754e['trim']()[_0x1224bc(-0x145,-_0xc2dde6._0x505793)+'ase']()[_0x1224bc(-_0xc2dde6._0x5b623f,-_0xc2dde6._0x2dbe75)](/[^a-z0-9._-]+/g,'-')['replace'](/^-+|-+$/g,'')||_0x1224bc(-0x200,-_0xc2dde6._0x54bccc);}function readOpenClawDefaultAgentName(){const _0x4b85f1={_0x1f2fee:0x395},_0x15be5c={_0x1c50df:0x27d};function _0x1f3862(_0x503c11,_0x2e4883){return _0x6eb3(_0x2e4883,_0x503c11-_0x15be5c._0x1c50df);}const _0x1f8b5c={'DsYVz':function(_0x2ec6a8,_0x33cec9,_0x179856){return _0x2ec6a8(_0x33cec9,_0x179856);}};if(!existsSync(OPENCLAW_CONFIG_PATH))return null;function _0x5afd9e(_0x3599c6,_0x2f57b0){return _0x6eb3(_0x3599c6,_0x2f57b0-0x3cb);}try{const _0x5c6b84=JSON['parse'](_0x1f8b5c[_0x1f3862(_0x4b85f1._0x1f2fee,0x1ff)](readFileSync,OPENCLAW_CONFIG_PATH,_0x5afd9e(0x521,0x4a1)));return pickOpenClawDefaultAgentName(_0x5c6b84);}catch{return null;}}function isDefaultAgent(_0x2d62af){const _0x4dfc23={_0x406c3f:0x1ad,_0x677730:0xef,_0x419c25:0x23};function _0x5729c7(_0x40f572,_0xf9e910){return _0x11b7ab(_0x40f572,_0xf9e910-0x535);}function _0x1f0bbd(_0x58c1d5,_0x493425){return _0x11b7ab(_0x58c1d5,_0x493425- -0xec);}const _0x4aef20={'GWQep':function(_0x9f0cdf,_0x41549b){return _0x9f0cdf(_0x41549b);}};return _0x4aef20['GWQep'](Boolean,_0x2d62af&&typeof _0x2d62af===_0x1f0bbd(-0x1a,-_0x4dfc23._0x406c3f)&&_0x2d62af[_0x1f0bbd(_0x4dfc23._0x677730,_0x4dfc23._0x419c25)]===!![]);}function hasAgentId(_0x26ed6b,_0x2bfc56){const _0x7b4e84={_0x418336:0x362,_0x199ece:0x411,_0x21bf3e:0x71e,_0x40f009:0x737,_0x45961f:0x5d1},_0x541524={_0x55558a:0x514};function _0xdfda9d(_0x3288b1,_0x4f131c){return _0x6eb3(_0x3288b1,_0x4f131c- -0x12f);}const _0x1d049d={'ntILG':function(_0xe7fe01,_0x20e216){return _0xe7fe01(_0x20e216);},'exVop':'string'};function _0x5bf8d7(_0x5d643d,_0x262f55){return _0x6eb3(_0x5d643d,_0x262f55-_0x541524._0x55558a);}return _0x1d049d['ntILG'](Boolean,_0x26ed6b&&typeof _0x26ed6b===_0x5bf8d7(_0x7b4e84._0x418336,_0x7b4e84._0x199ece)&&typeof _0x26ed6b['id']===_0x1d049d[_0x5bf8d7(_0x7b4e84._0x21bf3e,_0x7b4e84._0x40f009)]&&_0x26ed6b['id'][_0x5bf8d7(0x526,_0x7b4e84._0x45961f)]()===_0x2bfc56);}function readAgentName(_0x595c41){const _0x3c4f41={_0x38dc69:0x1b4,_0x51930a:0x1c7,_0x4be06f:0x47,_0x5cb347:0x121},_0x35dc7c={_0x4691a3:0x9d};if(!_0x595c41||typeof _0x595c41!=='object')return null;function _0x23cabf(_0x395d1d,_0x1318de){return _0x6eb3(_0x1318de,_0x395d1d- -_0x35dc7c._0x4691a3);}function _0x22ff82(_0x1fd43c,_0x4b8ba0){return _0x6eb3(_0x4b8ba0,_0x1fd43c- -0x133);}const _0x2264de=_0x595c41,_0x22b012=typeof _0x2264de[_0x23cabf(-0x11e,-0x53)]?.['name']==='string'?_0x2264de[_0x22ff82(-_0x3c4f41._0x38dc69,-_0x3c4f41._0x51930a)][_0x23cabf(-_0x3c4f41._0x4be06f,-0xd1)]['trim']():'';if(_0x22b012)return _0x22b012;const _0x2a635c=typeof _0x2264de['name']===_0x22ff82(-0x1f0,-_0x3c4f41._0x5cb347)?_0x2264de[_0x23cabf(-0x47,-0x223)]['trim']():'';return _0x2a635c||null;}function buildPairingQrPayload(_0x8ce880){const _0x2213f8={_0x360c94:0x1ae,_0x25819f:0x16f,_0xe104fb:0x223,_0x3c7b36:0x196,_0x5d21cf:0x276,_0xf24c13:0x480,_0x543c73:0x39c,_0x40ba61:0x23d,_0x540fd3:0x638,_0x15296f:0x7d3,_0x31368d:0x28b,_0x24ddc9:0x1a2,_0x33e96e:0x522,_0x4e3a72:0x492},_0x5ec04a={_0x5c58ab:0x1ce},_0x2cec31={};_0x2cec31['v']=0x2,_0x2cec31['k']='cp',_0x2cec31['s']=_0x8ce880[_0x2b8044(_0x2213f8._0x360c94,_0x2213f8._0x25819f)],_0x2cec31['g']=_0x8ce880[_0x2b8044(0x379,_0x2213f8._0xe104fb)+'d'],_0x2cec31['a']=_0x8ce880[_0x2b8044(0x1a0,_0x2213f8._0x3c7b36)+'de'];function _0x2b8044(_0x516e92,_0x375f97){return _0x6eb3(_0x375f97,_0x516e92-_0x5ec04a._0x5c58ab);}const _0x458bee=_0x2cec31;_0x8ce880[_0x2b8044(_0x2213f8._0x5d21cf,0x322)+_0x2b8044(_0x2213f8._0xf24c13,_0x2213f8._0x543c73)]?.[_0x2d2134(0x522,0x3af)]()&&(_0x458bee['n']=_0x8ce880[_0x2d2134(0x50d,0x6c6)+_0x2b8044(0x480,0x4d0)][_0x2b8044(0x28b,0x252)]());function _0x2d2134(_0x22b47c,_0x3e316c){return _0x6eb3(_0x3e316c,_0x22b47c-0x465);}return _0x8ce880['token']?.[_0x2b8044(0x28b,_0x2213f8._0x40ba61)]()&&(_0x458bee['t']=_0x8ce880[_0x2d2134(_0x2213f8._0x540fd3,_0x2213f8._0x15296f)][_0x2b8044(_0x2213f8._0x31368d,_0x2213f8._0x24ddc9)]()),_0x8ce880['password']?.[_0x2d2134(_0x2213f8._0x33e96e,0x5a9)]()&&(_0x458bee['p']=_0x8ce880[_0x2d2134(0x552,0x5aa)][_0x2b8044(0x28b,0x26f)]()),JSON[_0x2d2134(0x629,_0x2213f8._0x4e3a72)+'y'](_0x458bee);}async function pairGateway(_0x41e6d1){const _0x13662c={_0x134baf:0x258,_0x3541b0:0x227,_0x5d51d3:0x31d,_0x513d50:0xd6,_0x16e8dd:0xf0,_0x58e60b:0x138,_0x24ba0d:0x127,_0x43d085:0x166,_0x54817b:0x36f,_0x21bfad:0x197,_0x462746:0x23,_0x4c05c2:0x28,_0x2f1c68:0x113,_0x37b66b:0xcf,_0x73ee60:0x173,_0x3a6086:0x225,_0xae7569:0x3b3,_0xfb9a5a:0x30d,_0x385cfe:0x10f,_0x233857:0x8c,_0x5bd605:0x12b,_0xe19934:0x192,_0x43dafb:0x263,_0x5b667a:0x11b,_0x559c4c:0x4,_0x5d1335:0xdd,_0x592ce8:0xd1,_0xe4e374:0x9f,_0xd65c06:0x111,_0x466679:0x6b,_0x124779:0xb,_0x42f2de:0x288,_0x58427d:0xb9,_0x1d0fc1:0x1d7,_0xebacb7:0xea,_0x4e89d5:0xc4,_0x49f028:0x15,_0x1d4aec:0x3f,_0x5432de:0x196,_0x471fcd:0xde,_0x5a9c2d:0xc6,_0xad779d:0x1e5,_0x90e6ee:0x1d2,_0xdc3f94:0xe7,_0x39a8ac:0x9b,_0x42d16a:0x17b,_0x40948c:0x11e,_0x12ec3b:0x29d,_0x893f01:0xfb,_0x1a6677:0x1e0,_0x5f06e4:0x19a,_0x570d86:0x166,_0x8b505:0x1af,_0x319160:0x1b},_0x4c3b29={'ciiXl':function(_0x5b0c5c,_0x5820ad){return _0x5b0c5c===_0x5820ad;},'rdYrC':'server-m'+'ismatch','jmgXi':function(_0x2fc385,_0x770cbd,_0x126895){return _0x2fc385(_0x770cbd,_0x126895);},'NMmaM':_0x490f2e(_0x13662c._0x134baf,0x450),'FlTbf':function(_0x23fd44,_0x3d2d47){return _0x23fd44(_0x3d2d47);}},_0x45bacf=normalizeHttpBase(_0x41e6d1[_0x297473(-0xcf,-_0x13662c._0x3541b0)+'l']),_0x245cee=readPairingConfig(),_0x587b9d=assessPairingCompatibility(_0x245cee,_0x45bacf);if(_0x4c3b29[_0x297473(-0x11a,-0x164)](_0x587b9d,_0x297473(-0x205,-_0x13662c._0x5d51d3)+_0x297473(0x1ef,_0x13662c._0x513d50))&&_0x245cee){const _0x3cc727={};return _0x3cc727[_0x490f2e(_0x13662c._0x16e8dd,0x8)+'l']=_0x245cee[_0x297473(-0xcf,-0x299)+'l'],_0x3cc727[_0x297473(0xde,-0x7c)+'d']=_0x245cee[_0x297473(0xde,-0x19)+'d'],_0x3cc727[_0x490f2e(-0x18,-0x10)+_0x490f2e(0x38d,0x4e0)]=_0x245cee[_0x490f2e(-0x18,0x1b0)+_0x490f2e(0x38d,0x185)],_0x3cc727[_0x297473(-0x25,_0x13662c._0x58e60b)+'ame']=_0x41e6d1[_0x490f2e(0x19a,0x101)+_0x297473(0x1e5,_0x13662c._0x24ba0d)],_0x3cc727[_0x490f2e(0x189,0x292)+'oken']=_0x41e6d1[_0x490f2e(0x189,0x143)+_0x490f2e(_0x13662c._0x43d085,_0x13662c._0x54817b)],_0x3cc727[_0x297473(-_0x13662c._0x21bfad,-_0x13662c._0x462746)+'assword']=_0x41e6d1[_0x490f2e(_0x13662c._0x4c05c2,_0x13662c._0x2f1c68)+_0x297473(-0x70,-_0x13662c._0x37b66b)],refreshAccessCode(_0x3cc727);}if(_0x587b9d===_0x4c3b29['rdYrC'])throw new Error(_0x490f2e(0x1a4,_0x13662c._0x73ee60)+'dge\x20is\x20a'+_0x490f2e(0x3f,0x21d)+'aired\x20wi'+_0x297473(-0x68,-_0x13662c._0x3a6086)+_0x245cee?.[_0x297473(-0xcf,-0x5c)+'l']+(_0x490f2e(_0x13662c._0xae7569,0x51d)+_0x490f2e(_0x13662c._0xfb9a5a,_0x13662c._0x385cfe)+'eset\x22\x20be'+'fore\x20pai'+'ring\x20wit'+_0x490f2e(_0x13662c._0x233857,0x281)+_0x297473(-_0x13662c._0x5bd605,-0x1f4)+_0x297473(_0x13662c._0xe19934,_0x13662c._0x43dafb)));const _0x5b60b4={};function _0x297473(_0x3fb0dd,_0x58323f){return _0x11b7ab(_0x58323f,_0x3fb0dd- -0x10f);}_0x5b60b4[_0x297473(0x68,_0x13662c._0x5b667a)+_0x297473(_0x13662c._0x559c4c,-0xfc)]='applicat'+'ion/json',_0x5b60b4['accept']='applicat'+_0x297473(-0x1fa,-_0x13662c._0x5d1335);const _0x2a8d88=await _0x4c3b29[_0x297473(-_0x13662c._0x592ce8,0x22)](fetch,_0x45bacf+('/v1/pair'+_0x490f2e(_0x13662c._0xe4e374,_0x13662c._0xd65c06)+'r'),{'method':_0x4c3b29[_0x490f2e(_0x13662c._0x466679,-0x124)],'headers':_0x5b60b4,'body':JSON['stringif'+'y']({'displayName':_0x41e6d1[_0x297473(-0x25,_0x13662c._0x124779)+_0x297473(0x1e5,_0x13662c._0x42f2de)]?.[_0x297473(-0x10,-0xb5)]()||null})});if(!_0x2a8d88['ok'])throw new Error(_0x297473(_0x13662c._0x58427d,0x7c)+'ister\x20fa'+'iled\x20('+_0x2a8d88[_0x297473(_0x13662c._0x1d0fc1,0x61)]+_0x490f2e(0x19f,_0x13662c._0xebacb7)+await _0x2a8d88[_0x297473(-0xff,-0x1c6)]());const _0xaa47a8=await _0x2a8d88[_0x297473(_0x13662c._0x4e89d5,-_0x13662c._0x49f028)](),_0xbce93c=new Date()['toISOStr'+'ing'](),_0x1684fa={'serverUrl':_0x45bacf,'gatewayId':_0xaa47a8['gatewayI'+'d'],'relaySecret':_0xaa47a8['relaySec'+_0x490f2e(0x38d,0x359)],'relayUrl':_0xaa47a8[_0x490f2e(-_0x13662c._0x1d4aec,-_0x13662c._0x5432de)],'instanceId':_0x245cee?.[_0x490f2e(0xda,0x207)+'Id']??_0x297473(-0x11b,-0x68)+_0xaa47a8[_0x297473(_0x13662c._0x471fcd,_0x13662c._0x5a9c2d)+'d']['slice'](-0xa),'displayName':_0xaa47a8['displayN'+_0x297473(_0x13662c._0xad779d,0x278)],'createdAt':_0xbce93c,'updatedAt':_0xbce93c};function _0x490f2e(_0x36d9b9,_0x40e57f){return _0x11b7ab(_0x40e57f,_0x36d9b9-0xb0);}return _0x4c3b29[_0x297473(-_0x13662c._0x90e6ee,-_0x13662c._0xdc3f94)](writePairingConfig,_0x1684fa),{'config':_0x1684fa,'accessCode':_0xaa47a8[_0x490f2e(_0x13662c._0x4e89d5,0x54)+'de'],'accessCodeExpiresAt':_0xaa47a8['accessCo'+_0x297473(_0x13662c._0x39a8ac,-_0x13662c._0x466679)+_0x297473(-_0x13662c._0x42d16a,-_0x13662c._0x40948c)],'action':_0x490f2e(0x290,0x300)+'ed','qrPayload':buildPairingQrPayload({'server':_0x45bacf,'gatewayId':_0xaa47a8[_0x490f2e(_0x13662c._0x12ec3b,0x422)+'d'],'accessCode':_0xaa47a8[_0x297473(-_0x13662c._0x893f01,-_0x13662c._0x1a6677)+'de'],'displayName':_0xaa47a8[_0x490f2e(_0x13662c._0x5f06e4,0x257)+'ame'],'token':_0x41e6d1[_0x297473(-0x36,-0x41)+_0x490f2e(_0x13662c._0x570d86,0x1f8)]?.[_0x490f2e(_0x13662c._0x8b505,-_0x13662c._0x319160)]()||null,'password':_0x41e6d1[_0x490f2e(_0x13662c._0x4c05c2,-0x82)+'assword']?.[_0x490f2e(_0x13662c._0x8b505,0x15f)]()||null})};}async function refreshAccessCode(_0x169844){const _0x5d07b4={_0x4d2415:0x2b0,_0x459c9f:0x2f,_0x4b4a02:0x164,_0x16005f:0x438,_0x13fa83:0x3f7,_0x4db0cd:0x397,_0x5e8d47:0x183,_0x17af43:0x3df,_0x38f944:0x528,_0x293b72:0x538,_0x4629b3:0x40f,_0x4fb937:0x76,_0x64cf03:0x1c7,_0x42a310:0x527,_0x3c8926:0x90,_0x39b4d7:0x8d,_0x3fa6bc:0x340,_0x17e8aa:0x18e,_0x30213b:0x3e3,_0x2de1c5:0x520,_0xe5a260:0x12a,_0x337369:0x238,_0x6ba7d2:0x1db,_0x31a6d0:0x48b,_0x5ae5df:0x32d,_0x975bb:0x19a,_0xa74733:0x506,_0x395bc4:0x74,_0x113864:0xc8,_0x2103db:0x1d2,_0x4dbdd1:0xe5,_0x402e06:0x25d,_0x461de1:0x1ec,_0x19cf60:0x3f5,_0x525c35:0x1df,_0x105ff7:0x34e,_0x2b6c43:0xfb,_0x30ec26:0x3d6,_0x42b92a:0x1f5,_0x3d35d1:0x341,_0x4123c9:0x34a},_0x20820a={_0x24a6e7:0x11a},_0x502f5b={'hfvfb':function(_0x21345e,_0x1f71df,_0x3a5ad9){return _0x21345e(_0x1f71df,_0x3a5ad9);},'YfqNl':_0x16645f(_0x5d07b4._0x4d2415,0x3f3),'wzSYx':'applicat'+_0x1f6370(_0x5d07b4._0x459c9f,-_0x5d07b4._0x4b4a02)},_0x4e97b9=readPairingConfig(),_0x349948=normalizeHttpBase(_0x169844?.[_0x16645f(0x362,0x28b)+'l']??_0x4e97b9?.[_0x1f6370(0x15a,0x342)+'l']??''),_0x1fb61e=_0x169844?.[_0x16645f(0x291,_0x5d07b4._0x16005f)+'d']??_0x4e97b9?.[_0x1f6370(0x307,0x1ad)+'d']??'',_0x5e178c=_0x169844?.['relaySec'+_0x1f6370(_0x5d07b4._0x13fa83,_0x5d07b4._0x4db0cd)]??_0x4e97b9?.[_0x16645f(0x365,_0x5d07b4._0x5e8d47)+_0x16645f(_0x5d07b4._0x17af43,_0x5d07b4._0x38f944)]??'';if(!_0x349948||!_0x1fb61e||!_0x5e178c)throw new Error('Pairing\x20'+_0x1f6370(0x3a5,0x27e)+'ot\x20found'+'.\x20Run\x20pa'+'ir\x20first'+'.');const _0x59ee61=await _0x502f5b[_0x16645f(_0x5d07b4._0x293b72,_0x5d07b4._0x4629b3)](fetch,_0x349948+(_0x1f6370(_0x5d07b4._0x4fb937,_0x5d07b4._0x64cf03)+'/access-'+_0x1f6370(0x8a,0x13a)),{'method':_0x502f5b[_0x16645f(0x653,_0x5d07b4._0x42a310)],'headers':{'content-type':_0x502f5b[_0x1f6370(_0x5d07b4._0x3c8926,_0x5d07b4._0x39b4d7)],'accept':_0x1f6370(0x417,_0x5d07b4._0x3fa6bc)+_0x1f6370(0x2f,_0x5d07b4._0x17e8aa)},'body':JSON[_0x1f6370(0x320,_0x5d07b4._0x30213b)+'y']({'gatewayId':_0x1fb61e,'relaySecret':_0x5e178c,'displayName':_0x169844?.['displayN'+'ame']?.[_0x16645f(0x32d,0x34a)]()||void 0x0})});if(!_0x59ee61['ok'])throw new Error('Access\x20c'+_0x16645f(_0x5d07b4._0x2de1c5,0x3a8)+_0x16645f(0x407,0x475)+'ed\x20('+_0x59ee61['status']+'):\x20'+await _0x59ee61[_0x1f6370(_0x5d07b4._0xe5a260,_0x5d07b4._0x337369)]());const _0x503591=await _0x59ee61['json'](),_0x6448a1={'serverUrl':_0x349948,'gatewayId':_0x503591['gatewayI'+'d'],'relaySecret':_0x5e178c,'relayUrl':_0x503591[_0x1f6370(0x2b,-0x121)],'instanceId':_0x4e97b9?.[_0x16645f(_0x5d07b4._0x6ba7d2,0x275)+'Id']??_0x1f6370(0x10e,0x184)+_0x503591[_0x1f6370(0x307,_0x5d07b4._0x31a6d0)+'d'][_0x1f6370(0x289,0x3ac)](-0xa),'displayName':_0x503591[_0x16645f(0x4fb,0x335)+'ame'],'createdAt':_0x4e97b9?.[_0x1f6370(_0x5d07b4._0x5ae5df,_0x5d07b4._0x975bb)+'t']??new Date()[_0x16645f(_0x5d07b4._0xa74733,0x3ad)+_0x16645f(0x3c2,0x1f9)](),'updatedAt':new Date()[_0x1f6370(0x27c,_0x5d07b4._0x395bc4)+_0x1f6370(_0x5d07b4._0x113864,_0x5d07b4._0x2103db)]()};writePairingConfig(_0x6448a1);function _0x16645f(_0x777cd1,_0xa66036){return _0x11b7ab(_0x777cd1,_0xa66036-0x24b);}function _0x1f6370(_0x47fa74,_0x140d07){return _0x11b7ab(_0x140d07,_0x47fa74-_0x20820a._0x24a6e7);}return{'config':_0x6448a1,'accessCode':_0x503591[_0x1f6370(0x12e,_0x5d07b4._0x4dbdd1)+'de'],'accessCodeExpiresAt':_0x503591[_0x1f6370(0x12e,_0x5d07b4._0x402e06)+_0x16645f(_0x5d07b4._0x461de1,_0x5d07b4._0x19cf60)+_0x16645f(0x242,_0x5d07b4._0x525c35)],'action':_0x16645f(0x503,_0x5d07b4._0x105ff7)+'d','qrPayload':buildPairingQrPayload({'server':_0x349948,'gatewayId':_0x503591['gatewayI'+'d'],'accessCode':_0x503591[_0x1f6370(0x12e,_0x5d07b4._0x2b6c43)+'de'],'displayName':_0x503591[_0x16645f(0x1fb,0x335)+_0x16645f(_0x5d07b4._0x30ec26,0x53f)],'token':_0x169844?.['gatewayT'+'oken']?.[_0x16645f(_0x5d07b4._0x42b92a,0x34a)]()||null,'password':_0x169844?.[_0x16645f(0x1,0x1c3)+'assword']?.[_0x16645f(_0x5d07b4._0x3d35d1,_0x5d07b4._0x4123c9)]()||null})};}function normalizeHttpBase(_0x13898b){const _0x54b307={_0x431b50:0x3e5,_0x409588:0x1f4,_0x2785fb:0x1de,_0x54934a:0x204,_0x5ce106:0x8a,_0x40ebc2:0x1c9,_0x1db6d3:0x22d,_0x4c5bd0:0xec,_0x5eab10:0x8a,_0x462ad6:0x3a7,_0x2e4a43:0x2ed,_0x15e588:0x184,_0x3f61b4:0x442,_0x5ab2fc:0x1ee,_0x5149f5:0x4b,_0x2a3e73:0xb6},_0x54a050={_0x6ba67d:0x44c},_0x19bd8b={_0x3adb4e:0x15},_0x36d27c={};_0x36d27c[_0x213bbd(0x4be,_0x54b307._0x431b50)]=_0x105d38(_0x54b307._0x409588,0xb7),_0x36d27c['PPmTj']=_0x105d38(0x16c,_0x54b307._0x2785fb);const _0x7fec41=_0x36d27c,_0x44c90a=_0x13898b['trim']();if(!_0x44c90a)return'';if(_0x44c90a[_0x105d38(_0x54b307._0x54934a,_0x54b307._0x5ce106)+'th'](_0x7fec41['apHHW'])||_0x44c90a['startsWi'+'th'](_0x105d38(_0x54b307._0x40ebc2,0x1ee)))return _0x44c90a[_0x213bbd(_0x54b307._0x1db6d3,0x381)](/\/+$/,'');function _0x105d38(_0xa2d5d0,_0xa1b956){return _0x11b7ab(_0xa2d5d0,_0xa1b956-_0x19bd8b._0x3adb4e);}if(_0x44c90a[_0x105d38(-_0x54b307._0x4c5bd0,_0x54b307._0x5eab10)+'th'](_0x105d38(_0x54b307._0x462ad6,_0x54b307._0x2e4a43)))return(_0x105d38(0x169,0xb7)+_0x44c90a[_0x105d38(-0x2e,_0x54b307._0x15e588)]('ws://'['length']))[_0x213bbd(_0x54b307._0x3f61b4,0x381)](/\/+$/,'');function _0x213bbd(_0x1618c8,_0x3969b9){return _0x11b7ab(_0x1618c8,_0x3969b9-_0x54a050._0x6ba67d);}if(_0x44c90a['startsWi'+'th'](_0x7fec41['PPmTj']))return(_0x105d38(0x31b,_0x54b307._0x5ab2fc)+_0x44c90a['slice'](_0x105d38(-0x3,0x1de)[_0x105d38(-0x4f,0xfe)]))[_0x105d38(-_0x54b307._0x5149f5,-_0x54b307._0x2a3e73)](/\/+$/,'');return(_0x213bbd(0x4e4,0x625)+_0x44c90a)['replace'](/\/+$/,'');}function assessPairingCompatibility(_0x5a23ea,_0x458b79){const _0x2bb680={_0x348c68:0x6e8,_0x26cbc8:0x4db,_0x4eef28:0x4c5,_0xcb1e5:0x4c8,_0x30af11:0x5a3,_0x3effd6:0x787,_0x316495:0x710,_0x1ecbba:0x532,_0x52dca4:0x3de,_0x55a131:0x72a,_0xcd6f81:0x60c},_0x592a36={_0x21a7b4:0x4f2},_0x2e7b7f={_0xb0da5c:0x230},_0x34f630={};_0x34f630[_0x5b7fdb(0x41e,0x33d)]=_0x3f034c(_0x2bb680._0x348c68,0x6d2)+_0x5b7fdb(_0x2bb680._0x26cbc8,0x362);function _0x5b7fdb(_0x236f08,_0x219e4d){return _0x11b7ab(_0x219e4d,_0x236f08-_0x2e7b7f._0xb0da5c);}_0x34f630[_0x5b7fdb(_0x2bb680._0x4eef28,_0x2bb680._0xcb1e5)]=function(_0x34bd9e,_0x3620f4){return _0x34bd9e===_0x3620f4;};const _0x59d3fb=_0x34f630;if(!_0x5a23ea)return _0x59d3fb['uZKJc'];function _0x3f034c(_0x45b98c,_0xf454fc){return _0x11b7ab(_0x45b98c,_0xf454fc-_0x592a36._0x21a7b4);}if(_0x59d3fb[_0x3f034c(_0x2bb680._0x30af11,_0x2bb680._0x3effd6)](_0x5a23ea[_0x3f034c(_0x2bb680._0x316495,_0x2bb680._0x1ecbba)+'l'],_0x458b79))return _0x3f034c(_0x2bb680._0x52dca4,0x3fc)+_0x3f034c(0x9d7,0x7f0);return _0x3f034c(0x6f7,0x6b3)+_0x3f034c(_0x2bb680._0x55a131,_0x2bb680._0xcd6f81);}import{execFileSync,spawn}from'child_process';import{chmodSync,closeSync,existsSync as _0x44150d,mkdirSync as _0x40ab56,openSync,readFileSync as _0x34a7a2,realpathSync,rmSync as _0x40020e,writeFileSync as _0x301ed4}from'fs';import{homedir as _0xdfb285}from'os';import{dirname,join as _0x12493c}from'path';var SERVICE_LABEL=_0x6eb3(0x7e,0x88)+_0x6eb3(0x1eb,0xee)+_0x11b7ab(0x51,0x105),SYSTEMD_UNIT_NAME=SERVICE_LABEL+_0x6eb3(-0x97,-0x114),WINDOWS_RUN_KEY=_0x6eb3(0x34c,0x232)+_0x11b7ab(-0x25e,-0x8e),SERVICE_DIR=_0x12493c(_0xdfb285(),_0x6eb3(0x3eb,0x284)),LOG_DIR=_0x12493c(SERVICE_DIR,'logs'),SERVICE_STATE_PATH=_0x12493c(SERVICE_DIR,_0x11b7ab(0x3c9,0x2e8)+'ervice.j'+_0x11b7ab(0x14e,0x240)),SERVICE_LAUNCHER_PATH=_0x12493c(SERVICE_DIR,_0x6eb3(0x189,0x2a6)+_0x11b7ab(-0x56,0x110)+_0x11b7ab(-0x3e,0x71)+'sh'),SERVICE_LOG_PATH=_0x12493c(LOG_DIR,_0x11b7ab(0x56,0x203)+_0x6eb3(0x18b,0x27)),SERVICE_ERROR_LOG_PATH=_0x12493c(LOG_DIR,'bridge-c'+_0x6eb3(0xfb,0x1a9)+_0x11b7ab(0x161,0x307)),MACOS_PLIST_PATH=_0x12493c(_0xdfb285(),'Library',_0x11b7ab(0x1ef,0x45)+_0x6eb3(0x17c,0xb1),SERVICE_LABEL+_0x6eb3(0x255,0x7b)),LINUX_SERVICE_PATH=_0x12493c(_0xdfb285(),'.config',_0x11b7ab(-0x8b,-0x37),_0x6eb3(-0x1ad,-0xa7),SYSTEMD_UNIT_NAME);function getServiceProgramArgs(_0x3697f1={},_0xd6ad17=process[_0x11b7ab(-0x49,0x1b)]){const _0x16427c={_0x2ac6b3:0x293,_0x10c96f:0x337,_0xdefe8a:0x4a9,_0x14ffb0:0x171,_0x4180bb:0x54b,_0x102399:0x208,_0x5e7313:0x40f,_0x5ea959:0x332,_0x4b59c8:0x101,_0x5cc584:0x2b,_0x36156a:0x67,_0xce8e47:0x24d,_0x4d828f:0x2ed,_0x6e026:0x15e,_0x513793:0x277,_0x3a403c:0x61,_0x29eb3a:0x105,_0x4b2b05:0x4c0,_0x171f82:0x274,_0x35c105:0xc1},_0x2726bf={_0x4a972b:0x60};function _0x54d73d(_0x3777fa,_0x36fd67){return _0x11b7ab(_0x36fd67,_0x3777fa-0x2e9);}const _0x5d4592={};_0x5d4592[_0x62bc4e(_0x16427c._0x2ac6b3,_0x16427c._0x10c96f)]=function(_0x3bae44,_0x11aebb){return _0x3bae44!==_0x11aebb;};const _0x371fb7=_0x5d4592;function _0x62bc4e(_0x256950,_0xba85a){return _0x11b7ab(_0xba85a,_0x256950- -_0x2726bf._0x4a972b);}const _0x549683=_0x3697f1['nodePath']?.[_0x54d73d(0x3e8,_0x16427c._0xdefe8a)]()||process[_0x62bc4e(0x1f0,_0x16427c._0x14ffb0)],_0x464af2=resolveScriptPath(_0x3697f1[_0x54d73d(0x283,0x2cd)+'th']);if(!_0x464af2)throw new Error(_0x54d73d(_0x16427c._0x4180bb,0x637)+_0x54d73d(_0x16427c._0x102399,_0x16427c._0x5e7313)+_0x54d73d(_0x16427c._0x5ea959,0x481)+_0x62bc4e(-_0x16427c._0x4b59c8,-0x272)+_0x62bc4e(-_0x16427c._0x5cc584,-0x234)+_0x54d73d(0x553,0x712)+_0x62bc4e(_0x16427c._0x36156a,0x4e)+_0x54d73d(_0x16427c._0xce8e47,_0x16427c._0x4d828f));if(_0x371fb7[_0x62bc4e(0x293,0x329)](_0xd6ad17,_0x62bc4e(-_0x16427c._0x6e026,-0x11b))){const _0x58defd={};_0x58defd[_0x54d73d(0x276,_0x16427c._0x513793)]=_0x549683,_0x58defd[_0x62bc4e(-0xc6,_0x16427c._0x3a403c)+'th']=_0x464af2,_0x58defd[_0x62bc4e(-_0x16427c._0x29eb3a,-0x285)]=process.env.PATH??'';const _0x36a428=writeServiceLauncher(_0x58defd);return ensureLaunchScriptExecutable(_0x36a428,_0xd6ad17),[_0x36a428];}return[_0x549683,_0x464af2,_0x54d73d(_0x16427c._0x4b2b05,0x41d),_0x62bc4e(_0x16427c._0x171f82,_0x16427c._0x35c105)+'e'];}function getServiceStatus(){const _0x559ed2={_0x5d49b5:0x210,_0xa2a10:0x312,_0x25268b:0x1e4,_0x21dbd6:0x3dc,_0x1e29f2:0x4d5,_0x23030c:0x142,_0x43cdc7:0x22d,_0x4d0d91:0x2e,_0x291c0c:0x21d,_0x2340f3:0x14e,_0x2cf22e:0xf6,_0x23723f:0x6,_0xdd1482:0x33b,_0x86519f:0x3b9,_0x48b9b3:0x40f,_0x36e264:0x104,_0x1745e0:0x202,_0x7ed3f:0x101,_0x1404ae:0x36,_0x2bda4a:0x222,_0x5aa632:0x140,_0x39eb9b:0x1fe,_0x1777bd:0x313,_0x423857:0x2d1,_0x20c8d7:0xdb,_0x6df5f9:0xa8,_0x25d1d7:0x10a,_0x39755a:0x1b6},_0x308149={'xgdZr':function(_0x123f35,_0x1ae82d){return _0x123f35(_0x1ae82d);},'eGXTo':function(_0x27a15b){return _0x27a15b();},'ehtEg':function(_0x29e87a,_0x14527b){return _0x29e87a!=_0x14527b;},'dSzGd':function(_0x2993a0,_0x179b48){return _0x2993a0(_0x179b48);},'nWXQG':_0x14e906(_0x559ed2._0x5d49b5,_0x559ed2._0xa2a10)+_0xaefb8f(_0x559ed2._0x25268b,0x197),'bheji':_0xaefb8f(_0x559ed2._0x21dbd6,_0x559ed2._0x1e29f2)+'l'};ensureServiceDirs();const _0x27d5cc=readServiceState()?.[_0xaefb8f(_0x559ed2._0x23030c,_0x559ed2._0x43cdc7)]??null;function _0xaefb8f(_0x52389a,_0x399bb){return _0x11b7ab(_0x399bb,_0x52389a-0x249);}const _0x543f95={'installed':![],'running':_0x27d5cc!=null&&_0x308149[_0xaefb8f(0x4e1,0x464)](isPidRunning,_0x27d5cc),'method':_0x308149['eGXTo'](detectServiceMethod),'servicePath':getServicePath(),'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'pid':_0x27d5cc};_0x308149[_0x14e906(0x212,_0x559ed2._0x4d0d91)](_0x543f95[_0x14e906(-_0x559ed2._0x291c0c,-0xf6)],null)&&!_0x543f95[_0x14e906(0x51,0x36)]&&(clearServiceState(_0x543f95[_0xaefb8f(0x142,_0x559ed2._0x2340f3)]),_0x543f95[_0x14e906(0xe8,-_0x559ed2._0x2cf22e)]=null);function _0x14e906(_0x52fbb1,_0x5b36f3){return _0x11b7ab(_0x52fbb1,_0x5b36f3-0x11);}switch(_0x543f95[_0x14e906(0x1f8,-_0x559ed2._0x23723f)]){case _0xaefb8f(0x4ca,_0x559ed2._0xdd1482)+_0xaefb8f(_0x559ed2._0x86519f,0x540):_0x543f95[_0xaefb8f(0x45a,_0x559ed2._0x48b9b3)+'d']=_0x308149[_0x14e906(_0x559ed2._0x36e264,_0x559ed2._0x1745e0)](_0x44150d,MACOS_PLIST_PATH);_0x543f95['installe'+'d']&&(_0x543f95[_0xaefb8f(0x26e,_0x559ed2._0x7ed3f)]=commandSucceeds('launchct'+'l',[_0xaefb8f(0x236,0x31c),SERVICE_LABEL])||_0x543f95[_0x14e906(-_0x559ed2._0x7ed3f,_0x559ed2._0x1404ae)]);return _0x543f95;case _0x308149[_0xaefb8f(0x1c7,0x25a)]:_0x543f95['installe'+'d']=_0x44150d(LINUX_SERVICE_PATH);_0x543f95[_0x14e906(0x115,_0x559ed2._0x2bda4a)+'d']&&(_0x543f95[_0x14e906(_0x559ed2._0x5aa632,0x36)]=commandSucceeds(_0x308149[_0x14e906(_0x559ed2._0x39eb9b,0x2e7)],[_0x14e906(_0x559ed2._0x1777bd,_0x559ed2._0x423857),'is-activ'+'e','--quiet',SYSTEMD_UNIT_NAME])||_0x543f95['running']);return _0x543f95;case _0x14e906(-_0x559ed2._0x20c8d7,_0x559ed2._0x6df5f9)+_0x14e906(_0x559ed2._0x25d1d7,-0xd9)+'stry':_0x543f95[_0x14e906(0x22b,0x222)+'d']=commandSucceeds(_0xaefb8f(0x48a,0x3f4),[_0xaefb8f(0x373,_0x559ed2._0x39755a),'HKCU\x5cSof'+_0xaefb8f(0x2c7,0x3b4)+_0x14e906(-0x13e,-0x67)+_0xaefb8f(0x1ab,0x366)+_0xaefb8f(0x15c,0x2d5)+_0xaefb8f(0x49a,0x4f7)+'un','/v',WINDOWS_RUN_KEY]);return _0x543f95;default:return _0x543f95;}}function installService(_0x158a50={}){const _0x491fa9={_0x422861:0x53f,_0x146851:0x1bd,_0x3d0327:0x733,_0x3ef3df:0xdc,_0x5e821b:0x559,_0x942b69:0x7b,_0x30c8fe:0xf1,_0x78fe26:0x5c,_0x5d85ca:0x2d,_0x6ebb74:0x17,_0x27b320:0x162,_0x5e453c:0x321,_0x1e998d:0x72,_0x28724e:0x15c,_0x4ce0f5:0xca,_0x7f8cb5:0x44e,_0x3ac672:0x40f,_0x3471d8:0x13d,_0x2cc9f0:0x199,_0x58b8ba:0x481,_0x10abe9:0x464,_0x86c4c1:0x3e1,_0x450b12:0x148,_0x5c3345:0x57b,_0x52d598:0x46,_0x7b1803:0x9c,_0x38c845:0x3c,_0x3b4b18:0x36c,_0x6bd72b:0x52a,_0x588591:0x367,_0x3ccd3a:0x1e1,_0x26099a:0x101,_0x48df19:0x2d6},_0xa55585={_0x491ff0:0x2bb},_0x4faab7={_0x5a7b7a:0x127};function _0x46e58f(_0x3646a4,_0x14db78){return _0x11b7ab(_0x3646a4,_0x14db78- -_0x4faab7._0x5a7b7a);}const _0x1a575f={'gKYqn':'darwin','MVTKa':function(_0x3c646f,_0x5454d9,_0x481e27,_0x26a7a6){return _0x3c646f(_0x5454d9,_0x481e27,_0x26a7a6);},'zVfnq':_0xc3fb1(_0x491fa9._0x422861,0x3d3),'mcQyy':_0xc3fb1(0x24d,_0x491fa9._0x146851),'KQTcV':_0xc3fb1(_0x491fa9._0x3d0327,0x59b),'flMCf':_0xc3fb1(_0x491fa9._0x3ef3df,0x241)+_0xc3fb1(0x304,0x339)+_0xc3fb1(0xde,0x243)+_0x46e58f(-0x2d4,-0x1c5)+_0x46e58f(-0x351,-0x214)+_0xc3fb1(_0x491fa9._0x5e821b,0x50c)+'un','btFcV':_0x46e58f(_0x491fa9._0x942b69,-_0x491fa9._0x30c8fe)};function _0xc3fb1(_0x2ba0c7,_0x4e93f8){return _0x11b7ab(_0x2ba0c7,_0x4e93f8-_0xa55585._0x491ff0);}ensureServiceDirs();const _0x54291c=getServiceProgramArgs(_0x158a50);switch(process[_0xc3fb1(0x412,0x2d6)]){case _0x1a575f['gKYqn']:_0x1a575f[_0x46e58f(0x1b8,0x1e1)](_0x301ed4,MACOS_PLIST_PATH,buildMacosPlist(_0x54291c,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x1a575f[_0x46e58f(-0x255,-_0x491fa9._0x78fe26)]),execIgnoreFailure(_0x46e58f(-0x1e6,-0x162)+'l',[_0x46e58f(-0xa3,-0xcc),'-w',MACOS_PLIST_PATH]);const _0x6b87ea={};_0x6b87ea[_0xc3fb1(0x239,0x346)]=_0x46e58f(0xcf,_0x491fa9._0x5d85ca),_0x1a575f[_0x46e58f(-_0x491fa9._0x6ebb74,0x1e1)](execFileSync,_0x46e58f(-0x29f,-_0x491fa9._0x27b320)+'l',[_0xc3fb1(0x502,0x33b),'-w',MACOS_PLIST_PATH],_0x6b87ea);break;case _0xc3fb1(0x128,_0x491fa9._0x5e453c):const _0x2c7b51={};_0x2c7b51[_0x46e58f(-_0x491fa9._0x1e998d,-_0x491fa9._0x28724e)+'e']=!![],_0x40ab56(dirname(LINUX_SERVICE_PATH),_0x2c7b51),_0x301ed4(LINUX_SERVICE_PATH,buildLinuxSystemdUnit(_0x54291c,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x1a575f[_0x46e58f(-_0x491fa9._0x4ce0f5,-0x5c)]);const _0x5d79c2={};_0x5d79c2['stdio']=_0xc3fb1(_0x491fa9._0x7f8cb5,_0x491fa9._0x3ac672),execFileSync('systemct'+'l',[_0x46e58f(_0x491fa9._0x3471d8,_0x491fa9._0x2cc9f0),_0xc3fb1(0x337,_0x491fa9._0x58b8ba)+_0xc3fb1(_0x491fa9._0x10abe9,0x535)],_0x5d79c2);const _0x4360bf={};_0x4360bf[_0xc3fb1(_0x491fa9._0x86c4c1,0x346)]=_0xc3fb1(0x58a,_0x491fa9._0x3ac672),_0x1a575f[_0x46e58f(_0x491fa9._0x450b12,0x1e1)](execFileSync,'systemct'+'l',[_0xc3fb1(0x5b8,_0x491fa9._0x5c3345),_0xc3fb1(0x593,0x5b7),'--now',SYSTEMD_UNIT_NAME],_0x4360bf);break;case _0x1a575f[_0x46e58f(-0x253,-0x181)]:stopRunningProcess();const _0x59d72c={};_0x59d72c[_0x46e58f(_0x491fa9._0x52d598,-_0x491fa9._0x7b1803)]=_0xc3fb1(0x4de,0x40f),execFileSync('reg',[_0x1a575f[_0x46e58f(-0x2dd,-0x1d8)],_0x1a575f['flMCf'],'/v',WINDOWS_RUN_KEY,'/t',_0x1a575f['btFcV'],'/d',buildWindowsRunCommand(_0x54291c),'/f'],_0x59d72c),startDetachedWindowsService(_0x54291c);break;default:throw new Error('Unsuppor'+_0x46e58f(-0x2d8,-0x213)+_0x46e58f(-0x19b,-_0x491fa9._0x38c845)+_0xc3fb1(_0x491fa9._0x3b4b18,_0x491fa9._0x6bd72b)+_0x46e58f(_0x491fa9._0x38c845,0xd2)+_0xc3fb1(0x4b5,_0x491fa9._0x588591)+_0x46e58f(_0x491fa9._0x3ccd3a,_0x491fa9._0x26099a)+process[_0xc3fb1(0x11e,_0x491fa9._0x48df19)]);}return getServiceStatus();}function restartService(_0x4172ce={}){const _0x56faff={_0x43ace1:0x783,_0x19edce:0x696,_0x418bdf:0x1ed,_0x5c8a1d:0x53e,_0x3be77a:0x143,_0x2c7b33:0x2f6,_0x3d1efe:0x1dd,_0x4a7672:0x31,_0x31fa6d:0x7f,_0xa2b25c:0x1a4,_0x2882d9:0x4ee,_0x1e20a7:0x500,_0x397f2c:0x682,_0x512b91:0x806,_0xaa9515:0x77,_0x106efe:0x17b,_0x183f00:0x643,_0x4e95a2:0x37e,_0x15582d:0x457,_0x4e83b9:0xce,_0x5b460e:0xfb,_0x3dd1ba:0x1f,_0x36f851:0xbd,_0x117122:0x103,_0x3e4962:0x4ba,_0x8241e:0x80a,_0x1ff637:0x14,_0x341701:0x4c0,_0x5297ca:0x68f,_0xf663d6:0x100,_0x37a7fe:0x7fb,_0x285b96:0x7a,_0x37215e:0x5c6,_0x76951d:0x559,_0x36be23:0x257,_0x58026f:0x14f,_0x216e00:0x64,_0x27812f:0x5b9,_0x746350:0x3bc,_0x3eaefa:0x2dd,_0x32cf25:0x78c,_0x5de237:0x755,_0x1379ad:0x571,_0x55b9ae:0x53e,_0xc1c79e:0x44f,_0x3cb72b:0x2fb,_0x4c3774:0x101,_0x15ce2c:0x667,_0x39c0d6:0x6bf,_0x4f9052:0x5cf,_0x5a0e79:0x807},_0x2e10f1={_0x3a5b1f:0x16},_0x52a895={_0x337162:0x53b},_0x39f56a={'gndYX':function(_0x27ee65){return _0x27ee65();},'LDayH':_0x146fc4(_0x56faff._0x43ace1,_0x56faff._0x19edce),'NIBoU':function(_0x108554,_0x5a75b2,_0x4deb03,_0x597fe3){return _0x108554(_0x5a75b2,_0x4deb03,_0x597fe3);},'kgrtp':_0x203347(_0x56faff._0x418bdf,0x71),'hGkSq':function(_0xbb8a86,_0x5b8866,_0x2cee19,_0x5d522f){return _0xbb8a86(_0x5b8866,_0x2cee19,_0x5d522f);},'TuRGc':'launchct'+'l','AAMhW':'linux','phhhb':function(_0x503a88,_0x16b68b){return _0x503a88(_0x16b68b);},'ASqrG':function(_0x5d7d6c,_0x19e7cd){return _0x5d7d6c(_0x19e7cd);},'ZLwpX':function(_0x14262b,_0x52ab60,_0x211656){return _0x14262b(_0x52ab60,_0x211656);},'aNClu':function(_0x124c6e,_0x21bfcc){return _0x124c6e(_0x21bfcc);},'AXAIA':_0x146fc4(0x62f,0x653),'jPaLu':_0x146fc4(_0x56faff._0x5c8a1d,0x68f),'yrsxo':_0x146fc4(0x4f5,0x6ce)+'l','QcQmS':_0x203347(_0x56faff._0x3be77a,_0x56faff._0x2c7b33)};_0x39f56a[_0x203347(0x299,_0x56faff._0x3d1efe)](ensureServiceDirs);const _0x4a6c25=getServiceProgramArgs(_0x4172ce);switch(process[_0x203347(-0x77,_0x56faff._0x4a7672)]){case _0x39f56a[_0x146fc4(0x647,0x740)]:if(!_0x44150d(MACOS_PLIST_PATH))return installService(_0x4172ce);_0x39f56a['NIBoU'](_0x301ed4,MACOS_PLIST_PATH,_0x39f56a[_0x203347(_0x56faff._0x31fa6d,_0x56faff._0xa2b25c)](buildMacosPlist,_0x4a6c25,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),'utf8'),execIgnoreFailure(_0x146fc4(_0x56faff._0x2882d9,_0x56faff._0x1e20a7)+'l',[_0x39f56a[_0x146fc4(0x542,_0x56faff._0x397f2c)],'-w',MACOS_PLIST_PATH]);const _0x2c31bc={};_0x2c31bc['stdio']=_0x146fc4(_0x56faff._0x512b91,0x68f),_0x39f56a[_0x203347(_0x56faff._0xaa9515,_0x56faff._0x106efe)](execFileSync,_0x39f56a['TuRGc'],[_0x146fc4(_0x56faff._0x183f00,0x5bb),'-w',MACOS_PLIST_PATH],_0x2c31bc);break;case _0x39f56a[_0x146fc4(_0x56faff._0x4e95a2,_0x56faff._0x15582d)]:if(!_0x39f56a['phhhb'](_0x44150d,LINUX_SERVICE_PATH))return _0x39f56a[_0x203347(_0x56faff._0x4e83b9,0x15)](installService,_0x4172ce);const _0x475403={};_0x475403[_0x203347(-_0x56faff._0x5b460e,-_0x56faff._0x3dd1ba)+'e']=!![],_0x39f56a[_0x203347(-0x41,-_0x56faff._0x36f851)](_0x40ab56,_0x39f56a[_0x203347(-0xf4,-0x92)](dirname,LINUX_SERVICE_PATH),_0x475403),_0x301ed4(LINUX_SERVICE_PATH,_0x39f56a[_0x203347(0x1a2,0x1a4)](buildLinuxSystemdUnit,_0x4a6c25,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x39f56a[_0x203347(_0x56faff._0x117122,0x6f)]);const _0x4ab2a0={};_0x4ab2a0['stdio']=_0x39f56a[_0x146fc4(0x4ca,_0x56faff._0x3e4962)],execFileSync(_0x146fc4(_0x56faff._0x8241e,0x6ce)+'l',['--user','daemon-r'+_0x146fc4(0x61a,0x7b5)],_0x4ab2a0);const _0x553f3f={};_0x553f3f[_0x203347(-_0x56faff._0x1ff637,0xa1)]=_0x146fc4(_0x56faff._0x341701,_0x56faff._0x5297ca),execFileSync(_0x39f56a[_0x203347(_0x56faff._0xf663d6,-0xd2)],[_0x146fc4(0x7c1,_0x56faff._0x37a7fe),'restart',SYSTEMD_UNIT_NAME],_0x553f3f);break;case _0x203347(-_0x56faff._0x285b96,-0xe8):stopRunningProcess();const _0x2080c3={};_0x2080c3[_0x146fc4(0x402,_0x56faff._0x37215e)]=_0x146fc4(_0x56faff._0x76951d,0x68f),execFileSync(_0x203347(0x457,_0x56faff._0x36be23),[_0x39f56a[_0x203347(0x17a,_0x56faff._0x58026f)],_0x203347(-0x1d7,-_0x56faff._0x216e00)+_0x146fc4(0x4dd,_0x56faff._0x27812f)+_0x146fc4(_0x56faff._0x746350,0x4c3)+_0x146fc4(_0x56faff._0x3eaefa,0x49d)+_0x203347(-0x250,-0xd7)+_0x146fc4(0x82b,_0x56faff._0x32cf25)+'un','/v',WINDOWS_RUN_KEY,'/t',_0x146fc4(_0x56faff._0x5de237,_0x56faff._0x1379ad),'/d',buildWindowsRunCommand(_0x4a6c25),'/f'],_0x2080c3),startDetachedWindowsService(_0x4a6c25);break;default:throw new Error('Unsuppor'+_0x146fc4(_0x56faff._0x55b9ae,_0x56faff._0xc1c79e)+_0x203347(_0x56faff._0x3cb72b,_0x56faff._0x4c3774)+_0x146fc4(_0x56faff._0x15ce2c,0x7aa)+_0x146fc4(_0x56faff._0x39c0d6,_0x56faff._0x4f9052)+_0x146fc4(0x68f,_0x56faff._0x5a0e79)+process['platform']);}function _0x146fc4(_0x12d13f,_0xd5d86a){return _0x11b7ab(_0x12d13f,_0xd5d86a-_0x52a895._0x337162);}function _0x203347(_0x437dc6,_0x44c00f){return _0x11b7ab(_0x437dc6,_0x44c00f-_0x2e10f1._0x3a5b1f);}return getServiceStatus();}function uninstallService(){const _0x1a3044={_0x311d8e:0xc7,_0x24871d:0x1f7,_0x2f6782:0x2a5,_0x3323c1:0xd5,_0x26220e:0x9e,_0x453578:0x32a,_0x4a83c5:0x40,_0x1a5954:0x188,_0xf62762:0x4c,_0x1f08aa:0x108,_0x171573:0x230,_0x2edbb0:0x1bb,_0x467dae:0x1fe},_0x3311dd={_0x107eaa:0x186};function _0x4252e0(_0x2bc5e7,_0x150b21){return _0x11b7ab(_0x2bc5e7,_0x150b21-0x14a);}function _0x65acfa(_0x81e8ea,_0x5b17c6){return _0x11b7ab(_0x81e8ea,_0x5b17c6- -_0x3311dd._0x107eaa);}const _0x4e3fd9={};_0x4e3fd9[_0x4252e0(0x1ce,0xd5)]=_0x65acfa(-_0x1a3044._0x311d8e,0x13a),_0x4e3fd9['rVjra']=_0x4252e0(0x4d,0x1cb);const _0x41e8a7=_0x4e3fd9;stopRunningProcess();switch(process[_0x4252e0(_0x1a3044._0x24871d,0x165)]){case _0x4252e0(0x3c0,_0x1a3044._0x2f6782):execIgnoreFailure('launchct'+'l',[_0x65acfa(-0x215,-0x12b),'-w',MACOS_PLIST_PATH]),rmIfExists(MACOS_PLIST_PATH);break;case'linux':_0x44150d(LINUX_SERVICE_PATH)&&(execIgnoreFailure(_0x4252e0(0x4cc,0x2dd)+'l',[_0x41e8a7[_0x4252e0(-0xb9,_0x1a3044._0x3323c1)],_0x41e8a7[_0x65acfa(-_0x1a3044._0x26220e,-0x1e8)],_0x4252e0(_0x1a3044._0x453578,0x1d0),SYSTEMD_UNIT_NAME]),rmIfExists(LINUX_SERVICE_PATH),execIgnoreFailure('systemct'+'l',[_0x41e8a7['GDqmi'],_0x65acfa(0x243,_0x1a3044._0x4a83c5)+'eload']));break;case _0x4252e0(-_0x1a3044._0x1a5954,_0x1a3044._0xf62762):execIgnoreFailure(_0x65acfa(_0x1a3044._0x1f08aa,0xbb),[_0x65acfa(-0x272,-0x14b),_0x65acfa(-_0x1a3044._0x171573,-0x200)+_0x4252e0(_0x1a3044._0x2edbb0,0x1c8)+_0x65acfa(-0x31a,-_0x1a3044._0x467dae)+_0x65acfa(-0x76,-0x224)+_0x4252e0(-0x64,0x5d)+'ersion\x5cR'+'un','/v',WINDOWS_RUN_KEY,'/f']);break;default:break;}return clearServiceState(),getServiceStatus();}function stopService(){const _0x58f257={_0x29f7c6:0x27e,_0x474b90:0x3f6,_0x2f61aa:0x21b,_0x111e7b:0x3e0,_0x317a66:0xfc,_0x292407:0x19a,_0x39e729:0x2bf,_0x3a7b7e:0xd,_0x3532cd:0x50f,_0x22d7a7:0x504,_0x2caf3f:0x1ff,_0x39cf46:0xad,_0x397133:0x9d,_0x3c5b5d:0x38},_0xb71397={_0x4342fc:0x3be},_0x42869a={'nesoa':function(_0x98e840){return _0x98e840();},'NxDfj':function(_0x3f873a,_0x5e7abd){return _0x3f873a(_0x5e7abd);},'iMOsL':_0x202e19(0x3d7,0x4f9),'NRbek':function(_0xca6bac,_0x28e1d4,_0x471567){return _0xca6bac(_0x28e1d4,_0x471567);},'iUAzF':_0x202e19(_0x58f257._0x29f7c6,0x417)};_0x42869a[_0x202e19(_0x58f257._0x474b90,0x32c)](stopRunningProcess);function _0x202e19(_0x25a7ce,_0x95c4c3){return _0x6eb3(_0x95c4c3,_0x25a7ce-_0xb71397._0x4342fc);}switch(process[_0x17f897(-_0x58f257._0x2f61aa,-0xa6)]){case'darwin':_0x42869a[_0x202e19(0x3e0,_0x58f257._0x111e7b)](_0x44150d,MACOS_PLIST_PATH)&&execIgnoreFailure(_0x17f897(-0x24,-_0x58f257._0x317a66)+'l',[_0x42869a[_0x17f897(_0x58f257._0x292407,0x186)],MACOS_PLIST_PATH]);break;case _0x202e19(0x3e2,_0x58f257._0x39e729):_0x44150d(LINUX_SERVICE_PATH)&&_0x42869a[_0x17f897(_0x58f257._0x3a7b7e,-0x197)](execIgnoreFailure,_0x202e19(_0x58f257._0x3532cd,_0x58f257._0x22d7a7)+'l',[_0x17f897(0x3ea,_0x58f257._0x2caf3f),_0x17f897(-_0x58f257._0x39cf46,_0x58f257._0x397133),SYSTEMD_UNIT_NAME]);break;case _0x42869a[_0x17f897(-0x16d,-_0x58f257._0x3c5b5d)]:break;default:break;}function _0x17f897(_0x23280b,_0x183a69){return _0x6eb3(_0x23280b,_0x183a69- -0x7f);}return clearServiceState(),getServiceStatus();}function writeServiceState(_0x126bca=process[_0x6eb3(-0x1f9,-0x149)]){const _0x19acc1={_0x254e4f:0x622,_0x3c874a:0x5fa,_0x298691:0x44,_0x4b6472:0x5d8},_0x83c948={_0x2afec9:0x502};ensureServiceDirs();const _0x30d7f9={'pid':_0x126bca,'startedAt':new Date()[_0x4e30c9(_0x19acc1._0x254e4f,_0x19acc1._0x3c874a)+_0x20d4cd(_0x19acc1._0x298691,0x61)]()};function _0x4e30c9(_0x4ae1dd,_0x5bf7f4){return _0x6eb3(_0x5bf7f4,_0x4ae1dd-_0x83c948._0x2afec9);}function _0x20d4cd(_0x379a89,_0xd4b102){return _0x6eb3(_0xd4b102,_0x379a89-0xd8);}_0x301ed4(SERVICE_STATE_PATH,JSON['stringif'+'y'](_0x30d7f9,null,0x2)+'\x0a',_0x4e30c9(_0x19acc1._0x4b6472,0x7e0));}function clearServiceState(_0x4a631f){const _0xa24f60={_0x5c3603:0x62,_0x3790c1:0x1d8},_0x3db6e6={_0x14248d:0x2a5},_0x46243f={};_0x46243f[_0x24b299(-0x1e8,-_0xa24f60._0x5c3603)]=function(_0x21b9e9,_0x3e9663){return _0x21b9e9!=_0x3e9663;};const _0x25d61c=_0x46243f;function _0x1a49f0(_0x41a071,_0xc7ba83){return _0x6eb3(_0xc7ba83,_0x41a071-_0x3db6e6._0x14248d);}if(!_0x44150d(SERVICE_STATE_PATH))return;function _0x24b299(_0x5f4d9f,_0x2117b0){return _0x6eb3(_0x2117b0,_0x5f4d9f- -0xcb);}if(_0x25d61c[_0x1a49f0(0x188,0x226)](_0x4a631f,null)){const _0x505380=readServiceState();if(_0x505380&&_0x505380[_0x24b299(-0x214,-_0xa24f60._0x3790c1)]!==_0x4a631f)return;}rmIfExists(SERVICE_STATE_PATH);}function getServicePaths(){const _0x53e154={_0x3ef178:0x400},_0x4d76c5={'cbGxV':function(_0x126481){return _0x126481();}};function _0x2fc3af(_0xeb6410,_0xbee75b){return _0x6eb3(_0xbee75b,_0xeb6410-0x33e);}return{'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'servicePath':_0x4d76c5[_0x2fc3af(_0x53e154._0x3ef178,0x53d)](getServicePath)};}function buildMacosPlist(_0xee6705,_0x7eda19,_0x5cf101){const _0x736083={_0x4b3604:0x4a0,_0x5d6e47:0x23a,_0x161dda:0x202,_0x57c2ef:0x337,_0x3a61a9:0x3e4,_0x4a686f:0x5a3,_0x5520d3:0x573,_0x4328e5:0x286,_0x116f08:0x3b3,_0x2b46da:0x4f4,_0x2fa9bb:0x201,_0x4f695e:0x2b2,_0x1cb0b3:0x48e,_0x10b04e:0x66d,_0x512822:0x461,_0x343e0f:0x5ff,_0x5ace77:0x540,_0x5e8f74:0x5e6,_0x595e7c:0x4dd,_0xae81eb:0x1c5,_0x409755:0x2cd,_0x3c4141:0x2c0,_0x23de87:0x34c,_0x151b6a:0x230,_0x2d3230:0x2d3,_0x50a320:0x268,_0xcce416:0x279,_0x465fc3:0x5c2,_0x3e66f3:0x192,_0x2f5eea:0x2bb,_0x57c0bb:0x43e,_0x592c16:0x546,_0x1a1f3e:0x3a7,_0x24f04f:0x181,_0x255661:0x60d,_0x4b3235:0x477,_0x5aa6c4:0x409,_0x1d2aaf:0x44f,_0x5791ca:0x41a};function _0x5662ad(_0x22797b,_0x4bb199){return _0x6eb3(_0x4bb199,_0x22797b-0x300);}const _0x384427={'EBMMr':function(_0x2dc825,_0x2b53c7){return _0x2dc825(_0x2b53c7);}},_0x54e92e=_0xee6705[_0x5662ad(_0x736083._0x4b3604,0x446)](_0xab1b0d=>_0x39a968(0x4cb,0x444)+'ing>'+escapeXml(_0xab1b0d)+(_0x5662ad(0x4b8,0x417)+'>'))[_0x39a968(_0x736083._0x5d6e47,_0x736083._0x161dda)]('\x0a');function _0x39a968(_0x53c645,_0x1767bd){return _0x6eb3(_0x1767bd,_0x53c645-0x29a);}return _0x39a968(_0x736083._0x57c2ef,_0x736083._0x3a61a9)+'rsion=\x221'+'.0\x22\x20enco'+'ding=\x22UT'+_0x5662ad(0x27c,0x1fa)+_0x5662ad(_0x736083._0x4a686f,_0x736083._0x5520d3)+'\x20plist\x20P'+_0x39a968(_0x736083._0x4328e5,_0x736083._0x116f08)+_0x39a968(0x321,_0x736083._0x2b46da)+_0x39a968(0x51f,0x34b)+'ST\x201.0//'+'EN\x22\x20\x22htt'+'p://www.'+_0x5662ad(_0x736083._0x2fa9bb,_0x736083._0x4f695e)+'m/DTDs/P'+_0x39a968(0x1f9,0x39e)+_0x5662ad(0x4a2,0x614)+_0x5662ad(_0x736083._0x1cb0b3,_0x736083._0x10b04e)+_0x39a968(0x3f9,0x529)+_0x39a968(_0x736083._0x512822,0x642)+_0x5662ad(0x44e,0x3b9)+_0x5662ad(0x5b3,_0x736083._0x343e0f)+_0x5662ad(_0x736083._0x5ace77,0x479)+'/key>\x0a\x20\x20'+'<string>'+SERVICE_LABEL+(_0x5662ad(0x4b8,_0x736083._0x5e8f74)+_0x5662ad(_0x736083._0x595e7c,0x6ab)+_0x39a968(_0x736083._0xae81eb,0xb4)+_0x5662ad(_0x736083._0x409755,0x188)+_0x5662ad(0x396,_0x736083._0x3c4141)+'\x20\x20<array'+'>\x0a')+_0x54e92e+(_0x5662ad(_0x736083._0x23de87,_0x736083._0x151b6a)+_0x39a968(_0x736083._0x2d3230,_0x736083._0x50a320)+_0x39a968(_0x736083._0xcce416,0x2ea)+_0x5662ad(_0x736083._0x465fc3,0x56c)+_0x39a968(_0x736083._0x3e66f3,0x323)+_0x39a968(0x1e9,0x3ef)+_0x5662ad(0x310,0x297)+_0x39a968(_0x736083._0x2f5eea,_0x736083._0x3a61a9)+'ey>\x0a\x20\x20<t'+'rue/>\x0a\x20\x20'+_0x39a968(_0x736083._0x57c0bb,0x2dd)+'ndardOut'+'Path</ke'+_0x5662ad(_0x736083._0x592c16,0x734)+_0x5662ad(0x36e,_0x736083._0x1a1f3e))+_0x384427[_0x39a968(_0x736083._0x24f04f,-0x47)](escapeXml,_0x7eda19)+(_0x5662ad(0x4b8,_0x736083._0x255661)+_0x39a968(_0x736083._0x4b3235,0x41f)+_0x5662ad(_0x736083._0x5aa6c4,0x22e)+_0x39a968(_0x736083._0x1d2aaf,0x310)+_0x5662ad(_0x736083._0x5791ca,0x604)+'\x0a\x20\x20<stri'+_0x5662ad(0x514,0x43d))+escapeXml(_0x5cf101)+('</string'+'>\x0a</dict'+'>\x0a</plis'+_0x5662ad(0x548,0x536));}function _0x2e58(_0x17e9c1,_0x4850cb){_0x17e9c1=_0x17e9c1-0x9c;const _0x164967=_0x39fb();let _0x5b6c10=_0x164967[_0x17e9c1];if(_0x2e58['iFHFNB']===undefined){var _0x2f63a8=function(_0x579bd){const _0xcca1de='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x30e3f1='',_0xab6a8e='',_0x3444d9=_0x30e3f1+_0x2f63a8;for(let _0x256910=0x0,_0x405f69,_0x5f0498,_0x25dff1=0x0;_0x5f0498=_0x579bd['charAt'](_0x25dff1++);~_0x5f0498&&(_0x405f69=_0x256910%0x4?_0x405f69*0x40+_0x5f0498:_0x5f0498,_0x256910++%0x4)?_0x30e3f1+=_0x3444d9['charCodeAt'](_0x25dff1+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x405f69>>(-0x2*_0x256910&0x6)):_0x256910:0x0){_0x5f0498=_0xcca1de['indexOf'](_0x5f0498);}for(let _0x42f194=0x0,_0x5cbdcf=_0x30e3f1['length'];_0x42f194<_0x5cbdcf;_0x42f194++){_0xab6a8e+='%'+('00'+_0x30e3f1['charCodeAt'](_0x42f194)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xab6a8e);};_0x2e58['DtgYMl']=_0x2f63a8,_0x2e58['iLoHoW']={},_0x2e58['iFHFNB']=!![];}const _0x39fb8a=_0x164967[0x0],_0x2e58e1=_0x17e9c1+_0x39fb8a,_0x66a424=_0x2e58['iLoHoW'][_0x2e58e1];if(!_0x66a424){const _0x3b7e7d=function(_0x77fdae){this['qkFRGi']=_0x77fdae,this['fNEnHV']=[0x1,0x0,0x0],this['cCryDv']=function(){return'newState';},this['PMtqvh']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['KUeXxY']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x3b7e7d['prototype']['auYvHY']=function(){const _0x3019f9=new RegExp(this['PMtqvh']+this['KUeXxY']),_0x23fbf0=_0x3019f9['test'](this['cCryDv']['toString']())?--this['fNEnHV'][0x1]:--this['fNEnHV'][0x0];return this['BYrilr'](_0x23fbf0);},_0x3b7e7d['prototype']['BYrilr']=function(_0x5e3a68){if(!Boolean(~_0x5e3a68))return _0x5e3a68;return this['RnSxYw'](this['qkFRGi']);},_0x3b7e7d['prototype']['RnSxYw']=function(_0x2522e9){for(let _0x26c70d=0x0,_0x2a8847=this['fNEnHV']['length'];_0x26c70d<_0x2a8847;_0x26c70d++){this['fNEnHV']['push'](Math['round'](Math['random']())),_0x2a8847=this['fNEnHV']['length'];}return _0x2522e9(this['fNEnHV'][0x0]);},new _0x3b7e7d(_0x2e58)['auYvHY'](),_0x5b6c10=_0x2e58['DtgYMl'](_0x5b6c10),_0x2e58['iLoHoW'][_0x2e58e1]=_0x5b6c10;}else _0x5b6c10=_0x66a424;return _0x5b6c10;}function buildLinuxSystemdUnit(_0x2f6ce8,_0x2e65a5,_0x50a29f){const _0x4ccda1={_0x3f57c1:0x46b,_0x39a0a1:0x4f2,_0x462cf2:0x55,_0x17dfb4:0x3b3,_0x2fb016:0x2d1,_0x4b01ac:0x253,_0x23bb1e:0x8e,_0x53d281:0x3,_0x1573e6:0x17e,_0x346398:0x24b,_0xd1ed0d:0x408,_0x4a5eec:0x3d5,_0x4af744:0x2bd,_0x224051:0x2ee,_0x3339c7:0x580,_0xa97b65:0x4c4,_0x509ce1:0x19,_0x1b2fa6:0x1d2,_0x162853:0x158,_0x18ecbf:0x3df,_0xce6f34:0x39e,_0x38ade5:0x2d3,_0x2de5da:0x35a,_0x2777db:0x3c8,_0x341cba:0x25b,_0x2b5539:0x1ad,_0x1c8110:0x293,_0x3032a1:0x113,_0x104030:0x235,_0x3b9417:0x90},_0x47c04a={_0x2634b0:0x289},_0x12209a={_0x50bcb1:0x73},_0x2a9241={'Dulrd':function(_0x2c3374,_0x5ece9d){return _0x2c3374(_0x5ece9d);}};function _0x365b2e(_0x3a3cc6,_0x217512){return _0x11b7ab(_0x3a3cc6,_0x217512-_0x12209a._0x50bcb1);}function _0x5dd657(_0x584554,_0x4eb6e5){return _0x11b7ab(_0x4eb6e5,_0x584554-_0x47c04a._0x2634b0);}const _0x4fa764=_0x2f6ce8[_0x5dd657(_0x4ccda1._0x3f57c1,_0x4ccda1._0x39a0a1)](escapeSystemdArg)[_0x365b2e(0x239,_0x4ccda1._0x462cf2)]('\x20');return'[Unit]\x0aD'+'escripti'+'on=Clawk'+'et\x20Bridg'+'e\x20CLI\x0aAf'+_0x365b2e(_0x4ccda1._0x17dfb4,_0x4ccda1._0x2fb016)+_0x5dd657(_0x4ccda1._0x4b01ac,0x28c)+_0x365b2e(-_0x4ccda1._0x23bb1e,0x158)+_0x365b2e(-_0x4ccda1._0x53d281,_0x4ccda1._0x1573e6)+_0x5dd657(_0x4ccda1._0x346398,0x362)+_0x365b2e(_0x4ccda1._0xd1ed0d,0x318)+_0x365b2e(0xf9,0x2fc)+_0x365b2e(_0x4ccda1._0x4a5eec,_0x4ccda1._0x4af744)+_0x5dd657(_0x4ccda1._0x224051,0x175)+_0x5dd657(_0x4ccda1._0x3339c7,0x50b)+_0x5dd657(0x515,_0x4ccda1._0xa97b65)+_0x4fa764+(_0x365b2e(_0x4ccda1._0x509ce1,_0x4ccda1._0x1b2fa6)+'=always\x0a'+_0x5dd657(0x21f,_0x4ccda1._0x162853)+_0x5dd657(0x31b,0x4d9)+_0x365b2e(_0x4ccda1._0x18ecbf,0x322)+'ctory=')+_0x2a9241[_0x365b2e(_0x4ccda1._0xce6f34,_0x4ccda1._0x38ade5)](escapeSystemdArg,SERVICE_DIR)+('\x0aStandar'+'dOutput='+_0x365b2e(0x319,0x196))+_0x2e65a5+(_0x5dd657(_0x4ccda1._0x2de5da,_0x4ccda1._0x2777db)+_0x365b2e(0x34a,0x233)+_0x5dd657(_0x4ccda1._0x341cba,_0x4ccda1._0x2b5539))+_0x50a29f+(_0x365b2e(_0x4ccda1._0x1c8110,_0x4ccda1._0x3032a1)+_0x5dd657(0x486,0x611)+_0x365b2e(-_0x4ccda1._0x104030,-_0x4ccda1._0x3b9417)+'ault.tar'+'get\x0a');}function getServicePath(){const _0x5eedb3={_0x3aa8da:0x536,_0x2641ea:0x28,_0x543a05:0xf6,_0x3d6559:0xb8,_0x442e4a:0xb9,_0x4b9956:0x33d,_0x402e0b:0x2ee,_0x1b43f6:0x62c,_0x5e1f44:0x5da},_0x3eb702={_0x5ca329:0x3e};function _0x3c9ff4(_0x3a4de1,_0x4b76be){return _0x11b7ab(_0x4b76be,_0x3a4de1-0x3db);}function _0x2f6780(_0x8ec2c8,_0x22774e){return _0x11b7ab(_0x22774e,_0x8ec2c8- -_0x3eb702._0x5ca329);}switch(process[_0x2f6780(-0x23,-0xe3)]){case _0x3c9ff4(_0x5eedb3._0x3aa8da,0x710):return MACOS_PLIST_PATH;case _0x2f6780(_0x5eedb3._0x2641ea,_0x5eedb3._0x543a05):return LINUX_SERVICE_PATH;case _0x3c9ff4(0x2dd,0x4b6):return _0x2f6780(-_0x5eedb3._0x3d6559,_0x5eedb3._0x442e4a)+_0x2f6780(0x40,0x97)+'crosoft\x5c'+_0x3c9ff4(_0x5eedb3._0x4b9956,0x1b6)+_0x3c9ff4(_0x5eedb3._0x402e0b,0x1c8)+_0x3c9ff4(_0x5eedb3._0x1b43f6,0x781)+'un\x5cClawk'+_0x3c9ff4(0x3ed,_0x5eedb3._0x5e1f44)+'Cli';default:return'';}}function detectServiceMethod(){const _0xe4b1fd={_0x1c69c3:0x61,_0xeb8056:0x634,_0x66f27b:0x65,_0x863ef2:0x210,_0xffbf0a:0x1ae,_0x42211e:0x459,_0x21e4b3:0xd7,_0x5bc917:0x597,_0xef481b:0x744,_0x5e2425:0x2cf,_0x17dde4:0x3e3},_0x401b12={_0x36fe80:0x43e},_0x462e80={_0x53cdf4:0x1d1};function _0xc69389(_0x146299,_0x47a038){return _0x11b7ab(_0x47a038,_0x146299- -_0x462e80._0x53cdf4);}function _0x4c8f88(_0x46827e,_0x5e24ec){return _0x11b7ab(_0x46827e,_0x5e24ec-_0x401b12._0x36fe80);}const _0x2f4d68={};_0x2f4d68['DEdeo']='darwin',_0x2f4d68['kqEMl']='launchag'+_0xc69389(-_0xe4b1fd._0x1c69c3,-0x16c),_0x2f4d68['GPVMi']=_0x4c8f88(_0xe4b1fd._0xeb8056,0x4a4),_0x2f4d68[_0xc69389(_0xe4b1fd._0x66f27b,_0xe4b1fd._0x863ef2)]=_0xc69389(0x130,_0xe4b1fd._0xffbf0a)+'user';const _0xae0151=_0x2f4d68;switch(process[_0x4c8f88(0x346,_0xe4b1fd._0x42211e)]){case _0xae0151[_0xc69389(-0x94,-0x26f)]:return _0xae0151[_0xc69389(-0xc5,-_0xe4b1fd._0x21e4b3)];case _0xae0151[_0x4c8f88(_0xe4b1fd._0x5bc917,_0xe4b1fd._0xef481b)]:return _0xae0151[_0x4c8f88(0x48d,0x674)];case _0xc69389(-_0xe4b1fd._0x5e2425,-0x242):return _0x4c8f88(0x3d6,0x4d5)+'run-regi'+'stry';default:return _0x4c8f88(_0xe4b1fd._0x17dde4,0x574)+_0x4c8f88(0x477,0x631);}}function readServiceState(){const _0x4891af={_0x248e33:0xd7,_0x498a43:0x80,_0x15792d:0x1b1,_0x10b62c:0x18b,_0x3016e6:0x7c,_0x999941:0x1d3,_0x2773a9:0x48,_0x1aed35:0x21d,_0x125113:0xdd,_0x484a98:0x2b1},_0x473735={_0x4df946:0x14f};function _0x3bfa8f(_0x3ff822,_0x169bb5){return _0x11b7ab(_0x3ff822,_0x169bb5- -0x198);}const _0x10ab97={};function _0x1be75a(_0x21837b,_0x33da2a){return _0x11b7ab(_0x21837b,_0x33da2a-_0x473735._0x4df946);}_0x10ab97[_0x3bfa8f(_0x4891af._0x248e33,-0x7c)]=_0x3bfa8f(-0x75,-_0x4891af._0x498a43);const _0x5aafb2=_0x10ab97;if(!_0x44150d(SERVICE_STATE_PATH))return null;try{const _0x4475c1=JSON[_0x1be75a(0x25a,_0x4891af._0x15792d)](_0x34a7a2(SERVICE_STATE_PATH,_0x5aafb2[_0x3bfa8f(_0x4891af._0x10b62c,-_0x4891af._0x3016e6)]));if(!_0x4475c1[_0x1be75a(-0x11a,0x48)]||typeof _0x4475c1['pid']!==_0x3bfa8f(_0x4891af._0x999941,0x43))return null;return{'pid':_0x4475c1[_0x1be75a(0x5a,_0x4891af._0x2773a9)],'startedAt':_0x4475c1[_0x1be75a(0x1f7,_0x4891af._0x1aed35)+'t']??new Date(0x0)[_0x1be75a(_0x4891af._0x125113,_0x4891af._0x484a98)+'ing']()};}catch{return null;}}function stopRunningProcess(){const _0x5a8846={_0x30d6be:0x30e,_0x363350:0x19f,_0x4874de:0x337,_0x240927:0x43f,_0x1e3e24:0x50d,_0x191678:0x719,_0x5e4de1:0x5b5,_0x241a09:0x1d2,_0x18ef03:0x253},_0x56a399={_0x2e8939:0x44e};function _0x55dac1(_0x22c2ca,_0x28c9db){return _0x6eb3(_0x22c2ca,_0x28c9db-_0x56a399._0x2e8939);}const _0x68c5e3={'bUVpb':function(_0x355434,_0x5adaf0,_0x1fb388){return _0x355434(_0x5adaf0,_0x1fb388);},'IaAsW':'taskkill','nxMJf':_0x55dac1(0x2e0,0x30e)},_0x3d66a5=readServiceState();if(!_0x3d66a5)return;function _0x6eafbf(_0x171e53,_0x4f59de){return _0x6eb3(_0x171e53,_0x4f59de-0x39c);}_0x68c5e3[_0x55dac1(0x535,0x3a4)](execIgnoreFailure,process['platform']===_0x55dac1(0x2b8,_0x5a8846._0x30d6be)?_0x68c5e3[_0x6eafbf(_0x5a8846._0x363350,_0x5a8846._0x4874de)]:'kill',process['platform']===_0x68c5e3[_0x6eafbf(_0x5a8846._0x240927,_0x5a8846._0x1e3e24)]?[_0x55dac1(_0x5a8846._0x191678,_0x5a8846._0x5e4de1),String(_0x3d66a5[_0x6eafbf(_0x5a8846._0x241a09,_0x5a8846._0x18ef03)]),'/T','/F']:[_0x6eafbf(0x365,0x372),String(_0x3d66a5['pid'])]),clearServiceState(_0x3d66a5['pid']);}function isPidRunning(_0xd78c9d){const _0xf3c5df={_0x5f5020:0x549},_0x246e2d={_0x5c3163:0x2d1};function _0x5aa656(_0x26300b,_0x5be34d){return _0x11b7ab(_0x5be34d,_0x26300b-_0x246e2d._0x5c3163);}try{return process[_0x5aa656(_0xf3c5df._0x5f5020,0x6bf)](_0xd78c9d,0x0),!![];}catch{return![];}}function startDetachedWindowsService(_0x43ff83){const _0x1ecf78={_0x13b323:0x1d1,_0x4f5180:0x6de,_0x234ca4:0x2c1,_0xb1ba06:0x3f6,_0x324bf5:0x414,_0x2de1f8:0x2cf},_0x48ca23={_0xe3b870:0x3fa};function _0x272d77(_0x1a2767,_0x6e6c39){return _0x11b7ab(_0x1a2767,_0x6e6c39-0x25f);}const _0x509afb={'rgTEY':function(_0x13f297,_0x3e4901,_0x25baf1){return _0x13f297(_0x3e4901,_0x25baf1);}};function _0x3d1ef0(_0x18eb3e,_0x5f5dab){return _0x11b7ab(_0x18eb3e,_0x5f5dab-_0x48ca23._0xe3b870);}const _0x5b9edf=_0x509afb[_0x272d77(_0x1ecf78._0x13b323,0x1f2)](openSync,SERVICE_LOG_PATH,'a'),_0x2a86ea=openSync(SERVICE_ERROR_LOG_PATH,'a');try{const [_0x34ea40,..._0x2e71d0]=_0x43ff83,_0x5930c4={};_0x5930c4[_0x3d1ef0(_0x1ecf78._0x4f5180,0x6db)]=!![],_0x5930c4[_0x3d1ef0(_0x1ecf78._0x234ca4,0x485)]=['ignore',_0x5b9edf,_0x2a86ea],_0x5930c4[_0x272d77(_0x1ecf78._0xb1ba06,0x3fc)+_0x3d1ef0(_0x1ecf78._0x324bf5,0x4ec)]=!![];const _0x496bf4=spawn(_0x34ea40,_0x2e71d0,_0x5930c4);_0x496bf4[_0x272d77(0x1ca,_0x1ecf78._0x2de1f8)]();}finally{closeSync(_0x5b9edf),closeSync(_0x2a86ea);}}function resolveScriptPath(_0x38b82c){const _0x3f2601={_0x19c8cd:0x430,_0x300e45:0x2b3,_0x45e9b4:0x2c4,_0x3ea227:0x2b4,_0x412728:0xcd,_0x469262:0x2b3},_0x4e168a={_0x39275e:0x1b4},_0x24c8e5={'TbioE':function(_0xaf0f14,_0x5b25a2){return _0xaf0f14(_0x5b25a2);}},_0x287860=_0x38b82c?.[_0x429eab(_0x3f2601._0x19c8cd,_0x3f2601._0x300e45)]()||process[_0x9ede16(_0x3f2601._0x45e9b4,_0x3f2601._0x3ea227)][0x1]?.[_0x429eab(_0x3f2601._0x412728,_0x3f2601._0x469262)]()||'';function _0x9ede16(_0x115476,_0x29f3a7){return _0x11b7ab(_0x29f3a7,_0x115476-0x292);}if(!_0x287860)return'';function _0x429eab(_0x5189ca,_0x402c0c){return _0x11b7ab(_0x5189ca,_0x402c0c-_0x4e168a._0x39275e);}try{return _0x24c8e5[_0x429eab(0x297,0xd5)](realpathSync,_0x287860);}catch{return _0x287860;}}function ensureLaunchScriptExecutable(_0x3158bf,_0x5d8da2){const _0x139568={_0x4e3de9:0x37b};if(_0x5d8da2===_0x4cd786(_0x139568._0x4e3de9,0x2f8)||!_0x44150d(_0x3158bf))return;function _0x4cd786(_0x452620,_0x5d5f83){return _0x11b7ab(_0x452620,_0x5d5f83-0x3f6);}try{chmodSync(_0x3158bf,0x1ed);}catch{}}function writeServiceLauncher(_0x104059){const _0xedb5fc={_0x515e39:0x11a,_0x52893f:0x1b0,_0x585d2d:0x67,_0x7aa85c:0xb0,_0x4397c2:0x255,_0x1b2e34:0x92,_0xd21cc5:0x2e3,_0x27401c:0x303,_0x20ef16:0x10d,_0x437c1b:0x268,_0x313ced:0x1e5,_0x3c7f70:0x10f,_0x539b7d:0x31d,_0x101827:0x21f,_0x9491ab:0x33b,_0x3512e1:0x2f5,_0x5e1021:0xad,_0x229586:0x160,_0x22e5cc:0x209,_0x34281c:0x2f6,_0x270ffd:0x138,_0x4864d2:0xc7,_0x3bdfed:0x2eb,_0x15a050:0x22c,_0x223c52:0xf9,_0x327860:0x183,_0x31be9a:0x13e,_0x19c743:0x32a,_0x5942cb:0x2ec},_0x1ba7fa={_0x2480a6:0x17f},_0x3bb588={'SOwnB':function(_0x5a4f1e,_0x5756bf){return _0x5a4f1e(_0x5756bf);},'uzVcP':'\x20\x20exec\x20\x22'+_0x13f8c5(-_0xedb5fc._0x515e39,-_0xedb5fc._0x52893f)+'TH\x22\x20\x22$SC'+'RIPT_PAT'+_0x13f8c5(-0x6f,0x117)+'-service','CQqfI':function(_0x2d1dcc,_0x4e11fb,_0x3b2f20,_0x420671){return _0x2d1dcc(_0x4e11fb,_0x3b2f20,_0x420671);},'hWSQn':_0x13f8c5(0x133,-_0xedb5fc._0x585d2d)};ensureServiceDirs();function _0x32b1f5(_0x532a51,_0x905781){return _0x11b7ab(_0x532a51,_0x905781-0x4e);}const _0x4a34cc=[_0x13f8c5(0x1ea,0x168)+'h',_0x13f8c5(-0x10d,-_0xedb5fc._0x7aa85c)+_0x32b1f5(0x243,_0xedb5fc._0x4397c2)+escapeShellDoubleQuoted(_0x104059[_0x13f8c5(-_0xedb5fc._0x1b2e34,-0x224)])+'\x22',_0x13f8c5(-0x3a,-0x181)+'H=\x22'+escapeShellDoubleQuoted(_0x104059[_0x13f8c5(-_0xedb5fc._0xd21cc5,-0x1f2)])+'\x22',_0x32b1f5(0x1af,0x19f)+_0x13f8c5(0x28,0x88)+_0x3bb588[_0x13f8c5(-_0xedb5fc._0x27401c,-_0xedb5fc._0x20ef16)](escapeShellDoubleQuoted,_0x104059[_0x13f8c5(-_0xedb5fc._0x437c1b,-_0xedb5fc._0x313ced)+'th'])+'\x22',_0x13f8c5(0x4d,_0xedb5fc._0x3c7f70)+_0x32b1f5(0x3aa,_0xedb5fc._0x539b7d)+_0x32b1f5(_0xedb5fc._0x101827,0x2d3)+_0x32b1f5(0x151,_0xedb5fc._0x9491ab),_0x3bb588[_0x32b1f5(-0x151,-0xd)],'fi',_0x32b1f5(0x3ad,_0xedb5fc._0x3512e1)+_0x13f8c5(0xba,_0xedb5fc._0x5e1021)+_0x32b1f5(_0xedb5fc._0x229586,_0xedb5fc._0x22e5cc)+_0x13f8c5(0x100,-0x89)+_0x32b1f5(_0xedb5fc._0x34281c,0x328),_0x32b1f5(0x433,0x26f)+_0x13f8c5(-_0xedb5fc._0x270ffd,-0x2d)+'RIPT_PAT'+_0x32b1f5(0x377,0x2e4)+_0x32b1f5(0x134,0x222),'fi',_0x13f8c5(0xfb,-0x47)+_0x32b1f5(-0xe4,_0xedb5fc._0x4864d2)+_0x32b1f5(_0xedb5fc._0x3bdfed,0x24e)+'ound\x20for'+_0x13f8c5(0x1ce,0x26)+_0x13f8c5(-0x3c5,-_0xedb5fc._0x15a050)+'service\x22'+_0x13f8c5(-_0xedb5fc._0x223c52,-0x1b7),_0x13f8c5(-0x254,-_0xedb5fc._0x327860),''];_0x3bb588[_0x32b1f5(-_0xedb5fc._0x31be9a,0x7f)](_0x301ed4,SERVICE_LAUNCHER_PATH,_0x4a34cc[_0x13f8c5(-0x16f,-0x19d)]('\x0a'),_0x3bb588[_0x32b1f5(_0xedb5fc._0x19c743,_0xedb5fc._0x5942cb)]);function _0x13f8c5(_0x5b50ce,_0x471c69){return _0x11b7ab(_0x5b50ce,_0x471c69- -_0x1ba7fa._0x2480a6);}return SERVICE_LAUNCHER_PATH;}function escapeShellDoubleQuoted(_0x41c622){const _0x3974c8={_0x422f9d:0x84a,_0x426ef5:0x95d,_0xe3c771:0x302,_0x32dda2:0x3a5};function _0x4556fc(_0x4c8200,_0x1f8501){return _0x6eb3(_0x1f8501,_0x4c8200-0x5be);}function _0x35ce91(_0x2a0257,_0x385e86){return _0x6eb3(_0x2a0257,_0x385e86-0x119);}return _0x41c622[_0x4556fc(_0x3974c8._0x422f9d,_0x3974c8._0x426ef5)+'ll']('\x5c','\x5c\x5c')['replaceA'+'ll']('\x22','\x5c\x22')['replaceA'+'ll']('$','\x5c$')[_0x35ce91(_0x3974c8._0xe3c771,_0x3974c8._0x32dda2)+'ll']('`','\x5c`');}function buildWindowsRunCommand(_0x496f20){const _0x42fe31={_0x1a0167:0x29e},_0xdc4bf3={_0x33ebbc:0x1da};function _0x5006fb(_0x5aa5ae,_0x4b6b81){return _0x6eb3(_0x4b6b81,_0x5aa5ae-0xff);}function _0x4aa1ff(_0x5bcb7b,_0x2e32e3){return _0x6eb3(_0x2e32e3,_0x5bcb7b- -_0xdc4bf3._0x33ebbc);}return _0x496f20[_0x4aa1ff(-0x3a,0x1cd)](escapeWindowsArg)[_0x4aa1ff(-0x23a,-_0x42fe31._0x1a0167)]('\x20');}function ensureServiceDirs(){const _0x1765bb={_0x1c1d67:0xc,_0x2cb74a:0x181},_0x10be29={_0x45fa8f:0x191};function _0x3dd277(_0x64bc6c,_0x2417db){return _0x11b7ab(_0x2417db,_0x64bc6c-0x38d);}function _0x48c8af(_0x4ea94f,_0x4a83c2){return _0x11b7ab(_0x4a83c2,_0x4ea94f-_0x10be29._0x45fa8f);}const _0x4ec890={'nOGby':function(_0x522b1d,_0x272538,_0x7aefa1){return _0x522b1d(_0x272538,_0x7aefa1);},'Nzvte':function(_0x2c2bbc,_0x24298c,_0x4b45ba){return _0x2c2bbc(_0x24298c,_0x4b45ba);}},_0x2d2a5d={};_0x2d2a5d[_0x48c8af(0x15c,_0x1765bb._0x1c1d67)+'e']=!![],_0x4ec890['nOGby'](_0x40ab56,SERVICE_DIR,_0x2d2a5d);const _0x41cb42={};_0x41cb42[_0x3dd277(0x358,_0x1765bb._0x2cb74a)+'e']=!![],_0x4ec890['Nzvte'](_0x40ab56,LOG_DIR,_0x41cb42);}function escapeXml(_0x54b889){const _0x1f2a7e={_0x5905d7:0x719,_0x5ed50c:0x5b1,_0x1bf4a6:0x648,_0x4c1cc0:0x4d3,_0x4c7273:0x485,_0x3e2b17:0x2ac,_0x2d1a9e:0x719,_0x307d72:0x5a1,_0x22da4b:0x4be,_0x443fc8:0x4d7},_0x41b34c={_0x23aa47:0x48d},_0x4de88c={_0x2e33a9:0x330};function _0x42ef87(_0x5c02a8,_0x14e7cd){return _0x6eb3(_0x5c02a8,_0x14e7cd-_0x4de88c._0x2e33a9);}function _0x3f7b05(_0xfe6614,_0x4e5bbe){return _0x6eb3(_0x4e5bbe,_0xfe6614-_0x41b34c._0x23aa47);}return _0x54b889[_0x3f7b05(_0x1f2a7e._0x5905d7,0x666)+'ll']('&',_0x3f7b05(0x705,_0x1f2a7e._0x5ed50c))[_0x3f7b05(_0x1f2a7e._0x5905d7,_0x1f2a7e._0x1bf4a6)+'ll']('<',_0x42ef87(0x6cd,_0x1f2a7e._0x4c1cc0))[_0x3f7b05(0x719,0x81e)+'ll']('>',_0x3f7b05(_0x1f2a7e._0x4c7273,_0x1f2a7e._0x3e2b17))[_0x3f7b05(_0x1f2a7e._0x2d1a9e,_0x1f2a7e._0x307d72)+'ll']('\x22',_0x42ef87(_0x1f2a7e._0x22da4b,_0x1f2a7e._0x443fc8))['replaceA'+'ll']('\x27','&apos;');}function escapeSystemdArg(_0x4cc364){const _0x1635f1={_0x4ddaa4:0x437},_0x31e6ea={_0x22928f:0x169},_0x2615c5={_0x5d882b:0x160};function _0x2d4221(_0xe7cb49,_0x5a07ce){return _0x11b7ab(_0xe7cb49,_0x5a07ce-_0x2615c5._0x5d882b);}function _0x27bce8(_0x80d077,_0xaf36d3){return _0x11b7ab(_0x80d077,_0xaf36d3-_0x31e6ea._0x22928f);}return'\x22'+_0x4cc364[_0x27bce8(0x5fb,_0x1635f1._0x4ddaa4)+'ll']('\x5c','\x5c\x5c')[_0x27bce8(0x4c1,0x437)+'ll']('\x22','\x5c\x22')+'\x22';}function escapeWindowsArg(_0x3b87ed){const _0xf52b72={_0x2e3b75:0x677,_0x23d17b:0x5f8};function _0x24c4d0(_0x48b07f,_0x27c87c){return _0x6eb3(_0x27c87c,_0x48b07f-0x3eb);}return'\x22'+_0x3b87ed[_0x24c4d0(_0xf52b72._0x2e3b75,_0xf52b72._0x23d17b)+'ll']('\x22','\x5c\x22')+'\x22';}function commandSucceeds(_0x2d4699,_0x384b93){const _0x25983b={_0x578f05:0x5a0,_0xc1ace3:0x93},_0x2f4915={_0x4e556c:0x7f};function _0x2d2aef(_0x5e1396,_0x22bb81){return _0x6eb3(_0x5e1396,_0x22bb81- -_0x2f4915._0x4e556c);}function _0x452fb8(_0x3d2643,_0x2154b2){return _0x6eb3(_0x2154b2,_0x3d2643-0x557);}try{const _0x593dd4={};return _0x593dd4[_0x452fb8(_0x25983b._0x578f05,0x776)]=_0x2d2aef(-0x2f,_0x25983b._0xc1ace3),execFileSync(_0x2d4699,_0x384b93,_0x593dd4),!![];}catch{return![];}}function execIgnoreFailure(_0xf84df6,_0x431cb7){const _0x3854e9={_0x1fa451:0x42d,_0x1138ab:0x312,_0x52522f:0x68b,_0x7390d3:0x5ce,_0x7b3768:0x3a3},_0x49b802={_0x355d6a:0x47a},_0x29ca07={_0x4b3df6:0x287},_0x2f9092={'TwwhH':function(_0xc6b39e,_0x230b24,_0xc5d667,_0x28f71e){return _0xc6b39e(_0x230b24,_0xc5d667,_0x28f71e);}};function _0x2406aa(_0x1afb8c,_0x4d40fa){return _0x11b7ab(_0x1afb8c,_0x4d40fa-_0x29ca07._0x4b3df6);}function _0x1def73(_0x413cbc,_0x1d09d2){return _0x11b7ab(_0x413cbc,_0x1d09d2-_0x49b802._0x355d6a);}try{const _0x4f069e={};_0x4f069e[_0x2406aa(_0x3854e9._0x1fa451,_0x3854e9._0x1138ab)]=_0x1def73(_0x3854e9._0x52522f,_0x3854e9._0x7390d3),_0x2f9092[_0x1def73(_0x3854e9._0x7b3768,0x40c)](execFileSync,_0xf84df6,_0x431cb7,_0x4f069e);}catch{}}function rmIfExists(_0x217272){const _0x124c67={_0x3fd7e8:0x3ff},_0x40e1d6={_0x4dff81:0x1ad},_0x414be0={_0x291af3:0x296},_0x39371f={'TtsVL':function(_0x728899,_0x5ed134){return _0x728899(_0x5ed134);}};if(!_0x39371f[_0x1d2636(0x28b,0x1b3)](_0x44150d,_0x217272))return;const _0x465d61={};_0x465d61[_0x7783d3(0x461,_0x124c67._0x3fd7e8)]=!![];function _0x7783d3(_0x590644,_0x722185){return _0x6eb3(_0x722185,_0x590644-_0x414be0._0x291af3);}function _0x1d2636(_0x5bfc6a,_0x28d3f2){return _0x6eb3(_0x5bfc6a,_0x28d3f2-_0x40e1d6._0x4dff81);}_0x40020e(_0x217272,_0x465d61);}import{existsSync as _0x4f9909,readFileSync as _0x5a0f2d}from'fs';import{homedir as _0x3e0b2d}from'os';function _0x6eb3(_0x3c2196,_0x3c5623){return _0x2e58(_0x3c5623- -0x1e8,_0x3c2196);}import{join as _0x44be4d}from'path';var DEFAULT_GATEWAY_URL='ws://127'+_0x6eb3(0xb0,0x1f9)+_0x11b7ab(-0x6e,0x43),OPENCLAW_DIR=_0x44be4d(_0x3e0b2d(),_0x6eb3(0x1f6,0x271)+'w'),OPENCLAW_CONFIG_PATH2=_0x44be4d(OPENCLAW_DIR,_0x6eb3(-0x3e,0x13b)+'.json'),OPENCLAW_MEDIA_DIR=_0x44be4d(OPENCLAW_DIR,_0x11b7ab(-0x17a,-0x97));function resolveGatewayUrl(_0x4a9124){const _0xd2e49c={_0x257918:0x659,_0xca1953:0x61b,_0x4cc334:0x494,_0x1b584c:0x152,_0x593a59:0x72,_0xb4eb64:0x6aa,_0x4419aa:0x5da,_0x41b825:0x547,_0x4a48bf:0x5bd},_0x342f91={_0x490d4d:0x1b1},_0x18614d={_0x327579:0x55e},_0x43417f={'dwxKJ':function(_0x3f4fcb){return _0x3f4fcb();},'YSqQz':_0x36179e(0x723,0x6f7)},_0x88f982=_0x4a9124?.[_0x36179e(_0xd2e49c._0x257918,_0xd2e49c._0xca1953)]();function _0x36179e(_0x40836b,_0x3553a1){return _0x6eb3(_0x40836b,_0x3553a1-_0x18614d._0x327579);}function _0x24672a(_0x280b5c,_0x9ebb68){return _0x6eb3(_0x9ebb68,_0x280b5c- -_0x342f91._0x490d4d);}if(_0x88f982)return _0x88f982;const _0x42bd48=_0x43417f[_0x36179e(0x6a5,0x4d4)](readOpenClawInfo);if(typeof _0x42bd48[_0x36179e(0x338,_0xd2e49c._0x4cc334)+_0x24672a(-_0xd2e49c._0x1b584c,_0xd2e49c._0x593a59)]===_0x43417f[_0x36179e(_0xd2e49c._0xb4eb64,_0xd2e49c._0x4419aa)])return'ws://127'+'.0.0.1:'+_0x42bd48[_0x36179e(_0xd2e49c._0x41b825,_0xd2e49c._0x4cc334)+_0x36179e(0x703,_0xd2e49c._0x4a48bf)];return DEFAULT_GATEWAY_URL;}function readOpenClawInfo(){const _0x1006b8={_0x54bb48:0x3da,_0xac916:0x384,_0x5b148b:0x3ee,_0x4bd59b:0x4a4,_0x1d7e40:0x3c8,_0x5ea99e:0x19f,_0x18d328:0x9e,_0x2da72f:0x7b,_0x4773a5:0x363,_0x3b9a7e:0x2aa,_0x560b0e:0x667,_0x1ccc5f:0x3ce,_0x19168c:0x310,_0x506e21:0x173,_0x172683:0x86,_0x3dc4f4:0x46e,_0x488045:0x63a,_0x392e07:0x2bb,_0x3607dc:0x288},_0x59d82a={_0x2fe104:0x3ce},_0x4b6059={_0x502111:0x173};function _0x26e84e(_0x1d094b,_0x48551e){return _0x6eb3(_0x1d094b,_0x48551e- -_0x4b6059._0x502111);}const _0x4a4fcf={'QNsod':function(_0x4fd5cf,_0x569f6e){return _0x4fd5cf(_0x569f6e);},'WaNNi':function(_0x1743f1){return _0x1743f1();},'ZjNLB':'number','TzvNw':function(_0x391561,_0x226c08){return _0x391561===_0x226c08;},'MmnEP':function(_0x3d3d41){return _0x3d3d41();}};function _0x139dff(_0x28cff4,_0x252fd8){return _0x6eb3(_0x252fd8,_0x28cff4-_0x59d82a._0x2fe104);}if(!_0x4a4fcf['QNsod'](_0x4f9909,OPENCLAW_CONFIG_PATH2))return{'configFound':![],'gatewayPort':null,'authMode':null,'token':_0x4a4fcf[_0x139dff(_0x1006b8._0x54bb48,_0x1006b8._0xac916)](readGatewayTokenEnv),'password':readGatewayPasswordEnv()};try{const _0x3e9a95=JSON[_0x139dff(_0x1006b8._0x5b148b,0x247)](_0x5a0f2d(OPENCLAW_CONFIG_PATH2,_0x139dff(_0x1006b8._0x4bd59b,_0x1006b8._0x1d7e40))),_0x5045f7=_0x3e9a95['gateway']?.[_0x139dff(0x4ed,0x40b)],_0x39f512=typeof _0x5045f7===_0x4a4fcf[_0x26e84e(-0x207,-_0x1006b8._0x5ea99e)]&&Number[_0x26e84e(_0x1006b8._0x18d328,-0x10d)+'r'](_0x5045f7)?_0x5045f7:null,_0x26eb63=_0x3e9a95[_0x26e84e(-0x94,-0x231)]?.['auth']?.['mode']==='token'||_0x4a4fcf[_0x26e84e(_0x1006b8._0x2da72f,0x61)](_0x3e9a95[_0x26e84e(-_0x1006b8._0x4773a5,-0x231)]?.[_0x26e84e(0x3,-0x1e)]?.[_0x26e84e(-0xf8,-_0x1006b8._0x3b9a7e)],'password')?_0x3e9a95['gateway'][_0x139dff(0x523,_0x1006b8._0x560b0e)][_0x26e84e(-_0x1006b8._0x1ccc5f,-_0x1006b8._0x3b9a7e)]:null,_0x7594f3=readConfiguredSecret(_0x3e9a95['gateway']?.['auth']?.['token'])??readGatewayTokenEnv(),_0x5c7667=_0x4a4fcf['QNsod'](readConfiguredSecret,_0x3e9a95[_0x139dff(_0x1006b8._0x19168c,0x114)]?.['auth']?.[_0x26e84e(-_0x1006b8._0x506e21,-_0x1006b8._0x172683)])??readGatewayPasswordEnv(),_0x5374f9={};return _0x5374f9[_0x26e84e(0x31,0x71)+_0x139dff(_0x1006b8._0x3dc4f4,0x48a)]=!![],_0x5374f9['gatewayP'+_0x139dff(0x42d,0x5a9)]=_0x39f512,_0x5374f9['authMode']=_0x26eb63,_0x5374f9['token']=_0x7594f3,_0x5374f9[_0x139dff(0x4bb,_0x1006b8._0x488045)]=_0x5c7667,_0x5374f9;}catch{return{'configFound':!![],'gatewayPort':null,'authMode':null,'token':_0x4a4fcf[_0x139dff(_0x1006b8._0x392e07,_0x1006b8._0x3607dc)](readGatewayTokenEnv),'password':readGatewayPasswordEnv()};}}function resolveGatewayAuth(){const _0x1de5a4={_0x228daa:0x4e1,_0x498823:0x2a4,_0x2dc343:0x303,_0x206564:0x4a2,_0x3f637e:0x2cd,_0x5e1395:0x32e,_0x50439e:0x13b,_0x1965ca:0x472,_0x4200c4:0x5f9,_0xd48794:0x364,_0xfca74e:0x289,_0x363591:0x46d,_0x5c2579:0x2fa,_0x5ec3dd:0x61d,_0x3879fd:0x637,_0x16ec5f:0x1d2,_0x3ce241:0x29d,_0x31d145:0x43a,_0x2b7cdc:0x34a,_0x29f5b4:0x710,_0x129fc7:0x2bf,_0x584bd8:0x20d,_0x426e0f:0x4de,_0xe0a907:0x5e3,_0x1fd01c:0x4af,_0x3e8e64:0x43a,_0x3001fd:0x354,_0xdb6f90:0x408,_0x4bf7f2:0x585,_0x2aa526:0x480,_0x4e9be6:0x488,_0x27b68d:0x2a3,_0x5a2600:0x15b,_0x750d0b:0x43a,_0x58fa6e:0x4bf,_0x3d935d:0x60b,_0x52bd0c:0x162},_0x4b3ec5={_0x1e3313:0x267},_0x268203={'VeocG':function(_0x5dd5e7){return _0x5dd5e7();},'yHFpC':function(_0x16d58e,_0x494b69){return _0x16d58e==_0x494b69;},'mPhZm':_0xcda8f7(_0x1de5a4._0x228daa,0x47f)+'\x20has\x20bot'+_0xcda8f7(_0x1de5a4._0x498823,0x317)+_0xcda8f7(_0x1de5a4._0x2dc343,_0x1de5a4._0x206564)+_0x39ac36(_0x1de5a4._0x3f637e,0x3a0)+_0xcda8f7(_0x1de5a4._0x5e1395,_0x1de5a4._0x50439e)+_0x39ac36(_0x1de5a4._0x1965ca,0x655)+_0x39ac36(_0x1de5a4._0x4200c4,0x58a)+_0xcda8f7(_0x1de5a4._0xd48794,0x274)+_0x39ac36(0x148,_0x1de5a4._0xfca74e)+'s\x20unset.'+_0x39ac36(0x453,0x467)+_0xcda8f7(_0x1de5a4._0x363591,_0x1de5a4._0x5c2579)+'\x20token\x20o'+_0x39ac36(_0x1de5a4._0x5ec3dd,_0x1de5a4._0x3879fd)+_0xcda8f7(_0x1de5a4._0x16ec5f,_0x1de5a4._0x3ce241)+_0x39ac36(0x4ca,0x5af)+'g.','MlcVz':_0x39ac36(0x358,0x4af),'pCufF':'token'};function _0x39ac36(_0x585b1d,_0x23a0f0){return _0x6eb3(_0x585b1d,_0x23a0f0-0x3c2);}const _0x1564f1=_0x268203[_0x39ac36(0x36f,0x39a)](readOpenClawInfo),_0x1fe13d=_0x1564f1[_0xcda8f7(_0x1de5a4._0x31d145,_0x1de5a4._0x2b7cdc)],_0x380e95=_0x1564f1[_0x39ac36(0x360,0x4af)];if(_0x1fe13d&&_0x380e95&&_0x268203['yHFpC'](_0x1564f1['authMode'],null)){const _0x562fd1={};return _0x562fd1[_0x39ac36(_0x1de5a4._0x29f5b4,0x595)]=_0x1fe13d,_0x562fd1[_0x39ac36(_0x1de5a4._0x129fc7,0x4af)]=_0x380e95,_0x562fd1[_0x39ac36(0x43f,0x3f7)]=_0xcda8f7(0x43a,0x394),_0x562fd1['error']=_0x268203[_0xcda8f7(_0x1de5a4._0x584bd8,0x3de)],_0x562fd1;}function _0xcda8f7(_0x57b3e8,_0x3f0d37){return _0x6eb3(_0x3f0d37,_0x57b3e8-_0x4b3ec5._0x1e3313);}if(_0x1564f1[_0x39ac36(_0x1de5a4._0x426e0f,_0x1de5a4._0xe0a907)]===_0x39ac36(0x4b4,_0x1de5a4._0x1fd01c)){const _0x36217e={};return _0x36217e[_0xcda8f7(_0x1de5a4._0x3e8e64,0x602)]=null,_0x36217e[_0xcda8f7(_0x1de5a4._0x3001fd,0x3b6)]=null,_0x36217e[_0x39ac36(_0x1de5a4._0xdb6f90,0x3f7)]=null,_0x380e95?{'token':null,'password':_0x380e95,'label':_0x268203[_0x39ac36(_0x1de5a4._0x4bf7f2,_0x1de5a4._0x2aa526)]}:_0x36217e;}if(_0x1564f1[_0xcda8f7(_0x1de5a4._0x4e9be6,_0x1de5a4._0x27b68d)]===_0x268203[_0xcda8f7(0x188,0x1da)]){const _0x227f05={};return _0x227f05['token']=null,_0x227f05['password']=null,_0x227f05['label']=null,_0x1fe13d?{'token':_0x1fe13d,'password':null,'label':_0x268203[_0xcda8f7(0x188,_0x1de5a4._0x5a2600)]}:_0x227f05;}if(_0x1fe13d){const _0x212e7a={};return _0x212e7a['token']=_0x1fe13d,_0x212e7a[_0x39ac36(0x391,0x4af)]=null,_0x212e7a['label']=_0xcda8f7(_0x1de5a4._0x750d0b,_0x1de5a4._0x58fa6e),_0x212e7a;}if(_0x380e95){const _0x2b7611={};return _0x2b7611[_0xcda8f7(0x43a,0x4fd)]=null,_0x2b7611['password']=_0x380e95,_0x2b7611[_0xcda8f7(0x29c,0x4a0)]='password',_0x2b7611;}const _0x1b6c7b={};return _0x1b6c7b[_0x39ac36(_0x1de5a4._0x3d935d,0x595)]=null,_0x1b6c7b['password']=null,_0x1b6c7b[_0xcda8f7(0x29c,_0x1de5a4._0x52bd0c)]=null,_0x1b6c7b;}function getOpenClawConfigDir(){return OPENCLAW_DIR;}function getOpenClawMediaDir(){return OPENCLAW_MEDIA_DIR;}function readConfiguredSecret(_0x144654){const _0x16ef44={_0x3e9c18:0xee,_0x4d959a:0x263,_0x38e030:0x268,_0x1b8e89:0x364},_0x17c500={_0x587ea5:0x169},_0x403421={_0x1bfb51:0x31c};function _0x30e150(_0x1ee8f7,_0x274848){return _0x11b7ab(_0x1ee8f7,_0x274848-_0x403421._0x1bfb51);}function _0x4276ff(_0x5d2149,_0x104fcc){return _0x11b7ab(_0x104fcc,_0x5d2149-_0x17c500._0x587ea5);}return typeof _0x144654===_0x4276ff(_0x16ef44._0x3e9c18,_0x16ef44._0x4d959a)&&_0x144654[_0x4276ff(0x268,0x365)]()?_0x144654[_0x4276ff(_0x16ef44._0x38e030,_0x16ef44._0x1b8e89)]():null;}function readGatewayTokenEnv(){const _0x4d9756={_0x2a9a5c:0x107,_0x5ae982:0x192,_0x19be22:0x222,_0x592ac1:0x407,_0x2d0c78:0xd7,_0x5334be:0x225,_0xc67503:0x317,_0x569c50:0x87,_0x45c105:0x3ca},_0x58ca39={_0x3b8a39:0xb0},_0xca8b7b={};function _0x17211f(_0x21d14f,_0x3e9166){return _0x11b7ab(_0x3e9166,_0x21d14f- -_0x58ca39._0x3b8a39);}_0xca8b7b[_0x219271(-_0x4d9756._0x2a9a5c,-_0x4d9756._0x5ae982)]=_0x17211f(_0x4d9756._0x19be22,_0x4d9756._0x592ac1)+_0x17211f(-_0x4d9756._0x2d0c78,-0x9)+_0x219271(-_0x4d9756._0x5334be,-0x97);function _0x219271(_0xa61d19,_0x4e2118){return _0x11b7ab(_0xa61d19,_0x4e2118- -0x217);}_0xca8b7b[_0x219271(-0x495,-_0x4d9756._0xc67503)]=_0x17211f(-_0x4d9756._0x569c50,-0x89)+'_GATEWAY'+_0x219271(0x15b,-0x97);const _0xba1b0b=_0xca8b7b;return readEnvValue(_0xba1b0b['qmDUX'],_0xba1b0b[_0x219271(-_0x4d9756._0x45c105,-_0x4d9756._0xc67503)]);}function readGatewayPasswordEnv(){const _0x21f321={_0x452b43:0x4f3,_0x333f3f:0x1fa,_0x768730:0x33e,_0x15459f:0x453,_0x44fad6:0x24a,_0x8169ab:0x1fe,_0x10fda8:0x3f9},_0x1e72c5={_0x531443:0x263};function _0x39ea61(_0x136be0,_0x259496){return _0x6eb3(_0x136be0,_0x259496-0x209);}function _0x3fb0f6(_0x59b3ba,_0x315411){return _0x6eb3(_0x315411,_0x59b3ba-_0x1e72c5._0x531443);}return readEnvValue(_0x3fb0f6(_0x21f321._0x452b43,0x5d6)+_0x3fb0f6(_0x21f321._0x333f3f,_0x21f321._0x768730)+_0x3fb0f6(_0x21f321._0x15459f,0x358)+'D',_0x3fb0f6(_0x21f321._0x44fad6,_0x21f321._0x8169ab)+'_GATEWAY'+_0x39ea61(0x5cc,_0x21f321._0x10fda8)+'D');}function readEnvValue(_0x5cbc58,_0x35a48a){const _0x1bfc62={_0x155eae:0x1ff,_0x19590e:0x1eb},_0xe1f4e9=process.env[_0x5cbc58]?.[_0x1aac37(0x14c,_0x1bfc62._0x155eae)]();if(_0xe1f4e9)return _0xe1f4e9;function _0x1aac37(_0x4655d5,_0x54e8c9){return _0x11b7ab(_0x4655d5,_0x54e8c9-0x100);}const _0xc50073=process.env[_0x35a48a]?.[_0x6579e1(_0x1bfc62._0x19590e,0x34a)]();function _0x6579e1(_0x246c22,_0x40da6c){return _0x11b7ab(_0x40da6c,_0x246c22-0xec);}return _0xc50073||null;}var CONTROL_PREFIX=_0x11b7ab(0x2ea,0xed)+'t_relay_'+_0x11b7ab(0x420,0x2c1)+'_:';function parseControl(_0x5dd1c5){const _0x2ea995={_0x39afba:0x5b2,_0xd29fc4:0x4de,_0x38a151:0x547,_0x275785:0x3e7,_0x9df3a5:0x44a,_0xd0398c:0x332,_0x26e2a8:0x68e,_0xd9de0:0x688,_0x798419:0x528,_0x2347fe:0x4a9},_0x20d42c={_0x3719bf:0x413},_0x39b60c={};_0x39b60c[_0x32fd37(_0x2ea995._0x39afba,0x6ec)]=function(_0x59e511,_0x19bc5d){return _0x59e511!==_0x19bc5d;},_0x39b60c[_0x4f0fd5(_0x2ea995._0xd29fc4,0x58e)]=function(_0x47d1de,_0x443604){return _0x47d1de===_0x443604;};function _0x32fd37(_0x52faa9,_0x26aecb){return _0x11b7ab(_0x26aecb,_0x52faa9-_0x20d42c._0x3719bf);}const _0xa59d31=_0x39b60c;if(!_0x5dd1c5[_0x32fd37(0x488,0x45c)+'th'](CONTROL_PREFIX))return null;function _0x4f0fd5(_0x1e2f98,_0x1862a5){return _0x11b7ab(_0x1e2f98,_0x1862a5-0x3ad);}try{const _0x157fbd=JSON[_0x4f0fd5(_0x2ea995._0x38a151,0x40f)](_0x5dd1c5['slice'](CONTROL_PREFIX[_0x4f0fd5(0x575,0x496)]));if(_0xa59d31[_0x32fd37(0x5b2,0x792)](typeof _0x157fbd[_0x32fd37(_0x2ea995._0x275785,0x3e7)],_0x4f0fd5(_0x2ea995._0x9df3a5,_0x2ea995._0xd0398c))||!_0x157fbd['event'][_0x4f0fd5(0x6a8,0x4ac)]())return null;return{'event':_0x157fbd['event'][_0x32fd37(0x512,0x6b7)](),'count':_0xa59d31['rsslV'](typeof _0x157fbd[_0x4f0fd5(0x536,0x4a9)],_0x32fd37(0x5ee,_0x2ea995._0x26e2a8))&&Number[_0x4f0fd5(_0x2ea995._0xd9de0,_0x2ea995._0x798419)](_0x157fbd[_0x4f0fd5(0x6ae,_0x2ea995._0x2347fe)])?_0x157fbd['count']:void 0x0};}catch{return null;}}function parseConnectStartIdentity(_0x236d83){const _0x48e952={_0x41b128:0x381,_0x13d37a:0x428,_0x1e537f:0x288,_0x5d553d:0x477,_0x4df9d3:0x90,_0x1a2881:0xb2,_0x5c5b2c:0x17c,_0x258ef3:0x140,_0x4aaa90:0xe6,_0x3691ab:0x3d,_0x5bd565:0x560,_0xe30f28:0x358,_0x3d88cf:0xb6,_0x361665:0x3ff,_0x511caf:0x381,_0x37d7d7:0x17b,_0x783486:0x483,_0x194027:0xf4,_0x40de53:0x60,_0x342cae:0x3f4,_0x2e1a73:0x3c7,_0x557a76:0x4c0,_0x4c24fa:0x42f,_0x3aadc3:0x434,_0x420e85:0x212,_0x52aa04:0x241},_0x4436bc={_0x3de8a4:0x9f};function _0x34803d(_0x23c6c2,_0x250141){return _0x11b7ab(_0x23c6c2,_0x250141- -_0x4436bc._0x3de8a4);}const _0x2c787c={};_0x2c787c[_0x34803d(0xa8,0x1fc)]=function(_0x382ed3,_0x565b3c){return _0x382ed3!==_0x565b3c;},_0x2c787c[_0x3a9a9f(_0x48e952._0x41b128,0x356)]=_0x3a9a9f(0x4de,0x309)+_0x3a9a9f(_0x48e952._0x13d37a,_0x48e952._0x1e537f);function _0x3a9a9f(_0x1d0d8c,_0x33c1c7){return _0x11b7ab(_0x33c1c7,_0x1d0d8c-0x2c5);}_0x2c787c[_0x3a9a9f(_0x48e952._0x5d553d,0x4d4)]=_0x34803d(_0x48e952._0x4df9d3,-0x11a),_0x2c787c[_0x34803d(-0x3f,0xca)]=_0x34803d(-_0x48e952._0x1a2881,-_0x48e952._0x5c5b2c)+_0x34803d(_0x48e952._0x258ef3,_0x48e952._0x4aaa90);const _0x5a5977=_0x2c787c;try{const _0x5ca0c5=JSON[_0x34803d(-0x153,-_0x48e952._0x3691ab)](_0x236d83);if(_0x5a5977[_0x3a9a9f(_0x48e952._0x5bd565,_0x48e952._0xe30f28)](_0x5ca0c5['type'],'req'))return null;if(_0x5ca0c5[_0x34803d(0xf4,-_0x48e952._0x3d88cf)]!=='connect'&&_0x5ca0c5[_0x3a9a9f(0x2ae,_0x48e952._0x361665)]!==_0x5a5977[_0x3a9a9f(_0x48e952._0x511caf,_0x48e952._0x37d7d7)])return null;const _0x35450b=_0x5ca0c5[_0x3a9a9f(_0x48e952._0x783486,0x3ad)]??{},_0x3d5dc5=typeof _0x5ca0c5['id']===_0x5a5977[_0x34803d(-_0x48e952._0x194027,0x113)]&&_0x5ca0c5['id'][_0x34803d(0x130,_0x48e952._0x40de53)]()?_0x5ca0c5['id'][_0x3a9a9f(0x3c4,_0x48e952._0x342cae)]():_0x3a9a9f(_0x48e952._0x2e1a73,0x2a3)+Math[_0x3a9a9f(0x2b8,_0x48e952._0x557a76)]()[_0x3a9a9f(_0x48e952._0x4c24fa,0x289)](0x24)[_0x3a9a9f(_0x48e952._0x3aadc3,0x271)](0x2,0xc),_0x44cb73=firstString(_0x35450b[_0x34803d(0x1c,0x179)+'me'],_0x35450b['clientNa'+'me'],_0x35450b[_0x34803d(0x2a6,_0x48e952._0x420e85)],_0x5a5977[_0x3a9a9f(0x42e,_0x48e952._0x52aa04)]),_0x5aae23={};return _0x5aae23['id']=_0x3d5dc5,_0x5aae23[_0x34803d(-0x132,-0x28)]=_0x44cb73,_0x5aae23;}catch{return null;}}function isConnectHandshakeRequest(_0x3ecedd){const _0x287ad3={_0x51ac61:0x98,_0x1f1556:0x430,_0x4c214d:0x2d4,_0x2da105:0x273,_0x54af92:0x1cb,_0x5eb0b2:0x38,_0x14474e:0x3d5},_0x683559={_0x26b042:0x272};function _0xf6c76b(_0x1ca086,_0xf46368){return _0x11b7ab(_0xf46368,_0x1ca086-_0x683559._0x26b042);}const _0x54ea90={};_0x54ea90['Wmspe']=function(_0x2e8e18,_0x539e37){return _0x2e8e18===_0x539e37;},_0x54ea90[_0x16bd6c(_0x287ad3._0x51ac61,0x2e)]=_0xf6c76b(0x4c4,_0x287ad3._0x1f1556);const _0x1a0183=_0x54ea90;function _0x16bd6c(_0x37a769,_0x8d3441){return _0x11b7ab(_0x8d3441,_0x37a769- -0x21);}try{const _0x2cb6dc=JSON[_0xf6c76b(_0x287ad3._0x4c214d,_0x287ad3._0x2da105)](_0x3ecedd);return _0x1a0183['Wmspe'](_0x2cb6dc[_0x16bd6c(0xf2,0xc5)],_0xf6c76b(_0x287ad3._0x54af92,0x10b))&&(_0x2cb6dc['method']===_0x1a0183[_0x16bd6c(_0x287ad3._0x51ac61,0x159)]||_0x2cb6dc[_0x16bd6c(-_0x287ad3._0x5eb0b2,-0xad)]==='connect.'+_0xf6c76b(_0x287ad3._0x14474e,0x4bf));}catch{return![];}}function parsePairingRequestFromError(_0x30dd2d,_0x5e1790=Date[_0x6eb3(-0xe1,0x54)]()){const _0x2595e7={_0x3e87da:0x4ff,_0x19180a:0x117,_0x30eb56:0x57,_0x4f5bd8:0x5a2,_0x1240ce:0x9d,_0x319ab0:0x181,_0x675a60:0x2ea,_0x3b3465:0x216,_0x209875:0x3a,_0x292526:0xc2,_0x3d751b:0x5e,_0x5157b6:0x205,_0x9a08b3:0x3e4,_0x9634a1:0x2b5,_0x2c93b7:0x298,_0x52f66b:0x2d9,_0x3f7699:0x29,_0x52f7b3:0x33d,_0x4ca5f8:0x15a,_0x5eb348:0x2f7,_0x20217e:0x3d5,_0xb80122:0x4b8,_0x4de9eb:0x10,_0xc837bd:0xf7,_0x2d17e7:0x2d9,_0x9fc0a:0x54f,_0x4e9203:0x8f,_0x1f156d:0xc8,_0x58c7f5:0xf6,_0x460347:0x4b4,_0x903b9b:0x5e1,_0x5abb7f:0x5b8,_0x369b68:0x588,_0x51d543:0x34b,_0x31f477:0x264,_0x15dae9:0x2a1,_0x473080:0x32e,_0x2ae143:0x4ea,_0x52810c:0x38a},_0x3c93a4={_0x2659ef:0x372},_0x101fbe={_0x1666b6:0xf7},_0x29d556={'UyJCu':_0x1cabfb(_0x2595e7._0x3e87da,0x57c),'WlVuH':function(_0x1f3ea4,_0x3e2f1b){return _0x1f3ea4===_0x3e2f1b;},'YIVsR':'PAIRING_'+_0x332b29(0x2df,0x36d),'USGSe':_0x332b29(0x13e,0x278)+_0x1cabfb(0x2bf,0x3eb),'hAwPF':function(_0x21179e,_0x95ae7f){return _0x21179e(_0x95ae7f);},'EEkra':'unknown','GGVzu':function(_0x29f3cb,_0xdef2e9,_0x1db138){return _0x29f3cb(_0xdef2e9,_0x1db138);}};function _0x332b29(_0x59e57e,_0x2ea6cb){return _0x6eb3(_0x59e57e,_0x2ea6cb-_0x101fbe._0x1666b6);}function _0x1cabfb(_0x5b77cb,_0x4ed7a7){return _0x6eb3(_0x5b77cb,_0x4ed7a7-_0x3c93a4._0x2659ef);}try{const _0x41a1b0=JSON[_0x332b29(0x19a,_0x2595e7._0x19180a)](_0x30dd2d);if(_0x41a1b0[_0x332b29(_0x2595e7._0x30eb56,0x1c8)]!==_0x29d556[_0x1cabfb(_0x2595e7._0x4f5bd8,0x5ad)]||_0x41a1b0['ok']!==![]||!_0x41a1b0[_0x332b29(-_0x2595e7._0x1240ce,0x5e)])return null;const _0x188590=_0x29d556[_0x1cabfb(_0x2595e7._0x319ab0,_0x2595e7._0x675a60)](typeof _0x41a1b0[_0x332b29(_0x2595e7._0x3b3465,0x5e)]['code'],_0x332b29(0x11e,_0x2595e7._0x209875))?_0x41a1b0[_0x332b29(_0x2595e7._0x292526,_0x2595e7._0x3d751b)][_0x332b29(0x1e2,0x25)]:'',_0x4f1e4e=typeof _0x41a1b0['error'][_0x1cabfb(_0x2595e7._0x5157b6,_0x2595e7._0x9a08b3)]===_0x1cabfb(0x183,_0x2595e7._0x9634a1)?_0x41a1b0[_0x1cabfb(_0x2595e7._0x2c93b7,_0x2595e7._0x52f66b)][_0x332b29(_0x2595e7._0x3f7699,0x169)]:'';if(!_0x188590['includes'](_0x1cabfb(0x64e,0x572)+'ED')&&!_0x188590['includes'](_0x29d556['YIVsR'])&&!_0x4f1e4e[_0x332b29(_0x2595e7._0x52f7b3,_0x2595e7._0x4ca5f8)](_0x332b29(0x18f,_0x2595e7._0x5eb348)+'ED')&&!_0x4f1e4e[_0x1cabfb(0x443,_0x2595e7._0x20217e)](_0x29d556[_0x1cabfb(0x4ed,_0x2595e7._0xb80122)]))return null;const _0x18b175=_0x41a1b0[_0x1cabfb(0x2eb,0x2d9)][_0x332b29(_0x2595e7._0x4de9eb,-0x53)]??_0x41a1b0[_0x1cabfb(_0x2595e7._0xc837bd,_0x2595e7._0x2d17e7)][_0x1cabfb(_0x2595e7._0x9fc0a,0x60b)]??{},_0x42958e=firstString(_0x18b175[_0x332b29(0x17a,0x373)+'d'],_0x29d556[_0x332b29(_0x2595e7._0x4e9203,0x159)](extractRequestIdFromMessage,_0x4f1e4e),_0x29d556[_0x332b29(-_0x2595e7._0x1f156d,_0x2595e7._0x58c7f5)]);return{'requestId':_0x42958e,'deviceId':_0x29d556['GGVzu'](firstString,_0x18b175[_0x1cabfb(_0x2595e7._0x460347,_0x2595e7._0x903b9b)],''),'displayName':firstNullableString(_0x18b175[_0x1cabfb(_0x2595e7._0x5abb7f,0x41a)+_0x1cabfb(_0x2595e7._0x369b68,0x624)]),'platform':firstNullableString(_0x18b175[_0x1cabfb(0x357,_0x2595e7._0x51d543)]),'deviceFamily':firstNullableString(_0x18b175[_0x332b29(0x290,_0x2595e7._0x31f477)+_0x1cabfb(0x493,_0x2595e7._0x15dae9)]),'role':firstNullableString(_0x18b175['role']),'remoteIp':firstNullableString(_0x18b175[_0x1cabfb(_0x2595e7._0x473080,_0x2595e7._0x2ae143)]),'receivedAtMs':_0x5e1790,'status':_0x1cabfb(_0x2595e7._0x52810c,0x49e)};}catch{return null;}}function parsePairResolvedEvent(_0xc3514d){const _0x53dc42={_0xd7b094:0x3be,_0x1fab21:0xac,_0x401d4c:0x2aa,_0x39d3da:0x4a3,_0x2068c5:0x18d,_0x160146:0x5b0,_0x409450:0x323,_0x23aa3c:0x28e,_0x1d090b:0x53,_0x4dd6b8:0x81,_0x19461a:0x25b,_0x54dd30:0x292,_0x4fde8a:0x2d9,_0x36c2ef:0x53,_0x25ff9b:0x2f,_0x4029c0:0x216,_0x22f694:0x20,_0x2534c0:0x160,_0x265c75:0x2a0,_0x1989e5:0x4a3,_0x28757f:0x216,_0x1511ba:0x3f0},_0x2d5a78={_0x258056:0x32d};function _0x4f006f(_0x5bd6d4,_0x17421d){return _0x6eb3(_0x5bd6d4,_0x17421d-_0x2d5a78._0x258056);}const _0x1022f4={};_0x1022f4[_0x4f006f(0x228,_0x53dc42._0xd7b094)]=function(_0x46818a,_0x1af392){return _0x46818a!==_0x1af392;},_0x1022f4['RjiYs']='device.p'+'air.reso'+'lved',_0x1022f4[_0x3f18d0(_0x53dc42._0x1fab21,-0x4a)]=_0x4f006f(_0x53dc42._0x401d4c,_0x53dc42._0x39d3da);function _0x3f18d0(_0x2cce24,_0x3ba409){return _0x6eb3(_0x3ba409,_0x2cce24- -0x189);}const _0x5bfac1=_0x1022f4;try{const _0x427b36=JSON[_0x4f006f(_0x53dc42._0x2068c5,0x34d)](_0xc3514d);if(_0x5bfac1['hmymb'](_0x427b36[_0x4f006f(_0x53dc42._0x160146,0x3fe)],_0x3f18d0(-0x1f7,-_0x53dc42._0x409450))||_0x427b36[_0x4f006f(_0x53dc42._0x23aa3c,0x2bf)]!==_0x5bfac1['RjiYs']||!_0x427b36['payload'])return null;const _0x361816=typeof _0x427b36[_0x3f18d0(-_0x53dc42._0x1d090b,_0x53dc42._0x4dd6b8)][_0x3f18d0(0xf3,_0x53dc42._0x19461a)+'d']===_0x4f006f(_0x53dc42._0x54dd30,0x270)?_0x427b36['payload'][_0x3f18d0(0xf3,_0x53dc42._0x4fde8a)+'d']['trim']():'';if(!_0x361816)return null;const _0x2cf41b=typeof _0x427b36[_0x3f18d0(-_0x53dc42._0x36c2ef,_0x53dc42._0x25ff9b)][_0x3f18d0(-_0x53dc42._0x4029c0,-_0x53dc42._0x22f694)]==='string'?_0x427b36[_0x3f18d0(-_0x53dc42._0x1d090b,0x70)][_0x4f006f(_0x53dc42._0x2534c0,_0x53dc42._0x265c75)]:_0x4f006f(0x67e,_0x53dc42._0x1989e5),_0x416154=_0x2cf41b==='approved'||_0x2cf41b==='rejected'?_0x2cf41b:_0x5bfac1['pFvRk'],_0x4bb255={};return _0x4bb255['requestI'+'d']=_0x361816,_0x4bb255[_0x3f18d0(-_0x53dc42._0x28757f,-_0x53dc42._0x1511ba)]=_0x416154,_0x4bb255;}catch{return null;}}function firstString(..._0xc21356){function _0x46a341(_0x352506,_0xda8dde){return _0x11b7ab(_0xda8dde,_0x352506-0x2dd);}function _0x4a84d7(_0x4d7b97,_0x4d1a71){return _0x11b7ab(_0x4d1a71,_0x4d7b97-0x464);}for(const _0x5669ed of _0xc21356){if(typeof _0x5669ed===_0x4a84d7(0x3e9,0x3f4)&&_0x5669ed[_0x4a84d7(0x563,0x423)]())return _0x5669ed['trim']();}return'';}function firstNullableString(_0x1b60a8){const _0x1cadc2={_0x4596af:0x310,_0x18cdf0:0x37c,_0x2d59ad:0x37a,_0x717f23:0x379},_0x5a2fe2={_0x22c7e0:0x339};function _0x3f4869(_0x18aa9d,_0x3b7497){return _0x6eb3(_0x18aa9d,_0x3b7497-_0x5a2fe2._0x22c7e0);}const _0x37304b={};_0x37304b['XWKPb']=function(_0x1f371d,_0x37f251){return _0x1f371d===_0x37f251;},_0x37304b[_0x17ad37(0x5c0,0x40e)]=_0x17ad37(0x469,_0x1cadc2._0x4596af);const _0x6df952=_0x37304b;function _0x17ad37(_0x683bd5,_0x5692bd){return _0x6eb3(_0x683bd5,_0x5692bd-0x3cd);}return _0x6df952[_0x17ad37(0x23b,0x2c9)](typeof _0x1b60a8,_0x6df952[_0x3f4869(_0x1cadc2._0x18cdf0,_0x1cadc2._0x2d59ad)])&&_0x1b60a8[_0x17ad37(_0x1cadc2._0x717f23,0x48a)]()?_0x1b60a8[_0x17ad37(0x59d,0x48a)]():null;}function extractRequestIdFromMessage(_0x1f398a){const _0x510487=_0x1f398a[_0x5f2389(0x300,0x35d)](/requestId[:\s]*([a-f0-9-]+)/i);function _0x5f2389(_0x5203c0,_0x2add98){return _0x6eb3(_0x2add98,_0x5203c0-0x315);}return _0x510487?.[0x1]??null;}import{randomUUID as _0x2b14da}from'crypto';import{setTimeout as _0x3ea3f7}from'timers/promises';import _0x17e531 from'ws';var HEARTBEAT_INTERVAL_MS=0x2710,HEARTBEAT_TIMEOUT_MS=0x88b8,GATEWAY_RETRY_DELAY_MS=0x4b0,GATEWAY_IDLE_DISCONNECT_DELAY_MS=0x7530,RECONNECT_BASE_DELAY_MS=0x3e8,RECONNECT_MAX_DELAY_MS=0x3a98,MAX_PENDING_GATEWAY_MESSAGES=0x100,MAX_DEVICE_DETAILS=0x20,MAX_PENDING_PAIR_REQUESTS=0x10,BridgeRuntime=class{[_0x11b7ab(0x72,-0x39)];['relaySoc'+_0x6eb3(0x11a,0x1de)]=null;[_0x6eb3(0x87,-0x148)+'ocket']=null;[_0x6eb3(-0xb,0x183)+'necting']=![];['gatewayC'+'onnectin'+'g']=![];[_0x6eb3(0x47,0x1ba)]=!![];[_0x11b7ab(0x16c,0xe)+_0x6eb3(0xfc,-0xe5)]=0x0;[_0x6eb3(-0x5d,-0x3f)+_0x11b7ab(-0x17,-0x77)+_0x6eb3(-0xc,0xef)]=0x0;[_0x6eb3(0x3e8,0x25b)+_0x6eb3(-0xa,0x4b)]=null;[_0x11b7ab(0x124,0x279)+'etryTime'+'r']=null;['gatewayI'+'dleClose'+_0x11b7ab(0x6e,-0x1d)]=null;[_0x6eb3(-0xb9,0xeb)+_0x6eb3(-0x4a,0x4b)]=null;['pendingG'+_0x6eb3(0x470,0x2b4)+_0x11b7ab(0x304,0x234)]=[];[_0x6eb3(0x47e,0x277)+_0x11b7ab(0x42,-0x63)+_0x11b7ab(-0xa4,0x88)]=![];[_0x6eb3(0x2c2,0x2c0)+'mandStar'+_0x6eb3(-0x8,-0x14c)]=null;[_0x11b7ab(0x1dd,0x2c3)+_0x6eb3(-0x25,-0xd7)+_0x11b7ab(-0xd9,-0x1b)]=null;[_0x11b7ab(0x290,0xec)];constructor(_0x4e053a){const _0x6b1316={_0x5d4185:0xa0,_0x4acb4d:0x15e,_0x4cf19c:0xbd,_0xc5b56d:0x1e2,_0x45804:0x277,_0x16f83c:0x20e},_0x440d53={_0x19392e:0x14a},_0x3de3a3={_0x1822a0:0x146};function _0x1bfcf7(_0x31e7bf,_0x3d18e1){return _0x6eb3(_0x31e7bf,_0x3d18e1- -_0x3de3a3._0x1822a0);}this[_0x1bfcf7(-0x3aa,-0x1c1)]=_0x4e053a;function _0x41c0b5(_0x340bf1,_0x58da5c){return _0x6eb3(_0x58da5c,_0x340bf1- -_0x440d53._0x19392e);}this[_0x41c0b5(-_0x6b1316._0x5d4185,-0x1e1)]={'running':![],'relayConnected':![],'gatewayConnected':![],'gatewayId':_0x4e053a[_0x41c0b5(-0x146,-0x10b)][_0x41c0b5(0x61,0x1d4)+'d'],'instanceId':_0x4e053a['config'][_0x1bfcf7(-0x85,-_0x6b1316._0x4acb4d)+'Id'],'relayUrl':_0x4e053a[_0x1bfcf7(-_0x6b1316._0x4cf19c,-0x142)][_0x1bfcf7(-_0x6b1316._0xc5b56d,-_0x6b1316._0x45804)],'gatewayUrl':_0x4e053a[_0x1bfcf7(-_0x6b1316._0x16f83c,-0x1d6)+'rl'],'clientCount':0x0,'connectedDevices':[],'pendingPairRequests':[],'lastError':null,'lastUpdatedMs':Date[_0x1bfcf7(-0x226,-0xf2)]()};}['start'](){const _0x1d64c0={_0x41ac68:0x263,_0x3688d2:0x2b1,_0xc13163:0x180,_0x1d6678:0x336,_0x22b4ce:0x37,_0x592804:0x217,_0x222d8a:0x1f3,_0xbc635c:0x149,_0x1aee57:0x309,_0x1c6ee5:0x133,_0x17b8aa:0x2d3,_0x147f5d:0x58,_0x3b199b:0x124,_0x2d1542:0x19},_0xdeefed={_0x1b5373:0x128};if(!this[_0x5b170b(0x263,_0x1d64c0._0x41ac68)])return;this['stopped']=![];function _0x14efd1(_0x52bcbf,_0x52c508){return _0x6eb3(_0x52bcbf,_0x52c508-_0xdeefed._0x1b5373);}this[_0x14efd1(_0x1d64c0._0x3688d2,_0x1d64c0._0xc13163)+_0x5b170b(_0x1d64c0._0x1d6678,0x311)]({'running':!![],'gatewayUrl':this[_0x14efd1(_0x1d64c0._0x22b4ce,0xad)][_0x5b170b(0xf5,0x19)+'rl']});function _0x5b170b(_0x44c806,_0xfaab89){return _0x6eb3(_0x44c806,_0xfaab89-0xa9);}this[_0x5b170b(_0x1d64c0._0x592804,_0x1d64c0._0x222d8a)](_0x5b170b(_0x1d64c0._0xbc635c,-0x50)+_0x5b170b(_0x1d64c0._0x1aee57,0x141)+'\x20gateway'+_0x14efd1(-0x5a,-0x3)+this['options']['config'][_0x14efd1(_0x1d64c0._0x1c6ee5,_0x1d64c0._0x17b8aa)+'d']+(_0x5b170b(-0x14e,-_0x1d64c0._0x147f5d)+'Url=')+this[_0x5b170b(0x1bd,0x2e)][_0x5b170b(-_0x1d64c0._0x3b199b,_0x1d64c0._0x2d1542)+'rl']),void this['connectR'+_0x5b170b(0x158,0x2d8)]();}async[_0x6eb3(0x174,0x11c)](){const _0x506f12={_0x3a4b48:0x31d,_0x4bb648:0x160,_0x319777:0x2fb,_0xbcbd8d:0x27e,_0x595440:0x1ee,_0x3a56c0:0xa2,_0x2a4dcb:0x219,_0x250e8d:0x1df,_0x3c893f:0x348,_0x9bc132:0x27e,_0x46dca5:0x436,_0x567bd5:0x23e,_0x118eac:0x2a7,_0x30d50e:0x43d,_0x8cab50:0x1c8,_0x50e633:0x461,_0x47a976:0x23e,_0x4c3ace:0x5ad,_0x3ef1c0:0x34,_0x3df37a:0x9e,_0x5878aa:0x15c,_0x5c3a84:0x134,_0x4d3cbe:0x3db,_0x46a768:0x4d9,_0x3828ec:0x606,_0x138eef:0x283,_0x58497f:0x39f,_0x416369:0x3b3,_0x3bac42:0xf,_0xccbc4e:0x1d3,_0x42324c:0x452,_0x13f950:0x3a2,_0x2e9752:0x2cd},_0x1b7cf0={_0x200851:0x258},_0x2a121a={_0x18002c:0x1ea},_0x398c3b={};_0x398c3b[_0x41b114(0x341,_0x506f12._0x3a4b48)]=_0x41b114(0x15f,0x1a5)+'stopped';const _0x53edeb=_0x398c3b;if(this['stopped'])return;this[_0x22650c(0x551,0x3a4)]=!![],this[_0x22650c(0x513,0x3d6)+_0x41b114(_0x506f12._0x4bb648,0xad)](),this[_0x22650c(_0x506f12._0x319777,_0x506f12._0xbcbd8d)+_0x22650c(0x5c3,0x3c8)]?.['close'](),this[_0x22650c(_0x506f12._0x595440,_0x506f12._0x3a56c0)+'ocket']?.[_0x22650c(_0x506f12._0x2a4dcb,_0x506f12._0x250e8d)](),this[_0x22650c(_0x506f12._0x3c893f,_0x506f12._0x9bc132)+_0x41b114(_0x506f12._0x46dca5,_0x506f12._0x567bd5)]=null,this[_0x41b114(0x110,_0x506f12._0x118eac)+_0x22650c(_0x506f12._0x30d50e,0x4a7)]=null,this[_0x22650c(_0x506f12._0x8cab50,0xba)+_0x41b114(0x50c,0x64b)+_0x41b114(0x44a,0x5a5)]=[],this[_0x22650c(0x2b5,_0x506f12._0x50e633)+'andshake'+_0x22650c(_0x506f12._0x47a976,0x230)]=![],this[_0x22650c(_0x506f12._0x4c3ace,0x4aa)+'mandStar'+_0x22650c(-_0x506f12._0x3ef1c0,_0x506f12._0x3df37a)]=null,this[_0x22650c(0x3cb,0x46b)+_0x22650c(_0x506f12._0x5878aa,0x113)+'AtMs']=null,this['relayCon'+_0x22650c(0x37b,0x1b0)]=![],this[_0x22650c(0x53a,0x46b)+_0x22650c(0x27c,_0x506f12._0x5c3a84)+'g']=![];const _0x39d750={};_0x39d750[_0x22650c(0x22a,0x1cd)]=![],_0x39d750[_0x41b114(_0x506f12._0x4d3cbe,0x259)+'nected']=![];function _0x22650c(_0x1327a8,_0x351934){return _0x6eb3(_0x1327a8,_0x351934-_0x2a121a._0x18002c);}function _0x41b114(_0x34ba79,_0x27fa61){return _0x6eb3(_0x27fa61,_0x34ba79-_0x1b7cf0._0x200851);}_0x39d750[_0x41b114(_0x506f12._0x46a768,_0x506f12._0x3828ec)+_0x22650c(-0xec,0x113)]=![],_0x39d750[_0x41b114(0x122,_0x506f12._0x138eef)+_0x41b114(_0x506f12._0x58497f,_0x506f12._0x416369)]=0x0,_0x39d750[_0x22650c(-_0x506f12._0x3bac42,_0x506f12._0xccbc4e)+'r']=null,this['updateSn'+_0x22650c(0x650,_0x506f12._0x42324c)](_0x39d750),this[_0x41b114(_0x506f12._0x13f950,0x211)](_0x53edeb[_0x41b114(0x341,_0x506f12._0x2e9752)]),await _0x3ea3f7(0x19);}async[_0x6eb3(-0x1b5,-0x12)+'airReque'+'st'](_0x43899c){const _0x4f078d={_0x3a75f6:0x45,_0x1a07d6:0x1fe,_0x5bf516:0x9a,_0x338bae:0x17c,_0xdcf799:0x322,_0x15f506:0x96},_0x1c3184={_0x2251f9:0x198},_0x19f62b={_0x2f1c33:0x14a},_0x28bf4b={};_0x28bf4b[_0x3ab965(-0x1ca,-0x2ce)]=_0xe6035(0x1a7,0x378)+'air.appr'+_0x3ab965(-_0x4f078d._0x3a75f6,0x55);const _0x4ae463=_0x28bf4b;function _0xe6035(_0x2b5e30,_0x5000fb){return _0x11b7ab(_0x5000fb,_0x2b5e30- -_0x19f62b._0x2f1c33);}const _0x5048e8={};_0x5048e8[_0x3ab965(0x126,_0x4f078d._0x1a07d6)+'d']=_0x43899c,this[_0x3ab965(-_0x4f078d._0x5bf516,0x9c)+'wayReque'+'st'](_0x4ae463[_0xe6035(-_0x4f078d._0x338bae,-_0x4f078d._0xdcf799)],_0x5048e8);function _0x3ab965(_0x452630,_0x5b38f6){return _0x11b7ab(_0x5b38f6,_0x452630- -_0x1c3184._0x2251f9);}this['markPair'+_0x3ab965(-0x70,-0x1fd)+_0xe6035(-0x1cd,-0x131)](_0x43899c,_0x3ab965(-0x4c,-_0x4f078d._0x15f506));}async[_0x6eb3(0x1f,0x175)+_0x6eb3(0x153,0x117)+'t'](_0x22f44c){const _0x369c8d={_0x43eeda:0x29b,_0x428840:0x28f,_0x934078:0x137,_0xe55ff7:0xae,_0x5da5e5:0x2c9,_0x3174b9:0x317,_0x4e22ac:0x96,_0x261fc5:0x84,_0x510e25:0x1fb,_0x523053:0xb6,_0xa11df6:0x134},_0x23b944={};_0x23b944[_0x2419cd(_0x369c8d._0x43eeda,0x317)]=_0x2419cd(_0x369c8d._0x428840,0x3fd)+_0x1aae02(_0x369c8d._0x934078,-0x18)+'ct';function _0x2419cd(_0x370b3b,_0x1bb167){return _0x6eb3(_0x370b3b,_0x1bb167-0x14e);}const _0x1dd0de=_0x23b944,_0x417e00={};function _0x1aae02(_0x1435e0,_0x542251){return _0x6eb3(_0x1435e0,_0x542251- -0x16a);}_0x417e00['requestI'+'d']=_0x22f44c,this[_0x1aae02(-0xef,-_0x369c8d._0xe55ff7)+_0x1aae02(0x7a,0x116)+'st'](_0x1dd0de[_0x2419cd(_0x369c8d._0x5da5e5,_0x369c8d._0x3174b9)],_0x417e00),this['markPair'+_0x1aae02(-_0x369c8d._0x4e22ac,-_0x369c8d._0x261fc5)+_0x2419cd(_0x369c8d._0x510e25,0x89)](_0x22f44c,_0x1aae02(_0x369c8d._0x523053,-_0x369c8d._0xa11df6));}[_0x11b7ab(0x313,0x11d)+'hot'](){const _0x2121ec={_0x626ae0:0x313,_0x2a77df:0x2ae,_0x3c962d:0x1a0,_0x475c47:0x24c,_0x3a40e7:0x1f6,_0x59cf40:0x24e},_0x524a2c={_0x444746:0x198},_0x12537c={...this[_0x5b9ba6(0x242,_0x2121ec._0x626ae0)]};function _0x5b9ba6(_0x18782a,_0x25aee2){return _0x6eb3(_0x25aee2,_0x18782a-_0x524a2c._0x444746);}_0x12537c[_0x5b9ba6(0x28a,0x249)+_0x5b9ba6(_0x2121ec._0x2a77df,0x469)]=[...this[_0x5b9ba6(0x242,0x2a1)]['connecte'+_0x5b9ba6(0x2ae,_0x2121ec._0x3c962d)]],_0x12537c[_0x5b9ba6(0x1bd,0x173)+_0x5b9ba6(0x129,_0x2121ec._0x475c47)+'sts']=[...this['snapshot'][_0x5b9ba6(0x1bd,_0x2121ec._0x3a40e7)+_0x13ba26(0x4ea,0x485)+_0x5b9ba6(_0x2121ec._0x59cf40,0x192)]];function _0x13ba26(_0x1029ac,_0x2f13e6){return _0x6eb3(_0x1029ac,_0x2f13e6-0x4f4);}return _0x12537c;}async[_0x6eb3(0x21a,0x2a8)+_0x6eb3(0x104,0x22f)](){const _0x497fb8={_0x3cbd24:0xe0,_0x321a19:0x533,_0x251c31:0x45,_0x4fa7c5:0x3c,_0x43b9f3:0x155,_0x1d35a3:0x341,_0x5ee9f1:0x4c5,_0x8f2b7d:0x4c3,_0x363bb3:0x3e1,_0x3a1810:0x4ec,_0x2544f7:0x3ff,_0x2761e3:0x2d6,_0x1df405:0x2ad},_0x52f2af={_0x543199:0x3d9,_0x5ac0a3:0x1ec,_0xc0ea0d:0xe8,_0x3c7261:0x4d1,_0x460c00:0x270,_0x491577:0x2d8,_0x1391eb:0x1a3,_0x4dcd89:0x19e,_0x2d6491:0x253,_0x2dc33:0x74,_0x5a16a4:0x185,_0x1fe00c:0x2d0,_0x4e253e:0xe9,_0x4860d1:0x31f,_0x1a9b84:0x7e,_0x350663:0x18e,_0x889cdb:0x1b0,_0x5e4392:0xb1,_0x307ebb:0xaf,_0x4c706f:0x3f8,_0x1c3d78:0x327,_0x3ebe22:0x34,_0xeecbf2:0x26d},_0x56e583={_0x33d280:0x2},_0x461fb6={_0x112194:0x27c,_0x5e1a44:0x1f6,_0x1644cc:0x383,_0x4851f5:0x4e,_0x14c058:0x5d},_0x2e0012={_0x58b81b:0x8e3,_0x5cd5f6:0x70c,_0x3f2375:0x5e6,_0x33c78a:0x129,_0x33165d:0xc0,_0x32a670:0x6b7,_0x37fdee:0x32d,_0x157368:0x518,_0xa848:0x1c,_0x3ca376:0x16e,_0x94c778:0x91,_0x42009d:0x61,_0x32481e:0x33,_0x1532dc:0x444,_0x42182f:0x1b3,_0x45bf58:0x148,_0xc76e16:0x4d,_0x21872d:0xe2,_0x1cac69:0x46c,_0x27c192:0x2e6},_0x526df3={_0x5ccfcf:0x379},_0x88df78={'BOAUR':function(_0x56f0e5,_0x167b62){return _0x56f0e5===_0x167b62;},'lwgRK':_0x45b8da(_0x497fb8._0x3cbd24,0x96),'uEGOg':function(_0xd0ea8a,_0x493ee1){return _0xd0ea8a(_0x493ee1);},'YgDEb':function(_0x10f94e,_0x1dfd95){return _0x10f94e*_0x1dfd95;}};if(this[_0x557982(0x4f6,_0x497fb8._0x321a19)]||this[_0x45b8da(0x181,-_0x497fb8._0x251c31)+_0x45b8da(-_0x497fb8._0x4fa7c5,-0x56)]||this[_0x557982(0x4f4,0x381)+'pen']())return;function _0x557982(_0x577f2b,_0x433263){return _0x6eb3(_0x577f2b,_0x433263-_0x526df3._0x5ccfcf);}this[_0x45b8da(0x181,0x291)+'necting']=!![],this[_0x557982(0x1ec,0x345)+'empt']+=0x1;const _0xa0b52d=this[_0x45b8da(-0x36,0x79)+'empt'],_0x362b12=_0x88df78[_0x45b8da(0x11,-_0x497fb8._0x43b9f3)](buildRelayWsUrl,this[_0x557982(_0x497fb8._0x1d35a3,0x2fe)][_0x557982(_0x497fb8._0x5ee9f1,0x37d)]);this[_0x557982(0x39e,_0x497fb8._0x8f2b7d)](_0x557982(0x361,_0x497fb8._0x363bb3)+_0x557982(0x4ff,_0x497fb8._0x3a1810)+'tempt='+_0xa0b52d+_0x557982(0x42f,0x37e)+redactRelayWsUrl(_0x362b12));const _0x470017=new _0x17e531(_0x362b12,{'maxPayload':_0x88df78[_0x557982(_0x497fb8._0x2544f7,0x4a3)](0x19*0x400,0x400)});this[_0x45b8da(0x92,0x27b)+_0x557982(0x6fc,0x557)]=_0x470017,_0x470017['once'](_0x45b8da(-0x112,-0x85),()=>{if(this[_0x157a2b(_0x2e0012._0x58b81b,_0x2e0012._0x5cd5f6)]||this[_0x157a2b(0x491,_0x2e0012._0x3f2375)+_0x3a62bf(_0x2e0012._0x33c78a,0x20f)]!==_0x470017){_0x470017[_0x3a62bf(-_0x2e0012._0x33165d,-0x1e)]();return;}function _0x3a62bf(_0x43adb7,_0x3e8eb7){return _0x557982(_0x3e8eb7,_0x43adb7- -0x42e);}this[_0x157a2b(_0x2e0012._0x32a670,0x6d5)+_0x157a2b(_0x2e0012._0x37fdee,_0x2e0012._0x157368)]=![],this[_0x3a62bf(-0xf4,-_0x2e0012._0xa848)+_0x3a62bf(-_0x2e0012._0x3ca376,-_0x2e0012._0x94c778)+'yMs']=Date[_0x3a62bf(-_0x2e0012._0x42009d,_0x2e0012._0x32481e)]();const _0x52f67={};_0x52f67['relayCon'+_0x157a2b(0x602,_0x2e0012._0x1532dc)]=!![],_0x52f67[_0x157a2b(0x651,0x53b)+'r']=null,this[_0x157a2b(0x5b7,0x5aa)+_0x3a62bf(_0x2e0012._0x42182f,0x161)](_0x52f67);function _0x157a2b(_0x33c499,_0x32e718){return _0x557982(_0x33c499,_0x32e718-0x1d9);}this[_0x3a62bf(0x95,-_0x2e0012._0x45bf58)](_0x3a62bf(-_0x2e0012._0xc76e16,_0x2e0012._0x21872d)+_0x157a2b(0x4c8,0x4cd)+_0x157a2b(_0x2e0012._0x1cac69,0x660)+_0xa0b52d),this[_0x3a62bf(0xd5,0x2cd)+_0x3a62bf(0x204,_0x2e0012._0x27c192)]();}),_0x470017['on']('message',(_0x1817a6,_0x5df622)=>{function _0x41e22b(_0x5f47b6,_0x281cf9){return _0x557982(_0x281cf9,_0x5f47b6- -0x2b2);}function _0x142076(_0x136f60,_0x19b274){return _0x557982(_0x19b274,_0x136f60- -0x2bd);}void this[_0x41e22b(0x349,0x2e7)+_0x142076(-0xd,-0x1b2)+'ge'](_0x1817a6,_0x5df622);}),_0x470017['on'](_0x557982(_0x497fb8._0x2761e3,0x27e),()=>{function _0x4f2519(_0x353173,_0x378f35){return _0x45b8da(_0x353173- -0x13b,_0x378f35);}function _0x14af77(_0xe199f7,_0x31a766){return _0x45b8da(_0x31a766-0x45c,_0xe199f7);}this[_0x4f2519(-0x17c,-_0x461fb6._0x112194)+_0x4f2519(-_0x461fb6._0x5e1a44,-_0x461fb6._0x1644cc)+_0x4f2519(-_0x461fb6._0x4851f5,_0x461fb6._0x14c058)]=Date['now']();}),_0x470017[_0x45b8da(0x135,-0x64)](_0x45b8da(-0x9b,-0x11c),_0x121b37=>{const _0x554ab3={_0x157ef2:0x30f};function _0x990f9e(_0x2b2e8b,_0x550083){return _0x45b8da(_0x550083-_0x554ab3._0x157ef2,_0x2b2e8b);}this['log'](_0x990f9e(0x585,0x3df)+'ror:\x20'+String(_0x121b37));});function _0x45b8da(_0x47369f,_0x3a871a){return _0x6eb3(_0x3a871a,_0x47369f- -_0x56e583._0x33d280);}_0x470017[_0x557982(_0x497fb8._0x1df405,0x4b0)](_0x557982(0x460,0x36e),(_0x19547b,_0x4c9bd7)=>{const _0x4c8118={_0x1d9a4e:0x445},_0x5e31e0={_0x4cf546:0x17e};this[_0x3f589b(0x28f,0x94)+_0x3f589b(_0x52f2af._0x543199,_0x52f2af._0x5ac0a3)]===_0x470017&&(this[_0x3f589b(0x28f,0x324)+_0x56efdb(-_0x52f2af._0xc0ea0d,0x112)]=null);this[_0x3f589b(0x37e,_0x52f2af._0x3c7261)+_0x3f589b(0x1c1,0x1bb)]=![],this['stopHear'+_0x3f589b(_0x52f2af._0x460c00,0x281)](),this[_0x3f589b(0x4bb,0x57a)+_0x3f589b(0x2ff,_0x52f2af._0x491577)+_0x56efdb(-0x1f0,-0x218)]=null,this['gatewayC'+_0x56efdb(-0x386,-_0x52f2af._0x1391eb)+_0x3f589b(_0x52f2af._0x4dcd89,0x349)]=null,this[_0x3f589b(_0x52f2af._0x2d6491,_0x52f2af._0x2dc33)+_0x3f589b(0x463,0x5e4)]({'relayConnected':![],'gatewayConnected':![],'clientCount':0x0,'lastError':_0x88df78['BOAUR'](_0x19547b,0x3e8)?null:_0x56efdb(0xff,_0x52f2af._0x5a16a4)+_0x3f589b(_0x52f2af._0x1fe00c,_0x52f2af._0x4e253e)+(_0x4c9bd7[_0x3f589b(0x323,_0x52f2af._0x4860d1)]()||_0x19547b)});function _0x3f589b(_0x5e08a3,_0x5643db){return _0x557982(_0x5643db,_0x5e08a3- -_0x5e31e0._0x4cf546);}this[_0x56efdb(0x154,_0x52f2af._0x1a9b84)](_0x56efdb(-0x2c3,-_0x52f2af._0x350663)+'sconnect'+_0x56efdb(_0x52f2af._0x889cdb,_0x52f2af._0x5e4392)+_0x19547b+_0x56efdb(-0xe2,_0x52f2af._0x307ebb)+(_0x4c9bd7['toString']()||_0x88df78[_0x3f589b(_0x52f2af._0x4c706f,_0x52f2af._0x1c3d78)]));function _0x56efdb(_0x49987b,_0x2f0e56){return _0x557982(_0x49987b,_0x2f0e56- -_0x4c8118._0x1d9a4e);}this['closeGat'+_0x56efdb(0x18,_0x52f2af._0x3ebe22)](),this[_0x56efdb(_0x52f2af._0xeecbf2,0xbd)+'RelayRec'+'onnect']();});}async[_0x6eb3(0x1dd,0x282)+_0x6eb3(0xa5,-0xc9)+'ge'](_0x4cf695,_0x3371c5){const _0x371487={_0x43a05f:0x15c,_0x2322d4:0x21a,_0x3bc8de:0x1ef,_0x2e336c:0x118,_0x1a420d:0x1f5,_0x22251d:0x23f,_0x55acea:0x21b,_0x362a9a:0x2a,_0x4b840c:0x1d7,_0x3a7aa8:0x26d,_0x4a0ad1:0x2c5,_0x40e2f9:0x284,_0x171bcf:0x78,_0xd60bc0:0x103,_0x56d38f:0x169,_0x3a6506:0x40,_0x124f46:0x36,_0x57e1cd:0xc3},_0x5de644={_0x21e9fb:0x43},_0xcff6ca={'dXcpM':function(_0x22e392,_0x155bb4){return _0x22e392(_0x155bb4);}};this[_0x3283a3(0xcf,_0x371487._0x43a05f)+_0x5e5779(-0x22b,-0x76)+_0x5e5779(0x244,0x132)]=Date[_0x3283a3(_0x371487._0x2322d4,_0x371487._0x3bc8de)]();if(_0x3371c5){this[_0x3283a3(0x217,_0x371487._0x2e336c)+_0x3283a3(_0x371487._0x1a420d,0x21d)+_0x3283a3(_0x371487._0x22251d,_0x371487._0x55acea)+_0x5e5779(-0x243,-0x78)]({'kind':_0x3283a3(_0x371487._0x362a9a,0x9f),'data':normalizeBinary(_0x4cf695)});return;}const _0x187b0e=normalizeText(_0x4cf695);if(_0x187b0e==null)return;const _0x4b28d7=_0xcff6ca[_0x5e5779(0x232,_0x371487._0x4b840c)](parseControl,_0x187b0e);if(_0x4b28d7){this[_0x5e5779(_0x371487._0x3a7aa8,_0x371487._0x4a0ad1)+_0x5e5779(0x1e0,_0x371487._0x40e2f9)+'ol'](_0x4b28d7[_0x5e5779(0x5,-0x2b)],_0x4b28d7['count']);return;}function _0x3283a3(_0x32d5c6,_0x165a8c){return _0x6eb3(_0x32d5c6,_0x165a8c-0x19b);}const _0x6dd75e=parseConnectStartIdentity(_0x187b0e);_0x6dd75e&&this['observeC'+'onnectSt'+_0x3283a3(-0xe,0xa9)](_0x6dd75e['id'],_0x6dd75e[_0x5e5779(0x1ea,_0x371487._0x171bcf)]);const _0xd973f={};_0xd973f[_0x5e5779(0x2e1,0x20d)]=_0x3283a3(_0x371487._0xd60bc0,0x169);function _0x5e5779(_0xf38620,_0x27c798){return _0x6eb3(_0xf38620,_0x27c798-_0x5de644._0x21e9fb);}_0xd973f[_0x3283a3(-0x8e,_0x371487._0x56d38f)]=_0x187b0e,this[_0x5e5779(-0x15b,-_0x371487._0x3a6506)+'rQueueGa'+_0x5e5779(_0x371487._0x124f46,_0x371487._0x57e1cd)+'sage'](_0xd973f);}['handleRe'+'layContr'+'ol'](_0x4eadcb,_0x18feb1){const _0x14f93e={_0x3edb51:0xe0,_0x8df858:0x1cc,_0x1ddf0c:0xd3,_0x25229e:0x60b,_0x1aaf9b:0x46d,_0x2f9c1f:0x3fe,_0x4eff2c:0x200,_0x3270fd:0x180,_0x46737f:0x552,_0x32be76:0x597,_0x30404e:0x40a,_0xdf08aa:0x532,_0x810d9c:0x441,_0x1e887f:0x50,_0x3ab9eb:0x6cb,_0x39ac9a:0x26b,_0x46d3b9:0x17b,_0x20545a:0x31e,_0x2f3cc6:0x175,_0x46313c:0x105,_0x2d3c5b:0xee,_0x3d5f2d:0x5ea,_0x6a680:0x231,_0x4fef12:0x4e6,_0x4a7cdb:0xa1,_0x450caa:0x2bc,_0x3fd9b2:0x272,_0x3a7d75:0x552,_0x325956:0x46e,_0x5b916e:0x288,_0x4d1b59:0x128,_0x56a807:0x3b0,_0x326283:0x92,_0xc2a2c2:0x1e1,_0x14f52c:0x63,_0x3deec1:0x6c5,_0x50ffcf:0x163,_0x1551f5:0x359,_0x2fcbef:0x123,_0xc96ca6:0x54f,_0x18be7b:0x746,_0x5c39d3:0x2c2,_0x55345a:0x4c7,_0x56bd3e:0x33b,_0x477999:0x18b,_0x142c81:0x416,_0x40a7e6:0x5d4,_0x466c9d:0x66f,_0x66e132:0x150,_0x36ec49:0x21d,_0x389e40:0x605,_0x2bad34:0x6ac,_0x2c7584:0x2cb,_0x3fe7e8:0x267,_0xedcd82:0x5f4,_0x5f2630:0x645,_0x568b93:0x31f,_0x4aa87e:0x5dc,_0x1998af:0x5b9,_0x5b6005:0x384,_0x59f90d:0x3e5,_0x5ca385:0x303,_0x5c5f12:0x1f4,_0x1d74dc:0x433,_0x12274f:0x3d8,_0xaceaaa:0x255,_0x10efa4:0x77,_0x148da4:0x63d,_0x54e117:0x1e5,_0x39f6bc:0x254,_0x3930cd:0x1bf,_0x3577d3:0x194,_0x30b026:0x32c,_0x1e580b:0x6d3,_0x2a8b2d:0x35a,_0x51a357:0x52,_0x1d96a1:0x1fa,_0x1420c3:0x506,_0x186d02:0x1b2,_0x42cd9a:0x199,_0x5c6a29:0x8b,_0x1ae086:0x55,_0x348d08:0x2df,_0x1f86ae:0x572,_0x94d98b:0x3e4,_0xa1d098:0x260,_0xe248af:0xe4,_0x18f486:0x270,_0x89b5a6:0x6c,_0x20ddb6:0x193,_0x23920:0x37e,_0x29222d:0x1cb,_0x4ac686:0x179,_0x851dbe:0xf,_0x24f307:0x231,_0x435424:0x5bc,_0x27c5d2:0x422,_0x1fb7c0:0x132,_0x20ac6f:0x384,_0x33d43c:0x100},_0x4fdd1b={_0x236dbf:0xf5},_0x4043b0={'vqNDF':function(_0x51e201,_0x2fcf56){return _0x51e201===_0x2fcf56;},'yMfXs':_0x5bac0d(0x15b,_0x14f93e._0x3edb51)+_0x5bac0d(-0x12a,-_0x14f93e._0x8df858),'gBBlO':function(_0x70e350,_0x1ace3d){return _0x70e350==_0x1ace3d;},'RxvtL':function(_0x406088,_0x1001e3,_0x2d5163,_0xf4ee1d,_0x236f17){return _0x406088(_0x1001e3,_0x2d5163,_0xf4ee1d,_0x236f17);},'TprFP':'gateway\x20'+'recycle\x20'+_0x5bac0d(_0x14f93e._0x1ddf0c,-0xfb)+_0x17eda9(0x4a3,0x3da)+'esh\x20clie'+'nt\x20deman'+'d','PeZgI':'client_d'+_0x17eda9(_0x14f93e._0x25229e,_0x14f93e._0x1aaf9b)+'ted'};if(_0x4043b0[_0x17eda9(0x2f2,0x265)](_0x4eadcb,_0x4043b0[_0x5bac0d(-_0x14f93e._0x2f9c1f,-_0x14f93e._0x4eff2c)])||_0x4043b0[_0x5bac0d(-0x17f,-_0x14f93e._0x3270fd)](_0x4eadcb,_0x17eda9(_0x14f93e._0x46737f,_0x14f93e._0x32be76)+_0x17eda9(0x362,0x207))){const _0x1d4e43=this[_0x17eda9(0x427,0x61e)][_0x5bac0d(-_0x14f93e._0x30404e,-0x22b)+_0x17eda9(0x4c4,_0x14f93e._0xdf08aa)],_0x2dcbdf=_0x18feb1??Math[_0x17eda9(_0x14f93e._0x810d9c,0x617)](0x1,this[_0x5bac0d(_0x14f93e._0x1e887f,-0x4b)]['clientCo'+_0x17eda9(0x4c4,_0x14f93e._0x3ab9eb)]),_0x373847=Boolean(this['gatewayI'+_0x5bac0d(-_0x14f93e._0x39ac9a,-_0x14f93e._0x46d3b9)+_0x17eda9(_0x14f93e._0x20545a,_0x14f93e._0x2f3cc6)]);_0x2dcbdf>0x0&&_0x4043b0[_0x5bac0d(-_0x14f93e._0x46313c,_0x14f93e._0x2d3c5b)](this['clientDe'+_0x17eda9(0x481,_0x14f93e._0x3d5f2d)+_0x17eda9(_0x14f93e._0x6a680,0x10a)],null)&&(this[_0x17eda9(0x63d,_0x14f93e._0x4fef12)+_0x5bac0d(_0x14f93e._0x4a7cdb,0xf)+_0x5bac0d(-0x3f5,-0x241)]=Date[_0x17eda9(0x3d1,0x316)]());const _0x2d3ff3={};_0x2d3ff3['clientCo'+'unt']=_0x2dcbdf,this['updateSn'+_0x17eda9(0x5e5,0x698)](_0x2d3ff3);if(_0x2dcbdf===0x0)this[_0x5bac0d(_0x14f93e._0x450caa,0x144)+_0x5bac0d(0x26,0x1e)+'t'](),this[_0x5bac0d(0x269,0x94)+'GatewayI'+_0x5bac0d(-_0x14f93e._0x3fd9b2,-_0x14f93e._0x46d3b9)](_0x17eda9(_0x14f93e._0x3a7d75,_0x14f93e._0x325956)+_0x17eda9(0x595,0x6ff)+'o');else{this['cancelGa'+_0x17eda9(_0x14f93e._0x5b916e,0x131)+'eClose'](_0x5bac0d(-0xbd,_0x14f93e._0x4d1b59)+_0x17eda9(0x5a4,_0x14f93e._0x56a807)+_0x17eda9(0x4e7,0x43e));_0x4043b0[_0x5bac0d(-_0x14f93e._0x326283,-_0x14f93e._0xc2a2c2)](shouldRecycleGatewayForFreshClient,_0x1d4e43,_0x2dcbdf,this[_0x5bac0d(-0x80,_0x14f93e._0x14f52c)+_0x17eda9(0x54f,_0x14f93e._0x3deec1)](),_0x373847)&&(this[_0x5bac0d(-_0x14f93e._0x50ffcf,0x55)](_0x4043b0[_0x5bac0d(-0x2a4,-0x1c8)]),this[_0x17eda9(_0x14f93e._0x1551f5,0x2a4)+_0x17eda9(0x47d,0x680)]());if(this[_0x5bac0d(-_0x14f93e._0x2fcbef,_0x14f93e._0x14f52c)+_0x17eda9(_0x14f93e._0xc96ca6,_0x14f93e._0x18be7b)]()){const _0xb0baca={};_0xb0baca[_0x5bac0d(0x1e,0x18c)+_0x5bac0d(-0x96,-_0x14f93e._0x8df858)]=!![],_0xb0baca['lastErro'+'r']=null,this['updateSn'+_0x5bac0d(_0x14f93e._0x5c39d3,0x173)](_0xb0baca),this[_0x17eda9(_0x14f93e._0x55345a,_0x14f93e._0x56bd3e)](_0x5bac0d(-_0x14f93e._0x477999,-0x2f)+_0x17eda9(_0x14f93e._0x142c81,0x21f)+'en\x20since'+_0x17eda9(0x338,0x2b8)+_0x17eda9(_0x14f93e._0x40a7e6,_0x14f93e._0x466c9d)+this[_0x5bac0d(-_0x14f93e._0x66e132,-_0x14f93e._0x36ec49)+_0x17eda9(_0x14f93e._0x389e40,_0x14f93e._0x2bad34)](this['gatewayC'+'onnected'+_0x17eda9(0x320,_0x14f93e._0x2c7584)])+(_0x5bac0d(-0x106,-0x19)+_0x17eda9(_0x14f93e._0x3fe7e8,0x3c1)+'d=')+this[_0x17eda9(_0x14f93e._0xedcd82,_0x14f93e._0x5f2630)+'andshake'+_0x17eda9(0x3c3,_0x14f93e._0x568b93)]);}this[_0x17eda9(0x5dd,_0x14f93e._0x4aa87e)+_0x17eda9(_0x14f93e._0x1998af,0x60d)+_0x17eda9(0x26f,_0x14f93e._0x5b6005)]();}this[_0x17eda9(_0x14f93e._0x55345a,0x45b)](_0x17eda9(_0x14f93e._0x59f90d,0x3e1)+'ntrol\x20ev'+_0x17eda9(0x391,_0x14f93e._0x5ca385)+_0x4eadcb+_0x17eda9(0x239,_0x14f93e._0x5c5f12)+_0x2dcbdf+(_0x17eda9(0x5ca,_0x14f93e._0x1d74dc)+_0x17eda9(_0x14f93e._0x12274f,0x4af)+_0x17eda9(0x38b,0x4c1))+this[_0x17eda9(_0x14f93e._0xaceaaa,0x336)+_0x5bac0d(_0x14f93e._0x10efa4,0x193)](this[_0x17eda9(_0x14f93e._0x148da4,0x4e4)+_0x5bac0d(_0x14f93e._0x54e117,0xf)+_0x17eda9(0x231,0x9b)])+_0x17eda9(_0x14f93e._0x39f6bc,0x153)+this['pendingG'+_0x5bac0d(0x1df,_0x14f93e._0x3930cd)+'ssages'][_0x5bac0d(_0x14f93e._0x3577d3,-0x4e)]);return;}if(_0x4eadcb===_0x4043b0[_0x17eda9(_0x14f93e._0x30b026,0x177)]){this[_0x17eda9(_0x14f93e._0xedcd82,_0x14f93e._0x1e580b)+'andshake'+_0x17eda9(0x3c3,_0x14f93e._0x2a8b2d)]=![];const _0x3ede11={};_0x3ede11[_0x5bac0d(-0x396,-0x22b)+_0x5bac0d(-0x141,_0x14f93e._0x51a357)]=0x0,this['updateSn'+_0x5bac0d(_0x14f93e._0x1d96a1,0x173)](_0x3ede11),this[_0x5bac0d(0x45,0x144)+'cesRecen'+'t'](),this[_0x17eda9(_0x14f93e._0x1420c3,0x538)+'GatewayI'+_0x17eda9(0x2f7,_0x14f93e._0x186d02)](_0x17eda9(0x59a,0x6bf)+_0x5bac0d(0xb1,_0x14f93e._0x42cd9a)+_0x5bac0d(0xce,0xbc)),this[_0x5bac0d(-_0x14f93e._0x5c6a29,_0x14f93e._0x1ae086)](_0x17eda9(_0x14f93e._0x59f90d,_0x14f93e._0x348d08)+_0x17eda9(_0x14f93e._0x1f86ae,_0x14f93e._0x94d98b)+_0x5bac0d(-0x218,-0x126)+_0x17eda9(0x322,0x2d2)+_0x5bac0d(-_0x14f93e._0xa1d098,-0x17a)+_0x17eda9(0x2eb,_0x14f93e._0xe248af)+_0x5bac0d(_0x14f93e._0x18f486,0x13f)+_0x5bac0d(-0x2,-0x1f3)+this[_0x17eda9(0x255,0xa3)+_0x5bac0d(-_0x14f93e._0x89b5a6,_0x14f93e._0x20ddb6)](this[_0x5bac0d(_0x14f93e._0x23920,_0x14f93e._0x29222d)+_0x5bac0d(-_0x14f93e._0x4ac686,_0x14f93e._0x851dbe)+_0x17eda9(_0x14f93e._0x24f307,0x2d9)])+('\x20sinceGa'+_0x17eda9(0x46d,_0x14f93e._0x435424)+_0x17eda9(0x34e,0x2c8))+this[_0x5bac0d(-0x209,-_0x14f93e._0x36ec49)+_0x17eda9(0x605,0x47f)](this[_0x17eda9(0x5fe,0x6cc)+_0x17eda9(0x2a6,_0x14f93e._0x27c5d2)+'AtMs']));return;}function _0x17eda9(_0x21e0b0,_0x1db556){return _0x6eb3(_0x1db556,_0x21e0b0-0x37d);}function _0x5bac0d(_0x45cee8,_0x3e65db){return _0x6eb3(_0x45cee8,_0x3e65db- -_0x4fdd1b._0x236dbf);}this[_0x5bac0d(_0x14f93e._0x1fb7c0,0x55)](_0x17eda9(0x3e5,_0x14f93e._0x20ac6f)+_0x5bac0d(0x1c0,_0x14f93e._0x33d43c)+'ent='+_0x4eadcb);}[_0x11b7ab(-0x1ea,-0x41)+_0x11b7ab(0x1f0,0xc4)+_0x11b7ab(-0x104,0xc2)+'sage'](_0x200f81){const _0x4923b4={_0x93c8bd:0x5d1,_0x694c18:0x8ef,_0xebb851:0x417,_0x3f2fb8:0x3d5,_0x5e1223:0x8c4,_0x493353:0x4cc,_0x3e663c:0x723,_0x343581:0x4bc,_0x262935:0x49c,_0x4b5b1a:0x847,_0x4b35dd:0x6ba,_0x70f20c:0x64d,_0x2c41c1:0x439,_0x1307cf:0x2e5,_0x2e93e7:0x78b,_0x52dc0f:0x5f9,_0x2a7a31:0x4ae,_0x28a887:0x57f,_0x5dfb2b:0x7f9,_0x58e25c:0x667,_0x4d1d12:0x643,_0x3b330b:0x5c6,_0x251106:0x642,_0x10bc85:0x7f2,_0x1f7267:0x375,_0x5b91c9:0x3ce,_0x41ff60:0x7e5,_0x461363:0x74b,_0x1450ae:0x306,_0x1d9fe9:0x338,_0x571ca6:0x515,_0x494f03:0x6fe,_0x4ef292:0x512,_0x53fdb6:0x671,_0x326e28:0x630,_0x585241:0x3de,_0x1efac1:0x46d,_0x62a9ad:0x838,_0xf7fece:0x3ec,_0x4cb948:0x3a4,_0x1b5864:0x82f,_0x3a2d51:0x668,_0x5755a6:0x781,_0x337b94:0x5fe,_0x4e9f78:0x8cf,_0x396c4e:0x691,_0x4c7580:0x7b3,_0x59d62d:0x532,_0x1bdf23:0x62d},_0x27c63a={_0x3d6d07:0x3c5};function _0x275497(_0x226ad9,_0x1bf41e){return _0x11b7ab(_0x226ad9,_0x1bf41e-0x576);}const _0x5ed001={'jpbGv':function(_0x2f0ae1,_0x3a406f,_0x56d2e0){return _0x2f0ae1(_0x3a406f,_0x56d2e0);},'aDLMi':function(_0x4b5e58,_0x299441){return _0x4b5e58(_0x299441);}},_0xccf874=_0x200f81[_0x526339(0x74a,_0x4923b4._0x93c8bd)]===_0x526339(0x470,0x3d5)&&isConnectHandshakeRequest(_0x200f81[_0x275497(0x3ca,0x586)]);if(_0x200f81[_0x275497(_0x4923b4._0x694c18,0x782)]===_0x526339(0x599,0x3d5)){const _0x41c125=summarizeJsonFrame(_0x200f81[_0x526339(_0x4923b4._0xebb851,_0x4923b4._0x3f2fb8)]);_0x41c125&&this[_0x275497(_0x4923b4._0x5e1223,0x702)](_0x526339(0x37a,_0x4923b4._0x493353)+_0x275497(0x88f,_0x4923b4._0x3e663c)+_0x41c125+('\x20handsha'+_0x526339(_0x4923b4._0x343581,_0x4923b4._0x262935))+_0xccf874+('\x20gateway'+_0x275497(_0x4923b4._0x4b5b1a,_0x4923b4._0x4b35dd))+this['isGatewa'+_0x526339(_0x4923b4._0x70f20c,0x5d9)]()+_0x526339(_0x4923b4._0x2c41c1,0x2de)+this[_0x275497(_0x4923b4._0x1307cf,0x488)+_0x275497(_0x4923b4._0x2e93e7,0x86c)+_0x526339(0x42a,_0x4923b4._0x52dc0f)][_0x526339(0x60d,_0x4923b4._0x2a7a31)]);}const _0x1e410e=this[_0x526339(0x180,0x2bf)+'ocket'];if(!_0x1e410e||_0x1e410e[_0x275497(0x6d0,_0x4923b4._0x28a887)+'te']!==_0x17e531[_0x526339(0x592,0x556)]){this[_0x526339(_0x4923b4._0x5dfb2b,_0x4923b4._0x58e25c)+_0x526339(0x7c2,_0x4923b4._0x4d1d12)+_0x526339(0x1b3,0x2f9)]();if(_0x5ed001[_0x526339(0x781,_0x4923b4._0x3b330b)](shouldDropStaleConnectAfterGatewayReopen,_0x5ed001[_0x275497(_0x4923b4._0x251106,_0x4923b4._0x10bc85)](Boolean,_0x1e410e&&_0x1e410e[_0x526339(_0x4923b4._0x1f7267,_0x4923b4._0x5b91c9)+'te']===_0x17e531['OPEN']),_0xccf874)){this[_0x275497(0x636,0x702)]('stale\x20co'+_0x275497(_0x4923b4._0x41ff60,_0x4923b4._0x461363)+_0x526339(_0x4923b4._0x1450ae,_0x4923b4._0x1d9fe9)+'ter\x20gate'+_0x275497(0x331,_0x4923b4._0x571ca6)+_0x526339(0x61a,0x601)+_0x526339(_0x4923b4._0x494f03,_0x4923b4._0x4ef292)+_0x526339(0x63f,_0x4923b4._0x53fdb6)+_0x526339(0x6b8,_0x4923b4._0x326e28));return;}this[_0x275497(_0x4923b4._0x585241,0x59c)+_0x275497(0x4a2,_0x4923b4._0x1efac1)+_0x526339(0x3e9,0x3a4)+'e'](_0x200f81);return;}if(!this[_0x526339(_0x4923b4._0x62a9ad,0x67e)+_0x275497(0x6e9,0x513)+_0x275497(0x71e,0x5fe)]){if(!_0xccf874){this[_0x526339(_0x4923b4._0xf7fece,0x3eb)+'ingGatew'+_0x526339(0x3db,_0x4923b4._0x4cb948)+'e'](_0x200f81);return;}this[_0x275497(0x633,_0x4923b4._0x1b5864)+_0x275497(_0x4923b4._0x3a2d51,0x513)+_0x275497(_0x4923b4._0x5755a6,_0x4923b4._0x337b94)]=!![],this[_0x275497(_0x4923b4._0x4e9f78,0x702)](_0x275497(_0x4923b4._0x396c4e,0x67e)+_0x275497(0x5ea,0x790)+'e\x20starte'+_0x275497(0x687,_0x4923b4._0x4c7580)+'='+this[_0x275497(_0x4923b4._0x59d62d,0x488)+'atewayMe'+_0x526339(_0x4923b4._0x1bdf23,0x5f9)]['length']);}function _0x526339(_0x85ad8b,_0x2c8242){return _0x11b7ab(_0x85ad8b,_0x2c8242-_0x27c63a._0x3d6d07);}this[_0x526339(0x4c7,0x5e9)+_0x526339(0x532,0x5ec)](_0x200f81);}[_0x11b7ab(0x31d,0x2a2)+_0x6eb3(0x3a7,0x23c)+'nected'](){const _0xeee769={_0x12a3c1:0x31c,_0x32e8ba:0x2a1,_0x46e46e:0x856,_0x5bf7e0:0x244,_0x181af9:0x33e,_0x5d105a:0x457,_0x51f719:0xdc,_0xbc239e:0x232,_0x293761:0x743,_0x22c8e3:0x6c8,_0x534f64:0xbb,_0x13c1c7:0x576,_0x4cea01:0x3da,_0x22688e:0x62,_0x39d720:0x21c,_0x48027b:0x3a3,_0x3bc78c:0x39c,_0x59e0f9:0x3fa,_0x56c8e4:0x3b1,_0x4ae1a1:0x39c,_0x3bb451:0x289,_0x550aa3:0x2a2,_0x565a6a:0x2d6,_0x3f2983:0x149,_0x271673:0x150,_0x2a636e:0xe0,_0x29a903:0x80,_0x21b36f:0x14b,_0x4d12fc:0x5e7,_0x3d8e5b:0x563},_0x556fea={_0x2877a1:0x237,_0x1dd640:0x527,_0x2bfa10:0x304,_0x4c5eaa:0x35d,_0x2020fa:0x12b,_0x12b941:0x12c,_0x1aae4a:0x2c5,_0x38e4f4:0x1fb,_0x3e1b40:0x15e,_0x3b3ae5:0x2e,_0x3cb8d5:0x4db,_0x432b23:0x36f,_0x2fe010:0x24,_0x3dcae5:0x40,_0xcacc59:0x2f5,_0x169271:0x1c8,_0x294ea2:0x6d,_0x871a15:0xb0,_0x2297e0:0x333,_0xf25b3:0x2b,_0x57d903:0x1dd,_0x44df21:0x1ea,_0x509150:0x26c,_0x1d6a01:0x2e4,_0x4f815a:0x26f,_0x23f19a:0x5b,_0xbdd6d1:0x2d},_0x1c431e={_0x82a8c0:0xcd},_0x3910c8={_0x2af393:0x42c},_0xd4e262={_0x1e6683:0x591,_0x472f77:0xe0,_0x5b2cb1:0x9b},_0x55dc3e={_0x53f050:0x1f3,_0xe8c558:0x425},_0x66f3c3={_0x3bacd4:0x673,_0x25f72c:0x57a,_0x1270f3:0x67d,_0x1fd184:0xef,_0x1d6a30:0x602,_0x1f98db:0x3f4,_0x4231bf:0x232,_0x261d45:0x71,_0x3969db:0x193,_0x549612:0x408,_0x189255:0x486,_0x337c8f:0x4b2,_0xa963a2:0x9e,_0x2a4ffc:0x8a,_0x2a872b:0xcb,_0x3fc9bf:0x3d0,_0x3c8280:0x669,_0x337405:0x2c0,_0x29706e:0x74e,_0x79a63f:0x615,_0x52f6f6:0x318},_0x5d270d={_0x3e1954:0x40f};function _0x10599e(_0x3a09b4,_0x525377){return _0x6eb3(_0x525377,_0x3a09b4-0x19);}const _0x28cb08={'oskFP':function(_0x296eaf,_0x2ffc57){return _0x296eaf(_0x2ffc57);},'lWXWM':function(_0x5ed097,_0x3ad5e7){return _0x5ed097===_0x3ad5e7;},'OPOww':function(_0x4bb8bd,_0x5a236a){return _0x4bb8bd*_0x5a236a;},'Nheau':_0x6fc4ff(0x22d,_0xeee769._0x12a3c1),'OYbaA':'close'};if(this[_0x6fc4ff(0x74a,0x5e6)]||!this[_0x10599e(0x21,-0x15a)+_0x10599e(0x284,_0xeee769._0x32e8ba)]()||this[_0x6fc4ff(_0xeee769._0x46e46e,0x6ad)+'onnectin'+'g']||this[_0x6fc4ff(0x561,0x584)+_0x10599e(0x1eb,_0xeee769._0x5bf7e0)]()||!this[_0x6fc4ff(_0xeee769._0x181af9,0x483)+_0x6fc4ff(0x6a6,0x513)]())return;this[_0x6fc4ff(0x2c3,_0xeee769._0x5d105a)+_0x10599e(-_0xeee769._0x51f719,-_0xeee769._0xbc239e)+_0x6fc4ff(_0xeee769._0x293761,_0xeee769._0x22c8e3)](_0x10599e(-_0xeee769._0x534f64,-0x1d6)+_0x10599e(0x274,0x17f)+'t_reques'+_0x10599e(0x1ca,-0xe)),this['gatewayC'+'onnectin'+'g']=!![],this[_0x6fc4ff(0x681,_0xeee769._0x13c1c7)](_0x6fc4ff(_0xeee769._0x4cea01,0x4f2)+_0x6fc4ff(0x612,0x51d)+'start\x20ur'+'l='+this[_0x10599e(-_0xeee769._0x22688e,-_0xeee769._0x39d720)][_0x6fc4ff(_0xeee769._0x48027b,_0xeee769._0x3bc78c)+'rl']);const _0x211b66=new _0x17e531(this[_0x6fc4ff(_0xeee769._0x59e0f9,_0xeee769._0x56c8e4)][_0x6fc4ff(0x49d,_0xeee769._0x4ae1a1)+'rl'],{'maxPayload':_0x28cb08[_0x10599e(-0x87,-_0xeee769._0x3bb451)](0x19,0x400)*0x400});this[_0x6fc4ff(_0xeee769._0x550aa3,0x2e4)+_0x10599e(_0xeee769._0x565a6a,0x138)]=_0x211b66,_0x211b66['once'](_0x28cb08[_0x10599e(_0xeee769._0x3f2983,0x2)],()=>{if(this[_0xc3cb99(_0x66f3c3._0x3bacd4,_0x66f3c3._0x25f72c)]||this['gatewayS'+_0xc3cb99(0x75c,_0x66f3c3._0x1270f3)]!==_0x211b66){_0x211b66[_0x4ff91d(0x12,_0x66f3c3._0x1fd184)]();return;}this['gatewayC'+'onnectin'+'g']=![],this[_0xc3cb99(_0x66f3c3._0x1d6a30,0x637)+'andshake'+_0xc3cb99(_0x66f3c3._0x1f98db,0x406)]=![],this[_0xc3cb99(0x4fc,0x641)+'onnected'+_0x4ff91d(-0x40,-_0x66f3c3._0x4231bf)]=Date[_0x4ff91d(_0x66f3c3._0x261d45,0x1c7)]();const _0xd2f8e3={};_0xd2f8e3[_0x4ff91d(0x29e,0x171)+_0xc3cb99(0x222,0x2e9)]=!![],_0xd2f8e3[_0x4ff91d(0x6,-_0x66f3c3._0x3969db)+'r']=null;function _0xc3cb99(_0x544e2b,_0xd86e58){return _0x6fc4ff(_0x544e2b,_0xd86e58- -0x6c);}this['updateSn'+_0x4ff91d(0x285,0x351)](_0xd2f8e3);function _0x4ff91d(_0x455475,_0x4c6a2a){return _0x6fc4ff(_0x4c6a2a,_0x455475- -_0x5d270d._0x3e1954);}this[_0xc3cb99(0x342,0x50a)](_0xc3cb99(_0x66f3c3._0x549612,_0x66f3c3._0x189255)+_0xc3cb99(0x50b,_0x66f3c3._0x337c8f)+_0x4ff91d(_0x66f3c3._0xa963a2,-_0x66f3c3._0x2a4ffc)+_0x4ff91d(0x241,_0x66f3c3._0x2a872b)+'andMs='+this['elapsedS'+_0x4ff91d(0x2a5,_0x66f3c3._0x3fc9bf)](this[_0xc3cb99(_0x66f3c3._0x3c8280,0x680)+_0x4ff91d(0x121,_0x66f3c3._0x337405)+_0xc3cb99(0x23d,0x274)])),this[_0xc3cb99(_0x66f3c3._0x29706e,_0x66f3c3._0x79a63f)+'dingGate'+_0xc3cb99(0x395,0x4c6)+_0xc3cb99(_0x66f3c3._0x52f6f6,0x3bb)]();}),_0x211b66['on'](_0x10599e(0x8b,-0x53),(_0x5e496c,_0x46bf3e)=>{const _0x1bbce4={_0x2910c9:0xb4};function _0x43a8e4(_0x3e4703,_0x3b8ddf){return _0x6fc4ff(_0x3e4703,_0x3b8ddf-_0x1bbce4._0x2910c9);}function _0x1fa475(_0x19912c,_0x431990){return _0x6fc4ff(_0x431990,_0x19912c- -0x2b9);}this['handleGa'+_0x1fa475(_0x55dc3e._0x53f050,0x1fe)+_0x43a8e4(0x567,_0x55dc3e._0xe8c558)](_0x5e496c,_0x46bf3e);}),_0x211b66[_0x10599e(_0xeee769._0x271673,_0xeee769._0x2a636e)](_0x10599e(-_0xeee769._0x29a903,-_0xeee769._0x21b36f),_0x6ce3ab=>{const _0x20bee8={_0x3470a2:0x8};function _0x51a673(_0x5cfd8c,_0x30f2bf){return _0x6fc4ff(_0x30f2bf,_0x5cfd8c-_0x20bee8._0x3470a2);}function _0x377200(_0x494559,_0x2baeed){return _0x6fc4ff(_0x2baeed,_0x494559- -0x48a);}this['log'](_0x51a673(0x4fa,_0xd4e262._0x1e6683)+_0x377200(-_0xd4e262._0x472f77,-0xbd)+_0x28cb08[_0x377200(-_0xd4e262._0x5b2cb1,-0x11e)](String,_0x6ce3ab));});function _0x6fc4ff(_0x4f06c5,_0x58bca1){return _0x6eb3(_0x4f06c5,_0x58bca1-_0x3910c8._0x2af393);}_0x211b66[_0x6fc4ff(_0xeee769._0x4d12fc,_0xeee769._0x3d8e5b)](_0x28cb08['OYbaA'],(_0x2391d1,_0x3aa962)=>{const _0x5d8f3e={_0x402c9b:0x9f};this[_0x898d78(0x132,-0x62)+_0x3d99d9(0x236,_0x556fea._0x2877a1)]===_0x211b66&&(this[_0x898d78(0xc4,-0x62)+_0x898d78(_0x556fea._0x1dd640,0x3a3)]=null);this[_0x3d99d9(_0x556fea._0x2bfa10,0x1fb)+'onnectin'+'g']=![];function _0x898d78(_0x3c6081,_0x48222b){return _0x10599e(_0x48222b-_0x1c431e._0x82a8c0,_0x3c6081);}function _0x3d99d9(_0x4f0476,_0x3e1887){return _0x10599e(_0x3e1887- -_0x5d8f3e._0x402c9b,_0x4f0476);}this[_0x898d78(0x25f,_0x556fea._0x4c5eaa)+_0x3d99d9(0x4b,-_0x556fea._0x2020fa)+_0x898d78(-0x1c,_0x556fea._0x12b941)]=![],this[_0x3d99d9(_0x556fea._0x1aae4a,_0x556fea._0x38e4f4)+_0x3d99d9(-0xfe,-0x15d)+_0x898d78(_0x556fea._0x3e1b40,0x89)]=null,this[_0x3d99d9(-0xc0,-_0x556fea._0x3b3ae5)+'apshot']({'gatewayConnected':![],'lastError':_0x28cb08[_0x898d78(_0x556fea._0x3cb8d5,_0x556fea._0x432b23)](_0x2391d1,0x3e8)?this[_0x3d99d9(-0x41,_0x556fea._0x2fe010)]['lastErro'+'r']:_0x3d99d9(-0xeb,_0x556fea._0x3dcae5)+_0x3d99d9(_0x556fea._0xcacc59,_0x556fea._0x169271)+(_0x3aa962[_0x898d78(0x3be,0x20e)]()||_0x2391d1)}),this['log'](_0x3d99d9(-0x174,0x40)+_0x3d99d9(0x315,0x23d)+_0x898d78(-_0x556fea._0x294ea2,_0x556fea._0x871a15)+'e='+_0x2391d1+'\x20reason='+(_0x3aa962['toString']()||_0x3d99d9(0x15b,0x5c))+(_0x898d78(0x3e5,_0x556fea._0x2297e0)+_0x3d99d9(-0x149,-_0x556fea._0xf25b3)+_0x3d99d9(-_0x556fea._0x57d903,-0x78))+this['elapsedS'+'ince'](this['clientDe'+_0x898d78(0x3af,_0x556fea._0x44df21)+_0x3d99d9(-_0x556fea._0x509150,-0x1d2)])),this[_0x898d78(_0x556fea._0x1d6a01,_0x556fea._0x4f815a)+_0x3d99d9(-_0x556fea._0x23f19a,_0x556fea._0xbdd6d1)+'econnect']();});}[_0x6eb3(0x140,-0xa2)+_0x6eb3(0x1ee,0x80)+_0x11b7ab(-0xcf,-0x79)](_0x160712,_0x38b3bc){const _0x432fcb={_0x50a29c:0xf1,_0x34ed0a:0x190,_0x34c988:0x3df,_0x549615:0x2ac,_0x4526db:0x190,_0xdfbb55:0x139,_0x482ca3:0x185,_0x2a8a3e:0x411,_0x1d3b9d:0x342,_0x482618:0x129,_0x2ed255:0xdc,_0x233833:0x1fd,_0x129398:0x9,_0x5cfa2d:0x5a,_0x4717f2:0x1ae,_0x146ad3:0x153,_0x17532a:0x6f,_0x3c8dd4:0x160,_0x514535:0x1b4,_0x1a1861:0x2c},_0x2a8418={_0x5d8038:0x138},_0x2edb39={};_0x2edb39[_0x39fda4(-_0x432fcb._0x50a29c,-_0x432fcb._0x34ed0a)]=function(_0x4b38a9,_0x395b51){return _0x4b38a9!==_0x395b51;};const _0x3f47e0=_0x2edb39,_0x16f180=this['relaySoc'+_0x396475(_0x432fcb._0x34c988,_0x432fcb._0x549615)];function _0x396475(_0x5924d5,_0x4b6ee1){return _0x11b7ab(_0x5924d5,_0x4b6ee1-0x8c);}if(!_0x16f180||_0x3f47e0[_0x39fda4(-0x114,-_0x432fcb._0x4526db)](_0x16f180[_0x396475(-_0x432fcb._0xdfbb55,0x95)+'te'],_0x17e531[_0x39fda4(0x1ec,0x59)]))return;if(_0x38b3bc){_0x16f180[_0x39fda4(0x183,_0x432fcb._0x482ca3)](normalizeBinary(_0x160712));return;}const _0x33639e=normalizeText(_0x160712);if(_0x33639e==null)return;const _0x4b4160=summarizeJsonFrame(_0x33639e);_0x4b4160&&this['log']('gateway\x20'+_0x396475(_0x432fcb._0x2a8a3e,_0x432fcb._0x1d3b9d)+_0x4b4160+(_0x396475(0x4ec,0x31b)+_0x396475(0x158,_0x432fcb._0x482618)+_0x396475(0x2e5,_0x432fcb._0x2ed255))+this[_0x39fda4(-0x3c4,-0x21e)+_0x39fda4(-0x16,0x192)](this[_0x396475(0x1f1,0x38e)+'mandStar'+'tedAtMs'])+('\x20sinceGa'+_0x396475(_0x432fcb._0x233833,0x1be)+'nMs=')+this[_0x396475(_0x432fcb._0x129398,-_0x432fcb._0x5cfa2d)+_0x39fda4(0x395,0x192)](this['gatewayC'+_0x396475(-0xab,-_0x432fcb._0x129398)+_0x39fda4(-_0x432fcb._0x4717f2,-_0x432fcb._0x146ad3)]));const _0x132b06=parsePairingRequestFromError(_0x33639e);_0x132b06&&this['addPendi'+_0x396475(_0x432fcb._0x17532a,0x90)+'quest'](_0x132b06);const _0x33e1cb=parsePairResolvedEvent(_0x33639e);function _0x39fda4(_0x40fe6d,_0x5cb482){return _0x11b7ab(_0x40fe6d,_0x5cb482- -_0x2a8418._0x5d8038);}_0x33e1cb&&this[_0x39fda4(_0x432fcb._0x3c8dd4,-0xa7)+_0x396475(0x3ad,_0x432fcb._0x514535)+'esolved'](_0x33e1cb[_0x39fda4(_0x432fcb._0x1a1861,0x186)+'d'],_0x33e1cb[_0x39fda4(-0x13,-0x183)]),_0x16f180[_0x39fda4(0x221,_0x432fcb._0x482ca3)](_0x33639e);}[_0x6eb3(0x3b8,0x255)+_0x6eb3(-0x1e4,-0xdb)+_0x11b7ab(0x2e6,0x148)+_0x11b7ab(0x1e3,0x3d)](){const _0x54ac84={_0xe97d44:0x5ea,_0x38f574:0x6b8,_0x57b043:0x288,_0x4976f1:0x2cb,_0x4ed5f6:0x16a,_0x290bb4:0x35f,_0x6025a5:0x15a,_0x1766c1:0x3d3,_0x461d3f:0x6a4,_0x5efc7a:0x4a2,_0x5345ca:0x6,_0x174026:0x59d,_0x46a879:0x3c9,_0x4d8b9a:0x62b,_0x14435c:0x4b8,_0x37adea:0x2cd,_0x13524e:0xa2,_0x2a4f81:0x790,_0xc90f25:0x5ed},_0x593ca2={_0x12836d:0x3fb},_0x2e3409={_0x209d39:0xab},_0x3016e7={};_0x3016e7[_0x3c3497(0x698,_0x54ac84._0xe97d44)]=function(_0x22d9e3,_0x46c098){return _0x22d9e3!==_0x46c098;};const _0x52c179=_0x3016e7,_0x1fb4d0=this['gatewayS'+_0x3c3497(0x524,_0x54ac84._0x38f574)];if(!_0x1fb4d0||_0x1fb4d0[_0x3c3497(0x3d4,0x3c2)+'te']!==_0x17e531['OPEN'])return;const _0x1b1761=[],_0x5eb40d=[...this[_0x3c3497(_0x54ac84._0x57b043,_0x54ac84._0x4976f1)+_0x445c78(_0x54ac84._0x4ed5f6,_0x54ac84._0x290bb4)+'ssages']];this[_0x3c3497(_0x54ac84._0x6025a5,0x2cb)+'atewayMe'+_0x445c78(0x3cd,0x29d)]=[],this[_0x3c3497(_0x54ac84._0x1766c1,0x545)](_0x445c78(0x2dd,0x171)+_0x3c3497(_0x54ac84._0x461d3f,0x54f)+'eued='+_0x5eb40d[_0x3c3497(0x5b6,_0x54ac84._0x5efc7a)]);function _0x445c78(_0x2ef8a4,_0x1f246a){return _0x6eb3(_0x2ef8a4,_0x1f246a-_0x2e3409._0x209d39);}function _0x3c3497(_0x404caa,_0x3f6a95){return _0x6eb3(_0x404caa,_0x3f6a95-_0x593ca2._0x12836d);}for(const _0x55f24c of _0x5eb40d){if(!this['gatewayH'+_0x445c78(0x11,_0x54ac84._0x5345ca)+'Started']){if(_0x52c179[_0x3c3497(_0x54ac84._0x174026,0x5ea)](_0x55f24c['kind'],_0x3c3497(0x42d,_0x54ac84._0x46a879))||!isConnectHandshakeRequest(_0x55f24c['text'])){_0x1b1761[_0x3c3497(0x589,_0x54ac84._0x4d8b9a)](_0x55f24c);continue;}this[_0x3c3497(_0x54ac84._0x14435c,0x672)+'andshake'+'Started']=!![];}this[_0x445c78(0x308,0x28d)+_0x445c78(_0x54ac84._0x37adea,0x290)](_0x55f24c);}this[_0x445c78(_0x54ac84._0x13524e,-0x85)+_0x445c78(0x238,0x35f)+_0x3c3497(_0x54ac84._0x2a4f81,_0x54ac84._0xc90f25)]=_0x1b1761;}[_0x6eb3(0x196,0x1e2)+_0x11b7ab(0x1fa,0x227)](_0x45ccca){const _0x2c8fa5={_0x56cbc2:0x65,_0x118c04:0x75c,_0xcc2e20:0x569,_0xbdaa35:0x31e,_0x4c2ebc:0x319,_0x2ba18e:0x4a6,_0x3fded3:0x66e,_0x40838a:0x354,_0x1dc4fe:0x2f4,_0x5332ff:0x727,_0x5dfbf8:0x2cd,_0x571003:0x72b,_0x3f9b9d:0x738,_0x17992f:0x5a5},_0x146c78={_0x5bc76e:0x45d},_0x545068=this[_0x33c143(0x20f,_0x2c8fa5._0x56cbc2)+_0x250c05(_0x2c8fa5._0x118c04,_0x2c8fa5._0xcc2e20)];function _0x33c143(_0x1ab4a8,_0x126c7c){return _0x11b7ab(_0x126c7c,_0x1ab4a8-0x315);}function _0x250c05(_0x35f908,_0x3f6253){return _0x11b7ab(_0x3f6253,_0x35f908-_0x146c78._0x5bc76e);}if(!_0x545068||_0x545068[_0x33c143(_0x2c8fa5._0xbdaa35,_0x2c8fa5._0x4c2ebc)+'te']!==_0x17e531[_0x33c143(_0x2c8fa5._0x2ba18e,_0x2c8fa5._0x3fded3)]){this['pushPend'+_0x250c05(_0x2c8fa5._0x40838a,0x543)+_0x33c143(_0x2c8fa5._0x1dc4fe,0x14f)+'e'](_0x45ccca);return;}if(_0x45ccca[_0x250c05(0x669,_0x2c8fa5._0x5332ff)]===_0x33c143(0x325,_0x2c8fa5._0x5dfbf8)){_0x545068['send'](_0x45ccca['text']);return;}_0x545068[_0x250c05(0x71a,_0x2c8fa5._0x571003)](_0x45ccca[_0x250c05(_0x2c8fa5._0x3f9b9d,_0x2c8fa5._0x17992f)]);}[_0x6eb3(0x29a,0xbc)+_0x6eb3(0x367,0x280)+'st'](_0x5292bb,_0x117b3f){const _0x291094={_0x1166b7:0x217,_0x2e6986:0x2b5,_0x3a094a:0xee,_0x1a3070:0x64,_0x35336d:0x3b4,_0x3e9e04:0x68,_0x5ce3ac:0x14b,_0x5c9c73:0xd5,_0xddf867:0x26a,_0x4a52ec:0x217,_0x157e9f:0x12f},_0x265d48={_0x41483d:0x1ea},_0x2a5bc1={_0x1721fa:0x53},_0x3bcd5d={};function _0x117f91(_0x2a36ae,_0x5d1c40){return _0x6eb3(_0x5d1c40,_0x2a36ae-_0x2a5bc1._0x1721fa);}_0x3bcd5d['dSdIv']='text';const _0x210adf=_0x3bcd5d,_0x3b4aec=JSON[_0x117f91(_0x291094._0x1166b7,0x241)+'y']({'type':_0x3eefbd(0x101,_0x291094._0x2e6986),'id':_0x117f91(_0x291094._0x3a094a,-_0x291094._0x1a3070)+_0x2b14da(),'method':_0x5292bb,'params':_0x117b3f}),_0x2c7aca={};_0x2c7aca[_0x3eefbd(_0x291094._0x35336d,0x4f3)]=_0x210adf[_0x117f91(-0xb3,_0x291094._0x3e9e04)];function _0x3eefbd(_0x3b606e,_0xb7d95c){return _0x6eb3(_0xb7d95c,_0x3b606e-_0x265d48._0x41483d);}_0x2c7aca[_0x117f91(0x21,0x11f)]=_0x3b4aec,this[_0x117f91(-0x30,_0x291094._0x5ce3ac)+_0x117f91(_0x291094._0x5c9c73,0x9a)+_0x3eefbd(_0x291094._0xddf867,_0x291094._0x4a52ec)+_0x3eefbd(_0x291094._0x157e9f,0x3d)](_0x2c7aca);}[_0x6eb3(0x178,-0x24)+_0x11b7ab(0x152,0x142)](){const _0x43d684={_0x2622ff:0x188,_0x59df86:0x2fb,_0x393e5f:0x22a,_0x1a8346:0x230,_0x4c1ed7:0xc7,_0x3f5318:0x2f8,_0x2c1de7:0x22a,_0x506582:0x490,_0x3359a1:0x4fa,_0x23b09d:0x1e4,_0x5351b8:0x89,_0x480629:0x490,_0x5dc7dd:0x2fe,_0x4f6078:0x138,_0x2fafb4:0x1b2,_0x352a5b:0x2aa},_0x5d966a={_0x4e86f5:0x1cd};this['cancelGa'+_0x5e9556(-0x5c,-_0x43d684._0x2622ff)+'eClose']();function _0x5e9556(_0x1b4110,_0x3dc010){return _0x11b7ab(_0x1b4110,_0x3dc010- -0xd5);}this[_0x5e9556(-0x4,-0x1db)+_0x5e9556(_0x43d684._0x59df86,_0x43d684._0x393e5f)]?.[_0x9b2faf(0x204,_0x43d684._0x1a8346)](),this[_0x9b2faf(_0x43d684._0x4c1ed7,-0x83)+_0x5e9556(_0x43d684._0x3f5318,_0x43d684._0x2c1de7)]=null;function _0x9b2faf(_0x3cade2,_0x74b121){return _0x11b7ab(_0x74b121,_0x3cade2-_0x5d966a._0x4e86f5);}this[_0x9b2faf(_0x43d684._0x506582,_0x43d684._0x3359a1)+_0x9b2faf(0x159,0x7e)+'g']=![],this[_0x5e9556(0x1a5,_0x43d684._0x23b09d)+_0x5e9556(_0x43d684._0x5351b8,-0x138)+'Started']=![],this[_0x9b2faf(_0x43d684._0x480629,_0x43d684._0x5dc7dd)+_0x9b2faf(_0x43d684._0x4f6078,0x259)+_0x9b2faf(_0x43d684._0x2fafb4,_0x43d684._0x352a5b)]=null;}[_0x11b7ab(0x26,0x1cb)+'GatewayI'+'dleClose'](_0x3bcd0e){const _0x58eea8={_0x1db98c:0x4c7,_0xb22a9f:0x478,_0x11596e:0x42a,_0x2798ca:0x1e,_0x5ed31d:0x4f,_0x3c79b8:0x4ab,_0x27c0a9:0x3cb,_0x5a8ca7:0x30a,_0x3f0d4b:0x283,_0x276666:0x7e,_0x2b7452:0x26a,_0x52b980:0x173,_0x3c424d:0xda,_0x504064:0x3a4,_0x5e3c74:0x36,_0x30e57f:0x98,_0x4a33d3:0x6af,_0xec9903:0x4bc,_0x3d01aa:0x22d,_0x5aef15:0xa8,_0x50889e:0x15e,_0x49dd1d:0x3db,_0x39fc5b:0x3ef,_0x3d28d4:0x32e,_0x528c55:0x184,_0xd4f0cb:0x5b4,_0x4f7898:0x4a6,_0x45f3d2:0x97,_0x2e78ec:0xb4,_0x33a413:0x450,_0x1a1f41:0x2de,_0x465e69:0x5e3,_0x62613b:0x61,_0x2bf1d8:0x2f,_0x22528d:0x6a,_0x58810e:0x2dc,_0x384741:0x20a,_0xb53ae:0x1ec,_0x331fa0:0x373,_0x17f463:0x4df,_0x4ee157:0x454,_0x1cfb22:0x4ce,_0x2a3aa3:0x335,_0x29e2d8:0x65d,_0x53ec24:0x5ec,_0x5fed80:0x319,_0x2c5210:0x92,_0x58da23:0x3b,_0x19978f:0x395,_0x123aab:0x243,_0x358fac:0x2de},_0xf16e47={_0x54e64e:0x579,_0x3392e6:0x6b5,_0x12df6f:0x6b2,_0x3cff40:0x74a,_0x2a1f51:0x6a7,_0x679de:0x17a,_0x25b73d:0x1cb,_0x1870e9:0x26c,_0x503535:0x1b4,_0x55c5ca:0x365,_0x1f308f:0xc6,_0x828cd7:0x22b,_0x2ae4e7:0x3ca,_0x47fea9:0x3a4,_0x430bbf:0x15f,_0x1477db:0x6ba},_0x255f53={_0x2e06de:0x256},_0x3bcf87={_0x2f8942:0x98},_0x2d6171={'qElZB':_0x1c91c6(_0x58eea8._0x1db98c,_0x58eea8._0xb22a9f)+_0xaa3417(0x2a0,0x339),'MZpTn':_0x1c91c6(0x465,_0x58eea8._0x11596e)+'idle\x20clo'+_0xaa3417(-_0x58eea8._0x2798ca,_0x58eea8._0x5ed31d)+_0x1c91c6(_0x58eea8._0x3c79b8,_0x58eea8._0x27c0a9)+_0xaa3417(0x3f4,_0x58eea8._0x5a8ca7)+_0xaa3417(0xa4,_0x58eea8._0x3f0d4b)+_0xaa3417(0x1cc,_0x58eea8._0x276666)+'d','ZxKJs':function(_0x2f34bd,_0x3831f7){return _0x2f34bd(_0x3831f7);}};this[_0xaa3417(0x3a0,0x2cf)+'etryTime'+'r']&&(_0x2d6171['ZxKJs'](clearTimeout,this[_0xaa3417(_0x58eea8._0x2b7452,0x2cf)+_0xaa3417(_0x58eea8._0x52b980,_0x58eea8._0x3c424d)+'r']),this[_0xaa3417(0x307,0x2cf)+_0x1c91c6(_0x58eea8._0x504064,0x3a6)+'r']=null);function _0xaa3417(_0x31cdf6,_0x473327){return _0x6eb3(_0x31cdf6,_0x473327-_0x3bcf87._0x2f8942);}this[_0xaa3417(_0x58eea8._0x5e3c74,-_0x58eea8._0x30e57f)+'atewayMe'+_0x1c91c6(0x3b8,0x556)]=[];const _0x2d82e9={};_0x2d82e9[_0x1c91c6(0x2d8,0x22e)+'unt']=0x0,this[_0x1c91c6(0x3b2,0x3bc)+_0xaa3417(0x2c3,0x300)](_0x2d82e9);if(!this[_0x1c91c6(_0x58eea8._0x4a33d3,_0x58eea8._0xec9903)+_0xaa3417(_0x58eea8._0x3d01aa,0x26a)]()&&!this[_0xaa3417(0x2e2,0x319)+_0xaa3417(-_0x58eea8._0x5aef15,-0x1e)+'g']){this['log'](_0xaa3417(-0x4c,_0x58eea8._0x50889e)+_0x1c91c6(_0x58eea8._0x49dd1d,0x43d)+_0x1c91c6(_0x58eea8._0x39fc5b,0x46c)+_0xaa3417(_0x58eea8._0x3d28d4,_0x58eea8._0x528c55)+_0x1c91c6(_0x58eea8._0xd4f0cb,_0x58eea8._0x4f7898)+'n='+_0x3bcd0e),this['clientDe'+_0xaa3417(0x232,0x19c)+_0xaa3417(_0x58eea8._0x45f3d2,-_0x58eea8._0x2e78ec)]=null;return;}if(this[_0x1c91c6(_0x58eea8._0x33a413,0x50f)+_0x1c91c6(0x11a,_0x58eea8._0x1a1f41)+'Timer']){this['log'](_0x1c91c6(_0x58eea8._0x465e69,_0x58eea8._0x11596e)+_0xaa3417(-_0x58eea8._0x62613b,0xa7)+_0xaa3417(_0x58eea8._0x2bf1d8,-_0x58eea8._0x22528d)+_0xaa3417(0x186,0x2ff)+_0xaa3417(0x8e,0x176)+_0xaa3417(_0x58eea8._0x58810e,_0x58eea8._0x384741)+_0x3bcd0e);return;}const _0x224e46=this[_0x1c91c6(0x29a,0x2e9)]['gatewayI'+'dleDisco'+'nnectDel'+'ayMs']??GATEWAY_IDLE_DISCONNECT_DELAY_MS;function _0x1c91c6(_0x3f56ae,_0x2c8e95){return _0x6eb3(_0x3f56ae,_0x2c8e95-0x364);}this[_0x1c91c6(0x54f,0x4ae)](_0xaa3417(0x299,0x15e)+_0x1c91c6(_0x58eea8._0xb53ae,_0x58eea8._0x331fa0)+'se\x20sched'+_0xaa3417(0xf0,0x191)+_0x1c91c6(0x606,0x4a8)+_0x224e46+_0x1c91c6(0x4f0,_0x58eea8._0x17f463)+_0x3bcd0e+(_0xaa3417(0x31d,0x29c)+_0x1c91c6(0x44e,_0x58eea8._0x4ee157)+_0x1c91c6(_0x58eea8._0x1cfb22,_0x58eea8._0x2a3aa3))+this[_0xaa3417(0x163,-0x90)+_0x1c91c6(_0x58eea8._0x29e2d8,_0x58eea8._0x53ec24)](this[_0xaa3417(0x49d,_0x58eea8._0x5fed80)+_0xaa3417(_0x58eea8._0x2c5210,-0x3f)+_0xaa3417(0x18f,_0x58eea8._0x58da23)])),this[_0xaa3417(_0x58eea8._0x19978f,_0x58eea8._0x123aab)+_0x1c91c6(0x259,_0x58eea8._0x358fac)+'Timer']=setTimeout(()=>{function _0x85cca2(_0x3b99b5,_0x2f868a){return _0x1c91c6(_0x3b99b5,_0x2f868a-_0x255f53._0x2e06de);}const _0x11946a=_0x2d6171[_0x85cca2(0x545,_0xf16e47._0x54e64e)][_0x1abaa6(0x2ff,0x22d)]('|');let _0x468b0a=0x0;function _0x1abaa6(_0x2dd74f,_0x5bdbee){return _0x1c91c6(_0x2dd74f,_0x5bdbee- -0x280);}while(!![]){switch(_0x11946a[_0x468b0a++]){case'0':this['log'](_0x1abaa6(-0xf,0x1aa)+'closed\x20a'+'fter\x20idl'+_0x85cca2(_0xf16e47._0x3392e6,_0xf16e47._0x12df6f)+_0x85cca2(0x7ad,0x7bb)+_0x3bcd0e);continue;case'1':this[_0x85cca2(_0xf16e47._0x3cff40,0x765)+_0x85cca2(0x67a,0x534)+'Timer']=null;continue;case'2':if(this[_0x85cca2(_0xf16e47._0x2a1f51,0x611)+_0x1abaa6(_0xf16e47._0x679de,_0xf16e47._0x25b73d)]()){this[_0x1abaa6(0x3e5,0x22e)](_0x2d6171[_0x1abaa6(0x152,_0xf16e47._0x1870e9)]);return;}continue;case'3':const _0x344f9e={};_0x344f9e[_0x1abaa6(_0xf16e47._0x503535,_0xf16e47._0x55c5ca)+_0x85cca2(0x5bf,0x4e3)]=![],_0x344f9e['clientCo'+_0x1abaa6(_0xf16e47._0x1f308f,_0xf16e47._0x828cd7)]=0x0,this[_0x85cca2(0x546,0x612)+_0x85cca2(0x919,0x822)](_0x344f9e);continue;case'4':this[_0x1abaa6(_0xf16e47._0x2ae4e7,_0xf16e47._0x47fea9)+_0x1abaa6(_0xf16e47._0x430bbf,0x1e8)+'tedAtMs']=null;continue;case'5':this[_0x1abaa6(0x2af,0xc0)+_0x85cca2(0x87c,_0xf16e47._0x1477db)]();continue;}break;}},_0x224e46);}[_0x6eb3(0x2,0x2b)+_0x6eb3(0x5d,-0xf5)+_0x6eb3(0x49c,0x29c)](_0x11f4c9){const _0x47c059={_0x1ff921:0x183,_0x53427c:0x23b,_0x53ee28:0x321,_0x287d18:0x262,_0x13d8c2:0x1cd,_0x28662a:0x138,_0x5a5a41:0x21b};function _0x4cb71f(_0x42ea4d,_0x589c22){return _0x6eb3(_0x42ea4d,_0x589c22-0x206);}function _0x457d72(_0x214f4d,_0x5ee48f){return _0x6eb3(_0x214f4d,_0x5ee48f- -0x1dc);}if(!this[_0x457d72(-0x6,-0x31)+_0x457d72(-0x86,-0x262)+_0x457d72(-_0x47c059._0x1ff921,-_0x47c059._0x53427c)])return;clearTimeout(this[_0x457d72(0x63,-0x31)+'dleClose'+'Timer']),this['gatewayI'+_0x457d72(-_0x47c059._0x53ee28,-_0x47c059._0x287d18)+'Timer']=null,_0x11f4c9&&this[_0x4cb71f(0x4fb,0x350)]('gateway\x20'+_0x457d72(-0x46,-_0x47c059._0x13d8c2)+_0x457d72(-0x70,-0x20)+_0x4cb71f(0x51,_0x47c059._0x28662a)+_0x4cb71f(0x56,_0x47c059._0x5a5a41)+_0x11f4c9);}[_0x11b7ab(0x346,0x1cb)+_0x6eb3(-0xc8,0x93)+_0x6eb3(0x34b,0x18f)](){const _0x3a2d52={_0x8d26bf:0x74d,_0x51486e:0x194,_0x54a277:0x74b,_0xe4024d:0x2b9,_0x4f2013:0x3cb,_0x49674d:0x5aa,_0x1236ce:0x2e,_0x186293:0x1ff,_0x226991:0x13c,_0x5a487f:0xa8,_0x41d097:0x5b4,_0x43c894:0x30f,_0x156262:0x45a,_0x203410:0x369,_0x127f08:0x6ca},_0x500d88={_0x18fa6f:0x56f,_0x31b9c5:0x1b7,_0x3f5495:0x4b8,_0x112e99:0x714},_0x380436={_0x1b3e65:0x4f0},_0x450c74={'EIyde':function(_0x3eacb6,_0x285aac,_0x512e90){return _0x3eacb6(_0x285aac,_0x512e90);}};function _0x406242(_0x2ea6f0,_0x5c6f73){return _0x6eb3(_0x5c6f73,_0x2ea6f0-_0x380436._0x1b3e65);}function _0x335d6e(_0x3c6aa5,_0x38edac){return _0x6eb3(_0x3c6aa5,_0x38edac-0x4d);}if(this['stopped']||this[_0x406242(0x74b,_0x3a2d52._0x8d26bf)+_0x335d6e(_0x3a2d52._0x51486e,0x98)])return;const _0x1388e5=this['options'][_0x406242(_0x3a2d52._0x54a277,0x5dc)+_0x335d6e(0x3e1,_0x3a2d52._0xe4024d)+_0x406242(_0x3a2d52._0x4f2013,_0x3a2d52._0x49674d)]??RECONNECT_BASE_DELAY_MS,_0x54efd3=this[_0x335d6e(-0x51,-_0x3a2d52._0x1236ce)][_0x335d6e(_0x3a2d52._0x186293,0x2a8)+'tMaxDela'+_0x335d6e(0x1c2,_0x3a2d52._0x226991)]??RECONNECT_MAX_DELAY_MS,_0x1ccbd6=Math[_0x335d6e(_0x3a2d52._0x5a487f,0x73)](_0x54efd3,_0x1388e5*Math[_0x406242(_0x3a2d52._0x41d097,0x675)](0x1,this[_0x406242(0x4bc,_0x3a2d52._0x43c894)+'empt']));this[_0x335d6e(0x333,0x197)](_0x406242(0x451,0x3cf)+_0x335d6e(0x292,0x13e)+_0x406242(0x679,0x58b)+_0x406242(_0x3a2d52._0x156262,_0x3a2d52._0x203410)+'s='+_0x1ccbd6),this[_0x406242(0x74b,0x747)+_0x406242(0x53b,0x4f2)]=_0x450c74[_0x406242(_0x3a2d52._0x127f08,0x6ac)](setTimeout,()=>{const _0x33f4d7={_0x4c0255:0x498};this[_0x33d487(0x3c7,_0x500d88._0x18fa6f)+_0x33d487(_0x500d88._0x31b9c5,0x27e)]=null;function _0x49d9eb(_0x46fdba,_0x3c2302){return _0x335d6e(_0x46fdba,_0x3c2302-_0x33f4d7._0x4c0255);}function _0x33d487(_0x102bca,_0x48d23e){return _0x335d6e(_0x48d23e,_0x102bca-0x11f);}void this[_0x33d487(0x414,_0x500d88._0x3f5495)+_0x49d9eb(0x6a0,_0x500d88._0x112e99)]();},_0x1ccbd6);}[_0x6eb3(0x114,0x189)+_0x11b7ab(0x52,0xf5)+_0x6eb3(-0x96,-0x111)](){const _0x4ea6a2={_0x3a2b99:0x3d4,_0x3625b5:0x225,_0x77d444:0x8f,_0x1fb555:0x73,_0x1afdbb:0x3ff,_0x3378a4:0x2bd,_0x2e5a39:0x48f,_0x5ebad4:0x10,_0x5a34ad:0x6e5,_0x3ad74b:0x497,_0x42b547:0x1c1,_0x1f9f81:0x44f},_0x5b54c8={_0x28b7b3:0x655,_0x4d70f2:0x6ce,_0x5301c4:0x6f6,_0x2064ea:0x15b},_0x371345={_0x360297:0x366},_0x473178={'SbdKb':function(_0x205592,_0x576a68,_0x20abdb){return _0x205592(_0x576a68,_0x20abdb);}};if(this[_0x2aa30a(_0x4ea6a2._0x3a2b99,_0x4ea6a2._0x3625b5)]||this[_0x23015e(0x794,0x5df)+_0x23015e(0x215,0x3ea)+'r']||!this[_0x2aa30a(_0x4ea6a2._0x77d444,_0x4ea6a2._0x1fb555)+_0x2aa30a(0x3e4,0x2d6)]()||!this[_0x23015e(0x5ae,_0x4ea6a2._0x1afdbb)+_0x23015e(_0x4ea6a2._0x3378a4,_0x4ea6a2._0x2e5a39)]())return;function _0x23015e(_0x4df514,_0x701b33){return _0x11b7ab(_0x4df514,_0x701b33-_0x371345._0x360297);}const _0x468f41=this[_0x2aa30a(0x9d,-_0x4ea6a2._0x5ebad4)][_0x2aa30a(0x2e7,0x2a2)+_0x23015e(_0x4ea6a2._0x5a34ad,0x584)+_0x23015e(0x431,_0x4ea6a2._0x3ad74b)]??GATEWAY_RETRY_DELAY_MS;function _0x2aa30a(_0x550244,_0x49cd77){return _0x11b7ab(_0x550244,_0x49cd77-0x29);}this[_0x2aa30a(0x102,0x2a2)+_0x2aa30a(_0x4ea6a2._0x42b547,0xad)+'r']=_0x473178[_0x23015e(_0x4ea6a2._0x1f9f81,0x535)](setTimeout,()=>{const _0x233f1c={_0x55287c:0x1ed};function _0x1528cf(_0x4e8f6c,_0x379fbf){return _0x2aa30a(_0x379fbf,_0x4e8f6c-0x38a);}this[_0x8a2cef(0xf1,0xb5)+_0x8a2cef(0x1b,-0x140)+'r']=null;function _0x8a2cef(_0x42beeb,_0x349026){return _0x2aa30a(_0x42beeb,_0x349026- -_0x233f1c._0x55287c);}this[_0x1528cf(_0x5b54c8._0x28b7b3,_0x5b54c8._0x4d70f2)+_0x1528cf(0x631,_0x5b54c8._0x5301c4)+_0x1528cf(0x2e7,_0x5b54c8._0x2064ea)]();},_0x468f41);}[_0x6eb3(-0x2a,0x18a)+_0x6eb3(0x4a6,0x2b9)](){const _0x5c3369={_0x8c19dc:0x469,_0x33242f:0x660,_0x4e88bf:0x577,_0xac9bef:0x647,_0x1b71e9:0x5b5,_0xaf69d4:0x601,_0x3d02f4:0x432,_0x32bd33:0x6ab,_0x5882c2:0x63b,_0x5f7e82:0x7c3},_0x6c1834={_0x177615:0x1d2,_0x382b5e:0x405,_0x42d752:0x2d9,_0x1e0317:0x143,_0x57959f:0xa,_0x238e1f:0x3e5,_0x3742ef:0x48,_0x1b3483:0x13e,_0x3f9904:0x35,_0x5cca09:0xf3,_0x18a55a:0x11b,_0x378e3c:0x8b},_0x45bb23={};_0x45bb23['uHHlQ']=_0x492ed3(0x530,_0x5c3369._0x8c19dc)+_0x492ed3(_0x5c3369._0x33242f,_0x5c3369._0x4e88bf)+_0x2e573e(_0x5c3369._0xac9bef,0x623)+'t';const _0x4ae64d=_0x45bb23;function _0x492ed3(_0x16ea04,_0x555547){return _0x6eb3(_0x16ea04,_0x555547-0x516);}this[_0x2e573e(0x5a9,0x6d9)+_0x492ed3(0x500,0x58b)]();function _0x2e573e(_0x1b0ff0,_0x18c2ac){return _0x6eb3(_0x18c2ac,_0x1b0ff0-0x397);}this[_0x492ed3(_0x5c3369._0x1b71e9,_0x5c3369._0xaf69d4)+_0x492ed3(0x755,0x561)]=setInterval(()=>{const _0x5b77e6={_0x27c5fd:0x3a3},_0xfe10c5={_0x2227be:0x85},_0x4df7b6=this['relaySoc'+_0x4140ec(_0x6c1834._0x177615,0x73)];if(!_0x4df7b6||_0x4df7b6[_0x5b9d15(_0x6c1834._0x382b5e,_0x6c1834._0x42d752)+'te']!==_0x17e531[_0x4140ec(_0x6c1834._0x1e0317,-_0x6c1834._0x57959f)])return;const _0x27baba=this['options']['heartbea'+_0x5b9d15(_0x6c1834._0x238e1f,0x411)+'Ms']??HEARTBEAT_TIMEOUT_MS;function _0x5b9d15(_0x5018c8,_0x2c8481){return _0x2e573e(_0x2c8481- -_0xfe10c5._0x2227be,_0x5018c8);}function _0x4140ec(_0x24aafd,_0x4735e3){return _0x2e573e(_0x24aafd- -_0x5b77e6._0x27c5fd,_0x4735e3);}if(Date[_0x4140ec(_0x6c1834._0x3742ef,-0x130)]()-this[_0x5b9d15(0x3a3,0x2d3)+'yActivit'+'yMs']>_0x27baba){this[_0x4140ec(_0x6c1834._0x1b3483,0x173)](_0x4ae64d[_0x4140ec(-_0x6c1834._0x3f9904,_0x6c1834._0x5cca09)]),_0x4df7b6[_0x4140ec(-_0x6c1834._0x18a55a,-0x207)+'e']();return;}_0x4df7b6[_0x5b9d15(_0x6c1834._0x378e3c,0x253)]();},this[_0x492ed3(_0x5c3369._0x3d02f4,0x49b)][_0x492ed3(_0x5c3369._0x32bd33,0x601)+_0x492ed3(0x6e4,_0x5c3369._0x5882c2)+_0x2e573e(0x626,_0x5c3369._0x5f7e82)]??HEARTBEAT_INTERVAL_MS);}['stopHear'+_0x11b7ab(-0x112,0xb7)](){const _0x31044f={_0x4a235f:0x16e,_0x528c2a:0x248,_0x2d366d:0x105},_0x165317={_0x4a38ea:0x1f0};function _0x594db1(_0x2ac166,_0x6bfa42){return _0x6eb3(_0x2ac166,_0x6bfa42- -_0x165317._0x4a38ea);}function _0x2dfd56(_0x3620da,_0x26065b){return _0x6eb3(_0x26065b,_0x3620da- -0x61);}const _0x30cfb1={'BtpXX':function(_0x4736c7,_0x2a9aaf){return _0x4736c7(_0x2a9aaf);}};this[_0x2dfd56(0x8a,_0x31044f._0x4a235f)+_0x594db1(-_0x31044f._0x528c2a,-0x1a5)]&&(_0x30cfb1[_0x594db1(-0x3ad,-0x302)](clearInterval,this[_0x594db1(-0x24a,-_0x31044f._0x2d366d)+_0x594db1(-0x123,-0x1a5)]),this['heartbea'+'tTimer']=null);}[_0x11b7ab(0xdf,0x26)+_0x6eb3(-0x32c,-0x14b)+_0x11b7ab(0x120,-0x21)+'e'](_0x576690){const _0x45c0f6={_0x27731d:0x20b,_0x27f0ef:0x7,_0x9ac4da:0x242,_0xdd7626:0x42f,_0x520e8a:0x1f9,_0x52f677:0x5d,_0x3e4c2a:0x19a,_0x3d5e58:0x2f7,_0x101983:0xb5,_0x5879b6:0x155,_0x11c6a3:0x104,_0x4926be:0xe0,_0x536e49:0x9f,_0xa667:0x1ab,_0x3b2938:0x152},_0x1cd685={_0x235aac:0x50},_0x546c39={_0x56f342:0x1d3};this[_0x34206e(-0x4e5,-0x303)+_0x34206e(_0x45c0f6._0x27731d,0xe1)+'ssages'][_0x21ea02(0xf7,-_0x45c0f6._0x27f0ef)]>=MAX_PENDING_GATEWAY_MESSAGES&&this[_0x34206e(-0x4bb,-0x303)+'atewayMe'+_0x21ea02(0x242,0x364)]['shift']();function _0x34206e(_0x258216,_0x1dd15e){return _0x6eb3(_0x258216,_0x1dd15e- -_0x546c39._0x56f342);}function _0x21ea02(_0xc6019a,_0x419137){return _0x6eb3(_0x419137,_0xc6019a-_0x1cd685._0x235aac);}this['pendingG'+_0x21ea02(0x304,0x12e)+_0x21ea02(_0x45c0f6._0x9ac4da,_0x45c0f6._0xdd7626)][_0x34206e(_0x45c0f6._0x520e8a,_0x45c0f6._0x52f677)](_0x576690),this[_0x21ea02(_0x45c0f6._0x3e4c2a,_0x45c0f6._0x3d5e58)](_0x34206e(_0x45c0f6._0x101983,-0x10d)+_0x34206e(-0x21,-_0x45c0f6._0x5879b6)+_0x34206e(-0x13b,-_0x45c0f6._0x11c6a3)+this[_0x21ea02(-_0x45c0f6._0x4926be,_0x45c0f6._0x536e49)+_0x34206e(0x6b,0xe1)+_0x21ea02(_0x45c0f6._0x9ac4da,_0x45c0f6._0xa667)][_0x21ea02(0xf7,_0x45c0f6._0x3b2938)]);}[_0x11b7ab(0x44f,0x2a3)+'onnectSt'+_0x11b7ab(-0x1a2,-0xb0)](_0x30b816,_0x1e19c3){const _0x2f4f0d={_0x124120:0x1ea,_0x30b3bb:0x9e,_0x52662d:0x1dc,_0x489cba:0x3dc,_0x55836b:0x2e7,_0x436199:0x14b,_0x164e78:0x467,_0x3970aa:0x206,_0x3a3b7e:0x267,_0x336b35:0x19d,_0x14dbc1:0x135,_0x23f2fd:0x46,_0x2e5ad5:0x92,_0x337e99:0x10a,_0x7aeb1c:0x229},_0xca039={_0x120e3d:0x4e},_0x765362={_0x359a5d:0x18f},_0xfb94ce=Date[_0x376f96(_0x2f4f0d._0x124120,0x225)]();function _0x376f96(_0x1911a5,_0x4d0c5d){return _0x11b7ab(_0x1911a5,_0x4d0c5d-_0x765362._0x359a5d);}function _0x37355b(_0x4821bb,_0x29b778){return _0x11b7ab(_0x29b778,_0x4821bb- -_0xca039._0x120e3d);}const _0x3b0357=new Map(this[_0x37355b(_0x2f4f0d._0x30b3bb,_0x2f4f0d._0x52662d)][_0x37355b(0xe6,0x122)+_0x376f96(_0x2f4f0d._0x489cba,_0x2f4f0d._0x55836b)]['map'](_0x18b2f9=>[_0x18b2f9['id'],{..._0x18b2f9}])),_0x53691c=_0x3b0357[_0x37355b(0xbc,-_0x2f4f0d._0x436199)](_0x30b816)??{'id':_0x30b816,'label':_0x1e19c3,'state':_0x376f96(_0x2f4f0d._0x164e78,0x2c3)+'d','lastSeenMs':_0xfb94ce};_0x53691c[_0x376f96(0x2fa,_0x2f4f0d._0x3970aa)]=_0x1e19c3,_0x53691c['state']=_0x37355b(0xe6,_0x2f4f0d._0x3a3b7e)+'d',_0x53691c[_0x37355b(0x1fd,_0x2f4f0d._0x336b35)+'Ms']=_0xfb94ce,_0x3b0357['set'](_0x30b816,_0x53691c);const _0x57c708=[..._0x3b0357[_0x37355b(_0x2f4f0d._0x14dbc1,0x2a5)]()][_0x376f96(_0x2f4f0d._0x23f2fd,_0x2f4f0d._0x2e5ad5)]((_0x387d46,_0x4d75d9)=>_0x4d75d9[_0x376f96(0x52e,0x3da)+'Ms']-_0x387d46['lastSeen'+'Ms'])[_0x376f96(0x4af,0x2fe)](0x0,MAX_DEVICE_DETAILS),_0x407a1e={};_0x407a1e['connecte'+_0x37355b(_0x2f4f0d._0x337e99,-0x39)]=_0x57c708,this[_0x376f96(0x28b,_0x2f4f0d._0x7aeb1c)+'apshot'](_0x407a1e);}[_0x11b7ab(0x304,0x27b)+_0x11b7ab(0x25e,0x155)+'t'](){const _0x2763e6={_0x412ba9:0x155,_0x3f4d7f:0x1a8,_0x5467c5:0xe9},_0x42f1be={_0x5e8a43:0x241};function _0x1664e5(_0x4aab20,_0x1b7595){return _0x11b7ab(_0x4aab20,_0x1b7595- -_0x42f1be._0x5e8a43);}function _0x1d0175(_0x333e12,_0x404ae1){return _0x11b7ab(_0x333e12,_0x404ae1-0x145);}this['updateSn'+_0x1664e5(0x15f,0x69)]({'connectedDevices':this[_0x1664e5(0x6,-_0x2763e6._0x412ba9)]['connecte'+_0x1664e5(-_0x2763e6._0x3f4d7f,-_0x2763e6._0x5467c5)][_0x1d0175(0x48d,0x327)](_0x2f07f7=>({..._0x2f07f7,'state':_0x1d0175(0x29c,0x1a4)}))});}[_0x6eb3(-0x2e7,-0x133)+_0x11b7ab(0x20b,0x4)+_0x11b7ab(0x38d,0x245)](_0x2f71d3){const _0x4b8b8d={_0x4682cc:0x145,_0x5438a3:0x4e0,_0x2a4056:0x3dd,_0x4c2c0a:0x1ca,_0xfb3437:0xb1,_0x4cd6b6:0x7e,_0x2859a9:0x4a1,_0x163726:0x599,_0x155b3a:0x315,_0x19e252:0x141,_0x4966d8:0x3e1,_0x2013eb:0x26b,_0x58b692:0x4b5,_0x61c873:0x1a7},_0x1388ac={_0x26990d:0x118},_0x7b8916={_0x225794:0x1f7};if(this['snapshot'][_0x568943(0x25e,0x448)+_0x3eeb3a(-0x342,-_0x4b8b8d._0x4682cc)+_0x568943(0x2ef,0x227)][_0x568943(_0x4b8b8d._0x5438a3,_0x4b8b8d._0x2a4056)](_0x5c788f=>_0x5c788f['requestI'+'d']===_0x2f71d3['requestI'+'d']))return;function _0x568943(_0x55aec1,_0x1563a4){return _0x11b7ab(_0x1563a4,_0x55aec1-_0x7b8916._0x225794);}function _0x3eeb3a(_0x44a250,_0x30335b){return _0x11b7ab(_0x44a250,_0x30335b- -_0x1388ac._0x26990d);}const _0x561702=[...this[_0x568943(0x2e3,0x2f8)]['pendingP'+_0x568943(_0x4b8b8d._0x4c2c0a,0x286)+_0x568943(0x2ef,0x3b0)],_0x2f71d3]['slice'](-MAX_PENDING_PAIR_REQUESTS),_0x3907f5={};_0x3907f5[_0x3eeb3a(0x120,-_0x4b8b8d._0xfb3437)+_0x3eeb3a(-0x84,-0x145)+_0x568943(0x2ef,0x4e6)]=_0x561702,this[_0x3eeb3a(0x68,-_0x4b8b8d._0x4cd6b6)+_0x568943(_0x4b8b8d._0x2859a9,_0x4b8b8d._0x163726)](_0x3907f5),this['options'][_0x3eeb3a(0x397,0x19d)+'gPairReq'+_0x3eeb3a(-_0x4b8b8d._0x155b3a,-_0x4b8b8d._0x19e252)]?.(_0x2f71d3),this['log']('pair\x20req'+_0x568943(_0x4b8b8d._0x4966d8,_0x4b8b8d._0x2013eb)+_0x3eeb3a(-0x3bb,-0x1f4)+_0x3eeb3a(-0x32,0x8b)+_0x2f71d3[_0x568943(_0x4b8b8d._0x58b692,0x41c)+'d']+('\x20deviceI'+'d=')+(_0x2f71d3['deviceId']||_0x3eeb3a(-_0x4b8b8d._0x61c873,-0x88)+'>'));}[_0x6eb3(0x18d,0x4f)+_0x6eb3(0xfe,0xe6)+_0x11b7ab(-0x15e,-0x83)](_0x41dba9,_0x81b496){const _0x55e794={_0x2aea13:0x143,_0x1f2ceb:0x1cc,_0x33c16a:0x13d,_0x3223c1:0xea,_0x305589:0x1c5,_0x19c997:0x184,_0x22ce77:0x2da},_0x3acde4={_0x45f6a9:0x63},_0x8359c3={_0x22972b:0x168};function _0x5c61f6(_0x235c48,_0x42ec47){return _0x6eb3(_0x42ec47,_0x235c48- -_0x8359c3._0x22972b);}function _0x4d1aeb(_0x2fcef1,_0x284558){return _0x6eb3(_0x284558,_0x2fcef1- -_0x3acde4._0x45f6a9);}const _0x53699e=this[_0x4d1aeb(0x47,-0x17e)][_0x5c61f6(-_0x55e794._0x2aea13,0x23)+_0x5c61f6(-0x1d7,-_0x55e794._0x1f2ceb)+'sts'][_0x4d1aeb(_0x55e794._0x33c16a,0x137)](_0x5b4a1b=>_0x5b4a1b[_0x5c61f6(0x114,0x1c3)+'d']===_0x41dba9?{..._0x5b4a1b,'status':_0x81b496===_0x4d1aeb(0xa7,0x248)||_0x81b496===_0x5c61f6(-0x132,-0x2bd)?_0x81b496:_0x5b4a1b['status']}:_0x5b4a1b),_0x490b8b={};_0x490b8b['pendingP'+'airReque'+_0x4d1aeb(0x53,-_0x55e794._0x3223c1)]=_0x53699e,this[_0x4d1aeb(-0xb,-0x4f)+_0x4d1aeb(0x205,_0x55e794._0x305589)](_0x490b8b),this['log']('pair\x20req'+_0x4d1aeb(_0x55e794._0x19c997,0x1be)+'olved\x20re'+_0x4d1aeb(0x1b3,_0x55e794._0x22ce77)+_0x41dba9+('\x20decisio'+'n=')+_0x81b496);}[_0x11b7ab(-0x47,0x9a)+_0x11b7ab(0x276,0x2aa)](_0x196fbc){const _0x2eb688={_0x5da190:0x21,_0x52d84c:0x58,_0x59d4de:0x9b},_0x15ad47={_0x58e5fb:0xc9},_0x5c8f49={_0x1a3ee3:0xaf};function _0x21b0a6(_0x371214,_0x40b5ce){return _0x6eb3(_0x40b5ce,_0x371214- -_0x5c8f49._0x1a3ee3);}Object['assign'](this[_0x21b0a6(-0x5,_0x2eb688._0x5da190)],_0x196fbc,{'lastUpdatedMs':Date[_0x4e7de0(-0x3,-0x75)]()});function _0x4e7de0(_0x3471ff,_0x4c1910){return _0x6eb3(_0x3471ff,_0x4c1910- -_0x15ad47._0x58e5fb);}this[_0x4e7de0(-_0x2eb688._0x52d84c,-0x144)][_0x4e7de0(0x27a,_0x2eb688._0x59d4de)]?.(this[_0x4e7de0(-0xb,0x12)+_0x4e7de0(0x311,0x12f)]());}['log'](_0x32e73c){const _0x21e239={_0x4c68cf:0x30f,_0x403e73:0x2c9,_0x460eb2:0x1f0},_0x1d2fbd={_0x150a3f:0x401},_0x2893cc={_0x51a6aa:0x348};function _0xe6a885(_0x461871,_0x3728b6){return _0x11b7ab(_0x3728b6,_0x461871-_0x2893cc._0x51a6aa);}function _0x5ebad6(_0x17ea2c,_0x7f9802){return _0x11b7ab(_0x7f9802,_0x17ea2c-_0x1d2fbd._0x150a3f);}this[_0xe6a885(_0x21e239._0x4c68cf,0x305)][_0xe6a885(_0x21e239._0x403e73,_0x21e239._0x460eb2)]?.(_0x32e73c);}[_0x6eb3(0x20d,0x8)+_0x11b7ab(0x11c,0x2ad)](){const _0x43bb14={_0x98c4d6:0x12e,_0x342ab0:0x4c3,_0x2a2d85:0x2ba,_0xe5546e:0x16b,_0x496726:0x179},_0x2a326a={_0x21b465:0x1c2};function _0x2ebf31(_0x2392b1,_0x1afc91){return _0x6eb3(_0x1afc91,_0x2392b1- -_0x2a326a._0x21b465);}function _0x3837ab(_0x38f18c,_0x1e6476){return _0x6eb3(_0x1e6476,_0x38f18c-0x2e5);}return this[_0x2ebf31(-_0x43bb14._0x98c4d6,-0x317)+_0x3837ab(_0x43bb14._0x342ab0,_0x43bb14._0x2a2d85)]?.[_0x2ebf31(-0x1fb,-_0x43bb14._0xe5546e)+'te']===_0x17e531[_0x2ebf31(-0x73,_0x43bb14._0x496726)];}['isGatewa'+'yOpen'](){const _0x2d3d8e={_0x4d25a5:0xa5,_0x421bfb:0x1ef},_0xa376b9={_0x790371:0xae};function _0x52cbd1(_0x14ddf4,_0x55856b){return _0x11b7ab(_0x14ddf4,_0x55856b- -_0xa376b9._0x790371);}function _0x51b297(_0x437dd2,_0x396871){return _0x11b7ab(_0x437dd2,_0x396871-0x57d);}return this['gatewayS'+'ocket']?.[_0x52cbd1(-0x252,-_0x2d3d8e._0x4d25a5)+'te']===_0x17e531[_0x52cbd1(_0x2d3d8e._0x421bfb,0xe3)];}[_0x11b7ab(0x18e,0x99)+_0x6eb3(-0x35,0xe7)](){const _0x26ef66={_0x32f1d3:0x3e9,_0x1bbacc:0x640,_0x5c7737:0x769,_0x5e85c6:0x729},_0x4e30bc={_0xe66564:0x4b5};function _0x5b1634(_0x24eb7b,_0x233d2c){return _0x6eb3(_0x24eb7b,_0x233d2c-_0x4e30bc._0xe66564);}function _0x368667(_0x13473b,_0x3fad2a){return _0x6eb3(_0x3fad2a,_0x13473b-0x537);}return this[_0x5b1634(_0x26ef66._0x32f1d3,0x55f)]['clientCo'+_0x368667(0x67e,0x867)]>0x0||this['pendingG'+_0x5b1634(_0x26ef66._0x1bbacc,_0x26ef66._0x5c7737)+_0x368667(_0x26ef66._0x5e85c6,0x6d1)]['length']>0x0;}[_0x11b7ab(0x2e8,0x22e)+_0x6eb3(-0x2e7,-0xf8)](){const _0x3c65d2={_0x56f225:0x44a,_0x4899a2:0x230,_0x1bc51b:0x51b,_0x55549f:0x70d,_0x15f201:0x45f,_0x507e03:0x441,_0xaf8db7:0x1de,_0x1ab4d3:0x5a7,_0x48df6b:0x65f,_0x137d12:0x30a};function _0x58b219(_0x2fdd7c,_0x360da9){return _0x6eb3(_0x2fdd7c,_0x360da9-0xbd);}const _0x283374={'NVHJD':function(_0x4a6031,_0x2eb9c6){return _0x4a6031(_0x2eb9c6);}};this['stopHear'+'tbeat']();this[_0x58b219(0x4ed,0x318)+_0x4de496(0x3e3,_0x3c65d2._0x56f225)]&&(_0x283374[_0x58b219(-_0x3c65d2._0x4899a2,-0x5a)](clearTimeout,this[_0x4de496(_0x3c65d2._0x1bc51b,0x65a)+_0x4de496(0x35c,0x44a)]),this[_0x4de496(_0x3c65d2._0x55549f,0x65a)+_0x4de496(_0x3c65d2._0x15f201,_0x3c65d2._0x56f225)]=null);this['gatewayR'+_0x4de496(0x521,_0x3c65d2._0x507e03)+'r']&&(clearTimeout(this[_0x58b219(_0x3c65d2._0xaf8db7,0x2f4)+_0x4de496(_0x3c65d2._0x1ab4d3,0x441)+'r']),this[_0x4de496(_0x3c65d2._0x48df6b,0x636)+'etryTime'+'r']=null);function _0x4de496(_0x26df4c,_0x5413bc){return _0x6eb3(_0x26df4c,_0x5413bc-0x3ff);}this[_0x4de496(0x3c4,0x42a)+_0x4de496(0x27a,_0x3c65d2._0x137d12)+'eClose']();}[_0x11b7ab(0xa9,-0xe6)+_0x6eb3(0x31e,0x288)](_0x4f7999){const _0x29c500={_0x307271:0x347,_0x23ece3:0x271},_0x2f3930={_0x435456:0x16e},_0x2c5849={_0x5c7a9f:0x228},_0x57fa22={};function _0x32d28d(_0x903f1e,_0x4bf2b9){return _0x11b7ab(_0x4bf2b9,_0x903f1e-_0x2c5849._0x5c7a9f);}_0x57fa22[_0x32d28d(_0x29c500._0x307271,_0x29c500._0x23ece3)]=function(_0x8913d4,_0x17ee62){return _0x8913d4-_0x17ee62;};function _0x479e7c(_0x44a4bf,_0x229662){return _0x11b7ab(_0x229662,_0x44a4bf- -_0x2f3930._0x435456);}const _0x27e18a=_0x57fa22;return _0x4f7999==null?null:Math[_0x32d28d(0x32e,0x257)](0x0,_0x27e18a['hAVDk'](Date[_0x32d28d(0x2be,0x16a)](),_0x4f7999));}};function shouldRecycleGatewayForFreshClient(_0x290c6a,_0x519207,_0x43c3e9,_0xd2eb59){return _0x43c3e9&&_0x519207>0x0&&(_0x290c6a===0x0||_0xd2eb59);}function _0x11b7ab(_0x4d6e79,_0x407a58){return _0x2e58(_0x407a58- -0x1a6,_0x4d6e79);}function summarizeJsonFrame(_0x1c91fa){const _0x59890e={_0x3be50e:0x542,_0x5bbd2d:0x630,_0x1ce656:0x56b,_0x3f76de:0x212,_0x323dd0:0x3b1,_0x30a303:0x441,_0x2002fe:0x2bf,_0x2fd128:0x4a7,_0x4ebf3b:0x303,_0x46c48a:0x2b7,_0x8b2901:0x452,_0x12ac62:0x1f8,_0x4010cf:0x99,_0xfe42ea:0x27b,_0x3b2910:0x46f,_0x414799:0x253,_0x1c1108:0x42c,_0x5ceb4f:0x1cc,_0x53ace9:0x1ba,_0x249645:0x39d,_0x4de527:0x29b,_0x57ce02:0x13c,_0x4154ca:0x102,_0x23683d:0xed,_0x2c244e:0x3ee,_0x47de33:0x40f,_0x1c1e36:0x57a,_0x551d9e:0x111,_0x4687be:0x26b,_0x197b5e:0x3c8,_0x22d71e:0x1c1,_0x4ee4c9:0x220,_0x26899f:0x675},_0x476622={_0x5b32fb:0x49a};function _0x1ef065(_0x34333b,_0x5a479e){return _0x6eb3(_0x5a479e,_0x34333b-0x1aa);}const _0x5e6136={};_0x5e6136['wEgFW']=_0x224afd(_0x59890e._0x3be50e,0x4e8)+'>';const _0x310659=_0x5e6136;function _0x224afd(_0x37ac06,_0x304c37){return _0x6eb3(_0x37ac06,_0x304c37-_0x476622._0x5b32fb);}try{const _0x4aa458=JSON[_0x224afd(0x6a9,0x4ba)](_0x1c91fa);if(_0x4aa458[_0x224afd(_0x59890e._0x5bbd2d,_0x59890e._0x1ce656)]===_0x224afd(_0x59890e._0x3f76de,_0x59890e._0x323dd0)&&typeof _0x4aa458[_0x224afd(0x4db,_0x59890e._0x30a303)]===_0x224afd(0x58e,0x3dd))return _0x224afd(_0x59890e._0x2002fe,_0x59890e._0x2fd128)+_0x1ef065(_0x59890e._0x4ebf3b,_0x59890e._0x46c48a)+_0x4aa458[_0x224afd(_0x59890e._0x8b2901,0x441)]+'\x20id='+(typeof _0x4aa458['id']==='string'?_0x4aa458['id']:_0x1ef065(_0x59890e._0x12ac62,_0x59890e._0x4010cf)+'>');if(_0x4aa458[_0x1ef065(_0x59890e._0xfe42ea,_0x59890e._0x3b2910)]===_0x224afd(_0x59890e._0x414799,_0x59890e._0x1c1108)&&typeof _0x4aa458[_0x1ef065(0x13c,_0x59890e._0x5ceb4f)]===_0x1ef065(0xed,0x7c))return _0x224afd(_0x59890e._0x53ace9,_0x59890e._0x249645)+_0x1ef065(0x3b7,_0x59890e._0x4de527)+_0x4aa458[_0x1ef065(_0x59890e._0x57ce02,_0x59890e._0x4154ca)];if(_0x4aa458[_0x1ef065(0x27b,0x2bd)]===_0x1ef065(0x3b4,0x4b1)){const _0x43fbb1=typeof _0x4aa458['id']===_0x1ef065(_0x59890e._0x23683d,-0x36)?_0x4aa458['id']:_0x310659['wEgFW'],_0x4a5046=_0x4aa458['ok']===!![]?_0x1ef065(_0x59890e._0x2c244e,0x576):_0x224afd(_0x59890e._0x47de33,_0x59890e._0x1c1e36),_0x117e64=typeof _0x4aa458[_0x1ef065(_0x59890e._0x551d9e,-0x97)]?.[_0x224afd(_0x59890e._0x4687be,_0x59890e._0x197b5e)]==='string'?_0x4aa458[_0x1ef065(0x111,_0x59890e._0x22d71e)][_0x1ef065(0xd8,0x1af)]:_0x1ef065(0x28c,0x93);return _0x224afd(_0x59890e._0x4ee4c9,0x3ef)+_0x43fbb1+_0x224afd(0x879,_0x59890e._0x26899f)+_0x4a5046+'\x20code='+_0x117e64;}return null;}catch{return null;}}function shouldDropStaleConnectAfterGatewayReopen(_0x84fca1,_0x4afc38){return!_0x84fca1&&_0x4afc38;}function buildRelayWsUrl(_0x51da74){const _0x29389c={_0x9a8250:0x31e,_0x50021a:0x390,_0x1c8045:0x4cd,_0xfb09eb:0x2bf,_0x52de22:0x41e,_0x1d3aee:0x715,_0x1b41f4:0x698,_0x45ce64:0x667,_0x14327d:0x814,_0x192cad:0x59b,_0x1bce8c:0x45,_0x58779e:0x57,_0x1ca064:0x44,_0x4d47e1:0x19d,_0x29615e:0x44d,_0x2c6465:0x3fc,_0x478656:0x7da,_0x4e98be:0x76,_0x9238bc:0x180,_0x33c844:0x721,_0x5bbeb5:0x948,_0xf446d2:0x264},_0x5addea={_0x55046f:0x4fb};function _0x4f7278(_0x2640e3,_0xd587da){return _0x6eb3(_0x2640e3,_0xd587da-_0x5addea._0x55046f);}const _0x3f1aaa={};_0x3f1aaa[_0xe5d42(-_0x29389c._0x9a8250,-_0x29389c._0x50021a)]='gateway';const _0x2dc8ad=_0x3f1aaa,_0x10a8eb=new URL(_0x51da74[_0xe5d42(-0x313,-0x398)]);(!_0x10a8eb[_0x4f7278(_0x29389c._0x1c8045,0x41e)]||_0x10a8eb[_0xe5d42(-_0x29389c._0xfb09eb,-0x225)]==='/')&&(_0x10a8eb[_0x4f7278(0x254,_0x29389c._0x52de22)]='/ws');_0x10a8eb[_0x4f7278(_0x29389c._0x1d3aee,_0x29389c._0x1b41f4)+_0x4f7278(0x46a,_0x29389c._0x45ce64)][_0x4f7278(_0x29389c._0x14327d,0x721)](_0x4f7278(_0x29389c._0x192cad,0x6a6)+'d',_0x51da74['gatewayI'+'d']),_0x10a8eb[_0xe5d42(-_0x29389c._0x1bce8c,-_0x29389c._0x58779e)+'rams'][_0xe5d42(_0x29389c._0x1ca064,_0x29389c._0x4d47e1)](_0x4f7278(_0x29389c._0x29615e,0x5e0),_0x2dc8ad[_0xe5d42(-_0x29389c._0x9a8250,-_0x29389c._0x2c6465)]),_0x10a8eb[_0x4f7278(_0x29389c._0x478656,_0x29389c._0x1b41f4)+_0xe5d42(-_0x29389c._0x4e98be,0xaf)][_0xe5d42(0x44,_0x29389c._0x9238bc)]('clientId',_0x51da74[_0x4f7278(0x3b6,0x4e3)+'Id']),_0x10a8eb['searchPa'+_0xe5d42(-0x76,-0x157)][_0x4f7278(0x590,_0x29389c._0x33c844)]('token',_0x51da74[_0xe5d42(-0x2ec,-0x467)+_0x4f7278(_0x29389c._0x5bbeb5,0x796)]);function _0xe5d42(_0x2caea0,_0x3e410){return _0x6eb3(_0x3e410,_0x2caea0- -0x1e2);}return _0x10a8eb[_0xe5d42(-0xba,-_0x29389c._0xf446d2)]();}function redactRelayWsUrl(_0x3c7c00){const _0x315638={_0x2088e0:0xb,_0x485e06:0x173,_0x5e8047:0x3e,_0x7bd60f:0x26a,_0x478477:0x21e,_0x1e5e56:0x3e,_0x12a9e5:0x2bc,_0x2405c1:0x6},_0x53355={_0x3f5242:0x170},_0x48c3c1=new URL(_0x3c7c00);_0x48c3c1[_0x476b3c(-_0x315638._0x2088e0,0x6f)+_0x476b3c(_0x315638._0x485e06,_0x315638._0x5e8047)][_0x4b7a45(0x6a,0x1cf)](_0x4b7a45(0x151,0x233))&&_0x48c3c1[_0x4b7a45(_0x315638._0x7bd60f,0x1fd)+_0x476b3c(_0x315638._0x478477,_0x315638._0x1e5e56)][_0x4b7a45(_0x315638._0x12a9e5,0x286)](_0x476b3c(0x1c9,0xa5),'<redacte'+'d>');function _0x4b7a45(_0x480a28,_0x1e3c24){return _0x11b7ab(_0x480a28,_0x1e3c24-0x1e);}function _0x476b3c(_0x17acec,_0x51f176){return _0x11b7ab(_0x17acec,_0x51f176- -_0x53355._0x3f5242);}return _0x48c3c1[_0x476b3c(0x7d,-_0x315638._0x2405c1)]();}function normalizeText(_0x59cc62){const _0x46239e={_0x20cdf5:0x498,_0x1cea43:0x240,_0x362284:0x24b,_0x1a39c4:0x2aa,_0x5c99e2:0x242,_0xcaff16:0x79,_0x4fa059:0x329,_0x31cda9:0x3de,_0x3a8a44:0x2c2,_0xeaf4be:0x3b8,_0x5d3452:0x1ce,_0x1df5fa:0x3b7,_0x1091b3:0x5a},_0x356cc1={_0x470d3c:0x1e3},_0x58dc68={};function _0x3b8f3b(_0x2b4943,_0x160ca9){return _0x11b7ab(_0x2b4943,_0x160ca9-0x2c6);}_0x58dc68['lrdDI']=function(_0x4a541c,_0x5a85e6){return _0x4a541c===_0x5a85e6;},_0x58dc68[_0x3b8f3b(0x59f,_0x46239e._0x20cdf5)]=_0x3b8f3b(_0x46239e._0x1cea43,_0x46239e._0x362284);const _0x53828f=_0x58dc68;function _0x54d2a1(_0x189ce5,_0x4baabd){return _0x11b7ab(_0x189ce5,_0x4baabd- -_0x356cc1._0x470d3c);}if(_0x53828f[_0x3b8f3b(_0x46239e._0x1a39c4,_0x46239e._0x5c99e2)](typeof _0x59cc62,_0x53828f['eEaTP']))return _0x59cc62;if(Buffer['isBuffer'](_0x59cc62))return _0x59cc62[_0x54d2a1(-0xa0,-_0x46239e._0xcaff16)](_0x3b8f3b(_0x46239e._0x4fa059,_0x46239e._0x31cda9));if(Array[_0x3b8f3b(_0x46239e._0x3a8a44,0x355)](_0x59cc62))return Buffer[_0x3b8f3b(_0x46239e._0xeaf4be,_0x46239e._0x5d3452)](_0x59cc62)[_0x3b8f3b(0x61d,0x430)](_0x3b8f3b(0x4ef,0x3de));if(_0x59cc62 instanceof ArrayBuffer)return Buffer[_0x3b8f3b(_0x46239e._0x1df5fa,0x26d)](_0x59cc62)[_0x54d2a1(-_0x46239e._0x1091b3,-0x79)]('utf8');return null;}function normalizeBinary(_0x280c86){const _0x55382d={_0x2c8705:0x613,_0x3714fd:0x111,_0xe126c4:0x3d5,_0x377594:0x26b,_0x246311:0x42b},_0x128a56={_0x56c656:0x3a9},_0x5deb79={};_0x5deb79[_0x2ebbe3(_0x55382d._0x2c8705,0x5b4)]=_0x2ebbe3(_0x55382d._0x3714fd,0x249);const _0x3d71ea=_0x5deb79;if(Buffer[_0x2ebbe3(_0x55382d._0xe126c4,0x362)](_0x280c86))return _0x280c86;if(typeof _0x280c86===_0x3d71ea['qXznS'])return Buffer[_0x2ebbe3(0xbd,_0x55382d._0x377594)](_0x280c86,_0x2ebbe3(0x2a1,0x3dc));function _0x95cf06(_0x5799bd,_0x323828){return _0x11b7ab(_0x323828,_0x5799bd-_0x128a56._0x56c656);}if(Array['isArray'](_0x280c86))return Buffer[_0x95cf06(0x2b1,_0x55382d._0x246311)](_0x280c86);function _0x2ebbe3(_0x494ace,_0x1f49d7){return _0x11b7ab(_0x494ace,_0x1f49d7-0x2c4);}return Buffer['from'](_0x280c86);}function readRecentCliLogs(_0x45e35f){const _0x65e7a1={_0x5eedb2:0xac,_0x28d855:0x123,_0x20334f:0x162,_0x47da51:0xc5,_0xfdee67:0x81,_0x1cad3f:0x188,_0x179e05:0x278,_0x1a775e:0x599,_0x1b7d8f:0x5cf},_0x2c827e={_0xa9b0b1:0x42a},_0x47b53f={_0x431391:0xdf},_0x4b037d={'pITVk':function(_0x4e0d10){return _0x4e0d10();},'XdkVq':function(_0xbabde0,_0x589783){return _0xbabde0-_0x589783;},'cyCIR':function(_0x2b7e89,_0x25900f){return _0x2b7e89==_0x25900f;}},{logPath:_0xe3fa46,errorLogPath:_0x181979}=_0x4b037d[_0x27293e(-_0x65e7a1._0x5eedb2,-_0x65e7a1._0x28d855)](getServicePaths);function _0x27293e(_0x17304d,_0x504518){return _0x11b7ab(_0x504518,_0x17304d- -_0x47b53f._0x431391);}const _0x598511=clampLines(_0x45e35f?.[_0x27293e(0xcc,_0x65e7a1._0x20334f)]??0xc8),_0x46dd6e=_0x45e35f?.[_0x27293e(_0x65e7a1._0x47da51,-0x104)]??null,_0x5ea1e1=_0x46dd6e!=null?_0x4b037d['XdkVq'](Date[_0x27293e(-0x49,0x102)](),_0x46dd6e):null,_0x1cac05=[_0xe3fa46];function _0x26838a(_0x3e62f4,_0x1be382){return _0x11b7ab(_0x1be382,_0x3e62f4-_0x2c827e._0xa9b0b1);}_0x45e35f?.[_0x27293e(-0x105,-_0x65e7a1._0xfdee67)+_0x27293e(-0x1a,-_0x65e7a1._0x1cad3f)]&&_0x1cac05['push'](_0x181979);const _0x25b91c=_0x1cac05['flatMap'](_0x147324=>readLogFile(_0x147324)),_0x5d5405=_0x4b037d['cyCIR'](_0x5ea1e1,null)?_0x25b91c:_0x25b91c[_0x26838a(0x365,_0x65e7a1._0x179e05)](_0x31c89a=>_0x31c89a['ts']!=null&&_0x31c89a['ts']>=_0x5ea1e1);return _0x5d5405[_0x26838a(_0x65e7a1._0x1a775e,_0x65e7a1._0x1b7d8f)](-_0x598511)['map'](_0x4acfc6=>_0x4acfc6[_0x26838a(0x4d0,0x413)]);}async function buildDoctorReport(){const _0x969404={_0x4d4ef7:0x118,_0x490a15:0x283,_0x5cf9ac:0x162,_0x1e9e26:0xc4,_0x4693c0:0xb7,_0x5b79a0:0x1b1,_0x435ae5:0x3ad,_0x55c0c8:0x2e3,_0x5968b1:0x210,_0x50d2e2:0x13d,_0x1fc8b6:0x62c,_0x20160:0x67d,_0x18eb94:0x4ee,_0x522075:0x12c,_0x33c488:0x333,_0x1cb280:0x46},_0x18f6f1={_0x360a7b:0x54a},_0x54a0e5={'uYyce':function(_0x5cff2d){return _0x5cff2d();},'OExaC':function(_0x4890c8,_0x1cd4ef){return _0x4890c8(_0x1cd4ef);}},_0x653728=_0x54a0e5[_0x28a310(0x6f8,0x569)](readPairingConfig);function _0x2fbb7c(_0x31ca4a,_0x415341){return _0x11b7ab(_0x415341,_0x31ca4a- -0xe9);}function _0x28a310(_0x5a14dc,_0x1984ac){return _0x11b7ab(_0x5a14dc,_0x1984ac-_0x18f6f1._0x360a7b);}const _0xade7a3=getServiceStatus(),_0x4b6099=_0x54a0e5['uYyce'](readOpenClawInfo),_0x311dfd=resolveGatewayUrl(),_0x1a2f24=await checkGatewayReachable(_0x311dfd);return{'paired':Boolean(_0x653728),'gatewayId':_0x653728?.['gatewayI'+'d']??null,'serverUrl':_0x653728?.[_0x2fbb7c(-0xa9,_0x969404._0x4d4ef7)+'l']??null,'relayUrl':_0x653728?.[_0x2fbb7c(-0x1d8,-_0x969404._0x490a15)]??null,'instanceId':_0x653728?.[_0x2fbb7c(-0xbf,-0x13d)+'Id']??null,'serviceInstalled':_0xade7a3[_0x2fbb7c(0x128,_0x969404._0x5cf9ac)+'d'],'serviceRunning':_0xade7a3[_0x2fbb7c(-_0x969404._0x1e9e26,-0xca)],'serviceMethod':_0xade7a3[_0x2fbb7c(-0x100,_0x969404._0x4693c0)],'servicePath':_0xade7a3[_0x2fbb7c(_0x969404._0x5b79a0,_0x969404._0x435ae5)+'ath'],'logPath':_0xade7a3[_0x2fbb7c(0x210,_0x969404._0x55c0c8)],'errorLogPath':_0xade7a3['errorLog'+_0x2fbb7c(-0xef,-_0x969404._0x5968b1)],'openclawConfigDir':getOpenClawConfigDir(),'openclawMediaDir':getOpenClawMediaDir(),'openclawConfigFound':_0x4b6099[_0x2fbb7c(_0x969404._0x50d2e2,0x182)+_0x28a310(0x5fd,_0x969404._0x1fc8b6)],'openclawAuthMode':_0x4b6099[_0x28a310(0x851,0x7ad)],'openclawTokenFound':_0x54a0e5[_0x28a310(_0x969404._0x20160,_0x969404._0x18eb94)](Boolean,_0x4b6099[_0x2fbb7c(_0x969404._0x522075,-0x8b)]),'openclawPasswordFound':_0x54a0e5[_0x28a310(_0x969404._0x33c488,_0x969404._0x18eb94)](Boolean,_0x4b6099[_0x2fbb7c(_0x969404._0x1cb280,-0x1a4)]),'localGatewayUrl':_0x311dfd,'localGatewayReachable':_0x1a2f24};}async function ensurePairPrerequisites(){const _0x21902d={_0x25b96b:0x18e,_0x33a5da:0x2cc,_0x32af07:0x36c,_0x399feb:0xf1,_0x552706:0x50e,_0x249540:0x43b,_0x60b960:0x3f0,_0xe090b2:0x1fb,_0x5b39bd:0x6d,_0x1348d5:0xf8,_0x2c4791:0x1cb,_0x175558:0x3d3,_0x2b6cf6:0xc5,_0x5a38d0:0x1c1,_0x39e07f:0x36a,_0x27fff9:0x20c,_0x37e538:0x51,_0x3438cc:0x74},_0x3f6c50={_0x5028b6:0x92},_0x154daa=await buildDoctorReport(),_0x5c3df5=listPairPrerequisiteFailures(_0x154daa);if(_0x5c3df5['length']>0x0)throw new Error(['Cannot\x20c'+_0xcdb151(_0x21902d._0x25b96b,0x1a5)+_0xcdb151(0x256,_0x21902d._0x33a5da)+'\x20pair`\x20b'+_0xcdb151(_0x21902d._0x32af07,0x1ce)+'ocal\x20Ope'+_0x36586e(_0x21902d._0x399feb,-0x14)+_0xcdb151(_0x21902d._0x552706,0x3b9)+'tes\x20are\x20'+_0xcdb151(0x4a7,0x352)+'y.',..._0x5c3df5[_0xcdb151(0x4a3,_0x21902d._0x249540)](_0xc9869e=>'-\x20'+_0xc9869e),'Run\x20`cla'+_0xcdb151(_0x21902d._0x60b960,0x20a)+_0x36586e(_0x21902d._0xe090b2,_0x21902d._0x5b39bd)+_0x36586e(_0x21902d._0x1348d5,0x2ee)+'tails,\x20o'+_0x36586e(_0x21902d._0x2c4791,0x2bd)+'lawket\x20p'+_0x36586e(0xea,0x80)+'rce`\x20onl'+_0x36586e(_0x21902d._0x175558,0x326)+_0x36586e(-_0x21902d._0x2b6cf6,0x9c)+'onally\x20w'+_0xcdb151(0x1ba,0x2ba)+_0xcdb151(_0x21902d._0x5a38d0,0x38e)+_0x36586e(_0x21902d._0x39e07f,_0x21902d._0x27fff9)+'y\x20check.'][_0x36586e(-_0x21902d._0x37e538,_0x21902d._0x3438cc)]('\x0a'));function _0x36586e(_0x4c93c9,_0x34d4df){return _0x11b7ab(_0x4c93c9,_0x34d4df-_0x3f6c50._0x5028b6);}function _0xcdb151(_0x52d642,_0x147c54){return _0x11b7ab(_0x52d642,_0x147c54-0x259);}return _0x154daa;}function listPairPrerequisiteFailures(_0x5c0ed4){const _0x20a570={_0x3e8af6:0x1b5,_0x22d7de:0x516,_0x2c0d0c:0x827,_0x2e901d:0x1a6,_0x59b26e:0x32,_0x2ebbaa:0x576,_0x1d61cf:0x74f,_0x36661a:0x335,_0x3e9b7a:0x61c,_0x4c02fb:0x3d1,_0xe13c2e:0x6e8,_0x192c01:0x3f2,_0x54ad72:0x3bb,_0x5f27d3:0x275,_0x24d4aa:0x20a,_0x2d6d52:0x5bd,_0x2b5456:0x65b,_0x1b71f6:0x79d,_0x338f2c:0x5b8,_0x3e613f:0x53d,_0x53eec6:0x2b0,_0x4f4b07:0x2eb,_0x509ad3:0x2ff,_0x4eaa58:0x349,_0x21a86c:0x48b,_0x20a2d9:0x10c,_0x3fddfb:0x98,_0x539292:0x4cc,_0x44b8fa:0x674,_0x371078:0x840,_0x24c9d7:0x2a6,_0x41971d:0x1cc,_0x5458f7:0x474,_0x317ee6:0x6e8,_0x58fa6a:0x789,_0x5604c8:0x22f,_0x22cb6b:0x23a,_0x6ed9b:0x18e,_0xa68f51:0x925,_0x284020:0x131,_0x5f1bdd:0x31,_0x397918:0x20a,_0x2e7fa5:0x17d,_0x3232a2:0x130,_0x6b839f:0x6e8,_0x25e2ee:0x739,_0x4c7b39:0x6d1,_0x3f4336:0x5b8,_0x32394a:0x349,_0x4524f4:0x53c,_0x20c84c:0x65d,_0x10bd1e:0x4c9,_0x534160:0x8cc,_0x3eddce:0x7dd,_0xa1a5f8:0x81b,_0x25cc97:0x75c,_0x3e7bd6:0x5cc,_0x4b14b3:0x620,_0x18e2e0:0x19c,_0x15f6d9:0xfb,_0x2399fb:0x27},_0x50a935={};_0x50a935[_0x53120d(_0x20a570._0x3e8af6,0x1ae)]=function(_0x134d28,_0x423f0a){return _0x134d28==_0x423f0a;},_0x50a935[_0x53de33(0x53a,_0x20a570._0x22d7de)]=_0x53de33(0x9b4,_0x20a570._0x2c0d0c)+_0x53120d(_0x20a570._0x2e901d,-_0x20a570._0x59b26e)+'\x20auth\x20is'+_0x53de33(0x3d9,_0x20a570._0x2ebbaa)+_0x53de33(_0x20a570._0x1d61cf,0x7f8)+_0x53120d(0x477,_0x20a570._0x36661a)+_0x53de33(_0x20a570._0x3e9b7a,0x7af);function _0x53de33(_0x41d4af,_0x3e3702){return _0x6eb3(_0x41d4af,_0x3e3702-0x5ad);}_0x50a935[_0x53120d(_0x20a570._0x4c02fb,0x25b)]='password';function _0x53120d(_0x5f5b4f,_0x226d42){return _0x6eb3(_0x5f5b4f,_0x226d42-0xcf);}const _0x3b06a9=_0x50a935,_0x398f49=[];return!_0x5c0ed4[_0x53de33(0x5c5,_0x20a570._0xe13c2e)+_0x53120d(_0x20a570._0x192c01,0x31e)+'und']&&_0x398f49[_0x53120d(_0x20a570._0x54ad72,0x2ff)]('OpenClaw'+_0x53de33(0x5fd,0x55b)+_0x53120d(0x1dc,_0x20a570._0x5f27d3)+_0x53de33(0x2fa,0x4d1)+'der\x20~/.o'+'penclaw/'+'.'),_0x5c0ed4[_0x53120d(0x3f,_0x20a570._0x24d4aa)+_0x53de33(_0x20a570._0x2d6d52,_0x20a570._0x2b5456)+'nd']&&_0x5c0ed4[_0x53120d(0x13d,0x20a)+_0x53de33(_0x20a570._0x1b71f6,_0x20a570._0x338f2c)+'Found']&&_0x3b06a9[_0x53de33(_0x20a570._0x3e613f,0x68c)](_0x5c0ed4[_0x53120d(0x216,0x20a)+_0x53de33(_0x20a570._0x53eec6,0x4ad)],null)&&_0x398f49[_0x53120d(_0x20a570._0x4f4b07,_0x20a570._0x509ad3)](_0x53120d(0x2d9,_0x20a570._0x4eaa58)+_0x53de33(0x409,_0x20a570._0x21a86c)+_0x53120d(0x7f,_0x20a570._0x20a2d9)+_0x53120d(-_0x20a570._0x3fddfb,0x16b)+_0x53de33(0x765,0x58b)+_0x53de33(_0x20a570._0x539292,_0x20a570._0x44b8fa)+_0x53de33(0x811,_0x20a570._0x371078)+_0x53de33(0x578,0x775)+_0x53120d(_0x20a570._0x24c9d7,_0x20a570._0x41971d)+_0x53de33(0x369,_0x20a570._0x5458f7)+'s\x20unset.'),!_0x5c0ed4[_0x53de33(0x6a7,_0x20a570._0x317ee6)+_0x53de33(_0x20a570._0x58fa6a,_0x20a570._0x2b5456)+'nd']&&!_0x5c0ed4[_0x53de33(0x738,0x6e8)+_0x53120d(_0x20a570._0x5604c8,0xda)+_0x53120d(_0x20a570._0x22cb6b,_0x20a570._0x6ed9b)]&&_0x398f49[_0x53de33(_0x20a570._0xa68f51,0x7dd)](_0x3b06a9[_0x53de33(0x5b1,0x516)]),_0x5c0ed4['openclaw'+_0x53120d(_0x20a570._0x284020,-_0x20a570._0x5f1bdd)]==='token'&&!_0x5c0ed4[_0x53120d(0x322,_0x20a570._0x397918)+_0x53120d(0x83,_0x20a570._0x2e7fa5)+'nd']&&_0x398f49[_0x53120d(_0x20a570._0x3232a2,0x2ff)]('OpenClaw'+'\x20gateway'+_0x53120d(0x285,0x13b)+'s\x20missin'+'g.'),_0x5c0ed4[_0x53de33(0x6be,_0x20a570._0x6b839f)+_0x53120d(-0x15c,-0x31)]===_0x3b06a9[_0x53de33(0x755,_0x20a570._0x25e2ee)]&&!_0x5c0ed4[_0x53de33(0x768,0x6e8)+_0x53de33(_0x20a570._0x4c7b39,_0x20a570._0x3f4336)+'Found']&&_0x398f49[_0x53120d(0x1ae,0x2ff)](_0x53120d(0x4e5,_0x20a570._0x32394a)+_0x53de33(0x693,0x4ac)+_0x53de33(0x6c1,_0x20a570._0x4524f4)+'d\x20is\x20mis'+'sing.'),!_0x5c0ed4[_0x53de33(_0x20a570._0x20c84c,_0x20a570._0x10bd1e)+'ewayReac'+'hable']&&_0x398f49[_0x53de33(_0x20a570._0x534160,_0x20a570._0x3eddce)](_0x53de33(0x614,_0x20a570._0xa1a5f8)+_0x53de33(_0x20a570._0x25cc97,0x555)+_0x53de33(_0x20a570._0x3e7bd6,_0x20a570._0x4b14b3)+_0x53120d(_0x20a570._0x18e2e0,_0x20a570._0x15f6d9)+_0x53de33(0x84d,0x743)+_0x53de33(0x440,0x5c8)+_0x5c0ed4['localGat'+_0x53120d(_0x20a570._0x2399fb,0x1b9)]+'.'),_0x398f49;}function readLogFile(_0x52a076){const _0x121569={_0x56bfdc:0x34,_0x1a0d83:0x1ac,_0x44edee:0xd1,_0x20fa41:0x7b,_0x5207a9:0x151,_0x1367b2:0x14e,_0x431850:0x21f},_0x479700={_0x5b0193:0x9d},_0x31dc53={_0x1d19e5:0x132},_0x79b675={};_0x79b675[_0x41afa9(_0x121569._0x56bfdc,_0x121569._0x1a0d83)]=_0x2b7f29(_0x121569._0x44edee,_0x121569._0x20fa41);function _0x41afa9(_0x15a25e,_0x13735c){return _0x11b7ab(_0x13735c,_0x15a25e- -_0x31dc53._0x1d19e5);}const _0x53942e=_0x79b675;function _0x2b7f29(_0x68661a,_0x363d53){return _0x11b7ab(_0x68661a,_0x363d53- -_0x479700._0x5b0193);}try{const _0x1a83ac=_0x365046(_0x52a076,_0x53942e[_0x41afa9(_0x121569._0x56bfdc,-_0x121569._0x5207a9)]);return _0x1a83ac[_0x41afa9(0x59,_0x121569._0x1367b2)](/\r?\n/)[_0x41afa9(-0x1f7,-_0x121569._0x431850)](Boolean)['map'](_0x127ffd=>({'raw':_0x127ffd,'ts':parseTimestamp(_0x127ffd)}));}catch{return[];}}function parseTimestamp(_0x384af4){const _0x31f7a9={_0x281181:0x299,_0x507627:0x3c7,_0x59c771:0x54b,_0x1489bb:0x324},_0x9f6a46={_0xd4d451:0x5ad},_0x4aff37={'JsUdl':function(_0x3c708b,_0x17a2b2){return _0x3c708b(_0x17a2b2);}},_0x12f088=_0x384af4[_0x4f5abf(0x329,_0x31f7a9._0x281181)](/^\[(\d{13})\]\s/);if(!_0x12f088)return null;function _0x4f5abf(_0x325d59,_0x13d596){return _0x6eb3(_0x325d59,_0x13d596-0x2ae);}function _0x51a0ad(_0x331ad5,_0x564bfd){return _0x6eb3(_0x564bfd,_0x331ad5-_0x9f6a46._0xd4d451);}const _0x4f1733=_0x4aff37[_0x4f5abf(_0x31f7a9._0x507627,_0x31f7a9._0x59c771)](Number,_0x12f088[0x1]);return Number[_0x4f5abf(_0x31f7a9._0x1489bb,0x3e7)](_0x4f1733)?_0x4f1733:null;}function clampLines(_0x3b8b00){const _0x282cd4={_0x4c7ba5:0x31a,_0x1c403e:0x72,_0x398d42:0x1b2},_0xb8d25e={_0x147b4d:0x178};function _0x23b168(_0x4e58a5,_0x5895a5){return _0x11b7ab(_0x4e58a5,_0x5895a5- -0x7);}if(!Number[_0x23b168(_0x282cd4._0x4c7ba5,0x174)](_0x3b8b00))return 0xc8;function _0x553840(_0xc64380,_0x4ce05e){return _0x11b7ab(_0x4ce05e,_0xc64380- -_0xb8d25e._0x147b4d);}return Math[_0x553840(-_0x282cd4._0x1c403e,-0x148)](0x1,Math[_0x553840(-0x110,-_0x282cd4._0x398d42)](0x7d0,Math['floor'](_0x3b8b00)));}async function checkGatewayReachable(_0x170bf9){const _0x25cdc5={_0x5af2aa:0x681,_0x1b4a82:0x6b5,_0xf2f9d0:0x5a5,_0x1aab8a:0x568,_0x270b26:0x12,_0x12a43a:0x158,_0x1a5adb:0x1e5,_0x386db7:0x297},_0x457cdd={_0x343fe8:0x5fe,_0x155a2c:0xa1,_0x411f12:0x6d7,_0x9f2cfa:0x705},_0x4eb4b8={_0x3cc5b0:0x213},_0x4bfa42={_0x22e367:0x494,_0x51bfb9:0x4a0,_0x295fc6:0x469},_0x5e6f86={_0x162401:0x4f8};function _0x9bb85c(_0xc3b09d,_0xcb35c3){return _0x6eb3(_0xc3b09d,_0xcb35c3-_0x5e6f86._0x162401);}function _0x94cb64(_0x8ce948,_0x31c11d){return _0x6eb3(_0x31c11d,_0x8ce948- -0x131);}const _0x294972={'ISdZg':function(_0x136cca){return _0x136cca();},'vkBfO':function(_0x49ecb9,_0x5e94c2){return _0x49ecb9(_0x5e94c2);},'SNREB':'timeout'};try{const _0x390e70=new URL(_0x170bf9),_0x5a9297=_0x390e70[_0x9bb85c(_0x25cdc5._0x5af2aa,_0x25cdc5._0x1b4a82)]||_0x9bb85c(_0x25cdc5._0xf2f9d0,_0x25cdc5._0x1aab8a)+'1',_0x593284=_0x390e70[_0x94cb64(-_0x25cdc5._0x270b26,-_0x25cdc5._0x12a43a)]?Number(_0x390e70[_0x94cb64(-0x12,0x4e)]):_0x390e70[_0x94cb64(-_0x25cdc5._0x1a5adb,-_0x25cdc5._0x386db7)]==='wss:'?0x1bb:0x50;return await new Promise((_0x214144,_0x45df04)=>{const _0x5e71d1={_0x549374:0x129},_0x29d986=new Socket();_0x29d986[_0x3d158a(0x168,0x1ee)+'ut'](0x384),_0x29d986['once'](_0x255d9d(0x6d7,0x6c3),()=>{function _0x21f34c(_0x3150c2,_0x15c5e8){return _0x3d158a(_0x15c5e8,_0x3150c2-0x4e7);}function _0x43b7e2(_0x2a2e59,_0x136ce5){return _0x3d158a(_0x2a2e59,_0x136ce5-0x5b8);}_0x29d986[_0x21f34c(_0x4bfa42._0x22e367,0x342)](),_0x294972[_0x43b7e2(_0x4bfa42._0x51bfb9,_0x4bfa42._0x295fc6)](_0x214144);});function _0x255d9d(_0x3b210c,_0x5c3b1f){return _0x94cb64(_0x3b210c-0x5f8,_0x5c3b1f);}function _0x3d158a(_0x5b002b,_0x4141a8){return _0x94cb64(_0x4141a8-_0x5e71d1._0x549374,_0x5b002b);}_0x29d986[_0x255d9d(_0x457cdd._0x343fe8,0x56e)]('timeout',()=>{_0x29d986[_0x5d718c(0x316,0x473)]();function _0x3d4a91(_0x4afb1f,_0x2e31e8){return _0x3d158a(_0x4afb1f,_0x2e31e8-0x116);}function _0x5d718c(_0x480250,_0xd4a116){return _0x3d158a(_0x480250,_0xd4a116-0x4c6);}_0x294972[_0x3d4a91(_0x4eb4b8._0x3cc5b0,0xac)](_0x45df04,new Error(_0x294972['SNREB']));}),_0x29d986[_0x255d9d(_0x457cdd._0x343fe8,0x60e)](_0x3d158a(-0xd1,-_0x457cdd._0x155a2c),_0x440b3c=>{_0x29d986[_0x1b96ba(0x228,0x28f)]();function _0x1b96ba(_0x311bf9,_0xc26245){return _0x3d158a(_0x311bf9,_0xc26245-0x2e2);}_0x45df04(_0x440b3c);}),_0x29d986[_0x255d9d(_0x457cdd._0x411f12,_0x457cdd._0x9f2cfa)](_0x593284,_0x5a9297);}),!![];}catch{return![];}}function parseLookbackToMs(_0x3b99f0){const _0x53b410={_0x4d0504:0x402,_0x387909:0xb9,_0x509537:0x97,_0xfc6775:0x1c8,_0xe385e5:0x1bb,_0x278850:0xad,_0x56a9a1:0xc3,_0x327008:0x9d,_0x1e2f04:0xae,_0x342598:0x219,_0x21499f:0x68,_0x221754:0x20b},_0x14707e={_0x46b90f:0x7d},_0x5b58e4={};_0x5b58e4[_0x18b5ba(0x256,_0x53b410._0x4d0504)]=function(_0x5ca719,_0x4fe671){return _0x5ca719===_0x4fe671;},_0x5b58e4[_0x3b3bd3(0x1a6,0x12c)]=function(_0x53f20f,_0x53c1b6){return _0x53f20f===_0x53c1b6;},_0x5b58e4[_0x3b3bd3(-0x68,-0xc4)]=function(_0x42e8ef,_0x597a19){return _0x42e8ef*_0x597a19;};const _0x98f27e=_0x5b58e4,_0x5eb7be=_0x3b99f0?.['trim']();if(!_0x5eb7be)return null;const _0x21cf22=_0x5eb7be['match'](/^(\d+)(ms|s|m|h|d)$/i);if(!_0x21cf22)throw new Error(_0x18b5ba(_0x53b410._0x387909,-0x4d)+'--last\x20v'+_0x3b3bd3(0x272,0x3af)+_0x5eb7be+(_0x18b5ba(-0x71,-0x26f)+_0x18b5ba(-_0x53b410._0x509537,-_0x53b410._0xfc6775)+_0x3b3bd3(0x42,-_0x53b410._0xe385e5)+_0x3b3bd3(-_0x53b410._0x278850,_0x53b410._0x56a9a1)+_0x3b3bd3(0x178,_0x53b410._0x327008)));function _0x18b5ba(_0x2dcaf8,_0x13608c){return _0x11b7ab(_0x13608c,_0x2dcaf8- -0x1);}const _0x2dc636=Number(_0x21cf22[0x1]);function _0x3b3bd3(_0x1eaebb,_0x54e608){return _0x11b7ab(_0x54e608,_0x1eaebb- -_0x14707e._0x46b90f);}const _0x5956b4=_0x21cf22[0x2][_0x18b5ba(_0x53b410._0x1e2f04,0x2b6)+_0x3b3bd3(0x223,_0x53b410._0x342598)](),_0x4ba285=_0x5956b4==='ms'?0x1:_0x98f27e['BYfay'](_0x5956b4,'s')?0x3e8:_0x98f27e['VffYQ'](_0x5956b4,'m')?0xea60:_0x5956b4==='h'?0x36ee80:0x5265c00;return _0x98f27e[_0x3b3bd3(-_0x53b410._0x21499f,-_0x53b410._0x221754)](_0x2dc636,_0x4ba285);}import{readFileSync as _0x3cde9d}from'fs';import{dirname as _0x2d8c2e,resolve}from'path';import{fileURLToPath}from'url';function readCliVersion(){const _0x216001={_0x595b6c:0x5bf,_0x63bbef:0x1ac,_0x173d2a:0x45c,_0x2d5d2d:0x450,_0x4fa236:0x411},_0x3cdee3={_0x576f4b:0x3fa},_0x1018b3={_0x1c31eb:0x6},_0x285aa0={'uxdff':function(_0x42c5dc,_0x592049,_0x564b59){return _0x42c5dc(_0x592049,_0x564b59);}};function _0x56551d(_0x2f378f,_0x1da5c2){return _0x11b7ab(_0x2f378f,_0x1da5c2-_0x1018b3._0x1c31eb);}const _0x62832=_0x2d8c2e(fileURLToPath(import.meta.url)),_0x3610d5=_0x285aa0[_0x4073fe(_0x216001._0x595b6c,0x5ea)](resolve,_0x62832,_0x4073fe(0x840,0x6fa)+'ge.json'),_0x4c74e6=_0x3cde9d(_0x3610d5,_0x56551d(_0x216001._0x63bbef,0x11e)),_0x2fa16a=JSON[_0x4073fe(0x63e,_0x216001._0x173d2a)](_0x4c74e6);function _0x4073fe(_0x19497d,_0x4e1b30){return _0x11b7ab(_0x19497d,_0x4e1b30-_0x3cdee3._0x576f4b);}return _0x2fa16a[_0x4073fe(_0x216001._0x2d5d2d,_0x216001._0x4fa236)]??'unknown';}function buildPairingJson(_0x558b29,_0x3c1002,_0x419fe3,_0x4f3b6b){const _0x30fa3a={_0x49b707:0x3dc,_0x3e956d:0x113,_0x4dd84f:0x33,_0xed5a09:0x9,_0x46bf6f:0x1d3,_0x26e514:0x2a1,_0x931926:0x129,_0x13512c:0xcd,_0xeb8e8c:0xfb,_0xf86613:0x15d,_0x201921:0x247,_0xddc854:0x148,_0x276969:0x1c1,_0x20758e:0xf9,_0x30c328:0x1a1,_0x5a1f25:0x2e,_0x4a2494:0x1,_0x552a2a:0x1fb,_0x2b9aac:0x1d,_0x447fc:0x55,_0x45cf03:0x25b,_0x459e2b:0x15c,_0x29a0a1:0x38,_0x12fec2:0x54,_0x198b31:0x90,_0x675bc6:0x188,_0x165c4b:0x250,_0x2e4c70:0x1b8,_0x173735:0x208,_0x2220b5:0xe5,_0x401641:0x238,_0xd4229e:0x245},_0x2a6b7d={};_0x2a6b7d[_0xefacd7(_0x30fa3a._0x49b707,0x21f)+'d']=_0x419fe3['installe'+'d'],_0x2a6b7d[_0xefacd7(-_0x30fa3a._0x3e956d,_0x30fa3a._0x4dd84f)]=_0x419fe3[_0xefacd7(0xa1,_0x30fa3a._0x4dd84f)],_0x2a6b7d[_0xefacd7(0x42,-_0x30fa3a._0xed5a09)]=_0x419fe3[_0xefacd7(0x177,-0x9)];function _0x238c24(_0x219130,_0x198837){return _0x11b7ab(_0x219130,_0x198837- -0x19c);}_0x2a6b7d[_0xefacd7(_0x30fa3a._0x46bf6f,0x2a8)+_0x238c24(_0x30fa3a._0x26e514,_0x30fa3a._0x931926)]=_0x419fe3[_0xefacd7(0x200,0x2a8)+_0x238c24(_0x30fa3a._0x13512c,0x129)],_0x2a6b7d[_0xefacd7(0x1db,0x307)]=_0x419fe3[_0x238c24(_0x30fa3a._0xeb8e8c,_0x30fa3a._0xf86613)],_0x2a6b7d[_0x238c24(-_0x30fa3a._0x201921,-_0x30fa3a._0xddc854)+_0x238c24(-0xb1,-0x1a2)]=_0x419fe3[_0xefacd7(-0x14c,0x62)+'Path'],_0x2a6b7d[_0xefacd7(-_0x30fa3a._0x276969,-_0x30fa3a._0x20758e)]=_0x419fe3[_0xefacd7(-0x85,-0xf9)];const _0x303eb1={};_0x303eb1['ok']=!![],_0x303eb1[_0xefacd7(_0x30fa3a._0x30c328,-0x2e)]=_0x558b29[_0xefacd7(0xfe,-_0x30fa3a._0x5a1f25)];function _0xefacd7(_0x2724d6,_0x5b2150){return _0x11b7ab(_0x2724d6,_0x5b2150-0xe);}return _0x303eb1['message']=_0x4f3b6b,_0x303eb1['gatewayI'+'d']=_0x558b29[_0x238c24(_0x30fa3a._0x4a2494,-0x156)][_0xefacd7(0x2df,_0x30fa3a._0x552a2a)+'d'],_0x303eb1['relayUrl']=_0x558b29[_0xefacd7(-_0x30fa3a._0x2b9aac,0x54)][_0x238c24(-0x3ae,-0x28b)],_0x303eb1[_0xefacd7(_0x30fa3a._0x447fc,0x4e)+'l']=_0x558b29['config'][_0x238c24(-_0x30fa3a._0x45cf03,-_0x30fa3a._0x459e2b)+'l'],_0x303eb1[_0xefacd7(0x17f,_0x30fa3a._0x29a0a1)+'Id']=_0x558b29[_0xefacd7(-0xf3,_0x30fa3a._0x12fec2)]['instance'+'Id'],_0x303eb1[_0x238c24(-_0x30fa3a._0x198b31,-_0x30fa3a._0x675bc6)+'de']=_0x558b29[_0x238c24(-0x2f1,-0x188)+'de'],_0x303eb1[_0x238c24(-0xb7,-0x188)+_0xefacd7(_0x30fa3a._0x165c4b,_0x30fa3a._0x2e4c70)+_0x238c24(-0x27d,-_0x30fa3a._0x173735)]=_0x558b29[_0x238c24(-0x25,-_0x30fa3a._0x675bc6)+'deExpire'+_0x238c24(-0x133,-0x208)],_0x303eb1[_0xefacd7(_0x30fa3a._0x2220b5,0x1ac)+_0xefacd7(_0x30fa3a._0x401641,0x2d3)]=_0x3c1002,_0x303eb1[_0x238c24(-_0x30fa3a._0xd4229e,-0xb8)]=_0x2a6b7d,_0x303eb1;}import{mkdirSync as _0x3abe96,writeFileSync as _0x2d9822}from'fs';function _0x39fb(){const _0x5735ef=['t3DRshG','u2jKs2i','zhrKiJ4kpha','B25Uzwn0','zuvHvfa','ANnVBG','lxnLCNzPy2u','BM5Ly3qGzhi','zfHJCe0','CNvU','ywnOywjSzsa','Ahr0Chm6lY8','Dw5UAw5N','BNvTyMvY','zYbWyxrOoIa','ihvUy2HHBMC','ls1LCNjVCNm','C2vHCMnOuge','CMvNAxn0zxi','CNnZBfy','BwfW','zxj2AwnLige','Axn0lteUmc4','jMX0oW','pgTLEt5tDge','DwfSBhKU','D2fZig5VDca','jNf1B3q7','DwvZDcbWzw4','BgKTzxjYB3i','mZGYotyZnvjrAwjxqW','z2f0zxDHEuK','DvPlsMm','wKTmrMy','DxHKzMy','zfn6r2q','DcbHCha6cG','DgvK','ifSTlwzVCMm','B3iGmwqU','qNjPzgDLige','zevYCM9Yuge','zu9dDgO','DMLJzsbPBNm','pc9ZDhjPBMC','sxrZrvi','C3rVChbLza','BgXDcLDHBNq','C2uGy2fUy2u','Ag9ZDg5HBwu','BwuGBM90igy','ANbIr3y','u3rHCNrPBMC','yNjPzgDLlwm','ls1QC29Uxq','terHEuG','C3rYAw5NAwy','qvripsi','uMvTB3zLzca','C2LVBJ0Ims4','igj1DcbNyxq','wvvRBuu','A2LUza','zM9Yy2u','ihnLCNzPy2u','CLnfuKW','rxjYB3iGBg8','Aw5ZDgfSBgu','ntGWww1VA21e','y3jLyxrLzee','Eu9Wzw4','Dg9Rzw4','vhP2tNC','y2XPzw50x2m','zgv2AwnLtMe','y29UBMvJDc4','AgfUzhnOywS','zcbIywnRz3i','ruL5zgu','ig9Rpq','zxrYEurLBge','pGOGidXRzxK','A2v0','icbLEgvJig4','y2uGCMvNAxm','vMzMwve','C2vUzfrVr2e','z0jcBe8','y29UzMLNrM8','Dgv3yxK','BJOG','DwvZDcbYzxm','zxnOigzHAwW','CIb1C2uGygm','BMqGlxyGBM8','DcbKzw1HBMq','y2XLyxjuAw0','zsbWywLYAw4','BM90ihbHAxi','yKTmAuG','x1bbu1nxt1i','rxHWAxjLCZO','C3nHz2vZ','CM9YC10GwY0','u0Dls20','BNrYB2WGzxy','C2v0vgLTzw8','Cgzir0S','Ag90','lJaUmc4XoJe','zw47igf3ywK','zcbXDwv1zwq','wY0TANnVBL0','BhDNuKS','C29U','CMvN','tK9ux1bbsvi','CMvHC29Upq','B3jKks4','CxvLC3q','ihnPBMnLr2e','Au1pC0W','ig1VzguGDg8','uMvZDgfYDgu','u2vYDMLJzv0','BgfZDfnLzw4','CMvZ','BNbxA3i','u2vYDMLJztO','Bwu9','zxHLy1bHDgG','zxjZAw9Uxfi','y29UBMvJDa','zuTsA24','C3rVCeHLyxi','DgfSBgvKigi','BMC+','qLLMyxK','CxvLC3rjzd0','Aw1Hz2uVCg4','B3vUDf96zxi','DhjSk0mGDg8','ig1VCMuGzgu','Bgf3A2v0ihi','DgvYpw5LDhC','y2XPzw50x2q','rhvSCMq','ugDQrha','vw5HyMXLihq','yxv0Ae1Vzgu','CMLUzYbJB2q','zxHwB3a','BgLLBNrezw0','Dw5PBNn0ywW','C2v0','zw1HBMrFCMu','CNzPy2uGAw4','zw5Nzq','Bg9NCYbBls0','Es11CMW','DxbKyxrLzee','ienmssbZzxi','Cgf0AdOG','zwXHEq','ChvZAa','icaGidXZDhi','q2XHD2TLDei','igvYCM9Ypq','zw50rgvTyw4','Cez2uMS','A2LSBa','z2f0zxDHEvi','zwXVywq','BwfYA0rLDMK','yurmtwK','vxLkq3u','Dgv3yxLdB24','AxmGuviGy28','w3bHAxiTCMu','Bgf1BMnOywC','Et5mywjLBdW','Bgf5q29UDhi','teHdre4','qvriiIbDoYa','Dhj1zq','r2f0zxDHEsa','Et4kica8C3q','yxjNzxqkcLS','Dd4k','y29UzMLNig4','y1n0yxj0pq','icH0B2TLBIa','AwyGwYaTEca','ihnPBMnLq2W','y2XVC2vKoIa','q29UzMLNrM8','ugfPCMLUzYa','CMvSyxKGy2W','EsbPzIb5B3u','wgjRu0K','sciGCNvUic0','zMX1C2Hqzw4','EgDKwNi','CgvUtxm9','C2vYDMLJzva','DMfTr0m','A3nIA3i','CMvJB25Uzwm','AfDtuw4','phbHDgG+xsa','yxnL','CNzLCI4','zw5ZDxjLr2e','B2jZzxj2zum','EwjZu3a','B25SAw5LlNq','CMvHy2HHyMW','AwyGy29TBwe','B3iGCgfZC3C','zhKGC2nOzwq','yxbZAg90','lw5LDW','C2GGy2HHBgW','CgvU','DejHC2vezwW','A2LUz0rPCMu','tg9JywWGt3a','zgv2AwnLswq','CMvZzxq','lM9Wzw5JBge','C2uGy2XPzw4','B25qzw5KAw4','zNjHBwuG','CIbWyxnZD28','uKvrvuLsruq','z2f0zxDHEuG','jMfTCdS','tM8GBwf0y2G','t3bLBKnSyxC','C2vUza','CMvXDwvZDeK','w2nSyxDRzxq','ls11C2vY','y29UDhjVBf8','D2f5uMvXDwu','z2f0zxDHEum','AgfUzgXLuMu','yxrO','lMnSyxDRzxq','l0rurcbqteK','vMvYC2LVBJO','ruPqDwS','Aw5Jzq','BfDyv00','DgfYDdOG','y2XHD2TLDca','CMvWBgfJzue','iIrot0rfx1a','AxnJB25Uzwm','Be1Z','t1bftKnmqvC','qNjPzgDLigK','ls1Zzxj2Awm','zMLNDxjLzcW','yMHLAMK','mtmXq2XLALDk','D3m6lY8','BM9VCa','jJe7ihrOzw4','zgf0yq','wwzXtMW','CMv0','zunSB3nL','sNnvzgW','ywrK','zgv0ywnOzwq','tMfTztOG','nhWW','cLnJyw4GDgG','iurpq1rzueu','C3rHDhvZ','iYeVyMLUl3m','yNjPzgDLlxm','C29Tzq','y29UBMvJDfi','vgnHu2q','DMLJzsbMB3i','DgHLBG','D2LKDgG','ywX1zsaI','CvH6BLm','zgv2AwnLlNa','DgLTzwqGB3u','EwXoELq','yw1L','Dd4kica8A2u','yxrLD2f5twu','BxbSzqPfEgu','uviGAw1Hz2u','Bg9Nugf0Aa','BgfZDca8mM0','CNrIzwf0','zw5HyMXL','yxbWBgLJyxq','zxHPC3rPBMC','B2nRzxq','lI4VCgfJA2e','C3LZDgvTzc0','y2XPzw50rgu','lIbsDw4GiMm','tg9HzdWVA2u','zgLZy29UBMu','r1bwtwK','lMXVzW','tvzus2e','DgvKqxrnCW','Aw5Nr2f0zxC','zgv0ywLSCW','CgLK','z2f0zxDHEvm','svnKwMC','qxv0BY1PBNm','zwrcEt1Kzwy','ignVDw50pq','zxHPDenVzgu','u1fyvxa','BxrRy2S','D2LUmZi','C29YDa','nMrVy1nQsW','Ewj4AMy','Dg1cD0u','zcWGyNv0ihm','y29Uy2f0','Ac5TB2rLigK','CMvMCMvZAc0','Bw9Kzq','y2XPzw50q28','y29KzsbBls0','zg9JDg9Y','ywrKugvUzgK','ls1Uyw1L','CMvSyxLvCMW','CgvUzgLUz0C','q3vYCMvUDfy','DgvKihbSyxq','Aw9Ul2PZB24','CNvUlxjLz2K','swq9','ExjZEg8','ihf1zxvLzd0','zwXHChnLzfm','ls1Zzxj2zxi','qufnAfC','yxLnCW','C2vYDMLJzvi','BYbYzxnVBhy','igHHCYbIB3q','vgjPB0u','uhbWu1u','tw9IAwXLiem','zgLUzYbYzxe','zwHuzhC','ndu4BxbiC3rN','rxPVv2i','vvjmoIa','rujntxi','tLjIzwS','tLzisKq','A2vtDgfYDgu','wKX3CfG','lNnLCNzPy2u','tw1Urva','qNrWwfG','zwnVBM5Ly3q','B3bLBG','DgvYBwLUyxq','BMvJDgvK','CMvWBgfJzq','ls1NyxrLD2e','Eu1Mwhm','CMvSyxLtzwm','q2XHD2TLDca','Et4kica8Dhi','zMLSDgvY','zfnKsxy','rMXuyMy','wfDlugi','B2jQzwn0','C2uGywXYzwe','igDHDgv3yxK','qxv0Ae1Vzgu','yxbWBguUy28','ze1Zpq','zxzLBNqGBMe','yMLUyxj5','Cg9UzW','CgfPCG','CNvUDgLTzsa','zxjZ','CNvUBMLUzZO','B21WBgv0zsa','Dgv3yxLjzgW','BgKUANnVBG','s1fuy1y','yxj0','lMfP','rxbiB2W','iejYAwrNzsa','Dg9eyxrHvvi','ywXSzwq','uNH2DeW','ruPrq2O','yu5dBhu','CMvX','BKnSyxCGChi','Cgf0AevUDG','l3yXl3bHAxi','zw1WDa','Bg9JywXhyxq','CMLWDcbWyxq','zg93BG','C2vYDMvYidW','v2LUzg93C1W','Cen1zKy','B24U','Cgf0Ag5HBwu','zM91BMqGDw4','zgLUz0DHDgu','BM90igLUC3q','BwvKAwe','ywX1zxmGBgK','B25Uzwn0zwq','mtu4otq5A2ThrNzl','pLbYB2DYyw0','z2f0zxDHEv8','vhbYrLa','y29Kzq','BwLSEq','CMLKz2vdBgK','B3bWzwqGywy','BgvKihjLyxm','zwnHDxnLigW','D3PtwxG','pL0GwY0TBgK','z2f0zxDHEva','Bgf5twvZC2e','mtaXnZG2odzrD1vRrhC','yxbWBhK','BhjKreK','zxnVBhzLza','BLDyuuC','ALbHthu','CMvSyxKGzgK','B25mB2C','EuffDuy','CgLUzW','z2f0zxDHEq','C3rYAw5N','seTdvvXtB2y','C2fNzq','y3jVC29MDfW','EufJDgL2Axq','igjYAwrNzsa','r0rXBwK','B25Uzwn0Aw4','BM9KzvbHDgG','ChjVDg9JB2W','BhjLywr5iha','iI4GvxnLihy','DwuVpGOGidW','vhD3AeG','CMDurvK','C0f0','CMvSyxKGAgu','uMvZDgfYDfm','CMvZigLKpq','yLvwCgi','yxbisfC','C2nYAxb0uge','DxnLCG','ywLYzwqUifi','yw5KC2HHA2u','CLzQCMe','D2f5ihjLB3a','AgfUzgXLr2e','CM9Wzxj0EuW','t1bpD3C','CMvSyxKGCMu','t0v4yum','DxPwy1a','BwnrExK','zNjVBq','txHqwNm','zxjYB3i','BMqGC2vYDMK','swzUwwW','zcbKzwXHEu0','CMqGyMvMB3i','Aw5N','BwfPBG','C2LUy2vdBgK','D2TLDcbKB2m','z2f0zxDHEvu','igXVywqGDgG','wKHYruK','zgvJAxnPB24','suq6ia','DNforey','zhD4s0O','zg9JDg9YifS','v2XwDuG','tK1Tyu0','zgXLq2XVC2u','BM5Ly3rLzca','rI04iJ8+cJW','zM9YD2fYze8','zxjYB3i6ia','AwrLBNrPDhK','BMv0D29YAY0','C2vHCMnO','ywn0Aw9U','Bgf1BMnOy3q','y29UzMLNoIa','B3b0Aw9UCW','id4MmG','C3LZDgvTza','B3jRlw9UBgK','CMvJDxjZAxy','vhHRtwq','AxjPBMCU','qxf1vKe','je5prevFuee','mM0SidfOlca','ihbHC3n3B3i','ChbLBMq6','ywLYuMvXDwu','zxzLBNq','EurKChq','twvKAwfeAxi','DwvZDa','lw5HBwuGpgq','x0DbvevxqvK','Aw5JBhvKzuu','Dg9YycbMB3i','AcbHigrPzMy','swfbC1C','q29UzMLNoIa','yxLnzxnZywC','DMTczK8','CxvLC3rDihi','AM9PBG','vgLTzxi','zxjLBNqGC2u','qxrnCW','u3rVChbLzca','BNrFzgLZy28','BvbOwM0','Bwv0Ag9K','zw5dBgf3ieC','s01Avxu','EMTYzha','BgLZDa','ywLYic0TzM8','l3jLz2LZDgu','ignVBMzPzYa','ugvAz0K','Axnoyu4','CMfUzg9T','Aw5ZDc0','y2LPwgW','uKW6ia','zgvZDhjVEq','DMjeELK','C2uGC2TPCha','ugf0Aa','A2jmDeS','zxHPDcaXmJC','r2f0zxDHEu8','tK9erv9qqvq','qvnXCKC','ls1XCI1MAwW','CuvSwKi','Aw5ZDgfSBa','BgfZDfjLBge','BMDqywLYuMu','B3nRrLa','EwfYqLm','ig5HBwu9','BMvJDgLUzW','CMvHzhLtDge','igLUDgvUDgK','ig1PC3nPBMC','y3rLzcbJB2q','lNbUzW','CMvSyxLbDhq','qxjNDw1LBNq','Dgv4Da','zw50pwnSAwu','zxrcCMLKz2u','BK1Zpq','ywnJzxnZq28','zLjSBg0','wMPotei','DMvYC2LVBG','lvrfuK0','DuHiBfe','vMvVy0C','CgXHDgzVCM0','BMzPzYbWyxq','zwH0rwC','y2XVC2vhyxq','DvL5y2u','yw5KihbHC3m','zxK+uNvUqxq','C2vYDMvY','zuTyBuO','ihn0B3aU','CNvUBMLUzW','ChvZAfbLBMq','B3vUDa','ihjLDhvYBMu','q0Xbv0rct1q','Aw5ZDgfUy2u','BgfZDevYCM8','ugfPCMvKoIa','Bwf0y2G','vujmsumGiI0','ifjLC3rHCNq','yxbWCM92zva','q1fXzKK','yxjNDG','CeLuvMS','CM91BMqGC2u','AcbMB3iGC2u','uKvhx1nA','y2XVC2u','BNn0ywXSzwq','ignSAwvUDhm','jMD0oW','zgvSzxrL','CMvXDwvZDgu','z2vZ','AM1NwgK','ihrVA2vUoIa','C2vYDMvYvxi','ruvRCMe','Dg9Y','odC4oq','C3rHCNrLzca','tgf1BMnOqwC','y29UzMLN','ihvYBd0','vhrZvKW','zsbdteKGC2m','AxnszwXHEu8','yM1qDvK','ihj1BNrPBwu','ugfZC3DVCMq','v2fotMK','CMvXig1LDgG','BMrnCZ0','AwrSzsbJBg8','A2v5pKTLzxa','CMvZDgfYDa','zxjYB3jmB2C','Duvht2C','zw50pq','B249','CfnsBhe','qvHbsue','lJe6mtG3odK','Dw5SB2fK','ww91ignHBIa','yxqG','mJaW','CMvJzw50','y29UC3rYDwm','yw50ihrVigi','CgfYC2u','qwXPDMu8l2S','tNHezMO','cLr5Cgu9C2K','BgLUDxG','CgvUzgLUz1a','BwLU','BgKUBg9N','BwLZC2LUzW','B3vUzcbZzxi','y2f0y2G','y2fUy2vSr2e','CYbUB3qGCMu','CxiTzMLSzsa','Dw5Yzwy','yxvUy2HLCI4','u093BKi','ygnSyxDRzxq','CNvUifSTlwC','C3rHCNrZv2K','AxqU','BgfIzwW','CMvQzwn0zwq','zguGCNvUDgK','BMvZB2e','yxK+cIaGpgS','BMqU','BgWIig9Yici','DhDHCMvCtwK','AcbNyxrLD2e','Bg9Hza','zgLZywjSzq','y3rPDMf0Aw8','Dwnqr1C','zxrYEvrPBwu','Cw1evvG','ls1UB3C','tdOG','u3rHCNrLza','AvvbEKy','ztOG','C3rKAw8','tKLSr2K','DfrPBwvY','cIaGpc9HCNi','AxnbCNjHEq','phvUA25VD24','BwfYA1bHAxi','zwm9mGPxB3i','ifbYzxnZiem','DMLJzsbYzxm','ihbHAxiIigy','BM93','D2LUzg93CY0','BMfTzq','AgfZr2f0zxC','DxbKyxrLu24','ugf0AdOG','ihrOzsbWywK','AwvUDerLBwe','AxncDwzMzxi','yxnZD29Yza','cGPBsw5ZDge','B3j0','Ahr0CdOVlW','yxj0yMvHDca','Aef3uey','Aw5JBhvKzxm','CMf3','DgGG','AxnjBNrLz2u','zwqGyMvJyxu','CMvSyxKGy28','tg9NihbHDgG','DgfSBgf0Aw8','igrPCJOG','ihrVA2vUigK','Dg9mB3DLCKm','CMLUzZ4','mJK4mtv3zMjVEMi','mti3lJaUmc4','ywnRz3jVDw4','BwvZC2fNzq','yxrLD2f5igK','B2TLBG','DgjLyxq','CMXrDuS','wxf0vLu','sw52ywXPzca','CMvXDwLYzwq','C2f0ywW','lNbSAxn0','wvnXuxO','A2uGmZbZlca','CxvLDwuGChu','AxnWBgf5tMe','Dgv3yxLnzxm','zcbZAw5Jzum','CLf1zxvLr2e','CNjVCKXVzW','tNLkC3y','C3rHBgXHDgK','y29KzsbYzwy','lY9bChbSzs8','ywKUy2XHD2S','ELzMBNe','yMfJA2DYB3u','uMvSyxKGvvi','C3rHCNrLzee','zxHWB3j0ifa','zM91BMq','cLn0yw5Kyxi','z2v0vgLTzq','Ag15Bwi','DxjSpL0GwY0','uMvSyxLszwm','CMvSyxLtB2m','A2u9','CZWVA2v5pGO','z2f0zxDHEvq','C3rHCNrPBMC','CMv1C2uGB3a','zxDHEsa','yNjPzgDLlq','Esb0B2TLBIa','pd94BwWGDMu','igj1DcbZDg8','Ag9ZDa','Dw5K','Aw5KzxHpzG','C2vYDMLJzq','BMuUDgfYz2u','igrLDMLJzuK','ifnLDcb0Agu','sK1Jqu4','BgvUz3rO','zgLZCgXHEu4','zM9YBsbMB3i','C25HChnOB3q','x19JBgf3A2u','ndmYzgrIzeLp','ktOG','vg9Rzw5gB3u','BMCUieXLzNq','AwrL','zw50CW','vgHPCYbICMK','r2f0zxDHEvi','l251BgWGmJ4','qMfJA2DYB3u','C3rZ','BM90ihjLywq','Dg9mB2nHBgu','B2zM','y291BNq','ls1MB3jJzq','C2vUzeDHDgu','DhjPBq','twXJvNO','rM91BMq','CMvXlq','CMvMCMvZAgu','y2jhEfy','zs5JBgK','Bwf4','CMvSyxKGzNi','z2f0zxDHEsa','D29YzcbJB24','z2v0','DaPxyw50CZ0','A3fftwW','u2vYDMvYifu','u3rYAw5N','zgvMyxvSDa','zxj2AwnLlwW','C2GGC2L6zt0','zMLUza','DhLWzq','CMvSyxKGzxi','rMHYrNa','zwqGka','B3nLzdOG','DxrMoa','CNzPy2uGDg8','AxnTyxrJAa','AwrSzsb3Axq','rvHiC3C','z2v0u25HChm','igHHBMrZAge','AefwrgS','DwXLzcbYzwe','t29Iugy','zMfSC2u','yxbWzw5KoG','pg5VBMu+','Ee9NqLi','w3n0yxr1C10','CM9Szq','uMvXDwvZDfi','yxLezw1HBMq','CxvLCNK','rLriweu','zxDHEvvYBa','AgvHCNrIzwe','AxzLihnVy2S','CgfZC3DVCMq','zxqUyNjPzgC','Eu1Z','Dgv3yxLpCgu','y29UBMvJDca','y29UBMvJDgu','ExbHC3mGDgG','Dw5ZDxbWB3i','CgfPCMvK','zwnOBYaIBM8','uwnrBvm','zsbKzwXHEsa','DwXLzcbKzwW','lZeYnY4WlJa','revKzw8','EwvZ','zxDHEs5HDxq','u2vYDMLJzsa','DfrPBwvVDxq','zxDHEq','u0Lhsu5u','t3bLBJ0','CMWGphDZoI8','BwfUzfn0yxi','A2DYDha','D2f5twvZC2e','zxHPDa','AcbUBYbHy3q','pLn0yw5Kyxi','yxbWCM92zwq','DgLUzYbMCMu','zxf1zxn0swq','ieLeoIa','yxr0zw1WDd0','u0nssvbux1a','B2rLiciKu0m','B3zL','AwDUB3jL','y2vZuMvJzw4','mxWYFdv8m3W','y2uGD2fZigK','zerLDMLJzxm','Axjszxf1zxm','rhnzvNO','zgfYD2LU','DgG8l2TLEt4','B2rLihjLzNi','C3rVCa','cLjLC3rHCNq','zxjLCxvPC2K','Cg9YDa','Dg9ju09tDhi','C3rHCNq','su11Eu8','AeDRu3e','sLrVyvy','DeLUDgvYDMe','zcbMB3iGzNi','tMnUze0','Dg9tDhjPBMC','uNvUBMLUzZO','wwDerwi','yxrLD2f5lxu','CgvUzgLUzW','C2XPy2u','zw50','zxqGAw5ZDge','tMHLyxu','zcbZzxj2Awm','zguGAw4GDgG','BIaIy2XHD2S','lwPZB25D','y29UDgvUDc0','Cgf5Bg9Hza','B25Jzq','AxmGC2fMzxq','AxngAw5PDgu','zgvUDgL0Esa','B3bLBMnSyxC','zwzYzxnOzwq','mZyXnZiWohbYrLbxDW','x1rps0vo','DxnLCM5HBwu','mtuYmta3mJnnyurtzfu','DMfSDwvZ','zxqGCMvHC28','BgLLBNq','yxLnCZ0','ChbLzc4GuMu','vvnhu2u','Dw50','A0zTENa','C3bSAxq','Bg9N','Bg9NCW','tKLcB1u','AdOG','mci+cJXKAwm','t1bftG','y2uGywXYzwe','C3LZDgvTy3q','ywLYlNjLAMu','tg9NoIa','zMX1C2GGCxu','yxv0Aa','zZOG','Aw5Nienmssa','AxnhyxrLD2e','B2q9','r2f0zxDHEtO','D2LUzg93C0G','CxjjBwfNzva','Ew5pt1G','u0Lhvevstq','BgLZDcb2zxi','C2vYDMLJzuK','DwvZDeLKpq','BgfZDe1Z','ienSyxDRzxq','B25tDgf0Dxm','zxjYB3jdB3i','ue9tva','l1bjra','zgvfEhbPCMu','BgLUzxm','C3rVCMvK','yw1Lia','CMfTCW','zgv2AwnLrMe','igzVCIbNyxq','AgfZ','AKXwuMm','BNHnsMy','C29Upq','BM5Ly3qGyxq','vezSv3O','CMvQzwn0uge','Dw5RBM93BG','ignVBMzPzZO','CMvTB3rLsxa','zguGpI9Kzxy','kYKRja','ihjLyxnVBJ0','CgfYyw1Z','zwqGy29Kzt0','zevYCM9Ypwe','C2vYDMvYlw0','sw5ZDgfUy2u','CgfPCMLUzYa','Agz2zMi','CMvSyxLdB24','zgfLBw9Ulxi','z25KwvG','ugfPCIbYzwC','D3nZoI8V','tvPWvg4','C2nOzwr1Bgu','C3rHCNrizwe','BwfYz2LU'];_0x39fb=function(){return _0x5735ef;};return _0x39fb();}import{dirname as _0x5e6fdf,isAbsolute,join as _0x29692c,resolve as _0x1f7ad5}from'path';import _0x18eb6a from'qrcode';var DEFAULT_QR_DIR=getOpenClawMediaDir();async function writePairingQrPng(_0x5868c7,_0x128bd1){const _0x17c42e={_0xe56e8d:0x2cb,_0x4fc6df:0x124,_0x22d69c:0x20e,_0x3532a1:0x317,_0x2a1251:0x4c4,_0x4f5a3e:0x3a9,_0x1f73f1:0x3cf,_0x35a70a:0x4e5,_0x12933c:0x393},_0x271643={_0x2b7d60:0x202};function _0x4754d0(_0x297a7b,_0x242924){return _0x11b7ab(_0x297a7b,_0x242924-0xa5);}const _0x38c0cc={'PppSU':function(_0x18af4d,_0xcf53d5,_0x1d440a){return _0x18af4d(_0xcf53d5,_0x1d440a);},'FhrFp':function(_0x510c1b,_0x34e07b){return _0x510c1b(_0x34e07b);}};function _0x3f67fa(_0x554ee6,_0x37719c){return _0x11b7ab(_0x37719c,_0x554ee6-_0x271643._0x2b7d60);}const _0x4f5c6=resolveQrOutputPath(_0x5868c7,_0x128bd1),_0x2cb74c={};_0x2cb74c[_0x3f67fa(0x1cd,_0x17c42e._0xe56e8d)+'e']=!![],_0x38c0cc[_0x3f67fa(_0x17c42e._0x4fc6df,_0x17c42e._0x22d69c)](_0x3abe96,_0x38c0cc[_0x3f67fa(_0x17c42e._0x3532a1,_0x17c42e._0x2a1251)](_0x5e6fdf,_0x4f5c6),_0x2cb74c);const _0x10a774={};_0x10a774[_0x4754d0(0x31,0x1b8)]=_0x4754d0(0x1a6,0x2fe)+'g',_0x10a774[_0x3f67fa(_0x17c42e._0x4f5a3e,0x397)+'rectionL'+'evel']='M',_0x10a774[_0x3f67fa(_0x17c42e._0x1f73f1,0x565)]=0x1,_0x10a774[_0x4754d0(_0x17c42e._0x35a70a,_0x17c42e._0x12933c)]=0x2d0;const _0x2a5846=await _0x18eb6a[_0x3f67fa(0x156,-0xb3)+'L'](_0x5868c7['qrPayloa'+'d'],_0x10a774),_0x2ca7d5=_0x2a5846[_0x4754d0(0x1b4,-0x26)](/^data:image\/png;base64,/,'');return _0x2d9822(_0x4f5c6,Buffer[_0x3f67fa(0x1a9,0x305)](_0x2ca7d5,'base64')),_0x4f5c6;}function resolveQrOutputPath(_0x54b201,_0xe8fd93){const _0x91baad={_0x1920be:0x3be,_0x616b50:0x35e,_0x4a9185:0x32b,_0x12b7e9:0x2a5,_0x5347ec:0x21e,_0x420a0b:0x216,_0x5d5a40:0x36},_0x55cebd={_0x30ff78:0x2a1};function _0x2945a7(_0x594253,_0x2bd5a9){return _0x6eb3(_0x594253,_0x2bd5a9-0x6b);}const _0x5bcd40=_0xe8fd93?.[_0x23d07a(_0x91baad._0x1920be,_0x91baad._0x616b50)]();function _0x23d07a(_0x298bc1,_0xa30955){return _0x6eb3(_0x298bc1,_0xa30955-_0x55cebd._0x30ff78);}if(_0x5bcd40)return isAbsolute(_0x5bcd40)?_0x5bcd40:_0x1f7ad5(_0x5bcd40);return _0x29692c(DEFAULT_QR_DIR,_0x54b201[_0x23d07a(_0x91baad._0x4a9185,_0x91baad._0x12b7e9)][_0x2945a7(_0x91baad._0x5347ec,_0x91baad._0x420a0b)+'d']+_0x2945a7(0x146,_0x91baad._0x5d5a40));}function decidePairServiceAction(_0x69a68e,_0x27a859){const _0x353051={_0x2a6548:0x2c9,_0x7dd363:0x169,_0x49fb23:0x626,_0x286572:0x2ec,_0x4a735a:0x109,_0x182426:0x389,_0x2c482f:0x31a},_0x4b930b={_0x382b63:0x2c7};function _0x287054(_0x5b3c8a,_0x4db896){return _0x11b7ab(_0x4db896,_0x5b3c8a-_0x4b930b._0x382b63);}const _0x9e80f6={};function _0x3f45d0(_0x4bd913,_0x1daf4b){return _0x11b7ab(_0x4bd913,_0x1daf4b-0x3c5);}_0x9e80f6['PgjDp']=_0x287054(_0x353051._0x2a6548,_0x353051._0x7dd363);const _0x1861b3=_0x9e80f6;if(!_0x27a859[_0x287054(0x4d8,0x596)+'d'])return _0x1861b3[_0x3f45d0(0x465,_0x353051._0x49fb23)];if(!_0x27a859[_0x287054(_0x353051._0x286572,_0x353051._0x4a735a)])return'restart';if(_0x69a68e[_0x3f45d0(0x44c,_0x353051._0x182426)]===_0x3f45d0(0x57e,0x5a5)+'ed')return _0x287054(_0x353051._0x2c482f,0x39c);return _0x287054(0x5a0,0x465);}async function main(){const _0x308e80={_0x5cb51d:0x465,_0x59918c:0x173,_0x35a866:0x263,_0x3a7eb7:0x150,_0x575b9f:0x1b3,_0xf5ab3b:0x199,_0x1fb352:0x35b,_0x2bd5f:0x234,_0x14e030:0x2f2,_0x4e560c:0x97,_0x44ea0e:0x3ea,_0x2e4fcf:0x200,_0x111e02:0x354,_0xbea019:0x1cd,_0xd8c1dc:0x2f6,_0x54d803:0x1ee,_0x2d29cb:0x4be,_0x3329c4:0x4d2,_0x4d72a0:0x295,_0x42fac4:0x12f,_0xde14f0:0x7,_0xda41eb:0x2bf,_0x308a3d:0x376,_0x3392de:0x120,_0x4a4c20:0x170,_0x26891b:0x73,_0xdcf053:0xea,_0x55b5d5:0x4b,_0x53865c:0x346,_0x187876:0x1bf,_0x1d835c:0x77,_0x48ad32:0x43c,_0x5c198a:0x590,_0x6160d5:0xd,_0xab6016:0x5d,_0x2f8237:0x20d,_0x4e358c:0x490,_0x377a3d:0x157,_0x56514e:0x17b,_0x1b8f20:0x158,_0x19cfcd:0x127,_0x347b21:0x164,_0x54b0ed:0x10d,_0x125887:0x24,_0x428539:0x35a,_0x492fe6:0x54f,_0x49d7d4:0x4c,_0x105e93:0x1df,_0x4e1844:0x213,_0x351a20:0x2a0,_0x9e0ae7:0x331,_0x1db904:0x18a,_0x410bf3:0x27d,_0xacc4b0:0x18a,_0xf31180:0x204,_0x2851ca:0x15f,_0x351a0d:0x1d2,_0xa8eb1d:0x23a,_0x55cb69:0x2f7,_0x355c7f:0x316,_0x451b98:0x469,_0x2cd9e6:0x215,_0x17161b:0x1d,_0x4b6e73:0x66,_0x3ef063:0x55a,_0x413153:0x536,_0x37eb74:0x68a,_0x31160d:0x50d,_0xe1520b:0x59,_0x42ac6e:0xd1,_0x1ff69b:0x455,_0x37db42:0x1bb,_0x4dfea8:0xab,_0x5a92c1:0x6f,_0x21070c:0x15c,_0x6a2ec4:0x1b5,_0x1bf130:0x13d,_0x22bd36:0xc5,_0x2a30f0:0x115,_0x592e12:0x20c,_0x3e0e14:0x222,_0x70b428:0x4f5,_0x7b43fa:0x25d,_0x41c1e7:0x57,_0x5a2aac:0x342,_0x107f32:0x102,_0x5ba944:0x6f7,_0x104722:0x403,_0x4f7519:0x289,_0x1d4d5:0xac,_0x5bf9ca:0x54,_0x429b51:0x12,_0x460a4d:0x26b,_0x5ba1bb:0x5c,_0x512eb8:0x478,_0x42f2ee:0x4b4,_0x5b9fd7:0x121,_0x5aa7c7:0x44d,_0x2ccc73:0x509,_0x542488:0x265,_0x189601:0x206,_0xb0c647:0x163,_0x234928:0x387,_0x1608da:0x38e,_0x3087e6:0x6b,_0x43f73b:0x22e,_0x48b355:0x264,_0x265548:0x2eb,_0x11bee7:0x1ec,_0xfa419:0x1e5,_0xcde5eb:0x1d,_0x1f20ce:0x24e,_0x2512f5:0x374,_0x2ce4e0:0x16e,_0x5bf4e5:0x402,_0x20ef14:0x16d,_0x36cb88:0x442,_0x4d495b:0x18c,_0x480cd1:0x5d,_0x5c118b:0x15b,_0x2ed9c1:0xfa,_0xa946a4:0x41e,_0x58e15e:0x3e0,_0x1bc009:0x388,_0xb4ba64:0x7,_0x407290:0x100,_0x577de2:0x9d,_0x139d63:0x280,_0x385188:0x2e4,_0x2dd751:0x168,_0x2813a1:0x414,_0xcc15e8:0x35d,_0x30d700:0x515,_0x5968d6:0x11e,_0x5035c2:0x3d5,_0x24ce8b:0xe,_0x5f0bd8:0x2fa,_0x4657e8:0x43a,_0x95d946:0x199,_0x55e530:0x355,_0x136446:0x30f,_0x25ed98:0x476,_0x556636:0x36b,_0x231499:0x3ef,_0x161095:0x2fc,_0x315153:0x329,_0x9e6e64:0x28f,_0x7e9478:0x425,_0x143a81:0x506,_0x5524a9:0x465,_0x4d9d50:0x542,_0x1285b1:0x408,_0x58527d:0x236,_0x26d6c1:0x48d,_0x3130e5:0x2b0,_0x58de0a:0x1b0,_0x300906:0x26e,_0x1eba54:0x33f,_0x44824c:0x1fe,_0x28213c:0x2e3},_0x67c52c={_0x10abb8:0x52c},_0x5baee3={_0x233304:0x2ff},_0x491eb4={_0x125fc4:0x29b,_0x2ffc68:0x2f6,_0x2b2fb0:0x257,_0x57be62:0x5c6,_0x22deb2:0x2c7,_0x3e6ac2:0x10b,_0x2fb8b1:0x3a5},_0x275fa2={_0x58c1dd:0x1cf,_0x523f45:0x32e,_0xb31a9c:0x3d0,_0x3fe794:0x19d,_0x24234e:0x25d,_0x305b50:0x31e,_0x324a00:0x184,_0x3e1bfc:0xa1,_0x11abe3:0x3c1,_0x1cf536:0x128,_0x42061f:0x78,_0x3e0b53:0x4ce,_0x2d887b:0x43e,_0x3df54a:0x176,_0x2308dd:0x244,_0x3071dd:0x134,_0x2e299e:0x117,_0x306509:0xe4},_0x12928d={_0xa8da50:0x7},_0x3f2c45={_0x470c86:0x706},_0x569f78={_0x2bf0eb:0x1b1},_0x33b24f={_0x36a427:0xa2},_0x3c2dbc={_0x5e9a2a:0x263},_0x39404d={'vbDzY':function(_0x29231c,_0x416b95){return _0x29231c(_0x416b95);},'eOCtj':_0x48cf0a(0x3a6,_0x308e80._0x5cb51d),'mtkck':function(_0x3be4a0,_0x58b75f,_0x46becc){return _0x3be4a0(_0x58b75f,_0x46becc);},'EzoWb':function(_0x41223e,_0x54dd48){return _0x41223e===_0x54dd48;},'kFmzp':function(_0xf27ff4,_0x110c8b){return _0xf27ff4 in _0x110c8b;},'ybsSp':function(_0x4a60b2,_0x5d92b2,_0xac0f28){return _0x4a60b2(_0x5d92b2,_0xac0f28);},'yDdpt':_0x48cf0a(0x17e,0x212),'zevcN':_0x48cf0a(_0x308e80._0x59918c,0x371),'rlQuK':_0x48cf0a(_0x308e80._0x35a866,_0x308e80._0x3a7eb7)+'e','yAEuF':function(_0x48fb62,_0x26d072){return _0x48fb62(_0x26d072);},'ItsER':function(_0x4f1618,_0x563eb6){return _0x4f1618(_0x563eb6);},'JMcAN':_0x346ef4(_0x308e80._0x575b9f,_0x308e80._0xf5ab3b)+_0x346ef4(0x48,0x4c)+_0x346ef4(_0x308e80._0x1fb352,_0x308e80._0x2bd5f)+'dy\x20runni'+'ng.\x20Left'+_0x346ef4(_0x308e80._0x14e030,0x27f)+'ed.','TcaSd':function(_0x5af65f){return _0x5af65f();},'npWkr':_0x346ef4(_0x308e80._0x4e560c,0x282)+'ed','QcEmX':function(_0x46b07a,_0x3dc9a0,_0xbdf095){return _0x46b07a(_0x3dc9a0,_0xbdf095);},'EJPuk':function(_0x202628,_0x50f1d7,_0x3f82eb){return _0x202628(_0x50f1d7,_0x3f82eb);},'ZHrEI':function(_0x141007){return _0x141007();},'KMZUu':_0x346ef4(_0x308e80._0x44ea0e,_0x308e80._0x2e4fcf),'pSRlq':_0x346ef4(0x533,_0x308e80._0x111e02),'kbLtK':_0x48cf0a(0x2c1,_0x308e80._0xbea019),'NyJsv':function(_0x37b04a,_0x2aae72){return _0x37b04a(_0x2aae72);},'VZdlJ':'Starting'+_0x48cf0a(0x1ed,0x20)+'runtime.'+_0x48cf0a(_0x308e80._0xd8c1dc,_0x308e80._0x54d803)+_0x48cf0a(_0x308e80._0x2d29cb,_0x308e80._0x3329c4)+_0x48cf0a(0x287,0x2ca)},[,,_0x28b72e='help',..._0x17e1cb]=process[_0x48cf0a(_0x308e80._0x4d72a0,_0x308e80._0x42fac4)],_0x4c15e1=_0x39404d[_0x346ef4(_0x308e80._0xde14f0,-0x5d)](hasFlag,_0x17e1cb,_0x346ef4(_0x308e80._0xda41eb,_0x308e80._0x308a3d)+'e'),_0x24ee4a=hasFlag(_0x17e1cb,'--json');if(_0x39404d[_0x346ef4(-_0x308e80._0x3392de,-0x37)](_0x28b72e,_0x346ef4(-0x1ce,-0x16))){const _0x19932e=hasFlag(_0x17e1cb,_0x346ef4(_0x308e80._0x4a4c20,0x19f));!_0x19932e&&await ensurePairPrerequisites();const _0x89cc65=resolveGatewayAuth();if(_0x39404d[_0x346ef4(_0x308e80._0x26891b,0x22c)](_0x346ef4(-0x102,0x4b),_0x89cc65))throw new Error(_0x89cc65[_0x346ef4(_0x308e80._0xdcf053,_0x308e80._0x55b5d5)]);const _0x195b12=_0x39404d[_0x346ef4(0x146,_0x308e80._0x53865c)](readFlag,_0x17e1cb,_0x39404d[_0x346ef4(_0x308e80._0x187876,_0x308e80._0x1d835c)])??_0x39404d['mtkck'](readFlag,_0x17e1cb,'-s')??_0x48cf0a(_0x308e80._0x48ad32,_0x308e80._0x5c198a)+'registry'+'.clawket'+_0x346ef4(0x62,-_0x308e80._0x6160d5),_0x90f290=readFlag(_0x17e1cb,_0x39404d['zevcN'])??readFlag(_0x17e1cb,'-n')??getDefaultBridgeDisplayName(),_0xb917fe=_0x39404d[_0x346ef4(0x1a1,-_0x308e80._0xab6016)](readFlag,_0x17e1cb,_0x39404d[_0x48cf0a(0x31b,_0x308e80._0x2f8237)]),_0x5bc52a={};_0x5bc52a['serverUr'+'l']=_0x195b12,_0x5bc52a['displayN'+_0x346ef4(_0x308e80._0x4e358c,0x396)]=_0x90f290,_0x5bc52a[_0x346ef4(_0x308e80._0x377a3d,_0x308e80._0x56514e)+_0x346ef4(0x1ff,_0x308e80._0x1b8f20)]=_0x89cc65[_0x346ef4(_0x308e80._0x19cfcd,0x2b7)],_0x5bc52a[_0x48cf0a(0x1db,_0x308e80._0x347b21)+_0x48cf0a(0x302,0x228)]=_0x89cc65['password'];const _0x1444a6=await _0x39404d[_0x346ef4(_0x308e80._0x54b0ed,_0x308e80._0x125887)](pairGateway,_0x5bc52a),_0x2dc8bf=await writePairingQrPng(_0x1444a6,_0xb917fe),_0x14cb01=getServiceStatus(),_0x2bd85f=decidePairServiceAction(_0x1444a6,_0x14cb01);if(_0x2bd85f===_0x346ef4(0x1d9,0x37b)){_0x24ee4a?_0x39404d['ItsER'](printJson,buildPairingJson(_0x1444a6,_0x2dc8bf,_0x14cb01,_0x48cf0a(_0x308e80._0x428539,_0x308e80._0x492fe6)+_0x346ef4(-0x158,_0x308e80._0x49d7d4)+_0x346ef4(_0x308e80._0x105e93,0x234)+'dy\x20runni'+_0x48cf0a(0x354,_0x308e80._0x4e1844)+'\x20unchang'+'ed.')):(printPairingInfo(_0x1444a6,_0x2dc8bf),console[_0x346ef4(_0x308e80._0x351a20,0x22e)](_0x39404d[_0x346ef4(_0x308e80._0x9e0ae7,_0x308e80._0x1db904)]),printServiceResult(null,_0x14cb01));return;}try{const _0x476c67=_0x39404d[_0x48cf0a(0x18a,_0x308e80._0x410bf3)](_0x2bd85f,_0x346ef4(-0xb8,0xa4))?_0x39404d[_0x48cf0a(0x54e,0x36e)](installService):restartService(),_0x5afdd8=_0x39404d[_0x48cf0a(_0x308e80._0xacc4b0,_0x308e80._0xf31180)](_0x2bd85f,_0x48cf0a(0x265,0x1ab))?_0x48cf0a(_0x308e80._0x2851ca,_0x308e80._0x351a0d)+_0x346ef4(_0x308e80._0xa8eb1d,_0x308e80._0x55cb69)+_0x48cf0a(_0x308e80._0x355c7f,_0x308e80._0x451b98)+_0x346ef4(0x1d0,_0x308e80._0x2cd9e6)+'e.':_0x1444a6[_0x346ef4(_0x308e80._0x17161b,_0x308e80._0x4b6e73)]===_0x39404d[_0x48cf0a(0x4b0,_0x308e80._0x3ef063)]?_0x48cf0a(_0x308e80._0x413153,_0x308e80._0x37eb74)+_0x48cf0a(0x3df,_0x308e80._0x31160d)+'changed.'+_0x346ef4(_0x308e80._0xe1520b,_0x308e80._0x42ac6e)+'ed\x20backg'+_0x48cf0a(0x297,_0x308e80._0x1ff69b)+_0x346ef4(0x227,_0x308e80._0x37db42)+_0x346ef4(0x51,0x55)+'e\x20new\x20pa'+_0x346ef4(_0x308e80._0x4dfea8,_0x308e80._0x5a92c1):_0x346ef4(_0x308e80._0x21070c,0x199)+_0x346ef4(_0x308e80._0x6a2ec4,_0x308e80._0x49d7d4)+_0x48cf0a(0x3ba,0x36c)+_0x48cf0a(0x29b,0x3a9)+_0x48cf0a(0x343,_0x308e80._0x1bf130)+_0x346ef4(_0x308e80._0x22bd36,0x229)+_0x48cf0a(0x2a7,0x256)+_0x48cf0a(0x2d9,_0x308e80._0x2a30f0);_0x24ee4a?printJson(buildPairingJson(_0x1444a6,_0x2dc8bf,_0x476c67,_0x5afdd8)):(printPairingInfo(_0x1444a6,_0x2dc8bf),_0x39404d['QcEmX'](printServiceResult,_0x5afdd8,_0x476c67));}catch(_0x14b2a3){console[_0x48cf0a(_0x308e80._0x592e12,_0x308e80._0x3e0e14)](_0x48cf0a(_0x308e80._0x70b428,0x5e9)+'succeede'+_0x346ef4(-_0x308e80._0x7b43fa,-_0x308e80._0x41c1e7)+_0x346ef4(0x43c,0x285)+_0x48cf0a(0x2e5,0x1c4)+'n\x20failed'+':\x20'+formatError(_0x14b2a3)),console[_0x48cf0a(0x20c,_0x308e80._0x5a2aac)](_0x346ef4(-0xc5,0xfe)+'still\x20ru'+_0x346ef4(_0x308e80._0x107f32,0x217)+_0x346ef4(0x27b,0x213)+_0x346ef4(-0x30,0x11f)+_0x48cf0a(0x530,_0x308e80._0x5ba944)+'run\x22\x20man'+_0x346ef4(_0x308e80._0x104722,_0x308e80._0x4f7519)),process['exitCode']=0x1;}return;}function _0x48cf0a(_0x30d177,_0x489b07){return _0x11b7ab(_0x489b07,_0x30d177-_0x3c2dbc._0x5e9a2a);}if(_0x28b72e===_0x346ef4(-_0x308e80._0x1d4d5,-_0x308e80._0x5bf9ca)+_0x346ef4(-0x1ca,_0x308e80._0x429b51)){const _0x281ba1=_0x39404d['EJPuk'](readFlag,_0x17e1cb,'--qr-fil'+'e'),_0x1831fb=_0x39404d[_0x48cf0a(0x54e,0x642)](resolveGatewayAuth);if(_0x48cf0a(0x20c,_0x308e80._0x460a4d)in _0x1831fb)throw new Error(_0x1831fb[_0x346ef4(0x38,0x4b)]);const _0x4d5cee={};_0x4d5cee[_0x346ef4(_0x308e80._0x5ba1bb,0x17b)+'oken']=_0x1831fb[_0x48cf0a(_0x308e80._0x512eb8,_0x308e80._0x42f2ee)],_0x4d5cee[_0x48cf0a(0x1db,0x281)+_0x48cf0a(0x302,_0x308e80._0x5b9fd7)]=_0x1831fb['password'];const _0x153aae=await refreshAccessCode(_0x4d5cee),_0x268209=await writePairingQrPng(_0x153aae,_0x281ba1);_0x24ee4a?_0x39404d[_0x48cf0a(0x45e,_0x308e80._0x5aa7c7)](printJson,buildPairingJson(_0x153aae,_0x268209,getServiceStatus(),_0x346ef4(0x167,0x334)+_0x48cf0a(0x32b,_0x308e80._0x2ccc73)+'reshed.')):_0x39404d['QcEmX'](printPairingInfo,_0x153aae,_0x268209);return;}if(_0x28b72e===_0x48cf0a(_0x308e80._0x542488,_0x308e80._0x189601)){const _0x4baba1=requirePairingConfig(),_0x1233d8=installService();console['log']('Installe'+_0x346ef4(_0x308e80._0xb0c647,0x2bd)+_0x48cf0a(0x2ce,0x3ba)+_0x346ef4(_0x308e80._0x234928,_0x308e80._0x1608da)+'\x20gateway'+'\x20'+_0x4baba1[_0x346ef4(0x2dd,0x28f)+'d']+'.'),printServiceResult(null,_0x1233d8);return;}if(_0x28b72e==='restart'){const _0x246780=requirePairingConfig(),_0x31bac3=_0x39404d[_0x346ef4(0x232,0x56)](restartService);console[_0x346ef4(_0x308e80._0x3087e6,_0x308e80._0x43f73b)](_0x346ef4(_0x308e80._0x48b355,_0x308e80._0x265548)+_0x346ef4(0x437,0x2bd)+_0x346ef4(_0x308e80._0x11bee7,0x10d)+'vice\x20for'+_0x346ef4(_0x308e80._0xfa419,-_0x308e80._0xcde5eb)+'\x20'+_0x246780[_0x346ef4(0x36d,0x28f)+'d']+'.'),printServiceResult(null,_0x31bac3);return;}function _0x346ef4(_0x1d88ca,_0x2a6c92){return _0x11b7ab(_0x1d88ca,_0x2a6c92-_0x33b24f._0x36a427);}if(_0x28b72e===_0x39404d[_0x48cf0a(_0x308e80._0x1f20ce,_0x308e80._0x11bee7)]){const _0xef5103=stopService();console[_0x48cf0a(0x3ef,0x3e4)](_0x48cf0a(0x249,0x3e8)+_0x346ef4(_0x308e80._0x2512f5,_0x308e80._0x2ce4e0)+_0x346ef4(0x90,_0x308e80._0x49d7d4)+'ce.'),printServiceResult(null,_0xef5103);return;}if(_0x28b72e===_0x48cf0a(0x4ca,_0x308e80._0x5bf4e5)+'l'){const _0x33c49e=uninstallService();console['log'](_0x346ef4(_0x308e80._0x20ef14,0x2aa)+'backgrou'+'nd\x20servi'+_0x346ef4(_0x308e80._0x36cb88,0x2c4)+'tration.'),_0x39404d[_0x346ef4(_0x308e80._0x4d495b,-_0x308e80._0x480cd1)](printServiceResult,null,_0x33c49e);return;}if(_0x39404d[_0x48cf0a(0x18a,0x311)](_0x28b72e,_0x39404d[_0x346ef4(_0x308e80._0x5c118b,_0x308e80._0x2ed9c1)])){stopService(),deletePairingConfig(),console[_0x346ef4(_0x308e80._0xa946a4,0x22e)]('Cleared\x20'+_0x346ef4(_0x308e80._0x58e15e,_0x308e80._0x542488)+_0x346ef4(0x1ea,0x68)+getPairingConfigPath());return;}if(_0x28b72e===_0x346ef4(0x2af,_0x308e80._0x1bc009)){printStatus();return;}if(_0x28b72e===_0x48cf0a(0x3f0,0x40f)){const _0x2fbdc7=_0x39404d[_0x346ef4(_0x308e80._0xb4ba64,0x9a)](Number,readFlag(_0x17e1cb,'--lines')??_0x39404d[_0x346ef4(-_0x308e80._0x407290,_0x308e80._0x577de2)]),_0xe302cb=parseLookbackToMs(readFlag(_0x17e1cb,'--last')??readFlag(_0x17e1cb,'-l')),_0x491e95=readRecentCliLogs({'lines':_0x2fbdc7,'lastMs':_0xe302cb,'includeErrorLog':hasFlag(_0x17e1cb,_0x346ef4(0x28c,_0x308e80._0x139d63))});if(_0x24ee4a){const _0x441bbc={};_0x441bbc['ok']=!![],_0x441bbc['lines']=_0x491e95,_0x39404d[_0x346ef4(_0x308e80._0x385188,_0x308e80._0x2dd751)](printJson,_0x441bbc);}else _0x491e95['length']===0x0?console[_0x346ef4(0x153,_0x308e80._0x43f73b)](_0x346ef4(_0x308e80._0x2813a1,_0x308e80._0xcc15e8)+_0x48cf0a(0x3fc,_0x308e80._0x30d700)+'logs\x20fou'+_0x346ef4(0x222,_0x308e80._0x5968d6)):console[_0x346ef4(_0x308e80._0x5035c2,_0x308e80._0x43f73b)](_0x491e95[_0x346ef4(_0x308e80._0x24ce8b,0x84)]('\x0a'));return;}if(_0x28b72e===_0x48cf0a(0x171,_0x308e80._0x5f0bd8)){const _0x208ae6=await buildDoctorReport();_0x24ee4a?_0x39404d[_0x346ef4(-0x8f,0x168)](printJson,_0x208ae6):printDoctorReport(_0x208ae6);return;}if(_0x28b72e===_0x48cf0a(_0x308e80._0x4657e8,0x447)){const _0x4de153=requirePairingConfig(),_0x419913=resolveGatewayUrl(readFlag(_0x17e1cb,_0x48cf0a(_0x308e80._0x95d946,0xd1)+_0x346ef4(_0x308e80._0x55e530,_0x308e80._0x136446))??_0x39404d[_0x346ef4(_0x308e80._0x25ed98,_0x308e80._0x556636)](readFlag,_0x17e1cb,'-g')),_0x54cd4b=_0xc55ba4=>{function _0x574f86(_0x163a7e,_0x558f49){return _0x48cf0a(_0x558f49- -0x148,_0x163a7e);}console['log']('['+Date[_0x574f86(-0x2e,_0x569f78._0x2bf0eb)]()+']\x20'+_0xc55ba4);};!_0x4c15e1?(console[_0x48cf0a(_0x308e80._0x231499,0x567)](_0x346ef4(_0x308e80._0x161095,_0x308e80._0x315153)+_0x346ef4(-0x18d,0x58)+_0x4de153[_0x346ef4(0x2c5,_0x308e80._0x9e6e64)+'d']),console['log'](_0x48cf0a(_0x308e80._0x7e9478,0x51e)+_0x346ef4(0x334,0x1f1)+_0x4de153[_0x346ef4(0x250,0xcc)+'Id']),console['log'](_0x346ef4(0x495,0x329)+'URL:\x20'+_0x419913),console[_0x48cf0a(0x3ef,_0x308e80._0x143a81)](''),console['log'](_0x39404d['VZdlJ']),console['log']('')):_0x54cd4b(_0x48cf0a(_0x308e80._0x5524a9,_0x308e80._0x4d9d50)+_0x48cf0a(_0x308e80._0x1285b1,_0x308e80._0x58527d)+_0x346ef4(_0x308e80._0x26d6c1,_0x308e80._0x3130e5)+_0x346ef4(_0x308e80._0x58de0a,0xee)+_0x346ef4(_0x308e80._0x300906,0x252)+_0x48cf0a(_0x308e80._0x1eba54,_0x308e80._0x44824c)+_0x4de153[_0x346ef4(_0x308e80._0xa8eb1d,0x28f)+'d']);_0x4c15e1&&writeServiceState();const _0x1a937e=new BridgeRuntime({'config':_0x4de153,'gatewayUrl':_0x419913,'onLog':_0x590849=>{function _0x484756(_0x23c099,_0x755da9){return _0x346ef4(_0x755da9,_0x23c099-0x3a5);}_0x54cd4b(_0x484756(_0x3f2c45._0x470c86,0x638)+']\x20'+_0x590849);},'onStatus':_0x50a739=>{function _0x2895f9(_0x435337,_0x4832ac){return _0x346ef4(_0x4832ac,_0x435337-0x169);}if(_0x50a739['lastErro'+'r']){_0x54cd4b(_0x308ab8(_0x275fa2._0x58c1dd,_0x275fa2._0x523f45)+'\x20relay='+(_0x50a739[_0x2895f9(_0x275fa2._0xb31a9c,0x451)+_0x308ab8(-0x23,-0x132)]?'up':_0x308ab8(0x9,-_0x275fa2._0x3fe794))+('\x20gateway'+'=')+(_0x50a739['gatewayC'+'onnected']?'up':_0x2895f9(0x16b,0xa1))+(_0x308ab8(0xe2,_0x275fa2._0x24234e)+'=')+_0x50a739['clientCo'+'unt']+_0x308ab8(_0x275fa2._0x305b50,0x521)+_0x50a739[_0x2895f9(0x236,_0x275fa2._0x324a00)+'r']);return;}function _0x308ab8(_0x97ab8,_0x3dedde){return _0x346ef4(_0x3dedde,_0x97ab8-_0x12928d._0xa8da50);}_0x39404d[_0x308ab8(_0x275fa2._0x3e1bfc,0x41)](_0x54cd4b,_0x2895f9(0x331,_0x275fa2._0x11abe3)+'\x20relay='+(_0x50a739[_0x2895f9(0x3d0,0x251)+'nected']?'up':_0x308ab8(0x9,-_0x275fa2._0x1cf536))+(_0x2895f9(0x14c,-_0x275fa2._0x42061f)+'=')+(_0x50a739[_0x2895f9(_0x275fa2._0x3e0b53,_0x275fa2._0x2d887b)+_0x2895f9(_0x275fa2._0x3df54a,0x36f)]?'up':'down')+(_0x2895f9(_0x275fa2._0x2308dd,_0x275fa2._0x3071dd)+'=')+_0x50a739[_0x2895f9(_0x275fa2._0x2e299e,-_0x275fa2._0x306509)+'unt']);},'onPendingPairRequest':_0x495830=>{const _0xd00a4c={_0x1a2179:0x432};function _0x1dc6f8(_0x4ca01f,_0x237b7f){return _0x48cf0a(_0x4ca01f- -_0xd00a4c._0x1a2179,_0x237b7f);}function _0x129ae0(_0x402818,_0x18f643){return _0x48cf0a(_0x18f643-0xb2,_0x402818);}_0x54cd4b(_0x1dc6f8(0xb1,0x18e)+_0x129ae0(_0x491eb4._0x125fc4,_0x491eb4._0x2ffc68)+_0x1dc6f8(-0x81,-_0x491eb4._0x2b2fb0)+'='+_0x495830[_0x1dc6f8(0xef,-0x46)+'d']+(_0x129ae0(0x35e,0x3fb)+'d=')+(_0x495830[_0x129ae0(0x6a9,_0x491eb4._0x57be62)]||_0x129ae0(_0x491eb4._0x22deb2,0x3a5)+'>')+_0x1dc6f8(-0x1c8,-_0x491eb4._0x3e6ac2)+(_0x495830['displayN'+'ame']??_0x129ae0(0x26d,_0x491eb4._0x2fb8b1)+'>'));}});_0x1a937e[_0x48cf0a(0x3c6,_0x308e80._0x28213c)]();const _0x336f8e=async()=>{const _0x99e95b={_0x37b786:0x3d},_0x3e5348=('0|2|1|3|'+'4')[_0x1a7b39(_0x67c52c._0x10abb8,0x411)]('|');function _0x1a7b39(_0x656085,_0xd34828){return _0x346ef4(_0xd34828,_0x656085-_0x5baee3._0x233304);}function _0x344228(_0x4bbd4b,_0x3647d9){return _0x346ef4(_0x4bbd4b,_0x3647d9-_0x99e95b._0x37b786);}let _0x166f83=0x0;while(!![]){switch(_0x3e5348[_0x166f83++]){case'0':process['off'](_0x39404d[_0x344228(0xdb,0x2d7)],_0x336f8e);continue;case'1':await _0x1a937e['stop']();continue;case'2':process[_0x344228(0x394,0x1da)]('SIGTERM',_0x336f8e);continue;case'3':_0x4c15e1&&clearServiceState(process[_0x344228(0xd8,-0x28)]);continue;case'4':process[_0x1a7b39(0x4ea,0x5a7)](0x0);continue;}break;}};process['on'](_0x48cf0a(0x3a6,0x508),_0x336f8e),process['on'](_0x48cf0a(0x403,0x3d2),_0x336f8e),await new Promise(()=>{});}printHelp();}function printPairingInfo(_0x5c374d,_0x3b7480){const _0x4c2b63={_0x2a1f28:0x401,_0x14e84d:0x3ed,_0x2cd8bf:0x47c,_0x4950be:0x140,_0x54f5e5:0x46f,_0x566854:0x50,_0x1081f6:0x657,_0x4059a4:0x4ef,_0xc0dfb0:0x48a,_0x3f1672:0x68,_0x5c626a:0x3fd,_0x5034e8:0x50,_0x4a9f4d:0x190,_0x32b801:0x3d7,_0x11f623:0x11c};_0x5c374d[_0x19a3b8(-0x218,-0x321)]==='refreshe'+'d'&&console[_0x163acf(0x293,0x397)](_0x163acf(0x313,_0x4c2b63._0x2a1f28)+'lready\x20p'+_0x19a3b8(-0x240,-_0x4c2b63._0x14e84d)+_0x163acf(_0x4c2b63._0x2cd8bf,0x389)+_0x19a3b8(-_0x4c2b63._0x4950be,-0x1ac)+_0x163acf(0x3de,_0x4c2b63._0x54f5e5)+'e.');console[_0x163acf(0x19e,0x397)](_0x163acf(0x36d,0x492)+'ID:\x20'+_0x5c374d['config']['gatewayI'+'d']),console[_0x19a3b8(-_0x4c2b63._0x566854,0xb0)](_0x163acf(_0x4c2b63._0x1081f6,_0x4c2b63._0x4059a4)+_0x163acf(0x2c3,_0x4c2b63._0xc0dfb0)+_0x19a3b8(-_0x4c2b63._0x3f1672,-0x8f)+'e\x20Clawke'+_0x163acf(0x462,_0x4c2b63._0x5c626a));const _0x48dfc8={};_0x48dfc8['small']=!![],_0x52e07e['generate'](_0x5c374d['qrPayloa'+'d'],_0x48dfc8);function _0x19a3b8(_0xd2a459,_0x1a6258){return _0x11b7ab(_0x1a6258,_0xd2a459- -0x1dc);}console[_0x19a3b8(-_0x4c2b63._0x5034e8,-_0x4c2b63._0x4a9f4d)](_0x163acf(_0x4c2b63._0x32b801,0x43e)+'\x20'+formatLocalTime(_0x5c374d['accessCo'+'deExpire'+_0x163acf(0x8a,0x19f)]));function _0x163acf(_0x3f02a7,_0x25cce4){return _0x11b7ab(_0x3f02a7,_0x25cce4-0x20b);}console['log'](_0x19a3b8(_0x4c2b63._0x11f623,0x7)+':\x20'+_0x3b7480);}function printStatus(){const _0x706d73={_0x41fe2a:0x898,_0x303172:0x69c,_0x17f57b:0x76f,_0x398e24:0x1df,_0x500f5e:0x5ea,_0x2d4f0b:0x703,_0x544d64:0x7a7,_0x38de3e:0x59e,_0x579bfe:0x68d,_0x2cf2fa:0x79,_0x10d8a7:0x53,_0x4a3815:0x86,_0x481917:0x4f9,_0x5d1e9f:0x78d,_0x89e45f:0x5a1,_0x2afd39:0xdb,_0x14c34c:0x3b,_0x5a8dc7:0x167,_0x3d26b7:0x210,_0x3d87f6:0x212,_0x3c88e5:0x6b7,_0x59f82c:0xc1,_0x5e346c:0xba,_0x124753:0xca,_0x26df4:0x788,_0x21e0f5:0x97,_0x10156e:0x17d,_0x1f16e4:0x42,_0x415058:0xb,_0x1c68f:0xdc,_0x5defc5:0x99,_0x316fc9:0x72b,_0x62514c:0x601,_0x50b9e:0xd4,_0x3ee2d0:0x282,_0x5332e7:0x83c,_0x4b165e:0xc6,_0x29b53e:0x668},_0x188814={_0x272026:0xd2},_0x453c1c={'xOgBR':function(_0xe14d3d){return _0xe14d3d();}},_0x1f8a90=_0x453c1c[_0x49864a(_0x706d73._0x41fe2a,_0x706d73._0x303172)](readPairingConfig),_0x6ec48=getServiceStatus(),{logPath:_0x59a66c,errorLogPath:_0x5bf37d}=getServicePaths();function _0x3d5c48(_0x56d6c2,_0x342d15){return _0x11b7ab(_0x56d6c2,_0x342d15- -_0x188814._0x272026);}const _0xd48072=readCliVersion();console[_0x49864a(_0x706d73._0x17f57b,0x703)](_0x3d5c48(_0x706d73._0x398e24,0x1f6)+'\x20'+_0xd48072);function _0x49864a(_0x3b6ef6,_0x4d532f){return _0x11b7ab(_0x3b6ef6,_0x4d532f-0x577);}!_0x1f8a90?console[_0x49864a(_0x706d73._0x500f5e,_0x706d73._0x2d4f0b)](_0x49864a(0x62d,0x555)+_0x49864a(0x8f7,_0x706d73._0x544d64)+_0x49864a(_0x706d73._0x38de3e,_0x706d73._0x579bfe)+_0x453c1c[_0x3d5c48(-_0x706d73._0x2cf2fa,_0x706d73._0x10d8a7)](getPairingConfigPath)+')'):(console[_0x3d5c48(_0x706d73._0x4a3815,0xba)](_0x49864a(_0x706d73._0x481917,0x555)+_0x49864a(0x505,0x6ae)),console['log'](_0x49864a(0x9cb,0x7fe)+_0x3d5c48(0x4d,-0x11c)+_0x1f8a90['gatewayI'+'d']),console['log']('Instance'+':\x20'+_0x1f8a90[_0x49864a(_0x706d73._0x5d1e9f,_0x706d73._0x89e45f)+'Id']),console[_0x49864a(0x727,0x703)](_0x3d5c48(-_0x706d73._0x2afd39,_0x706d73._0x14c34c)+'RL:\x20'+_0x1f8a90['serverUr'+'l']),console[_0x3d5c48(0x57,0xba)](_0x3d5c48(_0x706d73._0x5a8dc7,_0x706d73._0x3d26b7)+(_0x1f8a90[_0x3d5c48(_0x706d73._0x3d87f6,0x18)+_0x49864a(_0x706d73._0x3c88e5,0x86b)]??'-'))),console[_0x3d5c48(_0x706d73._0x59f82c,_0x706d73._0x5e346c)](_0x3d5c48(0x7a,_0x706d73._0x124753)+'\x20'+resolveGatewayUrl()),console[_0x49864a(0x72b,0x703)](_0x49864a(0x62f,0x7c5)+'\x20'+(_0x6ec48[_0x49864a(0x5b8,_0x706d73._0x26df4)+'d']?'installe'+'d':_0x3d5c48(-0x1a8,-0x16a)+_0x3d5c48(-_0x706d73._0x21e0f5,-_0x706d73._0x10156e))+'\x20('+_0x6ec48[_0x3d5c48(_0x706d73._0x1f16e4,-0xe9)]+')'),console[_0x3d5c48(_0x706d73._0x415058,0xba)](_0x3d5c48(-_0x706d73._0x1c68f,_0x706d73._0x5defc5)+'\x20'+(_0x6ec48[_0x49864a(_0x706d73._0x316fc9,0x59c)]?_0x49864a(_0x706d73._0x62514c,0x6b5):'no')),console[_0x3d5c48(-_0x706d73._0x50b9e,0xba)](_0x49864a(0x491,0x612)+(_0x6ec48[_0x3d5c48(_0x706d73._0x3ee2d0,0x1c8)+_0x49864a(0x837,_0x706d73._0x5332e7)]||'-')),console['log'](_0x49864a(0x63f,0x70c)+_0x59a66c),console['log']('Error\x20Lo'+_0x3d5c48(0x2ad,_0x706d73._0x4b165e)+_0x5bf37d),!_0x1f8a90&&(process[_0x49864a(_0x706d73._0x29b53e,0x476)]=0x1);}function printServiceResult(_0x2e0cc1,_0x97d195){const _0x544fdb={_0x479fae:0x3e9,_0x119b30:0xa1,_0x38fa3d:0x2a2,_0x3a8217:0x1c5,_0x548e42:0x7e,_0x5f058d:0x1d8,_0x498b3e:0x380,_0x5944e9:0x212,_0x3cf6a0:0x26c,_0x388dcc:0x140,_0x411847:0x43,_0x523dfd:0x7a,_0x13e7ff:0xdd,_0xe2cd72:0x319,_0x40f900:0x347},_0x3a64f0={_0x8f3991:0x60};function _0x59d859(_0x314808,_0x17d33b){return _0x6eb3(_0x17d33b,_0x314808- -0xeb);}const _0x32c969={};_0x32c969[_0x59d859(-0x228,-_0x544fdb._0x479fae)]=_0x59d859(0xe4,-_0x544fdb._0x119b30)+'d,\x20stopp'+'ed',_0x32c969[_0x2af046(0x36c,_0x544fdb._0x38fa3d)]=_0x59d859(-_0x544fdb._0x3a8217,-_0x544fdb._0x548e42)+_0x59d859(-_0x544fdb._0x5f058d,-0x3db);const _0x2bed00=_0x32c969;_0x2e0cc1&&console[_0x59d859(0x5f,-0x9d)](_0x2e0cc1);console[_0x2af046(_0x544fdb._0x498b3e,0x1aa)](_0x2af046(_0x544fdb._0x5944e9,_0x544fdb._0x3cf6a0)+'\x20'+(_0x97d195[_0x2af046(0x288,0x22f)+'d']?_0x97d195[_0x2af046(-_0x544fdb._0x388dcc,_0x544fdb._0x411847)]?'installe'+'d,\x20runni'+'ng':_0x2bed00[_0x2af046(-_0x544fdb._0x523dfd,-_0x544fdb._0x13e7ff)]:_0x2bed00[_0x2af046(0x146,0x2a2)]));function _0x2af046(_0x5c2b8d,_0x495487){return _0x6eb3(_0x5c2b8d,_0x495487-_0x3a64f0._0x8f3991);}console[_0x2af046(_0x544fdb._0xe2cd72,0x1aa)](_0x59d859(0x13,0x9e)+_0x2af046(0x330,0x28e)+(_0x97d195[_0x2af046(_0x544fdb._0x40f900,0x2b8)+_0x59d859(0x198,0x238)]||'-'));}function printDoctorReport(_0x3f1466){const _0xd099b5={_0x2ba355:0x429,_0x317e4b:0x492,_0x341a63:0x255,_0x5a5e08:0x2b5,_0x2557d8:0x1f5,_0x88da30:0x8f,_0x5fef9a:0x4c9,_0x478bdb:0x638,_0x4a71bd:0x468,_0x481038:0xe9,_0x28496b:0x1e4,_0x2bc20a:0x265,_0x249f4c:0x49a,_0x166846:0x6f,_0x40e7a0:0x52a,_0x496889:0x35b,_0x2c9e18:0x314,_0x16591d:0x3c2,_0x9e60f4:0x4ed,_0x44d6fb:0x274,_0x596d29:0x108,_0x56f4a6:0x361,_0x2ef07f:0x5a1,_0x9447b0:0x3c2,_0xea7d00:0x3b1,_0x3b4920:0x662,_0x459923:0x2a3,_0x32b307:0x49c,_0x47fb5e:0x2a3,_0xb423d3:0x37e,_0x16cc79:0x4e4,_0x54b332:0x4b8,_0x44cf85:0x85,_0x5653ca:0x355,_0x6724c9:0x266,_0x50b4cb:0x1c4,_0x21db97:0x459,_0x3a1b51:0x2a3,_0x119f2f:0x294,_0x6931a:0x2b2,_0x139cb6:0x5e8,_0x557072:0x179,_0x2b630a:0x1f9,_0x368723:0x346,_0x3e92fc:0x2ca,_0x5ac3f5:0x540,_0x267bad:0x3d3,_0x100777:0x3a7,_0x1c5d53:0x3f7,_0x3f82ff:0x498,_0x4e5fce:0x573,_0x237a48:0x3bd,_0x554e25:0x17,_0x4830b5:0x2cd};function _0x57b884(_0x393196,_0x3f48f0){return _0x11b7ab(_0x393196,_0x3f48f0-0x117);}const _0x3dda9e={};_0x3dda9e[_0x177fdc(_0xd099b5._0x2ba355,_0xd099b5._0x317e4b)]=_0x57b884(0x29f,_0xd099b5._0x341a63);const _0x5ee4e0=_0x3dda9e;console['log'](_0x177fdc(0x212,0x308)+(_0x3f1466['paired']?'yes':'no')),console[_0x177fdc(_0xd099b5._0x5a5e08,0x468)](_0x57b884(_0xd099b5._0x2557d8,0x39e)+_0x57b884(-_0xd099b5._0x88da30,0xcd)+(_0x3f1466[_0x177fdc(0x415,_0xd099b5._0x5fef9a)+'d']??'-')),console[_0x177fdc(_0xd099b5._0x478bdb,_0xd099b5._0x4a71bd)](_0x177fdc(0x1f1,0x3e9)+_0x57b884(-0xfc,0x10d)+(_0x3f1466[_0x57b884(-0xa0,0x157)+'l']??'-')),console['log'](_0x57b884(_0xd099b5._0x481038,_0xd099b5._0x28496b)+_0x177fdc(_0xd099b5._0x2bc20a,0x363)+(_0x3f1466[_0x57b884(0x31,0x28)]??'-')),console[_0x57b884(_0xd099b5._0x249f4c,0x2a3)](_0x177fdc(0x456,0x49e)+_0x57b884(0x2a9,0x266)+(_0x3f1466[_0x57b884(_0xd099b5._0x166846,0x141)+'Id']??'-')),console['log'](_0x177fdc(0x6cc,_0xd099b5._0x40e7a0)+'\x20'+(_0x3f1466[_0x177fdc(0x2a2,0x47e)+_0x177fdc(_0xd099b5._0x496889,_0xd099b5._0x2c9e18)]?_0x177fdc(_0xd099b5._0x16591d,_0xd099b5._0x9e60f4)+'d':_0x177fdc(_0xd099b5._0x44d6fb,0x244)+'alled')+'\x20('+_0x3f1466['serviceM'+'ethod']+')'),console['log'](_0x177fdc(0x4b9,0x41c)+_0x57b884(-_0xd099b5._0x596d29,0x62)+'\x20'+(_0x3f1466[_0x57b884(0x1b1,0x35)+_0x177fdc(_0xd099b5._0x56f4a6,0x4b6)]?_0x177fdc(_0xd099b5._0x2ef07f,0x41a):'no')),console[_0x177fdc(0x3b8,0x468)](_0x177fdc(0x523,0x41c)+_0x177fdc(0x6c7,0x54c)+(_0x3f1466[_0x57b884(_0xd099b5._0x9447b0,_0xd099b5._0xea7d00)+_0x177fdc(_0xd099b5._0x3b4920,0x5a1)]||'-'));function _0x177fdc(_0x3d350c,_0x3e4292){return _0x11b7ab(_0x3d350c,_0x3e4292-0x2dc);}console[_0x57b884(0x1f4,_0xd099b5._0x459923)](_0x177fdc(0x291,0x387)+':\x20'+_0x3f1466[_0x57b884(_0xd099b5._0x32b307,0x410)]),console[_0x57b884(0xd2,_0xd099b5._0x47fb5e)](_0x57b884(_0xd099b5._0xb423d3,0x327)+_0x177fdc(_0xd099b5._0x16cc79,_0xd099b5._0x54b332)+_0x3f1466[_0x57b884(-_0xd099b5._0x44cf85,0x16b)+_0x177fdc(_0xd099b5._0x5653ca,0x2d6)]),console['log']('OpenClaw'+_0x57b884(_0xd099b5._0x6724c9,_0xd099b5._0x50b4cb)+_0x3f1466[_0x177fdc(0x63a,_0xd099b5._0x21db97)+'ConfigDi'+'r']),console[_0x57b884(0x287,_0xd099b5._0x3a1b51)]('OpenClaw'+'\x20media:\x20'+_0x3f1466[_0x57b884(0x308,_0xd099b5._0x119f2f)+_0x177fdc(0x34f,_0xd099b5._0x6931a)]),console[_0x57b884(0x268,0x2a3)]('OpenClaw'+_0x177fdc(0x4b4,0x495)+'\x20'+(_0x3f1466['openclaw'+_0x177fdc(_0xd099b5._0x139cb6,0x56d)+_0x57b884(_0xd099b5._0x557072,_0xd099b5._0x2b630a)]?'found':_0x177fdc(0x148,_0xd099b5._0x368723))),console[_0x177fdc(_0xd099b5._0x3e92fc,_0xd099b5._0x4a71bd)](_0x57b884(_0xd099b5._0x5ac3f5,_0xd099b5._0x267bad)+_0x177fdc(0x195,0x31b)+(_0x3f1466[_0x57b884(_0xd099b5._0x100777,0x294)+'TokenFou'+'nd']?_0x177fdc(0x328,0x3ac):_0x57b884(0x334,0x181))),console[_0x57b884(_0xd099b5._0x1c5d53,0x2a3)](_0x177fdc(0x377,0x563)+_0x57b884(0xf2,0x3f)+_0x3f1466[_0x57b884(0x1c2,0x75)+'ewayUrl']),console[_0x177fdc(_0xd099b5._0x3f82ff,0x468)](_0x57b884(0x495,0x39e)+_0x57b884(_0xd099b5._0x4e5fce,_0xd099b5._0x237a48)+_0x57b884(0x9c,0x1a1)+(_0x3f1466[_0x57b884(_0xd099b5._0x554e25,0x75)+'ewayReac'+'hable']?_0x5ee4e0[_0x57b884(0xf9,_0xd099b5._0x4830b5)]:'no'));}function requirePairingConfig(){const _0x245486={_0x9db6e6:0x311,_0x49f546:0x36e},_0x50d1a5={_0x415ae5:0x1df};function _0x352d56(_0x1f06e8,_0x483ff0){return _0x11b7ab(_0x1f06e8,_0x483ff0-_0x50d1a5._0x415ae5);}const _0x364dc1=readPairingConfig();function _0x248922(_0x26489b,_0x30b63c){return _0x11b7ab(_0x26489b,_0x30b63c-0xc4);}return!_0x364dc1&&(console[_0x248922(0x264,0x6d)]('Not\x20pair'+'ed.\x20Run\x20'+'\x22clawket'+_0x352d56(0x472,0x274)+'irst.\x20Co'+_0x352d56(0x12c,0x1fb)+_0x352d56(_0x245486._0x9db6e6,_0x245486._0x49f546)+getPairingConfigPath()),process['exit'](0x1)),_0x364dc1;}function readFlag(_0x5a14b9,_0x3f2b61){const _0xe67623={_0x58bee1:0xac,_0x518313:0x40b,_0x522552:0x264,_0x365504:0x29e,_0x11c113:0xf4,_0x3b8b57:0x2dd},_0x226f54={_0x3cbbf6:0x1e4};function _0x27fc5c(_0x3ad3bb,_0xb742a7){return _0x6eb3(_0x3ad3bb,_0xb742a7-0x25e);}const _0x23c58b={};_0x23c58b[_0x9ed56(_0xe67623._0x58bee1,0xf4)]=function(_0x3dc05e,_0x10a6e1){return _0x3dc05e<_0x10a6e1;};function _0x9ed56(_0x2341cd,_0x10148f){return _0x6eb3(_0x2341cd,_0x10148f-_0x226f54._0x3cbbf6);}_0x23c58b[_0x27fc5c(0x4d3,_0xe67623._0x518313)]=function(_0xa41d61,_0xf757ea){return _0xa41d61+_0xf757ea;};const _0x5673d7=_0x23c58b,_0x52bb21=_0x5a14b9[_0x27fc5c(_0xe67623._0x522552,0x2ff)](_0x3f2b61);if(_0x5673d7[_0x9ed56(_0xe67623._0x365504,_0xe67623._0x11c113)](_0x52bb21,0x0))return null;const _0x35387c=_0x5a14b9[_0x5673d7[_0x27fc5c(0x39a,0x40b)](_0x52bb21,0x1)];return _0x35387c?.['trim']()?_0x35387c[_0x9ed56(_0xe67623._0x3b8b57,0x2a1)]():null;}function hasFlag(_0x2d8c48,_0x3be5e2){function _0x2522ff(_0x5e7c1f,_0x3a60cc){return _0x6eb3(_0x5e7c1f,_0x3a60cc- -0xeb);}return _0x2d8c48[_0x2522ff(-0xd5,-0x88)](_0x3be5e2);}function printHelp(){const _0x53460f={_0x4e4233:0x2ac,_0x4203c6:0x78,_0x550385:0x4e,_0x3abcc2:0x171,_0xb57fdf:0x39f,_0x32f36c:0x56,_0x407dc7:0x6fd,_0x41f8d2:0x57d,_0x514828:0x376,_0x266058:0x4d2,_0xa7e9fc:0x257,_0x5833d3:0x247,_0x3e2af3:0x2e0,_0x522454:0x1c8,_0x39a2ad:0x22c,_0x4bf290:0x58,_0x4610af:0xde,_0x40ea89:0x13b,_0x23735e:0x247,_0x48daa4:0x2bc,_0x57c5ed:0x389,_0x3e74ba:0x513,_0x1b5da5:0xf0,_0xf34d6e:0x451,_0x3ad18e:0x221,_0x13ab4f:0x17c,_0x574827:0xed,_0x12e19b:0x179,_0x56f4a0:0x1b8,_0x10077e:0x213,_0x1ec1d5:0x80,_0x3f32b3:0x35d,_0x428d07:0x224,_0x351cee:0x33,_0x382510:0x432,_0x18014b:0x5ab,_0x22f4a3:0x545,_0x3f8c81:0x5c4,_0xd58b15:0x3ad,_0x34bcc2:0x442,_0x3e203e:0x352,_0x115814:0x5b1,_0x29931f:0xbf,_0x880caa:0xf0,_0x3d4a1f:0xb6,_0x47e422:0x454,_0x19fec8:0x1b3},_0x5ad118={_0x3b7d84:0x44},_0x1f0732={_0x1a132b:0x320},_0xbad80e={};_0xbad80e['wwxgb']='clawket\x20'+'pair\x20[--'+_0xff2e16(-_0x53460f._0x4e4233,-0x125)+_0xff2e16(_0x53460f._0x4203c6,_0x53460f._0x550385)+_0xff2e16(-_0x53460f._0x3abcc2,-0xae)+_0x7a82c6(0x33c,_0x53460f._0xb57fdf)+'me>]\x20[--'+_0xff2e16(_0x53460f._0x32f36c,-0x17)+_0x7a82c6(_0x53460f._0x407dc7,_0x53460f._0x41f8d2)+_0xff2e16(_0x53460f._0x514828,0x1b8)+_0x7a82c6(0x41e,_0x53460f._0x266058)+'e]',_0xbad80e['yarBS']=_0xff2e16(_0x53460f._0xa7e9fc,_0x53460f._0x5833d3)+_0x7a82c6(0x285,_0x53460f._0x3e2af3);function _0x7a82c6(_0x1416fd,_0x36a689){return _0x6eb3(_0x1416fd,_0x36a689-_0x1f0732._0x1a132b);}_0xbad80e[_0xff2e16(0x207,0x189)]=_0x7a82c6(0x782,0x5ab)+_0xff2e16(_0x53460f._0x522454,_0x53460f._0x39a2ad),_0xbad80e[_0xff2e16(_0x53460f._0x4bf290,_0x53460f._0x4610af)]=_0xff2e16(_0x53460f._0x40ea89,_0x53460f._0x23735e)+_0xff2e16(_0x53460f._0x48daa4,0x1e6)+_0x7a82c6(0x60b,0x5d8)+_0x7a82c6(0x83,0x255)+'nes\x20<200'+'>]\x20[--er'+_0x7a82c6(_0x53460f._0x57c5ed,_0x53460f._0x3e74ba)+_0xff2e16(-0x101,_0x53460f._0x1b5da5);function _0xff2e16(_0x38f91e,_0x2eefc8){return _0x6eb3(_0x38f91e,_0x2eefc8- -_0x5ad118._0x3b7d84);}const _0xbeb92a=_0xbad80e;console[_0x7a82c6(_0x53460f._0xf34d6e,0x46a)]([_0xbeb92a['wwxgb'],'clawket\x20'+_0xff2e16(-_0x53460f._0x3ad18e,-_0x53460f._0x13ab4f)+_0xff2e16(-_0x53460f._0x574827,-_0x53460f._0x12e19b)+'qr-file\x20'+'<path>]\x20'+_0xff2e16(0x3b6,_0x53460f._0x56f4a0),_0xbeb92a[_0xff2e16(-_0x53460f._0x10077e,-_0x53460f._0x1ec1d5)],_0xff2e16(_0x53460f._0x3f32b3,0x247)+_0xff2e16(-_0x53460f._0x428d07,-_0x53460f._0x351cee),'clawket\x20'+_0x7a82c6(0x4db,0x43c),_0x7a82c6(_0x53460f._0x382510,_0x53460f._0x18014b)+_0x7a82c6(0x3c0,_0x53460f._0x22f4a3)+'l',_0xbeb92a['rSERL'],_0x7a82c6(0x614,0x5ab)+_0x7a82c6(0x5b4,_0x53460f._0x3f8c81),_0xbeb92a[_0x7a82c6(_0x53460f._0xd58b15,_0x53460f._0x34bcc2)],_0xff2e16(0x333,_0x53460f._0x23735e)+_0xff2e16(0xe3,-0xcd)+_0x7a82c6(0x345,0x4e2),'clawket\x20'+_0x7a82c6(0x447,_0x53460f._0x3e203e)+_0x7a82c6(_0x53460f._0x115814,0x44b)+_0xff2e16(0x2,_0x53460f._0x29931f)+_0xff2e16(-_0x53460f._0x880caa,_0x53460f._0x3d4a1f)+_0x7a82c6(_0x53460f._0x47e422,0x338)+'>]'][_0xff2e16(-_0x53460f._0x19fec8,-0xa4)]('\x0a'));}function formatLocalTime(_0x6d96ba){const _0x26dc52={_0x171adf:0x156,_0x10fac1:0x13b};function _0x30ada3(_0xf2f5bd,_0x10f863){return _0x6eb3(_0xf2f5bd,_0x10f863- -0x198);}const _0x307d84=new Date(_0x6d96ba);if(Number[_0x30ada3(-0x2cf,-0x1e8)](_0x307d84[_0x30ada3(-0x2f0,-0x108)]()))return _0x6d96ba;function _0xfc8b16(_0x165748,_0x3e86d4){return _0x6eb3(_0x165748,_0x3e86d4-0x1e);}return _0x307d84[_0xfc8b16(_0x26dc52._0x171adf,0xd6)+_0x30ada3(-_0x26dc52._0x10fac1,-0xcc)]();}function formatError(_0xbb62cd){function _0x5a0640(_0x291e5b,_0x575945){return _0x6eb3(_0x575945,_0x291e5b-0x143);}return _0xbb62cd instanceof Error?_0xbb62cd[_0x5a0640(0x1b5,0x243)]:String(_0xbb62cd);}function printJson(_0x4fe0c5){const _0x259246={_0x226a04:0xa0,_0x31dd91:0x11a};function _0x5ec82c(_0x3ac2e7,_0x236003){return _0x11b7ab(_0x3ac2e7,_0x236003-0x515);}function _0x314a1a(_0x298167,_0x5b418c){return _0x11b7ab(_0x298167,_0x5b418c- -0xec);}console[_0x314a1a(-0x114,_0x259246._0x226a04)](JSON[_0x314a1a(0x17,_0x259246._0x31dd91)+'y'](_0x4fe0c5,null,0x2));}main()[_0x11b7ab(-0x18a,0x6c)](_0x3886b3=>{const _0x516489={_0x437107:0x12e},_0x5c1f40={_0x2929b7:0xfa};function _0x1db80e(_0x399225,_0x5b34d3){return _0x11b7ab(_0x5b34d3,_0x399225- -_0x5c1f40._0x2929b7);}console[_0x1db80e(-0x151,-_0x516489._0x437107)](formatError(_0x3886b3)),process['exit'](0x1);});