@univerjs-pro/collaboration-client-node 0.10.11 → 0.10.12-nightly.202510251119

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.
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x575908=_0x395c;(function(_0x4c1369,_0x5e00bb){const _0x3446dd=_0x395c,_0x54ff3c=_0x4c1369();while(!![]){try{const _0x4022f5=parseInt(_0x3446dd(0x210))/0x1*(-parseInt(_0x3446dd(0x32e))/0x2)+-parseInt(_0x3446dd(0x242))/0x3+-parseInt(_0x3446dd(0x300))/0x4*(-parseInt(_0x3446dd(0x1e6))/0x5)+parseInt(_0x3446dd(0x1dc))/0x6+parseInt(_0x3446dd(0x2ab))/0x7+parseInt(_0x3446dd(0x270))/0x8*(parseInt(_0x3446dd(0x24d))/0x9)+-parseInt(_0x3446dd(0x304))/0xa;if(_0x4022f5===_0x5e00bb)break;else _0x54ff3c['push'](_0x54ff3c['shift']());}catch(_0x2b474f){_0x54ff3c['push'](_0x54ff3c['shift']());}}}(_0x248b,0x80ac8));import{UniverCollaborationClientPlugin as _0x310030,CollaborationSocketService as _0x177ea6}from'@univerjs-pro/collaboration-client';import{Disposable as _0xbeb31e,DisposableCollection as _0x4b2a05,toDisposable as _0xac0137,IConfigService as _0x2293be,DependentOn as _0x316a78,ILogService as _0x56e26b,Inject as _0x3358e0,Injector as _0x276bbd,Plugin as _0x14d27b,registerDependencies as _0x524fc6}from'@univerjs/core';import{ISocketService as _0x4246d5,HTTPService as _0x191880}from'@univerjs/network';import{Observable as _0x51d3e5,share as _0x1788ba}from'rxjs';import _0x19fb3e from'events';import _0x4d341d from'https';import _0x4cb172 from'http';import _0x469257 from'net';import _0x2f4299 from'tls';import _0x20476a from'crypto';import _0x2a4194 from'stream';import _0x5f5ac4 from'url';import _0x34d8c8 from'zlib';import _0x1b1837 from'buffer';import{ISnapshotServerService as _0x1f934a}from'@univerjs-pro/collaboration';function _0x395c(_0x56a733,_0x5672ba){const _0x248b1e=_0x248b();return _0x395c=function(_0x395cfa,_0x49f70a){_0x395cfa=_0x395cfa-0x1aa;let _0x12e1d0=_0x248b1e[_0x395cfa];return _0x12e1d0;},_0x395c(_0x56a733,_0x5672ba);}const Be=_0x575908(0x1bb),Ft={'customHeaders':{}};function Wt(_0x15ac59){const _0x54a234=_0x575908;return _0x15ac59&&_0x15ac59[_0x54a234(0x23c)]&&Object[_0x54a234(0x31a)][_0x54a234(0x2d5)]['call'](_0x15ac59,_0x54a234(0x27f))?_0x15ac59[_0x54a234(0x27f)]:_0x15ac59;}function ut(_0x4e8f79){const _0x38119f=_0x575908;if(Object[_0x38119f(0x31a)][_0x38119f(0x2d5)][_0x38119f(0x2f5)](_0x4e8f79,'__esModule'))return _0x4e8f79;var _0x48f4f0=_0x4e8f79[_0x38119f(0x27f)];if(typeof _0x48f4f0==_0x38119f(0x1e2)){var _0x1faab4=function _0x5d98ac(){const _0x40e6a7=_0x38119f;var _0x295070=!0x1;try{_0x295070=this instanceof _0x5d98ac;}catch{}return _0x295070?Reflect[_0x40e6a7(0x20f)](_0x48f4f0,arguments,this[_0x40e6a7(0x34c)]):_0x48f4f0[_0x40e6a7(0x2a0)](this,arguments);};_0x1faab4['prototype']=_0x48f4f0['prototype'];}else _0x1faab4={};return Object['defineProperty'](_0x1faab4,_0x38119f(0x23c),{'value':!0x0}),Object['keys'](_0x4e8f79)[_0x38119f(0x294)](function(_0x4fb123){const _0x20b653=_0x38119f;var _0x39ef12=Object['getOwnPropertyDescriptor'](_0x4e8f79,_0x4fb123);Object[_0x20b653(0x28e)](_0x1faab4,_0x4fb123,_0x39ef12[_0x20b653(0x326)]?_0x39ef12:{'enumerable':!0x0,'get':function(){return _0x4e8f79[_0x4fb123];}});}),_0x1faab4;}var te={'exports':{}},ge,Ye;function V(){const _0x2f191e=_0x575908;if(Ye)return ge;Ye=0x1;const _0x5e5f56=[_0x2f191e(0x236),'arraybuffer',_0x2f191e(0x30a)],_0x1a5e56=typeof Blob<'u';return _0x1a5e56&&_0x5e5f56['push']('blob'),ge={'BINARY_TYPES':_0x5e5f56,'EMPTY_BUFFER':Buffer[_0x2f191e(0x2f9)](0x0),'GUID':_0x2f191e(0x24f),'hasBlob':_0x1a5e56,'kForOnEventAttribute':Symbol(_0x2f191e(0x2c3)),'kListener':Symbol('kListener'),'kStatusCode':Symbol(_0x2f191e(0x27c)),'kWebSocket':Symbol(_0x2f191e(0x21d)),'NOOP':()=>{}},ge;}const jt={},Gt=Object[_0x575908(0x2b9)](Object[_0x575908(0x28e)]({'__proto__':null,'default':jt},Symbol[_0x575908(0x32d)],{'value':_0x575908(0x229)})),Vt=ut(Gt);var Ke;function ce(){const _0x10407b=_0x575908;if(Ke)return te[_0x10407b(0x2a2)];Ke=0x1;const {EMPTY_BUFFER:_0x55542d}=V(),_0x1e79b4=Buffer[Symbol['species']];function _0x2f6721(_0x572f7a,_0x16a0d1){const _0x4895db=_0x10407b;if(_0x572f7a[_0x4895db(0x2d2)]===0x0)return _0x55542d;if(_0x572f7a[_0x4895db(0x2d2)]===0x1)return _0x572f7a[0x0];const _0x3c884a=Buffer[_0x4895db(0x2e4)](_0x16a0d1);let _0x3a7a53=0x0;for(let _0x34915a=0x0;_0x34915a<_0x572f7a['length'];_0x34915a++){const _0x499e61=_0x572f7a[_0x34915a];_0x3c884a['set'](_0x499e61,_0x3a7a53),_0x3a7a53+=_0x499e61['length'];}return _0x3a7a53<_0x16a0d1?new _0x1e79b4(_0x3c884a['buffer'],_0x3c884a[_0x4895db(0x1b3)],_0x3a7a53):_0x3c884a;}function _0x29832a(_0x458c7d,_0xcab63a,_0x2779e5,_0x4d14f8,_0x48d44f){for(let _0x565ed5=0x0;_0x565ed5<_0x48d44f;_0x565ed5++)_0x2779e5[_0x4d14f8+_0x565ed5]=_0x458c7d[_0x565ed5]^_0xcab63a[_0x565ed5&0x3];}function _0x226532(_0xf37f8f,_0x4423fc){const _0x3d972f=_0x10407b;for(let _0x391ed5=0x0;_0x391ed5<_0xf37f8f[_0x3d972f(0x2d2)];_0x391ed5++)_0xf37f8f[_0x391ed5]^=_0x4423fc[_0x391ed5&0x3];}function _0xd48a23(_0x3a6660){const _0x4890a9=_0x10407b;return _0x3a6660[_0x4890a9(0x2d2)]===_0x3a6660[_0x4890a9(0x1fd)][_0x4890a9(0x221)]?_0x3a6660[_0x4890a9(0x1fd)]:_0x3a6660[_0x4890a9(0x1fd)][_0x4890a9(0x209)](_0x3a6660[_0x4890a9(0x1b3)],_0x3a6660[_0x4890a9(0x1b3)]+_0x3a6660[_0x4890a9(0x2d2)]);}function _0x3e32fe(_0x952381){const _0x29a1be=_0x10407b;if(_0x3e32fe[_0x29a1be(0x350)]=!0x0,Buffer['isBuffer'](_0x952381))return _0x952381;let _0x3232d7;return _0x952381 instanceof ArrayBuffer?_0x3232d7=new _0x1e79b4(_0x952381):ArrayBuffer[_0x29a1be(0x207)](_0x952381)?_0x3232d7=new _0x1e79b4(_0x952381['buffer'],_0x952381[_0x29a1be(0x1b3)],_0x952381[_0x29a1be(0x221)]):(_0x3232d7=Buffer[_0x29a1be(0x2fc)](_0x952381),_0x3e32fe[_0x29a1be(0x350)]=!0x1),_0x3232d7;}if(te['exports']={'concat':_0x2f6721,'mask':_0x29832a,'toArrayBuffer':_0xd48a23,'toBuffer':_0x3e32fe,'unmask':_0x226532},!process[_0x10407b(0x23a)][_0x10407b(0x2bb)])try{const _0xc04dc8=Vt;te['exports'][_0x10407b(0x2f2)]=function(_0x2bf960,_0x3ed8bd,_0x519850,_0x4a4459,_0x5e4197){const _0x30c71f=_0x10407b;_0x5e4197<0x30?_0x29832a(_0x2bf960,_0x3ed8bd,_0x519850,_0x4a4459,_0x5e4197):_0xc04dc8[_0x30c71f(0x2f2)](_0x2bf960,_0x3ed8bd,_0x519850,_0x4a4459,_0x5e4197);},te[_0x10407b(0x2a2)][_0x10407b(0x2ff)]=function(_0x510266,_0x2e63c9){const _0x2a1b70=_0x10407b;_0x510266[_0x2a1b70(0x2d2)]<0x20?_0x226532(_0x510266,_0x2e63c9):_0xc04dc8[_0x2a1b70(0x2ff)](_0x510266,_0x2e63c9);};}catch{}return te['exports'];}var ye,Xe;function _0x248b(){const _0x42aa71=['toStringTag','6046dQNEYd','buffers','completeUpgrade','STATUS_CODES','onopen','timeout','_httpService','verifyClient','type','WebSocket\x20is\x20not\x20open:\x20readyState\x200\x20(CONNECTING)','has','auth','_socket','read','response','WS_ERR_UNEXPECTED_RSV_2_3','_errorEmitted','writeUIntBE','hostname','The\x20server\x20is\x20not\x20running','writeHead','indexOf','setNoDelay','nextTick','kError','concat','add','concurrencyLimit','createInflateRaw','destroy','constructor','serverMaxWindowBits','create','_threshold','readOnly','_messageLength','keys','Server\x20sent\x20a\x20subprotocol\x20but\x20none\x20was\x20requested','https:','isValidUTF8','Unknown\x20parameter\x20\x22','size','zlibDeflateOptions','cork','emit','update','Connection:\x20Upgrade','byteOffset','protocolVersion','enqueue','shift','request','host','_bufferedBytes','The\x20data\x20size\x20must\x20not\x20be\x20greater\x20than\x20125\x20bytes','collaboration-client-node.config','isPaused','_inflate','Sec-WebSocket-Protocol:\x20','_max_window_bits','createError','startLoop','_errored','startsWith','sha1','pong','Unexpected\x20parameter\x20\x22client_no_context_takeover\x22','Server\x20indicated\x20an\x20extension\x20that\x20was\x20not\x20requested','Cookie','cleanup','text/html','decompress','_final','_receiver','Unexpected\x20server\x20response:\x20','value','GET','_allowSynchronousEvents','\x22\x20subprotocol\x20is\x20duplicated','readUInt16BE','Parameter\x20\x22','haveLength','kCode','extensionName','handleUpgrade','_payloadLength','OPEN','bind','4068822hnnhvt','_totalPayloadLength','createSocket','client_max_window_bits','authorization','The\x20server\x20is\x20operating\x20in\x20\x22noServer\x22\x20mode','function','getMask','CONNECTING','binary','5MpbwZi','customHeaders','Sec-WebSocket-Extensions','callback','isInteger','controlMessage','_decompress','_maskBuffer','address','createConnection','end','close','kAborted','_configService','Unexpected\x20character\x20at\x20index\x20','_queue','Invalid\x20Upgrade\x20header','finished','next','_compressed','Server\x20sent\x20a\x20Sec-WebSocket-Extensions\x20header\x20but\x20no\x20extension\x20was\x20requested','removeEventListener','join','buffer','port','invalid\x20opcode\x200','Blob','getBlobData','ws:','normalizeParams','extensions','\x22:\x20','bufferedAmount','isView','The\x20URL\x20contains\x20a\x20fragment\x20identifier','slice','_options','arrayBuffer','error','Missing\x20or\x20invalid\x20Sec-WebSocket-Key\x20header','_buffers','construct','139gTYLQX','_autoPong','servername','Z_SYNC_FLUSH','_mask','sec-websocket-protocol','target','Sec-WebSocket-Extensions:\x20','setSocket','captureStackTrace','WS_ERR_EXPECTED_MASK','map','digest','websocket','hash','params','WebSocket\x20was\x20closed\x20before\x20the\x20connection\x20was\x20established','byteLength','setTimeout','kDone','_removeListeners','_originalSecure','server','kWasClean','_server','Module','sec-websocket-origin','_loop','_state','\x20(supported\x20versions:\x20','endEmitted','emitClose','uncork','pipe','sec-websocket-extensions','writeUInt16BE','setConfig','_bufferedAmount','nodebuffer','HTTP/1.1\x20101\x20Switching\x20Protocols','offer','_protocol','env','_paused','__esModule','_redirects','password','RSV1\x20must\x20be\x20clear','First\x20argument\x20must\x20be\x20a\x20valid\x20error\x20code\x20number','ping','2790000urZxjY','errorEmitted','dispatch','number','object','clientTracking','protocol','Invalid\x20or\x20unacceptable\x20Sec-WebSocket-Extensions\x20header','catch','_writableState','Invalid\x20value\x20for\x20parameter\x20\x22','7557903RBHwCd','jobs','258EAFA5-E914-47DA-95CA-C5AB0DC85B11','_deflate','handleEvent','compress','server_no_context_takeover','search','conclude','Basic\x20','_doCreateSocket','maxRedirects','serverNoContextTakeover','unshift','File','The\x20message\x20must\x20not\x20be\x20greater\x20than\x20123\x20bytes','getPayloadLength64','allowSynchronousEvents','_masked','_injector','resume','toLowerCase','WS_NO_UTF_8_VALIDATE','cookie','threshold','pending','data','message','headers','split','The\x20deflate\x20stream\x20was\x20closed\x20while\x20data\x20was\x20being\x20processed','getConfig','Invalid\x20WebSocket\x20frame:\x20','blob','origin','8nDoWOC','Z_DEFAULT_WINDOWBITS','string','WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH','invalid\x20UTF-8\x20sequence','perMessageDeflate','frame','WS_ERR_UNEXPECTED_RSV_1','CLOSING','dequeue','test','writable','status-code','The\x20socket\x20was\x20closed\x20while\x20the\x20blob\x20was\x20being\x20read','invalid\x20opcode\x20','default','clientMaxWindowBits','push','_closeMessage','drain','finishRequest','WS_ERR_INVALID_OPCODE','pow','_readableState','location','WebSocket','WebSocket\x20is\x20not\x20open:\x20readyState\x20','client_no_context_takeover','addEventListener','_generateMask','defineProperty','_maxPayload','_fin','code','send','acceptAsServer','forEach','includes','Unexpected\x20end\x20of\x20input','None\x20of\x20the\x20extension\x20offers\x20can\x20be\x20accepted','open','Maximum\x20redirects\x20exceeded','_closeFrameReceived','Unsupported\x20protocol\x20version:\x20','write','FIN\x20must\x20be\x20set','accept','13,\x208','apply','Unexpected\x20or\x20invalid\x20parameter\x20\x22client_max_window_bits\x22','exports','listeners','client','_closeFrameSent','listenerCount','upgrade','generateMask','abort','onerror','1572508CDyzKG','WS_ERR_UNSUPPORTED_MESSAGE_LENGTH','toString','invalid\x20payload\x20length\x20','server.handleUpgrade()\x20was\x20called\x20more\x20than\x20once\x20with\x20the\x20same\x20socket,\x20possibly\x20due\x20to\x20a\x20misconfiguration','zlibInflateOptions','socketPath','WS_ERR_INVALID_UTF8','_originalIpc','Invalid\x20Sec-WebSocket-Accept\x20header','rsv1','Invalid\x20Sec-WebSocket-Extensions\x20header','set','wsClientError','freeze','removeListener','WS_NO_BUFFER_UTIL','readable','wasClean','kData','href','_fragmented','maskBuffer','opcode','kIsForOnEventAttribute','_readyState','kByteLength','_write','consume','The\x20URL\x27s\x20protocol\x20must\x20be\x20one\x20of\x20\x22ws:\x22,\x20\x22wss:\x22,\x20\x22http:\x22,\x20\x22https:\x22,\x20or\x20\x22ws+unix:\x22','Upgrade:\x20websocket','_binaryType','Server\x20sent\x20no\x20subprotocol','kRun','getData','username','shouldHandle','MASK\x20must\x20be\x20set','statusCode','length','once','_skipUTF8Validation','hasOwnProperty','concurrency','setHeader','needDrain','connect','redirect','Invalid\x20Sec-WebSocket-Protocol\x20header','fin','_compress','binaryType','reset','readyState','getPayloadLength16','_url','options','allocUnsafe','_opcode','[UniverCollaborationClientNodePlugin]:\x20you\x20should\x20set\x20customHeaders\x20for\x20authentication\x20in\x20UniverCollaborationClientNodePlugin\x27s\x20config.','listen','_no_context_takeover','handleProtocols','One\x20and\x20only\x20one\x20of\x20the\x20\x22port\x22,\x20\x22server\x22,\x20or\x20\x22noServer\x22\x20options\x20must\x20be\x20specified','connection','MASK\x20must\x20be\x20clear','pause','Max\x20payload\x20size\x20exceeded','acceptAsClient','noServer','url','mask','base64','finish','call','delete','_firstFragment','then','alloc','parse','sendFrame','from','kType','readUInt32BE','unmask','1756076FVDOjO','_originalHostOrSocketPath','format','pathname','3043220nDxcez','_shouldEmitClose','_closeTimer','autoPong','The\x20\x22','Opening\x20handshake\x20has\x20timed\x20out','fragments','kTarget','server_max_window_bits','path','_closeCode','_isServer','socket','ws+unix:','CLOSED','replace','reason','_req','RSV2\x20and\x20RSV3\x20must\x20be\x20clear','maxPayload','Missing\x20or\x20invalid\x20Sec-WebSocket-Version\x20header','terminate','prototype','flush','isArray','\x0d\x0a\x0d\x0a','_fragments','sec-websocket-version','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','clientNoContextTakeover','_sender','permessage-deflate','charCodeAt','_destroy','get','destroyed','clients','_extensions','HTTP/1.1\x20','dataMessage','skipUTF8Validation'];_0x248b=function(){return _0x42aa71;};return _0x248b();}function qt(){const _0x3274ef=_0x575908;if(Xe)return ye;Xe=0x1;const _0x33efec=Symbol(_0x3274ef(0x223)),_0x356f72=Symbol(_0x3274ef(0x2cc));class _0x44ef57{constructor(_0x1e2030){const _0x263da3=_0x3274ef;this[_0x33efec]=()=>{const _0x47ee49=_0x395c;this[_0x47ee49(0x266)]--,this[_0x356f72]();},this[_0x263da3(0x2d6)]=_0x1e2030||0x1/0x0,this[_0x263da3(0x24e)]=[],this[_0x263da3(0x266)]=0x0;}[_0x3274ef(0x348)](_0x528232){const _0x5cd629=_0x3274ef;this[_0x5cd629(0x24e)][_0x5cd629(0x281)](_0x528232),this[_0x356f72]();}[_0x356f72](){const _0x4f3438=_0x3274ef;if(this[_0x4f3438(0x266)]!==this['concurrency']&&this[_0x4f3438(0x24e)]['length']){const _0x43018d=this[_0x4f3438(0x24e)]['shift']();this[_0x4f3438(0x266)]++,_0x43018d(this[_0x33efec]);}}}return ye=_0x44ef57,ye;}var ve,Ze;function he(){const _0x1ee9f5=_0x575908;if(Ze)return ve;Ze=0x1;const _0xf32b6e=_0x34d8c8,_0x3e6f1c=ce(),_0xf4486d=qt(),{kStatusCode:_0x877069}=V(),_0x37bcba=Buffer[Symbol['species']],_0x5621c7=Buffer[_0x1ee9f5(0x2fc)]([0x0,0x0,0xff,0xff]),_0x4db576=Symbol(_0x1ee9f5(0x323)),_0x8fe46a=Symbol('total-length'),_0x164ccd=Symbol(_0x1ee9f5(0x1e9)),_0x551dc2=Symbol(_0x1ee9f5(0x32f)),_0xb59664=Symbol(_0x1ee9f5(0x20c));let _0x2608bb;class _0x4a8ca6{constructor(_0x3abd5f,_0x1e337c,_0x13af34){const _0x22ebf4=_0x1ee9f5;if(this[_0x22ebf4(0x28f)]=_0x13af34|0x0,this[_0x22ebf4(0x20a)]=_0x3abd5f||{},this['_threshold']=this['_options']['threshold']!==void 0x0?this[_0x22ebf4(0x20a)][_0x22ebf4(0x265)]:0x400,this[_0x22ebf4(0x30f)]=!!_0x1e337c,this['_deflate']=null,this[_0x22ebf4(0x1bd)]=null,this[_0x22ebf4(0x21f)]=null,!_0x2608bb){const _0x7ac217=this[_0x22ebf4(0x20a)][_0x22ebf4(0x349)]!==void 0x0?this[_0x22ebf4(0x20a)]['concurrencyLimit']:0xa;_0x2608bb=new _0xf4486d(_0x7ac217);}}static get[_0x1ee9f5(0x1d7)](){const _0x46a1d7=_0x1ee9f5;return _0x46a1d7(0x323);}[_0x1ee9f5(0x238)](){const _0x33d532=_0x1ee9f5,_0x162d38={};return this[_0x33d532(0x20a)]['serverNoContextTakeover']&&(_0x162d38['server_no_context_takeover']=!0x0),this[_0x33d532(0x20a)]['clientNoContextTakeover']&&(_0x162d38[_0x33d532(0x28b)]=!0x0),this[_0x33d532(0x20a)]['serverMaxWindowBits']&&(_0x162d38[_0x33d532(0x30c)]=this[_0x33d532(0x20a)][_0x33d532(0x34d)]),this[_0x33d532(0x20a)][_0x33d532(0x280)]?_0x162d38[_0x33d532(0x1df)]=this[_0x33d532(0x20a)][_0x33d532(0x280)]:this['_options'][_0x33d532(0x280)]==null&&(_0x162d38[_0x33d532(0x1df)]=!0x0),_0x162d38;}[_0x1ee9f5(0x29e)](_0x381702){const _0x2e3620=_0x1ee9f5;return _0x381702=this[_0x2e3620(0x203)](_0x381702),this[_0x2e3620(0x21f)]=this[_0x2e3620(0x30f)]?this[_0x2e3620(0x293)](_0x381702):this[_0x2e3620(0x2ef)](_0x381702),this[_0x2e3620(0x21f)];}[_0x1ee9f5(0x1c9)](){const _0x40faa4=_0x1ee9f5;if(this['_inflate']&&(this[_0x40faa4(0x1bd)][_0x40faa4(0x1f1)](),this['_inflate']=null),this[_0x40faa4(0x250)]){const _0x2478ce=this['_deflate'][_0x164ccd];this['_deflate'][_0x40faa4(0x1f1)](),this[_0x40faa4(0x250)]=null,_0x2478ce&&_0x2478ce(new Error(_0x40faa4(0x26b)));}}['acceptAsServer'](_0x5bf80c){const _0x4f116d=_0x1ee9f5,_0x3c2bf5=this[_0x4f116d(0x20a)],_0x47b835=_0x5bf80c['find'](_0x1421c8=>!(_0x3c2bf5['serverNoContextTakeover']===!0x1&&_0x1421c8[_0x4f116d(0x253)]||_0x1421c8[_0x4f116d(0x30c)]&&(_0x3c2bf5['serverMaxWindowBits']===!0x1||typeof _0x3c2bf5[_0x4f116d(0x34d)]==_0x4f116d(0x245)&&_0x3c2bf5[_0x4f116d(0x34d)]>_0x1421c8[_0x4f116d(0x30c)])||typeof _0x3c2bf5[_0x4f116d(0x280)]==_0x4f116d(0x245)&&!_0x1421c8[_0x4f116d(0x1df)]));if(!_0x47b835)throw new Error(_0x4f116d(0x297));return _0x3c2bf5[_0x4f116d(0x259)]&&(_0x47b835['server_no_context_takeover']=!0x0),_0x3c2bf5[_0x4f116d(0x321)]&&(_0x47b835[_0x4f116d(0x28b)]=!0x0),typeof _0x3c2bf5[_0x4f116d(0x34d)]==_0x4f116d(0x245)&&(_0x47b835[_0x4f116d(0x30c)]=_0x3c2bf5['serverMaxWindowBits']),typeof _0x3c2bf5['clientMaxWindowBits']=='number'?_0x47b835[_0x4f116d(0x1df)]=_0x3c2bf5[_0x4f116d(0x280)]:(_0x47b835[_0x4f116d(0x1df)]===!0x0||_0x3c2bf5[_0x4f116d(0x280)]===!0x1)&&delete _0x47b835[_0x4f116d(0x1df)],_0x47b835;}[_0x1ee9f5(0x2ef)](_0x2b2c94){const _0x26efb5=_0x1ee9f5,_0x2d7789=_0x2b2c94[0x0];if(this[_0x26efb5(0x20a)][_0x26efb5(0x321)]===!0x1&&_0x2d7789['client_no_context_takeover'])throw new Error(_0x26efb5(0x1c6));if(!_0x2d7789[_0x26efb5(0x1df)])typeof this[_0x26efb5(0x20a)][_0x26efb5(0x280)]==_0x26efb5(0x245)&&(_0x2d7789[_0x26efb5(0x1df)]=this[_0x26efb5(0x20a)]['clientMaxWindowBits']);else{if(this['_options']['clientMaxWindowBits']===!0x1||typeof this[_0x26efb5(0x20a)][_0x26efb5(0x280)]==_0x26efb5(0x245)&&_0x2d7789[_0x26efb5(0x1df)]>this[_0x26efb5(0x20a)][_0x26efb5(0x280)])throw new Error(_0x26efb5(0x2a1));}return _0x2d7789;}[_0x1ee9f5(0x203)](_0x434fba){const _0x211d82=_0x1ee9f5;return _0x434fba[_0x211d82(0x294)](_0x5cdc3b=>{const _0x21cac8=_0x211d82;Object[_0x21cac8(0x352)](_0x5cdc3b)[_0x21cac8(0x294)](_0x1c5080=>{const _0x46cbf1=_0x21cac8;let _0x538625=_0x5cdc3b[_0x1c5080];if(_0x538625[_0x46cbf1(0x2d2)]>0x1)throw new Error(_0x46cbf1(0x1d4)+_0x1c5080+'\x22\x20must\x20have\x20only\x20a\x20single\x20value');if(_0x538625=_0x538625[0x0],_0x1c5080===_0x46cbf1(0x1df)){if(_0x538625!==!0x0){const _0x397cb9=+_0x538625;if(!Number[_0x46cbf1(0x1ea)](_0x397cb9)||_0x397cb9<0x8||_0x397cb9>0xf)throw new TypeError(_0x46cbf1(0x24c)+_0x1c5080+_0x46cbf1(0x205)+_0x538625);_0x538625=_0x397cb9;}else{if(!this[_0x46cbf1(0x30f)])throw new TypeError('Invalid\x20value\x20for\x20parameter\x20\x22'+_0x1c5080+_0x46cbf1(0x205)+_0x538625);}}else{if(_0x1c5080===_0x46cbf1(0x30c)){const _0x37556e=+_0x538625;if(!Number[_0x46cbf1(0x1ea)](_0x37556e)||_0x37556e<0x8||_0x37556e>0xf)throw new TypeError(_0x46cbf1(0x24c)+_0x1c5080+'\x22:\x20'+_0x538625);_0x538625=_0x37556e;}else{if(_0x1c5080===_0x46cbf1(0x28b)||_0x1c5080===_0x46cbf1(0x253)){if(_0x538625!==!0x0)throw new TypeError(_0x46cbf1(0x24c)+_0x1c5080+_0x46cbf1(0x205)+_0x538625);}else throw new Error(_0x46cbf1(0x1ac)+_0x1c5080+'\x22');}}_0x5cdc3b[_0x1c5080]=_0x538625;});}),_0x434fba;}[_0x1ee9f5(0x1cb)](_0x4b91d6,_0x456e14,_0x68fbed){_0x2608bb['add'](_0x1a3c5b=>{const _0x35933b=_0x395c;this[_0x35933b(0x1ec)](_0x4b91d6,_0x456e14,(_0x45168f,_0x4575da)=>{_0x1a3c5b(),_0x68fbed(_0x45168f,_0x4575da);});});}[_0x1ee9f5(0x252)](_0x2148b0,_0x2f835f,_0x123ea4){_0x2608bb['add'](_0x1e0422=>{const _0x560bb5=_0x395c;this[_0x560bb5(0x2dd)](_0x2148b0,_0x2f835f,(_0x5710f8,_0x2dbd79)=>{_0x1e0422(),_0x123ea4(_0x5710f8,_0x2dbd79);});});}[_0x1ee9f5(0x1ec)](_0x1fc4c5,_0x58e1de,_0x438b7d){const _0x446e5d=_0x1ee9f5,_0x20b4d1=this['_isServer']?_0x446e5d(0x2a4):_0x446e5d(0x226);if(!this[_0x446e5d(0x1bd)]){const _0x2c991e=_0x20b4d1+_0x446e5d(0x1bf),_0x1c44d7=typeof this['params'][_0x2c991e]!=_0x446e5d(0x245)?_0xf32b6e['Z_DEFAULT_WINDOWBITS']:this[_0x446e5d(0x21f)][_0x2c991e];this['_inflate']=_0xf32b6e[_0x446e5d(0x34a)]({...this[_0x446e5d(0x20a)][_0x446e5d(0x2b0)],'windowBits':_0x1c44d7}),this['_inflate'][_0x4db576]=this,this[_0x446e5d(0x1bd)][_0x8fe46a]=0x0,this[_0x446e5d(0x1bd)][_0x551dc2]=[],this[_0x446e5d(0x1bd)]['on'](_0x446e5d(0x20c),_0x4086e0),this['_inflate']['on'](_0x446e5d(0x267),_0x4a26bb);}this['_inflate'][_0x164ccd]=_0x438b7d,this[_0x446e5d(0x1bd)][_0x446e5d(0x29c)](_0x1fc4c5),_0x58e1de&&this[_0x446e5d(0x1bd)][_0x446e5d(0x29c)](_0x5621c7),this[_0x446e5d(0x1bd)]['flush'](()=>{const _0x261a46=_0x446e5d,_0x3e95d7=this['_inflate'][_0xb59664];if(_0x3e95d7){this['_inflate'][_0x261a46(0x1f1)](),this[_0x261a46(0x1bd)]=null,_0x438b7d(_0x3e95d7);return;}const _0x32da50=_0x3e6f1c['concat'](this['_inflate'][_0x551dc2],this['_inflate'][_0x8fe46a]);this[_0x261a46(0x1bd)]['_readableState'][_0x261a46(0x22e)]?(this[_0x261a46(0x1bd)][_0x261a46(0x1f1)](),this[_0x261a46(0x1bd)]=null):(this[_0x261a46(0x1bd)][_0x8fe46a]=0x0,this['_inflate'][_0x551dc2]=[],_0x58e1de&&this[_0x261a46(0x21f)][_0x20b4d1+'_no_context_takeover']&&this[_0x261a46(0x1bd)]['reset']()),_0x438b7d(null,_0x32da50);});}[_0x1ee9f5(0x2dd)](_0x50d532,_0x9b7368,_0x395349){const _0x262c43=_0x1ee9f5,_0x385b30=this[_0x262c43(0x30f)]?'server':_0x262c43(0x2a4);if(!this[_0x262c43(0x250)]){const _0x1dd8b3=_0x385b30+'_max_window_bits',_0xb91dd0=typeof this[_0x262c43(0x21f)][_0x1dd8b3]!=_0x262c43(0x245)?_0xf32b6e[_0x262c43(0x271)]:this[_0x262c43(0x21f)][_0x1dd8b3];this['_deflate']=_0xf32b6e['createDeflateRaw']({...this[_0x262c43(0x20a)][_0x262c43(0x1ae)],'windowBits':_0xb91dd0}),this[_0x262c43(0x250)][_0x8fe46a]=0x0,this[_0x262c43(0x250)][_0x551dc2]=[],this['_deflate']['on'](_0x262c43(0x267),_0x19eef2);}this[_0x262c43(0x250)][_0x164ccd]=_0x395349,this['_deflate'][_0x262c43(0x29c)](_0x50d532),this[_0x262c43(0x250)][_0x262c43(0x31b)](_0xf32b6e[_0x262c43(0x213)],()=>{const _0x1f67b5=_0x262c43;if(!this[_0x1f67b5(0x250)])return;let _0xa44222=_0x3e6f1c['concat'](this[_0x1f67b5(0x250)][_0x551dc2],this[_0x1f67b5(0x250)][_0x8fe46a]);_0x9b7368&&(_0xa44222=new _0x37bcba(_0xa44222[_0x1f67b5(0x1fd)],_0xa44222[_0x1f67b5(0x1b3)],_0xa44222[_0x1f67b5(0x2d2)]-0x4)),this[_0x1f67b5(0x250)][_0x164ccd]=null,this['_deflate'][_0x8fe46a]=0x0,this[_0x1f67b5(0x250)][_0x551dc2]=[],_0x9b7368&&this['params'][_0x385b30+_0x1f67b5(0x2e8)]&&this['_deflate'][_0x1f67b5(0x2df)](),_0x395349(null,_0xa44222);});}}ve=_0x4a8ca6;function _0x19eef2(_0x4144a7){const _0x546719=_0x1ee9f5;this[_0x551dc2][_0x546719(0x281)](_0x4144a7),this[_0x8fe46a]+=_0x4144a7[_0x546719(0x2d2)];}function _0x4a26bb(_0x12adb5){const _0x1a7363=_0x1ee9f5;if(this[_0x8fe46a]+=_0x12adb5[_0x1a7363(0x2d2)],this[_0x4db576]['_maxPayload']<0x1||this[_0x8fe46a]<=this[_0x4db576][_0x1a7363(0x28f)]){this[_0x551dc2]['push'](_0x12adb5);return;}this[_0xb59664]=new RangeError('Max\x20payload\x20size\x20exceeded'),this[_0xb59664][_0x1a7363(0x291)]=_0x1a7363(0x2ac),this[_0xb59664][_0x877069]=0x3f1,this[_0x1a7363(0x2ba)](_0x1a7363(0x267),_0x4a26bb),this[_0x1a7363(0x2df)]();}function _0x4086e0(_0xdff6b9){if(this[_0x4db576]['_inflate']=null,this[_0xb59664]){this[_0x164ccd](this[_0xb59664]);return;}_0xdff6b9[_0x877069]=0x3ef,this[_0x164ccd](_0xdff6b9);}return ve;}var re={'exports':{}};const Ht={},zt=Object['freeze'](Object[_0x575908(0x28e)]({'__proto__':null,'default':Ht},Symbol['toStringTag'],{'value':_0x575908(0x229)})),Yt=ut(zt);var Qe;function ne(){const _0x5175ea=_0x575908;if(Qe)return re['exports'];Qe=0x1;const {isUtf8:_0x1b98c5}=_0x1b1837,{hasBlob:_0x3194f}=V(),_0x13f74a=[0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x1,0x1,0x1,0x1,0x1,0x0,0x0,0x1,0x1,0x0,0x1,0x1,0x0,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x0,0x0,0x0,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x0,0x1,0x0,0x1,0x0];function _0x73d290(_0x4cd157){return _0x4cd157>=0x3e8&&_0x4cd157<=0x3f6&&_0x4cd157!==0x3ec&&_0x4cd157!==0x3ed&&_0x4cd157!==0x3ee||_0x4cd157>=0xbb8&&_0x4cd157<=0x1387;}function _0x192bf1(_0x2e515b){const _0x55aad7=_0x395c,_0x568954=_0x2e515b[_0x55aad7(0x2d2)];let _0x4a10d3=0x0;for(;_0x4a10d3<_0x568954;)if((_0x2e515b[_0x4a10d3]&0x80)===0x0)_0x4a10d3++;else{if((_0x2e515b[_0x4a10d3]&0xe0)===0xc0){if(_0x4a10d3+0x1===_0x568954||(_0x2e515b[_0x4a10d3+0x1]&0xc0)!==0x80||(_0x2e515b[_0x4a10d3]&0xfe)===0xc0)return!0x1;_0x4a10d3+=0x2;}else{if((_0x2e515b[_0x4a10d3]&0xf0)===0xe0){if(_0x4a10d3+0x2>=_0x568954||(_0x2e515b[_0x4a10d3+0x1]&0xc0)!==0x80||(_0x2e515b[_0x4a10d3+0x2]&0xc0)!==0x80||_0x2e515b[_0x4a10d3]===0xe0&&(_0x2e515b[_0x4a10d3+0x1]&0xe0)===0x80||_0x2e515b[_0x4a10d3]===0xed&&(_0x2e515b[_0x4a10d3+0x1]&0xe0)===0xa0)return!0x1;_0x4a10d3+=0x3;}else{if((_0x2e515b[_0x4a10d3]&0xf8)===0xf0){if(_0x4a10d3+0x3>=_0x568954||(_0x2e515b[_0x4a10d3+0x1]&0xc0)!==0x80||(_0x2e515b[_0x4a10d3+0x2]&0xc0)!==0x80||(_0x2e515b[_0x4a10d3+0x3]&0xc0)!==0x80||_0x2e515b[_0x4a10d3]===0xf0&&(_0x2e515b[_0x4a10d3+0x1]&0xf0)===0x80||_0x2e515b[_0x4a10d3]===0xf4&&_0x2e515b[_0x4a10d3+0x1]>0x8f||_0x2e515b[_0x4a10d3]>0xf4)return!0x1;_0x4a10d3+=0x4;}else return!0x1;}}}return!0x0;}function _0x504a73(_0x1d0c68){const _0x1f5802=_0x395c;return _0x3194f&&typeof _0x1d0c68==_0x1f5802(0x246)&&typeof _0x1d0c68[_0x1f5802(0x20b)]==_0x1f5802(0x1e2)&&typeof _0x1d0c68[_0x1f5802(0x336)]==_0x1f5802(0x272)&&typeof _0x1d0c68['stream']==_0x1f5802(0x1e2)&&(_0x1d0c68[Symbol['toStringTag']]===_0x1f5802(0x200)||_0x1d0c68[Symbol[_0x1f5802(0x32d)]]===_0x1f5802(0x25b));}if(re[_0x5175ea(0x2a2)]={'isBlob':_0x504a73,'isValidStatusCode':_0x73d290,'isValidUTF8':_0x192bf1,'tokenChars':_0x13f74a},_0x1b98c5)re[_0x5175ea(0x2a2)][_0x5175ea(0x1ab)]=function(_0x2bad3b){return _0x2bad3b['length']<0x18?_0x192bf1(_0x2bad3b):_0x1b98c5(_0x2bad3b);};else{if(!process[_0x5175ea(0x23a)][_0x5175ea(0x263)])try{const _0x2a2a82=Yt;re[_0x5175ea(0x2a2)]['isValidUTF8']=function(_0x46ff2a){const _0x1271f2=_0x5175ea;return _0x46ff2a[_0x1271f2(0x2d2)]<0x20?_0x192bf1(_0x46ff2a):_0x2a2a82(_0x46ff2a);};}catch{}}return re[_0x5175ea(0x2a2)];}var Se,Je;function dt(){const _0x30ee28=_0x575908;if(Je)return Se;Je=0x1;const {Writable:_0x37af67}=_0x2a4194,_0x4a9635=he(),{BINARY_TYPES:_0x7d0e74,EMPTY_BUFFER:_0x5a82ff,kStatusCode:_0x53da3e,kWebSocket:_0x46289c}=V(),{concat:_0xbd427c,toArrayBuffer:_0x261dd8,unmask:_0x416044}=ce(),{isValidStatusCode:_0x3c5d09,isValidUTF8:_0x537df7}=ne(),_0x544c89=Buffer[Symbol['species']],_0x3c98f8=0x0,_0x31f665=0x1,_0x9526c4=0x2,_0x226af0=0x3,_0x233a96=0x4,_0x449c88=0x5,_0xe5b057=0x6;class _0x3a580e extends _0x37af67{constructor(_0x28699d={}){const _0x3f5d11=_0x395c;super(),this['_allowSynchronousEvents']=_0x28699d['allowSynchronousEvents']!==void 0x0?_0x28699d[_0x3f5d11(0x25e)]:!0x0,this[_0x3f5d11(0x2ca)]=_0x28699d[_0x3f5d11(0x2de)]||_0x7d0e74[0x0],this['_extensions']=_0x28699d['extensions']||{},this[_0x3f5d11(0x30f)]=!!_0x28699d['isServer'],this[_0x3f5d11(0x28f)]=_0x28699d['maxPayload']|0x0,this['_skipUTF8Validation']=!!_0x28699d['skipUTF8Validation'],this[_0x46289c]=void 0x0,this['_bufferedBytes']=0x0,this[_0x3f5d11(0x20e)]=[],this[_0x3f5d11(0x1f9)]=!0x1,this[_0x3f5d11(0x1d9)]=0x0,this[_0x3f5d11(0x214)]=void 0x0,this[_0x3f5d11(0x2c0)]=0x0,this[_0x3f5d11(0x25f)]=!0x1,this['_fin']=!0x1,this[_0x3f5d11(0x2e5)]=0x0,this[_0x3f5d11(0x1dd)]=0x0,this[_0x3f5d11(0x351)]=0x0,this[_0x3f5d11(0x31e)]=[],this[_0x3f5d11(0x1c2)]=!0x1,this['_loop']=!0x1,this[_0x3f5d11(0x22c)]=_0x3c98f8;}[_0x30ee28(0x2c6)](_0x4f3edc,_0x4dcdd2,_0x3860fc){const _0x2fa21b=_0x30ee28;if(this[_0x2fa21b(0x2e5)]===0x8&&this['_state']==_0x3c98f8)return _0x3860fc();this[_0x2fa21b(0x1b9)]+=_0x4f3edc['length'],this[_0x2fa21b(0x20e)][_0x2fa21b(0x281)](_0x4f3edc),this[_0x2fa21b(0x1c1)](_0x3860fc);}[_0x30ee28(0x2c7)](_0x3064aa){const _0x5ac2ee=_0x30ee28;if(this['_bufferedBytes']-=_0x3064aa,_0x3064aa===this['_buffers'][0x0][_0x5ac2ee(0x2d2)])return this['_buffers'][_0x5ac2ee(0x1b6)]();if(_0x3064aa<this[_0x5ac2ee(0x20e)][0x0][_0x5ac2ee(0x2d2)]){const _0x43af91=this[_0x5ac2ee(0x20e)][0x0];return this['_buffers'][0x0]=new _0x544c89(_0x43af91[_0x5ac2ee(0x1fd)],_0x43af91[_0x5ac2ee(0x1b3)]+_0x3064aa,_0x43af91[_0x5ac2ee(0x2d2)]-_0x3064aa),new _0x544c89(_0x43af91[_0x5ac2ee(0x1fd)],_0x43af91[_0x5ac2ee(0x1b3)],_0x3064aa);}const _0x3d75c7=Buffer[_0x5ac2ee(0x2e4)](_0x3064aa);do{const _0x448f68=this[_0x5ac2ee(0x20e)][0x0],_0x351773=_0x3d75c7[_0x5ac2ee(0x2d2)]-_0x3064aa;_0x3064aa>=_0x448f68['length']?_0x3d75c7[_0x5ac2ee(0x2b7)](this['_buffers'][_0x5ac2ee(0x1b6)](),_0x351773):(_0x3d75c7['set'](new Uint8Array(_0x448f68[_0x5ac2ee(0x1fd)],_0x448f68['byteOffset'],_0x3064aa),_0x351773),this[_0x5ac2ee(0x20e)][0x0]=new _0x544c89(_0x448f68[_0x5ac2ee(0x1fd)],_0x448f68[_0x5ac2ee(0x1b3)]+_0x3064aa,_0x448f68[_0x5ac2ee(0x2d2)]-_0x3064aa)),_0x3064aa-=_0x448f68[_0x5ac2ee(0x2d2)];}while(_0x3064aa>0x0);return _0x3d75c7;}[_0x30ee28(0x1c1)](_0x2b728c){const _0x2ec94a=_0x30ee28;this[_0x2ec94a(0x22b)]=!0x0;do switch(this[_0x2ec94a(0x22c)]){case _0x3c98f8:this['getInfo'](_0x2b728c);break;case _0x31f665:this[_0x2ec94a(0x2e1)](_0x2b728c);break;case _0x9526c4:this['getPayloadLength64'](_0x2b728c);break;case _0x226af0:this[_0x2ec94a(0x1e3)]();break;case _0x233a96:this[_0x2ec94a(0x2cd)](_0x2b728c);break;case _0x449c88:case _0xe5b057:this[_0x2ec94a(0x22b)]=!0x1;return;}while(this[_0x2ec94a(0x22b)]);this[_0x2ec94a(0x1c2)]||_0x2b728c();}['getInfo'](_0x3315f3){const _0x52b07a=_0x30ee28;if(this['_bufferedBytes']<0x2){this[_0x52b07a(0x22b)]=!0x1;return;}const _0x148689=this[_0x52b07a(0x2c7)](0x2);if((_0x148689[0x0]&0x30)!==0x0){const _0x5bed17=this[_0x52b07a(0x1c0)](RangeError,_0x52b07a(0x316),!0x0,0x3ea,_0x52b07a(0x33d));_0x3315f3(_0x5bed17);return;}const _0x41fd62=(_0x148689[0x0]&0x40)===0x40;if(_0x41fd62&&!this[_0x52b07a(0x329)][_0x4a9635[_0x52b07a(0x1d7)]]){const _0x1d9519=this[_0x52b07a(0x1c0)](RangeError,_0x52b07a(0x23f),!0x0,0x3ea,_0x52b07a(0x277));_0x3315f3(_0x1d9519);return;}if(this[_0x52b07a(0x290)]=(_0x148689[0x0]&0x80)===0x80,this[_0x52b07a(0x2e5)]=_0x148689[0x0]&0xf,this[_0x52b07a(0x1d9)]=_0x148689[0x1]&0x7f,this['_opcode']===0x0){if(_0x41fd62){const _0x30dc30=this[_0x52b07a(0x1c0)](RangeError,_0x52b07a(0x23f),!0x0,0x3ea,'WS_ERR_UNEXPECTED_RSV_1');_0x3315f3(_0x30dc30);return;}if(!this[_0x52b07a(0x2c0)]){const _0xb92225=this[_0x52b07a(0x1c0)](RangeError,_0x52b07a(0x1ff),!0x0,0x3ea,'WS_ERR_INVALID_OPCODE');_0x3315f3(_0xb92225);return;}this[_0x52b07a(0x2e5)]=this['_fragmented'];}else{if(this[_0x52b07a(0x2e5)]===0x1||this[_0x52b07a(0x2e5)]===0x2){if(this['_fragmented']){const _0x3cc6d0=this[_0x52b07a(0x1c0)](RangeError,_0x52b07a(0x27e)+this[_0x52b07a(0x2e5)],!0x0,0x3ea,_0x52b07a(0x285));_0x3315f3(_0x3cc6d0);return;}this[_0x52b07a(0x1f9)]=_0x41fd62;}else{if(this['_opcode']>0x7&&this[_0x52b07a(0x2e5)]<0xb){if(!this['_fin']){const _0x2f6ee0=this[_0x52b07a(0x1c0)](RangeError,_0x52b07a(0x29d),!0x0,0x3ea,'WS_ERR_EXPECTED_FIN');_0x3315f3(_0x2f6ee0);return;}if(_0x41fd62){const _0x17f96f=this['createError'](RangeError,_0x52b07a(0x23f),!0x0,0x3ea,_0x52b07a(0x277));_0x3315f3(_0x17f96f);return;}if(this[_0x52b07a(0x1d9)]>0x7d||this[_0x52b07a(0x2e5)]===0x8&&this[_0x52b07a(0x1d9)]===0x1){const _0x1d8e09=this[_0x52b07a(0x1c0)](RangeError,_0x52b07a(0x2ae)+this[_0x52b07a(0x1d9)],!0x0,0x3ea,_0x52b07a(0x273));_0x3315f3(_0x1d8e09);return;}}else{const _0x27987b=this[_0x52b07a(0x1c0)](RangeError,'invalid\x20opcode\x20'+this['_opcode'],!0x0,0x3ea,_0x52b07a(0x285));_0x3315f3(_0x27987b);return;}}}if(!this['_fin']&&!this[_0x52b07a(0x2c0)]&&(this[_0x52b07a(0x2c0)]=this['_opcode']),this[_0x52b07a(0x25f)]=(_0x148689[0x1]&0x80)===0x80,this[_0x52b07a(0x30f)]){if(!this[_0x52b07a(0x25f)]){const _0x17d037=this[_0x52b07a(0x1c0)](RangeError,_0x52b07a(0x2d0),!0x0,0x3ea,_0x52b07a(0x21a));_0x3315f3(_0x17d037);return;}}else{if(this[_0x52b07a(0x25f)]){const _0x30a251=this[_0x52b07a(0x1c0)](RangeError,_0x52b07a(0x2ec),!0x0,0x3ea,'WS_ERR_UNEXPECTED_MASK');_0x3315f3(_0x30a251);return;}}this[_0x52b07a(0x1d9)]===0x7e?this[_0x52b07a(0x22c)]=_0x31f665:this['_payloadLength']===0x7f?this[_0x52b07a(0x22c)]=_0x9526c4:this[_0x52b07a(0x1d5)](_0x3315f3);}['getPayloadLength16'](_0x2369c8){const _0xfbc92d=_0x30ee28;if(this[_0xfbc92d(0x1b9)]<0x2){this[_0xfbc92d(0x22b)]=!0x1;return;}this[_0xfbc92d(0x1d9)]=this[_0xfbc92d(0x2c7)](0x2)[_0xfbc92d(0x1d3)](0x0),this['haveLength'](_0x2369c8);}[_0x30ee28(0x25d)](_0x3063d2){const _0x367c13=_0x30ee28;if(this['_bufferedBytes']<0x8){this[_0x367c13(0x22b)]=!0x1;return;}const _0x320eb4=this[_0x367c13(0x2c7)](0x8),_0x7ad2e8=_0x320eb4['readUInt32BE'](0x0);if(_0x7ad2e8>Math['pow'](0x2,0x15)-0x1){const _0x276700=this[_0x367c13(0x1c0)](RangeError,'Unsupported\x20WebSocket\x20frame:\x20payload\x20length\x20>\x202^53\x20-\x201',!0x1,0x3f1,'WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH');_0x3063d2(_0x276700);return;}this[_0x367c13(0x1d9)]=_0x7ad2e8*Math[_0x367c13(0x286)](0x2,0x20)+_0x320eb4[_0x367c13(0x2fe)](0x4),this[_0x367c13(0x1d5)](_0x3063d2);}[_0x30ee28(0x1d5)](_0x3fbe8d){const _0x15333c=_0x30ee28;if(this[_0x15333c(0x1d9)]&&this[_0x15333c(0x2e5)]<0x8&&(this[_0x15333c(0x1dd)]+=this[_0x15333c(0x1d9)],this[_0x15333c(0x1dd)]>this[_0x15333c(0x28f)]&&this[_0x15333c(0x28f)]>0x0)){const _0x3d1106=this[_0x15333c(0x1c0)](RangeError,'Max\x20payload\x20size\x20exceeded',!0x1,0x3f1,_0x15333c(0x2ac));_0x3fbe8d(_0x3d1106);return;}this['_masked']?this['_state']=_0x226af0:this[_0x15333c(0x22c)]=_0x233a96;}[_0x30ee28(0x1e3)](){const _0x568d16=_0x30ee28;if(this['_bufferedBytes']<0x4){this['_loop']=!0x1;return;}this[_0x568d16(0x214)]=this[_0x568d16(0x2c7)](0x4),this[_0x568d16(0x22c)]=_0x233a96;}['getData'](_0x496ece){const _0x54dd94=_0x30ee28;let _0x2256f0=_0x5a82ff;if(this[_0x54dd94(0x1d9)]){if(this['_bufferedBytes']<this[_0x54dd94(0x1d9)]){this[_0x54dd94(0x22b)]=!0x1;return;}_0x2256f0=this[_0x54dd94(0x2c7)](this[_0x54dd94(0x1d9)]),this[_0x54dd94(0x25f)]&&(this[_0x54dd94(0x214)][0x0]|this[_0x54dd94(0x214)][0x1]|this[_0x54dd94(0x214)][0x2]|this[_0x54dd94(0x214)][0x3])!==0x0&&_0x416044(_0x2256f0,this['_mask']);}if(this[_0x54dd94(0x2e5)]>0x7){this[_0x54dd94(0x1eb)](_0x2256f0,_0x496ece);return;}if(this['_compressed']){this[_0x54dd94(0x22c)]=_0x449c88,this[_0x54dd94(0x1cb)](_0x2256f0,_0x496ece);return;}_0x2256f0[_0x54dd94(0x2d2)]&&(this[_0x54dd94(0x351)]=this[_0x54dd94(0x1dd)],this[_0x54dd94(0x31e)][_0x54dd94(0x281)](_0x2256f0)),this[_0x54dd94(0x32b)](_0x496ece);}['decompress'](_0x31e9a7,_0x48112b){const _0x421bc2=_0x30ee28;this[_0x421bc2(0x329)][_0x4a9635[_0x421bc2(0x1d7)]]['decompress'](_0x31e9a7,this['_fin'],(_0xe58a0d,_0x5050d7)=>{const _0x58a0fa=_0x421bc2;if(_0xe58a0d)return _0x48112b(_0xe58a0d);if(_0x5050d7[_0x58a0fa(0x2d2)]){if(this[_0x58a0fa(0x351)]+=_0x5050d7[_0x58a0fa(0x2d2)],this[_0x58a0fa(0x351)]>this[_0x58a0fa(0x28f)]&&this[_0x58a0fa(0x28f)]>0x0){const _0x569b44=this['createError'](RangeError,_0x58a0fa(0x2ee),!0x1,0x3f1,_0x58a0fa(0x2ac));_0x48112b(_0x569b44);return;}this[_0x58a0fa(0x31e)][_0x58a0fa(0x281)](_0x5050d7);}this[_0x58a0fa(0x32b)](_0x48112b),this[_0x58a0fa(0x22c)]===_0x3c98f8&&this[_0x58a0fa(0x1c1)](_0x48112b);});}['dataMessage'](_0x91f956){const _0x104321=_0x30ee28;if(!this[_0x104321(0x290)]){this[_0x104321(0x22c)]=_0x3c98f8;return;}const _0x313194=this[_0x104321(0x351)],_0x4a4cad=this[_0x104321(0x31e)];if(this[_0x104321(0x1dd)]=0x0,this[_0x104321(0x351)]=0x0,this[_0x104321(0x2c0)]=0x0,this['_fragments']=[],this[_0x104321(0x2e5)]===0x2){let _0x1dfd4b;this[_0x104321(0x2ca)]===_0x104321(0x236)?_0x1dfd4b=_0xbd427c(_0x4a4cad,_0x313194):this[_0x104321(0x2ca)]==='arraybuffer'?_0x1dfd4b=_0x261dd8(_0xbd427c(_0x4a4cad,_0x313194)):this[_0x104321(0x2ca)]===_0x104321(0x26e)?_0x1dfd4b=new Blob(_0x4a4cad):_0x1dfd4b=_0x4a4cad,this[_0x104321(0x1d1)]?(this[_0x104321(0x1b0)](_0x104321(0x268),_0x1dfd4b,!0x0),this[_0x104321(0x22c)]=_0x3c98f8):(this[_0x104321(0x22c)]=_0xe5b057,setImmediate(()=>{const _0xd2e820=_0x104321;this[_0xd2e820(0x1b0)](_0xd2e820(0x268),_0x1dfd4b,!0x0),this[_0xd2e820(0x22c)]=_0x3c98f8,this[_0xd2e820(0x1c1)](_0x91f956);}));}else{const _0x14cef6=_0xbd427c(_0x4a4cad,_0x313194);if(!this[_0x104321(0x2d4)]&&!_0x537df7(_0x14cef6)){const _0x50a9b8=this[_0x104321(0x1c0)](Error,'invalid\x20UTF-8\x20sequence',!0x0,0x3ef,_0x104321(0x2b2));_0x91f956(_0x50a9b8);return;}this['_state']===_0x449c88||this[_0x104321(0x1d1)]?(this[_0x104321(0x1b0)](_0x104321(0x268),_0x14cef6,!0x1),this[_0x104321(0x22c)]=_0x3c98f8):(this[_0x104321(0x22c)]=_0xe5b057,setImmediate(()=>{const _0x3c8ae9=_0x104321;this[_0x3c8ae9(0x1b0)](_0x3c8ae9(0x268),_0x14cef6,!0x1),this[_0x3c8ae9(0x22c)]=_0x3c98f8,this[_0x3c8ae9(0x1c1)](_0x91f956);}));}}[_0x30ee28(0x1eb)](_0x243f0e,_0x5983b1){const _0x2cbf09=_0x30ee28;if(this[_0x2cbf09(0x2e5)]===0x8){if(_0x243f0e['length']===0x0)this['_loop']=!0x1,this[_0x2cbf09(0x1b0)]('conclude',0x3ed,_0x5a82ff),this[_0x2cbf09(0x1f0)]();else{const _0x54964e=_0x243f0e[_0x2cbf09(0x1d3)](0x0);if(!_0x3c5d09(_0x54964e)){const _0x5e4294=this[_0x2cbf09(0x1c0)](RangeError,'invalid\x20status\x20code\x20'+_0x54964e,!0x0,0x3ea,'WS_ERR_INVALID_CLOSE_CODE');_0x5983b1(_0x5e4294);return;}const _0x229a5a=new _0x544c89(_0x243f0e[_0x2cbf09(0x1fd)],_0x243f0e[_0x2cbf09(0x1b3)]+0x2,_0x243f0e[_0x2cbf09(0x2d2)]-0x2);if(!this[_0x2cbf09(0x2d4)]&&!_0x537df7(_0x229a5a)){const _0x45ace3=this[_0x2cbf09(0x1c0)](Error,_0x2cbf09(0x274),!0x0,0x3ef,_0x2cbf09(0x2b2));_0x5983b1(_0x45ace3);return;}this[_0x2cbf09(0x22b)]=!0x1,this[_0x2cbf09(0x1b0)]('conclude',_0x54964e,_0x229a5a),this[_0x2cbf09(0x1f0)]();}this['_state']=_0x3c98f8;return;}this['_allowSynchronousEvents']?(this['emit'](this['_opcode']===0x9?_0x2cbf09(0x241):_0x2cbf09(0x1c5),_0x243f0e),this['_state']=_0x3c98f8):(this['_state']=_0xe5b057,setImmediate(()=>{const _0x5e03e8=_0x2cbf09;this[_0x5e03e8(0x1b0)](this[_0x5e03e8(0x2e5)]===0x9?'ping':'pong',_0x243f0e),this[_0x5e03e8(0x22c)]=_0x3c98f8,this[_0x5e03e8(0x1c1)](_0x5983b1);}));}[_0x30ee28(0x1c0)](_0x583a42,_0xb7259d,_0x581ec6,_0x52bde2,_0x4d2c3e){const _0x22c4bb=_0x30ee28;this[_0x22c4bb(0x22b)]=!0x1,this[_0x22c4bb(0x1c2)]=!0x0;const _0x1269ce=new _0x583a42(_0x581ec6?_0x22c4bb(0x26d)+_0xb7259d:_0xb7259d);return Error['captureStackTrace'](_0x1269ce,this[_0x22c4bb(0x1c0)]),_0x1269ce[_0x22c4bb(0x291)]=_0x4d2c3e,_0x1269ce[_0x53da3e]=_0x52bde2,_0x1269ce;}}return Se=_0x3a580e,Se;}var Ee,et;function _t(){const _0x312fb4=_0x575908;if(et)return Ee;et=0x1;const {Duplex:_0x237d1a}=_0x2a4194,{randomFillSync:_0x1cfaac}=_0x20476a,_0x5342d8=he(),{EMPTY_BUFFER:_0x1d19d5,kWebSocket:_0x4a4a85,NOOP:_0x283460}=V(),{isBlob:_0x2c1fdc,isValidStatusCode:_0x169387}=ne(),{mask:_0x46d1b0,toBuffer:_0x212582}=ce(),_0x2032fa=Symbol(_0x312fb4(0x2c5)),_0x483ece=Buffer[_0x312fb4(0x2f9)](0x4),_0x1400e7=0x8*0x400;let _0x2974a7,_0x2d6fbf=_0x1400e7;const _0x53f3c1=0x0,_0x2e62f6=0x1,_0x2e416c=0x2;class _0x1e07da{constructor(_0x497864,_0x4c0ccc,_0x8cbee2){const _0x503a34=_0x312fb4;this['_extensions']=_0x4c0ccc||{},_0x8cbee2&&(this[_0x503a34(0x28d)]=_0x8cbee2,this['_maskBuffer']=Buffer[_0x503a34(0x2f9)](0x4)),this[_0x503a34(0x33a)]=_0x497864,this[_0x503a34(0x2f7)]=!0x0,this[_0x503a34(0x2dd)]=!0x1,this[_0x503a34(0x1b9)]=0x0,this[_0x503a34(0x1f5)]=[],this['_state']=_0x53f3c1,this[_0x503a34(0x2aa)]=_0x283460,this[_0x4a4a85]=void 0x0;}static[_0x312fb4(0x276)](_0x117466,_0x18ff67){const _0x4d2f52=_0x312fb4;let _0x47f0ce,_0xcbbc47=!0x1,_0x27732f=0x2,_0x29286c=!0x1;_0x18ff67[_0x4d2f52(0x2f2)]&&(_0x47f0ce=_0x18ff67[_0x4d2f52(0x2c1)]||_0x483ece,_0x18ff67['generateMask']?_0x18ff67[_0x4d2f52(0x2a8)](_0x47f0ce):(_0x2d6fbf===_0x1400e7&&(_0x2974a7===void 0x0&&(_0x2974a7=Buffer[_0x4d2f52(0x2f9)](_0x1400e7)),_0x1cfaac(_0x2974a7,0x0,_0x1400e7),_0x2d6fbf=0x0),_0x47f0ce[0x0]=_0x2974a7[_0x2d6fbf++],_0x47f0ce[0x1]=_0x2974a7[_0x2d6fbf++],_0x47f0ce[0x2]=_0x2974a7[_0x2d6fbf++],_0x47f0ce[0x3]=_0x2974a7[_0x2d6fbf++]),_0x29286c=(_0x47f0ce[0x0]|_0x47f0ce[0x1]|_0x47f0ce[0x2]|_0x47f0ce[0x3])===0x0,_0x27732f=0x6);let _0x174ef4;typeof _0x117466==_0x4d2f52(0x272)?(!_0x18ff67[_0x4d2f52(0x2f2)]||_0x29286c)&&_0x18ff67[_0x2032fa]!==void 0x0?_0x174ef4=_0x18ff67[_0x2032fa]:(_0x117466=Buffer['from'](_0x117466),_0x174ef4=_0x117466[_0x4d2f52(0x2d2)]):(_0x174ef4=_0x117466[_0x4d2f52(0x2d2)],_0xcbbc47=_0x18ff67[_0x4d2f52(0x2f2)]&&_0x18ff67[_0x4d2f52(0x350)]&&!_0x29286c);let _0x4eb612=_0x174ef4;_0x174ef4>=0x10000?(_0x27732f+=0x8,_0x4eb612=0x7f):_0x174ef4>0x7d&&(_0x27732f+=0x2,_0x4eb612=0x7e);const _0x57a12d=Buffer['allocUnsafe'](_0xcbbc47?_0x174ef4+_0x27732f:_0x27732f);return _0x57a12d[0x0]=_0x18ff67[_0x4d2f52(0x2dc)]?_0x18ff67[_0x4d2f52(0x2c2)]|0x80:_0x18ff67[_0x4d2f52(0x2c2)],_0x18ff67[_0x4d2f52(0x2b5)]&&(_0x57a12d[0x0]|=0x40),_0x57a12d[0x1]=_0x4eb612,_0x4eb612===0x7e?_0x57a12d[_0x4d2f52(0x233)](_0x174ef4,0x2):_0x4eb612===0x7f&&(_0x57a12d[0x2]=_0x57a12d[0x3]=0x0,_0x57a12d[_0x4d2f52(0x33f)](_0x174ef4,0x4,0x6)),_0x18ff67[_0x4d2f52(0x2f2)]?(_0x57a12d[0x1]|=0x80,_0x57a12d[_0x27732f-0x4]=_0x47f0ce[0x0],_0x57a12d[_0x27732f-0x3]=_0x47f0ce[0x1],_0x57a12d[_0x27732f-0x2]=_0x47f0ce[0x2],_0x57a12d[_0x27732f-0x1]=_0x47f0ce[0x3],_0x29286c?[_0x57a12d,_0x117466]:_0xcbbc47?(_0x46d1b0(_0x117466,_0x47f0ce,_0x57a12d,_0x27732f,_0x174ef4),[_0x57a12d]):(_0x46d1b0(_0x117466,_0x47f0ce,_0x117466,0x0,_0x174ef4),[_0x57a12d,_0x117466])):[_0x57a12d,_0x117466];}[_0x312fb4(0x1f1)](_0x1ee988,_0x4935c1,_0x10d08a,_0x77dff8){const _0x462839=_0x312fb4;let _0x593761;if(_0x1ee988===void 0x0)_0x593761=_0x1d19d5;else{if(typeof _0x1ee988!='number'||!_0x169387(_0x1ee988))throw new TypeError(_0x462839(0x240));if(_0x4935c1===void 0x0||!_0x4935c1['length'])_0x593761=Buffer[_0x462839(0x2e4)](0x2),_0x593761['writeUInt16BE'](_0x1ee988,0x0);else{const _0x3298b7=Buffer[_0x462839(0x221)](_0x4935c1);if(_0x3298b7>0x7b)throw new RangeError(_0x462839(0x25c));_0x593761=Buffer['allocUnsafe'](0x2+_0x3298b7),_0x593761['writeUInt16BE'](_0x1ee988,0x0),typeof _0x4935c1==_0x462839(0x272)?_0x593761['write'](_0x4935c1,0x2):_0x593761['set'](_0x4935c1,0x2);}}const _0x4ddc5f={[_0x2032fa]:_0x593761[_0x462839(0x2d2)],'fin':!0x0,'generateMask':this[_0x462839(0x28d)],'mask':_0x10d08a,'maskBuffer':this['_maskBuffer'],'opcode':0x8,'readOnly':!0x1,'rsv1':!0x1};this['_state']!==_0x53f3c1?this[_0x462839(0x1b5)]([this['dispatch'],_0x593761,!0x1,_0x4ddc5f,_0x77dff8]):this[_0x462839(0x2fb)](_0x1e07da[_0x462839(0x276)](_0x593761,_0x4ddc5f),_0x77dff8);}[_0x312fb4(0x241)](_0x1785b6,_0x3292b5,_0x3442b3){const _0x4fe09c=_0x312fb4;let _0x229ecc,_0x3d16af;if(typeof _0x1785b6==_0x4fe09c(0x272)?(_0x229ecc=Buffer[_0x4fe09c(0x221)](_0x1785b6),_0x3d16af=!0x1):_0x2c1fdc(_0x1785b6)?(_0x229ecc=_0x1785b6[_0x4fe09c(0x1ad)],_0x3d16af=!0x1):(_0x1785b6=_0x212582(_0x1785b6),_0x229ecc=_0x1785b6[_0x4fe09c(0x2d2)],_0x3d16af=_0x212582[_0x4fe09c(0x350)]),_0x229ecc>0x7d)throw new RangeError(_0x4fe09c(0x1ba));const _0x257890={[_0x2032fa]:_0x229ecc,'fin':!0x0,'generateMask':this[_0x4fe09c(0x28d)],'mask':_0x3292b5,'maskBuffer':this[_0x4fe09c(0x1ed)],'opcode':0x9,'readOnly':_0x3d16af,'rsv1':!0x1};_0x2c1fdc(_0x1785b6)?this[_0x4fe09c(0x22c)]!==_0x53f3c1?this['enqueue']([this['getBlobData'],_0x1785b6,!0x1,_0x257890,_0x3442b3]):this['getBlobData'](_0x1785b6,!0x1,_0x257890,_0x3442b3):this[_0x4fe09c(0x22c)]!==_0x53f3c1?this[_0x4fe09c(0x1b5)]([this[_0x4fe09c(0x244)],_0x1785b6,!0x1,_0x257890,_0x3442b3]):this['sendFrame'](_0x1e07da[_0x4fe09c(0x276)](_0x1785b6,_0x257890),_0x3442b3);}[_0x312fb4(0x1c5)](_0x22af57,_0x294644,_0x2c37bd){const _0x6fd025=_0x312fb4;let _0x580dc9,_0x328c91;if(typeof _0x22af57==_0x6fd025(0x272)?(_0x580dc9=Buffer[_0x6fd025(0x221)](_0x22af57),_0x328c91=!0x1):_0x2c1fdc(_0x22af57)?(_0x580dc9=_0x22af57[_0x6fd025(0x1ad)],_0x328c91=!0x1):(_0x22af57=_0x212582(_0x22af57),_0x580dc9=_0x22af57[_0x6fd025(0x2d2)],_0x328c91=_0x212582[_0x6fd025(0x350)]),_0x580dc9>0x7d)throw new RangeError(_0x6fd025(0x1ba));const _0x1182dd={[_0x2032fa]:_0x580dc9,'fin':!0x0,'generateMask':this[_0x6fd025(0x28d)],'mask':_0x294644,'maskBuffer':this[_0x6fd025(0x1ed)],'opcode':0xa,'readOnly':_0x328c91,'rsv1':!0x1};_0x2c1fdc(_0x22af57)?this['_state']!==_0x53f3c1?this['enqueue']([this[_0x6fd025(0x201)],_0x22af57,!0x1,_0x1182dd,_0x2c37bd]):this[_0x6fd025(0x201)](_0x22af57,!0x1,_0x1182dd,_0x2c37bd):this[_0x6fd025(0x22c)]!==_0x53f3c1?this[_0x6fd025(0x1b5)]([this[_0x6fd025(0x244)],_0x22af57,!0x1,_0x1182dd,_0x2c37bd]):this[_0x6fd025(0x2fb)](_0x1e07da[_0x6fd025(0x276)](_0x22af57,_0x1182dd),_0x2c37bd);}['send'](_0x3b5ba8,_0x2a84ee,_0x247d7){const _0xb3b2cd=_0x312fb4,_0x5b8bfe=this[_0xb3b2cd(0x329)][_0x5342d8[_0xb3b2cd(0x1d7)]];let _0x5e97e4=_0x2a84ee[_0xb3b2cd(0x1e5)]?0x2:0x1,_0x622876=_0x2a84ee[_0xb3b2cd(0x252)],_0x349774,_0x44aba4;typeof _0x3b5ba8=='string'?(_0x349774=Buffer[_0xb3b2cd(0x221)](_0x3b5ba8),_0x44aba4=!0x1):_0x2c1fdc(_0x3b5ba8)?(_0x349774=_0x3b5ba8['size'],_0x44aba4=!0x1):(_0x3b5ba8=_0x212582(_0x3b5ba8),_0x349774=_0x3b5ba8[_0xb3b2cd(0x2d2)],_0x44aba4=_0x212582[_0xb3b2cd(0x350)]),this[_0xb3b2cd(0x2f7)]?(this[_0xb3b2cd(0x2f7)]=!0x1,_0x622876&&_0x5b8bfe&&_0x5b8bfe[_0xb3b2cd(0x21f)][_0x5b8bfe[_0xb3b2cd(0x30f)]?'server_no_context_takeover':'client_no_context_takeover']&&(_0x622876=_0x349774>=_0x5b8bfe[_0xb3b2cd(0x34f)]),this[_0xb3b2cd(0x2dd)]=_0x622876):(_0x622876=!0x1,_0x5e97e4=0x0),_0x2a84ee['fin']&&(this[_0xb3b2cd(0x2f7)]=!0x0);const _0x3074ae={[_0x2032fa]:_0x349774,'fin':_0x2a84ee[_0xb3b2cd(0x2dc)],'generateMask':this['_generateMask'],'mask':_0x2a84ee[_0xb3b2cd(0x2f2)],'maskBuffer':this[_0xb3b2cd(0x1ed)],'opcode':_0x5e97e4,'readOnly':_0x44aba4,'rsv1':_0x622876};_0x2c1fdc(_0x3b5ba8)?this['_state']!==_0x53f3c1?this[_0xb3b2cd(0x1b5)]([this[_0xb3b2cd(0x201)],_0x3b5ba8,this[_0xb3b2cd(0x2dd)],_0x3074ae,_0x247d7]):this[_0xb3b2cd(0x201)](_0x3b5ba8,this[_0xb3b2cd(0x2dd)],_0x3074ae,_0x247d7):this[_0xb3b2cd(0x22c)]!==_0x53f3c1?this[_0xb3b2cd(0x1b5)]([this[_0xb3b2cd(0x244)],_0x3b5ba8,this['_compress'],_0x3074ae,_0x247d7]):this[_0xb3b2cd(0x244)](_0x3b5ba8,this[_0xb3b2cd(0x2dd)],_0x3074ae,_0x247d7);}[_0x312fb4(0x201)](_0x34a8d3,_0x11b002,_0xd0df71,_0x57fd68){const _0x2853a3=_0x312fb4;this[_0x2853a3(0x1b9)]+=_0xd0df71[_0x2032fa],this[_0x2853a3(0x22c)]=_0x2e416c,_0x34a8d3[_0x2853a3(0x20b)]()[_0x2853a3(0x2f8)](_0x3b0846=>{const _0x30919d=_0x2853a3;if(this[_0x30919d(0x33a)][_0x30919d(0x327)]){const _0xbaa823=new Error(_0x30919d(0x27d));process['nextTick'](_0x3f0fd0,this,_0xbaa823,_0x57fd68);return;}this[_0x30919d(0x1b9)]-=_0xd0df71[_0x2032fa];const _0x233791=_0x212582(_0x3b0846);_0x11b002?this[_0x30919d(0x244)](_0x233791,_0x11b002,_0xd0df71,_0x57fd68):(this['_state']=_0x53f3c1,this['sendFrame'](_0x1e07da[_0x30919d(0x276)](_0x233791,_0xd0df71),_0x57fd68),this[_0x30919d(0x279)]());})[_0x2853a3(0x24a)](_0x2e2190=>{const _0x514266=_0x2853a3;process[_0x514266(0x345)](_0xa1ad3,this,_0x2e2190,_0x57fd68);});}['dispatch'](_0x3b5557,_0x37d1c1,_0x1079a3,_0x4bc1ca){const _0x2e17d1=_0x312fb4;if(!_0x37d1c1){this[_0x2e17d1(0x2fb)](_0x1e07da[_0x2e17d1(0x276)](_0x3b5557,_0x1079a3),_0x4bc1ca);return;}const _0x14e4b6=this[_0x2e17d1(0x329)][_0x5342d8[_0x2e17d1(0x1d7)]];this[_0x2e17d1(0x1b9)]+=_0x1079a3[_0x2032fa],this[_0x2e17d1(0x22c)]=_0x2e62f6,_0x14e4b6[_0x2e17d1(0x252)](_0x3b5557,_0x1079a3['fin'],(_0x190006,_0x311cca)=>{const _0x5d123f=_0x2e17d1;if(this[_0x5d123f(0x33a)][_0x5d123f(0x327)]){const _0x290d88=new Error('The\x20socket\x20was\x20closed\x20while\x20data\x20was\x20being\x20compressed');_0x3f0fd0(this,_0x290d88,_0x4bc1ca);return;}this[_0x5d123f(0x1b9)]-=_0x1079a3[_0x2032fa],this[_0x5d123f(0x22c)]=_0x53f3c1,_0x1079a3[_0x5d123f(0x350)]=!0x1,this[_0x5d123f(0x2fb)](_0x1e07da[_0x5d123f(0x276)](_0x311cca,_0x1079a3),_0x4bc1ca),this[_0x5d123f(0x279)]();});}[_0x312fb4(0x279)](){const _0x3d50a3=_0x312fb4;for(;this[_0x3d50a3(0x22c)]===_0x53f3c1&&this['_queue'][_0x3d50a3(0x2d2)];){const _0x2f2c43=this[_0x3d50a3(0x1f5)]['shift']();this[_0x3d50a3(0x1b9)]-=_0x2f2c43[0x3][_0x2032fa],Reflect['apply'](_0x2f2c43[0x0],this,_0x2f2c43[_0x3d50a3(0x209)](0x1));}}['enqueue'](_0x882ce4){const _0x34c40d=_0x312fb4;this[_0x34c40d(0x1b9)]+=_0x882ce4[0x3][_0x2032fa],this['_queue']['push'](_0x882ce4);}['sendFrame'](_0x3ec40c,_0x52650b){const _0x131bd0=_0x312fb4;_0x3ec40c[_0x131bd0(0x2d2)]===0x2?(this[_0x131bd0(0x33a)][_0x131bd0(0x1af)](),this[_0x131bd0(0x33a)][_0x131bd0(0x29c)](_0x3ec40c[0x0]),this[_0x131bd0(0x33a)]['write'](_0x3ec40c[0x1],_0x52650b),this[_0x131bd0(0x33a)][_0x131bd0(0x230)]()):this['_socket'][_0x131bd0(0x29c)](_0x3ec40c[0x0],_0x52650b);}}Ee=_0x1e07da;function _0x3f0fd0(_0x3ca4e1,_0x13a99d,_0x29252f){const _0x4e6eb3=_0x312fb4;typeof _0x29252f==_0x4e6eb3(0x1e2)&&_0x29252f(_0x13a99d);for(let _0x135242=0x0;_0x135242<_0x3ca4e1['_queue']['length'];_0x135242++){const _0x3d6e06=_0x3ca4e1[_0x4e6eb3(0x1f5)][_0x135242],_0x308ae4=_0x3d6e06[_0x3d6e06[_0x4e6eb3(0x2d2)]-0x1];typeof _0x308ae4==_0x4e6eb3(0x1e2)&&_0x308ae4(_0x13a99d);}}function _0xa1ad3(_0x3ceb86,_0x3e65ed,_0x973e7a){_0x3f0fd0(_0x3ceb86,_0x3e65ed,_0x973e7a),_0x3ceb86['onerror'](_0x3e65ed);}return Ee;}var xe,tt;function Kt(){const _0x5b4717=_0x575908;if(tt)return xe;tt=0x1;const {kForOnEventAttribute:_0x4d0d8d,kListener:_0x3b8c9a}=V(),_0x15cf91=Symbol(_0x5b4717(0x1d6)),_0xbdc04d=Symbol(_0x5b4717(0x2be)),_0x528532=Symbol(_0x5b4717(0x346)),_0x448b3b=Symbol('kMessage'),_0x4f20df=Symbol('kReason'),_0xd7749e=Symbol(_0x5b4717(0x30b)),_0xb59c0a=Symbol(_0x5b4717(0x2fd)),_0x3c31b7=Symbol(_0x5b4717(0x227));class _0x3601ba{constructor(_0x28d41c){this[_0xd7749e]=null,this[_0xb59c0a]=_0x28d41c;}get[_0x5b4717(0x216)](){return this[_0xd7749e];}get[_0x5b4717(0x336)](){return this[_0xb59c0a];}}Object[_0x5b4717(0x28e)](_0x3601ba[_0x5b4717(0x31a)],_0x5b4717(0x216),{'enumerable':!0x0}),Object[_0x5b4717(0x28e)](_0x3601ba['prototype'],_0x5b4717(0x336),{'enumerable':!0x0});class _0x19ffe3 extends _0x3601ba{constructor(_0x2c1f5d,_0x181373={}){const _0x19add6=_0x5b4717;super(_0x2c1f5d),this[_0x15cf91]=_0x181373[_0x19add6(0x291)]===void 0x0?0x0:_0x181373[_0x19add6(0x291)],this[_0x4f20df]=_0x181373['reason']===void 0x0?'':_0x181373[_0x19add6(0x314)],this[_0x3c31b7]=_0x181373[_0x19add6(0x2bd)]===void 0x0?!0x1:_0x181373[_0x19add6(0x2bd)];}get[_0x5b4717(0x291)](){return this[_0x15cf91];}get[_0x5b4717(0x314)](){return this[_0x4f20df];}get['wasClean'](){return this[_0x3c31b7];}}Object[_0x5b4717(0x28e)](_0x19ffe3[_0x5b4717(0x31a)],_0x5b4717(0x291),{'enumerable':!0x0}),Object[_0x5b4717(0x28e)](_0x19ffe3[_0x5b4717(0x31a)],_0x5b4717(0x314),{'enumerable':!0x0}),Object['defineProperty'](_0x19ffe3[_0x5b4717(0x31a)],_0x5b4717(0x2bd),{'enumerable':!0x0});class _0x5f3adf extends _0x3601ba{constructor(_0x1b910d,_0x1f0917={}){const _0x56cce9=_0x5b4717;super(_0x1b910d),this[_0x528532]=_0x1f0917[_0x56cce9(0x20c)]===void 0x0?null:_0x1f0917['error'],this[_0x448b3b]=_0x1f0917[_0x56cce9(0x268)]===void 0x0?'':_0x1f0917[_0x56cce9(0x268)];}get[_0x5b4717(0x20c)](){return this[_0x528532];}get[_0x5b4717(0x268)](){return this[_0x448b3b];}}Object[_0x5b4717(0x28e)](_0x5f3adf[_0x5b4717(0x31a)],_0x5b4717(0x20c),{'enumerable':!0x0}),Object[_0x5b4717(0x28e)](_0x5f3adf[_0x5b4717(0x31a)],_0x5b4717(0x268),{'enumerable':!0x0});class _0x50d0cc extends _0x3601ba{constructor(_0x159112,_0x557eee={}){const _0xb1c77f=_0x5b4717;super(_0x159112),this[_0xbdc04d]=_0x557eee[_0xb1c77f(0x267)]===void 0x0?null:_0x557eee[_0xb1c77f(0x267)];}get[_0x5b4717(0x267)](){return this[_0xbdc04d];}}Object[_0x5b4717(0x28e)](_0x50d0cc[_0x5b4717(0x31a)],'data',{'enumerable':!0x0}),xe={'CloseEvent':_0x19ffe3,'ErrorEvent':_0x5f3adf,'Event':_0x3601ba,'EventTarget':{'addEventListener'(_0x18ba79,_0x18626e,_0x4eaba7={}){const _0x516da6=_0x5b4717;for(const _0x590614 of this[_0x516da6(0x2a3)](_0x18ba79))if(!_0x4eaba7[_0x4d0d8d]&&_0x590614[_0x3b8c9a]===_0x18626e&&!_0x590614[_0x4d0d8d])return;let _0x2b3667;if(_0x18ba79==='message')_0x2b3667=function(_0x28e838,_0xbb4717){const _0x37e901=_0x516da6,_0x9e1917=new _0x50d0cc(_0x37e901(0x268),{'data':_0xbb4717?_0x28e838:_0x28e838[_0x37e901(0x2ad)]()});_0x9e1917[_0xd7749e]=this,_0x6a8de7(_0x18626e,this,_0x9e1917);};else{if(_0x18ba79===_0x516da6(0x1f1))_0x2b3667=function(_0x364b05,_0x405cac){const _0x52a1e2=_0x516da6,_0x380c03=new _0x19ffe3(_0x52a1e2(0x1f1),{'code':_0x364b05,'reason':_0x405cac['toString'](),'wasClean':this[_0x52a1e2(0x29a)]&&this[_0x52a1e2(0x2a5)]});_0x380c03[_0xd7749e]=this,_0x6a8de7(_0x18626e,this,_0x380c03);};else{if(_0x18ba79===_0x516da6(0x20c))_0x2b3667=function(_0x583684){const _0xed58b0=_0x516da6,_0x55341d=new _0x5f3adf(_0xed58b0(0x20c),{'error':_0x583684,'message':_0x583684[_0xed58b0(0x268)]});_0x55341d[_0xd7749e]=this,_0x6a8de7(_0x18626e,this,_0x55341d);};else{if(_0x18ba79==='open')_0x2b3667=function(){const _0x481da3=new _0x3601ba('open');_0x481da3[_0xd7749e]=this,_0x6a8de7(_0x18626e,this,_0x481da3);};else return;}}}_0x2b3667[_0x4d0d8d]=!!_0x4eaba7[_0x4d0d8d],_0x2b3667[_0x3b8c9a]=_0x18626e,_0x4eaba7[_0x516da6(0x2d3)]?this[_0x516da6(0x2d3)](_0x18ba79,_0x2b3667):this['on'](_0x18ba79,_0x2b3667);},'removeEventListener'(_0xd73ac3,_0x10736a){const _0x43da0a=_0x5b4717;for(const _0x2856a6 of this[_0x43da0a(0x2a3)](_0xd73ac3))if(_0x2856a6[_0x3b8c9a]===_0x10736a&&!_0x2856a6[_0x4d0d8d]){this[_0x43da0a(0x2ba)](_0xd73ac3,_0x2856a6);break;}}},'MessageEvent':_0x50d0cc};function _0x6a8de7(_0x50f401,_0x40727d,_0x353de3){const _0x262ee7=_0x5b4717;typeof _0x50f401=='object'&&_0x50f401['handleEvent']?_0x50f401[_0x262ee7(0x251)][_0x262ee7(0x2f5)](_0x50f401,_0x353de3):_0x50f401['call'](_0x40727d,_0x353de3);}return xe;}var be,rt;function pt(){if(rt)return be;rt=0x1;const {tokenChars:_0x56551d}=ne();function _0x4089ce(_0x5e92a1,_0x5611c8,_0x40071d){_0x5e92a1[_0x5611c8]===void 0x0?_0x5e92a1[_0x5611c8]=[_0x40071d]:_0x5e92a1[_0x5611c8]['push'](_0x40071d);}function _0x2aeb73(_0x416836){const _0x4034c4=_0x395c,_0x4310de=Object[_0x4034c4(0x34e)](null);let _0x170a6b=Object[_0x4034c4(0x34e)](null),_0x159f3f=!0x1,_0x7f1cd8=!0x1,_0x10ee6d=!0x1,_0x19833e,_0x3dac4f,_0x180cf6=-0x1,_0x798694=-0x1,_0x3a3e51=-0x1,_0x13c0a9=0x0;for(;_0x13c0a9<_0x416836[_0x4034c4(0x2d2)];_0x13c0a9++)if(_0x798694=_0x416836[_0x4034c4(0x324)](_0x13c0a9),_0x19833e===void 0x0){if(_0x3a3e51===-0x1&&_0x56551d[_0x798694]===0x1)_0x180cf6===-0x1&&(_0x180cf6=_0x13c0a9);else{if(_0x13c0a9!==0x0&&(_0x798694===0x20||_0x798694===0x9))_0x3a3e51===-0x1&&_0x180cf6!==-0x1&&(_0x3a3e51=_0x13c0a9);else{if(_0x798694===0x3b||_0x798694===0x2c){if(_0x180cf6===-0x1)throw new SyntaxError(_0x4034c4(0x1f4)+_0x13c0a9);_0x3a3e51===-0x1&&(_0x3a3e51=_0x13c0a9);const _0x15848d=_0x416836[_0x4034c4(0x209)](_0x180cf6,_0x3a3e51);_0x798694===0x2c?(_0x4089ce(_0x4310de,_0x15848d,_0x170a6b),_0x170a6b=Object[_0x4034c4(0x34e)](null)):_0x19833e=_0x15848d,_0x180cf6=_0x3a3e51=-0x1;}else throw new SyntaxError(_0x4034c4(0x1f4)+_0x13c0a9);}}}else{if(_0x3dac4f===void 0x0){if(_0x3a3e51===-0x1&&_0x56551d[_0x798694]===0x1)_0x180cf6===-0x1&&(_0x180cf6=_0x13c0a9);else{if(_0x798694===0x20||_0x798694===0x9)_0x3a3e51===-0x1&&_0x180cf6!==-0x1&&(_0x3a3e51=_0x13c0a9);else{if(_0x798694===0x3b||_0x798694===0x2c){if(_0x180cf6===-0x1)throw new SyntaxError(_0x4034c4(0x1f4)+_0x13c0a9);_0x3a3e51===-0x1&&(_0x3a3e51=_0x13c0a9),_0x4089ce(_0x170a6b,_0x416836[_0x4034c4(0x209)](_0x180cf6,_0x3a3e51),!0x0),_0x798694===0x2c&&(_0x4089ce(_0x4310de,_0x19833e,_0x170a6b),_0x170a6b=Object[_0x4034c4(0x34e)](null),_0x19833e=void 0x0),_0x180cf6=_0x3a3e51=-0x1;}else{if(_0x798694===0x3d&&_0x180cf6!==-0x1&&_0x3a3e51===-0x1)_0x3dac4f=_0x416836[_0x4034c4(0x209)](_0x180cf6,_0x13c0a9),_0x180cf6=_0x3a3e51=-0x1;else throw new SyntaxError(_0x4034c4(0x1f4)+_0x13c0a9);}}}}else{if(_0x7f1cd8){if(_0x56551d[_0x798694]!==0x1)throw new SyntaxError('Unexpected\x20character\x20at\x20index\x20'+_0x13c0a9);_0x180cf6===-0x1?_0x180cf6=_0x13c0a9:_0x159f3f||(_0x159f3f=!0x0),_0x7f1cd8=!0x1;}else{if(_0x10ee6d){if(_0x56551d[_0x798694]===0x1)_0x180cf6===-0x1&&(_0x180cf6=_0x13c0a9);else{if(_0x798694===0x22&&_0x180cf6!==-0x1)_0x10ee6d=!0x1,_0x3a3e51=_0x13c0a9;else{if(_0x798694===0x5c)_0x7f1cd8=!0x0;else throw new SyntaxError(_0x4034c4(0x1f4)+_0x13c0a9);}}}else{if(_0x798694===0x22&&_0x416836[_0x4034c4(0x324)](_0x13c0a9-0x1)===0x3d)_0x10ee6d=!0x0;else{if(_0x3a3e51===-0x1&&_0x56551d[_0x798694]===0x1)_0x180cf6===-0x1&&(_0x180cf6=_0x13c0a9);else{if(_0x180cf6!==-0x1&&(_0x798694===0x20||_0x798694===0x9))_0x3a3e51===-0x1&&(_0x3a3e51=_0x13c0a9);else{if(_0x798694===0x3b||_0x798694===0x2c){if(_0x180cf6===-0x1)throw new SyntaxError('Unexpected\x20character\x20at\x20index\x20'+_0x13c0a9);_0x3a3e51===-0x1&&(_0x3a3e51=_0x13c0a9);let _0xbe722e=_0x416836[_0x4034c4(0x209)](_0x180cf6,_0x3a3e51);_0x159f3f&&(_0xbe722e=_0xbe722e[_0x4034c4(0x313)](/\\/g,''),_0x159f3f=!0x1),_0x4089ce(_0x170a6b,_0x3dac4f,_0xbe722e),_0x798694===0x2c&&(_0x4089ce(_0x4310de,_0x19833e,_0x170a6b),_0x170a6b=Object[_0x4034c4(0x34e)](null),_0x19833e=void 0x0),_0x3dac4f=void 0x0,_0x180cf6=_0x3a3e51=-0x1;}else throw new SyntaxError(_0x4034c4(0x1f4)+_0x13c0a9);}}}}}}}if(_0x180cf6===-0x1||_0x10ee6d||_0x798694===0x20||_0x798694===0x9)throw new SyntaxError('Unexpected\x20end\x20of\x20input');_0x3a3e51===-0x1&&(_0x3a3e51=_0x13c0a9);const _0x5782e0=_0x416836['slice'](_0x180cf6,_0x3a3e51);return _0x19833e===void 0x0?_0x4089ce(_0x4310de,_0x5782e0,_0x170a6b):(_0x3dac4f===void 0x0?_0x4089ce(_0x170a6b,_0x5782e0,!0x0):_0x159f3f?_0x4089ce(_0x170a6b,_0x3dac4f,_0x5782e0[_0x4034c4(0x313)](/\\/g,'')):_0x4089ce(_0x170a6b,_0x3dac4f,_0x5782e0),_0x4089ce(_0x4310de,_0x19833e,_0x170a6b)),_0x4310de;}function _0x4c7e67(_0x572a33){const _0x414796=_0x395c;return Object['keys'](_0x572a33)['map'](_0x2e2e64=>{const _0x2bf15e=_0x395c;let _0x16f6aa=_0x572a33[_0x2e2e64];return Array['isArray'](_0x16f6aa)||(_0x16f6aa=[_0x16f6aa]),_0x16f6aa[_0x2bf15e(0x21b)](_0x5dd89c=>[_0x2e2e64]['concat'](Object[_0x2bf15e(0x352)](_0x5dd89c)[_0x2bf15e(0x21b)](_0x377478=>{const _0x5d7106=_0x2bf15e;let _0x2dbe77=_0x5dd89c[_0x377478];return Array[_0x5d7106(0x31c)](_0x2dbe77)||(_0x2dbe77=[_0x2dbe77]),_0x2dbe77[_0x5d7106(0x21b)](_0x589c44=>_0x589c44===!0x0?_0x377478:_0x377478+'='+_0x589c44)[_0x5d7106(0x1fc)](';\x20');}))[_0x2bf15e(0x1fc)](';\x20'))[_0x2bf15e(0x1fc)](',\x20');})[_0x414796(0x1fc)](',\x20');}return be={'format':_0x4c7e67,'parse':_0x2aeb73},be;}var we,st;function Ie(){const _0x33cda5=_0x575908;if(st)return we;st=0x1;const _0x24bb6d=_0x19fb3e,_0x2c2ad8=_0x4d341d,_0x2a6638=_0x4cb172,_0x337230=_0x469257,_0x2eaf6c=_0x2f4299,{randomBytes:_0x9c8a98,createHash:_0x40daef}=_0x20476a,{Duplex:_0x283217,Readable:_0x36f40e}=_0x2a4194,{URL:_0x45d3c8}=_0x5f5ac4,_0x233e25=he(),_0x557518=dt(),_0x4b1884=_t(),{isBlob:_0x18ca81}=ne(),{BINARY_TYPES:_0x2f87fb,EMPTY_BUFFER:_0x55a618,GUID:_0x465165,kForOnEventAttribute:_0x4f92ce,kListener:_0x496531,kStatusCode:_0x17718e,kWebSocket:_0x3d26c9,NOOP:_0x11ce0e}=V(),{EventTarget:{addEventListener:_0x5447aa,removeEventListener:_0x2429b}}=Kt(),{format:_0x446e8b,parse:_0x5ed30e}=pt(),{toBuffer:_0x4cf8a5}=ce(),_0x2e7626=0x1e*0x3e8,_0x10d577=Symbol(_0x33cda5(0x1f2)),_0x58d09a=[0x8,0xd],_0x428a57=[_0x33cda5(0x1e4),'OPEN',_0x33cda5(0x278),_0x33cda5(0x312)],_0x4c4336=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class _0xed4840 extends _0x24bb6d{constructor(_0x5b9497,_0x41ee97,_0x21a5e9){const _0x674942=_0x33cda5;super(),this[_0x674942(0x2ca)]=_0x2f87fb[0x0],this[_0x674942(0x30e)]=0x3ee,this['_closeFrameReceived']=!0x1,this[_0x674942(0x2a5)]=!0x1,this[_0x674942(0x282)]=_0x55a618,this[_0x674942(0x306)]=null,this[_0x674942(0x33e)]=!0x1,this[_0x674942(0x329)]={},this[_0x674942(0x23b)]=!0x1,this[_0x674942(0x239)]='',this[_0x674942(0x2c4)]=_0xed4840[_0x674942(0x1e4)],this[_0x674942(0x1cd)]=null,this['_sender']=null,this['_socket']=null,_0x5b9497!==null?(this[_0x674942(0x235)]=0x0,this['_isServer']=!0x1,this[_0x674942(0x23d)]=0x0,_0x41ee97===void 0x0?_0x41ee97=[]:Array[_0x674942(0x31c)](_0x41ee97)||(typeof _0x41ee97==_0x674942(0x246)&&_0x41ee97!==null?(_0x21a5e9=_0x41ee97,_0x41ee97=[]):_0x41ee97=[_0x41ee97]),_0xea04fc(this,_0x5b9497,_0x41ee97,_0x21a5e9)):(this['_autoPong']=_0x21a5e9[_0x674942(0x307)],this['_isServer']=!0x0);}get['binaryType'](){const _0x117413=_0x33cda5;return this[_0x117413(0x2ca)];}set[_0x33cda5(0x2de)](_0x52e369){const _0x1924e4=_0x33cda5;_0x2f87fb[_0x1924e4(0x295)](_0x52e369)&&(this['_binaryType']=_0x52e369,this[_0x1924e4(0x1cd)]&&(this[_0x1924e4(0x1cd)][_0x1924e4(0x2ca)]=_0x52e369));}get['bufferedAmount'](){const _0x24ccc9=_0x33cda5;return this[_0x24ccc9(0x33a)]?this['_socket']['_writableState'][_0x24ccc9(0x2d2)]+this['_sender']['_bufferedBytes']:this[_0x24ccc9(0x235)];}get[_0x33cda5(0x204)](){const _0x4e3911=_0x33cda5;return Object[_0x4e3911(0x352)](this[_0x4e3911(0x329)])[_0x4e3911(0x1fc)]();}get[_0x33cda5(0x1bc)](){const _0x2bc49f=_0x33cda5;return this[_0x2bc49f(0x23b)];}get['onclose'](){return null;}get['onerror'](){return null;}get[_0x33cda5(0x332)](){return null;}get['onmessage'](){return null;}get[_0x33cda5(0x248)](){const _0x4c877a=_0x33cda5;return this[_0x4c877a(0x239)];}get[_0x33cda5(0x2e0)](){const _0x1a3018=_0x33cda5;return this[_0x1a3018(0x2c4)];}get['url'](){const _0x5382e7=_0x33cda5;return this[_0x5382e7(0x2e2)];}[_0x33cda5(0x218)](_0x52a046,_0x128378,_0x1352ed){const _0x1a5057=_0x33cda5,_0x48c256=new _0x557518({'allowSynchronousEvents':_0x1352ed[_0x1a5057(0x25e)],'binaryType':this[_0x1a5057(0x2de)],'extensions':this[_0x1a5057(0x329)],'isServer':this['_isServer'],'maxPayload':_0x1352ed[_0x1a5057(0x317)],'skipUTF8Validation':_0x1352ed[_0x1a5057(0x32c)]}),_0x2b199e=new _0x4b1884(_0x52a046,this[_0x1a5057(0x329)],_0x1352ed[_0x1a5057(0x2a8)]);this['_receiver']=_0x48c256,this[_0x1a5057(0x322)]=_0x2b199e,this[_0x1a5057(0x33a)]=_0x52a046,_0x48c256[_0x3d26c9]=this,_0x2b199e[_0x3d26c9]=this,_0x52a046[_0x3d26c9]=this,_0x48c256['on'](_0x1a5057(0x255),_0x2bdde6),_0x48c256['on'](_0x1a5057(0x283),_0x341c64),_0x48c256['on'](_0x1a5057(0x20c),_0x56c978),_0x48c256['on']('message',_0x3a32f7),_0x48c256['on'](_0x1a5057(0x241),_0x56130b),_0x48c256['on'](_0x1a5057(0x1c5),_0x9cda48),_0x2b199e[_0x1a5057(0x2aa)]=_0x8866e,_0x52a046[_0x1a5057(0x222)]&&_0x52a046['setTimeout'](0x0),_0x52a046[_0x1a5057(0x344)]&&_0x52a046[_0x1a5057(0x344)](),_0x128378[_0x1a5057(0x2d2)]>0x0&&_0x52a046[_0x1a5057(0x25a)](_0x128378),_0x52a046['on'](_0x1a5057(0x1f1),_0x438a01),_0x52a046['on'](_0x1a5057(0x267),_0x977f6d),_0x52a046['on'](_0x1a5057(0x1f0),_0x5d3a83),_0x52a046['on'](_0x1a5057(0x20c),_0x4c93d2),this[_0x1a5057(0x2c4)]=_0xed4840[_0x1a5057(0x1da)],this['emit'](_0x1a5057(0x298));}['emitClose'](){const _0x57054e=_0x33cda5;if(!this['_socket']){this[_0x57054e(0x2c4)]=_0xed4840['CLOSED'],this[_0x57054e(0x1b0)](_0x57054e(0x1f1),this[_0x57054e(0x30e)],this[_0x57054e(0x282)]);return;}this[_0x57054e(0x329)][_0x233e25[_0x57054e(0x1d7)]]&&this[_0x57054e(0x329)][_0x233e25[_0x57054e(0x1d7)]][_0x57054e(0x1c9)](),this[_0x57054e(0x1cd)]['removeAllListeners'](),this[_0x57054e(0x2c4)]=_0xed4840['CLOSED'],this['emit']('close',this[_0x57054e(0x30e)],this[_0x57054e(0x282)]);}[_0x33cda5(0x1f1)](_0x98699a,_0x2a21ab){const _0x5ab495=_0x33cda5;if(this[_0x5ab495(0x2e0)]!==_0xed4840['CLOSED']){if(this['readyState']===_0xed4840[_0x5ab495(0x1e4)]){_0x5778d2(this,this['_req'],_0x5ab495(0x220));return;}if(this[_0x5ab495(0x2e0)]===_0xed4840[_0x5ab495(0x278)]){this[_0x5ab495(0x2a5)]&&(this['_closeFrameReceived']||this[_0x5ab495(0x1cd)][_0x5ab495(0x24b)]['errorEmitted'])&&this[_0x5ab495(0x33a)][_0x5ab495(0x1f0)]();return;}this[_0x5ab495(0x2c4)]=_0xed4840[_0x5ab495(0x278)],this[_0x5ab495(0x322)][_0x5ab495(0x1f1)](_0x98699a,_0x2a21ab,!this[_0x5ab495(0x30f)],_0xf69311=>{const _0x518e7a=_0x5ab495;_0xf69311||(this[_0x518e7a(0x2a5)]=!0x0,(this[_0x518e7a(0x29a)]||this[_0x518e7a(0x1cd)][_0x518e7a(0x24b)][_0x518e7a(0x243)])&&this[_0x518e7a(0x33a)][_0x518e7a(0x1f0)]());}),_0x119526(this);}}[_0x33cda5(0x2ed)](){const _0x23181f=_0x33cda5;this[_0x23181f(0x2e0)]===_0xed4840['CONNECTING']||this[_0x23181f(0x2e0)]===_0xed4840[_0x23181f(0x312)]||(this[_0x23181f(0x23b)]=!0x0,this['_socket'][_0x23181f(0x2ed)]());}[_0x33cda5(0x241)](_0x27aca0,_0x62382,_0x212d99){const _0x124d13=_0x33cda5;if(this['readyState']===_0xed4840[_0x124d13(0x1e4)])throw new Error(_0x124d13(0x337));if(typeof _0x27aca0==_0x124d13(0x1e2)?(_0x212d99=_0x27aca0,_0x27aca0=_0x62382=void 0x0):typeof _0x62382==_0x124d13(0x1e2)&&(_0x212d99=_0x62382,_0x62382=void 0x0),typeof _0x27aca0==_0x124d13(0x245)&&(_0x27aca0=_0x27aca0[_0x124d13(0x2ad)]()),this[_0x124d13(0x2e0)]!==_0xed4840[_0x124d13(0x1da)]){_0x1083d3(this,_0x27aca0,_0x212d99);return;}_0x62382===void 0x0&&(_0x62382=!this[_0x124d13(0x30f)]),this[_0x124d13(0x322)][_0x124d13(0x241)](_0x27aca0||_0x55a618,_0x62382,_0x212d99);}[_0x33cda5(0x1c5)](_0x1412d7,_0x472f28,_0x1d8354){const _0x4928fb=_0x33cda5;if(this[_0x4928fb(0x2e0)]===_0xed4840['CONNECTING'])throw new Error(_0x4928fb(0x337));if(typeof _0x1412d7==_0x4928fb(0x1e2)?(_0x1d8354=_0x1412d7,_0x1412d7=_0x472f28=void 0x0):typeof _0x472f28=='function'&&(_0x1d8354=_0x472f28,_0x472f28=void 0x0),typeof _0x1412d7==_0x4928fb(0x245)&&(_0x1412d7=_0x1412d7[_0x4928fb(0x2ad)]()),this[_0x4928fb(0x2e0)]!==_0xed4840[_0x4928fb(0x1da)]){_0x1083d3(this,_0x1412d7,_0x1d8354);return;}_0x472f28===void 0x0&&(_0x472f28=!this[_0x4928fb(0x30f)]),this['_sender']['pong'](_0x1412d7||_0x55a618,_0x472f28,_0x1d8354);}[_0x33cda5(0x261)](){const _0x541fba=_0x33cda5;this[_0x541fba(0x2e0)]===_0xed4840['CONNECTING']||this[_0x541fba(0x2e0)]===_0xed4840['CLOSED']||(this[_0x541fba(0x23b)]=!0x1,this['_receiver'][_0x541fba(0x24b)][_0x541fba(0x2d8)]||this[_0x541fba(0x33a)][_0x541fba(0x261)]());}[_0x33cda5(0x292)](_0x3e09b4,_0x34a832,_0x3d7e8){const _0x26cda5=_0x33cda5;if(this[_0x26cda5(0x2e0)]===_0xed4840[_0x26cda5(0x1e4)])throw new Error(_0x26cda5(0x337));if(typeof _0x34a832==_0x26cda5(0x1e2)&&(_0x3d7e8=_0x34a832,_0x34a832={}),typeof _0x3e09b4=='number'&&(_0x3e09b4=_0x3e09b4[_0x26cda5(0x2ad)]()),this[_0x26cda5(0x2e0)]!==_0xed4840[_0x26cda5(0x1da)]){_0x1083d3(this,_0x3e09b4,_0x3d7e8);return;}const _0x579af9={'binary':typeof _0x3e09b4!=_0x26cda5(0x272),'mask':!this['_isServer'],'compress':!0x0,'fin':!0x0,..._0x34a832};this[_0x26cda5(0x329)][_0x233e25[_0x26cda5(0x1d7)]]||(_0x579af9[_0x26cda5(0x252)]=!0x1),this[_0x26cda5(0x322)]['send'](_0x3e09b4||_0x55a618,_0x579af9,_0x3d7e8);}[_0x33cda5(0x319)](){const _0xd37326=_0x33cda5;if(this['readyState']!==_0xed4840[_0xd37326(0x312)]){if(this[_0xd37326(0x2e0)]===_0xed4840['CONNECTING']){_0x5778d2(this,this['_req'],_0xd37326(0x220));return;}this[_0xd37326(0x33a)]&&(this[_0xd37326(0x2c4)]=_0xed4840[_0xd37326(0x278)],this[_0xd37326(0x33a)]['destroy']());}}}Object[_0x33cda5(0x28e)](_0xed4840,_0x33cda5(0x1e4),{'enumerable':!0x0,'value':_0x428a57['indexOf'](_0x33cda5(0x1e4))}),Object[_0x33cda5(0x28e)](_0xed4840['prototype'],_0x33cda5(0x1e4),{'enumerable':!0x0,'value':_0x428a57[_0x33cda5(0x343)](_0x33cda5(0x1e4))}),Object[_0x33cda5(0x28e)](_0xed4840,'OPEN',{'enumerable':!0x0,'value':_0x428a57[_0x33cda5(0x343)]('OPEN')}),Object[_0x33cda5(0x28e)](_0xed4840[_0x33cda5(0x31a)],_0x33cda5(0x1da),{'enumerable':!0x0,'value':_0x428a57[_0x33cda5(0x343)](_0x33cda5(0x1da))}),Object['defineProperty'](_0xed4840,'CLOSING',{'enumerable':!0x0,'value':_0x428a57[_0x33cda5(0x343)](_0x33cda5(0x278))}),Object[_0x33cda5(0x28e)](_0xed4840[_0x33cda5(0x31a)],'CLOSING',{'enumerable':!0x0,'value':_0x428a57[_0x33cda5(0x343)](_0x33cda5(0x278))}),Object[_0x33cda5(0x28e)](_0xed4840,_0x33cda5(0x312),{'enumerable':!0x0,'value':_0x428a57[_0x33cda5(0x343)](_0x33cda5(0x312))}),Object[_0x33cda5(0x28e)](_0xed4840[_0x33cda5(0x31a)],_0x33cda5(0x312),{'enumerable':!0x0,'value':_0x428a57[_0x33cda5(0x343)](_0x33cda5(0x312))}),[_0x33cda5(0x2de),_0x33cda5(0x206),_0x33cda5(0x204),_0x33cda5(0x1bc),_0x33cda5(0x248),_0x33cda5(0x2e0),_0x33cda5(0x2f1)]['forEach'](_0x17bca5=>{const _0x49c727=_0x33cda5;Object[_0x49c727(0x28e)](_0xed4840[_0x49c727(0x31a)],_0x17bca5,{'enumerable':!0x0});}),[_0x33cda5(0x298),_0x33cda5(0x20c),_0x33cda5(0x1f1),_0x33cda5(0x268)][_0x33cda5(0x294)](_0x4f4935=>{const _0x4d6666=_0x33cda5;Object['defineProperty'](_0xed4840[_0x4d6666(0x31a)],'on'+_0x4f4935,{'enumerable':!0x0,'get'(){for(const _0x5cf2ac of this['listeners'](_0x4f4935))if(_0x5cf2ac[_0x4f92ce])return _0x5cf2ac[_0x496531];return null;},'set'(_0x2c79e3){const _0x2dade1=_0x4d6666;for(const _0x4daf5d of this[_0x2dade1(0x2a3)](_0x4f4935))if(_0x4daf5d[_0x4f92ce]){this[_0x2dade1(0x2ba)](_0x4f4935,_0x4daf5d);break;}typeof _0x2c79e3==_0x2dade1(0x1e2)&&this[_0x2dade1(0x28c)](_0x4f4935,_0x2c79e3,{[_0x4f92ce]:!0x0});}});}),_0xed4840[_0x33cda5(0x31a)][_0x33cda5(0x28c)]=_0x5447aa,_0xed4840[_0x33cda5(0x31a)]['removeEventListener']=_0x2429b,we=_0xed4840;function _0xea04fc(_0x497723,_0x5242ec,_0x2da5df,_0x4110fd){const _0x65aa53=_0x33cda5,_0x6c6b9={'allowSynchronousEvents':!0x0,'autoPong':!0x0,'protocolVersion':_0x58d09a[0x1],'maxPayload':0x6400000,'skipUTF8Validation':!0x1,'perMessageDeflate':!0x0,'followRedirects':!0x1,'maxRedirects':0xa,..._0x4110fd,'socketPath':void 0x0,'hostname':void 0x0,'protocol':void 0x0,'timeout':void 0x0,'method':'GET','host':void 0x0,'path':void 0x0,'port':void 0x0};if(_0x497723[_0x65aa53(0x211)]=_0x6c6b9[_0x65aa53(0x307)],!_0x58d09a[_0x65aa53(0x295)](_0x6c6b9[_0x65aa53(0x1b4)]))throw new RangeError(_0x65aa53(0x29b)+_0x6c6b9[_0x65aa53(0x1b4)]+_0x65aa53(0x22d)+_0x58d09a[_0x65aa53(0x1fc)](',\x20')+')');let _0x2ac1b7;if(_0x5242ec instanceof _0x45d3c8)_0x2ac1b7=_0x5242ec;else try{_0x2ac1b7=new _0x45d3c8(_0x5242ec);}catch{throw new SyntaxError('Invalid\x20URL:\x20'+_0x5242ec);}_0x2ac1b7[_0x65aa53(0x248)]==='http:'?_0x2ac1b7[_0x65aa53(0x248)]='ws:':_0x2ac1b7['protocol']===_0x65aa53(0x1aa)&&(_0x2ac1b7[_0x65aa53(0x248)]='wss:'),_0x497723[_0x65aa53(0x2e2)]=_0x2ac1b7[_0x65aa53(0x2bf)];const _0x278bdc=_0x2ac1b7['protocol']==='wss:',_0x8fc304=_0x2ac1b7[_0x65aa53(0x248)]===_0x65aa53(0x311);let _0x4bc78;if(_0x2ac1b7[_0x65aa53(0x248)]!==_0x65aa53(0x202)&&!_0x278bdc&&!_0x8fc304?_0x4bc78=_0x65aa53(0x2c8):_0x8fc304&&!_0x2ac1b7[_0x65aa53(0x303)]?_0x4bc78='The\x20URL\x27s\x20pathname\x20is\x20empty':_0x2ac1b7[_0x65aa53(0x21e)]&&(_0x4bc78=_0x65aa53(0x208)),_0x4bc78){const _0x4ad090=new SyntaxError(_0x4bc78);if(_0x497723['_redirects']===0x0)throw _0x4ad090;_0x3d6951(_0x497723,_0x4ad090);return;}const _0x51232a=_0x278bdc?0x1bb:0x50,_0x383e8c=_0x9c8a98(0x10)['toString'](_0x65aa53(0x2f3)),_0x3bebec=_0x278bdc?_0x2c2ad8[_0x65aa53(0x1b7)]:_0x2a6638[_0x65aa53(0x1b7)],_0x4ebb08=new Set();let _0x2a2006;if(_0x6c6b9[_0x65aa53(0x1ef)]=_0x6c6b9[_0x65aa53(0x1ef)]||(_0x278bdc?_0x3c959a:_0x33d8a2),_0x6c6b9['defaultPort']=_0x6c6b9['defaultPort']||_0x51232a,_0x6c6b9[_0x65aa53(0x1fe)]=_0x2ac1b7['port']||_0x51232a,_0x6c6b9[_0x65aa53(0x1b8)]=_0x2ac1b7['hostname'][_0x65aa53(0x1c3)]('[')?_0x2ac1b7[_0x65aa53(0x340)][_0x65aa53(0x209)](0x1,-0x1):_0x2ac1b7[_0x65aa53(0x340)],_0x6c6b9['headers']={..._0x6c6b9[_0x65aa53(0x269)],'Sec-WebSocket-Version':_0x6c6b9[_0x65aa53(0x1b4)],'Sec-WebSocket-Key':_0x383e8c,'Connection':'Upgrade','Upgrade':'websocket'},_0x6c6b9['path']=_0x2ac1b7[_0x65aa53(0x303)]+_0x2ac1b7[_0x65aa53(0x254)],_0x6c6b9[_0x65aa53(0x333)]=_0x6c6b9['handshakeTimeout'],_0x6c6b9[_0x65aa53(0x275)]&&(_0x2a2006=new _0x233e25(_0x6c6b9[_0x65aa53(0x275)]!==!0x0?_0x6c6b9[_0x65aa53(0x275)]:{},!0x1,_0x6c6b9['maxPayload']),_0x6c6b9[_0x65aa53(0x269)][_0x65aa53(0x1e8)]=_0x446e8b({[_0x233e25[_0x65aa53(0x1d7)]]:_0x2a2006[_0x65aa53(0x238)]()})),_0x2da5df[_0x65aa53(0x2d2)]){for(const _0x141720 of _0x2da5df){if(typeof _0x141720!=_0x65aa53(0x272)||!_0x4c4336[_0x65aa53(0x27a)](_0x141720)||_0x4ebb08[_0x65aa53(0x338)](_0x141720))throw new SyntaxError('An\x20invalid\x20or\x20duplicated\x20subprotocol\x20was\x20specified');_0x4ebb08[_0x65aa53(0x348)](_0x141720);}_0x6c6b9[_0x65aa53(0x269)]['Sec-WebSocket-Protocol']=_0x2da5df['join'](',');}if(_0x6c6b9[_0x65aa53(0x26f)]&&(_0x6c6b9[_0x65aa53(0x1b4)]<0xd?_0x6c6b9['headers']['Sec-WebSocket-Origin']=_0x6c6b9[_0x65aa53(0x26f)]:_0x6c6b9[_0x65aa53(0x269)]['Origin']=_0x6c6b9[_0x65aa53(0x26f)]),(_0x2ac1b7[_0x65aa53(0x2ce)]||_0x2ac1b7[_0x65aa53(0x23e)])&&(_0x6c6b9[_0x65aa53(0x339)]=_0x2ac1b7['username']+':'+_0x2ac1b7['password']),_0x8fc304){const _0x3a1f6b=_0x6c6b9['path'][_0x65aa53(0x26a)](':');_0x6c6b9[_0x65aa53(0x2b1)]=_0x3a1f6b[0x0],_0x6c6b9['path']=_0x3a1f6b[0x1];}let _0x5a182d;if(_0x6c6b9['followRedirects']){if(_0x497723[_0x65aa53(0x23d)]===0x0){_0x497723['_originalIpc']=_0x8fc304,_0x497723[_0x65aa53(0x225)]=_0x278bdc,_0x497723['_originalHostOrSocketPath']=_0x8fc304?_0x6c6b9['socketPath']:_0x2ac1b7['host'];const _0x33befa=_0x4110fd&&_0x4110fd[_0x65aa53(0x269)];if(_0x4110fd={..._0x4110fd,'headers':{}},_0x33befa){for(const [_0x5b5720,_0x31cfff]of Object['entries'](_0x33befa))_0x4110fd[_0x65aa53(0x269)][_0x5b5720[_0x65aa53(0x262)]()]=_0x31cfff;}}else{if(_0x497723[_0x65aa53(0x2a6)](_0x65aa53(0x2da))===0x0){const _0x43440f=_0x8fc304?_0x497723[_0x65aa53(0x2b3)]?_0x6c6b9[_0x65aa53(0x2b1)]===_0x497723[_0x65aa53(0x301)]:!0x1:_0x497723['_originalIpc']?!0x1:_0x2ac1b7['host']===_0x497723['_originalHostOrSocketPath'];(!_0x43440f||_0x497723['_originalSecure']&&!_0x278bdc)&&(delete _0x6c6b9['headers'][_0x65aa53(0x1e0)],delete _0x6c6b9['headers'][_0x65aa53(0x264)],_0x43440f||delete _0x6c6b9[_0x65aa53(0x269)][_0x65aa53(0x1b8)],_0x6c6b9['auth']=void 0x0);}}_0x6c6b9[_0x65aa53(0x339)]&&!_0x4110fd[_0x65aa53(0x269)][_0x65aa53(0x1e0)]&&(_0x4110fd['headers'][_0x65aa53(0x1e0)]=_0x65aa53(0x256)+Buffer[_0x65aa53(0x2fc)](_0x6c6b9['auth'])[_0x65aa53(0x2ad)]('base64')),_0x5a182d=_0x497723[_0x65aa53(0x315)]=_0x3bebec(_0x6c6b9),_0x497723[_0x65aa53(0x23d)]&&_0x497723[_0x65aa53(0x1b0)](_0x65aa53(0x2da),_0x497723['url'],_0x5a182d);}else _0x5a182d=_0x497723[_0x65aa53(0x315)]=_0x3bebec(_0x6c6b9);_0x6c6b9[_0x65aa53(0x333)]&&_0x5a182d['on'](_0x65aa53(0x333),()=>{const _0x50aa1f=_0x65aa53;_0x5778d2(_0x497723,_0x5a182d,_0x50aa1f(0x309));}),_0x5a182d['on'](_0x65aa53(0x20c),_0x1efa09=>{const _0x3d7bec=_0x65aa53;_0x5a182d===null||_0x5a182d[_0x10d577]||(_0x5a182d=_0x497723[_0x3d7bec(0x315)]=null,_0x3d6951(_0x497723,_0x1efa09));}),_0x5a182d['on'](_0x65aa53(0x33c),_0x329e9a=>{const _0x18cd7f=_0x65aa53,_0x1b3a37=_0x329e9a['headers'][_0x18cd7f(0x288)],_0x4bda0e=_0x329e9a['statusCode'];if(_0x1b3a37&&_0x6c6b9['followRedirects']&&_0x4bda0e>=0x12c&&_0x4bda0e<0x190){if(++_0x497723[_0x18cd7f(0x23d)]>_0x6c6b9[_0x18cd7f(0x258)]){_0x5778d2(_0x497723,_0x5a182d,_0x18cd7f(0x299));return;}_0x5a182d[_0x18cd7f(0x2a9)]();let _0x50bf82;try{_0x50bf82=new _0x45d3c8(_0x1b3a37,_0x5242ec);}catch{const _0x3da667=new SyntaxError('Invalid\x20URL:\x20'+_0x1b3a37);_0x3d6951(_0x497723,_0x3da667);return;}_0xea04fc(_0x497723,_0x50bf82,_0x2da5df,_0x4110fd);}else _0x497723['emit']('unexpected-response',_0x5a182d,_0x329e9a)||_0x5778d2(_0x497723,_0x5a182d,_0x18cd7f(0x1ce)+_0x329e9a[_0x18cd7f(0x2d1)]);}),_0x5a182d['on']('upgrade',(_0x46e7f7,_0x35f5d8,_0x2e303c)=>{const _0xbe8a9f=_0x65aa53;if(_0x497723['emit']('upgrade',_0x46e7f7),_0x497723[_0xbe8a9f(0x2e0)]!==_0xed4840['CONNECTING'])return;_0x5a182d=_0x497723[_0xbe8a9f(0x315)]=null;const _0x170868=_0x46e7f7[_0xbe8a9f(0x269)][_0xbe8a9f(0x2a7)];if(_0x170868===void 0x0||_0x170868[_0xbe8a9f(0x262)]()!==_0xbe8a9f(0x21d)){_0x5778d2(_0x497723,_0x35f5d8,'Invalid\x20Upgrade\x20header');return;}const _0x158433=_0x40daef('sha1')[_0xbe8a9f(0x1b1)](_0x383e8c+_0x465165)[_0xbe8a9f(0x21c)]('base64');if(_0x46e7f7[_0xbe8a9f(0x269)]['sec-websocket-accept']!==_0x158433){_0x5778d2(_0x497723,_0x35f5d8,_0xbe8a9f(0x2b4));return;}const _0x19f6e1=_0x46e7f7[_0xbe8a9f(0x269)][_0xbe8a9f(0x215)];let _0x1b78e5;if(_0x19f6e1!==void 0x0?_0x4ebb08[_0xbe8a9f(0x1ad)]?_0x4ebb08[_0xbe8a9f(0x338)](_0x19f6e1)||(_0x1b78e5='Server\x20sent\x20an\x20invalid\x20subprotocol'):_0x1b78e5=_0xbe8a9f(0x353):_0x4ebb08[_0xbe8a9f(0x1ad)]&&(_0x1b78e5=_0xbe8a9f(0x2cb)),_0x1b78e5){_0x5778d2(_0x497723,_0x35f5d8,_0x1b78e5);return;}_0x19f6e1&&(_0x497723[_0xbe8a9f(0x239)]=_0x19f6e1);const _0x3b800a=_0x46e7f7[_0xbe8a9f(0x269)][_0xbe8a9f(0x232)];if(_0x3b800a!==void 0x0){if(!_0x2a2006){_0x5778d2(_0x497723,_0x35f5d8,_0xbe8a9f(0x1fa));return;}let _0x456626;try{_0x456626=_0x5ed30e(_0x3b800a);}catch{_0x5778d2(_0x497723,_0x35f5d8,_0xbe8a9f(0x2b6));return;}const _0x5aa604=Object[_0xbe8a9f(0x352)](_0x456626);if(_0x5aa604[_0xbe8a9f(0x2d2)]!==0x1||_0x5aa604[0x0]!==_0x233e25['extensionName']){_0x5778d2(_0x497723,_0x35f5d8,_0xbe8a9f(0x1c7));return;}try{_0x2a2006['accept'](_0x456626[_0x233e25[_0xbe8a9f(0x1d7)]]);}catch{_0x5778d2(_0x497723,_0x35f5d8,_0xbe8a9f(0x2b6));return;}_0x497723[_0xbe8a9f(0x329)][_0x233e25[_0xbe8a9f(0x1d7)]]=_0x2a2006;}_0x497723['setSocket'](_0x35f5d8,_0x2e303c,{'allowSynchronousEvents':_0x6c6b9[_0xbe8a9f(0x25e)],'generateMask':_0x6c6b9[_0xbe8a9f(0x2a8)],'maxPayload':_0x6c6b9['maxPayload'],'skipUTF8Validation':_0x6c6b9[_0xbe8a9f(0x32c)]});}),_0x6c6b9[_0x65aa53(0x284)]?_0x6c6b9['finishRequest'](_0x5a182d,_0x497723):_0x5a182d['end']();}function _0x3d6951(_0x574faf,_0x446c8a){const _0x4ef7ac=_0x33cda5;_0x574faf[_0x4ef7ac(0x2c4)]=_0xed4840[_0x4ef7ac(0x278)],_0x574faf[_0x4ef7ac(0x33e)]=!0x0,_0x574faf[_0x4ef7ac(0x1b0)](_0x4ef7ac(0x20c),_0x446c8a),_0x574faf[_0x4ef7ac(0x22f)]();}function _0x33d8a2(_0x58b4c5){const _0x3a613d=_0x33cda5;return _0x58b4c5['path']=_0x58b4c5[_0x3a613d(0x2b1)],_0x337230[_0x3a613d(0x2d9)](_0x58b4c5);}function _0x3c959a(_0x5748f7){const _0x4eb0e4=_0x33cda5;return _0x5748f7[_0x4eb0e4(0x30d)]=void 0x0,!_0x5748f7[_0x4eb0e4(0x212)]&&_0x5748f7['servername']!==''&&(_0x5748f7['servername']=_0x337230['isIP'](_0x5748f7['host'])?'':_0x5748f7[_0x4eb0e4(0x1b8)]),_0x2eaf6c[_0x4eb0e4(0x2d9)](_0x5748f7);}function _0x5778d2(_0x4d00e1,_0x6bbc17,_0x54ed19){const _0x1adbd0=_0x33cda5;_0x4d00e1[_0x1adbd0(0x2c4)]=_0xed4840[_0x1adbd0(0x278)];const _0x5cf2de=new Error(_0x54ed19);Error[_0x1adbd0(0x219)](_0x5cf2de,_0x5778d2),_0x6bbc17[_0x1adbd0(0x2d7)]?(_0x6bbc17[_0x10d577]=!0x0,_0x6bbc17[_0x1adbd0(0x2a9)](),_0x6bbc17[_0x1adbd0(0x310)]&&!_0x6bbc17[_0x1adbd0(0x310)][_0x1adbd0(0x327)]&&_0x6bbc17[_0x1adbd0(0x310)][_0x1adbd0(0x34b)](),process[_0x1adbd0(0x345)](_0x3d6951,_0x4d00e1,_0x5cf2de)):(_0x6bbc17['destroy'](_0x5cf2de),_0x6bbc17['once'](_0x1adbd0(0x20c),_0x4d00e1['emit'][_0x1adbd0(0x1db)](_0x4d00e1,_0x1adbd0(0x20c))),_0x6bbc17[_0x1adbd0(0x2d3)]('close',_0x4d00e1[_0x1adbd0(0x22f)][_0x1adbd0(0x1db)](_0x4d00e1)));}function _0x1083d3(_0x2685b4,_0x23818e,_0x5603d5){const _0x192dc6=_0x33cda5;if(_0x23818e){const _0x318165=_0x18ca81(_0x23818e)?_0x23818e[_0x192dc6(0x1ad)]:_0x4cf8a5(_0x23818e)[_0x192dc6(0x2d2)];_0x2685b4['_socket']?_0x2685b4['_sender'][_0x192dc6(0x1b9)]+=_0x318165:_0x2685b4['_bufferedAmount']+=_0x318165;}if(_0x5603d5){const _0x5c884d=new Error(_0x192dc6(0x28a)+_0x2685b4['readyState']+'\x20('+_0x428a57[_0x2685b4[_0x192dc6(0x2e0)]]+')');process[_0x192dc6(0x345)](_0x5603d5,_0x5c884d);}}function _0x2bdde6(_0x521393,_0x1f8264){const _0x15fae1=_0x33cda5,_0x32293d=this[_0x3d26c9];_0x32293d['_closeFrameReceived']=!0x0,_0x32293d[_0x15fae1(0x282)]=_0x1f8264,_0x32293d[_0x15fae1(0x30e)]=_0x521393,_0x32293d[_0x15fae1(0x33a)][_0x3d26c9]!==void 0x0&&(_0x32293d['_socket'][_0x15fae1(0x2ba)](_0x15fae1(0x267),_0x977f6d),process['nextTick'](_0x571c95,_0x32293d[_0x15fae1(0x33a)]),_0x521393===0x3ed?_0x32293d['close']():_0x32293d['close'](_0x521393,_0x1f8264));}function _0x341c64(){const _0x48e971=_0x33cda5,_0x2a3c79=this[_0x3d26c9];_0x2a3c79['isPaused']||_0x2a3c79[_0x48e971(0x33a)]['resume']();}function _0x56c978(_0xaacbd2){const _0x2b2118=_0x33cda5,_0xfa7e9=this[_0x3d26c9];_0xfa7e9['_socket'][_0x3d26c9]!==void 0x0&&(_0xfa7e9[_0x2b2118(0x33a)][_0x2b2118(0x2ba)](_0x2b2118(0x267),_0x977f6d),process[_0x2b2118(0x345)](_0x571c95,_0xfa7e9['_socket']),_0xfa7e9[_0x2b2118(0x1f1)](_0xaacbd2[_0x17718e])),_0xfa7e9[_0x2b2118(0x33e)]||(_0xfa7e9[_0x2b2118(0x33e)]=!0x0,_0xfa7e9['emit'](_0x2b2118(0x20c),_0xaacbd2));}function _0x423071(){const _0x47de77=_0x33cda5;this[_0x3d26c9][_0x47de77(0x22f)]();}function _0x3a32f7(_0xdcba82,_0x255f5c){const _0x2fcca6=_0x33cda5;this[_0x3d26c9][_0x2fcca6(0x1b0)]('message',_0xdcba82,_0x255f5c);}function _0x56130b(_0xa634b7){const _0x1d97bf=_0x33cda5,_0x123fb8=this[_0x3d26c9];_0x123fb8[_0x1d97bf(0x211)]&&_0x123fb8['pong'](_0xa634b7,!this[_0x1d97bf(0x30f)],_0x11ce0e),_0x123fb8[_0x1d97bf(0x1b0)](_0x1d97bf(0x241),_0xa634b7);}function _0x9cda48(_0x59341f){const _0x4fd08f=_0x33cda5;this[_0x3d26c9][_0x4fd08f(0x1b0)](_0x4fd08f(0x1c5),_0x59341f);}function _0x571c95(_0x373c7b){_0x373c7b['resume']();}function _0x8866e(_0x3ddfbf){const _0x2ab628=_0x33cda5,_0x46a054=this[_0x3d26c9];_0x46a054['readyState']!==_0xed4840['CLOSED']&&(_0x46a054[_0x2ab628(0x2e0)]===_0xed4840[_0x2ab628(0x1da)]&&(_0x46a054[_0x2ab628(0x2c4)]=_0xed4840[_0x2ab628(0x278)],_0x119526(_0x46a054)),this[_0x2ab628(0x33a)][_0x2ab628(0x1f0)](),_0x46a054['_errorEmitted']||(_0x46a054['_errorEmitted']=!0x0,_0x46a054[_0x2ab628(0x1b0)](_0x2ab628(0x20c),_0x3ddfbf)));}function _0x119526(_0x587221){const _0x318a6f=_0x33cda5;_0x587221[_0x318a6f(0x306)]=setTimeout(_0x587221[_0x318a6f(0x33a)]['destroy'][_0x318a6f(0x1db)](_0x587221['_socket']),_0x2e7626);}function _0x438a01(){const _0x113eeb=_0x33cda5,_0x18fac5=this[_0x3d26c9];this[_0x113eeb(0x2ba)](_0x113eeb(0x1f1),_0x438a01),this['removeListener'](_0x113eeb(0x267),_0x977f6d),this['removeListener'](_0x113eeb(0x1f0),_0x5d3a83),_0x18fac5['_readyState']=_0xed4840[_0x113eeb(0x278)];let _0x2461f7;!this[_0x113eeb(0x287)][_0x113eeb(0x22e)]&&!_0x18fac5[_0x113eeb(0x29a)]&&!_0x18fac5['_receiver'][_0x113eeb(0x24b)][_0x113eeb(0x243)]&&(_0x2461f7=_0x18fac5['_socket'][_0x113eeb(0x33b)]())!==null&&_0x18fac5[_0x113eeb(0x1cd)][_0x113eeb(0x29c)](_0x2461f7),_0x18fac5[_0x113eeb(0x1cd)][_0x113eeb(0x1f0)](),this[_0x3d26c9]=void 0x0,clearTimeout(_0x18fac5['_closeTimer']),_0x18fac5[_0x113eeb(0x1cd)][_0x113eeb(0x24b)][_0x113eeb(0x1f7)]||_0x18fac5[_0x113eeb(0x1cd)][_0x113eeb(0x24b)]['errorEmitted']?_0x18fac5[_0x113eeb(0x22f)]():(_0x18fac5[_0x113eeb(0x1cd)]['on'](_0x113eeb(0x20c),_0x423071),_0x18fac5[_0x113eeb(0x1cd)]['on'](_0x113eeb(0x2f4),_0x423071));}function _0x977f6d(_0x5afe92){const _0x144f78=_0x33cda5;this[_0x3d26c9][_0x144f78(0x1cd)][_0x144f78(0x29c)](_0x5afe92)||this[_0x144f78(0x2ed)]();}function _0x5d3a83(){const _0x4d36e9=_0x33cda5,_0x54f2c1=this[_0x3d26c9];_0x54f2c1['_readyState']=_0xed4840['CLOSING'],_0x54f2c1['_receiver'][_0x4d36e9(0x1f0)](),this['end']();}function _0x4c93d2(){const _0x55ef03=_0x33cda5,_0x1b35c6=this[_0x3d26c9];this[_0x55ef03(0x2ba)](_0x55ef03(0x20c),_0x4c93d2),this['on']('error',_0x11ce0e),_0x1b35c6&&(_0x1b35c6[_0x55ef03(0x2c4)]=_0xed4840[_0x55ef03(0x278)],this[_0x55ef03(0x34b)]());}return we;}var Oe,it;function Xt(){if(it)return Oe;it=0x1,Ie();const {Duplex:_0x4ab09f}=_0x2a4194;function _0x4d0092(_0x3d73f2){const _0x1158b8=_0x395c;_0x3d73f2[_0x1158b8(0x1b0)]('close');}function _0x14fe98(){const _0x198260=_0x395c;!this[_0x198260(0x327)]&&this[_0x198260(0x24b)][_0x198260(0x1f7)]&&this['destroy']();}function _0x39cc50(_0x4039c2){const _0x27ffe0=_0x395c;this[_0x27ffe0(0x2ba)](_0x27ffe0(0x20c),_0x39cc50),this[_0x27ffe0(0x34b)](),this['listenerCount'](_0x27ffe0(0x20c))===0x0&&this['emit'](_0x27ffe0(0x20c),_0x4039c2);}function _0x5f249b(_0x32657f,_0x550c3c){const _0x53ee53=_0x395c;let _0x5880ef=!0x0;const _0x197680=new _0x4ab09f({..._0x550c3c,'autoDestroy':!0x1,'emitClose':!0x1,'objectMode':!0x1,'writableObjectMode':!0x1});return _0x32657f['on'](_0x53ee53(0x268),function(_0x26fb0f,_0x7c7fa5){const _0x394d23=_0x53ee53,_0x2bb664=!_0x7c7fa5&&_0x197680[_0x394d23(0x287)]['objectMode']?_0x26fb0f[_0x394d23(0x2ad)]():_0x26fb0f;_0x197680['push'](_0x2bb664)||_0x32657f[_0x394d23(0x2ed)]();}),_0x32657f[_0x53ee53(0x2d3)](_0x53ee53(0x20c),function(_0x3a9487){const _0x12e64e=_0x53ee53;_0x197680[_0x12e64e(0x327)]||(_0x5880ef=!0x1,_0x197680[_0x12e64e(0x34b)](_0x3a9487));}),_0x32657f['once'](_0x53ee53(0x1f1),function(){const _0x1be461=_0x53ee53;_0x197680[_0x1be461(0x327)]||_0x197680[_0x1be461(0x281)](null);}),_0x197680[_0x53ee53(0x325)]=function(_0x14b485,_0x578350){const _0x53368e=_0x53ee53;if(_0x32657f[_0x53368e(0x2e0)]===_0x32657f['CLOSED']){_0x578350(_0x14b485),process[_0x53368e(0x345)](_0x4d0092,_0x197680);return;}let _0x1c85cb=!0x1;_0x32657f[_0x53368e(0x2d3)](_0x53368e(0x20c),function(_0x2c91cc){_0x1c85cb=!0x0,_0x578350(_0x2c91cc);}),_0x32657f[_0x53368e(0x2d3)](_0x53368e(0x1f1),function(){const _0x30ba78=_0x53368e;_0x1c85cb||_0x578350(_0x14b485),process[_0x30ba78(0x345)](_0x4d0092,_0x197680);}),_0x5880ef&&_0x32657f['terminate']();},_0x197680[_0x53ee53(0x1cc)]=function(_0x273de2){const _0x34b7da=_0x53ee53;if(_0x32657f[_0x34b7da(0x2e0)]===_0x32657f['CONNECTING']){_0x32657f[_0x34b7da(0x2d3)](_0x34b7da(0x298),function(){_0x197680['_final'](_0x273de2);});return;}_0x32657f[_0x34b7da(0x33a)]!==null&&(_0x32657f[_0x34b7da(0x33a)][_0x34b7da(0x24b)][_0x34b7da(0x1f7)]?(_0x273de2(),_0x197680[_0x34b7da(0x287)][_0x34b7da(0x22e)]&&_0x197680[_0x34b7da(0x34b)]()):(_0x32657f[_0x34b7da(0x33a)][_0x34b7da(0x2d3)](_0x34b7da(0x2f4),function(){_0x273de2();}),_0x32657f[_0x34b7da(0x1f1)]()));},_0x197680['_read']=function(){const _0x1acc62=_0x53ee53;_0x32657f[_0x1acc62(0x1bc)]&&_0x32657f[_0x1acc62(0x261)]();},_0x197680['_write']=function(_0x43e641,_0x2fafce,_0x244ee0){const _0x3b12a9=_0x53ee53;if(_0x32657f[_0x3b12a9(0x2e0)]===_0x32657f[_0x3b12a9(0x1e4)]){_0x32657f['once'](_0x3b12a9(0x298),function(){_0x197680['_write'](_0x43e641,_0x2fafce,_0x244ee0);});return;}_0x32657f[_0x3b12a9(0x292)](_0x43e641,_0x244ee0);},_0x197680['on']('end',_0x14fe98),_0x197680['on']('error',_0x39cc50),_0x197680;}return Oe=_0x5f249b,Oe;}Xt(),dt(),_t();var Zt=Ie();const Qt=Wt(Zt);var Ce,nt;function Jt(){if(nt)return Ce;nt=0x1;const {tokenChars:_0x39ac9a}=ne();function _0x3e4ff3(_0x558f67){const _0x3bbaa7=_0x395c,_0x5b52e0=new Set();let _0x522428=-0x1,_0x530be1=-0x1,_0x2036ca=0x0;for(_0x2036ca;_0x2036ca<_0x558f67['length'];_0x2036ca++){const _0x4083d8=_0x558f67[_0x3bbaa7(0x324)](_0x2036ca);if(_0x530be1===-0x1&&_0x39ac9a[_0x4083d8]===0x1)_0x522428===-0x1&&(_0x522428=_0x2036ca);else{if(_0x2036ca!==0x0&&(_0x4083d8===0x20||_0x4083d8===0x9))_0x530be1===-0x1&&_0x522428!==-0x1&&(_0x530be1=_0x2036ca);else{if(_0x4083d8===0x2c){if(_0x522428===-0x1)throw new SyntaxError('Unexpected\x20character\x20at\x20index\x20'+_0x2036ca);_0x530be1===-0x1&&(_0x530be1=_0x2036ca);const _0x3045d9=_0x558f67[_0x3bbaa7(0x209)](_0x522428,_0x530be1);if(_0x5b52e0['has'](_0x3045d9))throw new SyntaxError('The\x20\x22'+_0x3045d9+'\x22\x20subprotocol\x20is\x20duplicated');_0x5b52e0[_0x3bbaa7(0x348)](_0x3045d9),_0x522428=_0x530be1=-0x1;}else throw new SyntaxError(_0x3bbaa7(0x1f4)+_0x2036ca);}}}if(_0x522428===-0x1||_0x530be1!==-0x1)throw new SyntaxError(_0x3bbaa7(0x296));const _0x129848=_0x558f67['slice'](_0x522428,_0x2036ca);if(_0x5b52e0[_0x3bbaa7(0x338)](_0x129848))throw new SyntaxError(_0x3bbaa7(0x308)+_0x129848+_0x3bbaa7(0x1d2));return _0x5b52e0[_0x3bbaa7(0x348)](_0x129848),_0x5b52e0;}return Ce={'parse':_0x3e4ff3},Ce;}var Te,ot;function er(){const _0x4bd289=_0x575908;if(ot)return Te;ot=0x1;const _0x3312de=_0x19fb3e,_0x443564=_0x4cb172,{Duplex:_0x21becc}=_0x2a4194,{createHash:_0xe78dee}=_0x20476a,_0x35edc7=pt(),_0x312bce=he(),_0x32921e=Jt(),_0x34d9fd=Ie(),{GUID:_0x5aa400,kWebSocket:_0x10142b}=V(),_0x2bf780=/^[+/0-9A-Za-z]{22}==$/,_0x2b84ea=0x0,_0x21ca12=0x1,_0x24dc8d=0x2;class _0x56666b extends _0x3312de{constructor(_0xe0e258,_0x270551){const _0x589742=_0x395c;if(super(),_0xe0e258={'allowSynchronousEvents':!0x0,'autoPong':!0x0,'maxPayload':0x64*0x400*0x400,'skipUTF8Validation':!0x1,'perMessageDeflate':!0x1,'handleProtocols':null,'clientTracking':!0x0,'verifyClient':null,'noServer':!0x1,'backlog':null,'server':null,'host':null,'path':null,'port':null,'WebSocket':_0x34d9fd,..._0xe0e258},_0xe0e258[_0x589742(0x1fe)]==null&&!_0xe0e258[_0x589742(0x226)]&&!_0xe0e258[_0x589742(0x2f0)]||_0xe0e258[_0x589742(0x1fe)]!=null&&(_0xe0e258[_0x589742(0x226)]||_0xe0e258[_0x589742(0x2f0)])||_0xe0e258[_0x589742(0x226)]&&_0xe0e258[_0x589742(0x2f0)])throw new TypeError(_0x589742(0x2ea));if(_0xe0e258[_0x589742(0x1fe)]!=null?(this[_0x589742(0x228)]=_0x443564['createServer']((_0x145993,_0x12d2ec)=>{const _0x16317a=_0x589742,_0x4cbf79=_0x443564[_0x16317a(0x331)][0x1aa];_0x12d2ec[_0x16317a(0x342)](0x1aa,{'Content-Length':_0x4cbf79[_0x16317a(0x2d2)],'Content-Type':'text/plain'}),_0x12d2ec[_0x16317a(0x1f0)](_0x4cbf79);}),this['_server'][_0x589742(0x2e7)](_0xe0e258[_0x589742(0x1fe)],_0xe0e258[_0x589742(0x1b8)],_0xe0e258['backlog'],_0x270551)):_0xe0e258[_0x589742(0x226)]&&(this[_0x589742(0x228)]=_0xe0e258[_0x589742(0x226)]),this[_0x589742(0x228)]){const _0x495042=this[_0x589742(0x1b0)][_0x589742(0x1db)](this,_0x589742(0x2eb));this[_0x589742(0x224)]=_0x16e77a(this['_server'],{'listening':this[_0x589742(0x1b0)][_0x589742(0x1db)](this,'listening'),'error':this[_0x589742(0x1b0)][_0x589742(0x1db)](this,_0x589742(0x20c)),'upgrade':(_0x1cbb48,_0x30072d,_0x3f6803)=>{const _0x1fcbee=_0x589742;this[_0x1fcbee(0x1d8)](_0x1cbb48,_0x30072d,_0x3f6803,_0x495042);}});}_0xe0e258[_0x589742(0x275)]===!0x0&&(_0xe0e258[_0x589742(0x275)]={}),_0xe0e258[_0x589742(0x247)]&&(this[_0x589742(0x328)]=new Set(),this[_0x589742(0x305)]=!0x1),this[_0x589742(0x2e3)]=_0xe0e258,this[_0x589742(0x22c)]=_0x2b84ea;}[_0x4bd289(0x1ee)](){const _0x2a1bfd=_0x4bd289;if(this[_0x2a1bfd(0x2e3)]['noServer'])throw new Error(_0x2a1bfd(0x1e1));return this[_0x2a1bfd(0x228)]?this[_0x2a1bfd(0x228)][_0x2a1bfd(0x1ee)]():null;}['close'](_0x51ec62){const _0x384cc7=_0x4bd289;if(this[_0x384cc7(0x22c)]===_0x24dc8d){_0x51ec62&&this[_0x384cc7(0x2d3)](_0x384cc7(0x1f1),()=>{const _0x4010c6=_0x384cc7;_0x51ec62(new Error(_0x4010c6(0x341)));}),process[_0x384cc7(0x345)](_0x13927e,this);return;}if(_0x51ec62&&this[_0x384cc7(0x2d3)]('close',_0x51ec62),this[_0x384cc7(0x22c)]!==_0x21ca12){if(this[_0x384cc7(0x22c)]=_0x21ca12,this[_0x384cc7(0x2e3)][_0x384cc7(0x2f0)]||this['options'][_0x384cc7(0x226)])this[_0x384cc7(0x228)]&&(this[_0x384cc7(0x224)](),this['_removeListeners']=this[_0x384cc7(0x228)]=null),this['clients']?this[_0x384cc7(0x328)][_0x384cc7(0x1ad)]?this[_0x384cc7(0x305)]=!0x0:process[_0x384cc7(0x345)](_0x13927e,this):process['nextTick'](_0x13927e,this);else{const _0x85366b=this[_0x384cc7(0x228)];this[_0x384cc7(0x224)](),this[_0x384cc7(0x224)]=this[_0x384cc7(0x228)]=null,_0x85366b[_0x384cc7(0x1f1)](()=>{_0x13927e(this);});}}}[_0x4bd289(0x2cf)](_0x1362c1){const _0x3e1d30=_0x4bd289;if(this[_0x3e1d30(0x2e3)]['path']){const _0x51a9f1=_0x1362c1[_0x3e1d30(0x2f1)][_0x3e1d30(0x343)]('?');if((_0x51a9f1!==-0x1?_0x1362c1[_0x3e1d30(0x2f1)]['slice'](0x0,_0x51a9f1):_0x1362c1[_0x3e1d30(0x2f1)])!==this[_0x3e1d30(0x2e3)][_0x3e1d30(0x30d)])return!0x1;}return!0x0;}['handleUpgrade'](_0x3d9550,_0x529c9f,_0x3e5df3,_0x1e56a2){const _0x556ae2=_0x4bd289;_0x529c9f['on'](_0x556ae2(0x20c),_0x46de18);const _0x4d502a=_0x3d9550[_0x556ae2(0x269)]['sec-websocket-key'],_0x4dcff2=_0x3d9550[_0x556ae2(0x269)][_0x556ae2(0x2a7)],_0x568534=+_0x3d9550[_0x556ae2(0x269)][_0x556ae2(0x31f)];if(_0x3d9550['method']!==_0x556ae2(0x1d0)){_0x541b45(this,_0x3d9550,_0x529c9f,0x195,'Invalid\x20HTTP\x20method');return;}if(_0x4dcff2===void 0x0||_0x4dcff2[_0x556ae2(0x262)]()!==_0x556ae2(0x21d)){_0x541b45(this,_0x3d9550,_0x529c9f,0x190,_0x556ae2(0x1f6));return;}if(_0x4d502a===void 0x0||!_0x2bf780[_0x556ae2(0x27a)](_0x4d502a)){_0x541b45(this,_0x3d9550,_0x529c9f,0x190,_0x556ae2(0x20d));return;}if(_0x568534!==0xd&&_0x568534!==0x8){_0x541b45(this,_0x3d9550,_0x529c9f,0x190,_0x556ae2(0x318),{'Sec-WebSocket-Version':_0x556ae2(0x29f)});return;}if(!this[_0x556ae2(0x2cf)](_0x3d9550)){_0x3a4cfb(_0x529c9f,0x190);return;}const _0x53ac48=_0x3d9550[_0x556ae2(0x269)][_0x556ae2(0x215)];let _0x288f76=new Set();if(_0x53ac48!==void 0x0)try{_0x288f76=_0x32921e[_0x556ae2(0x2fa)](_0x53ac48);}catch{_0x541b45(this,_0x3d9550,_0x529c9f,0x190,_0x556ae2(0x2db));return;}const _0xaabfcb=_0x3d9550[_0x556ae2(0x269)][_0x556ae2(0x232)],_0x5bbec7={};if(this[_0x556ae2(0x2e3)][_0x556ae2(0x275)]&&_0xaabfcb!==void 0x0){const _0x45bbc4=new _0x312bce(this[_0x556ae2(0x2e3)][_0x556ae2(0x275)],!0x0,this[_0x556ae2(0x2e3)]['maxPayload']);try{const _0x1207e2=_0x35edc7[_0x556ae2(0x2fa)](_0xaabfcb);_0x1207e2[_0x312bce['extensionName']]&&(_0x45bbc4[_0x556ae2(0x29e)](_0x1207e2[_0x312bce[_0x556ae2(0x1d7)]]),_0x5bbec7[_0x312bce[_0x556ae2(0x1d7)]]=_0x45bbc4);}catch{_0x541b45(this,_0x3d9550,_0x529c9f,0x190,_0x556ae2(0x249));return;}}if(this[_0x556ae2(0x2e3)][_0x556ae2(0x335)]){const _0x318f67={'origin':_0x3d9550['headers'][''+(_0x568534===0x8?_0x556ae2(0x22a):_0x556ae2(0x26f))],'secure':!!(_0x3d9550[_0x556ae2(0x310)]['authorized']||_0x3d9550[_0x556ae2(0x310)]['encrypted']),'req':_0x3d9550};if(this[_0x556ae2(0x2e3)][_0x556ae2(0x335)][_0x556ae2(0x2d2)]===0x2){this[_0x556ae2(0x2e3)]['verifyClient'](_0x318f67,(_0x533795,_0x519837,_0x153ffc,_0x49e2b0)=>{const _0x4d7984=_0x556ae2;if(!_0x533795)return _0x3a4cfb(_0x529c9f,_0x519837||0x191,_0x153ffc,_0x49e2b0);this[_0x4d7984(0x330)](_0x5bbec7,_0x4d502a,_0x288f76,_0x3d9550,_0x529c9f,_0x3e5df3,_0x1e56a2);});return;}if(!this[_0x556ae2(0x2e3)][_0x556ae2(0x335)](_0x318f67))return _0x3a4cfb(_0x529c9f,0x191);}this[_0x556ae2(0x330)](_0x5bbec7,_0x4d502a,_0x288f76,_0x3d9550,_0x529c9f,_0x3e5df3,_0x1e56a2);}[_0x4bd289(0x330)](_0x59e26d,_0x1c4625,_0x167919,_0x54ca4f,_0x4d8c61,_0x2c19e0,_0x142a0e){const _0x138a41=_0x4bd289;if(!_0x4d8c61[_0x138a41(0x2bc)]||!_0x4d8c61[_0x138a41(0x27b)])return _0x4d8c61[_0x138a41(0x34b)]();if(_0x4d8c61[_0x10142b])throw new Error(_0x138a41(0x2af));if(this[_0x138a41(0x22c)]>_0x2b84ea)return _0x3a4cfb(_0x4d8c61,0x1f7);const _0x116faf=[_0x138a41(0x237),_0x138a41(0x2c9),_0x138a41(0x1b2),'Sec-WebSocket-Accept:\x20'+_0xe78dee(_0x138a41(0x1c4))[_0x138a41(0x1b1)](_0x1c4625+_0x5aa400)['digest'](_0x138a41(0x2f3))],_0x4748cf=new this[(_0x138a41(0x2e3))][(_0x138a41(0x289))](null,void 0x0,this[_0x138a41(0x2e3)]);if(_0x167919[_0x138a41(0x1ad)]){const _0x526f1f=this[_0x138a41(0x2e3)][_0x138a41(0x2e9)]?this['options'][_0x138a41(0x2e9)](_0x167919,_0x54ca4f):_0x167919['values']()[_0x138a41(0x1f8)]()[_0x138a41(0x1cf)];_0x526f1f&&(_0x116faf[_0x138a41(0x281)](_0x138a41(0x1be)+_0x526f1f),_0x4748cf[_0x138a41(0x239)]=_0x526f1f);}if(_0x59e26d[_0x312bce['extensionName']]){const _0x51b3be=_0x59e26d[_0x312bce['extensionName']][_0x138a41(0x21f)],_0x5e9523=_0x35edc7[_0x138a41(0x302)]({[_0x312bce[_0x138a41(0x1d7)]]:[_0x51b3be]});_0x116faf[_0x138a41(0x281)](_0x138a41(0x217)+_0x5e9523),_0x4748cf[_0x138a41(0x329)]=_0x59e26d;}this[_0x138a41(0x1b0)]('headers',_0x116faf,_0x54ca4f),_0x4d8c61[_0x138a41(0x29c)](_0x116faf[_0x138a41(0x347)]('\x0d\x0a')[_0x138a41(0x1fc)]('\x0d\x0a')),_0x4d8c61[_0x138a41(0x2ba)](_0x138a41(0x20c),_0x46de18),_0x4748cf['setSocket'](_0x4d8c61,_0x2c19e0,{'allowSynchronousEvents':this['options'][_0x138a41(0x25e)],'maxPayload':this['options'][_0x138a41(0x317)],'skipUTF8Validation':this[_0x138a41(0x2e3)][_0x138a41(0x32c)]}),this[_0x138a41(0x328)]&&(this[_0x138a41(0x328)]['add'](_0x4748cf),_0x4748cf['on'](_0x138a41(0x1f1),()=>{const _0x3fd6fd=_0x138a41;this['clients'][_0x3fd6fd(0x2f6)](_0x4748cf),this[_0x3fd6fd(0x305)]&&!this[_0x3fd6fd(0x328)][_0x3fd6fd(0x1ad)]&&process['nextTick'](_0x13927e,this);})),_0x142a0e(_0x4748cf,_0x54ca4f);}}Te=_0x56666b;function _0x16e77a(_0x5d8b87,_0x30a8fd){const _0x3dc1a2=_0x4bd289;for(const _0x4b7ef3 of Object[_0x3dc1a2(0x352)](_0x30a8fd))_0x5d8b87['on'](_0x4b7ef3,_0x30a8fd[_0x4b7ef3]);return function(){const _0x2bc929=_0x3dc1a2;for(const _0x3ce5f1 of Object[_0x2bc929(0x352)](_0x30a8fd))_0x5d8b87[_0x2bc929(0x2ba)](_0x3ce5f1,_0x30a8fd[_0x3ce5f1]);};}function _0x13927e(_0x38c336){const _0x39936c=_0x4bd289;_0x38c336[_0x39936c(0x22c)]=_0x24dc8d,_0x38c336['emit'](_0x39936c(0x1f1));}function _0x46de18(){const _0x21efc4=_0x4bd289;this[_0x21efc4(0x34b)]();}function _0x3a4cfb(_0x40982a,_0x1b04ec,_0x6e86,_0x4405e0){const _0x51fbd5=_0x4bd289;_0x6e86=_0x6e86||_0x443564[_0x51fbd5(0x331)][_0x1b04ec],_0x4405e0={'Connection':'close','Content-Type':_0x51fbd5(0x1ca),'Content-Length':Buffer[_0x51fbd5(0x221)](_0x6e86),..._0x4405e0},_0x40982a[_0x51fbd5(0x2d3)](_0x51fbd5(0x2f4),_0x40982a[_0x51fbd5(0x34b)]),_0x40982a[_0x51fbd5(0x1f0)](_0x51fbd5(0x32a)+_0x1b04ec+'\x20'+_0x443564['STATUS_CODES'][_0x1b04ec]+'\x0d\x0a'+Object[_0x51fbd5(0x352)](_0x4405e0)[_0x51fbd5(0x21b)](_0x45a56a=>_0x45a56a+':\x20'+_0x4405e0[_0x45a56a])['join']('\x0d\x0a')+_0x51fbd5(0x31d)+_0x6e86);}function _0x541b45(_0x3224e5,_0x43fdfc,_0x5acbcd,_0x2c29ca,_0x33d676,_0x5ab090){const _0x273486=_0x4bd289;if(_0x3224e5[_0x273486(0x2a6)]('wsClientError')){const _0x1ef044=new Error(_0x33d676);Error[_0x273486(0x219)](_0x1ef044,_0x541b45),_0x3224e5[_0x273486(0x1b0)](_0x273486(0x2b8),_0x1ef044,_0x5acbcd,_0x43fdfc);}else _0x3a4cfb(_0x5acbcd,_0x2c29ca,_0x33d676,_0x5ab090);}return Te;}er();var tr=Object['getOwnPropertyDescriptor'],rr=(_0x244971,_0x5972b6,_0x4bd373,_0x2d1c6f)=>{const _0x18ce78=_0x575908;for(var _0x41bf3d=_0x2d1c6f>0x1?void 0x0:_0x2d1c6f?tr(_0x5972b6,_0x4bd373):_0x5972b6,_0x1feee3=_0x244971[_0x18ce78(0x2d2)]-0x1,_0x3ab49b;_0x1feee3>=0x0;_0x1feee3--)(_0x3ab49b=_0x244971[_0x1feee3])&&(_0x41bf3d=_0x3ab49b(_0x41bf3d)||_0x41bf3d);return _0x41bf3d;},sr=(_0x41fbd8,_0x54a883)=>(_0x457505,_0x4d0aff)=>_0x54a883(_0x457505,_0x4d0aff,_0x41fbd8);let Ne=class extends _0xbeb31e{constructor(_0x354bed){const _0x15c607=_0x575908;super(),this[_0x15c607(0x1f3)]=_0x354bed;}[_0x575908(0x1de)](_0x410ed1){const _0x425a73=_0x575908;var _0x2c49c9;const _0x45f579=(_0x2c49c9=this['_configService'][_0x425a73(0x26c)](Be))==null?void 0x0:_0x2c49c9[_0x425a73(0x1e7)];try{const _0x4fae5f=new Qt(_0x410ed1,{'headers':{..._0x45f579}}),_0x308554=new _0x4b2a05();return{'URL':_0x410ed1,'close':(_0x31670c,_0x46b2af)=>{const _0x44d2f1=_0x425a73;_0x4fae5f[_0x44d2f1(0x1f1)](_0x31670c,_0x46b2af),_0x308554['dispose']();},'send':_0x3d85a9=>{const _0xb6feb8=_0x425a73;_0x4fae5f[_0xb6feb8(0x292)](_0x3d85a9);},'open$':new _0x51d3e5(_0x125914=>{const _0x3c8ca6=_0x425a73,_0x3c41ee=_0x37e20f=>_0x125914[_0x3c8ca6(0x1f8)](_0x37e20f);_0x4fae5f[_0x3c8ca6(0x28c)]('open',_0x3c41ee),_0x308554[_0x3c8ca6(0x348)](_0xac0137(()=>_0x4fae5f[_0x3c8ca6(0x1fb)](_0x3c8ca6(0x298),_0x3c41ee)));})[_0x425a73(0x231)](_0x1788ba()),'close$':new _0x51d3e5(_0x35a416=>{const _0xc59d1d=_0x425a73,_0x72fd82=_0x5ec3cf=>_0x35a416['next'](_0x5ec3cf);_0x4fae5f[_0xc59d1d(0x28c)]('close',_0x72fd82),_0x308554['add'](_0xac0137(()=>_0x4fae5f[_0xc59d1d(0x1fb)](_0xc59d1d(0x1f1),_0x72fd82)));})[_0x425a73(0x231)](_0x1788ba()),'error$':new _0x51d3e5(_0x3aa608=>{const _0xb4d89f=_0x425a73,_0xdcf08a=_0x5debaa=>_0x3aa608[_0xb4d89f(0x1f8)](_0x5debaa);_0x4fae5f[_0xb4d89f(0x28c)](_0xb4d89f(0x20c),_0xdcf08a),_0x308554['add'](_0xac0137(()=>_0x4fae5f[_0xb4d89f(0x1fb)](_0xb4d89f(0x20c),_0xdcf08a)));})[_0x425a73(0x231)](_0x1788ba()),'message$':new _0x51d3e5(_0x2be9aa=>{const _0x466b41=_0x425a73,_0x105b64=_0x163337=>_0x2be9aa[_0x466b41(0x1f8)](_0x163337);_0x4fae5f[_0x466b41(0x28c)](_0x466b41(0x268),_0x105b64),_0x308554[_0x466b41(0x348)](_0xac0137(()=>_0x4fae5f[_0x466b41(0x1fb)](_0x466b41(0x268),_0x105b64)));})[_0x425a73(0x231)](_0x1788ba())};}catch(_0x5d3473){return console[_0x425a73(0x20c)](_0x5d3473),null;}}};Ne=rr([sr(0x0,_0x2293be)],Ne);var ir=Object['defineProperty'],nr=Object['getOwnPropertyDescriptor'],or=(_0x18eae1,_0x13eb14,_0x1a3411)=>_0x13eb14 in _0x18eae1?ir(_0x18eae1,_0x13eb14,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a3411}):_0x18eae1[_0x13eb14]=_0x1a3411,ar=(_0x6e5339,_0x594547,_0xc722ed,_0x26fef2)=>{const _0x43eeff=_0x575908;for(var _0x5412a5=_0x26fef2>0x1?void 0x0:_0x26fef2?nr(_0x594547,_0xc722ed):_0x594547,_0x4adeb9=_0x6e5339[_0x43eeff(0x2d2)]-0x1,_0x265118;_0x4adeb9>=0x0;_0x4adeb9--)(_0x265118=_0x6e5339[_0x4adeb9])&&(_0x5412a5=_0x265118(_0x5412a5)||_0x5412a5);return _0x5412a5;},ke=(_0x2cdd55,_0xf54e2e)=>(_0x410d36,_0x587679)=>_0xf54e2e(_0x410d36,_0x587679,_0x2cdd55),lr=(_0x2c93b2,_0x21f09e,_0x293e52)=>or(_0x2c93b2,_0x21f09e+'',_0x293e52);let Pe=class extends _0x14d27b{constructor(_0x38799e=Ft,_0x336be,_0x506ead,_0x51d009){const _0x4e943b=_0x575908;_0x38799e[_0x4e943b(0x1e7)]||_0x336be['warn'](_0x4e943b(0x2e6)),super(),this['_configService']=_0x506ead,this['_injector']=_0x51d009,this[_0x4e943b(0x1f3)][_0x4e943b(0x234)](Be,_0x38799e);}['onStarting'](){this['_registerDependencies']();}['_registerDependencies'](){const _0x37e134=_0x575908;_0x524fc6(this[_0x37e134(0x260)],[[_0x4246d5,{'useClass':Ne}]]);}};lr(Pe,'pluginName',_0x575908(0x320)),Pe=ar([_0x316a78(_0x310030),ke(0x1,_0x56e26b),ke(0x2,_0x2293be),ke(0x3,_0x3358e0(_0x276bbd))],Pe);var fr=Object['getOwnPropertyDescriptor'],cr=(_0x32b629,_0x39a533,_0x39bdd7,_0x5216ac)=>{const _0x1dea2d=_0x575908;for(var _0xa7d769=_0x5216ac>0x1?void 0x0:_0x5216ac?fr(_0x39a533,_0x39bdd7):_0x39a533,_0x5be3d5=_0x32b629[_0x1dea2d(0x2d2)]-0x1,_0x696bdf;_0x5be3d5>=0x0;_0x5be3d5--)(_0x696bdf=_0x32b629[_0x5be3d5])&&(_0xa7d769=_0x696bdf(_0xa7d769)||_0xa7d769);return _0xa7d769;},se=(_0xc8a358,_0x43598a)=>(_0x1a6e12,_0x3b6c9e)=>_0x43598a(_0x1a6e12,_0x3b6c9e,_0xc8a358);let at=class extends _0x177ea6{constructor(_0x5f3d85,_0x5eb8ff,_0x401b21,_0x549cc0,_0x35c5a0){const _0x4623b2=_0x575908;super(_0x5f3d85,_0x5eb8ff,_0x401b21,_0x549cc0,_0x35c5a0);const _0x1cb030=this[_0x4623b2(0x1f3)][_0x4623b2(0x26c)](Be);this[_0x4623b2(0x334)]['registerHTTPInterceptor']({'interceptor':(_0x3fcdba,_0x2e259f)=>{const _0x3459fb=_0x4623b2;var _0x4c6dae;const _0x35e63c=_0x3fcdba['headers'];return(_0x4c6dae=_0x1cb030==null?void 0x0:_0x1cb030[_0x3459fb(0x1e7)])!=null&&_0x4c6dae['cookie']&&_0x35e63c['set'](_0x3459fb(0x1c8),_0x1cb030['customHeaders'][_0x3459fb(0x264)]),_0x2e259f(_0x3fcdba);}});}async[_0x575908(0x1de)](_0x288958){const _0x3f2912=_0x575908;return this[_0x3f2912(0x257)](_0x288958);}};at=cr([se(0x0,_0x3358e0(_0x276bbd)),se(0x1,_0x3358e0(_0x191880)),se(0x2,_0x2293be),se(0x3,_0x56e26b),se(0x4,_0x1f934a)],at);export{Be as COLLABORATION_CLIENT_NODE_CONFIG_KEY,at as NodeCollaborationSocketService,Pe as UniverCollaborationClientNodePlugin};
1
+ const _0x4bc144=_0x5e22;(function(_0x4b6bff,_0xea197){const _0xbacae2=_0x5e22,_0x3063a=_0x4b6bff();while(!![]){try{const _0x3680ba=parseInt(_0xbacae2(0x34c))/0x1+parseInt(_0xbacae2(0x2ae))/0x2*(-parseInt(_0xbacae2(0x326))/0x3)+-parseInt(_0xbacae2(0x263))/0x4*(parseInt(_0xbacae2(0x24d))/0x5)+-parseInt(_0xbacae2(0x2c7))/0x6*(-parseInt(_0xbacae2(0x36c))/0x7)+-parseInt(_0xbacae2(0x300))/0x8+-parseInt(_0xbacae2(0x200))/0x9+parseInt(_0xbacae2(0x379))/0xa;if(_0x3680ba===_0xea197)break;else _0x3063a['push'](_0x3063a['shift']());}catch(_0x127ab9){_0x3063a['push'](_0x3063a['shift']());}}}(_0x1b1c,0x53cb5));import{UniverCollaborationClientPlugin as _0x5486fe,CollaborationSocketService as _0x4bf000}from'@univerjs-pro/collaboration-client';import{Disposable as _0x35b763,DisposableCollection as _0x968827,toDisposable as _0x5cd91c,IConfigService as _0x4e136d,DependentOn as _0x4bf50d,ILogService as _0x4f088e,Inject as _0x559eb0,Injector as _0x40a410,Plugin as _0x1a238f,registerDependencies as _0x3c8ebd}from'@univerjs/core';import{ISocketService as _0x278a56,HTTPService as _0x4e6c74}from'@univerjs/network';function _0x1b1c(){const _0x20f8b=['haveLength','The\x20data\x20size\x20must\x20not\x20be\x20greater\x20than\x20125\x20bytes','value','WS_ERR_INVALID_OPCODE','format','_receiver','kDone','buffer','_socket','verifyClient','join','_allowSynchronousEvents','getMask','_bufferedBytes','Invalid\x20Sec-WebSocket-Extensions\x20header','bufferedAmount','concat','HTTP/1.1\x20','Upgrade','blob','18672BHEHZb','isView','frame','_masked','toLowerCase','redirect','wss:','entries','port','_originalSecure','stream','headers','_fin','_removeListeners','_decompress','statusCode','Unexpected\x20server\x20response:\x20','The\x20URL\x27s\x20protocol\x20must\x20be\x20one\x20of\x20\x22ws:\x22,\x20\x22wss:\x22,\x20\x22http:\x22,\x20\x22https:\x22,\x20or\x20\x22ws+unix:\x22','WS_NO_BUFFER_UTIL','flush','values','_readyState','unexpected-response','Unknown\x20parameter\x20\x22','listenerCount','_skipUTF8Validation','connect','sec-websocket-origin','slice','warn','delete','invalid\x20opcode\x20','errorEmitted','handleUpgrade','_originalHostOrSocketPath','nodebuffer','Sec-WebSocket-Protocol','construct','617707bvfZbE','upgrade','length','The\x20socket\x20was\x20closed\x20while\x20the\x20blob\x20was\x20being\x20read','collaboration-client-node.config','createDeflateRaw','pipe','species','Sec-WebSocket-Accept:\x20','Parameter\x20\x22','location','accept','getPayloadLength16','WebSocket\x20is\x20not\x20open:\x20readyState\x20','_configService','_generateMask','unmask','target','threshold','STATUS_CODES','map','_mask','sec-websocket-extensions','Max\x20payload\x20size\x20exceeded','type','_originalIpc','charCodeAt','\x22\x20subprotocol\x20is\x20duplicated','readyState','CONNECTING','kAborted','removeListener','186767kBMuup','WebSocket','_isServer','maskBuffer','isArray','An\x20invalid\x20or\x20duplicated\x20subprotocol\x20was\x20specified','createError','_loop','origin','Z_DEFAULT_WINDOWBITS','Upgrade:\x20websocket','_req','kTarget','9373130jQHjQr','kWasClean','_extensions','authorization','clientNoContextTakeover','onmessage','protocol','concurrencyLimit','arraybuffer','CLOSING','forEach','noServer','isPaused','arrayBuffer','default','skipUTF8Validation','dispatch','13,\x208','WS_ERR_UNEXPECTED_MASK','WS_ERR_UNSUPPORTED_MESSAGE_LENGTH','_closeCode','params','\x20(supported\x20versions:\x20','_registerDependencies','_bufferedAmount','allowSynchronousEvents','Invalid\x20Sec-WebSocket-Accept\x20header','pause','fragments','_messageLength','_errored','hostname','WebSocket\x20is\x20not\x20open:\x20readyState\x200\x20(CONNECTING)','defineProperty','pong','ws:','consume','Unexpected\x20end\x20of\x20input','_closeTimer','size','File','finishRequest','keys','_final','_closeMessage','Invalid\x20Sec-WebSocket-Protocol\x20header','startLoop','buffers','allocUnsafe','serverMaxWindowBits','dispose','onopen','setSocket','getData','_threshold','OPEN','endEmitted','create','nextTick','_redirects','3243213rFkxDK','address','isInteger','text/plain','objectMode','\x0d\x0a\x0d\x0a','permessage-deflate','url','unshift','includes','kData','handleEvent','enqueue','socket','emit','terminate','request','get','websocket','once','getPayloadLength64','clients','toString','catch','then','Unsupported\x20protocol\x20version:\x20','autoPong','CLOSED','shouldHandle','\x22:\x20','createServer','The\x20URL\x27s\x20pathname\x20is\x20empty','destroyed','_state','_writableState','options','dataMessage','shift','WS_ERR_INVALID_UTF8','exports','WebSocket\x20was\x20closed\x20before\x20the\x20connection\x20was\x20established','Origin','_fragmented','WS_ERR_UNEXPECTED_RSV_1','servername','_buffers','rsv1','First\x20argument\x20must\x20be\x20a\x20valid\x20error\x20code\x20number','destroy','host','writable','maxPayload','kReason','Connection:\x20Upgrade','_totalPayloadLength','Server\x20sent\x20a\x20Sec-WebSocket-Extensions\x20header\x20but\x20no\x20extension\x20was\x20requested','ping','Unsupported\x20WebSocket\x20frame:\x20payload\x20length\x20>\x202^53\x20-\x201','base64','getOwnPropertyDescriptor','data','_paused','serverNoContextTakeover','binaryType','connection','kRun','controlMessage','258EAFA5-E914-47DA-95CA-C5AB0DC85B11','prototype','test','The\x20server\x20is\x20operating\x20in\x20\x22noServer\x22\x20mode','isValidUTF8','_no_context_takeover','sec-websocket-accept','cookie','WS_ERR_INVALID_CLOSE_CODE','backlog','3062270ROAWRo','_server','createConnection','_errorEmitted','set','onStarting','Basic\x20','writeUIntBE','__esModule','RSV2\x20and\x20RSV3\x20must\x20be\x20clear','writeHead','The\x20URL\x20contains\x20a\x20fragment\x20identifier','byteLength','generateMask','send','_fragments','_closeFrameSent','Invalid\x20or\x20unacceptable\x20Sec-WebSocket-Extensions\x20header','MASK\x20must\x20be\x20set','sendFrame','end','_inflate','4Ahwzon','kByteLength','zlibInflateOptions','RSV1\x20must\x20be\x20clear','Missing\x20or\x20invalid\x20Sec-WebSocket-Version\x20header','perMessageDeflate','jobs','parse','_binaryType','Server\x20indicated\x20an\x20extension\x20that\x20was\x20not\x20requested','Invalid\x20WebSocket\x20frame:\x20','push','protocolVersion','zlibDeflateOptions','readable','server_no_context_takeover','_deflate','has','Missing\x20or\x20invalid\x20Sec-WebSocket-Key\x20header','kCode','hasOwnProperty','createInflateRaw','Server\x20sent\x20no\x20subprotocol','Unexpected\x20character\x20at\x20index\x20','call','_write','Blob','finish','emitClose','setNoDelay','href','cleanup','apply','Opening\x20handshake\x20has\x20timed\x20out','client_no_context_takeover','captureStackTrace','dequeue','Invalid\x20Upgrade\x20header','update','write','readOnly','find','_maskBuffer','sec-websocket-protocol','removeAllListeners','timeout','number','reason','_opcode','followRedirects','bind','https:','removeEventListener','search','conclude','_max_window_bits','freeze','isBuffer','_autoPong','startsWith','defaultPort','handleProtocols','WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH','close','_payloadLength','_options','onerror','handshakeTimeout','_sender','compress','http:','Server\x20sent\x20an\x20invalid\x20subprotocol','The\x20deflate\x20stream\x20was\x20closed\x20while\x20data\x20was\x20being\x20processed','function','digest','34DxUVsW','concurrency','error','Sec-WebSocket-Extensions','Invalid\x20value\x20for\x20parameter\x20\x22','_compress','decompress','The\x20server\x20is\x20not\x20running','sha1','createSocket','finished','Server\x20sent\x20a\x20subprotocol\x20but\x20none\x20was\x20requested','fin','completeUpgrade','customHeaders','getBlobData','isIP','open','_injector','normalizeParams','_queue','response','Invalid\x20URL:\x20','object','extensions','42AnVBnT','_doCreateSocket','password','WS_ERR_EXPECTED_FIN','username','setHeader','method','maxRedirects','acceptAsClient','env','kListener','path','message','toStringTag','getConfig','WS_ERR_EXPECTED_MASK','_protocol','extensionName','WS_NO_UTF_8_VALIDATE','indexOf','_readableState','_maxPayload','string','from','None\x20of\x20the\x20extension\x20offers\x20can\x20be\x20accepted','setTimeout','WS_ERR_UNEXPECTED_RSV_2_3','mask','_compressed','Invalid\x20HTTP\x20method','alloc','total-length','socketPath','_httpService','byteOffset','invalid\x20UTF-8\x20sequence','wasClean','kType','_url','kMessage','add','ws+unix:','pathname','_destroy','auth','registerHTTPInterceptor','code','Sec-WebSocket-Protocol:\x20','listeners','addEventListener','resume','reset','server.handleUpgrade()\x20was\x20called\x20more\x20than\x20once\x20with\x20the\x20same\x20socket,\x20possibly\x20due\x20to\x20a\x20misconfiguration','Maximum\x20redirects\x20exceeded','invalid\x20payload\x20length\x20','FIN\x20must\x20be\x20set','server_max_window_bits','2559576pTLXic','server','opcode','client_max_window_bits','pluginName','_shouldEmitClose','The\x20message\x20must\x20not\x20be\x20greater\x20than\x20123\x20bytes','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','clientMaxWindowBits','pow','Sec-WebSocket-Extensions:\x20','_closeFrameReceived','next','The\x20\x22','readUInt32BE','_firstFragment','wsClientError','abort'];_0x1b1c=function(){return _0x20f8b;};return _0x1b1c();}import{Observable as _0xe8c78,share as _0x366d94}from'rxjs';import _0x2b706c from'events';import _0x34025c from'https';import _0xc49ca8 from'http';import _0x22f0e4 from'net';import _0x5d446d from'tls';import _0x1708a4 from'crypto';import _0x1142f9 from'stream';import _0x27fa54 from'url';import _0x379b49 from'zlib';function _0x5e22(_0x193faa,_0x54f7a5){const _0x1b1c30=_0x1b1c();return _0x5e22=function(_0x5e2205,_0x51efad){_0x5e2205=_0x5e2205-0x1f1;let _0x295d98=_0x1b1c30[_0x5e2205];return _0x295d98;},_0x5e22(_0x193faa,_0x54f7a5);}import _0x10c01a from'buffer';import{ISnapshotServerService as _0x29527f}from'@univerjs-pro/collaboration';const Be=_0x4bc144(0x350),Ft={'customHeaders':{}};function Wt(_0x17a2a1){const _0x3bccbb=_0x4bc144;return _0x17a2a1&&_0x17a2a1['__esModule']&&Object['prototype'][_0x3bccbb(0x277)][_0x3bccbb(0x27b)](_0x17a2a1,_0x3bccbb(0x387))?_0x17a2a1[_0x3bccbb(0x387)]:_0x17a2a1;}function ut(_0x25b539){const _0x556dc5=_0x4bc144;if(Object[_0x556dc5(0x244)][_0x556dc5(0x277)][_0x556dc5(0x27b)](_0x25b539,_0x556dc5(0x255)))return _0x25b539;var _0x132aff=_0x25b539[_0x556dc5(0x387)];if(typeof _0x132aff==_0x556dc5(0x2ac)){var _0x10eb7a=function _0x389670(){const _0x2ecdd2=_0x556dc5;var _0x5485d5=!0x1;try{_0x5485d5=this instanceof _0x389670;}catch{}return _0x5485d5?Reflect[_0x2ecdd2(0x34b)](_0x132aff,arguments,this['constructor']):_0x132aff[_0x2ecdd2(0x283)](this,arguments);};_0x10eb7a['prototype']=_0x132aff[_0x556dc5(0x244)];}else _0x10eb7a={};return Object['defineProperty'](_0x10eb7a,_0x556dc5(0x255),{'value':!0x0}),Object['keys'](_0x25b539)['forEach'](function(_0x1dfa7d){const _0x5ae43b=_0x556dc5;var _0x141207=Object[_0x5ae43b(0x23b)](_0x25b539,_0x1dfa7d);Object[_0x5ae43b(0x39a)](_0x10eb7a,_0x1dfa7d,_0x141207[_0x5ae43b(0x211)]?_0x141207:{'enumerable':!0x0,'get':function(){return _0x25b539[_0x1dfa7d];}});}),_0x10eb7a;}var te={'exports':{}},ge,Ye;function V(){const _0x123ca3=_0x4bc144;if(Ye)return ge;Ye=0x1;const _0x4bcf04=[_0x123ca3(0x349),_0x123ca3(0x381),_0x123ca3(0x395)],_0x289e2f=typeof Blob<'u';return _0x289e2f&&_0x4bcf04['push'](_0x123ca3(0x325)),ge={'BINARY_TYPES':_0x4bcf04,'EMPTY_BUFFER':Buffer['alloc'](0x0),'GUID':_0x123ca3(0x243),'hasBlob':_0x289e2f,'kForOnEventAttribute':Symbol('kIsForOnEventAttribute'),'kListener':Symbol(_0x123ca3(0x2d1)),'kStatusCode':Symbol('status-code'),'kWebSocket':Symbol('websocket'),'NOOP':()=>{}},ge;}const jt={},Gt=Object[_0x4bc144(0x29b)](Object['defineProperty']({'__proto__':null,'default':jt},Symbol[_0x4bc144(0x2d4)],{'value':'Module'})),Vt=ut(Gt);var Ke;function ce(){const _0x9e4314=_0x4bc144;if(Ke)return te[_0x9e4314(0x227)];Ke=0x1;const {EMPTY_BUFFER:_0x3c12d0}=V(),_0x11e2c8=Buffer[Symbol[_0x9e4314(0x353)]];function _0x276414(_0xd33def,_0x38e706){const _0x202811=_0x9e4314;if(_0xd33def[_0x202811(0x34e)]===0x0)return _0x3c12d0;if(_0xd33def['length']===0x1)return _0xd33def[0x0];const _0x5aaab5=Buffer[_0x202811(0x1f4)](_0x38e706);let _0x4c2a29=0x0;for(let _0xc20040=0x0;_0xc20040<_0xd33def[_0x202811(0x34e)];_0xc20040++){const _0x5b1c8a=_0xd33def[_0xc20040];_0x5aaab5[_0x202811(0x251)](_0x5b1c8a,_0x4c2a29),_0x4c2a29+=_0x5b1c8a[_0x202811(0x34e)];}return _0x4c2a29<_0x38e706?new _0x11e2c8(_0x5aaab5[_0x202811(0x319)],_0x5aaab5[_0x202811(0x2e9)],_0x4c2a29):_0x5aaab5;}function _0xeceb06(_0x10c1a1,_0x37a804,_0x3861d7,_0x157bb6,_0x545a87){for(let _0x4e82cc=0x0;_0x4e82cc<_0x545a87;_0x4e82cc++)_0x3861d7[_0x157bb6+_0x4e82cc]=_0x10c1a1[_0x4e82cc]^_0x37a804[_0x4e82cc&0x3];}function _0x5c58c8(_0x360b73,_0x42b340){const _0x124594=_0x9e4314;for(let _0x56e6e4=0x0;_0x56e6e4<_0x360b73[_0x124594(0x34e)];_0x56e6e4++)_0x360b73[_0x56e6e4]^=_0x42b340[_0x56e6e4&0x3];}function _0x30362c(_0x1e8158){const _0x2982b2=_0x9e4314;return _0x1e8158[_0x2982b2(0x34e)]===_0x1e8158['buffer'][_0x2982b2(0x259)]?_0x1e8158[_0x2982b2(0x319)]:_0x1e8158[_0x2982b2(0x319)][_0x2982b2(0x342)](_0x1e8158[_0x2982b2(0x2e9)],_0x1e8158[_0x2982b2(0x2e9)]+_0x1e8158[_0x2982b2(0x34e)]);}function _0x17a87f(_0x2d8c5a){const _0x5f383a=_0x9e4314;if(_0x17a87f[_0x5f383a(0x28b)]=!0x0,Buffer[_0x5f383a(0x29c)](_0x2d8c5a))return _0x2d8c5a;let _0x405054;return _0x2d8c5a instanceof ArrayBuffer?_0x405054=new _0x11e2c8(_0x2d8c5a):ArrayBuffer[_0x5f383a(0x327)](_0x2d8c5a)?_0x405054=new _0x11e2c8(_0x2d8c5a['buffer'],_0x2d8c5a[_0x5f383a(0x2e9)],_0x2d8c5a[_0x5f383a(0x259)]):(_0x405054=Buffer[_0x5f383a(0x2de)](_0x2d8c5a),_0x17a87f[_0x5f383a(0x28b)]=!0x1),_0x405054;}if(te['exports']={'concat':_0x276414,'mask':_0xeceb06,'toArrayBuffer':_0x30362c,'toBuffer':_0x17a87f,'unmask':_0x5c58c8},!process[_0x9e4314(0x2d0)][_0x9e4314(0x338)])try{const _0x44411d=Vt;te[_0x9e4314(0x227)][_0x9e4314(0x2e2)]=function(_0x48387b,_0x4beb4e,_0x2e39ac,_0x50953b,_0x357ffb){const _0x42c4a3=_0x9e4314;_0x357ffb<0x30?_0xeceb06(_0x48387b,_0x4beb4e,_0x2e39ac,_0x50953b,_0x357ffb):_0x44411d[_0x42c4a3(0x2e2)](_0x48387b,_0x4beb4e,_0x2e39ac,_0x50953b,_0x357ffb);},te[_0x9e4314(0x227)]['unmask']=function(_0x3b9cdf,_0xc6891b){const _0x5c6097=_0x9e4314;_0x3b9cdf[_0x5c6097(0x34e)]<0x20?_0x5c58c8(_0x3b9cdf,_0xc6891b):_0x44411d[_0x5c6097(0x35c)](_0x3b9cdf,_0xc6891b);};}catch{}return te[_0x9e4314(0x227)];}var ye,Xe;function qt(){const _0x39430f=_0x4bc144;if(Xe)return ye;Xe=0x1;const _0xb6fa01=Symbol(_0x39430f(0x318)),_0x415f91=Symbol(_0x39430f(0x241));class _0x2850e9{constructor(_0x40a33b){const _0x2d9286=_0x39430f;this[_0xb6fa01]=()=>{this['pending']--,this[_0x415f91]();},this[_0x2d9286(0x2af)]=_0x40a33b||0x1/0x0,this[_0x2d9286(0x269)]=[],this['pending']=0x0;}[_0x39430f(0x2ef)](_0x329458){const _0x3cd980=_0x39430f;this[_0x3cd980(0x269)]['push'](_0x329458),this[_0x415f91]();}[_0x415f91](){const _0x570397=_0x39430f;if(this['pending']!==this[_0x570397(0x2af)]&&this[_0x570397(0x269)][_0x570397(0x34e)]){const _0x3cb69b=this[_0x570397(0x269)][_0x570397(0x225)]();this['pending']++,_0x3cb69b(this[_0xb6fa01]);}}}return ye=_0x2850e9,ye;}var ve,Ze;function he(){const _0x4b626d=_0x4bc144;if(Ze)return ve;Ze=0x1;const _0xbcf120=_0x379b49,_0x3d60e8=ce(),_0x18c596=qt(),{kStatusCode:_0x229944}=V(),_0x17514c=Buffer[Symbol[_0x4b626d(0x353)]],_0x25504f=Buffer['from']([0x0,0x0,0xff,0xff]),_0x51962a=Symbol(_0x4b626d(0x206)),_0x151679=Symbol(_0x4b626d(0x2e6)),_0x4a36c7=Symbol('callback'),_0x124b1a=Symbol(_0x4b626d(0x1f3)),_0x601d2e=Symbol('error');let _0x5c43b9;class _0x294f75{constructor(_0xae761d,_0x485bed,_0x5598ed){const _0x5ae207=_0x4b626d;if(this[_0x5ae207(0x2dc)]=_0x5598ed|0x0,this['_options']=_0xae761d||{},this[_0x5ae207(0x1fa)]=this[_0x5ae207(0x2a4)]['threshold']!==void 0x0?this[_0x5ae207(0x2a4)][_0x5ae207(0x35e)]:0x400,this[_0x5ae207(0x36e)]=!!_0x485bed,this[_0x5ae207(0x273)]=null,this['_inflate']=null,this[_0x5ae207(0x38e)]=null,!_0x5c43b9){const _0x2b933f=this[_0x5ae207(0x2a4)][_0x5ae207(0x380)]!==void 0x0?this[_0x5ae207(0x2a4)][_0x5ae207(0x380)]:0xa;_0x5c43b9=new _0x18c596(_0x2b933f);}}static get['extensionName'](){const _0x529f9a=_0x4b626d;return _0x529f9a(0x206);}['offer'](){const _0x3020a7=_0x4b626d,_0x4df559={};return this['_options'][_0x3020a7(0x23e)]&&(_0x4df559[_0x3020a7(0x272)]=!0x0),this[_0x3020a7(0x2a4)]['clientNoContextTakeover']&&(_0x4df559[_0x3020a7(0x285)]=!0x0),this[_0x3020a7(0x2a4)][_0x3020a7(0x1f5)]&&(_0x4df559[_0x3020a7(0x2ff)]=this[_0x3020a7(0x2a4)]['serverMaxWindowBits']),this[_0x3020a7(0x2a4)][_0x3020a7(0x308)]?_0x4df559[_0x3020a7(0x303)]=this[_0x3020a7(0x2a4)][_0x3020a7(0x308)]:this[_0x3020a7(0x2a4)][_0x3020a7(0x308)]==null&&(_0x4df559[_0x3020a7(0x303)]=!0x0),_0x4df559;}[_0x4b626d(0x357)](_0x5bdf2c){const _0x34d628=_0x4b626d;return _0x5bdf2c=this[_0x34d628(0x2c1)](_0x5bdf2c),this[_0x34d628(0x38e)]=this[_0x34d628(0x36e)]?this['acceptAsServer'](_0x5bdf2c):this[_0x34d628(0x2cf)](_0x5bdf2c),this[_0x34d628(0x38e)];}['cleanup'](){const _0x3856c9=_0x4b626d;if(this[_0x3856c9(0x262)]&&(this[_0x3856c9(0x262)][_0x3856c9(0x2a2)](),this[_0x3856c9(0x262)]=null),this['_deflate']){const _0x2b7ec8=this[_0x3856c9(0x273)][_0x4a36c7];this[_0x3856c9(0x273)]['close'](),this[_0x3856c9(0x273)]=null,_0x2b7ec8&&_0x2b7ec8(new Error(_0x3856c9(0x2ab)));}}['acceptAsServer'](_0x48d063){const _0x3ea02b=_0x4b626d,_0x41c5d6=this[_0x3ea02b(0x2a4)],_0x59d464=_0x48d063[_0x3ea02b(0x28c)](_0x3a6ce4=>!(_0x41c5d6['serverNoContextTakeover']===!0x1&&_0x3a6ce4[_0x3ea02b(0x272)]||_0x3a6ce4[_0x3ea02b(0x2ff)]&&(_0x41c5d6[_0x3ea02b(0x1f5)]===!0x1||typeof _0x41c5d6['serverMaxWindowBits']=='number'&&_0x41c5d6['serverMaxWindowBits']>_0x3a6ce4[_0x3ea02b(0x2ff)])||typeof _0x41c5d6['clientMaxWindowBits']==_0x3ea02b(0x291)&&!_0x3a6ce4[_0x3ea02b(0x303)]));if(!_0x59d464)throw new Error(_0x3ea02b(0x2df));return _0x41c5d6[_0x3ea02b(0x23e)]&&(_0x59d464[_0x3ea02b(0x272)]=!0x0),_0x41c5d6[_0x3ea02b(0x37d)]&&(_0x59d464[_0x3ea02b(0x285)]=!0x0),typeof _0x41c5d6[_0x3ea02b(0x1f5)]==_0x3ea02b(0x291)&&(_0x59d464[_0x3ea02b(0x2ff)]=_0x41c5d6[_0x3ea02b(0x1f5)]),typeof _0x41c5d6[_0x3ea02b(0x308)]=='number'?_0x59d464['client_max_window_bits']=_0x41c5d6[_0x3ea02b(0x308)]:(_0x59d464['client_max_window_bits']===!0x0||_0x41c5d6['clientMaxWindowBits']===!0x1)&&delete _0x59d464[_0x3ea02b(0x303)],_0x59d464;}[_0x4b626d(0x2cf)](_0xd40645){const _0xf1ffc8=_0x4b626d,_0x5047ef=_0xd40645[0x0];if(this['_options'][_0xf1ffc8(0x37d)]===!0x1&&_0x5047ef[_0xf1ffc8(0x285)])throw new Error('Unexpected\x20parameter\x20\x22client_no_context_takeover\x22');if(!_0x5047ef[_0xf1ffc8(0x303)])typeof this[_0xf1ffc8(0x2a4)][_0xf1ffc8(0x308)]==_0xf1ffc8(0x291)&&(_0x5047ef['client_max_window_bits']=this[_0xf1ffc8(0x2a4)][_0xf1ffc8(0x308)]);else{if(this[_0xf1ffc8(0x2a4)][_0xf1ffc8(0x308)]===!0x1||typeof this[_0xf1ffc8(0x2a4)]['clientMaxWindowBits']=='number'&&_0x5047ef[_0xf1ffc8(0x303)]>this[_0xf1ffc8(0x2a4)][_0xf1ffc8(0x308)])throw new Error('Unexpected\x20or\x20invalid\x20parameter\x20\x22client_max_window_bits\x22');}return _0x5047ef;}[_0x4b626d(0x2c1)](_0x25f081){const _0x11ae8a=_0x4b626d;return _0x25f081[_0x11ae8a(0x383)](_0x81889f=>{const _0x472f29=_0x11ae8a;Object[_0x472f29(0x3a3)](_0x81889f)[_0x472f29(0x383)](_0x22de3e=>{const _0x42dd18=_0x472f29;let _0x293bcb=_0x81889f[_0x22de3e];if(_0x293bcb[_0x42dd18(0x34e)]>0x1)throw new Error(_0x42dd18(0x355)+_0x22de3e+'\x22\x20must\x20have\x20only\x20a\x20single\x20value');if(_0x293bcb=_0x293bcb[0x0],_0x22de3e===_0x42dd18(0x303)){if(_0x293bcb!==!0x0){const _0x49aa1c=+_0x293bcb;if(!Number[_0x42dd18(0x202)](_0x49aa1c)||_0x49aa1c<0x8||_0x49aa1c>0xf)throw new TypeError('Invalid\x20value\x20for\x20parameter\x20\x22'+_0x22de3e+_0x42dd18(0x21d)+_0x293bcb);_0x293bcb=_0x49aa1c;}else{if(!this[_0x42dd18(0x36e)])throw new TypeError(_0x42dd18(0x2b2)+_0x22de3e+'\x22:\x20'+_0x293bcb);}}else{if(_0x22de3e===_0x42dd18(0x2ff)){const _0xb46370=+_0x293bcb;if(!Number[_0x42dd18(0x202)](_0xb46370)||_0xb46370<0x8||_0xb46370>0xf)throw new TypeError(_0x42dd18(0x2b2)+_0x22de3e+_0x42dd18(0x21d)+_0x293bcb);_0x293bcb=_0xb46370;}else{if(_0x22de3e===_0x42dd18(0x285)||_0x22de3e===_0x42dd18(0x272)){if(_0x293bcb!==!0x0)throw new TypeError('Invalid\x20value\x20for\x20parameter\x20\x22'+_0x22de3e+'\x22:\x20'+_0x293bcb);}else throw new Error(_0x42dd18(0x33d)+_0x22de3e+'\x22');}}_0x81889f[_0x22de3e]=_0x293bcb;});}),_0x25f081;}[_0x4b626d(0x2b4)](_0x472896,_0x2063e3,_0x2dd52f){const _0xae5b03=_0x4b626d;_0x5c43b9[_0xae5b03(0x2ef)](_0x1c5893=>{this['_decompress'](_0x472896,_0x2063e3,(_0x551f65,_0x198b2e)=>{_0x1c5893(),_0x2dd52f(_0x551f65,_0x198b2e);});});}[_0x4b626d(0x2a8)](_0x3ccce9,_0x19b769,_0x2040f0){_0x5c43b9['add'](_0x2ac15b=>{const _0x3ccc76=_0x5e22;this[_0x3ccc76(0x2b3)](_0x3ccce9,_0x19b769,(_0x419a53,_0x1d8e11)=>{_0x2ac15b(),_0x2040f0(_0x419a53,_0x1d8e11);});});}[_0x4b626d(0x334)](_0x30358a,_0x343f0e,_0x45a46b){const _0xb7f784=_0x4b626d,_0x3b5370=this['_isServer']?'client':_0xb7f784(0x301);if(!this[_0xb7f784(0x262)]){const _0xbed057=_0x3b5370+_0xb7f784(0x29a),_0x9c13e9=typeof this[_0xb7f784(0x38e)][_0xbed057]!=_0xb7f784(0x291)?_0xbcf120['Z_DEFAULT_WINDOWBITS']:this[_0xb7f784(0x38e)][_0xbed057];this[_0xb7f784(0x262)]=_0xbcf120[_0xb7f784(0x278)]({...this[_0xb7f784(0x2a4)][_0xb7f784(0x265)],'windowBits':_0x9c13e9}),this[_0xb7f784(0x262)][_0x51962a]=this,this[_0xb7f784(0x262)][_0x151679]=0x0,this[_0xb7f784(0x262)][_0x124b1a]=[],this[_0xb7f784(0x262)]['on'](_0xb7f784(0x2b0),_0xb0c3b4),this[_0xb7f784(0x262)]['on'](_0xb7f784(0x23c),_0x37bfa9);}this[_0xb7f784(0x262)][_0x4a36c7]=_0x45a46b,this[_0xb7f784(0x262)]['write'](_0x30358a),_0x343f0e&&this[_0xb7f784(0x262)][_0xb7f784(0x28a)](_0x25504f),this[_0xb7f784(0x262)][_0xb7f784(0x339)](()=>{const _0x5bf098=_0xb7f784,_0xf10f2=this['_inflate'][_0x601d2e];if(_0xf10f2){this[_0x5bf098(0x262)][_0x5bf098(0x2a2)](),this['_inflate']=null,_0x45a46b(_0xf10f2);return;}const _0x3fc0e0=_0x3d60e8[_0x5bf098(0x322)](this[_0x5bf098(0x262)][_0x124b1a],this[_0x5bf098(0x262)][_0x151679]);this[_0x5bf098(0x262)][_0x5bf098(0x2db)][_0x5bf098(0x1fc)]?(this[_0x5bf098(0x262)][_0x5bf098(0x2a2)](),this[_0x5bf098(0x262)]=null):(this[_0x5bf098(0x262)][_0x151679]=0x0,this[_0x5bf098(0x262)][_0x124b1a]=[],_0x343f0e&&this[_0x5bf098(0x38e)][_0x3b5370+_0x5bf098(0x248)]&&this[_0x5bf098(0x262)][_0x5bf098(0x2fa)]()),_0x45a46b(null,_0x3fc0e0);});}[_0x4b626d(0x2b3)](_0x12fcfa,_0x2ec17a,_0x249b10){const _0x5baa31=_0x4b626d,_0x22133a=this[_0x5baa31(0x36e)]?'server':'client';if(!this[_0x5baa31(0x273)]){const _0x5583f0=_0x22133a+'_max_window_bits',_0xe26843=typeof this[_0x5baa31(0x38e)][_0x5583f0]!=_0x5baa31(0x291)?_0xbcf120[_0x5baa31(0x375)]:this[_0x5baa31(0x38e)][_0x5583f0];this[_0x5baa31(0x273)]=_0xbcf120[_0x5baa31(0x351)]({...this['_options'][_0x5baa31(0x270)],'windowBits':_0xe26843}),this['_deflate'][_0x151679]=0x0,this[_0x5baa31(0x273)][_0x124b1a]=[],this[_0x5baa31(0x273)]['on'](_0x5baa31(0x23c),_0x19d869);}this[_0x5baa31(0x273)][_0x4a36c7]=_0x249b10,this[_0x5baa31(0x273)][_0x5baa31(0x28a)](_0x12fcfa),this['_deflate'][_0x5baa31(0x339)](_0xbcf120['Z_SYNC_FLUSH'],()=>{const _0x1f3e46=_0x5baa31;if(!this[_0x1f3e46(0x273)])return;let _0x5c54ed=_0x3d60e8[_0x1f3e46(0x322)](this[_0x1f3e46(0x273)][_0x124b1a],this[_0x1f3e46(0x273)][_0x151679]);_0x2ec17a&&(_0x5c54ed=new _0x17514c(_0x5c54ed[_0x1f3e46(0x319)],_0x5c54ed[_0x1f3e46(0x2e9)],_0x5c54ed[_0x1f3e46(0x34e)]-0x4)),this[_0x1f3e46(0x273)][_0x4a36c7]=null,this[_0x1f3e46(0x273)][_0x151679]=0x0,this[_0x1f3e46(0x273)][_0x124b1a]=[],_0x2ec17a&&this[_0x1f3e46(0x38e)][_0x22133a+_0x1f3e46(0x248)]&&this[_0x1f3e46(0x273)][_0x1f3e46(0x2fa)](),_0x249b10(null,_0x5c54ed);});}}ve=_0x294f75;function _0x19d869(_0x23d9ab){const _0x4583a0=_0x4b626d;this[_0x124b1a][_0x4583a0(0x26e)](_0x23d9ab),this[_0x151679]+=_0x23d9ab['length'];}function _0x37bfa9(_0x2abefb){const _0x416010=_0x4b626d;if(this[_0x151679]+=_0x2abefb[_0x416010(0x34e)],this[_0x51962a][_0x416010(0x2dc)]<0x1||this[_0x151679]<=this[_0x51962a][_0x416010(0x2dc)]){this[_0x124b1a][_0x416010(0x26e)](_0x2abefb);return;}this[_0x601d2e]=new RangeError(_0x416010(0x363)),this[_0x601d2e][_0x416010(0x2f5)]=_0x416010(0x38c),this[_0x601d2e][_0x229944]=0x3f1,this[_0x416010(0x36b)](_0x416010(0x23c),_0x37bfa9),this[_0x416010(0x2fa)]();}function _0xb0c3b4(_0x60507e){const _0x3443b5=_0x4b626d;if(this[_0x51962a][_0x3443b5(0x262)]=null,this[_0x601d2e]){this[_0x4a36c7](this[_0x601d2e]);return;}_0x60507e[_0x229944]=0x3ef,this[_0x4a36c7](_0x60507e);}return ve;}var re={'exports':{}};const Ht={},zt=Object[_0x4bc144(0x29b)](Object['defineProperty']({'__proto__':null,'default':Ht},Symbol['toStringTag'],{'value':'Module'})),Yt=ut(zt);var Qe;function ne(){const _0x2bb6e4=_0x4bc144;if(Qe)return re[_0x2bb6e4(0x227)];Qe=0x1;const {isUtf8:_0x325f7c}=_0x10c01a,{hasBlob:_0x589c5a}=V(),_0xb0b4df=[0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x1,0x1,0x1,0x1,0x1,0x0,0x0,0x1,0x1,0x0,0x1,0x1,0x0,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x0,0x0,0x0,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x0,0x1,0x0,0x1,0x0];function _0xab04ab(_0x3fecd7){return _0x3fecd7>=0x3e8&&_0x3fecd7<=0x3f6&&_0x3fecd7!==0x3ec&&_0x3fecd7!==0x3ed&&_0x3fecd7!==0x3ee||_0x3fecd7>=0xbb8&&_0x3fecd7<=0x1387;}function _0x24af24(_0x55ae19){const _0x43c1af=_0x55ae19['length'];let _0x28660e=0x0;for(;_0x28660e<_0x43c1af;)if((_0x55ae19[_0x28660e]&0x80)===0x0)_0x28660e++;else{if((_0x55ae19[_0x28660e]&0xe0)===0xc0){if(_0x28660e+0x1===_0x43c1af||(_0x55ae19[_0x28660e+0x1]&0xc0)!==0x80||(_0x55ae19[_0x28660e]&0xfe)===0xc0)return!0x1;_0x28660e+=0x2;}else{if((_0x55ae19[_0x28660e]&0xf0)===0xe0){if(_0x28660e+0x2>=_0x43c1af||(_0x55ae19[_0x28660e+0x1]&0xc0)!==0x80||(_0x55ae19[_0x28660e+0x2]&0xc0)!==0x80||_0x55ae19[_0x28660e]===0xe0&&(_0x55ae19[_0x28660e+0x1]&0xe0)===0x80||_0x55ae19[_0x28660e]===0xed&&(_0x55ae19[_0x28660e+0x1]&0xe0)===0xa0)return!0x1;_0x28660e+=0x3;}else{if((_0x55ae19[_0x28660e]&0xf8)===0xf0){if(_0x28660e+0x3>=_0x43c1af||(_0x55ae19[_0x28660e+0x1]&0xc0)!==0x80||(_0x55ae19[_0x28660e+0x2]&0xc0)!==0x80||(_0x55ae19[_0x28660e+0x3]&0xc0)!==0x80||_0x55ae19[_0x28660e]===0xf0&&(_0x55ae19[_0x28660e+0x1]&0xf0)===0x80||_0x55ae19[_0x28660e]===0xf4&&_0x55ae19[_0x28660e+0x1]>0x8f||_0x55ae19[_0x28660e]>0xf4)return!0x1;_0x28660e+=0x4;}else return!0x1;}}}return!0x0;}function _0xe92209(_0x16cf84){const _0x572350=_0x2bb6e4;return _0x589c5a&&typeof _0x16cf84==_0x572350(0x2c5)&&typeof _0x16cf84[_0x572350(0x386)]==_0x572350(0x2ac)&&typeof _0x16cf84[_0x572350(0x364)]==_0x572350(0x2dd)&&typeof _0x16cf84[_0x572350(0x330)]=='function'&&(_0x16cf84[Symbol[_0x572350(0x2d4)]]===_0x572350(0x27d)||_0x16cf84[Symbol[_0x572350(0x2d4)]]===_0x572350(0x3a1));}if(re['exports']={'isBlob':_0xe92209,'isValidStatusCode':_0xab04ab,'isValidUTF8':_0x24af24,'tokenChars':_0xb0b4df},_0x325f7c)re['exports'][_0x2bb6e4(0x247)]=function(_0x1d936b){const _0x2a99b8=_0x2bb6e4;return _0x1d936b[_0x2a99b8(0x34e)]<0x18?_0x24af24(_0x1d936b):_0x325f7c(_0x1d936b);};else{if(!process[_0x2bb6e4(0x2d0)][_0x2bb6e4(0x2d9)])try{const _0x1f9bde=Yt;re[_0x2bb6e4(0x227)][_0x2bb6e4(0x247)]=function(_0x7e0e8c){return _0x7e0e8c['length']<0x20?_0x24af24(_0x7e0e8c):_0x1f9bde(_0x7e0e8c);};}catch{}}return re['exports'];}var Se,Je;function dt(){const _0x1152a7=_0x4bc144;if(Je)return Se;Je=0x1;const {Writable:_0x4229dd}=_0x1142f9,_0x390090=he(),{BINARY_TYPES:_0x172878,EMPTY_BUFFER:_0x40e158,kStatusCode:_0x3a45c4,kWebSocket:_0x31a047}=V(),{concat:_0x45daa2,toArrayBuffer:_0x393327,unmask:_0x1fc691}=ce(),{isValidStatusCode:_0x299bd1,isValidUTF8:_0x49515e}=ne(),_0x44b656=Buffer[Symbol['species']],_0x29e599=0x0,_0x473e0f=0x1,_0x2e5546=0x2,_0x4c2ba2=0x3,_0x2097bd=0x4,_0x3c87d2=0x5,_0x8ae433=0x6;class _0x178e9b extends _0x4229dd{constructor(_0x54e69c={}){const _0x28b4a9=_0x5e22;super(),this[_0x28b4a9(0x31d)]=_0x54e69c[_0x28b4a9(0x392)]!==void 0x0?_0x54e69c[_0x28b4a9(0x392)]:!0x0,this['_binaryType']=_0x54e69c[_0x28b4a9(0x23f)]||_0x172878[0x0],this[_0x28b4a9(0x37b)]=_0x54e69c[_0x28b4a9(0x2c6)]||{},this[_0x28b4a9(0x36e)]=!!_0x54e69c['isServer'],this[_0x28b4a9(0x2dc)]=_0x54e69c[_0x28b4a9(0x233)]|0x0,this['_skipUTF8Validation']=!!_0x54e69c[_0x28b4a9(0x388)],this[_0x31a047]=void 0x0,this[_0x28b4a9(0x31f)]=0x0,this[_0x28b4a9(0x22d)]=[],this[_0x28b4a9(0x2e3)]=!0x1,this[_0x28b4a9(0x2a3)]=0x0,this[_0x28b4a9(0x361)]=void 0x0,this['_fragmented']=0x0,this[_0x28b4a9(0x329)]=!0x1,this[_0x28b4a9(0x332)]=!0x1,this[_0x28b4a9(0x293)]=0x0,this[_0x28b4a9(0x236)]=0x0,this[_0x28b4a9(0x396)]=0x0,this['_fragments']=[],this['_errored']=!0x1,this[_0x28b4a9(0x373)]=!0x1,this[_0x28b4a9(0x221)]=_0x29e599;}['_write'](_0x2a30e9,_0x3ffc7a,_0x585e89){const _0x3f8768=_0x5e22;if(this[_0x3f8768(0x293)]===0x8&&this[_0x3f8768(0x221)]==_0x29e599)return _0x585e89();this['_bufferedBytes']+=_0x2a30e9['length'],this[_0x3f8768(0x22d)][_0x3f8768(0x26e)](_0x2a30e9),this[_0x3f8768(0x1f2)](_0x585e89);}['consume'](_0x39bf35){const _0x484147=_0x5e22;if(this['_bufferedBytes']-=_0x39bf35,_0x39bf35===this[_0x484147(0x22d)][0x0]['length'])return this[_0x484147(0x22d)]['shift']();if(_0x39bf35<this[_0x484147(0x22d)][0x0][_0x484147(0x34e)]){const _0x4acaba=this[_0x484147(0x22d)][0x0];return this['_buffers'][0x0]=new _0x44b656(_0x4acaba[_0x484147(0x319)],_0x4acaba[_0x484147(0x2e9)]+_0x39bf35,_0x4acaba[_0x484147(0x34e)]-_0x39bf35),new _0x44b656(_0x4acaba[_0x484147(0x319)],_0x4acaba[_0x484147(0x2e9)],_0x39bf35);}const _0x178ff4=Buffer[_0x484147(0x1f4)](_0x39bf35);do{const _0x11f256=this[_0x484147(0x22d)][0x0],_0x38e4a8=_0x178ff4[_0x484147(0x34e)]-_0x39bf35;_0x39bf35>=_0x11f256['length']?_0x178ff4['set'](this[_0x484147(0x22d)][_0x484147(0x225)](),_0x38e4a8):(_0x178ff4[_0x484147(0x251)](new Uint8Array(_0x11f256['buffer'],_0x11f256['byteOffset'],_0x39bf35),_0x38e4a8),this['_buffers'][0x0]=new _0x44b656(_0x11f256[_0x484147(0x319)],_0x11f256[_0x484147(0x2e9)]+_0x39bf35,_0x11f256[_0x484147(0x34e)]-_0x39bf35)),_0x39bf35-=_0x11f256[_0x484147(0x34e)];}while(_0x39bf35>0x0);return _0x178ff4;}[_0x1152a7(0x1f2)](_0x2500eb){const _0xc16758=_0x1152a7;this[_0xc16758(0x373)]=!0x0;do switch(this['_state']){case _0x29e599:this['getInfo'](_0x2500eb);break;case _0x473e0f:this['getPayloadLength16'](_0x2500eb);break;case _0x2e5546:this['getPayloadLength64'](_0x2500eb);break;case _0x4c2ba2:this[_0xc16758(0x31e)]();break;case _0x2097bd:this['getData'](_0x2500eb);break;case _0x3c87d2:case _0x8ae433:this[_0xc16758(0x373)]=!0x1;return;}while(this[_0xc16758(0x373)]);this[_0xc16758(0x397)]||_0x2500eb();}['getInfo'](_0xf510b8){const _0x5cf731=_0x1152a7;if(this[_0x5cf731(0x31f)]<0x2){this[_0x5cf731(0x373)]=!0x1;return;}const _0xfb3b84=this[_0x5cf731(0x39d)](0x2);if((_0xfb3b84[0x0]&0x30)!==0x0){const _0x5cec49=this[_0x5cf731(0x372)](RangeError,_0x5cf731(0x256),!0x0,0x3ea,_0x5cf731(0x2e1));_0xf510b8(_0x5cec49);return;}const _0x2523a2=(_0xfb3b84[0x0]&0x40)===0x40;if(_0x2523a2&&!this[_0x5cf731(0x37b)][_0x390090[_0x5cf731(0x2d8)]]){const _0x1a6cfd=this[_0x5cf731(0x372)](RangeError,_0x5cf731(0x266),!0x0,0x3ea,_0x5cf731(0x22b));_0xf510b8(_0x1a6cfd);return;}if(this[_0x5cf731(0x332)]=(_0xfb3b84[0x0]&0x80)===0x80,this[_0x5cf731(0x293)]=_0xfb3b84[0x0]&0xf,this[_0x5cf731(0x2a3)]=_0xfb3b84[0x1]&0x7f,this['_opcode']===0x0){if(_0x2523a2){const _0x1baf4a=this[_0x5cf731(0x372)](RangeError,_0x5cf731(0x266),!0x0,0x3ea,_0x5cf731(0x22b));_0xf510b8(_0x1baf4a);return;}if(!this['_fragmented']){const _0x520da9=this[_0x5cf731(0x372)](RangeError,'invalid\x20opcode\x200',!0x0,0x3ea,_0x5cf731(0x315));_0xf510b8(_0x520da9);return;}this[_0x5cf731(0x293)]=this[_0x5cf731(0x22a)];}else{if(this[_0x5cf731(0x293)]===0x1||this['_opcode']===0x2){if(this[_0x5cf731(0x22a)]){const _0x228da4=this[_0x5cf731(0x372)](RangeError,_0x5cf731(0x345)+this[_0x5cf731(0x293)],!0x0,0x3ea,_0x5cf731(0x315));_0xf510b8(_0x228da4);return;}this[_0x5cf731(0x2e3)]=_0x2523a2;}else{if(this[_0x5cf731(0x293)]>0x7&&this[_0x5cf731(0x293)]<0xb){if(!this[_0x5cf731(0x332)]){const _0x53db99=this['createError'](RangeError,_0x5cf731(0x2fe),!0x0,0x3ea,_0x5cf731(0x2ca));_0xf510b8(_0x53db99);return;}if(_0x2523a2){const _0x38f740=this[_0x5cf731(0x372)](RangeError,'RSV1\x20must\x20be\x20clear',!0x0,0x3ea,_0x5cf731(0x22b));_0xf510b8(_0x38f740);return;}if(this[_0x5cf731(0x2a3)]>0x7d||this['_opcode']===0x8&&this[_0x5cf731(0x2a3)]===0x1){const _0x1070b6=this['createError'](RangeError,_0x5cf731(0x2fd)+this['_payloadLength'],!0x0,0x3ea,'WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH');_0xf510b8(_0x1070b6);return;}}else{const _0x2b2804=this[_0x5cf731(0x372)](RangeError,_0x5cf731(0x345)+this[_0x5cf731(0x293)],!0x0,0x3ea,_0x5cf731(0x315));_0xf510b8(_0x2b2804);return;}}}if(!this['_fin']&&!this[_0x5cf731(0x22a)]&&(this[_0x5cf731(0x22a)]=this[_0x5cf731(0x293)]),this[_0x5cf731(0x329)]=(_0xfb3b84[0x1]&0x80)===0x80,this['_isServer']){if(!this['_masked']){const _0x3b5067=this[_0x5cf731(0x372)](RangeError,_0x5cf731(0x25f),!0x0,0x3ea,_0x5cf731(0x2d6));_0xf510b8(_0x3b5067);return;}}else{if(this[_0x5cf731(0x329)]){const _0x1e9e0c=this['createError'](RangeError,'MASK\x20must\x20be\x20clear',!0x0,0x3ea,_0x5cf731(0x38b));_0xf510b8(_0x1e9e0c);return;}}this['_payloadLength']===0x7e?this[_0x5cf731(0x221)]=_0x473e0f:this[_0x5cf731(0x2a3)]===0x7f?this['_state']=_0x2e5546:this[_0x5cf731(0x312)](_0xf510b8);}[_0x1152a7(0x358)](_0x4e348e){const _0xd450bb=_0x1152a7;if(this[_0xd450bb(0x31f)]<0x2){this['_loop']=!0x1;return;}this[_0xd450bb(0x2a3)]=this['consume'](0x2)['readUInt16BE'](0x0),this['haveLength'](_0x4e348e);}[_0x1152a7(0x214)](_0x52d1e6){const _0x544771=_0x1152a7;if(this[_0x544771(0x31f)]<0x8){this[_0x544771(0x373)]=!0x1;return;}const _0x5b82a3=this[_0x544771(0x39d)](0x8),_0x5e47c6=_0x5b82a3[_0x544771(0x30e)](0x0);if(_0x5e47c6>Math[_0x544771(0x309)](0x2,0x15)-0x1){const _0xbf9b8e=this[_0x544771(0x372)](RangeError,_0x544771(0x239),!0x1,0x3f1,_0x544771(0x2a1));_0x52d1e6(_0xbf9b8e);return;}this[_0x544771(0x2a3)]=_0x5e47c6*Math[_0x544771(0x309)](0x2,0x20)+_0x5b82a3[_0x544771(0x30e)](0x4),this[_0x544771(0x312)](_0x52d1e6);}[_0x1152a7(0x312)](_0x24845a){const _0x3e2b59=_0x1152a7;if(this[_0x3e2b59(0x2a3)]&&this[_0x3e2b59(0x293)]<0x8&&(this[_0x3e2b59(0x236)]+=this[_0x3e2b59(0x2a3)],this[_0x3e2b59(0x236)]>this[_0x3e2b59(0x2dc)]&&this[_0x3e2b59(0x2dc)]>0x0)){const _0xc9ab28=this[_0x3e2b59(0x372)](RangeError,_0x3e2b59(0x363),!0x1,0x3f1,_0x3e2b59(0x38c));_0x24845a(_0xc9ab28);return;}this[_0x3e2b59(0x329)]?this[_0x3e2b59(0x221)]=_0x4c2ba2:this['_state']=_0x2097bd;}[_0x1152a7(0x31e)](){const _0x4a5ed0=_0x1152a7;if(this['_bufferedBytes']<0x4){this[_0x4a5ed0(0x373)]=!0x1;return;}this['_mask']=this[_0x4a5ed0(0x39d)](0x4),this[_0x4a5ed0(0x221)]=_0x2097bd;}[_0x1152a7(0x1f9)](_0x581a03){const _0x5d67c9=_0x1152a7;let _0x353b2c=_0x40e158;if(this['_payloadLength']){if(this[_0x5d67c9(0x31f)]<this['_payloadLength']){this[_0x5d67c9(0x373)]=!0x1;return;}_0x353b2c=this[_0x5d67c9(0x39d)](this[_0x5d67c9(0x2a3)]),this['_masked']&&(this[_0x5d67c9(0x361)][0x0]|this[_0x5d67c9(0x361)][0x1]|this[_0x5d67c9(0x361)][0x2]|this['_mask'][0x3])!==0x0&&_0x1fc691(_0x353b2c,this[_0x5d67c9(0x361)]);}if(this[_0x5d67c9(0x293)]>0x7){this['controlMessage'](_0x353b2c,_0x581a03);return;}if(this[_0x5d67c9(0x2e3)]){this[_0x5d67c9(0x221)]=_0x3c87d2,this['decompress'](_0x353b2c,_0x581a03);return;}_0x353b2c['length']&&(this[_0x5d67c9(0x396)]=this[_0x5d67c9(0x236)],this[_0x5d67c9(0x25c)][_0x5d67c9(0x26e)](_0x353b2c)),this[_0x5d67c9(0x224)](_0x581a03);}[_0x1152a7(0x2b4)](_0x4d6ddf,_0x32101c){const _0x3bcdc2=_0x1152a7;this['_extensions'][_0x390090[_0x3bcdc2(0x2d8)]][_0x3bcdc2(0x2b4)](_0x4d6ddf,this[_0x3bcdc2(0x332)],(_0x513ebe,_0x58642e)=>{const _0x1ae9b7=_0x3bcdc2;if(_0x513ebe)return _0x32101c(_0x513ebe);if(_0x58642e[_0x1ae9b7(0x34e)]){if(this[_0x1ae9b7(0x396)]+=_0x58642e[_0x1ae9b7(0x34e)],this['_messageLength']>this[_0x1ae9b7(0x2dc)]&&this['_maxPayload']>0x0){const _0x1c2848=this[_0x1ae9b7(0x372)](RangeError,_0x1ae9b7(0x363),!0x1,0x3f1,_0x1ae9b7(0x38c));_0x32101c(_0x1c2848);return;}this['_fragments'][_0x1ae9b7(0x26e)](_0x58642e);}this[_0x1ae9b7(0x224)](_0x32101c),this['_state']===_0x29e599&&this[_0x1ae9b7(0x1f2)](_0x32101c);});}[_0x1152a7(0x224)](_0x111f52){const _0x33258d=_0x1152a7;if(!this[_0x33258d(0x332)]){this['_state']=_0x29e599;return;}const _0x19c6ed=this['_messageLength'],_0x465534=this[_0x33258d(0x25c)];if(this['_totalPayloadLength']=0x0,this['_messageLength']=0x0,this[_0x33258d(0x22a)]=0x0,this[_0x33258d(0x25c)]=[],this['_opcode']===0x2){let _0x485fc1;this[_0x33258d(0x26b)]===_0x33258d(0x349)?_0x485fc1=_0x45daa2(_0x465534,_0x19c6ed):this[_0x33258d(0x26b)]==='arraybuffer'?_0x485fc1=_0x393327(_0x45daa2(_0x465534,_0x19c6ed)):this[_0x33258d(0x26b)]==='blob'?_0x485fc1=new Blob(_0x465534):_0x485fc1=_0x465534,this[_0x33258d(0x31d)]?(this[_0x33258d(0x20e)](_0x33258d(0x2d3),_0x485fc1,!0x0),this[_0x33258d(0x221)]=_0x29e599):(this[_0x33258d(0x221)]=_0x8ae433,setImmediate(()=>{const _0x4f133d=_0x33258d;this[_0x4f133d(0x20e)](_0x4f133d(0x2d3),_0x485fc1,!0x0),this[_0x4f133d(0x221)]=_0x29e599,this[_0x4f133d(0x1f2)](_0x111f52);}));}else{const _0x205c43=_0x45daa2(_0x465534,_0x19c6ed);if(!this[_0x33258d(0x33f)]&&!_0x49515e(_0x205c43)){const _0x98af6a=this['createError'](Error,_0x33258d(0x2ea),!0x0,0x3ef,_0x33258d(0x226));_0x111f52(_0x98af6a);return;}this[_0x33258d(0x221)]===_0x3c87d2||this[_0x33258d(0x31d)]?(this[_0x33258d(0x20e)](_0x33258d(0x2d3),_0x205c43,!0x1),this[_0x33258d(0x221)]=_0x29e599):(this[_0x33258d(0x221)]=_0x8ae433,setImmediate(()=>{const _0x2def12=_0x33258d;this['emit'](_0x2def12(0x2d3),_0x205c43,!0x1),this['_state']=_0x29e599,this[_0x2def12(0x1f2)](_0x111f52);}));}}[_0x1152a7(0x242)](_0x1016f,_0x487dc1){const _0x1b2af4=_0x1152a7;if(this[_0x1b2af4(0x293)]===0x8){if(_0x1016f[_0x1b2af4(0x34e)]===0x0)this[_0x1b2af4(0x373)]=!0x1,this[_0x1b2af4(0x20e)](_0x1b2af4(0x299),0x3ed,_0x40e158),this[_0x1b2af4(0x261)]();else{const _0x98bd1b=_0x1016f['readUInt16BE'](0x0);if(!_0x299bd1(_0x98bd1b)){const _0x2a3b39=this[_0x1b2af4(0x372)](RangeError,'invalid\x20status\x20code\x20'+_0x98bd1b,!0x0,0x3ea,_0x1b2af4(0x24b));_0x487dc1(_0x2a3b39);return;}const _0x1b894e=new _0x44b656(_0x1016f[_0x1b2af4(0x319)],_0x1016f['byteOffset']+0x2,_0x1016f[_0x1b2af4(0x34e)]-0x2);if(!this['_skipUTF8Validation']&&!_0x49515e(_0x1b894e)){const _0x24d3f9=this[_0x1b2af4(0x372)](Error,_0x1b2af4(0x2ea),!0x0,0x3ef,_0x1b2af4(0x226));_0x487dc1(_0x24d3f9);return;}this[_0x1b2af4(0x373)]=!0x1,this[_0x1b2af4(0x20e)](_0x1b2af4(0x299),_0x98bd1b,_0x1b894e),this[_0x1b2af4(0x261)]();}this[_0x1b2af4(0x221)]=_0x29e599;return;}this['_allowSynchronousEvents']?(this[_0x1b2af4(0x20e)](this[_0x1b2af4(0x293)]===0x9?_0x1b2af4(0x238):_0x1b2af4(0x39b),_0x1016f),this[_0x1b2af4(0x221)]=_0x29e599):(this[_0x1b2af4(0x221)]=_0x8ae433,setImmediate(()=>{const _0x15e6e2=_0x1b2af4;this[_0x15e6e2(0x20e)](this[_0x15e6e2(0x293)]===0x9?_0x15e6e2(0x238):_0x15e6e2(0x39b),_0x1016f),this[_0x15e6e2(0x221)]=_0x29e599,this[_0x15e6e2(0x1f2)](_0x487dc1);}));}['createError'](_0x289368,_0x25bd14,_0x13a5c3,_0x215e1c,_0x56adb7){const _0x1d49f9=_0x1152a7;this['_loop']=!0x1,this['_errored']=!0x0;const _0x399815=new _0x289368(_0x13a5c3?_0x1d49f9(0x26d)+_0x25bd14:_0x25bd14);return Error[_0x1d49f9(0x286)](_0x399815,this[_0x1d49f9(0x372)]),_0x399815[_0x1d49f9(0x2f5)]=_0x56adb7,_0x399815[_0x3a45c4]=_0x215e1c,_0x399815;}}return Se=_0x178e9b,Se;}var Ee,et;function _t(){const _0x526004=_0x4bc144;if(et)return Ee;et=0x1;const {Duplex:_0x2e19fb}=_0x1142f9,{randomFillSync:_0x35ee4d}=_0x1708a4,_0x59ea59=he(),{EMPTY_BUFFER:_0x3d012a,kWebSocket:_0x25f884,NOOP:_0x86bece}=V(),{isBlob:_0x3be7f9,isValidStatusCode:_0x303e80}=ne(),{mask:_0x13222f,toBuffer:_0x37e3ed}=ce(),_0x3107fc=Symbol(_0x526004(0x264)),_0x273569=Buffer['alloc'](0x4),_0x12becb=0x8*0x400;let _0x1a5b5c,_0x180681=_0x12becb;const _0xb53491=0x0,_0xaff3dd=0x1,_0x115921=0x2;class _0x45fae3{constructor(_0xce684c,_0x27187e,_0x43d433){const _0x141187=_0x526004;this['_extensions']=_0x27187e||{},_0x43d433&&(this[_0x141187(0x35b)]=_0x43d433,this[_0x141187(0x28d)]=Buffer[_0x141187(0x2e5)](0x4)),this[_0x141187(0x31a)]=_0xce684c,this[_0x141187(0x30f)]=!0x0,this[_0x141187(0x2b3)]=!0x1,this[_0x141187(0x31f)]=0x0,this[_0x141187(0x2c2)]=[],this[_0x141187(0x221)]=_0xb53491,this[_0x141187(0x2a5)]=_0x86bece,this[_0x25f884]=void 0x0;}static['frame'](_0x2f6c75,_0xf3d19a){const _0x3804c6=_0x526004;let _0x34d819,_0x2db45c=!0x1,_0x460912=0x2,_0x5f096c=!0x1;_0xf3d19a[_0x3804c6(0x2e2)]&&(_0x34d819=_0xf3d19a[_0x3804c6(0x36f)]||_0x273569,_0xf3d19a[_0x3804c6(0x25a)]?_0xf3d19a[_0x3804c6(0x25a)](_0x34d819):(_0x180681===_0x12becb&&(_0x1a5b5c===void 0x0&&(_0x1a5b5c=Buffer[_0x3804c6(0x2e5)](_0x12becb)),_0x35ee4d(_0x1a5b5c,0x0,_0x12becb),_0x180681=0x0),_0x34d819[0x0]=_0x1a5b5c[_0x180681++],_0x34d819[0x1]=_0x1a5b5c[_0x180681++],_0x34d819[0x2]=_0x1a5b5c[_0x180681++],_0x34d819[0x3]=_0x1a5b5c[_0x180681++]),_0x5f096c=(_0x34d819[0x0]|_0x34d819[0x1]|_0x34d819[0x2]|_0x34d819[0x3])===0x0,_0x460912=0x6);let _0x331980;typeof _0x2f6c75=='string'?(!_0xf3d19a['mask']||_0x5f096c)&&_0xf3d19a[_0x3107fc]!==void 0x0?_0x331980=_0xf3d19a[_0x3107fc]:(_0x2f6c75=Buffer['from'](_0x2f6c75),_0x331980=_0x2f6c75['length']):(_0x331980=_0x2f6c75[_0x3804c6(0x34e)],_0x2db45c=_0xf3d19a[_0x3804c6(0x2e2)]&&_0xf3d19a[_0x3804c6(0x28b)]&&!_0x5f096c);let _0x42e9a9=_0x331980;_0x331980>=0x10000?(_0x460912+=0x8,_0x42e9a9=0x7f):_0x331980>0x7d&&(_0x460912+=0x2,_0x42e9a9=0x7e);const _0xcc618b=Buffer['allocUnsafe'](_0x2db45c?_0x331980+_0x460912:_0x460912);return _0xcc618b[0x0]=_0xf3d19a['fin']?_0xf3d19a[_0x3804c6(0x302)]|0x80:_0xf3d19a[_0x3804c6(0x302)],_0xf3d19a[_0x3804c6(0x22e)]&&(_0xcc618b[0x0]|=0x40),_0xcc618b[0x1]=_0x42e9a9,_0x42e9a9===0x7e?_0xcc618b['writeUInt16BE'](_0x331980,0x2):_0x42e9a9===0x7f&&(_0xcc618b[0x2]=_0xcc618b[0x3]=0x0,_0xcc618b[_0x3804c6(0x254)](_0x331980,0x4,0x6)),_0xf3d19a['mask']?(_0xcc618b[0x1]|=0x80,_0xcc618b[_0x460912-0x4]=_0x34d819[0x0],_0xcc618b[_0x460912-0x3]=_0x34d819[0x1],_0xcc618b[_0x460912-0x2]=_0x34d819[0x2],_0xcc618b[_0x460912-0x1]=_0x34d819[0x3],_0x5f096c?[_0xcc618b,_0x2f6c75]:_0x2db45c?(_0x13222f(_0x2f6c75,_0x34d819,_0xcc618b,_0x460912,_0x331980),[_0xcc618b]):(_0x13222f(_0x2f6c75,_0x34d819,_0x2f6c75,0x0,_0x331980),[_0xcc618b,_0x2f6c75])):[_0xcc618b,_0x2f6c75];}[_0x526004(0x2a2)](_0x5ec972,_0x5d4298,_0x374ec7,_0x481f02){const _0x34612a=_0x526004;let _0x1eeeb1;if(_0x5ec972===void 0x0)_0x1eeeb1=_0x3d012a;else{if(typeof _0x5ec972!=_0x34612a(0x291)||!_0x303e80(_0x5ec972))throw new TypeError(_0x34612a(0x22f));if(_0x5d4298===void 0x0||!_0x5d4298[_0x34612a(0x34e)])_0x1eeeb1=Buffer[_0x34612a(0x1f4)](0x2),_0x1eeeb1['writeUInt16BE'](_0x5ec972,0x0);else{const _0x2f8dc0=Buffer[_0x34612a(0x259)](_0x5d4298);if(_0x2f8dc0>0x7b)throw new RangeError(_0x34612a(0x306));_0x1eeeb1=Buffer['allocUnsafe'](0x2+_0x2f8dc0),_0x1eeeb1['writeUInt16BE'](_0x5ec972,0x0),typeof _0x5d4298=='string'?_0x1eeeb1[_0x34612a(0x28a)](_0x5d4298,0x2):_0x1eeeb1[_0x34612a(0x251)](_0x5d4298,0x2);}}const _0x1245d4={[_0x3107fc]:_0x1eeeb1[_0x34612a(0x34e)],'fin':!0x0,'generateMask':this[_0x34612a(0x35b)],'mask':_0x374ec7,'maskBuffer':this[_0x34612a(0x28d)],'opcode':0x8,'readOnly':!0x1,'rsv1':!0x1};this['_state']!==_0xb53491?this[_0x34612a(0x20c)]([this[_0x34612a(0x389)],_0x1eeeb1,!0x1,_0x1245d4,_0x481f02]):this[_0x34612a(0x260)](_0x45fae3[_0x34612a(0x328)](_0x1eeeb1,_0x1245d4),_0x481f02);}['ping'](_0x3c817b,_0x37031a,_0x59bea0){const _0x49d9f1=_0x526004;let _0x5bd0ed,_0x4dd9fb;if(typeof _0x3c817b=='string'?(_0x5bd0ed=Buffer[_0x49d9f1(0x259)](_0x3c817b),_0x4dd9fb=!0x1):_0x3be7f9(_0x3c817b)?(_0x5bd0ed=_0x3c817b['size'],_0x4dd9fb=!0x1):(_0x3c817b=_0x37e3ed(_0x3c817b),_0x5bd0ed=_0x3c817b[_0x49d9f1(0x34e)],_0x4dd9fb=_0x37e3ed['readOnly']),_0x5bd0ed>0x7d)throw new RangeError(_0x49d9f1(0x313));const _0x44efe5={[_0x3107fc]:_0x5bd0ed,'fin':!0x0,'generateMask':this['_generateMask'],'mask':_0x37031a,'maskBuffer':this[_0x49d9f1(0x28d)],'opcode':0x9,'readOnly':_0x4dd9fb,'rsv1':!0x1};_0x3be7f9(_0x3c817b)?this[_0x49d9f1(0x221)]!==_0xb53491?this[_0x49d9f1(0x20c)]([this[_0x49d9f1(0x2bd)],_0x3c817b,!0x1,_0x44efe5,_0x59bea0]):this['getBlobData'](_0x3c817b,!0x1,_0x44efe5,_0x59bea0):this[_0x49d9f1(0x221)]!==_0xb53491?this[_0x49d9f1(0x20c)]([this[_0x49d9f1(0x389)],_0x3c817b,!0x1,_0x44efe5,_0x59bea0]):this[_0x49d9f1(0x260)](_0x45fae3[_0x49d9f1(0x328)](_0x3c817b,_0x44efe5),_0x59bea0);}[_0x526004(0x39b)](_0x3b2730,_0x6f09fe,_0x28ff43){const _0x3b4fab=_0x526004;let _0x1d9c75,_0x3dc2ae;if(typeof _0x3b2730==_0x3b4fab(0x2dd)?(_0x1d9c75=Buffer['byteLength'](_0x3b2730),_0x3dc2ae=!0x1):_0x3be7f9(_0x3b2730)?(_0x1d9c75=_0x3b2730[_0x3b4fab(0x3a0)],_0x3dc2ae=!0x1):(_0x3b2730=_0x37e3ed(_0x3b2730),_0x1d9c75=_0x3b2730['length'],_0x3dc2ae=_0x37e3ed['readOnly']),_0x1d9c75>0x7d)throw new RangeError(_0x3b4fab(0x313));const _0x758501={[_0x3107fc]:_0x1d9c75,'fin':!0x0,'generateMask':this[_0x3b4fab(0x35b)],'mask':_0x6f09fe,'maskBuffer':this[_0x3b4fab(0x28d)],'opcode':0xa,'readOnly':_0x3dc2ae,'rsv1':!0x1};_0x3be7f9(_0x3b2730)?this['_state']!==_0xb53491?this[_0x3b4fab(0x20c)]([this[_0x3b4fab(0x2bd)],_0x3b2730,!0x1,_0x758501,_0x28ff43]):this['getBlobData'](_0x3b2730,!0x1,_0x758501,_0x28ff43):this[_0x3b4fab(0x221)]!==_0xb53491?this['enqueue']([this[_0x3b4fab(0x389)],_0x3b2730,!0x1,_0x758501,_0x28ff43]):this['sendFrame'](_0x45fae3[_0x3b4fab(0x328)](_0x3b2730,_0x758501),_0x28ff43);}['send'](_0x3689d6,_0x6df18b,_0xf360c6){const _0x225fb0=_0x526004,_0x108e8b=this[_0x225fb0(0x37b)][_0x59ea59[_0x225fb0(0x2d8)]];let _0x58a402=_0x6df18b['binary']?0x2:0x1,_0x4028a2=_0x6df18b[_0x225fb0(0x2a8)],_0x2d7375,_0x2fa858;typeof _0x3689d6==_0x225fb0(0x2dd)?(_0x2d7375=Buffer[_0x225fb0(0x259)](_0x3689d6),_0x2fa858=!0x1):_0x3be7f9(_0x3689d6)?(_0x2d7375=_0x3689d6[_0x225fb0(0x3a0)],_0x2fa858=!0x1):(_0x3689d6=_0x37e3ed(_0x3689d6),_0x2d7375=_0x3689d6[_0x225fb0(0x34e)],_0x2fa858=_0x37e3ed[_0x225fb0(0x28b)]),this['_firstFragment']?(this[_0x225fb0(0x30f)]=!0x1,_0x4028a2&&_0x108e8b&&_0x108e8b[_0x225fb0(0x38e)][_0x108e8b[_0x225fb0(0x36e)]?_0x225fb0(0x272):'client_no_context_takeover']&&(_0x4028a2=_0x2d7375>=_0x108e8b[_0x225fb0(0x1fa)]),this[_0x225fb0(0x2b3)]=_0x4028a2):(_0x4028a2=!0x1,_0x58a402=0x0),_0x6df18b[_0x225fb0(0x2ba)]&&(this[_0x225fb0(0x30f)]=!0x0);const _0x163790={[_0x3107fc]:_0x2d7375,'fin':_0x6df18b[_0x225fb0(0x2ba)],'generateMask':this['_generateMask'],'mask':_0x6df18b[_0x225fb0(0x2e2)],'maskBuffer':this[_0x225fb0(0x28d)],'opcode':_0x58a402,'readOnly':_0x2fa858,'rsv1':_0x4028a2};_0x3be7f9(_0x3689d6)?this['_state']!==_0xb53491?this['enqueue']([this['getBlobData'],_0x3689d6,this[_0x225fb0(0x2b3)],_0x163790,_0xf360c6]):this[_0x225fb0(0x2bd)](_0x3689d6,this['_compress'],_0x163790,_0xf360c6):this[_0x225fb0(0x221)]!==_0xb53491?this[_0x225fb0(0x20c)]([this[_0x225fb0(0x389)],_0x3689d6,this[_0x225fb0(0x2b3)],_0x163790,_0xf360c6]):this[_0x225fb0(0x389)](_0x3689d6,this['_compress'],_0x163790,_0xf360c6);}[_0x526004(0x2bd)](_0x17d22f,_0x537464,_0x55f502,_0x13425e){const _0x2e0c92=_0x526004;this['_bufferedBytes']+=_0x55f502[_0x3107fc],this[_0x2e0c92(0x221)]=_0x115921,_0x17d22f[_0x2e0c92(0x386)]()[_0x2e0c92(0x218)](_0x377f02=>{const _0x3dfc2d=_0x2e0c92;if(this[_0x3dfc2d(0x31a)]['destroyed']){const _0xde8a40=new Error(_0x3dfc2d(0x34f));process[_0x3dfc2d(0x1fe)](_0x4854f5,this,_0xde8a40,_0x13425e);return;}this[_0x3dfc2d(0x31f)]-=_0x55f502[_0x3107fc];const _0x54d037=_0x37e3ed(_0x377f02);_0x537464?this[_0x3dfc2d(0x389)](_0x54d037,_0x537464,_0x55f502,_0x13425e):(this[_0x3dfc2d(0x221)]=_0xb53491,this['sendFrame'](_0x45fae3[_0x3dfc2d(0x328)](_0x54d037,_0x55f502),_0x13425e),this[_0x3dfc2d(0x287)]());})[_0x2e0c92(0x217)](_0x1ff096=>{const _0x4837cf=_0x2e0c92;process[_0x4837cf(0x1fe)](_0x426348,this,_0x1ff096,_0x13425e);});}[_0x526004(0x389)](_0x5d9e4a,_0x290400,_0x207786,_0x566460){const _0x1e9944=_0x526004;if(!_0x290400){this[_0x1e9944(0x260)](_0x45fae3[_0x1e9944(0x328)](_0x5d9e4a,_0x207786),_0x566460);return;}const _0xba2146=this[_0x1e9944(0x37b)][_0x59ea59[_0x1e9944(0x2d8)]];this[_0x1e9944(0x31f)]+=_0x207786[_0x3107fc],this[_0x1e9944(0x221)]=_0xaff3dd,_0xba2146[_0x1e9944(0x2a8)](_0x5d9e4a,_0x207786['fin'],(_0x41e48c,_0x1beaf7)=>{const _0xce162f=_0x1e9944;if(this['_socket'][_0xce162f(0x220)]){const _0x4dba34=new Error('The\x20socket\x20was\x20closed\x20while\x20data\x20was\x20being\x20compressed');_0x4854f5(this,_0x4dba34,_0x566460);return;}this['_bufferedBytes']-=_0x207786[_0x3107fc],this[_0xce162f(0x221)]=_0xb53491,_0x207786[_0xce162f(0x28b)]=!0x1,this[_0xce162f(0x260)](_0x45fae3[_0xce162f(0x328)](_0x1beaf7,_0x207786),_0x566460),this[_0xce162f(0x287)]();});}[_0x526004(0x287)](){const _0xa80ea7=_0x526004;for(;this[_0xa80ea7(0x221)]===_0xb53491&&this[_0xa80ea7(0x2c2)][_0xa80ea7(0x34e)];){const _0x3cd56d=this[_0xa80ea7(0x2c2)]['shift']();this[_0xa80ea7(0x31f)]-=_0x3cd56d[0x3][_0x3107fc],Reflect[_0xa80ea7(0x283)](_0x3cd56d[0x0],this,_0x3cd56d['slice'](0x1));}}['enqueue'](_0x4a36ec){const _0x1c9f5d=_0x526004;this['_bufferedBytes']+=_0x4a36ec[0x3][_0x3107fc],this[_0x1c9f5d(0x2c2)][_0x1c9f5d(0x26e)](_0x4a36ec);}['sendFrame'](_0x5d71ef,_0x335b4f){const _0x2ea4ef=_0x526004;_0x5d71ef[_0x2ea4ef(0x34e)]===0x2?(this['_socket']['cork'](),this[_0x2ea4ef(0x31a)][_0x2ea4ef(0x28a)](_0x5d71ef[0x0]),this[_0x2ea4ef(0x31a)][_0x2ea4ef(0x28a)](_0x5d71ef[0x1],_0x335b4f),this['_socket']['uncork']()):this[_0x2ea4ef(0x31a)][_0x2ea4ef(0x28a)](_0x5d71ef[0x0],_0x335b4f);}}Ee=_0x45fae3;function _0x4854f5(_0xd4dba5,_0x196261,_0x25f842){const _0x3b705c=_0x526004;typeof _0x25f842==_0x3b705c(0x2ac)&&_0x25f842(_0x196261);for(let _0x54823c=0x0;_0x54823c<_0xd4dba5[_0x3b705c(0x2c2)][_0x3b705c(0x34e)];_0x54823c++){const _0x496f73=_0xd4dba5[_0x3b705c(0x2c2)][_0x54823c],_0x370dac=_0x496f73[_0x496f73[_0x3b705c(0x34e)]-0x1];typeof _0x370dac==_0x3b705c(0x2ac)&&_0x370dac(_0x196261);}}function _0x426348(_0xd0f427,_0x74990b,_0x513a1d){_0x4854f5(_0xd0f427,_0x74990b,_0x513a1d),_0xd0f427['onerror'](_0x74990b);}return Ee;}var xe,tt;function Kt(){const _0x548979=_0x4bc144;if(tt)return xe;tt=0x1;const {kForOnEventAttribute:_0x2beb00,kListener:_0x3c04b8}=V(),_0xb3be04=Symbol(_0x548979(0x276)),_0x2f1ba6=Symbol(_0x548979(0x20a)),_0xbf4e18=Symbol('kError'),_0x1082e2=Symbol(_0x548979(0x2ee)),_0xd98209=Symbol(_0x548979(0x234)),_0x38ee48=Symbol(_0x548979(0x378)),_0x322cc9=Symbol(_0x548979(0x2ec)),_0x497fb7=Symbol(_0x548979(0x37a));class _0x2c0d64{constructor(_0x1404f3){this[_0x38ee48]=null,this[_0x322cc9]=_0x1404f3;}get[_0x548979(0x35d)](){return this[_0x38ee48];}get[_0x548979(0x364)](){return this[_0x322cc9];}}Object[_0x548979(0x39a)](_0x2c0d64[_0x548979(0x244)],'target',{'enumerable':!0x0}),Object['defineProperty'](_0x2c0d64['prototype'],'type',{'enumerable':!0x0});class _0x419a8a extends _0x2c0d64{constructor(_0x1f1435,_0x43470b={}){const _0x5be06e=_0x548979;super(_0x1f1435),this[_0xb3be04]=_0x43470b[_0x5be06e(0x2f5)]===void 0x0?0x0:_0x43470b[_0x5be06e(0x2f5)],this[_0xd98209]=_0x43470b[_0x5be06e(0x292)]===void 0x0?'':_0x43470b[_0x5be06e(0x292)],this[_0x497fb7]=_0x43470b['wasClean']===void 0x0?!0x1:_0x43470b[_0x5be06e(0x2eb)];}get[_0x548979(0x2f5)](){return this[_0xb3be04];}get[_0x548979(0x292)](){return this[_0xd98209];}get[_0x548979(0x2eb)](){return this[_0x497fb7];}}Object[_0x548979(0x39a)](_0x419a8a[_0x548979(0x244)],_0x548979(0x2f5),{'enumerable':!0x0}),Object['defineProperty'](_0x419a8a[_0x548979(0x244)],'reason',{'enumerable':!0x0}),Object[_0x548979(0x39a)](_0x419a8a['prototype'],_0x548979(0x2eb),{'enumerable':!0x0});class _0x2e966f extends _0x2c0d64{constructor(_0x1fabe4,_0x4ec1ac={}){const _0x12246a=_0x548979;super(_0x1fabe4),this[_0xbf4e18]=_0x4ec1ac[_0x12246a(0x2b0)]===void 0x0?null:_0x4ec1ac[_0x12246a(0x2b0)],this[_0x1082e2]=_0x4ec1ac[_0x12246a(0x2d3)]===void 0x0?'':_0x4ec1ac[_0x12246a(0x2d3)];}get[_0x548979(0x2b0)](){return this[_0xbf4e18];}get[_0x548979(0x2d3)](){return this[_0x1082e2];}}Object[_0x548979(0x39a)](_0x2e966f[_0x548979(0x244)],_0x548979(0x2b0),{'enumerable':!0x0}),Object[_0x548979(0x39a)](_0x2e966f['prototype'],_0x548979(0x2d3),{'enumerable':!0x0});class _0x2b46bd extends _0x2c0d64{constructor(_0x3edc2c,_0x30f9c2={}){const _0x498848=_0x548979;super(_0x3edc2c),this[_0x2f1ba6]=_0x30f9c2['data']===void 0x0?null:_0x30f9c2[_0x498848(0x23c)];}get[_0x548979(0x23c)](){return this[_0x2f1ba6];}}Object[_0x548979(0x39a)](_0x2b46bd[_0x548979(0x244)],_0x548979(0x23c),{'enumerable':!0x0}),xe={'CloseEvent':_0x419a8a,'ErrorEvent':_0x2e966f,'Event':_0x2c0d64,'EventTarget':{'addEventListener'(_0x2acc3f,_0x4f2bc5,_0x56bf31={}){const _0xb5a712=_0x548979;for(const _0x4bf843 of this[_0xb5a712(0x2f7)](_0x2acc3f))if(!_0x56bf31[_0x2beb00]&&_0x4bf843[_0x3c04b8]===_0x4f2bc5&&!_0x4bf843[_0x2beb00])return;let _0x347d86;if(_0x2acc3f==='message')_0x347d86=function(_0x3aa3a7,_0x281f0b){const _0xb8628a=_0xb5a712,_0x301203=new _0x2b46bd(_0xb8628a(0x2d3),{'data':_0x281f0b?_0x3aa3a7:_0x3aa3a7[_0xb8628a(0x216)]()});_0x301203[_0x38ee48]=this,_0x5e308f(_0x4f2bc5,this,_0x301203);};else{if(_0x2acc3f===_0xb5a712(0x2a2))_0x347d86=function(_0x1f6f54,_0x1cf839){const _0x48785b=_0xb5a712,_0x5c0ed7=new _0x419a8a(_0x48785b(0x2a2),{'code':_0x1f6f54,'reason':_0x1cf839['toString'](),'wasClean':this[_0x48785b(0x30b)]&&this[_0x48785b(0x25d)]});_0x5c0ed7[_0x38ee48]=this,_0x5e308f(_0x4f2bc5,this,_0x5c0ed7);};else{if(_0x2acc3f===_0xb5a712(0x2b0))_0x347d86=function(_0x5b6303){const _0x158ab7=_0xb5a712,_0x4b5637=new _0x2e966f('error',{'error':_0x5b6303,'message':_0x5b6303[_0x158ab7(0x2d3)]});_0x4b5637[_0x38ee48]=this,_0x5e308f(_0x4f2bc5,this,_0x4b5637);};else{if(_0x2acc3f===_0xb5a712(0x2bf))_0x347d86=function(){const _0x19b69f=_0xb5a712,_0x52c1d7=new _0x2c0d64(_0x19b69f(0x2bf));_0x52c1d7[_0x38ee48]=this,_0x5e308f(_0x4f2bc5,this,_0x52c1d7);};else return;}}}_0x347d86[_0x2beb00]=!!_0x56bf31[_0x2beb00],_0x347d86[_0x3c04b8]=_0x4f2bc5,_0x56bf31[_0xb5a712(0x213)]?this[_0xb5a712(0x213)](_0x2acc3f,_0x347d86):this['on'](_0x2acc3f,_0x347d86);},'removeEventListener'(_0x58b217,_0x3cc4b0){const _0x160ac5=_0x548979;for(const _0x528cc1 of this[_0x160ac5(0x2f7)](_0x58b217))if(_0x528cc1[_0x3c04b8]===_0x3cc4b0&&!_0x528cc1[_0x2beb00]){this['removeListener'](_0x58b217,_0x528cc1);break;}}},'MessageEvent':_0x2b46bd};function _0x5e308f(_0x10494a,_0x144d19,_0x5db22f){const _0x423e44=_0x548979;typeof _0x10494a==_0x423e44(0x2c5)&&_0x10494a[_0x423e44(0x20b)]?_0x10494a['handleEvent']['call'](_0x10494a,_0x5db22f):_0x10494a[_0x423e44(0x27b)](_0x144d19,_0x5db22f);}return xe;}var be,rt;function pt(){if(rt)return be;rt=0x1;const {tokenChars:_0x44ce6a}=ne();function _0x2ba932(_0x43123f,_0x4b245c,_0x22abfe){_0x43123f[_0x4b245c]===void 0x0?_0x43123f[_0x4b245c]=[_0x22abfe]:_0x43123f[_0x4b245c]['push'](_0x22abfe);}function _0x239fce(_0x35cd8b){const _0x1a6713=_0x5e22,_0x17485e=Object[_0x1a6713(0x1fd)](null);let _0x34a838=Object['create'](null),_0x3406e4=!0x1,_0x3536e5=!0x1,_0x3c0dbe=!0x1,_0x4e47bb,_0x1c3b96,_0x4f3962=-0x1,_0x3ec518=-0x1,_0x428aff=-0x1,_0x33cb62=0x0;for(;_0x33cb62<_0x35cd8b[_0x1a6713(0x34e)];_0x33cb62++)if(_0x3ec518=_0x35cd8b['charCodeAt'](_0x33cb62),_0x4e47bb===void 0x0){if(_0x428aff===-0x1&&_0x44ce6a[_0x3ec518]===0x1)_0x4f3962===-0x1&&(_0x4f3962=_0x33cb62);else{if(_0x33cb62!==0x0&&(_0x3ec518===0x20||_0x3ec518===0x9))_0x428aff===-0x1&&_0x4f3962!==-0x1&&(_0x428aff=_0x33cb62);else{if(_0x3ec518===0x3b||_0x3ec518===0x2c){if(_0x4f3962===-0x1)throw new SyntaxError(_0x1a6713(0x27a)+_0x33cb62);_0x428aff===-0x1&&(_0x428aff=_0x33cb62);const _0x293d3f=_0x35cd8b[_0x1a6713(0x342)](_0x4f3962,_0x428aff);_0x3ec518===0x2c?(_0x2ba932(_0x17485e,_0x293d3f,_0x34a838),_0x34a838=Object[_0x1a6713(0x1fd)](null)):_0x4e47bb=_0x293d3f,_0x4f3962=_0x428aff=-0x1;}else throw new SyntaxError(_0x1a6713(0x27a)+_0x33cb62);}}}else{if(_0x1c3b96===void 0x0){if(_0x428aff===-0x1&&_0x44ce6a[_0x3ec518]===0x1)_0x4f3962===-0x1&&(_0x4f3962=_0x33cb62);else{if(_0x3ec518===0x20||_0x3ec518===0x9)_0x428aff===-0x1&&_0x4f3962!==-0x1&&(_0x428aff=_0x33cb62);else{if(_0x3ec518===0x3b||_0x3ec518===0x2c){if(_0x4f3962===-0x1)throw new SyntaxError(_0x1a6713(0x27a)+_0x33cb62);_0x428aff===-0x1&&(_0x428aff=_0x33cb62),_0x2ba932(_0x34a838,_0x35cd8b['slice'](_0x4f3962,_0x428aff),!0x0),_0x3ec518===0x2c&&(_0x2ba932(_0x17485e,_0x4e47bb,_0x34a838),_0x34a838=Object['create'](null),_0x4e47bb=void 0x0),_0x4f3962=_0x428aff=-0x1;}else{if(_0x3ec518===0x3d&&_0x4f3962!==-0x1&&_0x428aff===-0x1)_0x1c3b96=_0x35cd8b[_0x1a6713(0x342)](_0x4f3962,_0x33cb62),_0x4f3962=_0x428aff=-0x1;else throw new SyntaxError(_0x1a6713(0x27a)+_0x33cb62);}}}}else{if(_0x3536e5){if(_0x44ce6a[_0x3ec518]!==0x1)throw new SyntaxError(_0x1a6713(0x27a)+_0x33cb62);_0x4f3962===-0x1?_0x4f3962=_0x33cb62:_0x3406e4||(_0x3406e4=!0x0),_0x3536e5=!0x1;}else{if(_0x3c0dbe){if(_0x44ce6a[_0x3ec518]===0x1)_0x4f3962===-0x1&&(_0x4f3962=_0x33cb62);else{if(_0x3ec518===0x22&&_0x4f3962!==-0x1)_0x3c0dbe=!0x1,_0x428aff=_0x33cb62;else{if(_0x3ec518===0x5c)_0x3536e5=!0x0;else throw new SyntaxError(_0x1a6713(0x27a)+_0x33cb62);}}}else{if(_0x3ec518===0x22&&_0x35cd8b['charCodeAt'](_0x33cb62-0x1)===0x3d)_0x3c0dbe=!0x0;else{if(_0x428aff===-0x1&&_0x44ce6a[_0x3ec518]===0x1)_0x4f3962===-0x1&&(_0x4f3962=_0x33cb62);else{if(_0x4f3962!==-0x1&&(_0x3ec518===0x20||_0x3ec518===0x9))_0x428aff===-0x1&&(_0x428aff=_0x33cb62);else{if(_0x3ec518===0x3b||_0x3ec518===0x2c){if(_0x4f3962===-0x1)throw new SyntaxError(_0x1a6713(0x27a)+_0x33cb62);_0x428aff===-0x1&&(_0x428aff=_0x33cb62);let _0x6ea130=_0x35cd8b[_0x1a6713(0x342)](_0x4f3962,_0x428aff);_0x3406e4&&(_0x6ea130=_0x6ea130['replace'](/\\/g,''),_0x3406e4=!0x1),_0x2ba932(_0x34a838,_0x1c3b96,_0x6ea130),_0x3ec518===0x2c&&(_0x2ba932(_0x17485e,_0x4e47bb,_0x34a838),_0x34a838=Object[_0x1a6713(0x1fd)](null),_0x4e47bb=void 0x0),_0x1c3b96=void 0x0,_0x4f3962=_0x428aff=-0x1;}else throw new SyntaxError('Unexpected\x20character\x20at\x20index\x20'+_0x33cb62);}}}}}}}if(_0x4f3962===-0x1||_0x3c0dbe||_0x3ec518===0x20||_0x3ec518===0x9)throw new SyntaxError(_0x1a6713(0x39e));_0x428aff===-0x1&&(_0x428aff=_0x33cb62);const _0x50c0b9=_0x35cd8b[_0x1a6713(0x342)](_0x4f3962,_0x428aff);return _0x4e47bb===void 0x0?_0x2ba932(_0x17485e,_0x50c0b9,_0x34a838):(_0x1c3b96===void 0x0?_0x2ba932(_0x34a838,_0x50c0b9,!0x0):_0x3406e4?_0x2ba932(_0x34a838,_0x1c3b96,_0x50c0b9['replace'](/\\/g,'')):_0x2ba932(_0x34a838,_0x1c3b96,_0x50c0b9),_0x2ba932(_0x17485e,_0x4e47bb,_0x34a838)),_0x17485e;}function _0x304ef6(_0x1565d2){const _0x34964b=_0x5e22;return Object[_0x34964b(0x3a3)](_0x1565d2)[_0x34964b(0x360)](_0x234697=>{const _0x186a8d=_0x34964b;let _0x334b10=_0x1565d2[_0x234697];return Array[_0x186a8d(0x370)](_0x334b10)||(_0x334b10=[_0x334b10]),_0x334b10['map'](_0x32e00a=>[_0x234697][_0x186a8d(0x322)](Object['keys'](_0x32e00a)[_0x186a8d(0x360)](_0x39618f=>{const _0xeced8d=_0x186a8d;let _0x1d5b1d=_0x32e00a[_0x39618f];return Array[_0xeced8d(0x370)](_0x1d5b1d)||(_0x1d5b1d=[_0x1d5b1d]),_0x1d5b1d[_0xeced8d(0x360)](_0x354f3c=>_0x354f3c===!0x0?_0x39618f:_0x39618f+'='+_0x354f3c)[_0xeced8d(0x31c)](';\x20');}))[_0x186a8d(0x31c)](';\x20'))[_0x186a8d(0x31c)](',\x20');})[_0x34964b(0x31c)](',\x20');}return be={'format':_0x304ef6,'parse':_0x239fce},be;}var we,st;function Ie(){const _0x50bdea=_0x4bc144;if(st)return we;st=0x1;const _0x1e5a0d=_0x2b706c,_0x5191e9=_0x34025c,_0x487f77=_0xc49ca8,_0x489788=_0x22f0e4,_0x47c015=_0x5d446d,{randomBytes:_0x2c2ac7,createHash:_0xeb6427}=_0x1708a4,{Duplex:_0x4b1c7b,Readable:_0x46bf56}=_0x1142f9,{URL:_0x252788}=_0x27fa54,_0x3af676=he(),_0x507a85=dt(),_0x2cd64a=_t(),{isBlob:_0x245d40}=ne(),{BINARY_TYPES:_0x38cffd,EMPTY_BUFFER:_0x2d2deb,GUID:_0x8bae9f,kForOnEventAttribute:_0xe526a4,kListener:_0x115a6f,kStatusCode:_0xbfda07,kWebSocket:_0x51473f,NOOP:_0x485503}=V(),{EventTarget:{addEventListener:_0x249955,removeEventListener:_0x2e2cc9}}=Kt(),{format:_0x30cf10,parse:_0x27d2d5}=pt(),{toBuffer:_0xea56ec}=ce(),_0x245c9c=0x1e*0x3e8,_0x1be386=Symbol(_0x50bdea(0x36a)),_0x3d9463=[0x8,0xd],_0x528cef=[_0x50bdea(0x369),_0x50bdea(0x1fb),'CLOSING',_0x50bdea(0x21b)],_0x4a3b9f=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class _0x3ad158 extends _0x1e5a0d{constructor(_0x72b1d4,_0x7c979e,_0x243b9a){const _0x40ae74=_0x50bdea;super(),this['_binaryType']=_0x38cffd[0x0],this['_closeCode']=0x3ee,this[_0x40ae74(0x30b)]=!0x1,this[_0x40ae74(0x25d)]=!0x1,this[_0x40ae74(0x3a5)]=_0x2d2deb,this[_0x40ae74(0x39f)]=null,this[_0x40ae74(0x250)]=!0x1,this[_0x40ae74(0x37b)]={},this[_0x40ae74(0x23d)]=!0x1,this['_protocol']='',this[_0x40ae74(0x33b)]=_0x3ad158['CONNECTING'],this['_receiver']=null,this[_0x40ae74(0x2a7)]=null,this['_socket']=null,_0x72b1d4!==null?(this['_bufferedAmount']=0x0,this[_0x40ae74(0x36e)]=!0x1,this[_0x40ae74(0x1ff)]=0x0,_0x7c979e===void 0x0?_0x7c979e=[]:Array[_0x40ae74(0x370)](_0x7c979e)||(typeof _0x7c979e=='object'&&_0x7c979e!==null?(_0x243b9a=_0x7c979e,_0x7c979e=[]):_0x7c979e=[_0x7c979e]),_0x1d8c29(this,_0x72b1d4,_0x7c979e,_0x243b9a)):(this['_autoPong']=_0x243b9a[_0x40ae74(0x21a)],this[_0x40ae74(0x36e)]=!0x0);}get['binaryType'](){return this['_binaryType'];}set[_0x50bdea(0x23f)](_0x325df5){const _0xda1cbb=_0x50bdea;_0x38cffd[_0xda1cbb(0x209)](_0x325df5)&&(this[_0xda1cbb(0x26b)]=_0x325df5,this[_0xda1cbb(0x317)]&&(this['_receiver'][_0xda1cbb(0x26b)]=_0x325df5));}get[_0x50bdea(0x321)](){const _0x196196=_0x50bdea;return this[_0x196196(0x31a)]?this[_0x196196(0x31a)][_0x196196(0x222)][_0x196196(0x34e)]+this['_sender']['_bufferedBytes']:this[_0x196196(0x391)];}get[_0x50bdea(0x2c6)](){const _0x1f9719=_0x50bdea;return Object[_0x1f9719(0x3a3)](this['_extensions'])[_0x1f9719(0x31c)]();}get[_0x50bdea(0x385)](){const _0x492e78=_0x50bdea;return this[_0x492e78(0x23d)];}get['onclose'](){return null;}get[_0x50bdea(0x2a5)](){return null;}get[_0x50bdea(0x1f7)](){return null;}get[_0x50bdea(0x37e)](){return null;}get['protocol'](){const _0x1b3936=_0x50bdea;return this[_0x1b3936(0x2d7)];}get[_0x50bdea(0x368)](){const _0x47cd75=_0x50bdea;return this[_0x47cd75(0x33b)];}get['url'](){return this['_url'];}[_0x50bdea(0x1f8)](_0xcc055f,_0x1bd17a,_0x4bc93f){const _0x395678=_0x50bdea,_0x2fd27f=new _0x507a85({'allowSynchronousEvents':_0x4bc93f[_0x395678(0x392)],'binaryType':this[_0x395678(0x23f)],'extensions':this[_0x395678(0x37b)],'isServer':this[_0x395678(0x36e)],'maxPayload':_0x4bc93f['maxPayload'],'skipUTF8Validation':_0x4bc93f[_0x395678(0x388)]}),_0x3848aa=new _0x2cd64a(_0xcc055f,this[_0x395678(0x37b)],_0x4bc93f[_0x395678(0x25a)]);this['_receiver']=_0x2fd27f,this[_0x395678(0x2a7)]=_0x3848aa,this['_socket']=_0xcc055f,_0x2fd27f[_0x51473f]=this,_0x3848aa[_0x51473f]=this,_0xcc055f[_0x51473f]=this,_0x2fd27f['on'](_0x395678(0x299),_0x314694),_0x2fd27f['on']('drain',_0x4dd467),_0x2fd27f['on'](_0x395678(0x2b0),_0x181523),_0x2fd27f['on'](_0x395678(0x2d3),_0x158814),_0x2fd27f['on'](_0x395678(0x238),_0x4a28a9),_0x2fd27f['on'](_0x395678(0x39b),_0x2f6982),_0x3848aa[_0x395678(0x2a5)]=_0x52d592,_0xcc055f['setTimeout']&&_0xcc055f[_0x395678(0x2e0)](0x0),_0xcc055f[_0x395678(0x280)]&&_0xcc055f[_0x395678(0x280)](),_0x1bd17a[_0x395678(0x34e)]>0x0&&_0xcc055f[_0x395678(0x208)](_0x1bd17a),_0xcc055f['on']('close',_0x10023b),_0xcc055f['on'](_0x395678(0x23c),_0x52f819),_0xcc055f['on'](_0x395678(0x261),_0x1d6e8b),_0xcc055f['on'](_0x395678(0x2b0),_0x50df84),this[_0x395678(0x33b)]=_0x3ad158[_0x395678(0x1fb)],this[_0x395678(0x20e)]('open');}[_0x50bdea(0x27f)](){const _0x5d309c=_0x50bdea;if(!this[_0x5d309c(0x31a)]){this[_0x5d309c(0x33b)]=_0x3ad158['CLOSED'],this[_0x5d309c(0x20e)](_0x5d309c(0x2a2),this[_0x5d309c(0x38d)],this[_0x5d309c(0x3a5)]);return;}this['_extensions'][_0x3af676[_0x5d309c(0x2d8)]]&&this['_extensions'][_0x3af676[_0x5d309c(0x2d8)]][_0x5d309c(0x282)](),this[_0x5d309c(0x317)][_0x5d309c(0x28f)](),this['_readyState']=_0x3ad158['CLOSED'],this[_0x5d309c(0x20e)](_0x5d309c(0x2a2),this[_0x5d309c(0x38d)],this[_0x5d309c(0x3a5)]);}['close'](_0x87c3aa,_0x3d04e9){const _0x85a92c=_0x50bdea;if(this[_0x85a92c(0x368)]!==_0x3ad158['CLOSED']){if(this[_0x85a92c(0x368)]===_0x3ad158[_0x85a92c(0x369)]){_0x422be1(this,this[_0x85a92c(0x377)],_0x85a92c(0x228));return;}if(this['readyState']===_0x3ad158[_0x85a92c(0x382)]){this[_0x85a92c(0x25d)]&&(this[_0x85a92c(0x30b)]||this[_0x85a92c(0x317)][_0x85a92c(0x222)]['errorEmitted'])&&this['_socket']['end']();return;}this['_readyState']=_0x3ad158['CLOSING'],this[_0x85a92c(0x2a7)]['close'](_0x87c3aa,_0x3d04e9,!this[_0x85a92c(0x36e)],_0x2e3035=>{const _0x3c0d05=_0x85a92c;_0x2e3035||(this[_0x3c0d05(0x25d)]=!0x0,(this[_0x3c0d05(0x30b)]||this['_receiver'][_0x3c0d05(0x222)][_0x3c0d05(0x346)])&&this[_0x3c0d05(0x31a)][_0x3c0d05(0x261)]());}),_0x1b1fd5(this);}}['pause'](){const _0x1fd041=_0x50bdea;this[_0x1fd041(0x368)]===_0x3ad158[_0x1fd041(0x369)]||this['readyState']===_0x3ad158[_0x1fd041(0x21b)]||(this[_0x1fd041(0x23d)]=!0x0,this[_0x1fd041(0x31a)]['pause']());}['ping'](_0x5cd150,_0x2730a,_0x173aae){const _0x2dd4c3=_0x50bdea;if(this[_0x2dd4c3(0x368)]===_0x3ad158[_0x2dd4c3(0x369)])throw new Error('WebSocket\x20is\x20not\x20open:\x20readyState\x200\x20(CONNECTING)');if(typeof _0x5cd150==_0x2dd4c3(0x2ac)?(_0x173aae=_0x5cd150,_0x5cd150=_0x2730a=void 0x0):typeof _0x2730a=='function'&&(_0x173aae=_0x2730a,_0x2730a=void 0x0),typeof _0x5cd150==_0x2dd4c3(0x291)&&(_0x5cd150=_0x5cd150[_0x2dd4c3(0x216)]()),this['readyState']!==_0x3ad158[_0x2dd4c3(0x1fb)]){_0x4987fe(this,_0x5cd150,_0x173aae);return;}_0x2730a===void 0x0&&(_0x2730a=!this[_0x2dd4c3(0x36e)]),this[_0x2dd4c3(0x2a7)][_0x2dd4c3(0x238)](_0x5cd150||_0x2d2deb,_0x2730a,_0x173aae);}[_0x50bdea(0x39b)](_0x23bbd2,_0x23d1fb,_0x5231ca){const _0x577fe8=_0x50bdea;if(this[_0x577fe8(0x368)]===_0x3ad158[_0x577fe8(0x369)])throw new Error(_0x577fe8(0x399));if(typeof _0x23bbd2==_0x577fe8(0x2ac)?(_0x5231ca=_0x23bbd2,_0x23bbd2=_0x23d1fb=void 0x0):typeof _0x23d1fb==_0x577fe8(0x2ac)&&(_0x5231ca=_0x23d1fb,_0x23d1fb=void 0x0),typeof _0x23bbd2==_0x577fe8(0x291)&&(_0x23bbd2=_0x23bbd2['toString']()),this[_0x577fe8(0x368)]!==_0x3ad158[_0x577fe8(0x1fb)]){_0x4987fe(this,_0x23bbd2,_0x5231ca);return;}_0x23d1fb===void 0x0&&(_0x23d1fb=!this[_0x577fe8(0x36e)]),this[_0x577fe8(0x2a7)]['pong'](_0x23bbd2||_0x2d2deb,_0x23d1fb,_0x5231ca);}[_0x50bdea(0x2f9)](){const _0x460579=_0x50bdea;this['readyState']===_0x3ad158['CONNECTING']||this['readyState']===_0x3ad158[_0x460579(0x21b)]||(this[_0x460579(0x23d)]=!0x1,this[_0x460579(0x317)][_0x460579(0x222)]['needDrain']||this['_socket'][_0x460579(0x2f9)]());}[_0x50bdea(0x25b)](_0xe90f96,_0xaf7f90,_0x250450){const _0x465cfa=_0x50bdea;if(this[_0x465cfa(0x368)]===_0x3ad158['CONNECTING'])throw new Error(_0x465cfa(0x399));if(typeof _0xaf7f90=='function'&&(_0x250450=_0xaf7f90,_0xaf7f90={}),typeof _0xe90f96==_0x465cfa(0x291)&&(_0xe90f96=_0xe90f96[_0x465cfa(0x216)]()),this['readyState']!==_0x3ad158[_0x465cfa(0x1fb)]){_0x4987fe(this,_0xe90f96,_0x250450);return;}const _0x41619c={'binary':typeof _0xe90f96!=_0x465cfa(0x2dd),'mask':!this[_0x465cfa(0x36e)],'compress':!0x0,'fin':!0x0,..._0xaf7f90};this[_0x465cfa(0x37b)][_0x3af676[_0x465cfa(0x2d8)]]||(_0x41619c['compress']=!0x1),this['_sender']['send'](_0xe90f96||_0x2d2deb,_0x41619c,_0x250450);}['terminate'](){const _0x3ccbf8=_0x50bdea;if(this[_0x3ccbf8(0x368)]!==_0x3ad158['CLOSED']){if(this[_0x3ccbf8(0x368)]===_0x3ad158[_0x3ccbf8(0x369)]){_0x422be1(this,this['_req'],'WebSocket\x20was\x20closed\x20before\x20the\x20connection\x20was\x20established');return;}this[_0x3ccbf8(0x31a)]&&(this[_0x3ccbf8(0x33b)]=_0x3ad158[_0x3ccbf8(0x382)],this[_0x3ccbf8(0x31a)][_0x3ccbf8(0x230)]());}}}Object[_0x50bdea(0x39a)](_0x3ad158,_0x50bdea(0x369),{'enumerable':!0x0,'value':_0x528cef[_0x50bdea(0x2da)]('CONNECTING')}),Object[_0x50bdea(0x39a)](_0x3ad158[_0x50bdea(0x244)],_0x50bdea(0x369),{'enumerable':!0x0,'value':_0x528cef['indexOf']('CONNECTING')}),Object[_0x50bdea(0x39a)](_0x3ad158,_0x50bdea(0x1fb),{'enumerable':!0x0,'value':_0x528cef[_0x50bdea(0x2da)](_0x50bdea(0x1fb))}),Object[_0x50bdea(0x39a)](_0x3ad158[_0x50bdea(0x244)],'OPEN',{'enumerable':!0x0,'value':_0x528cef[_0x50bdea(0x2da)]('OPEN')}),Object[_0x50bdea(0x39a)](_0x3ad158,'CLOSING',{'enumerable':!0x0,'value':_0x528cef['indexOf'](_0x50bdea(0x382))}),Object[_0x50bdea(0x39a)](_0x3ad158[_0x50bdea(0x244)],_0x50bdea(0x382),{'enumerable':!0x0,'value':_0x528cef['indexOf'](_0x50bdea(0x382))}),Object['defineProperty'](_0x3ad158,_0x50bdea(0x21b),{'enumerable':!0x0,'value':_0x528cef[_0x50bdea(0x2da)]('CLOSED')}),Object[_0x50bdea(0x39a)](_0x3ad158[_0x50bdea(0x244)],_0x50bdea(0x21b),{'enumerable':!0x0,'value':_0x528cef[_0x50bdea(0x2da)](_0x50bdea(0x21b))}),[_0x50bdea(0x23f),_0x50bdea(0x321),_0x50bdea(0x2c6),_0x50bdea(0x385),'protocol','readyState',_0x50bdea(0x207)][_0x50bdea(0x383)](_0x271450=>{const _0x1ee8de=_0x50bdea;Object[_0x1ee8de(0x39a)](_0x3ad158[_0x1ee8de(0x244)],_0x271450,{'enumerable':!0x0});}),[_0x50bdea(0x2bf),_0x50bdea(0x2b0),_0x50bdea(0x2a2),_0x50bdea(0x2d3)][_0x50bdea(0x383)](_0x3902c3=>{const _0x43d7f7=_0x50bdea;Object[_0x43d7f7(0x39a)](_0x3ad158[_0x43d7f7(0x244)],'on'+_0x3902c3,{'enumerable':!0x0,'get'(){const _0x22cdf2=_0x43d7f7;for(const _0x4cf002 of this[_0x22cdf2(0x2f7)](_0x3902c3))if(_0x4cf002[_0xe526a4])return _0x4cf002[_0x115a6f];return null;},'set'(_0x1c44fa){const _0x1ab462=_0x43d7f7;for(const _0x46219d of this['listeners'](_0x3902c3))if(_0x46219d[_0xe526a4]){this[_0x1ab462(0x36b)](_0x3902c3,_0x46219d);break;}typeof _0x1c44fa==_0x1ab462(0x2ac)&&this['addEventListener'](_0x3902c3,_0x1c44fa,{[_0xe526a4]:!0x0});}});}),_0x3ad158[_0x50bdea(0x244)][_0x50bdea(0x2f8)]=_0x249955,_0x3ad158['prototype'][_0x50bdea(0x297)]=_0x2e2cc9,we=_0x3ad158;function _0x1d8c29(_0x3d7da0,_0x37b2aa,_0x401fcc,_0xd99d3){const _0xd75ba5=_0x50bdea,_0x3cbfaf={'allowSynchronousEvents':!0x0,'autoPong':!0x0,'protocolVersion':_0x3d9463[0x1],'maxPayload':0x6400000,'skipUTF8Validation':!0x1,'perMessageDeflate':!0x0,'followRedirects':!0x1,'maxRedirects':0xa,..._0xd99d3,'socketPath':void 0x0,'hostname':void 0x0,'protocol':void 0x0,'timeout':void 0x0,'method':'GET','host':void 0x0,'path':void 0x0,'port':void 0x0};if(_0x3d7da0[_0xd75ba5(0x29d)]=_0x3cbfaf[_0xd75ba5(0x21a)],!_0x3d9463[_0xd75ba5(0x209)](_0x3cbfaf[_0xd75ba5(0x26f)]))throw new RangeError(_0xd75ba5(0x219)+_0x3cbfaf[_0xd75ba5(0x26f)]+_0xd75ba5(0x38f)+_0x3d9463[_0xd75ba5(0x31c)](',\x20')+')');let _0x3acb7c;if(_0x37b2aa instanceof _0x252788)_0x3acb7c=_0x37b2aa;else try{_0x3acb7c=new _0x252788(_0x37b2aa);}catch{throw new SyntaxError('Invalid\x20URL:\x20'+_0x37b2aa);}_0x3acb7c[_0xd75ba5(0x37f)]===_0xd75ba5(0x2a9)?_0x3acb7c[_0xd75ba5(0x37f)]=_0xd75ba5(0x39c):_0x3acb7c[_0xd75ba5(0x37f)]===_0xd75ba5(0x296)&&(_0x3acb7c['protocol']='wss:'),_0x3d7da0[_0xd75ba5(0x2ed)]=_0x3acb7c[_0xd75ba5(0x281)];const _0x3d285f=_0x3acb7c[_0xd75ba5(0x37f)]===_0xd75ba5(0x32c),_0x3dede6=_0x3acb7c['protocol']===_0xd75ba5(0x2f0);let _0x2cd057;if(_0x3acb7c[_0xd75ba5(0x37f)]!=='ws:'&&!_0x3d285f&&!_0x3dede6?_0x2cd057=_0xd75ba5(0x337):_0x3dede6&&!_0x3acb7c[_0xd75ba5(0x2f1)]?_0x2cd057=_0xd75ba5(0x21f):_0x3acb7c['hash']&&(_0x2cd057=_0xd75ba5(0x258)),_0x2cd057){const _0x661723=new SyntaxError(_0x2cd057);if(_0x3d7da0[_0xd75ba5(0x1ff)]===0x0)throw _0x661723;_0xc59212(_0x3d7da0,_0x661723);return;}const _0x368d8c=_0x3d285f?0x1bb:0x50,_0x5f18e2=_0x2c2ac7(0x10)[_0xd75ba5(0x216)]('base64'),_0x20671f=_0x3d285f?_0x5191e9[_0xd75ba5(0x210)]:_0x487f77[_0xd75ba5(0x210)],_0x1dd634=new Set();let _0xbcd95f;if(_0x3cbfaf[_0xd75ba5(0x24f)]=_0x3cbfaf[_0xd75ba5(0x24f)]||(_0x3d285f?_0x4d9a4f:_0xe648dc),_0x3cbfaf[_0xd75ba5(0x29f)]=_0x3cbfaf[_0xd75ba5(0x29f)]||_0x368d8c,_0x3cbfaf[_0xd75ba5(0x32e)]=_0x3acb7c[_0xd75ba5(0x32e)]||_0x368d8c,_0x3cbfaf['host']=_0x3acb7c['hostname'][_0xd75ba5(0x29e)]('[')?_0x3acb7c[_0xd75ba5(0x398)]['slice'](0x1,-0x1):_0x3acb7c[_0xd75ba5(0x398)],_0x3cbfaf[_0xd75ba5(0x331)]={..._0x3cbfaf[_0xd75ba5(0x331)],'Sec-WebSocket-Version':_0x3cbfaf[_0xd75ba5(0x26f)],'Sec-WebSocket-Key':_0x5f18e2,'Connection':_0xd75ba5(0x324),'Upgrade':_0xd75ba5(0x212)},_0x3cbfaf[_0xd75ba5(0x2d2)]=_0x3acb7c['pathname']+_0x3acb7c[_0xd75ba5(0x298)],_0x3cbfaf['timeout']=_0x3cbfaf[_0xd75ba5(0x2a6)],_0x3cbfaf[_0xd75ba5(0x268)]&&(_0xbcd95f=new _0x3af676(_0x3cbfaf[_0xd75ba5(0x268)]!==!0x0?_0x3cbfaf[_0xd75ba5(0x268)]:{},!0x1,_0x3cbfaf[_0xd75ba5(0x233)]),_0x3cbfaf['headers'][_0xd75ba5(0x2b1)]=_0x30cf10({[_0x3af676[_0xd75ba5(0x2d8)]]:_0xbcd95f['offer']()})),_0x401fcc[_0xd75ba5(0x34e)]){for(const _0x2b48b6 of _0x401fcc){if(typeof _0x2b48b6!='string'||!_0x4a3b9f['test'](_0x2b48b6)||_0x1dd634[_0xd75ba5(0x274)](_0x2b48b6))throw new SyntaxError(_0xd75ba5(0x371));_0x1dd634[_0xd75ba5(0x2ef)](_0x2b48b6);}_0x3cbfaf[_0xd75ba5(0x331)][_0xd75ba5(0x34a)]=_0x401fcc['join'](',');}if(_0x3cbfaf[_0xd75ba5(0x374)]&&(_0x3cbfaf[_0xd75ba5(0x26f)]<0xd?_0x3cbfaf['headers']['Sec-WebSocket-Origin']=_0x3cbfaf['origin']:_0x3cbfaf[_0xd75ba5(0x331)][_0xd75ba5(0x229)]=_0x3cbfaf[_0xd75ba5(0x374)]),(_0x3acb7c['username']||_0x3acb7c['password'])&&(_0x3cbfaf['auth']=_0x3acb7c[_0xd75ba5(0x2cb)]+':'+_0x3acb7c[_0xd75ba5(0x2c9)]),_0x3dede6){const _0x1eeb4f=_0x3cbfaf[_0xd75ba5(0x2d2)]['split'](':');_0x3cbfaf[_0xd75ba5(0x2e7)]=_0x1eeb4f[0x0],_0x3cbfaf['path']=_0x1eeb4f[0x1];}let _0x39861d;if(_0x3cbfaf[_0xd75ba5(0x294)]){if(_0x3d7da0[_0xd75ba5(0x1ff)]===0x0){_0x3d7da0[_0xd75ba5(0x365)]=_0x3dede6,_0x3d7da0[_0xd75ba5(0x32f)]=_0x3d285f,_0x3d7da0[_0xd75ba5(0x348)]=_0x3dede6?_0x3cbfaf['socketPath']:_0x3acb7c[_0xd75ba5(0x231)];const _0x543abb=_0xd99d3&&_0xd99d3[_0xd75ba5(0x331)];if(_0xd99d3={..._0xd99d3,'headers':{}},_0x543abb){for(const [_0x549ac7,_0x2cbeb0]of Object[_0xd75ba5(0x32d)](_0x543abb))_0xd99d3[_0xd75ba5(0x331)][_0x549ac7[_0xd75ba5(0x32a)]()]=_0x2cbeb0;}}else{if(_0x3d7da0[_0xd75ba5(0x33e)]('redirect')===0x0){const _0x3a7f05=_0x3dede6?_0x3d7da0['_originalIpc']?_0x3cbfaf['socketPath']===_0x3d7da0[_0xd75ba5(0x348)]:!0x1:_0x3d7da0[_0xd75ba5(0x365)]?!0x1:_0x3acb7c[_0xd75ba5(0x231)]===_0x3d7da0[_0xd75ba5(0x348)];(!_0x3a7f05||_0x3d7da0[_0xd75ba5(0x32f)]&&!_0x3d285f)&&(delete _0x3cbfaf[_0xd75ba5(0x331)]['authorization'],delete _0x3cbfaf[_0xd75ba5(0x331)][_0xd75ba5(0x24a)],_0x3a7f05||delete _0x3cbfaf[_0xd75ba5(0x331)][_0xd75ba5(0x231)],_0x3cbfaf[_0xd75ba5(0x2f3)]=void 0x0);}}_0x3cbfaf[_0xd75ba5(0x2f3)]&&!_0xd99d3[_0xd75ba5(0x331)][_0xd75ba5(0x37c)]&&(_0xd99d3[_0xd75ba5(0x331)][_0xd75ba5(0x37c)]=_0xd75ba5(0x253)+Buffer[_0xd75ba5(0x2de)](_0x3cbfaf['auth'])[_0xd75ba5(0x216)](_0xd75ba5(0x23a))),_0x39861d=_0x3d7da0[_0xd75ba5(0x377)]=_0x20671f(_0x3cbfaf),_0x3d7da0[_0xd75ba5(0x1ff)]&&_0x3d7da0[_0xd75ba5(0x20e)](_0xd75ba5(0x32b),_0x3d7da0[_0xd75ba5(0x207)],_0x39861d);}else _0x39861d=_0x3d7da0[_0xd75ba5(0x377)]=_0x20671f(_0x3cbfaf);_0x3cbfaf[_0xd75ba5(0x290)]&&_0x39861d['on']('timeout',()=>{const _0x779ffd=_0xd75ba5;_0x422be1(_0x3d7da0,_0x39861d,_0x779ffd(0x284));}),_0x39861d['on'](_0xd75ba5(0x2b0),_0xfee09c=>{const _0x56b1c3=_0xd75ba5;_0x39861d===null||_0x39861d[_0x1be386]||(_0x39861d=_0x3d7da0[_0x56b1c3(0x377)]=null,_0xc59212(_0x3d7da0,_0xfee09c));}),_0x39861d['on'](_0xd75ba5(0x2c3),_0x3dca07=>{const _0x47436c=_0xd75ba5,_0xad2578=_0x3dca07[_0x47436c(0x331)][_0x47436c(0x356)],_0x319384=_0x3dca07[_0x47436c(0x335)];if(_0xad2578&&_0x3cbfaf['followRedirects']&&_0x319384>=0x12c&&_0x319384<0x190){if(++_0x3d7da0[_0x47436c(0x1ff)]>_0x3cbfaf[_0x47436c(0x2ce)]){_0x422be1(_0x3d7da0,_0x39861d,_0x47436c(0x2fc));return;}_0x39861d[_0x47436c(0x311)]();let _0x341b26;try{_0x341b26=new _0x252788(_0xad2578,_0x37b2aa);}catch{const _0x12490e=new SyntaxError(_0x47436c(0x2c4)+_0xad2578);_0xc59212(_0x3d7da0,_0x12490e);return;}_0x1d8c29(_0x3d7da0,_0x341b26,_0x401fcc,_0xd99d3);}else _0x3d7da0[_0x47436c(0x20e)](_0x47436c(0x33c),_0x39861d,_0x3dca07)||_0x422be1(_0x3d7da0,_0x39861d,_0x47436c(0x336)+_0x3dca07[_0x47436c(0x335)]);}),_0x39861d['on'](_0xd75ba5(0x34d),(_0x22be88,_0x49dabd,_0x66da9e)=>{const _0x1040ab=_0xd75ba5;if(_0x3d7da0['emit'](_0x1040ab(0x34d),_0x22be88),_0x3d7da0[_0x1040ab(0x368)]!==_0x3ad158[_0x1040ab(0x369)])return;_0x39861d=_0x3d7da0['_req']=null;const _0x4e79c2=_0x22be88[_0x1040ab(0x331)][_0x1040ab(0x34d)];if(_0x4e79c2===void 0x0||_0x4e79c2['toLowerCase']()!==_0x1040ab(0x212)){_0x422be1(_0x3d7da0,_0x49dabd,_0x1040ab(0x288));return;}const _0x23d8de=_0xeb6427('sha1')[_0x1040ab(0x289)](_0x5f18e2+_0x8bae9f)[_0x1040ab(0x2ad)]('base64');if(_0x22be88[_0x1040ab(0x331)][_0x1040ab(0x249)]!==_0x23d8de){_0x422be1(_0x3d7da0,_0x49dabd,_0x1040ab(0x393));return;}const _0x3bc880=_0x22be88[_0x1040ab(0x331)][_0x1040ab(0x28e)];let _0x27612d;if(_0x3bc880!==void 0x0?_0x1dd634[_0x1040ab(0x3a0)]?_0x1dd634[_0x1040ab(0x274)](_0x3bc880)||(_0x27612d=_0x1040ab(0x2aa)):_0x27612d=_0x1040ab(0x2b9):_0x1dd634[_0x1040ab(0x3a0)]&&(_0x27612d=_0x1040ab(0x279)),_0x27612d){_0x422be1(_0x3d7da0,_0x49dabd,_0x27612d);return;}_0x3bc880&&(_0x3d7da0[_0x1040ab(0x2d7)]=_0x3bc880);const _0x3e82c7=_0x22be88['headers']['sec-websocket-extensions'];if(_0x3e82c7!==void 0x0){if(!_0xbcd95f){_0x422be1(_0x3d7da0,_0x49dabd,_0x1040ab(0x237));return;}let _0x143794;try{_0x143794=_0x27d2d5(_0x3e82c7);}catch{_0x422be1(_0x3d7da0,_0x49dabd,_0x1040ab(0x320));return;}const _0xb9b7fb=Object[_0x1040ab(0x3a3)](_0x143794);if(_0xb9b7fb[_0x1040ab(0x34e)]!==0x1||_0xb9b7fb[0x0]!==_0x3af676[_0x1040ab(0x2d8)]){_0x422be1(_0x3d7da0,_0x49dabd,_0x1040ab(0x26c));return;}try{_0xbcd95f[_0x1040ab(0x357)](_0x143794[_0x3af676[_0x1040ab(0x2d8)]]);}catch{_0x422be1(_0x3d7da0,_0x49dabd,_0x1040ab(0x320));return;}_0x3d7da0[_0x1040ab(0x37b)][_0x3af676['extensionName']]=_0xbcd95f;}_0x3d7da0[_0x1040ab(0x1f8)](_0x49dabd,_0x66da9e,{'allowSynchronousEvents':_0x3cbfaf[_0x1040ab(0x392)],'generateMask':_0x3cbfaf[_0x1040ab(0x25a)],'maxPayload':_0x3cbfaf[_0x1040ab(0x233)],'skipUTF8Validation':_0x3cbfaf['skipUTF8Validation']});}),_0x3cbfaf[_0xd75ba5(0x3a2)]?_0x3cbfaf['finishRequest'](_0x39861d,_0x3d7da0):_0x39861d[_0xd75ba5(0x261)]();}function _0xc59212(_0x3bf2a1,_0x12123c){const _0x5b8b53=_0x50bdea;_0x3bf2a1[_0x5b8b53(0x33b)]=_0x3ad158[_0x5b8b53(0x382)],_0x3bf2a1['_errorEmitted']=!0x0,_0x3bf2a1[_0x5b8b53(0x20e)](_0x5b8b53(0x2b0),_0x12123c),_0x3bf2a1[_0x5b8b53(0x27f)]();}function _0xe648dc(_0x5f1247){const _0x30194f=_0x50bdea;return _0x5f1247[_0x30194f(0x2d2)]=_0x5f1247[_0x30194f(0x2e7)],_0x489788[_0x30194f(0x340)](_0x5f1247);}function _0x4d9a4f(_0x4fffbd){const _0x71933f=_0x50bdea;return _0x4fffbd[_0x71933f(0x2d2)]=void 0x0,!_0x4fffbd[_0x71933f(0x22c)]&&_0x4fffbd[_0x71933f(0x22c)]!==''&&(_0x4fffbd[_0x71933f(0x22c)]=_0x489788[_0x71933f(0x2be)](_0x4fffbd['host'])?'':_0x4fffbd[_0x71933f(0x231)]),_0x47c015['connect'](_0x4fffbd);}function _0x422be1(_0x4ade25,_0x3f523f,_0x4cc0ec){const _0x5c0af7=_0x50bdea;_0x4ade25[_0x5c0af7(0x33b)]=_0x3ad158[_0x5c0af7(0x382)];const _0x5218b0=new Error(_0x4cc0ec);Error['captureStackTrace'](_0x5218b0,_0x422be1),_0x3f523f[_0x5c0af7(0x2cc)]?(_0x3f523f[_0x1be386]=!0x0,_0x3f523f[_0x5c0af7(0x311)](),_0x3f523f[_0x5c0af7(0x20d)]&&!_0x3f523f[_0x5c0af7(0x20d)][_0x5c0af7(0x220)]&&_0x3f523f[_0x5c0af7(0x20d)]['destroy'](),process['nextTick'](_0xc59212,_0x4ade25,_0x5218b0)):(_0x3f523f[_0x5c0af7(0x230)](_0x5218b0),_0x3f523f['once'](_0x5c0af7(0x2b0),_0x4ade25['emit']['bind'](_0x4ade25,'error')),_0x3f523f['once'](_0x5c0af7(0x2a2),_0x4ade25['emitClose'][_0x5c0af7(0x295)](_0x4ade25)));}function _0x4987fe(_0x33c136,_0x3dc8cb,_0x313207){const _0x26c115=_0x50bdea;if(_0x3dc8cb){const _0x22c48c=_0x245d40(_0x3dc8cb)?_0x3dc8cb[_0x26c115(0x3a0)]:_0xea56ec(_0x3dc8cb)[_0x26c115(0x34e)];_0x33c136['_socket']?_0x33c136[_0x26c115(0x2a7)][_0x26c115(0x31f)]+=_0x22c48c:_0x33c136['_bufferedAmount']+=_0x22c48c;}if(_0x313207){const _0x198aff=new Error(_0x26c115(0x359)+_0x33c136[_0x26c115(0x368)]+'\x20('+_0x528cef[_0x33c136['readyState']]+')');process['nextTick'](_0x313207,_0x198aff);}}function _0x314694(_0x178862,_0x565475){const _0x662f24=_0x50bdea,_0x45ae3c=this[_0x51473f];_0x45ae3c[_0x662f24(0x30b)]=!0x0,_0x45ae3c[_0x662f24(0x3a5)]=_0x565475,_0x45ae3c[_0x662f24(0x38d)]=_0x178862,_0x45ae3c[_0x662f24(0x31a)][_0x51473f]!==void 0x0&&(_0x45ae3c[_0x662f24(0x31a)][_0x662f24(0x36b)](_0x662f24(0x23c),_0x52f819),process[_0x662f24(0x1fe)](_0x2876df,_0x45ae3c['_socket']),_0x178862===0x3ed?_0x45ae3c[_0x662f24(0x2a2)]():_0x45ae3c[_0x662f24(0x2a2)](_0x178862,_0x565475));}function _0x4dd467(){const _0x47c6db=_0x50bdea,_0x25406a=this[_0x51473f];_0x25406a[_0x47c6db(0x385)]||_0x25406a['_socket'][_0x47c6db(0x2f9)]();}function _0x181523(_0x3bb841){const _0x2697d4=_0x50bdea,_0x2f30dd=this[_0x51473f];_0x2f30dd[_0x2697d4(0x31a)][_0x51473f]!==void 0x0&&(_0x2f30dd[_0x2697d4(0x31a)]['removeListener'](_0x2697d4(0x23c),_0x52f819),process[_0x2697d4(0x1fe)](_0x2876df,_0x2f30dd[_0x2697d4(0x31a)]),_0x2f30dd[_0x2697d4(0x2a2)](_0x3bb841[_0xbfda07])),_0x2f30dd[_0x2697d4(0x250)]||(_0x2f30dd['_errorEmitted']=!0x0,_0x2f30dd['emit'](_0x2697d4(0x2b0),_0x3bb841));}function _0x50e19f(){const _0x231ef2=_0x50bdea;this[_0x51473f][_0x231ef2(0x27f)]();}function _0x158814(_0x7ead6a,_0x1bf482){const _0x1254a8=_0x50bdea;this[_0x51473f][_0x1254a8(0x20e)]('message',_0x7ead6a,_0x1bf482);}function _0x4a28a9(_0x208791){const _0x4aacbe=_0x50bdea,_0x972ab3=this[_0x51473f];_0x972ab3['_autoPong']&&_0x972ab3[_0x4aacbe(0x39b)](_0x208791,!this[_0x4aacbe(0x36e)],_0x485503),_0x972ab3[_0x4aacbe(0x20e)]('ping',_0x208791);}function _0x2f6982(_0x529cb6){const _0x6ba1f6=_0x50bdea;this[_0x51473f]['emit'](_0x6ba1f6(0x39b),_0x529cb6);}function _0x2876df(_0xb324ed){_0xb324ed['resume']();}function _0x52d592(_0x162192){const _0x3a8f99=_0x50bdea,_0x7b37d1=this[_0x51473f];_0x7b37d1[_0x3a8f99(0x368)]!==_0x3ad158[_0x3a8f99(0x21b)]&&(_0x7b37d1[_0x3a8f99(0x368)]===_0x3ad158['OPEN']&&(_0x7b37d1['_readyState']=_0x3ad158[_0x3a8f99(0x382)],_0x1b1fd5(_0x7b37d1)),this[_0x3a8f99(0x31a)][_0x3a8f99(0x261)](),_0x7b37d1['_errorEmitted']||(_0x7b37d1[_0x3a8f99(0x250)]=!0x0,_0x7b37d1['emit'](_0x3a8f99(0x2b0),_0x162192)));}function _0x1b1fd5(_0x4d1a72){const _0x410f5f=_0x50bdea;_0x4d1a72['_closeTimer']=setTimeout(_0x4d1a72[_0x410f5f(0x31a)][_0x410f5f(0x230)]['bind'](_0x4d1a72[_0x410f5f(0x31a)]),_0x245c9c);}function _0x10023b(){const _0x2f9799=_0x50bdea,_0x11649d=this[_0x51473f];this[_0x2f9799(0x36b)]('close',_0x10023b),this[_0x2f9799(0x36b)](_0x2f9799(0x23c),_0x52f819),this[_0x2f9799(0x36b)](_0x2f9799(0x261),_0x1d6e8b),_0x11649d[_0x2f9799(0x33b)]=_0x3ad158[_0x2f9799(0x382)];let _0x3028f4;!this[_0x2f9799(0x2db)][_0x2f9799(0x1fc)]&&!_0x11649d[_0x2f9799(0x30b)]&&!_0x11649d[_0x2f9799(0x317)][_0x2f9799(0x222)][_0x2f9799(0x346)]&&(_0x3028f4=_0x11649d['_socket']['read']())!==null&&_0x11649d[_0x2f9799(0x317)]['write'](_0x3028f4),_0x11649d['_receiver']['end'](),this[_0x51473f]=void 0x0,clearTimeout(_0x11649d[_0x2f9799(0x39f)]),_0x11649d[_0x2f9799(0x317)]['_writableState']['finished']||_0x11649d[_0x2f9799(0x317)][_0x2f9799(0x222)][_0x2f9799(0x346)]?_0x11649d[_0x2f9799(0x27f)]():(_0x11649d['_receiver']['on'](_0x2f9799(0x2b0),_0x50e19f),_0x11649d[_0x2f9799(0x317)]['on'](_0x2f9799(0x27e),_0x50e19f));}function _0x52f819(_0x558b01){const _0x21c4fe=_0x50bdea;this[_0x51473f][_0x21c4fe(0x317)][_0x21c4fe(0x28a)](_0x558b01)||this[_0x21c4fe(0x394)]();}function _0x1d6e8b(){const _0x4a1c49=_0x50bdea,_0x5c6a1e=this[_0x51473f];_0x5c6a1e['_readyState']=_0x3ad158[_0x4a1c49(0x382)],_0x5c6a1e[_0x4a1c49(0x317)][_0x4a1c49(0x261)](),this[_0x4a1c49(0x261)]();}function _0x50df84(){const _0x1f1487=_0x50bdea,_0x1e9f0f=this[_0x51473f];this[_0x1f1487(0x36b)](_0x1f1487(0x2b0),_0x50df84),this['on'](_0x1f1487(0x2b0),_0x485503),_0x1e9f0f&&(_0x1e9f0f['_readyState']=_0x3ad158[_0x1f1487(0x382)],this[_0x1f1487(0x230)]());}return we;}var Oe,it;function Xt(){if(it)return Oe;it=0x1,Ie();const {Duplex:_0x12cf61}=_0x1142f9;function _0x5b4343(_0x4c81f3){const _0x3c5ae2=_0x5e22;_0x4c81f3[_0x3c5ae2(0x20e)](_0x3c5ae2(0x2a2));}function _0x2cb5a6(){const _0x139540=_0x5e22;!this['destroyed']&&this['_writableState'][_0x139540(0x2b8)]&&this[_0x139540(0x230)]();}function _0x4beb02(_0x5e282a){const _0x3fa4e0=_0x5e22;this['removeListener'](_0x3fa4e0(0x2b0),_0x4beb02),this['destroy'](),this[_0x3fa4e0(0x33e)](_0x3fa4e0(0x2b0))===0x0&&this[_0x3fa4e0(0x20e)](_0x3fa4e0(0x2b0),_0x5e282a);}function _0x4db7f7(_0xafd66,_0x23e470){const _0x55453d=_0x5e22;let _0x408cb6=!0x0;const _0x40edcd=new _0x12cf61({..._0x23e470,'autoDestroy':!0x1,'emitClose':!0x1,'objectMode':!0x1,'writableObjectMode':!0x1});return _0xafd66['on'](_0x55453d(0x2d3),function(_0x339445,_0x3f626b){const _0x363c5f=_0x55453d,_0x3b413e=!_0x3f626b&&_0x40edcd[_0x363c5f(0x2db)][_0x363c5f(0x204)]?_0x339445['toString']():_0x339445;_0x40edcd[_0x363c5f(0x26e)](_0x3b413e)||_0xafd66[_0x363c5f(0x394)]();}),_0xafd66['once']('error',function(_0x7286c9){const _0x4faa43=_0x55453d;_0x40edcd[_0x4faa43(0x220)]||(_0x408cb6=!0x1,_0x40edcd[_0x4faa43(0x230)](_0x7286c9));}),_0xafd66[_0x55453d(0x213)](_0x55453d(0x2a2),function(){const _0x3ed35e=_0x55453d;_0x40edcd[_0x3ed35e(0x220)]||_0x40edcd[_0x3ed35e(0x26e)](null);}),_0x40edcd[_0x55453d(0x2f2)]=function(_0x4c4e23,_0x3406ad){const _0x446ebe=_0x55453d;if(_0xafd66[_0x446ebe(0x368)]===_0xafd66[_0x446ebe(0x21b)]){_0x3406ad(_0x4c4e23),process[_0x446ebe(0x1fe)](_0x5b4343,_0x40edcd);return;}let _0x4b9248=!0x1;_0xafd66[_0x446ebe(0x213)](_0x446ebe(0x2b0),function(_0x20a785){_0x4b9248=!0x0,_0x3406ad(_0x20a785);}),_0xafd66['once']('close',function(){const _0x189c1f=_0x446ebe;_0x4b9248||_0x3406ad(_0x4c4e23),process[_0x189c1f(0x1fe)](_0x5b4343,_0x40edcd);}),_0x408cb6&&_0xafd66[_0x446ebe(0x20f)]();},_0x40edcd[_0x55453d(0x3a4)]=function(_0x2bbb33){const _0xe88f20=_0x55453d;if(_0xafd66[_0xe88f20(0x368)]===_0xafd66['CONNECTING']){_0xafd66[_0xe88f20(0x213)](_0xe88f20(0x2bf),function(){_0x40edcd['_final'](_0x2bbb33);});return;}_0xafd66[_0xe88f20(0x31a)]!==null&&(_0xafd66[_0xe88f20(0x31a)]['_writableState'][_0xe88f20(0x2b8)]?(_0x2bbb33(),_0x40edcd[_0xe88f20(0x2db)]['endEmitted']&&_0x40edcd[_0xe88f20(0x230)]()):(_0xafd66[_0xe88f20(0x31a)][_0xe88f20(0x213)](_0xe88f20(0x27e),function(){_0x2bbb33();}),_0xafd66['close']()));},_0x40edcd['_read']=function(){const _0x589215=_0x55453d;_0xafd66[_0x589215(0x385)]&&_0xafd66[_0x589215(0x2f9)]();},_0x40edcd['_write']=function(_0x6bb2a6,_0x1d16b8,_0x5b60ef){const _0x4fda42=_0x55453d;if(_0xafd66['readyState']===_0xafd66['CONNECTING']){_0xafd66['once'](_0x4fda42(0x2bf),function(){const _0x5906e5=_0x4fda42;_0x40edcd[_0x5906e5(0x27c)](_0x6bb2a6,_0x1d16b8,_0x5b60ef);});return;}_0xafd66['send'](_0x6bb2a6,_0x5b60ef);},_0x40edcd['on']('end',_0x2cb5a6),_0x40edcd['on']('error',_0x4beb02),_0x40edcd;}return Oe=_0x4db7f7,Oe;}Xt(),dt(),_t();var Zt=Ie();const Qt=Wt(Zt);var Ce,nt;function Jt(){if(nt)return Ce;nt=0x1;const {tokenChars:_0x100783}=ne();function _0x8d7bb4(_0x431ded){const _0x32532f=_0x5e22,_0x4bc569=new Set();let _0x52e9b4=-0x1,_0x6af81c=-0x1,_0x3cda6b=0x0;for(_0x3cda6b;_0x3cda6b<_0x431ded[_0x32532f(0x34e)];_0x3cda6b++){const _0xc5264f=_0x431ded[_0x32532f(0x366)](_0x3cda6b);if(_0x6af81c===-0x1&&_0x100783[_0xc5264f]===0x1)_0x52e9b4===-0x1&&(_0x52e9b4=_0x3cda6b);else{if(_0x3cda6b!==0x0&&(_0xc5264f===0x20||_0xc5264f===0x9))_0x6af81c===-0x1&&_0x52e9b4!==-0x1&&(_0x6af81c=_0x3cda6b);else{if(_0xc5264f===0x2c){if(_0x52e9b4===-0x1)throw new SyntaxError(_0x32532f(0x27a)+_0x3cda6b);_0x6af81c===-0x1&&(_0x6af81c=_0x3cda6b);const _0xedb8bc=_0x431ded['slice'](_0x52e9b4,_0x6af81c);if(_0x4bc569[_0x32532f(0x274)](_0xedb8bc))throw new SyntaxError(_0x32532f(0x30d)+_0xedb8bc+_0x32532f(0x367));_0x4bc569[_0x32532f(0x2ef)](_0xedb8bc),_0x52e9b4=_0x6af81c=-0x1;}else throw new SyntaxError(_0x32532f(0x27a)+_0x3cda6b);}}}if(_0x52e9b4===-0x1||_0x6af81c!==-0x1)throw new SyntaxError(_0x32532f(0x39e));const _0x5d5209=_0x431ded[_0x32532f(0x342)](_0x52e9b4,_0x3cda6b);if(_0x4bc569['has'](_0x5d5209))throw new SyntaxError(_0x32532f(0x30d)+_0x5d5209+'\x22\x20subprotocol\x20is\x20duplicated');return _0x4bc569[_0x32532f(0x2ef)](_0x5d5209),_0x4bc569;}return Ce={'parse':_0x8d7bb4},Ce;}var Te,ot;function er(){const _0x23f677=_0x4bc144;if(ot)return Te;ot=0x1;const _0x30f261=_0x2b706c,_0x1f23ec=_0xc49ca8,{Duplex:_0x44b07a}=_0x1142f9,{createHash:_0x8ae449}=_0x1708a4,_0x70ad75=pt(),_0x5b8c70=he(),_0x5d4345=Jt(),_0x1ee692=Ie(),{GUID:_0xd4095d,kWebSocket:_0x3a6cff}=V(),_0x42e33f=/^[+/0-9A-Za-z]{22}==$/,_0x11c5ae=0x0,_0x3cec3e=0x1,_0x4e208a=0x2;class _0x4bb9b2 extends _0x30f261{constructor(_0x4de0e5,_0x54e266){const _0x4ec0bd=_0x5e22;if(super(),_0x4de0e5={'allowSynchronousEvents':!0x0,'autoPong':!0x0,'maxPayload':0x64*0x400*0x400,'skipUTF8Validation':!0x1,'perMessageDeflate':!0x1,'handleProtocols':null,'clientTracking':!0x0,'verifyClient':null,'noServer':!0x1,'backlog':null,'server':null,'host':null,'path':null,'port':null,'WebSocket':_0x1ee692,..._0x4de0e5},_0x4de0e5['port']==null&&!_0x4de0e5[_0x4ec0bd(0x301)]&&!_0x4de0e5['noServer']||_0x4de0e5['port']!=null&&(_0x4de0e5[_0x4ec0bd(0x301)]||_0x4de0e5[_0x4ec0bd(0x384)])||_0x4de0e5[_0x4ec0bd(0x301)]&&_0x4de0e5[_0x4ec0bd(0x384)])throw new TypeError('One\x20and\x20only\x20one\x20of\x20the\x20\x22port\x22,\x20\x22server\x22,\x20or\x20\x22noServer\x22\x20options\x20must\x20be\x20specified');if(_0x4de0e5[_0x4ec0bd(0x32e)]!=null?(this['_server']=_0x1f23ec[_0x4ec0bd(0x21e)]((_0x414296,_0x53d63a)=>{const _0x3e6bc7=_0x4ec0bd,_0x36f166=_0x1f23ec['STATUS_CODES'][0x1aa];_0x53d63a[_0x3e6bc7(0x257)](0x1aa,{'Content-Length':_0x36f166[_0x3e6bc7(0x34e)],'Content-Type':_0x3e6bc7(0x203)}),_0x53d63a[_0x3e6bc7(0x261)](_0x36f166);}),this['_server']['listen'](_0x4de0e5[_0x4ec0bd(0x32e)],_0x4de0e5[_0x4ec0bd(0x231)],_0x4de0e5[_0x4ec0bd(0x24c)],_0x54e266)):_0x4de0e5[_0x4ec0bd(0x301)]&&(this['_server']=_0x4de0e5[_0x4ec0bd(0x301)]),this['_server']){const _0x13c0a4=this['emit'][_0x4ec0bd(0x295)](this,_0x4ec0bd(0x240));this[_0x4ec0bd(0x333)]=_0x565aff(this[_0x4ec0bd(0x24e)],{'listening':this[_0x4ec0bd(0x20e)][_0x4ec0bd(0x295)](this,'listening'),'error':this[_0x4ec0bd(0x20e)]['bind'](this,_0x4ec0bd(0x2b0)),'upgrade':(_0x538d81,_0x54608d,_0x45edea)=>{const _0x851d2d=_0x4ec0bd;this[_0x851d2d(0x347)](_0x538d81,_0x54608d,_0x45edea,_0x13c0a4);}});}_0x4de0e5[_0x4ec0bd(0x268)]===!0x0&&(_0x4de0e5[_0x4ec0bd(0x268)]={}),_0x4de0e5['clientTracking']&&(this[_0x4ec0bd(0x215)]=new Set(),this[_0x4ec0bd(0x305)]=!0x1),this[_0x4ec0bd(0x223)]=_0x4de0e5,this['_state']=_0x11c5ae;}[_0x23f677(0x201)](){const _0x5c0850=_0x23f677;if(this[_0x5c0850(0x223)][_0x5c0850(0x384)])throw new Error(_0x5c0850(0x246));return this[_0x5c0850(0x24e)]?this[_0x5c0850(0x24e)]['address']():null;}[_0x23f677(0x2a2)](_0x42759a){const _0x9b5f38=_0x23f677;if(this[_0x9b5f38(0x221)]===_0x4e208a){_0x42759a&&this[_0x9b5f38(0x213)](_0x9b5f38(0x2a2),()=>{const _0x230572=_0x9b5f38;_0x42759a(new Error(_0x230572(0x2b5)));}),process[_0x9b5f38(0x1fe)](_0x16d503,this);return;}if(_0x42759a&&this[_0x9b5f38(0x213)]('close',_0x42759a),this[_0x9b5f38(0x221)]!==_0x3cec3e){if(this[_0x9b5f38(0x221)]=_0x3cec3e,this['options'][_0x9b5f38(0x384)]||this[_0x9b5f38(0x223)][_0x9b5f38(0x301)])this[_0x9b5f38(0x24e)]&&(this['_removeListeners'](),this[_0x9b5f38(0x333)]=this[_0x9b5f38(0x24e)]=null),this['clients']?this[_0x9b5f38(0x215)]['size']?this[_0x9b5f38(0x305)]=!0x0:process[_0x9b5f38(0x1fe)](_0x16d503,this):process[_0x9b5f38(0x1fe)](_0x16d503,this);else{const _0x402b45=this[_0x9b5f38(0x24e)];this['_removeListeners'](),this[_0x9b5f38(0x333)]=this[_0x9b5f38(0x24e)]=null,_0x402b45[_0x9b5f38(0x2a2)](()=>{_0x16d503(this);});}}}['shouldHandle'](_0x5dc7c5){const _0x4b1556=_0x23f677;if(this[_0x4b1556(0x223)]['path']){const _0x394851=_0x5dc7c5[_0x4b1556(0x207)]['indexOf']('?');if((_0x394851!==-0x1?_0x5dc7c5[_0x4b1556(0x207)][_0x4b1556(0x342)](0x0,_0x394851):_0x5dc7c5[_0x4b1556(0x207)])!==this[_0x4b1556(0x223)]['path'])return!0x1;}return!0x0;}[_0x23f677(0x347)](_0x5eeffe,_0x3758c8,_0xf129a5,_0x355366){const _0x3343c2=_0x23f677;_0x3758c8['on'](_0x3343c2(0x2b0),_0x25d155);const _0x43dd24=_0x5eeffe[_0x3343c2(0x331)]['sec-websocket-key'],_0x31ae78=_0x5eeffe[_0x3343c2(0x331)][_0x3343c2(0x34d)],_0x3a7eec=+_0x5eeffe['headers']['sec-websocket-version'];if(_0x5eeffe[_0x3343c2(0x2cd)]!=='GET'){_0x1b16ad(this,_0x5eeffe,_0x3758c8,0x195,_0x3343c2(0x2e4));return;}if(_0x31ae78===void 0x0||_0x31ae78['toLowerCase']()!==_0x3343c2(0x212)){_0x1b16ad(this,_0x5eeffe,_0x3758c8,0x190,_0x3343c2(0x288));return;}if(_0x43dd24===void 0x0||!_0x42e33f[_0x3343c2(0x245)](_0x43dd24)){_0x1b16ad(this,_0x5eeffe,_0x3758c8,0x190,_0x3343c2(0x275));return;}if(_0x3a7eec!==0xd&&_0x3a7eec!==0x8){_0x1b16ad(this,_0x5eeffe,_0x3758c8,0x190,_0x3343c2(0x267),{'Sec-WebSocket-Version':_0x3343c2(0x38a)});return;}if(!this[_0x3343c2(0x21c)](_0x5eeffe)){_0x51dd19(_0x3758c8,0x190);return;}const _0xa9abb8=_0x5eeffe['headers'][_0x3343c2(0x28e)];let _0x3accf5=new Set();if(_0xa9abb8!==void 0x0)try{_0x3accf5=_0x5d4345[_0x3343c2(0x26a)](_0xa9abb8);}catch{_0x1b16ad(this,_0x5eeffe,_0x3758c8,0x190,_0x3343c2(0x1f1));return;}const _0xaa4cd1=_0x5eeffe[_0x3343c2(0x331)][_0x3343c2(0x362)],_0x442a29={};if(this[_0x3343c2(0x223)][_0x3343c2(0x268)]&&_0xaa4cd1!==void 0x0){const _0x1888d1=new _0x5b8c70(this[_0x3343c2(0x223)][_0x3343c2(0x268)],!0x0,this[_0x3343c2(0x223)][_0x3343c2(0x233)]);try{const _0x442520=_0x70ad75[_0x3343c2(0x26a)](_0xaa4cd1);_0x442520[_0x5b8c70['extensionName']]&&(_0x1888d1[_0x3343c2(0x357)](_0x442520[_0x5b8c70['extensionName']]),_0x442a29[_0x5b8c70[_0x3343c2(0x2d8)]]=_0x1888d1);}catch{_0x1b16ad(this,_0x5eeffe,_0x3758c8,0x190,_0x3343c2(0x25e));return;}}if(this['options'][_0x3343c2(0x31b)]){const _0x3260a8={'origin':_0x5eeffe[_0x3343c2(0x331)][''+(_0x3a7eec===0x8?_0x3343c2(0x341):_0x3343c2(0x374))],'secure':!!(_0x5eeffe[_0x3343c2(0x20d)]['authorized']||_0x5eeffe[_0x3343c2(0x20d)]['encrypted']),'req':_0x5eeffe};if(this[_0x3343c2(0x223)][_0x3343c2(0x31b)][_0x3343c2(0x34e)]===0x2){this['options'][_0x3343c2(0x31b)](_0x3260a8,(_0x689f73,_0x42f169,_0x3c48fd,_0x43f804)=>{const _0x3604a4=_0x3343c2;if(!_0x689f73)return _0x51dd19(_0x3758c8,_0x42f169||0x191,_0x3c48fd,_0x43f804);this[_0x3604a4(0x2bb)](_0x442a29,_0x43dd24,_0x3accf5,_0x5eeffe,_0x3758c8,_0xf129a5,_0x355366);});return;}if(!this[_0x3343c2(0x223)]['verifyClient'](_0x3260a8))return _0x51dd19(_0x3758c8,0x191);}this[_0x3343c2(0x2bb)](_0x442a29,_0x43dd24,_0x3accf5,_0x5eeffe,_0x3758c8,_0xf129a5,_0x355366);}[_0x23f677(0x2bb)](_0x2c300a,_0x4dc099,_0x13d001,_0x5807eb,_0x1ce94a,_0x17f95b,_0x369175){const _0x2e73fd=_0x23f677;if(!_0x1ce94a[_0x2e73fd(0x271)]||!_0x1ce94a[_0x2e73fd(0x232)])return _0x1ce94a[_0x2e73fd(0x230)]();if(_0x1ce94a[_0x3a6cff])throw new Error(_0x2e73fd(0x2fb));if(this[_0x2e73fd(0x221)]>_0x11c5ae)return _0x51dd19(_0x1ce94a,0x1f7);const _0xb49eb6=['HTTP/1.1\x20101\x20Switching\x20Protocols',_0x2e73fd(0x376),_0x2e73fd(0x235),_0x2e73fd(0x354)+_0x8ae449(_0x2e73fd(0x2b6))[_0x2e73fd(0x289)](_0x4dc099+_0xd4095d)['digest'](_0x2e73fd(0x23a))],_0x53e461=new this['options'][(_0x2e73fd(0x36d))](null,void 0x0,this['options']);if(_0x13d001[_0x2e73fd(0x3a0)]){const _0xd72dd2=this['options'][_0x2e73fd(0x2a0)]?this['options'][_0x2e73fd(0x2a0)](_0x13d001,_0x5807eb):_0x13d001[_0x2e73fd(0x33a)]()[_0x2e73fd(0x30c)]()[_0x2e73fd(0x314)];_0xd72dd2&&(_0xb49eb6[_0x2e73fd(0x26e)](_0x2e73fd(0x2f6)+_0xd72dd2),_0x53e461[_0x2e73fd(0x2d7)]=_0xd72dd2);}if(_0x2c300a[_0x5b8c70[_0x2e73fd(0x2d8)]]){const _0x9a720a=_0x2c300a[_0x5b8c70[_0x2e73fd(0x2d8)]][_0x2e73fd(0x38e)],_0x1f3729=_0x70ad75[_0x2e73fd(0x316)]({[_0x5b8c70[_0x2e73fd(0x2d8)]]:[_0x9a720a]});_0xb49eb6[_0x2e73fd(0x26e)](_0x2e73fd(0x30a)+_0x1f3729),_0x53e461[_0x2e73fd(0x37b)]=_0x2c300a;}this['emit'](_0x2e73fd(0x331),_0xb49eb6,_0x5807eb),_0x1ce94a['write'](_0xb49eb6[_0x2e73fd(0x322)]('\x0d\x0a')[_0x2e73fd(0x31c)]('\x0d\x0a')),_0x1ce94a[_0x2e73fd(0x36b)](_0x2e73fd(0x2b0),_0x25d155),_0x53e461[_0x2e73fd(0x1f8)](_0x1ce94a,_0x17f95b,{'allowSynchronousEvents':this['options'][_0x2e73fd(0x392)],'maxPayload':this[_0x2e73fd(0x223)][_0x2e73fd(0x233)],'skipUTF8Validation':this[_0x2e73fd(0x223)][_0x2e73fd(0x388)]}),this[_0x2e73fd(0x215)]&&(this[_0x2e73fd(0x215)][_0x2e73fd(0x2ef)](_0x53e461),_0x53e461['on']('close',()=>{const _0x14ae06=_0x2e73fd;this[_0x14ae06(0x215)][_0x14ae06(0x344)](_0x53e461),this[_0x14ae06(0x305)]&&!this[_0x14ae06(0x215)][_0x14ae06(0x3a0)]&&process[_0x14ae06(0x1fe)](_0x16d503,this);})),_0x369175(_0x53e461,_0x5807eb);}}Te=_0x4bb9b2;function _0x565aff(_0x2e2d2c,_0x151996){const _0x497f18=_0x23f677;for(const _0x3dd7f3 of Object[_0x497f18(0x3a3)](_0x151996))_0x2e2d2c['on'](_0x3dd7f3,_0x151996[_0x3dd7f3]);return function(){const _0x4b1916=_0x497f18;for(const _0x3ebf60 of Object[_0x4b1916(0x3a3)](_0x151996))_0x2e2d2c['removeListener'](_0x3ebf60,_0x151996[_0x3ebf60]);};}function _0x16d503(_0x5c27dd){const _0x4c03f2=_0x23f677;_0x5c27dd[_0x4c03f2(0x221)]=_0x4e208a,_0x5c27dd[_0x4c03f2(0x20e)]('close');}function _0x25d155(){const _0xc9e768=_0x23f677;this[_0xc9e768(0x230)]();}function _0x51dd19(_0x380b99,_0x70920a,_0x22253a,_0x3a3d39){const _0x42631d=_0x23f677;_0x22253a=_0x22253a||_0x1f23ec[_0x42631d(0x35f)][_0x70920a],_0x3a3d39={'Connection':_0x42631d(0x2a2),'Content-Type':'text/html','Content-Length':Buffer['byteLength'](_0x22253a),..._0x3a3d39},_0x380b99[_0x42631d(0x213)](_0x42631d(0x27e),_0x380b99['destroy']),_0x380b99[_0x42631d(0x261)](_0x42631d(0x323)+_0x70920a+'\x20'+_0x1f23ec[_0x42631d(0x35f)][_0x70920a]+'\x0d\x0a'+Object[_0x42631d(0x3a3)](_0x3a3d39)[_0x42631d(0x360)](_0x1fd30c=>_0x1fd30c+':\x20'+_0x3a3d39[_0x1fd30c])[_0x42631d(0x31c)]('\x0d\x0a')+_0x42631d(0x205)+_0x22253a);}function _0x1b16ad(_0x4e2c14,_0x22ee6f,_0x5bb592,_0x491562,_0x4c66eb,_0x5c3e97){const _0x13f499=_0x23f677;if(_0x4e2c14['listenerCount'](_0x13f499(0x310))){const _0x372313=new Error(_0x4c66eb);Error[_0x13f499(0x286)](_0x372313,_0x1b16ad),_0x4e2c14['emit']('wsClientError',_0x372313,_0x5bb592,_0x22ee6f);}else _0x51dd19(_0x5bb592,_0x491562,_0x4c66eb,_0x5c3e97);}return Te;}er();var tr=Object['getOwnPropertyDescriptor'],rr=(_0x16bc9b,_0x422a59,_0x520f33,_0x3d1698)=>{const _0x36155f=_0x4bc144;for(var _0x26f598=_0x3d1698>0x1?void 0x0:_0x3d1698?tr(_0x422a59,_0x520f33):_0x422a59,_0x97580f=_0x16bc9b[_0x36155f(0x34e)]-0x1,_0x2d9b84;_0x97580f>=0x0;_0x97580f--)(_0x2d9b84=_0x16bc9b[_0x97580f])&&(_0x26f598=_0x2d9b84(_0x26f598)||_0x26f598);return _0x26f598;},sr=(_0x228e01,_0x3763db)=>(_0x548a53,_0x20bfe5)=>_0x3763db(_0x548a53,_0x20bfe5,_0x228e01);let Ne=class extends _0x35b763{constructor(_0x394e4e){super(),this['_configService']=_0x394e4e;}[_0x4bc144(0x2b7)](_0x477e12){const _0x4c5faf=_0x4bc144;var _0x32edec;const _0x437d03=(_0x32edec=this[_0x4c5faf(0x35a)]['getConfig'](Be))==null?void 0x0:_0x32edec[_0x4c5faf(0x2bc)];try{const _0x8cb2b6=new Qt(_0x477e12,{'headers':{..._0x437d03}}),_0x3714dd=new _0x968827();return{'URL':_0x477e12,'close':(_0x34d9b0,_0x1a1317)=>{const _0x26ac4f=_0x4c5faf;_0x8cb2b6[_0x26ac4f(0x2a2)](_0x34d9b0,_0x1a1317),_0x3714dd[_0x26ac4f(0x1f6)]();},'send':_0x66ce04=>{const _0x543079=_0x4c5faf;_0x8cb2b6[_0x543079(0x25b)](_0x66ce04);},'open$':new _0xe8c78(_0x3ef6f9=>{const _0x32089b=_0x4c5faf,_0x117214=_0x4c7f38=>_0x3ef6f9[_0x32089b(0x30c)](_0x4c7f38);_0x8cb2b6[_0x32089b(0x2f8)](_0x32089b(0x2bf),_0x117214),_0x3714dd['add'](_0x5cd91c(()=>_0x8cb2b6[_0x32089b(0x297)](_0x32089b(0x2bf),_0x117214)));})['pipe'](_0x366d94()),'close$':new _0xe8c78(_0x29e6ee=>{const _0x120c1a=_0x4c5faf,_0x295a42=_0x201eda=>_0x29e6ee[_0x120c1a(0x30c)](_0x201eda);_0x8cb2b6[_0x120c1a(0x2f8)](_0x120c1a(0x2a2),_0x295a42),_0x3714dd[_0x120c1a(0x2ef)](_0x5cd91c(()=>_0x8cb2b6[_0x120c1a(0x297)](_0x120c1a(0x2a2),_0x295a42)));})[_0x4c5faf(0x352)](_0x366d94()),'error$':new _0xe8c78(_0x514bdb=>{const _0x36a192=_0x4c5faf,_0x4e0df2=_0x54d8dc=>_0x514bdb['next'](_0x54d8dc);_0x8cb2b6[_0x36a192(0x2f8)](_0x36a192(0x2b0),_0x4e0df2),_0x3714dd[_0x36a192(0x2ef)](_0x5cd91c(()=>_0x8cb2b6[_0x36a192(0x297)]('error',_0x4e0df2)));})['pipe'](_0x366d94()),'message$':new _0xe8c78(_0x2a42de=>{const _0x5c0e4d=_0x4c5faf,_0xe4b8bb=_0x3d239d=>_0x2a42de[_0x5c0e4d(0x30c)](_0x3d239d);_0x8cb2b6['addEventListener'](_0x5c0e4d(0x2d3),_0xe4b8bb),_0x3714dd['add'](_0x5cd91c(()=>_0x8cb2b6[_0x5c0e4d(0x297)]('message',_0xe4b8bb)));})[_0x4c5faf(0x352)](_0x366d94())};}catch(_0x174c42){return console['error'](_0x174c42),null;}}};Ne=rr([sr(0x0,_0x4e136d)],Ne);var ir=Object[_0x4bc144(0x39a)],nr=Object[_0x4bc144(0x23b)],or=(_0xffe2ac,_0x3334a8,_0x189f6b)=>_0x3334a8 in _0xffe2ac?ir(_0xffe2ac,_0x3334a8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x189f6b}):_0xffe2ac[_0x3334a8]=_0x189f6b,ar=(_0x4529f5,_0x56ff04,_0x523b43,_0x2078c9)=>{const _0x1e30ce=_0x4bc144;for(var _0xb1dbdc=_0x2078c9>0x1?void 0x0:_0x2078c9?nr(_0x56ff04,_0x523b43):_0x56ff04,_0x50b6f6=_0x4529f5[_0x1e30ce(0x34e)]-0x1,_0x10c560;_0x50b6f6>=0x0;_0x50b6f6--)(_0x10c560=_0x4529f5[_0x50b6f6])&&(_0xb1dbdc=_0x10c560(_0xb1dbdc)||_0xb1dbdc);return _0xb1dbdc;},ke=(_0x2de2ba,_0x49024f)=>(_0x467f16,_0x5c4ac1)=>_0x49024f(_0x467f16,_0x5c4ac1,_0x2de2ba),lr=(_0x3b842c,_0x2afe70,_0x279adb)=>or(_0x3b842c,_0x2afe70+'',_0x279adb);let Pe=class extends _0x1a238f{constructor(_0x5ec8f1=Ft,_0x449608,_0x4cc3b4,_0x52332f){const _0x4b402b=_0x4bc144;_0x5ec8f1['customHeaders']||_0x449608[_0x4b402b(0x343)]('[UniverCollaborationClientNodePlugin]:\x20you\x20should\x20set\x20customHeaders\x20for\x20authentication\x20in\x20UniverCollaborationClientNodePlugin\x27s\x20config.'),super(),this[_0x4b402b(0x35a)]=_0x4cc3b4,this[_0x4b402b(0x2c0)]=_0x52332f,this[_0x4b402b(0x35a)]['setConfig'](Be,_0x5ec8f1);}[_0x4bc144(0x252)](){const _0x129556=_0x4bc144;this[_0x129556(0x390)]();}[_0x4bc144(0x390)](){_0x3c8ebd(this['_injector'],[[_0x278a56,{'useClass':Ne}]]);}};lr(Pe,_0x4bc144(0x304),_0x4bc144(0x307)),Pe=ar([_0x4bf50d(_0x5486fe),ke(0x1,_0x4f088e),ke(0x2,_0x4e136d),ke(0x3,_0x559eb0(_0x40a410))],Pe);var fr=Object[_0x4bc144(0x23b)],cr=(_0x15fab2,_0x397330,_0x5a753d,_0x5ce4ef)=>{const _0x14d73a=_0x4bc144;for(var _0x34bead=_0x5ce4ef>0x1?void 0x0:_0x5ce4ef?fr(_0x397330,_0x5a753d):_0x397330,_0x9edf7a=_0x15fab2[_0x14d73a(0x34e)]-0x1,_0x347d99;_0x9edf7a>=0x0;_0x9edf7a--)(_0x347d99=_0x15fab2[_0x9edf7a])&&(_0x34bead=_0x347d99(_0x34bead)||_0x34bead);return _0x34bead;},se=(_0x372449,_0x24b7c6)=>(_0x52dd02,_0x58f952)=>_0x24b7c6(_0x52dd02,_0x58f952,_0x372449);let at=class extends _0x4bf000{constructor(_0x3fb17d,_0x3d3094,_0x4be092,_0x468998,_0x5534c2){const _0x2e5776=_0x4bc144;super(_0x3fb17d,_0x3d3094,_0x4be092,_0x468998,_0x5534c2);const _0x1f269c=this['_configService'][_0x2e5776(0x2d5)](Be);this[_0x2e5776(0x2e8)][_0x2e5776(0x2f4)]({'interceptor':(_0x3e104e,_0x284731)=>{const _0x5348b4=_0x2e5776;var _0x259883;const _0xbc75de=_0x3e104e[_0x5348b4(0x331)];return(_0x259883=_0x1f269c==null?void 0x0:_0x1f269c[_0x5348b4(0x2bc)])!=null&&_0x259883[_0x5348b4(0x24a)]&&_0xbc75de[_0x5348b4(0x251)]('Cookie',_0x1f269c[_0x5348b4(0x2bc)][_0x5348b4(0x24a)]),_0x284731(_0x3e104e);}});}async[_0x4bc144(0x2b7)](_0x125e79){const _0x1fd057=_0x4bc144;return this[_0x1fd057(0x2c8)](_0x125e79);}};at=cr([se(0x0,_0x559eb0(_0x40a410)),se(0x1,_0x559eb0(_0x4e6c74)),se(0x2,_0x4e136d),se(0x3,_0x4f088e),se(0x4,_0x29527f)],at);export{Be as COLLABORATION_CLIENT_NODE_CONFIG_KEY,at as NodeCollaborationSocketService,Pe as UniverCollaborationClientNodePlugin};