@e-techsolutions/e-baas-sdk 1.1.5 → 1.1.6
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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +4 -2
package/dist/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(stringArrayFunction,comparisonValue){function _0x587fd2(_0x5ec8df,_0x167278){return _0x9ef0(_0x5ec8df- -0x264,_0x167278);}const stringArray=stringArrayFunction();while(!![]){try{const _0x28de70=-parseInt(_0x587fd2(0xf,0x2))/0x1+parseInt(_0x587fd2(-0xbb,-0x69))/0x2+-parseInt(_0x587fd2(0xd,0x30))/0x3*(-parseInt(_0x587fd2(-0x2,0x1))/0x4)+-parseInt(_0x587fd2(-0xb,0x2b))/0x5+-parseInt(_0x587fd2(0x0,-0x16))/0x6*(-parseInt(_0x587fd2(-0x9e,-0x109))/0x7)+parseInt(_0x587fd2(0x2,-0x77))/0x8*(-parseInt(_0x587fd2(-0x13,0x2a))/0x9)+parseInt(_0x587fd2(-0x3,-0xe))/0xa;if(_0x28de70===comparisonValue)break;else stringArray['push'](stringArray['shift']());}catch(_0x4a6c40){stringArray['push'](stringArray['shift']());}}}(_0x3d6c,0x87e9b));import axios from'axios';import{io}from'socket.io-client';import _0x36e4e9 from'eventemitter3';class EBaaSError extends Error{constructor(_0x332dcc,status=0x0,_0x426b6d){super(_0x332dcc);function _0x28a799(_0x1f7cf1,_0x22ca0a){return _0x9ef0(_0x22ca0a- -0x10b,_0x1f7cf1);}this[_0x28a799(0xe6,0x9f)]=_0x28a799(0x149,0x14f),this['status']=status,this['details']=_0x426b6d,Error['captureStackTrace']&&Error['captureStackTrace'](this,EBaaSError);}['toJSON'](){function _0x23ca68(_0x342cf6,_0x797cde){return _0x9ef0(_0x797cde- -0x33,_0x342cf6);}return{'name':this['name'],'message':this[_0x23ca68(0x156,0x17c)],'status':this['status'],'details':this['details'],'stack':this['stack']};}['toString'](){function _0x21a279(_0x3ca654,_0x250102){return _0x9ef0(_0x3ca654-0x332,_0x250102);}return this[_0x21a279(0x4dc,0x482)]+':\x20'+this['message']+'\x20(Status:\x20'+this[_0x21a279(0x531,0x4e2)]+')';}}class HttpClient{constructor(config){function _0xdb113c(_0x16e232,_0x5cbef2){return _0x9ef0(_0x16e232- -0x1db,_0x5cbef2);}this[_0xdb113c(0x65,0xba)]=config[_0xdb113c(-0x9,0x64)],this['apiKey']=config[_0xdb113c(0x6b,0xdb)],this[_0xdb113c(-0x12,-0x22)]=axios['create']({'baseURL':this['baseURL'],'timeout':config['timeout']||0x2710,'headers':{'Content-Type':'application/json','apikey':this['apiKey'],...config[_0xdb113c(0x8c,0x5b)]}}),this['setupInterceptors']();}['setupInterceptors'](){function _0x106ddf(_0x4fd773,_0x10a789){return _0x9ef0(_0x4fd773- -0x272,_0x10a789);}this['client'][_0x106ddf(-0xd3,-0x69)][_0x106ddf(-0x80,-0x4f)]['use'](config=>{return config;},_0x530e18=>{function _0x6abf2b(_0x1cdab9,_0x55dbe3){return _0x9ef0(_0x55dbe3-0x172,_0x1cdab9);}return Promise['reject'](new EBaaSError(_0x6abf2b(0x3c0,0x385),0x0,_0x530e18));}),this['client'][_0x106ddf(-0xd3,-0x10f)][_0x106ddf(-0x67,-0x83)][_0x106ddf(-0xde,-0xc8)](response=>{return response;},_0x414c01=>{function _0x12cbea(_0x1e1594,_0x278c73){return _0x9ef0(_0x1e1594-0x1f6,_0x278c73);}const status=_0x414c01['response']?.['status']||0x0,_0x200c1e=_0x414c01['response']?.[_0x12cbea(0x3d2,0x42b)]?.['message']||_0x414c01[_0x12cbea(0x3a5,0x351)]||_0x12cbea(0x3fc,0x39d),_0x362d1a=_0x414c01[_0x12cbea(0x401,0x3fb)]?.[_0x12cbea(0x3d2,0x3a7)]||_0x414c01;return Promise['reject'](new EBaaSError(_0x200c1e,status,_0x362d1a));});}async[_0x57b89b(-0xaf,-0xbf)](_0x47f375,config){function _0x288343(_0x466882,_0x5edbf2){return _0x9ef0(_0x466882- -0x246,_0x5edbf2);}try{const response=await this['client']['get'](_0x47f375,config);return{'data':response[_0x288343(-0x6a,-0xad)],'status':response['status'],'statusText':response['statusText'],'headers':response[_0x288343(0x21,0x1e)]};}catch(_0x1b94c6){throw this['handleError'](_0x1b94c6);}}async[_0x57b89b(-0x179,-0x155)](_0x206a98,data,config){function _0x345c20(_0x23e268,_0x56c987){return _0x9ef0(_0x23e268- -0x36b,_0x56c987);}try{const response=await this['client'][_0x345c20(-0x1ce,-0x1f6)](_0x206a98,data,config);return{'data':response['data'],'status':response[_0x345c20(-0x16c,-0x124)],'statusText':response['statusText'],'headers':response['headers']};}catch(_0x5e0591){throw this['handleError'](_0x5e0591);}}async['put'](_0x238142,data,config){function _0x57838a(_0x212633,_0x481056){return _0x9ef0(_0x481056- -0xc4,_0x212633);}try{const response=await this['client']['put'](_0x238142,data,config);return{'data':response[_0x57838a(0xb3,0x118)],'status':response['status'],'statusText':response['statusText'],'headers':response['headers']};}catch(_0x5a59f2){throw this[_0x57838a(0x84,0xd6)](_0x5a59f2);}}async['patch'](_0x3f8fb9,data,config){function _0x316ae0(_0x364070,_0x40e223){return _0x9ef0(_0x40e223-0x217,_0x364070);}try{const response=await this[_0x316ae0(0x3f8,0x3e0)]['patch'](_0x3f8fb9,data,config);return{'data':response['data'],'status':response[_0x316ae0(0x44b,0x416)],'statusText':response['statusText'],'headers':response[_0x316ae0(0x4c7,0x47e)]};}catch(_0x1aae8d){throw this['handleError'](_0x1aae8d);}}async[_0x57b89b(-0x11c,-0x10d)](_0x29e62c,config){function _0x29e4bc(_0x42c509,_0x4907d0){return _0x9ef0(_0x42c509-0x29c,_0x4907d0);}try{const response=await this[_0x29e4bc(0x465,0x44f)]['delete'](_0x29e62c,config);return{'data':response[_0x29e4bc(0x478,0x47c)],'status':response['status'],'statusText':response['statusText'],'headers':response[_0x29e4bc(0x503,0x576)]};}catch(_0x4f5799){throw this[_0x29e4bc(0x436,0x488)](_0x4f5799);}}[_0x57b89b(-0x90,-0xb0)](_0x15f360){function _0x43038e(_0x566e9d,_0x4c26e8){return _0x9ef0(_0x4c26e8-0x91,_0x566e9d);}this[_0x43038e(0x287,0x25a)][_0x43038e(0x295,0x293)]['headers'][_0x43038e(0x348,0x2cf)]['Authorization']='Bearer\x20'+_0x15f360;}['removeAuthToken'](){delete this[_0x50331f(0x438,0x49c)][_0x50331f(0x471,0x44f)][_0x50331f(0x4d6,0x4ca)][_0x50331f(0x4ad,0x4b7)]['Authorization'];function _0x50331f(_0x47f741,_0x18207c){return _0x9ef0(_0x47f741-0x26f,_0x18207c);}this[_0x50331f(0x438,0x437)][_0x50331f(0x471,0x411)]['headers']['common']['Authorization']=_0x50331f(0x463,0x448)+this[_0x50331f(0x4b5,0x445)];}['handleError'](_0x73e2e7){function _0x4d3971(_0x6ad7a6,_0x2a7894){return _0x9ef0(_0x2a7894- -0xf3,_0x6ad7a6);}if(_0x73e2e7 instanceof EBaaSError)return _0x73e2e7;return new EBaaSError(_0x73e2e7[_0x4d3971(0x11a,0xbc)]||'HTTP\x20request\x20failed',_0x73e2e7[_0x4d3971(0xc9,0x10c)]||0x0,_0x73e2e7);}}function _0x3d6c(){const _0x2d8551=['CNbJ','C3rYAw5N','y29Kzq','zxHLy3v0zvf1zxj5','z2v0vxnLCG','Cg9ZDgDYzxnFy2HHBMDLCZO','AgfZq3vZDg9Trgf0ywjHC2u','D29YA3nWywnLswq','y29UBMvJDgLVBLn0yxrL','y3vZDg9Trgf0ywjHC2vnyw5Hz2vY','CMvXDwvZDa','C2LNBKLU','qMvHCMvYia','zMLSzq','y2XVC2vK','DxbKyxrLrw52','y29UzMLN','C29YDej5','u1vcu0nssujfra','zw50CMLLCW','DxbKyxrLt3b0Aw9UCW','l2zPBgvZ','Aw52B2TL','C3rHDhvZ','B2zMC2v0','DhjHBNnMB3jT','zgvMyxvSDhm','rgf0ywjHC2uGB3bLCMf0Aw9UigzHAwXLza','x3rYAwDNzxi','Dg9tDhjPBMC','vw5RBM93BIbLCNjVCG','yxbWzw5K','z3rL','AM9PBG','Ec10B3rHBc1JB3vUDa','CMvZCg9UC2u','rMfPBgvKihrVignYzwf0zsbIDwnRzxq','C3rHCNrZv2L0Aa','B25bDxrOu3rHDgvdAgfUz2u','l2f1DgGVDJeVDxnLCG','Bwv0ywrHDge','CxvLCNK','rMfPBgvKihrVigDLDcbMAwXLigLUzM8','uMvXDwvZDcbMywLSzwq','BM93','l21LDgfKyxrH','CMfUzg9T','zxHLy3v0zq','x2DLDfnVy2TLDa','p29WzxjHDgLVBJ11ChnLCNq','DhjHy2S','DMfSDwvZ','z2v0u3rHDgu','C3bSAxq','p29WzxjHDgLVBJ1ZzwXLy3q','zNjVBq','rMfPBgvKihrVihvWBg9HzcbMAwXL','Aw5PDgLHBgL6zun1C3rVBurHDgfIyxnL','rMfPBgvKihrVignVBM5Ly3qGywz0zxiG','C2v0v29YA3nWywnLswq','DgvZDenVBM5Ly3rPB24','y29UBMvJDa','C3rYAw5NAwz5','BMvX','Cg9ZDgDYzxnFy2HHBMDLCW','Cg9ZDgDYzxniB3n0','ChvZAa','yNvJA2v0swq','y2XLyxi','Dw50CMfJAW','l3nKAY92ms8','z2v0u2vZC2LVBG','BgLTAxq','BgvHDMLUzW','C2vHCMnO','z2v0','q0Xpu0ve','z2v0v29YA3nWywnLswq','C3vIC3rYAw5N','CMvZzxrqyxnZD29Yza','CMvMCMvZAfnLC3nPB24','CMvZB2X1DgLVBJ1TzxjNzs1KDxbSAwnHDgvZlhjLDhvYBJ1YzxbYzxnLBNrHDgLVBG','zxjYB3jLza','CMfUz2u','BwfRzvjLzG','CgfYC2u','y29TBw9U','rNvUy3rPB24GAw52B2nHDgLVBIbMywLSzwq','yMfZzvvsta','y3vYCMvUDfnJAgvTyq','C2v0qxv0AfrVA2vU','x3jLAM9PBG','Bwf4uMvJB25Uzwn0qxr0zw1WDhm','C29JA2v0t3b0Aw9UCW','yxbPs2v5','p3vWC2vYDd10CNvL','B3jKzxi','Chv0','DMfSDwu','Dg9vChbLCKnHC2u','z2XVyMfS','Bw92zq','DxbKyxrLqNvJA2v0','Aw5KzxGUDhm','B3bLCMf0B3i','ouz2ru9cBa','Aw5PDgLHBgL6zq','z2v0u3rHDhvZ','B25qCMvZzw5Jzq','zxjYB3i','CMvJB25Uzwn0sw50zxj2ywW','rMfPBgvKihrVigXPC3qGzNvUy3rPB25Z','zgLZy29UBMvJDgvK','mJyXntqWnw5qy0HUCW','rujHyvnfCNjVCG','AgfUzgXLqxv0AevYCM9Y','C2v0u2vZC2LVBKLUDgvYBMfS','C3rHDgu','zwjHyxmUyxv0Ac5ZzxnZAw9U','Cgf0Aa','l2zPBgvZlW','mtq3mdqWCM9Ay0DS','mte5nZG4Aun1tKXX','l3nPz24','mZzSvu1MswS','BxvSDgLWyxj0l2zVCM0Tzgf0yq','ody4mdGWBvPjtM5q','AgvHzgvYCW','Dgv4Dc9WBgfPBG','x2PVAw4','y29UDgfPBNm','y3vYCMvUDfnLC3nPB24','zMLSDgvYCW','rMfPBgvKihrVihvWzgf0zsbIDwnRzxq','zw1PDa','Aw1WB3j0twfW','ChjLC2vUy2u','m2zhq0nfwG','rMfPBgvKihrVihvWzgf0zsbMAwXLig1LDgfKyxrH','nJy4mdK5CwHrsxz0','CgvYAw9K','Cgf0y2G','uhjLzMvY','AM9PBMvKt25Jzq','CMvTB3zLsxrLBq','zw52','B2zM','z2v0q3vZDg9Trgf0ywjHC2vtDgf0Dxm','B25dB25Uzwn0Aw9Uu3rHDgvdAgfUz2u','Bgv2zwW','igf0DgvTChrZoIa','zw50CNLWB2LUDa','DgvZDen1C3rVBunVBM5Ly3rPB24','z2v0q3vZDg9Tq3jLzgvUDgLHBhm','z2v0q29UBMvJDgLVBLn0yxrL','Aw5Zzxj0','AxnvC2LUz0n1C3rVBurHDgfIyxnL','y2fJAgvdB250CM9S','AxndB25Uzwn0zwq','y2XLyxjtzxnZAw9U','CMvMCMvZAf90B2TLBG','Bg9HzfnLC3nPB24','DxnL','zgv0zwn0q3vZDg9Trgf0ywjHC2u','l2vUDG','B25qB3n0z3jLC0nOyw5Nzxm','y3jLyxrLu2LNBMvKvxjS','wc1xB3jRC3bHy2uTsuq','AgfUzgXLrxjYB3i','BgvUz3rO','BgLZDa','Cg9ZDa','yNjVywrJyxn0','Aw50zxjJzxb0B3jZ','C3vIC2nYAwjL','yxv0Aa','zgLZy29UBMvJDa','Bwv0Ag9K','BhrL','B3b0Aw9UCW','C2v0sxrLBq','Ag9ZDa','C2vZC2LVBG','mtGXnJe5mKrfvLHOtq','BMfTzq','DxbKyxrLvxnLCG','CMvTB3zLq3vZDg9Trgf0ywjHC2u','AgfZ','DxbKyxrL','BwvZC2fNzq','C3rVCMfNzq','y2HHBM5LBhm','DgfIBgu','q0HbtK5ftf9fuLjpuG','y3jLzgvUDgLHBhm','rMfPBgvKihrVigDLDcbMDw5JDgLVBG','z2v0rgv0zwn0zwrdB25MAwC','DxbKyxrLrgf0yq','zgv0zwn0zwrdB25MAwC','Dw5ZDwjZy3jPyMu','lMrLC2m','l3n0B3jHz2uVyNvJA2v0CW','Dg9WAwm','CMvHBhrPBwu','C3vIC2nYAwjLx3bVC3rNCMvZx2nOyw5Nzxm','rMfPBgvKihrVigDLDcbZDg9YywDLihvZywDL','C29JA2v0','DxnLCG','zgvSzxrLqNvJA2v0','C3vIC2nYAxb0Aw9UCW','AM9PBMLUzW','zgf0yufYCMf5','mta1ndi0oxDrENHlva','yNvJA2v0','zMLSDgvY','y2XPzw50','C2v0','C2vSzwn0','zgvSzxrLt3b0Aw9UCW','ChjLC2vUy2u6','y29SDw1U','Ahr0CenSAwvUDa','CMvJB25Uzwn0qxr0zw1WDhm','y29UBMvJDf9LCNjVCG','DxjS','DxbZzxj0','l3n0B3jHz2uVyNvJA2v0CY8','BgLRzq','zgf0ywjHC2u','y29UBMvJDgvK','yM9KEq','y29UzMLNDxjLq3vZDg9Trgf0ywjHC2u','zgvWBg95','l2LUzM8','zgf0yq','yxnJzw5KAw5N','l2z1BMn0Aw9UCY92ms8','zM9YrwfJAa','l2f1DgGVDJeVCMvZzxqTCgfZC3DVCMq','AM9PBMvK','Bg9N','AwXPA2u','B3bLCMf0Aw9U','zgvSzxrL','C2v0u2vZC2LVBG','C2v0DxbizwfYDgjLyxq'];_0x3d6c=function(){return _0x2d8551;};return _0x3d6c();}class AuthClient{constructor(_0x212b78,_0x3233ad){this['currentSession']=null,this['httpClient']=_0x212b78;function _0x1f339a(_0x5c48dc,_0x49c0cc){return _0x9ef0(_0x49c0cc-0x224,_0x5c48dc);}this[_0x1f339a(0x3ad,0x413)]=_0x3233ad,this['loadSession']();}async['signUp'](data){function _0x34385e(_0x969e7f,_0x1ab6f0){return _0x9ef0(_0x1ab6f0-0x62,_0x969e7f);}try{const response=await this['httpClient']['post']('/auth/v1/signup',data);return response[_0x34385e(0x25b,0x23e)][_0x34385e(0x1a8,0x20a)]&&this['setSessionInternal'](response['data']['session']),response['data'];}catch(_0x26da60){throw this[_0x34385e(0x286,0x2bd)](_0x26da60);}}async[_0x57b89b(-0xee,-0xff)](data){function _0x43e402(_0x7aa18b,_0x966efe){return _0x9ef0(_0x966efe- -0x159,_0x7aa18b);}try{const headers={};this['workspaceId']&&(headers[_0x43e402(0xa1,0x40)]=this[_0x43e402(0xfe,0x96)]);const response=await this['httpClient']['post']('/auth/v1/sdk/signin',data,{'headers':headers});return response['data']['session']&&this[_0x43e402(0x13a,0x103)](response['data']['session']),response[_0x43e402(0x10,0x83)];}catch(_0x312b10){throw this[_0x43e402(0x143,0x102)](_0x312b10);}}async['signOut'](){function _0x155987(_0x391626,_0x19e9be){return _0x9ef0(_0x391626- -0xa1,_0x19e9be);}try{await this[_0x155987(0x12e,0x184)][_0x155987(0xfc,0x101)]('/auth/v1/signout'),this[_0x155987(0xf0,0x89)]();}catch(_0x25da35){this[_0x155987(0xf0,0xf0)]();throw this[_0x155987(0x1ba,0x1ce)](_0x25da35);}}async[_0x57b89b(-0xee,-0x106)](){if(!this['currentSession']?.['access_token'])return null;function _0x65410b(_0x395006,_0x5bd593){return _0x9ef0(_0x5bd593-0x13e,_0x395006);}try{const response=await this['httpClient']['get'](_0x65410b(0x3c6,0x34d));return response[_0x65410b(0x343,0x31a)]['user'];}catch(_0x1d3e96){if(_0x1d3e96 instanceof EBaaSError&&_0x1d3e96[_0x65410b(0x308,0x33d)]===0x191)return this['clearSession'](),null;throw this['handleAuthError'](_0x1d3e96);}}async[_0x57b89b(-0xd0,-0xba)](){function _0x33b7a8(_0x62daa1,_0x108702){return _0x9ef0(_0x108702-0x2b,_0x62daa1);}if(!this['currentSession']?.['refresh_token'])return null;try{const response=await this['httpClient'][_0x33b7a8(0x1bd,0x1c8)]('/auth/v1/refresh',{'refresh_token':this['currentSession'][_0x33b7a8(0x194,0x1bd)]});if(response[_0x33b7a8(0x1ad,0x207)]['session'])return this[_0x33b7a8(0x197,0x211)](response[_0x33b7a8(0x273,0x207)]['session']),response['data'][_0x33b7a8(0x1c6,0x1d3)];return null;}catch(_0x36cc2d){this[_0x33b7a8(0x185,0x1bc)]();throw this[_0x33b7a8(0x2ae,0x286)](_0x36cc2d);}}async[_0x57b89b(-0xc1,-0xbb)](_0x299ec3){function _0x71c751(_0x4c43c3,_0x353804){return _0x9ef0(_0x4c43c3- -0x3e5,_0x353804);}try{await this['httpClient'][_0x71c751(-0x248,-0x26e)](_0x71c751(-0x205,-0x1c3),{'email':_0x299ec3});}catch(_0x3c476a){throw this[_0x71c751(-0x18a,-0x12b)](_0x3c476a);}}async[_0x57b89b(-0xcc,-0x147)](data){function _0x2b2871(_0x2042ce,_0x26d440){return _0x9ef0(_0x26d440- -0x382,_0x2042ce);}try{const response=await this[_0x2b2871(-0x1ab,-0x1b3)]['put']('/auth/v1/user',data);return response['data'][_0x2b2871(-0x23a,-0x1c1)];}catch(_0x41313a){throw this['handleAuthError'](_0x41313a);}}[_0x57b89b(-0x90,-0xc3)](){return this['currentSession'];}['setSession'](_0x1f3e73){this[_0x46cd2b(0x4ef,0x47b)]=_0x1f3e73,this['httpClient']['setAuthToken'](_0x1f3e73['access_token']);function _0x46cd2b(_0x1e50f8,_0x115d52){return _0x9ef0(_0x115d52-0x210,_0x1e50f8);}typeof localStorage!=='undefined'&&localStorage[_0x46cd2b(0x3c9,0x3b6)]('ebaas.auth.session',JSON['stringify'](_0x1f3e73));}[_0x57b89b(-0xb5,-0xe4)](_0x31a1a1){return()=>{};}['setWorkspaceId'](_0x539bd7){this['workspaceId']=_0x539bd7;}['setSessionInternal'](_0x2cc0a1){this[_0xebc9a8(-0x11d,-0x153)]=_0x2cc0a1,this['httpClient'][_0xebc9a8(-0x146,-0x1c1)](_0x2cc0a1['access_token']);function _0xebc9a8(_0x4bdcd7,_0x765c89){return _0x9ef0(_0x4bdcd7- -0x388,_0x765c89);}typeof localStorage!=='undefined'&&localStorage[_0xebc9a8(-0x1e2,-0x1b3)](_0xebc9a8(-0x12a,-0x111),JSON['stringify'](_0x2cc0a1));}[_0x57b89b(-0x149,-0x161)](){this[_0x31b638(0x5c5,0x5b3)]=null,this['httpClient']['removeAuthToken']();function _0x31b638(_0x578628,_0x535470){return _0x9ef0(_0x578628-0x35a,_0x535470);}typeof localStorage!=='undefined'&&localStorage[_0x31b638(0x4dc,0x4ac)]('ebaas.auth.session');}[_0x57b89b(-0x191,-0x15f)](){function _0x2f4480(_0xd1c75c,_0x235ec8){return _0x9ef0(_0xd1c75c-0x246,_0x235ec8);}if(typeof localStorage!=='undefined'){const _0x214d3e=localStorage['getItem']('ebaas.auth.session');if(_0x214d3e)try{const _0x31085a=JSON[_0x2f4480(0x483,0x46c)](_0x214d3e);this[_0x2f4480(0x4a2,0x445)](_0x31085a);}catch(_0x22f328){this['clearSession']();}}}[_0x57b89b(-0xf5,-0x97)](_0x278a9b){if(_0x278a9b instanceof EBaaSError)return _0x278a9b;function _0x59cacb(_0x3dec19,_0xacffcd){return _0x9ef0(_0x3dec19- -0x1e4,_0xacffcd);}return new EBaaSError(_0x278a9b[_0x59cacb(-0x35,-0x72)]||'Authentication\x20failed',_0x278a9b[_0x59cacb(0x1b,-0x53)]||0x0,_0x278a9b);}}class QueryBuilder{constructor(_0x319f55,_0x54d8ad,_0x6ac954,_0x2f3da2){this['httpClient']=_0x319f55,this[_0x560cfc(-0x87,-0xf6)]=_0x54d8ad,this['schema']=_0x6ac954,this['workspaceId']=_0x2f3da2;function _0x560cfc(_0xc20818,_0x627286){return _0x9ef0(_0x627286- -0x2a8,_0xc20818);}this[_0x560cfc(-0x41,-0x97)]={'filters':[]};}['select'](_0x404654='*',_0x5257e8){function _0x4b1e15(_0x5b95b1,_0x4e1891){return _0x9ef0(_0x5b95b1-0x342,_0x4e1891);}return this['query'][_0x4b1e15(0x50d,0x512)]=_0x404654,this;}[_0x57b89b(-0x12a,-0x165)](data,_0x2d3b8b){function _0x1b6088(_0x1be828,_0x2cb31e){return _0x9ef0(_0x2cb31e- -0x2a5,_0x1be828);}return this[_0x1b6088(-0x57,-0xba)]('POST',_0x1b6088(-0x94,-0x77)+this[_0x1b6088(-0x164,-0xf3)]+'?operation=insert',{'data':data,'options':_0x2d3b8b});}['update'](data,_0x1933f9){function _0x24d0e8(_0x496461,_0x31699b){return _0x9ef0(_0x496461-0x89,_0x31699b);}return this['query']['updateData']=data,this['query'][_0x24d0e8(0x285,0x2fe)]=_0x1933f9,this;}['upsert'](data,_0x17ea79){function _0x20f063(_0x1c6ea7,_0x1f2fb6){return _0x9ef0(_0x1f2fb6- -0x3bd,_0x1c6ea7);}return this[_0x20f063(-0x15f,-0x1d2)]('POST',_0x20f063(-0x1fa,-0x18f)+this['table']+_0x20f063(-0x1d5,-0x1a4),{'data':data,'options':{..._0x17ea79,'upsert':!![]}});}['delete'](_0xfe7e7c){this['query'][_0x3ab5a4(0x5b0,0x54e)]=_0xfe7e7c;function _0x3ab5a4(_0x170958,_0x579c22){return _0x9ef0(_0x170958-0x3e4,_0x579c22);}return this[_0x3ab5a4(0x5f5,0x64f)]['isDelete']=!![],this;}['eq'](_0x4cbf86,_0x511fe0){this[_0x3562cd(0x4af,0x45b)]['filters'][_0x3562cd(0x479,0x474)]({'column':_0x4cbf86,'operator':'eq','value':_0x511fe0});function _0x3562cd(_0xf9782,_0x297f9f){return _0x9ef0(_0x297f9f-0x24a,_0xf9782);}return this;}[_0x57b89b(-0x7c,-0xcb)](_0x5c243e,_0x49beb8){this[_0x4c9088(0x595,0x58d)]['filters']['push']({'column':_0x5c243e,'operator':_0x4c9088(0x5ab,0x5ea),'value':_0x49beb8});function _0x4c9088(_0x26944b,_0x101df9){return _0x9ef0(_0x26944b-0x384,_0x101df9);}return this;}['gt'](_0x311090,_0x201f3b){this['query']['filters'][_0x3c0a88(0x25e,0x24b)]({'column':_0x311090,'operator':'gt','value':_0x201f3b});function _0x3c0a88(_0x3adfca,_0x5da560){return _0x9ef0(_0x5da560-0x21,_0x3adfca);}return this;}[_0x57b89b(-0x163,-0xea)](_0x181e34,_0x433bf8){function _0x391494(_0x4d7799,_0x323399){return _0x9ef0(_0x4d7799- -0x54,_0x323399);}return this['query'][_0x391494(0x218,0x1e2)]['push']({'column':_0x181e34,'operator':_0x391494(0x1b4,0x18e),'value':_0x433bf8}),this;}['lt'](_0x300f2d,_0x5092df){this[_0x22c90e(0x51,-0x22)]['filters'][_0x22c90e(0x6a,0x3)]({'column':_0x300f2d,'operator':'lt','value':_0x5092df});function _0x22c90e(_0x54e900,_0x473b1e){return _0x9ef0(_0x54e900- -0x1c0,_0x473b1e);}return this;}[_0x57b89b(-0x171,-0x14e)](_0x2c68d5,_0x4a1894){return this['query']['filters']['push']({'column':_0x2c68d5,'operator':'lte','value':_0x4a1894}),this;}[_0x57b89b(-0x114,-0x11d)](_0x5314c4,_0x5cbb3b){function _0x3c0ef0(_0x4f80c5,_0x3d2d15){return _0x9ef0(_0x4f80c5- -0x3cf,_0x3d2d15);}return this['query'][_0x3c0ef0(-0x163,-0x1b5)]['push']({'column':_0x5314c4,'operator':_0x3c0ef0(-0x1fa,-0x1ae),'value':_0x5cbb3b}),this;}['ilike'](_0x283293,_0x52ed95){this[_0x14a4f1(0x589,0x522)][_0x14a4f1(0x5e4,0x5aa)]['push']({'column':_0x283293,'operator':_0x14a4f1(0x55b,0x542),'value':_0x52ed95});function _0x14a4f1(_0x4b4df1,_0x18b42a){return _0x9ef0(_0x4b4df1-0x378,_0x18b42a);}return this;}['is'](_0x1ad8e2,_0xf25e41){this['query']['filters'][_0x34a4f9(0xe,0x3f)]({'column':_0x1ad8e2,'operator':'is','value':_0xf25e41});function _0x34a4f9(_0x55b4cc,_0x6206fa){return _0x9ef0(_0x55b4cc- -0x21c,_0x6206fa);}return this;}['in'](_0x3ce722,_0x580e62){this['query'][_0xece39c(-0xd4,-0xe3)]['push']({'column':_0x3ce722,'operator':'in','value':_0x580e62});function _0xece39c(_0x225637,_0x195da8){return _0x9ef0(_0x195da8- -0x34f,_0x225637);}return this;}['contains'](_0x35c1b5,_0x55cb09){this[_0x277761(0x599,0x5d4)]['filters'][_0x277761(0x5b2,0x603)]({'column':_0x35c1b5,'operator':_0x277761(0x5f2,0x5bb),'value':_0x55cb09});function _0x277761(_0x79421a,_0xd68cd5){return _0x9ef0(_0x79421a-0x388,_0xd68cd5);}return this;}['match'](_0x7bb030){Object[_0x3dcc71(0x2f6,0x368)](_0x7bb030)[_0x3dcc71(0x362,0x34c)](([_0x59c264,_0x148516])=>{this['eq'](_0x59c264,_0x148516);});function _0x3dcc71(_0x170d5e,_0x1b0032){return _0x9ef0(_0x1b0032-0x16d,_0x170d5e);}return this;}['order'](_0xd9cf4e,_0x266d9d){!this['query'][_0x39f03b(-0x10a,-0x117)]&&(this[_0x39f03b(-0xf0,-0x14e)]['order']=[]);function _0x39f03b(_0x46ab2e,_0x402e0e){return _0x9ef0(_0x402e0e- -0x35f,_0x46ab2e);}return this[_0x39f03b(-0x180,-0x14e)][_0x39f03b(-0x167,-0x117)][_0x39f03b(-0x1a3,-0x135)]({'column':_0xd9cf4e,'ascending':_0x266d9d?.[_0x39f03b(-0x1e1,-0x182)]!==![]}),this;}[_0x57b89b(-0x8e,-0xc2)](count){return this['query']['limit']=count,this;}['range'](from,_0x37d7d0){function _0xb1bdff(_0x458552,_0x16d5a4){return _0x9ef0(_0x458552- -0x3af,_0x16d5a4);}return this[_0xb1bdff(-0x19e,-0x1e5)][_0xb1bdff(-0x174,-0x119)]={'from':from,'to':_0x37d7d0},this;}async[_0x57b89b(-0x80,-0xdb)](){function _0x150657(_0xea127d,_0x7e2515){return _0x9ef0(_0xea127d- -0x3d7,_0x7e2515);}if(this[_0x150657(-0x1c6,-0x211)][_0x150657(-0x220,-0x23c)])return this[_0x150657(-0x1ec,-0x21b)]('PATCH','/sdk/v1/'+this['table'],{'data':this['query']['updateData'],'options':this[_0x150657(-0x1c6,-0x20d)]['updateOptions'],'filters':this['query']['filters']});else return this[_0x150657(-0x1c6,-0x1b1)]['isDelete']?this[_0x150657(-0x1ec,-0x225)]('DELETE',_0x150657(-0x1a9,-0x18b)+this[_0x150657(-0x225,-0x1c3)]+'?operation=delete',{'options':this[_0x150657(-0x1c6,-0x14f)]['deleteOptions'],'filters':this['query'][_0x150657(-0x16b,-0x11b)]}):this['executeQuery']('GET',_0x150657(-0x1a9,-0x221)+this['table']+_0x150657(-0x1b9,-0x177),{'select':this['query'][_0x150657(-0x20c,-0x25c)],'filters':this['query'][_0x150657(-0x16b,-0x193)],'order':this['query']['order'],'limit':this['query'][_0x150657(-0x1a7,-0x213)],'range':this['query']['range']});}async['single'](){this['limit'](0x1);function _0x523722(_0x32b2e5,_0xcadc57){return _0x9ef0(_0x32b2e5-0x84,_0xcadc57);}const result=await this[_0x523722(0x29b,0x2d4)]();return{'data':result[_0x523722(0x260,0x27b)]?.[0x0]||null,'error':result['error']};}async[_0x57b89b(-0x156,-0x107)](_0x158694,_0x37f6ce,_0xc7a4b){function _0x154b2e(_0xd96352,_0x5ac252){return _0x9ef0(_0xd96352- -0xf1,_0x5ac252);}try{let response;const headers={};this['workspaceId']&&(headers['x-workspace-id']=this['workspaceId']);if(_0x158694==='GET'){const _0x5e79ea=_0x37f6ce[_0x154b2e(0x12c,0xfe)]('?'),_0x1cb19d=_0x5e79ea[0x0],existingParams=new URLSearchParams(_0x5e79ea[0x1]||'');if(_0xc7a4b['select'])existingParams['append'](_0x154b2e(0xda,0x11f),_0xc7a4b[_0x154b2e(0xda,0x10e)]);_0xc7a4b[_0x154b2e(0x17b,0x16d)]?.[_0x154b2e(0xaa,0x5c)]&&_0xc7a4b['filters'][_0x154b2e(0xee,0xf6)](filter=>{function _0xd3b9b(_0x177c82,_0x13062e){return _0x9ef0(_0x13062e- -0x266,_0x177c82);}existingParams['append'](filter[_0xd3b9b(-0x28,-0x98)],filter[_0xd3b9b(0x2e,-0x16)]+'.'+filter[_0xd3b9b(-0x7d,-0x1c)]);});if(_0xc7a4b['order']?.['length']){const orderStr=_0xc7a4b['order']['map'](_0x225edf=>''+_0x225edf['column']+(_0x225edf['ascending']?'.asc':_0x154b2e(0xc9,0x12e)))['join'](',');existingParams['append'](_0x154b2e(0x157,0x107),orderStr);}if(_0xc7a4b[_0x154b2e(0x13f,0x169)])existingParams['append']('limit',_0xc7a4b['limit']['toString']());_0xc7a4b[_0x154b2e(0x14a,0x19e)]&&(existingParams[_0x154b2e(0x116,0x112)](_0x154b2e(0x10f,0x96),_0xc7a4b[_0x154b2e(0x14a,0x119)]['from']['toString']()),existingParams[_0x154b2e(0x116,0x14e)]('limit',(_0xc7a4b['range']['to']-_0xc7a4b[_0x154b2e(0x14a,0x158)]['from']+0x1)['toString']())),response=await this['httpClient']['get'](_0x1cb19d+'?'+existingParams['toString'](),{'headers':headers});}else{if(_0x158694==='DELETE'){const _0x1a4ada=_0x37f6ce[_0x154b2e(0x12c,0xbb)]('?'),_0xc1f67e=_0x1a4ada[0x0],existingParams=new URLSearchParams(_0x1a4ada[0x1]||'');!existingParams[_0x154b2e(0xbc,0x89)]('operation')&&existingParams['append']('operation','delete');_0xc7a4b[_0x154b2e(0x17b,0x19a)]?.['length']&&_0xc7a4b[_0x154b2e(0x17b,0x1c0)]['forEach'](filter=>{function _0x55c9fe(_0x588dc6,_0x328714){return _0x9ef0(_0x588dc6-0x3ca,_0x328714);}existingParams['append'](filter['column'],filter['operator']+'.'+filter[_0x55c9fe(0x614,0x668)]);});const deleteUrl=_0xc1f67e+'?'+existingParams[_0x154b2e(0x114,0xdd)]();console[_0x154b2e(0xf1,0x9c)]('\uD83D\uDD27 DELETE URL construída:',deleteUrl),console['log']('\uD83D\uDD27 DELETE headers:',headers),console[_0x154b2e(0xf1,0x14a)]('\uD83D\uDD27 DELETE filtros originais:',_0xc7a4b['filters']),response=await this['httpClient'][_0x154b2e(0xf4,0x7f)](deleteUrl,{'headers':headers});}else{if(_0x158694==='PATCH'){const _0x2d061b=_0x37f6ce['split']('?'),_0x42b933=_0x2d061b[0x0],existingParams=new URLSearchParams(_0x2d061b[0x1]||'');!existingParams['has']('operation')&&existingParams['append'](_0x154b2e(0xf3,0xcb),_0x154b2e(0xbd,0xd8));_0xc7a4b['filters']?.[_0x154b2e(0xaa,0x9e)]&&_0xc7a4b[_0x154b2e(0x17b,0x17a)]['forEach'](filter=>{function _0x55b004(_0x1c7466,_0x459561){return _0x9ef0(_0x459561-0x341,_0x1c7466);}existingParams['append'](filter['column'],filter[_0x55b004(0x59b,0x591)]+'.'+filter[_0x55b004(0x5aa,0x58b)]);});_0xc7a4b['options']?.['prefer']&&(headers['Prefer']=_0xc7a4b[_0x154b2e(0xb4,0x109)]['prefer']);const updateUrl=_0x42b933+'?'+existingParams[_0x154b2e(0x114,0xd2)]();response=await this[_0x154b2e(0xde,0xf5)][_0x154b2e(0x8e,0x13)](updateUrl,_0xc7a4b[_0x154b2e(0xeb,0x144)],{'headers':headers});}else{let _0x32c5e7=_0xc7a4b[_0x154b2e(0xeb,0xb8)];!headers['Prefer']&&(headers['Prefer']='return=representation'),_0xc7a4b[_0x154b2e(0xb4,0x78)]?.['upsert']&&(headers[_0x154b2e(0x8f,0x108)]=_0x154b2e(0x148,0x104)),_0xc7a4b[_0x154b2e(0xd4,0x14e)]&&(_0x32c5e7=_0xc7a4b[_0x154b2e(0xd4,0x13f)]),response=await this[_0x154b2e(0xde,0x68)]['post'](_0x37f6ce,_0x32c5e7,{'headers':headers});}}}return{'data':response['data'],'error':null,'count':response[_0x154b2e(0x176,0x10e)]?.[_0x154b2e(0x119,0x139)]?parseInt(response[_0x154b2e(0x176,0x11c)]['x-total-count']):undefined};}catch(_0x4fab20){return{'data':null,'error':_0x4fab20 instanceof EBaaSError?_0x4fab20:new EBaaSError(_0x4fab20 instanceof Error?_0x4fab20['message']:_0x154b2e(0x112,0xb9),0x0,_0x4fab20)};}}}function _0x57b89b(_0x542242,_0x52818c){return _0x9ef0(_0x52818c- -0x2f2,_0x542242);}class CustomDatabaseManager{constructor(_0x1af207,_0x1457f0){this[_0x32456a(0x403,0x41d)]=_0x1af207;function _0x32456a(_0x199d8d,_0xd19b0c){return _0x9ef0(_0xd19b0c-0x24e,_0x199d8d);}this[_0x32456a(0x486,0x43d)]=_0x1457f0;}async['detectCustomDatabase'](){if(!this['workspaceId'])return{'hasCustomDatabase':![]};try{const response=await this[_0x507870(-0x1b6,-0x1cc)]['get']('/admin/v1/workspace/custom-database',{'headers':{'x-workspace-id':this[_0x507870(-0x196,-0x1c0)]}});if(response['status']===0xc8&&response['data']?.['config']){const config=response[_0x507870(-0x1a9,-0x194)][_0x507870(-0x18d,-0x1cf)],_0x4d8a8f={'host':config[_0x507870(-0x15c,-0x119)],'port':config['postgresPort'],'database':config['postgresDatabase'],'username':config['postgresUsername'],'password':'','schema':config['postgresSchema'],'sslEnabled':config['sslEnabled']};return this[_0x507870(-0x1cd,-0x15e)]={'hasCustomDatabase':!![],'config':config,'credentials':_0x4d8a8f},this[_0x507870(-0x1cd,-0x248)];}}catch(_0x3ee4ea){if(_0x3ee4ea?.['status']===0x194)return this['detectedConfig']={'hasCustomDatabase':![]},this['detectedConfig'];console['warn']('Failed to detect custom database configuration:',_0x3ee4ea);}this[_0x507870(-0x1cd,-0x188)]={'hasCustomDatabase':![]};function _0x507870(_0x23c7cf,_0xac5f6c){return _0x9ef0(_0x23c7cf- -0x385,_0xac5f6c);}return this['detectedConfig'];}async[_0x57b89b(-0x7d,-0xce)](_0x1a6105){function _0x2cbd22(_0x7783b5,_0x467f94){return _0x9ef0(_0x467f94- -0x196,_0x7783b5);}try{const response=await this['httpClient'][_0x2cbd22(0x27,0x7)]('/admin/v1/workspace/custom-database/test-connection',_0x1a6105,{'headers':this['workspaceId']?{'X-Workspace-ID':this['workspaceId']}:{}});return response['data'];}catch(_0x11f0dc){return{'success':![],'message':_0x11f0dc?.['message']||'Failed\x20to\x20test\x20connection'};}}async['configureCustomDatabase'](_0x5cf6fa){if(!this['workspaceId'])throw new Error('Workspace ID is required to configure custom database');const response=await this['httpClient'][_0x50ebf7(0x3d,0x82)]('/admin/v1/workspace/custom-database',{'workspaceId':this[_0x50ebf7(0x8f,0x7a)],..._0x5cf6fa},{'headers':{'X-Workspace-ID':this[_0x50ebf7(0x8f,0xe7)]}}),config=response[_0x50ebf7(0x7c,0x68)][_0x50ebf7(0x98,0xfa)];function _0x50ebf7(_0x2b9f66,_0x440285){return _0x9ef0(_0x2b9f66- -0x160,_0x440285);}return this['detectedConfig']={'hasCustomDatabase':!![],'config':config,'credentials':_0x5cf6fa},config;}async['removeCustomDatabase'](){if(!this[_0x2c6b5d(0x508,0x49d)])throw new Error('Workspace ID is required to remove custom database');await this[_0x2c6b5d(0x435,0x47d)]['delete']('/admin/v1/workspace/custom-database',{'headers':{'X-Workspace-ID':this['workspaceId']}});function _0x2c6b5d(_0x23b87c,_0x410bbe){return _0x9ef0(_0x410bbe-0x2ae,_0x23b87c);}this['detectedConfig']={'hasCustomDatabase':![]};}[_0x57b89b(-0x1a1,-0x13c)](){function _0x4959cd(_0x2fed2e,_0x579cae){return _0x9ef0(_0x579cae- -0x5b,_0x2fed2e);}return this[_0x4959cd(0x14a,0x15d)];}['hasCustomDatabase'](){function _0x1e5b63(_0x32aa7a,_0x43b381){return _0x9ef0(_0x32aa7a-0x336,_0x43b381);}return this[_0x1e5b63(0x4ee,0x53c)]?.[_0x1e5b63(0x524,0x4e1)]??![];}[_0x57b89b(-0x13f,-0x167)](){return this['detectedConfig']?.['credentials'];}[_0x57b89b(-0x11f,-0xcf)](_0x54fe35){this[_0x18a5c0(0x553,0x5c8)]=_0x54fe35;function _0x18a5c0(_0x3bf356,_0x484663){return _0x9ef0(_0x3bf356-0x364,_0x484663);}this['detectedConfig']=undefined;}[_0x57b89b(-0x75,-0xbd)](){function _0x3deef1(_0x2531d0,_0x26fc9e){return _0x9ef0(_0x2531d0- -0x8,_0x26fc9e);}return this[_0x3deef1(0x1e7,0x243)];}['getStatus'](){function _0x45cdfd(_0x2bba7b,_0x2a53d3){return _0x9ef0(_0x2bba7b-0x1a,_0x2a53d3);}return{'workspaceId':this[_0x45cdfd(0x209,0x20b)],'hasConfig':this['hasCustomDatabase'](),'configDetails':this[_0x45cdfd(0x1d2,0x16d)]?.[_0x45cdfd(0x1ce,0x239)]?{'host':this[_0x45cdfd(0x1d2,0x1c0)][_0x45cdfd(0x1ce,0x1b4)][_0x45cdfd(0x1c1,0x1e0)],'port':this[_0x45cdfd(0x1d2,0x180)]['credentials']['port'],'database':this[_0x45cdfd(0x1d2,0x219)]['credentials'][_0x45cdfd(0x1f0,0x224)],'schema':this[_0x45cdfd(0x1d2,0x15b)][_0x45cdfd(0x1ce,0x237)]['schema']||'public','sslEnabled':this['detectedConfig'][_0x45cdfd(0x1ce,0x192)]['sslEnabled']||![]}:undefined};}}class DatabaseClient{constructor(_0xfe55aa,_0x1371ef){this['httpClient']=_0xfe55aa,this['customDatabaseManager']=new CustomDatabaseManager(_0xfe55aa,_0x1371ef);}[_0x57b89b(-0x146,-0xd3)](_0x250ab3){function _0x2b7508(_0x511654,_0x4488b1){return _0x9ef0(_0x4488b1- -0x161,_0x511654);}return new QueryBuilder(this[_0x2b7508(0x73,0x6e)],_0x250ab3,this[_0x2b7508(0x102,0xe0)],this[_0x2b7508(0x5b,0x90)][_0x2b7508(0xf0,0xd4)]());}['rpc'](_0x1da266,_0x25cfde){return this['httpClient']['post']('/rpc/'+_0x1da266,_0x25cfde);}['schema'](_0x3c88f2){function _0x31ea44(_0x4ac22e,_0x4c0e54){return _0x9ef0(_0x4c0e54- -0x75,_0x4ac22e);}const _0x1806e9=new DatabaseClient(this[_0x31ea44(0x1bc,0x15a)],this[_0x31ea44(0x12a,0x17c)][_0x31ea44(0x15a,0x1c0)]());return _0x1806e9['currentSchema']=_0x3c88f2,_0x1806e9[_0x31ea44(0x123,0x17c)]=this['customDatabaseManager'],_0x1806e9;}async[_0x57b89b(-0x193,-0x15d)](){function _0x571ee9(_0x3d67c8,_0x155b29){return _0x9ef0(_0x155b29- -0xc2,_0x3d67c8);}return this[_0x571ee9(0x12d,0x12f)]['detectCustomDatabase']();}async[_0x57b89b(-0x193,-0x168)](_0x56de1c){function _0x2c7e48(_0x460357,_0x4afc5a){return _0x9ef0(_0x4afc5a- -0x22a,_0x460357);}return this[_0x2c7e48(-0x94,-0x39)][_0x2c7e48(-0x3b,-0x6)](_0x56de1c);}async['configureCustomDatabase'](_0x5263d4){return this['customDatabaseManager']['configureCustomDatabase'](_0x5263d4);}async['removeCustomDatabase'](){function _0x36071d(_0x44482b,_0x22658a){return _0x9ef0(_0x22658a-0x14c,_0x44482b);}return this[_0x36071d(0x38f,0x33d)][_0x36071d(0x283,0x2f8)]();}[_0x57b89b(-0x108,-0x164)](){return this['customDatabaseManager']['hasCustomDatabase']();}[_0x57b89b(-0x16d,-0x16d)](){function _0x5aaf45(_0x1799c7,_0x80a7ca){return _0x9ef0(_0x1799c7- -0xaf,_0x80a7ca);}return this['customDatabaseManager'][_0x5aaf45(0x1a4,0x153)]();}['setWorkspaceId'](_0x4141a4){function _0x58146c(_0x2cbb7e,_0x3062dd){return _0x9ef0(_0x2cbb7e- -0x1ff,_0x3062dd);}this[_0x58146c(-0xe,0x60)]['setWorkspaceId'](_0x4141a4);}async['initialize'](){function _0x35cb48(_0x5c38f1,_0x123390){return _0x9ef0(_0x5c38f1-0x3ab,_0x123390);}try{await this[_0x35cb48(0x59c,0x58d)][_0x35cb48(0x540,0x54a)]();}catch(_0xf3eeb1){console['warn']('Failed to initialize custom database detection:',_0xf3eeb1);}}}class StorageBucket{constructor(_0x162b6e,bucketId){this['httpClient']=_0x162b6e,this['bucketId']=bucketId;}async['upload'](_0x30db76,_0x43cc16,_0x417e08){function _0xc3428e(_0x2cac04,_0x3624cb){return _0x9ef0(_0x2cac04- -0x67,_0x3624cb);}try{const _0xf39346=new FormData();if(_0x43cc16 instanceof File)_0xf39346[_0xc3428e(0x1a0,0x1c8)](_0xc3428e(0x18e,0x1bc),_0x43cc16);else{if(_0x43cc16 instanceof Blob)_0xf39346['append']('file',_0x43cc16,_0x30db76);else{if(_0x43cc16 instanceof ArrayBuffer)_0xf39346[_0xc3428e(0x1a0,0x163)]('file',new Blob([_0x43cc16]),_0x30db76);else typeof _0x43cc16===_0xc3428e(0x182,0x16c)&&_0xf39346[_0xc3428e(0x1a0,0x1e2)](_0xc3428e(0x18e,0x138),new Blob([_0x43cc16],{'type':_0xc3428e(0x201,0x214)}),_0x30db76);}}_0xf39346['append'](_0xc3428e(0x1f8,0x263),_0x30db76);_0x417e08?.[_0xc3428e(0x128,0x107)]&&_0xf39346[_0xc3428e(0x1a0,0x1a4)](_0xc3428e(0x128,0x19d),_0x417e08[_0xc3428e(0x128,0x198)]);_0x417e08?.['contentType']&&_0xf39346['append']('contentType',_0x417e08['contentType']);_0x417e08?.['metadata']&&_0xf39346[_0xc3428e(0x1a0,0x1bd)](_0xc3428e(0x1a9,0x1a0),JSON[_0xc3428e(0x1bf,0x1cc)](_0x417e08[_0xc3428e(0x1a9,0x20e)]));const _0x36d64e='/storage/buckets/'+this[_0xc3428e(0x1c4,0x222)]+'/files'+(_0x417e08?.[_0xc3428e(0x16c,0x16c)]?_0xc3428e(0x1e0,0x1ae):''),response=await this['httpClient'][_0xc3428e(0x136,0x1a2)](_0x36d64e,_0xf39346,{'headers':{'Content-Type':_0xc3428e(0x1fe,0x1e1)}});return{'data':response[_0xc3428e(0x175,0x184)],'error':null};}catch(_0x557bbc){return{'data':null,'error':_0x557bbc instanceof EBaaSError?_0x557bbc:new EBaaSError(_0x557bbc instanceof Error?_0x557bbc['message']:_0xc3428e(0x1b9,0x1cd),0x0,_0x557bbc)};}}async['download'](_0x52458a,_0x1c51eb){function _0x46d144(_0x25c8ea,_0x8e9cc5){return _0x9ef0(_0x8e9cc5-0x69,_0x25c8ea);}try{const _0x2899f0=new URLSearchParams();_0x1c51eb?.[_0x46d144(0x233,0x26a)]&&Object['entries'](_0x1c51eb[_0x46d144(0x225,0x26a)])[_0x46d144(0x202,0x248)](([_0x5f494c,_0x3b6036])=>{_0x3b6036!==undefined&&_0x2899f0['append'](_0x5f494c,String(_0x3b6036));});const _0x54842b='/storage/buckets/'+this['bucketId']+_0x46d144(0x29b,0x2c9)+_0x52458a+(_0x2899f0['toString']()?'?'+_0x2899f0['toString']():''),response=await this['httpClient']['get'](_0x54842b,{'responseType':'blob'});return{'data':response[_0x46d144(0x1d7,0x245)],'error':null};}catch(_0x470280){return{'data':null,'error':_0x470280 instanceof EBaaSError?_0x470280:new EBaaSError(_0x470280 instanceof Error?_0x470280['message']:'Failed\x20to\x20download\x20file',0x0,_0x470280)};}}async[_0x57b89b(-0x14e,-0x156)](_0x5b9a8c,_0x1e5764){function _0x53a094(_0x244e3c,_0x49c82e){return _0x9ef0(_0x49c82e- -0x22a,_0x244e3c);}try{const _0x56df46=new URLSearchParams();_0x5b9a8c&&_0x56df46['append']('prefix',_0x5b9a8c);_0x1e5764?.['limit']&&_0x56df46[_0x53a094(-0x12,-0x23)](_0x53a094(-0x4c,0x6),String(_0x1e5764[_0x53a094(0x3b,0x6)]));_0x1e5764?.['offset']&&_0x56df46['append']('offset',String(_0x1e5764['offset']));_0x1e5764?.[_0x53a094(0x18,-0x31)]&&_0x56df46['append']('sortBy',JSON[_0x53a094(0x4a,-0x4)](_0x1e5764['sortBy']));_0x1e5764?.['search']&&_0x56df46['append'](_0x53a094(-0x1f,0x8),_0x1e5764['search']);const _0x541b8d=_0x53a094(0x7,-0x56)+this['bucketId']+'/files'+(_0x56df46['toString']()?'?'+_0x56df46[_0x53a094(-0x83,-0x25)]():''),response=await this['httpClient'][_0x53a094(0x15,0x9)](_0x541b8d);return{'data':response['data'],'error':null};}catch(_0x5843e7){return{'data':null,'error':_0x5843e7 instanceof EBaaSError?_0x5843e7:new EBaaSError(_0x5843e7 instanceof Error?_0x5843e7['message']:'Failed\x20to\x20list\x20files',0x0,_0x5843e7)};}}async['remove'](_0x3d65b4){function _0x12d88e(_0x404dc8,_0x295d68){return _0x9ef0(_0x404dc8-0x13d,_0x295d68);}try{const response=await this['httpClient'][_0x12d88e(0x322,0x2b9)]('/storage/buckets/'+this['bucketId']+_0x12d88e(0x33a,0x391),{'data':{'paths':_0x3d65b4}});return{'data':response[_0x12d88e(0x319,0x383)],'error':null};}catch(_0x4307c6){return{'data':null,'error':_0x4307c6 instanceof EBaaSError?_0x4307c6:new EBaaSError(_0x4307c6 instanceof Error?_0x4307c6['message']:'Failed\x20to\x20remove\x20files',0x0,_0x4307c6)};}}async[_0x57b89b(-0x8d,-0xa5)](fromPath,_0x56a6e9){function _0x3d50b5(_0x273d10,_0x50a037){return _0x9ef0(_0x273d10- -0xfe,_0x50a037);}try{const response=await this[_0x3d50b5(0xd1,0x14a)][_0x3d50b5(0x9f,0xae)](_0x3d50b5(0xd6,0x12d)+this[_0x3d50b5(0x12d,0xda)]+'/files/move',{'sourceKey':fromPath,'destinationKey':_0x56a6e9});return{'data':response[_0x3d50b5(0xde,0x154)],'error':null};}catch(_0x3adf06){return{'data':null,'error':_0x3adf06 instanceof EBaaSError?_0x3adf06:new EBaaSError(_0x3adf06 instanceof Error?_0x3adf06[_0x3d50b5(0xb1,0xd1)]:'Failed\x20to\x20move\x20file',0x0,_0x3adf06)};}}async['copy'](fromPath,_0x7408ac){function _0x44273a(_0x51f1d3,_0x55273f){return _0x9ef0(_0x51f1d3-0x232,_0x55273f);}try{const response=await this[_0x44273a(0x401,0x3ee)][_0x44273a(0x3cf,0x3d6)]('/storage/buckets/'+this['bucketId']+'/files/copy',{'sourceKey':fromPath,'destinationKey':_0x7408ac});return{'data':response[_0x44273a(0x40e,0x454)],'error':null};}catch(_0x3917d2){return{'data':null,'error':_0x3917d2 instanceof EBaaSError?_0x3917d2:new EBaaSError(_0x3917d2 instanceof Error?_0x3917d2['message']:'Failed\x20to\x20copy\x20file',0x0,_0x3917d2)};}}async[_0x57b89b(-0x170,-0x15a)](_0x52cefc,_0x23b03d,_0x1287ce){function _0x193c78(_0xe53fd2,_0xe64d9c){return _0x9ef0(_0xe64d9c- -0x385,_0xe53fd2);}try{const response=await this[_0x193c78(-0x15f,-0x1b6)]['post']('/storage/buckets/'+this['bucketId']+_0x193c78(-0xdd,-0x125)+_0x52cefc+_0x193c78(-0x104,-0x122),{'expiresIn':_0x23b03d,..._0x1287ce});return{'data':response['data'],'error':null};}catch(_0x495ae3){return{'data':null,'error':_0x495ae3 instanceof EBaaSError?_0x495ae3:new EBaaSError(_0x495ae3 instanceof Error?_0x495ae3[_0x193c78(-0x17b,-0x1d6)]:'Failed\x20to\x20create\x20signed\x20URL',0x0,_0x495ae3)};}}['getPublicUrl'](_0x6e28ca,_0x1646b3){const _0x462e6b=new URLSearchParams();function _0x5c6f2c(_0x49d500,_0x3297fe){return _0x9ef0(_0x49d500- -0x3aa,_0x3297fe);}_0x1646b3?.['transform']&&Object[_0x5c6f2c(-0x1af,-0x1ac)](_0x1646b3[_0x5c6f2c(-0x1a9,-0x208)])[_0x5c6f2c(-0x1cb,-0x15f)](([_0x2d7c14,_0x5abae4])=>{_0x5abae4!==undefined&&_0x462e6b['append'](_0x2d7c14,String(_0x5abae4));});const _0x5ce007=this['httpClient'][_0x5c6f2c(-0x16a,-0xef)]||'',_0x51dad4=_0x5ce007+_0x5c6f2c(-0x1d6,-0x248)+this[_0x5c6f2c(-0x17f,-0x1e4)]+_0x5c6f2c(-0x14a,-0x127)+_0x6e28ca+(_0x462e6b['toString']()?'?'+_0x462e6b['toString']():'');return{'data':{'publicUrl':_0x51dad4}};}async['getFileInfo'](_0x227b7e){function _0x37631a(_0x1f7edb,_0x352d45){return _0x9ef0(_0x1f7edb-0x196,_0x352d45);}try{const response=await this[_0x37631a(0x365,0x39f)]['get'](_0x37631a(0x36a,0x3ce)+this['bucketId']+'/files/'+_0x227b7e+_0x37631a(0x371,0x311));return{'data':response['data'],'error':null};}catch(_0x42bfd3){return{'data':null,'error':_0x42bfd3 instanceof EBaaSError?_0x42bfd3:new EBaaSError(_0x42bfd3 instanceof Error?_0x42bfd3[_0x37631a(0x345,0x352)]:_0x37631a(0x3a8,0x3c3),0x0,_0x42bfd3)};}}async['updateFileMetadata'](_0x1be0f7,metadata){function _0x4ab366(_0xd71207,_0x4cf96a){return _0x9ef0(_0xd71207-0x248,_0x4cf96a);}try{const response=await this['httpClient']['put'](_0x4ab366(0x41c,0x47e)+this['bucketId']+_0x4ab366(0x4a8,0x48e)+_0x1be0f7+_0x4ab366(0x45d,0x43f),{'metadata':metadata});return{'data':response['data'],'error':null};}catch(_0x2b2775){return{'data':null,'error':_0x2b2775 instanceof EBaaSError?_0x2b2775:new EBaaSError(_0x2b2775 instanceof Error?_0x2b2775['message']:_0x4ab366(0x4ba,0x4e3),0x0,_0x2b2775)};}}}function _0x9ef0(_0x4f87b7,_0x2a8fef){const _0x3d6c41=_0x3d6c();return _0x9ef0=function(_0x9ef05c,_0x249c5d){_0x9ef05c=_0x9ef05c-0x17e;let _0x284309=_0x3d6c41[_0x9ef05c];if(_0x9ef0['xamICu']===undefined){var _0x46e3c3=function(_0x36e4e9){const _0x332dcc='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x426b6d='',_0x530e18='';for(let _0x414c01=0x0,_0x200c1e,_0x362d1a,_0x47f375=0x0;_0x362d1a=_0x36e4e9['charAt'](_0x47f375++);~_0x362d1a&&(_0x200c1e=_0x414c01%0x4?_0x200c1e*0x40+_0x362d1a:_0x362d1a,_0x414c01++%0x4)?_0x426b6d+=String['fromCharCode'](0xff&_0x200c1e>>(-0x2*_0x414c01&0x6)):0x0){_0x362d1a=_0x332dcc['indexOf'](_0x362d1a);}for(let _0x1b94c6=0x0,_0x206a98=_0x426b6d['length'];_0x1b94c6<_0x206a98;_0x1b94c6++){_0x530e18+='%'+('00'+_0x426b6d['charCodeAt'](_0x1b94c6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x530e18);};_0x9ef0['qnNuse']=_0x46e3c3,_0x4f87b7=arguments,_0x9ef0['xamICu']=!![];}const _0x2f42aa=_0x3d6c41[0x0],_0x303982=_0x9ef05c+_0x2f42aa,_0xdc8f2c=_0x4f87b7[_0x303982];return!_0xdc8f2c?(_0x284309=_0x9ef0['qnNuse'](_0x284309),_0x4f87b7[_0x303982]=_0x284309):_0x284309=_0xdc8f2c,_0x284309;},_0x9ef0(_0x4f87b7,_0x2a8fef);}class StorageClient{constructor(_0x2cc85a){function _0x33b691(_0x48162f,_0x4ea720){return _0x9ef0(_0x4ea720-0x5c,_0x48162f);}this[_0x33b691(0x25e,0x22b)]=_0x2cc85a;}['from'](bucketId){function _0x3cb96f(_0x3ec68e,_0x36e55a){return _0x9ef0(_0x3ec68e- -0x390,_0x36e55a);}return new StorageBucket(this[_0x3cb96f(-0x1c1,-0x18c)],bucketId);}async['createBucket'](_0x44ca5e,_0x1ff60d){function _0x1569da(_0x151b24,_0x9c0ac7){return _0x9ef0(_0x9c0ac7- -0x11d,_0x151b24);}try{const response=await this['httpClient'][_0x1569da(0xc8,0x80)](_0x1569da(0xf9,0x9e),{'id':_0x44ca5e,..._0x1ff60d});return{'data':response[_0x1569da(0xe8,0xbf)],'error':null};}catch(_0x4ddedb){return{'data':null,'error':_0x4ddedb instanceof EBaaSError?_0x4ddedb:new EBaaSError(_0x4ddedb instanceof Error?_0x4ddedb['message']:_0x1569da(0x12c,0xef),0x0,_0x4ddedb)};}}async['getBucket'](_0x5ad249){function _0x694394(_0x1da883,_0xfc48b1){return _0x9ef0(_0xfc48b1-0x59,_0x1da883);}try{const response=await this[_0x694394(0x22a,0x228)][_0x694394(0x2f5,0x28c)](_0x694394(0x210,0x22d)+_0x5ad249);return{'data':response[_0x694394(0x1e8,0x235)],'error':null};}catch(_0x293370){return{'data':null,'error':_0x293370 instanceof EBaaSError?_0x293370:new EBaaSError(_0x293370 instanceof Error?_0x293370['message']:'Failed\x20to\x20get\x20bucket',0x0,_0x293370)};}}async['listBuckets'](){function _0x25b47b(_0xbabc6e,_0x1ad1d2){return _0x9ef0(_0x1ad1d2-0x3a6,_0xbabc6e);}try{const response=await this[_0x25b47b(0x562,0x575)][_0x25b47b(0x627,0x5d9)](_0x25b47b(0x5b3,0x561));return{'data':response['data'],'error':null};}catch(_0xe318b3){return{'data':null,'error':_0xe318b3 instanceof EBaaSError?_0xe318b3:new EBaaSError(_0xe318b3 instanceof Error?_0xe318b3['message']:'Failed\x20to\x20list\x20buckets',0x0,_0xe318b3)};}}async[_0x57b89b(-0xea,-0xa4)](_0xe935,_0x9c8472){function _0x2839a3(_0x49f860,_0x32c168){return _0x9ef0(_0x49f860- -0x103,_0x32c168);}try{const response=await this['httpClient']['put']('/storage/buckets/'+_0xe935,_0x9c8472);return{'data':response['data'],'error':null};}catch(_0x122066){return{'data':null,'error':_0x122066 instanceof EBaaSError?_0x122066:new EBaaSError(_0x122066 instanceof Error?_0x122066['message']:_0x2839a3(0x16a,0xfc),0x0,_0x122066)};}}async[_0x57b89b(-0x14c,-0x130)](_0x3961fc){function _0x4b75af(_0xdcc4a0,_0x1ecf76){return _0x9ef0(_0x1ecf76-0x27c,_0xdcc4a0);}try{const response=await this['httpClient']['delete'](_0x4b75af(0x482,0x450)+_0x3961fc);return{'data':response[_0x4b75af(0x44a,0x458)],'error':null};}catch(_0x4c036a){return{'data':null,'error':_0x4c036a instanceof EBaaSError?_0x4c036a:new EBaaSError(_0x4c036a instanceof Error?_0x4c036a['message']:'Failed\x20to\x20delete\x20bucket',0x0,_0x4c036a)};}}async['getUsage'](){function _0x4f6cd2(_0x13966c,_0x3dab6f){return _0x9ef0(_0x3dab6f- -0x354,_0x13966c);}try{const response=await this['httpClient']['get']('/storage/usage');return{'data':response['data'],'error':null};}catch(_0x127def){return{'data':null,'error':_0x127def instanceof EBaaSError?_0x127def:new EBaaSError(_0x127def instanceof Error?_0x127def['message']:_0x4f6cd2(-0x11d,-0x195),0x0,_0x127def)};}}}class RealtimeChannel extends _0x36e4e9{constructor(_0x24055b,_0x9c9437){super(),this['joinedOnce']=![];function _0xe45303(_0x35b392,_0x1b5e4a){return _0x9ef0(_0x1b5e4a-0x173,_0x35b392);}this[_0xe45303(0x38d,0x3d0)]='closed',this['subscriptions']=new Map(),this[_0xe45303(0x31b,0x32f)]=_0x24055b,this['socket']=_0x9c9437;}[_0x57b89b(-0x19b,-0x152)](_0x3001d4){function _0x43af6b(_0x4ae302,_0x309af6){return _0x9ef0(_0x4ae302-0x235,_0x309af6);}return!this[_0x43af6b(0x3b6,0x421)]&&(this['joinedOnce']=!![],this['_join']()),_0x3001d4&&this['on'](_0x43af6b(0x434,0x4a3),_0x3001d4),this;}[_0x57b89b(-0x17c,-0x15b)](filter,_0x321a39){const _0x15fc6a='postgres_changes:'+JSON[_0x1ebbf7(0x25c,0x2b9)](filter);super['on'](_0x15fc6a,_0x321a39);const _0x36094c={'unsubscribe':()=>{super['off'](_0x15fc6a,_0x321a39);function _0x2d471f(_0x55af6b,_0xb85c07){return _0x9ef0(_0x55af6b- -0x153,_0xb85c07);}this[_0x2d471f(0x70,0x50)][_0x2d471f(0x92,0x95)](_0x15fc6a);}};function _0x1ebbf7(_0x356eef,_0x5b62b4){return _0x9ef0(_0x356eef-0x36,_0x5b62b4);}return this[_0x1ebbf7(0x1f9,0x188)][_0x1ebbf7(0x200,0x1ac)](_0x15fc6a,_0x36094c),this[_0x1ebbf7(0x1f6,0x1ff)]?.[_0x1ebbf7(0x20d,0x1c8)]&&this[_0x1ebbf7(0x293,0x30c)]==='joined'&&this['socket'][_0x1ebbf7(0x2a4,0x240)]('subscribe_postgres_changes',{'topic':this[_0x1ebbf7(0x1f2,0x222)],'filter':filter,'ref':this[_0x1ebbf7(0x272,0x23f)]()}),_0x36094c;}['onBroadcast'](filter,_0x55b388){const _0x4ad42d='broadcast:'+JSON[_0x29bb7d(0x313,0x2d8)](filter);super['on'](_0x4ad42d,_0x55b388);const _0x691fbc={'unsubscribe':()=>{function _0x116f9b(_0x1488a7,_0x4c4ab8){return _0x9ef0(_0x4c4ab8-0x3ad,_0x1488a7);}super[_0x116f9b(0x4d9,0x531)](_0x4ad42d,_0x55b388),this['subscriptions']['delete'](_0x4ad42d);}};this['subscriptions'][_0x29bb7d(0x2b7,0x23d)](_0x4ad42d,_0x691fbc);function _0x29bb7d(_0x152648,_0x3bc00f){return _0x9ef0(_0x152648-0xed,_0x3bc00f);}return _0x691fbc;}[_0x57b89b(-0x58,-0x9e)](filter,_0x598a2c){const _0x360ff6=_0x31effe(0x8,0xe)+JSON[_0x31effe(0x61,0xc)](filter);super['on'](_0x360ff6,_0x598a2c);const _0x56f6d1={'unsubscribe':()=>{super[_0x5d4378(-0x1bd,-0x1d8)](_0x360ff6,_0x598a2c);function _0x5d4378(_0x42b5e8,_0x57d343){return _0x9ef0(_0x42b5e8- -0x341,_0x57d343);}this[_0x5d4378(-0x17e,-0x1be)]['delete'](_0x360ff6);}};this['subscriptions'][_0x31effe(0x5,0x25)](_0x360ff6,_0x56f6d1);function _0x31effe(_0x54c980,_0x457539){return _0x9ef0(_0x54c980- -0x1c5,_0x457539);}return _0x56f6d1;}['send'](_0x24a5cd){return new Promise(_0x1f0edb=>{function _0x3eef00(_0x1f8694,_0x181e36){return _0x9ef0(_0x181e36- -0x15c,_0x1f8694);}this['socket']?.[_0x3eef00(0x8c,0x7b)]&&this['state']==='joined'?(this[_0x3eef00(0xde,0x64)]['emit'](_0x3eef00(-0x2e,0x42),{'topic':this[_0x3eef00(0x40,0x60)],'event':_0x24a5cd['event'],'payload':_0x24a5cd,'ref':this['makeRef']()}),_0x1f0edb('ok')):_0x1f0edb('error');});}[_0x57b89b(-0x108,-0xd8)](_0x5678b7){return new Promise(_0x5753ce=>{function _0x51fd21(_0x302b3d,_0x421a2b){return _0x9ef0(_0x421a2b- -0x3e6,_0x302b3d);}this['socket']?.['connected']&&this['state']===_0x51fd21(-0x1a2,-0x205)?(this[_0x51fd21(-0x1b6,-0x226)][_0x51fd21(-0x148,-0x178)](_0x51fd21(-0x1a6,-0x176),{'topic':this[_0x51fd21(-0x249,-0x22a)],'event':_0x51fd21(-0x216,-0x1cc),'payload':_0x5678b7,'ref':this[_0x51fd21(-0x146,-0x1aa)]()}),_0x5753ce('ok')):_0x5753ce(_0x51fd21(-0x130,-0x191));});}[_0x57b89b(-0x130,-0xc5)](){return new Promise(_0x1bc4b4=>{function _0x58334b(_0x2ab413,_0x1a49a6){return _0x9ef0(_0x1a49a6- -0x96,_0x2ab413);}this[_0x58334b(0x11c,0x12a)]?.['connected']&&this[_0x58334b(0x17e,0x1c7)]==='joined'?(this['socket'][_0x58334b(0x170,0x1d8)](_0x58334b(0x1a9,0x1da),{'topic':this['topic'],'event':'untrack','ref':this[_0x58334b(0x173,0x1a6)]()}),_0x1bc4b4('ok')):_0x1bc4b4('error');});}[_0x57b89b(-0x125,-0x139)](){return new Promise(_0x8ba8df=>{this['state']='leaving',this[_0x213a29(0x45c,0x427)]['forEach'](_0x23d22e=>{function _0x17150a(_0x491a5a,_0x1738cf){return _0x9ef0(_0x1738cf- -0x164,_0x491a5a);}_0x23d22e[_0x17150a(0x97,0x55)]();}),this['subscriptions'][_0x213a29(0x4b7,0x490)]();function _0x213a29(_0x29a740,_0x1df25c){return _0x9ef0(_0x1df25c-0x264,_0x29a740);}this['socket']?.['connected']&&this[_0x213a29(0x3ab,0x424)][_0x213a29(0x4e2,0x4d2)]('leave',{'topic':this[_0x213a29(0x461,0x420)],'ref':this['makeRef']()}),this[_0x213a29(0x4bc,0x4c1)]=_0x213a29(0x3e5,0x45a),this['removeAllListeners'](),_0x8ba8df('ok');});}[_0x57b89b(-0xfa,-0x89)](){if(this[_0x27818e(0x127,0x18c)]===_0x27818e(0xfb,0x169))return;this['state']=_0x27818e(0x8e,0xf6);function _0x27818e(_0x13b694,_0x315b6a){return _0x9ef0(_0x13b694- -0x136,_0x315b6a);}this[_0x27818e(0x8a,0xb7)]?.['connected']&&(this['socket'][_0x27818e(0x138,0x19b)](_0x27818e(0xd3,0x87),{'topic':this['topic'],'ref':this['makeRef']()}),setTimeout(()=>{function _0x22b236(_0x5079bb,_0x4868e1){return _0x9ef0(_0x4868e1-0x272,_0x5079bb);}this['state']==='joining'&&(this['state']='joined',this[_0x22b236(0x470,0x4e0)](_0x22b236(0x4c3,0x471),_0x22b236(0x402,0x46c)));},0x64));}[_0x57b89b(-0x3d,-0xaf)](){function _0xcd58fa(_0x2be0aa,_0x529a47){return _0x9ef0(_0x2be0aa- -0x20b,_0x529a47);}this['joinedOnce']&&(this[_0xcd58fa(0x5e,0x8)](),this['subscriptions'][_0xcd58fa(-0x2c,-0x92)]((_0x46ca31,_0x58b054)=>{function _0x5af7b7(_0x38f2b7,_0x51bb76){return _0x9ef0(_0x38f2b7- -0x248,_0x51bb76);}if(_0x58b054[_0x5af7b7(-0x3b,-0x77)]('postgres_changes:')){const filter=JSON[_0x5af7b7(-0xb,-0x70)](_0x58b054['replace'](_0x5af7b7(-0x5b,-0xc8),''));this['socket']?.['emit'](_0x5af7b7(-0x8a,-0xa0),{'topic':this['topic'],'filter':filter,'ref':this['makeRef']()});}}));}[_0x57b89b(-0xf1,-0xee)](_0x26194c,_0x1113df){if(_0x26194c===_0xfb0832(0x604,0x673)){const _0x36fb16=_0xfb0832(0x5c9,0x600)+JSON[_0xfb0832(0x602,0x678)](_0x1113df[_0xfb0832(0x5a4,0x617)]||{});this[_0xfb0832(0x64a,0x678)](_0x36fb16,_0x1113df);}else{if(_0x26194c===_0xfb0832(0x57a,0x575)){const _0x5a2456='broadcast:'+JSON['stringify']({'event':_0x1113df['event']});this[_0xfb0832(0x64a,0x6b6)](_0x5a2456,_0x1113df);}else{if(_0x26194c===_0xfb0832(0x64c,0x626)){const _0x4080c9=_0xfb0832(0x5a9,0x566)+JSON['stringify']({'event':_0x1113df['event']});this['emit'](_0x4080c9,_0x1113df);}}}function _0xfb0832(_0x3ca1f0,_0x990d73){return _0x9ef0(_0x3ca1f0-0x3dc,_0x990d73);}this[_0xfb0832(0x64a,0x6aa)](_0x26194c,_0x1113df);}['_setState'](_0x592ecb){this['state']=_0x592ecb;function _0x3904e7(_0x1fb8a1,_0x3b1a4d){return _0x9ef0(_0x3b1a4d- -0x3d8,_0x1fb8a1);}let status;switch(_0x592ecb){case _0x3904e7(-0x215,-0x1f7):status='SUBSCRIBED';break;case _0x3904e7(-0x139,-0x19e):status=_0x3904e7(-0x27f,-0x225);break;case _0x3904e7(-0x203,-0x1e2):status=_0x3904e7(-0x1b1,-0x1a4);break;default:return;}this['emit']('status',status);}[_0x57b89b(-0x7d,-0xb6)](){function _0x40d988(_0x454f2e,_0xffcd54){return _0x9ef0(_0xffcd54-0x230,_0x454f2e);}return Math[_0x40d988(0x42a,0x446)]()[_0x40d988(0x471,0x435)](0x24)[_0x40d988(0x435,0x466)](0x2,0xf);}[_0x57b89b(-0xcf,-0xd6)](){return this['state'];}}class RealtimeClient{constructor(_0x1506a4,_0x2008b0,_0x1ee92c={}){this[_0x5e2ffd(0x3a6,0x38f)]=null,this['channels']=new Map(),this['connectionState']=_0x5e2ffd(0x43e,0x3d6),this[_0x5e2ffd(0x3b6,0x3e1)]=0x0,this[_0x5e2ffd(0x42a,0x435)]=0x5,this['url']=_0x1506a4,this['apiKey']=_0x2008b0;function _0x5e2ffd(_0x29e3cc,_0x3a6f3a){return _0x9ef0(_0x29e3cc-0x1e6,_0x3a6f3a);}this['options']={'heartbeatInterval':0x7530,'reconnectInterval':0x1388,'maxReconnectAttempts':0x5,..._0x1ee92c};}[_0x57b89b(-0x147,-0xcd)](){return new Promise((_0x3190ca,_0x50ffeb)=>{if(this['socket']?.['connected']){_0x3190ca();return;}this[_0x413bac(0x3b4,0x33b)]='connecting',this[_0x413bac(0x384,0x398)]=io(this[_0x413bac(0x396,0x36e)],{'auth':{'apikey':this['apiKey']},'transports':['websocket'],'reconnection':!![],'reconnectionDelay':this['options'][_0x413bac(0x41a,0x488)],'reconnectionAttempts':this[_0x413bac(0x369,0x3af)][_0x413bac(0x408,0x41c)],...this['options'][_0x413bac(0x409,0x3c3)]}),this['socket']['on'](_0x413bac(0x3e9,0x459),()=>{this['connectionState']=_0x174c3d(0x1ea,0x1bd);function _0x174c3d(_0x4605d6,_0x5900ed){return _0x9ef0(_0x5900ed- -0x1a,_0x4605d6);}this[_0x174c3d(0x1f3,0x1b6)]=0x0,this[_0x174c3d(0x1b8,0x1cd)](),_0x3190ca();}),this[_0x413bac(0x384,0x38e)]['on']('disconnect',_0x430205=>{this['connectionState']=_0x52da1a(0x133,0x1aa);function _0x52da1a(_0x317e70,_0x56eec0){return _0x9ef0(_0x317e70- -0x125,_0x56eec0);}this[_0x52da1a(0x8c,0xb4)]['forEach'](channel=>{channel['_setState']('closed');});}),this[_0x413bac(0x384,0x377)]['on'](_0x413bac(0x395,0x3ae),_0x408a3f=>{this[_0x26a7bd(0x151,0xe8)]=_0x26a7bd(0x1c7,0x14d),this[_0x26a7bd(0x9d,0xc8)]++;function _0x26a7bd(_0x1ca3b9,_0x1c62de){return _0x9ef0(_0x1c62de- -0x108,_0x1ca3b9);}this[_0x26a7bd(0xb7,0xc8)]>=this[_0x26a7bd(0x17a,0x13c)]&&_0x50ffeb(new Error(_0x26a7bd(0x176,0x11a)+this['maxReconnectAttempts']+_0x26a7bd(0xc6,0x80)+_0x408a3f[_0x26a7bd(0x110,0xa7)]));});function _0x413bac(_0x25b548,_0x3772d4){return _0x9ef0(_0x25b548-0x1c4,_0x3772d4);}this['socket']['on']('reconnect',()=>{this[_0x33c588(0x6e,0x1e)]='connected';function _0x33c588(_0x15d980,_0x20314c){return _0x9ef0(_0x15d980- -0x182,_0x20314c);}this['reconnectAttempts']=0x0,this[_0x33c588(0x2f,0x19)]['forEach'](channel=>{function _0x1ec4c3(_0x357cd7,_0x4ef0c3){return _0x9ef0(_0x357cd7- -0x166,_0x4ef0c3);}channel[_0x1ec4c3(0xdd,0x9a)]();});}),this[_0x413bac(0x384,0x325)]['on']('postgres_changes',_0x83d3b3=>{function _0x15f3f8(_0x3ed867,_0x524dd4){return _0x9ef0(_0x3ed867- -0x1b5,_0x524dd4);}const channel=this['channels']['get'](_0x83d3b3[_0x15f3f8(0x7,-0x56)]);channel&&channel[_0x15f3f8(0x4f,0xc2)]('postgres_changes',_0x83d3b3);}),this[_0x413bac(0x384,0x3cc)]['on'](_0x413bac(0x362,0x394),_0x19cf17=>{function _0x2e2c09(_0x2f7fd5,_0x3bdae4){return _0x9ef0(_0x2f7fd5- -0xe7,_0x3bdae4);}const channel=this[_0x2e2c09(0xca,0x132)]['get'](_0x19cf17['topic']);channel&&channel[_0x2e2c09(0x11d,0xb6)](_0x2e2c09(0xb7,0xfa),_0x19cf17);}),this['socket']['on']('presence',_0x34e953=>{const channel=this[_0x5203e4(-0x145,-0x187)][_0x5203e4(-0xe2,-0x105)](_0x34e953['topic']);function _0x5203e4(_0x22c80b,_0xf66518){return _0x9ef0(_0xf66518- -0x338,_0x22c80b);}channel&&channel['_trigger'](_0x5203e4(-0x103,-0xc8),_0x34e953);});});}['disconnect'](){this[_0x12f244(0x2f4,0x2d9)]&&(this[_0x12f244(0x31a,0x2d9)][_0x12f244(0x252,0x2bb)](),this['socket']=null);function _0x12f244(_0x1cdb9d,_0xa7a856){return _0x9ef0(_0xa7a856-0x119,_0x1cdb9d);}this['connectionState']='disconnected',this['channels']['clear']();}['channel'](_0x337da5){function _0x5567ea(_0x2b36cf,_0x2d7893){return _0x9ef0(_0x2b36cf-0x323,_0x2d7893);}if(this['channels'][_0x5567ea(0x4d0,0x4a2)](_0x337da5))return this[_0x5567ea(0x4d4,0x4ba)]['get'](_0x337da5);const channel=new RealtimeChannel(_0x337da5,this[_0x5567ea(0x4e3,0x4ed)]);return this[_0x5567ea(0x4d4,0x532)]['set'](_0x337da5,channel),this['connectionState']==='connected'&&channel[_0x5567ea(0x58c,0x601)](),channel;}['removeChannel'](channel){function _0x576757(_0x1f715f,_0x52f017){return _0x9ef0(_0x1f715f-0x3d7,_0x52f017);}const _0xc9b1db=channel[_0x576757(0x593,0x559)];this['channels']['has'](_0xc9b1db)&&(this[_0x576757(0x588,0x597)][_0x576757(0x5bc,0x54b)](_0xc9b1db),channel['unsubscribe']());}['removeAllChannels'](){this['channels']['forEach'](channel=>{channel['unsubscribe']();}),this['channels']['clear']();}['getChannels'](){function _0xdf95f7(_0x2d89a3,_0xac3157){return _0x9ef0(_0xac3157-0x253,_0x2d89a3);}return Array[_0xdf95f7(0x49d,0x472)](this[_0xdf95f7(0x3f6,0x404)][_0xdf95f7(0x4c4,0x46e)]());}[_0x57b89b(-0x152,-0x162)](){function _0x127f32(_0x51d2ac,_0xa1c21e){return _0x9ef0(_0xa1c21e- -0x1b1,_0x51d2ac);}return this[_0x127f32(0xb9,0x3f)]===_0x127f32(-0x22,0x26)&&!!this['socket']?.[_0x127f32(0x21,0x26)];}[_0x57b89b(-0x106,-0x166)](){function _0x2b708a(_0x204fd9,_0x2e6433){return _0x9ef0(_0x204fd9- -0x1fd,_0x2e6433);}return this[_0x2b708a(-0xd,-0x4a)];}[_0x57b89b(-0x1bc,-0x16c)](_0x287ca4){const _0x74394a=()=>_0x287ca4(this['connectionState']);this[_0x1a0774(-0x142,-0x183)]&&(this[_0x1a0774(-0x145,-0x183)]['on']('connect',()=>{this[_0x86df60(0x8d,0x9d)]='connected';function _0x86df60(_0x349a24,_0x59a9fa){return _0x9ef0(_0x349a24- -0x163,_0x59a9fa);}_0x74394a();}),this['socket']['on']('disconnect',()=>{function _0x449acc(_0x4b57b6,_0x58cfe2){return _0x9ef0(_0x4b57b6-0x12d,_0x58cfe2);}this[_0x449acc(0x31d,0x34e)]='disconnected',_0x74394a();}),this[_0x1a0774(-0x18d,-0x183)]['on']('connect_error',()=>{function _0x12d268(_0xce0e30,_0x2776b0){return _0x9ef0(_0xce0e30-0x1c8,_0x2776b0);}this[_0x12d268(0x3b8,0x406)]='error',_0x74394a();}));function _0x1a0774(_0x2a8042,_0xfd6a81){return _0x9ef0(_0xfd6a81- -0x343,_0x2a8042);}return()=>{function _0xcff738(_0x2a049b,_0x25bf20){return _0x9ef0(_0x2a049b-0x1b,_0x25bf20);}this['socket']&&(this[_0xcff738(0x1db,0x1ab)][_0xcff738(0x19f,0x177)]('connect',_0x74394a),this[_0xcff738(0x1db,0x222)][_0xcff738(0x19f,0x154)]('disconnect',_0x74394a),this['socket'][_0xcff738(0x19f,0x1be)](_0xcff738(0x1ec,0x229),_0x74394a));};}['setupHeartbeat'](){if(!this[_0x4318dd(0x51c,0x506)]['heartbeatInterval']||!this['socket'])return;function _0x4318dd(_0x28778c,_0x5ce4e3){return _0x9ef0(_0x28778c-0x377,_0x5ce4e3);}const interval=setInterval(()=>{function _0x1ccf88(_0x3bd837,_0x1f7004){return _0x9ef0(_0x3bd837-0x2ee,_0x1f7004);}this['socket']?.['connected']?this[_0x1ccf88(0x4ae,0x4c2)][_0x1ccf88(0x55c,0x546)]('heartbeat',{'timestamp':Date[_0x1ccf88(0x502,0x52a)]()}):clearInterval(interval);},this[_0x4318dd(0x51c,0x522)]['heartbeatInterval']);}[_0x57b89b(-0xc6,-0xda)](){function _0x1be95f(_0x3b327c,_0x166ff1){return _0x9ef0(_0x3b327c-0x26f,_0x166ff1);}return this[_0x1be95f(0x42f,0x40e)];}}class FunctionsClient{constructor(_0x5b7edc){this['httpClient']=_0x5b7edc;}async[_0x57b89b(-0x15f,-0xf4)](_0x3e4c48,_0xb2403f){function _0x23a86e(_0x1b3965,_0x3a1bbc){return _0x9ef0(_0x1b3965-0x10b,_0x3a1bbc);}try{const _0x576ad8=_0xb2403f?.[_0x23a86e(0x2ae,0x2c4)]||'POST',headers={'Content-Type':'application/json',..._0xb2403f?.['headers']};let response;const _0x5134ac='/functions/v1/'+_0x3e4c48;switch(_0x576ad8[_0x23a86e(0x356,0x387)]()){case'GET':response=await this['httpClient']['get'](_0x5134ac,{'headers':headers,'params':_0xb2403f?.[_0x23a86e(0x2e3,0x27d)]});break;case'POST':response=await this[_0x23a86e(0x2da,0x2cb)]['post'](_0x5134ac,_0xb2403f?.[_0x23a86e(0x2e3,0x2ed)],{'headers':headers});break;case'PUT':response=await this['httpClient'][_0x23a86e(0x354,0x3a8)](_0x5134ac,_0xb2403f?.[_0x23a86e(0x2e3,0x2fb)],{'headers':headers});break;case'PATCH':response=await this[_0x23a86e(0x2da,0x27c)][_0x23a86e(0x28a,0x2c3)](_0x5134ac,_0xb2403f?.[_0x23a86e(0x2e3,0x2f8)],{'headers':headers});break;case'DELETE':response=await this['httpClient'][_0x23a86e(0x2f0,0x2a3)](_0x5134ac,{'headers':headers,'data':_0xb2403f?.[_0x23a86e(0x2e3,0x2ac)]});break;default:throw new EBaaSError('Unsupported\x20HTTP\x20method:\x20'+_0x576ad8,0x190);}return{'data':response['data'],'error':null};}catch(_0x13924a){return{'data':null,'error':_0x13924a instanceof EBaaSError?_0x13924a:new EBaaSError(_0x13924a instanceof Error?_0x13924a[_0x23a86e(0x2ba,0x309)]:_0x23a86e(0x34a,0x347),0x0,_0x13924a)};}}async[_0x57b89b(-0x137,-0x156)](){function _0x431c88(_0x409d3d,_0x1fcbc8){return _0x9ef0(_0x1fcbc8-0x193,_0x409d3d);}try{const response=await this[_0x431c88(0x3bf,0x362)]['get']('/functions/v1');return{'data':response[_0x431c88(0x31c,0x36f)],'error':null};}catch(_0x3d1100){return{'data':null,'error':_0x3d1100 instanceof EBaaSError?_0x3d1100:new EBaaSError(_0x3d1100 instanceof Error?_0x3d1100['message']:_0x431c88(0x3ae,0x3ea),0x0,_0x3d1100)};}}async[_0x57b89b(-0x56,-0xbf)](_0x2d0da9){function _0x33499f(_0x4ca0c0,_0x497aa9){return _0x9ef0(_0x497aa9- -0x3d,_0x4ca0c0);}try{const response=await this[_0x33499f(0x159,0x192)][_0x33499f(0x1da,0x1f6)]('/functions/v1/'+_0x2d0da9+'/info');return{'data':response[_0x33499f(0x1ae,0x19f)],'error':null};}catch(_0x4a1e2){return{'data':null,'error':_0x4a1e2 instanceof EBaaSError?_0x4a1e2:new EBaaSError(_0x4a1e2 instanceof Error?_0x4a1e2['message']:_0x33499f(0x10f,0x178),0x0,_0x4a1e2)};}}async[_0x57b89b(-0xa6,-0x118)](_0x5acfd3,_0xf94145){function _0x3d7869(_0x37e3bd,_0x1aceb1){return _0x9ef0(_0x37e3bd- -0x276,_0x1aceb1);}try{const _0x48e3a3=new FormData();if(_0xf94145[_0x3d7869(-0x8c,-0x3a)]instanceof File)_0x48e3a3['append']('code',_0xf94145['code']);else typeof _0xf94145[_0x3d7869(-0x8c,-0x3d)]===_0x3d7869(-0x8d,-0xe0)&&_0x48e3a3[_0x3d7869(-0x6f,0xb)](_0x3d7869(-0x8c,-0xc4),new Blob([_0xf94145['code']],{'type':'text/plain'}),_0x3d7869(-0x27,-0x6e));_0xf94145[_0x3d7869(-0xed,-0xc4)]&&_0x48e3a3[_0x3d7869(-0x6f,-0x80)](_0x3d7869(-0xed,-0x142),_0xf94145['entrypoint']);_0xf94145[_0x3d7869(-0xf3,-0xd6)]&&_0x48e3a3[_0x3d7869(-0x6f,-0x54)](_0x3d7869(-0xf3,-0x89),JSON['stringify'](_0xf94145[_0x3d7869(-0xf3,-0x12c)]));_0xf94145['importMap']&&_0x48e3a3['append'](_0x3d7869(-0x7,0x51),JSON['stringify'](_0xf94145[_0x3d7869(-0x7,0x4a)]));_0xf94145['verify']!==undefined&&_0x48e3a3['append']('verify',String(_0xf94145['verify']));const response=await this['httpClient']['post']('/functions/v1/'+_0x5acfd3+'/deploy',_0x48e3a3,{'headers':{'Content-Type':_0x3d7869(-0x11,-0x78)}});return{'data':response[_0x3d7869(-0x9a,-0xe9)],'error':null};}catch(_0xf5d63f){return{'data':null,'error':_0xf5d63f instanceof EBaaSError?_0xf5d63f:new EBaaSError(_0xf5d63f instanceof Error?_0xf5d63f[_0x3d7869(-0xc7,-0xc2)]:'Failed\x20to\x20deploy\x20function',0x0,_0xf5d63f)};}}async[_0x57b89b(-0x16f,-0x10d)](_0x9945f4){function _0x2061c1(_0x2d0880,_0x2e9d0d){return _0x9ef0(_0x2d0880- -0x3ce,_0x2e9d0d);}try{const response=await this[_0x2061c1(-0x1ff,-0x1cc)][_0x2061c1(-0x1e9,-0x1d1)]('/functions/v1/'+_0x9945f4);return{'data':response[_0x2061c1(-0x1f2,-0x18c)],'error':null};}catch(_0x55eed1){return{'data':null,'error':_0x55eed1 instanceof EBaaSError?_0x55eed1:new EBaaSError(_0x55eed1 instanceof Error?_0x55eed1['message']:'Failed\x20to\x20delete\x20function',0x0,_0x55eed1)};}}async[_0x57b89b(-0x11e,-0xfb)](_0x59e998,_0x3951ee){function _0x354415(_0x506df5,_0x315fe0){return _0x9ef0(_0x315fe0- -0xa1,_0x506df5);}try{const response=await this[_0x354415(0x14d,0x12e)]['put']('/functions/v1/'+_0x59e998+_0x354415(0xb9,0xf5),{'env':_0x3951ee});return{'data':response['data'],'error':null};}catch(_0x268c77){return{'data':null,'error':_0x268c77 instanceof EBaaSError?_0x268c77:new EBaaSError(_0x268c77 instanceof Error?_0x268c77['message']:'Failed\x20to\x20update\x20function\x20environment',0x0,_0x268c77)};}}async['getLogs'](_0x1f0ecd,_0x36c86b){function _0x2d34df(_0x3ebd47,_0x57e669){return _0x9ef0(_0x3ebd47- -0x82,_0x57e669);}try{const _0x30bcca=new URLSearchParams();_0x36c86b?.['limit']&&_0x30bcca['append'](_0x2d34df(0x1ae,0x214),String(_0x36c86b['limit']));_0x36c86b?.[_0x2d34df(0x17e,0x19a)]&&_0x30bcca['append']('offset',String(_0x36c86b[_0x2d34df(0x17e,0x1a6)]));_0x36c86b?.[_0x2d34df(0x105,0xcd)]&&_0x30bcca[_0x2d34df(0x185,0x19d)](_0x2d34df(0x105,0x127),_0x36c86b[_0x2d34df(0x105,0xfe)]);const _0x5432ae='/functions/v1/'+_0x1f0ecd+'/logs'+(_0x30bcca[_0x2d34df(0x183,0x1ae)]()?'?'+_0x30bcca['toString']():''),response=await this[_0x2d34df(0x14d,0x174)][_0x2d34df(0x1b1,0x1e2)](_0x5432ae);return{'data':response['data'],'error':null};}catch(_0x221416){return{'data':null,'error':_0x221416 instanceof EBaaSError?_0x221416:new EBaaSError(_0x221416 instanceof Error?_0x221416['message']:'Failed\x20to\x20get\x20function\x20logs',0x0,_0x221416)};}}async['getMetrics'](_0x3623a,_0x26a81c){function _0x4636d8(_0x4cdeca,_0x33cc6b){return _0x9ef0(_0x33cc6b-0x0,_0x4cdeca);}try{const _0x1fb974=new URLSearchParams();_0x26a81c?.[_0x4636d8(0x157,0x17e)]&&_0x1fb974[_0x4636d8(0x272,0x207)]('period',_0x26a81c[_0x4636d8(0x12a,0x17e)]);const _0x3fd68f=_0x4636d8(0x17a,0x1de)+_0x3623a+'/metrics'+(_0x1fb974[_0x4636d8(0x240,0x205)]()?'?'+_0x1fb974['toString']():''),response=await this[_0x4636d8(0x174,0x1cf)][_0x4636d8(0x224,0x233)](_0x3fd68f);return{'data':response['data'],'error':null};}catch(_0x1758a4){return{'data':null,'error':_0x1758a4 instanceof EBaaSError?_0x1758a4:new EBaaSError(_0x1758a4 instanceof Error?_0x1758a4[_0x4636d8(0x18a,0x1af)]:'Failed\x20to\x20get\x20function\x20metrics',0x0,_0x1758a4)};}}}class EBaaSClient{constructor(_0x53ef59,_0x21b66b,_0x5cd447){this['options']=_0x5cd447,this[_0x480c77(0x58b,0x581)]=new HttpClient({'url':_0x53ef59,'apiKey':_0x21b66b,'timeout':0x7530,'headers':_0x5cd447?.[_0x480c77(0x608,0x64b)]?.[_0x480c77(0x623,0x66a)]}),this[_0x480c77(0x55d,0x539)]=new AuthClient(this[_0x480c77(0x58b,0x558)],_0x5cd447?.['database']?.['workspaceId']),this[_0x480c77(0x592,0x5dc)]=new DatabaseClient(this['httpClient'],_0x5cd447?.[_0x480c77(0x592,0x5db)]?.['workspaceId']);function _0x480c77(_0x1efcde,_0x1374ba){return _0x9ef0(_0x1efcde-0x3bc,_0x1374ba);}this['storage']=new StorageClient(this['httpClient']),this['realtime']=new RealtimeClient(_0x53ef59,_0x21b66b,_0x5cd447?.[_0x480c77(0x579,0x58b)]),this['functions']=new FunctionsClient(this[_0x480c77(0x58b,0x5e9)]),this['initializeCustomDatabase']();}['from'](_0x2c33c6){function _0x2a5a3b(_0x284e4f,_0x1de3d2){return _0x9ef0(_0x284e4f-0x176,_0x1de3d2);}return this[_0x2a5a3b(0x34c,0x3a3)][_0x2a5a3b(0x395,0x3c1)](_0x2c33c6);}['rpc'](_0x336f8e,_0x246733){function _0x4b5191(_0x4d0c29,_0x5b628f){return _0x9ef0(_0x5b628f-0x7b,_0x4d0c29);}return this[_0x4b5191(0x264,0x251)][_0x4b5191(0x27f,0x263)](_0x336f8e,_0x246733);}[_0x57b89b(-0x17d,-0x12b)](_0x3e76aa){function _0x23498f(_0x31ab07,_0x57d7f8){return _0x9ef0(_0x57d7f8- -0x138,_0x31ab07);}return this[_0x23498f(0x67,0x78)][_0x23498f(0x97,0xe7)](_0x3e76aa);}['channel'](_0x4390fe){function _0x266888(_0x2d1f0a,_0x468b9d){return _0x9ef0(_0x2d1f0a- -0x30d,_0x468b9d);}return this[_0x266888(-0x150,-0x161)]['channel'](_0x4390fe);}['invoke'](_0x3a8bbd,_0x3d7e87){function _0x1016bb(_0x1f00bc,_0x265bdb){return _0x9ef0(_0x1f00bc- -0x2b1,_0x265bdb);}return this['functions'][_0x1016bb(-0xb3,-0x83)](_0x3a8bbd,_0x3d7e87);}async[_0x57b89b(-0xfb,-0xd1)](){function _0x2d3319(_0x3642ff,_0x1306a8){return _0x9ef0(_0x3642ff-0x6,_0x1306a8);}if(this['options']?.[_0x2d3319(0x1dc,0x218)]?.['autoDetectCustomDatabase'])try{await this['database'][_0x2d3319(0x258,0x227)]();}catch(_0x2cfa14){console['warn']('Failed to initialize custom database detection:',_0x2cfa14);}}async['setWorkspaceId'](_0x18ed0a){this[_0x2afa6c(0xad,0x91)]['setWorkspaceId'](_0x18ed0a);function _0x2afa6c(_0x338a32,_0x4dee89){return _0x9ef0(_0x4dee89- -0x110,_0x338a32);}this['database'][_0x2afa6c(0xc7,0x113)](_0x18ed0a),this['options']?.['database']?.['autoDetectCustomDatabase']&&await this[_0x2afa6c(0x106,0xc6)]['initialize']();}async['configureCustomDatabase'](_0x467b58){function _0x5ab9a5(_0x1dedda,_0x1de9b2){return _0x9ef0(_0x1dedda-0x6b,_0x1de9b2);}await this['database'][_0x5ab9a5(0x244,0x207)](_0x467b58);}[_0x57b89b(-0x18b,-0x16d)](){function _0x301041(_0x494ef7,_0x5907e3){return _0x9ef0(_0x5907e3- -0x138,_0x494ef7);}return this[_0x301041(0x89,0x9e)]['getCustomDatabaseStatus']();}}function createClient(_0x4dd660,_0xf084b9,_0x1b5606){return new EBaaSClient(_0x4dd660,_0xf084b9,_0x1b5606);}const version='1.0.0';export{AuthClient,CustomDatabaseManager,DatabaseClient,EBaaSClient,EBaaSError,FunctionsClient,HttpClient,QueryBuilder,RealtimeChannel,RealtimeClient,StorageBucket,StorageClient,createClient,version};
|
|
1
|
+
(function(stringArrayFunction,comparisonValue){const stringArray=stringArrayFunction();function _0x3cd4f0(_0x2319c8,_0x2edf47){return _0x32c5(_0x2319c8- -0x2d4,_0x2edf47);}while(!![]){try{const _0x6dc93c=parseInt(_0x3cd4f0(0x4,0x32))/0x1*(parseInt(_0x3cd4f0(0x99,-0x2))/0x2)+-parseInt(_0x3cd4f0(-0x2,-0x1a))/0x3*(-parseInt(_0x3cd4f0(0x62,0xf6))/0x4)+parseInt(_0x3cd4f0(0xd3,0x1cb))/0x5+-parseInt(_0x3cd4f0(-0xb9,-0x160))/0x6*(parseInt(_0x3cd4f0(-0x71,0x7b))/0x7)+parseInt(_0x3cd4f0(-0x5f,0x5c))/0x8+-parseInt(_0x3cd4f0(0x82,0x138))/0x9*(parseInt(_0x3cd4f0(0x100,0xa0))/0xa)+parseInt(_0x3cd4f0(-0xf0,-0xba))/0xb;if(_0x6dc93c===comparisonValue)break;else stringArray['push'](stringArray['shift']());}catch(_0x928871){stringArray['push'](stringArray['shift']());}}}(_0x46ca,0x6d4ce));import axios from'axios';import _0x2ca273 from'eventemitter3';class EBaaSError extends Error{constructor(_0x7dfe18,status=0x0,_0x521395){super(_0x7dfe18),this[_0x45c4b0(0x764,0x664)]='EBaaSError',this[_0x45c4b0(0x480,0x4ce)]=status,this[_0x45c4b0(0x498,0x56d)]=_0x521395;function _0x45c4b0(_0x2c9fde,_0x49e716){return _0x32c5(_0x49e716-0x276,_0x2c9fde);}Error[_0x45c4b0(0x57e,0x52b)]&&Error[_0x45c4b0(0x505,0x52b)](this,EBaaSError);}[_0xf108a4(0x422,0x371)](){function _0x2c0e56(_0x24e83f,_0x23d239){return _0x32c5(_0x23d239-0x29b,_0x24e83f);}return{'name':this['name'],'message':this['message'],'status':this[_0x2c0e56(0x428,0x4f3)],'details':this[_0x2c0e56(0x6a9,0x592)],'stack':this[_0x2c0e56(0x567,0x494)]};}[_0xf108a4(0x4ca,0x3df)](){function _0x310bbe(_0x361302,_0x6d32ad){return _0x32c5(_0x6d32ad-0x45,_0x361302);}return this[_0x310bbe(0x4c7,0x433)]+':\x20'+this['message']+_0x310bbe(0x32f,0x3aa)+this[_0x310bbe(0x383,0x29d)]+')';}}class HttpClient{constructor(config){this['baseURL']=config['url'],this[_0x31ba32(-0x101,-0xa5)]=config[_0x31ba32(-0x101,-0x1)];function _0x31ba32(_0x351903,_0x14b722){return _0x32c5(_0x351903- -0x3cb,_0x14b722);}this[_0x31ba32(-0x71,-0x168)]=axios['create']({'baseURL':this['baseURL'],'timeout':config[_0x31ba32(-0xd8,-0xf9)]||0x2710,'headers':{'Content-Type':'application/json','apikey':this['apiKey'],...config['headers']}}),this[_0x31ba32(-0x86,-0x98)]();}['setupInterceptors'](){function _0x251e65(_0x2c9167,_0x3d871e){return _0x32c5(_0x3d871e-0x3c9,_0x2c9167);}this[_0x251e65(0x75a,0x723)][_0x251e65(0x783,0x789)][_0x251e65(0x799,0x754)]['use'](config=>{return config;},_0x46c1b8=>{return Promise['reject'](new EBaaSError('Request\x20failed',0x0,_0x46c1b8));}),this['client']['interceptors']['response'][_0x251e65(0x6a8,0x5d6)](response=>{return response;},_0x4ab4fb=>{const status=_0x4ab4fb[_0x554fe5(0x1e5,0x274)]?.[_0x554fe5(0x264,0x256)]||0x0,_0x436346=_0x4ab4fb[_0x554fe5(0x1e5,0x229)]?.[_0x554fe5(0x2bb,0x3a5)]?.[_0x554fe5(0x35b,0x41d)]||_0x4ab4fb['message']||_0x554fe5(0x1e1,0x200);function _0x554fe5(_0x47a934,_0x103814){return _0x32c5(_0x47a934-0xc,_0x103814);}const _0x1fb784=_0x4ab4fb[_0x554fe5(0x1e5,0x1bf)]?.['data']||_0x4ab4fb;return Promise[_0x554fe5(0x35c,0x41e)](new EBaaSError(_0x436346,status,_0x1fb784));});}async[_0xf108a4(0x459,0x478)](_0x507bad,config){function _0x140e70(_0x2819ff,_0x50dccd){return _0x32c5(_0x2819ff- -0x26,_0x50dccd);}try{const response=await this[_0x140e70(0x334,0x3d1)][_0x140e70(0x2f2,0x252)](_0x507bad,config);return{'data':response[_0x140e70(0x289,0x24f)],'status':response['status'],'statusText':response[_0x140e70(0x216,0x1b5)],'headers':response[_0x140e70(0x2e2,0x2d4)]};}catch(_0x30f11d){throw this[_0x140e70(0x199,0x224)](_0x30f11d);}}async[_0xf108a4(0x361,0x46b)](_0x1504fd,data,config){function _0x306211(_0xa0a74b,_0x47cc7b){return _0x32c5(_0x47cc7b-0x238,_0xa0a74b);}try{const response=await this[_0x306211(0x522,0x592)][_0x306211(0x62c,0x543)](_0x1504fd,data,config);return{'data':response[_0x306211(0x5b0,0x4e7)],'status':response['status'],'statusText':response['statusText'],'headers':response['headers']};}catch(_0x17c1ad){throw this['handleError'](_0x17c1ad);}}async[_0xf108a4(0x2cc,0x379)](_0x4d0b89,data,config){function _0x470989(_0x1b6f57,_0x234f35){return _0x32c5(_0x1b6f57- -0x228,_0x234f35);}try{const response=await this[_0x470989(0x132,0xc8)][_0x470989(-0xf,-0x5a)](_0x4d0b89,data,config);return{'data':response[_0x470989(0x87,0x15e)],'status':response[_0x470989(0x30,0xcf)],'statusText':response[_0x470989(0x14,-0xab)],'headers':response[_0x470989(0xe0,0x1e5)]};}catch(_0x4feaa2){throw this[_0x470989(-0x69,-0xb2)](_0x4feaa2);}}async['patch'](_0x5959d2,data,config){function _0x4d7933(_0x11e37b,_0x195277){return _0x32c5(_0x11e37b-0x29b,_0x195277);}try{const response=await this[_0x4d7933(0x5f5,0x6b9)]['patch'](_0x5959d2,data,config);return{'data':response[_0x4d7933(0x54a,0x5e9)],'status':response['status'],'statusText':response[_0x4d7933(0x4d7,0x52e)],'headers':response['headers']};}catch(_0x243954){throw this[_0x4d7933(0x45a,0x517)](_0x243954);}}async[_0xf108a4(0x412,0x395)](_0x5b8e62,config){function _0xd0973d(_0x434d83,_0x25bc78){return _0x32c5(_0x25bc78-0xc8,_0x434d83);}try{const response=await this[_0xd0973d(0x315,0x422)][_0xd0973d(0x31e,0x2fd)](_0x5b8e62,config);return{'data':response[_0xd0973d(0x2ec,0x377)],'status':response[_0xd0973d(0x325,0x320)],'statusText':response['statusText'],'headers':response['headers']};}catch(_0x211dbe){throw this[_0xd0973d(0x34d,0x287)](_0x211dbe);}}['setAuthToken'](_0x5761ac){function _0x4e29f2(_0x5caf3b,_0xebc327){return _0x32c5(_0xebc327- -0x137,_0x5caf3b);}this[_0x4e29f2(0x1af,0x223)][_0x4e29f2(0x2d8,0x237)]['headers']['common']['Authorization']=_0x4e29f2(0x25c,0x214)+_0x5761ac;}[_0xf108a4(0x35b,0x378)](){function _0x221bb2(_0x2d8684,_0x40c7a5){return _0x32c5(_0x2d8684- -0xdf,_0x40c7a5);}delete this[_0x221bb2(0x27b,0x1b8)]['defaults'][_0x221bb2(0x229,0x134)]['common']['Authorization'],this[_0x221bb2(0x27b,0x2ae)][_0x221bb2(0x28f,0x2c8)]['headers']['common']['Authorization']='Bearer\x20'+this['apiKey'];}[_0xf108a4(0x216,0x31f)](_0x51deb2){function _0x55911d(_0x5a9204,_0x229a6c){return _0x32c5(_0x229a6c- -0x14f,_0x5a9204);}if(_0x51deb2 instanceof EBaaSError)return _0x51deb2;return new EBaaSError(_0x51deb2['message']||'HTTP\x20request\x20failed',_0x51deb2[_0x55911d(0xa9,0x109)]||0x0,_0x51deb2);}}class AuthClient{constructor(_0x3fa9b4,_0x18567b){function _0x5df621(_0x3c99f4,_0x84de4f){return _0x32c5(_0x3c99f4- -0x260,_0x84de4f);}this[_0x5df621(0x19b,0x1e0)]=null,this[_0x5df621(0xc6,0x152)]=_0x3fa9b4,this['workspaceId']=_0x18567b,this['loadSession']();}async[_0xf108a4(0x548,0x551)](data){function _0x163f17(_0x2e733d,_0x396441){return _0x32c5(_0x2e733d-0x16d,_0x396441);}try{const response=await this['httpClient'][_0x163f17(0x478,0x381)]('/auth/v1/signup',data);return response['data']['session']&&this['setSessionInternal'](response['data'][_0x163f17(0x37b,0x2c5)]),response[_0x163f17(0x41c,0x34b)];}catch(_0xd7bcb){throw this[_0x163f17(0x533,0x5fd)](_0xd7bcb);}}async[_0xf108a4(0x449,0x4e0)](data){function _0x5e778c(_0x1baede,_0x3c7272){return _0x32c5(_0x1baede-0x23,_0x3c7272);}try{const headers={};this['workspaceId']&&(headers['X-Workspace-ID']=this['workspaceId']);const response=await this['httpClient'][_0x5e778c(0x32e,0x32a)]('/auth/v1/sdk/signin',data,{'headers':headers});return response['data'][_0x5e778c(0x231,0x187)]&&this['setSessionInternal'](response[_0x5e778c(0x2d2,0x335)]['session']),response[_0x5e778c(0x2d2,0x24e)];}catch(_0x24289a){throw this['handleAuthError'](_0x24289a);}}async['signOut'](){function _0x362bb5(_0xef052a,_0x1663b1){return _0x32c5(_0x1663b1- -0x14c,_0xef052a);}try{await this['httpClient'][_0x362bb5(0x202,0x1bf)](_0x362bb5(0x1ff,0x1a6)),this[_0x362bb5(0xab,0x84)]();}catch(_0x45acec){this['clearSession']();throw this['handleAuthError'](_0x45acec);}}async['getUser'](){if(!this['currentSession']?.[_0x182ee7(0x287,0x2c8)])return null;function _0x182ee7(_0x4e5e93,_0x44b2fa){return _0x32c5(_0x44b2fa-0xc6,_0x4e5e93);}try{const response=await this[_0x182ee7(0x3ad,0x3ec)]['get']('/auth/v1/user');return response[_0x182ee7(0x447,0x375)]['user'];}catch(_0x273f13){if(_0x273f13 instanceof EBaaSError&&_0x273f13[_0x182ee7(0x329,0x31e)]===0x191)return this['clearSession'](),null;throw this[_0x182ee7(0x3dc,0x48c)](_0x273f13);}}async[_0xf108a4(0x3b2,0x3a8)](){if(!this[_0x4fd739(0x12c,0x1f5)]?.[_0x4fd739(0x1cf,0x122)])return null;function _0x4fd739(_0x1f4adb,_0x3396d1){return _0x32c5(_0x3396d1- -0x206,_0x1f4adb);}try{const response=await this[_0x4fd739(0x203,0x120)]['post']('/auth/v1/refresh',{'refresh_token':this[_0x4fd739(0x1aa,0x1f5)]['refresh_token']});if(response[_0x4fd739(0x12f,0xa9)][_0x4fd739(-0x2,0x8)])return this[_0x4fd739(0x8e,0x60)](response[_0x4fd739(0x11b,0xa9)]['session']),response[_0x4fd739(0x1b2,0xa9)][_0x4fd739(-0x10e,0x8)];return null;}catch(_0x110b4b){this[_0x4fd739(-0x98,-0x36)]();throw this[_0x4fd739(0x11f,0x1c0)](_0x110b4b);}}async[_0xf108a4(0x3f8,0x4c2)](_0x4303dd){function _0x28f438(_0xa1d0e1,_0x382af5){return _0x32c5(_0x382af5-0x3e3,_0xa1d0e1);}try{await this[_0x28f438(0x81e,0x709)]['post']('/auth/v1/reset-password',{'email':_0x4303dd});}catch(_0x2cbbb2){throw this[_0x28f438(0x752,0x7a9)](_0x2cbbb2);}}async['updateUser'](data){function _0x4d07fb(_0x1a1fe7,_0x2acf47){return _0x32c5(_0x2acf47- -0x2da,_0x1a1fe7);}try{const response=await this['httpClient'][_0x4d07fb(-0x56,-0xc1)]('/auth/v1/user',data);return response['data'][_0x4d07fb(0xa7,-0x32)];}catch(_0x4c8c30){throw this['handleAuthError'](_0x4c8c30);}}[_0xf108a4(0x3a3,0x3f4)](){function _0x305e76(_0x17973b,_0x5efa33){return _0x32c5(_0x5efa33- -0x168,_0x17973b);}return this[_0x305e76(0x17b,0x293)];}[_0xf108a4(0x361,0x3c6)](_0x5e3929){function _0x1dd282(_0x21c464,_0x5d18d4){return _0x32c5(_0x5d18d4- -0x305,_0x21c464);}this['currentSession']=_0x5e3929,this['httpClient'][_0x1dd282(0x61,-0x26)](_0x5e3929[_0x1dd282(-0xe7,-0x103)]),typeof localStorage!=='undefined'&&localStorage['setItem']('ebaas.auth.session',JSON['stringify'](_0x5e3929));}[_0xf108a4(0x423,0x47b)](_0x59cea1){return()=>{};}[_0xf108a4(0x39d,0x3c2)](_0x445443){this['workspaceId']=_0x445443;}['setSessionInternal'](_0x5e8b40){function _0x2130da(_0x1bcfb0,_0x3985fc){return _0x32c5(_0x3985fc-0x147,_0x1bcfb0);}this[_0x2130da(0x4da,0x542)]=_0x5e8b40,this[_0x2130da(0x4c8,0x46d)]['setAuthToken'](_0x5e8b40[_0x2130da(0x245,0x349)]),typeof localStorage!==_0x2130da(0x2cd,0x3e7)&&localStorage[_0x2130da(0x517,0x466)]('ebaas.auth.session',JSON[_0x2130da(0x3cf,0x3e4)](_0x5e8b40));}[_0xf108a4(0x372,0x330)](){this['currentSession']=null;function _0x10a0f8(_0x4b683d,_0x524a1e){return _0x32c5(_0x524a1e- -0x108,_0x4b683d);}this['httpClient'][_0x10a0f8(0xdf,0x110)](),typeof localStorage!==_0x10a0f8(0xed,0x198)&&localStorage['removeItem'](_0x10a0f8(0x12d,0x144));}[_0xf108a4(0x44a,0x3c4)](){function _0x19acf9(_0x5e86f8,_0x6a1279){return _0x32c5(_0x6a1279- -0x27b,_0x5e86f8);}if(typeof localStorage!==_0x19acf9(0x3a,0x25)){const _0x111b1a=localStorage['getItem']('ebaas.auth.session');if(_0x111b1a)try{const _0x3160b7=JSON[_0x19acf9(0x55,-0x68)](_0x111b1a);this[_0x19acf9(0xba,0xc8)](_0x3160b7);}catch(_0x490572){this[_0x19acf9(0x1a,-0xab)]();}}}[_0xf108a4(0x58f,0x526)](_0x6f65ec){function _0x23d9a3(_0x39e540,_0x17d1a0){return _0x32c5(_0x17d1a0- -0x381,_0x39e540);}if(_0x6f65ec instanceof EBaaSError)return _0x6f65ec;return new EBaaSError(_0x6f65ec[_0x23d9a3(0xde,-0x32)]||'Authentication\x20failed',_0x6f65ec['status']||0x0,_0x6f65ec);}}class QueryBuilder{constructor(_0x2dd491,_0x30d63d,_0x170f0b,_0x4d062f){this[_0x46c851(0x2d5,0x25f)]=_0x2dd491;function _0x46c851(_0x4c5f96,_0x58c7a4){return _0x32c5(_0x4c5f96- -0x51,_0x58c7a4);}this[_0x46c851(0x204,0x28e)]=_0x30d63d,this[_0x46c851(0x28a,0x19f)]=_0x170f0b,this[_0x46c851(0x23c,0x333)]=_0x4d062f,this['query']={'filters':[]};}[_0xf108a4(0x289,0x392)](_0x33c5c2='*',_0x3d55be){this[_0x8b6256(0x5dc,0x5af)][_0x8b6256(0x39c,0x43b)]=_0x33c5c2;function _0x8b6256(_0x4e7af1,_0x2e51dc){return _0x32c5(_0x2e51dc-0x209,_0x4e7af1);}return this;}['insert'](data,_0x1d4fab){function _0x404c98(_0x39b83a,_0x44fd0c){return _0x32c5(_0x44fd0c- -0x315,_0x39b83a);}return this[_0x404c98(-0x5,0x26)]('POST',_0x404c98(0x189,0xa8)+this[_0x404c98(-0x10e,-0xc0)]+'?operation=insert',{'data':data,'options':_0x1d4fab});}['update'](data,_0x5cadb1){function _0x525b5a(_0x2b8057,_0x552f23){return _0x32c5(_0x552f23-0x23,_0x2b8057);}return this[_0x525b5a(0x3a4,0x3c9)]['updateData']=data,this[_0x525b5a(0x417,0x3c9)]['updateOptions']=_0x5cadb1,this;}['upsert'](data,_0x58d207){function _0xba7659(_0x2c349f,_0x67e559){return _0x32c5(_0x67e559- -0x3a8,_0x2c349f);}return this[_0xba7659(-0x161,-0x6d)]('POST',_0xba7659(0xcc,0x15)+this[_0xba7659(-0x127,-0x153)]+_0xba7659(-0xd7,-0x181),{'data':data,'options':{..._0x58d207,'upsert':!![]}});}['delete'](_0x479147){this['query']['deleteOptions']=_0x479147,this[_0x57363d(0x53c,0x544)]['isDelete']=!![];function _0x57363d(_0xd4758b,_0x1744d2){return _0x32c5(_0xd4758b-0x196,_0x1744d2);}return this;}['eq'](_0x4c7f6a,_0x2654c5){this[_0x265b3e(0x589,0x557)][_0x265b3e(0x34d,0x45b)][_0x265b3e(0x3f3,0x428)]({'column':_0x4c7f6a,'operator':'eq','value':_0x2654c5});function _0x265b3e(_0x794b0c,_0x5d912e){return _0x32c5(_0x5d912e-0x1b1,_0x794b0c);}return this;}[_0xf108a4(0x383,0x367)](_0x40d880,_0x453554){function _0xcf8ed3(_0x2eeae5,_0x1f4aa8){return _0x32c5(_0x2eeae5- -0x390,_0x1f4aa8);}return this['query']['filters'][_0xcf8ed3(-0x119,-0xc8)]({'column':_0x40d880,'operator':_0xcf8ed3(-0x189,-0xde),'value':_0x453554}),this;}['gt'](_0x5bfecf,_0x39739d){this['query']['filters'][_0x1b958c(0x543,0x613)]({'column':_0x5bfecf,'operator':'gt','value':_0x39739d});function _0x1b958c(_0x4810a8,_0x3b44c2){return _0x32c5(_0x4810a8-0x2cc,_0x3b44c2);}return this;}[_0xf108a4(0x503,0x541)](_0x33687a,_0x4ffa4e){this[_0x4219fe(0x1f0,0x190)][_0x4219fe(-0x4a,0x94)]['push']({'column':_0x33687a,'operator':'gte','value':_0x4ffa4e});function _0x4219fe(_0x2da63d,_0xfdbaca){return _0x32c5(_0xfdbaca- -0x216,_0x2da63d);}return this;}['lt'](_0x55bd5b,_0x5715d5){function _0x36e5d5(_0x31fd65,_0x1f8a5e){return _0x32c5(_0x31fd65-0x14b,_0x1f8a5e);}return this[_0x36e5d5(0x4f1,0x544)]['filters'][_0x36e5d5(0x3c2,0x38a)]({'column':_0x55bd5b,'operator':'lt','value':_0x5715d5}),this;}['lte'](_0x22d802,_0x57e661){function _0x5475b1(_0x31c2a9,_0x42e42a){return _0x32c5(_0x42e42a-0x25b,_0x31c2a9);}return this[_0x5475b1(0x5f4,0x601)]['filters']['push']({'column':_0x22d802,'operator':_0x5475b1(0x70f,0x624),'value':_0x57e661}),this;}[_0xf108a4(0x498,0x3cc)](_0x433929,_0x3ab436){this['query']['filters'][_0x331098(-0xa4,-0x121)]({'column':_0x433929,'operator':'like','value':_0x3ab436});function _0x331098(_0x5190a6,_0x173ad0){return _0x32c5(_0x173ad0- -0x398,_0x5190a6);}return this;}[_0xf108a4(0x498,0x479)](_0x2ddcf4,_0x4d0dcc){this[_0x21d150(0x441,0x3b7)][_0x21d150(0x345,0x2bc)][_0x21d150(0x312,0x2e7)]({'column':_0x2ddcf4,'operator':'ilike','value':_0x4d0dcc});function _0x21d150(_0x28854e,_0x3b5ba3){return _0x32c5(_0x28854e-0x9b,_0x3b5ba3);}return this;}['is'](_0x5019c2,_0x269882){function _0x12ce69(_0x5da7ff,_0x23e580){return _0x32c5(_0x23e580-0x36b,_0x5da7ff);}return this['query']['filters'][_0x12ce69(0x66d,0x5e2)]({'column':_0x5019c2,'operator':'is','value':_0x269882}),this;}['in'](_0x5cd11b,_0x135135){function _0x165eb8(_0x50ab72,_0xd7bb6c){return _0x32c5(_0x50ab72- -0x2bf,_0xd7bb6c);}return this[_0x165eb8(0xe7,0x116)][_0x165eb8(-0x15,-0x10a)][_0x165eb8(-0x48,-0x67)]({'column':_0x5cd11b,'operator':'in','value':_0x135135}),this;}['contains'](_0x5d5b77,_0x94ef15){function _0x4d3e82(_0x3e7902,_0x3e32b3){return _0x32c5(_0x3e32b3-0x240,_0x3e7902);}return this[_0x4d3e82(0x4e7,0x5e6)]['filters'][_0x4d3e82(0x5c0,0x4b7)]({'column':_0x5d5b77,'operator':_0x4d3e82(0x383,0x444),'value':_0x94ef15}),this;}['match'](_0x16f3c3){return Object['entries'](_0x16f3c3)['forEach'](([_0x1615be,_0x777976])=>{this['eq'](_0x1615be,_0x777976);}),this;}[_0xf108a4(0x4af,0x514)](_0xc5033,_0x4a5e1e){!this['query']['order']&&(this[_0x1638f8(0xce,0x15e)]['order']=[]);this[_0x1638f8(0xce,0x13)][_0x1638f8(0xdc,0x122)]['push']({'column':_0xc5033,'ascending':_0x4a5e1e?.['ascending']!==![]});function _0x1638f8(_0x4f4449,_0x405dcf){return _0x32c5(_0x4f4449- -0x2d8,_0x405dcf);}return this;}['limit'](count){function _0x4a9773(_0x3e0801,_0x18bc1b){return _0x32c5(_0x3e0801-0xfe,_0x18bc1b);}return this[_0x4a9773(0x4a4,0x571)]['limit']=count,this;}[_0xf108a4(0x586,0x46d)](from,_0x100356){this['query'][_0x1de679(0x3ae,0x33a)]={'from':from,'to':_0x100356};function _0x1de679(_0x56e5c7,_0x52b454){return _0x32c5(_0x52b454-0x2d,_0x56e5c7);}return this;}async[_0xf108a4(0x5ce,0x4c7)](){function _0x55d0b6(_0xae401b,_0x96bdd1){return _0x32c5(_0xae401b- -0x2fe,_0x96bdd1);}if(this['query']['updateData'])return this[_0x55d0b6(0x3d,-0xb)]('PATCH',_0x55d0b6(0xbf,0x143)+this[_0x55d0b6(-0xa9,-0x19c)],{'data':this['query'][_0x55d0b6(0xd5,0x1ce)],'options':this['query'][_0x55d0b6(0x34,-0xb5)],'filters':this['query'][_0x55d0b6(-0x54,-0x2f)]});else return this[_0x55d0b6(0xa8,-0x79)]['isDelete']?this['executeQuery']('DELETE','/sdk/v1/'+this['table']+'?operation=delete',{'options':this['query'][_0x55d0b6(0x7c,-0x49)],'filters':this[_0x55d0b6(0xa8,0xe8)][_0x55d0b6(-0x54,0x70)]}):this['executeQuery']('GET',_0x55d0b6(0xbf,0x126)+this[_0x55d0b6(-0xa9,-0x163)]+'?operation=select',{'select':this['query'][_0x55d0b6(-0xcc,-0x19d)],'filters':this['query'][_0x55d0b6(-0x54,0x35)],'order':this[_0x55d0b6(0xa8,0x11d)]['order'],'limit':this[_0x55d0b6(0xa8,0x1b6)]['limit'],'range':this['query'][_0x55d0b6(0xf,0x2b)]});}async['single'](){this['limit'](0x1);function _0x4e7484(_0xfba36b,_0x2fe56d){return _0x32c5(_0x2fe56d-0x31e,_0xfba36b);}const result=await this['execute']();return{'data':result[_0x4e7484(0x4ea,0x5cd)]?.[0x0]||null,'error':result[_0x4e7484(0x61b,0x6b5)]};}async['executeQuery'](_0x403ef6,_0x541c27,_0x2f6c62){function _0x182739(_0x5c2d17,_0x29cfae){return _0x32c5(_0x5c2d17- -0x10c,_0x29cfae);}try{let response;const headers={};this['workspaceId']&&(headers['x-workspace-id']=this[_0x182739(0x181,0x138)]);if(_0x403ef6==='GET'){const _0x159027=_0x541c27['split']('?'),_0x209caf=_0x159027[0x0],existingParams=new URLSearchParams(_0x159027[0x1]||'');if(_0x2f6c62[_0x182739(0x126,0x139)])existingParams['append'](_0x182739(0x126,0x9),_0x2f6c62['select']);_0x2f6c62[_0x182739(0x19e,0x1b4)]?.['length']&&_0x2f6c62['filters'][_0x182739(0x17a,0x22d)](filter=>{function _0x3157fe(_0x1b4a5a,_0x365240){return _0x32c5(_0x1b4a5a-0x14e,_0x365240);}existingParams[_0x3157fe(0x38f,0x3ad)](filter[_0x3157fe(0x454,0x40a)],filter['operator']+'.'+filter[_0x3157fe(0x4be,0x4ea)]);});if(_0x2f6c62[_0x182739(0x2a8,0x3bc)]?.['length']){const orderStr=_0x2f6c62['order']['map'](_0x1c49ec=>''+_0x1c49ec[_0x182739(0x1fa,0x13c)]+(_0x1c49ec['ascending']?'.asc':_0x182739(0x2d7,0x333)))[_0x182739(0x242,0x188)](',');existingParams[_0x182739(0x135,0xc5)]('order',orderStr);}if(_0x2f6c62[_0x182739(0x236,0x2f4)])existingParams[_0x182739(0x135,0x8d)]('limit',_0x2f6c62['limit'][_0x182739(0x173,0x1ba)]());_0x2f6c62['range']&&(existingParams[_0x182739(0x135,0x16f)]('offset',_0x2f6c62['range']['from'][_0x182739(0x173,0xc2)]()),existingParams[_0x182739(0x135,0xfd)]('limit',(_0x2f6c62[_0x182739(0x201,0x206)]['to']-_0x2f6c62[_0x182739(0x201,0x1ea)]['from']+0x1)[_0x182739(0x173,0x217)]())),response=await this['httpClient']['get'](_0x209caf+'?'+existingParams['toString'](),{'headers':headers});}else{if(_0x403ef6==='DELETE'){const _0x43c661=_0x541c27[_0x182739(0x208,0x212)]('?'),_0x124e7d=_0x43c661[0x0],existingParams=new URLSearchParams(_0x43c661[0x1]||'');!existingParams['has'](_0x182739(0x265,0x208))&&existingParams['append'](_0x182739(0x265,0x2fb),_0x182739(0x129,0x109));_0x2f6c62[_0x182739(0x19e,0x2b8)]?.[_0x182739(0x184,0x1a8)]&&_0x2f6c62['filters']['forEach'](filter=>{function _0x590eb9(_0x4aa962,_0x5bc2c7){return _0x32c5(_0x4aa962- -0x307,_0x5bc2c7);}existingParams['append'](filter[_0x590eb9(-0x1,0x11)],filter[_0x590eb9(0x3f,-0x11)]+'.'+filter['value']);});const deleteUrl=_0x124e7d+'?'+existingParams['toString']();console['log']('\uD83D\uDD27 DELETE URL construída:',deleteUrl),console['log']('\uD83D\uDD27 DELETE headers:',headers),console[_0x182739(0xb6,0x195)]('\uD83D\uDD27 DELETE filtros originais:',_0x2f6c62[_0x182739(0x19e,0x2ab)]),response=await this[_0x182739(0x21a,0x220)][_0x182739(0x129,0x228)](deleteUrl,{'headers':headers});}else{if(_0x403ef6==='PATCH'){const _0x9c749f=_0x541c27[_0x182739(0x208,0x285)]('?'),_0x25c0fa=_0x9c749f[0x0],existingParams=new URLSearchParams(_0x9c749f[0x1]||'');!existingParams['has']('operation')&&existingParams['append']('operation',_0x182739(0x11a,0x15d));_0x2f6c62['filters']?.['length']&&_0x2f6c62['filters']['forEach'](filter=>{function _0x21f0b0(_0x306e1b,_0x2dfb90){return _0x32c5(_0x2dfb90- -0x1ea,_0x306e1b);}existingParams['append'](filter[_0x21f0b0(0x1e1,0x11c)],filter[_0x21f0b0(0x15a,0x15c)]+'.'+filter['value']);});_0x2f6c62['options']?.[_0x182739(0x2a4,0x27c)]&&(headers[_0x182739(0x10e,0x17c)]=_0x2f6c62['options']['prefer']);const updateUrl=_0x25c0fa+'?'+existingParams['toString']();response=await this['httpClient'][_0x182739(0x131,0x119)](updateUrl,_0x2f6c62['data'],{'headers':headers});}else{let _0x55472b=_0x2f6c62['data'];!headers[_0x182739(0x10e,0x19c)]&&(headers['Prefer']=_0x182739(0x223,0x2b4)),_0x2f6c62['options']?.['upsert']&&(headers[_0x182739(0x10e,0xa8)]='resolution=merge-duplicates,return=representation'),_0x2f6c62[_0x182739(0x21b,0x1c0)]&&(_0x55472b=_0x2f6c62[_0x182739(0x21b,0x289)]),response=await this[_0x182739(0x21a,0x1e8)]['post'](_0x541c27,_0x55472b,{'headers':headers});}}}return{'data':response[_0x182739(0x1a3,0x214)],'error':null,'count':response[_0x182739(0x1fc,0x11f)]?.[_0x182739(0x2d8,0x331)]?parseInt(response[_0x182739(0x1fc,0x2b9)][_0x182739(0x2d8,0x2ed)]):undefined};}catch(_0x3994dd){return{'data':null,'error':_0x3994dd instanceof EBaaSError?_0x3994dd:new EBaaSError(_0x3994dd instanceof Error?_0x3994dd['message']:_0x182739(0x183,0x64),0x0,_0x3994dd)};}}}class CustomDatabaseManager{constructor(_0x4fdad4,_0x186dcc){this[_0x192218(0x2e3,0x212)]=_0x4fdad4;function _0x192218(_0x2dca42,_0x1b2c02){return _0x32c5(_0x2dca42- -0x43,_0x1b2c02);}this['workspaceId']=_0x186dcc;}async[_0xf108a4(0x479,0x443)](){if(!this['workspaceId'])return{'hasCustomDatabase':![]};try{const response=await this[_0x22234b(0x31a,0x2f4)][_0x22234b(0x30c,0x385)]('/admin/v1/workspace/custom-database',{'headers':{'x-workspace-id':this['workspaceId']}});if(response['status']===0xc8&&response['data']?.['config']){const config=response['data']['config'],_0x39148d={'host':config['postgresHost'],'port':config['postgresPort'],'database':config[_0x22234b(0x3b9,0x3b7)],'username':config['postgresUsername'],'password':'','schema':config['postgresSchema'],'sslEnabled':config[_0x22234b(0x1dc,0x192)]};return this[_0x22234b(0x34d,0x28b)]={'hasCustomDatabase':!![],'config':config,'credentials':_0x39148d},this['detectedConfig'];}}catch(_0x5ba420){if(_0x5ba420?.[_0x22234b(0x24c,0x26e)]===0x194)return this['detectedConfig']={'hasCustomDatabase':![]},this[_0x22234b(0x34d,0x285)];console['warn']('Failed to detect custom database configuration:',_0x5ba420);}this['detectedConfig']={'hasCustomDatabase':![]};function _0x22234b(_0xe1586c,_0x357968){return _0x32c5(_0xe1586c- -0xc,_0x357968);}return this['detectedConfig'];}async['testConnection'](_0x585b25){function _0x50742f(_0x4f5f8c,_0x39bdb2){return _0x32c5(_0x39bdb2- -0x157,_0x4f5f8c);}try{const response=await this[_0x50742f(0x22a,0x1cf)][_0x50742f(0x1ed,0x1b4)]('/admin/v1/workspace/custom-database/test-connection',_0x585b25,{'headers':this[_0x50742f(0xe1,0x136)]?{'X-Workspace-ID':this['workspaceId']}:{}});return response[_0x50742f(0xf1,0x158)];}catch(_0x182714){return{'success':![],'message':_0x182714?.['message']||'Failed\x20to\x20test\x20connection'};}}async[_0xf108a4(0x48b,0x42f)](_0x1e09c3){function _0x336439(_0x469130,_0xbe2dfd){return _0x32c5(_0xbe2dfd-0x31,_0x469130);}if(!this[_0x336439(0x3d2,0x2be)])throw new Error('Workspace ID is required to configure custom database');const response=await this[_0x336439(0x312,0x357)]['post']('/admin/v1/workspace/custom-database',{'workspaceId':this[_0x336439(0x1cf,0x2be)],..._0x1e09c3},{'headers':{'X-Workspace-ID':this['workspaceId']}}),config=response[_0x336439(0x2a2,0x2e0)][_0x336439(0x505,0x429)];return this['detectedConfig']={'hasCustomDatabase':!![],'config':config,'credentials':_0x1e09c3},config;}async[_0xf108a4(0x648,0x531)](){if(!this['workspaceId'])throw new Error('Workspace ID is required to remove custom database');function _0x4a3ff6(_0x23e5f1,_0x1f2d8a){return _0x32c5(_0x1f2d8a- -0xcf,_0x23e5f1);}await this['httpClient']['delete']('/admin/v1/workspace/custom-database',{'headers':{'X-Workspace-ID':this[_0x4a3ff6(0xab,0x1be)]}}),this['detectedConfig']={'hasCustomDatabase':![]};}['getDetectedConfig'](){return this['detectedConfig'];}[_0xf108a4(0x459,0x44e)](){function _0x220e29(_0x366049,_0x24e345){return _0x32c5(_0x24e345-0x31b,_0x366049);}return this[_0x220e29(0x660,0x674)]?.[_0x220e29(0x4e7,0x609)]??![];}[_0xf108a4(0x3a3,0x316)](){return this['detectedConfig']?.['credentials'];}['setWorkspaceId'](_0x53507f){this[_0x455ebd(0x3eb,0x4a9)]=_0x53507f;function _0x455ebd(_0xf21a95,_0xcdc7a5){return _0x32c5(_0xf21a95-0x15e,_0xcdc7a5);}this['detectedConfig']=undefined;}[_0xf108a4(0x5e1,0x4ea)](){return this['workspaceId'];}[_0xf108a4(0x2da,0x323)](){function _0x5940b1(_0x9dab3,_0x203451){return _0x32c5(_0x203451-0x158,_0x9dab3);}return{'workspaceId':this['workspaceId'],'hasConfig':this[_0x5940b1(0x3fd,0x446)](),'configDetails':this['detectedConfig']?.['credentials']?{'host':this[_0x5940b1(0x5c2,0x4b1)][_0x5940b1(0x404,0x3b8)]['host'],'port':this['detectedConfig'][_0x5940b1(0x2f0,0x3b8)][_0x5940b1(0x478,0x43f)],'database':this['detectedConfig']['credentials']['database'],'schema':this[_0x5940b1(0x424,0x4b1)][_0x5940b1(0x345,0x3b8)][_0x5940b1(0x4fa,0x433)]||'public','sslEnabled':this[_0x5940b1(0x51d,0x4b1)]['credentials']['sslEnabled']||![]}:undefined};}}class DatabaseClient{constructor(_0x3a611b,_0x40a1fe){this['httpClient']=_0x3a611b,this['customDatabaseManager']=new CustomDatabaseManager(_0x3a611b,_0x40a1fe);}['from'](_0x5957e3){function _0x26f4c3(_0x4cd6c3,_0x204191){return _0x32c5(_0x4cd6c3-0x361,_0x204191);}return new QueryBuilder(this[_0x26f4c3(0x687,0x587)],_0x5957e3,this[_0x26f4c3(0x6fd,0x78e)],this[_0x26f4c3(0x5ca,0x642)]['getWorkspaceId']());}['rpc'](_0x162bb5,_0x927702){function _0x4a2785(_0x27bc3e,_0x45ece2){return _0x32c5(_0x45ece2-0x30d,_0x27bc3e);}return this[_0x4a2785(0x622,0x633)]['post'](_0x4a2785(0x4fe,0x5d1)+_0x162bb5,_0x927702);}[_0xf108a4(0x4cb,0x43b)](_0x371128){const _0x53edae=new DatabaseClient(this['httpClient'],this['customDatabaseManager'][_0x48be77(0x24c,0x29a)]());_0x53edae['currentSchema']=_0x371128;function _0x48be77(_0x1a4523,_0x33b3b4){return _0x32c5(_0x1a4523- -0x13e,_0x33b3b4);}return _0x53edae['customDatabaseManager']=this['customDatabaseManager'],_0x53edae;}async['detectCustomDatabase'](){function _0x4f7ae6(_0x17d5bb,_0x1a6caa){return _0x32c5(_0x1a6caa- -0x339,_0x17d5bb);}return this['customDatabaseManager'][_0x4f7ae6(-0xa5,-0x56)]();}async['testCustomConnection'](_0x2ebe84){function _0x23bd0f(_0x1257c6,_0xf33cb3){return _0x32c5(_0x1257c6-0x306,_0xf33cb3);}return this['customDatabaseManager'][_0x23bd0f(0x681,0x6fb)](_0x2ebe84);}async['configureCustomDatabase'](_0x3c4dc6){return this['customDatabaseManager']['configureCustomDatabase'](_0x3c4dc6);}async[_0xf108a4(0x454,0x531)](){function _0x1ece59(_0x4c0fb3,_0x3d389a){return _0x32c5(_0x3d389a- -0xee,_0x4c0fb3);}return this['customDatabaseManager'][_0x1ece59(0x380,0x2e3)]();}[_0xf108a4(0x302,0x34c)](){function _0x1db6ac(_0x48de30,_0x1025fb){return _0x32c5(_0x48de30- -0x397,_0x1025fb);}return this['customDatabaseManager'][_0x1db6ac(-0xa9,0x6)]();}['getCustomDatabaseStatus'](){function _0x220a1e(_0x42a657,_0x23d599){return _0x32c5(_0x42a657-0x181,_0x23d599);}return this[_0x220a1e(0x3ea,0x4f7)][_0x220a1e(0x344,0x3d0)]();}[_0xf108a4(0x472,0x3c2)](_0x21e713){this['customDatabaseManager']['setWorkspaceId'](_0x21e713);}async['initialize'](){function _0x67cdfa(_0xb0cb7a,_0x1d4a49){return _0x32c5(_0xb0cb7a-0xc8,_0x1d4a49);}try{await this[_0x67cdfa(0x331,0x39b)]['detectCustomDatabase']();}catch(_0x5470d6){console[_0x67cdfa(0x3c7,0x32e)]('Failed to initialize custom database detection:',_0x5470d6);}}}class StorageBucket{constructor(_0x58fd72,bucketId){this['httpClient']=_0x58fd72,this['bucketId']=bucketId;}async['upload'](_0x81f53,_0x14cff7,_0x5f0d6d){function _0x3a0dbc(_0x5267f8,_0x16ba6f){return _0x32c5(_0x5267f8- -0x166,_0x16ba6f);}try{const _0x5a5cf8=new FormData();if(_0x14cff7 instanceof File)_0x5a5cf8[_0x3a0dbc(0xdb,0x1d3)](_0x3a0dbc(0x244,0x18a),_0x14cff7);else{if(_0x14cff7 instanceof Blob)_0x5a5cf8[_0x3a0dbc(0xdb,0x149)](_0x3a0dbc(0x244,0x18a),_0x14cff7,_0x81f53);else{if(_0x14cff7 instanceof ArrayBuffer)_0x5a5cf8['append'](_0x3a0dbc(0x244,0x227),new Blob([_0x14cff7]),_0x81f53);else typeof _0x14cff7==='string'&&_0x5a5cf8['append'](_0x3a0dbc(0x244,0x2ac),new Blob([_0x14cff7],{'type':'text/plain'}),_0x81f53);}}_0x5a5cf8[_0x3a0dbc(0xdb,-0x3)]('path',_0x81f53);_0x5f0d6d?.[_0x3a0dbc(0x16f,0x213)]&&_0x5a5cf8[_0x3a0dbc(0xdb,-0x16)]('cacheControl',_0x5f0d6d[_0x3a0dbc(0x16f,0x125)]);_0x5f0d6d?.[_0x3a0dbc(0x67,0x15)]&&_0x5a5cf8[_0x3a0dbc(0xdb,0x1dc)](_0x3a0dbc(0x67,0x12f),_0x5f0d6d[_0x3a0dbc(0x67,0xa2)]);_0x5f0d6d?.['metadata']&&_0x5a5cf8['append']('metadata',JSON[_0x3a0dbc(0x137,0x224)](_0x5f0d6d['metadata']));const _0x32c4bd=_0x3a0dbc(0x58,0x76)+this[_0x3a0dbc(0x294,0x352)]+'/files'+(_0x5f0d6d?.[_0x3a0dbc(0x187,0x2a0)]?_0x3a0dbc(0x150,0x264):''),response=await this[_0x3a0dbc(0x1c0,0x29d)]['post'](_0x32c4bd,_0x5a5cf8,{'headers':{'Content-Type':_0x3a0dbc(0x135,0x200)}});return{'data':response[_0x3a0dbc(0x149,0x1ae)],'error':null};}catch(_0xe44167){return{'data':null,'error':_0xe44167 instanceof EBaaSError?_0xe44167:new EBaaSError(_0xe44167 instanceof Error?_0xe44167[_0x3a0dbc(0x1e9,0x1e5)]:_0x3a0dbc(0x250,0x1a5),0x0,_0xe44167)};}}async[_0xf108a4(0x439,0x547)](_0x3c1352,_0x2ab2ec){function _0x4d0eb6(_0x9e17e0,_0x3d6eee){return _0x32c5(_0x9e17e0-0x1ad,_0x3d6eee);}try{const _0x1d50c5=new URLSearchParams();_0x2ab2ec?.['transform']&&Object['entries'](_0x2ab2ec['transform'])['forEach'](([_0x49ad51,_0xf28d68])=>{_0xf28d68!==undefined&&_0x1d50c5['append'](_0x49ad51,String(_0xf28d68));});const _0x3d7d9b='/storage/buckets/'+this['bucketId']+'/files/'+_0x3c1352+(_0x1d50c5['toString']()?'?'+_0x1d50c5['toString']():''),response=await this[_0x4d0eb6(0x4d3,0x535)]['get'](_0x3d7d9b,{'responseType':'blob'});return{'data':response['data'],'error':null};}catch(_0x1cf9a1){return{'data':null,'error':_0x1cf9a1 instanceof EBaaSError?_0x1cf9a1:new EBaaSError(_0x1cf9a1 instanceof Error?_0x1cf9a1[_0x4d0eb6(0x4fc,0x475)]:_0x4d0eb6(0x3d5,0x426),0x0,_0x1cf9a1)};}}async['list'](_0x225253,_0x9f0629){function _0x11de57(_0x3d586a,_0x44f2ce){return _0x32c5(_0x44f2ce- -0x3a2,_0x3d586a);}try{const _0xe7b6c8=new URLSearchParams();_0x225253&&_0xe7b6c8[_0x11de57(-0xf7,-0x161)]('prefix',_0x225253);_0x9f0629?.[_0x11de57(-0x172,-0x60)]&&_0xe7b6c8['append']('limit',String(_0x9f0629['limit']));_0x9f0629?.['offset']&&_0xe7b6c8['append']('offset',String(_0x9f0629['offset']));_0x9f0629?.['sortBy']&&_0xe7b6c8[_0x11de57(-0x283,-0x161)](_0x11de57(-0x10d,-0x180),JSON[_0x11de57(-0x3a,-0x105)](_0x9f0629['sortBy']));_0x9f0629?.['search']&&_0xe7b6c8[_0x11de57(-0x18e,-0x161)]('search',_0x9f0629['search']);const _0x4e455b='/storage/buckets/'+this['bucketId']+_0x11de57(-0x1d5,-0xc8)+(_0xe7b6c8['toString']()?'?'+_0xe7b6c8[_0x11de57(-0x1d8,-0x123)]():''),response=await this[_0x11de57(-0xc1,-0x7c)][_0x11de57(-0x68,-0x8a)](_0x4e455b);return{'data':response['data'],'error':null};}catch(_0x570590){return{'data':null,'error':_0x570590 instanceof EBaaSError?_0x570590:new EBaaSError(_0x570590 instanceof Error?_0x570590['message']:'Failed\x20to\x20list\x20files',0x0,_0x570590)};}}async['remove'](_0x5ba3dd){function _0x4b7c43(_0x1fa241,_0x1f2e53){return _0x32c5(_0x1fa241-0x360,_0x1f2e53);}try{const response=await this['httpClient']['delete']('/storage/buckets/'+this[_0x4b7c43(0x75a,0x7ec)]+_0x4b7c43(0x63a,0x66e),{'data':{'paths':_0x5ba3dd}});return{'data':response['data'],'error':null};}catch(_0x424644){return{'data':null,'error':_0x424644 instanceof EBaaSError?_0x424644:new EBaaSError(_0x424644 instanceof Error?_0x424644[_0x4b7c43(0x6af,0x678)]:_0x4b7c43(0x52b,0x4e9),0x0,_0x424644)};}}async[_0xf108a4(0x3df,0x384)](fromPath,_0xbee865){function _0x331521(_0x3240e3,_0x409ae9){return _0x32c5(_0x409ae9-0x2dc,_0x3240e3);}try{const response=await this[_0x331521(0x5b9,0x602)]['post']('/storage/buckets/'+this[_0x331521(0x79e,0x6d6)]+_0x331521(0x623,0x609),{'sourceKey':fromPath,'destinationKey':_0xbee865});return{'data':response[_0x331521(0x505,0x58b)],'error':null};}catch(_0x5815ce){return{'data':null,'error':_0x5815ce instanceof EBaaSError?_0x5815ce:new EBaaSError(_0x5815ce instanceof Error?_0x5815ce['message']:'Failed\x20to\x20move\x20file',0x0,_0x5815ce)};}}async[_0xf108a4(0x459,0x442)](fromPath,_0x9d32aa){function _0x14c7ff(_0x225887,_0x3086d5){return _0x32c5(_0x225887- -0xb2,_0x3086d5);}try{const response=await this[_0x14c7ff(0x274,0x258)][_0x14c7ff(0x259,0x27d)](_0x14c7ff(0x10c,0x14c)+this[_0x14c7ff(0x348,0x3a2)]+_0x14c7ff(0x210,0x113),{'sourceKey':fromPath,'destinationKey':_0x9d32aa});return{'data':response[_0x14c7ff(0x1fd,0x2f6)],'error':null};}catch(_0x1f49d6){return{'data':null,'error':_0x1f49d6 instanceof EBaaSError?_0x1f49d6:new EBaaSError(_0x1f49d6 instanceof Error?_0x1f49d6['message']:_0x14c7ff(0x25f,0x1a7),0x0,_0x1f49d6)};}}async[_0xf108a4(0x2e1,0x3ba)](_0x30a381,_0x22918f,_0x3ed5c8){function _0xb3a1b5(_0x2596c9,_0x2e5ba9){return _0x32c5(_0x2e5ba9- -0x17,_0x2596c9);}try{const response=await this['httpClient'][_0xb3a1b5(0x1de,0x2f4)]('/storage/buckets/'+this['bucketId']+'/files/'+_0x30a381+_0xb3a1b5(0x1bb,0x26d),{'expiresIn':_0x22918f,..._0x3ed5c8});return{'data':response['data'],'error':null};}catch(_0x597a60){return{'data':null,'error':_0x597a60 instanceof EBaaSError?_0x597a60:new EBaaSError(_0x597a60 instanceof Error?_0x597a60['message']:'Failed\x20to\x20create\x20signed\x20URL',0x0,_0x597a60)};}}['getPublicUrl'](_0x353148,_0x35f0fa){const _0x34c728=new URLSearchParams();function _0x507cae(_0x1029c4,_0xbd4377){return _0x32c5(_0xbd4377-0x3be,_0x1029c4);}_0x35f0fa?.['transform']&&Object['entries'](_0x35f0fa[_0x507cae(0x5b4,0x5bb)])[_0x507cae(0x6e6,0x644)](([_0x7b28f0,_0x219321])=>{function _0xa0eefb(_0x55e05e,_0xd5d560){return _0x32c5(_0x55e05e-0x271,_0xd5d560);}_0x219321!==undefined&&_0x34c728[_0xa0eefb(0x4b2,0x3d3)](_0x7b28f0,String(_0x219321));});const _0x246fae=this['httpClient'][_0x507cae(0x6ad,0x623)]||'',_0x5de95e=_0x246fae+_0x507cae(0x631,0x57c)+this['bucketId']+_0x507cae(0x4b7,0x5b2)+_0x353148+(_0x34c728[_0x507cae(0x5b3,0x63d)]()?'?'+_0x34c728[_0x507cae(0x562,0x63d)]():'');return{'data':{'publicUrl':_0x5de95e}};}async['getFileInfo'](_0x34eaf6){function _0x5b7390(_0x1e4aec,_0x46d469){return _0x32c5(_0x1e4aec- -0x356,_0x46d469);}try{const response=await this[_0x5b7390(-0x30,-0x7d)]['get'](_0x5b7390(-0x198,-0x1be)+this[_0x5b7390(0xa4,0x1a2)]+'/files/'+_0x34eaf6+_0x5b7390(-0xde,-0x135));return{'data':response[_0x5b7390(-0xa7,-0x1ca)],'error':null};}catch(_0x1761ac){return{'data':null,'error':_0x1761ac instanceof EBaaSError?_0x1761ac:new EBaaSError(_0x1761ac instanceof Error?_0x1761ac[_0x5b7390(-0x7,0x103)]:_0x5b7390(0x71,-0x22),0x0,_0x1761ac)};}}async['updateFileMetadata'](_0x1efec3,metadata){function _0x1b33e7(_0x42f673,_0x155367){return _0x32c5(_0x42f673-0x162,_0x155367);}try{const response=await this[_0x1b33e7(0x488,0x518)][_0x1b33e7(0x37b,0x2f0)](_0x1b33e7(0x320,0x38f)+this[_0x1b33e7(0x55c,0x474)]+_0x1b33e7(0x356,0x234)+_0x1efec3+_0x1b33e7(0x4a1,0x576),{'metadata':metadata});return{'data':response[_0x1b33e7(0x411,0x312)],'error':null};}catch(_0x4e0d9c){return{'data':null,'error':_0x4e0d9c instanceof EBaaSError?_0x4e0d9c:new EBaaSError(_0x4e0d9c instanceof Error?_0x4e0d9c[_0x1b33e7(0x4b1,0x3c6)]:'Failed\x20to\x20update\x20file\x20metadata',0x0,_0x4e0d9c)};}}}class StorageClient{constructor(_0x1ca557){function _0x5cb037(_0x374096,_0x3e2b2f){return _0x32c5(_0x3e2b2f-0x3cd,_0x374096);}this[_0x5cb037(0x79e,0x6f3)]=_0x1ca557;}[_0xf108a4(0x333,0x39b)](bucketId){return new StorageBucket(this['httpClient'],bucketId);}async[_0xf108a4(0x2ae,0x3c1)](_0xc80fdf,_0x20496e){try{const response=await this['httpClient']['post']('/storage/buckets',{'id':_0xc80fdf,..._0x20496e});return{'data':response['data'],'error':null};}catch(_0x5ceea1){return{'data':null,'error':_0x5ceea1 instanceof EBaaSError?_0x5ceea1:new EBaaSError(_0x5ceea1 instanceof Error?_0x5ceea1['message']:'Failed\x20to\x20create\x20bucket',0x0,_0x5ceea1)};}}async[_0xf108a4(0x500,0x45e)](_0x1be2dd){function _0x2a45cd(_0x20a059,_0x734c7a){return _0x32c5(_0x734c7a-0x2d9,_0x20a059);}try{const response=await this[_0x2a45cd(0x68e,0x5ff)]['get']('/storage/buckets/'+_0x1be2dd);return{'data':response['data'],'error':null};}catch(_0x411237){return{'data':null,'error':_0x411237 instanceof EBaaSError?_0x411237:new EBaaSError(_0x411237 instanceof Error?_0x411237['message']:'Failed\x20to\x20get\x20bucket',0x0,_0x411237)};}}async[_0xf108a4(0x3ba,0x4d5)](){function _0x4ef550(_0x37931e,_0x2c2760){return _0x32c5(_0x2c2760- -0x2c8,_0x37931e);}try{const response=await this[_0x4ef550(0x179,0x5e)]['get']('/storage/buckets');return{'data':response['data'],'error':null};}catch(_0x238835){return{'data':null,'error':_0x238835 instanceof EBaaSError?_0x238835:new EBaaSError(_0x238835 instanceof Error?_0x238835['message']:_0x4ef550(0x86,-0xe),0x0,_0x238835)};}}async[_0xf108a4(0x493,0x4ad)](_0x42b6e8,_0x4a7683){function _0x5245f0(_0x8a957e,_0x16f86e){return _0x32c5(_0x8a957e-0x182,_0x16f86e);}try{const response=await this['httpClient'][_0x5245f0(0x39b,0x351)](_0x5245f0(0x340,0x462)+_0x42b6e8,_0x4a7683);return{'data':response['data'],'error':null};}catch(_0x1025b0){return{'data':null,'error':_0x1025b0 instanceof EBaaSError?_0x1025b0:new EBaaSError(_0x1025b0 instanceof Error?_0x1025b0['message']:'Failed\x20to\x20update\x20bucket',0x0,_0x1025b0)};}}async[_0xf108a4(0x419,0x3be)](_0x46085d){function _0x53010c(_0x556450,_0x2ac52d){return _0x32c5(_0x2ac52d-0x4a,_0x556450);}try{const response=await this['httpClient']['delete'](_0x53010c(0x30a,0x208)+_0x46085d);return{'data':response['data'],'error':null};}catch(_0x28259d){return{'data':null,'error':_0x28259d instanceof EBaaSError?_0x28259d:new EBaaSError(_0x28259d instanceof Error?_0x28259d[_0x53010c(0x2bf,0x399)]:'Failed\x20to\x20delete\x20bucket',0x0,_0x28259d)};}}async[_0xf108a4(0x312,0x3e1)](){try{const response=await this['httpClient']['get']('/storage/usage');return{'data':response['data'],'error':null};}catch(_0x38e796){return{'data':null,'error':_0x38e796 instanceof EBaaSError?_0x38e796:new EBaaSError(_0x38e796 instanceof Error?_0x38e796['message']:'Failed\x20to\x20get\x20storage\x20usage',0x0,_0x38e796)};}}}class RealtimeChannel extends _0x2ca273{constructor(_0x5e4dab,_0x109cba){super(),this[_0xf89ed1(0x67a,0x5fe)]=![],this['state']=_0xf89ed1(0x6d1,0x79e);function _0xf89ed1(_0x88c0c7,_0x3145ee){return _0x32c5(_0x88c0c7-0x3ce,_0x3145ee);}this[_0xf89ed1(0x69e,0x667)]=new Map(),this['topic']=_0x5e4dab,this[_0xf89ed1(0x5fd,0x6ca)]=_0x109cba;}[_0xf108a4(0x441,0x45b)](_0xbf94b6){!this['joinedOnce']&&(this['joinedOnce']=!![],this['_join']());_0xbf94b6&&this['on'](_0x15f006(-0x5a,0x42),_0xbf94b6);function _0x15f006(_0x11a471,_0x45482f){return _0x32c5(_0x45482f- -0x216,_0x11a471);}return this;}['onPostgresChanges'](filter,_0x500207){function _0x41f20e(_0x56e316,_0x43c0a1){return _0x32c5(_0x56e316-0x304,_0x43c0a1);}const _0x27f066='postgres_changes:'+JSON['stringify'](filter);super['on'](_0x27f066,_0x500207);const _0x46d752={'unsubscribe':()=>{function _0x3f585b(_0x1ef920,_0x2aac00){return _0x32c5(_0x1ef920- -0x1e0,_0x2aac00);}super['off'](_0x27f066,_0x500207),this['subscriptions'][_0x3f585b(0x55,0x86)](_0x27f066);}};return this[_0x41f20e(0x5d4,0x4cf)][_0x41f20e(0x6e6,0x667)](_0x27f066,_0x46d752),this[_0x41f20e(0x533,0x4f0)]?.[_0x41f20e(0x4ee,0x4a5)]&&this[_0x41f20e(0x63c,0x6f7)]===_0x41f20e(0x65f,0x605)&&this[_0x41f20e(0x533,0x552)][_0x41f20e(0x5fe,0x696)]('subscribe_postgres_changes',{'topic':this['topic'],'filter':filter,'ref':this['makeRef']()}),_0x46d752;}['onBroadcast'](filter,_0x2d2c71){const _0x16ccee='broadcast:'+JSON['stringify'](filter);super['on'](_0x16ccee,_0x2d2c71);function _0x264a59(_0x196d0a,_0x2f7018){return _0x32c5(_0x2f7018- -0x1a2,_0x196d0a);}const _0x14233d={'unsubscribe':()=>{function _0x49d51d(_0x122a29,_0x9617c0){return _0x32c5(_0x122a29-0x80,_0x9617c0);}super[_0x49d51d(0x28b,0x1f7)](_0x16ccee,_0x2d2c71),this['subscriptions']['delete'](_0x16ccee);}};return this[_0x264a59(0x102,0x12e)]['set'](_0x16ccee,_0x14233d),_0x14233d;}[_0xf108a4(0x308,0x419)](filter,_0x4060ca){const _0x3fb100=_0x13c98e(0x5c1,0x53f)+JSON['stringify'](filter);function _0x13c98e(_0x4880c1,_0x3f2067){return _0x32c5(_0x3f2067-0x28e,_0x4880c1);}super['on'](_0x3fb100,_0x4060ca);const _0x1847a3={'unsubscribe':()=>{function _0x596c4d(_0x16cffb,_0x529023){return _0x32c5(_0x16cffb-0x31a,_0x529023);}super['off'](_0x3fb100,_0x4060ca),this[_0x596c4d(0x5ea,0x62d)][_0x596c4d(0x54f,0x46c)](_0x3fb100);}};return this['subscriptions']['set'](_0x3fb100,_0x1847a3),_0x1847a3;}[_0xf108a4(0x3aa,0x470)](_0x4ab46e){return new Promise(_0x44774e=>{function _0x21c0ba(_0x4415e7,_0x30dced){return _0x32c5(_0x30dced- -0x26a,_0x4415e7);}this[_0x21c0ba(-0x75,-0x3b)]?.['connected']&&this[_0x21c0ba(0x183,0xce)]==='joined'?(this[_0x21c0ba(0x1f,-0x3b)][_0x21c0ba(0x179,0x90)](_0x21c0ba(0x6,-0x49),{'topic':this[_0x21c0ba(-0x1e,-0x1b)],'event':_0x4ab46e[_0x21c0ba(0x141,0x125)],'payload':_0x4ab46e,'ref':this['makeRef']()}),_0x44774e('ok')):_0x44774e(_0x21c0ba(0x133,0x12d));});}[_0xf108a4(0x533,0x49d)](_0x4ddc06){return new Promise(_0x4ba3ef=>{function _0x27eb36(_0x589cc3,_0x285f02){return _0x32c5(_0x589cc3-0x9,_0x285f02);}this['socket']?.[_0x27eb36(0x1f3,0x159)]&&this[_0x27eb36(0x341,0x38b)]==='joined'?(this[_0x27eb36(0x238,0x20a)]['emit'](_0x27eb36(0x212,0x276),{'topic':this['topic'],'event':'track','payload':_0x4ddc06,'ref':this[_0x27eb36(0x400,0x505)]()}),_0x4ba3ef('ok')):_0x4ba3ef('error');});}['untrack'](){return new Promise(_0x214486=>{function _0x5e56f4(_0x3a74e6,_0x2bbaf7){return _0x32c5(_0x2bbaf7- -0x2b6,_0x3a74e6);}this[_0x5e56f4(0x62,-0x87)]?.['connected']&&this[_0x5e56f4(0x70,0x82)]===_0x5e56f4(0xe4,0xa5)?(this['socket']['emit'](_0x5e56f4(-0x125,-0xad),{'topic':this[_0x5e56f4(0x73,-0x67)],'event':_0x5e56f4(0x22b,0x140),'ref':this[_0x5e56f4(0x1e5,0x141)]()}),_0x214486('ok')):_0x214486(_0x5e56f4(0x14d,0xe1));});}[_0xf108a4(0x434,0x3f2)](){return new Promise(_0x2318b6=>{this['state']=_0x5820e6(0x3b7,0x45a),this['subscriptions'][_0x5820e6(0x2e0,0x228)](_0x29c9bf=>{_0x29c9bf['unsubscribe']();}),this[_0x5820e6(0x32a,0x3ef)][_0x5820e6(0x328,0x381)]();this[_0x5820e6(0x289,0x1e9)]?.[_0x5820e6(0x244,0x237)]&&this[_0x5820e6(0x289,0x37d)]['emit']('leave',{'topic':this[_0x5820e6(0x2a9,0x3a7)],'ref':this[_0x5820e6(0x451,0x3b4)]()});this[_0x5820e6(0x392,0x352)]='closed',this[_0x5820e6(0x3f0,0x4e6)]();function _0x5820e6(_0x1dd3e5,_0x3370e3){return _0x32c5(_0x1dd3e5-0x5a,_0x3370e3);}_0x2318b6('ok');});}['_join'](){if(this['state']===_0x1d4a60(0x4b7,0x3d3))return;this['state']=_0x1d4a60(0x3a1,0x2de);function _0x1d4a60(_0x2afaf4,_0xfff094){return _0x32c5(_0xfff094-0x76,_0x2afaf4);}this[_0x1d4a60(0x376,0x2a5)]?.[_0x1d4a60(0x36a,0x260)]&&(this['socket'][_0x1d4a60(0x468,0x370)](_0x1d4a60(0x3b4,0x3c4),{'topic':this['topic'],'ref':this['makeRef']()}),setTimeout(()=>{function _0x2d8daf(_0xb65f39,_0x1e7e52){return _0x32c5(_0xb65f39-0x326,_0x1e7e52);}this['state']===_0x2d8daf(0x58e,0x596)&&(this['state']=_0x2d8daf(0x681,0x5b5),this[_0x2d8daf(0x620,0x6ad)]('status','SUBSCRIBED'));},0x64));}['_rejoin'](){this['joinedOnce']&&(this['_join'](),this['subscriptions']['forEach']((_0x5b7ba3,_0x3024eb)=>{function _0x1253a2(_0x235056,_0x7b5421){return _0x32c5(_0x7b5421- -0xb0,_0x235056);}if(_0x3024eb['startsWith'](_0x1253a2(0x351,0x27e))){const filter=JSON['parse'](_0x3024eb['replace'](_0x1253a2(0x15b,0x27e),''));this[_0x1253a2(0x18d,0x17f)]?.['emit']('subscribe_postgres_changes',{'topic':this['topic'],'filter':filter,'ref':this[_0x1253a2(0x2fe,0x347)]()});}}));}[_0xf108a4(0x41b,0x441)](_0x2beda4,_0x83e8df){function _0x12350e(_0x3bd6fb,_0x59be22){return _0x32c5(_0x3bd6fb-0x108,_0x59be22);}if(_0x2beda4===_0x12350e(0x4e1,0x4cf)){const _0x32e1e5=_0x12350e(0x436,0x558)+JSON['stringify'](_0x83e8df[_0x12350e(0x46b,0x527)]||{});this['emit'](_0x32e1e5,_0x83e8df);}else{if(_0x2beda4===_0x12350e(0x329,0x228)){const _0x1b5fc0='broadcast:'+JSON['stringify']({'event':_0x83e8df[_0x12350e(0x497,0x42f)]});this['emit'](_0x1b5fc0,_0x83e8df);}else{if(_0x2beda4===_0x12350e(0x311,0x264)){const _0x3b0aa8='presence:'+JSON['stringify']({'event':_0x83e8df[_0x12350e(0x497,0x3db)]});this['emit'](_0x3b0aa8,_0x83e8df);}}}this['emit'](_0x2beda4,_0x83e8df);}['_setState'](_0x42c7e9){function _0x3d721b(_0x13be2d,_0x105fd4){return _0x32c5(_0x105fd4-0x2a,_0x13be2d);}this['state']=_0x42c7e9;let status;switch(_0x42c7e9){case'joined':status='SUBSCRIBED';break;case'errored':status='CHANNEL_ERROR';break;case'closed':status=_0x3d721b(0x31e,0x2e7);break;default:return;}this['emit'](_0x3d721b(0x1bc,0x282),status);}['makeRef'](){function _0x2cbadc(_0xf10070,_0x344fe3){return _0x32c5(_0x344fe3-0xcc,_0xf10070);}return Math[_0x2cbadc(0x4ce,0x45c)]()[_0x2cbadc(0x35b,0x34b)](0x24)['substring'](0x2,0xf);}['getState'](){function _0x35177a(_0x1edb14,_0x3715ad){return _0x32c5(_0x3715ad-0xfb,_0x1edb14);}return this[_0x35177a(0x545,0x433)];}}class WebSocketAdapter{constructor(){this['socket']=null;}async['connect'](_0x860ee0,_0x5b88ae){function _0x26e49b(_0x2f49fb,_0x46bcf3){return _0x32c5(_0x2f49fb- -0x18b,_0x46bcf3);}const {io:_0x3f8941}=await Promise[_0x26e49b(0x71,0x133)]()[_0x26e49b(0x1e0,0x301)](function(){return index;});return new Promise((_0x51ce3d,_0x25c89e)=>{this['socket']=_0x3f8941(_0x860ee0,_0x5b88ae),this['socket']['on']('connect',()=>_0x51ce3d()),this['socket']['on']('connect_error',_0x4d9cac=>_0x25c89e(_0x4d9cac));});}['disconnect'](){function _0x3b2687(_0x326119,_0x4a942f){return _0x32c5(_0x4a942f- -0xb3,_0x326119);}this['socket']&&(this['socket']['disconnect'](),this[_0x3b2687(0x6f,0x17c)]=null);}[_0xf108a4(0x50a,0x45a)](_0x443d8d,data){this['socket']?.['emit'](_0x443d8d,data);}['on'](_0x4a7d2a,_0x4bd8a4){function _0x3010f4(_0x114499,_0x14ea6c){return _0x32c5(_0x114499- -0x3da,_0x14ea6c);}this[_0x3010f4(-0x1ab,-0x297)]?.['on'](_0x4a7d2a,_0x4bd8a4);}['off'](_0x571e21,_0x20ba2e){function _0x5bf377(_0x190c50,_0x1f0f9f){return _0x32c5(_0x1f0f9f-0x34c,_0x190c50);}_0x20ba2e?this['socket']?.['off'](_0x571e21,_0x20ba2e):this['socket']?.[_0x5bf377(0x585,0x557)](_0x571e21);}get[_0xf108a4(0x340,0x34a)](){function _0x2dfc66(_0x201428,_0x501963){return _0x32c5(_0x501963-0x157,_0x201428);}return this[_0x2dfc66(0x2d0,0x386)]?.['connected']??![];}}class ReactNativeSocketAdapter{constructor(){function _0x55a343(_0x19e5e9,_0x360c29){return _0x32c5(_0x360c29- -0x37a,_0x19e5e9);}this[_0x55a343(-0x10e,-0x14b)]=null;}async['connect'](_0x109f0a,_0x33e588){function _0x24930f(_0x4532be,_0xb8fa43){return _0x32c5(_0x4532be-0x262,_0xb8fa43);}try{const {io:_0x52fadf}=await Promise[_0x24930f(0x45e,0x550)]()[_0x24930f(0x5cd,0x52e)](function(){return index;});return new Promise((_0x2fc1d1,_0x3544ad)=>{this['socket']=_0x52fadf(_0x109f0a,{..._0x33e588,'transports':[_0x3e776f(-0x13a,-0x190)],'upgrade':![],'autoConnect':!![]}),this[_0x3e776f(-0x19b,-0x15c)]['on'](_0x3e776f(0x32,0x13),()=>_0x2fc1d1());function _0x3e776f(_0xc7be91,_0x1d9545){return _0x32c5(_0x1d9545- -0x38b,_0xc7be91);}this[_0x3e776f(-0x1ed,-0x15c)]['on'](_0x3e776f(0x93,-0x4b),_0x5ba035=>_0x3544ad(_0x5ba035));});}catch(_0x45cfe8){throw new Error(_0x24930f(0x4f0,0x477));}}[_0xf108a4(0x559,0x4f1)](){function _0x346d7c(_0x3196b8,_0x2ef7f8){return _0x32c5(_0x2ef7f8-0xdd,_0x3196b8);}this[_0x346d7c(0x37e,0x30c)]&&(this[_0x346d7c(0x2ad,0x30c)]['disconnect'](),this[_0x346d7c(0x341,0x30c)]=null);}['emit'](_0xccfd47,data){function _0x19d32a(_0x5ad2c0,_0xc4e9f3){return _0x32c5(_0x5ad2c0- -0x1e7,_0xc4e9f3);}this[_0x19d32a(0x48,-0x14)]?.['emit'](_0xccfd47,data);}['on'](_0x26c2bc,_0x575267){function _0xa24cba(_0x56fb3c,_0x29c466){return _0x32c5(_0x29c466-0xa8,_0x56fb3c);}this[_0xa24cba(0x3e6,0x2d7)]?.['on'](_0x26c2bc,_0x575267);}['off'](_0x481fb4,_0x201435){function _0x43d03d(_0x26f922,_0xce9efa){return _0x32c5(_0xce9efa- -0x37e,_0x26f922);}_0x201435?this[_0x43d03d(-0xb1,-0x14f)]?.[_0x43d03d(-0x5f,-0x173)](_0x481fb4,_0x201435):this['socket']?.['off'](_0x481fb4);}get[_0xf108a4(0x3b3,0x34a)](){function _0x33038e(_0x3db483,_0xf5cbbf){return _0x32c5(_0x3db483-0x3ad,_0xf5cbbf);}return this[_0x33038e(0x5dc,0x4be)]?.[_0x33038e(0x597,0x603)]??![];}}function createSocketAdapter(){function _0x4870fb(_0x533a3a,_0x24342a){return _0x32c5(_0x533a3a-0x92,_0x24342a);}if(typeof window!==_0x4870fb(0x332,0x244)&&typeof document!=='undefined')return new WebSocketAdapter();else return typeof global!==_0x4870fb(0x332,0x2df)&&global['navigator']?.[_0x4870fb(0x2a8,0x280)]===_0x4870fb(0x3fa,0x3bf)?new ReactNativeSocketAdapter():new WebSocketAdapter();}class RealtimeClient{constructor(_0x40e328,_0x51d1eb,_0x264125={}){this[_0x46e1c6(-0x141,-0x19e)]=null,this[_0x46e1c6(-0x4b,-0xc7)]=new Map(),this[_0x46e1c6(-0xc3,-0x176)]=_0x46e1c6(-0x120,-0xb1),this['reconnectAttempts']=0x0,this['maxReconnectAttempts']=0x5;function _0x46e1c6(_0x3ec2ce,_0x33bbe1){return _0x32c5(_0x3ec2ce- -0x370,_0x33bbe1);}this[_0x46e1c6(-0x39,0x79)]=_0x40e328,this[_0x46e1c6(-0xa6,-0xd3)]=_0x51d1eb,this['options']={'heartbeatInterval':0x7530,'reconnectInterval':0x1388,'maxReconnectAttempts':0x5,..._0x264125},this[_0x46e1c6(-0x100,-0x19d)]=createSocketAdapter();}['connect'](){return new Promise(async(_0x37e9c2,_0x38beca)=>{if(this['socketAdapter']['connected']){_0x37e9c2();return;}function _0x52668f(_0x1011c8,_0x1f03e9){return _0x32c5(_0x1011c8- -0x18a,_0x1f03e9);}this[_0x52668f(0x123,0x17b)]=_0x52668f(0x1cb,0xd0);try{await this['socketAdapter'][_0x52668f(0x214,0x1d1)](this[_0x52668f(0x1ad,0x24f)],{'auth':{'apikey':this[_0x52668f(0x140,0x195)]},'transports':['websocket'],'reconnection':!![],'reconnectionDelay':this['options'][_0x52668f(0x30,0x67)],'reconnectionAttempts':this[_0x52668f(0x252,0x1b0)][_0x52668f(0x17f,0x242)],...this[_0x52668f(0x252,0x345)][_0x52668f(0x4d,-0x22)]}),this[_0x52668f(0xa5,0x34)]=this[_0x52668f(0xe6,0x1f)]['socket'],this['socketAdapter']['on'](_0x52668f(0x214,0x236),()=>{this[_0x39ccc4(0xd8,0x53)]=_0x39ccc4(-0xe4,-0x70),this['reconnectAttempts']=0x0;function _0x39ccc4(_0x39964b,_0x33ecfe){return _0x32c5(_0x33ecfe- -0x25a,_0x39964b);}this['setupHeartbeat'](),_0x37e9c2();}),this['socketAdapter']['on'](_0x52668f(0x207,0x13a),()=>{this[_0x16db8e(-0x61,0xbe)]=_0x16db8e(-0xba,0x61);function _0x16db8e(_0x5104e8,_0x1542de){return _0x32c5(_0x1542de- -0x1ef,_0x5104e8);}this['channels']['forEach'](channel=>{channel['_setState']('closed');});}),this[_0x52668f(0xe6,0x176)]['on']('connect_error',_0x229b84=>{function _0x2bb465(_0xcc817a,_0x2f7966){return _0x32c5(_0x2f7966-0xb2,_0xcc817a);}this[_0x2bb465(0x2f6,0x35f)]=_0x2bb465(0x37b,0x449),this[_0x2bb465(0x3ba,0x476)]++,this[_0x2bb465(0x4ee,0x476)]>=this[_0x2bb465(0x29f,0x3bb)]&&_0x38beca(new Error('Failed\x20to\x20connect\x20after\x20'+this['maxReconnectAttempts']+'\x20attempts:\x20'+_0x229b84['message']));}),this[_0x52668f(0xe6,0xc6)]['on'](_0x52668f(0x198,0x1bf),()=>{function _0x4fdf89(_0x1ac259,_0x2798c6){return _0x32c5(_0x2798c6- -0xc4,_0x1ac259);}this[_0x4fdf89(0x2ea,0x1e9)]=_0x4fdf89(0x186,0x126),this['reconnectAttempts']=0x0,this[_0x4fdf89(0x19d,0x261)][_0x4fdf89(0x19b,0x1c2)](channel=>{channel['_rejoin']();});}),this['socketAdapter']['on']('postgres_changes',_0x2a8223=>{function _0x35eada(_0x16edf7,_0x3895ea){return _0x32c5(_0x3895ea-0x235,_0x16edf7);}const channel=this['channels'][_0x35eada(0x440,0x54d)](_0x2a8223[_0x35eada(0x421,0x484)]);channel&&channel[_0x35eada(0x622,0x516)]('postgres_changes',_0x2a8223);}),this[_0x52668f(0xe6,0x1c6)]['on']('broadcast',_0x2d1fd8=>{const channel=this['channels']['get'](_0x2d1fd8['topic']);function _0x4792dc(_0x347eb5,_0x2aa4d1){return _0x32c5(_0x2aa4d1-0x2bb,_0x347eb5);}channel&&channel['_trigger'](_0x4792dc(0x53a,0x4dc),_0x2d1fd8);}),this['socketAdapter']['on'](_0x52668f(0x7f,0xb9),_0x2f3202=>{const channel=this['channels'][_0x3abb70(0x485,0x40d)](_0x2f3202[_0x3abb70(0x3bc,0x378)]);function _0x3abb70(_0x4aa8f9,_0x1d2297){return _0x32c5(_0x4aa8f9-0x16d,_0x1d2297);}channel&&channel[_0x3abb70(0x44e,0x345)]('presence',_0x2f3202);});}catch(_0x41cc38){this[_0x52668f(0x123,0x164)]='error',_0x38beca(_0x41cc38);}});}['disconnect'](){this['socketAdapter']&&(this['socketAdapter']['disconnect'](),this['socket']=null);function _0x328b64(_0x29bb58,_0x35e921){return _0x32c5(_0x29bb58- -0x1a0,_0x35e921);}this[_0x328b64(0x10d,0x22)]=_0x328b64(0xb0,-0x7),this[_0x328b64(0x185,0xf1)][_0x328b64(0x12e,0x19b)]();}['channel'](_0x4ab1d9){if(this[_0x482cfc(-0xc7,-0x17)][_0x482cfc(0x3d,0xb1)](_0x4ab1d9))return this['channels']['get'](_0x4ab1d9);const channel=new RealtimeChannel(_0x4ab1d9,this['socket']);this['channels']['set'](_0x4ab1d9,channel);this['connectionState']===_0x482cfc(-0x4a,-0x152)&&channel['_join']();function _0x482cfc(_0x4150bf,_0x247920){return _0x32c5(_0x247920- -0x33c,_0x4150bf);}return channel;}['removeChannel'](channel){function _0x1c35e3(_0x26c30b,_0x1c2a1d){return _0x32c5(_0x1c2a1d-0x49,_0x26c30b);}const _0x5915d4=channel[_0x1c35e3(0x1c9,0x298)];this['channels']['has'](_0x5915d4)&&(this['channels'][_0x1c35e3(0x29c,0x27e)](_0x5915d4),channel[_0x1c35e3(0x3b1,0x2db)]());}['removeAllChannels'](){this['channels'][_0x48821b(0x52f,0x54b)](channel=>{channel['unsubscribe']();});function _0x48821b(_0x3a710f,_0x58978d){return _0x32c5(_0x58978d-0x2c5,_0x3a710f);}this['channels']['clear']();}['getChannels'](){function _0x1dc542(_0x4a38e1,_0x41fe77){return _0x32c5(_0x41fe77-0xcd,_0x4a38e1);}return Array[_0x1dc542(0x1f6,0x308)](this['channels']['values']());}['isConnected'](){function _0x38103a(_0x582ecb,_0x2d4334){return _0x32c5(_0x2d4334- -0x16d,_0x582ecb);}return this[_0x38103a(0x8a,0x140)]===_0x38103a(0xdc,0x7d)&&this['socketAdapter'][_0x38103a(0x7c,0x7d)];}[_0xf108a4(0x566,0x4de)](){function _0x5874f0(_0x28c465,_0x1cb02a){return _0x32c5(_0x1cb02a-0x247,_0x28c465);}return this[_0x5874f0(0x59f,0x4f4)];}[_0xf108a4(0x4fd,0x423)](_0x7891dd){const _0x408fa5=()=>_0x7891dd(this[_0x1fd164(0x1ef,0x279)]);function _0x1fd164(_0x4fe78f,_0x5b0584){return _0x32c5(_0x5b0584- -0x34,_0x4fe78f);}return this[_0x1fd164(0x236,0x23c)]&&(this[_0x1fd164(0x263,0x23c)]['on']('connect',()=>{function _0xb587c2(_0x33a23b,_0x1c21a4){return _0x32c5(_0x33a23b-0x35c,_0x1c21a4);}this[_0xb587c2(0x609,0x676)]=_0xb587c2(0x546,0x5bb),_0x408fa5();}),this[_0x1fd164(0x2dc,0x23c)]['on'](_0x1fd164(0x2f8,0x35d),()=>{function _0x38f76e(_0x63a988,_0x2c0057){return _0x32c5(_0x63a988-0x2b6,_0x2c0057);}this['connectionState']=_0x38f76e(0x506,0x561),_0x408fa5();}),this[_0x1fd164(0x2c8,0x23c)]['on'](_0x1fd164(0x32b,0x30c),()=>{function _0xe2e7c6(_0x26986b,_0xc21b73){return _0x32c5(_0xc21b73-0xb7,_0x26986b);}this[_0xe2e7c6(0x461,0x364)]=_0xe2e7c6(0x3a3,0x44e),_0x408fa5();})),()=>{function _0x10854a(_0x5858ab,_0x2516ea){return _0x32c5(_0x5858ab-0xa1,_0x2516ea);}this[_0x10854a(0x311,0x29e)]&&(this['socketAdapter'][_0x10854a(0x2ac,0x26f)]('connect',_0x408fa5),this[_0x10854a(0x311,0x3ee)]['off'](_0x10854a(0x432,0x373),_0x408fa5),this[_0x10854a(0x311,0x2cf)]['off']('connect_error',_0x408fa5));};}[_0xf108a4(0x425,0x460)](){function _0x460bce(_0xbbaf64,_0x369291){return _0x32c5(_0x369291-0x86,_0xbbaf64);}if(!this[_0x460bce(0x3cc,0x462)]['heartbeatInterval']||!this[_0x460bce(0x243,0x2f6)])return;const interval=setInterval(()=>{function _0x51c7f4(_0x3efb3f,_0x200c10){return _0x32c5(_0x200c10-0x252,_0x3efb3f);}this[_0x51c7f4(0x540,0x4c2)]?.[_0x51c7f4(0x3d4,0x43c)]?this[_0x51c7f4(0x42e,0x4c2)][_0x51c7f4(0x5fe,0x54c)]('heartbeat',{'timestamp':Date['now']()}):clearInterval(interval);},this['options']['heartbeatInterval']);}['_getSocket'](){return this['socket'];}}class FunctionsClient{constructor(_0x115722){function _0x2d166a(_0x10aafe,_0x919dc9){return _0x32c5(_0x10aafe-0x374,_0x919dc9);}this[_0x2d166a(0x69a,0x664)]=_0x115722;}async['invoke'](_0x5ba246,_0x327b28){function _0x10a956(_0x101d0d,_0xea5639){return _0x32c5(_0x101d0d-0x264,_0xea5639);}try{const _0x332797=_0x327b28?.[_0x10a956(0x453,0x396)]||'POST',headers={'Content-Type':'application/json',..._0x327b28?.[_0x10a956(0x56c,0x4e5)]};let response;const _0x5345fe='/functions/v1/'+_0x5ba246;switch(_0x332797['toUpperCase']()){case'GET':response=await this['httpClient']['get'](_0x5345fe,{'headers':headers,'params':_0x327b28?.[_0x10a956(0x494,0x507)]});break;case'POST':response=await this[_0x10a956(0x58a,0x59c)]['post'](_0x5345fe,_0x327b28?.[_0x10a956(0x494,0x389)],{'headers':headers});break;case'PUT':response=await this['httpClient']['put'](_0x5345fe,_0x327b28?.['body'],{'headers':headers});break;case'PATCH':response=await this['httpClient']['patch'](_0x5345fe,_0x327b28?.[_0x10a956(0x494,0x505)],{'headers':headers});break;case'DELETE':response=await this['httpClient'][_0x10a956(0x499,0x457)](_0x5345fe,{'headers':headers,'data':_0x327b28?.[_0x10a956(0x494,0x5a6)]});break;default:throw new EBaaSError('Unsupported\x20HTTP\x20method:\x20'+_0x332797,0x190);}return{'data':response['data'],'error':null};}catch(_0x2d9edd){return{'data':null,'error':_0x2d9edd instanceof EBaaSError?_0x2d9edd:new EBaaSError(_0x2d9edd instanceof Error?_0x2d9edd[_0x10a956(0x5b3,0x6c4)]:_0x10a956(0x555,0x4bc),0x0,_0x2d9edd)};}}async[_0xf108a4(0x43f,0x33d)](){function _0x36ff79(_0x499601,_0x220061){return _0x32c5(_0x499601-0xc2,_0x220061);}try{const response=await this[_0x36ff79(0x3e8,0x2c7)][_0x36ff79(0x3da,0x324)](_0x36ff79(0x42b,0x419));return{'data':response['data'],'error':null};}catch(_0x1c0158){return{'data':null,'error':_0x1c0158 instanceof EBaaSError?_0x1c0158:new EBaaSError(_0x1c0158 instanceof Error?_0x1c0158[_0x36ff79(0x411,0x46e)]:'Failed\x20to\x20list\x20functions',0x0,_0x1c0158)};}}async[_0xf108a4(0x3b0,0x478)](_0x23384f){function _0x480d62(_0x54d02c,_0x590315){return _0x32c5(_0x54d02c- -0x21e,_0x590315);}try{const response=await this['httpClient'][_0x480d62(0xfa,0xb0)]('/functions/v1/'+_0x23384f+_0x480d62(0x5a,0xa1));return{'data':response['data'],'error':null};}catch(_0x760838){return{'data':null,'error':_0x760838 instanceof EBaaSError?_0x760838:new EBaaSError(_0x760838 instanceof Error?_0x760838['message']:'Failed\x20to\x20get\x20function',0x0,_0x760838)};}}async['deploy'](_0x32943e,_0x3fd22d){function _0x4edf72(_0x2d0e87,_0x298020){return _0x32c5(_0x298020-0xbb,_0x2d0e87);}try{const _0xbef069=new FormData();if(_0x3fd22d[_0x4edf72(0x245,0x2b2)]instanceof File)_0xbef069[_0x4edf72(0x39f,0x2fc)]('code',_0x3fd22d['code']);else typeof _0x3fd22d['code']==='string'&&_0xbef069['append'](_0x4edf72(0x349,0x2b2),new Blob([_0x3fd22d[_0x4edf72(0x214,0x2b2)]],{'type':'text/plain'}),'index.ts');_0x3fd22d[_0x4edf72(0x2ef,0x3d2)]&&_0xbef069[_0x4edf72(0x218,0x2fc)]('entrypoint',_0x3fd22d['entrypoint']);_0x3fd22d[_0x4edf72(0x248,0x2ec)]&&_0xbef069['append']('env',JSON['stringify'](_0x3fd22d['env']));_0x3fd22d[_0x4edf72(0x339,0x2d8)]&&_0xbef069[_0x4edf72(0x37d,0x2fc)](_0x4edf72(0x257,0x2d8),JSON[_0x4edf72(0x25f,0x358)](_0x3fd22d['importMap']));_0x3fd22d[_0x4edf72(0x181,0x29c)]!==undefined&&_0xbef069[_0x4edf72(0x353,0x2fc)]('verify',String(_0x3fd22d['verify']));const response=await this[_0x4edf72(0x496,0x3e1)][_0x4edf72(0x446,0x3c6)]('/functions/v1/'+_0x32943e+'/deploy',_0xbef069,{'headers':{'Content-Type':_0x4edf72(0x2c5,0x356)}});return{'data':response['data'],'error':null};}catch(_0x14d3cb){return{'data':null,'error':_0x14d3cb instanceof EBaaSError?_0x14d3cb:new EBaaSError(_0x14d3cb instanceof Error?_0x14d3cb['message']:_0x4edf72(0x328,0x35e),0x0,_0x14d3cb)};}}async['delete'](_0x386186){function _0x5a96bd(_0x5bbcd9,_0x35c094){return _0x32c5(_0x5bbcd9-0x2f2,_0x35c094);}try{const response=await this['httpClient']['delete'](_0x5a96bd(0x4ae,0x4d9)+_0x386186);return{'data':response['data'],'error':null};}catch(_0x15b1cd){return{'data':null,'error':_0x15b1cd instanceof EBaaSError?_0x15b1cd:new EBaaSError(_0x15b1cd instanceof Error?_0x15b1cd[_0x5a96bd(0x641,0x70f)]:_0x5a96bd(0x5f6,0x6fb),0x0,_0x15b1cd)};}}async[_0xf108a4(0x513,0x46c)](_0x10c796,_0x303b24){function _0x5d678b(_0x2cb0fc,_0x11c717){return _0x32c5(_0x2cb0fc-0x344,_0x11c717);}try{const response=await this[_0x5d678b(0x66a,0x641)][_0x5d678b(0x55d,0x4c2)]('/functions/v1/'+_0x10c796+'/env',{'env':_0x303b24});return{'data':response[_0x5d678b(0x5f3,0x662)],'error':null};}catch(_0x45b088){return{'data':null,'error':_0x45b088 instanceof EBaaSError?_0x45b088:new EBaaSError(_0x45b088 instanceof Error?_0x45b088['message']:_0x5d678b(0x54c,0x4bd),0x0,_0x45b088)};}}async['getLogs'](_0x2ddb17,_0x5ed6c8){function _0x7cad3a(_0x11f327,_0x391c8c){return _0x32c5(_0x11f327- -0x183,_0x391c8c);}try{const _0x318645=new URLSearchParams();_0x5ed6c8?.['limit']&&_0x318645[_0x7cad3a(0xbe,0x8b)](_0x7cad3a(0x1bf,0x288),String(_0x5ed6c8[_0x7cad3a(0x1bf,0x25a)]));_0x5ed6c8?.['offset']&&_0x318645[_0x7cad3a(0xbe,-0x11)](_0x7cad3a(0x153,0x1f4),String(_0x5ed6c8['offset']));_0x5ed6c8?.[_0x7cad3a(0x18c,0x101)]&&_0x318645[_0x7cad3a(0xbe,0x5c)]('level',_0x5ed6c8['level']);const _0x5e279e=_0x7cad3a(0x39,0x13b)+_0x2ddb17+'/logs'+(_0x318645['toString']()?'?'+_0x318645['toString']():''),response=await this['httpClient'][_0x7cad3a(0x195,0xb3)](_0x5e279e);return{'data':response[_0x7cad3a(0x12c,0x13a)],'error':null};}catch(_0x3dfe71){return{'data':null,'error':_0x3dfe71 instanceof EBaaSError?_0x3dfe71:new EBaaSError(_0x3dfe71 instanceof Error?_0x3dfe71['message']:_0x7cad3a(0xfa,0x216),0x0,_0x3dfe71)};}}async[_0xf108a4(0x38f,0x324)](_0x10e6c5,_0x37bb62){function _0x125c68(_0x3eda95,_0x164018){return _0x32c5(_0x164018-0x21a,_0x3eda95);}try{const _0x26f9b5=new URLSearchParams();_0x37bb62?.[_0x125c68(0x61e,0x5d5)]&&_0x26f9b5['append']('period',_0x37bb62[_0x125c68(0x4ba,0x5d5)]);const _0x2db6ae='/functions/v1/'+_0x10e6c5+'/metrics'+(_0x26f9b5[_0x125c68(0x459,0x499)]()?'?'+_0x26f9b5[_0x125c68(0x49b,0x499)]():''),response=await this[_0x125c68(0x650,0x540)]['get'](_0x2db6ae);return{'data':response['data'],'error':null};}catch(_0x154851){return{'data':null,'error':_0x154851 instanceof EBaaSError?_0x154851:new EBaaSError(_0x154851 instanceof Error?_0x154851[_0x125c68(0x556,0x569)]:'Failed\x20to\x20get\x20function\x20metrics',0x0,_0x154851)};}}}class EBaaSClient{constructor(_0x2f1a61,_0x114807,_0x8bb5b0){this[_0x4e59b3(0x539,0x596)]=_0x8bb5b0,this['httpClient']=new HttpClient({'url':_0x2f1a61,'apiKey':_0x114807,'timeout':0x7530,'headers':_0x8bb5b0?.['global']?.['headers']}),this[_0x4e59b3(0x31d,0x408)]=new AuthClient(this['httpClient'],_0x8bb5b0?.['database']?.['workspaceId']),this['database']=new DatabaseClient(this['httpClient'],_0x8bb5b0?.[_0x4e59b3(0x46d,0x45c)]?.[_0x4e59b3(0x486,0x447)]),this[_0x4e59b3(0x3e6,0x3e4)]=new StorageClient(this['httpClient']),this['realtime']=new RealtimeClient(_0x2f1a61,_0x114807,_0x8bb5b0?.[_0x4e59b3(0x3b5,0x428)]),this[_0x4e59b3(0x561,0x49e)]=new FunctionsClient(this['httpClient']);function _0x4e59b3(_0x4a243c,_0xdca83a){return _0x32c5(_0xdca83a-0x1ba,_0x4a243c);}this['initializeCustomDatabase']();}['from'](_0x5f4279){function _0x5f2ba6(_0x41a995,_0x30109a){return _0x32c5(_0x30109a-0x3bc,_0x41a995);}return this[_0x5f2ba6(0x58d,0x65e)]['from'](_0x5f4279);}['rpc'](_0x5ab7fd,_0x5d3dc1){return this['database']['rpc'](_0x5ab7fd,_0x5d3dc1);}[_0xf108a4(0x46b,0x413)](_0x33b76a){function _0x30496a(_0x3acaf1,_0x496aa2){return _0x32c5(_0x496aa2- -0x2ad,_0x3acaf1);}return this[_0x30496a(-0xe1,-0x83)][_0x30496a(-0x188,-0x72)](_0x33b76a);}['channel'](_0x6b90d6){function _0x317417(_0x5ef490,_0x15d593){return _0x32c5(_0x15d593-0xfe,_0x5ef490);}return this[_0x317417(0x412,0x36c)][_0x317417(0x3ea,0x48a)](_0x6b90d6);}['invoke'](_0x263e37,_0x12447d){return this['functions']['invoke'](_0x263e37,_0x12447d);}async['initializeCustomDatabase'](){function _0x43d1c8(_0x292a51,_0x5b8be6){return _0x32c5(_0x5b8be6-0x180,_0x292a51);}if(this['options']?.[_0x43d1c8(0x3cb,0x422)]?.[_0x43d1c8(0x445,0x4a0)])try{await this[_0x43d1c8(0x441,0x422)][_0x43d1c8(0x42a,0x475)]();}catch(_0x42fe53){console['warn']('Failed to initialize custom database detection:',_0x42fe53);}}async['setWorkspaceId'](_0x4d8c6e){this[_0x5f2b0e(0x5bd,0x4b3)][_0x5f2b0e(0x5d1,0x58a)](_0x4d8c6e);function _0x5f2b0e(_0x50a26c,_0x39f386){return _0x32c5(_0x50a26c-0x36f,_0x39f386);}this[_0x5f2b0e(0x611,0x6db)][_0x5f2b0e(0x5d1,0x4e4)](_0x4d8c6e),this[_0x5f2b0e(0x74b,0x62e)]?.[_0x5f2b0e(0x611,0x6ff)]?.['autoDetectCustomDatabase']&&await this['database'][_0x5f2b0e(0x664,0x5ba)]();}async[_0xf108a4(0x4bb,0x42f)](_0x48b2e7){await this['database']['configureCustomDatabase'](_0x48b2e7);}[_0xf108a4(0x2bb,0x393)](){function _0x3b5c00(_0x3bc6df,_0x3b06bb){return _0x32c5(_0x3b06bb- -0x3c9,_0x3bc6df);}return this['database'][_0x3b5c00(-0x169,-0x196)]();}}function createClient(_0x3aeeb6,_0x361f80,_0x14a160){return new EBaaSClient(_0x3aeeb6,_0x361f80,_0x14a160);}const version=_0xf108a4(0x528,0x412),PACKET_TYPES=Object[_0xf108a4(0x2ed,0x3ab)](null);PACKET_TYPES['open']='0',PACKET_TYPES[_0xf108a4(0x43f,0x532)]='1',PACKET_TYPES[_0xf108a4(0x364,0x332)]='2',PACKET_TYPES[_0xf108a4(0x540,0x545)]='3',PACKET_TYPES[_0xf108a4(0x57a,0x4af)]='4',PACKET_TYPES['upgrade']='5',PACKET_TYPES['noop']='6';const PACKET_TYPES_REVERSE=Object[_0xf108a4(0x463,0x3ab)](null);Object['keys'](PACKET_TYPES)['forEach'](_0x5412e3=>{PACKET_TYPES_REVERSE[PACKET_TYPES[_0x5412e3]]=_0x5412e3;});const ERROR_PACKET={'type':_0xf108a4(0x4c8,0x4f7),'data':_0xf108a4(0x48b,0x3e8)},withNativeBlob$1=typeof Blob==='function'||typeof Blob!==_0xf108a4(0x3c3,0x400)&&Object[_0xf108a4(0x3b0,0x4b1)]['toString'][_0xf108a4(0x388,0x48a)](Blob)==='[object\x20BlobConstructor]',withNativeArrayBuffer$2=typeof ArrayBuffer==='function',isView$1=_0x4bed5f=>{function _0x17440e(_0x4e3422,_0x2de23b){return _0x32c5(_0x4e3422- -0x40,_0x2de23b);}return typeof ArrayBuffer['isView']==='function'?ArrayBuffer['isView'](_0x4bed5f):_0x4bed5f&&_0x4bed5f[_0x17440e(0x37c,0x316)]instanceof ArrayBuffer;},encodePacket=({type:_0x54de2e,data:data},supportsBinary,_0x4605a4)=>{if(withNativeBlob$1&&data instanceof Blob)return supportsBinary?_0x4605a4(data):encodeBlobAsBase64(data,_0x4605a4);else{if(withNativeArrayBuffer$2&&(data instanceof ArrayBuffer||isView$1(data)))return supportsBinary?_0x4605a4(data):encodeBlobAsBase64(new Blob([data]),_0x4605a4);}return _0x4605a4(PACKET_TYPES[_0x54de2e]+(data||''));},encodeBlobAsBase64=(data,_0x9c5cb9)=>{const _0xdd089f=new FileReader();_0xdd089f[_0x3217bd(0x46c,0x34b)]=function(){function _0x464364(_0x4310f4,_0x41e26f){return _0x32c5(_0x41e26f-0x19f,_0x4310f4);}const _0xc3028c=_0xdd089f[_0x464364(0x4f8,0x3e9)]['split'](',')[0x1];_0x9c5cb9('b'+(_0xc3028c||''));};function _0x3217bd(_0x41b201,_0x34b12b){return _0x32c5(_0x41b201-0x228,_0x34b12b);}return _0xdd089f[_0x3217bd(0x471,0x510)](data);};function toArray(data){function _0x35c2b9(_0x123930,_0x390ae2){return _0x32c5(_0x390ae2- -0x36,_0x123930);}if(data instanceof Uint8Array)return data;else return data instanceof ArrayBuffer?new Uint8Array(data):new Uint8Array(data[_0x35c2b9(0x401,0x386)],data['byteOffset'],data[_0x35c2b9(0x220,0x288)]);}let TEXT_ENCODER;function encodePacketToBinary(_0x309e6c,_0x5bfa2d){if(withNativeBlob$1&&_0x309e6c['data']instanceof Blob)return _0x309e6c[_0x2c1c1a(0xa7,-0x35)][_0x2c1c1a(-0x1c8,-0x10a)]()[_0x2c1c1a(0xb5,0x87)](toArray)['then'](_0x5bfa2d);else{if(withNativeArrayBuffer$2&&(_0x309e6c[_0x2c1c1a(-0xd6,-0x35)]instanceof ArrayBuffer||isView$1(_0x309e6c[_0x2c1c1a(0xd2,-0x35)])))return _0x5bfa2d(toArray(_0x309e6c['data']));}function _0x2c1c1a(_0x427d24,_0x141103){return _0x32c5(_0x141103- -0x2e4,_0x427d24);}encodePacket(_0x309e6c,![],_0x142967=>{!TEXT_ENCODER&&(TEXT_ENCODER=new TextEncoder()),_0x5bfa2d(TEXT_ENCODER['encode'](_0x142967));});}const chars='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',lookup$1=typeof Uint8Array===_0xf108a4(0x4fb,0x400)?[]:new Uint8Array(0x100);for(let i=0x0;i<chars[_0xf108a4(0x4c1,0x3f0)];i++){lookup$1[chars['charCodeAt'](i)]=i;}const decode$1=_0x200d2f=>{let bufferLength=_0x200d2f['length']*0.75,_0x12a29e=_0x200d2f[_0x280c69(-0x79,-0x166)],_0x1ee72c,_0x104fdb=0x0,_0x467928,_0x25432e,_0x3ccfcf,_0xafbd62;function _0x280c69(_0x16264c,_0x12dd61){return _0x32c5(_0x16264c- -0x309,_0x12dd61);}_0x200d2f[_0x200d2f['length']-0x1]==='='&&(bufferLength--,_0x200d2f[_0x200d2f[_0x280c69(-0x79,-0x7a)]-0x2]==='='&&bufferLength--);const _0x122fc7=new ArrayBuffer(bufferLength),_0x720e5a=new Uint8Array(_0x122fc7);for(_0x1ee72c=0x0;_0x1ee72c<_0x12a29e;_0x1ee72c+=0x4){_0x467928=lookup$1[_0x200d2f['charCodeAt'](_0x1ee72c)],_0x25432e=lookup$1[_0x200d2f[_0x280c69(0x7d,0x106)](_0x1ee72c+0x1)],_0x3ccfcf=lookup$1[_0x200d2f['charCodeAt'](_0x1ee72c+0x2)],_0xafbd62=lookup$1[_0x200d2f['charCodeAt'](_0x1ee72c+0x3)],_0x720e5a[_0x104fdb++]=_0x467928<<0x2|_0x25432e>>0x4,_0x720e5a[_0x104fdb++]=(_0x25432e&0xf)<<0x4|_0x3ccfcf>>0x2,_0x720e5a[_0x104fdb++]=(_0x3ccfcf&0x3)<<0x6|_0xafbd62&0x3f;}return _0x122fc7;},withNativeArrayBuffer$1=typeof ArrayBuffer===_0xf108a4(0x474,0x456),decodePacket=(_0x427622,binaryType)=>{if(typeof _0x427622!==_0x45d7fc(0xce,0x5))return{'type':_0x45d7fc(0x111,0x16),'data':mapBinary(_0x427622,binaryType)};const _0xb447d0=_0x427622['charAt'](0x0);if(_0xb447d0==='b')return{'type':_0x45d7fc(-0x2d,0x16),'data':decodeBase64Packet(_0x427622[_0x45d7fc(0x60,0x54)](0x1),binaryType)};const _0x12e3b0=PACKET_TYPES_REVERSE[_0xb447d0];function _0x45d7fc(_0x2d3fef,_0x29079e){return _0x32c5(_0x29079e- -0x339,_0x2d3fef);}if(!_0x12e3b0)return ERROR_PACKET;return _0x427622['length']>0x1?{'type':PACKET_TYPES_REVERSE[_0xb447d0],'data':_0x427622['substring'](0x1)}:{'type':PACKET_TYPES_REVERSE[_0xb447d0]};},decodeBase64Packet=(data,binaryType)=>{if(withNativeArrayBuffer$1){const _0x185ae3=decode$1(data);return mapBinary(_0x185ae3,binaryType);}else return{'base64':!![],'data':data};},mapBinary=(data,binaryType)=>{function _0x462d52(_0x4727e7,_0x2fc2e1){return _0x32c5(_0x2fc2e1-0x2f5,_0x4727e7);}switch(binaryType){case _0x462d52(0x4e6,0x514):return data instanceof Blob?data:new Blob([data]);case'arraybuffer':default:return data instanceof ArrayBuffer?data:data['buffer'];}},SEPARATOR=String[_0xf108a4(0x4a1,0x46e)](0x1e),encodePayload=(_0x3138b9,_0x3dd8f5)=>{function _0x13a182(_0x3f64f1,_0xaf06ee){return _0x32c5(_0x3f64f1- -0x332,_0xaf06ee);}const length=_0x3138b9[_0x13a182(-0xa2,-0x13f)],_0x38f6d4=new Array(length);let count=0x0;_0x3138b9['forEach']((_0x5c34af,_0x5eef0a)=>{encodePacket(_0x5c34af,![],_0x1a492e=>{_0x38f6d4[_0x5eef0a]=_0x1a492e;function _0x8ee742(_0x3964a9,_0x30c184){return _0x32c5(_0x3964a9- -0x7c,_0x30c184);}++count===length&&_0x3dd8f5(_0x38f6d4[_0x8ee742(0x2d2,0x35d)](SEPARATOR));});});},decodePayload=(_0x46b4df,binaryType)=>{const _0xd8af3f=_0x46b4df[_0x564b9e(0x666,0x6a3)](SEPARATOR);function _0x564b9e(_0x19e1b7,_0x1238f7){return _0x32c5(_0x19e1b7-0x352,_0x1238f7);}const _0x5632e6=[];for(let _0x745850=0x0;_0x745850<_0xd8af3f['length'];_0x745850++){const _0x3eca93=decodePacket(_0xd8af3f[_0x745850],binaryType);_0x5632e6[_0x564b9e(0x5c9,0x64d)](_0x3eca93);if(_0x3eca93[_0x564b9e(0x5b1,0x4b0)]==='error')break;}return _0x5632e6;};function createPacketEncoderStream(){return new TransformStream({'transform'(_0x5866e3,_0x37ac22){encodePacketToBinary(_0x5866e3,_0x1576d5=>{const payloadLength=_0x1576d5['length'];function _0x4bc015(_0x25987b,_0x2de5f6){return _0x32c5(_0x25987b-0x1fe,_0x2de5f6);}let _0x640121;if(payloadLength<0x7e)_0x640121=new Uint8Array(0x1),new DataView(_0x640121[_0x4bc015(0x5ba,0x5e8)])[_0x4bc015(0x4f6,0x4ab)](0x0,payloadLength);else{if(payloadLength<0x10000){_0x640121=new Uint8Array(0x3);const _0x5be7ef=new DataView(_0x640121[_0x4bc015(0x5ba,0x4d3)]);_0x5be7ef[_0x4bc015(0x4f6,0x408)](0x0,0x7e),_0x5be7ef['setUint16'](0x1,payloadLength);}else{_0x640121=new Uint8Array(0x9);const _0x122b30=new DataView(_0x640121[_0x4bc015(0x5ba,0x60d)]);_0x122b30['setUint8'](0x0,0x7f),_0x122b30['setBigUint64'](0x1,BigInt(payloadLength));}}_0x5866e3['data']&&typeof _0x5866e3['data']!=='string'&&(_0x640121[0x0]|=0x80),_0x37ac22[_0x4bc015(0x438,0x4f9)](_0x640121),_0x37ac22[_0x4bc015(0x438,0x47c)](_0x1576d5);});}});}let TEXT_DECODER;function totalLength(_0x4af37d){function _0x44e522(_0x5f5173,_0x35db31){return _0x32c5(_0x35db31- -0x3d5,_0x5f5173);}return _0x4af37d['reduce']((_0x207b9a,_0x37316d)=>_0x207b9a+_0x37316d[_0x44e522(-0x1af,-0x145)],0x0);}function concatChunks(_0x2a3550,_0x360666){if(_0x2a3550[0x0][_0x24bd6e(0x213,0x150)]===_0x360666)return _0x2a3550['shift']();const _0x55d03c=new Uint8Array(_0x360666);function _0x24bd6e(_0x10e3cf,_0x515c10){return _0x32c5(_0x515c10- -0x140,_0x10e3cf);}let _0x159139=0x0;for(let _0x4d71af=0x0;_0x4d71af<_0x360666;_0x4d71af++){_0x55d03c[_0x4d71af]=_0x2a3550[0x0][_0x159139++],_0x159139===_0x2a3550[0x0]['length']&&(_0x2a3550['shift'](),_0x159139=0x0);}return _0x2a3550['length']&&_0x159139<_0x2a3550[0x0]['length']&&(_0x2a3550[0x0]=_0x2a3550[0x0]['slice'](_0x159139)),_0x55d03c;}function createPacketDecoderStream(_0x45f1e2,binaryType){!TEXT_DECODER&&(TEXT_DECODER=new TextDecoder());const _0x5312e9=[];let _0x4ad1b2=0x0,expectedLength=-0x1,isBinary=![];return new TransformStream({'transform'(_0x2b16e1,_0x452dee){function _0x16d778(_0x5a0196,_0x24753e){return _0x32c5(_0x24753e- -0x69,_0x5a0196);}_0x5312e9[_0x16d778(0x1ac,0x20e)](_0x2b16e1);while(!![]){if(_0x4ad1b2===0x0){if(totalLength(_0x5312e9)<0x1)break;const _0x5aadfb=concatChunks(_0x5312e9,0x1);isBinary=(_0x5aadfb[0x0]&0x80)===0x80,expectedLength=_0x5aadfb[0x0]&0x7f;if(expectedLength<0x7e)_0x4ad1b2=0x3;else expectedLength===0x7e?_0x4ad1b2=0x1:_0x4ad1b2=0x2;}else{if(_0x4ad1b2===0x1){if(totalLength(_0x5312e9)<0x2)break;const _0x1ee699=concatChunks(_0x5312e9,0x2);expectedLength=new DataView(_0x1ee699['buffer'],_0x1ee699['byteOffset'],_0x1ee699['length'])[_0x16d778(0x200,0x2ea)](0x0),_0x4ad1b2=0x3;}else{if(_0x4ad1b2===0x2){if(totalLength(_0x5312e9)<0x8)break;const _0x45b8ce=concatChunks(_0x5312e9,0x8),_0x35b968=new DataView(_0x45b8ce['buffer'],_0x45b8ce[_0x16d778(0x121,0x206)],_0x45b8ce[_0x16d778(0x250,0x227)]),_0x3f6d5f=_0x35b968['getUint32'](0x0);if(_0x3f6d5f>Math['pow'](0x2,0x35-0x20)-0x1){_0x452dee[_0x16d778(0x230,0x1d1)](ERROR_PACKET);break;}expectedLength=_0x3f6d5f*Math['pow'](0x2,0x20)+_0x35b968[_0x16d778(0x26e,0x270)](0x4),_0x4ad1b2=0x3;}else{if(totalLength(_0x5312e9)<expectedLength)break;const data=concatChunks(_0x5312e9,expectedLength);_0x452dee['enqueue'](decodePacket(isBinary?data:TEXT_DECODER[_0x16d778(0x48e,0x38a)](data),binaryType)),_0x4ad1b2=0x0;}}}if(expectedLength===0x0||expectedLength>_0x45f1e2){_0x452dee[_0x16d778(0x18b,0x1d1)](ERROR_PACKET);break;}}}});}const protocol$1=0x4;function Emitter(_0x2794ae){if(_0x2794ae)return mixin(_0x2794ae);}function mixin(_0x5730bd){for(var _0x18bd4e in Emitter[_0x2288db(0x396,0x35b)]){_0x5730bd[_0x18bd4e]=Emitter['prototype'][_0x18bd4e];}function _0x2288db(_0x273aae,_0xbae3e7){return _0x32c5(_0xbae3e7-0xa,_0x273aae);}return _0x5730bd;}Emitter[_0xf108a4(0x3d3,0x4b1)]['on']=Emitter[_0xf108a4(0x584,0x4b1)][_0xf108a4(0x2cc,0x397)]=function(_0x200a67,_0x1671ca){this['_callbacks']=this[_0x4aaacd(0x102,0x218)]||{},(this[_0x4aaacd(0x102,0x1a7)]['$'+_0x200a67]=this[_0x4aaacd(0x102,0x178)]['$'+_0x200a67]||[])[_0x4aaacd(0x133,0x201)](_0x1671ca);function _0x4aaacd(_0x26f154,_0xa4ffa4){return _0x32c5(_0x26f154- -0x144,_0xa4ffa4);}return this;},Emitter['prototype'][_0xf108a4(0x42f,0x3e3)]=function(_0x2759fd,_0x2ec883){function _0x4c2d6e(){this[_0x57dfc2(0xaf,0x48)](_0x2759fd,_0x4c2d6e);function _0x57dfc2(_0x344b62,_0xca6ee4){return _0x32c5(_0x344b62- -0x15c,_0xca6ee4);}_0x2ec883['apply'](this,arguments);}return _0x4c2d6e['fn']=_0x2ec883,this['on'](_0x2759fd,_0x4c2d6e),this;},Emitter['prototype']['off']=Emitter['prototype']['removeListener']=Emitter[_0xf108a4(0x3cb,0x4b1)]['removeAllListeners']=Emitter[_0xf108a4(0x422,0x4b1)]['removeEventListener']=function(_0x3ce87d,_0x256758){this['_callbacks']=this['_callbacks']||{};if(0x0==arguments['length'])return this['_callbacks']={},this;var _0xf2079d=this['_callbacks']['$'+_0x3ce87d];function _0x27ba15(_0x1a1efc,_0xde0171){return _0x32c5(_0x1a1efc-0x3e8,_0xde0171);}if(!_0xf2079d)return this;if(0x1==arguments['length'])return delete this['_callbacks']['$'+_0x3ce87d],this;var _0x1a4fdf;for(var _0x2124be=0x0;_0x2124be<_0xf2079d[_0x27ba15(0x678,0x587)];_0x2124be++){_0x1a4fdf=_0xf2079d[_0x2124be];if(_0x1a4fdf===_0x256758||_0x1a4fdf['fn']===_0x256758){_0xf2079d[_0x27ba15(0x64f,0x5b2)](_0x2124be,0x1);break;}}return _0xf2079d['length']===0x0&&delete this['_callbacks']['$'+_0x3ce87d],this;},Emitter['prototype']['emit']=function(_0x80d404){this[_0x9d2e68(-0x110,-0x10f)]=this['_callbacks']||{};function _0x9d2e68(_0x4d9c84,_0x22de33){return _0x32c5(_0x22de33- -0x355,_0x4d9c84);}var _0x41f5e1=new Array(arguments[_0x9d2e68(-0x14d,-0xc5)]-0x1),_0x2c892f=this['_callbacks']['$'+_0x80d404];for(var _0x8bc225=0x1;_0x8bc225<arguments['length'];_0x8bc225++){_0x41f5e1[_0x8bc225-0x1]=arguments[_0x8bc225];}if(_0x2c892f){_0x2c892f=_0x2c892f[_0x9d2e68(-0x5e,-0x94)](0x0);for(var _0x8bc225=0x0,_0x312724=_0x2c892f['length'];_0x8bc225<_0x312724;++_0x8bc225){_0x2c892f[_0x8bc225]['apply'](this,_0x41f5e1);}}return this;},Emitter[_0xf108a4(0x5ca,0x4b1)]['emitReserved']=Emitter['prototype'][_0xf108a4(0x4d3,0x45a)],Emitter['prototype'][_0xf108a4(0x4b6,0x39e)]=function(_0x28ae85){function _0x311ac5(_0x1e16b9,_0x34a85e){return _0x32c5(_0x34a85e- -0xd9,_0x1e16b9);}return this[_0x311ac5(0xd9,0x16d)]=this['_callbacks']||{},this['_callbacks']['$'+_0x28ae85]||[];},Emitter['prototype']['hasListeners']=function(_0x3d90c3){function _0x4cb2df(_0x33bf21,_0x4094e4){return _0x32c5(_0x33bf21- -0x3dc,_0x4094e4);}return!!this['listeners'](_0x3d90c3)[_0x4cb2df(-0x14c,-0x146)];};const nextTick=((()=>{function _0x3bc92b(_0x202186,_0x2ffaf2){return _0x32c5(_0x2ffaf2-0x292,_0x202186);}const isPromiseAvailable=typeof Promise==='function'&&typeof Promise['resolve']==='function';return isPromiseAvailable?_0x475e0a=>Promise[_0x3bc92b(0x5a8,0x48e)]()['then'](_0x475e0a):(_0x28d187,_0x5a9094)=>_0x5a9094(_0x28d187,0x0);})()),globalThisShim=((()=>{function _0x37d133(_0x99de19,_0x16fd87){return _0x32c5(_0x99de19-0x2f9,_0x16fd87);}if(typeof self!=='undefined')return self;else return typeof window!=='undefined'?window:Function(_0x37d133(0x5ed,0x5d1))();})()),defaultBinaryType=_0xf108a4(0x441,0x355);function createCookieJar(){}function pick(_0x4db3f2,..._0x4aa75d){function _0x105d5c(_0x435f4f,_0x3cb9e0){return _0x32c5(_0x3cb9e0- -0x11,_0x435f4f);}return _0x4aa75d[_0x105d5c(0x162,0x1f9)]((_0x4dbc7b,_0x9058e7)=>{_0x4db3f2[_0x1592be(0x122,0x35)](_0x9058e7)&&(_0x4dbc7b[_0x9058e7]=_0x4db3f2[_0x9058e7]);function _0x1592be(_0x5476f8,_0xc42f01){return _0x32c5(_0xc42f01- -0x2a2,_0x5476f8);}return _0x4dbc7b;},{});}const NATIVE_SET_TIMEOUT=globalThisShim[_0xf108a4(0x457,0x491)],NATIVE_CLEAR_TIMEOUT=globalThisShim[_0xf108a4(0x565,0x4df)];function installTimerFunctions(_0x346dc9,_0x35c830){function _0x224032(_0x2c4948,_0x328bb2){return _0x32c5(_0x328bb2- -0x25,_0x2c4948);}_0x35c830[_0x224032(0x3f8,0x3d4)]?(_0x346dc9['setTimeoutFn']=NATIVE_SET_TIMEOUT[_0x224032(0x1e4,0x20f)](globalThisShim),_0x346dc9['clearTimeoutFn']=NATIVE_CLEAR_TIMEOUT[_0x224032(0x254,0x20f)](globalThisShim)):(_0x346dc9[_0x224032(0x12f,0x1af)]=globalThisShim[_0x224032(0x1f7,0x30c)]['bind'](globalThisShim),_0x346dc9['clearTimeoutFn']=globalThisShim[_0x224032(0x240,0x35a)]['bind'](globalThisShim));}const BASE64_OVERHEAD=1.33;function byteLength(_0x5e9527){if(typeof _0x5e9527==='string')return utf8Length(_0x5e9527);function _0x458c1b(_0xb05c4e,_0x40869e){return _0x32c5(_0xb05c4e- -0x110,_0x40869e);}return Math[_0x458c1b(0xcf,0xa5)]((_0x5e9527['byteLength']||_0x5e9527['size'])*BASE64_OVERHEAD);}function utf8Length(_0x33f2dd){function _0x182228(_0x47ccef,_0x21218d){return _0x32c5(_0x21218d- -0x2c0,_0x47ccef);}let _0x35e366=0x0,length=0x0;for(let _0x530697=0x0,_0x36ea2b=_0x33f2dd[_0x182228(-0xcc,-0x30)];_0x530697<_0x36ea2b;_0x530697++){_0x35e366=_0x33f2dd['charCodeAt'](_0x530697);if(_0x35e366<0x80)length+=0x1;else{if(_0x35e366<0x800)length+=0x2;else _0x35e366<0xd800||_0x35e366>=0xe000?length+=0x3:(_0x530697++,length+=0x4);}}return length;}function randomString(){function _0x11403e(_0x435f64,_0x3510ba){return _0x32c5(_0x3510ba-0xad,_0x435f64);}return Date[_0x11403e(0x352,0x27c)]()['toString'](0x24)['substring'](0x3)+Math[_0x11403e(0x3af,0x43d)]()['toString'](0x24)['substring'](0x2,0x5);}function encode(_0x49cf59){let _0x521d1d='';for(let _0x40029f in _0x49cf59){if(_0x49cf59['hasOwnProperty'](_0x40029f)){if(_0x521d1d['length'])_0x521d1d+='&';_0x521d1d+=encodeURIComponent(_0x40029f)+'='+encodeURIComponent(_0x49cf59[_0x40029f]);}}return _0x521d1d;}function decode(_0x15bdc1){let _0x3df217={};function _0x69d3d8(_0xf184b7,_0x117d8c){return _0x32c5(_0x117d8c-0x236,_0xf184b7);}let _0x397203=_0x15bdc1['split']('&');for(let _0x512ccd=0x0,_0x230638=_0x397203[_0x69d3d8(0x514,0x4c6)];_0x512ccd<_0x230638;_0x512ccd++){let _0x4f2732=_0x397203[_0x512ccd]['split']('=');_0x3df217[decodeURIComponent(_0x4f2732[0x0])]=decodeURIComponent(_0x4f2732[0x1]);}return _0x3df217;}class TransportError extends Error{constructor(_0x57b2b6,_0x184dae,_0x15960e){super(_0x57b2b6),this['description']=_0x184dae,this['context']=_0x15960e,this['type']='TransportError';}}class Transport extends Emitter{constructor(_0x5ae4e3){super(),this[_0x1e84f6(0x9c,0x13f)]=![],installTimerFunctions(this,_0x5ae4e3),this[_0x1e84f6(0x50,0x10c)]=_0x5ae4e3,this[_0x1e84f6(0x13e,0x189)]=_0x5ae4e3[_0x1e84f6(0xdd,0x189)],this[_0x1e84f6(-0xb5,0x12)]=_0x5ae4e3[_0x1e84f6(0xc8,0x12)];function _0x1e84f6(_0x336b7f,_0x33aee7){return _0x32c5(_0x33aee7- -0x21d,_0x336b7f);}this[_0x1e84f6(-0x5d,0x6e)]=!_0x5ae4e3[_0x1e84f6(0x1c0,0xa2)];}[_0xf108a4(0x41c,0x4f8)](_0x58b399,_0x1dd501,_0x437ad7){function _0x21a141(_0x26fb66,_0x46c97e){return _0x32c5(_0x26fb66- -0x2db,_0x46c97e);}return super['emitReserved'](_0x21a141(0xbc,0xc9),new TransportError(_0x58b399,_0x1dd501,_0x437ad7)),this;}[_0xf108a4(0x39d,0x34b)](){function _0x3ea9ed(_0x3ba570,_0x377703){return _0x32c5(_0x377703- -0x19f,_0x3ba570);}return this[_0x3ea9ed(0x306,0x22e)]='opening',this['doOpen'](),this;}['close'](){(this['readyState']===_0x24cc4d(0x769,0x752)||this['readyState']===_0x24cc4d(0x68a,0x572))&&(this['doClose'](),this[_0x24cc4d(0x636,0x74f)]());function _0x24cc4d(_0x52c7a0,_0x320261){return _0x32c5(_0x320261-0x387,_0x52c7a0);}return this;}[_0xf108a4(0x493,0x470)](_0x3e2551){function _0x32073e(_0x26c504,_0x568380){return _0x32c5(_0x568380-0x3ae,_0x26c504);}this[_0x32073e(0x77d,0x77b)]===_0x32073e(0x691,0x599)&&this[_0x32073e(0x634,0x5f5)](_0x3e2551);}[_0xf108a4(0x554,0x548)](){this[_0xc6f462(0x607,0x543)]=_0xc6f462(0x425,0x507),this['writable']=!![];function _0xc6f462(_0x23224a,_0x5d94b2){return _0x32c5(_0x23224a-0x23a,_0x5d94b2);}super[_0xc6f462(0x51f,0x5a5)](_0xc6f462(0x425,0x547));}['onData'](data){function _0x36e49e(_0xcdcf97,_0x490161){return _0x32c5(_0xcdcf97- -0x28e,_0x490161);}const _0x11388c=decodePacket(data,this[_0x36e49e(-0x5f,-0x163)][_0x36e49e(0x32,-0x83)]);this[_0x36e49e(-0xcd,-0x1aa)](_0x11388c);}['onPacket'](_0x331123){function _0x1e3d60(_0x18452c,_0x201dc3){return _0x32c5(_0x201dc3- -0x179,_0x18452c);}super['emitReserved'](_0x1e3d60(0x11a,0x62),_0x331123);}[_0xf108a4(0x40f,0x528)](_0x3c9909){function _0xb20705(_0xd7dc2d,_0x180357){return _0x32c5(_0x180357-0x1e7,_0xd7dc2d);}this[_0xb20705(0x587,0x5b4)]='closed',super['emitReserved'](_0xb20705(0x50c,0x5b9),_0x3c9909);}[_0xf108a4(0x3ec,0x426)](_0x219cc5){}['createUri'](_0x4a28b4,_0x5effb1={}){function _0x31602d(_0x3989bf,_0x5ca1a6){return _0x32c5(_0x5ca1a6- -0x354,_0x3989bf);}return _0x4a28b4+_0x31602d(-0x10f,0x4)+this[_0x31602d(-0x1e5,-0x155)]()+this['_port']()+this[_0x31602d(-0xf3,-0x2b)][_0x31602d(0x9c,-0x8)]+this['_query'](_0x5effb1);}[_0xf108a4(0x46a,0x35f)](){const _0xc397e=this['opts'][_0x3c6854(0x298,0x1da)];function _0x3c6854(_0x593f4e,_0x4970be){return _0x32c5(_0x4970be- -0xad,_0x593f4e);}return _0xc397e['indexOf'](':')===-0x1?_0xc397e:'['+_0xc397e+']';}['_port'](){function _0x1c5627(_0x464786,_0x499446){return _0x32c5(_0x499446-0x33d,_0x464786);}return this['opts'][_0x1c5627(0x603,0x624)]&&(this['opts'][_0x1c5627(0x732,0x687)]&&Number(this[_0x1c5627(0x6fb,0x666)][_0x1c5627(0x6df,0x624)]!==0x1bb)||!this['opts']['secure']&&Number(this[_0x1c5627(0x691,0x666)]['port'])!==0x50)?':'+this['opts']['port']:'';}[_0xf108a4(0x376,0x465)](_0xfe6a9e){const _0x582441=encode(_0xfe6a9e);return _0x582441['length']?'?'+_0x582441:'';}}class Polling extends Transport{constructor(){super(...arguments);function _0x5a2f54(_0x4e40ff,_0x310f3d){return _0x32c5(_0x4e40ff- -0x352,_0x310f3d);}this[_0x5a2f54(0x61,-0x88)]=![];}get['name'](){return'polling';}['doOpen'](){this['_poll']();}[_0xf108a4(0x3e8,0x426)](_0x29c10f){function _0x50d4a2(_0xea0129,_0x511bd0){return _0x32c5(_0x511bd0-0x2c0,_0xea0129);}this[_0x50d4a2(0x59f,0x68d)]='pausing';const _0x445b9a=()=>{this['readyState']='paused',_0x29c10f();};if(this[_0x50d4a2(0x6d9,0x673)]||!this['writable']){let _0x21400d=0x0;this['_polling']&&(_0x21400d++,this[_0x50d4a2(0x5a9,0x543)]('pollComplete',function(){--_0x21400d||_0x445b9a();})),!this['writable']&&(_0x21400d++,this['once']('drain',function(){--_0x21400d||_0x445b9a();}));}else _0x445b9a();}[_0xf108a4(0x480,0x502)](){this[_0x4728b6(0x478,0x377)]=!![],this['doPoll']();function _0x4728b6(_0x634c0c,_0x213e8d){return _0x32c5(_0x213e8d- -0x3c,_0x634c0c);}this[_0x4728b6(0x32a,0x2a9)]('poll');}['onData'](data){const _0x1e3c01=_0x21a68f=>{_0x2411f4(0x292,0x2a1)===this[_0x2411f4(0x294,0x291)]&&_0x21a68f[_0x2411f4(0x126,0xd7)]==='open'&&this[_0x2411f4(0x2af,0x2df)]();if(_0x2411f4(0x299,0x3b9)===_0x21a68f['type'])return this[_0x2411f4(0x28f,0x25e)]({'description':_0x2411f4(0xe3,0xdb)}),![];function _0x2411f4(_0x2e0afc,_0x17cec1){return _0x32c5(_0x2e0afc- -0x139,_0x17cec1);}this[_0x2411f4(0x88,0x13f)](_0x21a68f);};function _0x327a0b(_0x4972bf,_0x16eff7){return _0x32c5(_0x16eff7-0x27c,_0x4972bf);}decodePayload(data,this[_0x327a0b(0x5b1,0x4ab)][_0x327a0b(0x566,0x53c)])['forEach'](_0x1e3c01),'closed'!==this['readyState']&&(this[_0x327a0b(0x746,0x62f)]=![],this[_0x327a0b(0x4f2,0x561)]('pollComplete'),_0x327a0b(0x568,0x467)===this[_0x327a0b(0x5af,0x649)]&&this['_poll']());}['doClose'](){const _0x58f39c=()=>{this['write']([{'type':'close'}]);};function _0x4b2001(_0x527d95,_0x301dfd){return _0x32c5(_0x527d95- -0x155,_0x301dfd);}'open'===this[_0x4b2001(0x278,0x23d)]?_0x58f39c():this['once'](_0x4b2001(0x96,0x127),_0x58f39c);}['write'](_0x1db324){this['writable']=![],encodePayload(_0x1db324,data=>{function _0x13872c(_0x3ddbe6,_0x9e70e4){return _0x32c5(_0x9e70e4-0x166,_0x3ddbe6);}this[_0x13872c(0x60e,0x546)](data,()=>{this[_0x5b7044(0x4f9,0x56e)]=!![];function _0x5b7044(_0x38a2a4,_0x233dca){return _0x32c5(_0x233dca-0x212,_0x38a2a4);}this[_0x5b7044(0x4eb,0x4f7)](_0x5b7044(0x6be,0x5d1));});});}[_0xf108a4(0x5bb,0x4ee)](){function _0x53d477(_0x333cee,_0x11a347){return _0x32c5(_0x11a347- -0x3e0,_0x333cee);}const _0x35dd1c=this[_0x53d477(0x6c,-0xb7)]['secure']?'https':'http',_0xc9b5c6=this[_0x53d477(-0x136,-0x3a)]||{};return![]!==this[_0x53d477(0x33,-0xb7)]['timestampRequests']&&(_0xc9b5c6[this[_0x53d477(-0x1d,-0xb7)][_0x53d477(0x29,-0x6d)]]=randomString()),!this['supportsBinary']&&!_0xc9b5c6[_0x53d477(-0x30,-0x114)]&&(_0xc9b5c6[_0x53d477(-0x262,-0x193)]=0x1),this[_0x53d477(-0x27c,-0x173)](_0x35dd1c,_0xc9b5c6);}}function _0x46ca(){const _0x4310ca=['D3jPDgfIBgu','BgvHDMLUzW','B25WywnRzxq','C3vICW','Cgz4','CMvQzwn0vw5HDxrOB3jPEMvK','CMvZzxrqyxnZD29Yza','zMLSDgvY','Dhj5ugfYC2u','icHtDgf0Dxm6ia','BwLU','zxHLy3v0zq','uMvHy3royxrPDMu','l2z1BMn0Aw9UCY92mq','y2XVC2LUzW','DgHLBG','zg9dBg9Zzq','otbeCNboqve','zgvMyxvSDhm','Ahr0Chm6','DMfSDwu','B3bLCMf0Aw9U','ChjVyMuGzxjYB3i','DgLTzxn0yw1WugfYyw0','AxnwAwv3','BgLZDej1y2TLDhm','Dhj5q291BNq','x3jLC2v0ugLUz1rPBwvVDxq','l2vUz2LUzs5PBW','B25YzwnVBM5Ly3q','zgvSzxrLt3b0Aw9UCW','DgvZDenVBM5Ly3rPB24','x2rYywLUuxvLDwu','zw5NAw5L','z2v0q29UBMvJDgLVBLn0yxrL','y2XLyxjuAw1LB3v0','C2LNBKLU','x3DYAxrLCG','y2HLy2Ttzxj2zxjjzgvUDgL0Eq','yxr0ywnOBwvUDhm','zxHLyW','y2f0y2G','y2HHCKnVzgvbDa','D3jPDgvcDwzMzxi','reLtq09otKvdva','x3jHBMrVBwL6yxrPB25gywn0B3i','z2v0v29YA3nWywnLswq','CMvXDwvZDa','y2HHBM5LBa','C3vIC3rYAw5N','DxjP','zxzLBNq','CMfUzg9T','zgLZy29UBMvJDa','y29Uy2f0','CxvLCNLlzxK','x2fUEuXPC3rLBMvYCW','yxr0zw1WDhm','CMvTB3zLqwXStgLZDgvUzxjZ','zxjYB3i','B25fCNjVCG','CMvHzhK','l3nVy2TLDc5PBW','Dhj5qwXSvhjHBNnWB3j0CW','y3vYCMvUDfnJAgvTyq','z2v0uMvZCg9UC2vizwfKzxi','y29UBMvJDa','x3jLywr5u3rHDgu','x3vWz3jHzgvZ','CMvJB25Uzwn0Aw9UrgvSyxLnyxG','x3bVBgW','x3bYB2jL','yxbWBhK','x21LDgHVza','CxvLCNK','mJaYnuLlu0rkCq','x3nLBMrdB25Uzwn0ugfJA2v0','x3bPBMDuAw1LB3v0','zMLSzq','x2nVB2TPzuPHCG','Ahr0Chm','x2nSzwfUDxa','CMvJB25Uzwn0x2vYCM9Y','CMvXDwvZDhndB3vUDa','ChjLzMvY','DgvZDa','B25eyxrH','x3bVBgXPBMC','B3jKzxi','q09otKvdvf9fuLjpuG','rMfPBgvKihrVihvWBg9HzcbMAwXL','q09otKvdva','tufyx1nbrKvFsu5uruDfuG','iIbPCYbHihjLC2vYDMvKigv2zw50ig5HBwu','CgfYC2vY','CgvYAw9K','yNvMzMvY','l3nKAY92ms8','qunl','zhjHAw4','Aw50zxjJzxb0B3jZ','y2vYDa','CMvTB3zLtgLZDgvUzxi','y3jLyxrLu29JA2v0','CMvJB25Uzwn0qxr0zw1WDhm','Cg9ZDgDYzxneyxrHyMfZzq','AgfUzgXLqxv0AevYCM9Y','rMfPBgvKihrVigDLDcbMAwXLigLUzM8','B25dBg9Zzq','BhrL','CgLUzYb0Aw1LB3v0','B3bLBMLUzW','x3jLy29UBMvJDgLUzW','CMvHzhLtDgf0zq','qwn0AxzL','D3nZ','zNjVBvf1zxvL','CMvTB3zLq3vZDg9Trgf0ywjHC2u','y2XVC2u','DxbKyxrLrgf0yq','nJi5mertAhnvDa','x3bPza','zw1PDfDPDgHby2S','x29UugfJA2v0','x3nVy2TLDa','Cg9ZDgDYzxnFy2HHBMDLCW','AxnqyxLSB2fKvMfSAwq','tM8GDhjHBNnWB3j0CYbHDMfPBgfIBgu','B3b0Aw9UCW','x2LUzgv4','C2v0vhjHBNnWB3j0','DhjHBNnWB3j0CW','zg9xCML0zq','z3rL','C2v0','lMrLC2m','Ec10B3rHBc1JB3vUDa','Cg9UzW','z2v0uMvHzgvY','zg93BMXVywq','B25pCgvU','ywnRCW','Dw5Yzwy','CgvUzgLUzW','zgvJB2rLCG','AgfZ','BMfTzq','CMvHzgfIBgu','DgfRzujPBMfYEurHDge','C2LNBLvW','DhjHBNnWB3j0t3b0Aw9UCW','zgvJB2rL','Dgv4Dc9WBgfPBJTJAgfYC2v0pvvurI04','CMvJzwL2zuj1zMzLCG','Dw50CMfJAW','BwfRzvjLzG','y29UzMLN','DxnLtMf0AxzLvgLTzxjZ','yNvJA2v0swq','y3vYCMvUDfnLC3nPB24','z2v0q3vZDg9Tq3jLzgvUDgLHBhm','BM90Awz5t3v0z29PBMDmAxn0zw5LCNm','zgvJB2rLza','x21HEfbHEwXVywq','CMvJB25Uzwn0sw50zxj2ywW','CMvTzw1IzxjvCgDYywrL','l2z1BMn0Aw9UCY92ms8','ywn0AxzL','l3n0B3jHz2uVyNvJA2v0CY8','AgfUzgXLrxjYB3i','x29UrxjYB3i','B25qywnRzxq','Bg9N','z2v0u3rHDhvZ','z2v0twv0CMLJCW','Bwf5yMvszwnVBM5Ly3rpBK9Wzw4','Bwf4ugf5Bg9Hza','ywnRvgLTzw91Da','CgLUz0LUDgvYDMfS','CgLUz1rPBwvVDxq','Aw8GC2vYDMvYigrPC2nVBM5Ly3q','rMfPBgvKihrVihjLBw92zsbMAwXLCW','B2jQzwn0','y29UDgvUDfr5Cgu','x29Uq2XVC2u','BM93','y2XLyxjtzxnZAw9U','y2HHCKf0','CgLUzW','zNjLzxPL','C2v0vgLTzw91DezU','vw5RBM93BIbLCNjVCG','x3rYyw5ZCg9YDa','C29JA2v0t3b0Aw9UCW','B25JB25Uzwn0','CMvZCg9UC2u','yxjYyxLcDwzMzxi','CgfJA2v0','x3HOCG','BgLZDa','BMv0D29YAYbJB25Uzwn0Aw9UigXVC3q','y2vPBa','zMXVB3i','DMvYAwz5','C2v0twLU','zxH0CMfizwfKzxjZ','ntKZota5ohfYyLPTAG','C2v0uMvXDwvZDeHLywrLCG','Bg9JywXOB3n0','x29WDhm','C3nSrw5HyMXLza','B25YzwfKExn0yxrLy2HHBMDL','y29UBMvJDgvK','B3bLBG','AxnvC2LUz0n1C3rVBurHDgfIyxnL','EgHYihbVC3qGzxjYB3i','C291CMnL','Bwv0Ag9K','DxbNCMfKzq','zw1PDej1zMzLCMvK','CMvJB25Uzwn0Aw9U','w29IAMvJDcbpyMPLy3rD','l2zPBgvZlW','yxjYyxLIDwzMzxi','ywnR','y29Kzq','CMvHy3rUyxrPDMu','C3rHy2S','x3rPBwvVDxq','D2vIC29JA2v0','CMvZB2X2zq','DhjHBNnMB3jT','ChjVDg9JB2W','x2HVC3rUyw1L','x29Utg9Hza','y2XLyxjuAw1LB3v0rM4','ywnJzxnZx3rVA2vU','qwnJzxb0','y29UDgfPBNm','x3bYzxzcDwzMzxjmzw4','B25VCgvU','BMvX','rMfPBgvKihrVihvWzgf0zsbMDw5JDgLVBIbLBNzPCM9UBwvUDa','ChjLC2vUy2u','CMvKDwnL','B2zM','x3bPBMDuAw1LB3v0vgLTzxi','DxnL','C2vZC2LVBG','x3rYyw5ZCg9YDhncEu5HBwu','x3jLy29UBMvJDgLVBKf0DgvTChrZ','Dg9ku09o','yMfJA29MzG','CgfYC2u','B25iyw5KC2HHA2u','ywDLBNq','ChjVzhvJDa','D2vIDhjHBNnWB3j0','CMvTB3zLqxv0AfrVA2vU','Chv0','uhjLzMvY','mZy0ota5mLjrr2Ttwa','DhjHBNnWB3j0ignSB3nLzcbIEsb0AguGC2vYDMvY','Aw1WB3j0twfW','BNvTyMvY','yMXVyG','zw1PDev2zw50','yNjVywrJyxn0','C29YDej5','CMfUzg9TAxPHDgLVBKzHy3rVCG','Bw92zq','DhjHBNnWB3j0igvYCM9Y','DxbKyxrL','p29WzxjHDgLVBJ11ChnLCNq','rMfPBgvKihrVigrVD25SB2fKigzPBgu','ywrKq29VA2LLCW','C3rVCMfNzq','C2HPzNq','x3jLy29UBMvJDgLVBKrLBgf5','yxv0B1vUCMvM','ywjVCNq','C29JA2v0','yM9KEq','zw52','C2vSzwn0','z2v0q3vZDg9Trgf0ywjHC2vtDgf0Dxm','yMLUza','zgvSzxrL','DxbNCMfKzxm','ywrKrxzLBNrmAxn0zw5LCG','Aw8Gy2XPzw50igrPC2nVBM5Ly3q','C3vJy2vZCW','zw5XDwv1zq','zNjVBq','C3rHDhvZvgv4Da','Cgf0y2G','BgLZDgvUzxjZ','tw96v2vIu29JA2v0','ndqZ','yxbWzw5K','AML0DgvY','CMvZCg9UC2vuExbL','B25SB2fK','zgvZDhjVEq','x2nHBgXIywnRCW','D3jPDgu','CMvMCMvZAfnLC3nPB24','CMvHzefZrgf0yvvsta','CMvZDwX0','y3jLyxrL','zwjHyxmUyxv0Ac5ZzxnZAw9U','yJy0','yxv0Aa','Dg9WAwm','zgLZy29UBMvJDgvK','CMvJB25qywnR','x2nYzwf0zq','B251BMXVywq','Cg93','DgfIBgu','B3bLCMf0Aw9UigHHCYb0Aw1LzcbVDxq','AgvHCNrIzwf0','C3rHDhvZ','B25JBg9Zzq','y3jLyxrLu2LNBMvKvxjS','x2rLC3rYB3K','DxbNCMfKzuvYCM9Y','x3nLBMrqywnRzxq','zgvSzxrLqNvJA2v0','DhLWzq','y3jLzgvUDgLHBhm','y3jLyxrLqNvJA2v0','C2v0v29YA3nWywnLswq','n3jcvMnorq','Bg9HzfnLC3nPB24','yMfZzvvsta','C2v0u2vZC2LVBG','C3bSAwnL','AM9PBMLUzW','y3vZDg9Trgf0ywjHC2vnyw5Hz2vY','x2f1Dg9dB25Uzwn0','B3jPz2LU','BgLRzq','y3jLyxrLvxjP','CMvHBhrPBwu','yNL0zu9MzNnLDa','C29JA2v0qwrHChrLCG','zw5JB2rLqxncAw5HCNK','Aw5KzxHpzG','yNvMzMvYCW','qKLoqvjzx0vwru5u','mta0mJuYmeLoAeflza','x3bHy2TLDa','ChvZAa','l2LUzM8','x3vYAq','x2rHDge','Axb2nNvYAq','CMv2AxzLCG','rMfPBgvKihrVigDLDcbMDw5JDgLVBIbSB2DZ','C29JA2v0igHHCYbIzwvUigrPC2nVBM5Ly3rLza','Dg9tDhjPBMC','x3jLy29UBMvJDgLVBG','z2v0vxnHz2u','yxnZAwDU','B25Jzq','l3nPz24','x2zPBhrLCLvWz3jHzgvZ','zM9YrwfJAa','Ag9ZDg5HBwu','CgfYC2vYigvYCM9Y','x2nSB3nL','DM9SyxrPBgu','C3vWCg9YDhncAw5HCNK','zMfTAwX5','D29YA3nWywnLswq','u29JA2v0lMLVlwnSAwvUDcbUW6nVigvZDmoHigrPC3bVBSoTDMvSig5LC3rLigfTyMLLBNrLlIbqyxjHifjLywn0ie5HDgL2zsWGAw5ZDgfSzsbHCYbKzxbLBMtdQM5JAwfZig5Ly2vZC8oHCMLHCY4','rgf0ywjHC2uGB3bLCMf0Aw9UigzHAwXLza','BgvUz3rO','DhjHBNnWB3j0ignSB3nL','Dw5ZDwjZy3jPyMu','A2v5','z2v0u2vZC2LVBG','y29VA2LLsMfY','x3f1zxvL','zMfJDg9Y','CgLK','zgLYzwn0B3j5','B25Hy2S','BxvSDgLWyxj0l2zVCM0Tzgf0yq','BgLZDgvUzxjZqw55','C3rYAw5NAwz5','C2vUzej1zMzLCG','DgLTzxn0yw1WuMvXDwvZDhm','Dw5KzwzPBMvK','B25WAw5N','zgf0ywjHC2u','rMfPBgvKihrVigrLCgXVEsbMDw5JDgLVBG','BNnW','CMvJB25Uzwn0x2zHAwXLza','rw5JB2rLCG','qKLoqvjzx0fdsW','DxnLCG','Dg9mB3DLCKnHC2u','zMLSDgvYCW','DhjHBNnWB3j0','AM9PBMvKt25Jzq','y29UBMvJDgLVBLn0yxrL','Ag9ZDa','zgf0yq','z2v0v3jPDgvY','ChjLC2vUy2u6','ms4WlJa','yNvJA2v0','y3jLyxrLvhjHBNnWB3j0','y2fWDhvYzvn0ywnRvhjHy2u','p3vWC2vYDd10CNvL','Bg9JywXbzgrYzxnZ','CMvWBgfJzq','B25qCMvZzw5Jzq','rMfPBgvKihrVigXPC3qGyNvJA2v0CW','D2L0AenYzwrLBNrPywXZ','BNvT','q0Xpu0ve','yNL0zuXLBMD0Aa','zM9Yy2vcyxnLnJq','yMLUyxj5vhLWzq','C2XPy2u','l2zPBgvZl2nVChK','B25dB25Uzwn0Aw9Uu3rHDgvdAgfUz2u','l3jWyY8','C3vIrxzLBNrZ','Cgf1C2u','B25KzwnVzgvK','CMvJB25Uzwn0Aw9UrgvSyxK','x2XHC3rpzMzZzxq','yxbPs2v5','Dw5ZAgLMDa','C2LK','x2jLzM9YzxvUBg9Hzev2zw50tgLZDgvUzxi','y2XLyxi','y29UzMLNDxjLq3vZDg9Trgf0ywjHC2u','C3vIC2nYAxb0Aw9UCW','ChjVDg9JB2XZ','m2fNqLHyrG','CMvJB25ZDhj1y3rVCG','x3jLy29UBMvJDgLVBKrLBgf5twf4','y2fJAgvdB250CM9S','B2zMC2v0','AgfZt3DUuhjVCgvYDhK','ntm0mMzVD0fxBW','z2v0vwLUDdmY','l2zPBgvZ','C2nOzw1H','x29Wzw4','CMvJB25Uzwn0Aw9Uqxr0zw1WDhm','BMv3tgLZDgvUzxi','C2v0qxv0AfrVA2vU','x3f1zxvLu2vX','x3rYAwDNzxi','y29WEq','zgv0zwn0q3vZDg9Trgf0ywjHC2u','zNvUy3rPB25Z','zw1PDfjLC2vYDMvK','Dw5RBM93BIbWywnRzxqGDhLWzsa','Cg9YDa','DxbNCMfKAw5N','B2zMqw55','x3bPBMDuAw1LB3v0vgLTzq','rvzftLq','EYjZAwqIoIi','DxbZzxj0','AgfZq3vZDg9Trgf0ywjHC2u','y29TChjLC3m','B25LCNjVCG','rNvUy3rPB24GAw52B2nHDgLVBIbMywLSzwq','l2f1DgGVDJeVC2LNBM91Da','DgLTzw91Da','CMv0DxjUihrOAxm','Aw5PDgLHBgL6zq','zNvUy3rPB24','zgv0ywLSCW','C2v0vwLUDdG','ChjVyMu','zw1PDa','C3vIC2nYAwjL','C29Tzq','Bwf4','z2v0qNvJA2v0','D2fYBG','C2v0DxbizwfYDgjLyxq','zgvJB2rLu3rYAw5N','CgfZC3bOCMfZzq','y2XVC2vK','rMfPBgvKihrVigrLBgv0zsbMDw5JDgLVBG','x3f1zxj5','y29SDw1U','y2XLyw51Ca','AgvHzgvYCW','Bwf4uMvJB25Uzwn0qxr0zw1WDhm','B2zMBgLUzq','Cg9ZDa','DxbKyxrLrw52','CMfUz2u','zNjVBunOyxjdB2rL','Bgv2zwW','C2vUza','rMfPBgvKihrVignVChKGzMLSzq','rgvJB2rLCG','C2v0lwnVB2TPzq','C3bSAxq','zg9pCgvU','B25bBNK','zw50CNLWB2LUDa','z2v0','AwXPA2u','AgfUzhnOywTL','B25bDxrOu3rHDgvdAgfUz2u','x2fUEu91DgDVAw5NtgLZDgvUzxjZ','zMXHz3m','ywrKrxzLBNrmAxn0zw5LCNm','C2v0sxrLBq','yxv0B0rLDgvJDen1C3rVBurHDgfIyxnL','C2TPCfjLy29UBMvJDa','CMvJB25Uzwn0','yMfZzty0','z290igjPBMfYEsbKyxrHihDOzw4GBM90ihjLy29UC3rYDwn0Aw5NigeGCgfJA2v0','y2HHBM5LBhm','Ahr0CenSAwvUDa','zgf0yufYCMf5','CMvMCMvZAf90B2TLBG','B3b0CW','y2fSBa','C2v0rgLZywjSzuHLywrLCKnOzwnR','CMvXDwvZDhm','l2zPBgvZl21VDMu','Cg9ZDgDYzxnFy2HHBMDLCZO','CMv0DxjUpxjLChjLC2vUDgf0Aw9U','zMLUAxnOzwrszwnVBNn0CNvJDgLVBG','C2v0vgLTzw91Da','DxbKyxrLt3b0Aw9UCW','x29UrhjHAw4','BNnWCW','y2XVC2vpBKjLzM9YzxvUBg9Hza','mJy5nZG2ngnnAKXVva','DxjS','C3rHDgu','zw5JB2rLqxntDhjPBMC','yxv0Ag9YAxr5','zxHLy3v0zvf1zxj5','D2L0AevYCM9Y','DhjHy2S','C3rYAw5N','l21LDgfKyxrH','y29UBMvJDf9LCNjVCG','CMvZzxq','BgLTAxq','C2v0u2vZC2LVBKLUDgvYBMfS','DxnLCKLUzM8','C2v0DxbjBNrLCMnLChrVCNm','B3bLCMf0B3i','B25TzxnZywDL','AxnbCNjHEq','C2v0sML0DgvY','C2vJDxjL','qMvHCMvYia','Cgf0Aa','DxbKyxrLqNvJA2v0','AM9PBG','BwvZC2fNzq','CMvQzwn0','ChjVDg90ExbL','ChjPB3jxzwjZB2nRzxrtDwnJzxnZ','z2v0vwLUDde2','zMX1C2G','y29UBMvJDgLUzW','nZu3oezHuhf3Da','x3bPBMDjBNrLCNzHBa','oI8V','zgv0zwn0zwrdB25MAwC','y2XPzw50','AM9PBMvK'];_0x46ca=function(){return _0x4310ca;};return _0x46ca();}let value=![];try{value=typeof XMLHttpRequest!=='undefined'&&'withCredentials'in new XMLHttpRequest();}catch(_0x587fc8){}const hasCORS=value;function empty(){}class BaseXHR extends Polling{constructor(_0x13d2b8){function _0x13910b(_0x24f1ea,_0x478627){return _0x32c5(_0x24f1ea-0x2d6,_0x478627);}super(_0x13d2b8);if(typeof location!==_0x13910b(0x576,0x634)){const isSSL=_0x13910b(0x645,0x711)===location[_0x13910b(0x4d4,0x575)];let _0x147c80=location[_0x13910b(0x5bd,0x6da)];!_0x147c80&&(_0x147c80=isSSL?_0x13910b(0x516,0x5d0):'80'),this['xd']=typeof location!=='undefined'&&_0x13d2b8[_0x13910b(0x55d,0x4c9)]!==location['hostname']||_0x147c80!==_0x13d2b8['port'];}}['doWrite'](data,_0xbf1e15){const req=this[_0x1583e1(0x21e,0x313)]({'method':'POST','data':data});req['on']('success',_0xbf1e15);function _0x1583e1(_0x464e1e,_0x385bc4){return _0x32c5(_0x464e1e- -0x16d,_0x385bc4);}req['on']('error',(_0x44a6f7,_0x257b57)=>{function _0x522c26(_0x4fa943,_0xed9bc0){return _0x32c5(_0x4fa943- -0x12d,_0xed9bc0);}this[_0x522c26(0x26b,0x1af)](_0x522c26(0xc0,0x1cf),_0x44a6f7,_0x257b57);});}['doPoll'](){const req=this['request']();req['on'](_0xe35d1e(0x567,0x5e9),this[_0xe35d1e(0x72e,0x6ec)]['bind'](this));function _0xe35d1e(_0x1d46ae,_0x3317a1){return _0x32c5(_0x3317a1-0x33a,_0x1d46ae);}req['on']('error',(_0x30ebac,_0x5db5dc)=>{this['onError']('xhr\x20poll\x20error',_0x30ebac,_0x5db5dc);}),this['pollXhr']=req;}}class Request extends Emitter{constructor(createRequest,_0x28df46,_0x1b3a7a){super(),this['createRequest']=createRequest;function _0x50c63a(_0x4d0a56,_0x451e87){return _0x32c5(_0x4d0a56- -0x2ec,_0x451e87);}installTimerFunctions(this,_0x1b3a7a),this['_opts']=_0x1b3a7a,this[_0x50c63a(0xb9,0x1c6)]=_0x1b3a7a[_0x50c63a(-0xfd,-0x95)]||'GET',this[_0x50c63a(-0x73,-0xae)]=_0x28df46,this[_0x50c63a(-0x72,-0x4b)]=undefined!==_0x1b3a7a[_0x50c63a(-0x3d,0x4c)]?_0x1b3a7a[_0x50c63a(-0x3d,0x19)]:null,this[_0x50c63a(-0x9a,-0x173)]();}['_create'](){var _0x411a00;function _0x407a1f(_0x215369,_0x2b288d){return _0x32c5(_0x215369- -0x2d7,_0x2b288d);}const _0x504a97=pick(this[_0x407a1f(-0xf0,-0x106)],_0x407a1f(-0xc2,-0x71),_0x407a1f(0x89,0x126),_0x407a1f(-0x44,0x13),_0x407a1f(0x2b,-0x55),_0x407a1f(0xea,0x108),'ca','ciphers',_0x407a1f(0x8a,0x8b),_0x407a1f(-0xaa,-0x196));_0x504a97['xdomain']=!!this[_0x407a1f(-0xf0,-0x12f)]['xd'];const _0x5b24dc=this[_0x407a1f(-0xfb,-0x168)]=this['createRequest'](_0x504a97);try{_0x5b24dc[_0x407a1f(-0xec,-0xde)](this['_method'],this[_0x407a1f(-0x5e,0x78)],!![]);try{if(this[_0x407a1f(-0xf0,-0x19f)][_0x407a1f(-0xf4,-0x11f)]){_0x5b24dc[_0x407a1f(0x54,-0x95)]&&_0x5b24dc[_0x407a1f(0x54,0x161)](!![]);for(let _0x475dfb in this['_opts']['extraHeaders']){this['_opts'][_0x407a1f(-0xf4,-0x1e8)]['hasOwnProperty'](_0x475dfb)&&_0x5b24dc['setRequestHeader'](_0x475dfb,this['_opts'][_0x407a1f(-0xf4,-0x138)][_0x475dfb]);}}}catch(_0x20d324){}if('POST'===this[_0x407a1f(0xce,0xfd)])try{_0x5b24dc[_0x407a1f(-0xf2,-0x8b)]('Content-type',_0x407a1f(0x11d,0x140));}catch(_0x42d93f){}try{_0x5b24dc['setRequestHeader'](_0x407a1f(-0xd4,-0x1c6),'*/*');}catch(_0xc58264){}(_0x411a00=this[_0x407a1f(-0xf0,0xd)][_0x407a1f(-0x42,-0xd2)])===null||_0x411a00===void 0x0?void 0x0:_0x411a00[_0x407a1f(-0xae,-0x13d)](_0x5b24dc),_0x407a1f(-0x1c,-0x125)in _0x5b24dc&&(_0x5b24dc['withCredentials']=this[_0x407a1f(-0xf0,-0x4c)][_0x407a1f(-0x1c,0x24)]),this[_0x407a1f(-0xf0,-0x1b2)]['requestTimeout']&&(_0x5b24dc['timeout']=this[_0x407a1f(-0xf0,-0x172)]['requestTimeout']),_0x5b24dc[_0x407a1f(-0xee,0x13)]=()=>{var _0x3a0c8b;function _0x2155b2(_0x1ce208,_0x2767eb){return _0x32c5(_0x2767eb-0x215,_0x1ce208);}_0x5b24dc['readyState']===0x3&&((_0x3a0c8b=this[_0x2155b2(0x32f,0x3fc)][_0x2155b2(0x4d3,0x4aa)])===null||_0x3a0c8b===void 0x0?void 0x0:_0x3a0c8b['parseCookies'](_0x5b24dc[_0x2155b2(0x50b,0x5b2)](_0x2155b2(0x4f0,0x528))));if(0x4!==_0x5b24dc['readyState'])return;0xc8===_0x5b24dc['status']||0x4c7===_0x5b24dc[_0x2155b2(0x34e,0x46d)]?this[_0x2155b2(0x482,0x415)]():this[_0x2155b2(0x407,0x3e9)](()=>{function _0x599e17(_0x34e948,_0x19f36b){return _0x32c5(_0x19f36b-0x307,_0x34e948);}this[_0x599e17(0x475,0x4c7)](typeof _0x5b24dc[_0x599e17(0x646,0x55f)]===_0x599e17(0x441,0x525)?_0x5b24dc[_0x599e17(0x55a,0x55f)]:0x0);},0x0);},_0x5b24dc[_0x407a1f(0x39,-0xcc)](this['_data']);}catch(_0x1ae2dc){this[_0x407a1f(-0x103,-0xf1)](()=>{this['_onError'](_0x1ae2dc);},0x0);return;}typeof document!=='undefined'&&(this[_0x407a1f(0x106,0x1d)]=Request['requestsCount']++,Request['requests'][this['_index']]=this);}['_onError'](_0x4b7a1b){function _0x4fcbcf(_0x3967e4,_0x4aa283){return _0x32c5(_0x4aa283- -0x13e,_0x3967e4);}this[_0x4fcbcf(0x117,0x1a7)]('error',_0x4b7a1b,this[_0x4fcbcf(0x1,0x9e)]),this[_0x4fcbcf(0x2ae,0x26f)](!![]);}[_0xf108a4(0x510,0x50d)](fromError){if(_0x13c659(0x2ab,0x38e)===typeof this['_xhr']||null===this['_xhr'])return;this[_0x13c659(0x25f,0x2ca)]['onreadystatechange']=empty;if(fromError)try{this['_xhr']['abort']();}catch(_0x22144f){}function _0x13c659(_0x15cb72,_0x5c3dcd){return _0x32c5(_0x5c3dcd-0xee,_0x15cb72);}typeof document!=='undefined'&&delete Request[_0x13c659(0x500,0x41a)][this['_index']],this[_0x13c659(0x36b,0x2ca)]=null;}['_onLoad'](){function _0x53bb77(_0x78df80,_0x3810e1){return _0x32c5(_0x78df80-0xc3,_0x3810e1);}const data=this[_0x53bb77(0x29f,0x3af)]['responseText'];data!==null&&(this[_0x53bb77(0x3a8,0x49c)]('data',data),this['emitReserved'](_0x53bb77(0x2fc,0x30d)),this['_cleanup']());}[_0xf108a4(0x409,0x38e)](){function _0x499bd0(_0x494110,_0x21e125){return _0x32c5(_0x494110-0x237,_0x21e125);}this[_0x499bd0(0x5e4,0x5ed)]();}}Request[_0xf108a4(0x427,0x50f)]=0x0,Request[_0xf108a4(0x569,0x48c)]={};if(typeof document!==_0xf108a4(0x4b6,0x400)){if(typeof attachEvent===_0xf108a4(0x4af,0x456))attachEvent(_0xf108a4(0x3d8,0x3b3),unloadHandler);else{if(typeof addEventListener===_0xf108a4(0x44f,0x456)){const terminationEvent='onpagehide'in globalThisShim?'pagehide':'unload';addEventListener(terminationEvent,unloadHandler,![]);}}}function unloadHandler(){function _0x23005a(_0x410ea6,_0xd5b565){return _0x32c5(_0x410ea6- -0x28f,_0xd5b565);}for(let _0x172aa8 in Request[_0x23005a(0x9d,0x12e)]){Request['requests']['hasOwnProperty'](_0x172aa8)&&Request['requests'][_0x172aa8][_0x23005a(-0x61,0x96)]();}}const hasXHR2=(function(){function _0x3caf48(_0x14ca62,_0x3d9838){return _0x32c5(_0x3d9838- -0x3a7,_0x14ca62);}const _0x3be88b=newRequest({'xdomain':![]});return _0x3be88b&&_0x3be88b[_0x3caf48(-0x4f,-0x164)]!==null;}());class XHR extends BaseXHR{constructor(_0x9f84e3){super(_0x9f84e3);const _0x12a8b7=_0x9f84e3&&_0x9f84e3[_0x10b1f3(0x147,0x20d)];function _0x10b1f3(_0x269903,_0x517835){return _0x32c5(_0x517835- -0xb2,_0x269903);}this[_0x10b1f3(0xf5,0x1d9)]=hasXHR2&&!_0x12a8b7;}[_0xf108a4(0x449,0x4eb)](_0x2062e4={}){return Object['assign'](_0x2062e4,{'xd':this['xd']},this['opts']),new Request(newRequest,this['uri'](),_0x2062e4);}}function newRequest(_0x5d3445){function _0x3be77a(_0x448d2e,_0x564609){return _0x32c5(_0x448d2e- -0xd8,_0x564609);}const xdomain=_0x5d3445['xdomain'];try{if(_0x3be77a(0x1c8,0x281)!==typeof XMLHttpRequest&&(!xdomain||hasCORS))return new XMLHttpRequest();}catch(_0x8de913){}if(!xdomain)try{return new globalThisShim[([_0x3be77a(0x2f6,0x348)][_0x3be77a(0x2ba,0x2d9)]('Object')[_0x3be77a(0x276,0x1ee)]('X'))]('Microsoft.XMLHTTP');}catch(_0x1534a7){}}const isReactNative=typeof navigator!==_0xf108a4(0x44a,0x400)&&typeof navigator['product']==='string'&&navigator[_0xf108a4(0x31f,0x376)][_0xf108a4(0x3f1,0x409)]()===_0xf108a4(0x24a,0x358);class BaseWS extends Transport{get[_0xf108a4(0x5b3,0x54e)](){return'websocket';}[_0xf108a4(0x41a,0x475)](){const _0x2be0e1=this['uri'](),_0x1fa1e0=this['opts'][_0x46d274(0x1f,-0xef)],_0x43e3c5=isReactNative?{}:pick(this[_0x46d274(0x77,0xa4)],_0x46d274(-0x9d,-0x11e),'perMessageDeflate','pfx',_0x46d274(-0x1f,-0x7e),'passphrase',_0x46d274(0x10f,0x158),'ca','ciphers',_0x46d274(0xaf,0x5d),_0x46d274(0x5,-0xe0),'protocolVersion',_0x46d274(-0x47,-0xa),'maxPayload',_0x46d274(-0x26,-0xc9),_0x46d274(0xd0,0x184));this['opts'][_0x46d274(-0xcf,-0x189)]&&(_0x43e3c5['headers']=this[_0x46d274(0x77,0x83)][_0x46d274(-0xcf,-0x4c)]);try{this['ws']=this[_0x46d274(0x111,0x18d)](_0x2be0e1,_0x1fa1e0,_0x43e3c5);}catch(_0xbaa68){return this['emitReserved'](_0x46d274(0xe5,0x83),_0xbaa68);}function _0x46d274(_0x31f278,_0x251d42){return _0x32c5(_0x31f278- -0x2b2,_0x251d42);}this['ws']['binaryType']=this['socket'][_0x46d274(0xe,0xd7)],this['addEventListeners']();}[_0xf108a4(0x49d,0x47e)](){this['ws']['onopen']=()=>{function _0x156e68(_0x47a1ea,_0x2bea1d){return _0x32c5(_0x47a1ea- -0x2f8,_0x2bea1d);}this['opts'][_0x156e68(-0xcb,0x39)]&&this['ws'][_0x156e68(0xe0,0x9e)][_0x156e68(0xf2,0x17e)](),this[_0x156e68(0xf0,-0x32)]();},this['ws'][_0x4d9dfb(-0x67,-0x90)]=_0x73c293=>this[_0x4d9dfb(0x18b,0xdf)]({'description':'websocket\x20connection\x20closed','context':_0x73c293}),this['ws'][_0x4d9dfb(0x17,0x5e)]=_0x4bb7aa=>this[_0x4d9dfb(0x1d5,0xc9)](_0x4bb7aa['data']);function _0x4d9dfb(_0x5f0938,_0x700965){return _0x32c5(_0x700965- -0x2e9,_0x5f0938);}this['ws'][_0x4d9dfb(0x2,0x7)]=_0x276e3f=>this[_0x4d9dfb(0xc3,0xaf)]('websocket\x20error',_0x276e3f);}['write'](_0x2cd014){this[_0x29a5bf(0x2e,-0x56)]=![];function _0x29a5bf(_0x161422,_0x20130c){return _0x32c5(_0x161422- -0x32e,_0x20130c);}for(let _0x46956d=0x0;_0x46956d<_0x2cd014['length'];_0x46956d++){const _0x178055=_0x2cd014[_0x46956d],_0x4bb851=_0x46956d===_0x2cd014[_0x29a5bf(-0x9e,-0x43)]-0x1;encodePacket(_0x178055,this['supportsBinary'],data=>{try{this[_0x3f3067(0x337,0x2b4)](_0x178055,data);}catch(_0x25db36){}function _0x3f3067(_0x489617,_0x5b5480){return _0x32c5(_0x489617- -0xa9,_0x5b5480);}_0x4bb851&&nextTick(()=>{this['writable']=!![];function _0x50511f(_0xc15cef,_0x46cbc6){return _0x32c5(_0x46cbc6-0x170,_0xc15cef);}this['emitReserved'](_0x50511f(0x617,0x52f));},this['setTimeoutFn']);});}}['doClose'](){function _0x36c569(_0x2a3276,_0x5ef903){return _0x32c5(_0x2a3276- -0x223,_0x5ef903);}typeof this['ws']!=='undefined'&&(this['ws'][_0x36c569(0xcd,0xde)]=()=>{},this['ws'][_0x36c569(0x1af,0x13d)](),this['ws']=null);}[_0xf108a4(0x5af,0x4ee)](){const _0x349dbc=this['opts'][_0x47af15(0x3ea,0x37b)]?_0x47af15(0x46f,0x447):'ws',_0xf43657=this['query']||{};this[_0x47af15(0x3c9,0x379)][_0x47af15(0x33f,0x249)]&&(_0xf43657[this[_0x47af15(0x3c9,0x3b2)]['timestampParam']]=randomString());!this[_0x47af15(0x32b,0x355)]&&(_0xf43657['b64']=0x1);function _0x47af15(_0x5da92b,_0x18470f){return _0x32c5(_0x5da92b-0xa0,_0x18470f);}return this[_0x47af15(0x30d,0x420)](_0x349dbc,_0xf43657);}}const WebSocketCtor=globalThisShim['WebSocket']||globalThisShim[_0xf108a4(0x4a8,0x39f)];class WS extends BaseWS{['createSocket'](_0x1027dc,_0x30f3ec,_0x18c6f6){return!isReactNative?_0x30f3ec?new WebSocketCtor(_0x1027dc,_0x30f3ec):new WebSocketCtor(_0x1027dc):new WebSocketCtor(_0x1027dc,_0x30f3ec,_0x18c6f6);}['doWrite'](_0x1eb7f7,data){function _0x220d76(_0x2b79a8,_0x399cf2){return _0x32c5(_0x2b79a8-0x12a,_0x399cf2);}this['ws'][_0x220d76(0x43a,0x4f3)](data);}}class WT extends Transport{get[_0xf108a4(0x52f,0x54e)](){function _0x352489(_0x35e7c7,_0x1f3245){return _0x32c5(_0x35e7c7- -0xd3,_0x1f3245);}return _0x352489(0x144,0x22e);}[_0xf108a4(0x40b,0x475)](){function _0x346a4e(_0x3afba3,_0x252f77){return _0x32c5(_0x252f77-0x21,_0x3afba3);}try{this[_0x346a4e(0x118,0x1f7)]=new WebTransport(this[_0x346a4e(0x1d2,0x28e)]('https'),this['opts'][_0x346a4e(0x303,0x413)][this[_0x346a4e(0x316,0x40f)]]);}catch(_0xbf973){return this[_0x346a4e(0x1fc,0x306)](_0x346a4e(0x3c0,0x3b8),_0xbf973);}this['_transport']['closed'][_0x346a4e(0x43d,0x38c)](()=>{this['onClose']();})['catch'](_0x2a1b44=>{function _0x4ad3e5(_0x22ee1e,_0x22e621){return _0x32c5(_0x22e621- -0x3e7,_0x22ee1e);}this[_0x4ad3e5(-0x74,-0x4f)]('webtransport\x20error',_0x2a1b44);}),this['_transport'][_0x346a4e(0x3a0,0x3ba)]['then'](()=>{function _0x14d343(_0x3aa81c,_0x470240){return _0x32c5(_0x3aa81c- -0x2a3,_0x470240);}this[_0x14d343(-0xcd,0x32)]['createBidirectionalStream']()['then'](_0x5a3528=>{const _0x38694f=createPacketDecoderStream(Number[_0x339f8f(0x70b,0x7da)],this['socket']['binaryType']);function _0x339f8f(_0x3c0331,_0x5f6c7){return _0x32c5(_0x3c0331-0x353,_0x5f6c7);}const _0x57fcce=_0x5a3528[_0x339f8f(0x742,0x711)]['pipeThrough'](_0x38694f)[_0x339f8f(0x739,0x7ae)](),_0x459832=createPacketEncoderStream();_0x459832['readable']['pipeTo'](_0x5a3528[_0x339f8f(0x6af,0x651)]),this['_writer']=_0x459832['writable'][_0x339f8f(0x603,0x624)]();const _0x3a88a6=()=>{function _0x10e0dc(_0x3c63a0,_0x30907b){return _0x32c5(_0x3c63a0- -0x231,_0x30907b);}_0x57fcce['read']()['then'](({done:_0x70b6f6,value:_0x1efbae})=>{if(_0x70b6f6)return;this['onPacket'](_0x1efbae),_0x3a88a6();})[_0x10e0dc(0x154,0xa6)](_0x19bc18=>{});};_0x3a88a6();const _0xabb563={'type':_0x339f8f(0x53e,0x4c6)};this[_0x339f8f(0x6f9,0x7db)][_0x339f8f(0x61f,0x554)]&&(_0xabb563['data']=_0x339f8f(0x63f,0x563)+this[_0x339f8f(0x6f9,0x68c)][_0x339f8f(0x61f,0x67e)]+'\x22}'),this[_0x339f8f(0x6d4,0x715)]['write'](_0xabb563)['then'](()=>this['onOpen']());});});}[_0xf108a4(0x2ff,0x3a7)](_0x4eff04){function _0x3a7643(_0x248e7b,_0x2d7117){return _0x32c5(_0x248e7b-0x207,_0x2d7117);}this[_0x3a7643(0x563,0x584)]=![];for(let _0xd6965=0x0;_0xd6965<_0x4eff04[_0x3a7643(0x497,0x416)];_0xd6965++){const _0x3a3952=_0x4eff04[_0xd6965],_0x2418f7=_0xd6965===_0x4eff04['length']-0x1;this['_writer']['write'](_0x3a3952)[_0x3a7643(0x572,0x55f)](()=>{function _0x1d9569(_0x4b2303,_0x766a57){return _0x32c5(_0x4b2303-0x222,_0x766a57);}_0x2418f7&&nextTick(()=>{this[_0x2924c3(0x430,0x400)]=!![];function _0x2924c3(_0x43aac6,_0x2d112d){return _0x32c5(_0x43aac6-0xd4,_0x2d112d);}this['emitReserved']('drain');},this[_0x1d9569(0x3f6,0x413)]);});}}[_0xf108a4(0x4f9,0x4cc)](){function _0x2feebf(_0x4d49b9,_0xb5a02b){return _0x32c5(_0xb5a02b- -0x384,_0x4d49b9);}var _0x516591;(_0x516591=this[_0x2feebf(-0x13a,-0x1ae)])===null||_0x516591===void 0x0?void 0x0:_0x516591['close']();}}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=[_0xf108a4(0x2f9,0x34e),'protocol','authority',_0xf108a4(0x513,0x4a4),_0xf108a4(0x4d2,0x408),'password','host',_0xf108a4(0x4ff,0x447),'relative',_0xf108a4(0x3c5,0x4ac),_0xf108a4(0x3e3,0x3f9),'file',_0xf108a4(0x4e1,0x506),'anchor'];function parse(_0x702039){function _0x2e116b(_0x2acae7,_0x256a79){return _0x32c5(_0x256a79- -0xa7,_0x2acae7);}if(_0x702039[_0x2e116b(0x185,0x1e9)]>0x1f40)throw'URI\x20too\x20long';const _0x3e1e77=_0x702039,_0x145751=_0x702039['indexOf']('['),_0x3ea956=_0x702039['indexOf'](']');_0x145751!=-0x1&&_0x3ea956!=-0x1&&(_0x702039=_0x702039[_0x2e116b(0x3ad,0x2e6)](0x0,_0x145751)+_0x702039['substring'](_0x145751,_0x3ea956)[_0x2e116b(0x2be,0x211)](/:/g,';')+_0x702039[_0x2e116b(0x32f,0x2e6)](_0x3ea956,_0x702039[_0x2e116b(0x11a,0x1e9)]));let _0x12bbca=re[_0x2e116b(0x3e7,0x2dd)](_0x702039||''),_0x580516={},_0x408aa7=0xe;while(_0x408aa7--){_0x580516[parts[_0x408aa7]]=_0x12bbca[_0x408aa7]||'';}return _0x145751!=-0x1&&_0x3ea956!=-0x1&&(_0x580516[_0x2e116b(0x40,0x147)]=_0x3e1e77,_0x580516[_0x2e116b(0x210,0x207)]=_0x580516[_0x2e116b(0x2e7,0x207)]['substring'](0x1,_0x580516['host'][_0x2e116b(0x267,0x1e9)]-0x1)['replace'](/;/g,':'),_0x580516['authority']=_0x580516[_0x2e116b(0x341,0x293)]['replace']('[','')[_0x2e116b(0x1d9,0x211)](']','')[_0x2e116b(0x126,0x211)](/;/g,':'),_0x580516[_0x2e116b(0x289,0x1d4)]=!![]),_0x580516['pathNames']=pathNames(_0x580516,_0x580516[_0x2e116b(0x2ea,0x2a5)]),_0x580516[_0x2e116b(0x208,0x2ec)]=queryKey(_0x580516,_0x580516['query']),_0x580516;}function pathNames(_0x433065,_0x58075b){const _0x25fb44=/\/{2,9}/g,_0x5e9ab1=_0x58075b['replace'](_0x25fb44,'/')[_0x16a7de(0x20c,0x1a7)]('/');(_0x58075b['slice'](0x0,0x1)=='/'||_0x58075b['length']===0x0)&&_0x5e9ab1['splice'](0x0,0x1);_0x58075b[_0x16a7de(0x1b9,0x201)](-0x1)=='/'&&_0x5e9ab1[_0x16a7de(0x15f,0x1c0)](_0x5e9ab1[_0x16a7de(0x188,0x12a)]-0x1,0x1);function _0x16a7de(_0x418392,_0x46485f){return _0x32c5(_0x418392- -0x108,_0x46485f);}return _0x5e9ab1;}function queryKey(_0x1586e7,_0xe42907){function _0xecdfab(_0x5b1c53,_0x59d777){return _0x32c5(_0x59d777-0x3b4,_0x5b1c53);}const data={};return _0xe42907[_0xecdfab(0x719,0x66c)](/(?:^|&)([^&=]*)=?([^&]*)/g,function(_0x337c1c,_0x53c803,_0xac56ac){_0x53c803&&(data[_0x53c803]=_0xac56ac);}),data;}const withEventListeners=typeof addEventListener==='function'&&typeof removeEventListener===_0xf108a4(0x4fa,0x456),OFFLINE_EVENT_LISTENERS=[];withEventListeners&&addEventListener(_0xf108a4(0x371,0x46a),()=>{OFFLINE_EVENT_LISTENERS['forEach'](listener=>listener());},![]);class SocketWithoutUpgrade extends Emitter{constructor(_0x21c8a4,_0x40fec1){super(),this['binaryType']=defaultBinaryType,this[_0x33c20b(0x75b,0x6ce)]=[],this[_0x33c20b(0x66d,0x54c)]=0x0,this[_0x33c20b(0x581,0x69e)]=-0x1,this[_0x33c20b(0x7ca,0x6f0)]=-0x1,this['_maxPayload']=-0x1,this[_0x33c20b(0x667,0x631)]=Infinity;_0x21c8a4&&_0x33c20b(0x623,0x513)===typeof _0x21c8a4&&(_0x40fec1=_0x21c8a4,_0x21c8a4=null);if(_0x21c8a4){const parsedUri=parse(_0x21c8a4);_0x40fec1['hostname']=parsedUri['host'],_0x40fec1['secure']=parsedUri['protocol']===_0x33c20b(0x7bd,0x6f3)||parsedUri[_0x33c20b(0x623,0x545)]==='wss',_0x40fec1['port']=parsedUri['port'];if(parsedUri[_0x33c20b(0x711,0x6ed)])_0x40fec1[_0x33c20b(0x741,0x6ed)]=parsedUri[_0x33c20b(0x79a,0x6ed)];}else _0x40fec1['host']&&(_0x40fec1[_0x33c20b(0x6c9,0x5ce)]=parse(_0x40fec1['host'])[_0x33c20b(0x587,0x5f5)]);installTimerFunctions(this,_0x40fec1),this['secure']=null!=_0x40fec1[_0x33c20b(0x75c,0x691)]?_0x40fec1['secure']:typeof location!==_0x33c20b(0x6e2,0x5e7)&&_0x33c20b(0x768,0x6b6)===location['protocol'];_0x40fec1['hostname']&&!_0x40fec1['port']&&(_0x40fec1[_0x33c20b(0x615,0x62e)]=this['secure']?'443':'80');this['hostname']=_0x40fec1['hostname']||(typeof location!=='undefined'?location[_0x33c20b(0x60b,0x5ce)]:_0x33c20b(0x5b4,0x52d)),this['port']=_0x40fec1[_0x33c20b(0x64d,0x62e)]||(typeof location!==_0x33c20b(0x624,0x5e7)&&location[_0x33c20b(0x5a9,0x62e)]?location[_0x33c20b(0x6e7,0x62e)]:this['secure']?_0x33c20b(0x59c,0x587):'80'),this['transports']=[],this[_0x33c20b(0x60d,0x556)]={};function _0x33c20b(_0x52c5d,_0xfd225b){return _0x32c5(_0xfd225b-0x347,_0x52c5d);}_0x40fec1['transports']['forEach'](_0x2c3e32=>{function _0x4a9f4b(_0x4df8c4,_0x43dfd5){return _0x32c5(_0x4df8c4- -0xd2,_0x43dfd5);}const _0x325925=_0x2c3e32[_0x4a9f4b(0x27f,0x1a5)]['name'];this['transports'][_0x4a9f4b(0x1a5,0x1e7)](_0x325925),this[_0x4a9f4b(0x13d,0x12c)][_0x325925]=_0x2c3e32;}),this[_0x33c20b(0x76f,0x670)]=Object['assign']({'path':_0x33c20b(0x666,0x6bf),'agent':![],'withCredentials':![],'upgrade':!![],'timestampParam':'t','rememberUpgrade':![],'addTrailingSlash':!![],'rejectUnauthorized':!![],'perMessageDeflate':{'threshold':0x400},'transportOptions':{},'closeOnBeforeunload':![]},_0x40fec1),this['opts'][_0x33c20b(0x61f,0x693)]=this['opts']['path'][_0x33c20b(0x645,0x5ff)](/\/$/,'')+(this['opts']['addTrailingSlash']?'/':''),typeof this['opts'][_0x33c20b(0x732,0x6ed)]===_0x33c20b(0x740,0x685)&&(this[_0x33c20b(0x606,0x670)][_0x33c20b(0x7d8,0x6ed)]=decode(this[_0x33c20b(0x697,0x670)][_0x33c20b(0x7c1,0x6ed)])),withEventListeners&&(this[_0x33c20b(0x6dc,0x670)][_0x33c20b(0x61c,0x67c)]&&(this['_beforeunloadEventListener']=()=>{function _0x54fae9(_0x1ca401,_0x4c73e0){return _0x32c5(_0x4c73e0- -0x219,_0x1ca401);}this[_0x54fae9(-0x8a,0x92)]&&(this['transport'][_0x54fae9(0xf4,0x17d)](),this['transport'][_0x54fae9(0x280,0x1b9)]());},addEventListener('beforeunload',this[_0x33c20b(0x609,0x614)],![])),this[_0x33c20b(0x5e4,0x5ce)]!==_0x33c20b(0x615,0x52d)&&(this['_offlineEventListener']=()=>{function _0x5acb29(_0x21a1af,_0x44cb0c){return _0x32c5(_0x21a1af- -0x280,_0x44cb0c);}this[_0x5acb29(-0xb2,-0x35)]('transport\x20close',{'description':_0x5acb29(-0xa2,-0xda)});},OFFLINE_EVENT_LISTENERS[_0x33c20b(0x5c6,0x5be)](this['_offlineEventListener']))),this[_0x33c20b(0x5d1,0x670)][_0x33c20b(0x6c5,0x602)]&&(this[_0x33c20b(0x780,0x6f2)]=createCookieJar()),this['_open']();}['createTransport'](_0x37767d){const _0x48f902=Object[_0x3dc23f(0x28,-0x1c)]({},this[_0x3dc23f(0xcf,0x10e)]['query']);_0x48f902['EIO']=protocol$1;function _0x3dc23f(_0x2bf042,_0x29648e){return _0x32c5(_0x2bf042- -0x25a,_0x29648e);}_0x48f902['transport']=_0x37767d;if(this['id'])_0x48f902[_0x3dc23f(0x72,-0x29)]=this['id'];const _0x55e915=Object['assign']({},this[_0x3dc23f(0xcf,0xaf)],{'query':_0x48f902,'socket':this,'hostname':this['hostname'],'secure':this['secure'],'port':this['port']},this[_0x3dc23f(0xcf,0x6c)][_0x3dc23f(0x198,0x1b7)][_0x37767d]);return new this['_transportsByName'][_0x37767d](_0x55e915);}[_0xf108a4(0x48e,0x43c)](){if(this['transports']['length']===0x0){this['setTimeoutFn'](()=>{function _0x4c121c(_0x19d372,_0x7145f4){return _0x32c5(_0x19d372- -0x1a8,_0x7145f4);}this[_0x4c121c(0x13d,0x117)](_0x4c121c(0x1ef,0x129),_0x4c121c(0x233,0x252));},0x0);return;}function _0x158636(_0x4ae1ef,_0x46f1e8){return _0x32c5(_0x46f1e8- -0x31e,_0x4ae1ef);}const _0x4f029b=this[_0x158636(0xa,0xb)][_0x158636(-0x124,-0x163)]&&SocketWithoutUpgrade['priorWebsocketSuccess']&&this[_0x158636(0x20,0xc1)][_0x158636(-0x191,-0xac)]('websocket')!==-0x1?_0x158636(-0x1b6,-0x123):this[_0x158636(0x177,0xc1)][0x0];this['readyState']=_0x158636(0x59,0xad);const _0x13f82a=this[_0x158636(-0x9a,-0x6a)](_0x4f029b);_0x13f82a[_0x158636(-0x255,-0x133)](),this[_0x158636(0x11a,0xc0)](_0x13f82a);}[_0xf108a4(0x483,0x53e)](_0x58e896){this['transport']&&this['transport'][_0x388519(0x1d8,0x2be)]();this[_0x388519(0xed,0x1db)]=_0x58e896;function _0x388519(_0x512008,_0x4a396e){return _0x32c5(_0x512008- -0x1be,_0x4a396e);}_0x58e896['on'](_0x388519(0x201,0x2ca),this['_onDrain'][_0x388519(0x76,-0x3d)](this))['on']('packet',this[_0x388519(0x219,0x2f9)][_0x388519(0x76,0xc2)](this))['on'](_0x388519(0x1d9,0x2eb),this['_onError']['bind'](this))['on'](_0x388519(0x214,0x2fe),_0x13e9dd=>this['_onClose'](_0x388519(0xd3,0x1e6),_0x13e9dd));}['onOpen'](){function _0x1f076b(_0x39fe73,_0x3b83c2){return _0x32c5(_0x39fe73-0x16,_0x3b83c2);}this['readyState']='open',SocketWithoutUpgrade[_0x1f076b(0x368,0x2f6)]='websocket'===this[_0x1f076b(0x2c1,0x382)][_0x1f076b(0x404,0x4b2)],this[_0x1f076b(0x2fb,0x316)](_0x1f076b(0x201,0x291)),this[_0x1f076b(0x36a,0x3b0)]();}[_0xf108a4(0x637,0x537)](_0xba5463){function _0x1ce21a(_0x3b6b25,_0x2de676){return _0x32c5(_0x3b6b25-0xa8,_0x2de676);}if('opening'===this['readyState']||_0x1ce21a(0x293,0x196)===this['readyState']||_0x1ce21a(0x412,0x4e4)===this[_0x1ce21a(0x475,0x48a)]){this['emitReserved'](_0x1ce21a(0x283,0x20d),_0xba5463),this['emitReserved'](_0x1ce21a(0x2ff,0x2dd));switch(_0xba5463[_0x1ce21a(0x307,0x3f3)]){case _0x1ce21a(0x293,0x260):this[_0x1ce21a(0x2bc,0x302)](JSON['parse'](_0xba5463[_0x1ce21a(0x357,0x334)]));break;case _0x1ce21a(0x27a,0x208):this[_0x1ce21a(0x305,0x354)](_0x1ce21a(0x48d,0x504)),this[_0x1ce21a(0x38d,0x41d)]('ping'),this['emitReserved'](_0x1ce21a(0x48d,0x512)),this['_resetPingTimeout']();break;case'error':const _0x519636=new Error('server\x20error');_0x519636[_0x1ce21a(0x29f,0x1f8)]=_0xba5463[_0x1ce21a(0x357,0x421)],this['_onError'](_0x519636);break;case'message':this[_0x1ce21a(0x38d,0x2a7)]('data',_0xba5463['data']),this[_0x1ce21a(0x38d,0x296)]('message',_0xba5463['data']);break;}}}[_0xf108a4(0x37e,0x374)](data){this[_0x373588(0x2cd,0x3ea)](_0x373588(0x4b0,0x41f),data),this['id']=data['sid'],this['transport']['query']['sid']=data[_0x373588(0x370,0x3d1)];function _0x373588(_0x3bf3d2,_0xe7cc80){return _0x32c5(_0xe7cc80-0x105,_0x3bf3d2);}this[_0x373588(0x4d2,0x45c)]=data[_0x373588(0x3cc,0x2cd)],this['_pingTimeout']=data[_0x373588(0x34a,0x2ce)],this[_0x373588(0x314,0x2be)]=data[_0x373588(0x1e1,0x2cb)],this[_0x373588(0x5d5,0x4ed)]();if('closed'===this[_0x373588(0x561,0x4d2)])return;this[_0x373588(0x3de,0x47c)]();}[_0xf108a4(0x5cd,0x4d7)](){function _0x2bff36(_0xbbf0c8,_0x34b015){return _0x32c5(_0xbbf0c8-0x26c,_0x34b015);}this['clearTimeoutFn'](this[_0x2bff36(0x478,0x499)]);const _0xb050a0=this[_0x2bff36(0x5c3,0x5f6)]+this['_pingTimeout'];this[_0x2bff36(0x556,0x484)]=Date['now']()+_0xb050a0,this[_0x2bff36(0x478,0x3f1)]=this[_0x2bff36(0x440,0x322)](()=>{function _0x1ee2cb(_0x17e75c,_0x5d336d){return _0x32c5(_0x5d336d- -0x29b,_0x17e75c);}this[_0x1ee2cb(-0x22,-0xcd)](_0x1ee2cb(0x1bc,0x12f));},_0xb050a0),this[_0x2bff36(0x595,0x6ab)][_0x2bff36(0x499,0x465)]&&this['_pingTimeoutTimer']['unref']();}[_0xf108a4(0x47f,0x493)](){this[_0x2306f4(0x430,0x3ef)]['splice'](0x0,this['_prevBufferLen']),this[_0x2306f4(0x2ae,0x1b0)]=0x0;function _0x2306f4(_0x1ac551,_0x564c29){return _0x32c5(_0x1ac551-0xa9,_0x564c29);}0x0===this[_0x2306f4(0x430,0x3c9)]['length']?this[_0x2306f4(0x38e,0x32b)]('drain'):this[_0x2306f4(0x3fd,0x3bc)]();}[_0xf108a4(0x476,0x4b4)](){function _0x4472fc(_0x5ecf91,_0x359dd3){return _0x32c5(_0x359dd3-0x242,_0x5ecf91);}if('closed'!==this[_0x4472fc(0x58e,0x60f)]&&this[_0x4472fc(0x3d1,0x4ed)][_0x4472fc(0x5f8,0x59e)]&&!this['upgrading']&&this['writeBuffer']['length']){const _0xfd5410=this['_getWritablePackets']();this[_0x4472fc(0x45d,0x4ed)][_0x4472fc(0x4d5,0x552)](_0xfd5410),this[_0x4472fc(0x4de,0x447)]=_0xfd5410[_0x4472fc(0x541,0x4d2)],this[_0x4472fc(0x5f3,0x527)]('flush');}}['_getWritablePackets'](){const _0x4ff530=this['_maxPayload']&&this[_0x3090a1(0x4df,0x58f)]['name']==='polling'&&this[_0x3090a1(0x5bb,0x668)]['length']>0x1;if(!_0x4ff530)return this[_0x3090a1(0x5bb,0x5d7)];let _0x560d32=0x1;for(let _0x4c9ec4=0x0;_0x4c9ec4<this['writeBuffer'][_0x3090a1(0x4c4,0x4ec)];_0x4c9ec4++){const data=this['writeBuffer'][_0x4c9ec4][_0x3090a1(0x4e3,0x416)];data&&(_0x560d32+=byteLength(data));if(_0x4c9ec4>0x0&&_0x560d32>this['_maxPayload'])return this['writeBuffer'][_0x3090a1(0x4f5,0x524)](0x0,_0x4c9ec4);_0x560d32+=0x2;}function _0x3090a1(_0x5b0a08,_0x2ed16c){return _0x32c5(_0x5b0a08-0x234,_0x2ed16c);}return this['writeBuffer'];}['_hasPingExpired'](){function _0x36ed97(_0x1c0b9e,_0x4d115b){return _0x32c5(_0x4d115b- -0x354,_0x1c0b9e);}if(!this[_0x36ed97(0x74,-0x6a)])return!![];const _0x228e82=Date['now']()>this['_pingTimeoutTime'];return _0x228e82&&(this[_0x36ed97(-0xbf,-0x6a)]=0x0,nextTick(()=>{function _0x5861ba(_0x1278e1,_0x438f62){return _0x32c5(_0x1278e1-0x1e4,_0x438f62);}this[_0x5861ba(0x3b2,0x3c0)](_0x5861ba(0x5ae,0x5d9));},this['setTimeoutFn'])),_0x228e82;}['write'](_0x43080d,_0x4bfc8c,_0x54ce8c){this['_sendPacket'](_0x27628a(0x3da,0x4ca),_0x43080d,_0x4bfc8c,_0x54ce8c);function _0x27628a(_0x2dfc75,_0x1c0c3d){return _0x32c5(_0x1c0c3d-0x17b,_0x2dfc75);}return this;}['send'](_0x699ba3,_0x4e68af,_0x1b5411){this['_sendPacket'](_0x5b092c(0x30c,0x25b),_0x699ba3,_0x4e68af,_0x1b5411);function _0x5b092c(_0x2d9bdc,_0x4d9f2d){return _0x32c5(_0x2d9bdc- -0x43,_0x4d9f2d);}return this;}[_0xf108a4(0x29f,0x3bd)](_0x2fd7ea,data,_0x3e0e0a,_0x1ee71f){_0x26dfd5(0x4cd,0x582)===typeof data&&(_0x1ee71f=data,data=undefined);'function'===typeof _0x3e0e0a&&(_0x1ee71f=_0x3e0e0a,_0x3e0e0a=null);if(_0x26dfd5(0x6dd,0x5f6)===this['readyState']||_0x26dfd5(0x4f7,0x58f)===this[_0x26dfd5(0x594,0x659)])return;_0x3e0e0a=_0x3e0e0a||{},_0x3e0e0a['compress']=![]!==_0x3e0e0a[_0x26dfd5(0x4ea,0x57b)];const _0x46c9fa={'type':_0x2fd7ea,'data':data,'options':_0x3e0e0a};this[_0x26dfd5(0x4ec,0x571)]('packetCreate',_0x46c9fa),this['writeBuffer'][_0x26dfd5(0x58a,0x503)](_0x46c9fa);function _0x26dfd5(_0x497a07,_0xfe85ba){return _0x32c5(_0xfe85ba-0x28c,_0x497a07);}if(_0x1ee71f)this[_0x26dfd5(0x4f9,0x50f)](_0x26dfd5(0x504,0x5e0),_0x1ee71f);this['flush']();}['close'](){function _0x4838e8(_0x1bb12b,_0x3c9b03){return _0x32c5(_0x3c9b03-0x1c3,_0x1bb12b);}const _0x516c62=()=>{this['_onClose']('forced\x20close'),this['transport']['close']();},_0x210835=()=>{this[_0x37f656(0x137,0x8d)](_0x37f656(0x131,0x72),_0x210835),this[_0x37f656(0x3b,0x8d)](_0x37f656(0x200,0xde),_0x210835);function _0x37f656(_0x5b22a9,_0x12bf07){return _0x32c5(_0x12bf07- -0x17e,_0x5b22a9);}_0x516c62();},_0x19eaf2=()=>{function _0x3f06ae(_0x1a2dcb,_0xe0e752){return _0x32c5(_0x1a2dcb-0x301,_0xe0e752);}this['once'](_0x3f06ae(0x4f1,0x59b),_0x210835),this[_0x3f06ae(0x584,0x5e2)]('upgradeError',_0x210835);};if('opening'===this[_0x4838e8(0x4d4,0x590)]||_0x4838e8(0x462,0x3ae)===this['readyState']){this['readyState']='closing';if(this[_0x4838e8(0x4b0,0x54a)]['length'])this[_0x4838e8(0x3e3,0x446)]('drain',()=>{this['upgrading']?_0x19eaf2():_0x516c62();});else this['upgrading']?_0x19eaf2():_0x516c62();}return this;}['_onError'](_0x105ce2){SocketWithoutUpgrade[_0x571939(0x309,0x1e9)]=![];if(this[_0x571939(0x2e0,0x371)][_0x571939(0x352,0x38f)]&&this['transports']['length']>0x1&&this['readyState']==='opening')return this['transports'][_0x571939(0x1e2,0x2c0)](),this[_0x571939(0x293,0x2ea)]();this[_0x571939(0x29c,0x212)]('error',_0x105ce2);function _0x571939(_0x456015,_0x12c086){return _0x32c5(_0x456015- -0x49,_0x12c086);}this[_0x571939(0x185,0x20d)](_0x571939(0x1dc,0x10b),_0x105ce2);}[_0xf108a4(0x398,0x32e)](_0xf06b97,_0x100268){function _0x418176(_0x5d3091,_0x5cd4b3){return _0x32c5(_0x5d3091-0x3e4,_0x5cd4b3);}if('opening'===this['readyState']||'open'===this['readyState']||'closing'===this['readyState']){this[_0x418176(0x5e5,0x567)](this[_0x418176(0x5f0,0x6f8)]),this['transport']['removeAllListeners']('close'),this['transport'][_0x418176(0x7b6,0x694)](),this['transport']['removeAllListeners']();if(withEventListeners){this['_beforeunloadEventListener']&&removeEventListener('beforeunload',this[_0x418176(0x6b1,0x72d)],![]);if(this['_offlineEventListener']){const _0x2a5ab4=OFFLINE_EVENT_LISTENERS['indexOf'](this['_offlineEventListener']);_0x2a5ab4!==-0x1&&OFFLINE_EVENT_LISTENERS['splice'](_0x2a5ab4,0x1);}}this[_0x418176(0x7b1,0x818)]=_0x418176(0x6e7,0x736),this['id']=null,this[_0x418176(0x6c9,0x743)](_0x418176(0x7b6,0x6b5),_0xf06b97,_0x100268),this[_0x418176(0x76b,0x73b)]=[],this['_prevBufferLen']=0x0;}}}SocketWithoutUpgrade[_0xf108a4(0x252,0x35e)]=protocol$1;class SocketWithUpgrade extends SocketWithoutUpgrade{constructor(){super(...arguments);function _0x1cf743(_0x5af6ab,_0x5a2a30){return _0x32c5(_0x5a2a30-0x25f,_0x5af6ab);}this[_0x1cf743(0x50c,0x5ff)]=[];}['onOpen'](){function _0x15dec8(_0x388c92,_0x499c95){return _0x32c5(_0x499c95-0x31b,_0x388c92);}super[_0x15dec8(0x71b,0x703)]();if(_0x15dec8(0x466,0x506)===this[_0x15dec8(0x660,0x6e8)]&&this[_0x15dec8(0x620,0x644)][_0x15dec8(0x5c8,0x50b)])for(let _0x2d361b=0x0;_0x2d361b<this[_0x15dec8(0x601,0x6bb)][_0x15dec8(0x5bf,0x5ab)];_0x2d361b++){this[_0x15dec8(0x64e,0x6be)](this[_0x15dec8(0x634,0x6bb)][_0x2d361b]);}}[_0xf108a4(0x5d4,0x503)](_0x505443){let _0x33a3d4=this[_0x1885c5(0x5d1,0x59e)](_0x505443),_0x175358=![];SocketWithoutUpgrade['priorWebsocketSuccess']=![];const _0x4173b0=()=>{if(_0x175358)return;function _0x5075fc(_0x4a22ac,_0x8aa22e){return _0x32c5(_0x8aa22e-0x261,_0x4a22ac);}_0x33a3d4['send']([{'type':_0x5075fc(0x381,0x433),'data':'probe'}]),_0x33a3d4[_0x5075fc(0x3c9,0x4e4)](_0x5075fc(0x46d,0x43c),_0x405c66=>{if(_0x175358)return;function _0x1e4cae(_0x2baf70,_0x55c640){return _0x32c5(_0x55c640-0x25d,_0x2baf70);}if('pong'===_0x405c66['type']&&_0x1e4cae(0x4cc,0x556)===_0x405c66[_0x1e4cae(0x564,0x50c)]){this[_0x1e4cae(0x4cf,0x545)]=!![],this[_0x1e4cae(0x550,0x542)](_0x1e4cae(0x5af,0x545),_0x33a3d4);if(!_0x33a3d4)return;SocketWithoutUpgrade[_0x1e4cae(0x4e4,0x5af)]='websocket'===_0x33a3d4['name'],this['transport']['pause'](()=>{if(_0x175358)return;if('closed'===this[_0x3f8550(0x68d,0x792)])return;_0x53d012(),this['setTransport'](_0x33a3d4),_0x33a3d4['send']([{'type':_0x3f8550(0x4b0,0x3af)}]),this[_0x3f8550(0x5a5,0x49a)](_0x3f8550(0x4b0,0x512),_0x33a3d4),_0x33a3d4=null;function _0x3f8550(_0x25d8da,_0x439966){return _0x32c5(_0x25d8da-0x2c0,_0x439966);}this['upgrading']=![],this[_0x3f8550(0x614,0x579)]();});}else{const _0x229145=new Error(_0x1e4cae(0x57c,0x5cf));_0x229145['transport']=_0x33a3d4['name'],this['emitReserved'](_0x1e4cae(0x594,0x4b9),_0x229145);}});};function _0xfe9537(){function _0x2b75db(_0x39732e,_0x2f1024){return _0x32c5(_0x2f1024-0x2cb,_0x39732e);}if(_0x175358)return;_0x175358=!![],_0x53d012(),_0x33a3d4[_0x2b75db(0x5c5,0x69d)](),_0x33a3d4=null;}const _0x542cdc=_0x24c886=>{function _0x26a86c(_0x1e43a5,_0x31a225){return _0x32c5(_0x1e43a5-0x38b,_0x31a225);}const _0x32a797=new Error('probe\x20error:\x20'+_0x24c886);_0x32a797[_0x26a86c(0x636,0x6df)]=_0x33a3d4['name'],_0xfe9537(),this[_0x26a86c(0x670,0x5f9)](_0x26a86c(0x5e7,0x561),_0x32a797);};function _0x5b5b01(){_0x542cdc('transport\x20closed');}function _0x1b20f6(){_0x542cdc('socket\x20closed');}function _0x246752(_0x70d551){_0x33a3d4&&_0x70d551['name']!==_0x33a3d4['name']&&_0xfe9537();}const _0x53d012=()=>{_0x33a3d4['removeListener'](_0x33a255(0x24f,0x1ea),_0x4173b0),_0x33a3d4['removeListener']('error',_0x542cdc);function _0x33a255(_0x254016,_0x4ab92e){return _0x32c5(_0x4ab92e- -0x1,_0x254016);}_0x33a3d4['removeListener']('close',_0x5b5b01),this['off']('close',_0x1b20f6),this['off']('upgrading',_0x246752);};_0x33a3d4['once']('open',_0x4173b0),_0x33a3d4['once']('error',_0x542cdc),_0x33a3d4[_0x1885c5(0x66f,0x56d)](_0x1885c5(0x618,0x6bc),_0x5b5b01);function _0x1885c5(_0x3cad13,_0x14afc2){return _0x32c5(_0x14afc2-0x2ea,_0x3cad13);}this['once'](_0x1885c5(0x711,0x6bc),_0x1b20f6),this['once'](_0x1885c5(0x569,0x5d2),_0x246752),this[_0x1885c5(0x784,0x68a)]['indexOf']('webtransport')!==-0x1&&_0x505443!=='webtransport'?this['setTimeoutFn'](()=>{function _0x2007dc(_0x5952a7,_0x4208e0){return _0x32c5(_0x5952a7-0xff,_0x4208e0);}!_0x175358&&_0x33a3d4[_0x2007dc(0x2ea,0x333)]();},0xc8):_0x33a3d4[_0x1885c5(0x4df,0x4d5)]();}[_0xf108a4(0x2ac,0x374)](data){function _0x9ca1d1(_0x38834b,_0x44efa5){return _0x32c5(_0x38834b- -0xf3,_0x44efa5);}this['_upgrades']=this[_0x9ca1d1(0x192,0xe8)](data[_0x9ca1d1(0x143,0x254)]),super['onHandshake'](data);}[_0xf108a4(0x3d4,0x3e5)](_0x4bcf19){const filteredUpgrades=[];function _0x95cd(_0x240622,_0x5aec0e){return _0x32c5(_0x240622- -0x112,_0x5aec0e);}for(let _0x2d28ee=0x0;_0x2d28ee<_0x4bcf19['length'];_0x2d28ee++){if(~this[_0x95cd(0x2cd,0x224)]['indexOf'](_0x4bcf19[_0x2d28ee]))filteredUpgrades['push'](_0x4bcf19[_0x2d28ee]);}return filteredUpgrades;}}let Socket$1=class Socket extends SocketWithUpgrade{constructor(_0x43bb9c,_0x2015f1={}){function _0x53bfc2(_0x4aff39,_0x260e17){return _0x32c5(_0x4aff39- -0x312,_0x260e17);}const _0x24c1d1=typeof _0x43bb9c===_0x53bfc2(-0x146,-0x78)?_0x43bb9c:_0x2015f1;(!_0x24c1d1[_0x53bfc2(0xcd,0x142)]||_0x24c1d1[_0x53bfc2(0xcd,0x1e0)]&&typeof _0x24c1d1['transports'][0x0]===_0x53bfc2(0x2c,0x124))&&(_0x24c1d1['transports']=(_0x24c1d1[_0x53bfc2(0xcd,0x1b0)]||['polling',_0x53bfc2(-0x117,-0x35),'webtransport'])['map'](_0x332fb6=>transports[_0x332fb6])['filter'](_0x50ffc9=>!!_0x50ffc9)),super(_0x43bb9c,_0x24c1d1);}};function url(_0x24e12b,_0x438628='',_0x22023a){let _0x48cbf1=_0x24e12b;_0x22023a=_0x22023a||typeof location!=='undefined'&&location;if(null==_0x24e12b)_0x24e12b=_0x22023a[_0x3b45c4(0x135,0x11e)]+'//'+_0x22023a[_0x3b45c4(0x1fc,0x1ce)];typeof _0x24e12b==='string'&&('/'===_0x24e12b[_0x3b45c4(0x9b,0xf1)](0x0)&&('/'===_0x24e12b['charAt'](0x1)?_0x24e12b=_0x22023a[_0x3b45c4(0x14a,0x11e)]+_0x24e12b:_0x24e12b=_0x22023a['host']+_0x24e12b),!/^(https?|wss?):\/\//['test'](_0x24e12b)&&(_0x3b45c4(0x272,0x1c0)!==typeof _0x22023a?_0x24e12b=_0x22023a['protocol']+'//'+_0x24e12b:_0x24e12b='https://'+_0x24e12b),_0x48cbf1=parse(_0x24e12b));function _0x3b45c4(_0x1a9d81,_0x20dabf){return _0x32c5(_0x20dabf- -0xe0,_0x1a9d81);}if(!_0x48cbf1['port']){if(/^(http|ws)$/[_0x3b45c4(0x385,0x2d1)](_0x48cbf1['protocol']))_0x48cbf1['port']='80';else/^(http|ws)s$/['test'](_0x48cbf1[_0x3b45c4(0xdf,0x11e)])&&(_0x48cbf1['port']='443');}_0x48cbf1[_0x3b45c4(0x2f1,0x26c)]=_0x48cbf1[_0x3b45c4(0x33c,0x26c)]||'/';const _0x447aba=_0x48cbf1['host']['indexOf'](':')!==-0x1,_0x5656e6=_0x447aba?'['+_0x48cbf1[_0x3b45c4(0xe7,0x1ce)]+']':_0x48cbf1['host'];return _0x48cbf1['id']=_0x48cbf1['protocol']+_0x3b45c4(0x329,0x278)+_0x5656e6+':'+_0x48cbf1['port']+_0x438628,_0x48cbf1['href']=_0x48cbf1[_0x3b45c4(0x117,0x11e)]+'://'+_0x5656e6+(_0x22023a&&_0x22023a['port']===_0x48cbf1['port']?'':':'+_0x48cbf1['port']),_0x48cbf1;}const withNativeArrayBuffer=typeof ArrayBuffer===_0xf108a4(0x507,0x456),isView=_0xa21457=>{function _0x5d1465(_0x36a432,_0x2e3137){return _0x32c5(_0x36a432-0x3c,_0x2e3137);}return typeof ArrayBuffer[_0x5d1465(0x3b0,0x34a)]==='function'?ArrayBuffer[_0x5d1465(0x3b0,0x344)](_0xa21457):_0xa21457[_0x5d1465(0x3f8,0x34e)]instanceof ArrayBuffer;},toString=Object['prototype'][_0xf108a4(0x47f,0x3df)],withNativeBlob=typeof Blob===_0xf108a4(0x385,0x456)||typeof Blob!=='undefined'&&toString['call'](Blob)==='[object\x20BlobConstructor]',withNativeFile=typeof File===_0xf108a4(0x44c,0x456)||typeof File!==_0xf108a4(0x3ee,0x400)&&toString[_0xf108a4(0x5a6,0x48a)](File)==='[object\x20FileConstructor]';function isBinary(_0x4e5ff0){return withNativeArrayBuffer&&(_0x4e5ff0 instanceof ArrayBuffer||isView(_0x4e5ff0))||withNativeBlob&&_0x4e5ff0 instanceof Blob||withNativeFile&&_0x4e5ff0 instanceof File;}function hasBinary(_0x26c565,toJSON){if(!_0x26c565||typeof _0x26c565!=='object')return![];if(Array[_0x36c52b(-0x67,0x45)](_0x26c565)){for(let _0x1ea97c=0x0,_0x4d94e9=_0x26c565[_0x36c52b(-0x11f,-0x12)];_0x1ea97c<_0x4d94e9;_0x1ea97c++){if(hasBinary(_0x26c565[_0x1ea97c]))return!![];}return![];}if(isBinary(_0x26c565))return!![];if(_0x26c565[_0x36c52b(-0x19e,-0x21e)]&&typeof _0x26c565[_0x36c52b(-0x19e,-0x158)]==='function'&&arguments[_0x36c52b(-0x11f,-0xca)]===0x1)return hasBinary(_0x26c565['toJSON'](),!![]);function _0x36c52b(_0x23d631,_0x389272){return _0x32c5(_0x23d631- -0x3af,_0x389272);}for(const _0x1c40aa in _0x26c565){if(Object['prototype']['hasOwnProperty'][_0x36c52b(-0x85,-0xd7)](_0x26c565,_0x1c40aa)&&hasBinary(_0x26c565[_0x1c40aa]))return!![];}return![];}function deconstructPacket(_0xb998cf){const _0x59affd=[];function _0x105ac5(_0x852be7,_0x3403a0){return _0x32c5(_0x852be7-0x335,_0x3403a0);}const _0x2fb500=_0xb998cf['data'],_0x1355b3=_0xb998cf;return _0x1355b3[_0x105ac5(0x5e4,0x5f4)]=_deconstructPacket(_0x2fb500,_0x59affd),_0x1355b3['attachments']=_0x59affd['length'],{'packet':_0x1355b3,'buffers':_0x59affd};}function _deconstructPacket(data,_0x2aa8cd){if(!data)return data;if(isBinary(data)){const _0x354366={'_placeholder':!![],'num':_0x2aa8cd['length']};return _0x2aa8cd[_0x5c9a23(-0xe,-0xf5)](data),_0x354366;}else{if(Array['isArray'](data)){const _0x422117=new Array(data[_0x5c9a23(-0x9d,-0xdc)]);for(let _0x28129d=0x0;_0x28129d<data[_0x5c9a23(-0x15d,-0xdc)];_0x28129d++){_0x422117[_0x28129d]=_deconstructPacket(data[_0x28129d],_0x2aa8cd);}return _0x422117;}else{if(typeof data===_0x5c9a23(-0x11c,-0x1a0)&&!(data instanceof Date)){const _0x475b7b={};for(const _0x4749c3 in data){Object[_0x5c9a23(-0x118,-0x1b)][_0x5c9a23(-0x74,-0x95)][_0x5c9a23(-0x73,-0x42)](data,_0x4749c3)&&(_0x475b7b[_0x4749c3]=_deconstructPacket(data[_0x4749c3],_0x2aa8cd));}return _0x475b7b;}}}function _0x5c9a23(_0x45673f,_0x3a77cd){return _0x32c5(_0x3a77cd- -0x36c,_0x45673f);}return data;}function reconstructPacket(_0x40a2fb,_0x44105b){_0x40a2fb['data']=_reconstructPacket(_0x40a2fb[_0x98d61f(0x60c,0x59e)],_0x44105b),delete _0x40a2fb[_0x98d61f(0x6ae,0x672)];function _0x98d61f(_0x553ecf,_0x16bf99){return _0x32c5(_0x16bf99-0x2ef,_0x553ecf);}return _0x40a2fb;}function _reconstructPacket(data,_0x317d3b){function _0x3517f5(_0xdc3104,_0x2097bf){return _0x32c5(_0xdc3104- -0x2c5,_0x2097bf);}if(!data)return data;if(data&&data['_placeholder']===!![]){const isIndexValid=typeof data[_0x3517f5(-0x9,-0x11b)]===_0x3517f5(-0xa7,-0xdd)&&data['num']>=0x0&&data[_0x3517f5(-0x9,0xe1)]<_0x317d3b['length'];if(isIndexValid)return _0x317d3b[data[_0x3517f5(-0x9,0x69)]];else throw new Error('illegal\x20attachments');}else{if(Array[_0x3517f5(0x83,-0x5d)](data))for(let _0x45ae07=0x0;_0x45ae07<data[_0x3517f5(-0x35,0x54)];_0x45ae07++){data[_0x45ae07]=_reconstructPacket(data[_0x45ae07],_0x317d3b);}else{if(typeof data==='object')for(const _0x262d22 in data){Object['prototype'][_0x3517f5(0x12,-0xd9)]['call'](data,_0x262d22)&&(data[_0x262d22]=_reconstructPacket(data[_0x262d22],_0x317d3b));}}}return data;}const RESERVED_EVENTS$1=[_0xf108a4(0x4f2,0x4fe),'connect_error',_0xf108a4(0x49c,0x4f1),'disconnecting',_0xf108a4(0x476,0x43e),_0xf108a4(0x5cd,0x522)],protocol=0x5;function _0x32c5(_0x197439,_0x25d302){const _0x46ca09=_0x46ca();return _0x32c5=function(_0x32c54c,_0x46146a){_0x32c54c=_0x32c54c-0x1b6;let _0x4906e1=_0x46ca09[_0x32c54c];if(_0x32c5['AzhNBk']===undefined){var _0x4cb858=function(_0x2ca273){const _0x7dfe18='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x521395='',_0x46c1b8='';for(let _0x4ab4fb=0x0,_0x436346,_0x1fb784,_0x507bad=0x0;_0x1fb784=_0x2ca273['charAt'](_0x507bad++);~_0x1fb784&&(_0x436346=_0x4ab4fb%0x4?_0x436346*0x40+_0x1fb784:_0x1fb784,_0x4ab4fb++%0x4)?_0x521395+=String['fromCharCode'](0xff&_0x436346>>(-0x2*_0x4ab4fb&0x6)):0x0){_0x1fb784=_0x7dfe18['indexOf'](_0x1fb784);}for(let _0x30f11d=0x0,_0x1504fd=_0x521395['length'];_0x30f11d<_0x1504fd;_0x30f11d++){_0x46c1b8+='%'+('00'+_0x521395['charCodeAt'](_0x30f11d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x46c1b8);};_0x32c5['InZErd']=_0x4cb858,_0x197439=arguments,_0x32c5['AzhNBk']=!![];}const _0x347c20=_0x46ca09[0x0],_0xd1fb46=_0x32c54c+_0x347c20,_0x1a0e1d=_0x197439[_0xd1fb46];return!_0x1a0e1d?(_0x4906e1=_0x32c5['InZErd'](_0x4906e1),_0x197439[_0xd1fb46]=_0x4906e1):_0x4906e1=_0x1a0e1d,_0x4906e1;},_0x32c5(_0x197439,_0x25d302);}var PacketType;(function(_0x1a2e7f){_0x1a2e7f[_0x1a2e7f['CONNECT']=0x0]=_0x5084dc(0x641,0x5f7),_0x1a2e7f[_0x1a2e7f[_0x5084dc(0x612,0x6f6)]=0x1]=_0x5084dc(0x612,0x4f7),_0x1a2e7f[_0x1a2e7f['EVENT']=0x2]='EVENT';function _0x5084dc(_0x1badea,_0x39bcf0){return _0x32c5(_0x1badea-0x28a,_0x39bcf0);}_0x1a2e7f[_0x1a2e7f['ACK']=0x3]='ACK',_0x1a2e7f[_0x1a2e7f[_0x5084dc(0x63f,0x72d)]=0x4]='CONNECT_ERROR',_0x1a2e7f[_0x1a2e7f[_0x5084dc(0x4fe,0x4a9)]=0x5]=_0x5084dc(0x4fe,0x412),_0x1a2e7f[_0x1a2e7f[_0x5084dc(0x531,0x483)]=0x6]='BINARY_ACK';}(PacketType||(PacketType={})));class Encoder{constructor(_0x29d599){this['replacer']=_0x29d599;}['encode'](_0x59ca97){function _0x2be5f1(_0x5e9648,_0x233b0f){return _0x32c5(_0x233b0f-0x33d,_0x5e9648);}if(_0x59ca97['type']===PacketType[_0x2be5f1(0x5ff,0x628)]||_0x59ca97[_0x2be5f1(0x49b,0x59c)]===PacketType['ACK']){if(hasBinary(_0x59ca97))return this['encodeAsBinary']({'type':_0x59ca97[_0x2be5f1(0x669,0x59c)]===PacketType['EVENT']?PacketType['BINARY_EVENT']:PacketType['BINARY_ACK'],'nsp':_0x59ca97['nsp'],'data':_0x59ca97['data'],'id':_0x59ca97['id']});}return[this['encodeAsString'](_0x59ca97)];}[_0xf108a4(0x540,0x499)](_0x3be000){let _0x496891=''+_0x3be000['type'];(_0x3be000['type']===PacketType['BINARY_EVENT']||_0x3be000[_0x750972(0x98,-0x70)]===PacketType['BINARY_ACK'])&&(_0x496891+=_0x3be000['attachments']+'-');_0x3be000['nsp']&&'/'!==_0x3be000[_0x750972(-0xf8,-0x2b)]&&(_0x496891+=_0x3be000[_0x750972(-0x51,-0x2b)]+',');null!=_0x3be000['id']&&(_0x496891+=_0x3be000['id']);null!=_0x3be000[_0x750972(0xc0,-0x20)]&&(_0x496891+=JSON['stringify'](_0x3be000['data'],this['replacer']));function _0x750972(_0x285a7a,_0x547065){return _0x32c5(_0x547065- -0x2cf,_0x285a7a);}return _0x496891;}[_0xf108a4(0x34a,0x3d1)](_0x28b985){const _0x27682f=deconstructPacket(_0x28b985),_0x26ba34=this[_0x16c626(0x3a,0x116)](_0x27682f[_0x16c626(-0x124,-0x9c)]),_0x188932=_0x27682f['buffers'];_0x188932[_0x16c626(-0x34,-0x150)](_0x26ba34);function _0x16c626(_0x23674b,_0x2ef01c){return _0x32c5(_0x23674b- -0x2ff,_0x2ef01c);}return _0x188932;}}function isObject(_0x44c352){function _0xc877b9(_0x21f07f,_0x25878a){return _0x32c5(_0x25878a- -0x16e,_0x21f07f);}return Object[_0xc877b9(0x171,0x1e3)][_0xc877b9(0x102,0x111)][_0xc877b9(0x164,0x1bc)](_0x44c352)===_0xc877b9(-0x57,0x85);}class Decoder extends Emitter{constructor(_0x257446){super();function _0x4445fa(_0x5a01e1,_0x426fa9){return _0x32c5(_0x426fa9-0x14f,_0x5a01e1);}this[_0x4445fa(0x45a,0x3cb)]=_0x257446;}['add'](_0x309746){let _0xc9b855;function _0x28aab6(_0x515cb4,_0x125f53){return _0x32c5(_0x515cb4- -0x2cc,_0x125f53);}if(typeof _0x309746==='string'){if(this['reconstructor'])throw new Error('got\x20plaintext\x20data\x20when\x20reconstructing\x20a\x20packet');_0xc9b855=this[_0x28aab6(0x35,0x5)](_0x309746);const isBinaryEvent=_0xc9b855[_0x28aab6(-0x6d,-0x96)]===PacketType[_0x28aab6(-0x58,-0x12c)];isBinaryEvent||_0xc9b855['type']===PacketType[_0x28aab6(-0x25,-0xbe)]?(_0xc9b855[_0x28aab6(-0x6d,-0xde)]=isBinaryEvent?PacketType['EVENT']:PacketType[_0x28aab6(0xf2,0x147)],this['reconstructor']=new BinaryReconstructor(_0xc9b855),_0xc9b855['attachments']===0x0&&super[_0x28aab6(0x19,0xb5)](_0x28aab6(-0x114,-0xb0),_0xc9b855)):super[_0x28aab6(0x19,-0xa5)]('decoded',_0xc9b855);}else{if(isBinary(_0x309746)||_0x309746[_0x28aab6(0x57,-0x2f)]){if(!this[_0x28aab6(0x7,0x87)])throw new Error(_0x28aab6(0x58,-0x48));else _0xc9b855=this['reconstructor']['takeBinaryData'](_0x309746),_0xc9b855&&(this['reconstructor']=null,super[_0x28aab6(0x19,0x7f)]('decoded',_0xc9b855));}else throw new Error('Unknown\x20type:\x20'+_0x309746);}}[_0xf108a4(0x43d,0x461)](_0x23422b){let _0x42e7f0=0x0;function _0xe75056(_0x6359e3,_0x2d419f){return _0x32c5(_0x6359e3- -0x333,_0x2d419f);}const _0x20c5b9={'type':Number(_0x23422b[_0xe75056(-0x162,-0xf6)](0x0))};if(PacketType[_0x20c5b9[_0xe75056(-0xd4,-0x15d)]]===undefined)throw new Error(_0xe75056(-0x4d,-0xa5)+_0x20c5b9['type']);if(_0x20c5b9[_0xe75056(-0xd4,-0x1d)]===PacketType[_0xe75056(-0xbf,-0x181)]||_0x20c5b9[_0xe75056(-0xd4,0x7)]===PacketType[_0xe75056(-0x8c,-0x170)]){const _0x57c94f=_0x42e7f0+0x1;while(_0x23422b[_0xe75056(-0x162,-0x223)](++_0x42e7f0)!=='-'&&_0x42e7f0!=_0x23422b['length']){}const _0xf24a3=_0x23422b[_0xe75056(0x5a,0xf7)](_0x57c94f,_0x42e7f0);if(_0xf24a3!=Number(_0xf24a3)||_0x23422b['charAt'](_0x42e7f0)!=='-')throw new Error('Illegal\x20attachments');_0x20c5b9['attachments']=Number(_0xf24a3);}if('/'===_0x23422b[_0xe75056(-0x162,-0x103)](_0x42e7f0+0x1)){const _0x43a6e4=_0x42e7f0+0x1;while(++_0x42e7f0){const _0x517a5c=_0x23422b[_0xe75056(-0x162,-0x68)](_0x42e7f0);if(','===_0x517a5c)break;if(_0x42e7f0===_0x23422b['length'])break;}_0x20c5b9['nsp']=_0x23422b[_0xe75056(0x5a,-0x70)](_0x43a6e4,_0x42e7f0);}else _0x20c5b9[_0xe75056(-0x8f,-0xac)]='/';const _0x8ec1d7=_0x23422b['charAt'](_0x42e7f0+0x1);if(''!==_0x8ec1d7&&Number(_0x8ec1d7)==_0x8ec1d7){const _0x151eaa=_0x42e7f0+0x1;while(++_0x42e7f0){const _0x5738a9=_0x23422b['charAt'](_0x42e7f0);if(null==_0x5738a9||Number(_0x5738a9)!=_0x5738a9){--_0x42e7f0;break;}if(_0x42e7f0===_0x23422b[_0xe75056(-0xa3,-0xac)])break;}_0x20c5b9['id']=Number(_0x23422b['substring'](_0x151eaa,_0x42e7f0+0x1));}if(_0x23422b['charAt'](++_0x42e7f0)){const _0x599099=this['tryParse'](_0x23422b['substr'](_0x42e7f0));if(Decoder['isPayloadValid'](_0x20c5b9[_0xe75056(-0xd4,-0x192)],_0x599099))_0x20c5b9['data']=_0x599099;else throw new Error('invalid payload');}return _0x20c5b9;}[_0xf108a4(0x3b6,0x4c4)](_0x42357b){try{return JSON['parse'](_0x42357b,this['reviver']);}catch(_0x5b98a9){return![];}}static[_0xf108a4(0x65b,0x53a)](_0x36d257,_0x5a207a){function _0x497972(_0x245eee,_0x375115){return _0x32c5(_0x375115-0x33b,_0x245eee);}switch(_0x36d257){case PacketType['CONNECT']:return isObject(_0x5a207a);case PacketType[_0x497972(0x5a9,0x6c3)]:return _0x5a207a===undefined;case PacketType[_0x497972(0x5d7,0x6f0)]:return typeof _0x5a207a===_0x497972(0x64d,0x679)||isObject(_0x5a207a);case PacketType['EVENT']:case PacketType[_0x497972(0x5f7,0x5af)]:return Array['isArray'](_0x5a207a)&&(typeof _0x5a207a[0x0]==='number'||typeof _0x5a207a[0x0]==='string'&&RESERVED_EVENTS$1[_0x497972(0x504,0x5ad)](_0x5a207a[0x0])===-0x1);case PacketType['ACK']:case PacketType['BINARY_ACK']:return Array['isArray'](_0x5a207a);}}[_0xf108a4(0x289,0x3a5)](){function _0x3275fb(_0x4546d4,_0x7db62f){return _0x32c5(_0x4546d4- -0x39c,_0x7db62f);}this[_0x3275fb(-0xc9,-0x7f)]&&(this['reconstructor'][_0x3275fb(-0x6c,-0xd5)](),this['reconstructor']=null);}}function _0xf108a4(_0x1d3356,_0x44fe72){return _0x32c5(_0x44fe72-0x160,_0x1d3356);}class BinaryReconstructor{constructor(_0x2c76f5){this[_0x4fc02a(0x25c,0x21d)]=_0x2c76f5,this[_0x4fc02a(0x2f4,0x204)]=[];function _0x4fc02a(_0x1d857f,_0x32289c){return _0x32c5(_0x1d857f-0x81,_0x32289c);}this[_0x4fc02a(0x2d2,0x1e5)]=_0x2c76f5;}[_0xf108a4(0x644,0x550)](binData){this['buffers'][_0x141b23(-0x29,-0x115)](binData);if(this['buffers']['length']===this['reconPack']['attachments']){const _0x50221f=reconstructPacket(this[_0x141b23(-0x4f,0x70)],this['buffers']);return this['finishedReconstruction'](),_0x50221f;}function _0x141b23(_0x329b7e,_0x340a9c){return _0x32c5(_0x329b7e- -0x2a0,_0x340a9c);}return null;}[_0xf108a4(0x426,0x490)](){function _0x2d3c75(_0xb8e4fd,_0x3970ff){return _0x32c5(_0x3970ff- -0x2d9,_0xb8e4fd);}this['reconPack']=null,this[_0x2d3c75(-0xb8,-0x66)]=[];}}var parser=Object[_0xf108a4(0x22f,0x333)]({'__proto__':null,'Decoder':Decoder,'Encoder':Encoder,get 'PacketType'(){return PacketType;},'protocol':protocol});function on(_0x3107c4,_0x2f6f14,_0x498ffe){return _0x3107c4['on'](_0x2f6f14,_0x498ffe),function _0xbf3b8b(){_0x3107c4['off'](_0x2f6f14,_0x498ffe);};}const RESERVED_EVENTS=Object['freeze']({'connect':0x1,'connect_error':0x1,'disconnect':0x1,'disconnecting':0x1,'newListener':0x1,'removeListener':0x1});class Socket extends Emitter{constructor(_0x29f97b,_0x5c1c3c,_0x1c8c9d){super(),this[_0x10690d(-0x1df,-0x24f)]=![],this['recovered']=![],this[_0x10690d(0x2c,-0x1c)]=[],this['sendBuffer']=[],this[_0x10690d(-0x133,-0xff)]=[],this[_0x10690d(-0xe9,-0x2d)]=0x0,this['ids']=0x0;function _0x10690d(_0x2b3421,_0x3db94a){return _0x32c5(_0x2b3421- -0x3c9,_0x3db94a);}this[_0x10690d(0x20,-0x7)]={},this['flags']={},this['io']=_0x29f97b,this['nsp']=_0x5c1c3c;_0x1c8c9d&&_0x1c8c9d[_0x10690d(-0x17b,-0x16d)]&&(this['auth']=_0x1c8c9d['auth']);this[_0x10690d(-0x1e2,-0x1ec)]=Object['assign']({},_0x1c8c9d);if(this['io']['_autoConnect'])this[_0x10690d(-0x1de,-0x114)]();}get['disconnected'](){return!this['connected'];}[_0xf108a4(0x53e,0x425)](){if(this[_0x15da0b(0x71b,0x742)])return;const _0x4c6408=this['io'];function _0x15da0b(_0x459180,_0x56eccf){return _0x32c5(_0x56eccf-0x3e3,_0x459180);}this[_0x15da0b(0x825,0x742)]=[on(_0x4c6408,'open',this[_0x15da0b(0x4fc,0x5e9)][_0x15da0b(0x502,0x617)](this)),on(_0x4c6408,_0x15da0b(0x63c,0x5be),this['onpacket'][_0x15da0b(0x4fc,0x617)](this)),on(_0x4c6408,_0x15da0b(0x74b,0x77a),this['onerror']['bind'](this)),on(_0x4c6408,_0x15da0b(0x6c6,0x7b5),this[_0x15da0b(0x669,0x63c)][_0x15da0b(0x530,0x617)](this))];}get['active'](){function _0x5a3b2a(_0x3cef1a,_0x4e04cf){return _0x32c5(_0x4e04cf- -0x159,_0x3cef1a);}return!!this[_0x5a3b2a(0x1ad,0x206)];}['connect'](){if(this[_0x243790(0x187,0x10d)])return this;this['subEvents']();if(!this['io'][_0x243790(0x369,0x35e)])this['io'][_0x243790(0x188,0x123)]();function _0x243790(_0x5be867,_0x4ae2a9){return _0x32c5(_0x5be867- -0x63,_0x4ae2a9);}if(_0x243790(0x188,0xd6)===this['io'][_0x243790(0x33c,0x357)])this[_0x243790(0x1a3,0x273)]();return this;}[_0xf108a4(0x361,0x34b)](){function _0x4ffcfe(_0x1729c1,_0x550544){return _0x32c5(_0x1729c1-0x263,_0x550544);}return this[_0x4ffcfe(0x601,0x521)]();}['send'](..._0x137cf5){function _0x53cf80(_0x39845c,_0x139060){return _0x32c5(_0x39845c- -0x38c,_0x139060);}return _0x137cf5[_0x53cf80(-0xc1,-0x37)](_0x53cf80(-0x3d,0x24)),this[_0x53cf80(-0x92,-0x19b)]['apply'](this,_0x137cf5),this;}['emit'](_0x3908d5,..._0x504acf){var _0x5596aa,_0x308142,_0x5ac518;function _0x453c09(_0x13d728,_0x8fe433){return _0x32c5(_0x8fe433- -0x8,_0x13d728);}if(RESERVED_EVENTS[_0x453c09(0x38d,0x2cf)](_0x3908d5))throw new Error('\x22'+_0x3908d5[_0x453c09(0x261,0x277)]()+_0x453c09(0x3a6,0x3b1));_0x504acf[_0x453c09(0x3e6,0x2c3)](_0x3908d5);if(this['_opts']['retries']&&!this['flags'][_0x453c09(0x48a,0x3c8)]&&!this['flags']['volatile'])return this['_addToQueue'](_0x504acf),this;const _0x53b5ea={'type':PacketType[_0x453c09(0x29f,0x2e3)],'data':_0x504acf};_0x53b5ea[_0x453c09(0x360,0x3d4)]={},_0x53b5ea[_0x453c09(0x2b5,0x3d4)]['compress']=this[_0x453c09(0x2da,0x315)][_0x453c09(0x302,0x2e7)]!==![];if('function'===typeof _0x504acf[_0x504acf[_0x453c09(0x291,0x288)]-0x1]){const _0x3ae5aa=this['ids']++,_0x2ca4d8=_0x504acf['pop']();this['_registerAckCallback'](_0x3ae5aa,_0x2ca4d8),_0x53b5ea['id']=_0x3ae5aa;}const isTransportWritable=(_0x308142=(_0x5596aa=this['io']['engine'])===null||_0x5596aa===void 0x0?void 0x0:_0x5596aa[_0x453c09(0x389,0x2a3)])===null||_0x308142===void 0x0?void 0x0:_0x308142[_0x453c09(0x3b4,0x354)],isConnected=this['connected']&&!((_0x5ac518=this['io'][_0x453c09(0x2bb,0x375)])===null||_0x5ac518===void 0x0?void 0x0:_0x5ac518['_hasPingExpired']()),discardPacket=this[_0x453c09(0x3d1,0x315)][_0x453c09(0x34d,0x282)]&&!isTransportWritable;if(discardPacket);else isConnected?(this[_0x453c09(0xb0,0x1af)](_0x53b5ea),this[_0x453c09(0x234,0x1d3)](_0x53b5ea)):this['sendBuffer']['push'](_0x53b5ea);return this['flags']={},this;}['_registerAckCallback'](_0x3f368c,_0x41cbb6){var _0x5e3d61;function _0x150074(_0x3d95f3,_0x1c3cda){return _0x32c5(_0x3d95f3- -0x148,_0x1c3cda);}const _0x3c35b6=(_0x5e3d61=this[_0x150074(0x1d5,0x296)][_0x150074(0x1ab,0x200)])!==null&&_0x5e3d61!==void 0x0?_0x5e3d61:this[_0x150074(0x9f,0x101)][_0x150074(0x7f,0x16a)];if(_0x3c35b6===undefined){this['acks'][_0x3f368c]=_0x41cbb6;return;}const _0x9ff92f=this['io']['setTimeoutFn'](()=>{delete this[_0x337348(0x746,0x7bf)][_0x3f368c];for(let _0x3d5cbb=0x0;_0x3d5cbb<this['sendBuffer'][_0x337348(0x5ed,0x6b3)];_0x3d5cbb++){this['sendBuffer'][_0x3d5cbb]['id']===_0x3f368c&&this['sendBuffer'][_0x337348(0x5c4,0x4f8)](_0x3d5cbb,0x1);}function _0x337348(_0xc95c67,_0x396349){return _0x32c5(_0xc95c67-0x35d,_0x396349);}_0x41cbb6['call'](this,new Error(_0x337348(0x5b3,0x5d9)));},_0x3c35b6),_0x40be17=(..._0x5da262)=>{function _0xb8ec31(_0x523a57,_0xebe9a8){return _0x32c5(_0xebe9a8- -0x120,_0x523a57);}this['io'][_0xb8ec31(0x89,0xe1)](_0x9ff92f),_0x41cbb6[_0xb8ec31(0x1a3,0x284)](this,_0x5da262);};_0x40be17[_0x150074(0x1f4,0x25d)]=!![],this['acks'][_0x3f368c]=_0x40be17;}[_0xf108a4(0x56b,0x536)](_0x59cfb7,..._0x524746){return new Promise((_0x2bb428,_0x98ce9d)=>{const _0x5726d5=(_0x50d96f,_0x50bdcc)=>{return _0x50d96f?_0x98ce9d(_0x50d96f):_0x2bb428(_0x50bdcc);};function _0x25f423(_0x2d5d59,_0x6579e6){return _0x32c5(_0x2d5d59-0x2ab,_0x6579e6);}_0x5726d5[_0x25f423(0x5e7,0x56d)]=!![],_0x524746[_0x25f423(0x522,0x535)](_0x5726d5),this['emit'](_0x59cfb7,..._0x524746);});}['_addToQueue'](_0x1a0bd8){let _0xfe5f77;typeof _0x1a0bd8[_0x1a0bd8[_0x5b6afa(0x4db,0x5f9)]-0x1]===_0x5b6afa(0x54d,0x65f)&&(_0xfe5f77=_0x1a0bd8['pop']());const _0x756ef9={'id':this['_queueSeq']++,'tryCount':0x0,'pending':![],'args':_0x1a0bd8,'flags':Object['assign']({'fromQueue':!![]},this['flags'])};_0x1a0bd8['push']((_0x2d6d98,...responseArgs)=>{function _0x3683df(_0x15c069,_0x4f7be8){return _0x32c5(_0x4f7be8-0xf7,_0x15c069);}if(_0x756ef9!==this[_0x3683df(0x420,0x38d)][0x0])return;const _0x8d00ef=_0x2d6d98!==null;return _0x8d00ef?_0x756ef9['tryCount']>this['_opts']['retries']&&(this['_queue'][_0x3683df(0x37e,0x322)](),_0xfe5f77&&_0xfe5f77(_0x2d6d98)):(this[_0x3683df(0x3c7,0x38d)]['shift'](),_0xfe5f77&&_0xfe5f77(null,...responseArgs)),_0x756ef9[_0x3683df(0x5e1,0x4e2)]=![],this['_drainQueue']();}),this[_0x5b6afa(0x50c,0x5ff)][_0x5b6afa(0x650,0x5e0)](_0x756ef9);function _0x5b6afa(_0x1a6e35,_0x40697f){return _0x32c5(_0x40697f-0x369,_0x1a6e35);}this[_0x5b6afa(0x7d3,0x6e5)]();}['_drainQueue'](_0x15964d=![]){if(!this[_0x296d11(0x16e,0x14a)]||this[_0x296d11(0x1d9,0x1f6)][_0x296d11(0x1e4,0x1f0)]===0x0)return;const _0x5c64d0=this[_0x296d11(0xf6,0x1f6)][0x0];if(_0x5c64d0['pending']&&!_0x15964d)return;function _0x296d11(_0x2705a3,_0x35cc2c){return _0x32c5(_0x35cc2c- -0xa0,_0x2705a3);}_0x5c64d0[_0x296d11(0x37e,0x34b)]=!![],_0x5c64d0[_0x296d11(0x2e8,0x2d6)]++,this[_0x296d11(0x2da,0x27d)]=_0x5c64d0['flags'],this['emit']['apply'](this,_0x5c64d0['args']);}['packet'](_0x812a24){_0x812a24[_0x1d3883(0x1c4,0x22e)]=this[_0x1d3883(0x17a,0x22e)];function _0x1d3883(_0x1d60b0,_0x2af7bf){return _0x32c5(_0x2af7bf- -0x76,_0x1d60b0);}this['io']['_packet'](_0x812a24);}[_0xf108a4(0x479,0x366)](){function _0x2df451(_0x42feca,_0x4e6513){return _0x32c5(_0x42feca-0x8c,_0x4e6513);}typeof this['auth']=='function'?this[_0x2df451(0x2da,0x3bb)](data=>{this['_sendConnectPacket'](data);}):this['_sendConnectPacket'](this[_0x2df451(0x2da,0x1fc)]);}[_0xf108a4(0x5f2,0x508)](data){function _0x162c8c(_0xaaf597,_0x1a76f5){return _0x32c5(_0x1a76f5- -0x47,_0xaaf597);}this[_0x162c8c(0x200,0x194)]({'type':PacketType['CONNECT'],'data':this[_0x162c8c(0x292,0x38e)]?Object['assign']({'pid':this[_0x162c8c(0x388,0x38e)],'offset':this[_0x162c8c(0x2c5,0x282)]},data):data});}['onerror'](_0x1f88af){function _0x49ee42(_0x3c8cdf,_0x4fbd55){return _0x32c5(_0x4fbd55-0xe3,_0x3c8cdf);}!this[_0x49ee42(0x2c2,0x2cd)]&&this['emitReserved']('connect_error',_0x1f88af);}['onclose'](_0x2bcb97,_0x4b5470){this[_0x37c7f5(0x71,-0x4c)]=![],delete this['id'];function _0x37c7f5(_0x3bd930,_0x2d221d){return _0x32c5(_0x3bd930- -0x179,_0x2d221d);}this[_0x37c7f5(0x16c,0x1ad)](_0x37c7f5(0x218,0x2a7),_0x2bcb97,_0x4b5470),this['_clearAcks']();}['_clearAcks'](){function _0x25d18b(_0x2a3d4e,_0x1bf7f4){return _0x32c5(_0x1bf7f4-0x2ae,_0x2a3d4e);}Object['keys'](this['acks'])[_0x25d18b(0x4fa,0x534)](_0x281728=>{const isBuffered=this['sendBuffer'][_0x23f589(0xf3,0x120)](_0x317b9b=>String(_0x317b9b['id'])===_0x281728);function _0x23f589(_0x1214d4,_0x12db5b){return _0x32c5(_0x12db5b- -0x1dc,_0x1214d4);}if(!isBuffered){const _0x3e51bb=this['acks'][_0x281728];delete this[_0x23f589(0x2c5,0x20d)][_0x281728],_0x3e51bb[_0x23f589(0x1f0,0x160)]&&_0x3e51bb['call'](this,new Error(_0x23f589(0xeb,0xa2)));}});}[_0xf108a4(0x534,0x4be)](_0x1d3d5c){function _0x527a7c(_0x3e4887,_0x4670c2){return _0x32c5(_0x4670c2-0x1f2,_0x3e4887);}const _0x190f90=_0x1d3d5c[_0x527a7c(0x3e5,0x496)]===this['nsp'];if(!_0x190f90)return;switch(_0x1d3d5c[_0x527a7c(0x34d,0x451)]){case PacketType[_0x527a7c(0x4b1,0x5a9)]:_0x1d3d5c['data']&&_0x1d3d5c['data'][_0x527a7c(0x5d4,0x4be)]?this['onconnect'](_0x1d3d5c[_0x527a7c(0x4d9,0x4a1)]['sid'],_0x1d3d5c['data'][_0x527a7c(0x585,0x48a)]):this[_0x527a7c(0x42e,0x4d7)]('connect_error',new Error('It\x20seems\x20you\x20are\x20trying\x20to\x20reach\x20a\x20Socket.IO\x20server\x20in\x20v2.x\x20with\x20a\x20v3.x\x20client,\x20but\x20they\x20are\x20not\x20compatible\x20(more\x20information\x20here:\x20https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)'));break;case PacketType['EVENT']:case PacketType['BINARY_EVENT']:this['onevent'](_0x1d3d5c);break;case PacketType[_0x527a7c(0x636,0x5b0)]:case PacketType[_0x527a7c(0x3ba,0x499)]:this['onack'](_0x1d3d5c);break;case PacketType['DISCONNECT']:this['ondisconnect']();break;case PacketType['CONNECT_ERROR']:this[_0x527a7c(0x500,0x437)]();const _0x1a004f=new Error(_0x1d3d5c['data'][_0x527a7c(0x4f8,0x541)]);_0x1a004f['data']=_0x1d3d5c['data']['data'],this['emitReserved'](_0x527a7c(0x623,0x532),_0x1a004f);break;}}['onevent'](_0xc339cc){const _0x2b042e=_0xc339cc['data']||[];function _0x2d2fd5(_0x7180f7,_0x2034ea){return _0x32c5(_0x2034ea- -0x143,_0x7180f7);}null!=_0xc339cc['id']&&_0x2b042e['push'](this[_0x2d2fd5(0x11f,0xb3)](_0xc339cc['id'])),this['connected']?this['emitEvent'](_0x2b042e):this[_0x2d2fd5(0x1a3,0x2b2)]['push'](Object[_0x2d2fd5(0x6c,0x90)](_0x2b042e));}[_0xf108a4(0x49c,0x380)](_0x33fac1){function _0xdb71f4(_0x1c300b,_0xea21){return _0x32c5(_0xea21-0x21,_0x1c300b);}if(this[_0xdb71f4(0x3fa,0x3b5)]&&this['_anyListeners'][_0xdb71f4(0x2e5,0x2b1)]){const listeners=this['_anyListeners'][_0xdb71f4(0x325,0x2e2)]();for(const listener of listeners){listener[_0xdb71f4(0x418,0x3c5)](this,_0x33fac1);}}super['emit']['apply'](this,_0x33fac1),this['_pid']&&_0x33fac1['length']&&typeof _0x33fac1[_0x33fac1[_0xdb71f4(0x33b,0x2b1)]-0x1]===_0xdb71f4(0x377,0x35f)&&(this['_lastOffset']=_0x33fac1[_0x33fac1['length']-0x1]);}['ack'](_0x539bc4){const _0x37b34f=this;let _0x45ddda=![];return function(..._0x514cfe){function _0x562691(_0xb7a4c,_0x5746b5){return _0x32c5(_0x5746b5- -0x93,_0xb7a4c);}if(_0x45ddda)return;_0x45ddda=!![],_0x37b34f[_0x562691(0x154,0x148)]({'type':PacketType[_0x562691(0x2a0,0x32b)],'id':_0x539bc4,'data':_0x514cfe});};}[_0xf108a4(0x3ca,0x3fa)](_0x3d931b){function _0x36b1b2(_0x34f023,_0x34994a){return _0x32c5(_0x34f023- -0x22f,_0x34994a);}const _0x3dd3db=this[_0x36b1b2(0x1ba,0x2c7)][_0x3d931b['id']];if(typeof _0x3dd3db!==_0x36b1b2(0xc7,0x1b4))return;delete this['acks'][_0x3d931b['id']],_0x3dd3db[_0x36b1b2(0x10d,0x1a4)]&&_0x3d931b[_0x36b1b2(0x80,0x12e)][_0x36b1b2(0x9c,0x2b)](null),_0x3dd3db[_0x36b1b2(0x175,0x11e)](this,_0x3d931b[_0x36b1b2(0x80,0x150)]);}[_0xf108a4(0x415,0x338)](_0x2f0e8c,_0x2d42e4){this['id']=_0x2f0e8c,this['recovered']=_0x2d42e4&&this[_0x750451(0x571,0x565)]===_0x2d42e4,this['_pid']=_0x2d42e4,this[_0x750451(0x386,0x481)]=!![],this[_0x750451(0x38d,0x271)](),this['emitReserved']('connect');function _0x750451(_0x54e1b1,_0x3337bd){return _0x32c5(_0x54e1b1-0x19c,_0x3337bd);}this[_0x750451(0x518,0x55b)](!![]);}['emitBuffered'](){this[_0x31e3eb(0x51,-0x1f)][_0x31e3eb(-0x11e,-0x201)](_0x29ca84=>this['emitEvent'](_0x29ca84)),this[_0x31e3eb(0x51,0x11c)]=[];function _0x31e3eb(_0x1dedf3,_0x5902f8){return _0x32c5(_0x1dedf3- -0x3a4,_0x5902f8);}this['sendBuffer']['forEach'](_0x2eb1cb=>{function _0x2628d7(_0x26a644,_0x4322ab){return _0x32c5(_0x4322ab-0x2ad,_0x26a644);}this[_0x2628d7(0x4cc,0x464)](_0x2eb1cb),this[_0x2628d7(0x42a,0x488)](_0x2eb1cb);}),this[_0x31e3eb(-0x106,-0x1a3)]=[];}['ondisconnect'](){this['destroy']();function _0x6fa904(_0x524298,_0xf01d5){return _0x32c5(_0x524298- -0x270,_0xf01d5);}this[_0x6fa904(-0x17,-0xc4)](_0x6fa904(-0xa6,0x20));}['destroy'](){this[_0x22c087(0x7b1,0x6b0)]&&(this[_0x22c087(0x5b1,0x6b0)][_0x22c087(0x5f5,0x5d7)](_0x44713e=>_0x44713e()),this['subs']=undefined);function _0x22c087(_0x283a5d,_0x1e64fa){return _0x32c5(_0x1e64fa-0x351,_0x283a5d);}this['io'][_0x22c087(0x683,0x5ac)](this);}['disconnect'](){this['connected']&&this['packet']({'type':PacketType[_0x2c2679(0xce,0xf0)]});this['destroy']();this[_0x2c2679(-0x7e,-0xae)]&&this[_0x2c2679(-0x58,-0x3f)](_0x2c2679(-0x56,-0x60));function _0x2c2679(_0x3f209d,_0x2bb560){return _0x32c5(_0x2bb560- -0x298,_0x3f209d);}return this;}['close'](){function _0xc3e86d(_0x2b3838,_0x4fc68b){return _0x32c5(_0x4fc68b- -0xfc,_0x2b3838);}return this[_0xc3e86d(0x226,0x295)]();}['compress'](_0x59afa3){return this['flags']['compress']=_0x59afa3,this;}get['volatile'](){return this['flags']['volatile']=!![],this;}[_0xf108a4(0x3df,0x453)](_0x1deed5){function _0x5d7724(_0x4b632a,_0x2b4e80){return _0x32c5(_0x4b632a- -0x318,_0x2b4e80);}return this[_0x5d7724(0x5,-0x78)]['timeout']=_0x1deed5,this;}[_0xf108a4(0x380,0x476)](listener){this[_0x1f2bab(0x5a9,0x56e)]=this['_anyListeners']||[],this['_anyListeners'][_0x1f2bab(0x516,0x451)](listener);function _0x1f2bab(_0x1a4c61,_0x3fba5c){return _0x32c5(_0x3fba5c-0x1da,_0x1a4c61);}return this;}['prependAny'](listener){this['_anyListeners']=this[_0x49cf57(0x226,0x15a)]||[],this[_0x49cf57(0x226,0x1f2)][_0x49cf57(0x15d,0x4d)](listener);function _0x49cf57(_0x994dee,_0x162502){return _0x32c5(_0x994dee- -0x16e,_0x162502);}return this;}[_0xf108a4(0x426,0x449)](listener){if(!this[_0x530580(0x437,0x41c)])return this;if(listener){const listeners=this['_anyListeners'];for(let _0x4f5482=0x0;_0x4f5482<listeners['length'];_0x4f5482++){if(listener===listeners[_0x4f5482])return listeners[_0x530580(0x1cc,0x2ef)](_0x4f5482,0x1),this;}}else this[_0x530580(0x378,0x41c)]=[];function _0x530580(_0x41b67b,_0x54f61c){return _0x32c5(_0x54f61c-0x88,_0x41b67b);}return this;}[_0xf108a4(0x3c1,0x3fc)](){return this['_anyListeners']||[];}['onAnyOutgoing'](listener){this['_anyOutgoingListeners']=this[_0x55da7a(0x1e5,0x2ef)]||[],this[_0x55da7a(0x3df,0x2ef)][_0x55da7a(0x1e1,0x24a)](listener);function _0x55da7a(_0x588c79,_0x31c8fb){return _0x32c5(_0x31c8fb- -0x2d,_0x588c79);}return this;}['prependAnyOutgoing'](listener){this[_0x54523c(-0x53,-0xbc)]=this[_0x54523c(-0x8c,-0xbc)]||[],this['_anyOutgoingListeners']['unshift'](listener);function _0x54523c(_0x2dd67e,_0x432088){return _0x32c5(_0x432088- -0x3d8,_0x2dd67e);}return this;}['offAnyOutgoing'](listener){function _0x3eb3c9(_0x3545d5,_0x53a68e){return _0x32c5(_0x3545d5-0xd,_0x53a68e);}if(!this[_0x3eb3c9(0x329,0x3bb)])return this;if(listener){const listeners=this['_anyOutgoingListeners'];for(let _0x2fb52a=0x0;_0x2fb52a<listeners['length'];_0x2fb52a++){if(listener===listeners[_0x2fb52a])return listeners[_0x3eb3c9(0x274,0x2c0)](_0x2fb52a,0x1),this;}}else this[_0x3eb3c9(0x329,0x279)]=[];return this;}['listenersAnyOutgoing'](){return this['_anyOutgoingListeners']||[];}[_0xf108a4(0x28b,0x317)](_0x51b813){function _0x15ef22(_0x31e052,_0x4054b9){return _0x32c5(_0x31e052-0xb0,_0x4054b9);}if(this['_anyOutgoingListeners']&&this['_anyOutgoingListeners']['length']){const listeners=this['_anyOutgoingListeners'][_0x15ef22(0x371,0x2db)]();for(const listener of listeners){listener['apply'](this,_0x51b813['data']);}}}}function Backoff(_0x1aa942){_0x1aa942=_0x1aa942||{},this['ms']=_0x1aa942[_0xb5e72f(0x1df,0x290)]||0x64;function _0xb5e72f(_0xf86e9,_0x22854c){return _0x32c5(_0x22854c- -0xd6,_0xf86e9);}this['max']=_0x1aa942[_0xb5e72f(0x14b,0x227)]||0x2710,this['factor']=_0x1aa942[_0xb5e72f(0x25d,0x1c1)]||0x2,this[_0xb5e72f(0x28f,0x16c)]=_0x1aa942['jitter']>0x0&&_0x1aa942['jitter']<=0x1?_0x1aa942['jitter']:0x0,this[_0xb5e72f(0x26e,0x2bf)]=0x0;}Backoff['prototype']['duration']=function(){var _0x44c79b=this['ms']*Math[_0x4de3be(0x30d,0x34a)](this[_0x4de3be(0x350,0x456)],this['attempts']++);function _0x4de3be(_0xbf6c1f,_0x16f89f){return _0x32c5(_0xbf6c1f-0xb9,_0x16f89f);}if(this['jitter']){var _0x22904c=Math[_0x4de3be(0x449,0x467)](),_0x16d0ab=Math['floor'](_0x22904c*this[_0x4de3be(0x2fb,0x3c7)]*_0x44c79b);_0x44c79b=(Math[_0x4de3be(0x299,0x2dd)](_0x22904c*0xa)&0x1)==0x0?_0x44c79b-_0x16d0ab:_0x44c79b+_0x16d0ab;}return Math['min'](_0x44c79b,this['max'])|0x0;},Backoff['prototype'][_0xf108a4(0x56f,0x4a1)]=function(){this['attempts']=0x0;},Backoff[_0xf108a4(0x58d,0x4b1)][_0xf108a4(0x3ae,0x342)]=function(min){this['ms']=min;},Backoff[_0xf108a4(0x46a,0x4b1)]['setMax']=function(_0x214a48){function _0x4bd045(_0x262a78,_0x349abf){return _0x32c5(_0x262a78-0x2c9,_0x349abf);}this[_0x4bd045(0x5c6,0x5ff)]=_0x214a48;},Backoff['prototype'][_0xf108a4(0x5be,0x4a9)]=function(_0xbf6822){this['jitter']=_0xbf6822;};class Manager extends Emitter{constructor(_0x11d1f6,_0x1fa8b5){var _0x3e89be;super(),this['nsps']={},this['subs']=[];_0x11d1f6&&'object'===typeof _0x11d1f6&&(_0x1fa8b5=_0x11d1f6,_0x11d1f6=undefined);_0x1fa8b5=_0x1fa8b5||{},_0x1fa8b5['path']=_0x1fa8b5['path']||_0x5babc9(0x7ac,0x715),this['opts']=_0x1fa8b5,installTimerFunctions(this,_0x1fa8b5),this['reconnection'](_0x1fa8b5['reconnection']!==![]),this['reconnectionAttempts'](_0x1fa8b5['reconnectionAttempts']||Infinity),this['reconnectionDelay'](_0x1fa8b5['reconnectionDelay']||0x3e8),this['reconnectionDelayMax'](_0x1fa8b5['reconnectionDelayMax']||0x1388),this[_0x5babc9(0x56f,0x59e)]((_0x3e89be=_0x1fa8b5[_0x5babc9(0x653,0x59e)])!==null&&_0x3e89be!==void 0x0?_0x3e89be:0.5);function _0x5babc9(_0x211df1,_0x39ce59){return _0x32c5(_0x39ce59-0x37b,_0x211df1);}this['backoff']=new Backoff({'min':this['reconnectionDelay'](),'max':this['reconnectionDelayMax'](),'jitter':this['randomizationFactor']()}),this[_0x5babc9(0x6ce,0x66e)](null==_0x1fa8b5[_0x5babc9(0x67b,0x66e)]?0x4e20:_0x1fa8b5['timeout']),this['_readyState']='closed',this[_0x5babc9(0x660,0x709)]=_0x11d1f6;const _parser=_0x1fa8b5[_0x5babc9(0x800,0x735)]||parser;this['encoder']=new _parser[(_0x5babc9(0x592,0x621))](),this['decoder']=new _parser[(_0x5babc9(0x655,0x68d))](),this['_autoConnect']=_0x1fa8b5['autoConnect']!==![];if(this['_autoConnect'])this[_0x5babc9(0x657,0x566)]();}[_0xf108a4(0x2bd,0x352)](_0x1909fb){if(!arguments['length'])return this['_reconnection'];this[_0xa9b22(-0xa,0x79)]=!!_0x1909fb;function _0xa9b22(_0x745462,_0x4e45e){return _0x32c5(_0x4e45e- -0x207,_0x745462);}return!_0x1909fb&&(this['skipReconnect']=!![]),this;}[_0xf108a4(0x559,0x43d)](_0x2a22fb){if(_0x2a22fb===undefined)return this[_0x39d10f(0x278,0x16e)];function _0x39d10f(_0x32e931,_0x5a8714){return _0x32c5(_0x5a8714- -0xa2,_0x32e931);}return this['_reconnectionAttempts']=_0x2a22fb,this;}[_0xf108a4(0x53e,0x428)](_0x492863){var _0x162181;if(_0x492863===undefined)return this['_reconnectionDelay'];function _0x15e453(_0x5f1834,_0x589939){return _0x32c5(_0x5f1834-0x2fc,_0x589939);}return this[_0x15e453(0x528,0x537)]=_0x492863,(_0x162181=this[_0x15e453(0x50e,0x5a4)])===null||_0x162181===void 0x0?void 0x0:_0x162181[_0x15e453(0x4de,0x460)](_0x492863),this;}['randomizationFactor'](_0x16bd2d){var _0x108615;function _0x4ab06c(_0x260704,_0x3faa3f){return _0x32c5(_0x260704-0x3a,_0x3faa3f);}if(_0x16bd2d===undefined)return this[_0x4ab06c(0x3c3,0x453)];return this['_randomizationFactor']=_0x16bd2d,(_0x108615=this['backoff'])===null||_0x108615===void 0x0?void 0x0:_0x108615[_0x4ab06c(0x383,0x3f4)](_0x16bd2d),this;}[_0xf108a4(0x3f3,0x501)](_0x182aca){var _0x40c29f;if(_0x182aca===undefined)return this['_reconnectionDelayMax'];this[_0x679bc8(0x65,0x23)]=_0x182aca,(_0x40c29f=this['backoff'])===null||_0x40c29f===void 0x0?void 0x0:_0x40c29f['setMax'](_0x182aca);function _0x679bc8(_0x398ce8,_0x5eedfc){return _0x32c5(_0x5eedfc- -0x2b1,_0x398ce8);}return this;}[_0xf108a4(0x34a,0x453)](_0x5c40d0){if(!arguments['length'])return this['_timeout'];return this['_timeout']=_0x5c40d0,this;}[_0xf108a4(0x2c7,0x325)](){function _0x431d23(_0x57e433,_0x1d6800){return _0x32c5(_0x57e433-0x2cd,_0x1d6800);}!this[_0x431d23(0x699,0x749)]&&this['_reconnection']&&this['backoff']['attempts']===0x0&&this[_0x431d23(0x5ef,0x6a5)]();}['open'](_0x137b92){if(~this[_0x5a0a3c(0x252,0x318)]['indexOf'](_0x5a0a3c(0x9e,-0xa)))return this;this['engine']=new Socket$1(this['uri'],this['opts']);const _0x73c9f2=this[_0x5a0a3c(0x230,0x308)],_0x2656db=this;this[_0x5a0a3c(0x252,0x271)]='opening',this['skipReconnect']=![];const _0x498a14=on(_0x73c9f2,_0x5a0a3c(0x9e,-0x4),function(){_0x2656db['onopen'](),_0x137b92&&_0x137b92();});function _0x5a0a3c(_0x3ddf1c,_0x42eb95){return _0x32c5(_0x3ddf1c- -0x14d,_0x42eb95);}const _0x309820=_0xd1848e=>{this[_0x312cd8(0x6c6,0x5b0)](),this[_0x312cd8(0x75e,0x83a)]=_0x312cd8(0x6c2,0x5dc);function _0x312cd8(_0x447921,_0x283d0e){return _0x32c5(_0x447921-0x3bf,_0x283d0e);}this[_0x312cd8(0x6a4,0x700)]('error',_0xd1848e),_0x137b92?_0x137b92(_0xd1848e):this['maybeReconnectOnOpen']();},_0xb19d8c=on(_0x73c9f2,_0x5a0a3c(0x24a,0x194),_0x309820);if(![]!==this[_0x5a0a3c(0xad,0xac)]){const _0x595c52=this['_timeout'],_0x4742ca=this[_0x5a0a3c(0x87,0x107)](()=>{_0x498a14(),_0x309820(new Error(_0x41eb41(0x248,0x1be)));function _0x41eb41(_0x5a6f33,_0x2042f8){return _0x32c5(_0x5a6f33- -0xab,_0x2042f8);}_0x73c9f2['close']();},_0x595c52);this[_0x5a0a3c(0x1dc,0x101)]['autoUnref']&&_0x4742ca[_0x5a0a3c(0x29d,0x269)](),this[_0x5a0a3c(0x212,0x149)]['push'](()=>{this['clearTimeoutFn'](_0x4742ca);});}return this[_0x5a0a3c(0x212,0xf9)][_0x5a0a3c(0x12a,0x248)](_0x498a14),this[_0x5a0a3c(0x212,0x1f6)]['push'](_0xb19d8c),this;}['connect'](_0x599379){return this['open'](_0x599379);}[_0xf108a4(0x2c9,0x366)](){function _0x4ddba9(_0x23653f,_0x550d6c){return _0x32c5(_0x23653f-0xc5,_0x550d6c);}this[_0x4ddba9(0x3cc,0x2c9)](),this['_readyState']=_0x4ddba9(0x2b0,0x2b0),this['emitReserved'](_0x4ddba9(0x2b0,0x239));const _0x84fd8a=this[_0x4ddba9(0x442,0x40a)];this['subs']['push'](on(_0x84fd8a,_0x4ddba9(0x297,0x17e),this[_0x4ddba9(0x366,0x254)][_0x4ddba9(0x2f9,0x2d6)](this)),on(_0x84fd8a,_0x4ddba9(0x374,0x45f),this['ondata']['bind'](this)),on(_0x84fd8a,'error',this[_0x4ddba9(0x3b5,0x362)][_0x4ddba9(0x2f9,0x3ec)](this)),on(_0x84fd8a,'close',this['onclose']['bind'](this)),on(this[_0x4ddba9(0x4b1,0x3a5)],'decoded',this['ondecoded'][_0x4ddba9(0x2f9,0x34c)](this)));}['onping'](){function _0x4f93c9(_0x172508,_0x17ec79){return _0x32c5(_0x17ec79- -0x375,_0x172508);}this[_0x4f93c9(-0x158,-0x90)]('ping');}['ondata'](data){try{this['decoder']['add'](data);}catch(_0x573382){this['onclose']('parse\x20error',_0x573382);}}[_0xf108a4(0x467,0x427)](_0x5b2d3e){nextTick(()=>{function _0xa103f7(_0x5bd2e3,_0x16aa39){return _0x32c5(_0x5bd2e3- -0x1b2,_0x16aa39);}this[_0xa103f7(0x133,0x3d)]('packet',_0x5b2d3e);},this['setTimeoutFn']);}[_0xf108a4(0x4a7,0x450)](_0x1ecd1){function _0x54c9b4(_0x505d32,_0xda624){return _0x32c5(_0x505d32-0x365,_0xda624);}this[_0x54c9b4(0x64a,0x714)]('error',_0x1ecd1);}[_0xf108a4(0x27d,0x38f)](_0x4f6094,_0x11e417){let _0x5f0449=this['nsps'][_0x4f6094];if(!_0x5f0449)_0x5f0449=new Socket(this,_0x4f6094,_0x11e417),this[_0x3ff30e(0x590,0x5c4)][_0x4f6094]=_0x5f0449;else this[_0x3ff30e(0x4c6,0x3df)]&&!_0x5f0449['active']&&_0x5f0449['connect']();function _0x3ff30e(_0x12f07f,_0x1da603){return _0x32c5(_0x12f07f-0x25c,_0x1da603);}return _0x5f0449;}[_0xf108a4(0x426,0x3bb)](_0x534ea6){const _0x15df3f=Object['keys'](this['nsps']);for(const _0x4d4c02 of _0x15df3f){const _0x5d40df=this[_0xf37f67(-0x6d,-0x60)][_0x4d4c02];if(_0x5d40df[_0xf37f67(-0x1e4,-0x2bc)])return;}function _0xf37f67(_0x46251a,_0x4d2d6c){return _0x32c5(_0x46251a- -0x3a1,_0x4d2d6c);}this['_close']();}[_0xf108a4(0x3a9,0x3d6)](_0x6ba5e9){function _0x5b83f7(_0xf00a21,_0x27e5f8){return _0x32c5(_0x27e5f8- -0x1b1,_0xf00a21);}const _0x164e72=this['encoder']['encode'](_0x6ba5e9);for(let _0xa6d049=0x0;_0xa6d049<_0x164e72['length'];_0xa6d049++){this[_0x5b83f7(0x257,0x1cc)][_0x5b83f7(-0x11,0x96)](_0x164e72[_0xa6d049],_0x6ba5e9[_0x5b83f7(0x30c,0x22b)]);}}['cleanup'](){this[_0x4a578e(0x41b,0x487)]['forEach'](_0x3ec71a=>_0x3ec71a()),this['subs'][_0x4a578e(0x34c,0x22f)]=0x0;function _0x4a578e(_0xd18197,_0x27fb7f){return _0x32c5(_0xd18197-0xbc,_0x27fb7f);}this['decoder']['destroy']();}[_0xf108a4(0x3fb,0x3e9)](){this['skipReconnect']=!![],this['_reconnecting']=![],this['onclose']('forced\x20close');}['disconnect'](){function _0x15f2c4(_0x13b48b,_0x3b205f){return _0x32c5(_0x3b205f-0x1d8,_0x13b48b);}return this[_0x15f2c4(0x4b7,0x461)]();}['onclose'](_0x17e9f1,_0x3af0e2){function _0x553781(_0x4d927e,_0x110021){return _0x32c5(_0x4d927e- -0x25b,_0x110021);}var _0x13a467;this['cleanup'](),(_0x13a467=this[_0x553781(0x122,0xa4)])===null||_0x13a467===void 0x0?void 0x0:_0x13a467[_0x553781(0x177,0x27e)](),this[_0x553781(-0x49,0x51)]['reset'](),this[_0x553781(0x144,0xcb)]='closed',this[_0x553781(0x8a,0x194)]('close',_0x17e9f1,_0x3af0e2),this[_0x553781(0x25,0xcd)]&&!this[_0x553781(0xc6,0x155)]&&this[_0x553781(0xc7,-0x1b)]();}['reconnect'](){if(this[_0x2b3535(0x71a,0x794)]||this['skipReconnect'])return this;function _0x2b3535(_0x265722,_0x1064e4){return _0x32c5(_0x1064e4-0x3c8,_0x265722);}const _0x4cc3cd=this;if(this[_0x2b3535(0x619,0x5da)][_0x2b3535(0x811,0x75d)]>=this[_0x2b3535(0x5c5,0x5d8)])this['backoff']['reset'](),this[_0x2b3535(0x6d3,0x6ad)](_0x2b3535(0x579,0x66d)),this[_0x2b3535(0x7e1,0x794)]=![];else{const _0x47450f=this[_0x2b3535(0x628,0x5da)]['duration']();this['_reconnecting']=!![];const _0x362bf5=this['setTimeoutFn'](()=>{if(_0x4cc3cd[_0x32b56a(0x596,0x4ca)])return;this['emitReserved']('reconnect_attempt',_0x4cc3cd['backoff']['attempts']);if(_0x4cc3cd[_0x32b56a(0x421,0x4ca)])return;function _0x32b56a(_0x57d614,_0x56116a){return _0x32c5(_0x56116a-0x1a9,_0x57d614);}_0x4cc3cd[_0x32b56a(0x2f4,0x394)](_0xe7e5ff=>{function _0x57af42(_0xe6b193,_0x187526){return _0x32c5(_0x187526- -0x10a,_0xe6b193);}_0xe7e5ff?(_0x4cc3cd[_0x57af42(0x2eb,0x2c2)]=![],_0x4cc3cd['reconnect'](),this['emitReserved'](_0x57af42(0x198,0x2a4),_0xe7e5ff)):_0x4cc3cd['onreconnect']();});},_0x47450f);this['opts']['autoUnref']&&_0x362bf5['unref'](),this['subs'][_0x2b3535(0x55c,0x63f)](()=>{function _0x589287(_0x18cded,_0x121758){return _0x32c5(_0x121758- -0xa8,_0x18cded);}this[_0x589287(0xb5,0x159)](_0x362bf5);});}}[_0xf108a4(0x5d3,0x4d9)](){const _0x1939e0=this[_0x3f5066(0x404,0x510)]['attempts'];this[_0x3f5066(0x5be,0x53c)]=![],this[_0x3f5066(0x404,0x349)][_0x3f5066(0x533,0x502)]();function _0x3f5066(_0x1c7bc6,_0x50ccce){return _0x32c5(_0x1c7bc6-0x1f2,_0x50ccce);}this[_0x3f5066(0x4d7,0x497)](_0x3f5066(0x514,0x537),_0x1939e0);}}const cache={};function lookup(_0x1b5ad0,_0x51a29f){typeof _0x1b5ad0==='object'&&(_0x51a29f=_0x1b5ad0,_0x1b5ad0=undefined);_0x51a29f=_0x51a29f||{};const parsed=url(_0x1b5ad0,_0x51a29f[_0x272792(0x4c8,0x464)]||_0x272792(0x516,0x4db)),_0x46d3bb=parsed['source'];function _0x272792(_0x3da2ba,_0x3360bf){return _0x32c5(_0x3da2ba-0x17c,_0x3360bf);}const _0x12010f=parsed['id'],_0x3ed6a6=parsed[_0x272792(0x4c8,0x4a7)],_0x1c201a=cache[_0x12010f]&&_0x3ed6a6 in cache[_0x12010f][_0x272792(0x4b0,0x5b3)],_0x3f5038=_0x51a29f['forceNew']||_0x51a29f['force\x20new\x20connection']||![]===_0x51a29f['multiplex']||_0x1c201a;let _0x580a1c;return _0x3f5038?_0x580a1c=new Manager(_0x46d3bb,_0x51a29f):(!cache[_0x12010f]&&(cache[_0x12010f]=new Manager(_0x46d3bb,_0x51a29f)),_0x580a1c=cache[_0x12010f]),parsed[_0x272792(0x522,0x63f)]&&!_0x51a29f[_0x272792(0x522,0x4ad)]&&(_0x51a29f[_0x272792(0x522,0x58c)]=parsed['queryKey']),_0x580a1c['socket'](parsed[_0x272792(0x4c8,0x569)],_0x51a29f);}Object[_0xf108a4(0x3fd,0x3e2)](lookup,{'Manager':Manager,'Socket':Socket,'io':lookup,'connect':lookup});var index=Object[_0xf108a4(0x381,0x333)]({'__proto__':null,'Manager':Manager,'NodeWebSocket':WS,'NodeXHR':XHR,'Socket':Socket,'WebSocket':WS,'WebTransport':WT,'XHR':XHR,'connect':lookup,'default':lookup,'io':lookup,'protocol':protocol});export{AuthClient,CustomDatabaseManager,DatabaseClient,EBaaSClient,EBaaSError,FunctionsClient,HttpClient,QueryBuilder,RealtimeChannel,RealtimeClient,StorageBucket,StorageClient,createClient,version};
|