@ranger-testing/ranger-cli 3.1.6-alpha.aca5f9c-53 → 3.1.6-alpha.e1ccb01-57

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.
Files changed (86) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/deleteProfile.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/novaActCli.js +1 -1
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/organizationEnvApi.js +1 -1
  60. package/build/commands/utils/playwrightCli.js +1 -1
  61. package/build/commands/utils/profileMessages.js +1 -1
  62. package/build/commands/utils/profileSetupBanner.js +1 -1
  63. package/build/commands/utils/projectsConfig.js +1 -1
  64. package/build/commands/utils/rangerConfig.js +1 -1
  65. package/build/commands/utils/rangerRoot.js +1 -1
  66. package/build/commands/utils/rangerwrightCli.js +1 -1
  67. package/build/commands/utils/resolveProfileContext.js +1 -1
  68. package/build/commands/utils/resolveProfileUrl.js +1 -1
  69. package/build/commands/utils/retry.js +1 -1
  70. package/build/commands/utils/scenarioOriginCheck.js +1 -1
  71. package/build/commands/utils/sessionCache.js +1 -1
  72. package/build/commands/utils/settings.js +1 -1
  73. package/build/commands/utils/skillContent.js +1 -1
  74. package/build/commands/utils/skills.js +1 -1
  75. package/build/commands/utils/stitchWebmFiles.js +1 -1
  76. package/build/commands/utils/telemetry.js +1 -1
  77. package/build/commands/utils/tokenRefresh.js +1 -1
  78. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  79. package/build/commands/utils/tunnelClient.js +1 -1
  80. package/build/commands/utils/userApi.js +1 -1
  81. package/build/commands/utils/version.js +1 -1
  82. package/build/commands/verifyFeature.js +1 -1
  83. package/build/commands/verifyFeatureCli.js +1 -1
  84. package/build/commands/verifyFeatureNovaCli.js +1 -1
  85. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  86. package/package.json +14 -5
