@ranger-testing/ranger-cli 3.1.6 → 3.1.7-alpha.34400c2-56
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/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/deleteProfile.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/mcpBootstrap.js +1 -1
- package/build/commands/migrateProfile.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/cloudProfile.js +1 -1
- package/build/commands/utils/cloudProfileSession.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/legacyWarning.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/novaActCli.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/organizationEnvApi.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/projectsConfig.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/rangerwrightCli.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/scenarioOriginCheck.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/tunnelClient.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyFeatureNovaCli.js +1 -1
- package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
- package/package.json +2 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3a39a7=_0x5929;(function(_0x3e3bd2,_0x34d0ac){const _0xc7187=_0x5929,_0x3e1b81=_0x3e3bd2();while(!![]){try{const _0x5ac919=-parseInt(_0xc7187(0x1bc))/0x1+-parseInt(_0xc7187(0x123))/0x2*(-parseInt(_0xc7187(0x1cf))/0x3)+-parseInt(_0xc7187(0x15e))/0x4+-parseInt(_0xc7187(0x169))/0x5+parseInt(_0xc7187(0x14a))/0x6*(parseInt(_0xc7187(0x199))/0x7)+parseInt(_0xc7187(0x136))/0x8*(-parseInt(_0xc7187(0x178))/0x9)+parseInt(_0xc7187(0x16d))/0xa*(parseInt(_0xc7187(0x157))/0xb);if(_0x5ac919===_0x34d0ac)break;else _0x3e1b81['push'](_0x3e1b81['shift']());}catch(_0x42bbc4){_0x3e1b81['push'](_0x3e1b81['shift']());}}}(_0x33f8,0xcbc6a));import{spawn}from'child_process';import{createHash}from'crypto';import{access,chmod,mkdir,readFile,readdir,stat,writeFile}from'fs/promises';import{createServer}from'net';function _0x33f8(){const _0x4165f5=['NBEWt','\x0astderr:\x20','1448671XMogaI','CttIy','nova-act-browser','cdpEndpoint','value','--headless','vtHmN','stderr:\x20','utf-8','act\x20browser\x20doctor\x20--json\x20exited\x20with\x20code=','IszOE','update','logsDirectory','sessionId','jYkuv','pfBVK','RZoVH','hkXqC','cookies','Failed\x20to\x20allocate\x20hydration\x20browser\x20port','LHWjF','iiZGE','MNQds','userDataDir','subcommand','exitCode','FHHFd','close','hex','storageStatePath','Cookies','ktXnC','SIGTERM','http://127.0.0.1:','VVmPu','137365tGlngm','OXPai','addCookies','tool','localStorage','pipe','status','nova-act[cli]','SIGKILL','\x20signal=','Vizss','BaKuv','YkCOx','ZamHR','name','ignore','message','FKCDH','KAQoH','78900WoTIEm','\x20browser\x20\x22$@\x22\x20','ArBhP','VzMVC','\x20browser','lfhwO','browserProfilePath','parse','entries','Nova\x20Act\x20CLI\x20preflight\x20failed,\x20so\x20Ranger\x20did\x20not\x20start\x20a\x20browser\x20session.','38WZVkNm','push','LtLMq','acjVS','Local\x20State','TOGyW','browser','error','Hydration\x20browser\x20exited\x20before\x20CDP\x20became\x20available\x20with\x20code\x20','export','For\x20AWS\x20SSO,\x20set\x20AWS_PROFILE\x20and\x20run:\x20aws\x20sso\x20login\x20--profile\x20<profile>','IFqqK','ZsORy','logs_directory','EltBG','yhybp','length','Nova\x20profile\x20hydration\x20browser\x20did\x20not\x20expose\x20a\x20context','Fmbmj','45040xNQpLc','BvVEx','split','slice','unknown','mtimeMs','join','isDirectory','sort','\x0afi\x0a\x0aexec\x20','Ijxjs','executablePath','/.local/bin','PATH','headless','floor','OPcIb','digest','stderr','fail','6bBpkCX','dWStg','nova-act-cli\x20transport\x20requires\x20the\x20Nova\x20Act\x20CLI.\x20Ranger\x20could\x20not\x20find\x20`','ngvZr','checks','WILPb','now','raipo','NzVKd','sha256','VpFAR','string','timeoutMs','24242075DTKUJq','yxXfW','filter','--version','expires','null','CPNtj','4444148HcddQv','session','gbuTr','origin','vqtxI','ybYtr','Default','qQPLb','quaJA','\x0astdout:\x20','BUZzd','8146825NvdTgg','RNUfG','origins','map','20xFvWBN','stdout','kill','rg-','match','size','toString','data','--help','args','env','2241MenKgF','vdmLK','KMaIu','domcontentloaded','leveldb','naSYl','browserCommandPath','EgLRo','bucJz','byteLength','NwMuo','trim','--headed','Preferences','timed\x20out\x20after\x20','hIRJJ','--browser-profile-path','port','WSTff','`,\x20and\x20`uv`\x20is\x20not\x20available\x20to\x20install\x20it.\x0aInstall\x20uv,\x20or\x20run:\x20uv\x20tool\x20install\x20\x22','--json','find','address','aRBXP','--remote-debugging-port=','stdout:\x20','launchArgs','once','baseUrl','/opt/homebrew/bin','exit'];_0x33f8=function(){return _0x4165f5;};return _0x33f8();}import{delimiter,dirname,isAbsolute,join}from'path';import{homedir}from'os';import{chromium}from'playwright';import{quoteShellArg}from'./playwrightCli.js';export const NOVA_ACT_CLI_BINARY='act';export const NOVA_ACT_CLI_UV_PACKAGE=_0x3a39a7(0x1c3);const NOVA_ACT_CLI_PREVIEW_LIMIT=0xf0,NOVA_ACT_BOOTSTRAP_TIMEOUT_MS=0x2bf20,NOVA_PROFILE_HYDRATION_CDP_TIMEOUT_MS=0x3a98,NOVA_PROMOTED_SESSION_COOKIE_TTL_SECONDS=0x7*0x18*0x3c*0x3c;export function toNovaActCliSessionId(_0x526123){const _0x5785f1=_0x3a39a7,_0x24030e=createHash(_0x5785f1(0x153))['update'](_0x526123)[_0x5785f1(0x147)]('hex')['slice'](0x0,0xc);return _0x5785f1(0x170)+_0x24030e;}export async function inspectNovaStorageStateFile(_0x17978c){const _0x14f08e=_0x3a39a7,_0x4301fe={'JnUZy':function(_0x553530,_0x405302){return _0x553530(_0x405302);},'ypwZw':function(_0x5c648a,_0x2986c4,_0xc83206){return _0x5c648a(_0x2986c4,_0xc83206);},'GUxOZ':function(_0x4a3818,_0x4ea3e1){return _0x4a3818(_0x4ea3e1);},'yZLDA':'sha256','EltBG':function(_0x11fcc0,_0x4493a7){return _0x11fcc0/_0x4493a7;},'hIRJJ':function(_0x38b5d5,_0x4c2c64){return _0x38b5d5 instanceof _0x4c2c64;},'XezdL':function(_0x32f0fb,_0x3ce54d){return _0x32f0fb instanceof _0x3ce54d;}};try{const [_0x4e6a93,_0x4fd9f4]=await Promise['all']([_0x4301fe['JnUZy'](stat,_0x17978c),_0x4301fe['ypwZw'](readFile,_0x17978c,'utf-8')]),_0x1ecb82={'path':_0x17978c,'exists':!![],'byteLength':Buffer[_0x14f08e(0x181)](_0x4fd9f4),'sha256':_0x4301fe['GUxOZ'](createHash,_0x4301fe['yZLDA'])[_0x14f08e(0x1a4)](_0x4fd9f4)['digest'](_0x14f08e(0x1b5))};try{const _0x2c4440=JSON['parse'](_0x4fd9f4),_0x284b08=_0x2c4440[_0x14f08e(0x1ab)]??[],_0x4b4ada=Math[_0x14f08e(0x145)](_0x4301fe[_0x14f08e(0x131)](Date['now'](),0x3e8)),_0x432cd2=new Map();for(const _0x4ccea6 of _0x284b08){const _0x11bc36=_0x432cd2['get'](_0x4ccea6['domain'])??[];_0x11bc36['push'](_0x4ccea6[_0x14f08e(0x1ca)]),_0x432cd2['set'](_0x4ccea6['domain'],_0x11bc36);}return{..._0x1ecb82,'byteLength':_0x4e6a93[_0x14f08e(0x172)],'cookieCount':_0x284b08[_0x14f08e(0x133)],'cookieDomains':[..._0x432cd2[_0x14f08e(0x121)]()]['sort'](([_0x3eac01],[_0xc165cd])=>_0x3eac01['localeCompare'](_0xc165cd))['map'](([_0x2dc487,_0x3a5e4e])=>({'domain':_0x2dc487,'count':_0x3a5e4e[_0x14f08e(0x133)],'names':_0x3a5e4e[_0x14f08e(0x13e)]()['slice'](0x0,0x19)})),'httpOnlyCookieCount':_0x284b08[_0x14f08e(0x159)](_0x443624=>_0x443624['httpOnly'])[_0x14f08e(0x133)],'secureCookieCount':_0x284b08['filter'](_0x300c93=>_0x300c93['secure'])['length'],'sessionCookieCount':_0x284b08['filter'](_0x5e5150=>_0x5e5150[_0x14f08e(0x15b)]===-0x1)['length'],'expiredCookieCount':_0x284b08['filter'](_0x2547d1=>typeof _0x2547d1['expires']==='number'&&_0x2547d1[_0x14f08e(0x15b)]>0x0&&_0x2547d1[_0x14f08e(0x15b)]<_0x4b4ada)[_0x14f08e(0x133)],'originCount':_0x2c4440[_0x14f08e(0x16b)]?.[_0x14f08e(0x133)]??0x0,'origins':(_0x2c4440['origins']??[])[_0x14f08e(0x16c)](_0x2ca46f=>({'origin':_0x2ca46f['origin'],'localStorageCount':_0x2ca46f['localStorage']?.[_0x14f08e(0x133)]??0x0,'localStorageKeys':_0x2ca46f['localStorage']?.[_0x14f08e(0x16c)](_0x3dc1b7=>_0x3dc1b7[_0x14f08e(0x1ca)])['sort']()[_0x14f08e(0x139)](0x0,0x19)??[]}))};}catch(_0x449edd){return{..._0x1ecb82,'byteLength':_0x4e6a93['size'],'parseError':_0x4301fe[_0x14f08e(0x187)](_0x449edd,Error)?_0x449edd[_0x14f08e(0x1cc)]:String(_0x449edd)};}}catch(_0xc9581b){return{'path':_0x17978c,'exists':![],'readError':_0x4301fe['XezdL'](_0xc9581b,Error)?_0xc9581b[_0x14f08e(0x1cc)]:_0x4301fe['JnUZy'](String,_0xc9581b)};}}function _0x5929(_0x3808e8,_0x59613b){_0x3808e8=_0x3808e8-0x120;const _0x33f84f=_0x33f8();let _0x5929f5=_0x33f84f[_0x3808e8];return _0x5929f5;}export async function inspectNovaProfileFiles(_0x349c99){const _0x3bdb6b=_0x3a39a7,_0x4a0234={'aRBXP':function(_0x42b033,_0x2c843d,_0x41affd){return _0x42b033(_0x2c843d,_0x41affd);},'NzVKd':'Preferences','LHWjF':function(_0x10e3bf,_0x10fb0b,_0x366272){return _0x10e3bf(_0x10fb0b,_0x366272);},'cVyQg':_0x3bdb6b(0x1b7),'dWStg':function(_0x5987b6,_0x3d4b8e){return _0x5987b6(_0x3d4b8e);},'RNUfG':function(_0x155339,_0x21efa3){return _0x155339(_0x21efa3);}},_0x5a9d52=_0x4a0234['aRBXP'](join,_0x349c99[_0x3bdb6b(0x1b0)],'Local\x20State'),_0x38d25d=_0x4a0234[_0x3bdb6b(0x18f)](join,_0x349c99[_0x3bdb6b(0x1d5)],_0x4a0234[_0x3bdb6b(0x152)]),_0x4134b4=_0x4a0234[_0x3bdb6b(0x1ad)](join,_0x349c99['browserProfilePath'],_0x4a0234['cVyQg']),_0x49fbde=join(_0x349c99[_0x3bdb6b(0x1d5)],'Network',_0x4a0234['cVyQg']),_0x4fff7e=join(_0x349c99['browserProfilePath'],'Local\x20Storage'),_0x2dc3c7=join(_0x4fff7e,_0x3bdb6b(0x17c)),[_0x20a949,_0x4dbd7e,_0x533ae8,_0x26495b,_0x6b2ab9,_0x211ede,_0x5bc1c4,_0x31c4a7,_0x10e21c,_0x567b86,_0x58f6c5]=await Promise['all']([_0x4a0234['dWStg'](inspectPath,_0x349c99[_0x3bdb6b(0x1b0)]),_0x4a0234[_0x3bdb6b(0x14b)](inspectPath,_0x349c99[_0x3bdb6b(0x1d5)]),inspectPath(_0x5a9d52),_0x4a0234[_0x3bdb6b(0x14b)](inspectPath,_0x38d25d),inspectPath(_0x4134b4),inspectPath(_0x49fbde),_0x4a0234['dWStg'](inspectPath,_0x4fff7e),_0x4a0234['dWStg'](inspectPath,_0x2dc3c7),listDir(_0x349c99[_0x3bdb6b(0x1b0)]),_0x4a0234[_0x3bdb6b(0x16a)](listDir,_0x349c99['browserProfilePath']),listDir(_0x2dc3c7)]);return{'userDataDir':_0x349c99[_0x3bdb6b(0x1b0)],'browserProfilePath':_0x349c99[_0x3bdb6b(0x1d5)],'rootEntries':_0x10e21c,'defaultEntries':_0x567b86,'localStorageEntries':_0x58f6c5,'paths':{'userDataDir':_0x20a949,'browserProfilePath':_0x4dbd7e,'localState':_0x533ae8,'preferences':_0x26495b,'cookies':_0x6b2ab9,'networkCookies':_0x211ede,'localStorage':_0x5bc1c4,'levelDb':_0x31c4a7}};}async function inspectPath(_0x27b922){const _0x40ebd0=_0x3a39a7;try{const _0x26b346=await stat(_0x27b922);return{'path':_0x27b922,'exists':!![],'isDirectory':_0x26b346[_0x40ebd0(0x13d)](),'byteLength':_0x26b346['isFile']()?_0x26b346[_0x40ebd0(0x172)]:undefined,'mtimeMs':_0x26b346[_0x40ebd0(0x13b)]};}catch(_0xa6cd93){return{'path':_0x27b922,'exists':![],'error':_0xa6cd93 instanceof Error?_0xa6cd93['message']:String(_0xa6cd93)};}}async function listDir(_0x1390d2){const _0x32ad14=_0x3a39a7,_0x20c041={'gbuTr':function(_0x434d69,_0x2d3e47){return _0x434d69(_0x2d3e47);}};try{return(await _0x20c041[_0x32ad14(0x160)](readdir,_0x1390d2))['sort']()['slice'](0x0,0x32);}catch{return undefined;}}function truncatePreview(_0x452185,_0x2c9c5d=NOVA_ACT_CLI_PREVIEW_LIMIT){const _0x263acb=_0x3a39a7,_0x53e3fd={'eLSHT':function(_0x47d8eb,_0x5481a6){return _0x47d8eb>_0x5481a6;}};return _0x53e3fd['eLSHT'](_0x452185[_0x263acb(0x133)],_0x2c9c5d)?_0x452185[_0x263acb(0x139)](0x0,_0x2c9c5d)+'...':_0x452185;}function truncateOutput(_0xbef7c7,_0x27a7ef=0x7d0){const _0x1e739f=_0x3a39a7,_0x1093ef={'WSTff':function(_0x34c283,_0x226ef9){return _0x34c283>_0x226ef9;},'PyZpf':function(_0xaca677,_0x25ace2){return _0xaca677+_0x25ace2;}};return _0x1093ef[_0x1e739f(0x18a)](_0xbef7c7[_0x1e739f(0x133)],_0x27a7ef)?_0x1093ef['PyZpf'](_0xbef7c7[_0x1e739f(0x139)](0x0,_0x27a7ef),'...'):_0xbef7c7;}function getNovaActCliBinDirs(_0x273feb){const _0x1b5ad7=_0x3a39a7,_0x2f1283={'KMaIu':_0x1b5ad7(0x195)};return[_0x273feb['UV_TOOL_BIN_DIR'],homedir()+_0x1b5ad7(0x142),_0x2f1283[_0x1b5ad7(0x17a)],'/usr/local/bin']['filter'](_0x1e6cfd=>Boolean(_0x1e6cfd));}function buildPathWithNovaActCliBins(_0x497408){const _0x13bf26=_0x3a39a7,_0x111442=new Set(),_0x2b1c3b=[...getNovaActCliBinDirs(_0x497408),...(_0x497408[_0x13bf26(0x143)]??'')[_0x13bf26(0x138)](delimiter)]['filter'](_0x38f9a6=>{if(!_0x38f9a6||_0x111442['has'](_0x38f9a6))return![];return _0x111442['add'](_0x38f9a6),!![];});return _0x2b1c3b[_0x13bf26(0x13c)](delimiter);}export function applyNovaActCliPath(_0x5a76b8){const _0x575365=_0x3a39a7;_0x5a76b8[_0x575365(0x143)]=buildPathWithNovaActCliBins(_0x5a76b8);}function withNovaActCliPath(_0x49c198){return{..._0x49c198,'PATH':buildPathWithNovaActCliBins(_0x49c198)};}function runBootstrapCommand(_0x1f4c10){const _0x5800e2=_0x3a39a7,_0x1c9538={'TOGyW':_0x5800e2(0x1c4),'LtLMq':'SIGTERM','mQNwn':_0x5800e2(0x15c),'PGopq':function(_0x502b1d,_0x151317,_0x2a8664,_0x35ef73){return _0x502b1d(_0x151317,_0x2a8664,_0x35ef73);},'EgLRo':function(_0x3e7dd9,_0x3fd0e8,_0x225162){return _0x3e7dd9(_0x3fd0e8,_0x225162);},'IszOE':_0x5800e2(0x174),'Fmbmj':_0x5800e2(0x12a)},{command:_0x509e94,args:_0x331e34,env:_0x7b65cd,timeoutMs:timeoutMs=NOVA_ACT_BOOTSTRAP_TIMEOUT_MS}=_0x1f4c10;return new Promise((_0x3468bd,_0x161c91)=>{const _0x157e40=_0x5800e2,_0x4b7d0d={'uzPBM':_0x1c9538[_0x157e40(0x128)],'NPrIy':_0x1c9538[_0x157e40(0x125)],'BRcKp':function(_0x3d1554,_0x4589d3,_0x3598bc){return _0x3d1554(_0x4589d3,_0x3598bc);},'acjVS':function(_0x284bd5,_0xb03852){return _0x284bd5(_0xb03852);},'oouKE':_0x1c9538['mQNwn']},_0x333b0f=_0x1c9538['PGopq'](spawn,_0x509e94,_0x331e34,{'env':_0x7b65cd,'stdio':['ignore','pipe','pipe']});let _0x354460='',_0x192fc7='',_0x315fa6=![];const _0x3d4fc9=_0x1c9538[_0x157e40(0x17f)](setTimeout,()=>{_0x315fa6=!![],_0x333b0f['kill'](_0x4b7d0d['NPrIy']),_0x4b7d0d['BRcKp'](setTimeout,()=>{const _0x16b55b=_0x5929;try{_0x333b0f[_0x16b55b(0x16f)](_0x4b7d0d['uzPBM']);}catch{}},0x3e8);},timeoutMs);_0x333b0f[_0x157e40(0x16e)]?.['on'](_0x1c9538[_0x157e40(0x1a3)],_0x323e40=>{_0x354460+=_0x323e40['toString']();}),_0x333b0f['stderr']?.['on'](_0x157e40(0x174),_0x598bce=>{const _0x29ced8=_0x157e40;_0x192fc7+=_0x598bce[_0x29ced8(0x173)]();}),_0x333b0f['on'](_0x1c9538[_0x157e40(0x135)],_0x1eeaec=>{const _0x47463f=_0x157e40;_0x4b7d0d[_0x47463f(0x126)](clearTimeout,_0x3d4fc9),_0x161c91(_0x1eeaec);}),_0x333b0f['on']('close',(_0x4c9aea,_0x2fe8a1)=>{const _0x21ec73=_0x157e40;clearTimeout(_0x3d4fc9);if(_0x4c9aea===0x0){_0x3468bd({'stdout':_0x354460,'stderr':_0x192fc7});return;}const _0x104e6c=_0x315fa6?_0x21ec73(0x186)+timeoutMs+'ms':'exited\x20with\x20code='+(_0x4c9aea??_0x21ec73(0x15c))+'\x20signal='+(_0x2fe8a1??_0x4b7d0d['oouKE']);_0x161c91(new Error(_0x509e94+'\x20'+_0x331e34[_0x21ec73(0x13c)]('\x20')+'\x20'+_0x104e6c+_0x21ec73(0x167)+truncateOutput(_0x354460)+_0x21ec73(0x198)+_0x4b7d0d[_0x21ec73(0x126)](truncateOutput,_0x192fc7)));});});}function runCommandAllowFailure(_0x22f44a){const _0x18b7a7=_0x3a39a7,_0x59b0e3={'bucJz':_0x18b7a7(0x1b9),'CPNtj':function(_0x4185b1,_0x3dbe7f,_0x4cb290){return _0x4185b1(_0x3dbe7f,_0x4cb290);},'WSxjw':function(_0x5db193,_0x3d745c){return _0x5db193(_0x3d745c);},'FKCDH':function(_0x49c2b2,_0x24571f,_0x5bb514,_0x589de6){return _0x49c2b2(_0x24571f,_0x5bb514,_0x589de6);},'BaKuv':'pipe','naSYl':'data','ybYtr':_0x18b7a7(0x1b4)},{command:_0x44ff4e,args:_0x37e2d5,env:_0x691423,timeoutMs:_0x1d84d3}=_0x22f44a;return new Promise((_0x45d230,_0xd70ca6)=>{const _0x3f8d9d=_0x18b7a7,_0xc0f8c3=_0x59b0e3[_0x3f8d9d(0x1cd)](spawn,_0x44ff4e,_0x37e2d5,{'env':_0x691423,'stdio':[_0x3f8d9d(0x1cb),_0x3f8d9d(0x1c1),_0x59b0e3[_0x3f8d9d(0x1c7)]]});let _0x263dec='',_0x3b0119='',_0x1fd783=![];const _0x57a6ea=setTimeout(()=>{const _0x278b1a=_0x3f8d9d;_0x1fd783=!![],_0xc0f8c3['kill'](_0x59b0e3[_0x278b1a(0x180)]),_0x59b0e3[_0x278b1a(0x15d)](setTimeout,()=>{const _0x5bc4e4=_0x278b1a;try{_0xc0f8c3[_0x5bc4e4(0x16f)](_0x5bc4e4(0x1c4));}catch{}},0x3e8);},_0x1d84d3);_0xc0f8c3[_0x3f8d9d(0x16e)]?.['on']('data',_0x1bc772=>{const _0x35416a=_0x3f8d9d;_0x263dec+=_0x1bc772[_0x35416a(0x173)]();}),_0xc0f8c3['stderr']?.['on'](_0x59b0e3[_0x3f8d9d(0x17d)],_0x3bfac6=>{_0x3b0119+=_0x3bfac6['toString']();}),_0xc0f8c3['on']('error',_0x2aa528=>{_0x59b0e3['WSxjw'](clearTimeout,_0x57a6ea),_0xd70ca6(_0x2aa528);}),_0xc0f8c3['on'](_0x59b0e3[_0x3f8d9d(0x163)],(_0x515994,_0x89caa)=>{_0x59b0e3['WSxjw'](clearTimeout,_0x57a6ea),_0x45d230({'code':_0x515994,'signal':_0x89caa,'stdout':_0x263dec,'stderr':_0x3b0119,'timedOut':_0x1fd783});});});}async function resolveActPath(_0x2a16c0){const _0x2a6be9=_0x3a39a7,_0x335a1d={'esMzu':function(_0x17ac07,_0x45491e){return _0x17ac07(_0x45491e);}},_0x2e9ff4=isAbsolute(NOVA_ACT_CLI_BINARY)?[NOVA_ACT_CLI_BINARY]:(_0x2a16c0[_0x2a6be9(0x143)]??'')[_0x2a6be9(0x138)](delimiter)[_0x2a6be9(0x159)](Boolean)['map'](_0x30997b=>join(_0x30997b,NOVA_ACT_CLI_BINARY));for(const _0x41d869 of _0x2e9ff4){try{return await _0x335a1d['esMzu'](access,_0x41d869),_0x41d869;}catch{}}return null;}async function checkNovaActCli(_0x4539e8){const _0x515c4d=_0x3a39a7,_0x53a606={'ncxJh':function(_0x4ecfa8,_0x3b50ec){return _0x4ecfa8(_0x3b50ec);},'iZgFW':_0x515c4d(0x129),'CttIy':_0x515c4d(0x175)};try{return await _0x53a606['ncxJh'](runBootstrapCommand,{'command':NOVA_ACT_CLI_BINARY,'args':[_0x53a606['iZgFW'],_0x53a606[_0x515c4d(0x19a)]],'env':_0x4539e8,'timeoutMs':0x7530}),await _0x53a606['ncxJh'](resolveActPath,_0x4539e8)??NOVA_ACT_CLI_BINARY;}catch{return null;}}export async function ensureNovaActCliInstalled(_0x41cab8={}){const _0x424dff=_0x3a39a7,_0x1690b6={'QyTlf':function(_0x40f5bb,_0x27141b){return _0x40f5bb(_0x27141b);},'wYysP':_0x424dff(0x15a),'ktXnC':function(_0x23cb15,_0x5e1d44){return _0x23cb15 instanceof _0x5e1d44;},'FGOPW':function(_0x175d62,_0x13477c){return _0x175d62(_0x13477c);},'OPcIb':function(_0x3e442a,_0x490adc){return _0x3e442a(_0x490adc);},'hkXqC':function(_0x1c310b,_0x2c44e1){return _0x1c310b(_0x2c44e1);},'TqaUz':function(_0x3a1977,_0x40cfbb){return _0x3a1977(_0x40cfbb);}},_0x2394db=withNovaActCliPath(_0x41cab8['env']??process['env']),_0x4c594e=await _0x1690b6['QyTlf'](checkNovaActCli,_0x2394db);if(_0x4c594e)return{'installed':![],'actPath':_0x4c594e,'uvPackage':NOVA_ACT_CLI_UV_PACKAGE,'stdout':'','stderr':''};try{await runBootstrapCommand({'command':'uv','args':[_0x1690b6['wYysP']],'env':_0x2394db,'timeoutMs':0x7530});}catch(_0x18483e){throw new Error(_0x424dff(0x14c)+NOVA_ACT_CLI_BINARY+_0x424dff(0x18b)+NOVA_ACT_CLI_UV_PACKAGE+'\x22\x0a'+(_0x1690b6[_0x424dff(0x1b8)](_0x18483e,Error)?_0x18483e[_0x424dff(0x1cc)]:_0x1690b6['FGOPW'](String,_0x18483e)));}const _0x25d831=await _0x1690b6[_0x424dff(0x146)](runBootstrapCommand,{'command':'uv','args':[_0x424dff(0x1bf),'install',NOVA_ACT_CLI_UV_PACKAGE],'env':_0x2394db,'timeoutMs':_0x41cab8['timeoutMs']??NOVA_ACT_BOOTSTRAP_TIMEOUT_MS}),_0x3fec34=await _0x1690b6[_0x424dff(0x1aa)](checkNovaActCli,_0x2394db);if(!_0x3fec34)throw new Error('Installed\x20'+NOVA_ACT_CLI_UV_PACKAGE+',\x20but\x20`'+NOVA_ACT_CLI_BINARY+'\x20browser\x20--help`\x20is\x20still\x20unavailable.\x20Ensure\x20'+getNovaActCliBinDirs(_0x2394db)[_0x424dff(0x13c)](',\x20')+'\x20is\x20on\x20PATH.\x0astdout:\x20'+_0x1690b6['QyTlf'](truncateOutput,_0x25d831[_0x424dff(0x16e)])+_0x424dff(0x198)+_0x1690b6['TqaUz'](truncateOutput,_0x25d831['stderr']));return{'installed':!![],'actPath':_0x3fec34,'uvPackage':NOVA_ACT_CLI_UV_PACKAGE,'stdout':_0x25d831[_0x424dff(0x16e)],'stderr':_0x25d831['stderr']};}function parseNovaActDoctorOutput(_0x2f7299){const _0x288b85=_0x3a39a7;try{return JSON[_0x288b85(0x120)](_0x2f7299);}catch{return null;}}function buildNovaActCliPreflightError(_0x287870){const _0x29acae=_0x3a39a7,_0x426a7d={'iiZGE':function(_0x1d41d1,_0x4432f6){return _0x1d41d1>_0x4432f6;},'QBhhV':function(_0x5907c7,_0x326560){return _0x5907c7??_0x326560;},'bYCee':_0x29acae(0x15c),'yxXfW':function(_0x5436cb,_0x1956a2){return _0x5436cb(_0x1956a2);},'ngvZr':function(_0x4d2429,_0x25ab42){return _0x4d2429(_0x25ab42);},'QhmDG':'Configure\x20Nova\x20Act\x20with\x20NOVA_ACT_API_KEY,\x20run\x20act\x20browser\x20setup\x20--api-key\x20<key>,\x20or\x20configure\x20AWS\x20credentials.'},{checks:_0x16ba16,stdout:_0x3745ba,stderr:_0x3562f5,env:_0x5b52b0,code:_0x514a33,signal:_0x12a68c,timedOut:_0x2afb52}=_0x287870,_0x4f67a1=_0x16ba16['filter'](_0xb0fc2b=>_0xb0fc2b[_0x29acae(0x1c2)]===_0x29acae(0x149)),_0x267fe7=_0x426a7d[_0x29acae(0x1ae)](_0x4f67a1['length'],0x0)?_0x4f67a1['map'](_0x596f17=>{const _0x59356c=_0x29acae,_0x57b12c=_0x596f17['fix']?'\x20Fix:\x20'+_0x596f17['fix']:'';return'-\x20'+_0x596f17[_0x59356c(0x1ca)]+':\x20'+_0x596f17[_0x59356c(0x1cc)]+'.'+_0x57b12c;})['join']('\x0a'):[_0x2afb52?'act\x20browser\x20doctor\x20--json\x20timed\x20out':_0x29acae(0x1a2)+_0x426a7d['QBhhV'](_0x514a33,_0x426a7d['bYCee'])+_0x29acae(0x1c5)+(_0x12a68c??'null'),_0x3745ba?_0x29acae(0x191)+_0x426a7d[_0x29acae(0x158)](truncateOutput,_0x3745ba):'',_0x3562f5?_0x29acae(0x1a0)+_0x426a7d[_0x29acae(0x14d)](truncateOutput,_0x3562f5):'']['filter'](Boolean)[_0x29acae(0x13c)]('\x0a'),_0x5ebd81=_0x5b52b0['AWS_PROFILE']?.['trim'](),_0x3f350d=_0x5ebd81?'For\x20AWS\x20SSO,\x20run:\x20aws\x20sso\x20login\x20--profile\x20'+_0x5ebd81:_0x29acae(0x12d);return new Error([_0x29acae(0x122),_0x267fe7,_0x426a7d['QhmDG'],_0x3f350d][_0x29acae(0x13c)]('\x0a'));}export async function preflightNovaActCli(_0x348c0c={}){const _0x1c9ae1=_0x3a39a7,_0x107b09={'EIHVD':function(_0x38ee2a,_0x5897c2){return _0x38ee2a(_0x5897c2);},'vqtxI':function(_0x3be570,_0x19e2bf){return _0x3be570!==_0x19e2bf;},'lfhwO':function(_0x150b22,_0x2cd0b6){return _0x150b22(_0x2cd0b6);}},_0x4f085a=_0x107b09['EIHVD'](withNovaActCliPath,_0x348c0c['env']??process['env']),_0x13801a=await runCommandAllowFailure({'command':NOVA_ACT_CLI_BINARY,'args':[_0x1c9ae1(0x129),'doctor',_0x1c9ae1(0x18c)],'env':_0x4f085a,'timeoutMs':_0x348c0c['timeoutMs']??0x7530}),_0x498089=parseNovaActDoctorOutput(_0x13801a['stdout']),_0x319d1e=_0x498089?.['data']?.[_0x1c9ae1(0x14e)]??[],_0xd71b43=_0x319d1e['some'](_0x48c2f6=>_0x48c2f6[_0x1c9ae1(0x1c2)]==='fail');if(_0x107b09[_0x1c9ae1(0x162)](_0x13801a['code'],0x0)||_0x13801a['timedOut']||_0xd71b43)throw _0x107b09[_0x1c9ae1(0x1d4)](buildNovaActCliPreflightError,{'checks':_0x319d1e,'stdout':_0x13801a[_0x1c9ae1(0x16e)],'stderr':_0x13801a[_0x1c9ae1(0x148)],'env':_0x4f085a,'code':_0x13801a['code'],'signal':_0x13801a['signal'],'timedOut':_0x13801a['timedOut']});return{'checks':_0x319d1e,'logDir':_0x498089?.['log_dir']??_0x498089?.['logDir']};}function getNovaActCliSubcommand(_0x1a97c6){const _0x4ab31a=_0x3a39a7,[_0x42b0e7=_0x4ab31a(0x13a),_0x1329bc]=_0x1a97c6;return _0x42b0e7==='session'&&_0x1329bc?_0x42b0e7+'\x20'+_0x1329bc:_0x42b0e7;}function supportsBrowserSessionOptions(_0x2f3223){const _0x2c9be1=_0x3a39a7,_0x5e747c={'dDlhV':function(_0x220513,_0x2f5fca){return _0x220513===_0x2f5fca;},'xXxwI':function(_0x6f2175,_0xb2d5e0){return _0x6f2175===_0xb2d5e0;},'oYyTO':'export','ZsORy':function(_0x3141c2,_0x4afd0e){return _0x3141c2===_0x4afd0e;},'CclGd':_0x2c9be1(0x1b4)};return!(_0x5e747c['dDlhV'](_0x2f3223[0x0],_0x2c9be1(0x15f))&&(_0x5e747c['xXxwI'](_0x2f3223[0x1],_0x5e747c['oYyTO'])||_0x5e747c[_0x2c9be1(0x12f)](_0x2f3223[0x1],_0x5e747c['CclGd'])));}function buildSharedArgs(_0xa02170,_0x4e9ce5){const _0x196d80=_0x3a39a7,_0x1b2148={'gOtlP':_0x196d80(0x18c),'Lajbo':'--quiet','jYkuv':_0x196d80(0x19e),'ReQHG':_0x196d80(0x184),'WILPb':_0x196d80(0x188),'quaJA':'--executable-path','jBGTV':'--cdp'},_0x37b47a=['--session-id',_0xa02170[_0x196d80(0x1a6)],_0x1b2148['gOtlP']];if(supportsBrowserSessionOptions(_0x4e9ce5)){_0x37b47a[_0x196d80(0x124)](_0x1b2148['Lajbo']),_0x37b47a['push'](_0xa02170[_0x196d80(0x144)]?_0x1b2148[_0x196d80(0x1a7)]:_0x1b2148['ReQHG']);_0xa02170[_0x196d80(0x1d5)]&&_0x37b47a[_0x196d80(0x124)](_0x1b2148[_0x196d80(0x14f)],_0xa02170['browserProfilePath']);_0xa02170['executablePath']&&_0x37b47a[_0x196d80(0x124)](_0x1b2148[_0x196d80(0x166)],_0xa02170[_0x196d80(0x141)]);_0xa02170[_0x196d80(0x19c)]&&_0x37b47a[_0x196d80(0x124)](_0x1b2148['jBGTV'],_0xa02170['cdpEndpoint']);for(const _0x459431 of _0xa02170[_0x196d80(0x192)]??[]){_0x37b47a['push']('--launch-arg='+_0x459431);}}return _0x37b47a;}export function buildNovaActCliInvocation(_0x463b03,_0x3677f5){const _0x406678=_0x3a39a7,_0x229e55={'VzMVC':_0x406678(0x129),'KAQoH':function(_0x232e39,_0xdad71b){return _0x232e39(_0xdad71b);}},_0x441be6=buildSharedArgs(_0x463b03,_0x3677f5),_0x5dd2cb=[_0x406678(0x129),..._0x3677f5,..._0x441be6];return{'command':NOVA_ACT_CLI_BINARY,'args':_0x5dd2cb,'shellCommand':[NOVA_ACT_CLI_BINARY,_0x229e55[_0x406678(0x1d2)],..._0x3677f5[_0x406678(0x16c)](quoteShellArg),..._0x441be6['map'](quoteShellArg)]['join']('\x20'),'subcommand':_0x229e55[_0x406678(0x1ce)](getNovaActCliSubcommand,_0x3677f5)};}export function buildNovaActCliCommandPrefix(){const _0xfa5968=_0x3a39a7;return NOVA_ACT_CLI_BINARY+_0xfa5968(0x1d3);}export function buildNovaActCliBrowserWrapperPath(_0x9b3af3){const _0x4550bb=_0x3a39a7,_0x2f5028={'IxFII':_0x4550bb(0x19b)};return join(dirname(_0x9b3af3['userDataDir']),_0x2f5028['IxFII']);}export async function writeNovaActCliBrowserWrapper(_0x2b7a48){const _0x3e62c0=_0x3a39a7,_0x2bdfe7={'XRHWQ':function(_0x43cba2,_0x1c2042){return _0x43cba2(_0x1c2042);},'ArBhP':_0x3e62c0(0x12c),'raipo':function(_0xb2e190,_0x173de8,_0x5c1816){return _0xb2e190(_0x173de8,_0x5c1816);},'lkWmE':_0x3e62c0(0x1a1)},_0x3e540b=_0x2b7a48[_0x3e62c0(0x17e)]??_0x2bdfe7['XRHWQ'](buildNovaActCliBrowserWrapperPath,_0x2b7a48),_0x1e4a9f=buildSharedArgs(_0x2b7a48,['execute'])['map'](quoteShellArg)['join']('\x20'),_0x2979e5=buildSharedArgs(_0x2b7a48,['session',_0x2bdfe7[_0x3e62c0(0x1d1)]])['map'](quoteShellArg)['join']('\x20');return await _0x2bdfe7[_0x3e62c0(0x151)](mkdir,_0x2bdfe7['XRHWQ'](dirname,_0x3e540b),{'recursive':!![]}),await _0x2bdfe7[_0x3e62c0(0x151)](mkdir,_0x2b7a48[_0x3e62c0(0x1b0)],{'recursive':!![]}),await writeFile(_0x3e540b,'#!/usr/bin/env\x20bash\x0aset\x20-euo\x20pipefail\x0aif\x20[[\x20\x22${1:-}\x22\x20==\x20\x22session\x22\x20&&\x20(\x20\x22${2:-}\x22\x20==\x20\x22export\x22\x20||\x20\x22${2:-}\x22\x20==\x20\x22close\x22\x20)\x20]];\x20then\x0a\x20\x20exec\x20'+quoteShellArg(NOVA_ACT_CLI_BINARY)+_0x3e62c0(0x1d0)+_0x2979e5+_0x3e62c0(0x13f)+quoteShellArg(NOVA_ACT_CLI_BINARY)+_0x3e62c0(0x1d0)+_0x1e4a9f+'\x0a',_0x2bdfe7['lkWmE']),await _0x2bdfe7['raipo'](chmod,_0x3e540b,0x1ed),_0x3e540b;}export function buildNovaActCliSharedOptionsSuffix(_0x205ac0,_0xdee2b=['execute']){const _0x36f0db=_0x3a39a7;return buildSharedArgs(_0x205ac0,_0xdee2b)[_0x36f0db(0x16c)](quoteShellArg)[_0x36f0db(0x13c)]('\x20');}export async function runNovaActCliCommand(_0x302e2e){const _0x45a5bc=_0x3a39a7,_0x3d06b6={'kNgUD':_0x45a5bc(0x1b9),'Hdldk':function(_0x2f6d17,_0x152623){return _0x2f6d17(_0x152623);},'NwMuo':_0x45a5bc(0x1c1),'cAuiQ':function(_0x1e9c60,_0x11365e){return _0x1e9c60>_0x11365e;},'nbHIa':_0x45a5bc(0x174),'IFqqK':'error','MYcnB':'close','XUgOR':function(_0x5d84fe,_0x26a1d5,_0x5d2681){return _0x5d84fe(_0x26a1d5,_0x5d2681);}};await _0x3d06b6['XUgOR'](mkdir,_0x302e2e['userDataDir'],{'recursive':!![]});const _0x3d31bd=buildNovaActCliInvocation(_0x302e2e,_0x302e2e['commandArgs']);return new Promise((_0x3b4376,_0x13e168)=>{const _0x338b60=_0x45a5bc,_0x1b3f7c={'Ijxjs':function(_0x569137,_0x200d62){return _0x569137===_0x200d62;},'VpFAR':_0x338b60(0x15c),'BUZzd':function(_0x22fa62,_0x30c3ce){return _0x22fa62(_0x30c3ce);}},_0x1a8d08=spawn(_0x3d31bd['command'],_0x3d31bd[_0x338b60(0x176)],{'cwd':_0x302e2e['cwd'],'env':_0x302e2e[_0x338b60(0x177)],'stdio':[_0x338b60(0x1cb),_0x3d06b6[_0x338b60(0x182)],'pipe']});let _0x483dd3='',_0x189a14='',_0x3447eb=![];const _0x51d4f0=_0x302e2e['timeoutMs']&&_0x3d06b6['cAuiQ'](_0x302e2e[_0x338b60(0x156)],0x0)?setTimeout(()=>{_0x3447eb=!![],_0x1a8d08['kill'](_0x3d06b6['kNgUD']),setTimeout(()=>{const _0x55c4f1=_0x5929;try{_0x1a8d08[_0x55c4f1(0x16f)]('SIGKILL');}catch{}},0x3e8);},_0x302e2e[_0x338b60(0x156)]):null;_0x1a8d08['stdout']?.['on']('data',_0x59c3bb=>{_0x483dd3+=_0x59c3bb['toString']();}),_0x1a8d08[_0x338b60(0x148)]?.['on'](_0x3d06b6['nbHIa'],_0x412a48=>{_0x189a14+=_0x412a48['toString']();}),_0x1a8d08['on'](_0x3d06b6[_0x338b60(0x12e)],_0x382f27=>{if(_0x51d4f0)_0x3d06b6['Hdldk'](clearTimeout,_0x51d4f0);_0x3d06b6['Hdldk'](_0x13e168,_0x382f27);}),_0x1a8d08['on'](_0x3d06b6['MYcnB'],(_0x2db132,_0x4503a8)=>{const _0x371215=_0x338b60;if(_0x51d4f0)clearTimeout(_0x51d4f0);if(_0x1b3f7c[_0x371215(0x140)](_0x2db132,0x0)){_0x3b4376({'stdout':_0x483dd3,'stderr':_0x189a14,'invocation':_0x3d31bd});return;}const _0x23e26b=_0x3447eb?_0x371215(0x186)+_0x302e2e[_0x371215(0x156)]+'ms':'exited\x20with\x20code='+(_0x2db132??_0x371215(0x15c))+_0x371215(0x1c5)+(_0x4503a8??_0x1b3f7c[_0x371215(0x154)]);_0x13e168(new Error('nova-act-cli\x20'+_0x3d31bd[_0x371215(0x1b1)]+'\x20'+_0x23e26b+'\x0astdout:\x20'+_0x1b3f7c[_0x371215(0x168)](truncateOutput,_0x483dd3)+_0x371215(0x198)+_0x1b3f7c[_0x371215(0x168)](truncateOutput,_0x189a14)));});});}export function parseNovaActCliCommand(_0x292a5e){const _0x197a5f=_0x3a39a7,_0x1a971d=_0x292a5e[_0x197a5f(0x171)](/(?:^|\s)(?:(?:"[^"]*\/act"|'[^']*\/act'|\S*\/act|act)\s+browser|(?:"[^"]*\/nova-act-browser"|'[^']*\/nova-act-browser'|\S*\/nova-act-browser|nova-act-browser))\s+(session\s+[a-z-]+|[a-z][a-z-]*)\b/);return _0x1a971d?.[0x1]??null;}export function extractNovaActLogDir(_0x40bd8a){const _0x2e5239=_0x3a39a7;try{const _0x22f82f=JSON[_0x2e5239(0x120)](_0x40bd8a),_0x399fad=[_0x22f82f[_0x2e5239(0x130)],_0x22f82f[_0x2e5239(0x1a5)],_0x22f82f['logs_dir'],_0x22f82f['logDir'],_0x22f82f['log_dir']],_0x17e652=_0x399fad[_0x2e5239(0x18d)](_0x1d5288=>typeof _0x1d5288==='string'&&_0x1d5288[_0x2e5239(0x183)]()['length']>0x0);if(_0x17e652)return _0x17e652;}catch{}const _0x124ce1=_0x40bd8a[_0x2e5239(0x171)](/(?:logs_directory|logsDirectory|log_dir|logDir|logs dir|logs directory)[:=]\s*["']?([^\s"',}]+)/i);return _0x124ce1?.[0x1]??null;}export async function loadNovaActSessionExport(_0xd105c5){const _0x3f101=_0x3a39a7;try{return JSON[_0x3f101(0x120)](await readFile(_0xd105c5,'utf-8'));}catch{return null;}}export async function hydrateNovaProfileFromStorageState(_0x27b8f8){const _0x425d52=_0x3a39a7,_0x4efe0b={'vdmLK':function(_0xccf95b,_0x309c91,_0x53e4f2){return _0xccf95b(_0x309c91,_0x53e4f2);},'wEkqI':function(_0x31004b,_0x1d7e01){return _0x31004b(_0x1d7e01);},'YkCOx':function(_0x4c9c0d,_0x2ab1c0,_0x2b23ec){return _0x4c9c0d(_0x2ab1c0,_0x2b23ec);},'NVsju':_0x425d52(0x164),'vtHmN':_0x425d52(0x134),'VyXoi':function(_0x2c7c02,_0x482d4b){return _0x2c7c02>_0x482d4b;},'TEbfG':_0x425d52(0x17b),'VVmPu':function(_0x51d047,_0x353f07,_0x40bb80){return _0x51d047(_0x353f07,_0x40bb80);},'heKLW':function(_0x2e1c20,_0x1f9945){return _0x2e1c20(_0x1f9945);}},_0x3a8a70=JSON[_0x425d52(0x120)](await _0x4efe0b[_0x425d52(0x179)](readFile,_0x27b8f8[_0x425d52(0x1b6)],_0x425d52(0x1a1))),_0x3d48dc=await _0x4efe0b['wEkqI'](inspectNovaStorageStateFile,_0x27b8f8[_0x425d52(0x1b6)]);await _0x4efe0b[_0x425d52(0x179)](mkdir,_0x27b8f8[_0x425d52(0x1b0)],{'recursive':!![]});const _0x4f6e19=_0x4efe0b[_0x425d52(0x1c8)](join,_0x27b8f8['userDataDir'],_0x4efe0b['NVsju']),_0x4f25ea=await inspectNovaProfileFiles({'userDataDir':_0x27b8f8['userDataDir'],'browserProfilePath':_0x4f6e19}),{browser:_0x1fa1ea,process:_0x5d52e5}=await _0x4efe0b['wEkqI'](launchNovaHydrationBrowser,{'userDataDir':_0x27b8f8['userDataDir'],'browserProfilePath':_0x4f6e19,'executablePath':_0x27b8f8['executablePath'],'headless':_0x27b8f8['headless'],'launchArgs':_0x27b8f8[_0x425d52(0x192)]}),_0x29867d=_0x1fa1ea['contexts']()[0x0];if(!_0x29867d){await closeNovaHydrationBrowser(_0x1fa1ea,_0x5d52e5);throw new Error(_0x4efe0b[_0x425d52(0x19f)]);}let _0xaf1a08=0x0,_0x658ae5=0x0;try{const _0x3eab87=_0x3a8a70['cookies']??[];if(_0x4efe0b['VyXoi'](_0x3eab87['length'],0x0)){const _0x5a26e5=_0x3eab87['map'](_0x47c0b5=>{const _0x10faef=_0x425d52;if(_0x47c0b5['expires']!==-0x1)return _0x47c0b5;return _0x658ae5+=0x1,{..._0x47c0b5,'expires':Math[_0x10faef(0x145)](Date['now']()/0x3e8)+NOVA_PROMOTED_SESSION_COOKIE_TTL_SECONDS};});await _0x29867d[_0x425d52(0x1be)](_0x5a26e5);}for(const _0x43c9ee of _0x3a8a70[_0x425d52(0x16b)]??[]){if(!_0x43c9ee['localStorage']?.[_0x425d52(0x133)])continue;const _0x24dbb0=await _0x29867d['newPage']();await _0x24dbb0['goto'](_0x43c9ee[_0x425d52(0x161)],{'waitUntil':_0x4efe0b['TEbfG'],'timeout':0x7530}),await _0x24dbb0['evaluate'](_0x2c5f30=>{const _0x4954fb=_0x425d52;for(const _0x429f2a of _0x2c5f30){window[_0x4954fb(0x1c0)]['setItem'](_0x429f2a['name'],_0x429f2a[_0x4954fb(0x19d)]);}},_0x43c9ee['localStorage']),_0xaf1a08+=_0x43c9ee[_0x425d52(0x1c0)][_0x425d52(0x133)],await _0x24dbb0['close']();}if(_0x27b8f8[_0x425d52(0x194)]){const _0x50729f=await _0x29867d['newPage']();await _0x50729f['goto'](_0x27b8f8[_0x425d52(0x194)],{'waitUntil':_0x425d52(0x17b),'timeout':0x7530}),await _0x50729f[_0x425d52(0x1b4)]();}await _0x4efe0b[_0x425d52(0x1bb)](ensureChromeProfileShape,_0x27b8f8['userDataDir'],_0x4f6e19);}finally{await closeNovaHydrationBrowser(_0x1fa1ea,_0x5d52e5);}const _0x11a2a0=await _0x4efe0b['heKLW'](inspectNovaProfileFiles,{'userDataDir':_0x27b8f8['userDataDir'],'browserProfilePath':_0x4f6e19});return{'browserProfilePath':_0x4f6e19,'cookieCount':_0x3a8a70[_0x425d52(0x1ab)]?.[_0x425d52(0x133)]??0x0,'promotedSessionCookieCount':_0x658ae5,'originCount':_0x3a8a70[_0x425d52(0x16b)]?.[_0x425d52(0x133)]??0x0,'localStorageEntryCount':_0xaf1a08,'storageStateDiagnostics':_0x3d48dc,'profileBefore':_0x4f25ea,'profileAfter':_0x11a2a0};}async function launchNovaHydrationBrowser(_0xa8bc75){const _0x2ac905=_0x3a39a7,_0x5a16a1={'wkcqx':'--profile-directory=Default','JAxuv':'--headless=new','zqFDN':_0x2ac905(0x1cb),'RZoVH':'pipe'};await ensureChromeProfileShape(_0xa8bc75[_0x2ac905(0x1b0)],_0xa8bc75['browserProfilePath']);const _0x3d320b=_0xa8bc75[_0x2ac905(0x141)]??chromium[_0x2ac905(0x141)](),_0x61bd81=await getAvailablePort(),_0x582b30=[_0x2ac905(0x190)+_0x61bd81,'--user-data-dir='+_0xa8bc75['userDataDir'],_0x5a16a1['wkcqx'],'--window-size=1280,720','--no-first-run','--remote-allow-origins=http://localhost'];_0xa8bc75[_0x2ac905(0x144)]&&_0x582b30['push'](_0x5a16a1['JAxuv']);_0x582b30['push'](..._0xa8bc75[_0x2ac905(0x192)]??[]);const _0x432be5=spawn(_0x3d320b,_0x582b30,{'stdio':[_0x5a16a1['zqFDN'],_0x5a16a1[_0x2ac905(0x1a9)],_0x5a16a1['RZoVH']]});try{const _0x47bce0=await waitForCdpEndpoint(_0x432be5,_0x61bd81),_0xf0f913=await chromium['connectOverCDP'](_0x47bce0);return{'browser':_0xf0f913,'process':_0x432be5};}catch(_0x3c2a10){await terminateNovaHydrationBrowser(_0x432be5);throw _0x3c2a10;}}async function closeNovaHydrationBrowser(_0x17a1c9,_0x233c6c){const _0x2befd2=_0x3a39a7,_0x4d7e2a={'vdhpv':function(_0x4eace4,_0xc3e159){return _0x4eace4(_0xc3e159);}};try{await _0x17a1c9[_0x2befd2(0x1b4)]();}catch{await _0x4d7e2a['vdhpv'](terminateNovaHydrationBrowser,_0x233c6c);return;}const _0x552e4e=await waitForProcessExit(_0x233c6c,0x1388);!_0x552e4e&&await _0x4d7e2a['vdhpv'](terminateNovaHydrationBrowser,_0x233c6c);}async function terminateNovaHydrationBrowser(_0x14a3b7){const _0x292224=_0x3a39a7,_0x5f430d={'qQPLb':_0x292224(0x1b9),'pfBVK':function(_0x3ba4dd,_0x5a6543,_0x5f0d0e){return _0x3ba4dd(_0x5a6543,_0x5f0d0e);}};if(_0x14a3b7['exitCode']!==null)return;try{_0x14a3b7['kill'](_0x5f430d[_0x292224(0x165)]);}catch{}await waitForProcessExit(_0x14a3b7,0x7d0);if(_0x14a3b7[_0x292224(0x1b2)]===null){try{_0x14a3b7[_0x292224(0x16f)]('SIGKILL');}catch{}await _0x5f430d[_0x292224(0x1a8)](waitForProcessExit,_0x14a3b7,0x7d0);}}async function waitForCdpEndpoint(_0x412fc4,_0x544af1){const _0xbfd960=_0x3a39a7,_0x297579={'FHHFd':function(_0x9301df,_0x4af198){return _0x9301df<_0x4af198;},'dGeud':function(_0x55da77,_0x472052){return _0x55da77-_0x472052;},'Vizss':function(_0x359f0b,_0x288e14){return _0x359f0b!==_0x288e14;},'AClEX':function(_0x40c472,_0x4492d8){return _0x40c472===_0x4492d8;},'BhMvX':_0xbfd960(0x155),'wmjgB':function(_0x2371f3,_0xc21fe6){return _0x2371f3(_0xc21fe6);},'gcPiY':function(_0x227ecc,_0x2f9cc3){return _0x227ecc instanceof _0x2f9cc3;}},_0x387381=Date['now']();let _0x155ff6;while(_0x297579[_0xbfd960(0x1b3)](_0x297579['dGeud'](Date[_0xbfd960(0x150)](),_0x387381),NOVA_PROFILE_HYDRATION_CDP_TIMEOUT_MS)){if(_0x297579[_0xbfd960(0x1c6)](_0x412fc4[_0xbfd960(0x1b2)],null))throw new Error(_0xbfd960(0x12b)+_0x412fc4['exitCode']);try{const _0x4ae760=await fetch(_0xbfd960(0x1ba)+_0x544af1+'/json/version');if(_0x4ae760['ok']){const _0xb7cea7=await _0x4ae760['json']();if(_0x297579['AClEX'](typeof _0xb7cea7['webSocketDebuggerUrl'],_0x297579['BhMvX']))return _0xb7cea7['webSocketDebuggerUrl'];}}catch(_0x4038d0){_0x155ff6=_0x4038d0;}await _0x297579['wmjgB'](delay,0x64);}const _0x133c6f=_0x297579['gcPiY'](_0x155ff6,Error)?':\x20'+_0x155ff6['message']:'';throw new Error('Timed\x20out\x20waiting\x20for\x20hydration\x20browser\x20CDP'+_0x133c6f);}async function getAvailablePort(){const _0xdbacc4=_0x3a39a7,_0x1fdc83={'MtdXI':function(_0x4a6711,_0x365d19){return _0x4a6711(_0x365d19);},'DxnyB':'object','nQBWz':_0xdbacc4(0x1ac)};return new Promise((_0x574687,_0x36506f)=>{const _0x2c6854=_0xdbacc4,_0xc3e340={'UCPVR':function(_0x5a82b5,_0x3af015){return _0x1fdc83['MtdXI'](_0x5a82b5,_0x3af015);},'ZamHR':_0x1fdc83['DxnyB'],'yhybp':_0x1fdc83['nQBWz']},_0x2d5edd=createServer();_0x2d5edd[_0x2c6854(0x193)]('error',_0x36506f),_0x2d5edd['listen'](0x0,'127.0.0.1',()=>{const _0x1e7d43=_0x2c6854,_0x5a8872=_0x2d5edd[_0x1e7d43(0x18e)]();_0x2d5edd[_0x1e7d43(0x1b4)](_0x7b7283=>{const _0x5b5a0f=_0x1e7d43;if(_0x7b7283){_0xc3e340['UCPVR'](_0x36506f,_0x7b7283);return;}if(typeof _0x5a8872===_0xc3e340[_0x5b5a0f(0x1c9)]&&_0x5a8872?.['port']){_0x574687(_0x5a8872[_0x5b5a0f(0x189)]);return;}_0x36506f(new Error(_0xc3e340[_0x5b5a0f(0x132)]));});});});}async function waitForProcessExit(_0x212af1,_0x25ad60){const _0x4e64e4=_0x3a39a7,_0x31c6b5={'MNQds':function(_0x124b61,_0x4162ee,_0x3f7d20){return _0x124b61(_0x4162ee,_0x3f7d20);},'yDJhx':_0x4e64e4(0x196)};if(_0x212af1['exitCode']!==null)return!![];return new Promise(_0x5b9fdd=>{const _0x5cc50f=_0x4e64e4,_0xe6a232={'BvVEx':function(_0x5a9d16){return _0x5a9d16();},'NfpSQ':function(_0x3df2b8,_0x2cd980){return _0x3df2b8(_0x2cd980);},'pFOPf':'exit'},_0x222380=_0x31c6b5[_0x5cc50f(0x1af)](setTimeout,()=>{_0x13467c(),_0x5b9fdd(![]);},_0x25ad60),_0x4b3d68=()=>{const _0x18a450=_0x5cc50f;_0xe6a232[_0x18a450(0x137)](_0x13467c),_0x5b9fdd(!![]);},_0x13467c=()=>{_0xe6a232['NfpSQ'](clearTimeout,_0x222380),_0x212af1['off'](_0xe6a232['pFOPf'],_0x4b3d68);};_0x212af1[_0x5cc50f(0x193)](_0x31c6b5['yDJhx'],_0x4b3d68);});}async function delay(_0xc90806){await new Promise(_0x332815=>setTimeout(_0x332815,_0xc90806));}async function ensureChromeProfileShape(_0x38ef49,_0x4a567b){const _0x2fc0c5=_0x3a39a7,_0x5bca01={'NBEWt':function(_0x1e449e,_0x5b6273,_0x4e8947){return _0x1e449e(_0x5b6273,_0x4e8947);},'BcixB':function(_0x4bf267,_0x282bc4){return _0x4bf267(_0x282bc4);},'XzgaN':function(_0x192c4a,_0x340e0f){return _0x192c4a(_0x340e0f);}};await _0x5bca01[_0x2fc0c5(0x197)](mkdir,_0x4a567b,{'recursive':!![]}),await _0x5bca01['BcixB'](ensureJsonFile,join(_0x38ef49,_0x2fc0c5(0x127))),await _0x5bca01['XzgaN'](ensureJsonFile,_0x5bca01['NBEWt'](join,_0x4a567b,_0x2fc0c5(0x185)));}async function ensureJsonFile(_0x365a3b){const _0xcb5dd3=_0x3a39a7,_0x4e4df7={'OXPai':function(_0xf9c512,_0x256847){return _0xf9c512(_0x256847);},'RiHwT':_0xcb5dd3(0x1a1)};try{await _0x4e4df7[_0xcb5dd3(0x1bd)](access,_0x365a3b);}catch{await writeFile(_0x365a3b,'{}',_0x4e4df7['RiHwT']);}}export function previewNovaActCliCommand(_0x36957a){return truncatePreview(_0x36957a);}
|
|
1
|
+
const _0x343f53=_0x3b20;(function(_0x122086,_0x52220c){const _0x1a2305=_0x3b20,_0x1eb484=_0x122086();while(!![]){try{const _0x280e4f=-parseInt(_0x1a2305(0x136))/0x1+parseInt(_0x1a2305(0x9a))/0x2*(parseInt(_0x1a2305(0xb9))/0x3)+parseInt(_0x1a2305(0x10d))/0x4*(-parseInt(_0x1a2305(0xde))/0x5)+parseInt(_0x1a2305(0x103))/0x6+-parseInt(_0x1a2305(0x11b))/0x7*(-parseInt(_0x1a2305(0x127))/0x8)+parseInt(_0x1a2305(0xa4))/0x9+parseInt(_0x1a2305(0x164))/0xa*(-parseInt(_0x1a2305(0xa6))/0xb);if(_0x280e4f===_0x52220c)break;else _0x1eb484['push'](_0x1eb484['shift']());}catch(_0x1d12ee){_0x1eb484['push'](_0x1eb484['shift']());}}}(_0x2f40,0x90655));import{spawn}from'child_process';import{createHash}from'crypto';import{access,chmod,mkdir,readFile,readdir,stat,writeFile}from'fs/promises';import{createServer}from'net';import{delimiter,dirname,isAbsolute,join}from'path';import{homedir}from'os';import{chromium}from'playwright';import{quoteShellArg}from'./playwrightCli.js';export const NOVA_ACT_CLI_BINARY=_0x343f53(0xfb);export const NOVA_ACT_CLI_UV_PACKAGE='nova-act[cli]';const NOVA_ACT_CLI_PREVIEW_LIMIT=0xf0,NOVA_ACT_BOOTSTRAP_TIMEOUT_MS=0x2bf20,NOVA_PROFILE_HYDRATION_CDP_TIMEOUT_MS=0x3a98,NOVA_PROMOTED_SESSION_COOKIE_TTL_SECONDS=0x7*0x18*0x3c*0x3c;export function toNovaActCliSessionId(_0x12efde){const _0x3c2ece=_0x343f53,_0x283fbb={'XEaoU':function(_0x6200ed,_0x51ee7e){return _0x6200ed(_0x51ee7e);},'qxlVt':_0x3c2ece(0x9b)},_0x29d409=_0x283fbb['XEaoU'](createHash,_0x283fbb['qxlVt'])[_0x3c2ece(0xe7)](_0x12efde)['digest'](_0x3c2ece(0x145))['slice'](0x0,0xc);return _0x3c2ece(0xc4)+_0x29d409;}export async function inspectNovaStorageStateFile(_0x414943){const _0x5a6970=_0x343f53,_0x2678a0={'QmjqV':function(_0x145436,_0x9ff2bc,_0x45f87d){return _0x145436(_0x9ff2bc,_0x45f87d);},'nFyID':function(_0x143468,_0x59cb6f){return _0x143468(_0x59cb6f);},'KBBCq':function(_0x53f51f,_0x1ed969){return _0x53f51f instanceof _0x1ed969;},'WgDyG':function(_0x132fc7,_0x48b4f7){return _0x132fc7(_0x48b4f7);}};try{const [_0x39b47e,_0x1e5e64]=await Promise[_0x5a6970(0x10f)]([stat(_0x414943),_0x2678a0[_0x5a6970(0x105)](readFile,_0x414943,'utf-8')]),_0x547cc2={'path':_0x414943,'exists':!![],'byteLength':Buffer[_0x5a6970(0x102)](_0x1e5e64),'sha256':_0x2678a0['nFyID'](createHash,_0x5a6970(0x9b))['update'](_0x1e5e64)[_0x5a6970(0x12b)](_0x5a6970(0x145))};try{const _0x518b5d=JSON['parse'](_0x1e5e64),_0x2d7796=_0x518b5d[_0x5a6970(0x13a)]??[],_0x5336a7=Math[_0x5a6970(0x118)](Date['now']()/0x3e8),_0x5d6d49=new Map();for(const _0x41111b of _0x2d7796){const _0x33b410=_0x5d6d49['get'](_0x41111b[_0x5a6970(0x9e)])??[];_0x33b410['push'](_0x41111b['name']),_0x5d6d49['set'](_0x41111b[_0x5a6970(0x9e)],_0x33b410);}return{..._0x547cc2,'byteLength':_0x39b47e[_0x5a6970(0xf5)],'cookieCount':_0x2d7796['length'],'cookieDomains':[..._0x5d6d49[_0x5a6970(0xfa)]()]['sort'](([_0x16700b],[_0x2647e4])=>_0x16700b[_0x5a6970(0xf7)](_0x2647e4))['map'](([_0x1d24cf,_0x29a7fd])=>({'domain':_0x1d24cf,'count':_0x29a7fd[_0x5a6970(0xa1)],'names':_0x29a7fd[_0x5a6970(0xd2)]()[_0x5a6970(0xb1)](0x0,0x19)})),'httpOnlyCookieCount':_0x2d7796['filter'](_0xdb1ec4=>_0xdb1ec4['httpOnly'])[_0x5a6970(0xa1)],'secureCookieCount':_0x2d7796[_0x5a6970(0x154)](_0x28c7ee=>_0x28c7ee[_0x5a6970(0x15b)])[_0x5a6970(0xa1)],'sessionCookieCount':_0x2d7796[_0x5a6970(0x154)](_0x11cd87=>_0x11cd87[_0x5a6970(0x119)]===-0x1)['length'],'expiredCookieCount':_0x2d7796['filter'](_0x3278e0=>typeof _0x3278e0['expires']==='number'&&_0x3278e0['expires']>0x0&&_0x3278e0[_0x5a6970(0x119)]<_0x5336a7)['length'],'originCount':_0x518b5d[_0x5a6970(0x152)]?.['length']??0x0,'origins':(_0x518b5d[_0x5a6970(0x152)]??[])[_0x5a6970(0xfe)](_0x2e5b29=>({'origin':_0x2e5b29['origin'],'localStorageCount':_0x2e5b29[_0x5a6970(0xa5)]?.['length']??0x0,'localStorageKeys':_0x2e5b29['localStorage']?.['map'](_0x4bb56d=>_0x4bb56d['name'])['sort']()[_0x5a6970(0xb1)](0x0,0x19)??[]}))};}catch(_0x5d12cb){return{..._0x547cc2,'byteLength':_0x39b47e[_0x5a6970(0xf5)],'parseError':_0x5d12cb instanceof Error?_0x5d12cb[_0x5a6970(0xc7)]:_0x2678a0[_0x5a6970(0x10b)](String,_0x5d12cb)};}}catch(_0x3bbd18){return{'path':_0x414943,'exists':![],'readError':_0x2678a0[_0x5a6970(0x99)](_0x3bbd18,Error)?_0x3bbd18['message']:_0x2678a0[_0x5a6970(0xa9)](String,_0x3bbd18)};}}export async function inspectNovaProfileFiles(_0x370aa1){const _0x2d9a03=_0x343f53,_0x40a640={'dCLZV':function(_0x149df5,_0x5b5899,_0x41fa21){return _0x149df5(_0x5b5899,_0x41fa21);},'iYajb':'Preferences','Xxxlp':function(_0x43be60,_0x1f3e5e,_0x5038ea){return _0x43be60(_0x1f3e5e,_0x5038ea);},'tGDno':_0x2d9a03(0x100),'FEqbH':function(_0x28b9c3,_0x250100,_0x543c43,_0x1d4a23){return _0x28b9c3(_0x250100,_0x543c43,_0x1d4a23);},'fNrju':_0x2d9a03(0x139),'gsXKi':'Local\x20Storage','Iicpa':function(_0x170efb,_0x51d43d){return _0x170efb(_0x51d43d);},'cwsNq':function(_0x510622,_0x5da634){return _0x510622(_0x5da634);},'eQjEl':function(_0x56db12,_0x305a30){return _0x56db12(_0x305a30);}},_0x2d87e7=_0x40a640['dCLZV'](join,_0x370aa1['userDataDir'],_0x2d9a03(0xd4)),_0x5ad599=join(_0x370aa1['browserProfilePath'],_0x40a640[_0x2d9a03(0xf2)]),_0x29c9ee=_0x40a640['Xxxlp'](join,_0x370aa1[_0x2d9a03(0x14c)],_0x40a640[_0x2d9a03(0xc3)]),_0x2f4362=_0x40a640[_0x2d9a03(0x124)](join,_0x370aa1['browserProfilePath'],_0x40a640[_0x2d9a03(0x148)],'Cookies'),_0x133817=join(_0x370aa1[_0x2d9a03(0x14c)],_0x40a640['gsXKi']),_0x4099b8=_0x40a640['dCLZV'](join,_0x133817,'leveldb'),[_0x145878,_0xedeb12,_0x3d09c9,_0x102b38,_0xfdd839,_0xf9771d,_0x22dd3f,_0x2a859b,_0x109b58,_0x38ac5c,_0x456e15]=await Promise[_0x2d9a03(0x10f)]([_0x40a640[_0x2d9a03(0x160)](inspectPath,_0x370aa1[_0x2d9a03(0x132)]),_0x40a640['Iicpa'](inspectPath,_0x370aa1['browserProfilePath']),inspectPath(_0x2d87e7),_0x40a640[_0x2d9a03(0x140)](inspectPath,_0x5ad599),inspectPath(_0x29c9ee),inspectPath(_0x2f4362),_0x40a640['cwsNq'](inspectPath,_0x133817),_0x40a640['eQjEl'](inspectPath,_0x4099b8),_0x40a640['Iicpa'](listDir,_0x370aa1['userDataDir']),listDir(_0x370aa1[_0x2d9a03(0x14c)]),listDir(_0x4099b8)]);return{'userDataDir':_0x370aa1[_0x2d9a03(0x132)],'browserProfilePath':_0x370aa1[_0x2d9a03(0x14c)],'rootEntries':_0x109b58,'defaultEntries':_0x38ac5c,'localStorageEntries':_0x456e15,'paths':{'userDataDir':_0x145878,'browserProfilePath':_0xedeb12,'localState':_0x3d09c9,'preferences':_0x102b38,'cookies':_0xfdd839,'networkCookies':_0xf9771d,'localStorage':_0x22dd3f,'levelDb':_0x2a859b}};}async function inspectPath(_0x1d0a34){const _0x28fa19=_0x343f53,_0x5797c7={'HyVSs':function(_0xac3df9,_0xc55114){return _0xac3df9(_0xc55114);}};try{const _0x45a881=await _0x5797c7[_0x28fa19(0x104)](stat,_0x1d0a34);return{'path':_0x1d0a34,'exists':!![],'isDirectory':_0x45a881['isDirectory'](),'byteLength':_0x45a881['isFile']()?_0x45a881['size']:undefined,'mtimeMs':_0x45a881[_0x28fa19(0x112)]};}catch(_0x1bf3e0){return{'path':_0x1d0a34,'exists':![],'error':_0x1bf3e0 instanceof Error?_0x1bf3e0[_0x28fa19(0xc7)]:String(_0x1bf3e0)};}}async function listDir(_0x23e367){const _0x575dcb=_0x343f53;try{return(await readdir(_0x23e367))['sort']()[_0x575dcb(0xb1)](0x0,0x32);}catch{return undefined;}}function truncatePreview(_0x304bc6,_0x3fc931=NOVA_ACT_CLI_PREVIEW_LIMIT){const _0x30588d=_0x343f53,_0x3dd35f={'KITVW':function(_0x39a6fc,_0x31bbfd){return _0x39a6fc+_0x31bbfd;}};return _0x304bc6['length']>_0x3fc931?_0x3dd35f[_0x30588d(0xe6)](_0x304bc6['slice'](0x0,_0x3fc931),_0x30588d(0x14f)):_0x304bc6;}function truncateOutput(_0x1e0712,_0x11b704=0x7d0){const _0x19c0c8=_0x343f53,_0x2f4a91={'OuVue':function(_0x5a9943,_0x4a4e1d){return _0x5a9943+_0x4a4e1d;}};return _0x1e0712['length']>_0x11b704?_0x2f4a91[_0x19c0c8(0xc8)](_0x1e0712[_0x19c0c8(0xb1)](0x0,_0x11b704),'...'):_0x1e0712;}function _0x2f40(){const _0xfb5a24=['stdout','WvVJo','browserProfilePath','For\x20AWS\x20SSO,\x20set\x20AWS_PROFILE\x20and\x20run:\x20aws\x20sso\x20login\x20--profile\x20<profile>','join','...','newPage','nnyXu','origins','MrlwI','filter','AWS_PROFILE','Timed\x20out\x20waiting\x20for\x20hydration\x20browser\x20CDP','--browser-profile-path','Installed\x20','svxJP','qBPaO','secure','SIGTERM','cwd','domcontentloaded','CWoZb','Iicpa','fix','zHbKD','address','2396910UIWWLm','vaTXI','KBBCq','92212lLZFdv','sha256','vbZuD','nova-act-browser','domain','add','stderr:\x20','length','object','trim','2483154gEScIQ','localStorage','33zYTglc','PATH','find','WgDyG','--no-first-run','executablePath','--headless=new','#!/usr/bin/env\x20bash\x0aset\x20-euo\x20pipefail\x0aif\x20[[\x20\x22${1:-}\x22\x20==\x20\x22session\x22\x20&&\x20(\x20\x22${2:-}\x22\x20==\x20\x22export\x22\x20||\x20\x22${2:-}\x22\x20==\x20\x22close\x22\x20)\x20]];\x20then\x0a\x20\x20exec\x20','commandArgs','oRLsw','off','slice','joMhC','rJUmJ','export','nova-act-cli\x20transport\x20requires\x20the\x20Nova\x20Act\x20CLI.\x20Ranger\x20could\x20not\x20find\x20`','--user-data-dir=','string','kqhOA','57rwcbxe','wWjBN','FkYNM','iXiRW','code','toString','LObJq','127.0.0.1','\x0astderr:\x20','timed\x20out\x20after\x20','tGDno','rg-','jIRLn','wblGA','message','OuVue','yEVda','listen','tLxXp','some','has','DdlbJ','Default','tFCAS','RZvAw','sort','hgtdV','Local\x20State','log_dir','Ctuvo','error','iXYuX','WcKSa','pkwNs','LHyoL','logDir','storageStatePath','5xUErnD','\x20signal=','IJGtB','timedOut','Nova\x20profile\x20hydration\x20browser\x20did\x20not\x20expose\x20a\x20context','timeoutMs','yqcSg','\x0astdout:\x20','KITVW','update','UV_TOOL_BIN_DIR','--session-id','utf-8','fail','evaluate','TxHtD','sessionId','SIGKILL','data','execute','iYajb','close','qFJTV','size','doctor','localeCompare','RVDNu','value','entries','act','null','signal','map','status','Cookies','--profile-directory=Default','byteLength','4724574rnxSNt','HyVSs','QmjqV','riOwC','name','WesHT','env','NjVEZ','nFyID','session','3559888wDcEeL','cIHHB','all','once','WmybG','mtimeMs','baseUrl','For\x20AWS\x20SSO,\x20run:\x20aws\x20sso\x20login\x20--profile\x20','\x0afi\x0a\x0aexec\x20','logs_dir','connectOverCDP','floor','expires','command','2821553KHFGty','push','MfHhT','EvEXu','parse','eKZGe','kill','setItem','/usr/local/bin','FEqbH','act\x20browser\x20doctor\x20--json\x20timed\x20out','launchArgs','8igOrSD','exited\x20with\x20code=','match','`,\x20and\x20`uv`\x20is\x20not\x20available\x20to\x20install\x20it.\x0aInstall\x20uv,\x20or\x20run:\x20uv\x20tool\x20install\x20\x22','digest','fsXYT','exitCode','bnRND','headless','--headless','\x20browser\x20\x22$@\x22\x20','userDataDir','dRVIk','stdout:\x20','/json/version','141938PbhJQJ','KjwNq','MjEpo','Network','cookies','DQNKc','act\x20browser\x20doctor\x20--json\x20exited\x20with\x20code=','logsDirectory','kbjoA','stderr','cwsNq','ignore','--cdp','ygDxP','browser','hex','ZXewJ','/.local/bin','fNrju','pipe'];_0x2f40=function(){return _0xfb5a24;};return _0x2f40();}function getNovaActCliBinDirs(_0x1c3edf){const _0x3fb571=_0x343f53,_0x5b8691={'fsXYT':function(_0x19240f){return _0x19240f();},'WmkBY':'/opt/homebrew/bin','cYNCS':_0x3fb571(0x123)};return[_0x1c3edf[_0x3fb571(0xe8)],_0x5b8691[_0x3fb571(0x12c)](homedir)+_0x3fb571(0x147),_0x5b8691['WmkBY'],_0x5b8691['cYNCS']]['filter'](_0x83116c=>Boolean(_0x83116c));}function buildPathWithNovaActCliBins(_0x301206){const _0x1ce30f=_0x343f53,_0x201052=new Set(),_0x5af167=[...getNovaActCliBinDirs(_0x301206),...(_0x301206[_0x1ce30f(0xa7)]??'')['split'](delimiter)][_0x1ce30f(0x154)](_0x757198=>{const _0x525397=_0x1ce30f;if(!_0x757198||_0x201052[_0x525397(0xcd)](_0x757198))return![];return _0x201052[_0x525397(0x9f)](_0x757198),!![];});return _0x5af167[_0x1ce30f(0x14e)](delimiter);}export function applyNovaActCliPath(_0x268812){const _0x5529ed=_0x343f53,_0xdf8c88={'iXYuX':function(_0x54baa2,_0x7fa990){return _0x54baa2(_0x7fa990);}};_0x268812[_0x5529ed(0xa7)]=_0xdf8c88[_0x5529ed(0xd8)](buildPathWithNovaActCliBins,_0x268812);}function withNovaActCliPath(_0x188845){const _0x12c549={'PoJgc':function(_0x24ad73,_0x58a067){return _0x24ad73(_0x58a067);}};return{..._0x188845,'PATH':_0x12c549['PoJgc'](buildPathWithNovaActCliBins,_0x188845)};}function runBootstrapCommand(_0x1ebd14){const _0x62582=_0x343f53,_0x153f33={'wWjBN':function(_0x3f149d,_0x420f38,_0x27edc0){return _0x3f149d(_0x420f38,_0x27edc0);},'vaTXI':function(_0x57bf6c,_0x585e39){return _0x57bf6c(_0x585e39);},'HkgGO':function(_0x593818,_0x4e8149){return _0x593818??_0x4e8149;},'NjVEZ':_0x62582(0xfc),'ZXewJ':function(_0x201778,_0x44aa9c,_0x293608,_0x973004){return _0x201778(_0x44aa9c,_0x293608,_0x973004);},'iAwsb':'data','PZhbH':_0x62582(0xd7),'tHKaX':'close'},{command:_0x27f652,args:_0x163d68,env:_0x566c18,timeoutMs:timeoutMs=NOVA_ACT_BOOTSTRAP_TIMEOUT_MS}=_0x1ebd14;return new Promise((_0x370ea6,_0xb108b7)=>{const _0x4cfa17=_0x62582,_0xfb2c8f={'IJGtB':function(_0x29cbc4,_0x3987ac){const _0x51eaeb=_0x3b20;return _0x153f33[_0x51eaeb(0x165)](_0x29cbc4,_0x3987ac);}},_0x594ab3=_0x153f33[_0x4cfa17(0x146)](spawn,_0x27f652,_0x163d68,{'env':_0x566c18,'stdio':[_0x4cfa17(0x141),_0x4cfa17(0x149),_0x4cfa17(0x149)]});let _0x159f62='',_0x31cd9e='',_0x1a50a4=![];const _0x544a6d=setTimeout(()=>{const _0x3264e0=_0x4cfa17,_0x4c54d6={'qFJTV':_0x3264e0(0xef)};_0x1a50a4=!![],_0x594ab3[_0x3264e0(0x121)](_0x3264e0(0x15c)),_0x153f33[_0x3264e0(0xba)](setTimeout,()=>{const _0x4c38d6=_0x3264e0;try{_0x594ab3[_0x4c38d6(0x121)](_0x4c54d6[_0x4c38d6(0xf4)]);}catch{}},0x3e8);},timeoutMs);_0x594ab3[_0x4cfa17(0x14a)]?.['on'](_0x153f33['iAwsb'],_0x1972cf=>{const _0x3328bd=_0x4cfa17;_0x159f62+=_0x1972cf[_0x3328bd(0xbe)]();}),_0x594ab3[_0x4cfa17(0x13f)]?.['on']('data',_0x45a871=>{const _0x5c06e0=_0x4cfa17;_0x31cd9e+=_0x45a871[_0x5c06e0(0xbe)]();}),_0x594ab3['on'](_0x153f33['PZhbH'],_0x21dbdc=>{const _0x136aaa=_0x4cfa17;_0xfb2c8f['IJGtB'](clearTimeout,_0x544a6d),_0xfb2c8f[_0x136aaa(0xe0)](_0xb108b7,_0x21dbdc);}),_0x594ab3['on'](_0x153f33['tHKaX'],(_0x1c50e0,_0x532b37)=>{const _0x2724b1=_0x4cfa17;_0x153f33['vaTXI'](clearTimeout,_0x544a6d);if(_0x1c50e0===0x0){_0x153f33[_0x2724b1(0x165)](_0x370ea6,{'stdout':_0x159f62,'stderr':_0x31cd9e});return;}const _0x20f30e=_0x1a50a4?_0x2724b1(0xc2)+timeoutMs+'ms':_0x2724b1(0x128)+_0x153f33['HkgGO'](_0x1c50e0,_0x153f33['NjVEZ'])+'\x20signal='+_0x153f33['HkgGO'](_0x532b37,_0x153f33[_0x2724b1(0x10a)]);_0xb108b7(new Error(_0x27f652+'\x20'+_0x163d68['join']('\x20')+'\x20'+_0x20f30e+'\x0astdout:\x20'+truncateOutput(_0x159f62)+_0x2724b1(0xc1)+_0x153f33['vaTXI'](truncateOutput,_0x31cd9e)));});});}function runCommandAllowFailure(_0x58e417){const _0x366bee=_0x343f53,_0x4664c8={'pkwNs':function(_0x1fbeaa,_0x2d4634,_0x58d674){return _0x1fbeaa(_0x2d4634,_0x58d674);},'ccWqN':function(_0x7b9bc4,_0x21f366){return _0x7b9bc4(_0x21f366);},'tLxXp':_0x366bee(0x149),'gZvBe':_0x366bee(0xf0),'zhFKj':_0x366bee(0xf3)},{command:_0x2e4b7e,args:_0x101d19,env:_0x1f79a9,timeoutMs:_0x1807c}=_0x58e417;return new Promise((_0x40d53d,_0x581547)=>{const _0x18ea95=_0x366bee,_0x2960af={'cIHHB':_0x18ea95(0xef)},_0x26b191=spawn(_0x2e4b7e,_0x101d19,{'env':_0x1f79a9,'stdio':[_0x18ea95(0x141),_0x4664c8[_0x18ea95(0xcb)],_0x18ea95(0x149)]});let _0x13babe='',_0x407bdc='',_0x2ff97f=![];const _0x559e46=setTimeout(()=>{const _0xc163d6=_0x18ea95;_0x2ff97f=!![],_0x26b191['kill'](_0xc163d6(0x15c)),_0x4664c8[_0xc163d6(0xda)](setTimeout,()=>{const _0x122d99=_0xc163d6;try{_0x26b191[_0x122d99(0x121)](_0x2960af[_0x122d99(0x10e)]);}catch{}},0x3e8);},_0x1807c);_0x26b191['stdout']?.['on'](_0x4664c8['gZvBe'],_0x96bcac=>{const _0x5ce1dc=_0x18ea95;_0x13babe+=_0x96bcac[_0x5ce1dc(0xbe)]();}),_0x26b191[_0x18ea95(0x13f)]?.['on'](_0x18ea95(0xf0),_0x324917=>{const _0x588b5d=_0x18ea95;_0x407bdc+=_0x324917[_0x588b5d(0xbe)]();}),_0x26b191['on'](_0x18ea95(0xd7),_0x2fb85e=>{clearTimeout(_0x559e46),_0x581547(_0x2fb85e);}),_0x26b191['on'](_0x4664c8['zhFKj'],(_0x4b8c73,_0x6b40ce)=>{clearTimeout(_0x559e46),_0x4664c8['ccWqN'](_0x40d53d,{'code':_0x4b8c73,'signal':_0x6b40ce,'stdout':_0x13babe,'stderr':_0x407bdc,'timedOut':_0x2ff97f});});});}async function resolveActPath(_0x6444aa){const _0x31c256={'pcnAs':function(_0x15b334,_0x1ad4c8){return _0x15b334(_0x1ad4c8);},'CIfAo':function(_0x190645,_0x364f4f){return _0x190645(_0x364f4f);}},_0x6e147e=_0x31c256['pcnAs'](isAbsolute,NOVA_ACT_CLI_BINARY)?[NOVA_ACT_CLI_BINARY]:(_0x6444aa['PATH']??'')['split'](delimiter)['filter'](Boolean)['map'](_0x16c612=>join(_0x16c612,NOVA_ACT_CLI_BINARY));for(const _0x3ed129 of _0x6e147e){try{return await _0x31c256['CIfAo'](access,_0x3ed129),_0x3ed129;}catch{}}return null;}async function checkNovaActCli(_0xb5e61d){const _0x136e66={'XBteH':function(_0x3d17b2,_0x659eb5){return _0x3d17b2(_0x659eb5);}};try{return await _0x136e66['XBteH'](runBootstrapCommand,{'command':NOVA_ACT_CLI_BINARY,'args':['browser','--help'],'env':_0xb5e61d,'timeoutMs':0x7530}),await resolveActPath(_0xb5e61d)??NOVA_ACT_CLI_BINARY;}catch{return null;}}export async function ensureNovaActCliInstalled(_0x2bb7a9={}){const _0x4e661a=_0x343f53,_0x2886dc={'bnRND':function(_0x106076,_0x57193e){return _0x106076(_0x57193e);},'yqcSg':'--version','aBOYd':function(_0x592c03,_0x5c1fd1){return _0x592c03 instanceof _0x5c1fd1;},'RZvAw':function(_0x351439,_0x3f498a){return _0x351439(_0x3f498a);},'TaZwN':'tool','nvmxt':'install','TuzkK':function(_0x575d9d,_0x5e3ff1){return _0x575d9d(_0x5e3ff1);}},_0x2a6bfd=withNovaActCliPath(_0x2bb7a9['env']??process[_0x4e661a(0x109)]),_0x6a3557=await checkNovaActCli(_0x2a6bfd);if(_0x6a3557)return{'installed':![],'actPath':_0x6a3557,'uvPackage':NOVA_ACT_CLI_UV_PACKAGE,'stdout':'','stderr':''};try{await _0x2886dc[_0x4e661a(0x12e)](runBootstrapCommand,{'command':'uv','args':[_0x2886dc[_0x4e661a(0xe4)]],'env':_0x2a6bfd,'timeoutMs':0x7530});}catch(_0x5da8ab){throw new Error(_0x4e661a(0xb5)+NOVA_ACT_CLI_BINARY+_0x4e661a(0x12a)+NOVA_ACT_CLI_UV_PACKAGE+'\x22\x0a'+(_0x2886dc['aBOYd'](_0x5da8ab,Error)?_0x5da8ab['message']:_0x2886dc['bnRND'](String,_0x5da8ab)));}const _0x353114=await _0x2886dc[_0x4e661a(0xd1)](runBootstrapCommand,{'command':'uv','args':[_0x2886dc['TaZwN'],_0x2886dc['nvmxt'],NOVA_ACT_CLI_UV_PACKAGE],'env':_0x2a6bfd,'timeoutMs':_0x2bb7a9[_0x4e661a(0xe3)]??NOVA_ACT_BOOTSTRAP_TIMEOUT_MS}),_0x49e189=await _0x2886dc['bnRND'](checkNovaActCli,_0x2a6bfd);if(!_0x49e189)throw new Error(_0x4e661a(0x158)+NOVA_ACT_CLI_UV_PACKAGE+',\x20but\x20`'+NOVA_ACT_CLI_BINARY+'\x20browser\x20--help`\x20is\x20still\x20unavailable.\x20Ensure\x20'+_0x2886dc['TuzkK'](getNovaActCliBinDirs,_0x2a6bfd)['join'](',\x20')+'\x20is\x20on\x20PATH.\x0astdout:\x20'+_0x2886dc['TuzkK'](truncateOutput,_0x353114[_0x4e661a(0x14a)])+'\x0astderr:\x20'+truncateOutput(_0x353114[_0x4e661a(0x13f)]));return{'installed':!![],'actPath':_0x49e189,'uvPackage':NOVA_ACT_CLI_UV_PACKAGE,'stdout':_0x353114['stdout'],'stderr':_0x353114[_0x4e661a(0x13f)]};}function parseNovaActDoctorOutput(_0x55e9bc){const _0x195e75=_0x343f53;try{return JSON[_0x195e75(0x11f)](_0x55e9bc);}catch{return null;}}function _0x3b20(_0x1d3e0e,_0x56c0c5){_0x1d3e0e=_0x1d3e0e-0x99;const _0x2f40ec=_0x2f40();let _0x3b2052=_0x2f40ec[_0x1d3e0e];return _0x3b2052;}function buildNovaActCliPreflightError(_0x153faf){const _0x5045df=_0x343f53,_0xbcfcc7={'dRVIk':function(_0x1cc5dd,_0x845ecf){return _0x1cc5dd>_0x845ecf;},'ygDxP':function(_0x53b04e,_0x2740ef){return _0x53b04e(_0x2740ef);},'LuZCL':'Configure\x20Nova\x20Act\x20with\x20NOVA_ACT_API_KEY,\x20run\x20act\x20browser\x20setup\x20--api-key\x20<key>,\x20or\x20configure\x20AWS\x20credentials.'},{checks:_0xbc23b5,stdout:_0x53e6c0,stderr:_0x5eff3b,env:_0x556eed,code:_0x206451,signal:_0x184423,timedOut:_0x33af9b}=_0x153faf,_0x13b3a6=_0xbc23b5[_0x5045df(0x154)](_0x1d2db8=>_0x1d2db8['status']===_0x5045df(0xeb)),_0x190117=_0xbcfcc7[_0x5045df(0x133)](_0x13b3a6[_0x5045df(0xa1)],0x0)?_0x13b3a6[_0x5045df(0xfe)](_0xb60a97=>{const _0x2d404e=_0x5045df,_0x564f03=_0xb60a97[_0x2d404e(0x161)]?'\x20Fix:\x20'+_0xb60a97[_0x2d404e(0x161)]:'';return'-\x20'+_0xb60a97[_0x2d404e(0x107)]+':\x20'+_0xb60a97[_0x2d404e(0xc7)]+'.'+_0x564f03;})['join']('\x0a'):[_0x33af9b?_0x5045df(0x125):_0x5045df(0x13c)+(_0x206451??'null')+'\x20signal='+(_0x184423??_0x5045df(0xfc)),_0x53e6c0?_0x5045df(0x134)+truncateOutput(_0x53e6c0):'',_0x5eff3b?_0x5045df(0xa0)+_0xbcfcc7[_0x5045df(0x143)](truncateOutput,_0x5eff3b):'']['filter'](Boolean)['join']('\x0a'),_0x1e001a=_0x556eed[_0x5045df(0x155)]?.[_0x5045df(0xa3)](),_0x2bc243=_0x1e001a?_0x5045df(0x114)+_0x1e001a:_0x5045df(0x14d);return new Error(['Nova\x20Act\x20CLI\x20preflight\x20failed,\x20so\x20Ranger\x20did\x20not\x20start\x20a\x20browser\x20session.',_0x190117,_0xbcfcc7['LuZCL'],_0x2bc243][_0x5045df(0x14e)]('\x0a'));}export async function preflightNovaActCli(_0x403c8a={}){const _0x5704c8=_0x343f53,_0x4c2b86={'YwEro':function(_0x1d8aaa,_0x4dd315){return _0x1d8aaa(_0x4dd315);},'LObJq':_0x5704c8(0x144),'OaUVd':_0x5704c8(0xf6),'TxHtD':'--json'},_0x48ade4=_0x4c2b86['YwEro'](withNovaActCliPath,_0x403c8a[_0x5704c8(0x109)]??process[_0x5704c8(0x109)]),_0x34602b=await runCommandAllowFailure({'command':NOVA_ACT_CLI_BINARY,'args':[_0x4c2b86[_0x5704c8(0xbf)],_0x4c2b86['OaUVd'],_0x4c2b86[_0x5704c8(0xed)]],'env':_0x48ade4,'timeoutMs':_0x403c8a['timeoutMs']??0x7530}),_0x281d48=parseNovaActDoctorOutput(_0x34602b['stdout']),_0x275752=_0x281d48?.['data']?.['checks']??[],_0x4221dd=_0x275752[_0x5704c8(0xcc)](_0x1ce249=>_0x1ce249[_0x5704c8(0xff)]==='fail');if(_0x34602b[_0x5704c8(0xbd)]!==0x0||_0x34602b['timedOut']||_0x4221dd)throw buildNovaActCliPreflightError({'checks':_0x275752,'stdout':_0x34602b[_0x5704c8(0x14a)],'stderr':_0x34602b['stderr'],'env':_0x48ade4,'code':_0x34602b['code'],'signal':_0x34602b[_0x5704c8(0xfd)],'timedOut':_0x34602b[_0x5704c8(0xe1)]});return{'checks':_0x275752,'logDir':_0x281d48?.[_0x5704c8(0xd5)]??_0x281d48?.[_0x5704c8(0xdc)]};}function getNovaActCliSubcommand(_0x20f0cb){const _0x4a5e4c=_0x343f53,_0x1bec4a={'lnZvV':function(_0x2a9e14,_0x703b0){return _0x2a9e14===_0x703b0;},'MjEpo':_0x4a5e4c(0x10c)},[_0x6bef67='unknown',_0x2466ea]=_0x20f0cb;return _0x1bec4a['lnZvV'](_0x6bef67,_0x1bec4a[_0x4a5e4c(0x138)])&&_0x2466ea?_0x6bef67+'\x20'+_0x2466ea:_0x6bef67;}function supportsBrowserSessionOptions(_0x30a13b){const _0x27cebe=_0x343f53,_0x11bfd5={'jIRLn':function(_0x11d164,_0x532dc8){return _0x11d164===_0x532dc8;}};return!(_0x30a13b[0x0]===_0x27cebe(0x10c)&&(_0x30a13b[0x1]==='export'||_0x11bfd5[_0x27cebe(0xc5)](_0x30a13b[0x1],'close')));}function buildSharedArgs(_0x31dbab,_0x571598){const _0x475298=_0x343f53,_0x516d2e={'EvEXu':function(_0x41bcf6,_0xf9000f){return _0x41bcf6(_0xf9000f);},'EHUDg':'--quiet','Tmaeq':'--headed','LHyoL':'--executable-path'},_0x2e760e=[_0x475298(0xe9),_0x31dbab[_0x475298(0xee)],'--json'];if(_0x516d2e[_0x475298(0x11e)](supportsBrowserSessionOptions,_0x571598)){_0x2e760e[_0x475298(0x11c)](_0x516d2e['EHUDg']),_0x2e760e[_0x475298(0x11c)](_0x31dbab[_0x475298(0x12f)]?_0x475298(0x130):_0x516d2e['Tmaeq']);_0x31dbab[_0x475298(0x14c)]&&_0x2e760e['push'](_0x475298(0x157),_0x31dbab[_0x475298(0x14c)]);_0x31dbab['executablePath']&&_0x2e760e[_0x475298(0x11c)](_0x516d2e[_0x475298(0xdb)],_0x31dbab[_0x475298(0xab)]);_0x31dbab['cdpEndpoint']&&_0x2e760e[_0x475298(0x11c)](_0x475298(0x142),_0x31dbab['cdpEndpoint']);for(const _0x407b71 of _0x31dbab[_0x475298(0x126)]??[]){_0x2e760e['push']('--launch-arg='+_0x407b71);}}return _0x2e760e;}export function buildNovaActCliInvocation(_0x27a8f0,_0x1b206f){const _0x323234=_0x343f53,_0x463c22={'rJUmJ':'browser','XlHGK':function(_0x26d0e8,_0x1ba2dd){return _0x26d0e8(_0x1ba2dd);}},_0x222689=buildSharedArgs(_0x27a8f0,_0x1b206f),_0x4db90b=[_0x463c22[_0x323234(0xb3)],..._0x1b206f,..._0x222689];return{'command':NOVA_ACT_CLI_BINARY,'args':_0x4db90b,'shellCommand':[NOVA_ACT_CLI_BINARY,'browser',..._0x1b206f[_0x323234(0xfe)](quoteShellArg),..._0x222689[_0x323234(0xfe)](quoteShellArg)][_0x323234(0x14e)]('\x20'),'subcommand':_0x463c22['XlHGK'](getNovaActCliSubcommand,_0x1b206f)};}export function buildNovaActCliCommandPrefix(){return NOVA_ACT_CLI_BINARY+'\x20browser';}export function buildNovaActCliBrowserWrapperPath(_0x55a0d0){const _0xea1953=_0x343f53,_0x41138e={'AhMpZ':function(_0x240f8e,_0x3b94e3){return _0x240f8e(_0x3b94e3);},'FkYNM':_0xea1953(0x9d)};return join(_0x41138e['AhMpZ'](dirname,_0x55a0d0[_0xea1953(0x132)]),_0x41138e[_0xea1953(0xbb)]);}export async function writeNovaActCliBrowserWrapper(_0x4776f5){const _0x10c379=_0x343f53,_0x4a8adb={'dWOag':function(_0x325f53,_0x52371d){return _0x325f53(_0x52371d);},'tdFNE':function(_0x44a595,_0x1344dd){return _0x44a595(_0x1344dd);},'iylBf':'utf-8','WmybG':function(_0x10940e,_0x1ddcc5,_0x10792d){return _0x10940e(_0x1ddcc5,_0x10792d);}},_0x199e9e=_0x4776f5['browserCommandPath']??buildNovaActCliBrowserWrapperPath(_0x4776f5),_0x15798b=buildSharedArgs(_0x4776f5,['execute'])['map'](quoteShellArg)[_0x10c379(0x14e)]('\x20'),_0x3e5dd9=buildSharedArgs(_0x4776f5,[_0x10c379(0x10c),_0x10c379(0xb4)])['map'](quoteShellArg)[_0x10c379(0x14e)]('\x20');return await mkdir(_0x4a8adb['dWOag'](dirname,_0x199e9e),{'recursive':!![]}),await mkdir(_0x4776f5[_0x10c379(0x132)],{'recursive':!![]}),await writeFile(_0x199e9e,_0x10c379(0xad)+_0x4a8adb['tdFNE'](quoteShellArg,NOVA_ACT_CLI_BINARY)+'\x20browser\x20\x22$@\x22\x20'+_0x3e5dd9+_0x10c379(0x115)+_0x4a8adb['tdFNE'](quoteShellArg,NOVA_ACT_CLI_BINARY)+_0x10c379(0x131)+_0x15798b+'\x0a',_0x4a8adb['iylBf']),await _0x4a8adb[_0x10c379(0x111)](chmod,_0x199e9e,0x1ed),_0x199e9e;}export function buildNovaActCliSharedOptionsSuffix(_0x2bb370,_0x3c2ffc=[_0x343f53(0xf1)]){const _0x53483e=_0x343f53;return buildSharedArgs(_0x2bb370,_0x3c2ffc)[_0x53483e(0xfe)](quoteShellArg)[_0x53483e(0x14e)]('\x20');}export async function runNovaActCliCommand(_0x1155ce){const _0x3424f0=_0x343f53,_0x602e32={'tFCAS':_0x3424f0(0x15c),'ACCvu':function(_0x11aaaf,_0x3fa9a6){return _0x11aaaf(_0x3fa9a6);},'CWoZb':function(_0x56ad3e,_0xd75704){return _0x56ad3e??_0xd75704;},'fbVWJ':'null','WesHT':function(_0xddfa1e,_0x4eedeb,_0x3c07ef,_0x48c4b0){return _0xddfa1e(_0x4eedeb,_0x3c07ef,_0x48c4b0);},'CQTYS':_0x3424f0(0x141),'vbZuD':'pipe','qBPaO':function(_0x2f0323,_0x2b2d00,_0x5b8edf){return _0x2f0323(_0x2b2d00,_0x5b8edf);},'vEjoQ':'data','yEVda':_0x3424f0(0xf3),'eKZGe':function(_0x98f672,_0x2fa3a8,_0x5005d1){return _0x98f672(_0x2fa3a8,_0x5005d1);}};await mkdir(_0x1155ce['userDataDir'],{'recursive':!![]});const _0x332d58=_0x602e32[_0x3424f0(0x120)](buildNovaActCliInvocation,_0x1155ce,_0x1155ce[_0x3424f0(0xae)]);return new Promise((_0x5c3f18,_0x5f03ea)=>{const _0x3316f3=_0x3424f0,_0x13360b={'DdlbJ':_0x602e32[_0x3316f3(0xd0)],'Ctuvo':function(_0x38e50b,_0x56a330){return _0x602e32['ACCvu'](_0x38e50b,_0x56a330);},'SyhXS':function(_0x10fee3,_0x553c63){const _0x4b5579=_0x3316f3;return _0x602e32[_0x4b5579(0x15f)](_0x10fee3,_0x553c63);},'KiHGn':_0x602e32['fbVWJ']},_0x7f8dbf=_0x602e32[_0x3316f3(0x108)](spawn,_0x332d58[_0x3316f3(0x11a)],_0x332d58['args'],{'cwd':_0x1155ce[_0x3316f3(0x15d)],'env':_0x1155ce['env'],'stdio':[_0x602e32['CQTYS'],_0x602e32['vbZuD'],_0x602e32[_0x3316f3(0x9c)]]});let _0x1602b2='',_0x395971='',_0xd198a2=![];const _0x2d93ce=_0x1155ce[_0x3316f3(0xe3)]&&_0x1155ce['timeoutMs']>0x0?_0x602e32[_0x3316f3(0x15a)](setTimeout,()=>{const _0x575590=_0x3316f3;_0xd198a2=!![],_0x7f8dbf[_0x575590(0x121)](_0x13360b[_0x575590(0xce)]),setTimeout(()=>{const _0x4f25d3=_0x575590;try{_0x7f8dbf[_0x4f25d3(0x121)](_0x4f25d3(0xef));}catch{}},0x3e8);},_0x1155ce[_0x3316f3(0xe3)]):null;_0x7f8dbf[_0x3316f3(0x14a)]?.['on'](_0x602e32['vEjoQ'],_0x4c84c1=>{const _0x552113=_0x3316f3;_0x1602b2+=_0x4c84c1[_0x552113(0xbe)]();}),_0x7f8dbf[_0x3316f3(0x13f)]?.['on']('data',_0x5654b3=>{_0x395971+=_0x5654b3['toString']();}),_0x7f8dbf['on'](_0x3316f3(0xd7),_0xe89ebf=>{if(_0x2d93ce)_0x13360b['Ctuvo'](clearTimeout,_0x2d93ce);_0x5f03ea(_0xe89ebf);}),_0x7f8dbf['on'](_0x602e32[_0x3316f3(0xc9)],(_0x1593ce,_0x4c9447)=>{const _0x4c61a6=_0x3316f3;if(_0x2d93ce)_0x13360b[_0x4c61a6(0xd6)](clearTimeout,_0x2d93ce);if(_0x1593ce===0x0){_0x5c3f18({'stdout':_0x1602b2,'stderr':_0x395971,'invocation':_0x332d58});return;}const _0x4f844f=_0xd198a2?'timed\x20out\x20after\x20'+_0x1155ce[_0x4c61a6(0xe3)]+'ms':_0x4c61a6(0x128)+_0x13360b['SyhXS'](_0x1593ce,_0x4c61a6(0xfc))+_0x4c61a6(0xdf)+_0x13360b['SyhXS'](_0x4c9447,_0x13360b['KiHGn']);_0x13360b['Ctuvo'](_0x5f03ea,new Error('nova-act-cli\x20'+_0x332d58['subcommand']+'\x20'+_0x4f844f+_0x4c61a6(0xe5)+truncateOutput(_0x1602b2)+'\x0astderr:\x20'+truncateOutput(_0x395971)));});});}export function parseNovaActCliCommand(_0x1c469e){const _0x4667a2=_0x343f53,_0x35a1f0=_0x1c469e[_0x4667a2(0x129)](/(?:^|\s)(?:(?:"[^"]*\/act"|'[^']*\/act'|\S*\/act|act)\s+browser|(?:"[^"]*\/nova-act-browser"|'[^']*\/nova-act-browser'|\S*\/nova-act-browser|nova-act-browser))\s+(session\s+[a-z-]+|[a-z][a-z-]*)\b/);return _0x35a1f0?.[0x1]??null;}export function extractNovaActLogDir(_0x1a57b7){const _0x25ad91=_0x343f53;try{const _0x45e7b2=JSON[_0x25ad91(0x11f)](_0x1a57b7),_0x2d6e74=[_0x45e7b2['logs_directory'],_0x45e7b2[_0x25ad91(0x13d)],_0x45e7b2[_0x25ad91(0x116)],_0x45e7b2['logDir'],_0x45e7b2[_0x25ad91(0xd5)]],_0x1c1379=_0x2d6e74[_0x25ad91(0xa8)](_0x4dda92=>typeof _0x4dda92==='string'&&_0x4dda92[_0x25ad91(0xa3)]()['length']>0x0);if(_0x1c1379)return _0x1c1379;}catch{}const _0x5cc989=_0x1a57b7['match'](/(?:logs_directory|logsDirectory|log_dir|logDir|logs dir|logs directory)[:=]\s*["']?([^\s"',}]+)/i);return _0x5cc989?.[0x1]??null;}export async function loadNovaActSessionExport(_0x569b18){const _0x27fc9b=_0x343f53;try{return JSON['parse'](await readFile(_0x569b18,_0x27fc9b(0xea)));}catch{return null;}}export async function hydrateNovaProfileFromStorageState(_0x117207){const _0x5b592f=_0x343f53,_0x3f448f={'zHbKD':function(_0x343621,_0x547a6e){return _0x343621!==_0x547a6e;},'svxJP':function(_0x4c403a,_0x538846){return _0x4c403a+_0x538846;},'joMhC':function(_0x1dbbf1,_0x106b51){return _0x1dbbf1/_0x106b51;},'WcKSa':function(_0x584f9b,_0x32b537,_0x5d7a79){return _0x584f9b(_0x32b537,_0x5d7a79);},'MrlwI':function(_0x22a3e9,_0x484346){return _0x22a3e9(_0x484346);},'iXiRW':function(_0x3d10c0,_0x5d36d8){return _0x3d10c0(_0x5d36d8);},'riOwC':_0x5b592f(0xe2),'MfHhT':function(_0x3e127d,_0x3f04e,_0x472a53){return _0x3e127d(_0x3f04e,_0x472a53);}},_0x405818=JSON[_0x5b592f(0x11f)](await _0x3f448f[_0x5b592f(0xd9)](readFile,_0x117207['storageStatePath'],'utf-8')),_0x5ed7d5=await _0x3f448f[_0x5b592f(0x153)](inspectNovaStorageStateFile,_0x117207[_0x5b592f(0xdd)]);await _0x3f448f['WcKSa'](mkdir,_0x117207[_0x5b592f(0x132)],{'recursive':!![]});const _0x2a3681=join(_0x117207['userDataDir'],_0x5b592f(0xcf)),_0x3c9aaa=await inspectNovaProfileFiles({'userDataDir':_0x117207[_0x5b592f(0x132)],'browserProfilePath':_0x2a3681}),{browser:_0x16f6b9,process:_0x127892}=await _0x3f448f[_0x5b592f(0xbc)](launchNovaHydrationBrowser,{'userDataDir':_0x117207[_0x5b592f(0x132)],'browserProfilePath':_0x2a3681,'executablePath':_0x117207['executablePath'],'headless':_0x117207['headless'],'launchArgs':_0x117207['launchArgs']}),_0x33ff48=_0x16f6b9['contexts']()[0x0];if(!_0x33ff48){await closeNovaHydrationBrowser(_0x16f6b9,_0x127892);throw new Error(_0x3f448f[_0x5b592f(0x106)]);}let _0x9d577d=0x0,_0x26a3e4=0x0;try{const _0x35f9bb=_0x405818[_0x5b592f(0x13a)]??[];if(_0x35f9bb['length']>0x0){const _0x46fbcb=_0x35f9bb['map'](_0x4a4f7e=>{const _0x1106d1=_0x5b592f;if(_0x3f448f[_0x1106d1(0x162)](_0x4a4f7e[_0x1106d1(0x119)],-0x1))return _0x4a4f7e;return _0x26a3e4+=0x1,{..._0x4a4f7e,'expires':_0x3f448f[_0x1106d1(0x159)](Math[_0x1106d1(0x118)](_0x3f448f[_0x1106d1(0xb2)](Date['now'](),0x3e8)),NOVA_PROMOTED_SESSION_COOKIE_TTL_SECONDS)};});await _0x33ff48['addCookies'](_0x46fbcb);}for(const _0x4e3021 of _0x405818[_0x5b592f(0x152)]??[]){if(!_0x4e3021[_0x5b592f(0xa5)]?.['length'])continue;const _0x8870af=await _0x33ff48[_0x5b592f(0x150)]();await _0x8870af['goto'](_0x4e3021['origin'],{'waitUntil':'domcontentloaded','timeout':0x7530}),await _0x8870af[_0x5b592f(0xec)](_0xab8691=>{const _0x2c23bf=_0x5b592f;for(const _0x32f787 of _0xab8691){window[_0x2c23bf(0xa5)][_0x2c23bf(0x122)](_0x32f787[_0x2c23bf(0x107)],_0x32f787[_0x2c23bf(0xf9)]);}},_0x4e3021['localStorage']),_0x9d577d+=_0x4e3021['localStorage']['length'],await _0x8870af[_0x5b592f(0xf3)]();}if(_0x117207[_0x5b592f(0x113)]){const _0x336d59=await _0x33ff48[_0x5b592f(0x150)]();await _0x336d59['goto'](_0x117207[_0x5b592f(0x113)],{'waitUntil':_0x5b592f(0x15e),'timeout':0x7530}),await _0x336d59[_0x5b592f(0xf3)]();}await _0x3f448f[_0x5b592f(0x11d)](ensureChromeProfileShape,_0x117207[_0x5b592f(0x132)],_0x2a3681);}finally{await closeNovaHydrationBrowser(_0x16f6b9,_0x127892);}const _0x59518a=await _0x3f448f['iXiRW'](inspectNovaProfileFiles,{'userDataDir':_0x117207[_0x5b592f(0x132)],'browserProfilePath':_0x2a3681});return{'browserProfilePath':_0x2a3681,'cookieCount':_0x405818[_0x5b592f(0x13a)]?.['length']??0x0,'promotedSessionCookieCount':_0x26a3e4,'originCount':_0x405818['origins']?.['length']??0x0,'localStorageEntryCount':_0x9d577d,'storageStateDiagnostics':_0x5ed7d5,'profileBefore':_0x3c9aaa,'profileAfter':_0x59518a};}async function launchNovaHydrationBrowser(_0x210e58){const _0x4e1752=_0x343f53,_0x5684f8={'KjwNq':function(_0x389545){return _0x389545();},'QOhdB':'--window-size=1280,720','vzaBJ':_0x4e1752(0xac),'kqhOA':'pipe','WvVJo':function(_0x38c7aa,_0x3e1ca3){return _0x38c7aa(_0x3e1ca3);}};await ensureChromeProfileShape(_0x210e58[_0x4e1752(0x132)],_0x210e58[_0x4e1752(0x14c)]);const _0x323914=_0x210e58[_0x4e1752(0xab)]??chromium[_0x4e1752(0xab)](),_0x3c3950=await _0x5684f8[_0x4e1752(0x137)](getAvailablePort),_0x189f1d=['--remote-debugging-port='+_0x3c3950,_0x4e1752(0xb6)+_0x210e58[_0x4e1752(0x132)],_0x4e1752(0x101),_0x5684f8['QOhdB'],_0x4e1752(0xaa),'--remote-allow-origins=http://localhost'];_0x210e58['headless']&&_0x189f1d['push'](_0x5684f8['vzaBJ']);_0x189f1d[_0x4e1752(0x11c)](..._0x210e58['launchArgs']??[]);const _0x41e33a=spawn(_0x323914,_0x189f1d,{'stdio':[_0x4e1752(0x141),_0x4e1752(0x149),_0x5684f8[_0x4e1752(0xb8)]]});try{const _0x5415a0=await waitForCdpEndpoint(_0x41e33a,_0x3c3950),_0x934d86=await chromium[_0x4e1752(0x117)](_0x5415a0);return{'browser':_0x934d86,'process':_0x41e33a};}catch(_0x5301da){await _0x5684f8[_0x4e1752(0x14b)](terminateNovaHydrationBrowser,_0x41e33a);throw _0x5301da;}}async function closeNovaHydrationBrowser(_0x546b27,_0x1997fc){const _0xe6bd62=_0x343f53;try{await _0x546b27[_0xe6bd62(0xf3)]();}catch{await terminateNovaHydrationBrowser(_0x1997fc);return;}const _0x442deb=await waitForProcessExit(_0x1997fc,0x1388);!_0x442deb&&await terminateNovaHydrationBrowser(_0x1997fc);}async function terminateNovaHydrationBrowser(_0x4db21b){const _0xacc75c=_0x343f53,_0x5755d6={'kbjoA':_0xacc75c(0x15c)};if(_0x4db21b['exitCode']!==null)return;try{_0x4db21b[_0xacc75c(0x121)](_0x5755d6[_0xacc75c(0x13e)]);}catch{}await waitForProcessExit(_0x4db21b,0x7d0);if(_0x4db21b[_0xacc75c(0x12d)]===null){try{_0x4db21b['kill'](_0xacc75c(0xef));}catch{}await waitForProcessExit(_0x4db21b,0x7d0);}}async function waitForCdpEndpoint(_0x4d19fb,_0x46b789){const _0x5decac=_0x343f53,_0x2b9202={'ovLNc':function(_0x2ac83e,_0x2a96eb){return _0x2ac83e<_0x2a96eb;},'DQNKc':function(_0x2ed224,_0x5e44df){return _0x2ed224-_0x5e44df;},'QiRDG':function(_0x5bc7e4,_0x18ef80){return _0x5bc7e4(_0x18ef80);},'tYnyt':function(_0x36e1da,_0x417aa0){return _0x36e1da===_0x417aa0;},'gHcFA':function(_0x48dde1,_0x5444cc){return _0x48dde1 instanceof _0x5444cc;}},_0x456a17=Date['now']();let _0x16bcc8;while(_0x2b9202['ovLNc'](_0x2b9202[_0x5decac(0x13b)](Date['now'](),_0x456a17),NOVA_PROFILE_HYDRATION_CDP_TIMEOUT_MS)){if(_0x4d19fb['exitCode']!==null)throw new Error('Hydration\x20browser\x20exited\x20before\x20CDP\x20became\x20available\x20with\x20code\x20'+_0x4d19fb[_0x5decac(0x12d)]);try{const _0x1b3153=await _0x2b9202['QiRDG'](fetch,'http://127.0.0.1:'+_0x46b789+_0x5decac(0x135));if(_0x1b3153['ok']){const _0xba4ff3=await _0x1b3153['json']();if(_0x2b9202['tYnyt'](typeof _0xba4ff3['webSocketDebuggerUrl'],_0x5decac(0xb7)))return _0xba4ff3['webSocketDebuggerUrl'];}}catch(_0x35c2f1){_0x16bcc8=_0x35c2f1;}await delay(0x64);}const _0x3bb7ac=_0x2b9202['gHcFA'](_0x16bcc8,Error)?':\x20'+_0x16bcc8['message']:'';throw new Error(_0x5decac(0x156)+_0x3bb7ac);}async function getAvailablePort(){const _0x302b3e=_0x343f53,_0x3194b1={'wblGA':function(_0x13d3f0,_0x59b253){return _0x13d3f0(_0x59b253);},'RZdYe':function(_0x878097){return _0x878097();},'vAMct':_0x302b3e(0xc0)};return new Promise((_0x3fb4e0,_0x4ffcd0)=>{const _0x387d7b=_0x302b3e,_0xf344e=_0x3194b1['RZdYe'](createServer);_0xf344e['once'](_0x387d7b(0xd7),_0x4ffcd0),_0xf344e[_0x387d7b(0xca)](0x0,_0x3194b1['vAMct'],()=>{const _0x4b01a7=_0x387d7b,_0x1a46d4={'hgtdV':function(_0x26dae7,_0x14d35b){return _0x26dae7===_0x14d35b;},'sKBVU':function(_0x3819e0,_0x5bd31f){const _0x385f84=_0x3b20;return _0x3194b1[_0x385f84(0xc6)](_0x3819e0,_0x5bd31f);},'ZoEjV':'Failed\x20to\x20allocate\x20hydration\x20browser\x20port'},_0x54eaad=_0xf344e[_0x4b01a7(0x163)]();_0xf344e[_0x4b01a7(0xf3)](_0x368aa5=>{const _0x3ad4f2=_0x4b01a7;if(_0x368aa5){_0x4ffcd0(_0x368aa5);return;}if(_0x1a46d4[_0x3ad4f2(0xd3)](typeof _0x54eaad,_0x3ad4f2(0xa2))&&_0x54eaad?.['port']){_0x3fb4e0(_0x54eaad['port']);return;}_0x1a46d4['sKBVU'](_0x4ffcd0,new Error(_0x1a46d4['ZoEjV']));});});});}async function waitForProcessExit(_0x2f1b34,_0x129224){const _0x392d53=_0x343f53,_0x10d4d2={'oRLsw':function(_0x7eb4eb,_0x5348a0){return _0x7eb4eb(_0x5348a0);},'uTkUK':function(_0x57de9a,_0x54fee4,_0xb275f0){return _0x57de9a(_0x54fee4,_0xb275f0);}};if(_0x2f1b34[_0x392d53(0x12d)]!==null)return!![];return new Promise(_0x301f7d=>{const _0x2afe99=_0x392d53,_0x53de14={'Nnmub':function(_0x2fb728,_0x5e8187){const _0x2d83f6=_0x3b20;return _0x10d4d2[_0x2d83f6(0xaf)](_0x2fb728,_0x5e8187);}},_0x5d6829=_0x10d4d2['uTkUK'](setTimeout,()=>{_0x131b85(),_0x10d4d2['oRLsw'](_0x301f7d,![]);},_0x129224),_0x36acc1=()=>{_0x131b85(),_0x301f7d(!![]);},_0x131b85=()=>{const _0x65b8e7=_0x3b20;_0x53de14['Nnmub'](clearTimeout,_0x5d6829),_0x2f1b34[_0x65b8e7(0xb0)]('exit',_0x36acc1);};_0x2f1b34[_0x2afe99(0x110)]('exit',_0x36acc1);});}async function delay(_0x78dbc){await new Promise(_0x5ed31b=>setTimeout(_0x5ed31b,_0x78dbc));}async function ensureChromeProfileShape(_0x2dd074,_0x2a35a3){const _0x5f4ce7=_0x343f53,_0x55e6fb={'FwCDS':function(_0x32170d,_0x4caada,_0x480b2d){return _0x32170d(_0x4caada,_0x480b2d);},'noRkK':_0x5f4ce7(0xd4),'RVDNu':function(_0x3a9715,_0x1fcbe0){return _0x3a9715(_0x1fcbe0);},'nnyXu':'Preferences'};await _0x55e6fb['FwCDS'](mkdir,_0x2a35a3,{'recursive':!![]}),await ensureJsonFile(join(_0x2dd074,_0x55e6fb['noRkK'])),await _0x55e6fb[_0x5f4ce7(0xf8)](ensureJsonFile,join(_0x2a35a3,_0x55e6fb[_0x5f4ce7(0x151)]));}async function ensureJsonFile(_0x999cdb){try{await access(_0x999cdb);}catch{await writeFile(_0x999cdb,'{}','utf-8');}}export function previewNovaActCliCommand(_0x1866bb){return truncatePreview(_0x1866bb);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x32be9b,_0x3ad1c4){var _0x4aa535=_0x1bd2,_0x20d8b0=_0x32be9b();while(!![]){try{var _0x44b98f=parseInt(_0x4aa535(0x185))/0x1+-parseInt(_0x4aa535(0x18a))/0x2*(parseInt(_0x4aa535(0x192))/0x3)+parseInt(_0x4aa535(0x184))/0x4+-parseInt(_0x4aa535(0x188))/0x5*(-parseInt(_0x4aa535(0x193))/0x6)+parseInt(_0x4aa535(0x187))/0x7*(parseInt(_0x4aa535(0x196))/0x8)+parseInt(_0x4aa535(0x18f))/0x9*(-parseInt(_0x4aa535(0x18c))/0xa)+-parseInt(_0x4aa535(0x190))/0xb;if(_0x44b98f===_0x3ad1c4)break;else _0x20d8b0['push'](_0x20d8b0['shift']());}catch(_0x41d79d){_0x20d8b0['push'](_0x20d8b0['shift']());}}}(_0x48a7,0x309df));function _0x48a7(){var _0x3081c0=['1485990JQLGnh','skills','bSAua','9hrIApn','1918829jKaNzZ','opencode','51ICadqp','6VNDnrs','XDG_CONFIG_HOME','.opencode','16bYQsrc','OPENCODE_CONFIG_DIR','1124120GurqkE','382189UBkyVr','Lbgdd','620767Ccmpfc','118075OxhhFM','env','40238YXXwNG','pTlqb'];_0x48a7=function(){return _0x3081c0;};return _0x48a7();}import{homedir}from'os';import{join}from'path';function _0x1bd2(_0x5f1599,_0x6149e7){_0x5f1599=_0x5f1599-0x183;var _0x48a77e=_0x48a7();var _0x1bd2fd=_0x48a77e[_0x5f1599];return _0x1bd2fd;}import{getProjectRoot}from'./claudeConfig.js';export function getOpencodeConfigDir(_0x40ea93){var _0x181297=_0x1bd2,_0x40db01={'bSAua':'user','Yfgjh':function(_0x21699a,_0x419602,_0x3b6a2d){return _0x21699a(_0x419602,_0x3b6a2d);},'ALkSR':function(_0x214af8,_0x27f556,_0x56ce1f){return _0x214af8(_0x27f556,_0x56ce1f);}};if(process[_0x181297(0x189)]['OPENCODE_CONFIG_DIR'])return process[_0x181297(0x189)][_0x181297(0x183)];if(_0x40ea93===_0x40db01[_0x181297(0x18e)]){if(process[_0x181297(0x189)]['XDG_CONFIG_HOME'])return _0x40db01['Yfgjh'](join,process[_0x181297(0x189)][_0x181297(0x194)],_0x181297(0x191));return join(homedir(),'.config',_0x181297(0x191));}return _0x40db01['ALkSR'](join,getProjectRoot(),_0x181297(0x195));}export function getOpencodeSkillsDir(_0xc2c9ab){var _0x15aa98=_0x1bd2,_0x411f80={'Lbgdd':function(_0x1dc867,_0x4d0791){return _0x1dc867(_0x4d0791);},'pTlqb':_0x15aa98(0x18d)};return join(_0x411f80[_0x15aa98(0x186)](getOpencodeConfigDir,_0xc2c9ab),_0x411f80[_0x15aa98(0x18b)]);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5c666d,_0x335ff4){const _0x1e19be=_0x1326,_0x3f8745=_0x5c666d();while(!![]){try{const _0x14ae71=parseInt(_0x1e19be(0x11b))/0x1*(parseInt(_0x1e19be(0x116))/0x2)+parseInt(_0x1e19be(0x11a))/0x3+parseInt(_0x1e19be(0x124))/0x4*(-parseInt(_0x1e19be(0x118))/0x5)+-parseInt(_0x1e19be(0x11e))/0x6+-parseInt(_0x1e19be(0x11d))/0x7+-parseInt(_0x1e19be(0x129))/0x8*(parseInt(_0x1e19be(0x127))/0x9)+parseInt(_0x1e19be(0x117))/0xa*(parseInt(_0x1e19be(0x12a))/0xb);if(_0x14ae71===_0x335ff4)break;else _0x3f8745['push'](_0x3f8745['shift']());}catch(_0x334a5a){_0x3f8745['push'](_0x3f8745['shift']());}}}(_0x1c74,0xc14c1));import{getApiBaseUrl}from'./environment.js';function _0x1c74(){const _0x5e5cd1=['Bearer\x20','searchParams','975222rmJVsl','20CjvwRA','10QPbkAT','Organization\x20environment\x20variable\x20','1022916VvSNNd','1UYAKXm','ENQrd','5632984hSKwLS','9264018BqVIeF','/organization/environment-variables','biqaJ','text','krKzh','variableName','2324948iNfWnB','json','map','9avmZCm','status','2661064dgkKWL','20938412ZfPnnG','set','from','number'];_0x1c74=function(){return _0x5e5cd1;};return _0x1c74();}function _0x1326(_0x442525,_0xf907c5){_0x442525=_0x442525-0x114;const _0x1c74f7=_0x1c74();let _0x132630=_0x1c74f7[_0x442525];return _0x132630;}import{getToken}from'./keychain.js';async function getOrganizationEnvironmentVariable(_0x26e257){const _0x51c46e=_0x1326,_0x29766c={'WztYF':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','wVLTD':_0x51c46e(0x123),'krKzh':function(_0x29011d,_0x2c3db1){return _0x29011d===_0x2c3db1;},'biqaJ':function(_0x255777,_0x5a3375){return _0x255777===_0x5a3375;},'qyYtz':'string','ENQrd':_0x51c46e(0x12d)},_0x25f4f1=await getToken();if(!_0x25f4f1)throw new Error(_0x29766c['WztYF']);const _0x1fb369=new URL(getApiBaseUrl()+_0x51c46e(0x11f));_0x1fb369[_0x51c46e(0x115)][_0x51c46e(0x12b)](_0x29766c['wVLTD'],_0x26e257);const _0x245828=await fetch(_0x1fb369,{'method':'GET','headers':{'Authorization':_0x51c46e(0x114)+_0x25f4f1}});if(_0x29766c[_0x51c46e(0x122)](_0x245828['status'],0x194))return null;if(!_0x245828['ok']){const _0x26072e=await _0x245828[_0x51c46e(0x121)]();throw new Error('Failed\x20to\x20fetch\x20organization\x20environment\x20variable\x20'+_0x26e257+':\x20'+_0x245828[_0x51c46e(0x128)]+'\x20'+_0x26072e);}const _0x332215=await _0x245828[_0x51c46e(0x125)](),_0x54856c=_0x332215[_0x26e257];if(_0x29766c[_0x51c46e(0x120)](_0x54856c,undefined)||_0x54856c===null)return null;if(typeof _0x54856c===_0x29766c['qyYtz']||typeof _0x54856c===_0x29766c[_0x51c46e(0x11c)])return String(_0x54856c);throw new Error(_0x51c46e(0x119)+_0x26e257+'\x20must\x20be\x20a\x20string\x20or\x20number');}export async function getOrganizationEnvironmentVariables(_0x1c47ea){const _0x8f1cb8=_0x1326,_0x28f958=Array[_0x8f1cb8(0x12c)](new Set(_0x1c47ea)),_0xbd571=await Promise['all'](_0x28f958[_0x8f1cb8(0x126)](async _0x1d51ed=>{const _0x36f37c=await getOrganizationEnvironmentVariable(_0x1d51ed);return _0x36f37c===null?null:[_0x1d51ed,_0x36f37c];}));return Object['fromEntries'](_0xbd571['filter'](_0x1dd1bc=>Boolean(_0x1dd1bc)));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1b2139,_0x3c3a9d){const _0x26da6e=_0x5cf3,_0x3334c8=_0x1b2139();while(!![]){try{const _0x390695=-parseInt(_0x26da6e(0x1e0))/0x1+parseInt(_0x26da6e(0x202))/0x2*(-parseInt(_0x26da6e(0x1f6))/0x3)+-parseInt(_0x26da6e(0x1de))/0x4*(-parseInt(_0x26da6e(0x1e3))/0x5)+parseInt(_0x26da6e(0x206))/0x6+-parseInt(_0x26da6e(0x1fe))/0x7*(-parseInt(_0x26da6e(0x1e7))/0x8)+-parseInt(_0x26da6e(0x1df))/0x9+-parseInt(_0x26da6e(0x1dc))/0xa*(-parseInt(_0x26da6e(0x208))/0xb);if(_0x390695===_0x3c3a9d)break;else _0x3334c8['push'](_0x3334c8['shift']());}catch(_0x5dc8e0){_0x3334c8['push'](_0x3334c8['shift']());}}}(_0x1927,0x6e1e4));import{spawn}from'child_process';import{createHash}from'crypto';function _0x5cf3(_0xc6fd8d,_0x4073c3){_0xc6fd8d=_0xc6fd8d-0x1d5;const _0x192759=_0x1927();let _0x5cf38b=_0x192759[_0xc6fd8d];return _0x5cf38b;}export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function toPlaywrightCliSessionKey(_0x3542e7){const _0x4bb204=_0x5cf3,_0x410568={'KythD':function(_0x4c14ad,_0x2a16a7){return _0x4c14ad(_0x2a16a7);},'TOQVe':'sha256','BhQAU':'hex'},_0x38dbc9=_0x410568['KythD'](createHash,_0x410568['TOQVe'])['update'](_0x3542e7)[_0x4bb204(0x1f5)](_0x410568[_0x4bb204(0x1dd)])['slice'](0x0,0xc);return _0x4bb204(0x1f2)+_0x38dbc9;}function shellQuote(_0x21ce47){const _0x55f8fb=_0x5cf3;return'\x27'+_0x21ce47['replace'](/'/g,_0x55f8fb(0x1fd))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x3e37ea){const _0x531777=_0x5cf3,_0x1cea8c={'eTGpF':function(_0x265f94,_0x587c58){return _0x265f94(_0x587c58);}};return SAFE_SHELL_TOKEN['test'](_0x3e37ea)?_0x3e37ea:_0x1cea8c[_0x531777(0x200)](shellQuote,_0x3e37ea);}export function buildPlaywrightCliInvocation(_0x746d30,_0x396019,_0x101550){const _0x4162dd=_0x5cf3,_0x4e6c72={'frAQq':_0x4162dd(0x1e8),'bcQAw':_0x4162dd(0x1f0)},_0x5cda7c=toPlaywrightCliSessionKey(_0x746d30),[_0x1f71ad=_0x4162dd(0x1fa)]=_0x101550,_0x26b817=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x5cda7c,_0x4e6c72['frAQq'],_0x396019,..._0x101550];return{'command':_0x4162dd(0x1f0),'args':_0x26b817,'shellCommand':[_0x4e6c72[_0x4162dd(0x1f8)],PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x5cda7c),_0x4e6c72['frAQq'],quoteShellArg(_0x396019),..._0x101550[_0x4162dd(0x1e2)](quoteShellArg)]['join']('\x20'),'subcommand':_0x1f71ad};}export function buildPlaywrightCliCommandPrefix(_0x5a4173,_0x2c574e){const _0x564024=_0x5cf3,_0x133e9f={'wvqZr':function(_0x56cbfa,_0x4c5acf){return _0x56cbfa(_0x4c5acf);},'UhjuA':_0x564024(0x1f0),'vGmPG':function(_0x402098,_0x1a82a1){return _0x402098(_0x1a82a1);},'uqmLN':function(_0xbcdccc,_0x350bff){return _0xbcdccc(_0x350bff);}},_0x53c6a3=_0x133e9f[_0x564024(0x1eb)](toPlaywrightCliSessionKey,_0x5a4173);return[_0x133e9f[_0x564024(0x1e1)],PLAYWRIGHT_CLI_BINARY,'-s='+_0x133e9f[_0x564024(0x1d9)](quoteShellArg,_0x53c6a3),'--config',_0x133e9f['uqmLN'](quoteShellArg,_0x2c574e)][_0x564024(0x20b)]('\x20');}function truncateOutput(_0x527a96,_0xec919d=0x7d0){const _0x46fad6=_0x5cf3,_0x4754fa={'tsmBp':function(_0x12b75a,_0x4442ac){return _0x12b75a+_0x4442ac;}};return _0x527a96[_0x46fad6(0x1fc)]>_0xec919d?_0x4754fa[_0x46fad6(0x1ff)](_0x527a96[_0x46fad6(0x209)](0x0,_0xec919d),'...'):_0x527a96;}function _0x1927(){const _0x214ac2=['\x0astdout:\x20','length','\x27\x5c\x27\x27','7vhwnUs','tsmBp','eTGpF','SIGKILL','653804WwpVDb','data','string','hqeHx','498876cuurrc','commandArgs','22lfAUXN','slice','args','join','bash_command','stdout','timeoutMs','playwright-cli\x20','vGmPG','odEeX','gHZpo','4164070mVVxgn','BhQAU','4plPxoQ','4969674aEKwrK','28223VLHRaX','UhjuA','map','1292305YEwFcH','error','KFxjA','pipe','1471472Tfclhw','--config','nKrOw','find','wvqZr','LLKbs','oygMS','kill','SNDFA','npx','toString','rg-','BmOnf','command','digest','3cKWzkB','configPath','bcQAw','script','unknown'];_0x1927=function(){return _0x214ac2;};return _0x1927();}export async function runPlaywrightCliCommand(_0x7e0057){const _0xb4d028=_0x5cf3,_0x19b0ff={'mDMnF':function(_0x4466bb,_0x121ff3){return _0x4466bb===_0x121ff3;},'oygMS':function(_0x1b8339,_0x49a3f3){return _0x1b8339(_0x49a3f3);},'nKrOw':'null','SNDFA':function(_0x5268f0,_0x44abbb){return _0x5268f0??_0x44abbb;},'wLXZu':'ignore','OWybA':'pipe','LLKbs':'data','BmOnf':'close','odEeX':function(_0x3594d1,_0x1e3f53,_0x575097,_0x39b44b){return _0x3594d1(_0x1e3f53,_0x575097,_0x39b44b);}},_0x51665d=_0x19b0ff[_0xb4d028(0x1da)](buildPlaywrightCliInvocation,_0x7e0057['sessionId'],_0x7e0057[_0xb4d028(0x1f7)],_0x7e0057[_0xb4d028(0x207)]);return new Promise((_0x3201b2,_0x4412c1)=>{const _0x470c78=_0xb4d028,_0x4aa1f7={'gHZpo':_0x470c78(0x201),'hqeHx':function(_0x4b1650,_0xb215d5){return _0x4b1650(_0xb215d5);}},_0x6e94de=spawn(_0x51665d[_0x470c78(0x1f4)],_0x51665d[_0x470c78(0x20a)],{'cwd':_0x7e0057['cwd'],'env':_0x7e0057['env'],'stdio':[_0x19b0ff['wLXZu'],_0x19b0ff['OWybA'],_0x470c78(0x1e6)]});let _0x3072da='',_0x3e1cb3='',_0x2ba240=![];const _0x85d3fa=_0x7e0057['timeoutMs']&&_0x7e0057[_0x470c78(0x1d7)]>0x0?setTimeout(()=>{const _0x27c02f=_0x470c78,_0x49ee8c={'KFxjA':_0x4aa1f7[_0x27c02f(0x1db)]};_0x2ba240=!![],_0x6e94de['kill']('SIGTERM'),setTimeout(()=>{const _0x4d4b65=_0x27c02f;try{_0x6e94de[_0x4d4b65(0x1ee)](_0x49ee8c[_0x4d4b65(0x1e5)]);}catch{}},0x3e8);},_0x7e0057['timeoutMs']):null;_0x6e94de[_0x470c78(0x1d6)]?.['on'](_0x19b0ff[_0x470c78(0x1ec)],_0x2eb45e=>{const _0x504895=_0x470c78;_0x3072da+=_0x2eb45e[_0x504895(0x1f1)]();}),_0x6e94de['stderr']?.['on'](_0x470c78(0x203),_0x3de167=>{_0x3e1cb3+=_0x3de167['toString']();}),_0x6e94de['on'](_0x470c78(0x1e4),_0x217059=>{const _0x91b983=_0x470c78;if(_0x85d3fa)_0x4aa1f7[_0x91b983(0x205)](clearTimeout,_0x85d3fa);_0x4aa1f7['hqeHx'](_0x4412c1,_0x217059);}),_0x6e94de['on'](_0x19b0ff[_0x470c78(0x1f3)],(_0x231c9b,_0x2424fd)=>{const _0x18ea3f=_0x470c78;if(_0x85d3fa)clearTimeout(_0x85d3fa);if(_0x19b0ff['mDMnF'](_0x231c9b,0x0)){_0x19b0ff[_0x18ea3f(0x1ed)](_0x3201b2,{'stdout':_0x3072da,'stderr':_0x3e1cb3,'invocation':_0x51665d});return;}const _0x1cc7cc=_0x2ba240?'timed\x20out\x20after\x20'+_0x7e0057['timeoutMs']+'ms':'exited\x20with\x20code='+(_0x231c9b??_0x19b0ff[_0x18ea3f(0x1e9)])+'\x20signal='+_0x19b0ff[_0x18ea3f(0x1ef)](_0x2424fd,_0x19b0ff[_0x18ea3f(0x1e9)]);_0x4412c1(new Error(_0x18ea3f(0x1d8)+_0x51665d['subcommand']+'\x20'+_0x1cc7cc+_0x18ea3f(0x1fb)+truncateOutput(_0x3072da)+'\x0astderr:\x20'+truncateOutput(_0x3e1cb3)));});});}export function extractBashCommand(_0x2d49a7){const _0x6eda39=_0x5cf3,_0x1fd2ec={'bWkUg':function(_0x5c6599,_0x2666df){return _0x5c6599===_0x2666df;}},_0x4eef72=[_0x6eda39(0x1f4),'cmd',_0x6eda39(0x1f9),_0x6eda39(0x1d5)];for(const _0x463086 of _0x4eef72){const _0x46d017=_0x2d49a7[_0x463086];if(_0x1fd2ec['bWkUg'](typeof _0x46d017,_0x6eda39(0x204))&&_0x46d017['trim']())return _0x46d017;}const _0x10ae47=Object['values'](_0x2d49a7)[_0x6eda39(0x1ea)](_0x5e11c7=>typeof _0x5e11c7===_0x6eda39(0x204)&&_0x5e11c7['trim']()['length']>0x0);return _0x10ae47??null;}export function parsePlaywrightCliCommand(_0x1cdbbb){const _0x13f4fa=_0x1cdbbb['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x13f4fa?.[0x1]??null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xe34d4f,_0x472f7e){const _0x55194d=_0x3e86,_0x2ce061=_0xe34d4f();while(!![]){try{const _0x2c83b6=-parseInt(_0x55194d(0x1d1))/0x1+parseInt(_0x55194d(0x1d5))/0x2*(-parseInt(_0x55194d(0x1d4))/0x3)+parseInt(_0x55194d(0x1d2))/0x4+-parseInt(_0x55194d(0x1d0))/0x5*(-parseInt(_0x55194d(0x1d3))/0x6)+-parseInt(_0x55194d(0x1cf))/0x7*(parseInt(_0x55194d(0x1ce))/0x8)+-parseInt(_0x55194d(0x1d6))/0x9+parseInt(_0x55194d(0x1d7))/0xa;if(_0x2c83b6===_0x472f7e)break;else _0x2ce061['push'](_0x2ce061['shift']());}catch(_0x20e64f){_0x2ce061['push'](_0x2ce061['shift']());}}}(_0xff43,0xb0f29));const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';function _0x3e86(_0x163979,_0x12fa68){_0x163979=_0x163979-0x1ce;const _0xff431b=_0xff43();let _0x3e86f5=_0xff431b[_0x163979];return _0x3e86f5;}function _0xff43(){const _0xe895c=['232521FmqZPx','32dTkFXP','6759657BAnqsk','28439120UWDMUL','212216HmMhPw','364tRyiFM','3852245bVFDQW','236292lovyAG','2869188XZmvQZ','6HFSmOJ'];_0xff43=function(){return _0xe895c;};return _0xff43();}export function formatProfileRequiredMessage(_0x526187){const _0x312776={'vZnLS':function(_0x21a805,_0xdcc586){return _0x21a805(_0xdcc586);}},_0x50ac83=_0x526187?_0x312776['vZnLS'](_0x526187,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20'+_0x50ac83+'.';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x575126,_0x21b77a){const _0x2929a0=_0x4245,_0x3a5e6d=_0x575126();while(!![]){try{const _0x36e5e4=parseInt(_0x2929a0(0xb9))/0x1+parseInt(_0x2929a0(0xb7))/0x2*(-parseInt(_0x2929a0(0xbc))/0x3)+parseInt(_0x2929a0(0xb2))/0x4+-parseInt(_0x2929a0(0xb4))/0x5+-parseInt(_0x2929a0(0xb0))/0x6+-parseInt(_0x2929a0(0xb3))/0x7+parseInt(_0x2929a0(0xb6))/0x8*(parseInt(_0x2929a0(0xaf))/0x9);if(_0x36e5e4===_0x21b77a)break;else _0x3a5e6d['push'](_0x3a5e6d['shift']());}catch(_0x8546a9){_0x3a5e6d['push'](_0x3a5e6d['shift']());}}}(_0x4187,0x454f7));function _0x4245(_0x474f4a,_0x1f8890){_0x474f4a=_0x474f4a-0xad;const _0x418754=_0x4187();let _0x4245de=_0x418754[_0x474f4a];return _0x4245de;}function _0x4187(){const _0x156578=['zpqrc','18dCWWBK','914280cEMhWJ','GZNXG','1822192kEOLdq','1396367PBpMKs','1632100hXQYoL','addInitScript','2584624icukVq','950000nvvRPR','</div>','335472VCOvwR','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','naxYC','3yEuCpt','<div\x20class=\x22ranger-banner__message\x22>',';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a','<div\x20class=\x22ranger-banner__content\x22>'];_0x4187=function(){return _0x156578;};return _0x4187();}const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x15080f=_0x4245,_0x58a94f={'GZNXG':function(_0x3ca606,_0x1b93b1){return _0x3ca606+_0x1b93b1;},'naxYC':function(_0x3e45be,_0x5b4df8){return _0x3e45be+_0x5b4df8;},'drvWh':'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','ICHPf':_0x15080f(0xba),'zpqrc':_0x15080f(0xb8)},_0x347029=_0x58a94f[_0x15080f(0xb1)](_0x58a94f['GZNXG'](_0x58a94f[_0x15080f(0xbb)](_0x58a94f['naxYC'](_0x15080f(0xad)+_0x58a94f['drvWh'],_0x15080f(0xbd)),_0x58a94f['ICHPf']),'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>')+_0x58a94f[_0x15080f(0xae)],'</div>')+'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>',_0x4f4fe7='\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a';return'\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20'+JSON['stringify'](_0x347029)+';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20'+JSON['stringify'](_0x4f4fe7)+_0x15080f(0xbe);})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x5bca8b){const _0x34d9e9=_0x4245;await _0x5bca8b[_0x34d9e9(0xb5)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x560b86,_0x219fa5){const _0x47ca29=_0x2bac,_0x7effaa=_0x560b86();while(!![]){try{const _0xf9261f=-parseInt(_0x47ca29(0x1af))/0x1+parseInt(_0x47ca29(0x19d))/0x2*(parseInt(_0x47ca29(0x1a2))/0x3)+parseInt(_0x47ca29(0x1b9))/0x4*(-parseInt(_0x47ca29(0x1b7))/0x5)+parseInt(_0x47ca29(0x1a9))/0x6*(-parseInt(_0x47ca29(0x1b4))/0x7)+-parseInt(_0x47ca29(0x1ac))/0x8+parseInt(_0x47ca29(0x19a))/0x9+parseInt(_0x47ca29(0x1b1))/0xa;if(_0xf9261f===_0x219fa5)break;else _0x7effaa['push'](_0x7effaa['shift']());}catch(_0x3e9953){_0x7effaa['push'](_0x7effaa['shift']());}}}(_0x3799,0xb54f0));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x5eea0f=_0x2bac,_0x3521f2={'JjkjV':function(_0x31ef6f){return _0x31ef6f();},'fFgQd':'projects.json'};return join(_0x3521f2[_0x5eea0f(0x198)](getRangerHomeDir),_0x3521f2[_0x5eea0f(0x1b3)]);}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x4d25bd=_0x2bac,_0x3cba84={'cvpYC':function(_0xd902ac,_0x4e7d93){return _0xd902ac(_0x4e7d93);},'BZUxa':_0x4d25bd(0x1bc),'hNjEI':function(_0x4fd6ec,_0x417fa4){return _0x4fd6ec instanceof _0x417fa4;},'nsPfs':function(_0x341f39){return _0x341f39();},'hNhBi':_0x4d25bd(0x1ad),'MDuCV':function(_0x597fe2,_0x230747){return _0x597fe2!==_0x230747;}},_0xad2d90=getProjectsConfigPath();if(!_0x3cba84[_0x4d25bd(0x1a1)](existsSync,_0xad2d90))return emptyConfig();let _0x3f3228;try{_0x3f3228=readFileSync(_0xad2d90,_0x3cba84['BZUxa']);}catch(_0x3726e3){const _0x34c6c5=_0x3cba84['hNjEI'](_0x3726e3,Error)?_0x3726e3[_0x4d25bd(0x19f)]:String(_0x3726e3);return console['warn'](_0x4d25bd(0x1aa)+_0xad2d90+':\x20'+_0x34c6c5+_0x4d25bd(0x196)),_0x3cba84['nsPfs'](emptyConfig);}let _0x4473fe;try{_0x4473fe=JSON[_0x4d25bd(0x1b8)](_0x3f3228);}catch(_0xf42ca1){const _0xb82cd6=_0xf42ca1 instanceof Error?_0xf42ca1[_0x4d25bd(0x19f)]:_0x3cba84[_0x4d25bd(0x1a1)](String,_0xf42ca1);return console['warn']('[ranger]\x20Warning:\x20'+_0xad2d90+'\x20is\x20not\x20valid\x20JSON\x20('+_0xb82cd6+_0x4d25bd(0x1ab)),emptyConfig();}if(!_0x4473fe||typeof _0x4473fe!==_0x3cba84['hNhBi']||Array['isArray'](_0x4473fe)||_0x3cba84[_0x4d25bd(0x194)](_0x4473fe[_0x4d25bd(0x1a5)],CURRENT_VERSION)||_0x3cba84['MDuCV'](typeof _0x4473fe[_0x4d25bd(0x195)],_0x3cba84[_0x4d25bd(0x1a4)])||_0x4473fe['projects']===null||Array['isArray'](_0x4473fe[_0x4d25bd(0x195)]))return console['warn'](_0x4d25bd(0x1b5)+_0xad2d90+_0x4d25bd(0x1a8)),emptyConfig();return _0x4473fe;}export function writeProjectsConfig(_0x12258c){const _0x3611c1=_0x2bac,_0x32db64={'sllTE':function(_0x47e836){return _0x47e836();},'OHeTa':function(_0x459c8e,_0x54877a,_0x6e9973){return _0x459c8e(_0x54877a,_0x6e9973);},'XznkP':'utf-8','gPqBm':function(_0x1583dd,_0x1db241,_0x471b93){return _0x1583dd(_0x1db241,_0x471b93);},'JXJBJ':function(_0x339235,_0x402f9d){return _0x339235(_0x402f9d);},'jqDhy':function(_0x4fcfcd,_0x2f0c9){return _0x4fcfcd(_0x2f0c9);}},_0x194fe0=_0x32db64['sllTE'](getProjectsConfigPath),_0x2a5574=dirname(_0x194fe0);!existsSync(_0x2a5574)&&_0x32db64['OHeTa'](mkdirSync,_0x2a5574,{'recursive':!![]});const _0x2c97c6=_0x194fe0+'.'+process['pid']+'.'+Date[_0x3611c1(0x1bd)]()+_0x3611c1(0x1b0),_0x34fa39=JSON['stringify'](_0x12258c,null,0x2)+'\x0a';try{writeFileSync(_0x2c97c6,_0x34fa39,{'encoding':_0x32db64['XznkP'],'mode':0x180}),_0x32db64[_0x3611c1(0x1a0)](renameSync,_0x2c97c6,_0x194fe0);}catch(_0x5dbf92){try{_0x32db64['JXJBJ'](existsSync,_0x2c97c6)&&_0x32db64[_0x3611c1(0x1a6)](unlinkSync,_0x2c97c6);}catch{}throw _0x5dbf92;}}export function readProfileOverrides(_0x3ed10e,_0x1019ae){const _0x418bfa=_0x2bac,_0xc33aae={'KAgut':function(_0x2f9699){return _0x2f9699();}},_0x285934=_0xc33aae['KAgut'](readProjectsConfig),_0x1e730c=_0x285934[_0x418bfa(0x195)][_0x3ed10e];if(!_0x1e730c||!_0x1e730c[_0x418bfa(0x1c1)])return null;const _0x5952e3=_0x1e730c[_0x418bfa(0x1c1)][_0x1019ae];if(!_0x5952e3||!_0x5952e3[_0x418bfa(0x1ae)])return null;return _0x5952e3['settings']??null;}export function setProfileOverride(_0x5e42de,_0x1d0703,_0x53bcce,_0x185028){const _0x172c6b=_0x2bac,_0x4e79ad={'jVwFe':_0x172c6b(0x19e)};if(!_0x53bcce)throw new Error(_0x4e79ad[_0x172c6b(0x19b)]);const _0x5de4d0=readProjectsConfig(),_0x1f929c=_0x5de4d0['projects'][_0x5e42de]??={},_0x54145b=_0x1f929c[_0x172c6b(0x1c1)]??={},_0x4960d0=_0x54145b[_0x1d0703]??={},_0x4693ad=_0x4960d0[_0x172c6b(0x1ae)]??={};setByKeyPath(_0x4693ad,_0x53bcce,_0x185028),writeProjectsConfig(_0x5de4d0);}function _0x2bac(_0xf2271e,_0x4d4958){_0xf2271e=_0xf2271e-0x193;const _0x379911=_0x3799();let _0x2bac70=_0x379911[_0xf2271e];return _0x2bac70;}export function unsetProfileOverride(_0x430c1a,_0x5ef686,_0x35b052){const _0x42ab1d=_0x2bac,_0x55a6b0={'JbMCw':function(_0x51bbae){return _0x51bbae();}};if(!_0x35b052)throw new Error('keyPath\x20is\x20required');const _0x3654f8=_0x55a6b0['JbMCw'](readProjectsConfig),_0x42a203=_0x3654f8[_0x42ab1d(0x195)][_0x430c1a];if(!_0x42a203?.[_0x42ab1d(0x1c1)])return![];const _0x17421c=_0x42a203[_0x42ab1d(0x1c1)][_0x5ef686];if(!_0x17421c?.[_0x42ab1d(0x1ae)])return![];const _0x590d1c=deleteByKeyPath(_0x17421c['settings'],_0x35b052);if(!_0x590d1c)return![];return writeProjectsConfig(_0x3654f8),!![];}export function resetProfileOverrides(_0x1411b4,_0x449fb0){const _0x49a7d6=_0x2bac,_0x3dc8cd={'ubyWO':function(_0x2012fd){return _0x2012fd();}},_0x25f495=_0x3dc8cd['ubyWO'](readProjectsConfig),_0x6b670=_0x25f495[_0x49a7d6(0x195)][_0x1411b4];if(!_0x6b670?.['profiles'])return;if(!(_0x449fb0 in _0x6b670['profiles']))return;delete _0x6b670['profiles'][_0x449fb0],Object['keys'](_0x6b670[_0x49a7d6(0x1c1)])['length']===0x0&&(!_0x6b670[_0x49a7d6(0x1be)]?delete _0x25f495['projects'][_0x1411b4]:_0x6b670[_0x49a7d6(0x1c1)]={}),writeProjectsConfig(_0x25f495);}export function readLastProfile(_0xde9438){const _0x81d29a=_0x2bac,_0x1d3ecd={'koVcN':function(_0x2139c2){return _0x2139c2();}},_0x545c7f=_0x1d3ecd[_0x81d29a(0x193)](readProjectsConfig),_0x2e346f=_0x545c7f['projects'][_0xde9438];return _0x2e346f?.['lastProfile']??null;}export function writeLastProfile(_0x564fc2,_0x275680){const _0x1184ff=_0x2bac,_0x373f6a={'GPmVz':function(_0x41a447,_0x3f1bdc){return _0x41a447(_0x3f1bdc);}},_0x300cae=readProjectsConfig(),_0x3fcb04=_0x300cae[_0x1184ff(0x195)][_0x564fc2]??={};_0x3fcb04[_0x1184ff(0x1be)]=_0x275680,_0x373f6a['GPmVz'](writeProjectsConfig,_0x300cae);}function _0x3799(){const _0x2360c9=['rOaEM','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','1002AZvWUd','[ranger]\x20Warning:\x20failed\x20to\x20read\x20',').\x20Ignoring\x20local\x20profile\x20overrides.','8062480qPUOug','object','settings','906579pbeSrJ','.tmp','16945560OQBsob','VYhJD','fFgQd','57022NiQhTi','[ranger]\x20Warning:\x20','setupHeaders','3615nEMzLY','parse','300XGrmro','jvToc','headers','utf-8','now','lastProfile','keys','length','profiles','koVcN','MDuCV','projects','.\x20Ignoring\x20local\x20profile\x20overrides.','isArray','JjkjV','gkPBw','11061720vRuRrh','jVwFe','rZkTP','10250PSIYlT','keyPath\x20is\x20required','message','gPqBm','cvpYC','672BtRvxF','MiOQl','hNhBi','version','jqDhy'];_0x3799=function(){return _0x2360c9;};return _0x3799();}export function clearLastProfile(_0x2bd9ae,_0x523d2c){const _0x4354e0=_0x2bac,_0x1760e7={'VYhJD':function(_0xe55185,_0x43de20){return _0xe55185===_0x43de20;}},_0x3df1f3=readProjectsConfig(),_0x1d9f9e=_0x3df1f3['projects'][_0x2bd9ae];if(!_0x1d9f9e||_0x1d9f9e['lastProfile']!==_0x523d2c)return![];return delete _0x1d9f9e[_0x4354e0(0x1be)],(!_0x1d9f9e[_0x4354e0(0x1c1)]||_0x1760e7[_0x4354e0(0x1b2)](Object[_0x4354e0(0x1bf)](_0x1d9f9e[_0x4354e0(0x1c1)])[_0x4354e0(0x1c0)],0x0))&&delete _0x3df1f3['projects'][_0x2bd9ae],writeProjectsConfig(_0x3df1f3),!![];}export function mergeCloudProfileSettings(_0x41f0c0,_0x4e615e){const _0x424905=_0x2bac,_0x3706c3={'aceHw':function(_0x138991,_0x2059a1){return _0x138991===_0x2059a1;},'voaqS':_0x424905(0x1bb),'ljAJe':_0x424905(0x1b6),'rZkTP':function(_0x536299,_0x4b2ea7){return _0x536299(_0x4b2ea7);}},_0x5dd016={..._0x41f0c0??{}};if(!_0x4e615e)return _0x5dd016;for(const [_0x463e70,_0x377dc4]of Object['entries'](_0x4e615e)){if(_0x3706c3['aceHw'](_0x377dc4,undefined))continue;if(_0x377dc4===null){delete _0x5dd016[_0x463e70];continue;}if(_0x463e70===_0x3706c3['voaqS']||_0x3706c3['aceHw'](_0x463e70,_0x3706c3['ljAJe'])){const _0x3f8b9e=_0x3706c3[_0x424905(0x19c)](asRecord,_0x5dd016[_0x463e70])??{},_0x44f6e9=asRecord(_0x377dc4);if(!_0x44f6e9){_0x5dd016[_0x463e70]=_0x377dc4;continue;}const _0x429388={..._0x3f8b9e};for(const [_0x221529,_0x1edf0b]of Object['entries'](_0x44f6e9)){if(_0x1edf0b===null)delete _0x429388[_0x221529];else _0x1edf0b!==undefined&&(_0x429388[_0x221529]=_0x1edf0b);}_0x5dd016[_0x463e70]=_0x429388;continue;}_0x5dd016[_0x463e70]=_0x377dc4;}return _0x5dd016;}function asRecord(_0x5d206d){const _0x77884c=_0x2bac,_0x296811={'MiOQl':function(_0x47a7dc,_0x215a4e){return _0x47a7dc===_0x215a4e;}};return _0x5d206d&&_0x296811[_0x77884c(0x1a3)](typeof _0x5d206d,_0x77884c(0x1ad))&&!Array['isArray'](_0x5d206d)?_0x5d206d:undefined;}function setByKeyPath(_0x1899d2,_0x4043fb,_0x2ba8f5){const _0x2a60cf=_0x2bac,_0x2babaf={'JaWmf':function(_0x281bf3,_0x2692fd){return _0x281bf3<_0x2692fd;},'PMuiN':function(_0x2585a3,_0x8b07f2){return _0x2585a3-_0x8b07f2;},'jvToc':_0x2a60cf(0x1ad),'IHhfQ':function(_0x20b1ec,_0x58575f){return _0x20b1ec-_0x58575f;}},_0x30cdf4=_0x4043fb['split']('.');let _0x1ba141=_0x1899d2;for(let _0x1571b7=0x0;_0x2babaf['JaWmf'](_0x1571b7,_0x2babaf['PMuiN'](_0x30cdf4[_0x2a60cf(0x1c0)],0x1));_0x1571b7++){const _0x17e2d1=_0x30cdf4[_0x1571b7],_0x3c75a5=_0x1ba141[_0x17e2d1];(!_0x3c75a5||typeof _0x3c75a5!==_0x2babaf[_0x2a60cf(0x1ba)]||Array['isArray'](_0x3c75a5))&&(_0x1ba141[_0x17e2d1]={}),_0x1ba141=_0x1ba141[_0x17e2d1];}_0x1ba141[_0x30cdf4[_0x2babaf['IHhfQ'](_0x30cdf4['length'],0x1)]]=_0x2ba8f5;}function deleteByKeyPath(_0x2ab487,_0x4273c9){const _0x4c1c8e=_0x2bac,_0x22f917={'aucwB':function(_0x292d43,_0x13df93){return _0x292d43<_0x13df93;},'rOaEM':function(_0x3836da,_0x56bdb5){return _0x3836da-_0x56bdb5;},'gkPBw':function(_0x453ae2,_0x5180bf){return _0x453ae2!==_0x5180bf;}},_0x2220b8=_0x4273c9['split']('.');let _0x237b31=_0x2ab487;for(let _0x4aef5a=0x0;_0x22f917['aucwB'](_0x4aef5a,_0x22f917[_0x4c1c8e(0x1a7)](_0x2220b8[_0x4c1c8e(0x1c0)],0x1));_0x4aef5a++){const _0x2b0cf3=_0x2220b8[_0x4aef5a],_0x51d6c9=_0x237b31[_0x2b0cf3];if(!_0x51d6c9||_0x22f917[_0x4c1c8e(0x199)](typeof _0x51d6c9,_0x4c1c8e(0x1ad))||Array[_0x4c1c8e(0x197)](_0x51d6c9))return![];_0x237b31=_0x51d6c9;}const _0x59b81c=_0x2220b8[_0x22f917['rOaEM'](_0x2220b8[_0x4c1c8e(0x1c0)],0x1)];if(!(_0x59b81c in _0x237b31))return![];return delete _0x237b31[_0x59b81c],!![];}
|
|
1
|
+
(function(_0x509ee8,_0x4079ab){const _0xbbe560=_0x1679,_0x52bb18=_0x509ee8();while(!![]){try{const _0x8a9ff2=-parseInt(_0xbbe560(0x166))/0x1+parseInt(_0xbbe560(0x159))/0x2*(parseInt(_0xbbe560(0x16b))/0x3)+-parseInt(_0xbbe560(0x153))/0x4+parseInt(_0xbbe560(0x156))/0x5*(parseInt(_0xbbe560(0x14b))/0x6)+parseInt(_0xbbe560(0x157))/0x7+parseInt(_0xbbe560(0x16f))/0x8+-parseInt(_0xbbe560(0x148))/0x9;if(_0x8a9ff2===_0x4079ab)break;else _0x52bb18['push'](_0x52bb18['shift']());}catch(_0x249744){_0x52bb18['push'](_0x52bb18['shift']());}}}(_0x3af8,0x1c5ff));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x2150ba=_0x1679,_0x2f88b0={'dmmeg':function(_0x3f081c){return _0x3f081c();}};return join(_0x2f88b0[_0x2150ba(0x160)](getRangerHomeDir),_0x2150ba(0x162));}function _0x3af8(){const _0x500a81=['8KCMVbf','[ranger]\x20Warning:\x20','Hpovg','projects','HynOk','hKXIw','GGpyr','dmmeg','split','projects.json','JmZRD','WChoc','jAKrC','78589letXVy','nApHj','Nwbnc','version','warn','154749LIyudw','ESXxj','.\x20Ignoring\x20local\x20profile\x20overrides.',').\x20Ignoring\x20local\x20profile\x20overrides.','788432NtvnMx','AqBKl','AgCgK','entries','object','pbKQe','isArray','bJTPn','utf-8','3979674hebvIg','keyPath\x20is\x20required','setupHeaders','1194rdgqQk','fjHPU','message','KFHuT','lastProfile','NJoSn','profiles','iniQR','120628dXGQXB','length','headers','4105fCMBRM','1392230OcpPgR','settings'];_0x3af8=function(){return _0x500a81;};return _0x3af8();}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x393d51=_0x1679,_0x1fb8ac={'hKXIw':function(_0x24c07a,_0x14fd66){return _0x24c07a(_0x14fd66);},'VEzFJ':'utf-8','bVSit':function(_0x15e5d6,_0x378b65){return _0x15e5d6 instanceof _0x378b65;},'FhNKJ':function(_0x472222){return _0x472222();},'iniQR':function(_0x2ec737,_0x15e167){return _0x2ec737 instanceof _0x15e167;},'nApHj':function(_0x42efb3,_0x12d5e4){return _0x42efb3(_0x12d5e4);},'Hpovg':function(_0x1921c9){return _0x1921c9();},'bJTPn':_0x393d51(0x173)},_0x48a42d=getProjectsConfigPath();if(!_0x1fb8ac[_0x393d51(0x15e)](existsSync,_0x48a42d))return emptyConfig();let _0x2370db;try{_0x2370db=readFileSync(_0x48a42d,_0x1fb8ac['VEzFJ']);}catch(_0x524640){const _0x99e56=_0x1fb8ac['bVSit'](_0x524640,Error)?_0x524640['message']:_0x1fb8ac['hKXIw'](String,_0x524640);return console[_0x393d51(0x16a)]('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x48a42d+':\x20'+_0x99e56+_0x393d51(0x16d)),_0x1fb8ac['FhNKJ'](emptyConfig);}let _0x16f549;try{_0x16f549=JSON['parse'](_0x2370db);}catch(_0x1cfdd2){const _0x12fcf3=_0x1fb8ac[_0x393d51(0x152)](_0x1cfdd2,Error)?_0x1cfdd2[_0x393d51(0x14d)]:_0x1fb8ac[_0x393d51(0x167)](String,_0x1cfdd2);return console[_0x393d51(0x16a)]('[ranger]\x20Warning:\x20'+_0x48a42d+'\x20is\x20not\x20valid\x20JSON\x20('+_0x12fcf3+_0x393d51(0x16e)),_0x1fb8ac[_0x393d51(0x15b)](emptyConfig);}if(!_0x16f549||typeof _0x16f549!==_0x393d51(0x173)||Array['isArray'](_0x16f549)||_0x16f549[_0x393d51(0x169)]!==CURRENT_VERSION||typeof _0x16f549[_0x393d51(0x15c)]!==_0x1fb8ac[_0x393d51(0x176)]||_0x16f549['projects']===null||Array[_0x393d51(0x175)](_0x16f549['projects']))return console[_0x393d51(0x16a)](_0x393d51(0x15a)+_0x48a42d+'\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();return _0x16f549;}export function writeProjectsConfig(_0x16d396){const _0x10db26=_0x1679,_0x5bddfa={'HynOk':function(_0x5ba7bd,_0x492952){return _0x5ba7bd(_0x492952);},'JmZRD':function(_0x343784,_0x58948b,_0x54843d,_0xe1537b){return _0x343784(_0x58948b,_0x54843d,_0xe1537b);},'Tcfkd':_0x10db26(0x177),'rJIaL':function(_0x4d69b7,_0x4e0efb,_0xebce6){return _0x4d69b7(_0x4e0efb,_0xebce6);}},_0x285bb5=getProjectsConfigPath(),_0x427fdd=_0x5bddfa[_0x10db26(0x15d)](dirname,_0x285bb5);!_0x5bddfa[_0x10db26(0x15d)](existsSync,_0x427fdd)&&mkdirSync(_0x427fdd,{'recursive':!![]});const _0x3eec6e=_0x285bb5+'.'+process['pid']+'.'+Date['now']()+'.tmp',_0x3edc5e=JSON['stringify'](_0x16d396,null,0x2)+'\x0a';try{_0x5bddfa[_0x10db26(0x163)](writeFileSync,_0x3eec6e,_0x3edc5e,{'encoding':_0x5bddfa['Tcfkd'],'mode':0x180}),_0x5bddfa['rJIaL'](renameSync,_0x3eec6e,_0x285bb5);}catch(_0x412e18){try{existsSync(_0x3eec6e)&&_0x5bddfa['HynOk'](unlinkSync,_0x3eec6e);}catch{}throw _0x412e18;}}export function readProfileOverrides(_0x52f7c0,_0xfd9dff){const _0x7162c4=_0x1679,_0x4e4540={'NJoSn':function(_0x3c7407){return _0x3c7407();}},_0x35a63c=_0x4e4540[_0x7162c4(0x150)](readProjectsConfig),_0x147a66=_0x35a63c['projects'][_0x52f7c0];if(!_0x147a66||!_0x147a66[_0x7162c4(0x151)])return null;const _0x523541=_0x147a66[_0x7162c4(0x151)][_0xfd9dff];if(!_0x523541||!_0x523541[_0x7162c4(0x158)])return null;return _0x523541['settings']??null;}export function setProfileOverride(_0x5789c5,_0x1b0a52,_0x2057bd,_0x176a55){const _0x11960c=_0x1679;if(!_0x2057bd)throw new Error(_0x11960c(0x149));const _0x3bed7b=readProjectsConfig(),_0xf4025b=_0x3bed7b[_0x11960c(0x15c)][_0x5789c5]??={},_0x2ca447=_0xf4025b['profiles']??={},_0x30fb50=_0x2ca447[_0x1b0a52]??={},_0x5bbaed=_0x30fb50['settings']??={};setByKeyPath(_0x5bbaed,_0x2057bd,_0x176a55),writeProjectsConfig(_0x3bed7b);}function _0x1679(_0x74140d,_0x2171f8){_0x74140d=_0x74140d-0x148;const _0x3af89f=_0x3af8();let _0x167957=_0x3af89f[_0x74140d];return _0x167957;}export function unsetProfileOverride(_0x300ff2,_0x46bb62,_0x378b32){const _0x232df1=_0x1679,_0x58e8bc={'SXdBq':function(_0x35353b,_0x20be34,_0x1fbdfb){return _0x35353b(_0x20be34,_0x1fbdfb);},'GDsQe':function(_0x30bc73,_0x113f11){return _0x30bc73(_0x113f11);}};if(!_0x378b32)throw new Error('keyPath\x20is\x20required');const _0x3b94b0=readProjectsConfig(),_0x36f554=_0x3b94b0[_0x232df1(0x15c)][_0x300ff2];if(!_0x36f554?.[_0x232df1(0x151)])return![];const _0x72e4c2=_0x36f554['profiles'][_0x46bb62];if(!_0x72e4c2?.[_0x232df1(0x158)])return![];const _0x48474a=_0x58e8bc['SXdBq'](deleteByKeyPath,_0x72e4c2[_0x232df1(0x158)],_0x378b32);if(!_0x48474a)return![];return _0x58e8bc['GDsQe'](writeProjectsConfig,_0x3b94b0),!![];}export function resetProfileOverrides(_0x4bec84,_0x3aec85){const _0x2d1cb6=_0x1679,_0x3c615e={'USWmH':function(_0x5ea4fc,_0x2a6d0e){return _0x5ea4fc(_0x2a6d0e);}},_0x457be6=readProjectsConfig(),_0x1db633=_0x457be6[_0x2d1cb6(0x15c)][_0x4bec84];if(!_0x1db633?.[_0x2d1cb6(0x151)])return;if(!(_0x3aec85 in _0x1db633[_0x2d1cb6(0x151)]))return;delete _0x1db633['profiles'][_0x3aec85],Object['keys'](_0x1db633[_0x2d1cb6(0x151)])[_0x2d1cb6(0x154)]===0x0&&(!_0x1db633[_0x2d1cb6(0x14f)]?delete _0x457be6[_0x2d1cb6(0x15c)][_0x4bec84]:_0x1db633[_0x2d1cb6(0x151)]={}),_0x3c615e['USWmH'](writeProjectsConfig,_0x457be6);}export function readLastProfile(_0x1ec951){const _0x3136d2=_0x1679,_0x3c6bb7=readProjectsConfig(),_0x2aff7d=_0x3c6bb7[_0x3136d2(0x15c)][_0x1ec951];return _0x2aff7d?.[_0x3136d2(0x14f)]??null;}export function writeLastProfile(_0x406efb,_0x2526f7){const _0x1a7742=_0x1679,_0x22c546={'KFHuT':function(_0x29ffa9){return _0x29ffa9();}},_0x749771=_0x22c546[_0x1a7742(0x14e)](readProjectsConfig),_0x2bb56c=_0x749771['projects'][_0x406efb]??={};_0x2bb56c['lastProfile']=_0x2526f7,writeProjectsConfig(_0x749771);}export function clearLastProfile(_0x57c21c,_0x3e99e6){const _0x376526=_0x1679,_0x1f24c1={'fjHPU':function(_0x4bc920){return _0x4bc920();},'pbKQe':function(_0x4a1880,_0x45f9c2){return _0x4a1880===_0x45f9c2;},'GGpyr':function(_0x2ee619,_0x2b9537){return _0x2ee619(_0x2b9537);}},_0x4fba07=_0x1f24c1[_0x376526(0x14c)](readProjectsConfig),_0x3b2fcc=_0x4fba07['projects'][_0x57c21c];if(!_0x3b2fcc||_0x3b2fcc[_0x376526(0x14f)]!==_0x3e99e6)return![];return delete _0x3b2fcc['lastProfile'],(!_0x3b2fcc['profiles']||_0x1f24c1[_0x376526(0x174)](Object['keys'](_0x3b2fcc[_0x376526(0x151)])[_0x376526(0x154)],0x0))&&delete _0x4fba07['projects'][_0x57c21c],_0x1f24c1[_0x376526(0x15f)](writeProjectsConfig,_0x4fba07),!![];}export function mergeCloudProfileSettings(_0x32a6aa,_0x281580){const _0x47b68f=_0x1679,_0x3594f9={'jAKrC':function(_0xcb41a9,_0x4cc38a){return _0xcb41a9??_0x4cc38a;},'WChoc':function(_0x11fdb8,_0x58062c){return _0x11fdb8===_0x58062c;},'gYHxw':function(_0x2cfb11,_0xb046dd){return _0x2cfb11===_0xb046dd;},'AqBKl':function(_0xede132,_0x3cf076){return _0xede132(_0x3cf076);},'VXamS':function(_0x12fa3c,_0x1594ec){return _0x12fa3c(_0x1594ec);},'Nwbnc':function(_0xed2403,_0x522981){return _0xed2403===_0x522981;},'ESXxj':function(_0x420aac,_0x9e2292){return _0x420aac!==_0x9e2292;}},_0x3a2290={..._0x3594f9[_0x47b68f(0x165)](_0x32a6aa,{})};if(!_0x281580)return _0x3a2290;for(const [_0x2e8aca,_0x14f995]of Object[_0x47b68f(0x172)](_0x281580)){if(_0x14f995===undefined)continue;if(_0x3594f9[_0x47b68f(0x164)](_0x14f995,null)){delete _0x3a2290[_0x2e8aca];continue;}if(_0x2e8aca===_0x47b68f(0x155)||_0x3594f9['gYHxw'](_0x2e8aca,_0x47b68f(0x14a))){const _0x53bd6a=_0x3594f9[_0x47b68f(0x170)](asRecord,_0x3a2290[_0x2e8aca])??{},_0x2188e6=_0x3594f9['VXamS'](asRecord,_0x14f995);if(!_0x2188e6){_0x3a2290[_0x2e8aca]=_0x14f995;continue;}const _0x53ac87={..._0x53bd6a};for(const [_0x34dbe2,_0xcac13e]of Object['entries'](_0x2188e6)){if(_0x3594f9[_0x47b68f(0x168)](_0xcac13e,null))delete _0x53ac87[_0x34dbe2];else _0x3594f9[_0x47b68f(0x16c)](_0xcac13e,undefined)&&(_0x53ac87[_0x34dbe2]=_0xcac13e);}_0x3a2290[_0x2e8aca]=_0x53ac87;continue;}_0x3a2290[_0x2e8aca]=_0x14f995;}return _0x3a2290;}function asRecord(_0x13fd56){const _0x5ab6c7=_0x1679,_0x39ad62={'ypmHJ':'object'};return _0x13fd56&&typeof _0x13fd56===_0x39ad62['ypmHJ']&&!Array[_0x5ab6c7(0x175)](_0x13fd56)?_0x13fd56:undefined;}function setByKeyPath(_0x2b8b34,_0x4a0f28,_0xa36072){const _0x4b2410=_0x1679,_0x12a17f={'AgCgK':function(_0x4ec515,_0x509354){return _0x4ec515<_0x509354;},'ymLSQ':function(_0x366f4c,_0x18f44c){return _0x366f4c-_0x18f44c;}},_0x22022e=_0x4a0f28['split']('.');let _0x1522e7=_0x2b8b34;for(let _0x8eedb=0x0;_0x12a17f[_0x4b2410(0x171)](_0x8eedb,_0x22022e[_0x4b2410(0x154)]-0x1);_0x8eedb++){const _0x522d71=_0x22022e[_0x8eedb],_0x5364cb=_0x1522e7[_0x522d71];(!_0x5364cb||typeof _0x5364cb!==_0x4b2410(0x173)||Array['isArray'](_0x5364cb))&&(_0x1522e7[_0x522d71]={}),_0x1522e7=_0x1522e7[_0x522d71];}_0x1522e7[_0x22022e[_0x12a17f['ymLSQ'](_0x22022e[_0x4b2410(0x154)],0x1)]]=_0xa36072;}function deleteByKeyPath(_0x426b44,_0x58c79f){const _0x3831b8=_0x1679,_0x468952={'LliWE':function(_0x1f5b4b,_0x45c4e1){return _0x1f5b4b!==_0x45c4e1;}},_0x4e6748=_0x58c79f[_0x3831b8(0x161)]('.');let _0x3291bd=_0x426b44;for(let _0x1825ef=0x0;_0x1825ef<_0x4e6748['length']-0x1;_0x1825ef++){const _0x5d2b41=_0x4e6748[_0x1825ef],_0x34c045=_0x3291bd[_0x5d2b41];if(!_0x34c045||_0x468952['LliWE'](typeof _0x34c045,'object')||Array['isArray'](_0x34c045))return![];_0x3291bd=_0x34c045;}const _0x36def2=_0x4e6748[_0x4e6748['length']-0x1];if(!(_0x36def2 in _0x3291bd))return![];return delete _0x3291bd[_0x36def2],!![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xdc7992,_0x42b393){const _0x3f4910=_0x1276,_0x398ec9=_0xdc7992();while(!![]){try{const _0x510188=-parseInt(_0x3f4910(0x176))/0x1+-parseInt(_0x3f4910(0x182))/0x2*(parseInt(_0x3f4910(0x17f))/0x3)+-parseInt(_0x3f4910(0x17e))/0x4*(-parseInt(_0x3f4910(0x174))/0x5)+parseInt(_0x3f4910(0x17a))/0x6*(parseInt(_0x3f4910(0x172))/0x7)+parseInt(_0x3f4910(0x177))/0x8*(parseInt(_0x3f4910(0x17c))/0x9)+parseInt(_0x3f4910(0x175))/0xa+parseInt(_0x3f4910(0x17b))/0xb*(-parseInt(_0x3f4910(0x181))/0xc);if(_0x510188===_0x42b393)break;else _0x398ec9['push'](_0x398ec9['shift']());}catch(_0x2e8710){_0x398ec9['push'](_0x398ec9['shift']());}}}(_0x1679,0xb4132));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';function _0x1276(_0x478c31,_0x12ac14){_0x478c31=_0x478c31-0x172;const _0x167931=_0x1679();let _0x1276ba=_0x167931[_0x478c31];return _0x1276ba;}import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x5b3f32={'eWpZj':function(_0x5e72d7){return _0x5e72d7();},'HDKzm':'config.json'};return join(_0x5b3f32['eWpZj'](getRangerDir),_0x5b3f32['HDKzm']);}export async function loadRangerConfig(){const _0x2f0e5c=_0x1276,_0x200383={'trWzc':function(_0x2afda0,_0x3942fb){return _0x2afda0(_0x3942fb);},'jVHSm':'utf-8','cdPsK':'object','GkTSg':function(_0x1e1233,_0x1a15c0){return _0x1e1233===_0x1a15c0;},'FguVK':'string','xYliK':function(_0x3d333f,_0x1d4711){return _0x3d333f(_0x1d4711);}},_0x32c964=getRangerConfigPath();if(!_0x200383['trWzc'](existsSync,_0x32c964))return{};try{const _0x58d45=await readFile(_0x32c964,_0x200383[_0x2f0e5c(0x179)]),_0x315709=JSON['parse'](_0x58d45);if(!_0x315709||typeof _0x315709!==_0x200383['cdPsK']||Array['isArray'](_0x315709))return{};const _0x3a9be0={},_0x19a6e1=_0x315709[_0x2f0e5c(0x173)];return _0x200383[_0x2f0e5c(0x178)](typeof _0x19a6e1,_0x200383[_0x2f0e5c(0x183)])&&(_0x3a9be0['model']=_0x19a6e1),_0x3a9be0;}catch(_0x275561){const _0x44996e=_0x275561 instanceof Error?_0x275561['message']:_0x200383[_0x2f0e5c(0x180)](String,_0x275561);return console['warn'](_0x2f0e5c(0x17d)+_0x32c964+':\x20'+_0x44996e),{};}}function _0x1679(){const _0x5b4640=['13154480vfivvG','421064YFQyro','232264apBpyH','GkTSg','jVHSm','1275774PJOegG','2211UzDbSR','117fHdQRX','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','20wdPryv','1059LTyKcD','xYliK','121092nHFfDr','386NAppYd','FguVK','14ykWKwV','model','1136935HUMrTM'];_0x1679=function(){return _0x5b4640;};return _0x1679();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5f7fc4,_0x4e45d4){const _0x119491=_0x2961,_0x166b23=_0x5f7fc4();while(!![]){try{const _0x17454f=parseInt(_0x119491(0xe5))/0x1*(parseInt(_0x119491(0xdd))/0x2)+parseInt(_0x119491(0xe3))/0x3+parseInt(_0x119491(0xe8))/0x4+parseInt(_0x119491(0xeb))/0x5+parseInt(_0x119491(0xe2))/0x6*(-parseInt(_0x119491(0xe6))/0x7)+-parseInt(_0x119491(0xe7))/0x8*(-parseInt(_0x119491(0xec))/0x9)+-parseInt(_0x119491(0xdc))/0xa;if(_0x17454f===_0x4e45d4)break;else _0x166b23['push'](_0x166b23['shift']());}catch(_0x5ae3e6){_0x166b23['push'](_0x166b23['shift']());}}}(_0x567d,0xac536));import{dirname,join,parse}from'path';function _0x2961(_0x32798a,_0x3dd5a9){_0x32798a=_0x32798a-0xdc;const _0x567d80=_0x567d();let _0x2961ab=_0x567d80[_0x32798a];return _0x2961ab;}import{existsSync}from'fs';import{homedir}from'os';function _0x567d(){const _0x1c6be3=['4fJHZyS','.ranger','cwd','root','vfogL','18GAdmxD','57000ZMiRwU','PnHuU','454306fWwOdM','1344203WZwhzM','7624CxUuVg','2617800SSPDXb','wWKJR','.git','4935230EKjnls','18QnVBAw','12890810gkxqKr'];_0x567d=function(){return _0x1c6be3;};return _0x567d();}export function getRangerRoot(){const _0x2ce642=_0x2961,_0x1d27bf={'tHVsx':function(_0x5bdc4e,_0x3efe23,_0x2b6629){return _0x5bdc4e(_0x3efe23,_0x2b6629);},'kQMbl':function(_0x3ac07e,_0x51165d){return _0x3ac07e(_0x51165d);},'vfogL':'.ranger','Ecfor':function(_0x3c7a2f){return _0x3c7a2f();}};let _0x46b1a4=process[_0x2ce642(0xdf)]();const _0x32d562=parse(_0x46b1a4)['root'];while(_0x46b1a4!==_0x32d562){if(existsSync(_0x1d27bf['tHVsx'](join,_0x46b1a4,_0x2ce642(0xde))))return _0x46b1a4;_0x46b1a4=_0x1d27bf['kQMbl'](dirname,_0x46b1a4);}if(existsSync(join(_0x32d562,_0x1d27bf[_0x2ce642(0xe1)])))return _0x32d562;const _0x44a6de=_0x1d27bf['Ecfor'](findGitRoot);if(_0x44a6de)return _0x44a6de;return process[_0x2ce642(0xdf)]();}export function getRangerDir(){const _0x21cadd={'FpRRv':function(_0x1a13db,_0x3d53aa,_0x2bc9db){return _0x1a13db(_0x3d53aa,_0x2bc9db);},'fwZqO':'.ranger'};return _0x21cadd['FpRRv'](join,getRangerRoot(),_0x21cadd['fwZqO']);}export function findGitRoot(){const _0x411596=_0x2961,_0x54711c={'FRwtf':function(_0x80bcc2,_0xd4f609){return _0x80bcc2(_0xd4f609);},'PnHuU':function(_0x6f5d8e,_0x237079,_0x5805a4){return _0x6f5d8e(_0x237079,_0x5805a4);},'wWKJR':_0x411596(0xea)};let _0x27fe41=process[_0x411596(0xdf)]();const _0x3f27d1=_0x54711c['FRwtf'](parse,_0x27fe41)[_0x411596(0xe0)];while(_0x27fe41!==_0x3f27d1){if(existsSync(join(_0x27fe41,'.git')))return _0x27fe41;_0x27fe41=_0x54711c['FRwtf'](dirname,_0x27fe41);}if(existsSync(_0x54711c[_0x411596(0xe4)](join,_0x3f27d1,_0x54711c[_0x411596(0xe9)])))return _0x3f27d1;return null;}export function getRangerHomeDir(){return join(homedir(),'.ranger');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x596cf0,_0x207c68){const _0x1327c1=_0x37da,_0x30e0ba=_0x596cf0();while(!![]){try{const _0x419586=parseInt(_0x1327c1(0x138))/0x1*(parseInt(_0x1327c1(0x11b))/0x2)+parseInt(_0x1327c1(0x109))/0x3*(-parseInt(_0x1327c1(0x113))/0x4)+-parseInt(_0x1327c1(0x134))/0x5*(-parseInt(_0x1327c1(0x12f))/0x6)+parseInt(_0x1327c1(0x12d))/0x7*(-parseInt(_0x1327c1(0x10c))/0x8)+parseInt(_0x1327c1(0x135))/0x9+parseInt(_0x1327c1(0x122))/0xa*(parseInt(_0x1327c1(0x11f))/0xb)+parseInt(_0x1327c1(0x11d))/0xc*(parseInt(_0x1327c1(0x12b))/0xd);if(_0x419586===_0x207c68)break;else _0x30e0ba['push'](_0x30e0ba['shift']());}catch(_0x2813e5){_0x30e0ba['push'](_0x30e0ba['shift']());}}}(_0x3beb,0x5b983));import{spawn}from'child_process';import{createRequire}from'module';import{dirname,join}from'path';import{readFileSync}from'fs';import{quoteShellArg}from'./playwrightCli.js';export const RANGERWRIGHT_CLI_PACKAGE='@ranger-testing/rangerwright';export const RANGERWRIGHT_CLI_BINARY='rangerwright';function readPackageJson(_0xa4e862){const _0x5996ff=_0x37da,_0x2cf63c={'bGKHR':'utf-8'},_0x1fc1f4=readFileSync(_0xa4e862,_0x2cf63c[_0x5996ff(0x129)]),_0x16cd86=JSON['parse'](_0x1fc1f4);if(!_0x16cd86||typeof _0x16cd86!=='object')return{};return _0x16cd86;}export function resolveRangerwrightCliBinary(){const _0x514def=_0x37da,_0x365530={'aLrLO':function(_0x2ba52c,_0x2e038f){return _0x2ba52c(_0x2e038f);},'hHPVk':'string','idjyH':function(_0xa351ec,_0x5b0fc0,_0x3feb2a){return _0xa351ec(_0x5b0fc0,_0x3feb2a);}},_0x332477=createRequire(process['argv'][0x1]||join(process[_0x514def(0x12e)](),_0x514def(0x137))),_0x155ac4=_0x332477['resolve'](RANGERWRIGHT_CLI_PACKAGE+_0x514def(0x124)),_0x33b2a7=dirname(_0x155ac4),_0x4bf620=_0x365530['aLrLO'](readPackageJson,_0x155ac4),_0x2bc3de=typeof _0x4bf620[_0x514def(0x139)]===_0x365530['hHPVk']?_0x4bf620[_0x514def(0x139)]:_0x4bf620[_0x514def(0x139)]?.[RANGERWRIGHT_CLI_BINARY];if(!_0x2bc3de)throw new Error(RANGERWRIGHT_CLI_PACKAGE+_0x514def(0x123)+RANGERWRIGHT_CLI_BINARY+'\x20binary');return _0x365530[_0x514def(0x10f)](join,_0x33b2a7,_0x2bc3de);}function _0x37da(_0x1065d4,_0x48eaaa){_0x1065d4=_0x1065d4-0x103;const _0x3beb23=_0x3beb();let _0x37da8b=_0x3beb23[_0x1065d4];return _0x37da8b;}export function buildRangerwrightCliEnv(_0x4f55ad){const _0x5c4f93=_0x37da;return{'RANGERWRIGHT_SESSION':_0x4f55ad[_0x5c4f93(0x136)],'RANGERWRIGHT_CONFIG':_0x4f55ad[_0x5c4f93(0x125)],'RANGERWRIGHT_ARTIFACT_DIR':_0x4f55ad['artifactDir'],..._0x4f55ad['socketPath']?{'RANGERWRIGHT_SOCKET_PATH':_0x4f55ad[_0x5c4f93(0x104)]}:{}};}export function applyRangerwrightCliEnv(_0x2061c3,_0x28df61){Object['assign'](_0x2061c3,buildRangerwrightCliEnv(_0x28df61));}export function buildRangerwrightCliCommandPrefix(_0x3bf3fe=resolveRangerwrightCliBinary()){const _0x572e79=_0x37da;return quoteShellArg(_0x3bf3fe)+_0x572e79(0x116);}function _0x3beb(){const _0x160c41=['306713yfbvBx','QmkhE','LAxYZ','100cKbuIi','\x20does\x20not\x20expose\x20a\x20','/package.json','configPath','GSqXV','vQpQl','null','bGKHR','toString','1507025EfFiqL','FjBrA','7cXkVPl','cwd','1678188mVtqFX','rangerwright-cli\x20','stdout','ignore','DBcPh','5xNewAt','383157lCIjXf','sessionId','package.json','425GKVjyo','bin','DmrnI','socketPath','exited\x20with\x20code=','length','ypwxI','SIGKILL','3yWOHnf','unknown','XwZaL','4443864yVFUxP','args','--json','idjyH','stderr','env','kill','2204788ozDKAK','dMhvg','timeoutMs','\x20--json','subcommand','GEVkl','tofpO','GxTGh','326ESHjPr','\x20signal=','84uXIHhM','error'];_0x3beb=function(){return _0x160c41;};return _0x3beb();}function getRangerwrightSubcommand(_0x29ed21){const _0x520668=_0x37da,_0x3e3a29={'DmrnI':_0x520668(0x10a)};return _0x29ed21[0x0]??_0x3e3a29[_0x520668(0x103)];}export function buildRangerwrightCliInvocation(_0x113038,_0x248657){const _0x8c3fe3=_0x37da,_0x1325a6={'DBcPh':function(_0x1ea29c,_0x70238b){return _0x1ea29c(_0x70238b);}},_0x44b744=_0x113038['binaryPath']??resolveRangerwrightCliBinary(),_0x5772ca=['--json',..._0x248657];return{'command':_0x44b744,'args':_0x5772ca,'shellCommand':[_0x1325a6[_0x8c3fe3(0x133)](quoteShellArg,_0x44b744),_0x8c3fe3(0x10e),..._0x248657['map'](quoteShellArg)]['join']('\x20'),'subcommand':_0x1325a6[_0x8c3fe3(0x133)](getRangerwrightSubcommand,_0x248657)};}function truncateOutput(_0x556f02,_0x1a115f=0x7d0){const _0xc53bd6=_0x37da,_0x933e35={'EzncO':function(_0x24ca95,_0x156647){return _0x24ca95+_0x156647;},'XwZaL':'...'};return _0x556f02[_0xc53bd6(0x106)]>_0x1a115f?_0x933e35['EzncO'](_0x556f02['slice'](0x0,_0x1a115f),_0x933e35[_0xc53bd6(0x10b)]):_0x556f02;}export async function runRangerwrightCliCommand(_0x1bc6f6){const _0x24cbf9=_0x37da,_0x1c2613={'ypwxI':'null','GSqXV':function(_0x596d37,_0x5932e4){return _0x596d37(_0x5932e4);},'FjBrA':function(_0x14124a,_0x267804,_0x1fdccc,_0x347a93){return _0x14124a(_0x267804,_0x1fdccc,_0x347a93);},'hcBuh':_0x24cbf9(0x132),'QmkhE':function(_0x3477f7,_0x491878){return _0x3477f7>_0x491878;},'GxTGh':function(_0xf9c5ba,_0x239dc8,_0x56782e){return _0xf9c5ba(_0x239dc8,_0x56782e);},'LAxYZ':'data','oIoWh':_0x24cbf9(0x11e),'tofpO':'close'},_0xea8eb7=buildRangerwrightCliInvocation(_0x1bc6f6,_0x1bc6f6['commandArgs']),_0x2e45c0={..._0x1bc6f6['env']??process[_0x24cbf9(0x111)],..._0x1c2613[_0x24cbf9(0x126)](buildRangerwrightCliEnv,_0x1bc6f6)};return new Promise((_0x45fb16,_0x17f621)=>{const _0x12763e=_0x24cbf9,_0x14fbe1={'dMhvg':'SIGTERM','vQpQl':function(_0x2214ce,_0x49a0b7){return _0x2214ce(_0x49a0b7);},'LNxzC':function(_0x8cd29e,_0x2aa463){return _0x8cd29e(_0x2aa463);},'hAkad':function(_0x2ce5ac,_0x3d620a){return _0x2ce5ac??_0x3d620a;},'GEVkl':_0x1c2613[_0x12763e(0x107)],'dgsNP':function(_0x9e9acd,_0x398ef5){return _0x1c2613['GSqXV'](_0x9e9acd,_0x398ef5);}},_0x507eeb=_0x1c2613[_0x12763e(0x12c)](spawn,_0xea8eb7['command'],_0xea8eb7[_0x12763e(0x10d)],{'cwd':_0x1bc6f6[_0x12763e(0x12e)],'env':_0x2e45c0,'stdio':[_0x1c2613['hcBuh'],'pipe','pipe']});let _0x22b4d9='',_0x4755c3='',_0x3759ad=![];const _0x329374=_0x1bc6f6['timeoutMs']&&_0x1c2613[_0x12763e(0x120)](_0x1bc6f6['timeoutMs'],0x0)?_0x1c2613[_0x12763e(0x11a)](setTimeout,()=>{const _0x24f949=_0x12763e;_0x3759ad=!![],_0x507eeb[_0x24f949(0x112)](_0x14fbe1[_0x24f949(0x114)]),setTimeout(()=>{const _0x4d1337=_0x24f949;try{_0x507eeb[_0x4d1337(0x112)](_0x4d1337(0x108));}catch{}},0x3e8);},_0x1bc6f6[_0x12763e(0x115)]):null;_0x507eeb[_0x12763e(0x131)]?.['on'](_0x1c2613[_0x12763e(0x121)],_0x73bb87=>{const _0x56e1ed=_0x12763e;_0x22b4d9+=_0x73bb87[_0x56e1ed(0x12a)]();}),_0x507eeb[_0x12763e(0x110)]?.['on']('data',_0x2c3189=>{const _0x1c8729=_0x12763e;_0x4755c3+=_0x2c3189[_0x1c8729(0x12a)]();}),_0x507eeb['on'](_0x1c2613['oIoWh'],_0x59a6e9=>{if(_0x329374)_0x14fbe1['vQpQl'](clearTimeout,_0x329374);_0x17f621(_0x59a6e9);}),_0x507eeb['on'](_0x1c2613[_0x12763e(0x119)],(_0x23f8ef,_0x397a38)=>{const _0x979d24=_0x12763e;if(_0x329374)_0x14fbe1[_0x979d24(0x127)](clearTimeout,_0x329374);if(_0x23f8ef===0x0){_0x14fbe1['LNxzC'](_0x45fb16,{'stdout':_0x22b4d9,'stderr':_0x4755c3,'invocation':_0xea8eb7});return;}const _0x5b9950=_0x3759ad?'timed\x20out\x20after\x20'+_0x1bc6f6[_0x979d24(0x115)]+'ms':_0x979d24(0x105)+_0x14fbe1['hAkad'](_0x23f8ef,_0x14fbe1[_0x979d24(0x118)])+_0x979d24(0x11c)+(_0x397a38??_0x979d24(0x128));_0x14fbe1['dgsNP'](_0x17f621,new Error(_0x979d24(0x130)+_0xea8eb7[_0x979d24(0x117)]+'\x20'+_0x5b9950+'\x0astdout:\x20'+_0x14fbe1['dgsNP'](truncateOutput,_0x22b4d9)+'\x0astderr:\x20'+truncateOutput(_0x4755c3)));});});}export function parseRangerwrightCliCommand(_0x3afbd4){const _0x3581e5=_0x3afbd4['match'](/(?:^|\s)(?:"[^"]*rangerwright(?:\/build\/cli\.js)?"|'[^']*rangerwright(?:\/build\/cli\.js)?'|\S*rangerwright(?:\/build\/cli\.js)?)(?:\s+--json)?\s+([a-z-]+)/);return _0x3581e5?.[0x1]??null;}
|