@e-techsolutions/e-baas-sdk 1.1.6 → 1.1.7

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/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';(function(stringArrayFunction,comparisonValue){function _0x551f1c(_0x40a4b9,_0x18b019){return _0x6f43(_0x40a4b9-0x21c,_0x18b019);}const stringArray=stringArrayFunction();while(!![]){try{const _0x411a05=-parseInt(_0x551f1c(0x475,0x4de))/0x1*(-parseInt(_0x551f1c(0x4b3,0x3b8))/0x2)+-parseInt(_0x551f1c(0x3e6,0x320))/0x3*(parseInt(_0x551f1c(0x5df,0x56e))/0x4)+-parseInt(_0x551f1c(0x489,0x43c))/0x5*(parseInt(_0x551f1c(0x60a,0x61e))/0x6)+-parseInt(_0x551f1c(0x4dd,0x500))/0x7*(parseInt(_0x551f1c(0x56f,0x55b))/0x8)+parseInt(_0x551f1c(0x5ee,0x50a))/0x9*(-parseInt(_0x551f1c(0x4bd,0x493))/0xa)+-parseInt(_0x551f1c(0x5d9,0x4ed))/0xb+parseInt(_0x551f1c(0x52c,0x60d))/0xc;if(_0x411a05===comparisonValue)break;else stringArray['push'](stringArray['shift']());}catch(_0x153c38){stringArray['push'](stringArray['shift']());}}}(_0x10f8,0x800bc));var axios=require('axios'),EventEmitter=require(_0x2d7030(0x481,0x41f));function _0x2d7030(_0x46615f,_0x486f23){return _0x6f43(_0x486f23-0x262,_0x46615f);}class EBaaSError extends Error{constructor(_0x30ff62,status=0x0,_0x18ba07){super(_0x30ff62),this['name']=_0x47332f(-0x2,0x2d),this[_0x47332f(0x36,0xd0)]=status,this['details']=_0x18ba07;function _0x47332f(_0x53e2f3,_0x354518){return _0x6f43(_0x354518- -0x199,_0x53e2f3);}Error[_0x47332f(0x2a6,0x20f)]&&Error['captureStackTrace'](this,EBaaSError);}['toJSON'](){function _0x55345a(_0x5e3528,_0x4b14a5){return _0x6f43(_0x4b14a5- -0x3bd,_0x5e3528);}return{'name':this['name'],'message':this['message'],'status':this[_0x55345a(-0xa3,-0x154)],'details':this['details'],'stack':this[_0x55345a(0xc9,-0x51)]};}[_0x2d7030(0x55b,0x5b7)](){function _0x4c1778(_0x1fee32,_0x43fb4e){return _0x6f43(_0x1fee32- -0x163,_0x43fb4e);}return this[_0x4c1778(0x207,0x2ad)]+':\x20'+this['message']+_0x4c1778(0xe1,0x56)+this['status']+')';}}class HttpClient{constructor(config){this['baseURL']=config['url'],this[_0x344ae6(0xa4,0xdf)]=config['apiKey'];function _0x344ae6(_0xe366fc,_0x564861){return _0x6f43(_0x564861- -0x105,_0xe366fc);}this[_0x344ae6(0x32e,0x2b5)]=axios[_0x344ae6(0x1df,0x29d)]({'baseURL':this[_0x344ae6(0x1c0,0x28e)],'timeout':config['timeout']||0x2710,'headers':{'Content-Type':'application/json','apikey':this['apiKey'],...config[_0x344ae6(0x92,0x165)]}}),this[_0x344ae6(0x39,0xe1)]();}[_0x2d7030(0x3b4,0x448)](){function _0x5b5511(_0x56cb70,_0x7dc3e7){return _0x6f43(_0x7dc3e7- -0x343,_0x56cb70);}this['client']['interceptors'][_0x5b5511(0x3,-0x1d)]['use'](config=>{return config;},_0x1f0615=>{function _0x3c8e3c(_0x2596d0,_0x36ccbd){return _0x6f43(_0x2596d0- -0x3b7,_0x36ccbd);}return Promise['reject'](new EBaaSError(_0x3c8e3c(-0x1a6,-0xb5),0x0,_0x1f0615));}),this['client']['interceptors'][_0x5b5511(0x6c,-0x36)]['use'](response=>{return response;},_0x5a37a9=>{const status=_0x5a37a9[_0x250437(0x601,0x68c)]?.[_0x250437(0x55d,0x4b4)]||0x0;function _0x250437(_0x5590e7,_0x14ccb2){return _0x6f43(_0x5590e7-0x2f4,_0x14ccb2);}const _0xb2809c=_0x5a37a9[_0x250437(0x601,0x57b)]?.[_0x250437(0x6d7,0x6f5)]?.[_0x250437(0x60f,0x70b)]||_0x5a37a9['message']||_0x250437(0x4b4,0x58d),_0x5b4f6a=_0x5a37a9['response']?.[_0x250437(0x6d7,0x637)]||_0x5a37a9;return Promise['reject'](new EBaaSError(_0xb2809c,status,_0x5b4f6a));});}async[_0x2d7030(0x683,0x579)](_0x14fd71,config){function _0x1585db(_0x329ce2,_0x5a11a9){return _0x6f43(_0x5a11a9- -0x1a5,_0x329ce2);}try{const response=await this['client']['get'](_0x14fd71,config);return{'data':response[_0x1585db(0x279,0x23e)],'status':response['status'],'statusText':response['statusText'],'headers':response['headers']};}catch(_0x1f1973){throw this['handleError'](_0x1f1973);}}async[_0x2d7030(0x323,0x423)](_0x3028f3,data,config){try{const response=await this['client']['post'](_0x3028f3,data,config);return{'data':response['data'],'status':response['status'],'statusText':response['statusText'],'headers':response['headers']};}catch(_0x3ad9c6){throw this['handleError'](_0x3ad9c6);}}async[_0x2d7030(0x4e1,0x470)](_0x399162,data,config){function _0x5e1946(_0x3a8e61,_0x538fbc){return _0x6f43(_0x3a8e61- -0x3b2,_0x538fbc);}try{const response=await this['client']['put'](_0x399162,data,config);return{'data':response[_0x5e1946(0x31,-0xa4)],'status':response[_0x5e1946(-0x149,-0xdc)],'statusText':response['statusText'],'headers':response['headers']};}catch(_0x1ae497){throw this['handleError'](_0x1ae497);}}async['patch'](_0x2e9df7,data,config){function _0x43f0fe(_0x15d63a,_0x40cf21){return _0x6f43(_0x40cf21-0x39c,_0x15d63a);}try{const response=await this['client'][_0x43f0fe(0x512,0x5ea)](_0x2e9df7,data,config);return{'data':response[_0x43f0fe(0x7fc,0x77f)],'status':response['status'],'statusText':response['statusText'],'headers':response['headers']};}catch(_0x3f39d1){throw this[_0x43f0fe(0x5f3,0x64e)](_0x3f39d1);}}async['delete'](_0xa47ae9,config){function _0x484e95(_0x5b3bd9,_0x13b54a){return _0x6f43(_0x13b54a- -0xf2,_0x5b3bd9);}try{const response=await this['client']['delete'](_0xa47ae9,config);return{'data':response[_0x484e95(0x266,0x2f1)],'status':response['status'],'statusText':response['statusText'],'headers':response['headers']};}catch(_0x58c27e){throw this[_0x484e95(0x205,0x1c0)](_0x58c27e);}}['setAuthToken'](_0xd7672e){function _0x282711(_0x5343a5,_0x40c176){return _0x6f43(_0x5343a5- -0x274,_0x40c176);}this[_0x282711(0x146,0x8f)]['defaults'][_0x282711(-0xa,0xbf)]['common']['Authorization']=_0x282711(0x82,0x125)+_0xd7672e;}['removeAuthToken'](){delete this[_0x5ccfd1(0x578,0x5ef)]['defaults']['headers']['common']['Authorization'];function _0x5ccfd1(_0x113878,_0xf9a4f8){return _0x6f43(_0xf9a4f8-0x235,_0x113878);}this[_0x5ccfd1(0x533,0x5ef)]['defaults'][_0x5ccfd1(0x4fd,0x49f)][_0x5ccfd1(0x427,0x4f3)]['Authorization']=_0x5ccfd1(0x44b,0x52b)+this[_0x5ccfd1(0x499,0x419)];}['handleError'](_0x30e4c8){function _0xcac730(_0x28df78,_0x587330){return _0x6f43(_0x587330-0x318,_0x28df78);}if(_0x30e4c8 instanceof EBaaSError)return _0x30e4c8;return new EBaaSError(_0x30e4c8[_0xcac730(0x600,0x633)]||_0xcac730(0x554,0x627),_0x30e4c8['status']||0x0,_0x30e4c8);}}class AuthClient{constructor(_0x4839ac,_0x2c434b){this['currentSession']=null,this['httpClient']=_0x4839ac,this['workspaceId']=_0x2c434b,this['loadSession']();}async['signUp'](data){function _0x3e63bd(_0x30ec9b,_0x433b9a){return _0x6f43(_0x30ec9b- -0x39e,_0x433b9a);}try{const response=await this['httpClient'][_0x3e63bd(-0x1dd,-0x19b)]('/auth/v1/signup',data);return response['data'][_0x3e63bd(0x4a,-0x25)]&&this['setSessionInternal'](response[_0x3e63bd(0x45,-0x8b)][_0x3e63bd(0x4a,0x11d)]),response[_0x3e63bd(0x45,0x32)];}catch(_0x49d5b4){throw this['handleAuthError'](_0x49d5b4);}}async['signIn'](data){function _0xb6d31b(_0x5d331a,_0x5f12c7){return _0x6f43(_0x5f12c7- -0x372,_0x5d331a);}try{const headers={};this[_0xb6d31b(-0x145,-0x197)]&&(headers['X-Workspace-ID']=this['workspaceId']);const response=await this['httpClient'][_0xb6d31b(-0x161,-0x1b1)]('/auth/v1/sdk/signin',data,{'headers':headers});return response[_0xb6d31b(0x99,0x71)][_0xb6d31b(0x118,0x76)]&&this['setSessionInternal'](response[_0xb6d31b(-0x1a,0x71)]['session']),response['data'];}catch(_0x52fdfe){throw this[_0xb6d31b(-0x19e,-0x8b)](_0x52fdfe);}}async[_0x2d7030(0x5a5,0x54b)](){function _0x12206b(_0x31550a,_0x3014b6){return _0x6f43(_0x31550a-0x343,_0x3014b6);}try{await this['httpClient']['post'](_0x12206b(0x63a,0x5ab)),this[_0x12206b(0x633,0x5a5)]();}catch(_0x1b0893){this[_0x12206b(0x633,0x640)]();throw this['handleAuthError'](_0x1b0893);}}async[_0x2d7030(0x3d7,0x424)](){function _0x126a41(_0x148769,_0x46287a){return _0x6f43(_0x148769-0x19f,_0x46287a);}if(!this[_0x126a41(0x42a,0x4e9)]?.['access_token'])return null;try{const response=await this['httpClient']['get']('/auth/v1/user');return response[_0x126a41(0x582,0x59a)][_0x126a41(0x4f7,0x41d)];}catch(_0x234350){if(_0x234350 instanceof EBaaSError&&_0x234350[_0x126a41(0x408,0x520)]===0x191)return this['clearSession'](),null;throw this['handleAuthError'](_0x234350);}}async['refreshSession'](){if(!this['currentSession']?.['refresh_token'])return null;function _0x4fcf6a(_0x35cb8b,_0x51c772){return _0x6f43(_0x35cb8b-0x20e,_0x51c772);}try{const response=await this['httpClient']['post'](_0x4fcf6a(0x4b8,0x518),{'refresh_token':this['currentSession']['refresh_token']});if(response['data'][_0x4fcf6a(0x5f6,0x61a)])return this['setSession'](response[_0x4fcf6a(0x5f1,0x575)]['session']),response['data'][_0x4fcf6a(0x5f6,0x676)];return null;}catch(_0x33a16b){this[_0x4fcf6a(0x4fe,0x3f2)]();throw this[_0x4fcf6a(0x4f5,0x451)](_0x33a16b);}}async['resetPassword'](_0x231bea){function _0x18dfa1(_0x1402e7,_0x472202){return _0x6f43(_0x1402e7-0xae,_0x472202);}try{await this['httpClient']['post'](_0x18dfa1(0x3dc,0x40e),{'email':_0x231bea});}catch(_0x43e879){throw this['handleAuthError'](_0x43e879);}}async['updateUser'](data){function _0x10eeeb(_0x1b5ae7,_0x284341){return _0x6f43(_0x284341-0x215,_0x1b5ae7);}try{const response=await this['httpClient']['put']('/auth/v1/user',data);return response[_0x10eeeb(0x6bc,0x5f8)]['user'];}catch(_0x2f4b2f){throw this['handleAuthError'](_0x2f4b2f);}}[_0x2d7030(0x61e,0x5e5)](){return this['currentSession'];}[_0x2d7030(0x4e2,0x4a5)](_0x1839b2){this[_0x39cc1e(0x604,0x591)]=_0x1839b2;function _0x39cc1e(_0x388fc4,_0x479b8a){return _0x6f43(_0x388fc4-0x379,_0x479b8a);}this['httpClient'][_0x39cc1e(0x5b3,0x518)](_0x1839b2['access_token']),typeof localStorage!=='undefined'&&localStorage[_0x39cc1e(0x57d,0x4df)](_0x39cc1e(0x5a2,0x61a),JSON['stringify'](_0x1839b2));}[_0x2d7030(0x5e4,0x5cf)](_0x352769){return()=>{};}['setWorkspaceId'](_0xf80eb8){function _0x21c27a(_0x233ff5,_0x20cb2e){return _0x6f43(_0x233ff5-0x352,_0x20cb2e);}this[_0x21c27a(0x52d,0x535)]=_0xf80eb8;}[_0x2d7030(0x403,0x491)](_0x181fc9){function _0x25bd3c(_0x3ac8b0,_0x446388){return _0x6f43(_0x446388-0x355,_0x3ac8b0);}this['currentSession']=_0x181fc9,this[_0x25bd3c(0x658,0x6ab)][_0x25bd3c(0x67a,0x58f)](_0x181fc9[_0x25bd3c(0x63d,0x692)]),typeof localStorage!==_0x25bd3c(0x4a8,0x58b)&&localStorage[_0x25bd3c(0x59b,0x559)](_0x25bd3c(0x53b,0x57e),JSON['stringify'](_0x181fc9));}['clearSession'](){function _0x4647f0(_0x12cba8,_0x1364e0){return _0x6f43(_0x12cba8- -0x367,_0x1364e0);}this['currentSession']=null,this['httpClient'][_0x4647f0(-0xe8,0x2d)](),typeof localStorage!=='undefined'&&localStorage['removeItem']('ebaas.auth.session');}[_0x2d7030(0x5b8,0x4d3)](){function _0x326d4e(_0x217aa4,_0x1cda69){return _0x6f43(_0x217aa4- -0x120,_0x1cda69);}if(typeof localStorage!==_0x326d4e(0x116,0x5d)){const _0x18fa3f=localStorage[_0x326d4e(0x11f,0x219)]('ebaas.auth.session');if(_0x18fa3f)try{const _0x38137a=JSON['parse'](_0x18fa3f);this[_0x326d4e(0x10f,0x43)](_0x38137a);}catch(_0xda984b){this['clearSession']();}}}['handleAuthError'](_0x144463){function _0x535b1a(_0x9c0495,_0x18d033){return _0x6f43(_0x9c0495- -0x13f,_0x18d033);}if(_0x144463 instanceof EBaaSError)return _0x144463;return new EBaaSError(_0x144463['message']||'Authentication\x20failed',_0x144463[_0x535b1a(0x12a,0xfe)]||0x0,_0x144463);}}class QueryBuilder{constructor(_0x479388,_0x5cdda7,_0x4ebd8f,_0x362950){this[_0x146ad2(0x48,-0x9f)]=_0x479388;function _0x146ad2(_0x5399df,_0x5ecb34){return _0x6f43(_0x5399df- -0x30e,_0x5ecb34);}this['table']=_0x5cdda7,this[_0x146ad2(-0x2a,0x37)]=_0x4ebd8f,this['workspaceId']=_0x362950,this[_0x146ad2(-0x132,-0x1f3)]={'filters':[]};}[_0x2d7030(0x658,0x5f7)](_0x1cbbf0='*',_0xca8002){return this['query']['select']=_0x1cbbf0,this;}['insert'](data,_0x1e4436){function _0x4d85bd(_0x47bb2d,_0x52e832){return _0x6f43(_0x47bb2d-0x105,_0x52e832);}return this['executeQuery']('POST',_0x4d85bd(0x418,0x35e)+this[_0x4d85bd(0x337,0x242)]+_0x4d85bd(0x3a0,0x31e),{'data':data,'options':_0x1e4436});}[_0x2d7030(0x3b3,0x4ae)](data,_0x132e4f){this[_0x5a9520(0x169,0x19a)][_0x5a9520(0x279,0x2f3)]=data,this[_0x5a9520(0x18b,0x19a)][_0x5a9520(0x39b,0x302)]=_0x132e4f;function _0x5a9520(_0x507172,_0x549bd0){return _0x6f43(_0x549bd0- -0x42,_0x507172);}return this;}[_0x2d7030(0x552,0x62a)](data,_0x36505b){function _0x374b04(_0x198919,_0x1dad3f){return _0x6f43(_0x198919-0x3cb,_0x1dad3f);}return this['executeQuery']('POST','/sdk/v1/'+this['table']+_0x374b04(0x70e,0x765),{'data':data,'options':{..._0x36505b,'upsert':!![]}});}[_0x2d7030(0x4f7,0x55c)](_0x15d26e){this['query']['deleteOptions']=_0x15d26e,this[_0x4528cc(-0x43,-0x87)][_0x4528cc(0x235,0x14c)]=!![];function _0x4528cc(_0x480477,_0x5d901b){return _0x6f43(_0x5d901b- -0x263,_0x480477);}return this;}['eq'](_0x3e8ab7,_0x26f920){this['query']['filters'][_0x5185ec(-0x3f,-0x7a)]({'column':_0x3e8ab7,'operator':'eq','value':_0x26f920});function _0x5185ec(_0x31d349,_0x9bcd54){return _0x6f43(_0x31d349- -0x23e,_0x9bcd54);}return this;}[_0x2d7030(0x4b7,0x533)](_0x456af1,_0x4e483b){this['query'][_0x19b3b2(0x3dc,0x3bb)][_0x19b3b2(0x3ea,0x33a)]({'column':_0x456af1,'operator':'neq','value':_0x4e483b});function _0x19b3b2(_0x59b151,_0x572922){return _0x6f43(_0x59b151-0x1eb,_0x572922);}return this;}['gt'](_0x58bd0e,_0xf082f1){this[_0x56377a(0x3aa,0x495)][_0x56377a(0x3fc,0x4aa)][_0x56377a(0x564,0x4b8)]({'column':_0x58bd0e,'operator':'gt','value':_0xf082f1});function _0x56377a(_0x1aadae,_0x3a27f7){return _0x6f43(_0x3a27f7-0x2b9,_0x1aadae);}return this;}['gte'](_0x4ade19,_0x44207f){return this['query']['filters']['push']({'column':_0x4ade19,'operator':'gte','value':_0x44207f}),this;}['lt'](_0x965505,_0x27ea2d){this[_0x1562aa(0x1a6,0x256)][_0x1562aa(0x38d,0x26b)][_0x1562aa(0x23a,0x279)]({'column':_0x965505,'operator':'lt','value':_0x27ea2d});function _0x1562aa(_0x41264b,_0x385d68){return _0x6f43(_0x385d68-0x7a,_0x41264b);}return this;}['lte'](_0x278b16,_0x22302d){this[_0x685412(0x42c,0x3eb)][_0x685412(0x498,0x400)][_0x685412(0x4df,0x40e)]({'column':_0x278b16,'operator':'lte','value':_0x22302d});function _0x685412(_0x30c592,_0x28b376){return _0x6f43(_0x28b376-0x20f,_0x30c592);}return this;}[_0x2d7030(0x533,0x49b)](_0x70419e,_0x4673c1){function _0x10511f(_0x5743ea,_0x9ff0b7){return _0x6f43(_0x9ff0b7- -0x330,_0x5743ea);}return this[_0x10511f(-0x178,-0x154)][_0x10511f(-0x18f,-0x13f)][_0x10511f(-0x2e,-0x131)]({'column':_0x70419e,'operator':_0x10511f(-0x16b,-0xf7),'value':_0x4673c1}),this;}[_0x2d7030(0x72c,0x610)](_0x309e02,_0x432dd0){this[_0x1a9586(0x3e5,0x302)][_0x1a9586(0x3e1,0x317)][_0x1a9586(0x3ea,0x325)]({'column':_0x309e02,'operator':_0x1a9586(0x49a,0x4d4),'value':_0x432dd0});function _0x1a9586(_0x5d7595,_0x2af243){return _0x6f43(_0x2af243-0x126,_0x5d7595);}return this;}['is'](_0x1e8bbe,_0xe2b695){this['query']['filters'][_0x45f600(0x56c,0x54f)]({'column':_0x1e8bbe,'operator':'is','value':_0xe2b695});function _0x45f600(_0x51ba7f,_0x1c492b){return _0x6f43(_0x51ba7f-0x36d,_0x1c492b);}return this;}['in'](_0x4025b1,_0x47697b){function _0x32fb89(_0x47ba3f,_0xab31d1){return _0x6f43(_0x47ba3f- -0x298,_0xab31d1);}return this[_0x32fb89(-0xbc,-0x1a7)][_0x32fb89(-0xa7,-0x93)][_0x32fb89(-0x99,-0x6d)]({'column':_0x4025b1,'operator':'in','value':_0x47697b}),this;}[_0x2d7030(0x3ee,0x475)](_0x255ef1,_0x58c396){this['query'][_0x2f0f55(0x230,0x112)][_0x2f0f55(0xb0,0x120)]({'column':_0x255ef1,'operator':'contains','value':_0x58c396});function _0x2f0f55(_0x56563c,_0x3bcf6b){return _0x6f43(_0x3bcf6b- -0xdf,_0x56563c);}return this;}[_0x2d7030(0x4e1,0x5f4)](_0x29e7fd){return Object['entries'](_0x29e7fd)['forEach'](([_0x41a1e3,_0x60636])=>{this['eq'](_0x41a1e3,_0x60636);}),this;}['order'](_0x58b07a,_0x2e9714){!this[_0x2bd726(0x157,0x143)]['order']&&(this[_0x2bd726(0x157,0x241)][_0x2bd726(0x1a6,0x1d8)]=[]);this[_0x2bd726(0x157,0x1c8)][_0x2bd726(0x1a6,0x2b9)][_0x2bd726(0x17a,0x27d)]({'column':_0x58b07a,'ascending':_0x2e9714?.[_0x2bd726(0x360,0x3d1)]!==![]});function _0x2bd726(_0x3bd77f,_0x4742cc){return _0x6f43(_0x3bd77f- -0x85,_0x4742cc);}return this;}[_0x2d7030(0x516,0x4e6)](count){function _0x56daf5(_0xc5cd7e,_0x341516){return _0x6f43(_0xc5cd7e- -0xb2,_0x341516);}return this[_0x56daf5(0x12a,0x10a)][_0x56daf5(0x1d2,0xd2)]=count,this;}[_0x2d7030(0x465,0x544)](from,_0x5db36a){return this['query']['range']={'from':from,'to':_0x5db36a},this;}async['execute'](){function _0x268daf(_0x53ba3d,_0x4a44d3){return _0x6f43(_0x53ba3d-0x91,_0x4a44d3);}if(this['query'][_0x268daf(0x3c6,0x2cb)])return this[_0x268daf(0x350,0x2f0)]('PATCH','/sdk/v1/'+this['table'],{'data':this['query'][_0x268daf(0x3c6,0x344)],'options':this['query']['updateOptions'],'filters':this['query'][_0x268daf(0x282,0x314)]});else return this['query'][_0x268daf(0x440,0x51b)]?this[_0x268daf(0x350,0x338)]('DELETE','/sdk/v1/'+this['table']+'?operation=delete',{'options':this['query'][_0x268daf(0x395,0x468)],'filters':this['query']['filters']}):this['executeQuery']('GET',_0x268daf(0x3a4,0x302)+this['table']+_0x268daf(0x29c,0x2e5),{'select':this['query']['select'],'filters':this['query']['filters'],'order':this[_0x268daf(0x26d,0x363)][_0x268daf(0x2bc,0x214)],'limit':this[_0x268daf(0x26d,0x2ef)]['limit'],'range':this[_0x268daf(0x26d,0x253)][_0x268daf(0x373,0x368)]});}async['single'](){this['limit'](0x1);function _0x35dcd2(_0x298934,_0x52b47b){return _0x6f43(_0x52b47b-0x31b,_0x298934);}const result=await this['execute']();return{'data':result[_0x35dcd2(0x6a5,0x6fe)]?.[0x0]||null,'error':result[_0x35dcd2(0x6de,0x5cc)]};}async[_0x2d7030(0x59b,0x521)](_0x20afa8,_0x2ef826,_0x217ee8){function _0x491ec1(_0xd90a8a,_0x3727fb){return _0x6f43(_0x3727fb-0x61,_0xd90a8a);}try{let response;const headers={};this['workspaceId']&&(headers['x-workspace-id']=this[_0x491ec1(0x12e,0x23c)]);if(_0x20afa8==='GET'){const _0x3a6977=_0x2ef826[_0x491ec1(0x452,0x3ab)]('?'),_0x2c0bf6=_0x3a6977[0x0],existingParams=new URLSearchParams(_0x3a6977[0x1]||'');if(_0x217ee8['select'])existingParams['append'](_0x491ec1(0x42a,0x3f6),_0x217ee8[_0x491ec1(0x33b,0x3f6)]);_0x217ee8[_0x491ec1(0x35f,0x252)]?.['length']&&_0x217ee8['filters'][_0x491ec1(0x2e5,0x3f1)](filter=>{function _0x1ea8c2(_0x32e0d2,_0x141608){return _0x6f43(_0x32e0d2- -0x8d,_0x141608);}existingParams['append'](filter[_0x1ea8c2(0x364,0x31c)],filter[_0x1ea8c2(0x347,0x392)]+'.'+filter['value']);});if(_0x217ee8[_0x491ec1(0x331,0x28c)]?.['length']){const orderStr=_0x217ee8['order'][_0x491ec1(0x209,0x224)](_0xd1efff=>''+_0xd1efff[_0x491ec1(0x528,0x452)]+(_0xd1efff[_0x491ec1(0x567,0x446)]?'.asc':'.desc'))['join'](',');existingParams['append']('order',orderStr);}if(_0x217ee8[_0x491ec1(0x1ff,0x2e5)])existingParams['append']('limit',_0x217ee8[_0x491ec1(0x343,0x2e5)][_0x491ec1(0x2a1,0x3b6)]());_0x217ee8[_0x491ec1(0x2d5,0x343)]&&(existingParams[_0x491ec1(0x485,0x456)](_0x491ec1(0x509,0x41c),_0x217ee8[_0x491ec1(0x37f,0x343)]['from'][_0x491ec1(0x3e0,0x3b6)]()),existingParams['append']('limit',(_0x217ee8['range']['to']-_0x217ee8[_0x491ec1(0x2ff,0x343)]['from']+0x1)[_0x491ec1(0x3d0,0x3b6)]())),response=await this[_0x491ec1(0x440,0x3b7)][_0x491ec1(0x46c,0x378)](_0x2c0bf6+'?'+existingParams['toString'](),{'headers':headers});}else{if(_0x20afa8==='DELETE'){const _0x41cecb=_0x2ef826[_0x491ec1(0x4bb,0x3ab)]('?'),_0x5b2f2b=_0x41cecb[0x0],existingParams=new URLSearchParams(_0x41cecb[0x1]||'');!existingParams[_0x491ec1(0x313,0x35c)]('operation')&&existingParams['append'](_0x491ec1(0x3a9,0x344),_0x491ec1(0x291,0x35b));_0x217ee8[_0x491ec1(0x31f,0x252)]?.['length']&&_0x217ee8['filters'][_0x491ec1(0x382,0x3f1)](filter=>{function _0x619730(_0x4f287e,_0x450443){return _0x6f43(_0x450443- -0xfa,_0x4f287e);}existingParams[_0x619730(0x30d,0x2fb)](filter[_0x619730(0x1f9,0x2f7)],filter['operator']+'.'+filter[_0x619730(0x153,0x1e2)]);});const deleteUrl=_0x5b2f2b+'?'+existingParams['toString']();console['log']('\uD83D\uDD27 DELETE URL construída:',deleteUrl),console['log']('\uD83D\uDD27 DELETE headers:',headers),console[_0x491ec1(0x2d9,0x2ac)]('\uD83D\uDD27 DELETE filtros originais:',_0x217ee8['filters']),response=await this['httpClient']['delete'](deleteUrl,{'headers':headers});}else{if(_0x20afa8==='PATCH'){const _0x18d8c9=_0x2ef826['split']('?'),_0x3411ed=_0x18d8c9[0x0],existingParams=new URLSearchParams(_0x18d8c9[0x1]||'');!existingParams[_0x491ec1(0x38d,0x35c)]('operation')&&existingParams[_0x491ec1(0x3b7,0x456)]('operation','update');_0x217ee8['filters']?.[_0x491ec1(0x336,0x2a6)]&&_0x217ee8[_0x491ec1(0x349,0x252)]['forEach'](filter=>{function _0x5eb6f2(_0x2afd09,_0x5e86d6){return _0x6f43(_0x2afd09-0xce,_0x5e86d6);}existingParams['append'](filter['column'],filter[_0x5eb6f2(0x4a2,0x414)]+'.'+filter['value']);});_0x217ee8['options']?.['prefer']&&(headers['Prefer']=_0x217ee8['options'][_0x491ec1(0x39b,0x384)]);const updateUrl=_0x3411ed+'?'+existingParams[_0x491ec1(0x4b5,0x3b6)]();response=await this['httpClient']['patch'](updateUrl,_0x217ee8[_0x491ec1(0x422,0x444)],{'headers':headers});}else{let _0x1f3e5e=_0x217ee8[_0x491ec1(0x54b,0x444)];!headers['Prefer']&&(headers['Prefer']=_0x491ec1(0x32a,0x36a)),_0x217ee8['options']?.['upsert']&&(headers['Prefer']=_0x491ec1(0x289,0x2bb)),_0x217ee8[_0x491ec1(0x220,0x308)]&&(_0x1f3e5e=_0x217ee8[_0x491ec1(0x33b,0x308)]),response=await this['httpClient'][_0x491ec1(0x107,0x222)](_0x2ef826,_0x1f3e5e,{'headers':headers});}}}return{'data':response['data'],'error':null,'count':response['headers']?.['x-total-count']?parseInt(response[_0x491ec1(0x3af,0x2cb)][_0x491ec1(0x403,0x3d9)]):undefined};}catch(_0x1c77a7){return{'data':null,'error':_0x1c77a7 instanceof EBaaSError?_0x1c77a7:new EBaaSError(_0x1c77a7 instanceof Error?_0x1c77a7[_0x491ec1(0x40b,0x37c)]:_0x491ec1(0x33b,0x220),0x0,_0x1c77a7)};}}}class CustomDatabaseManager{constructor(_0x553348,_0x382c5c){function _0x5c8021(_0x2dc87c,_0x5ed9cc){return _0x6f43(_0x2dc87c- -0x86,_0x5ed9cc);}this['httpClient']=_0x553348,this[_0x5c8021(0x155,0x18d)]=_0x382c5c;}async['detectCustomDatabase'](){if(!this['workspaceId'])return{'hasCustomDatabase':![]};try{const response=await this['httpClient'][_0x143d5e(0x3ec,0x4d0)]('/admin/v1/workspace/custom-database',{'headers':{'x-workspace-id':this[_0x143d5e(0x2b0,0x1f2)]}});if(response['status']===0xc8&&response['data']?.['config']){const config=response['data'][_0x143d5e(0x2e2,0x3eb)],_0x2e733b={'host':config[_0x143d5e(0x48e,0x486)],'port':config['postgresPort'],'database':config['postgresDatabase'],'username':config['postgresUsername'],'password':'','schema':config[_0x143d5e(0x3ef,0x488)],'sslEnabled':config['sslEnabled']};return this[_0x143d5e(0x383,0x44b)]={'hasCustomDatabase':!![],'config':config,'credentials':_0x2e733b},this[_0x143d5e(0x383,0x298)];}}catch(_0x25a4cd){if(_0x25a4cd?.['status']===0x194)return this['detectedConfig']={'hasCustomDatabase':![]},this['detectedConfig'];console['warn']('Failed to detect custom database configuration:',_0x25a4cd);}function _0x143d5e(_0x6d7517,_0x16d829){return _0x6f43(_0x6d7517-0xd5,_0x16d829);}return this['detectedConfig']={'hasCustomDatabase':![]},this['detectedConfig'];}async['testConnection'](_0x272583){function _0x345196(_0x3dcfd4,_0x253744){return _0x6f43(_0x253744-0x1d,_0x3dcfd4);}try{const response=await this['httpClient']['post']('/admin/v1/workspace/custom-database/test-connection',_0x272583,{'headers':this['workspaceId']?{'X-Workspace-ID':this['workspaceId']}:{}});return response[_0x345196(0x4bd,0x400)];}catch(_0x746277){return{'success':![],'message':_0x746277?.[_0x345196(0x387,0x338)]||'Failed\x20to\x20test\x20connection'};}}async[_0x2d7030(0x369,0x489)](_0x39052c){if(!this[_0x424b45(-0xe8,-0x17c)])throw new Error('Workspace ID is required to configure custom database');const response=await this[_0x424b45(0x93,-0x8c)][_0x424b45(-0x102,-0xf8)]('/admin/v1/workspace/custom-database',{'workspaceId':this['workspaceId'],..._0x39052c},{'headers':{'X-Workspace-ID':this[_0x424b45(-0xe8,-0x139)]}});function _0x424b45(_0x114d7b,_0x1f3091){return _0x6f43(_0x114d7b- -0x2c3,_0x1f3091);}const config=response['data']['config'];return this[_0x424b45(-0x15,0x19)]={'hasCustomDatabase':!![],'config':config,'credentials':_0x39052c},config;}async['removeCustomDatabase'](){if(!this[_0x46a31a(0xa4,0xf9)])throw new Error('Workspace ID is required to remove custom database');await this[_0x46a31a(0x30d,0x274)]['delete']('/admin/v1/workspace/custom-database',{'headers':{'X-Workspace-ID':this[_0x46a31a(0x157,0xf9)]}});function _0x46a31a(_0x1521ae,_0x5780c4){return _0x6f43(_0x5780c4- -0xe2,_0x1521ae);}this[_0x46a31a(0x227,0x1cc)]={'hasCustomDatabase':![]};}['getDetectedConfig'](){function _0x292457(_0x28afdf,_0x4c5065){return _0x6f43(_0x28afdf-0x117,_0x4c5065);}return this[_0x292457(0x3c5,0x4dc)];}['hasCustomDatabase'](){function _0x3b4aeb(_0x5f4f2b,_0x2ea204){return _0x6f43(_0x2ea204- -0x33,_0x5f4f2b);}return this['detectedConfig']?.[_0x3b4aeb(0x13f,0x23f)]??![];}[_0x2d7030(0x432,0x43b)](){function _0x30b2fd(_0x24b005,_0x3603ef){return _0x6f43(_0x3603ef-0x1f5,_0x24b005);}return this[_0x30b2fd(0x55d,0x4a3)]?.['credentials'];}[_0x2d7030(0x613,0x61e)](_0x730be3){this[_0x403fa7(0x2c0,0x38f)]=_0x730be3;function _0x403fa7(_0x2b4769,_0x27bd34){return _0x6f43(_0x27bd34-0x1b4,_0x2b4769);}this['detectedConfig']=undefined;}['getWorkspaceId'](){return this['workspaceId'];}['getStatus'](){function _0x1fc8c4(_0x19f7d8,_0x59e7b0){return _0x6f43(_0x59e7b0- -0x360,_0x19f7d8);}return{'workspaceId':this[_0x1fc8c4(-0x18f,-0x185)],'hasConfig':this[_0x1fc8c4(-0x21,-0xee)](),'configDetails':this['detectedConfig']?.[_0x1fc8c4(-0x5f,-0xd9)]?{'host':this[_0x1fc8c4(0x42,-0xb2)]['credentials'][_0x1fc8c4(0x14,0xe)],'port':this[_0x1fc8c4(0x5f,-0xb2)][_0x1fc8c4(-0xf8,-0xd9)][_0x1fc8c4(-0x6e,0x54)],'database':this[_0x1fc8c4(-0x7b,-0xb2)][_0x1fc8c4(-0x103,-0xd9)][_0x1fc8c4(-0x107,-0x26)],'schema':this[_0x1fc8c4(-0x93,-0xb2)][_0x1fc8c4(-0x8b,-0xd9)]['schema']||_0x1fc8c4(-0x156,-0x82),'sslEnabled':this['detectedConfig']['credentials'][_0x1fc8c4(-0x9,-0x104)]||![]}:undefined};}}class DatabaseClient{constructor(_0x5e7445,_0x38ad4b){function _0x3b3019(_0x28931e,_0x2060fe){return _0x6f43(_0x2060fe- -0xd7,_0x28931e);}this['httpClient']=_0x5e7445,this[_0x3b3019(0x1dd,0x2fe)]=new CustomDatabaseManager(_0x5e7445,_0x38ad4b);}['from'](_0x1a8432){function _0x580258(_0x563196,_0x3fce22){return _0x6f43(_0x563196-0x25c,_0x3fce22);}return new QueryBuilder(this[_0x580258(0x5b2,0x5d6)],_0x1a8432,this[_0x580258(0x568,0x506)],this[_0x580258(0x631,0x5e5)][_0x580258(0x499,0x4b5)]());}['rpc'](_0x45ae89,_0x1f859b){function _0x21e149(_0x57a753,_0x499aed){return _0x6f43(_0x57a753-0x20f,_0x499aed);}return this['httpClient'][_0x21e149(0x3d0,0x37c)](_0x21e149(0x528,0x4b5)+_0x45ae89,_0x1f859b);}[_0x2d7030(0x61e,0x546)](_0x13d8d4){function _0x10758c(_0x4bdf02,_0x52d5f5){return _0x6f43(_0x52d5f5-0x112,_0x4bdf02);}const _0x403e27=new DatabaseClient(this['httpClient'],this['customDatabaseManager']['getWorkspaceId']());return _0x403e27['currentSchema']=_0x13d8d4,_0x403e27['customDatabaseManager']=this[_0x10758c(0x45c,0x4e7)],_0x403e27;}async[_0x2d7030(0x51d,0x5ea)](){function _0x1901f1(_0x2765de,_0x42a645){return _0x6f43(_0x42a645- -0x73,_0x2765de);}return this['customDatabaseManager'][_0x1901f1(0x2a7,0x315)]();}async['testCustomConnection'](_0x5349d5){function _0x51d8ef(_0x267006,_0x482fd5){return _0x6f43(_0x482fd5- -0x223,_0x267006);}return this[_0x51d8ef(0x2ce,0x1b2)]['testConnection'](_0x5349d5);}async['configureCustomDatabase'](_0x3c1abf){return this['customDatabaseManager']['configureCustomDatabase'](_0x3c1abf);}async[_0x2d7030(0x59c,0x593)](){return this['customDatabaseManager']['removeCustomDatabase']();}[_0x2d7030(0x638,0x5ed)](){function _0x2f2757(_0x2f3cf9,_0x5c282e){return _0x6f43(_0x2f3cf9- -0x307,_0x5c282e);}return this[_0x2f2757(0xce,0x1c1)]['hasCustomDatabase']();}[_0x2d7030(0x593,0x656)](){return this['customDatabaseManager']['getStatus']();}['setWorkspaceId'](_0x4ef0f3){function _0x1fb435(_0xc727d,_0x24dc5f){return _0x6f43(_0x24dc5f-0xbe,_0xc727d);}this[_0x1fb435(0x571,0x493)]['setWorkspaceId'](_0x4ef0f3);}async['initialize'](){function _0x2c828a(_0x5fd102,_0x104dee){return _0x6f43(_0x5fd102- -0x1fd,_0x104dee);}try{await this[_0x2c828a(0x1d8,0x146)]['detectCustomDatabase']();}catch(_0x510578){console[_0x2c828a(0x1cc,0x149)]('Failed to initialize custom database detection:',_0x510578);}}}class StorageBucket{constructor(_0x587226,bucketId){this['httpClient']=_0x587226,this['bucketId']=bucketId;}async['upload'](_0x189c1c,_0x5239e1,_0x463fd6){function _0x425e7f(_0x273862,_0x5ba4d4){return _0x6f43(_0x5ba4d4-0xdd,_0x273862);}try{const _0x2ead00=new FormData();if(_0x5239e1 instanceof File)_0x2ead00[_0x425e7f(0x5ec,0x4d2)]('file',_0x5239e1);else{if(_0x5239e1 instanceof Blob)_0x2ead00['append'](_0x425e7f(0x535,0x47d),_0x5239e1,_0x189c1c);else{if(_0x5239e1 instanceof ArrayBuffer)_0x2ead00[_0x425e7f(0x497,0x4d2)](_0x425e7f(0x4b4,0x47d),new Blob([_0x5239e1]),_0x189c1c);else typeof _0x5239e1==='string'&&_0x2ead00[_0x425e7f(0x42c,0x4d2)](_0x425e7f(0x366,0x47d),new Blob([_0x5239e1],{'type':'text/plain'}),_0x189c1c);}}_0x2ead00['append'](_0x425e7f(0x2c4,0x395),_0x189c1c);_0x463fd6?.['cacheControl']&&_0x2ead00[_0x425e7f(0x5d4,0x4d2)]('cacheControl',_0x463fd6['cacheControl']);_0x463fd6?.[_0x425e7f(0x226,0x297)]&&_0x2ead00['append']('contentType',_0x463fd6['contentType']);_0x463fd6?.[_0x425e7f(0x364,0x2d7)]&&_0x2ead00[_0x425e7f(0x431,0x4d2)](_0x425e7f(0x396,0x2d7),JSON[_0x425e7f(0x3a1,0x487)](_0x463fd6['metadata']));const _0x29651f='/storage/buckets/'+this[_0x425e7f(0x486,0x4bf)]+_0x425e7f(0x3ce,0x44d)+(_0x463fd6?.[_0x425e7f(0x586,0x4a5)]?_0x425e7f(0x3ec,0x48d):''),response=await this[_0x425e7f(0x400,0x433)]['post'](_0x29651f,_0x2ead00,{'headers':{'Content-Type':_0x425e7f(0x553,0x444)}});return{'data':response['data'],'error':null};}catch(_0x54ab6a){return{'data':null,'error':_0x54ab6a instanceof EBaaSError?_0x54ab6a:new EBaaSError(_0x54ab6a instanceof Error?_0x54ab6a[_0x425e7f(0x32d,0x3f8)]:'Failed\x20to\x20upload\x20file',0x0,_0x54ab6a)};}}async[_0x2d7030(0x581,0x5e0)](_0x3d62d2,_0x26d27d){function _0x5449d6(_0x4df119,_0x5ac571){return _0x6f43(_0x5ac571- -0x329,_0x4df119);}try{const _0x4eb679=new URLSearchParams();_0x26d27d?.[_0x5449d6(-0x144,-0x15c)]&&Object[_0x5449d6(0xe6,-0x31)](_0x26d27d['transform'])['forEach'](([_0x29d67f,_0x3edacb])=>{_0x3edacb!==undefined&&_0x4eb679['append'](_0x29d67f,String(_0x3edacb));});const _0x4fbf9a='/storage/buckets/'+this['bucketId']+_0x5449d6(0xb3,0xbb)+_0x3d62d2+(_0x4eb679[_0x5449d6(0x12c,0x2c)]()?'?'+_0x4eb679['toString']():''),response=await this[_0x5449d6(0xbb,0x2d)][_0x5449d6(-0x7e,-0x12)](_0x4fbf9a,{'responseType':_0x5449d6(-0x4e,-0x158)});return{'data':response[_0x5449d6(0x2c,0xba)],'error':null};}catch(_0x1bc7f0){return{'data':null,'error':_0x1bc7f0 instanceof EBaaSError?_0x1bc7f0:new EBaaSError(_0x1bc7f0 instanceof Error?_0x1bc7f0[_0x5449d6(-0x9a,-0xe)]:'Failed\x20to\x20download\x20file',0x0,_0x1bc7f0)};}}async[_0x2d7030(0x5b3,0x589)](_0x4d4f18,_0x155614){function _0x4a7ba5(_0x398269,_0x331549){return _0x6f43(_0x398269-0x1a3,_0x331549);}try{const _0x409b1f=new URLSearchParams();_0x4d4f18&&_0x409b1f[_0x4a7ba5(0x598,0x48c)]('prefix',_0x4d4f18);_0x155614?.['limit']&&_0x409b1f['append']('limit',String(_0x155614[_0x4a7ba5(0x427,0x36a)]));_0x155614?.['offset']&&_0x409b1f[_0x4a7ba5(0x598,0x58e)]('offset',String(_0x155614[_0x4a7ba5(0x55e,0x633)]));_0x155614?.[_0x4a7ba5(0x3f4,0x4fa)]&&_0x409b1f[_0x4a7ba5(0x598,0x482)](_0x4a7ba5(0x3f4,0x312),JSON['stringify'](_0x155614['sortBy']));_0x155614?.['search']&&_0x409b1f['append'](_0x4a7ba5(0x442,0x3bc),_0x155614[_0x4a7ba5(0x442,0x349)]);const _0x35e180=_0x4a7ba5(0x522,0x586)+this[_0x4a7ba5(0x585,0x4e4)]+_0x4a7ba5(0x513,0x547)+(_0x409b1f[_0x4a7ba5(0x4f8,0x438)]()?'?'+_0x409b1f[_0x4a7ba5(0x4f8,0x577)]():''),response=await this['httpClient'][_0x4a7ba5(0x4ba,0x4c1)](_0x35e180);return{'data':response[_0x4a7ba5(0x586,0x5cb)],'error':null};}catch(_0x2d899b){return{'data':null,'error':_0x2d899b instanceof EBaaSError?_0x2d899b:new EBaaSError(_0x2d899b instanceof Error?_0x2d899b['message']:'Failed\x20to\x20list\x20files',0x0,_0x2d899b)};}}async[_0x2d7030(0x533,0x55e)](_0xc9aae1){function _0x3e9a48(_0x4ce57a,_0x3b9780){return _0x6f43(_0x3b9780-0x65,_0x4ce57a);}try{const response=await this['httpClient'][_0x3e9a48(0x2d8,0x35f)]('/storage/buckets/'+this[_0x3e9a48(0x4f8,0x447)]+_0x3e9a48(0x303,0x3d5),{'data':{'paths':_0xc9aae1}});return{'data':response[_0x3e9a48(0x47a,0x448)],'error':null};}catch(_0x38f226){return{'data':null,'error':_0x38f226 instanceof EBaaSError?_0x38f226:new EBaaSError(_0x38f226 instanceof Error?_0x38f226['message']:'Failed\x20to\x20remove\x20files',0x0,_0x38f226)};}}async[_0x2d7030(0x528,0x517)](fromPath,_0x207e98){function _0x4d45f1(_0x13ea66,_0x3bcc1d){return _0x6f43(_0x13ea66-0x134,_0x3bcc1d);}try{const response=await this['httpClient']['post'](_0x4d45f1(0x4b3,0x52f)+this[_0x4d45f1(0x516,0x3f3)]+_0x4d45f1(0x340,0x298),{'sourceKey':fromPath,'destinationKey':_0x207e98});return{'data':response['data'],'error':null};}catch(_0x1fe72e){return{'data':null,'error':_0x1fe72e instanceof EBaaSError?_0x1fe72e:new EBaaSError(_0x1fe72e instanceof Error?_0x1fe72e[_0x4d45f1(0x44f,0x41d)]:_0x4d45f1(0x41e,0x48b),0x0,_0x1fe72e)};}}async[_0x2d7030(0x3d7,0x47a)](fromPath,_0xa1c735){function _0x2db3a5(_0x542a73,_0xb951a0){return _0x6f43(_0xb951a0- -0x28e,_0x542a73);}try{const response=await this['httpClient'][_0x2db3a5(-0x49,-0xcd)]('/storage/buckets/'+this['bucketId']+'/files/copy',{'sourceKey':fromPath,'destinationKey':_0xa1c735});return{'data':response['data'],'error':null};}catch(_0x2e813c){return{'data':null,'error':_0x2e813c instanceof EBaaSError?_0x2e813c:new EBaaSError(_0x2e813c instanceof Error?_0x2e813c[_0x2db3a5(0x16f,0x8d)]:_0x2db3a5(0x1ae,0x15b),0x0,_0x2e813c)};}}async[_0x2d7030(0x3d6,0x4d9)](_0x41eae4,_0x350f5d,_0x516a2b){function _0x453cc4(_0x269629,_0x494609){return _0x6f43(_0x494609- -0x1f9,_0x269629);}try{const response=await this['httpClient'][_0x453cc4(0xed,-0x38)](_0x453cc4(0x251,0x186)+this['bucketId']+'/files/'+_0x41eae4+_0x453cc4(0xa1,0x18d),{'expiresIn':_0x350f5d,..._0x516a2b});return{'data':response['data'],'error':null};}catch(_0x17e8ea){return{'data':null,'error':_0x17e8ea instanceof EBaaSError?_0x17e8ea:new EBaaSError(_0x17e8ea instanceof Error?_0x17e8ea['message']:_0x453cc4(0x3c,-0x21),0x0,_0x17e8ea)};}}['getPublicUrl'](_0x4fcac9,_0x5c8a57){const _0x1ca52c=new URLSearchParams();_0x5c8a57?.['transform']&&Object[_0x42c2b0(0x464,0x50c)](_0x5c8a57['transform'])['forEach'](([_0x456417,_0x57687b])=>{function _0x10236c(_0x20eb3c,_0x422315){return _0x6f43(_0x422315-0x137,_0x20eb3c);}_0x57687b!==undefined&&_0x1ca52c[_0x10236c(0x423,0x52c)](_0x456417,String(_0x57687b));});function _0x42c2b0(_0x30bcc9,_0x525335){return _0x6f43(_0x525335-0x214,_0x30bcc9);}const _0x535742=this['httpClient'][_0x42c2b0(0x661,0x5a7)]||'',_0x2a75b5=_0x535742+'/storage/buckets/'+this[_0x42c2b0(0x5ee,0x5f6)]+_0x42c2b0(0x4f7,0x5f8)+_0x4fcac9+(_0x1ca52c['toString']()?'?'+_0x1ca52c[_0x42c2b0(0x68e,0x569)]():'');return{'data':{'publicUrl':_0x2a75b5}};}async['getFileInfo'](_0x12b07b){function _0x23087f(_0xbff7e1,_0x24cfda){return _0x6f43(_0x24cfda- -0x35e,_0xbff7e1);}try{const response=await this[_0x23087f(-0xc5,-0x8)]['get'](_0x23087f(-0x9f,0x21)+this['bucketId']+'/files/'+_0x12b07b+_0x23087f(-0x297,-0x172));return{'data':response[_0x23087f(0x15e,0x85)],'error':null};}catch(_0x3946ea){return{'data':null,'error':_0x3946ea instanceof EBaaSError?_0x3946ea:new EBaaSError(_0x3946ea instanceof Error?_0x3946ea[_0x23087f(-0x4b,-0x43)]:'Failed\x20to\x20get\x20file\x20info',0x0,_0x3946ea)};}}async[_0x2d7030(0x544,0x5f9)](_0x21ea7f,metadata){function _0x3109e9(_0x27a595,_0x357a7d){return _0x6f43(_0x357a7d-0x1eb,_0x27a595);}try{const response=await this['httpClient'][_0x3109e9(0x3fc,0x3f9)](_0x3109e9(0x4ad,0x56a)+this['bucketId']+_0x3109e9(0x626,0x5cf)+_0x21ea7f+_0x3109e9(0x39c,0x49a),{'metadata':metadata});return{'data':response[_0x3109e9(0x61b,0x5ce)],'error':null};}catch(_0x4b6453){return{'data':null,'error':_0x4b6453 instanceof EBaaSError?_0x4b6453:new EBaaSError(_0x4b6453 instanceof Error?_0x4b6453[_0x3109e9(0x4d0,0x506)]:'Failed\x20to\x20update\x20file\x20metadata',0x0,_0x4b6453)};}}}class StorageClient{constructor(_0x48926f){function _0x24880a(_0x4fe44b,_0x40c975){return _0x6f43(_0x40c975-0x328,_0x4fe44b);}this[_0x24880a(0x6f9,0x67e)]=_0x48926f;}[_0x2d7030(0x53d,0x4c9)](bucketId){function _0x59bf25(_0x1ce741,_0x4b5563){return _0x6f43(_0x4b5563- -0x30,_0x1ce741);}return new StorageBucket(this[_0x59bf25(0x352,0x326)],bucketId);}async[_0x2d7030(0x531,0x578)](_0x1bb76f,_0x1bc9f7){function _0x3ca55d(_0x8745dc,_0x359574){return _0x6f43(_0x8745dc-0x203,_0x359574);}try{const response=await this[_0x3ca55d(0x559,0x5c1)][_0x3ca55d(0x3c4,0x36e)](_0x3ca55d(0x3f3,0x306),{'id':_0x1bb76f,..._0x1bc9f7});return{'data':response['data'],'error':null};}catch(_0x391681){return{'data':null,'error':_0x391681 instanceof EBaaSError?_0x391681:new EBaaSError(_0x391681 instanceof Error?_0x391681['message']:'Failed\x20to\x20create\x20bucket',0x0,_0x391681)};}}async[_0x2d7030(0x54e,0x622)](_0x13816f){function _0x4f0916(_0x166a19,_0x1f0b4c){return _0x6f43(_0x166a19- -0x1c0,_0x1f0b4c);}try{const response=await this[_0x4f0916(0x196,0x253)]['get']('/storage/buckets/'+_0x13816f);return{'data':response[_0x4f0916(0x223,0x288)],'error':null};}catch(_0x43fefa){return{'data':null,'error':_0x43fefa instanceof EBaaSError?_0x43fefa:new EBaaSError(_0x43fefa instanceof Error?_0x43fefa[_0x4f0916(0x15b,0x24d)]:_0x4f0916(0xb4,0x7),0x0,_0x43fefa)};}}async[_0x2d7030(0x6d0,0x630)](){function _0x32ce21(_0xc7c6e1,_0x25f1e6){return _0x6f43(_0x25f1e6-0x27b,_0xc7c6e1);}try{const response=await this['httpClient'][_0x32ce21(0x591,0x592)](_0x32ce21(0x36b,0x46b));return{'data':response[_0x32ce21(0x694,0x65e)],'error':null};}catch(_0x580c4f){return{'data':null,'error':_0x580c4f instanceof EBaaSError?_0x580c4f:new EBaaSError(_0x580c4f instanceof Error?_0x580c4f[_0x32ce21(0x66f,0x596)]:_0x32ce21(0x6a9,0x5aa),0x0,_0x580c4f)};}}async['updateBucket'](_0x5ac233,_0x56a603){function _0x3cdea7(_0x32c94,_0x583c36){return _0x6f43(_0x583c36- -0x282,_0x32c94);}try{const response=await this[_0x3cdea7(0x1dd,0xd4)]['put']('/storage/buckets/'+_0x5ac233,_0x56a603);return{'data':response[_0x3cdea7(0x53,0x161)],'error':null};}catch(_0x5beff3){return{'data':null,'error':_0x5beff3 instanceof EBaaSError?_0x5beff3:new EBaaSError(_0x5beff3 instanceof Error?_0x5beff3['message']:'Failed\x20to\x20update\x20bucket',0x0,_0x5beff3)};}}async['deleteBucket'](_0x14e4e0){function _0x4b8885(_0x5f3b17,_0x2d502e){return _0x6f43(_0x5f3b17- -0x77,_0x2d502e);}try{const response=await this[_0x4b8885(0x2df,0x294)][_0x4b8885(0x283,0x27d)]('/storage/buckets/'+_0x14e4e0);return{'data':response['data'],'error':null};}catch(_0x4cd8a5){return{'data':null,'error':_0x4cd8a5 instanceof EBaaSError?_0x4cd8a5:new EBaaSError(_0x4cd8a5 instanceof Error?_0x4cd8a5['message']:'Failed\x20to\x20delete\x20bucket',0x0,_0x4cd8a5)};}}async['getUsage'](){function _0x1d40ce(_0x48f3b4,_0x307f29){return _0x6f43(_0x48f3b4-0x20f,_0x307f29);}try{const response=await this[_0x1d40ce(0x565,0x5c6)][_0x1d40ce(0x526,0x48c)](_0x1d40ce(0x3da,0x4cc));return{'data':response[_0x1d40ce(0x5f2,0x4ec)],'error':null};}catch(_0x337111){return{'data':null,'error':_0x337111 instanceof EBaaSError?_0x337111:new EBaaSError(_0x337111 instanceof Error?_0x337111['message']:_0x1d40ce(0x471,0x580),0x0,_0x337111)};}}}class RealtimeChannel extends EventEmitter{constructor(_0x8b8731,_0x5e6cd2){function _0xfd858d(_0x3bbefc,_0x112956){return _0x6f43(_0x3bbefc- -0x95,_0x112956);}super(),this['joinedOnce']=![],this['state']=_0xfd858d(0x335,0x30c),this[_0xfd858d(0x1d3,0x1d6)]=new Map(),this[_0xfd858d(0x1db,0x2ff)]=_0x8b8731,this['socket']=_0x5e6cd2;}['subscribe'](_0x5c1cb8){!this[_0x4ce795(0x330,0x302)]&&(this['joinedOnce']=!![],this[_0x4ce795(0x427,0x3bb)]());_0x5c1cb8&&this['on']('status',_0x5c1cb8);function _0x4ce795(_0x329001,_0xfadd64){return _0x6f43(_0x329001-0x74,_0xfadd64);}return this;}[_0x2d7030(0x61c,0x569)](filter,_0x17488f){const _0x1b3972='postgres_changes:'+JSON[_0x4bdde1(0x219,0x30e)](filter);function _0x4bdde1(_0x45bb2b,_0x3834d3){return _0x6f43(_0x3834d3- -0x9c,_0x45bb2b);}super['on'](_0x1b3972,_0x17488f);const _0x246322={'unsubscribe':()=>{super['off'](_0x1b3972,_0x17488f);function _0x116a9c(_0x3e2798,_0x3653b1){return _0x6f43(_0x3653b1- -0x29f,_0x3e2798);}this[_0x116a9c(0x83,-0x37)][_0x116a9c(0x3c,0x5b)](_0x1b3972);}};return this['subscriptions'][_0x4bdde1(0xcc,0x194)](_0x1b3972,_0x246322),this['socket']?.[_0x4bdde1(0x121,0x1ad)]&&this[_0x4bdde1(0x1ae,0x1b3)]==='joined'&&this['socket'][_0x4bdde1(0x214,0x1f6)](_0x4bdde1(0xe3,0x14b),{'topic':this['topic'],'filter':filter,'ref':this['makeRef']()}),_0x246322;}[_0x2d7030(0x6c2,0x601)](filter,_0x1d9ff6){const _0x742ef0=_0x2e555f(0x1ee,0x29a)+JSON['stringify'](filter);function _0x2e555f(_0x53a656,_0x79dc85){return _0x6f43(_0x53a656- -0x6,_0x79dc85);}super['on'](_0x742ef0,_0x1d9ff6);const _0x1ec94d={'unsubscribe':()=>{function _0x16300d(_0x13ac3d,_0x35a161){return _0x6f43(_0x13ac3d- -0x2bf,_0x35a161);}super[_0x16300d(-0x6d,-0x79)](_0x742ef0,_0x1d9ff6),this[_0x16300d(-0x57,-0x77)][_0x16300d(0x3b,0xc)](_0x742ef0);}};return this[_0x2e555f(0x262,0x198)]['set'](_0x742ef0,_0x1ec94d),_0x1ec94d;}['onPresence'](filter,_0x4d2af3){const _0x339c8a='presence:'+JSON[_0x2b7926(0x61e,0x577)](filter);super['on'](_0x339c8a,_0x4d2af3);function _0x2b7926(_0x15de31,_0x8b8729){return _0x6f43(_0x15de31-0x274,_0x8b8729);}const _0x366b67={'unsubscribe':()=>{function _0x3f611e(_0x38ef0e,_0x254085){return _0x6f43(_0x38ef0e-0x2d,_0x254085);}super[_0x3f611e(0x27f,0x32d)](_0x339c8a,_0x4d2af3),this[_0x3f611e(0x295,0x37f)]['delete'](_0x339c8a);}};return this['subscriptions'][_0x2b7926(0x4a4,0x574)](_0x339c8a,_0x366b67),_0x366b67;}['send'](_0x36090f){return new Promise(_0x406f49=>{function _0x430f16(_0x474ff7,_0x1ad0b4){return _0x6f43(_0x474ff7-0x84,_0x1ad0b4);}this['socket']?.['connected']&&this[_0x430f16(0x2d3,0x238)]===_0x430f16(0x30d,0x3f5)?(this['socket']['emit'](_0x430f16(0x2b0,0x3c2),{'topic':this[_0x430f16(0x2f4,0x3e9)],'event':_0x36090f[_0x430f16(0x3a3,0x386)],'payload':_0x36090f,'ref':this[_0x430f16(0x465,0x42d)]()}),_0x406f49('ok')):_0x406f49('error');});}[_0x2d7030(0x555,0x57e)](_0x29a492){return new Promise(_0x219377=>{function _0x3626b0(_0x116f08,_0x17f891){return _0x6f43(_0x116f08- -0x99,_0x17f891);}this[_0x3626b0(0x30b,0x227)]?.[_0x3626b0(0x1b0,0x2c8)]&&this['state']==='joined'?(this['socket']['emit'](_0x3626b0(0x356,0x371),{'topic':this['topic'],'event':_0x3626b0(0x283,0x2c9),'payload':_0x29a492,'ref':this['makeRef']()}),_0x219377('ok')):_0x219377('error');});}[_0x2d7030(0x4ef,0x539)](){return new Promise(_0x25a3f4=>{function _0x4b0c03(_0x2b0c8c,_0x2ce867){return _0x6f43(_0x2b0c8c-0xe7,_0x2ce867);}this[_0x4b0c03(0x48b,0x476)]?.['connected']&&this[_0x4b0c03(0x336,0x359)]==='joined'?(this[_0x4b0c03(0x48b,0x451)]['emit']('presence',{'topic':this[_0x4b0c03(0x357,0x376)],'event':_0x4b0c03(0x3be,0x373),'ref':this[_0x4b0c03(0x4c8,0x518)]()}),_0x25a3f4('ok')):_0x25a3f4('error');});}[_0x2d7030(0x657,0x5b6)](){return new Promise(_0x7b4ffa=>{this[_0x3009fc(0x62,-0x31)]=_0x3009fc(0x15,-0x5b),this[_0x3009fc(-0xf6,-0x18)]['forEach'](_0x25429a=>{function _0x1c298c(_0x61297d,_0x17a964){return _0x6f43(_0x17a964- -0x173,_0x61297d);}_0x25429a[_0x1c298c(0x27b,0x1e1)]();}),this[_0x3009fc(-0x126,-0x18)][_0x3009fc(0xe7,0x3a)]();this['socket']?.[_0x3009fc(-0xaa,-0x37)]&&this['socket'][_0x3009fc(0x83,0x12)]('leave',{'topic':this[_0x3009fc(0xce,-0x10)],'ref':this['makeRef']()});this['state']='closed',this[_0x3009fc(-0x13f,-0x77)]();function _0x3009fc(_0x4cbb58,_0x27ad22){return _0x6f43(_0x27ad22- -0x280,_0x4cbb58);}_0x7b4ffa('ok');});}[_0x2d7030(0x543,0x615)](){if(this['state']===_0xd3fab2(-0x149,-0x164))return;this['state']='joining';function _0xd3fab2(_0xeca068,_0x4189a1){return _0x6f43(_0xeca068- -0x36e,_0x4189a1);}this[_0xd3fab2(0x36,0x110)]?.['connected']&&(this[_0xd3fab2(0x36,0xf7)]['emit'](_0xd3fab2(-0x18c,-0x22a),{'topic':this[_0xd3fab2(-0xfe,-0x169)],'ref':this['makeRef']()}),setTimeout(()=>{function _0x361b2b(_0xb840c4,_0x952b67){return _0x6f43(_0x952b67- -0x17d,_0xb840c4);}this['state']===_0x361b2b(0x253,0x204)&&(this['state']='joined',this[_0x361b2b(0x96,0x115)](_0x361b2b(0x1d4,0xec),_0x361b2b(0x11a,0xc9)));},0x64));}[_0x2d7030(0x4a2,0x519)](){function _0x123960(_0x10ff42,_0x309078){return _0x6f43(_0x10ff42-0x18a,_0x309078);}this[_0x123960(0x446,0x4fc)]&&(this[_0x123960(0x53d,0x647)](),this['subscriptions']['forEach']((_0x13d82a,_0x26179e)=>{function _0x3fffac(_0x3c391f,_0x1d643){return _0x6f43(_0x1d643- -0x2cb,_0x3c391f);}if(_0x26179e['startsWith']('postgres_changes:')){const filter=JSON[_0x3fffac(0x7,-0x9e)](_0x26179e['replace'](_0x3fffac(-0x9f,-0x32),''));this[_0x3fffac(0x163,0xd9)]?.[_0x3fffac(0x3e,-0x39)]('subscribe_postgres_changes',{'topic':this['topic'],'filter':filter,'ref':this['makeRef']()});}}));}[_0x2d7030(0x6a8,0x633)](_0xcae79c,_0x1d7a8d){function _0xee7212(_0x310f7e,_0x5e8598){return _0x6f43(_0x310f7e-0x32,_0x5e8598);}if(_0xcae79c==='postgres_changes'){const _0x3bf59d='postgres_changes:'+JSON[_0xee7212(0x3dc,0x4cf)](_0x1d7a8d[_0xee7212(0x1f6,0x2b1)]||{});this['emit'](_0x3bf59d,_0x1d7a8d);}else{if(_0xcae79c===_0xee7212(0x25e,0x13c)){const _0x5d8912=_0xee7212(0x226,0x2e0)+JSON[_0xee7212(0x3dc,0x4cf)]({'event':_0x1d7a8d[_0xee7212(0x351,0x318)]});this[_0xee7212(0x2c4,0x3c1)](_0x5d8912,_0x1d7a8d);}else{if(_0xcae79c==='presence'){const _0x201517='presence:'+JSON['stringify']({'event':_0x1d7a8d[_0xee7212(0x351,0x3a1)]});this['emit'](_0x201517,_0x1d7a8d);}}}this[_0xee7212(0x2c4,0x3b4)](_0xcae79c,_0x1d7a8d);}[_0x2d7030(0x60b,0x5db)](_0xabda20){this['state']=_0xabda20;let status;switch(_0xabda20){case _0x5c22a5(-0xd1,-0x7c):status='SUBSCRIBED';break;case _0x5c22a5(-0xaa,-0x2c):status=_0x5c22a5(-0x192,-0x181);break;case'closed':status=_0x5c22a5(0x15,-0xfb);break;default:return;}function _0x5c22a5(_0x17a147,_0x11af72){return _0x6f43(_0x17a147- -0x35a,_0x11af72);}this['emit']('status',status);}[_0x2d7030(0x571,0x643)](){function _0x284852(_0x4e16a9,_0x185e19){return _0x6f43(_0x185e19- -0x1cd,_0x4e16a9);}return Math[_0x284852(0x2f,0xc7)]()['toString'](0x24)[_0x284852(0xce,-0x12)](0x2,0xf);}[_0x2d7030(0x39d,0x443)](){function _0xed82cc(_0xbcc2a7,_0x1e576c){return _0x6f43(_0x1e576c- -0x351,_0xbcc2a7);}return this[_0xed82cc(0x4,-0x102)];}}class WebSocketAdapter{constructor(){function _0x38dcf2(_0x52f5a1,_0x365b35){return _0x6f43(_0x365b35- -0x237,_0x52f5a1);}this[_0x38dcf2(0x197,0x16d)]=null;}async[_0x2d7030(0x4d5,0x42b)](_0x4dd9a1,_0x7fcbee){const {io:_0x3861d8}=await Promise['resolve']()[_0xb88244(0xd9,0x1d5)](function(){return index;});function _0xb88244(_0x4a0ddf,_0x3ccb09){return _0x6f43(_0x4a0ddf- -0x2d8,_0x3ccb09);}return new Promise((_0x287190,_0x1a128b)=>{function _0x51e79d(_0x3f2cd8,_0x2a58a4){return _0x6f43(_0x3f2cd8- -0x158,_0x2a58a4);}this[_0x51e79d(0x24c,0x243)]=_0x3861d8(_0x4dd9a1,_0x7fcbee),this[_0x51e79d(0x24c,0x30e)]['on']('connect',()=>_0x287190()),this['socket']['on']('connect_error',_0x5129a7=>_0x1a128b(_0x5129a7));});}[_0x2d7030(0x5a7,0x5d7)](){function _0x1089c4(_0x5ecccc,_0x151ae7){return _0x6f43(_0x151ae7-0x282,_0x5ecccc);}this['socket']&&(this['socket']['disconnect'](),this[_0x1089c4(0x636,0x626)]=null);}['emit'](_0x259365,data){function _0x195669(_0x2f1f42,_0x2216d9){return _0x6f43(_0x2216d9-0x192,_0x2f1f42);}this[_0x195669(0x439,0x536)]?.[_0x195669(0x382,0x424)](_0x259365,data);}['on'](_0x23c17d,_0x4fa9f2){this['socket']?.['on'](_0x23c17d,_0x4fa9f2);}['off'](_0xe727b6,_0x2e4e6f){function _0x5b29ff(_0x5c4edb,_0x52a26f){return _0x6f43(_0x5c4edb-0x29d,_0x52a26f);}_0x2e4e6f?this[_0x5b29ff(0x641,0x75d)]?.[_0x5b29ff(0x4ef,0x593)](_0xe727b6,_0x2e4e6f):this[_0x5b29ff(0x641,0x752)]?.[_0x5b29ff(0x4ef,0x55b)](_0xe727b6);}get['connected'](){return this['socket']?.['connected']??![];}}class ReactNativeSocketAdapter{constructor(){function _0x45ad8d(_0x4a7569,_0x2dc3df){return _0x6f43(_0x4a7569-0x149,_0x2dc3df);}this[_0x45ad8d(0x4ed,0x4a1)]=null;}async[_0x2d7030(0x369,0x42b)](_0x5f51aa,_0x38e0ab){function _0x3b6b9e(_0x487b6d,_0x4cd0c9){return _0x6f43(_0x487b6d- -0x133,_0x4cd0c9);}try{const {io:_0x3a890f}=await Promise['resolve']()[_0x3b6b9e(0x27e,0x2e4)](function(){return index;});return new Promise((_0x4955c8,_0x3dd629)=>{this[_0x226db3(0x6c2,0x5d6)]=_0x3a890f(_0x5f51aa,{..._0x38e0ab,'transports':['websocket'],'upgrade':![],'autoConnect':!![]}),this[_0x226db3(0x6c2,0x654)]['on'](_0x226db3(0x4e7,0x4a8),()=>_0x4955c8());function _0x226db3(_0x8da941,_0x192542){return _0x6f43(_0x8da941-0x31e,_0x192542);}this[_0x226db3(0x6c2,0x754)]['on'](_0x226db3(0x657,0x634),_0x176aa4=>_0x3dd629(_0x176aa4));});}catch(_0x17af24){throw new Error('Socket.io-client\x20não\x20está\x20disponível\x20neste\x20ambiente.\x20Para\x20React\x20Native,\x20instale\x20as\x20dependências\x20necessárias.');}}['disconnect'](){function _0x3a6c52(_0x12ec7a,_0x3bb5b9){return _0x6f43(_0x3bb5b9-0x2a8,_0x12ec7a);}this[_0x3a6c52(0x5cd,0x64c)]&&(this['socket']['disconnect'](),this['socket']=null);}[_0x2d7030(0x3e8,0x4f4)](_0x5540a1,data){this['socket']?.['emit'](_0x5540a1,data);}['on'](_0x53b466,_0x52488c){function _0x5322ad(_0x27ac71,_0x19a906){return _0x6f43(_0x27ac71-0x15,_0x19a906);}this[_0x5322ad(0x3b9,0x323)]?.['on'](_0x53b466,_0x52488c);}[_0x2d7030(0x494,0x4b4)](_0x5df10f,_0x38e598){function _0x25366b(_0xb4ed82,_0x26de83){return _0x6f43(_0x26de83- -0x318,_0xb4ed82);}_0x38e598?this['socket']?.[_0x25366b(-0x155,-0xc6)](_0x5df10f,_0x38e598):this[_0x25366b(-0x3f,0x8c)]?.[_0x25366b(-0x9e,-0xc6)](_0x5df10f);}get[_0x2d7030(0x3a8,0x4ab)](){return this['socket']?.['connected']??![];}}function createSocketAdapter(){function _0x19dccd(_0x579fe6,_0x8e4ad7){return _0x6f43(_0x8e4ad7-0x252,_0x579fe6);}if(typeof window!==_0x19dccd(0x372,0x488)&&typeof document!=='undefined')return new WebSocketAdapter();else return typeof global!==_0x19dccd(0x5a4,0x488)&&global[_0x19dccd(0x5ed,0x5a0)]?.[_0x19dccd(0x504,0x435)]==='ReactNative'?new ReactNativeSocketAdapter():new WebSocketAdapter();}class RealtimeClient{constructor(_0x5b38a7,_0x4e5e36,_0x24edf2={}){this[_0xacdca7(0x22c,0x1fd)]=null,this['channels']=new Map(),this['connectionState']=_0xacdca7(0x274,0x19d),this['reconnectAttempts']=0x0,this[_0xacdca7(0xa5,0x6e)]=0x5,this[_0xacdca7(0x8d,0x8e)]=_0x5b38a7,this['apiKey']=_0x4e5e36;function _0xacdca7(_0x2fc7d5,_0x27e961){return _0x6f43(_0x2fc7d5- -0x178,_0x27e961);}this[_0xacdca7(0xdd,0x1ba)]={'heartbeatInterval':0x7530,'reconnectInterval':0x1388,'maxReconnectAttempts':0x5,..._0x24edf2},this['socketAdapter']=createSocketAdapter();}[_0x2d7030(0x3fe,0x42b)](){return new Promise(async(_0x51bfce,_0x17c619)=>{function _0x2c38e3(_0x404e38,_0x8b3f08){return _0x6f43(_0x404e38- -0x268,_0x8b3f08);}if(this['socketAdapter']['connected']){_0x51bfce();return;}this[_0x2c38e3(-0x83,-0xcc)]='connecting';try{await this['socketAdapter']['connect'](this['url'],{'auth':{'apikey':this['apiKey']},'transports':[_0x2c38e3(0x7e,-0x14)],'reconnection':!![],'reconnectionDelay':this['options']['reconnectInterval'],'reconnectionAttempts':this['options'][_0x2c38e3(-0x4b,0x34)],...this[_0x2c38e3(-0x13,-0x113)][_0x2c38e3(0xbd,0x93)]}),this[_0x2c38e3(0x13c,0x61)]=this['socketAdapter'][_0x2c38e3(0x13c,0x15e)],this['socketAdapter']['on'](_0x2c38e3(-0x9f,0x49),()=>{this['connectionState']='connected',this['reconnectAttempts']=0x0;function _0x2b71bc(_0xd40a84,_0x892a0){return _0x6f43(_0xd40a84- -0x1f4,_0x892a0);}this[_0x2b71bc(0xe9,-0x8)](),_0x51bfce();}),this[_0x2c38e3(0x15,0xe2)]['on']('disconnect',()=>{function _0x4f3e9e(_0x3738c7,_0x19d5ec){return _0x6f43(_0x3738c7- -0x119,_0x19d5ec);}this[_0x4f3e9e(0xcc,-0x2c)]='disconnected',this[_0x4f3e9e(0x2c6,0x2f9)]['forEach'](channel=>{function _0x39fd9f(_0xe21359,_0xb67b90){return _0x6f43(_0xb67b90-0x35a,_0xe21359);}channel[_0x39fd9f(0x689,0x6d3)](_0x39fd9f(0x643,0x724));});}),this[_0x2c38e3(0x15,-0x24)]['on']('connect_error',_0x319ee9=>{this[_0x5e5f1d(0x424,0x3eb)]='error',this[_0x5e5f1d(0x3db,0x4da)]++;function _0x5e5f1d(_0x53cd85,_0x38ac30){return _0x6f43(_0x38ac30-0x206,_0x53cd85);}this[_0x5e5f1d(0x47f,0x4da)]>=this['maxReconnectAttempts']&&_0x17c619(new Error(_0x5e5f1d(0x562,0x5d5)+this['maxReconnectAttempts']+'\x20attempts:\x20'+_0x319ee9[_0x5e5f1d(0x5c5,0x521)]));}),this[_0x2c38e3(0x15,-0xd7)]['on'](_0x2c38e3(0xef,0x5e),()=>{this[_0x448ee7(0x29b,0x2f3)]='connected',this['reconnectAttempts']=0x0;function _0x448ee7(_0x194439,_0x1d6569){return _0x6f43(_0x194439-0xb6,_0x1d6569);}this['channels'][_0x448ee7(0x446,0x54b)](channel=>{channel['_rejoin']();});}),this[_0x2c38e3(0x15,0xa9)]['on'](_0x2c38e3(0x14f,0x1b2),_0xf2985b=>{const channel=this['channels']['get'](_0xf2985b[_0x3f7250(0x1b3,0xbc)]);function _0x3f7250(_0x20eb74,_0x567b2a){return _0x6f43(_0x567b2a- -0x1b4,_0x20eb74);}channel&&channel['_trigger']('postgres_changes',_0xf2985b);}),this['socketAdapter']['on']('broadcast',_0xcb6892=>{const channel=this['channels'][_0x14b551(0x66c,0x5b2)](_0xcb6892['topic']);function _0x14b551(_0x4e0908,_0x546d8b){return _0x6f43(_0x4e0908-0x355,_0x546d8b);}channel&&channel['_trigger'](_0x14b551(0x581,0x646),_0xcb6892);}),this[_0x2c38e3(0x15,-0xe8)]['on']('presence',_0x3ab5a5=>{const channel=this['channels'][_0x3dd406(0x39a,0x481)](_0x3ab5a5['topic']);function _0x3dd406(_0x4ee8f3,_0x43d9e5){return _0x6f43(_0x43d9e5-0x16a,_0x4ee8f3);}channel&&channel[_0x3dd406(0x5ad,0x53b)](_0x3dd406(0x5eb,0x559),_0x3ab5a5);});}catch(_0x37244f){this['connectionState']='error',_0x17c619(_0x37244f);}});}['disconnect'](){function _0x113f8b(_0x1d4c11,_0x565215){return _0x6f43(_0x1d4c11- -0x11,_0x565215);}this[_0x113f8b(0x26c,0x37f)]&&(this['socketAdapter'][_0x113f8b(0x364,0x43b)](),this[_0x113f8b(0x393,0x371)]=null),this['connectionState']=_0x113f8b(0x3db,0x4b2),this[_0x113f8b(0x3ce,0x3cc)][_0x113f8b(0x2a9,0x38f)]();}['channel'](_0x53c7d2){if(this['channels']['has'](_0x53c7d2))return this[_0x479ba5(0x6a6,0x7a3)][_0x479ba5(0x5de,0x519)](_0x53c7d2);const channel=new RealtimeChannel(_0x53c7d2,this[_0x479ba5(0x66b,0x562)]);this['channels']['set'](_0x53c7d2,channel);this[_0x479ba5(0x4ac,0x425)]===_0x479ba5(0x510,0x50b)&&channel['_join']();function _0x479ba5(_0x5c407b,_0x57d181){return _0x6f43(_0x5c407b-0x2c7,_0x57d181);}return channel;}[_0x2d7030(0x5b4,0x607)](channel){const _0x418cc5=channel[_0x310bd3(0x35,-0x87)];function _0x310bd3(_0x4a66b6,_0x4c4821){return _0x6f43(_0x4a66b6- -0x23b,_0x4c4821);}this[_0x310bd3(0x1a4,0x8d)]['has'](_0x418cc5)&&(this[_0x310bd3(0x1a4,0x115)][_0x310bd3(0xbf,0xa7)](_0x418cc5),channel[_0x310bd3(0x119,0x1b0)]());}['removeAllChannels'](){function _0x358883(_0x2bb44d,_0x456fdf){return _0x6f43(_0x2bb44d- -0x15f,_0x456fdf);}this[_0x358883(0x280,0x36a)]['forEach'](channel=>{channel['unsubscribe']();}),this['channels'][_0x358883(0x15b,0x3d)]();}['getChannels'](){function _0x4dc566(_0x11780d,_0x580250){return _0x6f43(_0x580250-0x3ab,_0x11780d);}return Array[_0x4dc566(0x64b,0x612)](this[_0x4dc566(0x782,0x78a)][_0x4dc566(0x6ad,0x675)]());}['isConnected'](){function _0x4217ca(_0x456735,_0x19cee2){return _0x6f43(_0x456735- -0x2d5,_0x19cee2);}return this['connectionState']===_0x4217ca(-0x8c,0x8e)&&this['socketAdapter'][_0x4217ca(-0x8c,0x34)];}[_0x2d7030(0x68c,0x5a4)](){return this['connectionState'];}[_0x2d7030(0x3f6,0x4fe)](_0x1ce2ba){const _0x4e839b=()=>_0x1ce2ba(this['connectionState']);this['socketAdapter']&&(this['socketAdapter']['on']('connect',()=>{function _0x2f3ac5(_0x4e5a0c,_0x3e4e73){return _0x6f43(_0x4e5a0c- -0x93,_0x3e4e73);}this[_0x2f3ac5(0x152,0x3c)]=_0x2f3ac5(0x1b6,0x27c),_0x4e839b();}),this[_0x56c493(0x25d,0x1f1)]['on']('disconnect',()=>{this[_0x48ddd6(0x47a,0x51f)]=_0x48ddd6(0x681,0x5c7);function _0x48ddd6(_0x448403,_0x4734af){return _0x6f43(_0x448403-0x295,_0x4734af);}_0x4e839b();}),this['socketAdapter']['on'](_0x56c493(0x2c6,0x2ad),()=>{this[_0x17140d(0x2cf,0x32c)]='error';function _0x17140d(_0xb7fc73,_0x2f5e61){return _0x6f43(_0x2f5e61-0x147,_0xb7fc73);}_0x4e839b();}));function _0x56c493(_0x37d6ff,_0x4c8795){return _0x6f43(_0x4c8795- -0x8c,_0x37d6ff);}return()=>{function _0x4fe04b(_0x5e3990,_0x58537e){return _0x6f43(_0x58537e- -0x3df,_0x5e3990);}this['socketAdapter']&&(this[_0x4fe04b(-0x6a,-0x162)][_0x4fe04b(-0x26b,-0x18d)](_0x4fe04b(-0x1d0,-0x216),_0x4e839b),this[_0x4fe04b(-0x15e,-0x162)][_0x4fe04b(-0x18f,-0x18d)](_0x4fe04b(-0xea,-0x6a),_0x4e839b),this[_0x4fe04b(-0x173,-0x162)][_0x4fe04b(-0x14b,-0x18d)](_0x4fe04b(-0x44,-0xa6),_0x4e839b));};}[_0x2d7030(0x610,0x53f)](){if(!this['options'][_0x29714(0x24e,0x26f)]||!this['socketAdapter'])return;function _0x29714(_0x1d9d17,_0x4f565f){return _0x6f43(_0x1d9d17-0x3a,_0x4f565f);}const interval=setInterval(()=>{function _0x31973f(_0x4c4cea,_0x4cfe38){return _0x6f43(_0x4c4cea- -0x11a,_0x4cfe38);}this['socketAdapter']?.[_0x31973f(0x12f,0x13e)]?this['socketAdapter'][_0x31973f(0x178,0x68)]('heartbeat',{'timestamp':Date['now']()}):clearInterval(interval);},this[_0x29714(0x28f,0x21a)]['heartbeatInterval']);}[_0x2d7030(0x484,0x595)](){function _0x27a3ef(_0xa662c,_0xd4cc7b){return _0x6f43(_0xd4cc7b- -0x235,_0xa662c);}return this[_0x27a3ef(0xd3,0x16f)];}}function _0x6f43(_0x36a43a,_0x3c0af0){const _0x10f846=_0x10f8();return _0x6f43=function(_0x6f43b5,_0x59f26c){_0x6f43b5=_0x6f43b5-0x1ac;let _0x5f4192=_0x10f846[_0x6f43b5];if(_0x6f43['pasYfE']===undefined){var _0x33a531=function(_0x30ff62){const _0x18ba07='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1f0615='',_0x5a37a9='';for(let _0xb2809c=0x0,_0x5b4f6a,_0x14fd71,_0x1f1973=0x0;_0x14fd71=_0x30ff62['charAt'](_0x1f1973++);~_0x14fd71&&(_0x5b4f6a=_0xb2809c%0x4?_0x5b4f6a*0x40+_0x14fd71:_0x14fd71,_0xb2809c++%0x4)?_0x1f0615+=String['fromCharCode'](0xff&_0x5b4f6a>>(-0x2*_0xb2809c&0x6)):0x0){_0x14fd71=_0x18ba07['indexOf'](_0x14fd71);}for(let _0x3028f3=0x0,_0x3ad9c6=_0x1f0615['length'];_0x3028f3<_0x3ad9c6;_0x3028f3++){_0x5a37a9+='%'+('00'+_0x1f0615['charCodeAt'](_0x3028f3)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5a37a9);};_0x6f43['ZkAGmM']=_0x33a531,_0x36a43a=arguments,_0x6f43['pasYfE']=!![];}const _0x5c6bdd=_0x10f846[0x0],_0x4cc7de=_0x6f43b5+_0x5c6bdd,_0xc066de=_0x36a43a[_0x4cc7de];return!_0xc066de?(_0x5f4192=_0x6f43['ZkAGmM'](_0x5f4192),_0x36a43a[_0x4cc7de]=_0x5f4192):_0x5f4192=_0xc066de,_0x5f4192;},_0x6f43(_0x36a43a,_0x3c0af0);}class FunctionsClient{constructor(_0x118b31){function _0x4fe920(_0x211ab0,_0x552f2b){return _0x6f43(_0x211ab0- -0x26b,_0x552f2b);}this[_0x4fe920(0xeb,0xa4)]=_0x118b31;}async['invoke'](_0x3b807b,_0x266a14){function _0x2cf4b2(_0xb37bb,_0x47df32){return _0x6f43(_0xb37bb-0x2da,_0x47df32);}try{const _0x41695a=_0x266a14?.['method']||'POST',headers={'Content-Type':'application/json',..._0x266a14?.[_0x2cf4b2(0x544,0x4e1)]};let response;const _0x164835='/functions/v1/'+_0x3b807b;switch(_0x41695a[_0x2cf4b2(0x606,0x539)]()){case'GET':response=await this['httpClient'][_0x2cf4b2(0x5f1,0x4d2)](_0x164835,{'headers':headers,'params':_0x266a14?.[_0x2cf4b2(0x690,0x605)]});break;case'POST':response=await this[_0x2cf4b2(0x630,0x59f)][_0x2cf4b2(0x49b,0x599)](_0x164835,_0x266a14?.['body'],{'headers':headers});break;case'PUT':response=await this[_0x2cf4b2(0x630,0x680)]['put'](_0x164835,_0x266a14?.['body'],{'headers':headers});break;case'PATCH':response=await this[_0x2cf4b2(0x630,0x607)][_0x2cf4b2(0x528,0x5d8)](_0x164835,_0x266a14?.[_0x2cf4b2(0x690,0x712)],{'headers':headers});break;case'DELETE':response=await this[_0x2cf4b2(0x630,0x615)][_0x2cf4b2(0x5d4,0x574)](_0x164835,{'headers':headers,'data':_0x266a14?.[_0x2cf4b2(0x690,0x6a3)]});break;default:throw new EBaaSError(_0x2cf4b2(0x65f,0x5eb)+_0x41695a,0x190);}return{'data':response['data'],'error':null};}catch(_0xe4648c){return{'data':null,'error':_0xe4648c instanceof EBaaSError?_0xe4648c:new EBaaSError(_0xe4648c instanceof Error?_0xe4648c[_0x2cf4b2(0x5f5,0x548)]:_0x2cf4b2(0x667,0x651),0x0,_0xe4648c)};}}async[_0x2d7030(0x4f3,0x589)](){function _0x362f45(_0x1bed30,_0x1cc1cd){return _0x6f43(_0x1bed30- -0x1a1,_0x1cc1cd);}try{const response=await this[_0x362f45(0x1b5,0xac)][_0x362f45(0x176,0x144)](_0x362f45(0x26,0xf6));return{'data':response[_0x362f45(0x242,0x123)],'error':null};}catch(_0x436c37){return{'data':null,'error':_0x436c37 instanceof EBaaSError?_0x436c37:new EBaaSError(_0x436c37 instanceof Error?_0x436c37['message']:'Failed\x20to\x20list\x20functions',0x0,_0x436c37)};}}async['get'](_0x5dab23){function _0x34094c(_0x34f1ff,_0x40ee85){return _0x6f43(_0x34f1ff-0x9d,_0x40ee85);}try{const response=await this['httpClient'][_0x34094c(0x3b4,0x315)](_0x34094c(0x366,0x3ee)+_0x5dab23+'/info');return{'data':response['data'],'error':null};}catch(_0x1b16bd){return{'data':null,'error':_0x1b16bd instanceof EBaaSError?_0x1b16bd:new EBaaSError(_0x1b16bd instanceof Error?_0x1b16bd[_0x34094c(0x3b8,0x2c1)]:'Failed\x20to\x20get\x20function',0x0,_0x1b16bd)};}}async[_0x2d7030(0x540,0x592)](_0x595619,_0x1de38d){function _0x579e6d(_0xa3dfa7,_0x291618){return _0x6f43(_0xa3dfa7- -0xa6,_0x291618);}try{const _0xd9196=new FormData();if(_0x1de38d['code']instanceof File)_0xd9196[_0x579e6d(0x34f,0x2b9)]('code',_0x1de38d[_0x579e6d(0x134,0x1f2)]);else typeof _0x1de38d[_0x579e6d(0x134,0x60)]===_0x579e6d(0x23b,0x155)&&_0xd9196['append'](_0x579e6d(0x134,0x253),new Blob([_0x1de38d[_0x579e6d(0x134,0x1b)]],{'type':'text/plain'}),'index.ts');_0x1de38d[_0x579e6d(0x30f,0x2f0)]&&_0xd9196[_0x579e6d(0x34f,0x2bd)](_0x579e6d(0x30f,0x417),_0x1de38d['entrypoint']);_0x1de38d['env']&&_0xd9196['append'](_0x579e6d(0x2f7,0x247),JSON[_0x579e6d(0x304,0x2ee)](_0x1de38d[_0x579e6d(0x2f7,0x287)]));_0x1de38d[_0x579e6d(0x284,0x3a9)]&&_0xd9196['append']('importMap',JSON['stringify'](_0x1de38d['importMap']));_0x1de38d['verify']!==undefined&&_0xd9196['append'](_0x579e6d(0x299,0x1c4),String(_0x1de38d['verify']));const response=await this[_0x579e6d(0x2b0,0x373)]['post']('/functions/v1/'+_0x595619+_0x579e6d(0x1dd,0x107),_0xd9196,{'headers':{'Content-Type':'multipart/form-data'}});return{'data':response[_0x579e6d(0x33d,0x278)],'error':null};}catch(_0x1e8d4c){return{'data':null,'error':_0x1e8d4c instanceof EBaaSError?_0x1e8d4c:new EBaaSError(_0x1e8d4c instanceof Error?_0x1e8d4c['message']:'Failed\x20to\x20deploy\x20function',0x0,_0x1e8d4c)};}}async[_0x2d7030(0x58e,0x55c)](_0x2e73f2){function _0x3f9eaf(_0x296f1a,_0x35be19){return _0x6f43(_0x296f1a-0x3e3,_0x35be19);}try{const response=await this[_0x3f9eaf(0x739,0x766)]['delete'](_0x3f9eaf(0x6ac,0x72a)+_0x2e73f2);return{'data':response[_0x3f9eaf(0x7c6,0x88b)],'error':null};}catch(_0x1f2b34){return{'data':null,'error':_0x1f2b34 instanceof EBaaSError?_0x1f2b34:new EBaaSError(_0x1f2b34 instanceof Error?_0x1f2b34[_0x3f9eaf(0x6fe,0x72e)]:_0x3f9eaf(0x689,0x5d3),0x0,_0x1f2b34)};}}async[_0x2d7030(0x488,0x598)](_0x2b0806,_0x4c2a02){function _0x324d2c(_0xb513de,_0x270e35){return _0x6f43(_0x270e35-0x3db,_0xb513de);}try{const response=await this['httpClient'][_0x324d2c(0x504,0x5e9)]('/functions/v1/'+_0x2b0806+'/env',{'env':_0x4c2a02});return{'data':response['data'],'error':null};}catch(_0x1a142d){return{'data':null,'error':_0x1a142d instanceof EBaaSError?_0x1a142d:new EBaaSError(_0x1a142d instanceof Error?_0x1a142d['message']:_0x324d2c(0x72e,0x6ae),0x0,_0x1a142d)};}}async[_0x2d7030(0x55f,0x4c3)](_0x59956d,_0x8b89ca){function _0x2ba8c8(_0x21c0ff,_0x145c0a){return _0x6f43(_0x145c0a- -0x4d,_0x21c0ff);}try{const _0x5eb1f1=new URLSearchParams();_0x8b89ca?.[_0x2ba8c8(0x1ca,0x237)]&&_0x5eb1f1['append'](_0x2ba8c8(0x320,0x237),String(_0x8b89ca[_0x2ba8c8(0x140,0x237)]));_0x8b89ca?.[_0x2ba8c8(0x488,0x36e)]&&_0x5eb1f1[_0x2ba8c8(0x4aa,0x3a8)]('offset',String(_0x8b89ca[_0x2ba8c8(0x417,0x36e)]));_0x8b89ca?.['level']&&_0x5eb1f1['append']('level',_0x8b89ca['level']);const _0x51f723=_0x2ba8c8(0x22f,0x27c)+_0x59956d+'/logs'+(_0x5eb1f1[_0x2ba8c8(0x398,0x308)]()?'?'+_0x5eb1f1[_0x2ba8c8(0x2fe,0x308)]():''),response=await this[_0x2ba8c8(0x3ba,0x309)]['get'](_0x51f723);return{'data':response[_0x2ba8c8(0x489,0x396)],'error':null};}catch(_0x5adcbd){return{'data':null,'error':_0x5adcbd instanceof EBaaSError?_0x5adcbd:new EBaaSError(_0x5adcbd instanceof Error?_0x5adcbd['message']:_0x2ba8c8(0x265,0x2f9),0x0,_0x5adcbd)};}}async[_0x2d7030(0x420,0x518)](_0x1e4d81,_0x12dd75){function _0x577002(_0x29a496,_0xa83051){return _0x6f43(_0xa83051- -0xe,_0x29a496);}try{const _0x3a7e1f=new URLSearchParams();_0x12dd75?.['period']&&_0x3a7e1f[_0x577002(0x3ce,0x3e7)](_0x577002(0x244,0x1be),_0x12dd75['period']);const _0x35f034=_0x577002(0x370,0x2bb)+_0x1e4d81+'/metrics'+(_0x3a7e1f['toString']()?'?'+_0x3a7e1f['toString']():''),response=await this['httpClient'][_0x577002(0x1fc,0x309)](_0x35f034);return{'data':response[_0x577002(0x2b7,0x3d5)],'error':null};}catch(_0x2f3b59){return{'data':null,'error':_0x2f3b59 instanceof EBaaSError?_0x2f3b59:new EBaaSError(_0x2f3b59 instanceof Error?_0x2f3b59['message']:'Failed\x20to\x20get\x20function\x20metrics',0x0,_0x2f3b59)};}}}class EBaaSClient{constructor(_0x58e885,_0x2cafb1,_0x63cf80){this[_0x5d159a(-0xd4,0x28)]=_0x63cf80,this[_0x5d159a(0x2f,0x129)]=new HttpClient({'url':_0x58e885,'apiKey':_0x2cafb1,'timeout':0x7530,'headers':_0x63cf80?.['global']?.['headers']}),this[_0x5d159a(0x121,0xb8)]=new AuthClient(this[_0x5d159a(0xf1,0x129)],_0x63cf80?.[_0x5d159a(0x200,0x10d)]?.['workspaceId']),this['database']=new DatabaseClient(this['httpClient'],_0x63cf80?.['database']?.[_0x5d159a(0x1b,-0x52)]);function _0x5d159a(_0x197001,_0x142574){return _0x6f43(_0x142574- -0x22d,_0x197001);}this['storage']=new StorageClient(this[_0x5d159a(0xc2,0x129)]),this['realtime']=new RealtimeClient(_0x58e885,_0x2cafb1,_0x63cf80?.['realtime']),this[_0x5d159a(-0xf6,-0x80)]=new FunctionsClient(this[_0x5d159a(0xbc,0x129)]),this['initializeCustomDatabase']();}[_0x2d7030(0x531,0x4c9)](_0x50aa09){function _0x76c935(_0x43366b,_0x2244fc){return _0x6f43(_0x2244fc- -0x2a9,_0x43366b);}return this[_0x76c935(0x87,0x91)]['from'](_0x50aa09);}['rpc'](_0x4b91ab,_0xe92a41){function _0x20c937(_0x1ddaf8,_0x1e810d){return _0x6f43(_0x1ddaf8- -0x90,_0x1e810d);}return this['database'][_0x20c937(0x1bd,0x12f)](_0x4b91ab,_0xe92a41);}['bucket'](_0x91aec1){function _0x3c0f23(_0x32a875,_0x19b6dc){return _0x6f43(_0x32a875-0x9e,_0x19b6dc);}return this[_0x3c0f23(0x255,0x375)][_0x3c0f23(0x305,0x429)](_0x91aec1);}['channel'](_0x1ab91a){function _0x22a5ce(_0x5427e2,_0x4d42d8){return _0x6f43(_0x4d42d8-0x165,_0x5427e2);}return this[_0x22a5ce(0x1f5,0x314)]['channel'](_0x1ab91a);}[_0x2d7030(0x4dc,0x5e9)](_0x5da5d2,_0x49a096){function _0x266af1(_0x154881,_0x370d2c){return _0x6f43(_0x370d2c- -0x31e,_0x154881);}return this['functions'][_0x266af1(0x11c,0x69)](_0x5da5d2,_0x49a096);}async['initializeCustomDatabase'](){function _0x40081b(_0x5a29f0,_0x50cae1){return _0x6f43(_0x50cae1-0x39b,_0x5a29f0);}if(this[_0x40081b(0x5b1,0x5f0)]?.['database']?.[_0x40081b(0x6da,0x78d)])try{await this[_0x40081b(0x605,0x6d5)]['initialize']();}catch(_0x1dfa78){console['warn']('Failed to initialize custom database detection:',_0x1dfa78);}}async[_0x2d7030(0x738,0x61e)](_0x3c7160){this['auth'][_0x272ffa(0x310,0x278)](_0x3c7160);function _0x272ffa(_0x1de0c4,_0x53d857){return _0x6f43(_0x1de0c4- -0xac,_0x53d857);}this['database'][_0x272ffa(0x310,0x27f)](_0x3c7160),this['options']?.[_0x272ffa(0x28e,0x2ad)]?.[_0x272ffa(0x346,0x314)]&&await this['database']['initialize']();}async['configureCustomDatabase'](_0x4b84b4){await this['database']['configureCustomDatabase'](_0x4b84b4);}['getCustomDatabaseStatus'](){function _0x3bd98e(_0x1dbf95,_0x14009a){return _0x6f43(_0x14009a-0x351,_0x1dbf95);}return this[_0x3bd98e(0x616,0x68b)][_0x3bd98e(0x7b1,0x745)]();}}function createClient(_0x44210e,_0x487314,_0x50889f){return new EBaaSClient(_0x44210e,_0x487314,_0x50889f);}const version=_0x2d7030(0x572,0x4e3),PACKET_TYPES=Object[_0x2d7030(0x661,0x604)](null);PACKET_TYPES['open']='0',PACKET_TYPES['close']='1',PACKET_TYPES[_0x2d7030(0x5c7,0x640)]='2',PACKET_TYPES['pong']='3',PACKET_TYPES[_0x2d7030(0x561,0x57d)]='4',PACKET_TYPES[_0x2d7030(0x450,0x4f5)]='5',PACKET_TYPES[_0x2d7030(0x566,0x5bb)]='6';const PACKET_TYPES_REVERSE=Object['create'](null);Object[_0x2d7030(0x5f8,0x515)](PACKET_TYPES)['forEach'](_0x3880f6=>{PACKET_TYPES_REVERSE[PACKET_TYPES[_0x3880f6]]=_0x3880f6;});const ERROR_PACKET={'type':'error','data':_0x2d7030(0x428,0x455)},withNativeBlob$1=typeof Blob==='function'||typeof Blob!=='undefined'&&Object[_0x2d7030(0x673,0x567)][_0x2d7030(0x5a2,0x5b7)][_0x2d7030(0x526,0x500)](Blob)==='[object\x20BlobConstructor]',withNativeArrayBuffer$2=typeof ArrayBuffer===_0x2d7030(0x637,0x5cb),isView$1=_0xdbf855=>{function _0x3cf589(_0x492c57,_0x295083){return _0x6f43(_0x295083- -0x37f,_0x492c57);}return typeof ArrayBuffer[_0x3cf589(-0x188,-0xdd)]===_0x3cf589(-0x104,-0x16)?ArrayBuffer[_0x3cf589(-0xef,-0xdd)](_0xdbf855):_0xdbf855&&_0xdbf855['buffer']instanceof ArrayBuffer;},encodePacket=({type:_0x2a1152,data:data},supportsBinary,_0x3f6ac6)=>{if(withNativeBlob$1&&data instanceof Blob)return supportsBinary?_0x3f6ac6(data):encodeBlobAsBase64(data,_0x3f6ac6);else{if(withNativeArrayBuffer$2&&(data instanceof ArrayBuffer||isView$1(data)))return supportsBinary?_0x3f6ac6(data):encodeBlobAsBase64(new Blob([data]),_0x3f6ac6);}return _0x3f6ac6(PACKET_TYPES[_0x2a1152]+(data||''));},encodeBlobAsBase64=(data,_0x126e47)=>{const _0x1ee320=new FileReader();return _0x1ee320['onload']=function(){function _0x5b1e51(_0x40225e,_0x59c4a4){return _0x6f43(_0x59c4a4-0x1e9,_0x40225e);}const _0x49e5d4=_0x1ee320['result'][_0x5b1e51(0x63c,0x533)](',')[0x1];_0x126e47('b'+(_0x49e5d4||''));},_0x1ee320['readAsDataURL'](data);};function toArray(data){function _0x1cf041(_0x3940f3,_0xd08e8b){return _0x6f43(_0xd08e8b-0x309,_0x3940f3);}if(data instanceof Uint8Array)return data;else return data instanceof ArrayBuffer?new Uint8Array(data):new Uint8Array(data[_0x1cf041(0x5ae,0x500)],data['byteOffset'],data['byteLength']);}let TEXT_ENCODER;function encodePacketToBinary(_0x29ee8b,_0x22c399){if(withNativeBlob$1&&_0x29ee8b['data']instanceof Blob)return _0x29ee8b[_0x152cfc(0x3aa,0x36b)][_0x152cfc(0x17f,0x1e7)]()[_0x152cfc(0x378,0x30b)](toArray)[_0x152cfc(0x378,0x467)](_0x22c399);else{if(withNativeArrayBuffer$2&&(_0x29ee8b['data']instanceof ArrayBuffer||isView$1(_0x29ee8b[_0x152cfc(0x3aa,0x2e3)])))return _0x22c399(toArray(_0x29ee8b['data']));}function _0x152cfc(_0x15cdd4,_0x5bb73a){return _0x6f43(_0x15cdd4- -0x39,_0x5bb73a);}encodePacket(_0x29ee8b,![],_0x2c6f5d=>{!TEXT_ENCODER&&(TEXT_ENCODER=new TextEncoder());function _0x555b8b(_0x56c77c,_0x5b6a08){return _0x6f43(_0x5b6a08- -0x2e,_0x56c77c);}_0x22c399(TEXT_ENCODER[_0x555b8b(0x1c9,0x25a)](_0x2c6f5d));});}const chars=_0x2d7030(0x55c,0x4b2),lookup$1=typeof Uint8Array==='undefined'?[]:new Uint8Array(0x100);for(let i=0x0;i<chars['length'];i++){lookup$1[chars['charCodeAt'](i)]=i;}const decode$1=_0x5529ef=>{function _0x851b91(_0x351763,_0x40c6d8){return _0x6f43(_0x351763-0x22c,_0x40c6d8);}let bufferLength=_0x5529ef[_0x851b91(0x471,0x498)]*0.75,_0x1accc4=_0x5529ef['length'],_0x317c0f,_0x59c0ad=0x0,_0x2ee8ef,_0x30ddd7,_0x2e2723,_0x5e2e9e;_0x5529ef[_0x5529ef['length']-0x1]==='='&&(bufferLength--,_0x5529ef[_0x5529ef['length']-0x2]==='='&&bufferLength--);const _0x4c5657=new ArrayBuffer(bufferLength),_0x9ba59c=new Uint8Array(_0x4c5657);for(_0x317c0f=0x0;_0x317c0f<_0x1accc4;_0x317c0f+=0x4){_0x2ee8ef=lookup$1[_0x5529ef[_0x851b91(0x3dd,0x3d0)](_0x317c0f)],_0x30ddd7=lookup$1[_0x5529ef[_0x851b91(0x3dd,0x48a)](_0x317c0f+0x1)],_0x2e2723=lookup$1[_0x5529ef[_0x851b91(0x3dd,0x483)](_0x317c0f+0x2)],_0x5e2e9e=lookup$1[_0x5529ef['charCodeAt'](_0x317c0f+0x3)],_0x9ba59c[_0x59c0ad++]=_0x2ee8ef<<0x2|_0x30ddd7>>0x4,_0x9ba59c[_0x59c0ad++]=(_0x30ddd7&0xf)<<0x4|_0x2e2723>>0x2,_0x9ba59c[_0x59c0ad++]=(_0x2e2723&0x3)<<0x6|_0x5e2e9e&0x3f;}return _0x4c5657;},withNativeArrayBuffer$1=typeof ArrayBuffer==='function',decodePacket=(_0x57b1ba,binaryType)=>{if(typeof _0x57b1ba!==_0x304a2b(0x17f,0x1f3))return{'type':'message','data':mapBinary(_0x57b1ba,binaryType)};function _0x304a2b(_0x1380e7,_0x11ee42){return _0x6f43(_0x11ee42- -0xee,_0x1380e7);}const _0x220426=_0x57b1ba[_0x304a2b(0x39b,0x2ef)](0x0);if(_0x220426==='b')return{'type':_0x304a2b(0x160,0x22d),'data':decodeBase64Packet(_0x57b1ba['substring'](0x1),binaryType)};const _0x4a6eb0=PACKET_TYPES_REVERSE[_0x220426];if(!_0x4a6eb0)return ERROR_PACKET;return _0x57b1ba[_0x304a2b(0x104,0x157)]>0x1?{'type':PACKET_TYPES_REVERSE[_0x220426],'data':_0x57b1ba['substring'](0x1)}:{'type':PACKET_TYPES_REVERSE[_0x220426]};},decodeBase64Packet=(data,binaryType)=>{if(withNativeArrayBuffer$1){const _0x425990=decode$1(data);return mapBinary(_0x425990,binaryType);}else return{'base64':!![],'data':data};},mapBinary=(data,binaryType)=>{function _0x4a7f82(_0x3fa72b,_0x5e5d34){return _0x6f43(_0x3fa72b-0x4b,_0x5e5d34);}switch(binaryType){case'blob':return data instanceof Blob?data:new Blob([data]);case _0x4a7f82(0x317,0x3c6):default:return data instanceof ArrayBuffer?data:data['buffer'];}},SEPARATOR=String['fromCharCode'](0x1e),encodePayload=(_0x3e9121,_0x31d96f)=>{function _0x26ecfe(_0xeb943b,_0x20e14c){return _0x6f43(_0x20e14c- -0x24e,_0xeb943b);}const length=_0x3e9121['length'],_0x8aec60=new Array(length);let count=0x0;_0x3e9121[_0x26ecfe(0x72,0x142)]((_0x6b31f9,_0x25360f)=>{encodePacket(_0x6b31f9,![],_0x33f561=>{function _0x35b55b(_0x407988,_0x381883){return _0x6f43(_0x407988- -0x8d,_0x381883);}_0x8aec60[_0x25360f]=_0x33f561,++count===length&&_0x31d96f(_0x8aec60[_0x35b55b(0x155,0x1e7)](SEPARATOR));});});},decodePayload=(_0x3b4894,binaryType)=>{const _0x4d20aa=_0x3b4894[_0x545915(-0x124,-0x2f)](SEPARATOR),_0x1ce153=[];function _0x545915(_0x349b45,_0x3ebbc7){return _0x6f43(_0x3ebbc7- -0x379,_0x349b45);}for(let _0x1cfeb8=0x0;_0x1cfeb8<_0x4d20aa[_0x545915(-0xb4,-0x134)];_0x1cfeb8++){const _0x153ea0=decodePacket(_0x4d20aa[_0x1cfeb8],binaryType);_0x1ce153['push'](_0x153ea0);if(_0x153ea0[_0x545915(-0xa6,0x5e)]===_0x545915(-0xac,-0xc8))break;}return _0x1ce153;};function createPacketEncoderStream(){return new TransformStream({'transform'(_0x5be898,_0x5c78c7){encodePacketToBinary(_0x5be898,_0x2eb5b4=>{const payloadLength=_0x2eb5b4[_0x2339e9(0x51c,0x44e)];let _0x430e83;if(payloadLength<0x7e)_0x430e83=new Uint8Array(0x1),new DataView(_0x430e83[_0x2339e9(0x392,0x400)])[_0x2339e9(0x412,0x4c4)](0x0,payloadLength);else{if(payloadLength<0x10000){_0x430e83=new Uint8Array(0x3);const _0x53663e=new DataView(_0x430e83[_0x2339e9(0x449,0x400)]);_0x53663e['setUint8'](0x0,0x7e),_0x53663e['setUint16'](0x1,payloadLength);}else{_0x430e83=new Uint8Array(0x9);const _0x22ea42=new DataView(_0x430e83[_0x2339e9(0x3dd,0x400)]);_0x22ea42[_0x2339e9(0x44d,0x4c4)](0x0,0x7f),_0x22ea42['setBigUint64'](0x1,BigInt(payloadLength));}}_0x5be898[_0x2339e9(0x52e,0x5ec)]&&typeof _0x5be898['data']!==_0x2339e9(0x51c,0x4ea)&&(_0x430e83[0x0]|=0x80);_0x5c78c7[_0x2339e9(0x67b,0x5f4)](_0x430e83);function _0x2339e9(_0x1daa68,_0x3fc056){return _0x6f43(_0x3fc056-0x209,_0x1daa68);}_0x5c78c7['enqueue'](_0x2eb5b4);});}});}let TEXT_DECODER;function totalLength(_0x20533d){function _0x3a8acd(_0x2cee95,_0x511a68){return _0x6f43(_0x2cee95-0x61,_0x511a68);}return _0x20533d[_0x3a8acd(0x437,0x54c)]((_0x27e728,_0x451d3c)=>_0x27e728+_0x451d3c['length'],0x0);}function concatChunks(_0x233b3d,_0x1c5997){if(_0x233b3d[0x0][_0x12a494(0x2d9,0x1f5)]===_0x1c5997)return _0x233b3d[_0x12a494(0x244,0x1b2)]();const _0x25938c=new Uint8Array(_0x1c5997);let _0x3cbfdb=0x0;for(let _0x4b027c=0x0;_0x4b027c<_0x1c5997;_0x4b027c++){_0x25938c[_0x4b027c]=_0x233b3d[0x0][_0x3cbfdb++],_0x3cbfdb===_0x233b3d[0x0][_0x12a494(0x2d9,0x1f3)]&&(_0x233b3d[_0x12a494(0x244,0x228)](),_0x3cbfdb=0x0);}_0x233b3d[_0x12a494(0x2d9,0x2b6)]&&_0x3cbfdb<_0x233b3d[0x0][_0x12a494(0x2d9,0x394)]&&(_0x233b3d[0x0]=_0x233b3d[0x0][_0x12a494(0x2de,0x293)](_0x3cbfdb));function _0x12a494(_0x5dc8a6,_0x478565){return _0x6f43(_0x5dc8a6-0x94,_0x478565);}return _0x25938c;}function createPacketDecoderStream(_0x96cf80,binaryType){!TEXT_DECODER&&(TEXT_DECODER=new TextDecoder());const _0x1c11ad=[];let _0x10e6d4=0x0,expectedLength=-0x1,isBinary=![];return new TransformStream({'transform'(_0x1a91e5,_0x2164db){function _0x2b751c(_0x2a7900,_0x57a55e){return _0x6f43(_0x57a55e- -0x27f,_0x2a7900);}_0x1c11ad[_0x2b751c(-0xa4,-0x80)](_0x1a91e5);while(!![]){if(_0x10e6d4===0x0){if(totalLength(_0x1c11ad)<0x1)break;const _0xd50249=concatChunks(_0x1c11ad,0x1);isBinary=(_0xd50249[0x0]&0x80)===0x80,expectedLength=_0xd50249[0x0]&0x7f;if(expectedLength<0x7e)_0x10e6d4=0x3;else expectedLength===0x7e?_0x10e6d4=0x1:_0x10e6d4=0x2;}else{if(_0x10e6d4===0x1){if(totalLength(_0x1c11ad)<0x2)break;const _0x1e1539=concatChunks(_0x1c11ad,0x2);expectedLength=new DataView(_0x1e1539[_0x2b751c(-0x16d,-0x88)],_0x1e1539['byteOffset'],_0x1e1539['length'])[_0x2b751c(0x193,0x171)](0x0),_0x10e6d4=0x3;}else{if(_0x10e6d4===0x2){if(totalLength(_0x1c11ad)<0x8)break;const _0x3e030e=concatChunks(_0x1c11ad,0x8),_0x1edb4d=new DataView(_0x3e030e[_0x2b751c(-0x9a,-0x88)],_0x3e030e['byteOffset'],_0x3e030e[_0x2b751c(0x9b,-0x3a)]),_0x2bedd2=_0x1edb4d[_0x2b751c(-0xe1,0x44)](0x0);if(_0x2bedd2>Math['pow'](0x2,0x35-0x20)-0x1){_0x2164db[_0x2b751c(0x7a,0x16c)](ERROR_PACKET);break;}expectedLength=_0x2bedd2*Math[_0x2b751c(0x12b,0xb)](0x2,0x20)+_0x1edb4d['getUint32'](0x4),_0x10e6d4=0x3;}else{if(totalLength(_0x1c11ad)<expectedLength)break;const data=concatChunks(_0x1c11ad,expectedLength);_0x2164db[_0x2b751c(0x9d,0x16c)](decodePacket(isBinary?data:TEXT_DECODER['decode'](data),binaryType)),_0x10e6d4=0x0;}}}if(expectedLength===0x0||expectedLength>_0x96cf80){_0x2164db['enqueue'](ERROR_PACKET);break;}}}});}const protocol$1=0x4;function Emitter(_0x3acd1d){if(_0x3acd1d)return mixin(_0x3acd1d);}function mixin(_0x40e43c){function _0x3bde24(_0x143361,_0x430421){return _0x6f43(_0x143361-0x2f1,_0x430421);}for(var _0x34e20e in Emitter['prototype']){_0x40e43c[_0x34e20e]=Emitter[_0x3bde24(0x5f6,0x618)][_0x34e20e];}return _0x40e43c;}Emitter[_0x2d7030(0x4f6,0x567)]['on']=Emitter['prototype'][_0x2d7030(0x3f7,0x4c6)]=function(_0x397242,_0x4c9815){this['_callbacks']=this['_callbacks']||{},(this['_callbacks']['$'+_0x397242]=this[_0x57da4(-0x98,-0x10e)]['$'+_0x397242]||[])[_0x57da4(-0x18c,-0x14a)](_0x4c9815);function _0x57da4(_0x3123cc,_0x8d140e){return _0x6f43(_0x3123cc- -0x38b,_0x8d140e);}return this;},Emitter['prototype'][_0x2d7030(0x699,0x59d)]=function(_0x2a9416,_0x7bbb55){function _0x56f6ae(){this['off'](_0x2a9416,_0x56f6ae);function _0x490352(_0x34bb70,_0x45f6e4){return _0x6f43(_0x45f6e4- -0x166,_0x34bb70);}_0x7bbb55[_0x490352(0xf9,0x19b)](this,arguments);}return _0x56f6ae['fn']=_0x7bbb55,this['on'](_0x2a9416,_0x56f6ae),this;},Emitter[_0x2d7030(0x637,0x567)][_0x2d7030(0x3e2,0x4b4)]=Emitter['prototype'][_0x2d7030(0x4e5,0x605)]=Emitter[_0x2d7030(0x5b6,0x567)][_0x2d7030(0x55e,0x46b)]=Emitter['prototype']['removeEventListener']=function(_0x434dbe,_0xa5a4f5){function _0x5283a8(_0x349ec6,_0x283c52){return _0x6f43(_0x349ec6-0x1d8,_0x283c52);}this['_callbacks']=this[_0x5283a8(0x4cb,0x466)]||{};if(0x0==arguments['length'])return this[_0x5283a8(0x4cb,0x419)]={},this;var _0x5360f5=this[_0x5283a8(0x4cb,0x58e)]['$'+_0x434dbe];if(!_0x5360f5)return this;if(0x1==arguments['length'])return delete this['_callbacks']['$'+_0x434dbe],this;var _0x46f3bd;for(var _0x14e277=0x0;_0x14e277<_0x5360f5[_0x5283a8(0x41d,0x33a)];_0x14e277++){_0x46f3bd=_0x5360f5[_0x14e277];if(_0x46f3bd===_0xa5a4f5||_0x46f3bd['fn']===_0xa5a4f5){_0x5360f5['splice'](_0x14e277,0x1);break;}}return _0x5360f5[_0x5283a8(0x41d,0x324)]===0x0&&delete this[_0x5283a8(0x4cb,0x5df)]['$'+_0x434dbe],this;},Emitter[_0x2d7030(0x506,0x567)][_0x2d7030(0x4b9,0x4f4)]=function(_0x2677a4){this['_callbacks']=this['_callbacks']||{};function _0x50a8e1(_0x4a220c,_0x56022e){return _0x6f43(_0x4a220c- -0x57,_0x56022e);}var _0x25d0bd=new Array(arguments['length']-0x1),_0x216e89=this['_callbacks']['$'+_0x2677a4];for(var _0x58c5f1=0x1;_0x58c5f1<arguments[_0x50a8e1(0x1ee,0x17d)];_0x58c5f1++){_0x25d0bd[_0x58c5f1-0x1]=arguments[_0x58c5f1];}if(_0x216e89){_0x216e89=_0x216e89['slice'](0x0);for(var _0x58c5f1=0x0,_0xf96edf=_0x216e89['length'];_0x58c5f1<_0xf96edf;++_0x58c5f1){_0x216e89[_0x58c5f1][_0x50a8e1(0x2aa,0x319)](this,_0x25d0bd);}}return this;},Emitter['prototype'][_0x2d7030(0x5e7,0x4db)]=Emitter['prototype']['emit'],Emitter['prototype'][_0x2d7030(0x4ef,0x583)]=function(_0x587b7a){function _0x10c8c6(_0x126d9b,_0x3c3bde){return _0x6f43(_0x126d9b-0x91,_0x3c3bde);}return this['_callbacks']=this['_callbacks']||{},this[_0x10c8c6(0x384,0x2ed)]['$'+_0x587b7a]||[];},Emitter[_0x2d7030(0x484,0x567)][_0x2d7030(0x5e8,0x506)]=function(_0x2428f0){function _0x58f214(_0x6ddabb,_0x22c0ea){return _0x6f43(_0x6ddabb- -0x35d,_0x22c0ea);}return!!this[_0x58f214(-0x3c,-0x54)](_0x2428f0)[_0x58f214(-0x118,-0x1f1)];};const nextTick=((()=>{const isPromiseAvailable=typeof Promise===_0x5b7c83(0x699,0x655)&&typeof Promise['resolve']==='function';function _0x5b7c83(_0x2ffaf9,_0x3c2ba2){return _0x6f43(_0x2ffaf9-0x330,_0x3c2ba2);}return isPromiseAvailable?_0x172eca=>Promise['resolve']()['then'](_0x172eca):(_0x545973,_0x466401)=>_0x466401(_0x545973,0x0);})()),globalThisShim=((()=>{function _0x230b82(_0x493148,_0x44e75a){return _0x6f43(_0x493148- -0x35a,_0x44e75a);}if(typeof self!==_0x230b82(-0x124,-0x20e))return self;else return typeof window!==_0x230b82(-0x124,-0x206)?window:Function(_0x230b82(-0xe5,-0x17))();})()),defaultBinaryType='arraybuffer';function createCookieJar(){}function pick(_0xcda5f4,..._0x44cdbe){function _0x297918(_0x4ce170,_0x63894){return _0x6f43(_0x63894-0x3e8,_0x4ce170);}return _0x44cdbe[_0x297918(0x6d0,0x7be)]((_0x31e963,_0x5a1cb9)=>{return _0xcda5f4['hasOwnProperty'](_0x5a1cb9)&&(_0x31e963[_0x5a1cb9]=_0xcda5f4[_0x5a1cb9]),_0x31e963;},{});}const NATIVE_SET_TIMEOUT=globalThisShim[_0x2d7030(0x61d,0x50a)],NATIVE_CLEAR_TIMEOUT=globalThisShim['clearTimeout'];function installTimerFunctions(_0x387a20,_0xd95c3a){function _0x33ee4c(_0x4e2b32,_0x53b72e){return _0x6f43(_0x53b72e-0x45,_0x4e2b32);}_0xd95c3a['useNativeTimers']?(_0x387a20['setTimeoutFn']=NATIVE_SET_TIMEOUT['bind'](globalThisShim),_0x387a20['clearTimeoutFn']=NATIVE_CLEAR_TIMEOUT['bind'](globalThisShim)):(_0x387a20['setTimeoutFn']=globalThisShim[_0x33ee4c(0x3c4,0x2ed)]['bind'](globalThisShim),_0x387a20['clearTimeoutFn']=globalThisShim[_0x33ee4c(0x375,0x32d)]['bind'](globalThisShim));}const BASE64_OVERHEAD=1.33;function byteLength(_0x518c67){if(typeof _0x518c67===_0x21d910(0x537,0x413))return utf8Length(_0x518c67);function _0x21d910(_0x685834,_0x399899){return _0x6f43(_0x399899-0x132,_0x685834);}return Math['ceil']((_0x518c67[_0x21d910(0x361,0x31f)]||_0x518c67[_0x21d910(0x37d,0x306)])*BASE64_OVERHEAD);}function utf8Length(_0x52cdfe){let _0x1cccb4=0x0,length=0x0;function _0xb96acc(_0x40e449,_0x425bee){return _0x6f43(_0x40e449-0x87,_0x425bee);}for(let _0x1a05d9=0x0,_0x5122cc=_0x52cdfe[_0xb96acc(0x2cc,0x1b4)];_0x1a05d9<_0x5122cc;_0x1a05d9++){_0x1cccb4=_0x52cdfe['charCodeAt'](_0x1a05d9);if(_0x1cccb4<0x80)length+=0x1;else{if(_0x1cccb4<0x800)length+=0x2;else _0x1cccb4<0xd800||_0x1cccb4>=0xe000?length+=0x3:(_0x1a05d9++,length+=0x4);}}return length;}function randomString(){function _0x10487a(_0x36cbef,_0x3ecd28){return _0x6f43(_0x3ecd28-0x3d9,_0x36cbef);}return Date[_0x10487a(0x7c0,0x79d)]()['toString'](0x24)[_0x10487a(0x6b4,0x594)](0x3)+Math[_0x10487a(0x6bc,0x66d)]()[_0x10487a(0x71c,0x72e)](0x24)['substring'](0x2,0x5);}function encode(_0x1b8b4e){let _0x5d8342='';for(let _0x1de2c0 in _0x1b8b4e){if(_0x1b8b4e['hasOwnProperty'](_0x1de2c0)){if(_0x5d8342[_0x9d35c4(0x570,0x570)])_0x5d8342+='&';_0x5d8342+=encodeURIComponent(_0x1de2c0)+'='+encodeURIComponent(_0x1b8b4e[_0x1de2c0]);}}function _0x9d35c4(_0x417494,_0x283647){return _0x6f43(_0x417494-0x32b,_0x283647);}return _0x5d8342;}function decode(_0x68d5be){let _0x335e80={},_0x284551=_0x68d5be[_0x30f6e2(0x4e7,0x4aa)]('&');for(let _0x210600=0x0,_0x127f21=_0x284551['length'];_0x210600<_0x127f21;_0x210600++){let _0x1a1ea0=_0x284551[_0x210600][_0x30f6e2(0x4e7,0x447)]('=');_0x335e80[decodeURIComponent(_0x1a1ea0[0x0])]=decodeURIComponent(_0x1a1ea0[0x1]);}function _0x30f6e2(_0x3de236,_0x131a48){return _0x6f43(_0x3de236-0x19d,_0x131a48);}return _0x335e80;}class TransportError extends Error{constructor(_0x5bdacb,_0x1fc05f,_0x917d74){super(_0x5bdacb),this[_0x364635(0x3c3,0x4b5)]=_0x1fc05f,this['context']=_0x917d74;function _0x364635(_0x310896,_0x24cda8){return _0x6f43(_0x24cda8-0x1f1,_0x310896);}this[_0x364635(0x4d6,0x5c8)]=_0x364635(0x5da,0x4f1);}}class Transport extends Emitter{constructor(_0x2b0a20){super(),this[_0x3c7cd4(0x297,0x303)]=![];function _0x3c7cd4(_0x53fd3e,_0x3b54c7){return _0x6f43(_0x3b54c7-0xfc,_0x53fd3e);}installTimerFunctions(this,_0x2b0a20),this['opts']=_0x2b0a20,this[_0x3c7cd4(0x315,0x2d8)]=_0x2b0a20[_0x3c7cd4(0x2a2,0x2d8)],this[_0x3c7cd4(0x583,0x4a0)]=_0x2b0a20[_0x3c7cd4(0x427,0x4a0)],this['supportsBinary']=!_0x2b0a20['forceBase64'];}['onError'](_0x25159f,_0x598508,_0x10c9bc){function _0x25eda8(_0x48f499,_0x38efcd){return _0x6f43(_0x48f499-0x1c4,_0x38efcd);}return super[_0x25eda8(0x43d,0x46c)](_0x25eda8(0x475,0x47c),new TransportError(_0x25159f,_0x598508,_0x10c9bc)),this;}[_0x2d7030(0x597,0x529)](){this[_0x2f61ba(-0xda,-0x1d2)]='opening';function _0x2f61ba(_0x4956ce,_0x660bb){return _0x6f43(_0x4956ce- -0x293,_0x660bb);}return this['doOpen'](),this;}[_0x2d7030(0x58d,0x4b8)](){function _0x14b942(_0x5d1370,_0x2cfbe2){return _0x6f43(_0x2cfbe2-0x1de,_0x5d1370);}return(this['readyState']===_0x14b942(0x3ef,0x4d3)||this[_0x14b942(0x437,0x397)]==='open')&&(this['doClose'](),this[_0x14b942(0x27a,0x391)]()),this;}[_0x2d7030(0x4ec,0x483)](_0x23cac7){function _0x39abc7(_0x976133,_0x311a37){return _0x6f43(_0x976133- -0x16f,_0x311a37);}this[_0x39abc7(0x4a,0xb0)]==='open'&&this[_0x39abc7(0x12b,0x7c)](_0x23cac7);}['onOpen'](){function _0x51f18c(_0x412052,_0x49c2ae){return _0x6f43(_0x49c2ae-0x2fb,_0x412052);}this['readyState']='open',this[_0x51f18c(0x540,0x502)]=!![],super['emitReserved']('open');}['onData'](data){function _0x26ad1e(_0x35917e,_0x5154b4){return _0x6f43(_0x35917e-0x2bb,_0x5154b4);}const _0x54a9a8=decodePacket(data,this[_0x26ad1e(0x65f,0x69a)][_0x26ad1e(0x4ad,0x3b9)]);this['onPacket'](_0x54a9a8);}[_0x2d7030(0x596,0x4fa)](_0x277ffd){function _0x1879e9(_0x5ee8ed,_0x4d38c5){return _0x6f43(_0x4d38c5-0x221,_0x5ee8ed);}super[_0x1879e9(0x4f4,0x49a)]('packet',_0x277ffd);}[_0x2d7030(0x318,0x415)](_0x1f74bc){function _0x54b45d(_0x2fddd3,_0x10396e){return _0x6f43(_0x2fddd3-0x1b0,_0x10396e);}this[_0x54b45d(0x369,0x2fe)]=_0x54b45d(0x57a,0x48b),super['emitReserved'](_0x54b45d(0x406,0x416),_0x1f74bc);}[_0x2d7030(0x452,0x47e)](_0x34f84f){}['createUri'](_0x16e6d1,_0x4e8bd0={}){function _0x12c622(_0x2a2ed2,_0x3172a2){return _0x6f43(_0x3172a2-0x3c2,_0x2a2ed2);}return _0x16e6d1+'://'+this[_0x12c622(0x642,0x687)]()+this[_0x12c622(0x66d,0x73e)]()+this['opts']['path']+this['_query'](_0x4e8bd0);}[_0x2d7030(0x5e1,0x527)](){const _0x1c5c59=this['opts'][_0x577d9e(-0x1bb,-0xb9)];function _0x577d9e(_0x55ee62,_0x26625c){return _0x6f43(_0x26625c- -0x2ba,_0x55ee62);}return _0x1c5c59[_0x577d9e(0x223,0x126)](':')===-0x1?_0x1c5c59:'['+_0x1c5c59+']';}['_port'](){function _0x5aa6fc(_0x5bd39e,_0x34dd75){return _0x6f43(_0x34dd75-0x208,_0x5bd39e);}return this[_0x5aa6fc(0x495,0x440)][_0x5aa6fc(0x546,0x5bc)]&&(this[_0x5aa6fc(0x426,0x440)][_0x5aa6fc(0x4b9,0x3ba)]&&Number(this[_0x5aa6fc(0x4bd,0x440)]['port']!==0x1bb)||!this[_0x5aa6fc(0x365,0x440)]['secure']&&Number(this[_0x5aa6fc(0x369,0x440)]['port'])!==0x50)?':'+this[_0x5aa6fc(0x392,0x440)]['port']:'';}['_query'](_0x1efe4b){const _0x5e1ec1=encode(_0x1efe4b);function _0x2eddea(_0x5c65e2,_0x515a3a){return _0x6f43(_0x5c65e2- -0x129,_0x515a3a);}return _0x5e1ec1[_0x2eddea(0x11c,0x208)]?'?'+_0x5e1ec1:'';}}class Polling extends Transport{constructor(){function _0x41264c(_0x1774f2,_0x39eed3){return _0x6f43(_0x1774f2- -0x104,_0x39eed3);}super(...arguments),this[_0x41264c(0x2d7,0x1c7)]=![];}get['name'](){return'polling';}['doOpen'](){function _0x4c3922(_0x532a37,_0x3e7351){return _0x6f43(_0x3e7351- -0x202,_0x532a37);}this[_0x4c3922(0x192,0x162)]();}['pause'](_0x2eac1e){function _0x1026c6(_0x46a7ba,_0x16aab7){return _0x6f43(_0x16aab7-0x361,_0x46a7ba);}this[_0x1026c6(0x558,0x51a)]='pausing';const _0x5c9b01=()=>{function _0x8cb595(_0x1e5209,_0x4a4916){return _0x6f43(_0x1e5209- -0x80,_0x4a4916);}this['readyState']=_0x8cb595(0x22d,0x1a1),_0x2eac1e();};if(this['_polling']||!this[_0x1026c6(0x68a,0x568)]){let _0xe1e256=0x0;this['_polling']&&(_0xe1e256++,this[_0x1026c6(0x63b,0x69c)]('pollComplete',function(){--_0xe1e256||_0x5c9b01();})),!this['writable']&&(_0xe1e256++,this[_0x1026c6(0x6b7,0x69c)]('drain',function(){--_0xe1e256||_0x5c9b01();}));}else _0x5c9b01();}['_poll'](){function _0x2ca001(_0x17b31a,_0x15943a){return _0x6f43(_0x15943a-0x20f,_0x17b31a);}this[_0x2ca001(0x6d2,0x5ea)]=!![],this[_0x2ca001(0x443,0x527)](),this[_0x2ca001(0x479,0x488)]('poll');}[_0x2d7030(0x522,0x603)](data){function _0xdc2e1(_0xb0d95f,_0x56f620){return _0x6f43(_0xb0d95f- -0x28,_0x56f620);}const _0x9c34fa=_0x145050=>{'opening'===this[_0x4f68da(-0x96,-0xbb)]&&_0x145050['type']===_0x4f68da(-0xf,0x53)&&this[_0x4f68da(-0x1a5,-0x89)]();function _0x4f68da(_0x1e4794,_0x36f298){return _0x6f43(_0x36f298- -0x274,_0x1e4794);}if(_0x4f68da(-0xe6,-0x1e)===_0x145050['type'])return this[_0x4f68da(-0xa2,-0xc1)]({'description':'transport\x20closed\x20by\x20the\x20server'}),![];this[_0x4f68da(0x137,0x24)](_0x145050);};decodePayload(data,this['socket'][_0xdc2e1(0x1ca,0x2e6)])[_0xdc2e1(0x368,0x2f5)](_0x9c34fa),_0xdc2e1(0x3a2,0x29a)!==this[_0xdc2e1(0x191,0xf7)]&&(this['_polling']=![],this['emitReserved'](_0xdc2e1(0x24b,0x345)),_0xdc2e1(0x29f,0x1c2)===this['readyState']&&this['_poll']());}['doClose'](){const _0x290738=()=>{this['write']([{'type':'close'}]);};function _0x115c5f(_0x2face1,_0x1480e7){return _0x6f43(_0x1480e7- -0x14d,_0x2face1);}_0x115c5f(0x251,0x17a)===this[_0x115c5f(0xf3,0x6c)]?_0x290738():this['once']('open',_0x290738);}[_0x2d7030(0x43b,0x4fc)](_0x579ebc){this['writable']=![],encodePayload(_0x579ebc,data=>{function _0x42662b(_0xf5831a,_0x54a4df){return _0x6f43(_0x54a4df- -0x154,_0xf5831a);}this[_0x42662b(0x142,0x58)](data,()=>{this['writable']=!![],this['emitReserved']('drain');});});}['uri'](){const _0x291225=this[_0x3aed94(0x1c6,0x2e5)][_0x3aed94(0x140,0x23f)]?'https':'http',_0x511ba4=this[_0x3aed94(0x16a,0xac)]||{};![]!==this[_0x3aed94(0x1c6,0x179)][_0x3aed94(0x2db,0x2d0)]&&(_0x511ba4[this['opts'][_0x3aed94(0x304,0x3fb)]]=randomString());!this['supportsBinary']&&!_0x511ba4[_0x3aed94(0x210,0x2cd)]&&(_0x511ba4[_0x3aed94(0x15d,0x19f)]=0x1);function _0x3aed94(_0x597943,_0x14ba6d){return _0x6f43(_0x597943- -0x72,_0x14ba6d);}return this['createUri'](_0x291225,_0x511ba4);}}let value=![];try{value=typeof XMLHttpRequest!=='undefined'&&'withCredentials'in new XMLHttpRequest();}catch(_0x200fcd){}const hasCORS=value;function empty(){}class BaseXHR extends Polling{constructor(_0x3710e7){super(_0x3710e7);function _0x3e51ae(_0x543d3a,_0x348089){return _0x6f43(_0x543d3a-0x15d,_0x348089);}if(typeof location!=='undefined'){const isSSL=_0x3e51ae(0x485,0x431)===location[_0x3e51ae(0x530,0x482)];let _0x4f7e34=location['port'];!_0x4f7e34&&(_0x4f7e34=isSSL?_0x3e51ae(0x402,0x513):'80'),this['xd']=typeof location!==_0x3e51ae(0x393,0x4ab)&&_0x3710e7['hostname']!==location['hostname']||_0x4f7e34!==_0x3710e7['port'];}}[_0x2d7030(0x454,0x40e)](data,_0x355921){const req=this['request']({'method':'POST','data':data});function _0x8b0acf(_0x11a8c0,_0x5a3e00){return _0x6f43(_0x5a3e00-0x2c4,_0x11a8c0);}req['on'](_0x8b0acf(0x5f3,0x53e),_0x355921),req['on'](_0x8b0acf(0x620,0x575),(_0xfd5569,_0x5009c9)=>{function _0x1f2e4b(_0x4b213c,_0x1ceff6){return _0x6f43(_0x4b213c-0x16f,_0x1ceff6);}this[_0x1f2e4b(0x461,0x46f)]('xhr\x20post\x20error',_0xfd5569,_0x5009c9);});}['doPoll'](){const req=this['request']();function _0x19dff8(_0x54045d,_0x445464){return _0x6f43(_0x54045d- -0xd6,_0x445464);}req['on'](_0x19dff8(0x30d,0x3a9),this['onData']['bind'](this)),req['on']('error',(_0x8b9d8,_0xc96f6f)=>{function _0x5efb4b(_0x152eaa,_0xab4602){return _0x6f43(_0x152eaa-0x286,_0xab4602);}this['onError'](_0x5efb4b(0x4bd,0x3af),_0x8b9d8,_0xc96f6f);}),this['pollXhr']=req;}}class Request extends Emitter{constructor(createRequest,_0x29e9ad,_0x6201e1){super(),this[_0x51fb26(0x494,0x3ff)]=createRequest,installTimerFunctions(this,_0x6201e1);function _0x51fb26(_0x1d182e,_0x2bef1e){return _0x6f43(_0x2bef1e-0x1a2,_0x1d182e);}this[_0x51fb26(0x4cc,0x53b)]=_0x6201e1,this[_0x51fb26(0x465,0x4ff)]=_0x6201e1[_0x51fb26(0x2f5,0x3b4)]||'GET',this[_0x51fb26(0x4b8,0x563)]=_0x29e9ad,this[_0x51fb26(0x32f,0x442)]=undefined!==_0x6201e1['data']?_0x6201e1[_0x51fb26(0x5d8,0x585)]:null,this[_0x51fb26(0x532,0x516)]();}['_create'](){var _0x13548a;const _0x3b988c=pick(this[_0x217449(0x3bf,0x3f4)],'agent',_0x217449(0x235,0x1fa),'key','passphrase',_0x217449(0x2b6,0x31b),'ca','ciphers','rejectUnauthorized','autoUnref');_0x3b988c[_0x217449(0x1f9,0x1e1)]=!!this[_0x217449(0x3bf,0x4e3)]['xd'];const _0x37030a=this['_xhr']=this[_0x217449(0x283,0x2fc)](_0x3b988c);try{_0x37030a[_0x217449(0x2ed,0x31b)](this[_0x217449(0x383,0x3b9)],this[_0x217449(0x3e7,0x421)],!![]);try{if(this['_opts']['extraHeaders']){_0x37030a['setDisableHeaderCheck']&&_0x37030a['setDisableHeaderCheck'](!![]);for(let _0x10c321 in this['_opts'][_0x217449(0x2bb,0x307)]){this['_opts'][_0x217449(0x2bb,0x1a1)][_0x217449(0x353,0x376)](_0x10c321)&&_0x37030a['setRequestHeader'](_0x10c321,this['_opts']['extraHeaders'][_0x10c321]);}}}catch(_0x4cfda1){}if('POST'===this[_0x217449(0x383,0x425)])try{_0x37030a['setRequestHeader'](_0x217449(0x2e3,0x3b6),'text/plain;charset=UTF-8');}catch(_0xa82c5e){}try{_0x37030a['setRequestHeader'](_0x217449(0x205,0x31d),'*/*');}catch(_0x2d7a1d){}(_0x13548a=this[_0x217449(0x3bf,0x4e4)]['cookieJar'])===null||_0x13548a===void 0x0?void 0x0:_0x13548a[_0x217449(0x259,0x211)](_0x37030a),'withCredentials'in _0x37030a&&(_0x37030a[_0x217449(0x398,0x45e)]=this[_0x217449(0x3bf,0x2fb)][_0x217449(0x398,0x3d3)]),this[_0x217449(0x3bf,0x455)][_0x217449(0x240,0x122)]&&(_0x37030a['timeout']=this['_opts'][_0x217449(0x240,0x267)]),_0x37030a[_0x217449(0x223,0x143)]=()=>{var _0x2f4ea5;_0x37030a['readyState']===0x3&&((_0x2f4ea5=this['_opts'][_0x37fdb0(0x4aa,0x4f8)])===null||_0x2f4ea5===void 0x0?void 0x0:_0x2f4ea5[_0x37fdb0(0x4e2,0x3d0)](_0x37030a['getResponseHeader']('set-cookie')));if(0x4!==_0x37030a[_0x37fdb0(0x325,0x323)])return;function _0x37fdb0(_0x23e331,_0x59fa14){return _0x6f43(_0x59fa14-0x16a,_0x23e331);}0xc8===_0x37030a[_0x37fdb0(0x3be,0x3d3)]||0x4c7===_0x37030a[_0x37fdb0(0x34c,0x3d3)]?this['_onLoad']():this[_0x37fdb0(0x2de,0x3e6)](()=>{function _0x1939d2(_0x11c010,_0x43f96b){return _0x6f43(_0x43f96b-0xa,_0x11c010);}this['_onError'](typeof _0x37030a['status']===_0x1939d2(0x1e8,0x297)?_0x37030a['status']:0x0);},0x0);},_0x37030a['send'](this[_0x217449(0x2c6,0x351)]);}catch(_0x1c30a6){this[_0x217449(0x2a2,0x272)](()=>{this['_onError'](_0x1c30a6);},0x0);return;}function _0x217449(_0x4cdb48,_0x4e3c99){return _0x6f43(_0x4cdb48-0x26,_0x4e3c99);}typeof document!=='undefined'&&(this['_index']=Request[_0x217449(0x2e6,0x2ae)]++,Request['requests'][this['_index']]=this);}['_onError'](_0x51be40){function _0x128288(_0x1bc9f4,_0x57a4c9){return _0x6f43(_0x57a4c9- -0x253,_0x1bc9f4);}this['emitReserved'](_0x128288(0x152,0x5e),_0x51be40,this[_0x128288(0xd6,0x110)]),this['_cleanup'](!![]);}[_0x2d7030(0x557,0x478)](fromError){if(_0x59a90f(0x244,0x328)===typeof this['_xhr']||null===this[_0x59a90f(0x468,0x455)])return;this['_xhr'][_0x59a90f(0x374,0x2ef)]=empty;function _0x59a90f(_0x2b4b4b,_0x9de1de){return _0x6f43(_0x9de1de-0xf2,_0x2b4b4b);}if(fromError)try{this['_xhr']['abort']();}catch(_0x4f65be){}typeof document!==_0x59a90f(0x252,0x328)&&delete Request[_0x59a90f(0x3ba,0x37e)][this[_0x59a90f(0x32c,0x32e)]],this['_xhr']=null;}[_0x2d7030(0x5fd,0x582)](){const data=this['_xhr']['responseText'];function _0x253b45(_0x24a9d6,_0x13b123){return _0x6f43(_0x24a9d6-0x184,_0x13b123);}data!==null&&(this['emitReserved'](_0x253b45(0x567,0x4b8),data),this[_0x253b45(0x3fd,0x2d9)](_0x253b45(0x3fe,0x309)),this['_cleanup']());}[_0x2d7030(0x373,0x410)](){function _0x128f5f(_0x312bf4,_0x5807c7){return _0x6f43(_0x312bf4- -0x142,_0x5807c7);}this[_0x128f5f(0xd4,0x1f7)]();}}Request[_0x2d7030(0x595,0x522)]=0x0,Request[_0x2d7030(0x4a1,0x4ee)]={};if(typeof document!==_0x2d7030(0x4b0,0x498)){if(typeof attachEvent==='function')attachEvent('onunload',unloadHandler);else{if(typeof addEventListener==='function'){const terminationEvent='onpagehide'in globalThisShim?'pagehide':'unload';addEventListener(terminationEvent,unloadHandler,![]);}}}function unloadHandler(){function _0x339709(_0x1616c3,_0x4534b1){return _0x6f43(_0x1616c3- -0x185,_0x4534b1);}for(let _0x43735d in Request[_0x339709(0x107,0x210)]){Request[_0x339709(0x107,0x25)][_0x339709(0x1a8,0x134)](_0x43735d)&&Request['requests'][_0x43735d][_0x339709(0x29,0x5c)]();}}const hasXHR2=(function(){const _0x956838=newRequest({'xdomain':![]});return _0x956838&&_0x956838['responseType']!==null;}());class XHR extends BaseXHR{constructor(_0x542187){super(_0x542187);const _0x3d895f=_0x542187&&_0x542187['forceBase64'];this['supportsBinary']=hasXHR2&&!_0x3d895f;}['request'](_0x1da9c1={}){Object[_0x4e479a(-0xbe,0x4c)](_0x1da9c1,{'xd':this['xd']},this[_0x4e479a(-0xc4,-0x159)]);function _0x4e479a(_0x3cfcca,_0x19069d){return _0x6f43(_0x3cfcca- -0x2fc,_0x19069d);}return new Request(newRequest,this['uri'](),_0x1da9c1);}}function newRequest(_0x2110b2){const xdomain=_0x2110b2[_0x44d274(0x406,0x356)];function _0x44d274(_0x17d0f3,_0x4c637d){return _0x6f43(_0x17d0f3-0x233,_0x4c637d);}try{if('undefined'!==typeof XMLHttpRequest&&(!xdomain||hasCORS))return new XMLHttpRequest();}catch(_0x39fb1f){}if(!xdomain)try{return new globalThisShim[(['Active'][_0x44d274(0x492,0x40c)](_0x44d274(0x46e,0x36c))['join']('X'))](_0x44d274(0x56f,0x5fb));}catch(_0x3ad684){}}const isReactNative=typeof navigator!==_0x2d7030(0x525,0x498)&&typeof navigator['product']==='string'&&navigator['product'][_0x2d7030(0x6e9,0x5c8)]()==='reactnative';class BaseWS extends Transport{get[_0x2d7030(0x6be,0x5cc)](){return'websocket';}['doOpen'](){const _0x3d85cf=this[_0x28be3c(0x64c,0x59d)](),_0x1dcf46=this[_0x28be3c(0x406,0x446)]['protocols'],_0x44e4cb=isReactNative?{}:pick(this['opts'],'agent','perMessageDeflate',_0x28be3c(0x391,0x41d),_0x28be3c(0x642,0x5b9),'passphrase','cert','ca',_0x28be3c(0x5b3,0x4c2),'rejectUnauthorized',_0x28be3c(0x3f9,0x40e),_0x28be3c(0x4e6,0x5ea),_0x28be3c(0x4b0,0x5a8),'maxPayload','family','checkServerIdentity');this['opts']['extraHeaders']&&(_0x44e4cb[_0x28be3c(0x3db,0x478)]=this[_0x28be3c(0x53f,0x446)]['extraHeaders']);function _0x28be3c(_0x18ba47,_0x44db82){return _0x6f43(_0x44db82-0x20e,_0x18ba47);}try{this['ws']=this[_0x28be3c(0x4d2,0x597)](_0x3d85cf,_0x1dcf46,_0x44e4cb);}catch(_0x4169ba){return this[_0x28be3c(0x396,0x487)](_0x28be3c(0x54f,0x4bf),_0x4169ba);}this['ws'][_0x28be3c(0x4fa,0x400)]=this['socket'][_0x28be3c(0x521,0x400)],this['addEventListeners']();}[_0x2d7030(0x345,0x457)](){this['ws']['onopen']=()=>{this['opts'][_0x4d4daa(0x5e6,0x65d)]&&this['ws']['_socket']['unref']();function _0x4d4daa(_0x5409e5,_0x87c907){return _0x6f43(_0x5409e5-0x200,_0x87c907);}this[_0x4d4daa(0x3eb,0x385)]();},this['ws']['onclose']=_0x50c9b3=>this[_0x403cb3(0x313,0x373)]({'description':'websocket\x20connection\x20closed','context':_0x50c9b3});function _0x403cb3(_0x1eae46,_0xf20e67){return _0x6f43(_0x1eae46-0x160,_0xf20e67);}this['ws'][_0x403cb3(0x3bb,0x41f)]=_0x5572d2=>this[_0x403cb3(0x501,0x42e)](_0x5572d2['data']),this['ws']['onerror']=_0x59b939=>this['onError']('websocket\x20error',_0x59b939);}[_0x2d7030(0x3f1,0x4fc)](_0x1a3a6c){this['writable']=![];for(let _0x42bd38=0x0;_0x42bd38<_0x1a3a6c['length'];_0x42bd38++){const _0x5c7ab7=_0x1a3a6c[_0x42bd38],_0x4b13e9=_0x42bd38===_0x1a3a6c['length']-0x1;encodePacket(_0x5c7ab7,this['supportsBinary'],data=>{try{this['doWrite'](_0x5c7ab7,data);}catch(_0xf4365a){}_0x4b13e9&&nextTick(()=>{function _0x2796ac(_0x56e44a,_0x1163d0){return _0x6f43(_0x56e44a-0x289,_0x1163d0);}this['writable']=!![],this['emitReserved'](_0x2796ac(0x55e,0x578));},this['setTimeoutFn']);});}}[_0x2d7030(0x564,0x64f)](){function _0x1e73f8(_0x10efb6,_0x2a74d6){return _0x6f43(_0x2a74d6- -0x350,_0x10efb6);}typeof this['ws']!==_0x1e73f8(-0x1a6,-0x11a)&&(this['ws'][_0x1e73f8(-0x1b3,-0x139)]=()=>{},this['ws'][_0x1e73f8(-0x10,-0xfa)](),this['ws']=null);}[_0x2d7030(0x4d6,0x5f1)](){const _0x52caac=this['opts']['secure']?_0x51a2f6(0x1b2,0xed):'ws',_0x2752f0=this[_0x51a2f6(-0x52,-0x4b)]||{};function _0x51a2f6(_0xf6b80d,_0x81834){return _0x6f43(_0x81834- -0x227,_0xf6b80d);}return this['opts'][_0x51a2f6(0x26,0x126)]&&(_0x2752f0[this['opts']['timestampParam']]=randomString()),!this['supportsBinary']&&(_0x2752f0[_0x51a2f6(0x1c,-0x58)]=0x1),this['createUri'](_0x52caac,_0x2752f0);}}const WebSocketCtor=globalThisShim['WebSocket']||globalThisShim[_0x2d7030(0x568,0x5f8)];class WS extends BaseWS{[_0x2d7030(0x5e7,0x5eb)](_0x3d4de0,_0x2f5b66,_0x245d30){return!isReactNative?_0x2f5b66?new WebSocketCtor(_0x3d4de0,_0x2f5b66):new WebSocketCtor(_0x3d4de0):new WebSocketCtor(_0x3d4de0,_0x2f5b66,_0x245d30);}[_0x2d7030(0x4e9,0x40e)](_0x1b9e70,data){function _0xa3e181(_0x32c65c,_0x1c7bdc){return _0x6f43(_0x1c7bdc- -0x347,_0x32c65c);}this['ws'][_0xa3e181(-0x169,-0x126)](data);}}class WT extends Transport{get['name'](){return'webtransport';}['doOpen'](){function _0x42e24c(_0x73c903,_0x42811f){return _0x6f43(_0x42811f-0x5a,_0x73c903);}try{this['_transport']=new WebTransport(this[_0x42e24c(0x330,0x3a1)](_0x42e24c(0x2c8,0x320)),this['opts']['transportOptions'][this[_0x42e24c(0x309,0x3c4)]]);}catch(_0x34ed72){return this[_0x42e24c(0x1fb,0x2d3)]('error',_0x34ed72);}this[_0x42e24c(0x30d,0x36f)][_0x42e24c(0x45e,0x424)]['then'](()=>{function _0x4acf9d(_0xed1d59,_0x4ec5da){return _0x6f43(_0x4ec5da- -0x29a,_0xed1d59);}this[_0x4acf9d(0xc,-0xe7)]();})['catch'](_0x3b37f7=>{function _0x4d033a(_0x40aaf9,_0x35991d){return _0x6f43(_0x40aaf9-0x3b7,_0x35991d);}this[_0x4d033a(0x6a9,0x632)](_0x4d033a(0x737,0x80b),_0x3b37f7);}),this['_transport'][_0x42e24c(0x2d3,0x2d2)][_0x42e24c(0x34a,0x40b)](()=>{this['_transport']['createBidirectionalStream']()['then'](_0x503147=>{const _0x83bfb7=createPacketDecoderStream(Number[_0x15fa7d(0x5e5,0x63a)],this['socket']['binaryType']),_0x2afe97=_0x503147['readable'][_0x15fa7d(0x637,0x6fd)](_0x83bfb7)['getReader']();function _0x15fa7d(_0x1abfc0,_0x5a9f34){return _0x6f43(_0x1abfc0-0x3e3,_0x5a9f34);}const _0x5aa86b=createPacketEncoderStream();_0x5aa86b['readable']['pipeTo'](_0x503147['writable']),this['_writer']=_0x5aa86b['writable'][_0x15fa7d(0x6cf,0x7ec)]();const _0x2cee4b=()=>{function _0x506612(_0x3df4bc,_0x35c83e){return _0x6f43(_0x35c83e- -0x28b,_0x3df4bc);}_0x2afe97[_0x506612(0x18a,0xd5)]()[_0x506612(0x1c,0x126)](({done:_0x3f7802,value:_0x3704b2})=>{if(_0x3f7802)return;this[_0x3c3b8e(-0x120,-0x33)](_0x3704b2);function _0x3c3b8e(_0x47edda,_0x4c9e26){return _0x6f43(_0x47edda- -0x3b8,_0x4c9e26);}_0x2cee4b();})['catch'](_0x2ee6e6=>{});};_0x2cee4b();const _0x56a525={'type':_0x15fa7d(0x6aa,0x59e)};this[_0x15fa7d(0x5bf,0x5ce)]['sid']&&(_0x56a525['data']='{\x22sid\x22:\x22'+this['query'][_0x15fa7d(0x665,0x6c6)]+'\x22}'),this['_writer']['write'](_0x56a525)[_0x15fa7d(0x794,0x84e)](()=>this['onOpen']());});});}['write'](_0x4e2b6d){function _0x177624(_0x5f585d,_0x162898){return _0x6f43(_0x162898- -0x2b4,_0x5f585d);}this['writable']=![];for(let _0x11f38c=0x0;_0x11f38c<_0x4e2b6d[_0x177624(0x55,-0x6f)];_0x11f38c++){const _0x527b3a=_0x4e2b6d[_0x11f38c],_0x58f9a3=_0x11f38c===_0x4e2b6d[_0x177624(-0x34,-0x6f)]-0x1;this[_0x177624(-0xaf,-0x9)][_0x177624(-0x74,-0x1a)](_0x527b3a)[_0x177624(0x62,0xfd)](()=>{_0x58f9a3&&nextTick(()=>{this['writable']=!![],this['emitReserved']('drain');},this['setTimeoutFn']);});}}[_0x2d7030(0x67c,0x64f)](){var _0x1d04ea;function _0x1b9360(_0x3ce67d,_0x4fd8ce){return _0x6f43(_0x3ce67d- -0x7,_0x4fd8ce);}(_0x1d04ea=this['_transport'])===null||_0x1d04ea===void 0x0?void 0x0:_0x1d04ea[_0x1b9360(0x24f,0x2c1)]();}}const transports={'websocket':WS,'webtransport':WT,'polling':XHR},re=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,parts=[_0x2d7030(0x602,0x60b),_0x2d7030(0x52c,0x635),_0x2d7030(0x6bd,0x5bd),_0x2d7030(0x37f,0x497),'user',_0x2d7030(0x44d,0x4e0),_0x2d7030(0x5bd,0x5d0),'port','relative',_0x2d7030(0x5d6,0x51a),'directory',_0x2d7030(0x635,0x602),_0x2d7030(0x54c,0x43e),'anchor'];function parse(_0x510a86){if(_0x510a86[_0x1acb7b(0x48c,0x564)]>0x1f40)throw'URI\x20too\x20long';const _0x85bb43=_0x510a86,_0x22d2aa=_0x510a86[_0x1acb7b(0x758,0x6ff)]('['),_0x2320e6=_0x510a86[_0x1acb7b(0x75f,0x6ff)](']');_0x22d2aa!=-0x1&&_0x2320e6!=-0x1&&(_0x510a86=_0x510a86['substring'](0x0,_0x22d2aa)+_0x510a86[_0x1acb7b(0x479,0x4da)](_0x22d2aa,_0x2320e6)['replace'](/:/g,';')+_0x510a86[_0x1acb7b(0x568,0x4da)](_0x2320e6,_0x510a86[_0x1acb7b(0x4d1,0x564)]));let _0x2e6d13=re[_0x1acb7b(0x693,0x5ad)](_0x510a86||''),_0xd32985={},_0x2dadee=0xe;while(_0x2dadee--){_0xd32985[parts[_0x2dadee]]=_0x2e6d13[_0x2dadee]||'';}function _0x1acb7b(_0x534ae7,_0xd41d6a){return _0x6f43(_0xd41d6a-0x31f,_0x534ae7);}return _0x22d2aa!=-0x1&&_0x2320e6!=-0x1&&(_0xd32985[_0x1acb7b(0x5ad,0x6c8)]=_0x85bb43,_0xd32985[_0x1acb7b(0x75b,0x68d)]=_0xd32985[_0x1acb7b(0x6b3,0x68d)][_0x1acb7b(0x50e,0x4da)](0x1,_0xd32985['host']['length']-0x1)[_0x1acb7b(0x570,0x53e)](/;/g,':'),_0xd32985['authority']=_0xd32985['authority'][_0x1acb7b(0x646,0x53e)]('[','')['replace'](']','')['replace'](/;/g,':'),_0xd32985[_0x1acb7b(0x5f9,0x648)]=!![]),_0xd32985[_0x1acb7b(0x57b,0x63c)]=pathNames(_0xd32985,_0xd32985['path']),_0xd32985['queryKey']=queryKey(_0xd32985,_0xd32985[_0x1acb7b(0x3df,0x4fb)]),_0xd32985;}function pathNames(_0x584570,_0x48040e){const _0x2ab106=/\/{2,9}/g,_0x1a860c=_0x48040e['replace'](_0x2ab106,'/')['split']('/');(_0x48040e['slice'](0x0,0x1)=='/'||_0x48040e[_0x44ba33(0x227,0x2a1)]===0x0)&&_0x1a860c[_0x44ba33(0x457,0x35a)](0x0,0x1);_0x48040e[_0x44ba33(0x1ce,0x2a6)](-0x1)=='/'&&_0x1a860c[_0x44ba33(0x3d5,0x35a)](_0x1a860c[_0x44ba33(0x285,0x2a1)]-0x1,0x1);function _0x44ba33(_0xe2aa05,_0x10fe32){return _0x6f43(_0x10fe32-0x5c,_0xe2aa05);}return _0x1a860c;}function queryKey(_0x48452b,_0x19b882){const data={};_0x19b882[_0x28a57b(0x585,0x5fa)](/(?:^|&)([^&=]*)=?([^&]*)/g,function(_0x42047d,_0x3ed2b5,_0x3ad759){_0x3ed2b5&&(data[_0x3ed2b5]=_0x3ad759);});function _0x28a57b(_0x255e09,_0xd41ecf){return _0x6f43(_0x255e09-0x366,_0xd41ecf);}return data;}const withEventListeners=typeof addEventListener===_0x2d7030(0x671,0x5cb)&&typeof removeEventListener===_0x2d7030(0x4ce,0x5cb),OFFLINE_EVENT_LISTENERS=[];withEventListeners&&addEventListener('offline',()=>{OFFLINE_EVENT_LISTENERS['forEach'](listener=>listener());},![]);class SocketWithoutUpgrade extends Emitter{constructor(_0x273f85,_0x24c5cc){super(),this[_0xefc411(0xe9,0x154)]=defaultBinaryType,this[_0xefc411(0x226,0x196)]=[],this[_0xefc411(0x249,0x332)]=0x0,this[_0xefc411(0x3f9,0x327)]=-0x1,this[_0xefc411(0x1f7,0x127)]=-0x1,this['_maxPayload']=-0x1,this[_0xefc411(0x281,0x1a4)]=Infinity;_0x273f85&&_0xefc411(0x21b,0x2c7)===typeof _0x273f85&&(_0x24c5cc=_0x273f85,_0x273f85=null);if(_0x273f85){const parsedUri=parse(_0x273f85);_0x24c5cc[_0xefc411(0x191,0x163)]=parsedUri['host'],_0x24c5cc['secure']=parsedUri[_0xefc411(0x372,0x335)]==='https'||parsedUri[_0xefc411(0x29e,0x335)]===_0xefc411(0x2af,0x276),_0x24c5cc[_0xefc411(0x2bc,0x316)]=parsedUri['port'];if(parsedUri[_0xefc411(0x213,0x13e)])_0x24c5cc[_0xefc411(0x1dc,0x13e)]=parsedUri['query'];}else _0x24c5cc[_0xefc411(0x1b7,0x2d0)]&&(_0x24c5cc['hostname']=parse(_0x24c5cc['host'])['host']);installTimerFunctions(this,_0x24c5cc),this['secure']=null!=_0x24c5cc['secure']?_0x24c5cc[_0xefc411(0x13e,0x114)]:typeof location!=='undefined'&&'https:'===location[_0xefc411(0x331,0x335)];function _0xefc411(_0x5d5dd9,_0x74a6){return _0x6f43(_0x74a6- -0x9e,_0x5d5dd9);}_0x24c5cc[_0xefc411(0x14f,0x163)]&&!_0x24c5cc[_0xefc411(0x3ec,0x316)]&&(_0x24c5cc[_0xefc411(0x2ef,0x316)]=this[_0xefc411(0x17b,0x114)]?_0xefc411(0x124,0x207):'80'),this[_0xefc411(0x204,0x163)]=_0x24c5cc['hostname']||(typeof location!==_0xefc411(0x1f6,0x198)?location[_0xefc411(0x128,0x163)]:'localhost'),this['port']=_0x24c5cc[_0xefc411(0x323,0x316)]||(typeof location!=='undefined'&&location['port']?location[_0xefc411(0x267,0x316)]:this['secure']?_0xefc411(0x102,0x207):'80'),this['transports']=[],this[_0xefc411(0x112,0x16c)]={},_0x24c5cc[_0xefc411(0x2ae,0x1ba)][_0xefc411(0x35a,0x2f2)](_0x319d9c=>{const _0x5040fc=_0x319d9c['prototype'][_0x19fdfa(0x4d3,0x45d)];function _0x19fdfa(_0x1b9938,_0x5d82b2){return _0x6f43(_0x1b9938-0x169,_0x5d82b2);}this[_0x19fdfa(0x3c1,0x4a6)][_0x19fdfa(0x368,0x2ee)](_0x5040fc),this[_0x19fdfa(0x373,0x3a9)][_0x5040fc]=_0x319d9c;}),this['opts']=Object[_0xefc411(0x195,0x1a0)]({'path':'/engine.io','agent':![],'withCredentials':![],'upgrade':!![],'timestampParam':'t','rememberUpgrade':![],'addTrailingSlash':!![],'rejectUnauthorized':!![],'perMessageDeflate':{'threshold':0x400},'transportOptions':{},'closeOnBeforeunload':![]},_0x24c5cc),this[_0xefc411(0x101,0x19a)][_0xefc411(0x190,0x21a)]=this[_0xefc411(0x19c,0x19a)][_0xefc411(0x217,0x21a)][_0xefc411(0x1f0,0x181)](/\/$/,'')+(this['opts'][_0xefc411(0x3f1,0x2fd)]?'/':''),typeof this[_0xefc411(0x240,0x19a)]['query']==='string'&&(this[_0xefc411(0x25c,0x19a)][_0xefc411(0x225,0x13e)]=decode(this['opts']['query'])),withEventListeners&&(this[_0xefc411(0x1ae,0x19a)][_0xefc411(0x251,0x182)]&&(this[_0xefc411(0x1da,0x15d)]=()=>{function _0x4d9b03(_0x1c07c3,_0x56902a){return _0x6f43(_0x1c07c3-0x209,_0x56902a);}this['transport']&&(this[_0x4d9b03(0x56a,0x554)][_0x4d9b03(0x412,0x522)](),this[_0x4d9b03(0x56a,0x658)][_0x4d9b03(0x45f,0x46c)]());},addEventListener(_0xefc411(0x1da,0x26c),this[_0xefc411(0x8a,0x15d)],![])),this[_0xefc411(0x271,0x163)]!==_0xefc411(0x239,0x23b)&&(this['_offlineEventListener']=()=>{function _0x8049b8(_0x369654,_0x393c75){return _0x6f43(_0x369654-0x23b,_0x393c75);}this[_0x8049b8(0x3ef,0x4b1)]('transport\x20close',{'description':_0x8049b8(0x3f0,0x315)});},OFFLINE_EVENT_LISTENERS['push'](this['_offlineEventListener']))),this['opts'][_0xefc411(0x1df,0x2d4)]&&(this[_0xefc411(0x9d,0x165)]=createCookieJar()),this[_0xefc411(0x1fe,0x2d3)]();}[_0x2d7030(0x5a6,0x553)](_0x568674){const _0x3bd43c=Object['assign']({},this['opts'][_0x53a28c(0x416,0x533)]);_0x3bd43c[_0x53a28c(0x58c,0x689)]=protocol$1,_0x3bd43c[_0x53a28c(0x59b,0x685)]=_0x568674;if(this['id'])_0x3bd43c[_0x53a28c(0x4bc,0x4c2)]=this['id'];function _0x53a28c(_0x549022,_0x5878b3){return _0x6f43(_0x549022-0x23a,_0x5878b3);}const _0xf41cad=Object['assign']({},this['opts'],{'query':_0x3bd43c,'socket':this,'hostname':this[_0x53a28c(0x43b,0x355)],'secure':this[_0x53a28c(0x3ec,0x3bc)],'port':this['port']},this['opts'][_0x53a28c(0x4bf,0x4b3)][_0x568674]);return new this[(_0x53a28c(0x444,0x451))][_0x568674](_0xf41cad);}[_0x2d7030(0x563,0x5d3)](){if(this['transports'][_0x4e05eb(0x4be,0x53b)]===0x0){this[_0x4e05eb(0x63b,0x572)](()=>{function _0x33dbb1(_0x4bf96d,_0x3896ee){return _0x6f43(_0x4bf96d-0x11,_0x3896ee);}this[_0x33dbb1(0x28a,0x27a)](_0x33dbb1(0x2c2,0x3ae),'No\x20transports\x20available');},0x0);return;}const _0x2bc3d7=this[_0x4e05eb(0x5bb,0x52e)][_0x4e05eb(0x625,0x5a2)]&&SocketWithoutUpgrade[_0x4e05eb(0x3fe,0x506)]&&this['transports']['indexOf'](_0x4e05eb(0x52a,0x5dc))!==-0x1?_0x4e05eb(0x6b6,0x5dc):this['transports'][0x0];function _0x4e05eb(_0x17753d,_0x2c1d52){return _0x6f43(_0x2c1d52-0x2f6,_0x17753d);}this['readyState']=_0x4e05eb(0x5e4,0x5eb);const _0x41ce6b=this['createTransport'](_0x2bc3d7);_0x41ce6b['open'](),this[_0x4e05eb(0x726,0x68a)](_0x41ce6b);}['setTransport'](_0x31c78f){this[_0x50e1ce(0x50d,0x5a6)]&&this['transport']['removeAllListeners']();this[_0x50e1ce(0x50d,0x48c)]=_0x31c78f;function _0x50e1ce(_0x2d9b7f,_0x146506){return _0x6f43(_0x2d9b7f-0x1ac,_0x146506);}_0x31c78f['on'](_0x50e1ce(0x481,0x398),this[_0x50e1ce(0x559,0x457)]['bind'](this))['on']('packet',this['_onPacket']['bind'](this))['on'](_0x50e1ce(0x45d,0x3c6),this[_0x50e1ce(0x55e,0x5b9)]['bind'](this))['on']('close',_0x50be95=>this[_0x50e1ce(0x360,0x394)](_0x50e1ce(0x3d4,0x425),_0x50be95));}['onOpen'](){function _0x57591d(_0xda79bf,_0x38a3fd){return _0x6f43(_0x38a3fd-0x20e,_0xda79bf);}this[_0x57591d(0x2f9,0x3c7)]=_0x57591d(0x5ba,0x4d5),SocketWithoutUpgrade[_0x57591d(0x4fb,0x41e)]=_0x57591d(0x521,0x4f4)===this['transport']['name'],this[_0x57591d(0x52c,0x487)]('open'),this[_0x57591d(0x3f4,0x3c4)]();}[_0x2d7030(0x503,0x596)](_0x460cd6){function _0x317892(_0x39689f,_0x4572f8){return _0x6f43(_0x4572f8- -0x1ce,_0x39689f);}if('opening'===this['readyState']||_0x317892(0x5e,0xf9)===this[_0x317892(0x4a,-0x15)]||'closing'===this[_0x317892(-0x11d,-0x15)]){this['emitReserved']('packet',_0x460cd6),this[_0x317892(0x130,0xab)]('heartbeat');switch(_0x460cd6[_0x317892(0x1bf,0x209)]){case _0x317892(0x1da,0xf9):this['onHandshake'](JSON[_0x317892(-0x8f,0x5f)](_0x460cd6['data']));break;case'ping':this['_sendPacket'](_0x317892(0x86,0x4d)),this[_0x317892(0xa4,0xab)](_0x317892(0x1fa,0x210)),this['emitReserved']('pong'),this['_resetPingTimeout']();break;case'error':const _0x180be0=new Error('server\x20error');_0x180be0[_0x317892(-0x22,0xc)]=_0x460cd6['data'],this['_onError'](_0x180be0);break;case'message':this[_0x317892(-0x2e,0xab)](_0x317892(0x22d,0x215),_0x460cd6[_0x317892(0x2e6,0x215)]),this['emitReserved'](_0x317892(0xcb,0x14d),_0x460cd6['data']);break;}}}[_0x2d7030(0x537,0x4b5)](data){function _0x157b6c(_0x17afe0,_0x256b55){return _0x6f43(_0x17afe0- -0x28f,_0x256b55);}this[_0x157b6c(-0x16,0x5f)](_0x157b6c(0x49,0xe3),data),this['id']=data['sid'],this['transport'][_0x157b6c(-0xb3,-0x129)][_0x157b6c(-0xd,-0x62)]=data['sid'],this[_0x157b6c(0x136,0x203)]=data['pingInterval'],this[_0x157b6c(-0xca,-0x1ea)]=data['pingTimeout'],this[_0x157b6c(-0x93,0x5c)]=data['maxPayload'],this['onOpen']();if(_0x157b6c(0x13b,0x118)===this['readyState'])return;this[_0x157b6c(-0x5e,-0x33)]();}['_resetPingTimeout'](){this[_0x1a1ca1(0x5cd,0x5a6)](this['_pingTimeoutTimer']);const _0x77d6e2=this['_pingInterval']+this[_0x1a1ca1(0x595,0x4a0)];this[_0x1a1ca1(0x5f7,0x51d)]=Date['now']()+_0x77d6e2;function _0x1a1ca1(_0x46399c,_0x320db3){return _0x6f43(_0x320db3-0x2db,_0x46399c);}this[_0x1a1ca1(0x52f,0x5c6)]=this['setTimeoutFn'](()=>{function _0x250df6(_0x59f25e,_0x2d1930){return _0x6f43(_0x59f25e-0x89,_0x2d1930);}this[_0x250df6(0x23d,0x2bf)]('ping\x20timeout');},_0x77d6e2),this['opts']['autoUnref']&&this['_pingTimeoutTimer'][_0x1a1ca1(0x623,0x679)]();}[_0x2d7030(0x5fe,0x60f)](){function _0x4da6d3(_0x4ddb99,_0x259f2a){return _0x6f43(_0x259f2a- -0x348,_0x4ddb99);}this[_0x4da6d3(0xc,-0x114)]['splice'](0x0,this['_prevBufferLen']),this[_0x4da6d3(-0x15,0x88)]=0x0,0x0===this[_0x4da6d3(-0x199,-0x114)]['length']?this[_0x4da6d3(-0x5f,-0xcf)](_0x4da6d3(0x9d,-0x73)):this['flush']();}[_0x2d7030(0x3ce,0x418)](){function _0x53637e(_0x1f20ac,_0x226315){return _0x6f43(_0x1f20ac-0x167,_0x226315);}if('closed'!==this[_0x53637e(0x320,0x282)]&&this[_0x53637e(0x4c8,0x58a)]['writable']&&!this['upgrading']&&this['writeBuffer'][_0x53637e(0x3ac,0x3ce)]){const _0x42543d=this['_getWritablePackets']();this['transport'][_0x53637e(0x388,0x3c9)](_0x42543d),this['_prevBufferLen']=_0x42543d['length'],this['emitReserved']('flush');}}[_0x2d7030(0x454,0x4aa)](){const _0x5353db=this[_0x5aa93f(0x347,0x352)]&&this[_0x5aa93f(0x4ac,0x442)][_0x5aa93f(0x4b5,0x5c2)]===_0x5aa93f(0x41d,0x322)&&this[_0x5aa93f(0x37f,0x478)]['length']>0x1;if(!_0x5353db)return this[_0x5aa93f(0x37f,0x468)];let _0x30422b=0x1;function _0x5aa93f(_0x1b1880,_0x9f8182){return _0x6f43(_0x1b1880-0x14b,_0x9f8182);}for(let _0x1ea591=0x0;_0x1ea591<this['writeBuffer'][_0x5aa93f(0x390,0x4a4)];_0x1ea591++){const data=this[_0x5aa93f(0x37f,0x445)][_0x1ea591][_0x5aa93f(0x52e,0x5ba)];data&&(_0x30422b+=byteLength(data));if(_0x1ea591>0x0&&_0x30422b>this[_0x5aa93f(0x347,0x421)])return this['writeBuffer'][_0x5aa93f(0x395,0x2a4)](0x0,_0x1ea591);_0x30422b+=0x2;}return this['writeBuffer'];}[_0x2d7030(0x3ee,0x451)](){if(!this['_pingTimeoutTime'])return!![];const _0x495a73=Date[_0x4a1df3(0x1d4,0xeb)]()>this['_pingTimeoutTime'];_0x495a73&&(this['_pingTimeoutTime']=0x0,nextTick(()=>{this['_onClose']('ping\x20timeout');},this[_0x4a1df3(0x8c,0xcc)]));function _0x4a1df3(_0x17d316,_0x2b97a2){return _0x6f43(_0x17d316- -0x1f0,_0x2b97a2);}return _0x495a73;}[_0x2d7030(0x527,0x4fc)](_0x4b14b1,_0x191929,_0x33c078){function _0x2983f1(_0x1e5475,_0x45fba3){return _0x6f43(_0x45fba3- -0xf3,_0x1e5475);}return this['_sendPacket'](_0x2983f1(0x291,0x228),_0x4b14b1,_0x191929,_0x33c078),this;}[_0x2d7030(0x487,0x483)](_0x44a78d,_0x3b6979,_0x7a6f05){function _0x112a5d(_0x2fc424,_0x3a6ab7){return _0x6f43(_0x2fc424- -0x230,_0x3a6ab7);}return this[_0x112a5d(-0x72,-0x3c)]('message',_0x44a78d,_0x3b6979,_0x7a6f05),this;}[_0x2d7030(0x488,0x420)](_0x3c6af4,data,_0x382877,_0x5b552f){'function'===typeof data&&(_0x5b552f=data,data=undefined);_0x539e27(0x650,0x5c3)===typeof _0x382877&&(_0x5b552f=_0x382877,_0x382877=null);if(_0x539e27(0x55d,0x61c)===this['readyState']||_0x539e27(0x723,0x624)===this[_0x539e27(0x43c,0x413)])return;_0x382877=_0x382877||{},_0x382877['compress']=![]!==_0x382877[_0x539e27(0x44a,0x4d5)];function _0x539e27(_0x481ff2,_0x3cb487){return _0x6f43(_0x3cb487-0x25a,_0x481ff2);}const _0x5e4e7e={'type':_0x3c6af4,'data':data,'options':_0x382877};this['emitReserved'](_0x539e27(0x531,0x5b8),_0x5e4e7e),this[_0x539e27(0x59f,0x48e)]['push'](_0x5e4e7e);if(_0x5b552f)this[_0x539e27(0x5ec,0x595)]('flush',_0x5b552f);this['flush']();}['close'](){const _0x351b87=()=>{function _0x578e49(_0x245dbe,_0x23bb67){return _0x6f43(_0x23bb67- -0x16d,_0x245dbe);}this[_0x578e49(0xe5,0x47)](_0x578e49(0x27e,0x19e)),this['transport'][_0x578e49(0x179,0xe9)]();};function _0x1f5313(_0x2478e5,_0x1ff7c4){return _0x6f43(_0x2478e5- -0x1e4,_0x1ff7c4);}const _0x3e3aec=()=>{this['off'](_0x1a72a5(0x322,0x2a6),_0x3e3aec),this['off']('upgradeError',_0x3e3aec);function _0x1a72a5(_0x461e1a,_0x5e1e7f){return _0x6f43(_0x5e1e7f-0x13,_0x461e1a);}_0x351b87();},_0x5c3db9=()=>{this[_0x47a760(0x58a,0x510)]('upgrade',_0x3e3aec);function _0x47a760(_0xe94225,_0x228e84){return _0x6f43(_0xe94225-0x24f,_0x228e84);}this[_0x47a760(0x58a,0x60f)](_0x47a760(0x5ae,0x4d8),_0x3e3aec);};if(_0x1f5313(0x111,0x1e5)===this['readyState']||'open'===this[_0x1f5313(-0x2b,-0x24)]){this['readyState']='closing';if(this[_0x1f5313(0x50,0x3e)]['length'])this['once'](_0x1f5313(0xf1,-0xa),()=>{function _0x2dce8a(_0x1351ad,_0xd5f103){return _0x6f43(_0x1351ad- -0x36,_0xd5f103);}this[_0x2dce8a(0x2fc,0x305)]?_0x5c3db9():_0x351b87();});else this[_0x1f5313(0x14e,0x23e)]?_0x5c3db9():_0x351b87();}return this;}['_onError'](_0x73e87a){function _0x4af8cf(_0x3e747e,_0x284472){return _0x6f43(_0x284472- -0x3,_0x3e747e);}SocketWithoutUpgrade[_0x4af8cf(0x276,0x20d)]=![];if(this[_0x4af8cf(0x205,0x235)]['tryAllTransports']&&this[_0x4af8cf(0x192,0x255)]['length']>0x1&&this['readyState']===_0x4af8cf(0x288,0x2f2))return this['transports'][_0x4af8cf(0x29d,0x1ad)](),this['_open']();this[_0x4af8cf(0x317,0x276)](_0x4af8cf(0x22f,0x2ae),_0x73e87a),this[_0x4af8cf(0x214,0x1b1)](_0x4af8cf(0x175,0x223),_0x73e87a);}[_0x2d7030(0x516,0x416)](_0x26cf9a,_0x186e6c){function _0x144868(_0x526a98,_0x16aeca){return _0x6f43(_0x16aeca-0x355,_0x526a98);}if(_0x144868(0x627,0x64a)===this[_0x144868(0x46d,0x50e)]||_0x144868(0x667,0x61c)===this['readyState']||'closing'===this[_0x144868(0x4a1,0x50e)]){this[_0x144868(0x61c,0x620)](this[_0x144868(0x70b,0x640)]),this[_0x144868(0x5fd,0x6b6)]['removeAllListeners'](_0x144868(0x4af,0x5ab)),this['transport'][_0x144868(0x526,0x5ab)](),this['transport'][_0x144868(0x585,0x55e)]();if(withEventListeners){this[_0x144868(0x4b8,0x550)]&&removeEventListener(_0x144868(0x739,0x65f),this['_beforeunloadEventListener'],![]);if(this['_offlineEventListener']){const _0x3b856a=OFFLINE_EVENT_LISTENERS[_0x144868(0x62a,0x735)](this['_offlineEventListener']);_0x3b856a!==-0x1&&OFFLINE_EVENT_LISTENERS['splice'](_0x3b856a,0x1);}}this['readyState']='closed',this['id']=null,this[_0x144868(0x5c0,0x5ce)](_0x144868(0x5b1,0x5ab),_0x26cf9a,_0x186e6c),this['writeBuffer']=[],this['_prevBufferLen']=0x0;}}}SocketWithoutUpgrade[_0x2d7030(0x511,0x635)]=protocol$1;class SocketWithUpgrade extends SocketWithoutUpgrade{constructor(){super(...arguments),this['_upgrades']=[];}['onOpen'](){super[_0x3f6699(-0xd8,-0x10)]();function _0x3f6699(_0x111682,_0x375fe6){return _0x6f43(_0x111682- -0x2c3,_0x375fe6);}if('open'===this['readyState']&&this[_0x3f6699(-0x8b,-0x17e)]['upgrade'])for(let _0x1b1c40=0x0;_0x1b1c40<this[_0x3f6699(0xce,0x14c)]['length'];_0x1b1c40++){this['_probe'](this['_upgrades'][_0x1b1c40]);}}[_0x2d7030(0x67d,0x5df)](_0x50c726){let _0x4d4e6b=this['createTransport'](_0x50c726),_0x373be6=![];SocketWithoutUpgrade[_0x4dbfb0(0x2e9,0x29b)]=![];const _0x570c5c=()=>{if(_0x373be6)return;_0x4d4e6b['send']([{'type':_0xc29ffd(0x584,0x5a6),'data':'probe'}]);function _0xc29ffd(_0x3d3461,_0x2a5a79){return _0x6f43(_0x2a5a79-0x1c8,_0x3d3461);}_0x4d4e6b[_0xc29ffd(0x4be,0x503)](_0xc29ffd(0x54e,0x4da),_0x64ea58=>{function _0x155635(_0xc019ce,_0x2b6d99){return _0x6f43(_0x2b6d99- -0x125,_0xc019ce);}if(_0x373be6)return;if('pong'===_0x64ea58['type']&&_0x155635(0x25a,0x24e)===_0x64ea58[_0x155635(0x1e6,0x2be)]){this[_0x155635(0x198,0x20d)]=!![],this['emitReserved'](_0x155635(0x2f2,0x20d),_0x4d4e6b);if(!_0x4d4e6b)return;SocketWithoutUpgrade[_0x155635(0x1ed,0xeb)]='websocket'===_0x4d4e6b[_0x155635(0x303,0x245)],this['transport']['pause'](()=>{if(_0x373be6)return;if(_0x4e2fd0(0x41e,0x352)===this[_0x4e2fd0(0x259,0x141)])return;_0x2cb7e9(),this[_0x4e2fd0(0x274,0x31c)](_0x4d4e6b),_0x4d4e6b['send']([{'type':_0x4e2fd0(0x272,0x21b)}]),this['emitReserved']('upgrade',_0x4d4e6b),_0x4d4e6b=null;function _0x4e2fd0(_0x109eeb,_0x5ab584){return _0x6f43(_0x5ab584- -0x78,_0x109eeb);}this['upgrading']=![],this['flush']();});}else{const _0xef8cc0=new Error('probe\x20error');_0xef8cc0[_0x155635(0x128,0x23c)]=_0x4d4e6b['name'],this['emitReserved']('upgradeError',_0xef8cc0);}});};function _0x5bbc7f(){if(_0x373be6)return;_0x373be6=!![],_0x2cb7e9(),_0x4d4e6b['close'](),_0x4d4e6b=null;}const _0x448194=_0xfbcc90=>{const _0x2f1bac=new Error('probe\x20error:\x20'+_0xfbcc90);function _0x44c5de(_0x10ad5c,_0x320285){return _0x6f43(_0x10ad5c-0x34b,_0x320285);}_0x2f1bac['transport']=_0x4d4e6b[_0x44c5de(0x6b5,0x5e2)],_0x5bbc7f(),this[_0x44c5de(0x5c4,0x5ad)](_0x44c5de(0x6aa,0x602),_0x2f1bac);};function _0x31f52b(){_0x448194('transport\x20closed');}function _0x3d35e9(){_0x448194('socket\x20closed');}function _0x3d3f45(_0xf9d3c1){function _0x4acad4(_0x2479c4,_0xf0e594){return _0x6f43(_0x2479c4- -0x2c5,_0xf0e594);}_0x4d4e6b&&_0xf9d3c1[_0x4acad4(0xa5,0x80)]!==_0x4d4e6b[_0x4acad4(0xa5,0x152)]&&_0x5bbc7f();}const _0x2cb7e9=()=>{_0x4d4e6b['removeListener'](_0x32509b(0x1a9,0x1e9),_0x570c5c);function _0x32509b(_0x24ced1,_0x37b71b){return _0x6f43(_0x24ced1- -0x11e,_0x37b71b);}_0x4d4e6b['removeListener']('error',_0x448194),_0x4d4e6b['removeListener'](_0x32509b(0x138,0x9a),_0x31f52b),this[_0x32509b(0x134,0x24f)]('close',_0x3d35e9),this['off']('upgrading',_0x3d3f45);};_0x4d4e6b['once']('open',_0x570c5c),_0x4d4e6b[_0x4dbfb0(0x414,0x3b3)]('error',_0x448194),_0x4d4e6b['once']('close',_0x31f52b),this[_0x4dbfb0(0x414,0x451)]('close',_0x3d35e9);function _0x4dbfb0(_0x58ae3c,_0x206e71){return _0x6f43(_0x58ae3c-0xd9,_0x206e71);}this[_0x4dbfb0(0x414,0x463)]('upgrading',_0x3d3f45),this[_0x4dbfb0(0x46a,0x4ab)][_0x4dbfb0(0x4b9,0x497)](_0x4dbfb0(0x419,0x52d))!==-0x1&&_0x50c726!=='webtransport'?this['setTimeoutFn'](()=>{!_0x373be6&&_0x4d4e6b['open']();},0xc8):_0x4d4e6b['open']();}[_0x2d7030(0x3c0,0x4b5)](data){this[_0x5ac2ce(0x266,0x16d)]=this['_filterUpgrades'](data['upgrades']);function _0x5ac2ce(_0xc7d75c,_0x4edb4b){return _0x6f43(_0x4edb4b- -0x224,_0xc7d75c);}super[_0x5ac2ce(0x2a,0x2f)](data);}['_filterUpgrades'](_0x12e269){const filteredUpgrades=[];for(let _0x5c909f=0x0;_0x5c909f<_0x12e269['length'];_0x5c909f++){if(~this['transports']['indexOf'](_0x12e269[_0x5c909f]))filteredUpgrades['push'](_0x12e269[_0x5c909f]);}return filteredUpgrades;}}let Socket$1=class Socket extends SocketWithUpgrade{constructor(_0xd82df1,_0x3c42d4={}){function _0x528ee9(_0xeeee56,_0x50e4c5){return _0x6f43(_0x50e4c5-0x38f,_0xeeee56);}const _0x5de45b=typeof _0xd82df1===_0x528ee9(0x718,0x6f4)?_0xd82df1:_0x3c42d4;(!_0x5de45b[_0x528ee9(0x58d,0x5e7)]||_0x5de45b[_0x528ee9(0x560,0x5e7)]&&typeof _0x5de45b[_0x528ee9(0x6bb,0x5e7)][0x0]==='string')&&(_0x5de45b[_0x528ee9(0x64b,0x5e7)]=(_0x5de45b['transports']||['polling','websocket','webtransport'])['map'](_0xe2bd9e=>transports[_0xe2bd9e])['filter'](_0x47faab=>!!_0x47faab)),super(_0xd82df1,_0x5de45b);}};function url(_0x4793e0,_0x1e88bb='',_0x302e3c){let _0x4f504e=_0x4793e0;_0x302e3c=_0x302e3c||typeof location!=='undefined'&&location;if(null==_0x4793e0)_0x4793e0=_0x302e3c[_0x2aa99d(0x7f9,0x7ae)]+'//'+_0x302e3c[_0x2aa99d(0x7c3,0x749)];typeof _0x4793e0===_0x2aa99d(0x696,0x6bc)&&('/'===_0x4793e0['charAt'](0x0)&&('/'===_0x4793e0[_0x2aa99d(0x73f,0x7b8)](0x1)?_0x4793e0=_0x302e3c['protocol']+_0x4793e0:_0x4793e0=_0x302e3c[_0x2aa99d(0x810,0x749)]+_0x4793e0),!/^(https?|wss?):\/\//[_0x2aa99d(0x698,0x5e1)](_0x4793e0)&&(_0x2aa99d(0x6f5,0x611)!==typeof _0x302e3c?_0x4793e0=_0x302e3c['protocol']+'//'+_0x4793e0:_0x4793e0=_0x2aa99d(0x6aa,0x712)+_0x4793e0),_0x4f504e=parse(_0x4793e0));if(!_0x4f504e[_0x2aa99d(0x84b,0x78f)]){if(/^(http|ws)$/[_0x2aa99d(0x6a7,0x5e1)](_0x4f504e[_0x2aa99d(0x791,0x7ae)]))_0x4f504e['port']='80';else/^(http|ws)s$/[_0x2aa99d(0x57d,0x5e1)](_0x4f504e['protocol'])&&(_0x4f504e[_0x2aa99d(0x8a5,0x78f)]='443');}_0x4f504e['path']=_0x4f504e[_0x2aa99d(0x59c,0x693)]||'/';function _0x2aa99d(_0x2d07a6,_0x4355e5){return _0x6f43(_0x4355e5-0x3db,_0x2d07a6);}const _0x48c2b6=_0x4f504e['host'][_0x2aa99d(0x85a,0x7bb)](':')!==-0x1,_0x280a31=_0x48c2b6?'['+_0x4f504e[_0x2aa99d(0x6f1,0x749)]+']':_0x4f504e[_0x2aa99d(0x731,0x749)];return _0x4f504e['id']=_0x4f504e[_0x2aa99d(0x878,0x7ae)]+_0x2aa99d(0x6c8,0x735)+_0x280a31+':'+_0x4f504e[_0x2aa99d(0x893,0x78f)]+_0x1e88bb,_0x4f504e['href']=_0x4f504e['protocol']+_0x2aa99d(0x779,0x735)+_0x280a31+(_0x302e3c&&_0x302e3c[_0x2aa99d(0x6af,0x78f)]===_0x4f504e[_0x2aa99d(0x733,0x78f)]?'':':'+_0x4f504e[_0x2aa99d(0x772,0x78f)]),_0x4f504e;}const withNativeArrayBuffer=typeof ArrayBuffer==='function',isView=_0x153bb5=>{function _0x3642f7(_0x1e5045,_0x3b811d){return _0x6f43(_0x3b811d- -0x2e8,_0x1e5045);}return typeof ArrayBuffer['isView']==='function'?ArrayBuffer['isView'](_0x153bb5):_0x153bb5[_0x3642f7(-0x36,-0xf1)]instanceof ArrayBuffer;},toString=Object[_0x2d7030(0x5cc,0x567)][_0x2d7030(0x680,0x5b7)],withNativeBlob=typeof Blob===_0x2d7030(0x656,0x5cb)||typeof Blob!==_0x2d7030(0x534,0x498)&&toString['call'](Blob)==='[object\x20BlobConstructor]',withNativeFile=typeof File===_0x2d7030(0x5c0,0x5cb)||typeof File!==_0x2d7030(0x47d,0x498)&&toString[_0x2d7030(0x48d,0x500)](File)==='[object\x20FileConstructor]';function _0x10f8(){const _0xd8820f=['Ahr0Chm6','Axb2nNvYAq','Aw1WB3j0twfW','zgvJB2rLza','Dg9vChbLCKnHC2u','AgfZt3DUuhjVCgvYDhK','l2f1DgGVDJeVCMvZzxqTCgfZC3DVCMq','rMfPBgvKihrVigXPC3qGyNvJA2v0CW','zgvWBg95','CMvTB3zLq3vZDg9Trgf0ywjHC2u','DxbNCMfKAw5N','x2DLDfnVy2TLDa','x29UugfJA2v0','DxbKyxrLrgf0yq','DxbKyxrLrw52','Ahr0Chm6lY8','B25KyxrH','y29UBMvJDf9LCNjVCG','zgf0ywjHC2u','B25Jzq','twLJCM9ZB2z0lLHnteHuvfa','ywnJzxnZx3rVA2vU','zMXHz3m','DMvYAwz5','D2vIDhjHBNnWB3j0','x2fUEu91DgDVAw5NtgLZDgvUzxjZ','z2v0q29UBMvJDgLVBLn0yxrL','p29WzxjHDgLVBJ11ChnLCNq','DxbKyxrLt3b0Aw9UCW','Dhj5q291BNq','rMfPBgvKihrVigDLDcbMDw5JDgLVBIbSB2DZ','y3jLyxrLvxjP','BNvT','CMvZzxq','C3bSAxq','AwXSzwDHBcbHDhrHy2HTzw50CW','C2v0twLU','DgLTzxn0yw1WuMvXDwvZDhm','BMf2AwDHDg9Y','x3f1zxvL','CMvJB25Uzwn0Aw9U','x3jLy29UBMvJDgLUzW','ruLp','ohrMAKT0tG','Dw5ZDwjZy3jPyMu','Dg9tDhjPBMC','Ahr0CenSAwvUDa','CMvJB25Uzwn0','DxnLCG','BM9VCa','oI8V','yxv0Ag9YAxr5','q3vZDg9Trgf0ywjHC2vnyw5Hz2vY','x21LDgHVza','CgfJA2v0q3jLyxrL','DxbNCMfKzuvYCM9Y','CMvHza','DhjHBNnWB3j0','B25WAw5N','x3HOCG','x3bVBgW','B2jQzwn0','Dg9mB3DLCKnHC2u','BxvSDgLWyxj0l2zVCM0Tzgf0yq','CMvJB25Uzwn0x2zHAwXLza','zNvUy3rPB24','BMfTzq','AxnbCNjHEq','C3rHy2S','B25bDxrOu3rHDgvdAgfUz2u','Ag9ZDa','q0Xpu0ve','l2zPBgvZ','x29Wzw4','D2L0AenYzwrLBNrPywXZ','ChjVyMu','x2nYzwf0zq','zgLZy29UBMvJDa','DgLTzxn0yw1WugfYyw0','Bwf4','Ec10B3rHBc1JB3vUDa','x3nLDfn0yxrL','DgLTzw91Da','C2TPCfjLy29UBMvJDa','x3bVCNq','x3bYB2jL','zg93BMXVywq','l3n0B3jHz2uVyNvJA2v0CY8','D2vIDhjHBNnWB3j0igvYCM9Y','AM9PBMLUzW','zw5JB2rLCG','z2v0u2vZC2LVBG','x3jLy29UBMvJDgLVBKrLBgf5','vw5ZDxbWB3j0zwqGsfruucbTzxrOB2q6ia','l3nPz24','Aw52B2TL','zgv0zwn0q3vZDg9Trgf0ywjHC2u','y3jLyxrLu29JA2v0','rgvJB2rLCG','AxnvC2LUz0n1C3rVBurHDgfIyxnL','CgvUzgLUzW','rNvUy3rPB24GAw52B2nHDgLVBIbMywLSzwq','y29VA2LLsMfY','DxjP','zM9YrwfJAa','x3vWz3jHzgvZ','Bwf0y2G','yMfZzvvsta','C2v0vhjHBNnWB3j0','C2vSzwn0','tw96v2vIu29JA2v0','DxbKyxrLrMLSzu1LDgfKyxrH','CgfYC2vY','x29WDhm','B3jPz2LU','ywrKvhjHAwXPBMDtBgfZAa','AML0DgvY','zw52','Dw5Yzwy','B25cCM9HzgnHC3q','zMLSzq','B25eyxrH','y3jLyxrL','CMvTB3zLtgLZDgvUzxi','C29JA2v0','CMvTB3zLq2HHBM5LBa','rvzftLq','B3bLCMf0Aw9UigHHCYb0Aw1LzcbVDxq','y2fWDhvYzvn0ywnRvhjHy2u','C291CMnL','C3rYAw5NAwz5','A2v5','CMvJB25Uzwn0x2vYCM9Y','x29UrhjHAw4','AwXPA2u','AxnezwXLDgu','p3vWC2vYDd10CNvL','DgHLBG','x29UrxjYB3i','x2PVAw4','Cg9YDa','zw50CNLWB2LUDa','yM9KEq','Cg9ZDgDYzxnFy2HHBMDLCW','qKLoqvjzx0fdsW','Cg9ZDgDYzxniB3n0','y2XPzw50','B2zMC2v0','C2v0v29YA3nWywnLswq','nduZmJmZmgLeCNfpBq','Aw8GC2vYDMvYigrPC2nVBM5Ly3q','Dg9ku09o','z2v0qNvJA2v0','x3vYAq','y2XVC2LUzW','mteXndy3nNfoC1z5wa','BM93','x3bPBMDjBNrLCNzHBa','x2rYywLUuxvLDwu','x3jLy29UBMvJDgLVBG','DxbZzxj0','D2fYBG','y2XVC2vK','zw1PDej1zMzLCMvK','yxjNCW','B25KAxnJB25Uzwn0','BgLZDej1y2TLDhm','rMfPBgvKihrVignVBM5Ly3qGywz0zxiG','x3bYzxzcDwzMzxjmzw4','x3rYAwDNzxi','mtK2otj3zvPnAgW','ChjVDg9JB2W','B3bLCMf0B3i','y3vZDg9Trgf0ywjHC2vnyw5Hz2vY','CMvKDwnL','DhLWzq','reLtq09otKvdva','C2v0twf4','B25JB25Uzwn0','x3bVBgXPBMC','ChjVDg9JB2XwzxjZAw9U','y2HHCKf0','CgLUzW','y2HHBM5LBhm','Aw5KzxHpzG','BwfRzvjLzG','yNvJA2v0swq','zgf0yq','l2zPBgvZlW','yxnJzw5KAw5N','yxv0B1vUCMvM','zMXVB3i','C2vZC2LVBG','rMfPBgvKihrVignVChKGzMLSzq','x2rLC3rYB3K','zw5XDwv1zq','zgLZy29UBMvJDgvK','zg9dBg9Zzq','nLjhvxjPqW','ChjLC2vUy2u','z2v0vwLUDde2','y29SDw1U','yxv0B0rLDgvJDen1C3rVBurHDgfIyxnL','x3bSywnLAg9SzgvY','z2v0q3vZDg9Trgf0ywjHC2vtDgf0Dxm','yxbWzw5K','zg9xCML0zq','zNvUy3rPB25Z','ywjVCNq','CMvHBhrPBwu','C2HPzNq','y2HHCKnVzgvbDa','C2vJDxjL','B25dBg9Zzq','x29Uq2XVC2u','BMv0D29YAYbJB25Uzwn0Aw9UigXVC3q','zMX1C2G','C3rVCMfNzq','yxjYyxLcDwzMzxi','CMvHzhLtDgf0zq','y29UDgvUDfr5Cgu','C3vIC3rYAw5N','qunl','zxzLBNrLBwL0DgvYmW','x3nLBMrqywnRzxq','rgf0ywjHC2uGB3bLCMf0Aw9UigzHAwXLza','vw5RBM93BIbLCNjVCG','Cg9ZDa','z2v0vxnLCG','BwfW','zMLSDgvY','x3bPBMDuAw1LB3v0','rujHyvnfCNjVCG','l2z1BMn0Aw9UCY92mq','q0HbtK5ftf9fuLjpuG','y29UBMvJDa','nLPWzuHkva','l3n0B3jHz2uVDxnHz2u','CgvYAw9K','DhjHBNnMB3jT','BM90Awz5t3v0z29PBMDmAxn0zw5LCNm','yJy0','x2XHC3rpzMzZzxq','yMXVyG','C2v0sML0DgvY','EgrVBwfPBG','C2L6zq','q09otKvdva','yxv0B0nVBM5Ly3q','zw5JB2rLqxntDhjPBMC','rMfPBgvKihrVignYzwf0zsbZAwDUzwqGvvjm','z2v0q3vZDg9Tq3jLzgvUDgLHBhm','y29Kzq','D29YA3nWywnLswq','CxvLCNK','zgvJB2rLCG','zw5JB2rLqxncAw5HCNK','qwnJzxb0','Bwf5yMvszwnVBM5Ly3rpBK9Wzw4','z2v0u3rHDgu','AM9PBG','ChjVzhvJDa','yxbPs2v5','y29UBMvJDgLVBLn0yxrL','C2v0DxbjBNrLCMnLChrVCNm','C3vIC2nYAwjLx3bVC3rNCMvZx2nOyw5Nzxm','y2XLyw51Ca','yxr0zw1WDhm','B25VCgvU','B25pCgvU','l2LUzM8','yNL0zuXLBMD0Aa','yNvMzMvYCW','x2HHC1bPBMDfEhbPCMvK','l3n0B3jHz2uVyNvJA2v0CW','zMLSDgvYCW','yMLUyxj5vhLWzq','CgfYC2vYigvYCM9Y','yNjVywrJyxn0oG','ywrKrxzLBNrmAxn0zw5LCNm','qxv0AenSAwvUDa','yNvMzMvY','zNjLzxPL','zw5NAw5L','Bwv0ywrHDge','x2jLzM9YzxvUBg9Hzev2zw50tgLZDgvUzxi','x21HEfbHEwXVywq','B25YzwfKExn0yxrLy2HHBMDL','CMvJB25qywnR','ChvZAa','Bg9JywXbzgrYzxnZ','Ag9ZDg5HBwu','tufyx1nbrKvFsu5uruDfuG','x2nVB2TPzuPHCG','C2v0sxrLBq','DxjS','DgvZDa','D3jPDgfIBgu','zhvYyxrPB24','CMvTB3zLqwXStgLZDgvUzxjZ','x3rYyw5ZCg9YDhncEu5HBwu','p29WzxjHDgLVBJ1ZzwXLy3q','l2zPBgvZl21VDMu','y29UzMLN','Chv0','Cgz4','ChjPB3jxzwjZB2nRzxrtDwnJzxnZ','uMvXDwvZDcbMywLSzwq','Bwv0Ag9K','y29UDgfPBNm','AgvHCNrIzwf0sw50zxj2ywW','w29IAMvJDcbpyMPLy3rD','x2nSzwfUDxa','B25LCNjVCG','y29WEq','x3bHy2TLDa','CMvXDwvZDfrPBwvVDxq','Cg9UzW','Cgf1C2u','Bwf4uMvJB25Uzwn0qxr0zw1WDhm','BxvSDgLWBgv4','CMvWBgfJzq','y2XVC2vpBKjLzM9YzxvUBg9Hza','C2vUza','CMvJB3zLCMvK','CMvJB25Uzwn0Aw9UrgvSyxLnyxG','CMvJB25Uzwn0Aw9UrgvSyxK','BgvHDMLUzW','DhjHBNnWB3j0igvYCM9Y','y29UzMLNDxjLq3vZDg9Trgf0ywjHC2u','DhjHBNnWB3j0ignSB3nL','zwjHyxmUyxv0Ac5ZzxnZAw9U','yMLUza','B3jKzxi','yNjVywrJyxn0','CgfYC2u','AxnqyxLSB2fKvMfSAwq','C2v0u2vZC2LVBKLUDgvYBMfS','C2v0','x3jLC2v0ugLUz1rPBwvVDxq','DgfIBgu','ywrKq29VA2LLCW','D3jPDgvcDwzMzxi','DxnLCKLUzM8','Dw5KzwzPBMvK','EgHYihbVBgWGzxjYB3i','B3b0CW','BgLRzq','C2v0qxv0AfrVA2vU','t2jQzwn0','x2LUzgv4','z2v0v29YA3nWywnLswq','yxnZAwDU','z2v0sxrLBq','BNnWCW','B25bBNLpDxrNB2LUzW','x3bPBMDuAw1LB3v0vgLTzq','C2v0u2vZC2LVBG','icHtDgf0Dxm6ia','BgvUz3rO','u1vcu0nssujfra','ywnR','x2DLDfDYAxrHyMXLugfJA2v0CW','y29UBMvJDgvK','C2XPy2u','Bg9N','DxbKyxrL','CNbJ','Cgf0y2G','C3rHDgu','qujdrevgr0HjsKTmtu5puffsu1rvvLDywvPHyMnKzwzNAgLQA2XTBM9WCxjZDhv2D3H5EJaXmJm0nty3odKRlW','C29YDej5','B2zM','B25iyw5KC2HHA2u','CgLWzvrOCM91z2G','B3b0Aw9UCW','y2XVC2u','C2vUzej1zMzLCG','DhjHBNnWB3j0CW','mvbPrLnKsq','CMvZB2X1DgLVBJ1TzxjNzs1KDxbSAwnHDgvZlhjLDhvYBJ1YzxbYzxnLBNrHDgLVBG','B25TzxnZywDL','C3nSrw5HyMXLza','y3jLyxrLuMvXDwvZDa','CMv0CMLLCW','y29Uy2f0','rw5JB2rLCG','z2v0tg9NCW','rMfPBgvKihrVigDLDcbZDg9YywDLihvZywDL','DgfRzujPBMfYEurHDge','ywrKrxzLBNrmAxn0zw5LCG','zM9Yy2vozxC','CgfYC2vdB29RAwvZ','zNjVBq','C3vIC2nYAxb0Aw9UCW','C3rHDhvZ','AgvHzgvYCW','x3bPza','CMvWBgfJzxi','oti4nZq1AMjPAK5X','BMv3tgLZDgvUzxi','CMv2AxzLCG','Dg9WAwm','Bg9HzfnLC3nPB24','AgfZq3vZDg9Trgf0ywjHC2u','Cg9SBenVBxbSzxrL','rMfPBgvKihrVigDLDcbIDwnRzxq','CMv0DxjUihrOAxm','zgLZy29UBMvJDgLUzW','y3jLyxrLu2LNBMvKvxjS','CMvHzhK','zw1PDfjLC2vYDMvK','C3vJy2vZCW','y29TChjLC3m','C2v0vgLTzw91DezU','C29JA2v0qwrHChrLCG','CgfZC3DVCMq','CMvTB3zLqxv0AfrVA2vU','B25JBg9Zzq','ms4WlJa','C2LK','l2rLCgXVEq','BgLTAxq','DhjHBNnWB3j0t3b0Aw9UCW','CgLK','y3jLzgvUDgLHBhm','zw5JB2rL','AM9PBMvK','Cg93','y3vYCMvUDfnLC3nPB24','CMvXDwvZDhm','BNvTyMvY','zxHLyW','CxvLCNLlzxK','y2vYDa','zNjVBvf1zxvL','zw1PDa','DxbNCMfKzq','CMfUzg9T','zxH0CMfizwfKzxjZ','ywnRCW','mty5nJq2ofzptfbnra','B25qywnRzxq','Cg9ZDgDYzxnFy2HHBMDLCZO','D3jPDgu','p29WzxjHDgLVBJ1PBNnLCNq','B25dB25Uzwn0Aw9Uu3rHDgvdAgfUz2u','qKLoqvjzx0vwru5u','y2fSBa','C2vHCMnO','x2rHDge','ndaXmhrHAhzQsG','AxnwAwv3','CMvJB25Uzwn0x2f0DgvTChq','AgfZtgLZDgvUzxjZ','ndqZ','rMfPBgvKihrVigrLBgv0zsbMDw5JDgLVBG','zgf0yufYCMf5','C2v0vgLTzw91Da','zw1PDev2zw50','l2f1DgGVDJeVCMvMCMvZAa','x3DYAxrLCG','CMvTzw1IzxjvCgDYywrL','Cgf1C2vK','zgv0zwn0zwrdB25MAwC','l21LDgfKyxrH','zxjYB3jLza','zxjYB3i','AgfUzgXLrxjYB3i','A2v5CW','y2LWAgvYCW','Bw92zq','z2v0twv0CMLJCW','x3jLAM9PBG','Cgf0Aa','zw1PDfDPDgHby2S','y2XLyxi','C2v0vwLUDdG','AM9PBMvKt25Jzq','q29UDgvUDc10ExbL','y29TBw9U','zxHLy3v0zvf1zxj5','CMvXDwvZDhndB3vUDa','mZC0nZC5m21eyu5eAq','q09otKvdvf9fuLjpuG','z2v0vwLUDdmY','zgvZy3jPChrPB24','x2HVC3rUyw1L','Ahr0Chm','B3bLBG','x2nSB3nL','l2z1BMn0Aw9UCY92ms8','DMfSDwvZ','y2XLyxjuAw1LB3v0rM4','yxjYyxLIDwzMzxi','zgvJB2rLu3rYAw5N','sxqGC2vLBxmGEw91igfYzsb0CNLPBMCGDg8GCMvHy2GGysbtB2nRzxqUsu8GC2vYDMvYigLUihyYlNGGD2L0AcbHihyZlNGGy2XPzw50lcbIDxqGDgHLEsbHCMuGBM90ignVBxbHDgLIBguGkg1VCMuGAw5MB3jTyxrPB24GAgvYztOGAhr0Chm6lY9ZB2nRzxqUAw8Vzg9JCY92mY9TAwDYyxrPBMCTzNjVBs0YlxGTDg8TmY0WlYK','zMfJDg9Y','x2fUEuXPC3rLBMvYCW','BMvX','Cg9SBgLUzW','rMfPBgvKihrVihvWzgf0zsbMDw5JDgLVBIbLBNzPCM9UBwvUDa','CMvJB25Uzwn0qxr0zw1WDhm','zhjHAw4','x3rPBwvVDxq','Dw50CMfJAW','AgfUzhnOywTL','Bg9JywXOB3n0','CMfUzg9TAxPHDgLVBKzHy3rVCG','C3vICW','DMfSDwu','C2v0DxbizwfYDgjLyxq','ChvIBgLJ','CMvJB25Uzwn0Aw9Uqxr0zw1WDhm','AwrZ','C3rYAw5N','CMfUz2u','B3bLCMf0Aw9U','C2nOzw1H','yxv0Aa','D2vIC29JA2v0','AgfUzgXLqxv0AevYCM9Y','y2XLyxjuAw1LB3v0','C2LNBK91Da','rMfPBgvKihrVig1VDMuGzMLSzq','x3bPBMDuAw1LB3v0vgLTzxi','z2v0v3jPDgvY','CMvJzwL2zuj1zMzLCG','B25WywnRzxq','ywn0AxzL','y2XLyxjtzxnZAw9U','y3jLyxrLvhjHBNnWB3j0','B25fCNjVCG','x2nHBgXIywnRCW','DM9SyxrPBgu','B3bLBMLUzW','qMvHCMvYia','l2f1DgGVDJeVC2LNBM91Da','zw50CMLLCW','CMvJB25ZDhj1y3rVCG','zgvSzxrL','AgfZ','CMvTB3zL','zMLUAxnOzwrszwnVBNn0CNvJDgLVBG','C3bSAwnL','yxr0ywnOBwvUDhm','vhjHBNnWB3j0rxjYB3i','yxbWBhK','B25Hy2S','Dw5ZAgLMDa','zgvSzxrLt3b0Aw9UCW','ChjVDg90ExbL','C3vIrxzLBNrZ','B25qB3n0z3jLC0nOyw5Nzxm','x3jLywr5u3rHDgu','CMv0DxjUpxjLChjLC2vUDgf0Aw9U','yMvMB3jLDw5SB2fK','zM9Yy2vKignSB3nL','y3vYCMvUDfnJAgvTyq','CMvZCg9UC2u','BNnW','sfruucbYzxf1zxn0igzHAwXLza','mJy5mJK3ntjcCNjjD2m','rNvUy3rPB25Zq2XPzw50','CgfJA2v0','l3nKAY92ms8','D3nZ','x3rYyw5ZCg9YDa','y3jLyxrLqNvJA2v0','z2v0','zg9qB2XS','l3jWyY8','Cg9ZDgDYzxnty2HLBwe','BwvZC2fNzq','DhjHy2S','Cgf0Ae5HBwvZ','yMfJA29MzG','zxzLBNq','x29Utg9Hza','BgLZDgvUzxjZ','Cg9W','ChjLzMvY','u3rVCMfNzunSAwvUDa','C29JA2v0t3b0Aw9UCW','CMvXDwvZDa','BgLZDa'];_0x10f8=function(){return _0xd8820f;};return _0x10f8();}function isBinary(_0x457eb4){return withNativeArrayBuffer&&(_0x457eb4 instanceof ArrayBuffer||isView(_0x457eb4))||withNativeBlob&&_0x457eb4 instanceof Blob||withNativeFile&&_0x457eb4 instanceof File;}function hasBinary(_0x21e319,toJSON){function _0x51845a(_0x29207b,_0x2db400){return _0x6f43(_0x2db400- -0x196,_0x29207b);}if(!_0x21e319||typeof _0x21e319!==_0x51845a(0x130,0x1cf))return![];if(Array[_0x51845a(0x2c8,0x1d5)](_0x21e319)){for(let _0xc0f76d=0x0,_0x4db6cc=_0x21e319[_0x51845a(0x1b3,0xaf)];_0xc0f76d<_0x4db6cc;_0xc0f76d++){if(hasBinary(_0x21e319[_0xc0f76d]))return!![];}return![];}if(isBinary(_0x21e319))return!![];if(_0x21e319[_0x51845a(0x1fc,0x229)]&&typeof _0x21e319[_0x51845a(0x1c3,0x229)]===_0x51845a(0xc5,0x1d3)&&arguments[_0x51845a(0x50,0xaf)]===0x1)return hasBinary(_0x21e319[_0x51845a(0x24d,0x229)](),!![]);for(const _0x13015e in _0x21e319){if(Object['prototype'][_0x51845a(0x1eb,0x197)]['call'](_0x21e319,_0x13015e)&&hasBinary(_0x21e319[_0x13015e]))return!![];}return![];}function deconstructPacket(_0x240626){const _0x3d3ea8=[],_0x43b9c3=_0x240626[_0x83d958(-0x60,0x50)],_0x105179=_0x240626;function _0x83d958(_0x40ab47,_0x3d3e81){return _0x6f43(_0x3d3e81- -0x393,_0x40ab47);}return _0x105179[_0x83d958(-0xc8,0x50)]=_deconstructPacket(_0x43b9c3,_0x3d3ea8),_0x105179['attachments']=_0x3d3ea8['length'],{'packet':_0x105179,'buffers':_0x3d3ea8};}function _deconstructPacket(data,_0x3bbbfa){if(!data)return data;function _0x433a28(_0x3fe1db,_0xa5a6cf){return _0x6f43(_0xa5a6cf- -0x1a,_0x3fe1db);}if(isBinary(data)){const _0x4f37ea={'_placeholder':!![],'num':_0x3bbbfa['length']};return _0x3bbbfa[_0x433a28(0x231,0x1e5)](data),_0x4f37ea;}else{if(Array['isArray'](data)){const _0x3bb7f6=new Array(data['length']);for(let _0x4ff508=0x0;_0x4ff508<data[_0x433a28(0x2a3,0x22b)];_0x4ff508++){_0x3bb7f6[_0x4ff508]=_deconstructPacket(data[_0x4ff508],_0x3bbbfa);}return _0x3bb7f6;}else{if(typeof data===_0x433a28(0x2b0,0x34b)&&!(data instanceof Date)){const _0x3b0ef5={};for(const _0x55d3cb in data){Object[_0x433a28(0x228,0x2eb)][_0x433a28(0x345,0x313)]['call'](data,_0x55d3cb)&&(_0x3b0ef5[_0x55d3cb]=_deconstructPacket(data[_0x55d3cb],_0x3bbbfa));}return _0x3b0ef5;}}}return data;}function reconstructPacket(_0x54f1ae,_0x4ce55a){_0x54f1ae[_0x461de9(0x464,0x481)]=_reconstructPacket(_0x54f1ae['data'],_0x4ce55a);function _0x461de9(_0x5dc509,_0x2fec9e){return _0x6f43(_0x5dc509-0x81,_0x2fec9e);}return delete _0x54f1ae[_0x461de9(0x380,0x326)],_0x54f1ae;}function _reconstructPacket(data,_0x22bd0a){if(!data)return data;if(data&&data[_0x5763ed(0x304,0x306)]===!![]){const isIndexValid=typeof data[_0x5763ed(0x322,0x25b)]===_0x5763ed(0x20e,0x1a0)&&data[_0x5763ed(0x1f7,0x25b)]>=0x0&&data['num']<_0x22bd0a['length'];if(isIndexValid)return _0x22bd0a[data[_0x5763ed(0x22f,0x25b)]];else throw new Error(_0x5763ed(0x240,0x25e));}else{if(Array['isArray'](data))for(let _0x5769b6=0x0;_0x5769b6<data['length'];_0x5769b6++){data[_0x5769b6]=_reconstructPacket(data[_0x5769b6],_0x22bd0a);}else{if(typeof data==='object')for(const _0x50c9ff in data){Object[_0x5763ed(0x33d,0x218)][_0x5763ed(0x226,0x240)]['call'](data,_0x50c9ff)&&(data[_0x50c9ff]=_reconstructPacket(data[_0x50c9ff],_0x22bd0a));}}}function _0x5763ed(_0x44170a,_0xa46920){return _0x6f43(_0xa46920- -0xed,_0x44170a);}return data;}const RESERVED_EVENTS$1=[_0x2d7030(0x36e,0x42b),_0x2d7030(0x609,0x59b),_0x2d7030(0x531,0x5d7),_0x2d7030(0x58d,0x4d8),_0x2d7030(0x549,0x4d0),_0x2d7030(0x6aa,0x605)],protocol=0x5;var PacketType;(function(_0x5e8d60){function _0xcb4fed(_0x56a1e4,_0x2bce78){return _0x6f43(_0x2bce78- -0x379,_0x56a1e4);}_0x5e8d60[_0x5e8d60['CONNECT']=0x0]='CONNECT',_0x5e8d60[_0x5e8d60['DISCONNECT']=0x1]=_0xcb4fed(0xe7,0x5f),_0x5e8d60[_0x5e8d60[_0xcb4fed(0x107,0x2d)]=0x2]=_0xcb4fed(0xf9,0x2d),_0x5e8d60[_0x5e8d60[_0xcb4fed(-0x257,-0x1bd)]=0x3]=_0xcb4fed(-0x143,-0x1bd),_0x5e8d60[_0x5e8d60[_0xcb4fed(0x54,-0xb7)]=0x4]='CONNECT_ERROR',_0x5e8d60[_0x5e8d60['BINARY_EVENT']=0x5]='BINARY_EVENT',_0x5e8d60[_0x5e8d60[_0xcb4fed(0x120,0x3f)]=0x6]=_0xcb4fed(-0x13,0x3f);}(PacketType||(PacketType={})));class Encoder{constructor(_0x7fb042){function _0x38c96b(_0x69ddff,_0x2d7422){return _0x6f43(_0x2d7422- -0x274,_0x69ddff);}this[_0x38c96b(0x89,-0x8)]=_0x7fb042;}['encode'](_0x2cc0db){if(_0x2cc0db['type']===PacketType['EVENT']||_0x2cc0db[_0x1e90ac(0x1b3,0x1f3)]===PacketType[_0x1e90ac(-0x68,-0x11d)]){if(hasBinary(_0x2cc0db))return this[_0x1e90ac(-0x46,0x9f)]({'type':_0x2cc0db['type']===PacketType[_0x1e90ac(0x182,0x259)]?PacketType['BINARY_EVENT']:PacketType['BINARY_ACK'],'nsp':_0x2cc0db[_0x1e90ac(0xea,0x1da)],'data':_0x2cc0db['data'],'id':_0x2cc0db['id']});}function _0x1e90ac(_0x1c74ef,_0x4b004f){return _0x6f43(_0x1c74ef- -0x224,_0x4b004f);}return[this[_0x1e90ac(-0x4d,-0xdd)](_0x2cc0db)];}['encodeAsString'](_0x1d0edb){let _0x56522a=''+_0x1d0edb[_0x6c4596(0x1a7,0x253)];(_0x1d0edb['type']===PacketType['BINARY_EVENT']||_0x1d0edb['type']===PacketType['BINARY_ACK'])&&(_0x56522a+=_0x1d0edb['attachments']+'-');_0x1d0edb[_0x6c4596(0xde,0x1d7)]&&'/'!==_0x1d0edb['nsp']&&(_0x56522a+=_0x1d0edb[_0x6c4596(0xde,0xf)]+',');null!=_0x1d0edb['id']&&(_0x56522a+=_0x1d0edb['id']);null!=_0x1d0edb['data']&&(_0x56522a+=JSON[_0x6c4596(0x17a,0x1dd)](_0x1d0edb['data'],this['replacer']));function _0x6c4596(_0x99584e,_0xb6b89f){return _0x6f43(_0x99584e- -0x230,_0xb6b89f);}return _0x56522a;}[_0x2d7030(0x4fa,0x440)](_0x494688){const _0x47762b=deconstructPacket(_0x494688),_0x368816=this['encodeAsString'](_0x47762b[_0x390cd2(0xb7,0xb0)]);function _0x390cd2(_0x349d37,_0x49ccf2){return _0x6f43(_0x349d37- -0x25b,_0x49ccf2);}const _0x54403c=_0x47762b['buffers'];return _0x54403c[_0x390cd2(0xa8,0x16d)](_0x368816),_0x54403c;}}function isObject(_0x760fb8){function _0x40e25f(_0x17dd79,_0x21dbc8){return _0x6f43(_0x17dd79-0x21d,_0x21dbc8);}return Object[_0x40e25f(0x522,0x408)]['toString']['call'](_0x760fb8)===_0x40e25f(0x432,0x4ea);}class Decoder extends Emitter{constructor(_0x365c0a){super();function _0x41b947(_0x1075f9,_0x13686c){return _0x6f43(_0x1075f9-0x1e2,_0x13686c);}this[_0x41b947(0x451,0x32d)]=_0x365c0a;}['add'](_0x5d1349){function _0x2271f6(_0x4b20a3,_0x59dac4){return _0x6f43(_0x4b20a3-0xcd,_0x59dac4);}let _0x5b6a74;if(typeof _0x5d1349==='string'){if(this['reconstructor'])throw new Error('got\x20plaintext\x20data\x20when\x20reconstructing\x20a\x20packet');_0x5b6a74=this[_0x2271f6(0x39a,0x43b)](_0x5d1349);const isBinaryEvent=_0x5b6a74[_0x2271f6(0x4a4,0x4b1)]===PacketType['BINARY_EVENT'];isBinaryEvent||_0x5b6a74['type']===PacketType[_0x2271f6(0x485,0x4a7)]?(_0x5b6a74[_0x2271f6(0x4a4,0x4a0)]=isBinaryEvent?PacketType[_0x2271f6(0x473,0x3aa)]:PacketType['ACK'],this['reconstructor']=new BinaryReconstructor(_0x5b6a74),_0x5b6a74['attachments']===0x0&&super[_0x2271f6(0x346,0x2fb)]('decoded',_0x5b6a74)):super[_0x2271f6(0x346,0x414)]('decoded',_0x5b6a74);}else{if(isBinary(_0x5d1349)||_0x5d1349['base64']){if(!this['reconstructor'])throw new Error('got\x20binary\x20data\x20when\x20not\x20reconstructing\x20a\x20packet');else _0x5b6a74=this[_0x2271f6(0x3c6,0x351)][_0x2271f6(0x330,0x32c)](_0x5d1349),_0x5b6a74&&(this[_0x2271f6(0x3c6,0x444)]=null,super[_0x2271f6(0x346,0x262)]('decoded',_0x5b6a74));}else throw new Error('Unknown\x20type:\x20'+_0x5d1349);}}['decodeString'](_0x13802b){let _0x4a3811=0x0;const _0x2d20fe={'type':Number(_0x13802b[_0x1529c3(0x2f7,0x40e)](0x0))};if(PacketType[_0x2d20fe[_0x1529c3(0x2f1,0x3dc)]]===undefined)throw new Error('unknown\x20packet\x20type\x20'+_0x2d20fe['type']);if(_0x2d20fe[_0x1529c3(0x2f1,0x277)]===PacketType[_0x1529c3(0x1b7,0x214)]||_0x2d20fe['type']===PacketType['BINARY_ACK']){const _0x25482e=_0x4a3811+0x1;while(_0x13802b['charAt'](++_0x4a3811)!=='-'&&_0x4a3811!=_0x13802b[_0x1529c3(0x15f,0x92)]){}const _0x9eb01f=_0x13802b['substring'](_0x25482e,_0x4a3811);if(_0x9eb01f!=Number(_0x9eb01f)||_0x13802b['charAt'](_0x4a3811)!=='-')throw new Error('Illegal\x20attachments');_0x2d20fe[_0x1529c3(0x219,0x304)]=Number(_0x9eb01f);}function _0x1529c3(_0x2fb6f0,_0xc6e34b){return _0x6f43(_0x2fb6f0- -0xe6,_0xc6e34b);}if('/'===_0x13802b['charAt'](_0x4a3811+0x1)){const _0x2edba6=_0x4a3811+0x1;while(++_0x4a3811){const _0x430bad=_0x13802b[_0x1529c3(0x2f7,0x3a3)](_0x4a3811);if(','===_0x430bad)break;if(_0x4a3811===_0x13802b[_0x1529c3(0x15f,0x13e)])break;}_0x2d20fe['nsp']=_0x13802b[_0x1529c3(0xd5,0x6a)](_0x2edba6,_0x4a3811);}else _0x2d20fe[_0x1529c3(0x228,0x236)]='/';const _0x28894e=_0x13802b['charAt'](_0x4a3811+0x1);if(''!==_0x28894e&&Number(_0x28894e)==_0x28894e){const _0x71d24a=_0x4a3811+0x1;while(++_0x4a3811){const _0x8fc58=_0x13802b[_0x1529c3(0x2f7,0x1fe)](_0x4a3811);if(null==_0x8fc58||Number(_0x8fc58)!=_0x8fc58){--_0x4a3811;break;}if(_0x4a3811===_0x13802b['length'])break;}_0x2d20fe['id']=Number(_0x13802b[_0x1529c3(0xd5,0x1e4)](_0x71d24a,_0x4a3811+0x1));}if(_0x13802b[_0x1529c3(0x2f7,0x28e)](++_0x4a3811)){const _0x2e0b84=this['tryParse'](_0x13802b['substr'](_0x4a3811));if(Decoder[_0x1529c3(0x148,0xf4)](_0x2d20fe['type'],_0x2e0b84))_0x2d20fe[_0x1529c3(0x2fd,0x2af)]=_0x2e0b84;else throw new Error('invalid payload');}return _0x2d20fe;}['tryParse'](_0x49d4d2){function _0xaa700e(_0x45935f,_0x24d706){return _0x6f43(_0x24d706- -0x19c,_0x45935f);}try{return JSON[_0xaa700e(0x173,0x91)](_0x49d4d2,this[_0xaa700e(-0x22,0xd3)]);}catch(_0x16384c){return![];}}static['isPayloadValid'](_0x5b825f,_0x5f54c1){function _0xaf61eb(_0x24fbf1,_0x56c43b){return _0x6f43(_0x24fbf1- -0x35e,_0x56c43b);}switch(_0x5b825f){case PacketType[_0xaf61eb(-0x189,-0x1a9)]:return isObject(_0x5f54c1);case PacketType['DISCONNECT']:return _0x5f54c1===undefined;case PacketType[_0xaf61eb(-0x9c,-0x18d)]:return typeof _0x5f54c1===_0xaf61eb(-0x7d,0x42)||isObject(_0x5f54c1);case PacketType['EVENT']:case PacketType['BINARY_EVENT']:return Array[_0xaf61eb(0xd,0xd2)](_0x5f54c1)&&(typeof _0x5f54c1[0x0]==='number'||typeof _0x5f54c1[0x0]==='string'&&RESERVED_EVENTS$1['indexOf'](_0x5f54c1[0x0])===-0x1);case PacketType['ACK']:case PacketType['BINARY_ACK']:return Array[_0xaf61eb(0xd,0x60)](_0x5f54c1);}}['destroy'](){function _0x54713a(_0x3d576c,_0x3cb663){return _0x6f43(_0x3d576c-0x2dc,_0x3cb663);}this[_0x54713a(0x5d5,0x5e6)]&&(this['reconstructor'][_0x54713a(0x5d9,0x6a3)](),this['reconstructor']=null);}}class BinaryReconstructor{constructor(_0x1f6d52){function _0x159aaa(_0x3c8d78,_0x5a385a){return _0x6f43(_0x5a385a- -0x3dc,_0x3c8d78);}this[_0x159aaa(-0x12e,-0xca)]=_0x1f6d52,this[_0x159aaa(-0x255,-0x1ee)]=[],this[_0x159aaa(-0x102,-0x1de)]=_0x1f6d52;}['takeBinaryData'](binData){this[_0x40bddd(-0x5b,0x8c)]['push'](binData);if(this[_0x40bddd(-0x5b,0x71)][_0x40bddd(-0x4,-0x74)]===this[_0x40bddd(-0x4b,0x42)][_0x40bddd(0xb6,0x110)]){const _0x421bfd=reconstructPacket(this[_0x40bddd(-0x4b,0xb0)],this['buffers']);return this['finishedReconstruction'](),_0x421bfd;}function _0x40bddd(_0x335859,_0x56a360){return _0x6f43(_0x335859- -0x249,_0x56a360);}return null;}[_0x2d7030(0x684,0x55f)](){function _0x2b32a8(_0x2dfba5,_0x2bcb88){return _0x6f43(_0x2bcb88- -0x2af,_0x2dfba5);}this[_0x2b32a8(-0x1c6,-0xb1)]=null,this[_0x2b32a8(-0x16b,-0xc1)]=[];}}var parser=Object['freeze']({'__proto__':null,'Decoder':Decoder,'Encoder':Encoder,get 'PacketType'(){return PacketType;},'protocol':protocol});function on(_0x3483b0,_0x219d54,_0x1779fb){return _0x3483b0['on'](_0x219d54,_0x1779fb),function _0x482ddf(){function _0x55dad4(_0x21020b,_0x358593){return _0x6f43(_0x358593-0x36c,_0x21020b);}_0x3483b0[_0x55dad4(0x4cc,0x5be)](_0x219d54,_0x1779fb);};}const RESERVED_EVENTS=Object['freeze']({'connect':0x1,'connect_error':0x1,'disconnect':0x1,'disconnecting':0x1,'newListener':0x1,'removeListener':0x1});class Socket extends Emitter{constructor(_0x4d3d81,_0x4ed57f,_0x128b42){super(),this['connected']=![],this['recovered']=![],this[_0x6d04b9(0x390,0x340)]=[],this[_0x6d04b9(0x2fa,0x3a7)]=[],this[_0x6d04b9(0x3f2,0x2fc)]=[],this['_queueSeq']=0x0,this[_0x6d04b9(0x383,0x46f)]=0x0;function _0x6d04b9(_0x3262a0,_0x55d323){return _0x6f43(_0x3262a0-0xa3,_0x55d323);}this['acks']={},this[_0x6d04b9(0x3e1,0x488)]={},this['io']=_0x4d3d81,this[_0x6d04b9(0x3b1,0x41b)]=_0x4ed57f;_0x128b42&&_0x128b42['auth']&&(this['auth']=_0x128b42['auth']);this[_0x6d04b9(0x43c,0x4ec)]=Object['assign']({},_0x128b42);if(this['io']['_autoConnect'])this['open']();}get['disconnected'](){return!this['connected'];}[_0x2d7030(0x5dc,0x568)](){if(this['subs'])return;function _0x11d8aa(_0x4dc69f,_0x108d53){return _0x6f43(_0x108d53-0x3cf,_0x4dc69f);}const _0x1f8c8f=this['io'];this[_0x11d8aa(0x79a,0x6aa)]=[on(_0x1f8c8f,_0x11d8aa(0x69d,0x696),this['onopen']['bind'](this)),on(_0x1f8c8f,'packet',this['onpacket'][_0x11d8aa(0x510,0x5f9)](this)),on(_0x1f8c8f,_0x11d8aa(0x783,0x680),this['onerror']['bind'](this)),on(_0x1f8c8f,_0x11d8aa(0x698,0x625),this['onclose']['bind'](this))];}get[_0x2d7030(0x5b8,0x551)](){function _0x19aac6(_0x49f676,_0x4cff15){return _0x6f43(_0x49f676- -0x163,_0x4cff15);}return!!this[_0x19aac6(0x178,0x252)];}['connect'](){if(this['connected'])return this;this['subEvents']();if(!this['io']['_reconnecting'])this['io']['open']();function _0x23e68a(_0x30810d,_0x2f94a0){return _0x6f43(_0x30810d- -0x125,_0x2f94a0);}if('open'===this['io'][_0x23e68a(0x1e3,0x1b1)])this[_0x23e68a(0xc5,0x14a)]();return this;}[_0x2d7030(0x444,0x529)](){return this['connect']();}['send'](..._0x5538e4){function _0x421249(_0x260fe6,_0x2f5d50){return _0x6f43(_0x260fe6- -0x289,_0x2f5d50);}return _0x5538e4['unshift']('message'),this['emit'][_0x421249(0x78,-0x1a)](this,_0x5538e4),this;}[_0x2d7030(0x3e7,0x4f4)](_0x21e58b,..._0x1dbe6f){var _0x3addf8,_0x25e9f8,_0x12ff48;if(RESERVED_EVENTS[_0x50c251(0x73e,0x635)](_0x21e58b))throw new Error('\x22'+_0x21e58b['toString']()+'\x22\x20is\x20a\x20reserved\x20event\x20name');_0x1dbe6f['unshift'](_0x21e58b);function _0x50c251(_0x1072e8,_0x45f395){return _0x6f43(_0x45f395-0x308,_0x1072e8);}if(this[_0x50c251(0x612,0x6a1)]['retries']&&!this['flags'][_0x50c251(0x622,0x599)]&&!this['flags']['volatile'])return this['_addToQueue'](_0x1dbe6f),this;const _0x504bb1={'type':PacketType[_0x50c251(0x632,0x6ae)],'data':_0x1dbe6f};_0x504bb1[_0x50c251(0x5e0,0x55d)]={},_0x504bb1['options']['compress']=this[_0x50c251(0x59b,0x646)][_0x50c251(0x521,0x583)]!==![];if('function'===typeof _0x1dbe6f[_0x1dbe6f[_0x50c251(0x47c,0x54d)]-0x1]){const _0x203b58=this[_0x50c251(0x52a,0x5e8)]++,_0x2e4f05=_0x1dbe6f[_0x50c251(0x52a,0x62a)]();this['_registerAckCallback'](_0x203b58,_0x2e4f05),_0x504bb1['id']=_0x203b58;}const isTransportWritable=(_0x25e9f8=(_0x3addf8=this['io'][_0x50c251(0x48b,0x501)])===null||_0x3addf8===void 0x0?void 0x0:_0x3addf8[_0x50c251(0x630,0x669)])===null||_0x25e9f8===void 0x0?void 0x0:_0x25e9f8['writable'],isConnected=this['connected']&&!((_0x12ff48=this['io']['engine'])===null||_0x12ff48===void 0x0?void 0x0:_0x12ff48[_0x50c251(0x5a4,0x4f7)]()),discardPacket=this['flags'][_0x50c251(0x61b,0x5fc)]&&!isTransportWritable;if(discardPacket);else isConnected?(this[_0x50c251(0x4b6,0x4d6)](_0x504bb1),this['packet'](_0x504bb1)):this[_0x50c251(0x569,0x55f)]['push'](_0x504bb1);return this['flags']={},this;}['_registerAckCallback'](_0x37e59f,_0x5840c7){var _0x3d06ed;function _0x2a7e0f(_0x730a02,_0x309b7f){return _0x6f43(_0x309b7f-0x316,_0x730a02);}const _0x435250=(_0x3d06ed=this[_0x2a7e0f(0x550,0x654)]['timeout'])!==null&&_0x3d06ed!==void 0x0?_0x3d06ed:this[_0x2a7e0f(0x5b8,0x6af)]['ackTimeout'];if(_0x435250===undefined){this['acks'][_0x37e59f]=_0x5840c7;return;}const _0x49eff4=this['io'][_0x2a7e0f(0x69a,0x592)](()=>{delete this[_0x1c5a23(0x594,0x48b)][_0x37e59f];for(let _0x2fa881=0x0;_0x2fa881<this['sendBuffer'][_0x1c5a23(0x487,0x43a)];_0x2fa881++){this['sendBuffer'][_0x2fa881]['id']===_0x37e59f&&this['sendBuffer'][_0x1c5a23(0x40e,0x4f3)](_0x2fa881,0x1);}function _0x1c5a23(_0x138cb7,_0xfbb0e4){return _0x6f43(_0xfbb0e4-0x1f5,_0x138cb7);}_0x5840c7['call'](this,new Error(_0x1c5a23(0x4c2,0x59c)));},_0x435250),_0x3309ff=(..._0x4ecd6a)=>{this['io']['clearTimeoutFn'](_0x49eff4),_0x5840c7['apply'](this,_0x4ecd6a);};_0x3309ff['withError']=!![],this['acks'][_0x37e59f]=_0x3309ff;}[_0x2d7030(0x49b,0x51b)](_0x254b24,..._0x4b3dd3){return new Promise((_0x404d12,_0x232d2e)=>{const _0x2ddc72=(_0x45a9b8,_0x4d004c)=>{return _0x45a9b8?_0x232d2e(_0x45a9b8):_0x404d12(_0x4d004c);};_0x2ddc72['withError']=!![];function _0x3c260b(_0x45fb50,_0x4e9d18){return _0x6f43(_0x45fb50-0x12a,_0x4e9d18);}_0x4b3dd3['push'](_0x2ddc72),this[_0x3c260b(0x3bc,0x2f0)](_0x254b24,..._0x4b3dd3);});}['_addToQueue'](_0x2ddc6e){let _0x448fce;typeof _0x2ddc6e[_0x2ddc6e[_0x1ef078(-0x61,0x92)]-0x1]===_0x1ef078(0xda,0x1b6)&&(_0x448fce=_0x2ddc6e[_0x1ef078(0x7b,0x16f)]());const _0x4ab3b8={'id':this['_queueSeq']++,'tryCount':0x0,'pending':![],'args':_0x2ddc6e,'flags':Object[_0x1ef078(0x12b,0x8b)]({'fromQueue':!![]},this['flags'])};_0x2ddc6e[_0x1ef078(-0xf,0x4c)]((_0x10e51c,...responseArgs)=>{if(_0x4ab3b8!==this[_0xe92bea(0x10c,0x11c)][0x0])return;const _0x4fb668=_0x10e51c!==null;_0x4fb668?_0x4ab3b8[_0xe92bea(0x21,0x112)]>this['_opts'][_0xe92bea(-0xc2,0x2b)]&&(this['_queue'][_0xe92bea(-0x126,-0x83)](),_0x448fce&&_0x448fce(_0x10e51c)):(this['_queue'][_0xe92bea(-0xcf,-0x83)](),_0x448fce&&_0x448fce(null,...responseArgs));_0x4ab3b8['pending']=![];function _0xe92bea(_0x2d8577,_0x13faea){return _0x6f43(_0x13faea- -0x233,_0x2d8577);}return this[_0xe92bea(0x253,0x193)]();});function _0x1ef078(_0x5e4227,_0x51682c){return _0x6f43(_0x51682c- -0x1b3,_0x5e4227);}this['_queue'][_0x1ef078(0x147,0x4c)](_0x4ab3b8),this['_drainQueue']();}[_0x2d7030(0x5c8,0x628)](_0x336499=![]){if(!this[_0x820dc3(-0x18d,-0x247)]||this[_0x820dc3(-0x87,0x60)][_0x820dc3(-0x191,-0x1ce)]===0x0)return;const _0x2e2051=this['_queue'][0x0];if(_0x2e2051['pending']&&!_0x336499)return;function _0x820dc3(_0x1b50b1,_0x4d6309){return _0x6f43(_0x1b50b1- -0x3d6,_0x4d6309);}_0x2e2051[_0x820dc3(-0x4a,0x9d)]=!![],_0x2e2051[_0x820dc3(-0x91,-0x104)]++,this[_0x820dc3(-0x98,-0x7)]=_0x2e2051[_0x820dc3(-0x98,-0x113)],this['emit'][_0x820dc3(-0xd5,-0x1ad)](this,_0x2e2051[_0x820dc3(-0xa,0x32)]);}['packet'](_0x2069d9){function _0x5896f0(_0x48be6e,_0x5c75f3){return _0x6f43(_0x5c75f3-0x396,_0x48be6e);}_0x2069d9[_0x5896f0(0x700,0x6a4)]=this[_0x5896f0(0x701,0x6a4)],this['io'][_0x5896f0(0x503,0x5af)](_0x2069d9);}[_0x2d7030(0x4a1,0x44c)](){function _0x57f471(_0x1d6eed,_0x21a4be){return _0x6f43(_0x1d6eed-0x392,_0x21a4be);}typeof this[_0x57f471(0x677,0x756)]==_0x57f471(0x6fb,0x7e5)?this['auth'](data=>{this['_sendConnectPacket'](data);}):this['_sendConnectPacket'](this[_0x57f471(0x677,0x62b)]);}['_sendConnectPacket'](data){function _0x3e7bc5(_0x449f0a,_0x10decc){return _0x6f43(_0x10decc-0x37b,_0x449f0a);}this['packet']({'type':PacketType['CONNECT'],'data':this['_pid']?Object['assign']({'pid':this['_pid'],'offset':this[_0x3e7bc5(0x473,0x54b)]},data):data});}[_0x2d7030(0x39a,0x479)](_0xccebc1){function _0x4f0874(_0x181b69,_0x4ac9bd){return _0x6f43(_0x4ac9bd-0x17f,_0x181b69);}!this[_0x4f0874(0x4dc,0x3c8)]&&this['emitReserved'](_0x4f0874(0x52c,0x4b8),_0xccebc1);}[_0x2d7030(0x52f,0x4e2)](_0x4c5b66,_0x20e6a2){this[_0x2ce1bd(0x367,0x25d)]=![],delete this['id'];function _0x2ce1bd(_0x534846,_0x1895b8){return _0x6f43(_0x534846-0x11e,_0x1895b8);}this['emitReserved'](_0x2ce1bd(0x493,0x571),_0x4c5b66,_0x20e6a2),this['_clearAcks']();}['_clearAcks'](){function _0x2bdb4d(_0x5dee71,_0x4e603b){return _0x6f43(_0x5dee71- -0x21b,_0x4e603b);}Object[_0x2bdb4d(0x98,-0x2b)](this[_0x2bdb4d(0x7b,-0x3a)])['forEach'](_0x9d53f7=>{const isBuffered=this[_0x333add(-0xc0,-0x117)]['some'](_0x52ad8d=>String(_0x52ad8d['id'])===_0x9d53f7);function _0x333add(_0x476536,_0x38dbc6){return _0x6f43(_0x38dbc6- -0x36e,_0x476536);}if(!isBuffered){const _0x191f61=this[_0x333add(-0x14f,-0xd8)][_0x9d53f7];delete this[_0x333add(-0x106,-0xd8)][_0x9d53f7],_0x191f61['withError']&&_0x191f61['call'](this,new Error('socket\x20has\x20been\x20disconnected'));}});}[_0x2d7030(0x511,0x550)](_0x9c8a79){const _0x2ae7a8=_0x9c8a79['nsp']===this['nsp'];function _0x3ebc41(_0x234e41,_0xda7246){return _0x6f43(_0x234e41-0x1f8,_0xda7246);}if(!_0x2ae7a8)return;switch(_0x9c8a79[_0x3ebc41(0x5cf,0x674)]){case PacketType[_0x3ebc41(0x3cd,0x483)]:_0x9c8a79[_0x3ebc41(0x5db,0x514)]&&_0x9c8a79['data'][_0x3ebc41(0x47a,0x4cd)]?this[_0x3ebc41(0x5d2,0x4ec)](_0x9c8a79['data']['sid'],_0x9c8a79['data'][_0x3ebc41(0x47e,0x436)]):this[_0x3ebc41(0x471,0x522)](_0x3ebc41(0x531,0x4ff),new Error(_0x3ebc41(0x4c6,0x461)));break;case PacketType[_0x3ebc41(0x59e,0x69b)]:case PacketType[_0x3ebc41(0x495,0x55f)]:this['onevent'](_0x9c8a79);break;case PacketType['ACK']:case PacketType[_0x3ebc41(0x5b0,0x560)]:this[_0x3ebc41(0x4fa,0x56d)](_0x9c8a79);break;case PacketType['DISCONNECT']:this[_0x3ebc41(0x5c5,0x587)]();break;case PacketType[_0x3ebc41(0x4ba,0x513)]:this['destroy']();const _0x1ccf40=new Error(_0x9c8a79['data']['message']);_0x1ccf40[_0x3ebc41(0x5db,0x4ec)]=_0x9c8a79[_0x3ebc41(0x5db,0x5d7)]['data'],this[_0x3ebc41(0x471,0x54f)](_0x3ebc41(0x531,0x5f2),_0x1ccf40);break;}}['onevent'](_0x72f694){function _0x5f05f5(_0x27d4f1,_0x5e32ba){return _0x6f43(_0x27d4f1- -0x1b2,_0x5e32ba);}const _0x2f34e1=_0x72f694['data']||[];null!=_0x72f694['id']&&_0x2f34e1[_0x5f05f5(0x4d,0x132)](this['ack'](_0x72f694['id'])),this['connected']?this['emitEvent'](_0x2f34e1):this[_0x5f05f5(0x13b,0x1c6)][_0x5f05f5(0x4d,0x126)](Object[_0x5f05f5(0x46,0x143)](_0x2f34e1));}['emitEvent'](_0x10287c){function _0xc51449(_0x2b60de,_0x3dbc5f){return _0x6f43(_0x2b60de- -0x225,_0x3dbc5f);}if(this[_0xc51449(0xab,-0x5e)]&&this[_0xc51449(0xab,0x1a6)][_0xc51449(0x20,0xb)]){const listeners=this[_0xc51449(0xab,-0xb)]['slice']();for(const listener of listeners){listener['apply'](this,_0x10287c);}}super[_0xc51449(0x6d,0x121)]['apply'](this,_0x10287c),this[_0xc51449(0x46,0xb7)]&&_0x10287c[_0xc51449(0x20,0x6b)]&&typeof _0x10287c[_0x10287c[_0xc51449(0x20,0x112)]-0x1]==='string'&&(this[_0xc51449(-0x55,-0x8f)]=_0x10287c[_0x10287c['length']-0x1]);}[_0x2d7030(0x49d,0x4a9)](_0x581ab4){const _0x51ae12=this;let _0x25d721=![];return function(..._0x50fb3a){if(_0x25d721)return;function _0x113d20(_0x11f95b,_0x4b669d){return _0x6f43(_0x11f95b-0x2ca,_0x4b669d);}_0x25d721=!![],_0x51ae12[_0x113d20(0x5dc,0x6b9)]({'type':PacketType['ACK'],'id':_0x581ab4,'data':_0x50fb3a});};}['onack'](_0x177b76){const _0x5325f1=this[_0x32c286(-0xb4,-0x12e)][_0x177b76['id']];if(typeof _0x5325f1!==_0x32c286(0x1f,-0xc5))return;delete this[_0x32c286(-0xb4,-0x9b)][_0x177b76['id']];_0x5325f1['withError']&&_0x177b76[_0x32c286(0x99,0x18b)]['unshift'](null);function _0x32c286(_0x4b784c,_0x8eeb0b){return _0x6f43(_0x4b784c- -0x34a,_0x8eeb0b);}_0x5325f1['apply'](this,_0x177b76['data']);}[_0x2d7030(0x52b,0x63c)](_0x73229c,_0x33398c){this['id']=_0x73229c,this[_0x4692e9(0x58,0x63)]=_0x33398c&&this['_pid']===_0x33398c;function _0x4692e9(_0x45998b,_0x510a97){return _0x6f43(_0x45998b- -0x1ca,_0x510a97);}this['_pid']=_0x33398c,this[_0x4692e9(0x7f,0x115)]=!![],this['emitBuffered'](),this[_0x4692e9(0xaf,0x1ac)]('connect'),this[_0x4692e9(0x1fc,0x11e)](!![]);}[_0x2d7030(0x5c7,0x62d)](){this[_0x3c4a8c(0x1fa,0x31a)][_0x3c4a8c(0x4b7,0x3bd)](_0x1fe040=>this[_0x3c4a8c(0x301,0x2d6)](_0x1fe040));function _0x3c4a8c(_0x17a106,_0x4f09e5){return _0x6f43(_0x4f09e5-0x2d,_0x17a106);}this['receiveBuffer']=[],this['sendBuffer'][_0x3c4a8c(0x481,0x3bd)](_0x471d7a=>{this[_0x5d517b(-0x7f,-0x3c)](_0x471d7a);function _0x5d517b(_0x4d8b12,_0x1728cf){return _0x6f43(_0x1728cf- -0x20a,_0x4d8b12);}this[_0x5d517b(0x196,0x108)](_0x471d7a);}),this['sendBuffer']=[];}[_0x2d7030(0x526,0x62f)](){this['destroy']();function _0x442288(_0x3fa881,_0x3d575f){return _0x6f43(_0x3d575f- -0x17a,_0x3fa881);}this['onclose'](_0x442288(0x1c9,0x244));}['destroy'](){this[_0x4950c7(0x605,0x70a)]&&(this[_0x4950c7(0x605,0x683)]['forEach'](_0x5d138e=>_0x5d138e()),this[_0x4950c7(0x605,0x60c)]=undefined);function _0x4950c7(_0x3c08a6,_0xc31c7e){return _0x6f43(_0x3c08a6-0x32a,_0xc31c7e);}this['io']['_destroy'](this);}['disconnect'](){this['connected']&&this[_0x5601c2(0x584,0x605)]({'type':PacketType['DISCONNECT']});this['destroy']();function _0x5601c2(_0x508362,_0xba9f7f){return _0x6f43(_0xba9f7f-0x2f3,_0x508362);}return this[_0x5601c2(0x529,0x53c)]&&this['onclose']('io\x20client\x20disconnect'),this;}['close'](){function _0x118164(_0x5081e6,_0x22423b){return _0x6f43(_0x22423b-0x111,_0x5081e6);}return this[_0x118164(0x4d1,0x486)]();}['compress'](_0x302204){return this['flags']['compress']=_0x302204,this;}get[_0x2d7030(0x676,0x556)](){return this['flags']['volatile']=!![],this;}[_0x2d7030(0x6f1,0x5dc)](_0x1da41d){function _0x4a8e40(_0x49666e,_0xd21964){return _0x6f43(_0xd21964- -0xcd,_0x49666e);}return this[_0x4a8e40(0x24e,0x271)]['timeout']=_0x1da41d,this;}['onAny'](listener){return this['_anyListeners']=this['_anyListeners']||[],this['_anyListeners']['push'](listener),this;}['prependAny'](listener){function _0x2ae6c3(_0x3fbd29,_0x13239f){return _0x6f43(_0x3fbd29-0x358,_0x13239f);}return this['_anyListeners']=this[_0x2ae6c3(0x628,0x73d)]||[],this[_0x2ae6c3(0x628,0x70b)][_0x2ae6c3(0x65b,0x623)](listener),this;}['offAny'](listener){if(!this[_0x575a75(0x16c,0x14a)])return this;if(listener){const listeners=this[_0x575a75(0x16c,0x163)];for(let _0x107051=0x0;_0x107051<listeners[_0x575a75(0xe1,0x8f)];_0x107051++){if(listener===listeners[_0x107051])return listeners['splice'](_0x107051,0x1),this;}}else this['_anyListeners']=[];function _0x575a75(_0x1eb2b3,_0x295c56){return _0x6f43(_0x1eb2b3- -0x164,_0x295c56);}return this;}['listenersAny'](){return this['_anyListeners']||[];}[_0x2d7030(0x5b9,0x4a3)](listener){function _0x2a9723(_0x1c1396,_0x97066b){return _0x6f43(_0x1c1396-0x205,_0x97066b);}return this['_anyOutgoingListeners']=this['_anyOutgoingListeners']||[],this['_anyOutgoingListeners'][_0x2a9723(0x404,0x410)](listener),this;}['prependAnyOutgoing'](listener){return this['_anyOutgoingListeners']=this['_anyOutgoingListeners']||[],this['_anyOutgoingListeners']['unshift'](listener),this;}['offAnyOutgoing'](listener){if(!this['_anyOutgoingListeners'])return this;function _0x18221b(_0x44fc97,_0x1dd4d6){return _0x6f43(_0x1dd4d6-0x169,_0x44fc97);}if(listener){const listeners=this['_anyOutgoingListeners'];for(let _0x3023a2=0x0;_0x3023a2<listeners[_0x18221b(0x46d,0x3ae)];_0x3023a2++){if(listener===listeners[_0x3023a2])return listeners[_0x18221b(0x440,0x467)](_0x3023a2,0x1),this;}}else this[_0x18221b(0x425,0x4aa)]=[];return this;}['listenersAnyOutgoing'](){return this['_anyOutgoingListeners']||[];}[_0x2d7030(0x438,0x430)](_0x31206b){function _0x3d1c73(_0x4c2b83,_0x511b6b){return _0x6f43(_0x4c2b83- -0x27d,_0x511b6b);}if(this[_0x3d1c73(0xc4,0x189)]&&this[_0x3d1c73(0xc4,0x122)]['length']){const listeners=this['_anyOutgoingListeners']['slice']();for(const listener of listeners){listener[_0x3d1c73(0x84,0xe7)](this,_0x31206b[_0x3d1c73(0x166,0x129)]);}}}}function Backoff(_0x4a949f){_0x4a949f=_0x4a949f||{},this['ms']=_0x4a949f['min']||0x64,this[_0x1d0c21(0x486,0x3f7)]=_0x4a949f['max']||0x2710,this['factor']=_0x4a949f['factor']||0x2;function _0x1d0c21(_0x29bd4b,_0x40c636){return _0x6f43(_0x29bd4b-0x10f,_0x40c636);}this[_0x1d0c21(0x4ab,0x586)]=_0x4a949f[_0x1d0c21(0x4ab,0x3fd)]>0x0&&_0x4a949f[_0x1d0c21(0x4ab,0x3a1)]<=0x1?_0x4a949f['jitter']:0x0,this['attempts']=0x0;}Backoff['prototype'][_0x2d7030(0x527,0x46a)]=function(){function _0x4953c0(_0x2cde03,_0x3d1132){return _0x6f43(_0x2cde03- -0x5,_0x3d1132);}var _0x266e43=this['ms']*Math['pow'](this[_0x4953c0(0x2ca,0x321)],this[_0x4953c0(0x1e4,0x24b)]++);if(this['jitter']){var _0x131568=Math[_0x4953c0(0x28f,0x1f0)](),_0x4b9a97=Math[_0x4953c0(0x3e2,0x3da)](_0x131568*this['jitter']*_0x266e43);_0x266e43=(Math[_0x4953c0(0x3e2,0x45c)](_0x131568*0xa)&0x1)==0x0?_0x266e43-_0x4b9a97:_0x266e43+_0x4b9a97;}return Math['min'](_0x266e43,this['max'])|0x0;},Backoff['prototype']['reset']=function(){this['attempts']=0x0;},Backoff['prototype']['setMin']=function(min){this['ms']=min;},Backoff[_0x2d7030(0x56d,0x567)][_0x2d7030(0x736,0x63b)]=function(_0x4547f2){function _0x333117(_0x4c92d7,_0x3b5d0c){return _0x6f43(_0x4c92d7-0x4d,_0x3b5d0c);}this[_0x333117(0x3c4,0x4db)]=_0x4547f2;},Backoff['prototype']['setJitter']=function(_0x5355aa){function _0x460b8a(_0xf85507,_0x2e2758){return _0x6f43(_0x2e2758- -0x288,_0xf85507);}this[_0x460b8a(0xd2,0x114)]=_0x5355aa;};class Manager extends Emitter{constructor(_0x3f7be0,_0x35c468){var _0x7fcdfd;super(),this['nsps']={},this['subs']=[];_0x3f7be0&&'object'===typeof _0x3f7be0&&(_0x35c468=_0x3f7be0,_0x3f7be0=undefined);_0x35c468=_0x35c468||{},_0x35c468[_0x5b2f79(0x4d0,0x3f9)]=_0x35c468[_0x5b2f79(0x446,0x3f9)]||'/socket.io',this['opts']=_0x35c468,installTimerFunctions(this,_0x35c468),this['reconnection'](_0x35c468['reconnection']!==![]),this[_0x5b2f79(0x49f,0x420)](_0x35c468['reconnectionAttempts']||Infinity),this['reconnectionDelay'](_0x35c468[_0x5b2f79(0x43b,0x365)]||0x3e8),this['reconnectionDelayMax'](_0x35c468[_0x5b2f79(0x3e1,0x364)]||0x1388),this[_0x5b2f79(0x505,0x41b)]((_0x7fcdfd=_0x35c468['randomizationFactor'])!==null&&_0x7fcdfd!==void 0x0?_0x7fcdfd:0.5),this[_0x5b2f79(0x4d0,0x45f)]=new Backoff({'min':this['reconnectionDelay'](),'max':this[_0x5b2f79(0x3c3,0x364)](),'jitter':this[_0x5b2f79(0x389,0x41b)]()}),this[_0x5b2f79(0x59c,0x4bb)](null==_0x35c468['timeout']?0x4e20:_0x35c468[_0x5b2f79(0x3d7,0x4bb)]);function _0x5b2f79(_0x5819be,_0x1782d1){return _0x6f43(_0x1782d1-0x141,_0x5819be);}this[_0x5b2f79(0x45b,0x449)]='closed',this[_0x5b2f79(0x5b9,0x4d0)]=_0x3f7be0;const _parser=_0x35c468[_0x5b2f79(0x5ca,0x4d9)]||parser;this['encoder']=new _parser[(_0x5b2f79(0x3f8,0x3a1))](),this['decoder']=new _parser[(_0x5b2f79(0x40a,0x4cb))](),this['_autoConnect']=_0x35c468[_0x5b2f79(0x32b,0x317)]!==![];if(this['_autoConnect'])this[_0x5b2f79(0x3c5,0x408)]();}[_0x2d7030(0x564,0x5b2)](_0x240b29){if(!arguments[_0x458fd0(-0x193,-0x1a8)])return this['_reconnection'];this[_0x458fd0(-0x11,0x10a)]=!!_0x240b29;function _0x458fd0(_0x118fa2,_0x4a45e7){return _0x6f43(_0x118fa2- -0x3d8,_0x4a45e7);}return!_0x240b29&&(this[_0x458fd0(-0x5d,-0xc8)]=!![]),this;}[_0x2d7030(0x490,0x541)](_0x3583dd){if(_0x3583dd===undefined)return this['_reconnectionAttempts'];return this['_reconnectionAttempts']=_0x3583dd,this;}[_0x2d7030(0x4bb,0x486)](_0x356b2e){var _0x21699b;if(_0x356b2e===undefined)return this[_0x5be49b(0x75d,0x657)];this[_0x5be49b(0x5ee,0x657)]=_0x356b2e,(_0x21699b=this[_0x5be49b(0x6f4,0x5f1)])===null||_0x21699b===void 0x0?void 0x0:_0x21699b[_0x5be49b(0x5fe,0x61f)](_0x356b2e);function _0x5be49b(_0x284efa,_0x7ffbd1){return _0x6f43(_0x7ffbd1-0x2d3,_0x284efa);}return this;}[_0x2d7030(0x64d,0x53c)](_0x584e82){function _0x277f8e(_0x53f764,_0x48ba45){return _0x6f43(_0x53f764- -0x238,_0x48ba45);}var _0x571672;if(_0x584e82===undefined)return this['_randomizationFactor'];return this['_randomizationFactor']=_0x584e82,(_0x571672=this[_0x277f8e(0xe6,0x104)])===null||_0x571672===void 0x0?void 0x0:_0x571672[_0x277f8e(-0x66,0x8d)](_0x584e82),this;}['reconnectionDelayMax'](_0x566c54){var _0x7fa628;if(_0x566c54===undefined)return this['_reconnectionDelayMax'];return this['_reconnectionDelayMax']=_0x566c54,(_0x7fa628=this['backoff'])===null||_0x7fa628===void 0x0?void 0x0:_0x7fa628['setMax'](_0x566c54),this;}[_0x2d7030(0x501,0x5dc)](_0xc30dad){if(!arguments['length'])return this[_0x182c98(0x47f,0x4dd)];this[_0x182c98(0x47f,0x4a0)]=_0xc30dad;function _0x182c98(_0x481720,_0x4878c3){return _0x6f43(_0x481720-0x1a9,_0x4878c3);}return this;}['maybeReconnectOnOpen'](){function _0xd8fe2(_0xeaaf9b,_0x5410a8){return _0x6f43(_0xeaaf9b- -0x98,_0x5410a8);}!this[_0xd8fe2(0x2b9,0x215)]&&this['_reconnection']&&this[_0xd8fe2(0x286,0x37f)]['attempts']===0x0&&this['reconnect']();}['open'](_0x44c6d2){if(~this['_readyState']['indexOf'](_0x4cb1cd(0x233,0x34c)))return this;this[_0x4cb1cd(0x2fd,0x27e)]=new Socket$1(this[_0x4cb1cd(0x39c,0x414)],this[_0x4cb1cd(0x1d0,0x2bd)]);const _0x49ac99=this[_0x4cb1cd(0x31b,0x27e)],_0x469ee6=this;function _0x4cb1cd(_0x59936c,_0x189a7f){return _0x6f43(_0x189a7f-0x85,_0x59936c);}this[_0x4cb1cd(0x3dc,0x38d)]=_0x4cb1cd(0x498,0x37a),this[_0x4cb1cd(0x2fc,0x400)]=![];const _0x27d8ee=on(_0x49ac99,_0x4cb1cd(0x39f,0x34c),function(){function _0x108e5b(_0x36a22d,_0x7f48a4){return _0x6f43(_0x7f48a4- -0x13c,_0x36a22d);}_0x469ee6[_0x108e5b(0xa1,0xae)](),_0x44c6d2&&_0x44c6d2();}),_0x540fe3=_0x2354ca=>{this['cleanup'](),this['_readyState']=_0x29e955(0x5f3,0x4e1);function _0x29e955(_0x2460ef,_0x2d240d){return _0x6f43(_0x2d240d-0x117,_0x2460ef);}this[_0x29e955(0x3b8,0x390)]('error',_0x2354ca),_0x44c6d2?_0x44c6d2(_0x2354ca):this[_0x29e955(0x3a0,0x2f7)]();},_0x5f0bb1=on(_0x49ac99,'error',_0x540fe3);if(![]!==this[_0x4cb1cd(0x42c,0x35b)]){const _0x265654=this[_0x4cb1cd(0x2e3,0x35b)],_0x12d471=this[_0x4cb1cd(0x357,0x301)](()=>{function _0x4da506(_0x56314e,_0x3ac6d8){return _0x6f43(_0x56314e-0x9b,_0x3ac6d8);}_0x27d8ee(),_0x540fe3(new Error('timeout')),_0x49ac99[_0x4da506(0x2f1,0x336)]();},_0x265654);this['opts']['autoUnref']&&_0x12d471[_0x4cb1cd(0x4dd,0x423)](),this[_0x4cb1cd(0x43a,0x360)][_0x4cb1cd(0x2bb,0x284)](()=>{function _0x369b8b(_0x4e270a,_0x3ef8e4){return _0x6f43(_0x4e270a- -0x17c,_0x3ef8e4);}this[_0x369b8b(0x14f,0xc7)](_0x12d471);});}return this[_0x4cb1cd(0x345,0x360)][_0x4cb1cd(0x23f,0x284)](_0x27d8ee),this['subs']['push'](_0x5f0bb1),this;}['connect'](_0x54d028){function _0x20fe9c(_0x3cb36d,_0x5c0b33){return _0x6f43(_0x5c0b33-0x33e,_0x3cb36d);}return this[_0x20fe9c(0x543,0x605)](_0x54d028);}['onopen'](){this[_0x58ab60(-0x12f,-0x6f)]();function _0x58ab60(_0x152ca3,_0x49affc){return _0x6f43(_0x49affc- -0x257,_0x152ca3);}this[_0x58ab60(0x107,0xb1)]='open',this['emitReserved'](_0x58ab60(0x66,0x70));const _0x34ac4d=this[_0x58ab60(0x70,-0x5e)];this[_0x58ab60(-0x5e,0x84)]['push'](on(_0x34ac4d,'ping',this['onping'][_0x58ab60(0xb0,-0x2d)](this)),on(_0x34ac4d,_0x58ab60(0xaf,0x18c),this[_0x58ab60(0x139,0xe1)][_0x58ab60(0xe1,-0x2d)](this)),on(_0x34ac4d,_0x58ab60(-0xc3,0x5a),this[_0x58ab60(-0x102,-0x40)][_0x58ab60(-0xc2,-0x2d)](this)),on(_0x34ac4d,'close',this[_0x58ab60(-0xa1,0x29)][_0x58ab60(0xae,-0x2d)](this)),on(this[_0x58ab60(-0x151,-0x7a)],_0x58ab60(-0x1b,0xd4),this['ondecoded'][_0x58ab60(-0xe2,-0x2d)](this)));}[_0x2d7030(0x5f5,0x5c4)](){this['emitReserved']('ping');}[_0x2d7030(0x515,0x59a)](data){function _0xd6aa6f(_0xf92ceb,_0xe06399){return _0x6f43(_0xf92ceb- -0x2cb,_0xe06399);}try{this[_0xd6aa6f(-0xee,-0x82)]['add'](data);}catch(_0x22ea86){this[_0xd6aa6f(-0x4b,-0x71)]('parse\x20error',_0x22ea86);}}['ondecoded'](_0x4bdf39){nextTick(()=>{this['emitReserved']('packet',_0x4bdf39);},this['setTimeoutFn']);}['onerror'](_0x3d492a){this['emitReserved']('error',_0x3d492a);}['socket'](_0x21bb89,_0x25606b){let _0x4e0ccb=this[_0xbfe880(0x286,0x3a6)][_0x21bb89];function _0xbfe880(_0x144977,_0x5a490b){return _0x6f43(_0x144977-0x46,_0x5a490b);}if(!_0x4e0ccb)_0x4e0ccb=new Socket(this,_0x21bb89,_0x25606b),this['nsps'][_0x21bb89]=_0x4e0ccb;else this['_autoConnect']&&!_0x4e0ccb['active']&&_0x4e0ccb['connect']();return _0x4e0ccb;}[_0x2d7030(0x6fd,0x64c)](_0x25ccdf){const _0x3e1c52=Object['keys'](this[_0x179ba7(-0xec,-0x19)]);for(const _0x25aca1 of _0x3e1c52){const _0x5ad987=this[_0x179ba7(-0xec,-0x41)][_0x25aca1];if(_0x5ad987[_0x179ba7(-0x3d,-0x153)])return;}function _0x179ba7(_0x4f6d76,_0x1bd1d7){return _0x6f43(_0x4f6d76- -0x32c,_0x1bd1d7);}this['_close']();}['_packet'](_0x504c17){const _0x6f00a4=this[_0x5357c1(0x424,0x354)][_0x5357c1(0x20e,0x25a)](_0x504c17);function _0x5357c1(_0x295bf6,_0x42fbd1){return _0x6f43(_0x42fbd1- -0x2e,_0x295bf6);}for(let _0x2888a6=0x0;_0x2888a6<_0x6f00a4[_0x5357c1(0x159,0x217)];_0x2888a6++){this['engine'][_0x5357c1(0x1d7,0x26c)](_0x6f00a4[_0x2888a6],_0x504c17[_0x5357c1(0x22f,0x227)]);}}[_0x2d7030(0x4c4,0x44a)](){function _0x225c14(_0x5518b0,_0x236aea){return _0x6f43(_0x5518b0- -0x1b2,_0x236aea);}this['subs']['forEach'](_0x5e53d2=>_0x5e53d2()),this[_0x225c14(0x129,0x10e)][_0x225c14(0x93,0x11e)]=0x0,this['decoder']['destroy']();}[_0x2d7030(0x514,0x52a)](){function _0x1d6eaf(_0x2629ed,_0x3976f6){return _0x6f43(_0x3976f6- -0x10c,_0x2629ed);}this['skipReconnect']=!![],this['_reconnecting']=![],this[_0x1d6eaf(0x1f7,0x174)](_0x1d6eaf(0x2e9,0x1ff));}[_0x2d7030(0x5b8,0x5d7)](){function _0x382f00(_0x57da92,_0x889a40){return _0x6f43(_0x889a40- -0x219,_0x57da92);}return this[_0x382f00(0x60,0xaf)]();}[_0x2d7030(0x4e0,0x4e2)](_0x2538ec,_0x593bae){function _0xd2b8a4(_0x11a846,_0x522c38){return _0x6f43(_0x11a846-0x1f7,_0x522c38);}var _0x41e011;this['cleanup'](),(_0x41e011=this['engine'])===null||_0x41e011===void 0x0?void 0x0:_0x41e011['close'](),this['backoff'][_0xd2b8a4(0x540,0x497)](),this[_0xd2b8a4(0x4ff,0x5c2)]=_0xd2b8a4(0x5c1,0x50b),this[_0xd2b8a4(0x470,0x38f)](_0xd2b8a4(0x44d,0x4d5),_0x2538ec,_0x593bae),this['_reconnection']&&!this[_0xd2b8a4(0x572,0x48e)]&&this[_0xd2b8a4(0x54e,0x4d9)]();}['reconnect'](){if(this['_reconnecting']||this[_0x54e64f(0x3ac,0x344)])return this;const _0x1de540=this;function _0x54e64f(_0x31de96,_0xfec756){return _0x6f43(_0x31de96-0x31,_0xfec756);}if(this[_0x54e64f(0x34f,0x316)][_0x54e64f(0x21a,0x2ea)]>=this['_reconnectionAttempts'])this[_0x54e64f(0x34f,0x3a8)]['reset'](),this['emitReserved'](_0x54e64f(0x399,0x2f9)),this['_reconnecting']=![];else{const _0x577ddc=this['backoff'][_0x54e64f(0x239,0x282)]();this['_reconnecting']=!![];const _0x1b816d=this['setTimeoutFn'](()=>{if(_0x1de540['skipReconnect'])return;this[_0xd54396(0x180,0x93)](_0xd54396(0x110,0xbd),_0x1de540[_0xd54396(0x8b,0x138)][_0xd54396(-0x8f,0x3)]);if(_0x1de540[_0xd54396(0x87,0x195)])return;function _0xd54396(_0xb90e70,_0x34fe4b){return _0x6f43(_0x34fe4b- -0x1e6,_0xb90e70);}_0x1de540[_0xd54396(0x79,0xe1)](_0x373fda=>{function _0x5ee423(_0x55a970,_0x2c8cbe){return _0x6f43(_0x2c8cbe-0xda,_0x55a970);}_0x373fda?(_0x1de540[_0x5ee423(0x33f,0x42b)]=![],_0x1de540[_0x5ee423(0x48d,0x431)](),this[_0x5ee423(0x3d1,0x353)](_0x5ee423(0x473,0x486),_0x373fda)):_0x1de540['onreconnect']();});},_0x577ddc);this['opts']['autoUnref']&&_0x1b816d['unref'](),this['subs'][_0x54e64f(0x230,0x184)](()=>{function _0x1f1b30(_0x4e93a1,_0x5d9b01){return _0x6f43(_0x4e93a1-0x2fa,_0x5d9b01);}this[_0x1f1b30(0x5c5,0x59d)](_0x1b816d);});}}['onreconnect'](){const _0x369086=this['backoff']['attempts'];function _0x157592(_0x1322bf,_0xb0fe4c){return _0x6f43(_0xb0fe4c- -0xd,_0x1322bf);}this['_reconnecting']=![],this[_0x157592(0x2dc,0x311)]['reset'](),this['emitReserved'](_0x157592(0x3dc,0x34a),_0x369086);}}const cache={};function lookup(_0x5e1960,_0x513392){typeof _0x5e1960==='object'&&(_0x513392=_0x5e1960,_0x5e1960=undefined);_0x513392=_0x513392||{};const parsed=url(_0x5e1960,_0x513392['path']||'/socket.io'),_0x2864f0=parsed['source'],_0x50f363=parsed['id'],_0x168945=parsed[_0x18eb41(0x3ff,0x437)],_0x189d69=cache[_0x50f363]&&_0x168945 in cache[_0x50f363]['nsps'];function _0x18eb41(_0x26a1d0,_0x30b63a){return _0x6f43(_0x26a1d0-0x147,_0x30b63a);}const _0x165157=_0x513392[_0x18eb41(0x3ac,0x307)]||_0x513392['force\x20new\x20connection']||![]===_0x513392[_0x18eb41(0x365,0x316)]||_0x189d69;let _0x19e89b;return _0x165157?_0x19e89b=new Manager(_0x2864f0,_0x513392):(!cache[_0x50f363]&&(cache[_0x50f363]=new Manager(_0x2864f0,_0x513392)),_0x19e89b=cache[_0x50f363]),parsed[_0x18eb41(0x323,0x407)]&&!_0x513392['query']&&(_0x513392['query']=parsed[_0x18eb41(0x3d6,0x338)]),_0x19e89b[_0x18eb41(0x4eb,0x54e)](parsed[_0x18eb41(0x3ff,0x429)],_0x513392);}Object['assign'](lookup,{'Manager':Manager,'Socket':Socket,'io':lookup,'connect':lookup});var index=Object['freeze']({'__proto__':null,'Manager':Manager,'NodeWebSocket':WS,'NodeXHR':XHR,'Socket':Socket,'WebSocket':WS,'WebTransport':WT,'XHR':XHR,'connect':lookup,'default':lookup,'io':lookup,'protocol':protocol});exports[_0x2d7030(0x3e6,0x458)]=AuthClient,exports[_0x2d7030(0x608,0x5be)]=CustomDatabaseManager,exports['DatabaseClient']=DatabaseClient,exports['EBaaSClient']=EBaaSClient,exports[_0x2d7030(0x54b,0x428)]=EBaaSError,exports[_0x2d7030(0x495,0x573)]=FunctionsClient,exports['HttpClient']=HttpClient,exports['QueryBuilder']=QueryBuilder,exports['RealtimeChannel']=RealtimeChannel,exports['RealtimeClient']=RealtimeClient,exports['StorageBucket']=StorageBucket,exports[_0x2d7030(0x5ba,0x586)]=StorageClient,exports['createClient']=createClient,exports['version']=version;
1
+ 'use strict';(function(stringArrayFunction,comparisonValue){const stringArray=stringArrayFunction();function _0x496b29(_0x544a00,_0x5b4dcd){return _0xe923(_0x5b4dcd-0x18,_0x544a00);}while(!![]){try{const _0x88f5ff=-parseInt(_0x496b29(0x2cf,0x266))/0x1+parseInt(_0x496b29(0x262,0x240))/0x2+parseInt(_0x496b29(0x274,0x260))/0x3*(parseInt(_0x496b29(0x1a7,0x1ed))/0x4)+-parseInt(_0x496b29(0x258,0x1fb))/0x5*(-parseInt(_0x496b29(0x2a1,0x21c))/0x6)+parseInt(_0x496b29(0x28e,0x25c))/0x7+-parseInt(_0x496b29(0x21a,0x239))/0x8*(-parseInt(_0x496b29(0x227,0x263))/0x9)+-parseInt(_0x496b29(0x2d1,0x27c))/0xa*(parseInt(_0x496b29(0x1bb,0x1bd))/0xb);if(_0x88f5ff===comparisonValue)break;else stringArray['push'](stringArray['shift']());}catch(_0x4273a5){stringArray['push'](stringArray['shift']());}}}(_0x2a45,0x19f41));function _0x2a45(){const _0x2f2c53=['Cg9ZDgDYzxnqB3j0','zMLSzq','mta4mZaXturIuevm','zxjYB3jLza','B2zM','qxv0AenSAwvUDa','rMfPBgvKihrVigDLDcbIDwnRzxq','zw50CNLWB2LUDa','ChjVzhvJDa','BgLZDa','BgLZDej1y2TLDhm','BgvUz3rO','Bwv0Ag9K','B25Jzq','C3rHDgu','CNbJ','BgvHDMLUzW','yxnJzw5KAw5N','zxzLBNq','y3jLzgvUDgLHBhm','AxnezwXLDgu','yNvJA2v0swq','CgvYAw9K','zgvSzxrLqNvJA2v0','mZbnA1vYwhi','CMvJB25Uzwn0qxr0zw1WDhm','rMfPBgvKihrVihjLBw92zsbMAwXLCW','zgvMyxvSDhm','y29Kzq','BwfRzvjLzG','Cgf0y2G','p29WzxjHDgLVBJ1KzwXLDgu','x2DLDfnVy2TLDa','y2fWDhvYzvn0ywnRvhjHy2u','AgvHCNrIzwf0sw50zxj2ywW','CMvMCMvZAf90B2TLBG','y3vYCMvUDfnLC3nPB24','B2zMC2v0','C2vZC2LVBG','BwfW','zgv0zwn0q3vZDg9Trgf0ywjHC2u','CMvJB25Uzwn0sw50zxj2ywW','CMvZB2X1DgLVBJ1TzxjNzs1KDxbSAwnHDgvZlhjLDhvYBJ1YzxbYzxnLBNrHDgLVBG','z2v0vxnLCG','Ahr0CenSAwvUDa','C2LNBLvW','zM9YrwfJAa','zgvWBg95','CMvHBhrPBwu','zgf0ywjHC2u','DMvYAwz5','x3rYAwDNzxi','p3vWC2vYDd10CNvL','B3jKzxi','lMfZyW','y3vZDg9Trgf0ywjHC2vnyw5Hz2vY','uMvHBhrPBwvdAgfUBMvS','Dg9WAwm','C2v0','B25bDxrOu3rHDgvdAgfUz2u','y29TBw9U','z2v0u3rHDgu','l2zPBgvZ','shr0CenSAwvUDa','rMfPBgvKihrVignYzwf0zsbIDwnRzxq','l2z1BMn0Aw9UCY92ms8','zxjYB3i','rMfPBgvKihrVigXPC3qGzNvUy3rPB25Z','C29JA2v0qwrHChrLCG','l2LUzM8','rMfPBgvKihrVignYzwf0zsbZAwDUzwqGvvjm','y29UBMvJDa','C3rVCMfNzq','Aw1WB3j0twfW','rNvUy3rPB24GAw52B2nHDgLVBIbMywLSzwq','ChjLzMvY','vw5RBM93BIbLCNjVCG','BhrL','z2XVyMfS','Aw5PDgLHBgL6zq','yNvJA2v0','AgfUzgXLqxv0AevYCM9Y','C3vIC2nYAwjLx3bVC3rNCMvZx2nOyw5Nzxm','l3nKAY92ms8','zgf0yq','AgvHCNrIzwf0','B25qB3n0z3jLC0nOyw5Nzxm','zxzLBNrZ','l2XVz3m','l2f1DgGVDJeVC2rRl3nPz25PBG','l2zPBgvZl21VDMu','y29UDgvUDfr5Cgu','DgvZDenVBM5Ly3rPB24','Aw52B2TL','yxbPs2v5','D29YA3nWywnLswq','DMfSDwvZ','DMfSDwu','C29JA2v0lMLVlwnSAwvUDa','y3jLyxrLqNvJA2v0','Bwv0ywrHDge','u29JA2v0lMLVlwnSAwvUDcbUW6nVigvZDmoHigrPC3bVBSoTDMvSig5LC3rLigfTyMLLBNrLlIbqyxjHihvZyxiGzNvUy2LVBMfSAwrHzgvZigrLihjLywX0Aw1LlcbPBNn0ywXLoIbUCg0GAw5ZDgfSBcbZB2nRzxqUAw8Ty2XPzw50','z2v0q2HHBM5LBhm','rMfPBgvKihrVignVBM5Ly3qGywz0zxiG','AM9PBMLUzW','zgf0yufYCMf5','Bg9N','y29UBMvJDgLVBLn0yxrL','uMvXDwvZDcbMywLSzwq','zxHLy3v0zvf1zxj5','y29UzMLN','C3rHDhvZvgv4Da','nda0nZy3r1n2DNLb','DxnL','zNjVBq','Dw5KzwzPBMvK','BwvZC2fNzq','C2LUz2XL','B3bLCMf0B3i','AgvHzgvYCW','B3b0Aw9UCW','l2zPBgvZlW','Bwf4uMvJB25Uzwn0qxr0zw1WDhm','Dgv4Dc9WBgfPBG','C3rYAw5N','Dg9vChbLCKnHC2u','ChvIBgLJ','u1vcu0nssujfra','q3vZDg9Trgf0ywjHC2vnyw5Hz2vY','rMfPBgvKihrVihvWzgf0zsbIDwnRzxq','l3n0B3jHz2uVyNvJA2v0CY8','CMvTB3zLq3vZDg9Trgf0ywjHC2u','u3rVCMfNzunSAwvUDa','l2f1DgGVDJeVDxnLCG','zMLSDgvYCW','AM9PBMvKt25Jzq','AgfUzgXLrxjYB3i','z2v0q3vZDg9Trgf0ywjHC2vtDgf0Dxm','DxbSB2fK','C3vIC2nYAxb0Aw9UCW','DxnLCG','rMfPBgvKihrVigDLDcbMDw5JDgLVBIbTzxrYAwnZ','C2vHCMnO','Bg9HzfnLC3nPB24','l2zPBgvZl2nVChK','zxHLy3v0zq','DgfIBgu','AxndB25Uzwn0zwq','z2v0','BMvX','AM9PBMvK','rMfPBgvKihrVihvWzgf0zsbMAwXLig1LDgfKyxrH','AM9PBG','DxbKyxrLvxnLCG','zgLZy29UBMvJDa','icHtDgf0Dxm6ia','Dg9tDhjPBMC','uMvHy3royxrPDMu','y2XLyxi','l2f1DgGVDJeVCMvMCMvZAa','mZyYmZz5EuHYB0W','BM9Kzq','BgvHDMu','CMvHy3qTBMf0AxzL','DxbZzxj0','A2v5CW','C2v0qxv0AfrVA2vU','C2v0DxbizwfYDgjLyxq','zgv0zwn0zwrdB25MAwC','CMvTB3zLqwXStgLZDgvUzxjZ','y29UBMvJDgvK','CMvTB3zLtgLZDgvUzxi','zw52','C2L6zq','ndmYodvQrwLjyxe','x2PVAw4','Cg9ZDgDYzxnFy2HHBMDLCW','rMfPBgvKihrVigDLDcbMDw5JDgLVBIbSB2DZ','rMfPBgvKihrVihrLC3qGy29UBMvJDgLVBG','y29UBMvJDf9LCNjVCG','Chv0','C3vIC2nYAwjL','Bgv2zwW','Cg9ZDgDYzxnFy2HHBMDLCZO','AgfZ','x3nLDfn0yxrL','C3vIC3rYAw5N','C2v0u2vZC2LVBKLUDgvYBMfS','zgLZy29UBMvJDgvK','DxjS','DxbKyxrLqNvJA2v0','Cg9ZDgDYzxneyxrHyMfZzq','y2XVC2vK','rujHyvndBgLLBNq','C29YDej5','y29UzMLNDxjLq3vZDg9Trgf0ywjHC2u','ms4WlJa','C2v0u2vZC2LVBG','rMfPBgvKihrVihvWzgf0zsbMDw5JDgLVBIbLBNzPCM9UBwvUDa','Ec10B3rHBc1JB3vUDa','C3bSAxq','z2v0rgv0zwn0zwrdB25MAwC','rMfPBgvKihrVigXPC3qGyNvJA2v0CW','zw1PDa','C29JA2v0','y29SDw1U','C29JA2v0t3b0Aw9UCW','nNrMtK1xAa','z2v0twf4tgLZDgvUzxjZ','CMvZB2X2zq','y2XPzw50','yNjVywrJyxn0oG','CMv0DxjUpxjLChjLC2vUDgf0Aw9U','y2fJAgvdB250CM9S','C2v0DxbjBNrLCMnLChrVCNm','ChjLC2vUy2u','B3bLCMf0Aw9U','zgv0ywLSCW','C3rYAw5NAwz5','AgfZq3vZDg9Trgf0ywjHC2u','ChjLC2vUy2u6','BgLTAxq','yM9KEq','zgvSzxrL','D2fYBG','sfruucbYzxf1zxn0igzHAwXLza','CMvTB3zLqwXSq2HHBM5LBhm','rMfPBgvKihrVigrLBgv0zsbMDw5JDgLVBG','y2HHBM5LBhm','C3rHDhvZ','yNjVD3nLCG','C2nOzw1H','C2vSzwn0','l2rLCgXVEq','Dg9ku09o','y3vYCMvUDfnJAgvTyq','mZa1ndrhrNzdBhu','z2v0v29YA3nWywnLswq','ChjLCgvUzeXPC3rLBMvY','BMfTzq','rMfPBgvKihrVigDLDcbMAwXLigLUzM8','y2HHBM5LBa','rMfPBgvKihrVihvWBg9HzcbMAwXL','mtaWnZa2D2n3qMf0','CMvXDwvZDa','CMvTB3zL','ywrK','x3jLAM9PBG','y2XLyxjtzxnZAw9U','DxbKyxrLrgf0yq','l21LDhjPy3m','BgLRzq','CMvQzwn0','DxbKyxrLt3b0Aw9UCW','C29JA2v0lMLVlwnSAwvUDcbUB3qGyxzHAwXHyMXL','DxbKyxrLrMLSzu1LDgfKyxrH','y29UDgfPBNm','DhjHy2S','uhjLzMvY','rMfPBgvKihrVigXPC3qGzMLSzxm','Dw5ZDwjZy3jPyMu','z2v0u3rHDhvZ','CMf3tgLZDgvUzxjZ','yNjVywrJyxn0','C2v0v29YA3nWywnLswq','BgLZDgvUzxjZ','yxbWzw5K','ChvZAa','yMfZzvvsta','CxvLCNK','Bwf4tgLZDgvUzxjZ','nJG5nJeYv0HNB2z6','DxbKyxrL','Aw5Zzxj0','z2v0u2vZC2LVBG','mtvmDuv5Dgq','CMvZCg9UC2u','Cg9ZDa','mJG4uLjStgf6'];_0x2a45=function(){return _0x2f2c53;};return _0x2a45();}var axios=require('axios');class EBaaSError extends Error{constructor(_0x290047,status=0x0,_0xec9896){super(_0x290047),this['name']='EBaaSError',this['status']=status,this['details']=_0xec9896;function _0x4065cd(_0x48c799,_0x119176){return _0xe923(_0x119176- -0x1c7,_0x48c799);}Error['captureStackTrace']&&Error[_0x4065cd(0x118,0xa6)](this,EBaaSError);}[_0x36b514(0x34b,0x372)](){function _0x47f223(_0x231596,_0x345508){return _0xe923(_0x345508-0x3da,_0x231596);}return{'name':this[_0x47f223(0x64f,0x5fe)],'message':this['message'],'status':this['status'],'details':this[_0x47f223(0x56b,0x5e8)],'stack':this['stack']};}['toString'](){function _0x294ed1(_0xca613d,_0x2cabcc){return _0xe923(_0xca613d-0x33e,_0x2cabcc);}return this['name']+':\x20'+this[_0x294ed1(0x4e7,0x4ac)]+_0x294ed1(0x50e,0x56c)+this['status']+')';}}class HttpClient{constructor(config){this[_0x416a33(-0x177,-0x125)]=config[_0x416a33(-0x1c6,-0x227)];function _0x416a33(_0x44cff6,_0x2ed0cc){return _0xe923(_0x44cff6- -0x3b8,_0x2ed0cc);}this['apiKey']=config['apiKey'],this['client']=axios['create']({'baseURL':this[_0x416a33(-0x177,-0x1f7)],'timeout':config['timeout']||0x2710,'headers':{'Content-Type':'application/json','apikey':this['apiKey'],...config['headers']}}),this['setupInterceptors']();}[_0x36b514(0x337,0x3a3)](){function _0xcb5fa(_0x237854,_0x19d8a6){return _0xe923(_0x19d8a6-0x228,_0x237854);}this['client']['interceptors'][_0xcb5fa(0x416,0x451)]['use'](config=>{return config;},_0x355414=>{function _0x1e037e(_0x2782d7,_0x1d2dcc){return _0xe923(_0x2782d7- -0x342,_0x1d2dcc);}return Promise[_0x1e037e(-0x111,-0x11d)](new EBaaSError(_0x1e037e(-0x1a1,-0x148),0x0,_0x355414));}),this[_0xcb5fa(0x3f2,0x42f)]['interceptors']['response'][_0xcb5fa(0x38c,0x3ce)](response=>{return response;},_0x169c1b=>{const status=_0x169c1b['response']?.['status']||0x0,_0x2977ba=_0x169c1b[_0x263f43(-0xcb,-0x138)]?.[_0x263f43(-0x18b,-0x1d1)]?.['message']||_0x169c1b[_0x263f43(-0x16b,-0xe1)]||_0x263f43(-0x7c,-0xc2),_0xab59a6=_0x169c1b[_0x263f43(-0xcb,-0x134)]?.['data']||_0x169c1b;function _0x263f43(_0x52e7ed,_0x511e57){return _0xe923(_0x52e7ed- -0x314,_0x511e57);}return Promise[_0x263f43(-0xe3,-0x109)](new EBaaSError(_0x2977ba,status,_0xab59a6));});}async[_0x36b514(0x2f5,0x26b)](_0x521466,config){function _0x1b22b5(_0x5d90fd,_0x22d53f){return _0xe923(_0x5d90fd- -0x343,_0x22d53f);}try{const response=await this['client'][_0x1b22b5(-0x17a,-0x1d2)](_0x521466,config);return{'data':response['data'],'status':response['status'],'statusText':response[_0x1b22b5(-0x19f,-0x134)],'headers':response[_0x1b22b5(-0x197,-0x13c)]};}catch(_0x38a619){throw this[_0x1b22b5(-0x186,-0x1cd)](_0x38a619);}}async['post'](_0xb51031,data,config){function _0x7af927(_0x5a0a0f,_0x57a54d){return _0xe923(_0x57a54d-0x283,_0x5a0a0f);}try{const response=await this[_0x7af927(0x4a9,0x48a)]['post'](_0xb51031,data,config);return{'data':response['data'],'status':response['status'],'statusText':response['statusText'],'headers':response[_0x7af927(0x44a,0x42f)]};}catch(_0x5a5170){throw this['handleError'](_0x5a5170);}}async[_0x36b514(0x315,0x333)](_0x42a582,data,config){function _0x1e7c16(_0x46a5d5,_0x2124cd){return _0xe923(_0x46a5d5- -0x102,_0x2124cd);}try{const response=await this[_0x1e7c16(0x105,0x12c)][_0x1e7c16(0xe7,0xfa)](_0x42a582,data,config);return{'data':response['data'],'status':response['status'],'statusText':response['statusText'],'headers':response['headers']};}catch(_0x234d95){throw this[_0x1e7c16(0xbb,0x117)](_0x234d95);}}async['patch'](_0x1cc8e8,data,config){function _0xb09ae6(_0x241832,_0x30a9ac){return _0xe923(_0x241832-0x3b6,_0x30a9ac);}try{const response=await this[_0xb09ae6(0x5bd,0x5e4)][_0xb09ae6(0x620,0x60e)](_0x1cc8e8,data,config);return{'data':response[_0xb09ae6(0x53f,0x525)],'status':response[_0xb09ae6(0x5d0,0x56b)],'statusText':response['statusText'],'headers':response['headers']};}catch(_0x14f2c7){throw this['handleError'](_0x14f2c7);}}async['delete'](_0x1c017b,config){function _0x30088d(_0x4ecd85,_0x1b338d){return _0xe923(_0x4ecd85-0x116,_0x1b338d);}try{const response=await this['client'][_0x30088d(0x32a,0x300)](_0x1c017b,config);return{'data':response[_0x30088d(0x29f,0x306)],'status':response[_0x30088d(0x330,0x3a4)],'statusText':response[_0x30088d(0x2ba,0x319)],'headers':response['headers']};}catch(_0x1d09ca){throw this['handleError'](_0x1d09ca);}}['setAuthToken'](_0x8c6dda){function _0x29c43a(_0x363d49,_0x3faf27){return _0xe923(_0x363d49-0x239,_0x3faf27);}this[_0x29c43a(0x440,0x3d5)][_0x29c43a(0x4a0,0x44e)]['headers']['common']['Authorization']='Bearer\x20'+_0x8c6dda;}['removeAuthToken'](){delete this[_0x5a5c52(0x3e9,0x36e)][_0x5a5c52(0x449,0x3e1)]['headers'][_0x5a5c52(0x46a,0x474)]['Authorization'];function _0x5a5c52(_0x206f98,_0x3b4650){return _0xe923(_0x206f98-0x1e2,_0x3b4650);}this['client']['defaults']['headers'][_0x5a5c52(0x46a,0x429)]['Authorization']='Bearer\x20'+this['apiKey'];}[_0x36b514(0x2e9,0x331)](_0x3f25de){function _0x180671(_0x5c01ee,_0x1154af){return _0xe923(_0x1154af-0x88,_0x5c01ee);}if(_0x3f25de instanceof EBaaSError)return _0x3f25de;return new EBaaSError(_0x3f25de[_0x180671(0x2b8,0x231)]||_0x180671(0x256,0x29e),_0x3f25de[_0x180671(0x324,0x2a2)]||0x0,_0x3f25de);}}class AuthClient{constructor(_0x22c1c2,_0x5100f1){this['currentSession']=null,this['httpClient']=_0x22c1c2,this[_0x1e6913(-0x96,-0xab)]=_0x5100f1;function _0x1e6913(_0x3ab32f,_0x129279){return _0xe923(_0x129279- -0x23f,_0x3ab32f);}this[_0x1e6913(0x10,-0x7b)]();}async[_0x36b514(0x3a5,0x3e2)](data){function _0x13d11b(_0xfc9fcf,_0x131021){return _0xe923(_0xfc9fcf-0x21d,_0x131021);}try{const response=await this[_0x13d11b(0x495,0x4bb)][_0x13d11b(0x467,0x4bc)]('/auth/v1/signup',data);return response['data']['session']&&this['setSessionInternal'](response['data']['session']),response['data'];}catch(_0x4b5b7d){throw this[_0x13d11b(0x4ba,0x52e)](_0x4b5b7d);}}async['signIn'](data){function _0x280301(_0x3e4908,_0x3bb55f){return _0xe923(_0x3bb55f-0x139,_0x3e4908);}try{const headers={};this[_0x280301(0x24c,0x2cd)]&&(headers['X-Workspace-ID']=this['workspaceId']);const response=await this['httpClient'][_0x280301(0x31e,0x383)](_0x280301(0x31c,0x2c7),data,{'headers':headers});return response[_0x280301(0x2d5,0x2c2)][_0x280301(0x42c,0x3ab)]&&this[_0x280301(0x321,0x329)](response[_0x280301(0x28b,0x2c2)][_0x280301(0x3c2,0x3ab)]),response['data'];}catch(_0x55a0f1){throw this['handleAuthError'](_0x55a0f1);}}async['signOut'](){function _0x2a88f9(_0x440461,_0x3818bf){return _0xe923(_0x3818bf-0x1ba,_0x440461);}try{await this['httpClient'][_0x2a88f9(0x3d9,0x404)]('/auth/v1/signout'),this['clearSession']();}catch(_0x27e542){this[_0x2a88f9(0x38a,0x3e7)]();throw this['handleAuthError'](_0x27e542);}}async[_0x36b514(0x3a3,0x3e6)](){function _0x1c8430(_0x20c724,_0xe8b3ca){return _0xe923(_0x20c724-0x3a,_0xe8b3ca);}if(!this[_0x1c8430(0x2aa,0x23b)]?.['access_token'])return null;try{const response=await this['httpClient']['get'](_0x1c8430(0x1f4,0x183));return response[_0x1c8430(0x1c3,0x1fc)][_0x1c8430(0x1fb,0x24e)];}catch(_0x38d117){if(_0x38d117 instanceof EBaaSError&&_0x38d117['status']===0x191)return this['clearSession'](),null;throw this[_0x1c8430(0x2d7,0x32f)](_0x38d117);}}async['refreshSession'](){if(!this['currentSession']?.[_0xdf463c(0x3f7,0x438)])return null;function _0xdf463c(_0xb3c42a,_0x2b2bcf){return _0xe923(_0x2b2bcf-0x1c9,_0xb3c42a);}try{const response=await this['httpClient'][_0xdf463c(0x398,0x413)](_0xdf463c(0x370,0x39d),{'refresh_token':this['currentSession'][_0xdf463c(0x4b0,0x438)]});if(response[_0xdf463c(0x36e,0x352)][_0xdf463c(0x426,0x43b)])return this['setSession'](response['data'][_0xdf463c(0x3e9,0x43b)]),response['data']['session'];return null;}catch(_0x267050){this[_0xdf463c(0x454,0x3f6)]();throw this[_0xdf463c(0x4d1,0x466)](_0x267050);}}async['resetPassword'](_0x1ad7ac){function _0x2464b8(_0x2b8254,_0x280a75){return _0xe923(_0x2b8254-0x2bb,_0x280a75);}try{await this[_0x2464b8(0x533,0x508)]['post']('/auth/v1/reset-password',{'email':_0x1ad7ac});}catch(_0x14c42c){throw this[_0x2464b8(0x558,0x5c3)](_0x14c42c);}}async[_0x36b514(0x2fa,0x2b6)](data){function _0x2e3116(_0x16b807,_0x2e626c){return _0xe923(_0x16b807- -0x289,_0x2e626c);}try{const response=await this['httpClient']['put']('/auth/v1/user',data);return response[_0x2e3116(-0x100,-0x7b)][_0x2e3116(-0xc8,-0x65)];}catch(_0xdfd56c){throw this['handleAuthError'](_0xdfd56c);}}[_0x36b514(0x373,0x340)](){function _0x1973ec(_0x261488,_0x399df7){return _0xe923(_0x261488-0x309,_0x399df7);}return this[_0x1973ec(0x579,0x569)];}[_0x36b514(0x326,0x2fc)](_0x2f57c3){this[_0x5acf4a(0x573,0x4fb)]=_0x2f57c3;function _0x5acf4a(_0x4d4696,_0x173a76){return _0xe923(_0x4d4696-0x303,_0x173a76);}this['httpClient'][_0x5acf4a(0x4de,0x563)](_0x2f57c3['access_token']),typeof localStorage!=='undefined'&&localStorage['setItem']('ebaas.auth.session',JSON['stringify'](_0x2f57c3));}[_0x36b514(0x3b3,0x40c)](_0x5cf30b){return()=>{};}[_0x36b514(0x369,0x306)](_0x4822ce){function _0x3bc1d3(_0x2293e5,_0x512a01){return _0xe923(_0x2293e5- -0x284,_0x512a01);}this[_0x3bc1d3(-0xf0,-0x145)]=_0x4822ce;}['setSessionInternal'](_0x1ede4b){function _0x342b15(_0x5262e9,_0x18a87c){return _0xe923(_0x5262e9- -0x15e,_0x18a87c);}this['currentSession']=_0x1ede4b,this['httpClient'][_0x342b15(0x7d,0x9c)](_0x1ede4b['access_token']),typeof localStorage!=='undefined'&&localStorage['setItem']('ebaas.auth.session',JSON[_0x342b15(0xb1,0x118)](_0x1ede4b));}['clearSession'](){function _0x4ce73f(_0x167cd2,_0x441f8c){return _0xe923(_0x441f8c-0x91,_0x167cd2);}this[_0x4ce73f(0x35b,0x301)]=null,this['httpClient']['removeAuthToken'](),typeof localStorage!=='undefined'&&localStorage['removeItem']('ebaas.auth.session');}['loadSession'](){function _0x4b4d43(_0x162a53,_0x3db5f9){return _0xe923(_0x3db5f9- -0x116,_0x162a53);}if(typeof localStorage!=='undefined'){const _0x2e0804=localStorage['getItem']('ebaas.auth.session');if(_0x2e0804)try{const _0x2651db=JSON['parse'](_0x2e0804);this[_0x4b4d43(0xb9,0xda)](_0x2651db);}catch(_0x4c2ccf){this[_0x4b4d43(0xdc,0x117)]();}}}[_0x36b514(0x3c9,0x3f3)](_0x626c90){if(_0x626c90 instanceof EBaaSError)return _0x626c90;function _0x59d1df(_0x812348,_0x2db34f){return _0xe923(_0x812348- -0xc0,_0x2db34f);}return new EBaaSError(_0x626c90['message']||'Authentication\x20failed',_0x626c90[_0x59d1df(0x15a,0x1cf)]||0x0,_0x626c90);}}class QueryBuilder{constructor(_0x14d125,_0xcc275e,_0x1b555c,_0x376e54){this[_0x35ad3b(0x30f,0x379)]=_0x14d125,this['table']=_0xcc275e,this[_0x35ad3b(0x2e5,0x31d)]=_0x1b555c;function _0x35ad3b(_0x106890,_0x559230){return _0xe923(_0x559230-0x101,_0x106890);}this[_0x35ad3b(0x26f,0x295)]=_0x376e54,this['query']={'filters':[]};}[_0x36b514(0x349,0x2fc)](_0x5cf9fd='*',_0x1c3d82){this['query'][_0x5b5de2(0x196,0x162)]=_0x5cf9fd;function _0x5b5de2(_0x1f09fe,_0xae4080){return _0xe923(_0xae4080- -0xbb,_0x1f09fe);}return this;}[_0x36b514(0x372,0x317)](data,_0x4ad0e4){function _0x266643(_0x302c9c,_0x2795e7){return _0xe923(_0x2795e7-0x374,_0x302c9c);}return this['executeQuery']('POST',_0x266643(0x4a4,0x4fc)+this[_0x266643(0x4cd,0x53b)]+'?operation=insert',{'data':data,'options':_0x4ad0e4});}[_0x36b514(0x371,0x35f)](data,_0x456cde){this['query'][_0x7d5247(0x2ad,0x2d0)]=data,this[_0x7d5247(0x2c1,0x2b7)][_0x7d5247(0x2b1,0x2a4)]=_0x456cde;function _0x7d5247(_0x128dad,_0x59e2d0){return _0xe923(_0x128dad-0x7f,_0x59e2d0);}return this;}[_0x36b514(0x305,0x335)](data,_0x18731c){function _0x50ca4e(_0x4a4443,_0x2361e2){return _0xe923(_0x4a4443-0x2ab,_0x2361e2);}return this[_0x50ca4e(0x44d,0x3cf)]('POST',_0x50ca4e(0x433,0x3fb)+this['table']+'?operation=upsert',{'data':data,'options':{..._0x18731c,'upsert':!![]}});}['delete'](_0x40a09a){return this['query']['deleteOptions']=_0x40a09a,this['query']['isDelete']=!![],this;}['eq'](_0x52f6e2,_0x41b997){function _0x27ce0f(_0x24a709,_0x47234e){return _0xe923(_0x47234e-0x22d,_0x24a709);}return this['query']['filters'][_0x27ce0f(0x4b8,0x46d)]({'column':_0x52f6e2,'operator':'eq','value':_0x41b997}),this;}[_0x36b514(0x2f6,0x364)](_0x2139cd,_0x5a4f3a){function _0x23e696(_0x2f64cb,_0x5e437a){return _0xe923(_0x2f64cb- -0x303,_0x5e437a);}return this[_0x23e696(-0xc1,-0x116)][_0x23e696(-0x148,-0xe8)][_0x23e696(-0xc3,-0xd3)]({'column':_0x2139cd,'operator':_0x23e696(-0x139,-0x101),'value':_0x5a4f3a}),this;}['gt'](_0x5f1a41,_0x2a2c80){this[_0xd5f793(0x5d9,0x603)][_0xd5f793(0x56a,0x57c)]['push']({'column':_0x5f1a41,'operator':'gt','value':_0x2a2c80});function _0xd5f793(_0x3034ee,_0x562dde){return _0xe923(_0x562dde-0x3c1,_0x3034ee);}return this;}['gte'](_0x3edf20,_0x3b917f){function _0x53c02b(_0x25b1ee,_0x182ed8){return _0xe923(_0x25b1ee-0x253,_0x182ed8);}return this[_0x53c02b(0x495,0x4cf)][_0x53c02b(0x40e,0x483)][_0x53c02b(0x493,0x480)]({'column':_0x3edf20,'operator':'gte','value':_0x3b917f}),this;}['lt'](_0x1f86d6,_0x3b32d3){function _0x57265e(_0x20140d,_0x3a7cea){return _0xe923(_0x3a7cea- -0x39c,_0x20140d);}return this[_0x57265e(-0xf6,-0x15a)]['filters']['push']({'column':_0x1f86d6,'operator':'lt','value':_0x3b32d3}),this;}[_0x36b514(0x3c5,0x3a4)](_0x3a2101,_0x18cf31){function _0x36af83(_0x214426,_0x4cf88f){return _0xe923(_0x4cf88f-0x28d,_0x214426);}return this[_0x36af83(0x46e,0x4cf)]['filters'][_0x36af83(0x4aa,0x4cd)]({'column':_0x3a2101,'operator':_0x36af83(0x57a,0x526),'value':_0x18cf31}),this;}['like'](_0x5a8107,_0x3d3d8e){function _0x4ff736(_0x355121,_0x2139c6){return _0xe923(_0x355121- -0x62,_0x2139c6);}return this[_0x4ff736(0x1e0,0x1c1)]['filters']['push']({'column':_0x5a8107,'operator':_0x4ff736(0x1ce,0x155),'value':_0x3d3d8e}),this;}['ilike'](_0x416975,_0xb4c6cd){function _0x317943(_0x11eeab,_0x4453e4){return _0xe923(_0x11eeab- -0x160,_0x4453e4);}return this['query'][_0x317943(0x5b,-0x2c)]['push']({'column':_0x416975,'operator':'ilike','value':_0xb4c6cd}),this;}['is'](_0x42ca7c,_0x28b37e){function _0x56047e(_0x132b08,_0x27224d){return _0xe923(_0x132b08-0x1ce,_0x27224d);}return this['query'][_0x56047e(0x389,0x3ee)][_0x56047e(0x40e,0x479)]({'column':_0x42ca7c,'operator':'is','value':_0x28b37e}),this;}['in'](_0x2c79e5,_0x2e5926){this[_0x167e81(0x4b3,0x4cf)][_0x167e81(0x446,0x448)]['push']({'column':_0x2c79e5,'operator':'in','value':_0x2e5926});function _0x167e81(_0x4b875e,_0xabe877){return _0xe923(_0xabe877-0x28d,_0x4b875e);}return this;}[_0x36b514(0x361,0x372)](_0x1627c9,_0x50ea2b){function _0x660627(_0x49485e,_0x3bb539){return _0xe923(_0x49485e-0xdb,_0x3bb539);}return this['query'][_0x660627(0x296,0x275)]['push']({'column':_0x1627c9,'operator':_0x660627(0x310,0x36c),'value':_0x50ea2b}),this;}['match'](_0x30f715){function _0x5f53a9(_0x289bbe,_0x368ee4){return _0xe923(_0x289bbe- -0x145,_0x368ee4);}return Object['entries'](_0x30f715)[_0x5f53a9(0x135,0x16a)](([_0x183dac,_0xe2b0b9])=>{this['eq'](_0x183dac,_0xe2b0b9);}),this;}[_0x36b514(0x3ad,0x3ab)](_0x4f9daf,_0x5a6fc5){!this['query'][_0x5e4d8a(0x64e,0x629)]&&(this['query']['order']=[]);this[_0x5e4d8a(0x60f,0x681)][_0x5e4d8a(0x64e,0x5d6)][_0x5e4d8a(0x60d,0x68e)]({'column':_0x4f9daf,'ascending':_0x5a6fc5?.['ascending']!==![]});function _0x5e4d8a(_0xbcc470,_0x2bb343){return _0xe923(_0xbcc470-0x3cd,_0x2bb343);}return this;}[_0x36b514(0x33e,0x36c)](count){this[_0x47bd48(0x20,-0x55)][_0x47bd48(-0x70,-0x85)]=count;function _0x47bd48(_0x2cbe90,_0x407b28){return _0xe923(_0x407b28- -0x297,_0x2cbe90);}return this;}['range'](from,_0x3b86da){return this['query']['range']={'from':from,'to':_0x3b86da},this;}async[_0x36b514(0x2f2,0x2b3)](){function _0x15f9e9(_0x339fca,_0x1e9f1d){return _0xe923(_0x339fca-0x1b2,_0x1e9f1d);}if(this['query']['updateData'])return this['executeQuery']('PATCH','/sdk/v1/'+this['table'],{'data':this['query']['updateData'],'options':this[_0x15f9e9(0x3f4,0x434)][_0x15f9e9(0x3e4,0x36a)],'filters':this['query']['filters']});else return this[_0x15f9e9(0x3f4,0x42f)][_0x15f9e9(0x412,0x49c)]?this['executeQuery']('DELETE',_0x15f9e9(0x33a,0x2eb)+this['table']+_0x15f9e9(0x41d,0x48a),{'options':this[_0x15f9e9(0x3f4,0x46a)]['deleteOptions'],'filters':this['query'][_0x15f9e9(0x36d,0x32c)]}):this[_0x15f9e9(0x354,0x365)]('GET',_0x15f9e9(0x33a,0x398)+this['table']+'?operation=select',{'select':this['query'][_0x15f9e9(0x3cf,0x372)],'filters':this['query']['filters'],'order':this['query']['order'],'limit':this[_0x15f9e9(0x3f4,0x395)][_0x15f9e9(0x3c4,0x44a)],'range':this['query']['range']});}async[_0x36b514(0x2d6,0x2e9)](){this['limit'](0x1);const result=await this['execute']();function _0x49a730(_0x14f1ac,_0x256420){return _0xe923(_0x14f1ac-0x88,_0x256420);}return{'data':result[_0x49a730(0x211,0x23f)]?.[0x0]||null,'error':result['error']};}async['executeQuery'](_0x124215,_0x17760b,_0x148558){function _0x1fac90(_0x59ae38,_0x492a98){return _0xe923(_0x492a98-0x1b0,_0x59ae38);}try{let response;const headers={};this[_0x1fac90(0x347,0x344)]&&(headers['x-workspace-id']=this['workspaceId']);if(_0x124215==='GET'){const _0xaffbd=_0x17760b[_0x1fac90(0x3dd,0x3ad)]('?'),_0x40b8af=_0xaffbd[0x0],existingParams=new URLSearchParams(_0xaffbd[0x1]||'');if(_0x148558[_0x1fac90(0x440,0x3cd)])existingParams[_0x1fac90(0x3e5,0x3ef)](_0x1fac90(0x456,0x3cd),_0x148558[_0x1fac90(0x3e2,0x3cd)]);_0x148558[_0x1fac90(0x333,0x36b)]?.['length']&&_0x148558[_0x1fac90(0x383,0x36b)]['forEach'](filter=>{function _0xd0623d(_0x264a40,_0x448951){return _0xe923(_0x264a40-0x2ab,_0x448951);}existingParams['append'](filter[_0xd0623d(0x4ad,0x4a5)],filter['operator']+'.'+filter['value']);});if(_0x148558[_0x1fac90(0x41a,0x431)]?.[_0x1fac90(0x42c,0x407)]){const orderStr=_0x148558['order'][_0x1fac90(0x475,0x423)](_0xd35d5a=>''+_0xd35d5a[_0x1fac90(0x416,0x3b2)]+(_0xd35d5a[_0x1fac90(0x418,0x40d)]?_0x1fac90(0x4ba,0x432):'.desc'))[_0x1fac90(0x319,0x37d)](',');existingParams[_0x1fac90(0x3e4,0x3ef)](_0x1fac90(0x435,0x431),orderStr);}if(_0x148558['limit'])existingParams['append']('limit',_0x148558['limit']['toString']());_0x148558['range']&&(existingParams[_0x1fac90(0x3de,0x3ef)](_0x1fac90(0x395,0x421),_0x148558['range']['from'][_0x1fac90(0x409,0x381)]()),existingParams['append'](_0x1fac90(0x42a,0x3c2),(_0x148558['range']['to']-_0x148558['range']['from']+0x1)['toString']())),response=await this['httpClient'][_0x1fac90(0x335,0x379)](_0x40b8af+'?'+existingParams['toString'](),{'headers':headers});}else{if(_0x124215==='DELETE'){const _0x252211=_0x17760b[_0x1fac90(0x428,0x3ad)]('?'),_0x4766b8=_0x252211[0x0],existingParams=new URLSearchParams(_0x252211[0x1]||'');!existingParams['has'](_0x1fac90(0x434,0x3bd))&&existingParams['append'](_0x1fac90(0x36a,0x3bd),'delete');_0x148558['filters']?.[_0x1fac90(0x454,0x407)]&&_0x148558[_0x1fac90(0x354,0x36b)][_0x1fac90(0x46f,0x42a)](filter=>{function _0x4bb101(_0xf67743,_0x1aa2e6){return _0xe923(_0x1aa2e6-0x339,_0xf67743);}existingParams[_0x4bb101(0x505,0x578)](filter['column'],filter[_0x4bb101(0x4de,0x4e4)]+'.'+filter[_0x4bb101(0x515,0x4cf)]);});const deleteUrl=_0x4766b8+'?'+existingParams['toString']();console[_0x1fac90(0x358,0x34f)]('\uD83D\uDD27 DELETE URL construída:',deleteUrl),console['log']('\uD83D\uDD27 DELETE headers:',headers),console['log']('\uD83D\uDD27 DELETE filtros originais:',_0x148558[_0x1fac90(0x31e,0x36b)]),response=await this[_0x1fac90(0x3d0,0x428)][_0x1fac90(0x43d,0x3c4)](deleteUrl,{'headers':headers});}else{if(_0x124215==='PATCH'){const _0x4797cc=_0x17760b[_0x1fac90(0x42f,0x3ad)]('?'),_0x23ed8f=_0x4797cc[0x0],existingParams=new URLSearchParams(_0x4797cc[0x1]||'');!existingParams[_0x1fac90(0x420,0x39d)]('operation')&&existingParams['append'](_0x1fac90(0x431,0x3bd),_0x1fac90(0x429,0x3f5));_0x148558['filters']?.[_0x1fac90(0x479,0x407)]&&_0x148558[_0x1fac90(0x3c3,0x36b)]['forEach'](filter=>{function _0x5322c1(_0x3684bd,_0x32ef40){return _0xe923(_0x3684bd-0xe0,_0x32ef40);}existingParams[_0x5322c1(0x31f,0x2b4)](filter[_0x5322c1(0x2e2,0x31b)],filter[_0x5322c1(0x28b,0x2a8)]+'.'+filter[_0x5322c1(0x276,0x302)]);});_0x148558[_0x1fac90(0x3dc,0x35d)]?.[_0x1fac90(0x435,0x447)]&&(headers[_0x1fac90(0x445,0x3e7)]=_0x148558[_0x1fac90(0x32a,0x35d)]['prefer']);const updateUrl=_0x23ed8f+'?'+existingParams['toString']();response=await this[_0x1fac90(0x4af,0x428)][_0x1fac90(0x491,0x41a)](updateUrl,_0x148558[_0x1fac90(0x36a,0x339)],{'headers':headers});}else{let _0x2cb0e1=_0x148558['data'];!headers[_0x1fac90(0x3fc,0x3e7)]&&(headers['Prefer']=_0x1fac90(0x408,0x3b9)),_0x148558[_0x1fac90(0x36b,0x35d)]?.['upsert']&&(headers[_0x1fac90(0x42c,0x3e7)]=_0x1fac90(0x44e,0x426)),_0x148558[_0x1fac90(0x339,0x34e)]&&(_0x2cb0e1=_0x148558[_0x1fac90(0x2ce,0x34e)]),response=await this[_0x1fac90(0x3c0,0x428)]['post'](_0x17760b,_0x2cb0e1,{'headers':headers});}}}return{'data':response['data'],'error':null,'count':response['headers']?.[_0x1fac90(0x3f4,0x3ac)]?parseInt(response['headers'][_0x1fac90(0x3a3,0x3ac)]):undefined};}catch(_0x2dac9c){return{'data':null,'error':_0x2dac9c instanceof EBaaSError?_0x2dac9c:new EBaaSError(_0x2dac9c instanceof Error?_0x2dac9c[_0x1fac90(0x3d6,0x359)]:'Database\x20operation\x20failed',0x0,_0x2dac9c)};}}}class CustomDatabaseManager{constructor(_0xbb91f8,_0x2973e7){this['httpClient']=_0xbb91f8;function _0x2d4e07(_0x1954ee,_0x146a1d){return _0xe923(_0x1954ee-0x92,_0x146a1d);}this[_0x2d4e07(0x226,0x1f6)]=_0x2973e7;}async[_0x36b514(0x3a0,0x387)](){if(!this['workspaceId'])return{'hasCustomDatabase':![]};try{const response=await this[_0x4d6e99(0x485,0x442)][_0x4d6e99(0x3d6,0x3e7)]('/admin/v1/workspace/custom-database',{'headers':{'x-workspace-id':this[_0x4d6e99(0x3a1,0x3ec)]}});if(response['status']===0xc8&&response[_0x4d6e99(0x396,0x413)]?.[_0x4d6e99(0x3b0,0x390)]){const config=response['data'][_0x4d6e99(0x3b0,0x391)],_0xd7040c={'host':config['postgresHost'],'port':config[_0x4d6e99(0x459,0x48e)],'database':config[_0x4d6e99(0x401,0x439)],'username':config['postgresUsername'],'password':'','schema':config['postgresSchema'],'sslEnabled':config['sslEnabled']};return this['detectedConfig']={'hasCustomDatabase':!![],'config':config,'credentials':_0xd7040c},this[_0x4d6e99(0x3ea,0x39a)];}}catch(_0x4eaa73){if(_0x4eaa73?.[_0x4d6e99(0x427,0x40e)]===0x194)return this[_0x4d6e99(0x3ea,0x3e3)]={'hasCustomDatabase':![]},this['detectedConfig'];console[_0x4d6e99(0x422,0x3f5)]('Failed to detect custom database configuration:',_0x4eaa73);}function _0x4d6e99(_0x1da699,_0x484e08){return _0xe923(_0x1da699-0x20d,_0x484e08);}return this[_0x4d6e99(0x3ea,0x3a9)]={'hasCustomDatabase':![]},this[_0x4d6e99(0x3ea,0x43e)];}async['testConnection'](_0x30238a){function _0x1e422f(_0x3afdba,_0x4b22d9){return _0xe923(_0x3afdba-0x348,_0x4b22d9);}try{const response=await this[_0x1e422f(0x5c0,0x5f1)]['post']('/admin/v1/workspace/custom-database/test-connection',_0x30238a,{'headers':this[_0x1e422f(0x4dc,0x462)]?{'X-Workspace-ID':this[_0x1e422f(0x4dc,0x54a)]}:{}});return response['data'];}catch(_0x3217f7){return{'success':![],'message':_0x3217f7?.[_0x1e422f(0x4f1,0x4fb)]||_0x1e422f(0x52f,0x4a9)};}}async[_0x36b514(0x324,0x309)](_0x3f855d){if(!this['workspaceId'])throw new Error('Workspace ID is required to configure custom database');const response=await this['httpClient'][_0x25db6e(0x5b,0x58)]('/admin/v1/workspace/custom-database',{'workspaceId':this['workspaceId'],..._0x3f855d},{'headers':{'X-Workspace-ID':this[_0x25db6e(-0xbc,-0x5e)]}});function _0x25db6e(_0x3c43c9,_0x26e2c7){return _0xe923(_0x26e2c7- -0x1f2,_0x3c43c9);}const config=response['data']['config'];return this[_0x25db6e(-0x9a,-0x15)]={'hasCustomDatabase':!![],'config':config,'credentials':_0x3f855d},config;}async['removeCustomDatabase'](){if(!this['workspaceId'])throw new Error('Workspace ID is required to remove custom database');await this[_0x540ddd(0xd6,0x11a)]['delete']('/admin/v1/workspace/custom-database',{'headers':{'X-Workspace-ID':this['workspaceId']}});function _0x540ddd(_0x64fcce,_0xa7ab33){return _0xe923(_0xa7ab33- -0x15e,_0x64fcce);}this['detectedConfig']={'hasCustomDatabase':![]};}[_0x36b514(0x32a,0x33b)](){return this['detectedConfig'];}[_0x36b514(0x33c,0x2f6)](){function _0x28af18(_0x5d45d1,_0x13a31c){return _0xe923(_0x5d45d1-0x168,_0x13a31c);}return this['detectedConfig']?.[_0x28af18(0x378,0x3fe)]??![];}['getCustomCredentials'](){function _0x40bd80(_0x7aa6ec,_0x15ecfd){return _0xe923(_0x15ecfd-0x2b0,_0x7aa6ec);}return this['detectedConfig']?.[_0x40bd80(0x4e2,0x50f)];}['setWorkspaceId'](_0x4f1cc3){function _0x5db98b(_0x480111,_0x335012){return _0xe923(_0x480111-0x3d7,_0x335012);}this[_0x5db98b(0x56b,0x4fa)]=_0x4f1cc3,this[_0x5db98b(0x5b4,0x62a)]=undefined;}[_0x36b514(0x34e,0x351)](){function _0x340f0e(_0x49bdfb,_0x5d3197){return _0xe923(_0x49bdfb-0x213,_0x5d3197);}return this[_0x340f0e(0x3a7,0x3d3)];}['getStatus'](){function _0x4d83c7(_0x5d4c72,_0xd9599b){return _0xe923(_0x5d4c72-0x146,_0xd9599b);}return{'workspaceId':this['workspaceId'],'hasConfig':this[_0x4d83c7(0x356,0x2e5)](),'configDetails':this[_0x4d83c7(0x323,0x385)]?.[_0x4d83c7(0x3a5,0x396)]?{'host':this[_0x4d83c7(0x323,0x2ee)][_0x4d83c7(0x3a5,0x3b6)]['host'],'port':this['detectedConfig'][_0x4d83c7(0x3a5,0x3e7)]['port'],'database':this['detectedConfig']['credentials'][_0x4d83c7(0x3c3,0x37a)],'schema':this[_0x4d83c7(0x323,0x2e2)][_0x4d83c7(0x3a5,0x3f1)][_0x4d83c7(0x362,0x326)]||_0x4d83c7(0x2f9,0x360),'sslEnabled':this[_0x4d83c7(0x323,0x2c3)][_0x4d83c7(0x3a5,0x428)]['sslEnabled']||![]}:undefined};}}class DatabaseClient{constructor(_0x2c87ab,_0x59e07d){function _0x40a393(_0x5153fa,_0x1ad411){return _0xe923(_0x5153fa-0x398,_0x1ad411);}this['httpClient']=_0x2c87ab,this[_0x40a393(0x61b,0x659)]=new CustomDatabaseManager(_0x2c87ab,_0x59e07d);}['from'](_0x1c9562){function _0x45d1e3(_0x195870,_0x34ab79){return _0xe923(_0x34ab79- -0xec,_0x195870);}return new QueryBuilder(this['httpClient'],_0x1c9562,this[_0x45d1e3(0x1a1,0x134)],this[_0x45d1e3(0x1e0,0x197)]['getWorkspaceId']());}[_0x36b514(0x387,0x33a)](_0x2b7236,_0x4120c0){function _0xd692c0(_0x31716c,_0x15dce6){return _0xe923(_0x15dce6- -0x2e2,_0x31716c);}return this['httpClient'][_0xd692c0(-0x102,-0x98)]('/rpc/'+_0x2b7236,_0x4120c0);}['schema'](_0x69b3ff){const _0x1b40bf=new DatabaseClient(this['httpClient'],this[_0x18426e(0x10f,0x12e)][_0x18426e(0xea,0xcd)]());_0x1b40bf['currentSchema']=_0x69b3ff;function _0x18426e(_0x15a66c,_0x1314f9){return _0xe923(_0x1314f9- -0x155,_0x15a66c);}return _0x1b40bf['customDatabaseManager']=this[_0x18426e(0x19b,0x12e)],_0x1b40bf;}async[_0x36b514(0x3a0,0x349)](){return this['customDatabaseManager']['detectCustomDatabase']();}async['testCustomConnection'](_0x511c53){function _0x148743(_0x1f00fc,_0x377ef0){return _0xe923(_0x377ef0-0x3a0,_0x1f00fc);}return this['customDatabaseManager'][_0x148743(0x53b,0x531)](_0x511c53);}async[_0x36b514(0x324,0x39c)](_0x523e52){function _0x57c730(_0x22e886,_0x575419){return _0xe923(_0x575419-0x17d,_0x22e886);}return this[_0x57c730(0x38a,0x400)]['configureCustomDatabase'](_0x523e52);}async[_0x36b514(0x2e4,0x315)](){return this['customDatabaseManager']['removeCustomDatabase']();}['isUsingCustomDatabase'](){function _0x1b5582(_0x1438c6,_0x2474ea){return _0xe923(_0x2474ea- -0x33f,_0x1438c6);}return this['customDatabaseManager'][_0x1b5582(-0x1b1,-0x12f)]();}['getCustomDatabaseStatus'](){function _0x1cb923(_0x472d59,_0x45d3db){return _0xe923(_0x45d3db-0x2ae,_0x472d59);}return this['customDatabaseManager'][_0x1cb923(0x4fd,0x4e8)]();}[_0x36b514(0x369,0x3f0)](_0x9a6fbf){function _0x310530(_0x533314,_0x25e93a){return _0xe923(_0x25e93a-0x321,_0x533314);}this[_0x310530(0x564,0x5a4)][_0x310530(0x5dd,0x55e)](_0x9a6fbf);}async[_0x36b514(0x3c7,0x40b)](){function _0xce17f(_0x435e8a,_0x220a62){return _0xe923(_0x220a62- -0x1bc,_0x435e8a);}try{await this[_0xce17f(0xee,0xc7)][_0xce17f(0xbf,0xb8)]();}catch(_0x160b5b){console[_0xce17f(0xaa,0x59)]('Failed to initialize custom database detection:',_0x160b5b);}}}class StorageBucket{constructor(_0x5ce212,bucketId){this['httpClient']=_0x5ce212,this['bucketId']=bucketId;}async[_0x36b514(0x2eb,0x2fa)](_0xff46,_0x1f6d08,_0x3a79cc){function _0xa54fac(_0x948908,_0x49aa12){return _0xe923(_0x948908-0x179,_0x49aa12);}try{const _0x2b9bf9=new FormData();if(_0x1f6d08 instanceof File)_0x2b9bf9[_0xa54fac(0x3b8,0x32e)](_0xa54fac(0x3c6,0x42a),_0x1f6d08);else{if(_0x1f6d08 instanceof Blob)_0x2b9bf9[_0xa54fac(0x3b8,0x378)](_0xa54fac(0x3c6,0x43f),_0x1f6d08,_0xff46);else{if(_0x1f6d08 instanceof ArrayBuffer)_0x2b9bf9[_0xa54fac(0x3b8,0x3b4)](_0xa54fac(0x3c6,0x367),new Blob([_0x1f6d08]),_0xff46);else typeof _0x1f6d08===_0xa54fac(0x32a,0x37f)&&_0x2b9bf9[_0xa54fac(0x3b8,0x443)]('file',new Blob([_0x1f6d08],{'type':_0xa54fac(0x329,0x2e6)}),_0xff46);}}_0x2b9bf9[_0xa54fac(0x3b8,0x41e)]('path',_0xff46);_0x3a79cc?.[_0xa54fac(0x383,0x3e1)]&&_0x2b9bf9[_0xa54fac(0x3b8,0x38e)](_0xa54fac(0x383,0x338),_0x3a79cc[_0xa54fac(0x383,0x328)]);_0x3a79cc?.[_0xa54fac(0x309,0x304)]&&_0x2b9bf9['append'](_0xa54fac(0x309,0x30c),_0x3a79cc['contentType']);_0x3a79cc?.[_0xa54fac(0x312,0x2cf)]&&_0x2b9bf9['append'](_0xa54fac(0x312,0x305),JSON[_0xa54fac(0x388,0x38e)](_0x3a79cc[_0xa54fac(0x312,0x356)]));const _0x3d3893='/storage/buckets/'+this['bucketId']+_0xa54fac(0x403,0x3f1)+(_0x3a79cc?.['upsert']?_0xa54fac(0x3f9,0x413):''),response=await this['httpClient'][_0xa54fac(0x3c3,0x381)](_0x3d3893,_0x2b9bf9,{'headers':{'Content-Type':'multipart/form-data'}});return{'data':response[_0xa54fac(0x302,0x293)],'error':null};}catch(_0x1dc2c9){return{'data':null,'error':_0x1dc2c9 instanceof EBaaSError?_0x1dc2c9:new EBaaSError(_0x1dc2c9 instanceof Error?_0x1dc2c9[_0xa54fac(0x322,0x344)]:_0xa54fac(0x3a0,0x41b),0x0,_0x1dc2c9)};}}async['download'](_0x9be22f,_0x590f3c){function _0x24acf7(_0x29f2fb,_0x28d821){return _0xe923(_0x29f2fb-0x29a,_0x28d821);}try{const _0x48643d=new URLSearchParams();_0x590f3c?.['transform']&&Object['entries'](_0x590f3c['transform'])['forEach'](([_0x40fabf,_0x4cba04])=>{_0x4cba04!==undefined&&_0x48643d['append'](_0x40fabf,String(_0x4cba04));});const _0x36253c=_0x24acf7(0x451,0x43f)+this['bucketId']+'/files/'+_0x9be22f+(_0x48643d[_0x24acf7(0x46b,0x4c3)]()?'?'+_0x48643d[_0x24acf7(0x46b,0x43d)]():''),response=await this['httpClient']['get'](_0x36253c,{'responseType':'blob'});return{'data':response[_0x24acf7(0x423,0x3fd)],'error':null};}catch(_0x48db1a){return{'data':null,'error':_0x48db1a instanceof EBaaSError?_0x48db1a:new EBaaSError(_0x48db1a instanceof Error?_0x48db1a['message']:'Failed\x20to\x20download\x20file',0x0,_0x48db1a)};}}async[_0x36b514(0x381,0x310)](_0x59b301,_0x5c64e3){function _0x1b58e0(_0x2cc9df,_0x49449f){return _0xe923(_0x2cc9df-0x2bb,_0x49449f);}try{const _0xe7e9b7=new URLSearchParams();_0x59b301&&_0xe7e9b7['append']('prefix',_0x59b301);_0x5c64e3?.['limit']&&_0xe7e9b7['append']('limit',String(_0x5c64e3[_0x1b58e0(0x4cd,0x512)]));_0x5c64e3?.['offset']&&_0xe7e9b7['append'](_0x1b58e0(0x52c,0x51d),String(_0x5c64e3['offset']));_0x5c64e3?.[_0x1b58e0(0x4b2,0x4a0)]&&_0xe7e9b7[_0x1b58e0(0x4fa,0x4b8)]('sortBy',JSON[_0x1b58e0(0x4ca,0x47d)](_0x5c64e3[_0x1b58e0(0x4b2,0x529)]));_0x5c64e3?.[_0x1b58e0(0x47e,0x439)]&&_0xe7e9b7['append'](_0x1b58e0(0x47e,0x42f),_0x5c64e3[_0x1b58e0(0x47e,0x4ae)]);const _0x2a77a4='/storage/buckets/'+this[_0x1b58e0(0x51c,0x49f)]+'/files'+(_0xe7e9b7[_0x1b58e0(0x48c,0x490)]()?'?'+_0xe7e9b7['toString']():''),response=await this['httpClient'][_0x1b58e0(0x484,0x460)](_0x2a77a4);return{'data':response[_0x1b58e0(0x444,0x3db)],'error':null};}catch(_0x642010){return{'data':null,'error':_0x642010 instanceof EBaaSError?_0x642010:new EBaaSError(_0x642010 instanceof Error?_0x642010[_0x1b58e0(0x464,0x46d)]:_0x1b58e0(0x4f3,0x503),0x0,_0x642010)};}}async[_0x36b514(0x356,0x397)](_0xda55d5){function _0x186d3e(_0x4b9155,_0x6ac542){return _0xe923(_0x4b9155-0x83,_0x6ac542);}try{const response=await this['httpClient']['delete'](_0x186d3e(0x23a,0x1e7)+this[_0x186d3e(0x2e4,0x268)]+'/files',{'data':{'paths':_0xda55d5}});return{'data':response[_0x186d3e(0x20c,0x28a)],'error':null};}catch(_0x2ebebb){return{'data':null,'error':_0x2ebebb instanceof EBaaSError?_0x2ebebb:new EBaaSError(_0x2ebebb instanceof Error?_0x2ebebb['message']:_0x186d3e(0x2e9,0x268),0x0,_0x2ebebb)};}}async['move'](fromPath,_0x1846ff){function _0x12a3f6(_0x3b9f53,_0x59ee09){return _0xe923(_0x59ee09-0x330,_0x3b9f53);}try{const response=await this['httpClient']['post'](_0x12a3f6(0x470,0x4e7)+this['bucketId']+_0x12a3f6(0x44d,0x4bf),{'sourceKey':fromPath,'destinationKey':_0x1846ff});return{'data':response['data'],'error':null};}catch(_0x10764c){return{'data':null,'error':_0x10764c instanceof EBaaSError?_0x10764c:new EBaaSError(_0x10764c instanceof Error?_0x10764c[_0x12a3f6(0x4bf,0x4d9)]:'Failed\x20to\x20move\x20file',0x0,_0x10764c)};}}async['copy'](fromPath,_0x323a67){function _0x4b85a6(_0x4321a5,_0x2fb74c){return _0xe923(_0x4321a5- -0x2d1,_0x2fb74c);}try{const response=await this[_0x4b85a6(-0x59,-0xa7)]['post'](_0x4b85a6(-0x11a,-0x18f)+this[_0x4b85a6(-0x70,-0xb5)]+_0x4b85a6(-0x10c,-0xb4),{'sourceKey':fromPath,'destinationKey':_0x323a67});return{'data':response['data'],'error':null};}catch(_0x5d44e6){return{'data':null,'error':_0x5d44e6 instanceof EBaaSError?_0x5d44e6:new EBaaSError(_0x5d44e6 instanceof Error?_0x5d44e6[_0x4b85a6(-0x128,-0x19a)]:'Failed\x20to\x20copy\x20file',0x0,_0x5d44e6)};}}async['createSignedUrl'](_0x3135b2,_0x510e35,_0x28a248){function _0x4d1e45(_0x2741b3,_0xe22a0b){return _0xe923(_0xe22a0b- -0x19d,_0x2741b3);}try{const response=await this['httpClient'][_0x4d1e45(0xff,0xad)]('/storage/buckets/'+this['bucketId']+'/files/'+_0x3135b2+'/sign',{'expiresIn':_0x510e35,..._0x28a248});return{'data':response['data'],'error':null};}catch(_0x58d4d0){return{'data':null,'error':_0x58d4d0 instanceof EBaaSError?_0x58d4d0:new EBaaSError(_0x58d4d0 instanceof Error?_0x58d4d0['message']:_0x4d1e45(0x120,0xf5),0x0,_0x58d4d0)};}}['getPublicUrl'](_0x4c047f,_0x2fcaa1){const _0x4d88af=new URLSearchParams();_0x2fcaa1?.['transform']&&Object['entries'](_0x2fcaa1['transform'])[_0x328720(0x14,0x12)](([_0x186812,_0x183a96])=>{function _0x71ba85(_0x316c40,_0x5f4242){return _0xe923(_0x316c40-0xa2,_0x5f4242);}_0x183a96!==undefined&&_0x4d88af[_0x71ba85(0x2e1,0x351)](_0x186812,String(_0x183a96));});const _0x17c20b=this['httpClient']['baseURL']||'';function _0x328720(_0x3ed65e,_0x387e1c){return _0xe923(_0x387e1c- -0x268,_0x3ed65e);}const _0x32b88e=_0x17c20b+_0x328720(-0x6a,-0xb1)+this['bucketId']+'/files/'+_0x4c047f+(_0x4d88af[_0x328720(-0xdc,-0x97)]()?'?'+_0x4d88af['toString']():'');return{'data':{'publicUrl':_0x32b88e}};}async['getFileInfo'](_0x446a76){function _0xa8b160(_0x15d591,_0x342f50){return _0xe923(_0x342f50-0x129,_0x15d591);}try{const response=await this[_0xa8b160(0x317,0x3a1)]['get'](_0xa8b160(0x349,0x2e0)+this['bucketId']+'/files/'+_0x446a76+'/info');return{'data':response['data'],'error':null};}catch(_0x146424){return{'data':null,'error':_0x146424 instanceof EBaaSError?_0x146424:new EBaaSError(_0x146424 instanceof Error?_0x146424[_0xa8b160(0x2bc,0x2d2)]:_0xa8b160(0x2f7,0x34e),0x0,_0x146424)};}}async[_0x36b514(0x360,0x2f2)](_0x593865,metadata){function _0x59c296(_0x2e0812,_0x3f782d){return _0xe923(_0x2e0812- -0x211,_0x3f782d);}try{const response=await this[_0x59c296(0x67,0xc9)][_0x59c296(-0x28,-0x1e)](_0x59c296(-0x5a,-0x6c)+this[_0x59c296(0x50,0x60)]+_0x59c296(-0x63,0x0)+_0x593865+'/metadata',{'metadata':metadata});return{'data':response[_0x59c296(-0x88,-0x7)],'error':null};}catch(_0x491c2e){return{'data':null,'error':_0x491c2e instanceof EBaaSError?_0x491c2e:new EBaaSError(_0x491c2e instanceof Error?_0x491c2e['message']:_0x59c296(-0x45,-0x2),0x0,_0x491c2e)};}}}class StorageClient{constructor(_0x4c4445){function _0x142959(_0x2639ff,_0x78d580){return _0xe923(_0x2639ff-0xa1,_0x78d580);}this[_0x142959(0x319,0x388)]=_0x4c4445;}[_0x36b514(0x2d3,0x34b)](bucketId){return new StorageBucket(this['httpClient'],bucketId);}async[_0x36b514(0x2c4,0x2d1)](_0xd9d662,_0x249e26){function _0x2c97e0(_0x26a303,_0x505d96){return _0xe923(_0x505d96- -0x6c,_0x26a303);}try{const response=await this[_0x2c97e0(0x293,0x20c)]['post']('/storage/buckets',{'id':_0xd9d662,..._0x249e26});return{'data':response['data'],'error':null};}catch(_0x1a22e7){return{'data':null,'error':_0x1a22e7 instanceof EBaaSError?_0x1a22e7:new EBaaSError(_0x1a22e7 instanceof Error?_0x1a22e7[_0x2c97e0(0x117,0x13d)]:_0x2c97e0(0x20e,0x220),0x0,_0x1a22e7)};}}async['getBucket'](_0x58dbda){function _0x56b6a6(_0x12ff6e,_0x3e0d85){return _0xe923(_0x12ff6e-0x18b,_0x3e0d85);}try{const response=await this[_0x56b6a6(0x403,0x46c)]['get'](_0x56b6a6(0x342,0x324)+_0x58dbda);return{'data':response[_0x56b6a6(0x314,0x349)],'error':null};}catch(_0x2d93b7){return{'data':null,'error':_0x2d93b7 instanceof EBaaSError?_0x2d93b7:new EBaaSError(_0x2d93b7 instanceof Error?_0x2d93b7[_0x56b6a6(0x334,0x2f2)]:_0x56b6a6(0x3dd,0x3ad),0x0,_0x2d93b7)};}}async[_0x36b514(0x382,0x3a5)](){function _0x3144bb(_0x2439db,_0x5a9e21){return _0xe923(_0x5a9e21-0x29f,_0x2439db);}try{const response=await this[_0x3144bb(0x557,0x517)][_0x3144bb(0x413,0x468)]('/storage/buckets');return{'data':response[_0x3144bb(0x40b,0x428)],'error':null};}catch(_0x418fe1){return{'data':null,'error':_0x418fe1 instanceof EBaaSError?_0x418fe1:new EBaaSError(_0x418fe1 instanceof Error?_0x418fe1[_0x3144bb(0x3bd,0x448)]:_0x3144bb(0x41f,0x49e),0x0,_0x418fe1)};}}async[_0x36b514(0x31f,0x299)](_0x5ba0f7,_0x14d7cb){function _0x1e9c75(_0x3a1a9e,_0x177246){return _0xe923(_0x177246-0x264,_0x3a1a9e);}try{const response=await this['httpClient'][_0x1e9c75(0x3ff,0x44d)]('/storage/buckets/'+_0x5ba0f7,_0x14d7cb);return{'data':response[_0x1e9c75(0x479,0x3ed)],'error':null};}catch(_0x233b06){return{'data':null,'error':_0x233b06 instanceof EBaaSError?_0x233b06:new EBaaSError(_0x233b06 instanceof Error?_0x233b06[_0x1e9c75(0x3b1,0x40d)]:_0x1e9c75(0x412,0x41a),0x0,_0x233b06)};}}async[_0x36b514(0x38f,0x368)](_0x4d0dbd){function _0x4de15f(_0x1c1561,_0x16a7f7){return _0xe923(_0x1c1561-0x1e,_0x16a7f7);}try{const response=await this['httpClient'][_0x4de15f(0x232,0x2a4)](_0x4de15f(0x1d5,0x216)+_0x4d0dbd);return{'data':response[_0x4de15f(0x1a7,0x167)],'error':null};}catch(_0xe29323){return{'data':null,'error':_0xe29323 instanceof EBaaSError?_0xe29323:new EBaaSError(_0xe29323 instanceof Error?_0xe29323['message']:'Failed\x20to\x20delete\x20bucket',0x0,_0xe29323)};}}async['getUsage'](){function _0x3399b6(_0x5db662,_0x149186){return _0xe923(_0x149186-0xb4,_0x5db662);}try{const response=await this['httpClient'][_0x3399b6(0x243,0x27d)]('/storage/usage');return{'data':response['data'],'error':null};}catch(_0x4eb2ad){return{'data':null,'error':_0x4eb2ad instanceof EBaaSError?_0x4eb2ad:new EBaaSError(_0x4eb2ad instanceof Error?_0x4eb2ad[_0x3399b6(0x2cc,0x25d)]:'Failed\x20to\x20get\x20storage\x20usage',0x0,_0x4eb2ad)};}}}class EventManager{constructor(){function _0x4baad0(_0x3d1b23,_0xff713){return _0xe923(_0xff713- -0x38,_0x3d1b23);}this[_0x4baad0(0x163,0x154)]=new Map(),this['maxListeners']=0xa;}['on'](_0x46fd4f,_0x209e91){function _0x4f59ae(_0x2f81b9,_0x189954){return _0xe923(_0x2f81b9-0x3af,_0x189954);}!this[_0x4f59ae(0x53b,0x57f)]['has'](_0x46fd4f)&&this['events'][_0x4f59ae(0x635,0x605)](_0x46fd4f,new Set()),this['events']['get'](_0x46fd4f)[_0x4f59ae(0x5da,0x64a)](_0x209e91);}['off'](_0x5becb2,_0x4ea3bf){if(!this[_0x2d3d27(0x6a,0x54)][_0x2d3d27(0xcb,0x122)](_0x5becb2))return;function _0x2d3d27(_0x1b4580,_0x23ae74){return _0xe923(_0x1b4580- -0x122,_0x23ae74);}const _0x5bc2e9=this[_0x2d3d27(0x6a,0x46)][_0x2d3d27(0xa7,0x9c)](_0x5becb2);_0x4ea3bf?_0x5bc2e9['delete'](_0x4ea3bf):_0x5bc2e9['clear'](),_0x5bc2e9[_0x2d3d27(0xc0,0x5d)]===0x0&&this['events']['delete'](_0x5becb2);}['emit'](_0xb57c82,..._0x3b1344){if(!this['events']['has'](_0xb57c82))return![];const _0x43d79e=this[_0x205888(0x266,0x2b8)][_0x205888(0x2a3,0x2a0)](_0xb57c82);for(const _0x584894 of _0x43d79e){try{_0x584894(..._0x3b1344);}catch(_0x112530){console['error']('Error\x20in\x20event\x20listener\x20for\x20\x22'+_0xb57c82+'\x22:',_0x112530);}}function _0x205888(_0x5599dd,_0x52cf4b){return _0xe923(_0x5599dd-0xda,_0x52cf4b);}return _0x43d79e['size']>0x0;}['removeAllListeners'](_0x507a98){function _0xa1d737(_0x3db0cd,_0xddc048){return _0xe923(_0x3db0cd- -0x29f,_0xddc048);}_0x507a98?this[_0xa1d737(-0x113,-0x128)][_0xa1d737(-0x8b,-0x2)](_0x507a98):this[_0xa1d737(-0x113,-0x10f)]['clear']();}['listenerCount'](_0x46a6a0){function _0x359561(_0x22995b,_0x1bd48c){return _0xe923(_0x22995b-0x1f2,_0x1bd48c);}return this['events'][_0x359561(0x3bb,0x359)](_0x46a6a0)?.['size']??0x0;}['eventNames'](){function _0x3c09c1(_0x1ea5ef,_0x221fc8){return _0xe923(_0x221fc8-0x149,_0x1ea5ef);}return Array['from'](this[_0x3c09c1(0x2e9,0x2d5)][_0x3c09c1(0x30d,0x323)]());}[_0x36b514(0x36a,0x3cb)](_0x30bd66){function _0x46225e(_0x3a0fdf,_0x4fb7e4){return _0xe923(_0x3a0fdf- -0x13,_0x4fb7e4);}return Array['from'](this[_0x46225e(0x179,0x144)]['get'](_0x30bd66)??[]);}['addListener'](_0x57fd18,_0x433885){this['on'](_0x57fd18,_0x433885);}[_0x36b514(0x30c,0x2a0)](_0x477794,_0x568a81){this['off'](_0x477794,_0x568a81);}[_0x36b514(0x385,0x303)](_0x597db6,_0x5d82d9){const _0x479e4e=(..._0x316684)=>{this[_0x4e65b3(0x46d,0x443)](_0x597db6,_0x479e4e);function _0x4e65b3(_0x5e6f22,_0x4b4b3a){return _0xe923(_0x5e6f22-0x21d,_0x4b4b3a);}_0x5d82d9(..._0x316684);};this['on'](_0x597db6,_0x479e4e);}[_0x36b514(0x34f,0x3d5)](_0x239199,_0x5e6523){this['on'](_0x239199,_0x5e6523);}['prependOnceListener'](_0x1b8dda,_0x524886){const _0x32b404=(..._0x5276a4)=>{this[_0xc28575(-0x4e,-0x14)](_0x1b8dda,_0x32b404);function _0xc28575(_0xeb7b60,_0x5c3ac4){return _0xe923(_0x5c3ac4- -0x264,_0xeb7b60);}_0x524886(..._0x5276a4);};this['on'](_0x1b8dda,_0x32b404);}['setMaxListeners'](_0x1c9886){this[_0xdb374a(0x4ca,0x4f6)]=_0x1c9886;function _0xdb374a(_0x3832e1,_0x23ad1e){return _0xe923(_0x3832e1-0x287,_0x23ad1e);}return this;}[_0x36b514(0x331,0x374)](){function _0x1fad00(_0x1529ac,_0x3f4523){return _0xe923(_0x3f4523- -0x38e,_0x1529ac);}return this[_0x1fad00(-0xdb,-0x14b)];}[_0x36b514(0x367,0x34b)](_0x8f71c0){return this['listeners'](_0x8f71c0);}}class RealtimeChannel extends EventManager{constructor(_0x341dae,_0xe48b04){super();function _0x1c8c62(_0x2eef00,_0x5bf002){return _0xe923(_0x5bf002- -0x27f,_0x2eef00);}this['joinedOnce']=![],this['state']=_0x1c8c62(-0xd6,-0x8a),this['subscriptions']=new Map(),this[_0x1c8c62(0x35,0x6)]=_0x341dae,this[_0x1c8c62(-0x19,-0x7e)]=_0xe48b04;}[_0x36b514(0x316,0x368)](_0x5ace00){!this[_0x247aaa(-0x5a,-0x70)]&&(this[_0x247aaa(-0x9b,-0x70)]=!![],this[_0x247aaa(-0xc4,-0x48)]());function _0x247aaa(_0x3eb02f,_0x12609b){return _0xe923(_0x12609b- -0x22c,_0x3eb02f);}return _0x5ace00&&this['on'](_0x247aaa(0x5d,-0x12),_0x5ace00),this;}[_0x36b514(0x2b7,0x325)](filter,_0x4e8fa2){function _0x15656f(_0x98c9eb,_0x50ce1f){return _0xe923(_0x50ce1f- -0x1bc,_0x98c9eb);}const _0x4a0427='postgres_changes:'+JSON[_0x15656f(0xb8,0x53)](filter);this['on'](_0x4a0427,_0x4e8fa2);const _0x5514b9={'unsubscribe':()=>{this[_0x471c60(-0x103,-0x131)](_0x4a0427,_0x4e8fa2);function _0x471c60(_0x413072,_0x27c87e){return _0xe923(_0x413072- -0x353,_0x27c87e);}this[_0x471c60(-0x193,-0x185)][_0x471c60(-0x13f,-0x118)](_0x4a0427);}};return this['subscriptions']['set'](_0x4a0427,_0x5514b9),this['socket']?.['connected']&&this['state']===_0x15656f(0x29,0xf)&&this['socket']['emit'](_0x15656f(0x7c,0xe2),{'topic':this[_0x15656f(0xa9,0xc9)],'filter':filter,'ref':this['makeRef']()}),_0x5514b9;}['onBroadcast'](filter,_0x5c659b){const _0x2b7a89='broadcast:'+JSON[_0x15af22(0x191,0x182)](filter);this['on'](_0x2b7a89,_0x5c659b);function _0x15af22(_0x40b8c5,_0x128307){return _0xe923(_0x40b8c5- -0x7e,_0x128307);}const _0x530e60={'unsubscribe':()=>{this[_0x537093(0x241,0x249)](_0x2b7a89,_0x5c659b);function _0x537093(_0x3fe5f5,_0x5c7e32){return _0xe923(_0x5c7e32- -0x7,_0x3fe5f5);}this[_0x537093(0x195,0x1b9)]['delete'](_0x2b7a89);}};return this['subscriptions']['set'](_0x2b7a89,_0x530e60),_0x530e60;}['onPresence'](filter,_0x395f56){const _0x230b79='presence:'+JSON['stringify'](filter);this['on'](_0x230b79,_0x395f56);const _0x4a8a08={'unsubscribe':()=>{this['off'](_0x230b79,_0x395f56),this['subscriptions']['delete'](_0x230b79);}};function _0x2bbf77(_0x51112d,_0x24f0c8){return _0xe923(_0x51112d-0x24b,_0x24f0c8);}return this[_0x2bbf77(0x40b,0x3d4)][_0x2bbf77(0x4d1,0x540)](_0x230b79,_0x4a8a08),_0x4a8a08;}['send'](_0x4ce823){return new Promise(_0xd7c9c9=>{function _0x433d69(_0x577973,_0x5546b1){return _0xe923(_0x577973- -0x6d,_0x5546b1);}this[_0x433d69(0x194,0x17d)]?.['connected']&&this['state']===_0x433d69(0x15e,0x1ad)?(this['socket'][_0x433d69(0x193,0x194)](_0x433d69(0x1cf,0x19e),{'topic':this[_0x433d69(0x218,0x292)],'event':_0x4ce823['event'],'payload':_0x4ce823,'ref':this[_0x433d69(0x1fc,0x21c)]()}),_0xd7c9c9('ok')):_0xd7c9c9('error');});}[_0x36b514(0x362,0x31d)](_0xf13dc2){return new Promise(_0x11f3d0=>{function _0x49fefa(_0x50522f,_0x298f7f){return _0xe923(_0x298f7f-0x15e,_0x50522f);}this['socket']?.[_0x49fefa(0x382,0x33d)]&&this[_0x49fefa(0x335,0x3b8)]===_0x49fefa(0x347,0x329)?(this[_0x49fefa(0x312,0x35f)][_0x49fefa(0x3c6,0x35e)]('presence',{'topic':this[_0x49fefa(0x3d6,0x3e3)],'event':'track','payload':_0xf13dc2,'ref':this['makeRef']()}),_0x11f3d0('ok')):_0x11f3d0(_0x49fefa(0x443,0x3ec));});}['untrack'](){return new Promise(_0x7a8ce5=>{function _0x557842(_0x23069c,_0x48da5b){return _0xe923(_0x23069c- -0x9b,_0x48da5b);}this[_0x557842(0x166,0x134)]?.['connected']&&this['state']===_0x557842(0x130,0x1b5)?(this['socket'][_0x557842(0x165,0x142)](_0x557842(0x171,0x1f2),{'topic':this[_0x557842(0x1ea,0x1d0)],'event':'untrack','ref':this[_0x557842(0x1ce,0x157)]()}),_0x7a8ce5('ok')):_0x7a8ce5(_0x557842(0x1f3,0x20f));});}[_0x36b514(0x365,0x3f0)](){return new Promise(_0x5d9978=>{this[_0xfdeebd(0x210,0x1be)]='leaving',this[_0xfdeebd(0x176,0x1e0)][_0xfdeebd(0x230,0x22e)](_0x5a6f51=>{function _0x1e6ae0(_0x773c52,_0x231f61){return _0xe923(_0x773c52-0x3a0,_0x231f61);}_0x5a6f51[_0x1e6ae0(0x5d9,0x62b)]();}),this['subscriptions']['clear']();this['socket']?.['connected']&&this[_0xfdeebd(0x1b7,0x209)][_0xfdeebd(0x1b6,0x1c2)](_0xfdeebd(0x18d,0x1f7),{'topic':this[_0xfdeebd(0x23b,0x212)],'ref':this[_0xfdeebd(0x21f,0x1b3)]()});this['state']='closed',this[_0xfdeebd(0x194,0x1e6)]();function _0xfdeebd(_0x522feb,_0x2e1839){return _0xe923(_0x522feb- -0x4a,_0x2e1839);}_0x5d9978('ok');});}[_0x36b514(0x310,0x293)](){if(this['state']===_0x594a92(0x4e7,0x485))return;this[_0x594a92(0x4e5,0x4db)]=_0x594a92(0x428,0x468);function _0x594a92(_0x43c01,_0x25cb61){return _0xe923(_0x43c01-0x28b,_0x25cb61);}this[_0x594a92(0x48c,0x423)]?.['connected']&&(this['socket'][_0x594a92(0x48b,0x421)]('join',{'topic':this[_0x594a92(0x510,0x526)],'ref':this['makeRef']()}),setTimeout(()=>{function _0x4ecb92(_0x318c8d,_0x5abfbd){return _0xe923(_0x318c8d- -0x279,_0x5abfbd);}this['state']===_0x4ecb92(-0xdc,-0x89)&&(this['state']=_0x4ecb92(-0xae,-0x94),this['emit'](_0x4ecb92(-0x5f,-0xcf),_0x4ecb92(-0xc5,-0xe5)));},0x64));}['_rejoin'](){function _0x2d841b(_0x23ae02,_0x1f3e75){return _0xe923(_0x1f3e75-0x274,_0x23ae02);}this[_0x2d841b(0x46c,0x430)]&&(this[_0x2d841b(0x474,0x458)](),this[_0x2d841b(0x3c1,0x434)][_0x2d841b(0x4c2,0x4ee)]((_0x1c739a,_0x218d2b)=>{function _0x281763(_0x3b3462,_0x1792c5){return _0xe923(_0x1792c5- -0x11f,_0x3b3462);}if(_0x218d2b['startsWith'](_0x281763(0xa0,0xcd))){const filter=JSON['parse'](_0x218d2b['replace']('postgres_changes:',''));this[_0x281763(0xea,0xe2)]?.[_0x281763(0x119,0xe1)]('subscribe_postgres_changes',{'topic':this[_0x281763(0x147,0x166)],'filter':filter,'ref':this[_0x281763(0xef,0x14a)]()});}}));}[_0x36b514(0x3ab,0x3dd)](_0x23256f,_0x277718){function _0x4f4109(_0x51abf4,_0xcd718){return _0xe923(_0xcd718- -0x2ee,_0x51abf4);}if(_0x23256f==='postgres_changes'){const _0x402617=_0x4f4109(-0x164,-0x102)+JSON['stringify'](_0x277718['filter']||{});this[_0x4f4109(-0x10a,-0xee)](_0x402617,_0x277718);}else{if(_0x23256f===_0x4f4109(-0x55,-0xb2)){const _0x4a7a2e=_0x4f4109(-0x82,-0xe6)+JSON[_0x4f4109(-0x11f,-0xdf)]({'event':_0x277718[_0x4f4109(-0xfc,-0x90)]});this[_0x4f4109(-0xe3,-0xee)](_0x4a7a2e,_0x277718);}else{if(_0x23256f==='presence'){const _0x286fab=_0x4f4109(-0x9a,-0xdd)+JSON[_0x4f4109(-0x87,-0xdf)]({'event':_0x277718['event']});this[_0x4f4109(-0xd6,-0xee)](_0x286fab,_0x277718);}}}this['emit'](_0x23256f,_0x277718);}[_0x36b514(0x31a,0x356)](_0x29aa81){this[_0x3ac0fe(-0x120,-0xd9)]=_0x29aa81;function _0x3ac0fe(_0x2b711b,_0x3ffba5){return _0xe923(_0x3ffba5- -0x333,_0x2b711b);}let status;switch(_0x29aa81){case'joined':status=_0x3ac0fe(-0x1f4,-0x17f);break;case _0x3ac0fe(-0x140,-0xe4):status='CHANNEL_ERROR';break;case _0x3ac0fe(-0x155,-0x13e):status='CLOSED';break;default:return;}this['emit'](_0x3ac0fe(-0x106,-0x119),status);}[_0x36b514(0x395,0x330)](){function _0x51eaab(_0x16f294,_0x74cd69){return _0xe923(_0x74cd69- -0xd8,_0x16f294);}return Math['random']()[_0x51eaab(0x123,0xf9)](0x24)[_0x51eaab(0x117,0x117)](0x2,0xf);}[_0x36b514(0x3b5,0x343)](){function _0x30de50(_0x17ad83,_0x2c28eb){return _0xe923(_0x2c28eb- -0x13,_0x17ad83);}return this[_0x30de50(0x26f,0x247)];}}function _0xe923(_0x3b36e8,_0x5ae0ae){const _0x2a4557=_0x2a45();return _0xe923=function(_0xe92310,_0x4686b4){_0xe92310=_0xe92310-0x188;let _0x568701=_0x2a4557[_0xe92310];if(_0xe923['ZFRFny']===undefined){var _0x1569d5=function(_0x290047){const _0xec9896='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x355414='',_0x169c1b='';for(let _0x2977ba=0x0,_0xab59a6,_0x521466,_0x38a619=0x0;_0x521466=_0x290047['charAt'](_0x38a619++);~_0x521466&&(_0xab59a6=_0x2977ba%0x4?_0xab59a6*0x40+_0x521466:_0x521466,_0x2977ba++%0x4)?_0x355414+=String['fromCharCode'](0xff&_0xab59a6>>(-0x2*_0x2977ba&0x6)):0x0){_0x521466=_0xec9896['indexOf'](_0x521466);}for(let _0xb51031=0x0,_0x5a5170=_0x355414['length'];_0xb51031<_0x5a5170;_0xb51031++){_0x169c1b+='%'+('00'+_0x355414['charCodeAt'](_0xb51031)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x169c1b);};_0xe923['WkSneg']=_0x1569d5,_0x3b36e8=arguments,_0xe923['ZFRFny']=!![];}const _0x34d51d=_0x2a4557[0x0],_0x56b172=_0xe92310+_0x34d51d,_0x394c6f=_0x3b36e8[_0x56b172];return!_0x394c6f?(_0x568701=_0xe923['WkSneg'](_0x568701),_0x3b36e8[_0x56b172]=_0x568701):_0x568701=_0x394c6f,_0x568701;},_0xe923(_0x3b36e8,_0x5ae0ae);}function getEnvironment(){function _0x33c04a(_0xfdee1b,_0x1d3849){return _0xe923(_0xfdee1b- -0x385,_0x1d3849);}if(typeof navigator!==_0x33c04a(-0x1dd,-0x1cc)&&navigator[_0x33c04a(-0x131,-0x189)]===_0x33c04a(-0x1b3,-0x12b))return _0x33c04a(-0x1ad,-0x207);if(typeof window!==_0x33c04a(-0x1dd,-0x200)&&typeof document!=='undefined')return'browser';if(typeof global!=='undefined'&&typeof process!==_0x33c04a(-0x1dd,-0x201)&&process['versions']?.[_0x33c04a(-0x1af,-0x172)])return _0x33c04a(-0x1af,-0x238);return'browser';}function isSocketIOAvailable(){function _0x239034(_0x4f2808,_0x53164e){return _0xe923(_0x4f2808- -0x4f,_0x53164e);}try{const _0x3d4494=getEnvironment();switch(_0x3d4494){case'node':return typeof require!==_0x239034(0x159,0x1a8)&&require['resolve']&&!!require['resolve']('socket.io-client');case _0x239034(0x1cc,0x23c):if(typeof globalThis!==_0x239034(0x159,0x1e5)&&'io'in globalThis)return!![];return typeof require!=='undefined'&&require[_0x239034(0x1b7,0x12d)]&&!!require[_0x239034(0x1b7,0x1eb)](_0x239034(0x148,0x15c));case'react-native':try{return typeof require!=='undefined'&&!!require('socket.io-client');}catch{return![];}default:return![];}}catch{return![];}}function getSocketIO(){function _0x48388d(_0x73aa49,_0x407fce){return _0xe923(_0x407fce-0x20a,_0x73aa49);}try{if(typeof require!==_0x48388d(0x3d6,0x3b2))return require(_0x48388d(0x40d,0x3a1));if(typeof globalThis!==_0x48388d(0x3a8,0x3b2)&&'io'in globalThis)return{'io':globalThis['io']};throw new Error(_0x48388d(0x411,0x43d));}catch(_0x20d9a3){throw new Error(_0x48388d(0x343,0x3a4));}}class WebSocketAdapter{constructor(){function _0x4ee158(_0x306b05,_0x59553){return _0xe923(_0x306b05-0x143,_0x59553);}this[_0x4ee158(0x344,0x30a)]=null;}async['connect'](_0x271738,_0x5cd836){if(!isSocketIOAvailable())throw new Error('Socket.io-client não está disponível. Para usar funcionalidades de realtime, instale: npm install socket.io-client');const {io:_0x20950a}=getSocketIO();return new Promise((_0x43f769,_0x18bfe2)=>{this[_0x5d4138(0x159,0x165)]=_0x20950a(_0x271738,_0x5cd836);function _0x5d4138(_0x16df0c,_0x5e83da){return _0xe923(_0x16df0c- -0xa8,_0x5e83da);}this[_0x5d4138(0x159,0x12c)]['on'](_0x5d4138(0x1eb,0x1db),()=>_0x43f769()),this['socket']['on'](_0x5d4138(0x140,0x15c),_0x34734a=>_0x18bfe2(_0x34734a));});}[_0x36b514(0x2fb,0x297)](){function _0x591c3a(_0xf8f2fb,_0x1d35ef){return _0xe923(_0xf8f2fb-0x371,_0x1d35ef);}this[_0x591c3a(0x572,0x5be)]&&(this[_0x591c3a(0x572,0x4fe)]['disconnect'](),this['socket']=null);}['emit'](_0x259e6f,data){function _0x2d92f5(_0x18f11a,_0x2e8618){return _0xe923(_0x2e8618- -0x390,_0x18f11a);}this['socket']?.[_0x2d92f5(-0x123,-0x190)](_0x259e6f,data);}['on'](_0x1e2b5d,_0x1826a6){function _0x487f9b(_0x5d17c4,_0x5964e5){return _0xe923(_0x5d17c4- -0x262,_0x5964e5);}this[_0x487f9b(-0x61,-0xe4)]?.['on'](_0x1e2b5d,_0x1826a6);}[_0x36b514(0x37c,0x359)](_0x2cd80f,_0x517230){function _0x1bacdd(_0x29d12f,_0x3814e8){return _0xe923(_0x29d12f- -0x14e,_0x3814e8);}_0x517230?this['socket']?.[_0x1bacdd(0x102,0x101)](_0x2cd80f,_0x517230):this['socket']?.[_0x1bacdd(0x102,0xd0)](_0x2cd80f);}get[_0x36b514(0x30b,0x38b)](){function _0x4878b9(_0x5f1065,_0x30f574){return _0xe923(_0x5f1065-0x144,_0x30f574);}return this[_0x4878b9(0x345,0x39e)]?.[_0x4878b9(0x323,0x323)]??![];}}class ReactNativeSocketAdapter{constructor(){function _0x50057f(_0x2f41dc,_0xf2e04f){return _0xe923(_0xf2e04f-0x2c1,_0x2f41dc);}this[_0x50057f(0x4f8,0x4c2)]=null;}async['connect'](_0x5bc5f4,_0x5bcade){if(!isSocketIOAvailable())throw new Error('Socket.io-client\x20não\x20está\x20disponível.\x20Para\x20React\x20Native,\x20instale:\x20npm\x20install\x20socket.io-client');const {io:_0x443a6e}=getSocketIO();return new Promise((_0x363ede,_0x5589a3)=>{this[_0xf489f4(-0x59,-0xab)]=_0x443a6e(_0x5bc5f4,{..._0x5bcade,'transports':['websocket'],'upgrade':![],'autoConnect':!![]});function _0xf489f4(_0x2193a4,_0x53b5f6){return _0xe923(_0x53b5f6- -0x2ac,_0x2193a4);}this[_0xf489f4(-0x39,-0xab)]['on']('connect',()=>_0x363ede()),this[_0xf489f4(-0xd7,-0xab)]['on']('connect_error',_0x245c18=>_0x5589a3(_0x245c18));});}[_0x36b514(0x2fb,0x2b4)](){this['socket']&&(this['socket']['disconnect'](),this['socket']=null);}[_0x36b514(0x32c,0x361)](_0x1df851,data){function _0x2c15ff(_0x2f522b,_0xf46781){return _0xe923(_0x2f522b- -0x16c,_0xf46781);}this[_0x2c15ff(0x95,0x11b)]?.[_0x2c15ff(0x94,0xba)](_0x1df851,data);}['on'](_0x4ce6ba,_0x686048){this['socket']?.['on'](_0x4ce6ba,_0x686048);}['off'](_0x47f203,_0x2458e1){function _0x174c4f(_0xe23380,_0x3fd856){return _0xe923(_0x3fd856- -0x17d,_0xe23380);}_0x2458e1?this['socket']?.['off'](_0x47f203,_0x2458e1):this[_0x174c4f(0x74,0x84)]?.[_0x174c4f(0xc8,0xd3)](_0x47f203);}get[_0x36b514(0x30b,0x2d4)](){function _0x2753db(_0x3576ac,_0x1247eb){return _0xe923(_0x1247eb- -0x2b4,_0x3576ac);}return this['socket']?.[_0x2753db(-0x112,-0xd5)]??![];}}function createSocketAdapter(){function _0xa10c1d(_0x26885a,_0x251c09){return _0xe923(_0x251c09- -0x178,_0x26885a);}const _0x169004=getEnvironment();switch(_0x169004){case _0xa10c1d(0x78,0x60):return new ReactNativeSocketAdapter();case'browser':case _0xa10c1d(0x32,0x5e):default:return new WebSocketAdapter();}}function _0x36b514(_0x451bec,_0x34ddc8){return _0xe923(_0x451bec-0x12c,_0x34ddc8);}class RealtimeClient{constructor(_0x10f371,_0x498cc9,_0x2bc78d={}){this[_0x3b2919(0x167,0x1a8)]=null,this['channels']=new Map(),this[_0x3b2919(0x148,0x147)]='disconnected',this[_0x3b2919(0x19c,0x20c)]=0x0,this[_0x3b2919(0xd5,0x156)]=0x5;function _0x3b2919(_0x5c3a3e,_0x36ee5c){return _0xe923(_0x36ee5c- -0x59,_0x5c3a3e);}this['url']=_0x10f371,this[_0x3b2919(0x168,0x13a)]=_0x498cc9,this[_0x3b2919(0x13d,0x154)]={'heartbeatInterval':0x7530,'reconnectInterval':0x1388,'maxReconnectAttempts':0x5,..._0x2bc78d},this[_0x3b2919(0x1f3,0x237)]=createSocketAdapter();}[_0x36b514(0x3bf,0x387)](){return new Promise(async(_0x21d84e,_0xbc1464)=>{if(this['socketAdapter']['connected']){_0x21d84e();return;}function _0x383152(_0x59a3f0,_0x1ea0bb){return _0xe923(_0x1ea0bb- -0x248,_0x59a3f0);}this['connectionState']='connecting';try{await this['socketAdapter']['connect'](this['url'],{'auth':{'apikey':this[_0x383152(-0x70,-0xb5)]},'transports':['websocket'],'reconnection':!![],'reconnectionDelay':this[_0x383152(-0x8b,-0x9b)][_0x383152(0xa8,0x2d)],'reconnectionAttempts':this[_0x383152(-0x84,-0x9b)][_0x383152(-0xd6,-0x99)],...this['options'][_0x383152(-0xa5,-0x45)]}),this['socket']=this['socketAdapter']['socket'],this[_0x383152(-0x2b,0x48)]['on']('connect',()=>{function _0x25dd81(_0x39fd8b,_0x1f8218){return _0xe923(_0x39fd8b-0x2a7,_0x1f8218);}this['connectionState']='connected',this[_0x25dd81(0x50c,0x4e4)]=0x0,this['setupHeartbeat'](),_0x21d84e();}),this[_0x383152(0x54,0x48)]['on']('disconnect',()=>{this[_0x5f34aa(0x3f3,0x3cc)]='disconnected';function _0x5f34aa(_0x2a7116,_0xb384fe){return _0xe923(_0x2a7116-0x253,_0xb384fe);}this['channels'][_0x5f34aa(0x4cd,0x4d5)](channel=>{function _0x4de6d0(_0x3d9671,_0x394731){return _0xe923(_0x3d9671- -0x248,_0x394731);}channel['_setState'](_0x4de6d0(-0x53,-0x4e));});}),this['socketAdapter']['on']('connect_error',_0x2cac56=>{this['connectionState']='error';function _0x1150b6(_0x3f9760,_0x4f5acf){return _0xe923(_0x3f9760- -0x2bc,_0x4f5acf);}this[_0x1150b6(-0x57,-0xd6)]++,this['reconnectAttempts']>=this[_0x1150b6(-0x10d,-0x100)]&&_0xbc1464(new Error(_0x1150b6(-0x120,-0xa4)+this['maxReconnectAttempts']+'\x20attempts:\x20'+_0x2cac56[_0x1150b6(-0x113,-0x145)]));}),this['socketAdapter']['on']('reconnect',()=>{this['connectionState']='connected';function _0x580fdf(_0x409d65,_0x441957){return _0xe923(_0x409d65-0x1d5,_0x441957);}this['reconnectAttempts']=0x0,this[_0x580fdf(0x3ee,0x390)][_0x580fdf(0x44f,0x452)](channel=>{function _0x26f614(_0x24db66,_0x339b7f){return _0xe923(_0x339b7f-0x14d,_0x24db66);}channel[_0x26f614(0x36a,0x379)]();});}),this['socketAdapter']['on'](_0x383152(-0x90,-0x63),_0x3ba1f5=>{function _0xd73d8e(_0x55e383,_0x3470d2){return _0xe923(_0x3470d2-0x2d5,_0x55e383);}const channel=this['channels'][_0xd73d8e(0x487,0x49e)](_0x3ba1f5['topic']);channel&&channel[_0xd73d8e(0x546,0x554)](_0xd73d8e(0x4fd,0x4ba),_0x3ba1f5);}),this[_0x383152(-0x6,0x48)]['on'](_0x383152(-0x91,-0xc),_0x258f59=>{function _0x4ac03b(_0x2f3ce1,_0x5a77f7){return _0xe923(_0x5a77f7-0x139,_0x2f3ce1);}const channel=this['channels'][_0x4ac03b(0x298,0x302)](_0x258f59[_0x4ac03b(0x421,0x3be)]);channel&&channel[_0x4ac03b(0x3e1,0x3b8)](_0x4ac03b(0x35c,0x375),_0x258f59);}),this['socketAdapter']['on']('presence',_0x521f54=>{const channel=this['channels']['get'](_0x521f54['topic']);channel&&channel['_trigger']('presence',_0x521f54);});}catch(_0xeabfe0){this[_0x383152(-0x82,-0xa8)]=_0x383152(0x5e,0x46),_0xbc1464(_0xeabfe0);}});}[_0x36b514(0x2fb,0x31b)](){this[_0xd7ee14(0x214,0x1f4)]&&(this[_0xd7ee14(0x214,0x1c8)]['disconnect'](),this[_0xd7ee14(0x185,0x11c)]=null);function _0xd7ee14(_0x44d6d1,_0x56921d){return _0xe923(_0x44d6d1- -0x7c,_0x56921d);}this['connectionState']='disconnected',this['channels'][_0xd7ee14(0x157,0x1e0)]();}['channel'](_0x2fb12c){if(this[_0x31f218(0x333,0x393)]['has'](_0x2fb12c))return this[_0x31f218(0x381,0x393)][_0x31f218(0x2f8,0x343)](_0x2fb12c);const channel=new RealtimeChannel(_0x2fb12c,this['socket']);this['channels'][_0x31f218(0x3c5,0x400)](_0x2fb12c,channel);function _0x31f218(_0x3519a6,_0x5613e7){return _0xe923(_0x5613e7-0x17a,_0x3519a6);}return this['connectionState']==='connected'&&channel[_0x31f218(0x390,0x35e)](),channel;}['removeChannel'](channel){const _0x2564cd=channel[_0x2333f5(0x171,0x1e5)];function _0x2333f5(_0x897e04,_0x5070fc){return _0xe923(_0x5070fc- -0xa0,_0x897e04);}this['channels']['has'](_0x2564cd)&&(this[_0x2333f5(0x12d,0x179)][_0x2333f5(0x11f,0x174)](_0x2564cd),channel[_0x2333f5(0x14c,0x199)]());}[_0x36b514(0x343,0x314)](){function _0x76bee1(_0x5a2a1e,_0x3807d5){return _0xe923(_0x5a2a1e-0x159,_0x3807d5);}this['channels'][_0x76bee1(0x3d3,0x43d)](channel=>{function _0x26715b(_0x4add61,_0x4a80f2){return _0xe923(_0x4add61- -0x11d,_0x4a80f2);}channel[_0x26715b(0x11c,0xfc)]();}),this['channels'][_0x76bee1(0x32c,0x32f)]();}[_0x36b514(0x2c7,0x2ba)](){function _0x5ba1e5(_0x57e3a5,_0x20c002){return _0xe923(_0x57e3a5-0x123,_0x20c002);}return Array['from'](this[_0x5ba1e5(0x33c,0x33c)][_0x5ba1e5(0x2b8,0x2f1)]());}[_0x36b514(0x2f4,0x2ee)](){function _0x4acceb(_0x2c276d,_0x1dad6b){return _0xe923(_0x1dad6b-0x133,_0x2c276d);}return this['connectionState']===_0x4acceb(0x31a,0x312)&&this['socketAdapter'][_0x4acceb(0x329,0x312)];}['getConnectionState'](){function _0x387f3e(_0x340708,_0x3f21fb){return _0xe923(_0x3f21fb- -0x35a,_0x340708);}return this[_0x387f3e(-0x18e,-0x1ba)];}['onConnectionStateChange'](_0x187355){function _0x346d6c(_0x5aae57,_0x2026d6){return _0xe923(_0x2026d6- -0xc2,_0x5aae57);}const _0x2c8a25=()=>_0x187355(this['connectionState']);return this['socketAdapter']&&(this['socketAdapter']['on']('connect',()=>{this[_0x40ca40(0x4e3,0x533)]='connected';function _0x40ca40(_0xcc3c9e,_0x5277e7){return _0xe923(_0xcc3c9e-0x343,_0x5277e7);}_0x2c8a25();}),this[_0x346d6c(0x1d5,0x1ce)]['on']('disconnect',()=>{this['connectionState']=_0x96ba3b(0x406,0x3b6);function _0x96ba3b(_0xe11d42,_0x4086ff){return _0xe923(_0x4086ff-0x1c5,_0xe11d42);}_0x2c8a25();}),this[_0x346d6c(0x1d0,0x1ce)]['on']('connect_error',()=>{this['connectionState']=_0x4710f5(0x539,0x5b3);function _0x4710f5(_0x57d2ae,_0x1a7db2){return _0xe923(_0x1a7db2-0x325,_0x57d2ae);}_0x2c8a25();})),()=>{function _0x33a0c3(_0x41bc10,_0x44c758){return _0xe923(_0x41bc10- -0x322,_0x44c758);}this[_0x33a0c3(-0x92,-0x10)]&&(this['socketAdapter'][_0x33a0c3(-0xd2,-0xc5)]('connect',_0x2c8a25),this[_0x33a0c3(-0x92,-0xfa)]['off'](_0x33a0c3(-0x153,-0x154),_0x2c8a25),this['socketAdapter'][_0x33a0c3(-0xd2,-0x117)](_0x33a0c3(-0x13a,-0xf1),_0x2c8a25));};}[_0x36b514(0x308,0x36c)](){function _0x213ad0(_0x13a79c,_0xa95a4d){return _0xe923(_0x13a79c- -0x185,_0xa95a4d);}if(!this[_0x213ad0(0x28,0xa9)]['heartbeatInterval']||!this['socketAdapter'])return;const interval=setInterval(()=>{function _0x1b79ce(_0x30e85e,_0xf39123){return _0xe923(_0x30e85e-0x1d4,_0xf39123);}this[_0x1b79ce(0x464,0x4ad)]?.[_0x1b79ce(0x3b3,0x350)]?this[_0x1b79ce(0x464,0x46f)]['emit'](_0x1b79ce(0x35e,0x344),{'timestamp':Date['now']()}):clearInterval(interval);},this['options'][_0x213ad0(0xe9,0xae)]);}[_0x36b514(0x398,0x32e)](){function _0x23e98f(_0x5053fe,_0x47a914){return _0xe923(_0x47a914- -0x323,_0x5053fe);}return this[_0x23e98f(-0x117,-0x122)];}}class FunctionsClient{constructor(_0x110b9f){this['httpClient']=_0x110b9f;}async['invoke'](_0x4ea5fa,_0x8ef268){function _0x3bcdaa(_0x4842ee,_0x17c67b){return _0xe923(_0x17c67b- -0x3b0,_0x4842ee);}try{const _0x476d9a=_0x8ef268?.[_0x3bcdaa(-0x1bd,-0x158)]||'POST',headers={'Content-Type':'application/json',..._0x8ef268?.[_0x3bcdaa(-0x225,-0x204)]};let response;const _0x5d1d70=_0x3bcdaa(-0x109,-0x123)+_0x4ea5fa;switch(_0x476d9a[_0x3bcdaa(-0x17e,-0x1fe)]()){case'GET':response=await this[_0x3bcdaa(-0x12e,-0x138)]['get'](_0x5d1d70,{'headers':headers,'params':_0x8ef268?.[_0x3bcdaa(-0x1f2,-0x19d)]});break;case'POST':response=await this['httpClient'][_0x3bcdaa(-0x16d,-0x166)](_0x5d1d70,_0x8ef268?.[_0x3bcdaa(-0x1a1,-0x19d)],{'headers':headers});break;case'PUT':response=await this['httpClient'][_0x3bcdaa(-0x16e,-0x1c7)](_0x5d1d70,_0x8ef268?.['body'],{'headers':headers});break;case'PATCH':response=await this[_0x3bcdaa(-0xac,-0x138)]['patch'](_0x5d1d70,_0x8ef268?.['body'],{'headers':headers});break;case'DELETE':response=await this[_0x3bcdaa(-0x15d,-0x138)][_0x3bcdaa(-0x124,-0x19c)](_0x5d1d70,{'headers':headers,'data':_0x8ef268?.[_0x3bcdaa(-0x1d9,-0x19d)]});break;default:throw new EBaaSError('Unsupported\x20HTTP\x20method:\x20'+_0x476d9a,0x190);}return{'data':response['data'],'error':null};}catch(_0x104243){return{'data':null,'error':_0x104243 instanceof EBaaSError?_0x104243:new EBaaSError(_0x104243 instanceof Error?_0x104243['message']:_0x3bcdaa(-0x11d,-0x11a),0x0,_0x104243)};}}async[_0x36b514(0x381,0x39b)](){function _0x3d2e5e(_0x3316d3,_0xd62096){return _0xe923(_0x3316d3- -0x3b3,_0xd62096);}try{const response=await this[_0x3d2e5e(-0x13b,-0x102)][_0x3d2e5e(-0x1ea,-0x1d2)]('/functions/v1');return{'data':response[_0x3d2e5e(-0x22a,-0x25b)],'error':null};}catch(_0x3afaa6){return{'data':null,'error':_0x3afaa6 instanceof EBaaSError?_0x3afaa6:new EBaaSError(_0x3afaa6 instanceof Error?_0x3afaa6['message']:_0x3d2e5e(-0x124,-0x172),0x0,_0x3afaa6)};}}async[_0x36b514(0x2f5,0x34e)](_0x5c3559){function _0x54b8ea(_0x299a15,_0xcd1a87){return _0xe923(_0xcd1a87-0x2f4,_0x299a15);}try{const response=await this[_0x54b8ea(0x53e,0x56c)]['get']('/functions/v1/'+_0x5c3559+_0x54b8ea(0x571,0x585));return{'data':response[_0x54b8ea(0x4b4,0x47d)],'error':null};}catch(_0x310e23){return{'data':null,'error':_0x310e23 instanceof EBaaSError?_0x310e23:new EBaaSError(_0x310e23 instanceof Error?_0x310e23['message']:'Failed\x20to\x20get\x20function',0x0,_0x310e23)};}}async[_0x36b514(0x3a7,0x400)](_0x5d6b26,_0x3adf11){function _0x47a002(_0x2f3401,_0xe0a142){return _0xe923(_0xe0a142-0x1ae,_0x2f3401);}try{const _0x526ab9=new FormData();if(_0x3adf11['code']instanceof File)_0x526ab9[_0x47a002(0x41f,0x3ed)]('code',_0x3adf11['code']);else typeof _0x3adf11['code']===_0x47a002(0x323,0x35f)&&_0x526ab9[_0x47a002(0x466,0x3ed)]('code',new Blob([_0x3adf11[_0x47a002(0x45c,0x416)]],{'type':'text/plain'}),'index.ts');_0x3adf11['entrypoint']&&_0x526ab9['append']('entrypoint',_0x3adf11[_0x47a002(0x3dc,0x401)]);_0x3adf11[_0x47a002(0x372,0x38f)]&&_0x526ab9['append'](_0x47a002(0x3ff,0x38f),JSON[_0x47a002(0x351,0x3bd)](_0x3adf11[_0x47a002(0x333,0x38f)]));_0x3adf11[_0x47a002(0x3d2,0x443)]&&_0x526ab9['append'](_0x47a002(0x465,0x443),JSON['stringify'](_0x3adf11[_0x47a002(0x4c7,0x443)]));_0x3adf11['verify']!==undefined&&_0x526ab9['append']('verify',String(_0x3adf11[_0x47a002(0x4aa,0x42c)]));const response=await this[_0x47a002(0x46b,0x426)][_0x47a002(0x384,0x3f8)](_0x47a002(0x438,0x43b)+_0x5d6b26+_0x47a002(0x454,0x3cc),_0x526ab9,{'headers':{'Content-Type':'multipart/form-data'}});return{'data':response['data'],'error':null};}catch(_0x394bb9){return{'data':null,'error':_0x394bb9 instanceof EBaaSError?_0x394bb9:new EBaaSError(_0x394bb9 instanceof Error?_0x394bb9[_0x47a002(0x363,0x357)]:'Failed\x20to\x20deploy\x20function',0x0,_0x394bb9)};}}async['delete'](_0x5592fb){function _0x42c87e(_0x4aade2,_0x42750b){return _0xe923(_0x42750b-0x2f,_0x4aade2);}try{const response=await this['httpClient'][_0x42c87e(0x204,0x243)](_0x42c87e(0x2f9,0x2bc)+_0x5592fb);return{'data':response[_0x42c87e(0x160,0x1b8)],'error':null};}catch(_0x31a0af){return{'data':null,'error':_0x31a0af instanceof EBaaSError?_0x31a0af:new EBaaSError(_0x31a0af instanceof Error?_0x31a0af['message']:_0x42c87e(0x1e3,0x247),0x0,_0x31a0af)};}}async['updateEnv'](_0x5317b0,_0x57174d){function _0x5147f3(_0x3a1edb,_0xdcf44c){return _0xe923(_0xdcf44c- -0x265,_0x3a1edb);}try{const response=await this[_0x5147f3(0x1c,0x13)]['put']('/functions/v1/'+_0x5317b0+'/env',{'env':_0x57174d});return{'data':response['data'],'error':null};}catch(_0x4cef77){return{'data':null,'error':_0x4cef77 instanceof EBaaSError?_0x4cef77:new EBaaSError(_0x4cef77 instanceof Error?_0x4cef77['message']:_0x5147f3(-0xf5,-0x6a),0x0,_0x4cef77)};}}async['getLogs'](_0x30e0ed,_0x2ad1c8){function _0x29e9b3(_0x51c215,_0x943bc7){return _0xe923(_0x943bc7- -0x31b,_0x51c215);}try{const _0x3d2942=new URLSearchParams();_0x2ad1c8?.[_0x29e9b3(-0x106,-0x109)]&&_0x3d2942[_0x29e9b3(-0x12c,-0xdc)]('limit',String(_0x2ad1c8[_0x29e9b3(-0xfb,-0x109)]));_0x2ad1c8?.[_0x29e9b3(-0x8a,-0xaa)]&&_0x3d2942['append'](_0x29e9b3(-0x11d,-0xaa),String(_0x2ad1c8[_0x29e9b3(-0xd8,-0xaa)]));_0x2ad1c8?.['level']&&_0x3d2942[_0x29e9b3(-0xf3,-0xdc)]('level',_0x2ad1c8[_0x29e9b3(-0x148,-0x130)]);const _0x38ca27=_0x29e9b3(-0x99,-0x8e)+_0x30e0ed+_0x29e9b3(-0x1e3,-0x18e)+(_0x3d2942[_0x29e9b3(-0xeb,-0x14a)]()?'?'+_0x3d2942[_0x29e9b3(-0x18f,-0x14a)]():''),response=await this['httpClient'][_0x29e9b3(-0x1ba,-0x152)](_0x38ca27);return{'data':response[_0x29e9b3(-0x15a,-0x192)],'error':null};}catch(_0x2e9bfb){return{'data':null,'error':_0x2e9bfb instanceof EBaaSError?_0x2e9bfb:new EBaaSError(_0x2e9bfb instanceof Error?_0x2e9bfb['message']:_0x29e9b3(-0x1b4,-0x135),0x0,_0x2e9bfb)};}}async['getMetrics'](_0x788087,_0xf4cdd4){function _0x2faeb9(_0x1f7501,_0x57ea5c){return _0xe923(_0x57ea5c- -0x1f3,_0x1f7501);}try{const _0x164350=new URLSearchParams();_0xf4cdd4?.[_0x2faeb9(0xc3,0x6f)]&&_0x164350[_0x2faeb9(0xb3,0x4c)]('period',_0xf4cdd4['period']);const _0x46d165=_0x2faeb9(0x44,0x9a)+_0x788087+_0x2faeb9(0xc1,0x3c)+(_0x164350[_0x2faeb9(-0xa9,-0x22)]()?'?'+_0x164350[_0x2faeb9(-0x55,-0x22)]():''),response=await this[_0x2faeb9(0x3d,0x85)]['get'](_0x46d165);return{'data':response[_0x2faeb9(-0xc3,-0x6a)],'error':null};}catch(_0x274e59){return{'data':null,'error':_0x274e59 instanceof EBaaSError?_0x274e59:new EBaaSError(_0x274e59 instanceof Error?_0x274e59['message']:_0x2faeb9(-0x9,-0x31),0x0,_0x274e59)};}}}class EBaaSClient{constructor(_0x3f9fd6,_0x18213c,_0x35fb89){this[_0x3cd155(-0x10a,-0x174)]=_0x35fb89,this[_0x3cd155(-0x78,-0xa9)]=new HttpClient({'url':_0x3f9fd6,'apiKey':_0x18213c,'timeout':0x7530,'headers':_0x35fb89?.[_0x3cd155(-0xf9,-0x87)]?.[_0x3cd155(-0x1eb,-0x175)]}),this['auth']=new AuthClient(this[_0x3cd155(-0x10a,-0xa9)],_0x35fb89?.[_0x3cd155(-0x8b,-0xa4)]?.[_0x3cd155(-0x161,-0x18d)]);function _0x3cd155(_0x2ed95a,_0x4d46b1){return _0xe923(_0x4d46b1- -0x321,_0x2ed95a);}this['database']=new DatabaseClient(this[_0x3cd155(-0x7d,-0xa9)],_0x35fb89?.[_0x3cd155(-0x12e,-0xa4)]?.[_0x3cd155(-0x154,-0x18d)]),this['storage']=new StorageClient(this[_0x3cd155(-0x87,-0xa9)]),this[_0x3cd155(-0xab,-0xa5)]=new RealtimeClient(_0x3f9fd6,_0x18213c,_0x35fb89?.[_0x3cd155(-0xc8,-0xa5)]),this['functions']=new FunctionsClient(this['httpClient']),this['initializeCustomDatabase']();}[_0x36b514(0x2d3,0x2d5)](_0xe8c080){return this['database']['from'](_0xe8c080);}[_0x36b514(0x387,0x32c)](_0x1bc956,_0x194f85){function _0x4644ef(_0x789f83,_0x570b98){return _0xe923(_0x789f83- -0x17b,_0x570b98);}return this['database'][_0x4644ef(0xe0,0x154)](_0x1bc956,_0x194f85);}[_0x36b514(0x3c8,0x3bb)](_0x16d7b9){function _0x50fcad(_0x323d6f,_0x130bfd){return _0xe923(_0x323d6f-0x194,_0x130bfd);}return this[_0x50fcad(0x428,0x3e4)]['from'](_0x16d7b9);}[_0x36b514(0x352,0x383)](_0x445336){return this['realtime']['channel'](_0x445336);}['invoke'](_0x1ec717,_0x96c2df){function _0x44ec31(_0x35f456,_0x93be23){return _0xe923(_0x93be23-0x366,_0x35f456);}return this['functions'][_0x44ec31(0x578,0x4f8)](_0x1ec717,_0x96c2df);}async['initializeCustomDatabase'](){function _0x5870c0(_0xd884e9,_0x5e3999){return _0xe923(_0xd884e9-0x37e,_0x5e3999);}if(this[_0x5870c0(0x52b,0x52a)]?.['database']?.['autoDetectCustomDatabase'])try{await this[_0x5870c0(0x5fb,0x650)][_0x5870c0(0x619,0x69b)]();}catch(_0x55d507){console[_0x5870c0(0x593,0x581)]('Failed to initialize custom database detection:',_0x55d507);}}async['setWorkspaceId'](_0x33ed04){function _0x33a28d(_0x3251a4,_0x90d81f){return _0xe923(_0x90d81f- -0x20c,_0x3251a4);}this['auth']['setWorkspaceId'](_0x33ed04),this['database'][_0x33a28d(0x9c,0x31)](_0x33ed04),this[_0x33a28d(-0x1,-0x5f)]?.[_0x33a28d(0x78,0x71)]?.['autoDetectCustomDatabase']&&await this[_0x33a28d(0xe3,0x71)]['initialize']();}async['configureCustomDatabase'](_0x330091){await this['database']['configureCustomDatabase'](_0x330091);}[_0x36b514(0x2ea,0x296)](){function _0x5be215(_0x59a663,_0xa04b37){return _0xe923(_0x59a663-0x24c,_0xa04b37);}return this[_0x5be215(0x4c9,0x512)][_0x5be215(0x40a,0x3b0)]();}}function createClient(_0x1738fc,_0xa107e,_0x3dffb5){return new EBaaSClient(_0x1738fc,_0xa107e,_0x3dffb5);}const version=_0x36b514(0x325,0x2ae);exports[_0x36b514(0x37d,0x380)]=AuthClient,exports[_0x36b514(0x2e1,0x361)]=CustomDatabaseManager,exports['DatabaseClient']=DatabaseClient,exports[_0x36b514(0x322,0x29a)]=EBaaSClient,exports['EBaaSError']=EBaaSError,exports['FunctionsClient']=FunctionsClient,exports[_0x36b514(0x3b7,0x41d)]=HttpClient,exports['QueryBuilder']=QueryBuilder,exports[_0x36b514(0x3b0,0x429)]=RealtimeChannel,exports['RealtimeClient']=RealtimeClient,exports['StorageBucket']=StorageBucket,exports[_0x36b514(0x2e5,0x274)]=StorageClient,exports['createClient']=createClient,exports['version']=version;