@mooncompany/uplink-chat 0.32.2 → 0.32.3

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 (136) hide show
  1. package/bin/uplink.js +1 -1
  2. package/middleware/error-handler.js +1 -1
  3. package/package.json +1 -1
  4. package/public/dist/bundle.493af136.js +1 -0
  5. package/public/icon-192.png +0 -0
  6. package/public/icon-512.png +0 -0
  7. package/public/img/logo.svg +12 -12
  8. package/public/img/wordmark.svg +34 -20
  9. package/public/index.html +16 -6
  10. package/public/js/agents-data.js +1 -1
  11. package/public/js/agents-ui.js +1 -1
  12. package/public/js/agents.js +1 -1
  13. package/public/js/app.js +1 -1
  14. package/public/js/appearance-settings.js +1 -1
  15. package/public/js/artifacts.js +1 -1
  16. package/public/js/audio-pcm-processor.js +1 -1
  17. package/public/js/audio-queue.js +1 -1
  18. package/public/js/bootstrap.js +1 -1
  19. package/public/js/chat.js +1 -1
  20. package/public/js/commands.js +1 -1
  21. package/public/js/connection-api.js +1 -1
  22. package/public/js/connection.js +1 -1
  23. package/public/js/context-tracker.js +1 -1
  24. package/public/js/core.js +1 -1
  25. package/public/js/cron-panel.js +1 -1
  26. package/public/js/dashboard.js +1 -1
  27. package/public/js/developer.js +1 -1
  28. package/public/js/encryption.js +1 -1
  29. package/public/js/errors.js +1 -1
  30. package/public/js/event-bus.js +1 -1
  31. package/public/js/fetch-utils.js +1 -1
  32. package/public/js/file-handler.js +1 -1
  33. package/public/js/files.js +1 -1
  34. package/public/js/gateway-chat.js +1 -1
  35. package/public/js/logger.js +1 -1
  36. package/public/js/markdown.js +1 -1
  37. package/public/js/message-actions.js +1 -1
  38. package/public/js/message-renderer.js +1 -1
  39. package/public/js/missed-messages.js +1 -1
  40. package/public/js/mobile-debug.js +1 -1
  41. package/public/js/notifications.js +1 -1
  42. package/public/js/offline-queue.js +1 -1
  43. package/public/js/onboarding.js +1 -1
  44. package/public/js/panels.js +1 -1
  45. package/public/js/premium.js +1 -1
  46. package/public/js/primary-header.js +1 -1
  47. package/public/js/realtime-voice.js +1 -1
  48. package/public/js/satellite-sync.js +1 -1
  49. package/public/js/satellite-ui.js +1 -1
  50. package/public/js/satellites.js +1 -1
  51. package/public/js/settings.js +1 -1
  52. package/public/js/shortcuts.js +1 -1
  53. package/public/js/split-chat.js +1 -1
  54. package/public/js/split-resize.js +1 -1
  55. package/public/js/splitview.js +1 -1
  56. package/public/js/storage.js +1 -1
  57. package/public/js/streaming-handler.js +1 -1
  58. package/public/js/stt-settings.js +1 -1
  59. package/public/js/themes.js +1 -1
  60. package/public/js/timestamps.js +1 -1
  61. package/public/js/tts-settings.js +1 -1
  62. package/public/js/ui.js +1 -1
  63. package/public/js/update-notifier.js +1 -1
  64. package/public/js/utils/constants.js +1 -1
  65. package/public/js/utils/icons.js +1 -1
  66. package/public/js/utils/sanitize.js +1 -1
  67. package/public/js/utils/sse-parser.js +1 -1
  68. package/public/js/vad.js +1 -1
  69. package/public/js/vendor/dompurify.min.js +1 -1
  70. package/public/js/voice-settings-v2.js +1 -1
  71. package/public/js/voice.js +1 -1
  72. package/public/sw.js +1 -1
  73. package/public/u-icon.png +0 -0
  74. package/server/channel.js +1 -1
  75. package/server/chat.js +1 -1
  76. package/server/config-store.js +1 -1
  77. package/server/config.js +1 -1
  78. package/server/context.js +1 -1
  79. package/server/gateway-api-proxy.js +1 -1
  80. package/server/gateway-commands.js +1 -1
  81. package/server/gateway-proxy.js +1 -1
  82. package/server/index.js +1 -1
  83. package/server/logger.js +1 -1
  84. package/server/message-store.js +1 -1
  85. package/server/middleware/auth.js +1 -1
  86. package/server/middleware.js +1 -1
  87. package/server/openclaw-discover.js +1 -1
  88. package/server/premium/index.js +1 -1
  89. package/server/premium/license.js +1 -1
  90. package/server/realtime/bridge.js +1 -1
  91. package/server/realtime/index.js +1 -1
  92. package/server/realtime/tts-stream.js +1 -1
  93. package/server/routes/agents.js +1 -1
  94. package/server/routes/artifacts.js +1 -1
  95. package/server/routes/chat.js +1 -1
  96. package/server/routes/config-settings.js +1 -1
  97. package/server/routes/config.js +1 -1
  98. package/server/routes/cron.js +1 -1
  99. package/server/routes/files.js +1 -1
  100. package/server/routes/index.js +1 -1
  101. package/server/routes/media.js +1 -1
  102. package/server/routes/missed-messages.js +1 -1
  103. package/server/routes/premium.js +1 -1
  104. package/server/routes/push.js +1 -1
  105. package/server/routes/satellite.js +1 -1
  106. package/server/routes/status.js +1 -1
  107. package/server/routes/stt.js +1 -1
  108. package/server/routes/voice.js +1 -1
  109. package/server/routes/webhooks.js +1 -1
  110. package/server/routes.js +1 -1
  111. package/server/runtime-config.js +1 -1
  112. package/server/share.js +1 -1
  113. package/server/stt/faster-whisper.js +1 -1
  114. package/server/stt/groq.js +1 -1
  115. package/server/stt/index.js +1 -1
  116. package/server/stt/openai.js +1 -1
  117. package/server/sync.js +1 -1
  118. package/server/tailscale-https.js +1 -1
  119. package/server/tts.js +1 -1
  120. package/server/update-checker.js +1 -1
  121. package/server/utils/filename.js +1 -1
  122. package/server/utils.js +1 -1
  123. package/server/watchdog.js +1 -1
  124. package/server/websocket/broadcast.js +1 -1
  125. package/server/websocket/connections.js +1 -1
  126. package/server/websocket/index.js +1 -1
  127. package/server/websocket/routing.js +1 -1
  128. package/server/websocket/sync.js +1 -1
  129. package/server.js +1 -1
  130. package/utils/detect-tool-usage.js +1 -1
  131. package/utils/errors.js +1 -1
  132. package/utils/html-escape.js +1 -1
  133. package/utils/id-sanitize.js +1 -1
  134. package/utils/response.js +1 -1
  135. package/utils/with-retry.js +1 -1
  136. package/public/dist/bundle.d3a90e4a.js +0 -1
