@mooncompany/uplink-chat 0.37.0 → 0.37.2
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/bin/uplink.js +1 -1
- package/middleware/error-handler.js +1 -1
- package/package.json +1 -1
- package/public/dist/bundle.f3621856.js +1 -0
- package/public/index.html +1 -1
- package/public/js/agents-data.js +1 -1
- package/public/js/agents-ui.js +1 -1
- package/public/js/agents.js +1 -1
- package/public/js/app.js +1 -1
- package/public/js/appearance-settings.js +1 -1
- package/public/js/artifacts.js +1 -1
- package/public/js/audio-pcm-processor.js +1 -1
- package/public/js/audio-queue.js +1 -1
- package/public/js/bootstrap.js +1 -1
- package/public/js/chat.js +1 -1
- package/public/js/commands.js +1 -1
- package/public/js/connection-api.js +1 -1
- package/public/js/connection.js +1 -1
- package/public/js/context-tracker.js +1 -1
- package/public/js/core.js +1 -1
- package/public/js/cron-panel.js +1 -1
- package/public/js/dashboard.js +1 -1
- package/public/js/developer.js +1 -1
- package/public/js/encryption.js +1 -1
- package/public/js/errors.js +1 -1
- package/public/js/event-bus.js +1 -1
- package/public/js/fetch-utils.js +1 -1
- package/public/js/file-handler.js +1 -1
- package/public/js/files.js +1 -1
- package/public/js/gateway-chat.js +1 -1
- package/public/js/logger.js +1 -1
- package/public/js/markdown.js +1 -1
- package/public/js/message-actions.js +1 -1
- package/public/js/message-renderer.js +1 -1
- package/public/js/missed-messages.js +1 -1
- package/public/js/mobile-debug.js +1 -1
- package/public/js/notifications.js +1 -1
- package/public/js/offline-queue.js +1 -1
- package/public/js/onboarding.js +1 -1
- package/public/js/panels.js +1 -1
- package/public/js/premium.js +1 -1
- package/public/js/primary-header.js +1 -1
- package/public/js/realtime-voice.js +1 -1
- package/public/js/satellite-sync.js +1 -1
- package/public/js/satellite-ui.js +1 -1
- package/public/js/satellites.js +1 -1
- package/public/js/settings.js +1 -1
- package/public/js/shortcuts.js +1 -1
- package/public/js/split-chat.js +1 -1
- package/public/js/split-resize.js +1 -1
- package/public/js/splitview.js +1 -1
- package/public/js/storage.js +1 -1
- package/public/js/streaming-handler.js +1 -1
- package/public/js/stt-settings.js +1 -1
- package/public/js/themes.js +1 -1
- package/public/js/timestamps.js +1 -1
- package/public/js/tts-settings.js +1 -1
- package/public/js/ui.js +1 -1
- package/public/js/update-notifier.js +1 -1
- package/public/js/utils/constants.js +1 -1
- package/public/js/utils/icons.js +1 -1
- package/public/js/utils/sanitize.js +1 -1
- package/public/js/utils/sse-parser.js +1 -1
- package/public/js/vad.js +1 -1
- package/public/js/vendor/dompurify.min.js +1 -1
- package/public/js/voice-settings-v2.js +1 -1
- package/public/js/voice.js +1 -1
- package/public/sw.js +1 -1
- package/server/channel.js +1 -1
- package/server/chat.js +1 -1
- package/server/config-store.js +1 -1
- package/server/config.js +1 -1
- package/server/context.js +1 -1
- package/server/gateway-api-proxy.js +1 -1
- package/server/gateway-commands.js +1 -1
- package/server/gateway-proxy.js +1 -1
- package/server/index.js +1 -1
- package/server/logger.js +1 -1
- package/server/message-store.js +1 -1
- package/server/middleware/auth.js +1 -1
- package/server/middleware.js +1 -1
- package/server/openclaw-discover.js +1 -1
- package/server/premium/index.js +1 -1
- package/server/premium/license.js +1 -1
- package/server/realtime/bridge.js +1 -1
- package/server/realtime/index.js +1 -1
- package/server/realtime/tts-stream.js +1 -1
- package/server/routes/agents.js +1 -1
- package/server/routes/artifacts.js +1 -1
- package/server/routes/chat.js +1 -1
- package/server/routes/config-settings.js +1 -1
- package/server/routes/config.js +1 -1
- package/server/routes/cron.js +1 -1
- package/server/routes/files.js +1 -1
- package/server/routes/index.js +1 -1
- package/server/routes/media.js +1 -1
- package/server/routes/missed-messages.js +1 -1
- package/server/routes/premium.js +1 -1
- package/server/routes/push.js +1 -1
- package/server/routes/satellite.js +1 -1
- package/server/routes/status.js +1 -1
- package/server/routes/stt.js +1 -1
- package/server/routes/voice.js +1 -1
- package/server/routes/webhooks.js +1 -1
- package/server/routes.js +1 -1
- package/server/runtime-config.js +1 -1
- package/server/share.js +1 -1
- package/server/stt/faster-whisper.js +1 -1
- package/server/stt/groq.js +1 -1
- package/server/stt/index.js +1 -1
- package/server/stt/openai.js +1 -1
- package/server/sync.js +1 -1
- package/server/tailscale-https.js +1 -1
- package/server/tts.js +1 -1
- package/server/update-checker.js +1 -1
- package/server/utils/filename.js +1 -1
- package/server/utils.js +1 -1
- package/server/watchdog.js +1 -1
- package/server/websocket/broadcast.js +1 -1
- package/server/websocket/connections.js +1 -1
- package/server/websocket/index.js +1 -1
- package/server/websocket/routing.js +1 -1
- package/server/websocket/sync.js +1 -1
- package/server.js +1 -1
- package/utils/detect-tool-usage.js +1 -1
- package/utils/errors.js +1 -1
- package/utils/html-escape.js +1 -1
- package/utils/id-sanitize.js +1 -1
- package/utils/response.js +1 -1
- package/utils/with-retry.js +1 -1
- package/public/dist/bundle.5772e248.js +0 -1
package/server/config-store.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x29e126,_0x3c8181){function _0x479b6e(_0x2ecd46,_0x1d13ab){return _0x3146(_0x2ecd46-0x23b,_0x1d13ab);}const _0x49e397=_0x29e126();function _0x126042(_0x1fdb6f,_0xfe7674){return _0x3146(_0xfe7674- -0x36b,_0x1fdb6f);}while(!![]){try{const _0x451826=parseInt(_0x126042(-0xf0,-0x17b))/(0xce*-0x25+0x1*-0x1f42+0x3d09)+parseInt(_0x479b6e(0x3c8,0x40a))/(0x21*-0x8d+0xd*0x199+-0x296)*(-parseInt(_0x126042(-0x237,-0x1f9))/(0xe73*-0x1+-0x69d+0x437*0x5))+-parseInt(_0x479b6e(0x407,0x3a9))/(-0x1*0x95e+0x1*0x65e+0x304)+-parseInt(_0x479b6e(0x3eb,0x3e4))/(0x20d4+-0xf32+-0x119d)+parseInt(_0x479b6e(0x45b,0x4dd))/(-0x1054+-0x1*0x1612+0x266c)*(-parseInt(_0x479b6e(0x452,0x435))/(0x11*0x11b+0x1*0x11a5+-0x2469))+-parseInt(_0x479b6e(0x3c9,0x3c2))/(-0x1b2d+0x1da0+-0x26b*0x1)+parseInt(_0x479b6e(0x3e4,0x475))/(-0x8a8*0x1+0x235f+-0x1aae)*(parseInt(_0x479b6e(0x454,0x4dc))/(-0x1*0xb09+-0x2ce+0xde1));if(_0x451826===_0x3c8181)break;else _0x49e397['push'](_0x49e397['shift']());}catch(_0x3d2c06){_0x49e397['push'](_0x49e397['shift']());}}}(_0x3e4a,-0x7*-0x2d00d+-0x7927*0x2f+0xf3*0xe71));const _0x44e166=(function(){const _0x144dc9={};_0x144dc9['JhnCf']=_0x6029cc(0x37f,0x39e),_0x144dc9['InRpW']=_0x2b9808(0x362,0x3cd);function _0x6029cc(_0x3b5163,_0x15909f){return _0x3146(_0x15909f-0x17c,_0x3b5163);}function _0x2b9808(_0x16e893,_0x5ee1c0){return _0x3146(_0x16e893-0x206,_0x5ee1c0);}const _0x207d85=_0x144dc9;let _0x4f28ed=!![];return function(_0x16ba82,_0x428600){const _0x31a0ce=_0x4f28ed?function(){function _0x2f78a0(_0x22beac,_0x396e6a){return _0x3146(_0x22beac-0x1ba,_0x396e6a);}function _0x586cad(_0x5daaf4,_0x191e50){return _0x3146(_0x191e50-0x260,_0x5daaf4);}if(_0x207d85[_0x2f78a0(0x3b8,0x3dc)]!==_0x207d85[_0x586cad(0x437,0x3f5)]){if(_0x428600){const _0x12315d=_0x428600['apply'](_0x16ba82,arguments);return _0x428600=null,_0x12315d;}}else{if(!_0x5e9839[_0x586cad(0x450,0x3b8)+_0x586cad(0x429,0x434)](_0x24010e)){const _0x5c1f8c={};_0x5c1f8c[_0x586cad(0x417,0x47d)+_0x2f78a0(0x31a,0x35b)]=!![],_0x4dc6fb['mkdir'+_0x2f78a0(0x3e5,0x403)](_0x2a9427,_0x5c1f8c);}}}:function(){};return _0x4f28ed=![],_0x31a0ce;};}()),_0x4136ab=_0x44e166(this,function(){const _0x4fd6cd={};_0x4fd6cd[_0x22708d(-0xd2,-0xbb)]=_0x352704(0x4c3,0x4af)+')+)+)'+'+$';const _0x459b4b=_0x4fd6cd;function _0x352704(_0x4aa81e,_0x3985b5){return _0x3146(_0x4aa81e-0x29f,_0x3985b5);}function _0x22708d(_0x1e7ae3,_0x19185e){return _0x3146(_0x19185e- -0x29b,_0x1e7ae3);}return _0x4136ab[_0x352704(0x45d,0x448)+'ing']()[_0x22708d(-0xb0,-0x5b)+'h'](_0x459b4b[_0x352704(0x47f,0x3eb)])['toStr'+_0x22708d(0x11,-0x55)]()['const'+_0x352704(0x4e4,0x4c3)+'r'](_0x4136ab)[_0x352704(0x4df,0x48d)+'h'](_0x459b4b['XwRtO']);});_0x4136ab();import _0x37e5cb from'crypto';function _0x3146(_0x25ae1e,_0x3cc1b6){_0x25ae1e=_0x25ae1e-(0x1*-0x1f51+0x1*0x371+0x1*0x1d30);const _0x423cec=_0x3e4a();let _0x22a256=_0x423cec[_0x25ae1e];return _0x22a256;}import _0x220b43 from'fs';import _0x5b1f28 from'path';import{ROOT_DIR,DATA_DIR}from'./config.js';import{createLogger}from'./logger.js';const log=createLogger('confi'+_0x1cdc50(0x19,-0x6a)+'re'),CONFIG_DIR=_0x5b1f28['join'](DATA_DIR,'confi'+'g'),CONFIG_FILE=_0x5b1f28[_0x820298(0x359,0x324)](CONFIG_DIR,'confi'+_0x1cdc50(-0x99,-0x124)+'n'),BACKUP_FILE=_0x5b1f28[_0x1cdc50(-0x87,-0xad)](CONFIG_DIR,'confi'+_0x820298(0x314,0x289)+_0x820298(0x2c6,0x2c9)+'son'),ALGORITHM=_0x820298(0x34c,0x2ea)+_0x1cdc50(-0x13b,-0xd6)+'m',SCRYPT_N=0x127c+0x4664+-0x18e0,SCRYPT_R=0x1b8f+-0x1d8f+0x208,SCRYPT_P=0x10af*0x2+0x1d20+-0x3e7d,KEY_LEN=0xdd2+-0x107f*-0x1+-0x1e31,SALT_LEN=0x17bb+-0xc*-0x288+-0x35fb,IV_LEN=0x3d*0x47+-0x2*-0xe36+-0x2d47,_0x4f6f23={};_0x4f6f23[_0x820298(0x247,0x2c3)+'eted']=![],_0x4f6f23[_0x820298(0x2fa,0x34c)+_0x1cdc50(-0x163,-0x14b)+'p']=0x0,_0x4f6f23[_0x820298(0x3ac,0x383)]={};const _0x49f3b5={};_0x49f3b5[_0x1cdc50(-0x7c,-0xff)]='dark',_0x49f3b5[_0x820298(0x33d,0x2d9)+_0x820298(0x328,0x302)]=0xe,_0x49f3b5[_0x820298(0x3af,0x327)+'age']='en',_0x49f3b5[_0x820298(0x30e,0x391)+_0x1cdc50(-0xab,-0x13d)+_0x820298(0x32d,0x2b4)]=!![];const _0x32b5df={};_0x32b5df[_0x1cdc50(-0x150,-0x136)+_0x820298(0x3aa,0x36e)]='',_0x32b5df[_0x820298(0x2d8,0x29b)+_0x820298(0x2e3,0x2c0)+'en']='',_0x32b5df[_0x820298(0x2dc,0x27c)+_0x820298(0x2ec,0x2e3)+_0x820298(0x292,0x28b)]=!![],_0x32b5df[_0x820298(0x2b0,0x2dd)+_0x820298(0x340,0x356)+_0x1cdc50(-0x2d,-0x39)+_0x820298(0x2a9,0x298)]=0x1388;const _0x1f7d95={};_0x1f7d95['enabl'+'ed']=![],_0x1f7d95['ttsPr'+_0x820298(0x357,0x38b)+'r']='eleve'+_0x820298(0x3a4,0x37a),_0x1f7d95[_0x1cdc50(0x16,-0x7d)+_0x820298(0x293,0x2e6)]='',_0x1f7d95['volum'+'e']=0.8,_0x1f7d95[_0x1cdc50(-0x110,-0x10a)]=0x1;function _0x3e4a(){const _0x2aba25=['FileS','g.bac','ewayT','ect','bGQJw','MwvWm','getSa','915975fnpThz','\x20from','init','s.ses','XXgYR','icati','isArr','OGAgv','fjyQX','alMs','jlljz','to\x20en','gatew','HNzHA','basen','s.ass','from','\x20encr','on:\x20','OnSta','YziId','IMwFN','ity','g\x20fil','ated','eriv','okTok','8ttANxV','6391696PTAiVZ','error','g.jso','wRzQx','conne','Gnrty','updat','InRpW','tEncr','ons','oKUtK','Loade','XXrzD','Sbpxk','AODfh','onboa','MBjtq','write','.env','tName','GfLGn','ayTok','setAu','rando','compl','eDeci','dingS','504KoTdfT','speed','KaMle','kup.j','lengt','wn\x20co','scryp','5750175wsnbsU','rBBay','UCJkl','ser','.enab','theme','kzvhP','toISO',',\x20usi','nfig\x20','WczWm','OmBQs','fontS','parse','toStr','GAYDo','recon','verif','eVmRS','tiali','found','eKFWU','econn','PreIo','tMin','ice','info','mpYVh','3978376fEtKVv','aes-2','kSecr','messa','Qtjhr','eSect','conca','mEnv','sSync','impor','Mjqjd','xkCsH','ordHa','NcPfi','ApiKe','tep','Strin','nboar','56-gc','prefe','XwRtO','cimhw','word','openc','eteOn','ize','eted','imeou','bQsnZ','ame','creat','...','get','voice','ogYwH','om\x20en','803657zKPolA','teFro','nLabs','Unkno','rsist','pheri','tATgF','lqeZd','tag','ation','BYkaI','wAytq','afvGl','xUfLT','JhnCf','copyF','lawCa','rZSpt','isIni','versi','sFZNE','lockT','max','join','wPpOC','d\x20to\x20','langu','Could','base6','hdFOk','ATagR','llbac','save','geGco','secre','rence','cret','jPGsd','ore','7QdUfyS','Faile','847930FMwRjW','AaCWq','saveO','QhXLQ','recur','tSync','groqA','3937062nSMDSm','assig','cmYhr','qZjxs','(((.+','tUDZv','readF','hasSe','oken','ed\x20to','ZLecx','Sync','TryDr','getAu','d\x20con','curre','mkdir','uIJje','ileSy','.migr','tfUnh','pUrIX','webho','ttsVo','.ttsV','nectI','ypted','rding','kRBLC','utf8','gsMHo','zwbDY','searc','gify','LaOdx','renam','secur','ructo','ing','confi','TLnyW','board','g-sto','opena','OMaIy','SofQa','ikZIS','XHcWH','yPass','ayUrl','ment\x20','RbgsW','passw','DnaLO','secti','SHIjk','OEoXF','wUeoY','objec','fault','getRa','nlabs','UeVPU','led','\x20disk','fmtem','Ittig','\x20not\x20','Secre','ction','steps','ATIbB','mByte','ts\x20pe','sword','tYaeQ','NMUhZ','some','ovide','split','ig\x20st','\x20rena','gYdiB','value','notif','KGjFX','final','s.gat','file\x20','figur','Vtrwy','nterv','ZMdmZ','getSe','PWyZn','XWJfX','WBPUB','eSync','eleve','crypt','med\x20t','DscqZ','nMSTn','HcLEp','Migra','reDUz','exist','xIfNm','rxOyZ','XCcML','KjKGB','strin','hex','autoR','sive','DoqMX','pFDoG','piKey','VVbfZ','INhKz','thTag','iApiK','sionU','ntSte','oice'];_0x3e4a=function(){return _0x2aba25;};return _0x3e4a();}const _0x554b5e={};_0x554b5e[_0x1cdc50(0x22,-0x60)+_0x820298(0x28f,0x2f5)+'sh']='',_0x554b5e[_0x820298(0x39e,0x322)+_0x1cdc50(-0x110,-0xcd)+_0x820298(0x305,0x2e5)]=0xf,_0x554b5e['requi'+'rePas'+_0x820298(0x32e,0x387)+_0x1cdc50(-0x1b2,-0x12f)+'rt']=!![];const _0x3b65ae={};_0x3b65ae[_0x820298(0x212,0x29b)+'ayTok'+'en']='',_0x3b65ae['opena'+_0x820298(0x1fa,0x284)+'ey']='',_0x3b65ae['eleve'+'nLabs'+_0x1cdc50(-0x14d,-0xda)+'y']='',_0x3b65ae['webho'+_0x1cdc50(-0xb4,-0x128)+'en']='',_0x3b65ae[_0x820298(0x331,0x300)+_0x820298(0x2c3,0x31d)+_0x820298(0x399,0x32c)+_0x1cdc50(-0xf6,-0xe6)+'et']='',_0x3b65ae[_0x820298(0x366,0x33c)+_0x820298(0x229,0x280)]='';const _0xcf7931={};_0xcf7931[_0x1cdc50(-0xe7,-0xb1)+'on']=0x1,_0xcf7931[_0x820298(0x33e,0x2ba)+'rding']=_0x4f6f23,_0xcf7931[_0x820298(0x303,0x2fc)+_0x820298(0x2ac,0x330)+'s']=_0x49f3b5,_0xcf7931[_0x820298(0x235,0x2af)+_0x1cdc50(-0x51,-0x4f)+'s']=_0x32b5df,_0xcf7931[_0x820298(0x2d4,0x30a)]=_0x1f7d95,_0xcf7931[_0x1cdc50(-0xc1,-0x70)+_0x1cdc50(-0xf1,-0x12c)]=_0x554b5e,_0xcf7931[_0x820298(0x3c6,0x32f)+'ts']=_0x3b65ae;const DEFAULT_CONFIG=_0xcf7931;let _config=structuredClone(DEFAULT_CONFIG),_initialized=![];function deriveKey(_0x52cb1c,_0x24b6a7){const _0x318af5={};function _0x2b0477(_0x2dd9e4,_0x29039c){return _0x820298(_0x29039c,_0x2dd9e4-0x28b);}_0x318af5['N']=SCRYPT_N,_0x318af5['r']=SCRYPT_R,_0x318af5['p']=SCRYPT_P;function _0xb2bfab(_0x1e4860,_0x5cf4fa){return _0x820298(_0x1e4860,_0x5cf4fa-0x8b);}return _0x37e5cb[_0x2b0477(0x557,0x5c6)+_0xb2bfab(0x409,0x3c6)](_0x52cb1c,_0x24b6a7,KEY_LEN,_0x318af5);}function encrypt(_0x51552e,_0x291080){function _0x4e67c7(_0x1ebdcb,_0xa7b4c0){return _0x820298(_0xa7b4c0,_0x1ebdcb- -0xa3);}const _0x2df37b={'LaOdx':function(_0x5e4bb4,_0x399321,_0x369065){return _0x5e4bb4(_0x399321,_0x369065);},'bGQJw':_0x4e67c7(0x286,0x247)+'4'},_0x156b75=_0x37e5cb[_0x57074e(0x1d4,0x13e)+_0x57074e(0x297,0x2f9)+'s'](SALT_LEN),_0x1e62c1=_0x37e5cb[_0x57074e(0x1d4,0x190)+_0x57074e(0x297,0x2fe)+'s'](IV_LEN),_0x279cba=_0x2df37b[_0x4e67c7(0x2bc,0x258)](deriveKey,_0x291080,_0x156b75);function _0x57074e(_0x349df4,_0x383043){return _0x820298(_0x383043,_0x349df4- -0xee);}const _0x235c6d=_0x37e5cb[_0x4e67c7(0x264,0x2fc)+'eCiph'+_0x57074e(0x1ba,0x1a1)](ALGORITHM,_0x279cba,_0x1e62c1),_0x19956=Buffer[_0x57074e(0x201,0x249)+'t']([_0x235c6d[_0x4e67c7(0x20e,0x1b1)+'e'](_0x51552e,_0x4e67c7(0x2b7,0x265)),_0x235c6d['final']()]),_0x4247a9=_0x235c6d['getAu'+_0x4e67c7(0x1e0,0x258)]();return{'salt':_0x156b75['toStr'+_0x4e67c7(0x2c0,0x241)](_0x2df37b[_0x4e67c7(0x1e9,0x1e0)]),'iv':_0x1e62c1[_0x4e67c7(0x238,0x282)+_0x57074e(0x275,0x1f8)](_0x2df37b[_0x4e67c7(0x1e9,0x1d6)]),'tag':_0x4247a9['toStr'+_0x4e67c7(0x2c0,0x359)]('base6'+'4'),'ciphertext':_0x19956[_0x4e67c7(0x238,0x251)+_0x57074e(0x275,0x1ee)](_0x4e67c7(0x286,0x297)+'4')};}function decrypt(_0x498b07,_0x57673c){const _0x2374a3={};_0x2374a3[_0x148e4e(0x473,0x50a)]=_0x56e404(0x1aa,0x17a)+'4',_0x2374a3[_0x56e404(0x18c,0x105)]='utf8';const _0x4e9725=_0x2374a3;function _0x148e4e(_0x3f28c5,_0x553fd2){return _0x1cdc50(_0x553fd2,_0x3f28c5-0x58d);}const _0x393d09=Buffer[_0x148e4e(0x45b,0x4b4)](_0x498b07['salt'],'base6'+'4'),_0x3096ec=Buffer[_0x148e4e(0x45b,0x471)](_0x498b07['iv'],_0x148e4e(0x4e5,0x4ca)+'4'),_0x566073=Buffer['from'](_0x498b07[_0x148e4e(0x4d1,0x438)],_0x148e4e(0x4e5,0x48b)+'4'),_0x544e59=Buffer[_0x148e4e(0x45b,0x410)](_0x498b07['ciphe'+'rtext'],_0x4e9725[_0x148e4e(0x473,0x3dd)]),_0x24f71b=deriveKey(_0x57673c,_0x393d09),_0xb74edd=_0x37e5cb[_0x56e404(0x188,0x1ad)+_0x148e4e(0x480,0x4da)+_0x56e404(0x193,0x1f2)+'v'](ALGORITHM,_0x24f71b,_0x3096ec);_0xb74edd[_0x148e4e(0x47d,0x41d)+'thTag'](_0x566073);const _0x1c2d5f=Buffer[_0x56e404(0x170,0x1b6)+'t']([_0xb74edd[_0x148e4e(0x46d,0x417)+'e'](_0x544e59),_0xb74edd[_0x148e4e(0x54f,0x552)]()]);function _0x56e404(_0x2e089f,_0x447bc4){return _0x1cdc50(_0x447bc4,_0x2e089f-0x252);}return _0x1c2d5f[_0x148e4e(0x497,0x436)+_0x56e404(0x1e4,0x204)](_0x4e9725[_0x148e4e(0x4c7,0x42f)]);}function ensureConfigDir(){function _0x1dfe2b(_0x5e73fe,_0x20cbab){return _0x1cdc50(_0x5e73fe,_0x20cbab-0x17a);}function _0x45a029(_0x2a6ea7,_0x203cea){return _0x1cdc50(_0x203cea,_0x2a6ea7-0x573);}if(!_0x220b43[_0x45a029(0x417,0x40b)+_0x45a029(0x493,0x497)](CONFIG_DIR)){const _0x456917={};_0x456917[_0x1dfe2b(0x172,0xe3)+_0x1dfe2b(-0x1c,0x26)]=!![],_0x220b43[_0x1dfe2b(0x170,0xf6)+'Sync'](CONFIG_DIR,_0x456917);}}function readConfigFile(){const _0x58df26={'rhsfO':function(_0x4b8a94,_0x5d6321,_0xc55346){return _0x4b8a94(_0x5d6321,_0xc55346);},'DnaLO':'gatew'+'ayTok'+'en','rxOyZ':_0x287c71(-0x1b,-0x96)+_0x287c71(0x32,0x3d)+'s.gat'+_0x287c71(-0xa5,-0xbb)+_0x287c71(0x21,0x0),'ikZIS':_0x287c71(-0xf6,-0xd3),'NMUhZ':_0x287c71(-0x70,0x15),'IMwFN':_0x4fe34e(0x513,0x53a)+_0x287c71(0x4,-0x1f)+'read\x20'+_0x4fe34e(0x542,0x541)+_0x287c71(-0x98,-0x9f)+'e:'};function _0x287c71(_0x2fdd49,_0x122dbc){return _0x820298(_0x2fdd49,_0x122dbc- -0x345);}function _0x4fe34e(_0x448cbc,_0x4a3163){return _0x820298(_0x4a3163,_0x448cbc-0x1de);}if(!_0x220b43[_0x287c71(-0x126,-0xd0)+_0x4fe34e(0x4cf,0x442)](CONFIG_FILE))return null;try{if(_0x58df26[_0x4fe34e(0x549,0x5d0)]===_0x58df26[_0x4fe34e(0x549,0x4c0)]){const _0x22bdfe=_0x220b43[_0x287c71(0x89,-0x2)+_0x4fe34e(0x52d,0x55c)+'nc'](CONFIG_FILE,_0x58df26[_0x4fe34e(0x567,0x50f)]);return JSON[_0x4fe34e(0x4b8,0x4ad)](_0x22bdfe);}else _0x58df26['rhsfO'](_0x5386e3,_0x58df26[_0x4fe34e(0x550,0x4dd)],_0xf31f26.env.GATEWAY_TOKEN),_0x2d26d8(_0x58df26[_0x287c71(-0xd3,-0xce)],_0xaf9892.env.GATEWAY_TOKEN);}catch(_0x32345b){return log[_0x287c71(-0xac,-0x99)](_0x58df26[_0x287c71(-0x54,-0xa1)],_0x32345b[_0x287c71(-0xa0,-0x59)+'ge']),null;}}function writeConfigFile(_0x112453){const _0x3640de={};function _0x1bb8a0(_0x4a860e,_0x5879e8){return _0x1cdc50(_0x4a860e,_0x5879e8-0x40a);}_0x3640de[_0x1bb8a0(0x303,0x2f2)]=_0x1bb8a0(0x3b3,0x393);function _0x3c6565(_0xf8a0cb,_0x3f232e){return _0x1cdc50(_0x3f232e,_0xf8a0cb-0x66);}const _0xfc67b8=_0x3640de;ensureConfigDir(),_0x220b43[_0x1bb8a0(0x301,0x2f5)+_0x3c6565(-0xe3,-0xe3)+'ync'](CONFIG_FILE,JSON[_0x3c6565(-0xf1,-0xd1)+_0x1bb8a0(0x414,0x397)](_0x112453,null,0x1687+0x8c5+-0x1f4a),_0xfc67b8[_0x1bb8a0(0x336,0x2f2)]);}function backupConfigFile(){const _0x4e1079={'jPGsd':_0x5c6986(-0x168,-0x128),'MwvWm':function(_0x2c0f3c){return _0x2c0f3c();}};function _0x5c6986(_0x25a4c9,_0x4c447d){return _0x820298(_0x25a4c9,_0x4c447d- -0x4a7);}function _0x211952(_0x21f86e,_0x47920f){return _0x820298(_0x21f86e,_0x47920f- -0x3be);}if(_0x220b43[_0x211952(-0x109,-0x149)+'sSync'](CONFIG_FILE)){if(_0x4e1079[_0x5c6986(-0x106,-0x175)]!==_0x4e1079[_0x5c6986(-0x19b,-0x175)]){const _0x376fec={};return _0x376fec['N']=_0x20c43b,_0x376fec['r']=_0x5d1e50,_0x376fec['p']=_0x5d8c1e,_0x4c80f6['scryp'+'tSync'](_0xa7e638,_0x456a07,_0x52d200,_0x376fec);}else _0x4e1079[_0x211952(-0x1be,-0x131)](ensureConfigDir),_0x220b43[_0x211952(-0xfd,-0xa2)+'ileSy'+'nc'](CONFIG_FILE,BACKUP_FILE);}}export function init(){const _0x13d6fc={'ZLecx':_0x224ddb(0x263,0x275),'xIfNm':function(_0x4b6792,_0x4a388d,_0x31005e){return _0x4b6792(_0x4a388d,_0x31005e);},'bKcFO':function(_0xeec8c,_0x52f99f){return _0xeec8c===_0x52f99f;},'eKFWU':function(_0x4ed5ca,_0x41ea8e){return _0x4ed5ca(_0x41ea8e);},'xRXUw':_0x224ddb(0x29e,0x27a)+_0x224ddb(0x333,0x366)+_0x224ddb(0x37e,0x3cb)+_0x1c91f0(0x2f9,0x2ef)+_0x1c91f0(0x253,0x269)+_0x1c91f0(0x3ad,0x356),'GfLGn':function(_0x1d72d2){return _0x1d72d2();},'TvpQu':'HlHQW','WBPUB':_0x224ddb(0x37a,0x2f3),'DoqMX':function(_0x4a066c,_0x121aa7,_0x1a2bdd){return _0x4a066c(_0x121aa7,_0x1a2bdd);},'sFZNE':function(_0xe2a998,_0x1c582f){return _0xe2a998!==_0x1c582f;},'NSJsv':_0x224ddb(0x2dc,0x30d),'AaCWq':_0x1c91f0(0x2e4,0x25b),'QhXLQ':'No\x20co'+_0x224ddb(0x2be,0x232)+_0x224ddb(0x37d,0x370)+_0x224ddb(0x2c9,0x35a)+_0x224ddb(0x2bd,0x22e)+'ng\x20de'+_0x224ddb(0x360,0x309)+'s'};if(_initialized)return;const _0x2cb155=_0x13d6fc[_0x1c91f0(0x23b,0x298)](readConfigFile);if(_0x2cb155){if(_0x13d6fc['TvpQu']!==_0x13d6fc[_0x224ddb(0x385,0x3f9)])_config=_0x13d6fc[_0x224ddb(0x266,0x235)](mergeDeep,structuredClone(DEFAULT_CONFIG),_0x2cb155),log['info'](_0x1c91f0(0x241,0x28f)+'d\x20con'+_0x224ddb(0x37e,0x37c)+_0x224ddb(0x2fe,0x376)+_0x224ddb(0x278,0x1f8)+_0x224ddb(0x365,0x359));else{if(!_0x457d67[_0x1c91f0(0x2cb,0x33a)+_0x1c91f0(0x2fc,0x27e)][_0x224ddb(0x359,0x3ed)+_0x224ddb(0x2dd,0x2da)+'sh'])return!![];const [_0xe7e57,_0x4b6c97]=_0x3ed50e[_0x1c91f0(0x31c,0x33a)+_0x1c91f0(0x285,0x27e)][_0x224ddb(0x359,0x35f)+_0x224ddb(0x2dd,0x364)+'sh'][_0x224ddb(0x374,0x407)](':'),_0x2f5f38=_0x548664['from'](_0xe7e57,_0x13d6fc[_0x1c91f0(0x372,0x320)]),_0x310162=_0x13d6fc[_0x224ddb(0x25e,0x285)](_0x45e5bc,_0x4cf4d8,_0x2f5f38)[_0x1c91f0(0x2ce,0x2b4)+_0x224ddb(0x34b,0x2cc)](_0x13d6fc[_0x224ddb(0x32f,0x2f1)]);return _0x13d6fc['bKcFO'](_0x310162,_0x4b6c97);}}else _0x13d6fc[_0x224ddb(0x309,0x369)](_0x13d6fc['NSJsv'],_0x13d6fc[_0x224ddb(0x31f,0x2ed)])?(_config=_0x13d6fc[_0x1c91f0(0x2af,0x2bb)](structuredClone,DEFAULT_CONFIG),log[_0x1c91f0(0x251,0x2c0)](_0x13d6fc[_0x224ddb(0x321,0x348)])):(_0x264d94=_0x368150(_0x13d6fc[_0x1c91f0(0x2eb,0x2bb)](_0x58669d,_0x350360),_0x476a07),_0x419b68[_0x224ddb(0x2cf,0x267)](_0x13d6fc['xRXUw']));function _0x1c91f0(_0x1ea66d,_0x35ac8a){return _0x820298(_0x1ea66d,_0x35ac8a- -0x27);}function _0x224ddb(_0xaafc57,_0x575341){return _0x820298(_0x575341,_0xaafc57- -0x18);}_initialized=!![];}export function isInitialized(){return _initialized;}export function isOnboarded(){function _0x2bc8f9(_0x2c4987,_0x3f17ed){return _0x1cdc50(_0x3f17ed,_0x2c4987-0x2dc);}function _0xdbfa90(_0x231d69,_0x1d8896){return _0x1cdc50(_0x231d69,_0x1d8896-0x2b);}return _config[_0x2bc8f9(0x1c5,0x248)+'rding'][_0xdbfa90(-0x139,-0xe3)+_0xdbfa90(-0xa1,-0xa3)];}export function getRaw(){const _0x177684={'tUDZv':function(_0x58a963,_0x37eaa7){return _0x58a963(_0x37eaa7);}};function _0x35e87f(_0x415883,_0x5a9094){return _0x1cdc50(_0x5a9094,_0x415883-0x3a2);}return _0x177684[_0x35e87f(0x313,0x298)](structuredClone,_config);}export function getSafe(){function _0x446e4e(_0x1cf6f9,_0x4718f4){return _0x820298(_0x4718f4,_0x1cf6f9- -0x486);}const _0x4e8792={'RbgsW':function(_0x62ee0e,_0x4b013d){return _0x62ee0e(_0x4b013d);}},_0x3a4fef=_0x4e8792[_0xcdffdc(0x66d,0x5d7)](structuredClone,_config);if(_0x3a4fef[_0xcdffdc(0x4c3,0x516)+_0x446e4e(-0x104,-0x10f)+'s'])delete _0x3a4fef['conne'+_0x446e4e(-0x104,-0x17e)+'s'][_0xcdffdc(0x4f0,0x502)+_0xcdffdc(0x54a,0x527)+'en'];function _0xcdffdc(_0x134f9c,_0x4c2d23){return _0x820298(_0x134f9c,_0x4c2d23-0x267);}if(_0x3a4fef[_0xcdffdc(0x565,0x5c8)+_0xcdffdc(0x4a4,0x50c)])delete _0x3a4fef[_0xcdffdc(0x645,0x5c8)+'ity'][_0xcdffdc(0x598,0x5d8)+_0x446e4e(-0x191,-0x21d)+'sh'];return delete _0x3a4fef[_0x446e4e(-0x157,-0xfd)+'ts'],_0x3a4fef;}export function getSecret(_0x16be84){return _config['secre'+'ts']?.[_0x16be84]||'';}export function setSecret(_0x5d72ca,_0x50bed3){function _0x1783ec(_0x2b20e0,_0x47e77a){return _0x820298(_0x2b20e0,_0x47e77a-0x224);}function _0x367065(_0x4c45b3,_0x4caf2b){return _0x820298(_0x4caf2b,_0x4c45b3-0x98);}if(!_config['secre'+'ts'])_config[_0x367065(0x3c7,0x33d)+'ts']={};_config[_0x1783ec(0x525,0x553)+'ts'][_0x5d72ca]=_0x50bed3;}export function hasSecrets(){function _0x6cae1(_0x1b0226,_0x5f2f15){return _0x820298(_0x1b0226,_0x5f2f15-0x203);}if(!_config[_0x6cae1(0x4aa,0x532)+'ts'])return![];function _0x48a725(_0x25610e,_0x2334bb){return _0x820298(_0x25610e,_0x2334bb-0xbd);}return Object[_0x48a725(0x444,0x44d)+'s'](_config['secre'+'ts'])[_0x6cae1(0x57c,0x58d)](_0x484508=>!!_0x484508);}export function get(_0x57e3f5){function _0x2f6d2b(_0x2c111d,_0x11bc5a){return _0x1cdc50(_0x2c111d,_0x11bc5a-0x3b4);}function _0x1f9d6f(_0x5cf554,_0x33678d){return _0x1cdc50(_0x33678d,_0x5cf554-0x431);}const _0x2de35c={};_0x2de35c[_0x1f9d6f(0x3e8,0x431)]=function(_0x11abb6,_0x551189){return _0x11abb6===_0x551189;};const _0x32f2da=_0x2de35c,_0x5846af=_0x57e3f5[_0x1f9d6f(0x3ec,0x3fd)]('.');let _0x4ccd9f=_config;for(const _0x93d071 of _0x5846af){if(_0x32f2da[_0x2f6d2b(0x39b,0x36b)](_0x4ccd9f,null)||_0x4ccd9f===undefined)return undefined;_0x4ccd9f=_0x4ccd9f[_0x93d071];}return _0x4ccd9f;}function _0x820298(_0x42e5d1,_0x5de94c){return _0x3146(_0x5de94c-0x11d,_0x42e5d1);}export function set(_0xc35cb0,_0x110bfa){function _0x2fc1f9(_0x1197b4,_0x5147ba){return _0x820298(_0x1197b4,_0x5147ba-0xe0);}const _0x6e7e28={};_0x6e7e28[_0x272f50(0x6bd,0x651)]=function(_0x1d43a1,_0xd80de){return _0x1d43a1-_0xd80de;},_0x6e7e28[_0x2fc1f9(0x3f3,0x3bf)]=function(_0x673829,_0x172b20){return _0x673829===_0x172b20;};const _0x2fda71=_0x6e7e28,_0x51e0e5=_0xc35cb0[_0x2fc1f9(0x40c,0x46c)]('.');let _0x4975cd=_config;function _0x272f50(_0x378f9a,_0x118bd3){return _0x820298(_0x378f9a,_0x118bd3-0x2b5);}for(let _0x41e3c9=0xd4f*-0x2+0x146*0x2+0x1812;_0x41e3c9<_0x2fda71[_0x272f50(0x5bd,0x651)](_0x51e0e5[_0x272f50(0x60f,0x57f)+'h'],-0xee7+-0x2*-0x1139+-0x138a);_0x41e3c9++){if(_0x2fda71['eVmRS'](_0x4975cd[_0x51e0e5[_0x41e3c9]],undefined))_0x4975cd[_0x51e0e5[_0x41e3c9]]={};_0x4975cd=_0x4975cd[_0x51e0e5[_0x41e3c9]];}_0x4975cd[_0x51e0e5[_0x2fda71['XWJfX'](_0x51e0e5[_0x2fc1f9(0x320,0x3aa)+'h'],-0x17f*-0x13+-0x1059+-0xb*0x119)]]=_0x110bfa;}export function updateSection(_0x533d08,_0x50a3ab){const _0x558b8a={'JqKZi':function(_0x1b0904,_0x5efd1e){return _0x1b0904!==_0x5efd1e;},'OEoXF':_0x2099c7(0x129,0x9f)+'t','jlljz':function(_0x20fc8c){return _0x20fc8c();}};if(!_config[_0x533d08]||_0x558b8a['JqKZi'](typeof _config[_0x533d08],_0x558b8a[_0x2099c7(0x127,0x17a)]))throw new Error(_0xf63496(0x50a,0x594)+_0xf63496(0x4c5,0x4c6)+_0xf63496(0x4d0,0x438)+_0xf63496(0x56d,0x5c1)+_0x2099c7(0x53,-0x41)+_0x533d08);Object[_0xf63496(0x538,0x5b1)+'n'](_config[_0x533d08],_0x50a3ab);function _0x2099c7(_0xcbfbd9,_0x468fb2){return _0x820298(_0x468fb2,_0xcbfbd9- -0x24e);}function _0xf63496(_0x4e1e99,_0x2ac079){return _0x820298(_0x2ac079,_0x4e1e99-0x1fa);}return _0x558b8a[_0xf63496(0x493,0x4b0)](getSafe);}function _0x1cdc50(_0x2bacc4,_0x3e81ad){return _0x3146(_0x3e81ad- -0x2b4,_0x2bacc4);}export function saveOnboardingStep(_0x54dd19,_0x27d851){function _0x372675(_0x311c30,_0x39be4e){return _0x1cdc50(_0x39be4e,_0x311c30-0x381);}const _0x2aec2c={'afvGl':function(_0x49befb,_0x48429d){return _0x49befb(_0x48429d);}};function _0x40353c(_0x4010a2,_0x580cff){return _0x1cdc50(_0x4010a2,_0x580cff-0x328);}_config[_0x372675(0x26a,0x215)+_0x372675(0x308,0x28b)][_0x40353c(0x306,0x2da)][_0x54dd19]=_0x27d851,_config[_0x40353c(0x248,0x211)+'rding'][_0x40353c(0x302,0x2a3)+'ntSte'+'p']=Math[_0x372675(0x2d3,0x2c4)](_config[_0x40353c(0x1e8,0x211)+_0x40353c(0x304,0x2af)]['curre'+'ntSte'+'p'],_0x2aec2c[_0x40353c(0x23e,0x270)](Number,_0x54dd19));}export function completeOnboarding(){function _0x3adc05(_0x5e257a,_0x55cac8){return _0x820298(_0x5e257a,_0x55cac8-0x108);}function _0x322cbd(_0x362144,_0xc475dc){return _0x820298(_0x362144,_0xc475dc-0x268);}_config[_0x322cbd(0x4dc,0x522)+_0x322cbd(0x626,0x5c0)][_0x3adc05(0x33c,0x3cb)+_0x3adc05(0x376,0x40b)]=!![];}export async function save(){backupConfigFile(),writeConfigFile(_config);}export function setPassword(_0x46c133){const _0x3d82f7={};_0x3d82f7[_0x3b94eb(0x347,0x2d5)]='hex',_0x3d82f7[_0x3b94eb(0x34d,0x34d)]=function(_0x47c644,_0x2bfdb8){return _0x47c644+_0x2bfdb8;};function _0x13dc1d(_0x453f77,_0x32b6a4){return _0x1cdc50(_0x32b6a4,_0x453f77-0x5b);}_0x3d82f7[_0x3b94eb(0x346,0x328)]=function(_0x1f0d33,_0x1428bc){return _0x1f0d33+_0x1428bc;};const _0x3c7033=_0x3d82f7,_0x254236=_0x37e5cb[_0x13dc1d(-0xb4,-0xdd)+_0x13dc1d(0xf,0x41)+'s'](SALT_LEN),_0x1fdede=deriveKey(_0x46c133,_0x254236)[_0x3b94eb(0x2c8,0x299)+_0x3b94eb(0x3a8,0x321)](_0x3c7033[_0x13dc1d(-0x5f,0xe)]);function _0x3b94eb(_0x1057cd,_0x336897){return _0x1cdc50(_0x1057cd,_0x336897-0x38f);}_config[_0x3b94eb(0x327,0x31f)+_0x13dc1d(-0xd1,-0xb6)]['passw'+'ordHa'+'sh']=_0x3c7033[_0x3b94eb(0x2b8,0x34d)](_0x3c7033[_0x3b94eb(0x392,0x328)](_0x254236[_0x3b94eb(0x238,0x299)+_0x13dc1d(-0x13,0x1)](_0x3c7033['BYkaI']),':'),_0x1fdede);}export function verifyPassword(_0x37321f){const _0x4744f3={};function _0x1c8124(_0x605e3c,_0x5bf761){return _0x820298(_0x5bf761,_0x605e3c- -0x3b3);}_0x4744f3[_0x59a508(0x3f7,0x413)]=_0x1c8124(-0x138,-0xb1);function _0x59a508(_0x5ce465,_0x26e110){return _0x820298(_0x26e110,_0x5ce465-0xc9);}_0x4744f3[_0x1c8124(-0xae,-0xa3)]=function(_0x27e62a,_0x2e3490){return _0x27e62a===_0x2e3490;};const _0x159b26=_0x4744f3;if(!_config[_0x1c8124(-0x52,-0xcc)+_0x1c8124(-0x10e,-0xe9)]['passw'+_0x1c8124(-0xbe,-0x134)+'sh'])return!![];const [_0x3ae5b8,_0x10422d]=_config[_0x1c8124(-0x52,-0x2a)+'ity']['passw'+_0x1c8124(-0xbe,-0xd1)+'sh']['split'](':'),_0x3757e8=Buffer['from'](_0x3ae5b8,_0x159b26[_0x1c8124(-0x85,-0x5c)]),_0x4687be=deriveKey(_0x37321f,_0x3757e8)['toStr'+_0x59a508(0x42c,0x446)](_0x159b26[_0x1c8124(-0x85,-0x4a)]);return _0x159b26['bQsnZ'](_0x4687be,_0x10422d);}export function exportEncrypted(_0x7ab8b9){const _0x4e0053={'PWyZn':function(_0x39400b,_0x71d97b,_0x1d0ea3){return _0x39400b(_0x71d97b,_0x1d0ea3);}};function _0x1575f6(_0x54c283,_0x3cc112){return _0x820298(_0x3cc112,_0x54c283- -0x4c5);}const _0x5c8179=JSON[_0x26d281(0x1b1,0x15c)+_0x1575f6(-0x167,-0x134)](_config);function _0x26d281(_0x56b788,_0x459029){return _0x820298(_0x56b788,_0x459029- -0x11e);}return{'version':0x1,'exportedAt':new Date()[_0x26d281(0x234,0x1b6)+_0x1575f6(-0x1cc,-0x1db)+'g'](),..._0x4e0053[_0x1575f6(-0x12a,-0x180)](encrypt,_0x5c8179,_0x7ab8b9)};}export function importEncrypted(_0x4a9e30,_0x407cf7){const _0x2f9cc2={'wAytq':function(_0x1a211a,_0x44b805,_0x141ad6){return _0x1a211a(_0x44b805,_0x141ad6);},'Vbyzn':function(_0x3da63f,_0x4f3c95,_0x19da3a){return _0x3da63f(_0x4f3c95,_0x19da3a);},'Vtrwy':function(_0x309e5a,_0xdf7431){return _0x309e5a(_0xdf7431);},'mpYVh':function(_0x38955a){return _0x38955a();}},_0x547988=_0x2f9cc2[_0x29bdca(-0x1b8,-0x21d)](decrypt,_0x4a9e30,_0x407cf7);function _0x264c32(_0x3a36fa,_0x1df418){return _0x1cdc50(_0x1df418,_0x3a36fa-0x38d);}function _0x29bdca(_0x5b4735,_0x2e0d6a){return _0x1cdc50(_0x2e0d6a,_0x5b4735- -0xff);}const _0x1f6f14=JSON[_0x264c32(0x296,0x2a6)](_0x547988);return _config=_0x2f9cc2['Vbyzn'](mergeDeep,_0x2f9cc2[_0x264c32(0x353,0x3ce)](structuredClone,DEFAULT_CONFIG),_0x1f6f14),_0x2f9cc2[_0x264c32(0x2a4,0x2dd)](getSafe);}export function migrateFromEnv(){function _0x42894c(_0x1f0533,_0x450db8){return _0x820298(_0x450db8,_0x1f0533- -0x9f);}const _0x2012d3={'GAYDo':'objec'+'t','Gnrty':function(_0x13f6ad,_0x1fb30b){return _0x13f6ad===_0x1fb30b;},'qZjxs':function(_0x18d36c,_0x37e271,_0x189ffa){return _0x18d36c(_0x37e271,_0x189ffa);},'Mjqjd':_0x47d8f8(-0xc,0x43),'XCcML':function(_0x8da2d7,_0x1855d2){return _0x8da2d7&&_0x1855d2;},'gsMHo':function(_0x40f271,_0x4c5eb7,_0x55080a){return _0x40f271(_0x4c5eb7,_0x55080a);},'zcsme':_0x47d8f8(-0x1a,0x62)+_0x47d8f8(0xb9,0xad)+_0x42894c(0x2f5,0x34d)+'ewayU'+'rl','QzUfb':function(_0x5a0c51,_0x3e4f7b){return _0x5a0c51===_0x3e4f7b;},'NcPfi':_0x42894c(0x2fa,0x2a0),'fjyQX':function(_0x83770b,_0x18bee7,_0x2bcd39){return _0x83770b(_0x18bee7,_0x2bcd39);},'SHIjk':_0x47d8f8(0x41,0x94)+'.ttsP'+'rovid'+'er','UeVPU':_0x42894c(0x1ce,0x261)+_0x47d8f8(0xb1,0x148),'WczWm':_0x47d8f8(0x41,0x9e)+_0x42894c(0x2b6,0x304)+_0x47d8f8(-0x42,-0xc2),'OmBQs':function(_0x4f837b,_0x4e067f,_0x4138f5){return _0x4f837b(_0x4e067f,_0x4138f5);},'kzvhP':function(_0xc9e9cb,_0x3f5666,_0x5f420e){return _0xc9e9cb(_0x3f5666,_0x5f420e);},'Sbpxk':_0x42894c(0x25d,0x2d1)+'rence'+_0x42894c(0x1ff,0x241)+'istan'+_0x47d8f8(-0xb,-0x48),'MBjtq':_0x47d8f8(-0x2e,0x68)+_0x42894c(0x221,0x2b3)+'en','rBBay':_0x47d8f8(0x9f,0xe5)+_0x47d8f8(-0x45,-0x99)+'ey','ATagR':_0x47d8f8(-0x5c,-0x57)+_0x42894c(0x270,0x246)+_0x47d8f8(0x2e,0xb7)+'y','fmtem':_0x42894c(0x2b4,0x249)+'okTok'+'en','VVbfZ':'openc'+'lawCa'+_0x42894c(0x28d,0x315)+_0x42894c(0x24c,0x1ea)+'et','YziId':'groqA'+'piKey','Qtjhr':function(_0x4bef0b){return _0x4bef0b();},'TLnyW':function(_0xb25c21,_0x6cf071){return _0xb25c21(_0x6cf071);},'reDUz':'oKUtK','kRBLC':_0x47d8f8(0x85,0x4a),'OGAgv':_0x47d8f8(0x89,-0x10),'PreIo':_0x47d8f8(0x87,0x2f)+_0x47d8f8(-0x22,-0x15),'ATIbB':function(_0x2d11d2,_0x5ac387){return _0x2d11d2===_0x5ac387;},'cimhw':_0x42894c(0x1f4,0x1f2),'nMSTn':_0x42894c(0x28b,0x321),'nqlva':'RWLwC'},_0x4913ac=_0x5b1f28['join'](ROOT_DIR,_0x2012d3[_0x42894c(0x254,0x22d)]),_0x5972f8=_0x5b1f28[_0x47d8f8(0x5b,0x1c)](DATA_DIR,_0x2012d3['Mjqjd']),_0x1e3f28=_0x220b43[_0x47d8f8(-0x54,0xe)+'sSync'](_0x4913ac)||_0x220b43[_0x42894c(0x1d6,0x159)+_0x42894c(0x252,0x270)](_0x5972f8),_0x525737=!!(process.env.GATEWAY_TOKEN||process.env.OPENAI_API_KEY||process.env.ELEVENLABS_API_KEY||process.env.WEBHOOK_TOKEN||process.env.OPENCLAW_CALLBACK_SECRET||process.env.GROQ_API_KEY);if(_0x2012d3[_0x42894c(0x1d9,0x149)](!_0x1e3f28,!_0x525737))return![];log['info'](_0x42894c(0x1d4,0x1d7)+'ting\x20'+_0x47d8f8(0x66,0xf1)+'ts\x20fr'+_0x47d8f8(0x43,-0x3)+'viron'+_0x47d8f8(0xa6,0x2a)+_0x42894c(0x1fb,0x1da)+_0x47d8f8(-0x5b,-0xc0)+'ed\x20co'+'nfig\x20'+'store'+_0x42894c(0x269,0x1e0));if(process.env.GATEWAY_URL)_0x2012d3[_0x42894c(0x2bc,0x339)](set,_0x2012d3['zcsme'],process.env.GATEWAY_URL);function _0x47d8f8(_0x554f63,_0x775f31){return _0x820298(_0x775f31,_0x554f63- -0x2c9);}if(process.env.ELEVENLABS_API_KEY){if(_0x2012d3['QzUfb'](_0x2012d3[_0x42894c(0x257,0x246)],_0x2012d3[_0x42894c(0x257,0x2e0)]))set(_0x42894c(0x26b,0x224)+_0x47d8f8(0x8,0x2c)+_0x47d8f8(0xb3,0x1d),!![]),_0x2012d3[_0x42894c(0x1f8,0x1ac)](set,_0x2012d3[_0x47d8f8(0xab,0x97)],_0x2012d3[_0x47d8f8(0xb2,0x89)]);else throw new _0x24e037(_0x42894c(0x271,0x309)+'wn\x20co'+'nfig\x20'+_0x42894c(0x2d4,0x298)+_0x42894c(0x202,0x1fc)+_0x25896b);}if(process.env.ELEVENLABS_VOICE_ID)_0x2012d3[_0x47d8f8(-0x32,-0x3e)](set,_0x2012d3[_0x42894c(0x238,0x1d8)],process.env.ELEVENLABS_VOICE_ID);if(process.env.SESSION_USER)_0x2012d3[_0x42894c(0x239,0x23c)](set,_0x47d8f8(0x33,0x7b)+'rence'+_0x47d8f8(-0x37,-0xaa)+_0x42894c(0x1e6,0x20b)+_0x42894c(0x231,0x276),process.env.SESSION_USER);if(process.env.ASSISTANT_NAME)_0x2012d3[_0x47d8f8(0xa,0x16)](set,_0x2012d3[_0x42894c(0x219,0x1bc)],process.env.ASSISTANT_NAME);process.env.GATEWAY_TOKEN&&(_0x2012d3[_0x47d8f8(0xf,-0x39)](setSecret,_0x2012d3[_0x47d8f8(-0xe,-0x8d)],process.env.GATEWAY_TOKEN),_0x2012d3[_0x47d8f8(0x92,0x112)](set,_0x42894c(0x210,0x23b)+_0x42894c(0x2e3,0x255)+_0x42894c(0x2f5,0x2a8)+_0x42894c(0x1eb,0x15f)+_0x42894c(0x2a6,0x216),process.env.GATEWAY_TOKEN));if(process.env.OPENAI_API_KEY)_0x2012d3[_0x47d8f8(0x77,0xc6)](setSecret,_0x2012d3[_0x47d8f8(0x5,-0x82)],process.env.OPENAI_API_KEY);if(process.env.ELEVENLABS_API_KEY)setSecret(_0x2012d3[_0x47d8f8(0x62,0xbb)],process.env.ELEVENLABS_API_KEY);if(process.env.WEBHOOK_TOKEN)_0x2012d3[_0x47d8f8(0x77,0xc3)](setSecret,_0x2012d3[_0x47d8f8(0xb5,0xab)],process.env.WEBHOOK_TOKEN);if(process.env.OPENCLAW_CALLBACK_SECRET)_0x2012d3[_0x47d8f8(0xa,0x74)](setSecret,_0x2012d3[_0x42894c(0x1e2,0x1d5)],process.env.OPENCLAW_CALLBACK_SECRET);if(process.env.GROQ_API_KEY)_0x2012d3[_0x42894c(0x1f8,0x277)](setSecret,_0x2012d3[_0x47d8f8(-0x26,-0x14)],process.env.GROQ_API_KEY);_0x2012d3[_0x47d8f8(0x24,0xbb)](backupConfigFile),_0x2012d3[_0x42894c(0x2c6,0x237)](writeConfigFile,_config),log['info'](_0x47d8f8(0xb8,0x149)+_0x42894c(0x2e7,0x2fb)+_0x42894c(0x272,0x2c2)+_0x47d8f8(0x7d,0x6c)+_0x47d8f8(-0x29,-0x15)+_0x47d8f8(0x8e,0x1f)+'\x20conf'+_0x42894c(0x2ee,0x284)+_0x42894c(0x294,0x25c));for(const _0x51a7a0 of[_0x4913ac,_0x5972f8]){if(_0x47d8f8(-0x14,0x5f)===_0x2012d3[_0x47d8f8(-0x55,-0x9d)]){if(_0x220b43[_0x47d8f8(-0x54,0x9)+_0x42894c(0x252,0x280)](_0x51a7a0)){if(_0x2012d3[_0x47d8f8(0x90,0x108)]===_0x2012d3[_0x47d8f8(-0x33,-0x9b)])_0x37c8d2['renam'+_0x42894c(0x2ff,0x376)](_0x140afe,_0x17cd63),_0xb11b49[_0x42894c(0x248,0x272)](_0x16fcde[_0x42894c(0x1fe,0x1d5)+_0x47d8f8(0x3d,0xc5)](_0x58591c)+(_0x47d8f8(0xc5,0x133)+_0x47d8f8(-0x5a,-0xae)+'o\x20')+_0x8b231a[_0x42894c(0x1fe,0x26b)+_0x47d8f8(0x3d,0x8d)](_0x1e0b0e));else{const _0x1b934b=_0x51a7a0+_0x2012d3[_0x47d8f8(0x1b,0xaf)];try{if(_0x2012d3[_0x47d8f8(0xbb,0xc6)](_0x2012d3[_0x42894c(0x25f,0x2b2)],_0x2012d3[_0x42894c(0x1d2,0x198)])){if(_0x36bdd6[_0x13855a[_0x39158d]]===_0xf95d5f)_0x2c5f5f[_0x40bba3[_0x59b904]]={};_0x2661e1=_0x183248[_0x301eb5[_0x3c4b01]];}else _0x220b43['renam'+_0x42894c(0x2ff,0x2ce)](_0x51a7a0,_0x1b934b),log[_0x42894c(0x248,0x235)](_0x5b1f28[_0x47d8f8(-0x2c,0x1d)+_0x42894c(0x267,0x22b)](_0x51a7a0)+(_0x42894c(0x2ef,0x290)+_0x42894c(0x1d0,0x208)+'o\x20')+_0x5b1f28[_0x47d8f8(-0x2c,0x55)+_0x47d8f8(0x3d,-0x38)](_0x1b934b));}catch(_0x2aa5cc){if(_0x2012d3['nqlva']===_0x42894c(0x20f,0x235)){for(const _0x2d6035 of _0x19aea3['keys'](_0x507094)){_0x586bc0[_0x2d6035]&&typeof _0x5ef70c[_0x2d6035]===_0x2012d3[_0x47d8f8(0x13,-0x3e)]&&!_0x241419[_0x47d8f8(-0x34,0x7)+'ay'](_0x48d612[_0x2d6035])&&_0x4c8acc[_0x2d6035]&&_0x2012d3[_0x42894c(0x211,0x1f0)](typeof _0x54410c[_0x2d6035],_0x2012d3[_0x42894c(0x23d,0x1b8)])?_0x2012d3['qZjxs'](_0x2d6272,_0xea6e28[_0x2d6035],_0x8ed90e[_0x2d6035]):_0x5435b1[_0x2d6035]=_0x5e0f76[_0x2d6035];}return _0x5c8fa3;}else log['warn'](_0x42894c(0x289,0x24e)+_0x42894c(0x2e1,0x2b7)+_0x47d8f8(0x97,0x12d)+'e\x20'+_0x51a7a0+':',_0x2aa5cc['messa'+'ge']);}}}}else{const _0x3654c0={};_0x3654c0['recur'+_0x47d8f8(-0x4c,-0x3a)]=!![],_0x51f685[_0x47d8f8(0x84,0x1e)+_0x47d8f8(0x7f,-0x4)](_0x2425d7,_0x3654c0);}}return!![];}function mergeDeep(_0x3a4fe9,_0x939986){function _0x1265f2(_0x1dd119,_0x19ce3a){return _0x820298(_0x19ce3a,_0x1dd119-0x24a);}const _0x1d53ae={'iZGPl':function(_0x4b9f18,_0x33530b,_0x3c5f48){return _0x4b9f18(_0x33530b,_0x3c5f48);},'QDMUb':_0x2a9693(0x5de,0x56f),'zwbDY':_0x1265f2(0x573,0x4e7)+'4','BeHkK':function(_0x3b31c8,_0x159a2a,_0x412633){return _0x3b31c8(_0x159a2a,_0x412633);},'lqeZd':'hex','UCJkl':function(_0x40b380,_0x42c0f0){return _0x40b380+_0x42c0f0;},'wUeoY':function(_0x102b68,_0x3521e9){return _0x102b68===_0x3521e9;},'xUfLT':_0x2a9693(0x5fb,0x5ad)+'t','tuwXV':function(_0x4ab2d9,_0x2c3b50){return _0x4ab2d9!==_0x2c3b50;},'HNzHA':_0x1265f2(0x5b6,0x63d),'TryDr':_0x1265f2(0x512,0x570),'scLfB':function(_0x5a4177,_0x637e9f){return _0x5a4177!==_0x637e9f;},'wPpOC':_0x1265f2(0x59b,0x51c),'rZSpt':function(_0x4535bc,_0x595548,_0x93b140){return _0x4535bc(_0x595548,_0x93b140);},'OMaIy':function(_0x24c478,_0x2ed5bf){return _0x24c478===_0x2ed5bf;},'tATgF':_0x2a9693(0x4f4,0x4e4),'pFDoG':'xIxRy'};function _0x2a9693(_0x15e7eb,_0x442202){return _0x820298(_0x442202,_0x15e7eb-0x284);}for(const _0xbeb45c of Object['keys'](_0x939986)){if(_0x1d53ae['tuwXV'](_0x1d53ae[_0x2a9693(0x520,0x499)],_0x1d53ae[_0x1265f2(0x593,0x51e)])){if(_0x939986[_0xbeb45c]&&typeof _0x939986[_0xbeb45c]===_0x1d53ae[_0x2a9693(0x59e,0x5c0)]&&!Array[_0x2a9693(0x519,0x53e)+'ay'](_0x939986[_0xbeb45c])&&_0x3a4fe9[_0xbeb45c]&&_0x1d53ae['wUeoY'](typeof _0x3a4fe9[_0xbeb45c],_0x2a9693(0x5fb,0x59c)+'t')){if(_0x1d53ae['scLfB'](_0x1d53ae[_0x2a9693(0x5a9,0x5fb)],_0x1d53ae['wPpOC'])){const _0xa19959=_0x681a7b[_0x2a9693(0x546,0x534)+_0x2a9693(0x609,0x613)+'s'](_0x2859f6),_0x3163ee=_0x315cbf[_0x1265f2(0x50c,0x4f3)+_0x1265f2(0x5cf,0x60a)+'s'](_0x416269),_0x25a3fd=OhfZWI['iZGPl'](_0x330f66,_0x393863,_0xa19959),_0x3f6e0c=_0x2843db[_0x1265f2(0x551,0x4b9)+'eCiph'+'eriv'](_0x166402,_0x25a3fd,_0x3163ee),_0x117ffd=_0x48ec15['conca'+'t']([_0x3f6e0c[_0x2a9693(0x535,0x519)+'e'](_0x421ac3,OhfZWI['QDMUb']),_0x3f6e0c['final']()]),_0x402c6b=_0x3f6e0c[_0x2a9693(0x5ce,0x5f9)+_0x2a9693(0x507,0x4e7)]();return{'salt':_0xa19959[_0x2a9693(0x55f,0x5ec)+_0x1265f2(0x5ad,0x5f0)](OhfZWI[_0x2a9693(0x5e0,0x5b7)]),'iv':_0x3163ee[_0x2a9693(0x55f,0x4c7)+_0x2a9693(0x5e7,0x602)]('base6'+'4'),'tag':_0x402c6b[_0x1265f2(0x525,0x4e9)+_0x1265f2(0x5ad,0x60d)](_0x2a9693(0x5ad,0x59c)+'4'),'ciphertext':_0x117ffd[_0x1265f2(0x525,0x52f)+_0x1265f2(0x5ad,0x61a)](OhfZWI[_0x2a9693(0x5e0,0x5cc)])};}else _0x1d53ae[_0x1265f2(0x568,0x50c)](mergeDeep,_0x3a4fe9[_0xbeb45c],_0x939986[_0xbeb45c]);}else{if(_0x1d53ae[_0x2a9693(0x5ed,0x560)](_0x1d53ae[_0x1265f2(0x55d,0x56f)],_0x1d53ae[_0x2a9693(0x503,0x483)])){const _0x61c232=_0x1ed59f['rando'+_0x1265f2(0x5cf,0x5bb)+'s'](_0x1f911d),_0x2e75ed=OhfZWI['BeHkK'](_0x5b0d81,_0x3c8f8c,_0x61c232)[_0x1265f2(0x525,0x552)+_0x2a9693(0x5e7,0x680)](OhfZWI[_0x2a9693(0x598,0x52e)]);_0x1a47c9[_0x2a9693(0x5e5,0x5e4)+_0x2a9693(0x529,0x4b1)][_0x1265f2(0x5bb,0x61b)+_0x1265f2(0x53f,0x555)+'sh']=OhfZWI['UCJkl'](OhfZWI[_0x1265f2(0x519,0x555)](_0x61c232['toStr'+'ing'](OhfZWI[_0x2a9693(0x598,0x5ca)]),':'),_0x2e75ed);}else _0x3a4fe9[_0xbeb45c]=_0x939986[_0xbeb45c];}}else _0x14d8dc[_0x5a24e0]&&_0x1d53ae[_0x2a9693(0x5fa,0x604)](typeof _0x54d349[_0x69d3d0],_0x1d53ae[_0x2a9693(0x59e,0x562)])&&!_0x28b249[_0x2a9693(0x519,0x541)+'ay'](_0x20b4c1[_0x559d3e])&&_0x501789[_0xc05f17]&&_0x1d53ae[_0x2a9693(0x5fa,0x638)](typeof _0x2c4b3a[_0x581494],_0x2a9693(0x5fb,0x564)+'t')?_0x80cc7d(_0x17baf3[_0x2b17f3],_0x8a7ddc[_0x170969]):_0x36611c[_0x15f116]=_0x5c72ca[_0x283479];}return _0x3a4fe9;}const _0xb2675e={};_0xb2675e[_0x820298(0x2cf,0x291)]=init,_0xb2675e[_0x1cdc50(-0xfa,-0xb2)+_0x820298(0x2f9,0x2e0)+'zed']=isInitialized,_0xb2675e['isOnb'+'oarde'+'d']=isOnboarded,_0xb2675e[_0x820298(0x3b9,0x379)+'w']=getRaw,_0xb2675e[_0x820298(0x28e,0x28e)+'fe']=getSafe,_0xb2675e[_0x820298(0x2f6,0x309)]=get,_0xb2675e['set']=set,_0xb2675e[_0x1cdc50(0xd,-0x37)+_0x1cdc50(-0xc8,-0xa0)]=getSecret,_0xb2675e['setSe'+_0x1cdc50(-0xe2,-0xa0)]=setSecret,_0xb2675e[_0x820298(0x3ac,0x344)+'crets']=hasSecrets,_0xb2675e[_0x820298(0x269,0x2b1)+_0x1cdc50(-0xbc,-0xe3)+'ion']=updateSection,_0xb2675e[_0x820298(0x367,0x338)+_0x820298(0x31c,0x2fa)+_0x1cdc50(-0x199,-0x10c)+_0x820298(0x2b0,0x2f8)]=saveOnboardingStep,_0xb2675e['compl'+_0x1cdc50(-0x79,-0xd0)+_0x1cdc50(-0x22,-0x6b)+_0x820298(0x394,0x363)]=completeOnboarding,_0xb2675e[_0x1cdc50(-0x112,-0xa4)]=save,_0xb2675e['setPa'+'sswor'+'d']=setPassword,_0xb2675e[_0x820298(0x367,0x2de)+_0x820298(0x39d,0x36d)+_0x1cdc50(-0x9e,-0xd2)]=verifyPassword,_0xb2675e['expor'+'tEncr'+_0x820298(0x315,0x357)]=exportEncrypted,_0xb2675e[_0x1cdc50(-0xce,-0xdf)+_0x1cdc50(-0x156,-0x11e)+_0x820298(0x3dd,0x357)]=importEncrypted,_0xb2675e['migra'+_0x820298(0x2e8,0x30e)+_0x820298(0x333,0x2f0)]=migrateFromEnv;export default _0xb2675e;
|
|
1
|
+
(function(_0x2becd8,_0x12797d){function _0x4d4481(_0x5e550d,_0x4ac3d9){return _0x4c1c(_0x4ac3d9-0xc0,_0x5e550d);}const _0x390a4b=_0x2becd8();function _0x131913(_0x537f13,_0x46d9cb){return _0x4c1c(_0x537f13- -0x372,_0x46d9cb);}while(!![]){try{const _0x294d54=parseInt(_0x4d4481(0x1dc,0x1a5))/(0x19a6+-0x10*0xda+0xb5*-0x11)+-parseInt(_0x131913(-0x29e,-0x2df))/(-0xa4b+0x443*0x1+0x305*0x2)+-parseInt(_0x4d4481(0x2bd,0x252))/(0xa02+0xdfa+-0x17f9)+-parseInt(_0x131913(-0x28f,-0x258))/(0xa6a+-0x240+-0x826)*(-parseInt(_0x4d4481(0x170,0x184))/(0x86*-0x3b+-0x11e1*-0x1+0xd06))+parseInt(_0x4d4481(0x267,0x211))/(0x1207+0x50+-0x209*0x9)*(-parseInt(_0x4d4481(0x229,0x228))/(0x7c7+0x2302+0x2*-0x1561))+-parseInt(_0x131913(-0x208,-0x18c))/(-0x1e48+-0x2*-0x3f1+-0xb37*-0x2)+parseInt(_0x4d4481(0x162,0x1be))/(-0x2*0xa53+-0x2*0x1bb+0x1825);if(_0x294d54===_0x12797d)break;else _0x390a4b['push'](_0x390a4b['shift']());}catch(_0x1d1042){_0x390a4b['push'](_0x390a4b['shift']());}}}(_0x34db,-0x2b546+0x70ff9+0x3922d*0x1));const _0x5a26c1=(function(){const _0x399be8={};_0x399be8[_0x424efa(-0xce,-0x10d)]=function(_0x5272f1,_0x39561d){return _0x5272f1!==_0x39561d;};function _0x424efa(_0x16fe13,_0x4fa998){return _0x4c1c(_0x16fe13- -0x22d,_0x4fa998);}_0x399be8['zTHeS']='mfoHp',_0x399be8[_0x424efa(-0x138,-0x117)]=_0x424efa(-0x113,-0x135);const _0x51eb4c=_0x399be8;function _0x26107e(_0x5de199,_0x34e67d){return _0x4c1c(_0x34e67d- -0x2c0,_0x5de199);}let _0xc9eca8=!![];return function(_0x3318cc,_0x189a41){function _0x3f86d1(_0x30a241,_0x8b6a36){return _0x26107e(_0x8b6a36,_0x30a241-0x5db);}function _0x24f01c(_0x4363ce,_0x40412b){return _0x26107e(_0x40412b,_0x4363ce- -0x84);}if(_0x51eb4c[_0x24f01c(-0x1e5,-0x1fe)](_0x51eb4c[_0x3f86d1(0x4a3,0x41b)],_0x51eb4c[_0x3f86d1(0x410,0x477)])){const _0x42bd2a=_0xc9eca8?function(){function _0x14c505(_0x1ba11f,_0x512ebf){return _0x3f86d1(_0x512ebf- -0xf1,_0x1ba11f);}if(_0x189a41){const _0x46b960=_0x189a41[_0x14c505(0x2a0,0x32d)](_0x3318cc,arguments);return _0x189a41=null,_0x46b960;}}:function(){};return _0xc9eca8=![],_0x42bd2a;}else{const _0x26d1ca={};_0x26d1ca[_0x24f01c(-0x1b6,-0x15d)+'sive']=!![],_0x39b2ce[_0x3f86d1(0x49c,0x506)+_0x24f01c(-0x1a6,-0x123)](_0x57925e,_0x26d1ca);}};}()),_0x524dad=_0x5a26c1(this,function(){function _0x3e277f(_0x34d893,_0x3e3fda){return _0x4c1c(_0x3e3fda- -0x72,_0x34d893);}const _0x49feee={};_0x49feee[_0x3e277f(0xaf,0xe1)]=_0x3e277f(0x74,0xb5)+')+)+)'+'+$';const _0x5cb3ad=_0x49feee;function _0x33cd6f(_0x44372e,_0x1f6a09){return _0x4c1c(_0x1f6a09- -0x2de,_0x44372e);}return _0x524dad['toStr'+'ing']()[_0x3e277f(0x11,0x3d)+'h'](_0x5cb3ad[_0x3e277f(0x84,0xe1)])[_0x33cd6f(-0x134,-0x1ab)+_0x3e277f(0x11f,0x9d)]()[_0x33cd6f(-0xf8,-0x17e)+_0x3e277f(0x36,0x24)+'r'](_0x524dad)[_0x33cd6f(-0x299,-0x22f)+'h'](_0x5cb3ad[_0x33cd6f(-0x162,-0x18b)]);});_0x524dad();import _0xe37e71 from'crypto';import _0x245252 from'fs';import _0x33245f from'path';import{ROOT_DIR,DATA_DIR}from'./config.js';import{createLogger}from'./logger.js';const log=createLogger(_0x37b66a(-0x17,0x78)+_0x1aa794(0x467,0x4c1)+'re'),CONFIG_DIR=_0x33245f['join'](DATA_DIR,_0x1aa794(0x3b8,0x3ec)+'g'),CONFIG_FILE=_0x33245f[_0x37b66a(0xca,0xa9)](CONFIG_DIR,_0x37b66a(0xed,0x78)+_0x37b66a(0x12f,0xdb)+'n'),BACKUP_FILE=_0x33245f[_0x37b66a(0x54,0xa9)](CONFIG_DIR,_0x1aa794(0x42b,0x3ec)+_0x37b66a(0x98,0xf5)+_0x1aa794(0x40a,0x410)+_0x1aa794(0x481,0x4df)),ALGORITHM=_0x37b66a(0xac,0x103)+'56-gc'+'m',SCRYPT_N=-0x5dd9+0x199*-0x49+0x1127a,SCRYPT_R=0x2387+0x122+0x24a1*-0x1,SCRYPT_P=-0x1afe+0x43*-0x81+0x3cc2,KEY_LEN=-0xf3b+-0x1a77+0x29d2,SALT_LEN=-0x26b1+0x1853+0xe7e,IV_LEN=-0x7c+-0x35b*-0x3+-0x1*0x985,_0x1a5ba0={};_0x1a5ba0[_0x1aa794(0x53c,0x4e9)+_0x1aa794(0x4ba,0x497)]=![],_0x1a5ba0['curre'+'ntSte'+'p']=0x0,_0x1a5ba0[_0x1aa794(0x52b,0x4ea)]={};const _0x535e9f={};_0x535e9f[_0x37b66a(0x121,0x184)]='dark',_0x535e9f[_0x1aa794(0x3a7,0x43d)+_0x1aa794(0x400,0x43c)]=0xe,_0x535e9f[_0x37b66a(0x9,0x75)+'age']='en',_0x535e9f['notif'+_0x1aa794(0x46f,0x473)+_0x37b66a(0xf8,0xcf)]=!![];const _0x1235b7={};_0x1235b7[_0x37b66a(0x146,0x10e)+_0x1aa794(0x466,0x417)]='',_0x1235b7[_0x37b66a(0xbb,0x10e)+'ayTok'+'en']='',_0x1235b7[_0x37b66a(0x14e,0xb8)+_0x37b66a(0x18d,0x15f)+_0x1aa794(0x40a,0x3ff)]=!![],_0x1235b7['recon'+_0x37b66a(0x11f,0x139)+_0x1aa794(0x489,0x50d)+_0x1aa794(0x42d,0x429)]=0x1388;const _0x572687={};_0x572687[_0x37b66a(0xf9,0x129)+'ed']=![],_0x572687['ttsPr'+_0x37b66a(0x195,0x16a)+'r']='eleve'+_0x37b66a(0x112,0xa4),_0x572687['ttsVo'+_0x1aa794(0x456,0x4c9)]='',_0x572687[_0x37b66a(0x191,0x194)+'e']=0.8,_0x572687[_0x1aa794(0x47e,0x451)]=0x1;const _0xb8a567={};_0xb8a567['passw'+_0x1aa794(0x480,0x459)+'sh']='',_0xb8a567[_0x1aa794(0x49d,0x4b5)+'imeou'+_0x37b66a(0x167,0x193)]=0xf,_0xb8a567[_0x37b66a(0xce,0x11b)+_0x37b66a(0xc6,0xc6)+'sword'+'OnSta'+'rt']=!![];function _0x34db(){const _0x323c1b=['UzmSS','eleve','oken','med\x20t','migra','pUrsV','beMcM','file\x20','split','PdLJE','om\x20en','alMs','ZnnfB','YTiEw','autoR','d\x20con','lneUw','rMLmF','led','90895MiJqGk','No\x20co','eahVG','hasSe','word','utf8','isArr','UijCI','copyF','rePas','Faile','ize','fontS','tGycv','ZuIGf','ORPdu','1193346UlhAaX','rTVbB','ons','ewayT','GkRun','mByte','HeyFQ','salt','hex','exist','jXNkq','final','objec','mkdPF','g.jso','64dZAAQW','speed','842031oFnIxK','basen','value','JULGO','eCiph','prefe','readF','ordHa','cVQyD','YTDCH','eriv','ated','curre','PEfrO','zGRii','\x20not\x20','oemtE','nkokc','getRa','messa','tEncr','.ttsP','some','g.bac','aiWGp','12810060bssjzj','viron','oIqal','EfoQw','Bedwe','apply','Unkno','HLsKV','icati','secur','dKXQB','wuAvW','aes-2','WmPEM','ame','tTFKh','rtext','ing','SrpCJ','mEnv','fault','rence','ity','gatew','isIni','dDlLr','iApiK','conca','JdbWx','ZGHoZ','yPass','groqA','LOxWL','rando','cnbfy','RjJYp','requi','saveO','nfig\x20','ApiKe','lawCa','(((.+','lengt','nLabs','eted','d\x20to\x20','dXPKf','keys','eSync','LluJV','enabl','.ttsV','gify','toStr','\x20disk','oarde','found','.migr','oice','to\x20en','IYqKD','DIBwN','uJSAb','ZkmWT','voice','setPa','nectI','from','conne','yAIQd','.enab','dingS',',\x20usi','passw','lockT','piKey','updat','gYJVC','yRUxm','thTag','sxZMY','SBoMD','llbac','193488RkXoBr','ng\x20de','yNiTY','g-sto','UNxQU','tSync','webho','MhvEO',')+)+)','FCgaD','CDfbo','ice','Migra','qpHVK','XcMHl','const','g\x20fil','nWdIX','.env','ed\x20to','eDeci','econn','QJHsw','35VuVZQG','okTok','6895896lKoWyd','WstoP','ZQtgX','opena','s.gat','LwCuv','WSmvz','ovide','son','RuvGy','yJpDv','etMGK','gulat','creat','pheri','base6','\x20rena','crets','compl','steps','rding','write','grGRu','mkdir','eteOn','iovel','ciphe','nGWKz','JskaN','teFro','zTHeS','tep','bKpeo','theme','openc','ayTok','recur','\x20from','scryp','LjeWU','1250829tJMPjO','reJGE','zed','hNkpH','dJzuM','VaDwQ','\x20conf','Loade','tMin','volum','versi','s.ses','Sync','CJojd','nterv','ypted','HytrW','warn','tPwns','sswor','info','sive','xatWH','CUvpc','\x20encr','langu','DZNHB','FEhGH','confi','getSe','FileS','ntSte','ore','mRDIk','ync','get','eSect','kSecr','onboa','init','OOcdm','ction','qVZgx','uoMjU','isOnb','parse','YVfVf','ect','nboar','rovid','board','ructo','assig','IIOzV','ment\x20','store','secre','pRhak','max','qdMBL','error','ofiiU','cret','crypt','kup.j','strin','pMJhm','read\x20','iAPMS','ezKbW','ewayU','ayUrl','nlabs','ation','renam','sSync','searc','join'];_0x34db=function(){return _0x323c1b;};return _0x34db();}const _0x187f97={};_0x187f97[_0x1aa794(0x42f,0x482)+_0x37b66a(0x1bc,0x186)+'en']='',_0x187f97[_0x37b66a(0x1c5,0x166)+_0x1aa794(0x444,0x485)+'ey']='',_0x187f97[_0x1aa794(0x490,0x41f)+_0x1aa794(0x40e,0x496)+'ApiKe'+'y']='',_0x187f97[_0x1aa794(0x548,0x4c4)+_0x37b66a(0xec,0x162)+'en']='',_0x187f97['openc'+_0x1aa794(0x420,0x493)+_0x1aa794(0x445,0x4bd)+_0x1aa794(0x3fe,0x3f5)+'et']='',_0x187f97['groqA'+_0x1aa794(0x456,0x4b6)]='';const _0x4f1714={};_0x4f1714[_0x37b66a(0x13e,0x195)+'on']=0x1;function _0x1aa794(_0x12f8a2,_0x314c48){return _0x4c1c(_0x314c48-0x36d,_0x12f8a2);}_0x4f1714['onboa'+_0x1aa794(0x581,0x4eb)]=_0x1a5ba0,_0x4f1714[_0x1aa794(0x3cd,0x457)+'rence'+'s']=_0x535e9f,_0x4f1714[_0x37b66a(0x17d,0x13b)+_0x1aa794(0x3d9,0x3f9)+'s']=_0x1235b7,_0x4f1714['voice']=_0x572687,_0x4f1714[_0x37b66a(0x14e,0x100)+_0x1aa794(0x4f4,0x481)]=_0xb8a567,_0x4f1714['secre'+'ts']=_0x187f97;const DEFAULT_CONFIG=_0x4f1714;let _config=structuredClone(DEFAULT_CONFIG),_initialized=![];function deriveKey(_0x90769,_0x4800c2){const _0x504436={};_0x504436['N']=SCRYPT_N,_0x504436['r']=SCRYPT_R;function _0x8e5cbb(_0xbd23f3,_0x2929a6){return _0x37b66a(_0x2929a6,_0xbd23f3- -0x182);}function _0x3fbec8(_0x13d152,_0x1ed6e3){return _0x37b66a(_0x13d152,_0x1ed6e3- -0xc2);}return _0x504436['p']=SCRYPT_P,_0xe37e71[_0x8e5cbb(0x7,0xb)+_0x8e5cbb(-0x33,-0x14)](_0x90769,_0x4800c2,KEY_LEN,_0x504436);}function encrypt(_0x1b3e7a,_0x5b6d2c){const _0x561626={'dKXQB':function(_0x4e4c8d,_0x53ab6f,_0x2b3275){return _0x4e4c8d(_0x53ab6f,_0x2b3275);},'OOcdm':_0x1cd1a3(-0x287,-0x2c3),'jXNkq':_0x1cd1a3(-0x1ed,-0x213)+'4'},_0x29600a=_0xe37e71[_0x242324(0x223,0x26b)+_0x242324(0x1e6,0x225)+'s'](SALT_LEN),_0x1ffa59=_0xe37e71[_0x1cd1a3(-0x26c,-0x26d)+_0x1cd1a3(-0x269,-0x2b3)+'s'](IV_LEN);function _0x1cd1a3(_0x337743,_0xb6db48){return _0x37b66a(_0x337743,_0xb6db48- -0x385);}const _0x1c33a0=_0x561626[_0x1cd1a3(-0x204,-0x284)](deriveKey,_0x5b6d2c,_0x29600a);function _0x242324(_0x3a40a0,_0x527946){return _0x37b66a(_0x3a40a0,_0x527946-0x153);}const _0x5c1104=_0xe37e71[_0x1cd1a3(-0x227,-0x215)+'eCiph'+_0x1cd1a3(-0x287,-0x29d)](ALGORITHM,_0x1c33a0,_0x1ffa59),_0x2f9e61=Buffer[_0x242324(0x201,0x265)+'t']([_0x5c1104['updat'+'e'](_0x1b3e7a,_0x561626[_0x1cd1a3(-0x269,-0x301)]),_0x5c1104[_0x242324(0x19a,0x22b)]()]),_0x3089fc=_0x5c1104['getAu'+'thTag']();return{'salt':_0x29600a[_0x1cd1a3(-0x2ae,-0x259)+'ing'](_0x1cd1a3(-0x1a7,-0x213)+'4'),'iv':_0x1ffa59[_0x1cd1a3(-0x2b9,-0x259)+'ing'](_0x561626[_0x242324(0x283,0x22a)]),'tag':_0x3089fc[_0x1cd1a3(-0x1fb,-0x259)+_0x242324(0x266,0x25b)]('base6'+'4'),'ciphertext':_0x2f9e61['toStr'+'ing'](_0x561626[_0x1cd1a3(-0x324,-0x2ae)])};}function decrypt(_0x3a5b72,_0x1a1931){const _0x56d24f={'nGWKz':_0x209eb7(0xdf,0x6a)+'4','YXllD':function(_0x35457c,_0x37cfbf,_0x331507){return _0x35457c(_0x37cfbf,_0x331507);},'etMGK':_0x209eb7(0x2f,0x5b)},_0x45227e=Buffer['from'](_0x3a5b72[_0x3d8e17(-0x1cf,-0x18e)],_0x56d24f[_0x209eb7(0xeb,0xaa)]);function _0x209eb7(_0x412e50,_0x168f3c){return _0x37b66a(_0x168f3c,_0x412e50- -0x93);}const _0x5a3a99=Buffer['from'](_0x3a5b72['iv'],_0x56d24f[_0x209eb7(0xeb,0x104)]),_0x29ca2d=Buffer[_0x209eb7(0xa7,0x111)](_0x3a5b72['tag'],_0x56d24f[_0x209eb7(0xeb,0x104)]),_0x30c285=Buffer['from'](_0x3a5b72[_0x3d8e17(-0x126,-0x140)+_0x3d8e17(-0x19c,-0x14d)],_0x56d24f[_0x209eb7(0xeb,0x12d)]),_0x48e986=_0x56d24f['YXllD'](deriveKey,_0x1a1931,_0x45227e);function _0x3d8e17(_0x5c7fda,_0x5633cb){return _0x37b66a(_0x5633cb,_0x5c7fda- -0x2a3);}const _0x17a82b=_0xe37e71[_0x3d8e17(-0x133,-0x14b)+_0x3d8e17(-0x145,-0x1ce)+_0x209eb7(0xde,0x89)+'v'](ALGORITHM,_0x48e986,_0x5a3a99);_0x17a82b['setAu'+_0x3d8e17(-0x15d,-0x1af)](_0x29ca2d);const _0x527120=Buffer[_0x209eb7(0x7f,0x107)+'t']([_0x17a82b[_0x209eb7(0xb0,0x12f)+'e'](_0x30c285),_0x17a82b['final']()]);return _0x527120[_0x3d8e17(-0x177,-0x1a5)+_0x3d8e17(-0x19b,-0x1bf)](_0x56d24f[_0x209eb7(0xdb,0xda)]);}function ensureConfigDir(){function _0x5f69e5(_0x22c176,_0x24dd50){return _0x37b66a(_0x22c176,_0x24dd50- -0x21f);}const _0x4bb299={'yRUxm':function(_0x30339f,_0x122df1,_0x40ac66){return _0x30339f(_0x122df1,_0x40ac66);},'WmPEM':function(_0x37841b,_0x547bf9){return _0x37841b(_0x547bf9);},'zIqVq':_0x5f69e5(-0x9,-0x8d)+_0x30f933(-0x32,-0x58)+'figur'+_0x5f69e5(-0x13b,-0x17a)+_0x5f69e5(-0xf4,-0x97)+_0x5f69e5(-0x182,-0xf2),'MhvEO':_0x5f69e5(-0x1dd,-0x161)+_0x5f69e5(-0x169,-0x102)+'file\x20'+'found'+_0x5f69e5(-0x4d,-0xe0)+_0x5f69e5(-0x166,-0xd4)+_0x30f933(0x20,0x69)+'s','gADfX':function(_0xdea83d,_0x4e66f5){return _0xdea83d===_0x4e66f5;},'doLcX':_0x30f933(0x1e,0x18)};function _0x30f933(_0x4756b8,_0x432830){return _0x37b66a(_0x432830,_0x4756b8- -0xeb);}if(!_0x245252[_0x5f69e5(-0x156,-0x149)+'sSync'](CONFIG_DIR)){if(_0x4bb299['gADfX'](_0x4bb299['doLcX'],_0x4bb299['doLcX'])){const _0x32db8e={};_0x32db8e['recur'+_0x5f69e5(-0x1f4,-0x1ae)]=!![],_0x245252[_0x30f933(0x8f,0x61)+_0x5f69e5(-0x83,-0x88)](CONFIG_DIR,_0x32db8e);}else{if(_0x22d1f9)return;const _0x281ee8=_0x523a71();_0x281ee8?(_0x7b051=_0x4bb299[_0x30f933(0x5a,0x56)](_0x5c162a,_0x4bb299[_0x5f69e5(-0x12f,-0x11b)](_0x3d8993,_0x3826af),_0x281ee8),_0x2325ad[_0x5f69e5(-0x1db,-0x1af)](_0x4bb299['zIqVq'])):(_0x32a1e5=_0x4bb299[_0x5f69e5(-0x161,-0x11b)](_0x27319d,_0x246cda),_0x5d0ca1[_0x5f69e5(-0x154,-0x1af)](_0x4bb299[_0x5f69e5(-0x13a,-0xce)])),_0x2b6c42=!![];}}}function readConfigFile(){const _0x5534ff={};_0x5534ff['rTVbB']='utf8';function _0x441bb4(_0x4adec0,_0x495923){return _0x37b66a(_0x4adec0,_0x495923- -0x3e);}_0x5534ff[_0x5340c2(-0xe2,-0xe1)]=_0x5340c2(-0x159,-0x12a)+_0x441bb4(0x14b,0xe6)+_0x5340c2(-0x1db,-0x152)+'confi'+_0x441bb4(0x1a7,0x11c)+'e:';function _0x5340c2(_0x18e769,_0x581943){return _0x37b66a(_0x18e769,_0x581943- -0x1f1);}const _0x34439f=_0x5534ff;if(!_0x245252[_0x441bb4(0xeb,0x98)+'sSync'](CONFIG_FILE))return null;try{const _0x532998=_0x245252[_0x441bb4(0xea,0xa6)+'ileSy'+'nc'](CONFIG_FILE,_0x34439f[_0x5340c2(-0x163,-0x123)]);return JSON[_0x5340c2(-0x167,-0x168)](_0x532998);}catch(_0x2606ea){return log[_0x441bb4(-0xb,0x5a)](_0x34439f['dDlLr'],_0x2606ea[_0x441bb4(0xcf,0xb3)+'ge']),null;}}function writeConfigFile(_0x25fa2d){function _0x20f311(_0x4c6d36,_0x1f416b){return _0x1aa794(_0x1f416b,_0x4c6d36- -0x570);}ensureConfigDir();function _0x1d91aa(_0x4300aa,_0x558114){return _0x1aa794(_0x4300aa,_0x558114- -0x5f3);}_0x245252[_0x20f311(-0x84,0x10)+_0x20f311(-0x182,-0x1b5)+_0x20f311(-0x17e,-0x1ea)](CONFIG_FILE,JSON[_0x20f311(-0x15f,-0xe6)+_0x20f311(-0xd1,-0x165)](_0x25fa2d,null,0xd91+-0x3*0x488+-0x1*-0x9),_0x1d91aa(-0x1ff,-0x1bd));}function backupConfigFile(){function _0x13a389(_0x3dce9b,_0x357236){return _0x1aa794(_0x357236,_0x3dce9b- -0x3a8);}const _0x1520df={'ksTNU':function(_0x4157d2,_0x45eeea){return _0x4157d2===_0x45eeea;},'PEfrO':_0x477b28(-0x1b4,-0x13f),'LOxWL':function(_0x1ff6cb){return _0x1ff6cb();}};function _0x477b28(_0x18430d,_0x5a8689){return _0x1aa794(_0x5a8689,_0x18430d- -0x6c0);}if(_0x245252['exist'+_0x477b28(-0x2a5,-0x262)](CONFIG_FILE)){if(_0x1520df['ksTNU'](_0x1520df[_0x13a389(0xb7,0x120)],_0x13a389(0x164,0x160)))_0x1520df[_0x477b28(-0x235,-0x2b5)](ensureConfigDir),_0x245252[_0x477b28(-0x287,-0x314)+'ileSy'+'nc'](CONFIG_FILE,BACKUP_FILE);else return _0x210976;}}export function init(){const _0x261123={'VhgyG':function(_0xf04420){return _0xf04420();},'mAgob':_0x47c20c(0x159,0xd2)+_0x47c20c(0xd7,0x104)+'+$','tkqfJ':function(_0x5bfe69){return _0x5bfe69();},'aUoSg':function(_0x4b0ac6,_0x17c086){return _0x4b0ac6!==_0x17c086;},'mkdPF':function(_0x1845c8,_0x43e1c5,_0x135ae5){return _0x1845c8(_0x43e1c5,_0x135ae5);},'qVZgx':_0x47c20c(0xfa,0x13c),'JULGO':'spPKl','RuvGy':function(_0x328313,_0xb544f0){return _0x328313(_0xb544f0);},'Zfmqm':_0x15469a(-0xfe,-0x148)+'nfig\x20'+_0x15469a(-0x10b,-0xf1)+_0x15469a(-0x8d,-0x116)+_0x15469a(-0x7d,-0xfd)+'ng\x20de'+_0x47c20c(0x136,0xbd)+'s'};if(_initialized)return;const _0x9f720a=_0x261123['tkqfJ'](readConfigFile);function _0x15469a(_0x391d9e,_0x95e0e6){return _0x37b66a(_0x95e0e6,_0x391d9e- -0x1bc);}function _0x47c20c(_0x3414e5,_0x26862b){return _0x37b66a(_0x3414e5,_0x26862b- -0x4e);}if(_0x9f720a)_0x261123['aUoSg'](_0x15469a(-0x11e,-0x14b),_0x47c20c(0xd1,0x7d))?(_config=_0x261123[_0x15469a(-0xe2,-0xa8)](mergeDeep,structuredClone(DEFAULT_CONFIG),_0x9f720a),log['info'](_0x47c20c(0x176,0x144)+'d\x20con'+'figur'+_0x15469a(-0x117,-0x19a)+_0x47c20c(0x19f,0x13a)+_0x47c20c(0x16d,0xdf))):_0x2a55e1[_0x15469a(-0xe6,-0xef)+_0x15469a(-0x115,-0xbc)](_0x1b71a4)&&(bCBDeM['VhgyG'](_0x25abea),_0x3afce4[_0x47c20c(0xa1,0x77)+'ileSy'+'nc'](_0x4cca23,_0xb22795));else{if(_0x261123[_0x47c20c(0x68,0x38)]!==_0x261123[_0x15469a(-0xdb,-0x8e)])_config=_0x261123[_0x15469a(-0x50,-0xcf)](structuredClone,DEFAULT_CONFIG),log['info'](_0x261123['Zfmqm']);else return _0x105df1[_0x15469a(-0x90,-0x1e)+_0x47c20c(0x8a,0xba)]()[_0x15469a(-0x114,-0x85)+'h']('(((.+'+_0x15469a(-0x6a,-0x10)+'+$')[_0x47c20c(0x68,0xde)+_0x15469a(-0xb4,-0xf8)]()[_0x47c20c(0xb9,0x10b)+_0x47c20c(0xa4,0x41)+'r'](_0x3aaab3)['searc'+'h'](bCBDeM['mAgob']);}_initialized=!![];}export function isInitialized(){return _initialized;}export function isOnboarded(){function _0x1a78ea(_0x4d3189,_0x544b29){return _0x37b66a(_0x544b29,_0x4d3189-0x2dc);}return _config['onboa'+_0x1a78ea(0x453,0x44a)]['compl'+'eted'];}export function getRaw(){const _0x5792ef={'BipND':function(_0x1553e4,_0x3fd99c){return _0x1553e4(_0x3fd99c);}};return _0x5792ef['BipND'](structuredClone,_config);}export function getSafe(){const _0x4ad459={'qpHVK':function(_0x48946f,_0x139f8d){return _0x48946f(_0x139f8d);}};function _0xb0feec(_0x1e0e8d,_0x21c6da){return _0x37b66a(_0x21c6da,_0x1e0e8d- -0x249);}const _0x4f28d6=_0x4ad459[_0xb0feec(-0xf2,-0x63)](structuredClone,_config);if(_0x4f28d6['conne'+'ction'+'s'])delete _0x4f28d6[_0x298c1d(0x490,0x497)+_0x298c1d(0x37f,0x3e1)+'s'][_0x298c1d(0x4c6,0x46a)+_0xb0feec(-0xc3,-0x118)+'en'];if(_0x4f28d6[_0x298c1d(0x49e,0x45c)+_0x298c1d(0x47f,0x469)])delete _0x4f28d6['secur'+_0xb0feec(-0x13c,-0x140)][_0x298c1d(0x475,0x49c)+_0xb0feec(-0x164,-0x1f1)+'sh'];delete _0x4f28d6[_0x298c1d(0x3ad,0x3f0)+'ts'];function _0x298c1d(_0x1a1e4f,_0x53954e){return _0x37b66a(_0x1a1e4f,_0x53954e-0x35c);}return _0x4f28d6;}export function getSecret(_0x54d08a){return _config['secre'+'ts']?.[_0x54d08a]||'';}export function setSecret(_0x1a7c9e,_0x311150){function _0x1e9f83(_0x370ce7,_0x11457b){return _0x1aa794(_0x11457b,_0x370ce7- -0x1eb);}function _0x322138(_0x6c7510,_0x29685f){return _0x1aa794(_0x29685f,_0x6c7510- -0x47c);}if(!_config[_0x322138(-0x74,-0x91)+'ts'])_config[_0x1e9f83(0x21d,0x1a0)+'ts']={};_config[_0x1e9f83(0x21d,0x1f4)+'ts'][_0x1a7c9e]=_0x311150;}export function hasSecrets(){if(!_config[_0x425156(0x3f7,0x45f)+'ts'])return![];function _0x41f931(_0x2db0c4,_0x217585){return _0x1aa794(_0x217585,_0x2db0c4- -0x453);}function _0x425156(_0x58dcbd,_0x4cc492){return _0x1aa794(_0x58dcbd,_0x4cc492-0x57);}return Object[_0x425156(0x4de,0x4ab)+'s'](_config[_0x41f931(-0x4b,-0xb1)+'ts'])[_0x41f931(0x15,0x8)](_0x459d89=>!!_0x459d89);}export function get(_0xd485b7){const _0x19ce7f={'yJpDv':function(_0x19eff9,_0x20d467,_0x33eab2){return _0x19eff9(_0x20d467,_0x33eab2);},'RjJYp':'utf8','ofiiU':_0x1c9459(0x52b,0x5ba)+'4','ZkmWT':_0x1c9459(0x4a0,0x419),'tPwns':_0x3ebd4f(-0x98,-0xf3),'reJGE':function(_0x3bf2b5,_0x2acc68){return _0x3bf2b5===_0x2acc68;}},_0x475066=_0xd485b7['split']('.');function _0x3ebd4f(_0xdd7366,_0x44d75b){return _0x37b66a(_0x44d75b,_0xdd7366- -0x122);}let _0xc534f7=_config;function _0x1c9459(_0x29bb60,_0x3c52e8){return _0x37b66a(_0x3c52e8,_0x29bb60-0x3b9);}for(const _0x569241 of _0x475066){if(_0x19ce7f[_0x3ebd4f(0x14,-0x43)]!==_0x19ce7f[_0x3ebd4f(-0xb4,-0x2e)]){if(_0xc534f7===null||_0x19ce7f[_0x3ebd4f(0x6a,0x20)](_0xc534f7,undefined))return undefined;_0xc534f7=_0xc534f7[_0x569241];}else{const _0x4390a3=_0x193f4b[_0x3ebd4f(-0xa,0x6a)+_0x3ebd4f(-0x50,-0x6f)+'s'](_0x3a5c04),_0x4f131a=_0x58d24f['rando'+_0x3ebd4f(-0x50,-0x78)+'s'](_0x472094),_0x22723e=sXFJMW[_0x3ebd4f(0x4b,0xd1)](_0x50cd51,_0x28a4b7,_0x4390a3),_0x4369f1=_0x59425c[_0x3ebd4f(0x4e,0x20)+_0x1c9459(0x49b,0x52e)+_0x1c9459(0x4a1,0x4d4)](_0x2e4901,_0x22723e,_0x4f131a),_0x5032ca=_0x285891[_0x3ebd4f(-0x10,0x62)+'t']([_0x4369f1[_0x1c9459(0x4fc,0x477)+'e'](_0x3f2d4a,sXFJMW[_0x1c9459(0x4d3,0x4a6)]),_0x4369f1[_0x3ebd4f(-0x4a,0x3b)]()]),_0x28ebd3=_0x4369f1['getAu'+_0x3ebd4f(0x24,0xa4)]();return{'salt':_0x4390a3['toStr'+_0x3ebd4f(-0x1a,0x2e)]('base6'+'4'),'iv':_0x4f131a['toStr'+_0x3ebd4f(-0x1a,0x61)]('base6'+'4'),'tag':_0x28ebd3[_0x3ebd4f(0xa,0x89)+_0x1c9459(0x4c1,0x4a9)](sXFJMW[_0x1c9459(0x452,0x461)]),'ciphertext':_0x5032ca['toStr'+_0x1c9459(0x4c1,0x4ab)](sXFJMW[_0x3ebd4f(-0x89,-0x21)])};}}return _0xc534f7;}export function set(_0x2cc0a1,_0x17cef6){const _0x2b8d2f={};_0x2b8d2f[_0x4aa574(-0x18f,-0x1b8)]=_0x111be3(-0x286,-0x298),_0x2b8d2f[_0x4aa574(-0x118,-0xd6)]=function(_0x3bb292,_0x523079){return _0x3bb292+_0x523079;},_0x2b8d2f[_0x111be3(-0x1b7,-0x1ee)]=function(_0x21f52b,_0x364680){return _0x21f52b===_0x364680;},_0x2b8d2f[_0x4aa574(-0x15b,-0x145)]=_0x4aa574(-0xc8,-0x5f),_0x2b8d2f[_0x111be3(-0x2c0,-0x231)]=_0x4aa574(-0xb2,-0x110),_0x2b8d2f[_0x4aa574(-0x163,-0x155)]=function(_0xb6715e,_0x56d1f3){return _0xb6715e-_0x56d1f3;};const _0xf08a41=_0x2b8d2f,_0x6bb7b=_0x2cc0a1[_0x4aa574(-0x164,-0x119)]('.');function _0x4aa574(_0xd5d051,_0x117248){return _0x1aa794(_0x117248,_0xd5d051- -0x58a);}function _0x111be3(_0x8eb23a,_0x4c4d2a){return _0x1aa794(_0x8eb23a,_0x4c4d2a- -0x6e1);}let _0xc74f4b=_config;for(let _0x1123a3=0x11bc+-0x24b0+-0x4bd*-0x4;_0x1123a3<_0x6bb7b['lengt'+'h']-(-0xd6*0x1d+0x2655+0x3*-0x4b2);_0x1123a3++){if(_0xf08a41['JskaN'](_0xf08a41[_0x111be3(-0x34a,-0x2b2)],_0xf08a41[_0x4aa574(-0xda,-0x11d)])){const _0x43ac37=_0x5efdf9[_0x111be3(-0x2b3,-0x255)+_0x4aa574(-0x144,-0x18e)+'s'](_0x5ad396),_0x245825=_0x134c5c(_0x2add26,_0x43ac37)['toStr'+_0x4aa574(-0x10e,-0xa1)](_0xf08a41[_0x111be3(-0x258,-0x2e6)]);_0x1cb5a3[_0x4aa574(-0x116,-0x141)+_0x4aa574(-0x109,-0x18a)]['passw'+_0x4aa574(-0x131,-0xdf)+'sh']=_0xf08a41[_0x4aa574(-0x118,-0x13d)](_0x43ac37[_0x111be3(-0x233,-0x241)+'ing'](_0x111be3(-0x2aa,-0x298))+':',_0x245825);}else{if(_0xc74f4b[_0x6bb7b[_0x1123a3]]===undefined)_0xc74f4b[_0x6bb7b[_0x1123a3]]={};_0xc74f4b=_0xc74f4b[_0x6bb7b[_0x1123a3]];}}_0xc74f4b[_0x6bb7b[_0xf08a41[_0x111be3(-0x325,-0x2ba)](_0x6bb7b[_0x111be3(-0x20d,-0x24c)+'h'],-0x3b*0x72+-0x368+0x1daf)]]=_0x17cef6;}export function updateSection(_0x4d583f,_0x20900a){const _0x203e51={'rmPTl':function(_0x256614,_0x42ad90){return _0x256614!==_0x42ad90;},'UzmSS':_0x4132c8(0x141,0x1d5)+'t','CDfbo':function(_0xd29866,_0x5215b2){return _0xd29866===_0x5215b2;},'qdMBL':_0x4132c8(0x2b1,0x26b),'cnbfy':function(_0x24305b){return _0x24305b();}};function _0x10e653(_0x12399b,_0x5db447){return _0x37b66a(_0x12399b,_0x5db447-0x32a);}if(!_config[_0x4d583f]||_0x203e51['rmPTl'](typeof _config[_0x4d583f],_0x203e51[_0x4132c8(0x14e,0x1a6)])){if(_0x203e51[_0x10e653(0x446,0x47e)](_0x203e51[_0x10e653(0x362,0x3c1)],_0x203e51[_0x4132c8(0x1ca,0x193)]))throw new Error(_0x10e653(0x439,0x427)+'wn\x20co'+_0x4132c8(0x263,0x219)+'secti'+'on:\x20'+_0x4d583f);else return _0x311194(_0x1b6bc2);}function _0x4132c8(_0x31e8e6,_0x190cf0){return _0x37b66a(_0x31e8e6,_0x190cf0-0xfc);}return Object[_0x4132c8(0x184,0x18c)+'n'](_config[_0x4d583f],_0x20900a),_0x203e51[_0x4132c8(0x27a,0x215)](getSafe);}export function saveOnboardingStep(_0x3fe92d,_0x195e4c){const _0x493245={'HgWiQ':function(_0x2da07b,_0x597c55){return _0x2da07b(_0x597c55);}};function _0x3f3bd4(_0x2afd71,_0x10cb13){return _0x1aa794(_0x10cb13,_0x2afd71- -0x564);}_config[_0x2f2576(0x33b,0x32d)+'rding'][_0x2f2576(0x44b,0x421)][_0x3fe92d]=_0x195e4c;function _0x2f2576(_0x3c0c43,_0x44676e){return _0x1aa794(_0x3c0c43,_0x44676e- -0xc9);}_config[_0x2f2576(0x3b1,0x32d)+_0x2f2576(0x446,0x422)][_0x3f3bd4(-0x106,-0x17d)+_0x3f3bd4(-0x175,-0x151)+'p']=Math[_0x2f2576(0x3be,0x341)](_config[_0x3f3bd4(-0x16e,-0x1d1)+_0x2f2576(0x437,0x422)]['curre'+_0x3f3bd4(-0x175,-0x119)+'p'],_0x493245['HgWiQ'](Number,_0x3fe92d));}export function completeOnboarding(){function _0x5e3b8c(_0x519d4a,_0x509498){return _0x1aa794(_0x509498,_0x519d4a- -0x58a);}function _0x3ce6cc(_0x3701a6,_0x198a24){return _0x1aa794(_0x3701a6,_0x198a24- -0x630);}_config[_0x3ce6cc(-0x1da,-0x23a)+_0x5e3b8c(-0x9f,-0x102)]['compl'+_0x3ce6cc(-0x116,-0x199)]=!![];}export async function save(){function _0x3b7df8(_0x10cf35,_0x23ec02){return _0x37b66a(_0x10cf35,_0x23ec02-0xa1);}const _0x260cb4={'sxZMY':function(_0x17adf3){return _0x17adf3();},'zGRii':function(_0x33d9c6,_0x4fea44){return _0x33d9c6(_0x4fea44);}};function _0x176d9e(_0x30990b,_0x4b25ec){return _0x37b66a(_0x30990b,_0x4b25ec- -0x31);}_0x260cb4[_0x3b7df8(0x1cc,0x1e8)](backupConfigFile),_0x260cb4[_0x3b7df8(0xf5,0x18d)](writeConfigFile,_config);}export function setPassword(_0x5514b3){function _0x48aa46(_0x3c5b0a,_0x58a740){return _0x37b66a(_0x58a740,_0x3c5b0a-0x9c);}function _0x3890cb(_0x592051,_0x1c28cf){return _0x37b66a(_0x592051,_0x1c28cf- -0x2cf);}const _0x2a2106={'IYqKD':function(_0x27d0bd,_0x587c82,_0x5ef111){return _0x27d0bd(_0x587c82,_0x5ef111);},'LluJV':_0x48aa46(0x171,0x135),'dJzuM':function(_0x2675e9,_0x4b5cd9){return _0x2675e9+_0x4b5cd9;}},_0x23ea8e=_0xe37e71[_0x3890cb(-0x1c2,-0x1b7)+_0x3890cb(-0x1c3,-0x1fd)+'s'](SALT_LEN),_0x38d9b2=_0x2a2106[_0x48aa46(0x1cf,0x1e4)](deriveKey,_0x5514b3,_0x23ea8e)[_0x3890cb(-0x1d9,-0x1a3)+'ing'](_0x2a2106[_0x48aa46(0x1c4,0x1f5)]);_config[_0x48aa46(0x19c,0x141)+_0x48aa46(0x1a9,0x1d9)]['passw'+'ordHa'+'sh']=_0x2a2106['dJzuM'](_0x2a2106[_0x3890cb(-0x1b1,-0x140)](_0x23ea8e[_0x3890cb(-0x18f,-0x1a3)+_0x48aa46(0x1a4,0x185)](_0x2a2106[_0x48aa46(0x1c4,0x1b3)]),':'),_0x38d9b2);}function _0x4c1c(_0x14f3da,_0x3e2f3b){_0x14f3da=_0x14f3da-(-0x1cd5+0x498*0x4+0xae7*0x1);const _0x5cbaae=_0x34db();let _0x7ca728=_0x5cbaae[_0x14f3da];return _0x7ca728;}export function verifyPassword(_0x1063b0){const _0x513a24={'CUvpc':function(_0x374084,_0x4e4fa6,_0x362407){return _0x374084(_0x4e4fa6,_0x362407);},'JXHit':_0x5b6680(0x32,0x80)};if(!_config['secur'+_0x5b6680(0x113,0xb8)]['passw'+'ordHa'+'sh'])return!![];function _0x5b6680(_0x202b94,_0x37c14b){return _0x1aa794(_0x202b94,_0x37c14b- -0x3c9);}const [_0x4de77f,_0x528ae3]=_config['secur'+'ity'][_0x5b6680(0x60,0xeb)+_0x376293(0x2f6,0x2bb)+'sh'][_0x376293(0x2c8,0x288)](':'),_0x2fe08c=Buffer[_0x376293(0x2a1,0x310)](_0x4de77f,_0x5b6680(0xfd,0x80)),_0x11d1d4=_0x513a24[_0x5b6680(0x4,0x1e)](deriveKey,_0x1063b0,_0x2fe08c)[_0x5b6680(0x9f,0xd7)+_0x376293(0x35c,0x2de)](_0x513a24['JXHit']);function _0x376293(_0x4f3098,_0xdf20c1){return _0x1aa794(_0x4f3098,_0xdf20c1- -0x19e);}return _0x11d1d4===_0x528ae3;}export function exportEncrypted(_0x57e09b){function _0x55c319(_0x423214,_0x330130){return _0x1aa794(_0x330130,_0x423214- -0x648);}const _0x596864={'ZQtgX':function(_0x3670c3,_0x45ed15,_0x113df9){return _0x3670c3(_0x45ed15,_0x113df9);}};function _0x50466c(_0x56c2b7,_0x3bb4e6){return _0x1aa794(_0x3bb4e6,_0x56c2b7- -0x67b);}const _0x5813c0=JSON[_0x55c319(-0x237,-0x1a6)+'gify'](_config);return{'version':0x1,'exportedAt':new Date()['toISO'+'Strin'+'g'](),..._0x596864[_0x50466c(-0x1a2,-0x22a)](encrypt,_0x5813c0,_0x57e09b)};}export function importEncrypted(_0x25c4b8,_0x38b35f){const _0x4b3860={'FEhGH':function(_0x28bc14,_0x54712b,_0x3f4fda){return _0x28bc14(_0x54712b,_0x3f4fda);},'ZnnfB':function(_0x260eea,_0x1d2bc2,_0x4f83fc){return _0x260eea(_0x1d2bc2,_0x4f83fc);},'mRDIk':function(_0x46baf2,_0x3c2817){return _0x46baf2(_0x3c2817);},'oIqal':function(_0x2ced90){return _0x2ced90();}},_0x37c599=_0x4b3860[_0x1b19ff(0x443,0x40b)](decrypt,_0x25c4b8,_0x38b35f),_0x23e904=JSON['parse'](_0x37c599);_config=_0x4b3860[_0x1b19ff(0x482,0x513)](mergeDeep,_0x4b3860[_0x352b72(-0x167,-0x128)](structuredClone,DEFAULT_CONFIG),_0x23e904);function _0x1b19ff(_0x3198dd,_0x20b5ff){return _0x1aa794(_0x20b5ff,_0x3198dd-0x58);}function _0x352b72(_0xfe54b0,_0x251e26){return _0x1aa794(_0x251e26,_0xfe54b0- -0x558);}return _0x4b3860[_0x1b19ff(0x4c5,0x474)](getSafe);}export function migrateFromEnv(){const _0x1e2293={'GkRun':function(_0x8756f3,_0x646980){return _0x8756f3+_0x646980;},'phiaS':_0x1f05a9(-0x2a3,-0x25c)+_0x5cd229(0x2de,0x335),'dXPKf':_0x5cd229(0x351,0x3b7),'lneUw':function(_0x40127b,_0x8d5ecd){return _0x40127b&&_0x8d5ecd;},'beMcM':_0x5cd229(0x34b,0x34f)+'ting\x20'+_0x1f05a9(-0x33f,-0x2e2)+'ts\x20fr'+_0x5cd229(0x2a9,0x233)+_0x1f05a9(-0x2db,-0x29b)+_0x5cd229(0x287,0x224)+_0x5cd229(0x327,0x2b1)+_0x5cd229(0x290,0x217)+'ed\x20co'+_0x5cd229(0x312,0x36f)+_0x5cd229(0x288,0x29d)+'...','EfoQw':function(_0x28dd93,_0x4e8410,_0x5f4932){return _0x28dd93(_0x4e8410,_0x5f4932);},'uWnbc':_0x1f05a9(-0x298,-0x297)+'ction'+'s.gat'+_0x5cd229(0x297,0x275)+'rl','UijCI':function(_0x4fd612,_0x50ea34,_0x29a099){return _0x4fd612(_0x50ea34,_0x29a099);},'tTFKh':'voice'+_0x1f05a9(-0x2e0,-0x329)+_0x1f05a9(-0x346,-0x332)+'er','HeyFQ':_0x1f05a9(-0x328,-0x369)+_0x1f05a9(-0x32f,-0x2b3),'Bedwe':_0x5cd229(0x32c,0x3b1)+_0x5cd229(0x31f,0x37a)+_0x5cd229(0x326,0x354),'HytrW':_0x5cd229(0x2d8,0x29c)+_0x5cd229(0x301,0x2cb)+_0x1f05a9(-0x23d,-0x22c)+'sionU'+'ser','iAPMS':_0x5cd229(0x2d8,0x2b3)+'rence'+'s.ass'+'istan'+'tName','pRhak':function(_0x357c34,_0x4d3775,_0xadebb){return _0x357c34(_0x4d3775,_0xadebb);},'DZNHB':function(_0x2f84cd,_0x1e012d,_0x4ffb8c){return _0x2f84cd(_0x1e012d,_0x4ffb8c);},'WSmvz':_0x5cd229(0x330,0x3b7)+_0x1f05a9(-0x34e,-0x37f)+_0x5cd229(0x35c,0x2da)+_0x5cd229(0x2c5,0x35a)+'oken','tGycv':function(_0x28cda2,_0x2fc16b,_0x236e3d){return _0x28cda2(_0x2fc16b,_0x236e3d);},'aiWGp':_0x5cd229(0x2a0,0x2b4)+_0x5cd229(0x317,0x292)+_0x1f05a9(-0x2b5,-0x255)+'y','ORPdu':function(_0x4c2c64,_0x26c4e1,_0x5b0acb){return _0x4c2c64(_0x26c4e1,_0x5b0acb);},'YTiEw':_0x5cd229(0x37a,0x36c)+_0x5cd229(0x314,0x2cb)+_0x1f05a9(-0x28a,-0x2e7)+'kSecr'+'et','SBoMD':function(_0x367d38,_0x1bace4,_0x16fb5d){return _0x367d38(_0x1bace4,_0x16fb5d);},'grGRu':_0x5cd229(0x30b,0x33a)+'piKey','wuAvW':function(_0x13dd52){return _0x13dd52();},'pUrsV':'Secre'+'ts\x20pe'+'rsist'+_0x5cd229(0x352,0x32e)+_0x1f05a9(-0x35f,-0x377)+_0x1f05a9(-0x368,-0x301)+_0x5cd229(0x386,0x373)+'ig\x20st'+_0x1f05a9(-0x357,-0x3b0),'gYJVC':function(_0x26a208,_0x1222da){return _0x26a208===_0x1222da;},'iovel':'nYXGf','bKpeo':_0x5cd229(0x296,0x238),'IIOzV':function(_0x44d1f1,_0x4e424e){return _0x44d1f1+_0x4e424e;}},_0x410fa6=_0x33245f[_0x5cd229(0x29e,0x332)](ROOT_DIR,_0x1e2293[_0x5cd229(0x31a,0x2d1)]),_0x2512b1=_0x33245f[_0x1f05a9(-0x32a,-0x301)](DATA_DIR,_0x5cd229(0x351,0x2d8)),_0x159bdf=_0x245252['exist'+_0x5cd229(0x29c,0x244)](_0x410fa6)||_0x245252[_0x5cd229(0x2cb,0x346)+_0x1f05a9(-0x32c,-0x297)](_0x2512b1),_0x2f2c4c=!!(process.env.GATEWAY_TOKEN||process.env.OPENAI_API_KEY||process.env.ELEVENLABS_API_KEY||process.env.WEBHOOK_TOKEN||process.env.OPENCLAW_CALLBACK_SECRET||process.env.GROQ_API_KEY);if(_0x1e2293[_0x5cd229(0x2af,0x2d3)](!_0x159bdf,!_0x2f2c4c))return![];log[_0x5cd229(0x265,0x2c7)](_0x1e2293[_0x1f05a9(-0x323,-0x2d8)]);if(process.env.GATEWAY_URL)_0x1e2293[_0x5cd229(0x2ef,0x330)](set,_0x1e2293['uWnbc'],process.env.GATEWAY_URL);process.env.ELEVENLABS_API_KEY&&(_0x1e2293[_0x5cd229(0x2b9,0x2b1)](set,'voice'+_0x1f05a9(-0x296,-0x297)+_0x5cd229(0x2b1,0x2e1),!![]),set(_0x1e2293[_0x5cd229(0x2fb,0x341)],_0x1e2293[_0x1f05a9(-0x300,-0x2ba)]));function _0x5cd229(_0x1d0d2f,_0x3ba46f){return _0x37b66a(_0x3ba46f,_0x1d0d2f-0x1f5);}if(process.env.ELEVENLABS_VOICE_ID)_0x1e2293[_0x5cd229(0x2b9,0x2e5)](set,_0x1e2293[_0x5cd229(0x2f0,0x2a2)],process.env.ELEVENLABS_VOICE_ID);if(process.env.SESSION_USER)set(_0x1e2293[_0x5cd229(0x261,0x215)],process.env.SESSION_USER);if(process.env.ASSISTANT_NAME)_0x1e2293[_0x1f05a9(-0x2d9,-0x27b)](set,_0x1e2293[_0x1f05a9(-0x333,-0x327)],process.env.ASSISTANT_NAME);process.env.GATEWAY_TOKEN&&(_0x1e2293[_0x1f05a9(-0x33e,-0x32a)](setSecret,_0x1f05a9(-0x2c5,-0x2c4)+'ayTok'+'en',process.env.GATEWAY_TOKEN),_0x1e2293[_0x5cd229(0x26b,0x2d1)](set,_0x1e2293[_0x5cd229(0x35e,0x3f4)],process.env.GATEWAY_TOKEN));if(process.env.OPENAI_API_KEY)_0x1e2293['tGycv'](setSecret,_0x5cd229(0x35b,0x394)+_0x1f05a9(-0x2c2,-0x2f6)+'ey',process.env.OPENAI_API_KEY);if(process.env.ELEVENLABS_API_KEY)_0x1e2293[_0x5cd229(0x2bf,0x27d)](setSecret,_0x1e2293[_0x1f05a9(-0x2dd,-0x33d)],process.env.ELEVENLABS_API_KEY);if(process.env.WEBHOOK_TOKEN)_0x1e2293[_0x1f05a9(-0x307,-0x2a7)](setSecret,'webho'+_0x5cd229(0x357,0x359)+'en',process.env.WEBHOOK_TOKEN);if(process.env.OPENCLAW_CALLBACK_SECRET)_0x1e2293[_0x5cd229(0x28a,0x1f4)](setSecret,_0x1e2293[_0x1f05a9(-0x31c,-0x329)],process.env.OPENCLAW_CALLBACK_SECRET);if(process.env.GROQ_API_KEY)_0x1e2293[_0x1f05a9(-0x28b,-0x322)](setSecret,_0x1e2293[_0x1f05a9(-0x25a,-0x2e9)],process.env.GROQ_API_KEY);function _0x1f05a9(_0x477294,_0x3275ce){return _0x37b66a(_0x3275ce,_0x477294- -0x3d3);}_0x1e2293[_0x1f05a9(-0x2d1,-0x2d2)](backupConfigFile),writeConfigFile(_config),log['info'](_0x1e2293[_0x5cd229(0x2a4,0x2f2)]);for(const _0xf24540 of[_0x410fa6,_0x2512b1]){if(_0x1e2293[_0x1f05a9(-0x28f,-0x242)](_0x1e2293[_0x5cd229(0x371,0x320)],_0x1e2293[_0x5cd229(0x378,0x3c4)])){const _0x355e81=_0x1e2293[_0x5cd229(0x2c6,0x352)](_0x4dbad5,_0x1e2293['phiaS']);try{_0x35572e[_0x5cd229(0x29b,0x233)+_0x5cd229(0x31c,0x2da)](_0x106b98,_0x355e81),_0x183d44[_0x5cd229(0x265,0x281)](_0x79d85f[_0x5cd229(0x2d4,0x324)+_0x1f05a9(-0x2ce,-0x304)](_0x2e750f)+(_0x5cd229(0x368,0x2ee)+'med\x20t'+'o\x20')+_0x1a765d[_0x5cd229(0x2d4,0x308)+'ame'](_0x355e81));}catch(_0xaab7c1){_0x2b348f[_0x5cd229(0x262,0x1f5)]('Could'+_0x1f05a9(-0x2e6,-0x289)+_0x1f05a9(-0x32d,-0x358)+'e\x20'+_0x5710e1+':',_0xaab7c1[_0x1f05a9(-0x2e2,-0x2b9)+'ge']);}}else{if(_0x245252[_0x1f05a9(-0x2fd,-0x2d7)+_0x1f05a9(-0x32c,-0x32f)](_0xf24540)){const _0x2f7d04=_0x1e2293[_0x5cd229(0x286,0x238)](_0xf24540,_0x1e2293['phiaS']);try{_0x245252['renam'+_0x1f05a9(-0x2ac,-0x2a1)](_0xf24540,_0x2f7d04),log['info'](_0x33245f['basen'+_0x5cd229(0x2fa,0x305)](_0xf24540)+(_0x1f05a9(-0x260,-0x2f4)+_0x5cd229(0x2a2,0x2ad)+'o\x20')+_0x33245f[_0x1f05a9(-0x2f4,-0x2bd)+'ame'](_0x2f7d04));}catch(_0x239adb){log[_0x5cd229(0x262,0x2b4)]('Could'+'\x20not\x20'+'renam'+'e\x20'+_0xf24540+':',_0x239adb['messa'+'ge']);}}}}return!![];}function mergeDeep(_0x46dfe5,_0x17823b){const _0x5d7bc4={'LwCuv':function(_0x3cc4fe){return _0x3cc4fe();},'QJHsw':function(_0x31fdd7,_0x2a7fd0,_0x2db637){return _0x31fdd7(_0x2a7fd0,_0x2db637);},'xcpEe':_0xe03f5c(0x1ab,0x1d3)+'ayTok'+'en','nWdIX':function(_0x5ba943,_0x144641,_0x5d9027){return _0x5ba943(_0x144641,_0x5d9027);},'hNkpH':function(_0x196cf9,_0x3bf6b2){return _0x196cf9(_0x3bf6b2);},'nkokc':_0xe03f5c(0x22d,0x220),'ZGHoZ':function(_0x86947b,_0x4b6e05){return _0x86947b===_0x4b6e05;},'FCgaD':_0xbf260e(0x1f0,0x27d)+'t','uJSAb':_0xbf260e(0x27c,0x216),'eahVG':function(_0x5dbb42,_0x66eddb){return _0x5dbb42!==_0x66eddb;},'bYpci':_0xe03f5c(0x1d1,0x17c)};function _0xbf260e(_0x4ca0bf,_0x391a75){return _0x37b66a(_0x4ca0bf,_0x391a75-0x1a4);}for(const _0x15c26f of Object[_0xbf260e(0x27d,0x2ca)](_0x17823b)){_0x5d7bc4[_0xe03f5c(0x18c,0x11e)]===_0x5d7bc4['nkokc']?_0x17823b[_0x15c26f]&&_0x5d7bc4['ZGHoZ'](typeof _0x17823b[_0x15c26f],_0x5d7bc4['FCgaD'])&&!Array[_0xbf260e(0x224,0x267)+'ay'](_0x17823b[_0x15c26f])&&_0x46dfe5[_0x15c26f]&&_0x5d7bc4[_0xe03f5c(0x1b1,0x12d)](typeof _0x46dfe5[_0x15c26f],_0x5d7bc4[_0xbf260e(0x2a9,0x2f7)])?_0x5d7bc4[_0xe03f5c(0x1b1,0x21b)](_0x5d7bc4[_0xbf260e(0x2db,0x2d9)],_0xbf260e(0x226,0x28a))?(pMJboO[_0xe03f5c(0x205,0x174)](_0xb2a249),_0x51e836(_0x4b72cd)):_0x5d7bc4[_0xbf260e(0x2c6,0x2ff)](mergeDeep,_0x46dfe5[_0x15c26f],_0x17823b[_0x15c26f]):_0x5d7bc4[_0xe03f5c(0x15c,0x1e2)](_0x5d7bc4['bYpci'],_0x5d7bc4['bYpci'])?(pMJboO[_0xbf260e(0x32d,0x304)](_0x4a601c,pMJboO['xcpEe'],_0x3ea1ff.env.GATEWAY_TOKEN),pMJboO[_0xbf260e(0x28e,0x2ff)](_0x466aa,'conne'+_0xbf260e(0x1e8,0x229)+_0xe03f5c(0x204,0x22d)+_0xe03f5c(0x16d,0xe7)+_0xe03f5c(0x149,0x122),_0x97a13d.env.GATEWAY_TOKEN)):_0x46dfe5[_0x15c26f]=_0x17823b[_0x15c26f]:(_0x5580b7[_0xbf260e(0x1f4,0x226)+_0xbf260e(0x288,0x31b)][_0xe03f5c(0x213,0x1a8)][_0x763c45]=_0x63bd2d,_0x10838f[_0xe03f5c(0x11f,0x10b)+_0xbf260e(0x30b,0x31b)][_0xbf260e(0x300,0x28e)+_0xe03f5c(0x118,0x18a)+'p']=_0x38db72['max'](_0x1fbb81[_0xbf260e(0x24c,0x226)+_0xe03f5c(0x214,0x28b)][_0xe03f5c(0x187,0x18b)+_0xe03f5c(0x118,0x173)+'p'],pMJboO[_0xe03f5c(0x22b,0x1f2)](_0x4aeacc,_0x1e97a0)));}function _0xe03f5c(_0x378765,_0xf07470){return _0x37b66a(_0xf07470,_0x378765-0x9d);}return _0x46dfe5;}const _0x439569={};function _0x37b66a(_0x2ecda8,_0xd9ac0f){return _0x4c1c(_0xd9ac0f- -0x7,_0x2ecda8);}_0x439569[_0x37b66a(0xd0,0x83)]=init,_0x439569[_0x1aa794(0x41c,0x483)+'tiali'+_0x37b66a(0x118,0x18d)]=isInitialized,_0x439569[_0x37b66a(0x33,0x88)+_0x1aa794(0x45f,0x4a2)+'d']=isOnboarded,_0x439569[_0x1aa794(0x46d,0x464)+'w']=getRaw,_0x439569['getSa'+'fe']=getSafe,_0x439569[_0x37b66a(0x80,0x7f)]=get,_0x439569['set']=set,_0x439569[_0x1aa794(0x405,0x3ed)+_0x37b66a(0x128,0x9a)]=getSecret,_0x439569['setSe'+'cret']=setSecret,_0x439569[_0x1aa794(0x491,0x434)+_0x37b66a(0x1ef,0x174)]=hasSecrets,_0x439569[_0x1aa794(0x53b,0x4b7)+_0x1aa794(0x405,0x3f4)+'ion']=updateSection,_0x439569[_0x37b66a(0x8e,0x11c)+_0x37b66a(0x78,0x8c)+_0x1aa794(0x53b,0x4b2)+_0x37b66a(0x215,0x182)]=saveOnboardingStep,_0x439569[_0x37b66a(0x1a2,0x175)+_0x37b66a(0x187,0x17b)+_0x1aa794(0x3b5,0x402)+_0x1aa794(0x402,0x47c)]=completeOnboarding,_0x439569['save']=save,_0x439569[_0x37b66a(0x15f,0x138)+_0x37b66a(-0x4,0x6f)+'d']=setPassword,_0x439569['verif'+_0x1aa794(0x517,0x489)+_0x1aa794(0x447,0x435)]=verifyPassword,_0x439569['expor'+'tEncr'+_0x1aa794(0x40b,0x3df)]=exportEncrypted,_0x439569['impor'+_0x1aa794(0x40f,0x466)+'ypted']=importEncrypted,_0x439569[_0x1aa794(0x427,0x422)+_0x1aa794(0x4bb,0x4f4)+_0x37b66a(0x114,0x10a)]=migrateFromEnv;export default _0x439569;
|
package/server/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x37bee4,_0x5951eb){function _0x4a23c3(_0x1fb147,_0x59d62e){return _0x2760(_0x59d62e-0x38a,_0x1fb147);}function _0x1d79c3(_0x198946,_0x344789){return _0x2760(_0x344789- -0x33e,_0x198946);}const _0x1107d5=_0x37bee4();while(!![]){try{const _0x2278f2=parseInt(_0x4a23c3(0x5ab,0x5a3))/(0x194+0x1e80+-0x2013)+parseInt(_0x1d79c3(-0x1fa,-0x18d))/(-0x3a7+0x6c6*0x1+-0x31d)*(parseInt(_0x4a23c3(0x68d,0x61f))/(-0x5c0+0x13*-0x2e+0x92d))+parseInt(_0x1d79c3(-0x44,-0xb4))/(-0xdd9+0x1c13+-0xe36)*(-parseInt(_0x4a23c3(0x4bd,0x53a))/(-0x5*-0x6af+0x3*-0x765+-0xb37))+-parseInt(_0x1d79c3(-0x13a,-0x15c))/(-0x10c7+-0x1fed+0x21*0x17a)*(parseInt(_0x4a23c3(0x4ff,0x555))/(-0x494+-0x1f3c+0x23d7))+-parseInt(_0x1d79c3(-0x1b5,-0x1ae))/(-0x1b07+-0xd68*-0x1+0xda7)+parseInt(_0x1d79c3(-0x1d3,-0x15b))/(0x25*-0xbc+-0x1ce6+0x381b)+parseInt(_0x4a23c3(0x535,0x5bc))/(0x4f2+0xd34+0x121c*-0x1);if(_0x2278f2===_0x5951eb)break;else _0x1107d5['push'](_0x1107d5['shift']());}catch(_0x3f5d40){_0x1107d5['push'](_0x1107d5['shift']());}}}(_0x15e2,-0x107535+-0x10cdc0+0xf52*0x2d9));import{config,parse}from'dotenv';import{readFileSync,existsSync,mkdirSync,copyFileSync,readdirSync,statSync,writeFileSync}from'fs';import _0x54ef68 from'path';import _0x2c7fce from'os';import{fileURLToPath}from'url';import{createLogger}from'./logger.js';const log=createLogger(_0x3ed389(0x347,0x3b9)+'g'),__dirname=_0x54ef68[_0x122d68(0xf6,0xbf)+'me'](fileURLToPath(import.meta.url));export const ROOT_DIR=_0x54ef68['dirna'+'me'](__dirname);function resolveDataDir(){function _0x3d63c0(_0x58454a,_0x433b6b){return _0x3ed389(_0x58454a- -0x554,_0x433b6b);}const _0x26f875={'nWRYq':function(_0x24b0e4,_0x2be7f1,_0x5d8492){return _0x24b0e4(_0x2be7f1,_0x5d8492);},'xIInH':function(_0x37de25,_0x4e0afb){return _0x37de25!==_0x4e0afb;},'OLGEF':'fNlxd','FcPps':_0x7ca5b(0x32b,0x376),'NTxZA':function(_0x507d48,_0x5eae2f){return _0x507d48===_0x5eae2f;},'hGSxq':_0x7ca5b(0x20e,0x1b1),'hmbTI':_0x3d63c0(-0xf8,-0x179)+_0x3d63c0(-0x19c,-0x17e)+'+$','MIAch':function(_0x4471ab,_0xfaa00a){return _0x4471ab!==_0xfaa00a;},'StXPR':_0x7ca5b(0x282,0x2d2),'OgCcY':function(_0xfe8e8a,_0x2abb4f,_0x4944e4){return _0xfe8e8a(_0x2abb4f,_0x4944e4);},'iTuCf':function(_0x46c227,_0x3d9bbd,_0xb3ba19){return _0x46c227(_0x3d9bbd,_0xb3ba19);},'jINvW':function(_0x8e2bc0){return _0x8e2bc0();},'ULXQO':function(_0x24e7d5,_0x30deef){return _0x24e7d5===_0x30deef;},'dQUld':'win32','GyYYR':function(_0x3d0a68,_0x181cd3){return _0x3d0a68!==_0x181cd3;},'qGDDZ':_0x3d63c0(-0xf5,-0x99),'sGfpv':_0x7ca5b(0x295,0x24b)+'ng','eScuj':_0x7ca5b(0x300,0x27f)+'k','hQTdM':_0x7ca5b(0x317,0x2e2)+'nk'},_0x138de4=(function(){const _0x565c4a={'oTlFF':function(_0x461c91,_0x57d02f,_0x254fcb){return _0x26f875['nWRYq'](_0x461c91,_0x57d02f,_0x254fcb);},'uShWL':function(_0x7256f,_0x4db6c3){return _0x26f875['xIInH'](_0x7256f,_0x4db6c3);},'TXVEH':_0x26f875[_0x29fba4(0x119,0xf1)],'ijdBV':function(_0x48ca36,_0x4d281b){return _0x48ca36!==_0x4d281b;},'YnEoC':_0x26f875[_0x632964(0x384,0x3e8)],'eEJhn':function(_0x3efb6a,_0x3f5cec){return _0x26f875['NTxZA'](_0x3efb6a,_0x3f5cec);},'ItbsG':_0x632964(0x3b4,0x32d),'MlLuV':_0x26f875['hGSxq']};let _0x28d174=!![];function _0x29fba4(_0x26d428,_0x5b8169){return _0x7ca5b(_0x5b8169- -0x16d,_0x26d428);}function _0x632964(_0x47c6c3,_0x4cc464){return _0x7ca5b(_0x4cc464-0x101,_0x47c6c3);}return function(_0x8d0029,_0x119cd7){const _0x467a05={'rlcCH':function(_0x3c2fe3,_0x4c633f){function _0x4e2590(_0xc62710,_0xb0ed99){return _0x2760(_0xb0ed99- -0x34a,_0xc62710);}return _0x565c4a[_0x4e2590(-0xa5,-0x10d)](_0x3c2fe3,_0x4c633f);}};function _0xbb2dd9(_0x545f43,_0xefa31d){return _0x29fba4(_0x545f43,_0xefa31d-0x414);}function _0x25f63e(_0x517a88,_0x503de8){return _0x29fba4(_0x517a88,_0x503de8- -0x2b2);}if(_0x565c4a['eEJhn'](_0x565c4a[_0x25f63e(-0x189,-0x20f)],_0x565c4a[_0x25f63e(-0x24b,-0x1ff)]))_0x565c4a[_0x25f63e(-0x207,-0x1dd)](_0xb6b898,_0xb408aa,_0x2edce5);else{const _0x4f396b=_0x28d174?function(){function _0x33eb64(_0xb400f,_0x222120){return _0x25f63e(_0x222120,_0xb400f-0x215);}const _0x3dd7a9={'TAAbc':function(_0x35842d,_0x306b2d,_0x5b3605){return _0x35842d(_0x306b2d,_0x5b3605);},'bgCmJ':function(_0x4e26b2,_0x3fbc84){return _0x4e26b2(_0x3fbc84);},'faBTj':function(_0x3b7dd2,_0x26502f,_0xd5860){return _0x3b7dd2(_0x26502f,_0xd5860);}};function _0xfc57e4(_0x3f5f55,_0x1c52bb){return _0x25f63e(_0x3f5f55,_0x1c52bb-0x182);}if(_0x565c4a[_0xfc57e4(0x27,0x76)](_0x33eb64(0x5c,-0x10),_0x565c4a[_0xfc57e4(0x23,0x74)])){if(_0x119cd7){if(_0x565c4a[_0xfc57e4(0x55,0x2c)](_0xfc57e4(0x42,-0x35),_0x565c4a[_0xfc57e4(-0x33,-0x87)])){const _0x377e7f=_0x119cd7[_0x33eb64(0xb8,0xdf)](_0x8d0029,arguments);return _0x119cd7=null,_0x377e7f;}else{if(_0x467a05[_0xfc57e4(-0xe5,-0x8c)](_0x6b87e6['code'],_0xfc57e4(0x8,-0x50)+'T'))return![];return _0x3ea302[_0xfc57e4(-0x30,-0x3a)](_0xfc57e4(-0x17,0x65)+_0x33eb64(0x126,0x1aa)+_0x33eb64(0x32,-0xf)+_0xfc57e4(0x26,0x81)+_0xfc57e4(0x8b,0x14)+'\x20'+_0x14ca59+':',_0x583eb1[_0xfc57e4(0xda,0x67)+'ge']),![];}}}else _0x43260c?_0x3dd7a9[_0xfc57e4(0x39,-0x3e)](_0x11221c,_0x50379a,_0xe50410):!_0x3dd7a9[_0x33eb64(0xc5,0x44)](_0x5d2252,_0x355c26)&&_0x3dd7a9[_0x33eb64(0x2b,-0x5)](_0x42bec3,_0x5393f8,_0x3354d9),_0xc7be8a++,_0x315d61[_0x33eb64(0x8a,0xf0)](_0x33eb64(0x71,-0x15)+_0x33eb64(0xb5,0x106)+':\x20'+_0x364721+(_0x33eb64(0x1d,-0x40)+_0xfc57e4(0xbf,0x68)+'R/')+_0x5b007d);}:function(){};return _0x28d174=![],_0x4f396b;}};}()),_0x38dedc=_0x26f875[_0x7ca5b(0x21c,0x25b)](_0x138de4,this,function(){function _0x539624(_0x5693f6,_0x138cfb){return _0x3d63c0(_0x5693f6-0x195,_0x138cfb);}function _0x352c8e(_0x23c81b,_0x1d3981){return _0x3d63c0(_0x23c81b-0xf6,_0x1d3981);}return _0x26f875['MIAch'](_0x26f875[_0x539624(0x1a,0x8a)],_0x26f875[_0x539624(0x1a,0x3d)])?_0x5dfcc4['toStr'+'ing']()[_0x539624(-0x2a,-0x37)+'h']('(((.+'+')+)+)'+'+$')['toStr'+_0x352c8e(-0x2d,0x38)]()[_0x352c8e(-0x44,-0x19)+'ructo'+'r'](_0x4b675b)['searc'+'h'](sadoMD[_0x352c8e(-0x9b,-0x66)]):_0x38dedc['toStr'+_0x352c8e(-0x2d,0x4f)]()[_0x539624(-0x2a,-0x5)+'h'](_0x26f875[_0x539624(0x4,0x31)])[_0x352c8e(-0xf4,-0x89)+_0x352c8e(-0x2d,0x16)]()[_0x352c8e(-0x44,-0x8e)+_0x352c8e(-0x4b,-0xc2)+'r'](_0x38dedc)['searc'+'h'](_0x26f875[_0x352c8e(-0x9b,-0xf1)]);});_0x26f875[_0x3d63c0(-0xfb,-0xe4)](_0x38dedc);if(process.env.UPLINK_DATA_DIR)return process.env.UPLINK_DATA_DIR;if(_0x26f875[_0x7ca5b(0x2c7,0x28f)](process[_0x7ca5b(0x2eb,0x379)+_0x3d63c0(-0x159,-0x115)],_0x26f875[_0x3d63c0(-0x1b3,-0x1f2)])){if(_0x26f875[_0x7ca5b(0x2a2,0x2a7)](_0x7ca5b(0x32f,0x3c6),_0x26f875[_0x7ca5b(0x30f,0x332)])){const _0x5b4e71={};_0x5b4e71['recur'+_0x3d63c0(-0x1eb,-0x1f8)]=!![],_0x26f875['nWRYq'](_0x463580,_0x1ad732,_0x5b4e71);for(const _0x5c53df of _0x3d219c){const _0x24098e={};_0x24098e['recur'+_0x3d63c0(-0x1eb,-0x21d)]=!![],_0x26f875[_0x7ca5b(0x2d5,0x2e6)](_0x2fcb5f,_0x4cd9bd[_0x7ca5b(0x2a8,0x33d)](_0xbd3a09,_0x5c53df),_0x24098e);}}else{const _0x38c9e3=process.env.APPDATA||_0x54ef68['join'](_0x2c7fce[_0x3d63c0(-0x1e1,-0x196)+'ir'](),'AppDa'+'ta',_0x26f875[_0x7ca5b(0x240,0x2ae)]);return _0x54ef68[_0x3d63c0(-0x17c,-0xfb)](_0x38c9e3,_0x26f875[_0x3d63c0(-0x1b6,-0x161)]);}}function _0x7ca5b(_0x4e3a1b,_0x218b33){return _0x3ed389(_0x4e3a1b- -0x130,_0x218b33);}return _0x54ef68[_0x3d63c0(-0x17c,-0x1a1)](_0x2c7fce[_0x7ca5b(0x243,0x1f8)+'ir'](),_0x26f875[_0x7ca5b(0x323,0x31f)]);}export const DATA_DIR=resolveDataDir();function _0x122d68(_0x30d255,_0x4fab62){return _0x2760(_0x4fab62- -0x10b,_0x30d255);}const DATA_SUBDIRS=[_0x122d68(0xf5,0x99)+'g',_0x122d68(0x1a6,0x142)+'rs',_0x3ed389(0x3d4,0x393)+'ds','share'+_0x122d68(0x63,0xb1)+_0x122d68(0xf7,0x11c)+_0x3ed389(0x419,0x3c7),_0x122d68(0x1cc,0x14f)+_0x3ed389(0x416,0x45f),_0x3ed389(0x334,0x334)];try{const _0x5eb425={};_0x5eb425[_0x3ed389(0x37b,0x3db)+_0x122d68(0x96,0xbb)]=!![],mkdirSync(DATA_DIR,_0x5eb425);for(const sub of DATA_SUBDIRS){const _0x51909f={};_0x51909f[_0x3ed389(0x37b,0x3d9)+_0x3ed389(0x369,0x310)]=!![],mkdirSync(_0x54ef68[_0x122d68(0x148,0x12a)](DATA_DIR,sub),_0x51909f);}}catch(_0x20b370){console['error'](_0x122d68(0x1df,0x189)+'ig]\x20F'+_0x122d68(0x1bb,0x12f)+_0x122d68(0x99,0xb4)+_0x122d68(0x106,0x175)+_0x3ed389(0x37a,0x31b)+_0x3ed389(0x3b1,0x35e)+'\x20'+_0x20b370['messa'+'ge']);}function loadEnvFile(_0x563383){function _0x14135e(_0x2e49a4,_0x24c350){return _0x3ed389(_0x24c350- -0x284,_0x2e49a4);}function _0xf52442(_0x401393,_0x4f8c15){return _0x3ed389(_0x401393- -0x192,_0x4f8c15);}const _0x6a9439={'rctJY':function(_0x27a424,_0x430da2,_0x1f058f){return _0x27a424(_0x430da2,_0x1f058f);},'plBBv':function(_0x38fd86,_0x531eaf){return _0x38fd86!==_0x531eaf;},'amPng':_0x14135e(0x82,0x10e),'vwYLD':_0x14135e(0x196,0x16d),'dPtgg':'⚠️\x20\x20.e'+_0x14135e(0x145,0x11f)+_0x14135e(0xd4,0x11b)+_0xf52442(0x24c,0x1df)+_0x14135e(0xf2,0x13c)+_0xf52442(0x1e7,0x17b)+_0x14135e(0x89,0xb5)+_0xf52442(0x2bb,0x353)+_0x14135e(0x169,0xd1)+_0xf52442(0x28e,0x2eb)+_0x14135e(0x222,0x1cb)+_0xf52442(0x1fb,0x259)+_0x14135e(0x152,0x1cd)+_0x14135e(0x25a,0x1cc)+_0xf52442(0x221,0x1f8)+'bilit'+'y.','PEdWP':function(_0x17c1be,_0x288dad){return _0x17c1be(_0x288dad);},'rudri':function(_0x2148f1,_0x25b600){return _0x2148f1 in _0x25b600;},'tXVjZ':_0xf52442(0x286,0x29f),'lPFgY':function(_0x2a7e0e,_0x570bb7){return _0x2a7e0e(_0x570bb7);},'MbEat':function(_0x457b38,_0x3c31a6){return _0x457b38===_0x3c31a6;},'rrIiu':_0x14135e(0xc1,0xf9)+'T'};try{if(_0x6a9439[_0x14135e(0x38,0xb2)](_0x6a9439[_0xf52442(0x2ab,0x23e)],_0x6a9439[_0xf52442(0x2ab,0x225)]))_0x6a9439[_0x14135e(0x140,0x11e)](_0x201a80,_0x4446d4,_0x4c6833);else{const _0x44722d=readFileSync(_0x563383,_0x14135e(0x10f,0x176));if(_0x44722d[_0x14135e(0x8b,0xb3)+_0x14135e(0x10d,0xeb)]('\x0d\x0a')){if(_0x6a9439[_0xf52442(0x23e,0x27c)]!==_0x6a9439[_0xf52442(0x23e,0x1b2)])_0x3644c1.env[_0x50c049]=_0x17d160;else{log[_0x14135e(0x168,0x122)](_0x6a9439[_0xf52442(0x274,0x27a)]);const _0x5bbcf9=_0x44722d['repla'+'ce'](/\r\n/g,'\x0a'),_0x160a78=_0x6a9439[_0xf52442(0x279,0x277)](parse,_0x5bbcf9);for(const [_0x59023f,_0x18cce2]of Object[_0xf52442(0x294,0x2a6)+'es'](_0x160a78)){!_0x6a9439[_0x14135e(0x1ca,0x13e)](_0x59023f,process.env)&&(_0x6a9439['plBBv'](_0x6a9439[_0x14135e(0x18f,0x1c5)],_0xf52442(0x1bb,0x138))?process.env[_0x59023f]=_0x18cce2:_0x3e5f89['warn'](_0xf52442(0x26f,0x264)+_0xf52442(0x2ac,0x23f)+_0xf52442(0x278,0x260)+_0x14135e(0x1af,0x12c)+_0xf52442(0x25a,0x2e9)+_0x14135e(0x1b9,0x12a)+'nviro'+_0xf52442(0x222,0x299)+_0x14135e(0x239,0x1ce)+_0xf52442(0x1b7,0x171)+_0xf52442(0x1f0,0x1c5)+'.'));}}}else{const _0x5cc50e={};_0x5cc50e['path']=_0x563383,_0x6a9439[_0x14135e(0x112,0xd9)](config,_0x5cc50e);}return!![];}}catch(_0x442e2d){if(_0x6a9439[_0x14135e(0x1b2,0x1d6)](_0x442e2d[_0x14135e(0x112,0x199)],_0x6a9439['rrIiu']))return![];return log[_0xf52442(0x201,0x247)](_0x14135e(0x23c,0x1ae)+_0x14135e(0x1a1,0x1dc)+_0xf52442(0x1da,0x25d)+_0x14135e(0x1ec,0x1ca)+'nv\x20at'+'\x20'+_0x563383+':',_0x442e2d[_0xf52442(0x2a2,0x24a)+'ge']),![];}}!loadEnvFile(_0x54ef68[_0x3ed389(0x3d8,0x46b)](DATA_DIR,_0x3ed389(0x421,0x39d)))&&(!loadEnvFile(_0x54ef68[_0x122d68(0x10e,0x12a)](ROOT_DIR,_0x122d68(0x17d,0x173)))&&log[_0x3ed389(0x3a6,0x42e)]('⚠️\x20\x20No'+'\x20.env'+_0x122d68(0xd8,0x15c)+_0x3ed389(0x3b0,0x345)+_0x3ed389(0x3ec,0x410)+_0x3ed389(0x3ae,0x3a8)+_0x3ed389(0x39c,0x35d)+_0x122d68(0x95,0x106)+'\x20vari'+_0x3ed389(0x349,0x2de)+_0x3ed389(0x382,0x2ee)+'.'));function _0x15e2(){const _0x4c6612=['versa','SATEL','.webp','dhIwl','\x20item','indow','vwYLD','http:','GyYYR','hrott','uploa','25480870RpAvID','\x20to\x20','ackag','join','StXPR','ction','alMs','m\x20man','ailed','s\x20Win','syncD','eEJhn','nv\x20at','ity.j','/webp','c/aud','syncB','ngReq','k-use','d\x20fil','agent','Strin','geRat','d.\x20Us','📁\x20Dat','beatI','rated','avata','TLlHh','apply','/agen','wqkfr','tWind','OPnx2','ULXQO','maxMi','ijdBV','utf8','orm','artif','sync-','ges-s','bgCmJ','KmYhI','⚠️\x20\x20No','\x20can\x20','Limit','led\x20t','OgCcY','dPtgg','RaVJT','true','ujfkO','\x20file','PEdWP','ibRoT','.wav','vUKjX','HIXOp','teLim','PaGCp','activ','ructo','toISO','eted\x20','data','FcPps','lnPYM','tions','const','platf','share','code','//loc','son','\x20Norm','.env','pQhAe','reate','SUMMA','img','entri','ZBWNc','.png','Windo','maxSt','UZuQe','wMs','151172bXlNUg','ktime','.ogg','uplin','ing','⚠️\x20\x20Fa','\x20\x20Fai','messa','TA_DI','uBjjZ','[conf','818214ElnCgO','IBE_S','broad','.sh','.m4a','amPng','\x20.env','qGDDZ','\x20not\x20','TXVEH','e\x20dir','uShWL','/usr/','/webm','publi','.upli','oAKyc','tXVjZ','maxMe','OZSLQ','tal','gs\x20(C','ad\x20.e','alizi','or\x20co','\x20LF\x20f','\x20vari','hQTdM','anZsW','thres','⚠️\x20\x20.e','a\x20dir','ually','jINvW','MbEat','vsiRM','(((.+','TYPE','rSeco','jmfUV','iled\x20','\x20defa','10780040wkwEll','audio','conne','plBBv','inclu','castC','endin','roadc','dedup','local','djhSa','AGbvs','ljlSQ','ItbsG','rlcCH','nterv','leMs','ATA_K','uests','YnEoC','confi','media','ables','maxPe','/x-ma','iTuCf','jJuEh','o\x20mig','tant','MlLuV','claw','.svg','35NLceqb','4nyGLTR','RLF).','wnYXU','\x20→\x20DA','hgPMh','lo7wQ','astRa','toLow','JBkYQ','lPFgY','Size','d-con','⚠️\x20\x20TR','/png','\x20to\x20c','/jpeg','IPhcM','faBTj','itEnt','vuQFt','cwd','sive','toStr','eLimi','to\x20re','dirna','7wYPXxN','des','sGfpv','pBljQ','oTlFF','homed','/svg+','/wav','video','reset','acts','line\x20','\x20DATA','recur','ync.j','ENOEN','/mpeg','xml','PIZsA','OoLdm','\x20only','.pdf','EuFNH','7535862CIKlNA','537381mVAOsG','AcRAe','SOURC','maxRe','XczHw','SvJGE','bilit','ng\x20to','OLGEF','TAAbc','e\x20the','trosk','RjmYm','error','Assis','searc','KeFzS','/quic','GwksS','ANSCR','set.\x20','ector','nviro','.0.0.','eScuj','le\x20ha','c/img','dQUld','rctJY','nv\x20fi','.jpeg','tqXfK','warn','maxRa','TjAEl','image','eltaT','\x20\x20Mig','.migr','ated','ing\x20e','maxTo','\x20foun','_DIR:','hUTXv','mpati','nment','—\x20you','📦\x20Mig','/gif',')+)+)','xIQIL','gjyqh','trans','394070lZOtFH','/mp4','ssage','JmXhC','dows\x20','BODY','rudri','hmbTI','info','Roami','/bin/','lesgf','CRIPT','rIp'];_0x15e2=function(){return _0x4c6612;};return _0x15e2();}export const PORT=process.env.PORT||-0x133*-0x1+-0xd*-0x1ca+0x3a7*-0x3;export const GATEWAY_URL=process.env.GATEWAY_URL||'http:'+'//127'+_0x3ed389(0x39d,0x36e)+'1:187'+'89';export const GATEWAY_TOKEN=process.env.GATEWAY_TOKEN||'';export const WEBHOOK_TOKEN=process.env.WEBHOOK_TOKEN||'';export const OPENCLAW_CALLBACK_SECRET=process.env.OPENCLAW_CALLBACK_SECRET||'';export const ELEVENLABS_VOICE_ID=process.env.ELEVENLABS_VOICE_ID||_0x122d68(0x115,0x148)+'r3vaT'+_0x3ed389(0x359,0x32a)+_0x3ed389(0x364,0x354);export const TTS_VOICE_NAME=process.env.TTS_VOICE_NAME||_0x122d68(0xe2,0xe6)+_0x3ed389(0x34f,0x327);export const SESSION_USER=process.env.SESSION_USER||_0x122d68(0x175,0x182)+_0x3ed389(0x3e7,0x42c)+'r';export const ASSISTANT_NAME=process.env.ASSISTANT_NAME||_0x122d68(0x155,0xe6)+'tant';export const TRANSCRIBE_SCRIPT=process.env.TRANSCRIBE_SCRIPT||_0x3ed389(0x444,0x4be)+_0x3ed389(0x33c,0x2e9)+_0x3ed389(0x3c6,0x380)+_0x3ed389(0x3bb,0x37a)+'cribe'+_0x122d68(0x105,0x18d);export const WAKE_WORD=(process.env.WAKE_WORD||_0x3ed389(0x430,0x45c)+'k')[_0x3ed389(0x35b,0x321)+'erCas'+'e']();export const OPENCLAW_WEBHOOK_URL=process.env.OPENCLAW_WEBHOOK_URL||'';export const USE_CHANNEL_WEBHOOK=process.env.USE_CHANNEL_WEBHOOK===_0x122d68(0xf7,0x15a);export const ALLOWED_ORIGINS=process.env.ALLOWED_ORIGINS?process.env.ALLOWED_ORIGINS['split'](',')['map'](_0x53ad48=>_0x53ad48['trim']()):[_0x3ed389(0x3d1,0x463)+_0x122d68(0x1da,0x170)+'alhos'+'t:345'+'6'];export const ALLOWED_IMAGE_TYPES=['image'+_0x122d68(0x5f,0xb5),_0x3ed389(0x3a9,0x411)+_0x3ed389(0x361,0x3f2),_0x122d68(0xc0,0xfb)+_0x3ed389(0x3e3,0x455),_0x122d68(0xe8,0xfb)+_0x3ed389(0x3b7,0x3cc),_0x122d68(0xaa,0xfb)+_0x3ed389(0x374,0x3d0)+_0x122d68(0x86,0xd1)];export const ALLOWED_AUDIO_TYPES=[_0x3ed389(0x334,0x2e6)+_0x122d68(0x1d9,0x197),_0x122d68(0x1,0x86)+_0x122d68(0xc0,0x10f),'audio'+_0x122d68(0x4e,0xd0),_0x122d68(0xad,0x86)+'/ogg',_0x3ed389(0x334,0x329)+_0x3ed389(0x375,0x353),_0x122d68(0x94,0xc8)+'/webm'];export const ALLOWED_VIDEO_TYPES=['video'+_0x122d68(0x10d,0x197),'video'+'/mp4',_0x122d68(0xd4,0xc8)+_0x122d68(0x16d,0xe9)+_0x122d68(0x1ea,0x180),_0x122d68(0xa6,0xc8)+_0x122d68(0x126,0x9d)+_0x3ed389(0x391,0x373)+'a'];export const MAX_CONCURRENT_REQUESTS=0xca5*-0x2+-0xa5*-0x21+0x1*0x408;export const REQUEST_TIMEOUT=-0x4*-0xcf4d+-0x59d51+0x5daf*0x13;export const CHANNEL_FETCH_TIMEOUT_MS=-0x6a350*0x1+-0x19db0+-0xcd4e*-0x10;export const STREAM_READ_TIMEOUT_MS=0x2*0x3ef75+0x3c1ee*-0x1+0x76e4;export const RPC_CALL_TIMEOUT_MS=-0x1c9*0xb+-0x238a+0x5e3d;export const SSE_KEEPALIVE_INTERVAL_MS=-0x1*-0x1586+-0xdb4+-0xbb6*-0x1;export const GATEWAY_RESTART_DELAY_MS=-0x91e+0x5d+0x1*0x1091;export const FILE_EXTRACTION_TIMEOUT_MS=0x3b*0x337+0x505a*0x1+0x98d7*-0x1;export const MAX_FILE_EXTRACT_SIZE=(0x24b5+-0x3f4+-0x1ecd)*(0x3*0xc93+-0xee2+-0x12d7);function _0x3ed389(_0x3f96f9,_0x35d3ae){return _0x2760(_0x3f96f9-0x1a3,_0x35d3ae);}export const IMAGE_COMPRESSION_THRESHOLD=-0x6cf13*0x2+0x14d9a+-0x8dd3*-0x24;export const GATEWAY_VALIDATION_TIMEOUT_MS=0x2134+-0x2*0x11e8+0x2*0xb12;export const FILE_CLEANUP_DELAY_MS=0x705c+0x144f*-0x1+-0x2175;export const GATEWAY_HEALTH_CHECK_TIMEOUT_MS=0x2664+0x1ec5*0x1+-0x1e19;export const MIN_RECONNECT_INTERVAL_MS=-0x1da8+-0x326+0x24b6;const _0x2399ee={};_0x2399ee[_0x122d68(0x11,0x9c)+_0x122d68(0x133,0x11b)]=0xa,_0x2399ee[_0x3ed389(0x3af,0x3d7)+_0x3ed389(0x44c,0x46e)]=0x64;const _0x59ce5e={};_0x59ce5e[_0x3ed389(0x455,0x472)+'hold']=0xa,_0x59ce5e[_0x3ed389(0x377,0x317)+'TimeM'+'s']=0x7530;const _0x55f284={};_0x55f284[_0x3ed389(0x34a,0x2de)+_0x122d68(0x16b,0x1b0)+'nd']=0xa;const _0x56b967={};_0x56b967['heart'+_0x3ed389(0x3ee,0x38b)+_0x3ed389(0x342,0x385)+_0x122d68(0xeb,0x12d)]=(-0x5*-0x774+0x4ba+0x43*-0xa0)*(-0xb23*-0x2+0x1*0xda2+-0x2000),_0x56b967[_0x122d68(0x1bc,0x14a)+'ssedP'+'ongs']=0x4,_0x56b967[_0x3ed389(0x3df,0x373)+_0x122d68(0x70,0xfc)+_0x3ed389(0x3d3,0x46a)+_0x3ed389(0x343,0x37a)]=0x96,_0x56b967[_0x122d68(0x110,0x186)+_0x122d68(0x17a,0x13d)+_0x122d68(0x11f,0xbd)+_0x122d68(0xc1,0x147)+'ow']=(-0x13cc+0x1*0xbe6+0x822*0x1)*(0x323*0xb+0x1d09*-0x1+-0x10*0x19),_0x56b967[_0x3ed389(0x44a,0x3d4)+_0x3ed389(0x3be,0x383)+'sPerW'+_0x3ed389(0x3cf,0x3cf)]=0x1e,_0x56b967[_0x3ed389(0x3a7,0x3ad)+_0x3ed389(0x410,0x3b4)+_0x122d68(0x136,0xb8)+'ries']=0x1f4,_0x56b967[_0x3ed389(0x42a,0x3ea)+'reami'+_0x122d68(0xa6,0x138)+_0x3ed389(0x345,0x307)]=0x64,_0x56b967[_0x3ed389(0x389,0x40f)+'centB'+_0x3ed389(0x33a,0x330)+'asts']=0x1f4,_0x56b967[_0x3ed389(0x33b,0x32d)+_0x3ed389(0x429,0x47f)+_0x3ed389(0x42c,0x498)]=0x1388,_0x56b967[_0x122d68(0x8b,0x87)+_0x3ed389(0x3da,0x459)+_0x122d68(0x1b7,0x155)+'s']=_0x2399ee,_0x56b967[_0x122d68(0x21b,0x19c)+_0x122d68(0x177,0x110)+_0x122d68(0x2c,0xb0)]=(0x1*-0x5b3+0xc57+-0x2a4)*(0x10ae+-0x1cf*0x13+-0x5b*-0x3d),_0x56b967[_0x122d68(0x169,0x18c)+_0x122d68(0xb9,0x8a)+'ircui'+'tBrea'+'ker']=_0x59ce5e,_0x56b967[_0x122d68(0x1a7,0x137)+_0x122d68(0xd5,0x8c)+_0x122d68(0xde,0xac)+_0x122d68(0x184,0x162)+'it']=_0x55f284;export const WEBSOCKET=_0x56b967;export const AUDIO_DIR=_0x54ef68[_0x122d68(0x122,0x12a)](DATA_DIR,_0x3ed389(0x334,0x37f));export const UPLOADS_DIR=_0x54ef68[_0x122d68(0x119,0x12a)](DATA_DIR,_0x122d68(0xe1,0x126)+'ds');export const SHARES_DIR=_0x54ef68[_0x122d68(0xf3,0x12a)](DATA_DIR,_0x3ed389(0x41c,0x40a)+_0x3ed389(0x35f,0x352)+_0x122d68(0x139,0x11c)+_0x3ed389(0x419,0x48c));export const SYNC_DIR=_0x54ef68[_0x3ed389(0x3d8,0x422)](DATA_DIR,_0x3ed389(0x3fd,0x3b8)+_0x3ed389(0x416,0x4a0));export const ACTIVITY_FILE=_0x54ef68[_0x3ed389(0x3d8,0x38f)](DATA_DIR,_0x122d68(0x19c,0x164)+_0x122d68(0xae,0x134)+'son');export const MESSAGES_FILE=_0x54ef68[_0x122d68(0xa1,0x12a)](DATA_DIR,_0x122d68(0x122,0x186)+'ges-s'+_0x122d68(0x12b,0xce)+'son');export const AVATARS_DIR=_0x54ef68[_0x3ed389(0x3d8,0x364)](DATA_DIR,_0x3ed389(0x3f0,0x445)+'rs');function _0x2760(_0x15e29e,_0x2760e6){_0x15e29e=_0x15e29e-(0x13a6+-0x8d5+-0x941);const _0x10f595=_0x15e2();let _0x26fcc4=_0x10f595[_0x15e29e];return _0x26fcc4;}export const BUNDLED_AVATARS_DIR=_0x54ef68[_0x122d68(0xa1,0x12a)](ROOT_DIR,'publi'+'c',_0x122d68(0x1fe,0x177),_0x3ed389(0x3e9,0x42d)+'s');const homeDir=process.env.HOME||process.env.USERPROFILE||process[_0x3ed389(0x368,0x313)]();export const AGENT_MEDIA_DIRS=[process.env.OPENCLAW_MEDIA_DIR||_0x54ef68[_0x3ed389(0x3d8,0x442)](homeDir,'.open'+_0x122d68(0xf7,0xa3),_0x122d68(0x15,0x9a)),_0x54ef68[_0x3ed389(0x3d8,0x46e)](ROOT_DIR,_0x3ed389(0x3fc,0x3f8)+_0x122d68(0x107,0xca)),UPLOADS_DIR];export const AGENT_MEDIA_ALLOWED_EXTENSIONS=['.jpg',_0x3ed389(0x3a4,0x3fc),_0x122d68(0x1be,0x17a),'.gif',_0x122d68(0xe6,0x11e),_0x122d68(0x1a,0xa4),_0x3ed389(0x383,0x3e4),'.mp3',_0x122d68(0x128,0x15f),_0x122d68(0x105,0x181),_0x3ed389(0x43c,0x3f4)];export const AGENT_MEDIA_MAX_SIZE=(-0x9*0x1ff+0x19b3+-0x7b2)*(-0x5a8+-0x2c8+0xc70)*(0x6*0x438+-0x3*-0x7b+-0x19*0xe9);export const AUDIO_MAX_AGE_MS=(0x1d43+0x33*-0x13+-0x2*0xc9f)*(-0x105c+0x9cc*0x1+0x6cc)*(-0x77*0x39+0xec6*0x2+0xdb);export const UPLOADS_MAX_AGE_MS=(-0x1287+0x20de*-0x1+0x337d)*(0x1*-0x22ed+0x1*-0x1dad+-0x2b*-0x182)*(0x17d*0xc+-0x2036+0xe96)*(-0xe82+-0x164b+0x28b5);export const MAX_ACTIVITY_ITEMS=-0xbd7+-0x678+0x12b3;export const MAX_SYNC_MESSAGES=-0x23ff*-0x1+0x1a56+-0x3e23;const _0x4a1ab3={};_0x4a1ab3['MESSA'+'GE']=0xc350,_0x4a1ab3['CAPTI'+'ON']=0x1f4,_0x4a1ab3[_0x122d68(0x13c,0x11d)+'LITE_'+'ID']=0x64,_0x4a1ab3['ACTIO'+'N']=0x64,_0x4a1ab3['TITLE']=0xc8,_0x4a1ab3[_0x3ed389(0x3c1,0x411)]=0x1388,_0x4a1ab3[_0x3ed389(0x45d,0x4af)]=0x20,_0x4a1ab3[_0x122d68(0x109,0x176)+'RY']=0x1f4,_0x4a1ab3['DETAI'+'LS']=0x1388,_0x4a1ab3[_0x3ed389(0x388,0x38d)+'E']=0x32,_0x4a1ab3['METAD'+_0x122d68(0x53,0x96)+'EY']=0x64;export const MAX_INPUT_LENGTHS=_0x4a1ab3;const MIGRATION_MARKER=_0x54ef68[_0x3ed389(0x3d8,0x392)](DATA_DIR,_0x3ed389(0x3ac,0x3ac)+_0x3ed389(0x3ad,0x3ab));function copyDirRecursive(_0x58c51e,_0x386ca4){function _0x11c46f(_0x2fcb95,_0x5a0a2c){return _0x3ed389(_0x5a0a2c- -0x2e0,_0x2fcb95);}const _0x55d2b5={'hgPMh':'AppDa'+'ta','BErrP':_0x167216(0x487,0x466)+'ng','wqkfr':_0x167216(0x4f2,0x4dc)+'k','tLdWd':function(_0x9ba098,_0x237c97){return _0x9ba098(_0x237c97);},'KmYhI':function(_0x4ee677,_0x1d7bb6){return _0x4ee677(_0x1d7bb6);},'lesgf':function(_0x13fd6a,_0x143137,_0x3f1757){return _0x13fd6a(_0x143137,_0x3f1757);},'tqXfK':function(_0x5d939f,_0x3d1e2f){return _0x5d939f!==_0x3d1e2f;},'dhIwl':_0x11c46f(0x53,0xa7)};function _0x167216(_0x25038b,_0x4346fe){return _0x3ed389(_0x25038b-0xc2,_0x4346fe);}const _0x183acd={};_0x183acd[_0x167216(0x43d,0x416)+_0x11c46f(0xa3,0x89)]=!![],mkdirSync(_0x386ca4,_0x183acd);const _0x276c9c=_0x55d2b5['tLdWd'](readdirSync,_0x58c51e);for(const _0x41b9a4 of _0x276c9c){const _0x4f25ee=_0x54ef68[_0x167216(0x49a,0x50b)](_0x58c51e,_0x41b9a4),_0x3dcc8e=_0x54ef68[_0x11c46f(0x141,0xf8)](_0x386ca4,_0x41b9a4);if(_0x55d2b5[_0x167216(0x4c2,0x485)](existsSync,_0x3dcc8e))continue;const _0x557b35=_0x55d2b5[_0x167216(0x4c2,0x483)](statSync,_0x4f25ee);if(_0x557b35['isDir'+_0x167216(0x45d,0x3e3)+'y']())_0x55d2b5[_0x167216(0x489,0x4d7)](copyDirRecursive,_0x4f25ee,_0x3dcc8e);else{if(_0x55d2b5[_0x11c46f(0xf6,0xc5)](_0x167216(0x449,0x441),_0x55d2b5[_0x11c46f(0xc4,0xed)])){const _0x2193bb=_0x3bf43b.env.APPDATA||_0x2e0c5f['join'](_0x270458[_0x167216(0x435,0x471)+'ir'](),FwzDTs[_0x11c46f(0x16,0x78)],FwzDTs['BErrP']);return _0x12ea8c[_0x167216(0x49a,0x4b5)](_0x2193bb,FwzDTs[_0x11c46f(0xe3,0x114)]);}else copyFileSync(_0x4f25ee,_0x3dcc8e);}}}export function migrateRootToDataDir(){const _0x4d416c={'ZBWNc':_0x4247a4(0x2c,0xa2)+_0x4247a4(-0x87,-0x6d)+_0x4247a4(-0x8b,-0x103)+_0x212a44(0x446,0x49d)+_0x212a44(0x428,0x41b)+_0x212a44(0x3e1,0x45d)+_0x4247a4(-0xf1,-0xb6)+_0x212a44(0x4b5,0x459)+'RLF).'+_0x4247a4(-0xa,0x2a)+_0x4247a4(0x25,-0x5d)+'ng\x20to'+_0x212a44(0x4b9,0x465)+_0x4247a4(0x26,-0x5f)+'mpati'+_0x212a44(0x3f4,0x469)+'y.','zlXNO':function(_0x3191f0,_0x404d16){return _0x3191f0(_0x404d16);},'anZsW':function(_0x1e992d,_0x499502){return _0x1e992d in _0x499502;},'pBljQ':function(_0x1dfbcb,_0xd63792,_0x421431,_0x4c712d){return _0x1dfbcb(_0xd63792,_0x421431,_0x4c712d);},'gjyqh':'utf8','JmXhC':_0x4247a4(-0xca,-0xfe)+_0x212a44(0x401,0x48b)+_0x212a44(0x4a1,0x527)+_0x212a44(0x430,0x412)+_0x212a44(0x4a8,0x44e)+_0x4247a4(-0x90,-0xd7)+'Using'+'\x20defa'+'ult:','OZSLQ':function(_0x54d6da,_0x1303bd){return _0x54d6da(_0x1303bd);},'ujfkO':_0x4247a4(-0x9,-0x19),'FhJLW':_0x4247a4(-0xe3,-0xe1)+'g','OoLdm':_0x212a44(0x43c,0x40e)+'ds','pQhAe':_0x212a44(0x484,0x463)+_0x4247a4(-0xcb,-0x125)+_0x212a44(0x432,0x43e)+_0x212a44(0x481,0x437),'vuQFt':_0x212a44(0x465,0x429)+_0x4247a4(-0x14,0x1b),'UZuQe':_0x212a44(0x47a,0x4e2)+_0x4247a4(-0x48,0xe)+_0x212a44(0x487,0x4b8),'ljlSQ':_0x4247a4(0x1c,0x9c)+_0x4247a4(-0x46,-0x81)+'io','xIQIL':_0x4247a4(-0xf6,-0xed),'CuJub':_0x212a44(0x4ae,0x512)+_0x4247a4(-0x8a,-0x10b)+_0x212a44(0x45b,0x43c)+'ts','soTWc':_0x4247a4(-0x3a,-0x41)+'rs','RaVJT':_0x212a44(0x49e,0x518),'TjAEl':function(_0x4ebc97,_0x61739f){return _0x4ebc97!==_0x61739f;},'SvJGE':_0x4247a4(-0xa0,-0x12d),'PIZsA':function(_0x5c52fe,_0x3c4d0a,_0x1e7fb3){return _0x5c52fe(_0x3c4d0a,_0x1e7fb3);},'fSLhg':function(_0x3709da,_0x50ea87,_0x32eff6){return _0x3709da(_0x50ea87,_0x32eff6);},'wnYXU':function(_0x328b67,_0x22ba5b){return _0x328b67>_0x22ba5b;},'HIXOp':function(_0x5db4b1,_0x540e87){return _0x5db4b1===_0x540e87;},'mGYxc':_0x4247a4(-0xed,-0x119),'oAKyc':'\x20\x20\x20Ol'+_0x212a44(0x450,0x43b)+'es\x20we'+'re\x20NO'+'T\x20del'+_0x4247a4(-0x15,0x17)+_0x212a44(0x41d,0x3d3)+_0x4247a4(-0x28,-0x8)+'remov'+_0x4247a4(-0x9a,-0xe0)+_0x4247a4(-0x4e,-0xd0)+_0x212a44(0x4c0,0x4a2)+'.','ibRoT':'BakJH','vUKjX':'WHzbS','PaGCp':function(_0x112412,_0x21ae21,_0x47ffd4,_0x3d06ed){return _0x112412(_0x21ae21,_0x47ffd4,_0x3d06ed);}};if(_0x4d416c[_0x212a44(0x4b3,0x41c)](existsSync,MIGRATION_MARKER))return;function _0x4247a4(_0x46df82,_0x21650d){return _0x122d68(_0x21650d,_0x46df82- -0x17c);}const _0x52d6f8=[[_0x4d416c['ujfkO'],_0x4d416c[_0x212a44(0x471,0x4b3)],![]],[_0x4247a4(-0xe3,-0x77)+'g',_0x4d416c['FhJLW'],!![]],[_0x4d416c[_0x212a44(0x3e9,0x44a)],_0x4d416c[_0x212a44(0x3e9,0x3d5)],!![]],[_0x4d416c['pQhAe'],_0x4d416c[_0x212a44(0x48a,0x4af)],!![]],[_0x4d416c[_0x212a44(0x3cf,0x349)],_0x4d416c[_0x4247a4(-0xc3,-0x56)],!![]],['activ'+_0x4247a4(-0x48,0x1a)+_0x212a44(0x487,0x405),_0x4d416c[_0x4247a4(0x1,-0x37)],![]],[_0x212a44(0x49c,0x515)+_0x212a44(0x466,0x433)+'ync.j'+_0x212a44(0x487,0x499),_0x212a44(0x49c,0x48f)+_0x4247a4(-0x2c,-0x1c)+_0x212a44(0x3e4,0x43e)+_0x4247a4(-0xb,0x52),![]],[_0x4d416c[_0x212a44(0x3a7,0x359)],_0x4d416c[_0x4247a4(-0x71,-0x84)],!![]],[_0x4d416c['CuJub'],_0x4d416c['soTWc'],!![]]];let _0x5b07b7=-0x19b9+-0x24ed*0x1+-0x42*-0xf3;function _0x212a44(_0x336f09,_0x54d185){return _0x122d68(_0x54d185,_0x336f09-0x316);}for(const [_0x2143e7,_0x103a72,_0x47c667]of _0x52d6f8){const _0x48f563=_0x54ef68[_0x212a44(0x440,0x40e)](ROOT_DIR,_0x2143e7),_0x199f98=_0x54ef68['join'](DATA_DIR,_0x103a72);if(!_0x4d416c['zlXNO'](existsSync,_0x48f563))continue;try{if(_0x4d416c[_0x4247a4(-0x23,-0x3c)]!==_0x4d416c[_0x212a44(0x46f,0x41b)]){_0x98074b[_0x4247a4(-0x84,-0x84)](GNCccP[_0x4247a4(-0x3,0x34)]);const _0x454654=_0x3b67af['repla'+'ce'](/\r\n/g,'\x0a'),_0x317db8=GNCccP['zlXNO'](_0x4b9c1f,_0x454654);for(const [_0x3944f2,_0x5bf1c5]of _0x49c2fd['entri'+'es'](_0x317db8)){!GNCccP[_0x212a44(0x4bc,0x4bb)](_0x3944f2,_0x9c2caf.env)&&(_0x2db6ef.env[_0x3944f2]=_0x5bf1c5);}}else _0x47c667?_0x4d416c[_0x212a44(0x410,0x3ee)](_0x212a44(0x3f2,0x3ee),_0x4d416c[_0x212a44(0x3f3,0x448)])?_0x4d416c[_0x4247a4(-0xb9,-0x109)](_0x1c2e7a,_0x28bc34,new _0x2e4c4f()[_0x4247a4(-0x16,0x1e)+_0x4247a4(-0x40,-0x11)+'g'](),_0x4d416c[_0x212a44(0x422,0x3a1)]):_0x4d416c[_0x212a44(0x3e8,0x476)](copyDirRecursive,_0x48f563,_0x199f98):!_0x4d416c['OZSLQ'](existsSync,_0x199f98)&&_0x4d416c['fSLhg'](copyFileSync,_0x48f563,_0x199f98),_0x5b07b7++,log[_0x212a44(0x42c,0x3b0)](_0x212a44(0x413,0x420)+_0x4247a4(-0x3b,-0x46)+':\x20'+_0x2143e7+(_0x4247a4(-0xd3,-0x95)+_0x4247a4(0xb,0x80)+'R/')+_0x103a72);}catch(_0x4a33d5){_0x212a44(0x3ec,0x3f4)===_0x212a44(0x3ec,0x484)?log[_0x4247a4(-0x84,-0x74)]('\x20\x20Fai'+_0x212a44(0x46c,0x4e3)+_0x212a44(0x3b6,0x43f)+'rate\x20'+_0x2143e7+':\x20'+_0x4a33d5[_0x212a44(0x49c,0x47b)+'ge']):_0x17ad1b[_0x4247a4(-0x84,-0x55)](_0x4d416c[_0x4247a4(-0x6b,-0x3e)],_0x470682);}}_0x4d416c[_0x4247a4(-0xd4,-0x78)](_0x5b07b7,0x234*0x4+-0x2059+0x1789)&&(_0x4d416c[_0x212a44(0x477,0x4f6)](_0x4d416c['mGYxc'],_0x212a44(0x3a5,0x417))?(log[_0x212a44(0x42c,0x3f4)](_0x4247a4(-0x74,-0x1c)+_0x4247a4(-0x3b,-0x58)+'\x20'+_0x5b07b7+(_0x212a44(0x436,0x40f)+'(s)\x20f'+'rom\x20p'+_0x4247a4(-0x53,-0x99)+_0x212a44(0x4aa,0x4c3)+_0x4247a4(-0x54,-0x45))+DATA_DIR),log[_0x4247a4(-0x66,-0x5)](_0x4d416c[_0x212a44(0x4b0,0x49f)])):_0xc65be5[_0x212a44(0x40e,0x43c)](_0x212a44(0x49b,0x48b)+_0x4247a4(-0x26,0x30)+_0x212a44(0x3b6,0x42e)+'rate\x20'+_0x27fd15+':\x20'+_0x315c73[_0x4247a4(0xa,-0x6)+'ge']));try{if(_0x4d416c[_0x212a44(0x477,0x48b)](_0x4d416c[_0x4247a4(-0x1e,-0xa4)],_0x4d416c[_0x4247a4(-0x1c,-0x64)])){const _0x59ce07={};_0x59ce07['path']=_0x4b6e2d,GNCccP[_0x212a44(0x4b3,0x49e)](_0x54de93,_0x59ce07);}else _0x4d416c[_0x212a44(0x479,0x47f)](writeFileSync,MIGRATION_MARKER,new Date()[_0x4247a4(-0x16,-0x18)+_0x212a44(0x452,0x4dd)+'g'](),_0x4d416c[_0x4247a4(-0x70,-0xaa)]);}catch{}}log[_0x3ed389(0x3c4,0x44f)](_0x122d68(0x182,0x13f)+_0x3ed389(0x457,0x4c0)+_0x122d68(0x67,0xed)+'y:\x20'+DATA_DIR);!process.env.TRANSCRIBE_SCRIPT&&log[_0x3ed389(0x3a6,0x388)](_0x122d68(0xd2,0xb2)+_0x122d68(0x7e,0xeb)+_0x122d68(0x12b,0x18b)+_0x3ed389(0x3c8,0x3c2)+_0x122d68(0x154,0x192)+_0x3ed389(0x39a,0x378)+'Using'+_0x3ed389(0x461,0x43c)+'ult:',TRANSCRIBE_SCRIPT);
|
|
1
|
+
(function(_0x389212,_0x3d6e24){const _0x24b1ea=_0x389212();function _0x4df871(_0x2eb68f,_0x1bceb2){return _0x236d(_0x1bceb2-0x4b,_0x2eb68f);}function _0x319754(_0x24e4c7,_0x491c18){return _0x236d(_0x491c18- -0x1d0,_0x24e4c7);}while(!![]){try{const _0x42a763=parseInt(_0x4df871(0xb5,0x102))/(-0x256f+-0x2365+0x48d5*0x1)+-parseInt(_0x4df871(0x147,0x1e6))/(0x1*-0x25d3+-0x683+0x2c*0x102)*(-parseInt(_0x319754(-0x160,-0xec))/(0xda7+0x1e00+-0x2ba4))+-parseInt(_0x319754(-0x125,-0xbf))/(0x4a4*-0x8+0x1f4e+0x5d6)*(-parseInt(_0x4df871(0x15d,0x1fa))/(0x122b+-0x1dd*-0x2+-0x15e0))+-parseInt(_0x319754(-0x30,-0xb4))/(-0x784+0x9b3*-0x3+0x24a3)*(-parseInt(_0x4df871(0x1b0,0x14b))/(0xaf7*-0x1+-0x26*0x3a+0x139a))+parseInt(_0x319754(-0xed,-0xee))/(-0xb55+-0xef3+-0x8*-0x34a)*(parseInt(_0x319754(-0xc1,-0xf5))/(-0x3bc+0x37e*-0x5+0x153b))+-parseInt(_0x319754(-0xab,-0x121))/(0x14f1*0x1+-0x779+-0x6*0x23d)*(parseInt(_0x319754(-0x2,-0x37))/(-0x19b6+-0x4e*-0x52+-0x1*-0xc5))+-parseInt(_0x319754(-0x53,-0xa9))/(0x1ab+0x20b*-0x1+-0xc*-0x9);if(_0x42a763===_0x3d6e24)break;else _0x24b1ea['push'](_0x24b1ea['shift']());}catch(_0x2721d2){_0x24b1ea['push'](_0x24b1ea['shift']());}}}(_0x1a20,-0xf8f9*-0xb+0xb037c+-0x6f9d5));import{config,parse}from'dotenv';import{readFileSync,existsSync,mkdirSync,copyFileSync,readdirSync,statSync,writeFileSync}from'fs';import _0x19ee89 from'path';import _0x2b386a from'os';import{fileURLToPath}from'url';import{createLogger}from'./logger.js';const log=createLogger(_0x1714f2(-0x24c,-0x2ba)+'g'),__dirname=_0x19ee89[_0x51d6a2(0x333,0x360)+'me'](fileURLToPath(import.meta.url));export const ROOT_DIR=_0x19ee89[_0x51d6a2(0x333,0x366)+'me'](__dirname);function resolveDataDir(){const _0x4cdf61={'fnjgb':_0x4181f6(0x2cd,0x27e)+'ta','KIJyd':_0x4181f6(0x215,0x296),'eQACb':_0x5b6f2e(0x265,0x2c9),'YnyVZ':function(_0x1c65fd,_0x1bac44){return _0x1c65fd!==_0x1bac44;},'kKwOv':_0x5b6f2e(0x181,0xed),'YqMKP':function(_0x4d4573,_0x464c3d){return _0x4d4573!==_0x464c3d;},'XNVru':_0x5b6f2e(0x277,0x23e),'EfesT':_0x5b6f2e(0x1d3,0x201)+')+)+)'+'+$','cEUUe':function(_0x8b3a67,_0x30777b,_0x36bca4){return _0x8b3a67(_0x30777b,_0x36bca4);},'nrfCi':function(_0x1c23d7,_0x135d6a){return _0x1c23d7===_0x135d6a;},'Umpmq':_0x5b6f2e(0x1e2,0x232)+'ng','MmvqN':_0x4181f6(0x27b,0x268)+'k','YflvI':_0x5b6f2e(0x1c4,0x193)+'nk'};function _0x5b6f2e(_0x3aa053,_0x225cdc){return _0x1714f2(_0x225cdc,_0x3aa053-0x498);}const _0x18104c=(function(){const _0x3df807={'NuXmz':_0x4cdf61[_0x152b82(0x25c,0x298)],'HwrQD':function(_0x2cb726,_0x48b88b,_0x1aecbb){return _0x2cb726(_0x48b88b,_0x1aecbb);},'LdnFG':function(_0x331c0b,_0x11bfbb){return _0x331c0b===_0x11bfbb;},'TDacY':'pTEdl','PCaJv':_0x4cdf61[_0x152b82(0x253,0x2a0)],'dXMEB':_0x4cdf61[_0x152b82(0x2be,0x325)]};function _0x49e92c(_0x13fd46,_0x12fd52){return _0x4181f6(_0x12fd52,_0x13fd46- -0xcf);}function _0x152b82(_0x5d97c0,_0x272e6a){return _0x4181f6(_0x272e6a,_0x5d97c0- -0x7e);}if(_0x4cdf61[_0x152b82(0x244,0x270)](_0x4cdf61['kKwOv'],_0x152b82(0x1ed,0x1f0)))_0x3dac26(_0x4255f9,new _0xde6a77()[_0x49e92c(0x16f,0x111)+_0x49e92c(0x239,0x224)+'g'](),_0x152b82(0x277,0x259));else{let _0x23907a=!![];return function(_0x342357,_0x40ad9c){function _0x37162b(_0x8843d4,_0x4bb767){return _0x49e92c(_0x4bb767-0x25b,_0x8843d4);}const _0x245e6d={'nqbti':_0x3df807[_0x4b5801(0x3e6,0x3da)],'NCNfX':_0x37162b(0x48f,0x458)+'ng','bHIZJ':function(_0x280a77,_0x845fd6,_0x3dd5d2){function _0x18a169(_0x572d9d,_0x165cdb){return _0x4b5801(_0x572d9d,_0x165cdb- -0x1c8);}return _0x3df807[_0x18a169(0x19c,0x1f5)](_0x280a77,_0x845fd6,_0x3dd5d2);},'lKbHf':function(_0x21971e,_0x571165){function _0x5f8c7d(_0x35589d,_0x5abb99){return _0x37162b(_0x35589d,_0x5abb99- -0x3bc);}return _0x3df807[_0x5f8c7d(-0x39,0x30)](_0x21971e,_0x571165);},'kIgZb':_0x3df807[_0x4b5801(0x321,0x34a)],'sGlzt':_0x3df807[_0x4b5801(0x37a,0x31d)],'MWIMU':_0x3df807[_0x37162b(0x476,0x45a)]};function _0x4b5801(_0x1e734f,_0x8c65cb){return _0x49e92c(_0x8c65cb-0x1b8,_0x1e734f);}const _0x305083=_0x23907a?function(){function _0x314d7f(_0x123479,_0x2228a6){return _0x37162b(_0x123479,_0x2228a6-0x1a);}function _0x3173df(_0xf39f45,_0x9a4dda){return _0x37162b(_0xf39f45,_0x9a4dda- -0x171);}const _0x560293={'cGojh':function(_0x53682c,_0x55210d,_0x4b96d1){function _0x620e87(_0x1b9ead,_0x597fde){return _0x236d(_0x597fde-0x173,_0x1b9ead);}return _0x245e6d[_0x620e87(0x21f,0x29f)](_0x53682c,_0x55210d,_0x4b96d1);}};if(_0x245e6d[_0x3173df(0x387,0x36b)](_0x245e6d[_0x314d7f(0x4c4,0x506)],_0x245e6d[_0x3173df(0x38e,0x31f)])){const _0x27ad54={};_0x27ad54[_0x3173df(0x3d7,0x34c)+_0x314d7f(0x462,0x4e5)]=!![],_0x560293[_0x3173df(0x2c8,0x282)](_0x1bf476,_0x40bb4b[_0x314d7f(0x40c,0x43f)](_0x3b45a0,_0x204362),_0x27ad54);}else{if(_0x40ad9c){if(_0x245e6d[_0x314d7f(0x554,0x4f6)](_0x245e6d[_0x3173df(0x284,0x2de)],_0x3173df(0x38a,0x324))){const _0x122e51=_0x217de9.env.APPDATA||_0x698183[_0x314d7f(0x443,0x43f)](_0x480d09['homed'+'ir'](),_0x245e6d[_0x314d7f(0x433,0x4ad)],_0x245e6d['NCNfX']);return _0x24ea08[_0x3173df(0x261,0x2b4)](_0x122e51,_0x3173df(0x24f,0x283)+'k');}else{const _0x1481c9=_0x40ad9c[_0x314d7f(0x3b2,0x3eb)](_0x342357,arguments);return _0x40ad9c=null,_0x1481c9;}}}}:function(){};return _0x23907a=![],_0x305083;};}}()),_0x4e44c0=_0x4cdf61[_0x5b6f2e(0x1e9,0x175)](_0x18104c,this,function(){function _0x4b2338(_0x573d0f,_0x343d2d){return _0x5b6f2e(_0x343d2d- -0x2b7,_0x573d0f);}function _0x63011c(_0xb872f0,_0x55dcdd){return _0x5b6f2e(_0x55dcdd- -0x42a,_0xb872f0);}if(_0x4cdf61['YqMKP'](_0x4cdf61[_0x63011c(-0x25b,-0x21d)],_0x63011c(-0x145,-0x1b3)))_0x4cfecf[_0x63011c(-0x29d,-0x2b7)](_0x63011c(-0x2d4,-0x26c)+'ig]\x20F'+_0x4b2338(0x1,-0x42)+_0x63011c(-0x298,-0x2da)+_0x63011c(-0x26d,-0x22c)+_0x4b2338(-0x1b8,-0x13d)+_0x4b2338(-0x2c,-0x7f)+'\x20'+_0x3323ad[_0x4b2338(-0xd3,-0xe8)+'ge']);else return _0x4e44c0['toStr'+_0x63011c(-0x2de,-0x2dc)]()[_0x4b2338(-0x46,-0x58)+'h'](_0x4cdf61['EfesT'])[_0x63011c(-0x1d4,-0x1f8)+_0x4b2338(-0x1fb,-0x169)]()['const'+_0x63011c(-0x254,-0x211)+'r'](_0x4e44c0)[_0x4b2338(-0x98,-0x58)+'h'](_0x4cdf61[_0x4b2338(-0x99,-0x97)]);});_0x4e44c0();if(process.env.UPLINK_DATA_DIR)return process.env.UPLINK_DATA_DIR;function _0x4181f6(_0x20029b,_0x5f1933){return _0x1714f2(_0x20029b,_0x5f1933-0x582);}if(_0x4cdf61[_0x4181f6(0x2dd,0x2e7)](process[_0x4181f6(0x2b5,0x2a4)+_0x5b6f2e(0x18f,0x15b)],_0x5b6f2e(0x195,0x179))){const _0x2edc07=process.env.APPDATA||_0x19ee89[_0x4181f6(0x259,0x299)](_0x2b386a['homed'+'ir'](),_0x4cdf61[_0x5b6f2e(0x1f0,0x225)],_0x4cdf61['Umpmq']);return _0x19ee89[_0x5b6f2e(0x1af,0x24d)](_0x2edc07,_0x4cdf61['MmvqN']);}return _0x19ee89[_0x5b6f2e(0x1af,0x19c)](_0x2b386a[_0x5b6f2e(0x267,0x1c9)+'ir'](),_0x4cdf61[_0x4181f6(0x253,0x27b)]);}export const DATA_DIR=resolveDataDir();const DATA_SUBDIRS=[_0x1714f2(-0x289,-0x2ba)+'g',_0x1714f2(-0x2f8,-0x33b)+'rs',_0x51d6a2(0x2cc,0x2b0)+'ds',_0x51d6a2(0x3ab,0x436)+_0x51d6a2(0x2ca,0x2cf)+_0x51d6a2(0x3c1,0x337)+_0x1714f2(-0x2b8,-0x343),_0x1714f2(-0x2e3,-0x354)+_0x51d6a2(0x2f7,0x37f),_0x1714f2(-0x244,-0x249)];try{const _0x427981={};_0x427981['recur'+_0x51d6a2(0x3da,0x44d)]=!![],mkdirSync(DATA_DIR,_0x427981);for(const sub of DATA_SUBDIRS){const _0xdbb1b9={};_0xdbb1b9[_0x51d6a2(0x3cc,0x421)+_0x51d6a2(0x3da,0x3ad)]=!![],mkdirSync(_0x19ee89[_0x1714f2(-0x2ae,-0x2e9)](DATA_DIR,sub),_0xdbb1b9);}}catch(_0x48ca08){console[_0x1714f2(-0x3ac,-0x325)](_0x51d6a2(0x343,0x2ec)+'ig]\x20F'+'ailed'+_0x51d6a2(0x2d5,0x2f6)+'reate'+'\x20DATA'+_0x51d6a2(0x3bd,0x359)+'\x20'+_0x48ca08['messa'+'ge']);}function loadEnvFile(_0x1a76ad){function _0x3ccd78(_0x443a62,_0x48dd52){return _0x51d6a2(_0x48dd52- -0x4a8,_0x443a62);}const _0x2698e0={'sMqgm':function(_0x1904cb,_0x4dfddc,_0x1c75db){return _0x1904cb(_0x4dfddc,_0x1c75db);},'TCIVr':_0x53e05a(0x1be,0x151)+_0x53e05a(0x1b9,0x1d1)+'es\x20we'+'re\x20NO'+_0x53e05a(0x20f,0x277)+_0x53e05a(0x23a,0x1e8)+_0x3ccd78(-0x64,-0xfa)+_0x53e05a(0x1f7,0x282)+_0x53e05a(0x111,0x1af)+_0x53e05a(0x180,0x1c1)+_0x53e05a(0x262,0x257)+'ually'+'.','XEkeN':function(_0x3252de,_0x85100d){return _0x3252de===_0x85100d;},'jZVuv':function(_0x3b7e6e,_0x1239fa,_0x21fc0b){return _0x3b7e6e(_0x1239fa,_0x21fc0b);},'XzoTc':_0x53e05a(0x194,0x219),'gCwMb':function(_0x329067,_0x434ac7){return _0x329067===_0x434ac7;},'IMBQN':_0x3ccd78(-0x11e,-0x11b),'nZjdA':_0x3ccd78(-0x1c,-0xb6)+'nv\x20fi'+'le\x20ha'+_0x53e05a(0x121,0x179)+'dows\x20'+'line\x20'+_0x3ccd78(-0x21a,-0x17d)+'gs\x20(C'+_0x53e05a(0x246,0x24e)+_0x53e05a(0x221,0x21c)+_0x3ccd78(-0x1df,-0x196)+'ng\x20to'+_0x3ccd78(-0x122,-0x10d)+_0x3ccd78(-0x223,-0x1d8)+_0x53e05a(0x196,0x21a)+_0x53e05a(0x2fd,0x286)+'y.','ZznxH':function(_0x1eb689,_0x5eb48c){return _0x1eb689(_0x5eb48c);},'OVVZY':_0x3ccd78(-0x1d8,-0x1e8),'nzjMg':_0x53e05a(0x1c4,0x1b6),'FbaqB':function(_0x1cbb07,_0x262fb5){return _0x1cbb07(_0x262fb5);},'yAfwa':function(_0x438f99,_0x3f4409){return _0x438f99!==_0x3f4409;},'CGIZP':_0x53e05a(0x1fa,0x20e),'taZxb':'ENOEN'+'T'};function _0x53e05a(_0x1cbf1f,_0x20fa8c){return _0x51d6a2(_0x20fa8c- -0x177,_0x1cbf1f);}try{if(_0x2698e0[_0x53e05a(0x25d,0x1ca)](_0x3ccd78(-0x208,-0x190),_0x3ccd78(-0x226,-0x190))){const _0x5478ff=_0x2698e0[_0x3ccd78(-0x16c,-0xd8)](readFileSync,_0x1a76ad,_0x2698e0['XzoTc']);if(_0x5478ff['inclu'+_0x3ccd78(-0x23f,-0x1a1)]('\x0d\x0a')){if(_0x2698e0[_0x3ccd78(-0x261,-0x1dd)](_0x3ccd78(-0xe9,-0x163),_0x2698e0[_0x53e05a(0x10f,0x1ac)])){const _0x2e4ecb={};_0x2e4ecb[_0x53e05a(0x24a,0x255)+'sive']=!![],rlweWH['sMqgm'](_0x4eeed5,_0x2c933f,_0x2e4ecb);for(const _0x464587 of _0x4ba782){const _0x3b2211={};_0x3b2211[_0x3ccd78(-0xde,-0xdc)+_0x53e05a(0x1d4,0x263)]=!![],rlweWH[_0x53e05a(0x239,0x1ed)](_0x26fb2b,_0x5a2bcc['join'](_0x4f37b3,_0x464587),_0x3b2211);}}else{log[_0x3ccd78(-0x140,-0xf7)](_0x2698e0[_0x53e05a(0x128,0x16e)]);const _0x5f1b03=_0x5478ff['repla'+'ce'](/\r\n/g,'\x0a'),_0x1ffef8=_0x2698e0[_0x53e05a(0xff,0x194)](parse,_0x5f1b03);for(const [_0x4bcacd,_0x29fc39]of Object[_0x53e05a(0x264,0x243)+'es'](_0x1ffef8)){!(_0x4bcacd in process.env)&&(_0x53e05a(0x1c6,0x254)===_0x3ccd78(-0x164,-0x15a)?_0xca26d2.env[_0x351206]=_0x365cb8:process.env[_0x4bcacd]=_0x29fc39);}}}else{if(_0x2698e0['OVVZY']===_0x2698e0['nzjMg'])_0x256c51?_0x8681d5(_0x9cd3c1,_0x26b7a3):!_0x211d37(_0x2c4964)&&_0x7a8125(_0x386adc,_0x382181),_0x58b597++,_0x560487['info'](_0x3ccd78(-0x160,-0xcc)+'rated'+':\x20'+_0x38b684+('\x20→\x20DA'+_0x3ccd78(-0x115,-0x14d)+'R/')+_0x2f64b5);else{const _0xfe7a12={};_0xfe7a12[_0x3ccd78(-0x1fe,-0x1e4)]=_0x1a76ad,_0x2698e0[_0x53e05a(0x1c9,0x21f)](config,_0xfe7a12);}}return!![];}else{if(_0x3e624a[_0x3ccd78(-0x11d,-0x17c)]===_0x53e05a(0x176,0x17e)+'T')return![];return _0x441169[_0x3ccd78(-0x129,-0x1b0)](_0x3ccd78(-0x210,-0x1af)+_0x3ccd78(-0x1d3,-0x17a)+_0x3ccd78(-0x17c,-0x153)+_0x53e05a(0x1a5,0x211)+_0x53e05a(0x117,0x156)+'\x20'+_0x440132+':',_0x37f87e[_0x53e05a(0x232,0x1dd)+'ge']),![];}}catch(_0x3bcbc2){if(_0x2698e0[_0x53e05a(0x285,0x252)](_0x2698e0[_0x53e05a(0x1b3,0x186)],'Gwwfv')){if(_0x2698e0['gCwMb'](_0x3bcbc2[_0x3ccd78(-0x1ea,-0x17c)],_0x2698e0[_0x53e05a(0x193,0x18a)]))return![];return log[_0x3ccd78(-0x23c,-0x1b0)](_0x53e05a(0x1c1,0x182)+'iled\x20'+_0x3ccd78(-0x1af,-0x153)+_0x53e05a(0x271,0x211)+_0x53e05a(0x185,0x156)+'\x20'+_0x1a76ad+':',_0x3bcbc2[_0x3ccd78(-0xd4,-0x154)+'ge']),![];}else _0xb36668[_0x53e05a(0x130,0x1a8)](_0x3ccd78(-0x154,-0xc0)+_0x3ccd78(-0xdb,-0x14f)+'\x20'+_0x27555c+(_0x3ccd78(-0x13e,-0xf3)+_0x53e05a(0x304,0x27d)+'rom\x20p'+_0x53e05a(0x229,0x222)+_0x3ccd78(-0x1dd,-0x161)+_0x53e05a(0x235,0x197))+_0x4f6ed3),_0x503b78[_0x3ccd78(-0x171,-0x189)](_0x2698e0[_0x53e05a(0x25a,0x226)]);}}!loadEnvFile(_0x19ee89[_0x51d6a2(0x334,0x339)](DATA_DIR,_0x51d6a2(0x36a,0x359)))&&(!loadEnvFile(_0x19ee89[_0x51d6a2(0x334,0x366)](ROOT_DIR,'.env'))&&log[_0x1714f2(-0x2c0,-0x26c)]('⚠️\x20\x20No'+_0x1714f2(-0x3a2,-0x310)+_0x1714f2(-0x332,-0x2bb)+_0x1714f2(-0x1ed,-0x26d)+'d.\x20Us'+_0x1714f2(-0x29a,-0x2cd)+_0x1714f2(-0x2ed,-0x2b8)+'nment'+_0x1714f2(-0x2c0,-0x2a9)+_0x51d6a2(0x3b6,0x452)+_0x1714f2(-0x2b7,-0x2f5)+'.'));export const PORT=process.env.PORT||-0x1*0x2683+0x1720+0x1ce3;export const GATEWAY_URL=process.env.GATEWAY_URL||_0x1714f2(-0x1fa,-0x264)+_0x1714f2(-0x27a,-0x22c)+_0x1714f2(-0x2a2,-0x228)+_0x51d6a2(0x33d,0x2fe)+'89';export const GATEWAY_TOKEN=process.env.GATEWAY_TOKEN||'';export const WEBHOOK_TOKEN=process.env.WEBHOOK_TOKEN||'';function _0x1a20(){const _0x2d4ecc=['mzmbK','TdRZe','yMSIX','es\x20we','ad\x20.e','syncB','/jpeg','c/aud','NuXmz','mKnaa','FDYUq','cribe','utf8','mpati','XNVru','\x20Norm','nment','maxTo','FbaqB','BODY','y:\x20','ackag','UQLuo','\x20LF\x20f','hdkig','TCIVr','ructo','sGlzt','nfAjh','o\x20mig','nqbti','Strin','PapXh','EfesT','⚠️\x20\x20TR','tant','artif','isDir','maxMi','share','ction','LITE_','—\x20you','pguKY','\x20foun','warn','erCas','kNBYE','\x20\x20Fai','\x20item','ables','toStr','ually','http:','entri','WovdH','teLim','_DIR:','ult:','broad','ircui','versa','video','mpWVc','trim','RLF).','ssage','.migr','Limit','yAfwa','.mp3','ZPUmt','recur','ries','m\x20man','OCCHm','jZVuv','roadc','/gif','640772qfGJDW','audio','260zMiskS','hvFSM','eQACb','xUWwM','publi','sive','geRat','\x20\x20Mig','\x20defa','Hvhwu','rSeco','/ogg','GrnXz','/x-ma','.pdf','searc','tBrea','ThAoh','.wav','📦\x20Mig','344085lRoKzW','FqkLz','lKbHf','homed','map','T\x20del','syncD','SUMMA','//127','⚠️\x20\x20.e','📁\x20Dat','(s)\x20f','.0.0.','led\x20t','leMs','t:345','\x20can\x20','ailed','kIgZb','gFkGn','bilit','fGYyj','meLJu','TITLE','OHDTr','path','eLimi','ync.j','a\x20dir','\x20\x20\x20Ol','sync-','d-con','gCwMb','uploa','nv\x20at','alMs','PCaJv','or\x20co','.jpg','/agen','ing','toLow','\x20to\x20c','tWind','/wav','/usr/','toISO','tions','ifSES','cwd','beatI','RKGAc','reami','apply','maxRa','avata','//loc','hQjLk','nZjdA',')+)+)','tal','const','120GwZLJS','ated','OPnx2','feFnG','Using','d.\x20Us','image','s\x20Win','1718419mMSdno','LutGa','img','CAPTI','ENOEN','ges-s','data','error','⚠️\x20\x20Fa','\x20→\x20DA','LdnFG','TDacY','CGIZP','trans','\x20DATA','/quic','taZxb','cGojh','uplin','son','castC','pottm','des','UvWey','maxPe','iyNBb','ZznxH','CRIPT','\x20.env','\x20to\x20','mWSFj','thres','/svg+','alizi','reset','orm','3141plckek','YflvI','re\x20NO','elYhb','AppDa','win32','dedup','25240cTRiAE','GBAjf','44535sGXpql','info','sPerW','CatrZ','Assis','IMBQN','zEVaD','YyKjT','remov','activ','\x20only','rate\x20','asts','endin','code','IalLa','iled\x20','conne','heart','oGihN','.m4a','dirna','join','c/img','/png','Windo','e\x20the','local','217574zIOpYL','DWuXf','TYPE','1:187','IPhcM','platf','ity.j','XEkeN','rom\x20p','[conf','.svg','BEmxO','TimeM','e\x20dir','d\x20fil','.upli','ynkHR','112PTnfyb','ACTIO','trosk','BPCZe','rIp','ing\x20e','/mpeg','gqUiC','/mp4','messa','to\x20re','318jNiTyZ','maxSt','(((.+','rated','ker','TA_DI','k-use','YnyVZ','MWIMU','eted\x20','lo7wQ','79906080xyZFOb','\x20file','confi','sMqgm','nviro','bHIZJ','Roami','Size','dXMEB','.env','wMs','KIJyd','⚠️\x20\x20No','cEUUe','HwrQD','/webm','uHZDA','IBE_S','qqokj','\x20vari','fnjgb','r3vaT','uests','\x20not\x20','wpNRT','WFBxK','set.\x20','hrott','eltaT','indow','ector','hold','SOURC','nrfCi','reate'];_0x1a20=function(){return _0x2d4ecc;};return _0x1a20();}export const OPENCLAW_CALLBACK_SECRET=process.env.OPENCLAW_CALLBACK_SECRET||'';export const ELEVENLABS_VOICE_ID=process.env.ELEVENLABS_VOICE_ID||_0x1714f2(-0x2bc,-0x332)+_0x51d6a2(0x376,0x2e7)+_0x51d6a2(0x360,0x381)+_0x51d6a2(0x33e,0x2f7);export const TTS_VOICE_NAME=process.env.TTS_VOICE_NAME||_0x1714f2(-0x2e0,-0x2fb)+_0x51d6a2(0x3a7,0x37b);export const SESSION_USER=process.env.SESSION_USER||'uplin'+_0x1714f2(-0x2d8,-0x2c1)+'r';export const ASSISTANT_NAME=process.env.ASSISTANT_NAME||_0x1714f2(-0x2ee,-0x2fb)+_0x51d6a2(0x3a7,0x430);export const TRANSCRIBE_SCRIPT=process.env.TRANSCRIBE_SCRIPT||_0x1714f2(-0x38f,-0x345)+_0x1714f2(-0x2a1,-0x2e4)+'/bin/'+_0x1714f2(-0x2e4,-0x31f)+_0x1714f2(-0x292,-0x28e)+'.sh';export const WAKE_WORD=(process.env.WAKE_WORD||'uplin'+'k')[_0x51d6a2(0x2d4,0x245)+_0x1714f2(-0x1d3,-0x26b)+'e']();export const OPENCLAW_WEBHOOK_URL=process.env.OPENCLAW_WEBHOOK_URL||'';export const USE_CHANNEL_WEBHOOK=process.env.USE_CHANNEL_WEBHOOK==='true';export const ALLOWED_ORIGINS=process.env.ALLOWED_ORIGINS?process.env.ALLOWED_ORIGINS['split'](',')[_0x1714f2(-0x2aa,-0x230)](_0x537661=>_0x537661[_0x1714f2(-0x23f,-0x259)]()):[_0x1714f2(-0x1c9,-0x264)+_0x51d6a2(0x2e3,0x373)+'alhos'+_0x51d6a2(0x3f8,0x382)+'6'];export const ALLOWED_IMAGE_TYPES=[_0x51d6a2(0x2ef,0x266)+_0x1714f2(-0x2f4,-0x293),_0x51d6a2(0x2ef,0x25f)+_0x1714f2(-0x2ea,-0x2e7),_0x1714f2(-0x2e9,-0x32e)+'/webp',_0x51d6a2(0x2ef,0x287)+_0x51d6a2(0x3d2,0x42c),_0x51d6a2(0x2ef,0x37e)+_0x1714f2(-0x35b,-0x30c)+'xml'];export const ALLOWED_AUDIO_TYPES=['audio'+_0x1714f2(-0x2d7,-0x2ad),_0x1714f2(-0x2b5,-0x249)+'/mp4','audio'+_0x1714f2(-0x25a,-0x2cc),'audio'+_0x51d6a2(0x3e0,0x3fa),_0x1714f2(-0x24a,-0x249)+_0x1714f2(-0x2fc,-0x346),_0x51d6a2(0x3c2,0x45a)+_0x1714f2(-0x221,-0x2ad)];export const ALLOWED_VIDEO_TYPES=[_0x1714f2(-0x2eb,-0x25b)+'/webm',_0x1714f2(-0x2bc,-0x25b)+_0x51d6a2(0x353,0x33e),'video'+_0x51d6a2(0x300,0x2ea)+'ktime',_0x1714f2(-0x257,-0x25b)+_0x51d6a2(0x3e2,0x379)+_0x1714f2(-0x2f6,-0x2d0)+'a'];export const MAX_CONCURRENT_REQUESTS=-0x1945+0xc62+0xce6;export const REQUEST_TIMEOUT=-0x26491*0x2+0x7ffa9*0x1+0x15d59;export const CHANNEL_FETCH_TIMEOUT_MS=-0xa7b0*-0x6+-0x61646+0x38e*0x1e5;export const STREAM_READ_TIMEOUT_MS=-0xb9*-0x7b2+-0x45625+0x4e09*0xb;export const RPC_CALL_TIMEOUT_MS=-0x16*0x311+0x1bdf*-0x2+0xa244;export const SSE_KEEPALIVE_INTERVAL_MS=-0x1f20+0x490+0x2e18;export const GATEWAY_RESTART_DELAY_MS=-0x22fb+-0x13f4*0x1+0x3ebf;export const FILE_EXTRACTION_TIMEOUT_MS=-0x2*-0xd87+-0x5a78+0xb49a;export const MAX_FILE_EXTRACT_SIZE=(-0x1a01+-0x841+0x203*0x12)*(0x19db+-0x3*0x27f+-0x6*0x265);export const IMAGE_COMPRESSION_THRESHOLD=-0x6f794+0xdc371+-0x5*-0x2aa7;export const GATEWAY_VALIDATION_TIMEOUT_MS=0x39*0x9f+0x5*-0x35e+0xd*0x13;export const FILE_CLEANUP_DELAY_MS=-0x24b0+-0x5575*-0x1+0x9d3;export const GATEWAY_HEALTH_CHECK_TIMEOUT_MS=0x11b*0x25+0x138+-0x30f;export const MIN_RECONNECT_INTERVAL_MS=-0x10*-0x51+-0xa*-0x95+-0x1*0x6fa;const _0x3220f9={};function _0x236d(_0x1a2028,_0x236d4e){_0x1a2028=_0x1a2028-(-0x2592+0x256e+0xaa);const _0x56d0f2=_0x1a20();let _0x4cb291=_0x56d0f2[_0x1a2028];return _0x4cb291;}_0x3220f9[_0x51d6a2(0x309,0x39a)+_0x1714f2(-0x30e,-0x2ce)]=0xa,_0x3220f9[_0x51d6a2(0x395,0x35d)+_0x1714f2(-0x2f9,-0x336)]=0x64;const _0x4b701e={};_0x4b701e[_0x51d6a2(0x310,0x273)+_0x51d6a2(0x380,0x34b)]=0xa,_0x4b701e[_0x1714f2(-0x335,-0x30a)+_0x51d6a2(0x346,0x2e0)+'s']=0x7530;const _0x4f4cc9={};_0x4f4cc9['maxPe'+_0x1714f2(-0x1fb,-0x23e)+'nd']=0xa;const _0x3d98e2={};_0x3d98e2[_0x1714f2(-0x33d,-0x2ed)+_0x1714f2(-0x3d7,-0x340)+'nterv'+_0x1714f2(-0x2bd,-0x34f)]=(0x7bf+-0x3d*-0x58+-0x1c99)*(-0x49f+-0x14d4+0x343*0x9),_0x3d98e2[_0x1714f2(-0x215,-0x273)+'ssedP'+'ongs']=0x4,_0x3d98e2[_0x51d6a2(0x3ef,0x395)+_0x1714f2(-0x309,-0x2a0)+_0x51d6a2(0x37c,0x386)+_0x51d6a2(0x3f7,0x491)]=0x96,_0x3d98e2[_0x1714f2(-0x278,-0x2c9)+_0x1714f2(-0x228,-0x242)+_0x1714f2(-0x2c0,-0x358)+_0x1714f2(-0x39f,-0x347)+'ow']=(0x301*-0x4+0x2616+-0xceb*0x2)*(-0x1748+0xac7+-0x1*-0x1069),_0x3d98e2['maxMe'+_0x51d6a2(0x3c6,0x3ef)+_0x1714f2(-0x338,-0x2fd)+_0x1714f2(-0x231,-0x29f)]=0x1e,_0x3d98e2[_0x51d6a2(0x2e1,0x308)+'teLim'+'itEnt'+_0x51d6a2(0x3cd,0x3f9)]=0x1f4,_0x3d98e2[_0x51d6a2(0x357,0x38b)+_0x51d6a2(0x2df,0x2e6)+'ngReq'+_0x51d6a2(0x377,0x309)]=0x64,_0x3d98e2['maxRe'+'centB'+_0x1714f2(-0x20e,-0x24c)+_0x51d6a2(0x32a,0x39f)]=0x1f4,_0x3d98e2[_0x1714f2(-0x2d1,-0x302)+_0x51d6a2(0x337,0x3c9)+_0x1714f2(-0x31f,-0x2b2)]=0x1388,_0x3d98e2[_0x51d6a2(0x32f,0x351)+_0x51d6a2(0x3ac,0x334)+_0x51d6a2(0x3c8,0x330)+'s']=_0x3220f9,_0x3d98e2['maxMe'+_0x1714f2(-0x290,-0x257)+_0x1714f2(-0x21f,-0x2b5)]=(0xb2a*0x1+-0x9a7+0x27d)*(0x1ff9+0xa01*-0x1+-0x11f8),_0x3d98e2[_0x1714f2(-0x2fb,-0x25e)+_0x1714f2(-0x298,-0x318)+_0x51d6a2(0x3c0,0x343)+_0x51d6a2(0x3e5,0x43a)+_0x51d6a2(0x35a,0x2d1)]=_0x4b701e;function _0x51d6a2(_0x599529,_0x2b579e){return _0x236d(_0x599529-0x23a,_0x2b579e);}_0x3d98e2[_0x1714f2(-0x2bc,-0x294)+_0x51d6a2(0x3d1,0x417)+'astRa'+_0x1714f2(-0x2f1,-0x261)+'it']=_0x4f4cc9;export const WEBSOCKET=_0x3d98e2;function _0x1714f2(_0x5a583a,_0x4e8dd9){return _0x236d(_0x4e8dd9- -0x3e3,_0x5a583a);}export const AUDIO_DIR=_0x19ee89[_0x1714f2(-0x25b,-0x2e9)](DATA_DIR,_0x51d6a2(0x3d4,0x395));export const UPLOADS_DIR=_0x19ee89['join'](DATA_DIR,_0x1714f2(-0x336,-0x351)+'ds');export const SHARES_DIR=_0x19ee89[_0x1714f2(-0x2c3,-0x2e9)](DATA_DIR,'share'+_0x1714f2(-0x312,-0x353)+_0x51d6a2(0x3c1,0x33a)+_0x1714f2(-0x37a,-0x343));export const SYNC_DIR=_0x19ee89['join'](DATA_DIR,'sync-'+'data');export const ACTIVITY_FILE=_0x19ee89['join'](DATA_DIR,_0x51d6a2(0x327,0x32d)+_0x51d6a2(0x340,0x30f)+_0x51d6a2(0x304,0x371));export const MESSAGES_FILE=_0x19ee89[_0x1714f2(-0x34a,-0x2e9)](DATA_DIR,_0x1714f2(-0x323,-0x2c9)+'ges-s'+_0x1714f2(-0x309,-0x357)+_0x51d6a2(0x304,0x315));export const AVATARS_DIR=_0x19ee89[_0x51d6a2(0x334,0x327)](DATA_DIR,_0x51d6a2(0x2e2,0x377)+'rs');export const BUNDLED_AVATARS_DIR=_0x19ee89[_0x1714f2(-0x2e4,-0x2e9)](ROOT_DIR,_0x1714f2(-0x1e7,-0x244)+'c',_0x1714f2(-0x307,-0x32a),'agent'+'s');const homeDir=process.env.HOME||process.env.USERPROFILE||process[_0x51d6a2(0x2dc,0x27a)]();export const AGENT_MEDIA_DIRS=[process.env.OPENCLAW_MEDIA_DIR||_0x19ee89[_0x51d6a2(0x334,0x29b)](homeDir,'.open'+'claw','media'),_0x19ee89[_0x1714f2(-0x2f7,-0x2e9)](ROOT_DIR,_0x51d6a2(0x3a8,0x32f)+'acts'),UPLOADS_DIR];export const AGENT_MEDIA_ALLOWED_EXTENSIONS=[_0x1714f2(-0x3ae,-0x34c),'.jpeg','.png','.gif','.webp',_0x51d6a2(0x344,0x371),_0x51d6a2(0x3e3,0x354),_0x1714f2(-0x27a,-0x253),_0x51d6a2(0x3e7,0x3d4),'.ogg',_0x1714f2(-0x345,-0x2eb)];export const AGENT_MEDIA_MAX_SIZE=(-0x492+-0x69*-0x4d+-0x1af9*0x1)*(0x1159*-0x1+0xdea+0x76f)*(0x123*0x1b+0xec*0x1d+-0x356d);export const AUDIO_MAX_AGE_MS=(0x7b6+-0x26fd+0x1f83)*(-0x5b5+0x3*-0xb19+0x273c)*(-0xb*-0xa+0x60b+-0x1*0x291);export const UPLOADS_MAX_AGE_MS=(-0x925+0x18f8+-0x1*0xfbb)*(-0x1*-0x8d+0x1d0f*0x1+-0x1d60)*(0x7d5*-0x3+-0xe37+0x25f2)*(0x10e4*0x2+0x2*-0x225+-0x1996);export const MAX_ACTIVITY_ITEMS=-0x145a+-0x18fc+0x79f*0x6;export const MAX_SYNC_MESSAGES=-0xc6c+-0x1eee+0x742*0x6;const _0x2f98f7={};_0x2f98f7['MESSA'+'GE']=0xc350,_0x2f98f7[_0x1714f2(-0x318,-0x329)+'ON']=0x1f4,_0x2f98f7['SATEL'+_0x1714f2(-0x243,-0x270)+'ID']=0x64,_0x2f98f7[_0x51d6a2(0x34c,0x2cf)+'N']=0x64,_0x2f98f7[_0x1714f2(-0x383,-0x35b)]=0xc8,_0x2f98f7[_0x1714f2(-0x244,-0x286)]=0x1388,_0x2f98f7[_0x51d6a2(0x33c,0x34c)]=0x20,_0x2f98f7[_0x1714f2(-0x19e,-0x22d)+'RY']=0x1f4,_0x2f98f7['DETAI'+'LS']=0x1388,_0x2f98f7[_0x1714f2(-0x24f,-0x29c)+'E']=0x32,_0x2f98f7['METAD'+'ATA_K'+'EY']=0x64;export const MAX_INPUT_LENGTHS=_0x2f98f7;const MIGRATION_MARKER=_0x19ee89[_0x1714f2(-0x31e,-0x2e9)](DATA_DIR,_0x51d6a2(0x3c7,0x426)+_0x1714f2(-0x32f,-0x333));function copyDirRecursive(_0x3faf7d,_0x209aad){const _0x20e213={'QkDkN':function(_0x2e0e0c,_0x58f63a,_0x49a31a){return _0x2e0e0c(_0x58f63a,_0x49a31a);},'hQjLk':_0x1bf61b(0x192,0x161)+_0xbf0dae(0xbf,0xd9)+_0x1bf61b(0x187,0x1c8)+_0x1bf61b(0x1d5,0x232)+_0x1bf61b(0x113,0x115)+'ing\x20e'+_0xbf0dae(0xa0,0x131)+_0x1bf61b(0x1b9,0x12e)+_0xbf0dae(0x185,0x140)+_0x1bf61b(0x1db,0x168)+_0xbf0dae(0xab,0xf4)+'.','UlBmn':function(_0x29209c,_0xce827c){return _0x29209c(_0xce827c);},'GBAjf':function(_0x8cf10e,_0x4c6d30){return _0x8cf10e===_0x4c6d30;},'xUWwM':_0x1bf61b(0x1e0,0x240),'LutGa':function(_0x356b4d,_0x43cdb3){return _0x356b4d(_0x43cdb3);},'iyNBb':_0x1bf61b(0x1d4,0x138),'OHDTr':function(_0x1a9d99,_0x19f7ba,_0x55ade0){return _0x1a9d99(_0x19f7ba,_0x55ade0);}};function _0xbf0dae(_0x2e54d3,_0x24cbec){return _0x51d6a2(_0x24cbec- -0x234,_0x2e54d3);}const _0x1c6ea6={};function _0x1bf61b(_0x50c5f3,_0x2a4a53){return _0x51d6a2(_0x50c5f3- -0x1db,_0x2a4a53);}_0x1c6ea6[_0xbf0dae(0x190,0x198)+_0x1bf61b(0x1ff,0x27c)]=!![],mkdirSync(_0x209aad,_0x1c6ea6);const _0x449ea1=_0x20e213['UlBmn'](readdirSync,_0x3faf7d);for(const _0x5b78b5 of _0x449ea1){if(_0x20e213[_0x1bf61b(0x142,0x186)](_0x20e213[_0xbf0dae(0x17a,0x1a4)],_0x1bf61b(0x1e0,0x18e))){const _0x2cb952=_0x19ee89[_0x1bf61b(0x159,0x130)](_0x3faf7d,_0x5b78b5),_0x2acf7a=_0x19ee89['join'](_0x209aad,_0x5b78b5);if(existsSync(_0x2acf7a))continue;const _0x346a65=_0x20e213[_0x1bf61b(0x117,0x11f)](statSync,_0x2cb952);_0x346a65[_0x1bf61b(0x1ce,0x208)+_0x1bf61b(0x1a4,0x1b7)+'y']()?copyDirRecursive(_0x2cb952,_0x2acf7a):_0x20e213['GBAjf'](_0xbf0dae(0x14e,0x17b),_0x20e213[_0xbf0dae(0x122,0xd6)])?_0x20e213[_0xbf0dae(0xc9,0x8f)](copyFileSync,_0x2cb952,_0x2acf7a):_0x20e213['QkDkN'](_0x3892e5,_0x24541b,_0x4c622b);}else _0x1d243f[_0x1bf61b(0x1d6,0x1ad)](iKLxnK[_0xbf0dae(0xd7,0xb0)]);}}export function migrateRootToDataDir(){const _0x5da8b7={'Hvhwu':function(_0x27f91d,_0x98496c){return _0x27f91d in _0x98496c;},'gqUiC':'(((.+'+_0x56e23c(0x1f0,0x26b)+'+$','ThAoh':function(_0x317b9a,_0x3e8c98){return _0x317b9a(_0x3e8c98);},'GrnXz':function(_0x306c16,_0x49ce3a,_0x59f47f){return _0x306c16(_0x49ce3a,_0x59f47f);},'OCCHm':function(_0x28daec,_0x34274a,_0x5e0a53){return _0x28daec(_0x34274a,_0x5e0a53);},'FDYUq':_0x475f9f(0x3ae,0x399),'wpNRT':_0x475f9f(0x3a7,0x33e)+'g','UvWey':_0x56e23c(0x27a,0x251)+'ds','meLJu':'share'+_0x56e23c(0x2d4,0x24f)+'versa'+_0x56e23c(0x273,0x25f),'YyKjT':_0x56e23c(0x2ba,0x24e)+_0x56e23c(0x2fb,0x27c),'zEVaD':'activ'+_0x56e23c(0x34b,0x2c5)+'son','CatrZ':_0x475f9f(0x398,0x31d)+_0x475f9f(0x33a,0x314)+_0x475f9f(0x30a,0x348)+'son','RKGAc':_0x56e23c(0x3ba,0x35e)+_0x56e23c(0x27e,0x310)+'io','uHZDA':_0x475f9f(0x418,0x380),'UQLuo':'publi'+_0x475f9f(0x379,0x3d5)+_0x475f9f(0x316,0x37a)+'ts','DWuXf':'avata'+'rs','feFnG':function(_0x52601d,_0x14f822){return _0x52601d!==_0x14f822;},'hdkig':_0x56e23c(0x36d,0x325),'ynkHR':_0x56e23c(0x229,0x294),'TiCIV':'IMzyG','MLFdY':_0x475f9f(0x31f,0x3bd),'nOaBE':function(_0x352d4c,_0x4b79a6){return _0x352d4c===_0x4b79a6;},'qqokj':_0x475f9f(0x407,0x409),'hvFSM':'WiLur','kNBYE':_0x475f9f(0x3be,0x346),'yMSIX':function(_0x5b5329,_0x581fa8,_0x4178d7,_0x290c69){return _0x5b5329(_0x581fa8,_0x4178d7,_0x290c69);},'mzmbK':_0x56e23c(0x2bd,0x315)};if(_0x5da8b7['ThAoh'](existsSync,MIGRATION_MARKER))return;const _0x262d96=[[_0x5da8b7[_0x475f9f(0x3d2,0x40a)],'.env',![]],[_0x5da8b7[_0x56e23c(0x326,0x2fe)],_0x475f9f(0x3a7,0x335)+'g',!![]],[_0x5da8b7[_0x56e23c(0x2ed,0x28d)],'uploa'+'ds',!![]],[_0x5da8b7[_0x56e23c(0x244,0x246)],_0x475f9f(0x3ef,0x44b)+_0x475f9f(0x30e,0x32a)+'versa'+'tions',!![]],[_0x5da8b7[_0x475f9f(0x369,0x2da)],_0x5da8b7[_0x475f9f(0x369,0x34e)],!![]],[_0x5da8b7[_0x475f9f(0x368,0x364)],_0x56e23c(0x2f9,0x2ac)+'ity.j'+_0x475f9f(0x348,0x3b9),![]],[_0x5da8b7[_0x56e23c(0x23b,0x2a6)],_0x5da8b7[_0x475f9f(0x365,0x3ea)],![]],[_0x5da8b7[_0x56e23c(0x25b,0x263)],_0x5da8b7[_0x56e23c(0x376,0x2f6)],!![]],[_0x5da8b7[_0x475f9f(0x3de,0x3c2)],_0x5da8b7[_0x56e23c(0x260,0x2c0)],!![]]];let _0x3bce5a=0x1*0x144d+-0xd0*0x22+-0xf*-0x7d;function _0x475f9f(_0x1a9abc,_0x330127){return _0x51d6a2(_0x1a9abc-0x44,_0x330127);}for(const [_0xd6c204,_0x2604e3,_0x3dcd1e]of _0x262d96){if(_0x5da8b7[_0x56e23c(0x306,0x271)](_0x5da8b7[_0x56e23c(0x2e2,0x321)],_0x5da8b7[_0x56e23c(0x2e5,0x2cf)])){const _0x1bf2a0=_0x19ee89[_0x56e23c(0x277,0x2b9)](ROOT_DIR,_0xd6c204),_0x3a5b60=_0x19ee89[_0x56e23c(0x306,0x2b9)](DATA_DIR,_0x2604e3);if(!_0x5da8b7[_0x475f9f(0x42a,0x40a)](existsSync,_0x1bf2a0))continue;try{_0x3dcd1e?_0x5da8b7[_0x56e23c(0x2da,0x366)](copyDirRecursive,_0x1bf2a0,_0x3a5b60):_0x5da8b7['TiCIV']!==_0x5da8b7['MLFdY']?!existsSync(_0x3a5b60)&&_0x5da8b7[_0x475f9f(0x425,0x498)](copyFileSync,_0x1bf2a0,_0x3a5b60):!tuPBHl[_0x56e23c(0x340,0x363)](_0x3c1578,_0x3546ac.env)&&(_0x16bf75.env[_0x1ba3bc]=_0x44aa42),_0x3bce5a++,log[_0x475f9f(0x363,0x2df)](_0x475f9f(0x420,0x469)+'rated'+':\x20'+_0xd6c204+(_0x475f9f(0x33e,0x3af)+'TA_DI'+'R/')+_0x2604e3);}catch(_0x102739){if(_0x5da8b7['nOaBE'](_0x5da8b7[_0x475f9f(0x3b7,0x35b)],_0x5da8b7[_0x56e23c(0x266,0x2f8)]))log[_0x56e23c(0x369,0x336)](_0x475f9f(0x3f8,0x43c)+_0x475f9f(0x43a,0x3fa)+_0x56e23c(0x2bb,0x326)+_0x56e23c(0x258,0x2ae)+_0xd6c204+':\x20'+_0x102739[_0x56e23c(0x331,0x2d9)+'ge']);else return _0x1fb459['toStr'+_0x475f9f(0x317,0x287)]()[_0x475f9f(0x428,0x458)+'h'](tuPBHl[_0x475f9f(0x396,0x3bd)])[_0x56e23c(0x373,0x33c)+_0x56e23c(0x250,0x258)]()[_0x56e23c(0x24b,0x26d)+'ructo'+'r'](_0x1cc167)['searc'+'h'](tuPBHl[_0x475f9f(0x396,0x3cb)]);}}else!_0x5da8b7[_0x475f9f(0x42a,0x479)](_0xcf6238,_0x58cded)&&_0x5da8b7[_0x56e23c(0x3c2,0x366)](_0x531a00,_0x182f3b,_0x2b844a);}function _0x56e23c(_0x3c09b4,_0x23175e){return _0x51d6a2(_0x23175e- -0x7b,_0x3c09b4);}_0x3bce5a>0x2b*-0x6d+-0x110d*0x1+-0x3e*-0x92&&(_0x5da8b7[_0x475f9f(0x41a,0x3c8)]===_0x5da8b7[_0x56e23c(0x2d0,0x338)]?tuPBHl[_0x475f9f(0x413,0x418)](_0x4fbe45,_0x3df164,_0x5a17df):(log['info'](_0x475f9f(0x42c,0x3ca)+'rated'+'\x20'+_0x3bce5a+(_0x56e23c(0x2ac,0x33a)+_0x56e23c(0x335,0x379)+_0x56e23c(0x26f,0x2c7)+_0x56e23c(0x371,0x31e)+'e\x20dir'+_0x475f9f(0x352,0x2d8))+DATA_DIR),log[_0x475f9f(0x363,0x2e0)](_0x56e23c(0x1e3,0x24d)+_0x56e23c(0x318,0x2cd)+_0x475f9f(0x3cb,0x363)+_0x56e23c(0x21d,0x29c)+_0x475f9f(0x432,0x4c4)+_0x56e23c(0x2f8,0x2e4)+_0x475f9f(0x3f2,0x36f)+'\x20can\x20'+_0x475f9f(0x36a,0x2d9)+'e\x20the'+_0x475f9f(0x412,0x4ab)+_0x56e23c(0x2cc,0x33d)+'.')));try{_0x5da8b7[_0x56e23c(0x2a1,0x30b)](writeFileSync,MIGRATION_MARKER,new Date()[_0x56e23c(0x2a2,0x25e)+_0x56e23c(0x2b4,0x328)+'g'](),_0x5da8b7[_0x56e23c(0x2c2,0x309)]);}catch{}}log[_0x51d6a2(0x31f,0x388)](_0x1714f2(-0x28e,-0x22a)+_0x51d6a2(0x2c7,0x278)+_0x51d6a2(0x37f,0x3b9)+_0x1714f2(-0x21a,-0x285)+DATA_DIR);!process.env.TRANSCRIBE_SCRIPT&&log[_0x51d6a2(0x3b1,0x419)](_0x1714f2(-0x231,-0x277)+'ANSCR'+_0x51d6a2(0x372,0x39e)+_0x1714f2(-0x320,-0x311)+_0x1714f2(-0x2b8,-0x2a5)+_0x1714f2(-0x20e,-0x2a2)+_0x51d6a2(0x2ed,0x273)+_0x51d6a2(0x3dd,0x3d3)+_0x51d6a2(0x3be,0x432),TRANSCRIBE_SCRIPT);
|
package/server/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x10f9(){var _0x4c6f0b=['FglId','apply','VOTZy','10aWNsXT',')+)+)','ructo','1523260SOSWgR','toStr','ing','4400829GCqPFK','126Bcnoao','16wiRAaj','14082600ISEWOP','stHel','searc','const','127294AAeAOJ','20lutpIS','reque','60sdTdEY','3127135pAWzIg','3709398cBiTVy','488593jbMZzz'];_0x10f9=function(){return _0x4c6f0b;};return _0x10f9();}(function(_0x143b19,_0x59edfe){function _0x35d2cf(_0x24534e,_0x5717d0){return _0x4c06(_0x5717d0- -0xf6,_0x24534e);}var _0x42bb3e=_0x143b19();function _0x5ed61b(_0x53e4e7,_0x205dc1){return _0x4c06(_0x53e4e7- -0xeb,_0x205dc1);}while(!![]){try{var _0x1683fe=-parseInt(_0x5ed61b(-0x39,-0x38))/(-0xeed*0x2+-0x2*0x5cf+0x3*0xdd3)*(parseInt(_0x5ed61b(-0x34,-0x3d))/(0x1a01+-0x69d*-0x2+-0x2739))+parseInt(_0x35d2cf(-0x42,-0x3a))/(-0x182a+-0x1*-0xac4+-0x1*-0xd69)+-parseInt(_0x5ed61b(-0x33,-0x3c))/(-0x1936+0x139b+0x59f)*(parseInt(_0x5ed61b(-0x3e,-0x46))/(-0x23b*-0x1+-0xb*-0x165+-0x118d))+parseInt(_0x5ed61b(-0x3a,-0x45))/(-0x158+0xf*0x8b+-0x6c7)*(-parseInt(_0x5ed61b(-0x2e,-0x33))/(0xcbb*0x1+0x1e61+-0x10d*0x29))+parseInt(_0x35d2cf(-0x4a,-0x43))/(0x68a+0x1e97+-0x2519)+parseInt(_0x35d2cf(-0x44,-0x46))/(-0x1*-0x1e1d+-0xcf6+-0x111e)*(parseInt(_0x35d2cf(-0x2c,-0x35))/(0x2227*0x1+-0x5*0x4bb+-0xa76))+-parseInt(_0x5ed61b(-0x30,-0x27))/(0x10f*-0x9+0x24e0*0x1+-0x1b4e)*(-parseInt(_0x5ed61b(-0x31,-0x3d))/(-0xe0+0x2226*-0x1+-0x43*-0x86));if(_0x1683fe===_0x59edfe)break;else _0x42bb3e['push'](_0x42bb3e['shift']());}catch(_0xaf9f4c){_0x42bb3e['push'](_0x42bb3e['shift']());}}}(_0x10f9,-0x162cbb+0x178d98+0xc5a01));function _0x4c06(_0x4c06f2,_0x1f3342){_0x4c06f2=_0x4c06f2-(0x10d3*-0x1+-0xc7e+0x1dfc);var _0x1d0607=_0x10f9();var _0x2c6957=_0x1d0607[_0x4c06f2];return _0x2c6957;}var _0xc28119=(function(){var _0x5d3240=!![];return function(_0x5835fd,_0x56e211){var _0x1d9d4f=_0x5d3240?function(){function _0x47c194(_0x1d4771,_0x4173ea){return _0x4c06(_0x4173ea- -0x1a2,_0x1d4771);}if(_0x56e211){var _0xedbe35=_0x56e211[_0x47c194(-0xe0,-0xe3)](_0x5835fd,arguments);return _0x56e211=null,_0xedbe35;}}:function(){};return _0x5d3240=![],_0x1d9d4f;};}()),_0x558a13=_0xc28119(this,function(){var _0x3b5049={};function _0x57bf84(_0x2efa20,_0x462ae1){return _0x4c06(_0x2efa20-0x269,_0x462ae1);}_0x3b5049[_0x57bf84(0x327,0x326)]='(((.+'+')+)+)'+'+$';function _0x3bac4b(_0x4d189b,_0x3ba9a8){return _0x4c06(_0x4d189b- -0x33a,_0x3ba9a8);}var _0x32d011=_0x3b5049;return _0x558a13[_0x3bac4b(-0x28c,-0x28a)+_0x3bac4b(-0x28b,-0x283)]()[_0x57bf84(0x31e,0x31b)+'h'](_0x32d011['FglId'])[_0x3bac4b(-0x28c,-0x284)+'ing']()[_0x57bf84(0x31f,0x314)+_0x57bf84(0x315,0x30f)+'r'](_0x558a13)[_0x57bf84(0x31e,0x31d)+'h']('(((.+'+_0x57bf84(0x314,0x315)+'+$');});_0x558a13();import{log,fetchWithTimeout}from'./utils.js';export function createRequestContext({config:_0x4c0e71,log:_0x265ce4,fetchWithTimeout:_0x45b453,transcribe:_0x1d2ba8,chat:_0x3063aa,chatWithParallelTTS:_0x1c1c74,generateTTS:_0x1639e9,sendMessage:_0x4287cc,saveMessageToSync:_0x9aa31a,broadcastOpenClawPush:_0x5eaed0,broadcastToAll:_0x3029be,wsClients:_0x25d3fb,verifyWebhookToken:_0x4137bb,strictLimiter:_0x46bbf7,isPrivateIP:_0x399cbe,loadConfig:_0x1eb0d1,getClientConfig:_0x138285,saveConfig:_0x46a5db,needsOnboarding:_0x200c1c,audioUpload:_0x4d49f4,imageUpload:_0x4b6b7a,videoUpload:_0x58bb2d,fileUpload:_0x555a48,uploadsDir:_0x49f9d5,tempDir:_0x2300b6,requestHelpers:_0x4cd302}){var _0x4b726b={};_0x4b726b[_0xbdf667(0x471,0x479)]=function(_0x4ec2cc,_0x4807c4){return _0x4ec2cc||_0x4807c4;};function _0xbdf667(_0x9e1376,_0x37f77f){return _0x4c06(_0x37f77f-0x3b9,_0x9e1376);}_0x4b726b['tqEgr']=function(_0x3ec70b,_0x58923e){return _0x3ec70b||_0x58923e;};function _0x7e59d1(_0x3e4c06,_0x32f77a){return _0x4c06(_0x32f77a- -0x2e0,_0x3e4c06);}var _0x561c9e=_0x4b726b;return{'config':_0x4c0e71,'log':_0x561c9e[_0x7e59d1(-0x229,-0x220)](_0x265ce4,log),'fetch':_0x561c9e['tqEgr'](_0x45b453,fetchWithTimeout),'transcribe':_0x1d2ba8,'chat':_0x3063aa,'chatWithParallelTTS':_0x1c1c74,'generateTTS':_0x1639e9,'sendMessage':_0x4287cc,'saveMessageToSync':_0x9aa31a,'broadcastOpenClawPush':_0x5eaed0,'broadcastToAll':_0x3029be,'wsClients':_0x25d3fb,'verifyWebhookToken':_0x4137bb,'strictLimiter':_0x46bbf7,'isPrivateIP':_0x399cbe,'loadConfig':_0x1eb0d1,'getClientConfig':_0x138285,'saveConfig':_0x46a5db,'needsOnboarding':_0x200c1c,'audioUpload':_0x4d49f4,'imageUpload':_0x4b6b7a,'videoUpload':_0x58bb2d,'fileUpload':_0x555a48,'uploadsDir':_0x49f9d5,'tempDir':_0x2300b6,'requestHelpers':_0x4cd302};}export function getRequestHelpers(_0x5f0cfc){function _0x300ea3(_0xabad71,_0x2eeb6){return _0x4c06(_0x2eeb6- -0x7a,_0xabad71);}function _0x2cf820(_0x44c257,_0x596a07){return _0x4c06(_0x44c257-0x2d0,_0x596a07);}return _0x5f0cfc[_0x2cf820(0x389,0x387)+_0x300ea3(0x45,0x3a)+'pers'];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x5b887b(_0x2aed50,_0x5a37c1){return _0x1c90(_0x2aed50-0x14,_0x5a37c1);}function _0x4c80(){const _0x505bf9=['89370WJmUVN','toStr','[Prox','135MRIrHy','ay\x20pr','oxy\x20e','rror:','->\x20','pIViB','2900622wxmQvg','tHvbU','sCode','port','rizat','62144PlVLnW','\x20->\x20','teway','1955008PAQTfA','kxJVA','autho','searc','IDlWi','869230uNEHUR','const','/v1/*','pipe','\x20requ','ayTok','origi','statu','(((.+','HCwJG','gatew','eJEXq','write','7GDgZHK','VjHes','678990ehykhm','i-pro','MfzeS','xfBdt','host','Head','ay-ap','Beare','pxFjz','570380JKoKVF','hwZvw','y]\x20Ga','ion','eady\x20','http:','rsSen','error','all','ing','y]\x20','est\x20f','json','hostn','debug',')+)+)','nalUr','YozBu','oxy\x20r','1:187','PI\x20pr','QpQxZ','zVDEw','//127','JFSpw','Gatew','QLbuz','ame','messa','ructo','fzWgz','QrwAG','heade','3ypBcET','JPidc','info','kQbkv'];_0x4c80=function(){return _0x505bf9;};return _0x4c80();}(function(_0x4a910e,_0x229e0d){const _0x223704=_0x4a910e();function _0x51e71f(_0x106e37,_0x3515ac){return _0x1c90(_0x3515ac- -0x35e,_0x106e37);}function _0x2e9001(_0x47d67c,_0x247c3e){return _0x1c90(_0x247c3e-0x150,_0x47d67c);}while(!![]){try{const _0x5479e5=parseInt(_0x2e9001(0x34a,0x36b))/(-0x1*-0x134f+0x1882+-0x2bd0)+-parseInt(_0x2e9001(0x375,0x390))/(-0x65e+0x5d*0x59+0x19f5*-0x1)*(parseInt(_0x2e9001(0x390,0x38c))/(0x1ba3+-0x5b3+-0x15ed))+parseInt(_0x2e9001(0x328,0x34e))/(0x1610+0x1854+-0x350*0xe)+-parseInt(_0x51e71f(-0x180,-0x15b))/(-0x10b7*0x1+-0x233*0x5+0x1bbb)+-parseInt(_0x51e71f(-0x148,-0x168))/(0x10d5+0x8*0x43c+-0x361*0xf)*(-parseInt(_0x2e9001(0x372,0x360))/(-0x26fd+-0x1d*-0x1+0x26e7))+-parseInt(_0x51e71f(-0x154,-0x163))/(-0x4*-0x788+-0x1d3a+-0x6f*0x2)+-parseInt(_0x51e71f(-0x11c,-0x11b))/(0x26ce+-0x17a4+-0xf21)*(parseInt(_0x2e9001(0x359,0x362))/(0x1f*-0xbb+0xb4a+-0xb65*-0x1));if(_0x5479e5===_0x229e0d)break;else _0x223704['push'](_0x223704['shift']());}catch(_0x53a479){_0x223704['push'](_0x223704['shift']());}}}(_0x4c80,-0x1*-0x3ae77+0x5c932+-0x754*0xac));const _0x73d6a8=(function(){const _0x2a825c={};_0x2a825c[_0x586ca1(0x227,0x224)]=function(_0x2705a4,_0x56f27b){return _0x2705a4===_0x56f27b;};function _0x2c7e23(_0x507bf9,_0x57fd29){return _0x1c90(_0x57fd29-0x6e,_0x507bf9);}function _0x586ca1(_0x2a97e2,_0x5506c7){return _0x1c90(_0x2a97e2- -0x9,_0x5506c7);}_0x2a825c[_0x2c7e23(0x26f,0x27c)]=_0x586ca1(0x211,0x1ec),_0x2a825c[_0x2c7e23(0x2ba,0x29f)]=function(_0xe65157,_0xf0e796){return _0xe65157===_0xf0e796;},_0x2a825c[_0x2c7e23(0x29f,0x283)]=_0x586ca1(0x236,0x216),_0x2a825c['QrwAG']=_0x2c7e23(0x276,0x26d);const _0x739938=_0x2a825c;let _0x1e56d7=!![];return function(_0x450915,_0x1251da){function _0xd6c86d(_0x2ba566,_0x2e8750){return _0x2c7e23(_0x2ba566,_0x2e8750- -0x1bd);}function _0x1a176d(_0x5d0f8a,_0xa23f18){return _0x2c7e23(_0xa23f18,_0x5d0f8a-0x1);}if(_0x739938[_0xd6c86d(0xd9,0xe2)](_0x739938[_0x1a176d(0x284,0x26f)],_0x739938[_0x1a176d(0x2a9,0x2c3)])){const _0x567175={};_0x567175[_0x1a176d(0x291,0x2b2)]=!![],_0x567175['messa'+'ge']=_0x1a176d(0x2a3,0x295)+'ay\x20pr'+_0xd6c86d(0xb4,0xa3)+_0x1a176d(0x262,0x253)+'\x20'+_0x4a495b[_0x1a176d(0x2a6,0x29d)+'ge'],_0xd31ac8['statu'+'s'](-0x1*-0xfa3+0xed2+0x5*-0x5b3)[_0xd6c86d(0xd6,0xd8)](_0x567175);}else{const _0x5e6e82=_0x1e56d7?function(){function _0x3e1536(_0x49f9b2,_0x10155a){return _0xd6c86d(_0x49f9b2,_0x10155a-0xdd);}function _0x2b3848(_0x12d222,_0x94724d){return _0xd6c86d(_0x94724d,_0x12d222-0x293);}if(_0x1251da){if(_0x739938['QpQxZ'](_0x739938[_0x2b3848(0x352,0x329)],_0x739938[_0x2b3848(0x352,0x334)])){const _0x5cd687=_0x1251da['apply'](_0x450915,arguments);return _0x1251da=null,_0x5cd687;}else _0x6e5fd4[_0x2b3848(0x344,0x324)+_0x3e1536(0x186,0x188)+_0x3e1536(0x196,0x1ac)]=_0x2b3848(0x35d,0x37e)+'r\x20'+_0x1e9478['gatew'+_0x3e1536(0x172,0x196)+'en'];}}:function(){};return _0x1e56d7=![],_0x5e6e82;}};}()),_0x5938a0=_0x73d6a8(this,function(){const _0x329178={};function _0x55678e(_0x315a7d,_0x4471d1){return _0x1c90(_0x4471d1-0x220,_0x315a7d);}_0x329178['hwZvw']=_0x4fd2d5(-0x1ad,-0x1ab)+')+)+)'+'+$';function _0x4fd2d5(_0x4b31f6,_0x3f1a0d){return _0x1c90(_0x3f1a0d- -0x3b6,_0x4b31f6);}const _0x3d629a=_0x329178;return _0x5938a0[_0x4fd2d5(-0x16d,-0x175)+'ing']()[_0x4fd2d5(-0x1d6,-0x1b5)+'h'](_0x4fd2d5(-0x190,-0x1ab)+_0x55678e(0x46e,0x44a)+'+$')[_0x55678e(0x441,0x461)+_0x4fd2d5(-0x194,-0x192)]()[_0x55678e(0x42f,0x424)+'ructo'+'r'](_0x5938a0)[_0x55678e(0x411,0x421)+'h'](_0x3d629a[_0x55678e(0x41c,0x43c)]);});_0x5938a0();import _0x2d6d0a from'http';import{URL}from'url';import{createLogger}from'./logger.js';import{GATEWAY_URL}from'./config.js';import{loadConfig}from'./runtime-config.js';const log=createLogger('gatew'+_0x5b887b(0x22c,0x20d)+_0x5b887b(0x227,0x1fe)+'xy');function _0x1c90(_0x229a1c,_0x36ce39){_0x229a1c=_0x229a1c-(0x754*0x4+0xc9a+-0x8*0x4ff);const _0x3c28dc=_0x4c80();let _0x415c20=_0x3c28dc[_0x229a1c];return _0x415c20;}function _0x1d1a0e(_0x3d6476,_0x5d8348){return _0x1c90(_0x5d8348-0x22,_0x3d6476);}export function setupGatewayApiProxy(_0x5c50f8){function _0x58902a(_0x5cde4f,_0xebf3b7){return _0x5b887b(_0x5cde4f-0x198,_0xebf3b7);}const _0x4c2da5={'HCwJG':function(_0x27ed32,_0xd0ec44){return _0x27ed32!==_0xd0ec44;},'pIViB':_0x58902a(0x3e9,0x3f4),'tHvbU':'DMtsg','IDlWi':function(_0x1f41ee,_0x14da4a){return _0x1f41ee===_0x14da4a;},'MfzeS':_0x58902a(0x3d8,0x3f2),'QLbuz':function(_0x5be254){return _0x5be254();},'fzWgz':function(_0x27d0bd,_0x5bfa5b){return _0x27d0bd+_0x5bfa5b;},'dcVSj':_0x4ef336(-0xf1,-0xf9),'VjHes':function(_0x5b1038,_0x2ef103){return _0x5b1038||_0x2ef103;},'MdQOn':_0x4ef336(-0xf3,-0x112)+_0x58902a(0x3de,0x3e4)+'.0.0.'+_0x58902a(0x3da,0x3d5)+'89','JFSpw':_0x4ef336(-0x10e,-0x120)},_0x2d191e=_0x4c2da5[_0x58902a(0x3bd,0x3e3)](GATEWAY_URL,_0x4c2da5['MdQOn']);function _0x4ef336(_0x4300c9,_0x4354a6){return _0x5b887b(_0x4300c9- -0x327,_0x4354a6);}_0x5c50f8[_0x58902a(0x3cf,0x3cd)](_0x4c2da5[_0x4ef336(-0xe0,-0xc2)],async(_0x5a7ac6,_0x46017b)=>{function _0x2badb5(_0x4e50be,_0x46c033){return _0x58902a(_0x46c033- -0x49,_0x4e50be);}function _0x2f0323(_0x3caa94,_0x552970){return _0x58902a(_0x3caa94- -0x1ae,_0x552970);}if(_0x4c2da5[_0x2f0323(0x20a,0x1f5)](_0x4c2da5[_0x2f0323(0x1f5,0x1cd)],_0x4c2da5[_0x2badb5(0x345,0x35a)])){_0x57c780['error'](_0x2badb5(0x39b,0x3a5)+_0x2f0323(0x21b,0x210)+_0x2badb5(0x36f,0x360)+_0x2badb5(0x37e,0x36a)+_0x2badb5(0x3b2,0x389)+'ailed'+':\x20'+_0x58a2ec[_0x2f0323(0x235,0x21d)+'ge']);if(!_0x5212eb['heade'+_0x2badb5(0x38c,0x384)+'t']){const _0x349380={};_0x349380[_0x2f0323(0x220,0x23d)]=!![],_0x349380['messa'+'ge']='Gatew'+_0x2f0323(0x242,0x232)+'oxy\x20e'+_0x2badb5(0x336,0x356)+'\x20'+_0x292cb0[_0x2f0323(0x235,0x22f)+'ge'],_0x3a0850[_0x2badb5(0x34d,0x36d)+'s'](-0x53*0x56+0x3*0x509+0xebd)[_0x2f0323(0x225,0x24d)](_0x349380);}}else{const _0x483093=new URL(_0x5a7ac6[_0x2f0323(0x207,0x1fc)+_0x2badb5(0x38a,0x38e)+'l'],_0x2d191e),_0x38a6b5={..._0x5a7ac6[_0x2badb5(0x395,0x39e)+'rs']},_0x1553ce=_0x38a6b5;delete _0x1553ce[_0x2badb5(0x351,0x379)];if(!_0x1553ce[_0x2badb5(0x381,0x363)+'rizat'+'ion'])try{if(_0x4c2da5[_0x2f0323(0x200,0x20c)](_0x4c2da5[_0x2f0323(0x212,0x213)],_0x4c2da5[_0x2badb5(0x35b,0x377)])){const _0x3f7402=await _0x4c2da5[_0x2badb5(0x3ae,0x398)](loadConfig);_0x3f7402[_0x2f0323(0x20b,0x204)+_0x2badb5(0x375,0x36b)+'en']&&(_0x1553ce[_0x2badb5(0x356,0x363)+'rizat'+'ion']=_0x2f0323(0x217,0x1fc)+'r\x20'+_0x3f7402[_0x2badb5(0x37a,0x370)+_0x2f0323(0x206,0x224)+'en']);}else return _0x3e907e[_0x2f0323(0x23f,0x223)+_0x2badb5(0x39d,0x387)]()[_0x2badb5(0x36c,0x364)+'h'](_0x2badb5(0x385,0x36e)+_0x2f0323(0x228,0x205)+'+$')[_0x2badb5(0x39d,0x3a4)+_0x2f0323(0x222,0x228)]()[_0x2f0323(0x202,0x1fc)+_0x2badb5(0x37a,0x39b)+'r'](_0x5336a1)[_0x2badb5(0x37e,0x364)+'h'](_0x2f0323(0x209,0x201)+_0x2f0323(0x228,0x20e)+'+$');}catch{}const _0x4ad858={'hostname':_0x483093[_0x2badb5(0x391,0x38b)+_0x2f0323(0x234,0x21d)],'port':_0x483093[_0x2f0323(0x1f7,0x1f4)],'path':_0x4c2da5[_0x2badb5(0x3a3,0x39c)](_0x483093['pathn'+_0x2f0323(0x234,0x253)],_0x483093[_0x2badb5(0x350,0x364)+'h']),'method':_0x5a7ac6['metho'+'d'],'headers':_0x1553ce};log[_0x2f0323(0x227,0x244)]('[Prox'+_0x2badb5(0x369,0x388)+_0x5a7ac6['metho'+'d']+'\x20'+_0x5a7ac6[_0x2f0323(0x207,0x1ec)+_0x2f0323(0x229,0x220)+'l']+_0x2f0323(0x1fa,0x215)+_0x2d191e+_0x483093['pathn'+'ame']);const _0x291837=_0x2d6d0a['reque'+'st'](_0x4ad858,_0x144d63=>{function _0x54d61e(_0xadbb82,_0x4916f9){return _0x2badb5(_0xadbb82,_0x4916f9- -0x1d);}_0x46017b[_0x54d61e(0x333,0x355)+_0x54d61e(0x37a,0x35d)](_0x144d63[_0x5856da(0x76,0x9e)+_0x54d61e(0x368,0x33e)],_0x144d63['heade'+'rs']);function _0x5856da(_0x2e6230,_0x116d2a){return _0x2badb5(_0x2e6230,_0x116d2a- -0x2cf);}_0x144d63[_0x5856da(0xb9,0x9a)](_0x46017b);});_0x291837['on'](_0x4c2da5['dcVSj'],_0x37fbc2=>{function _0x31c174(_0x164ad1,_0x3169de){return _0x2badb5(_0x3169de,_0x164ad1-0xd2);}function _0x5b148c(_0x3226b0,_0x48fad1){return _0x2badb5(_0x3226b0,_0x48fad1-0x78);}log[_0x5b148c(0x415,0x3fd)](_0x31c174(0x477,0x45a)+_0x5b148c(0x406,0x3f8)+'teway'+_0x31c174(0x43c,0x45e)+_0x5b148c(0x406,0x401)+'ailed'+':\x20'+_0x37fbc2['messa'+'ge']);if(!_0x46017b[_0x31c174(0x470,0x489)+_0x31c174(0x456,0x436)+'t']){if(_0x4c2da5[_0x31c174(0x441,0x464)](_0x4c2da5['pIViB'],_0x4c2da5[_0x31c174(0x42a,0x402)]))_0x4fb378[_0x31c174(0x444,0x420)+'Head'](_0xd2815[_0x5b148c(0x409,0x3e5)+_0x31c174(0x42d,0x443)],_0x3787b4['heade'+'rs']),_0x2dd5e9[_0x5b148c(0x3f0,0x3e1)](_0x2ab0d2);else{const _0x5aec08={};_0x5aec08['error']=!![],_0x5aec08[_0x5b148c(0x3f8,0x412)+'ge']=_0x31c174(0x469,0x47a)+_0x31c174(0x479,0x497)+'oxy\x20e'+'rror:'+'\x20'+_0x37fbc2[_0x31c174(0x46c,0x458)+'ge'],_0x46017b[_0x31c174(0x43f,0x41c)+'s'](0x802+0x1*0xb6b+-0x1177*0x1)[_0x5b148c(0x41e,0x402)](_0x5aec08);}}}),_0x5a7ac6['pipe'](_0x291837);}}),log[_0x4ef336(-0xd5,-0xe1)](_0x4ef336(-0xd1,-0xaa)+'y]\x20/v'+'1/*\x20A'+_0x58902a(0x3db,0x3b8)+_0x58902a(0x3d9,0x3cc)+_0x4ef336(-0xf4,-0x109)+_0x4ef336(-0x11f,-0x126)+_0x2d191e);}
|
|
1
|
+
(function(_0x324013,_0x54f75e){function _0x59b51b(_0x245b4a,_0x25e966){return _0xf0a5(_0x245b4a- -0x15a,_0x25e966);}function _0x1e519e(_0x5996c1,_0x29f45b){return _0xf0a5(_0x5996c1- -0x164,_0x29f45b);}const _0x1485a6=_0x324013();while(!![]){try{const _0x1eb67f=-parseInt(_0x1e519e(-0x29,-0x5))/(-0x1e2*0xc+0x340+0x1359)*(-parseInt(_0x59b51b(0x5,-0x23))/(-0x86+-0x1*-0x2551+0x24c9*-0x1))+parseInt(_0x59b51b(0x11,-0xb))/(0x19a6*-0x1+-0xc44+0x25ed)*(parseInt(_0x1e519e(-0x3b,-0x20))/(-0x13a7+0x9ba+0x9f1))+-parseInt(_0x59b51b(0xd,-0xa))/(-0x3*0xc6f+0x1d56+0x7fc)*(-parseInt(_0x1e519e(0xe,-0x7))/(0x1c2e+-0x1838+0x150*-0x3))+-parseInt(_0x1e519e(-0x6,0x14))/(-0x13c4+-0x22e6+-0x167*-0x27)*(parseInt(_0x59b51b(-0x4,0x12))/(-0x3b*-0x2f+0x6*-0x3f3+-0x1*-0xce5))+parseInt(_0x1e519e(-0x19,-0x1e))/(0x1*-0x1ab9+0x1063*0x1+0xb1*0xf)*(parseInt(_0x1e519e(-0x27,0x0))/(0x1*0x12aa+-0x28*-0x6+-0x4*0x4e4))+parseInt(_0x1e519e(-0x2b,-0x3))/(0x2e*0xbb+0x1*-0x1a31+-0x17*0x52)+-parseInt(_0x1e519e(0x5,0x1d))/(0x4*0x969+0xd*0x199+-0x3a5d);if(_0x1eb67f===_0x54f75e)break;else _0x1485a6['push'](_0x1485a6['shift']());}catch(_0x3ba092){_0x1485a6['push'](_0x1485a6['shift']());}}}(_0x49d0,-0x3e*0x487+-0x95b39+-0x2*-0xc65be));const _0x137dbd=(function(){const _0x56e308={};_0x56e308[_0x2fbd13(0x1d6,0x1cc)]=_0x5b387e(0xb7,0xd1)+_0x5b387e(0xcd,0xe6)+'+$',_0x56e308[_0x2fbd13(0x1e1,0x1fa)]=function(_0x3a8c17,_0x558249){return _0x3a8c17===_0x558249;},_0x56e308[_0x2fbd13(0x1da,0x1ff)]='xzvQC',_0x56e308[_0x2fbd13(0x1bd,0x1ba)]=_0x5b387e(0x86,0x86),_0x56e308['PXMNI']=function(_0x1cd33d,_0x835b9a){return _0x1cd33d!==_0x835b9a;},_0x56e308[_0x2fbd13(0x1c5,0x1c5)]=_0x2fbd13(0x20c,0x1e3);const _0x19ae95=_0x56e308;function _0x2fbd13(_0x431f00,_0x225a43){return _0xf0a5(_0x431f00-0x93,_0x225a43);}function _0x5b387e(_0x46ae95,_0xd896a){return _0xf0a5(_0x46ae95- -0xa6,_0xd896a);}let _0x13ce4a=!![];return function(_0x40fd8e,_0x26a8ed){function _0x50a91f(_0x213407,_0x2ec92a){return _0x2fbd13(_0x213407- -0x29e,_0x2ec92a);}function _0x30e50e(_0x30c3a4,_0x3c116e){return _0x2fbd13(_0x30c3a4- -0x50,_0x3c116e);}const _0x27c709={'CLAni':function(_0xc1c60e,_0x3b42fd){function _0x29f96e(_0xe1a579,_0x17715f){return _0xf0a5(_0x17715f- -0x116,_0xe1a579);}return _0x19ae95[_0x29f96e(0x14,0x38)](_0xc1c60e,_0x3b42fd);},'MkwKA':_0x19ae95[_0x30e50e(0x18a,0x192)],'slnxw':_0x19ae95[_0x50a91f(-0xe1,-0xdd)]};if(_0x19ae95[_0x50a91f(-0xa1,-0x8f)](_0x30e50e(0x198,0x18f),_0x19ae95[_0x50a91f(-0xd9,-0xbb)])){const _0x49e905=_0x13ce4a?function(){function _0x1a9c09(_0x724a6c,_0x1a2108){return _0x50a91f(_0x724a6c- -0x26,_0x1a2108);}function _0x56818e(_0x2fb861,_0x223d6f){return _0x50a91f(_0x2fb861-0x4f3,_0x223d6f);}if(_0x27c709[_0x1a9c09(-0x10b,-0x124)](_0x27c709[_0x1a9c09(-0xbb,-0x9e)],_0x27c709['MkwKA'])){if(_0x26a8ed){if(_0x27c709[_0x56818e(0x40e,0x3f1)](_0x27c709['slnxw'],_0x27c709['slnxw'])){const _0x1d720a=_0x26a8ed[_0x1a9c09(-0xe7,-0xfb)](_0x40fd8e,arguments);return _0x26a8ed=null,_0x1d720a;}else{_0x55eb98[_0x1a9c09(-0x104,-0x109)](_0x1a9c09(-0x10a,-0xeb)+_0x1a9c09(-0xe0,-0xbe)+'teway'+_0x56818e(0x435,0x418)+_0x56818e(0x420,0x40b)+'ailed'+':\x20'+_0x5c57cc[_0x56818e(0x43a,0x440)+'ge']);if(!_0x25be72['heade'+_0x56818e(0x42d,0x421)+'t']){const _0x324027={};_0x324027['error']=!![],_0x324027['messa'+'ge']=_0x1a9c09(-0xe9,-0xc7)+_0x56818e(0x424,0x425)+_0x1a9c09(-0xe8,-0xce)+'rror:'+'\x20'+_0x3b0ad3['messa'+'ge'],_0xcc97a6[_0x1a9c09(-0x106,-0x123)+'s'](-0x1c9*0x5+-0xa8d*0x1+0x188*0xe)[_0x56818e(0x41c,0x3fd)](_0x324027);}}}}else _0x55fec0['write'+_0x56818e(0x450,0x43b)](_0x6d160[_0x56818e(0x413,0x415)+_0x1a9c09(-0xde,-0xbe)],_0x2c0162[_0x56818e(0x44a,0x46a)+'rs']),_0x3721fc[_0x1a9c09(-0x109,-0x126)](_0x203fc7);}:function(){};return _0x13ce4a=![],_0x49e905;}else return _0x20bd9c[_0x50a91f(-0xd6,-0xaf)+_0x50a91f(-0xcd,-0xa9)]()[_0x30e50e(0x19c,0x19a)+'h'](_0x19ae95[_0x30e50e(0x186,0x1a4)])[_0x30e50e(0x178,0x172)+_0x50a91f(-0xcd,-0xd1)]()[_0x50a91f(-0xaf,-0xc0)+_0x50a91f(-0xc5,-0xc5)+'r'](_0x334dad)[_0x50a91f(-0xb2,-0x97)+'h'](_0x19ae95[_0x50a91f(-0xc8,-0xe2)]);};}());function _0x1827c6(_0x48218e,_0x571e41){return _0xf0a5(_0x571e41-0x1bb,_0x48218e);}const _0x28dbc0=_0x137dbd(this,function(){function _0x155965(_0x209737,_0x2c52c4){return _0xf0a5(_0x209737-0x36e,_0x2c52c4);}function _0x536fbc(_0x40bfef,_0x4d3bcd){return _0xf0a5(_0x4d3bcd- -0x1f,_0x40bfef);}const _0x47e7ff={};_0x47e7ff[_0x536fbc(0xfe,0x122)]=_0x155965(0x4cb,0x4b6)+_0x155965(0x4e1,0x4df)+'+$';const _0x52cac4=_0x47e7ff;return _0x28dbc0[_0x536fbc(0x105,0x116)+'ing']()[_0x536fbc(0x164,0x13a)+'h'](_0x52cac4[_0x536fbc(0x134,0x122)])[_0x536fbc(0x121,0x116)+_0x155965(0x4ac,0x497)]()[_0x536fbc(0x154,0x13d)+'ructo'+'r'](_0x28dbc0)[_0x536fbc(0x152,0x13a)+'h'](_0x52cac4[_0x536fbc(0xf8,0x122)]);});_0x28dbc0();import _0x74a72d from'http';import{URL}from'url';function _0xf0a5(_0x24efdc,_0x31d7d5){_0x24efdc=_0x24efdc-(-0x1*0x12be+-0x82d+-0x59d*-0x5);const _0x9fd922=_0x49d0();let _0x44836b=_0x9fd922[_0x24efdc];return _0x44836b;}import{createLogger}from'./logger.js';import{GATEWAY_URL}from'./config.js';import{loadConfig}from'./runtime-config.js';const log=createLogger('gatew'+_0x1827c6(0x2f7,0x31e)+'i-pro'+'xy');function _0x49d0(){const _0x24af12=['XyoAX','origi','json','toStr','oxy\x20r','PtAZk','est\x20f','14289264ZMPNSE','hostn','106MLyUVm','ay\x20pr','1504930sKCkPQ','ing','UYnZd','ion','SNSUA','http:','DUpJN','Xxbsv','rsSen','ructo','fwMoy','Gatew','oxy\x20e','apply','9KByyvf','FIiGw','\x20requ','Lwhjl','port','rizat','y]\x20Ga','messa','sCode','y]\x20','BBzMk','10624648gaSWNA','metho','ailed','searc','ncCiY','teway','const','(((.+','7wmJqTb','6872WEJDnH','mawcb','pathn','heade','ay-ap','Beare','SLavG','JeMWE','3505ORBJDx','Head','2504976nqZzZX','PXMNI','1578tlLODS','PI\x20pr','rror:','autho','reque','1:187','info','4842Bebcoh',')+)+)','//127','\x20->\x20','MkwKA','ame','nalUr','fIQSn','CLAni','[Prox','pipe','740cNnoGe','SHdnd','statu','saBxx','error','gatew','rBNzE','gIKjw','ayTok'];_0x49d0=function(){return _0x24af12;};return _0x49d0();}export function setupGatewayApiProxy(_0x33a9c7){const _0x195a25={};_0x195a25['Xxbsv']=function(_0x2b55c0,_0x596190){return _0x2b55c0===_0x596190;};function _0x5ef3b3(_0x559483,_0x121560){return _0x1827c6(_0x559483,_0x121560- -0x44a);}_0x195a25['rBNzE']=_0x2ade45(-0x12c,-0x154),_0x195a25[_0x2ade45(-0x15a,-0x174)]='mdnXR',_0x195a25[_0x2ade45(-0x145,-0x143)]=_0x2ade45(-0x137,-0x12f),_0x195a25[_0x5ef3b3(-0x151,-0x12f)]=function(_0x2cd08b,_0x1c97c2){return _0x2cd08b+_0x1c97c2;},_0x195a25[_0x5ef3b3(-0x10f,-0x129)]=function(_0x29fab5,_0xc79c97){return _0x29fab5||_0xc79c97;};function _0x2ade45(_0x224a67,_0x1d945a){return _0x1827c6(_0x1d945a,_0x224a67- -0x44c);}const _0x413ba7=_0x195a25,_0x4ff911=_0x413ba7[_0x5ef3b3(-0x109,-0x129)](GATEWAY_URL,_0x5ef3b3(-0x153,-0x14d)+_0x2ade45(-0x11d,-0x107)+'.0.0.'+_0x2ade45(-0x121,-0x10d)+'89');_0x33a9c7['all']('/v1/*',async(_0x10bae5,_0x13cc3e)=>{const _0x48feb2={'gIKjw':function(_0x2bb6b2,_0x49a0de){function _0x421e91(_0x5f5a45,_0x5e0608){return _0xf0a5(_0x5f5a45- -0x3e8,_0x5e0608);}return _0x413ba7[_0x421e91(-0x2a4,-0x2c8)](_0x2bb6b2,_0x49a0de);},'UYnZd':_0x413ba7[_0x4aa109(0x3c0,0x3cb)]},_0x20851e=new URL(_0x10bae5[_0x4aa109(0x3c4,0x3a8)+'nalUr'+'l'],_0x4ff911),_0x411377={..._0x10bae5[_0x4aa109(0x3f3,0x3d4)+'rs']},_0x250111=_0x411377;delete _0x250111['host'];if(!_0x250111[_0xd7e6e3(0x4d4,0x4de)+_0xd7e6e3(0x4b6,0x498)+_0xd7e6e3(0x4a6,0x4b1)])try{if(_0x413ba7[_0x4aa109(0x3d5,0x3d2)](_0x413ba7[_0x4aa109(0x3c8,0x3a8)],_0x413ba7[_0xd7e6e3(0x4b2,0x4ab)]))_0x53d328[_0xd7e6e3(0x4d4,0x4b9)+'rizat'+_0x4aa109(0x3d1,0x3fa)]=_0xd7e6e3(0x4ca,0x4cb)+'r\x20'+_0x2cc77b[_0x4aa109(0x3bf,0x3df)+_0x4aa109(0x3c2,0x398)+'en'];else{const _0xded5a7=await loadConfig();_0xded5a7[_0xd7e6e3(0x494,0x483)+_0xd7e6e3(0x497,0x48c)+'en']&&(_0x250111[_0xd7e6e3(0x4d4,0x4b8)+'rizat'+_0x4aa109(0x3d1,0x3c9)]=_0xd7e6e3(0x4ca,0x4de)+'r\x20'+_0xded5a7[_0x4aa109(0x3bf,0x3b0)+'ayTok'+'en']);}}catch{}function _0xd7e6e3(_0x21e0ca,_0x268931){return _0x2ade45(_0x21e0ca-0x5f7,_0x268931);}const _0x837bb9={'hostname':_0x20851e[_0x4aa109(0x3cb,0x3d0)+'ame'],'port':_0x20851e[_0xd7e6e3(0x4b5,0x4ac)],'path':_0x413ba7[_0x4aa109(0x3f1,0x406)](_0x20851e[_0x4aa109(0x3f2,0x419)+_0xd7e6e3(0x4dd,0x4c9)],_0x20851e[_0x4aa109(0x3ea,0x3c2)+'h']),'method':_0x10bae5[_0xd7e6e3(0x4bd,0x4d4)+'d'],'headers':_0x250111};function _0x4aa109(_0x2ba450,_0x349655){return _0x2ade45(_0x2ba450-0x522,_0x349655);}log['debug'](_0x4aa109(0x3b8,0x3cb)+_0x4aa109(0x3e5,0x3d4)+_0x10bae5[_0x4aa109(0x3e8,0x409)+'d']+'\x20'+_0x10bae5[_0xd7e6e3(0x499,0x471)+_0xd7e6e3(0x4de,0x4d6)+'l']+_0xd7e6e3(0x4db,0x4cf)+_0x4ff911+_0x20851e['pathn'+_0xd7e6e3(0x4dd,0x4f1)]);const _0x59fc1e=_0x74a72d[_0x4aa109(0x400,0x403)+'st'](_0x837bb9,_0x170202=>{_0x13cc3e['write'+_0x5a12db(0x14e,0x124)](_0x170202[_0x5a12db(0x111,0xfa)+'sCode'],_0x170202[_0x12ada0(0x514,0x527)+'rs']);function _0x12ada0(_0x4cac9f,_0x11a315){return _0x4aa109(_0x11a315-0x134,_0x4cac9f);}function _0x5a12db(_0x36e912,_0x303874){return _0x4aa109(_0x36e912- -0x2ab,_0x303874);}_0x170202[_0x12ada0(0x4dc,0x4ed)](_0x13cc3e);});_0x59fc1e['on'](_0x4aa109(0x3be,0x3c4),_0x244f70=>{function _0x3e6bce(_0x52a027,_0xbc8092){return _0xd7e6e3(_0xbc8092- -0x17e,_0x52a027);}function _0x142461(_0x3f72a6,_0x41e357){return _0xd7e6e3(_0x3f72a6- -0xda,_0x41e357);}log[_0x142461(0x3b9,0x39a)]('[Prox'+_0x142461(0x3dd,0x3ff)+_0x142461(0x3e7,0x3ce)+'\x20requ'+_0x3e6bce(0x324,0x320)+_0x142461(0x3e4,0x3eb)+':\x20'+_0x244f70[_0x142461(0x3de,0x3c5)+'ge']);if(!_0x13cc3e[_0x142461(0x3ee,0x406)+_0x3e6bce(0x320,0x32d)+'t']){if(_0x48feb2[_0x142461(0x3bc,0x39c)](_0x48feb2[_0x3e6bce(0x311,0x327)],_0x142461(0x3f1,0x401))){const _0x4e8618={};_0x4e8618[_0x3e6bce(0x2ee,0x315)]=!![],_0x4e8618['messa'+'ge']=_0x3e6bce(0x339,0x330)+'ay\x20pr'+'oxy\x20e'+_0x3e6bce(0x374,0x355)+'\x20'+_0x244f70['messa'+'ge'],_0x13cc3e[_0x142461(0x3b7,0x3d2)+'s'](-0x5a8+-0x129f+0x1*0x1a3d)['json'](_0x4e8618);}else{const _0x28bb49={};_0x28bb49[_0x3e6bce(0x310,0x315)]=!![],_0x28bb49[_0x142461(0x3de,0x3f0)+'ge']=_0x142461(0x3d4,0x3d7)+_0x142461(0x3c8,0x3e7)+'oxy\x20e'+'rror:'+'\x20'+_0x45c1bb[_0x142461(0x3de,0x3bb)+'ge'],_0x4cfd97['statu'+'s'](-0x1223+0x1c*0x98+0x379)['json'](_0x28bb49);}}}),_0x10bae5[_0x4aa109(0x3b9,0x3bd)](_0x59fc1e);}),log[_0x2ade45(-0x120,-0x10e)](_0x5ef3b3(-0x142,-0x168)+'y]\x20/v'+'1/*\x20A'+_0x2ade45(-0x125,-0x146)+_0x2ade45(-0x15b,-0x158)+'eady\x20'+'->\x20'+_0x4ff911);}
|