@mooncompany/uplink-chat 0.37.2 → 0.39.2

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 (167) hide show
  1. package/bin/uplink.js +1 -1
  2. package/extensions/uplink/dist/channel.d.ts +26 -0
  3. package/extensions/uplink/dist/channel.d.ts.map +1 -0
  4. package/extensions/uplink/dist/channel.js +55 -0
  5. package/extensions/uplink/dist/channel.js.map +1 -0
  6. package/extensions/uplink/dist/index.d.ts +30 -0
  7. package/extensions/uplink/dist/index.d.ts.map +1 -0
  8. package/extensions/uplink/dist/index.js +230 -0
  9. package/extensions/uplink/dist/index.js.map +1 -0
  10. package/extensions/uplink/dist/runtime.d.ts +48 -0
  11. package/extensions/uplink/dist/runtime.d.ts.map +1 -0
  12. package/extensions/uplink/dist/runtime.js +73 -0
  13. package/extensions/uplink/dist/runtime.js.map +1 -0
  14. package/extensions/uplink/dist/send.d.ts +40 -0
  15. package/extensions/uplink/dist/send.d.ts.map +1 -0
  16. package/extensions/uplink/dist/send.js +107 -0
  17. package/extensions/uplink/dist/send.js.map +1 -0
  18. package/extensions/uplink/dist/types.d.ts +60 -0
  19. package/extensions/uplink/dist/types.d.ts.map +1 -0
  20. package/extensions/uplink/dist/types.js +5 -0
  21. package/extensions/uplink/dist/types.js.map +1 -0
  22. package/extensions/uplink/dist/watcher.d.ts +27 -0
  23. package/extensions/uplink/dist/watcher.d.ts.map +1 -0
  24. package/extensions/uplink/dist/watcher.js +369 -0
  25. package/extensions/uplink/dist/watcher.js.map +1 -0
  26. package/extensions/uplink/dist/webhook.d.ts +12 -0
  27. package/extensions/uplink/dist/webhook.d.ts.map +1 -0
  28. package/extensions/uplink/dist/webhook.js +245 -0
  29. package/extensions/uplink/dist/webhook.js.map +1 -0
  30. package/extensions/uplink/openclaw.plugin.json +12 -0
  31. package/extensions/uplink/package.json +31 -0
  32. package/middleware/error-handler.js +1 -1
  33. package/package.json +9 -5
  34. package/public/css/{agents.1fd7567a.css → agents.e12749d9.css} +114 -40
  35. package/public/css/{app.09572269.css → app.7351d729.css} +152 -0
  36. package/public/css/artifacts.css +10 -0
  37. package/public/css/mobile.css +2 -2
  38. package/public/css/{satellites.7fa72088.css → satellites.c180505f.css} +70 -3
  39. package/public/dist/bundle.22434672.js +1 -0
  40. package/public/index.html +32 -30
  41. package/public/js/agents-data.js +1 -1
  42. package/public/js/agents-ui.js +1 -1
  43. package/public/js/agents.js +1 -1
  44. package/public/js/app.js +1 -1
  45. package/public/js/appearance-settings.js +1 -1
  46. package/public/js/artifacts.js +1 -1
  47. package/public/js/audio-pcm-processor.js +1 -1
  48. package/public/js/audio-queue.js +1 -1
  49. package/public/js/bootstrap.js +1 -1
  50. package/public/js/chat.js +1 -1
  51. package/public/js/commands.js +1 -1
  52. package/public/js/connection-api.js +1 -1
  53. package/public/js/connection.js +1 -1
  54. package/public/js/context-tracker.js +1 -1
  55. package/public/js/core.js +1 -1
  56. package/public/js/cron-panel.js +1 -1
  57. package/public/js/dashboard.js +1 -1
  58. package/public/js/developer.js +1 -1
  59. package/public/js/encryption.js +1 -1
  60. package/public/js/errors.js +1 -1
  61. package/public/js/event-bus.js +1 -1
  62. package/public/js/fetch-utils.js +1 -1
  63. package/public/js/file-handler.js +1 -1
  64. package/public/js/files.js +1 -1
  65. package/public/js/gateway-chat.js +1 -1
  66. package/public/js/logger.js +1 -1
  67. package/public/js/markdown.js +1 -1
  68. package/public/js/message-actions.js +1 -1
  69. package/public/js/message-renderer.js +1 -1
  70. package/public/js/missed-messages.js +1 -1
  71. package/public/js/mobile-debug.js +1 -1
  72. package/public/js/notifications.js +1 -1
  73. package/public/js/offline-queue.js +1 -1
  74. package/public/js/onboarding.js +1 -1
  75. package/public/js/panels.js +1 -1
  76. package/public/js/premium.js +1 -1
  77. package/public/js/primary-header.js +1 -1
  78. package/public/js/realtime-voice.js +1 -1
  79. package/public/js/satellite-sync.js +1 -1
  80. package/public/js/satellite-ui.js +1 -1
  81. package/public/js/satellites.js +1 -1
  82. package/public/js/settings.js +1 -1
  83. package/public/js/shortcuts.js +1 -1
  84. package/public/js/split-chat.js +1 -1
  85. package/public/js/split-resize.js +1 -1
  86. package/public/js/splitview.js +1 -1
  87. package/public/js/storage.js +1 -1
  88. package/public/js/streaming-handler.js +1 -1
  89. package/public/js/stt-settings.js +1 -1
  90. package/public/js/themes.js +1 -1
  91. package/public/js/timestamps.js +1 -1
  92. package/public/js/tts-settings.js +1 -1
  93. package/public/js/ui.js +1 -1
  94. package/public/js/update-notifier.js +1 -1
  95. package/public/js/utils/constants.js +1 -1
  96. package/public/js/utils/icons.js +1 -1
  97. package/public/js/utils/sanitize.js +1 -1
  98. package/public/js/utils/sse-parser.js +1 -1
  99. package/public/js/vad.js +1 -1
  100. package/public/js/vendor/dompurify.min.js +1 -1
  101. package/public/js/voice-settings-v2.js +1 -1
  102. package/public/js/voice.js +1 -1
  103. package/public/manifest.json +1 -1
  104. package/public/sw.js +228 -1
  105. package/server/channel.js +1 -1
  106. package/server/chat.js +1 -1
  107. package/server/config-store.js +1 -1
  108. package/server/config.js +1 -1
  109. package/server/context.js +1 -1
  110. package/server/gateway-api-proxy.js +1 -1
  111. package/server/gateway-commands.js +1 -1
  112. package/server/gateway-proxy.js +1 -1
  113. package/server/index.js +1 -1
  114. package/server/logger.js +1 -1
  115. package/server/message-store.js +1 -1
  116. package/server/middleware/auth.js +1 -1
  117. package/server/middleware.js +1 -1
  118. package/server/openclaw-discover.js +1 -1
  119. package/server/premium/index.js +1 -1
  120. package/server/premium/license.js +1 -1
  121. package/server/realtime/bridge.js +1 -1
  122. package/server/realtime/index.js +1 -1
  123. package/server/realtime/tts-stream.js +1 -1
  124. package/server/routes/agents.js +1 -1
  125. package/server/routes/artifacts.js +1 -1
  126. package/server/routes/chat.js +1 -1
  127. package/server/routes/config-settings.js +1 -1
  128. package/server/routes/config.js +1 -1
  129. package/server/routes/cron.js +1 -1
  130. package/server/routes/files.js +1 -1
  131. package/server/routes/index.js +1 -1
  132. package/server/routes/media.js +1 -1
  133. package/server/routes/missed-messages.js +1 -1
  134. package/server/routes/premium.js +1 -1
  135. package/server/routes/push.js +1 -1
  136. package/server/routes/satellite.js +1 -1
  137. package/server/routes/status.js +1 -1
  138. package/server/routes/stt.js +1 -1
  139. package/server/routes/voice.js +1 -1
  140. package/server/routes/webhooks.js +1 -1
  141. package/server/routes.js +1 -1
  142. package/server/runtime-config.js +1 -1
  143. package/server/share.js +1 -1
  144. package/server/stt/faster-whisper.js +1 -1
  145. package/server/stt/groq.js +1 -1
  146. package/server/stt/index.js +1 -1
  147. package/server/stt/openai.js +1 -1
  148. package/server/sync.js +1 -1
  149. package/server/tailscale-https.js +1 -1
  150. package/server/tts.js +1 -1
  151. package/server/update-checker.js +1 -1
  152. package/server/utils/filename.js +1 -1
  153. package/server/utils.js +1 -1
  154. package/server/watchdog.js +1 -1
  155. package/server/websocket/broadcast.js +1 -1
  156. package/server/websocket/connections.js +1 -1
  157. package/server/websocket/index.js +1 -1
  158. package/server/websocket/routing.js +1 -1
  159. package/server/websocket/sync.js +1 -1
  160. package/server.js +1 -1
  161. package/utils/detect-tool-usage.js +1 -1
  162. package/utils/errors.js +1 -1
  163. package/utils/html-escape.js +1 -1
  164. package/utils/id-sanitize.js +1 -1
  165. package/utils/response.js +1 -1
  166. package/utils/with-retry.js +1 -1
  167. package/public/dist/bundle.f3621856.js +0 -1
package/bin/uplink.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- (function(_0xafc2dc,_0xa4e574){const _0x2ed3cd=_0xafc2dc();function _0x174397(_0x272e85,_0x41a7b8){return _0x3018(_0x41a7b8- -0xb3,_0x272e85);}function _0x52868d(_0x4b50cf,_0x473c42){return _0x3018(_0x4b50cf- -0x21f,_0x473c42);}while(!![]){try{const _0x15f0ef=parseInt(_0x52868d(0x269,0x375))/(0x184e+0x5*0x185+0xff3*-0x2)*(parseInt(_0x52868d(-0xae,-0x26b))/(-0x75f+0x47f*-0x7+0x136d*0x2))+parseInt(_0x52868d(0x191,0x27b))/(-0x2501+0x1972+0xb92)+-parseInt(_0x52868d(-0x75,-0x1f9))/(-0x1fea+-0x1*-0x38+0x1fb6)+-parseInt(_0x52868d(0x280,0x102))/(0x1*-0x43+0x197+-0x14f)*(-parseInt(_0x174397(0xd3,0x29e))/(-0x1a*-0x8b+-0x58+0x37*-0x40))+-parseInt(_0x174397(0x21e,0x14e))/(-0x803+0x1e8c+0x1682*-0x1)+-parseInt(_0x52868d(0x1e5,0xb6))/(-0x179a+-0x13fd+0x2b9f)*(parseInt(_0x174397(0x12a,0x265))/(-0x6ee*0x5+0xaac+0x1803))+-parseInt(_0x52868d(-0xe9,-0x291))/(-0x1*-0x4f7+-0x1248+0xd5b);if(_0x15f0ef===_0xa4e574)break;else _0x2ed3cd['push'](_0x2ed3cd['shift']());}catch(_0x368400){_0x2ed3cd['push'](_0x2ed3cd['shift']());}}}(_0x5787,0x21e5b*-0x3+-0x115c67+0x246b87));import{spawn,execSync}from'child_process';import{fileURLToPath}from'url';import{dirname,join}from'path';function _0x18cc4f(_0x385d56,_0xfd7b95){return _0x3018(_0xfd7b95-0x29a,_0x385d56);}import{existsSync,writeFileSync,readFileSync,unlinkSync,statSync,readdirSync,mkdirSync}from'fs';import{createRequire}from'module';import _0x16ff8b from'net';import _0x7c3987 from'http';import _0xd71058 from'os';function _0x20fd2f(_0x223798,_0x1fb59d){return _0x3018(_0x1fb59d- -0x1e5,_0x223798);}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),ROOT=join(__dirname,'..');function resolveDataDir(){const _0x463b01={'byGKJ':'.env.'+_0x3cd651(0xf2,0x47)+'le','lMjLK':function(_0x921394,_0x48d573){return _0x921394(_0x48d573);},'vHgBh':function(_0x33c851,_0x58bcc2,_0x169a16){return _0x33c851(_0x58bcc2,_0x169a16);},'MvFcr':_0x12ef78(0x4ce,0x350),'OCrFX':_0x3cd651(0x94,-0x26)+_0x12ef78(0x78a,0x5a2)+_0x3cd651(0x319,0x474)+_0x12ef78(0x5b8,0x593)+_0x3cd651(0x1cb,0x1fa)+_0x3cd651(0xf2,0x2c)+'le','aDreu':function(_0x47da3f,_0x4c74ab,_0x276241){return _0x47da3f(_0x4c74ab,_0x276241);},'hplPL':'#\x20Upl'+_0x12ef78(0x360,0x418)+_0x12ef78(0x1c0,0x2af)+_0x3cd651(0x31e,0x517)+_0x12ef78(0x3be,0x2aa),'WQIUQ':_0x3cd651(0x94,0x20e)+_0x12ef78(0x4c3,0x5a2)+'empty'+'\x20.env'+_0x12ef78(0x4e2,0x35b),'jjYOK':function(_0x2abde5,_0x1eef04){return _0x2abde5>_0x1eef04;},'RaCzQ':_0x12ef78(0x687,0x4ee)+_0x3cd651(0x1d9,0x216)+_0x12ef78(0x271,0x30f)+_0x12ef78(0x30f,0x32b)+_0x12ef78(0x2e4,0x271)+_0x3cd651(0x31c,0x3de)+_0x3cd651(0x13f,0xa4),'OeLaN':function(_0x4811f7,_0x252b80){return _0x4811f7===_0x252b80;},'OWNnM':'rvtrW','dsjOh':_0x3cd651(0x2b8,0x209),'VSuVD':function(_0x2238d5,_0x44fc11){return _0x2238d5!==_0x44fc11;},'enIQp':'aaGMq','HpKyf':function(_0x2a5f76,_0x44a0de){return _0x2a5f76(_0x44a0de);},'UAwxf':function(_0x54c20b,_0x539561){return _0x54c20b===_0x539561;},'gfYwk':_0x12ef78(0x5e8,0x567),'vGfJL':_0x12ef78(0x1d8,0x38d),'BHGlT':_0x3cd651(0x238,0x415)+_0x3cd651(0x93,0x4)+'+$','xMhPS':function(_0xbadabc,_0x534fb1,_0x10b012){return _0xbadabc(_0x534fb1,_0x10b012);},'ScKOh':function(_0x6c667b){return _0x6c667b();},'BPyTK':function(_0x1838ba,_0x3f04e7){return _0x1838ba===_0x3f04e7;},'DSJdw':_0x12ef78(0x415,0x3b6),'rJzdx':function(_0x4efaff,_0x196822,_0x4bf5a0,_0x84ce61){return _0x4efaff(_0x196822,_0x4bf5a0,_0x84ce61);},'ZNXkz':_0x12ef78(0x595,0x414)+'ta','KePbf':_0x3cd651(0x213,0x3b7)+'ng','IhAGh':_0x12ef78(0x731,0x56a)+'nk'};function _0x12ef78(_0x4cb67d,_0x2f1a17){return _0x3018(_0x2f1a17-0x127,_0x4cb67d);}function _0x3cd651(_0x32cfaa,_0x826f77){return _0x3018(_0x32cfaa- -0xd8,_0x826f77);}const _0x2b5d16=(function(){function _0x5b9b46(_0x1dc1fe,_0x4c4b39){return _0x3cd651(_0x1dc1fe- -0x151,_0x4c4b39);}function _0x4ae1bd(_0x4a3714,_0x56cf32){return _0x3cd651(_0x4a3714- -0xdc,_0x56cf32);}const _0x23e2f6={'WmWVz':function(_0xdc3921,_0x7b307f){return _0xdc3921+_0x7b307f;},'TloHa':function(_0x13d352,_0x78be0b){return _0x463b01['jjYOK'](_0x13d352,_0x78be0b);},'Lauik':_0x463b01[_0x5b9b46(0x13,-0x13f)],'JwuCW':function(_0x2f219e,_0x1fc74b){return _0x2f219e!==_0x1fc74b;},'UTwdl':function(_0x3e0fd5,_0x98f72){return _0x463b01['OeLaN'](_0x3e0fd5,_0x98f72);},'zTkWs':_0x463b01[_0x4ae1bd(0x2ac,0x1ea)],'UsWkF':_0x463b01[_0x5b9b46(-0x150,-0x1cf)]};if(_0x463b01[_0x5b9b46(0x5e,0x171)](_0x4ae1bd(-0x77,-0x16d),_0x463b01[_0x5b9b46(-0xf6,-0xf3)])){const _0x85467a=_0x1e3074(_0x44d2e1,_0x463b01['byGKJ']);_0x463b01['lMjLK'](_0x417a62,_0x85467a)?(_0x463b01[_0x5b9b46(-0x4f,-0x237)](_0x26e3c3,_0x5399d9,_0x463b01[_0x5b9b46(-0x4f,-0x14f)](_0x40fc08,_0x85467a,_0x463b01[_0x5b9b46(0xce,-0xf9)])),_0x261fb2[_0x4ae1bd(-0x18,0x1e5)](_0x463b01[_0x4ae1bd(0x1c5,0x10)])):(_0x463b01[_0x5b9b46(-0x66,-0x242)](_0x38a48f,_0x269d37,_0x463b01[_0x4ae1bd(0xf3,0x195)]),_0x9e56f8[_0x5b9b46(-0x8d,-0x84)](_0x463b01[_0x4ae1bd(0x177,0x1bc)]));}else{let _0x131ce1=!![];return function(_0x387e2d,_0x5d496e){function _0x3ec6a9(_0x185ef5,_0x34eaf0){return _0x4ae1bd(_0x34eaf0-0x4ec,_0x185ef5);}function _0x584c6c(_0x279353,_0x9909b){return _0x4ae1bd(_0x279353- -0x1a4,_0x9909b);}const _0x10002c={'YWvdX':function(_0x3fe0aa,_0x4242af){return _0x23e2f6['WmWVz'](_0x3fe0aa,_0x4242af);},'QFVjM':function(_0x1af7fc,_0x51791b){function _0x43c654(_0x5a6606,_0x3b26d3){return _0x3018(_0x5a6606-0x2af,_0x3b26d3);}return _0x23e2f6[_0x43c654(0x3d0,0x257)](_0x1af7fc,_0x51791b);},'hjxTp':_0x23e2f6[_0x3ec6a9(0x32f,0x49d)],'VaIxx':function(_0x1cf072,_0xe3f67c){function _0x3257f9(_0x20a50b,_0x4952a4){return _0x3ec6a9(_0x20a50b,_0x4952a4-0x4);}return _0x23e2f6[_0x3257f9(0x54e,0x5ad)](_0x1cf072,_0xe3f67c);}};if(_0x23e2f6['UTwdl'](_0x23e2f6[_0x584c6c(-0xc8,0xe)],_0x23e2f6['UsWkF']))_0x2ef0c6['log'](_0x10002c['YWvdX'](_0x10002c[_0x3ec6a9(0x459,0x4ef)]('\x20\x20⬡\x20'+_0x11d63a+(_0x584c6c(-0x1cd,-0x36a)+_0x584c6c(-0x1ee,-0x21a))+_0x4b96ed+(_0x584c6c(-0x1b9,-0x9f)+'ed'),_0x4a774b?',\x20'+_0x46fef8+(_0x584c6c(-0x60,-0xe7)+'ing')+(_0x10002c[_0x3ec6a9(0x627,0x733)](_0x2f1c5b,0x2b4*0x9+0x1*-0x1d09+0x4b6)?'s':''):''),'.'));else{const _0x313a46=_0x131ce1?function(){const _0x29db64={};function _0x5bc6ad(_0x46534c,_0x1cd6f5){return _0x3ec6a9(_0x46534c,_0x1cd6f5- -0x5d7);}_0x29db64[_0x5bc6ad(0xad,-0x46)]=_0x10002c[_0x5bc6ad(0x281,0x118)];const _0x3c5ab9=_0x29db64;function _0x3a353e(_0x1cf36d,_0x22c229){return _0x3ec6a9(_0x22c229,_0x1cf36d-0x24);}if(_0x10002c[_0x5bc6ad(0x13c,0x174)](_0x3a353e(0x503,0x45c),_0x5bc6ad(-0x2f4,-0xf8)))_0x87358[_0x3a353e(0x4f8,0x4a0)](_0x3c5ab9['ezWeo']);else{if(_0x5d496e){const _0x4efa0d=_0x5d496e[_0x3a353e(0x7bd,0x92c)](_0x387e2d,arguments);return _0x5d496e=null,_0x4efa0d;}}}:function(){};return _0x131ce1=![],_0x313a46;}};}}()),_0x1dfc95=_0x463b01[_0x12ef78(0x64e,0x546)](_0x2b5d16,this,function(){function _0x324200(_0x3f6215,_0x4725cf){return _0x3cd651(_0x4725cf- -0x2d9,_0x3f6215);}function _0x98b7f4(_0x397a9c,_0x300937){return _0x3cd651(_0x300937- -0x2cd,_0x397a9c);}if(_0x463b01[_0x324200(-0x1ee,-0x1b1)](_0x463b01[_0x324200(-0x118,-0x264)],_0x463b01[_0x98b7f4(0x1b2,0xdd)])){if(!_0x463b01[_0x324200(0xcb,0x107)](_0x2b2f4d,_0x15f4bc))return null;try{return _0x47c816[_0x98b7f4(0x54,-0x4d)](_0x589e32(_0x2ee9bd,_0x463b01[_0x324200(-0x1b1,-0xba)]));}catch{return null;}}else return _0x1dfc95['toStr'+_0x324200(-0x102,-0x2e1)]()['searc'+'h'](_0x98b7f4(0x125,-0x95)+_0x98b7f4(-0x40,-0x23a)+'+$')[_0x324200(-0x1bd,-0x2c2)+_0x324200(-0x446,-0x2e1)]()['const'+_0x324200(-0xd0,-0xe3)+'r'](_0x1dfc95)[_0x98b7f4(-0x14a,-0x1ab)+'h'](_0x463b01[_0x324200(-0x1f3,-0x113)]);});_0x463b01[_0x12ef78(0x3eb,0x594)](_0x1dfc95);if(process.env.UPLINK_DATA_DIR)return process.env.UPLINK_DATA_DIR;if(_0x463b01[_0x3cd651(0x36c,0x3b1)](process[_0x12ef78(0x55f,0x409)+_0x3cd651(0x19f,0x59)],_0x463b01[_0x3cd651(0x38a,0x47d)])){const _0x49ee41=process.env.APPDATA||_0x463b01[_0x3cd651(0x317,0x2ac)](join,_0xd71058['homed'+'ir'](),_0x463b01[_0x3cd651(0x19,0x32)],_0x463b01[_0x12ef78(0x569,0x46b)]);return _0x463b01[_0x3cd651(0x347,0x512)](join,_0x49ee41,_0x12ef78(0x332,0x30d)+'k');}return _0x463b01['xMhPS'](join,_0xd71058['homed'+'ir'](),_0x463b01[_0x12ef78(0x134,0x247)]);}const DATA_DIR=resolveDataDir();try{const _0x473266={};_0x473266[_0x20fd2f(0x3b3,0x203)+_0x20fd2f(0x192,0x2b0)]=!![],mkdirSync(DATA_DIR,_0x473266);}catch{}const PID_FILE=join(DATA_DIR,'.upli'+_0x18cc4f(0x2be,0x3de)+'d'),WATCHDOG_PID_FILE=join(DATA_DIR,_0x20fd2f(0x12a,0x25e)+'nk-wa'+_0x20fd2f(-0x136,-0xd1)+_0x18cc4f(0x62f,0x5b8)),WATCHDOG_STATE_FILE=join(DATA_DIR,_0x20fd2f(0x1ea,0x25e)+'nk-wa'+_0x20fd2f(-0xe7,-0xd1)+_0x18cc4f(0x78b,0x646)+'n'),args=process[_0x20fd2f(-0x132,0x6)][_0x20fd2f(0x243,0xf3)](0x945+0xe21+0x2*-0xbb2),command=args[-0x18e9+-0xc8+-0x1*-0x19b1]||_0x20fd2f(0x34f,0x225),flags={};for(let i=0x2414+0x17*0x1a3+0x1b*-0x2bb;i<args[_0x18cc4f(0x66d,0x5b3)+'h'];i++){const cowsoe=(_0x20fd2f(0x1e4,0x91)+_0x20fd2f(0xc3,0x88)+'8|9|5'+_0x20fd2f(0x117,0x144))[_0x18cc4f(0x2ac,0x3df)]('|');let VsYahV=0xb6c*0x1+0x1244+-0x1db*0x10;while(!![]){switch(cowsoe[VsYahV++]){case'0':(args[i]==='--for'+'ce'||args[i]==='-f')&&(flags[_0x20fd2f(0x116,-0x8f)]=!![]);continue;case'1':args[i]===_0x18cc4f(0x6bd,0x5e7)+'h'&&(flags[_0x20fd2f(-0x86,0x38)]=!![]);continue;case'2':args[i]===_0x18cc4f(0x475,0x531)+'t'&&args[i+(0x1116+-0x927*0x3+0x298*0x4)]&&(flags[_0x20fd2f(0x33e,0x268)]=parseInt(args[i+(-0x1f77+0xbb3+0x13c5*0x1)],-0x1*-0x8a1+0x2053+0x28ea*-0x1),i++);continue;case'3':(args[i]===_0x20fd2f(-0x192,-0x31)+'sion'||args[i]==='-v')&&(flags[_0x18cc4f(0x778,0x589)+'on']=!![]);continue;case'4':(args[i]===_0x18cc4f(0x708,0x660)+_0x20fd2f(-0x94,-0x5e)||args[i]==='-d')&&(flags['detac'+'h']=!![]);continue;case'5':args[i]===_0x20fd2f(-0xcd,-0xa9)+'t'&&(flags[_0x20fd2f(0x110,-0xb0)]=!![]);continue;case'6':args[i]===_0x18cc4f(0x60a,0x583)+'t'&&(flags[_0x20fd2f(0x462,0x267)]=args[i+(0x2f*-0x87+-0x364+0x1c2e)]||_0x18cc4f(0x2d4,0x432)+'.0',i++);continue;case'7':(args[i]==='--hel'+'p'||args[i]==='-h')&&(flags[_0x20fd2f(0x184,0xf2)]=!![]);continue;case'8':args[i]==='--no-'+_0x20fd2f(0x1e7,0x1a1)+'dog'&&(flags[_0x20fd2f(0xd9,0x24c)+'chdog']=!![]);continue;case'9':args[i]==='--lin'+'es'&&args[i+(-0x1c5a*-0x1+0x16f*0x12+-0x120d*0x3)]&&(flags['lines']=parseInt(args[i+(-0x16*0x80+-0x4*-0x5cb+0x1bd*-0x7)],0xa*-0x16f+0x1ea5+-0x1045),i++);continue;}break;}}if(flags[_0x18cc4f(0x6a7,0x589)+'on']){const require=createRequire(import.meta.url),pkg=require(join(ROOT,_0x18cc4f(0x36c,0x55e)+_0x18cc4f(0x74f,0x6ec)+'on'));console['log'](_0x20fd2f(-0x126,0x1)+'k-cha'+_0x18cc4f(0x558,0x59a)+pkg[_0x18cc4f(0x664,0x589)+'on']),process[_0x20fd2f(0x7d,0x179)](0xe69+-0x94c+-0x51d*0x1);}flags[_0x18cc4f(0x552,0x571)]&&(console[_0x18cc4f(0x628,0x436)]('\x0a\x20\x20⬡\x20'+'Uplin'+_0x20fd2f(0x117,0x172)+'ocal\x20'+_0x20fd2f(0x154,0x2ce)+_0x20fd2f(-0x142,0x50)+_0x20fd2f(0x466,0x2aa)+'e:\x0a\x20\x20'+'\x20\x20upl'+_0x18cc4f(0x594,0x581)+_0x20fd2f(0x6d,0x214)+'comma'+_0x20fd2f(0x27c,0x1d6)+_0x20fd2f(-0x1a,-0x11f)+_0x20fd2f(0x57,0x254)+_0x20fd2f(0xfc,-0x58)+_0x20fd2f(-0x16e,-0xc8)+_0x18cc4f(0x445,0x57e)+_0x20fd2f(-0x101,-0x92)+_0x20fd2f(0x198,0x299)+_0x20fd2f(-0x210,-0x99)+_0x18cc4f(0x609,0x6cc)+_0x18cc4f(0x48d,0x56a)+'link\x20'+'serve'+_0x20fd2f(0x204,0x13)+'fault'+_0x20fd2f(0x25f,0x292)+_0x20fd2f(-0x1a8,-0x7c)+_0x20fd2f(0x3c,0x18f)+_0x18cc4f(0x4d8,0x3e6)+_0x18cc4f(0x824,0x72a)+'runni'+_0x20fd2f(-0xc,-0xba)+_0x18cc4f(0x5b4,0x5ba)+_0x20fd2f(0xcb,-0x45)+_0x18cc4f(0x40b,0x540)+'\x20stat'+_0x20fd2f(0x3c9,0x28a)+_0x18cc4f(0x5b8,0x65c)+_0x18cc4f(0x469,0x435)+_0x18cc4f(0x638,0x5c8)+_0x20fd2f(0x71,0x15b)+_0x20fd2f(-0xc9,-0xe6)+_0x20fd2f(0x14c,0x75)+_0x18cc4f(0x23c,0x424)+_0x20fd2f(0xba,0x8d)+_0x18cc4f(0x62b,0x60e)+_0x20fd2f(0x45,0xd7)+_0x18cc4f(0x289,0x3fb)+_0x18cc4f(0x39c,0x50a)+'etup\x20'+'at\x20a\x20'+_0x18cc4f(0x6d7,0x5ae)+_0x20fd2f(0x17,-0x4b)+_0x18cc4f(0x7b8,0x5d5)+_0x18cc4f(0x5fa,0x60e)+_0x20fd2f(-0x45,0xed)+'il\x20th'+_0x18cc4f(0x4aa,0x4ab)+_0x20fd2f(0x1b7,-0x1d)+'ogs\x20i'+_0x20fd2f(0x10,0x11c)+_0x20fd2f(0x24d,0x18c)+_0x18cc4f(0x2d6,0x434)+_0x20fd2f(-0x1be,-0x25)+_0x20fd2f(0x252,0x178)+_0x18cc4f(0x320,0x380)+_0x20fd2f(-0xf1,0xe7)+_0x20fd2f(0x314,0x24b)+_0x18cc4f(0x41c,0x45a)+_0x20fd2f(0x23e,0x238)+'tion\x0a'+'\x20\x20\x20\x20d'+_0x20fd2f(0x53,-0x1e)+'\x20\x20\x20\x20\x20'+'\x20Diag'+'nose\x20'+'commo'+_0x20fd2f(0x1bc,0x85)+_0x18cc4f(0x416,0x3c0)+_0x18cc4f(0x546,0x542)+_0x20fd2f(0x3a6,0x2b4)+'\x20\x20\x20\x20\x20'+_0x20fd2f(0x1ec,0xbb)+'\x20chat'+_0x18cc4f(0x39f,0x54e)+'ory\x20a'+_0x18cc4f(0x59e,0x543)+_0x20fd2f(0xbd,0xc8)+_0x20fd2f(-0xaf,-0xb1)+_0x18cc4f(0x542,0x701)+_0x20fd2f(-0xd9,0xfb)+_0x18cc4f(0x71c,0x60e)+_0x20fd2f(0x74,-0x27)+'e\x20to\x20'+_0x20fd2f(0x140,0x105)+_0x20fd2f(0x2df,0x138)+'\x20vers'+'ion\x0a\x20'+_0x20fd2f(0x195,0x1e4)+_0x18cc4f(0x552,0x40c)+'ll\x20\x20\x20'+_0x18cc4f(0x694,0x54a)+'serve'+'r\x20and'+_0x18cc4f(0x4b5,0x5c0)+_0x18cc4f(0x465,0x491)+_0x18cc4f(0x7fc,0x62f)+_0x20fd2f(0x1e1,0xe2)+_0x18cc4f(0x534,0x4f0)+_0x20fd2f(0x303,0x186)+_0x18cc4f(0x5dd,0x51d)+_0x20fd2f(0x30,0x8f)+'--por'+'t\x20N\x20\x20'+'\x20\x20\x20\x20\x20'+_0x18cc4f(0x4db,0x6b4)+'\x20to\x20l'+_0x20fd2f(-0x19a,-0x105)+_0x20fd2f(0x164,0x291)+_0x20fd2f(0x27e,0x183)+_0x20fd2f(-0x183,-0x64)+'456)\x0a'+_0x18cc4f(0x79a,0x700)+_0x18cc4f(0x5f3,0x6c6)+_0x20fd2f(-0x164,-0x59)+_0x20fd2f(0x306,0x18f)+_0x18cc4f(0x794,0x69d)+_0x18cc4f(0x464,0x385)+_0x18cc4f(0x779,0x692)+'\x20(def'+_0x20fd2f(0xf4,0x79)+_0x18cc4f(0x77c,0x6cd)+_0x20fd2f(-0x39,-0x110)+_0x18cc4f(0x838,0x700)+_0x20fd2f(0xd1,-0x42)+_0x20fd2f(0x335,0x155)+'d\x20\x20\x20\x20'+_0x20fd2f(0x2f8,0x2c3)+_0x18cc4f(0x6d5,0x72e)+_0x20fd2f(-0xb6,-0x15)+'nd\x20(d'+_0x18cc4f(0x352,0x546)+'\x20mode'+')\x0a\x20\x20\x20'+_0x18cc4f(0x684,0x625)+'-watc'+_0x20fd2f(-0x195,-0x35)+_0x18cc4f(0x79d,0x630)+_0x20fd2f(-0xb9,-0x93)+'out\x20a'+'uto-r'+_0x20fd2f(0x1e1,0x16d)+'t\x20wat'+_0x20fd2f(0x1a7,0x250)+'\x0a\x20\x20\x20\x20'+_0x20fd2f(-0x2d,-0xfc)+'es\x20N\x20'+'\x20\x20\x20\x20\x20'+_0x18cc4f(0x3e1,0x526)+'er\x20of'+_0x20fd2f(-0xa5,0x8a)+_0x20fd2f(-0xa4,-0x4c)+'\x20to\x20s'+'how\x20('+_0x20fd2f(0x116,-0x5c)+'\x20defa'+_0x20fd2f(0x3de,0x270)+_0x20fd2f(-0x39,-0x39)+_0x18cc4f(0x711,0x53c)+_0x18cc4f(0x226,0x3e8)+_0x20fd2f(0x31d,0x18f)+'\x20\x20\x20\x20O'+_0x18cc4f(0x3dd,0x430)+_0x18cc4f(0x583,0x422)+_0x18cc4f(0x2a1,0x38c)+'ditor'+_0x18cc4f(0x55f,0x662)+_0x18cc4f(0x78a,0x70d)+_0x20fd2f(0x10c,0x281)+'-path'+_0x18cc4f(0x793,0x60e)+_0x18cc4f(0x63e,0x60e)+_0x18cc4f(0x585,0x5d7)+_0x18cc4f(0x33d,0x45a)+_0x18cc4f(0x4bd,0x590)+_0x20fd2f(0x404,0x28c)+_0x18cc4f(0x608,0x653)+'onfig'+_0x20fd2f(0x434,0x292)+_0x20fd2f(-0x31,-0x106)+_0x20fd2f(0x2d9,0x28d)+'-f\x20\x20\x20'+_0x20fd2f(-0x4c,-0x40)+_0x18cc4f(0x54a,0x4ec)+_0x18cc4f(0x1e6,0x35b)+_0x18cc4f(0x21b,0x3d5)+_0x20fd2f(0x19,0xb1)+'ts\x20(r'+(_0x20fd2f(0x178,0x181)+_0x18cc4f(0x482,0x50e)+'-v\x20\x20\x20'+_0x20fd2f(-0x20,0x18f)+_0x18cc4f(0x4a2,0x60e)+_0x20fd2f(0x16f,0xd7)+_0x20fd2f(-0x46,0x4)+_0x20fd2f(-0xef,-0x4)+_0x20fd2f(-0x34,0x2e)+_0x18cc4f(0x50d,0x60e)+'\x20\x20\x20\x20\x20'+_0x20fd2f(0x5b,-0x54)+_0x18cc4f(0x538,0x544)+_0x20fd2f(0x38c,0x1f2)+_0x20fd2f(0x2f2,0x28b)+'\x20\x20Exa'+_0x18cc4f(0x5dc,0x573)+_0x20fd2f(-0x30,0xff)+_0x18cc4f(0x52e,0x634)+_0x18cc4f(0x487,0x480)+_0x20fd2f(-0xeb,-0x120)+_0x18cc4f(0x589,0x718)+_0x18cc4f(0x6d0,0x60e)+_0x18cc4f(0x7e3,0x60e)+_0x20fd2f(0x1c4,0x87)+_0x20fd2f(-0x152,-0x81)+'t\x20on\x20'+'defau'+_0x18cc4f(0x601,0x5a6)+_0x18cc4f(0x64a,0x49d)+_0x20fd2f(-0x66,0xa6)+'\x20upli'+_0x18cc4f(0x55d,0x6ee)+_0x20fd2f(0xa7,0x140)+'port\x20'+'8080\x20'+_0x20fd2f(-0x5c,0x18f)+'#\x20Sta'+_0x18cc4f(0x363,0x44c)+_0x20fd2f(0x236,0xdc)+_0x18cc4f(0x1f9,0x395)+_0x18cc4f(0x652,0x50e)+_0x18cc4f(0x578,0x3c2)+_0x18cc4f(0x297,0x442)+_0x18cc4f(0x3c1,0x43c)+_0x20fd2f(-0x211,-0x7c)+_0x20fd2f(0x285,0x18f)+'\x20\x20\x20\x20\x20'+'\x20\x20\x20#\x20'+_0x20fd2f(0x257,0xcb)+_0x20fd2f(0x352,0x277)+_0x18cc4f(0x367,0x53f)+_0x18cc4f(0x49f,0x50e)+_0x18cc4f(0x21e,0x3c2)+_0x18cc4f(0x4b2,0x442)+_0x18cc4f(0x476,0x43c)+_0x18cc4f(0x4b0,0x370)+_0x20fd2f(0xa,0x18f)+_0x20fd2f(0x126,0x18f)+_0x20fd2f(-0xb2,-0xad)+_0x20fd2f(-0x1,-0x100)+_0x18cc4f(0x826,0x6a9)+'\x20info'+'\x0a\x20\x20\x20\x20'+_0x20fd2f(0x3b,-0xbd)+'plink'+_0x18cc4f(0x55a,0x43c)+_0x18cc4f(0x5c1,0x5d5)+_0x20fd2f(0xab,0x136)+_0x18cc4f(0x4a9,0x47d)+_0x20fd2f(0x2e0,0x1a3)+_0x20fd2f(0x63,0x42)+_0x18cc4f(0x495,0x51a)+_0x18cc4f(0x52e,0x410)+_0x20fd2f(-0x6f,0x5b)+_0x20fd2f(0x328,0x1bb)+'\x20\x20\x20np'+_0x20fd2f(-0xe3,-0x111)+_0x18cc4f(0x528,0x581)+'hat\x20c'+_0x20fd2f(-0x18f,-0x5d)+_0x20fd2f(-0x287,-0xc7)+'it\x20\x20\x20'+_0x18cc4f(0x572,0x69c)+'it\x20.e'+_0x18cc4f(0x41f,0x548)+_0x18cc4f(0x5d8,0x453)+_0x18cc4f(0x5d4,0x741)+_0x20fd2f(0x26a,0x295)+_0x20fd2f(0x19d,0xa6)+_0x18cc4f(0x72d,0x52f)+'nk-ch'+_0x18cc4f(0x4aa,0x598)+_0x20fd2f(-0x120,-0x6b)+'\x20\x20\x20\x20\x20'+_0x20fd2f(0x34a,0x18f)+_0x18cc4f(0x619,0x457)+_0x20fd2f(0x88,0x5f)+_0x18cc4f(0x1e3,0x3ac)+_0x20fd2f(0x6c,0x12c)+_0x18cc4f(0x6ea,0x525)+'\x20upli'+_0x18cc4f(0x55f,0x6ee)+'at\x20re'+'set\x20-'+'-forc'+_0x18cc4f(0x866,0x726)+'#\x20Cle'+'ar\x20da'+'ta\x20wi'+_0x20fd2f(-0x147,0x51)+_0x20fd2f(0xaf,0x206)+_0x20fd2f(-0x17a,-0x71))),process[_0x18cc4f(0x63e,0x5f8)](0x878+-0x5f*-0x13+-0xf85));function isRunning(_0x4d5a64){function _0x384756(_0x52c4ed,_0x38a012){return _0x20fd2f(_0x38a012,_0x52c4ed-0x2f8);}function _0x3ee501(_0xa9ecf,_0x99e0e1){return _0x20fd2f(_0xa9ecf,_0x99e0e1-0x478);}const _0x39f800={'OzoDw':function(_0x575f31,_0x35c067){return _0x575f31(_0x35c067);},'gBidI':function(_0x4d5b9a,_0x1f31b1){return _0x4d5b9a===_0x1f31b1;},'OkYpc':'nEINE','ExKwj':_0x384756(0x477,0x4b7)};try{if(_0x39f800[_0x384756(0x320,0x32e)](_0x39f800[_0x3ee501(0x6ed,0x6cb)],_0x384756(0x2e1,0x3cf)))return process[_0x3ee501(0x5ec,0x466)](_0x4d5a64,-0x2*0x1dc+0x14fa+0x5e*-0x2f),!![];else _0x39f800[_0x3ee501(0x482,0x418)](_0x50e388,_0x183916);}catch{if(_0x39f800[_0x3ee501(0x55d,0x645)]===_0x384756(0x477,0x30d))return![];else try{const _0x30ca4d={};_0x30ca4d[_0x3ee501(0x5fd,0x67b)+_0x3ee501(0x79e,0x728)]=!![],_0x30ca4d[_0x3ee501(0x249,0x3e9)]=!![],_0x30ed8d(_0x22c7f3,_0x30ca4d),_0xf09198++,_0x1f7052[_0x3ee501(0x38c,0x42f)](_0x3ee501(0x453,0x425)+_0x384756(0x473,0x4ff)+'d\x20'+_0x430a46);}catch(_0x35a877){_0x242aa4['error'](_0x384756(0x432,0x2ff)+_0x384756(0x49a,0x600)+_0x3ee501(0x560,0x701)+'emove'+'\x20'+_0x539b34+':\x20'+_0x35a877['messa'+'ge']);}}}function getPid(){const _0x3e9105={'oolEp':'Node.'+_0xc12d28(0x4c4,0x3e8)+_0xc12d28(0x2e6,0x3e1),'IYIAM':function(_0x1d6c99,_0x5568a6){return _0x1d6c99(_0x5568a6);},'GRBdq':function(_0x40debb,_0x2afc6d,_0x2de2e6){return _0x40debb(_0x2afc6d,_0x2de2e6);},'QGYRz':'utf8','JIfqt':function(_0x37ef8e,_0x5611dd){return _0x37ef8e(_0x5611dd);},'nvLVh':function(_0x189ea9,_0x59b8f6){return _0x189ea9(_0x59b8f6);},'GQnoM':function(_0x20b67b,_0x479494){return _0x20b67b===_0x479494;},'bMEXQ':_0xc12d28(0x1a1,0x30d),'WZNMA':'YqKje','mvhzH':function(_0x439472,_0x565d98){return _0x439472!==_0x565d98;},'BaIFb':_0x5f3391(0x335,0x411)};if(!_0x3e9105[_0x5f3391(0x177,0x369)](existsSync,PID_FILE))return null;function _0xc12d28(_0x310f77,_0xde6eba){return _0x20fd2f(_0xde6eba,_0x310f77-0x20e);}function _0x5f3391(_0x2a292a,_0x3529d2){return _0x20fd2f(_0x2a292a,_0x3529d2-0x19d);}const _0x28b872=_0x3e9105[_0x5f3391(0x2da,0xf8)](parseInt,_0x3e9105[_0x5f3391(0x1f3,0xf8)](readFileSync,PID_FILE,_0x3e9105[_0xc12d28(0x42e,0x40e)])[_0x5f3391(0x13b,0x333)](),0x379+0x3*-0x34+-0x2d3*0x1);if(_0x3e9105[_0xc12d28(0x18b,0x269)](isNaN,_0x28b872)||!_0x3e9105[_0xc12d28(0x429,0x368)](isRunning,_0x28b872)){if(_0x3e9105[_0x5f3391(0x2b4,0x349)](_0x3e9105[_0x5f3391(0x1bf,0x3b9)],_0x3e9105['WZNMA']))_0x1d4e5d[_0x5f3391(0x1be,0x154)](_0xc12d28(0x487,0x376)+_0x5f3391(0x42e,0x298)+_0x5f3391(0x36a,0x3c5)+_0x5f3391(0x4ed,0x3bf));else{try{_0x3e9105[_0xc12d28(0x449,0x5a1)](_0x3e9105[_0xc12d28(0x121,0x9c)],_0x3e9105[_0x5f3391(0x23,0xb0)])?_0x586a6b(_0x3e9105['oolEp'],'v'+_0x51a639+(_0xc12d28(0x34a,0x2b9)+_0xc12d28(0x20e,0x328)+_0xc12d28(0x325,0x301)+'d)')):_0x3e9105[_0xc12d28(0x3da,0x2bd)](unlinkSync,PID_FILE);}catch{}return null;}}return _0x28b872;}function _0x5787(){const _0x5ac0c0=['eady\x20','premi','and\x20c','art!','data','tall','confi','GzPvn','\x20subs','pass','messa','ch,\x20-','\x20logs','k\x20Inf','Print','\x20via\x20','tart\x20','ink\x20i','ation','_modu','top','KePbf','warn','runni','ached','⬡\x20Upl','df\x20-k','code','toppe','no\x20Op','--pat','\x20\x20\x20\x20','peJhK','once','484284JLUaUG','estar','LMVAU','\x20\x20Log','empty','ync.j','k\x20—\x20L','parse','\x20line','ffMs','stdio','k\x20ser','ig\x20\x20\x20','exit','ncomp','emove','bally','fail','ning','UYaak','qkaKh','eset)',':\x20upl','defau','aVFxK','e...','\x20\x20Opt','\x20\x1b[32','ompan','eeSpa','LqxKM','et\x20in','l\x20tim','liste','AY_TO','\x20\x20\x20\x20\x20','free\x20','s\x20que','meout','\x20DATA','OCrFX','ted\x20t','trim','rt\x20--','\x20Remo','ed\x20to','LmMnW','s\x20not','aldis','ons','ing.','opped','\x20Fail','watch','ailed','00\x20#\x20','RxZeM','Value','\x20--no','ay\x20re','HOST','ceYmL','yMtJZ','nXEkf','GQnoM','nGIDS','\x201\x202>','ile)','l\x20Upl','\x20\x20Run','at\x0a','l\x20NOT','\x20item','\x20npx\x20','|6|2|','alloc','l\x20log','unins','ay\x20be','nes\x0a\x20','\x20node','charA','TFZpX','g\x20for','nk-wa','ame','creat','ntrie','\x20—\x20No','hostn','JhGhR','g.jso','\x20\x20→\x20h','\x20read','✗\x1b[0m','2771577KEHDXc','IYIAM','ExKwj','2>&1','xQILO','NLASW','rver\x20','hjxTp','detai','th\x20(c','nning','nd]\x20[','ink\x20w','ken','led\x20t','-g\x20@m','ple\x20.','KISGo','\x20\x20\x20Ch','ly:\x20n','OGRPA','toUpp','--det','\x20\x20Not','\x20(con','\x20\x20\x20un','_DIR/','.0.1','\x20on\x20c','CYsWs','tsxAI','ists','direc','evice','reada','d\x20dat','ound.','mode)','s\x20fro','his\x20h','ripti','GplEY','GsOog','es...','(PID\x20','e:\x20\x20\x20','#\x20Upl','DMiyv','nd\x20me','ocess','FaOgr','\x20Chat','\x20\x20⬡\x20A','\x0a⬡\x20Wa','syuCB','Cnemx','recur','PID\x20f','des','\x20prom','UaTAL','end','he\x20la','rJzdx','ound\x20','.env\x20','deter','\x0a\x20\x20No','ady\x20c','dit\x20m','urati','disk\x20','nd\x20to','hat\x20[','er\x20ru','QFVjM','\x20\x20Thi','\x20\x20Sta','v\x20var','c/aud','nvLVh','bMEXQ','\x20#\x20Ed','Host\x20','26192xraCaO','QGYRz','\x20Miss','ete.','ector','modul','start','files','input','compl','SIGIN','setup','+C\x20to','SyFjS','(none','VaIxx','ating','son','⬡\x20Aut','\x20less','RZLFt','th:\x20u','\x20Port','sages','and\x20a','igura','.exam','xMhPS','mvhzH','.\x20Fre','DpbuZ','http:','mpany','led.','file','subsc','hed','gify','QzhQq','d\x20wat','-host','push',':\x20v','...','rrent','noWat','art\x20t','\x200.0.','able','chdog','e\x20und','e\x20TTS','OkYpc','ns]\x0a\x0a','tions','e\x20\x22re','e:\x20cp','padEn','\x20500\x20','.env','bUHih','uNzVj','canno','.upli','BPyTK','\x20PID\x20','yKGLo','ine','Uplin','ed.\x20N','which','join','host','port','127.0','ver\x20f','⬡\x20Sho','ztWWd','ge.js','teway','nk-ch','ult:\x20','nfirm','strin','k\x20has','wvBCB','FkIMn','bRSzy','the\x20s','ath','\x0a⬡\x20Up','figur','OWNnM','apply','DSJdw','JOKWE','⬡\x20No\x20','og\x20st','\x20\x20\x20\x20-','\x20\x20\x20up','Node.','koff:','ks\x20pa','ay\x20to','from\x20','ScKOh','\x20to\x20r','us\x20\x20\x20','elp\x0a\x0a','le\x20pa','rce,\x20','fig)\x0a','found','elf\x0a','\x20on\x20(',')\x0a\x20\x20\x20','d\x20.en','ree\x20—','or\x0a\x20\x20','ated\x20','updat','o\x20rea','t\x20\x20\x20\x20','ate\x20o','hat\x20s','\x20\x20Tha','vGfJL','anual','rver:','mode','s\x20alr','achab','1vyLmWn','ng\x1b[0','ree','m(unr','e\x20\x20\x20\x20','repea','VHmiY','\x20Usag','op\x20a\x20','--for','d-mes','\x20PID:','n\x20bac','sive','⬡\x20Che','\x0a\x20\x20Lo','\x0a\x20\x20Pa','set\x20\x20','fAxfX','js\x20ve','\x20the\x20','y:\x20','space','5uxmWuf','\x20limi','BzMMq','/loca','\x20\x20Typ','max','FIGUi','p\x20it\x20','\x20edit','Run\x20i','\x20watc','n\x20can','UPLIN','or\x20us','iLPJR','tarti','d\x20DAT','PORT','emium','k\x20whe','AI\x20Ch','\x20\x20Or\x20','.\x20Run','s...\x20','LkbjM','HpKyf','rver.','ssage',':\x20\x20\x20\x20','og\x20(P','firma','\x20not\x20','openS','et\x0a','k-cha','optio','ce\x20/v','match','kywqJ','YisdN','(watc','tion','\x20crea','pWsIU','v\x20fil','ing','nfig\x20','PASSW','-watc','x\x20upl','0.0)\x0a','\x20info','o\x20sto','AAFgu','dsjOh','hat\x20c','ally:','xGnsP','kLDIl','\x20\x20Cre','\x20--fo','isten','ity.j','nks\x20f','all\x20-','loRjN','Show\x20','\x20\x20\x20Sh','USERF','cwd','--lin','inher','to\x20bi','wpeQJ','d.\x20St','I_API','toStr','GATEW','ZNXkz','\x20in\x20e','ver\x20P','HufGe','othin','\x20\x20Aut','etect','BaIFb','ID:\x20\x20','ons.j','\x208080','uploa','logs','OBlSq','s\x20run','XVllT','GET','ges-s','ll\x20','dog','ready','\x20\x20\x20\x20•','m(con','(Ctrl','nk-se','nLabs','//127','\x20chec','g\x20@mo','l\x20cle','not\x20b','push-','eInte','nosti','rTQGx','tchdo','\x1b[32m','in\x20us','ion','ing\x20U','on:\x20v','KEN','cGnZV','PbqvO','mands','\x20--ed','d-con','IhAGh','TloHa','ssing','publi','INUSE','hat','ues\x0a\x20','CREDE','npx\x20u','o\x20Edg','npm\x20p','ng\x20Up','logic','index','setsi','uJUyB','c/img','aded\x20','\x20enab','enIQp','ata\x0a\x20','edit','569080dFeftm','uZUgJ','\x20\x20\x20#\x20','\x20\x20Use','red','tion\x20','--edi','aaGMq','\x0a\x20\x20Se','notep','GRBdq','o-res','ink\x20(','moonc','nk.pi','split','eacha','lhost','t\x20sta','Chrfr','\x20alre','\x20\x20Ser','\x20\x20\x20St','gfYwk','edit\x20','\x0a\x20\x20⚠️\x20','art','g.log','\x20with','\x20star','l\x20upl','n\x20npm','force','VvTfJ','resta','TTS\x20m','k\x20Res','now','pm\x20up','\x20\x20Res','\x20or\x20e','d\x20log','****','\x20curr','JIfqt','linux','\x20Star','Lauik','ync','destr','r\x20its','\x20stop','ed,\x20',')+)+)','⬡\x20Cre','\x20\x20\x20\x20v','kage.','s\x20and','et\x20Fr','3229976CbCLie','insta','\x20npm\x20','pt\x0a\x20\x20','stop','100\x20l','Port\x20','ZCLLE','ected','ctor\x20','art\x20m','de.js','r:\x20\x20\x20','cbNOM','media','ey\x20—\x20','lt:\x203','node','on\x0a','d)\x1b[0','OzoDw','fore\x20','ach','onfig','logs,','\x20\x20\x20\x20i','\x20pass','\x20H\x20\x20\x20','\x20\x20Com','he\x20se','info','y/upl','\x20\x20\x20\x20S','\x20\x20✓\x20R','_here','HhhSF','ly:\x20','pen\x20c','VgXIa','0.0.0','lines','e\x0a\x20\x20\x20','eck\x20i','log','OpenA','\x20unin','\x20fail','serve','filte','-chat','-deta','timeo','\x20\x20Ski','AY_UR','LXczI','plink','kuIFY','134520HGwRmx','\x0a⬡\x20Re','50)\x0a\x20','statu','execP','readS','hdog\x20','stall','rt\x20on','e\x20by\x20','--ver','—\x20run','exist','YWvdX','1:187','\x20your','✓\x1b[0m','Qehhs','(serv','#\x20Run','Updat','ed\x1b[0','\x20conf','pping','xampl','aDreu','JkNeG','runs.','requi','octor','ver\x20l','could','examp','ninst','some','y\x20uni','nEINE','resum','kgrou','tIatG','SYrne','kill','ed\x20me','tarts','reque','e\x20is\x20','tor\x20—','QfkXN','vHgBh','YFMvI','\x20comp','reak\x20','\x20\x20Set','.json','readl','ion\x0a\x20','rent\x20','nes\x201','oIJAu','18\x20re','uplin','th\x20wa','to\x20cl','\x20vers','dog.j','argv','⬡\x20Upd','\x20\x20Try','tall\x20','g\x20was','PID\x20','\x20@moo','one.\x0a','ch\x20','stdou','SrPLW','erCas','ve\x20al','r\x20(de','\x20and\x20','searc','NLABS','...\x0a','d\x20ser','\x20>=\x201','ORD','UAwxf','1722798uzPVCB','tchin','rt\x0a\x20\x20','ear\x20—','K_HOS','ated','cache','alue','enAI\x20','unleA','dzOuh','null\x20','gBidI','A_DIR','[0m','cking','e\x20ser','tOTKI','\x20\x20\x20-h','es\x20in','activ','env','lean.','GhIjQ','BkzPq','docto','close','nstal','path','\x20/t\x201','ble','write','\x0a\x20\x20Po','8\x20is\x20','ink\x20s','s\x20wil','/agen','\x20The\x20','Tail\x20','EADDR','utf8','oads\x20','m\x20(PI','.migr','ATODb','quest','ver\x20(','sWith','PI\x20ke','sync-','log\x20e','\x20file','at\x0a\x0a\x20','thout','ID=\x27','\x20\x20Exp','log\x20f','yWcWm','\x20clea','RaCzQ','l\x20con','Disk\x20','\x20Uplo','og\x20li','ne\x20wi','floor','\x20MB\x20f','\x20diag','Key','!\x1b[0m','e\x20glo','o\x0a\x0a\x20\x20','led)','ng\x20np','re\x20\x22D','..\x0a','\x20on\x20t','wmic\x20','d\x20(PI','dated','\x0a\x20\x20Ca','p\x20con','\x20Unin','\x20\x20✓\x20S','OMuxW','ata\x0a\x0a','\x20\x20Sto','sleep','ezWeo','ning\x0a','reset','not\x20f','ent\x20a','ault:','inclu','CXwwz','share','pEPUr','t\x20rea','size','_API_','yDOaq','TTS\x20A','vatar','ignor','n\x20iss','IupTd','\x20\x20\x20\x20#','|3|4|','bKibM','\x20log\x20','ent\x20s','JwuCW','nfo\x20\x20','\x20(PID','\x0a\x20\x20\x20\x20','backo','2|6|7','orm','avail','pid','ory\x20a','KEY','SIGTE','Gatew','iqUCl','bTqEi','last\x20','nd\x20wa','test\x20','ions:','e\x20\x22un','DjKTF','UKZmy','VSuVD','p\x20Upl','ime:\x20','r.js','\x20\x20npx','\x20Numb','\x20for\x20','\x20\x1b[31','win32','zTkWs','\x20-g\x20@','\x20.env','\x20new\x20','Fskpv','\x20upli','promp','--por','versa','outpu','\x0a\x20\x20Da','\x20runn','rash.','xzSIg','BHGlT','error','Clear','Sync','\x20\x20\x20--','.env.','gured','erver','r\x0a\x20\x20\x20','hplPL','\x20\x20\x20re','nd\x20lo','how\x20t','\x20EDIT','aemon','cal\x20d','nv\x20in','ng\x20(','Stop\x20','hing\x20','r.log','.0.0.','\x20hist','edAt','l\x20—\x20v','detac','mine\x20','rPid','rface','\x0a\x20\x20⬡\x20','\x20Show','rsion','TOKEN','any/u','WrmJc','\x20port','xUudH','\x1b[31m','packa','SpaEr','\x22\x20|\x20t','ink\x20d','th:\x20','oonco','ncell','node_','ow\x20cu','AVCFV','ructo','3|5|7','he\x20Up','(empt','\x20\x20\x20Ta','ID\x20','Xiett','ARvEn','⬡\x20Res','help','slice','mples','k\x20Doc','ackag',',\x20PID','ies','round','ctivi','date\x20','\x0a\x20\x20','platf','\x0a\x20\x20Ga',':\x0a\x20\x20\x20','ELEVE','igure','ink-c','backg','--hos','the\x20l','Roami','⬡\x20Fai','AppDa','\x20sync','versi','ly\x20wi','ink\x20C','iygdl','ing\x20m','s/dir','anoth','ig\x20fi','MvFcr','\x20warn','label','ll\x22\x20t','1|0|4','quire','ning\x20','at\x20do','NsqAX','t\x20v','n\x20rea','v:\x20','LpRRD','BChbx','GlXFg','\x0a\x20\x20Ho','emovi','⬡\x20Ope','JPXEy','les','toLow','lt\x20po','faile','ver\x20a','oaPoQ','(((.+','cs\x0a\x20\x20','Depen','denci','glanc','AJheu','mpZxp','/upli','3987uWwGCU','lengt','atchd','\x20--li','pmsNP','atest','g.pid','\x20\x20✗\x20F','link\x20','\x20(>=\x20','\x20manu',':\x27\x22\x20g','qfMzr','at\x20--','\x20remo','qkVWZ','\x1b[33m','|1|0','a\x20dir','WQIUQ','d\x20in\x20','\x20data','f\x20Upl'];_0x5787=function(){return _0x5ac0c0;};return _0x5787();}function getWatchdogPid(){const _0x243e2b={'gbWtL':'Gatew'+_0x260d63(0x770,0x66c)+_0x260d63(0x6c2,0x61c),'DMiyv':'not\x20s'+_0x260d63(0x675,0x60d)+_0x19e99d(0x177,0x1c0),'UaTAL':function(_0x191943,_0x15268d){return _0x191943(_0x15268d);},'KISGo':function(_0x2ed22e,_0x3e3dd5,_0x542c02){return _0x2ed22e(_0x3e3dd5,_0x542c02);},'tsxAI':_0x260d63(0x52e,0x3bf),'ztWWd':function(_0x2b4fee,_0x764abd){return _0x2b4fee===_0x764abd;},'cbNOM':_0x19e99d(0x1a0,0x255),'GhIjQ':_0x260d63(0x746,0x833)};if(!_0x243e2b['UaTAL'](existsSync,WATCHDOG_PID_FILE))return null;function _0x260d63(_0x11daae,_0x43760c){return _0x20fd2f(_0x43760c,_0x11daae-0x4ea);}const _0x171352=_0x243e2b[_0x260d63(0x6c6,0x5dd)](parseInt,_0x243e2b[_0x260d63(0x6c6,0x6a7)](readFileSync,WATCHDOG_PID_FILE,_0x243e2b[_0x19e99d(0x117,0x2fc)])[_0x19e99d(0x23d,0x2a9)](),-0xa7e+0xcca+0x121*-0x2);function _0x19e99d(_0x2d8c29,_0x5dd779){return _0x20fd2f(_0x2d8c29,_0x5dd779-0x113);}if(isNaN(_0x171352)||!_0x243e2b[_0x260d63(0x6f1,0x780)](isRunning,_0x171352)){try{_0x243e2b[_0x19e99d(0x37d,0x37f)](_0x243e2b[_0x260d63(0x483,0x501)],_0x243e2b[_0x260d63(0x51d,0x5a5)])?_0x1b01b8(_0x243e2b['gbWtL'],_0x243e2b[_0x19e99d(0x16b,0x30d)]):_0x243e2b[_0x260d63(0x6f1,0x51a)](unlinkSync,WATCHDOG_PID_FILE);}catch{}return null;}return _0x171352;}function getWatchdogState(){function _0x15b33a(_0x33ea02,_0x53951d){return _0x20fd2f(_0x53951d,_0x33ea02-0x10a);}const _0x2aa04c={'iygdl':function(_0x4bbd34,_0x531531,_0x29ccf2){return _0x4bbd34(_0x531531,_0x29ccf2);},'tOTKI':function(_0x536033,_0x53a197){return _0x536033(_0x53a197);},'oIJAu':_0x15b33a(0x14e,0x1ca),'VHmiY':function(_0x33a878,_0x411b8e){return _0x33a878!==_0x411b8e;},'CXwwz':'rocTM'};if(!_0x2aa04c[_0x15b33a(0x137,0x32b)](existsSync,WATCHDOG_STATE_FILE))return null;function _0x46f731(_0x3629cf,_0x3406a4){return _0x20fd2f(_0x3629cf,_0x3406a4-0x33b);}try{return JSON['parse'](_0x2aa04c[_0x46f731(0x25b,0x448)](readFileSync,WATCHDOG_STATE_FILE,_0x2aa04c[_0x46f731(0x1a4,0x33a)]));}catch{if(_0x2aa04c[_0x46f731(0x7cb,0x5e4)](_0x2aa04c[_0x15b33a(0x185,0x9)],_0x46f731(0x2dc,0x416)))return null;else{const _0x5c6847={};_0x5c6847[_0x15b33a(0x30d,0x16d)+'sive']=!![],xmMjOR['iygdl'](_0x26bfb6,_0x3e06c2,_0x5c6847);}}}function formatUptime(_0x496b5f){const _0x323cfc={};_0x323cfc[_0xeef1ab(0x307,0x4db)]=function(_0x6fb7c6,_0x4639a1){return _0x6fb7c6/_0x4639a1;},_0x323cfc['Xiett']=function(_0x2b1559,_0x51f2ca){return _0x2b1559/_0x51f2ca;},_0x323cfc[_0xeef1ab(0x414,0x369)]=function(_0x271aa8,_0x31cdec){return _0x271aa8/_0x31cdec;},_0x323cfc['RZLFt']=function(_0x4ac078,_0x39ead5){return _0x4ac078>_0x39ead5;},_0x323cfc[_0x396c62(0x2de,0x42f)]=function(_0x22dbd3,_0xa23c48){return _0x22dbd3%_0xa23c48;},_0x323cfc[_0x396c62(0x3cc,0x57a)]=function(_0x3456a0,_0x2996a4){return _0x3456a0%_0x2996a4;};const _0x3c20d5=_0x323cfc,_0x3eadd8=Math[_0x396c62(0x1a1,0x362)](_0x3c20d5[_0x396c62(0x52b,0x382)](_0x496b5f,0x1814+0x105b*0x1+0x40f*-0x9)),_0x452726=Math[_0x396c62(0x18e,0x362)](_0x3c20d5['Xiett'](_0x3eadd8,0x1118+-0xe2*-0x2b+-0x1246*0x3)),_0x419a97=Math['floor'](_0x3c20d5[_0x396c62(0x328,0x3f4)](_0x452726,-0xb7+0x36a+-0x277)),_0x5711a8=Math[_0xeef1ab(0x2e7,0x358)](_0x3c20d5['LqxKM'](_0x419a97,0x140a+0x1ab9+-0xd*0x397));if(_0x3c20d5[_0xeef1ab(0x4bd,0x4bf)](_0x5711a8,-0x2e2+0xc84+-0x9a2))return _0x5711a8+'d\x20'+_0x3c20d5['oaPoQ'](_0x419a97,-0x1*-0x129d+-0x193+-0x5a6*0x3)+'h\x20'+_0x452726%(0x1f89*-0x1+-0x5*0x608+0x53*0xbf)+'m';function _0x396c62(_0x488811,_0xdbe189){return _0x20fd2f(_0x488811,_0xdbe189-0x305);}function _0xeef1ab(_0x371014,_0x3fbea7){return _0x20fd2f(_0x3fbea7,_0x371014-0x28a);}if(_0x3c20d5[_0xeef1ab(0x4bd,0x63c)](_0x419a97,0x2665+0x1b5a+-0x41bf))return _0x419a97+'h\x20'+_0x452726%(-0x1621+-0x68e*-0x5+-0xa69)+'m\x20'+_0x3c20d5['FkIMn'](_0x3eadd8,0x2*0x5e+-0x1*-0x20d+-0x28d)+'s';if(_0x452726>-0xbd6+-0x159a+0x2170)return _0x452726+'m\x20'+_0x3c20d5[_0x396c62(0x76e,0x57a)](_0x3eadd8,0x1db4+-0x1e69+0xf1)+'s';return _0x3eadd8+'s';}if(command===_0x18cc4f(0x4b9,0x40f)){const watchdogPid=getWatchdogPid();if(watchdogPid){try{process['kill'](watchdogPid,_0x20fd2f(0x10a,0x97)+'RM'),console[_0x18cc4f(0x458,0x436)](_0x20fd2f(-0x6b,0x163)+_0x18cc4f(0x5e0,0x656)+_0x18cc4f(0x43d,0x5b4)+_0x20fd2f(0x22e,0x280)+_0x18cc4f(0x4db,0x61e)+_0x20fd2f(0x1d9,0x8e)+'\x20'+watchdogPid+').');try{unlinkSync(WATCHDOG_PID_FILE);}catch{}try{unlinkSync(PID_FILE);}catch{}}catch(_0x50dd52){console[_0x18cc4f(0x368,0x539)](_0x18cc4f(0x444,0x586)+_0x18cc4f(0x4f0,0x658)+_0x18cc4f(0x249,0x371)+'p\x20Upl'+'ink\x20w'+_0x20fd2f(0x10,0x135)+_0x20fd2f(-0x31f,-0x125)+_0x18cc4f(0x561,0x56d)+watchdogPid+'):',_0x50dd52[_0x20fd2f(-0x67,0x154)+'ge']),process[_0x18cc4f(0x6b8,0x5f8)](-0x2246*-0x1+0x1b19*-0x1+-0x72c);}process['exit'](-0x1d98+0x1fd+0x1b9b);}const pid=getPid();!pid&&(console[_0x20fd2f(-0x1a0,-0x49)](_0x18cc4f(0x54c,0x5e2)+_0x20fd2f(0x14f,0x15b)+'s\x20not'+_0x20fd2f(0xc0,0xb6)+_0x20fd2f(0xae,0x19e)),process[_0x18cc4f(0x502,0x5f8)](0x761*0x3+0x12cb+-0x326*0xd));try{process[_0x18cc4f(0x3b9,0x46d)](pid,_0x18cc4f(0x3e8,0x516)+'RM'),console[_0x18cc4f(0x40c,0x436)](_0x20fd2f(0x217,0x163)+'ink\x20s'+'toppe'+_0x18cc4f(0x52e,0x4e9)+'D\x20'+pid+').');try{unlinkSync(PID_FILE);}catch{}}catch(_0x1aa232){console[_0x18cc4f(0x5e4,0x539)](_0x20fd2f(0x164,0x107)+'led\x20t'+_0x20fd2f(-0x1ad,-0x10e)+'p\x20Upl'+_0x20fd2f(-0x17c,-0xa3)+'PID\x20'+pid+'):',_0x1aa232[_0x18cc4f(0x6dd,0x5d3)+'ge']),process['exit'](0x29f*0xd+0x1020+-0x3232);}process['exit'](-0x24df+-0xf23+0x3402);}if(command==='updat'+'e'){const require=createRequire(import.meta.url),pkg=require(join(ROOT,_0x18cc4f(0x6d9,0x55e)+_0x18cc4f(0x50a,0x6ec)+'on')),currentVersion=pkg['versi'+'on'];console['log']('⬡\x20Cur'+_0x20fd2f(0x14a,-0x3)+_0x20fd2f(-0x2b,0x10a)+_0x18cc4f(0x2bf,0x3b3)+currentVersion),console['log'](_0x18cc4f(0x551,0x730)+_0x20fd2f(0x6c,0x2b)+_0x18cc4f(0x384,0x527)+_0x18cc4f(0x77b,0x716)+_0x18cc4f(0x764,0x675)+'\x0a');const wasRunning=!!(getWatchdogPid()||getPid());if(wasRunning){console[_0x18cc4f(0x2ed,0x436)]('⬡\x20Sto'+_0x20fd2f(-0x51,-0x24)+'\x20Upli'+'nk\x20be'+_0x18cc4f(0x4ea,0x420)+'updat'+_0x20fd2f(0x366,0x185));const watchdogPid=getWatchdogPid(),serverPid=getPid(),pidToKill=watchdogPid||serverPid;try{process[_0x18cc4f(0x41e,0x46d)](pidToKill,'SIGTE'+'RM');try{unlinkSync(WATCHDOG_PID_FILE);}catch{}try{unlinkSync(PID_FILE);}catch{}const _0x376f50={};_0x376f50[_0x18cc4f(0x761,0x5f5)]=_0x20fd2f(0x10f,0x84)+'e',execSync(_0x20fd2f(-0x165,0x73)+_0x20fd2f(-0xe,0x1ae)+'/dev/'+_0x18cc4f(0x2fc,0x4a6)+'||\x20ti'+_0x18cc4f(0x688,0x611)+_0x20fd2f(0x8a,0x39)+'\x20/nob'+_0x18cc4f(0x385,0x477)+'>nul\x20'+_0x20fd2f(0x89,0x1ce),_0x376f50);}catch{}}try{console[_0x18cc4f(0x2d0,0x436)](_0x18cc4f(0x603,0x486)+_0x18cc4f(0x6e8,0x6ae)+_0x20fd2f(0xc7,0xc)+_0x20fd2f(0x260,0x17a)+_0x20fd2f(-0x80,0xda)+_0x18cc4f(0x2dc,0x442)+'-chat'+_0x20fd2f(0x1c,0x17));const _0x57d929={};_0x57d929['stdio']=_0x18cc4f(0x42c,0x384)+'it',execSync('npm\x20u'+'pdate'+_0x20fd2f(-0x12c,0xac)+_0x18cc4f(0x5b3,0x3dd)+_0x18cc4f(0x648,0x607)+_0x20fd2f(-0x11c,-0x55)+_0x20fd2f(0x2f5,0x102)+_0x18cc4f(0x292,0x3bf),_0x57d929);}catch(_0x2d71c5){console[_0x20fd2f(0x6f,0xba)](_0x20fd2f(0x32f,0x279)+'date\x20'+_0x20fd2f(0x271,0x128)+'d:',_0x2d71c5[_0x18cc4f(0x667,0x5d3)+'ge']),console[_0x18cc4f(0x479,0x539)](_0x20fd2f(-0x117,0x8)+_0x20fd2f(0x149,0xb6)+_0x18cc4f(0x76f,0x58d)+'anual'+_0x20fd2f(0x1df,0x1de)+_0x20fd2f(-0x1f0,-0x89)+'date\x20'+_0x18cc4f(0x6d8,0x659)+_0x20fd2f(0x38,0xe4)+_0x20fd2f(0xb2,0x23f)+'/upli'+_0x20fd2f(0x93,0x26f)+'at');if(wasRunning){console[_0x20fd2f(-0x80,-0x49)](_0x18cc4f(0x406,0x445)+_0x20fd2f(0x40d,0x225)+_0x20fd2f(-0x100,-0xcd)+_0x20fd2f(-0x171,-0x3d)+_0x18cc4f(0x823,0x6c9));const _0x28212c={};_0x28212c[_0x20fd2f(-0x75,0x176)]=_0x20fd2f(-0x154,-0xfb)+'it',execSync(_0x18cc4f(0x2cd,0x480)+_0x20fd2f(0x12,-0x120)+_0x20fd2f(0x154,-0x9d)+_0x18cc4f(0x71e,0x616)+_0x18cc4f(0x4e7,0x551)+'h',_0x28212c);}process['exit'](0x1*-0x14e3+0x1*0x1c9c+-0x7b8);}try{delete require[_0x18cc4f(0x61d,0x4a1)][join(ROOT,'packa'+_0x20fd2f(0x42a,0x26d)+'on')];const newPkg=require(join(ROOT,_0x18cc4f(0x4d5,0x55e)+'ge.js'+'on')),newVersion=newPkg[_0x20fd2f(-0xb8,0x10a)+'on'];newVersion!==currentVersion?console['log'](_0x18cc4f(0x76a,0x6f8)+_0x20fd2f(0x2,0x6b)+_0x18cc4f(0x8ba,0x6c8)+currentVersion+'\x20→\x20v'+newVersion):console[_0x20fd2f(-0x1bd,-0x49)]('\x0a⬡\x20Al'+_0x20fd2f(-0x148,-0xe0)+_0x18cc4f(0x58b,0x4e7)+_0x18cc4f(0x637,0x688)+_0x18cc4f(0x491,0x51c)+_0x20fd2f(0xd2,0x10a)+'on\x20(v'+currentVersion+').');}catch{console[_0x18cc4f(0x451,0x436)]('\x0a⬡\x20Up'+_0x20fd2f(0x262,0xfb)+_0x18cc4f(0x759,0x6a7)+'ete.');}if(wasRunning){console[_0x20fd2f(-0x144,-0x49)](_0x20fd2f(0x26f,0xf1)+'tarti'+_0x20fd2f(-0x2,-0xba)+'link.'+'..');try{const _0x1d0144={};_0x1d0144[_0x18cc4f(0x6c0,0x5f5)]=_0x18cc4f(0x47f,0x384)+'it',execSync(_0x20fd2f(0x43,0x1)+_0x20fd2f(0x4e,-0x120)+'t\x20sta'+_0x20fd2f(0x356,0x197)+_0x18cc4f(0x3a0,0x551)+'h',_0x1d0144);}catch{console[_0x20fd2f(0x112,-0x49)](_0x20fd2f(0x1c3,0x231)+_0x18cc4f(0x312,0x3db)+_0x20fd2f(0x159,0x15a)+'faile'+'d.\x20St'+_0x18cc4f(0x28a,0x415)+_0x20fd2f(0xd1,0x29e)+_0x20fd2f(-0x58,0x10b)+_0x20fd2f(0x3a4,0x234)+'plink'+'-chat'+_0x18cc4f(0x2e5,0x3ed)+'t');}}process[_0x18cc4f(0x7a7,0x5f8)](0x121*0x1a+-0x8*-0x298+0x1*-0x321a);}if(command==='statu'+'s'){const watchdogPid=getWatchdogPid(),state=getWatchdogState();if(watchdogPid&&state){const uptime=formatUptime(Date[_0x20fd2f(-0x170,-0x8a)]()-state['start'+_0x20fd2f(0x1ab,0xd0)]);console[_0x20fd2f(-0x197,-0x49)]('⬡\x20Upl'+_0x20fd2f(0x30f,0x15b)+_0x20fd2f(-0x155,-0xe6)+_0x18cc4f(0x5e0,0x597)+_0x20fd2f(-0x1ca,-0x11a)+_0x18cc4f(0x25a,0x44a)+_0x20fd2f(0x21a,0x1f0)),console[_0x18cc4f(0x2ec,0x436)]('\x20\x20Wat'+_0x20fd2f(0xd3,0x250)+_0x20fd2f(0x251,0x2ae)+'\x20'+watchdogPid);if(state[_0x18cc4f(0x3c5,0x43a)+_0x20fd2f(-0x52,0xd4)])console[_0x18cc4f(0x5d8,0x436)](_0x20fd2f(0xf,-0x9a)+_0x18cc4f(0x3f9,0x38d)+_0x18cc4f(0x34a,0x393)+'\x20'+state['serve'+'rPid']);console[_0x18cc4f(0x3ee,0x436)]('\x20\x20Upt'+_0x18cc4f(0x472,0x523)+_0x20fd2f(-0x49,0x18f)+'\x20'+uptime),console['log'](_0x20fd2f(-0x1a,-0x88)+_0x20fd2f(0x71,-0x10)+_0x18cc4f(0x5d1,0x755)+'\x20'+(state[_0x20fd2f(-0x89,-0x8d)+'rtCou'+'nt']||-0x8bf+-0x2358+0x2c17));if(state[_0x18cc4f(0x37f,0x50f)+_0x18cc4f(0x561,0x5f4)]>-0x103+0x952*0x4+0x205d*-0x1)console[_0x20fd2f(0x13f,-0x49)]('\x20\x20Bac'+_0x18cc4f(0x734,0x703)+'\x20\x20\x20\x20\x20'+'\x20'+state[_0x20fd2f(0x1b1,0x90)+_0x20fd2f(0x2bc,0x175)]+'ms');}else{const pid=getPid();pid?console['log'](_0x18cc4f(0x723,0x5e2)+_0x20fd2f(0x94,0x15b)+_0x20fd2f(-0x9e,-0xe6)+_0x18cc4f(0x6bd,0x597)+'(PID\x20'+pid+').'):console[_0x20fd2f(-0x116,-0x49)]('⬡\x20Upl'+_0x18cc4f(0x59b,0x5da)+_0x18cc4f(0x5e6,0x61a)+_0x18cc4f(0x576,0x535)+_0x20fd2f(0x2a0,0x19e));}process['exit'](-0x21fd+0x1e2c+-0x1*-0x3d1);}if(command===_0x20fd2f(0x14f,0x1b9)+'tall'){const require=createRequire(import.meta.url),pkg=require(join(ROOT,'packa'+_0x18cc4f(0x5b4,0x6ec)+'on')),readline=await import(_0x20fd2f(0x1ba,-0x5)+_0x18cc4f(0x8ca,0x6e1)),{rmSync}=await import('fs');console[_0x20fd2f(-0x132,-0x49)](_0x20fd2f(0x2ab,0xd6)+_0x20fd2f(0xb7,0x263)+'k\x20Uni'+_0x20fd2f(0x227,0x37)+_0x18cc4f(0x59d,0x550)+pkg['versi'+'on']+'\x0a'),console[_0x20fd2f(-0x5,-0x49)]('\x20\x20Thi'+_0x20fd2f(-0xd9,0x3f)+'l:'),console['log'](_0x20fd2f(-0x1d4,-0xdf)+'\x20Stop'+_0x20fd2f(0x226,0x2b7)+_0x20fd2f(0x115,0x263)+_0x18cc4f(0x6b4,0x5f6)+_0x18cc4f(0x41a,0x5a8)+_0x20fd2f(-0x41,0x9c)+_0x20fd2f(-0xa5,-0xd1)+'g'),console['log']('\x20\x20\x20\x20•'+_0x18cc4f(0x5ea,0x617)+'ve\x20al'+_0x20fd2f(0x6e,0x58)+_0x18cc4f(0x660,0x6f9)+_0x18cc4f(0x4f1,0x5db)+'\x20(.en'+'v,\x20co'+_0x20fd2f(-0x2a1,-0x114)+_0x18cc4f(0x691,0x6a5)+')'),console[_0x18cc4f(0x529,0x436)](_0x20fd2f(-0x102,-0xdf)+_0x18cc4f(0x500,0x617)+_0x18cc4f(0x2f2,0x491)+_0x20fd2f(0x90,-0x91)+_0x18cc4f(0x2e2,0x4c4)+_0x20fd2f(0xcd,0x14c)+_0x20fd2f(0x18b,0x162)+'\x20data'),console[_0x20fd2f(-0x10e,-0x49)](_0x20fd2f(-0x275,-0xdf)+'\x20Remo'+_0x18cc4f(0x38e,0x491)+_0x20fd2f(0x224,0x1b8)+'s\x20and'+_0x20fd2f(0xf6,0x260)+_0x20fd2f(0x6c,0x226)),console[_0x20fd2f(0x2f,-0x49)](_0x18cc4f(0x35a,0x3a0)+'\x20Remo'+'ve\x20ag'+_0x20fd2f(0xa5,0x78)+_0x20fd2f(-0x9e,0x83)+_0x18cc4f(0x3a9,0x409)+'\x20audi'+'o\x20fil'+'es'),console['log'](_0x20fd2f(-0x233,-0xdf)+_0x18cc4f(0x63b,0x4ed)+_0x20fd2f(0xbf,-0x34)+'\x20the\x20'+_0x20fd2f(0xf0,-0xbb)+_0x20fd2f(0x108,0xf6)+_0x18cc4f(0x3e4,0x4e1)+_0x18cc4f(0x433,0x5fb)+'\x0a'),console[_0x20fd2f(-0x221,-0x49)]('\x20\x20⚠️\x20\x20'+'This\x20'+'actio'+_0x18cc4f(0x6a2,0x744)+_0x20fd2f(0x79,-0xd6)+_0x20fd2f(0x283,0x251)+_0x18cc4f(0x62e,0x48c));const _0x261da0={};_0x261da0[_0x18cc4f(0x5cc,0x6a6)]=process['stdin'],_0x261da0[_0x20fd2f(-0xd0,0xb4)+'t']=process[_0x18cc4f(0x5b8,0x48e)+'t'];const rl=readline[_0x20fd2f(0x2c1,0x1c2)+_0x18cc4f(0x403,0x3ab)+_0x20fd2f(0x12b,0xd5)](_0x261da0),answer=await new Promise(_0x169486=>{function _0x4b4676(_0x5a94ee,_0x27a398){return _0x18cc4f(_0x5a94ee,_0x27a398- -0xd7);}const _0x4929d3={};_0x4929d3[_0x4b4676(0x384,0x28d)]=_0x4b4676(0x5b9,0x666)+_0x3a0411(-0x1b,-0xc8)+_0x4b4676(0x315,0x335)+_0x4b4676(0x483,0x4bd)+'o\x20con'+'firm:'+'\x20';const _0x34fb22=_0x4929d3;function _0x3a0411(_0x3ece64,_0x58ffc9){return _0x18cc4f(_0x3ece64,_0x58ffc9- -0x5e6);}rl[_0x3a0411(-0x247,-0x11e)+_0x4b4676(0x29f,0x2da)](_0x34fb22['YisdN'],_0x169486);});rl[_0x20fd2f(-0x198,0x36)]();answer['trim']()[_0x20fd2f(0x190,0x126)+'erCas'+'e']()!==_0x18cc4f(0x5c8,0x638)+_0x20fd2f(0x110,0x14f)&&(console[_0x18cc4f(0x3f1,0x436)](_0x20fd2f(0x172,0x6c)+'ncell'+_0x20fd2f(0x330,0x264)+_0x20fd2f(0x10b,-0xf0)+'g\x20was'+_0x20fd2f(0x233,0x141)+'ved.\x0a'),process[_0x20fd2f(0x11,0x179)](-0x1764+-0x21a3+-0x1*-0x3907));console['log']('');const watchdogPid=getWatchdogPid(),serverPid=getPid();if(watchdogPid)try{process[_0x20fd2f(0x17,-0x12)](watchdogPid,_0x18cc4f(0x69e,0x516)+'RM'),console[_0x20fd2f(-0x3a,-0x49)](_0x20fd2f(-0x2,0x6f)+_0x18cc4f(0x719,0x5e5)+_0x18cc4f(0x50f,0x6c5)+_0x20fd2f(0x28d,0x250)+'\x20(PID'+'\x20'+watchdogPid+')');}catch{}if(serverPid)try{process[_0x20fd2f(-0x48,-0x12)](serverPid,_0x18cc4f(0x4c3,0x516)+'RM'),console['log']('\x20\x20✓\x20S'+'toppe'+_0x20fd2f(0x45,0x18)+_0x20fd2f(-0x14e,0x4a)+'PID\x20'+serverPid+')');}catch{}!watchdogPid&&!serverPid&&console[_0x18cc4f(0x318,0x436)](_0x18cc4f(0x437,0x4ee)+_0x18cc4f(0x636,0x53f)+'\x20not\x20'+'runni'+'ng');const legacyToRemove=[_0x20fd2f(0x3ec,0x25a),'confi'+'g.jso'+'n','.upli'+'nk.pi'+'d','.upli'+'nk-wa'+_0x20fd2f(-0x290,-0xd1)+_0x20fd2f(0x109,0x139),'.upli'+_0x18cc4f(0x6bb,0x63f)+_0x20fd2f(-0xe2,-0xd1)+_0x20fd2f(0x198,0x1c7)+'n',_0x20fd2f(0x183,0x25e)+_0x20fd2f(0x2eb,0x1c0)+_0x20fd2f(-0x1e0,-0xd1)+_0x20fd2f(-0x4d,-0x94),_0x18cc4f(0x516,0x6dd)+_0x18cc4f(0x3ca,0x3a3)+_0x20fd2f(0x460,0x2d4)+_0x20fd2f(-0x223,-0x49),'activ'+'ity.j'+'son',_0x18cc4f(0x798,0x5d3)+_0x20fd2f(-0x164,-0xe3)+'ync.j'+_0x20fd2f(0x1d5,0x230),_0x18cc4f(0x205,0x3aa)+_0x20fd2f(0x27e,0x242)+_0x20fd2f(0x286,0x1f3)+_0x18cc4f(0x512,0x394)+_0x18cc4f(0x4cf,0x6af),'misse'+'d-mes'+_0x18cc4f(0x5c8,0x6b5)+_0x18cc4f(0x574,0x479),_0x18cc4f(0x3da,0x396)+'ds',_0x20fd2f(-0x15a,0x4d)+_0x20fd2f(-0x5b,0x14e),_0x18cc4f(0x31d,0x3bd)+_0x18cc4f(0x639,0x699)+'io',_0x20fd2f(0xf7,-0xc2)+_0x18cc4f(0x531,0x3ca)+_0x18cc4f(0x4c8,0x4bf)+'ts'];let removed=-0x1c8+-0x95e+0xb26;for(const item of legacyToRemove){const fullPath=join(ROOT,item);if(existsSync(fullPath))try{const _0x5ab28d={};_0x5ab28d[_0x20fd2f(0x3a7,0x203)+_0x18cc4f(0x8b4,0x72f)]=!![],_0x5ab28d['force']=!![],rmSync(fullPath,_0x5ab28d),removed++;}catch{}}if(existsSync(DATA_DIR))try{const _0xa65595={};_0xa65595[_0x20fd2f(0x11e,0x203)+_0x18cc4f(0x5d2,0x72f)]=!![],_0xa65595[_0x20fd2f(-0x194,-0x8f)]=!![],rmSync(DATA_DIR,_0xa65595),removed++,console['log'](_0x20fd2f(0x170,-0x53)+_0x18cc4f(0x50c,0x5fa)+_0x20fd2f(0x337,0x1ee)+_0x18cc4f(0x421,0x5c4)+_0x20fd2f(0x63,0x223)+_0x18cc4f(0x5bb,0x737)+DATA_DIR);}catch{}console[_0x20fd2f(-0x6d,-0x49)](_0x20fd2f(0x6b,-0x53)+_0x20fd2f(0x2ec,0x17b)+'d\x20'+removed+(_0x20fd2f(0xac,0x148)+_0x18cc4f(0x59a,0x4ce)+_0x18cc4f(0x5d3,0x58e)+_0x18cc4f(0x728,0x6a2)+_0x20fd2f(-0xc7,0xf8))),console[_0x18cc4f(0x4fa,0x436)](_0x20fd2f(-0x14,-0x53)+_0x20fd2f(-0xc9,0x122)+_0x20fd2f(-0x151,0x65)+'m\x20pac'+_0x20fd2f(-0xed,-0x77)+_0x18cc4f(0x6cf,0x4e6));try{const _0x37af43={};_0x37af43[_0x18cc4f(0x6fe,0x5f5)]=_0x18cc4f(0x34c,0x384)+'it',execSync('npm\x20u'+_0x18cc4f(0x611,0x465)+_0x18cc4f(0x32c,0x37d)+_0x20fd2f(-0x20f,-0xd8)+'oncom'+'pany/'+_0x20fd2f(0x16c,0x1)+_0x20fd2f(-0x28b,-0x120)+'t',_0x37af43),console[_0x18cc4f(0x25f,0x436)](_0x18cc4f(0x563,0x555)+_0x18cc4f(0x5d2,0x6e2)+_0x18cc4f(0x8bd,0x6f2)+'\x20been'+_0x18cc4f(0x280,0x476)+'letel'+_0x18cc4f(0x370,0x467)+'nstal'+_0x20fd2f(0x2ec,0x240)),console[_0x20fd2f(0x8b,-0x49)](_0x20fd2f(0x245,0x29c)+_0x20fd2f(0x5b,-0x103)+_0x18cc4f(0x60b,0x746)+_0x20fd2f(-0x2c,-0xcd)+_0x18cc4f(0x514,0x442)+'.\x20👋\x0a');}catch(_0x505335){console['error'](_0x20fd2f(-0x1d3,-0x96)+_0x20fd2f(0x2f2,0x1a0)+_0x20fd2f(0x14c,0x199)+_0x20fd2f(-0x13a,-0x47)+_0x20fd2f(-0x154,-0x34)+_0x20fd2f(0x13,-0x72)+'packa'+'ge.'),console['error'](_0x20fd2f(0x1b5,0x1b1)+_0x18cc4f(0x6dd,0x5bc)+_0x20fd2f(-0x2f8,-0x10a)+_0x20fd2f(-0x1d,-0x72)+'unins'+_0x20fd2f(0x16,0x9)+_0x18cc4f(0x529,0x659)+'oonco'+_0x18cc4f(0x7c4,0x6be)+_0x18cc4f(0x748,0x5b1)+'nk-ch'+_0x18cc4f(0x765,0x631)),process[_0x20fd2f(0x294,0x179)](-0x30*-0x89+-0x1*-0x634+-0x9*0x38b);}process[_0x18cc4f(0x715,0x5f8)](0x2224+0x1*0xcba+-0x2ede);}if(command===_0x20fd2f(0x3a,-0xe8)){const LOG_FILE=join(ROOT,_0x20fd2f(0x7b,-0x45)+_0x18cc4f(0x545,0x54c)),ALT_LOG_FILE=join(ROOT,_0x18cc4f(0x75b,0x6dd)+_0x18cc4f(0x3eb,0x3a3)+_0x18cc4f(0x65a,0x753)+_0x18cc4f(0x470,0x436)),DATA_LOG_FILE=join(DATA_DIR,_0x18cc4f(0x609,0x6dd)+_0x18cc4f(0x3b4,0x3a3)+_0x18cc4f(0x697,0x753)+'log'),logFile=existsSync(DATA_LOG_FILE)?DATA_LOG_FILE:existsSync(LOG_FILE)?LOG_FILE:existsSync(ALT_LOG_FILE)?ALT_LOG_FILE:null;if(!logFile){const RhsXWB=(_0x20fd2f(0x271,0x116)+_0x18cc4f(0x5fb,0x635)+_0x18cc4f(0x732,0x569))[_0x18cc4f(0x5d0,0x3df)]('|');let ZEMxqm=0xba7*-0x1+-0x1*-0x1d56+-0x11af;while(!![]){switch(RhsXWB[ZEMxqm++]){case'0':console[_0x20fd2f(0xf3,-0x49)](_0x18cc4f(0x2ef,0x4d2)+_0x18cc4f(0x2a8,0x413)+'\x20loca'+_0x20fd2f(0x2d4,0x255)+':');continue;case'1':console[_0x20fd2f(-0x33,-0x49)]('⬡\x20No\x20'+_0x18cc4f(0x672,0x4d3)+'ile\x20f'+_0x20fd2f(0x1e1,0x1ef));continue;case'2':console[_0x20fd2f(-0x143,-0x49)]('');continue;case'3':console[_0x20fd2f(0x181,-0x49)](_0x18cc4f(0x641,0x5ee)+'s\x20are'+_0x18cc4f(0x1d0,0x367)+'ted\x20w'+'hen\x20t'+_0x20fd2f(-0x176,-0x57)+'rver\x20'+_0x18cc4f(0x659,0x45f));continue;case'4':console[_0x18cc4f(0x3b0,0x436)](_0x20fd2f(0x2fd,0x169)+LOG_FILE);continue;case'5':console['log'](_0x20fd2f(0x2ac,0x218)+'rt\x20th'+_0x18cc4f(0x4e4,0x4ab)+_0x20fd2f(0x95,0x26a)+'irst:'+_0x20fd2f(0x273,0xb0)+'nk-ch'+'at\x20st'+_0x20fd2f(-0x8c,-0x95));continue;case'6':console['log'](_0x18cc4f(0x4b8,0x5e8)+ALT_LOG_FILE);continue;case'7':process[_0x18cc4f(0x492,0x5f8)](0x1151+0x10c*0x16+-0x2858);continue;}break;}}const lines=flags[_0x18cc4f(0x376,0x433)]||0x1c*-0x160+0x232a+0x388;try{const content=readFileSync(logFile,_0x18cc4f(0x644,0x4c3)),allLines=content[_0x18cc4f(0x23c,0x3df)]('\x0a'),tail=allLines[_0x18cc4f(0x555,0x572)](-lines)[_0x20fd2f(0x3d3,0x266)]('\x0a');console[_0x18cc4f(0x575,0x436)](_0x20fd2f(0x322,0x26b)+'wing\x20'+'last\x20'+lines+(_0x18cc4f(0x47b,0x5f3)+_0x20fd2f(0x301,0x1f1)+'m\x20')+logFile+'\x0a'),console[_0x20fd2f(-0x1fc,-0x49)](tail);}catch(_0x54bed3){console[_0x20fd2f(0xcb,0xba)](_0x18cc4f(0x395,0x586)+_0x20fd2f(0x3d,0x1d9)+_0x20fd2f(0x19e,0x298)+_0x18cc4f(0x575,0x3f9)+_0x18cc4f(0x5e7,0x4ce)+':\x20'+_0x54bed3[_0x20fd2f(0x27,0x154)+'ge']),process[_0x20fd2f(0x23f,0x179)](-0xc0b+-0xab7*-0x3+-0x1419);}console['log'](_0x18cc4f(0x580,0x67f)+_0x18cc4f(0x30d,0x49c)+_0x18cc4f(0x47f,0x63e)+_0x20fd2f(0x203,0xae)+_0x20fd2f(-0x37,0x4e)+_0x20fd2f(0x349,0x1c3)+_0x18cc4f(0x826,0x750)+_0x20fd2f(-0x259,-0xdd)+_0x18cc4f(0x57f,0x6aa)+'\x20stop'+')\x0a');const fsModule=await import('fs');let position=statSync(logFile)[_0x18cc4f(0x4e9,0x4fe)];const watcher=fsModule[_0x18cc4f(0x716,0x620)](logFile,()=>{const _0x28911f={'jjPiL':function(_0x31d38d,_0x330d0b){return _0x31d38d(_0x330d0b);},'XVllT':function(_0x444a2f,_0x588fcc,_0xe284a3){return _0x444a2f(_0x588fcc,_0xe284a3);},'YFMvI':'utf8','XhFFc':function(_0x5aacaf,_0x430441){return _0x5aacaf(_0x430441);},'DpbuZ':function(_0xc5f394,_0x2d7d93){return _0xc5f394(_0x2d7d93);},'yMtJZ':function(_0x16ad26,_0x192711){return _0x16ad26(_0x192711);},'AVCFV':_0xc9a515(0x37b,0x26a)+_0xc9a515(0x26b,0x29f),'xQILO':'not\x20f'+'ound\x20'+_0x107c16(0x3f0,0x3e8)+':\x20upl'+_0xc9a515(0x213,0x160)+_0x107c16(0x2ea,0x30d)+_0xc9a515(-0x113,0x1)+_0x107c16(0x404,0x351)+'it','wBkiy':_0xc9a515(0x257,0x14f)+_0xc9a515(0x3e8,0x327)+_0x107c16(0x289,0x35e)+'link.'+'..','qfMzr':function(_0x2460e8,_0x12ee6f,_0x3c5a73){return _0x2460e8(_0x12ee6f,_0x3c5a73);},'Fskpv':_0x107c16(0x509,0x419)+'k-cha'+_0x107c16(0x283,0x37b)+_0x107c16(0x579,0x5af)+_0x107c16(0x533,0x4ea)+'h','ATODb':_0x107c16(0x3d4,0x31d)+'it','ceYmL':_0x107c16(0x75b,0x649)+'o-res'+_0x107c16(0x646,0x572)+_0x107c16(0x56f,0x540)+_0xc9a515(-0x106,-0x9a)+_0xc9a515(0x152,-0xc)+_0x107c16(0x5b0,0x6b6)+_0x107c16(0x54a,0x523)+'th:\x20u'+_0x107c16(0x461,0x3db)+_0xc9a515(-0xb,0x1b)+_0x107c16(0x2f9,0x386)+'t','LmMnW':_0xc9a515(0xca,-0x6c),'DjKTF':function(_0x328a42,_0x3d0313){return _0x328a42>_0x3d0313;},'pmsNP':function(_0xf3e065,_0xcd978c){return _0xf3e065!==_0xcd978c;},'xUudH':_0xc9a515(0x17b,0x4b),'AAFgu':_0xc9a515(0x1a2,0xe4),'IaJaJ':function(_0x24843c,_0x34b933){return _0x24843c<_0x34b933;},'USERF':'rgLPu'};function _0xc9a515(_0x5e588b,_0x223f7a){return _0x20fd2f(_0x5e588b,_0x223f7a-0x5e);}function _0x107c16(_0x37e2ac,_0x3b8f3a){return _0x20fd2f(_0x37e2ac,_0x3b8f3a-0x418);}try{if(_0x28911f[_0x107c16(0x569,0x5b2)]===_0x28911f[_0xc9a515(0x33e,0x1f8)]){const _0x25e058=fsModule[_0x107c16(0x172,0x2f6)+_0xc9a515(-0x1b3,-0x21)](logFile,'r'),_0x32c52b=fsModule['fstat'+_0x107c16(0x522,0x4d4)](_0x25e058)[_0xc9a515(0x9d,0xdd)];if(_0x28911f[_0x107c16(0x47e,0x4b8)](_0x32c52b,position)){if(_0x28911f[_0xc9a515(0x374,0x195)](_0x28911f[_0xc9a515(0x89,0x13b)],_0x28911f[_0x107c16(0x3f8,0x30b)])){const _0x3e09d0=Buffer[_0x107c16(0x58f,0x5cf)](_0x32c52b-position);fsModule[_0x107c16(0x455,0x3e2)+_0xc9a515(-0x210,-0x21)](_0x25e058,_0x3e09d0,0x76*0x1c+-0x10bb+-0x1*-0x3d3,_0x3e09d0['lengt'+'h'],position),process[_0xc9a515(0x61,0x6d)+'t'][_0xc9a515(0x228,0x99)](_0x3e09d0['toStr'+_0xc9a515(-0x120,-0xb7)](_0x28911f[_0x107c16(0x490,0x40e)])),position=_0x32c52b;}else{if(!xndtFk['jjPiL'](_0x3a7399,_0x564847))return null;const _0x4853bf=_0x322072(xndtFk[_0xc9a515(0x105,-0x87)](_0x13ca95,_0x1cc6b4,xndtFk['YFMvI'])[_0x107c16(0x47a,0x5ae)](),-0x9*-0x2a7+-0xd9f*-0x1+0xc*-0x31f);if(xndtFk['XhFFc'](_0x55efc2,_0x4853bf)||!xndtFk[_0xc9a515(0x345,0x29b)](_0x353390,_0x4853bf)){try{xndtFk[_0xc9a515(0x2a9,0x208)](_0x192893,_0x3d9564);}catch{}return null;}return _0x4853bf;}}else _0x28911f['IaJaJ'](_0x32c52b,position)&&(_0x28911f[_0x107c16(0x144,0x31a)]==='boLGx'?_0x287555(_0x28911f[_0x107c16(0x69b,0x500)],_0x28911f[_0xc9a515(0x2b5,0x22d)]):position=-0x1*0x24c5+-0x191e+0x3de3);fsModule['close'+_0x107c16(0x466,0x4d4)](_0x25e058);}else{_0x53ea23[_0x107c16(0x29b,0x3cf)](xndtFk['wBkiy']);try{xndtFk[_0xc9a515(0x116,0x19d)](_0xba323f,xndtFk[_0x107c16(0x4e2,0x4c7)],{'stdio':xndtFk[_0x107c16(0x4fa,0x460)]});}catch{_0x21d8a8[_0x107c16(0x48c,0x3cf)](xndtFk[_0x107c16(0x5c3,0x5c1)]);}}}catch{}});process['on'](_0x18cc4f(0x6f3,0x6a8)+'T',()=>{watcher['close']();function _0x457f4f(_0x367564,_0x100fe5){return _0x18cc4f(_0x367564,_0x100fe5- -0x1e8);}process[_0x457f4f(0x5ef,0x410)](0x53*-0x3a+0xfe6+0x2e8);}),process['on'](_0x18cc4f(0x5d6,0x516)+'RM',()=>{function _0x1dc742(_0x3e3cd3,_0x4a9701){return _0x20fd2f(_0x4a9701,_0x3e3cd3-0x412);}function _0x2ebe1e(_0xe86f3a,_0x2846ea){return _0x20fd2f(_0xe86f3a,_0x2846ea-0x118);}watcher[_0x2ebe1e(-0x67,0x14e)](),process[_0x2ebe1e(0x308,0x291)](-0x21d6+-0x1b7f*-0x1+-0x657*-0x1);});}if(command===_0x18cc4f(0x619,0x5cf)+'g'){const ENV_FILE=existsSync(join(DATA_DIR,_0x18cc4f(0x5f7,0x6d9)))?join(DATA_DIR,'.env'):join(ROOT,_0x20fd2f(0x1cb,0x25a));flags[_0x18cc4f(0x624,0x4b7)]&&(console[_0x18cc4f(0x4c3,0x436)](ENV_FILE),process[_0x18cc4f(0x510,0x5f8)](0x3*0xce6+0x15c1*0x1+0x26b*-0x19));if(flags[_0x20fd2f(-0x20c,-0xb0)]){if(!existsSync(ENV_FILE)){const exampleFile=join(ROOT,_0x20fd2f(0xb1,0xbe)+_0x20fd2f(0x1b9,-0x1b)+'le');existsSync(exampleFile)?(writeFileSync(ENV_FILE,readFileSync(exampleFile,_0x20fd2f(0x14,0x44))),console[_0x20fd2f(-0x80,-0x49)](_0x18cc4f(0x413,0x406)+'ated\x20'+_0x20fd2f(0x1e7,0x20c)+_0x18cc4f(0x51f,0x706)+'.env.'+'examp'+'le')):(writeFileSync(ENV_FILE,_0x18cc4f(0x78e,0x678)+_0x20fd2f(-0xe6,0x10c)+_0x18cc4f(0x5cc,0x422)+_0x20fd2f(0x1e3,0x211)+_0x20fd2f(0x33,-0x62)),console['log'](_0x18cc4f(0x323,0x406)+_0x20fd2f(0x193,0x296)+_0x18cc4f(0x6dc,0x5ef)+_0x20fd2f(-0x9a,0xad)+_0x18cc4f(0x538,0x4ce)));}const editor=process.env.EDITOR||(process[_0x20fd2f(0x6,0xfd)+_0x20fd2f(-0x1c,0x92)]===_0x20fd2f(-0xc9,0xaa)?_0x20fd2f(-0x159,-0xa6)+'ad':'nano');console[_0x20fd2f(-0x125,-0x49)](_0x18cc4f(0x74f,0x5a2)+_0x18cc4f(0x421,0x597)+ENV_FILE+'\x20in\x20'+editor+_0x20fd2f(0x26c,0x24a));try{const _0x25e5cc={};_0x25e5cc[_0x20fd2f(-0x4e,0x176)]=_0x20fd2f(-0x115,-0xfb)+'it',execSync(editor+'\x20\x22'+ENV_FILE+'\x22',_0x25e5cc);}catch(_0x5ee002){console[_0x20fd2f(0x14e,0xba)](_0x20fd2f(0x24f,0x107)+'led\x20t'+'o\x20ope'+'n\x20edi'+'tor:\x20'+_0x5ee002['messa'+'ge']),console[_0x20fd2f(0x10a,0xba)](_0x18cc4f(0x5bd,0x478)+_0x18cc4f(0x401,0x545)+'OR\x20en'+_0x20fd2f(0x266,0x219)+_0x20fd2f(-0x9d,-0x87)+_0x18cc4f(0x6ee,0x68f)+_0x20fd2f(0x317,0x29e)+_0x18cc4f(0x58b,0x42f)+ENV_FILE),process[_0x20fd2f(0x2e7,0x179)](-0x2*-0x4a8+0x1*-0x891+0x2*-0x5f);}process[_0x20fd2f(0x291,0x179)](0x21cb*0x1+-0x680+-0x1b4b);}!existsSync(ENV_FILE)&&(console[_0x18cc4f(0x3b9,0x436)](_0x20fd2f(0x434,0x27f)+_0x20fd2f(0x322,0x20c)+'file\x20'+_0x18cc4f(0x8c2,0x70e)+'.'),console['log'](_0x18cc4f(0x512,0x378)+_0x18cc4f(0x7df,0x719)+_0x20fd2f(0x50,0x5c)+_0x20fd2f(0x59,0x234)+_0x18cc4f(0x43c,0x442)+_0x20fd2f(0x92,-0x43)+_0x20fd2f(0x7,-0x25)+'ig\x20--'+_0x18cc4f(0x2f7,0x3cf)),console['log'](_0x20fd2f(0x4a5,0x2cf)+'copy\x20'+'the\x20e'+_0x20fd2f(-0x1d4,-0x23)+_0x20fd2f(0x13b,0x257)+_0x20fd2f(0x16c,0xad)+_0x20fd2f(0x350,0x239)+_0x18cc4f(0x74b,0x65a)+_0x18cc4f(0x5db,0x4b0)),process[_0x18cc4f(0x6cd,0x5f8)](0x1086+-0x11a7+-0x3a*-0x5));const SENSITIVE_KEYS=[_0x18cc4f(0x6b2,0x558),'KEY','SECRE'+'T',_0x20fd2f(-0x2a1,-0x113)+_0x20fd2f(0x19a,0x1a),_0x20fd2f(-0x2b0,-0xbe)+'NTIAL'];function maskValue(_0xd25382,_0x541837){const _0xfb73d7={};_0xfb73d7[_0x4d2aa2(-0x136,-0x8)]=function(_0xfdd056,_0x57f5ab){return _0xfdd056<=_0x57f5ab;},_0xfb73d7[_0x538110(0x3be,0x2bf)]=function(_0x8e8d91,_0x558bfc){return _0x8e8d91+_0x558bfc;};function _0x538110(_0x27c886,_0x10f4d1){return _0x20fd2f(_0x10f4d1,_0x27c886-0x2de);}_0xfb73d7[_0x4d2aa2(-0x10a,-0xe8)]=_0x4d2aa2(-0xe,-0x6c);function _0x4d2aa2(_0x1ae4bc,_0x785a08){return _0x20fd2f(_0x1ae4bc,_0x785a08-0x19);}const _0xee0440=_0xfb73d7,_0x2ceb0f=SENSITIVE_KEYS[_0x4d2aa2(-0x151,0x0)](_0x264379=>_0xd25382[_0x538110(0x4be,0x430)+_0x538110(0x2ef,0x179)+'e']()[_0x4d2aa2(0x40,0x93)+_0x4d2aa2(0x8c,0x21e)](_0x264379));if(!_0x2ceb0f||!_0x541837||_0xee0440[_0x538110(0x2bd,0x44e)](_0x541837['lengt'+'h'],0x1*0x23c5+0x379+-0x273a))return _0x541837;return _0xee0440[_0x538110(0x3be,0x20d)](_0x541837[_0x4d2aa2(-0x72,0x10c)](-0x300+-0x75*-0x9+0xf*-0x13,-0x301*0x2+-0xaea+0x8*0x21e),_0xee0440['loRjN']);}try{const content=readFileSync(ENV_FILE,'utf8'),entries=[];for(const line of content['split']('\x0a')){const trimmed=line[_0x20fd2f(0x1ba,0x196)]();if(!trimmed||trimmed[_0x18cc4f(0x4b4,0x6a4)+'sWith']('#'))continue;const eqIdx=trimmed['index'+'Of']('=');if(eqIdx===-(0xad5+-0x3*-0x3d9+0x3*-0x775))continue;const key=trimmed[_0x20fd2f(-0x95,0xf3)](-0x26*-0x7d+0x2*-0x17f+0x53*-0x30,eqIdx)[_0x20fd2f(0x65,0x196)](),val=trimmed[_0x18cc4f(0x704,0x572)](eqIdx+(0x251*0x10+-0x2f*0x1+0x8*-0x49c))['trim']();entries[_0x18cc4f(0x604,0x6c7)]([key,val]);}entries[_0x18cc4f(0x4b0,0x5b3)+'h']===0x1e69+-0x17*-0x175+-0x3fec*0x1&&(console[_0x18cc4f(0x3bb,0x436)]('⬡\x20.en'+_0x18cc4f(0x442,0x369)+_0x18cc4f(0x63c,0x471)+_0x18cc4f(0x597,0x5ef)+_0x18cc4f(0x71f,0x74f)+_0x18cc4f(0x66f,0x601)+_0x18cc4f(0x47e,0x581)+_0x20fd2f(-0x2c4,-0x10b)+'onfig'+_0x18cc4f(0x4fa,0x3b8)+'it'),process[_0x20fd2f(0x261,0x179)](-0x2502+0x25*0x1f+0x2087));const maxKeyLen=Math[_0x20fd2f(0x153,0x2bf)](...entries['map'](([_0x2c94e5])=>_0x2c94e5[_0x18cc4f(0x453,0x5b3)+'h']));console['log'](_0x20fd2f(0x239,0xd6)+_0x18cc4f(0x853,0x6e2)+'k\x20Con'+_0x18cc4f(0x8d2,0x6f9)+_0x20fd2f(0x2bd,0x15c)+'\x0a'),console['log']('\x20\x20'+_0x18cc4f(0x634,0x4df)['padEn'+'d'](maxKeyLen+(0xa1f+0x31*0x26+-0x1163*0x1))+_0x18cc4f(0x598,0x624)),console[_0x18cc4f(0x2b9,0x436)]('\x20\x20'+'─'[_0x20fd2f(0x1d2,0x2a8)+'t'](maxKeyLen+(0xcd5+-0xc1*-0x27+0x17*-0x1d6))+'─'[_0x20fd2f(0x136,0x2a8)+'t'](0x16*0x5f+0x157e+0x20*-0xec));for(const [key,val]of entries){const display=val?maskValue(key,val):'\x1b[90m'+_0x18cc4f(0x674,0x56b)+'y)\x1b[0'+'m';console[_0x20fd2f(-0x22b,-0x49)]('\x20\x20'+key[_0x20fd2f(0x36e,0x258)+'d'](maxKeyLen+(0x1288+0x426+0x2*-0xb56))+display);}console[_0x20fd2f(-0x3a,-0x49)](_0x18cc4f(0x546,0x732)+_0x20fd2f(0xf8,0xe3)+ENV_FILE+'\x0a');}catch(_0x95e330){console['error'](_0x20fd2f(-0x3,0x107)+'led\x20t'+_0x20fd2f(0x293,0x298)+_0x18cc4f(0x874,0x712)+_0x20fd2f(0x2a8,0x11d)+_0x95e330[_0x18cc4f(0x726,0x5d3)+'ge']),process[_0x18cc4f(0x4bb,0x5f8)](0x4af+-0x19c*-0x5+-0xcba);}process[_0x18cc4f(0x6bc,0x5f8)](-0x1074+-0x1302+0x2376);}if(command===_0x18cc4f(0x4fd,0x4b4)+'r'){const require=createRequire(import.meta.url),pkg=require(join(ROOT,_0x18cc4f(0x3d7,0x55e)+_0x20fd2f(0x217,0x26d)+'on'));console[_0x20fd2f(0x19d,-0x49)](_0x18cc4f(0x484,0x555)+_0x20fd2f(0x1e2,0x263)+_0x20fd2f(0x246,0xf5)+_0x20fd2f(-0x4c,-0xd)+'\x20v'+pkg[_0x20fd2f(0x68,0x10a)+'on']+'\x0a');const results=[];function pass(_0x270700,_0x44a556){const _0x4c381f={};_0x4c381f[_0x52cf32(-0xa5,0x146)]=_0x52cf32(0xff,0x6d);const _0x4805b1=_0x4c381f,_0x534f6d={};function _0x57928e(_0x8e6d5f,_0x2f2977){return _0x20fd2f(_0x8e6d5f,_0x2f2977-0x28f);}_0x534f6d[_0x57928e(0x253,0x257)+'s']=_0x4805b1[_0x57928e(0x38c,0x4bb)];function _0x52cf32(_0x5d49af,_0x598e0){return _0x20fd2f(_0x5d49af,_0x598e0- -0xe6);}_0x534f6d[_0x52cf32(0x13e,0x2e)]=_0x270700,_0x534f6d[_0x52cf32(0x2d9,0xed)+'l']=_0x44a556,results[_0x57928e(0x31a,0x4d7)](_0x534f6d);}function fail(_0x19099f,_0xcbac70){const _0x46aa04={};function _0x5b4100(_0x4fb161,_0x394fa1){return _0x20fd2f(_0x394fa1,_0x4fb161- -0x1f6);}_0x46aa04[_0x982410(0x280,0x387)+'s']=_0x5b4100(-0x79,-0x1f5),_0x46aa04[_0x982410(0x358,0x4d3)]=_0x19099f,_0x46aa04[_0x5b4100(-0x23,-0x134)+'l']=_0xcbac70;function _0x982410(_0x26c2ec,_0x5449e6){return _0x20fd2f(_0x26c2ec,_0x5449e6-0x3bf);}results[_0x982410(0x7ea,0x607)](_0x46aa04);}function warn(_0x2d5665,_0x87514f){function _0x29162d(_0x3d151b,_0x28bbc5){return _0x20fd2f(_0x28bbc5,_0x3d151b-0x4c8);}const _0x2ed70b={};_0x2ed70b[_0x10bfc6(-0x22b,-0x3cb)]=_0x10bfc6(0x7,-0x143);const _0x271aa4=_0x2ed70b,_0x49ed8c={};function _0x10bfc6(_0x4d403e,_0x222912){return _0x20fd2f(_0x222912,_0x4d403e- -0x159);}_0x49ed8c[_0x29162d(0x490,0x2d3)+'s']=_0x271aa4[_0x10bfc6(-0x22b,-0x200)],_0x49ed8c[_0x10bfc6(-0x45,-0x74)]=_0x2d5665,_0x49ed8c['detai'+'l']=_0x87514f,results[_0x10bfc6(0xef,0x182)](_0x49ed8c);}const nodeVer=process[_0x20fd2f(-0x2e,0x10a)+_0x18cc4f(0x5f2,0x61c)][_0x18cc4f(0x396,0x41c)],nodeMajor=parseInt(nodeVer[_0x18cc4f(0x2af,0x3df)]('.')[-0x2b*-0xbf+-0x1460+-0xbb5],-0x1572+0x13d*-0x15+-0x2f7d*-0x1);nodeMajor>=0x1*-0x18eb+0x1*0x677+0x1286?pass(_0x18cc4f(0x5f3,0x702)+'js\x20ve'+'rsion','v'+nodeVer+(_0x20fd2f(0x16,0x13c)+_0x18cc4f(0x473,0x47f)+_0x20fd2f(0xc1,0x117)+'d)')):fail(_0x20fd2f(0x15e,0x283)+'js\x20ve'+'rsion','v'+nodeVer+(_0x18cc4f(0x5bc,0x643)+_0x20fd2f(-0x69,-0x69)+_0x18cc4f(0x680,0x498)+_0x20fd2f(0x7e,0x3d)+_0x18cc4f(0x385,0x460)+_0x20fd2f(-0x1f3,-0xab)));const ENV_FILE=existsSync(join(DATA_DIR,'.env'))?join(DATA_DIR,_0x20fd2f(0x1b0,0x25a)):join(ROOT,'.env');let envPort=-0x11fc+0x1ff7+-0x7b,envGatewayUrl=_0x18cc4f(0x63f,0x6bd)+_0x18cc4f(0x250,0x3a5)+_0x18cc4f(0x62d,0x54d)+_0x20fd2f(0x41,-0x2d)+'89',envGatewayToken='',envOpenAIKey='',envElevenLabsKey='';if(existsSync(ENV_FILE))try{const content=readFileSync(ENV_FILE,_0x20fd2f(0xcf,0x44));for(const line of content[_0x18cc4f(0x449,0x3df)]('\x0a')){const t=line[_0x18cc4f(0x4d0,0x615)]();if(!t||t['start'+_0x20fd2f(0x1e8,0x4b)]('#'))continue;const eqIdx=t[_0x18cc4f(0x239,0x3c7)+'Of']('=');if(eqIdx===-(-0x7a4+-0xfb2*-0x1+-0x80d))continue;const k=t[_0x20fd2f(0x27f,0xf3)](0x4*-0x1e0+0x1ea8+-0xf7*0x18,eqIdx)[_0x18cc4f(0x511,0x615)](),v=t[_0x20fd2f(0x2b1,0xf3)](eqIdx+(-0x7e5*0x1+-0x23c9*0x1+0x2baf))['trim']();if(k===_0x18cc4f(0x80f,0x74a))envPort=parseInt(v,-0x19eb*0x1+-0x7a5+0x219a)||0x1f99*-0x1+-0x3*-0x87c+0x13a5*0x1;if(k===_0x18cc4f(0x2ab,0x38a)+_0x18cc4f(0x5ed,0x440)+'L')envGatewayUrl=v;if(k===_0x18cc4f(0x554,0x38a)+_0x20fd2f(0x17b,0x18e)+_0x18cc4f(0x266,0x3b4))envGatewayToken=v;if(k==='OPENA'+_0x20fd2f(-0x1ee,-0xf7)+'_KEY')envOpenAIKey=v;if(k===_0x18cc4f(0x644,0x57f)+_0x20fd2f(0x112,0x16)+_0x20fd2f(0xe1,0x80)+_0x18cc4f(0x3ce,0x515))envElevenLabsKey=v;}}catch{}const portAvailable=await new Promise(_0x443680=>{const _0x3e75d6={'tIatG':function(_0xfb6987,_0x5d6daa){return _0xfb6987!==_0x5d6daa;},'uowjB':'nHxKb','kLDIl':function(_0xaf210,_0x135d09){return _0xaf210===_0x135d09;},'BzMMq':function(_0x979187,_0x16700d){return _0x979187(_0x16700d);},'NsqAX':'\x0a⬡\x20Up'+_0x5124e2(0x357,0x20e)+_0x5124e2(0x384,0x25c)+'d:','AJheu':_0x5124e2(0x222,0x29d)+_0x209d40(0x3fd,0x59f)+_0x5124e2(0x18f,-0x5f)+_0x209d40(0x19b,0x246)+'...','AVyCL':_0x209d40(0xdd,0x2b2)+'it','GplEY':_0x5124e2(0x400,0x30e),'Qehhs':function(_0x46514e,_0x30c560){return _0x46514e(_0x30c560);},'xzSIg':_0x5124e2(0x316,0x21f),'bKibM':_0x209d40(0x365,0x44b)+_0x209d40(0x356,0x3d9),'OMuxW':_0x5124e2(0x4c5,0x463)+_0x209d40(0x3be,0x3b0)},_0x2e2ce1=_0x16ff8b[_0x5124e2(0x41e,0x4ce)+'eServ'+'er']();_0x2e2ce1['once'](_0x3e75d6[_0x5124e2(0x314,0x3a1)],_0x11b25a=>{function _0x29d826(_0x3782e7,_0x3b23ff){return _0x5124e2(_0x3782e7- -0x3a5,_0x3b23ff);}function _0x12210d(_0x628ab5,_0x14d726){return _0x5124e2(_0x628ab5-0xe1,_0x14d726);}if(_0x3e75d6[_0x12210d(0x329,0x13b)](_0x29d826(-0x265,-0x2e9),_0x3e75d6['uowjB'])){if(_0x3e75d6['kLDIl'](_0x11b25a[_0x12210d(0x4a2,0x401)],_0x29d826(-0x106,-0x300)+_0x29d826(-0x20a,-0x3fc)))_0x3e75d6[_0x12210d(0x5f9,0x657)](_0x443680,![]);else _0x443680(!![]);}else try{_0x45ac52[_0x29d826(-0x15b,-0xf5)](_0x3dcf2f,_0x29d826(-0xb2,-0x203)+'RM'),_0x50401d[_0x12210d(0x2f4,0x19d)](_0x12210d(0x3ac,0x1cf)+_0x12210d(0x4a3,0x562)+_0x29d826(0xfd,0xa0)+_0x29d826(0x107,0x1c7)+'\x20(PID'+'\x20'+_0x3ebb66+')');}catch{}}),_0x2e2ce1[_0x5124e2(0x3c7,0x25a)](_0x3e75d6[_0x5124e2(0x2e5,0x2bd)],()=>{function _0x483fe1(_0x1debff,_0x53037c){return _0x209d40(_0x53037c- -0x102,_0x1debff);}const _0x485693={'wpeQJ':_0x3e75d6[_0x4bceb1(0x60a,0x6e6)],'bTqEi':_0x483fe1(0xc3,0xde)+_0x4bceb1(0x5a6,0x64f)+_0x483fe1(0x37b,0x1e4)+_0x483fe1(0x370,0x374)+_0x4bceb1(0x6ce,0x6a0)+_0x4bceb1(0x467,0x310)+_0x483fe1(-0x2b,0x1d1)+_0x483fe1(0x34a,0x2b0)+_0x483fe1(0x2e0,0x1ba)+_0x483fe1(0x345,0x315)+_0x4bceb1(0x622,0x5d3)+_0x483fe1(0x22c,0x345)+'at','aVFxK':_0x3e75d6[_0x4bceb1(0x620,0x735)],'FaOgr':function(_0x25a687,_0x893eb9,_0x3e528b){return _0x25a687(_0x893eb9,_0x3e528b);},'DyYKi':_0x4bceb1(0x4f1,0x54d)+_0x483fe1(-0x37,-0x4a)+_0x4bceb1(0x453,0x4f1)+_0x4bceb1(0x687,0x507)+_0x483fe1(0x373,0x1a8)+'h','WiAYS':_0x3e75d6['AVyCL']};function _0x4bceb1(_0x152e07,_0x5ad814){return _0x209d40(_0x152e07-0x318,_0x5ad814);}_0x3e75d6[_0x483fe1(-0x4e,-0x32)](_0x3e75d6[_0x4bceb1(0x6e4,0x57b)],_0x483fe1(0x26b,0x3a8))?(_0x157293['error'](HHRuNT[_0x4bceb1(0x3f7,0x449)],_0x1246ad[_0x483fe1(0x292,0x22a)+'ge']),_0x2ab820[_0x483fe1(0x31,0x190)](HHRuNT[_0x483fe1(0x131,0x170)]),_0x39aa60&&(_0x310576[_0x483fe1(0xd2,0x8d)](HHRuNT[_0x483fe1(0x151,0x25a)]),HHRuNT[_0x483fe1(0x367,0x2d3)](_0x19ce53,HHRuNT['DyYKi'],{'stdio':HHRuNT['WiAYS']})),_0x285818[_0x483fe1(0x400,0x24f)](-0x22a1+0x39*-0x71+0x3bcb)):(_0x2e2ce1['close'](),_0x3e75d6[_0x483fe1(0x1c9,0xac)](_0x443680,!![]));});function _0x5124e2(_0x3cbcba,_0x3a746){return _0x18cc4f(_0x3a746,_0x3cbcba- -0x223);}function _0x209d40(_0x21a04c,_0x4f6212){return _0x18cc4f(_0x4f6212,_0x21a04c- -0x2a7);}_0x2e2ce1['liste'+'n'](envPort,_0x3e75d6[_0x5124e2(0x2cc,0x14d)]);}),serverRunning=!!(getWatchdogPid()||getPid());portAvailable?serverRunning?pass(_0x20fd2f(-0x164,-0x6e)+envPort,_0x18cc4f(0x33b,0x512)+'able\x20'+_0x18cc4f(0x4eb,0x456)+_0x18cc4f(0x756,0x694)+_0x18cc4f(0x5b2,0x654)+_0x20fd2f(-0x94,0x159)+_0x18cc4f(0x7ce,0x683)+_0x18cc4f(0x764,0x62e)):pass(_0x20fd2f(-0x168,-0x6e)+envPort,_0x18cc4f(0x4c9,0x512)+_0x18cc4f(0x69f,0x6ce)):serverRunning?pass(_0x18cc4f(0x4d5,0x411)+envPort,_0x20fd2f(-0x7,-0xcf)+_0x18cc4f(0x4e3,0x44d)+_0x18cc4f(0x735,0x6e2)+'k'):fail(_0x20fd2f(-0x104,-0x6e)+envPort,_0x18cc4f(0x382,0x3b0)+_0x20fd2f(0x3d,-0x32)+_0x18cc4f(0x3a3,0x58f)+'er\x20pr'+_0x20fd2f(0x55,0x1fc));const gatewayReachable=await new Promise(_0x4eb2a4=>{function _0x9e8f35(_0xae567a,_0x4809a0){return _0x18cc4f(_0x4809a0,_0xae567a- -0x2a);}const _0x21def3={'CYsWs':function(_0xadaed8,_0x4951fa){return _0xadaed8(_0x4951fa);},'Cnemx':function(_0x41aa3f,_0x37cbab){return _0x41aa3f===_0x37cbab;},'LpRRD':_0x28e9a2(0x94,-0x106),'cQuJC':function(_0x588872,_0x5a19b7){return _0x588872+_0x5a19b7;},'diDQc':function(_0x71b83e,_0xac362c,_0x51fef7){return _0x71b83e(_0xac362c,_0x51fef7);},'jHRps':_0x28e9a2(-0x11f,-0xc4),'unleA':_0x28e9a2(-0xfa,-0x259),'GzPvn':_0x28e9a2(0xa4,0x212)};function _0x28e9a2(_0x2cfc85,_0x2d96a2){return _0x18cc4f(_0x2d96a2,_0x2cfc85- -0x495);}try{const _0x26f8ff=new URL(envGatewayUrl),_0x5c397c={};_0x5c397c['hostn'+_0x28e9a2(0x1ab,-0x1f)]=_0x26f8ff[_0x9e8f35(0x61a,0x4ee)+_0x28e9a2(0x1ab,0x278)],_0x5c397c[_0x9e8f35(0x6bd,0x7d3)]=_0x26f8ff[_0x28e9a2(0x252,0x58)]||0xb20+-0x1c0b+0x113b,_0x5c397c[_0x28e9a2(0x22,0xc)]='/',_0x5c397c['metho'+'d']=_0x21def3[_0x28e9a2(0xf,0x181)],_0x5c397c[_0x28e9a2(-0x57,0x74)+'ut']=0x1388;const _0x2f6914=_0x7c3987[_0x28e9a2(-0x25,-0x19f)+'st'](_0x5c397c,_0x1433b8=>{function _0x4e3efa(_0x42066c,_0x275661){return _0x28e9a2(_0x275661-0x516,_0x42066c);}_0x1433b8[_0x2fead6(0x29b,0x178)+'e']();function _0x2fead6(_0x26659d,_0x3eab9d){return _0x28e9a2(_0x26659d-0x2c7,_0x3eab9d);}_0x21def3[_0x2fead6(0x499,0x321)](_0x4eb2a4,!![]);});_0x2f6914['on'](_0x21def3[_0x28e9a2(0x13b,0x5e)],()=>_0x4eb2a4(![])),_0x2f6914['on'](_0x9e8f35(0x414,0x597)+'ut',()=>{const _0x54106c={'nOJgg':function(_0x13a7c1,_0x24f00a){function _0x7efc6b(_0x5c484e,_0x1a8567){return _0x3018(_0x1a8567- -0x2db,_0x5c484e);}return _0x21def3[_0x7efc6b(-0xa0,0x10c)](_0x13a7c1,_0x24f00a);},'JOKWE':_0x21def3[_0x6500c(0xe7,0xea)],'aYleG':function(_0x29e644,_0x2f9224){return _0x29e644+_0x2f9224;},'VvTfJ':function(_0x1ba81f,_0x3a8c36){return _0x21def3['cQuJC'](_0x1ba81f,_0x3a8c36);},'BkzPq':_0x6500c(0xd,0xea),'Chrfr':function(_0x550754,_0x5c47b9,_0x5a7221){return _0x21def3['diDQc'](_0x550754,_0x5c47b9,_0x5a7221);},'uZUgJ':function(_0x1bccbb,_0x2a611e,_0x2884fc){return _0x21def3['diDQc'](_0x1bccbb,_0x2a611e,_0x2884fc);}};function _0x6500c(_0x5a0225,_0x4e3eb6){return _0x9e8f35(_0x5a0225- -0x48c,_0x4e3eb6);}function _0x6f86be(_0x3997c0,_0x5b98b2){return _0x9e8f35(_0x5b98b2- -0x2f5,_0x3997c0);}if(_0x21def3['jHRps']===_0x6f86be(-0x172,0x57))_0x2f6914[_0x6f86be(0x84,0xe2)+'oy'](),_0x4eb2a4(![]);else{if(_0x54106c['nOJgg'](_0x516d16[_0x6f86be(0x41a,0x25d)+_0x6500c(0x5b,0x1f7)],_0x54106c[_0x6500c(0x247,0x37e)])){const _0x1a734f=_0xeeb584(_0x54106c['aYleG'](_0x54106c[_0x6f86be(-0x10c,0xd2)]('wmic\x20'+_0x6500c(-0xf0,-0x7e)+'aldis'+_0x6f86be(0x251,0x42d)+_0x6500c(0x2f,-0x165)+_0x6500c(0x1b5,0x2b0)+_0x6f86be(0x2b2,0x1b2),_0x32501f[_0x6f86be(0x2a0,0x31d)+'t'](0xfa1*0x2+-0x121*-0xb+-0x2bad)),_0x6f86be(0x162,0x29e)+'et\x20Fr'+_0x6500c(0x152,0x23a)+_0x6500c(-0x155,-0x285)+'alue'),{'encoding':_0x54106c[_0x6500c(-0x3,-0x93)]}),_0x158f60=_0x1a734f[_0x6f86be(0x9c,0x43)](/FreeSpace=(\d+)/);return _0x158f60?_0x12549d(_0x158f60[-0x5d*0x49+0x1bbc+-0x136],-0x65b*0x1+-0x85b+-0x1d8*-0x8):null;}else{const _0x35e189=_0x54106c[_0x6f86be(-0x9f,0xc4)](_0x184d14,_0x6500c(0x12d,0x51)+'\x20\x22'+_0x3d27de+(_0x6500c(0xaa,0x1c1)+'ail\x20-'+'1'),{'encoding':_0x54106c[_0x6f86be(0x334,0x194)]}),_0x25c9c8=_0x35e189['trim']()[_0x6500c(-0xd7,-0x249)](/\s+/);return _0x54106c[_0x6f86be(0x156,0xb2)](_0x4f2064,_0x25c9c8[-0xbdb+0xb*0x257+0x1*-0xddf],0x2f*0xbd+0xd3b*0x1+-0x2fe4)*(0x35e*-0xb+-0x1e91*0x1+-0x479b*-0x1);}}}),_0x2f6914[_0x28e9a2(0x1f2,0xc1)]();}catch{_0x4eb2a4(![]);}});gatewayReachable?pass(_0x20fd2f(-0xe8,0x98)+'ay\x20re'+'achab'+'le',envGatewayUrl):fail(_0x20fd2f(0xe2,0x98)+_0x18cc4f(0x439,0x626)+_0x20fd2f(0xeb,0x2a2)+'le',_0x18cc4f(0x62d,0x6dc)+_0x20fd2f(0x172,0x7e)+_0x20fd2f(-0x1c3,0xe)+envGatewayUrl);existsSync(join(ROOT,'node_'+_0x20fd2f(0x31b,0x224)+'es'))?pass(_0x20fd2f(-0x80,0x12d)+'denci'+_0x18cc4f(0x3a1,0x4ae)+'stall'+'ed',_0x18cc4f(0x500,0x565)+_0x20fd2f(0x198,0x224)+'es\x20ex'+_0x20fd2f(0x195,0x1ea)):fail(_0x20fd2f(0xce,0x12d)+_0x20fd2f(0x1b3,0x12e)+_0x20fd2f(0x50,0x2f)+_0x18cc4f(0x310,0x44b)+'ed',_0x20fd2f(-0x115,0xe6)+'modul'+'es\x20mi'+_0x18cc4f(0x1f7,0x3bc)+'\x20—\x20ru'+_0x20fd2f(-0x21b,-0x90)+'\x20inst'+'all');if(existsSync(ENV_FILE))try{readFileSync(ENV_FILE,_0x20fd2f(0x15,0x44)),pass('.env\x20'+'file',_0x20fd2f(0x7,-0x2f)+_0x18cc4f(0x535,0x409)+_0x20fd2f(0x30,0x1c9)+'able');}catch{fail(_0x18cc4f(0x4a2,0x68b)+_0x18cc4f(0x4c8,0x6c0),_0x20fd2f(0xec,-0x2f)+'s\x20but'+'\x20not\x20'+_0x18cc4f(0x784,0x66c)+_0x18cc4f(0x5a2,0x4b9));}else fail(_0x18cc4f(0x52e,0x68b)+_0x18cc4f(0x806,0x6c0),_0x18cc4f(0x5b9,0x4f6)+_0x20fd2f(0x3ec,0x20b)+_0x18cc4f(0x419,0x44f)+':\x20upl'+_0x20fd2f(0x126,0x102)+_0x20fd2f(0x51,-0x10b)+_0x18cc4f(0x536,0x422)+_0x20fd2f(-0x11c,-0xc7)+'it');envGatewayToken&&envGatewayToken!=='your_'+'token'+_0x18cc4f(0x394,0x42d)?pass(_0x18cc4f(0x67a,0x517)+_0x20fd2f(0x16c,0x286)+_0x18cc4f(0x737,0x657),'confi'+_0x18cc4f(0x5fd,0x53e)):fail(_0x18cc4f(0x436,0x517)+_0x20fd2f(0x36e,0x286)+'ken','not\x20s'+'et\x20in'+_0x20fd2f(0x57,0xad));if(envOpenAIKey||envElevenLabsKey){const providers=[];if(envOpenAIKey)providers[_0x20fd2f(0x38e,0x248)](_0x18cc4f(0x24d,0x437)+'I');if(envElevenLabsKey)providers[_0x18cc4f(0x5bf,0x6c7)]('Eleve'+_0x20fd2f(-0x1fe,-0xdb));pass(_0x18cc4f(0x332,0x501)+_0x18cc4f(0x52b,0x4cb)+'ys',providers[_0x18cc4f(0x5d2,0x6e5)](',\x20')+('\x20conf'+_0x20fd2f(0x1dc,0x101)+'d'));}else warn(_0x18cc4f(0x5c5,0x501)+'PI\x20ke'+'ys',_0x18cc4f(0x551,0x5e6)+_0x20fd2f(0x3d,0x24)+'or\x20El'+'evenL'+'abs\x20k'+_0x20fd2f(-0x1fa,-0x65)+_0x18cc4f(0x578,0x3f3)+_0x18cc4f(0x5f4,0x639)+_0x20fd2f(0xdf,0x2bb)+_0x20fd2f(0x254,0x195)+_0x18cc4f(0x44b,0x3c3)+_0x18cc4f(0x631,0x6d1));try{const freeBytes=((()=>{function _0x3bb808(_0x37edbb,_0x292ecd){return _0x18cc4f(_0x292ecd,_0x37edbb- -0x42);}function _0x394288(_0x24c418,_0x8fad0c){return _0x18cc4f(_0x8fad0c,_0x24c418- -0x2fd);}const _0x41a4b8={'HufGe':function(_0x26d17c,_0x5a08a7,_0x22401a){return _0x26d17c(_0x5a08a7,_0x22401a);},'kuIFY':_0x394288(0x1c6,0xe),'JhGhR':_0x3bb808(0x46d,0x406)+'e','SPMhD':function(_0x56e92b,_0x53341e){return _0x56e92b===_0x53341e;},'nTMwm':_0x3bb808(0x4e7,0x5dc),'OBlSq':function(_0x145592,_0x52b0fd){return _0x145592!==_0x52b0fd;},'iLPJR':_0x394288(0x272,0x3bc),'NLASW':function(_0x1c7139,_0x1f1cd5,_0x318161){return _0x1c7139(_0x1f1cd5,_0x318161);},'fAxfX':function(_0x2c1bb5,_0x1f0ff4){return _0x2c1bb5+_0x1f0ff4;},'XHgto':function(_0x168975,_0x2e596f){return _0x168975+_0x2e596f;},'GsOog':_0x394288(0x1eb,0x132)+_0x3bb808(0x384,0x374)+_0x3bb808(0x5d9,0x765)+'k\x20whe'+'re\x20\x22D'+'evice'+'ID=\x27','BChbx':_0x394288(0x2c0,0x255)+_0x3bb808(0x3c8,0x3bc)+_0x394288(0x30b,0x2de)+_0x3bb808(0x31f,0x21d)+_0x394288(0x1a5,0x30d),'bAqVe':function(_0x5263c3,_0x5e01d9,_0x274d4b){return _0x5263c3(_0x5e01d9,_0x274d4b);},'qbrmD':_0x3bb808(0x374,0x32e)};if(_0x41a4b8['SPMhD'](process[_0x3bb808(0x53a,0x684)+_0x394288(0x214,0xbd)],_0x41a4b8['nTMwm'])){if(_0x41a4b8[_0x3bb808(0x356,0x44d)](_0x394288(0x1a8,0x2a3),_0x41a4b8[_0x394288(0x44a,0x5c1)])){const _0x4e3aaa=_0x41a4b8[_0x3bb808(0x60d,0x695)](execSync,_0x41a4b8[_0x3bb808(0x6f2,0x646)](_0x41a4b8['XHgto'](_0x41a4b8[_0x394288(0x377,0x3fa)],ROOT[_0x394288(0x33f,0x4fd)+'t'](-0x1*0x118d+0x24a1*-0x1+0x362e)),_0x41a4b8[_0x394288(0x2a1,0x2e3)]),{'encoding':_0x41a4b8[_0x3bb808(0x401,0x2ea)]}),_0x1c55bd=_0x4e3aaa[_0x394288(0x65,0x51)](/FreeSpace=(\d+)/);return _0x1c55bd?_0x41a4b8['bAqVe'](parseInt,_0x1c55bd[0x39a+-0x294+-0x105],0xc3*-0x3+0x24a3+-0x2250):null;}else try{const _0x22e378=_0x1af8db[_0x3bb808(0x5b0,0x5f5)](_0x41a4b8[_0x3bb808(0x34c,0x17d)](_0x2a6fb6,_0x14dece,_0x41a4b8[_0x3bb808(0x401,0x577)]));if(_0x22e378['premi'+'um']||_0x22e378[_0x394288(0x2cd,0x3e2)+'umKey'])_0x10d218=_0x41a4b8[_0x3bb808(0x603,0x5ef)];}catch{}}else{if(_0x394288(0xcc,0x295)===_0x41a4b8['qbrmD']){const _0x3401d7={};_0x3401d7[_0x3bb808(0x640,0x681)+_0x394288(0x432,0x51e)]=!![],_0x3401d7['force']=!![],_0x2a2f13(_0x578fbf,_0x3401d7),_0x309943++,_0xdc8f4d['log']('\x20\x20✓\x20R'+_0x394288(0x2fd,0x342)+_0x394288(0x44c,0x3b4)+_0x3bb808(0x466,0x343)+'/'+_0x19fede);}else{const _0x34bdeb=_0x41a4b8[_0x3bb808(0x60d,0x4fc)](execSync,_0x3bb808(0x5a1,0x47b)+'\x20\x22'+ROOT+(_0x3bb808(0x51e,0x4cd)+'ail\x20-'+'1'),{'encoding':_0x41a4b8[_0x394288(0x146,0xbf)]}),_0x352602=_0x34bdeb[_0x3bb808(0x5d3,0x40e)]()[_0x394288(0xe2,0x69)](/\s+/);return parseInt(_0x352602[0x6d*0x3e+0x17d1*0x1+-0x3234],0x1416+-0x8e0*0x2+-0x54*0x7)*(0x81+-0x2*-0x1102+-0x1e85);}}})());if(freeBytes!==null){const freeMB=Math[_0x18cc4f(0x702,0x578)](freeBytes/((-0x383*-0x1+0x1c11+-0x6e5*0x4)*(-0x244e+-0x25*0xf4+-0x472*-0x11)));freeMB>=-0xb94*0x1+-0xd16+0xd4f*0x2?pass(_0x18cc4f(0x3a3,0x4d8)+_0x18cc4f(0x87f,0x738),freeMB+(_0x20fd2f(0xf5,0x5e)+_0x20fd2f(0x491,0x2a5))):warn(_0x18cc4f(0x448,0x4d8)+_0x18cc4f(0x64b,0x738),freeMB+(_0x18cc4f(0x348,0x4dd)+_0x20fd2f(0x367,0x294)+_0x20fd2f(0x405,0x232)+'\x20than'+_0x18cc4f(0x819,0x6d8)+'MB'));}}catch{warn(_0x20fd2f(0x1e3,0x59)+_0x18cc4f(0x764,0x738),_0x20fd2f(0x7d,-0x1c)+_0x20fd2f(-0x307,-0x123)+_0x20fd2f(0x1c7,0x20d)+_0x20fd2f(0x176,0xd3)+_0x20fd2f(0x1f2,0x190)+_0x20fd2f(0x12d,0x212)+_0x18cc4f(0x61d,0x738));}const _0x5cfce3={};_0x5cfce3[_0x18cc4f(0x72e,0x5d2)]=_0x20fd2f(0x99,-0xd0)+_0x20fd2f(0x3a,-0x2b),_0x5cfce3[_0x20fd2f(0x19b,0x17d)]=_0x18cc4f(0x4b8,0x55d)+_0x20fd2f(0x262,0x1ca),_0x5cfce3['warn']=_0x20fd2f(0x145,0x143)+_0x20fd2f(-0x2b,0x61);const icons=_0x5cfce3;for(const r of results){console['log']('\x20\x20'+icons[r['statu'+'s']]+'\x20'+r['label']+':\x20'+r[_0x18cc4f(0x822,0x652)+'l']);}const passes=results[_0x20fd2f(-0x38,-0x44)+'r'](_0x17945e=>_0x17945e[_0x18cc4f(0x4bf,0x447)+'s']===_0x18cc4f(0x59c,0x5d2))[_0x20fd2f(0x21b,0x134)+'h'],fails=results[_0x20fd2f(-0x38,-0x44)+'r'](_0x41d6e0=>_0x41d6e0[_0x18cc4f(0x50a,0x447)+'s']==='fail')[_0x18cc4f(0x3fb,0x5b3)+'h'],warns=results[_0x20fd2f(-0x197,-0x44)+'r'](_0x18a961=>_0x18a961[_0x20fd2f(0x16a,-0x38)+'s']===_0x18cc4f(0x3e4,0x5df))[_0x18cc4f(0x6f3,0x5b3)+'h'];console[_0x20fd2f(0x99,-0x49)](''),fails===0x8e0+-0x1*-0x97+-0x977*0x1?console[_0x18cc4f(0x495,0x436)](_0x20fd2f(0x1b1,0x1ff)+_0x18cc4f(0x38c,0x39d)+passes+(_0x18cc4f(0x4c4,0x3a6)+_0x18cc4f(0x590,0x704)+'ssed')+(warns?'\x20('+warns+(_0x18cc4f(0x729,0x592)+'ing')+(warns>0xff7+-0xebb*0x1+-0x5*0x3f?'s':'')+')':'')+'.'):console[_0x18cc4f(0x4cd,0x436)]('\x20\x20⬡\x20'+passes+('\x20pass'+_0x18cc4f(0x554,0x404))+fails+(_0x18cc4f(0x55c,0x439)+'ed')+(warns?',\x20'+warns+(_0x20fd2f(-0x36,0x113)+_0x18cc4f(0x468,0x36a))+(warns>0x22d8+-0xf8c+-0x134b?'s':''):'')+'.'),console[_0x18cc4f(0x381,0x436)](''),process[_0x20fd2f(0x108,0x179)](fails>-0x22e9+-0x7f*0x47+-0xbf*-0x5e?-0x102f+-0x11*0x161+0x27a1:-0x1dc9+0x19ea+0x1*0x3df);}if(command==='reset'){const {rmSync}=await import('fs');console[_0x18cc4f(0x44f,0x436)](_0x20fd2f(0x121,0xd6)+_0x18cc4f(0x773,0x6e2)+_0x18cc4f(0x272,0x3f4)+_0x20fd2f(-0xf9,-0x121)),console[_0x20fd2f(-0x1a0,-0x49)](_0x20fd2f(0x116,0x217)+_0x18cc4f(0x2cf,0x4be)+_0x20fd2f(-0x8d,-0xd7)+'ar:'),console[_0x20fd2f(-0x1d5,-0x49)](_0x18cc4f(0x1dc,0x3a0)+_0x18cc4f(0x653,0x67d)+_0x20fd2f(0x60,0xcf)+_0x18cc4f(0x6c0,0x514)+_0x20fd2f(0x327,0x1fb)+_0x20fd2f(0x417,0x2d5)+_0x20fd2f(0x9a,0x109)+_0x18cc4f(0x559,0x5c7)),console['log']('\x20\x20\x20\x20•'+_0x18cc4f(0x3fe,0x4d9)+_0x18cc4f(0x203,0x3cb)+_0x20fd2f(0x41d,0x226)+_0x18cc4f(0x39b,0x493)+_0x20fd2f(-0x8a,-0x66)+'\x20cach'+'e'),console['log'](_0x20fd2f(-0x2ba,-0xdf)+_0x18cc4f(0x5c3,0x6a0)+_0x18cc4f(0x43a,0x46e)+_0x20fd2f(0xfc,0x2d5)+_0x18cc4f(0x465,0x610)+'ue'),console[_0x20fd2f(-0x5,-0x49)](_0x20fd2f(-0x3a,-0xdf)+'\x20Push'+_0x18cc4f(0x618,0x5d1)+'cript'+'ions\x20'+_0x20fd2f(0x281,0x237)+_0x20fd2f(0x243,0xfa)+'ty\x20da'+'ta'),console[_0x20fd2f(-0x245,-0x49)](''),console['log'](_0x20fd2f(0x3a1,0x217)+_0x20fd2f(0x3c,0x3f)+_0x18cc4f(0x5e2,0x632)+_0x20fd2f(-0x6,0x56)+'r:'),console['log'](_0x20fd2f(-0x6e,-0xdf)+_0x18cc4f(0x548,0x52c)+_0x18cc4f(0x365,0x45a)+_0x18cc4f(0x6a4,0x6b7)+_0x20fd2f(-0x1db,-0x119)),console['log']('\x20\x20\x20\x20•'+_0x20fd2f(0x70,0x1bc)+_0x18cc4f(0x45d,0x5dc)+_0x20fd2f(0x2e4,0x125)),console[_0x20fd2f(0x103,-0x49)](_0x18cc4f(0x461,0x3a0)+_0x20fd2f(0x1b9,0x41)+_0x18cc4f(0x381,0x43a)+_0x20fd2f(-0x92,-0x7d)+_0x20fd2f(0x3dc,0x290));if(!flags['force']){const readline=await import(_0x20fd2f(0x3d,-0x5)+'ine'),_0x39c98b={};_0x39c98b['input']=process['stdin'],_0x39c98b[_0x20fd2f(0x116,0xb4)+'t']=process[_0x20fd2f(-0x1,0xf)+'t'];const rl=readline['creat'+_0x18cc4f(0x267,0x3ab)+'rface'](_0x39c98b),answer=await new Promise(_0x5d3b64=>{function _0x21f3ba(_0x35a28c,_0x348904){return _0x18cc4f(_0x35a28c,_0x348904- -0x5a3);}const _0x342086={};_0x342086[_0x21f3ba(0x126,0xd)]=_0x5a95ca(0x6f9,0x84c)+_0x5a95ca(0x72f,0x7e4)+'set\x22\x20'+'to\x20co'+_0x21f3ba(0x10a,0x14d)+':\x20';function _0x5a95ca(_0x51ff31,_0x33f7f0){return _0x18cc4f(_0x51ff31,_0x33f7f0-0x10f);}const _0x480542=_0x342086;rl[_0x5a95ca(0x5b2,0x5d7)+_0x21f3ba(-0x3a9,-0x1f2)](_0x480542['mpZxp'],_0x5d3b64);});rl[_0x20fd2f(0x6,0x36)](),answer[_0x18cc4f(0x7a5,0x615)]()[_0x18cc4f(0x62e,0x5a5)+_0x18cc4f(0x3f9,0x490)+'e']()!=='reset'&&(console[_0x18cc4f(0x533,0x436)](_0x20fd2f(-0xe7,0x6c)+_0x20fd2f(0x5d,0xe5)+_0x20fd2f(0x276,0x264)+_0x20fd2f(0xa7,-0xf0)+_0x20fd2f(-0x141,0xa)+_0x18cc4f(0x5ab,0x5c0)+'ved.\x0a'),process[_0x20fd2f(-0x82,0x179)](0x11*0x12+-0x245c+-0x1195*-0x2)),console['log']('');}const dataResets=[_0x20fd2f(0x2a1,0x154)+'ges-s'+_0x20fd2f(0x35c,0x171)+_0x18cc4f(0x771,0x6af),'activ'+_0x20fd2f(-0x260,-0x104)+'son',_0x20fd2f(0x22c,0x4d)+_0x18cc4f(0x777,0x5cd),_0x20fd2f(-0x7b,0x7c)+'d-con'+'versa'+_0x18cc4f(0x74d,0x6d4),_0x18cc4f(0x54b,0x396)+'ds','audio',_0x18cc4f(0x4fe,0x4c6)+_0x18cc4f(0x672,0x4a0)],rootResets=[_0x18cc4f(0x72d,0x5d3)+_0x18cc4f(0x31e,0x39c)+_0x20fd2f(0x241,0x171)+'son',_0x20fd2f(0x69,0x30)+_0x20fd2f(0x56,-0x104)+_0x18cc4f(0x4f7,0x6af),_0x20fd2f(0x1ea,0x4d)+_0x20fd2f(0xc3,0x14e),'share'+_0x20fd2f(-0x74,-0xc6)+_0x18cc4f(0x431,0x532)+'tions',_0x18cc4f(0x4c0,0x396)+'ds',_0x20fd2f(-0x1f2,-0xc2)+_0x18cc4f(0x792,0x699)+'io','misse'+_0x20fd2f(0x132,0x2ad)+'sages'+_0x18cc4f(0x4da,0x479),_0x20fd2f(0x115,-0xd5)+_0x20fd2f(0x2ff,0x242)+'ripti'+'ons.j'+_0x18cc4f(0x753,0x6af),_0x18cc4f(0x542,0x43a)+_0x20fd2f(0x252,0xcd),_0x20fd2f(0x407,0x25e)+'nk-se'+_0x20fd2f(0x1fd,0x2d4)+_0x20fd2f(-0x139,-0x49),_0x18cc4f(0x6c7,0x6dd)+_0x20fd2f(0xfa,0x1c0)+'tchdo'+_0x20fd2f(-0x1f4,-0x94)];let cleared=-0xe3d+0xb64+0x2d9;for(const item of dataResets){const fullPath=join(DATA_DIR,item);if(existsSync(fullPath))try{const _0x4ac34d={};_0x4ac34d[_0x18cc4f(0x6f2,0x682)+_0x18cc4f(0x853,0x72f)]=!![],_0x4ac34d['force']=!![],rmSync(fullPath,_0x4ac34d),cleared++,console['log'](_0x20fd2f(-0xb6,-0x53)+'emove'+_0x18cc4f(0x5dd,0x749)+_0x20fd2f(-0xd,0x29)+'/'+item);}catch(_0x2e0807){console[_0x20fd2f(-0x1c,0xba)](_0x18cc4f(0x4c0,0x5b9)+_0x20fd2f(0x10e,0x1a2)+_0x18cc4f(0x8e3,0x708)+_0x18cc4f(0x401,0x5fa)+_0x18cc4f(0x607,0x612)+_0x20fd2f(-0x7,0x1e5)+item+':\x20'+_0x2e0807['messa'+'ge']);}}for(const item of rootResets){const fullPath=join(ROOT,item);if(existsSync(fullPath))try{const _0x21e853={};_0x21e853[_0x20fd2f(0xf0,0x203)+'sive']=!![],_0x21e853[_0x20fd2f(-0x209,-0x8f)]=!![],rmSync(fullPath,_0x21e853),cleared++,console[_0x18cc4f(0x428,0x436)](_0x20fd2f(-0x5c,-0x53)+_0x18cc4f(0x455,0x5fa)+'d\x20'+item);}catch(_0x3e99bd){console['error'](_0x20fd2f(0x9d,0x13a)+_0x18cc4f(0x75b,0x621)+_0x20fd2f(0x402,0x289)+_0x20fd2f(0x1d3,0x17b)+'\x20'+item+':\x20'+_0x3e99bd[_0x20fd2f(0x261,0x154)+'ge']);}}cleared===0x14cb+-0xd3*0x19+-0x6*0x8?console[_0x18cc4f(0x537,0x436)](_0x18cc4f(0x72e,0x661)+_0x18cc4f(0x735,0x54b)+_0x20fd2f(0xe5,0x3)+_0x18cc4f(0x5d3,0x49e)+'\x20alre'+_0x18cc4f(0x6db,0x68e)+_0x20fd2f(0xc0,0x32)):console['log']('\x0a\x20\x20⬡\x20'+'Clear'+'ed\x20'+cleared+_0x18cc4f(0x448,0x633)+(cleared>-0x19f9*-0x1+-0xaf7+0x17*-0xa7?'s':'')+(_0x20fd2f(0x31a,0x23c)+'sh\x20st'+_0x18cc4f(0x77a,0x5cc))),console['log'](''),process['exit'](0xf69+-0x2607+0x169e);}function _0x3018(_0x2ea75f,_0x26d3df){_0x2ea75f=_0x2ea75f-(0xe*0x8f+0x1f37+0x1*-0x2649);const _0x272d97=_0x5787();let _0x210e43=_0x272d97[_0x2ea75f];return _0x210e43;}if(command===_0x20fd2f(-0x184,-0x56)){const require=createRequire(import.meta.url),pkg=require(join(ROOT,'packa'+_0x20fd2f(0x31c,0x26d)+'on')),ENV_FILE=existsSync(join(DATA_DIR,_0x20fd2f(0x273,0x25a)))?join(DATA_DIR,_0x18cc4f(0x5cc,0x6d9)):join(ROOT,_0x18cc4f(0x530,0x6d9));let envPort='3456',envHost=_0x18cc4f(0x523,0x432)+'.0',envGatewayUrl=_0x20fd2f(0x18d,0x23e)+_0x18cc4f(0x356,0x3a5)+_0x18cc4f(0x6c9,0x54d)+'1:187'+'89',envGatewayToken='';if(existsSync(ENV_FILE))try{const content=readFileSync(ENV_FILE,_0x20fd2f(0x216,0x44));for(const line of content['split']('\x0a')){const t=line[_0x20fd2f(0x115,0x196)]();if(!t||t['start'+_0x20fd2f(-0x117,0x4b)]('#'))continue;const eqIdx=t[_0x20fd2f(-0xfb,-0xb8)+'Of']('=');if(eqIdx===-(0x13*-0xf7+0x1065+0x1f1))continue;const k=t[_0x20fd2f(-0x41,0xf3)](0x31*0x87+0x9*0x2b+-0x48f*0x6,eqIdx)[_0x18cc4f(0x418,0x615)](),v=t['slice'](eqIdx+(-0x44f*-0x3+-0xdbb*-0x1+-0x1aa7))[_0x20fd2f(0x378,0x196)]();if(k===_0x20fd2f(0x418,0x2cb))envPort=v||'3456';if(k===_0x20fd2f(0x124,0x2c6)+'K_HOS'+'T'||k===_0x18cc4f(0x637,0x627))envHost=v||_0x18cc4f(0x2cf,0x432)+'.0';if(k==='GATEW'+_0x20fd2f(-0x1e0,-0x3f)+'L')envGatewayUrl=v;if(k===_0x18cc4f(0x34e,0x38a)+_0x20fd2f(0x64,0x18e)+_0x18cc4f(0x58a,0x3b4))envGatewayToken=v;}}catch{}const watchdogPid=getWatchdogPid(),serverPid=getPid(),isServerRunning=!!(watchdogPid||serverPid),serverStatus=isServerRunning?'\x1b[32m'+_0x18cc4f(0x7bf,0x5e0)+_0x18cc4f(0x852,0x723)+_0x18cc4f(0x36d,0x4c5)+'D\x20'+(watchdogPid||serverPid)+')':_0x20fd2f(0x27a,0xde)+'stopp'+_0x18cc4f(0x327,0x459)+'m',gwReachable=await new Promise(_0x325726=>{function _0x451a3c(_0x3c7d58,_0x5cd05e){return _0x20fd2f(_0x5cd05e,_0x3c7d58-0x149);}function _0x5b5484(_0x72c86e,_0x9bda88){return _0x20fd2f(_0x9bda88,_0x72c86e-0x3e9);}const _0xe246f9={'UKZmy':'⬡\x20Aut'+_0x5b5484(0x345,0x1ac)+'tart\x20'+_0x451a3c(0x271,0x238)+_0x5b5484(0x2f1,0x49a)+'art\x20m'+_0x5b5484(0x687,0x7fd)+_0x451a3c(0x254,0xe4)+'th:\x20u'+_0x451a3c(0x10c,-0xa9)+_0x451a3c(0x106,0x13d)+'\x20star'+'t','VgXIa':function(_0x514ee7,_0x2d9ef6){return _0x514ee7!==_0x2d9ef6;},'yWcWm':'Djutr','oeREl':function(_0xb8d754){return _0xb8d754();},'LMVAU':'⬡\x20Upl'+_0x5b5484(0x544,0x589)+_0x5b5484(0x584,0x4ed)+'\x20runn'+_0x451a3c(0x2e7,0x1ff),'syuCB':function(_0x3dfad7,_0x2830de){return _0x3dfad7!==_0x2830de;},'peJhK':_0x5b5484(0x50d,0x69f),'OGRPA':_0x451a3c(0x203,0x29f),'nGIDS':_0x451a3c(0x108,0x2e0)+'ut','QzhQq':'xGMAU','IOHRf':function(_0x33b193,_0x54129e){return _0x33b193(_0x54129e);}};try{if(_0xe246f9[_0x5b5484(0x5ea,0x5d6)](_0xe246f9[_0x451a3c(0x2b3,0x495)],_0x451a3c(0x13d,-0x54))){const _0x4ad0c1=new URL(envGatewayUrl),_0x10252c={};_0x10252c[_0x5b5484(0x5ae,0x586)+'ame']=_0x4ad0c1['hostn'+_0x5b5484(0x5aa,0x787)],_0x10252c[_0x451a3c(0x3b1,0x2af)]=_0x4ad0c1[_0x451a3c(0x3b1,0x454)]||-0x1*0x20d2+-0xac*0x29+-0x3cae*-0x1,_0x10252c[_0x5b5484(0x421,0x374)]='/',_0x10252c['metho'+'d']='GET',_0x10252c[_0x451a3c(0x108,-0xc5)+'ut']=0xbb8;const _0x5eacd4=_0x7c3987['reque'+'st'](_0x10252c,_0x5ec34d=>{function _0x50e215(_0x41d593,_0x4f2b09){return _0x5b5484(_0x41d593- -0x4b2,_0x4f2b09);}function _0x45801c(_0x50f942,_0x51ed09){return _0x5b5484(_0x51ed09- -0x14e,_0x50f942);}_0xe246f9[_0x50e215(-0x117,0x9c)](_0xe246f9[_0x50e215(-0x74,-0x9a)],_0xe246f9[_0x45801c(0x466,0x2f0)])?_0x15db8e['log'](vqaaYm[_0x50e215(-0x28,-0x6f)]):(_0x5ec34d['resum'+'e'](),_0x325726(!![]));});_0x5eacd4['on'](_0xe246f9[_0x451a3c(0x328,0x254)],()=>_0x325726(![])),_0x5eacd4['on'](_0xe246f9[_0x5b5484(0x596,0x709)],()=>{_0x5eacd4[_0xfe9ca(0x152,0x300)+'oy']();function _0xfe9ca(_0x175bc2,_0x474736){return _0x451a3c(_0x474736-0x235,_0x175bc2);}_0x325726(![]);}),_0x5eacd4[_0x5b5484(0x5f1,0x799)]();}else{const _0x2884f0=vqaaYm['oeREl'](_0x1f43cd);_0x2884f0?_0xe46ff7[_0x5b5484(0x3a0,0x445)]('⬡\x20Upl'+_0x451a3c(0x2a4,0x240)+_0x451a3c(0x63,0x12c)+_0x451a3c(0x261,0x1d4)+_0x5b5484(0x5e0,0x625)+_0x2884f0+').'):_0x23b0ea[_0x5b5484(0x3a0,0x570)](vqaaYm[_0x5b5484(0x557,0x54e)]);}}catch{_0xe246f9['QzhQq']===_0xe246f9[_0x5b5484(0x62e,0x713)]?_0xe246f9['IOHRf'](_0x325726,![]):(_0xd3ad4a[_0x451a3c(0x203,0x1d)](_0x5b5484(0x4f0,0x3c5)+_0x5b5484(0x5c2,0x658)+_0x5b5484(0x2db,0x34f)+_0x451a3c(0x1ec,0x369)+_0x451a3c(0xa6,0x78)+_0x451a3c(0x154,0x2b9)+_0x118caf+'):',_0x4c2432['messa'+'ge']),_0x584e52[_0x5b5484(0x562,0x74a)](-0xa60*-0x3+-0x2139+-0x21a*-0x1));}}),gwStatus=gwReachable?envGatewayUrl+(_0x18cc4f(0x790,0x606)+_0x18cc4f(0x3cf,0x3a1)+'necte'+_0x20fd2f(-0x1ee,-0x61)+'m'):envGatewayUrl+(_0x20fd2f(0x19f,0xa9)+_0x20fd2f(0x1c1,0x2a6)+_0x18cc4f(0x20e,0x3e0)+'ble)\x1b'+_0x20fd2f(-0x133,0x2a)),LOG_FILE=join(ROOT,'serve'+'r.log'),ALT_LOG_FILE=join(ROOT,_0x20fd2f(0x25d,0x25e)+_0x18cc4f(0x498,0x3a3)+'rver.'+_0x20fd2f(-0x1c4,-0x49)),logFile=existsSync(LOG_FILE)?LOG_FILE:existsSync(ALT_LOG_FILE)?ALT_LOG_FILE:_0x20fd2f(0x1fb,0x22d)+')',premiumFile=join(ROOT,_0x18cc4f(0x470,0x43a)+'r','premi'+'um');let premiumStatus='not\x20d'+_0x18cc4f(0x3ef,0x391)+'ed';existsSync(premiumFile)&&(premiumStatus='insta'+'lled');const configFile=join(ROOT,_0x20fd2f(-0x4b,0x150)+_0x18cc4f(0x51f,0x646)+'n');if(existsSync(configFile))try{const cfg=JSON[_0x20fd2f(0x350,0x173)](readFileSync(configFile,_0x18cc4f(0x61d,0x4c3)));if(cfg[_0x20fd2f(0x1e5,0x14b)+'um']||cfg['premi'+'umKey'])premiumStatus=_0x20fd2f(-0x103,0x30)+'e';}catch{}console[_0x20fd2f(0xb1,-0x49)](_0x18cc4f(0x443,0x555)+_0x20fd2f(0x2d8,0x263)+_0x20fd2f(0x128,0x157)+_0x18cc4f(0x3c3,0x4e2)+'Versi'+'on:\x20\x20'+_0x20fd2f(-0x6a,-0x78)+pkg[_0x18cc4f(0x3b0,0x589)+'on']+(_0x18cc4f(0x5aa,0x68d)+'de.js'+_0x18cc4f(0x913,0x755)+'\x20\x20v')+process[_0x18cc4f(0x70d,0x589)+'ons'][_0x18cc4f(0x321,0x41c)]+(_0x18cc4f(0x3aa,0x4bb)+'rt:\x20\x20'+'\x20\x20\x20\x20\x20'+'\x20\x20')+envPort+(_0x18cc4f(0x79c,0x5a0)+'st:\x20\x20'+_0x20fd2f(0x13b,0x18f)+'\x20\x20')+envHost+(_0x20fd2f(-0x174,-0xa7)+_0x18cc4f(0x844,0x71e)+_0x18cc4f(0x7e1,0x60e)+'\x20\x20')+serverStatus+(_0x20fd2f(0x1ab,0xfe)+_0x20fd2f(0x137,0x26e)+_0x18cc4f(0x791,0x755)+'\x20\x20')+gwStatus+(_0x18cc4f(0x5ce,0x534)+'ta\x20di'+_0x18cc4f(0x278,0x417)+'\x20\x20')+DATA_DIR+(_0x18cc4f(0x72b,0x731)+'g\x20fil'+_0x20fd2f(0x1ed,0x1f8)+'\x20\x20')+logFile+('\x0a\x20\x20Pr'+_0x18cc4f(0x903,0x74b)+_0x20fd2f(0x131,0x2d6)+'\x20\x20')+premiumStatus+('\x0a\x20\x20In'+_0x18cc4f(0x5c2,0x44b)+'ed:\x20\x20'+'\x20\x20')+ROOT+_0x20fd2f(-0xe5,0xfc)),process[_0x18cc4f(0x44d,0x5f8)](0xe7d+0x1*0x3df+-0x2f*0x64);}const ALL_COMMANDS=[_0x18cc4f(0x24a,0x40f),_0x20fd2f(-0x1ff,-0x38)+'s',_0x18cc4f(0x636,0x716)+'e',_0x20fd2f(0x2c2,0x1b9)+'tall',_0x20fd2f(0x23,-0xe8),_0x20fd2f(0x16d,0x150)+'g',_0x20fd2f(0x190,0x35)+'r',_0x20fd2f(-0x43,0x76),_0x20fd2f(-0x1a,-0x56)];if(command===_0x20fd2f(0x2e2,0x225)||!ALL_COMMANDS['inclu'+'des'](command)){const existingWatchdog=getWatchdogPid(),existingPid=getPid();if(existingWatchdog||existingPid){const pid=existingWatchdog||existingPid,mode=existingWatchdog?_0x20fd2f(0x98,0x1a1)+_0x20fd2f(-0x19,-0xe1):_0x20fd2f(0x11c,0x1eb)+'t';console[_0x20fd2f(-0xbf,-0x49)](_0x20fd2f(0x26b,0x163)+_0x18cc4f(0x447,0x5da)+_0x18cc4f(0x555,0x720)+_0x20fd2f(0x1ae,0x14a)+_0x18cc4f(0x481,0x5e0)+_0x20fd2f(0x11,0xca)+mode+(_0x20fd2f(0x180,0xf7)+'\x20')+pid+').'),console[_0x20fd2f(-0x220,-0x49)](_0x20fd2f(-0xeb,0x72)+_0x20fd2f(0x18b,0x2c1)+'first'+_0x20fd2f(-0x25,0x182)+'ink-c'+_0x20fd2f(0x2b5,0x29b)+_0x18cc4f(0x554,0x5dd)),process['exit'](-0x5*0x307+0x3*-0x32b+0x18a5);}const env={...process.env};if(flags['port'])env['PORT']=String(flags['port']);if(flags[_0x18cc4f(0x850,0x6e6)])env[_0x18cc4f(0x71f,0x745)+'K_HOS'+'T']=flags[_0x18cc4f(0x57f,0x6e6)];const serverPath=join(ROOT,_0x18cc4f(0x2cd,0x43a)+_0x18cc4f(0x601,0x524));if(flags[_0x18cc4f(0x4c9,0x551)+'h']){const watchdogPath=join(ROOT,_0x18cc4f(0x4b4,0x43a)+'r',_0x18cc4f(0x448,0x620)+_0x18cc4f(0x3ce,0x484)+'s'),extraEnv={};if(flags['port'])extraEnv[_0x20fd2f(0x1f3,0x2cb)]=String(flags[_0x20fd2f(0x366,0x268)]);if(flags[_0x18cc4f(0x586,0x6e6)])extraEnv['UPLIN'+_0x18cc4f(0x503,0x49f)+'T']=flags[_0x20fd2f(0x3b1,0x267)];const isLinux=process[_0x20fd2f(0x27a,0xfd)+_0x18cc4f(0x5e0,0x511)]===_0x18cc4f(0x57b,0x3fd);let child;if(isLinux)try{const _0x3dcd27={};_0x3dcd27[_0x18cc4f(0x6d3,0x5f5)]=_0x20fd2f(0x12a,0x84)+'e',execSync(_0x20fd2f(0x9e,0x265)+'\x20sets'+'id',_0x3dcd27);const _0x2ae7b5={};_0x2ae7b5['cwd']=ROOT,_0x2ae7b5[_0x18cc4f(0x356,0x4b0)]=env,_0x2ae7b5[_0x18cc4f(0x74a,0x551)+_0x20fd2f(0x1b4,0x243)]=!![],_0x2ae7b5[_0x18cc4f(0x41e,0x5f5)]='ignor'+'e',child=spawn(_0x20fd2f(-0x152,-0xb7)+'d',[_0x20fd2f(0x1b2,0x2ac)+'k',process[_0x20fd2f(0x105,-0x37)+_0x20fd2f(0x3b9,0x278)],watchdogPath,JSON[_0x18cc4f(0x8da,0x6f1)+_0x20fd2f(0x76,0x244)](extraEnv)],_0x2ae7b5);}catch{const _0x414fb={};_0x414fb[_0x20fd2f(-0x289,-0xfd)]=ROOT,_0x414fb[_0x18cc4f(0x439,0x4b0)]=env,_0x414fb[_0x20fd2f(0x98,0xd2)+'hed']=!![],_0x414fb['stdio']=_0x18cc4f(0x415,0x503)+'e',child=spawn(process[_0x20fd2f(-0x75,-0x37)+'ath'],[watchdogPath,JSON['strin'+_0x20fd2f(0x3a6,0x244)](extraEnv)],_0x414fb);}else{const _0x42530e={};_0x42530e[_0x20fd2f(-0xcf,-0xfd)]=ROOT,_0x42530e['env']=env,_0x42530e[_0x18cc4f(0x357,0x551)+_0x18cc4f(0x5cb,0x6c2)]=!![],_0x42530e[_0x18cc4f(0x6cc,0x5f5)]='ignor'+'e',child=spawn(process[_0x18cc4f(0x3c7,0x448)+_0x18cc4f(0x6b1,0x6f7)],[watchdogPath,JSON[_0x18cc4f(0x559,0x6f1)+_0x20fd2f(0x19a,0x244)](extraEnv)],_0x42530e);}child['unref']();const port=flags['port']||env[_0x20fd2f(0x3e8,0x2cb)]||0xe8d+-0xfa0+-0xd*-0x11f;console[_0x20fd2f(-0x195,-0x49)]('⬡\x20Upl'+_0x18cc4f(0x5ef,0x4bd)+'tarte'+_0x20fd2f(0x178,0x147)+_0x18cc4f(0x410,0x582)+_0x20fd2f(0xa9,0xf9)+_0x18cc4f(0x504,0x3ec)+_0x20fd2f(0x3e4,0x2c4)+'hdog\x20'+'(PID\x20'+child[_0x20fd2f(0x71,0x94)]+').'),console['log'](_0x18cc4f(0x7e2,0x647)+'ttp:/'+_0x18cc4f(0x7ad,0x73c)+_0x18cc4f(0x361,0x3e1)+':'+port),console[_0x18cc4f(0x2ca,0x436)](_0x18cc4f(0x22e,0x390)+_0x20fd2f(-0x6c,-0xa4)+_0x18cc4f(0x51d,0x46f)+_0x18cc4f(0x71e,0x666)+_0x20fd2f(0x4e,0xb7)+'\x20Stop'+_0x18cc4f(0x5b8,0x3ec)+_0x18cc4f(0x7e6,0x601)+_0x18cc4f(0x3f5,0x581)+_0x18cc4f(0x7f7,0x71a)+_0x20fd2f(0x131,0x15e)),process[_0x20fd2f(-0x1f,0x179)](-0x1085*0x2+-0x1833+0x393d);}else{if(flags[_0x20fd2f(0x37a,0x24c)+_0x18cc4f(0x74f,0x6cf)]){const _0x5c80bb={};_0x5c80bb[_0x20fd2f(-0x8a,-0xfd)]=ROOT,_0x5c80bb[_0x20fd2f(0xe6,0x31)]=env,_0x5c80bb[_0x20fd2f(0x30b,0x176)]=_0x18cc4f(0x1f9,0x384)+'it';const child=spawn(process['execP'+_0x18cc4f(0x7df,0x6f7)],[serverPath],_0x5c80bb);writeFileSync(PID_FILE,String(child[_0x18cc4f(0x45e,0x513)]));const cleanup=()=>{function _0xb27bfa(_0x251b1f,_0x258582){return _0x18cc4f(_0x251b1f,_0x258582- -0x27c);}function _0x27a036(_0x306410,_0x307348){return _0x18cc4f(_0x307348,_0x306410- -0x4c7);}const _0x36b45e={'FIGUi':_0x27a036(0x219,0x3df),'iqUCl':_0xb27bfa(0x2b1,0xec),'YiQzC':function(_0x5106e1,_0x49ae5b){return _0x5106e1(_0x49ae5b);}};try{if(_0x36b45e[_0xb27bfa(0x424,0x4c3)]===_0x36b45e[_0xb27bfa(0x322,0x29c)])try{return _0x27ac3d[_0xb27bfa(0x2f4,0x1f1)](_0xa7b330,-0x1*-0xeaa+-0x1a1*0x3+0x9c7*-0x1),!![];}catch{return![];}else _0x36b45e['YiQzC'](unlinkSync,PID_FILE);}catch{}};process['on'](_0x18cc4f(0x587,0x6a8)+'T',()=>{const _0x15acdc={'TEvnY':function(_0x3d16e4){return _0x3d16e4();}};function _0x4d862f(_0x5ced2a,_0x37b0a5){return _0x18cc4f(_0x37b0a5,_0x5ced2a- -0x36b);}_0x15acdc['TEvnY'](cleanup),process[_0x4d862f(0x28d,0x25c)](0x3*0xb87+-0x15*-0x1c9+-0x4812);}),process['on'](_0x20fd2f(0x105,0x97)+'RM',()=>{const _0x4ef5dc={'TFZpX':function(_0x1e3820){return _0x1e3820();}};_0x4ef5dc[_0x4fc695(0x1b1,0x11d)](cleanup);function _0x4fc695(_0x118e01,_0x4b8054){return _0x20fd2f(_0x118e01,_0x4b8054- -0xa1);}process['exit'](-0x2598+-0x1528+-0x5*-0xbc0);}),child['on'](_0x18cc4f(0x560,0x5f8),_0x56929c=>{const _0x116fe6={'SrPLW':function(_0x21c3f6){return _0x21c3f6();},'qkaKh':function(_0x57a786,_0x4a03ff){return _0x57a786||_0x4a03ff;}};function _0x1dad7e(_0x3c94b7,_0x13814a){return _0x18cc4f(_0x13814a,_0x3c94b7- -0x163);}function _0x325a37(_0x339952,_0x36a1ac){return _0x18cc4f(_0x36a1ac,_0x339952- -0x448);}_0x116fe6[_0x325a37(0x47,-0x1a7)](cleanup),process[_0x325a37(0x1b0,0x34d)](_0x116fe6[_0x325a37(0x1b7,0x1c0)](_0x56929c,-0x5e7+0x3*0x721+-0xf7c));});}else{const watchdogPath=join(ROOT,'serve'+'r',_0x18cc4f(0x6b4,0x620)+_0x20fd2f(0x1b,0x5)+'s'),extraEnv={};if(flags[_0x18cc4f(0x71f,0x6e7)])extraEnv['PORT']=String(flags[_0x18cc4f(0x70f,0x6e7)]);if(flags[_0x20fd2f(0x283,0x267)])extraEnv[_0x20fd2f(0x2c0,0x2c6)+_0x20fd2f(-0x13,0x20)+'T']=flags[_0x18cc4f(0x5a7,0x6e6)];const _0x1ec516={};_0x1ec516['cwd']=ROOT,_0x1ec516[_0x20fd2f(-0x191,0x31)]=env,_0x1ec516['stdio']=_0x18cc4f(0x306,0x384)+'it';const child=spawn(process[_0x20fd2f(-0x147,-0x37)+_0x20fd2f(0x27e,0x278)],[watchdogPath,JSON[_0x18cc4f(0x656,0x6f1)+_0x18cc4f(0x8af,0x6c3)](extraEnv)],_0x1ec516),port=flags['port']||env[_0x20fd2f(0x3cc,0x2cb)]||-0x1ba8+0x1e22+-0x22*-0x53;console['log'](_0x18cc4f(0x657,0x5e2)+_0x18cc4f(0x387,0x4bd)+_0x18cc4f(0x756,0x748)+'ng\x20wi'+_0x20fd2f(0xea,0x2)+_0x20fd2f(-0xc0,-0xd1)+'g\x20(au'+'to-re'+_0x20fd2f(0x161,0x225)+_0x18cc4f(0x2a6,0x3cc)+_0x20fd2f(0x228,0x64)),console['log'](_0x20fd2f(0x8,0x1c8)+'ttp:/'+_0x20fd2f(0x345,0x2bd)+_0x20fd2f(-0x13,-0x9e)+':'+port),console[_0x18cc4f(0x4e2,0x436)](_0x18cc4f(0x4c9,0x3d3)+_0x18cc4f(0x484,0x625)+_0x20fd2f(-0x1d8,-0x112)+_0x18cc4f(0x28f,0x44a)+'for\x20r'+'aw\x20se'+_0x18cc4f(0x6e8,0x650)+_0x20fd2f(0x15c,0x2a0)),process['on'](_0x18cc4f(0x64e,0x6a8)+'T',()=>{function _0x282f33(_0x33d665,_0x48291f){return _0x20fd2f(_0x48291f,_0x33d665-0x597);}const _0x5e580c={};_0x5e580c['bRSzy']='SIGTE'+'RM';const _0x2354f7=_0x5e580c;function _0x4bb948(_0x5ec7ea,_0x1d68e2){return _0x20fd2f(_0x5ec7ea,_0x1d68e2-0x4e5);}child[_0x4bb948(0x3bc,0x4d3)](_0x2354f7[_0x282f33(0x80d,0x858)]);}),process['on'](_0x18cc4f(0x329,0x516)+'RM',()=>{function _0x2ce779(_0x5b582a,_0x5f0f52){return _0x20fd2f(_0x5f0f52,_0x5b582a-0x376);}const _0x2a23b4={};_0x2a23b4[_0x2ea9c8(0x48b,0x36b)]=_0x2ce779(0x40d,0x4b7)+'RM';function _0x2ea9c8(_0x214db2,_0x383fd2){return _0x20fd2f(_0x214db2,_0x383fd2-0x24b);}const _0x24caad=_0x2a23b4;child[_0x2ea9c8(0x2c7,0x239)](_0x24caad[_0x2ce779(0x496,0x319)]);}),child['on']('exit',_0x4763e5=>{const _0x4c62dc={};_0x4c62dc[_0x3fc376(0x4a2,0x611)]=function(_0x375da2,_0x9c99c6){return _0x375da2||_0x9c99c6;};function _0x3fc376(_0x3945fa,_0x794c9a){return _0x18cc4f(_0x794c9a,_0x3945fa-0x74);}function _0x2b8d73(_0x1502a8,_0x1c8f23){return _0x18cc4f(_0x1502a8,_0x1c8f23- -0x25e);}const _0x5f4695=_0x4c62dc;process[_0x3fc376(0x66c,0x55b)](_0x5f4695[_0x3fc376(0x4a2,0x61e)](_0x4763e5,0xf49+0x25ed+-0x3536));});}}}
3
+ (function(_0x4521c3,_0x306add){function _0x1eaa07(_0x59eda9,_0x1bc73f){return _0x10d4(_0x59eda9- -0x18,_0x1bc73f);}function _0x104648(_0x2c745d,_0x490c5f){return _0x10d4(_0x490c5f-0x247,_0x2c745d);}const _0x196c1a=_0x4521c3();while(!![]){try{const _0x32e355=-parseInt(_0x1eaa07(0x2e4,0x1b2))/(0x1271+-0x71*-0x2+0x2*-0x9a9)*(-parseInt(_0x1eaa07(0x111,-0x10))/(-0x1*-0x1f26+-0x1b36*-0x1+0x2*-0x1d2d))+parseInt(_0x104648(0x63b,0x69a))/(-0x18af+-0xa*0x107+0x22f8)+parseInt(_0x1eaa07(0x144,0x1e5))/(-0x1*-0x17ea+-0x1f36+0x68*0x12)+-parseInt(_0x104648(0x2b9,0x372))/(-0x353*0x4+-0xc8a+0x1*0x19db)+-parseInt(_0x104648(0x304,0x440))/(-0x13c9+-0x3e2+0x17b1)+parseInt(_0x1eaa07(0xbd,-0x100))/(-0x1d97+-0x137c+0x6*0x82f)+-parseInt(_0x104648(0x5a1,0x607))/(-0x10e9+-0x189*0xa+0x49d*0x7)*(parseInt(_0x1eaa07(0x121,0x69))/(-0x1f3b+-0x139d*-0x1+0xba7));if(_0x32e355===_0x306add)break;else _0x196c1a['push'](_0x196c1a['shift']());}catch(_0x2c8100){_0x196c1a['push'](_0x196c1a['shift']());}}}(_0x4ce9,0x8031*0x3+-0xb*-0x6925+0xfef1));import{spawn,execSync}from'child_process';import{fileURLToPath}from'url';import{dirname,join}from'path';import{existsSync,writeFileSync,readFileSync,unlinkSync,statSync,readdirSync,mkdirSync}from'fs';import{createRequire}from'module';import _0x3653cc from'net';import _0x910dc9 from'http';import _0xae449b from'os';function _0x2077cd(_0x462f9b,_0x1ebef6){return _0x10d4(_0x462f9b-0xfa,_0x1ebef6);}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),ROOT=join(__dirname,'..');function resolveDataDir(){const _0x3d844c={'jJtpk':_0x598f69(0x0,0x10e)+_0x598f69(0x5a,0xdc)+'+$','Oifpc':function(_0x3ad6ac,_0x4768b1){return _0x3ad6ac!==_0x4768b1;},'fewWi':'aIhPN','HtYkI':'xpWfl','YdGDk':function(_0x5ebb35,_0xfc3185){return _0x5ebb35===_0xfc3185;},'JgOBL':_0x37ccb6(0x27c,0x25c),'iqGGJ':function(_0x183068,_0x49fa4c,_0x46de3c){return _0x183068(_0x49fa4c,_0x46de3c);},'XpRdg':'activ'+'e','IcmnG':_0x37ccb6(0x205,0x1ad),'xTPzs':function(_0x4cb269){return _0x4cb269();},'Wjzuu':_0x37ccb6(0x2a1,0x16a),'IEXOs':_0x37ccb6(0x411,0x46d)+'ta','OEvIH':_0x598f69(0x15,-0x1cb)+'k','CPGgp':function(_0x1c6daa,_0x5ababe,_0x3815ed){return _0x1c6daa(_0x5ababe,_0x3815ed);},'DSUbX':'.upli'+'nk'},_0x46d692=(function(){const _0x3b165a={'zEEUd':_0x3d844c[_0x59b85a(0x519,0x509)],'UvwBw':function(_0x1e121f,_0x3903ad){function _0x224d1c(_0xe079b2,_0x53e872){return _0x59b85a(_0x53e872- -0x35f,_0xe079b2);}return _0x3d844c[_0x224d1c(-0xe4,0xcd)](_0x1e121f,_0x3903ad);},'zwBar':_0x3d844c[_0xafab4e(0x391,0x218)],'qGrrV':_0x3d844c[_0x59b85a(0x71e,0x8c1)],'ShoNa':function(_0x2c2b19,_0x3250ee){function _0x1e08e9(_0xa36ace,_0x9f73d1){return _0x59b85a(_0xa36ace- -0x2a6,_0x9f73d1);}return _0x3d844c[_0x1e08e9(0x267,0x384)](_0x2c2b19,_0x3250ee);},'whWlS':_0x3d844c[_0xafab4e(-0x19d,0x3d)]};function _0x59b85a(_0x312b67,_0x542dcf){return _0x598f69(_0x312b67-0x524,_0x542dcf);}function _0xafab4e(_0x5a7064,_0x4545d5){return _0x598f69(_0x4545d5-0x6a,_0x5a7064);}let _0x37f649=!![];return function(_0x423e7a,_0x23fa0f){const _0x9a222d=_0x37f649?function(){const _0x1d31d0={'ASvNt':_0x3b165a['zEEUd'],'IzEmt':function(_0x2956c6,_0x1e4d0d,_0x3f7046){return _0x2956c6(_0x1e4d0d,_0x3f7046);}};function _0x4ee95a(_0x37d83b,_0x2b9a61){return _0x10d4(_0x2b9a61-0x10a,_0x37d83b);}function _0xd34184(_0x4065bb,_0x5c14b4){return _0x10d4(_0x4065bb- -0x1c1,_0x5c14b4);}if(_0x3b165a[_0x4ee95a(0x4cb,0x42e)](_0x3b165a['zwBar'],_0x3b165a[_0x4ee95a(0x2a0,0x2f1)])){if(_0x23fa0f){if(_0x3b165a[_0xd34184(-0xd2,-0x287)]('rYjDJ',_0x3b165a[_0x4ee95a(0x2a3,0x253)])){const _0x10274a=_0x23fa0f[_0x4ee95a(0x3f8,0x559)](_0x423e7a,arguments);return _0x23fa0f=null,_0x10274a;}else return _0x5528ce[_0xd34184(0x210,0x1c8)+_0xd34184(-0x10f,-0x218)]()[_0xd34184(0x8e,-0x145)+'h'](_0x4ee95a(0x3c8,0x350)+')+)+)'+'+$')[_0x4ee95a(0x477,0x4db)+'ing']()['const'+'ructo'+'r'](_0x3f22cc)[_0xd34184(0x8e,0x14)+'h'](ubxLjZ['ASvNt']);}}else{const _0x5bd434={};_0x5bd434[_0x4ee95a(0x29f,0x33f)+_0xd34184(-0xe5,-0x16b)]=!![],_0x5bd434[_0x4ee95a(0x5bb,0x40d)]=!![],_0x1d31d0[_0x4ee95a(0x599,0x4b7)](_0x1f55cc,_0x84a2c7,_0x5bd434),_0x329085++,_0x433dd9['log'](_0x4ee95a(0x4d9,0x430)+_0x4ee95a(0x31b,0x4ed)+'d\x20'+_0x427caf);}}:function(){};return _0x37f649=![],_0x9a222d;};}()),_0x31ce34=_0x3d844c[_0x598f69(-0xa1,-0x110)](_0x46d692,this,function(){function _0x42424f(_0x439fe2,_0x18072b){return _0x598f69(_0x18072b-0x2e9,_0x439fe2);}function _0x2472c1(_0x1facf4,_0x3fcbf6){return _0x598f69(_0x1facf4-0x1ba,_0x3fcbf6);}if(_0x3d844c[_0x42424f(0x20e,0x2d2)](_0x3d844c['IcmnG'],'NMSzz'))try{const _0xf5c9bb=_0x212f0f[_0x42424f(0x86,0x1fd)](_0x3d844c[_0x42424f(0x3ce,0x248)](_0x19da8e,_0x2fe298,'utf8'));if(_0xf5c9bb[_0x2472c1(0x7e,0x125)+'um']||_0xf5c9bb[_0x2472c1(0x7e,0xdc)+'umKey'])_0x27e22f=_0x3d844c[_0x42424f(0x56,0x22e)];}catch{}else return _0x31ce34[_0x2472c1(0x345,0x3c8)+_0x2472c1(0x26,-0x9f)]()['searc'+'h'](_0x42424f(0x154,0x2e9)+_0x42424f(0x1ac,0x343)+'+$')[_0x42424f(0x385,0x474)+_0x2472c1(0x26,0x128)]()['const'+'ructo'+'r'](_0x31ce34)[_0x2472c1(0x1c3,0x221)+'h']('(((.+'+_0x2472c1(0x214,0x368)+'+$');});_0x3d844c[_0x598f69(0x74,0x7c)](_0x31ce34);function _0x37ccb6(_0x21b7d6,_0x57fb68){return _0x10d4(_0x57fb68-0x59,_0x21b7d6);}if(process.env.UPLINK_DATA_DIR)return process.env.UPLINK_DATA_DIR;function _0x598f69(_0x41958d,_0x4f9797){return _0x10d4(_0x41958d- -0x246,_0x4f9797);}if(process[_0x37ccb6(-0x21,0x110)+_0x37ccb6(0x3a5,0x21b)]===_0x3d844c['Wjzuu']){const _0x4dc551=process.env.APPDATA||join(_0xae449b[_0x37ccb6(0x245,0x28a)+'ir'](),_0x3d844c[_0x37ccb6(0x3f9,0x3e8)],'Roami'+'ng');return join(_0x4dc551,_0x3d844c[_0x37ccb6(0x281,0x161)]);}return _0x3d844c[_0x598f69(-0x1b3,-0x1b8)](join,_0xae449b[_0x37ccb6(0x3d0,0x28a)+'ir'](),_0x3d844c['DSUbX']);}const DATA_DIR=resolveDataDir();try{const _0x72f5={};_0x72f5[_0x2077cd(0x32f,0x1e5)+_0x24b44d(0x73,0x12f)]=!![],mkdirSync(DATA_DIR,_0x72f5);}catch{}const PID_FILE=join(DATA_DIR,'.upli'+_0x24b44d(0x117,0x316)+'d'),WATCHDOG_PID_FILE=join(DATA_DIR,_0x24b44d(0x3f5,0x534)+_0x2077cd(0x41a,0x4c6)+_0x24b44d(0x17,-0x195)+_0x24b44d(0xf8,-0x2)),WATCHDOG_STATE_FILE=join(DATA_DIR,'.upli'+_0x2077cd(0x41a,0x40d)+_0x24b44d(0x17,-0x162)+'g.jso'+'n'),args=process[_0x2077cd(0x547,0x6c7)][_0x2077cd(0x4f7,0x485)](0x7f8*0x3+0x1b5f*0x1+-0xa41*0x5),command=args[-0x116*-0xf+-0x5cb*0x3+0x117]||'start',flags={};for(let i=0x419+-0x1f2a*0x1+0x1b11;i<args[_0x24b44d(0x3e,0x67)+'h'];i++){const HAiEJM=(_0x24b44d(0xb4,0x63)+_0x2077cd(0x2bd,0x158)+'8|4|9'+_0x2077cd(0x1bc,0x28a))[_0x2077cd(0x323,0x3dc)]('|');let SemrJv=0x1539+0x312+-0x184b;while(!![]){switch(HAiEJM[SemrJv++]){case'0':(args[i]===_0x2077cd(0x40f,0x34e)+'p'||args[i]==='-h')&&(flags[_0x24b44d(0x2c8,0xcc)]=!![]);continue;case'1':(args[i]==='--ver'+_0x24b44d(0x2a0,0x482)||args[i]==='-v')&&(flags['versi'+'on']=!![]);continue;case'2':(args[i]===_0x24b44d(0x3a6,0x2fa)+'ce'||args[i]==='-f')&&(flags[_0x2077cd(0x3fd,0x332)]=!![]);continue;case'3':(args[i]===_0x2077cd(0x328,0x259)+_0x2077cd(0x2db,0x168)||args[i]==='-d')&&(flags[_0x24b44d(0x214,0xa6)+'h']=!![]);continue;case'4':args[i]===_0x24b44d(0x349,0x443)+'es'&&args[i+(0xc0d+0x1*-0x18c5+-0x1*-0xcb9)]&&(flags[_0x24b44d(0x8c,-0x38)]=parseInt(args[i+(0x3*0x2e3+-0x1*0xf64+0x1af*0x4)],-0x1*-0x1c33+0xc85+-0x28ae),i++);continue;case'5':args[i]===_0x24b44d(0x3a5,0x35e)+'h'&&(flags['path']=!![]);continue;case'6':args[i]===_0x2077cd(0x1e8,0xa5)+'t'&&(flags[_0x24b44d(0x104,0x2fa)]=args[i+(0xa*-0x1cf+0x133f+0x4*-0x4a)]||_0x24b44d(0xd4,0x2aa)+'.0',i++);continue;case'7':args[i]===_0x2077cd(0x1a2,0x173)+'t'&&args[i+(-0x207*-0x3+-0x41*0xb+-0x349*0x1)]&&(flags[_0x24b44d(0xfa,0x1d5)]=parseInt(args[i+(0x74*-0x3d+-0x40b+0x1fb0)],0x1*-0x99d+0x5*0x7c6+0x3*-0x9bd),i++);continue;case'8':args[i]===_0x24b44d(0x3d0,0x2c0)+_0x2077cd(0x29d,0x1f7)+_0x2077cd(0x1c1,0xef)&&(flags[_0x2077cd(0x29e,0x27a)+_0x2077cd(0x1fb,0x278)]=!![]);continue;case'9':args[i]===_0x24b44d(0x299,0x25b)+'t'&&(flags[_0x2077cd(0x513,0x328)]=!![]);continue;}break;}}if(flags[_0x2077cd(0x284,0x96)+'on']){const require=createRequire(import.meta.url),pkg=require(join(ROOT,_0x2077cd(0x462,0x5e8)+_0x24b44d(0x39b,0x316)+'on'));console['log'](_0x24b44d(0x1f2,0xe6)+_0x2077cd(0x3dd,0x2f7)+'t\x20v'+pkg[_0x24b44d(0x121,0x23b)+'on']),process['exit'](-0x16fc+0x2*-0xb9c+0x2e34);}flags[_0x24b44d(0x2c8,0x11d)]&&(console[_0x24b44d(0x3e2,0x524)](_0x2077cd(0x490,0x31c)+_0x2077cd(0x4ad,0x568)+_0x2077cd(0x1e0,0xba)+_0x2077cd(0x423,0x49e)+_0x2077cd(0x1ea,0x221)+'at\x0a\x0a\x20'+_0x2077cd(0x400,0x41d)+_0x2077cd(0x1b6,0x208)+_0x2077cd(0x42f,0x440)+_0x2077cd(0x37e,0x1da)+_0x24b44d(0x34f,0x1ab)+'comma'+_0x24b44d(0x25f,0xe2)+'optio'+_0x24b44d(0x78,0x27)+_0x24b44d(0x74,-0xf1)+_0x2077cd(0x4d7,0x5a9)+_0x2077cd(0x541,0x6e7)+_0x2077cd(0x3e4,0x46e)+'t\x20\x20\x20\x20'+_0x24b44d(0xc3,0xf7)+_0x24b44d(0x56,-0x3e)+_0x2077cd(0x453,0x517)+'link\x20'+_0x24b44d(0x11f,0xfb)+_0x2077cd(0x45d,0x5cb)+'fault'+')\x0a\x20\x20\x20'+'\x20stop'+'\x20\x20\x20\x20\x20'+_0x2077cd(0x226,0x39a)+_0x2077cd(0x205,0x29b)+_0x2077cd(0x431,0x2ba)+'ng\x20Up'+'link\x20'+_0x2077cd(0x282,0x305)+_0x24b44d(0x2f4,0x346)+'\x20stat'+_0x2077cd(0x36b,0x29f)+'\x20\x20\x20Ch'+_0x2077cd(0x320,0x23e)+_0x24b44d(0x153,0x154)+_0x2077cd(0x1f6,0x93)+_0x24b44d(0x7e,0xd6)+'ning\x0a'+_0x2077cd(0x2f2,0x286)+_0x2077cd(0x367,0x397)+_0x2077cd(0x173,0xd0)+_0x24b44d(0x2a5,0x3b1)+_0x24b44d(0x26e,0x397)+_0x2077cd(0x3d0,0x2bc)+_0x2077cd(0x39f,0x534)+_0x2077cd(0x326,0x33a)+_0x24b44d(0x45,0x60)+'e\x0a\x20\x20\x20'+_0x24b44d(0x14d,0x201)+'\x20\x20\x20\x20\x20'+'\x20\x20\x20Ta'+_0x24b44d(0x10f,-0x3c)+_0x24b44d(0x1bb,0x145)+_0x24b44d(0x2da,0x377)+_0x2077cd(0x452,0x26b)+_0x2077cd(0x43f,0x418)+_0x24b44d(0xd2,0x13e)+_0x24b44d(0x335,0x215)+_0x2077cd(0x4e9,0x5bd)+'ig\x20\x20\x20'+_0x24b44d(0x38c,0x51b)+_0x2077cd(0x1a5,0x5e)+_0x2077cd(0x1cc,0xd0)+_0x24b44d(0x386,0x35e)+_0x2077cd(0x22a,0x121)+_0x24b44d(0x319,0x452)+_0x2077cd(0x542,0x6e7)+_0x2077cd(0x2c0,0x13a)+_0x2077cd(0x173,0x30d)+_0x24b44d(0x106,0x223)+_0x24b44d(0x18b,-0x2e)+_0x24b44d(0x1fa,0x343)+_0x2077cd(0x2ff,0x15f)+_0x24b44d(0x367,0x44d)+_0x24b44d(0x370,0x279)+_0x24b44d(0x350,0x23e)+_0x24b44d(0x10,0x6)+_0x2077cd(0x38d,0x581)+_0x24b44d(0x3bb,0x583)+_0x24b44d(0x188,0x23)+_0x2077cd(0x17f,0x322)+'nd\x20lo'+'cal\x20d'+_0x2077cd(0x4f1,0x3d1)+'\x20\x20\x20up'+'date\x20'+_0x24b44d(0x10,-0x74)+'Updat'+_0x24b44d(0x3dc,0x339)+_0x2077cd(0x27c,0x220)+_0x24b44d(0x2b9,0x1c2)+'\x20vers'+'ion\x0a\x20'+_0x2077cd(0x395,0x42f)+_0x24b44d(0x3a7,0x286)+_0x24b44d(0x1de,-0xe)+_0x2077cd(0x436,0x307)+_0x2077cd(0x282,0x107)+_0x2077cd(0x503,0x6a3)+_0x24b44d(0x269,0x26b)+'ve\x20al'+_0x24b44d(0x371,0x1b7)+_0x24b44d(0x2fc,0x1ee)+_0x2077cd(0x362,0x53c)+_0x24b44d(0x26,-0x2e)+'ions:'+_0x2077cd(0x2dd,0x2ed)+_0x2077cd(0x1a2,0x1e)+_0x2077cd(0x384,0x215)+'\x20\x20\x20\x20\x20'+'\x20Port'+_0x2077cd(0x191,0x270)+_0x24b44d(0x359,0x300)+_0x24b44d(0x33,-0x1a0)+_0x24b44d(0x2c1,0x3b0)+_0x24b44d(0x18c,-0x72)+_0x2077cd(0x409,0x591)+'\x20\x20\x20\x20-'+'-host'+_0x24b44d(0x1b2,0x1ea)+'\x20\x20\x20\x20\x20'+_0x24b44d(0x95,0x85)+'to\x20bi'+'nd\x20to'+'\x20(def'+_0x24b44d(0x13e,0xa5)+'\x200.0.'+'0.0)\x0a'+_0x2077cd(0x22d,0x227)+_0x24b44d(0x323,0x2dd)+_0x2077cd(0x3e2,0x46d)+_0x24b44d(0x2f9,0x385)+'Run\x20i'+_0x2077cd(0x4c8,0x61a)+'kgrou'+'nd\x20(d'+_0x2077cd(0x428,0x22c)+_0x2077cd(0x33b,0x1a2)+_0x24b44d(0x3c3,0x4a4)+_0x24b44d(0x4b,0x22e)+_0x2077cd(0x425,0x559)+_0x2077cd(0x213,0x301)+_0x24b44d(0x3b8,0x57b)+_0x24b44d(0x27,-0xc5)+'out\x20a'+_0x24b44d(0x36f,0x430)+_0x2077cd(0x385,0x279)+_0x2077cd(0x180,0x350)+'chdog'+'\x0a\x20\x20\x20\x20'+'--lin'+_0x24b44d(0x40,-0x120)+_0x24b44d(0x10,0x6b)+_0x24b44d(0xae,0x2b)+_0x2077cd(0x342,0x4df)+_0x2077cd(0x4c0,0x2ea)+'lines'+_0x24b44d(0x364,0x183)+_0x24b44d(0x149,-0x29)+_0x24b44d(0x30,0x1ff)+'\x20defa'+_0x2077cd(0x32e,0x45c)+_0x24b44d(0x2c4,0x30f)+_0x24b44d(0x2c,-0xdf)+'edit\x20'+_0x24b44d(0x10,-0x117)+_0x2077cd(0x228,0x322)+'pen\x20c'+_0x24b44d(0x8e,-0x10b)+_0x24b44d(0x128,0x3f)+_0x24b44d(0x20c,0x3b6)+_0x2077cd(0x3c4,0x4be)+'fig)\x0a'+_0x2077cd(0x22d,0x268)+'-path'+_0x2077cd(0x173,0x2ca)+'\x20\x20\x20\x20\x20'+'Print'+_0x24b44d(0x386,0x3a3)+_0x2077cd(0x4c9,0x2ea)+_0x24b44d(0x242,0x19c)+_0x24b44d(0x215,0x1e0)+_0x2077cd(0x1f1,0x3a2)+_0x24b44d(0x3c3,0x564)+_0x2077cd(0x51f,0x36f)+_0x24b44d(0xc9,0x2a7)+_0x2077cd(0x2ca,0x145)+'\x20\x20Ski'+_0x24b44d(0x212,0x1bb)+_0x2077cd(0x265,0x1a0)+_0x2077cd(0x479,0x55f)+_0x2077cd(0x17d,0x18a)+_0x2077cd(0x34e,0x1db)+(_0x2077cd(0x4a9,0x3e2)+_0x2077cd(0x2dd,0x12d)+_0x2077cd(0x2d5,0x1ee)+_0x2077cd(0x173,0x25d)+_0x24b44d(0x10,0x1e2)+_0x24b44d(0x2a5,0x3d7)+_0x24b44d(0x4d,-0x123)+'ion\x0a\x20'+_0x2077cd(0x524,0x5f5)+_0x2077cd(0x173,0x31)+_0x24b44d(0x10,0x185)+_0x24b44d(0x2b8,0x195)+_0x2077cd(0x310,0x3eb)+_0x24b44d(0x225,0x2a4)+_0x24b44d(0x393,0x4bc)+'\x20\x20Exa'+_0x2077cd(0x1a6,0x18)+_0x2077cd(0x541,0x58f)+'\x20npx\x20'+_0x24b44d(0x1f2,0x2d4)+_0x24b44d(0x27a,0x310)+_0x2077cd(0x40c,0x322)+_0x24b44d(0x10,0x1dc)+'\x20\x20\x20\x20\x20'+_0x2077cd(0x40e,0x54a)+_0x2077cd(0x4b4,0x48a)+_0x24b44d(0x2d2,0x276)+_0x2077cd(0x424,0x5aa)+_0x2077cd(0x210,0x293)+_0x24b44d(0x2a2,0x404)+'\x20\x20npx'+_0x24b44d(0x12b,0x14e)+_0x2077cd(0x19e,0x287)+'at\x20--'+_0x24b44d(0x34e,0x533)+_0x2077cd(0x4f3,0x458)+_0x24b44d(0x10,-0x1d8)+_0x2077cd(0x387,0x272)+_0x2077cd(0x470,0x515)+_0x24b44d(0x382,0x382)+_0x2077cd(0x502,0x5fe)+_0x2077cd(0x2dd,0x22a)+_0x24b44d(0x23e,0x347)+_0x2077cd(0x3cd,0x28b)+_0x24b44d(0x327,0x2c4)+'\x20stop'+'\x20\x20\x20\x20\x20'+_0x2077cd(0x173,0x34d)+_0x2077cd(0x216,0xce)+_0x2077cd(0x436,0x526)+'the\x20s'+_0x2077cd(0x22f,0x331)+'\x0a\x20\x20\x20\x20'+_0x24b44d(0x23e,0x4d)+_0x24b44d(0x26a,0x103)+_0x24b44d(0x327,0x24e)+_0x2077cd(0x239,0x126)+_0x2077cd(0x173,0x173)+'\x20\x20\x20\x20\x20'+_0x2077cd(0x216,0x3da)+'Show\x20'+_0x24b44d(0x2e0,0x1f7)+_0x2077cd(0x239,0x231)+_0x24b44d(0x17a,0x111)+'npx\x20u'+'plink'+_0x24b44d(0x327,0x2ae)+_0x24b44d(0x14d,0x15)+'\x20--li'+_0x24b44d(0xa3,-0x130)+'00\x20#\x20'+_0x2077cd(0x177,0xea)+'last\x20'+_0x24b44d(0xf7,-0xc2)+'og\x20li'+_0x2077cd(0x557,0x505)+'\x20\x20\x20np'+_0x2077cd(0x4ab,0x3ea)+'ink-c'+_0x2077cd(0x16b,0x17d)+'onfig'+_0x24b44d(0x58,0xd5)+'it\x20\x20\x20'+_0x24b44d(0x11c,0x31b)+_0x2077cd(0x343,0x52c)+'nv\x20in'+'\x20your'+_0x24b44d(0x9d,-0xf4)+_0x2077cd(0x1ad,0x1ac)+_0x2077cd(0x4e6,0x4f4)+_0x24b44d(0x12b,0x203)+'nk-ch'+'at\x20do'+_0x2077cd(0x263,0xfd)+_0x24b44d(0x10,0x138)+_0x2077cd(0x173,0x13e)+_0x24b44d(0x3af,0x1f1)+'\x20diag'+_0x2077cd(0x2ab,0x1c9)+_0x2077cd(0x46c,0x418)+_0x2077cd(0x4e6,0x321)+_0x24b44d(0x12b,0x21)+_0x2077cd(0x19e,0x324)+'at\x20re'+_0x24b44d(0x10a,0x2ac)+_0x24b44d(0xa5,0x16c)+_0x24b44d(0x114,-0xa9)+_0x24b44d(0x3a,-0xaa)+_0x2077cd(0x31b,0x2b6)+'ta\x20wi'+_0x2077cd(0x53b,0x65c)+'\x20prom'+_0x24b44d(0xa,0x25))),process[_0x2077cd(0x34a,0x2cf)](-0x3*-0xc77+-0xaa3+-0xa*0x2ad));function _0x24b44d(_0x31fdd5,_0x3e2bbe){return _0x10d4(_0x31fdd5- -0x69,_0x3e2bbe);}function isRunning(_0x28995b){const _0x2c19af={'yCFIC':function(_0x322ef5,_0x5a2103,_0x1ba1a1){return _0x322ef5(_0x5a2103,_0x1ba1a1);},'aXGTe':function(_0xdd3cb2,_0x2273fc){return _0xdd3cb2+_0x2273fc;},'kpBUI':_0x2ebb4e(0x4ee,0x457),'lViQf':'in\x20us'+_0x472c0c(0x2ca,0xd2)+'anoth'+_0x2ebb4e(0x3ab,0x5a5)+'ocess','MAPZN':function(_0x3c19df,_0x1a6f00){return _0x3c19df===_0x1a6f00;},'ANEYC':_0x2ebb4e(0x410,0x54b)};function _0x472c0c(_0x3a4eab,_0x53e68f){return _0x2077cd(_0x53e68f- -0x19f,_0x3a4eab);}function _0x2ebb4e(_0x59639c,_0x3ce96d){return _0x2077cd(_0x3ce96d-0x175,_0x59639c);}try{return process[_0x472c0c(0x2d4,0x1dd)](_0x28995b,0x1a0e+0x1*-0x401+0x5*-0x469),!![];}catch{if(_0x2c19af[_0x472c0c(0x1f3,0xa3)](_0x472c0c(0x45a,0x2d9),_0x2c19af[_0x2ebb4e(0x6b7,0x520)]))_0x2c19af[_0x2ebb4e(0x6ac,0x600)](_0x5eeb5c,_0x2c19af[_0x472c0c(0x67,0x1f3)](_0x2c19af[_0x472c0c(0x8b,0xfb)],_0x5be363),_0x2c19af[_0x2ebb4e(0x7c3,0x632)]);else return![];}}function getPid(){function _0x38b272(_0x53598c,_0x2aeb47){return _0x24b44d(_0x2aeb47-0x23a,_0x53598c);}const _0x43be32={'btygY':function(_0xe8df46,_0x3d5bbd){return _0xe8df46(_0x3d5bbd);},'heJas':function(_0x357b85,_0x488a33,_0x3d6289){return _0x357b85(_0x488a33,_0x3d6289);},'ThxVl':_0x22eaf0(0x129,0x215),'Eadzh':function(_0x2befd0,_0x40ec55){return _0x2befd0(_0x40ec55);},'SZHdW':function(_0x2be7ba,_0x292e8b){return _0x2be7ba(_0x292e8b);}};function _0x22eaf0(_0x15907e,_0x3db3ce){return _0x24b44d(_0x3db3ce-0x213,_0x15907e);}if(!_0x43be32[_0x38b272(0x7b2,0x617)](existsSync,PID_FILE))return null;const _0x8c3e6a=_0x43be32['heJas'](parseInt,_0x43be32['heJas'](readFileSync,PID_FILE,_0x43be32[_0x38b272(0x2c3,0x493)])[_0x22eaf0(0x5a6,0x581)](),0x5*-0x4a9+-0x295*-0x2+-0x63*-0x2f);if(_0x43be32['Eadzh'](isNaN,_0x8c3e6a)||!_0x43be32[_0x38b272(0x5e8,0x513)](isRunning,_0x8c3e6a)){try{_0x43be32[_0x22eaf0(0x195,0x2fc)](unlinkSync,PID_FILE);}catch{}return null;}return _0x8c3e6a;}function getWatchdogPid(){function _0x47a617(_0x8e8c2f,_0x4d1d15){return _0x24b44d(_0x4d1d15-0x2d2,_0x8e8c2f);}const _0x150c65={'fQdhe':function(_0x279560,_0x2824fb,_0x383e02){return _0x279560(_0x2824fb,_0x383e02);},'qRZEv':_0x47a617(0x3c5,0x43f)+'e','SYkIm':function(_0x140ef7,_0x59689b,_0x50a80d){return _0x140ef7(_0x59689b,_0x50a80d);},'SkAjN':_0x47a617(0x274,0x2d6)+_0x139e65(0x353,0x436)+_0x47a617(0x76a,0x5d6),'llgUJ':function(_0x7b4e54,_0x501150){return _0x7b4e54(_0x501150);},'AQuhe':function(_0x11b151,_0xc555b8,_0x13bca4){return _0x11b151(_0xc555b8,_0x13bca4);},'yqnOE':function(_0x4b4a33,_0x65441a){return _0x4b4a33===_0x65441a;},'efNpL':_0x139e65(0x544,0x55a),'PAWMO':_0x139e65(0x6a0,0x7e9),'RlssE':_0x47a617(0x4ae,0x55d)};if(!_0x150c65[_0x139e65(0x3b0,0x4b8)](existsSync,WATCHDOG_PID_FILE))return null;function _0x139e65(_0x4f356f,_0x34d0c4){return _0x24b44d(_0x4f356f-0x2c6,_0x34d0c4);}const _0x4ad033=_0x150c65[_0x139e65(0x61a,0x6d7)](parseInt,_0x150c65[_0x139e65(0x418,0x344)](readFileSync,WATCHDOG_PID_FILE,_0x139e65(0x2c8,0x3b4))[_0x139e65(0x634,0x6b5)](),-0xb*-0x1d5+0x2*0x1223+0xb47*-0x5);if(_0x150c65['llgUJ'](isNaN,_0x4ad033)||!isRunning(_0x4ad033)){if(_0x150c65[_0x139e65(0x3db,0x524)](_0x150c65[_0x47a617(0x303,0x4cf)],_0x139e65(0x340,0x1f8))){const _0x561dd6=_0xf7beb5[_0x139e65(0x3b7,0x446)](_0x150c65[_0x47a617(0x3ff,0x424)](_0x33961a,_0x1d00db,_0x139e65(0x2c8,0x162)));if(_0x561dd6[_0x47a617(0x4ea,0x373)+'um']||_0x561dd6[_0x139e65(0x367,0x3f4)+_0x47a617(0x48c,0x3e2)])_0x2e8a5e=_0x150c65[_0x139e65(0x595,0x69b)];}else{try{_0x150c65[_0x139e65(0x4dc,0x454)]===_0x150c65['RlssE']?_0x150c65[_0x139e65(0x4b2,0x3ae)](_0x497ab9,_0x150c65[_0x139e65(0x40c,0x46e)],'v'+_0x31d9d1+(_0x139e65(0x521,0x48c)+_0x47a617(0x30b,0x446)+_0x139e65(0x597,0x6c8)+'8\x20is\x20'+_0x47a617(0x5b6,0x547)+'red')):unlinkSync(WATCHDOG_PID_FILE);}catch{}return null;}}return _0x4ad033;}function getWatchdogState(){function _0x2cbf9e(_0x5b5ae4,_0x131dd0){return _0x24b44d(_0x5b5ae4-0x1d5,_0x131dd0);}const _0x5ef770={'wOrGW':function(_0x35ff76,_0x5f4475,_0x2d778c){return _0x35ff76(_0x5f4475,_0x2d778c);},'RGRse':function(_0x2e41d1,_0x5b1141){return _0x2e41d1(_0x5b1141);},'wzdNQ':function(_0x4d213f,_0x351e2a,_0x2a099a){return _0x4d213f(_0x351e2a,_0x2a099a);},'NapTU':_0x6a074b(0x288,0x3ea),'uLfUG':function(_0x503f8c,_0xe0b0cf){return _0x503f8c!==_0xe0b0cf;},'ymPup':_0x2cbf9e(0x1fe,0x283)};function _0x6a074b(_0x46e7b4,_0x3bd9e1){return _0x24b44d(_0x46e7b4-0x286,_0x3bd9e1);}if(!existsSync(WATCHDOG_STATE_FILE))return null;try{return JSON[_0x6a074b(0x377,0x4c7)](_0x5ef770['wzdNQ'](readFileSync,WATCHDOG_STATE_FILE,_0x5ef770[_0x6a074b(0x4fe,0x316)]));}catch{if(_0x5ef770['uLfUG']('JjAql',_0x5ef770['ymPup'])){const _0x467b71=_0x5ef770[_0x6a074b(0x447,0x31e)](_0x1d7b89,_0x385b46,_0x4576b4);if(_0x5ef770['RGRse'](_0x444cc4,_0x467b71))try{const _0x226b8f={};_0x226b8f[_0x6a074b(0x452,0x3a8)+_0x2cbf9e(0x248,0x6e)]=!![],_0x226b8f[_0x2cbf9e(0x46f,0x58c)]=!![],_0x5ef770[_0x6a074b(0x447,0x5e0)](_0x1c73f5,_0x467b71,_0x226b8f),_0x15ebd5++;}catch{}}else return null;}}function formatUptime(_0xbd42c1){const _0x233105={};_0x233105[_0x28f65e(0x4c4,0x455)]=function(_0x1229fc,_0x54233e){return _0x1229fc/_0x54233e;},_0x233105[_0x1493b7(0x499,0x3be)]=function(_0x4a920d,_0x45e4c6){return _0x4a920d>_0x45e4c6;},_0x233105[_0x28f65e(0x576,0x5f8)]=function(_0xedd1d4,_0x12860d){return _0xedd1d4%_0x12860d;},_0x233105['DGQPj']=function(_0x545900,_0x54c3d3){return _0x545900%_0x54c3d3;},_0x233105['Itpjf']=function(_0x5adf05,_0x7cbc26){return _0x5adf05%_0x7cbc26;};const _0x390f23=_0x233105,_0x56e9fa=Math['floor'](_0x390f23[_0x1493b7(0x32e,0x2ef)](_0xbd42c1,-0xb69+-0x2*-0xb51+0x1*-0x751)),_0x5d0d66=Math['floor'](_0x390f23[_0x1493b7(0x32e,0x483)](_0x56e9fa,0x1ca3+0x2*-0xa1b+-0x831)),_0x4774be=Math['floor'](_0x390f23['uJUTB'](_0x5d0d66,-0xd5b+0x1*-0x25b7+0x334e)),_0x12f0c6=Math[_0x28f65e(0x64f,0x4f6)](_0x390f23['uJUTB'](_0x4774be,-0x1*0x1750+-0x2336+-0x7a*-0x7b));if(_0x390f23[_0x28f65e(0x62f,0x5be)](_0x12f0c6,-0x1ffb+0x1b*-0xc2+0x3471))return _0x12f0c6+'d\x20'+_0x4774be%(-0x17f*0x1a+0x1*0xccd+-0x95*-0x2d)+'h\x20'+_0x390f23[_0x1493b7(0x3e0,0x2ef)](_0x5d0d66,0x149d+-0x2*0xad+-0x1307)+'m';if(_0x390f23[_0x1493b7(0x499,0x63f)](_0x4774be,0x1*-0x1c55+0xb19*0x2+0x623))return _0x4774be+'h\x20'+_0x390f23[_0x28f65e(0x31d,0x4c7)](_0x5d0d66,0x191b+-0x6a*-0x7+0x1bc5*-0x1)+'m\x20'+_0x390f23[_0x28f65e(0x49d,0x583)](_0x56e9fa,0xc45+0xa*-0x191+0x3a1)+'s';function _0x1493b7(_0x53d0c7,_0x5d5a4e){return _0x24b44d(_0x53d0c7-0x12c,_0x5d5a4e);}function _0x28f65e(_0x2c7ff0,_0x1abe0a){return _0x24b44d(_0x2c7ff0-0x2c2,_0x1abe0a);}if(_0x5d0d66>0x22f3*-0x1+0x156+0x5*0x6b9)return _0x5d0d66+'m\x20'+_0x390f23[_0x1493b7(0x187,0x233)](_0x56e9fa,-0x109e+0x1*-0x245e+-0x1a*-0x20c)+'s';return _0x56e9fa+'s';}if(command===_0x24b44d(0x268,0x43a)){const watchdogPid=getWatchdogPid();if(watchdogPid){try{process['kill'](watchdogPid,'SIGTE'+'RM'),console[_0x24b44d(0x3e2,0x303)](_0x2077cd(0x246,0x1d4)+'ink\x20w'+_0x2077cd(0x170,-0x17)+_0x2077cd(0x50c,0x3dd)+_0x24b44d(0x91,-0xe8)+'\x20(PID'+'\x20'+watchdogPid+').');try{unlinkSync(WATCHDOG_PID_FILE);}catch{}try{unlinkSync(PID_FILE);}catch{}}catch(_0x59be58){console[_0x24b44d(0x16e,0xf3)](_0x2077cd(0x291,0x389)+_0x24b44d(0x3b1,0x43e)+_0x2077cd(0x2e7,0x493)+_0x24b44d(0x336,0x18e)+_0x24b44d(0x37e,0x416)+_0x24b44d(0xd,0x157)+_0x2077cd(0x197,-0x1f)+_0x24b44d(0xed,0x184)+watchdogPid+'):',_0x59be58[_0x2077cd(0x26a,0x378)+'ge']),process[_0x2077cd(0x34a,0x33b)](0x434+0x1*-0x158f+-0xb*-0x194);}process['exit'](0x2208+-0xfaa*0x1+0x92f*-0x2);}const pid=getPid();!pid&&(console[_0x24b44d(0x3e2,0x445)](_0x24b44d(0xe3,-0x20)+_0x2077cd(0x1f6,0x27f)+_0x2077cd(0x37f,0x4b5)+_0x2077cd(0x29b,0x1ff)+_0x2077cd(0x183,0x1f9)),process[_0x24b44d(0x1e7,0x276)](0x18*-0x172+0xb*0x18d+0x1*0x11a1));try{process[_0x2077cd(0x37c,0x4e5)](pid,_0x24b44d(0xa0,0xd0)+'RM'),console[_0x2077cd(0x545,0x4e4)](_0x2077cd(0x246,0xce)+_0x2077cd(0x535,0x610)+_0x2077cd(0x4c5,0x62f)+_0x24b44d(0x24d,0x1f2)+'D\x20'+pid+').');try{unlinkSync(PID_FILE);}catch{}}catch(_0x3d1c7a){console[_0x2077cd(0x2d1,0x18c)](_0x24b44d(0x12e,0xbc)+_0x2077cd(0x514,0x447)+_0x2077cd(0x2e7,0xf6)+'p\x20Upl'+_0x24b44d(0x3b2,0x3ce)+'PID\x20'+pid+'):',_0x3d1c7a[_0x24b44d(0x107,0xab)+'ge']),process['exit'](0x1*0x473+-0x1fb8+-0x2*-0xda3);}process['exit'](-0x15*0x1cd+0x81a+0x1db7);}if(command==='updat'+'e'){const require=createRequire(import.meta.url),pkg=require(join(ROOT,'packa'+'ge.js'+'on')),currentVersion=pkg['versi'+'on'];console[_0x24b44d(0x3e2,0x4ed)](_0x24b44d(0xd7,0x178)+_0x24b44d(0x3f1,0x2cc)+_0x24b44d(0x121,0x263)+_0x24b44d(0x290,0x2db)+currentVersion),console['log'](_0x2077cd(0x415,0x28f)+_0x24b44d(0x21d,0x21f)+'\x20for\x20'+_0x2077cd(0x3ef,0x546)+_0x2077cd(0x19b,-0x63)+'\x0a');const wasRunning=!!(getWatchdogPid()||getPid());if(wasRunning){console[_0x24b44d(0x3e2,0x402)](_0x24b44d(0x9a,0x138)+_0x24b44d(0x33d,0x20a)+_0x2077cd(0x418,0x3be)+'nk\x20be'+_0x24b44d(0xc8,0x288)+_0x24b44d(0x28c,0x3e2)+_0x24b44d(0x189,0xa0));const watchdogPid=getWatchdogPid(),serverPid=getPid(),pidToKill=watchdogPid||serverPid;try{process[_0x2077cd(0x37c,0x3f7)](pidToKill,'SIGTE'+'RM');try{unlinkSync(WATCHDOG_PID_FILE);}catch{}try{unlinkSync(PID_FILE);}catch{}const _0x996e57={};_0x996e57[_0x24b44d(0x25e,0x260)]='ignor'+'e',execSync('sleep'+_0x2077cd(0x41d,0x245)+_0x2077cd(0x268,0x10a)+_0x2077cd(0x464,0x38f)+_0x24b44d(0x52,0x2)+_0x24b44d(0x263,0x3cc)+_0x2077cd(0x20e,0x3ea)+_0x2077cd(0x2a2,0x164)+_0x2077cd(0x298,0x164)+'>nul\x20'+_0x2077cd(0x21c,0x12e),_0x996e57);}catch{}}try{console[_0x2077cd(0x545,0x423)](_0x24b44d(0x1,0xdb)+_0x2077cd(0x296,0x3c6)+_0x2077cd(0x258,0x261)+_0x2077cd(0x1c5,0xb2)+_0x24b44d(0x7c,-0x3f)+'plink'+_0x2077cd(0x48a,0x2ee)+_0x24b44d(0xc,-0x19c));const _0x31f600={};_0x31f600[_0x24b44d(0x25e,0x251)]='inher'+'it',execSync(_0x24b44d(0x1f8,0x158)+_0x2077cd(0x529,0x526)+_0x2077cd(0x24b,0x65)+_0x24b44d(0x3d9,0x472)+_0x2077cd(0x169,-0x6b)+_0x24b44d(0x2f3,0x4b6)+_0x2077cd(0x37e,0x32f)+_0x2077cd(0x33a,0x28a),_0x31f600);}catch(_0x27942a){console['error'](_0x24b44d(0x92,-0x144)+_0x2077cd(0x3d5,0x582)+_0x24b44d(0x5c,-0x40)+'d:',_0x27942a[_0x2077cd(0x26a,0x259)+'ge']),console['error'](_0x2077cd(0x1c2,0xf3)+'\x20runn'+_0x2077cd(0x306,0x4b7)+'anual'+_0x2077cd(0x279,0x466)+_0x24b44d(0xda,0x15c)+_0x24b44d(0x272,0x2b1)+_0x2077cd(0x26c,0x208)+_0x24b44d(0x182,0x139)+_0x24b44d(0xfc,0x2d2)+'/upli'+_0x24b44d(0x3b,-0x23)+'at');if(wasRunning){console[_0x24b44d(0x3e2,0x4b0)](_0x2077cd(0x528,0x5d6)+_0x24b44d(0x338,0x238)+'ing\x20U'+_0x2077cd(0x3cd,0x247)+'...');const _0x46ac09={};_0x46ac09[_0x24b44d(0x25e,0x394)]=_0x2077cd(0x352,0x231)+'it',execSync(_0x24b44d(0x1f2,0x92)+_0x2077cd(0x3dd,0x51a)+_0x2077cd(0x2bb,0x33e)+_0x2077cd(0x3a3,0x40f)+_0x24b44d(0x214,0x1c2)+'h',_0x46ac09);}process[_0x24b44d(0x1e7,0x311)](0x2dd+0x1*0x25b7+-0xdd*0x2f);}try{delete require['cache'][join(ROOT,_0x2077cd(0x462,0x41c)+'ge.js'+'on')];const newPkg=require(join(ROOT,_0x2077cd(0x462,0x5b5)+_0x2077cd(0x4fe,0x57c)+'on')),newVersion=newPkg['versi'+'on'];newVersion!==currentVersion?console[_0x24b44d(0x3e2,0x258)](_0x2077cd(0x1f5,0x288)+_0x2077cd(0x36e,0x290)+_0x24b44d(0x120,0x2be)+currentVersion+'\x20→\x20v'+newVersion):console[_0x2077cd(0x545,0x354)]('\x0a⬡\x20Al'+_0x24b44d(0x2b6,0x304)+_0x2077cd(0x21e,0x38d)+_0x24b44d(0x3ff,0x4ac)+_0x24b44d(0x2ec,0x31a)+_0x24b44d(0x121,0x61)+_0x2077cd(0x3ff,0x216)+currentVersion+').');}catch{console[_0x2077cd(0x545,0x727)](_0x24b44d(0x92,-0x104)+'date\x20'+_0x24b44d(0x54,0x1b6)+_0x24b44d(0x30b,0x43d));}if(wasRunning){console[_0x24b44d(0x3e2,0x4c4)](_0x2077cd(0x28a,0x2bd)+_0x2077cd(0x327,0x436)+_0x24b44d(0x150,0x124)+_0x24b44d(0xe7,0xc3)+'..');try{const _0x1c6301={};_0x1c6301[_0x24b44d(0x25e,0x15f)]=_0x24b44d(0x1ef,0x257)+'it',execSync(_0x24b44d(0x1f2,0x27d)+_0x24b44d(0x27a,0x344)+_0x2077cd(0x2bb,0x2c5)+_0x2077cd(0x3a3,0x42e)+_0x2077cd(0x377,0x50b)+'h',_0x1c6301);}catch{console[_0x24b44d(0x3e2,0x37c)](_0x24b44d(0x306,0x351)+_0x24b44d(0x10b,-0xb3)+_0x2077cd(0x55a,0x47f)+_0x24b44d(0x5c,0x77)+'d.\x20St'+_0x24b44d(0x312,0x4c2)+'anual'+_0x24b44d(0x376,0x542)+'th:\x20u'+_0x24b44d(0x26a,0x3cb)+_0x2077cd(0x48a,0x4db)+_0x2077cd(0x3e4,0x583)+'t');}}process[_0x24b44d(0x1e7,0x1d7)](-0x1373+-0x9b8+0x83*0x39);}if(command===_0x24b44d(0x21e,0x2b5)+'s'){const watchdogPid=getWatchdogPid(),state=getWatchdogState();if(watchdogPid&&state){const uptime=formatUptime(Date[_0x24b44d(0xb7,-0xb5)]()-state['start'+_0x2077cd(0x31f,0x213)]);console[_0x24b44d(0x3e2,0x2ea)]('⬡\x20Upl'+'ink\x20i'+_0x24b44d(0x7e,0xc4)+'ning\x20'+'(watc'+_0x24b44d(0xb0,-0x28)+_0x24b44d(0x20d,0x2b4)),console[_0x2077cd(0x545,0x513)](_0x2077cd(0x3d3,0x2f9)+_0x24b44d(0x98,-0x22)+_0x24b44d(0x3c2,0x5b6)+'\x20'+watchdogPid);if(state[_0x2077cd(0x282,0x41c)+_0x24b44d(0x113,0x41)])console['log'](_0x2077cd(0x4e3,0x620)+_0x24b44d(0x244,0x2a0)+_0x24b44d(0x32b,0x1ba)+'\x20'+state['serve'+_0x2077cd(0x276,0x184)]);console[_0x2077cd(0x545,0x3cf)](_0x24b44d(0x24b,0x392)+_0x2077cd(0x429,0x3ee)+_0x2077cd(0x173,0x7f)+'\x20'+uptime),console[_0x2077cd(0x545,0x694)](_0x24b44d(0x1d4,0x5a)+_0x2077cd(0x23f,0x254)+_0x24b44d(0x173,0xfd)+'\x20'+(state[_0x2077cd(0x347,0x501)+_0x2077cd(0x393,0x487)+'nt']||0x117*0x7+-0xfde+0x2bf*0x3));if(state[_0x2077cd(0x21f,0x333)+_0x2077cd(0x2c8,0xd3)]>-0x764+-0x26*0xcd+0x62*0x6d)console[_0x2077cd(0x545,0x6d4)]('\x20\x20Bac'+_0x24b44d(0x2ee,0x44e)+_0x24b44d(0x10,0x29)+'\x20'+state[_0x2077cd(0x21f,0x2e7)+_0x2077cd(0x2c8,0x1d4)]+'ms');}else{const pid=getPid();pid?console[_0x24b44d(0x3e2,0x4c6)](_0x24b44d(0xe3,-0x10c)+_0x24b44d(0x93,-0x51)+_0x2077cd(0x1e1,0x310)+'ning\x20'+'(PID\x20'+pid+').'):console['log']('⬡\x20Upl'+_0x24b44d(0x93,-0x3e)+_0x24b44d(0x21c,0x2f8)+_0x24b44d(0x138,0x27a)+_0x2077cd(0x183,0x32c));}process[_0x2077cd(0x34a,0x242)](0x184d+-0x2285+0xa38);}if(command===_0x24b44d(0x220,0x39c)+_0x2077cd(0x3f4,0x4d9)){const require=createRequire(import.meta.url),pkg=require(join(ROOT,_0x24b44d(0x2ff,0x341)+'ge.js'+'on')),readline=await import(_0x24b44d(0x166,0x152)+'ine'),{rmSync}=await import('fs');console[_0x2077cd(0x545,0x34c)]('\x0a\x20\x20⬡\x20'+_0x24b44d(0x34a,0x51e)+_0x24b44d(0x3a8,0x3d0)+'nstal'+'l\x20—\x20v'+pkg[_0x24b44d(0x121,0x27d)+'on']+'\x0a'),console[_0x24b44d(0x3e2,0x4f6)](_0x2077cd(0x195,0x1bb)+'s\x20wil'+'l:'),console['log'](_0x2077cd(0x175,0x225)+'\x20Stop'+_0x24b44d(0x305,0x195)+_0x2077cd(0x4ad,0x43f)+'k\x20ser'+'ver\x20a'+_0x2077cd(0x20f,0x34a)+_0x2077cd(0x17a,0x1de)+'g'),console[_0x2077cd(0x545,0x404)]('\x20\x20\x20\x20•'+_0x2077cd(0x38b,0x2f3)+_0x2077cd(0x4a2,0x358)+_0x24b44d(0xc1,0x18f)+_0x24b44d(0x193,0x2c6)+_0x24b44d(0x389,0x3d8)+_0x2077cd(0x4be,0x50b)+_0x2077cd(0x346,0x252)+_0x24b44d(0x3ba,0x29c)+'files'+')'),console[_0x24b44d(0x3e2,0x49e)](_0x2077cd(0x175,0x191)+_0x2077cd(0x38b,0x575)+_0x24b44d(0x33f,0x2fb)+_0x2077cd(0x52b,0x3e1)+_0x24b44d(0x1e5,0x3b2)+_0x24b44d(0x32e,0x2c9)+_0x24b44d(0xa7,0x52)+_0x2077cd(0x190,0x2ce)),console[_0x2077cd(0x545,0x52d)](_0x2077cd(0x175,0x26c)+_0x24b44d(0x228,0x6f)+_0x24b44d(0x33f,0x359)+_0x24b44d(0x8a,0x1a8)+_0x24b44d(0x32c,0x34f)+'\x20PID\x20'+_0x2077cd(0x47b,0x2a6)),console[_0x2077cd(0x545,0x45b)](_0x2077cd(0x175,0x1d7)+'\x20Remo'+_0x24b44d(0x2fb,0x1ba)+'ent\x20a'+_0x2077cd(0x275,0xa2)+_0x2077cd(0x48f,0x43b)+'\x20audi'+_0x2077cd(0x458,0x4fc)+'es'),console['log'](_0x24b44d(0x12,0x1d0)+_0x24b44d(0x35f,0x310)+_0x24b44d(0x181,0x27)+_0x24b44d(0x305,0x242)+_0x24b44d(0xb,0x170)+_0x24b44d(0x3d3,0x545)+_0x24b44d(0xaa,0x8e)+_0x2077cd(0x244,0x3ef)+'\x0a'),console[_0x24b44d(0x3e2,0x5cb)](_0x24b44d(0x264,0x37a)+'This\x20'+_0x24b44d(0x19,0x64)+_0x2077cd(0x2a0,0x2a0)+_0x24b44d(0x125,-0x4e)+_0x2077cd(0x1a4,-0xf)+_0x2077cd(0x55e,0x474));const _0x49f5bf={};_0x49f5bf[_0x24b44d(0x186,-0x57)]=process[_0x24b44d(0x175,0x14d)],_0x49f5bf[_0x24b44d(0x1e2,0xb3)+'t']=process[_0x24b44d(0x1ac,0x14f)+'t'];const rl=readline[_0x2077cd(0x1d4,0x31e)+'eInte'+_0x24b44d(0x2db,0x48e)](_0x49f5bf),answer=await new Promise(_0x4e101f=>{const _0x27d031={};function _0x5db5a6(_0x37bcc2,_0x56a1aa){return _0x24b44d(_0x56a1aa- -0x331,_0x37bcc2);}_0x27d031['HeMfT']='\x20\x20Typ'+_0x5db5a6(-0x193,-0x1e6)+_0x585577(0x379,0x38e)+_0x585577(0x356,0x433)+_0x585577(0x2a2,0x292)+'firm:'+'\x20';const _0x50dad1=_0x27d031;function _0x585577(_0x161272,_0x12745d){return _0x24b44d(_0x161272- -0x2e,_0x12745d);}rl['quest'+_0x5db5a6(-0x281,-0x2b1)](_0x50dad1[_0x585577(0xaf,-0x37)],_0x4e101f);});rl[_0x2077cd(0x1e4,0x273)]();answer[_0x2077cd(0x4d1,0x567)]()[_0x2077cd(0x3b2,0x1f7)+_0x24b44d(0x29b,0x24d)+'e']()!==_0x2077cd(0x383,0x369)+_0x2077cd(0x3f4,0x33c)&&(console[_0x2077cd(0x545,0x723)](_0x2077cd(0x221,0x6c)+_0x2077cd(0x2af,0x187)+_0x24b44d(0xfb,0x1e)+_0x24b44d(0x218,0x2b)+_0x2077cd(0x201,0x91)+_0x24b44d(0x269,0xc2)+_0x24b44d(0x1d0,0x262)),process[_0x24b44d(0x1e7,0x3a3)](0x1a08+0x3c7*-0x8+0x4*0x10c));console[_0x24b44d(0x3e2,0x459)]('');const watchdogPid=getWatchdogPid(),serverPid=getPid();if(watchdogPid)try{process[_0x2077cd(0x37c,0x3b2)](watchdogPid,_0x2077cd(0x203,0x11b)+'RM'),console[_0x24b44d(0x3e2,0x280)](_0x24b44d(0x33c,0x39f)+_0x24b44d(0x362,0x361)+_0x2077cd(0x3e5,0x4e5)+_0x2077cd(0x1fb,0x21d)+_0x24b44d(0x347,0x22b)+'\x20'+watchdogPid+')');}catch{}if(serverPid)try{process[_0x2077cd(0x37c,0x350)](serverPid,'SIGTE'+'RM'),console['log'](_0x24b44d(0x33c,0x462)+'toppe'+_0x24b44d(0x1bf,0x14)+_0x2077cd(0x39d,0x483)+_0x24b44d(0x198,0x2ae)+serverPid+')');}catch{}!watchdogPid&&!serverPid&&console[_0x2077cd(0x545,0x697)]('\x20\x20✓\x20S'+'erver'+'\x20not\x20'+'runni'+'ng');const legacyToRemove=[_0x2077cd(0x2dc,0xff),'confi'+'g.jso'+'n',_0x24b44d(0x3f5,0x3bd)+_0x2077cd(0x27a,0x2f0)+'d',_0x24b44d(0x3f5,0x47b)+'nk-wa'+_0x24b44d(0x17,0x13f)+_0x24b44d(0xf8,0x55),_0x24b44d(0x3f5,0x346)+_0x2077cd(0x41a,0x615)+'tchdo'+_0x24b44d(0x243,0x378)+'n','.upli'+_0x24b44d(0x2b7,0xfc)+_0x2077cd(0x17a,0x342)+_0x24b44d(0x2be,0x35a),_0x2077cd(0x558,0x710)+_0x24b44d(0x3ee,0x4b8)+'rver.'+'log',_0x2077cd(0x2d0,0x4c8)+_0x2077cd(0x397,0x547)+_0x24b44d(0x8f,-0xb3),'messa'+'ges-s'+_0x24b44d(0x39c,0x316)+_0x2077cd(0x1f2,0x296),_0x24b44d(0x18a,0x1e5)+'subsc'+_0x24b44d(0x1ea,0x333)+_0x2077cd(0x42e,0x609)+_0x24b44d(0x8f,-0x127),_0x24b44d(0x83,0x103)+_0x24b44d(0x11d,-0x36)+_0x24b44d(0x256,0x44a)+_0x2077cd(0x231,0x12e),'uploa'+'ds','sync-'+_0x2077cd(0x1e5,0x2b9),_0x2077cd(0x3f0,0x505)+_0x2077cd(0x412,0x29f)+'io','publi'+'c/img'+_0x2077cd(0x249,0x32e)+'ts'];let removed=-0x4e0+-0x1605+-0x3*-0x8f7;for(const item of legacyToRemove){const fullPath=join(ROOT,item);if(existsSync(fullPath))try{const _0x298e82={};_0x298e82['recur'+_0x2077cd(0x1d6,0x342)]=!![],_0x298e82[_0x2077cd(0x3fd,0x208)]=!![],rmSync(fullPath,_0x298e82),removed++;}catch{}}if(existsSync(DATA_DIR))try{const _0x483505={};_0x483505[_0x2077cd(0x32f,0x267)+_0x24b44d(0x73,0x104)]=!![],_0x483505[_0x24b44d(0x29a,0x34e)]=!![],rmSync(DATA_DIR,_0x483505),removed++,console[_0x2077cd(0x545,0x3f9)](_0x24b44d(0x2bd,0x115)+_0x2077cd(0x4dd,0x5c8)+_0x24b44d(0x3e3,0x4ef)+_0x2077cd(0x30d,0x33c)+_0x2077cd(0x1f3,0x225)+_0x2077cd(0x2ce,0x1ad)+DATA_DIR);}catch{}console['log'](_0x24b44d(0x2bd,0x20f)+_0x24b44d(0x37a,0x1f4)+'d\x20'+removed+('\x20data'+_0x24b44d(0xa9,0x257)+'s/dir'+_0x2077cd(0x1f3,0xb6)+'ies')),console[_0x2077cd(0x545,0x6f1)]('\x20\x20✓\x20R'+_0x24b44d(0x192,0x2c9)+'ng\x20np'+_0x2077cd(0x40a,0x3a5)+'kage.'+'..\x0a');try{const _0xb7661e={};_0xb7661e['stdio']=_0x2077cd(0x352,0x421)+'it',execSync(_0x24b44d(0x1f8,0x394)+_0x24b44d(0x16,0xc0)+_0x24b44d(0x72,-0x142)+_0x24b44d(0x1b3,0x2a)+_0x2077cd(0x24f,0x1b8)+_0x24b44d(0xe4,0xc0)+_0x2077cd(0x355,0x456)+'k-cha'+'t',_0xb7661e),console[_0x2077cd(0x545,0x53a)]('\x0a\x20\x20⬡\x20'+_0x2077cd(0x4ad,0x428)+'k\x20has'+_0x24b44d(0x385,0x3b1)+_0x2077cd(0x49c,0x3ac)+_0x2077cd(0x305,0x3ec)+_0x2077cd(0x42c,0x620)+'nstal'+_0x2077cd(0x4bb,0x333)),console[_0x2077cd(0x545,0x55d)](_0x24b44d(0x156,0x264)+_0x24b44d(0x2f6,0x4e8)+_0x2077cd(0x252,0x3bd)+_0x24b44d(0x1d5,0x382)+_0x24b44d(0x26a,0x257)+_0x2077cd(0x555,0x3eb));}catch(_0x4b9164){console[_0x24b44d(0x16e,0x254)](_0x24b44d(0x1b5,0x387)+_0x24b44d(0x12f,0x1d5)+_0x24b44d(0x241,0x18e)+_0x24b44d(0x1b,-0x3e)+_0x2077cd(0x2e4,0x331)+_0x2077cd(0x54e,0x5a0)+_0x2077cd(0x462,0x3e5)+_0x24b44d(0x20a,0x191)),console[_0x2077cd(0x2d1,0x38a)](_0x2077cd(0x51b,0x657)+_0x2077cd(0x3f9,0x3aa)+_0x24b44d(0x1a9,0xc9)+_0x24b44d(0x3eb,0x51b)+_0x2077cd(0x383,0x264)+_0x24b44d(0x46,-0xb0)+'-g\x20@m'+_0x2077cd(0x2e5,0x2a8)+_0x2077cd(0x25f,0x13b)+'/upli'+_0x24b44d(0x3b,-0x98)+_0x2077cd(0x2df,0x1a0)),process[_0x2077cd(0x34a,0x192)](-0x76a*0x2+0x6ad*-0x5+0x3036);}process[_0x2077cd(0x34a,0x44c)](-0x1e6d*0x1+0x1217+0xc56);}if(command===_0x2077cd(0x1b4,0x17d)){const LOG_FILE=join(ROOT,_0x2077cd(0x282,0x3f9)+_0x24b44d(0xfe,0x57)),ALT_LOG_FILE=join(ROOT,'.upli'+'nk-se'+_0x24b44d(0x24a,0x2a4)+_0x2077cd(0x545,0x3d4)),DATA_LOG_FILE=join(DATA_DIR,_0x2077cd(0x558,0x51e)+_0x2077cd(0x551,0x6c5)+_0x24b44d(0x24a,0x251)+_0x2077cd(0x545,0x586)),logFile=existsSync(DATA_LOG_FILE)?DATA_LOG_FILE:existsSync(LOG_FILE)?LOG_FILE:existsSync(ALT_LOG_FILE)?ALT_LOG_FILE:null;if(!logFile){const VEFTGZ=(_0x2077cd(0x47d,0x4e1)+_0x24b44d(0x2de,0x2e1)+_0x24b44d(0x2a1,0x147))['split']('|');let rrVxuW=-0x317+-0x1f*-0xfe+0x3*-0x939;while(!![]){switch(VEFTGZ[rrVxuW++]){case'0':console[_0x2077cd(0x545,0x4e2)](_0x24b44d(0x1a1,0x384)+LOG_FILE);continue;case'1':console['log'](_0x2077cd(0x304,0x2f7)+ALT_LOG_FILE);continue;case'2':console[_0x24b44d(0x3e2,0x2cd)](_0x2077cd(0x1af,0x14a)+_0x24b44d(0x4f,0x140)+_0x2077cd(0x505,0x385)+'tions'+':');continue;case'3':console[_0x24b44d(0x3e2,0x2e5)](_0x24b44d(0x2e9,0x4ce)+'s\x20are'+'\x20crea'+'ted\x20w'+_0x2077cd(0x270,0x1b4)+'he\x20se'+'rver\x20'+_0x2077cd(0x391,0x476));continue;case'4':console[_0x24b44d(0x3e2,0x2bf)](_0x24b44d(0x1ba,0x18d)+_0x24b44d(0x14e,-0x39)+'e\x20ser'+'ver\x20f'+_0x24b44d(0xe2,0x232)+_0x2077cd(0x28e,0x1e4)+'nk-ch'+_0x24b44d(0x36b,0x569)+_0x2077cd(0x531,0x4a4));continue;case'5':process[_0x24b44d(0x1e7,0x270)](0xf08*-0x2+-0x390+-0x1*-0x21a1);continue;case'6':console[_0x2077cd(0x545,0x560)]('');continue;case'7':console[_0x2077cd(0x545,0x38d)](_0x2077cd(0x4d6,0x5df)+_0x24b44d(0x19b,0x21f)+_0x2077cd(0x2de,0x3bd)+'ound.');continue;}break;}}const lines=flags[_0x24b44d(0x8c,-0x11e)]||-0x1*-0x6fd+0x53c+-0x1*0xc07;try{const content=readFileSync(logFile,_0x2077cd(0x165,0x2d7)),allLines=content[_0x2077cd(0x323,0x41f)]('\x0a'),tail=allLines['slice'](-lines)[_0x24b44d(0x1cf,0x37d)]('\x0a');console[_0x2077cd(0x545,0x44b)](_0x2077cd(0x3ce,0x558)+_0x2077cd(0x1ff,0x112)+_0x2077cd(0x401,0x2a9)+lines+(_0x2077cd(0x1d9,-0x5)+_0x24b44d(0x308,0x438)+'m\x20')+logFile+'\x0a'),console[_0x24b44d(0x3e2,0x5d1)](tail);}catch(_0x5eb2a4){console[_0x24b44d(0x16e,0x2ec)](_0x24b44d(0x12e,-0x94)+_0x24b44d(0x3b1,0x39b)+'o\x20rea'+_0x2077cd(0x3d2,0x3a4)+'\x20file'+':\x20'+_0x5eb2a4[_0x24b44d(0x107,-0x6c)+'ge']),process['exit'](-0x3*-0x557+-0x1317+0x313);}console[_0x24b44d(0x3e2,0x480)](_0x24b44d(0x3c9,0x324)+'tchin'+_0x24b44d(0x67,-0x146)+_0x24b44d(0x2e6,0x1dd)+'log\x20e'+_0x2077cd(0x51c,0x532)+_0x2077cd(0x1b8,-0x2d)+_0x2077cd(0x219,0x227)+_0x24b44d(0x170,0x339)+'\x20stop'+')\x0a');const fsModule=await import('fs');let position=statSync(logFile)[_0x2077cd(0x357,0x305)];const watcher=fsModule[_0x2077cd(0x29d,0x318)](logFile,()=>{function _0x3c3ccb(_0x4e5f70,_0x49c9dd){return _0x24b44d(_0x4e5f70-0x210,_0x49c9dd);}const _0xa7026e={'YFkiJ':function(_0x424026,_0x5cc30a){return _0x424026(_0x5cc30a);},'ZjoGK':_0x3c3ccb(0x2b0,0x362)+'RM','bizMr':function(_0x515074,_0x4414b9,_0x40f600){return _0x515074(_0x4414b9,_0x40f600);},'aEWGe':function(_0x7e8be0,_0x3693b7){return _0x7e8be0+_0x3693b7;},'ZBaan':_0x3c3ccb(0x54b,0x371)+_0x453ff5(0x75,0x2d)+'(serv'+'er\x20ru'+_0x3c3ccb(0x228,0x403)+_0x453ff5(-0x50,-0xab)+'PID\x20f'+_0x3c3ccb(0x36f,0x339),'YUGiK':function(_0x43f402,_0x18a631){return _0x43f402+_0x18a631;},'zYPtw':_0x3c3ccb(0x38f,0x573),'tYbEU':_0x3c3ccb(0x41f,0x617),'Eockx':function(_0x2bd4c9,_0x5df73e){return _0x2bd4c9>_0x5df73e;},'rXUAW':'HwOAn','JybWg':function(_0x23c7bd,_0x4836cf){return _0x23c7bd-_0x4836cf;},'ChepX':_0x3c3ccb(0x212,0x6f),'zKSKL':function(_0x697752,_0x3536a8){return _0x697752<_0x3536a8;},'Tlaqw':function(_0x369893,_0xc9fc5d){return _0x369893===_0xc9fc5d;},'PHdoj':_0x453ff5(-0x1e9,-0x3ac)};function _0x453ff5(_0x361725,_0x250d36){return _0x24b44d(_0x361725- -0x239,_0x250d36);}try{if(_0xa7026e[_0x453ff5(-0xc8,-0x240)]===_0x3c3ccb(0x41f,0x263)){const _0x540f04=fsModule[_0x453ff5(-0x16a,-0x2ac)+_0x453ff5(-0x1d4,-0x16c)](logFile,'r'),_0x5e5742=fsModule[_0x3c3ccb(0x436,0x23b)+_0x3c3ccb(0x44b,0x584)](_0x540f04)['size'];if(_0xa7026e[_0x453ff5(0x1c1,0x1a5)](_0x5e5742,position)){if(_0xa7026e[_0x453ff5(0x15c,0x194)]!==_0xa7026e['rXUAW']){const _0x5e87d9=_0x5a9799(_0x318e15,_0x4e72be);if(_0xa7026e[_0x453ff5(-0x204,-0x3ca)](_0x39f659,_0x5e87d9))try{const _0xaa1a95={};_0xaa1a95[_0x453ff5(-0x6d,0xd7)+'sive']=!![],_0xaa1a95[_0x453ff5(0x61,-0x26)]=!![],_0x4c3450(_0x5e87d9,_0xaa1a95),_0x53b003++,_0x28a4b3[_0x3c3ccb(0x5f2,0x5e4)](_0x453ff5(0x84,-0x17b)+'emove'+'d\x20'+_0x147372);}catch(_0x429819){_0x2bc92a[_0x3c3ccb(0x37e,0x257)](_0x3c3ccb(0x495,0x470)+'ailed'+_0x3c3ccb(0x4a4,0x31c)+_0x3c3ccb(0x58a,0x3ea)+'\x20'+_0x4f84dc+':\x20'+_0x429819['messa'+'ge']);}}else{const _0x4e552a=Buffer['alloc'](_0xa7026e[_0x453ff5(-0xa3,0x132)](_0x5e5742,position));fsModule[_0x453ff5(-0x9b,-0x221)+_0x3c3ccb(0x275,0x38d)](_0x540f04,_0x4e552a,-0xe87+0xd5*0x5+0xa5e,_0x4e552a['lengt'+'h'],position),process[_0x3c3ccb(0x3bc,0x261)+'t'][_0x3c3ccb(0x4fb,0x38e)](_0x4e552a['toStr'+_0x453ff5(-0x1f0,-0x12a)](_0xa7026e[_0x453ff5(-0xc2,-0x131)])),position=_0x5e5742;}}else _0xa7026e['zKSKL'](_0x5e5742,position)&&(_0xa7026e[_0x3c3ccb(0x5f9,0x457)](_0xa7026e[_0x453ff5(0x123,0x64)],_0x3c3ccb(0x355,0x173))?_0x1919bc[_0x3c3ccb(0x429,0x289)](_0xa7026e[_0x3c3ccb(0x215,0x2c)]):position=0x9e*0xd+0x1de8+0x2*-0x12f7);fsModule[_0x453ff5(-0x1b8,-0x1f4)+_0x453ff5(0x2,-0x154)](_0x540f04);}else _0x28ca9b?_0xa7026e[_0x453ff5(-0x228,-0x1ef)](_0x1625ea,_0xa7026e[_0x3c3ccb(0x4cf,0x50b)](_0x3c3ccb(0x38f,0x1b0),_0x51baf5),_0xa7026e[_0x453ff5(0x1a,-0x16c)]):_0xa7026e[_0x453ff5(-0x228,-0x2e3)](_0xb7fc49,_0xa7026e[_0x453ff5(-0x1fc,-0x313)](_0xa7026e[_0x453ff5(0x10,0xd2)],_0x4445ea),_0x3c3ccb(0x54b,0x5dd)+_0x3c3ccb(0x298,0x354));}catch{}});process['on'](_0x24b44d(0x77,0x18c)+'T',()=>{watcher['close'](),process['exit'](0x3*-0x527+-0x1*0xdce+0x1d43);}),process['on']('SIGTE'+'RM',()=>{watcher[_0x29a997(0x26f,0x2c5)]();function _0x32313c(_0x48f84c,_0x326c62){return _0x2077cd(_0x326c62- -0xc4,_0x48f84c);}function _0x29a997(_0x42b216,_0x216725){return _0x2077cd(_0x216725-0xe1,_0x42b216);}process[_0x29a997(0x4de,0x42b)](-0x2a1+0xc2e*-0x1+0xecf);});}function _0x4ce9(){const _0x15a7dd=['\x20been','\x20conf','PMvwi','enAI\x20','ation','execP','fewWi','\x20\x20\x20Sh','floor','ata\x0a\x20','kQRMV','8080\x20','ed,\x20','(PID\x20','elp\x0a\x0a','slice','rXUAW','destr','OR\x20en','EADDR','\x20on\x20c','\x20Uplo','ge.js','ync.j','found','ELEVE','\x208080','r\x20and','n\x20npm','\x20loca','dfGsa','PuhFs','--pat','--for','insta','k\x20Uni','og\x20st','\x20limi','AppDa','info','\x0a\x20\x20Ho','MxfJZ','#\x20Run','edit','led\x20t','ink\x20(','YYvvw','mDOpy','mode','abs\x20k','strin','\x20\x20Run','ntrie','nfig\x20','\x20chat','\x20--fo','audio','sWith','et\x20Fr','✓\x1b[0m','\x20\x20\x20-h','\x20PID:',')\x0a\x20\x20\x20','e\x20is\x20','\x0a⬡\x20Re','pdate','tarte','l\x20upl','\x0a⬡\x20Wa','tor\x20—','code','\x20.env','\x20warn','art','.migr','--no-','ce\x20/v','ink\x20s','ackag','[0m','\x0a\x20\x20Pr','index','HtYkI','thout','moonc','BctaN','confi','e\x20to\x20','btygY',':\x0a\x20\x20\x20','\x20\x20\x20\x20d','l\x20cle','to\x20cl','log','d\x20dat','argv','th\x20wa','apply','\x20\x20Aut','d\x20.en','Tlaqw','663855cGIcMm','\x20npm\x20','on:\x20\x20','DmDLh','nk-se','mine\x20','\x20—\x20ru','rent\x20','.\x20👋\x0a','ZgOnx','nes\x0a\x20','.upli','\x20less','tart\x20','gured','hing\x20','Eockx','one.\x0a','led)','from\x20','BQXgL','he\x20la','⬡\x20Upd','utf8','achab','Node.','ZjoGK','ompan','metho','hat\x20c','UPLIN','pt\x0a\x20\x20','npm\x20p','...\x0a','atchd','\x22\x20|\x20t','_API_','\x20\x20\x20\x20\x20','bizMr','\x20\x20\x20\x20•','18\x20re','Tail\x20','resum','ninst','tchdo','nning','actio','promp','\x20unin','ory\x20a','t\x20wat','vxAIF','\x0a\x20\x20No','ing.','fail','AXpPW','ORIba','notep','reada','\x20\x20Opt','\x20with','ple\x20.','JjAql','CPGgp','k\x20whe','\x20\x20\x20--','\x20data','\x20to\x20l','KEN','logs,','/loca','\x20\x20Thi','\x20on\x20(','og\x20(P','YFkiJ','g\x20(au','akLcd','es...','\x1b[31m','#\x20Cle','nk-ch','Depen','YUGiK','lengt','--por','es\x20N\x20','e\x20und','ow\x20cu','mples','\x20Miss','glanc','tall\x20','TTS\x20A','df\x20-k','ing','or\x0a\x20\x20','\x20--no','\x20\x20Exp','\x20vers','platf','ected','WXNMO','logs','||\x20ti','e:\x0a\x20\x20','compl','s...\x20','art\x20t','.0.0.','\x20--ed','|5|2','fPjKx','DGQPj','faile','⬡\x20Ope','dog','\x20\x20Try','dog.j',':\x27\x22\x20g','ncomp','I_API','s\x20alr','ync','versa','g\x20for','RUTwo','rrent','\x1b[32m','ound\x20','138775XmVpTw','\x20or\x20e','\x20(>=\x20','qPOYd','ated','creat','all\x20-','sive','\x20\x20Com','\x20\x20Or\x20','\x20line','SIGIN','ns]\x0a\x0a','ssed','pvXSI','vjXlB','any/u','k\x20—\x20L','s\x20run','not\x20s','ion','close','data','misse','\x20\x20Sto','--hos','ShoNa','AI\x20Ch','able','rt:\x20\x20','l\x20log','BMKhV','lines','js\x20ve','onfig','son','ector','opped','\x0a⬡\x20Up','ink\x20i','QAbtW','Host\x20','ine','aw\x20se','chdog','gify','⬡\x20Sto','\x20item','wing\x20','\x20edit','g\x20was','OEvIH','SIGTE','premi','op\x20a\x20','nes\x201','\x20\x20Cre','-forc','NLABS','ached','win32','\x20file','e\x20glo','\x20/t\x201','nd\x20wa','lt\x20po','\x20Numb','encod','hdog\x20','oqvKv','nphnc','\x20\x20\x20#\x20','7|6|0','INUSE','(Ctrl','now','et\x0a','2>&1','ID=\x27','\x20on\x20t','backo','kvlca','\x0a\x20\x20Ca','st:\x20\x20','536iLkBgU','l\x20con','814665IpTKSW','\x20\x20\x20St','ady\x20c','\x20\x20\x20\x20O','p\x20it\x20','igura','fore\x20','rce,\x20','\x20\x20\x20\x20-','\x20in\x20','erver','\x20cach','.json','openS','36RZDGlD','ists','l\x20tim','eady\x20','0.0.0','filte','\x20info','⬡\x20Cur','eacha','\x1b[90m','pm\x20up','docto','tarts','HeMfT','ZPYYA','MAPZN','whWlS','bally','irst:','⬡\x20Upl','pany/','Oifpc','/agen','link.','\x20-g\x20@','Eadzh','llgUJ','kKWls','oncom','ID\x20','HFJxo','or\x20us','padEn','parse','empty','751852OdpHRq','liste','\x20@moo','ssing','100\x20l','g.pid','th:\x20u','port','ed.\x20N','mpany','cwd','r.log','IeMar','ctor\x20','ll\x20','firma','direc','host','/dev/','\x20Diag','messa','s\x20but','-g\x20@m','set\x20-','o-res','sepHL','hen\x20t','e\x20by\x20','il\x20th','umKey','copy\x20','vatar','rPid','e\x20\x20\x20\x20','yqnOE','ly:\x20n','nk.pi','tions','the\x20l','label','ne\x20wi','\x20#\x20Ed','d-mes','Gatew','serve',':\x20v','versi','XpRdg','\x20enab','es\x20ex','not\x20b','eServ','⬡\x20Res','\x20in\x20e','igure','match','\x20upli','media','jAeYh','⬡\x20Fai','\x20Fail','once','exist','xampl','ating','first','reak\x20','y)\x1b[0','kpBUI','\x20runn','PID\x20f','watch','noWat','iqGGJ','n\x20can','ault:','\x20/nob','rver\x20','detai','\x20Push','ORD','jkPIh','tUimG','SkAjN','AY_TO','nosti','how\x20(','share','e\x20\x22un','ncell','\x20logs','rt\x20th','VVQpC','ng\x20Up','k\x20Res','fQdhe','f\x20Upl','the\x20e','subsc','\x20\x20Tha','linux','t\x20sta','orm','|1|3|','\x20and\x20','mxVCi','octor','\x20\x20Typ','ile)','.env\x20','reque','AY_UR','LqxhV','g\x20fil','ffMs','readl','-f\x20\x20\x20','path','space','max','y:\x20','anoth','activ','error','to\x20co','+C\x20to','tYbEU','-v\x20\x20\x20',':\x20\x20\x20\x20','de.js','stdin','nfirm','ChepX','ach','.env','\x0a\x20\x20\x20\x20','ile\x20f','at\x0a','\x20DATA','qGrrV','Port\x20','o\x20ope','stall','oonco','charA','o\x20sto','cript','input','ons','\x20hist','e...','push-','nose\x20','lt:\x203','hat\x20s','CREDE','\x20\x20\x20\x20i','1274742XHcoPo','anual','emovi','figur','\x20subs','hdeIn','JybWg','aded\x20','PID\x20','\x20sync','rYjDJ','log\x20f','n\x20iss','d-con','readS','ttp:/','file\x20','\x20\x20\x20\x20','letel','ing\x20m','file','k\x20Doc','OpenA','v\x20var','ng\x1b[0','ally:','a\x20dir','UdFAE','stdou','how\x20t','in\x20us','RzPtQ','JgOBL','n\x20edi','\x20H\x20\x20\x20','g\x20@mo','rUFrK','\x0a\x20\x20⚠️\x20','.0.1','ay\x20be','ar\x20da','\x0a\x20\x20In','\x20\x20Sta','e\x20ser','edAt','eck\x20i','backg','d\x20ser','split','wOrGW','t\x20rea','at\x20a\x20','tarti','--det','YdGDk','ctivi','homed','eeSpa','ken','ult:\x20','recur','KEY','red','join','ved.\x0a','ree','jJtpk','Disk\x20','\x20\x20Res','ing\x20U','.env.','hat','\x20mode','les','ning','Itpjf','ailed','(((.+','ll\x20\x20\x20','er\x20of','it\x20.e','OPENA','outpu','v,\x20co','resta','oads\x20','searc','exit','\x20than','\x20via\x20','ripti','ts\x20(r','SYkIm','sAIZK','GATEW','inher','v\x20fil','r\x20its','uplin','K_HOS','size','ear\x20—','✗\x1b[0m','warn','npm\x20u','⬡\x20.en','commo','\x20inst','ree\x20—','efNpL','(none','ata\x0a\x0a','.\x20Run','eqoMi','uJUTB','BMyAt','nfo\x20\x20','#\x20Upl','examp','m(unr','us\x20\x20\x20','re\x20\x22D','ge.','dated','ditor','mode)','Key','uTGps','ta\x20di','\x20clea','p\x20con','evice','detac','th\x20(c','PAWMO','no\x20Op','othin','kill','GhZfM','ink-c','s\x20not','cking','statu','ocess','unins','t\x20N\x20\x20','estar','\x0a\x20\x20Ga','#\x20Sta','his\x20h','fstat','or\x20El','\x20Remo','node_','Clear','gfscT','your_','MSkoB','runs.','aXGTe','rtCou','\x20Chat','\x20\x20\x20un','repea','ity.j','s\x20que','k\x20Con',')+)+)','ar:','ng\x20(','ver\x20(','Sync','etup\x20','—\x20run','npx\x20u','ksNew','rt\x20--','ed\x20to','le\x20pa','g.jso','ver\x20P','\x0a\x20\x20','toUpp','env','ANEYC','zYPtw','rver.','\x20\x20Upt','ugKgQ','d\x20(PI','vuEqW','toLow','ink\x20C','xTPzs','e:\x20cp','ZBaan','XBSGg','r.js','sages','hZPZn','hed','ThxVl','ay\x20to','\x20—\x20No','ANKwM','aldis','stdio','nd]\x20[','inclu','\x20(con','quest','meout','\x20\x20⚠️\x20\x20',':\x20upl','\x20node','o\x0a\x0a\x20\x20','stop','\x20remo','plink','⬡\x20Sho','evenL','ent\x20s','\x20curr','d\x20log','\x20\x20Wat','PNPuJ','date\x20','BQnmC','FLHwX','requi','pid','modul','NapTU','end','k-cha','qxGOX','RiPha','\x20\x20Set','WQKZZ','ch,\x20-','not\x20d','\x20star','d\x20wat','th:\x20','lean.','\x20\x20✗\x20F','could','hostn','YOYfx','ks\x20pa','PORT','STPol','updat','publi','token','http:','on:\x20v','tall','\x20not\x20','3327eDbIdr','\x20to\x20r','\x20\x20→\x20h','\x20manu','eInte','disk\x20','--edi','force','erCas','on\x20(v','\x20Usag','last\x20','ath','sion','3|4|5','rt\x0a\x20\x20','lled','l\x20NOT','\x20Show','456)\x0a','m\x20pac','VRwzL','t\x20\x20\x20\x20','1:187','\x20\x20\x20\x20#','--hel','GhYVF','able\x20','c/aud','nAHFy','set\x22\x20','⬡\x20Che','\x20\x1b[31','DdlJr','\x20Upli','ready','nk-wa','\x20\x20\x20\x20S','atest','\x201\x202>','UvwBw','rash.','\x20\x20✓\x20R','g.log','aEWGe','ocal\x20','defau','-watc','\x20MB\x20f','50)\x0a\x20','aemon','ime:\x20','ssage','help','y\x20uni','A_DIR','ons.j','\x20\x20upl','er\x20pr','runni','qRZEv','o\x20con','\x20>=\x201','t\x20on\x20','Stop\x20','round','TTS\x20m','ng\x20wi','\x20500\x20','ay\x20re','SZHdW','ver\x20l','rface','n\x20rea','to-re','|1|6|','etect','setup','_modu','logic','r:\x20\x20\x20','tor:\x20','urati','\x20new\x20','ignor','PI\x20ke','\x20\x20Log','teway','write','test\x20','pnrLe','koff:','ogs\x20i','he\x20Up','TOKEN','deter','y/upl','r\x0a\x20\x20\x20','o\x20fil','nks\x20f','Value','\x20\x20Not','d\x20\x20\x20\x20','r\x20(de','ve\x20ag','ink\x20d','ated\x20','necte','packa','es\x20in','null\x20','lhost','_DIR/','rsion','\x20the\x20','⬡\x20Aut','e\x20\x22re','s\x20fro','cs\x0a\x20\x20','not\x20f','ete.','Versi','rt\x20on','(serv',',\x20PID','\x20\x20Use','s\x20wil','art\x20m','emium','\x20watc','fIngG','tion\x20','des','files','tion\x0a','7|2|0','jDYav','KATwP','tion','\x20\x20⬡\x20A','XxKej','uRjRs','ions\x20','node','-deta','d)\x1b[0','some','IEXOs','-chat','yCFIC','ty\x20da','\x20chec','ID:\x20\x20','s\x20and','\x0a\x20\x20⬡\x20','and\x20c','NTIAL','gVWrj','timeo','e:\x20\x20\x20','dit\x20m','LYbrj','e\x0a\x20\x20\x20','p\x20Upl','map','start','\x20comp','uploa','avail','\x20\x20✓\x20S','pping','er\x20ru','ve\x20al','NFOyc','stopp','ate\x20o','ed\x1b[0','IzEmt','m\x20(PI','eset)','\x20(PID','x\x20upl','--lin','Uplin','⬡\x20Cre','127.0','ail\x20-','port\x20','hat\x20[','set\x20\x20','\x20Star','wmic\x20','pass','AQuhe','ges-s','FCcEs','971032RypUes','led.','isten','lViQf','\x20(.en','PHdoj','\x20log\x20','d\x20DAT','\x20Unin','quire','MdsIW','toppe','_here','\x20to\x20s','n\x20bac','ig\x20fi','ues\x0a\x20','toStr','nano','ed:\x20\x20','at\x20st','ed\x20me','kGjIM','trim','uto-r','\x20\x20\x20re','l\x20Upl','art!','⬡\x20No\x20','mands','sh\x20st','ly\x20wi','****','ig\x20--','PASSW','emove','ame','reset','push','ink\x20w','top','\x20\x20Ser','sync-','\x20port','\x20\x20npx','ll\x22\x20t'];_0x4ce9=function(){return _0x15a7dd;};return _0x4ce9();}if(command===_0x24b44d(0x3db,0x541)+'g'){const ENV_FILE=existsSync(join(DATA_DIR,_0x24b44d(0x179,0xfc)))?join(DATA_DIR,_0x2077cd(0x2dc,0x22c)):join(ROOT,_0x24b44d(0x179,0xbb));flags[_0x2077cd(0x2cb,0x21a)]&&(console[_0x24b44d(0x3e2,0x1e4)](ENV_FILE),process[_0x2077cd(0x34a,0x1d0)](0x1*-0x44f+-0x203e*-0x1+-0x1bef));if(flags[_0x2077cd(0x513,0x4fd)]){if(!existsSync(ENV_FILE)){const exampleFile=join(ROOT,_0x24b44d(0x1d6,0x1f0)+_0x24b44d(0x206,0x3bb)+'le');existsSync(exampleFile)?(writeFileSync(ENV_FILE,readFileSync(exampleFile,'utf8')),console[_0x24b44d(0x3e2,0x1f4)](_0x24b44d(0x34b,0x4b7)+'ated\x20'+_0x2077cd(0x2c3,0x4b1)+_0x2077cd(0x560,0x5f6)+'.env.'+_0x2077cd(0x369,0x4c9)+'le')):(writeFileSync(ENV_FILE,_0x24b44d(0x205,0xb4)+_0x2077cd(0x3b3,0x34e)+_0x2077cd(0x1f1,0x1c4)+_0x2077cd(0x448,0x377)+'on\x0a'),console[_0x24b44d(0x3e2,0x5b9)](_0x24b44d(0x34b,0x459)+_0x24b44d(0x2fd,0x42c)+_0x24b44d(0xf2,0x1f9)+_0x24b44d(0x3cc,0x238)+_0x24b44d(0xa9,0xb)));}const editor=process.env.EDITOR||(process[_0x2077cd(0x1b1,0x2b6)+_0x2077cd(0x2bc,0x134)]===_0x24b44d(0xa8,0x88)?_0x24b44d(0x24,0x109)+'ad':_0x24b44d(0x369,0x510));console['log'](_0x24b44d(0x5d,0x24)+'ning\x20'+ENV_FILE+_0x24b44d(0xcb,0x1d1)+editor+'...');try{const _0x23bafb={};_0x23bafb[_0x2077cd(0x3c1,0x4d4)]=_0x24b44d(0x1ef,0x90)+'it',execSync(editor+'\x20\x22'+ENV_FILE+'\x22',_0x23bafb);}catch(_0x4d4f5e){console['error'](_0x2077cd(0x291,0x141)+_0x2077cd(0x514,0x5b8)+_0x2077cd(0x2e3,0x1ab)+_0x2077cd(0x314,0x511)+_0x24b44d(0x2e4,0x30f)+_0x4d4f5e['messa'+'ge']),console[_0x24b44d(0x16e,0x71)](_0x24b44d(0x27d,0x397)+'\x20EDIT'+_0x24b44d(0x397,0x522)+_0x24b44d(0x1a7,0x21a)+_0x2077cd(0x1d0,0x11b)+_0x2077cd(0x496,0x55d)+_0x24b44d(0x191,0x9a)+'ly:\x20'+ENV_FILE),process[_0x2077cd(0x34a,0x2c3)](0x41b+0x13d*0x17+-0x2095*0x1);}process[_0x2077cd(0x34a,0x303)](-0x8*0x110+0x11*-0x17+0xa07*0x1);}!existsSync(ENV_FILE)&&(console[_0x2077cd(0x545,0x6fd)](_0x2077cd(0x4d6,0x651)+_0x2077cd(0x2c3,0x2e7)+_0x24b44d(0x1a0,0x278)+_0x2077cd(0x500,0x345)+'.'),console[_0x2077cd(0x545,0x6b3)](_0x24b44d(0xa4,0x23a)+_0x2077cd(0x4a5,0x473)+_0x24b44d(0x11b,0x109)+_0x2077cd(0x25c,0x2c1)+'plink'+_0x24b44d(0x327,0x3c6)+_0x2077cd(0x4e9,0x527)+_0x2077cd(0x4db,0x4d0)+_0x2077cd(0x513,0x41a)),console[_0x24b44d(0x3e2,0x2ab)](_0x2077cd(0x1d8,0x338)+_0x2077cd(0x274,0x29c)+_0x24b44d(0x154,-0x5b)+_0x24b44d(0x132,0x93)+_0x24b44d(0x252,0x44f)+_0x2077cd(0x52f,0x566)+'.exam'+_0x2077cd(0x18b,0x16f)+_0x24b44d(0x247,0x43f)),process[_0x2077cd(0x34a,0x14d)](-0x92b+-0x146e+-0x1a5*-0x12));const SENSITIVE_KEYS=[_0x24b44d(0x2f1,0x198),_0x2077cd(0x330,0x38d),'SECRE'+'T',_0x2077cd(0x4dc,0x30e)+_0x2077cd(0x2a6,0x435),_0x24b44d(0x18e,0x29d)+_0x24b44d(0x32f,0x21b)];function maskValue(_0x41dd37,_0x233b7f){const _0x89bbb9={};_0x89bbb9[_0x615cb2(-0x115,0x56)]=function(_0x536366,_0x4688d0){return _0x536366||_0x4688d0;},_0x89bbb9[_0x615cb2(0x123,0x269)]=function(_0x966d5c,_0x138372){return _0x966d5c+_0x138372;},_0x89bbb9[_0x3fec0b(0x18f,0x29d)]=_0x3fec0b(0x1c6,0x123);const _0x9907af=_0x89bbb9,_0x3471df=SENSITIVE_KEYS[_0x3fec0b(0x174,-0x3)](_0x53452e=>_0x41dd37[_0x615cb2(-0x1e,0xe4)+_0x615cb2(0x37,-0x6c)+'e']()['inclu'+_0x3fec0b(0x166,-0x61)](_0x53452e));function _0x615cb2(_0x24cac8,_0x4970d7){return _0x24b44d(_0x24cac8- -0x264,_0x4970d7);}if(_0x9907af[_0x3fec0b(-0x62,-0x146)](!_0x3471df,!_0x233b7f)||_0x233b7f['lengt'+'h']<=-0x347*0x4+0x13ec+0xa*-0xae)return _0x233b7f;function _0x3fec0b(_0x424516,_0x4cefb2){return _0x24b44d(_0x424516- -0x1b1,_0x4cefb2);}return _0x9907af[_0x3fec0b(0x1d6,0x2cd)](_0x233b7f[_0x615cb2(0x130,0x122)](0x1*-0xd1e+0x97d*-0x4+0x3312,-0x1d*0x3+0x3b3*0x1+-0x358),_0x9907af[_0x3fec0b(0x18f,0x387)]);}try{const content=readFileSync(ENV_FILE,'utf8'),entries=[];for(const line of content[_0x24b44d(0x1c0,0xc3)]('\x0a')){const trimmed=line[_0x2077cd(0x4d1,0x692)]();if(!trimmed||trimmed['start'+'sWith']('#'))continue;const eqIdx=trimmed['index'+'Of']('=');if(eqIdx===-(-0x43*0x12+0x158e+-0x10d7*0x1))continue;const key=trimmed['slice'](-0x1884+-0x15b5+0x2e39,eqIdx)[_0x24b44d(0x36e,0x4f9)](),val=trimmed['slice'](eqIdx+(0x2*0x5c1+0x7d5+-0x1356))['trim']();entries['push']([key,val]);}entries[_0x24b44d(0x3e,-0x7c)+'h']===0xc85+0x394+-0x1019&&(console[_0x24b44d(0x3e2,0x507)](_0x2077cd(0x35c,0x355)+_0x2077cd(0x353,0x384)+_0x24b44d(0x3c4,0x1ff)+'empty'+_0x24b44d(0x200,0x320)+':\x20upl'+_0x24b44d(0x21b,0x19c)+'hat\x20c'+_0x2077cd(0x1f1,0x3c2)+'\x20--ed'+'it'),process[_0x2077cd(0x34a,0x473)](-0x1d4e+0xdee*0x1+0xf60));const maxKeyLen=Math[_0x2077cd(0x2cd,0x413)](...entries[_0x24b44d(0x337,0x455)](([_0x321480])=>_0x321480[_0x2077cd(0x1a1,0x1e2)+'h']));console[_0x2077cd(0x545,0x64d)](_0x24b44d(0x32d,0x400)+_0x2077cd(0x4ad,0x4a2)+_0x2077cd(0x399,0x1f4)+_0x24b44d(0x193,0x82)+_0x24b44d(0x389,0x2a6)+'\x0a'),console['log']('\x20\x20'+_0x2077cd(0x371,0x332)[_0x2077cd(0x253,0x25c)+'d'](maxKeyLen+(-0xe*-0x227+0x13bd+0x3*-0x109f))+_0x24b44d(0x2f7,0x478)),console[_0x24b44d(0x3e2,0x412)]('\x20\x20'+'─'[_0x2077cd(0x396,0x327)+'t'](maxKeyLen+(0x19e6+-0x10f6*-0x1+-0x2ada))+'─'['repea'+'t'](-0xdd7+0xb05+-0x2fa*-0x1));for(const [key,val]of entries){const display=val?maskValue(key,val):_0x24b44d(0xd9,-0xa9)+'(empt'+_0x24b44d(0x136,0x118)+'m';console[_0x2077cd(0x545,0x360)]('\x20\x20'+key['padEn'+'d'](maxKeyLen+(0x11c9+-0x1acb+0x904*0x1))+display);}console[_0x2077cd(0x545,0x65d)]('\x0a\x20\x20Pa'+_0x24b44d(0x283,0x32a)+ENV_FILE+'\x0a');}catch(_0x2ed3bd){console[_0x2077cd(0x2d1,0x1db)](_0x24b44d(0x12e,-0x7e)+'led\x20t'+'o\x20rea'+_0x2077cd(0x54b,0x66c)+'v:\x20'+_0x2ed3bd[_0x24b44d(0x107,0x30)+'ge']),process[_0x2077cd(0x34a,0x485)](-0x1a8d+0x145+-0x1949*-0x1);}process[_0x2077cd(0x34a,0x498)](-0x23a+0x127d+-0x1*0x1043);}if(command===_0x2077cd(0x23e,0x250)+'r'){const require=createRequire(import.meta.url),pkg=require(join(ROOT,_0x24b44d(0x2ff,0x211)+_0x24b44d(0x39b,0x1e3)+'on'));console[_0x2077cd(0x545,0x6b6)]('\x0a\x20\x20⬡\x20'+_0x24b44d(0x34a,0x4ae)+_0x24b44d(0x1a5,0x2e8)+_0x24b44d(0x3ca,0x2a0)+'\x20v'+pkg[_0x2077cd(0x284,0x440)+'on']+'\x0a');const results=[];function pass(_0x4e12e1,_0x55203c){const _0x2d198b={};_0x2d198b['UJuDg']='pass';function _0x5f2527(_0x28bc98,_0x2ca8c9){return _0x24b44d(_0x2ca8c9- -0x16f,_0x28bc98);}const _0x2535be=_0x2d198b,_0x541bbf={};function _0x581f00(_0x129e88,_0x597705){return _0x24b44d(_0x597705- -0x329,_0x129e88);}_0x541bbf['statu'+'s']=_0x2535be['UJuDg'],_0x541bbf[_0x5f2527(-0x123,-0x55)]=_0x4e12e1,_0x541bbf['detai'+'l']=_0x55203c,results[_0x581f00(0x1b0,0x54)](_0x541bbf);}function fail(_0x1603d2,_0x2b920c){function _0x18a1a0(_0x424395,_0x7009c6){return _0x2077cd(_0x424395-0x140,_0x7009c6);}const _0x293c39={};_0x293c39[_0x11b9f5(0x160,0x17b)]=_0x11b9f5(-0x2f9,-0x207);const _0x1cb319=_0x293c39,_0x412fa7={};_0x412fa7[_0x18a1a0(0x4c1,0x534)+'s']=_0x1cb319[_0x18a1a0(0x646,0x776)];function _0x11b9f5(_0x22e723,_0x236987){return _0x2077cd(_0x236987- -0x38b,_0x22e723);}_0x412fa7[_0x11b9f5(-0x27f,-0x10e)]=_0x1603d2,_0x412fa7[_0x11b9f5(-0x241,-0xe7)+'l']=_0x2b920c,results[_0x11b9f5(0x305,0x155)](_0x412fa7);}function warn(_0x26c4d5,_0x3fe63d){const _0x1b68e3={};_0x1b68e3['UdFAE']=_0x51d726(0xca,0x14f);const _0x1d2e51=_0x1b68e3,_0x372c51={};_0x372c51['statu'+'s']=_0x1d2e51[_0x4f68b8(0x18d,0x1d4)];function _0x4f68b8(_0x5ce8a1,_0x5a71f8){return _0x2077cd(_0x5a71f8- -0x13a,_0x5ce8a1);}function _0x51d726(_0x56e68a,_0x48d834){return _0x2077cd(_0x48d834- -0x20b,_0x56e68a);}_0x372c51['label']=_0x26c4d5,_0x372c51[_0x4f68b8(-0x22,0x16a)+'l']=_0x3fe63d,results['push'](_0x372c51);}const nodeVer=process[_0x24b44d(0x121,0x1df)+_0x24b44d(0x187,0x108)][_0x24b44d(0x322,0x368)],nodeMajor=parseInt(nodeVer['split']('.')[-0x3d7*-0x3+-0x2570+-0x19eb*-0x1],-0x24e7+0x1b80+0x971);nodeMajor>=-0x3*-0x4e5+0x18d6+-0x2773?pass(_0x24b44d(0x4,0x1c0)+_0x2077cd(0x1f0,0x153)+_0x24b44d(0x304,0x3fe),'v'+nodeVer+(_0x2077cd(0x1d1,0x277)+_0x24b44d(0x13,-0x121)+_0x24b44d(0x360,0x201)+'d)')):fail(_0x2077cd(0x167,0x1e0)+'js\x20ve'+'rsion','v'+nodeVer+(_0x2077cd(0x3be,0x35a)+'de.js'+_0x24b44d(0x2d1,0x3f0)+'8\x20is\x20'+_0x24b44d(0x275,0x285)+_0x24b44d(0x1ce,0x64)));const ENV_FILE=existsSync(join(DATA_DIR,_0x2077cd(0x2dc,0x323)))?join(DATA_DIR,_0x24b44d(0x179,0x1cd)):join(ROOT,_0x24b44d(0x179,0x155));let envPort=-0x3*-0x269+-0x6e+0x6b3,envGatewayUrl=_0x24b44d(0x28f,0x236)+'//127'+_0x2077cd(0x1ba,0x10f)+_0x2077cd(0x40d,0x4ee)+'89',envGatewayToken='',envOpenAIKey='',envElevenLabsKey='';if(existsSync(ENV_FILE))try{const content=readFileSync(ENV_FILE,_0x2077cd(0x165,0x40));for(const line of content[_0x24b44d(0x1c0,0x57)]('\x0a')){const t=line[_0x2077cd(0x4d1,0x579)]();if(!t||t['start'+_0x24b44d(0x3be,0x329)]('#'))continue;const eqIdx=t[_0x2077cd(0x539,0x61f)+'Of']('=');if(eqIdx===-(0x1e52+0x4*-0x33e+-0x1159))continue;const k=t['slice'](-0x265e+0x11c7+-0x1497*-0x1,eqIdx)['trim'](),v=t['slice'](eqIdx+(-0x3e2+-0x44f+0x832))[_0x2077cd(0x4d1,0x2d5)]();if(k===_0x24b44d(0x28a,0xc0))envPort=parseInt(v,-0x1e6f+-0x2341+0x41ba)||-0x5*-0x1+-0x19fd+-0x2778*-0x1;if(k==='GATEW'+_0x24b44d(0x162,0x274)+'L')envGatewayUrl=v;if(k===_0x2077cd(0x351,0x407)+'AY_TO'+_0x24b44d(0x2f,0xed))envGatewayToken=v;if(k===_0x2077cd(0x344,0x231)+_0x2077cd(0x1c6,0x6d)+'_KEY')envOpenAIKey=v;if(k===_0x24b44d(0x39e,0x317)+_0x24b44d(0xa6,0x201)+_0x24b44d(0xf,-0x154)+_0x2077cd(0x330,0x40a))envElevenLabsKey=v;}}catch{}const portAvailable=await new Promise(_0x59e450=>{function _0x22b65f(_0x338c7e,_0x1452ac){return _0x2077cd(_0x1452ac- -0x250,_0x338c7e);}const _0x4859e9={'sbzaV':_0x27b66f(0x20a,0x134)+_0x22b65f(0xca,-0x38),'nAHFy':function(_0x52dff6,_0x549e7c){return _0x52dff6(_0x549e7c);},'hZPZn':_0x27b66f(-0x20,0x8),'MSkoB':_0x27b66f(-0x9a,-0xfc)+_0x27b66f(0x4c,-0x1a6),'qxGOX':'127.0'+'.0.1'},_0x2f3d62=_0x3653cc[_0x27b66f(-0x11d,-0x140)+_0x22b65f(0xb7,0x39)+'er']();_0x2f3d62[_0x27b66f(-0x5e,-0x3b)](_0x4859e9[_0x27b66f(0xc9,0x152)],_0x46ffbd=>{function _0x295e26(_0x230bc8,_0xd78728){return _0x27b66f(_0xd78728-0x573,_0x230bc8);}if(_0x46ffbd[_0x295e26(0x846,0x7b0)]===_0x4859e9['sbzaV'])_0x59e450(![]);else _0x4859e9['nAHFy'](_0x59e450,!![]);});function _0x27b66f(_0x364029,_0x21f676){return _0x2077cd(_0x364029- -0x2f1,_0x21f676);}_0x2f3d62['once'](_0x4859e9[_0x22b65f(0x137,0x140)],()=>{function _0x105415(_0x1e8488,_0x3d1c2d){return _0x22b65f(_0x1e8488,_0x3d1c2d- -0x150);}_0x2f3d62[_0x105415(-0x2dd,-0x1bc)]();function _0x148d8c(_0x5c4ad5,_0x213698){return _0x22b65f(_0x5c4ad5,_0x213698- -0xfc);}_0x4859e9[_0x148d8c(-0x3,0xc7)](_0x59e450,!![]);}),_0x2f3d62[_0x27b66f(-0x9a,0x91)+'n'](envPort,_0x4859e9[_0x27b66f(0xed,0x83)]);}),serverRunning=!!(getWatchdogPid()||getPid());portAvailable?serverRunning?pass(_0x24b44d(0x17f,0x361)+envPort,_0x2077cd(0x49e,0x4e6)+_0x2077cd(0x411,0x611)+_0x2077cd(0x471,0x2ca)+_0x2077cd(0x4a1,0x473)+'nning'+_0x2077cd(0x34c,0x44b)+'PID\x20f'+_0x24b44d(0x15f,0x117)):pass('Port\x20'+envPort,_0x24b44d(0x33b,0x4e3)+_0x2077cd(0x1eb,0x2fc)):serverRunning?pass(_0x24b44d(0x17f,0xa5)+envPort,'in\x20us'+_0x24b44d(0x10e,0x20f)+_0x24b44d(0x34a,0x29f)+'k'):fail(_0x24b44d(0x17f,0x1f7)+envPort,_0x2077cd(0x311,0x44c)+_0x2077cd(0x271,0x2f4)+_0x2077cd(0x2cf,0x35b)+_0x2077cd(0x430,0x4cc)+_0x2077cd(0x382,0x313));const gatewayReachable=await new Promise(_0x40a8d9=>{const _0x173b59={'KATwP':'inher'+'it','kkraH':function(_0x2e4bac,_0x27e034){return _0x2e4bac!==_0x27e034;},'FCcEs':_0xdf354b(0x582,0x399),'uRjRs':'ygAuX','ZgOnx':function(_0x12dd88,_0x3d7c30){return _0x12dd88(_0x3d7c30);},'gVWrj':_0xdf354b(0x3fa,0x456)+'ning','rUFrK':_0xdf354b(0x5ad,0x6ae)+_0xdf354b(0x3b3,0x518),'ZPYYA':function(_0x4fe94d,_0x47c94c){return _0x4fe94d===_0x47c94c;},'VRwzL':_0x53979e(0x2b7,0x46f),'XBSGg':_0xdf354b(0x651,0x5d6),'GhZfM':function(_0x5239f2,_0x2ffe45,_0x39c38e){return _0x5239f2(_0x2ffe45,_0x39c38e);},'RiPha':function(_0x293647,_0x2e10fc){return _0x293647+_0x2e10fc;},'iGzCo':_0x53979e(0x1ae,0x22f),'FfYLy':_0xdf354b(0x866,0x69d)+'able\x20'+'(serv'+'er\x20ru'+_0xdf354b(0x4d1,0x37a)+_0xdf354b(0x5fd,0x54b)+_0x53979e(0x168,0x4b)+'ile)','gxsww':function(_0x302dfe,_0x19074d){return _0x302dfe===_0x19074d;},'BMKhV':'ugKgQ','LqxhV':'GET','ksNew':_0x53979e(0x19d,-0x4e),'qPOYd':_0x53979e(0x360,0x540)+'ut','HFJxo':function(_0x573d00,_0x46d1a9){return _0x573d00!==_0x46d1a9;},'jAeYh':_0x53979e(0x3be,0x309),'vxAIF':_0xdf354b(0x758,0x565)};function _0xdf354b(_0x576b53,_0x3c994c){return _0x24b44d(_0x3c994c-0x362,_0x576b53);}function _0x53979e(_0x2e0298,_0x439a98){return _0x24b44d(_0x2e0298-0x2f,_0x439a98);}try{if(_0x173b59['gxsww'](_0x173b59[_0xdf354b(0x3e8,0x3ed)],_0xdf354b(0x40b,0x5ae))){const _0x14324b=new URL(envGatewayUrl),_0x26261e={};_0x26261e[_0x53979e(0x2b6,0x346)+_0xdf354b(0x88e,0x6dd)]=_0x14324b['hostn'+_0x53979e(0x3aa,0x39d)],_0x26261e[_0xdf354b(0x3fe,0x45c)]=_0x14324b[_0x53979e(0x129,0x10a)]||0x175d*-0x1+-0x1cd7+0x3484,_0x26261e['path']='/',_0x26261e[_0x53979e(0x36,0x1c2)+'d']=_0x173b59[_0xdf354b(0x3bb,0x4c5)],_0x26261e[_0x53979e(0x360,0x183)+'ut']=0x1388;const _0x47b764=_0x910dc9[_0xdf354b(0x3f3,0x4c3)+'st'](_0x26261e,_0x2d27cb=>{function _0x5d48b5(_0x4b4e3c,_0x66e80a){return _0x53979e(_0x4b4e3c-0x12f,_0x66e80a);}function _0xfa06a3(_0x2dd92b,_0x4c1b8b){return _0x53979e(_0x2dd92b- -0x10c,_0x4c1b8b);}const _0x473fd6={'mxVCi':function(_0x5d7eec,_0x56a73f,_0x3d5a42){return _0x5d7eec(_0x56a73f,_0x3d5a42);},'hygFA':_0x173b59[_0xfa06a3(0x23f,0x160)]};_0x173b59['kkraH'](_0x173b59[_0x5d48b5(0x4b4,0x618)],_0x173b59[_0x5d48b5(0x47e,0x608)])?(_0x2d27cb[_0xfa06a3(-0xc8,-0x2b5)+'e'](),_0x40a8d9(!![])):wCGaUB[_0x5d48b5(0x2ba,0x3b7)](_0x2faa5c,_0x148c84+'\x20\x22'+_0x1c28ac+'\x22',{'stdio':wCGaUB['hygFA']});});_0x47b764['on'](_0x173b59[_0x53979e(0x26e,0x11d)],()=>_0x40a8d9(![])),_0x47b764['on'](_0x173b59[_0xdf354b(0x5a9,0x3d1)],()=>{const _0x34e005={'AXpPW':function(_0x103db7,_0x56dff5){return _0x103db7===_0x56dff5;},'pnrLe':function(_0x1118c4,_0x367334){function _0x503497(_0x187eda,_0xfdef7e){return _0x10d4(_0x187eda- -0x34b,_0xfdef7e);}return _0x173b59[_0x503497(0x111,-0x12)](_0x1118c4,_0x367334);},'MdsIW':_0x173b59[_0x131c03(0x6ff,0x728)],'IbxUm':_0x173b59[_0x131c03(0x583,0x53b)]};function _0x131c03(_0x4ed7c2,_0x27710c){return _0xdf354b(_0x27710c,_0x4ed7c2-0x6d);}function _0x595055(_0x440162,_0x499185){return _0xdf354b(_0x440162,_0x499185- -0x39);}if(_0x173b59[_0x131c03(0x4ad,0x4d1)](_0x173b59[_0x595055(0x58a,0x5d1)],_0x173b59[_0x595055(0x681,0x57d)])){const _0x3e9a41={'cwnPm':function(_0x4ead24,_0x1a849e){function _0x536426(_0x45a2b4,_0x541abe){return _0x595055(_0x45a2b4,_0x541abe- -0x24);}return UdSPJo[_0x536426(0x2ca,0x327)](_0x4ead24,_0x1a849e);},'gfscT':_0x595055(0x573,0x6c1)+'INUSE','DmDLh':function(_0x33db91,_0xa34d70){function _0x13537a(_0x2bb4be,_0x3b48c1){return _0x595055(_0x3b48c1,_0x2bb4be- -0x109);}return UdSPJo[_0x13537a(0x50d,0x653)](_0x33db91,_0xa34d70);}},_0x2e1dc9=_0x55fe4d[_0x131c03(0x440,0x29e)+'eServ'+'er']();_0x2e1dc9[_0x131c03(0x4ff,0x6c5)](_0x595055(0x301,0x497),_0x3b48cb=>{function _0x50fe13(_0x3bf6d9,_0xfeec7b){return _0x131c03(_0xfeec7b- -0x18c,_0x3bf6d9);}function _0x428761(_0x1890b4,_0x5783d3){return _0x131c03(_0x1890b4- -0x47,_0x5783d3);}if(_0x3e9a41['cwnPm'](_0x3b48cb['code'],_0x3e9a41[_0x50fe13(0x4fd,0x46e)]))_0x3e9a41[_0x50fe13(0x7f3,0x630)](_0x2bef88,![]);else _0x3e9a41[_0x428761(0x775,0x8d7)](_0x57b948,!![]);}),_0x2e1dc9[_0x131c03(0x4ff,0x652)](UdSPJo[_0x595055(0x77e,0x68a)],()=>{function _0x5cdbde(_0x354c19,_0xae8dd5){return _0x595055(_0xae8dd5,_0x354c19- -0x1ab);}_0x2e1dc9[_0x5cdbde(0x1ff,0xfb)](),_0x3e9a41['DmDLh'](_0x3b7196,!![]);}),_0x2e1dc9[_0x595055(0x5cc,0x41d)+'n'](_0x4d2a40,UdSPJo['IbxUm']);}else _0x47b764[_0x131c03(0x765,0x7f0)+'oy'](),_0x173b59[_0x131c03(0x7c2,0x759)](_0x40a8d9,![]);}),_0x47b764[_0xdf354b(0x4b7,0x5db)]();}else EeiKlO[_0xdf354b(0x3f8,0x57c)](_0x302ed7,EeiKlO[_0xdf354b(0x702,0x5de)](EeiKlO['iGzCo'],_0x34fd88),EeiKlO['FfYLy']);}catch{_0x173b59[_0x53979e(0x11d,-0x56)](_0x173b59[_0xdf354b(0x30b,0x48f)],_0x173b59[_0xdf354b(0x421,0x380)])?_0x173b59[_0xdf354b(0x91d,0x755)](_0x40a8d9,![]):_0x22d50b[_0xdf354b(0x639,0x744)]('\x20\x20'+_0x405f48[_0x2894da[_0x53979e(0x24d,0x2ac)+'s']]+'\x20'+_0xe82c93[_0xdf354b(0x45e,0x47c)]+':\x20'+_0x10d73f[_0xdf354b(0x67b,0x4a3)+'l']);}});gatewayReachable?pass(_0x24b44d(0x11e,0x116)+_0x2077cd(0x43b,0x317)+_0x24b44d(0x3,0x2d)+'le',envGatewayUrl):fail(_0x24b44d(0x11e,0x1c0)+_0x2077cd(0x43b,0x25f)+_0x24b44d(0x3,0x48)+'le','canno'+_0x2077cd(0x325,0x3d0)+'ch\x20'+envGatewayUrl);existsSync(join(ROOT,_0x24b44d(0x229,0x2a8)+_0x24b44d(0x277,0x3fb)+'es'))?pass('Depen'+'denci'+_0x2077cd(0x463,0x300)+_0x24b44d(0x181,0x33c)+'ed',_0x24b44d(0x229,0x290)+_0x24b44d(0x277,0xef)+_0x24b44d(0x124,-0x88)+_0x2077cd(0x234,0x370)):fail(_0x2077cd(0x19f,0x26b)+'denci'+_0x24b44d(0x300,0x2a6)+_0x2077cd(0x2e4,0x1cc)+'ed',_0x24b44d(0x229,0x343)+_0x24b44d(0x277,0x1b2)+'es\x20mi'+_0x2077cd(0x259,0x16e)+_0x2077cd(0x553,0x5f4)+_0x24b44d(0x3a1,0x317)+_0x24b44d(0x1fb,0x287)+'all');if(existsSync(ENV_FILE))try{readFileSync(ENV_FILE,'utf8'),pass(_0x2077cd(0x2c3,0x3cb)+'file',_0x2077cd(0x294,0x146)+_0x2077cd(0x48f,0x492)+'\x20read'+'able');}catch{fail('.env\x20'+_0x2077cd(0x307,0x4a9),'exist'+_0x2077cd(0x26b,0x110)+_0x24b44d(0x292,0x2b0)+_0x24b44d(0x25,0x17c)+'ble');}else fail(_0x2077cd(0x2c3,0x285)+_0x24b44d(0x1a4,0x15),_0x24b44d(0x30a,0x4c4)+_0x2077cd(0x1ce,0x14a)+_0x24b44d(0x23d,0x356)+_0x24b44d(0x265,0x3a2)+_0x24b44d(0x21b,0x12e)+'hat\x20c'+'onfig'+_0x2077cd(0x1bb,0x148)+'it');envGatewayToken&&envGatewayToken!==_0x2077cd(0x38f,0x447)+_0x2077cd(0x3f1,0x591)+_0x2077cd(0x4c6,0x5ab)?pass(_0x2077cd(0x281,0x40d)+'ay\x20to'+_0x24b44d(0x1ca,0x11d),'confi'+_0x24b44d(0x3f8,0x4a6)):fail(_0x24b44d(0x11e,0x1fd)+_0x2077cd(0x3bd,0x3a6)+_0x2077cd(0x32d,0x308),_0x2077cd(0x1e2,0x2f6)+'et\x20in'+'\x20.env');if(envOpenAIKey||envElevenLabsKey){const providers=[];if(envOpenAIKey)providers['push'](_0x2077cd(0x309,0x4a6)+'I');if(envElevenLabsKey)providers[_0x2077cd(0x4e0,0x6de)]('Eleve'+'nLabs');pass(_0x2077cd(0x1aa,0x1d3)+_0x2077cd(0x44b,0x2e7)+'ys',providers[_0x2077cd(0x332,0x4d5)](',\x20')+(_0x24b44d(0x386,0x3ec)+_0x24b44d(0x129,-0x4c)+'d'));}else warn(_0x24b44d(0x47,0x28)+_0x24b44d(0x2e8,0x244)+'ys',_0x24b44d(0x217,0xf1)+_0x24b44d(0x388,0x546)+_0x2077cd(0x38a,0x29f)+_0x2077cd(0x3cf,0x439)+_0x2077cd(0x519,0x645)+'ey\x20—\x20'+_0x24b44d(0x2d5,0x3a5)+_0x2077cd(0x31a,0x201)+_0x24b44d(0x3aa,0x2e2)+'ted\x20t'+'o\x20Edg'+'e\x20TTS');try{const freeBytes=((()=>{const _0x138b31={'kvlca':function(_0x4effc8,_0x418bf0){return _0x4effc8===_0x418bf0;},'RUTwo':_0x12d245(0x2da,0x3df),'mDOpy':function(_0x48f76c,_0x1cf02d){return _0x48f76c+_0x1cf02d;},'jDYav':function(_0x5c204d,_0x4e9142){return _0x5c204d+_0x4e9142;},'txVOY':_0x12d245(0x781,0x689)+_0x15f5d1(0x72e,0x8a7)+_0x12d245(0x45d,0x594)+_0x15f5d1(0x477,0x28f)+_0x15f5d1(0x655,0x607)+_0x15f5d1(0x65f,0x7f5)+_0x12d245(0x29f,0x3f1),'ucZZJ':_0x15f5d1(0x4ad,0x33c)+_0x12d245(0x85d,0x6f6)+_0x15f5d1(0x615,0x77c)+_0x15f5d1(0x81d,0x981)+'alue','rvtQE':'utf8','YYvvw':function(_0x4d42e8,_0x51b0da,_0x47ad41){return _0x4d42e8(_0x51b0da,_0x47ad41);},'ANKwM':function(_0x545eea,_0x915e83){return _0x545eea*_0x915e83;},'QAbtW':function(_0x12fcce,_0x5d8155,_0x6310ae){return _0x12fcce(_0x5d8155,_0x6310ae);}};function _0x15f5d1(_0x32fb00,_0x25212e){return _0x2077cd(_0x32fb00-0x2e9,_0x25212e);}function _0x12d245(_0x140021,_0x4802c5){return _0x2077cd(_0x4802c5-0x1d4,_0x140021);}if(_0x138b31[_0x15f5d1(0x509,0x415)](process['platf'+'orm'],_0x138b31[_0x15f5d1(0x4b4,0x64a)])){const _0x5d7541=execSync(_0x138b31[_0x12d245(0x8dd,0x6eb)](_0x138b31[_0x12d245(0x7a8,0x652)](_0x138b31['txVOY'],ROOT[_0x12d245(0x509,0x4ba)+'t'](-0x150b+-0x1837+-0xf16*-0x3)),_0x138b31['ucZZJ']),{'encoding':_0x138b31['rvtQE']}),_0x39dd41=_0x5d7541[_0x15f5d1(0x576,0x745)](/FreeSpace=(\d+)/);return _0x39dd41?_0x138b31[_0x12d245(0x808,0x6ea)](parseInt,_0x39dd41[-0xf25+-0x1221+0x2147],-0x1033+-0x1c1e+0x2c5b):null;}else{const _0x55dfc1={};_0x55dfc1[_0x15f5d1(0x4fb,0x423)+_0x12d245(0x244,0x380)]=_0x12d245(0x17f,0x339);const _0x2c9a20=_0x138b31[_0x12d245(0x659,0x6ea)](execSync,_0x15f5d1(0x494,0x530)+'\x20\x22'+ROOT+(_0x15f5d1(0x45a,0x5cb)+_0x15f5d1(0x799,0x65b)+'1'),_0x55dfc1),_0x3d9ec1=_0x2c9a20[_0x15f5d1(0x7ba,0x6d8)]()[_0x12d245(0x612,0x4f7)](/\s+/);return _0x138b31[_0x12d245(0x6cc,0x593)](_0x138b31[_0x12d245(0x33c,0x3cb)](parseInt,_0x3d9ec1[-0x1c09+-0xc8a+0x2896],-0x1*0x9f2+0x1fbc+0x740*-0x3),0x30e+0xbb6+-0xac4);}})());if(freeBytes!==null){const freeMB=Math[_0x24b44d(0x2d4,0x178)](freeBytes/((-0x1*0xc28+-0x1*-0x23fd+-0x13d5)*(-0x8*0x6+-0x5*0x47f+0x1aab)));freeMB>=0x230b*0x1+0x9d*-0xb+-0x1a58?pass(_0x2077cd(0x336,0x215)+_0x24b44d(0x169,0x9a),freeMB+(_0x2077cd(0x426,0x60e)+_0x24b44d(0x1d1,0xd2))):warn(_0x2077cd(0x336,0x48a)+_0x24b44d(0x169,0x1d9),freeMB+(_0x24b44d(0x2c3,0x335)+_0x24b44d(0x1fc,0x2e8)+_0x2077cd(0x559,0x699)+_0x2077cd(0x34b,0x4fd)+_0x24b44d(0x2d7,0x1ce)+'MB'));}}catch{warn(_0x2077cd(0x336,0x16a)+_0x2077cd(0x2cc,0x1bc),_0x24b44d(0x286,0x393)+_0x2077cd(0x3f5,0x243)+_0x24b44d(0x2f2,0x2da)+_0x24b44d(0x3ef,0x348)+'free\x20'+_0x2077cd(0x3fb,0x4bd)+'space');}const _0x4ff5df={};_0x4ff5df[_0x2077cd(0x4b6,0x41e)]='\x1b[32m'+_0x2077cd(0x523,0x4e4),_0x4ff5df['fail']=_0x2077cd(0x19c,0x19b)+_0x2077cd(0x359,0x492),_0x4ff5df[_0x2077cd(0x35a,0x4d8)]='\x1b[33m'+'!\x1b[0m';const icons=_0x4ff5df;for(const r of results){console[_0x2077cd(0x545,0x3a3)]('\x20\x20'+icons[r[_0x2077cd(0x381,0x1e8)+'s']]+'\x20'+r[_0x2077cd(0x27d,0x260)]+':\x20'+r[_0x24b44d(0x141,0x104)+'l']);}const passes=results[_0x2077cd(0x238,0x196)+'r'](_0x132efc=>_0x132efc[_0x2077cd(0x381,0x41b)+'s']===_0x2077cd(0x4b6,0x68b))['lengt'+'h'],fails=results[_0x24b44d(0xd5,0x15a)+'r'](_0x18658a=>_0x18658a[_0x2077cd(0x381,0x4e1)+'s']==='fail')[_0x2077cd(0x1a1,0x294)+'h'],warns=results[_0x2077cd(0x238,0x40)+'r'](_0x3c4edc=>_0x3c4edc[_0x2077cd(0x381,0x2f2)+'s']===_0x24b44d(0x1f7,0x1b))['lengt'+'h'];console[_0x24b44d(0x3e2,0x4c8)](''),fails===0x209b+0x1490*-0x1+0x1*-0xc0b?console[_0x2077cd(0x545,0x421)](_0x24b44d(0x31e,0x27a)+_0x24b44d(0x101,-0x88)+passes+(_0x2077cd(0x48d,0x2dc)+_0x2077cd(0x3ec,0x3b9)+_0x24b44d(0x79,-0xe1))+(warns?'\x20('+warns+(_0x24b44d(0x3cd,0x227)+'ing')+(warns>-0x17a3+-0x24fa+0x3c9e?'s':'')+')':'')+'.'):console['log']('\x20\x20⬡\x20'+passes+('\x20pass'+_0x2077cd(0x4f4,0x43e))+fails+('\x20fail'+'ed')+(warns?',\x20'+warns+(_0x24b44d(0x3cd,0x4fb)+_0x2077cd(0x1ac,0x178))+(warns>0x1*-0xb4d+-0x5cf+-0xd*-0x151?'s':''):'')+'.'),console['log'](''),process[_0x2077cd(0x34a,0x4cd)](fails>-0x6b+0x2074+-0x1*0x2009?0x3*-0x8cc+-0x89c+0x2301:-0x239f+0x2*0x455+0x1af5);}if(command===_0x2077cd(0x4df,0x43e)){const {rmSync}=await import('fs');console['log'](_0x2077cd(0x490,0x4fa)+_0x24b44d(0x34a,0x2af)+_0x24b44d(0x151,0x341)+_0x24b44d(0xb8,0x267)),console[_0x24b44d(0x3e2,0x21c)](_0x24b44d(0x32,-0xce)+_0x2077cd(0x474,0x30f)+_0x2077cd(0x543,0x66e)+_0x24b44d(0x238,0x20d)),console[_0x2077cd(0x545,0x4a1)]('\x20\x20\x20\x20•'+_0x2077cd(0x394,0x4ff)+_0x24b44d(0x188,0x2d8)+'ory\x20a'+'nd\x20me'+_0x24b44d(0x2c7,0x229)+_0x24b44d(0x199,0x1ac)+_0x2077cd(0x190,0x17e)),console[_0x24b44d(0x3e2,0x415)]('\x20\x20\x20\x20•'+_0x24b44d(0x39a,0x594)+_0x2077cd(0x2fa,0x1a0)+'files'+_0x2077cd(0x2be,0x1c3)+_0x2077cd(0x28f,0x2ba)+_0x2077cd(0x230,0x424)+'e'),console[_0x24b44d(0x3e2,0x598)](_0x2077cd(0x175,0x24b)+_0x24b44d(0x44,-0x197)+_0x24b44d(0x36c,0x2a3)+_0x2077cd(0x42a,0x5c5)+_0x2077cd(0x398,0x35f)+'ue'),console[_0x24b44d(0x3e2,0x3d2)](_0x24b44d(0x12,-0xf7)+_0x2077cd(0x2a5,0x424)+_0x24b44d(0x194,0x2a3)+_0x24b44d(0x185,0x2c5)+_0x24b44d(0x321,0x433)+'and\x20a'+_0x2077cd(0x32a,0x308)+_0x24b44d(0x329,0x172)+'ta'),console[_0x2077cd(0x545,0x648)](''),console[_0x24b44d(0x3e2,0x221)](_0x24b44d(0x32,0x100)+_0x24b44d(0x311,0x449)+_0x24b44d(0x2a4,0x2fb)+_0x24b44d(0x211,0xd3)+'r:'),console[_0x2077cd(0x545,0x4fd)](_0x2077cd(0x175,0x16b)+'\x20.env'+'\x20conf'+'igura'+_0x24b44d(0x31d,0x12f)),console[_0x24b44d(0x3e2,0x305)]('\x20\x20\x20\x20•'+_0x2077cd(0x3c9,0x210)+_0x2077cd(0x444,0x5de)+_0x2077cd(0x33c,0x368)),console[_0x2077cd(0x545,0x60d)]('\x20\x20\x20\x20•'+'\x20The\x20'+_0x24b44d(0x11f,0xb7)+_0x24b44d(0x1f1,0x3da)+'elf\x0a');if(!flags['force']){const readline=await import('readl'+_0x24b44d(0x96,-0xcd)),_0x3be5b0={};_0x3be5b0['input']=process['stdin'],_0x3be5b0['outpu'+'t']=process['stdou'+'t'];const rl=readline[_0x24b44d(0x71,0x54)+_0x24b44d(0x297,0x1a4)+_0x24b44d(0x2db,0x31f)](_0x3be5b0),answer=await new Promise(_0x448356=>{function _0x157196(_0x32b2c0,_0x4e166e){return _0x24b44d(_0x32b2c0- -0x46,_0x4e166e);}const _0x2394e8={};_0x2394e8[_0x2df2ca(0x2e5,0x4e0)]=_0x2df2ca(0x515,0x58d)+_0x157196(0x2c1,0x21c)+_0x2df2ca(0x8ab,0x6e0)+_0x157196(0x129,-0xba)+_0x157196(0x130,0x162)+':\x20';const _0x115ce4=_0x2394e8;function _0x2df2ca(_0x2e4374,_0x221e78){return _0x24b44d(_0x221e78-0x42f,_0x2e4374);}rl[_0x2df2ca(0x749,0x691)+'ion'](_0x115ce4[_0x2df2ca(0x438,0x4e0)],_0x448356);});rl['close'](),answer[_0x24b44d(0x36e,0x33e)]()['toLow'+_0x2077cd(0x3fe,0x21e)+'e']()!==_0x24b44d(0x37c,0x212)&&(console[_0x2077cd(0x545,0x68b)](_0x24b44d(0xbe,-0x80)+_0x24b44d(0x14c,0x1d9)+_0x24b44d(0xfb,0x146)+_0x24b44d(0x218,0x182)+_0x2077cd(0x201,0x293)+_0x2077cd(0x3cc,0x42e)+'ved.\x0a'),process['exit'](-0x789*-0x4+-0x110+-0x1d14)),console[_0x24b44d(0x3e2,0x4be)]('');}const dataResets=['messa'+_0x24b44d(0x355,0x268)+_0x2077cd(0x4ff,0x4d2)+_0x2077cd(0x1f2,0x23),'activ'+_0x24b44d(0x234,0x181)+_0x24b44d(0x8f,0x176),_0x24b44d(0x381,0x2b7)+_0x24b44d(0x82,0x1f0),_0x2077cd(0x2ad,0x11b)+_0x24b44d(0x19d,0x368)+_0x24b44d(0x66,0x151)+_0x24b44d(0x118,0xed),_0x2077cd(0x49d,0x3dd)+'ds',_0x24b44d(0x3bd,0x276),_0x24b44d(0x3cf,0x49d)+_0x2077cd(0x1d3,-0x7)],rootResets=['messa'+_0x24b44d(0x355,0x18f)+_0x24b44d(0x39c,0x2f0)+_0x24b44d(0x8f,0x236),_0x24b44d(0x16d,-0x28)+_0x2077cd(0x397,0x3ab)+'son','sync-'+_0x2077cd(0x1e5,0x345),_0x24b44d(0x14a,0x28d)+'d-con'+_0x24b44d(0x66,0x13c)+_0x24b44d(0x118,0xc9),_0x24b44d(0x33a,0x18a)+'ds',_0x2077cd(0x3f0,0x2d6)+'c/aud'+'io',_0x2077cd(0x1e6,0x7c)+_0x24b44d(0x11d,0x2a1)+_0x24b44d(0x256,0x3f7)+_0x2077cd(0x231,0x105),'push-'+_0x2077cd(0x2b8,0x199)+'ripti'+_0x2077cd(0x42e,0x3be)+_0x2077cd(0x1f2,0xfa),'serve'+'r.log',_0x24b44d(0x3f5,0x462)+_0x24b44d(0x3ee,0x548)+_0x2077cd(0x3ad,0x312)+_0x24b44d(0x3e2,0x49a),_0x24b44d(0x3f5,0x49a)+_0x24b44d(0x2b7,0x23b)+_0x24b44d(0x17,-0x1a6)+_0x2077cd(0x421,0x5ac)];let cleared=0x6*-0x2fb+-0x1a20+0x1601*0x2;for(const item of dataResets){const fullPath=join(DATA_DIR,item);if(existsSync(fullPath))try{const _0x43fd86={};_0x43fd86[_0x2077cd(0x32f,0x3fb)+'sive']=!![],_0x43fd86[_0x24b44d(0x29a,0x101)]=!![],rmSync(fullPath,_0x43fd86),cleared++,console[_0x2077cd(0x545,0x3a0)]('\x20\x20✓\x20R'+_0x24b44d(0x37a,0x47f)+_0x24b44d(0x35e,0x518)+_0x2077cd(0x42d,0x300)+'/'+item);}catch(_0x2006a9){console['error'](_0x2077cd(0x3e8,0x2e5)+_0x24b44d(0x1dc,0x2a2)+_0x24b44d(0x294,0xd0)+_0x2077cd(0x4dd,0x36d)+_0x2077cd(0x2e0,0x42c)+_0x2077cd(0x466,0x2ea)+item+':\x20'+_0x2006a9[_0x2077cd(0x26a,0x445)+'ge']);}}for(const item of rootResets){const fullPath=join(ROOT,item);if(existsSync(fullPath))try{const _0xe23e9c={};_0xe23e9c[_0x24b44d(0x1cc,0x305)+_0x24b44d(0x73,0x3d)]=!![],_0xe23e9c[_0x2077cd(0x3fd,0x29c)]=!![],rmSync(fullPath,_0xe23e9c),cleared++,console[_0x2077cd(0x545,0x396)]('\x20\x20✓\x20R'+_0x2077cd(0x4dd,0x5e6)+'d\x20'+item);}catch(_0xf67e6){console['error'](_0x2077cd(0x3e8,0x503)+'ailed'+'\x20to\x20r'+_0x24b44d(0x37a,0x271)+'\x20'+item+':\x20'+_0xf67e6[_0x2077cd(0x26a,0x3ef)+'ge']);}}cleared===-0x1*0xf29+-0x1*0x251a+0x11*0x313?console['log'](_0x24b44d(0x2f8,0x324)+_0x2077cd(0x55c,0x68e)+_0x24b44d(0x3e1,0x567)+_0x24b44d(0x1f5,0x3ea)+'\x20alre'+_0x2077cd(0x227,0x290)+_0x24b44d(0x284,0x458)):console[_0x2077cd(0x545,0x6c9)](_0x2077cd(0x490,0x5d2)+_0x2077cd(0x38d,0x476)+'ed\x20'+cleared+_0x24b44d(0x9b,0x61)+(cleared>0x1e47*0x1+-0x8a7*0x2+0x53*-0x28?'s':'')+('.\x20Fre'+_0x24b44d(0x375,0x559)+_0x2077cd(0x4d5,0x56b))),console[_0x24b44d(0x3e2,0x1ed)](''),process[_0x24b44d(0x1e7,0x150)](-0x1a7d+0x1ffb+-0x57e);}if(command===_0x24b44d(0x3ac,0x1d2)){const require=createRequire(import.meta.url),pkg=require(join(ROOT,'packa'+_0x24b44d(0x39b,0x30c)+'on')),ENV_FILE=existsSync(join(DATA_DIR,_0x24b44d(0x179,0x35a)))?join(DATA_DIR,_0x2077cd(0x2dc,0x154)):join(ROOT,'.env');let envPort='3456',envHost=_0x2077cd(0x237,0x350)+'.0',envGatewayUrl=_0x2077cd(0x3f2,0x204)+'//127'+_0x2077cd(0x1ba,0x252)+_0x24b44d(0x2aa,0x21d)+'89',envGatewayToken='';if(existsSync(ENV_FILE))try{const content=readFileSync(ENV_FILE,_0x2077cd(0x165,0xca));for(const line of content[_0x24b44d(0x1c0,0x1e1)]('\x0a')){const t=line[_0x2077cd(0x4d1,0x4d8)]();if(!t||t[_0x24b44d(0x338,0x29f)+_0x2077cd(0x521,0x62a)]('#'))continue;const eqIdx=t['index'+'Of']('=');if(eqIdx===-(-0x1567+0x596*-0x1+0x1afe))continue;const k=t[_0x24b44d(0x394,0x213)](-0x1af2+-0xb*-0x26b+0x59,eqIdx)[_0x24b44d(0x36e,0x431)](),v=t['slice'](eqIdx+(-0x1a65+-0x2*-0xc8f+-0x2*-0xa4))['trim']();if(k===_0x24b44d(0x28a,0x3bf))envPort=v||'3456';if(k===_0x2077cd(0x16c,0x239)+_0x24b44d(0x1f3,0x343)+'T'||k==='HOST')envHost=v||_0x2077cd(0x237,0x14a)+'.0';if(k===_0x24b44d(0x1ee,0x35f)+'AY_UR'+'L')envGatewayUrl=v;if(k===_0x24b44d(0x1ee,0x8e)+_0x24b44d(0x147,0x10f)+'KEN')envGatewayToken=v;}}catch{}const watchdogPid=getWatchdogPid(),serverPid=getPid(),isServerRunning=!!(watchdogPid||serverPid),serverStatus=isServerRunning?_0x2077cd(0x1cd,0x183)+_0x24b44d(0x2ce,0x478)+_0x2077cd(0x30b,0x1c5)+_0x2077cd(0x4a8,0x49c)+'D\x20'+(watchdogPid||serverPid)+')':_0x24b44d(0x39,-0x53)+_0x24b44d(0x341,0x172)+_0x2077cd(0x4a6,0x41f)+'m',gwReachable=await new Promise(_0x48e37a=>{function _0x1cdf61(_0x4d8501,_0x52fe83){return _0x2077cd(_0x4d8501- -0x13,_0x52fe83);}function _0x4cff0b(_0x4b7652,_0x57efc2){return _0x2077cd(_0x57efc2- -0x1ac,_0x4b7652);}const _0x5bb4ba={'PNPuJ':function(_0x3fe526,_0x2ded84){return _0x3fe526(_0x2ded84);},'eqoMi':function(_0x2b7497,_0x574a63,_0x313542){return _0x2b7497(_0x574a63,_0x313542);},'BQXgL':_0x4cff0b(-0x19a,-0x47),'aPCKg':function(_0x5355b6,_0x15015a){return _0x5355b6*_0x15015a;},'LYbrj':function(_0x324701,_0x2bce7f){return _0x324701===_0x2bce7f;},'nphnc':_0x1cdf61(0x294,0x222),'IeMar':function(_0x479f96,_0x11d5c2){return _0x479f96(_0x11d5c2);},'XxKej':'dTrku','RzPtQ':_0x4cff0b(0x54,0x14c),'jJajE':'GET','sepHL':_0x1cdf61(0x2be,0x17f)};try{if(_0x5bb4ba[_0x4cff0b(0x14a,0x2eb)](_0x5bb4ba[_0x4cff0b(0x317,0x2d6)],_0x5bb4ba[_0x4cff0b(0xac,0x166)])){const _0x2b12d5={};_0x2b12d5['statu'+'s']='pass',_0x2b12d5[_0x1cdf61(0x26a,0x1d0)]=_0x2258c8,_0x2b12d5[_0x1cdf61(0x291,0x2a4)+'l']=_0x594892,_0x1cb270[_0x1cdf61(0x4cd,0x33b)](_0x2b12d5);}else{const _0x465503=new URL(envGatewayUrl),_0x21c23b={};_0x21c23b[_0x4cff0b(0x205,0x23e)+'ame']=_0x465503[_0x4cff0b(0x125,0x23e)+_0x1cdf61(0x4cb,0x533)],_0x21c23b[_0x4cff0b(0x23b,0xb1)]=_0x465503[_0x1cdf61(0x24a,0x23a)]||-0x13*-0x11e+0x1*0x18ab+0x2d95*-0x1,_0x21c23b[_0x4cff0b(0x59,0x11f)]='/',_0x21c23b[_0x1cdf61(0x157,0x47)+'d']=_0x5bb4ba['jJajE'],_0x21c23b[_0x1cdf61(0x481,0x35d)+'ut']=0xbb8;const _0x632a04=_0x910dc9[_0x1cdf61(0x2b1,0x208)+'st'](_0x21c23b,_0x3de3e8=>{_0x3de3e8[_0x5e7058(-0x241,-0x2f5)+'e']();function _0x5bab5b(_0x47088b,_0x5e6450){return _0x4cff0b(_0x5e6450,_0x47088b- -0x198);}function _0x5e7058(_0x156904,_0x544d7a){return _0x4cff0b(_0x156904,_0x544d7a- -0x2c1);}_0x5bb4ba[_0x5e7058(-0x1e1,-0x99)](_0x48e37a,!![]);});_0x632a04['on'](_0x5bb4ba[_0x1cdf61(0x25c,0x105)],()=>_0x48e37a(![])),_0x632a04['on']('timeo'+'ut',()=>{function _0x398437(_0xafe548,_0x1bbe37){return _0x4cff0b(_0x1bbe37,_0xafe548-0x151);}function _0x5c7063(_0x442424,_0x5e342c){return _0x4cff0b(_0x5e342c,_0x442424- -0x311);}if(_0x5bb4ba[_0x5c7063(-0x26,-0x105)](_0x398437(0x24c,0x269),_0x5bb4ba[_0x398437(0x1ba,0x3b5)]))_0x632a04['destr'+'oy'](),_0x5bb4ba[_0x398437(0x207,0x155)](_0x48e37a,![]);else{const _0x358847=VKpPwZ[_0x398437(0x309,0x272)](_0x26dfb0,'df\x20-k'+'\x20\x22'+_0x50110e+(_0x5c7063(-0x34c,-0x248)+_0x398437(0x455,0x5ed)+'1'),{'encoding':VKpPwZ[_0x398437(0x506,0x32f)]}),_0x39cfcd=_0x358847[_0x5c7063(0x14,-0x27)]()[_0x5c7063(-0x19a,-0x108)](/\s+/);return VKpPwZ['aPCKg'](_0x26f63d(_0x39cfcd[-0x25ad*-0x1+0x19e3+-0x3f8d],-0x207e+-0x1b01+-0x1*-0x3b89),0x620*0x4+0x1464+-0x1*0x28e4);}}),_0x632a04[_0x4cff0b(0xdf,0x230)]();}}catch{_0x5bb4ba[_0x1cdf61(0x24f,0x30f)](_0x48e37a,![]);}}),gwStatus=gwReachable?envGatewayUrl+('\x20\x1b[32'+'m(con'+_0x24b44d(0x2fe,0x38d)+_0x24b44d(0x324,0x279)+'m'):envGatewayUrl+(_0x24b44d(0x2b3,0x348)+_0x24b44d(0x207,0x231)+_0x2077cd(0x23b,0x433)+'ble)\x1b'+_0x2077cd(0x537,0x61e)),LOG_FILE=join(ROOT,_0x24b44d(0x11f,0x2e8)+'r.log'),ALT_LOG_FILE=join(ROOT,_0x24b44d(0x3f5,0x361)+_0x24b44d(0x3ee,0x34e)+_0x24b44d(0x24a,0x196)+'log'),logFile=existsSync(LOG_FILE)?LOG_FILE:existsSync(ALT_LOG_FILE)?ALT_LOG_FILE:_0x2077cd(0x361,0x2ab)+')',premiumFile=join(ROOT,_0x2077cd(0x282,0x2fc)+'r','premi'+'um');let premiumStatus=_0x2077cd(0x3e3,0x5ab)+_0x24b44d(0x2df,0x477)+'ed';existsSync(premiumFile)&&(premiumStatus=_0x2077cd(0x50a,0x35f)+_0x2077cd(0x406,0x40f));const configFile=join(ROOT,_0x24b44d(0x3db,0x5d2)+_0x2077cd(0x3a6,0x25e)+'n');if(existsSync(configFile))try{const cfg=JSON[_0x24b44d(0xf1,0x16)](readFileSync(configFile,'utf8'));if(cfg[_0x2077cd(0x204,0x1f)+'um']||cfg[_0x24b44d(0xa1,0x246)+_0x2077cd(0x273,0x315)])premiumStatus=_0x24b44d(0x16d,0x330)+'e';}catch{}console['log']('\x0a\x20\x20⬡\x20'+_0x2077cd(0x4ad,0x2fe)+'k\x20Inf'+_0x2077cd(0x3ca,0x2b0)+_0x24b44d(0x30c,0x18c)+_0x24b44d(0x3ec,0x3a7)+'\x20\x20\x20\x20v'+pkg[_0x24b44d(0x121,0x1cb)+'on']+(_0x24b44d(0x1f,-0xd0)+'de.js'+_0x2077cd(0x2d6,0x16b)+'\x20\x20v')+process[_0x2077cd(0x284,0xc8)+_0x24b44d(0x187,-0x45)][_0x24b44d(0x322,0x200)]+('\x0a\x20\x20Po'+_0x2077cd(0x1ec,0x393)+_0x24b44d(0x10,0xb1)+'\x20\x20')+envPort+(_0x24b44d(0x3ad,0x33f)+_0x2077cd(0x222,0x112)+_0x2077cd(0x173,0x66)+'\x20\x20')+envHost+('\x0a\x20\x20Se'+'rver:'+_0x2077cd(0x173,0x346)+'\x20\x20')+serverStatus+(_0x2077cd(0x386,0x30c)+_0x24b44d(0x2ea,0x2eb)+_0x2077cd(0x2d6,0x172)+'\x20\x20')+gwStatus+('\x0a\x20\x20Da'+_0x2077cd(0x373,0x42d)+_0x2077cd(0x446,0x5f4)+'\x20\x20')+DATA_DIR+('\x0a\x20\x20Lo'+_0x2077cd(0x2c7,0x382)+_0x24b44d(0x332,0x24f)+'\x20\x20')+logFile+(_0x2077cd(0x538,0x53e)+_0x24b44d(0x313,0x234)+':\x20\x20\x20\x20'+'\x20\x20')+premiumStatus+(_0x2077cd(0x31c,0x4a4)+_0x24b44d(0x181,0x1be)+_0x24b44d(0x36a,0x346)+'\x20\x20')+ROOT+_0x24b44d(0x245,0x3e1)),process[_0x24b44d(0x1e7,0x12b)](-0x16c6+-0x2d*0xe+-0xa*-0x286);}function _0x10d4(_0x186bef,_0x55eb7b){_0x186bef=_0x186bef-(0x1274*0x2+0x18b7+-0x6cd*0x9);const _0x38497f=_0x4ce9();let _0x32e5b5=_0x38497f[_0x186bef];return _0x32e5b5;}const ALL_COMMANDS=['stop',_0x2077cd(0x381,0x300)+'s',_0x24b44d(0x28c,0x15e)+'e',_0x24b44d(0x220,0x2e1)+_0x24b44d(0x291,0x246),_0x24b44d(0x51,-0xa9),'confi'+'g',_0x24b44d(0xdb,0x9)+'r','reset',_0x2077cd(0x50f,0x6dd)];if(command===_0x2077cd(0x49b,0x495)||!ALL_COMMANDS[_0x2077cd(0x3c3,0x34f)+'des'](command)){const existingWatchdog=getWatchdogPid(),existingPid=getPid();if(existingWatchdog||existingPid){const pid=existingWatchdog||existingPid,mode=existingWatchdog?_0x24b44d(0x13a,-0x45)+'dog':_0x24b44d(0x103,-0xc4)+'t';console[_0x2077cd(0x545,0x4d3)](_0x2077cd(0x246,0xba)+_0x2077cd(0x1f6,0x3a)+_0x24b44d(0x64,-0x100)+_0x2077cd(0x236,0x3af)+_0x2077cd(0x431,0x2fd)+_0x2077cd(0x39c,0x226)+mode+(_0x2077cd(0x472,0x521)+'\x20')+pid+').'),console[_0x2077cd(0x545,0x370)](_0x2077cd(0x1e7,-0x17)+_0x24b44d(0xc6,0x226)+_0x2077cd(0x297,0x483)+_0x2077cd(0x3c8,0x3c4)+'ink-c'+_0x2077cd(0x2f0,0x33c)+_0x24b44d(0x37f,0x246)),process[_0x24b44d(0x1e7,0x4a)](0x2c7+0x203*0x6+0x17c*-0xa);}const env={...process.env};if(flags[_0x2077cd(0x25d,0x80)])env[_0x2077cd(0x3ed,0x473)]=String(flags[_0x24b44d(0xfa,0x1ef)]);if(flags[_0x24b44d(0x104,-0xcb)])env[_0x24b44d(0x9,-0x10)+_0x24b44d(0x1f3,0x2b3)+'T']=flags[_0x24b44d(0x104,-0x1a)];const serverPath=join(ROOT,_0x2077cd(0x282,0x1c5)+_0x2077cd(0x3b8,0x21d));if(flags[_0x24b44d(0x214,0x2d1)+'h']){const watchdogPath=join(ROOT,_0x24b44d(0x11f,-0x59)+'r',_0x24b44d(0x13a,0x302)+_0x24b44d(0x60,-0xb4)+'s'),extraEnv={};if(flags[_0x24b44d(0xfa,0x2b)])extraEnv[_0x24b44d(0x28a,0x3fd)]=String(flags[_0x2077cd(0x25d,0x6d)]);if(flags[_0x2077cd(0x267,0x190)])extraEnv[_0x2077cd(0x16c,-0x6f)+_0x2077cd(0x356,0x2da)+'T']=flags[_0x2077cd(0x267,0x156)];const isLinux=process['platf'+_0x24b44d(0x159,0x120)]===_0x24b44d(0x157,0x19c);let child;if(isLinux)try{const _0x5df4e0={};_0x5df4e0['stdio']=_0x2077cd(0x44a,0x364)+'e',execSync('which'+'\x20sets'+'id',_0x5df4e0);const _0x319860={};_0x319860[_0x2077cd(0x260,0x10d)]=ROOT,_0x319860[_0x2077cd(0x3aa,0x467)]=env,_0x319860[_0x24b44d(0x214,0x32a)+_0x24b44d(0x258,0x20f)]=!![],_0x319860[_0x2077cd(0x3c1,0x4c6)]=_0x24b44d(0x2e7,0x15c)+'e',child=spawn('setsi'+'d',[_0x2077cd(0x509,0x531)+'k',process['execP'+_0x2077cd(0x402,0x226)],watchdogPath,JSON[_0x2077cd(0x51a,0x68d)+_0x24b44d(0x99,0x17a)](extraEnv)],_0x319860);}catch{const _0x578a40={};_0x578a40[_0x2077cd(0x260,0x1b2)]=ROOT,_0x578a40[_0x2077cd(0x3aa,0x223)]=env,_0x578a40[_0x24b44d(0x214,0x28b)+'hed']=!![],_0x578a40[_0x24b44d(0x25e,0x2c4)]=_0x2077cd(0x44a,0x33e)+'e',child=spawn(process[_0x2077cd(0x4ed,0x407)+_0x24b44d(0x29f,0x31c)],[watchdogPath,JSON[_0x2077cd(0x51a,0x55e)+_0x24b44d(0x99,-0xfa)](extraEnv)],_0x578a40);}else{const _0x127e03={};_0x127e03['cwd']=ROOT,_0x127e03['env']=env,_0x127e03['detac'+_0x24b44d(0x258,0xf1)]=!![],_0x127e03[_0x24b44d(0x25e,0x1d9)]=_0x24b44d(0x2e7,0x3f1)+'e',child=spawn(process['execP'+_0x24b44d(0x29f,0x106)],[watchdogPath,JSON['strin'+_0x24b44d(0x99,0x8a)](extraEnv)],_0x127e03);}child['unref']();const port=flags['port']||env[_0x2077cd(0x3ed,0x43f)]||0x1a6*0x9+-0xd8b+0x1*0xc35;console[_0x24b44d(0x3e2,0x54e)](_0x24b44d(0xe3,0x148)+'ink\x20s'+_0x24b44d(0x3c7,0x403)+'d\x20in\x20'+_0x24b44d(0x1be,0xca)+_0x24b44d(0x2d4,0x223)+_0x2077cd(0x18a,0x2e8)+_0x24b44d(0x314,0x402)+'hdog\x20'+_0x2077cd(0x4f5,0x583)+child['pid']+').'),console[_0x24b44d(0x3e2,0x2d9)]('\x20\x20→\x20h'+_0x2077cd(0x302,0x199)+_0x24b44d(0x31,0x1a)+'lhost'+':'+port),console[_0x2077cd(0x545,0x723)](_0x24b44d(0x3e7,0x21a)+'o-res'+'tarts'+_0x24b44d(0x399,0x501)+_0x24b44d(0x2bc,0x3b8)+'\x20Stop'+_0x2077cd(0x18a,0x27e)+_0x24b44d(0x265,0xe3)+_0x24b44d(0x21b,0x3c8)+'hat\x20s'+_0x2077cd(0x4e2,0x5ef)),process[_0x2077cd(0x34a,0x396)](0x4f6*-0x4+-0x1*0x1191+0x1*0x2569);}else{if(flags[_0x24b44d(0x13b,0xa2)+_0x2077cd(0x1fb,0x122)]){const _0x5c4612={};_0x5c4612[_0x2077cd(0x260,0x31b)]=ROOT,_0x5c4612[_0x2077cd(0x3aa,0x428)]=env,_0x5c4612['stdio']=_0x2077cd(0x352,0x350)+'it';const child=spawn(process[_0x2077cd(0x4ed,0x6a0)+_0x2077cd(0x402,0x352)],[serverPath],_0x5c4612);writeFileSync(PID_FILE,String(child[_0x24b44d(0x276,0x3f3)]));const cleanup=()=>{const _0x353f47={'omuYI':function(_0xc26467,_0xb737c2){return _0xc26467!==_0xb737c2;},'fPjKx':_0x57a2ef(0x619,0x4dc),'GhYVF':function(_0x1bc828,_0x54ea5e){return _0x1bc828(_0x54ea5e);}};function _0x7f737(_0x1868e7,_0x2081b9){return _0x24b44d(_0x1868e7-0x86,_0x2081b9);}function _0x57a2ef(_0x46256c,_0x2e5563){return _0x24b44d(_0x46256c-0x275,_0x2e5563);}try{_0x353f47['omuYI'](_0x57a2ef(0x619,0x41a),_0x353f47[_0x7f737(0xe0,-0x76)])?_0x36d112[_0x7f737(0x1f4,0x1a7)](_0x7f737(0x30b,0x4e7)+_0x57a2ef(0x451,0x2a5)+_0x57a2ef(0x509,0x422)+_0x7f737(0x400,0x376)+_0x7f737(0x203,0x2e0)+_0x57a2ef(0x578,0x3a4)+_0x187c88+':\x20'+_0x55f35b[_0x57a2ef(0x37c,0x3be)+'ge']):_0x353f47[_0x7f737(0x333,0x50f)](unlinkSync,PID_FILE);}catch{}};process['on'](_0x2077cd(0x1da,0x267)+'T',()=>{const _0x284277={'vuEqW':function(_0xe8f902){return _0xe8f902();}};function _0x1d8b55(_0x21500b,_0x2f02cd){return _0x2077cd(_0x21500b-0x4d,_0x2f02cd);}_0x284277[_0x367a8a(0x4c8,0x347)](cleanup);function _0x367a8a(_0x2e1f7a,_0x24c9e7){return _0x2077cd(_0x2e1f7a-0x117,_0x24c9e7);}process[_0x367a8a(0x461,0x5ac)](-0x21d8+-0x1*-0x3b3+-0x1e25*-0x1);}),process['on']('SIGTE'+'RM',()=>{function _0x3eb71a(_0x27d3e5,_0x2de721){return _0x24b44d(_0x2de721- -0x1cc,_0x27d3e5);}function _0x231190(_0x4e3e8b,_0x3600ff){return _0x24b44d(_0x3600ff- -0x28d,_0x4e3e8b);}const _0x3d80b4={'ORIba':function(_0x33fe78){return _0x33fe78();}};_0x3d80b4[_0x231190(-0x2f9,-0x26a)](cleanup),process[_0x231190(-0x123,-0xa6)](-0x132d*-0x2+0x9*-0x337+-0x96b*0x1);}),child['on'](_0x2077cd(0x34a,0x24d),_0x276f09=>{cleanup(),process['exit'](_0x276f09||0xa5a*0x3+0x511*-0x2+-0xce*0x1a);});}else{const watchdogPath=join(ROOT,'serve'+'r','watch'+_0x2077cd(0x1c3,0x391)+'s'),extraEnv={};if(flags[_0x24b44d(0xfa,0x1ef)])extraEnv[_0x24b44d(0x28a,0x182)]=String(flags[_0x2077cd(0x25d,0x386)]);if(flags[_0x2077cd(0x267,0x1e9)])extraEnv[_0x2077cd(0x16c,0x168)+_0x24b44d(0x1f3,0x17f)+'T']=flags[_0x24b44d(0x104,-0xcc)];const _0x117b75={};_0x117b75['cwd']=ROOT,_0x117b75[_0x2077cd(0x3aa,0x3a9)]=env,_0x117b75[_0x2077cd(0x3c1,0x1d6)]=_0x2077cd(0x352,0x455)+'it';const child=spawn(process['execP'+'ath'],[watchdogPath,JSON[_0x2077cd(0x51a,0x67b)+_0x24b44d(0x99,-0x143)](extraEnv)],_0x117b75),port=flags[_0x2077cd(0x25d,0x12e)]||env[_0x24b44d(0x28a,0xb0)]||-0x1*0xff7+-0x17*0x115+0x365a;console[_0x2077cd(0x545,0x691)](_0x24b44d(0xe3,0x74)+'ink\x20s'+_0x24b44d(0x1c4,0x1fc)+_0x2077cd(0x439,0x5f2)+_0x24b44d(0x3e5,0x56f)+_0x2077cd(0x17a,0x2de)+_0x2077cd(0x199,0x2da)+_0x24b44d(0x2dd,0x353)+_0x2077cd(0x49b,0x527)+_0x24b44d(0x123,0x2b0)+_0x2077cd(0x55f,0x63f)),console['log'](_0x24b44d(0x295,0x139)+_0x24b44d(0x19f,0x2d4)+_0x24b44d(0x31,0xfe)+_0x24b44d(0x302,0x1cf)+':'+port),console[_0x2077cd(0x545,0x6af)](_0x2077cd(0x473,0x2a8)+'\x20--no'+'-watc'+'hdog\x20'+'for\x20r'+_0x2077cd(0x1fa,0x21d)+_0x24b44d(0x140,0x2e8)+_0x24b44d(0x3b5,0x358)),process['on'](_0x24b44d(0x77,0x18c)+'T',()=>{const _0x36a486={};_0x36a486[_0x49dc82(-0x2a,-0x1ce)]=_0xbd4cbf(0x47e,0x540)+'RM';const _0x545459=_0x36a486;function _0x49dc82(_0x2ef592,_0x21401b){return _0x24b44d(_0x21401b- -0x249,_0x2ef592);}function _0xbd4cbf(_0x3eb3bb,_0x2746c4){return _0x24b44d(_0x3eb3bb-0x3de,_0x2746c4);}child['kill'](_0x545459[_0x49dc82(-0x131,-0x1ce)]);}),process['on'](_0x24b44d(0xa0,0x1cf)+'RM',()=>{const _0x150437={};function _0x3363d4(_0x7435f1,_0x5ef91f){return _0x2077cd(_0x7435f1-0x10b,_0x5ef91f);}_0x150437['MxfJZ']=_0x1a88d0(0x1fa,0x14e)+'RM';function _0x1a88d0(_0x16248b,_0x3890fb){return _0x2077cd(_0x16248b- -0x9,_0x3890fb);}const _0x5d2d82=_0x150437;child[_0x3363d4(0x487,0x36c)](_0x5d2d82[_0x3363d4(0x61c,0x6c1)]);}),child['on'](_0x24b44d(0x1e7,0x2d8),_0x1672d4=>{const _0x5a3ee8={};function _0x1e8df9(_0x24ff4c,_0x392c04){return _0x2077cd(_0x392c04-0x8e,_0x24ff4c);}_0x5a3ee8[_0x17587b(0x31d,0x26f)]=function(_0xed5fd6,_0x2d4963){return _0xed5fd6||_0x2d4963;};function _0x17587b(_0x3beb6d,_0x112773){return _0x2077cd(_0x3beb6d- -0x33,_0x112773);}const _0x1d27a4=_0x5a3ee8;process[_0x17587b(0x317,0x298)](_0x1d27a4[_0x17587b(0x31d,0x2f4)](_0x1672d4,-0x2092+0x2*0x28a+0x1b7e));});}}}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Channel metadata and capabilities
3
+ */
4
+ import type { ChannelMetadata } from './types.js';
5
+ export declare const channelMetadata: ChannelMetadata;
6
+ /**
7
+ * Derive session key from satellite ID
8
+ * Format:
9
+ * - Main satellite: agent:main:main (shared with Dashboard)
10
+ * - Other satellites: agent:main:uplink:satellite:{satelliteId}
11
+ *
12
+ * Uses canonical OpenClaw session key format (agent:<agentId>:<provider>:<scope>:<identifier>)
13
+ * Must match what Uplink server sends in channel.js buildGatewayRequest()
14
+ * This ensures:
15
+ * - Main satellite shares context with Dashboard
16
+ * - Each satellite has isolated context
17
+ * - sessions_history works correctly in Gateway dashboard
18
+ */
19
+ export declare function deriveSessionKey(userId: string, satelliteId: string): string;
20
+ /**
21
+ * Parse session key back to components
22
+ */
23
+ export declare function parseSessionKey(sessionKey: string): {
24
+ satelliteId: string;
25
+ } | null;
26
+ //# sourceMappingURL=channel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../src/channel.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,eAAO,MAAM,eAAe,EAAE,eAY7B,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAY5E;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAWlF"}