@ranger-testing/ranger-cli 3.1.5-alpha.aebd071-49 → 3.1.6-alpha.4287155-52

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 +2 -2
@@ -1 +1 @@
1
- const _0x409b08=_0x5cf1;(function(_0x46ee77,_0x55a136){const _0x451f34=_0x5cf1,_0x58944c=_0x46ee77();while(!![]){try{const _0x3a54bb=parseInt(_0x451f34(0x15a))/0x1+parseInt(_0x451f34(0x163))/0x2+parseInt(_0x451f34(0x157))/0x3+-parseInt(_0x451f34(0x172))/0x4+-parseInt(_0x451f34(0x158))/0x5+-parseInt(_0x451f34(0x17c))/0x6+-parseInt(_0x451f34(0x164))/0x7*(-parseInt(_0x451f34(0x156))/0x8);if(_0x3a54bb===_0x55a136)break;else _0x58944c['push'](_0x58944c['shift']());}catch(_0x37a142){_0x58944c['push'](_0x58944c['shift']());}}}(_0x48eb,0x8279c));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=_0x409b08(0x176);export const RANGERWRIGHT_CLI_BINARY=_0x409b08(0x165);function readPackageJson(_0x2b3b79){const _0x490415=_0x409b08,_0x438a04={'MeMtC':_0x490415(0x188)},_0x3bc66a=readFileSync(_0x2b3b79,_0x490415(0x15b)),_0x14687a=JSON['parse'](_0x3bc66a);if(!_0x14687a||typeof _0x14687a!==_0x438a04['MeMtC'])return{};return _0x14687a;}function _0x48eb(){const _0x13bd80=['sessionId','SIGKILL','\x20binary','ignore','404900kcbXJr','2135bsHBwB','rangerwright','pipe','ljBcT','close','\x20signal=','caBzN','/package.json','TuSeg','length','bin','cgUmh','join','WqEtC','3507812KRukiG','resolve','--json','SIGTERM','@ranger-testing/rangerwright','slice','timed\x20out\x20after\x20','oPtXZ','assign','exited\x20with\x20code=','5205534YYTqLp','data','stdout','socketPath','map','timeoutMs','rangerwright-cli\x20','kkTPn','XSlic','YjBJQ','QJaFf','kill','object','TaTDO','toString','subcommand','48344AhvcQG','1630413fTICzn','2198005KFdlQl','PjKUa','129535MWDRcu','utf-8','match','argv','lNKAO'];_0x48eb=function(){return _0x13bd80;};return _0x48eb();}export function resolveRangerwrightCliBinary(){const _0x18f8ea=_0x409b08,_0x453f6b={'JzNGd':function(_0x2f00ed,_0x141b1b){return _0x2f00ed(_0x141b1b);},'oPtXZ':function(_0x3f7be6,_0x65441,_0x178be5){return _0x3f7be6(_0x65441,_0x178be5);}},_0xaaf55=createRequire(process[_0x18f8ea(0x15d)][0x1]||join(process['cwd'](),'package.json')),_0x47f15d=_0xaaf55[_0x18f8ea(0x173)](RANGERWRIGHT_CLI_PACKAGE+_0x18f8ea(0x16b)),_0x17d491=_0x453f6b['JzNGd'](dirname,_0x47f15d),_0x1b2b07=readPackageJson(_0x47f15d),_0x28bc65=typeof _0x1b2b07[_0x18f8ea(0x16e)]==='string'?_0x1b2b07[_0x18f8ea(0x16e)]:_0x1b2b07[_0x18f8ea(0x16e)]?.[RANGERWRIGHT_CLI_BINARY];if(!_0x28bc65)throw new Error(RANGERWRIGHT_CLI_PACKAGE+'\x20does\x20not\x20expose\x20a\x20'+RANGERWRIGHT_CLI_BINARY+_0x18f8ea(0x161));return _0x453f6b[_0x18f8ea(0x179)](join,_0x17d491,_0x28bc65);}function _0x5cf1(_0x10be1b,_0x40e8e8){_0x10be1b=_0x10be1b-0x153;const _0x48eb8c=_0x48eb();let _0x5cf1db=_0x48eb8c[_0x10be1b];return _0x5cf1db;}export function buildRangerwrightCliEnv(_0x45504b){const _0x2f07c8=_0x409b08;return{'RANGERWRIGHT_SESSION':_0x45504b[_0x2f07c8(0x15f)],'RANGERWRIGHT_CONFIG':_0x45504b['configPath'],'RANGERWRIGHT_ARTIFACT_DIR':_0x45504b['artifactDir'],..._0x45504b[_0x2f07c8(0x17f)]?{'RANGERWRIGHT_SOCKET_PATH':_0x45504b['socketPath']}:{}};}export function applyRangerwrightCliEnv(_0x5665f3,_0x45665b){const _0x1dcf5c=_0x409b08;Object[_0x1dcf5c(0x17a)](_0x5665f3,buildRangerwrightCliEnv(_0x45665b));}export function buildRangerwrightCliCommandPrefix(_0x4fe9ab=resolveRangerwrightCliBinary()){const _0x35dae6={'gCvQZ':function(_0x44dcf8,_0x115c8c){return _0x44dcf8(_0x115c8c);}};return _0x35dae6['gCvQZ'](quoteShellArg,_0x4fe9ab)+'\x20--json';}function getRangerwrightSubcommand(_0x3a4c8e){return _0x3a4c8e[0x0]??'unknown';}export function buildRangerwrightCliInvocation(_0x186241,_0x2095d9){const _0x220825=_0x409b08,_0x4122a8={'TaTDO':function(_0x553645){return _0x553645();},'Kkbwn':function(_0x40766a,_0x13480d){return _0x40766a(_0x13480d);},'TuSeg':function(_0x3c09c9,_0x2dc1d){return _0x3c09c9(_0x2dc1d);}},_0x2ad182=_0x186241['binaryPath']??_0x4122a8[_0x220825(0x153)](resolveRangerwrightCliBinary),_0x10e987=[_0x220825(0x174),..._0x2095d9];return{'command':_0x2ad182,'args':_0x10e987,'shellCommand':[_0x4122a8['Kkbwn'](quoteShellArg,_0x2ad182),'--json',..._0x2095d9[_0x220825(0x180)](quoteShellArg)][_0x220825(0x170)]('\x20'),'subcommand':_0x4122a8[_0x220825(0x16c)](getRangerwrightSubcommand,_0x2095d9)};}function truncateOutput(_0x44450e,_0x37a5c6=0x7d0){const _0x5cfa8a=_0x409b08,_0x4f5235={'cgUmh':function(_0x2428c5,_0x41f795){return _0x2428c5>_0x41f795;}};return _0x4f5235[_0x5cfa8a(0x16f)](_0x44450e[_0x5cfa8a(0x16d)],_0x37a5c6)?_0x44450e[_0x5cfa8a(0x177)](0x0,_0x37a5c6)+'...':_0x44450e;}export async function runRangerwrightCliCommand(_0xc4de85){const _0x3f36df=_0x409b08,_0x376c54={'OGLMe':function(_0x3c4347,_0x191cde){return _0x3c4347(_0x191cde);},'zmLup':function(_0x5cf4f6,_0x3f8a3f){return _0x5cf4f6??_0x3f8a3f;},'YjBJQ':'null','caBzN':function(_0x359ae2,_0x437331){return _0x359ae2??_0x437331;},'lNKAO':function(_0x18a456,_0xa58116){return _0x18a456(_0xa58116);},'ljBcT':_0x3f36df(0x160),'PjKUa':function(_0x49f4c3,_0x339257){return _0x49f4c3(_0x339257);},'EVjuo':_0x3f36df(0x162),'WqEtC':_0x3f36df(0x17d),'QJaFf':'error','kkTPn':_0x3f36df(0x168),'QciVj':function(_0x54fa60,_0x514216,_0x287ded){return _0x54fa60(_0x514216,_0x287ded);},'IlVfp':function(_0x5318b8,_0x2c7fef){return _0x5318b8(_0x2c7fef);}},_0xd26421=_0x376c54['QciVj'](buildRangerwrightCliInvocation,_0xc4de85,_0xc4de85['commandArgs']),_0x15c8f4={..._0xc4de85['env']??process['env'],..._0x376c54['IlVfp'](buildRangerwrightCliEnv,_0xc4de85)};return new Promise((_0x41f07a,_0x539369)=>{const _0x22f4c5=_0x3f36df,_0x4fb237={'eSyNz':_0x376c54[_0x22f4c5(0x167)],'XSlic':function(_0x5aeee6,_0x32b26e){const _0x36065d=_0x22f4c5;return _0x376c54[_0x36065d(0x159)](_0x5aeee6,_0x32b26e);}},_0x5899e0=spawn(_0xd26421['command'],_0xd26421['args'],{'cwd':_0xc4de85['cwd'],'env':_0x15c8f4,'stdio':[_0x376c54['EVjuo'],_0x22f4c5(0x166),_0x22f4c5(0x166)]});let _0x1cd9e4='',_0x30502e='',_0x585cec=![];const _0x161572=_0xc4de85['timeoutMs']&&_0xc4de85['timeoutMs']>0x0?setTimeout(()=>{const _0x2d99ed=_0x22f4c5;_0x585cec=!![],_0x5899e0['kill'](_0x2d99ed(0x175)),setTimeout(()=>{const _0x36cfe2=_0x2d99ed;try{_0x5899e0[_0x36cfe2(0x187)](_0x4fb237['eSyNz']);}catch{}},0x3e8);},_0xc4de85[_0x22f4c5(0x181)]):null;_0x5899e0[_0x22f4c5(0x17e)]?.['on'](_0x376c54[_0x22f4c5(0x171)],_0x4380e3=>{const _0x2110a2=_0x22f4c5;_0x1cd9e4+=_0x4380e3[_0x2110a2(0x154)]();}),_0x5899e0['stderr']?.['on'](_0x376c54['WqEtC'],_0x5b2ab2=>{_0x30502e+=_0x5b2ab2['toString']();}),_0x5899e0['on'](_0x376c54[_0x22f4c5(0x186)],_0x3803c2=>{const _0x41340f=_0x22f4c5;if(_0x161572)_0x4fb237[_0x41340f(0x184)](clearTimeout,_0x161572);_0x4fb237['XSlic'](_0x539369,_0x3803c2);}),_0x5899e0['on'](_0x376c54[_0x22f4c5(0x183)],(_0x11be96,_0xf8a226)=>{const _0x1ca107=_0x22f4c5;if(_0x161572)_0x376c54['OGLMe'](clearTimeout,_0x161572);if(_0x11be96===0x0){_0x41f07a({'stdout':_0x1cd9e4,'stderr':_0x30502e,'invocation':_0xd26421});return;}const _0x34eda3=_0x585cec?_0x1ca107(0x178)+_0xc4de85['timeoutMs']+'ms':_0x1ca107(0x17b)+_0x376c54['zmLup'](_0x11be96,_0x376c54[_0x1ca107(0x185)])+_0x1ca107(0x169)+_0x376c54[_0x1ca107(0x16a)](_0xf8a226,'null');_0x376c54['OGLMe'](_0x539369,new Error(_0x1ca107(0x182)+_0xd26421[_0x1ca107(0x155)]+'\x20'+_0x34eda3+'\x0astdout:\x20'+_0x376c54[_0x1ca107(0x15e)](truncateOutput,_0x1cd9e4)+'\x0astderr:\x20'+truncateOutput(_0x30502e)));});});}export function parseRangerwrightCliCommand(_0x42fb2e){const _0x1cbb9d=_0x409b08,_0x448a34=_0x42fb2e[_0x1cbb9d(0x15c)](/(?:^|\s)(?:"[^"]*rangerwright(?:\/build\/cli\.js)?"|'[^']*rangerwright(?:\/build\/cli\.js)?'|\S*rangerwright(?:\/build\/cli\.js)?)(?:\s+--json)?\s+([a-z-]+)/);return _0x448a34?.[0x1]??null;}
1
+ const _0x8784ec=_0x4ae2;(function(_0x488b6e,_0x50c0d0){const _0x4274fd=_0x4ae2,_0x50a99f=_0x488b6e();while(!![]){try{const _0x5d0c60=-parseInt(_0x4274fd(0x9c))/0x1*(-parseInt(_0x4274fd(0xa4))/0x2)+parseInt(_0x4274fd(0x88))/0x3*(parseInt(_0x4274fd(0x9d))/0x4)+parseInt(_0x4274fd(0x86))/0x5*(-parseInt(_0x4274fd(0x85))/0x6)+-parseInt(_0x4274fd(0xb2))/0x7*(-parseInt(_0x4274fd(0xa0))/0x8)+-parseInt(_0x4274fd(0x7b))/0x9*(-parseInt(_0x4274fd(0x7d))/0xa)+-parseInt(_0x4274fd(0x90))/0xb*(-parseInt(_0x4274fd(0x89))/0xc)+-parseInt(_0x4274fd(0xad))/0xd*(parseInt(_0x4274fd(0x95))/0xe);if(_0x5d0c60===_0x50c0d0)break;else _0x50a99f['push'](_0x50a99f['shift']());}catch(_0x46d8a4){_0x50a99f['push'](_0x50a99f['shift']());}}}(_0x2693,0xa1058));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=_0x8784ec(0x9a);export const RANGERWRIGHT_CLI_BINARY=_0x8784ec(0x99);function readPackageJson(_0x5c8359){const _0x4924bc=_0x8784ec,_0x5a3707={'cQixz':function(_0x11ac96,_0x4eeaff,_0x6e6a01){return _0x11ac96(_0x4eeaff,_0x6e6a01);},'wvnxz':_0x4924bc(0x87),'zDbEk':'object'},_0x57a45e=_0x5a3707['cQixz'](readFileSync,_0x5c8359,_0x5a3707[_0x4924bc(0xab)]),_0x777463=JSON[_0x4924bc(0xaf)](_0x57a45e);if(!_0x777463||typeof _0x777463!==_0x5a3707['zDbEk'])return{};return _0x777463;}export function resolveRangerwrightCliBinary(){const _0x1c2f58=_0x8784ec,_0x26c775={'saMGR':'package.json','SwGpk':function(_0x2053f8,_0x1f2d85){return _0x2053f8(_0x1f2d85);},'iFyeg':function(_0x3cd2ef,_0x221f12){return _0x3cd2ef===_0x221f12;},'VnOaw':'string'},_0x2f15aa=createRequire(process[_0x1c2f58(0x8d)][0x1]||join(process['cwd'](),_0x26c775[_0x1c2f58(0xa3)])),_0xf77aa4=_0x2f15aa['resolve'](RANGERWRIGHT_CLI_PACKAGE+'/package.json'),_0x312953=dirname(_0xf77aa4),_0x5aadf3=_0x26c775[_0x1c2f58(0x9b)](readPackageJson,_0xf77aa4),_0x4fc200=_0x26c775['iFyeg'](typeof _0x5aadf3[_0x1c2f58(0x92)],_0x26c775[_0x1c2f58(0xa8)])?_0x5aadf3['bin']:_0x5aadf3['bin']?.[RANGERWRIGHT_CLI_BINARY];if(!_0x4fc200)throw new Error(RANGERWRIGHT_CLI_PACKAGE+_0x1c2f58(0x94)+RANGERWRIGHT_CLI_BINARY+'\x20binary');return join(_0x312953,_0x4fc200);}function _0x4ae2(_0x151fe8,_0x966f2c){_0x151fe8=_0x151fe8-0x7b;const _0x26937d=_0x2693();let _0x4ae23a=_0x26937d[_0x151fe8];return _0x4ae23a;}export function buildRangerwrightCliEnv(_0x419971){const _0x1c7dcd=_0x8784ec;return{'RANGERWRIGHT_SESSION':_0x419971[_0x1c7dcd(0x97)],'RANGERWRIGHT_CONFIG':_0x419971[_0x1c7dcd(0x8e)],'RANGERWRIGHT_ARTIFACT_DIR':_0x419971['artifactDir'],..._0x419971['socketPath']?{'RANGERWRIGHT_SOCKET_PATH':_0x419971[_0x1c7dcd(0xb3)]}:{}};}export function applyRangerwrightCliEnv(_0xeed640,_0x191f60){const _0x559691=_0x8784ec;Object[_0x559691(0x80)](_0xeed640,buildRangerwrightCliEnv(_0x191f60));}export function buildRangerwrightCliCommandPrefix(_0x379036=resolveRangerwrightCliBinary()){const _0x384749=_0x8784ec,_0x3319e5={'YtvYs':function(_0x2fc972,_0xaaf6d3){return _0x2fc972(_0xaaf6d3);}};return _0x3319e5[_0x384749(0x8c)](quoteShellArg,_0x379036)+_0x384749(0x9e);}function getRangerwrightSubcommand(_0x12513d){const _0x14f88a=_0x8784ec,_0x349f01={'IQfLC':_0x14f88a(0x7e)};return _0x12513d[0x0]??_0x349f01[_0x14f88a(0xa2)];}export function buildRangerwrightCliInvocation(_0x5b88ed,_0x3f2aeb){const _0x430cf2=_0x8784ec,_0x1757dc={'XTTTg':function(_0x2da686,_0x303bee){return _0x2da686(_0x303bee);},'ZCPFA':'--json'},_0x5985bc=_0x5b88ed[_0x430cf2(0xa7)]??resolveRangerwrightCliBinary(),_0x4acdc9=[_0x430cf2(0x9f),..._0x3f2aeb];return{'command':_0x5985bc,'args':_0x4acdc9,'shellCommand':[_0x1757dc[_0x430cf2(0xa9)](quoteShellArg,_0x5985bc),_0x1757dc['ZCPFA'],..._0x3f2aeb['map'](quoteShellArg)]['join']('\x20'),'subcommand':getRangerwrightSubcommand(_0x3f2aeb)};}function _0x2693(){const _0x58b497=['GNeIu','binaryPath','VnOaw','XTTTg','pipe','wvnxz','length','12648506TVfcCC','data','parse','command','ucjqH','77fhsoXQ','socketPath','timeoutMs','SIGKILL','99JSlrth','ktXCo','1086790TfUOMW','unknown','pcPVx','assign','match','rangerwright-cli\x20','KNgxu','env','24KgAsMi','1100170UagiuA','utf-8','3IsOuFQ','12uPMJAH','commandArgs','stdout','YtvYs','argv','configPath','\x0astdout:\x20','328339wqGGPC','error','bin','jLpLH','\x20does\x20not\x20expose\x20a\x20','28pMUXou','GcnVq','sessionId','Lwqbx','rangerwright','@ranger-testing/rangerwright','SwGpk','6GuPBju','4168676UQsAQu','\x20--json','--json','103560tssyUi','OYLaI','IQfLC','saMGR','358574apccOa','AAcfQ'];_0x2693=function(){return _0x58b497;};return _0x2693();}function truncateOutput(_0xa5f7b0,_0x4526de=0x7d0){const _0x15aaea=_0x8784ec,_0x31df8e={'GcnVq':function(_0x44737b,_0x51caaa){return _0x44737b+_0x51caaa;}};return _0xa5f7b0[_0x15aaea(0xac)]>_0x4526de?_0x31df8e[_0x15aaea(0x96)](_0xa5f7b0['slice'](0x0,_0x4526de),'...'):_0xa5f7b0;}export async function runRangerwrightCliCommand(_0x51be51){const _0x3315e7=_0x8784ec,_0x5cd625={'xfvIY':function(_0x31bd23,_0x67a573,_0x55a26f){return _0x31bd23(_0x67a573,_0x55a26f);},'OYLaI':_0x3315e7(0xb5),'KNgxu':function(_0x47d227,_0x3a1f06){return _0x47d227(_0x3a1f06);},'AAcfQ':function(_0x4e2a54,_0x348989){return _0x4e2a54(_0x348989);},'oDCmv':'ignore','Lwqbx':_0x3315e7(0xaa),'ucjqH':function(_0x2a8996,_0xa5d9e5,_0x7ee4c2){return _0x2a8996(_0xa5d9e5,_0x7ee4c2);},'nFyXo':_0x3315e7(0xae),'spKjQ':'close'},_0x5bc7cc=_0x5cd625[_0x3315e7(0xb1)](buildRangerwrightCliInvocation,_0x51be51,_0x51be51[_0x3315e7(0x8a)]),_0x20741c={..._0x51be51[_0x3315e7(0x84)]??process[_0x3315e7(0x84)],..._0x5cd625[_0x3315e7(0xa5)](buildRangerwrightCliEnv,_0x51be51)};return new Promise((_0x303a53,_0x3f4236)=>{const _0x2fe443=_0x3315e7,_0x223dc2={'ktXCo':_0x5cd625[_0x2fe443(0xa1)],'UREss':function(_0x3b175f,_0xc1e41f){return _0x3b175f(_0xc1e41f);},'jLpLH':function(_0x48969e,_0x214306){return _0x5cd625['KNgxu'](_0x48969e,_0x214306);},'MWJGT':'null','GNeIu':function(_0x526553,_0x6766c9){const _0xfce8b7=_0x2fe443;return _0x5cd625[_0xfce8b7(0x83)](_0x526553,_0x6766c9);},'pcPVx':function(_0x576686,_0x592043){return _0x5cd625['AAcfQ'](_0x576686,_0x592043);}},_0x13b191=spawn(_0x5bc7cc[_0x2fe443(0xb0)],_0x5bc7cc['args'],{'cwd':_0x51be51['cwd'],'env':_0x20741c,'stdio':[_0x5cd625['oDCmv'],'pipe',_0x5cd625[_0x2fe443(0x98)]]});let _0x337c39='',_0x4ee8bf='',_0x2ac27c=![];const _0x380621=_0x51be51['timeoutMs']&&_0x51be51['timeoutMs']>0x0?_0x5cd625[_0x2fe443(0xb1)](setTimeout,()=>{_0x2ac27c=!![],_0x13b191['kill']('SIGTERM'),_0x5cd625['xfvIY'](setTimeout,()=>{const _0x25acb3=_0x4ae2;try{_0x13b191['kill'](_0x223dc2[_0x25acb3(0x7c)]);}catch{}},0x3e8);},_0x51be51[_0x2fe443(0xb4)]):null;_0x13b191[_0x2fe443(0x8b)]?.['on']('data',_0x3add50=>{_0x337c39+=_0x3add50['toString']();}),_0x13b191['stderr']?.['on'](_0x5cd625['nFyXo'],_0x43bad4=>{_0x4ee8bf+=_0x43bad4['toString']();}),_0x13b191['on'](_0x2fe443(0x91),_0x3cc79f=>{if(_0x380621)_0x223dc2['UREss'](clearTimeout,_0x380621);_0x3f4236(_0x3cc79f);}),_0x13b191['on'](_0x5cd625['spKjQ'],(_0x2d58e4,_0x10f00d)=>{const _0x25aee2=_0x2fe443;if(_0x380621)_0x223dc2[_0x25aee2(0x93)](clearTimeout,_0x380621);if(_0x2d58e4===0x0){_0x303a53({'stdout':_0x337c39,'stderr':_0x4ee8bf,'invocation':_0x5bc7cc});return;}const _0x5404c3=_0x2ac27c?'timed\x20out\x20after\x20'+_0x51be51[_0x25aee2(0xb4)]+'ms':'exited\x20with\x20code='+(_0x2d58e4??_0x223dc2['MWJGT'])+'\x20signal='+(_0x10f00d??'null');_0x223dc2[_0x25aee2(0xa6)](_0x3f4236,new Error(_0x25aee2(0x82)+_0x5bc7cc['subcommand']+'\x20'+_0x5404c3+_0x25aee2(0x8f)+truncateOutput(_0x337c39)+'\x0astderr:\x20'+_0x223dc2[_0x25aee2(0x7f)](truncateOutput,_0x4ee8bf)));});});}export function parseRangerwrightCliCommand(_0x3099f9){const _0x1eb6dc=_0x8784ec,_0x4727cc=_0x3099f9[_0x1eb6dc(0x81)](/(?:^|\s)(?:"[^"]*rangerwright(?:\/build\/cli\.js)?"|'[^']*rangerwright(?:\/build\/cli\.js)?'|\S*rangerwright(?:\/build\/cli\.js)?)(?:\s+--json)?\s+([a-z-]+)/);return _0x4727cc?.[0x1]??null;}
@@ -1 +1 @@
1
- (function(_0x9914d4,_0x59f887){const _0x2ea050=_0x1bd3,_0x12519c=_0x9914d4();while(!![]){try{const _0x24854f=-parseInt(_0x2ea050(0x184))/0x1+-parseInt(_0x2ea050(0x173))/0x2*(-parseInt(_0x2ea050(0x15b))/0x3)+-parseInt(_0x2ea050(0x14a))/0x4+-parseInt(_0x2ea050(0x154))/0x5*(parseInt(_0x2ea050(0x178))/0x6)+parseInt(_0x2ea050(0x161))/0x7*(parseInt(_0x2ea050(0x179))/0x8)+parseInt(_0x2ea050(0x14d))/0x9+-parseInt(_0x2ea050(0x180))/0xa;if(_0x24854f===_0x59f887)break;else _0x12519c['push'](_0x12519c['shift']());}catch(_0x5508a4){_0x12519c['push'](_0x12519c['shift']());}}}(_0x3860,0xe486d));function _0x1bd3(_0x61349c,_0x24ce6c){_0x61349c=_0x61349c-0x148;const _0x386040=_0x3860();let _0x1bd3ed=_0x386040[_0x61349c];return _0x1bd3ed;}import{existsSync}from'fs';import _0x3a472f from'inquirer';import{ApiError,fetchAuthConfig,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive,resolveAuthEnvironmentLocally}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x3159af){const _0x59ce15=_0x1bd3,_0x4be6f9={'mmWlq':function(_0x402668,_0x3fce59){return _0x402668(_0x3fce59);},'TMREU':function(_0xea0ff7){return _0xea0ff7();},'royxk':function(_0x1bb8ab,_0x3fd22f){return _0x1bb8ab!==_0x3fd22f;},'oaKTT':function(_0x2509f3,_0x314aa3){return _0x2509f3(_0x314aa3);},'fqbOA':function(_0x54b79d,_0x868e9a){return _0x54b79d??_0x868e9a;},'TxspL':function(_0x5ec26f,_0x450bba){return _0x5ec26f===_0x450bba;},'YKXgN':function(_0x21d3b3,_0x3de09c){return _0x21d3b3+_0x3de09c;},'fdkIB':function(_0x34478f,_0x8a6d14){return _0x34478f+_0x8a6d14;},'msinZ':_0x59ce15(0x152),'VaUhM':_0x59ce15(0x176),'RdXMK':function(_0x4a0dbb,_0x211051){return _0x4a0dbb instanceof _0x211051;},'vsHDp':function(_0x466ff2,_0x19c1fd){return _0x466ff2&&_0x19c1fd;},'fCRYA':function(_0x271dc9,_0x37c74f){return _0x271dc9+_0x37c74f;},'dpYxv':'`ranger\x20profile\x20add`\x20to\x20create\x20one.','JVrIW':function(_0x4cfa82,_0x3d993f){return _0x4cfa82&&_0x3d993f;},'ntFEE':'source','rqJQo':'Cloud\x20profile\x20(recommended)','gMjVz':'Local\x20profile','cwbZq':function(_0x490d67,_0x342849,_0x1634ee){return _0x490d67(_0x342849,_0x1634ee);},'gycTp':function(_0x4b63c6,_0x2c3726){return _0x4b63c6(_0x2c3726);},'nxcTJ':function(_0x436f78,_0x56d1e2,_0x41098a){return _0x436f78(_0x56d1e2,_0x41098a);},'YBvzD':function(_0x2f7641,_0xd0941d){return _0x2f7641(_0xd0941d);},'ybwGj':function(_0x1dec86,_0x4d70b9){return _0x1dec86(_0x4d70b9);},'ZQEwl':function(_0x55f484,_0x2c0efe){return _0x55f484+_0x2c0efe;},'EacTz':_0x59ce15(0x16c),'asbNQ':'\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one\x20ad\x20hoc,\x20or\x0a','sFzPC':function(_0x310467,_0x178484){return _0x310467&&_0x178484;}},_0x124aa5=_0x3159af['profile'];let _0x390a49=_0x124aa5,_0x22c5ec=null;const _0xab1744=_0x124aa5?null:await readActiveProfileName();if(_0x3159af['authEnv']&&_0x124aa5)console[_0x59ce15(0x148)]('\x20\x20Note:\x20--env\x20\x22'+_0x3159af['authEnv']+'\x22\x20is\x20ignored\x20when\x20--profile\x20is\x20set;\x20the\x20profile\x27s\x20own\x20auth\x20environment\x20applies.');else _0x3159af[_0x59ce15(0x162)]&&!process[_0x59ce15(0x15e)][_0x59ce15(0x16a)]&&console['log'](_0x59ce15(0x160)+_0x3159af['authEnv']+_0x59ce15(0x169));if(!_0x124aa5&&process[_0x59ce15(0x15e)][_0x59ce15(0x16a)])try{const _0x3a594e=await _0x4be6f9['mmWlq'](resolveAdHocProfile,{'targetUrl':_0x3159af['baseUrl']??_0x4be6f9['TMREU'](readUrlEnvVars)['envBaseUrl'],'envKey':_0x3159af['authEnv']});_0x3a594e&&(_0xab1744&&_0x4be6f9[_0x59ce15(0x14e)](_0xab1744,_0x3a594e['name'])&&console[_0x59ce15(0x148)](_0x59ce15(0x185)+_0x3a594e[_0x59ce15(0x15c)]+_0x59ce15(0x171)+_0xab1744+'\x22.\x20Pass\x20--profile\x20'+_0xab1744+_0x59ce15(0x186)),_0x390a49=_0x3a594e[_0x59ce15(0x15c)],_0x22c5ec=_0x3a594e[_0x59ce15(0x18a)]);}catch(_0x3e4c98){if(!_0xab1744||_0x3159af['authEnv'])throw _0x3e4c98;console['log']('\x20\x20Warning:\x20'+(_0x3e4c98 instanceof Error?_0x3e4c98['message']:_0x4be6f9['oaKTT'](String,_0x3e4c98))),console[_0x59ce15(0x148)](_0x59ce15(0x158)+_0xab1744+'\x22.');}if(!_0x390a49)_0x390a49=_0x4be6f9[_0x59ce15(0x17e)](_0xab1744,undefined);if(!_0x390a49)try{const _0x5e748d=await listCloudProfiles();if(_0x4be6f9['TxspL'](_0x5e748d['length'],0x1)){const _0x1695c4=_0x5e748d[0x0];_0x390a49=_0x1695c4['name'],console[_0x59ce15(0x148)](_0x59ce15(0x159)+_0x1695c4['name']),console[_0x59ce15(0x148)](_0x59ce15(0x164));}}catch{}if(!_0x390a49)throw new Error(_0x4be6f9[_0x59ce15(0x150)](_0x4be6f9[_0x59ce15(0x182)](_0x4be6f9['msinZ'],_0x59ce15(0x16f))+_0x59ce15(0x157)+'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a',_0x4be6f9['VaUhM']));const _0x809ad9=getEnvDir(_0x390a49),_0x381d74=_0x4be6f9[_0x59ce15(0x17c)](existsSync,_0x809ad9);let _0x197c83=_0x22c5ec,_0x277aa7=![];if(!_0x197c83)try{_0x197c83=await _0x4be6f9['mmWlq'](fetchCloudProfile,_0x390a49);if(!_0x197c83)_0x277aa7=!![];}catch(_0x7e8f0c){_0x4be6f9['RdXMK'](_0x7e8f0c,ApiError)&&_0x7e8f0c[_0x59ce15(0x189)]===0x194&&(_0x277aa7=!![]);}if(_0x4be6f9[_0x59ce15(0x14f)](_0x124aa5,_0x277aa7)&&!_0x381d74&&!_0x197c83)throw new Error(_0x4be6f9[_0x59ce15(0x182)](_0x4be6f9[_0x59ce15(0x17b)]('Profile\x20\x22'+_0x124aa5+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a',_0x59ce15(0x15f)),_0x4be6f9[_0x59ce15(0x155)]));if(_0x4be6f9[_0x59ce15(0x163)](_0x197c83,_0x381d74)){let _0x1cac70=!![];if(isInteractive()){const {source:_0x263236}=await _0x3a472f[_0x59ce15(0x165)]([{'type':_0x59ce15(0x17a),'name':_0x4be6f9['ntFEE'],'message':_0x59ce15(0x15d)+_0x390a49+_0x59ce15(0x16e),'choices':[{'name':_0x4be6f9['rqJQo'],'value':_0x59ce15(0x170)},{'name':_0x4be6f9['gMjVz'],'value':'local'}],'default':_0x59ce15(0x170)}]);_0x1cac70=_0x263236==='cloud';}if(!_0x1cac70)_0x197c83=null;}const _0x356c38=_0x4be6f9['cwbZq'](readProfileOverrides,process['cwd'](),_0x390a49);let _0x2ff84c=null,_0x11775a,_0x27d64e,_0x873606,_0x5e9439,_0x4bf740=null,_0x37f4ee,_0x5a8615;const _0x131b2e=_0x4be6f9['gycTp'](expandOverrides,_0x356c38),_0x3f5308=readUrlEnvVars();if(_0x197c83){_0x2ff84c=_0x197c83;const _0x108e8e=_0x197c83['settings']??{},_0x1d140f=_0x4be6f9['nxcTJ'](mergeCloudProfileSettings,_0x108e8e,_0x4be6f9[_0x59ce15(0x17e)](_0x356c38,undefined)),_0x10fa2b={..._0x197c83,'settings':_0x1d140f};_0x4bf740={'baseUrl':_0x4be6f9['gycTp'](expandString,_0x108e8e['baseUrl']),'startPath':_0x4be6f9['YBvzD'](expandString,_0x108e8e['startPath'])};const _0x1d1416=await fetchAuthConfig(),_0x1391c7=_0x1d1416?_0x4be6f9['cwbZq'](resolveAuthEnvironmentLocally,_0x1d1416,_0x197c83['environmentKey']):null;_0x37f4ee=_0x1391c7?.['domains']?.[0x0],_0x5a8615=_0x1391c7?.[_0x59ce15(0x14c)];const _0x3621d7=_0x4be6f9['oaKTT'](resolveProfileUrl,{'flagBaseUrl':_0x3159af[_0x59ce15(0x177)],'flagStartPath':_0x3159af[_0x59ce15(0x16b)],'envBaseUrl':_0x3f5308[_0x59ce15(0x166)],'envStartPath':_0x3f5308['envStartPath'],'projectOverrides':_0x131b2e,'cloudSettings':_0x4bf740,'authEnvironmentDomain':_0x37f4ee}),_0x5a7319=process[_0x59ce15(0x15e)]['RANGER_SESSION_STATE_PATH'];if(_0x5a7319){if(!_0x4be6f9[_0x59ce15(0x149)](existsSync,_0x5a7319))throw new Error(_0x59ce15(0x181)+_0x5a7319+_0x59ce15(0x14b));_0x11775a=_0x5a7319,_0x27d64e=resolveEnvVars(_0x1d140f),_0x873606=Boolean(_0x27d64e[_0x59ce15(0x17d)]);}else{const _0x339085=await resolveCloudProfileSession(_0x10fa2b,{'effectiveBaseUrl':_0x3621d7[_0x59ce15(0x177)],'telemetry':_0x3159af[_0x59ce15(0x15a)]});_0x11775a=_0x339085['authPath'],_0x27d64e=resolveEnvVars(_0x339085['settings']),_0x873606=Boolean(_0x27d64e[_0x59ce15(0x17d)]),_0x37f4ee=_0x339085['resolvedEnv']?.[_0x59ce15(0x16d)]?.[0x0],_0x5a8615=_0x339085[_0x59ce15(0x187)]?.['key'];}}else{if(!_0x381d74){const _0x6c28d1=!_0x124aa5;throw new Error(_0x6c28d1?_0x4be6f9[_0x59ce15(0x167)]('Active\x20profile\x20\x22'+_0x390a49+_0x59ce15(0x156),_0x4be6f9['EacTz'])+_0x4be6f9['asbNQ']+(_0x59ce15(0x175)+_0x390a49+'`\x20to\x20recreate\x20it.'):_0x59ce15(0x15d)+_0x390a49+_0x59ce15(0x153)+_0x390a49);}const _0x2d3a53=await loadSettings(_0x390a49);_0x27d64e=resolveEnvVars(_0x2d3a53),_0x873606=_0x4be6f9[_0x59ce15(0x151)](Boolean,_0x27d64e['cdpEndpoint']),_0x5e9439=_0x27d64e[_0x59ce15(0x177)];}const _0xc60699=resolveProfileUrl({'flagBaseUrl':_0x3159af['baseUrl'],'flagStartPath':_0x3159af[_0x59ce15(0x16b)],'envBaseUrl':_0x3f5308[_0x59ce15(0x166)],'envStartPath':_0x3f5308[_0x59ce15(0x17f)],'localSettingsBaseUrl':_0x5e9439,'projectOverrides':_0x131b2e,'cloudSettings':_0x4bf740,'authEnvironmentDomain':_0x37f4ee}),_0x2d535a=_0xc60699[_0x59ce15(0x174)]??_0xc60699[_0x59ce15(0x177)];if(_0x4be6f9[_0x59ce15(0x168)](!_0x2d535a,!_0x873606))throw new Error(_0x59ce15(0x172)+_0x390a49+'\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20'+_0x390a49+'\x20baseUrl\x20<url>');return{'activeProfile':_0x390a49,'resolvedCloudProfile':_0x2ff84c,'cloudAuthPath':_0x11775a,'resolvedSettings':_0x27d64e,'isCdpMode':_0x873606,'url':_0x2d535a,'baseUrlSource':_0xc60699['baseUrlSource'],'authEnvKey':_0x5a8615,'startPath':_0xc60699[_0x59ce15(0x16b)]};}function _0x3860(){const _0x35cfd7=['ybwGj','4315340BVwNwp','\x20does\x20not\x20exist.','key','11712195GwhOQR','royxk','vsHDp','YKXgN','YBvzD','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','8205GDvwQK','dpYxv','\x22\x20no\x20longer\x20exists\x20(or\x20could\x20not\x20be\x20fetched).\x20Options:\x0a','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','\x20\x20Falling\x20back\x20to\x20saved\x20active\x20profile\x20\x22','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','telemetry','29217qzDkBM','name','Profile\x20\x22','env','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','\x20\x20Note:\x20--env\x20\x22','858053epENOs','authEnv','JVrIW','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','prompt','envBaseUrl','ZQEwl','sFzPC','\x22\x20only\x20affects\x20ad-hoc\x20profile\x20resolution;\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20use\x20it.','RANGER_TEST_USERNAME','startPath','\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20to\x20switch\x20(see\x20`ranger\x20profile\x20ls`),\x20or\x0a','domains','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','cloud','\x22\x20instead\x20of\x20the\x20saved\x20active\x20profile\x20\x22','No\x20baseUrl\x20configured\x20for\x20profile\x20\x22','334TBFymi','url','\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20','\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','baseUrl','1284FMolJm','88vYFJJh','list','fCRYA','oaKTT','cdpEndpoint','fqbOA','envStartPath','18588120bDXMpm','RANGER_SESSION_STATE_PATH=','fdkIB','npuwK','51271vlHqaf','\x20\x20RANGER_TEST_USERNAME\x20is\x20set\x20—\x20using\x20profile\x20\x22','\x20to\x20override.','resolvedEnv','CNJzG','status','profile','log'];_0x3860=function(){return _0x35cfd7;};return _0x3860();}function expandString(_0x161fe2){const _0x1ad454={'yELXg':function(_0x37328b,_0x4b145e){return _0x37328b(_0x4b145e);}};if(typeof _0x161fe2!=='string')return _0x161fe2;return _0x1ad454['yELXg'](resolveEnvVars,_0x161fe2);}function expandOverrides(_0x37bca8){const _0x13de88=_0x1bd3,_0x1205ef={'popoS':function(_0x4e264e,_0x5578b0){return _0x4e264e===_0x5578b0;},'CNJzG':'string','npuwK':function(_0x36ec51,_0x10c3ae){return _0x36ec51(_0x10c3ae);},'eZiMH':function(_0xc275fe,_0x2e14cf){return _0xc275fe(_0x2e14cf);}};if(!_0x37bca8)return _0x37bca8;const _0x351249={..._0x37bca8};return _0x1205ef['popoS'](typeof _0x351249['baseUrl'],_0x1205ef[_0x13de88(0x188)])&&(_0x351249['baseUrl']=_0x1205ef[_0x13de88(0x183)](resolveEnvVars,_0x351249['baseUrl'])),_0x1205ef['popoS'](typeof _0x351249['startPath'],'string')&&(_0x351249[_0x13de88(0x16b)]=_0x1205ef['eZiMH'](resolveEnvVars,_0x351249['startPath'])),_0x351249;}
1
+ (function(_0x13c1a8,_0x457160){const _0x541d82=_0x250e,_0x54592b=_0x13c1a8();while(!![]){try{const _0x456ce4=-parseInt(_0x541d82(0x12a))/0x1+-parseInt(_0x541d82(0xfd))/0x2+parseInt(_0x541d82(0x11f))/0x3+-parseInt(_0x541d82(0x103))/0x4+parseInt(_0x541d82(0x11c))/0x5*(parseInt(_0x541d82(0x126))/0x6)+-parseInt(_0x541d82(0x101))/0x7*(-parseInt(_0x541d82(0xf9))/0x8)+parseInt(_0x541d82(0x124))/0x9;if(_0x456ce4===_0x457160)break;else _0x54592b['push'](_0x54592b['shift']());}catch(_0x160b63){_0x54592b['push'](_0x54592b['shift']());}}}(_0x2d9d,0xef208));import{existsSync}from'fs';import _0x5090dc from'inquirer';import{ApiError,fetchAuthConfig,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive,resolveAuthEnvironmentLocally}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';function _0x2d9d(){const _0x2babf7=['`ranger\x20profile\x20add`\x20to\x20create\x20one.','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one\x20ad\x20hoc,\x20or\x0a','Local\x20profile','baseUrl','telemetry','\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20','domains','zWiwT','settings','TsjYz','xNHKQ','resolvedEnv','\x22\x20instead\x20of\x20the\x20saved\x20active\x20profile\x20\x22','CSkaM','tyyPC','log','345DKLGsk','name','\x20\x20Warning:\x20','2821500WDVLYx','Active\x20profile\x20\x22','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','profile','2788677MlJpOr','\x20\x20Note:\x20--env\x20\x22','144060EMFzoh','length','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','HtThA','306744iyuysw','gYdOE','envBaseUrl','environmentKey','QjYdf','eYEoI','AeWwH','baseUrlSource','wxsnS','NFIHx','Iskmn','string','cdpEndpoint','authEnv','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','cloud','72hzjHHK','startPath','tkvgJ','\x22.\x20Pass\x20--profile\x20','2226156eYFNMa','key','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','envStartPath','469973ILbhjW','vWMpA','4448032pKMfNl','\x20baseUrl\x20<url>','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','\x22\x20no\x20longer\x20exists\x20(or\x20could\x20not\x20be\x20fetched).\x20Options:\x0a','APbes','Profile\x20\x22','KAozC','env','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)'];_0x2d9d=function(){return _0x2babf7;};return _0x2d9d();}import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';function _0x250e(_0x546bd2,_0x202727){_0x546bd2=_0x546bd2-0xf7;const _0x2d9da6=_0x2d9d();let _0x250e3a=_0x2d9da6[_0x546bd2];return _0x250e3a;}import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x2c9b3f){const _0x328b64=_0x250e,_0x321f48={'vWMpA':function(_0x43de87){return _0x43de87();},'TsjYz':function(_0x3b852a,_0x39722a){return _0x3b852a??_0x39722a;},'CSkaM':function(_0x10f6c5,_0x5f3caa){return _0x10f6c5+_0x5f3caa;},'SIECd':'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','VQvYv':_0x328b64(0x128),'gYdOE':function(_0x398477,_0x4c268d){return _0x398477(_0x4c268d);},'APbes':function(_0x3f4825,_0xd36088){return _0x3f4825 instanceof _0xd36088;},'tkvgJ':function(_0x46b1be,_0x3eb302){return _0x46b1be+_0x3eb302;},'wxsnS':_0x328b64(0x10c),'HtThA':function(_0x55309a,_0x4cd819){return _0x55309a&&_0x4cd819;},'KAozC':'list','Spesa':'Cloud\x20profile\x20(recommended)','QjYdf':'local','zYtuE':_0x328b64(0xf8),'MMkqQ':function(_0x1daf15,_0x4de11f){return _0x1daf15===_0x4de11f;},'NFIHx':function(_0x260b9d,_0x159929){return _0x260b9d(_0x159929);},'eYEoI':function(_0xefaae4,_0xcd2812,_0x5d65a3){return _0xefaae4(_0xcd2812,_0x5d65a3);},'HoNqC':function(_0x209617){return _0x209617();},'Iskmn':function(_0x3aaf6a,_0x35319d){return _0x3aaf6a(_0x35319d);},'EVklD':function(_0x5b6f84,_0x1a8b52){return _0x5b6f84(_0x1a8b52);},'OKUFY':function(_0x4aaf91,_0x3c603c){return _0x4aaf91+_0x3c603c;},'rEmVB':function(_0x20d798,_0x23676a){return _0x20d798+_0x23676a;},'tyyPC':_0x328b64(0x10d)},_0x5d06d9=_0x2c9b3f[_0x328b64(0x123)];let _0x40a614=_0x5d06d9,_0x508c11=null;const _0x422553=_0x5d06d9?null:await _0x321f48[_0x328b64(0x102)](readActiveProfileName);if(_0x2c9b3f['authEnv']&&_0x5d06d9)console['log'](_0x328b64(0x125)+_0x2c9b3f['authEnv']+'\x22\x20is\x20ignored\x20when\x20--profile\x20is\x20set;\x20the\x20profile\x27s\x20own\x20auth\x20environment\x20applies.');else _0x2c9b3f['authEnv']&&!process[_0x328b64(0x10a)]['RANGER_TEST_USERNAME']&&console['log'](_0x328b64(0x125)+_0x2c9b3f[_0x328b64(0x137)]+'\x22\x20only\x20affects\x20ad-hoc\x20profile\x20resolution;\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20use\x20it.');if(!_0x5d06d9&&process[_0x328b64(0x10a)]['RANGER_TEST_USERNAME'])try{const _0x691ab9=await resolveAdHocProfile({'targetUrl':_0x2c9b3f['baseUrl']??_0x321f48['vWMpA'](readUrlEnvVars)['envBaseUrl'],'envKey':_0x2c9b3f[_0x328b64(0x137)]});_0x691ab9&&(_0x422553&&_0x422553!==_0x691ab9['name']&&console[_0x328b64(0x11b)]('\x20\x20RANGER_TEST_USERNAME\x20is\x20set\x20—\x20using\x20profile\x20\x22'+_0x691ab9['name']+_0x328b64(0x118)+_0x422553+_0x328b64(0xfc)+_0x422553+'\x20to\x20override.'),_0x40a614=_0x691ab9[_0x328b64(0x11d)],_0x508c11=_0x691ab9['profile']);}catch(_0x2098e7){if(!_0x422553||_0x2c9b3f[_0x328b64(0x137)])throw _0x2098e7;console['log'](_0x328b64(0x11e)+(_0x2098e7 instanceof Error?_0x2098e7['message']:String(_0x2098e7))),console['log']('\x20\x20Falling\x20back\x20to\x20saved\x20active\x20profile\x20\x22'+_0x422553+'\x22.');}if(!_0x40a614)_0x40a614=_0x321f48[_0x328b64(0x115)](_0x422553,undefined);if(!_0x40a614)try{const _0x913140=await listCloudProfiles();if(_0x913140[_0x328b64(0x127)]===0x1){const _0x431920=_0x913140[0x0];_0x40a614=_0x431920[_0x328b64(0x11d)],console['log'](_0x328b64(0xff)+_0x431920[_0x328b64(0x11d)]),console[_0x328b64(0x11b)](_0x328b64(0x10b));}}catch{}if(!_0x40a614)throw new Error(_0x321f48[_0x328b64(0x119)](_0x321f48[_0x328b64(0x119)](_0x321f48['CSkaM'](_0x321f48[_0x328b64(0x119)](_0x321f48['SIECd'],_0x328b64(0x138)),_0x321f48['VQvYv']),'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a'),_0x328b64(0x122)));const _0x1de870=getEnvDir(_0x40a614),_0x26880b=_0x321f48['gYdOE'](existsSync,_0x1de870);let _0x2344b2=_0x508c11,_0x3202fe=![];if(!_0x2344b2)try{_0x2344b2=await fetchCloudProfile(_0x40a614);if(!_0x2344b2)_0x3202fe=!![];}catch(_0x51e833){_0x321f48[_0x328b64(0x107)](_0x51e833,ApiError)&&_0x51e833['status']===0x194&&(_0x3202fe=!![]);}if(_0x5d06d9&&_0x3202fe&&!_0x26880b&&!_0x2344b2)throw new Error(_0x321f48['tkvgJ'](_0x321f48[_0x328b64(0x119)]('Profile\x20\x22'+_0x5d06d9+_0x328b64(0x121),'\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20'),_0x321f48[_0x328b64(0x132)]));if(_0x321f48[_0x328b64(0x129)](_0x2344b2,_0x26880b)){let _0x4b5a0c=!![];if(isInteractive()){const {source:_0x185bbc}=await _0x5090dc['prompt']([{'type':_0x321f48[_0x328b64(0x109)],'name':'source','message':'Profile\x20\x22'+_0x40a614+'\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','choices':[{'name':_0x321f48['Spesa'],'value':'cloud'},{'name':_0x328b64(0x10e),'value':_0x321f48[_0x328b64(0x12e)]}],'default':_0x321f48['zYtuE']}]);_0x4b5a0c=_0x321f48['MMkqQ'](_0x185bbc,_0x321f48['zYtuE']);}if(!_0x4b5a0c)_0x2344b2=null;}const _0x37e502=readProfileOverrides(process['cwd'](),_0x40a614);let _0x50e072=null,_0xc59cd5,_0x229a9a,_0x4e3396,_0x3a32bc,_0x3c7fad=null,_0x313347,_0x4c95fa;const _0x944977=_0x321f48[_0x328b64(0x133)](expandOverrides,_0x37e502),_0x4808e3=readUrlEnvVars();if(_0x2344b2){_0x50e072=_0x2344b2;const _0x52db5a=_0x2344b2[_0x328b64(0x114)]??{},_0x1db2cd=_0x321f48[_0x328b64(0x12f)](mergeCloudProfileSettings,_0x52db5a,_0x37e502??undefined),_0x38eb99={..._0x2344b2,'settings':_0x1db2cd};_0x3c7fad={'baseUrl':expandString(_0x52db5a[_0x328b64(0x10f)]),'startPath':expandString(_0x52db5a[_0x328b64(0xfa)])};const _0x1af372=await _0x321f48['HoNqC'](fetchAuthConfig),_0x5726a5=_0x1af372?resolveAuthEnvironmentLocally(_0x1af372,_0x2344b2[_0x328b64(0x12d)]):null;_0x313347=_0x5726a5?.[_0x328b64(0x112)]?.[0x0],_0x4c95fa=_0x5726a5?.[_0x328b64(0xfe)];const _0x1e434b=resolveProfileUrl({'flagBaseUrl':_0x2c9b3f['baseUrl'],'flagStartPath':_0x2c9b3f[_0x328b64(0xfa)],'envBaseUrl':_0x4808e3['envBaseUrl'],'envStartPath':_0x4808e3[_0x328b64(0x100)],'projectOverrides':_0x944977,'cloudSettings':_0x3c7fad,'authEnvironmentDomain':_0x313347}),_0x5b9042=process['env']['RANGER_SESSION_STATE_PATH'];if(_0x5b9042){if(!_0x321f48[_0x328b64(0x134)](existsSync,_0x5b9042))throw new Error('RANGER_SESSION_STATE_PATH='+_0x5b9042+'\x20does\x20not\x20exist.');_0xc59cd5=_0x5b9042,_0x229a9a=_0x321f48['EVklD'](resolveEnvVars,_0x1db2cd),_0x4e3396=Boolean(_0x229a9a['cdpEndpoint']);}else{const _0x11d089=await _0x321f48[_0x328b64(0x12f)](resolveCloudProfileSession,_0x38eb99,{'effectiveBaseUrl':_0x1e434b['baseUrl'],'telemetry':_0x2c9b3f[_0x328b64(0x110)]});_0xc59cd5=_0x11d089['authPath'],_0x229a9a=resolveEnvVars(_0x11d089[_0x328b64(0x114)]),_0x4e3396=_0x321f48['Iskmn'](Boolean,_0x229a9a['cdpEndpoint']),_0x313347=_0x11d089['resolvedEnv']?.[_0x328b64(0x112)]?.[0x0],_0x4c95fa=_0x11d089[_0x328b64(0x117)]?.['key'];}}else{if(!_0x26880b){const _0x5452a7=!_0x5d06d9;throw new Error(_0x5452a7?_0x321f48[_0x328b64(0xfb)](_0x321f48['OKUFY'](_0x321f48['rEmVB'](_0x328b64(0x120)+_0x40a614+_0x328b64(0x106),'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20to\x20switch\x20(see\x20`ranger\x20profile\x20ls`),\x20or\x0a'),_0x321f48[_0x328b64(0x11a)]),_0x328b64(0x111)+_0x40a614+'`\x20to\x20recreate\x20it.'):_0x328b64(0x108)+_0x40a614+_0x328b64(0x105)+_0x40a614);}const _0x439ad9=await _0x321f48[_0x328b64(0x134)](loadSettings,_0x40a614);_0x229a9a=resolveEnvVars(_0x439ad9),_0x4e3396=Boolean(_0x229a9a[_0x328b64(0x136)]),_0x3a32bc=_0x229a9a['baseUrl'];}const _0x23e70c=_0x321f48[_0x328b64(0x12b)](resolveProfileUrl,{'flagBaseUrl':_0x2c9b3f[_0x328b64(0x10f)],'flagStartPath':_0x2c9b3f[_0x328b64(0xfa)],'envBaseUrl':_0x4808e3[_0x328b64(0x12c)],'envStartPath':_0x4808e3[_0x328b64(0x100)],'localSettingsBaseUrl':_0x3a32bc,'projectOverrides':_0x944977,'cloudSettings':_0x3c7fad,'authEnvironmentDomain':_0x313347}),_0x4be5ff=_0x23e70c['url']??_0x23e70c['baseUrl'];if(!_0x4be5ff&&!_0x4e3396)throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0x40a614+_0x328b64(0xf7)+_0x40a614+_0x328b64(0x104));return{'activeProfile':_0x40a614,'resolvedCloudProfile':_0x50e072,'cloudAuthPath':_0xc59cd5,'resolvedSettings':_0x229a9a,'isCdpMode':_0x4e3396,'url':_0x4be5ff,'baseUrlSource':_0x23e70c[_0x328b64(0x131)],'authEnvKey':_0x4c95fa,'startPath':_0x23e70c[_0x328b64(0xfa)]};}function expandString(_0x5100a6){const _0xd6e318=_0x250e,_0x820bde={'xNHKQ':function(_0x149460,_0x51908e){return _0x149460!==_0x51908e;},'ToYpP':'string','SXlhJ':function(_0x17c1d6,_0x2eb810){return _0x17c1d6(_0x2eb810);}};if(_0x820bde[_0xd6e318(0x116)](typeof _0x5100a6,_0x820bde['ToYpP']))return _0x5100a6;return _0x820bde['SXlhJ'](resolveEnvVars,_0x5100a6);}function expandOverrides(_0x302a19){const _0x54bd87=_0x250e,_0x2a055b={'AeWwH':function(_0x441b1c,_0x20aa03){return _0x441b1c===_0x20aa03;},'FServ':function(_0x395be3,_0x364e69){return _0x395be3(_0x364e69);},'zWiwT':function(_0x1f3985,_0x566b9c){return _0x1f3985===_0x566b9c;}};if(!_0x302a19)return _0x302a19;const _0x864b15={..._0x302a19};return _0x2a055b[_0x54bd87(0x130)](typeof _0x864b15['baseUrl'],_0x54bd87(0x135))&&(_0x864b15[_0x54bd87(0x10f)]=_0x2a055b['FServ'](resolveEnvVars,_0x864b15['baseUrl'])),_0x2a055b[_0x54bd87(0x113)](typeof _0x864b15[_0x54bd87(0xfa)],_0x54bd87(0x135))&&(_0x864b15[_0x54bd87(0xfa)]=resolveEnvVars(_0x864b15[_0x54bd87(0xfa)])),_0x864b15;}
@@ -1 +1 @@
1
- (function(_0x4d714e,_0x1101d1){const _0x50acc8=_0x3d18,_0x22d541=_0x4d714e();while(!![]){try{const _0x505c07=-parseInt(_0x50acc8(0x207))/0x1+-parseInt(_0x50acc8(0x205))/0x2*(-parseInt(_0x50acc8(0x1fb))/0x3)+-parseInt(_0x50acc8(0x204))/0x4+parseInt(_0x50acc8(0x201))/0x5*(parseInt(_0x50acc8(0x1fe))/0x6)+parseInt(_0x50acc8(0x20e))/0x7+parseInt(_0x50acc8(0x202))/0x8+-parseInt(_0x50acc8(0x208))/0x9;if(_0x505c07===_0x1101d1)break;else _0x22d541['push'](_0x22d541['shift']());}catch(_0x307c9d){_0x22d541['push'](_0x22d541['shift']());}}}(_0x5b5f,0xf2843));function firstDefined(..._0x1df6d4){const _0x103b14=_0x3d18,_0x154b58={'IdTuO':function(_0x27bf4f,_0x415ed3){return _0x27bf4f!==_0x415ed3;}};for(const _0x2ab785 of _0x1df6d4){if(_0x2ab785!==undefined&&_0x154b58[_0x103b14(0x1f1)](_0x2ab785,null)&&_0x2ab785!=='')return _0x2ab785;}return undefined;}function normalizeAuthEnvironmentDomain(_0x37cb0f){if(!_0x37cb0f)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i['test'](_0x37cb0f))return _0x37cb0f;return'https://'+_0x37cb0f;}export function resolveBaseUrlWithSource(_0x2b19a2){const _0x16f65d=_0x3d18,_0x204632={'hZjIw':function(_0x16484c,_0x3f2f3f){return _0x16484c in _0x3f2f3f;},'CdWma':'baseUrl','xfCLp':function(_0x366739,_0x3a5c81){return _0x366739===_0x3a5c81;},'UbUut':_0x16f65d(0x1fc),'QjowY':_0x16f65d(0x1fd),'vrnnc':'cloud\x20profile\x20settings','dycfp':function(_0x5ad695,_0xe0fa2b){return _0x5ad695(_0xe0fa2b);},'bEElT':function(_0x50b94b,_0x3e4341){return _0x50b94b!==_0x3e4341;},'baZbJ':function(_0x36e402,_0x57f783){return _0x36e402!==_0x57f783;},'OeVwZ':function(_0x47dc98,_0x3b71cf){return _0x47dc98!==_0x3b71cf;}},_0x5a733c=_0x2b19a2[_0x16f65d(0x1f0)],_0x166da4=!!_0x5a733c&&_0x204632[_0x16f65d(0x20c)](_0x204632['CdWma'],_0x5a733c),_0x4bd94f=_0x5a733c?.['baseUrl'],_0x1fab6d=!(_0x166da4&&_0x204632[_0x16f65d(0x1f8)](_0x4bd94f,null)),_0x3bb812=[[_0x2b19a2[_0x16f65d(0x20a)],_0x16f65d(0x203)],[_0x2b19a2['envBaseUrl'],_0x204632[_0x16f65d(0x1f6)]],[_0x2b19a2['localSettingsBaseUrl'],'local\x20profile\x20settings'],[_0x204632['xfCLp'](typeof _0x4bd94f,_0x16f65d(0x200))?_0x4bd94f:undefined,_0x204632[_0x16f65d(0x1f2)]],[_0x1fab6d?_0x2b19a2[_0x16f65d(0x20b)]?.[_0x16f65d(0x206)]:undefined,_0x204632['vrnnc']],[_0x1fab6d?_0x204632[_0x16f65d(0x1f4)](normalizeAuthEnvironmentDomain,_0x2b19a2[_0x16f65d(0x20d)]):undefined,_0x16f65d(0x209)]];for(const [_0x12c0c6,_0x4168c2]of _0x3bb812){if(_0x204632['bEElT'](_0x12c0c6,undefined)&&_0x204632['baZbJ'](_0x12c0c6,null)&&_0x204632[_0x16f65d(0x1ff)](_0x12c0c6,''))return{'baseUrl':_0x12c0c6,'source':_0x4168c2};}return{};}export function resolveBaseUrl(_0x160a0b){const _0x585a92=_0x3d18;return resolveBaseUrlWithSource(_0x160a0b)[_0x585a92(0x206)];}function _0x5b5f(){const _0x1d74e2=['ekoiT','3oIHAez','RANGER_BASE_URL','projects.json\x20override','2869302ngsswk','OeVwZ','string','5YCUSAb','1731144IOtaVZ','--base-url','237264IGBvpx','1834516aKoBCi','baseUrl','1476393EJsRmt','2435634fKUmwe','auth\x20environment\x20domain','flagBaseUrl','cloudSettings','hZjIw','authEnvironmentDomain','8314698iUenGW','tjtfx','projectOverrides','IdTuO','QjowY','startsWith','dycfp','flagStartPath','UbUut','endsWith','xfCLp','startPath'];_0x5b5f=function(){return _0x1d74e2;};return _0x5b5f();}function _0x3d18(_0x4d7135,_0x391695){_0x4d7135=_0x4d7135-0x1f0;const _0x5b5f85=_0x5b5f();let _0x3d18d2=_0x5b5f85[_0x4d7135];return _0x3d18d2;}export function resolveStartPath(_0x90aa0b){const _0x98d58a=_0x3d18,_0x2b22e7={'ekoiT':function(_0x4f6ee2,_0xaf9afc){return _0x4f6ee2 in _0xaf9afc;},'mEwKN':_0x98d58a(0x200)},_0x2c25cd=_0x90aa0b['projectOverrides'],_0x4a7f94=!!_0x2c25cd&&_0x2b22e7[_0x98d58a(0x1fa)]('startPath',_0x2c25cd),_0x1785d6=_0x2c25cd?.[_0x98d58a(0x1f9)],_0x588f9e=!(_0x4a7f94&&_0x1785d6===null);return firstDefined(_0x90aa0b[_0x98d58a(0x1f5)],_0x90aa0b['envStartPath'],typeof _0x1785d6===_0x2b22e7['mEwKN']?_0x1785d6:undefined,_0x588f9e?_0x90aa0b[_0x98d58a(0x20b)]?.['startPath']:undefined);}export function joinBaseAndPath(_0x203001,_0x476694){const _0x5ea7ad=_0x3d18,_0xddfc7a={'tjtfx':function(_0x51f7e4,_0x101daf){return _0x51f7e4+_0x101daf;}};if(!_0x203001)return undefined;if(!_0x476694)return _0x203001;const _0x1e4b1e=_0x203001[_0x5ea7ad(0x1f7)]('/')?_0x203001['slice'](0x0,-0x1):_0x203001,_0x22e4e2=_0x476694[_0x5ea7ad(0x1f3)]('/')?_0x476694:_0xddfc7a[_0x5ea7ad(0x20f)]('/',_0x476694);return _0x1e4b1e+_0x22e4e2;}export function resolveProfileUrl(_0x2771f7){const _0x566e88={'YJZji':function(_0x4501b4,_0xe41027){return _0x4501b4(_0xe41027);},'YwHNC':function(_0x368247,_0x4222a3,_0x57a0b2){return _0x368247(_0x4222a3,_0x57a0b2);}},{baseUrl:_0x518c87,source:_0x3a7c74}=resolveBaseUrlWithSource(_0x2771f7),_0x669a9e=_0x566e88['YJZji'](resolveStartPath,_0x2771f7);return{'baseUrl':_0x518c87,'baseUrlSource':_0x3a7c74,'startPath':_0x669a9e,'url':_0x566e88['YwHNC'](joinBaseAndPath,_0x518c87,_0x669a9e)};}export function readUrlEnvVars(_0x3ecbe4=process['env']){const _0x1e4dc5=_0x3d18;return{'envBaseUrl':_0x3ecbe4[_0x1e4dc5(0x1fc)],'envStartPath':_0x3ecbe4['RANGER_START_PATH']};}
1
+ const _0x324361=_0x47d2;(function(_0x2f2875,_0x1e77e7){const _0xf9b293=_0x47d2,_0x1a7e05=_0x2f2875();while(!![]){try{const _0xe289db=-parseInt(_0xf9b293(0x1ac))/0x1*(parseInt(_0xf9b293(0x1a5))/0x2)+-parseInt(_0xf9b293(0x1bd))/0x3+parseInt(_0xf9b293(0x1b1))/0x4+parseInt(_0xf9b293(0x1a9))/0x5*(parseInt(_0xf9b293(0x1c2))/0x6)+-parseInt(_0xf9b293(0x1b2))/0x7*(-parseInt(_0xf9b293(0x1b5))/0x8)+parseInt(_0xf9b293(0x1c3))/0x9+parseInt(_0xf9b293(0x1b8))/0xa*(parseInt(_0xf9b293(0x1bb))/0xb);if(_0xe289db===_0x1e77e7)break;else _0x1a7e05['push'](_0x1a7e05['shift']());}catch(_0x1b3aca){_0x1a7e05['push'](_0x1a7e05['shift']());}}}(_0x2c2d,0x43f80));function firstDefined(..._0x31bcff){const _0x40e5b7={'MAPRQ':function(_0x477bd2,_0x139d40){return _0x477bd2!==_0x139d40;}};for(const _0x1e5c63 of _0x31bcff){if(_0x1e5c63!==undefined&&_0x40e5b7['MAPRQ'](_0x1e5c63,null)&&_0x1e5c63!=='')return _0x1e5c63;}return undefined;}function normalizeAuthEnvironmentDomain(_0x3808d4){const _0x1afac4=_0x47d2;if(!_0x3808d4)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i['test'](_0x3808d4))return _0x3808d4;return _0x1afac4(0x1ae)+_0x3808d4;}export function resolveBaseUrlWithSource(_0x59e745){const _0x5448fe=_0x47d2,_0x4c5fef={'eOptz':'baseUrl','dVSmK':function(_0x5671b2,_0x13ca26){return _0x5671b2===_0x13ca26;},'eVWKp':'local\x20profile\x20settings','VtGfh':_0x5448fe(0x1af),'OkkJC':_0x5448fe(0x1b0),'OyEPN':function(_0x30f892,_0x18540e){return _0x30f892!==_0x18540e;}},_0x3036ca=_0x59e745[_0x5448fe(0x1a7)],_0x3ce8c6=!!_0x3036ca&&_0x4c5fef[_0x5448fe(0x1c0)]in _0x3036ca,_0x488c1d=_0x3036ca?.['baseUrl'],_0x15eca7=!(_0x3ce8c6&&_0x4c5fef[_0x5448fe(0x1b9)](_0x488c1d,null)),_0x3139d1=[[_0x59e745[_0x5448fe(0x1b7)],_0x5448fe(0x1b3)],[_0x59e745['envBaseUrl'],_0x5448fe(0x1aa)],[_0x59e745[_0x5448fe(0x1c4)],_0x4c5fef['eVWKp']],[typeof _0x488c1d===_0x5448fe(0x1bc)?_0x488c1d:undefined,'projects.json\x20override'],[_0x15eca7?_0x59e745['cloudSettings']?.['baseUrl']:undefined,_0x4c5fef['VtGfh']],[_0x15eca7?normalizeAuthEnvironmentDomain(_0x59e745[_0x5448fe(0x1be)]):undefined,_0x4c5fef[_0x5448fe(0x1a8)]]];for(const [_0x14f6a9,_0x41a509]of _0x3139d1){if(_0x14f6a9!==undefined&&_0x14f6a9!==null&&_0x4c5fef['OyEPN'](_0x14f6a9,''))return{'baseUrl':_0x14f6a9,'source':_0x41a509};}return{};}export function resolveBaseUrl(_0x222ce0){return resolveBaseUrlWithSource(_0x222ce0)['baseUrl'];}function _0x47d2(_0xcd2f5f,_0x1315c8){_0xcd2f5f=_0xcd2f5f-0x1a5;const _0x2c2dcb=_0x2c2d();let _0x47d2f3=_0x2c2dcb[_0xcd2f5f];return _0x47d2f3;}export function resolveStartPath(_0x4c8d87){const _0x3c40ee=_0x47d2,_0x47a772={'LqIxO':'startPath','meNvu':function(_0x1081b3,_0x3cfedd){return _0x1081b3===_0x3cfedd;},'CxxuD':function(_0x3cc38e,_0x45b929,_0x2c344b,_0x4c4625,_0x134c92){return _0x3cc38e(_0x45b929,_0x2c344b,_0x4c4625,_0x134c92);},'jFOdu':'string'},_0x2b0562=_0x4c8d87['projectOverrides'],_0x3ef464=!!_0x2b0562&&_0x47a772[_0x3c40ee(0x1b4)]in _0x2b0562,_0x558e5f=_0x2b0562?.[_0x3c40ee(0x1ab)],_0x32633a=!(_0x3ef464&&_0x47a772[_0x3c40ee(0x1c1)](_0x558e5f,null));return _0x47a772[_0x3c40ee(0x1bf)](firstDefined,_0x4c8d87[_0x3c40ee(0x1ba)],_0x4c8d87[_0x3c40ee(0x1ad)],typeof _0x558e5f===_0x47a772[_0x3c40ee(0x1b6)]?_0x558e5f:undefined,_0x32633a?_0x4c8d87['cloudSettings']?.['startPath']:undefined);}function _0x2c2d(){const _0xb55501=['startPath','5900IPqZoc','envStartPath','https://','cloud\x20profile\x20settings','auth\x20environment\x20domain','420708KDynNd','21csuARj','--base-url','LqIxO','10712wOlhMB','jFOdu','flagBaseUrl','36870iqSehI','dVSmK','flagStartPath','1254iFZFbb','string','906099UhNvDG','authEnvironmentDomain','CxxuD','eOptz','meNvu','55836kMeJbt','2257155cPHFXm','localSettingsBaseUrl','134Tbjorm','env','projectOverrides','OkkJC','105vQxXIZ','RANGER_BASE_URL'];_0x2c2d=function(){return _0xb55501;};return _0x2c2d();}export function joinBaseAndPath(_0x2caabd,_0x44e2a8){const _0x149f5e={'wtFFe':function(_0x532863,_0x19859d){return _0x532863+_0x19859d;},'mvYAc':function(_0x5ac9d9,_0x12d802){return _0x5ac9d9+_0x12d802;}};if(!_0x2caabd)return undefined;if(!_0x44e2a8)return _0x2caabd;const _0x4a7368=_0x2caabd['endsWith']('/')?_0x2caabd['slice'](0x0,-0x1):_0x2caabd,_0x1c5481=_0x44e2a8['startsWith']('/')?_0x44e2a8:_0x149f5e['wtFFe']('/',_0x44e2a8);return _0x149f5e['mvYAc'](_0x4a7368,_0x1c5481);}export function resolveProfileUrl(_0x3770e9){const _0x35609f={'hpudP':function(_0x42f55c,_0x588414){return _0x42f55c(_0x588414);}},{baseUrl:_0x4bb355,source:_0x45f0a7}=_0x35609f['hpudP'](resolveBaseUrlWithSource,_0x3770e9),_0x2489eb=resolveStartPath(_0x3770e9);return{'baseUrl':_0x4bb355,'baseUrlSource':_0x45f0a7,'startPath':_0x2489eb,'url':joinBaseAndPath(_0x4bb355,_0x2489eb)};}export function readUrlEnvVars(_0x8d6ef0=process[_0x324361(0x1a6)]){return{'envBaseUrl':_0x8d6ef0['RANGER_BASE_URL'],'envStartPath':_0x8d6ef0['RANGER_START_PATH']};}
@@ -1 +1 @@
1
- function _0x39a3(_0x20897a,_0x37a3f1){_0x20897a=_0x20897a-0x1de;const _0x4855b4=_0x4855();let _0x39a3a3=_0x4855b4[_0x20897a];return _0x39a3a3;}function _0x4855(){const _0x356969=['ms...','1259414BTlUYS','9pdVcNs','543190evgQOH','15468NkdFfX','label','BucOk','1OIrsRx','104OJMFhs','3327192szpePy','LVSTX','40061VqUgRD','baseDelayMs','861750GHnFGB','RyxnB','2948340TSsBOJ','308eLBylP'];_0x4855=function(){return _0x356969;};return _0x4855();}(function(_0x5a099f,_0x526d96){const _0x17739b=_0x39a3,_0x464b6f=_0x5a099f();while(!![]){try{const _0x1a30a7=-parseInt(_0x17739b(0x1e8))/0x1*(parseInt(_0x17739b(0x1e2))/0x2)+-parseInt(_0x17739b(0x1e5))/0x3*(-parseInt(_0x17739b(0x1e0))/0x4)+-parseInt(_0x17739b(0x1e4))/0x5+parseInt(_0x17739b(0x1ee))/0x6+-parseInt(_0x17739b(0x1ec))/0x7*(parseInt(_0x17739b(0x1e9))/0x8)+-parseInt(_0x17739b(0x1e3))/0x9*(-parseInt(_0x17739b(0x1df))/0xa)+parseInt(_0x17739b(0x1ea))/0xb;if(_0x1a30a7===_0x526d96)break;else _0x464b6f['push'](_0x464b6f['shift']());}catch(_0x44e84a){_0x464b6f['push'](_0x464b6f['shift']());}}}(_0x4855,0x4f64f));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x1b82b1,_0x38be19){const _0x4c7174=_0x39a3,_0x27459f={'RyxnB':function(_0x3dc05e){return _0x3dc05e();},'LVSTX':function(_0x5c4836,_0xb4bf4b){return _0x5c4836(_0xb4bf4b);},'BucOk':function(_0x12b427,_0x505556){return _0x12b427+_0x505556;}},_0x2c594b=_0x38be19?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x25ee04=_0x38be19?.[_0x4c7174(0x1ed)]??DEFAULT_BASE_DELAY_MS;let _0x3ce778;for(let _0xe784d2=0x0;_0xe784d2<=_0x2c594b;_0xe784d2++){try{return await _0x27459f[_0x4c7174(0x1de)](_0x1b82b1);}catch(_0x518831){_0x3ce778=_0x518831 instanceof Error?_0x518831:new Error(_0x27459f[_0x4c7174(0x1eb)](String,_0x518831));if(_0xe784d2<_0x2c594b){const _0x56f1dd=_0x25ee04*Math['pow'](0x2,_0xe784d2);_0x38be19?.[_0x4c7174(0x1e6)]&&console['error'](_0x38be19[_0x4c7174(0x1e6)]+'\x20failed\x20(attempt\x20'+_0x27459f[_0x4c7174(0x1e7)](_0xe784d2,0x1)+'/'+(_0x2c594b+0x1)+'),\x20retrying\x20in\x20'+_0x56f1dd+_0x4c7174(0x1e1)),await new Promise(_0x2f2acc=>setTimeout(_0x2f2acc,_0x56f1dd));}}}throw _0x3ce778;}
1
+ (function(_0x164aed,_0x52f78d){const _0x30f80e=_0x151f,_0x532bd8=_0x164aed();while(!![]){try{const _0x27a639=parseInt(_0x30f80e(0x1f7))/0x1*(-parseInt(_0x30f80e(0x1f5))/0x2)+-parseInt(_0x30f80e(0x1fa))/0x3*(parseInt(_0x30f80e(0x1f8))/0x4)+parseInt(_0x30f80e(0x1ed))/0x5+-parseInt(_0x30f80e(0x1fb))/0x6*(-parseInt(_0x30f80e(0x1f3))/0x7)+parseInt(_0x30f80e(0x1ec))/0x8+parseInt(_0x30f80e(0x1ef))/0x9*(parseInt(_0x30f80e(0x1f9))/0xa)+-parseInt(_0x30f80e(0x1f0))/0xb*(parseInt(_0x30f80e(0x1fc))/0xc);if(_0x27a639===_0x52f78d)break;else _0x532bd8['push'](_0x532bd8['shift']());}catch(_0x5e871b){_0x532bd8['push'](_0x532bd8['shift']());}}}(_0x16b9,0xbb310));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x151f(_0x382da0,_0x465104){_0x382da0=_0x382da0-0x1ec;const _0x16b916=_0x16b9();let _0x151fae=_0x16b916[_0x382da0];return _0x151fae;}function _0x16b9(){const _0x168d32=['maxRetries','9XBPAaM','3668423DHEAKS','label','ms...','254513VKbxqh','dtiQB','2ssBPFU','error','1434461JAIwzv','11756UXzQjX','5281630gyTiXx','1206HEcEID','72EqlDkZ','12elcZym','12137128VJQdJM','6172780qXRPoA'];_0x16b9=function(){return _0x168d32;};return _0x16b9();}export async function withRetry(_0x2fe32c,_0x54d787){const _0x3c0793=_0x151f,_0x5a9d9f={'dtiQB':function(_0x56c0b8){return _0x56c0b8();},'Ofugg':function(_0x180acd,_0x1784f6){return _0x180acd instanceof _0x1784f6;}},_0x453906=_0x54d787?.[_0x3c0793(0x1ee)]??DEFAULT_MAX_RETRIES,_0x30c377=_0x54d787?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x4202d2;for(let _0x3b22b5=0x0;_0x3b22b5<=_0x453906;_0x3b22b5++){try{return await _0x5a9d9f[_0x3c0793(0x1f4)](_0x2fe32c);}catch(_0x91cda4){_0x4202d2=_0x5a9d9f['Ofugg'](_0x91cda4,Error)?_0x91cda4:new Error(String(_0x91cda4));if(_0x3b22b5<_0x453906){const _0x3ffe13=_0x30c377*Math['pow'](0x2,_0x3b22b5);_0x54d787?.['label']&&console[_0x3c0793(0x1f6)](_0x54d787[_0x3c0793(0x1f1)]+'\x20failed\x20(attempt\x20'+(_0x3b22b5+0x1)+'/'+(_0x453906+0x1)+'),\x20retrying\x20in\x20'+_0x3ffe13+_0x3c0793(0x1f2)),await new Promise(_0xbad14c=>setTimeout(_0xbad14c,_0x3ffe13));}}}throw _0x4202d2;}
@@ -1 +1 @@
1
- (function(_0x943e,_0x470d27){const _0x501943=_0x3168,_0x4f34fc=_0x943e();while(!![]){try{const _0x2ca7c2=-parseInt(_0x501943(0xf1))/0x1+parseInt(_0x501943(0xf3))/0x2*(-parseInt(_0x501943(0xef))/0x3)+parseInt(_0x501943(0xed))/0x4+-parseInt(_0x501943(0xf2))/0x5*(-parseInt(_0x501943(0xf7))/0x6)+-parseInt(_0x501943(0xf6))/0x7*(-parseInt(_0x501943(0xf8))/0x8)+-parseInt(_0x501943(0xee))/0x9*(parseInt(_0x501943(0xf0))/0xa)+parseInt(_0x501943(0xec))/0xb*(parseInt(_0x501943(0xf4))/0xc);if(_0x2ca7c2===_0x470d27)break;else _0x4f34fc['push'](_0x4f34fc['shift']());}catch(_0x4fab19){_0x4f34fc['push'](_0x4f34fc['shift']());}}}(_0x2058,0x5a013));const ABSOLUTE_URL_PATTERN=/https?:\/\/[^\s"'<>()\[\]]+/gi;export function extractUrlOrigins(_0xceb902){const _0x1548f8=_0x3168,_0x20266a=new Set();for(const _0x138c60 of _0xceb902['matchAll'](ABSOLUTE_URL_PATTERN)){const _0x570773=_0x138c60[0x0][_0x1548f8(0xea)](/[.,;:!?]+$/,'');try{_0x20266a[_0x1548f8(0xf5)](new URL(_0x570773)[_0x1548f8(0xeb)]);}catch{}}return[..._0x20266a];}function _0x3168(_0x5cd3b1,_0x1d88e1){_0x5cd3b1=_0x5cd3b1-0xea;const _0x20580f=_0x2058();let _0x316875=_0x20580f[_0x5cd3b1];return _0x316875;}export function findScenarioOriginMismatches(_0xa8a73b,_0xbe5216){const _0x121796={'GDYIy':function(_0x3d0241,_0x481ed8){return _0x3d0241(_0x481ed8);}};let _0x1ea6cd;try{_0x1ea6cd=new URL(_0xbe5216)['origin'];}catch{return[];}return _0x121796['GDYIy'](extractUrlOrigins,_0xa8a73b)['filter'](_0x174cab=>_0x174cab!==_0x1ea6cd);}function _0x2058(){const _0x340727=['143690TClPnx','1192726iMXRdq','96UXAszd','add','371MTRNty','6hMtkGk','66512cmQcgR','replace','origin','1002397UiBlqs','2633316muorzZ','207grkNiI','3FnIKtY','128680AbqWMk','595739MJihku'];_0x2058=function(){return _0x340727;};return _0x2058();}
1
+ function _0x2147(){const _0x3c4d15=['1045052Snwquv','matchAll','604604Yydeas','replace','2mKFVZz','11996EhEzAb','3019010tNUnGE','9VHpKwi','3367144XzUEDk','1638890UudIsj','136xtLiBM','origin','6091386xNlwGu','1059EFbycs'];_0x2147=function(){return _0x3c4d15;};return _0x2147();}function _0x12ec(_0x4bb13e,_0x56e43a){_0x4bb13e=_0x4bb13e-0x111;const _0x214704=_0x2147();let _0x12ecd2=_0x214704[_0x4bb13e];return _0x12ecd2;}(function(_0x2796b9,_0x2ff96e){const _0x1211fd=_0x12ec,_0x2952dc=_0x2796b9();while(!![]){try{const _0x265c8c=-parseInt(_0x1211fd(0x11e))/0x1*(-parseInt(_0x1211fd(0x11a))/0x2)+-parseInt(_0x1211fd(0x119))/0x3*(parseInt(_0x1211fd(0x111))/0x4)+parseInt(_0x1211fd(0x115))/0x5+-parseInt(_0x1211fd(0x118))/0x6+parseInt(_0x1211fd(0x11c))/0x7*(parseInt(_0x1211fd(0x116))/0x8)+parseInt(_0x1211fd(0x113))/0x9*(parseInt(_0x1211fd(0x112))/0xa)+-parseInt(_0x1211fd(0x114))/0xb;if(_0x265c8c===_0x2ff96e)break;else _0x2952dc['push'](_0x2952dc['shift']());}catch(_0x1bf8b5){_0x2952dc['push'](_0x2952dc['shift']());}}}(_0x2147,0xba4c1));const ABSOLUTE_URL_PATTERN=/https?:\/\/[^\s"'<>()\[\]]+/gi;export function extractUrlOrigins(_0x3a5747){const _0x456811=_0x12ec,_0x4d0acd=new Set();for(const _0x2230f3 of _0x3a5747[_0x456811(0x11b)](ABSOLUTE_URL_PATTERN)){const _0x56cf7f=_0x2230f3[0x0][_0x456811(0x11d)](/[.,;:!?]+$/,'');try{_0x4d0acd['add'](new URL(_0x56cf7f)[_0x456811(0x117)]);}catch{}}return[..._0x4d0acd];}export function findScenarioOriginMismatches(_0xa3029f,_0x320e49){const _0x2f4fc9={'rlJcA':function(_0x48f135,_0xda6bc3){return _0x48f135(_0xda6bc3);}};let _0x529eee;try{_0x529eee=new URL(_0x320e49)['origin'];}catch{return[];}return _0x2f4fc9['rlJcA'](extractUrlOrigins,_0xa3029f)['filter'](_0x4893c4=>_0x4893c4!==_0x529eee);}
@@ -1 +1 @@
1
- const _0x397bde=_0x5b0d;(function(_0x5c822b,_0x49b42f){const _0x42ca1c=_0x5b0d,_0x4a2825=_0x5c822b();while(!![]){try{const _0x2f94a2=-parseInt(_0x42ca1c(0x14c))/0x1+parseInt(_0x42ca1c(0x171))/0x2+parseInt(_0x42ca1c(0x15b))/0x3*(-parseInt(_0x42ca1c(0x163))/0x4)+parseInt(_0x42ca1c(0x160))/0x5+parseInt(_0x42ca1c(0x142))/0x6+parseInt(_0x42ca1c(0x162))/0x7+parseInt(_0x42ca1c(0x147))/0x8*(-parseInt(_0x42ca1c(0x15f))/0x9);if(_0x2f94a2===_0x49b42f)break;else _0x4a2825['push'](_0x4a2825['shift']());}catch(_0x593d08){_0x4a2825['push'](_0x4a2825['shift']());}}}(_0x4d73,0x55872));import*as _0x1d78c2 from'fs';import*as _0x411c09 from'path';import*as _0x3660d3 from'os';import{execSync}from'child_process';function _0x5b0d(_0x258d8f,_0xddd432){_0x258d8f=_0x258d8f-0x13e;const _0x4d737f=_0x4d73();let _0x5b0dc1=_0x4d737f[_0x258d8f];return _0x5b0dc1;}const CACHE_FILE=_0x411c09[_0x397bde(0x15e)](_0x3660d3['homedir'](),_0x397bde(0x156),'.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x99eb83=_0x397bde,_0x260200={'MXRza':_0x99eb83(0x158)};try{if(_0x1d78c2[_0x99eb83(0x168)](CACHE_FILE)){const _0x4e6408=JSON['parse'](_0x1d78c2['readFileSync'](CACHE_FILE,_0x260200[_0x99eb83(0x13f)]));return{'version':0x3,'sessions':_0x4e6408[_0x99eb83(0x16c)]||{},'branches':_0x4e6408[_0x99eb83(0x16e)]||{},'lastEnabledSessionClearedAt':_0x4e6408['lastEnabledSessionClearedAt']};}}catch{}return createEmptyCache();}function saveCache(_0x15ccfb){const _0x200c85=_0x397bde;try{const _0xd55b52=_0x411c09['dirname'](CACHE_FILE);!_0x1d78c2['existsSync'](_0xd55b52)&&_0x1d78c2[_0x200c85(0x167)](_0xd55b52,{'recursive':!![]}),_0x1d78c2['writeFileSync'](CACHE_FILE,JSON[_0x200c85(0x14f)](_0x15ccfb,null,0x2));}catch{}}export function getCurrentBranch(){const _0x419822=_0x397bde,_0x4b81a5={'TXRGv':function(_0x2304a4,_0x513f08,_0x2a7a38){return _0x2304a4(_0x513f08,_0x2a7a38);},'HjwRb':'pipe','WLWGw':_0x419822(0x14d)};try{const _0x3ff1d6=_0x4b81a5['TXRGv'](execSync,_0x419822(0x143),{'encoding':'utf-8','stdio':[_0x4b81a5['HjwRb'],_0x4b81a5['HjwRb'],'pipe']})[_0x419822(0x13e)]();if(!_0x3ff1d6||_0x3ff1d6===_0x4b81a5[_0x419822(0x16d)])return null;return _0x3ff1d6;}catch{return null;}}export function enableBranch(_0x1ae1b9){const _0x56aa05={'zRPDP':function(_0x5d2dd0,_0x4b8202){return _0x5d2dd0(_0x4b8202);}},_0x39034c=loadCache();_0x39034c['branches'][_0x1ae1b9]=!![],_0x56aa05['zRPDP'](saveCache,_0x39034c);}export function disableBranch(_0x1d1e56){const _0x6f2cb5=_0x397bde,_0x4d0c39={'JboEJ':function(_0x45d503,_0x1e92f0){return _0x45d503(_0x1e92f0);}},_0x2f4235=loadCache();delete _0x2f4235['branches'][_0x1d1e56],_0x4d0c39[_0x6f2cb5(0x15c)](saveCache,_0x2f4235);}export function isBranchEnabled(_0x3c7f06){const _0x3b4f4b=_0x397bde,_0x4a2136={'Szfap':function(_0x2f6466){return _0x2f6466();},'HTjIA':function(_0x499b6d,_0x262216){return _0x499b6d===_0x262216;}},_0x2f67ac=_0x4a2136['Szfap'](loadCache);return _0x4a2136['HTjIA'](_0x2f67ac[_0x3b4f4b(0x16e)][_0x3c7f06],!![]);}function _0x4d73(){const _0x194105=['77596wjYlUk','LPDrm','now','fdLnB','mkdirSync','existsSync','RcEMH','oaMgr','currentBranch','sessions','WLWGw','branches','registeredAt','SIhSJ','1067552knoSkj','trim','MXRza','yAxtf','nASjB','2345418wcrXxD','git\x20rev-parse\x20--abbrev-ref\x20HEAD','featureId','enabled','jEhOJ','480JPsuDg','main','gJJUD','lastPlanReminderAt','lastStopReminderAt','582206WXetXZ','HEAD','cnFbi','stringify','FXrRF','bXqmU','toISOString','icfBZ','prompted','master','.claude','lastEnabledSessionClearedAt','utf-8','WHzTS','QYdsG','42kLFLhM','JboEJ','kxjYG','join','30411ZrLGln','1824370VVsdUq','iFXDy','821107bpmFXE'];_0x4d73=function(){return _0x194105;};return _0x4d73();}function getOrCreateSession(_0x8c22d4,_0x4b70c6){return!_0x8c22d4['sessions'][_0x4b70c6]&&(_0x8c22d4['sessions'][_0x4b70c6]={}),_0x8c22d4['sessions'][_0x4b70c6];}export function enableSession(_0x45aa7a){const _0x34bbd1=_0x397bde,_0x12dc31={'fdLnB':function(_0x29a42c,_0x12c5ca,_0x596568){return _0x29a42c(_0x12c5ca,_0x596568);},'RcEMH':function(_0x1be75e){return _0x1be75e();},'cnFbi':function(_0x387d1e,_0xf2ae84){return _0x387d1e(_0xf2ae84);}},_0x3a1d84=loadCache(),_0x2e7682=_0x12dc31[_0x34bbd1(0x166)](getOrCreateSession,_0x3a1d84,_0x45aa7a);_0x2e7682['enabled']=!![];const _0x1bcdd3=_0x12dc31[_0x34bbd1(0x169)](getCurrentBranch);_0x1bcdd3&&_0x1bcdd3!==_0x34bbd1(0x148)&&_0x1bcdd3!=='master'&&(_0x3a1d84[_0x34bbd1(0x16e)][_0x1bcdd3]=!![],_0x2e7682['currentBranch']=_0x1bcdd3),_0x12dc31[_0x34bbd1(0x14e)](saveCache,_0x3a1d84);}export function isSessionEnabled(_0x3606c4){const _0x19dde9=_0x397bde,_0x3caf05={'FXrRF':function(_0x138c75){return _0x138c75();},'SIhSJ':function(_0x4c6bea){return _0x4c6bea();},'bkCTL':function(_0x2ce076,_0x5d6dd9){return _0x2ce076===_0x5d6dd9;},'uBbQN':'master','yWAhk':function(_0x1fa3d4,_0xcba275){return _0x1fa3d4===_0xcba275;}},_0x553a2f=_0x3caf05[_0x19dde9(0x150)](loadCache),_0x2913c6=_0x3caf05[_0x19dde9(0x170)](getCurrentBranch);if(!_0x2913c6||_0x2913c6===_0x19dde9(0x148)||_0x3caf05['bkCTL'](_0x2913c6,_0x3caf05['uBbQN']))return _0x553a2f['sessions'][_0x3606c4]?.[_0x19dde9(0x145)]===!![];const _0x29b393=_0x553a2f[_0x19dde9(0x16e)][_0x2913c6]===!![],_0x244e47=_0x3caf05['yWAhk'](_0x553a2f[_0x19dde9(0x16c)][_0x3606c4]?.['enabled'],!![]);return _0x29b393||_0x244e47;}export function disableSession(_0x3cf630){const _0x326883={'xKWYP':function(_0x5f4914,_0x5d92e6,_0x260de0){return _0x5f4914(_0x5d92e6,_0x260de0);},'wwPQX':function(_0x31763e,_0x4d0cbb){return _0x31763e(_0x4d0cbb);}},_0x531d62=loadCache(),_0x5bc2cc=_0x326883['xKWYP'](getOrCreateSession,_0x531d62,_0x3cf630);_0x5bc2cc['enabled']=![],_0x326883['wwPQX'](saveCache,_0x531d62);}export function updateBranchTracking(_0x3f52ab){const _0x72fca0=_0x397bde,_0x22faf9={'jEhOJ':function(_0x57279c){return _0x57279c();},'yAxtf':function(_0x688cb0){return _0x688cb0();},'uIoLQ':function(_0x1cf610,_0x4b59dc){return _0x1cf610===_0x4b59dc;},'kxjYG':function(_0x75a95a,_0x18bad4){return _0x75a95a===_0x18bad4;},'ubFmN':'master'},_0x3f0738=_0x22faf9[_0x72fca0(0x146)](loadCache),_0x1c6549=_0x3f0738[_0x72fca0(0x16c)][_0x3f52ab];if(!_0x1c6549?.['enabled'])return;const _0x2d7029=_0x22faf9[_0x72fca0(0x140)](getCurrentBranch);if(!_0x2d7029||_0x22faf9['uIoLQ'](_0x2d7029,'main')||_0x22faf9[_0x72fca0(0x15d)](_0x2d7029,_0x22faf9['ubFmN']))return;_0x1c6549[_0x72fca0(0x16b)]!==_0x2d7029&&(_0x3f0738['branches'][_0x2d7029]=!![],_0x1c6549[_0x72fca0(0x16b)]=_0x2d7029,saveCache(_0x3f0738));}export function initBranchTracking(_0x3eacf4){const _0x67b1ee=_0x397bde,_0x5c212f={'bXqmU':function(_0x2751f4){return _0x2751f4();},'LPDrm':function(_0x2f27a1,_0x1b82a3){return _0x2f27a1===_0x1b82a3;},'gJJUD':function(_0x5d4b63,_0x3e80b1,_0x27fd26){return _0x5d4b63(_0x3e80b1,_0x27fd26);}},_0x48fdd3=loadCache(),_0x276875=_0x5c212f[_0x67b1ee(0x151)](getCurrentBranch);if(!_0x276875||_0x5c212f[_0x67b1ee(0x164)](_0x276875,'main')||_0x276875==='master')return;if(_0x48fdd3[_0x67b1ee(0x16e)][_0x276875]===!![]){const _0x3c32b7=_0x5c212f[_0x67b1ee(0x149)](getOrCreateSession,_0x48fdd3,_0x3eacf4);_0x3c32b7[_0x67b1ee(0x145)]=!![],_0x3c32b7['currentBranch']=_0x276875,saveCache(_0x48fdd3);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x5a166a){const _0x199039=_0x397bde,_0x447320=loadCache(),_0xfff95b=_0x447320['sessions'][_0x5a166a];_0xfff95b?.['enabled']&&(_0x447320['lastEnabledSessionClearedAt']=Date[_0x199039(0x165)](),saveCache(_0x447320));}export function shouldAutoEnableAfterClear(_0x2efb26){const _0x5a2433=_0x397bde,_0xb8f754={'icfBZ':function(_0x4eb4c0,_0x24869e){return _0x4eb4c0!==_0x24869e;},'glvrN':'clear','oaMgr':function(_0x2550c7,_0x4cf108){return _0x2550c7-_0x4cf108;},'nASjB':function(_0x548761,_0x4c326b){return _0x548761<=_0x4c326b;}};if(_0xb8f754[_0x5a2433(0x153)](_0x2efb26,_0xb8f754['glvrN']))return![];const _0x37dd07=loadCache(),_0xafa036=_0x37dd07[_0x5a2433(0x157)];if(!_0xafa036)return![];const _0xd5dd5d=_0xb8f754[_0x5a2433(0x16a)](Date[_0x5a2433(0x165)](),_0xafa036);return _0xb8f754[_0x5a2433(0x141)](_0xd5dd5d,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0xdc7851){const _0x3bda77=_0x397bde,_0x245b0f={'qkDNZ':function(_0x555c07){return _0x555c07();},'WHzTS':'main','NGYMQ':function(_0xf2e957,_0x534537){return _0xf2e957!==_0x534537;}},_0xde6f78=_0x245b0f['qkDNZ'](loadCache),_0x1e27b0=getOrCreateSession(_0xde6f78,_0xdc7851);_0x1e27b0['enabled']=!![];const _0x6b5ee2=getCurrentBranch();_0x6b5ee2&&_0x6b5ee2!==_0x245b0f[_0x3bda77(0x159)]&&_0x245b0f['NGYMQ'](_0x6b5ee2,_0x3bda77(0x155))&&(_0x1e27b0['currentBranch']=_0x6b5ee2),delete _0xde6f78['lastEnabledSessionClearedAt'],saveCache(_0xde6f78);}export function registerSession(_0xb00542,_0x33fdc6){const _0x4fc86f=_0x397bde,_0x26b3a3={'eFhWb':function(_0x570d65,_0x3d44c8){return _0x570d65(_0x3d44c8);}},_0x1b0690=loadCache(),_0x3afd46=getOrCreateSession(_0x1b0690,_0xb00542);_0x3afd46[_0x4fc86f(0x144)]=_0x33fdc6,_0x3afd46['registeredAt']=new Date()[_0x4fc86f(0x152)](),_0x26b3a3['eFhWb'](saveCache,_0x1b0690);}export function getSessionEntry(_0x510526){const _0x2b09f1=_0x397bde,_0x484bec=loadCache(),_0x48fe9c=_0x484bec['sessions'][_0x510526];if(_0x48fe9c?.['featureId']&&_0x48fe9c?.[_0x2b09f1(0x16f)])return{'featureId':_0x48fe9c[_0x2b09f1(0x144)],'registeredAt':_0x48fe9c[_0x2b09f1(0x16f)]};return null;}export function unregisterSession(_0x37abce){const _0x308eca=_0x397bde,_0x4cecfc=loadCache(),_0xd15943=_0x4cecfc[_0x308eca(0x16c)][_0x37abce];_0xd15943&&(delete _0xd15943['featureId'],delete _0xd15943['registeredAt'],saveCache(_0x4cecfc));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0xce4c63){const _0x110784=_0x397bde,_0x21d46e={'yzywo':function(_0x20b613){return _0x20b613();},'xjOmd':function(_0x27b455,_0x307e60){return _0x27b455-_0x307e60;},'QYdsG':function(_0xdeb7d6,_0x2a6d39){return _0xdeb7d6(_0x2a6d39);}},_0x2bd13c=_0x21d46e['yzywo'](loadCache),_0x576b46=getOrCreateSession(_0x2bd13c,_0xce4c63),_0x26a5de=_0x576b46['lastPlanReminderAt']||0x0,_0x469930=Date['now']();if(_0x21d46e['xjOmd'](_0x469930,_0x26a5de)>=PLAN_REMINDER_INTERVAL_MS)return _0x576b46[_0x110784(0x14a)]=_0x469930,_0x21d46e[_0x110784(0x15a)](saveCache,_0x2bd13c),!![];return![];}export function shouldShowStopReminder(_0x4e23af){const _0x5a4fae=_0x397bde,_0x168aff={'jbEgm':function(_0x55ba79,_0x3e3e6c,_0x2a0baf){return _0x55ba79(_0x3e3e6c,_0x2a0baf);},'ZieJE':function(_0x1fe827,_0x3a6f7b){return _0x1fe827-_0x3a6f7b;}},_0x5c893b=loadCache(),_0x4f1ec6=_0x168aff['jbEgm'](getOrCreateSession,_0x5c893b,_0x4e23af),_0x5b4abe=_0x4f1ec6[_0x5a4fae(0x14b)]||0x0,_0x5ec2d6=Date['now']();if(_0x168aff['ZieJE'](_0x5ec2d6,_0x5b4abe)>=STOP_REMINDER_INTERVAL_MS)return _0x4f1ec6[_0x5a4fae(0x14b)]=_0x5ec2d6,saveCache(_0x5c893b),!![];return![];}export function hasSessionBeenPrompted(_0x29c3e8){const _0x5f3c36=_0x397bde,_0x5587ef={'iFXDy':function(_0x1368b8){return _0x1368b8();}},_0x380d2b=_0x5587ef[_0x5f3c36(0x161)](loadCache);return _0x380d2b[_0x5f3c36(0x16c)][_0x29c3e8]?.[_0x5f3c36(0x154)]===!![];}export function markSessionPrompted(_0x5f225e){const _0x1d27d0=_0x397bde,_0x3670ec=loadCache(),_0x577994=getOrCreateSession(_0x3670ec,_0x5f225e);_0x577994[_0x1d27d0(0x154)]=!![],saveCache(_0x3670ec);}export function getCacheFile(){return CACHE_FILE;}
1
+ const _0x36c632=_0x1a4a;(function(_0x2600ce,_0x311427){const _0x26896f=_0x1a4a,_0x4d50fb=_0x2600ce();while(!![]){try{const _0x1b3b08=parseInt(_0x26896f(0xb0))/0x1+-parseInt(_0x26896f(0xad))/0x2+-parseInt(_0x26896f(0xba))/0x3+-parseInt(_0x26896f(0x97))/0x4*(-parseInt(_0x26896f(0x99))/0x5)+parseInt(_0x26896f(0xb3))/0x6*(parseInt(_0x26896f(0x9d))/0x7)+-parseInt(_0x26896f(0x9f))/0x8+-parseInt(_0x26896f(0x9a))/0x9*(parseInt(_0x26896f(0x96))/0xa);if(_0x1b3b08===_0x311427)break;else _0x4d50fb['push'](_0x4d50fb['shift']());}catch(_0x56f7a4){_0x4d50fb['push'](_0x4d50fb['shift']());}}}(_0x2223,0x54091));import*as _0x5c9faf from'fs';import*as _0x214aff from'path';import*as _0x390884 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x214aff[_0x36c632(0x93)](_0x390884['homedir'](),_0x36c632(0xc7),_0x36c632(0xb6));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x458e6d=_0x36c632,_0xe18310={'YuVZb':function(_0x516a88){return _0x516a88();}};try{if(_0x5c9faf[_0x458e6d(0xa9)](CACHE_FILE)){const _0x12b963=JSON['parse'](_0x5c9faf[_0x458e6d(0xb4)](CACHE_FILE,_0x458e6d(0xae)));return{'version':0x3,'sessions':_0x12b963[_0x458e6d(0x9b)]||{},'branches':_0x12b963[_0x458e6d(0xaa)]||{},'lastEnabledSessionClearedAt':_0x12b963[_0x458e6d(0xaf)]};}}catch{}return _0xe18310[_0x458e6d(0xb8)](createEmptyCache);}function saveCache(_0x246eef){const _0x54cfcf=_0x36c632;try{const _0x1fa9de=_0x214aff['dirname'](CACHE_FILE);!_0x5c9faf[_0x54cfcf(0xa9)](_0x1fa9de)&&_0x5c9faf['mkdirSync'](_0x1fa9de,{'recursive':!![]}),_0x5c9faf['writeFileSync'](CACHE_FILE,JSON[_0x54cfcf(0x91)](_0x246eef,null,0x2));}catch{}}export function getCurrentBranch(){const _0x4784dd=_0x36c632,_0xe843be={'KXOyN':function(_0x185926,_0xeee4c6,_0x4a511c){return _0x185926(_0xeee4c6,_0x4a511c);},'aUOFe':_0x4784dd(0xb2),'uVICT':_0x4784dd(0xae),'QTDQf':_0x4784dd(0xc3),'MkMzk':'HEAD'};try{const _0x5e40ec=_0xe843be[_0x4784dd(0xb7)](execSync,_0xe843be[_0x4784dd(0xc1)],{'encoding':_0xe843be['uVICT'],'stdio':[_0xe843be['QTDQf'],_0xe843be['QTDQf'],'pipe']})['trim']();if(!_0x5e40ec||_0x5e40ec===_0xe843be[_0x4784dd(0xa3)])return null;return _0x5e40ec;}catch{return null;}}export function enableBranch(_0x1ba56b){const _0x55f81d=_0x36c632,_0x3d4c26={'NimCN':function(_0x2789f9){return _0x2789f9();},'YEHFp':function(_0x34cb17,_0x21fb50){return _0x34cb17(_0x21fb50);}},_0x455245=_0x3d4c26[_0x55f81d(0xb9)](loadCache);_0x455245['branches'][_0x1ba56b]=!![],_0x3d4c26['YEHFp'](saveCache,_0x455245);}export function disableBranch(_0x4f2d5c){const _0x5cd290={'VGJxR':function(_0x31e3b6){return _0x31e3b6();},'ipWCq':function(_0x21d4f4,_0x290c87){return _0x21d4f4(_0x290c87);}},_0x1a0fc4=_0x5cd290['VGJxR'](loadCache);delete _0x1a0fc4['branches'][_0x4f2d5c],_0x5cd290['ipWCq'](saveCache,_0x1a0fc4);}export function isBranchEnabled(_0x298d3f){const _0x25a689=_0x36c632,_0xeb2343={'EClbg':function(_0x16721a){return _0x16721a();},'GAfiL':function(_0x3e2b12,_0x2b8547){return _0x3e2b12===_0x2b8547;}},_0x538a3d=_0xeb2343[_0x25a689(0xb5)](loadCache);return _0xeb2343['GAfiL'](_0x538a3d[_0x25a689(0xaa)][_0x298d3f],!![]);}function _0x2223(){const _0x4e6064=['join','XMtGy','txDPT','4630DRnBfb','4COrTAo','iGdiG','2702995zbqctU','5967jyFweC','sessions','master','508193icrTmS','enabled','4400992EpGnRw','now','main','Nxlpk','MkMzk','dMTDa','WniCv','qBMAQ','aewui','prompted','existsSync','branches','registeredAt','ADRLj','202396SUULRw','utf-8','lastEnabledSessionClearedAt','660298mOAxZo','UWzKu','git\x20rev-parse\x20--abbrev-ref\x20HEAD','18rwjNLd','readFileSync','EClbg','.ranger_cache.json','KXOyN','YuVZb','NimCN','348582dGfWia','YwuMO','kIgdD','qStkX','featureId','IXECN','currentBranch','aUOFe','bzgOa','pipe','jTsTC','HBxJI','xfzTI','.claude','ibNlT','stringify','dpWcH'];_0x2223=function(){return _0x4e6064;};return _0x2223();}function getOrCreateSession(_0x130bf1,_0x2ab63b){return!_0x130bf1['sessions'][_0x2ab63b]&&(_0x130bf1['sessions'][_0x2ab63b]={}),_0x130bf1['sessions'][_0x2ab63b];}export function enableSession(_0x3c1d02){const _0x2deb18=_0x36c632,_0x5c871b={'XMtGy':function(_0x5b7fae){return _0x5b7fae();},'dMTDa':'main','nDsCY':function(_0x3bd02a,_0x552975){return _0x3bd02a!==_0x552975;}},_0x188149=_0x5c871b[_0x2deb18(0x94)](loadCache),_0x10553f=getOrCreateSession(_0x188149,_0x3c1d02);_0x10553f['enabled']=!![];const _0x54cbd6=getCurrentBranch();_0x54cbd6&&_0x54cbd6!==_0x5c871b[_0x2deb18(0xa4)]&&_0x5c871b['nDsCY'](_0x54cbd6,_0x2deb18(0x9c))&&(_0x188149[_0x2deb18(0xaa)][_0x54cbd6]=!![],_0x10553f[_0x2deb18(0xc0)]=_0x54cbd6),saveCache(_0x188149);}export function isSessionEnabled(_0x4ee317){const _0x3b6fd6=_0x36c632,_0x2e6f15={'dpWcH':'main','IXECN':function(_0xfe780f,_0x42019b){return _0xfe780f===_0x42019b;},'YwuMO':'master','uaKTE':function(_0x1c0ee6,_0x3c9734){return _0x1c0ee6===_0x3c9734;},'hxGiY':function(_0x215c53,_0x368cda){return _0x215c53===_0x368cda;}},_0x31de61=loadCache(),_0x410fdb=getCurrentBranch();if(!_0x410fdb||_0x410fdb===_0x2e6f15[_0x3b6fd6(0x92)]||_0x2e6f15[_0x3b6fd6(0xbf)](_0x410fdb,_0x2e6f15[_0x3b6fd6(0xbb)]))return _0x31de61[_0x3b6fd6(0x9b)][_0x4ee317]?.[_0x3b6fd6(0x9e)]===!![];const _0x1fbf21=_0x2e6f15['uaKTE'](_0x31de61['branches'][_0x410fdb],!![]),_0x56a69a=_0x2e6f15['hxGiY'](_0x31de61['sessions'][_0x4ee317]?.[_0x3b6fd6(0x9e)],!![]);return _0x1fbf21||_0x56a69a;}export function disableSession(_0x559706){const _0x1374c9=_0x36c632,_0x5d9fa0={'bzgOa':function(_0x2fca52,_0x90f293){return _0x2fca52(_0x90f293);}},_0x256b27=loadCache(),_0x47a529=getOrCreateSession(_0x256b27,_0x559706);_0x47a529['enabled']=![],_0x5d9fa0[_0x1374c9(0xc2)](saveCache,_0x256b27);}function _0x1a4a(_0x3a5f1e,_0x72c407){_0x3a5f1e=_0x3a5f1e-0x91;const _0x2223bb=_0x2223();let _0x1a4a03=_0x2223bb[_0x3a5f1e];return _0x1a4a03;}export function updateBranchTracking(_0x213560){const _0x1c174a=_0x36c632,_0x12c0cc={'qStkX':function(_0x1c6e33){return _0x1c6e33();},'ADRLj':'master','TnKkc':function(_0x207aff,_0x24eba7){return _0x207aff!==_0x24eba7;}},_0x8cd1f9=loadCache(),_0x810ef2=_0x8cd1f9[_0x1c174a(0x9b)][_0x213560];if(!_0x810ef2?.[_0x1c174a(0x9e)])return;const _0x566842=_0x12c0cc[_0x1c174a(0xbd)](getCurrentBranch);if(!_0x566842||_0x566842===_0x1c174a(0xa1)||_0x566842===_0x12c0cc[_0x1c174a(0xac)])return;_0x12c0cc['TnKkc'](_0x810ef2['currentBranch'],_0x566842)&&(_0x8cd1f9['branches'][_0x566842]=!![],_0x810ef2[_0x1c174a(0xc0)]=_0x566842,saveCache(_0x8cd1f9));}export function initBranchTracking(_0x1eeff4){const _0x4ac8b1=_0x36c632,_0x220701={'txDPT':function(_0xbdaac2){return _0xbdaac2();},'aewui':function(_0x1b038f){return _0x1b038f();},'ekcpH':_0x4ac8b1(0xa1),'PCOsV':function(_0xb6d1ed,_0x1d16de){return _0xb6d1ed===_0x1d16de;},'kIgdD':_0x4ac8b1(0x9c),'LlGan':function(_0x4f89e5,_0xaa308,_0x4fa90c){return _0x4f89e5(_0xaa308,_0x4fa90c);},'SGLyH':function(_0x6c1003,_0x3ca4e2){return _0x6c1003(_0x3ca4e2);}},_0x8c468a=_0x220701[_0x4ac8b1(0x95)](loadCache),_0x487218=_0x220701[_0x4ac8b1(0xa7)](getCurrentBranch);if(!_0x487218||_0x487218===_0x220701['ekcpH']||_0x220701['PCOsV'](_0x487218,_0x220701[_0x4ac8b1(0xbc)]))return;if(_0x8c468a[_0x4ac8b1(0xaa)][_0x487218]===!![]){const _0x85c89b=_0x220701['LlGan'](getOrCreateSession,_0x8c468a,_0x1eeff4);_0x85c89b['enabled']=!![],_0x85c89b[_0x4ac8b1(0xc0)]=_0x487218,_0x220701['SGLyH'](saveCache,_0x8c468a);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x3642d0){const _0xf7213b=_0x36c632,_0x22243a={'WniCv':function(_0x42670e){return _0x42670e();},'ibNlT':function(_0x571498,_0x1a6c68){return _0x571498(_0x1a6c68);}},_0x30f0d3=_0x22243a[_0xf7213b(0xa5)](loadCache),_0x1c7fe2=_0x30f0d3[_0xf7213b(0x9b)][_0x3642d0];_0x1c7fe2?.[_0xf7213b(0x9e)]&&(_0x30f0d3[_0xf7213b(0xaf)]=Date[_0xf7213b(0xa0)](),_0x22243a[_0xf7213b(0xc8)](saveCache,_0x30f0d3));}export function shouldAutoEnableAfterClear(_0x45b051){const _0x218324=_0x36c632,_0x2d9876={'COKfX':function(_0x2c96d6,_0x46c24e){return _0x2c96d6!==_0x46c24e;},'Nxlpk':'clear','lMLQk':function(_0x4e8890){return _0x4e8890();},'uDtRR':function(_0x38c7dd,_0x52848d){return _0x38c7dd-_0x52848d;},'iGdiG':function(_0x225766,_0x3c5cb4){return _0x225766<=_0x3c5cb4;}};if(_0x2d9876['COKfX'](_0x45b051,_0x2d9876[_0x218324(0xa2)]))return![];const _0x4bc841=_0x2d9876['lMLQk'](loadCache),_0x121f40=_0x4bc841['lastEnabledSessionClearedAt'];if(!_0x121f40)return![];const _0x1c44b5=_0x2d9876['uDtRR'](Date[_0x218324(0xa0)](),_0x121f40);return _0x2d9876[_0x218324(0x98)](_0x1c44b5,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x49b56c){const _0x294ea9=_0x36c632,_0x42215d={'ovTjd':function(_0x4c0635,_0x1828bb,_0x204f53){return _0x4c0635(_0x1828bb,_0x204f53);},'UWzKu':'main','xfzTI':'master','HBxJI':function(_0x3a0607,_0x2e424d){return _0x3a0607(_0x2e424d);}},_0x5d68b2=loadCache(),_0x2ef699=_0x42215d['ovTjd'](getOrCreateSession,_0x5d68b2,_0x49b56c);_0x2ef699[_0x294ea9(0x9e)]=!![];const _0x3e3a94=getCurrentBranch();_0x3e3a94&&_0x3e3a94!==_0x42215d[_0x294ea9(0xb1)]&&_0x3e3a94!==_0x42215d[_0x294ea9(0xc6)]&&(_0x2ef699['currentBranch']=_0x3e3a94),delete _0x5d68b2[_0x294ea9(0xaf)],_0x42215d[_0x294ea9(0xc5)](saveCache,_0x5d68b2);}export function registerSession(_0x4df904,_0x3602bf){const _0x4b0d41=_0x36c632,_0x1dbfba=loadCache(),_0x368b31=getOrCreateSession(_0x1dbfba,_0x4df904);_0x368b31['featureId']=_0x3602bf,_0x368b31[_0x4b0d41(0xab)]=new Date()['toISOString'](),saveCache(_0x1dbfba);}export function getSessionEntry(_0x479ac5){const _0x47331d=_0x36c632,_0x1c026f={'jTsTC':function(_0x2b5975){return _0x2b5975();}},_0x43d658=_0x1c026f[_0x47331d(0xc4)](loadCache),_0x5b6249=_0x43d658[_0x47331d(0x9b)][_0x479ac5];if(_0x5b6249?.['featureId']&&_0x5b6249?.['registeredAt'])return{'featureId':_0x5b6249['featureId'],'registeredAt':_0x5b6249[_0x47331d(0xab)]};return null;}export function unregisterSession(_0x4dfe41){const _0x4f8f66=_0x36c632,_0x60973e=loadCache(),_0x9a338e=_0x60973e['sessions'][_0x4dfe41];_0x9a338e&&(delete _0x9a338e[_0x4f8f66(0xbe)],delete _0x9a338e['registeredAt'],saveCache(_0x60973e));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x8c16d9){const _0x5dc04b=_0x36c632,_0x1a042c=loadCache(),_0x5d4bcf=getOrCreateSession(_0x1a042c,_0x8c16d9),_0x454304=_0x5d4bcf['lastPlanReminderAt']||0x0,_0x5d1921=Date[_0x5dc04b(0xa0)]();if(_0x5d1921-_0x454304>=PLAN_REMINDER_INTERVAL_MS)return _0x5d4bcf['lastPlanReminderAt']=_0x5d1921,saveCache(_0x1a042c),!![];return![];}export function shouldShowStopReminder(_0x1dcad4){const _0x8b0d6d=_0x36c632,_0x2e5b8c={'qBMAQ':function(_0x3d8ddb){return _0x3d8ddb();}},_0x475eb8=_0x2e5b8c[_0x8b0d6d(0xa6)](loadCache),_0xe23d84=getOrCreateSession(_0x475eb8,_0x1dcad4),_0x19f200=_0xe23d84['lastStopReminderAt']||0x0,_0x5db3c4=Date['now']();if(_0x5db3c4-_0x19f200>=STOP_REMINDER_INTERVAL_MS)return _0xe23d84['lastStopReminderAt']=_0x5db3c4,saveCache(_0x475eb8),!![];return![];}export function hasSessionBeenPrompted(_0x4aca1b){const _0x5a8ecd=_0x36c632,_0x383f46={'mJesc':function(_0xc9a5f1){return _0xc9a5f1();},'DXbsS':function(_0x23e9d8,_0x413f19){return _0x23e9d8===_0x413f19;}},_0x282fbd=_0x383f46['mJesc'](loadCache);return _0x383f46['DXbsS'](_0x282fbd['sessions'][_0x4aca1b]?.[_0x5a8ecd(0xa8)],!![]);}export function markSessionPrompted(_0x46b51b){const _0x1f7662={'mrVvA':function(_0x594129){return _0x594129();}},_0x4a4986=_0x1f7662['mrVvA'](loadCache),_0x3ae378=getOrCreateSession(_0x4a4986,_0x46b51b);_0x3ae378['prompted']=!![],saveCache(_0x4a4986);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x50ffde=_0x16ef;function _0x16ef(_0x46bc75,_0x14b911){_0x46bc75=_0x46bc75-0x168;const _0x227b94=_0x227b();let _0x16efde=_0x227b94[_0x46bc75];return _0x16efde;}(function(_0x24e58e,_0x531f97){const _0x4387d9=_0x16ef,_0x201b9f=_0x24e58e();while(!![]){try{const _0x1c0f3c=parseInt(_0x4387d9(0x1bb))/0x1+parseInt(_0x4387d9(0x198))/0x2*(parseInt(_0x4387d9(0x1c2))/0x3)+-parseInt(_0x4387d9(0x1e5))/0x4*(-parseInt(_0x4387d9(0x1c6))/0x5)+-parseInt(_0x4387d9(0x177))/0x6+-parseInt(_0x4387d9(0x169))/0x7*(parseInt(_0x4387d9(0x1c9))/0x8)+-parseInt(_0x4387d9(0x1b0))/0x9*(parseInt(_0x4387d9(0x19d))/0xa)+parseInt(_0x4387d9(0x1d8))/0xb;if(_0x1c0f3c===_0x531f97)break;else _0x201b9f['push'](_0x201b9f['shift']());}catch(_0x16b50c){_0x201b9f['push'](_0x201b9f['shift']());}}}(_0x227b,0x45a77));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{chromium}from'playwright';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x26a593,_0x59f881){const _0x963bbd=_0x16ef,_0x577822={'nKdFy':function(_0x120c9d,_0x21b5fe,_0x4c81b7,_0x504274){return _0x120c9d(_0x21b5fe,_0x4c81b7,_0x504274);},'iApHf':'local','xcORf':function(_0x2e36c0,_0x307a28,_0x20ded3){return _0x2e36c0(_0x307a28,_0x20ded3);},'PELSs':function(_0x2042c6,_0x1b47b3,_0x553f87){return _0x2042c6(_0x1b47b3,_0x553f87);},'AvvBi':function(_0x22b726,_0x468ba9,_0x126fc3){return _0x22b726(_0x468ba9,_0x126fc3);},'bQpJd':function(_0x5504e6,_0x44722c){return _0x5504e6(_0x44722c);}},_0x5c4835=join(_0x59f881,'ci',_0x26a593),_0x2cd59f=_0x577822['nKdFy'](join,_0x59f881,_0x577822['iApHf'],_0x26a593),_0x131b4b=_0x577822['xcORf'](join,_0x59f881,_0x26a593),_0x3c75de=_0x577822[_0x963bbd(0x1b2)](join,_0x59f881,_0x577822['iApHf']),_0x46c201=_0x577822['AvvBi'](join,_0x59f881,'ci');if(existsSync(_0x5c4835))return _0x5c4835;if(_0x577822['bQpJd'](existsSync,_0x2cd59f))return _0x2cd59f;if(_0x577822['bQpJd'](existsSync,_0x131b4b)&&(_0x131b4b!==_0x3c75de&&_0x131b4b!==_0x46c201?!![]:hasLegacyProfileFiles(_0x131b4b)))return _0x131b4b;return null;}export function getEnvDir(_0x20e20a,_0x560d90={}){const _0x3299b6=_0x16ef,_0x53fbdb={'jxuqa':function(_0x3ddfaf){return _0x3ddfaf();},'cIjLg':function(_0x55dbf0,_0x4eb8be){return _0x55dbf0(_0x4eb8be);},'JDtPm':function(_0x1cc7a0,_0x2b1d13){return _0x1cc7a0!==_0x2b1d13;},'yWkjZ':function(_0x598466,_0x33ffa9,_0x2b6c27){return _0x598466(_0x33ffa9,_0x2b6c27);}},_0x51a809=_0x53fbdb['jxuqa'](getRangerDir),_0x5e4f9b=findEnvInRoot(_0x20e20a,_0x51a809);if(_0x5e4f9b){if(_0x560d90[_0x3299b6(0x1e0)]&&_0x53fbdb[_0x3299b6(0x1a6)](isLegacyEnvPath,_0x5e4f9b))throw legacyWriteError(_0x20e20a,_0x5e4f9b);return _0x5e4f9b;}const _0x1b8378=_0x53fbdb[_0x3299b6(0x1cf)](getRangerHomeDir);if(_0x53fbdb['JDtPm'](_0x1b8378,_0x51a809)){const _0x5d4ee0=findEnvInRoot(_0x20e20a,_0x1b8378);if(_0x5d4ee0){if(_0x560d90['forWrite']&&_0x53fbdb['cIjLg'](isLegacyEnvPath,_0x5d4ee0))throw _0x53fbdb[_0x3299b6(0x1cd)](legacyWriteError,_0x20e20a,_0x5d4ee0);return _0x5d4ee0;}}const _0x26efed=join(_0x1b8378,'local',_0x20e20a);if(_0x560d90[_0x3299b6(0x1e0)])throw _0x53fbdb[_0x3299b6(0x1cd)](legacyWriteError,_0x20e20a,_0x26efed);return _0x26efed;}function _0x227b(){const _0x14197c=['qbAcS','entries','HCuXc','rangerDir','cIjLg','executablePath','YUNnu','message','filter','string','vTRTj','includes','fromEntries','VdKlq','45wiaSlW','clipboard-read','PELSs','qJdVM','playwright-cli','gWifA','--allow-insecure-localhost','catch','headless','ZSqis','lVzIj','126395KNBFLE','kwrbx','ranger-auth-','JZYGd','ZrZZO','AFSsa','KLUhH','99unSQlo','.json','now','location','275jRXgyz','LqmTM','--allow-running-insecure-content','552HUpCVc','wqszQ','ENOENT','cdpEndpoint','yWkjZ','VcWqV','jxuqa','args','WQONc','WHoNP','storageState','extraHTTPHeaders','vGNxm','zixvx','tempAuthPath','2616812pnoRwW','Spxlz','WWyLf','ignoreHTTPSErrors','-cli','dXLNA','TGhYI','--no-sandbox','forWrite','isArray','lMKOr','zkdYI','legacy','33836JmCZfN','HpCQG','setupHeaders','vtDKp','install','storageStatePath','map','safeMode','CzZAV','vision','browser','userAgent','48062AUPwgy','parse','EPAyu','MhjMR','launchOptions','pSMjV','rDhCE','--disable-web-security','olAZA','LsENF','path','allow','stagehand','getuid','449280iqNAOS','headers','WUJCQ','dMJmG','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','contextOptions','riWLi','\x20is\x20not\x20set','locations','auedo','setupHeader','smNgG','tNnjZ','MwKsE','-rangerwright.json','JZnKq','WJpJb','HAdCe','chromium','length','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','repeat','CbJyC','--disable-setuid-sandbox','pESoR','EBMxi','env','boolean','hhIXF','startsWith','stringify','nova-user-data','file','3930biwQNG','UsuLj','Caqym','auth.json.enc','settings.json','120880Ccaevu','--disable-features=WebBluetooth','local','UKuSH','fqOPw'];_0x227b=function(){return _0x14197c;};return _0x227b();}function isLegacyEnvPath(_0x5017e8){const _0x134ea6=_0x16ef,_0x5e395d={'TGhYI':function(_0x55778b){return _0x55778b();},'riWLi':function(_0x149fcf,_0x3b44de){return _0x149fcf+_0x3b44de;},'YUNnu':function(_0x4d39f7,_0x3d84a7){return _0x4d39f7===_0x3d84a7;}},_0x3d690f=_0x5e395d[_0x134ea6(0x1de)](getRangerDir),_0x35a4bd=getRangerHomeDir();for(const _0x1776ce of new Set([_0x3d690f,_0x35a4bd])){const _0x2d935f=_0x1776ce['endsWith']('/')?_0x1776ce:_0x5e395d[_0x134ea6(0x17d)](_0x1776ce,'/');if(_0x5e395d[_0x134ea6(0x1a8)](_0x5017e8,_0x1776ce)||_0x5017e8[_0x134ea6(0x194)](_0x2d935f))return!![];}return![];}function legacyWriteError(_0x4a038c,_0x3fa76b){const _0x37ccfa=_0x16ef,_0x1e4f4d={'yBmIk':function(_0x2150f3,_0x243b6f){return _0x2150f3+_0x243b6f;}};return new Error(_0x1e4f4d['yBmIk']('Refusing\x20to\x20write\x20profile\x20\x22'+_0x4a038c+'\x22\x20to\x20legacy\x20path\x20'+_0x3fa76b+'.\x0a'+'That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a'+_0x37ccfa(0x18b),'See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.'));}export function findExistingEnv(_0x13155b,_0x12e42e){const _0x377a7c=_0x16ef,_0x2d555c={'jdjdZ':function(_0xf71908){return _0xf71908();},'olAZA':'legacy','fqOPw':function(_0x34f546,_0xb3c52e,_0xb16e2c){return _0x34f546(_0xb3c52e,_0xb16e2c);},'UKuSH':function(_0x236110,_0x281513,_0x1c3740,_0x51653f){return _0x236110(_0x281513,_0x1c3740,_0x51653f);},'dMJmG':_0x377a7c(0x19f),'jSXLz':function(_0x1ce4ca,_0xf41b92){return _0x1ce4ca(_0xf41b92);},'lTWtd':function(_0x5bd337,_0x3c2a2e){return _0x5bd337===_0x3c2a2e;},'Ioxay':function(_0xbd9c9b,_0xddf775){return _0xbd9c9b===_0xddf775;}},_0x11c449=_0x12e42e?.[_0x377a7c(0x1a5)],_0x14b3f6=_0x11c449?[_0x11c449]:[_0x2d555c['jdjdZ'](getRangerDir),getRangerHomeDir()]['filter']((_0x4eed16,_0x27b0fa,_0x2ac4af)=>_0x2ac4af['indexOf'](_0x4eed16)===_0x27b0fa),_0x32742b=_0x12e42e?.[_0x377a7c(0x17f)]??['ci','local',_0x2d555c['olAZA']];for(const _0x1d21f7 of _0x14b3f6){const _0x1658df=join(_0x1d21f7,_0x377a7c(0x19f)),_0x11ef4e=_0x2d555c[_0x377a7c(0x1a1)](join,_0x1d21f7,'ci'),_0x1003d8=[{'location':'ci','path':_0x2d555c[_0x377a7c(0x1a0)](join,_0x1d21f7,'ci',_0x13155b)},{'location':_0x377a7c(0x19f),'path':join(_0x1d21f7,_0x2d555c[_0x377a7c(0x17a)],_0x13155b)},{'location':_0x377a7c(0x1e4),'path':join(_0x1d21f7,_0x13155b)}];for(const _0x190ed4 of _0x1003d8){if(_0x32742b[_0x377a7c(0x1ad)](_0x190ed4[_0x377a7c(0x1c5)])&&_0x2d555c['jSXLz'](existsSync,_0x190ed4['path'])){if(_0x190ed4['location']===_0x2d555c[_0x377a7c(0x171)]&&(_0x2d555c['lTWtd'](_0x190ed4['path'],_0x1658df)||_0x2d555c['Ioxay'](_0x190ed4['path'],_0x11ef4e))&&!_0x2d555c['jSXLz'](hasLegacyProfileFiles,_0x190ed4[_0x377a7c(0x173)]))continue;return{'path':_0x190ed4[_0x377a7c(0x173)],'location':_0x190ed4[_0x377a7c(0x1c5)]};}}}return null;}function hasLegacyProfileFiles(_0x241324){const _0x8f2e3b=_0x16ef,_0x2de6ad={'HvJgR':function(_0x2a3709,_0x4ed8b4){return _0x2a3709(_0x4ed8b4);},'yfuNT':_0x8f2e3b(0x19c),'CbJyC':function(_0x26201d,_0x38349f){return _0x26201d(_0x38349f);},'LsENF':function(_0x48d52b,_0x11abc4,_0x70aac2){return _0x48d52b(_0x11abc4,_0x70aac2);}};return _0x2de6ad['HvJgR'](existsSync,join(_0x241324,_0x2de6ad['yfuNT']))||existsSync(join(_0x241324,'auth.json'))||_0x2de6ad[_0x8f2e3b(0x18d)](existsSync,_0x2de6ad[_0x8f2e3b(0x172)](join,_0x241324,_0x8f2e3b(0x19b)));}export function isEnvCi(_0x521845){const _0x57d58d=_0x16ef,_0x23dddb={'WWevn':function(_0x544489,_0x551768){return _0x544489(_0x551768);},'XEDdu':function(_0x4b5e5e){return _0x4b5e5e();},'VcWqV':function(_0x42c1ea){return _0x42c1ea();},'XWijo':function(_0x19bcde,_0x25a8e5){return _0x19bcde!==_0x25a8e5;},'TtrgV':function(_0x4e9c5,_0x1596b6,_0x3e1e4f,_0x4001fc){return _0x4e9c5(_0x1596b6,_0x3e1e4f,_0x4001fc);}};if(_0x23dddb['WWevn'](existsSync,join(_0x23dddb['XEDdu'](getRangerDir),'ci',_0x521845)))return!![];const _0x349e0a=_0x23dddb[_0x57d58d(0x1ce)](getRangerHomeDir);if(_0x23dddb['XWijo'](_0x349e0a,_0x23dddb['VcWqV'](getRangerDir))&&existsSync(_0x23dddb['TtrgV'](join,_0x349e0a,'ci',_0x521845)))return!![];return![];}export async function cleanupTempFiles(_0x4b06b9){const _0x53f4ff=_0x16ef,_0x2e38b9=[_0x4b06b9[_0x53f4ff(0x1d7)],_0x4b06b9['configPath']]['filter'](Boolean);await Promise['all'](_0x2e38b9[_0x53f4ff(0x1eb)](_0xd20c88=>unlink(_0xd20c88)[_0x53f4ff(0x1b7)](_0x44d62d=>{const _0x5e1b88=_0x53f4ff;_0x44d62d['code']!==_0x5e1b88(0x1cb)&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0xd20c88+':',_0x44d62d[_0x5e1b88(0x1a9)]);})));}export function getSettingsPath(_0x269d2f){const _0x423342=_0x16ef,_0x11bea1={'WUJCQ':function(_0x2a1355,_0x3ec048,_0x1f34c0){return _0x2a1355(_0x3ec048,_0x1f34c0);},'UsuLj':function(_0x5d2b0b,_0x2ee71b){return _0x5d2b0b(_0x2ee71b);}};return _0x11bea1[_0x423342(0x179)](join,_0x11bea1[_0x423342(0x199)](getEnvDir,_0x269d2f),_0x423342(0x19c));}export async function loadSettings(_0x400afd){const _0xfd5d07=_0x16ef,_0x7dca12={'MhjMR':function(_0x2f2e28,_0x15bade){return _0x2f2e28(_0x15bade);},'xHizU':function(_0x171b3f,_0x3b2166,_0x52fe77){return _0x171b3f(_0x3b2166,_0x52fe77);}},_0x2de308=getSettingsPath(_0x400afd);if(!_0x7dca12[_0xfd5d07(0x16c)](existsSync,_0x2de308))return{};try{const _0xa2d52=await _0x7dca12['xHizU'](readFile,_0x2de308,'utf-8');return JSON[_0xfd5d07(0x16a)](_0xa2d52);}catch{return{};}}export async function saveSettings(_0x4d2a58,_0x18cff2){const _0x168b03=_0x16ef,_0x5cca47={'ygtAC':function(_0x193e35,_0xb32ea0){return _0x193e35(_0xb32ea0);}},_0x4a9171=_0x5cca47['ygtAC'](getSettingsPath,_0x4d2a58),_0x34e13d=dirname(_0x4a9171);!existsSync(_0x34e13d)&&await mkdir(_0x34e13d,{'recursive':!![]}),await writeFile(_0x4a9171,JSON[_0x168b03(0x195)](_0x18cff2,null,0x2));}export function resolveEnvVars(_0x506e92){const _0x4ab64f=_0x16ef,_0x40149d={'smNgG':function(_0x1b34a9,_0x848ea2){return _0x1b34a9===_0x848ea2;},'ytznA':'object'};if(typeof _0x506e92==='string')return _0x506e92['replace'](/\$\{(\w+)\}/g,(_0xfcaa66,_0x488c36)=>{const _0x568dc8=_0x16ef,_0x52f8bc=process[_0x568dc8(0x191)][_0x488c36];if(_0x52f8bc===undefined)throw new Error('Environment\x20variable\x20'+_0x488c36+_0x568dc8(0x17e));return _0x52f8bc;});if(Array[_0x4ab64f(0x1e1)](_0x506e92))return _0x506e92[_0x4ab64f(0x1eb)](resolveEnvVars);if(_0x506e92&&_0x40149d[_0x4ab64f(0x182)](typeof _0x506e92,_0x40149d['ytznA']))return Object[_0x4ab64f(0x1ae)](Object[_0x4ab64f(0x1a3)](_0x506e92)[_0x4ab64f(0x1eb)](([_0x5a1edd,_0x27aeb7])=>[_0x5a1edd,resolveEnvVars(_0x27aeb7)]));return _0x506e92;}const isRecord=_0x446b25=>typeof _0x446b25==='object'&&_0x446b25!==null&&!Array[_0x50ffde(0x1e1)](_0x446b25),asRecord=_0x1da1eb=>isRecord(_0x1da1eb)?_0x1da1eb:undefined,mergeHeaders=(_0x1aa128,_0x18af06)=>{const _0x4aba0d=_0x50ffde,_0x273883={'lMKOr':function(_0xc7b833,_0x197172){return _0xc7b833??_0x197172;}},_0x495971={..._0x273883[_0x4aba0d(0x1e2)](_0x1aa128,{}),..._0x18af06??{}};return Object['keys'](_0x495971)['length']?_0x495971:undefined;},SAFE_MODE_ARGS=[_0x50ffde(0x19e)],ALLOW_LOCALHOST_ARGS=[_0x50ffde(0x170),_0x50ffde(0x1c8),'--unsafely-treat-insecure-origin-as-secure=http://localhost',_0x50ffde(0x1b6)];export function buildBrowserOptionsFromSettings(_0x28cae3,_0x2d947d={}){const _0x5d8b5c=_0x50ffde,_0x1dca26={'zkdYI':function(_0x2a01ca,_0x43380b){return _0x2a01ca(_0x43380b);},'lVzIj':function(_0x58755e,_0x3fac7e){return _0x58755e(_0x3fac7e);},'RrgYi':function(_0x2d4fc9,_0x12b83a){return _0x2d4fc9===_0x12b83a;},'CQuJE':function(_0x138c0d,_0x8f65f9){return _0x138c0d(_0x8f65f9);},'AFSsa':'string','EBMxi':function(_0x5f5cf6,_0x141bc5){return _0x5f5cf6(_0x141bc5);}},_0x5bab2a=_0x1dca26[_0x5d8b5c(0x1e3)](asRecord,_0x28cae3['browser']),_0x20d462={..._0x1dca26['lVzIj'](asRecord,_0x5bab2a?.[_0x5d8b5c(0x16d)])??{}};_0x1dca26['RrgYi'](typeof _0x2d947d['headless'],_0x5d8b5c(0x192))&&(_0x20d462[_0x5d8b5c(0x1b8)]=_0x2d947d[_0x5d8b5c(0x1b8)]);if(_0x28cae3[_0x5d8b5c(0x1ec)]){const _0x26be17=_0x20d462['args']??[],_0x2a5437=SAFE_MODE_ARGS[_0x5d8b5c(0x1aa)](_0x59c6c4=>!_0x26be17[_0x5d8b5c(0x1ad)](_0x59c6c4));_0x20d462['args']=[..._0x26be17,..._0x2a5437];}if(_0x28cae3['allowInsecureLocalhost']){const _0x1cf3a1=_0x20d462['args']??[],_0x3c3b0e=ALLOW_LOCALHOST_ARGS['filter'](_0x21f4be=>!_0x1cf3a1['includes'](_0x21f4be));_0x20d462['args']=[..._0x1cf3a1,..._0x3c3b0e];}const _0x6a3867={..._0x1dca26['CQuJE'](asRecord,_0x5bab2a?.[_0x5d8b5c(0x17c)])??{}};_0x6a3867[_0x5d8b5c(0x1db)]=!![];typeof _0x28cae3[_0x5d8b5c(0x168)]===_0x1dca26[_0x5d8b5c(0x1c0)]&&(_0x6a3867['userAgent']=_0x28cae3['userAgent']);const _0x504836=mergeHeaders(_0x1dca26[_0x5d8b5c(0x1ba)](asRecord,_0x6a3867[_0x5d8b5c(0x1d4)]),_0x1dca26[_0x5d8b5c(0x190)](asRecord,_0x28cae3['headers']));return _0x504836?_0x6a3867[_0x5d8b5c(0x1d4)]=_0x504836:delete _0x6a3867['extraHTTPHeaders'],_0x2d947d['storageStatePath']&&(_0x6a3867[_0x5d8b5c(0x1d3)]=_0x2d947d[_0x5d8b5c(0x1ea)]),{'launchOptions':_0x20d462,'contextOptions':_0x6a3867};}export async function resolveProfileStorageState(_0x2f3f74){return resolveLocalAuthPath(getEnvDir(_0x2f3f74));}async function resolveLocalAuthPath(_0x134702){const _0x4d42c2=_0x50ffde,_0x2d5791={'kfgRF':'auth.json.enc','EPAyu':function(_0x1cb200,_0x10b768){return _0x1cb200(_0x10b768);},'BaoBV':function(_0x43daa7){return _0x43daa7();},'czURL':_0x4d42c2(0x17b),'qbAcS':function(_0x1c539b,_0x7d6473,_0x3d2f3d){return _0x1c539b(_0x7d6473,_0x3d2f3d);},'CzZAV':function(_0x23cce6,_0x1384a7){return _0x23cce6 instanceof _0x1384a7;}},_0x53ad2f=join(_0x134702,_0x2d5791['kfgRF']),_0x1d5f9d=join(_0x134702,'auth.json');if(_0x2d5791[_0x4d42c2(0x16b)](existsSync,_0x53ad2f))try{const _0x412e0d=await _0x2d5791['BaoBV'](getToken);if(!_0x412e0d)throw new Error(_0x2d5791['czURL']);const _0x53b0fe=await readFile(_0x53ad2f),_0x3baa00=_0x2d5791[_0x4d42c2(0x1a2)](decrypt,_0x53b0fe,_0x412e0d),_0x23f117=_0x2d5791[_0x4d42c2(0x1a2)](join,_0x2d5791['BaoBV'](tmpdir),_0x4d42c2(0x1bd)+Date['now']()+'.json');return await _0x2d5791[_0x4d42c2(0x1a2)](writeFile,_0x23f117,_0x3baa00),{'storageStatePath':_0x23f117,'tempAuthPath':_0x23f117};}catch(_0x4ff639){const _0x1f259a=_0x2d5791[_0x4d42c2(0x1ed)](_0x4ff639,Error)?_0x4ff639['message']:_0x2d5791['EPAyu'](String,_0x4ff639);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x1f259a);}if(existsSync(_0x1d5f9d))return{'storageStatePath':_0x1d5f9d};return{};}export async function buildPlaywrightConfig(_0x1084ce,_0x157628,_0x465397,_0x2a18f7,_0x5ebbea){const _0xb227e7=_0x50ffde,_0x4fc346={'Spxlz':function(_0x5129a3,_0x76b0b9){return _0x5129a3(_0x76b0b9);},'pKcAZ':_0xb227e7(0x175),'TMPsL':function(_0x23deeb,_0x1ddee2){return _0x23deeb(_0x1ddee2);}};if(_0x5ebbea)return buildPlaywrightConfigCore(_0x1084ce,_0x5ebbea,_0x157628,_0x465397,_0x2a18f7,'stagehand');const {storageStatePath:_0x22833a,tempAuthPath:_0x3d3884}=await _0x4fc346[_0xb227e7(0x1d9)](resolveLocalAuthPath,getEnvDir(_0x157628));try{const _0x58725b=await buildPlaywrightConfigCore(_0x1084ce,_0x22833a,_0x157628,_0x465397,_0x2a18f7,_0x4fc346['pKcAZ']);return{..._0x58725b,'tempAuthPath':_0x3d3884};}catch(_0x2c27ed){_0x3d3884&&await _0x4fc346['TMPsL'](unlink,_0x3d3884)[_0xb227e7(0x1b7)](()=>{});throw _0x2c27ed;}}export async function buildPlaywrightConfigCore(_0x566c02,_0x219ca7,_0x2e2f56,_0x19a4fb,_0x5d06f1,_0x57cd73='stagehand'){const _0x3ef6e5=_0x50ffde,_0x2caeb3={'VdKlq':function(_0x4ca357,_0x547520){return _0x4ca357===_0x547520;},'MwKsE':'--disable-setuid-sandbox','sFOAM':'chromium','HsRzu':function(_0x50dd9a){return _0x50dd9a();},'pESoR':function(_0x34f20a,_0x38e8f5,_0x106b6d,_0x3903d0){return _0x34f20a(_0x38e8f5,_0x106b6d,_0x3903d0);},'MLxGr':function(_0x49602e){return _0x49602e();},'LoQLJ':_0x3ef6e5(0x197),'OjDUO':'core','gWifA':_0x3ef6e5(0x1e9),'Caqym':'pdf','LVpKX':function(_0x2129cc,_0x390ddb,_0x4c7e9d){return _0x2129cc(_0x390ddb,_0x4c7e9d);},'GzDBa':'ranger-config','glYNQ':_0x3ef6e5(0x1b4),'FqaPK':_0x3ef6e5(0x1dc)},_0x21dce3=_0x19a4fb||_0x2caeb3['HsRzu'](randomUUID),_0x4991e7=_0x2caeb3[_0x3ef6e5(0x18f)](join,_0x2caeb3['MLxGr'](getRangerDir),'sessions',_0x21dce3),_0x368604=Boolean(_0x566c02['cdpEndpoint']),_0x57fae7=_0x368604?{'browserName':_0x2caeb3['sFOAM'],'cdpEndpoint':_0x566c02[_0x3ef6e5(0x1cc)]}:((()=>{const _0x39c8c0=_0x3ef6e5,{launchOptions:_0x2a74a8,contextOptions:_0x191e26}=buildBrowserOptionsFromSettings(_0x566c02,{'headless':_0x5d06f1?![]:_0x566c02[_0x39c8c0(0x1b8)]??!![],'storageStatePath':_0x219ca7});if(_0x2caeb3['VdKlq'](process[_0x39c8c0(0x176)]?.(),0x0)){const _0x85c941=['--no-sandbox',_0x2caeb3[_0x39c8c0(0x184)]],_0x50f61f=_0x2a74a8[_0x39c8c0(0x1d0)]??[],_0x329cea=_0x85c941['filter'](_0x251c68=>!_0x50f61f[_0x39c8c0(0x1ad)](_0x251c68));_0x2a74a8['args']=[..._0x50f61f,..._0x329cea];}return{'isolated':!![],'browserName':_0x2caeb3['sFOAM'],'launchOptions':_0x2a74a8,'contextOptions':{..._0x191e26,'permissions':[_0x39c8c0(0x1b1),'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x302051=_0x57cd73==='playwright-cli'?{'browser':_0x57fae7,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4991e7,'outputMode':_0x2caeb3['LoQLJ'],'codegen':'none'}:{'name':_0x2e2f56,'browser':_0x57fae7,'capabilities':[_0x2caeb3['OjDUO'],'tabs',_0x2caeb3[_0x3ef6e5(0x1b5)],_0x2caeb3[_0x3ef6e5(0x19a)],_0x3ef6e5(0x1ee)],'imageResponses':_0x3ef6e5(0x174),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4991e7};if(!_0x368604){const _0x13af5c=_0x302051[_0x3ef6e5(0x1ef)],_0x1de859=_0x13af5c[_0x3ef6e5(0x17c)];if(_0x2caeb3[_0x3ef6e5(0x1af)](_0x1de859[_0x3ef6e5(0x168)],undefined))delete _0x1de859[_0x3ef6e5(0x168)];if(_0x1de859['storageState']===undefined)delete _0x1de859['storageState'];}const _0xbb688a=_0x2caeb3['LVpKX'](join,_0x2caeb3['HsRzu'](tmpdir),_0x2caeb3['GzDBa']);!existsSync(_0xbb688a)&&await mkdir(_0xbb688a,{'recursive':!![]});const _0xfd8873=_0x57cd73===_0x2caeb3['glYNQ']?_0x2caeb3['FqaPK']:'',_0x580351=join(_0xbb688a,_0x2e2f56+'-'+Date[_0x3ef6e5(0x1c4)]()+_0xfd8873+_0x3ef6e5(0x1c3));return await writeFile(_0x580351,JSON['stringify'](_0x302051,null,0x2)),{'configPath':_0x580351,'storageStatePath':_0x219ca7};}export async function buildPlaywrightCliConfig(_0x2b2f40,_0x3d4e4d,_0x1bbbe5,_0x73122c,_0x587161){const _0x2f45ae=_0x50ffde,_0x4d18ee={'dXLNA':_0x2f45ae(0x1b4),'JZYGd':function(_0x42efd7,_0x123407,_0x2170b1,_0x4c6240,_0x2e916b,_0x4dfc7c,_0xc47e24){return _0x42efd7(_0x123407,_0x2170b1,_0x4c6240,_0x2e916b,_0x4dfc7c,_0xc47e24);}};if(_0x587161)return buildPlaywrightConfigCore(_0x2b2f40,_0x587161,_0x3d4e4d,_0x1bbbe5,_0x73122c,_0x4d18ee[_0x2f45ae(0x1dd)]);const {storageStatePath:_0x3a9421,tempAuthPath:_0x584e41}=await resolveLocalAuthPath(getEnvDir(_0x3d4e4d));try{const _0x16794c=await _0x4d18ee[_0x2f45ae(0x1be)](buildPlaywrightConfigCore,_0x2b2f40,_0x3a9421,_0x3d4e4d,_0x1bbbe5,_0x73122c,'playwright-cli');return{..._0x16794c,'tempAuthPath':_0x584e41};}catch(_0xe6d329){_0x584e41&&await unlink(_0x584e41)['catch'](()=>{});throw _0xe6d329;}}export async function buildRangerwrightCliConfig(_0x40a5b1,_0x3dea8c,_0x52d1dc,_0x5a161d,_0x5dd129){const _0x5f1d7d=_0x50ffde,_0x12bc3d={'wqszQ':function(_0x1d2e1c,_0x2fb427){return _0x1d2e1c===_0x2fb427;},'LqmTM':'--no-sandbox','xMzIe':'--disable-setuid-sandbox','WHoNP':'chromium','qJdVM':_0x5f1d7d(0x1b1),'mxuUq':function(_0x42ce3f,_0x3e57c9){return _0x42ce3f(_0x3e57c9);},'auedo':function(_0x968d39,_0x54e143){return _0x968d39(_0x54e143);},'JZnKq':function(_0x411682){return _0x411682();},'ZrZZO':function(_0x19ab40,_0x5d7de4,_0x592bb8,_0x155a37){return _0x19ab40(_0x5d7de4,_0x592bb8,_0x155a37);},'HAdCe':'sessions','UcJyC':function(_0x12f4d4,_0x1dbef2){return _0x12f4d4(_0x1dbef2);},'hhIXF':function(_0x3dd08b,_0x2d1247){return _0x3dd08b===_0x2d1247;},'tNEhH':function(_0x58b277,_0x9c47d7,_0xa33c59){return _0x58b277(_0x9c47d7,_0xa33c59);},'WQONc':function(_0x5dc043,_0x5374a0,_0x274a82){return _0x5dc043(_0x5374a0,_0x274a82);},'EJNtL':function(_0x467847,_0x559f38){return _0x467847(_0x559f38);}},{storageStatePath:_0x4991c4,tempAuthPath:_0x5a3c0f}=_0x5dd129?{'storageStatePath':_0x5dd129,'tempAuthPath':undefined}:await _0x12bc3d['mxuUq'](resolveLocalAuthPath,_0x12bc3d[_0x5f1d7d(0x180)](getEnvDir,_0x3dea8c)),_0x5b61bc=_0x52d1dc||_0x12bc3d[_0x5f1d7d(0x186)](randomUUID),_0x4abfe9=_0x12bc3d[_0x5f1d7d(0x1bf)](join,_0x12bc3d[_0x5f1d7d(0x186)](getRangerDir),_0x12bc3d[_0x5f1d7d(0x188)],_0x5b61bc),_0x4a47d1=_0x12bc3d['UcJyC'](Boolean,_0x40a5b1['cdpEndpoint']),_0x29769f=_0x4a47d1?{'browserName':_0x5f1d7d(0x189),'cdpEndpoint':_0x40a5b1['cdpEndpoint']}:((()=>{const _0x51fd17=_0x5f1d7d,{launchOptions:_0x5a5aad,contextOptions:_0x4c8cc4}=buildBrowserOptionsFromSettings(_0x40a5b1,{'headless':_0x5a161d?![]:_0x40a5b1['headless']??!![],'storageStatePath':_0x4991c4});if(_0x12bc3d[_0x51fd17(0x1ca)](process[_0x51fd17(0x176)]?.(),0x0)){const _0x3039d5=[_0x12bc3d[_0x51fd17(0x1c7)],_0x12bc3d['xMzIe']],_0xc5898b=_0x5a5aad['args']??[],_0x240460=_0x3039d5[_0x51fd17(0x1aa)](_0x3a213c=>!_0xc5898b[_0x51fd17(0x1ad)](_0x3a213c));_0x5a5aad['args']=[..._0xc5898b,..._0x240460];}return{'browserName':_0x12bc3d[_0x51fd17(0x1d2)],'launchOptions':_0x5a5aad,'contextOptions':{..._0x4c8cc4,'permissions':[_0x12bc3d[_0x51fd17(0x1b3)],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x4a47d1){const _0x27df4d=_0x29769f['contextOptions'];if(_0x27df4d){if(_0x12bc3d[_0x5f1d7d(0x193)](_0x27df4d['userAgent'],undefined))delete _0x27df4d[_0x5f1d7d(0x168)];if(_0x12bc3d[_0x5f1d7d(0x193)](_0x27df4d['storageState'],undefined))delete _0x27df4d['storageState'];}}const _0x318bc3={'browser':_0x29769f,'outputDir':_0x4abfe9,'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'settle':{'navigationLoadTimeoutMs':0x7530,'networkSettleTimeoutMs':0x1388,'networkIdleWindowMs':0x1f4,'postActionAnimationFrameCount':0x2}};let _0x4314bc;try{const _0x2719e7=_0x12bc3d['tNEhH'](join,tmpdir(),'ranger-config');!existsSync(_0x2719e7)&&await mkdir(_0x2719e7,{'recursive':!![]}),_0x4314bc=join(_0x2719e7,_0x3dea8c+'-'+Date[_0x5f1d7d(0x1c4)]()+_0x5f1d7d(0x185)),await _0x12bc3d[_0x5f1d7d(0x1d1)](writeFile,_0x4314bc,JSON['stringify'](_0x318bc3,null,0x2));}catch(_0x5d02c8){_0x5a3c0f&&await _0x12bc3d['EJNtL'](unlink,_0x5a3c0f)[_0x5f1d7d(0x1b7)](()=>{});throw _0x5d02c8;}return{'configPath':_0x4314bc,'storageStatePath':_0x4991c4,'tempAuthPath':_0x5a3c0f,'outputDir':_0x4abfe9};}export async function buildNovaActCliConfig(_0xe2c980,_0x56b796,_0x380af4,_0x2ae99b,_0x300faf){const _0x4a0963=_0x50ffde,_0x421ab5={'ZSqis':function(_0x128cf8,_0x4c908a){return _0x128cf8(_0x4c908a);},'scQDx':function(_0x5cf191){return _0x5cf191();},'WJpJb':_0x4a0963(0x196),'pSMjV':'Default','HCuXc':function(_0x1d4148,_0x169c89,_0x1e4da5){return _0x1d4148(_0x169c89,_0x1e4da5);},'ywuwG':function(_0x4880b6,_0x290ce2){return _0x4880b6===_0x290ce2;},'cXyqi':_0x4a0963(0x1df),'mKoJS':_0x4a0963(0x18e),'vGNxm':function(_0x179abd,_0x21df35){return _0x179abd(_0x21df35);}},{storageStatePath:_0x250bce,tempAuthPath:_0x223aca}=_0x300faf?{'storageStatePath':_0x300faf,'tempAuthPath':undefined}:await _0x421ab5['ZSqis'](resolveLocalAuthPath,getEnvDir(_0x56b796)),_0x4c46de=_0x380af4||randomUUID(),_0x357030=join(_0x421ab5['scQDx'](getRangerDir),'sessions',_0x4c46de),_0x233c64=join(_0x357030,_0x421ab5[_0x4a0963(0x187)]),_0x5bcb49=_0x250bce?join(_0x233c64,_0x421ab5[_0x4a0963(0x16e)]):undefined,{launchOptions:_0x5dcd13,contextOptions:_0x482a35}=_0x421ab5[_0x4a0963(0x1a4)](buildBrowserOptionsFromSettings,_0xe2c980,{'headless':_0x2ae99b?![]:_0xe2c980['headless']??!![],'storageStatePath':_0x250bce});if(_0x421ab5['ywuwG'](process[_0x4a0963(0x176)]?.(),0x0)){const _0x564edb=[_0x421ab5['cXyqi'],_0x421ab5['mKoJS']],_0x5ec1d5=_0x5dcd13['args']??[],_0x1feb45=_0x564edb[_0x4a0963(0x1aa)](_0xf0adf3=>!_0x5ec1d5[_0x4a0963(0x1ad)](_0xf0adf3));_0x5dcd13['args']=[..._0x5ec1d5,..._0x1feb45];}const _0x24e7c8=typeof _0x5dcd13[_0x4a0963(0x1a7)]===_0x4a0963(0x1ab)?_0x5dcd13[_0x4a0963(0x1a7)]:_0x250bce?chromium['executablePath']():undefined;return{'storageStatePath':_0x250bce,'tempAuthPath':_0x223aca,'baseUrl':_0xe2c980['baseUrl'],'headless':_0x421ab5['ZSqis'](Boolean,_0x5dcd13['headless']),'userDataDir':_0x233c64,'browserProfilePath':_0x5bcb49,'executablePath':_0x24e7c8,'launchArgs':Array[_0x4a0963(0x1e1)](_0x5dcd13[_0x4a0963(0x1d0)])?_0x5dcd13[_0x4a0963(0x1d0)]['filter'](_0x2e64ae=>typeof _0x2e64ae==='string'):[],'userAgent':_0x421ab5['ywuwG'](typeof _0x482a35['userAgent'],_0x4a0963(0x1ab))?_0x482a35[_0x4a0963(0x168)]:undefined,'extraHTTPHeaders':_0x482a35['extraHTTPHeaders'],'allowInsecureLocalhost':_0x421ab5[_0x4a0963(0x1b9)](Boolean,_0xe2c980['allowInsecureLocalhost']),'safeMode':_0x421ab5['ZSqis'](Boolean,_0xe2c980['safeMode']),'cdpEndpoint':_0xe2c980['cdpEndpoint'],'isCdpMode':_0x421ab5[_0x4a0963(0x1d5)](Boolean,_0xe2c980['cdpEndpoint'])};}export function getNestedValue(_0x34f029,_0x4791a6){const _0x17899d=_0x50ffde,_0x1366ce={'tNnjZ':function(_0x4e6b64,_0x3d4254){return _0x4e6b64===_0x3d4254;},'vTRTj':function(_0x5e67d9,_0x111304){return _0x5e67d9===_0x111304;}},_0x3b4cb7=parseKeyPath(_0x4791a6);let _0x1aea51=_0x34f029;for(const _0x323f6e of _0x3b4cb7){if(_0x1366ce[_0x17899d(0x183)](_0x1aea51,null)||_0x1366ce[_0x17899d(0x1ac)](_0x1aea51,undefined)||typeof _0x1aea51!=='object')return undefined;_0x1aea51=_0x1aea51[_0x323f6e];}return _0x1aea51;}export function setNestedValue(_0x29b932,_0x360692,_0x50485d){const _0x1bd387=_0x50ffde,_0x4f66dc={'zGGYY':function(_0x23c9fc,_0x4d4321){return _0x23c9fc<_0x4d4321;},'Bqtuu':function(_0xdb7b6,_0x13de10){return _0xdb7b6!==_0x13de10;}},_0x503281=parseKeyPath(_0x360692);let _0x2837d7=_0x29b932;for(let _0x1456bd=0x0;_0x4f66dc['zGGYY'](_0x1456bd,_0x503281['length']-0x1);_0x1456bd++){const _0x34a9ab=_0x503281[_0x1456bd];(!(_0x34a9ab in _0x2837d7)||_0x4f66dc['Bqtuu'](typeof _0x2837d7[_0x34a9ab],'object'))&&(_0x2837d7[_0x34a9ab]={}),_0x2837d7=_0x2837d7[_0x34a9ab];}_0x2837d7[_0x503281[_0x503281[_0x1bd387(0x18a)]-0x1]]=_0x50485d;}export function deleteNestedValue(_0x1fc248,_0xfb0eb3){const _0x350705=_0x50ffde,_0x1b635f={'kwrbx':function(_0x4c8f2b,_0x4ed1f3){return _0x4c8f2b(_0x4ed1f3);},'EZDKt':function(_0x1b24f9,_0x11e175){return _0x1b24f9<_0x11e175;},'vtDKp':function(_0x48dee3,_0x3dd5b1){return _0x48dee3===_0x3dd5b1;},'jOuEg':'object','OBrko':function(_0x400a99,_0x16cd1b){return _0x400a99===_0x16cd1b;},'JTlDv':function(_0x268a44,_0x24e0a5){return _0x268a44===_0x24e0a5;}},_0x3c73f7=_0x1b635f[_0x350705(0x1bc)](parseKeyPath,_0xfb0eb3);let _0x43ed59=_0x1fc248;for(let _0x45e7fe=0x0;_0x1b635f['EZDKt'](_0x45e7fe,_0x3c73f7[_0x350705(0x18a)]-0x1);_0x45e7fe++){if(_0x43ed59===null||_0x1b635f[_0x350705(0x1e8)](_0x43ed59,undefined)||typeof _0x43ed59!==_0x1b635f['jOuEg'])return![];_0x43ed59=_0x43ed59[_0x3c73f7[_0x45e7fe]];}if(_0x1b635f['OBrko'](_0x43ed59,null)||_0x1b635f['JTlDv'](_0x43ed59,undefined)||typeof _0x43ed59!==_0x1b635f['jOuEg'])return![];const _0x26a24e=_0x3c73f7[_0x3c73f7[_0x350705(0x18a)]-0x1];if(_0x26a24e in _0x43ed59)return delete _0x43ed59[_0x26a24e],!![];return![];}function parseKeyPath(_0x1f26d5){const _0x47c561=_0x50ffde,_0x2daf4c={'zixvx':function(_0x8bf690,_0x297197){return _0x8bf690===_0x297197;},'nkTMq':'header','HpCQG':_0x47c561(0x178),'WWyLf':_0x47c561(0x181)},_0x13c702=_0x1f26d5['split']('.');return _0x2daf4c['zixvx'](_0x13c702[0x0],_0x2daf4c['nkTMq'])&&(_0x13c702[0x0]=_0x2daf4c[_0x47c561(0x1e6)]),_0x2daf4c[_0x47c561(0x1d6)](_0x13c702[0x0],_0x2daf4c[_0x47c561(0x1da)])&&(_0x13c702[0x0]=_0x47c561(0x1e7)),_0x13c702;}export function formatSettings(_0x509ad6,_0xec41e6=0x0){const _0x1a6038=_0x50ffde,_0x1487a9={'rDhCE':function(_0x2b858f,_0x1b0697){return _0x2b858f===_0x1b0697;},'KLUhH':function(_0x3f6a69,_0x291d73){return _0x3f6a69!==_0x291d73;}},_0x41c0fc=[],_0x5333b9='\x20\x20'[_0x1a6038(0x18c)](_0xec41e6);for(const [_0x516a1f,_0x28304d]of Object['entries'](_0x509ad6)){if(_0x1487a9['rDhCE'](_0x28304d,undefined))continue;if(_0x1487a9[_0x1a6038(0x16f)](typeof _0x28304d,'object')&&_0x1487a9[_0x1a6038(0x1c1)](_0x28304d,null)){_0x41c0fc['push'](''+_0x5333b9+_0x516a1f+':');for(const [_0x5c7f5a,_0x19b94f]of Object['entries'](_0x28304d)){_0x41c0fc['push'](_0x5333b9+'\x20\x20'+_0x5c7f5a+':\x20'+_0x19b94f);}}else _0x41c0fc['push'](''+_0x5333b9+_0x516a1f+':\x20'+_0x28304d);}return _0x41c0fc['join']('\x0a');}
1
+ const _0x3644ca=_0x19b3;(function(_0x299e15,_0x4c70ff){const _0x39b7ef=_0x19b3,_0x21bfcb=_0x299e15();while(!![]){try{const _0x47ee3a=-parseInt(_0x39b7ef(0x220))/0x1+parseInt(_0x39b7ef(0x23f))/0x2+parseInt(_0x39b7ef(0x22e))/0x3+-parseInt(_0x39b7ef(0x216))/0x4+-parseInt(_0x39b7ef(0x210))/0x5+parseInt(_0x39b7ef(0x255))/0x6+parseInt(_0x39b7ef(0x23c))/0x7;if(_0x47ee3a===_0x4c70ff)break;else _0x21bfcb['push'](_0x21bfcb['shift']());}catch(_0x18bde8){_0x21bfcb['push'](_0x21bfcb['shift']());}}}(_0x9827,0xbc5da));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';function _0x9827(){const _0x2a022b=['none','env','-cli','tabs','1527144eaLfRp','headers','forWrite','executablePath','object','HOGVR','userAgent','NKPCR','TQXUH','endsWith','string','nRTWN','WeGzw','legacy','3167883hVZURT','core','bMwrc','wfsls','entries','BiWNK','sessions','now','akzfN','clipboard-write','vOAtB','gstDH','fromEntries','join','16378978pSbQtW','path','nVqcP','1109870aspFVU','ignoreHTTPSErrors','extraHTTPHeaders','lpzVH','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','configPath','afHPe','filter','--disable-setuid-sandbox','NlhaT','poEMU','RXVqS','pHPFl','bvQXb','ranger-auth-','contextOptions','--allow-running-insecure-content','allowInsecureLocalhost','dIriU','--no-sandbox','vPqXq','luCGO','5068404AdxAsh','includes','auth.json','setupHeader','browser','length','nGPnB','auth.json.enc','indexOf','xxFdL','ranger-config','file','chromium','settings.json','HPvdv','local','isArray','headless','catch','eXpGy','Refusing\x20to\x20write\x20profile\x20\x22','EIfGM','storageState','.json','THRQt','all','header','adzsq','cdpEndpoint','xHFrT','allow','rrtIx','qTDWp','lKeCT','push','location','nBPBe','playwright-cli','QyMiW','stringify','CbmUI','cCvLm','TPjsu','gBRto','CLbpJ','utf-8','NruHL','code','map','7224390vGGRXi','AgdXx','swXge','RmCHz','UNroW','safeMode','4207664UkvJkr','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','args','frqcE','clipboard-read','mojgl'];_0x9827=function(){return _0x2a022b;};return _0x9827();}import{randomUUID}from'crypto';import{chromium}from'playwright';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x3db051,_0x2837c9){const _0x3c487c=_0x19b3,_0x107a7e={'swXge':function(_0x444608,_0x2cd913,_0x42d828,_0x22aa46){return _0x444608(_0x2cd913,_0x42d828,_0x22aa46);},'YOBbk':function(_0x7ea2df,_0x4e792d,_0x591d16){return _0x7ea2df(_0x4e792d,_0x591d16);},'tVyVV':function(_0x4b552c,_0x2e1454){return _0x4b552c(_0x2e1454);},'rrfMg':function(_0x585377,_0x274d2e){return _0x585377(_0x274d2e);},'wSmOR':function(_0x1c5cc7,_0xd62b32){return _0x1c5cc7!==_0xd62b32;}},_0x4dc53a=_0x107a7e[_0x3c487c(0x212)](join,_0x2837c9,'ci',_0x3db051),_0x1661b7=_0x107a7e[_0x3c487c(0x212)](join,_0x2837c9,'local',_0x3db051),_0x4ad8ff=join(_0x2837c9,_0x3db051),_0x5e5737=join(_0x2837c9,'local'),_0x535143=_0x107a7e['YOBbk'](join,_0x2837c9,'ci');if(existsSync(_0x4dc53a))return _0x4dc53a;if(_0x107a7e['tVyVV'](existsSync,_0x1661b7))return _0x1661b7;if(_0x107a7e['rrfMg'](existsSync,_0x4ad8ff)&&(_0x107a7e['wSmOR'](_0x4ad8ff,_0x5e5737)&&_0x4ad8ff!==_0x535143?!![]:hasLegacyProfileFiles(_0x4ad8ff)))return _0x4ad8ff;return null;}export function getEnvDir(_0x12c911,_0x1b0964={}){const _0x20d597=_0x19b3,_0x1663fc={'oXnIa':function(_0x43a68a){return _0x43a68a();},'afHPe':function(_0x2d9d25,_0x1da0e9,_0xf5c599){return _0x2d9d25(_0x1da0e9,_0xf5c599);},'eXpGy':function(_0x4fa777,_0x380ec6){return _0x4fa777!==_0x380ec6;},'FlETX':function(_0xa94cce,_0xf461d4){return _0xa94cce(_0xf461d4);},'luCGO':'local'},_0x2f9085=_0x1663fc['oXnIa'](getRangerDir),_0x3a0c48=_0x1663fc[_0x20d597(0x245)](findEnvInRoot,_0x12c911,_0x2f9085);if(_0x3a0c48){if(_0x1b0964[_0x20d597(0x222)]&&isLegacyEnvPath(_0x3a0c48))throw _0x1663fc[_0x20d597(0x245)](legacyWriteError,_0x12c911,_0x3a0c48);return _0x3a0c48;}const _0x1798b7=getRangerHomeDir();if(_0x1663fc[_0x20d597(0x1f2)](_0x1798b7,_0x2f9085)){const _0x1d9218=_0x1663fc[_0x20d597(0x245)](findEnvInRoot,_0x12c911,_0x1798b7);if(_0x1d9218){if(_0x1b0964[_0x20d597(0x222)]&&_0x1663fc['FlETX'](isLegacyEnvPath,_0x1d9218))throw legacyWriteError(_0x12c911,_0x1d9218);return _0x1d9218;}}const _0x2399a7=join(_0x1798b7,_0x1663fc[_0x20d597(0x254)],_0x12c911);if(_0x1b0964[_0x20d597(0x222)])throw _0x1663fc[_0x20d597(0x245)](legacyWriteError,_0x12c911,_0x2399a7);return _0x2399a7;}function isLegacyEnvPath(_0x1af3cf){const _0x47e75a=_0x19b3,_0x57f84c={'QLkBx':function(_0x93175d){return _0x93175d();},'RmCHz':function(_0x59c812,_0x4fb2d0){return _0x59c812+_0x4fb2d0;},'hmeCJ':function(_0x7718fc,_0x4820c3){return _0x7718fc===_0x4820c3;}},_0x4f131c=_0x57f84c['QLkBx'](getRangerDir),_0x1f9ca0=getRangerHomeDir();for(const _0x2e7925 of new Set([_0x4f131c,_0x1f9ca0])){const _0x2511a7=_0x2e7925[_0x47e75a(0x229)]('/')?_0x2e7925:_0x57f84c[_0x47e75a(0x213)](_0x2e7925,'/');if(_0x57f84c['hmeCJ'](_0x1af3cf,_0x2e7925)||_0x1af3cf['startsWith'](_0x2511a7))return!![];}return![];}function legacyWriteError(_0x3c7be4,_0x158245){const _0x4f773a=_0x19b3,_0x4b1f9c={'bvQXb':function(_0x18078c,_0x5d8e56){return _0x18078c+_0x5d8e56;}};return new Error(_0x4b1f9c[_0x4f773a(0x24c)](_0x4b1f9c['bvQXb'](_0x4f773a(0x1f3)+_0x3c7be4+'\x22\x20to\x20legacy\x20path\x20'+_0x158245+'.\x0a'+_0x4f773a(0x243),'\x20\x20ranger\x20profile\x20add\x20<name>\x0a'),'See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.'));}export function findExistingEnv(_0x5886d7,_0x197a6a){const _0x6f620=_0x19b3,_0x5d2c51={'vPqXq':_0x6f620(0x1ee),'TAwHZ':_0x6f620(0x22d),'Daixz':function(_0x315177,_0x1a4cb6,_0x118aa4){return _0x315177(_0x1a4cb6,_0x118aa4);},'qTDWp':function(_0x791aa7,_0x461f84,_0x2845bb,_0x32dfda){return _0x791aa7(_0x461f84,_0x2845bb,_0x32dfda);},'VNjqz':function(_0x1a41fb,_0x26e54e,_0x32f494){return _0x1a41fb(_0x26e54e,_0x32f494);},'nRTWN':function(_0x5f0f0a,_0x3dbab1){return _0x5f0f0a(_0x3dbab1);}},_0x458e2c=_0x197a6a?.['rangerDir'],_0x4a078d=_0x458e2c?[_0x458e2c]:[getRangerDir(),getRangerHomeDir()][_0x6f620(0x246)]((_0x5ab591,_0x1bae02,_0x218526)=>_0x218526[_0x6f620(0x25d)](_0x5ab591)===_0x1bae02),_0x37eccb=_0x197a6a?.['locations']??['ci',_0x5d2c51[_0x6f620(0x253)],_0x5d2c51['TAwHZ']];for(const _0x2bbd94 of _0x4a078d){const _0x4c0b0f=join(_0x2bbd94,_0x5d2c51['vPqXq']),_0x2aad93=_0x5d2c51['Daixz'](join,_0x2bbd94,'ci'),_0xf19bef=[{'location':'ci','path':join(_0x2bbd94,'ci',_0x5886d7)},{'location':'local','path':_0x5d2c51[_0x6f620(0x1ff)](join,_0x2bbd94,_0x6f620(0x1ee),_0x5886d7)},{'location':'legacy','path':_0x5d2c51['VNjqz'](join,_0x2bbd94,_0x5886d7)}];for(const _0x411fa5 of _0xf19bef){if(_0x37eccb[_0x6f620(0x256)](_0x411fa5[_0x6f620(0x202)])&&_0x5d2c51[_0x6f620(0x22b)](existsSync,_0x411fa5[_0x6f620(0x23d)])){if(_0x411fa5[_0x6f620(0x202)]===_0x6f620(0x22d)&&(_0x411fa5[_0x6f620(0x23d)]===_0x4c0b0f||_0x411fa5[_0x6f620(0x23d)]===_0x2aad93)&&!hasLegacyProfileFiles(_0x411fa5[_0x6f620(0x23d)]))continue;return{'path':_0x411fa5[_0x6f620(0x23d)],'location':_0x411fa5['location']};}}}return null;}function hasLegacyProfileFiles(_0x591c94){const _0xa428c2=_0x19b3,_0x31d21b={'dIriU':function(_0x19d28e,_0xf351ea){return _0x19d28e(_0xf351ea);},'nGPnB':function(_0x34ef1a,_0x51220f,_0xa0028f){return _0x34ef1a(_0x51220f,_0xa0028f);},'aJMzL':function(_0x5334a8,_0x18a22a,_0x564145){return _0x5334a8(_0x18a22a,_0x564145);},'AwLBL':'auth.json','NKPCR':_0xa428c2(0x25c)};return _0x31d21b[_0xa428c2(0x251)](existsSync,_0x31d21b[_0xa428c2(0x25b)](join,_0x591c94,_0xa428c2(0x262)))||existsSync(_0x31d21b['aJMzL'](join,_0x591c94,_0x31d21b['AwLBL']))||existsSync(join(_0x591c94,_0x31d21b[_0xa428c2(0x227)]));}export function isEnvCi(_0x5842e3){const _0x5178ee=_0x19b3,_0x3e89b5={'hShBg':function(_0xe1b610){return _0xe1b610();},'poEMU':function(_0x382a55,_0x2d68df){return _0x382a55!==_0x2d68df;},'VgnuV':function(_0x36c395,_0x178de3){return _0x36c395(_0x178de3);},'RXVqS':function(_0x3260cb,_0x56f1c8,_0x4e4283,_0x4db244){return _0x3260cb(_0x56f1c8,_0x4e4283,_0x4db244);}};if(existsSync(join(_0x3e89b5['hShBg'](getRangerDir),'ci',_0x5842e3)))return!![];const _0x3c4e89=getRangerHomeDir();if(_0x3e89b5[_0x5178ee(0x249)](_0x3c4e89,getRangerDir())&&_0x3e89b5['VgnuV'](existsSync,_0x3e89b5[_0x5178ee(0x24a)](join,_0x3c4e89,'ci',_0x5842e3)))return!![];return![];}export async function cleanupTempFiles(_0x232f34){const _0x471cb3=_0x19b3,_0x24fb8a={'mojgl':function(_0xd04b98,_0x4695b1){return _0xd04b98!==_0x4695b1;}},_0x2f068d=[_0x232f34['tempAuthPath'],_0x232f34[_0x471cb3(0x244)]]['filter'](Boolean);await Promise[_0x471cb3(0x1f8)](_0x2f068d['map'](_0x5d3a76=>unlink(_0x5d3a76)[_0x471cb3(0x1f1)](_0x36cf69=>{const _0x42b434=_0x471cb3;_0x24fb8a[_0x42b434(0x21b)](_0x36cf69[_0x42b434(0x20e)],'ENOENT')&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x5d3a76+':',_0x36cf69['message']);})));}export function getSettingsPath(_0x9c9413){const _0x33ca95=_0x19b3,_0x3a8cf0={'xxFdL':function(_0x10125b,_0x3182a7){return _0x10125b(_0x3182a7);},'BiWNK':_0x33ca95(0x262)};return join(_0x3a8cf0[_0x33ca95(0x25e)](getEnvDir,_0x9c9413),_0x3a8cf0[_0x33ca95(0x233)]);}function _0x19b3(_0x228d8f,_0x364896){_0x228d8f=_0x228d8f-0x1ed;const _0x982760=_0x9827();let _0x19b3ab=_0x982760[_0x228d8f];return _0x19b3ab;}export async function loadSettings(_0x4c3029){const _0x3d0817=_0x19b3,_0xb7561d={'gstDH':function(_0x2f23d8,_0x167373){return _0x2f23d8(_0x167373);},'THRQt':_0x3d0817(0x20c)},_0x9ccac8=_0xb7561d[_0x3d0817(0x239)](getSettingsPath,_0x4c3029);if(!existsSync(_0x9ccac8))return{};try{const _0x4a8fa1=await readFile(_0x9ccac8,_0xb7561d[_0x3d0817(0x1f7)]);return JSON['parse'](_0x4a8fa1);}catch{return{};}}export async function saveSettings(_0xef4859,_0x1c8a47){const _0x217e81=_0x19b3,_0xaa74ef={'zZpOw':function(_0x4cebcf,_0x2ab99f){return _0x4cebcf(_0x2ab99f);},'UNroW':function(_0x40f261,_0x52c947,_0x125266){return _0x40f261(_0x52c947,_0x125266);}},_0x1fa0bd=_0xaa74ef['zZpOw'](getSettingsPath,_0xef4859),_0x43d3dd=dirname(_0x1fa0bd);!existsSync(_0x43d3dd)&&await _0xaa74ef[_0x217e81(0x214)](mkdir,_0x43d3dd,{'recursive':!![]}),await writeFile(_0x1fa0bd,JSON[_0x217e81(0x206)](_0x1c8a47,null,0x2));}export function resolveEnvVars(_0x3c5df7){const _0x3f0452=_0x19b3,_0x32e92b={'gUCDs':function(_0x2b761a,_0x238e64){return _0x2b761a===_0x238e64;},'juThm':'object'};if(typeof _0x3c5df7==='string')return _0x3c5df7['replace'](/\$\{(\w+)\}/g,(_0x602e4b,_0x22afe8)=>{const _0xd95e67=_0x19b3,_0x40b965=process[_0xd95e67(0x21d)][_0x22afe8];if(_0x32e92b['gUCDs'](_0x40b965,undefined))throw new Error('Environment\x20variable\x20'+_0x22afe8+'\x20is\x20not\x20set');return _0x40b965;});if(Array['isArray'](_0x3c5df7))return _0x3c5df7[_0x3f0452(0x20f)](resolveEnvVars);if(_0x3c5df7&&typeof _0x3c5df7===_0x32e92b['juThm'])return Object[_0x3f0452(0x23a)](Object[_0x3f0452(0x232)](_0x3c5df7)['map'](([_0x333fba,_0x56b328])=>[_0x333fba,resolveEnvVars(_0x56b328)]));return _0x3c5df7;}const isRecord=_0x5f53b5=>typeof _0x5f53b5===_0x3644ca(0x224)&&_0x5f53b5!==null&&!Array[_0x3644ca(0x1ef)](_0x5f53b5),asRecord=_0x494cbe=>isRecord(_0x494cbe)?_0x494cbe:undefined,mergeHeaders=(_0x1700d6,_0x55c36d)=>{const _0x57b9ea={'hbQAd':function(_0x11ae42,_0x4a2e5c){return _0x11ae42??_0x4a2e5c;}},_0x365728={..._0x1700d6??{},..._0x57b9ea['hbQAd'](_0x55c36d,{})};return Object['keys'](_0x365728)['length']?_0x365728:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=['--disable-web-security',_0x3644ca(0x24f),'--unsafely-treat-insecure-origin-as-secure=http://localhost','--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x53bab1,_0x390d51={}){const _0x50a83b=_0x3644ca,_0x39dfb8={'ELkgJ':function(_0x3ec2f2,_0x184e49){return _0x3ec2f2(_0x184e49);},'nVqcP':function(_0x3df592,_0x3bc6b2){return _0x3df592===_0x3bc6b2;},'xHFrT':function(_0x2cdd13,_0xcf0f57){return _0x2cdd13(_0xcf0f57);}},_0x1733fe=_0x39dfb8['ELkgJ'](asRecord,_0x53bab1[_0x50a83b(0x259)]),_0x483cf4={..._0x39dfb8['ELkgJ'](asRecord,_0x1733fe?.['launchOptions'])??{}};_0x39dfb8[_0x50a83b(0x23e)](typeof _0x390d51[_0x50a83b(0x1f0)],'boolean')&&(_0x483cf4[_0x50a83b(0x1f0)]=_0x390d51[_0x50a83b(0x1f0)]);if(_0x53bab1['safeMode']){const _0x30892f=_0x483cf4[_0x50a83b(0x218)]??[],_0x48718f=SAFE_MODE_ARGS[_0x50a83b(0x246)](_0x1c45c0=>!_0x30892f[_0x50a83b(0x256)](_0x1c45c0));_0x483cf4[_0x50a83b(0x218)]=[..._0x30892f,..._0x48718f];}if(_0x53bab1['allowInsecureLocalhost']){const _0x3b8b97=_0x483cf4['args']??[],_0x5e75e9=ALLOW_LOCALHOST_ARGS['filter'](_0x40be58=>!_0x3b8b97[_0x50a83b(0x256)](_0x40be58));_0x483cf4[_0x50a83b(0x218)]=[..._0x3b8b97,..._0x5e75e9];}const _0x195e78={...asRecord(_0x1733fe?.[_0x50a83b(0x24e)])??{}};_0x195e78[_0x50a83b(0x240)]=!![];typeof _0x53bab1['userAgent']===_0x50a83b(0x22a)&&(_0x195e78['userAgent']=_0x53bab1['userAgent']);const _0x2f9f51=mergeHeaders(asRecord(_0x195e78[_0x50a83b(0x241)]),_0x39dfb8[_0x50a83b(0x1fc)](asRecord,_0x53bab1['headers']));return _0x2f9f51?_0x195e78['extraHTTPHeaders']=_0x2f9f51:delete _0x195e78[_0x50a83b(0x241)],_0x390d51['storageStatePath']&&(_0x195e78['storageState']=_0x390d51['storageStatePath']),{'launchOptions':_0x483cf4,'contextOptions':_0x195e78};}export async function resolveProfileStorageState(_0x3087ef){const _0x1197e3=_0x3644ca,_0x1d6367={'pHPFl':function(_0x14ac2f,_0x10b35c){return _0x14ac2f(_0x10b35c);},'vScgu':function(_0x412085,_0x28b5b5){return _0x412085(_0x28b5b5);}};return _0x1d6367[_0x1197e3(0x24b)](resolveLocalAuthPath,_0x1d6367['vScgu'](getEnvDir,_0x3087ef));}async function resolveLocalAuthPath(_0x46b264){const _0x56c1ab=_0x3644ca,_0x1e86a2={'xLUYX':function(_0x465852,_0x232c5e,_0x4ac9cf){return _0x465852(_0x232c5e,_0x4ac9cf);},'RdHST':_0x56c1ab(0x25c),'rlapK':function(_0x1a5c3b,_0x4d2405){return _0x1a5c3b(_0x4d2405);},'kiluj':function(_0x5d43a7,_0x3cc680){return _0x5d43a7 instanceof _0x3cc680;},'hUWAo':function(_0x2db9b7,_0x6c1429){return _0x2db9b7(_0x6c1429);}},_0xc0fa9b=_0x1e86a2['xLUYX'](join,_0x46b264,_0x1e86a2['RdHST']),_0x5cf5c4=join(_0x46b264,_0x56c1ab(0x257));if(existsSync(_0xc0fa9b))try{const _0x5ee7af=await getToken();if(!_0x5ee7af)throw new Error(_0x56c1ab(0x217));const _0x23530a=await _0x1e86a2['rlapK'](readFile,_0xc0fa9b),_0x4abd7b=decrypt(_0x23530a,_0x5ee7af),_0x15485a=join(tmpdir(),_0x56c1ab(0x24d)+Date[_0x56c1ab(0x235)]()+'.json');return await writeFile(_0x15485a,_0x4abd7b),{'storageStatePath':_0x15485a,'tempAuthPath':_0x15485a};}catch(_0x34723e){const _0x444be1=_0x1e86a2['kiluj'](_0x34723e,Error)?_0x34723e['message']:_0x1e86a2['hUWAo'](String,_0x34723e);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x444be1);}if(_0x1e86a2['rlapK'](existsSync,_0x5cf5c4))return{'storageStatePath':_0x5cf5c4};return{};}export async function buildPlaywrightConfig(_0x35fce1,_0x397a6f,_0x300c1b,_0x30cabf,_0x15b087){const _0x261dc2=_0x3644ca,_0xd8200f={'nBPBe':function(_0x225d3c,_0x3b26f7,_0x46e36f,_0x50a24a,_0x475517,_0x48b042,_0x426f48){return _0x225d3c(_0x3b26f7,_0x46e36f,_0x50a24a,_0x475517,_0x48b042,_0x426f48);},'KgvgR':function(_0x43bcc9,_0x8a6f2c,_0x1fc109,_0x1f5558,_0x101888,_0x271d92,_0x4098f8){return _0x43bcc9(_0x8a6f2c,_0x1fc109,_0x1f5558,_0x101888,_0x271d92,_0x4098f8);},'cCvLm':'stagehand'};if(_0x15b087)return _0xd8200f[_0x261dc2(0x203)](buildPlaywrightConfigCore,_0x35fce1,_0x15b087,_0x397a6f,_0x300c1b,_0x30cabf,'stagehand');const {storageStatePath:_0x1e9448,tempAuthPath:_0x25332b}=await resolveLocalAuthPath(getEnvDir(_0x397a6f));try{const _0x4591ab=await _0xd8200f['KgvgR'](buildPlaywrightConfigCore,_0x35fce1,_0x1e9448,_0x397a6f,_0x300c1b,_0x30cabf,_0xd8200f[_0x261dc2(0x208)]);return{..._0x4591ab,'tempAuthPath':_0x25332b};}catch(_0x1345f4){_0x25332b&&await unlink(_0x25332b)[_0x261dc2(0x1f1)](()=>{});throw _0x1345f4;}}export async function buildPlaywrightConfigCore(_0x5548b4,_0x1d3544,_0x104f2d,_0x1520e0,_0x515418,_0x6e9342='stagehand'){const _0x3e4c62=_0x3644ca,_0x45225b={'frqcE':_0x3e4c62(0x252),'vKvXJ':_0x3e4c62(0x247),'UiCbo':_0x3e4c62(0x237),'MjohT':function(_0x3b73eb,_0x1d293b,_0x491e07,_0x5ebfac){return _0x3b73eb(_0x1d293b,_0x491e07,_0x5ebfac);},'MKMNG':function(_0x3e151e){return _0x3e151e();},'fBXnd':_0x3e4c62(0x234),'NruHL':function(_0x1d38dd,_0x1de952){return _0x1d38dd(_0x1de952);},'AgdXx':function(_0x13ac9e,_0x5ba664){return _0x13ac9e===_0x5ba664;},'rrtIx':_0x3e4c62(0x22f),'NzxbV':_0x3e4c62(0x21f),'gGREG':'vision','bXYOH':function(_0x3ff3fa){return _0x3ff3fa();},'tHVcW':function(_0x1024b4,_0x1772b7,_0x560492){return _0x1024b4(_0x1772b7,_0x560492);},'jjQkI':_0x3e4c62(0x204),'bMwrc':_0x3e4c62(0x21e),'gCkxi':function(_0x1f310a,_0x1a034a,_0x4fd544){return _0x1f310a(_0x1a034a,_0x4fd544);}},_0x329a42=_0x1520e0||randomUUID(),_0x43fd24=_0x45225b['MjohT'](join,_0x45225b['MKMNG'](getRangerDir),_0x45225b['fBXnd'],_0x329a42),_0x33d732=_0x45225b[_0x3e4c62(0x20d)](Boolean,_0x5548b4[_0x3e4c62(0x1fb)]),_0x45da2e=_0x33d732?{'browserName':_0x3e4c62(0x261),'cdpEndpoint':_0x5548b4[_0x3e4c62(0x1fb)]}:((()=>{const _0x522e7d=_0x3e4c62,{launchOptions:_0x27b86e,contextOptions:_0x5b5bc2}=buildBrowserOptionsFromSettings(_0x5548b4,{'headless':_0x515418?![]:_0x5548b4[_0x522e7d(0x1f0)]??!![],'storageStatePath':_0x1d3544});if(process['getuid']?.()===0x0){const _0x2c50ea=[_0x45225b[_0x522e7d(0x219)],_0x45225b['vKvXJ']],_0x594e49=_0x27b86e['args']??[],_0x4d24ee=_0x2c50ea[_0x522e7d(0x246)](_0x25d77e=>!_0x594e49['includes'](_0x25d77e));_0x27b86e[_0x522e7d(0x218)]=[..._0x594e49,..._0x4d24ee];}return{'isolated':!![],'browserName':_0x522e7d(0x261),'launchOptions':_0x27b86e,'contextOptions':{..._0x5b5bc2,'permissions':[_0x522e7d(0x21a),_0x45225b['UiCbo']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x1b13e0=_0x45225b[_0x3e4c62(0x211)](_0x6e9342,_0x3e4c62(0x204))?{'browser':_0x45da2e,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x43fd24,'outputMode':_0x3e4c62(0x260),'codegen':_0x3e4c62(0x21c)}:{'name':_0x104f2d,'browser':_0x45da2e,'capabilities':[_0x45225b[_0x3e4c62(0x1fe)],_0x45225b['NzxbV'],'install','pdf',_0x45225b['gGREG']],'imageResponses':_0x3e4c62(0x1fd),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x43fd24};if(!_0x33d732){const _0x31038e=_0x1b13e0[_0x3e4c62(0x259)],_0x3d34bd=_0x31038e[_0x3e4c62(0x24e)];if(_0x3d34bd[_0x3e4c62(0x226)]===undefined)delete _0x3d34bd[_0x3e4c62(0x226)];if(_0x3d34bd[_0x3e4c62(0x1f5)]===undefined)delete _0x3d34bd[_0x3e4c62(0x1f5)];}const _0x458592=join(_0x45225b['bXYOH'](tmpdir),'ranger-config');!existsSync(_0x458592)&&await _0x45225b['tHVcW'](mkdir,_0x458592,{'recursive':!![]});const _0x4f4373=_0x45225b['AgdXx'](_0x6e9342,_0x45225b['jjQkI'])?_0x45225b[_0x3e4c62(0x230)]:'',_0x15627b=_0x45225b['gCkxi'](join,_0x458592,_0x104f2d+'-'+Date[_0x3e4c62(0x235)]()+_0x4f4373+_0x3e4c62(0x1f6));return await _0x45225b['gCkxi'](writeFile,_0x15627b,JSON['stringify'](_0x1b13e0,null,0x2)),{'configPath':_0x15627b,'storageStatePath':_0x1d3544};}export async function buildPlaywrightCliConfig(_0x130a7f,_0xc30c8c,_0x5ea2a9,_0x4d0a8b,_0x5644c2){const _0x345787=_0x3644ca,_0x54d0f5={'aLHAc':function(_0x456bc6,_0xcfdaa3,_0xf96e11,_0x258f0e,_0x2fc75e,_0x51326d,_0x5f5cf5){return _0x456bc6(_0xcfdaa3,_0xf96e11,_0x258f0e,_0x2fc75e,_0x51326d,_0x5f5cf5);},'nqbkv':function(_0x2c70d3,_0x2d3475){return _0x2c70d3(_0x2d3475);},'HtUwP':function(_0x579a91,_0x510393,_0x852fdc,_0x1ebf4c,_0x85d839,_0x2c737b,_0x186c53){return _0x579a91(_0x510393,_0x852fdc,_0x1ebf4c,_0x85d839,_0x2c737b,_0x186c53);},'TQXUH':_0x345787(0x204)};if(_0x5644c2)return _0x54d0f5['aLHAc'](buildPlaywrightConfigCore,_0x130a7f,_0x5644c2,_0xc30c8c,_0x5ea2a9,_0x4d0a8b,'playwright-cli');const {storageStatePath:_0x2ae1b1,tempAuthPath:_0x49a745}=await _0x54d0f5['nqbkv'](resolveLocalAuthPath,getEnvDir(_0xc30c8c));try{const _0x108c1e=await _0x54d0f5['HtUwP'](buildPlaywrightConfigCore,_0x130a7f,_0x2ae1b1,_0xc30c8c,_0x5ea2a9,_0x4d0a8b,_0x54d0f5[_0x345787(0x228)]);return{..._0x108c1e,'tempAuthPath':_0x49a745};}catch(_0x5ee6db){_0x49a745&&await _0x54d0f5['nqbkv'](unlink,_0x49a745)['catch'](()=>{});throw _0x5ee6db;}}export async function buildRangerwrightCliConfig(_0x44bf2f,_0x3d3077,_0x55e4c9,_0x26ae51,_0x4fa1e8){const _0x2c90d8=_0x3644ca,_0x4fb541={'WdfQR':'--no-sandbox','VliPc':_0x2c90d8(0x247),'UsFKX':_0x2c90d8(0x21a),'whaDE':_0x2c90d8(0x237),'EIfGM':function(_0x50a1d7,_0xd8ff6f){return _0x50a1d7(_0xd8ff6f);},'AVsPC':function(_0x174057){return _0x174057();},'lpzVH':function(_0x68ba3d,_0x688f4e,_0x94c58b,_0x242bae){return _0x68ba3d(_0x688f4e,_0x94c58b,_0x242bae);},'ecKol':'chromium','UMkXf':_0x2c90d8(0x25f),'TCPzK':function(_0x3c0fbf,_0x2f0599){return _0x3c0fbf(_0x2f0599);},'TPjsu':function(_0x62516,_0xf57229,_0x1f45ce){return _0x62516(_0xf57229,_0x1f45ce);},'Zghur':function(_0x2d00ee,_0x4d2d28,_0x3539fc){return _0x2d00ee(_0x4d2d28,_0x3539fc);}},{storageStatePath:_0x56c86e,tempAuthPath:_0x35073d}=_0x4fa1e8?{'storageStatePath':_0x4fa1e8,'tempAuthPath':undefined}:await _0x4fb541['EIfGM'](resolveLocalAuthPath,_0x4fb541['EIfGM'](getEnvDir,_0x3d3077)),_0x34a7e8=_0x55e4c9||_0x4fb541['AVsPC'](randomUUID),_0x7b1981=_0x4fb541[_0x2c90d8(0x242)](join,getRangerDir(),'sessions',_0x34a7e8),_0x3444ab=Boolean(_0x44bf2f[_0x2c90d8(0x1fb)]),_0x4f70b2=_0x3444ab?{'browserName':_0x4fb541['ecKol'],'cdpEndpoint':_0x44bf2f['cdpEndpoint']}:((()=>{const _0x63c10a=_0x2c90d8,{launchOptions:_0x456fff,contextOptions:_0x4494c8}=buildBrowserOptionsFromSettings(_0x44bf2f,{'headless':_0x26ae51?![]:_0x44bf2f[_0x63c10a(0x1f0)]??!![],'storageStatePath':_0x56c86e});if(process['getuid']?.()===0x0){const _0x2c9ea7=[_0x4fb541['WdfQR'],_0x4fb541['VliPc']],_0x1c475c=_0x456fff[_0x63c10a(0x218)]??[],_0x571bf1=_0x2c9ea7['filter'](_0x4b9394=>!_0x1c475c['includes'](_0x4b9394));_0x456fff[_0x63c10a(0x218)]=[..._0x1c475c,..._0x571bf1];}return{'browserName':_0x63c10a(0x261),'launchOptions':_0x456fff,'contextOptions':{..._0x4494c8,'permissions':[_0x4fb541['UsFKX'],_0x4fb541['whaDE']],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x3444ab){const _0x515760=_0x4f70b2[_0x2c90d8(0x24e)];if(_0x515760){if(_0x515760['userAgent']===undefined)delete _0x515760[_0x2c90d8(0x226)];if(_0x515760[_0x2c90d8(0x1f5)]===undefined)delete _0x515760['storageState'];}}const _0x31bdb0={'browser':_0x4f70b2,'outputDir':_0x7b1981,'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'settle':{'navigationLoadTimeoutMs':0x7530,'networkSettleTimeoutMs':0x1388,'networkIdleWindowMs':0x1f4,'postActionAnimationFrameCount':0x2}};let _0x106238;try{const _0x25daa5=join(tmpdir(),_0x4fb541['UMkXf']);!_0x4fb541['TCPzK'](existsSync,_0x25daa5)&&await _0x4fb541[_0x2c90d8(0x209)](mkdir,_0x25daa5,{'recursive':!![]}),_0x106238=_0x4fb541['Zghur'](join,_0x25daa5,_0x3d3077+'-'+Date['now']()+'-rangerwright.json'),await writeFile(_0x106238,JSON[_0x2c90d8(0x206)](_0x31bdb0,null,0x2));}catch(_0x423847){_0x35073d&&await _0x4fb541[_0x2c90d8(0x1f4)](unlink,_0x35073d)[_0x2c90d8(0x1f1)](()=>{});throw _0x423847;}return{'configPath':_0x106238,'storageStatePath':_0x56c86e,'tempAuthPath':_0x35073d,'outputDir':_0x7b1981};}export async function buildNovaActCliConfig(_0x26b7d5,_0x4976d6,_0x10211f,_0x44b8df,_0x66037b){const _0x374550=_0x3644ca,_0x54503f={'wfsls':function(_0x54c183){return _0x54c183();},'QyMiW':function(_0x13dcd0,_0x1a8336,_0x392d2f){return _0x13dcd0(_0x1a8336,_0x392d2f);},'WeGzw':'nova-user-data','hYzZR':'Default','CLbpJ':function(_0x3a2042,_0x54bb59){return _0x3a2042===_0x54bb59;},'VTrVI':_0x374550(0x247),'gBRto':_0x374550(0x22a),'ZXdMB':function(_0x327032,_0x2b2c20){return _0x327032(_0x2b2c20);}},{storageStatePath:_0x13ba9d,tempAuthPath:_0x300905}=_0x66037b?{'storageStatePath':_0x66037b,'tempAuthPath':undefined}:await resolveLocalAuthPath(getEnvDir(_0x4976d6)),_0x2f2eea=_0x10211f||_0x54503f[_0x374550(0x231)](randomUUID),_0x22de6a=join(getRangerDir(),'sessions',_0x2f2eea),_0x2c9741=_0x54503f['QyMiW'](join,_0x22de6a,_0x54503f[_0x374550(0x22c)]),_0x5b53ab=_0x13ba9d?_0x54503f[_0x374550(0x205)](join,_0x2c9741,_0x54503f['hYzZR']):undefined,{launchOptions:_0x37527e,contextOptions:_0x159f87}=buildBrowserOptionsFromSettings(_0x26b7d5,{'headless':_0x44b8df?![]:_0x26b7d5[_0x374550(0x1f0)]??!![],'storageStatePath':_0x13ba9d});if(_0x54503f['CLbpJ'](process['getuid']?.(),0x0)){const _0x2336d8=['--no-sandbox',_0x54503f['VTrVI']],_0xf90922=_0x37527e[_0x374550(0x218)]??[],_0x274049=_0x2336d8['filter'](_0x5495cb=>!_0xf90922['includes'](_0x5495cb));_0x37527e['args']=[..._0xf90922,..._0x274049];}const _0x17ef86=typeof _0x37527e[_0x374550(0x223)]===_0x374550(0x22a)?_0x37527e['executablePath']:_0x13ba9d?chromium[_0x374550(0x223)]():undefined;return{'storageStatePath':_0x13ba9d,'tempAuthPath':_0x300905,'baseUrl':_0x26b7d5['baseUrl'],'headless':Boolean(_0x37527e[_0x374550(0x1f0)]),'userDataDir':_0x2c9741,'browserProfilePath':_0x5b53ab,'executablePath':_0x17ef86,'launchArgs':Array[_0x374550(0x1ef)](_0x37527e['args'])?_0x37527e[_0x374550(0x218)][_0x374550(0x246)](_0x2c189b=>typeof _0x2c189b===_0x374550(0x22a)):[],'userAgent':_0x54503f[_0x374550(0x20b)](typeof _0x159f87['userAgent'],_0x54503f[_0x374550(0x20a)])?_0x159f87[_0x374550(0x226)]:undefined,'extraHTTPHeaders':_0x159f87['extraHTTPHeaders'],'allowInsecureLocalhost':Boolean(_0x26b7d5[_0x374550(0x250)]),'safeMode':Boolean(_0x26b7d5[_0x374550(0x215)]),'cdpEndpoint':_0x26b7d5['cdpEndpoint'],'isCdpMode':_0x54503f['ZXdMB'](Boolean,_0x26b7d5[_0x374550(0x1fb)])};}export function getNestedValue(_0x2daeb8,_0x2f40a1){const _0x3dfb79=_0x3644ca,_0x1bef88={'qbigv':function(_0x2112e1,_0x1daac5){return _0x2112e1(_0x1daac5);},'HLBOR':function(_0x3a39ce,_0x4ad588){return _0x3a39ce===_0x4ad588;},'CbmUI':function(_0x7c6438,_0x12d945){return _0x7c6438!==_0x12d945;}},_0xbca4f8=_0x1bef88['qbigv'](parseKeyPath,_0x2f40a1);let _0x476356=_0x2daeb8;for(const _0x5c65f2 of _0xbca4f8){if(_0x1bef88['HLBOR'](_0x476356,null)||_0x476356===undefined||_0x1bef88[_0x3dfb79(0x207)](typeof _0x476356,_0x3dfb79(0x224)))return undefined;_0x476356=_0x476356[_0x5c65f2];}return _0x476356;}export function setNestedValue(_0x272384,_0x27f919,_0xbc6752){const _0x57a5a9=_0x3644ca,_0x1e32da={'adzsq':function(_0x1cc2cc,_0x1923d8){return _0x1cc2cc-_0x1923d8;},'Wrqun':function(_0x2823ca,_0x5e3c86){return _0x2823ca in _0x5e3c86;},'MsFGa':function(_0x4ed5ff,_0x5f26f0){return _0x4ed5ff!==_0x5f26f0;},'HPvdv':_0x57a5a9(0x224),'lKeCT':function(_0xfe4ee9,_0x33e3a1){return _0xfe4ee9-_0x33e3a1;}},_0x445f58=parseKeyPath(_0x27f919);let _0x2511b1=_0x272384;for(let _0x4324c2=0x0;_0x4324c2<_0x1e32da[_0x57a5a9(0x1fa)](_0x445f58[_0x57a5a9(0x25a)],0x1);_0x4324c2++){const _0x48711d=_0x445f58[_0x4324c2];(!_0x1e32da['Wrqun'](_0x48711d,_0x2511b1)||_0x1e32da['MsFGa'](typeof _0x2511b1[_0x48711d],_0x1e32da[_0x57a5a9(0x1ed)]))&&(_0x2511b1[_0x48711d]={}),_0x2511b1=_0x2511b1[_0x48711d];}_0x2511b1[_0x445f58[_0x1e32da[_0x57a5a9(0x200)](_0x445f58['length'],0x1)]]=_0xbc6752;}export function deleteNestedValue(_0x82bd0,_0x45e322){const _0xcb614c=_0x3644ca,_0x3e075a={'vOAtB':function(_0x4d883d,_0x231e6d){return _0x4d883d(_0x231e6d);},'ZcJmK':function(_0x229877,_0x1e84d1){return _0x229877-_0x1e84d1;},'HOGVR':function(_0x2aae0e,_0x4c2d3b){return _0x2aae0e!==_0x4c2d3b;},'JHYux':_0xcb614c(0x224),'QkorX':function(_0x2c19f8,_0x2fd95e){return _0x2c19f8-_0x2fd95e;}},_0x5149d8=_0x3e075a[_0xcb614c(0x238)](parseKeyPath,_0x45e322);let _0x246f11=_0x82bd0;for(let _0x581822=0x0;_0x581822<_0x3e075a['ZcJmK'](_0x5149d8['length'],0x1);_0x581822++){if(_0x246f11===null||_0x246f11===undefined||typeof _0x246f11!=='object')return![];_0x246f11=_0x246f11[_0x5149d8[_0x581822]];}if(_0x246f11===null||_0x246f11===undefined||_0x3e075a[_0xcb614c(0x225)](typeof _0x246f11,_0x3e075a['JHYux']))return![];const _0x52d618=_0x5149d8[_0x3e075a['QkorX'](_0x5149d8[_0xcb614c(0x25a)],0x1)];if(_0x52d618 in _0x246f11)return delete _0x246f11[_0x52d618],!![];return![];}function parseKeyPath(_0x406378){const _0x450cfc=_0x3644ca,_0x32d42f={'NlhaT':function(_0xe8e169,_0x562b71){return _0xe8e169===_0x562b71;},'jOKkf':_0x450cfc(0x258)},_0x31c91a=_0x406378['split']('.');return _0x32d42f[_0x450cfc(0x248)](_0x31c91a[0x0],_0x450cfc(0x1f9))&&(_0x31c91a[0x0]=_0x450cfc(0x221)),_0x31c91a[0x0]===_0x32d42f['jOKkf']&&(_0x31c91a[0x0]='setupHeaders'),_0x31c91a;}export function formatSettings(_0x23a862,_0xe0d88f=0x0){const _0x20d0a5=_0x3644ca,_0x149ca6={'akzfN':function(_0x14956e,_0x5daf2d){return _0x14956e!==_0x5daf2d;}},_0x1034eb=[],_0x2201a0='\x20\x20'['repeat'](_0xe0d88f);for(const [_0x3ece79,_0x9867ea]of Object[_0x20d0a5(0x232)](_0x23a862)){if(_0x9867ea===undefined)continue;if(typeof _0x9867ea==='object'&&_0x149ca6[_0x20d0a5(0x236)](_0x9867ea,null)){_0x1034eb[_0x20d0a5(0x201)](''+_0x2201a0+_0x3ece79+':');for(const [_0x4a62a1,_0x54e7f3]of Object[_0x20d0a5(0x232)](_0x9867ea)){_0x1034eb[_0x20d0a5(0x201)](_0x2201a0+'\x20\x20'+_0x4a62a1+':\x20'+_0x54e7f3);}}else _0x1034eb['push'](''+_0x2201a0+_0x3ece79+':\x20'+_0x9867ea);}return _0x1034eb[_0x20d0a5(0x23b)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x284a31,_0x452337){const _0x16cd77=_0x1e71,_0x76758f=_0x284a31();while(!![]){try{const _0x27693c=parseInt(_0x16cd77(0xd5))/0x1+parseInt(_0x16cd77(0xdc))/0x2+parseInt(_0x16cd77(0xdb))/0x3+-parseInt(_0x16cd77(0xd7))/0x4+-parseInt(_0x16cd77(0xda))/0x5+-parseInt(_0x16cd77(0xd6))/0x6*(-parseInt(_0x16cd77(0xdf))/0x7)+-parseInt(_0x16cd77(0xd9))/0x8*(-parseInt(_0x16cd77(0xde))/0x9);if(_0x27693c===_0x452337)break;else _0x76758f['push'](_0x76758f['shift']());}catch(_0x2d4bda){_0x76758f['push'](_0x76758f['shift']());}}}(_0xfe73,0xb23a6));function _0x1e71(_0x12842a,_0x1a8d18){_0x12842a=_0x12842a-0xd3;const _0xfe730f=_0xfe73();let _0x1e71e2=_0xfe730f[_0x12842a];return _0x1e71e2;}import{readFileSync}from'fs';function _0xfe73(){const _0x5c30e7=['5106300TKzTtn','ranger/SKILL.md','17912zUxcdz','1505265qNuIJf','485751ODlgOK','1221546WTyBNr','wXXiP','1647LENnjt','7zEZQpg','skills','oiDms','nxHOB','360558ophBbT','4587990ASPRNi'];_0xfe73=function(){return _0x5c30e7;};return _0xfe73();}import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x4ec1b5){const _0xbb25dc=_0x1e71,_0x3ec9e4={'wXXiP':function(_0x49d938,_0xb0f47a,_0x19c7a7,_0x219543,_0x12194b){return _0x49d938(_0xb0f47a,_0x19c7a7,_0x219543,_0x12194b);},'oiDms':_0xbb25dc(0xe0)},_0x5591d4=_0x3ec9e4[_0xbb25dc(0xdd)](join,__dirname,'..','..',_0x3ec9e4[_0xbb25dc(0xd3)]),_0x4cfb83=join(_0x5591d4,_0x4ec1b5);try{return readFileSync(_0x4cfb83,'utf-8');}catch{return'';}}export function getRangerSkillContent(){const _0x5c0492=_0x1e71,_0x33a132={'nxHOB':function(_0x26b0c,_0x5942b0){return _0x26b0c(_0x5942b0);}};return _0x33a132[_0x5c0492(0xd4)](readSkillContent,_0x5c0492(0xd8));}
1
+ (function(_0x44f441,_0x526425){const _0x55f7ef=_0x2831,_0xf21205=_0x44f441();while(!![]){try{const _0xd8c57=parseInt(_0x55f7ef(0x1e2))/0x1*(-parseInt(_0x55f7ef(0x1e4))/0x2)+parseInt(_0x55f7ef(0x1e5))/0x3+-parseInt(_0x55f7ef(0x1e1))/0x4*(parseInt(_0x55f7ef(0x1df))/0x5)+-parseInt(_0x55f7ef(0x1e6))/0x6*(parseInt(_0x55f7ef(0x1e8))/0x7)+-parseInt(_0x55f7ef(0x1dd))/0x8+-parseInt(_0x55f7ef(0x1e9))/0x9*(-parseInt(_0x55f7ef(0x1de))/0xa)+parseInt(_0x55f7ef(0x1e3))/0xb;if(_0xd8c57===_0x526425)break;else _0xf21205['push'](_0xf21205['shift']());}catch(_0x509753){_0xf21205['push'](_0xf21205['shift']());}}}(_0x3749,0x35837));import{readFileSync}from'fs';import{dirname,join}from'path';function _0x3749(){const _0x43cc84=['591741tyUjkf','108LxPaVC','utf-8','5691SFQaup','67581xfRnPC','JzndA','2753936TMnhPe','110YpASNA','771010UmOadU','skills','8ldOPVS','78388vUYOLF','7535143cyMViy','2ynVebE'];_0x3749=function(){return _0x43cc84;};return _0x3749();}function _0x2831(_0x3d3e1d,_0xca3d45){_0x3d3e1d=_0x3d3e1d-0x1dc;const _0x37498f=_0x3749();let _0x2831f5=_0x37498f[_0x3d3e1d];return _0x2831f5;}import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x3ad8bb){const _0x254a74=_0x2831,_0x485578={'CWDyt':_0x254a74(0x1e0),'qHmAg':function(_0x529cf6,_0x522941,_0x1b0a9d){return _0x529cf6(_0x522941,_0x1b0a9d);},'JzndA':_0x254a74(0x1e7)},_0x4bfb79=join(__dirname,'..','..',_0x485578['CWDyt']),_0x29c957=_0x485578['qHmAg'](join,_0x4bfb79,_0x3ad8bb);try{return readFileSync(_0x29c957,_0x485578[_0x254a74(0x1dc)]);}catch{return'';}}export function getRangerSkillContent(){return readSkillContent('ranger/SKILL.md');}
@@ -1 +1 @@
1
- const _0x539de8=_0x3a13;(function(_0x3cb74d,_0x3816f1){const _0x14966c=_0x3a13,_0x447293=_0x3cb74d();while(!![]){try{const _0x1f4798=-parseInt(_0x14966c(0xa1))/0x1+-parseInt(_0x14966c(0x7e))/0x2*(-parseInt(_0x14966c(0x80))/0x3)+parseInt(_0x14966c(0x8b))/0x4*(-parseInt(_0x14966c(0x8a))/0x5)+-parseInt(_0x14966c(0x95))/0x6+-parseInt(_0x14966c(0xa7))/0x7+parseInt(_0x14966c(0xa8))/0x8+parseInt(_0x14966c(0x93))/0x9*(parseInt(_0x14966c(0x97))/0xa);if(_0x1f4798===_0x3816f1)break;else _0x447293['push'](_0x447293['shift']());}catch(_0x107b4a){_0x447293['push'](_0x447293['shift']());}}}(_0x3b9e,0xb9c7f));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';function _0x3a13(_0x4390e5,_0x43861a){_0x4390e5=_0x4390e5-0x7c;const _0x3b9e77=_0x3b9e();let _0x3a13a3=_0x3b9e77[_0x4390e5];return _0x3a13a3;}function _0x3b9e(){const _0x321219=['815036RAxVdh','\x20\x20Files:\x20','Invalid\x20skill\x20frontmatter','push','ioojw','catch','7700882MWdXtv','4481984lLFrMr','trim','utf-8','10042rlflVd','match','201cnwIse','endsWith','nPHpC','scsbA','xSlFp','\x20\x20Installed\x20skill:\x20','skills','TDnIA','join','length','290WqiSTv','46240GNSlLr','ranger','\x20\x20Skill\x20not\x20found:\x20','reYzo','oEULj','opencode','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','RSAZQ','1932651FkeVyH','dHTVA','761532zfwKqy','e2e-test-recommender','120OuwRQP','.md','isDirectory','warn','SKILL.md','JGGck','log','\x20\x20Location:\x20','aECnC','NbooG'];_0x3b9e=function(){return _0x321219;};return _0x3b9e();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x539de8(0x8c)];export const DEPRECATED_SKILLS=[_0x539de8(0x96),'bug-bash','feature-tracker'];export async function installSkill(_0x2348c6,_0x5dbb0f={}){const _0x4ae759=_0x539de8,_0x2aed6d={'ioojw':'project','aECnC':'claude','scsbA':function(_0x48c166){return _0x48c166();},'xSlFp':function(_0x153933,_0x5eac52,_0x574bd7){return _0x153933(_0x5eac52,_0x574bd7);},'GdnKl':function(_0x35df4a,_0x21eccb,_0x385fe2){return _0x35df4a(_0x21eccb,_0x385fe2);},'HwKEy':function(_0x23f063,_0x558d2d){return _0x23f063(_0x558d2d);},'dHTVA':function(_0x454877,_0x3a7025){return _0x454877(_0x3a7025);},'rzmfy':function(_0x3f2d07,_0x155d97){return _0x3f2d07(_0x155d97);},'nPHpC':function(_0x4a368d,_0x478788,_0x51f7f1){return _0x4a368d(_0x478788,_0x51f7f1);},'QpHHN':function(_0x425ab9,_0x2b6f2a,_0x1ee429){return _0x425ab9(_0x2b6f2a,_0x1ee429);},'cNEAT':function(_0x173a73,_0x4aa6e4,_0x17633d){return _0x173a73(_0x4aa6e4,_0x17633d);},'cddLv':_0x4ae759(0x7d),'NbooG':function(_0x3491a7,_0x53c1ad){return _0x3491a7(_0x53c1ad);}},{level:level=_0x2aed6d[_0x4ae759(0xa5)],cliVersion:_0x3a6f58,platform:platform=_0x2aed6d[_0x4ae759(0x9f)]}=_0x5dbb0f,_0x308cdc=_0x2aed6d[_0x4ae759(0x83)](getSourceSkillsDir),_0x138e2f=_0x2aed6d[_0x4ae759(0x84)](join,_0x308cdc,_0x2348c6),_0x158889=_0x2aed6d['GdnKl'](join,_0x308cdc,_0x2348c6+_0x4ae759(0x98)),_0x57867d=_0x2aed6d['HwKEy'](existsSync,_0x138e2f)&&statSync(_0x138e2f)[_0x4ae759(0x99)]()&&_0x2aed6d[_0x4ae759(0x94)](existsSync,join(_0x138e2f,_0x4ae759(0x9b))),_0x1c97ef=_0x2aed6d['HwKEy'](existsSync,_0x158889);if(!_0x57867d&&!_0x1c97ef)return console[_0x4ae759(0x9a)](_0x4ae759(0x8d)+_0x2348c6),![];const _0x50cf47=platform===_0x4ae759(0x90)?_0x2aed6d[_0x4ae759(0x94)](getOpencodeSkillsDir,level):_0x2aed6d['rzmfy'](getSkillsDir,level),_0x4605b4=_0x2aed6d[_0x4ae759(0x84)](join,_0x50cf47,_0x2348c6);await mkdir(_0x4605b4,{'recursive':!![]});let _0x5e9246,_0x5e48fc=[];if(_0x57867d){const _0x2d0c7f=await readdir(_0x138e2f),_0xfea655=_0x2d0c7f['filter'](_0x49146b=>_0x49146b[_0x4ae759(0x81)](_0x4ae759(0x98)));for(const _0x34333f of _0xfea655){const _0x54de3c=_0x2aed6d[_0x4ae759(0x84)](join,_0x138e2f,_0x34333f),_0x1bf4e0=_0x2aed6d[_0x4ae759(0x82)](join,_0x4605b4,_0x34333f);await _0x2aed6d['QpHHN'](copyFile,_0x54de3c,_0x1bf4e0),_0x5e48fc[_0x4ae759(0xa4)](_0x34333f);}_0x5e9246=await _0x2aed6d['cNEAT'](readFile,join(_0x138e2f,_0x4ae759(0x9b)),_0x4ae759(0x7d));}else{_0x5e9246=await readFile(_0x158889,_0x2aed6d['cddLv']);const _0x39e6c0=join(_0x4605b4,'SKILL.md');await writeFile(_0x39e6c0,_0x5e9246,_0x4ae759(0x7d)),_0x5e48fc['push']('SKILL.md');}const {name:_0x494546}=_0x2aed6d[_0x4ae759(0xa0)](parseFrontmatter,_0x5e9246);return console[_0x4ae759(0x9d)](_0x4ae759(0x85)+_0x494546),console['log'](_0x4ae759(0x9e)+_0x4605b4),_0x5e48fc[_0x4ae759(0x89)]>0x1&&console[_0x4ae759(0x9d)](_0x4ae759(0xa2)+_0x5e48fc[_0x4ae759(0x88)](',\x20')),logLocalAgentInstallation(_0x2348c6,{'skillDisplayName':_0x494546,'installLevel':level},_0x3a6f58)[_0x4ae759(0xa6)](()=>{}),!![];}function getSourceSkillsDir(){const _0x339dc0=_0x539de8,_0x2dc4c6={'JGGck':function(_0x5d9567,_0x1f94cc,_0x2817ea,_0x4e42b7,_0x120ed5){return _0x5d9567(_0x1f94cc,_0x2817ea,_0x4e42b7,_0x120ed5);},'TDnIA':_0x339dc0(0x86),'oEULj':function(_0x58251d,_0x38cc49,_0x40459e,_0x5d7e68,_0x30f9ab,_0x5f405c){return _0x58251d(_0x38cc49,_0x40459e,_0x5d7e68,_0x30f9ab,_0x5f405c);},'RSAZQ':function(_0x217fd0,_0x54bf9c){return _0x217fd0(_0x54bf9c);}},_0x23a770=[_0x2dc4c6[_0x339dc0(0x9c)](join,__dirname,'..','..',_0x2dc4c6['TDnIA']),_0x2dc4c6[_0x339dc0(0x8f)](join,__dirname,'..','..','..',_0x2dc4c6[_0x339dc0(0x87)])];for(const _0x453f05 of _0x23a770){if(_0x2dc4c6[_0x339dc0(0x92)](existsSync,_0x453f05))return _0x453f05;}return _0x23a770[0x0];}function parseFrontmatter(_0x50d9ce){const _0xa75297=_0x539de8,_0x5778fd=_0x50d9ce['match'](/^---\n([\s\S]+?)\n---/);if(!_0x5778fd)throw new Error(_0xa75297(0xa3));const _0x4147b6=_0x5778fd[0x1],_0x259bf7=_0x4147b6['match'](/name:\s*(.+)/),_0x3ca6fb=_0x4147b6[_0xa75297(0x7f)](/description:\s*"?(.+?)"?\n/);return{'name':_0x259bf7?.[0x1][_0xa75297(0x7c)]()||'','description':_0x3ca6fb?.[0x1][_0xa75297(0x7c)]()||''};}export async function removeSkill(_0x52ab72,_0x3125ac){const _0x308ab6=_0x539de8,_0x5a92dc={'reYzo':function(_0x468fd9,_0x448707,_0x5ce294){return _0x468fd9(_0x448707,_0x5ce294);}},_0x31eb02=getSkillsDir(_0x3125ac),_0x25a840=join(_0x31eb02,_0x52ab72);if(!existsSync(_0x25a840))return![];try{return await _0x5a92dc[_0x308ab6(0x8e)](rm,_0x25a840,{'recursive':!![]}),console[_0x308ab6(0x9d)]('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x52ab72),!![];}catch{return console['warn'](_0x308ab6(0x91)+_0x52ab72),![];}}
1
+ const _0x3c7947=_0x1a7f;(function(_0x4245ef,_0xa201a3){const _0x18c4ab=_0x1a7f,_0xd2f07c=_0x4245ef();while(!![]){try{const _0x4f85c9=-parseInt(_0x18c4ab(0x126))/0x1+parseInt(_0x18c4ab(0x119))/0x2*(-parseInt(_0x18c4ab(0x114))/0x3)+-parseInt(_0x18c4ab(0x109))/0x4*(-parseInt(_0x18c4ab(0x111))/0x5)+-parseInt(_0x18c4ab(0x10b))/0x6+-parseInt(_0x18c4ab(0x11d))/0x7+-parseInt(_0x18c4ab(0x125))/0x8+parseInt(_0x18c4ab(0x11f))/0x9;if(_0x4f85c9===_0xa201a3)break;else _0xd2f07c['push'](_0xd2f07c['shift']());}catch(_0x173c21){_0xd2f07c['push'](_0xd2f07c['shift']());}}}(_0x22d5,0x81407));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x3c7947(0x10a)];function _0x1a7f(_0x2504c2,_0x2d517d){_0x2504c2=_0x2504c2-0x108;const _0x22d59b=_0x22d5();let _0x1a7f0c=_0x22d59b[_0x2504c2];return _0x1a7f0c;}function _0x22d5(){const _0x4b1d0f=['match','skills','log','1049998fnOeRY','isDirectory','SKILL.md','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','5899012fsHnxw','LCQpV','25349769xNHtbm','bug-bash','\x20\x20Skill\x20not\x20found:\x20','.md','catch','Invalid\x20skill\x20frontmatter','5019240xWPzGR','143046ZzRaac','filter','bkcxv','ubMpw','utf-8','1440284GQDoZv','ranger','5215212cvWgkL','length','LYvxn','warn','hrnje','aMkRH','10jFbNxp','kAMhU','zBFvw','3barBEM','feature-tracker'];_0x22d5=function(){return _0x4b1d0f;};return _0x22d5();}export const DEPRECATED_SKILLS=['e2e-test-recommender',_0x3c7947(0x120),_0x3c7947(0x115)];export async function installSkill(_0x24d211,_0x4053bc={}){const _0x9963e7=_0x3c7947,_0x2dc826={'Fbngt':'project','LCQpV':function(_0x593298,_0x4a8195,_0x1e8c7e){return _0x593298(_0x4a8195,_0x1e8c7e);},'zBFvw':function(_0xa8270c,_0x5d0492){return _0xa8270c&&_0x5d0492;},'kAMhU':function(_0xd7cfd3,_0x49c2f4){return _0xd7cfd3(_0x49c2f4);},'hrnje':'SKILL.md','bkcxv':_0x9963e7(0x108),'ubMpw':function(_0x1e1fca,_0x44535a,_0x4c0c43,_0x3f0f12){return _0x1e1fca(_0x44535a,_0x4c0c43,_0x3f0f12);}},{level:level=_0x2dc826['Fbngt'],cliVersion:_0x1ec764,platform:platform='claude'}=_0x4053bc,_0xc3f30f=getSourceSkillsDir(),_0x1950dd=join(_0xc3f30f,_0x24d211),_0x31bba3=_0x2dc826[_0x9963e7(0x11e)](join,_0xc3f30f,_0x24d211+'.md'),_0x48e3f2=existsSync(_0x1950dd)&&statSync(_0x1950dd)[_0x9963e7(0x11a)]()&&existsSync(join(_0x1950dd,_0x9963e7(0x11b))),_0x550282=existsSync(_0x31bba3);if(_0x2dc826[_0x9963e7(0x113)](!_0x48e3f2,!_0x550282))return console[_0x9963e7(0x10e)](_0x9963e7(0x121)+_0x24d211),![];const _0x497648=platform==='opencode'?_0x2dc826[_0x9963e7(0x112)](getOpencodeSkillsDir,level):getSkillsDir(level),_0x48bf00=join(_0x497648,_0x24d211);await mkdir(_0x48bf00,{'recursive':!![]});let _0x589350,_0x5ea503=[];if(_0x48e3f2){const _0x56ba94=await readdir(_0x1950dd),_0x2952d1=_0x56ba94[_0x9963e7(0x127)](_0x48e15a=>_0x48e15a['endsWith'](_0x9963e7(0x122)));for(const _0x287dd8 of _0x2952d1){const _0x432aa9=join(_0x1950dd,_0x287dd8),_0x13f756=_0x2dc826['LCQpV'](join,_0x48bf00,_0x287dd8);await copyFile(_0x432aa9,_0x13f756),_0x5ea503['push'](_0x287dd8);}_0x589350=await readFile(join(_0x1950dd,_0x2dc826['hrnje']),_0x9963e7(0x108));}else{_0x589350=await readFile(_0x31bba3,'utf-8');const _0x44044f=join(_0x48bf00,_0x2dc826[_0x9963e7(0x10f)]);await writeFile(_0x44044f,_0x589350,_0x2dc826[_0x9963e7(0x128)]),_0x5ea503['push']('SKILL.md');}const {name:_0x3ed1dc}=parseFrontmatter(_0x589350);return console['log']('\x20\x20Installed\x20skill:\x20'+_0x3ed1dc),console[_0x9963e7(0x118)]('\x20\x20Location:\x20'+_0x48bf00),_0x5ea503[_0x9963e7(0x10c)]>0x1&&console[_0x9963e7(0x118)]('\x20\x20Files:\x20'+_0x5ea503['join'](',\x20')),_0x2dc826[_0x9963e7(0x129)](logLocalAgentInstallation,_0x24d211,{'skillDisplayName':_0x3ed1dc,'installLevel':level},_0x1ec764)[_0x9963e7(0x123)](()=>{}),!![];}function getSourceSkillsDir(){const _0x640585=_0x3c7947,_0x1967e4={'GmCDw':function(_0x4af494,_0x4f01ad,_0x2a359a,_0x2b9a60,_0x4f3ed3){return _0x4af494(_0x4f01ad,_0x2a359a,_0x2b9a60,_0x4f3ed3);},'LYvxn':_0x640585(0x117),'NqLQT':function(_0x16bf0a,_0x57c151,_0x587cf8,_0x9f9c6b,_0x49d856,_0x4cbe50){return _0x16bf0a(_0x57c151,_0x587cf8,_0x9f9c6b,_0x49d856,_0x4cbe50);}},_0x32bd8a=[_0x1967e4['GmCDw'](join,__dirname,'..','..',_0x1967e4[_0x640585(0x10d)]),_0x1967e4['NqLQT'](join,__dirname,'..','..','..',_0x640585(0x117))];for(const _0xabb495 of _0x32bd8a){if(existsSync(_0xabb495))return _0xabb495;}return _0x32bd8a[0x0];}function parseFrontmatter(_0xdc9725){const _0xc888c4=_0x3c7947,_0x3310f7={'DiozU':_0xc888c4(0x124)},_0x1b501d=_0xdc9725[_0xc888c4(0x116)](/^---\n([\s\S]+?)\n---/);if(!_0x1b501d)throw new Error(_0x3310f7['DiozU']);const _0x338c3f=_0x1b501d[0x1],_0xeb1267=_0x338c3f['match'](/name:\s*(.+)/),_0x3f811e=_0x338c3f['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0xeb1267?.[0x1]['trim']()||'','description':_0x3f811e?.[0x1]['trim']()||''};}export async function removeSkill(_0x3a717f,_0x3910d7){const _0x364117=_0x3c7947,_0xf4d287={'aMkRH':function(_0x1cb6f4,_0xa012ca){return _0x1cb6f4(_0xa012ca);}},_0x15de51=getSkillsDir(_0x3910d7),_0xa284bd=join(_0x15de51,_0x3a717f);if(!_0xf4d287[_0x364117(0x110)](existsSync,_0xa284bd))return![];try{return await rm(_0xa284bd,{'recursive':!![]}),console['log']('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x3a717f),!![];}catch{return console[_0x364117(0x10e)](_0x364117(0x11c)+_0x3a717f),![];}}