@@ -1 +1 @@
1
- (function(_0x170d92,_0x4b4d87){const _0x516c04=_0x1d53,_0x21b009=_0x170d92();while(!![]){try{const _0x43624b=parseInt(_0x516c04(0x21d))/0x1+parseInt(_0x516c04(0x1a4))/0x2+-parseInt(_0x516c04(0x1a8))/0x3+-parseInt(_0x516c04(0x1fc))/0x4*(-parseInt(_0x516c04(0x215))/0x5)+-parseInt(_0x516c04(0x1ee))/0x6+-parseInt(_0x516c04(0x199))/0x7+-parseInt(_0x516c04(0x22b))/0x8*(-parseInt(_0x516c04(0x1e5))/0x9);if(_0x43624b===_0x4b4d87)break;else _0x21b009['push'](_0x21b009['shift']());}catch(_0x1e0f7f){_0x21b009['push'](_0x21b009['shift']());}}}(_0x4784,0xc7bff));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='act';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(_0xd68477){const _0x7d75da=_0x1d53,_0x4b1e03={'qXGJl':function(_0x1f8071,_0x494f42){return _0x1f8071(_0x494f42);},'YIUjs':'sha256'},_0x444d72=_0x4b1e03['qXGJl'](createHash,_0x4b1e03[_0x7d75da(0x23e)])[_0x7d75da(0x1cf)](_0xd68477)[_0x7d75da(0x21a)]('hex')[_0x7d75da(0x193)](0x0,0xc);return _0x7d75da(0x1c2)+_0x444d72;}export async function inspectNovaStorageStateFile(_0x2a08f8){const _0x5bc273=_0x1d53,_0x42a779={'qcPAN':function(_0x357fdc,_0x4987db){return _0x357fdc(_0x4987db);},'YjHNP':function(_0x15d858,_0x183434,_0x329083){return _0x15d858(_0x183434,_0x329083);},'sgPrt':_0x5bc273(0x1b9),'xuhjM':function(_0x4dc440,_0x46846f){return _0x4dc440(_0x46846f);},'ApJvL':_0x5bc273(0x1e9),'ZTMhR':function(_0x1decbd,_0x1b52c1){return _0x1decbd/_0x1b52c1;},'Tgjlg':function(_0x184fe8,_0x224af9){return _0x184fe8 instanceof _0x224af9;},'XBtzN':function(_0x2689cf,_0x1f90d5){return _0x2689cf(_0x1f90d5);},'djDZp':function(_0x36094a,_0x16e206){return _0x36094a instanceof _0x16e206;}};try{const [_0x210806,_0x212737]=await Promise['all']([_0x42a779['qcPAN'](stat,_0x2a08f8),_0x42a779[_0x5bc273(0x22e)](readFile,_0x2a08f8,_0x42a779[_0x5bc273(0x1b1)])]),_0x5c44f6={'path':_0x2a08f8,'exists':!![],'byteLength':Buffer[_0x5bc273(0x210)](_0x212737),'sha256':_0x42a779['xuhjM'](createHash,_0x42a779[_0x5bc273(0x1d3)])['update'](_0x212737)[_0x5bc273(0x21a)]('hex')};try{const _0x4972e8=JSON['parse'](_0x212737),_0x3b2df7=_0x4972e8[_0x5bc273(0x1e2)]??[],_0x124162=Math[_0x5bc273(0x20d)](_0x42a779['ZTMhR'](Date[_0x5bc273(0x1a3)](),0x3e8)),_0x9f8c9d=new Map();for(const _0x517fa9 of _0x3b2df7){const _0x57cada=_0x9f8c9d[_0x5bc273(0x1cb)](_0x517fa9[_0x5bc273(0x19c)])??[];_0x57cada[_0x5bc273(0x22d)](_0x517fa9[_0x5bc273(0x1fb)]),_0x9f8c9d['set'](_0x517fa9[_0x5bc273(0x19c)],_0x57cada);}return{..._0x5c44f6,'byteLength':_0x210806[_0x5bc273(0x1d1)],'cookieCount':_0x3b2df7['length'],'cookieDomains':[..._0x9f8c9d['entries']()][_0x5bc273(0x1d0)](([_0x1362f5],[_0x32247a])=>_0x1362f5[_0x5bc273(0x196)](_0x32247a))[_0x5bc273(0x232)](([_0x57998f,_0x58ac2b])=>({'domain':_0x57998f,'count':_0x58ac2b['length'],'names':_0x58ac2b[_0x5bc273(0x1d0)]()['slice'](0x0,0x19)})),'httpOnlyCookieCount':_0x3b2df7['filter'](_0x31863e=>_0x31863e['httpOnly'])[_0x5bc273(0x250)],'secureCookieCount':_0x3b2df7['filter'](_0x240361=>_0x240361[_0x5bc273(0x1c8)])[_0x5bc273(0x250)],'sessionCookieCount':_0x3b2df7['filter'](_0x83d5fe=>_0x83d5fe[_0x5bc273(0x1f9)]===-0x1)['length'],'expiredCookieCount':_0x3b2df7['filter'](_0x4f7247=>typeof _0x4f7247['expires']==='number'&&_0x4f7247['expires']>0x0&&_0x4f7247['expires']<_0x124162)[_0x5bc273(0x250)],'originCount':_0x4972e8['origins']?.[_0x5bc273(0x250)]??0x0,'origins':(_0x4972e8[_0x5bc273(0x1c7)]??[])[_0x5bc273(0x232)](_0x5a5ade=>({'origin':_0x5a5ade['origin'],'localStorageCount':_0x5a5ade[_0x5bc273(0x1f4)]?.[_0x5bc273(0x250)]??0x0,'localStorageKeys':_0x5a5ade['localStorage']?.['map'](_0x435d3d=>_0x435d3d[_0x5bc273(0x1fb)])[_0x5bc273(0x1d0)]()['slice'](0x0,0x19)??[]}))};}catch(_0x2967e3){return{..._0x5c44f6,'byteLength':_0x210806['size'],'parseError':_0x42a779['Tgjlg'](_0x2967e3,Error)?_0x2967e3[_0x5bc273(0x204)]:_0x42a779['XBtzN'](String,_0x2967e3)};}}catch(_0x5dd7be){return{'path':_0x2a08f8,'exists':![],'readError':_0x42a779['djDZp'](_0x5dd7be,Error)?_0x5dd7be['message']:String(_0x5dd7be)};}}function _0x4784(){const _0x4e62bf=['1760796QpUxqP','close','gBGNG','JyuCT','object','stdout','address','vljYk','port','sgPrt','setItem','KbpmD','YXhpG','Nova\x20Act\x20CLI\x20preflight\x20failed,\x20so\x20Ranger\x20did\x20not\x20start\x20a\x20browser\x20session.','PChHw','act\x20browser\x20doctor\x20--json\x20timed\x20out','--version','utf-8','FfVSG','dVsmo','icRgH','ZaeZS','--user-data-dir=','/opt/homebrew/bin','executablePath','domcontentloaded','rg-','--launch-arg=','stdout:\x20','CNYvR','args','origins','secure','null','oQdST','get','timed\x20out\x20after\x20','stderr:\x20','isFile','update','sort','size','FQPjp','ApJvL','pipe','dSHpP','dhGSQ','\x0afi\x0a\x0aexec\x20','\x20browser\x20\x22$@\x22\x20','GIDmF','export','browserCommandPath','DTpHE','xPSdW','http://127.0.0.1:','error','tool','nova-act-cli\x20','cookies','BoqmV','Nova\x20profile\x20hydration\x20browser\x20did\x20not\x20expose\x20a\x20context','1323hBItqB','contexts','/usr/local/bin','--remote-debugging-port=','sha256','once','SWipR','session','stderr','2309808NZNYhx','--remote-allow-origins=http://localhost','cwd','subcommand','launchArgs','join','localStorage','Timed\x20out\x20waiting\x20for\x20hydration\x20browser\x20CDP','--no-first-run','LXtet','add','expires','xTHkP','name','252qokNhC','gbaWu','mtimeMs','TTtva','\x20is\x20on\x20PATH.\x0astdout:\x20','data','unknown','--quiet','message','gYEaJ','origin','THNWB','nVZJF','VcYSS','IVKtY','jpBOB','Network','floor','TBpwm','nova-act-browser','byteLength','...','DVFXP','fail','Kbpmt','121265aIMYxR','DeLdd','status','timeoutMs','Hshmx','digest','checks','string','787276dqvjWK','logs_directory','JVeEe','hiKrJ','exited\x20with\x20code=','kXZdi','sessionId','hCPrV','XfgLb','yOtwo','ZGmtz','off','kill','KbbYx','13832eIWIuu','--window-size=1280,720','push','YjHNP','logDir','Local\x20Storage','browserProfilePath','map','zpxIz','--browser-profile-path','trim','fqQDw','split','aaPah','match','YJrKi','AWS_PROFILE','For\x20AWS\x20SSO,\x20run:\x20aws\x20sso\x20login\x20--profile\x20','log_dir','YIUjs','exitCode','storageStatePath','qhLOK','ilpyn','bRXRC','ignore','qpgQF','userDataDir','uUmdA','PATH','VkGeM','\x0astdout:\x20','parse','--profile-directory=Default','env','browser','execute','length','newPage','AeWjH','hqizS','code','cLoJw','fix','Cookies','toString','iqJmj','SIGKILL','slice','JkHpp','zPgyN','localeCompare','lJNvv','ViggM','10583062iwUSns','webSocketDebuggerUrl','\x20browser\x20--help`\x20is\x20still\x20unavailable.\x20Ensure\x20','domain','eakuK','bgFPw','\x0astderr:\x20','baseUrl','Failed\x20to\x20allocate\x20hydration\x20browser\x20port','filter','now','1465126DTwBeE','oUTYr','Installed\x20','XjkQU'];_0x4784=function(){return _0x4e62bf;};return _0x4784();}export async function inspectNovaProfileFiles(_0x1c8382){const _0x3db9cb=_0x1d53,_0x58d5b5={'znfkd':function(_0x28a84e,_0x7d95c0,_0x3bd1fb){return _0x28a84e(_0x7d95c0,_0x3bd1fb);},'qhLOK':'Preferences','qpgQF':_0x3db9cb(0x257),'XHRLd':_0x3db9cb(0x20c),'djucL':'leveldb','gYEaJ':function(_0x397b60,_0x484c06){return _0x397b60(_0x484c06);},'gBGNG':function(_0x1743c0,_0x8c525b){return _0x1743c0(_0x8c525b);},'CNYvR':function(_0x2e428e,_0x3c4109){return _0x2e428e(_0x3c4109);},'ViggM':function(_0x5c0e17,_0x5ea013){return _0x5c0e17(_0x5ea013);}},_0x593a6f=_0x58d5b5['znfkd'](join,_0x1c8382[_0x3db9cb(0x246)],'Local\x20State'),_0x32bc39=_0x58d5b5['znfkd'](join,_0x1c8382[_0x3db9cb(0x231)],_0x58d5b5[_0x3db9cb(0x241)]),_0x1dc35a=join(_0x1c8382[_0x3db9cb(0x231)],_0x58d5b5[_0x3db9cb(0x245)]),_0x50277c=join(_0x1c8382['browserProfilePath'],_0x58d5b5['XHRLd'],_0x58d5b5['qpgQF']),_0x4b0b18=join(_0x1c8382[_0x3db9cb(0x231)],_0x3db9cb(0x230)),_0x504122=_0x58d5b5['znfkd'](join,_0x4b0b18,_0x58d5b5['djucL']),[_0x95b769,_0x3a1b97,_0x57caa3,_0x13098c,_0x356167,_0x43b398,_0x2008ef,_0x5de498,_0x152fc5,_0x115392,_0x28e449]=await Promise['all']([inspectPath(_0x1c8382['userDataDir']),_0x58d5b5[_0x3db9cb(0x205)](inspectPath,_0x1c8382['browserProfilePath']),_0x58d5b5['gYEaJ'](inspectPath,_0x593a6f),_0x58d5b5['gYEaJ'](inspectPath,_0x32bc39),_0x58d5b5[_0x3db9cb(0x205)](inspectPath,_0x1dc35a),inspectPath(_0x50277c),_0x58d5b5[_0x3db9cb(0x1aa)](inspectPath,_0x4b0b18),_0x58d5b5[_0x3db9cb(0x1aa)](inspectPath,_0x504122),_0x58d5b5[_0x3db9cb(0x1c5)](listDir,_0x1c8382[_0x3db9cb(0x246)]),_0x58d5b5[_0x3db9cb(0x198)](listDir,_0x1c8382[_0x3db9cb(0x231)]),_0x58d5b5['ViggM'](listDir,_0x504122)]);return{'userDataDir':_0x1c8382['userDataDir'],'browserProfilePath':_0x1c8382['browserProfilePath'],'rootEntries':_0x152fc5,'defaultEntries':_0x115392,'localStorageEntries':_0x28e449,'paths':{'userDataDir':_0x95b769,'browserProfilePath':_0x3a1b97,'localState':_0x57caa3,'preferences':_0x13098c,'cookies':_0x356167,'networkCookies':_0x43b398,'localStorage':_0x2008ef,'levelDb':_0x5de498}};}async function inspectPath(_0x5e8b39){const _0x416333=_0x1d53,_0x327e13={'DeLdd':function(_0x2d6a8d,_0x578747){return _0x2d6a8d(_0x578747);}};try{const _0x153b43=await _0x327e13[_0x416333(0x216)](stat,_0x5e8b39);return{'path':_0x5e8b39,'exists':!![],'isDirectory':_0x153b43['isDirectory'](),'byteLength':_0x153b43[_0x416333(0x1ce)]()?_0x153b43['size']:undefined,'mtimeMs':_0x153b43[_0x416333(0x1fe)]};}catch(_0x1a027c){return{'path':_0x5e8b39,'exists':![],'error':_0x1a027c instanceof Error?_0x1a027c[_0x416333(0x204)]:String(_0x1a027c)};}}function _0x1d53(_0x35e3a9,_0x1c6564){_0x35e3a9=_0x35e3a9-0x190;const _0x47843e=_0x4784();let _0x1d5366=_0x47843e[_0x35e3a9];return _0x1d5366;}async function listDir(_0x590270){const _0x5eaafd=_0x1d53,_0x1e480e={'dVsmo':function(_0x4fa6ee,_0x5bc34b){return _0x4fa6ee(_0x5bc34b);}};try{return(await _0x1e480e[_0x5eaafd(0x1bb)](readdir,_0x590270))[_0x5eaafd(0x1d0)]()['slice'](0x0,0x32);}catch{return undefined;}}function truncatePreview(_0x3d5635,_0x43a02a=NOVA_ACT_CLI_PREVIEW_LIMIT){const _0x1b25bf=_0x1d53,_0x554574={'icRgH':function(_0x60eafa,_0x36dd55){return _0x60eafa>_0x36dd55;},'DTpHE':function(_0x2b11ff,_0x123c92){return _0x2b11ff+_0x123c92;}};return _0x554574[_0x1b25bf(0x1bc)](_0x3d5635['length'],_0x43a02a)?_0x554574[_0x1b25bf(0x1dc)](_0x3d5635['slice'](0x0,_0x43a02a),'...'):_0x3d5635;}function truncateOutput(_0x21095b,_0x24d429=0x7d0){const _0x283a74=_0x1d53,_0xd566={'JyuCT':_0x283a74(0x211)};return _0x21095b[_0x283a74(0x250)]>_0x24d429?_0x21095b['slice'](0x0,_0x24d429)+_0xd566[_0x283a74(0x1ab)]:_0x21095b;}function getNovaActCliBinDirs(_0x5717e7){const _0x505167=_0x1d53,_0x353321={'yxLzq':_0x505167(0x1e7)};return[_0x5717e7['UV_TOOL_BIN_DIR'],homedir()+'/.local/bin',_0x505167(0x1bf),_0x353321['yxLzq']]['filter'](_0x2ab209=>Boolean(_0x2ab209));}function buildPathWithNovaActCliBins(_0x1efd90){const _0x3e06d5=_0x1d53,_0x4d66d5={'exFbb':function(_0x11ec0b,_0x3c8a40){return _0x11ec0b(_0x3c8a40);}},_0x4a2c17=new Set(),_0x16ac4f=[..._0x4d66d5['exFbb'](getNovaActCliBinDirs,_0x1efd90),...(_0x1efd90[_0x3e06d5(0x248)]??'')[_0x3e06d5(0x237)](delimiter)][_0x3e06d5(0x1a2)](_0x2bc663=>{const _0x4fe500=_0x3e06d5;if(!_0x2bc663||_0x4a2c17['has'](_0x2bc663))return![];return _0x4a2c17[_0x4fe500(0x1f8)](_0x2bc663),!![];});return _0x16ac4f['join'](delimiter);}export function applyNovaActCliPath(_0x112594){_0x112594['PATH']=buildPathWithNovaActCliBins(_0x112594);}function withNovaActCliPath(_0x24bcf7){return{..._0x24bcf7,'PATH':buildPathWithNovaActCliBins(_0x24bcf7)};}function runBootstrapCommand(_0x1c8b50){const _0x5ca541=_0x1d53,_0x541b6e={'CAHxs':_0x5ca541(0x1c9),'YJrKi':function(_0x164ded,_0x101a99){return _0x164ded??_0x101a99;},'oUTYr':function(_0x5d215d,_0x54240f,_0x72354b,_0x50aa0c){return _0x5d215d(_0x54240f,_0x72354b,_0x50aa0c);},'rfOEX':'ignore','pnLEc':_0x5ca541(0x1d4),'THNWB':function(_0x109190,_0x300129,_0x16d6cf){return _0x109190(_0x300129,_0x16d6cf);},'EBzzs':_0x5ca541(0x201),'Kbpmt':_0x5ca541(0x1df),'wAcsz':'close'},{command:_0xba9028,args:_0x2444e2,env:_0x431d0c,timeoutMs:timeoutMs=NOVA_ACT_BOOTSTRAP_TIMEOUT_MS}=_0x1c8b50;return new Promise((_0x248496,_0x317c3f)=>{const _0x4bff85=_0x5ca541,_0x2a70f8={'BoqmV':function(_0x5bf915,_0x5ccac6){return _0x5bf915(_0x5ccac6);},'LXtet':function(_0x6251c2,_0x11b018){return _0x6251c2===_0x11b018;},'TpbSw':_0x541b6e['CAHxs'],'UAqsw':function(_0x5ea272,_0x8c22a5){const _0x1c17c6=_0x1d53;return _0x541b6e[_0x1c17c6(0x23a)](_0x5ea272,_0x8c22a5);}},_0x5b8177=_0x541b6e[_0x4bff85(0x1a5)](spawn,_0xba9028,_0x2444e2,{'env':_0x431d0c,'stdio':[_0x541b6e['rfOEX'],_0x4bff85(0x1d4),_0x541b6e['pnLEc']]});let _0x25effe='',_0x5de6ac='',_0x469c1f=![];const _0x3c7504=_0x541b6e[_0x4bff85(0x207)](setTimeout,()=>{_0x469c1f=!![],_0x5b8177['kill']('SIGTERM'),setTimeout(()=>{const _0x462bc2=_0x1d53;try{_0x5b8177[_0x462bc2(0x229)]('SIGKILL');}catch{}},0x3e8);},timeoutMs);_0x5b8177[_0x4bff85(0x1ad)]?.['on'](_0x541b6e['EBzzs'],_0x19cce5=>{_0x25effe+=_0x19cce5['toString']();}),_0x5b8177[_0x4bff85(0x1ed)]?.['on'](_0x4bff85(0x201),_0x4dceff=>{_0x5de6ac+=_0x4dceff['toString']();}),_0x5b8177['on'](_0x541b6e[_0x4bff85(0x214)],_0x5c84db=>{const _0x350056=_0x4bff85;clearTimeout(_0x3c7504),_0x2a70f8[_0x350056(0x1e3)](_0x317c3f,_0x5c84db);}),_0x5b8177['on'](_0x541b6e['wAcsz'],(_0x5671ff,_0x1dfbc7)=>{const _0x37c09d=_0x4bff85;clearTimeout(_0x3c7504);if(_0x2a70f8[_0x37c09d(0x1f7)](_0x5671ff,0x0)){_0x248496({'stdout':_0x25effe,'stderr':_0x5de6ac});return;}const _0x22eede=_0x469c1f?'timed\x20out\x20after\x20'+timeoutMs+'ms':_0x37c09d(0x221)+(_0x5671ff??_0x2a70f8['TpbSw'])+'\x20signal='+_0x2a70f8['UAqsw'](_0x1dfbc7,'null');_0x317c3f(new Error(_0xba9028+'\x20'+_0x2444e2[_0x37c09d(0x1f3)]('\x20')+'\x20'+_0x22eede+_0x37c09d(0x24a)+truncateOutput(_0x25effe)+_0x37c09d(0x19f)+_0x2a70f8[_0x37c09d(0x1e3)](truncateOutput,_0x5de6ac)));});});}function runCommandAllowFailure(_0x1a911e){const _0x2142e0=_0x1d53,_0xad14c0={'bRXRC':function(_0x5e3512,_0xd9a6aa){return _0x5e3512(_0xd9a6aa);},'XfgLb':function(_0x4f1994,_0x2de7fc,_0x1a3e1d,_0x428c54){return _0x4f1994(_0x2de7fc,_0x1a3e1d,_0x428c54);},'vvvot':'pipe','lsSCE':function(_0x210d87,_0x2229fd,_0x56e5fc){return _0x210d87(_0x2229fd,_0x56e5fc);},'vGPZi':_0x2142e0(0x201),'zaEyK':'close'},{command:_0x7d11e4,args:_0x37473f,env:_0x2d83f8,timeoutMs:_0x3b742e}=_0x1a911e;return new Promise((_0x6059f4,_0x10c595)=>{const _0x264b75=_0x2142e0,_0x13c48b={'SWipR':function(_0x362ced,_0xc8e86f,_0x22e656){return _0x362ced(_0xc8e86f,_0x22e656);}},_0xbde844=_0xad14c0[_0x264b75(0x225)](spawn,_0x7d11e4,_0x37473f,{'env':_0x2d83f8,'stdio':['ignore','pipe',_0xad14c0['vvvot']]});let _0x39c6cd='',_0x12d09c='',_0x4cf6ca=![];const _0xc2df6b=_0xad14c0['lsSCE'](setTimeout,()=>{const _0x2f6fc9=_0x264b75;_0x4cf6ca=!![],_0xbde844[_0x2f6fc9(0x229)]('SIGTERM'),_0x13c48b[_0x2f6fc9(0x1eb)](setTimeout,()=>{const _0x23b9bf=_0x2f6fc9;try{_0xbde844['kill'](_0x23b9bf(0x192));}catch{}},0x3e8);},_0x3b742e);_0xbde844['stdout']?.['on'](_0xad14c0['vGPZi'],_0x2bcd99=>{_0x39c6cd+=_0x2bcd99['toString']();}),_0xbde844['stderr']?.['on'](_0xad14c0['vGPZi'],_0x181505=>{_0x12d09c+=_0x181505['toString']();}),_0xbde844['on'](_0x264b75(0x1df),_0x4261a7=>{clearTimeout(_0xc2df6b),_0x10c595(_0x4261a7);}),_0xbde844['on'](_0xad14c0['zaEyK'],(_0x2517a9,_0x852a5e)=>{const _0x5cd8e1=_0x264b75;_0xad14c0[_0x5cd8e1(0x243)](clearTimeout,_0xc2df6b),_0xad14c0[_0x5cd8e1(0x243)](_0x6059f4,{'code':_0x2517a9,'signal':_0x852a5e,'stdout':_0x39c6cd,'stderr':_0x12d09c,'timedOut':_0x4cf6ca});});});}async function resolveActPath(_0x23bf48){const _0x54e2b1=_0x1d53,_0x417602={'bOykP':function(_0x246d17,_0x24fc77){return _0x246d17(_0x24fc77);}},_0x506348=_0x417602['bOykP'](isAbsolute,NOVA_ACT_CLI_BINARY)?[NOVA_ACT_CLI_BINARY]:(_0x23bf48['PATH']??'')[_0x54e2b1(0x237)](delimiter)[_0x54e2b1(0x1a2)](Boolean)['map'](_0x3f8efc=>join(_0x3f8efc,NOVA_ACT_CLI_BINARY));for(const _0x4f0aaa of _0x506348){try{return await access(_0x4f0aaa),_0x4f0aaa;}catch{}}return null;}async function checkNovaActCli(_0x17a5ea){const _0x2cd40f={'Kjlwm':'browser','vJKZf':'--help'};try{return await runBootstrapCommand({'command':NOVA_ACT_CLI_BINARY,'args':[_0x2cd40f['Kjlwm'],_0x2cd40f['vJKZf']],'env':_0x17a5ea,'timeoutMs':0x7530}),await resolveActPath(_0x17a5ea)??NOVA_ACT_CLI_BINARY;}catch{return null;}}export async function ensureNovaActCliInstalled(_0x3a1e01={}){const _0x18262b=_0x1d53,_0x7808f1={'aaPah':function(_0xd678dc,_0x43d8a2){return _0xd678dc(_0x43d8a2);},'mALsA':_0x18262b(0x1e0)},_0x5146f5=withNovaActCliPath(_0x3a1e01['env']??process['env']),_0x2a3cc8=await checkNovaActCli(_0x5146f5);if(_0x2a3cc8)return{'installed':![],'actPath':_0x2a3cc8,'uvPackage':NOVA_ACT_CLI_UV_PACKAGE,'stdout':'','stderr':''};try{await _0x7808f1['aaPah'](runBootstrapCommand,{'command':'uv','args':[_0x18262b(0x1b8)],'env':_0x5146f5,'timeoutMs':0x7530});}catch(_0x57bf3f){throw new Error('nova-act-cli\x20transport\x20requires\x20the\x20Nova\x20Act\x20CLI.\x20Ranger\x20could\x20not\x20find\x20`'+NOVA_ACT_CLI_BINARY+'`,\x20and\x20`uv`\x20is\x20not\x20available\x20to\x20install\x20it.\x0aInstall\x20uv,\x20or\x20run:\x20uv\x20tool\x20install\x20\x22'+NOVA_ACT_CLI_UV_PACKAGE+'\x22\x0a'+(_0x57bf3f instanceof Error?_0x57bf3f[_0x18262b(0x204)]:_0x7808f1['aaPah'](String,_0x57bf3f)));}const _0x49d442=await runBootstrapCommand({'command':'uv','args':[_0x7808f1['mALsA'],'install',NOVA_ACT_CLI_UV_PACKAGE],'env':_0x5146f5,'timeoutMs':_0x3a1e01['timeoutMs']??NOVA_ACT_BOOTSTRAP_TIMEOUT_MS}),_0x2689ae=await _0x7808f1[_0x18262b(0x238)](checkNovaActCli,_0x5146f5);if(!_0x2689ae)throw new Error(_0x18262b(0x1a6)+NOVA_ACT_CLI_UV_PACKAGE+',\x20but\x20`'+NOVA_ACT_CLI_BINARY+_0x18262b(0x19b)+_0x7808f1['aaPah'](getNovaActCliBinDirs,_0x5146f5)[_0x18262b(0x1f3)](',\x20')+_0x18262b(0x200)+_0x7808f1['aaPah'](truncateOutput,_0x49d442['stdout'])+_0x18262b(0x19f)+truncateOutput(_0x49d442['stderr']));return{'installed':!![],'actPath':_0x2689ae,'uvPackage':NOVA_ACT_CLI_UV_PACKAGE,'stdout':_0x49d442['stdout'],'stderr':_0x49d442[_0x18262b(0x1ed)]};}function parseNovaActDoctorOutput(_0x35f5cc){const _0x4d271c=_0x1d53;try{return JSON[_0x4d271c(0x24b)](_0x35f5cc);}catch{return null;}}function buildNovaActCliPreflightError(_0x5ebc08){const _0x52f962=_0x1d53,_0x1e3a06={'PNexf':_0x52f962(0x1b7),'dSHpP':'null','TBpwm':function(_0x57b4f2,_0x3c7caa){return _0x57b4f2??_0x3c7caa;},'JVeEe':function(_0x42c6dd,_0xe9924c){return _0x42c6dd(_0xe9924c);},'ilpyn':function(_0x19c0d7,_0x9bea75){return _0x19c0d7(_0x9bea75);},'FUDDf':'For\x20AWS\x20SSO,\x20set\x20AWS_PROFILE\x20and\x20run:\x20aws\x20sso\x20login\x20--profile\x20<profile>','AGCFS':_0x52f962(0x1b5)},{checks:_0x5257ca,stdout:_0x54f028,stderr:_0x3ee9ec,env:_0x3b02e8,code:_0x2c959d,signal:_0x1efd20,timedOut:_0x4fa17c}=_0x5ebc08,_0x4e4961=_0x5257ca[_0x52f962(0x1a2)](_0x35728d=>_0x35728d[_0x52f962(0x217)]===_0x52f962(0x213)),_0x130772=_0x4e4961[_0x52f962(0x250)]>0x0?_0x4e4961[_0x52f962(0x232)](_0x2480cf=>{const _0x5dcf56=_0x52f962,_0x47ce36=_0x2480cf[_0x5dcf56(0x256)]?'\x20Fix:\x20'+_0x2480cf['fix']:'';return'-\x20'+_0x2480cf[_0x5dcf56(0x1fb)]+':\x20'+_0x2480cf['message']+'.'+_0x47ce36;})['join']('\x0a'):[_0x4fa17c?_0x1e3a06['PNexf']:'act\x20browser\x20doctor\x20--json\x20exited\x20with\x20code='+(_0x2c959d??_0x1e3a06[_0x52f962(0x1d5)])+'\x20signal='+_0x1e3a06[_0x52f962(0x20e)](_0x1efd20,_0x1e3a06['dSHpP']),_0x54f028?_0x52f962(0x1c4)+_0x1e3a06[_0x52f962(0x21f)](truncateOutput,_0x54f028):'',_0x3ee9ec?_0x52f962(0x1cd)+_0x1e3a06[_0x52f962(0x242)](truncateOutput,_0x3ee9ec):''][_0x52f962(0x1a2)](Boolean)[_0x52f962(0x1f3)]('\x0a'),_0xf4de9=_0x3b02e8[_0x52f962(0x23b)]?.[_0x52f962(0x235)](),_0x430310=_0xf4de9?_0x52f962(0x23c)+_0xf4de9:_0x1e3a06['FUDDf'];return new Error([_0x1e3a06['AGCFS'],_0x130772,'Configure\x20Nova\x20Act\x20with\x20NOVA_ACT_API_KEY,\x20run\x20act\x20browser\x20setup\x20--api-key\x20<key>,\x20or\x20configure\x20AWS\x20credentials.',_0x430310]['join']('\x0a'));}export async function preflightNovaActCli(_0xdef138={}){const _0x20ff88=_0x1d53,_0x779947={'gbaWu':function(_0xb77c53,_0x5a2a3a){return _0xb77c53(_0x5a2a3a);},'GIDmF':function(_0x51f51f,_0x110ede){return _0x51f51f!==_0x110ede;}},_0xad3e75=withNovaActCliPath(_0xdef138[_0x20ff88(0x24d)]??process['env']),_0x15c20e=await _0x779947[_0x20ff88(0x1fd)](runCommandAllowFailure,{'command':NOVA_ACT_CLI_BINARY,'args':[_0x20ff88(0x24e),'doctor','--json'],'env':_0xad3e75,'timeoutMs':_0xdef138[_0x20ff88(0x218)]??0x7530}),_0x13100e=_0x779947['gbaWu'](parseNovaActDoctorOutput,_0x15c20e[_0x20ff88(0x1ad)]),_0x467c93=_0x13100e?.[_0x20ff88(0x201)]?.[_0x20ff88(0x21b)]??[],_0x51e0da=_0x467c93['some'](_0x431aa5=>_0x431aa5['status']==='fail');if(_0x779947[_0x20ff88(0x1d9)](_0x15c20e['code'],0x0)||_0x15c20e['timedOut']||_0x51e0da)throw _0x779947['gbaWu'](buildNovaActCliPreflightError,{'checks':_0x467c93,'stdout':_0x15c20e[_0x20ff88(0x1ad)],'stderr':_0x15c20e['stderr'],'env':_0xad3e75,'code':_0x15c20e[_0x20ff88(0x254)],'signal':_0x15c20e['signal'],'timedOut':_0x15c20e['timedOut']});return{'checks':_0x467c93,'logDir':_0x13100e?.['log_dir']??_0x13100e?.[_0x20ff88(0x22f)]};}function getNovaActCliSubcommand(_0x292327){const _0x34e8b6=_0x1d53,_0x1593a1={'ujQRG':function(_0x3ff416,_0x384fdf){return _0x3ff416===_0x384fdf;}},[_0x5a883e=_0x34e8b6(0x202),_0x255776]=_0x292327;return _0x1593a1['ujQRG'](_0x5a883e,_0x34e8b6(0x1ec))&&_0x255776?_0x5a883e+'\x20'+_0x255776:_0x5a883e;}function supportsBrowserSessionOptions(_0x5f5105){const _0x223eb8=_0x1d53,_0x375558={'IVKtY':function(_0x35a494,_0x263f72){return _0x35a494===_0x263f72;}};return!(_0x5f5105[0x0]==='session'&&(_0x375558[_0x223eb8(0x20a)](_0x5f5105[0x1],_0x223eb8(0x1da))||_0x5f5105[0x1]==='close'));}function buildSharedArgs(_0x1650d2,_0x377075){const _0x1b8986=_0x1d53,_0x3037eb={'lJNvv':'--session-id','oQdST':function(_0x5b8053,_0x1aec13){return _0x5b8053(_0x1aec13);},'zpxIz':'--headless','jAsPN':'--executable-path'},_0x1f0bbf=[_0x3037eb[_0x1b8986(0x197)],_0x1650d2[_0x1b8986(0x223)],'--json'];if(_0x3037eb[_0x1b8986(0x1ca)](supportsBrowserSessionOptions,_0x377075)){_0x1f0bbf[_0x1b8986(0x22d)](_0x1b8986(0x203)),_0x1f0bbf[_0x1b8986(0x22d)](_0x1650d2['headless']?_0x3037eb[_0x1b8986(0x233)]:'--headed');_0x1650d2[_0x1b8986(0x231)]&&_0x1f0bbf['push'](_0x1b8986(0x234),_0x1650d2[_0x1b8986(0x231)]);_0x1650d2[_0x1b8986(0x1c0)]&&_0x1f0bbf['push'](_0x3037eb['jAsPN'],_0x1650d2[_0x1b8986(0x1c0)]);_0x1650d2['cdpEndpoint']&&_0x1f0bbf[_0x1b8986(0x22d)]('--cdp',_0x1650d2['cdpEndpoint']);for(const _0x51dc3b of _0x1650d2[_0x1b8986(0x1f2)]??[]){_0x1f0bbf['push'](_0x1b8986(0x1c3)+_0x51dc3b);}}return _0x1f0bbf;}export function buildNovaActCliInvocation(_0x13aceb,_0x53f8d5){const _0x506589=_0x1d53,_0x43fce9={'Vzops':function(_0xdb09b9,_0x1bec70,_0x56e5f4){return _0xdb09b9(_0x1bec70,_0x56e5f4);},'duhMt':'browser'},_0x53a0e8=_0x43fce9['Vzops'](buildSharedArgs,_0x13aceb,_0x53f8d5),_0x1f0103=[_0x43fce9['duhMt'],..._0x53f8d5,..._0x53a0e8];return{'command':NOVA_ACT_CLI_BINARY,'args':_0x1f0103,'shellCommand':[NOVA_ACT_CLI_BINARY,_0x506589(0x24e),..._0x53f8d5['map'](quoteShellArg),..._0x53a0e8[_0x506589(0x232)](quoteShellArg)][_0x506589(0x1f3)]('\x20'),'subcommand':getNovaActCliSubcommand(_0x53f8d5)};}export function buildNovaActCliCommandPrefix(){return NOVA_ACT_CLI_BINARY+'\x20browser';}export function buildNovaActCliBrowserWrapperPath(_0x1d9a3b){const _0x59ed2a=_0x1d53,_0x809aa2={'VcYSS':function(_0x58475c,_0x8d8359,_0x2e5f78){return _0x58475c(_0x8d8359,_0x2e5f78);},'nVZJF':function(_0xf3aa02,_0x4b2490){return _0xf3aa02(_0x4b2490);}};return _0x809aa2[_0x59ed2a(0x209)](join,_0x809aa2[_0x59ed2a(0x208)](dirname,_0x1d9a3b[_0x59ed2a(0x246)]),_0x59ed2a(0x20f));}export async function writeNovaActCliBrowserWrapper(_0x532a6c){const _0x1b7383=_0x1d53,_0x3827dd={'hCPrV':_0x1b7383(0x24f),'ZaeZS':function(_0x262c49,_0x3af217,_0x4fc2af){return _0x262c49(_0x3af217,_0x4fc2af);},'RKrjy':function(_0x564a1d,_0x11a413,_0x3ffa73){return _0x564a1d(_0x11a413,_0x3ffa73);},'yXIWg':function(_0x38d1cc,_0x3d3f1e,_0x1bfd08){return _0x38d1cc(_0x3d3f1e,_0x1bfd08);},'JSIMs':function(_0x3e4acf,_0x219592,_0x3800c7,_0x92f5c9){return _0x3e4acf(_0x219592,_0x3800c7,_0x92f5c9);},'dhGSQ':function(_0x4bd9a1,_0x3b73b6){return _0x4bd9a1(_0x3b73b6);}},_0x1dcb9d=_0x532a6c[_0x1b7383(0x1db)]??buildNovaActCliBrowserWrapperPath(_0x532a6c),_0x353a6c=buildSharedArgs(_0x532a6c,[_0x3827dd[_0x1b7383(0x224)]])[_0x1b7383(0x232)](quoteShellArg)['join']('\x20'),_0x4d610e=_0x3827dd[_0x1b7383(0x1bd)](buildSharedArgs,_0x532a6c,['session',_0x1b7383(0x1da)])['map'](quoteShellArg)[_0x1b7383(0x1f3)]('\x20');return await _0x3827dd['RKrjy'](mkdir,dirname(_0x1dcb9d),{'recursive':!![]}),await _0x3827dd['yXIWg'](mkdir,_0x532a6c['userDataDir'],{'recursive':!![]}),await _0x3827dd['JSIMs'](writeFile,_0x1dcb9d,'#!/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)+'\x20browser\x20\x22$@\x22\x20'+_0x4d610e+_0x1b7383(0x1d7)+_0x3827dd[_0x1b7383(0x1d6)](quoteShellArg,NOVA_ACT_CLI_BINARY)+_0x1b7383(0x1d8)+_0x353a6c+'\x0a',_0x1b7383(0x1b9)),await chmod(_0x1dcb9d,0x1ed),_0x1dcb9d;}export function buildNovaActCliSharedOptionsSuffix(_0x5c2c72,_0x223f03=['execute']){const _0x4a5f73=_0x1d53;return buildSharedArgs(_0x5c2c72,_0x223f03)[_0x4a5f73(0x232)](quoteShellArg)['join']('\x20');}export async function runNovaActCliCommand(_0x305590){const _0x545b82=_0x1d53,_0x16e092={'ZBaUd':function(_0x5e2893,_0x1fca50,_0x96c227){return _0x5e2893(_0x1fca50,_0x96c227);},'iKMFS':function(_0x2d19a1,_0xbdfb00){return _0x2d19a1===_0xbdfb00;},'yOtwo':_0x545b82(0x1d4),'xrYtp':_0x545b82(0x1df),'jpBOB':_0x545b82(0x1a9)};await mkdir(_0x305590['userDataDir'],{'recursive':!![]});const _0x50b443=buildNovaActCliInvocation(_0x305590,_0x305590['commandArgs']);return new Promise((_0x3685fa,_0x2a762b)=>{const _0x1fd97c=_0x545b82,_0x509ebd={'JkHpp':'SIGKILL','TTtva':function(_0x1c0508,_0x21cc6b){return _0x1c0508(_0x21cc6b);},'uUmdA':function(_0x3873e7,_0xb61ce5){return _0x16e092['iKMFS'](_0x3873e7,_0xb61ce5);},'KbpmD':function(_0x128395,_0x520ea3){return _0x128395??_0x520ea3;},'WhHMQ':_0x1fd97c(0x1c9)},_0x1a067d=spawn(_0x50b443['command'],_0x50b443[_0x1fd97c(0x1c6)],{'cwd':_0x305590[_0x1fd97c(0x1f0)],'env':_0x305590['env'],'stdio':[_0x1fd97c(0x244),_0x16e092[_0x1fd97c(0x226)],_0x1fd97c(0x1d4)]});let _0x50e6cd='',_0x648a21='',_0x303c1d=![];const _0x1acf7c=_0x305590[_0x1fd97c(0x218)]&&_0x305590[_0x1fd97c(0x218)]>0x0?setTimeout(()=>{const _0x1923f5=_0x1fd97c;_0x303c1d=!![],_0x1a067d[_0x1923f5(0x229)]('SIGTERM'),_0x16e092['ZBaUd'](setTimeout,()=>{const _0x271fa5=_0x1923f5;try{_0x1a067d[_0x271fa5(0x229)](_0x509ebd[_0x271fa5(0x194)]);}catch{}},0x3e8);},_0x305590[_0x1fd97c(0x218)]):null;_0x1a067d[_0x1fd97c(0x1ad)]?.['on']('data',_0x1b0b89=>{const _0x28fcfd=_0x1fd97c;_0x50e6cd+=_0x1b0b89[_0x28fcfd(0x190)]();}),_0x1a067d['stderr']?.['on']('data',_0xa220fe=>{_0x648a21+=_0xa220fe['toString']();}),_0x1a067d['on'](_0x16e092['xrYtp'],_0x148d8a=>{const _0x3025f3=_0x1fd97c;if(_0x1acf7c)_0x509ebd[_0x3025f3(0x1ff)](clearTimeout,_0x1acf7c);_0x2a762b(_0x148d8a);}),_0x1a067d['on'](_0x16e092[_0x1fd97c(0x20b)],(_0x243806,_0x8a668)=>{const _0x11a58c=_0x1fd97c;if(_0x1acf7c)clearTimeout(_0x1acf7c);if(_0x509ebd[_0x11a58c(0x247)](_0x243806,0x0)){_0x509ebd['TTtva'](_0x3685fa,{'stdout':_0x50e6cd,'stderr':_0x648a21,'invocation':_0x50b443});return;}const _0x518298=_0x303c1d?_0x11a58c(0x1cc)+_0x305590['timeoutMs']+'ms':'exited\x20with\x20code='+_0x509ebd['KbpmD'](_0x243806,_0x509ebd['WhHMQ'])+'\x20signal='+_0x509ebd[_0x11a58c(0x1b3)](_0x8a668,_0x11a58c(0x1c9));_0x2a762b(new Error(_0x11a58c(0x1e1)+_0x50b443[_0x11a58c(0x1f1)]+'\x20'+_0x518298+'\x0astdout:\x20'+truncateOutput(_0x50e6cd)+'\x0astderr:\x20'+_0x509ebd[_0x11a58c(0x1ff)](truncateOutput,_0x648a21)));});});}export function parseNovaActCliCommand(_0x54779f){const _0x17eee4=_0x54779f['match'](/(?:^|\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 _0x17eee4?.[0x1]??null;}export function extractNovaActLogDir(_0x1d2782){const _0x4fc87d=_0x1d53;try{const _0x2017bf=JSON['parse'](_0x1d2782),_0x58d28c=[_0x2017bf[_0x4fc87d(0x21e)],_0x2017bf['logsDirectory'],_0x2017bf['logs_dir'],_0x2017bf[_0x4fc87d(0x22f)],_0x2017bf[_0x4fc87d(0x23d)]],_0x5bd15f=_0x58d28c['find'](_0x3c6276=>typeof _0x3c6276==='string'&&_0x3c6276[_0x4fc87d(0x235)]()['length']>0x0);if(_0x5bd15f)return _0x5bd15f;}catch{}const _0x184a80=_0x1d2782[_0x4fc87d(0x239)](/(?:logs_directory|logsDirectory|log_dir|logDir|logs dir|logs directory)[:=]\s*["']?([^\s"',}]+)/i);return _0x184a80?.[0x1]??null;}export async function loadNovaActSessionExport(_0x339123){const _0x3df677=_0x1d53,_0x66dc18={'YXhpG':_0x3df677(0x1b9)};try{return JSON['parse'](await readFile(_0x339123,_0x66dc18[_0x3df677(0x1b4)]));}catch{return null;}}export async function hydrateNovaProfileFromStorageState(_0x4d293f){const _0x221a05=_0x1d53,_0x10f403={'kumkG':function(_0x170838,_0x1bc7d7){return _0x170838+_0x1bc7d7;},'VlSfd':function(_0x3bda9d,_0x4f9bd3){return _0x3bda9d/_0x4f9bd3;},'AeWjH':function(_0x14d7f5,_0x21aff0,_0x2dd3ae){return _0x14d7f5(_0x21aff0,_0x2dd3ae);},'fqQDw':'domcontentloaded'},_0x5d28f6=JSON['parse'](await readFile(_0x4d293f[_0x221a05(0x240)],'utf-8')),_0x38c757=await inspectNovaStorageStateFile(_0x4d293f[_0x221a05(0x240)]);await _0x10f403[_0x221a05(0x252)](mkdir,_0x4d293f[_0x221a05(0x246)],{'recursive':!![]});const _0x2a0a99=_0x10f403['AeWjH'](join,_0x4d293f[_0x221a05(0x246)],'Default'),_0xff2181=await inspectNovaProfileFiles({'userDataDir':_0x4d293f[_0x221a05(0x246)],'browserProfilePath':_0x2a0a99}),{browser:_0x2f6329,process:_0x14a0d1}=await launchNovaHydrationBrowser({'userDataDir':_0x4d293f['userDataDir'],'browserProfilePath':_0x2a0a99,'executablePath':_0x4d293f[_0x221a05(0x1c0)],'headless':_0x4d293f['headless'],'launchArgs':_0x4d293f['launchArgs']}),_0x5afb8f=_0x2f6329[_0x221a05(0x1e6)]()[0x0];if(!_0x5afb8f){await closeNovaHydrationBrowser(_0x2f6329,_0x14a0d1);throw new Error(_0x221a05(0x1e4));}let _0x446330=0x0,_0x204c90=0x0;try{const _0x28d2d0=_0x5d28f6[_0x221a05(0x1e2)]??[];if(_0x28d2d0[_0x221a05(0x250)]>0x0){const _0xc02501=_0x28d2d0['map'](_0x147fa0=>{const _0x323d75=_0x221a05;if(_0x147fa0[_0x323d75(0x1f9)]!==-0x1)return _0x147fa0;return _0x204c90+=0x1,{..._0x147fa0,'expires':_0x10f403['kumkG'](Math['floor'](_0x10f403['VlSfd'](Date[_0x323d75(0x1a3)](),0x3e8)),NOVA_PROMOTED_SESSION_COOKIE_TTL_SECONDS)};});await _0x5afb8f['addCookies'](_0xc02501);}for(const _0x33c908 of _0x5d28f6[_0x221a05(0x1c7)]??[]){if(!_0x33c908['localStorage']?.[_0x221a05(0x250)])continue;const _0x2883ab=await _0x5afb8f['newPage']();await _0x2883ab['goto'](_0x33c908[_0x221a05(0x206)],{'waitUntil':_0x221a05(0x1c1),'timeout':0x7530}),await _0x2883ab['evaluate'](_0x4b331a=>{const _0x41d71f=_0x221a05;for(const _0x1d034e of _0x4b331a){window['localStorage'][_0x41d71f(0x1b2)](_0x1d034e[_0x41d71f(0x1fb)],_0x1d034e['value']);}},_0x33c908[_0x221a05(0x1f4)]),_0x446330+=_0x33c908[_0x221a05(0x1f4)][_0x221a05(0x250)],await _0x2883ab['close']();}if(_0x4d293f[_0x221a05(0x1a0)]){const _0x4a9f45=await _0x5afb8f[_0x221a05(0x251)]();await _0x4a9f45['goto'](_0x4d293f['baseUrl'],{'waitUntil':_0x10f403[_0x221a05(0x236)],'timeout':0x7530}),await _0x4a9f45[_0x221a05(0x1a9)]();}await ensureChromeProfileShape(_0x4d293f[_0x221a05(0x246)],_0x2a0a99);}finally{await _0x10f403['AeWjH'](closeNovaHydrationBrowser,_0x2f6329,_0x14a0d1);}const _0xfe01de=await inspectNovaProfileFiles({'userDataDir':_0x4d293f['userDataDir'],'browserProfilePath':_0x2a0a99});return{'browserProfilePath':_0x2a0a99,'cookieCount':_0x5d28f6['cookies']?.[_0x221a05(0x250)]??0x0,'promotedSessionCookieCount':_0x204c90,'originCount':_0x5d28f6[_0x221a05(0x1c7)]?.[_0x221a05(0x250)]??0x0,'localStorageEntryCount':_0x446330,'storageStateDiagnostics':_0x38c757,'profileBefore':_0xff2181,'profileAfter':_0xfe01de};}async function launchNovaHydrationBrowser(_0x42887c){const _0x39dba3=_0x1d53,_0x5e7069={'VkGeM':function(_0x5a1844,_0x34fed3,_0x5ca1fd){return _0x5a1844(_0x34fed3,_0x5ca1fd);},'FfVSG':function(_0x2ae2bd){return _0x2ae2bd();},'hNAgI':_0x39dba3(0x24c),'xffCn':_0x39dba3(0x22c),'cLoJw':_0x39dba3(0x1f6),'FQPjp':_0x39dba3(0x1ef),'uiMyl':'pipe'};await _0x5e7069[_0x39dba3(0x249)](ensureChromeProfileShape,_0x42887c['userDataDir'],_0x42887c[_0x39dba3(0x231)]);const _0x25d26c=_0x42887c['executablePath']??chromium[_0x39dba3(0x1c0)](),_0x520e31=await _0x5e7069[_0x39dba3(0x1ba)](getAvailablePort),_0x59f9c5=[_0x39dba3(0x1e8)+_0x520e31,_0x39dba3(0x1be)+_0x42887c[_0x39dba3(0x246)],_0x5e7069['hNAgI'],_0x5e7069['xffCn'],_0x5e7069[_0x39dba3(0x255)],_0x5e7069[_0x39dba3(0x1d2)]];_0x42887c['headless']&&_0x59f9c5[_0x39dba3(0x22d)]('--headless=new');_0x59f9c5['push'](..._0x42887c[_0x39dba3(0x1f2)]??[]);const _0x4aa1f3=spawn(_0x25d26c,_0x59f9c5,{'stdio':[_0x39dba3(0x244),_0x5e7069['uiMyl'],_0x39dba3(0x1d4)]});try{const _0x2bba3c=await waitForCdpEndpoint(_0x4aa1f3,_0x520e31),_0x40c506=await chromium['connectOverCDP'](_0x2bba3c);return{'browser':_0x40c506,'process':_0x4aa1f3};}catch(_0x3fea4d){await terminateNovaHydrationBrowser(_0x4aa1f3);throw _0x3fea4d;}}async function closeNovaHydrationBrowser(_0x3060f5,_0x41b319){const _0x3f838c=_0x1d53,_0x26ff68={'xPSdW':function(_0x2bdb61,_0x326b11){return _0x2bdb61(_0x326b11);},'KbbYx':function(_0x4dd910,_0x1a9e06,_0x417cfb){return _0x4dd910(_0x1a9e06,_0x417cfb);}};try{await _0x3060f5[_0x3f838c(0x1a9)]();}catch{await _0x26ff68[_0x3f838c(0x1dd)](terminateNovaHydrationBrowser,_0x41b319);return;}const _0x3cad3d=await _0x26ff68[_0x3f838c(0x22a)](waitForProcessExit,_0x41b319,0x1388);!_0x3cad3d&&await _0x26ff68['xPSdW'](terminateNovaHydrationBrowser,_0x41b319);}async function terminateNovaHydrationBrowser(_0x52ef99){const _0x1e86f8=_0x1d53,_0x6c131e={'NAguw':function(_0xdf8da8,_0x558566){return _0xdf8da8!==_0x558566;},'zPgyN':function(_0x57a3cb,_0x4627c5,_0x49080d){return _0x57a3cb(_0x4627c5,_0x49080d);},'xTHkP':function(_0x305275,_0x402d8a){return _0x305275===_0x402d8a;},'hqizS':_0x1e86f8(0x192)};if(_0x6c131e['NAguw'](_0x52ef99[_0x1e86f8(0x23f)],null))return;try{_0x52ef99['kill']('SIGTERM');}catch{}await _0x6c131e['zPgyN'](waitForProcessExit,_0x52ef99,0x7d0);if(_0x6c131e[_0x1e86f8(0x1fa)](_0x52ef99['exitCode'],null)){try{_0x52ef99[_0x1e86f8(0x229)](_0x6c131e[_0x1e86f8(0x253)]);}catch{}await _0x6c131e[_0x1e86f8(0x195)](waitForProcessExit,_0x52ef99,0x7d0);}}async function waitForCdpEndpoint(_0x4c5b22,_0x5b3266){const _0x5ce5c7=_0x1d53,_0x6269f0={'jxjsH':function(_0x24308a,_0x5a5082){return _0x24308a<_0x5a5082;},'PChHw':function(_0x1a683f,_0x236681){return _0x1a683f(_0x236681);},'ttBnG':function(_0x3cd538,_0x10cdde){return _0x3cd538===_0x10cdde;},'DVFXP':_0x5ce5c7(0x21c)},_0x42274e=Date['now']();let _0x512648;while(_0x6269f0['jxjsH'](Date['now']()-_0x42274e,NOVA_PROFILE_HYDRATION_CDP_TIMEOUT_MS)){if(_0x4c5b22[_0x5ce5c7(0x23f)]!==null)throw new Error('Hydration\x20browser\x20exited\x20before\x20CDP\x20became\x20available\x20with\x20code\x20'+_0x4c5b22['exitCode']);try{const _0x2d3ec8=await _0x6269f0['PChHw'](fetch,_0x5ce5c7(0x1de)+_0x5b3266+'/json/version');if(_0x2d3ec8['ok']){const _0x18f93f=await _0x2d3ec8['json']();if(_0x6269f0['ttBnG'](typeof _0x18f93f[_0x5ce5c7(0x19a)],_0x6269f0[_0x5ce5c7(0x212)]))return _0x18f93f[_0x5ce5c7(0x19a)];}}catch(_0x293302){_0x512648=_0x293302;}await _0x6269f0[_0x5ce5c7(0x1b6)](delay,0x64);}const _0x57404f=_0x512648 instanceof Error?':\x20'+_0x512648['message']:'';throw new Error(_0x5ce5c7(0x1f5)+_0x57404f);}async function getAvailablePort(){const _0x206680=_0x1d53,_0x140848={'eakuK':_0x206680(0x1ac),'vljYk':function(_0x427591){return _0x427591();}};return new Promise((_0xbd47b6,_0x5475f3)=>{const _0x1589a5=_0x206680,_0x730df4=_0x140848[_0x1589a5(0x1af)](createServer);_0x730df4[_0x1589a5(0x1ea)](_0x1589a5(0x1df),_0x5475f3),_0x730df4['listen'](0x0,'127.0.0.1',()=>{const _0x54df27=_0x1589a5,_0x5cd4eb={'mRELC':function(_0x3e8ac6,_0x2192e8){return _0x3e8ac6===_0x2192e8;},'kXZdi':_0x140848[_0x54df27(0x19d)],'hiKrJ':function(_0x1ba944,_0x5a2f9a){return _0x1ba944(_0x5a2f9a);},'DiDmG':_0x54df27(0x1a1)},_0x538d55=_0x730df4[_0x54df27(0x1ae)]();_0x730df4[_0x54df27(0x1a9)](_0x24c949=>{const _0x455335=_0x54df27;if(_0x24c949){_0x5475f3(_0x24c949);return;}if(_0x5cd4eb['mRELC'](typeof _0x538d55,_0x5cd4eb[_0x455335(0x222)])&&_0x538d55?.['port']){_0xbd47b6(_0x538d55[_0x455335(0x1b0)]);return;}_0x5cd4eb[_0x455335(0x220)](_0x5475f3,new Error(_0x5cd4eb['DiDmG']));});});});}async function waitForProcessExit(_0xc2b3c2,_0x3ed3bf){const _0x26dfd9={'Ptatg':function(_0x2e1943){return _0x2e1943();},'ZGmtz':function(_0x19781e,_0x3bdc69){return _0x19781e(_0x3bdc69);},'Hshmx':'exit','iqJmj':function(_0x290e80,_0x2e36ff,_0x120fb3){return _0x290e80(_0x2e36ff,_0x120fb3);},'oIyze':function(_0x10a4eb,_0x1de953){return _0x10a4eb!==_0x1de953;}};if(_0x26dfd9['oIyze'](_0xc2b3c2['exitCode'],null))return!![];return new Promise(_0x334cff=>{const _0x498730=_0x1d53,_0x24cf1d={'FHoyY':function(_0x3ac2ad){return _0x3ac2ad();},'wiBhX':function(_0x7c97ed,_0x396cfd){const _0x4a5c65=_0x1d53;return _0x26dfd9[_0x4a5c65(0x227)](_0x7c97ed,_0x396cfd);}},_0x2bbe13=_0x26dfd9[_0x498730(0x191)](setTimeout,()=>{const _0x1e4ed6=_0x498730;_0x26dfd9['Ptatg'](_0x3b2392),_0x26dfd9[_0x1e4ed6(0x227)](_0x334cff,![]);},_0x3ed3bf),_0x3a99f0=()=>{_0x24cf1d['FHoyY'](_0x3b2392),_0x24cf1d['wiBhX'](_0x334cff,!![]);},_0x3b2392=()=>{const _0x4606b2=_0x498730;_0x26dfd9[_0x4606b2(0x227)](clearTimeout,_0x2bbe13),_0xc2b3c2[_0x4606b2(0x228)](_0x26dfd9['Hshmx'],_0x3a99f0);};_0xc2b3c2[_0x498730(0x1ea)](_0x26dfd9[_0x498730(0x219)],_0x3a99f0);});}async function delay(_0xf4192c){await new Promise(_0x24d830=>setTimeout(_0x24d830,_0xf4192c));}async function ensureChromeProfileShape(_0x3c12c6,_0x5ecf5d){const _0x581dce=_0x1d53,_0xfb66e9={'bgFPw':function(_0x518539,_0x1c7477,_0x494f7a){return _0x518539(_0x1c7477,_0x494f7a);},'dFcyc':'Local\x20State','XjkQU':function(_0x8b079c,_0x55bfdc){return _0x8b079c(_0x55bfdc);}};await _0xfb66e9['bgFPw'](mkdir,_0x5ecf5d,{'recursive':!![]}),await ensureJsonFile(_0xfb66e9[_0x581dce(0x19e)](join,_0x3c12c6,_0xfb66e9['dFcyc'])),await _0xfb66e9[_0x581dce(0x1a7)](ensureJsonFile,join(_0x5ecf5d,'Preferences'));}async function ensureJsonFile(_0x1d91f3){const _0x8ea3b7=_0x1d53,_0x47fe85={'UYoAc':function(_0x1a409c,_0x5bef2b){return _0x1a409c(_0x5bef2b);}};try{await _0x47fe85['UYoAc'](access,_0x1d91f3);}catch{await writeFile(_0x1d91f3,'{}',_0x8ea3b7(0x1b9));}}export function previewNovaActCliCommand(_0x405b02){const _0x2ddd1d={'PhHrw':function(_0x3e0908,_0xc37b12){return _0x3e0908(_0xc37b12);}};return _0x2ddd1d['PhHrw'](truncatePreview,_0x405b02);}
1
+ const _0x1d616a=_0x3ba5;(function(_0x517f11,_0x5decd5){const _0x4d55a1=_0x3ba5,_0x54170c=_0x517f11();while(!![]){try{const _0x1fad7c=-parseInt(_0x4d55a1(0x170))/0x1+parseInt(_0x4d55a1(0x19c))/0x2+parseInt(_0x4d55a1(0x184))/0x3*(parseInt(_0x4d55a1(0x1b4))/0x4)+-parseInt(_0x4d55a1(0x168))/0x5+parseInt(_0x4d55a1(0x1ea))/0x6*(-parseInt(_0x4d55a1(0x1f7))/0x7)+parseInt(_0x4d55a1(0x162))/0x8+parseInt(_0x4d55a1(0x207))/0x9;if(_0x1fad7c===_0x5decd5)break;else _0x54170c['push'](_0x54170c['shift']());}catch(_0x7331ea){_0x54170c['push'](_0x54170c['shift']());}}}(_0x7ce8,0x48605));import{spawn}from'child_process';import{createHash}from'crypto';function _0x7ce8(){const _0x3d0051=['digest','all','PATH','message','DdyhC','nNcBH','ZGpyF','UWfrb','null','object','nova-act-browser','webSocketDebuggerUrl','stderr','commandArgs','XsFHV','OtGGU','rESft','subcommand','bpMXO','hex','For\x20AWS\x20SSO,\x20run:\x20aws\x20sso\x20login\x20--profile\x20','fKiZr','2242208etDMMH','browserProfilePath','sort','localStorage','kill','yOcHp','213030TNbDDP','parse','lXuKv','mtimeMs','#!/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','slice','isFile','\x20signal=','342472DzRVSN','userDataDir','size','epOAY','pipe','HqoQF','KkxfN','UV_TOOL_BIN_DIR','bgjdw','VZhhe','\x20browser','browser','Zrzgr','storageStatePath','NqvOj','GaNPc','--executable-path','trim','NAVFt','executablePath','3raCLjC','update','goto','once','--version','lGIMY','exitCode','dhgfz','ignore','kYpDh','code','checks','data','now','close','baseUrl','\x0afi\x0a\x0aexec\x20','\x0astderr:\x20','VzzoL','\x0astdout:\x20','logsDirectory','rvdYa','WymIA','\x20browser\x20\x22$@\x22\x20','921916YKghXk','Installed\x20','get','OSqlm','lGDJE','ujPyp','nvncf','mjgFw','DmMRu','stdout:\x20','listen','tRCcN','zeUDC','AzZBq','`,\x20and\x20`uv`\x20is\x20not\x20available\x20to\x20install\x20it.\x0aInstall\x20uv,\x20or\x20run:\x20uv\x20tool\x20install\x20\x22','has','RTqvf','RZOLu','timeoutMs','toString','value','JKtjd','Failed\x20to\x20allocate\x20hydration\x20browser\x20port','TDlLN','362324Zgacqo','install','entries','SIGTERM','TDQij','MASGQ','unknown','origins','KyVSD','DWLWK','add','LhTbt','newPage','/usr/local/bin','SIGKILL','WIIhN','/json/version','KyBNX','push','Local\x20State','timedOut','tool','--headless','expires','cookies','floor','XPpFZ','filter','xkSDB','gNlaa','LTUBf','EreGV','rVfqw','mAaWn','error','YiMbG','string','json','Local\x20Storage','Nova\x20profile\x20hydration\x20browser\x20did\x20not\x20expose\x20a\x20context','Hydration\x20browser\x20exited\x20before\x20CDP\x20became\x20available\x20with\x20code\x20','uToFG','cGGEw','RIaQm','qUoFF','Configure\x20Nova\x20Act\x20with\x20NOVA_ACT_API_KEY,\x20run\x20act\x20browser\x20setup\x20--api-key\x20<key>,\x20or\x20configure\x20AWS\x20credentials.','command','--user-data-dir=','cdpEndpoint','secure','join','launchArgs','HroFE','number','472734lShLHT','sha256','FLmnx','nova-act[cli]','LsFPI','Network','find','GAPnk','lVjWk','fix','stdout','connectOverCDP','utf-8','35RTyLTd','env','logDir','some','UszNj','off','domcontentloaded','isDirectory','xwDyB','nova-act-cli\x20transport\x20requires\x20the\x20Nova\x20Act\x20CLI.\x20Ranger\x20could\x20not\x20find\x20`','http://127.0.0.1:','...','nEeZR','TQMvC','Preferences','logs_dir','2192949UgJjHv','act\x20browser\x20doctor\x20--json\x20timed\x20out','length','exited\x20with\x20code=','execute','eAKXd','map','exit','signal','origin','PGOkv','export'];_0x7ce8=function(){return _0x3d0051;};return _0x7ce8();}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='act';export const NOVA_ACT_CLI_UV_PACKAGE=_0x1d616a(0x1ed);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(_0x90c832){const _0x19a09e=_0x1d616a,_0x63595b={'LTUBf':function(_0x3f1330,_0x480a9f){return _0x3f1330(_0x480a9f);}},_0x24ec74=_0x63595b[_0x19a09e(0x1d2)](createHash,_0x19a09e(0x1eb))['update'](_0x90c832)[_0x19a09e(0x213)](_0x19a09e(0x15f))[_0x19a09e(0x16d)](0x0,0xc);return'rg-'+_0x24ec74;}export async function inspectNovaStorageStateFile(_0xe97600){const _0x59b410=_0x1d616a,_0x34b170={'nNcBH':function(_0x4e9443,_0x224dff){return _0x4e9443(_0x224dff);},'XsFHV':function(_0xc766dd,_0x4d104d,_0x212bb4){return _0xc766dd(_0x4d104d,_0x212bb4);},'OtGGU':_0x59b410(0x15f),'AxGwr':function(_0x222fca,_0x30cf1e){return _0x222fca instanceof _0x30cf1e;},'bgjdw':function(_0xf2a393,_0x4064d5){return _0xf2a393(_0x4064d5);}};try{const [_0x54c12a,_0x58fe80]=await Promise[_0x59b410(0x214)]([_0x34b170[_0x59b410(0x151)](stat,_0xe97600),_0x34b170[_0x59b410(0x15a)](readFile,_0xe97600,'utf-8')]),_0x4f4dab={'path':_0xe97600,'exists':!![],'byteLength':Buffer['byteLength'](_0x58fe80),'sha256':_0x34b170[_0x59b410(0x151)](createHash,_0x59b410(0x1eb))[_0x59b410(0x185)](_0x58fe80)[_0x59b410(0x213)](_0x34b170[_0x59b410(0x15b)])};try{const _0x1df32d=JSON[_0x59b410(0x169)](_0x58fe80),_0x45140d=_0x1df32d['cookies']??[],_0x8128af=Math[_0x59b410(0x1cd)](Date[_0x59b410(0x191)]()/0x3e8),_0x3a626a=new Map();for(const _0x46ce87 of _0x45140d){const _0x12032b=_0x3a626a[_0x59b410(0x19e)](_0x46ce87['domain'])??[];_0x12032b[_0x59b410(0x1c6)](_0x46ce87['name']),_0x3a626a['set'](_0x46ce87['domain'],_0x12032b);}return{..._0x4f4dab,'byteLength':_0x54c12a[_0x59b410(0x172)],'cookieCount':_0x45140d[_0x59b410(0x209)],'cookieDomains':[..._0x3a626a[_0x59b410(0x1b6)]()]['sort'](([_0x21b019],[_0x3958b2])=>_0x21b019['localeCompare'](_0x3958b2))[_0x59b410(0x20d)](([_0x14eae9,_0x3a9237])=>({'domain':_0x14eae9,'count':_0x3a9237[_0x59b410(0x209)],'names':_0x3a9237[_0x59b410(0x164)]()['slice'](0x0,0x19)})),'httpOnlyCookieCount':_0x45140d['filter'](_0x45293e=>_0x45293e['httpOnly'])['length'],'secureCookieCount':_0x45140d[_0x59b410(0x1cf)](_0x4f1e47=>_0x4f1e47[_0x59b410(0x1e5)])['length'],'sessionCookieCount':_0x45140d['filter'](_0x165d21=>_0x165d21[_0x59b410(0x1cb)]===-0x1)[_0x59b410(0x209)],'expiredCookieCount':_0x45140d[_0x59b410(0x1cf)](_0x769468=>typeof _0x769468[_0x59b410(0x1cb)]===_0x59b410(0x1e9)&&_0x769468['expires']>0x0&&_0x769468[_0x59b410(0x1cb)]<_0x8128af)['length'],'originCount':_0x1df32d['origins']?.[_0x59b410(0x209)]??0x0,'origins':(_0x1df32d['origins']??[])['map'](_0x4fba2b=>({'origin':_0x4fba2b[_0x59b410(0x210)],'localStorageCount':_0x4fba2b[_0x59b410(0x165)]?.['length']??0x0,'localStorageKeys':_0x4fba2b[_0x59b410(0x165)]?.['map'](_0x4b31a6=>_0x4b31a6['name'])[_0x59b410(0x164)]()['slice'](0x0,0x19)??[]}))};}catch(_0x5aa2df){return{..._0x4f4dab,'byteLength':_0x54c12a[_0x59b410(0x172)],'parseError':_0x5aa2df instanceof Error?_0x5aa2df['message']:_0x34b170['nNcBH'](String,_0x5aa2df)};}}catch(_0x21a604){return{'path':_0xe97600,'exists':![],'readError':_0x34b170['AxGwr'](_0x21a604,Error)?_0x21a604[_0x59b410(0x216)]:_0x34b170[_0x59b410(0x178)](String,_0x21a604)};}}export async function inspectNovaProfileFiles(_0x28df0b){const _0x54c833=_0x1d616a,_0x389f47={'vbqqE':function(_0x9fc90,_0x2caad9,_0x25da03){return _0x9fc90(_0x2caad9,_0x25da03);},'eAKXd':function(_0x5318f5,_0x12cb2c,_0x278c20){return _0x5318f5(_0x12cb2c,_0x278c20);},'fKiZr':function(_0x4eb00e,_0x3ef383,_0xf1b08e){return _0x4eb00e(_0x3ef383,_0xf1b08e);},'TDQij':'Cookies','GvjoT':function(_0x40cfe1,_0x204f0d,_0x42b605){return _0x40cfe1(_0x204f0d,_0x42b605);},'JjPGM':_0x54c833(0x1da),'GWJVX':'leveldb','XPpFZ':function(_0x515879,_0x505c07){return _0x515879(_0x505c07);},'mnJey':function(_0x130d53,_0x18b1cc){return _0x130d53(_0x18b1cc);},'BpLVR':function(_0x2d9280,_0x14c322){return _0x2d9280(_0x14c322);},'DmMRu':function(_0xcb8a6a,_0x46663){return _0xcb8a6a(_0x46663);}},_0x1bf871=_0x389f47['vbqqE'](join,_0x28df0b['userDataDir'],_0x54c833(0x1c7)),_0x11ba45=_0x389f47[_0x54c833(0x20c)](join,_0x28df0b[_0x54c833(0x163)],_0x54c833(0x205)),_0x27b2d2=_0x389f47[_0x54c833(0x161)](join,_0x28df0b[_0x54c833(0x163)],'Cookies'),_0x3dbcc1=join(_0x28df0b[_0x54c833(0x163)],_0x54c833(0x1ef),_0x389f47[_0x54c833(0x1b8)]),_0x3f435f=_0x389f47['GvjoT'](join,_0x28df0b['browserProfilePath'],_0x389f47['JjPGM']),_0x209e14=_0x389f47[_0x54c833(0x20c)](join,_0x3f435f,_0x389f47['GWJVX']),[_0x31d677,_0x16b0ef,_0x3e715a,_0x6f1165,_0x36840e,_0x2921f9,_0x412560,_0x2ca13c,_0x331f51,_0x15ba39,_0x37c8cb]=await Promise['all']([inspectPath(_0x28df0b[_0x54c833(0x171)]),_0x389f47[_0x54c833(0x1ce)](inspectPath,_0x28df0b['browserProfilePath']),inspectPath(_0x1bf871),inspectPath(_0x11ba45),_0x389f47['mnJey'](inspectPath,_0x27b2d2),inspectPath(_0x3dbcc1),inspectPath(_0x3f435f),inspectPath(_0x209e14),listDir(_0x28df0b['userDataDir']),_0x389f47['BpLVR'](listDir,_0x28df0b[_0x54c833(0x163)]),_0x389f47[_0x54c833(0x1a4)](listDir,_0x209e14)]);return{'userDataDir':_0x28df0b[_0x54c833(0x171)],'browserProfilePath':_0x28df0b['browserProfilePath'],'rootEntries':_0x331f51,'defaultEntries':_0x15ba39,'localStorageEntries':_0x37c8cb,'paths':{'userDataDir':_0x31d677,'browserProfilePath':_0x16b0ef,'localState':_0x3e715a,'preferences':_0x6f1165,'cookies':_0x36840e,'networkCookies':_0x2921f9,'localStorage':_0x412560,'levelDb':_0x2ca13c}};}async function inspectPath(_0x404eb6){const _0x483892=_0x1d616a,_0xe299a8={'xwDyB':function(_0x4ba381,_0x22b394){return _0x4ba381(_0x22b394);}};try{const _0x2f5dec=await _0xe299a8[_0x483892(0x1ff)](stat,_0x404eb6);return{'path':_0x404eb6,'exists':!![],'isDirectory':_0x2f5dec[_0x483892(0x1fe)](),'byteLength':_0x2f5dec[_0x483892(0x16e)]()?_0x2f5dec[_0x483892(0x172)]:undefined,'mtimeMs':_0x2f5dec[_0x483892(0x16b)]};}catch(_0x2ba8d7){return{'path':_0x404eb6,'exists':![],'error':_0x2ba8d7 instanceof Error?_0x2ba8d7['message']:String(_0x2ba8d7)};}}async function listDir(_0x3538fe){const _0x12e5a1={'JpfSP':function(_0x36f8c9,_0x403a61){return _0x36f8c9(_0x403a61);}};try{return(await _0x12e5a1['JpfSP'](readdir,_0x3538fe))['sort']()['slice'](0x0,0x32);}catch{return undefined;}}function truncatePreview(_0x329cc5,_0x14a644=NOVA_ACT_CLI_PREVIEW_LIMIT){const _0x21121b=_0x1d616a,_0x4847b3={'MASGQ':function(_0x4360d8,_0x46504c){return _0x4360d8+_0x46504c;},'uToFG':_0x21121b(0x202)};return _0x329cc5['length']>_0x14a644?_0x4847b3[_0x21121b(0x1b9)](_0x329cc5[_0x21121b(0x16d)](0x0,_0x14a644),_0x4847b3[_0x21121b(0x1dd)]):_0x329cc5;}function truncateOutput(_0x28e18a,_0x504899=0x7d0){const _0x23b962=_0x1d616a,_0x37a1da={'ujPyp':function(_0xb7652c,_0x1838e9){return _0xb7652c>_0x1838e9;},'dJESs':_0x23b962(0x202)};return _0x37a1da[_0x23b962(0x1a1)](_0x28e18a[_0x23b962(0x209)],_0x504899)?_0x28e18a['slice'](0x0,_0x504899)+_0x37a1da['dJESs']:_0x28e18a;}function getNovaActCliBinDirs(_0x2a3b0e){const _0x5f231d=_0x1d616a,_0xbc4acf={'rvdYa':function(_0x14eb4c){return _0x14eb4c();},'bpMXO':'/opt/homebrew/bin','HjCQO':_0x5f231d(0x1c1)};return[_0x2a3b0e[_0x5f231d(0x177)],_0xbc4acf[_0x5f231d(0x199)](homedir)+'/.local/bin',_0xbc4acf[_0x5f231d(0x15e)],_0xbc4acf['HjCQO']]['filter'](_0x105bd4=>Boolean(_0x105bd4));}function buildPathWithNovaActCliBins(_0x366970){const _0x4ef0a5=_0x1d616a,_0x4e5aad=new Set(),_0x1800e7=[...getNovaActCliBinDirs(_0x366970),...(_0x366970['PATH']??'')['split'](delimiter)][_0x4ef0a5(0x1cf)](_0x19889b=>{const _0x1fd4e0=_0x4ef0a5;if(!_0x19889b||_0x4e5aad[_0x1fd4e0(0x1ab)](_0x19889b))return![];return _0x4e5aad[_0x1fd4e0(0x1be)](_0x19889b),!![];});return _0x1800e7['join'](delimiter);}export function applyNovaActCliPath(_0x1bf5d6){_0x1bf5d6['PATH']=buildPathWithNovaActCliBins(_0x1bf5d6);}function withNovaActCliPath(_0x3af603){const _0x4182b8=_0x1d616a,_0x173552={'xkSDB':function(_0x4010e4,_0x179672){return _0x4010e4(_0x179672);}};return{..._0x3af603,'PATH':_0x173552[_0x4182b8(0x1d0)](buildPathWithNovaActCliBins,_0x3af603)};}function runBootstrapCommand(_0x4ab441){const _0x40c43e={'PGOkv':'SIGKILL','EqqhU':function(_0x9159d1,_0x3fc684){return _0x9159d1??_0x3fc684;},'nvncf':'null','UWfrb':function(_0x8b96f3,_0xa3b005){return _0x8b96f3??_0xa3b005;},'FLmnx':function(_0x16e61a,_0x4e0cc8){return _0x16e61a(_0x4e0cc8);},'rUAWY':'error'},{command:_0xe11144,args:_0x43bc74,env:_0x50b988,timeoutMs:timeoutMs=NOVA_ACT_BOOTSTRAP_TIMEOUT_MS}=_0x4ab441;return new Promise((_0x587319,_0x369372)=>{const _0x40af38=_0x3ba5,_0x3b21ee={'FdEfX':function(_0x529fd3,_0x1ad6ae){return _0x529fd3===_0x1ad6ae;},'ftjwI':function(_0x4487b9,_0x387690){return _0x4487b9(_0x387690);},'KkxfN':function(_0x1f3fa3,_0x4af41f){return _0x40c43e['EqqhU'](_0x1f3fa3,_0x4af41f);},'rESft':_0x40c43e[_0x40af38(0x1a2)],'HroFE':function(_0x1dc585,_0x63d548){const _0xfd90fb=_0x40af38;return _0x40c43e[_0xfd90fb(0x153)](_0x1dc585,_0x63d548);},'lZmMl':function(_0xed3994,_0x464c4e){const _0x569d72=_0x40af38;return _0x40c43e[_0x569d72(0x1ec)](_0xed3994,_0x464c4e);}},_0x34a7ef=spawn(_0xe11144,_0x43bc74,{'env':_0x50b988,'stdio':[_0x40af38(0x18c),_0x40af38(0x174),'pipe']});let _0x52b8ff='',_0x108c11='',_0x50eb09=![];const _0x344fd9=setTimeout(()=>{const _0x92497f=_0x40af38,_0x49edfe={'DWLWK':_0x40c43e[_0x92497f(0x211)]};_0x50eb09=!![],_0x34a7ef['kill'](_0x92497f(0x1b7)),setTimeout(()=>{const _0x56b4b7=_0x92497f;try{_0x34a7ef[_0x56b4b7(0x166)](_0x49edfe[_0x56b4b7(0x1bd)]);}catch{}},0x3e8);},timeoutMs);_0x34a7ef['stdout']?.['on'](_0x40af38(0x190),_0x36620c=>{const _0x28442e=_0x40af38;_0x52b8ff+=_0x36620c[_0x28442e(0x1af)]();}),_0x34a7ef['stderr']?.['on']('data',_0x329246=>{const _0x1481da=_0x40af38;_0x108c11+=_0x329246[_0x1481da(0x1af)]();}),_0x34a7ef['on'](_0x40c43e['rUAWY'],_0x1d9596=>{clearTimeout(_0x344fd9),_0x369372(_0x1d9596);}),_0x34a7ef['on'](_0x40af38(0x192),(_0x245233,_0x3ca335)=>{const _0x5e198c=_0x40af38;clearTimeout(_0x344fd9);if(_0x3b21ee['FdEfX'](_0x245233,0x0)){_0x3b21ee['ftjwI'](_0x587319,{'stdout':_0x52b8ff,'stderr':_0x108c11});return;}const _0x11c90e=_0x50eb09?'timed\x20out\x20after\x20'+timeoutMs+'ms':'exited\x20with\x20code='+_0x3b21ee[_0x5e198c(0x176)](_0x245233,_0x3b21ee[_0x5e198c(0x15c)])+_0x5e198c(0x16f)+_0x3b21ee[_0x5e198c(0x1e8)](_0x3ca335,_0x3b21ee[_0x5e198c(0x15c)]);_0x369372(new Error(_0xe11144+'\x20'+_0x43bc74[_0x5e198c(0x1e6)]('\x20')+'\x20'+_0x11c90e+_0x5e198c(0x197)+_0x3b21ee['ftjwI'](truncateOutput,_0x52b8ff)+'\x0astderr:\x20'+_0x3b21ee['lZmMl'](truncateOutput,_0x108c11)));});});}function runCommandAllowFailure(_0x37cb04){const _0x5412d5=_0x1d616a,_0x25f3f9={'LhTbt':'SIGTERM','TCVlu':function(_0x2116d1,_0x39a494){return _0x2116d1(_0x39a494);},'ZGpyF':function(_0x4a9c2b,_0x4d5cb2,_0x38cde5,_0x1542a2){return _0x4a9c2b(_0x4d5cb2,_0x38cde5,_0x1542a2);},'CwfmI':'ignore','lGDJE':_0x5412d5(0x174),'wlnjw':'data','GrzhD':_0x5412d5(0x1d6)},{command:_0x51ac6f,args:_0xb43d1f,env:_0x9782c4,timeoutMs:_0x82002a}=_0x37cb04;return new Promise((_0x1fd09d,_0x28be41)=>{const _0x370064=_0x5412d5,_0x3fadf0={'VzzoL':function(_0x30f2e7,_0x2e7278){return _0x25f3f9['TCVlu'](_0x30f2e7,_0x2e7278);},'nEeZR':function(_0x156713,_0x30afa4){return _0x156713(_0x30afa4);}},_0x4e90d5=_0x25f3f9[_0x370064(0x152)](spawn,_0x51ac6f,_0xb43d1f,{'env':_0x9782c4,'stdio':[_0x25f3f9['CwfmI'],_0x25f3f9[_0x370064(0x1a0)],_0x370064(0x174)]});let _0x533a4b='',_0x873a13='',_0x1c2fa2=![];const _0x23b0e2=setTimeout(()=>{const _0x4e00ca=_0x370064,_0x2abf9f={'RIaQm':_0x4e00ca(0x1c2)};_0x1c2fa2=!![],_0x4e90d5[_0x4e00ca(0x166)](_0x25f3f9[_0x4e00ca(0x1bf)]),setTimeout(()=>{const _0x110078=_0x4e00ca;try{_0x4e90d5[_0x110078(0x166)](_0x2abf9f[_0x110078(0x1df)]);}catch{}},0x3e8);},_0x82002a);_0x4e90d5['stdout']?.['on']('data',_0x2a1b12=>{const _0x4ea4f7=_0x370064;_0x533a4b+=_0x2a1b12[_0x4ea4f7(0x1af)]();}),_0x4e90d5[_0x370064(0x158)]?.['on'](_0x25f3f9['wlnjw'],_0x4f4b74=>{_0x873a13+=_0x4f4b74['toString']();}),_0x4e90d5['on'](_0x25f3f9['GrzhD'],_0x3f9eda=>{const _0x32cda1=_0x370064;_0x3fadf0[_0x32cda1(0x196)](clearTimeout,_0x23b0e2),_0x28be41(_0x3f9eda);}),_0x4e90d5['on']('close',(_0x1df125,_0x45d607)=>{const _0x467b53=_0x370064;clearTimeout(_0x23b0e2),_0x3fadf0[_0x467b53(0x203)](_0x1fd09d,{'code':_0x1df125,'signal':_0x45d607,'stdout':_0x533a4b,'stderr':_0x873a13,'timedOut':_0x1c2fa2});});});}async function resolveActPath(_0x4b4949){const _0x745d26=_0x1d616a,_0x4ca721={'yOcHp':function(_0x4ecb2d,_0x35a303){return _0x4ecb2d(_0x35a303);}},_0x34ee6d=_0x4ca721[_0x745d26(0x167)](isAbsolute,NOVA_ACT_CLI_BINARY)?[NOVA_ACT_CLI_BINARY]:(_0x4b4949[_0x745d26(0x215)]??'')['split'](delimiter)[_0x745d26(0x1cf)](Boolean)['map'](_0x17bc30=>join(_0x17bc30,NOVA_ACT_CLI_BINARY));for(const _0x2260f3 of _0x34ee6d){try{return await _0x4ca721['yOcHp'](access,_0x2260f3),_0x2260f3;}catch{}}return null;}async function checkNovaActCli(_0xb841cc){const _0x1c6a2c=_0x1d616a,_0x57a2cd={'YiMbG':'--help'};try{return await runBootstrapCommand({'command':NOVA_ACT_CLI_BINARY,'args':['browser',_0x57a2cd[_0x1c6a2c(0x1d7)]],'env':_0xb841cc,'timeoutMs':0x7530}),await resolveActPath(_0xb841cc)??NOVA_ACT_CLI_BINARY;}catch{return null;}}export async function ensureNovaActCliInstalled(_0x5b21ed={}){const _0x296315=_0x1d616a,_0x70ffc5={'UszNj':function(_0x119852,_0x1e5172){return _0x119852(_0x1e5172);},'KyBNX':function(_0x46505b,_0x29eecc){return _0x46505b(_0x29eecc);},'rQwyp':function(_0x340bde,_0x5ad2cb){return _0x340bde instanceof _0x5ad2cb;},'umBvF':function(_0x6e9470,_0x892696){return _0x6e9470(_0x892696);},'gEAdA':_0x296315(0x1c9),'WymIA':_0x296315(0x1b5),'HqoQF':function(_0x5127e9,_0x35a881){return _0x5127e9(_0x35a881);}},_0x2d33e7=_0x70ffc5['UszNj'](withNovaActCliPath,_0x5b21ed['env']??process[_0x296315(0x1f8)]),_0x5b2feb=await checkNovaActCli(_0x2d33e7);if(_0x5b2feb)return{'installed':![],'actPath':_0x5b2feb,'uvPackage':NOVA_ACT_CLI_UV_PACKAGE,'stdout':'','stderr':''};try{await _0x70ffc5[_0x296315(0x1c5)](runBootstrapCommand,{'command':'uv','args':[_0x296315(0x188)],'env':_0x2d33e7,'timeoutMs':0x7530});}catch(_0x1ec785){throw new Error(_0x296315(0x200)+NOVA_ACT_CLI_BINARY+_0x296315(0x1aa)+NOVA_ACT_CLI_UV_PACKAGE+'\x22\x0a'+(_0x70ffc5['rQwyp'](_0x1ec785,Error)?_0x1ec785['message']:String(_0x1ec785)));}const _0x41f97d=await _0x70ffc5['umBvF'](runBootstrapCommand,{'command':'uv','args':[_0x70ffc5['gEAdA'],_0x70ffc5[_0x296315(0x19a)],NOVA_ACT_CLI_UV_PACKAGE],'env':_0x2d33e7,'timeoutMs':_0x5b21ed['timeoutMs']??NOVA_ACT_BOOTSTRAP_TIMEOUT_MS}),_0x3e895f=await _0x70ffc5[_0x296315(0x175)](checkNovaActCli,_0x2d33e7);if(!_0x3e895f)throw new Error(_0x296315(0x19d)+NOVA_ACT_CLI_UV_PACKAGE+',\x20but\x20`'+NOVA_ACT_CLI_BINARY+'\x20browser\x20--help`\x20is\x20still\x20unavailable.\x20Ensure\x20'+_0x70ffc5[_0x296315(0x1fb)](getNovaActCliBinDirs,_0x2d33e7)[_0x296315(0x1e6)](',\x20')+'\x20is\x20on\x20PATH.\x0astdout:\x20'+truncateOutput(_0x41f97d[_0x296315(0x1f4)])+'\x0astderr:\x20'+truncateOutput(_0x41f97d['stderr']));return{'installed':!![],'actPath':_0x3e895f,'uvPackage':NOVA_ACT_CLI_UV_PACKAGE,'stdout':_0x41f97d[_0x296315(0x1f4)],'stderr':_0x41f97d[_0x296315(0x158)]};}function parseNovaActDoctorOutput(_0x2a9e3d){const _0x51b540=_0x1d616a;try{return JSON[_0x51b540(0x169)](_0x2a9e3d);}catch{return null;}}function buildNovaActCliPreflightError(_0x7477e4){const _0x213243=_0x1d616a,_0x567534={'pRdMb':function(_0x3ba3ca,_0x4ce959){return _0x3ba3ca>_0x4ce959;},'tRCcN':_0x213243(0x154),'qUoFF':function(_0x543acc,_0x193161){return _0x543acc??_0x193161;},'cGGEw':function(_0x2332ba,_0x3bc628){return _0x2332ba(_0x3bc628);},'nxazX':'Nova\x20Act\x20CLI\x20preflight\x20failed,\x20so\x20Ranger\x20did\x20not\x20start\x20a\x20browser\x20session.','JyUMk':_0x213243(0x1e1)},{checks:_0x5ae985,stdout:_0x22073a,stderr:_0x2f0f96,env:_0x1ef493,code:_0xc8fd09,signal:_0x90b8f4,timedOut:_0x3b8ed7}=_0x7477e4,_0x2912cf=_0x5ae985['filter'](_0x7fbd40=>_0x7fbd40['status']==='fail'),_0x5b5f4a=_0x567534['pRdMb'](_0x2912cf['length'],0x0)?_0x2912cf[_0x213243(0x20d)](_0x8a48a0=>{const _0x210b73=_0x213243,_0x363a06=_0x8a48a0[_0x210b73(0x1f3)]?'\x20Fix:\x20'+_0x8a48a0[_0x210b73(0x1f3)]:'';return'-\x20'+_0x8a48a0['name']+':\x20'+_0x8a48a0[_0x210b73(0x216)]+'.'+_0x363a06;})['join']('\x0a'):[_0x3b8ed7?_0x213243(0x208):'act\x20browser\x20doctor\x20--json\x20exited\x20with\x20code='+(_0xc8fd09??_0x567534[_0x213243(0x1a7)])+'\x20signal='+_0x567534[_0x213243(0x1e0)](_0x90b8f4,_0x567534['tRCcN']),_0x22073a?_0x213243(0x1a5)+_0x567534[_0x213243(0x1de)](truncateOutput,_0x22073a):'',_0x2f0f96?'stderr:\x20'+truncateOutput(_0x2f0f96):''][_0x213243(0x1cf)](Boolean)[_0x213243(0x1e6)]('\x0a'),_0x479788=_0x1ef493['AWS_PROFILE']?.['trim'](),_0xdc14e3=_0x479788?_0x213243(0x160)+_0x479788:'For\x20AWS\x20SSO,\x20set\x20AWS_PROFILE\x20and\x20run:\x20aws\x20sso\x20login\x20--profile\x20<profile>';return new Error([_0x567534['nxazX'],_0x5b5f4a,_0x567534['JyUMk'],_0xdc14e3]['join']('\x0a'));}export async function preflightNovaActCli(_0x566c0b={}){const _0x49de05=_0x1d616a,_0x75ec37={'pmWMI':_0x49de05(0x17b)},_0x27f707=withNovaActCliPath(_0x566c0b[_0x49de05(0x1f8)]??process[_0x49de05(0x1f8)]),_0x2ea1a3=await runCommandAllowFailure({'command':NOVA_ACT_CLI_BINARY,'args':[_0x75ec37['pmWMI'],'doctor','--json'],'env':_0x27f707,'timeoutMs':_0x566c0b[_0x49de05(0x1ae)]??0x7530}),_0x289a9e=parseNovaActDoctorOutput(_0x2ea1a3['stdout']),_0xdae411=_0x289a9e?.['data']?.[_0x49de05(0x18f)]??[],_0x58b003=_0xdae411[_0x49de05(0x1fa)](_0x463baf=>_0x463baf['status']==='fail');if(_0x2ea1a3['code']!==0x0||_0x2ea1a3[_0x49de05(0x1c8)]||_0x58b003)throw buildNovaActCliPreflightError({'checks':_0xdae411,'stdout':_0x2ea1a3[_0x49de05(0x1f4)],'stderr':_0x2ea1a3['stderr'],'env':_0x27f707,'code':_0x2ea1a3[_0x49de05(0x18e)],'signal':_0x2ea1a3[_0x49de05(0x20f)],'timedOut':_0x2ea1a3['timedOut']});return{'checks':_0xdae411,'logDir':_0x289a9e?.['log_dir']??_0x289a9e?.[_0x49de05(0x1f9)]};}function getNovaActCliSubcommand(_0x31f270){const _0x94ff81=_0x1d616a,_0x77ea4a={'jpSmV':_0x94ff81(0x1ba),'GoVQA':function(_0x2d08ec,_0x3c07ac){return _0x2d08ec===_0x3c07ac;}},[_0x507cd1=_0x77ea4a['jpSmV'],_0x2fc22e]=_0x31f270;return _0x77ea4a['GoVQA'](_0x507cd1,'session')&&_0x2fc22e?_0x507cd1+'\x20'+_0x2fc22e:_0x507cd1;}function supportsBrowserSessionOptions(_0x593ec5){const _0x3a38b0=_0x1d616a,_0x326c86={'TDlLN':'export','OoXzU':function(_0x13061a,_0x8623e1){return _0x13061a===_0x8623e1;}};return!(_0x593ec5[0x0]==='session'&&(_0x593ec5[0x1]===_0x326c86[_0x3a38b0(0x1b3)]||_0x326c86['OoXzU'](_0x593ec5[0x1],_0x3a38b0(0x192))));}function buildSharedArgs(_0x4aac97,_0x4c21ac){const _0x5bb55c=_0x1d616a,_0x23eea6={'lVjWk':'--session-id','ZlayD':function(_0x24fc5,_0x34927b){return _0x24fc5(_0x34927b);},'AMBxt':'--cdp'},_0x526e51=[_0x23eea6[_0x5bb55c(0x1f2)],_0x4aac97['sessionId'],'--json'];if(_0x23eea6['ZlayD'](supportsBrowserSessionOptions,_0x4c21ac)){_0x526e51['push']('--quiet'),_0x526e51[_0x5bb55c(0x1c6)](_0x4aac97['headless']?_0x5bb55c(0x1ca):'--headed');_0x4aac97['browserProfilePath']&&_0x526e51[_0x5bb55c(0x1c6)]('--browser-profile-path',_0x4aac97[_0x5bb55c(0x163)]);_0x4aac97['executablePath']&&_0x526e51[_0x5bb55c(0x1c6)](_0x5bb55c(0x180),_0x4aac97['executablePath']);_0x4aac97[_0x5bb55c(0x1e4)]&&_0x526e51['push'](_0x23eea6['AMBxt'],_0x4aac97[_0x5bb55c(0x1e4)]);for(const _0x994c6c of _0x4aac97[_0x5bb55c(0x1e7)]??[]){_0x526e51['push']('--launch-arg='+_0x994c6c);}}return _0x526e51;}export function buildNovaActCliInvocation(_0x1734ee,_0x43bcbe){const _0x3c6ec3=_0x1d616a,_0x3eff16={'VZhhe':function(_0x4349af,_0x41e7f5){return _0x4349af(_0x41e7f5);}},_0x4ff03f=buildSharedArgs(_0x1734ee,_0x43bcbe),_0x50a2c8=[_0x3c6ec3(0x17b),..._0x43bcbe,..._0x4ff03f];return{'command':NOVA_ACT_CLI_BINARY,'args':_0x50a2c8,'shellCommand':[NOVA_ACT_CLI_BINARY,'browser',..._0x43bcbe[_0x3c6ec3(0x20d)](quoteShellArg),..._0x4ff03f[_0x3c6ec3(0x20d)](quoteShellArg)]['join']('\x20'),'subcommand':_0x3eff16[_0x3c6ec3(0x179)](getNovaActCliSubcommand,_0x43bcbe)};}export function buildNovaActCliCommandPrefix(){const _0x1e6046=_0x1d616a;return NOVA_ACT_CLI_BINARY+_0x1e6046(0x17a);}export function buildNovaActCliBrowserWrapperPath(_0x4c4501){const _0x400095=_0x1d616a,_0x31cca3={'LsFPI':function(_0x4d74a5,_0x31c5f4){return _0x4d74a5(_0x31c5f4);}};return join(_0x31cca3[_0x400095(0x1ee)](dirname,_0x4c4501['userDataDir']),_0x400095(0x156));}export async function writeNovaActCliBrowserWrapper(_0x2f9f95){const _0x3e74c8=_0x1d616a,_0x4fc159={'RZOLu':function(_0x287eb2,_0x28a12c){return _0x287eb2(_0x28a12c);},'EreGV':'session','xQuJP':_0x3e74c8(0x212),'YTcWU':function(_0x7397e7,_0x5476be,_0x4ebc3f){return _0x7397e7(_0x5476be,_0x4ebc3f);},'CyVGx':function(_0x30fa8c,_0x2b1222,_0x5a1d97,_0x1dfc48){return _0x30fa8c(_0x2b1222,_0x5a1d97,_0x1dfc48);},'HbeTE':'utf-8','VIulD':function(_0x52c6c9,_0x4cb1a7,_0x4c8851){return _0x52c6c9(_0x4cb1a7,_0x4c8851);}},_0x29bf29=_0x2f9f95['browserCommandPath']??_0x4fc159['RZOLu'](buildNovaActCliBrowserWrapperPath,_0x2f9f95),_0x5750d0=buildSharedArgs(_0x2f9f95,[_0x3e74c8(0x20b)])['map'](quoteShellArg)['join']('\x20'),_0x5620af=buildSharedArgs(_0x2f9f95,[_0x4fc159[_0x3e74c8(0x1d3)],_0x4fc159['xQuJP']])[_0x3e74c8(0x20d)](quoteShellArg)['join']('\x20');return await mkdir(dirname(_0x29bf29),{'recursive':!![]}),await _0x4fc159['YTcWU'](mkdir,_0x2f9f95['userDataDir'],{'recursive':!![]}),await _0x4fc159['CyVGx'](writeFile,_0x29bf29,_0x3e74c8(0x16c)+_0x4fc159[_0x3e74c8(0x1ad)](quoteShellArg,NOVA_ACT_CLI_BINARY)+_0x3e74c8(0x19b)+_0x5620af+_0x3e74c8(0x194)+quoteShellArg(NOVA_ACT_CLI_BINARY)+'\x20browser\x20\x22$@\x22\x20'+_0x5750d0+'\x0a',_0x4fc159['HbeTE']),await _0x4fc159['VIulD'](chmod,_0x29bf29,0x1ed),_0x29bf29;}function _0x3ba5(_0x10b8d7,_0x336c32){_0x10b8d7=_0x10b8d7-0x150;const _0x7ce8d4=_0x7ce8();let _0x3ba550=_0x7ce8d4[_0x10b8d7];return _0x3ba550;}export function buildNovaActCliSharedOptionsSuffix(_0x58e271,_0x400c90=[_0x1d616a(0x20b)]){const _0x158d09=_0x1d616a;return buildSharedArgs(_0x58e271,_0x400c90)[_0x158d09(0x20d)](quoteShellArg)['join']('\x20');}export async function runNovaActCliCommand(_0x1f998a){const _0x2f4317=_0x1d616a,_0x2944ab={'UQzAz':_0x2f4317(0x1b7),'DdyhC':function(_0x491728,_0x240cb5){return _0x491728(_0x240cb5);},'xasNl':_0x2f4317(0x154),'lGIMY':function(_0x126e61,_0x2e8702){return _0x126e61??_0x2e8702;},'kYpDh':function(_0x55c8c1,_0x31137f,_0x57daab,_0x10a43e){return _0x55c8c1(_0x31137f,_0x57daab,_0x10a43e);},'rxGDB':'ignore','KyVSD':'pipe','cgDeU':function(_0x22a8fe,_0x3f9f37,_0x42494f){return _0x22a8fe(_0x3f9f37,_0x42494f);},'NqvOj':_0x2f4317(0x190),'RTqvf':function(_0x4752b9,_0x22f77f,_0x46e7ce){return _0x4752b9(_0x22f77f,_0x46e7ce);}};await _0x2944ab[_0x2f4317(0x1ac)](mkdir,_0x1f998a[_0x2f4317(0x171)],{'recursive':!![]});const _0x545ce4=buildNovaActCliInvocation(_0x1f998a,_0x1f998a[_0x2f4317(0x159)]);return new Promise((_0x45d201,_0x5b233c)=>{const _0x4b1175=_0x2f4317,_0x484379={'YYvXq':function(_0x1758e4,_0x2fe283){return _0x1758e4(_0x2fe283);}},_0x370332=_0x2944ab[_0x4b1175(0x18d)](spawn,_0x545ce4[_0x4b1175(0x1e2)],_0x545ce4['args'],{'cwd':_0x1f998a['cwd'],'env':_0x1f998a['env'],'stdio':[_0x2944ab['rxGDB'],_0x2944ab['KyVSD'],_0x2944ab[_0x4b1175(0x1bc)]]});let _0x170e5d='',_0x286ca9='',_0xc4979b=![];const _0x2ce327=_0x1f998a['timeoutMs']&&_0x1f998a['timeoutMs']>0x0?_0x2944ab['cgDeU'](setTimeout,()=>{const _0x456900=_0x4b1175;_0xc4979b=!![],_0x370332[_0x456900(0x166)](_0x2944ab['UQzAz']),setTimeout(()=>{try{_0x370332['kill']('SIGKILL');}catch{}},0x3e8);},_0x1f998a[_0x4b1175(0x1ae)]):null;_0x370332['stdout']?.['on'](_0x2944ab['NqvOj'],_0x149505=>{_0x170e5d+=_0x149505['toString']();}),_0x370332['stderr']?.['on'](_0x2944ab[_0x4b1175(0x17e)],_0x2b02e2=>{_0x286ca9+=_0x2b02e2['toString']();}),_0x370332['on'](_0x4b1175(0x1d6),_0xf25e6b=>{if(_0x2ce327)_0x484379['YYvXq'](clearTimeout,_0x2ce327);_0x5b233c(_0xf25e6b);}),_0x370332['on']('close',(_0xf77643,_0x541e04)=>{const _0x58b65f=_0x4b1175;if(_0x2ce327)clearTimeout(_0x2ce327);if(_0xf77643===0x0){_0x2944ab[_0x58b65f(0x150)](_0x45d201,{'stdout':_0x170e5d,'stderr':_0x286ca9,'invocation':_0x545ce4});return;}const _0x26a1ec=_0xc4979b?'timed\x20out\x20after\x20'+_0x1f998a['timeoutMs']+'ms':_0x58b65f(0x20a)+(_0xf77643??_0x2944ab['xasNl'])+_0x58b65f(0x16f)+_0x2944ab[_0x58b65f(0x189)](_0x541e04,_0x58b65f(0x154));_0x2944ab[_0x58b65f(0x150)](_0x5b233c,new Error('nova-act-cli\x20'+_0x545ce4[_0x58b65f(0x15d)]+'\x20'+_0x26a1ec+_0x58b65f(0x197)+truncateOutput(_0x170e5d)+_0x58b65f(0x195)+truncateOutput(_0x286ca9)));});});}export function parseNovaActCliCommand(_0x570271){const _0x1a7715=_0x570271['match'](/(?:^|\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 _0x1a7715?.[0x1]??null;}export function extractNovaActLogDir(_0x1b5dc5){const _0x4588e7=_0x1d616a;try{const _0x259715=JSON['parse'](_0x1b5dc5),_0x246cb2=[_0x259715['logs_directory'],_0x259715[_0x4588e7(0x198)],_0x259715[_0x4588e7(0x206)],_0x259715[_0x4588e7(0x1f9)],_0x259715['log_dir']],_0x304abb=_0x246cb2[_0x4588e7(0x1f0)](_0x11f9c8=>typeof _0x11f9c8===_0x4588e7(0x1d8)&&_0x11f9c8[_0x4588e7(0x181)]()[_0x4588e7(0x209)]>0x0);if(_0x304abb)return _0x304abb;}catch{}const _0x2129d6=_0x1b5dc5['match'](/(?:logs_directory|logsDirectory|log_dir|logDir|logs dir|logs directory)[:=]\s*["']?([^\s"',}]+)/i);return _0x2129d6?.[0x1]??null;}export async function loadNovaActSessionExport(_0x41faa6){const _0x3cb59a=_0x1d616a,_0x50b7d8={'BfbkN':function(_0x287179,_0x4415ba,_0x538ba5){return _0x287179(_0x4415ba,_0x538ba5);}};try{return JSON[_0x3cb59a(0x169)](await _0x50b7d8['BfbkN'](readFile,_0x41faa6,'utf-8'));}catch{return null;}}export async function hydrateNovaProfileFromStorageState(_0x2fa985){const _0x2cdbf6=_0x1d616a,_0x587d31={'GAPnk':function(_0x5e850c,_0x17253f){return _0x5e850c/_0x17253f;},'WIIhN':function(_0x4ac6d6,_0x411598,_0x1e4bdf){return _0x4ac6d6(_0x411598,_0x1e4bdf);},'CvOgV':_0x2cdbf6(0x1f6),'AzZBq':function(_0x35d60c,_0x4c55b6){return _0x35d60c(_0x4c55b6);},'lXuKv':function(_0x3d8c0e,_0x76352c,_0x460833){return _0x3d8c0e(_0x76352c,_0x460833);},'oIsTE':function(_0x30ff11,_0xfeb91f){return _0x30ff11>_0xfeb91f;}},_0x4032bf=JSON[_0x2cdbf6(0x169)](await _0x587d31['WIIhN'](readFile,_0x2fa985[_0x2cdbf6(0x17d)],_0x587d31['CvOgV'])),_0x1ff910=await inspectNovaStorageStateFile(_0x2fa985[_0x2cdbf6(0x17d)]);await _0x587d31[_0x2cdbf6(0x1c3)](mkdir,_0x2fa985['userDataDir'],{'recursive':!![]});const _0x5c2288=join(_0x2fa985[_0x2cdbf6(0x171)],'Default'),_0x47677a=await inspectNovaProfileFiles({'userDataDir':_0x2fa985['userDataDir'],'browserProfilePath':_0x5c2288}),{browser:_0x3177e7,process:_0x334668}=await _0x587d31[_0x2cdbf6(0x1a9)](launchNovaHydrationBrowser,{'userDataDir':_0x2fa985[_0x2cdbf6(0x171)],'browserProfilePath':_0x5c2288,'executablePath':_0x2fa985[_0x2cdbf6(0x183)],'headless':_0x2fa985['headless'],'launchArgs':_0x2fa985['launchArgs']}),_0x45b21a=_0x3177e7['contexts']()[0x0];if(!_0x45b21a){await _0x587d31[_0x2cdbf6(0x16a)](closeNovaHydrationBrowser,_0x3177e7,_0x334668);throw new Error(_0x2cdbf6(0x1db));}let _0x4e3ef6=0x0,_0x154502=0x0;try{const _0x2ecd4a=_0x4032bf[_0x2cdbf6(0x1cc)]??[];if(_0x587d31['oIsTE'](_0x2ecd4a[_0x2cdbf6(0x209)],0x0)){const _0x3565bb=_0x2ecd4a[_0x2cdbf6(0x20d)](_0x3578f3=>{const _0x184236=_0x2cdbf6;if(_0x3578f3[_0x184236(0x1cb)]!==-0x1)return _0x3578f3;return _0x154502+=0x1,{..._0x3578f3,'expires':Math[_0x184236(0x1cd)](_0x587d31[_0x184236(0x1f1)](Date['now'](),0x3e8))+NOVA_PROMOTED_SESSION_COOKIE_TTL_SECONDS};});await _0x45b21a['addCookies'](_0x3565bb);}for(const _0x3b8d03 of _0x4032bf[_0x2cdbf6(0x1bb)]??[]){if(!_0x3b8d03['localStorage']?.[_0x2cdbf6(0x209)])continue;const _0x57e5b6=await _0x45b21a[_0x2cdbf6(0x1c0)]();await _0x57e5b6['goto'](_0x3b8d03['origin'],{'waitUntil':_0x2cdbf6(0x1fd),'timeout':0x7530}),await _0x57e5b6['evaluate'](_0x3bd59e=>{const _0x27373b=_0x2cdbf6;for(const _0x13b278 of _0x3bd59e){window[_0x27373b(0x165)]['setItem'](_0x13b278['name'],_0x13b278[_0x27373b(0x1b0)]);}},_0x3b8d03[_0x2cdbf6(0x165)]),_0x4e3ef6+=_0x3b8d03[_0x2cdbf6(0x165)][_0x2cdbf6(0x209)],await _0x57e5b6[_0x2cdbf6(0x192)]();}if(_0x2fa985[_0x2cdbf6(0x193)]){const _0x572e1f=await _0x45b21a[_0x2cdbf6(0x1c0)]();await _0x572e1f[_0x2cdbf6(0x186)](_0x2fa985['baseUrl'],{'waitUntil':'domcontentloaded','timeout':0x7530}),await _0x572e1f[_0x2cdbf6(0x192)]();}await ensureChromeProfileShape(_0x2fa985['userDataDir'],_0x5c2288);}finally{await closeNovaHydrationBrowser(_0x3177e7,_0x334668);}const _0x1ff272=await inspectNovaProfileFiles({'userDataDir':_0x2fa985['userDataDir'],'browserProfilePath':_0x5c2288});return{'browserProfilePath':_0x5c2288,'cookieCount':_0x4032bf[_0x2cdbf6(0x1cc)]?.[_0x2cdbf6(0x209)]??0x0,'promotedSessionCookieCount':_0x154502,'originCount':_0x4032bf[_0x2cdbf6(0x1bb)]?.[_0x2cdbf6(0x209)]??0x0,'localStorageEntryCount':_0x4e3ef6,'storageStateDiagnostics':_0x1ff910,'profileBefore':_0x47677a,'profileAfter':_0x1ff272};}async function launchNovaHydrationBrowser(_0x276809){const _0x41beea=_0x1d616a,_0x26a373={'zeUDC':function(_0x449efa,_0x34afbc,_0x3f4fc5){return _0x449efa(_0x34afbc,_0x3f4fc5);},'YnmtN':'--profile-directory=Default','nWihN':'--no-first-run','iDBlp':'--headless=new','dxcGk':function(_0x5077ad,_0x910480,_0x6145a4,_0x117a37){return _0x5077ad(_0x910480,_0x6145a4,_0x117a37);},'OSqlm':_0x41beea(0x18c),'TEILo':'pipe','VwTFm':function(_0x41157e,_0x4bba95,_0x13154b){return _0x41157e(_0x4bba95,_0x13154b);},'TQMvC':function(_0xae268a,_0x16808c){return _0xae268a(_0x16808c);}};await _0x26a373[_0x41beea(0x1a8)](ensureChromeProfileShape,_0x276809[_0x41beea(0x171)],_0x276809[_0x41beea(0x163)]);const _0xfe30b5=_0x276809['executablePath']??chromium['executablePath'](),_0x4eb9df=await getAvailablePort(),_0x2f72ed=['--remote-debugging-port='+_0x4eb9df,_0x41beea(0x1e3)+_0x276809[_0x41beea(0x171)],_0x26a373['YnmtN'],'--window-size=1280,720',_0x26a373['nWihN'],'--remote-allow-origins=http://localhost'];_0x276809['headless']&&_0x2f72ed[_0x41beea(0x1c6)](_0x26a373['iDBlp']);_0x2f72ed[_0x41beea(0x1c6)](..._0x276809[_0x41beea(0x1e7)]??[]);const _0xdc978c=_0x26a373['dxcGk'](spawn,_0xfe30b5,_0x2f72ed,{'stdio':[_0x26a373[_0x41beea(0x19f)],_0x26a373['TEILo'],'pipe']});try{const _0x11a638=await _0x26a373['VwTFm'](waitForCdpEndpoint,_0xdc978c,_0x4eb9df),_0x1ff2f2=await chromium[_0x41beea(0x1f5)](_0x11a638);return{'browser':_0x1ff2f2,'process':_0xdc978c};}catch(_0x5b5c0b){await _0x26a373[_0x41beea(0x204)](terminateNovaHydrationBrowser,_0xdc978c);throw _0x5b5c0b;}}async function closeNovaHydrationBrowser(_0x26f8dd,_0x51046f){const _0x1734a2=_0x1d616a,_0x332a52={'NAVFt':function(_0x15a675,_0x267e83){return _0x15a675(_0x267e83);},'TThjK':function(_0x3b3fd6,_0x4230de){return _0x3b3fd6(_0x4230de);}};try{await _0x26f8dd['close']();}catch{await _0x332a52[_0x1734a2(0x182)](terminateNovaHydrationBrowser,_0x51046f);return;}const _0x3ce174=await waitForProcessExit(_0x51046f,0x1388);!_0x3ce174&&await _0x332a52['TThjK'](terminateNovaHydrationBrowser,_0x51046f);}async function terminateNovaHydrationBrowser(_0x590848){const _0xfaa6fd=_0x1d616a,_0x45db48={'jpRJH':'SIGTERM'};if(_0x590848[_0xfaa6fd(0x18a)]!==null)return;try{_0x590848['kill'](_0x45db48['jpRJH']);}catch{}await waitForProcessExit(_0x590848,0x7d0);if(_0x590848[_0xfaa6fd(0x18a)]===null){try{_0x590848['kill'](_0xfaa6fd(0x1c2));}catch{}await waitForProcessExit(_0x590848,0x7d0);}}async function waitForCdpEndpoint(_0x5c5b8e,_0x54b4d1){const _0xc4670e=_0x1d616a,_0x3e6bdd={'gNlaa':function(_0x2796a7,_0x1d9ead){return _0x2796a7<_0x1d9ead;},'gKanN':function(_0x55af3c,_0x5a8507){return _0x55af3c-_0x5a8507;},'NJfZx':function(_0x23dbf4,_0x11116c){return _0x23dbf4(_0x11116c);},'ptJkR':function(_0xe21272,_0x51afcc){return _0xe21272 instanceof _0x51afcc;}},_0x36f53c=Date[_0xc4670e(0x191)]();let _0x3ef86c;while(_0x3e6bdd[_0xc4670e(0x1d1)](_0x3e6bdd['gKanN'](Date[_0xc4670e(0x191)](),_0x36f53c),NOVA_PROFILE_HYDRATION_CDP_TIMEOUT_MS)){if(_0x5c5b8e[_0xc4670e(0x18a)]!==null)throw new Error(_0xc4670e(0x1dc)+_0x5c5b8e['exitCode']);try{const _0x14d784=await _0x3e6bdd['NJfZx'](fetch,_0xc4670e(0x201)+_0x54b4d1+_0xc4670e(0x1c4));if(_0x14d784['ok']){const _0xcf74d3=await _0x14d784[_0xc4670e(0x1d9)]();if(typeof _0xcf74d3[_0xc4670e(0x157)]===_0xc4670e(0x1d8))return _0xcf74d3[_0xc4670e(0x157)];}}catch(_0x5dc20b){_0x3ef86c=_0x5dc20b;}await _0x3e6bdd['NJfZx'](delay,0x64);}const _0x463cc2=_0x3e6bdd['ptJkR'](_0x3ef86c,Error)?':\x20'+_0x3ef86c['message']:'';throw new Error('Timed\x20out\x20waiting\x20for\x20hydration\x20browser\x20CDP'+_0x463cc2);}async function getAvailablePort(){const _0x4612b7={'RPjgR':function(_0x50267f,_0x48878b){return _0x50267f===_0x48878b;},'ncdfE':function(_0x345ba8){return _0x345ba8();}};return new Promise((_0x387733,_0x303511)=>{const _0x49f799=_0x3ba5,_0x6c330e={'NIdDq':function(_0x3847de,_0x43cc60){return _0x3847de(_0x43cc60);},'nARmt':function(_0x1afc07,_0x363b69){return _0x4612b7['RPjgR'](_0x1afc07,_0x363b69);},'dhgfz':_0x49f799(0x155)},_0x22d227=_0x4612b7['ncdfE'](createServer);_0x22d227[_0x49f799(0x187)]('error',_0x303511),_0x22d227[_0x49f799(0x1a6)](0x0,'127.0.0.1',()=>{const _0x2b35fb=_0x22d227['address']();_0x22d227['close'](_0x1c9be9=>{const _0x2f47ea=_0x3ba5;if(_0x1c9be9){_0x6c330e['NIdDq'](_0x303511,_0x1c9be9);return;}if(_0x6c330e['nARmt'](typeof _0x2b35fb,_0x6c330e[_0x2f47ea(0x18b)])&&_0x2b35fb?.['port']){_0x387733(_0x2b35fb['port']);return;}_0x303511(new Error(_0x2f47ea(0x1b2)));});});});}async function waitForProcessExit(_0x4d1d74,_0x815b58){const _0x34c163=_0x1d616a,_0x4c45e8={'rVfqw':function(_0x2feda0){return _0x2feda0();},'snYlg':function(_0x2e5ba5,_0x15d2aa){return _0x2e5ba5(_0x15d2aa);},'mAaWn':_0x34c163(0x20e),'jifZB':function(_0x573b7d,_0x2393d6){return _0x573b7d!==_0x2393d6;}};if(_0x4c45e8['jifZB'](_0x4d1d74['exitCode'],null))return!![];return new Promise(_0x38bf3e=>{const _0x1d125e=_0x34c163,_0x1d7920={'epOAY':function(_0x216e8d,_0xf5c4cd){return _0x4c45e8['snYlg'](_0x216e8d,_0xf5c4cd);},'NZFga':_0x4c45e8[_0x1d125e(0x1d5)]},_0x3b48e4=setTimeout(()=>{const _0x8c6ba9=_0x1d125e;_0x4c45e8[_0x8c6ba9(0x1d4)](_0x6820c4),_0x38bf3e(![]);},_0x815b58),_0x463093=()=>{_0x6820c4(),_0x38bf3e(!![]);},_0x6820c4=()=>{const _0x15831=_0x1d125e;_0x1d7920[_0x15831(0x173)](clearTimeout,_0x3b48e4),_0x4d1d74[_0x15831(0x1fc)](_0x1d7920['NZFga'],_0x463093);};_0x4d1d74[_0x1d125e(0x187)](_0x1d125e(0x20e),_0x463093);});}async function delay(_0xc8d862){await new Promise(_0x15ab88=>setTimeout(_0x15ab88,_0xc8d862));}async function ensureChromeProfileShape(_0x2065e5,_0xaf09df){const _0x3d3c5c=_0x1d616a,_0x20c4ff={'JKtjd':function(_0x4f5a54,_0x3713d3,_0x364e53){return _0x4f5a54(_0x3713d3,_0x364e53);}};await _0x20c4ff[_0x3d3c5c(0x1b1)](mkdir,_0xaf09df,{'recursive':!![]}),await ensureJsonFile(join(_0x2065e5,_0x3d3c5c(0x1c7))),await ensureJsonFile(join(_0xaf09df,_0x3d3c5c(0x205)));}async function ensureJsonFile(_0x12bb43){const _0x188fa9=_0x1d616a,_0x553c13={'mjgFw':function(_0x31ccc9,_0x58cd2d){return _0x31ccc9(_0x58cd2d);},'GaNPc':_0x188fa9(0x1f6)};try{await _0x553c13[_0x188fa9(0x1a3)](access,_0x12bb43);}catch{await writeFile(_0x12bb43,'{}',_0x553c13[_0x188fa9(0x17f)]);}}export function previewNovaActCliCommand(_0x24a347){const _0x534ea7=_0x1d616a,_0xd09d44={'Zrzgr':function(_0x2931b4,_0x343a81){return _0x2931b4(_0x343a81);}};return _0xd09d44[_0x534ea7(0x17c)](truncatePreview,_0x24a347);}
@@ -1 +1 @@
1
- function _0x25ce(){var _0x41072f=['5260297ztxXRO','env','75770pZyksc','63YUNbdc','2387sEGAXf','366hyFKET','.config','1277328QTczth','4716bqzJVm','2358BlsScz','opencode','XDG_CONFIG_HOME','898513stdcjN','QEuyy','.opencode','32705dEiIlq','OPENCODE_CONFIG_DIR','Tezmd','Tgbfv','825304eXpJes'];_0x25ce=function(){return _0x41072f;};return _0x25ce();}(function(_0x312261,_0x339a3b){var _0x130994=_0x3009,_0x5c9843=_0x312261();while(!![]){try{var _0x4a3bbc=parseInt(_0x130994(0x92))/0x1+-parseInt(_0x130994(0x8d))/0x2+parseInt(_0x130994(0x8f))/0x3*(-parseInt(_0x130994(0x8e))/0x4)+-parseInt(_0x130994(0x95))/0x5*(parseInt(_0x130994(0x8b))/0x6)+-parseInt(_0x130994(0x9a))/0x7+parseInt(_0x130994(0x99))/0x8*(parseInt(_0x130994(0x9d))/0x9)+-parseInt(_0x130994(0x9c))/0xa*(-parseInt(_0x130994(0x8a))/0xb);if(_0x4a3bbc===_0x339a3b)break;else _0x5c9843['push'](_0x5c9843['shift']());}catch(_0x316664){_0x5c9843['push'](_0x5c9843['shift']());}}}(_0x25ce,0x860a9));import{homedir}from'os';function _0x3009(_0x3bcf04,_0x17ea00){_0x3bcf04=_0x3bcf04-0x8a;var _0x25ce4f=_0x25ce();var _0x30090c=_0x25ce4f[_0x3bcf04];return _0x30090c;}import{join}from'path';import{getProjectRoot}from'./claudeConfig.js';export function getOpencodeConfigDir(_0x95d2ea){var _0x4ebdb5=_0x3009,_0x52b44d={'Tgbfv':function(_0x58c751,_0x601670){return _0x58c751===_0x601670;},'QEuyy':'user','Tezmd':_0x4ebdb5(0x94)};if(process['env'][_0x4ebdb5(0x96)])return process[_0x4ebdb5(0x9b)][_0x4ebdb5(0x96)];if(_0x52b44d[_0x4ebdb5(0x98)](_0x95d2ea,_0x52b44d[_0x4ebdb5(0x93)])){if(process[_0x4ebdb5(0x9b)]['XDG_CONFIG_HOME'])return join(process['env'][_0x4ebdb5(0x91)],_0x4ebdb5(0x90));return join(homedir(),_0x4ebdb5(0x8c),_0x4ebdb5(0x90));}return join(getProjectRoot(),_0x52b44d[_0x4ebdb5(0x97)]);}export function getOpencodeSkillsDir(_0x22329f){var _0x66f606={'OpFSw':function(_0x764424,_0x5327ac){return _0x764424(_0x5327ac);}};return join(_0x66f606['OpFSw'](getOpencodeConfigDir,_0x22329f),'skills');}
1
+ (function(_0x5ddd78,_0x38e3c4){var _0x4b8020=_0x5575,_0x3e9d79=_0x5ddd78();while(!![]){try{var _0x4cbab2=parseInt(_0x4b8020(0x197))/0x1+-parseInt(_0x4b8020(0x19f))/0x2*(parseInt(_0x4b8020(0x19d))/0x3)+parseInt(_0x4b8020(0x1a6))/0x4*(-parseInt(_0x4b8020(0x1a1))/0x5)+-parseInt(_0x4b8020(0x195))/0x6*(parseInt(_0x4b8020(0x1a0))/0x7)+parseInt(_0x4b8020(0x19e))/0x8+parseInt(_0x4b8020(0x19b))/0x9*(parseInt(_0x4b8020(0x1a4))/0xa)+parseInt(_0x4b8020(0x196))/0xb;if(_0x4cbab2===_0x38e3c4)break;else _0x3e9d79['push'](_0x3e9d79['shift']());}catch(_0x54c94a){_0x3e9d79['push'](_0x3e9d79['shift']());}}}(_0x65b5,0x8ac08));import{homedir}from'os';import{join}from'path';import{getProjectRoot}from'./claudeConfig.js';export function getOpencodeConfigDir(_0x2f8f0f){var _0x599c3a=_0x5575,_0x51837={'VTxtO':function(_0x2bc7b0,_0x3c03d1){return _0x2bc7b0===_0x3c03d1;},'jtGBn':function(_0x345acc,_0x394683,_0x4477b9,_0x36576f){return _0x345acc(_0x394683,_0x4477b9,_0x36576f);},'flKAH':_0x599c3a(0x198),'krpzW':function(_0x1f718d,_0x1f8149,_0x6ce0a8){return _0x1f718d(_0x1f8149,_0x6ce0a8);},'DDXWZ':'.opencode'};if(process[_0x599c3a(0x1a3)]['OPENCODE_CONFIG_DIR'])return process['env']['OPENCODE_CONFIG_DIR'];if(_0x51837[_0x599c3a(0x1a5)](_0x2f8f0f,_0x599c3a(0x19a))){if(process['env'][_0x599c3a(0x1a2)])return join(process[_0x599c3a(0x1a3)][_0x599c3a(0x1a2)],'opencode');return _0x51837['jtGBn'](join,homedir(),_0x51837['flKAH'],_0x599c3a(0x194));}return _0x51837[_0x599c3a(0x19c)](join,getProjectRoot(),_0x51837['DDXWZ']);}function _0x65b5(){var _0x5c386c=['9Wjmapb','krpzW','3qkLOBT','7987032XYDTcz','1078502ApFpUX','1898757taUFsz','470WKblBh','XDG_CONFIG_HOME','env','3492760SysToy','VTxtO','34924FbZdNB','opencode','24zbuRGV','12031217XbtAEw','571895HKKyfI','.config','VzSQc','user'];_0x65b5=function(){return _0x5c386c;};return _0x65b5();}function _0x5575(_0x3b86da,_0x573685){_0x3b86da=_0x3b86da-0x194;var _0x65b5eb=_0x65b5();var _0x5575a0=_0x65b5eb[_0x3b86da];return _0x5575a0;}export function getOpencodeSkillsDir(_0x324471){var _0x13c23a=_0x5575,_0x36e317={'VzSQc':function(_0xdadb72,_0x53e389){return _0xdadb72(_0x53e389);}};return join(_0x36e317[_0x13c23a(0x199)](getOpencodeConfigDir,_0x324471),'skills');}
@@ -1 +1 @@
1
- (function(_0x8cacf1,_0x399754){const _0x317bb0=_0x112d,_0x359742=_0x8cacf1();while(!![]){try{const _0x5afb72=parseInt(_0x317bb0(0x198))/0x1*(parseInt(_0x317bb0(0x19e))/0x2)+-parseInt(_0x317bb0(0x1a4))/0x3*(parseInt(_0x317bb0(0x1a1))/0x4)+parseInt(_0x317bb0(0x19b))/0x5*(-parseInt(_0x317bb0(0x197))/0x6)+parseInt(_0x317bb0(0x19f))/0x7*(-parseInt(_0x317bb0(0x1a3))/0x8)+parseInt(_0x317bb0(0x1a5))/0x9+-parseInt(_0x317bb0(0x1a2))/0xa+-parseInt(_0x317bb0(0x192))/0xb*(-parseInt(_0x317bb0(0x196))/0xc);if(_0x5afb72===_0x399754)break;else _0x359742['push'](_0x359742['shift']());}catch(_0x25f9b2){_0x359742['push'](_0x359742['shift']());}}}(_0x1c1e,0x4bade));import{getApiBaseUrl}from'./environment.js';function _0x1c1e(){const _0x5b78bd=['ZIHxJ','830910xnYyYB','variableName','\x20must\x20be\x20a\x20string\x20or\x20number','2tgzBNp','2443RhWwQN','QulXu','4KvggMk','95210PrfbOY','9368sOGhiw','204987TvMOnV','1934307gEZZBU','/organization/environment-variables','set','No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','7491vYzcex','Failed\x20to\x20fetch\x20organization\x20environment\x20variable\x20','number','all','11196mlnFOQ','6nOoTqZ','112397DCXUOq','status'];_0x1c1e=function(){return _0x5b78bd;};return _0x1c1e();}function _0x112d(_0x30d32f,_0x40db12){_0x30d32f=_0x30d32f-0x18f;const _0x1c1e85=_0x1c1e();let _0x112d26=_0x1c1e85[_0x30d32f];return _0x112d26;}import{getToken}from'./keychain.js';async function getOrganizationEnvironmentVariable(_0x10fc44){const _0x196021=_0x112d,_0x5b04ef={'CzwNe':function(_0x2396a2){return _0x2396a2();},'MDvuT':_0x196021(0x19c),'cPFzk':function(_0x5d879d,_0x2595f1,_0x45793c){return _0x5d879d(_0x2595f1,_0x45793c);},'LXwqY':function(_0x2ddefd,_0x376ad6){return _0x2ddefd===_0x376ad6;},'QulXu':function(_0x564221,_0xc2669b){return _0x564221===_0xc2669b;},'UVgWk':function(_0x343364,_0x74f4e){return _0x343364===_0x74f4e;},'cRfTe':function(_0x5c405f,_0x1feeca){return _0x5c405f===_0x1feeca;},'ZOGcr':'string','UVPjN':function(_0x25aab9,_0x40ccda){return _0x25aab9===_0x40ccda;},'ZIHxJ':_0x196021(0x194)},_0x8f5bab=await getToken();if(!_0x8f5bab)throw new Error(_0x196021(0x191));const _0x46cce3=new URL(_0x5b04ef['CzwNe'](getApiBaseUrl)+_0x196021(0x18f));_0x46cce3['searchParams'][_0x196021(0x190)](_0x5b04ef['MDvuT'],_0x10fc44);const _0x4d1af0=await _0x5b04ef['cPFzk'](fetch,_0x46cce3,{'method':'GET','headers':{'Authorization':'Bearer\x20'+_0x8f5bab}});if(_0x5b04ef['LXwqY'](_0x4d1af0['status'],0x194))return null;if(!_0x4d1af0['ok']){const _0x5c2a43=await _0x4d1af0['text']();throw new Error(_0x196021(0x193)+_0x10fc44+':\x20'+_0x4d1af0[_0x196021(0x199)]+'\x20'+_0x5c2a43);}const _0xc168d6=await _0x4d1af0['json'](),_0x394b69=_0xc168d6[_0x10fc44];if(_0x5b04ef[_0x196021(0x1a0)](_0x394b69,undefined)||_0x5b04ef['UVgWk'](_0x394b69,null))return null;if(_0x5b04ef['cRfTe'](typeof _0x394b69,_0x5b04ef['ZOGcr'])||_0x5b04ef['UVPjN'](typeof _0x394b69,_0x5b04ef[_0x196021(0x19a)]))return String(_0x394b69);throw new Error('Organization\x20environment\x20variable\x20'+_0x10fc44+_0x196021(0x19d));}export async function getOrganizationEnvironmentVariables(_0x2175b2){const _0x3fa4b6=_0x112d,_0x18a457=Array['from'](new Set(_0x2175b2)),_0x5fbbed=await Promise[_0x3fa4b6(0x195)](_0x18a457['map'](async _0x9e69a8=>{const _0x307f19=await getOrganizationEnvironmentVariable(_0x9e69a8);return _0x307f19===null?null:[_0x9e69a8,_0x307f19];}));return Object['fromEntries'](_0x5fbbed['filter'](_0x59a41a=>Boolean(_0x59a41a)));}
1
+ (function(_0x4b326e,_0x109b77){const _0x4507a1=_0x10a5,_0x229abf=_0x4b326e();while(!![]){try{const _0xa8873a=-parseInt(_0x4507a1(0x1ed))/0x1+-parseInt(_0x4507a1(0x1e8))/0x2*(-parseInt(_0x4507a1(0x1f2))/0x3)+-parseInt(_0x4507a1(0x1ec))/0x4+parseInt(_0x4507a1(0x1ef))/0x5*(parseInt(_0x4507a1(0x1e4))/0x6)+parseInt(_0x4507a1(0x1ee))/0x7+-parseInt(_0x4507a1(0x1ea))/0x8+-parseInt(_0x4507a1(0x1eb))/0x9*(parseInt(_0x4507a1(0x1e5))/0xa);if(_0xa8873a===_0x109b77)break;else _0x229abf['push'](_0x229abf['shift']());}catch(_0x157ab3){_0x229abf['push'](_0x229abf['shift']());}}}(_0x543f,0xcfa89));function _0x10a5(_0xb4b108,_0x44a08a){_0xb4b108=_0xb4b108-0x1e2;const _0x543f74=_0x543f();let _0x10a56e=_0x543f74[_0xb4b108];return _0x10a56e;}import{getApiBaseUrl}from'./environment.js';import{getToken}from'./keychain.js';function _0x543f(){const _0x1e3191=['status','crREs','198DSZywj','213910dBKKEQ','Organization\x20environment\x20variable\x20','text','2jISdAs','set','7495288tHKbPD','306lvLYYt','2280600TuHoQz','395827xMReqb','11163614TarVaG','176405oGoayU','No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','number','2165028bCrJQy','QbwPC','vgFoT','filter','BLBId','all','\x20must\x20be\x20a\x20string\x20or\x20number'];_0x543f=function(){return _0x1e3191;};return _0x543f();}async function getOrganizationEnvironmentVariable(_0x4c2d22){const _0x5a3796=_0x10a5,_0x2e86ba={'vgFoT':_0x5a3796(0x1f0),'QbwPC':'variableName','crREs':function(_0x3a3f11,_0x372394){return _0x3a3f11===_0x372394;}},_0x4b5406=await getToken();if(!_0x4b5406)throw new Error(_0x2e86ba[_0x5a3796(0x1f4)]);const _0x5396dd=new URL(getApiBaseUrl()+'/organization/environment-variables');_0x5396dd['searchParams'][_0x5a3796(0x1e9)](_0x2e86ba[_0x5a3796(0x1f3)],_0x4c2d22);const _0x3dbbd0=await fetch(_0x5396dd,{'method':'GET','headers':{'Authorization':'Bearer\x20'+_0x4b5406}});if(_0x2e86ba[_0x5a3796(0x1e3)](_0x3dbbd0[_0x5a3796(0x1e2)],0x194))return null;if(!_0x3dbbd0['ok']){const _0x367934=await _0x3dbbd0[_0x5a3796(0x1e7)]();throw new Error('Failed\x20to\x20fetch\x20organization\x20environment\x20variable\x20'+_0x4c2d22+':\x20'+_0x3dbbd0[_0x5a3796(0x1e2)]+'\x20'+_0x367934);}const _0x34bb95=await _0x3dbbd0['json'](),_0xa17a90=_0x34bb95[_0x4c2d22];if(_0x2e86ba[_0x5a3796(0x1e3)](_0xa17a90,undefined)||_0x2e86ba[_0x5a3796(0x1e3)](_0xa17a90,null))return null;if(_0x2e86ba['crREs'](typeof _0xa17a90,'string')||typeof _0xa17a90===_0x5a3796(0x1f1))return String(_0xa17a90);throw new Error(_0x5a3796(0x1e6)+_0x4c2d22+_0x5a3796(0x1f8));}export async function getOrganizationEnvironmentVariables(_0x48658d){const _0x1344d1=_0x10a5,_0x2a2b53={'BLBId':function(_0x15ea36,_0x269361){return _0x15ea36===_0x269361;}},_0x4ce295=Array['from'](new Set(_0x48658d)),_0x3da3d6=await Promise[_0x1344d1(0x1f7)](_0x4ce295['map'](async _0x4beb5b=>{const _0x419f43=_0x1344d1,_0x158d68=await getOrganizationEnvironmentVariable(_0x4beb5b);return _0x2a2b53[_0x419f43(0x1f6)](_0x158d68,null)?null:[_0x4beb5b,_0x158d68];}));return Object['fromEntries'](_0x3da3d6[_0x1344d1(0x1f5)](_0x2c3488=>Boolean(_0x2c3488)));}
@@ -1 +1 @@
1
- const _0x426462=_0x496b;function _0x496b(_0x243a26,_0x275c91){_0x243a26=_0x243a26-0x1d7;const _0x551222=_0x5512();let _0x496b5b=_0x551222[_0x243a26];return _0x496b5b;}function _0x5512(){const _0x235fd9=['toString','pTLsR','match','string','cwd','3XUdGlz','@playwright/cli','27324xoevSe','null','\x0astderr:\x20','join','jQfFl','\x27\x5c\x27\x27','640528XLVQxs','8TOkoaB','cmd','DscCB','UiOHM','timed\x20out\x20after\x20','unknown','TpjWZ','1075755CxalCa','length','update','ALtcC','close','6lylrDR','timeoutMs','YZchK','test','stdout','SIGTERM','uPMJm','configPath','exited\x20with\x20code=','hex','AfOcd','3190WCCEgg','-s=','790ILAFlb','command','...','playwright-cli\x20','iZOaW','228118xKbjwa','env','rg-','map','slice','wtYfP','642772NAMGSV','digest','--config','stderr','pipe','ZsciZ','uhBxG','400049WzsPzp'];_0x5512=function(){return _0x235fd9;};return _0x5512();}(function(_0x5941aa,_0x4fa32a){const _0x2142b7=_0x496b,_0x5400a5=_0x5941aa();while(!![]){try{const _0x407212=parseInt(_0x2142b7(0x1da))/0x1+parseInt(_0x2142b7(0x207))/0x2+-parseInt(_0x2142b7(0x1e0))/0x3*(parseInt(_0x2142b7(0x20d))/0x4)+-parseInt(_0x2142b7(0x1f0))/0x5*(parseInt(_0x2142b7(0x1f5))/0x6)+parseInt(_0x2142b7(0x1e8))/0x7+parseInt(_0x2142b7(0x1e9))/0x8*(-parseInt(_0x2142b7(0x1e2))/0x9)+-parseInt(_0x2142b7(0x202))/0xa*(parseInt(_0x2142b7(0x200))/0xb);if(_0x407212===_0x4fa32a)break;else _0x5400a5['push'](_0x5400a5['shift']());}catch(_0x3b6df5){_0x5400a5['push'](_0x5400a5['shift']());}}}(_0x5512,0x31c2e));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0x426462(0x1e1);function toPlaywrightCliSessionKey(_0x3c2cbb){const _0x2ac83a=_0x426462,_0x1b2f4b={'WfMSL':function(_0x242f45,_0x1b316d){return _0x242f45(_0x1b316d);},'pXXHg':_0x2ac83a(0x1fe)},_0x1bbdfc=_0x1b2f4b['WfMSL'](createHash,'sha256')[_0x2ac83a(0x1f2)](_0x3c2cbb)[_0x2ac83a(0x20e)](_0x1b2f4b['pXXHg'])[_0x2ac83a(0x20b)](0x0,0xc);return _0x2ac83a(0x209)+_0x1bbdfc;}function shellQuote(_0x15c045){const _0x499e5f=_0x426462;return'\x27'+_0x15c045['replace'](/'/g,_0x499e5f(0x1e7))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x2daa41){const _0x27b4cd=_0x426462;return SAFE_SHELL_TOKEN[_0x27b4cd(0x1f8)](_0x2daa41)?_0x2daa41:shellQuote(_0x2daa41);}export function buildPlaywrightCliInvocation(_0x227c93,_0xac9876,_0x2e4d73){const _0x1c42fc=_0x426462,_0x18c72e={'uhBxG':function(_0x30e182,_0x2bbb4c){return _0x30e182(_0x2bbb4c);},'pTLsR':_0x1c42fc(0x1ee),'UiOHM':'npx','iZOaW':'--config'},_0x42b642=_0x18c72e[_0x1c42fc(0x1d9)](toPlaywrightCliSessionKey,_0x227c93),[_0x59d541=_0x18c72e[_0x1c42fc(0x1dc)]]=_0x2e4d73,_0x136cd0=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x42b642,'--config',_0xac9876,..._0x2e4d73];return{'command':_0x18c72e[_0x1c42fc(0x1ec)],'args':_0x136cd0,'shellCommand':['npx',PLAYWRIGHT_CLI_BINARY,_0x1c42fc(0x201)+quoteShellArg(_0x42b642),_0x18c72e[_0x1c42fc(0x206)],quoteShellArg(_0xac9876),..._0x2e4d73[_0x1c42fc(0x20a)](quoteShellArg)][_0x1c42fc(0x1e5)]('\x20'),'subcommand':_0x59d541};}export function buildPlaywrightCliCommandPrefix(_0x2860a8,_0x36c020){const _0x4112be=_0x426462,_0x3dc569={'yybmA':function(_0x41108b,_0xd50776){return _0x41108b(_0xd50776);},'ALtcC':'npx','AfOcd':_0x4112be(0x20f)},_0x59a2b0=_0x3dc569['yybmA'](toPlaywrightCliSessionKey,_0x2860a8);return[_0x3dc569[_0x4112be(0x1f3)],PLAYWRIGHT_CLI_BINARY,_0x4112be(0x201)+quoteShellArg(_0x59a2b0),_0x3dc569[_0x4112be(0x1ff)],quoteShellArg(_0x36c020)][_0x4112be(0x1e5)]('\x20');}function truncateOutput(_0x2ccd5a,_0xa5064c=0x7d0){const _0x46db42=_0x426462,_0x165140={'DscCB':function(_0x3dd6e1,_0x27e93b){return _0x3dd6e1>_0x27e93b;},'YZchK':function(_0x47de15,_0x132f54){return _0x47de15+_0x132f54;}};return _0x165140[_0x46db42(0x1eb)](_0x2ccd5a[_0x46db42(0x1f1)],_0xa5064c)?_0x165140[_0x46db42(0x1f7)](_0x2ccd5a[_0x46db42(0x20b)](0x0,_0xa5064c),_0x46db42(0x204)):_0x2ccd5a;}export async function runPlaywrightCliCommand(_0x3dac09){const _0x490f42=_0x426462,_0x3eb479={'ZDEzd':function(_0x3dd7d5,_0x557b3d){return _0x3dd7d5(_0x557b3d);},'ZsciZ':function(_0x396b0e,_0x57f8fb){return _0x396b0e===_0x57f8fb;},'TpjWZ':_0x490f42(0x1e3),'iWpRQ':function(_0x190dfa,_0x191d35){return _0x190dfa(_0x191d35);},'RJyqN':function(_0x5505a8,_0x2e1f55,_0xb2678c,_0x29c3d8){return _0x5505a8(_0x2e1f55,_0xb2678c,_0x29c3d8);},'zfjnc':'pipe','uPMJm':'data'},_0x15eda0=buildPlaywrightCliInvocation(_0x3dac09['sessionId'],_0x3dac09[_0x490f42(0x1fc)],_0x3dac09['commandArgs']);return new Promise((_0x4c93f1,_0x4a5d2b)=>{const _0xa1d0e2=_0x490f42,_0x4b2212=_0x3eb479['RJyqN'](spawn,_0x15eda0['command'],_0x15eda0['args'],{'cwd':_0x3dac09[_0xa1d0e2(0x1df)],'env':_0x3dac09[_0xa1d0e2(0x208)],'stdio':['ignore',_0xa1d0e2(0x1d7),_0x3eb479['zfjnc']]});let _0x7b651a='',_0x5d62f2='',_0x397606=![];const _0x51c0df=_0x3dac09[_0xa1d0e2(0x1f6)]&&_0x3dac09['timeoutMs']>0x0?setTimeout(()=>{const _0x5b6155=_0xa1d0e2;_0x397606=!![],_0x4b2212['kill'](_0x5b6155(0x1fa)),setTimeout(()=>{try{_0x4b2212['kill']('SIGKILL');}catch{}},0x3e8);},_0x3dac09['timeoutMs']):null;_0x4b2212[_0xa1d0e2(0x1f9)]?.['on'](_0x3eb479[_0xa1d0e2(0x1fb)],_0x3831a7=>{const _0x330af8=_0xa1d0e2;_0x7b651a+=_0x3831a7[_0x330af8(0x1db)]();}),_0x4b2212[_0xa1d0e2(0x210)]?.['on'](_0x3eb479[_0xa1d0e2(0x1fb)],_0x5bc7e9=>{_0x5d62f2+=_0x5bc7e9['toString']();}),_0x4b2212['on']('error',_0x27875d=>{if(_0x51c0df)clearTimeout(_0x51c0df);_0x3eb479['ZDEzd'](_0x4a5d2b,_0x27875d);}),_0x4b2212['on'](_0xa1d0e2(0x1f4),(_0x75530e,_0x593107)=>{const _0x223838=_0xa1d0e2;if(_0x51c0df)_0x3eb479['ZDEzd'](clearTimeout,_0x51c0df);if(_0x3eb479[_0x223838(0x1d8)](_0x75530e,0x0)){_0x4c93f1({'stdout':_0x7b651a,'stderr':_0x5d62f2,'invocation':_0x15eda0});return;}const _0x535776=_0x397606?_0x223838(0x1ed)+_0x3dac09['timeoutMs']+'ms':_0x223838(0x1fd)+(_0x75530e??_0x3eb479[_0x223838(0x1ef)])+'\x20signal='+(_0x593107??_0x3eb479[_0x223838(0x1ef)]);_0x4a5d2b(new Error(_0x223838(0x205)+_0x15eda0['subcommand']+'\x20'+_0x535776+'\x0astdout:\x20'+_0x3eb479['iWpRQ'](truncateOutput,_0x7b651a)+_0x223838(0x1e4)+truncateOutput(_0x5d62f2)));});});}export function extractBashCommand(_0x3769ea){const _0x590928=_0x426462,_0x61f2a2={'wtYfP':_0x590928(0x203),'jQfFl':'script','qveIn':'bash_command'},_0x3b3b7e=[_0x61f2a2[_0x590928(0x20c)],_0x590928(0x1ea),_0x61f2a2[_0x590928(0x1e6)],_0x61f2a2['qveIn']];for(const _0x2d0bb9 of _0x3b3b7e){const _0x5e3c94=_0x3769ea[_0x2d0bb9];if(typeof _0x5e3c94===_0x590928(0x1de)&&_0x5e3c94['trim']())return _0x5e3c94;}const _0x5c0277=Object['values'](_0x3769ea)['find'](_0x5e7eeb=>typeof _0x5e7eeb==='string'&&_0x5e7eeb['trim']()['length']>0x0);return _0x5c0277??null;}export function parsePlaywrightCliCommand(_0x1b7029){const _0x4babe5=_0x426462,_0x582da0=_0x1b7029[_0x4babe5(0x1dd)](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x582da0?.[0x1]??null;}
1
+ (function(_0x4f309a,_0x55df73){const _0x3c0cfe=_0x3e8d,_0x37bb48=_0x4f309a();while(!![]){try{const _0x30c0fd=parseInt(_0x3c0cfe(0x101))/0x1+parseInt(_0x3c0cfe(0x106))/0x2*(parseInt(_0x3c0cfe(0xf4))/0x3)+-parseInt(_0x3c0cfe(0x11a))/0x4+parseInt(_0x3c0cfe(0x11f))/0x5*(-parseInt(_0x3c0cfe(0xf6))/0x6)+parseInt(_0x3c0cfe(0x102))/0x7*(parseInt(_0x3c0cfe(0x107))/0x8)+-parseInt(_0x3c0cfe(0x104))/0x9+parseInt(_0x3c0cfe(0x10c))/0xa;if(_0x30c0fd===_0x55df73)break;else _0x37bb48['push'](_0x37bb48['shift']());}catch(_0x3dd5db){_0x37bb48['push'](_0x37bb48['shift']());}}}(_0x3a7b,0xd8347));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function toPlaywrightCliSessionKey(_0x825c1f){const _0x57ef1c=_0x3e8d,_0x28b69e={'PLanX':_0x57ef1c(0x10f)},_0x32d882=createHash(_0x28b69e[_0x57ef1c(0xef)])[_0x57ef1c(0x122)](_0x825c1f)[_0x57ef1c(0x119)](_0x57ef1c(0x10e))[_0x57ef1c(0xf3)](0x0,0xc);return _0x57ef1c(0x11e)+_0x32d882;}function shellQuote(_0x7efb64){const _0x56db2f=_0x3e8d;return'\x27'+_0x7efb64['replace'](/'/g,_0x56db2f(0x108))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0xb9cf07){const _0x26765b=_0x3e8d,_0xdb8051={'NMZMl':function(_0x4abd82,_0x19d102){return _0x4abd82(_0x19d102);}};return SAFE_SHELL_TOKEN[_0x26765b(0xfb)](_0xb9cf07)?_0xb9cf07:_0xdb8051[_0x26765b(0x109)](shellQuote,_0xb9cf07);}export function buildPlaywrightCliInvocation(_0x5850b8,_0x33c11b,_0x4fcacc){const _0x471d93=_0x3e8d,_0x2fffba={'BMuGA':_0x471d93(0xf8),'mImlu':_0x471d93(0x114),'xMzsG':function(_0x164f45,_0x19323d){return _0x164f45(_0x19323d);}},_0x4ccd73=toPlaywrightCliSessionKey(_0x5850b8),[_0x52594='unknown']=_0x4fcacc,_0x447baf=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x4ccd73,_0x2fffba[_0x471d93(0x11c)],_0x33c11b,..._0x4fcacc];return{'command':_0x2fffba['mImlu'],'args':_0x447baf,'shellCommand':[_0x2fffba[_0x471d93(0xf7)],PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x4ccd73),'--config',_0x2fffba['xMzsG'](quoteShellArg,_0x33c11b),..._0x4fcacc['map'](quoteShellArg)][_0x471d93(0x125)]('\x20'),'subcommand':_0x52594};}export function buildPlaywrightCliCommandPrefix(_0x1a7057,_0x2fc398){const _0x2c88b1=_0x3e8d,_0x54bd0d={'viHlk':_0x2c88b1(0x114),'dzaus':function(_0x1509b3,_0x54c997){return _0x1509b3(_0x54c997);},'IBSQk':'--config'},_0x1dd468=toPlaywrightCliSessionKey(_0x1a7057);return[_0x54bd0d['viHlk'],PLAYWRIGHT_CLI_BINARY,_0x2c88b1(0x10a)+_0x54bd0d[_0x2c88b1(0x105)](quoteShellArg,_0x1dd468),_0x54bd0d['IBSQk'],_0x54bd0d['dzaus'](quoteShellArg,_0x2fc398)][_0x2c88b1(0x125)]('\x20');}function truncateOutput(_0x65f49f,_0x1d5af4=0x7d0){const _0x439fd8=_0x3e8d,_0x412302={'wslru':function(_0xb39fb6,_0x139c71){return _0xb39fb6+_0x139c71;},'ThjKR':'...'};return _0x65f49f['length']>_0x1d5af4?_0x412302[_0x439fd8(0xf9)](_0x65f49f['slice'](0x0,_0x1d5af4),_0x412302[_0x439fd8(0xfd)]):_0x65f49f;}function _0x3e8d(_0x2e732b,_0x547c0e){_0x2e732b=_0x2e732b-0xef;const _0x3a7b4f=_0x3a7b();let _0x3e8d8f=_0x3a7b4f[_0x2e732b];return _0x3e8d8f;}export async function runPlaywrightCliCommand(_0x186005){const _0x6113f2=_0x3e8d,_0x3f3f6c={'yHtKj':function(_0xa8f1e6,_0x1f0c0e,_0x40de97){return _0xa8f1e6(_0x1f0c0e,_0x40de97);},'oquqb':'SIGKILL','yYLAv':function(_0x5cae2c,_0x243ad9){return _0x5cae2c(_0x243ad9);},'jqjiy':function(_0x3e63b3,_0x1747b0){return _0x3e63b3??_0x1747b0;},'YAsWv':'null','VAJyO':function(_0x459f83,_0x22092b,_0x21e548,_0x3f38d3){return _0x459f83(_0x22092b,_0x21e548,_0x3f38d3);},'XBkin':'ignore','MPcIM':_0x6113f2(0x116),'fcQOT':_0x6113f2(0xfa),'XXHkc':_0x6113f2(0x11b)},_0x1ffd89=buildPlaywrightCliInvocation(_0x186005['sessionId'],_0x186005[_0x6113f2(0x11d)],_0x186005[_0x6113f2(0x123)]);return new Promise((_0x4df6e9,_0xb3dc25)=>{const _0x2d1ad9=_0x6113f2,_0x1ff360={'pecnh':_0x3f3f6c[_0x2d1ad9(0x126)],'WBFvK':function(_0x555e73,_0x445587){const _0x35ba19=_0x2d1ad9;return _0x3f3f6c[_0x35ba19(0xfc)](_0x555e73,_0x445587);},'erIwj':function(_0xdca4f2,_0x1ea078){return _0x3f3f6c['yYLAv'](_0xdca4f2,_0x1ea078);},'fYzgu':function(_0x16835b,_0x355955){const _0x45e7a2=_0x2d1ad9;return _0x3f3f6c[_0x45e7a2(0x120)](_0x16835b,_0x355955);},'nsHcK':_0x3f3f6c['YAsWv'],'hjBjV':function(_0x2d404e,_0x4f3bc3){return _0x2d404e??_0x4f3bc3;}},_0x38ccad=_0x3f3f6c['VAJyO'](spawn,_0x1ffd89[_0x2d1ad9(0x103)],_0x1ffd89['args'],{'cwd':_0x186005[_0x2d1ad9(0xfe)],'env':_0x186005[_0x2d1ad9(0x124)],'stdio':[_0x3f3f6c['XBkin'],_0x3f3f6c[_0x2d1ad9(0x112)],'pipe']});let _0x5c3b40='',_0x584d90='',_0x3630e5=![];const _0x3fd787=_0x186005[_0x2d1ad9(0xff)]&&_0x186005[_0x2d1ad9(0xff)]>0x0?_0x3f3f6c['yHtKj'](setTimeout,()=>{const _0x36092e=_0x2d1ad9;_0x3630e5=!![],_0x38ccad['kill'](_0x36092e(0xf5)),_0x3f3f6c[_0x36092e(0x10b)](setTimeout,()=>{try{_0x38ccad['kill'](_0x1ff360['pecnh']);}catch{}},0x3e8);},_0x186005[_0x2d1ad9(0xff)]):null;_0x38ccad['stdout']?.['on'](_0x3f3f6c['fcQOT'],_0x494d3c=>{_0x5c3b40+=_0x494d3c['toString']();}),_0x38ccad[_0x2d1ad9(0x10d)]?.['on']('data',_0x15e32b=>{const _0x36f483=_0x2d1ad9;_0x584d90+=_0x15e32b[_0x36f483(0xf2)]();}),_0x38ccad['on']('error',_0x3dc228=>{const _0x7c607d=_0x2d1ad9;if(_0x3fd787)_0x1ff360[_0x7c607d(0x118)](clearTimeout,_0x3fd787);_0x1ff360['WBFvK'](_0xb3dc25,_0x3dc228);}),_0x38ccad['on'](_0x3f3f6c['XXHkc'],(_0x1c4547,_0x294a68)=>{const _0x6b021e=_0x2d1ad9;if(_0x3fd787)clearTimeout(_0x3fd787);if(_0x1c4547===0x0){_0x1ff360[_0x6b021e(0x127)](_0x4df6e9,{'stdout':_0x5c3b40,'stderr':_0x584d90,'invocation':_0x1ffd89});return;}const _0x290c40=_0x3630e5?'timed\x20out\x20after\x20'+_0x186005['timeoutMs']+'ms':'exited\x20with\x20code='+_0x1ff360['fYzgu'](_0x1c4547,_0x1ff360['nsHcK'])+_0x6b021e(0x113)+_0x1ff360[_0x6b021e(0xf0)](_0x294a68,_0x1ff360[_0x6b021e(0x121)]);_0xb3dc25(new Error(_0x6b021e(0x100)+_0x1ffd89['subcommand']+'\x20'+_0x290c40+'\x0astdout:\x20'+truncateOutput(_0x5c3b40)+_0x6b021e(0x111)+truncateOutput(_0x584d90)));});});}export function extractBashCommand(_0x5bb959){const _0x2ca540=_0x3e8d,_0x45491f={'InJMP':'command','RKBRC':function(_0x2ca45c,_0x3d0498){return _0x2ca45c??_0x3d0498;}},_0x448918=[_0x45491f['InJMP'],'cmd',_0x2ca540(0xf1),'bash_command'];for(const _0x1dbb86 of _0x448918){const _0x243966=_0x5bb959[_0x1dbb86];if(typeof _0x243966==='string'&&_0x243966[_0x2ca540(0x110)]())return _0x243966;}const _0x112316=Object[_0x2ca540(0x117)](_0x5bb959)['find'](_0x49aefa=>typeof _0x49aefa===_0x2ca540(0x115)&&_0x49aefa['trim']()['length']>0x0);return _0x45491f['RKBRC'](_0x112316,null);}export function parsePlaywrightCliCommand(_0x5d5a85){const _0xd19bcc=_0x5d5a85['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0xd19bcc?.[0x1]??null;}function _0x3a7b(){const _0x25c0ab=['script','toString','slice','2547pMcYEQ','SIGTERM','209166qqKIev','mImlu','--config','wslru','data','test','yYLAv','ThjKR','cwd','timeoutMs','playwright-cli\x20','1237695hXubCJ','491932FlxBhs','command','9015516xvCnKH','dzaus','972RrCgxM','56eNAsyt','\x27\x5c\x27\x27','NMZMl','-s=','yHtKj','21373280luBJRF','stderr','hex','sha256','trim','\x0astderr:\x20','MPcIM','\x20signal=','npx','string','pipe','values','WBFvK','digest','2736324UCSqYg','close','BMuGA','configPath','rg-','245NMBFor','jqjiy','nsHcK','update','commandArgs','env','join','oquqb','erIwj','PLanX','hjBjV'];_0x3a7b=function(){return _0x25c0ab;};return _0x3a7b();}
@@ -1 +1 @@
1
- function _0xe951(_0x1d6021,_0xc62730){_0x1d6021=_0x1d6021-0xde;const _0x144d11=_0x144d();let _0xe951bf=_0x144d11[_0x1d6021];return _0xe951bf;}const _0xde7a4=_0xe951;(function(_0x2be7c,_0x4561d3){const _0x59cdfd=_0xe951,_0x201811=_0x2be7c();while(!![]){try{const _0x47997a=parseInt(_0x59cdfd(0xe5))/0x1*(parseInt(_0x59cdfd(0xe8))/0x2)+-parseInt(_0x59cdfd(0xe3))/0x3+parseInt(_0x59cdfd(0xe6))/0x4+-parseInt(_0x59cdfd(0xe7))/0x5+-parseInt(_0x59cdfd(0xe0))/0x6+-parseInt(_0x59cdfd(0xe1))/0x7*(parseInt(_0x59cdfd(0xe4))/0x8)+parseInt(_0x59cdfd(0xe2))/0x9;if(_0x47997a===_0x4561d3)break;else _0x201811['push'](_0x201811['shift']());}catch(_0x2e5bb9){_0x201811['push'](_0x201811['shift']());}}}(_0x144d,0x82ecb));const DEFAULT_PROFILE_COMMAND=_0xde7a4(0xdf);function _0x144d(){const _0x12962e=['4046658MtHJKr','60487RaAQTl','16683102TYhLwt','3210897JQPBpd','736DbxAzW','1rJHHHN','2378044PwSPPr','1215805XorBoU','1741906GpwDLb','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','ranger\x20profile\x20add\x20local'];_0x144d=function(){return _0x12962e;};return _0x144d();}export function formatProfileRequiredMessage(_0x3b1b28){const _0x31cc67=_0xde7a4,_0x2263c7=_0x3b1b28?_0x3b1b28(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x31cc67(0xde)+_0x2263c7+'.';}
1
+ const _0x33d652=_0x4a81;function _0x2c74(){const _0x73da52=['ranger\x20profile\x20add\x20local','4uFuFbT','7935885anSHzr','1266523jbMhpR','756423SZfcEk','5413677IFUSEa','940868yVZMdQ','34080450FHugwT','14ynyagH','3952470aAmhyx','56Zfpmeu'];_0x2c74=function(){return _0x73da52;};return _0x2c74();}function _0x4a81(_0x43a122,_0x17ad0b){_0x43a122=_0x43a122-0x6e;const _0x2c7422=_0x2c74();let _0x4a81c1=_0x2c7422[_0x43a122];return _0x4a81c1;}(function(_0x530aaa,_0x2ecbc4){const _0x1fff02=_0x4a81,_0x3ab1f3=_0x530aaa();while(!![]){try{const _0x1bcbd3=-parseInt(_0x1fff02(0x70))/0x1+parseInt(_0x1fff02(0x73))/0x2+parseInt(_0x1fff02(0x72))/0x3*(parseInt(_0x1fff02(0x6e))/0x4)+-parseInt(_0x1fff02(0x6f))/0x5+-parseInt(_0x1fff02(0x76))/0x6*(parseInt(_0x1fff02(0x75))/0x7)+parseInt(_0x1fff02(0x77))/0x8*(-parseInt(_0x1fff02(0x71))/0x9)+parseInt(_0x1fff02(0x74))/0xa;if(_0x1bcbd3===_0x2ecbc4)break;else _0x3ab1f3['push'](_0x3ab1f3['shift']());}catch(_0x4deb94){_0x3ab1f3['push'](_0x3ab1f3['shift']());}}}(_0x2c74,0xe177f));const DEFAULT_PROFILE_COMMAND=_0x33d652(0x78);export function formatProfileRequiredMessage(_0xc9a481){const _0x534206={'AQOQb':function(_0x2fd9fb,_0x54ffc7){return _0x2fd9fb(_0x54ffc7);}},_0x3be27e=_0xc9a481?_0x534206['AQOQb'](_0xc9a481,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'+_0x3be27e+'.';}
@@ -1 +1 @@
1
- (function(_0x4ce52e,_0x13b3d2){const _0xad0fcd=_0x2110,_0x113aed=_0x4ce52e();while(!![]){try{const _0x474244=parseInt(_0xad0fcd(0x18e))/0x1+parseInt(_0xad0fcd(0x198))/0x2+-parseInt(_0xad0fcd(0x19c))/0x3+parseInt(_0xad0fcd(0x19d))/0x4*(-parseInt(_0xad0fcd(0x19f))/0x5)+-parseInt(_0xad0fcd(0x193))/0x6*(-parseInt(_0xad0fcd(0x191))/0x7)+parseInt(_0xad0fcd(0x1a0))/0x8*(-parseInt(_0xad0fcd(0x194))/0x9)+parseInt(_0xad0fcd(0x192))/0xa;if(_0x474244===_0x13b3d2)break;else _0x113aed['push'](_0x113aed['shift']());}catch(_0x4c4594){_0x113aed['push'](_0x113aed['shift']());}}}(_0x5988,0x4eb22));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x4f1db2=_0x2110,_0x1f0c81={'udfwu':function(_0x224670,_0x18472c){return _0x224670+_0x18472c;},'VHsyC':'</div>'},_0x5d8ef6=_0x1f0c81['udfwu'](_0x1f0c81['udfwu'](_0x1f0c81[_0x4f1db2(0x19b)](_0x4f1db2(0x195)+_0x4f1db2(0x18f),_0x4f1db2(0x19e))+'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>'+'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>',_0x1f0c81[_0x4f1db2(0x19a)])+'</div>','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'),_0x754676='\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 _0x4f1db2(0x197)+JSON['stringify'](_0x5d8ef6)+_0x4f1db2(0x196)+JSON[_0x4f1db2(0x199)](_0x754676)+_0x4f1db2(0x190);})());function _0x2110(_0x472867,_0x27fdf5){_0x472867=_0x472867-0x18e;const _0x598804=_0x5988();let _0x211013=_0x598804[_0x472867];return _0x211013;}function _0x5988(){const _0x507297=['4aVZwuM','<div\x20class=\x22ranger-banner__message\x22>','2104615HytTcY','14392GjpIHg','85742wKjjWU','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>',';\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','56nYoumJ','6627220qJBElr','114834oDDOOm','801wvQtFd','<div\x20class=\x22ranger-banner__content\x22>',';\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','\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','193196FUvEPv','stringify','VHsyC','udfwu','284406abrSqE'];_0x5988=function(){return _0x507297;};return _0x5988();}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x715c68){await _0x715c68['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
1
+ function _0xdcba(){const _0x34ec6f=['35qhllUg',';\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','42939qzxPrJ','24573PmnLDd','968212aaDHfE','jTqHv','7551230kSEbTK','1753888gCKKCm','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','cWeLs','<div\x20class=\x22ranger-banner__message\x22>','160YyTCcD','jxHFp','8qtgmMr',';\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','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','582111geqwKE','285258fxezAZ','addInitScript','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'];_0xdcba=function(){return _0x34ec6f;};return _0xdcba();}function _0x2f7b(_0x152f10,_0x413fc0){_0x152f10=_0x152f10-0xe0;const _0xdcba24=_0xdcba();let _0x2f7bef=_0xdcba24[_0x152f10];return _0x2f7bef;}(function(_0x2c957a,_0x187210){const _0x16487e=_0x2f7b,_0x1bff61=_0x2c957a();while(!![]){try{const _0x266d26=-parseInt(_0x16487e(0xf2))/0x1+-parseInt(_0x16487e(0xe7))/0x2*(parseInt(_0x16487e(0xf3))/0x3)+parseInt(_0x16487e(0xe3))/0x4+parseInt(_0x16487e(0xf0))/0x5*(-parseInt(_0x16487e(0xed))/0x6)+parseInt(_0x16487e(0xe0))/0x7+parseInt(_0x16487e(0xe9))/0x8*(parseInt(_0x16487e(0xec))/0x9)+parseInt(_0x16487e(0xe2))/0xa;if(_0x266d26===_0x187210)break;else _0x1bff61['push'](_0x1bff61['shift']());}catch(_0x293791){_0x1bff61['push'](_0x1bff61['shift']());}}}(_0xdcba,0x59402));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x4ce04f=_0x2f7b,_0x5296fc={'jTqHv':function(_0x2996fe,_0x148e92){return _0x2996fe+_0x148e92;},'nHpvU':function(_0x2e201f,_0x453b0b){return _0x2e201f+_0x453b0b;},'cWeLs':_0x4ce04f(0xe6),'oyzvP':_0x4ce04f(0xeb),'jCOcw':'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','jxHFp':'</div>'},_0x335607=_0x5296fc[_0x4ce04f(0xe1)](_0x5296fc['nHpvU']('<div\x20class=\x22ranger-banner__content\x22>',_0x4ce04f(0xe4))+_0x5296fc[_0x4ce04f(0xe5)]+_0x5296fc['oyzvP']+_0x5296fc['jCOcw']+_0x5296fc[_0x4ce04f(0xe8)]+'</div>',_0x4ce04f(0xef)),_0x4d02c8='\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'](_0x335607)+_0x4ce04f(0xf1)+JSON['stringify'](_0x4d02c8)+_0x4ce04f(0xea);})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x5a0e8f){const _0x354759=_0x2f7b;await _0x5a0e8f[_0x354759(0xee)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
@@ -1 +1 @@
1
- function _0x5c9a(_0x49b791,_0x1a7445){_0x49b791=_0x49b791-0x1d3;const _0x52baa9=_0x52ba();let _0x5c9a33=_0x52baa9[_0x49b791];return _0x5c9a33;}(function(_0xca1256,_0xd6d870){const _0x20c17e=_0x5c9a,_0x321d17=_0xca1256();while(!![]){try{const _0x808d6f=parseInt(_0x20c17e(0x1ef))/0x1+-parseInt(_0x20c17e(0x1de))/0x2*(parseInt(_0x20c17e(0x1fc))/0x3)+-parseInt(_0x20c17e(0x1f1))/0x4+parseInt(_0x20c17e(0x1ee))/0x5*(-parseInt(_0x20c17e(0x1d9))/0x6)+parseInt(_0x20c17e(0x1fe))/0x7+-parseInt(_0x20c17e(0x1e8))/0x8*(-parseInt(_0x20c17e(0x1da))/0x9)+-parseInt(_0x20c17e(0x1e0))/0xa;if(_0x808d6f===_0xd6d870)break;else _0x321d17['push'](_0x321d17['shift']());}catch(_0x22a291){_0x321d17['push'](_0x321d17['shift']());}}}(_0x52ba,0x1f0c1));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 _0x398012={'YXZSI':function(_0xcf16ba){return _0xcf16ba();},'aHcoy':'projects.json'};return join(_0x398012['YXZSI'](getRangerHomeDir),_0x398012['aHcoy']);}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0xa446c8=_0x5c9a,_0x41c3c2={'FswDb':function(_0x359e81){return _0x359e81();},'KmJRr':function(_0x9bf0f8,_0x5b8a81,_0xf9613){return _0x9bf0f8(_0x5b8a81,_0xf9613);},'GwPLY':'utf-8','HmWuu':function(_0x34ecbf,_0x47c825){return _0x34ecbf instanceof _0x47c825;},'XxEWz':function(_0x11c293,_0xf4520d){return _0x11c293(_0xf4520d);},'UorRW':function(_0xccf671,_0xdce96b){return _0xccf671!==_0xdce96b;},'toYQi':function(_0x4ed5f5,_0x131fe6){return _0x4ed5f5!==_0x131fe6;},'Zdpnl':function(_0x5a4f51){return _0x5a4f51();}},_0x9b530d=getProjectsConfigPath();if(!existsSync(_0x9b530d))return _0x41c3c2['FswDb'](emptyConfig);let _0x8b4b8f;try{_0x8b4b8f=_0x41c3c2[_0xa446c8(0x1e4)](readFileSync,_0x9b530d,_0x41c3c2[_0xa446c8(0x1f8)]);}catch(_0x189600){const _0x18a97f=_0x41c3c2['HmWuu'](_0x189600,Error)?_0x189600['message']:_0x41c3c2[_0xa446c8(0x1d5)](String,_0x189600);return console[_0xa446c8(0x1eb)](_0xa446c8(0x1dd)+_0x9b530d+':\x20'+_0x18a97f+_0xa446c8(0x1d6)),_0x41c3c2['FswDb'](emptyConfig);}let _0x2ddbc0;try{_0x2ddbc0=JSON[_0xa446c8(0x1f3)](_0x8b4b8f);}catch(_0x5d3500){const _0x39e56d=_0x5d3500 instanceof Error?_0x5d3500['message']:String(_0x5d3500);return console['warn'](_0xa446c8(0x1e3)+_0x9b530d+'\x20is\x20not\x20valid\x20JSON\x20('+_0x39e56d+').\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();}if(!_0x2ddbc0||typeof _0x2ddbc0!==_0xa446c8(0x1fb)||Array['isArray'](_0x2ddbc0)||_0x41c3c2['UorRW'](_0x2ddbc0['version'],CURRENT_VERSION)||_0x41c3c2[_0xa446c8(0x1d8)](typeof _0x2ddbc0[_0xa446c8(0x1e7)],'object')||_0x2ddbc0[_0xa446c8(0x1e7)]===null||Array[_0xa446c8(0x1dc)](_0x2ddbc0['projects']))return console['warn']('[ranger]\x20Warning:\x20'+_0x9b530d+_0xa446c8(0x1f0)),_0x41c3c2['Zdpnl'](emptyConfig);return _0x2ddbc0;}function _0x52ba(){const _0x5a0cdf=['TKfkT','utf-8','XxEWz','.\x20Ignoring\x20local\x20profile\x20overrides.','rRjuP','toYQi','282LJqTgJ','4167bJzKcc','length','isArray','[ranger]\x20Warning:\x20failed\x20to\x20read\x20','68gpIaYp','lfUFV','172100KKMFYL','lastProfile','now','[ranger]\x20Warning:\x20','KmJRr','nVNCA','.tmp','projects','3304hNwsUO','pZckI','split','warn','settings','bSWNW','17715xHQvQD','178913rIkxde','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','474164aQmQzG','cpsoj','parse','YNUcs','keys','entries','profiles','GwPLY','JlgDF','XVCpA','object','16707lJlqDf','setupHeaders','1740585dQrpGm','scrRq','keyPath\x20is\x20required'];_0x52ba=function(){return _0x5a0cdf;};return _0x52ba();}export function writeProjectsConfig(_0x583f17){const _0xe4ee15=_0x5c9a,_0x2d6b19={'bSWNW':function(_0x5853f5,_0x51d960,_0x4e7476){return _0x5853f5(_0x51d960,_0x4e7476);},'cpsoj':function(_0x321679,_0x2252c6){return _0x321679+_0x2252c6;},'vhUiw':function(_0x9037e1,_0x30c6da,_0xe50d8f,_0x468ee5){return _0x9037e1(_0x30c6da,_0xe50d8f,_0x468ee5);},'pZckI':function(_0x4011be,_0x13b694){return _0x4011be(_0x13b694);}},_0x449b04=getProjectsConfigPath(),_0x153996=dirname(_0x449b04);!existsSync(_0x153996)&&_0x2d6b19[_0xe4ee15(0x1ed)](mkdirSync,_0x153996,{'recursive':!![]});const _0x1046a5=_0x449b04+'.'+process['pid']+'.'+Date[_0xe4ee15(0x1e2)]()+_0xe4ee15(0x1e6),_0x375640=_0x2d6b19[_0xe4ee15(0x1f2)](JSON['stringify'](_0x583f17,null,0x2),'\x0a');try{_0x2d6b19['vhUiw'](writeFileSync,_0x1046a5,_0x375640,{'encoding':_0xe4ee15(0x1d4),'mode':0x180}),_0x2d6b19['bSWNW'](renameSync,_0x1046a5,_0x449b04);}catch(_0x3cd96b){try{_0x2d6b19['pZckI'](existsSync,_0x1046a5)&&_0x2d6b19[_0xe4ee15(0x1e9)](unlinkSync,_0x1046a5);}catch{}throw _0x3cd96b;}}export function readProfileOverrides(_0x2c2ea4,_0x9b6f0){const _0x5e5ae8=_0x5c9a,_0x2854e4={'lyrkA':function(_0x46c08a){return _0x46c08a();}},_0x2f059e=_0x2854e4['lyrkA'](readProjectsConfig),_0x3da52b=_0x2f059e[_0x5e5ae8(0x1e7)][_0x2c2ea4];if(!_0x3da52b||!_0x3da52b['profiles'])return null;const _0x42838c=_0x3da52b[_0x5e5ae8(0x1f7)][_0x9b6f0];if(!_0x42838c||!_0x42838c['settings'])return null;return _0x42838c['settings']??null;}export function setProfileOverride(_0x34f4f8,_0x21eaec,_0x3a4471,_0xf3bec0){const _0x269ae6=_0x5c9a,_0x43f5e3={'hWzZS':function(_0x15fc31){return _0x15fc31();}};if(!_0x3a4471)throw new Error('keyPath\x20is\x20required');const _0x3fe8cc=_0x43f5e3['hWzZS'](readProjectsConfig),_0x533c7e=_0x3fe8cc[_0x269ae6(0x1e7)][_0x34f4f8]??={},_0x2f2b06=_0x533c7e['profiles']??={},_0x55a541=_0x2f2b06[_0x21eaec]??={},_0x47c7dd=_0x55a541[_0x269ae6(0x1ec)]??={};setByKeyPath(_0x47c7dd,_0x3a4471,_0xf3bec0),writeProjectsConfig(_0x3fe8cc);}export function unsetProfileOverride(_0x53df2a,_0x3a4f8d,_0x1058b6){const _0x1133d8=_0x5c9a,_0x5d580b={'pNZlC':_0x1133d8(0x200),'JlgDF':function(_0x2034e6){return _0x2034e6();},'ssKqb':function(_0x5e8503,_0x47e60b,_0x5f1763){return _0x5e8503(_0x47e60b,_0x5f1763);}};if(!_0x1058b6)throw new Error(_0x5d580b['pNZlC']);const _0x230535=_0x5d580b[_0x1133d8(0x1f9)](readProjectsConfig),_0x1e0fe9=_0x230535['projects'][_0x53df2a];if(!_0x1e0fe9?.[_0x1133d8(0x1f7)])return![];const _0x19ce38=_0x1e0fe9['profiles'][_0x3a4f8d];if(!_0x19ce38?.[_0x1133d8(0x1ec)])return![];const _0x2e3465=_0x5d580b['ssKqb'](deleteByKeyPath,_0x19ce38['settings'],_0x1058b6);if(!_0x2e3465)return![];return writeProjectsConfig(_0x230535),!![];}export function resetProfileOverrides(_0x367c1f,_0x63d92f){const _0x7b06e1=_0x5c9a,_0x2577a6={'nVNCA':function(_0x5022bf,_0x250b7e){return _0x5022bf===_0x250b7e;}},_0x2269e5=readProjectsConfig(),_0x291863=_0x2269e5[_0x7b06e1(0x1e7)][_0x367c1f];if(!_0x291863?.['profiles'])return;if(!(_0x63d92f in _0x291863['profiles']))return;delete _0x291863['profiles'][_0x63d92f],_0x2577a6[_0x7b06e1(0x1e5)](Object[_0x7b06e1(0x1f5)](_0x291863['profiles'])[_0x7b06e1(0x1db)],0x0)&&(!_0x291863['lastProfile']?delete _0x2269e5[_0x7b06e1(0x1e7)][_0x367c1f]:_0x291863['profiles']={}),writeProjectsConfig(_0x2269e5);}export function readLastProfile(_0x162e4e){const _0x21b5dc=_0x5c9a,_0x2467fb={'hgJyy':function(_0x1bfac4){return _0x1bfac4();}},_0x5a4ac1=_0x2467fb['hgJyy'](readProjectsConfig),_0x29c501=_0x5a4ac1[_0x21b5dc(0x1e7)][_0x162e4e];return _0x29c501?.['lastProfile']??null;}export function writeLastProfile(_0x26adf8,_0x4d820b){const _0x2ab50e={'gHeCP':function(_0x506658){return _0x506658();}},_0x36c72f=_0x2ab50e['gHeCP'](readProjectsConfig),_0x40f932=_0x36c72f['projects'][_0x26adf8]??={};_0x40f932['lastProfile']=_0x4d820b,writeProjectsConfig(_0x36c72f);}export function clearLastProfile(_0x519371,_0x314d95){const _0x154462=_0x5c9a,_0x1cb885={'scrRq':function(_0x2f84bf){return _0x2f84bf();},'UuxdK':function(_0x1f219d,_0xb71e4a){return _0x1f219d===_0xb71e4a;}},_0xd6628f=_0x1cb885[_0x154462(0x1ff)](readProjectsConfig),_0xb16e29=_0xd6628f[_0x154462(0x1e7)][_0x519371];if(!_0xb16e29||_0xb16e29[_0x154462(0x1e1)]!==_0x314d95)return![];return delete _0xb16e29['lastProfile'],(!_0xb16e29['profiles']||_0x1cb885['UuxdK'](Object['keys'](_0xb16e29[_0x154462(0x1f7)])['length'],0x0))&&delete _0xd6628f['projects'][_0x519371],writeProjectsConfig(_0xd6628f),!![];}export function mergeCloudProfileSettings(_0x5c8b3b,_0x56e2b9){const _0x1ec02b=_0x5c9a,_0x385e47={'WxQpS':function(_0x55c5bd,_0xf75043){return _0x55c5bd??_0xf75043;},'rRjuP':function(_0x12d2a8,_0x144713){return _0x12d2a8(_0x144713);}},_0x5ac98d={..._0x385e47['WxQpS'](_0x5c8b3b,{})};if(!_0x56e2b9)return _0x5ac98d;for(const [_0x5d1db2,_0x579f3f]of Object[_0x1ec02b(0x1f6)](_0x56e2b9)){if(_0x579f3f===undefined)continue;if(_0x579f3f===null){delete _0x5ac98d[_0x5d1db2];continue;}if(_0x5d1db2==='headers'||_0x5d1db2===_0x1ec02b(0x1fd)){const _0x1db1eb=_0x385e47[_0x1ec02b(0x1d7)](asRecord,_0x5ac98d[_0x5d1db2])??{},_0x62f50d=_0x385e47['rRjuP'](asRecord,_0x579f3f);if(!_0x62f50d){_0x5ac98d[_0x5d1db2]=_0x579f3f;continue;}const _0x350fcc={..._0x1db1eb};for(const [_0x563259,_0x4de3b3]of Object[_0x1ec02b(0x1f6)](_0x62f50d)){if(_0x4de3b3===null)delete _0x350fcc[_0x563259];else _0x4de3b3!==undefined&&(_0x350fcc[_0x563259]=_0x4de3b3);}_0x5ac98d[_0x5d1db2]=_0x350fcc;continue;}_0x5ac98d[_0x5d1db2]=_0x579f3f;}return _0x5ac98d;}function asRecord(_0xfc5f80){const _0x263188=_0x5c9a,_0x10370e={'YNUcs':_0x263188(0x1fb)};return _0xfc5f80&&typeof _0xfc5f80===_0x10370e[_0x263188(0x1f4)]&&!Array['isArray'](_0xfc5f80)?_0xfc5f80:undefined;}function setByKeyPath(_0x399357,_0x142e9b,_0x24ed2e){const _0x4b2183=_0x5c9a,_0x800856={'XVCpA':function(_0x5ee93b,_0x5f2e13){return _0x5ee93b-_0x5f2e13;},'nlYJT':function(_0x1ac800,_0x51edc3){return _0x1ac800-_0x51edc3;}},_0x25b8e8=_0x142e9b[_0x4b2183(0x1ea)]('.');let _0x237283=_0x399357;for(let _0x294da4=0x0;_0x294da4<_0x800856[_0x4b2183(0x1fa)](_0x25b8e8[_0x4b2183(0x1db)],0x1);_0x294da4++){const _0x1f0ebe=_0x25b8e8[_0x294da4],_0x6f0c0=_0x237283[_0x1f0ebe];(!_0x6f0c0||typeof _0x6f0c0!==_0x4b2183(0x1fb)||Array[_0x4b2183(0x1dc)](_0x6f0c0))&&(_0x237283[_0x1f0ebe]={}),_0x237283=_0x237283[_0x1f0ebe];}_0x237283[_0x25b8e8[_0x800856['nlYJT'](_0x25b8e8['length'],0x1)]]=_0x24ed2e;}function deleteByKeyPath(_0xd7d4bb,_0x1638a9){const _0x26313a=_0x5c9a,_0x5e22e1={'lfUFV':function(_0x5187fd,_0x5a85a7){return _0x5187fd!==_0x5a85a7;},'TKfkT':'object','kZIUi':function(_0x56d0af,_0x5184e1){return _0x56d0af-_0x5184e1;}},_0x2ef9fc=_0x1638a9[_0x26313a(0x1ea)]('.');let _0x4f0559=_0xd7d4bb;for(let _0x4520a3=0x0;_0x4520a3<_0x2ef9fc[_0x26313a(0x1db)]-0x1;_0x4520a3++){const _0x1a790f=_0x2ef9fc[_0x4520a3],_0x15fc86=_0x4f0559[_0x1a790f];if(!_0x15fc86||_0x5e22e1[_0x26313a(0x1df)](typeof _0x15fc86,_0x5e22e1[_0x26313a(0x1d3)])||Array[_0x26313a(0x1dc)](_0x15fc86))return![];_0x4f0559=_0x15fc86;}const _0x846c76=_0x2ef9fc[_0x5e22e1['kZIUi'](_0x2ef9fc[_0x26313a(0x1db)],0x1)];if(!(_0x846c76 in _0x4f0559))return![];return delete _0x4f0559[_0x846c76],!![];}
1
+ (function(_0x5dd3d0,_0x1a9194){const _0x209463=_0x86d1,_0x553323=_0x5dd3d0();while(!![]){try{const _0x2ee167=parseInt(_0x209463(0x13e))/0x1+-parseInt(_0x209463(0x11b))/0x2*(-parseInt(_0x209463(0x132))/0x3)+-parseInt(_0x209463(0x135))/0x4+parseInt(_0x209463(0x126))/0x5+parseInt(_0x209463(0x123))/0x6*(parseInt(_0x209463(0x138))/0x7)+parseInt(_0x209463(0x12e))/0x8*(parseInt(_0x209463(0x136))/0x9)+-parseInt(_0x209463(0x122))/0xa;if(_0x2ee167===_0x1a9194)break;else _0x553323['push'](_0x553323['shift']());}catch(_0x1d0d7f){_0x553323['push'](_0x553323['shift']());}}}(_0x4ca9,0x2a15c));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 _0x18122a={'EWpxf':function(_0x27e46f,_0x268646,_0x4a0b00){return _0x27e46f(_0x268646,_0x4a0b00);},'tvbdR':function(_0x5bc6af){return _0x5bc6af();},'sWvJI':'projects.json'};return _0x18122a['EWpxf'](join,_0x18122a['tvbdR'](getRangerHomeDir),_0x18122a['sWvJI']);}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x2014ac=_0x86d1,_0x196e3d={'MVdwj':function(_0x452668,_0x5ca8c7){return _0x452668(_0x5ca8c7);},'MWrpc':function(_0x1dcb59,_0x22094e,_0x2d2385){return _0x1dcb59(_0x22094e,_0x2d2385);},'ebNiD':function(_0x2b7877,_0x5f86d2){return _0x2b7877 instanceof _0x5f86d2;},'EMrOj':function(_0x560852){return _0x560852();},'gRQyw':'object','IRuyu':function(_0x317b55,_0x1834fb){return _0x317b55!==_0x1834fb;}},_0x5ae4fd=getProjectsConfigPath();if(!_0x196e3d['MVdwj'](existsSync,_0x5ae4fd))return emptyConfig();let _0x454f47;try{_0x454f47=_0x196e3d['MWrpc'](readFileSync,_0x5ae4fd,'utf-8');}catch(_0x297bc7){const _0x211069=_0x297bc7 instanceof Error?_0x297bc7['message']:String(_0x297bc7);return console['warn'](_0x2014ac(0x131)+_0x5ae4fd+':\x20'+_0x211069+'.\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();}let _0x99d450;try{_0x99d450=JSON[_0x2014ac(0x120)](_0x454f47);}catch(_0x11771c){const _0x28e2c8=_0x196e3d['ebNiD'](_0x11771c,Error)?_0x11771c['message']:String(_0x11771c);return console['warn']('[ranger]\x20Warning:\x20'+_0x5ae4fd+'\x20is\x20not\x20valid\x20JSON\x20('+_0x28e2c8+').\x20Ignoring\x20local\x20profile\x20overrides.'),_0x196e3d['EMrOj'](emptyConfig);}if(!_0x99d450||typeof _0x99d450!==_0x196e3d['gRQyw']||Array[_0x2014ac(0x121)](_0x99d450)||_0x196e3d['IRuyu'](_0x99d450['version'],CURRENT_VERSION)||typeof _0x99d450[_0x2014ac(0x13b)]!==_0x196e3d[_0x2014ac(0x11c)]||_0x99d450['projects']===null||Array[_0x2014ac(0x121)](_0x99d450[_0x2014ac(0x13b)]))return console['warn'](_0x2014ac(0x133)+_0x5ae4fd+'\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.'),_0x196e3d['EMrOj'](emptyConfig);return _0x99d450;}export function writeProjectsConfig(_0x44d886){const _0x2cd778=_0x86d1,_0x11680e={'mlshP':function(_0x3688ed){return _0x3688ed();},'znmcW':function(_0x43a0af,_0x9f7e08,_0x5b5bc4){return _0x43a0af(_0x9f7e08,_0x5b5bc4);},'WvoPB':function(_0x4f13a8,_0x18a231){return _0x4f13a8+_0x18a231;},'spXOe':function(_0x510f21,_0x38eb47){return _0x510f21(_0x38eb47);}},_0x34469d=_0x11680e[_0x2cd778(0x13d)](getProjectsConfigPath),_0x79b568=dirname(_0x34469d);!existsSync(_0x79b568)&&_0x11680e['znmcW'](mkdirSync,_0x79b568,{'recursive':!![]});const _0x8fbce8=_0x34469d+'.'+process['pid']+'.'+Date[_0x2cd778(0x139)]()+_0x2cd778(0x118),_0xd07b12=_0x11680e[_0x2cd778(0x12b)](JSON[_0x2cd778(0x130)](_0x44d886,null,0x2),'\x0a');try{writeFileSync(_0x8fbce8,_0xd07b12,{'encoding':_0x2cd778(0x12c),'mode':0x180}),renameSync(_0x8fbce8,_0x34469d);}catch(_0x2b3861){try{existsSync(_0x8fbce8)&&_0x11680e[_0x2cd778(0x140)](unlinkSync,_0x8fbce8);}catch{}throw _0x2b3861;}}export function readProfileOverrides(_0x3c1e1d,_0x54baea){const _0x5afe2f=_0x86d1,_0x19fb82={'CEbrS':function(_0x46120a){return _0x46120a();}},_0x2f0000=_0x19fb82['CEbrS'](readProjectsConfig),_0x14dcd1=_0x2f0000[_0x5afe2f(0x13b)][_0x3c1e1d];if(!_0x14dcd1||!_0x14dcd1[_0x5afe2f(0x141)])return null;const _0x287793=_0x14dcd1[_0x5afe2f(0x141)][_0x54baea];if(!_0x287793||!_0x287793['settings'])return null;return _0x287793[_0x5afe2f(0x127)]??null;}export function setProfileOverride(_0x545def,_0xcb8dc8,_0x40416e,_0x1b6173){const _0xc6e4dc=_0x86d1,_0x330608={'yRmhe':'keyPath\x20is\x20required','YkGqm':function(_0x165cd7){return _0x165cd7();},'keniN':function(_0x56cfb7,_0x3b731e,_0x3a56af,_0x1562d8){return _0x56cfb7(_0x3b731e,_0x3a56af,_0x1562d8);}};if(!_0x40416e)throw new Error(_0x330608[_0xc6e4dc(0x11e)]);const _0x4e3872=_0x330608['YkGqm'](readProjectsConfig),_0x227e6b=_0x4e3872['projects'][_0x545def]??={},_0xea49f5=_0x227e6b[_0xc6e4dc(0x141)]??={},_0x3ba6fd=_0xea49f5[_0xcb8dc8]??={},_0x2c0ea2=_0x3ba6fd['settings']??={};_0x330608['keniN'](setByKeyPath,_0x2c0ea2,_0x40416e,_0x1b6173),writeProjectsConfig(_0x4e3872);}export function unsetProfileOverride(_0x47a94e,_0x5a6a07,_0x53f4c5){const _0x111c90=_0x86d1,_0x2f527f={'KkmcV':function(_0xa867b4,_0x178390,_0x4e6250){return _0xa867b4(_0x178390,_0x4e6250);}};if(!_0x53f4c5)throw new Error(_0x111c90(0x124));const _0x474305=readProjectsConfig(),_0xa84254=_0x474305['projects'][_0x47a94e];if(!_0xa84254?.[_0x111c90(0x141)])return![];const _0x5e25a0=_0xa84254[_0x111c90(0x141)][_0x5a6a07];if(!_0x5e25a0?.['settings'])return![];const _0x3e7ed3=_0x2f527f['KkmcV'](deleteByKeyPath,_0x5e25a0[_0x111c90(0x127)],_0x53f4c5);if(!_0x3e7ed3)return![];return writeProjectsConfig(_0x474305),!![];}export function resetProfileOverrides(_0x2ec96d,_0x31c733){const _0x270981=_0x86d1,_0x3df1d7=readProjectsConfig(),_0xbe2d68=_0x3df1d7[_0x270981(0x13b)][_0x2ec96d];if(!_0xbe2d68?.[_0x270981(0x141)])return;if(!(_0x31c733 in _0xbe2d68['profiles']))return;delete _0xbe2d68['profiles'][_0x31c733],Object['keys'](_0xbe2d68[_0x270981(0x141)])[_0x270981(0x11d)]===0x0&&(!_0xbe2d68['lastProfile']?delete _0x3df1d7[_0x270981(0x13b)][_0x2ec96d]:_0xbe2d68['profiles']={}),writeProjectsConfig(_0x3df1d7);}function _0x86d1(_0x25e893,_0x343fc1){_0x25e893=_0x25e893-0x117;const _0x4ca9e9=_0x4ca9();let _0x86d171=_0x4ca9e9[_0x25e893];return _0x86d171;}function _0x4ca9(){const _0x368816=['headers','137720VahUAE','settings','wDkDS','entries','lastProfile','WvoPB','utf-8','XJmoS','275104PJYGaB','setupHeaders','stringify','[ranger]\x20Warning:\x20failed\x20to\x20read\x20','15SITVOn','[ranger]\x20Warning:\x20','QbJof','723620QOPGgq','54KGWZoy','XtJNi','21QsvRwg','now','split','projects','MpHSH','mlshP','146996lJSsHX','HXfUz','spXOe','profiles','object','.tmp','NCkwB','WMCBq','55434JFdeof','gRQyw','length','yRmhe','PEYfJ','parse','isArray','1685530XayYxk','4770YfNZgG','keyPath\x20is\x20required'];_0x4ca9=function(){return _0x368816;};return _0x4ca9();}export function readLastProfile(_0x12beb2){const _0x3ec48a=_0x86d1,_0x5136a7=readProjectsConfig(),_0x420f52=_0x5136a7[_0x3ec48a(0x13b)][_0x12beb2];return _0x420f52?.[_0x3ec48a(0x12a)]??null;}export function writeLastProfile(_0x5ebac3,_0xa23221){const _0x5b73a7=_0x86d1,_0x497a9f={'DOCyH':function(_0x3753db,_0x179f59){return _0x3753db(_0x179f59);}},_0x59dd82=readProjectsConfig(),_0x252b00=_0x59dd82[_0x5b73a7(0x13b)][_0x5ebac3]??={};_0x252b00['lastProfile']=_0xa23221,_0x497a9f['DOCyH'](writeProjectsConfig,_0x59dd82);}export function clearLastProfile(_0x4a8ffd,_0x4de407){const _0x3098a2=_0x86d1,_0x555d37={'ImqXc':function(_0x1eedc0){return _0x1eedc0();},'QbJof':function(_0x32fd0a,_0x5ace33){return _0x32fd0a!==_0x5ace33;},'NCkwB':function(_0x2ececa,_0x235e3f){return _0x2ececa(_0x235e3f);}},_0x3daa2b=_0x555d37['ImqXc'](readProjectsConfig),_0x3a47f2=_0x3daa2b[_0x3098a2(0x13b)][_0x4a8ffd];if(!_0x3a47f2||_0x555d37[_0x3098a2(0x134)](_0x3a47f2[_0x3098a2(0x12a)],_0x4de407))return![];return delete _0x3a47f2['lastProfile'],(!_0x3a47f2[_0x3098a2(0x141)]||Object['keys'](_0x3a47f2[_0x3098a2(0x141)])[_0x3098a2(0x11d)]===0x0)&&delete _0x3daa2b[_0x3098a2(0x13b)][_0x4a8ffd],_0x555d37[_0x3098a2(0x119)](writeProjectsConfig,_0x3daa2b),!![];}export function mergeCloudProfileSettings(_0x5ac9c1,_0x860318){const _0x4036ab=_0x86d1,_0x6b8ce={'MpHSH':function(_0x5053bc,_0x58d15c){return _0x5053bc===_0x58d15c;},'QOnrC':_0x4036ab(0x125),'PEYfJ':function(_0x15504b,_0x22e84c){return _0x15504b===_0x22e84c;},'HXfUz':_0x4036ab(0x12f),'XtJNi':function(_0xa931b7,_0xc99246){return _0xa931b7(_0xc99246);},'PPvvP':function(_0x27a49f,_0x2d6d87){return _0x27a49f===_0x2d6d87;}},_0x23164c={..._0x5ac9c1??{}};if(!_0x860318)return _0x23164c;for(const [_0x446006,_0x3c0dcd]of Object['entries'](_0x860318)){if(_0x6b8ce[_0x4036ab(0x13c)](_0x3c0dcd,undefined))continue;if(_0x3c0dcd===null){delete _0x23164c[_0x446006];continue;}if(_0x6b8ce['MpHSH'](_0x446006,_0x6b8ce['QOnrC'])||_0x6b8ce[_0x4036ab(0x11f)](_0x446006,_0x6b8ce[_0x4036ab(0x13f)])){const _0x389f73=asRecord(_0x23164c[_0x446006])??{},_0x708e43=_0x6b8ce[_0x4036ab(0x137)](asRecord,_0x3c0dcd);if(!_0x708e43){_0x23164c[_0x446006]=_0x3c0dcd;continue;}const _0x335ac8={..._0x389f73};for(const [_0x3a04d5,_0x46f808]of Object[_0x4036ab(0x129)](_0x708e43)){if(_0x6b8ce['PPvvP'](_0x46f808,null))delete _0x335ac8[_0x3a04d5];else _0x46f808!==undefined&&(_0x335ac8[_0x3a04d5]=_0x46f808);}_0x23164c[_0x446006]=_0x335ac8;continue;}_0x23164c[_0x446006]=_0x3c0dcd;}return _0x23164c;}function asRecord(_0x25faa0){const _0x4f969f=_0x86d1,_0x1f9bc5={'WMCBq':_0x4f969f(0x117)};return _0x25faa0&&typeof _0x25faa0===_0x1f9bc5[_0x4f969f(0x11a)]&&!Array[_0x4f969f(0x121)](_0x25faa0)?_0x25faa0:undefined;}function setByKeyPath(_0x466c33,_0x41e8b6,_0x48cdc9){const _0x41f85d=_0x86d1,_0x36ca8f={'BWGPd':function(_0x1dad8f,_0x58c6ad){return _0x1dad8f-_0x58c6ad;},'wDkDS':'object'},_0x1c9df1=_0x41e8b6[_0x41f85d(0x13a)]('.');let _0x1b2a5a=_0x466c33;for(let _0x7e2794=0x0;_0x7e2794<_0x36ca8f['BWGPd'](_0x1c9df1[_0x41f85d(0x11d)],0x1);_0x7e2794++){const _0x58f5a4=_0x1c9df1[_0x7e2794],_0x5063a5=_0x1b2a5a[_0x58f5a4];(!_0x5063a5||typeof _0x5063a5!==_0x36ca8f[_0x41f85d(0x128)]||Array[_0x41f85d(0x121)](_0x5063a5))&&(_0x1b2a5a[_0x58f5a4]={}),_0x1b2a5a=_0x1b2a5a[_0x58f5a4];}_0x1b2a5a[_0x1c9df1[_0x1c9df1['length']-0x1]]=_0x48cdc9;}function deleteByKeyPath(_0x44dba0,_0x5a63a7){const _0x32eded=_0x86d1,_0x30c53f={'XJmoS':function(_0x7856d8,_0x183af1){return _0x7856d8-_0x183af1;},'Jttkt':'object','QEMDa':function(_0x1eb6a6,_0x3e4f0f){return _0x1eb6a6-_0x3e4f0f;}},_0x5d6835=_0x5a63a7[_0x32eded(0x13a)]('.');let _0x33977f=_0x44dba0;for(let _0x17f848=0x0;_0x17f848<_0x30c53f[_0x32eded(0x12d)](_0x5d6835[_0x32eded(0x11d)],0x1);_0x17f848++){const _0x15504a=_0x5d6835[_0x17f848],_0x126551=_0x33977f[_0x15504a];if(!_0x126551||typeof _0x126551!==_0x30c53f['Jttkt']||Array[_0x32eded(0x121)](_0x126551))return![];_0x33977f=_0x126551;}const _0x3fabb2=_0x5d6835[_0x30c53f['QEMDa'](_0x5d6835[_0x32eded(0x11d)],0x1)];if(!(_0x3fabb2 in _0x33977f))return![];return delete _0x33977f[_0x3fabb2],!![];}
@@ -1 +1 @@
1
- (function(_0x469fd6,_0x1c173e){const _0x3a4ef5=_0x10a0,_0x21ff93=_0x469fd6();while(!![]){try{const _0x322e58=parseInt(_0x3a4ef5(0x14a))/0x1*(-parseInt(_0x3a4ef5(0x143))/0x2)+parseInt(_0x3a4ef5(0x14e))/0x3+-parseInt(_0x3a4ef5(0x144))/0x4+parseInt(_0x3a4ef5(0x152))/0x5*(parseInt(_0x3a4ef5(0x149))/0x6)+parseInt(_0x3a4ef5(0x14d))/0x7+parseInt(_0x3a4ef5(0x140))/0x8*(-parseInt(_0x3a4ef5(0x14f))/0x9)+parseInt(_0x3a4ef5(0x146))/0xa;if(_0x322e58===_0x1c173e)break;else _0x21ff93['push'](_0x21ff93['shift']());}catch(_0x5d41e1){_0x21ff93['push'](_0x21ff93['shift']());}}}(_0xf496,0xc643f));function _0x10a0(_0x5155cd,_0x2f5479){_0x5155cd=_0x5155cd-0x140;const _0xf496d7=_0xf496();let _0x10a0cb=_0xf496d7[_0x5155cd];return _0x10a0cb;}import{readFile}from'fs/promises';import{existsSync}from'fs';function _0xf496(){const _0x4670eb=['8LofktO','message','object','1466JUAvvS','6307144soNuqR','OxzNE','24943820eJVywr','PPROM','string','6YJivAt','1933minljE','config.json','gxeuH','11026743OmWqhO','1665171vDjDOS','12614409FlwYwX','model','isArray','2913415uTtJUx','thUxV'];_0xf496=function(){return _0x4670eb;};return _0xf496();}import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x549ca0=_0x10a0,_0xd558c3={'gxeuH':function(_0x1db577,_0x1bb195,_0x136466){return _0x1db577(_0x1bb195,_0x136466);},'HAdmb':_0x549ca0(0x14b)};return _0xd558c3[_0x549ca0(0x14c)](join,getRangerDir(),_0xd558c3['HAdmb']);}export async function loadRangerConfig(){const _0x5baff8=_0x10a0,_0x62a873={'soGAy':function(_0x52ce77){return _0x52ce77();},'PPROM':function(_0x3aaf42,_0xf90125){return _0x3aaf42!==_0xf90125;},'peoDM':_0x5baff8(0x142),'OxzNE':_0x5baff8(0x148),'thUxV':function(_0x11b45e,_0x1bd119){return _0x11b45e(_0x1bd119);}},_0x1843b9=_0x62a873['soGAy'](getRangerConfigPath);if(!existsSync(_0x1843b9))return{};try{const _0x6a3903=await readFile(_0x1843b9,'utf-8'),_0x266b1e=JSON['parse'](_0x6a3903);if(!_0x266b1e||_0x62a873[_0x5baff8(0x147)](typeof _0x266b1e,_0x62a873['peoDM'])||Array[_0x5baff8(0x151)](_0x266b1e))return{};const _0x26d54f={},_0x553c9b=_0x266b1e['model'];return typeof _0x553c9b===_0x62a873[_0x5baff8(0x145)]&&(_0x26d54f[_0x5baff8(0x150)]=_0x553c9b),_0x26d54f;}catch(_0x2f2962){const _0x5c9b05=_0x2f2962 instanceof Error?_0x2f2962[_0x5baff8(0x141)]:_0x62a873[_0x5baff8(0x153)](String,_0x2f2962);return console['warn']('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x1843b9+':\x20'+_0x5c9b05),{};}}
1
+ (function(_0x31923f,_0x2d4ed0){const _0x4973e7=_0x43de,_0x4181de=_0x31923f();while(!![]){try{const _0x5a3b10=-parseInt(_0x4973e7(0xc4))/0x1*(parseInt(_0x4973e7(0xc1))/0x2)+-parseInt(_0x4973e7(0xbe))/0x3*(-parseInt(_0x4973e7(0xc0))/0x4)+-parseInt(_0x4973e7(0xbd))/0x5+parseInt(_0x4973e7(0xc3))/0x6*(-parseInt(_0x4973e7(0xc6))/0x7)+parseInt(_0x4973e7(0xca))/0x8*(-parseInt(_0x4973e7(0xbf))/0x9)+parseInt(_0x4973e7(0xbb))/0xa+parseInt(_0x4973e7(0xcc))/0xb;if(_0x5a3b10===_0x2d4ed0)break;else _0x4181de['push'](_0x4181de['shift']());}catch(_0x1888f3){_0x4181de['push'](_0x4181de['shift']());}}}(_0x4c53,0x25319));function _0x43de(_0x44dac1,_0x493461){_0x44dac1=_0x44dac1-0xbb;const _0x4c531a=_0x4c53();let _0x43decd=_0x4c531a[_0x44dac1];return _0x43decd;}import{readFile}from'fs/promises';import{existsSync}from'fs';function _0x4c53(){const _0x429b93=['FmPkk','TcVSB','191696PTBOih','object','10150151JTEZya','config.json','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','461920dRVcKW','isArray','1354850OhEdNe','468qawCIo','72xpOsGM','1740RhWtyf','650rlMqaZ','parse','1278TQtads','453PSShYu','message','9023HzpKEO','SdgcD'];_0x4c53=function(){return _0x429b93;};return _0x4c53();}import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x3cc2da=_0x43de;return join(getRangerDir(),_0x3cc2da(0xcd));}export async function loadRangerConfig(){const _0x1cf37c=_0x43de,_0x1f9a8={'SdgcD':function(_0x24bfa0,_0x231e6f){return _0x24bfa0(_0x231e6f);},'OsCVh':function(_0x4e5d07,_0x5588a3,_0x1708e2){return _0x4e5d07(_0x5588a3,_0x1708e2);},'MXAzd':function(_0x29f091,_0x1e0d90){return _0x29f091!==_0x1e0d90;},'TcVSB':_0x1cf37c(0xcb),'FmPkk':function(_0x5a2f60,_0x1560b0){return _0x5a2f60===_0x1560b0;}},_0x233dd7=getRangerConfigPath();if(!_0x1f9a8[_0x1cf37c(0xc7)](existsSync,_0x233dd7))return{};try{const _0x464410=await _0x1f9a8['OsCVh'](readFile,_0x233dd7,'utf-8'),_0x1a9e92=JSON[_0x1cf37c(0xc2)](_0x464410);if(!_0x1a9e92||_0x1f9a8['MXAzd'](typeof _0x1a9e92,_0x1f9a8[_0x1cf37c(0xc9)])||Array[_0x1cf37c(0xbc)](_0x1a9e92))return{};const _0x250e96={},_0x59edfb=_0x1a9e92['model'];return _0x1f9a8[_0x1cf37c(0xc8)](typeof _0x59edfb,'string')&&(_0x250e96['model']=_0x59edfb),_0x250e96;}catch(_0x3c90d6){const _0x155055=_0x3c90d6 instanceof Error?_0x3c90d6[_0x1cf37c(0xc5)]:String(_0x3c90d6);return console['warn'](_0x1cf37c(0xce)+_0x233dd7+':\x20'+_0x155055),{};}}
@@ -1 +1 @@
1
- (function(_0x3fb11c,_0x897129){const _0x31e46a=_0x20e5,_0x2a707c=_0x3fb11c();while(!![]){try{const _0x17ab45=-parseInt(_0x31e46a(0x122))/0x1+parseInt(_0x31e46a(0x130))/0x2*(-parseInt(_0x31e46a(0x132))/0x3)+parseInt(_0x31e46a(0x126))/0x4*(-parseInt(_0x31e46a(0x135))/0x5)+parseInt(_0x31e46a(0x129))/0x6+parseInt(_0x31e46a(0x127))/0x7*(parseInt(_0x31e46a(0x134))/0x8)+-parseInt(_0x31e46a(0x12a))/0x9*(parseInt(_0x31e46a(0x133))/0xa)+-parseInt(_0x31e46a(0x12f))/0xb*(-parseInt(_0x31e46a(0x12e))/0xc);if(_0x17ab45===_0x897129)break;else _0x2a707c['push'](_0x2a707c['shift']());}catch(_0x48caff){_0x2a707c['push'](_0x2a707c['shift']());}}}(_0x30c6,0xe5618));import{dirname,join,parse}from'path';import{existsSync}from'fs';function _0x20e5(_0x181539,_0x4439c2){_0x181539=_0x181539-0x121;const _0x30c6a2=_0x30c6();let _0x20e53a=_0x30c6a2[_0x181539];return _0x20e53a;}import{homedir}from'os';export function getRangerRoot(){const _0x3db28b=_0x20e5,_0x28cfbf={'OuUnO':function(_0x2e760e,_0x54f7fa){return _0x2e760e!==_0x54f7fa;},'UXxBK':function(_0x7e8753,_0x3afe66){return _0x7e8753(_0x3afe66);},'ewhTh':function(_0x49618b,_0x7705c2,_0xda1f9e){return _0x49618b(_0x7705c2,_0xda1f9e);},'KFrYo':_0x3db28b(0x124),'ytkxl':function(_0x28aca3,_0x42b605){return _0x28aca3(_0x42b605);},'NPAJC':function(_0x592efe,_0x538b3c,_0x57a3c2){return _0x592efe(_0x538b3c,_0x57a3c2);}};let _0x3d0161=process[_0x3db28b(0x123)]();const _0xd9a0f4=parse(_0x3d0161)['root'];while(_0x28cfbf[_0x3db28b(0x12c)](_0x3d0161,_0xd9a0f4)){if(_0x28cfbf[_0x3db28b(0x12b)](existsSync,_0x28cfbf[_0x3db28b(0x12d)](join,_0x3d0161,_0x28cfbf[_0x3db28b(0x121)])))return _0x3d0161;_0x3d0161=_0x28cfbf['ytkxl'](dirname,_0x3d0161);}if(_0x28cfbf['UXxBK'](existsSync,_0x28cfbf['NPAJC'](join,_0xd9a0f4,_0x28cfbf['KFrYo'])))return _0xd9a0f4;const _0x5e5a96=findGitRoot();if(_0x5e5a96)return _0x5e5a96;return process['cwd']();}function _0x30c6(){const _0x2ed277=['UKtmu','10494870ZvGkNw','3896073ELXyNs','UXxBK','OuUnO','ewhTh','107772rlAPyf','3641oVMToZ','10cvWrXJ','wrCff','164310ESMtuc','30gItqas','232lOLeTD','5BuUzCD','oLMup','KFrYo','1404304Ygjxhp','cwd','.ranger','.git','5917012cuMlfr','162638ZRsnqn'];_0x30c6=function(){return _0x2ed277;};return _0x30c6();}export function getRangerDir(){const _0x5a92f4=_0x20e5,_0xb5c077={'smjuy':function(_0x200ceb){return _0x200ceb();}};return join(_0xb5c077['smjuy'](getRangerRoot),_0x5a92f4(0x124));}export function findGitRoot(){const _0x28b68e=_0x20e5,_0x31bf66={'MhEdo':function(_0x2e8fe3,_0x3fc8cc){return _0x2e8fe3(_0x3fc8cc);},'wrCff':function(_0x48c80b,_0x5ce508){return _0x48c80b!==_0x5ce508;},'FDJHt':function(_0x401f3d,_0x1ca5fb){return _0x401f3d(_0x1ca5fb);},'oLMup':_0x28b68e(0x125)};let _0x25fd16=process['cwd']();const _0x4f6826=_0x31bf66['MhEdo'](parse,_0x25fd16)['root'];while(_0x31bf66[_0x28b68e(0x131)](_0x25fd16,_0x4f6826)){if(existsSync(join(_0x25fd16,_0x28b68e(0x125))))return _0x25fd16;_0x25fd16=dirname(_0x25fd16);}if(_0x31bf66['FDJHt'](existsSync,join(_0x4f6826,_0x31bf66[_0x28b68e(0x136)])))return _0x4f6826;return null;}export function getRangerHomeDir(){const _0x237097=_0x20e5,_0x2d863a={'GVWnF':function(_0x5446ce,_0x43efa0,_0x17531d){return _0x5446ce(_0x43efa0,_0x17531d);},'UKtmu':'.ranger'};return _0x2d863a['GVWnF'](join,homedir(),_0x2d863a[_0x237097(0x128)]);}
1
+ (function(_0x5458fe,_0x1cab36){const _0x4e2c5e=_0x2e32,_0x318129=_0x5458fe();while(!![]){try{const _0x4e8c49=parseInt(_0x4e2c5e(0x1bb))/0x1+parseInt(_0x4e2c5e(0x1c0))/0x2+parseInt(_0x4e2c5e(0x1b9))/0x3+-parseInt(_0x4e2c5e(0x1b4))/0x4*(parseInt(_0x4e2c5e(0x1c1))/0x5)+parseInt(_0x4e2c5e(0x1b5))/0x6*(parseInt(_0x4e2c5e(0x1b8))/0x7)+-parseInt(_0x4e2c5e(0x1bc))/0x8*(-parseInt(_0x4e2c5e(0x1b2))/0x9)+-parseInt(_0x4e2c5e(0x1b6))/0xa;if(_0x4e8c49===_0x1cab36)break;else _0x318129['push'](_0x318129['shift']());}catch(_0x17f253){_0x318129['push'](_0x318129['shift']());}}}(_0x23a4,0xcb619));function _0x2e32(_0x49291b,_0x4a96dc){_0x49291b=_0x49291b-0x1af;const _0x23a4c4=_0x23a4();let _0x2e326e=_0x23a4c4[_0x49291b];return _0x2e326e;}import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x3c720a=_0x2e32,_0x2fc3ac={'vHozi':function(_0x19360a,_0x213d37){return _0x19360a!==_0x213d37;},'VLOcr':function(_0x4d94f6,_0x5a25fd){return _0x4d94f6(_0x5a25fd);},'oDyvr':_0x3c720a(0x1b3),'nqkvb':function(_0x39a02e){return _0x39a02e();}};let _0x364046=process[_0x3c720a(0x1b1)]();const _0x4dc047=parse(_0x364046)[_0x3c720a(0x1ba)];while(_0x2fc3ac['vHozi'](_0x364046,_0x4dc047)){if(_0x2fc3ac[_0x3c720a(0x1be)](existsSync,join(_0x364046,'.ranger')))return _0x364046;_0x364046=_0x2fc3ac[_0x3c720a(0x1be)](dirname,_0x364046);}if(existsSync(join(_0x4dc047,_0x2fc3ac[_0x3c720a(0x1bf)])))return _0x4dc047;const _0x32e309=_0x2fc3ac['nqkvb'](findGitRoot);if(_0x32e309)return _0x32e309;return process[_0x3c720a(0x1b1)]();}function _0x23a4(){const _0x52f610=['oDyvr','1399056fuWZps','7967210KzUJze','nisrJ','OKOtS','qqVGw','cwd','7670601YTBwXN','.ranger','4hEcbXn','270006zpDXSw','20848280mDhQqP','Qbgkz','238kpZdUQ','2169228KONWWA','root','706392aNiXuO','8fIClJg','DolNc','VLOcr'];_0x23a4=function(){return _0x52f610;};return _0x23a4();}export function getRangerDir(){const _0xed6ad=_0x2e32,_0x10704b={'qqVGw':function(_0x441183,_0x4dfe91,_0x55c32d){return _0x441183(_0x4dfe91,_0x55c32d);},'aEYwp':function(_0x3ee820){return _0x3ee820();}};return _0x10704b[_0xed6ad(0x1b0)](join,_0x10704b['aEYwp'](getRangerRoot),'.ranger');}export function findGitRoot(){const _0x3362f4=_0x2e32,_0x3fc821={'OKOtS':function(_0x4c4d3b,_0x527509){return _0x4c4d3b(_0x527509);},'Qbgkz':function(_0x5b1f05,_0x138cff){return _0x5b1f05!==_0x138cff;},'DolNc':'.git'};let _0x404f7a=process[_0x3362f4(0x1b1)]();const _0x4e725c=_0x3fc821[_0x3362f4(0x1af)](parse,_0x404f7a)[_0x3362f4(0x1ba)];while(_0x3fc821[_0x3362f4(0x1b7)](_0x404f7a,_0x4e725c)){if(_0x3fc821[_0x3362f4(0x1af)](existsSync,join(_0x404f7a,_0x3fc821['DolNc'])))return _0x404f7a;_0x404f7a=dirname(_0x404f7a);}if(existsSync(join(_0x4e725c,_0x3fc821[_0x3362f4(0x1bd)])))return _0x4e725c;return null;}export function getRangerHomeDir(){const _0x3f8561=_0x2e32,_0x3b73c1={'VCYPA':function(_0x113221,_0x196aa3,_0x1a0d23){return _0x113221(_0x196aa3,_0x1a0d23);},'nisrJ':function(_0x4cb46d){return _0x4cb46d();},'GlMvO':'.ranger'};return _0x3b73c1['VCYPA'](join,_0x3b73c1[_0x3f8561(0x1c2)](homedir),_0x3b73c1['GlMvO']);}
@@ -1 +1 @@
1
- (function(_0x54bc49,_0x40325a){const _0x1407db=_0x29aa,_0x346254=_0x54bc49();while(!![]){try{const _0x76571a=-parseInt(_0x1407db(0x16a))/0x1+-parseInt(_0x1407db(0x150))/0x2+-parseInt(_0x1407db(0x15b))/0x3+parseInt(_0x1407db(0x169))/0x4+-parseInt(_0x1407db(0x159))/0x5+-parseInt(_0x1407db(0x165))/0x6*(-parseInt(_0x1407db(0x161))/0x7)+parseInt(_0x1407db(0x158))/0x8*(parseInt(_0x1407db(0x168))/0x9);if(_0x76571a===_0x40325a)break;else _0x346254['push'](_0x346254['shift']());}catch(_0xe79b00){_0x346254['push'](_0x346254['shift']());}}}(_0x1239,0xdb38b));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(_0x2c84e3){const _0x404c8a=_0x29aa,_0x1654c2={'qsBcO':_0x404c8a(0x170),'KQkXB':'object'},_0x34cbf7=readFileSync(_0x2c84e3,_0x1654c2['qsBcO']),_0x353eb5=JSON[_0x404c8a(0x15a)](_0x34cbf7);if(!_0x353eb5||typeof _0x353eb5!==_0x1654c2[_0x404c8a(0x17d)])return{};return _0x353eb5;}export function resolveRangerwrightCliBinary(){const _0x5c91a9=_0x29aa,_0x4d4715={'lHuFS':function(_0x2fb843,_0x5e61ed){return _0x2fb843(_0x5e61ed);},'RoBGz':_0x5c91a9(0x176),'cBjXK':function(_0x344dcc,_0x21d59a){return _0x344dcc===_0x21d59a;},'EXmCM':_0x5c91a9(0x167),'XxaFk':function(_0x347c34,_0x44b03c,_0x2c20df){return _0x347c34(_0x44b03c,_0x2c20df);}},_0x25143f=_0x4d4715[_0x5c91a9(0x14f)](createRequire,process['argv'][0x1]||join(process['cwd'](),_0x4d4715[_0x5c91a9(0x152)])),_0x5f4359=_0x25143f['resolve'](RANGERWRIGHT_CLI_PACKAGE+'/package.json'),_0x2b8491=dirname(_0x5f4359),_0x42d981=readPackageJson(_0x5f4359),_0x3d92b3=_0x4d4715['cBjXK'](typeof _0x42d981['bin'],_0x4d4715['EXmCM'])?_0x42d981[_0x5c91a9(0x178)]:_0x42d981['bin']?.[RANGERWRIGHT_CLI_BINARY];if(!_0x3d92b3)throw new Error(RANGERWRIGHT_CLI_PACKAGE+_0x5c91a9(0x154)+RANGERWRIGHT_CLI_BINARY+'\x20binary');return _0x4d4715['XxaFk'](join,_0x2b8491,_0x3d92b3);}export function buildRangerwrightCliEnv(_0xab7aed){const _0x2a856e=_0x29aa;return{'RANGERWRIGHT_SESSION':_0xab7aed[_0x2a856e(0x15c)],'RANGERWRIGHT_CONFIG':_0xab7aed[_0x2a856e(0x174)],'RANGERWRIGHT_ARTIFACT_DIR':_0xab7aed[_0x2a856e(0x17e)],..._0xab7aed['socketPath']?{'RANGERWRIGHT_SOCKET_PATH':_0xab7aed['socketPath']}:{}};}export function applyRangerwrightCliEnv(_0x4d4b2a,_0x28ffbf){const _0x224bed=_0x29aa;Object[_0x224bed(0x153)](_0x4d4b2a,buildRangerwrightCliEnv(_0x28ffbf));}function _0x1239(){const _0x46b142=['TIVRz','UIqIP','command','utf-8','pipe','XwPqh','error','configPath','kill','package.json','rangerwright-cli\x20','bin','sxBck','cwd','args','eCCQd','KQkXB','artifactDir','lHuFS','117568AggYfC','null','RoBGz','assign','\x20does\x20not\x20expose\x20a\x20','close','SIGTERM','vCeAI','1963864lpDJkd','721200EVHXqE','parse','2623638yjPSuy','sessionId','env','\x20--json','--json','jQuKi','60361UsFCUc','binaryPath','toString','JEpum','1176oWfZTD','match','string','18xpJVbt','4594404Kkvxzm','1354174wozMMq','rHeRq','UllNA'];_0x1239=function(){return _0x46b142;};return _0x1239();}export function buildRangerwrightCliCommandPrefix(_0x1fd2dd=resolveRangerwrightCliBinary()){const _0x4494a2=_0x29aa,_0x449ce5={'jQuKi':function(_0x421f80,_0x29d10e){return _0x421f80(_0x29d10e);}};return _0x449ce5[_0x4494a2(0x160)](quoteShellArg,_0x1fd2dd)+_0x4494a2(0x15e);}function getRangerwrightSubcommand(_0x23134e){return _0x23134e[0x0]??'unknown';}export function buildRangerwrightCliInvocation(_0x187ab2,_0x25e50c){const _0x22c779=_0x29aa,_0x457ea1={'jPlGH':function(_0x2ccbbf){return _0x2ccbbf();},'vCeAI':_0x22c779(0x15f),'cDVxk':function(_0x2cf6f5,_0xa97302){return _0x2cf6f5(_0xa97302);}},_0x330a8a=_0x187ab2[_0x22c779(0x162)]??_0x457ea1['jPlGH'](resolveRangerwrightCliBinary),_0x2208fa=[_0x457ea1[_0x22c779(0x157)],..._0x25e50c];return{'command':_0x330a8a,'args':_0x2208fa,'shellCommand':[quoteShellArg(_0x330a8a),_0x457ea1['vCeAI'],..._0x25e50c['map'](quoteShellArg)]['join']('\x20'),'subcommand':_0x457ea1['cDVxk'](getRangerwrightSubcommand,_0x25e50c)};}function truncateOutput(_0x62b812,_0x3bf3ae=0x7d0){const _0x1da0c8=_0x29aa,_0x3c4109={'rHeRq':function(_0x5ae141,_0x594942){return _0x5ae141>_0x594942;},'XwPqh':function(_0x4af2fa,_0x24763c){return _0x4af2fa+_0x24763c;},'UxnZs':'...'};return _0x3c4109[_0x1da0c8(0x16b)](_0x62b812['length'],_0x3bf3ae)?_0x3c4109[_0x1da0c8(0x172)](_0x62b812['slice'](0x0,_0x3bf3ae),_0x3c4109['UxnZs']):_0x62b812;}function _0x29aa(_0x4f800a,_0x3dc91e){_0x4f800a=_0x4f800a-0x14f;const _0x12398b=_0x1239();let _0x29aad9=_0x12398b[_0x4f800a];return _0x29aad9;}export async function runRangerwrightCliCommand(_0x1baaa6){const _0x2325b3=_0x29aa,_0x9c841e={'UIqIP':function(_0x595fc7,_0x374a1d){return _0x595fc7(_0x374a1d);},'xgLsH':'null','qFrsE':function(_0x1ebcfe,_0x418e54){return _0x1ebcfe(_0x418e54);},'TIVRz':function(_0xb360ef,_0xf429a3){return _0xb360ef(_0xf429a3);},'eCCQd':function(_0x440edc,_0x4b22f7){return _0x440edc(_0x4b22f7);},'UllNA':function(_0x2c69cf,_0x542459,_0x34e651){return _0x2c69cf(_0x542459,_0x34e651);},'sxBck':function(_0x7b9552,_0x245b7e){return _0x7b9552>_0x245b7e;},'ziJCs':'data','JEpum':function(_0x4597c8,_0x21e633){return _0x4597c8(_0x21e633);}},_0x1dc306=buildRangerwrightCliInvocation(_0x1baaa6,_0x1baaa6['commandArgs']),_0x213132={..._0x1baaa6[_0x2325b3(0x15d)]??process['env'],..._0x9c841e[_0x2325b3(0x164)](buildRangerwrightCliEnv,_0x1baaa6)};return new Promise((_0x25e9bf,_0x23f932)=>{const _0x28af7d=_0x2325b3,_0x3b2d04={'IKmek':function(_0x59f008,_0x1d89c0,_0x48cf27){const _0x5b4c76=_0x29aa;return _0x9c841e[_0x5b4c76(0x16c)](_0x59f008,_0x1d89c0,_0x48cf27);}},_0x591886=spawn(_0x1dc306[_0x28af7d(0x16f)],_0x1dc306[_0x28af7d(0x17b)],{'cwd':_0x1baaa6[_0x28af7d(0x17a)],'env':_0x213132,'stdio':['ignore','pipe',_0x28af7d(0x171)]});let _0x198f16='',_0x346574='',_0x29254c=![];const _0x5730b5=_0x1baaa6['timeoutMs']&&_0x9c841e[_0x28af7d(0x179)](_0x1baaa6['timeoutMs'],0x0)?setTimeout(()=>{const _0x400964=_0x28af7d;_0x29254c=!![],_0x591886[_0x400964(0x175)](_0x400964(0x156)),_0x3b2d04['IKmek'](setTimeout,()=>{try{_0x591886['kill']('SIGKILL');}catch{}},0x3e8);},_0x1baaa6['timeoutMs']):null;_0x591886['stdout']?.['on'](_0x9c841e['ziJCs'],_0x14c73b=>{const _0x10e783=_0x28af7d;_0x198f16+=_0x14c73b[_0x10e783(0x163)]();}),_0x591886['stderr']?.['on']('data',_0x46a147=>{_0x346574+=_0x46a147['toString']();}),_0x591886['on'](_0x28af7d(0x173),_0x2ae901=>{const _0x38b0d6=_0x28af7d;if(_0x5730b5)_0x9c841e[_0x38b0d6(0x16e)](clearTimeout,_0x5730b5);_0x9c841e['UIqIP'](_0x23f932,_0x2ae901);}),_0x591886['on'](_0x28af7d(0x155),(_0xc3e4b2,_0xfb71e8)=>{const _0x404a88=_0x28af7d;if(_0x5730b5)_0x9c841e[_0x404a88(0x16e)](clearTimeout,_0x5730b5);if(_0xc3e4b2===0x0){_0x25e9bf({'stdout':_0x198f16,'stderr':_0x346574,'invocation':_0x1dc306});return;}const _0x7cad17=_0x29254c?'timed\x20out\x20after\x20'+_0x1baaa6['timeoutMs']+'ms':'exited\x20with\x20code='+(_0xc3e4b2??_0x404a88(0x151))+'\x20signal='+(_0xfb71e8??_0x9c841e['xgLsH']);_0x9c841e['qFrsE'](_0x23f932,new Error(_0x404a88(0x177)+_0x1dc306['subcommand']+'\x20'+_0x7cad17+'\x0astdout:\x20'+_0x9c841e[_0x404a88(0x16d)](truncateOutput,_0x198f16)+'\x0astderr:\x20'+_0x9c841e[_0x404a88(0x17c)](truncateOutput,_0x346574)));});});}export function parseRangerwrightCliCommand(_0x3b4f44){const _0x1aa052=_0x29aa,_0x1d789b=_0x3b4f44[_0x1aa052(0x166)](/(?:^|\s)(?:"[^"]*rangerwright(?:\/build\/cli\.js)?"|'[^']*rangerwright(?:\/build\/cli\.js)?'|\S*rangerwright(?:\/build\/cli\.js)?)(?:\s+--json)?\s+([a-z-]+)/);return _0x1d789b?.[0x1]??null;}
1
+ const _0x581b1c=_0xc312;(function(_0x55e999,_0x7823b1){const _0x52eb37=_0xc312,_0x2ce567=_0x55e999();while(!![]){try{const _0x570e4a=parseInt(_0x52eb37(0x206))/0x1+parseInt(_0x52eb37(0x1f4))/0x2+-parseInt(_0x52eb37(0x221))/0x3*(parseInt(_0x52eb37(0x213))/0x4)+parseInt(_0x52eb37(0x216))/0x5*(parseInt(_0x52eb37(0x1f9))/0x6)+-parseInt(_0x52eb37(0x202))/0x7+parseInt(_0x52eb37(0x1f7))/0x8*(parseInt(_0x52eb37(0x203))/0x9)+parseInt(_0x52eb37(0x21e))/0xa;if(_0x570e4a===_0x7823b1)break;else _0x2ce567['push'](_0x2ce567['shift']());}catch(_0x3e91e6){_0x2ce567['push'](_0x2ce567['shift']());}}}(_0x4fe0,0xd6e7a));import{spawn}from'child_process';import{createRequire}from'module';function _0xc312(_0x429053,_0x54a685){_0x429053=_0x429053-0x1f4;const _0x4fe0cd=_0x4fe0();let _0xc31280=_0x4fe0cd[_0x429053];return _0xc31280;}import{dirname,join}from'path';import{readFileSync}from'fs';import{quoteShellArg}from'./playwrightCli.js';const moduleRequire=createRequire(import.meta.url);export const RANGERWRIGHT_CLI_PACKAGE='@ranger-testing/rangerwright';export const RANGERWRIGHT_CLI_BINARY=_0x581b1c(0x204);function readPackageJson(_0x597b9c){const _0x33de85=_0x581b1c,_0x89b28a={'pcLqZ':function(_0x1b7762,_0x1223d5,_0x1a6023){return _0x1b7762(_0x1223d5,_0x1a6023);},'yVzFv':function(_0x640e02,_0x144836){return _0x640e02!==_0x144836;}},_0xabf6a0=_0x89b28a['pcLqZ'](readFileSync,_0x597b9c,_0x33de85(0x211)),_0x59302b=JSON['parse'](_0xabf6a0);if(!_0x59302b||_0x89b28a[_0x33de85(0x219)](typeof _0x59302b,_0x33de85(0x223)))return{};return _0x59302b;}export function resolveRangerwrightCliBinary(){const _0xe60221=_0x581b1c,_0x5d7b47={'GAXYQ':function(_0x88e5b1,_0x5d76e4){return _0x88e5b1(_0x5d76e4);}},_0x1a12b0=moduleRequire['resolve'](RANGERWRIGHT_CLI_PACKAGE+_0xe60221(0x21b)),_0x21c965=_0x5d7b47['GAXYQ'](dirname,_0x1a12b0),_0x42e499=_0x5d7b47[_0xe60221(0x200)](readPackageJson,_0x1a12b0),_0x33a1f2=typeof _0x42e499['bin']==='string'?_0x42e499['bin']:_0x42e499[_0xe60221(0x20a)]?.[RANGERWRIGHT_CLI_BINARY];if(!_0x33a1f2)throw new Error(RANGERWRIGHT_CLI_PACKAGE+_0xe60221(0x1ff)+RANGERWRIGHT_CLI_BINARY+_0xe60221(0x214));return join(_0x21c965,_0x33a1f2);}export function buildRangerwrightCliEnv(_0x4df365){const _0x3f6739=_0x581b1c;return{'RANGERWRIGHT_SESSION':_0x4df365['sessionId'],'RANGERWRIGHT_CONFIG':_0x4df365[_0x3f6739(0x208)],'RANGERWRIGHT_ARTIFACT_DIR':_0x4df365[_0x3f6739(0x220)],..._0x4df365[_0x3f6739(0x21a)]?{'RANGERWRIGHT_SOCKET_PATH':_0x4df365['socketPath']}:{}};}export function applyRangerwrightCliEnv(_0x2a58c4,_0x34684e){Object['assign'](_0x2a58c4,buildRangerwrightCliEnv(_0x34684e));}export function buildRangerwrightCliCommandPrefix(_0x2d6766=resolveRangerwrightCliBinary()){return quoteShellArg(_0x2d6766)+'\x20--json';}function getRangerwrightSubcommand(_0x4438f0){const _0x477ed0=_0x581b1c,_0x3d5a96={'zyWPX':_0x477ed0(0x218)};return _0x4438f0[0x0]??_0x3d5a96[_0x477ed0(0x20d)];}export function buildRangerwrightCliInvocation(_0x58b4b9,_0x37ea66){const _0x56eb2d=_0x581b1c,_0x3f8d94=_0x58b4b9['binaryPath']??resolveRangerwrightCliBinary(),_0x3608e6=[_0x56eb2d(0x20f),..._0x37ea66];return{'command':_0x3f8d94,'args':_0x3608e6,'shellCommand':[quoteShellArg(_0x3f8d94),_0x56eb2d(0x20f),..._0x37ea66['map'](quoteShellArg)]['join']('\x20'),'subcommand':getRangerwrightSubcommand(_0x37ea66)};}function _0x4fe0(){const _0x269acc=['timeoutMs','2448660UBfwiL','sbltP','artifactDir','2939466DDqEIY','null','object','2427542sCaGgl','QFpYo','ignore','16YQDvmB','\x20signal=','134310wAMqVI','env','SIGKILL','stRpD','command','jOpLe','\x20does\x20not\x20expose\x20a\x20','GAXYQ','exited\x20with\x20code=','11194582axNSae','2086218zUNNtu','rangerwright','args','1044587tNeAgZ','gHFWf','configPath','length','bin','pipe','sCNhV','zyWPX','\x0astderr:\x20','--json','qXeIE','utf-8','kill','4PKTnjk','\x20binary','toString','110KNhIfA','ShZhP','unknown','yVzFv','socketPath','/package.json','\x0astdout:\x20'];_0x4fe0=function(){return _0x269acc;};return _0x4fe0();}function truncateOutput(_0x48530b,_0xaec627=0x7d0){const _0x51c229=_0x581b1c,_0x36b955={'aHAEA':'...'};return _0x48530b[_0x51c229(0x209)]>_0xaec627?_0x48530b['slice'](0x0,_0xaec627)+_0x36b955['aHAEA']:_0x48530b;}export async function runRangerwrightCliCommand(_0x224320){const _0x2e06bf=_0x581b1c,_0x2e1a1d={'sbltP':function(_0x368510,_0x33b9fe,_0x5a0309){return _0x368510(_0x33b9fe,_0x5a0309);},'QFpYo':function(_0xa8998d,_0x94b4b8){return _0xa8998d(_0x94b4b8);},'ShZhP':_0x2e06bf(0x1f6),'jOpLe':_0x2e06bf(0x20b),'fWFon':function(_0x1b7ed6,_0x4b51e4){return _0x1b7ed6>_0x4b51e4;},'stRpD':'error'},_0x622955=_0x2e1a1d[_0x2e06bf(0x21f)](buildRangerwrightCliInvocation,_0x224320,_0x224320['commandArgs']),_0x43a459={..._0x224320[_0x2e06bf(0x1fa)]??process[_0x2e06bf(0x1fa)],..._0x2e1a1d['QFpYo'](buildRangerwrightCliEnv,_0x224320)};return new Promise((_0x49fa6b,_0x4404fe)=>{const _0x3b8669=_0x2e06bf,_0x6b48f1={'nnXcJ':function(_0x3e208f,_0x13305b){return _0x3e208f(_0x13305b);},'sCNhV':function(_0x4e1733,_0x2dd81d){return _0x4e1733(_0x2dd81d);},'qXeIE':function(_0x4dbd19,_0x2bd930){return _0x4dbd19??_0x2bd930;},'gHFWf':_0x3b8669(0x222)},_0x354c30=spawn(_0x622955[_0x3b8669(0x1fd)],_0x622955[_0x3b8669(0x205)],{'cwd':_0x224320['cwd'],'env':_0x43a459,'stdio':[_0x2e1a1d[_0x3b8669(0x217)],_0x2e1a1d['jOpLe'],_0x2e1a1d[_0x3b8669(0x1fe)]]});let _0x168bcc='',_0x3065d4='',_0x27716e=![];const _0xf0cb1f=_0x224320[_0x3b8669(0x21d)]&&_0x2e1a1d['fWFon'](_0x224320['timeoutMs'],0x0)?setTimeout(()=>{const _0x3093dc=_0x3b8669,_0x447da7={'kPJlS':_0x3093dc(0x1fb)};_0x27716e=!![],_0x354c30[_0x3093dc(0x212)]('SIGTERM'),_0x2e1a1d['sbltP'](setTimeout,()=>{const _0x245eea=_0x3093dc;try{_0x354c30[_0x245eea(0x212)](_0x447da7['kPJlS']);}catch{}},0x3e8);},_0x224320['timeoutMs']):null;_0x354c30['stdout']?.['on']('data',_0x1ee7a0=>{_0x168bcc+=_0x1ee7a0['toString']();}),_0x354c30['stderr']?.['on']('data',_0x3be4a6=>{const _0x52d633=_0x3b8669;_0x3065d4+=_0x3be4a6[_0x52d633(0x215)]();}),_0x354c30['on'](_0x2e1a1d[_0x3b8669(0x1fc)],_0x54c087=>{const _0x5ddd73=_0x3b8669;if(_0xf0cb1f)_0x2e1a1d[_0x5ddd73(0x1f5)](clearTimeout,_0xf0cb1f);_0x4404fe(_0x54c087);}),_0x354c30['on']('close',(_0x4a7506,_0x541d59)=>{const _0x434e05=_0x3b8669;if(_0xf0cb1f)_0x6b48f1['nnXcJ'](clearTimeout,_0xf0cb1f);if(_0x4a7506===0x0){_0x6b48f1['sCNhV'](_0x49fa6b,{'stdout':_0x168bcc,'stderr':_0x3065d4,'invocation':_0x622955});return;}const _0x5d320f=_0x27716e?'timed\x20out\x20after\x20'+_0x224320[_0x434e05(0x21d)]+'ms':_0x434e05(0x201)+_0x6b48f1[_0x434e05(0x210)](_0x4a7506,_0x6b48f1[_0x434e05(0x207)])+_0x434e05(0x1f8)+_0x6b48f1[_0x434e05(0x210)](_0x541d59,_0x434e05(0x222));_0x4404fe(new Error('rangerwright-cli\x20'+_0x622955['subcommand']+'\x20'+_0x5d320f+_0x434e05(0x21c)+_0x6b48f1[_0x434e05(0x20c)](truncateOutput,_0x168bcc)+_0x434e05(0x20e)+truncateOutput(_0x3065d4)));});});}export function parseRangerwrightCliCommand(_0x36a64c){const _0x596810=_0x36a64c['match'](/(?:^|\s)(?:"[^"]*rangerwright(?:\/build\/cli\.js)?"|'[^']*rangerwright(?:\/build\/cli\.js)?'|\S*rangerwright(?:\/build\/cli\.js)?)(?:\s+--json)?\s+([a-z-]+)/);return _0x596810?.[0x1]??null;}