nucleus-core-ts 0.8.12 → 0.8.13

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.
@@ -1 +1 @@
1
- (function(_0x3eeb1a,_0x312ff0){const _0x5b8492=_0x5d49,_0xa73164=_0x3eeb1a();while(!![]){try{const _0x403087=parseInt(_0x5b8492(0x10b))/0x1*(-parseInt(_0x5b8492(0x103))/0x2)+-parseInt(_0x5b8492(0x10a))/0x3*(-parseInt(_0x5b8492(0x113))/0x4)+parseInt(_0x5b8492(0x117))/0x5+parseInt(_0x5b8492(0x105))/0x6*(parseInt(_0x5b8492(0x10e))/0x7)+-parseInt(_0x5b8492(0x10c))/0x8+-parseInt(_0x5b8492(0xf8))/0x9+parseInt(_0x5b8492(0x104))/0xa;if(_0x403087===_0x312ff0)break;else _0xa73164['push'](_0xa73164['shift']());}catch(_0x18eb14){_0xa73164['push'](_0xa73164['shift']());}}}(_0x5d5f,0xc0234));function _0x5d49(_0x3276f1,_0x5760ac){_0x3276f1=_0x3276f1-0xea;const _0x5d5fd5=_0x5d5f();let _0x5d49d3=_0x5d5fd5[_0x3276f1];if(_0x5d49['gQJzTa']===undefined){var _0x1beb06=function(_0x22c7c3){const _0x10c530='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1a2a51='',_0x7637bd='';for(let _0x14f5af=0x0,_0x4c4edb,_0x188dae,_0x191017=0x0;_0x188dae=_0x22c7c3['charAt'](_0x191017++);~_0x188dae&&(_0x4c4edb=_0x14f5af%0x4?_0x4c4edb*0x40+_0x188dae:_0x188dae,_0x14f5af++%0x4)?_0x1a2a51+=String['fromCharCode'](0xff&_0x4c4edb>>(-0x2*_0x14f5af&0x6)):0x0){_0x188dae=_0x10c530['indexOf'](_0x188dae);}for(let _0x4da9d2=0x0,_0x316432=_0x1a2a51['length'];_0x4da9d2<_0x316432;_0x4da9d2++){_0x7637bd+='%'+('00'+_0x1a2a51['charCodeAt'](_0x4da9d2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x7637bd);};_0x5d49['NhwZdl']=_0x1beb06,_0x5d49['dWtOnT']={},_0x5d49['gQJzTa']=!![];}const _0x528c8b=_0x5d5fd5[0x0],_0x320b6e=_0x3276f1+_0x528c8b,_0x54508a=_0x5d49['dWtOnT'][_0x320b6e];return!_0x54508a?(_0x5d49d3=_0x5d49['NhwZdl'](_0x5d49d3),_0x5d49['dWtOnT'][_0x320b6e]=_0x5d49d3):_0x5d49d3=_0x54508a,_0x5d49d3;}function _0x5d5f(){const _0x578c4c=['odCXndy3mMr4u0zHBq','vg9Rzw4GAw5Qzwn0zwqGzNjVBsbJB29RAwuGDg8G','mZe1z0XvyKr4','ufPyrgy','tKXmyKW','uMvXDwvZDcb0Aw1LB3v0','zxjYB3i','nJi4mtm2seL1Cw5Z','zM9SBg93','Ag9ZDa','C2v0','nta2odC3nwfSCfryrW','AgvHzgvYCW','AuLsD3q','Bwv0Ag9K','BwfUDwfS','Cgf0AfjLD3jPDgu','EuLcuxi','Cgf0Ag5HBwu','tK9bAKe','CKr2vfu','Aw5Qzwn0vg9Rzw5gCM9Tq29VA2LL','DhjHBNnMzxiTzw5JB2rPBMC','Aw5MBW','CMvWBgfJzq','BxmP','ywjVCNq','y29UDgvUDc1LBMnVzgLUzW','q29UDgvUDc1uExbL','B3jPz2LU','DxjS','Cgf0Ahm','B25szxf1zxn0','yM9KEq','nZiZmdG0m2rhsujQva','Bxm6ia','uhjVEhLPBMC6ia','y29VA2LL','rMvTs1O','DgfYz2v0CW','zw50CMLLCW','C3rHDhvZ','rxjYB3i6ia','y29VA2LLtMfTzq','qwjVCNrfCNjVCG','mZHRwe9ICK4','mte4ndi5otbSrxvWBwu','mteXode2wwHWCLzy','BwvZC2fNzq','zM9SBg93uMvKAxjLy3rZ','B25fCNjVCG','sxrUDhi','nMTNAwTYqW','mZuZmtvev0zQzuy'];_0x5d5f=function(){return _0x578c4c;};return _0x5d5f();}import{createProxyLogger,matchPath,parseCookies,rewritePath}from'./utils';export function createHttpProxyHandler(_0x49918f){const _0x128c18=_0x5d49,_0x1534ac={'Itntr':function(_0xc663d8,_0x2da3be,_0x557fed){return _0xc663d8(_0x2da3be,_0x557fed);},'NLLbL':function(_0xbe7489,_0x530965){return _0xbe7489(_0x530965);},'iIRwt':_0x128c18(0x115),'uaRGa':'authorization','NOAjA':function(_0x3df454,_0x111bba,_0x13718f){return _0x3df454(_0x111bba,_0x13718f);},'FLoEg':function(_0x418681,_0x44f099){return _0x418681===_0x44f099;},'IYsjJ':_0x128c18(0x11b),'yIBQr':function(_0x4e2bf7,_0x47f2d0){return _0x4e2bf7(_0x47f2d0);},'FemKZ':function(_0x260335,_0x3c1898){return _0x260335-_0x3c1898;},'PZXDf':_0x128c18(0xf1),'rlQBL':function(_0xde3a,_0x305237){return _0xde3a instanceof _0x305237;},'WOOXm':_0x128c18(0x111),'VYEdX':'Gateway\x20Timeout','KkyXW':'Backend\x20request\x20timed\x20out','XnSNP':'application/json','rDvTU':function(_0x2e431b,_0xb53d8b,_0x4b5bce){return _0x2e431b(_0xb53d8b,_0x4b5bce);}},_0x2e2d6a=_0x1534ac[_0x128c18(0xea)](createProxyLogger,'HTTP\x20Proxy',_0x49918f['debug']??![]);function _0x3e5551(_0x39edaa){const _0x2c2973=_0x128c18;for(const _0x3d2caa of _0x49918f[_0x2c2973(0xfd)]){if(_0x1534ac['Itntr'](matchPath,_0x39edaa,_0x3d2caa[_0x2c2973(0xf5)]))return _0x3d2caa;}return null;}function _0x1ed030(_0x1c27d8,_0x138846){const _0x53abdb=_0x128c18,_0x1caf12=_0x138846[_0x53abdb(0xf4)][_0x53abdb(0xee)](/\/$/,'');let _0x8a53b4=_0x1c27d8;return _0x138846[_0x53abdb(0x11c)]&&(_0x8a53b4=rewritePath(_0x1c27d8,_0x138846[_0x53abdb(0x11c)])),''+_0x1caf12+_0x8a53b4;}return{async 'handle'(_0x435cac){const _0x6a35ce=_0x128c18,_0x2d0f9d=new URL(_0x435cac[_0x6a35ce(0xf4)]),_0x50ff68=_0x2d0f9d[_0x6a35ce(0x11e)],_0x5d7dec=_0x1534ac[_0x6a35ce(0x110)](_0x3e5551,_0x50ff68);if(!_0x5d7dec)return null;const _0x3abd4b=performance['now'](),_0x3bb0a0=_0x1534ac[_0x6a35ce(0x109)](_0x1ed030,_0x50ff68,_0x5d7dec),_0xc1fe63=_0x2d0f9d['search']?''+_0x3bb0a0+_0x2d0f9d['search']:_0x3bb0a0;_0x2e2d6a[_0x6a35ce(0xed)](_0x6a35ce(0xfa)+_0x435cac[_0x6a35ce(0x11a)]+'\x20'+_0x50ff68+'\x20->\x20'+_0xc1fe63),_0x49918f[_0x6a35ce(0xf6)]?.(_0x50ff68,_0xc1fe63);const _0x14d539=new Headers(_0x435cac['headers']);if(_0x5d7dec['changeOrigin']!==![]){const _0xd16d09=new URL(_0x5d7dec[_0x6a35ce(0xf4)]);_0x14d539['set'](_0x1534ac[_0x6a35ce(0x119)],_0xd16d09[_0x6a35ce(0x115)]),_0x14d539[_0x6a35ce(0x116)](_0x6a35ce(0xf3),_0xd16d09['origin']);}if(_0x5d7dec[_0x6a35ce(0xeb)]){const _0x36c341=parseCookies(_0x435cac[_0x6a35ce(0x118)]['get'](_0x6a35ce(0xfb))),_0x36b11f=_0x36c341[_0x5d7dec[_0x6a35ce(0xeb)][_0x6a35ce(0x101)]];if(_0x36b11f){const _0x301870=_0x5d7dec['injectTokenFromCookie']['headerName']??_0x1534ac['uaRGa'];_0x14d539[_0x6a35ce(0x116)](_0x301870,'Bearer\x20'+_0x36b11f),_0x2e2d6a[_0x6a35ce(0xed)](_0x6a35ce(0x10d)+_0x301870);}}if(_0x5d7dec[_0x6a35ce(0x118)])for(const [_0x71ae55,_0x1922dc]of Object[_0x6a35ce(0xfe)](_0x5d7dec[_0x6a35ce(0x118)])){_0x14d539[_0x6a35ce(0x116)](_0x71ae55,_0x1922dc);}_0x14d539['delete'](_0x6a35ce(0x115));try{const _0xe92d5d=new AbortController(),_0x43cd2b=_0x5d7dec['timeout']??0x7530,_0x1211fa=_0x1534ac[_0x6a35ce(0x11f)](setTimeout,()=>{const _0x168466=_0x6a35ce;_0xe92d5d[_0x168466(0xf0)]();},_0x43cd2b),_0x4692c2=await fetch(_0xc1fe63,{'method':_0x435cac[_0x6a35ce(0x11a)],'headers':_0x14d539,'body':_0x435cac[_0x6a35ce(0xf7)],'signal':_0xe92d5d['signal'],'redirect':_0x1534ac['FLoEg'](_0x5d7dec[_0x6a35ce(0x107)],![])?_0x1534ac['IYsjJ']:_0x6a35ce(0x114)});_0x1534ac['yIBQr'](clearTimeout,_0x1211fa);const _0x198125=_0x1534ac[_0x6a35ce(0xfc)](performance['now'](),_0x3abd4b);_0x2e2d6a[_0x6a35ce(0xed)]('Response:\x20'+_0x4692c2['status']+'\x20('+_0x198125['toFixed'](0x0)+_0x6a35ce(0xef)),_0x49918f['onResponse']?.(_0x50ff68,_0x4692c2['status'],_0x198125);const _0x145f54=new Headers(_0x4692c2[_0x6a35ce(0x118)]);return _0x145f54['delete'](_0x1534ac[_0x6a35ce(0x10f)]),_0x145f54['delete'](_0x6a35ce(0xec)),new Response(_0x4692c2['body'],{'status':_0x4692c2[_0x6a35ce(0xff)],'statusText':_0x4692c2['statusText'],'headers':_0x145f54});}catch(_0x5b3027){const _0x508b72=performance['now']()-_0x3abd4b,_0x7da23c=_0x1534ac['rlQBL'](_0x5b3027,Error)?_0x5b3027:new Error(_0x1534ac[_0x6a35ce(0x11d)](String,_0x5b3027));if(_0x7da23c['name']===_0x6a35ce(0x102)){_0x2e2d6a['error']('Timeout\x20after\x20'+_0x508b72['toFixed'](0x0)+_0x6a35ce(0xf9)+_0x50ff68),_0x49918f[_0x6a35ce(0x108)]?.(new Error(_0x1534ac['WOOXm']),_0x50ff68,0x1f8);const _0x505f8c={};_0x505f8c['error']=_0x1534ac['VYEdX'],_0x505f8c[_0x6a35ce(0x106)]=_0x1534ac['KkyXW'];const _0x5b857e={};_0x5b857e['Content-Type']=_0x1534ac['XnSNP'];const _0x2b82cd={};return _0x2b82cd['status']=0x1f8,_0x2b82cd['headers']=_0x5b857e,new Response(JSON['stringify'](_0x505f8c),_0x2b82cd);}_0x2e2d6a['error'](_0x6a35ce(0x100)+_0x50ff68,_0x7da23c['message']),_0x49918f['onError']?.(_0x7da23c,_0x50ff68,0x1f6);const _0x1e73c6={};_0x1e73c6[_0x6a35ce(0x112)]='Bad\x20Gateway',_0x1e73c6[_0x6a35ce(0x106)]=_0x7da23c['message'];const _0x4b03ef={};_0x4b03ef[_0x6a35ce(0xf2)]=_0x1534ac['XnSNP'];const _0x74c1d1={};return _0x74c1d1['status']=0x1f6,_0x74c1d1[_0x6a35ce(0x118)]=_0x4b03ef,new Response(JSON['stringify'](_0x1e73c6),_0x74c1d1);}}};}
1
+ function _0xc7d8(){const _0x504106=['Aw5Qzwn0vg9Rzw5gCM9Tq29VA2LL','y29VA2LLtMfTzq','Cgf0AfjLD3jPDgu','zM9SBg93uMvKAxjLy3rZ','DgfYz2v0CW','uhjVEhLPBMC6ia','owHhC2zQCa','DhjHBNnMzxiTzw5JB2rPBMC','BfD6v0m','qwjVCNrfCNjVCG','qMvHCMvYia','mZbutwvrzui','Bwv0Ag9K','zgvSzxrL','yMXXwfy','ug55y1K','odeYmtqWsKP0B1rJ','nti1ntuZmKXntgjcAW','qvbbu0e','ndqXnJGWq3zLwgjm','ic0+ia','Bxm6ia','mZK2nJyWmg1vuhjSAq','vuv5yxm','C2v0','mJm1nJy2vNj1rhrP','vg9Rzw4GAw5Qzwn0zwqGzNjVBsbJB29RAwuGDg8G','vgLTzw91DcbHzNrLCIa','uMvXDwvZDcb0Aw1LB3v0','B25szxnWB25Zzq','zxjYB3i','BwvZC2fNzq','DxjS','DgLTzw91Da','zM9SBg93','C2vHCMnO','q1vMy2O','yxbWBgLJyxrPB24VANnVBG','otK2otqWrMPiz1nT','yxv0Ag9YAxPHDgLVBG','Aw5MBW','yM9KEq','C3rHDhvZ','rxjYB3i6ia','BM93','q29UDgvUDc1uExbL','AgvHzgvYCW','BMfTzq','mJuZmtm2nxveANzotG','Ag9ZDa','wvvQuhK','qMfKieDHDgv3yxK','yLHhy3K','qMv4Dw8','nezsBLntDa','y2HHBMDLt3jPz2LU'];_0xc7d8=function(){return _0x504106;};return _0xc7d8();}(function(_0x1cf12f,_0x34cf75){const _0x456d99=_0x1f61,_0x591d76=_0x1cf12f();while(!![]){try{const _0x4a103b=-parseInt(_0x456d99(0x217))/0x1*(parseInt(_0x456d99(0x1fc))/0x2)+-parseInt(_0x456d99(0x204))/0x3*(parseInt(_0x456d99(0x211))/0x4)+parseInt(_0x456d99(0x1f6))/0x5+-parseInt(_0x456d99(0x209))/0x6*(-parseInt(_0x456d99(0x224))/0x7)+-parseInt(_0x456d99(0x214))/0x8+parseInt(_0x456d99(0x20f))/0x9+-parseInt(_0x456d99(0x20e))/0xa;if(_0x4a103b===_0x34cf75)break;else _0x591d76['push'](_0x591d76['shift']());}catch(_0x5f41dd){_0x591d76['push'](_0x591d76['shift']());}}}(_0xc7d8,0x67322));function _0x1f61(_0x3e9dd5,_0x591995){_0x3e9dd5=_0x3e9dd5-0x1ed;const _0xc7d82f=_0xc7d8();let _0x1f61ad=_0xc7d82f[_0x3e9dd5];if(_0x1f61['EaHbAM']===undefined){var _0xac3fff=function(_0x34be40){const _0xb91d54='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5a5445='',_0xd73e5f='';for(let _0xc66070=0x0,_0x18c371,_0x31005f,_0x4fe5da=0x0;_0x31005f=_0x34be40['charAt'](_0x4fe5da++);~_0x31005f&&(_0x18c371=_0xc66070%0x4?_0x18c371*0x40+_0x31005f:_0x31005f,_0xc66070++%0x4)?_0x5a5445+=String['fromCharCode'](0xff&_0x18c371>>(-0x2*_0xc66070&0x6)):0x0){_0x31005f=_0xb91d54['indexOf'](_0x31005f);}for(let _0x1bfdc6=0x0,_0x3b45cc=_0x5a5445['length'];_0x1bfdc6<_0x3b45cc;_0x1bfdc6++){_0xd73e5f+='%'+('00'+_0x5a5445['charCodeAt'](_0x1bfdc6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xd73e5f);};_0x1f61['BRmrzT']=_0xac3fff,_0x1f61['Wgevxs']={},_0x1f61['EaHbAM']=!![];}const _0x1ac98c=_0xc7d82f[0x0],_0x118db4=_0x3e9dd5+_0x1ac98c,_0x301f7a=_0x1f61['Wgevxs'][_0x118db4];return!_0x301f7a?(_0x1f61ad=_0x1f61['BRmrzT'](_0x1f61ad),_0x1f61['Wgevxs'][_0x118db4]=_0x1f61ad):_0x1f61ad=_0x301f7a,_0x1f61ad;}import{createProxyLogger,matchPath,parseCookies,rewritePath}from'./utils';export function createHttpProxyHandler(_0x1f1cc9){const _0xa182e0=_0x1f61,_0x334911={'blqXV':function(_0x2fe587,_0x207ad7,_0x97fde3){return _0x2fe587(_0x207ad7,_0x97fde3);},'Bexuo':function(_0x3c6dfc,_0x52b346,_0x4839d8){return _0x3c6dfc(_0x52b346,_0x4839d8);},'lWzWC':function(_0x2284df,_0x1114a6){return _0x2284df(_0x1114a6);},'uczDL':function(_0x514523,_0x127225){return _0x514523!==_0x127225;},'bXGcy':_0xa182e0(0x1f7),'PnycY':function(_0x1c8bc9,_0x2e6ee5,_0x49b6c5){return _0x1c8bc9(_0x2e6ee5,_0x49b6c5);},'UEyas':'manual','fLlZs':function(_0x3c5bb4,_0x152409){return _0x3c5bb4-_0x152409;},'YEoIz':'content-encoding','PejaH':_0xa182e0(0x205),'YUjPy':function(_0x5d7079,_0x186f89){return _0x5d7079(_0x186f89);},'RdJLh':_0xa182e0(0x207),'wxGYH':'Gateway\x20Timeout','KkpBI':_0xa182e0(0x223),'CUfcj':_0xa182e0(0x1f9),'sAWTb':function(_0x520cb0,_0x3e3fa3,_0x4a7a15){return _0x520cb0(_0x3e3fa3,_0x4a7a15);},'APASA':'HTTP\x20Proxy'},_0x2c579b=_0x334911['sAWTb'](createProxyLogger,_0x334911[_0xa182e0(0x210)],_0x1f1cc9['debug']??![]);function _0x2450d9(_0x36eb6b){const _0x4f0877=_0xa182e0;for(const _0x285bb3 of _0x1f1cc9[_0x4f0877(0x202)]){if(_0x334911[_0x4f0877(0x20c)](matchPath,_0x36eb6b,_0x285bb3['paths']))return _0x285bb3;}return null;}function _0x251121(_0x1945d3,_0x37f710){const _0x228abc=_0xa182e0,_0x5987a2=_0x37f710['url']['replace'](/\/$/,'');let _0x430142=_0x1945d3;return _0x37f710[_0x228abc(0x200)]&&(_0x430142=_0x334911['Bexuo'](rewritePath,_0x1945d3,_0x37f710[_0x228abc(0x200)])),''+_0x5987a2+_0x430142;}return{async 'handle'(_0x2afb50){const _0xaad018=_0xa182e0,_0x4312bc=new URL(_0x2afb50[_0xaad018(0x21e)]),_0x56ae32=_0x4312bc['pathname'],_0x4da9c7=_0x334911[_0xaad018(0x206)](_0x2450d9,_0x56ae32);if(!_0x4da9c7)return null;const _0x1d921a=performance['now'](),_0x4e3763=_0x334911[_0xaad018(0x1fb)](_0x251121,_0x56ae32,_0x4da9c7),_0x4ecf21=_0x4312bc[_0xaad018(0x221)]?''+_0x4e3763+_0x4312bc['search']:_0x4e3763;_0x2c579b['info'](_0xaad018(0x203)+_0x2afb50[_0xaad018(0x20a)]+'\x20'+_0x56ae32+_0xaad018(0x212)+_0x4ecf21),_0x1f1cc9['onRequest']?.(_0x56ae32,_0x4ecf21);const _0x5496c6=new Headers(_0x2afb50[_0xaad018(0x1f4)]);if(_0x334911['uczDL'](_0x4da9c7[_0xaad018(0x1fd)],![])){const _0x463568=new URL(_0x4da9c7['url']);_0x5496c6['set'](_0x334911[_0xaad018(0x1fa)],_0x463568['host']),_0x5496c6[_0xaad018(0x216)]('origin',_0x463568['origin']);}if(_0x4da9c7['injectTokenFromCookie']){const _0x21fcf5=parseCookies(_0x2afb50['headers']['get']('cookie')),_0x240fdf=_0x21fcf5[_0x4da9c7['injectTokenFromCookie'][_0xaad018(0x1ff)]];if(_0x240fdf){const _0x38e4f1=_0x4da9c7[_0xaad018(0x1fe)]['headerName']??_0xaad018(0x1ed);_0x5496c6[_0xaad018(0x216)](_0x38e4f1,_0xaad018(0x208)+_0x240fdf),_0x2c579b['info'](_0xaad018(0x218)+_0x38e4f1);}}if(_0x4da9c7['headers'])for(const [_0x3408f3,_0x44b3d3]of Object['entries'](_0x4da9c7['headers'])){_0x5496c6['set'](_0x3408f3,_0x44b3d3);}_0x5496c6[_0xaad018(0x20b)](_0xaad018(0x1f7));try{const _0x3097b5=new AbortController(),_0x14a3de=_0x4da9c7[_0xaad018(0x21f)]??0x7530,_0x29cdb9=setTimeout(()=>{_0x3097b5['abort']();},_0x14a3de),_0x2ad253=await _0x334911[_0xaad018(0x20d)](fetch,_0x4ecf21,{'method':_0x2afb50['method'],'headers':_0x5496c6,'body':_0x2afb50[_0xaad018(0x1ef)],'signal':_0x3097b5['signal'],'redirect':_0x4da9c7[_0xaad018(0x201)]===![]?_0x334911[_0xaad018(0x215)]:_0xaad018(0x220)});clearTimeout(_0x29cdb9);const _0x6a21b4=_0x334911['fLlZs'](performance['now'](),_0x1d921a);_0x2c579b[_0xaad018(0x1ee)]('Response:\x20'+_0x2ad253['status']+'\x20('+_0x6a21b4['toFixed'](0x0)+'ms)'),_0x1f1cc9[_0xaad018(0x21b)]?.(_0x56ae32,_0x2ad253[_0xaad018(0x1f0)],_0x6a21b4);const _0x44c184=new Headers(_0x2ad253[_0xaad018(0x1f4)]);return _0x44c184[_0xaad018(0x20b)](_0x334911['YEoIz']),_0x44c184[_0xaad018(0x20b)](_0x334911['PejaH']),new Response(_0x2ad253['body'],{'status':_0x2ad253[_0xaad018(0x1f0)],'statusText':_0x2ad253['statusText'],'headers':_0x44c184});}catch(_0x1ca353){const _0x8a5bc2=_0x334911['fLlZs'](performance[_0xaad018(0x1f2)](),_0x1d921a),_0x461322=_0x1ca353 instanceof Error?_0x1ca353:new Error(_0x334911[_0xaad018(0x1f8)](String,_0x1ca353));if(_0x461322[_0xaad018(0x1f5)]===_0x334911['RdJLh']){_0x2c579b['error'](_0xaad018(0x219)+_0x8a5bc2['toFixed'](0x0)+_0xaad018(0x213)+_0x56ae32),_0x1f1cc9['onError']?.(new Error(_0xaad018(0x21a)),_0x56ae32,0x1f8);const _0x292606={};_0x292606['error']=_0x334911['wxGYH'],_0x292606['message']='Backend\x20request\x20timed\x20out';const _0xfe8280={};_0xfe8280[_0xaad018(0x1f3)]=_0x334911['KkpBI'];const _0x4435a7={};return _0x4435a7[_0xaad018(0x1f0)]=0x1f8,_0x4435a7['headers']=_0xfe8280,new Response(JSON['stringify'](_0x292606),_0x4435a7);}_0x2c579b[_0xaad018(0x21c)](_0xaad018(0x1f1)+_0x56ae32,_0x461322['message']),_0x1f1cc9['onError']?.(_0x461322,_0x56ae32,0x1f6);const _0x38fcfa={};_0x38fcfa['error']=_0x334911[_0xaad018(0x222)],_0x38fcfa[_0xaad018(0x21d)]=_0x461322['message'];const _0x5b0cb5={};_0x5b0cb5[_0xaad018(0x1f3)]=_0xaad018(0x223);const _0x343e1a={};return _0x343e1a['status']=0x1f6,_0x343e1a['headers']=_0x5b0cb5,new Response(JSON['stringify'](_0x38fcfa),_0x343e1a);}}};}
@@ -1 +1 @@
1
- function _0x16d0(_0x167fd5,_0x5d5cea){_0x167fd5=_0x167fd5-0x149;var _0x4c5a53=_0x4c5a();var _0x16d069=_0x4c5a53[_0x167fd5];if(_0x16d0['CRCNca']===undefined){var _0x5bedcf=function(_0x20d1e5){var _0xe7b914='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x9cf620='',_0x371532='';for(var _0x220f8a=0x0,_0x455e69,_0x3681a7,_0x3dfe14=0x0;_0x3681a7=_0x20d1e5['charAt'](_0x3dfe14++);~_0x3681a7&&(_0x455e69=_0x220f8a%0x4?_0x455e69*0x40+_0x3681a7:_0x3681a7,_0x220f8a++%0x4)?_0x9cf620+=String['fromCharCode'](0xff&_0x455e69>>(-0x2*_0x220f8a&0x6)):0x0){_0x3681a7=_0xe7b914['indexOf'](_0x3681a7);}for(var _0x56a083=0x0,_0x15ce0d=_0x9cf620['length'];_0x56a083<_0x15ce0d;_0x56a083++){_0x371532+='%'+('00'+_0x9cf620['charCodeAt'](_0x56a083)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x371532);};_0x16d0['knRrFk']=_0x5bedcf,_0x16d0['WdoNeq']={},_0x16d0['CRCNca']=!![];}var _0xc7bb67=_0x4c5a53[0x0],_0xa14d2=_0x167fd5+_0xc7bb67,_0x2324f4=_0x16d0['WdoNeq'][_0xa14d2];return!_0x2324f4?(_0x16d069=_0x16d0['knRrFk'](_0x16d069),_0x16d0['WdoNeq'][_0xa14d2]=_0x16d069):_0x16d069=_0x2324f4,_0x16d069;}function _0x4c5a(){var _0x5e9aaf=['mJuYohrfsfPVyW','ndvdDe1Tq0O','m3vdy3nXtq','mJm4nty3mgnrDgjgAW','ntq2mty4AgXNuKTp','mtm4nufgwvLvBq','mJiWmdGYu2LZywXQ','ntK3mdD0CNL4ALy','oda4nte0r3PJze9A','mZmWmZi0Benxy1vu'];_0x4c5a=function(){return _0x5e9aaf;};return _0x4c5a();}(function(_0x329346,_0x41ebd3){var _0x588431=_0x16d0,_0x9dc04=_0x329346();while(!![]){try{var _0x279526=parseInt(_0x588431(0x14b))/0x1+parseInt(_0x588431(0x14a))/0x2*(-parseInt(_0x588431(0x150))/0x3)+-parseInt(_0x588431(0x14e))/0x4*(-parseInt(_0x588431(0x149))/0x5)+parseInt(_0x588431(0x14d))/0x6+parseInt(_0x588431(0x14c))/0x7+-parseInt(_0x588431(0x152))/0x8*(parseInt(_0x588431(0x14f))/0x9)+parseInt(_0x588431(0x151))/0xa;if(_0x279526===_0x41ebd3)break;else _0x9dc04['push'](_0x9dc04['shift']());}catch(_0x1aad53){_0x9dc04['push'](_0x9dc04['shift']());}}}(_0x4c5a,0x2eff2));export{createHttpProxyHandler}from'./httpProxy';export{createProxyServer,defaultProxyConfig}from'./server';export{addQueryParam,createProxyLogger,globToRegex,httpToWs,loadEnvFile,matchPath,parseCookies,rewritePath,sanitizeForLog,wsToHttp}from'./utils';export{createWsProxyHandler,startWsProxyServer}from'./wsProxy';
1
+ (function(_0x45d0fa,_0x3e34d5){var _0x3782a7=_0x562b,_0x2f631c=_0x45d0fa();while(!![]){try{var _0x3b7efd=parseInt(_0x3782a7(0xd9))/0x1*(parseInt(_0x3782a7(0xe1))/0x2)+-parseInt(_0x3782a7(0xdc))/0x3*(-parseInt(_0x3782a7(0xd6))/0x4)+parseInt(_0x3782a7(0xdf))/0x5+parseInt(_0x3782a7(0xdd))/0x6*(-parseInt(_0x3782a7(0xd7))/0x7)+-parseInt(_0x3782a7(0xde))/0x8*(-parseInt(_0x3782a7(0xd8))/0x9)+-parseInt(_0x3782a7(0xe0))/0xa+parseInt(_0x3782a7(0xda))/0xb*(parseInt(_0x3782a7(0xdb))/0xc);if(_0x3b7efd===_0x3e34d5)break;else _0x2f631c['push'](_0x2f631c['shift']());}catch(_0x4e9846){_0x2f631c['push'](_0x2f631c['shift']());}}}(_0x39c9,0x89207));export{createHttpProxyHandler}from'./httpProxy';export{createProxyServer,defaultProxyConfig}from'./server';function _0x562b(_0x57bb05,_0x1ad206){_0x57bb05=_0x57bb05-0xd6;var _0x39c964=_0x39c9();var _0x562b08=_0x39c964[_0x57bb05];if(_0x562b['ynycoL']===undefined){var _0x3db887=function(_0x599906){var _0x85cd57='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x30eccd='',_0x49570c='';for(var _0x5a5786=0x0,_0x33d4a6,_0x27f87f,_0x3c5ba8=0x0;_0x27f87f=_0x599906['charAt'](_0x3c5ba8++);~_0x27f87f&&(_0x33d4a6=_0x5a5786%0x4?_0x33d4a6*0x40+_0x27f87f:_0x27f87f,_0x5a5786++%0x4)?_0x30eccd+=String['fromCharCode'](0xff&_0x33d4a6>>(-0x2*_0x5a5786&0x6)):0x0){_0x27f87f=_0x85cd57['indexOf'](_0x27f87f);}for(var _0x165346=0x0,_0x54d69e=_0x30eccd['length'];_0x165346<_0x54d69e;_0x165346++){_0x49570c+='%'+('00'+_0x30eccd['charCodeAt'](_0x165346)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x49570c);};_0x562b['xWmEig']=_0x3db887,_0x562b['fTVjTx']={},_0x562b['ynycoL']=!![];}var _0x308035=_0x39c964[0x0],_0x58c868=_0x57bb05+_0x308035,_0x218e41=_0x562b['fTVjTx'][_0x58c868];return!_0x218e41?(_0x562b08=_0x562b['xWmEig'](_0x562b08),_0x562b['fTVjTx'][_0x58c868]=_0x562b08):_0x562b08=_0x218e41,_0x562b08;}export{addQueryParam,createProxyLogger,globToRegex,httpToWs,loadEnvFile,matchPath,parseCookies,rewritePath,sanitizeForLog,wsToHttp}from'./utils';export{createWsProxyHandler,startWsProxyServer}from'./wsProxy';function _0x39c9(){var _0xbe1e71=['ntK3ntCXmgLIu2PKsq','mtG3neTduu1uqq','odHgwwXvAgO','nZq1mJK2m2nHtNzdsG','mJy4nJuXogXfqwfOsa','nJq1CgTUvxv5','mtu0sNP6A01M','mtG3mZmYBeHbverV','mtm3mdm3z3jhCfrN','nLDfsK1ICa','oezhDuH0Ca','ndG3otyWrhrOwLDR'];_0x39c9=function(){return _0xbe1e71;};return _0x39c9();}
@@ -1 +1 @@
1
- const _0x55d940=_0x38fd;(function(_0x40289b,_0x56809b){const _0x5b5a82=_0x38fd,_0x1e14b3=_0x40289b();while(!![]){try{const _0x357380=parseInt(_0x5b5a82(0x8b))/0x1*(-parseInt(_0x5b5a82(0x8a))/0x2)+-parseInt(_0x5b5a82(0x9a))/0x3*(parseInt(_0x5b5a82(0x82))/0x4)+-parseInt(_0x5b5a82(0x98))/0x5*(-parseInt(_0x5b5a82(0x76))/0x6)+-parseInt(_0x5b5a82(0x7c))/0x7+parseInt(_0x5b5a82(0x90))/0x8*(-parseInt(_0x5b5a82(0x6e))/0x9)+-parseInt(_0x5b5a82(0x7f))/0xa+-parseInt(_0x5b5a82(0x91))/0xb*(-parseInt(_0x5b5a82(0x7d))/0xc);if(_0x357380===_0x56809b)break;else _0x1e14b3['push'](_0x1e14b3['shift']());}catch(_0x17dc17){_0x1e14b3['push'](_0x1e14b3['shift']());}}}(_0x1fea,0x8ac86));function _0x38fd(_0x225daf,_0xc11dff){_0x225daf=_0x225daf-0x6e;const _0x1fead5=_0x1fea();let _0x38fde0=_0x1fead5[_0x225daf];if(_0x38fd['cXrdof']===undefined){var _0x5d7112=function(_0x31a8bd){const _0xced6d3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5b6ced='',_0x2859ea='';for(let _0x1931aa=0x0,_0x2b18d1,_0x593281,_0x5a10fb=0x0;_0x593281=_0x31a8bd['charAt'](_0x5a10fb++);~_0x593281&&(_0x2b18d1=_0x1931aa%0x4?_0x2b18d1*0x40+_0x593281:_0x593281,_0x1931aa++%0x4)?_0x5b6ced+=String['fromCharCode'](0xff&_0x2b18d1>>(-0x2*_0x1931aa&0x6)):0x0){_0x593281=_0xced6d3['indexOf'](_0x593281);}for(let _0x11fe82=0x0,_0xa363d3=_0x5b6ced['length'];_0x11fe82<_0xa363d3;_0x11fe82++){_0x2859ea+='%'+('00'+_0x5b6ced['charCodeAt'](_0x11fe82)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2859ea);};_0x38fd['NYEISE']=_0x5d7112,_0x38fd['MAvzCm']={},_0x38fd['cXrdof']=!![];}const _0x1b0cb4=_0x1fead5[0x0],_0x144118=_0x225daf+_0x1b0cb4,_0x43d980=_0x38fd['MAvzCm'][_0x144118];return!_0x43d980?(_0x38fde0=_0x38fd['NYEISE'](_0x38fde0),_0x38fd['MAvzCm'][_0x144118]=_0x38fde0):_0x38fde0=_0x43d980,_0x38fde0;}import{createHttpProxyHandler}from'./httpProxy';function _0x1fea(){const _0x2c4050=['oePmzuHMvW','nda2mZq2nLPhBvzqua','C3rYAw5NAwz5','Chz0vvu','Cgf0Ahm','Ahr0Ca','ChjVzhvJDgLVBG','tM8GBwf0y2HPBMCGChjVEhKGDgfYz2v0igzVCIb0AgLZihjLCxvLC3q','oda5mez2AMrfvq','DxbNCMfKzq','mte3qKf5z2zM','oty0ntCYm2Tyr0fRBG','Ag9ZDg5HBwu','zgvIDwC','uNjKzuC','B25szwfKEq','uhjVEhKGu2vYDMvY','EvzOBgi','ChbrteW','mZK3ogvzCwDlva','AM9PBG','DgfYz2v0CW','icaTigHVC3rUyw1LoIa','z2v0','Cg9YDa','mZu1nZq3n2HtwNzrBq','odr6vfHYufa','tK9erv9ftLy','mZm2ote2meXNAKL1ra','mc4WlJaUma','u3rHCNrPBMCGChjVEhKGC2vYDMvYlI4U','oda5mZjSALbQBfC','icaTieHuvfaGDgfYz2v0CZOG','Aw5MBW','zw52ugf0Aa','icaGic0G','pIbszwfKEsbVBIbODhrWoI8V','icaTihbVCNq6ia','C3rHDhvZ','mZHrq0n3vNC','mJaYmtLfCKv3CxO','BgvUz3rO','qKHMBMy','AgvHzgvYCW','zhjHAw4'];_0x1fea=function(){return _0x2c4050;};return _0x1fea();}import{createProxyLogger,loadEnvFile}from'./utils';import{createWsProxyHandler}from'./wsProxy';export async function createProxyServer(_0x41fa93){const _0x4a661c=_0x38fd,_0x5c8e87={'bnpXQ':function(_0x11b68f,_0x2fa074){return _0x11b68f===_0x2fa074;},'yVhlb':'upgrade','elbng':function(_0x12d36c,_0x1297a4){return _0x12d36c===_0x1297a4;},'SsHCs':'Not\x20Found','RrdeG':_0x4a661c(0x80),'ppQLL':function(_0x5efd32,_0x2b0d89){return _0x5efd32!==_0x2b0d89;},'pvtUU':_0x4a661c(0x73),'BHfnf':function(_0x1b332f,_0x3229f8){return _0x1b332f(_0x3229f8);}},_0xf9f64d=_0x41fa93['port']??0xfa0,_0x4e9bb7=_0x41fa93['hostname']??_0x5c8e87[_0x4a661c(0x71)],_0xc44f15=_0x41fa93['dev']??_0x5c8e87[_0x4a661c(0x75)](process['env'][_0x4a661c(0x7e)],_0x4a661c(0x96)),_0x29e739=createProxyLogger(_0x5c8e87[_0x4a661c(0x93)],_0xc44f15);_0x41fa93['envPath']&&await _0x5c8e87[_0x4a661c(0x8d)](loadEnvFile,_0x41fa93[_0x4a661c(0x85)]);_0x29e739['info'](_0x4a661c(0x81)),_0x29e739['info'](_0x4a661c(0x79)+_0x4e9bb7),_0x29e739['info'](_0x4a661c(0x88)+_0xf9f64d),_0x29e739['info']('\x20\x20-\x20dev:\x20'+_0xc44f15);const _0x47a980=_0x41fa93['ws']?_0x5c8e87['BHfnf'](createWsProxyHandler,{..._0x41fa93['ws'],'debug':_0x41fa93['ws']['debug']??_0xc44f15}):null,_0x29f6e5=_0x41fa93['http']?createHttpProxyHandler({..._0x41fa93[_0x4a661c(0x95)],'debug':_0x41fa93[_0x4a661c(0x95)]['debug']??_0xc44f15}):null;if(_0x47a980&&_0x41fa93['ws']?.['targets']){_0x29e739[_0x4a661c(0x84)]('\x20\x20-\x20WebSocket\x20targets:\x20'+_0x41fa93['ws'][_0x4a661c(0x78)][_0x4a661c(0x8c)]);for(const _0x55a3fa of _0x41fa93['ws']['targets']){_0x29e739[_0x4a661c(0x84)](_0x4a661c(0x86)+_0x55a3fa['url']+':\x20'+_0x55a3fa[_0x4a661c(0x94)][_0x4a661c(0x77)](',\x20'));}}if(_0x29f6e5&&_0x41fa93[_0x4a661c(0x95)]?.['targets']){_0x29e739['info'](_0x4a661c(0x83)+_0x41fa93[_0x4a661c(0x95)][_0x4a661c(0x78)]['length']);for(const _0x4e2389 of _0x41fa93['http']['targets']){_0x29e739[_0x4a661c(0x84)]('\x20\x20\x20\x20-\x20'+_0x4e2389['url']+':\x20'+_0x4e2389[_0x4a661c(0x94)][_0x4a661c(0x77)](',\x20'));}}const _0x2e99b8={};_0x2e99b8['open']=function(){},_0x2e99b8['message']=function(){},_0x2e99b8['close']=function(){},_0x2e99b8[_0x4a661c(0x8f)]=function(){};const _0x513a7a=Bun['serve']({'port':_0xf9f64d,'hostname':_0x4e9bb7,async 'fetch'(_0x2f945d,_0x3d4221){const _0x4ca3bf=_0x4a661c;if(_0x5c8e87['bnpXQ'](_0x2f945d[_0x4ca3bf(0x8e)][_0x4ca3bf(0x7a)](_0x5c8e87[_0x4ca3bf(0x74)])?.['toLowerCase'](),'websocket')){if(_0x47a980){const _0x34229e=_0x47a980[_0x4ca3bf(0x99)](_0x2f945d,_0x3d4221);if(_0x5c8e87['elbng'](_0x34229e,!![]))return undefined;if(_0x34229e instanceof Response)return _0x34229e;}}if(_0x29f6e5){const _0x5ba157=await _0x29f6e5['handle'](_0x2f945d);if(_0x5ba157)return _0x5ba157;}const _0x1856ea={};_0x1856ea['error']=_0x5c8e87['SsHCs'],_0x1856ea['message']=_0x4ca3bf(0x97);const _0xe4ff6={};_0xe4ff6['Content-Type']='application/json';const _0x12f3b2={};return _0x12f3b2[_0x4ca3bf(0x89)]=0x194,_0x12f3b2[_0x4ca3bf(0x8e)]=_0xe4ff6,new Response(JSON[_0x4ca3bf(0x92)](_0x1856ea),_0x12f3b2);},'websocket':_0x47a980?.['websocket']??_0x2e99b8});_0x29e739[_0x4a661c(0x84)](_0x4a661c(0x87)+_0x4e9bb7+':'+_0xf9f64d);const _0x3389ca={};return _0x3389ca[_0x4a661c(0x7b)]=_0xf9f64d,_0x3389ca['hostname']=_0x4e9bb7,_0x41fa93[_0x4a661c(0x72)]?.(_0x3389ca),_0x513a7a;}const _0x2dae97={};_0x2dae97['targets']=[],_0x2dae97[_0x55d940(0x70)]=![],_0x2dae97['allowHmr']=!![],_0x2dae97['rejectUnknown']=!![];const _0x128f01={};_0x128f01['targets']=[],_0x128f01['debug']=![];const _0x2c21e4={};_0x2c21e4['port']=0xfa0,_0x2c21e4[_0x55d940(0x6f)]='0.0.0.0',_0x2c21e4['dev']=process['env']['NODE_ENV']!==_0x55d940(0x96),_0x2c21e4['ws']=_0x2dae97,_0x2c21e4['http']=_0x128f01;export const defaultProxyConfig=_0x2c21e4;
1
+ const _0x29c310=_0x2fe8;function _0x2fe8(_0x31e40f,_0x145059){_0x31e40f=_0x31e40f-0x1cc;const _0xeba7a4=_0xeba7();let _0x2fe872=_0xeba7a4[_0x31e40f];if(_0x2fe8['xlUtlZ']===undefined){var _0x1e6825=function(_0xf25e9d){const _0x144dde='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x577571='',_0x51f0b8='';for(let _0x215049=0x0,_0x4144e6,_0x3d731f,_0x4feffe=0x0;_0x3d731f=_0xf25e9d['charAt'](_0x4feffe++);~_0x3d731f&&(_0x4144e6=_0x215049%0x4?_0x4144e6*0x40+_0x3d731f:_0x3d731f,_0x215049++%0x4)?_0x577571+=String['fromCharCode'](0xff&_0x4144e6>>(-0x2*_0x215049&0x6)):0x0){_0x3d731f=_0x144dde['indexOf'](_0x3d731f);}for(let _0x1633b3=0x0,_0x167a0c=_0x577571['length'];_0x1633b3<_0x167a0c;_0x1633b3++){_0x51f0b8+='%'+('00'+_0x577571['charCodeAt'](_0x1633b3)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x51f0b8);};_0x2fe8['GoGdbW']=_0x1e6825,_0x2fe8['Bdlvms']={},_0x2fe8['xlUtlZ']=!![];}const _0x287082=_0xeba7a4[0x0],_0x4752a2=_0x31e40f+_0x287082,_0x3f9737=_0x2fe8['Bdlvms'][_0x4752a2];return!_0x3f9737?(_0x2fe872=_0x2fe8['GoGdbW'](_0x2fe872),_0x2fe8['Bdlvms'][_0x4752a2]=_0x2fe872):_0x2fe872=_0x3f9737,_0x2fe872;}(function(_0x5c66bd,_0x4c7c24){const _0x159559=_0x2fe8,_0x19ac85=_0x5c66bd();while(!![]){try{const _0x266355=-parseInt(_0x159559(0x1d6))/0x1+parseInt(_0x159559(0x1fa))/0x2*(parseInt(_0x159559(0x1d1))/0x3)+-parseInt(_0x159559(0x1fd))/0x4+parseInt(_0x159559(0x1d8))/0x5+-parseInt(_0x159559(0x1e8))/0x6*(parseInt(_0x159559(0x1e3))/0x7)+-parseInt(_0x159559(0x1fe))/0x8+-parseInt(_0x159559(0x1e7))/0x9*(-parseInt(_0x159559(0x1dd))/0xa);if(_0x266355===_0x4c7c24)break;else _0x19ac85['push'](_0x19ac85['shift']());}catch(_0x543ddc){_0x19ac85['push'](_0x19ac85['shift']());}}}(_0xeba7,0xdb53f));import{createHttpProxyHandler}from'./httpProxy';import{createProxyLogger,loadEnvFile}from'./utils';function _0xeba7(){const _0x107bd3=['zgvIDwC','ELLKwNe','nLHytMTVsa','ChjVzhvJDgLVBG','y2XVC2u','odeZmJq0Bxfzvw5q','mtm3mJi3nJbYEhPoqva','icaTigHVC3rUyw1LoIa','tM8GBwf0y2HPBMCGChjVEhKGDgfYz2v0igzVCIb0AgLZihjLCxvLC3q','Ahr0Ca','tM90iezVDw5K','D2vIC29JA2v0','mte5ndG2muD6q01WBG','zhjHAw4','zgv2','C3rYAw5NAwz5','u3rHCNrPBMCGChjVEhKGC2vYDMvYlI4U','mtq5oda3yuTRvLvc','icaGic0G','mZK4odK0mgLQver2ra','BgvUz3rO','DxbNCMfKzq','AM9PBG','icaTifDLyLnVy2TLDcb0yxjNzxrZoIa','mte2mta3ntbpENPSueu','DgfYz2v0CW','Cgf0Ahm','wwrdvvK','tK9erv9ftLy','Cg9YDa','mJfjr3rSCfC','icaTieHuvfaGDgfYz2v0CZOG','C2vYDMu','uuzjqw0','mtHvzKTVEuq','mJy5ntKZohforxn5ua','yxbWBgLJyxrPB24VANnVBG','r1vdB0G','pIbszwfKEsbVBIbODhrWoI8V','mc4WlJaUma','zw52ugf0Aa','Dxzgzva','Aw5MBW','vMTiENu','AgvHzgvYCW','zxjYB3i','ywXSB3DiBxi','EgPXug4','AgfUzgXL','icaTihbVCNq6ia','AxDtu3q'];_0xeba7=function(){return _0x107bd3;};return _0xeba7();}import{createWsProxyHandler}from'./wsProxy';export async function createProxyServer(_0x1f2bf5){const _0x42b12e=_0x2fe8,_0x50d89c={'PyMWW':function(_0x398072,_0x1e867b){return _0x398072===_0x1e867b;},'uvFeP':_0x42b12e(0x1da),'iwSSt':function(_0x9fab11,_0x1a1008){return _0x9fab11===_0x1a1008;},'xjqPn':_0x42b12e(0x1cf),'zYdZq':_0x42b12e(0x1cd),'VkHzu':function(_0x3a40f2,_0x2ecfdf){return _0x3a40f2!==_0x2ecfdf;},'GUCoH':_0x42b12e(0x1fb),'zTFLJ':function(_0x1d762e,_0x2aaba5,_0x57d5d9){return _0x1d762e(_0x2aaba5,_0x57d5d9);},'QFIAm':'Proxy\x20Server','YdCUY':function(_0x8805db,_0x58b369){return _0x8805db(_0x58b369);}},_0x1ae4a8=_0x1f2bf5[_0x42b12e(0x1e2)]??0xfa0,_0x3c9269=_0x1f2bf5['hostname']??_0x42b12e(0x1ec),_0x37fa39=_0x1f2bf5['dev']??_0x50d89c[_0x42b12e(0x1f0)](process['env'][_0x42b12e(0x1e1)],_0x50d89c[_0x42b12e(0x1ea)]),_0x4b583d=_0x50d89c['zTFLJ'](createProxyLogger,_0x50d89c[_0x42b12e(0x1e6)],_0x37fa39);_0x1f2bf5[_0x42b12e(0x1ed)]&&await loadEnvFile(_0x1f2bf5[_0x42b12e(0x1ed)]);_0x4b583d['info'](_0x42b12e(0x1d5)),_0x4b583d['info'](_0x42b12e(0x1cc)+_0x3c9269),_0x4b583d[_0x42b12e(0x1ef)](_0x42b12e(0x1f6)+_0x1ae4a8),_0x4b583d['info']('\x20\x20-\x20dev:\x20'+_0x37fa39);const _0x2ac780=_0x1f2bf5['ws']?_0x50d89c[_0x42b12e(0x1e0)](createWsProxyHandler,{..._0x1f2bf5['ws'],'debug':_0x1f2bf5['ws'][_0x42b12e(0x1f8)]??_0x37fa39}):null,_0xf91f1a=_0x1f2bf5['http']?createHttpProxyHandler({..._0x1f2bf5[_0x42b12e(0x1ce)],'debug':_0x1f2bf5[_0x42b12e(0x1ce)]['debug']??_0x37fa39}):null;if(_0x2ac780&&_0x1f2bf5['ws']?.['targets']){_0x4b583d['info'](_0x42b12e(0x1dc)+_0x1f2bf5['ws']['targets'][_0x42b12e(0x1d9)]);for(const _0x51aba2 of _0x1f2bf5['ws']['targets']){_0x4b583d['info'](_0x42b12e(0x1d7)+_0x51aba2['url']+':\x20'+_0x51aba2[_0x42b12e(0x1df)]['join'](',\x20'));}}if(_0xf91f1a&&_0x1f2bf5[_0x42b12e(0x1ce)]?.[_0x42b12e(0x1de)]){_0x4b583d[_0x42b12e(0x1ef)](_0x42b12e(0x1e4)+_0x1f2bf5[_0x42b12e(0x1ce)]['targets'][_0x42b12e(0x1d9)]);for(const _0x35a22d of _0x1f2bf5[_0x42b12e(0x1ce)]['targets']){_0x4b583d[_0x42b12e(0x1ef)]('\x20\x20\x20\x20-\x20'+_0x35a22d['url']+':\x20'+_0x35a22d[_0x42b12e(0x1df)][_0x42b12e(0x1db)](',\x20'));}}const _0x2e0bad={};_0x2e0bad['open']=function(){},_0x2e0bad['message']=function(){},_0x2e0bad[_0x42b12e(0x1fc)]=function(){},_0x2e0bad[_0x42b12e(0x1d2)]=function(){};const _0x44d009=Bun[_0x42b12e(0x1e5)]({'port':_0x1ae4a8,'hostname':_0x3c9269,async 'fetch'(_0x103077,_0x9b4954){const _0x4fbdec=_0x42b12e;if(_0x50d89c['PyMWW'](_0x103077[_0x4fbdec(0x1f1)]['get'](_0x50d89c[_0x4fbdec(0x1ee)])?.['toLowerCase'](),_0x4fbdec(0x1d0))){if(_0x2ac780){const _0x507a40=_0x2ac780[_0x4fbdec(0x1da)](_0x103077,_0x9b4954);if(_0x50d89c[_0x4fbdec(0x1f7)](_0x507a40,!![]))return undefined;if(_0x507a40 instanceof Response)return _0x507a40;}}if(_0xf91f1a){const _0x7c0edd=await _0xf91f1a[_0x4fbdec(0x1f5)](_0x103077);if(_0x7c0edd)return _0x7c0edd;}const _0x414dce={};_0x414dce[_0x4fbdec(0x1f2)]=_0x50d89c[_0x4fbdec(0x1f4)],_0x414dce['message']=_0x50d89c[_0x4fbdec(0x1f9)];const _0x4ff9fc={};_0x4ff9fc['Content-Type']=_0x4fbdec(0x1e9);const _0xbb5dcb={};return _0xbb5dcb['status']=0x194,_0xbb5dcb['headers']=_0x4ff9fc,new Response(JSON[_0x4fbdec(0x1d4)](_0x414dce),_0xbb5dcb);},'websocket':_0x2ac780?.['websocket']??_0x2e0bad});_0x4b583d[_0x42b12e(0x1ef)](_0x42b12e(0x1eb)+_0x3c9269+':'+_0x1ae4a8);const _0x514169={};return _0x514169[_0x42b12e(0x1e2)]=_0x1ae4a8,_0x514169['hostname']=_0x3c9269,_0x1f2bf5['onReady']?.(_0x514169),_0x44d009;}const _0x2d659c={};_0x2d659c['targets']=[],_0x2d659c['debug']=![],_0x2d659c[_0x29c310(0x1f3)]=!![],_0x2d659c['rejectUnknown']=!![];const _0x1882ef={};_0x1882ef[_0x29c310(0x1de)]=[],_0x1882ef['debug']=![];const _0x4f9b6d={};_0x4f9b6d[_0x29c310(0x1e2)]=0xfa0,_0x4f9b6d['hostname']=_0x29c310(0x1ec),_0x4f9b6d[_0x29c310(0x1d3)]=process['env'][_0x29c310(0x1e1)]!=='production',_0x4f9b6d['ws']=_0x2d659c,_0x4f9b6d[_0x29c310(0x1ce)]=_0x1882ef;export const defaultProxyConfig=_0x4f9b6d;
@@ -1 +1 @@
1
- function _0x1e6f(_0x4c466d,_0x132c0d){_0x4c466d=_0x4c466d-0x9b;const _0x2c3493=_0x2c34();let _0x1e6ffa=_0x2c3493[_0x4c466d];if(_0x1e6f['cBSXwE']===undefined){var _0x50de05=function(_0x1415b0){const _0x45830d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2c08da='',_0x1eaf0f='';for(let _0x13be70=0x0,_0x89f5bc,_0x2a6c93,_0x287661=0x0;_0x2a6c93=_0x1415b0['charAt'](_0x287661++);~_0x2a6c93&&(_0x89f5bc=_0x13be70%0x4?_0x89f5bc*0x40+_0x2a6c93:_0x2a6c93,_0x13be70++%0x4)?_0x2c08da+=String['fromCharCode'](0xff&_0x89f5bc>>(-0x2*_0x13be70&0x6)):0x0){_0x2a6c93=_0x45830d['indexOf'](_0x2a6c93);}for(let _0x1bc84a=0x0,_0x514d11=_0x2c08da['length'];_0x1bc84a<_0x514d11;_0x1bc84a++){_0x1eaf0f+='%'+('00'+_0x2c08da['charCodeAt'](_0x1bc84a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1eaf0f);};_0x1e6f['DaxxgM']=_0x50de05,_0x1e6f['NJgovm']={},_0x1e6f['cBSXwE']=!![];}const _0x22cb1e=_0x2c3493[0x0],_0xaca55e=_0x4c466d+_0x22cb1e,_0x304400=_0x1e6f['NJgovm'][_0xaca55e];return!_0x304400?(_0x1e6ffa=_0x1e6f['DaxxgM'](_0x1e6ffa),_0x1e6f['NJgovm'][_0xaca55e]=_0x1e6ffa):_0x1e6ffa=_0x304400,_0x1e6ffa;}(function(_0x32eecb,_0x1bf1d9){const _0x49c651=_0x1e6f,_0x123bbc=_0x32eecb();while(!![]){try{const _0x4f2b54=parseInt(_0x49c651(0xaa))/0x1*(-parseInt(_0x49c651(0xb3))/0x2)+parseInt(_0x49c651(0xb7))/0x3*(-parseInt(_0x49c651(0xaf))/0x4)+parseInt(_0x49c651(0xa5))/0x5*(-parseInt(_0x49c651(0xab))/0x6)+-parseInt(_0x49c651(0xa7))/0x7+-parseInt(_0x49c651(0xae))/0x8*(-parseInt(_0x49c651(0xb8))/0x9)+parseInt(_0x49c651(0xa9))/0xa+parseInt(_0x49c651(0xa3))/0xb;if(_0x4f2b54===_0x1bf1d9)break;else _0x123bbc['push'](_0x123bbc['shift']());}catch(_0x4b866b){_0x123bbc['push'](_0x123bbc['shift']());}}}(_0x2c34,0x755ba));export function parseCookies(_0x1728d4){const _0x287f79=_0x1e6f,_0x511393={};_0x511393[_0x287f79(0x9e)]=function(_0x5b6182,_0x3843e3){return _0x5b6182>_0x3843e3;};const _0x43e6b9=_0x511393,_0x55db1f={};if(!_0x1728d4)return _0x55db1f;for(const _0xa3f686 of _0x1728d4[_0x287f79(0xa2)](';')){const [_0x5566f6,..._0x21f160]=_0xa3f686['trim']()[_0x287f79(0xa2)]('=');_0x5566f6&&_0x43e6b9['meUlQ'](_0x21f160['length'],0x0)&&(_0x55db1f[_0x5566f6]=decodeURIComponent(_0x21f160['join']('=')));}return _0x55db1f;}function _0x2c34(){const _0x23733b=['Aw5JBhvKzxm','zMLSzq','mZbkthjNwfa','ovzVtK5UuW','AM9PBG','tMfpCMq','C3rHCNrZv2L0Aa','lI4U','BwvvBfe','C2XPy2u','CMvWBgfJzq','sK1nrLy','C3bSAxq','mtCWmJG0ndbwAML1DMW','BgvUz3rO','nwvIBuPyyW','Dgv4Da','mtiWnJa1oe1JDhrZDW','D2fYBG','mJm0odGZmejSvMflva','nda3t1PbyNP4','ntu5mZKWmLrQzLLtCG','xcqM','DhjPBq','ndmXnJC0nfPpAvPTDq','mJi4ndr0wxrbD3O','zw52','DgvZDa','zxjYB3i','mZm0mM1PDMT0DG','Ahr0Ca'];_0x2c34=function(){return _0x23733b;};return _0x2c34();}export function globToRegex(_0xf4a712){const _0x57faba=_0x1e6f,_0x5dc972={};_0x5dc972[_0x57faba(0x9b)]=_0x57faba(0xac);const _0x3fa9f3=_0x5dc972;let _0x42e06d=_0xf4a712[_0x57faba(0xa0)](/:[\w]+\*/g,'*');return _0x42e06d=_0x42e06d['replace'](/[.+?^${}()|[\]\\]/g,_0x3fa9f3['NaOrd']),_0x42e06d=_0x42e06d[_0x57faba(0xa0)](/\*/g,'.*'),new RegExp('^'+_0x42e06d+'$');}export function matchPath(_0x791bbe,_0x2e2af3){const _0x577ade=_0x1e6f;for(const _0x47b765 of _0x2e2af3){const _0x249f28=globToRegex(_0x47b765);if(_0x249f28[_0x577ade(0xb1)](_0x791bbe))return!![];}return![];}export function rewritePath(_0x262085,_0x19827c){const _0x504634=_0x1e6f;for(const [_0xe41c8f,_0x303869]of Object['entries'](_0x19827c)){const _0x154757=globToRegex(_0xe41c8f);if(_0x154757['test'](_0x262085)){const _0x3199b2=_0xe41c8f[_0x504634(0xa0)](/\*.*$/,''),_0x339ae3=_0x303869['replace'](/\*.*$/,'');return _0x262085['replace'](_0x3199b2,_0x339ae3);}}return _0x262085;}export function addQueryParam(_0x2a4e5b,_0x1c0c8a,_0x235b48){const _0x380d58=_0x1e6f,_0x259044={'JMMFV':function(_0x4eed44,_0x4628e9){return _0x4eed44(_0x4628e9);}},_0xf10f98=_0x2a4e5b[_0x380d58(0xb5)]('?')?'&':'?';return''+_0x2a4e5b+_0xf10f98+_0x259044[_0x380d58(0xa1)](encodeURIComponent,_0x1c0c8a)+'='+encodeURIComponent(_0x235b48);}export function httpToWs(_0x1d0277){const _0x9d1b5e=_0x1e6f;return _0x1d0277[_0x9d1b5e(0xa0)](/^http/,'ws');}export function wsToHttp(_0x1f4c2e){const _0x4c3d94=_0x1e6f;return _0x1f4c2e['replace'](/^ws/,_0x4c3d94(0xb4));}export function createProxyLogger(_0x2ed451,_0x565d90){return{'info':(..._0x3d3370)=>{_0x565d90&&console['log']('['+_0x2ed451+']',..._0x3d3370);},'warn':(..._0x86bbde)=>{const _0x298f6f=_0x1e6f;console[_0x298f6f(0xa8)]('['+_0x2ed451+']',..._0x86bbde);},'error':(..._0x59f88a)=>{const _0xc56ad0=_0x1e6f;console[_0xc56ad0(0xb2)]('['+_0x2ed451+']',..._0x59f88a);}};}export async function loadEnvFile(_0x5e9a9a){const _0x5bb0dc=_0x1e6f;try{const _0x381935=Bun[_0x5bb0dc(0xb6)](_0x5e9a9a),_0x1f5c71=await _0x381935['exists']();if(!_0x1f5c71)return;const _0x4fe63f=await _0x381935[_0x5bb0dc(0xa6)]();for(const _0x28337f of _0x4fe63f[_0x5bb0dc(0xa2)]('\x0a')){const _0x3811bf=_0x28337f[_0x5bb0dc(0xad)]();if(_0x3811bf&&!_0x3811bf[_0x5bb0dc(0x9c)]('#')){const [_0x13a46c,..._0x246499]=_0x3811bf[_0x5bb0dc(0xa2)]('='),_0x1c7d13=_0x246499[_0x5bb0dc(0xb9)]('=')['replace'](/^["']|["']$/g,'');_0x13a46c&&!process[_0x5bb0dc(0xb0)][_0x13a46c]&&(process[_0x5bb0dc(0xb0)][_0x13a46c]=_0x1c7d13);}}}catch{}}export function sanitizeForLog(_0x3d26a2,_0x2f01fd=0x32){const _0x4522c4=_0x1e6f;if(_0x3d26a2[_0x4522c4(0xa4)]<=_0x2f01fd)return _0x3d26a2;return _0x3d26a2[_0x4522c4(0x9f)](0x0,_0x2f01fd)+_0x4522c4(0x9d);}
1
+ function _0x16ab(){const _0x565b0a=['mJq1m0DyzxrkBq','C2XPy2u','otCYyNn3Cu5S','mtC1mtyWoePfww9SyW','CMvWBgfJzq','mZK1wvnNsM1T','mtzLq0LrDfO','C3rHCNrZv2L0Aa','C3bSAxq','teXKre4','AM9PBG','nda2mteZC2vZtxbc','zw50CMLLCW','xcqM','t2ztALa','DgvZDa','nJy3muzXEhDbuq','zxHPC3rZ','zw52','wxr2ywu','mZu0nZe4qLbYyLn4','mZuWmgnTqun0va','uujOthu','zxjYB3i','ouDIwvv4wG','mJGWotK1yKPVrwPY','Dgv4Da'];_0x16ab=function(){return _0x565b0a;};return _0x16ab();}(function(_0x190f39,_0x17adee){const _0x56ceaa=_0x5a3f,_0x4ba831=_0x190f39();while(!![]){try{const _0x1f673d=-parseInt(_0x56ceaa(0x1ca))/0x1+-parseInt(_0x56ceaa(0x1be))/0x2+parseInt(_0x56ceaa(0x1b5))/0x3+parseInt(_0x56ceaa(0x1cb))/0x4*(-parseInt(_0x56ceaa(0x1c3))/0x5)+-parseInt(_0x56ceaa(0x1c7))/0x6*(-parseInt(_0x56ceaa(0x1ba))/0x7)+parseInt(_0x56ceaa(0x1c8))/0x8*(parseInt(_0x56ceaa(0x1c2))/0x9)+-parseInt(_0x56ceaa(0x1bf))/0xa*(-parseInt(_0x56ceaa(0x1c5))/0xb);if(_0x1f673d===_0x17adee)break;else _0x4ba831['push'](_0x4ba831['shift']());}catch(_0x119599){_0x4ba831['push'](_0x4ba831['shift']());}}}(_0x16ab,0x2cf90));export function parseCookies(_0x37aaaa){const _0x3b1e8d=_0x5a3f,_0x2e6d86={'LLdDN':function(_0x4bc9ab,_0x4abdf9){return _0x4bc9ab>_0x4abdf9;},'YmBDl':function(_0x5b771e,_0x3b79d0){return _0x5b771e(_0x3b79d0);}},_0x18e809={};if(!_0x37aaaa)return _0x18e809;for(const _0x1a176e of _0x37aaaa[_0x3b1e8d(0x1cd)](';')){const [_0x291d67,..._0x5c8aaa]=_0x1a176e['trim']()['split']('=');_0x291d67&&_0x2e6d86[_0x3b1e8d(0x1ce)](_0x5c8aaa['length'],0x0)&&(_0x18e809[_0x291d67]=_0x2e6d86['YmBDl'](decodeURIComponent,_0x5c8aaa[_0x3b1e8d(0x1b4)]('=')));}return _0x18e809;}export function globToRegex(_0x2a29e2){const _0x59663d=_0x5a3f,_0x3dd9f2={};_0x3dd9f2['Ytvae']=_0x59663d(0x1b7);const _0x2378eb=_0x3dd9f2;let _0x5cd213=_0x2a29e2[_0x59663d(0x1c9)](/:[\w]+\*/g,'*');return _0x5cd213=_0x5cd213[_0x59663d(0x1c9)](/[.+?^${}()|[\]\\]/g,_0x2378eb[_0x59663d(0x1bd)]),_0x5cd213=_0x5cd213['replace'](/\*/g,'.*'),new RegExp('^'+_0x5cd213+'$');}export function matchPath(_0x2150e4,_0x118f6c){const _0x3ab8f6=_0x5a3f;for(const _0xabb751 of _0x118f6c){const _0x1f61fa=globToRegex(_0xabb751);if(_0x1f61fa[_0x3ab8f6(0x1b9)](_0x2150e4))return!![];}return![];}export function rewritePath(_0x16020f,_0x3e8644){const _0x54d675=_0x5a3f,_0x836b1={'QBhLu':function(_0x31913e,_0xcf1226){return _0x31913e(_0xcf1226);}};for(const [_0x37be7d,_0x497498]of Object[_0x54d675(0x1b6)](_0x3e8644)){const _0x4eef98=_0x836b1[_0x54d675(0x1c0)](globToRegex,_0x37be7d);if(_0x4eef98['test'](_0x16020f)){const _0x486c68=_0x37be7d[_0x54d675(0x1c9)](/\*.*$/,''),_0x36acb1=_0x497498[_0x54d675(0x1c9)](/\*.*$/,'');return _0x16020f['replace'](_0x486c68,_0x36acb1);}}return _0x16020f;}export function addQueryParam(_0x159532,_0x47a9a4,_0x3631cf){const _0x4664c5=_0x5a3f,_0x46823d={'OfSjP':function(_0x12fca2,_0x2a65ab){return _0x12fca2(_0x2a65ab);}},_0x4f8e0a=_0x159532['includes']('?')?'&':'?';return''+_0x159532+_0x4f8e0a+_0x46823d['OfSjP'](encodeURIComponent,_0x47a9a4)+'='+_0x46823d[_0x4664c5(0x1b8)](encodeURIComponent,_0x3631cf);}export function httpToWs(_0x33fb74){return _0x33fb74['replace'](/^http/,'ws');}function _0x5a3f(_0x179660,_0x3b9278){_0x179660=_0x179660-0x1b4;const _0x16ab41=_0x16ab();let _0x5a3f8e=_0x16ab41[_0x179660];if(_0x5a3f['nJzemD']===undefined){var _0x5d1e1e=function(_0x11c882){const _0x288323='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x332881='',_0x1fb1ed='';for(let _0x2925ad=0x0,_0x4d475e,_0x4275ce,_0x4e043a=0x0;_0x4275ce=_0x11c882['charAt'](_0x4e043a++);~_0x4275ce&&(_0x4d475e=_0x2925ad%0x4?_0x4d475e*0x40+_0x4275ce:_0x4275ce,_0x2925ad++%0x4)?_0x332881+=String['fromCharCode'](0xff&_0x4d475e>>(-0x2*_0x2925ad&0x6)):0x0){_0x4275ce=_0x288323['indexOf'](_0x4275ce);}for(let _0x5832f7=0x0,_0x4e995b=_0x332881['length'];_0x5832f7<_0x4e995b;_0x5832f7++){_0x1fb1ed+='%'+('00'+_0x332881['charCodeAt'](_0x5832f7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1fb1ed);};_0x5a3f['HTwUYr']=_0x5d1e1e,_0x5a3f['vDPJOZ']={},_0x5a3f['nJzemD']=!![];}const _0x474da8=_0x16ab41[0x0],_0x1fd49f=_0x179660+_0x474da8,_0x12ad1f=_0x5a3f['vDPJOZ'][_0x1fd49f];return!_0x12ad1f?(_0x5a3f8e=_0x5a3f['HTwUYr'](_0x5a3f8e),_0x5a3f['vDPJOZ'][_0x1fd49f]=_0x5a3f8e):_0x5a3f8e=_0x12ad1f,_0x5a3f8e;}export function wsToHttp(_0x31ded9){const _0xb0141f=_0x5a3f,_0x27568f={};_0x27568f['gkIaE']='http';const _0x2c50fb=_0x27568f;return _0x31ded9[_0xb0141f(0x1c9)](/^ws/,_0x2c50fb['gkIaE']);}export function createProxyLogger(_0x5bec83,_0x9a21ed){return{'info':(..._0x398f19)=>{_0x9a21ed&&console['log']('['+_0x5bec83+']',..._0x398f19);},'warn':(..._0x3c3cbe)=>{console['warn']('['+_0x5bec83+']',..._0x3c3cbe);},'error':(..._0x54468f)=>{const _0xc14184=_0x5a3f;console[_0xc14184(0x1c1)]('['+_0x5bec83+']',..._0x54468f);}};}export async function loadEnvFile(_0x4c2229){const _0x95e489=_0x5a3f;try{const _0xbcf679=Bun['file'](_0x4c2229),_0x475f1b=await _0xbcf679[_0x95e489(0x1bb)]();if(!_0x475f1b)return;const _0xd07a9f=await _0xbcf679[_0x95e489(0x1c4)]();for(const _0x21cc46 of _0xd07a9f[_0x95e489(0x1cd)]('\x0a')){const _0x57153a=_0x21cc46['trim']();if(_0x57153a&&!_0x57153a[_0x95e489(0x1cc)]('#')){const [_0xd827f9,..._0x4ef6cc]=_0x57153a['split']('='),_0x2402ed=_0x4ef6cc[_0x95e489(0x1b4)]('=')['replace'](/^["']|["']$/g,'');_0xd827f9&&!process['env'][_0xd827f9]&&(process[_0x95e489(0x1bc)][_0xd827f9]=_0x2402ed);}}}catch{}}export function sanitizeForLog(_0x5805ff,_0x19024e=0x32){const _0x5d3755=_0x5a3f;if(_0x5805ff['length']<=_0x19024e)return _0x5805ff;return _0x5805ff[_0x5d3755(0x1c6)](0x0,_0x19024e)+'...';}
@@ -1 +1 @@
1
- (function(_0x2b9a64,_0x267b61){const _0x3715b8=_0x1ec7,_0x317809=_0x2b9a64();while(!![]){try{const _0x251369=-parseInt(_0x3715b8(0x116))/0x1*(-parseInt(_0x3715b8(0x124))/0x2)+parseInt(_0x3715b8(0x11e))/0x3+parseInt(_0x3715b8(0x126))/0x4*(-parseInt(_0x3715b8(0x10b))/0x5)+parseInt(_0x3715b8(0x10c))/0x6*(parseInt(_0x3715b8(0x11b))/0x7)+-parseInt(_0x3715b8(0x10e))/0x8+-parseInt(_0x3715b8(0x11f))/0x9*(-parseInt(_0x3715b8(0xfe))/0xa)+parseInt(_0x3715b8(0xfd))/0xb*(-parseInt(_0x3715b8(0x131))/0xc);if(_0x251369===_0x267b61)break;else _0x317809['push'](_0x317809['shift']());}catch(_0x4478f7){_0x317809['push'](_0x317809['shift']());}}}(_0x29ec,0x56bd4));function _0x29ec(){const _0x130cec=['mZaXmdLHvNDQwuO','C3rYAw5N','EKzAr3a','q2XPzw50ignSB3nLzdOG','w1DtifbYB3H5xsbtDgfYDgvKig9Uia','nda2sKngBvrc','C2vHCMnOugfYyw1Z','y29VA2LL','mJC3ntC1C1HlqLji','odf6CLfMuwO','Dg9tDhjPBMC','qMfJA2vUzcbJB25Uzwn0zwq6ia','zxv4z2C','wKzQB00','ndjNsM9pt2q','Aw5Qzwn0vg9Rzw5gCM9Tq29VA2LL','mZm2nefnAfvqsq','yMfJA2vUzfDZ','D2vIC29JA2v0','C2vYDMu','CxvLCNLqyxjHBq','C3rHDhvZ','EuHRD2y','DxjS','y2XVC2u','Cgf0Aa','zxjYB3i','mtjvANfezeu','CMvWBgfJzq','Aw5MBW','vxbNCMfKAw5NoIa','v2vIu29JA2v0ihbHDgGGBM90igzVDw5K','C0jhAxK','se1sigj5CgfZCZOG','C2vUza','Bg9N','DgHLBG','nJyZotmYnxPcBhjOyq','mZe1mZyWCuP5wwXP','B25fCNjVCG','Dg9Rzw4','qvvjDwi','wxrQvgW','qMfJA2vUzcbJBg9Zzwq6ia','l19UzxH0l3DLyNbHy2STAg1Y','C3rHCNrZv2L0Aa','Ag9ZDg5HBwu','ChvZAa','qMfJA2vUzcbLCNjVCJOG','DxbNCMfKzq','z1znC3K','mZa1nunIy2DhqW','ntmZndbtzfL3wgi','CMvQzwn0vw5RBM93BG','ndeYmZG0C1vxruzN','t1bftG','wMDfvwy','zgf0yq','Cgf0AfjLD3jPDgu','C2v0','DgfYz2v0','zhjTvMW'];_0x29ec=function(){return _0x130cec;};return _0x29ec();}import{addQueryParam,createProxyLogger,httpToWs,matchPath,parseCookies,rewritePath}from'./utils';export function createWsProxyHandler(_0x24fafb){const _0x34483c=_0x1ec7,_0x340a51={'ZFjoM':function(_0x2a813b,_0x104b16,_0x5236c4){return _0x2a813b(_0x104b16,_0x5236c4);},'HFDop':_0x34483c(0x100),'DHvHp':function(_0x33306b,_0x58415e,_0x500451,_0x1b4eef){return _0x33306b(_0x58415e,_0x500451,_0x1b4eef);},'drmVl':function(_0x2f9638,_0x1eb549){return _0x2f9638!==_0x1eb549;},'iaSTp':function(_0x5e0d08,_0xec43ec){return _0x5e0d08!==_0xec43ec;},'ZgEUf':_0x34483c(0xf7),'sBGiy':function(_0x1dca5a,_0x10abe6){return _0x1dca5a(_0x10abe6);},'euxgg':_0x34483c(0x11d),'zFZGp':function(_0x1bf517,_0x134f33){return _0x1bf517===_0x134f33;},'HbFgu':'Backend\x20WebSocket\x20error','yHkwf':'WS\x20Proxy'},_0x46ea47=createProxyLogger(_0x340a51[_0x34483c(0x12c)],_0x24fafb['debug']??![]);function _0x2c28fb(_0x58864b){const _0x23fd66=_0x34483c;for(const _0x296350 of _0x24fafb['targets']){if(_0x340a51[_0x23fd66(0x123)](matchPath,_0x58864b,_0x296350['paths']))return _0x296350;}return null;}function _0x3456a0(_0x196389,_0x5d9a0a,_0x52ec12,_0x8c0d39){const _0x3fb21e=_0x34483c;let _0x2500ff=_0x5d9a0a[_0x3fb21e(0x12d)][_0x3fb21e(0x132)](/\/$/,'');_0x2500ff[_0x3fb21e(0x105)]('http')&&(_0x2500ff=httpToWs(_0x2500ff));let _0xcb5aa3=_0x196389;_0x5d9a0a['pathRewrite']&&(_0xcb5aa3=rewritePath(_0x196389,_0x5d9a0a[_0x3fb21e(0x112)]));let _0x18548f=''+_0x2500ff+_0xcb5aa3;const _0x30269b=_0x8c0d39[_0x3fb21e(0x120)]();_0x30269b&&(_0x18548f=_0x18548f+'?'+_0x30269b);if(_0x5d9a0a['injectTokenFromCookie']){const _0x38b2a8=_0x52ec12[_0x5d9a0a[_0x3fb21e(0x125)]['cookieName']];if(_0x38b2a8){const _0x33502e=_0x5d9a0a['injectTokenFromCookie'][_0x3fb21e(0x12a)]??_0x340a51['HFDop'];_0x18548f=_0x340a51['DHvHp'](addQueryParam,_0x18548f,_0x33502e,_0x38b2a8),_0x46ea47['info']('Token\x20injected\x20from\x20cookie');}}return _0x18548f;}return{'upgrade'(_0x336a9b,_0x1ad8f7){const _0x255735=_0x34483c,_0x20ebef=new URL(_0x336a9b['url']),_0x5e9e02=_0x20ebef['pathname'];if(_0x340a51[_0x255735(0x115)](_0x24fafb['allowHmr'],![])&&_0x5e9e02['startsWith'](_0x255735(0x104)))return _0x46ea47['info'](_0x255735(0xf9)+_0x5e9e02),![];const _0x3832aa=_0x2c28fb(_0x5e9e02);if(!_0x3832aa){if(_0x340a51['iaSTp'](_0x24fafb[_0x255735(0x10d)],![])){_0x46ea47['warn']('No\x20target\x20found\x20for:\x20'+_0x5e9e02);const _0x2ebe25={};return _0x2ebe25['status']=0x194,new Response(_0x340a51[_0x255735(0x110)],_0x2ebe25);}return![];}const _0x5ac4b4=_0x340a51[_0x255735(0xf8)](parseCookies,_0x336a9b['headers']['get'](_0x340a51[_0x255735(0x122)])),_0x410d6f=_0x3456a0(_0x5e9e02,_0x3832aa,_0x5ac4b4,_0x20ebef[_0x255735(0x11c)]);_0x46ea47['info'](_0x255735(0xf6)+_0x5e9e02+'\x20->\x20'+_0x410d6f);const _0x3e5dcf={};_0x3e5dcf[_0x255735(0x127)]=null,_0x3e5dcf['path']=_0x5e9e02,_0x3e5dcf['target']=_0x410d6f,_0x3e5dcf['buffer']=[];const _0x5cf609={};_0x5cf609['data']=_0x3e5dcf;const _0x182eec=_0x1ad8f7['upgrade'](_0x336a9b,_0x5cf609);return _0x182eec;},'websocket':{'open'(_0x2d35a0){const _0x51b166=_0x34483c,_0x5185e5=_0x2d35a0['data'],_0x339058=new WebSocket(_0x5185e5[_0x51b166(0x114)]);_0x339058['onopen']=()=>{const _0xca41dc=_0x51b166;_0x46ea47['info'](_0xca41dc(0x121)+_0x5185e5['path']),_0x24fafb['onOpen']?.(_0x5185e5['path'],_0x5185e5['target']);for(const _0x26bea9 of _0x5185e5['buffer']){_0x339058['send'](_0x26bea9);}_0x5185e5['buffer']=[];},_0x339058['onmessage']=_0x1eb7bc=>{const _0x52af5a=_0x51b166;if(_0x340a51[_0x52af5a(0x118)](typeof _0x1eb7bc['data'],_0x52af5a(0x117)))_0x2d35a0[_0x52af5a(0xfa)](_0x1eb7bc['data']);else{if(_0x1eb7bc['data']instanceof ArrayBuffer)_0x2d35a0['send'](new Uint8Array(_0x1eb7bc['data']));else _0x1eb7bc[_0x52af5a(0x111)]instanceof Blob&&_0x1eb7bc['data']['arrayBuffer']()[_0x52af5a(0xfc)](_0x35aeaa=>{_0x2d35a0['send'](new Uint8Array(_0x35aeaa));});}},_0x339058['onerror']=_0x4514a5=>{const _0x3ce9a8=_0x51b166,_0x4ea8a8=new Error(_0x340a51['HbFgu']);_0x46ea47[_0x3ce9a8(0x130)](_0x3ce9a8(0x108)+_0x5185e5[_0x3ce9a8(0x12f)],_0x4514a5),_0x24fafb[_0x3ce9a8(0xff)]?.(_0x4ea8a8,_0x5185e5[_0x3ce9a8(0x12f)]);},_0x339058['onclose']=()=>{const _0x293210=_0x51b166;_0x46ea47[_0x293210(0x133)](_0x293210(0x103)+_0x5185e5['path']),_0x24fafb['onClose']?.(_0x5185e5['path']),_0x2d35a0[_0x293210(0x12e)]();},_0x5185e5[_0x51b166(0x127)]=_0x339058;},'message'(_0x3fc5d7,_0x390393){const _0x3d32a3=_0x34483c,_0x49aa58=_0x3fc5d7['data'];if(_0x49aa58[_0x3d32a3(0x127)]?.['readyState']===WebSocket[_0x3d32a3(0x10f)])_0x49aa58[_0x3d32a3(0x127)][_0x3d32a3(0xfa)](_0x390393);else{if(typeof _0x390393===_0x3d32a3(0x117))_0x49aa58['buffer'][_0x3d32a3(0x107)](_0x390393);else{const _0x28f9c6=new ArrayBuffer(_0x390393['byteLength']);new Uint8Array(_0x28f9c6)[_0x3d32a3(0x113)](new Uint8Array(_0x390393)),_0x49aa58['buffer']['push'](_0x28f9c6);}}},'close'(_0x32f89c){const _0x24f195=_0x34483c,_0x223840=_0x32f89c['data'];_0x46ea47[_0x24f195(0x133)](_0x24f195(0x119)+_0x223840[_0x24f195(0x12f)]),_0x223840[_0x24f195(0x127)]&&_0x223840[_0x24f195(0x127)]['close']();},'drain'(_0x1d8caa){}}};}function _0x1ec7(_0x264b28,_0x4247c5){_0x264b28=_0x264b28-0xf6;const _0x29ec30=_0x29ec();let _0x1ec791=_0x29ec30[_0x264b28];if(_0x1ec7['WiKtyH']===undefined){var _0x592d7e=function(_0x24f01e){const _0xa19bf2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4c04bb='',_0x5eabb8='';for(let _0x45cdfc=0x0,_0x4e1a16,_0x6bf0bc,_0x46c5a7=0x0;_0x6bf0bc=_0x24f01e['charAt'](_0x46c5a7++);~_0x6bf0bc&&(_0x4e1a16=_0x45cdfc%0x4?_0x4e1a16*0x40+_0x6bf0bc:_0x6bf0bc,_0x45cdfc++%0x4)?_0x4c04bb+=String['fromCharCode'](0xff&_0x4e1a16>>(-0x2*_0x45cdfc&0x6)):0x0){_0x6bf0bc=_0xa19bf2['indexOf'](_0x6bf0bc);}for(let _0x29b8d5=0x0,_0xd8ad99=_0x4c04bb['length'];_0x29b8d5<_0xd8ad99;_0x29b8d5++){_0x5eabb8+='%'+('00'+_0x4c04bb['charCodeAt'](_0x29b8d5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5eabb8);};_0x1ec7['buSXCI']=_0x592d7e,_0x1ec7['dQejJB']={},_0x1ec7['WiKtyH']=!![];}const _0x1a7d93=_0x29ec30[0x0],_0x1f9531=_0x264b28+_0x1a7d93,_0x2a10e0=_0x1ec7['dQejJB'][_0x1f9531];return!_0x2a10e0?(_0x1ec791=_0x1ec7['buSXCI'](_0x1ec791),_0x1ec7['dQejJB'][_0x1f9531]=_0x1ec791):_0x1ec791=_0x2a10e0,_0x1ec791;}export function startWsProxyServer(_0x304b2a){const _0x16d71b=_0x1ec7,_0x4111bd={};_0x4111bd[_0x16d71b(0x101)]=function(_0x2c777f,_0x52e5d4){return _0x2c777f===_0x52e5d4;},_0x4111bd[_0x16d71b(0x10a)]=function(_0x49cacc,_0x6d0f4d){return _0x49cacc instanceof _0x6d0f4d;},_0x4111bd[_0x16d71b(0x102)]='Not\x20a\x20WebSocket\x20request',_0x4111bd['DFtxG']='0.0.0.0';const _0x156c61=_0x4111bd,_0x2f9ff8=createWsProxyHandler(_0x304b2a),_0x299fb4=_0x304b2a['port']??0xfa1,_0x317481=_0x304b2a[_0x16d71b(0x106)]??_0x156c61['DFtxG'],_0x2936e6=Bun[_0x16d71b(0x129)]({'port':_0x299fb4,'hostname':_0x317481,'fetch'(_0x2e8fb2,_0x100be2){const _0x495888=_0x16d71b,_0x59fe03=_0x2f9ff8[_0x495888(0x109)](_0x2e8fb2,_0x100be2);if(_0x156c61[_0x495888(0x101)](_0x59fe03,!![]))return undefined;if(_0x156c61[_0x495888(0x10a)](_0x59fe03,Response))return _0x59fe03;const _0x504d44={};return _0x504d44[_0x495888(0x12b)]=0x190,new Response(_0x156c61['YtjTl'],_0x504d44);},'websocket':_0x2f9ff8[_0x16d71b(0x128)]});return console[_0x16d71b(0xfb)](_0x16d71b(0x11a)+_0x317481+':'+_0x299fb4),_0x2936e6;}
1
+ (function(_0x4b3a0b,_0x209162){const _0x5b9f47=_0x1741,_0x109bca=_0x4b3a0b();while(!![]){try{const _0x3686a5=-parseInt(_0x5b9f47(0xa5))/0x1+parseInt(_0x5b9f47(0xab))/0x2+-parseInt(_0x5b9f47(0xa4))/0x3*(-parseInt(_0x5b9f47(0xbe))/0x4)+parseInt(_0x5b9f47(0xc2))/0x5+-parseInt(_0x5b9f47(0xa7))/0x6+-parseInt(_0x5b9f47(0x8f))/0x7+parseInt(_0x5b9f47(0xb9))/0x8;if(_0x3686a5===_0x209162)break;else _0x109bca['push'](_0x109bca['shift']());}catch(_0x367f09){_0x109bca['push'](_0x109bca['shift']());}}}(_0x3b60,0x7a5a3));import{addQueryParam,createProxyLogger,httpToWs,matchPath,parseCookies,rewritePath}from'./utils';export function createWsProxyHandler(_0x3151eb){const _0xe708b4=_0x1741,_0x654363={'hxkgp':function(_0x3d83f4,_0x3a6183,_0x1e9cca){return _0x3d83f4(_0x3a6183,_0x1e9cca);},'WeRVF':function(_0x4c3ae4,_0x3645a5,_0x19d026){return _0x4c3ae4(_0x3645a5,_0x19d026);},'qwuje':function(_0x5f36d6,_0x58245c,_0x594323,_0x27b96e){return _0x5f36d6(_0x58245c,_0x594323,_0x27b96e);},'XomRM':function(_0x28729c,_0x5118a5){return _0x28729c!==_0x5118a5;},'utWjG':function(_0x4cb973,_0x5a668e){return _0x4cb973(_0x5a668e);},'kcQvp':'cookie','IKwEW':function(_0xb128ee,_0x5a8e2f,_0x360011,_0x260bf6,_0x1e7e29){return _0xb128ee(_0x5a8e2f,_0x360011,_0x260bf6,_0x1e7e29);},'GXKtz':function(_0x1d2781,_0x9aec8a){return _0x1d2781 instanceof _0x9aec8a;},'wmEXH':'Backend\x20WebSocket\x20error','SDoUj':function(_0x309817,_0x41cbed){return _0x309817===_0x41cbed;},'UEToV':'string','tXnGI':_0xe708b4(0xa9)},_0x57f417=createProxyLogger(_0x654363[_0xe708b4(0xaf)],_0x3151eb[_0xe708b4(0xbc)]??![]);function _0x588cef(_0x889ce6){const _0x9e6da6=_0xe708b4;for(const _0x56ae73 of _0x3151eb[_0x9e6da6(0xa6)]){if(_0x654363[_0x9e6da6(0xb1)](matchPath,_0x889ce6,_0x56ae73[_0x9e6da6(0xb7)]))return _0x56ae73;}return null;}function _0x530aa7(_0x478d34,_0x4a6dc6,_0x56e0ab,_0x9769a1){const _0x4af338=_0xe708b4;let _0x57ba66=_0x4a6dc6['url']['replace'](/\/$/,'');_0x57ba66['startsWith']('http')&&(_0x57ba66=httpToWs(_0x57ba66));let _0xd468ac=_0x478d34;_0x4a6dc6[_0x4af338(0xb2)]&&(_0xd468ac=_0x654363['WeRVF'](rewritePath,_0x478d34,_0x4a6dc6['pathRewrite']));let _0x76eec7=''+_0x57ba66+_0xd468ac;const _0x48f4b6=_0x9769a1['toString']();_0x48f4b6&&(_0x76eec7=_0x76eec7+'?'+_0x48f4b6);if(_0x4a6dc6[_0x4af338(0x94)]){const _0x3bf833=_0x56e0ab[_0x4a6dc6['injectTokenFromCookie'][_0x4af338(0xb0)]];if(_0x3bf833){const _0x32b6aa=_0x4a6dc6[_0x4af338(0x94)][_0x4af338(0x97)]??_0x4af338(0xb4);_0x76eec7=_0x654363['qwuje'](addQueryParam,_0x76eec7,_0x32b6aa,_0x3bf833),_0x57f417['info']('Token\x20injected\x20from\x20cookie');}}return _0x76eec7;}return{'upgrade'(_0x37c784,_0x4fed3e){const _0x2044f7=_0xe708b4,_0x507524=new URL(_0x37c784[_0x2044f7(0xc0)]),_0x5c3a9a=_0x507524['pathname'];if(_0x654363[_0x2044f7(0xc1)](_0x3151eb['allowHmr'],![])&&_0x5c3a9a['startsWith'](_0x2044f7(0xa0)))return _0x57f417['info'](_0x2044f7(0x93)+_0x5c3a9a),![];const _0x2f567a=_0x654363['utWjG'](_0x588cef,_0x5c3a9a);if(!_0x2f567a){if(_0x3151eb['rejectUnknown']!==![]){_0x57f417[_0x2044f7(0xb6)]('No\x20target\x20found\x20for:\x20'+_0x5c3a9a);const _0x5b21fb={};return _0x5b21fb['status']=0x194,new Response('WebSocket\x20path\x20not\x20found',_0x5b21fb);}return![];}const _0x454e30=parseCookies(_0x37c784[_0x2044f7(0x96)][_0x2044f7(0xba)](_0x654363[_0x2044f7(0x9a)])),_0x39d723=_0x654363['IKwEW'](_0x530aa7,_0x5c3a9a,_0x2f567a,_0x454e30,_0x507524[_0x2044f7(0xa1)]);_0x57f417[_0x2044f7(0x8e)]('Upgrading:\x20'+_0x5c3a9a+'\x20->\x20'+_0x39d723);const _0xca27fb={};_0xca27fb['backendWs']=null,_0xca27fb['path']=_0x5c3a9a,_0xca27fb[_0x2044f7(0x9c)]=_0x39d723,_0xca27fb['buffer']=[];const _0x157b75={};_0x157b75['data']=_0xca27fb;const _0x35ecff=_0x4fed3e[_0x2044f7(0xac)](_0x37c784,_0x157b75);return _0x35ecff;},'websocket':{'open'(_0x135dd4){const _0xbf8c7e=_0xe708b4,_0x5a6164={};_0x5a6164[_0xbf8c7e(0x9f)]=_0x654363['wmEXH'];const _0x16c08d=_0x5a6164,_0x204620=_0x135dd4['data'],_0x3a8b64=new WebSocket(_0x204620['target']);_0x3a8b64['onopen']=()=>{const _0x307bf7=_0xbf8c7e;_0x57f417[_0x307bf7(0x8e)]('Backend\x20connected:\x20'+_0x204620['path']),_0x3151eb['onOpen']?.(_0x204620[_0x307bf7(0xb5)],_0x204620[_0x307bf7(0x9c)]);for(const _0x18cf31 of _0x204620[_0x307bf7(0x8c)]){_0x3a8b64[_0x307bf7(0xaa)](_0x18cf31);}_0x204620[_0x307bf7(0x8c)]=[];},_0x3a8b64['onmessage']=_0x22266a=>{const _0x12a262=_0xbf8c7e;if(typeof _0x22266a[_0x12a262(0xb8)]===_0x12a262(0xad))_0x135dd4['send'](_0x22266a[_0x12a262(0xb8)]);else{if(_0x22266a['data']instanceof ArrayBuffer)_0x135dd4['send'](new Uint8Array(_0x22266a[_0x12a262(0xb8)]));else _0x654363[_0x12a262(0x9d)](_0x22266a['data'],Blob)&&_0x22266a[_0x12a262(0xb8)]['arrayBuffer']()[_0x12a262(0xa2)](_0x22a611=>{const _0xd1d9f0=_0x12a262;_0x135dd4[_0xd1d9f0(0xaa)](new Uint8Array(_0x22a611));});}},_0x3a8b64[_0xbf8c7e(0x90)]=_0xdb764b=>{const _0x1e8233=_0xbf8c7e,_0x135eae=new Error(_0x16c08d[_0x1e8233(0x9f)]);_0x57f417['error'](_0x1e8233(0x91)+_0x204620['path'],_0xdb764b),_0x3151eb[_0x1e8233(0x8b)]?.(_0x135eae,_0x204620[_0x1e8233(0xb5)]);},_0x3a8b64[_0xbf8c7e(0xbf)]=()=>{const _0x2176e0=_0xbf8c7e;_0x57f417[_0x2176e0(0x8e)](_0x2176e0(0x98)+_0x204620[_0x2176e0(0xb5)]),_0x3151eb['onClose']?.(_0x204620['path']),_0x135dd4[_0x2176e0(0x95)]();},_0x204620['backendWs']=_0x3a8b64;},'message'(_0x393f75,_0x36db1e){const _0x53dd7c=_0xe708b4,_0x17d5c5=_0x393f75['data'];if(_0x17d5c5[_0x53dd7c(0x8d)]?.['readyState']===WebSocket['OPEN'])_0x17d5c5[_0x53dd7c(0x8d)]['send'](_0x36db1e);else{if(_0x654363['SDoUj'](typeof _0x36db1e,_0x654363['UEToV']))_0x17d5c5['buffer'][_0x53dd7c(0x99)](_0x36db1e);else{const _0x1cf4d0=new ArrayBuffer(_0x36db1e[_0x53dd7c(0xbd)]);new Uint8Array(_0x1cf4d0)[_0x53dd7c(0xb3)](new Uint8Array(_0x36db1e)),_0x17d5c5['buffer']['push'](_0x1cf4d0);}}},'close'(_0x1555d5){const _0x2d0faf=_0xe708b4,_0x58f95d=_0x1555d5[_0x2d0faf(0xb8)];_0x57f417['info'](_0x2d0faf(0xae)+_0x58f95d['path']),_0x58f95d[_0x2d0faf(0x8d)]&&_0x58f95d['backendWs']['close']();},'drain'(_0x3df2c4){}}};}function _0x1741(_0xbdd803,_0x47aa96){_0xbdd803=_0xbdd803-0x8b;const _0x3b6092=_0x3b60();let _0x1741cd=_0x3b6092[_0xbdd803];if(_0x1741['xIPFvi']===undefined){var _0x294113=function(_0x1f8930){const _0x172495='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3150f9='',_0x2de792='';for(let _0x2bab94=0x0,_0x3aea09,_0x3775db,_0x31f3d0=0x0;_0x3775db=_0x1f8930['charAt'](_0x31f3d0++);~_0x3775db&&(_0x3aea09=_0x2bab94%0x4?_0x3aea09*0x40+_0x3775db:_0x3775db,_0x2bab94++%0x4)?_0x3150f9+=String['fromCharCode'](0xff&_0x3aea09>>(-0x2*_0x2bab94&0x6)):0x0){_0x3775db=_0x172495['indexOf'](_0x3775db);}for(let _0x64e1e2=0x0,_0x354076=_0x3150f9['length'];_0x64e1e2<_0x354076;_0x64e1e2++){_0x2de792+='%'+('00'+_0x3150f9['charCodeAt'](_0x64e1e2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2de792);};_0x1741['rXQWpr']=_0x294113,_0x1741['AqOTAq']={},_0x1741['xIPFvi']=!![];}const _0x102900=_0x3b6092[0x0],_0x2fad0b=_0xbdd803+_0x102900,_0x46c5e8=_0x1741['AqOTAq'][_0x2fad0b];return!_0x46c5e8?(_0x1741cd=_0x1741['rXQWpr'](_0x1741cd),_0x1741['AqOTAq'][_0x2fad0b]=_0x1741cd):_0x1741cd=_0x46c5e8,_0x1741cd;}function _0x3b60(){const _0x6dc045=['r1HlDhO','qKvHvMK','EezlAei','l19UzxH0l3DLyNbHy2STAg1Y','C2vHCMnOugfYyw1Z','DgHLBG','Cg9YDa','mJeYnJaXowH5ze9rsa','otq4mdyZtNHjzMHq','DgfYz2v0CW','mZaZmdCWmLjZEwHntG','D2vIC29JA2v0','v1mGuhjVEhK','C2vUza','oda4ndK2r29hEeHf','DxbNCMfKzq','C3rYAw5N','q2XPzw50ignSB3nLzdOG','DfHUr0K','y29VA2LLtMfTzq','AhHRz3a','Cgf0AfjLD3jPDgu','C2v0','Dg9Rzw4','Cgf0Aa','D2fYBG','Cgf0Ahm','zgf0yq','mtm2ndCWndHvrujgvfm','z2v0','yM1sA0S','zgvIDwC','yNL0zuXLBMD0Aa','ngDmy1fWtq','B25JBg9Zzq','DxjS','wg9TuK0','ndi5mZyWzgTwu3PV','B25fCNjVCG','yNvMzMvY','yMfJA2vUzfDZ','Aw5MBW','nJy1mJm3m3b6zef3BW','B25LCNjVCG','qMfJA2vUzcbLCNjVCJOG','C3rHDhvZ','se1sigj5CgfZCZOG','Aw5Qzwn0vg9Rzw5gCM9Tq29VA2LL','y2XVC2u','AgvHzgvYCW','CxvLCNLqyxjHBq','qMfJA2vUzcbJBg9Zzwq6ia','ChvZAa','A2nrDNa','tM90igeGv2vIu29JA2v0ihjLCxvLC3q','DgfYz2v0'];_0x3b60=function(){return _0x6dc045;};return _0x3b60();}export function startWsProxyServer(_0x4d4a3e){const _0x4a3eea=_0x1741,_0x4b6dc9={'Enimt':function(_0x36bf88,_0x44ab04){return _0x36bf88===_0x44ab04;},'BEaVi':function(_0x233d4f,_0x17e548){return _0x233d4f(_0x17e548);},'bmRkK':'0.0.0.0'},_0x1c56dc=_0x4b6dc9[_0x4a3eea(0x9e)](createWsProxyHandler,_0x4d4a3e),_0x2138fb=_0x4d4a3e[_0x4a3eea(0xa3)]??0xfa1,_0x5005d5=_0x4d4a3e['hostname']??_0x4b6dc9[_0x4a3eea(0xbb)],_0xf78965=Bun['serve']({'port':_0x2138fb,'hostname':_0x5005d5,'fetch'(_0xe804b8,_0x411afa){const _0x310293=_0x4a3eea,_0x20b2a5=_0x1c56dc[_0x310293(0xac)](_0xe804b8,_0x411afa);if(_0x4b6dc9['Enimt'](_0x20b2a5,!![]))return undefined;if(_0x20b2a5 instanceof Response)return _0x20b2a5;const _0x343ee9={};return _0x343ee9[_0x310293(0x92)]=0x190,new Response(_0x310293(0x9b),_0x343ee9);},'websocket':_0x1c56dc[_0x4a3eea(0xa8)]});return console['log']('[WS\x20Proxy]\x20Started\x20on\x20'+_0x5005d5+':'+_0x2138fb),_0xf78965;}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nucleus-core-ts",
3
- "version": "0.8.12",
3
+ "version": "0.8.13",
4
4
  "description": "Production-ready, enterprise-grade TypeScript framework for building multi-tenant APIs",
5
5
  "author": "Hidayet Can Özcan <hidayetcan@gmail.com>",
6
6
  "license": "SEE LICENSE IN LICENSE",