@@ -1 +1 @@
1
- (function(_0x3e66a1,_0x36f1c4){function _0x2e1cd7(_0x3c86a4,_0x11fce4){return _0x1c74(_0x11fce4-0x3aa,_0x3c86a4);}function _0x44d818(_0x269976,_0x509006){return _0x1c74(_0x269976-0x351,_0x509006);}const _0x12a941=_0x3e66a1();while(!![]){try{const _0x370e77=-parseInt(_0x2e1cd7(0x4c4,0x4ce))/(-0x1*-0xbe9+0xde7+-0x19cf)+-parseInt(_0x44d818(0x463,0x494))/(0x138+-0x7*-0x4c4+-0x2292)*(-parseInt(_0x44d818(0x4a7,0x4c1))/(-0x90e*-0x1+0x29a+-0x1*0xba5))+parseInt(_0x44d818(0x4aa,0x4a3))/(0x18d*-0x1+0x6a+0x127*0x1)*(parseInt(_0x44d818(0x4bc,0x4c2))/(0x71*0x13+-0xe5d+0x5ff))+-parseInt(_0x2e1cd7(0x4e2,0x4c4))/(-0x138c+0x10fa+0x298)+parseInt(_0x44d818(0x4ae,0x49c))/(-0x20c8+0x21*-0x6a+0x2e79)+parseInt(_0x2e1cd7(0x51b,0x504))/(-0x7*0x11a+-0x4*0x380+0x15be)+-parseInt(_0x44d818(0x4c1,0x4a9))/(0x599*-0x1+0x1d7a+-0x17d8)*(parseInt(_0x44d818(0x479,0x490))/(-0x1*-0x851+0x114e+0xb1*-0x25));if(_0x370e77===_0x36f1c4)break;else _0x12a941['push'](_0x12a941['shift']());}catch(_0x19dac7){_0x12a941['push'](_0x12a941['shift']());}}}(_0x50f1,0x1a1a68+-0x53a5b*0x4+0x81b59));function _0x5703b7(_0x1d037a,_0x231187){return _0x1c74(_0x231187- -0x197,_0x1d037a);}function _0x1c74(_0x50f1aa,_0x1c74d7){_0x50f1aa=_0x50f1aa-(-0x4fc+-0x4ae+0xab4);const _0x2fc22d=_0x50f1();let _0x544e7a=_0x2fc22d[_0x50f1aa];return _0x544e7a;}const _0x1fcbc8=(function(){const _0xd632e8={'XmZPn':function(_0x394288,_0xf91939){return _0x394288===_0xf91939;},'piloE':'gXJzt','nzlzy':_0x5d6515(0x83,0x6e),'yxqgH':_0x47fb1a(-0x1e4,-0x1e0),'XvYjI':function(_0x411517,_0x5f2d68){return _0x411517===_0x5f2d68;},'IASIu':function(_0x4047b7){return _0x4047b7?.();},'TGKrO':function(_0x25a722,_0x46fdd9){return _0x25a722===_0x46fdd9;},'aRFoP':'ftJpP','xwMrB':_0x47fb1a(-0x1b0,-0x1df)};function _0x47fb1a(_0x237ceb,_0x5464b6){return _0x1c74(_0x237ceb- -0x2f8,_0x5464b6);}function _0x5d6515(_0x5dda17,_0x14a6b8){return _0x1c74(_0x5dda17- -0xea,_0x14a6b8);}let _0x562d86=!![];return function(_0x35dbd2,_0x4e0b6b){const _0x50491e={'iMspG':function(_0xcdde82,_0x25d353){function _0x22bc27(_0x35bba5,_0x1794e4){return _0x1c74(_0x35bba5-0xa3,_0x1794e4);}return _0xd632e8[_0x22bc27(0x1b9,0x183)](_0xcdde82,_0x25d353);},'TukGi':_0x490be6(-0x254,-0x248)+'Error','KYETF':function(_0x1403a2){function _0x337d4d(_0x117286,_0x5902a1){return _0x490be6(_0x5902a1,_0x117286-0x2ed);}return _0xd632e8[_0x337d4d(0xb4,0xe3)](_0x1403a2);}};function _0x1b6148(_0xfbb58,_0x51f939){return _0x47fb1a(_0x51f939-0x3cd,_0xfbb58);}function _0x490be6(_0x34a8c5,_0x452631){return _0x47fb1a(_0x452631- -0x88,_0x34a8c5);}if(_0xd632e8[_0x490be6(-0x221,-0x23d)](_0xd632e8[_0x490be6(-0x23a,-0x243)],_0xd632e8['xwMrB'])){const _0x5a33d3={};_0x5a33d3[_0x1b6148(0x21b,0x238)+'a']=_0x39127a,_0x5a33d3['onDon'+'e']=_0x1574eb,_0x5a33d3[_0x490be6(-0x256,-0x23e)]=_0xfd32a8,_0x191b18(_0x313170,_0x5a33d3);}else{const _0x4339a6=_0x562d86?function(){function _0x302143(_0xf59e23,_0x2c20c5){return _0x1b6148(_0x2c20c5,_0xf59e23-0x255);}function _0x5d76b9(_0x3fa4db,_0xec45c5){return _0x1b6148(_0x3fa4db,_0xec45c5- -0x7e);}if(_0xd632e8['XmZPn'](_0xd632e8[_0x302143(0x476,0x48b)],_0x5d76b9(0x172,0x19b)))_0x50491e[_0x5d76b9(0x1ba,0x1c9)](_0x442974[_0x302143(0x43b,0x46f)],_0x50491e['TukGi'])?_0x50491e[_0x5d76b9(0x16c,0x172)](_0xe4ef96):_0x10ff42?.(_0x1df463);else{if(_0x4e0b6b){if(_0xd632e8['XmZPn'](_0xd632e8[_0x5d76b9(0x150,0x17d)],_0xd632e8[_0x302143(0x499,0x4ba)]))_0x1b62ee[_0x302143(0x451,0x41c)+'seLoc'+'k']();else{const _0x1d3c86=_0x4e0b6b[_0x5d76b9(0x186,0x165)](_0x35dbd2,arguments);return _0x4e0b6b=null,_0x1d3c86;}}}}:function(){};return _0x562d86=![],_0x4339a6;}};}()),_0x19bb3b=_0x1fcbc8(this,function(){const _0x3e86e1={};_0x3e86e1[_0xc1a6f(-0x2a,-0x1b)]=_0x4ee3d4(-0x15,-0x1f)+_0xc1a6f(-0x35,-0x11)+'+$';function _0x4ee3d4(_0x5aaded,_0x52e2f1){return _0x1c74(_0x52e2f1- -0x185,_0x5aaded);}function _0xc1a6f(_0x59e77,_0x175cc6){return _0x1c74(_0x59e77- -0x165,_0x175cc6);}const _0x3737a8=_0x3e86e1;return _0x19bb3b[_0xc1a6f(-0x12,0x8)+'ing']()[_0xc1a6f(-0x48,-0x33)+'h'](_0x3737a8['kbokA'])[_0x4ee3d4(-0x1b,-0x32)+_0xc1a6f(-0x3c,-0xe)]()['const'+_0x4ee3d4(0x1e,-0x10)+'r'](_0x19bb3b)[_0xc1a6f(-0x48,-0x79)+'h'](_0x3737a8[_0xc1a6f(-0x2a,-0x36)]);});_0x19bb3b();export class SSEParser{constructor(){this[_0x3bbcb8(-0x223,-0x221)+'r']='';function _0x3a70b4(_0x244b09,_0x3c96ad){return _0x1c74(_0x244b09-0x9c,_0x3c96ad);}function _0x3bbcb8(_0x483331,_0x5582a){return _0x1c74(_0x5582a- -0x336,_0x483331);}this[_0x3bbcb8(-0x212,-0x207)+'er']=new TextDecoder();}[_0x2eafd6(0x6,0x5)](){this['buffe'+'r']='';}[_0x2eafd6(0x0,0x1)+_0x2eafd6(-0x1a,-0x33)+'nk'](_0x2dfbf7){const _0xe53a32={};_0xe53a32['YRYph']=function(_0x586c76,_0x4d435d){return _0x586c76!==_0x4d435d;},_0xe53a32[_0x6aa4b2(0x37e,0x37d)]=_0x6aa4b2(0x364,0x396),_0xe53a32[_0x15b36b(0x228,0x25c)]=_0x15b36b(0x200,0x1e6);const _0x4b4325=_0xe53a32;function _0x15b36b(_0x3bb9c8,_0x257381){return _0x2eafd6(_0x257381,_0x3bb9c8-0x211);}const _0x4a803b=[],_0x57e87a={};_0x57e87a['strea'+'m']=!![],this[_0x6aa4b2(0x358,0x366)+'r']+=this['decod'+'er']['decod'+'e'](_0x2dfbf7,_0x57e87a);const _0x31f543=this['buffe'+'r'][_0x6aa4b2(0x33f,0x36f)]('\x0a');function _0x6aa4b2(_0x483f13,_0x5b0711){return _0x2eafd6(_0x483f13,_0x5b0711-0x39b);}this[_0x15b36b(0x1dc,0x1b5)+'r']=_0x31f543[_0x6aa4b2(0x34f,0x35d)]()||'';for(const _0x1e7204 of _0x31f543){if(_0x4b4325[_0x15b36b(0x21e,0x218)](_0x4b4325[_0x15b36b(0x1f3,0x1c8)],_0x4b4325[_0x15b36b(0x228,0x25c)])){const _0x51a0b5=this[_0x15b36b(0x1f4,0x20b)+_0x15b36b(0x214,0x21f)](_0x1e7204);_0x51a0b5!==null&&_0x4a803b[_0x15b36b(0x21f,0x22a)](_0x51a0b5);}else{const _0x58d32d=this[_0x6aa4b2(0x368,0x37e)+_0x6aa4b2(0x38f,0x39e)](_0x183a45);_0x4b4325['YRYph'](_0x58d32d,null)&&_0x192ff0[_0x6aa4b2(0x39f,0x3a9)](_0x58d32d);}}return _0x4a803b;}[_0x5703b7(-0x3f,-0x6a)+_0x5703b7(-0x56,-0x4a)](_0x346675){const _0x24a4c7={'NIspQ':function(_0x24bab4,_0x2464e0){return _0x24bab4?.(_0x2464e0);},'qpzWC':function(_0x5d7ba4,_0x2502a8){return _0x5d7ba4===_0x2502a8;},'deThE':_0x3992b2(-0x6c,-0x3d),'vMIGu':function(_0x131b3f,_0x2f6c99){return _0x131b3f===_0x2f6c99;},'gTWht':_0x3992b2(-0x13,-0x33)+']','jXhRf':_0x2e62d7(0x44f,0x485),'AdkEa':_0x2e62d7(0x4ea,0x4dd),'jGHoj':_0x3992b2(-0x5e,-0x5c)};if(!_0x346675[_0x3992b2(-0x71,-0x65)]())return null;function _0x3992b2(_0x15c804,_0x28156d){return _0x5703b7(_0x15c804,_0x28156d- -0x1);}if(_0x346675['start'+'sWith'](':'))return null;if(!_0x346675[_0x3992b2(-0x2b,-0x4e)+_0x3992b2(-0xa0,-0x85)](_0x3992b2(-0xa8,-0x7f)+'\x20')){if(_0x24a4c7['qpzWC'](_0x24a4c7[_0x3992b2(-0xb8,-0x89)],_0x24a4c7[_0x3992b2(-0x99,-0x89)]))return null;else _0x24a4c7[_0x2e62d7(0x48e,0x4ac)](_0x45b45e,_0x543473);}const _0x50090f=_0x346675[_0x3992b2(-0x9f,-0x79)](-0x1c9e+0x2*0x85a+-0xbf0*-0x1);function _0x2e62d7(_0x316d50,_0x3f3303){return _0x5703b7(_0x316d50,_0x3f3303-0x50c);}if(_0x24a4c7[_0x2e62d7(0x4c2,0x4c5)](_0x50090f,_0x24a4c7[_0x3992b2(-0x56,-0x24)])){const _0x2e3577={};return _0x2e3577[_0x3992b2(-0x68,-0x8d)]=_0x24a4c7[_0x3992b2(-0x31,-0x4f)],_0x2e3577;}try{const _0x4c2dc3=JSON[_0x2e62d7(0x4c1,0x4a2)](_0x50090f),_0x13d47b={};return _0x13d47b[_0x2e62d7(0x490,0x480)]=_0x24a4c7[_0x2e62d7(0x48d,0x4b5)],_0x13d47b[_0x3992b2(-0x70,-0x46)+'ad']=_0x4c2dc3,_0x13d47b;}catch(_0x4b7cde){const _0x55ac10={};return _0x55ac10[_0x3992b2(-0x6c,-0x8d)]=_0x24a4c7['jGHoj'],_0x55ac10[_0x3992b2(-0x12,-0x30)]=_0x50090f,_0x55ac10;}}[_0x5703b7(-0x2e,-0x49)](){function _0x8651f4(_0x32d7b5,_0x27f523){return _0x2eafd6(_0x27f523,_0x32d7b5- -0xa5);}if(this[_0x199180(-0x1df,-0x1fc)+'r'][_0x199180(-0x1c1,-0x1ce)]()){const _0x3dc3d9=this['parse'+_0x199180(-0x1a7,-0x1c3)](this[_0x199180(-0x1df,-0x1e1)+'r']);return this[_0x8651f4(-0xda,-0xca)+'r']='',_0x3dc3d9;}function _0x199180(_0x23a21b,_0x3781e0){return _0x2eafd6(_0x3781e0,_0x23a21b- -0x1aa);}return null;}}function handleEvent(_0x4339d9,_0x2fe5c2){function _0x5dca61(_0x131656,_0x336237){return _0x2eafd6(_0x336237,_0x131656-0x34a);}const _0x4d14a6={};_0x4d14a6[_0x5dca61(0x320,0x341)]=_0x3a1ff3(0x4aa,0x4c4);const _0x1f2182=_0x4d14a6;function _0x3a1ff3(_0x364e4d,_0x2b52dd){return _0x2eafd6(_0x2b52dd,_0x364e4d-0x48c);}switch(_0x4339d9[_0x3a1ff3(0x44d,0x448)]){case _0x1f2182[_0x3a1ff3(0x462,0x475)]:_0x2fe5c2[_0x3a1ff3(0x4a5,0x4a8)+'a']?.(_0x4339d9['paylo'+'ad']);break;case _0x3a1ff3(0x452,0x464):_0x2fe5c2[_0x5dca61(0x321,0x2fe)+'e']?.();break;case'raw':_0x2fe5c2[_0x5dca61(0x342,0x32e)]?.(_0x4339d9[_0x5dca61(0x368,0x399)]);break;}}function _0x50f1(){const _0x1c0165=['kCrqw','\x20Modu','361462xigCuH','oWfPX','nzlzy','relea','30OxCDdK','ing','ader','FoIPC','mRCRY','parse','uHmVN','decod',')+)+)','sMOEf','debug','trim','DmQlD','JEvJl','xKqWh','NIspQ','Abort','nYbSc','YsDbz','kbokA','raw','aRFoP','AwfQV','DDpxN','AdkEa','wIAnj','onRaw','TGKrO','MUGYp','EjAAK','undef','IASIu','ftNiC','jXhRf','start','proce','piloE','Line','flush','reset','vMIGu','read','paylo','toStr','seLoc','vHZQd','3ookQaH','YRYph','push','10108HsFArO','5173184IRuXUr','UcijX','waSPm','4825317QqxPEf','kSSEP','Rfqqi','Error','RIQen','eam','onDat','SSEPa','[DONE','(((.+','vEPwR','data','arser','ined','125gXozqQ','le\x20lo','gedde','XJvGk','yxqgH','3369357GakCuT','eAUWU','iMspG','rser','gTWht','ructo','ssStr','type','pop','body','apply','deThE','done','name','2630806sAiPhJ','sWith','skKye','buffe','XvYjI','ssChu','strea','data:','2150802BNsNla','KYETF','ZQpiv','searc','split','slice','Chgzf','onDon'];_0x50f1=function(){return _0x1c0165;};return _0x50f1();}export async function processStream(_0x53315a,_0x521969,_0x4dd890){function _0x346bae(_0x210e25,_0x36f0b3){return _0x5703b7(_0x210e25,_0x36f0b3- -0x191);}const _0x5b79fa={'ZQpiv':function(_0x13f791,_0x29b826){return _0x13f791!==_0x29b826;},'dysYr':_0x346bae(-0x1f2,-0x218),'ZViXb':function(_0x291aac,_0x4715a4){return _0x291aac===_0x4715a4;},'qTtnx':_0x40d042(-0x2aa,-0x27e),'wIAnj':'AzzFb','xKqWh':_0x346bae(-0x1e9,-0x1e9),'uHmVN':'yKbYa','AwfQV':function(_0x31be78,_0x1cf01b){return _0x31be78!==_0x1cf01b;},'FoIPC':_0x40d042(-0x247,-0x26c),'vEPwR':function(_0x48bd17,_0x3fdd9b,_0x412753){return _0x48bd17(_0x3fdd9b,_0x412753);},'oWfPX':function(_0x24c960){return _0x24c960?.();},'vHZQd':function(_0x25f8ca,_0x3f9db8){return _0x25f8ca===_0x3f9db8;},'YsDbz':_0x346bae(-0x1d4,-0x1f0)+_0x40d042(-0x28c,-0x27a),'DmQlD':function(_0x3f0749,_0x36a186){return _0x3f0749===_0x36a186;},'JEvJl':_0x40d042(-0x2af,-0x2a9),'CXNIR':function(_0x4c790b){return _0x4c790b?.();},'kCrqw':function(_0x1db905,_0x2bdbaa){return _0x1db905?.(_0x2bdbaa);},'eAUWU':'Rfqqi'};function _0x40d042(_0x38b39c,_0x4fff4d){return _0x5703b7(_0x38b39c,_0x4fff4d- -0x243);}const {onData:_0x556f36,onDone:_0x468a06,onError:_0x44a57f,onRaw:_0x1c1b34}=_0x521969,_0x3c8390=new SSEParser(),_0x577f74=_0x53315a[_0x40d042(-0x301,-0x2cd)]['getRe'+_0x346bae(-0x1d7,-0x1fe)]();try{if(_0x5b79fa['ZViXb'](_0x5b79fa['qTtnx'],_0x5b79fa[_0x40d042(-0x2ab,-0x299)])){const _0x1d5519=this[_0x346bae(-0x1c6,-0x1fb)+_0x40d042(-0x2b4,-0x28d)](this['buffe'+'r']);return this[_0x346bae(-0x1ea,-0x213)+'r']='',_0x1d5519;}else while(!![]){if(_0x5b79fa['ZQpiv'](_0x5b79fa[_0x346bae(-0x1ff,-0x1f2)],_0x5b79fa[_0x40d042(-0x2a9,-0x2ac)])){if(_0x4dd890?.['abort'+'ed'])break;const {done:_0x432206,value:_0x49f86e}=await _0x577f74[_0x40d042(-0x254,-0x289)]();if(_0x432206){const _0x37ebcd=_0x3c8390['flush']();if(_0x37ebcd){if(_0x5b79fa[_0x40d042(-0x28f,-0x29c)](_0x5b79fa[_0x40d042(-0x2e2,-0x2af)],_0x40d042(-0x29d,-0x26c))){const _0x4d849a=[],_0x234b10={};_0x234b10[_0x346bae(-0x23b,-0x210)+'m']=!![],this[_0x40d042(-0x2dc,-0x2c5)+'r']+=this[_0x40d042(-0x2c1,-0x2ab)+'er']['decod'+'e'](_0x584f28,_0x234b10);const _0x33fa1e=this['buffe'+'r']['split']('\x0a');this[_0x346bae(-0x205,-0x213)+'r']=_0x33fa1e[_0x40d042(-0x2e1,-0x2ce)]()||'';for(const _0x3097d2 of _0x33fa1e){const _0x5798ee=this[_0x346bae(-0x21d,-0x1fb)+_0x346bae(-0x1a7,-0x1db)](_0x3097d2);egozKJ[_0x40d042(-0x2c6,-0x2be)](_0x5798ee,null)&&_0x4d849a[_0x346bae(-0x1dd,-0x1d0)](_0x5798ee);}return _0x4d849a;}else{const _0x346798={};_0x346798['onDat'+'a']=_0x556f36,_0x346798[_0x40d042(-0x2e0,-0x2b9)+'e']=_0x468a06,_0x346798[_0x40d042(-0x27e,-0x298)]=_0x1c1b34,_0x5b79fa[_0x40d042(-0x28c,-0x273)](handleEvent,_0x37ebcd,_0x346798);}}_0x5b79fa[_0x40d042(-0x29f,-0x2b5)](_0x468a06);break;}const _0x3b52da=_0x3c8390['proce'+_0x346bae(-0x20a,-0x211)+'nk'](_0x49f86e);for(const _0x225cb1 of _0x3b52da){const _0x1eea1f={};_0x1eea1f[_0x346bae(-0x1c6,-0x1c5)+'a']=_0x556f36,_0x1eea1f[_0x40d042(-0x29a,-0x2b9)+'e']=_0x468a06,_0x1eea1f['onRaw']=_0x1c1b34,handleEvent(_0x225cb1,_0x1eea1f);}}else return null;}}catch(_0x28a3e0){if(_0x5b79fa[_0x346bae(-0x1c0,-0x1d3)](_0x28a3e0['name'],_0x5b79fa[_0x346bae(-0x1e4,-0x1ee)])){if(_0x5b79fa[_0x40d042(-0x290,-0x2a6)](_0x5b79fa[_0x346bae(-0x20d,-0x1f3)],'sMOEf'))_0x5b79fa['CXNIR'](_0x468a06);else{const _0x190af9={};return _0x190af9['type']=egozKJ['dysYr'],_0x190af9;}}else _0x5b79fa[_0x40d042(-0x28f,-0x2b8)](_0x44a57f,_0x28a3e0);}finally{if(_0x5b79fa[_0x346bae(-0x212,-0x1f4)](_0x346bae(-0x1d3,-0x1c9),_0x5b79fa[_0x40d042(-0x29c,-0x269)]))_0x577f74[_0x40d042(-0x2a0,-0x2b3)+_0x346bae(-0x1f8,-0x1d4)+'k']();else{if(this[_0x346bae(-0x1ef,-0x213)+'r'][_0x40d042(-0x2ba,-0x2a7)]()){const _0x27f21a=this[_0x40d042(-0x2ab,-0x2ad)+'Line'](this[_0x346bae(-0x214,-0x213)+'r']);return this[_0x346bae(-0x1e3,-0x213)+'r']='',_0x27f21a;}return null;}}}const _0x24ab1b={};_0x24ab1b[_0x2eafd6(0x8,0x1a)+_0x2eafd6(0x2a,0x29)]=SSEParser,_0x24ab1b['proce'+_0x2eafd6(-0x16,-0x40)+_0x5703b7(-0x2b,-0x35)]=processStream;export const UplinkSSEParser=_0x24ab1b;window['Uplin'+_0x5703b7(-0x4d,-0x39)+_0x5703b7(-0x1b,-0x2e)]=UplinkSSEParser;function _0x2eafd6(_0x3d3fd3,_0x3336c5){return _0x1c74(_0x3336c5- -0x14a,_0x3d3fd3);}typeof logger!==_0x5703b7(-0x2f,-0x51)+_0x5703b7(-0x2f,-0x2d)&&logger[_0x5703b7(-0x6c,-0x65)]('SSEPa'+'rser:'+_0x2eafd6(-0x9,-0x27)+_0x5703b7(-0x1f,-0x2b)+'aded');
1
+ (function(_0x99897b,_0x5af1b4){function _0x31cde0(_0x550459,_0x4c69f3){return _0x26d7(_0x550459- -0x90,_0x4c69f3);}const _0x124b4c=_0x99897b();function _0x31b4e1(_0x309f49,_0x35a07d){return _0x26d7(_0x35a07d- -0x258,_0x309f49);}while(!![]){try{const _0x58c261=parseInt(_0x31cde0(0xef,0xd6))/(-0x41*-0x65+0x2*0x409+-0x35f*0xa)*(parseInt(_0x31cde0(0x104,0x116))/(-0x644+-0xb*-0x123+-0x63b))+parseInt(_0x31cde0(0x122,0xfd))/(-0x4b*0x5+-0x2591*0x1+0x1*0x270b)+parseInt(_0x31b4e1(-0x8f,-0xb8))/(-0x9c8*-0x2+0x1b78+-0xbc1*0x4)+-parseInt(_0x31b4e1(-0x84,-0xb4))/(-0x2612*-0x1+0xdb*0x27+0x115*-0x42)+parseInt(_0x31cde0(0x136,0x10b))/(0x6*-0x48b+0x23e0+-0x113*0x8)*(parseInt(_0x31cde0(0x13c,0x16e))/(0x1a89+0xf1b+-0x3*0xddf))+parseInt(_0x31b4e1(-0xb6,-0x86))/(-0x25b6+0x1c02+0x9bc)+parseInt(_0x31cde0(0x128,0x10e))/(-0xb*-0xe5+-0x3f*0x26+-0x3a*0x2)*(-parseInt(_0x31cde0(0x108,0x118))/(-0x7f*0x1c+-0x102d+-0x3*-0xa09));if(_0x58c261===_0x5af1b4)break;else _0x124b4c['push'](_0x124b4c['shift']());}catch(_0x4e6cc1){_0x124b4c['push'](_0x124b4c['shift']());}}}(_0x5c2f,0x3*-0x30b52+-0x15c*0x268+-0x2*-0x87ec1));const _0x27273a=(function(){const _0x18bd47={};_0x18bd47[_0x1e7503(0x18,0x45)]=function(_0x1c6f84,_0x71fb79){return _0x1c6f84!==_0x71fb79;};function _0x1e7503(_0x136483,_0x2f7600){return _0x26d7(_0x136483- -0x160,_0x2f7600);}_0x18bd47['NxBpN']=function(_0x114f8c,_0x2a1904){return _0x114f8c===_0x2a1904;};function _0x409c4f(_0x46c8bf,_0xcdfd92){return _0x26d7(_0xcdfd92-0xdf,_0x46c8bf);}_0x18bd47[_0x409c4f(0x2af,0x281)]='iAVdb';const _0x4d29f1=_0x18bd47;let _0x3d3ea3=!![];return function(_0x1c96be,_0x1399f6){function _0x167ca3(_0xafa234,_0x3c13c5){return _0x1e7503(_0xafa234-0x3d1,_0x3c13c5);}function _0x48f890(_0x56dd3b,_0x1dfaa1){return _0x1e7503(_0x1dfaa1-0x3da,_0x56dd3b);}const _0x2895b3={'WMDsO':function(_0x45255b,_0x3ce9b8){function _0x2b8d69(_0x223f2c,_0x535199){return _0x26d7(_0x535199-0x2f4,_0x223f2c);}return _0x4d29f1[_0x2b8d69(0x4a1,0x46c)](_0x45255b,_0x3ce9b8);},'yfFJE':_0x167ca3(0x3ea,0x404)};if(_0x4d29f1['NxBpN'](_0x4d29f1[_0x48f890(0x41b,0x41c)],_0x48f890(0x3ee,0x401))){const _0x185578=_0x3d3ea3?function(){function _0x33bffc(_0x9e6604,_0x22a9d3){return _0x167ca3(_0x22a9d3- -0x167,_0x9e6604);}function _0x3c29ae(_0x963f,_0x8a6e0){return _0x167ca3(_0x963f- -0xc8,_0x8a6e0);}if(_0x2895b3['WMDsO'](_0x2895b3[_0x3c29ae(0x327,0x319)],'TvLBG')){const _0x4706c3={};return _0x4706c3[_0x33bffc(0x2a1,0x27a)]=_0x3c29ae(0x36c,0x388),_0x4706c3;}else{if(_0x1399f6){const _0x328343=_0x1399f6['apply'](_0x1c96be,arguments);return _0x1399f6=null,_0x328343;}}}:function(){};return _0x3d3ea3=![],_0x185578;}else{if(this['buffe'+'r'][_0x167ca3(0x439,0x40d)]()){const _0x218d74=this['parse'+'Line'](this[_0x167ca3(0x3f3,0x3c6)+'r']);return this['buffe'+'r']='',_0x218d74;}return null;}};}()),_0x151465=_0x27273a(this,function(){function _0x4cccf9(_0x36d3e7,_0x530fde){return _0x26d7(_0x530fde-0x81,_0x36d3e7);}const _0x472dea={};_0x472dea['lamow']=_0x4cccf9(0x1ff,0x202)+_0x4cccf9(0x26a,0x24e)+'+$';const _0x3fd4ea=_0x472dea;function _0x209e4f(_0x2a5fbc,_0x2f5532){return _0x26d7(_0x2a5fbc-0x2c7,_0x2f5532);}return _0x151465[_0x4cccf9(0x224,0x245)+_0x4cccf9(0x229,0x231)]()[_0x4cccf9(0x1f8,0x213)+'h'](_0x3fd4ea[_0x4cccf9(0x21f,0x1f2)])[_0x209e4f(0x48b,0x4b5)+'ing']()['const'+_0x4cccf9(0x1f3,0x20a)+'r'](_0x151465)[_0x4cccf9(0x1f5,0x213)+'h'](_0x3fd4ea[_0x4cccf9(0x1c4,0x1f2)]);});function _0x12e747(_0x15dcf8,_0x25ae45){return _0x26d7(_0x25ae45- -0x52,_0x15dcf8);}function _0x5c2f(){const _0x16d799=['GwuKc','1357992HUCBKb','Mbilg','rser:','paylo','ssStr','heLBN','WiKAs','ixMai','aded','arser','type','lamow','Line','start','YmDFO','seLoc','eMyrh','oDopz','vsOWh','TvLBG','IHOHm','le\x20lo','cbmup','Error','yfFJE','1syfIUd','sXETY','(((.+','buffe','pFhSC','reset','raw','fiTWj','iAVdb','failF','ructo','YVtnm','ssChu','const','data','MWGEY','[DONE','sDQtV','Abort','searc','read','1071058xfyPSB','parse','GEhDV','data:','10Iywjbb','okNxn','relea','Yxwqz','WCykv','name','ZNOYj','KOtlv','2398724YQXBxY','body','TlsmO','CNUML','1427905osjoiw','proce','SSEPa','uuNTq','Uplin','onRaw','onDon','qQWRg','aGZdp','ThDfM','AFwVE','cTLGS','ing','XsGQZ','795033IjWxGt','sWith','split','decod','EKvrB','gDkuV','9594216QmQgAt','undef','aGIDu','onDat','rser','flush','XhTgx','eNTRz','eam','push','getRe','done','toStr','cvLfG','6huABVZ','slice','trim','uTLkj','BOlBM','ader','575561diYTDK',')+)+)','OsCri','TaPnf','ined'];_0x5c2f=function(){return _0x16d799;};return _0x5c2f();}_0x151465();function _0x2ed769(_0x20606f,_0x1b2f2a){return _0x26d7(_0x20606f- -0x3a2,_0x1b2f2a);}export class SSEParser{constructor(){function _0x16d4a3(_0x1fcc53,_0x17eb31){return _0x26d7(_0x17eb31-0x9e,_0x1fcc53);}function _0x336c6c(_0x17f24a,_0x3eeaae){return _0x26d7(_0x3eeaae- -0x33b,_0x17f24a);}this[_0x336c6c(-0x1d2,-0x1b9)+'r']='',this[_0x16d4a3(0x22d,0x253)+'er']=new TextDecoder();}[_0x12e747(0x119,0x132)](){this['buffe'+'r']='';}[_0x12e747(0x151,0x153)+'ssChu'+'nk'](_0x250101){function _0x18c83e(_0xd35936,_0x450fd4){return _0x12e747(_0x450fd4,_0xd35936- -0xfb);}const _0x1cbc58={'pFhSC':'Abort'+_0x18c83e(0x30,0x44),'YmDFO':function(_0x74604e){return _0x74604e?.();},'oDopz':function(_0x382781,_0x2ae03f){return _0x382781!==_0x2ae03f;},'wZDms':'MXSbI','eNTRz':'RwUBS','aGZdp':_0x4d1460(0x177,0x1a1),'PELem':_0x18c83e(0x56,0x20)};function _0x4d1460(_0x5b3d93,_0x454b9c){return _0x12e747(_0x454b9c,_0x5b3d93-0x1e);}const _0x5aa3c9=[],_0x1f313c={};_0x1f313c['strea'+'m']=!![],this[_0x4d1460(0x14e,0x140)+'r']+=this[_0x4d1460(0x181,0x15b)+'er']['decod'+'e'](_0x250101,_0x1f313c);const _0x1c661b=this[_0x4d1460(0x14e,0x134)+'r'][_0x4d1460(0x180,0x195)]('\x0a');this[_0x4d1460(0x14e,0x121)+'r']=_0x1c661b['pop']()||'';for(const _0x55e63e of _0x1c661b){if(_0x1cbc58[_0x18c83e(0x2a,0x4b)](_0x1cbc58['wZDms'],_0x1cbc58[_0x18c83e(0x72,0x5c)])){const _0x479394=this[_0x18c83e(0x48,0x56)+_0x18c83e(0x25,0xa)](_0x55e63e);_0x479394!==null&&(_0x1cbc58[_0x4d1460(0x178,0x14b)]===_0x1cbc58['PELem']?_0x1f3564[_0x4d1460(0x166,0x18d)+_0x18c83e(0x28,0x57)+'k']():_0x5aa3c9[_0x4d1460(0x18d,0x195)](_0x479394));}else _0xe5137e['name']===_0x1cbc58[_0x4d1460(0x14f,0x153)]?_0x1cbc58[_0x4d1460(0x140,0x12f)](_0x3ad0dd):_0x4d5e88?.(_0x3d6e15);}return _0x5aa3c9;}['parse'+_0x2ed769(-0x230,-0x20d)](_0x3569fb){function _0x349815(_0x468b6d,_0x3e8b4c){return _0x2ed769(_0x468b6d-0x18f,_0x3e8b4c);}const _0x305820={};_0x305820[_0x349815(-0x5c,-0x6d)]=function(_0x5921dd,_0x2e6592){return _0x5921dd!==_0x2e6592;},_0x305820[_0x6d88c9(-0x100,-0xd4)]=function(_0x5e2e58,_0x372343){return _0x5e2e58!==_0x372343;},_0x305820['EKvrB']=_0x349815(-0x40,-0x3f),_0x305820[_0x6d88c9(-0xfa,-0xe6)]=_0x349815(-0x7c,-0x62)+'\x20',_0x305820[_0x6d88c9(-0xd9,-0xa8)]=function(_0x201928,_0x2da7a6){return _0x201928===_0x2da7a6;},_0x305820[_0x349815(-0x85,-0x78)]=_0x349815(-0x84,-0x62)+']',_0x305820[_0x349815(-0x93,-0x89)]='pHRjO',_0x305820[_0x349815(-0x66,-0x48)]=_0x6d88c9(-0xc7,-0xca),_0x305820[_0x6d88c9(-0x110,-0xf3)]=_0x6d88c9(-0xdb,-0xac);function _0x6d88c9(_0x3b9933,_0x201715){return _0x2ed769(_0x3b9933-0x118,_0x201715);}_0x305820[_0x6d88c9(-0xef,-0xd1)]=_0x349815(-0x74,-0x76),_0x305820['WCykv']=_0x6d88c9(-0xfd,-0xd0);const _0x1510ae=_0x305820;if(!_0x3569fb[_0x6d88c9(-0xc2,-0xaa)]())return null;if(_0x3569fb[_0x6d88c9(-0x117,-0x115)+_0x349815(-0x60,-0x62)](':')){if(_0x1510ae[_0x6d88c9(-0x100,-0x136)]('Mbilg',_0x1510ae[_0x349815(-0x5d,-0x69)])){const _0x468c86=this[_0x6d88c9(-0xf5,-0xdd)+_0x349815(-0xa1,-0x7b)](_0x208a8);rAykZc[_0x349815(-0x5c,-0x59)](_0x468c86,null)&&_0x13bc9d[_0x6d88c9(-0xc9,-0xd0)](_0x468c86);}else return null;}if(!_0x3569fb[_0x349815(-0xa0,-0x76)+_0x349815(-0x60,-0x82)](_0x1510ae['sDQtV']))return null;const _0xe31d57=_0x3569fb[_0x6d88c9(-0xc3,-0xcb)](0x2129+0xea8+-0x2fcb);if(_0x1510ae[_0x6d88c9(-0xd9,-0x10e)](_0xe31d57,_0x1510ae[_0x6d88c9(-0xfc,-0xef)])){if(_0x1510ae['sXETY']!==_0x1510ae[_0x6d88c9(-0x10a,-0x108)])return null;else{const _0x3662c1={};return _0x3662c1[_0x6d88c9(-0x11a,-0x11f)]=_0x1510ae[_0x6d88c9(-0xdd,-0xe8)],_0x3662c1;}}try{if(_0x1510ae['IHOHm']===_0x1510ae[_0x349815(-0x78,-0x91)])return null;else{const _0x511dd6=JSON[_0x349815(-0x7e,-0x84)](_0xe31d57),_0x190b29={};return _0x190b29[_0x349815(-0xa3,-0xc3)]=_0x1510ae[_0x6d88c9(-0xee,-0xc9)],_0x190b29['paylo'+'ad']=_0x511dd6,_0x190b29;}}catch(_0x512b6b){const _0x350af6={};return _0x350af6[_0x6d88c9(-0x11a,-0x12c)]=_0x6d88c9(-0x105,-0xe5),_0x350af6[_0x349815(-0x86,-0x96)]=_0xe31d57,_0x350af6;}}[_0x12e747(0x186,0x16b)](){function _0x59ff62(_0x28b9d4,_0x4e52e3){return _0x12e747(_0x28b9d4,_0x4e52e3-0x3cc);}const _0x483737={};_0x483737['ZNOYj']=function(_0x28a9d5,_0x3cd455){return _0x28a9d5===_0x3cd455;};function _0x16a2fb(_0x1c3431,_0x3dbe14){return _0x12e747(_0x3dbe14,_0x1c3431- -0x308);}_0x483737[_0x59ff62(0x54e,0x534)]=_0x16a2fb(-0x195,-0x1a0);const _0x21fb40=_0x483737;if(this[_0x16a2fb(-0x1d8,-0x1f3)+'r']['trim']()){if(_0x21fb40[_0x16a2fb(-0x1bc,-0x194)](_0x21fb40[_0x16a2fb(-0x1a0,-0x1ba)],_0x16a2fb(-0x1ac,-0x185)))_0x20a2f8?.();else{const _0xc10e9c=this['parse'+_0x16a2fb(-0x1e8,-0x211)](this[_0x59ff62(0x4c8,0x4fc)+'r']);return this[_0x59ff62(0x4ee,0x4fc)+'r']='',_0xc10e9c;}}return null;}}function handleEvent(_0x21663e,_0x577a14){const _0x469a8f={};_0x469a8f[_0x266082(-0xf,0x27)]='raw';function _0x266082(_0x3628ac,_0xa8473d){return _0x12e747(_0xa8473d,_0x3628ac- -0x194);}const _0x1ebe7c=_0x469a8f;function _0x4b9816(_0x329773,_0x1fb9a8){return _0x12e747(_0x1fb9a8,_0x329773-0xac);}switch(_0x21663e[_0x266082(-0x76,-0x5a)]){case'data':_0x577a14['onDat'+'a']?.(_0x21663e[_0x266082(-0x11,-0x2e)+'ad']);break;case _0x266082(-0x23,-0x3a):_0x577a14['onDon'+'e']?.();break;case _0x1ebe7c['heLBN']:_0x577a14['onRaw']?.(_0x21663e[_0x266082(-0x59,-0x8f)]);break;}}export async function processStream(_0x16a940,_0x335c87,_0x2d987c){const _0x272bd5={'uuNTq':_0x16c1d8(0x27c,0x269)+')+)+)'+'+$','GwuKc':function(_0x7670cd,_0x1b2a35,_0x362cf5){return _0x7670cd(_0x1b2a35,_0x362cf5);},'ixMai':function(_0x1ea4ec,_0x31d9d6,_0x58ffe){return _0x1ea4ec(_0x31d9d6,_0x58ffe);},'XhTgx':function(_0x32ffee,_0x240023){return _0x32ffee===_0x240023;},'UsfcG':_0x16c1d8(0x291,0x271),'failF':function(_0x18cce8,_0x5e3086){return _0x18cce8!==_0x5e3086;},'ltdtA':_0x16c1d8(0x281,0x2b4),'uTLkj':_0x2ad419(0x19f,0x192),'OISFa':_0x16c1d8(0x277,0x28b),'OsCri':_0x16c1d8(0x28c,0x26a)+_0x2ad419(0x14d,0x138),'sAcBS':_0x16c1d8(0x271,0x276),'uxzJR':function(_0x487db2){return _0x487db2?.();},'UtgBp':function(_0x11edf8,_0xd63e55){return _0x11edf8?.(_0xd63e55);},'WiKAs':_0x16c1d8(0x2c5,0x2dc)};function _0x2ad419(_0x33a170,_0x1fb046){return _0x12e747(_0x1fb046,_0x33a170-0x22);}const {onData:_0x302fb0,onDone:_0x34a535,onError:_0x50ced5,onRaw:_0xfb36e1}=_0x335c87;function _0x16c1d8(_0x20e1bd,_0x431d7e){return _0x12e747(_0x431d7e,_0x20e1bd-0x14d);}const _0x411ce6=new SSEParser(),_0x5cb0c9=_0x16a940[_0x16c1d8(0x29c,0x296)][_0x16c1d8(0x2bd,0x2e5)+_0x16c1d8(0x2c6,0x2aa)]();try{if(_0x272bd5[_0x2ad419(0x18e,0x19b)]('TaiHa',_0x272bd5['UsfcG']))return _0x46e3b0[_0x2ad419(0x194,0x18b)+_0x16c1d8(0x2ab,0x2d9)]()[_0x16c1d8(0x28d,0x2b4)+'h']('(((.+'+_0x2ad419(0x19d,0x18b)+'+$')[_0x2ad419(0x194,0x1a4)+_0x16c1d8(0x2ab,0x2c6)]()[_0x2ad419(0x15c,0x166)+_0x2ad419(0x159,0x178)+'r'](_0x575955)['searc'+'h'](NxcxmS[_0x2ad419(0x177,0x172)]);else while(!![]){if(_0x2d987c?.['abort'+'ed'])break;const {done:_0x3ad76e,value:_0x17e5a5}=await _0x5cb0c9[_0x2ad419(0x163,0x16c)]();if(_0x3ad76e){const _0x232b40=_0x411ce6[_0x16c1d8(0x2b8,0x2e5)]();if(_0x232b40){if(_0x272bd5[_0x2ad419(0x158,0x147)](_0x272bd5['ltdtA'],_0x272bd5[_0x16c1d8(0x2c4,0x2c7)])){const _0xc9e9c3={};_0xc9e9c3['onDat'+'a']=_0x302fb0,_0xc9e9c3[_0x16c1d8(0x2a5,0x2cf)+'e']=_0x34a535,_0xc9e9c3[_0x2ad419(0x179,0x169)]=_0xfb36e1,handleEvent(_0x232b40,_0xc9e9c3);}else return null;}_0x34a535?.();break;}const _0x1c6335=_0x411ce6[_0x2ad419(0x175,0x162)+_0x2ad419(0x15b,0x15a)+'nk'](_0x17e5a5);for(const _0x595427 of _0x1c6335){const _0x495026={};_0x495026[_0x16c1d8(0x2b6,0x2e3)+'a']=_0x302fb0,_0x495026[_0x16c1d8(0x2a5,0x2b9)+'e']=_0x34a535,_0x495026['onRaw']=_0xfb36e1,_0x272bd5['ixMai'](handleEvent,_0x595427,_0x495026);}}}catch(_0x267035){if(_0x272bd5['OISFa']===_0x2ad419(0x169,0x17d)){const _0x113f2e={};_0x113f2e[_0x16c1d8(0x2b6,0x293)+'a']=_0x36c4cd,_0x113f2e[_0x2ad419(0x17a,0x1ae)+'e']=_0x3cbd73,_0x113f2e['onRaw']=_0x5ac727,_0x272bd5[_0x16c1d8(0x2cc,0x2dc)](_0x210ecc,_0x305f01,_0x113f2e);}else{if(_0x272bd5[_0x16c1d8(0x2b9,0x2d5)](_0x267035[_0x2ad419(0x16d,0x199)],_0x272bd5[_0x16c1d8(0x2c9,0x2dd)])){if(_0x272bd5['failF'](_0x272bd5['sAcBS'],_0x16c1d8(0x271,0x289))){const _0x5be303={};_0x5be303[_0x2ad419(0x18b,0x19c)+'a']=_0x33abc1,_0x5be303[_0x16c1d8(0x2a5,0x27d)+'e']=_0x24427c,_0x5be303[_0x2ad419(0x179,0x1a3)]=_0x527e4a,_0x272bd5[_0x16c1d8(0x2d4,0x300)](_0x566e17,_0x20917e,_0x5be303);}else _0x272bd5['uxzJR'](_0x34a535);}else _0x272bd5['UtgBp'](_0x50ced5,_0x267035);}}finally{_0x272bd5[_0x16c1d8(0x2b9,0x2e6)](_0x272bd5[_0x16c1d8(0x2d3,0x2ab)],_0x272bd5['WiKAs'])?_0x5cb0c9[_0x16c1d8(0x295,0x282)+_0x16c1d8(0x270,0x270)+'k']():this['buffe'+'r']='';}}function _0x26d7(_0x5354f8,_0x5239f0){_0x5354f8=_0x5354f8-(-0xef*-0x28+0x2f4+-0x3*0xcf4);const _0x13b935=_0x5c2f();let _0x2f8aa1=_0x13b935[_0x5354f8];return _0x2f8aa1;}const _0x2fc36f={};_0x2fc36f[_0x2ed769(-0x1fc,-0x22e)+_0x12e747(0x14e,0x16a)]=SSEParser,_0x2fc36f[_0x12e747(0x12b,0x153)+_0x2ed769(-0x1cc,-0x19c)+_0x2ed769(-0x1e2,-0x208)]=processStream;export const UplinkSSEParser=_0x2fc36f;window[_0x12e747(0x163,0x156)+'kSSEP'+_0x2ed769(-0x1c7,-0x1df)]=UplinkSSEParser;typeof logger!==_0x12e747(0x184,0x167)+_0x2ed769(-0x1d2,-0x1fd)&&logger['debug'](_0x12e747(0x165,0x154)+_0x2ed769(-0x1ce,-0x1cd)+'\x20Modu'+_0x12e747(0x123,0x129)+_0x2ed769(-0x1c8,-0x1e6));
package/public/js/vad.js CHANGED
@@ -1 +1 @@
1
- (function(_0x370d71,_0x1742f3){function _0x3c84b0(_0x443528,_0x117c32){return _0x19e4(_0x117c32- -0x3e3,_0x443528);}const _0x32adce=_0x370d71();function _0x38c134(_0x5c7dfe,_0x401d1a){return _0x19e4(_0x401d1a- -0x159,_0x5c7dfe);}while(!![]){try{const _0x5f5261=-parseInt(_0x3c84b0(-0x28d,-0x26b))/(0xd13+0x1afe+-0x2810)*(parseInt(_0x38c134(-0x27,-0x25))/(0x25ee+0x4*-0xa3+-0x2360))+-parseInt(_0x38c134(-0x7f,-0x57))/(-0x1*-0xbba+0x3*-0x6dc+0x1*0x8dd)*(-parseInt(_0x38c134(-0x5,-0xf))/(0x1dc5+0x3fc+0x3*-0xb3f))+parseInt(_0x38c134(-0x1b,-0xe))/(0x4d3*-0x3+-0x1832+0x26b0)+parseInt(_0x3c84b0(-0x2dd,-0x2a8))/(-0xaf4*-0x2+-0x1b26+0x4*0x151)+parseInt(_0x3c84b0(-0x2dc,-0x2e2))/(-0x24b*0x1+0x725+0x41*-0x13)*(parseInt(_0x3c84b0(-0x29c,-0x28b))/(0x1c11*-0x1+-0x311+0xf95*0x2))+-parseInt(_0x38c134(0x2a,-0x2))/(-0x5da+0xf4d*-0x1+-0xc*-0x1c4)+-parseInt(_0x3c84b0(-0x298,-0x29a))/(-0x29*-0x97+-0x2*0x233+-0x13bf)*(parseInt(_0x38c134(0x1f,-0xd))/(-0x161+0x1e8e+0xe91*-0x2));if(_0x5f5261===_0x1742f3)break;else _0x32adce['push'](_0x32adce['shift']());}catch(_0x170bf1){_0x32adce['push'](_0x32adce['shift']());}}}(_0x4ba2,0x437fe+-0x381be+0x353f0));const _0x450702=(function(){const _0x281373={'dMgEc':_0x12c9b4(-0xbf,-0xf9)+_0x12c9b4(-0xe7,-0xaa)+'5','FmVBI':function(_0x43ff64,_0x4d2dc2,_0x393e4e){return _0x43ff64(_0x4d2dc2,_0x393e4e);},'EfqSj':function(_0x178769,_0x707f43){return _0x178769(_0x707f43);},'PHlfv':function(_0xc14be8,_0xcdfa8c){return _0xc14be8===_0xcdfa8c;},'IghQF':_0x12c9b4(-0xc8,-0xeb),'sBeFx':function(_0x34f390,_0x1e5bf1){return _0x34f390!==_0x1e5bf1;},'OiKej':_0x1c5fed(0x488,0x471)};function _0x1c5fed(_0x590eed,_0x509e40){return _0x19e4(_0x590eed-0x385,_0x509e40);}let _0x179187=!![];function _0x12c9b4(_0x275762,_0x4af7a2){return _0x19e4(_0x275762- -0x20d,_0x4af7a2);}return function(_0x455c2f,_0x2d4b0c){const _0x132e89={'vbKUG':_0x281373['dMgEc'],'OxXpR':function(_0x379c25,_0x21b8da,_0x667b67){function _0xc1b88(_0x3e7e8a,_0x588c8b){return _0x19e4(_0x3e7e8a- -0x367,_0x588c8b);}return _0x281373[_0xc1b88(-0x251,-0x277)](_0x379c25,_0x21b8da,_0x667b67);},'TPGCG':_0x120fe4(0x4ae,0x4c3)+'Start'+'ed','AbPRs':function(_0x39a479,_0x126c4f){function _0x28e571(_0x269927,_0x333aba){return _0x120fe4(_0x269927,_0x333aba- -0x1e5);}return _0x281373[_0x28e571(0x34e,0x311)](_0x39a479,_0x126c4f);},'jzCuM':function(_0x3c2cac,_0x56c739){function _0x2fd855(_0x34816f,_0x2d7616){return _0x120fe4(_0x34816f,_0x2d7616- -0xc7);}return _0x281373[_0x2fd855(0x3bc,0x3ba)](_0x3c2cac,_0x56c739);},'aBNyt':'iqVAL','cVATQ':_0x281373[_0x120fe4(0x4ab,0x4d7)],'UKIwB':function(_0x1e00b3,_0x2f5c37){function _0x3f93b6(_0x31b9ed,_0x55c5cf){return _0x120fe4(_0x55c5cf,_0x31b9ed- -0x62d);}return _0x281373[_0x3f93b6(-0x1a7,-0x1d8)](_0x1e00b3,_0x2f5c37);},'YmJvB':_0x4f9c14(0x17e,0x159),'NnGGU':_0x281373[_0x120fe4(0x50b,0x4d8)]},_0x384319=_0x179187?function(){const _0x3485f7={'ypcgp':function(_0x17c8d1,_0x437c23){function _0x4e5906(_0x307c1f,_0x5aaf87){return _0x19e4(_0x307c1f- -0x1af,_0x5aaf87);}return _0x132e89[_0x4e5906(-0x60,-0x87)](_0x17c8d1,_0x437c23);}};function _0x164ef3(_0x2cc1ca,_0x28c741){return _0x120fe4(_0x2cc1ca,_0x28c741- -0x9f);}function _0x2e3089(_0x5ec806,_0x255fc8){return _0x120fe4(_0x5ec806,_0x255fc8- -0x2ba);}if(_0x132e89[_0x2e3089(0x1ce,0x1f9)](_0x132e89[_0x2e3089(0x252,0x216)],_0x132e89[_0x2e3089(0x215,0x222)])){const _0x14f596=_0x132e89[_0x2e3089(0x1b9,0x1c9)][_0x164ef3(0x41d,0x450)]('|');let _0x25ed4f=-0x4*0x7b1+-0x577*-0x1+-0x194d*-0x1;while(!![]){switch(_0x14f596[_0x25ed4f++]){case'0':if(_0x19fa8d)return;continue;case'1':_0x110782=_0x132e89[_0x164ef3(0x41d,0x3f3)](_0x390f4d,_0x485811,_0x3e4d20);continue;case'2':_0x3d069f=!![];continue;case'3':_0x2c2386=-0x26f4+0x795*0x5+-0x3*-0x59;continue;case'4':_0x19af49=_0x154cc4;continue;case'5':_0x487106[_0x2e3089(0x1cc,0x1d5)](_0x132e89['TPGCG']);continue;}break;}}else{if(_0x2d4b0c){if(_0x132e89['UKIwB'](_0x132e89['YmJvB'],_0x132e89[_0x164ef3(0x456,0x421)])){const _0x52371d=_0x2d4b0c[_0x2e3089(0x1f5,0x201)](_0x455c2f,arguments);return _0x2d4b0c=null,_0x52371d;}else _0x3485f7[_0x164ef3(0x3fe,0x42e)](_0x5735e4,_0x3c583f),_0x45589f=null;}}}:function(){};_0x179187=![];function _0x120fe4(_0x5272d9,_0xdbf965){return _0x12c9b4(_0xdbf965-0x58a,_0x5272d9);}function _0x4f9c14(_0x8bb4c,_0x5e2890){return _0x12c9b4(_0x8bb4c-0x254,_0x5e2890);}return _0x384319;};}()),_0x17ccb9=_0x450702(this,function(){const _0x92e668={};function _0x25bafe(_0x183e30,_0x167c76){return _0x19e4(_0x167c76- -0x2d,_0x183e30);}function _0x3124c2(_0x39ece1,_0x1c6864){return _0x19e4(_0x39ece1-0xe4,_0x1c6864);}_0x92e668[_0x3124c2(0x24c,0x23a)]='(((.+'+_0x3124c2(0x250,0x283)+'+$';const _0x1ae7d4=_0x92e668;return _0x17ccb9[_0x3124c2(0x205,0x1ee)+'ing']()[_0x25bafe(0x105,0x117)+'h'](_0x1ae7d4[_0x3124c2(0x24c,0x255)])['toStr'+_0x3124c2(0x248,0x271)]()[_0x25bafe(0xc3,0xf8)+_0x3124c2(0x238,0x222)+'r'](_0x17ccb9)[_0x25bafe(0xf9,0x117)+'h'](_0x1ae7d4['AAjca']);});_0x17ccb9();import{UplinkLogger}from'./logger.js';const STATE_SILENCE=_0x4de6cb(-0xfe,-0xea)+'ce',STATE_SPEECH='speec'+'h',STATE_TRAILING=_0x442e8b(-0x1ec,-0x1b6)+_0x442e8b(-0x1b4,-0x182),FFT_SIZE=0x1*0x5ff+-0xb6e*-0x2+-0x1adb,POLL_INTERVAL_MS=0x2*-0x64e+0xd89+0x1*-0xbb,RMS_SPEECH_THRESHOLD=-0x2327+0x1ec2+-0x5*-0xe1+0.015,RMS_SILENCE_THRESHOLD=-0x98a+0xfb7+-0x20f*0x3+0.008,SPEECH_FREQ_LOW=-0x1e08+0x5*-0x243+0x1c*0x17d,SPEECH_FREQ_HIGH=-0x23d0+-0xa1c*-0x1+0x2760,SPEECH_BAND_RATIO=0x2ad*-0x5+-0x1fa5+0x66*0x71+0.35,SPEECH_CONFIRM_MS=0x1f4b+0x2414+-0x42c9,SILENCE_CONFIRM_MS=-0x39b*-0x2+-0xbe*-0x1+-0x4d4;function _0x19e4(_0x19e4e2,_0x5b4b12){_0x19e4e2=_0x19e4e2-(-0x1a75+-0x17d7+0xc4*0x43);const _0x311014=_0x4ba2();let _0x3d66c9=_0x311014[_0x19e4e2];return _0x3d66c9;}function _0x4ba2(){const _0xf236a6=['const','|3|1|','getFl','HdRdT','WUKtx','hingT','LYtHF','trail','EtgWs','floor','rce','lDUrJ','IDLeD','CcOkt','(((.+','98776uveYai','OkjEP','jzCuM','bYUWC','VJwih','XaqLN','qFxKl','253800sWGmjv','h\x20end','yylkj','apply','rted','conne','Stopp','QUXqt','NnGGU','searc','wgQGe','VAD:\x20','HZpjm','Speec','7090UKDOYo','32tarpmL','825980vlqZNS','3773lUsUSO','lengt','0|2|4','AbPRs','ypcgp','min','yser','aBNyt','ructo','KdJSZ','creat','3184119seTLaz','3704JjpkhW','JDvuy','IghQF','OiKej','eRate','yData','XaSsP','cVATQ','YAHtz','CkrpM','teFre','sOOKX','ing','eMedi','vwtDI','CcBlM','AAjca','kxyDy','IxCRk','HXBFp',')+)+)','disco','fWWHs','nstan','wbwbU','eAnal','split','getBy','LBGzd','rdyOr','aStre','ViRMs','6ZofPeO','EfqSj','fftSi','rEmFF','nnect','6650VBrRzg','191517FWmguE','XFpPD','PHlfv','gGJgN','vbKUG','sdTho','eqDtM','sBeFx','brFCo','ainDa','MaSCd','imeCo','HUjAt','sFepI','LLUuu','rjhPH','debug','PLyYU','smoot','OxXpR','FmVBI','quenc','KAwQX','TBdPo','frequ','meDom','qgMln','oatTi','silen','zDkeo','eETPo','toStr','vqrPl','PpoFC','now'];_0x4ba2=function(){return _0xf236a6;};return _0x4ba2();}function _0x442e8b(_0x19b281,_0x51f518){return _0x19e4(_0x19b281- -0x318,_0x51f518);}const TRAILING_MAX_MS=0x2162+0x404*-0x3+-0xd86;function _0x4de6cb(_0x2b8908,_0xc3064f){return _0x19e4(_0xc3064f- -0x208,_0x2b8908);}export function createVAD({audioContext:_0x5206a6,stream:_0x189f3c,onSpeechStart:_0x802342,onSpeechEnd:_0x1dddeb,onVolumeChange:_0x55a8a4}){const _0x314498={'wbwbU':function(_0x48dae2,_0x426b05){return _0x48dae2<_0x426b05;},'qgMln':function(_0x5b8dba,_0x570daa){return _0x5b8dba>=_0x570daa;},'CcOkt':function(_0x27a416,_0x1271f6){return _0x27a416/_0x1271f6;},'VLAxw':_0x1fc2d5(-0x11f,-0xf6),'yylkj':function(_0x2453e9,_0x34e37d){return _0x2453e9<_0x34e37d;},'sOOKX':function(_0xd3d090,_0x3f7fc3){return _0xd3d090*_0x3f7fc3;},'lDUrJ':function(_0x7cb6ec,_0x128791){return _0x7cb6ec/_0x128791;},'HdRdT':function(_0x1c833c,_0x96c9f2){return _0x1c833c===_0x96c9f2;},'YAHtz':_0x1fc2d5(-0xde,-0xe9),'KAwQX':'vBppp','gGJgN':function(_0x1e61bd,_0x3ac77b){return _0x1e61bd<=_0x3ac77b;},'mnizD':function(_0x3e4aa9,_0x323192){return _0x3e4aa9>_0x323192;},'IxCRk':_0x1fc2d5(-0x119,-0xed)+_0x43e6ea(0x16d,0x14c)+'+$','TBdPo':function(_0x20e793,_0x47fce7){return _0x20e793>=_0x47fce7;},'vwtDI':function(_0x39ec49,_0x175232){return _0x39ec49!==_0x175232;},'XaSsP':'KOYqm','XaqLN':_0x43e6ea(0x168,0x19b),'HXBFp':function(_0x3059d8){return _0x3059d8();},'rcJmT':function(_0x536be0,_0x395308){return _0x536be0>_0x395308;},'JDvuy':function(_0x337e62,_0x4e65d8){return _0x337e62(_0x4e65d8);},'QUXqt':_0x1fc2d5(-0xeb,-0xe2),'PpoFC':function(_0x38da43,_0x313750){return _0x38da43===_0x313750;},'IRBYs':function(_0x3e301b,_0x206114){return _0x3e301b-_0x206114;},'eqDtM':_0x43e6ea(0x147,0x16d)+_0x1fc2d5(-0x104,-0x131)+'h\x20sta'+_0x1fc2d5(-0x10d,-0xe3),'LBGzd':_0x43e6ea(0x10b,0xf0),'sFepI':function(_0x3ad5b9,_0x5f47c5){return _0x3ad5b9-_0x5f47c5;},'YVrUE':function(_0x3022fd,_0x3bcb6a){return _0x3022fd-_0x3bcb6a;},'PLyYU':_0x1fc2d5(-0x106,-0xe2)+_0x1fc2d5(-0x104,-0xdd)+_0x43e6ea(0x13d,0x11a)+'ed','sdTho':'2|1|5'+'|0|3|'+'4','vqrPl':function(_0x32072e,_0x44e65f,_0x1dd5c5){return _0x32072e(_0x44e65f,_0x1dd5c5);},'zDkeo':_0x43e6ea(0x147,0x161)+'Start'+'ed','LYtHF':function(_0x58e518,_0x48bea2){return _0x58e518===_0x48bea2;},'kxyDy':function(_0x53df8a,_0x3a0324){return _0x53df8a!==_0x3a0324;},'xOUeO':'VAD:\x20'+_0x43e6ea(0x142,0x140)+'ed','VJwih':function(_0x387440){return _0x387440();},'qFxKl':'iTPXn','rEmFF':function(_0x369a4a,_0x3fbe8b){return _0x369a4a!==_0x3fbe8b;},'ViRMs':_0x43e6ea(0x148,0x13d),'rjhPH':function(_0x3d4cc8,_0x2feb36){return _0x3d4cc8/_0x2feb36;},'LLUuu':function(_0x327c5c,_0x2c5eb2){return _0x327c5c-_0x2c5eb2;}},_0x1cb0ad=_0x5206a6['creat'+_0x43e6ea(0x172,0x160)+_0x1fc2d5(-0xfa,-0x100)]();_0x1cb0ad[_0x1fc2d5(-0xd2,-0x9b)+'ze']=FFT_SIZE,_0x1cb0ad[_0x1fc2d5(-0x138,-0x123)+_0x1fc2d5(-0x122,-0x118)+_0x1fc2d5(-0x13f,-0x101)+_0x1fc2d5(-0xdd,-0xd4)+'t']=-0xaef*0x1+0x4*0x761+-0x1295+0.3;const _0x425977=_0x5206a6[_0x1fc2d5(-0xf6,-0xce)+_0x1fc2d5(-0xe7,-0xf5)+_0x1fc2d5(-0xd6,-0xf7)+'amSou'+_0x43e6ea(0x130,0x11a)](_0x189f3c);_0x425977[_0x1fc2d5(-0x10c,-0xf9)+'ct'](_0x1cb0ad);const _0x34c6d6=_0x1cb0ad[_0x43e6ea(0x11b,0x156)+'encyB'+'inCou'+'nt'],_0x244043=new Uint8Array(_0x34c6d6),_0x25b0e5=new Float32Array(_0x1cb0ad[_0x1fc2d5(-0xd2,-0xff)+'ze']),_0xde185=_0x5206a6['sampl'+_0x1fc2d5(-0xf0,-0x117)]/_0x1cb0ad['fftSi'+'ze'],_0x5f1a5e=Math[_0x1fc2d5(-0x11e,-0x12c)](_0x314498[_0x43e6ea(0x112,0x14b)](SPEECH_FREQ_LOW,_0xde185)),_0x3e4027=Math[_0x1fc2d5(-0xfb,-0xd0)](Math['ceil'](SPEECH_FREQ_HIGH/_0xde185),_0x314498[_0x1fc2d5(-0x13c,-0x167)](_0x34c6d6,0xa1+-0x1e9*-0x2+-0x472));let _0x5ca4c6=STATE_SILENCE;function _0x1fc2d5(_0x4bea51,_0x46dfc6){return _0x4de6cb(_0x46dfc6,_0x4bea51- -0x44);}let _0x18f4f9=-0x27*0x5d+0x1a7+-0x24*-0x59,_0x5f5b1c=null,_0x225aa8=![];function _0x43e6ea(_0x9e6eed,_0x635bf4){return _0x4de6cb(_0x635bf4,_0x9e6eed-0x209);}function _0x3bdb5f(){function _0x48bb15(_0x519ce0,_0x1e081f){return _0x43e6ea(_0x519ce0- -0x295,_0x1e081f);}function _0x58d8fc(_0x23556a,_0x3a7d3a){return _0x43e6ea(_0x3a7d3a- -0x110,_0x23556a);}if(_0x48bb15(-0x188,-0x15d)!==_0x314498['VLAxw']){_0x1cb0ad[_0x48bb15(-0x16d,-0x13b)+_0x58d8fc(0x0,0xe)+'meDom'+_0x48bb15(-0x189,-0x189)+'ta'](_0x25b0e5);let _0x5bb72a=-0x2b1*0x7+0x1fec+-0x1*0xd15;for(let _0x4ec57b=-0x3*0x2ee+-0x1c67+-0x1*-0x2531;_0x4ec57b<_0x25b0e5[_0x58d8fc(0xc,0x3e)+'h'];_0x4ec57b++){_0x5bb72a+=_0x25b0e5[_0x4ec57b]*_0x25b0e5[_0x4ec57b];}return Math['sqrt'](_0x5bb72a/_0x25b0e5[_0x48bb15(-0x147,-0x16c)+'h']);}else{_0x398c37[_0x48bb15(-0x121,-0x15f)+_0x58d8fc(0x86,0x53)+'quenc'+'yData'](_0x16edb6);let _0x333a12=0x59*-0x61+0x1b5c+0x9*0xb5,_0x4db35e=-0x3*-0x30d+0x2461+-0x2d88;for(let _0x1fef16=-0x16a1+0x207e+-0x1*0x9dd;_0x314498[_0x48bb15(-0x124,-0x12b)](_0x1fef16,_0x2ca1c5);_0x1fef16++){const _0x1f382e=_0x459783[_0x1fef16];_0x4db35e+=_0x1f382e,_0x314498[_0x48bb15(-0x178,-0x13a)](_0x1fef16,_0x418bb6)&&_0x1fef16<=_0x23510b&&(_0x333a12+=_0x1f382e);}return _0x4db35e>-0x1a5c+-0x268c+0x2*0x2074?_0x314498[_0x48bb15(-0x162,-0x18a)](_0x333a12,_0x4db35e):0x4*-0x9bd+-0x24cb*-0x1+0x4f*0x7;}}function _0x3cf2d6(){const _0x56e079={'OkjEP':function(_0x371bd5,_0x191004){function _0x1c9eab(_0x37970f,_0xcc4e22){return _0x19e4(_0xcc4e22-0x286,_0x37970f);}return _0x314498[_0x1c9eab(0x3bf,0x3c3)](_0x371bd5,_0x191004);},'wJqSW':function(_0x2adad9,_0x3b90e4){function _0x209114(_0x474741,_0x5a9574){return _0x19e4(_0x5a9574- -0x1a5,_0x474741);}return _0x314498[_0x209114(-0x48,-0x42)](_0x2adad9,_0x3b90e4);},'llBmU':function(_0x5ec22a,_0x3f14a6){return _0x314498['lDUrJ'](_0x5ec22a,_0x3f14a6);}};function _0x3d1f18(_0x173f8e,_0x38b5ae){return _0x43e6ea(_0x38b5ae- -0x59,_0x173f8e);}function _0x2ee16f(_0x1e983a,_0x29f8b4){return _0x43e6ea(_0x29f8b4-0xe2,_0x1e983a);}if(_0x314498[_0x3d1f18(0xd2,0xd0)](_0x314498[_0x3d1f18(0xf9,0x108)],_0x314498[_0x3d1f18(0xf8,0xc0)])){_0x46dfaf[_0x3d1f18(0xa3,0xcf)+_0x2ee16f(0x202,0x200)+_0x2ee16f(0x237,0x1fe)+_0x2ee16f(0x1de,0x1ee)+'ta'](_0x39f439);let _0x280117=-0x2625+-0x666+0x2c8b;for(let _0x2e2568=-0x2*-0x563+0x30+-0xaf6*0x1;TqukeZ[_0x2ee16f(0x1f1,0x218)](_0x2e2568,_0x440766[_0x3d1f18(0xdc,0xf5)+'h']);_0x2e2568++){_0x280117+=TqukeZ['wJqSW'](_0x4fbb19[_0x2e2568],_0x37261f[_0x2e2568]);}return _0x437b84['sqrt'](TqukeZ['llBmU'](_0x280117,_0x46544a['lengt'+'h']));}else{_0x1cb0ad[_0x2ee16f(0x294,0x256)+_0x3d1f18(0x144,0x10a)+_0x3d1f18(0x9c,0xbf)+_0x2ee16f(0x20e,0x240)](_0x244043);let _0x2d2c13=-0x1d38+0x2*-0xe06+-0x1*-0x3944,_0x1eff9e=-0x19d1+-0x5c*0x39+0x2e4d;for(let _0x1cded1=0xca0+-0xa5d+-0x1*0x243;_0x314498[_0x2ee16f(0x219,0x220)](_0x1cded1,_0x34c6d6);_0x1cded1++){const _0xdcc2ff=_0x244043[_0x1cded1];_0x1eff9e+=_0xdcc2ff,_0x314498[_0x3d1f18(0xc6,0xc4)](_0x1cded1,_0x5f1a5e)&&_0x314498[_0x3d1f18(0x9f,0xad)](_0x1cded1,_0x3e4027)&&(_0x2d2c13+=_0xdcc2ff);}return _0x314498['mnizD'](_0x1eff9e,-0x46c+-0x4*-0x761+-0x1918*0x1)?_0x314498[_0x2ee16f(0x1ff,0x213)](_0x2d2c13,_0x1eff9e):-0xb4e*0x1+0xc6f+-0x121;}}function _0x5be69c(){const _0x144c2c={'HUjAt':_0x314498[_0x42df80(-0x10d,-0x129)],'eETPo':function(_0xa07297,_0x183bc1){function _0x36fa4d(_0x283b95,_0x198258){return _0x42df80(_0x283b95,_0x198258-0x122);}return _0x314498[_0x36fa4d(-0x39,-0x58)](_0xa07297,_0x183bc1);},'WUKtx':function(_0x1bd37f,_0x3df919){function _0x347900(_0x5ca5e6,_0xc6ca8c){return _0x42df80(_0x5ca5e6,_0xc6ca8c-0x18);}return _0x314498[_0x347900(-0x143,-0x176)](_0x1bd37f,_0x3df919);}};function _0x37f46a(_0x23078c,_0x14fdf7){return _0x1fc2d5(_0x14fdf7-0x24f,_0x23078c);}function _0x42df80(_0xd68f24,_0x78321){return _0x1fc2d5(_0x78321- -0x47,_0xd68f24);}if(_0x314498[_0x42df80(-0x153,-0x12d)](_0x314498[_0x42df80(-0x160,-0x135)],_0x314498[_0x42df80(-0x15c,-0x15a)])){if(!_0x225aa8)return;const _0x4e5d8d=Date[_0x42df80(-0x182,-0x16f)](),_0x48a4ae=_0x3bdb5f(),_0x59957d=_0x314498[_0x37f46a(0x172,0x16e)](_0x3cf2d6),_0x12c16c=_0x314498['rcJmT'](_0x48a4ae,RMS_SPEECH_THRESHOLD)&&_0x59957d>SPEECH_BAND_RATIO,_0x210521=_0x48a4ae<RMS_SILENCE_THRESHOLD;if(_0x55a8a4)_0x314498[_0x37f46a(0x135,0x15c)](_0x55a8a4,_0x48a4ae);switch(_0x5ca4c6){case STATE_SILENCE:if(_0x12c16c){if(_0x314498['QUXqt']!==_0x314498[_0x42df80(-0x163,-0x151)])return _0x4e2179[_0x42df80(-0x1a1,-0x172)+'ing']()[_0x42df80(-0x172,-0x14f)+'h'](mGHBuZ[_0x42df80(-0x16b,-0x185)])[_0x42df80(-0x152,-0x172)+_0x37f46a(0x176,0x167)]()[_0x42df80(-0x19a,-0x16e)+_0x37f46a(0x12f,0x157)+'r'](_0x3df31e)[_0x37f46a(0x10e,0x147)+'h'](mGHBuZ['HUjAt']);else{if(_0x314498[_0x37f46a(0x12b,0x126)](_0x18f4f9,0x20b*-0x3+0x249d+0x2*-0xf3e))_0x18f4f9=_0x4e5d8d;if(_0x314498[_0x37f46a(0x140,0x11c)](_0x314498['IRBYs'](_0x4e5d8d,_0x18f4f9),SPEECH_CONFIRM_MS)){_0x5ca4c6=STATE_SPEECH,_0x18f4f9=0x2278+-0x1*0x141e+0xb*-0x14e,UplinkLogger[_0x37f46a(0xe5,0x115)](_0x314498[_0x37f46a(0x136,0x10b)]);if(_0x802342)_0x802342();}}}else _0x18f4f9=0x1a2c+-0x29*-0xc1+-0x3915*0x1;break;case STATE_SPEECH:if(_0x210521){if(_0x314498[_0x42df80(-0x188,-0x170)]('gLmCn',_0x314498[_0x42df80(-0xe9,-0x11f)]))return _0x5b5e43===_0x26a6df||_0x373169===_0xc5f286;else _0x5ca4c6=STATE_TRAILING,_0x18f4f9=_0x4e5d8d;}break;case STATE_TRAILING:if(_0x12c16c)_0x5ca4c6=STATE_SPEECH,_0x18f4f9=-0x2*0xe41+-0xcbb*0x2+0x35f8;else{if(_0x314498[_0x37f46a(0xdf,0x112)](_0x4e5d8d,_0x18f4f9)>=SILENCE_CONFIRM_MS||_0x314498[_0x42df80(-0x1a1,-0x177)](_0x314498['YVrUE'](_0x4e5d8d,_0x18f4f9),TRAILING_MAX_MS)){if(_0x314498[_0x37f46a(0x123,0x126)](_0x37f46a(0x19e,0x178),'eYHyF')){const _0x42cbee=_0x40b899[_0x2f9219];_0x953507+=_0x42cbee,mGHBuZ[_0x42df80(-0x187,-0x173)](_0x2b7a81,_0x14df7f)&&mGHBuZ[_0x37f46a(0x133,0x12c)](_0x96b406,_0x3dd0bd)&&(_0x534019+=_0x42cbee);}else{_0x5ca4c6=STATE_SILENCE,_0x18f4f9=-0x3a5*0x5+-0x1*-0x471+0xfc*0xe,UplinkLogger[_0x42df80(-0x150,-0x181)](_0x314498[_0x37f46a(0x14b,0x116)]);if(_0x1dddeb)_0x314498[_0x37f46a(0x1a2,0x16e)](_0x1dddeb);}}}break;}}else _0x375274=_0x3e7a5d,_0x12047c=_0x46755f;}return{'start'(){function _0x228536(_0x4b3255,_0x3abcc0){return _0x1fc2d5(_0x4b3255- -0x171,_0x3abcc0);}function _0x5b7f38(_0x2a47e5,_0x54daf9){return _0x1fc2d5(_0x54daf9-0x565,_0x2a47e5);}const _0x3ffef2=_0x314498[_0x228536(-0x2b6,-0x2cd)][_0x5b7f38(0x4c4,0x48b)]('|');let _0x3df23a=-0x17cd+0x191*-0xd+0x1*0x2c2a;while(!![]){switch(_0x3ffef2[_0x3df23a++]){case'0':_0x18f4f9=0x326+0x629+0x1*-0x94f;continue;case'1':_0x225aa8=!![];continue;case'2':if(_0x225aa8)return;continue;case'3':_0x5f5b1c=_0x314498[_0x228536(-0x29b,-0x25d)](setInterval,_0x5be69c,POLL_INTERVAL_MS);continue;case'4':UplinkLogger['debug'](_0x314498[_0x5b7f38(0x446,0x438)]);continue;case'5':_0x5ca4c6=STATE_SILENCE;continue;}break;}},'stop'(){function _0x1cd9e5(_0x2b9859,_0x50938b){return _0x43e6ea(_0x50938b-0x36e,_0x2b9859);}_0x225aa8=![];_0x5f5b1c&&(_0x314498[_0xf93ba1(0x42b,0x423)](clearInterval,_0x5f5b1c),_0x5f5b1c=null);function _0xf93ba1(_0x4617e7,_0x532e5e){return _0x43e6ea(_0x4617e7-0x2d1,_0x532e5e);}if(_0x314498[_0x1cd9e5(0x4cb,0x49a)](_0x5ca4c6,STATE_SPEECH)||_0x5ca4c6===STATE_TRAILING){if(_0x314498[_0x1cd9e5(0x503,0x4d8)](_0xf93ba1(0x403,0x418),_0xf93ba1(0x427,0x42b))){_0x5ca4c6=STATE_SILENCE,_0x18f4f9=0xf31*-0x2+-0x2681+0x44e3;if(_0x1dddeb)_0x314498['HXBFp'](_0x1dddeb);}else{_0x24efc5=_0x430c10,_0x3cfe46=-0x1fb9+0x1362+0xc57;if(_0x13798e)_0x314498[_0x1cd9e5(0x4dc,0x4da)](_0x166969);}}UplinkLogger[_0xf93ba1(0x3e4,0x3cb)](_0x314498['xOUeO']);},'destroy'(){function _0x4e9ed7(_0x52014a,_0x243a8c){return _0x43e6ea(_0x243a8c-0x7d,_0x52014a);}function _0x1abbb0(_0x5580db,_0x114272){return _0x43e6ea(_0x114272- -0x2cb,_0x5580db);}if(_0x314498['HdRdT'](_0x314498[_0x4e9ed7(0x1ef,0x1b8)],_0x314498[_0x1abbb0(-0x155,-0x190)])){this['stop']();try{if(_0x314498[_0x1abbb0(-0x161,-0x14f)](_0x314498[_0x1abbb0(-0x168,-0x153)],'JeOxz'))_0x425977['disco'+_0x1abbb0(-0x192,-0x1ca)]();else{_0x154d66=_0x4e2d3d,_0xa95b1f=0x1*0xcbb+-0x3a7*0x2+-0x56d,_0x47ae7d[_0x4e9ed7(0x158,0x190)](_0x314498[_0x4e9ed7(0x1cd,0x191)]);if(_0x5d3868)_0x314498[_0x1abbb0(-0x183,-0x192)](_0x130840);}}catch(_0xa8aac1){}try{_0x1cb0ad[_0x4e9ed7(0x1c4,0x1eb)+'nnect']();}catch(_0x45dc17){}}else _0x827405=-0x694+-0xb*0x14e+0x37d*0x6;},'isSpeaking'(){function _0x4c8be8(_0x41001a,_0x465336){return _0x43e6ea(_0x41001a- -0x251,_0x465336);}function _0x22c47f(_0x5c2982,_0x3ab260){return _0x43e6ea(_0x5c2982-0x2a4,_0x3ab260);}return _0x314498[_0x4c8be8(-0x12d,-0x14b)](_0x5ca4c6,STATE_SPEECH)||_0x314498[_0x22c47f(0x3c8,0x3ec)](_0x5ca4c6,STATE_TRAILING);},'getState'(){return _0x5ca4c6;}};}
1
+ (function(_0x12383e,_0x4c532b){function _0x4c67bc(_0x5963ce,_0x340427){return _0x4901(_0x340427- -0x29a,_0x5963ce);}const _0x1cddd7=_0x12383e();function _0x8a1009(_0x1edc47,_0x2b8957){return _0x4901(_0x1edc47-0x2e5,_0x2b8957);}while(!![]){try{const _0x5abdd7=-parseInt(_0x4c67bc(-0x98,-0xba))/(-0x2*-0xb1d+-0x6b*-0x59+-0x1*0x3b6c)+parseInt(_0x8a1009(0x4c8,0x4c4))/(0x26b*0xa+0x1761+-0x2f8d)*(parseInt(_0x8a1009(0x508,0x4f2))/(0x5b1+0x2*-0xc4d+0x12ec))+-parseInt(_0x4c67bc(-0xca,-0x96))/(0x370+-0x60*0x5d+0xa7c*0x3)*(-parseInt(_0x4c67bc(-0xa6,-0x87))/(0x1ba+0x1649+-0x17fe*0x1))+parseInt(_0x8a1009(0x4d4,0x4ec))/(-0x1*0x2065+-0x1*-0xee5+0x1186)+-parseInt(_0x4c67bc(-0x7d,-0x6a))/(0xef0*0x1+-0x2d1*0xd+0x15b4)+-parseInt(_0x8a1009(0x525,0x53c))/(0xd*0x53+0x1*0x5c9+0x4fc*-0x2)*(parseInt(_0x8a1009(0x4d9,0x4e1))/(0x10f3*-0x1+-0x1487+0x369*0xb))+-parseInt(_0x4c67bc(-0x61,-0x63))/(0x95d+0xc37*-0x1+0x25*0x14);if(_0x5abdd7===_0x4c532b)break;else _0x1cddd7['push'](_0x1cddd7['shift']());}catch(_0x270a8a){_0x1cddd7['push'](_0x1cddd7['shift']());}}}(_0x1f27,0x6abe8+0x1b7*0xd+-0xab3));const _0x5c7e23=(function(){let _0x201426=!![];return function(_0x1e8a09,_0x3b2def){const _0x48396f=_0x201426?function(){if(_0x3b2def){const _0x1b570a=_0x3b2def['apply'](_0x1e8a09,arguments);return _0x3b2def=null,_0x1b570a;}}:function(){};return _0x201426=![],_0x48396f;};}()),_0x28e4bc=_0x5c7e23(this,function(){const _0x4f8826={};_0x4f8826[_0x1cd1dc(-0x1c2,-0x198)]='(((.+'+')+)+)'+'+$';function _0x2679aa(_0x1e5948,_0x12c99e){return _0x4901(_0x12c99e- -0x3cc,_0x1e5948);}function _0x1cd1dc(_0x33e0fb,_0x47723b){return _0x4901(_0x47723b- -0x376,_0x33e0fb);}const _0x37279f=_0x4f8826;return _0x28e4bc[_0x2679aa(-0x1bf,-0x1a6)+_0x1cd1dc(-0x170,-0x173)]()[_0x1cd1dc(-0x16f,-0x13b)+'h'](_0x37279f[_0x1cd1dc(-0x180,-0x198)])['toStr'+'ing']()['const'+'ructo'+'r'](_0x28e4bc)[_0x1cd1dc(-0x144,-0x13b)+'h'](_0x37279f[_0x1cd1dc(-0x1bc,-0x198)]);});_0x28e4bc();import{UplinkLogger}from'./logger.js';function _0x4901(_0x17020c,_0x31fae6){_0x17020c=_0x17020c-(-0x2*0x2fa+-0x3*-0x5c9+0xbc*-0xd);const _0x1ee544=_0x1f27();let _0x4f7c9c=_0x1ee544[_0x17020c];return _0x4f7c9c;}function _0x1f27(){const _0x2a7bfa=['min','sqrt','SFPHd','rted','ixyqW','FrOqL','puwQS','getFl','zxkDB','CGFoE','ceil','532691efpXWF','eAnal','FWTBh','188ywVhxd','debug','RGiVR','trail','encyB','pOipP','BWfGN','YSwpD','conne','sAsMq','xqbBl','Speec','3450762VsZUvZ','quenc','speec','KzIIo','GLMhA','9hSpaQU','aStre','creat','stop','IYQjY','wSqKp','lwjnb','amSou','floor','h\x20end','split','fftSi','oatTi','hstOD','now','ing','2764hIDqwt','LmtFN','(((.+','WwSdV','sCYsz','ufLVZ','getBy','Start','silen','|0|2|','CteRk','otVmj','eMedi','eRate','zSkTW','5535vhayNa','HaRSx','mLezS','meDom','lhkCM','nnect','IbYZP','lengt','zuTqp','VVxBL','ructo','h\x20sta','inCou','teFre','LusRL','disco','18237knLPCW','nstan','VXOPC','toStr','MfoHx','ainDa','JorTx','INLMX','jXZLu','ueauk','NfnId','CkdgU','5|4|3','2154677HnUkqg',')+)+)','buSNW','NmLND','mCBhN','imeCo','qCTfh','127590alWHXH','XUDhz','SPhiD','oKuun','searc','YpoQV','cEMQP','wKFKn','const','4944296iKnZCq','NGgaM','Stopp','VAD:\x20'];_0x1f27=function(){return _0x2a7bfa;};return _0x1f27();}const STATE_SILENCE=_0x1e0ac4(0x481,0x472)+'ce',STATE_SPEECH=_0x5503c3(-0x1db,-0x1bd)+'h',STATE_TRAILING=_0x5503c3(-0x200,-0x1c8)+_0x1e0ac4(0x455,0x469),FFT_SIZE=0x2254+0x3d*0x34+-0x2cb8,POLL_INTERVAL_MS=0x92*-0x29+0x1*-0x2389+-0x1*-0x3b1d,RMS_SPEECH_THRESHOLD=0x54e*-0x4+0x1*-0x1d3+-0x15b*-0x11+0.015,RMS_SILENCE_THRESHOLD=-0x3*0x113+-0x1e5+0x51e+0.008,SPEECH_FREQ_LOW=0xad*0x24+-0x1*-0x20cf+0x1*-0x38ce,SPEECH_FREQ_HIGH=-0x1741+0x15e4+-0x503*-0x3,SPEECH_BAND_RATIO=-0x29*0x38+0x264+0x34a*0x2+0.35;function _0x5503c3(_0x24e9fe,_0x5e3c09){return _0x4901(_0x5e3c09- -0x3ae,_0x24e9fe);}function _0x1e0ac4(_0x4b6c06,_0x2569cf){return _0x4901(_0x2569cf-0x266,_0x4b6c06);}const SPEECH_CONFIRM_MS=-0x18d1*-0x1+0x32*0x1d+-0x1*0x1de5,SILENCE_CONFIRM_MS=0xd*-0x101+-0x1*-0x24a9+0x2e*-0x72,TRAILING_MAX_MS=0xd*-0x2ed+-0x4eb*-0x4+-0x1*-0x1a2d;export function createVAD({audioContext:_0x13141d,stream:_0x3b18e1,onSpeechStart:_0x2ef7e1,onSpeechEnd:_0x3e9811,onVolumeChange:_0x250e08}){const _0x2e807b={'CkdgU':function(_0x26b63e,_0x354320){return _0x26b63e!==_0x354320;},'CvoST':_0x1b38e3(0x4b6,0x491),'rUEnF':_0x3d3111(0x295,0x2ab),'RGiVR':function(_0x5c767b,_0x30596b){return _0x5c767b<_0x30596b;},'wKFKn':function(_0x3b9838,_0x2df341){return _0x3b9838*_0x2df341;},'pOipP':function(_0x7fbeb1,_0x1fd181){return _0x7fbeb1/_0x1fd181;},'IYQjY':function(_0xcbc313){return _0xcbc313();},'mCBhN':function(_0x228999,_0x48747c){return _0x228999<=_0x48747c;},'buSNW':function(_0x39170d,_0x399c2b){return _0x39170d<_0x399c2b;},'LusRL':_0x3d3111(0x271,0x29d),'XUDhz':function(_0x227b82,_0x271fe4){return _0x227b82===_0x271fe4;},'MgcDs':'VXOPC','zSkTW':function(_0x1d29eb,_0x27159a){return _0x1d29eb>_0x27159a;},'xqbBl':_0x3d3111(0x266,0x287)+_0x3d3111(0x2d7,0x2b2)+'+$','lwjnb':function(_0x59e32b){return _0x59e32b();},'LmtFN':function(_0x21807d,_0x8ce833){return _0x21807d>_0x8ce833;},'BWfGN':function(_0x528975,_0x2eea98){return _0x528975>=_0x2eea98;},'SFPHd':function(_0x48594a,_0x3a3bf7){return _0x48594a!==_0x3a3bf7;},'sAsMq':_0x3d3111(0x2ec,0x2c4)+_0x3d3111(0x299,0x26f)+_0x1b38e3(0x4bb,0x4a8)+'rted','sCYsz':_0x1b38e3(0x4be,0x4b1),'YSwpD':function(_0xe8868a,_0x18ca5a){return _0xe8868a!==_0x18ca5a;},'wSqKp':_0x1b38e3(0x4b2,0x498),'IbYZP':function(_0x278d9d,_0x41eeb5){return _0x278d9d>=_0x41eeb5;},'UoHzi':function(_0x37ae6f,_0x1fbd99){return _0x37ae6f-_0x1fbd99;},'YpoQV':function(_0x4c20a4,_0x38dbf8){return _0x4c20a4-_0x38dbf8;},'oKuun':_0x3d3111(0x2b2,0x2c2),'GArvS':function(_0x4e3c0a){return _0x4e3c0a();},'qCTfh':_0x1b38e3(0x4c5,0x4b9)+_0x3d3111(0x2bc,0x28e)+'1','ufLVZ':_0x3d3111(0x2c8,0x2c4)+_0x1b38e3(0x4b1,0x495)+'ed','KzIIo':function(_0x214c10,_0xe05152){return _0x214c10<_0xe05152;},'OvHgy':function(_0x2790ce,_0x5c7190){return _0x2790ce>=_0x5c7190;},'JorTx':function(_0x43c7d8,_0x43d1b8){return _0x43c7d8>_0x43d1b8;},'puwQS':function(_0x11d440,_0x4ea00e){return _0x11d440/_0x4ea00e;},'zuTqp':'SomCF','NfnId':function(_0x3df617,_0x1705fe){return _0x3df617(_0x1705fe);},'lhkCM':function(_0x418b4a,_0x44e304){return _0x418b4a!==_0x44e304;},'HaRSx':_0x1b38e3(0x472,0x48b),'zxkDB':_0x3d3111(0x2d6,0x2c4)+_0x3d3111(0x2b9,0x2c3)+'ed','cEMQP':function(_0x4734cd,_0x198258){return _0x4734cd(_0x198258);},'NmLND':_0x3d3111(0x2b1,0x2c9),'jXZLu':'pueXh','otVmj':function(_0xa1e247,_0x1ba89c){return _0xa1e247===_0x1ba89c;}},_0xcfde16=_0x13141d[_0x3d3111(0x240,0x277)+_0x3d3111(0x257,0x262)+'yser']();_0xcfde16[_0x3d3111(0x2ac,0x280)+'ze']=FFT_SIZE,_0xcfde16['smoot'+'hingT'+_0x3d3111(0x2df,0x2b6)+_0x3d3111(0x2a5,0x2a5)+'t']=0x1d7f+-0xf15+-0xcd*0x12+0.3;const _0x558b3b=_0x13141d[_0x1b38e3(0x49b,0x480)+_0x1b38e3(0x4bb,0x49a)+_0x3d3111(0x2a7,0x276)+_0x1b38e3(0x45a,0x485)+'rce'](_0x3b18e1);_0x558b3b[_0x1b38e3(0x449,0x475)+'ct'](_0xcfde16);const _0x4c746f=_0xcfde16['frequ'+_0x1b38e3(0x467,0x471)+_0x1b38e3(0x485,0x4a9)+'nt'],_0x5b9895=new Uint8Array(_0x4c746f);function _0x1b38e3(_0x483fca,_0x3be5c1){return _0x1e0ac4(_0x483fca,_0x3be5c1-0x24);}const _0x5d0c7f=new Float32Array(_0xcfde16[_0x3d3111(0x29a,0x280)+'ze']);function _0x3d3111(_0x3927c3,_0x238e0c){return _0x1e0ac4(_0x3927c3,_0x238e0c- -0x1e5);}const _0x254bf5=_0x2e807b[_0x1b38e3(0x431,0x465)](_0x13141d['sampl'+_0x1b38e3(0x4a6,0x49b)],_0xcfde16[_0x1b38e3(0x486,0x489)+'ze']),_0x1396b4=Math[_0x3d3111(0x264,0x27d)](_0x2e807b[_0x3d3111(0x227,0x25c)](SPEECH_FREQ_LOW,_0x254bf5)),_0x2fe072=Math[_0x3d3111(0x299,0x2c5)](Math[_0x1b38e3(0x48d,0x469)](SPEECH_FREQ_HIGH/_0x254bf5),_0x4c746f-(0x5cc+0x2*-0xf9+-0x3d9));let _0x7c0756=STATE_SILENCE,_0x501cb2=-0xf9c+-0x720*-0x4+-0xce4*0x1,_0x1684d9=null,_0x453ee3=![];function _0x575867(){function _0xde796c(_0x575e8e,_0x2a11e9){return _0x1b38e3(_0x575e8e,_0x2a11e9- -0x6b);}function _0x5261fb(_0x43eb8f,_0x355795){return _0x1b38e3(_0x43eb8f,_0x355795-0x10);}if(_0x2e807b[_0x5261fb(0x4f1,0x4c8)](_0x2e807b['CvoST'],_0x2e807b['rUEnF'])){_0xcfde16['getFl'+_0xde796c(0x40e,0x41f)+'meDom'+_0xde796c(0x456,0x447)+'ta'](_0x5d0c7f);let _0x377a07=-0x4*0x6d+-0x1160+0x1314;for(let _0x4ea745=0x1a91*0x1+0x12f*0x17+-0x35ca;_0x2e807b[_0x5261fb(0x464,0x47f)](_0x4ea745,_0x5d0c7f['lengt'+'h']);_0x4ea745++){_0x377a07+=_0x2e807b[_0xde796c(0x46a,0x45d)](_0x5d0c7f[_0x4ea745],_0x5d0c7f[_0x4ea745]);}return Math[_0x5261fb(0x4e0,0x4df)](_0x2e807b[_0xde796c(0x3e3,0x407)](_0x377a07,_0x5d0c7f[_0xde796c(0x462,0x439)+'h']));}else return _0x3b79e9;}function _0x1fbbe8(){function _0x38a93e(_0x1d3f1a,_0x1d2b1d){return _0x1b38e3(_0x1d3f1a,_0x1d2b1d- -0x2b1);}const _0x1fe4ee={'wabDU':function(_0x51004a,_0x2cba87){return _0x51004a>=_0x2cba87;},'ltJoT':function(_0x586177,_0x1d8929){return _0x2e807b['mCBhN'](_0x586177,_0x1d8929);}};_0xcfde16[_0x401240(0x338,0x362)+_0x401240(0x38d,0x378)+_0x401240(0x31b,0x348)+'yData'](_0x5b9895);let _0x14525f=0xb*-0xb2+-0x3b3+0xb59,_0x3919ca=0x3a2+-0x16a5+0x9d*0x1f;for(let _0xcc1f60=0x7f*0x1f+0x14b8+-0x2419;_0x2e807b['buSNW'](_0xcc1f60,_0x4c746f);_0xcc1f60++){if(_0x2e807b[_0x38a93e(0x21e,0x207)](_0x2e807b[_0x38a93e(0x22a,0x1fa)],_0x401240(0x356,0x374))){const _0x12d7d5=_0x3991f0[_0x3e9450];_0x4efa9d+=_0x12d7d5,_0x1fe4ee['wabDU'](_0x16f88e,_0x2db881)&&_0x1fe4ee['ltJoT'](_0x30fb41,_0x26ec4c)&&(_0x31a341+=_0x12d7d5);}else{const _0x2fb508=_0x5b9895[_0xcc1f60];_0x3919ca+=_0x2fb508;if(_0xcc1f60>=_0x1396b4&&_0xcc1f60<=_0x2fe072){if(_0x2e807b['XUDhz'](_0x2e807b['MgcDs'],_0x401240(0x3a5,0x37d)))_0x14525f+=_0x2fb508;else{_0x29ee46=_0x112692,_0x374e00=-0x1e8e+0x11f*0x1a+-0x5a*-0x4;if(_0x385d62)_0x2e807b[_0x38a93e(0x1ab,0x1d1)](_0x4e7dc3);}}}}function _0x401240(_0x22e129,_0x9d2981){return _0x1b38e3(_0x22e129,_0x9d2981- -0x132);}return _0x2e807b[_0x401240(0x39f,0x36a)](_0x3919ca,-0x1*-0xe30+0x12a0*-0x1+0x2*0x238)?_0x14525f/_0x3919ca:0x22c*0xe+-0x119d+0x5*-0x28f;}function _0x25a38f(){if(!_0x453ee3)return;function _0x55c614(_0x202c6f,_0x1dab87){return _0x3d3111(_0x1dab87,_0x202c6f-0x2fe);}const _0x140edc=Date[_0x55c614(0x581,0x5ac)](),_0x4072cb=_0x2e807b['IYQjY'](_0x575867),_0x5acdb8=_0x1fbbe8();function _0x598856(_0x3ad88c,_0x571f2e){return _0x3d3111(_0x571f2e,_0x3ad88c-0x11c);}const _0x474352=_0x2e807b[_0x55c614(0x584,0x579)](_0x4072cb,RMS_SPEECH_THRESHOLD)&&_0x2e807b[_0x55c614(0x584,0x5a5)](_0x5acdb8,SPEECH_BAND_RATIO),_0x167d75=_0x2e807b[_0x598856(0x3cf,0x3ab)](_0x4072cb,RMS_SILENCE_THRESHOLD);if(_0x250e08)_0x250e08(_0x4072cb);switch(_0x7c0756){case STATE_SILENCE:if(_0x474352){if(_0x2e807b[_0x55c614(0x5b7,0x5e0)](_0x501cb2,-0x53*0x2c+-0x43*-0x29+0x389*0x1))_0x501cb2=_0x140edc;if(_0x2e807b[_0x598856(0x386,0x3ae)](_0x140edc-_0x501cb2,SPEECH_CONFIRM_MS)){if(_0x2e807b['SFPHd'](_0x598856(0x37f,0x364),'FWTBh'))_0x48c30d+=_0x2e807b[_0x55c614(0x5bd,0x590)](_0x2dd993[_0x58812c],_0x68bfa1[_0xc49395]);else{_0x7c0756=STATE_SPEECH,_0x501cb2=0x49*0x1+0x310+-0x1*0x359,UplinkLogger[_0x598856(0x381,0x3af)](_0x2e807b[_0x55c614(0x56b,0x54c)]);if(_0x2ef7e1)_0x2e807b[_0x598856(0x397,0x39b)](_0x2ef7e1);}}}else{if(_0x2e807b[_0x55c614(0x5c5,0x597)](_0x2e807b[_0x55c614(0x587,0x5b5)],_0x598856(0x3c4,0x3db)))return _0x373a2a[_0x598856(0x3c3,0x3d2)+_0x598856(0x3a0,0x39b)]()[_0x598856(0x3d8,0x401)+'h'](bMmmmu[_0x598856(0x38a,0x365)])['toStr'+_0x55c614(0x582,0x54d)]()[_0x598856(0x3dc,0x3aa)+_0x55c614(0x59c,0x56e)+'r'](_0x50bb2c)[_0x55c614(0x5ba,0x5a6)+'h'](bMmmmu['xqbBl']);else _0x501cb2=0x1fc5*-0x1+0x3e9+-0x1bdc*-0x1;}break;case STATE_SPEECH:_0x167d75&&(_0x7c0756=STATE_TRAILING,_0x501cb2=_0x140edc);break;case STATE_TRAILING:if(_0x474352){if(_0x2e807b[_0x598856(0x387,0x39e)](_0x2e807b[_0x598856(0x396,0x378)],_0x2e807b['wSqKp'])){_0x37791e=_0x1214de,_0x28f106=-0x3f5*0x4+-0x15fe+0x25d2,_0x121c63['debug'](_0x55c614(0x5c2,0x5ea)+_0x598856(0x38b,0x362)+_0x55c614(0x59d,0x58c)+_0x598856(0x3e4,0x3c2));if(_0x2b31bb)_0x2e807b[_0x55c614(0x579,0x575)](_0x1bc2b1);}else _0x7c0756=STATE_SPEECH,_0x501cb2=-0x23b6+-0x58f*-0x7+-0x333;}else{if(_0x2e807b[_0x598856(0x3b6,0x391)](_0x2e807b['UoHzi'](_0x140edc,_0x501cb2),SILENCE_CONFIRM_MS)||_0x2e807b[_0x598856(0x386,0x35e)](_0x2e807b[_0x598856(0x3d9,0x3c9)](_0x140edc,_0x501cb2),TRAILING_MAX_MS)){if(_0x2e807b[_0x55c614(0x569,0x54e)](_0x2e807b['oKuun'],_0x2e807b[_0x598856(0x3d7,0x3d8)]))_0x307fc5[_0x55c614(0x5a1,0x598)+_0x55c614(0x597,0x5ac)]();else{_0x7c0756=STATE_SILENCE,_0x501cb2=0x35f*-0xb+-0xbbd+0x30d2,UplinkLogger[_0x55c614(0x563,0x533)](_0x55c614(0x5c2,0x5f0)+_0x598856(0x38b,0x368)+_0x598856(0x39a,0x3c4)+'ed');if(_0x3e9811)_0x2e807b['GArvS'](_0x3e9811);}}}break;}}return{'start'(){function _0x2fb727(_0x3caf68,_0x31641d){return _0x1b38e3(_0x3caf68,_0x31641d- -0x309);}const _0x446e45=_0x2e807b[_0x2fb727(0x183,0x1b7)][_0x2a8666(0x45,0x35)]('|');let _0x4d3692=-0x18*0x3e+0x1*-0x1627+0x1bf7;function _0x2a8666(_0x5edd33,_0x27bb86){return _0x1b38e3(_0x5edd33,_0x27bb86- -0x453);}while(!![]){switch(_0x446e45[_0x4d3692++]){case'0':_0x501cb2=-0x18cb+0x6*-0x13b+0x202d*0x1;continue;case'1':UplinkLogger['debug'](_0x2e807b[_0x2fb727(0x188,0x18a)]);continue;case'2':_0x1684d9=setInterval(_0x25a38f,POLL_INTERVAL_MS);continue;case'3':_0x7c0756=STATE_SILENCE;continue;case'4':_0x453ee3=!![];continue;case'5':if(_0x453ee3)return;continue;}break;}},'stop'(){_0x453ee3=![];function _0x45505e(_0x13b84e,_0x440286){return _0x3d3111(_0x13b84e,_0x440286- -0x59);}function _0x129037(_0x568e82,_0x4d9746){return _0x3d3111(_0x568e82,_0x4d9746- -0x310);}if(_0x1684d9){if(_0x2e807b[_0x129037(-0x67,-0x49)]('rHwQw',_0x2e807b[_0x129037(-0x87,-0x74)]))_0x2e807b[_0x129037(-0x38,-0x62)](clearInterval,_0x1684d9),_0x1684d9=null;else{_0x4bc73e[_0x129037(-0x6d,-0x85)+_0x129037(-0x87,-0x6f)+'quenc'+'yData'](_0x5ae795);let _0x1a5f53=0x5*-0x493+-0x41e*-0x6+-0x1d5,_0x5d093c=-0x1468+0xba7+0x2eb*0x3;for(let _0x209cb5=0xd*-0x13b+0x1ea5+0xa*-0x177;_0x2e807b[_0x129037(-0x7f,-0x9d)](_0x209cb5,_0x1b953f);_0x209cb5++){const _0x543038=_0x38b8f5[_0x209cb5];_0x5d093c+=_0x543038,_0x2e807b['OvHgy'](_0x209cb5,_0x37b38b)&&_0x2e807b[_0x45505e(0x272,0x25c)](_0x209cb5,_0x171528)&&(_0x1a5f53+=_0x543038);}return _0x2e807b[_0x45505e(0x25e,0x251)](_0x5d093c,-0x897*0x3+0x1*-0x1e9e+0x3863)?_0x2e807b[_0x129037(-0xb0,-0xb4)](_0x1a5f53,_0x5d093c):0xa55+0x3*0x7c6+-0x21a7;}}if(_0x7c0756===STATE_SPEECH||_0x2e807b['XUDhz'](_0x7c0756,STATE_TRAILING)){if(_0x2e807b[_0x45505e(0x216,0x23f)](_0x2e807b[_0x45505e(0x248,0x23c)],_0x129037(-0x25,-0x46))){_0x7c0756=STATE_SILENCE,_0x501cb2=0x16da+-0x15*-0x12b+-0x1*0x2f61;if(_0x3e9811)_0x3e9811();}else _0x56d71a=_0x48d8c2,_0x34ae7b=_0x365672;}UplinkLogger[_0x45505e(0x231,0x20c)](_0x2e807b[_0x129037(-0xc4,-0xb2)]);},'destroy'(){function _0x13f0a0(_0x1af0e0,_0x88797d){return _0x1b38e3(_0x1af0e0,_0x88797d-0x13);}const _0x587783={'QGGEW':function(_0x1d4998,_0x7f5295){return _0x1d4998<_0x7f5295;},'ueauk':function(_0x3d64e6,_0x4b6eb4){function _0x3ce46a(_0xe67955,_0x29409c){return _0x4901(_0xe67955- -0x344,_0x29409c);}return _0x2e807b[_0x3ce46a(-0x106,-0x12d)](_0x3d64e6,_0x4b6eb4);},'mLezS':function(_0x32aa5e,_0x4f459e){return _0x2e807b['pOipP'](_0x32aa5e,_0x4f459e);}};function _0x4c8190(_0x22e068,_0x4e2a78){return _0x1b38e3(_0x4e2a78,_0x22e068- -0x5d3);}if('dLcKv'!==_0x13f0a0(0x4b8,0x490)){this[_0x13f0a0(0x46c,0x494)]();try{_0x2e807b[_0x4c8190(-0x116,-0x133)]===_0x2e807b[_0x13f0a0(0x4e3,0x4d0)]?_0x558b3b[_0x13f0a0(0x4bf,0x4bf)+_0x4c8190(-0x131,-0x15e)]():_0x14e7e9[_0x4c8190(-0x127,-0x12b)+_0x4c8190(-0x131,-0x152)]();}catch(_0x57c8aa){}try{_0x2e807b['lhkCM'](_0x2e807b[_0x13f0a0(0x4d8,0x4c8)],_0x4c8190(-0x110,-0xef))?_0xcfde16['disco'+_0x4c8190(-0x131,-0x15b)]():(_0x2e807b[_0x13f0a0(0x4c3,0x4da)](_0x3a3353,_0x3c7384),_0x722291=null);}catch(_0x43675c){}}else{_0x3ff8dd[_0x4c8190(-0x16d,-0x188)+_0x13f0a0(0x47e,0x49d)+_0x4c8190(-0x133,-0x16a)+'ainDa'+'ta'](_0x2e5797);let _0x5bf5b6=0x84e+-0x1*0x173f+0xef1;for(let _0x3538c2=-0x1b1*-0x1+0x1*-0x373+0x1c2;doevrJ['QGGEW'](_0x3538c2,_0x32bcdc[_0x4c8190(-0x12f,-0x109)+'h']);_0x3538c2++){_0x5bf5b6+=doevrJ[_0x13f0a0(0x4e8,0x4c9)](_0x40833d[_0x3538c2],_0x4a1838[_0x3538c2]);}return _0x4eee3c[_0x4c8190(-0x104,-0x110)](doevrJ[_0x13f0a0(0x4a9,0x4b2)](_0x5bf5b6,_0x168c53[_0x4c8190(-0x12f,-0x137)+'h']));}},'isSpeaking'(){function _0x1e8b06(_0x441abd,_0x2400a7){return _0x3d3111(_0x441abd,_0x2400a7-0x1a1);}return _0x7c0756===STATE_SPEECH||_0x2e807b[_0x1e8b06(0x403,0x431)](_0x7c0756,STATE_TRAILING);},'getState'(){return _0x7c0756;}};}