@ranger-testing/ranger-cli 2.5.4-alpha.a98f848-6 → 2.5.4-alpha.b2ba935-13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/README.md +36 -14
  2. package/build/cli.js +1 -1
  3. package/build/commands/addEnv.js +1 -1
  4. package/build/commands/authEncrypt.js +1 -1
  5. package/build/commands/clean.js +1 -1
  6. package/build/commands/config.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 -0
  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/opencodeConfig.js +1 -1
  58. package/build/commands/utils/playwrightCli.js +1 -1
  59. package/build/commands/utils/profileMessages.js +1 -1
  60. package/build/commands/utils/profileSetupBanner.js +1 -1
  61. package/build/commands/utils/projectsConfig.js +1 -1
  62. package/build/commands/utils/rangerConfig.js +1 -1
  63. package/build/commands/utils/rangerRoot.js +1 -1
  64. package/build/commands/utils/resolveProfileContext.js +1 -1
  65. package/build/commands/utils/resolveProfileUrl.js +1 -1
  66. package/build/commands/utils/retry.js +1 -1
  67. package/build/commands/utils/sessionCache.js +1 -1
  68. package/build/commands/utils/settings.js +1 -1
  69. package/build/commands/utils/skillContent.js +1 -1
  70. package/build/commands/utils/skills.js +1 -1
  71. package/build/commands/utils/stitchWebmFiles.js +1 -1
  72. package/build/commands/utils/telemetry.js +1 -1
  73. package/build/commands/utils/tokenRefresh.js +1 -1
  74. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  75. package/build/commands/utils/userApi.js +1 -1
  76. package/build/commands/utils/version.js +1 -1
  77. package/build/commands/verifyFeature.js +1 -1
  78. package/build/commands/verifyFeatureCli.js +1 -1
  79. package/build/skills/ranger/SKILL.md +24 -8
  80. package/build/skills/ranger/create.md +16 -3
  81. package/build/skills/ranger/verify.md +37 -18
  82. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x3dcbb4,_0x4f95d9){const _0x495749=_0x2405,_0x145ee4=_0x3dcbb4();while(!![]){try{const _0x1f5503=-parseInt(_0x495749(0x1ff))/0x1*(-parseInt(_0x495749(0x206))/0x2)+-parseInt(_0x495749(0x1ec))/0x3+parseInt(_0x495749(0x1f6))/0x4*(-parseInt(_0x495749(0x1f8))/0x5)+parseInt(_0x495749(0x1ed))/0x6*(-parseInt(_0x495749(0x218))/0x7)+-parseInt(_0x495749(0x20b))/0x8*(parseInt(_0x495749(0x200))/0x9)+-parseInt(_0x495749(0x1f3))/0xa+parseInt(_0x495749(0x219))/0xb;if(_0x1f5503===_0x4f95d9)break;else _0x145ee4['push'](_0x145ee4['shift']());}catch(_0x2aa812){_0x145ee4['push'](_0x145ee4['shift']());}}}(_0x29b6,0x94da4));import{spawn}from'child_process';function _0x2405(_0x2a5fa9,_0x252777){_0x2a5fa9=_0x2a5fa9-0x1ea;const _0x29b6b9=_0x29b6();let _0x240547=_0x29b6b9[_0x2a5fa9];return _0x240547;}import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function toPlaywrightCliSessionKey(_0x398c7d){const _0x55ea5a=_0x2405,_0x46982f={'NbSAZ':function(_0x131253,_0x1ac38f){return _0x131253(_0x1ac38f);},'InSBw':_0x55ea5a(0x209)},_0x5c47d9=_0x46982f['NbSAZ'](createHash,_0x46982f[_0x55ea5a(0x212)])['update'](_0x398c7d)[_0x55ea5a(0x21b)]('hex')['slice'](0x0,0xc);return'rg-'+_0x5c47d9;}function shellQuote(_0x40ad68){return'\x27'+_0x40ad68['replace'](/'/g,'\x27\x5c\x27\x27')+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x38f105){const _0xaf8fbc=_0x2405,_0x506c1c={'lptov':function(_0x4c2b26,_0x145e50){return _0x4c2b26(_0x145e50);}};return SAFE_SHELL_TOKEN[_0xaf8fbc(0x21c)](_0x38f105)?_0x38f105:_0x506c1c['lptov'](shellQuote,_0x38f105);}function _0x29b6(){const _0x5995e1=['env','unknown','JXYNT','\x20signal=','KGtGD','2hecWwO','stderr','string','sha256','iZUwb','880JbdzHk','find','UymdZ','null','cmd','npx','vEwws','InSBw','-s=','slice','\x0astdout:\x20','subcommand','configPath','7GEadMR','30306958TkHSHY','map','digest','test','args','CslJW','SeEJz','--config','uXiLw','2706723jYNtFk','259932pqUtDJ','command','close','data','SIGTERM','length','4992240RclWMP','join','timeoutMs','36192PgjSZH','DKTBI','345RLykKQ','trim','playwright-cli\x20','error','KIrij','stdout','SIGKILL','691421nqwxco','62820qbkMpC'];_0x29b6=function(){return _0x5995e1;};return _0x29b6();}export function buildPlaywrightCliInvocation(_0x29e109,_0x7d4aff,_0x435e34){const _0x55b967=_0x2405,_0x42f35f={'SExHo':function(_0x153ad8,_0x347520){return _0x153ad8(_0x347520);},'WgXLS':_0x55b967(0x1ea),'vEwws':'npx','KIrij':function(_0x47f84d,_0x65bb8f){return _0x47f84d(_0x65bb8f);}},_0x3d6462=_0x42f35f['SExHo'](toPlaywrightCliSessionKey,_0x29e109),[_0x4578c4=_0x55b967(0x202)]=_0x435e34,_0x38de3f=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x3d6462,_0x42f35f['WgXLS'],_0x7d4aff,..._0x435e34];return{'command':'npx','args':_0x38de3f,'shellCommand':[_0x42f35f[_0x55b967(0x211)],PLAYWRIGHT_CLI_BINARY,_0x55b967(0x213)+_0x42f35f[_0x55b967(0x1fc)](quoteShellArg,_0x3d6462),'--config',_0x42f35f['KIrij'](quoteShellArg,_0x7d4aff),..._0x435e34[_0x55b967(0x21a)](quoteShellArg)]['join']('\x20'),'subcommand':_0x4578c4};}export function buildPlaywrightCliCommandPrefix(_0x53ba5e,_0x3126bb){const _0x79b6df=_0x2405,_0x2c7f15={'xtlZB':function(_0x559df4,_0x16f628){return _0x559df4(_0x16f628);},'labYS':_0x79b6df(0x210)},_0x190d08=_0x2c7f15['xtlZB'](toPlaywrightCliSessionKey,_0x53ba5e);return[_0x2c7f15['labYS'],PLAYWRIGHT_CLI_BINARY,'-s='+_0x2c7f15['xtlZB'](quoteShellArg,_0x190d08),'--config',quoteShellArg(_0x3126bb)][_0x79b6df(0x1f4)]('\x20');}function truncateOutput(_0x4cfe8f,_0x2e941c=0x7d0){const _0x5628b8=_0x2405,_0x44b746={'NZaXG':function(_0x255e28,_0x596e00){return _0x255e28>_0x596e00;}};return _0x44b746['NZaXG'](_0x4cfe8f[_0x5628b8(0x1f2)],_0x2e941c)?_0x4cfe8f[_0x5628b8(0x214)](0x0,_0x2e941c)+'...':_0x4cfe8f;}export async function runPlaywrightCliCommand(_0x1729ff){const _0x463a27=_0x2405,_0x337ed2={'JXYNT':function(_0x200b47,_0x587a47){return _0x200b47(_0x587a47);},'KGtGD':function(_0x2d1c94,_0x3e38c2){return _0x2d1c94(_0x3e38c2);},'UymdZ':function(_0x3bd090,_0x3e21e0){return _0x3bd090(_0x3e21e0);},'MYBba':function(_0xda525b,_0x11b1cb){return _0xda525b??_0x11b1cb;},'CslJW':_0x463a27(0x20e),'lJYTs':function(_0x814803,_0x2651e9){return _0x814803(_0x2651e9);},'DKTBI':function(_0x5998eb,_0x4c31af,_0x59e61a,_0x3ae87e){return _0x5998eb(_0x4c31af,_0x59e61a,_0x3ae87e);},'WLttx':'ignore','VXOGR':'pipe','uXiLw':'data','YvglF':_0x463a27(0x1fb)},_0x4d6aa7=buildPlaywrightCliInvocation(_0x1729ff['sessionId'],_0x1729ff[_0x463a27(0x217)],_0x1729ff['commandArgs']);return new Promise((_0x2618a8,_0x3c111e)=>{const _0x5b09aa=_0x463a27,_0x3a10dc={'SeEJz':_0x5b09aa(0x1fe)},_0x12bcb4=_0x337ed2[_0x5b09aa(0x1f7)](spawn,_0x4d6aa7[_0x5b09aa(0x1ee)],_0x4d6aa7[_0x5b09aa(0x21d)],{'cwd':_0x1729ff['cwd'],'env':_0x1729ff[_0x5b09aa(0x201)],'stdio':[_0x337ed2['WLttx'],'pipe',_0x337ed2['VXOGR']]});let _0x1c535e='',_0x316dad='',_0x1d5bf2=![];const _0x2bbebe=_0x1729ff['timeoutMs']&&_0x1729ff['timeoutMs']>0x0?setTimeout(()=>{const _0x10480f=_0x5b09aa;_0x1d5bf2=!![],_0x12bcb4['kill'](_0x10480f(0x1f1)),setTimeout(()=>{const _0x4fcda4=_0x10480f;try{_0x12bcb4['kill'](_0x3a10dc[_0x4fcda4(0x21f)]);}catch{}},0x3e8);},_0x1729ff['timeoutMs']):null;_0x12bcb4[_0x5b09aa(0x1fd)]?.['on'](_0x5b09aa(0x1f0),_0x48c711=>{_0x1c535e+=_0x48c711['toString']();}),_0x12bcb4[_0x5b09aa(0x207)]?.['on'](_0x337ed2[_0x5b09aa(0x1eb)],_0x370dd6=>{_0x316dad+=_0x370dd6['toString']();}),_0x12bcb4['on'](_0x337ed2['YvglF'],_0x2c0897=>{const _0x3f8514=_0x5b09aa;if(_0x2bbebe)_0x337ed2[_0x3f8514(0x203)](clearTimeout,_0x2bbebe);_0x337ed2[_0x3f8514(0x205)](_0x3c111e,_0x2c0897);}),_0x12bcb4['on'](_0x5b09aa(0x1ef),(_0x5083e0,_0x35dbef)=>{const _0x25f0a5=_0x5b09aa;if(_0x2bbebe)_0x337ed2[_0x25f0a5(0x20d)](clearTimeout,_0x2bbebe);if(_0x5083e0===0x0){_0x2618a8({'stdout':_0x1c535e,'stderr':_0x316dad,'invocation':_0x4d6aa7});return;}const _0x27ec7e=_0x1d5bf2?'timed\x20out\x20after\x20'+_0x1729ff[_0x25f0a5(0x1f5)]+'ms':'exited\x20with\x20code='+(_0x5083e0??_0x25f0a5(0x20e))+_0x25f0a5(0x204)+_0x337ed2['MYBba'](_0x35dbef,_0x337ed2[_0x25f0a5(0x21e)]);_0x3c111e(new Error(_0x25f0a5(0x1fa)+_0x4d6aa7[_0x25f0a5(0x216)]+'\x20'+_0x27ec7e+_0x25f0a5(0x215)+truncateOutput(_0x1c535e)+'\x0astderr:\x20'+_0x337ed2['lJYTs'](truncateOutput,_0x316dad)));});});}export function extractBashCommand(_0x380554){const _0x3d638e=_0x2405,_0x31f393={'zrCco':'command','fNmFC':_0x3d638e(0x20f),'iZUwb':_0x3d638e(0x208),'lsqtP':function(_0x1708d3,_0x55968b){return _0x1708d3??_0x55968b;}},_0x3bb766=[_0x31f393['zrCco'],_0x31f393['fNmFC'],'script','bash_command'];for(const _0x3971ba of _0x3bb766){const _0x512f6e=_0x380554[_0x3971ba];if(typeof _0x512f6e===_0x31f393[_0x3d638e(0x20a)]&&_0x512f6e[_0x3d638e(0x1f9)]())return _0x512f6e;}const _0x527b4c=Object['values'](_0x380554)[_0x3d638e(0x20c)](_0x47a601=>typeof _0x47a601===_0x3d638e(0x208)&&_0x47a601['trim']()[_0x3d638e(0x1f2)]>0x0);return _0x31f393['lsqtP'](_0x527b4c,null);}export function parsePlaywrightCliCommand(_0x549621){const _0x4450e6=_0x549621['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x4450e6?.[0x1]??null;}
1
+ (function(_0x566a1f,_0xc68e1f){const _0x3afda0=_0x2d3c,_0x729c98=_0x566a1f();while(!![]){try{const _0x502e8f=parseInt(_0x3afda0(0x140))/0x1+parseInt(_0x3afda0(0x12a))/0x2*(-parseInt(_0x3afda0(0x126))/0x3)+parseInt(_0x3afda0(0x14a))/0x4+-parseInt(_0x3afda0(0x127))/0x5+parseInt(_0x3afda0(0x137))/0x6+parseInt(_0x3afda0(0x12b))/0x7+-parseInt(_0x3afda0(0x13f))/0x8;if(_0x502e8f===_0xc68e1f)break;else _0x729c98['push'](_0x729c98['shift']());}catch(_0x1c9c8f){_0x729c98['push'](_0x729c98['shift']());}}}(_0xba5c,0x6f881));function _0x2d3c(_0x2b0922,_0xf1c654){_0x2b0922=_0x2b0922-0x123;const _0xba5cf0=_0xba5c();let _0x2d3c70=_0xba5cf0[_0x2b0922];return _0x2d3c70;}import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function _0xba5c(){const _0x2ab4c6=['\x0astdout:\x20','null','npx','exited\x20with\x20code=','1613608iZHsJq','308047DdUBwk','REPMy','...','IBhmh','EoHUi','stdout','script','jeLKt','sha256','toString','851752PGhaMT','awXPs','env','Pkutk','configPath','stderr','rg-','timeoutMs','update','values','trim','wrkeM','sSVIu','arSCO','error','string','783iJhmaQ','4012145otNGen','join','SIGKILL','398GMqzFK','4730796HApvol','KaRyu','command','\x20signal=','IiJmt','HiPUn','gUKZh','PBOmz','FAoRX','match','digest','ignore','1896534yRbrIe','\x27\x5c\x27\x27','bash_command','find'];_0xba5c=function(){return _0x2ab4c6;};return _0xba5c();}function toPlaywrightCliSessionKey(_0x5a3fe1){const _0x2eb20f=_0x2d3c,_0x6c28c3={'REPMy':_0x2eb20f(0x148)},_0x4708ea=createHash(_0x6c28c3[_0x2eb20f(0x141)])[_0x2eb20f(0x152)](_0x5a3fe1)[_0x2eb20f(0x135)]('hex')['slice'](0x0,0xc);return _0x2eb20f(0x150)+_0x4708ea;}function shellQuote(_0x27a005){const _0x370a01=_0x2d3c;return'\x27'+_0x27a005['replace'](/'/g,_0x370a01(0x138))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x456d6c){const _0x4f022d={'WwwiB':function(_0xef8f57,_0x1d0771){return _0xef8f57(_0x1d0771);}};return SAFE_SHELL_TOKEN['test'](_0x456d6c)?_0x456d6c:_0x4f022d['WwwiB'](shellQuote,_0x456d6c);}export function buildPlaywrightCliInvocation(_0x163cba,_0x373a41,_0x52643f){const _0x4008fe=_0x2d3c,_0x2ecc6b={'jeLKt':function(_0x156137,_0x2e8db3){return _0x156137(_0x2e8db3);},'bnuGO':'unknown','Pkutk':'--config','wrkeM':'npx','KaRyu':function(_0x209c2f,_0x38b8af){return _0x209c2f(_0x38b8af);}},_0xf99541=_0x2ecc6b['jeLKt'](toPlaywrightCliSessionKey,_0x163cba),[_0x312220=_0x2ecc6b['bnuGO']]=_0x52643f,_0x27d49f=[PLAYWRIGHT_CLI_BINARY,'-s='+_0xf99541,_0x2ecc6b[_0x4008fe(0x14d)],_0x373a41,..._0x52643f];return{'command':'npx','args':_0x27d49f,'shellCommand':[_0x2ecc6b[_0x4008fe(0x155)],PLAYWRIGHT_CLI_BINARY,'-s='+_0x2ecc6b[_0x4008fe(0x147)](quoteShellArg,_0xf99541),_0x2ecc6b[_0x4008fe(0x14d)],_0x2ecc6b[_0x4008fe(0x12c)](quoteShellArg,_0x373a41),..._0x52643f['map'](quoteShellArg)]['join']('\x20'),'subcommand':_0x312220};}export function buildPlaywrightCliCommandPrefix(_0x3ed97f,_0x308e31){const _0x5bc13e=_0x2d3c,_0x356b8e={'sUMaw':function(_0x49709b,_0x45d989){return _0x49709b(_0x45d989);},'FAoRX':_0x5bc13e(0x13d)},_0x40e390=_0x356b8e['sUMaw'](toPlaywrightCliSessionKey,_0x3ed97f);return[_0x356b8e[_0x5bc13e(0x133)],PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x40e390),'--config',_0x356b8e['sUMaw'](quoteShellArg,_0x308e31)][_0x5bc13e(0x128)]('\x20');}function truncateOutput(_0x21dee1,_0x34160c=0x7d0){const _0x29e2ee=_0x2d3c,_0x29aaa3={'WLtXu':function(_0x4dba97,_0x2d7989){return _0x4dba97>_0x2d7989;},'sSVIu':function(_0x531e4a,_0x399d16){return _0x531e4a+_0x399d16;},'WvRtK':_0x29e2ee(0x142)};return _0x29aaa3['WLtXu'](_0x21dee1['length'],_0x34160c)?_0x29aaa3[_0x29e2ee(0x156)](_0x21dee1['slice'](0x0,_0x34160c),_0x29aaa3['WvRtK']):_0x21dee1;}export async function runPlaywrightCliCommand(_0x23b961){const _0x19f543=_0x2d3c,_0x45bd8c={'gUKZh':function(_0x49d94b,_0x5a8191){return _0x49d94b===_0x5a8191;},'nqNaD':'null','DCPAy':function(_0x16fc64,_0x364b5e){return _0x16fc64(_0x364b5e);},'IBhmh':'SIGTERM','xkslJ':_0x19f543(0x136),'IiJmt':'pipe','PBOmz':'data','YnubE':'close','awXPs':function(_0x3f8e04,_0x29d29e,_0x2f2bff,_0xb383ba){return _0x3f8e04(_0x29d29e,_0x2f2bff,_0xb383ba);}},_0x47fbec=_0x45bd8c[_0x19f543(0x14b)](buildPlaywrightCliInvocation,_0x23b961['sessionId'],_0x23b961[_0x19f543(0x14e)],_0x23b961['commandArgs']);return new Promise((_0x941a18,_0x3010ad)=>{const _0x3f9499=_0x19f543,_0x3be908={'jYVEI':_0x45bd8c[_0x3f9499(0x143)],'uJcHc':function(_0x1c3449,_0xe13c18){return _0x1c3449(_0xe13c18);}},_0x2d1d8f=spawn(_0x47fbec['command'],_0x47fbec['args'],{'cwd':_0x23b961['cwd'],'env':_0x23b961[_0x3f9499(0x14c)],'stdio':[_0x45bd8c['xkslJ'],_0x45bd8c[_0x3f9499(0x12f)],'pipe']});let _0x3bfa06='',_0x235f65='',_0x4e05dd=![];const _0x4f027b=_0x23b961['timeoutMs']&&_0x23b961['timeoutMs']>0x0?setTimeout(()=>{const _0x2dc727=_0x3f9499,_0x11fd3f={'vsZaJ':_0x2dc727(0x129)};_0x4e05dd=!![],_0x2d1d8f['kill'](_0x3be908['jYVEI']),setTimeout(()=>{try{_0x2d1d8f['kill'](_0x11fd3f['vsZaJ']);}catch{}},0x3e8);},_0x23b961[_0x3f9499(0x151)]):null;_0x2d1d8f[_0x3f9499(0x145)]?.['on'](_0x45bd8c[_0x3f9499(0x132)],_0x378d86=>{const _0x135202=_0x3f9499;_0x3bfa06+=_0x378d86[_0x135202(0x149)]();}),_0x2d1d8f[_0x3f9499(0x14f)]?.['on'](_0x45bd8c['PBOmz'],_0x456f19=>{_0x235f65+=_0x456f19['toString']();}),_0x2d1d8f['on'](_0x3f9499(0x124),_0x3256b9=>{if(_0x4f027b)_0x3be908['uJcHc'](clearTimeout,_0x4f027b);_0x3010ad(_0x3256b9);}),_0x2d1d8f['on'](_0x45bd8c['YnubE'],(_0x15b95f,_0x41f054)=>{const _0x56e23a=_0x3f9499;if(_0x4f027b)clearTimeout(_0x4f027b);if(_0x45bd8c[_0x56e23a(0x131)](_0x15b95f,0x0)){_0x941a18({'stdout':_0x3bfa06,'stderr':_0x235f65,'invocation':_0x47fbec});return;}const _0x236e40=_0x4e05dd?'timed\x20out\x20after\x20'+_0x23b961[_0x56e23a(0x151)]+'ms':_0x56e23a(0x13e)+(_0x15b95f??_0x56e23a(0x13c))+_0x56e23a(0x12e)+(_0x41f054??_0x45bd8c['nqNaD']);_0x3010ad(new Error('playwright-cli\x20'+_0x47fbec['subcommand']+'\x20'+_0x236e40+_0x56e23a(0x13b)+truncateOutput(_0x3bfa06)+'\x0astderr:\x20'+_0x45bd8c['DCPAy'](truncateOutput,_0x235f65)));});});}export function extractBashCommand(_0x445f3e){const _0x4a7cee=_0x2d3c,_0x1a6634={'arSCO':_0x4a7cee(0x12d),'HiPUn':_0x4a7cee(0x139),'EoHUi':_0x4a7cee(0x125),'cLApU':function(_0x4b3fc4,_0x377131){return _0x4b3fc4??_0x377131;}},_0x2aa90c=[_0x1a6634[_0x4a7cee(0x123)],'cmd',_0x4a7cee(0x146),_0x1a6634[_0x4a7cee(0x130)]];for(const _0x57fcf3 of _0x2aa90c){const _0x3561ab=_0x445f3e[_0x57fcf3];if(typeof _0x3561ab===_0x1a6634[_0x4a7cee(0x144)]&&_0x3561ab[_0x4a7cee(0x154)]())return _0x3561ab;}const _0x2af4f8=Object[_0x4a7cee(0x153)](_0x445f3e)[_0x4a7cee(0x13a)](_0x16c0ba=>typeof _0x16c0ba===_0x4a7cee(0x125)&&_0x16c0ba[_0x4a7cee(0x154)]()['length']>0x0);return _0x1a6634['cLApU'](_0x2af4f8,null);}export function parsePlaywrightCliCommand(_0x2ef0bd){const _0x23cf9d=_0x2d3c,_0x354162=_0x2ef0bd[_0x23cf9d(0x134)](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x354162?.[0x1]??null;}
@@ -1 +1 @@
1
- const _0x2f8577=_0x2a9f;(function(_0xb311a5,_0x51692d){const _0xb1dd9e=_0x2a9f,_0x472463=_0xb311a5();while(!![]){try{const _0x4f4077=parseInt(_0xb1dd9e(0x1e6))/0x1*(-parseInt(_0xb1dd9e(0x1e4))/0x2)+parseInt(_0xb1dd9e(0x1e3))/0x3+-parseInt(_0xb1dd9e(0x1dd))/0x4+-parseInt(_0xb1dd9e(0x1df))/0x5*(parseInt(_0xb1dd9e(0x1e1))/0x6)+-parseInt(_0xb1dd9e(0x1e2))/0x7*(parseInt(_0xb1dd9e(0x1de))/0x8)+parseInt(_0xb1dd9e(0x1db))/0x9*(-parseInt(_0xb1dd9e(0x1dc))/0xa)+parseInt(_0xb1dd9e(0x1da))/0xb;if(_0x4f4077===_0x51692d)break;else _0x472463['push'](_0x472463['shift']());}catch(_0x27b143){_0x472463['push'](_0x472463['shift']());}}}(_0x4f6d,0xd4ff6));function _0x4f6d(){const _0x978320=['25069GXIoQC','65629201MDVRMw','47358ocxuBL','1100LIaaig','5990116gARnvi','7936NxPVlk','25805Uceglw','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20','1920eolDRx','7448viJhvx','497445KURais','38jdzaKM','ranger\x20profile\x20add\x20local'];_0x4f6d=function(){return _0x978320;};return _0x4f6d();}const DEFAULT_PROFILE_COMMAND=_0x2f8577(0x1e5);function _0x2a9f(_0x11b04e,_0x1cf090){_0x11b04e=_0x11b04e-0x1da;const _0x4f6ded=_0x4f6d();let _0x2a9fb3=_0x4f6ded[_0x11b04e];return _0x2a9fb3;}export function formatProfileRequiredMessage(_0x35874c){const _0x3fab4a=_0x2f8577,_0x4a092c={'aKzHq':function(_0x833196,_0x416231){return _0x833196(_0x416231);}},_0x5d3855=_0x35874c?_0x4a092c['aKzHq'](_0x35874c,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x3fab4a(0x1e0)+_0x5d3855+'.';}
1
+ function _0x45c6(){const _0x357dfa=['1401594nZiAYn','1798536pVgpVS','155317roTcMn','1885200jiHeBe','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20','ranger\x20profile\x20add\x20local','6fbtKSn','407491NwtLaf','3vyKrga','3587695rMbbWu','10533321gqVgoW'];_0x45c6=function(){return _0x357dfa;};return _0x45c6();}const _0x3099b2=_0x47d2;(function(_0x43bf63,_0x4ee77d){const _0x10adf8=_0x47d2,_0x370a59=_0x43bf63();while(!![]){try{const _0x2a027d=-parseInt(_0x10adf8(0x197))/0x1+parseInt(_0x10adf8(0x195))/0x2*(parseInt(_0x10adf8(0x192))/0x3)+parseInt(_0x10adf8(0x196))/0x4+parseInt(_0x10adf8(0x193))/0x5*(parseInt(_0x10adf8(0x19b))/0x6)+parseInt(_0x10adf8(0x19c))/0x7+-parseInt(_0x10adf8(0x198))/0x8+-parseInt(_0x10adf8(0x194))/0x9;if(_0x2a027d===_0x4ee77d)break;else _0x370a59['push'](_0x370a59['shift']());}catch(_0x241d7b){_0x370a59['push'](_0x370a59['shift']());}}}(_0x45c6,0x5912f));const DEFAULT_PROFILE_COMMAND=_0x3099b2(0x19a);function _0x47d2(_0x47beec,_0x86c0dc){_0x47beec=_0x47beec-0x192;const _0x45c686=_0x45c6();let _0x47d2dc=_0x45c686[_0x47beec];return _0x47d2dc;}export function formatProfileRequiredMessage(_0x1e4725){const _0x114920=_0x3099b2,_0x4ddbf1={'rQEOb':function(_0xcbad01,_0x15e666){return _0xcbad01(_0x15e666);}},_0x1623d4=_0x1e4725?_0x4ddbf1['rQEOb'](_0x1e4725,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x114920(0x199)+_0x1623d4+'.';}
@@ -1 +1 @@
1
- (function(_0x10ebde,_0x1b28d4){const _0xee546d=_0x2739,_0x41dd7e=_0x10ebde();while(!![]){try{const _0x501cdd=parseInt(_0xee546d(0x1ac))/0x1+parseInt(_0xee546d(0x1a5))/0x2+-parseInt(_0xee546d(0x19f))/0x3*(-parseInt(_0xee546d(0x1a2))/0x4)+-parseInt(_0xee546d(0x1ad))/0x5+parseInt(_0xee546d(0x19c))/0x6+parseInt(_0xee546d(0x1aa))/0x7*(-parseInt(_0xee546d(0x1a8))/0x8)+parseInt(_0xee546d(0x19d))/0x9;if(_0x501cdd===_0x1b28d4)break;else _0x41dd7e['push'](_0x41dd7e['shift']());}catch(_0xde0b6c){_0x41dd7e['push'](_0x41dd7e['shift']());}}}(_0x5f15,0x5f615));function _0x5f15(){const _0xc1fe2e=['<div\x20class=\x22ranger-banner__message\x22>','959azngot','ginbV','359859ROabGD','3003685ShklEm','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','3097710gojHPL','756477egnkGj','stringify','237crVNVX','wTCPU','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','28748guqpPR','</div>','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','455534IqXCUV','<div\x20class=\x22ranger-banner__content\x22>','\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20','44632QTMjSI'];_0x5f15=function(){return _0xc1fe2e;};return _0x5f15();}const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x2f3e95=_0x2739,_0x23da42={'wTCPU':function(_0x46b435,_0x593725){return _0x46b435+_0x593725;},'ginbV':_0x2f3e95(0x1ae),'fWPoJ':_0x2f3e95(0x1a3)},_0x512462=_0x23da42[_0x2f3e95(0x1a0)](_0x2f3e95(0x1a6)+_0x23da42[_0x2f3e95(0x1ab)]+_0x2f3e95(0x1a9),'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>')+_0x2f3e95(0x1a4)+_0x23da42['fWPoJ']+_0x2f3e95(0x1a3)+_0x2f3e95(0x1a1),_0x5c608c='\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a';return _0x2f3e95(0x1a7)+JSON['stringify'](_0x512462)+';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20'+JSON[_0x2f3e95(0x19e)](_0x5c608c)+';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a';})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}function _0x2739(_0x3e64d5,_0x4b856c){_0x3e64d5=_0x3e64d5-0x19c;const _0x5f1564=_0x5f15();let _0x27396b=_0x5f1564[_0x3e64d5];return _0x27396b;}export async function addProfileSetupBanner(_0x3655a8){await _0x3655a8['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
1
+ function _0x4e73(_0x27e5cd,_0x736e6c){_0x27e5cd=_0x27e5cd-0x12b;const _0xafdc08=_0xafdc();let _0x4e7367=_0xafdc08[_0x27e5cd];return _0x4e7367;}function _0xafdc(){const _0x10af2f=['IPgLk','12bQpggk','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','PreBp','23898gLKaeP','DLrIF','IQZUv','262170rRyHYd','LTCZM','85429dslywA','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20','<div\x20class=\x22ranger-banner__content\x22>','TsHtu','4EPTHFF','136IqkPRh','ILSdS','1770CXUdSU','1191487LKYssO','24TkOyiU','7929sFxXnX','<div\x20class=\x22ranger-banner__message\x22>','stringify','70044QTAdXt','650WDzQAP','59336ZLcEZR'];_0xafdc=function(){return _0x10af2f;};return _0xafdc();}(function(_0x4abdee,_0x5f4050){const _0x1cff12=_0x4e73,_0x1c5cbb=_0x4abdee();while(!![]){try{const _0x3e9375=-parseInt(_0x1cff12(0x13e))/0x1*(-parseInt(_0x1cff12(0x143))/0x2)+-parseInt(_0x1cff12(0x136))/0x3*(parseInt(_0x1cff12(0x134))/0x4)+-parseInt(_0x1cff12(0x13c))/0x5*(-parseInt(_0x1cff12(0x12e))/0x6)+-parseInt(_0x1cff12(0x139))/0x7*(-parseInt(_0x1cff12(0x144))/0x8)+-parseInt(_0x1cff12(0x12f))/0x9*(-parseInt(_0x1cff12(0x12c))/0xa)+-parseInt(_0x1cff12(0x12d))/0xb+-parseInt(_0x1cff12(0x132))/0xc*(parseInt(_0x1cff12(0x133))/0xd);if(_0x3e9375===_0x5f4050)break;else _0x1c5cbb['push'](_0x1c5cbb['shift']());}catch(_0x25b7f7){_0x1c5cbb['push'](_0x1c5cbb['shift']());}}}(_0xafdc,0x20f9a));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x31425b=_0x4e73,_0x409578={'FbyLh':function(_0x4d0179,_0x16f51a){return _0x4d0179+_0x16f51a;},'LTCZM':function(_0x2efc08,_0x5965ae){return _0x2efc08+_0x5965ae;},'uvenS':function(_0x32cbcb,_0x3de5c3){return _0x32cbcb+_0x3de5c3;},'PreBp':function(_0x1f90b0,_0x36097b){return _0x1f90b0+_0x36097b;},'DLrIF':_0x31425b(0x137),'IPgLk':_0x31425b(0x130),'ILSdS':'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','UfGVb':'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','TsHtu':'</div>','IQZUv':_0x31425b(0x13f)},_0x3e9822=_0x409578['FbyLh'](_0x409578['LTCZM'](_0x409578[_0x31425b(0x13d)](_0x409578['uvenS'](_0x409578[_0x31425b(0x138)](_0x31425b(0x141)+_0x409578[_0x31425b(0x13a)],_0x409578[_0x31425b(0x135)]),_0x409578[_0x31425b(0x12b)])+_0x409578['UfGVb'],_0x409578['TsHtu']),_0x409578[_0x31425b(0x142)]),_0x409578[_0x31425b(0x13b)]),_0x2337a6='\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a';return _0x31425b(0x140)+JSON['stringify'](_0x3e9822)+';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20'+JSON[_0x31425b(0x131)](_0x2337a6)+';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a';})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x14570c){await _0x14570c['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
@@ -1 +1 @@
1
- (function(_0x499300,_0x1b6d7b){const _0x4fd38a=_0x4c12,_0xf20834=_0x499300();while(!![]){try{const _0x4f171f=parseInt(_0x4fd38a(0xd7))/0x1+-parseInt(_0x4fd38a(0xc0))/0x2*(-parseInt(_0x4fd38a(0xce))/0x3)+parseInt(_0x4fd38a(0xe6))/0x4*(-parseInt(_0x4fd38a(0xe1))/0x5)+-parseInt(_0x4fd38a(0xda))/0x6*(parseInt(_0x4fd38a(0xe2))/0x7)+parseInt(_0x4fd38a(0xc7))/0x8*(-parseInt(_0x4fd38a(0xbd))/0x9)+parseInt(_0x4fd38a(0xd8))/0xa*(-parseInt(_0x4fd38a(0xc6))/0xb)+parseInt(_0x4fd38a(0xbe))/0xc;if(_0x4f171f===_0x1b6d7b)break;else _0xf20834['push'](_0xf20834['shift']());}catch(_0x4b21e5){_0xf20834['push'](_0xf20834['shift']());}}}(_0x56ce,0x411eb));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';function _0x56ce(){const _0x2b923a=['59955FPEtCA','isArray','UFkFy','xgNmM','8TrZxOb','2236491MtgOqy','11359716xfGixm','split','2bukSzh','setupHeaders','keyPath\x20is\x20required','wcKbW','projects','OKyiM','5249915ZpWBcK','8OEPVmG','message','kgvkK','wicpN','soIci','settings','warn','945501bMLxFB','now','nWyof','utf-8','fgZix','xNxiN','ZBtiX','oxgye','parse','436970xKxaqG','10tYPXqo','stringify','330oKYMlW','pid','headers','profiles','version','FyPUn','LvTFk','588025ojhLeP'];_0x56ce=function(){return _0x2b923a;};return _0x56ce();}const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x392939=_0x4c12,_0x13e324={'wicpN':function(_0x141191,_0x58759a,_0x1f1d5a){return _0x141191(_0x58759a,_0x1f1d5a);},'Dhjfn':function(_0x2c3ff8){return _0x2c3ff8();}};return _0x13e324[_0x392939(0xca)](join,_0x13e324['Dhjfn'](getRangerHomeDir),'projects.json');}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x4bb279=_0x4c12,_0x1e6129={'BJUXk':function(_0x334a27,_0x4d13d3,_0x39425f){return _0x334a27(_0x4d13d3,_0x39425f);},'LvTFk':_0x4bb279(0xd1),'Loqnk':function(_0x4c58d0,_0x320a1b){return _0x4c58d0 instanceof _0x320a1b;},'soIci':function(_0x6370c9,_0x322d6a){return _0x6370c9(_0x322d6a);},'oxgye':function(_0x3aea46){return _0x3aea46();},'WhaLE':function(_0x3374a2,_0x417a76){return _0x3374a2!==_0x417a76;},'Tcnix':'object','OKyiM':function(_0x397006,_0x24bcd){return _0x397006===_0x24bcd;},'nWyof':function(_0x194d6f){return _0x194d6f();}},_0x187d75=getProjectsConfigPath();if(!existsSync(_0x187d75))return emptyConfig();let _0x12a6dc;try{_0x12a6dc=_0x1e6129['BJUXk'](readFileSync,_0x187d75,_0x1e6129[_0x4bb279(0xe0)]);}catch(_0x112059){const _0x4d4ad2=_0x1e6129['Loqnk'](_0x112059,Error)?_0x112059[_0x4bb279(0xc8)]:_0x1e6129[_0x4bb279(0xcb)](String,_0x112059);return console[_0x4bb279(0xcd)]('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x187d75+':\x20'+_0x4d4ad2+'.\x20Ignoring\x20local\x20profile\x20overrides.'),_0x1e6129[_0x4bb279(0xd5)](emptyConfig);}let _0x43236f;try{_0x43236f=JSON[_0x4bb279(0xd6)](_0x12a6dc);}catch(_0x5d5a98){const _0x13eb4e=_0x5d5a98 instanceof Error?_0x5d5a98['message']:String(_0x5d5a98);return console[_0x4bb279(0xcd)]('[ranger]\x20Warning:\x20'+_0x187d75+'\x20is\x20not\x20valid\x20JSON\x20('+_0x13eb4e+').\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();}if(!_0x43236f||_0x1e6129['WhaLE'](typeof _0x43236f,'object')||Array['isArray'](_0x43236f)||_0x43236f[_0x4bb279(0xde)]!==CURRENT_VERSION||typeof _0x43236f['projects']!==_0x1e6129['Tcnix']||_0x1e6129[_0x4bb279(0xc5)](_0x43236f['projects'],null)||Array['isArray'](_0x43236f['projects']))return console[_0x4bb279(0xcd)]('[ranger]\x20Warning:\x20'+_0x187d75+'\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.'),_0x1e6129[_0x4bb279(0xd0)](emptyConfig);return _0x43236f;}export function writeProjectsConfig(_0x3640ea){const _0x57e3ea=_0x4c12,_0x8ea1a8={'UFkFy':function(_0x36aebb,_0x1d86e0){return _0x36aebb(_0x1d86e0);},'mceeK':_0x57e3ea(0xd1)},_0x1defed=getProjectsConfigPath(),_0x37f022=_0x8ea1a8['UFkFy'](dirname,_0x1defed);!existsSync(_0x37f022)&&mkdirSync(_0x37f022,{'recursive':!![]});const _0x57f961=_0x1defed+'.'+process[_0x57e3ea(0xdb)]+'.'+Date[_0x57e3ea(0xcf)]()+'.tmp',_0xd8676d=JSON[_0x57e3ea(0xd9)](_0x3640ea,null,0x2)+'\x0a';try{writeFileSync(_0x57f961,_0xd8676d,{'encoding':_0x8ea1a8['mceeK'],'mode':0x180}),renameSync(_0x57f961,_0x1defed);}catch(_0x5def3c){try{existsSync(_0x57f961)&&_0x8ea1a8[_0x57e3ea(0xe4)](unlinkSync,_0x57f961);}catch{}throw _0x5def3c;}}function _0x4c12(_0x1d0fed,_0x193a9b){_0x1d0fed=_0x1d0fed-0xbd;const _0x56ceb8=_0x56ce();let _0x4c1299=_0x56ceb8[_0x1d0fed];return _0x4c1299;}export function readProfileOverrides(_0xe8c2b9,_0x48b672){const _0x64183c=_0x4c12,_0x454f6b=readProjectsConfig(),_0x31278d=_0x454f6b[_0x64183c(0xc4)][_0xe8c2b9];if(!_0x31278d||!_0x31278d['profiles'])return null;const _0x2d23e6=_0x31278d[_0x64183c(0xdd)][_0x48b672];if(!_0x2d23e6||!_0x2d23e6[_0x64183c(0xcc)])return null;return _0x2d23e6['settings']??null;}export function setProfileOverride(_0x4f6adf,_0x466edb,_0x4e010c,_0x387346){const _0x6e932d=_0x4c12,_0x3f2fcf={'mvShs':function(_0x44aa02){return _0x44aa02();},'ZtWIz':function(_0x10df81,_0x7bb1f8){return _0x10df81(_0x7bb1f8);}};if(!_0x4e010c)throw new Error(_0x6e932d(0xc2));const _0x5dc599=_0x3f2fcf['mvShs'](readProjectsConfig),_0x1e5454=_0x5dc599['projects'][_0x4f6adf]??={},_0x57f4e0=_0x1e5454['profiles']??={},_0x20935f=_0x57f4e0[_0x466edb]??={},_0x2f6c55=_0x20935f['settings']??={};setByKeyPath(_0x2f6c55,_0x4e010c,_0x387346),_0x3f2fcf['ZtWIz'](writeProjectsConfig,_0x5dc599);}export function unsetProfileOverride(_0x4354af,_0x1e285d,_0x451dff){const _0x54e704=_0x4c12,_0x3036={'bfoDS':_0x54e704(0xc2),'FyPUn':function(_0x427fda){return _0x427fda();},'vTqTf':function(_0x2c6f80,_0x2a4fd3,_0x46cfc4){return _0x2c6f80(_0x2a4fd3,_0x46cfc4);},'xgNmM':function(_0x3df404,_0x16fccd){return _0x3df404(_0x16fccd);}};if(!_0x451dff)throw new Error(_0x3036['bfoDS']);const _0x4fac99=_0x3036[_0x54e704(0xdf)](readProjectsConfig),_0x2552b3=_0x4fac99[_0x54e704(0xc4)][_0x4354af];if(!_0x2552b3?.[_0x54e704(0xdd)])return![];const _0x4302de=_0x2552b3[_0x54e704(0xdd)][_0x1e285d];if(!_0x4302de?.['settings'])return![];const _0x1e00fa=_0x3036['vTqTf'](deleteByKeyPath,_0x4302de['settings'],_0x451dff);if(!_0x1e00fa)return![];return _0x3036[_0x54e704(0xe5)](writeProjectsConfig,_0x4fac99),!![];}export function resetProfileOverrides(_0x280538,_0x1161c0){const _0x394bf1=_0x4c12,_0x240bed={'kgvkK':function(_0x24c06b){return _0x24c06b();},'DWHsm':function(_0x360630,_0x1baab2){return _0x360630 in _0x1baab2;},'ZBtiX':function(_0x375a8d,_0x4058e3){return _0x375a8d===_0x4058e3;},'iPYnV':function(_0x68a3d7,_0x34e484){return _0x68a3d7(_0x34e484);}},_0x4bac61=_0x240bed[_0x394bf1(0xc9)](readProjectsConfig),_0x513e0c=_0x4bac61['projects'][_0x280538];if(!_0x513e0c?.[_0x394bf1(0xdd)])return;if(!_0x240bed['DWHsm'](_0x1161c0,_0x513e0c[_0x394bf1(0xdd)]))return;delete _0x513e0c[_0x394bf1(0xdd)][_0x1161c0],_0x240bed[_0x394bf1(0xd4)](Object['keys'](_0x513e0c[_0x394bf1(0xdd)])['length'],0x0)&&delete _0x513e0c[_0x394bf1(0xdd)],!_0x513e0c['profiles']&&delete _0x4bac61['projects'][_0x280538],_0x240bed['iPYnV'](writeProjectsConfig,_0x4bac61);}export function mergeCloudProfileSettings(_0x19b7d9,_0x421071){const _0x29ca44=_0x4c12,_0x170846={'QaPyt':function(_0x267e50,_0x8a2a56){return _0x267e50===_0x8a2a56;},'xNxiN':function(_0x448bdc,_0x515a2a){return _0x448bdc(_0x515a2a);}},_0x9d76eb={..._0x19b7d9??{}};if(!_0x421071)return _0x9d76eb;for(const [_0x93ad10,_0x496eca]of Object['entries'](_0x421071)){if(_0x496eca===undefined)continue;if(_0x496eca===null){delete _0x9d76eb[_0x93ad10];continue;}if(_0x170846['QaPyt'](_0x93ad10,_0x29ca44(0xdc))||_0x93ad10===_0x29ca44(0xc1)){const _0xd078f=asRecord(_0x9d76eb[_0x93ad10])??{},_0x14ca97=_0x170846[_0x29ca44(0xd3)](asRecord,_0x496eca);if(!_0x14ca97){_0x9d76eb[_0x93ad10]=_0x496eca;continue;}const _0x4cd47b={..._0xd078f};for(const [_0x40a211,_0xa6a1d1]of Object['entries'](_0x14ca97)){if(_0x170846['QaPyt'](_0xa6a1d1,null))delete _0x4cd47b[_0x40a211];else _0xa6a1d1!==undefined&&(_0x4cd47b[_0x40a211]=_0xa6a1d1);}_0x9d76eb[_0x93ad10]=_0x4cd47b;continue;}_0x9d76eb[_0x93ad10]=_0x496eca;}return _0x9d76eb;}function asRecord(_0x204025){return _0x204025&&typeof _0x204025==='object'&&!Array['isArray'](_0x204025)?_0x204025:undefined;}function setByKeyPath(_0x192b5a,_0xfa9133,_0x33be1b){const _0x44d11c=_0x4c12,_0x2699cb={'PBAEZ':function(_0x8c2924,_0x4cc6ae){return _0x8c2924<_0x4cc6ae;},'oKiDW':function(_0x2f76c3,_0x2f4a9c){return _0x2f76c3-_0x2f4a9c;},'wcKbW':function(_0x4b97e7,_0x37e6de){return _0x4b97e7!==_0x37e6de;}},_0x355b2a=_0xfa9133[_0x44d11c(0xbf)]('.');let _0x8bfac2=_0x192b5a;for(let _0x38d63e=0x0;_0x2699cb['PBAEZ'](_0x38d63e,_0x2699cb['oKiDW'](_0x355b2a['length'],0x1));_0x38d63e++){const _0x172067=_0x355b2a[_0x38d63e],_0x1cd2d9=_0x8bfac2[_0x172067];(!_0x1cd2d9||_0x2699cb[_0x44d11c(0xc3)](typeof _0x1cd2d9,'object')||Array[_0x44d11c(0xe3)](_0x1cd2d9))&&(_0x8bfac2[_0x172067]={}),_0x8bfac2=_0x8bfac2[_0x172067];}_0x8bfac2[_0x355b2a[_0x355b2a['length']-0x1]]=_0x33be1b;}function deleteByKeyPath(_0x305fe9,_0x193f04){const _0x3232ec=_0x4c12,_0x545775={'fgZix':function(_0x4f8665,_0x4b6a16){return _0x4f8665-_0x4b6a16;},'NMMQV':function(_0x26617a,_0x7ccd74){return _0x26617a!==_0x7ccd74;}},_0x20603b=_0x193f04['split']('.');let _0x342d95=_0x305fe9;for(let _0x1b42ca=0x0;_0x1b42ca<_0x545775[_0x3232ec(0xd2)](_0x20603b['length'],0x1);_0x1b42ca++){const _0x7cd2bd=_0x20603b[_0x1b42ca],_0x1ce803=_0x342d95[_0x7cd2bd];if(!_0x1ce803||_0x545775['NMMQV'](typeof _0x1ce803,'object')||Array[_0x3232ec(0xe3)](_0x1ce803))return![];_0x342d95=_0x1ce803;}const _0xaa12c3=_0x20603b[_0x20603b['length']-0x1];if(!(_0xaa12c3 in _0x342d95))return![];return delete _0x342d95[_0xaa12c3],!![];}
1
+ (function(_0xbd9b5c,_0x434301){const _0x170e4d=_0x1698,_0x5d6ce1=_0xbd9b5c();while(!![]){try{const _0x574c23=parseInt(_0x170e4d(0x121))/0x1+parseInt(_0x170e4d(0x137))/0x2*(-parseInt(_0x170e4d(0x114))/0x3)+parseInt(_0x170e4d(0x110))/0x4*(parseInt(_0x170e4d(0x139))/0x5)+-parseInt(_0x170e4d(0x117))/0x6*(-parseInt(_0x170e4d(0x13e))/0x7)+parseInt(_0x170e4d(0x119))/0x8+-parseInt(_0x170e4d(0x116))/0x9+parseInt(_0x170e4d(0x136))/0xa*(-parseInt(_0x170e4d(0x123))/0xb);if(_0x574c23===_0x434301)break;else _0x5d6ce1['push'](_0x5d6ce1['shift']());}catch(_0x36c3f8){_0x5d6ce1['push'](_0x5d6ce1['shift']());}}}(_0x26f2,0xcdb35));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x108721=_0x1698,_0x852d9f={'TQjSg':function(_0x7719ce,_0x298c55,_0x5931f7){return _0x7719ce(_0x298c55,_0x5931f7);},'dEKOE':function(_0x140ea5){return _0x140ea5();},'OlHBg':'projects.json'};return _0x852d9f['TQjSg'](join,_0x852d9f[_0x108721(0x13f)](getRangerHomeDir),_0x852d9f[_0x108721(0x11d)]);}function _0x1698(_0x1a2f8d,_0x3d675f){_0x1a2f8d=_0x1a2f8d-0x10f;const _0x26f2ba=_0x26f2();let _0x1698eb=_0x26f2ba[_0x1a2f8d];return _0x1698eb;}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x295711=_0x1698,_0x26c38b={'cGGOh':function(_0x1f180a,_0xd3a9c5){return _0x1f180a(_0xd3a9c5);},'ikwGQ':function(_0x487b32){return _0x487b32();},'lOLKD':function(_0x5994d6,_0x15e289,_0x25f5d0){return _0x5994d6(_0x15e289,_0x25f5d0);},'LMiNa':function(_0x13012f,_0x5ce935){return _0x13012f instanceof _0x5ce935;},'UJSEO':function(_0x30bde4,_0x1302be){return _0x30bde4(_0x1302be);},'mgDUV':function(_0x3a9892){return _0x3a9892();},'pdAvm':function(_0x186c00,_0x2b9cb0){return _0x186c00!==_0x2b9cb0;},'LrDpw':_0x295711(0x143),'SHyZZ':function(_0x30af71,_0x16de2a){return _0x30af71===_0x16de2a;}},_0x126316=getProjectsConfigPath();if(!_0x26c38b[_0x295711(0x10f)](existsSync,_0x126316))return _0x26c38b['ikwGQ'](emptyConfig);let _0x13c1ee;try{_0x13c1ee=_0x26c38b[_0x295711(0x12d)](readFileSync,_0x126316,_0x295711(0x115));}catch(_0x841847){const _0x322c4c=_0x26c38b['LMiNa'](_0x841847,Error)?_0x841847[_0x295711(0x118)]:_0x26c38b[_0x295711(0x12c)](String,_0x841847);return console[_0x295711(0x12b)]('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x126316+':\x20'+_0x322c4c+_0x295711(0x11c)),_0x26c38b[_0x295711(0x13c)](emptyConfig);}let _0x54d3d6;try{_0x54d3d6=JSON[_0x295711(0x12f)](_0x13c1ee);}catch(_0x1c3418){const _0x22088e=_0x1c3418 instanceof Error?_0x1c3418[_0x295711(0x118)]:String(_0x1c3418);return console['warn'](_0x295711(0x144)+_0x126316+_0x295711(0x12a)+_0x22088e+_0x295711(0x11f)),_0x26c38b[_0x295711(0x128)](emptyConfig);}if(!_0x54d3d6||typeof _0x54d3d6!==_0x295711(0x143)||Array['isArray'](_0x54d3d6)||_0x54d3d6['version']!==CURRENT_VERSION||_0x26c38b['pdAvm'](typeof _0x54d3d6['projects'],_0x26c38b[_0x295711(0x13a)])||_0x26c38b['SHyZZ'](_0x54d3d6['projects'],null)||Array['isArray'](_0x54d3d6[_0x295711(0x141)]))return console[_0x295711(0x12b)](_0x295711(0x144)+_0x126316+'\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();return _0x54d3d6;}export function writeProjectsConfig(_0x160d3a){const _0x1e4dc8=_0x1698,_0x34745c={'JJHWD':function(_0xb797d3,_0x1531be){return _0xb797d3(_0x1531be);},'hOAoM':function(_0x56eff9,_0x35e6e3){return _0x56eff9+_0x35e6e3;},'OkRfF':function(_0x482803,_0x413674,_0x2f7798){return _0x482803(_0x413674,_0x2f7798);}},_0x2d0240=getProjectsConfigPath(),_0x7e1f80=_0x34745c['JJHWD'](dirname,_0x2d0240);!_0x34745c[_0x1e4dc8(0x133)](existsSync,_0x7e1f80)&&mkdirSync(_0x7e1f80,{'recursive':!![]});const _0x4fb1df=_0x2d0240+'.'+process['pid']+'.'+Date[_0x1e4dc8(0x11b)]()+'.tmp',_0x1e8e4f=_0x34745c[_0x1e4dc8(0x122)](JSON[_0x1e4dc8(0x11a)](_0x160d3a,null,0x2),'\x0a');try{writeFileSync(_0x4fb1df,_0x1e8e4f,{'encoding':_0x1e4dc8(0x115),'mode':0x180}),_0x34745c[_0x1e4dc8(0x138)](renameSync,_0x4fb1df,_0x2d0240);}catch(_0x5cc39e){try{_0x34745c[_0x1e4dc8(0x133)](existsSync,_0x4fb1df)&&unlinkSync(_0x4fb1df);}catch{}throw _0x5cc39e;}}export function readProfileOverrides(_0x13baa3,_0x23ae30){const _0x42df67=_0x1698,_0x29072b=readProjectsConfig(),_0x593e2e=_0x29072b[_0x42df67(0x141)][_0x13baa3];if(!_0x593e2e||!_0x593e2e['profiles'])return null;const _0x1130eb=_0x593e2e['profiles'][_0x23ae30];if(!_0x1130eb||!_0x1130eb[_0x42df67(0x12e)])return null;return _0x1130eb['settings']??null;}export function setProfileOverride(_0x350985,_0xc5999b,_0x44a727,_0xe8ecc4){const _0x16b56c=_0x1698,_0x30a4e0={'sfyhR':function(_0x626ae1){return _0x626ae1();},'HuClu':function(_0x255815,_0x5a46cc,_0x2c8015,_0xea9535){return _0x255815(_0x5a46cc,_0x2c8015,_0xea9535);}};if(!_0x44a727)throw new Error('keyPath\x20is\x20required');const _0x5194d9=_0x30a4e0['sfyhR'](readProjectsConfig),_0x31f231=_0x5194d9[_0x16b56c(0x141)][_0x350985]??={},_0x1db0f5=_0x31f231['profiles']??={},_0x1ab3cb=_0x1db0f5[_0xc5999b]??={},_0x168342=_0x1ab3cb[_0x16b56c(0x12e)]??={};_0x30a4e0[_0x16b56c(0x127)](setByKeyPath,_0x168342,_0x44a727,_0xe8ecc4),writeProjectsConfig(_0x5194d9);}export function unsetProfileOverride(_0x56dd15,_0x57795b,_0x4b5967){const _0x4ce013=_0x1698,_0x329bd1={'TaEoa':_0x4ce013(0x13d),'qUZZI':function(_0x3bab63,_0x27fbf8,_0x55d3eb){return _0x3bab63(_0x27fbf8,_0x55d3eb);},'ywPow':function(_0x1ba511,_0x1ed65a){return _0x1ba511(_0x1ed65a);}};if(!_0x4b5967)throw new Error(_0x329bd1[_0x4ce013(0x131)]);const _0x1decc8=readProjectsConfig(),_0x54533c=_0x1decc8['projects'][_0x56dd15];if(!_0x54533c?.['profiles'])return![];const _0x5c4f16=_0x54533c['profiles'][_0x57795b];if(!_0x5c4f16?.[_0x4ce013(0x12e)])return![];const _0x1b13b6=_0x329bd1[_0x4ce013(0x135)](deleteByKeyPath,_0x5c4f16[_0x4ce013(0x12e)],_0x4b5967);if(!_0x1b13b6)return![];return _0x329bd1[_0x4ce013(0x111)](writeProjectsConfig,_0x1decc8),!![];}export function resetProfileOverrides(_0x936b58,_0x473100){const _0x291086=_0x1698,_0x140242={'CRTSZ':function(_0x213f35){return _0x213f35();}},_0x6958b8=_0x140242[_0x291086(0x126)](readProjectsConfig),_0x109435=_0x6958b8['projects'][_0x936b58];if(!_0x109435?.['profiles'])return;if(!(_0x473100 in _0x109435[_0x291086(0x112)]))return;delete _0x109435['profiles'][_0x473100],Object[_0x291086(0x113)](_0x109435[_0x291086(0x112)])[_0x291086(0x140)]===0x0&&(!_0x109435[_0x291086(0x13b)]?delete _0x6958b8[_0x291086(0x141)][_0x936b58]:_0x109435['profiles']={}),writeProjectsConfig(_0x6958b8);}export function readLastProfile(_0x59e14c){const _0x13155f=_0x1698,_0x4ef6e4={'eIBBY':function(_0x47aaba){return _0x47aaba();}},_0xdd90c0=_0x4ef6e4['eIBBY'](readProjectsConfig),_0xcee3b2=_0xdd90c0[_0x13155f(0x141)][_0x59e14c];return _0xcee3b2?.[_0x13155f(0x13b)]??null;}export function writeLastProfile(_0x3541b9,_0x31174d){const _0x1c9008=_0x1698,_0x5f2551={'hNKKq':function(_0x16a431){return _0x16a431();},'nPRrO':function(_0x38feea,_0x4330cb){return _0x38feea(_0x4330cb);}},_0x3e26b9=_0x5f2551[_0x1c9008(0x120)](readProjectsConfig),_0x205f8c=_0x3e26b9['projects'][_0x3541b9]??={};_0x205f8c[_0x1c9008(0x13b)]=_0x31174d,_0x5f2551[_0x1c9008(0x125)](writeProjectsConfig,_0x3e26b9);}export function mergeCloudProfileSettings(_0x58ff76,_0x4647c6){const _0x50f3ed=_0x1698,_0x4a363c={'rqCPb':function(_0x33923a,_0x40fb96){return _0x33923a===_0x40fb96;},'YoPyW':function(_0x249f4c,_0x3aba51){return _0x249f4c(_0x3aba51);}},_0x1ab701={..._0x58ff76??{}};if(!_0x4647c6)return _0x1ab701;for(const [_0x408207,_0x1c4e56]of Object['entries'](_0x4647c6)){if(_0x1c4e56===undefined)continue;if(_0x1c4e56===null){delete _0x1ab701[_0x408207];continue;}if(_0x4a363c[_0x50f3ed(0x134)](_0x408207,'headers')||_0x408207==='setupHeaders'){const _0x5d318d=_0x4a363c['YoPyW'](asRecord,_0x1ab701[_0x408207])??{},_0x30b91a=_0x4a363c['YoPyW'](asRecord,_0x1c4e56);if(!_0x30b91a){_0x1ab701[_0x408207]=_0x1c4e56;continue;}const _0x255050={..._0x5d318d};for(const [_0x1f77ef,_0x223671]of Object[_0x50f3ed(0x130)](_0x30b91a)){if(_0x223671===null)delete _0x255050[_0x1f77ef];else _0x223671!==undefined&&(_0x255050[_0x1f77ef]=_0x223671);}_0x1ab701[_0x408207]=_0x255050;continue;}_0x1ab701[_0x408207]=_0x1c4e56;}return _0x1ab701;}function asRecord(_0x581bea){const _0x20a2b6=_0x1698;return _0x581bea&&typeof _0x581bea==='object'&&!Array[_0x20a2b6(0x11e)](_0x581bea)?_0x581bea:undefined;}function setByKeyPath(_0x21fa82,_0x4cf183,_0x3ec484){const _0x58d672=_0x1698,_0x3f5648={'GQgTn':function(_0x42d432,_0x26c0cc){return _0x42d432-_0x26c0cc;},'UzTXm':_0x58d672(0x143),'YbMLP':function(_0x50f304,_0x4d0efe){return _0x50f304-_0x4d0efe;}},_0x30e247=_0x4cf183['split']('.');let _0x10199d=_0x21fa82;for(let _0x137f0d=0x0;_0x137f0d<_0x3f5648['GQgTn'](_0x30e247['length'],0x1);_0x137f0d++){const _0x468633=_0x30e247[_0x137f0d],_0x56758b=_0x10199d[_0x468633];(!_0x56758b||typeof _0x56758b!==_0x3f5648[_0x58d672(0x124)]||Array[_0x58d672(0x11e)](_0x56758b))&&(_0x10199d[_0x468633]={}),_0x10199d=_0x10199d[_0x468633];}_0x10199d[_0x30e247[_0x3f5648[_0x58d672(0x129)](_0x30e247['length'],0x1)]]=_0x3ec484;}function deleteByKeyPath(_0x45241e,_0x322145){const _0x24b36b=_0x1698,_0x7243e={'ZCkbM':function(_0x5aab2d,_0x1e3cb9){return _0x5aab2d<_0x1e3cb9;},'JCKju':function(_0x10d5fa,_0x56ea26){return _0x10d5fa!==_0x56ea26;},'lywfW':function(_0x2cc227,_0x27af75){return _0x2cc227-_0x27af75;}},_0x5a159c=_0x322145[_0x24b36b(0x132)]('.');let _0x18efc4=_0x45241e;for(let _0x2449c2=0x0;_0x7243e['ZCkbM'](_0x2449c2,_0x5a159c[_0x24b36b(0x140)]-0x1);_0x2449c2++){const _0x482957=_0x5a159c[_0x2449c2],_0x341be5=_0x18efc4[_0x482957];if(!_0x341be5||_0x7243e['JCKju'](typeof _0x341be5,_0x24b36b(0x143))||Array['isArray'](_0x341be5))return![];_0x18efc4=_0x341be5;}const _0x53d0da=_0x5a159c[_0x7243e[_0x24b36b(0x142)](_0x5a159c[_0x24b36b(0x140)],0x1)];if(!(_0x53d0da in _0x18efc4))return![];return delete _0x18efc4[_0x53d0da],!![];}function _0x26f2(){const _0x5d1f36=['OkRfF','270695uEEtYZ','LrDpw','lastProfile','mgDUV','keyPath\x20is\x20required','49616dskwnt','dEKOE','length','projects','lywfW','object','[ranger]\x20Warning:\x20','cGGOh','116snuiGP','ywPow','profiles','keys','3RejhZl','utf-8','2520090RczKhM','528sVjibT','message','8018600xGWLdN','stringify','now','.\x20Ignoring\x20local\x20profile\x20overrides.','OlHBg','isArray',').\x20Ignoring\x20local\x20profile\x20overrides.','hNKKq','1443546JcRZPz','hOAoM','110hQgpsk','UzTXm','nPRrO','CRTSZ','HuClu','ikwGQ','YbMLP','\x20is\x20not\x20valid\x20JSON\x20(','warn','UJSEO','lOLKD','settings','parse','entries','TaEoa','split','JJHWD','rqCPb','qUZZI','1927090NGzMIR','3179994DUSAmj'];_0x26f2=function(){return _0x5d1f36;};return _0x26f2();}
@@ -1 +1 @@
1
- (function(_0x67288e,_0x58d1df){const _0x26bd4b=_0x1c2d,_0x5b9601=_0x67288e();while(!![]){try{const _0x2385b2=-parseInt(_0x26bd4b(0x91))/0x1+parseInt(_0x26bd4b(0x95))/0x2*(-parseInt(_0x26bd4b(0x93))/0x3)+parseInt(_0x26bd4b(0x8c))/0x4+-parseInt(_0x26bd4b(0x9b))/0x5*(-parseInt(_0x26bd4b(0x8b))/0x6)+-parseInt(_0x26bd4b(0x90))/0x7*(-parseInt(_0x26bd4b(0x94))/0x8)+parseInt(_0x26bd4b(0x8e))/0x9+-parseInt(_0x26bd4b(0x8f))/0xa;if(_0x2385b2===_0x58d1df)break;else _0x5b9601['push'](_0x5b9601['shift']());}catch(_0x2ddaf2){_0x5b9601['push'](_0x5b9601['shift']());}}}(_0x33d8,0x55971));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';function _0x33d8(){const _0x5e5ff7=['message','1332729NnycsD','5648800hKDFLU','7UmbrJi','79083gUsoZY','isArray','336669nEmbsl','4363232gtApag','4jmJOoo','mFBUA','qGMHu','string','VDlwI','config.json','875525JcvKTO','6MqybxR','1401584AImsCY'];_0x33d8=function(){return _0x5e5ff7;};return _0x33d8();}import{getRangerDir}from'./rangerRoot.js';function _0x1c2d(_0x1f7c04,_0x2aa37a){_0x1f7c04=_0x1f7c04-0x8b;const _0x33d8e9=_0x33d8();let _0x1c2da1=_0x33d8e9[_0x1f7c04];return _0x1c2da1;}export function getRangerConfigPath(){const _0x37f5eb=_0x1c2d,_0x4e6340={'mFBUA':function(_0x1eccd5,_0x304a2b,_0x3a3392){return _0x1eccd5(_0x304a2b,_0x3a3392);},'zrcKW':function(_0x1730be){return _0x1730be();}};return _0x4e6340[_0x37f5eb(0x96)](join,_0x4e6340['zrcKW'](getRangerDir),_0x37f5eb(0x9a));}export async function loadRangerConfig(){const _0x59764b=_0x1c2d,_0x1e3998={'VDlwI':function(_0x2d2ec4,_0x422707){return _0x2d2ec4(_0x422707);},'qGMHu':'utf-8','VQYTc':function(_0x13f1a6,_0x2118fb){return _0x13f1a6===_0x2118fb;},'hEXmC':function(_0xbc9818,_0x2b446e){return _0xbc9818 instanceof _0x2b446e;}},_0x18f487=getRangerConfigPath();if(!_0x1e3998[_0x59764b(0x99)](existsSync,_0x18f487))return{};try{const _0x27284e=await readFile(_0x18f487,_0x1e3998[_0x59764b(0x97)]),_0x3680a4=JSON['parse'](_0x27284e);if(!_0x3680a4||typeof _0x3680a4!=='object'||Array[_0x59764b(0x92)](_0x3680a4))return{};const _0x1713d6={},_0x59fdf2=_0x3680a4['model'];return _0x1e3998['VQYTc'](typeof _0x59fdf2,_0x59764b(0x98))&&(_0x1713d6['model']=_0x59fdf2),_0x1713d6;}catch(_0x458948){const _0x1560bd=_0x1e3998['hEXmC'](_0x458948,Error)?_0x458948[_0x59764b(0x8d)]:_0x1e3998[_0x59764b(0x99)](String,_0x458948);return console['warn']('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x18f487+':\x20'+_0x1560bd),{};}}
1
+ (function(_0x15b125,_0x7c2c50){const _0x27ef84=_0x1db1,_0x2d79a8=_0x15b125();while(!![]){try{const _0xf9d8c8=parseInt(_0x27ef84(0x11c))/0x1*(-parseInt(_0x27ef84(0x112))/0x2)+parseInt(_0x27ef84(0x118))/0x3+-parseInt(_0x27ef84(0x119))/0x4*(-parseInt(_0x27ef84(0x11f))/0x5)+parseInt(_0x27ef84(0x114))/0x6+parseInt(_0x27ef84(0x11b))/0x7+-parseInt(_0x27ef84(0x116))/0x8*(parseInt(_0x27ef84(0x11d))/0x9)+-parseInt(_0x27ef84(0x11a))/0xa*(-parseInt(_0x27ef84(0x120))/0xb);if(_0xf9d8c8===_0x7c2c50)break;else _0x2d79a8['push'](_0x2d79a8['shift']());}catch(_0x33f9f3){_0x2d79a8['push'](_0x2d79a8['shift']());}}}(_0x3eb0,0xed627));function _0x3eb0(){const _0x527555=['307341MRqCnb','16NHBmtQ','10syGaLb','9762473wlijgl','1utMmHo','1341VcLfYT','warn','70355gopFmW','34450174YcpXcv','parse','3780078ibQUJx','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','101190UVGeoI','XOHlP','98776TDhJOp','message'];_0x3eb0=function(){return _0x527555;};return _0x3eb0();}import{readFile}from'fs/promises';import{existsSync}from'fs';function _0x1db1(_0x186609,_0x1cab5f){_0x186609=_0x186609-0x112;const _0x3eb020=_0x3eb0();let _0x1db1d3=_0x3eb020[_0x186609];return _0x1db1d3;}import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0xee48df={'gXikr':'config.json'};return join(getRangerDir(),_0xee48df['gXikr']);}export async function loadRangerConfig(){const _0x687a5e=_0x1db1,_0x5e7291={'UmnZL':function(_0x11ad4c){return _0x11ad4c();},'BJJRD':function(_0x44f2ae,_0xfaf63a){return _0x44f2ae(_0xfaf63a);},'XOHlP':function(_0x29ce8b,_0xfd659d,_0x19b3c3){return _0x29ce8b(_0xfd659d,_0x19b3c3);},'TMaDY':function(_0xbf22bb,_0x182115){return _0xbf22bb!==_0x182115;}},_0xc20845=_0x5e7291['UmnZL'](getRangerConfigPath);if(!_0x5e7291['BJJRD'](existsSync,_0xc20845))return{};try{const _0x2ad9fe=await _0x5e7291[_0x687a5e(0x115)](readFile,_0xc20845,'utf-8'),_0x163056=JSON[_0x687a5e(0x121)](_0x2ad9fe);if(!_0x163056||_0x5e7291['TMaDY'](typeof _0x163056,'object')||Array['isArray'](_0x163056))return{};const _0x48f8d7={},_0x328e53=_0x163056['model'];return typeof _0x328e53==='string'&&(_0x48f8d7['model']=_0x328e53),_0x48f8d7;}catch(_0x3542d1){const _0x52fe52=_0x3542d1 instanceof Error?_0x3542d1[_0x687a5e(0x117)]:String(_0x3542d1);return console[_0x687a5e(0x11e)](_0x687a5e(0x113)+_0xc20845+':\x20'+_0x52fe52),{};}}
@@ -1 +1 @@
1
- function _0x1ffb(){const _0x2b2b67=['GVNSn','lQijv','12450aIbvDC','1008316JreRBs','xMdYT','.git','1351580fcNjGu','16720AjPbPX','99lSaELS','8KSHrVM','3qSvBUg','root','cwd','426293KmIVXW','9249009DqKUlQ','qeztI','CEeMA','38oEZDut','1675398noDjfH'];_0x1ffb=function(){return _0x2b2b67;};return _0x1ffb();}(function(_0x355a89,_0x1324e4){const _0xbb5474=_0x5c99,_0x2713d8=_0x355a89();while(!![]){try{const _0xe5dca3=-parseInt(_0xbb5474(0x168))/0x1*(-parseInt(_0xbb5474(0x172))/0x2)+parseInt(_0xbb5474(0x16b))/0x3*(parseInt(_0xbb5474(0x177))/0x4)+parseInt(_0xbb5474(0x167))/0x5+parseInt(_0xbb5474(0x173))/0x6+-parseInt(_0xbb5474(0x16e))/0x7*(parseInt(_0xbb5474(0x16a))/0x8)+parseInt(_0xbb5474(0x169))/0x9*(parseInt(_0xbb5474(0x176))/0xa)+-parseInt(_0xbb5474(0x16f))/0xb;if(_0xe5dca3===_0x1324e4)break;else _0x2713d8['push'](_0x2713d8['shift']());}catch(_0x171d6e){_0x2713d8['push'](_0x2713d8['shift']());}}}(_0x1ffb,0x38775));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x492e0e=_0x5c99,_0x49569f={'xyTVo':function(_0x43b1ed,_0x2f059c,_0x1a2bee){return _0x43b1ed(_0x2f059c,_0x1a2bee);},'xMdYT':'.ranger','taebn':function(_0x17260e,_0x41c382){return _0x17260e(_0x41c382);}};let _0x3a1b89=process[_0x492e0e(0x16d)]();const _0x5856ec=parse(_0x3a1b89)['root'];while(_0x3a1b89!==_0x5856ec){if(existsSync(_0x49569f['xyTVo'](join,_0x3a1b89,_0x49569f[_0x492e0e(0x178)])))return _0x3a1b89;_0x3a1b89=_0x49569f['taebn'](dirname,_0x3a1b89);}if(_0x49569f['taebn'](existsSync,join(_0x5856ec,_0x49569f['xMdYT'])))return _0x5856ec;const _0x1803c7=findGitRoot();if(_0x1803c7)return _0x1803c7;return process[_0x492e0e(0x16d)]();}export function getRangerDir(){const _0x3659dc={'xTkfk':'.ranger'};return join(getRangerRoot(),_0x3659dc['xTkfk']);}export function findGitRoot(){const _0x31ee69=_0x5c99,_0x2dbe2a={'GVNSn':function(_0x3066c4,_0x3e4dbd){return _0x3066c4(_0x3e4dbd);},'CEeMA':function(_0x10b223,_0x12d8a3){return _0x10b223!==_0x12d8a3;},'lQijv':function(_0x5cebe8,_0x5e7ddf,_0x27a23c){return _0x5cebe8(_0x5e7ddf,_0x27a23c);}};let _0x4da854=process[_0x31ee69(0x16d)]();const _0x45853f=_0x2dbe2a['GVNSn'](parse,_0x4da854)[_0x31ee69(0x16c)];while(_0x2dbe2a[_0x31ee69(0x171)](_0x4da854,_0x45853f)){if(_0x2dbe2a[_0x31ee69(0x174)](existsSync,_0x2dbe2a[_0x31ee69(0x175)](join,_0x4da854,_0x31ee69(0x179))))return _0x4da854;_0x4da854=dirname(_0x4da854);}if(existsSync(_0x2dbe2a[_0x31ee69(0x175)](join,_0x45853f,_0x31ee69(0x179))))return _0x45853f;return null;}function _0x5c99(_0x2e1858,_0x3b4f6b){_0x2e1858=_0x2e1858-0x167;const _0x1ffba1=_0x1ffb();let _0x5c9976=_0x1ffba1[_0x2e1858];return _0x5c9976;}export function getRangerHomeDir(){const _0x5beb9d=_0x5c99,_0x2a9723={'qeztI':function(_0x282ac7,_0x30527f,_0x3aff16){return _0x282ac7(_0x30527f,_0x3aff16);}};return _0x2a9723[_0x5beb9d(0x170)](join,homedir(),'.ranger');}
1
+ (function(_0x474909,_0x1e8a1f){const _0x5bf15f=_0x2385,_0x1875e2=_0x474909();while(!![]){try{const _0x198530=-parseInt(_0x5bf15f(0xad))/0x1+-parseInt(_0x5bf15f(0xb7))/0x2*(-parseInt(_0x5bf15f(0xbb))/0x3)+parseInt(_0x5bf15f(0xba))/0x4*(-parseInt(_0x5bf15f(0xb3))/0x5)+-parseInt(_0x5bf15f(0xb8))/0x6*(parseInt(_0x5bf15f(0xb4))/0x7)+-parseInt(_0x5bf15f(0xb1))/0x8*(parseInt(_0x5bf15f(0xbc))/0x9)+-parseInt(_0x5bf15f(0xb6))/0xa*(-parseInt(_0x5bf15f(0xaf))/0xb)+parseInt(_0x5bf15f(0xb2))/0xc;if(_0x198530===_0x1e8a1f)break;else _0x1875e2['push'](_0x1875e2['shift']());}catch(_0xc83ebd){_0x1875e2['push'](_0x1875e2['shift']());}}}(_0x2ff1,0xcc3a5));function _0x2ff1(){const _0x5c445a=['4UZwuHQ','3VbDbLo','63ZJZBLY','utnpn','root','GpCxC','204103YINqmf','.ranger','32549YNrwBJ','.git','1883648alyzDo','33087876CVjwUI','4417115kPqtay','7vuoSTz','lfoyO','5460coZRum','320770CbDVmO','5766522oRBgjk','cwd'];_0x2ff1=function(){return _0x5c445a;};return _0x2ff1();}import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x4e0901=_0x2385,_0x10ad0e={'zCRka':function(_0xd92232,_0x297adf,_0x53bfe9){return _0xd92232(_0x297adf,_0x53bfe9);},'GpCxC':_0x4e0901(0xae),'WUWud':function(_0x3cd1c9,_0x442fab){return _0x3cd1c9(_0x442fab);},'gBIDB':function(_0x28fedc,_0x2dd808,_0x28728c){return _0x28fedc(_0x2dd808,_0x28728c);}};let _0x56790=process['cwd']();const _0x4622ab=parse(_0x56790)['root'];while(_0x56790!==_0x4622ab){if(existsSync(_0x10ad0e['zCRka'](join,_0x56790,_0x10ad0e[_0x4e0901(0xac)])))return _0x56790;_0x56790=_0x10ad0e['WUWud'](dirname,_0x56790);}if(existsSync(_0x10ad0e['gBIDB'](join,_0x4622ab,'.ranger')))return _0x4622ab;const _0x3bfb50=findGitRoot();if(_0x3bfb50)return _0x3bfb50;return process[_0x4e0901(0xb9)]();}function _0x2385(_0x3d11e3,_0x49bdfe){_0x3d11e3=_0x3d11e3-0xaa;const _0x2ff190=_0x2ff1();let _0x23851a=_0x2ff190[_0x3d11e3];return _0x23851a;}export function getRangerDir(){const _0x58f6c5={'tQGnV':'.ranger'};return join(getRangerRoot(),_0x58f6c5['tQGnV']);}export function findGitRoot(){const _0x4f3d8f=_0x2385,_0x137fa2={'ioBxj':function(_0x8fd61e,_0x1864cd){return _0x8fd61e!==_0x1864cd;},'ZRJsM':function(_0x5a964d,_0x5c2a18){return _0x5a964d(_0x5c2a18);},'nimop':function(_0x356519,_0x472f6c,_0x1014f9){return _0x356519(_0x472f6c,_0x1014f9);},'lfoyO':_0x4f3d8f(0xb0)};let _0x1a98b4=process[_0x4f3d8f(0xb9)]();const _0x43c89d=parse(_0x1a98b4)[_0x4f3d8f(0xab)];while(_0x137fa2['ioBxj'](_0x1a98b4,_0x43c89d)){if(_0x137fa2['ZRJsM'](existsSync,_0x137fa2['nimop'](join,_0x1a98b4,_0x137fa2['lfoyO'])))return _0x1a98b4;_0x1a98b4=dirname(_0x1a98b4);}if(existsSync(join(_0x43c89d,_0x137fa2[_0x4f3d8f(0xb5)])))return _0x43c89d;return null;}export function getRangerHomeDir(){const _0x2a4e0b=_0x2385,_0x5ef4d3={'utnpn':function(_0x1645f4){return _0x1645f4();}};return join(_0x5ef4d3[_0x2a4e0b(0xaa)](homedir),'.ranger');}
@@ -1 +1 @@
1
- (function(_0x34b089,_0x2f65dc){const _0x375bd4=_0x90ec,_0x10da18=_0x34b089();while(!![]){try{const _0x4e50d8=parseInt(_0x375bd4(0x17f))/0x1+parseInt(_0x375bd4(0x193))/0x2*(-parseInt(_0x375bd4(0x18a))/0x3)+parseInt(_0x375bd4(0x189))/0x4*(parseInt(_0x375bd4(0x190))/0x5)+parseInt(_0x375bd4(0x19c))/0x6+parseInt(_0x375bd4(0x19a))/0x7+parseInt(_0x375bd4(0x194))/0x8*(-parseInt(_0x375bd4(0x191))/0x9)+-parseInt(_0x375bd4(0x17a))/0xa;if(_0x4e50d8===_0x2f65dc)break;else _0x10da18['push'](_0x10da18['shift']());}catch(_0x2acf67){_0x10da18['push'](_0x10da18['shift']());}}}(_0x31ea,0xc5f0c));function _0x31ea(){const _0x1fdb87=['\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','\x20does\x20not\x20exist.','resolvedEnv','profile','url','442004IZlIwE','3jEbNfS','domains','No\x20baseUrl\x20configured\x20for\x20profile\x20\x22','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','Cloud\x20profile\x20(recommended)','lDqSp','45OgQgJl','27HrSixu','itAqx','1393486UWQcRf','1961464VczVuN','length','name','HeVOE','Zmkoc','list','11300184rvfOba','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','5221902WXODKA','Profile\x20\x22','startPath','cdpEndpoint','\x20baseUrl\x20<url>','env','cwd','sjyjy','18627360TbBSJU','ChSNp','string','xlRWA','log','626654egZAsU','baseUrl','source','RANGER_TEST_USERNAME'];_0x31ea=function(){return _0x1fdb87;};return _0x31ea();}import{existsSync}from'fs';import _0x2ef18f from'inquirer';import{ApiError,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';function _0x90ec(_0x5c3367,_0x4657be){_0x5c3367=_0x5c3367-0x179;const _0x31ea13=_0x31ea();let _0x90ec95=_0x31ea13[_0x5c3367];return _0x90ec95;}import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x407a90){const _0x46c40a=_0x90ec,_0x359525={'bXTSE':function(_0x1bec13){return _0x1bec13();},'mNYUg':'No\x20active\x20profile.\x20Run:\x20ranger\x20profile\x20use\x20<profile-name>','iiIiF':function(_0x41be36,_0x551416){return _0x41be36 instanceof _0x551416;},'itAqx':function(_0x183fb7,_0x3e72c8){return _0x183fb7===_0x3e72c8;},'UfIHw':function(_0x2e59bc,_0x25a691){return _0x2e59bc+_0x25a691;},'ZufgA':_0x46c40a(0x184),'PKbud':_0x46c40a(0x199),'sjyjy':'cloud','KiSCu':'local','xlRWA':function(_0x25bc82,_0x2f2306){return _0x25bc82===_0x2f2306;},'RSuDf':function(_0x14d8f6,_0x3906ae,_0x2a3022){return _0x14d8f6(_0x3906ae,_0x2a3022);},'ChSNp':function(_0x332fdc,_0x4a59d1){return _0x332fdc(_0x4a59d1);},'lDqSp':function(_0x1681c2,_0x40024e){return _0x1681c2(_0x40024e);},'VzbZl':function(_0x1efc5b,_0x48fa35){return _0x1efc5b&&_0x48fa35;}},_0xb000e7=_0x407a90[_0x46c40a(0x187)];let _0x291353=_0x407a90['profile']??await _0x359525['bXTSE'](readActiveProfileName),_0x5793f3=null;if(!_0x291353&&process['env'][_0x46c40a(0x182)]){const _0x231506=await resolveAdHocProfile();_0x231506&&(_0x291353=_0x231506['name'],_0x5793f3=_0x231506['profile']);}if(!_0x291353)try{const _0x813980=await listCloudProfiles();if(_0x813980[_0x46c40a(0x195)]===0x1){const _0x44d926=_0x813980[0x0];_0x291353=_0x44d926[_0x46c40a(0x196)],console[_0x46c40a(0x17e)]('\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20'+_0x44d926[_0x46c40a(0x196)]),console['log']('\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)');}}catch{}if(!_0x291353)throw new Error(_0x359525['mNYUg']);const _0x14647f=getEnvDir(_0x291353),_0x99cfef=existsSync(_0x14647f);let _0x3d3680=_0x5793f3,_0x641ea0=![];if(!_0x3d3680)try{_0x3d3680=await fetchCloudProfile(_0x291353);if(!_0x3d3680)_0x641ea0=!![];}catch(_0x5dd504){_0x359525['iiIiF'](_0x5dd504,ApiError)&&_0x359525[_0x46c40a(0x192)](_0x5dd504['status'],0x194)&&(_0x641ea0=!![]);}if(_0xb000e7&&_0x641ea0&&!_0x99cfef&&!_0x3d3680)throw new Error(_0x359525['UfIHw']('Profile\x20\x22'+_0xb000e7+_0x46c40a(0x183),_0x359525['ZufgA'])+'`ranger\x20profile\x20add`\x20to\x20create\x20one.');if(_0x3d3680&&_0x99cfef){let _0x4fbb28=!![];if(isInteractive()){const {source:_0x3eca20}=await _0x2ef18f['prompt']([{'type':_0x359525['PKbud'],'name':_0x46c40a(0x181),'message':'Profile\x20\x22'+_0x291353+'\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','choices':[{'name':_0x46c40a(0x18e),'value':_0x359525[_0x46c40a(0x179)]},{'name':'Local\x20profile','value':_0x359525['KiSCu']}],'default':'cloud'}]);_0x4fbb28=_0x359525[_0x46c40a(0x17d)](_0x3eca20,_0x359525['sjyjy']);}if(!_0x4fbb28)_0x3d3680=null;}const _0x2f49f3=_0x359525['RSuDf'](readProfileOverrides,process[_0x46c40a(0x1a2)](),_0x291353);let _0x59bf25=null,_0x3d0358,_0x4abdde,_0x501bd0,_0x54cc7d,_0x314313=null,_0x520cdc;const _0x4d7eef=expandOverrides(_0x2f49f3);if(_0x3d3680){_0x59bf25=_0x3d3680;const _0x42fa53=_0x3d3680['settings']??{},_0x6da096=mergeCloudProfileSettings(_0x42fa53,_0x2f49f3??undefined),_0x1be686={..._0x3d3680,'settings':_0x6da096},_0x177174=process[_0x46c40a(0x1a1)]['RANGER_SESSION_STATE_PATH'];if(_0x177174){if(!_0x359525['ChSNp'](existsSync,_0x177174))throw new Error('RANGER_SESSION_STATE_PATH='+_0x177174+_0x46c40a(0x185));_0x3d0358=_0x177174,_0x4abdde=resolveEnvVars(_0x6da096),_0x501bd0=_0x359525[_0x46c40a(0x17b)](Boolean,_0x4abdde[_0x46c40a(0x19f)]),_0x314313={'baseUrl':expandString(_0x42fa53['baseUrl']),'startPath':_0x359525['ChSNp'](expandString,_0x42fa53[_0x46c40a(0x19e)])};}else{const _0x21ee51=await resolveCloudProfileSession(_0x1be686);_0x3d0358=_0x21ee51['authPath'],_0x4abdde=resolveEnvVars(_0x6da096),_0x501bd0=Boolean(_0x4abdde['cdpEndpoint']),_0x314313={'baseUrl':_0x359525[_0x46c40a(0x18f)](expandString,_0x42fa53['baseUrl']),'startPath':_0x359525[_0x46c40a(0x18f)](expandString,_0x42fa53[_0x46c40a(0x19e)])},_0x520cdc=_0x21ee51[_0x46c40a(0x186)]?.[_0x46c40a(0x18b)]?.[0x0];}}else{if(!_0x99cfef)throw new Error(_0x46c40a(0x19d)+_0x291353+_0x46c40a(0x18d)+_0x291353);const _0x20a8a9=await loadSettings(_0x291353);_0x4abdde=_0x359525[_0x46c40a(0x17b)](resolveEnvVars,_0x20a8a9),_0x501bd0=Boolean(_0x4abdde['cdpEndpoint']),_0x54cc7d=_0x4abdde[_0x46c40a(0x180)];}const _0x534889=readUrlEnvVars(),_0x1b27de=_0x359525[_0x46c40a(0x17b)](resolveProfileUrl,{'flagBaseUrl':_0x407a90['baseUrl'],'flagStartPath':_0x407a90['startPath'],'envBaseUrl':_0x534889['envBaseUrl'],'envStartPath':_0x534889['envStartPath'],'localSettingsBaseUrl':_0x54cc7d,'projectOverrides':_0x4d7eef,'cloudSettings':_0x314313,'authEnvironmentDomain':_0x520cdc}),_0x5a5aa4=_0x1b27de[_0x46c40a(0x188)]??_0x1b27de[_0x46c40a(0x180)];if(_0x359525['VzbZl'](!_0x5a5aa4,!_0x501bd0))throw new Error(_0x46c40a(0x18c)+_0x291353+_0x46c40a(0x19b)+_0x291353+_0x46c40a(0x1a0));return{'activeProfile':_0x291353,'resolvedCloudProfile':_0x59bf25,'cloudAuthPath':_0x3d0358,'resolvedSettings':_0x4abdde,'isCdpMode':_0x501bd0,'url':_0x5a5aa4,'startPath':_0x1b27de[_0x46c40a(0x19e)]};}function expandString(_0x413447){const _0xf4c132=_0x90ec,_0xc545bf={'JgjdR':_0xf4c132(0x17c)};if(typeof _0x413447!==_0xc545bf['JgjdR'])return _0x413447;return resolveEnvVars(_0x413447);}function expandOverrides(_0x1a6adc){const _0x2538cd=_0x90ec,_0x22bbdb={'Zmkoc':_0x2538cd(0x17c),'HeVOE':function(_0x4e94dd,_0x3df118){return _0x4e94dd===_0x3df118;},'wzywv':function(_0x326de7,_0x2fca6e){return _0x326de7(_0x2fca6e);}};if(!_0x1a6adc)return _0x1a6adc;const _0x1345db={..._0x1a6adc};return typeof _0x1345db['baseUrl']===_0x22bbdb[_0x2538cd(0x198)]&&(_0x1345db['baseUrl']=resolveEnvVars(_0x1345db['baseUrl'])),_0x22bbdb[_0x2538cd(0x197)](typeof _0x1345db[_0x2538cd(0x19e)],_0x22bbdb['Zmkoc'])&&(_0x1345db['startPath']=_0x22bbdb['wzywv'](resolveEnvVars,_0x1345db['startPath'])),_0x1345db;}
1
+ (function(_0x360218,_0x54468f){const _0xcae696=_0x4c91,_0x1b3bdd=_0x360218();while(!![]){try{const _0x4442af=parseInt(_0xcae696(0x1a4))/0x1*(parseInt(_0xcae696(0x1be))/0x2)+-parseInt(_0xcae696(0x199))/0x3*(-parseInt(_0xcae696(0x1ba))/0x4)+parseInt(_0xcae696(0x1bc))/0x5*(parseInt(_0xcae696(0x1bd))/0x6)+-parseInt(_0xcae696(0x197))/0x7+parseInt(_0xcae696(0x190))/0x8*(-parseInt(_0xcae696(0x19d))/0x9)+-parseInt(_0xcae696(0x19e))/0xa*(-parseInt(_0xcae696(0x1a7))/0xb)+parseInt(_0xcae696(0x1b0))/0xc*(-parseInt(_0xcae696(0x194))/0xd);if(_0x4442af===_0x54468f)break;else _0x1b3bdd['push'](_0x1b3bdd['shift']());}catch(_0x37f643){_0x1b3bdd['push'](_0x1b3bdd['shift']());}}}(_0x463d,0xc5b47));import{existsSync}from'fs';import _0x2541cc from'inquirer';import{ApiError,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive}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(_0x39e030){const _0x2d105b=_0x4c91,_0x46fd8c={'HXPnk':function(_0x2a14f4){return _0x2a14f4();},'TmPyr':function(_0x5017b4){return _0x5017b4();},'RHSFh':function(_0x31877c,_0x15f73f){return _0x31877c+_0x15f73f;},'APyDM':function(_0x272688,_0x16f691){return _0x272688+_0x16f691;},'eOugj':function(_0x5f5834,_0x402a34){return _0x5f5834+_0x402a34;},'gUGeT':_0x2d105b(0x1a2),'NMMer':'\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','aplsX':function(_0x2e9a75,_0x52d9ff){return _0x2e9a75(_0x52d9ff);},'lNtdP':function(_0x166574,_0x1658ed){return _0x166574(_0x1658ed);},'gtATF':function(_0x439e35,_0x3b19a8){return _0x439e35===_0x3b19a8;},'jClza':function(_0x3087fb,_0xa8b4f9){return _0x3087fb&&_0xa8b4f9;},'rlTlc':_0x2d105b(0x1bb),'TSLWN':_0x2d105b(0x1a3),'PHlya':function(_0x94b9e2,_0x4be792){return _0x94b9e2&&_0x4be792;},'iUUpW':_0x2d105b(0x196),'oBBqO':_0x2d105b(0x1ae),'QONSM':'Cloud\x20profile\x20(recommended)','mNXLG':'local','dYIAc':_0x2d105b(0x186),'EnzFM':function(_0x155b4a,_0x1cb6d4){return _0x155b4a===_0x1cb6d4;},'bPCHo':function(_0x1a94fc,_0xb14f3b,_0x40bfd5){return _0x1a94fc(_0xb14f3b,_0x40bfd5);},'xnTjT':function(_0x4b45d0,_0x3c01c5){return _0x4b45d0??_0x3c01c5;},'lHsjs':function(_0x5724d8,_0x1ec7ac){return _0x5724d8(_0x1ec7ac);},'RFlqR':function(_0x4adbe1,_0x489ed7){return _0x4adbe1(_0x489ed7);},'KVoTc':function(_0x42331d,_0x1a70d6){return _0x42331d(_0x1a70d6);},'MrpOi':function(_0x43cf2c,_0x502c25){return _0x43cf2c(_0x502c25);},'IrqYi':function(_0xac23a2,_0x2df10b){return _0xac23a2(_0x2df10b);},'iaGVU':function(_0x581b2b,_0x386c08){return _0x581b2b(_0x386c08);}},_0xb31100=_0x39e030['profile'];let _0x267222=_0x39e030[_0x2d105b(0x1b2)]??await readActiveProfileName(),_0x3ae5ed=null;if(!_0x267222&&process[_0x2d105b(0x18f)][_0x2d105b(0x1b9)]){const _0xee716d=await _0x46fd8c['HXPnk'](resolveAdHocProfile);_0xee716d&&(_0x267222=_0xee716d['name'],_0x3ae5ed=_0xee716d[_0x2d105b(0x1b2)]);}if(!_0x267222)try{const _0x39f407=await _0x46fd8c['TmPyr'](listCloudProfiles);if(_0x39f407['length']===0x1){const _0x3b895c=_0x39f407[0x0];_0x267222=_0x3b895c[_0x2d105b(0x18e)],console['log'](_0x2d105b(0x19c)+_0x3b895c['name']),console['log']('\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)');}}catch{}if(!_0x267222)throw new Error(_0x46fd8c[_0x2d105b(0x1a8)](_0x46fd8c[_0x2d105b(0x1ac)](_0x46fd8c['eOugj']('Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a',_0x46fd8c[_0x2d105b(0x19a)])+_0x46fd8c['NMMer'],'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a'),'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.'));const _0x5018aa=_0x46fd8c[_0x2d105b(0x195)](getEnvDir,_0x267222),_0x277051=_0x46fd8c['lNtdP'](existsSync,_0x5018aa);let _0x26da96=_0x3ae5ed,_0x1c4c3e=![];if(!_0x26da96)try{_0x26da96=await fetchCloudProfile(_0x267222);if(!_0x26da96)_0x1c4c3e=!![];}catch(_0x612d35){_0x612d35 instanceof ApiError&&_0x46fd8c[_0x2d105b(0x193)](_0x612d35['status'],0x194)&&(_0x1c4c3e=!![]);}if(_0x46fd8c['jClza'](_0xb31100,_0x1c4c3e)&&!_0x277051&&!_0x26da96)throw new Error(_0x46fd8c['RHSFh']('Profile\x20\x22'+_0xb31100+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a'+_0x46fd8c[_0x2d105b(0x1a6)],_0x46fd8c['TSLWN']));if(_0x46fd8c[_0x2d105b(0x1af)](_0x26da96,_0x277051)){let _0x1fe343=!![];if(isInteractive()){const {source:_0x2b15d8}=await _0x2541cc[_0x2d105b(0x188)]([{'type':_0x46fd8c[_0x2d105b(0x1ab)],'name':_0x46fd8c['oBBqO'],'message':'Profile\x20\x22'+_0x267222+_0x2d105b(0x198),'choices':[{'name':_0x46fd8c['QONSM'],'value':_0x2d105b(0x186)},{'name':'Local\x20profile','value':_0x46fd8c['mNXLG']}],'default':_0x46fd8c['dYIAc']}]);_0x1fe343=_0x46fd8c['EnzFM'](_0x2b15d8,_0x46fd8c['dYIAc']);}if(!_0x1fe343)_0x26da96=null;}const _0x17a4f5=_0x46fd8c[_0x2d105b(0x1b1)](readProfileOverrides,process[_0x2d105b(0x1aa)](),_0x267222);let _0x559496=null,_0x38d800,_0x2b5ded,_0x1d9c0b,_0x452782,_0x9bb705=null,_0x164ecb;const _0x4cef36=_0x46fd8c['lNtdP'](expandOverrides,_0x17a4f5);if(_0x26da96){_0x559496=_0x26da96;const _0x4f3494=_0x26da96[_0x2d105b(0x1b7)]??{},_0xb2afc7=_0x46fd8c['bPCHo'](mergeCloudProfileSettings,_0x4f3494,_0x46fd8c['xnTjT'](_0x17a4f5,undefined)),_0x1c02b5={..._0x26da96,'settings':_0xb2afc7},_0x54bd63=process[_0x2d105b(0x18f)]['RANGER_SESSION_STATE_PATH'];if(_0x54bd63){const _0x2ca0e6=_0x2d105b(0x18b)[_0x2d105b(0x1b3)]('|');let _0x3f8cc4=0x0;while(!![]){switch(_0x2ca0e6[_0x3f8cc4++]){case'0':_0x38d800=_0x54bd63;continue;case'1':_0x2b5ded=_0x46fd8c['lHsjs'](resolveEnvVars,_0xb2afc7);continue;case'2':_0x1d9c0b=_0x46fd8c['lNtdP'](Boolean,_0x2b5ded[_0x2d105b(0x191)]);continue;case'3':if(!existsSync(_0x54bd63))throw new Error('RANGER_SESSION_STATE_PATH='+_0x54bd63+_0x2d105b(0x192));continue;case'4':_0x9bb705={'baseUrl':_0x46fd8c[_0x2d105b(0x18c)](expandString,_0x4f3494[_0x2d105b(0x1a9)]),'startPath':_0x46fd8c['RFlqR'](expandString,_0x4f3494['startPath'])};continue;}break;}}else{const _0x2137f2=await resolveCloudProfileSession(_0x1c02b5);_0x38d800=_0x2137f2[_0x2d105b(0x1b5)],_0x2b5ded=_0x46fd8c[_0x2d105b(0x19f)](resolveEnvVars,_0xb2afc7),_0x1d9c0b=_0x46fd8c[_0x2d105b(0x19b)](Boolean,_0x2b5ded['cdpEndpoint']),_0x9bb705={'baseUrl':_0x46fd8c['MrpOi'](expandString,_0x4f3494[_0x2d105b(0x1a9)]),'startPath':expandString(_0x4f3494['startPath'])},_0x164ecb=_0x2137f2['resolvedEnv']?.['domains']?.[0x0];}}else{if(!_0x277051)throw new Error(_0x2d105b(0x1ad)+_0x267222+'\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x267222);const _0x10ae5f=await loadSettings(_0x267222);_0x2b5ded=_0x46fd8c['IrqYi'](resolveEnvVars,_0x10ae5f),_0x1d9c0b=_0x46fd8c[_0x2d105b(0x1a1)](Boolean,_0x2b5ded[_0x2d105b(0x191)]),_0x452782=_0x2b5ded[_0x2d105b(0x1a9)];}const _0x46b3e2=readUrlEnvVars(),_0x4e242b=_0x46fd8c[_0x2d105b(0x195)](resolveProfileUrl,{'flagBaseUrl':_0x39e030['baseUrl'],'flagStartPath':_0x39e030['startPath'],'envBaseUrl':_0x46b3e2['envBaseUrl'],'envStartPath':_0x46b3e2[_0x2d105b(0x1b8)],'localSettingsBaseUrl':_0x452782,'projectOverrides':_0x4cef36,'cloudSettings':_0x9bb705,'authEnvironmentDomain':_0x164ecb}),_0x260585=_0x4e242b[_0x2d105b(0x18a)]??_0x4e242b['baseUrl'];if(!_0x260585&&!_0x1d9c0b)throw new Error(_0x2d105b(0x18d)+_0x267222+_0x2d105b(0x1b6)+_0x267222+_0x2d105b(0x1a0));return{'activeProfile':_0x267222,'resolvedCloudProfile':_0x559496,'cloudAuthPath':_0x38d800,'resolvedSettings':_0x2b5ded,'isCdpMode':_0x1d9c0b,'url':_0x260585,'startPath':_0x4e242b[_0x2d105b(0x189)]};}function expandString(_0x1eb351){const _0x300acc=_0x4c91,_0x57ccdf={'CzPok':_0x300acc(0x1a5),'neUKG':function(_0x2f3101,_0xef66d0){return _0x2f3101(_0xef66d0);}};if(typeof _0x1eb351!==_0x57ccdf[_0x300acc(0x187)])return _0x1eb351;return _0x57ccdf['neUKG'](resolveEnvVars,_0x1eb351);}function _0x463d(){const _0x29068a=['456NcKbRT','cdpEndpoint','\x20does\x20not\x20exist.','gtATF','4641lwfzRb','aplsX','list','7814408JDQgBL','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','28989wRCPSw','gUGeT','lNtdP','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','90612zrsnoA','3142270vFcWYY','KVoTc','\x20baseUrl\x20<url>','iaGVU','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','`ranger\x20profile\x20add`\x20to\x20create\x20one.','1XCqMhC','string','rlTlc','33LJMmDw','RHSFh','baseUrl','cwd','iUUpW','APyDM','Profile\x20\x22','source','PHlya','17652tBFlJx','bPCHo','profile','split','bwchC','authPath','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','settings','envStartPath','RANGER_TEST_USERNAME','352uQXhuq','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','15BRBTyX','1803528nKyTLW','660754JewYws','cloud','CzPok','prompt','startPath','url','3|0|1|2|4','lHsjs','No\x20baseUrl\x20configured\x20for\x20profile\x20\x22','name','env'];_0x463d=function(){return _0x29068a;};return _0x463d();}function _0x4c91(_0x1b212d,_0x905853){_0x1b212d=_0x1b212d-0x186;const _0x463d55=_0x463d();let _0x4c9132=_0x463d55[_0x1b212d];return _0x4c9132;}function expandOverrides(_0x4ea96f){const _0x155be4=_0x4c91,_0x5cafd2={'uULKY':function(_0x2793ef,_0x331122){return _0x2793ef===_0x331122;},'bwchC':_0x155be4(0x1a5)};if(!_0x4ea96f)return _0x4ea96f;const _0x42d189={..._0x4ea96f};return _0x5cafd2['uULKY'](typeof _0x42d189['baseUrl'],'string')&&(_0x42d189[_0x155be4(0x1a9)]=resolveEnvVars(_0x42d189['baseUrl'])),typeof _0x42d189['startPath']===_0x5cafd2[_0x155be4(0x1b4)]&&(_0x42d189[_0x155be4(0x189)]=resolveEnvVars(_0x42d189['startPath'])),_0x42d189;}
@@ -1 +1 @@
1
- const _0x14e171=_0x14c6;function _0x34b0(){const _0x110df4=['18JOvGkv','6925368FldKoJ','startPath','localSettingsBaseUrl','1336987HEVrJJ','projectOverrides','KWHUZ','2dyeLQr','5462765dMJPBo','startsWith','flagStartPath','cloudSettings','3866590AQhGCf','slice','3103530dstNaY','116moiZOF','RANGER_BASE_URL','pLhLF','string','5MqAEGE','flagBaseUrl','65589YAIyIb','17410870QUCbiN','baseUrl','Bgshm','https://','env','endsWith'];_0x34b0=function(){return _0x110df4;};return _0x34b0();}(function(_0x4fdc6e,_0x5bc0ae){const _0x5103a8=_0x14c6,_0x105e25=_0x4fdc6e();while(!![]){try{const _0x5b8d1f=-parseInt(_0x5103a8(0x1db))/0x1*(parseInt(_0x5103a8(0x1de))/0x2)+parseInt(_0x5103a8(0x1d0))/0x3*(-parseInt(_0x5103a8(0x1e6))/0x4)+parseInt(_0x5103a8(0x1ea))/0x5*(parseInt(_0x5103a8(0x1e5))/0x6)+-parseInt(_0x5103a8(0x1e3))/0x7+parseInt(_0x5103a8(0x1d8))/0x8*(parseInt(_0x5103a8(0x1d7))/0x9)+parseInt(_0x5103a8(0x1d1))/0xa+-parseInt(_0x5103a8(0x1df))/0xb;if(_0x5b8d1f===_0x5bc0ae)break;else _0x105e25['push'](_0x105e25['shift']());}catch(_0x505429){_0x105e25['push'](_0x105e25['shift']());}}}(_0x34b0,0xecbd5));function firstDefined(..._0x4b63f7){const _0x2bc54c=_0x14c6,_0x6ec9b7={'pLhLF':function(_0x5e3852,_0x127d15){return _0x5e3852!==_0x127d15;}};for(const _0x28235a of _0x4b63f7){if(_0x6ec9b7[_0x2bc54c(0x1e8)](_0x28235a,undefined)&&_0x28235a!==null&&_0x6ec9b7[_0x2bc54c(0x1e8)](_0x28235a,''))return _0x28235a;}return undefined;}function normalizeAuthEnvironmentDomain(_0x5841c2){const _0x210ba0=_0x14c6;if(!_0x5841c2)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i['test'](_0x5841c2))return _0x5841c2;return _0x210ba0(0x1d4)+_0x5841c2;}export function resolveBaseUrl(_0x97d94c){const _0x30f81f=_0x14c6,_0x1cf6fa={'tfZSn':function(_0x23ba00,_0x20410c,_0x583a84,_0x3bd4cd,_0x4f00ba,_0x5a0fa5,_0x33cc10){return _0x23ba00(_0x20410c,_0x583a84,_0x3bd4cd,_0x4f00ba,_0x5a0fa5,_0x33cc10);},'KWHUZ':function(_0xc9b613,_0x38d180){return _0xc9b613===_0x38d180;},'GCuXv':function(_0x555425,_0x594cb0){return _0x555425(_0x594cb0);}},_0x2d9fa0=_0x97d94c[_0x30f81f(0x1dc)]?.['baseUrl'],_0x2171dd=_0x2d9fa0!==null;return _0x1cf6fa['tfZSn'](firstDefined,_0x97d94c[_0x30f81f(0x1cf)],_0x97d94c['envBaseUrl'],_0x97d94c[_0x30f81f(0x1da)],_0x1cf6fa[_0x30f81f(0x1dd)](typeof _0x2d9fa0,'string')?_0x2d9fa0:undefined,_0x2171dd?_0x97d94c[_0x30f81f(0x1e2)]?.[_0x30f81f(0x1d2)]:undefined,_0x2171dd?_0x1cf6fa['GCuXv'](normalizeAuthEnvironmentDomain,_0x97d94c['authEnvironmentDomain']):undefined);}export function resolveStartPath(_0x3c71fa){const _0x149b28=_0x14c6,_0x3b6dfd=_0x3c71fa[_0x149b28(0x1dc)]?.['startPath'],_0x47ea05=_0x3b6dfd!==null;return firstDefined(_0x3c71fa[_0x149b28(0x1e1)],_0x3c71fa['envStartPath'],typeof _0x3b6dfd===_0x149b28(0x1e9)?_0x3b6dfd:undefined,_0x47ea05?_0x3c71fa[_0x149b28(0x1e2)]?.[_0x149b28(0x1d9)]:undefined);}export function joinBaseAndPath(_0x547863,_0x46d39b){const _0x472501=_0x14c6,_0x4e1386={'Bgshm':function(_0xb41848,_0x53e5b9){return _0xb41848+_0x53e5b9;}};if(!_0x547863)return undefined;if(!_0x46d39b)return _0x547863;const _0x5a959d=_0x547863[_0x472501(0x1d6)]('/')?_0x547863[_0x472501(0x1e4)](0x0,-0x1):_0x547863,_0x41040b=_0x46d39b[_0x472501(0x1e0)]('/')?_0x46d39b:_0x4e1386[_0x472501(0x1d3)]('/',_0x46d39b);return _0x4e1386[_0x472501(0x1d3)](_0x5a959d,_0x41040b);}function _0x14c6(_0x45fe77,_0x9a3101){_0x45fe77=_0x45fe77-0x1cf;const _0x34b01d=_0x34b0();let _0x14c6af=_0x34b01d[_0x45fe77];return _0x14c6af;}export function resolveProfileUrl(_0x23343e){const _0xd75bf0={'zrQPI':function(_0x5c18f7,_0x21dfd9,_0x4ce780){return _0x5c18f7(_0x21dfd9,_0x4ce780);}},_0x566e57=resolveBaseUrl(_0x23343e),_0x429914=resolveStartPath(_0x23343e);return{'baseUrl':_0x566e57,'startPath':_0x429914,'url':_0xd75bf0['zrQPI'](joinBaseAndPath,_0x566e57,_0x429914)};}export function readUrlEnvVars(_0xb57ad9=process[_0x14e171(0x1d5)]){const _0x38797d=_0x14e171;return{'envBaseUrl':_0xb57ad9[_0x38797d(0x1e7)],'envStartPath':_0xb57ad9['RANGER_START_PATH']};}
1
+ (function(_0x37c1b8,_0x5aac93){const _0x2b2f82=_0x5e3c,_0x44f82e=_0x37c1b8();while(!![]){try{const _0x5ee423=parseInt(_0x2b2f82(0xbd))/0x1+parseInt(_0x2b2f82(0xcf))/0x2*(parseInt(_0x2b2f82(0xc2))/0x3)+parseInt(_0x2b2f82(0xc7))/0x4+parseInt(_0x2b2f82(0xd1))/0x5+-parseInt(_0x2b2f82(0xbb))/0x6*(-parseInt(_0x2b2f82(0xcc))/0x7)+-parseInt(_0x2b2f82(0xc5))/0x8+parseInt(_0x2b2f82(0xd0))/0x9*(-parseInt(_0x2b2f82(0xcb))/0xa);if(_0x5ee423===_0x5aac93)break;else _0x44f82e['push'](_0x44f82e['shift']());}catch(_0x16803e){_0x44f82e['push'](_0x44f82e['shift']());}}}(_0x3cbc,0x1e9e7));function firstDefined(..._0x2b0263){const _0x595b10={'sODXk':function(_0x53e999,_0x541c82){return _0x53e999!==_0x541c82;}};for(const _0x14c7a2 of _0x2b0263){if(_0x595b10['sODXk'](_0x14c7a2,undefined)&&_0x595b10['sODXk'](_0x14c7a2,null)&&_0x595b10['sODXk'](_0x14c7a2,''))return _0x14c7a2;}return undefined;}function normalizeAuthEnvironmentDomain(_0x20eaba){const _0x11ace5=_0x5e3c;if(!_0x20eaba)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i['test'](_0x20eaba))return _0x20eaba;return _0x11ace5(0xc6)+_0x20eaba;}export function resolveBaseUrl(_0x5c6bff){const _0xe3c864=_0x5e3c,_0x55acfa={'iFLBH':_0xe3c864(0xbe),'BNUKg':function(_0x5ed7c1,_0xd0c9aa){return _0x5ed7c1===_0xd0c9aa;},'yMqzE':'string'},_0x4d0cac=_0x5c6bff[_0xe3c864(0xc4)],_0x41f530=!!_0x4d0cac&&_0x55acfa['iFLBH']in _0x4d0cac,_0x48d1e1=_0x4d0cac?.['baseUrl'],_0x4c38ae=!(_0x41f530&&_0x55acfa[_0xe3c864(0xca)](_0x48d1e1,null));return firstDefined(_0x5c6bff[_0xe3c864(0xc0)],_0x5c6bff['envBaseUrl'],_0x5c6bff[_0xe3c864(0xbf)],typeof _0x48d1e1===_0x55acfa[_0xe3c864(0xba)]?_0x48d1e1:undefined,_0x4c38ae?_0x5c6bff[_0xe3c864(0xc3)]?.['baseUrl']:undefined,_0x4c38ae?normalizeAuthEnvironmentDomain(_0x5c6bff[_0xe3c864(0xc1)]):undefined);}export function resolveStartPath(_0xba749b){const _0x3873f4=_0x5e3c,_0x4c47d9={'vOJFQ':function(_0x5ac38d,_0x27ed09){return _0x5ac38d===_0x27ed09;}},_0x49c0fa=_0xba749b['projectOverrides'],_0x3cffb9=!!_0x49c0fa&&_0x3873f4(0xc8)in _0x49c0fa,_0x5103c5=_0x49c0fa?.[_0x3873f4(0xc8)],_0x127fa5=!(_0x3cffb9&&_0x5103c5===null);return firstDefined(_0xba749b['flagStartPath'],_0xba749b[_0x3873f4(0xce)],_0x4c47d9['vOJFQ'](typeof _0x5103c5,'string')?_0x5103c5:undefined,_0x127fa5?_0xba749b['cloudSettings']?.['startPath']:undefined);}export function joinBaseAndPath(_0x544ddd,_0x285254){const _0x3546a8=_0x5e3c,_0x12eb68={'uYgTm':function(_0x411bf8,_0xbbf75a){return _0x411bf8+_0xbbf75a;}};if(!_0x544ddd)return undefined;if(!_0x285254)return _0x544ddd;const _0x254f51=_0x544ddd['endsWith']('/')?_0x544ddd['slice'](0x0,-0x1):_0x544ddd,_0x5c74c4=_0x285254[_0x3546a8(0xbc)]('/')?_0x285254:_0x12eb68['uYgTm']('/',_0x285254);return _0x254f51+_0x5c74c4;}function _0x3cbc(){const _0x44d709=['98104gWYPVr','startPath','RANGER_BASE_URL','BNUKg','210LUnNKv','560BhJYpY','RANGER_START_PATH','envStartPath','274Fucimt','243099gizbtR','818495LZwxgF','yMqzE','13722gcayEs','startsWith','243660RPFEZe','baseUrl','localSettingsBaseUrl','flagBaseUrl','authEnvironmentDomain','4821QQhfiJ','cloudSettings','projectOverrides','1138864LnSicg','https://'];_0x3cbc=function(){return _0x44d709;};return _0x3cbc();}export function resolveProfileUrl(_0x2b8420){const _0x4ca4f8={'UbtNy':function(_0xa59eb3,_0x663e7a){return _0xa59eb3(_0x663e7a);},'bEEMf':function(_0x3fdf49,_0x26edf3){return _0x3fdf49(_0x26edf3);},'dCjZP':function(_0x40af3d,_0x411bf9,_0x36437e){return _0x40af3d(_0x411bf9,_0x36437e);}},_0x461021=_0x4ca4f8['UbtNy'](resolveBaseUrl,_0x2b8420),_0x2e67bf=_0x4ca4f8['bEEMf'](resolveStartPath,_0x2b8420);return{'baseUrl':_0x461021,'startPath':_0x2e67bf,'url':_0x4ca4f8['dCjZP'](joinBaseAndPath,_0x461021,_0x2e67bf)};}function _0x5e3c(_0xefd84d,_0x3783fb){_0xefd84d=_0xefd84d-0xba;const _0x3cbc57=_0x3cbc();let _0x5e3ce6=_0x3cbc57[_0xefd84d];return _0x5e3ce6;}export function readUrlEnvVars(_0x3b1e80=process['env']){const _0x408d16=_0x5e3c;return{'envBaseUrl':_0x3b1e80[_0x408d16(0xc9)],'envStartPath':_0x3b1e80[_0x408d16(0xcd)]};}
@@ -1 +1 @@
1
- function _0x4fa6(_0x19560,_0x1fbb3e){_0x19560=_0x19560-0xb8;const _0x2b49e6=_0x2b49();let _0x4fa6cc=_0x2b49e6[_0x19560];return _0x4fa6cc;}(function(_0x214055,_0x11a777){const _0x14bcbf=_0x4fa6,_0x425a56=_0x214055();while(!![]){try{const _0x1ab52b=parseInt(_0x14bcbf(0xc6))/0x1+-parseInt(_0x14bcbf(0xc1))/0x2+parseInt(_0x14bcbf(0xbb))/0x3+parseInt(_0x14bcbf(0xbd))/0x4+parseInt(_0x14bcbf(0xb9))/0x5+-parseInt(_0x14bcbf(0xc4))/0x6*(-parseInt(_0x14bcbf(0xba))/0x7)+-parseInt(_0x14bcbf(0xc2))/0x8*(parseInt(_0x14bcbf(0xbc))/0x9);if(_0x1ab52b===_0x11a777)break;else _0x425a56['push'](_0x425a56['shift']());}catch(_0x159c24){_0x425a56['push'](_0x425a56['shift']());}}}(_0x2b49,0xc39b0));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x1df877,_0x29ebe3){const _0x348e29=_0x4fa6,_0x23121e={'qwwNu':function(_0x4ba9c3,_0x4293f2){return _0x4ba9c3<=_0x4293f2;},'NmyyT':function(_0x370161,_0x23bdfc){return _0x370161 instanceof _0x23bdfc;},'CVqnZ':function(_0x30355e,_0x1f796){return _0x30355e*_0x1f796;},'FsBnX':function(_0x2be357,_0x26b6bf){return _0x2be357+_0x26b6bf;}},_0x284bc3=_0x29ebe3?.[_0x348e29(0xc5)]??DEFAULT_MAX_RETRIES,_0x55dd83=_0x29ebe3?.[_0x348e29(0xb8)]??DEFAULT_BASE_DELAY_MS;let _0x1fe999;for(let _0xc0f441=0x0;_0x23121e[_0x348e29(0xc7)](_0xc0f441,_0x284bc3);_0xc0f441++){try{return await _0x1df877();}catch(_0x50f783){_0x1fe999=_0x23121e['NmyyT'](_0x50f783,Error)?_0x50f783:new Error(String(_0x50f783));if(_0xc0f441<_0x284bc3){const _0x53df2c=_0x23121e['CVqnZ'](_0x55dd83,Math['pow'](0x2,_0xc0f441));_0x29ebe3?.[_0x348e29(0xc0)]&&console['error'](_0x29ebe3['label']+_0x348e29(0xc3)+_0x23121e['FsBnX'](_0xc0f441,0x1)+'/'+_0x23121e[_0x348e29(0xbf)](_0x284bc3,0x1)+_0x348e29(0xbe)+_0x53df2c+'ms...'),await new Promise(_0x48d94=>setTimeout(_0x48d94,_0x53df2c));}}}throw _0x1fe999;}function _0x2b49(){const _0x28030f=['4543bruDqD','3801600ghVnOA','9768501sYDXbO','4044316LWjFMW','),\x20retrying\x20in\x20','FsBnX','label','2238270UNHXUd','16rJHtth','\x20failed\x20(attempt\x20','5034pvcbpb','maxRetries','762128mFjEok','qwwNu','baseDelayMs','2530975cNWGjA'];_0x2b49=function(){return _0x28030f;};return _0x2b49();}
1
+ (function(_0x1a5265,_0x143a89){const _0x4ed49b=_0x58a1,_0x4c987a=_0x1a5265();while(!![]){try{const _0x3e93bd=parseInt(_0x4ed49b(0x13d))/0x1*(-parseInt(_0x4ed49b(0x135))/0x2)+parseInt(_0x4ed49b(0x137))/0x3+-parseInt(_0x4ed49b(0x132))/0x4*(parseInt(_0x4ed49b(0x13c))/0x5)+parseInt(_0x4ed49b(0x136))/0x6+-parseInt(_0x4ed49b(0x13a))/0x7*(-parseInt(_0x4ed49b(0x13b))/0x8)+parseInt(_0x4ed49b(0x131))/0x9+-parseInt(_0x4ed49b(0x138))/0xa;if(_0x3e93bd===_0x143a89)break;else _0x4c987a['push'](_0x4c987a['shift']());}catch(_0x17b5fe){_0x4c987a['push'](_0x4c987a['shift']());}}}(_0xf4ee,0x2ed75));function _0x58a1(_0x3c5b03,_0x5a2478){_0x3c5b03=_0x3c5b03-0x131;const _0x58a16a=_0xf4ee();let _0x1c969e=_0x58a16a[_0x3c5b03];return _0x1c969e;}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0xf4ee(){const _0x20f597=['67VhYZae','ZqbNu','GhzVa','3214782Ycalgq','62428uZNEDy','LamuI','maxRetries','2810ddVjlR','1968036SpfcwM','596499SISPtP','8532970JBWXTL','),\x20retrying\x20in\x20','3073hnJGMU','4936wSZmOy','5wgzEqx'];_0xf4ee=function(){return _0x20f597;};return _0xf4ee();}export async function withRetry(_0x43a65c,_0xa1a2d){const _0x2a23a9=_0x58a1,_0xd2a11e={'ZqbNu':function(_0x1589bd,_0x3f26e6){return _0x1589bd<=_0x3f26e6;},'LamuI':function(_0x232e93){return _0x232e93();},'GhzVa':function(_0x2fe41a,_0x538c29){return _0x2fe41a+_0x538c29;}},_0x5e5e61=_0xa1a2d?.[_0x2a23a9(0x134)]??DEFAULT_MAX_RETRIES,_0x4eae5a=_0xa1a2d?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x52a4e4;for(let _0x29f04f=0x0;_0xd2a11e[_0x2a23a9(0x13e)](_0x29f04f,_0x5e5e61);_0x29f04f++){try{return await _0xd2a11e[_0x2a23a9(0x133)](_0x43a65c);}catch(_0xe52aac){_0x52a4e4=_0xe52aac instanceof Error?_0xe52aac:new Error(String(_0xe52aac));if(_0x29f04f<_0x5e5e61){const _0x554fda=_0x4eae5a*Math['pow'](0x2,_0x29f04f);_0xa1a2d?.['label']&&console['error'](_0xa1a2d['label']+'\x20failed\x20(attempt\x20'+(_0x29f04f+0x1)+'/'+_0xd2a11e[_0x2a23a9(0x13f)](_0x5e5e61,0x1)+_0x2a23a9(0x139)+_0x554fda+'ms...'),await new Promise(_0x4efcb9=>setTimeout(_0x4efcb9,_0x554fda));}}}throw _0x52a4e4;}
@@ -1 +1 @@
1
- function _0x511a(_0x387bf0,_0x2e6473){_0x387bf0=_0x387bf0-0x77;const _0x1122ee=_0x1122();let _0x511a64=_0x1122ee[_0x387bf0];return _0x511a64;}const _0x3bf0e8=_0x511a;(function(_0x298141,_0x58e235){const _0x21c0ad=_0x511a,_0x5f4a2e=_0x298141();while(!![]){try{const _0x5c6c9c=parseInt(_0x21c0ad(0x85))/0x1*(parseInt(_0x21c0ad(0x77))/0x2)+parseInt(_0x21c0ad(0x8d))/0x3+parseInt(_0x21c0ad(0x79))/0x4+-parseInt(_0x21c0ad(0x8c))/0x5+parseInt(_0x21c0ad(0x8e))/0x6*(parseInt(_0x21c0ad(0x9a))/0x7)+parseInt(_0x21c0ad(0x88))/0x8*(-parseInt(_0x21c0ad(0x9d))/0x9)+-parseInt(_0x21c0ad(0x95))/0xa;if(_0x5c6c9c===_0x58e235)break;else _0x5f4a2e['push'](_0x5f4a2e['shift']());}catch(_0x51d636){_0x5f4a2e['push'](_0x5f4a2e['shift']());}}}(_0x1122,0x40717));import*as _0x19135e from'fs';import*as _0x411f5b from'path';import*as _0x47ea4b from'os';import{execSync}from'child_process';const CACHE_FILE=_0x411f5b[_0x3bf0e8(0x7c)](_0x47ea4b[_0x3bf0e8(0xa5)](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x1868ab=_0x3bf0e8,_0x28ffbf={'YDQhQ':_0x1868ab(0xa1),'UKZkl':function(_0x2fd413){return _0x2fd413();}};try{if(_0x19135e[_0x1868ab(0x80)](CACHE_FILE)){const _0x57ac9f=JSON['parse'](_0x19135e['readFileSync'](CACHE_FILE,_0x28ffbf['YDQhQ']));return{'version':0x3,'sessions':_0x57ac9f[_0x1868ab(0x89)]||{},'branches':_0x57ac9f['branches']||{},'lastEnabledSessionClearedAt':_0x57ac9f[_0x1868ab(0x7b)]};}}catch{}return _0x28ffbf[_0x1868ab(0x81)](createEmptyCache);}function saveCache(_0x4199ad){const _0x17a874=_0x3bf0e8;try{const _0x1d4f84=_0x411f5b['dirname'](CACHE_FILE);!_0x19135e['existsSync'](_0x1d4f84)&&_0x19135e['mkdirSync'](_0x1d4f84,{'recursive':!![]}),_0x19135e[_0x17a874(0x8a)](CACHE_FILE,JSON['stringify'](_0x4199ad,null,0x2));}catch{}}export function getCurrentBranch(){const _0x2f5fe5=_0x3bf0e8,_0x43a2a8={'fsqLi':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','SPSyL':'HEAD'};try{const _0x35e773=execSync(_0x43a2a8[_0x2f5fe5(0xa0)],{'encoding':'utf-8','stdio':[_0x2f5fe5(0x9f),'pipe',_0x2f5fe5(0x9f)]})['trim']();if(!_0x35e773||_0x35e773===_0x43a2a8[_0x2f5fe5(0x8b)])return null;return _0x35e773;}catch{return null;}}export function enableBranch(_0x39eca8){const _0x49a520={'SSWlV':function(_0x57c528){return _0x57c528();}},_0x1f87de=_0x49a520['SSWlV'](loadCache);_0x1f87de['branches'][_0x39eca8]=!![],saveCache(_0x1f87de);}export function disableBranch(_0x14479d){const _0x37af0f={'krqmR':function(_0x984cb0){return _0x984cb0();}},_0x256716=_0x37af0f['krqmR'](loadCache);delete _0x256716['branches'][_0x14479d],saveCache(_0x256716);}export function isBranchEnabled(_0x384a04){const _0x5b06d4=_0x3bf0e8,_0x370ef4=loadCache();return _0x370ef4[_0x5b06d4(0x86)][_0x384a04]===!![];}function getOrCreateSession(_0xa6f069,_0x489c13){const _0xb0b6ac=_0x3bf0e8;return!_0xa6f069[_0xb0b6ac(0x89)][_0x489c13]&&(_0xa6f069['sessions'][_0x489c13]={}),_0xa6f069['sessions'][_0x489c13];}export function enableSession(_0x584f26){const _0x997f50=_0x3bf0e8,_0x4740b0={'bZWms':function(_0x2e436b,_0x208adb,_0x6ea5b0){return _0x2e436b(_0x208adb,_0x6ea5b0);},'bupwX':function(_0x8a21e,_0x39a929){return _0x8a21e!==_0x39a929;},'lofyQ':'master','tzqqp':function(_0xde518f,_0x507390){return _0xde518f(_0x507390);}},_0xbd648a=loadCache(),_0x4f8299=_0x4740b0[_0x997f50(0x7f)](getOrCreateSession,_0xbd648a,_0x584f26);_0x4f8299[_0x997f50(0x96)]=!![];const _0x5eccda=getCurrentBranch();_0x5eccda&&_0x5eccda!==_0x997f50(0x78)&&_0x4740b0[_0x997f50(0xa9)](_0x5eccda,_0x4740b0[_0x997f50(0x93)])&&(_0xbd648a['branches'][_0x5eccda]=!![],_0x4f8299[_0x997f50(0x9e)]=_0x5eccda),_0x4740b0[_0x997f50(0xa2)](saveCache,_0xbd648a);}export function isSessionEnabled(_0x155e41){const _0x4de3e6=_0x3bf0e8,_0x5f0c56={'wnLZN':function(_0x395f50){return _0x395f50();},'YaWYp':function(_0x275d01){return _0x275d01();},'lROfm':function(_0x18b43a,_0x188d4c){return _0x18b43a===_0x188d4c;},'KcSQP':function(_0x309110,_0x1060d6){return _0x309110===_0x1060d6;},'RHCwt':function(_0x34343b,_0x4fbc9d){return _0x34343b===_0x4fbc9d;}},_0x31b280=_0x5f0c56[_0x4de3e6(0x9b)](loadCache),_0x3c9c00=_0x5f0c56[_0x4de3e6(0x87)](getCurrentBranch);if(!_0x3c9c00||_0x5f0c56['lROfm'](_0x3c9c00,_0x4de3e6(0x78))||_0x3c9c00==='master')return _0x5f0c56['KcSQP'](_0x31b280['sessions'][_0x155e41]?.[_0x4de3e6(0x96)],!![]);const _0x593216=_0x31b280['branches'][_0x3c9c00]===!![],_0x231e55=_0x5f0c56[_0x4de3e6(0x9c)](_0x31b280[_0x4de3e6(0x89)][_0x155e41]?.[_0x4de3e6(0x96)],!![]);return _0x593216||_0x231e55;}function _0x1122(){const _0x1b5bb6=['bupwX','244sNklSh','main','1426336jTeETD','zSILM','lastEnabledSessionClearedAt','join','now','lEJLy','bZWms','existsSync','UKZkl','registeredAt','featureId','KRrEI','1727VSJMlC','branches','YaWYp','1368YZnWEU','sessions','writeFileSync','SPSyL','1605645qbjsMU','558000yVzSwe','14526sryiCl','kctES','PIKTo','lastPlanReminderAt','prompted','lofyQ','lastStopReminderAt','1542490EaRGjr','enabled','aFwTu','master','toISOString','21evGXCW','wnLZN','RHCwt','1116jAgTyY','currentBranch','pipe','fsqLi','utf-8','tzqqp','dCclz','BuJzc','homedir','RhRBU','BGFqV','yOrol'];_0x1122=function(){return _0x1b5bb6;};return _0x1122();}export function disableSession(_0x9ae89f){const _0x393540={'EfvQV':function(_0x104415){return _0x104415();},'DJGCt':function(_0x3b5c78,_0x318c3c){return _0x3b5c78(_0x318c3c);}},_0x562d2a=_0x393540['EfvQV'](loadCache),_0x4c19b4=getOrCreateSession(_0x562d2a,_0x9ae89f);_0x4c19b4['enabled']=![],_0x393540['DJGCt'](saveCache,_0x562d2a);}export function updateBranchTracking(_0x8f9fe2){const _0x2646b5=_0x3bf0e8,_0x16b29e={'PKnUC':function(_0xf6fc6b){return _0xf6fc6b();},'YFKeB':_0x2646b5(0x78),'OqxPT':function(_0x2d1c12,_0x545e23){return _0x2d1c12===_0x545e23;},'PIKTo':function(_0x1ae19a,_0x2c90bc){return _0x1ae19a!==_0x2c90bc;},'gFAHm':function(_0x598522,_0x2b8e00){return _0x598522(_0x2b8e00);}},_0x1e5da9=loadCache(),_0x185c77=_0x1e5da9[_0x2646b5(0x89)][_0x8f9fe2];if(!_0x185c77?.['enabled'])return;const _0x189282=_0x16b29e['PKnUC'](getCurrentBranch);if(!_0x189282||_0x189282===_0x16b29e['YFKeB']||_0x16b29e['OqxPT'](_0x189282,_0x2646b5(0x98)))return;_0x16b29e[_0x2646b5(0x90)](_0x185c77['currentBranch'],_0x189282)&&(_0x1e5da9[_0x2646b5(0x86)][_0x189282]=!![],_0x185c77['currentBranch']=_0x189282,_0x16b29e['gFAHm'](saveCache,_0x1e5da9));}export function initBranchTracking(_0xcaebfb){const _0x36c5f6=_0x3bf0e8,_0x3ff5c8={'Qlmin':function(_0x30ec8f){return _0x30ec8f();},'CUdHT':function(_0x15fe04,_0x3862bd){return _0x15fe04===_0x3862bd;},'MPvyi':function(_0x5c5a1c,_0x4dd4f8,_0x5d6ac4){return _0x5c5a1c(_0x4dd4f8,_0x5d6ac4);}},_0x42053e=_0x3ff5c8['Qlmin'](loadCache),_0x5722e9=getCurrentBranch();if(!_0x5722e9||_0x5722e9==='main'||_0x3ff5c8['CUdHT'](_0x5722e9,_0x36c5f6(0x98)))return;if(_0x42053e['branches'][_0x5722e9]===!![]){const _0x468153=_0x3ff5c8['MPvyi'](getOrCreateSession,_0x42053e,_0xcaebfb);_0x468153['enabled']=!![],_0x468153['currentBranch']=_0x5722e9,saveCache(_0x42053e);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x5d64a9){const _0x54a2ce={'ypxqp':function(_0x4cac13,_0x4422d1){return _0x4cac13(_0x4422d1);}},_0x145fc7=loadCache(),_0x260d2f=_0x145fc7['sessions'][_0x5d64a9];_0x260d2f?.['enabled']&&(_0x145fc7['lastEnabledSessionClearedAt']=Date['now'](),_0x54a2ce['ypxqp'](saveCache,_0x145fc7));}export function shouldAutoEnableAfterClear(_0x2d4801){const _0xc9affd=_0x3bf0e8,_0x5fc7a8={'lEJLy':function(_0x40f6dc,_0x2be296){return _0x40f6dc!==_0x2be296;},'yOrol':function(_0x47d7ff){return _0x47d7ff();}};if(_0x5fc7a8[_0xc9affd(0x7e)](_0x2d4801,'clear'))return![];const _0x1580d9=_0x5fc7a8[_0xc9affd(0xa8)](loadCache),_0x3e88fb=_0x1580d9[_0xc9affd(0x7b)];if(!_0x3e88fb)return![];const _0x4d450a=Date[_0xc9affd(0x7d)]()-_0x3e88fb;return _0x4d450a<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x34dd61){const _0x3f0fb4=_0x3bf0e8,_0x212cfa={'TyiYF':function(_0x56667e){return _0x56667e();},'BuJzc':function(_0x50e1f7,_0x4081eb){return _0x50e1f7!==_0x4081eb;},'aFwTu':function(_0x432dfb,_0x3139d3){return _0x432dfb(_0x3139d3);}},_0x4060ae=_0x212cfa['TyiYF'](loadCache),_0x4542a7=getOrCreateSession(_0x4060ae,_0x34dd61);_0x4542a7['enabled']=!![];const _0x2a978a=getCurrentBranch();_0x2a978a&&_0x212cfa['BuJzc'](_0x2a978a,'main')&&_0x212cfa[_0x3f0fb4(0xa4)](_0x2a978a,'master')&&(_0x4542a7['currentBranch']=_0x2a978a),delete _0x4060ae['lastEnabledSessionClearedAt'],_0x212cfa[_0x3f0fb4(0x97)](saveCache,_0x4060ae);}export function registerSession(_0x2a0aea,_0x5359bb){const _0x14877a=_0x3bf0e8,_0x5b1667={'QfNER':function(_0x5ee64f,_0x542079){return _0x5ee64f(_0x542079);}},_0x2f13ad=loadCache(),_0x21a7c9=getOrCreateSession(_0x2f13ad,_0x2a0aea);_0x21a7c9['featureId']=_0x5359bb,_0x21a7c9['registeredAt']=new Date()[_0x14877a(0x99)](),_0x5b1667['QfNER'](saveCache,_0x2f13ad);}export function getSessionEntry(_0x14dc3b){const _0x220201=_0x3bf0e8,_0x3a1158={'BGFqV':function(_0x56c992){return _0x56c992();}},_0x2a83bd=_0x3a1158[_0x220201(0xa7)](loadCache),_0xa67cff=_0x2a83bd[_0x220201(0x89)][_0x14dc3b];if(_0xa67cff?.[_0x220201(0x83)]&&_0xa67cff?.[_0x220201(0x82)])return{'featureId':_0xa67cff['featureId'],'registeredAt':_0xa67cff['registeredAt']};return null;}export function unregisterSession(_0x3bc59d){const _0x17d142=_0x3bf0e8,_0x401e42={'zSILM':function(_0x4a9d70,_0xe7e7a2){return _0x4a9d70(_0xe7e7a2);}},_0x1a931c=loadCache(),_0x5c4ba8=_0x1a931c['sessions'][_0x3bc59d];_0x5c4ba8&&(delete _0x5c4ba8[_0x17d142(0x83)],delete _0x5c4ba8['registeredAt'],_0x401e42[_0x17d142(0x7a)](saveCache,_0x1a931c));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x53d860){const _0x1b5d5b=_0x3bf0e8,_0x2440ff={'rcaLq':function(_0x1c736a){return _0x1c736a();},'RhRBU':function(_0x2e2766,_0x3bd423,_0x6730a8){return _0x2e2766(_0x3bd423,_0x6730a8);},'jszyT':function(_0x4ac289,_0x6ef26e){return _0x4ac289-_0x6ef26e;}},_0x1d4d6e=_0x2440ff['rcaLq'](loadCache),_0x270039=_0x2440ff[_0x1b5d5b(0xa6)](getOrCreateSession,_0x1d4d6e,_0x53d860),_0x4d9c1d=_0x270039['lastPlanReminderAt']||0x0,_0x580f69=Date[_0x1b5d5b(0x7d)]();if(_0x2440ff['jszyT'](_0x580f69,_0x4d9c1d)>=PLAN_REMINDER_INTERVAL_MS)return _0x270039[_0x1b5d5b(0x91)]=_0x580f69,saveCache(_0x1d4d6e),!![];return![];}export function shouldShowStopReminder(_0x545623){const _0x36b892=_0x3bf0e8,_0x20f507={'wWEJA':function(_0x29a4df){return _0x29a4df();},'KRrEI':function(_0x24ad12,_0x52de96){return _0x24ad12>=_0x52de96;},'rNdMV':function(_0x47c790,_0x4f85ae){return _0x47c790-_0x4f85ae;},'DufJC':function(_0xb8e412,_0x2ab443){return _0xb8e412(_0x2ab443);}},_0x455022=_0x20f507['wWEJA'](loadCache),_0x4d0474=getOrCreateSession(_0x455022,_0x545623),_0xbf534b=_0x4d0474['lastStopReminderAt']||0x0,_0x17f176=Date['now']();if(_0x20f507[_0x36b892(0x84)](_0x20f507['rNdMV'](_0x17f176,_0xbf534b),STOP_REMINDER_INTERVAL_MS))return _0x4d0474[_0x36b892(0x94)]=_0x17f176,_0x20f507['DufJC'](saveCache,_0x455022),!![];return![];}export function hasSessionBeenPrompted(_0x2112ab){const _0xb04a00=_0x3bf0e8,_0x25e1ba={'znkme':function(_0x19195a){return _0x19195a();}},_0x4ba72d=_0x25e1ba['znkme'](loadCache);return _0x4ba72d[_0xb04a00(0x89)][_0x2112ab]?.[_0xb04a00(0x92)]===!![];}export function markSessionPrompted(_0x2afbba){const _0x1ff7f2=_0x3bf0e8,_0x38253d={'mojDV':function(_0x1e6675){return _0x1e6675();},'dCclz':function(_0x40dff9,_0x327c87,_0x385196){return _0x40dff9(_0x327c87,_0x385196);},'kctES':function(_0x54b1cc,_0x8cdb11){return _0x54b1cc(_0x8cdb11);}},_0x3dad6b=_0x38253d['mojDV'](loadCache),_0x3d4302=_0x38253d[_0x1ff7f2(0xa3)](getOrCreateSession,_0x3dad6b,_0x2afbba);_0x3d4302['prompted']=!![],_0x38253d[_0x1ff7f2(0x8f)](saveCache,_0x3dad6b);}export function getCacheFile(){return CACHE_FILE;}
1
+ const _0x3a4521=_0x5c99;(function(_0x1b10e8,_0x5d48bf){const _0x5ae006=_0x5c99,_0x2c6acb=_0x1b10e8();while(!![]){try{const _0x79a96b=-parseInt(_0x5ae006(0x15d))/0x1+parseInt(_0x5ae006(0x156))/0x2+parseInt(_0x5ae006(0x151))/0x3+-parseInt(_0x5ae006(0x13e))/0x4+-parseInt(_0x5ae006(0x14f))/0x5+parseInt(_0x5ae006(0x135))/0x6*(-parseInt(_0x5ae006(0x150))/0x7)+-parseInt(_0x5ae006(0x15a))/0x8*(-parseInt(_0x5ae006(0x144))/0x9);if(_0x79a96b===_0x5d48bf)break;else _0x2c6acb['push'](_0x2c6acb['shift']());}catch(_0xbee450){_0x2c6acb['push'](_0x2c6acb['shift']());}}}(_0x5963,0x7a47f));import*as _0x3dd4d1 from'fs';function _0x5c99(_0x47d66e,_0x47e8b7){_0x47d66e=_0x47d66e-0x12d;const _0x59632f=_0x5963();let _0x5c9962=_0x59632f[_0x47d66e];return _0x5c9962;}import*as _0x43474c from'path';import*as _0x23f34f from'os';import{execSync}from'child_process';const CACHE_FILE=_0x43474c[_0x3a4521(0x15c)](_0x23f34f['homedir'](),'.claude',_0x3a4521(0x14d));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x255879=_0x3a4521,_0x27272d={'fBiZU':_0x255879(0x12f)};try{if(_0x3dd4d1[_0x255879(0x143)](CACHE_FILE)){const _0x4c9157=JSON['parse'](_0x3dd4d1[_0x255879(0x155)](CACHE_FILE,_0x27272d['fBiZU']));return{'version':0x3,'sessions':_0x4c9157['sessions']||{},'branches':_0x4c9157['branches']||{},'lastEnabledSessionClearedAt':_0x4c9157[_0x255879(0x15e)]};}}catch{}return createEmptyCache();}function saveCache(_0x208019){const _0x2e1ad8=_0x3a4521;try{const _0x341308=_0x43474c[_0x2e1ad8(0x13c)](CACHE_FILE);!_0x3dd4d1[_0x2e1ad8(0x143)](_0x341308)&&_0x3dd4d1['mkdirSync'](_0x341308,{'recursive':!![]}),_0x3dd4d1['writeFileSync'](CACHE_FILE,JSON[_0x2e1ad8(0x13a)](_0x208019,null,0x2));}catch{}}export function getCurrentBranch(){const _0x4919bc=_0x3a4521,_0x5d7734={'jFuAC':function(_0x3a23ef,_0x29387b,_0x3aec9f){return _0x3a23ef(_0x29387b,_0x3aec9f);},'bAkzB':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','AJjKl':'utf-8','dXVOz':'pipe','HLovj':'HEAD'};try{const _0x4baa98=_0x5d7734[_0x4919bc(0x138)](execSync,_0x5d7734['bAkzB'],{'encoding':_0x5d7734['AJjKl'],'stdio':[_0x5d7734['dXVOz'],'pipe',_0x5d7734['dXVOz']]})[_0x4919bc(0x158)]();if(!_0x4baa98||_0x4baa98===_0x5d7734['HLovj'])return null;return _0x4baa98;}catch{return null;}}export function enableBranch(_0x20b308){const _0x2dfd66=_0x3a4521,_0x56d6fe={'zhIPo':function(_0x1a58eb){return _0x1a58eb();}},_0x783361=_0x56d6fe[_0x2dfd66(0x15b)](loadCache);_0x783361[_0x2dfd66(0x142)][_0x20b308]=!![],saveCache(_0x783361);}export function disableBranch(_0x420d20){const _0x292e14=_0x3a4521,_0x3bc775={'vQIpU':function(_0x36b60d){return _0x36b60d();},'ySiuv':function(_0x5aa453,_0xb285d0){return _0x5aa453(_0xb285d0);}},_0x77d292=_0x3bc775[_0x292e14(0x157)](loadCache);delete _0x77d292[_0x292e14(0x142)][_0x420d20],_0x3bc775['ySiuv'](saveCache,_0x77d292);}export function isBranchEnabled(_0x1deb45){const _0x167571=_0x3a4521,_0x55560d={'OxvHx':function(_0xa29259){return _0xa29259();},'sPPDA':function(_0x21ebd7,_0x3c0a38){return _0x21ebd7===_0x3c0a38;}},_0x4a5198=_0x55560d[_0x167571(0x140)](loadCache);return _0x55560d[_0x167571(0x133)](_0x4a5198['branches'][_0x1deb45],!![]);}function getOrCreateSession(_0x573f68,_0x351090){const _0x544653=_0x3a4521;return!_0x573f68[_0x544653(0x14e)][_0x351090]&&(_0x573f68['sessions'][_0x351090]={}),_0x573f68['sessions'][_0x351090];}export function enableSession(_0x53bc47){const _0x1e55f2=_0x3a4521,_0x2a0c23={'Qafxh':function(_0x8e4b30){return _0x8e4b30();},'PMHdn':function(_0x65e126,_0x5d8ff9,_0x29364c){return _0x65e126(_0x5d8ff9,_0x29364c);},'njhcJ':function(_0x50b315,_0x3e61b6){return _0x50b315!==_0x3e61b6;},'JYGSF':'main','wfQjs':function(_0x3f2b02,_0x1a51b6){return _0x3f2b02(_0x1a51b6);}},_0x5e9940=_0x2a0c23['Qafxh'](loadCache),_0x1b3350=_0x2a0c23[_0x1e55f2(0x13b)](getOrCreateSession,_0x5e9940,_0x53bc47);_0x1b3350[_0x1e55f2(0x13d)]=!![];const _0x1a8004=getCurrentBranch();_0x1a8004&&_0x2a0c23['njhcJ'](_0x1a8004,_0x2a0c23['JYGSF'])&&_0x1a8004!==_0x1e55f2(0x149)&&(_0x5e9940['branches'][_0x1a8004]=!![],_0x1b3350['currentBranch']=_0x1a8004),_0x2a0c23['wfQjs'](saveCache,_0x5e9940);}export function isSessionEnabled(_0x3078a6){const _0x2e7b15=_0x3a4521,_0x39b70f={'CQXFt':function(_0x61d789,_0x5381fa){return _0x61d789===_0x5381fa;},'VZTHF':_0x2e7b15(0x132),'eYILT':_0x2e7b15(0x149),'tDaSl':function(_0x67bd4a,_0x10445b){return _0x67bd4a===_0x10445b;}},_0x1b5583=loadCache(),_0x3a5c94=getCurrentBranch();if(!_0x3a5c94||_0x39b70f['CQXFt'](_0x3a5c94,_0x39b70f['VZTHF'])||_0x3a5c94===_0x39b70f[_0x2e7b15(0x147)])return _0x1b5583[_0x2e7b15(0x14e)][_0x3078a6]?.['enabled']===!![];const _0x230988=_0x1b5583['branches'][_0x3a5c94]===!![],_0x4f275e=_0x39b70f[_0x2e7b15(0x131)](_0x1b5583[_0x2e7b15(0x14e)][_0x3078a6]?.['enabled'],!![]);return _0x230988||_0x4f275e;}function _0x5963(){const _0xba7266=['lastStopReminderAt','readFileSync','1076464SmBiOV','vQIpU','trim','PVgBi','32PBwWnq','zhIPo','join','539703dUyszW','lastEnabledSessionClearedAt','currentBranch','EFAHP','utf-8','eZkBu','tDaSl','main','sPPDA','eShNO','6ASDsCE','toISOString','prompted','jFuAC','now','stringify','PMHdn','dirname','enabled','928204YoYPMx','QmkCS','OxvHx','hDElD','branches','existsSync','3997152OJoBOU','SUZOG','featureId','eYILT','Paumv','master','cIjEo','inOcu','dfczh','.ranger_cache.json','sessions','1895170ltwjJt','5473783CLWgfx','356628oJMRfl','jEoNl','registeredAt'];_0x5963=function(){return _0xba7266;};return _0x5963();}export function disableSession(_0x2a9d33){const _0x34ae8d={'JRKFk':function(_0x1eb80f,_0x4cb756,_0x29b0a2){return _0x1eb80f(_0x4cb756,_0x29b0a2);}},_0x3d40c2=loadCache(),_0x21d92c=_0x34ae8d['JRKFk'](getOrCreateSession,_0x3d40c2,_0x2a9d33);_0x21d92c['enabled']=![],saveCache(_0x3d40c2);}export function updateBranchTracking(_0x9782e2){const _0x184d6c=_0x3a4521,_0x9b29b4={'eShNO':function(_0x2bb754){return _0x2bb754();},'dfczh':_0x184d6c(0x132),'CGMfQ':'master','KTgSe':function(_0xf67df6,_0xd01eb4){return _0xf67df6(_0xd01eb4);}},_0xb54c7d=_0x9b29b4[_0x184d6c(0x134)](loadCache),_0x336193=_0xb54c7d['sessions'][_0x9782e2];if(!_0x336193?.[_0x184d6c(0x13d)])return;const _0x9c4dad=_0x9b29b4[_0x184d6c(0x134)](getCurrentBranch);if(!_0x9c4dad||_0x9c4dad===_0x9b29b4[_0x184d6c(0x14c)]||_0x9c4dad===_0x9b29b4['CGMfQ'])return;_0x336193['currentBranch']!==_0x9c4dad&&(_0xb54c7d[_0x184d6c(0x142)][_0x9c4dad]=!![],_0x336193['currentBranch']=_0x9c4dad,_0x9b29b4['KTgSe'](saveCache,_0xb54c7d));}export function initBranchTracking(_0x3f201a){const _0x262c8b=_0x3a4521,_0x45ba49={'xXlVU':function(_0x4c63b7){return _0x4c63b7();},'Paumv':_0x262c8b(0x132),'ByXxC':function(_0x48e001,_0x2045b0,_0x2d37f){return _0x48e001(_0x2045b0,_0x2d37f);},'etQnd':function(_0xd74a6d,_0x5bb61a){return _0xd74a6d(_0x5bb61a);}},_0x1119d2=_0x45ba49['xXlVU'](loadCache),_0x12a771=getCurrentBranch();if(!_0x12a771||_0x12a771===_0x45ba49[_0x262c8b(0x148)]||_0x12a771==='master')return;if(_0x1119d2['branches'][_0x12a771]===!![]){const _0x290a23=_0x45ba49['ByXxC'](getOrCreateSession,_0x1119d2,_0x3f201a);_0x290a23['enabled']=!![],_0x290a23[_0x262c8b(0x12d)]=_0x12a771,_0x45ba49['etQnd'](saveCache,_0x1119d2);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x2db734){const _0x46ee94=_0x3a4521,_0x452d2e={'SUZOG':function(_0x55d0bb){return _0x55d0bb();}},_0x1dfe5f=_0x452d2e[_0x46ee94(0x145)](loadCache),_0x48b7ad=_0x1dfe5f['sessions'][_0x2db734];_0x48b7ad?.['enabled']&&(_0x1dfe5f['lastEnabledSessionClearedAt']=Date['now'](),saveCache(_0x1dfe5f));}export function shouldAutoEnableAfterClear(_0x144cee){const _0x479c2a=_0x3a4521,_0x56ce7f={'jEoNl':function(_0x33cd89,_0x9cfa45){return _0x33cd89!==_0x9cfa45;},'QmkCS':function(_0x132705,_0x2ab72f){return _0x132705<=_0x2ab72f;}};if(_0x56ce7f[_0x479c2a(0x152)](_0x144cee,'clear'))return![];const _0x360dc8=loadCache(),_0x4a0187=_0x360dc8['lastEnabledSessionClearedAt'];if(!_0x4a0187)return![];const _0xd35af4=Date[_0x479c2a(0x139)]()-_0x4a0187;return _0x56ce7f[_0x479c2a(0x13f)](_0xd35af4,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x298843){const _0x2ac60b=_0x3a4521,_0x5164c4={'inOcu':function(_0x2b8d30){return _0x2b8d30();},'cIjEo':function(_0x58964b){return _0x58964b();},'EFAHP':'main','MEAKK':function(_0xb297f9,_0x54fa36){return _0xb297f9!==_0x54fa36;},'PVgBi':function(_0x2524af,_0x3fa7f2){return _0x2524af(_0x3fa7f2);}},_0x56dca7=_0x5164c4[_0x2ac60b(0x14b)](loadCache),_0x249789=getOrCreateSession(_0x56dca7,_0x298843);_0x249789['enabled']=!![];const _0xe911f3=_0x5164c4[_0x2ac60b(0x14a)](getCurrentBranch);_0xe911f3&&_0xe911f3!==_0x5164c4[_0x2ac60b(0x12e)]&&_0x5164c4['MEAKK'](_0xe911f3,_0x2ac60b(0x149))&&(_0x249789['currentBranch']=_0xe911f3),delete _0x56dca7[_0x2ac60b(0x15e)],_0x5164c4[_0x2ac60b(0x159)](saveCache,_0x56dca7);}export function registerSession(_0x53bc79,_0x279128){const _0xd29ede=_0x3a4521,_0x284de5={'wHgQz':function(_0x57162b){return _0x57162b();},'ssyoa':function(_0x15a14b,_0x4eeca3,_0xf58b26){return _0x15a14b(_0x4eeca3,_0xf58b26);}},_0x28df2a=_0x284de5['wHgQz'](loadCache),_0x32cf18=_0x284de5['ssyoa'](getOrCreateSession,_0x28df2a,_0x53bc79);_0x32cf18[_0xd29ede(0x146)]=_0x279128,_0x32cf18['registeredAt']=new Date()[_0xd29ede(0x136)](),saveCache(_0x28df2a);}export function getSessionEntry(_0x375beb){const _0x3fc058=_0x3a4521,_0x5c5ebc={'eccAf':function(_0x538a17){return _0x538a17();}},_0x440fba=_0x5c5ebc['eccAf'](loadCache),_0x437a40=_0x440fba[_0x3fc058(0x14e)][_0x375beb];if(_0x437a40?.['featureId']&&_0x437a40?.['registeredAt'])return{'featureId':_0x437a40['featureId'],'registeredAt':_0x437a40[_0x3fc058(0x153)]};return null;}export function unregisterSession(_0xf5f63a){const _0x5d4b11=loadCache(),_0x770c4b=_0x5d4b11['sessions'][_0xf5f63a];_0x770c4b&&(delete _0x770c4b['featureId'],delete _0x770c4b['registeredAt'],saveCache(_0x5d4b11));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x4b058f){const _0x21c774=_0x3a4521,_0x44981f={'Kjlkp':function(_0x35e3dc,_0x2a4a3c,_0x300caa){return _0x35e3dc(_0x2a4a3c,_0x300caa);},'hDElD':function(_0x35c024,_0x3f0e05){return _0x35c024>=_0x3f0e05;}},_0x269261=loadCache(),_0x5e0204=_0x44981f['Kjlkp'](getOrCreateSession,_0x269261,_0x4b058f),_0x5de60e=_0x5e0204['lastPlanReminderAt']||0x0,_0x4fa2a9=Date[_0x21c774(0x139)]();if(_0x44981f[_0x21c774(0x141)](_0x4fa2a9-_0x5de60e,PLAN_REMINDER_INTERVAL_MS))return _0x5e0204['lastPlanReminderAt']=_0x4fa2a9,saveCache(_0x269261),!![];return![];}export function shouldShowStopReminder(_0xdecd10){const _0x425ece=_0x3a4521,_0x286349={'UotJR':function(_0x3c0a3d){return _0x3c0a3d();},'nVqWk':function(_0x23bfda,_0x9a2e2c){return _0x23bfda>=_0x9a2e2c;},'qsDCQ':function(_0xb33f3e,_0x83ef77){return _0xb33f3e-_0x83ef77;}},_0x4311a8=_0x286349['UotJR'](loadCache),_0x1b8c9f=getOrCreateSession(_0x4311a8,_0xdecd10),_0x5d9e98=_0x1b8c9f[_0x425ece(0x154)]||0x0,_0x5c60f3=Date['now']();if(_0x286349['nVqWk'](_0x286349['qsDCQ'](_0x5c60f3,_0x5d9e98),STOP_REMINDER_INTERVAL_MS))return _0x1b8c9f[_0x425ece(0x154)]=_0x5c60f3,saveCache(_0x4311a8),!![];return![];}export function hasSessionBeenPrompted(_0xc8026b){const _0x5c7037=_0x3a4521,_0x574ae2={'eZkBu':function(_0x245428){return _0x245428();}},_0x3991bb=_0x574ae2[_0x5c7037(0x130)](loadCache);return _0x3991bb['sessions'][_0xc8026b]?.[_0x5c7037(0x137)]===!![];}export function markSessionPrompted(_0x37d061){const _0x23930b=loadCache(),_0x544fca=getOrCreateSession(_0x23930b,_0x37d061);_0x544fca['prompted']=!![],saveCache(_0x23930b);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- function _0x1a05(_0x130a44,_0x2ec7e2){_0x130a44=_0x130a44-0x18f;const _0x3cd617=_0x3cd6();let _0x1a05a1=_0x3cd617[_0x130a44];return _0x1a05a1;}const _0x39b7ee=_0x1a05;(function(_0x1530fa,_0x350436){const _0x3a1eda=_0x1a05,_0x5ce501=_0x1530fa();while(!![]){try{const _0x171960=-parseInt(_0x3a1eda(0x1b5))/0x1*(-parseInt(_0x3a1eda(0x19b))/0x2)+-parseInt(_0x3a1eda(0x1e7))/0x3*(-parseInt(_0x3a1eda(0x1b4))/0x4)+-parseInt(_0x3a1eda(0x193))/0x5+-parseInt(_0x3a1eda(0x192))/0x6*(-parseInt(_0x3a1eda(0x1ee))/0x7)+-parseInt(_0x3a1eda(0x191))/0x8+parseInt(_0x3a1eda(0x1c8))/0x9*(parseInt(_0x3a1eda(0x19a))/0xa)+parseInt(_0x3a1eda(0x1f2))/0xb*(parseInt(_0x3a1eda(0x1d6))/0xc);if(_0x171960===_0x350436)break;else _0x5ce501['push'](_0x5ce501['shift']());}catch(_0x5c3f73){_0x5ce501['push'](_0x5ce501['shift']());}}}(_0x3cd6,0xee610));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{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';function _0x3cd6(){const _0x288ed3=['object','launchOptions','EbbUr','--allow-running-insecure-content','now','args','ARZkq','fromEntries','9oQySUy','PJHuN','eEIHX','storageState','length','install','VGBOZ','string','catch','lflcx','xbugA','sfHWl','bQBMV','QGkhw','37512gnZZrE','safeMode','browser','omMyk','env','yPBOc','local','code','vision','vzmUr','cdpEndpoint','repeat','legacy','none','--disable-features=WebBluetooth','playwright-cli','ranger-config','6nsQIHn','userAgent','isArray','getuid','GQvvM','chromium','hgExt','252378iGwIpo','utf-8','DKfoF','.json','9031zOTTau','tempAuthPath','auth.json.enc','push','storageStatePath','11651440vzptcY','24qUifyE','9364935kIsReY','Rjhvw','rangerDir','filter','message','jpIty','headless','4708430QZKkPR','2GsSsYw','taJRt','auth.json','split','NTwNS','aRxxF','pLtHK','jSkrn','mKyum','diqDV','wQSkK','SOana','pxiOL','stringify','includes','file','-cli','Failed\x20to\x20decrypt\x20auth\x20state:\x20','join','location','setupHeader','stagehand','contextOptions','yePwN','configPath','129308AgPliC','1059658iZmOKx','entries','fmiMc','JPwIr','LDIkR','QVwmL','setupHeaders','--unsafely-treat-insecure-origin-as-secure=http://localhost','ENOENT','pkAna','path'];_0x3cd6=function(){return _0x288ed3;};return _0x3cd6();}import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x5aef8f,_0x58f2f0){const _0x3ea8c=_0x1a05,_0x305d42={'sfHWl':function(_0x118198,_0xe69a02,_0x1d7fc1,_0x2a25e7){return _0x118198(_0xe69a02,_0x1d7fc1,_0x2a25e7);},'pkAna':function(_0x51d94b,_0x3c455c,_0x1a3d33){return _0x51d94b(_0x3c455c,_0x1a3d33);},'DKfoF':'local','QzMUm':function(_0xddef59,_0x1a3dee){return _0xddef59(_0x1a3dee);},'UzJAR':function(_0x2bd3a7,_0x1bc0eb){return _0x2bd3a7(_0x1bc0eb);},'vzmUr':function(_0x395b3b,_0x2cdeab){return _0x395b3b!==_0x2cdeab;}},_0x37bf6d=_0x305d42[_0x3ea8c(0x1d3)](join,_0x58f2f0,'ci',_0x5aef8f),_0x195ac8=join(_0x58f2f0,_0x3ea8c(0x1dc),_0x5aef8f),_0x49be66=join(_0x58f2f0,_0x5aef8f),_0x274a42=_0x305d42[_0x3ea8c(0x1be)](join,_0x58f2f0,_0x305d42[_0x3ea8c(0x1f0)]),_0xcec4dc=join(_0x58f2f0,'ci');if(existsSync(_0x37bf6d))return _0x37bf6d;if(_0x305d42['QzMUm'](existsSync,_0x195ac8))return _0x195ac8;if(_0x305d42['UzJAR'](existsSync,_0x49be66)&&(_0x49be66!==_0x274a42&&_0x305d42[_0x3ea8c(0x1df)](_0x49be66,_0xcec4dc)?!![]:hasLegacyProfileFiles(_0x49be66)))return _0x49be66;return null;}export function getEnvDir(_0x4c35e9){const _0x39a72a=_0x1a05,_0x31cc39={'taJRt':function(_0x462dad){return _0x462dad();},'wQSkK':function(_0x5a10c2,_0x3ff611,_0x51552e){return _0x5a10c2(_0x3ff611,_0x51552e);},'yHREz':function(_0xd3d644){return _0xd3d644();},'pxiOL':function(_0x5ba088,_0x2eef30){return _0x5ba088!==_0x2eef30;}},_0x4f686a=_0x31cc39[_0x39a72a(0x19c)](getRangerDir),_0x3650c6=_0x31cc39[_0x39a72a(0x1a5)](findEnvInRoot,_0x4c35e9,_0x4f686a);if(_0x3650c6)return _0x3650c6;const _0x7a3f17=_0x31cc39['yHREz'](getRangerHomeDir);if(_0x31cc39[_0x39a72a(0x1a7)](_0x7a3f17,_0x4f686a)){const _0x5344bd=findEnvInRoot(_0x4c35e9,_0x7a3f17);if(_0x5344bd)return _0x5344bd;}return join(_0x4f686a,_0x39a72a(0x1dc),_0x4c35e9);}export function findExistingEnv(_0x143480,_0x5522c5){const _0x2a74be=_0x1a05,_0x4e6133={'HnugT':function(_0xd67845){return _0xd67845();},'aRxxF':_0x2a74be(0x1dc),'cnJjf':function(_0x267b46,_0x4f2830,_0x4f8c8c){return _0x267b46(_0x4f2830,_0x4f8c8c);},'LDIkR':function(_0x2946f1,_0x41dabf,_0x4c4d3d,_0x461400){return _0x2946f1(_0x41dabf,_0x4c4d3d,_0x461400);},'oIBFn':function(_0x447a2b,_0x2604b2){return _0x447a2b(_0x2604b2);},'PiQAq':_0x2a74be(0x1e2),'EOkNN':function(_0x17eda0,_0x30a2f9){return _0x17eda0===_0x30a2f9;}},_0x488752=_0x5522c5?.[_0x2a74be(0x195)],_0x129a7e=_0x488752?[_0x488752]:[_0x4e6133['HnugT'](getRangerDir),getRangerHomeDir()][_0x2a74be(0x196)]((_0x2a9237,_0xd24064,_0x9a3c38)=>_0x9a3c38['indexOf'](_0x2a9237)===_0xd24064),_0x49d173=_0x5522c5?.['locations']??['ci',_0x4e6133[_0x2a74be(0x1a0)],'legacy'];for(const _0x83cd29 of _0x129a7e){const _0x37f4c2=_0x4e6133['cnJjf'](join,_0x83cd29,_0x2a74be(0x1dc)),_0x18a5ae=join(_0x83cd29,'ci'),_0x3053dc=[{'location':'ci','path':join(_0x83cd29,'ci',_0x143480)},{'location':'local','path':_0x4e6133[_0x2a74be(0x1b9)](join,_0x83cd29,_0x4e6133['aRxxF'],_0x143480)},{'location':_0x2a74be(0x1e2),'path':join(_0x83cd29,_0x143480)}];for(const _0xe774e8 of _0x3053dc){if(_0x49d173['includes'](_0xe774e8['location'])&&_0x4e6133['oIBFn'](existsSync,_0xe774e8[_0x2a74be(0x1bf)])){if(_0xe774e8[_0x2a74be(0x1ae)]===_0x4e6133['PiQAq']&&(_0x4e6133['EOkNN'](_0xe774e8[_0x2a74be(0x1bf)],_0x37f4c2)||_0xe774e8[_0x2a74be(0x1bf)]===_0x18a5ae)&&!hasLegacyProfileFiles(_0xe774e8[_0x2a74be(0x1bf)]))continue;return{'path':_0xe774e8['path'],'location':_0xe774e8['location']};}}}return null;}function hasLegacyProfileFiles(_0x123338){const _0x23fb59=_0x1a05,_0x470fc3={'omMyk':function(_0x2fcd32,_0x176776){return _0x2fcd32(_0x176776);},'WwJgQ':'settings.json','VGBOZ':function(_0x114e3d,_0x4a71ab,_0xa959e3){return _0x114e3d(_0x4a71ab,_0xa959e3);}};return _0x470fc3[_0x23fb59(0x1d9)](existsSync,join(_0x123338,_0x470fc3['WwJgQ']))||_0x470fc3['omMyk'](existsSync,_0x470fc3[_0x23fb59(0x1ce)](join,_0x123338,_0x23fb59(0x19d)))||existsSync(join(_0x123338,_0x23fb59(0x1f4)));}export function isEnvCi(_0x371f7d){const _0x1bf09b=_0x1a05,_0x28290e={'sHjhJ':function(_0x27bc01){return _0x27bc01();},'KfRVA':function(_0x1034c1){return _0x1034c1();},'hgExt':function(_0x5794c3,_0x142b5c){return _0x5794c3!==_0x142b5c;},'mKyum':function(_0x4517b9,_0x21e8bf){return _0x4517b9(_0x21e8bf);},'mzsbO':function(_0x25308f,_0xf117de,_0x2893cf,_0x2a9b1f){return _0x25308f(_0xf117de,_0x2893cf,_0x2a9b1f);}};if(existsSync(join(_0x28290e['sHjhJ'](getRangerDir),'ci',_0x371f7d)))return!![];const _0x31a588=_0x28290e['KfRVA'](getRangerHomeDir);if(_0x28290e[_0x1bf09b(0x1ed)](_0x31a588,getRangerDir())&&_0x28290e[_0x1bf09b(0x1a3)](existsSync,_0x28290e['mzsbO'](join,_0x31a588,'ci',_0x371f7d)))return!![];return![];}export async function cleanupTempFiles(_0x326408){const _0x486397=_0x1a05,_0x2c54cf={'ARZkq':function(_0x1f8baa,_0x15f34e){return _0x1f8baa!==_0x15f34e;}},_0x2ea93a=[_0x326408[_0x486397(0x1f3)],_0x326408[_0x486397(0x1b3)]]['filter'](Boolean);await Promise['all'](_0x2ea93a['map'](_0x36c64f=>unlink(_0x36c64f)['catch'](_0x304042=>{const _0x1ddbab=_0x486397;_0x2c54cf[_0x1ddbab(0x1c6)](_0x304042[_0x1ddbab(0x1dd)],_0x1ddbab(0x1bd))&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x36c64f+':',_0x304042[_0x1ddbab(0x197)]);})));}export function getSettingsPath(_0x518a38){const _0x3de679=_0x1a05,_0x2abe5d={'diqDV':function(_0x2beea1,_0x293672,_0x274e6e){return _0x2beea1(_0x293672,_0x274e6e);},'CaNws':'settings.json'};return _0x2abe5d[_0x3de679(0x1a4)](join,getEnvDir(_0x518a38),_0x2abe5d['CaNws']);}export async function loadSettings(_0x4fc583){const _0x424659=_0x1a05,_0x52df72={'PJHuN':function(_0x1e0805,_0x52d075){return _0x1e0805(_0x52d075);},'lflcx':function(_0x24ff29,_0x143e37,_0xa7d8b9){return _0x24ff29(_0x143e37,_0xa7d8b9);},'fmiMc':_0x424659(0x1ef)},_0x5b6d15=getSettingsPath(_0x4fc583);if(!_0x52df72[_0x424659(0x1c9)](existsSync,_0x5b6d15))return{};try{const _0x28ffc1=await _0x52df72[_0x424659(0x1d1)](readFile,_0x5b6d15,_0x52df72[_0x424659(0x1b7)]);return JSON['parse'](_0x28ffc1);}catch{return{};}}export async function saveSettings(_0x50207c,_0x318650){const _0x5edbfd={'bZRxy':function(_0x2b517a,_0x1a3b9b){return _0x2b517a(_0x1a3b9b);},'EMPjN':function(_0x3def82,_0x38794b,_0x400aa6){return _0x3def82(_0x38794b,_0x400aa6);}},_0x36ca40=_0x5edbfd['bZRxy'](getSettingsPath,_0x50207c),_0x15162c=_0x5edbfd['bZRxy'](dirname,_0x36ca40);!existsSync(_0x15162c)&&await mkdir(_0x15162c,{'recursive':!![]}),await _0x5edbfd['EMPjN'](writeFile,_0x36ca40,JSON['stringify'](_0x318650,null,0x2));}export function resolveEnvVars(_0xe3943f){const _0x2ca684=_0x1a05,_0xe6dbe8={'SOana':_0x2ca684(0x1cf)};if(typeof _0xe3943f===_0xe6dbe8[_0x2ca684(0x1a6)])return _0xe3943f['replace'](/\$\{(\w+)\}/g,(_0x293aa1,_0x120929)=>{const _0xa90488=_0x2ca684,_0x1ac6e7=process[_0xa90488(0x1da)][_0x120929];if(_0x1ac6e7===undefined)throw new Error('Environment\x20variable\x20'+_0x120929+'\x20is\x20not\x20set');return _0x1ac6e7;});if(Array['isArray'](_0xe3943f))return _0xe3943f['map'](resolveEnvVars);if(_0xe3943f&&typeof _0xe3943f==='object')return Object[_0x2ca684(0x1c7)](Object[_0x2ca684(0x1b6)](_0xe3943f)['map'](([_0x442cc8,_0x47094b])=>[_0x442cc8,resolveEnvVars(_0x47094b)]));return _0xe3943f;}const isRecord=_0x273f03=>typeof _0x273f03==='object'&&_0x273f03!==null&&!Array[_0x39b7ee(0x1e9)](_0x273f03),asRecord=_0x429c96=>isRecord(_0x429c96)?_0x429c96:undefined,mergeHeaders=(_0x39b114,_0x3d87cd)=>{const _0x5e111d={'oApcJ':function(_0x34ffea,_0x5d8a03){return _0x34ffea??_0x5d8a03;}},_0x40ea79={..._0x5e111d['oApcJ'](_0x39b114,{}),..._0x3d87cd??{}};return Object['keys'](_0x40ea79)['length']?_0x40ea79:undefined;},SAFE_MODE_ARGS=[_0x39b7ee(0x1e4)],ALLOW_LOCALHOST_ARGS=['--disable-web-security',_0x39b7ee(0x1c3),_0x39b7ee(0x1bc),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x1192ee,_0x44064f={}){const _0x480f0c=_0x39b7ee,_0x1f9ea2={'CwUXB':function(_0x620c33,_0x5c4c0a){return _0x620c33(_0x5c4c0a);},'EbbUr':function(_0x253459,_0x3c407e){return _0x253459===_0x3c407e;},'xjofJ':'boolean','BuJbK':function(_0x214139,_0xbd8d05,_0x56ccdf){return _0x214139(_0xbd8d05,_0x56ccdf);}},_0x23a2e5=_0x1f9ea2['CwUXB'](asRecord,_0x1192ee[_0x480f0c(0x1d8)]),_0x4a6de3={...asRecord(_0x23a2e5?.[_0x480f0c(0x1c1)])??{}};_0x1f9ea2[_0x480f0c(0x1c2)](typeof _0x44064f[_0x480f0c(0x199)],_0x1f9ea2['xjofJ'])&&(_0x4a6de3[_0x480f0c(0x199)]=_0x44064f[_0x480f0c(0x199)]);if(_0x1192ee[_0x480f0c(0x1d7)]){const _0x517d1e=_0x4a6de3['args']??[],_0x4fdc08=SAFE_MODE_ARGS['filter'](_0x543055=>!_0x517d1e['includes'](_0x543055));_0x4a6de3['args']=[..._0x517d1e,..._0x4fdc08];}if(_0x1192ee['allowInsecureLocalhost']){const _0x48cfc9=_0x4a6de3['args']??[],_0x44d9a0=ALLOW_LOCALHOST_ARGS[_0x480f0c(0x196)](_0x206035=>!_0x48cfc9[_0x480f0c(0x1a9)](_0x206035));_0x4a6de3[_0x480f0c(0x1c5)]=[..._0x48cfc9,..._0x44d9a0];}const _0x405fc9={...asRecord(_0x23a2e5?.['contextOptions'])??{}};_0x405fc9['ignoreHTTPSErrors']=!![];_0x1f9ea2[_0x480f0c(0x1c2)](typeof _0x1192ee['userAgent'],_0x480f0c(0x1cf))&&(_0x405fc9['userAgent']=_0x1192ee[_0x480f0c(0x1e8)]);const _0x2da887=_0x1f9ea2['BuJbK'](mergeHeaders,asRecord(_0x405fc9['extraHTTPHeaders']),asRecord(_0x1192ee['headers']));return _0x2da887?_0x405fc9['extraHTTPHeaders']=_0x2da887:delete _0x405fc9['extraHTTPHeaders'],_0x44064f[_0x480f0c(0x190)]&&(_0x405fc9[_0x480f0c(0x1cb)]=_0x44064f['storageStatePath']),{'launchOptions':_0x4a6de3,'contextOptions':_0x405fc9};}async function resolveLocalAuthPath(_0x1b9e4c){const _0x3f61a6=_0x39b7ee,_0x408902={'GQvvM':function(_0x360ff1,_0x5a2cc0,_0x1f2a2f){return _0x360ff1(_0x5a2cc0,_0x1f2a2f);},'LDeMV':function(_0xfca42a,_0x5c164f,_0x5d670b){return _0xfca42a(_0x5c164f,_0x5d670b);},'Qbird':_0x3f61a6(0x19d),'eEIHX':function(_0x420d67,_0x288e50){return _0x420d67(_0x288e50);},'jpIty':function(_0x341733,_0x26c191,_0x38ae86){return _0x341733(_0x26c191,_0x38ae86);},'Rjhvw':function(_0x3cb191,_0x25d899){return _0x3cb191(_0x25d899);}},_0x5c7e85=_0x408902[_0x3f61a6(0x1eb)](join,_0x1b9e4c,_0x3f61a6(0x1f4)),_0x39a9ee=_0x408902['LDeMV'](join,_0x1b9e4c,_0x408902['Qbird']);if(_0x408902[_0x3f61a6(0x1ca)](existsSync,_0x5c7e85))try{const _0x35dc51=await getToken();if(!_0x35dc51)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x2467b9=await _0x408902['eEIHX'](readFile,_0x5c7e85),_0x383439=_0x408902[_0x3f61a6(0x198)](decrypt,_0x2467b9,_0x35dc51),_0x12a7c0=_0x408902['LDeMV'](join,tmpdir(),'ranger-auth-'+Date[_0x3f61a6(0x1c4)]()+_0x3f61a6(0x1f1));return await writeFile(_0x12a7c0,_0x383439),{'storageStatePath':_0x12a7c0,'tempAuthPath':_0x12a7c0};}catch(_0x15b923){const _0x2d469f=_0x15b923 instanceof Error?_0x15b923[_0x3f61a6(0x197)]:_0x408902[_0x3f61a6(0x194)](String,_0x15b923);throw new Error(_0x3f61a6(0x1ac)+_0x2d469f);}if(existsSync(_0x39a9ee))return{'storageStatePath':_0x39a9ee};return{};}export async function buildPlaywrightConfig(_0x49ee7f,_0x4a4d15,_0x24a9cd,_0x52351f,_0x141e0d){const _0x5ed78f=_0x39b7ee,_0x26bab6={'Jkvzx':function(_0x8cf906,_0xca0a5){return _0x8cf906(_0xca0a5);},'cIHQR':function(_0x516fc2,_0x21987e,_0x3a1c5a,_0x468ab5,_0xa7d57b,_0x4c3e97,_0x462f2b){return _0x516fc2(_0x21987e,_0x3a1c5a,_0x468ab5,_0xa7d57b,_0x4c3e97,_0x462f2b);},'tsgpV':'stagehand'};if(_0x141e0d)return buildPlaywrightConfigCore(_0x49ee7f,_0x141e0d,_0x4a4d15,_0x24a9cd,_0x52351f,_0x5ed78f(0x1b0));const {storageStatePath:_0x53c8c8,tempAuthPath:_0x59d178}=await resolveLocalAuthPath(_0x26bab6['Jkvzx'](getEnvDir,_0x4a4d15));try{const _0x5547a5=await _0x26bab6['cIHQR'](buildPlaywrightConfigCore,_0x49ee7f,_0x53c8c8,_0x4a4d15,_0x24a9cd,_0x52351f,_0x26bab6['tsgpV']);return{..._0x5547a5,'tempAuthPath':_0x59d178};}catch(_0xec0891){_0x59d178&&await unlink(_0x59d178)[_0x5ed78f(0x1d0)](()=>{});throw _0xec0891;}}export async function buildPlaywrightConfigCore(_0x11e57e,_0x273558,_0x27f6c1,_0x46a56e,_0x57927e,_0x399f6a=_0x39b7ee(0x1b0)){const _0x48bb85=_0x39b7ee,_0x4ba3a9={'yePwN':function(_0x19dd48,_0x66281e,_0x357e52){return _0x19dd48(_0x66281e,_0x357e52);},'PraPl':'clipboard-write','mstiT':function(_0x149504){return _0x149504();},'RYkZj':function(_0xd4be07){return _0xd4be07();},'dYMMr':function(_0x174eea,_0x7d9cb){return _0x174eea(_0x7d9cb);},'CQJfE':_0x48bb85(0x1e5),'pLtHK':_0x48bb85(0x1aa),'CNqdh':'core','QVwmL':'tabs','jSkrn':_0x48bb85(0x1cd),'YstGW':'pdf','QGkhw':function(_0x319d61,_0x11e6fa){return _0x319d61===_0x11e6fa;},'tyNLR':function(_0x5c1ade,_0x172c83,_0x5af28d){return _0x5c1ade(_0x172c83,_0x5af28d);},'tadgf':function(_0x58ac00,_0x27fb4f){return _0x58ac00===_0x27fb4f;},'yPBOc':_0x48bb85(0x1ab),'isiFA':function(_0x2f5633,_0x3db20e,_0x534508){return _0x2f5633(_0x3db20e,_0x534508);},'GAutM':function(_0x16a271,_0x1848c1,_0x5ec978){return _0x16a271(_0x1848c1,_0x5ec978);}},_0x2344e6=_0x46a56e||_0x4ba3a9['mstiT'](randomUUID),_0x3890c4=join(_0x4ba3a9['RYkZj'](getRangerDir),'sessions',_0x2344e6),_0x4d9658=_0x4ba3a9['dYMMr'](Boolean,_0x11e57e['cdpEndpoint']),_0x331f1b=_0x4d9658?{'browserName':'chromium','cdpEndpoint':_0x11e57e[_0x48bb85(0x1e0)]}:((()=>{const _0x52739f=_0x48bb85,{launchOptions:_0x5e04cd,contextOptions:_0x4f10d9}=_0x4ba3a9[_0x52739f(0x1b2)](buildBrowserOptionsFromSettings,_0x11e57e,{'headless':_0x57927e?![]:_0x11e57e[_0x52739f(0x199)]??!![],'storageStatePath':_0x273558});if(process[_0x52739f(0x1ea)]?.()===0x0){const _0x3d9061=['--no-sandbox','--disable-setuid-sandbox'],_0x5aea53=_0x5e04cd['args']??[],_0x5c3296=_0x3d9061['filter'](_0x4119f1=>!_0x5aea53['includes'](_0x4119f1));_0x5e04cd[_0x52739f(0x1c5)]=[..._0x5aea53,..._0x5c3296];}return{'isolated':!![],'browserName':_0x52739f(0x1ec),'launchOptions':_0x5e04cd,'contextOptions':{..._0x4f10d9,'permissions':['clipboard-read',_0x4ba3a9['PraPl']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x3cac7c=_0x399f6a===_0x4ba3a9['CQJfE']?{'browser':_0x331f1b,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x3890c4,'outputMode':_0x4ba3a9[_0x48bb85(0x1a1)],'codegen':_0x48bb85(0x1e3)}:{'name':_0x27f6c1,'browser':_0x331f1b,'capabilities':[_0x4ba3a9['CNqdh'],_0x4ba3a9[_0x48bb85(0x1ba)],_0x4ba3a9[_0x48bb85(0x1a2)],_0x4ba3a9['YstGW'],_0x48bb85(0x1de)],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x3890c4};if(!_0x4d9658){const _0x2a8bd3=_0x3cac7c['browser'],_0x52b39d=_0x2a8bd3[_0x48bb85(0x1b1)];if(_0x52b39d[_0x48bb85(0x1e8)]===undefined)delete _0x52b39d[_0x48bb85(0x1e8)];if(_0x4ba3a9[_0x48bb85(0x1d5)](_0x52b39d[_0x48bb85(0x1cb)],undefined))delete _0x52b39d['storageState'];}const _0x3ccc09=_0x4ba3a9['tyNLR'](join,tmpdir(),_0x48bb85(0x1e6));!existsSync(_0x3ccc09)&&await mkdir(_0x3ccc09,{'recursive':!![]});const _0x1d2db8=_0x4ba3a9['tadgf'](_0x399f6a,_0x48bb85(0x1e5))?_0x4ba3a9[_0x48bb85(0x1db)]:'',_0x387c8f=_0x4ba3a9['isiFA'](join,_0x3ccc09,_0x27f6c1+'-'+Date['now']()+_0x1d2db8+'.json');return await _0x4ba3a9['GAutM'](writeFile,_0x387c8f,JSON[_0x48bb85(0x1a8)](_0x3cac7c,null,0x2)),{'configPath':_0x387c8f};}export async function buildPlaywrightCliConfig(_0x328074,_0x2fcc10,_0x18caf8,_0x4207ca,_0x47dcfa){const _0x491669=_0x39b7ee,_0x58d4a9={'NTwNS':_0x491669(0x1e5),'jeIiv':function(_0x2aaa3c,_0x4dce98){return _0x2aaa3c(_0x4dce98);},'axqkP':function(_0x36a681,_0x48dbb8,_0x33d730,_0x57e281,_0x10bad4,_0x4926cb,_0x5e67ed){return _0x36a681(_0x48dbb8,_0x33d730,_0x57e281,_0x10bad4,_0x4926cb,_0x5e67ed);}};if(_0x47dcfa)return buildPlaywrightConfigCore(_0x328074,_0x47dcfa,_0x2fcc10,_0x18caf8,_0x4207ca,_0x58d4a9[_0x491669(0x19f)]);const {storageStatePath:_0x3abef4,tempAuthPath:_0x1e7595}=await _0x58d4a9['jeIiv'](resolveLocalAuthPath,getEnvDir(_0x2fcc10));try{const _0x35d5e3=await _0x58d4a9['axqkP'](buildPlaywrightConfigCore,_0x328074,_0x3abef4,_0x2fcc10,_0x18caf8,_0x4207ca,_0x58d4a9['NTwNS']);return{..._0x35d5e3,'tempAuthPath':_0x1e7595};}catch(_0x50b350){_0x1e7595&&await unlink(_0x1e7595)['catch'](()=>{});throw _0x50b350;}}export function getNestedValue(_0x177620,_0x5c2917){const _0x29775e=_0x39b7ee,_0xb66301={'XEAff':function(_0x2c46d8,_0xd5e021){return _0x2c46d8===_0xd5e021;},'PDgYj':_0x29775e(0x1c0)},_0x836e08=parseKeyPath(_0x5c2917);let _0x1d5949=_0x177620;for(const _0x2a702c of _0x836e08){if(_0xb66301['XEAff'](_0x1d5949,null)||_0x1d5949===undefined||typeof _0x1d5949!==_0xb66301['PDgYj'])return undefined;_0x1d5949=_0x1d5949[_0x2a702c];}return _0x1d5949;}export function setNestedValue(_0x2e4faa,_0x4d0537,_0x16025a){const _0x1bcbca=_0x39b7ee,_0x4ada84={'JPwIr':function(_0x535308,_0x3e8e79){return _0x535308-_0x3e8e79;},'qClTi':function(_0x2163b0,_0x21b3c8){return _0x2163b0 in _0x21b3c8;}},_0x15b669=parseKeyPath(_0x4d0537);let _0xeb6ffd=_0x2e4faa;for(let _0xf35c96=0x0;_0xf35c96<_0x4ada84[_0x1bcbca(0x1b8)](_0x15b669['length'],0x1);_0xf35c96++){const _0x48ced0=_0x15b669[_0xf35c96];(!_0x4ada84['qClTi'](_0x48ced0,_0xeb6ffd)||typeof _0xeb6ffd[_0x48ced0]!==_0x1bcbca(0x1c0))&&(_0xeb6ffd[_0x48ced0]={}),_0xeb6ffd=_0xeb6ffd[_0x48ced0];}_0xeb6ffd[_0x15b669[_0x15b669['length']-0x1]]=_0x16025a;}export function deleteNestedValue(_0x3402ab,_0x197416){const _0x4a406a=_0x39b7ee,_0x7a5956={'WwFEw':function(_0x40573e,_0x50a802){return _0x40573e(_0x50a802);},'oLxYh':function(_0x491cc5,_0x4b500a){return _0x491cc5<_0x4b500a;},'MYGxS':function(_0x798c68,_0xf66a5b){return _0x798c68-_0xf66a5b;},'xbugA':function(_0x228b49,_0x4c640c){return _0x228b49===_0x4c640c;},'HQCbe':_0x4a406a(0x1c0),'PsEzi':function(_0xabf4cc,_0x162a8a){return _0xabf4cc!==_0x162a8a;},'Spbge':function(_0x177e70,_0x12c3d9){return _0x177e70-_0x12c3d9;}},_0x1e7a29=_0x7a5956['WwFEw'](parseKeyPath,_0x197416);let _0x9bf7fc=_0x3402ab;for(let _0x1fc850=0x0;_0x7a5956['oLxYh'](_0x1fc850,_0x7a5956['MYGxS'](_0x1e7a29[_0x4a406a(0x1cc)],0x1));_0x1fc850++){if(_0x7a5956[_0x4a406a(0x1d2)](_0x9bf7fc,null)||_0x7a5956['xbugA'](_0x9bf7fc,undefined)||typeof _0x9bf7fc!==_0x7a5956['HQCbe'])return![];_0x9bf7fc=_0x9bf7fc[_0x1e7a29[_0x1fc850]];}if(_0x7a5956[_0x4a406a(0x1d2)](_0x9bf7fc,null)||_0x9bf7fc===undefined||_0x7a5956['PsEzi'](typeof _0x9bf7fc,_0x7a5956['HQCbe']))return![];const _0x3694d4=_0x1e7a29[_0x7a5956['Spbge'](_0x1e7a29['length'],0x1)];if(_0x3694d4 in _0x9bf7fc)return delete _0x9bf7fc[_0x3694d4],!![];return![];}function parseKeyPath(_0x206b80){const _0x39709d=_0x39b7ee,_0x50bde8={'xJkHc':function(_0xad891f,_0x6eca7c){return _0xad891f===_0x6eca7c;},'JfDCL':'headers','Cazdf':_0x39709d(0x1af)},_0x2912bf=_0x206b80[_0x39709d(0x19e)]('.');return _0x50bde8['xJkHc'](_0x2912bf[0x0],'header')&&(_0x2912bf[0x0]=_0x50bde8['JfDCL']),_0x2912bf[0x0]===_0x50bde8['Cazdf']&&(_0x2912bf[0x0]=_0x39709d(0x1bb)),_0x2912bf;}export function formatSettings(_0x3b2973,_0x5bb5d5=0x0){const _0x1d8d1b=_0x39b7ee,_0x4c825b={'bQBMV':function(_0x208bc4,_0xbb883d){return _0x208bc4===_0xbb883d;}},_0x54b976=[],_0x19fa1c='\x20\x20'[_0x1d8d1b(0x1e1)](_0x5bb5d5);for(const [_0x3f6205,_0x1d141e]of Object[_0x1d8d1b(0x1b6)](_0x3b2973)){if(_0x4c825b[_0x1d8d1b(0x1d4)](_0x1d141e,undefined))continue;if(_0x4c825b['bQBMV'](typeof _0x1d141e,_0x1d8d1b(0x1c0))&&_0x1d141e!==null){_0x54b976[_0x1d8d1b(0x18f)](''+_0x19fa1c+_0x3f6205+':');for(const [_0x2233ba,_0x320a64]of Object[_0x1d8d1b(0x1b6)](_0x1d141e)){_0x54b976[_0x1d8d1b(0x18f)](_0x19fa1c+'\x20\x20'+_0x2233ba+':\x20'+_0x320a64);}}else _0x54b976[_0x1d8d1b(0x18f)](''+_0x19fa1c+_0x3f6205+':\x20'+_0x1d141e);}return _0x54b976[_0x1d8d1b(0x1ad)]('\x0a');}
1
+ const _0x15de31=_0x60dd;(function(_0x2b282e,_0x44a3ba){const _0x584727=_0x60dd,_0x359888=_0x2b282e();while(!![]){try{const _0xb3a428=parseInt(_0x584727(0x185))/0x1*(parseInt(_0x584727(0x179))/0x2)+parseInt(_0x584727(0x17b))/0x3*(-parseInt(_0x584727(0x1a5))/0x4)+parseInt(_0x584727(0x19b))/0x5*(-parseInt(_0x584727(0x19f))/0x6)+parseInt(_0x584727(0x1cc))/0x7+parseInt(_0x584727(0x1c7))/0x8+-parseInt(_0x584727(0x1bd))/0x9+-parseInt(_0x584727(0x195))/0xa*(-parseInt(_0x584727(0x1b4))/0xb);if(_0xb3a428===_0x44a3ba)break;else _0x359888['push'](_0x359888['shift']());}catch(_0x433568){_0x359888['push'](_0x359888['shift']());}}}(_0x1123,0xab275));import{readFile,writeFile,mkdir,unlink}from'fs/promises';function _0x60dd(_0x2bc2d4,_0x341a41){_0x2bc2d4=_0x2bc2d4-0x165;const _0x112393=_0x1123();let _0x60dd4a=_0x112393[_0x2bc2d4];return _0x60dd4a;}import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x23b5bb,_0x83110d){const _0x3dc171=_0x60dd,_0x56edde={'zUACD':function(_0x400ad3,_0x16ee38,_0x13bea3,_0x50c66d){return _0x400ad3(_0x16ee38,_0x13bea3,_0x50c66d);},'XJopI':function(_0x2b4938,_0x12c1b0,_0x575e3f){return _0x2b4938(_0x12c1b0,_0x575e3f);},'MyjLj':'local'},_0x1d9415=join(_0x83110d,'ci',_0x23b5bb),_0x19c545=_0x56edde['zUACD'](join,_0x83110d,_0x3dc171(0x1b1),_0x23b5bb),_0x9a351d=join(_0x83110d,_0x23b5bb),_0x47bc67=_0x56edde[_0x3dc171(0x1a3)](join,_0x83110d,_0x56edde['MyjLj']),_0x376ab4=join(_0x83110d,'ci');if(existsSync(_0x1d9415))return _0x1d9415;if(existsSync(_0x19c545))return _0x19c545;if(existsSync(_0x9a351d)&&(_0x9a351d!==_0x47bc67&&_0x9a351d!==_0x376ab4?!![]:hasLegacyProfileFiles(_0x9a351d)))return _0x9a351d;return null;}export function getEnvDir(_0x529a35,_0x413114={}){const _0x1dc8c5=_0x60dd,_0xea5212={'IEicx':function(_0x163db9){return _0x163db9();},'TrszD':function(_0x10b02e,_0x13511c,_0x4c6539){return _0x10b02e(_0x13511c,_0x4c6539);},'fXLHt':function(_0x4714ca,_0x4d4897){return _0x4714ca(_0x4d4897);},'sPTyN':function(_0x3a1da0,_0x1d5ce5){return _0x3a1da0!==_0x1d5ce5;},'AOOHM':function(_0x1f43d6,_0x5917d7,_0x506f5d){return _0x1f43d6(_0x5917d7,_0x506f5d);},'dRNSX':function(_0xa09d0,_0x5c514d,_0x3d4191,_0x3aa033){return _0xa09d0(_0x5c514d,_0x3d4191,_0x3aa033);},'lDPzQ':'local'},_0x39214b=_0xea5212[_0x1dc8c5(0x183)](getRangerDir),_0x94b4ef=_0xea5212['TrszD'](findEnvInRoot,_0x529a35,_0x39214b);if(_0x94b4ef){if(_0x413114['forWrite']&&_0xea5212[_0x1dc8c5(0x173)](isLegacyEnvPath,_0x94b4ef))throw _0xea5212['TrszD'](legacyWriteError,_0x529a35,_0x94b4ef);return _0x94b4ef;}const _0x183140=getRangerHomeDir();if(_0xea5212[_0x1dc8c5(0x1a0)](_0x183140,_0x39214b)){const _0x35fee9=_0xea5212['AOOHM'](findEnvInRoot,_0x529a35,_0x183140);if(_0x35fee9){if(_0x413114['forWrite']&&isLegacyEnvPath(_0x35fee9))throw _0xea5212['AOOHM'](legacyWriteError,_0x529a35,_0x35fee9);return _0x35fee9;}}const _0x14eb80=_0xea5212['dRNSX'](join,_0x183140,_0xea5212['lDPzQ'],_0x529a35);if(_0x413114['forWrite'])throw legacyWriteError(_0x529a35,_0x14eb80);return _0x14eb80;}function isLegacyEnvPath(_0x3ba6aa){const _0x465105=_0x60dd,_0x4c06da={'fHNpU':function(_0x3fbc46){return _0x3fbc46();}},_0x5c6f9c=_0x4c06da[_0x465105(0x1ad)](getRangerDir),_0x144166=getRangerHomeDir();for(const _0x1f9957 of new Set([_0x5c6f9c,_0x144166])){const _0x3476d3=_0x1f9957['endsWith']('/')?_0x1f9957:_0x1f9957+'/';if(_0x3ba6aa===_0x1f9957||_0x3ba6aa['startsWith'](_0x3476d3))return!![];}return![];}function legacyWriteError(_0x16f067,_0x52cdb2){const _0x31f6d4=_0x60dd,_0x867604={'OczCY':function(_0xfc735d,_0x2ddb40){return _0xfc735d+_0x2ddb40;},'lAENi':function(_0x11fbb8,_0x5e7658){return _0x11fbb8+_0x5e7658;}};return new Error(_0x867604[_0x31f6d4(0x16e)](_0x867604[_0x31f6d4(0x16e)](_0x867604['lAENi']('Refusing\x20to\x20write\x20profile\x20\x22'+_0x16f067+'\x22\x20to\x20legacy\x20path\x20'+_0x52cdb2+'.\x0a','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a'),_0x31f6d4(0x198)),_0x31f6d4(0x186)));}export function findExistingEnv(_0x12b666,_0x3ec236){const _0x226973=_0x60dd,_0xb8fc4d={'AMxVd':_0x226973(0x1c1),'tbLhL':function(_0x223a7a,_0x1cb686,_0x466cc2){return _0x223a7a(_0x1cb686,_0x466cc2);},'ZIzzw':function(_0xf022ba,_0x1a2476,_0x60c3c0,_0x216781){return _0xf022ba(_0x1a2476,_0x60c3c0,_0x216781);},'NZNcf':_0x226973(0x1b1),'ERlZh':function(_0x2e13ce,_0x26c82e,_0x32d148,_0x1fb214){return _0x2e13ce(_0x26c82e,_0x32d148,_0x1fb214);},'MtMgW':function(_0x260c8d,_0x190041){return _0x260c8d(_0x190041);},'dAWPb':function(_0x203fb5,_0x5070af){return _0x203fb5===_0x5070af;}},_0x52bb2f=_0x3ec236?.[_0x226973(0x18a)],_0x3f0806=_0x52bb2f?[_0x52bb2f]:[getRangerDir(),getRangerHomeDir()]['filter']((_0x30393b,_0x3d8a1c,_0x1f8b59)=>_0x1f8b59['indexOf'](_0x30393b)===_0x3d8a1c),_0x16aa64=_0x3ec236?.['locations']??['ci','local',_0xb8fc4d[_0x226973(0x187)]];for(const _0x271429 of _0x3f0806){const _0x31c115=_0xb8fc4d[_0x226973(0x16a)](join,_0x271429,'local'),_0x1a90e4=_0xb8fc4d['tbLhL'](join,_0x271429,'ci'),_0x3098ad=[{'location':'ci','path':_0xb8fc4d['ZIzzw'](join,_0x271429,'ci',_0x12b666)},{'location':_0xb8fc4d[_0x226973(0x174)],'path':_0xb8fc4d[_0x226973(0x19a)](join,_0x271429,'local',_0x12b666)},{'location':_0xb8fc4d['AMxVd'],'path':join(_0x271429,_0x12b666)}];for(const _0x483fa9 of _0x3098ad){if(_0x16aa64['includes'](_0x483fa9['location'])&&_0xb8fc4d['MtMgW'](existsSync,_0x483fa9['path'])){if(_0x483fa9['location']===_0xb8fc4d[_0x226973(0x187)]&&(_0xb8fc4d['dAWPb'](_0x483fa9[_0x226973(0x194)],_0x31c115)||_0x483fa9[_0x226973(0x194)]===_0x1a90e4)&&!_0xb8fc4d['MtMgW'](hasLegacyProfileFiles,_0x483fa9[_0x226973(0x194)]))continue;return{'path':_0x483fa9['path'],'location':_0x483fa9['location']};}}}return null;}function hasLegacyProfileFiles(_0x2ab721){const _0x17720c=_0x60dd,_0xb26aed={'jnEBE':function(_0x5cdca5,_0x21739e,_0x598f09){return _0x5cdca5(_0x21739e,_0x598f09);}};return existsSync(_0xb26aed[_0x17720c(0x17a)](join,_0x2ab721,_0x17720c(0x18f)))||existsSync(join(_0x2ab721,_0x17720c(0x1cb)))||existsSync(join(_0x2ab721,_0x17720c(0x167)));}export function isEnvCi(_0x394067){const _0x54af7d=_0x60dd,_0x4ea4cf={'BSrtR':function(_0x1c939b,_0x3fac43){return _0x1c939b(_0x3fac43);},'ywuna':function(_0x43fa52,_0x5ee05e,_0x23e61d,_0x388691){return _0x43fa52(_0x5ee05e,_0x23e61d,_0x388691);},'StKPX':function(_0x28bd54){return _0x28bd54();}};if(_0x4ea4cf[_0x54af7d(0x18b)](existsSync,_0x4ea4cf[_0x54af7d(0x1c8)](join,getRangerDir(),'ci',_0x394067)))return!![];const _0x372676=_0x4ea4cf[_0x54af7d(0x177)](getRangerHomeDir);if(_0x372676!==getRangerDir()&&_0x4ea4cf['BSrtR'](existsSync,join(_0x372676,'ci',_0x394067)))return!![];return![];}function _0x1123(){const _0x1404b2=['--disable-features=WebBluetooth','path','578950AQktfC','jlvPZ','replace','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','push','ERlZh','1388915GsBKZF','rTuQq','object','khqId','18UoBzIE','sPTyN','includes','boolean','XJopI','catch','52aDsZqK','extraHTTPHeaders','SYvCq','now','ENOENT','storageStatePath','vision','GfbpM','fHNpU','Cycrq','map','args','local','--unsafely-treat-insecure-origin-as-secure=http://localhost','isArray','253NnHgmt','browser','XeQKS','ldZsQ','message','ciOJX','getuid','code','GbCDF','7591995FVqYNm','userAgent','pAsYw','string','legacy','Imlfh','pGEYp','cdpEndpoint','--allow-insecure-localhost','YxgtC','1312120xdMIEa','ywuna','tabs','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','auth.json','7910553ndBhte','core','all','.json','etrCm','auth.json.enc','sessions','RCgzj','tbLhL','contextOptions','stringify','sgOQb','OczCY','Pdumz','fromEntries','FLmDk','length','fXLHt','NZNcf','YiHSV','keys','StKPX','storageState','2DFsPts','jnEBE','107367BUXzHl','entries','ignoreHTTPSErrors','YjEkb','file','Environment\x20variable\x20','CeNkE','header','IEicx','warn','217527fjJlqE','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','AMxVd','filter','setupHeader','rangerDir','BSrtR','sgjyv','LjZia','headless','settings.json','RPvhp','ranger-config','OOHEO'];_0x1123=function(){return _0x1404b2;};return _0x1123();}export async function cleanupTempFiles(_0x4d3e21){const _0x4dd130=_0x60dd,_0xb8008c={'BRKnC':function(_0x8c9fcb,_0x416f31){return _0x8c9fcb!==_0x416f31;}},_0xb5e976=[_0x4d3e21['tempAuthPath'],_0x4d3e21['configPath']]['filter'](Boolean);await Promise[_0x4dd130(0x1ce)](_0xb5e976[_0x4dd130(0x1af)](_0x467d28=>unlink(_0x467d28)[_0x4dd130(0x1a4)](_0x353a6c=>{const _0xfc70e1=_0x4dd130;_0xb8008c['BRKnC'](_0x353a6c[_0xfc70e1(0x1bb)],_0xfc70e1(0x1a9))&&console[_0xfc70e1(0x184)](_0xfc70e1(0x1ca)+_0x467d28+':',_0x353a6c['message']);})));}export function getSettingsPath(_0x5a1190){const _0x435e6e=_0x60dd,_0x9d0eb2={'LjZia':_0x435e6e(0x18f)};return join(getEnvDir(_0x5a1190),_0x9d0eb2[_0x435e6e(0x18d)]);}export async function loadSettings(_0x57afef){const _0x3aa0ce=getSettingsPath(_0x57afef);if(!existsSync(_0x3aa0ce))return{};try{const _0x37307d=await readFile(_0x3aa0ce,'utf-8');return JSON['parse'](_0x37307d);}catch{return{};}}export async function saveSettings(_0x451fea,_0x2ef218){const _0x53d5a6=_0x60dd,_0x20966e={'urRUC':function(_0x1a4dd4,_0x25f242){return _0x1a4dd4(_0x25f242);},'YiHSV':function(_0x4d9981,_0x3c1e49,_0x5aee04){return _0x4d9981(_0x3c1e49,_0x5aee04);}},_0x4c9292=getSettingsPath(_0x451fea),_0x15b7aa=dirname(_0x4c9292);!_0x20966e['urRUC'](existsSync,_0x15b7aa)&&await _0x20966e[_0x53d5a6(0x175)](mkdir,_0x15b7aa,{'recursive':!![]}),await writeFile(_0x4c9292,JSON['stringify'](_0x2ef218,null,0x2));}export function resolveEnvVars(_0x58fb1e){const _0x3ed05f=_0x60dd,_0x3fc6ed={'JIDAH':function(_0x141298,_0x1a9852){return _0x141298===_0x1a9852;},'JNfAL':_0x3ed05f(0x1c0)};if(_0x3fc6ed['JIDAH'](typeof _0x58fb1e,_0x3fc6ed['JNfAL']))return _0x58fb1e[_0x3ed05f(0x197)](/\$\{(\w+)\}/g,(_0x3bca99,_0x3a9c11)=>{const _0x44f5b8=_0x3ed05f,_0x5ed8de=process['env'][_0x3a9c11];if(_0x5ed8de===undefined)throw new Error(_0x44f5b8(0x180)+_0x3a9c11+'\x20is\x20not\x20set');return _0x5ed8de;});if(Array['isArray'](_0x58fb1e))return _0x58fb1e['map'](resolveEnvVars);if(_0x58fb1e&&typeof _0x58fb1e==='object')return Object[_0x3ed05f(0x170)](Object[_0x3ed05f(0x17c)](_0x58fb1e)['map'](([_0x15db47,_0x3f7ef1])=>[_0x15db47,resolveEnvVars(_0x3f7ef1)]));return _0x58fb1e;}const isRecord=_0xf1e218=>typeof _0xf1e218===_0x15de31(0x19d)&&_0xf1e218!==null&&!Array[_0x15de31(0x1b3)](_0xf1e218),asRecord=_0x3f89e6=>isRecord(_0x3f89e6)?_0x3f89e6:undefined,mergeHeaders=(_0x3cfd8a,_0x312622)=>{const _0xbe11c2=_0x15de31,_0x23341b={'Cycrq':function(_0x2534f7,_0x3849da){return _0x2534f7??_0x3849da;}},_0x2c917a={..._0x23341b['Cycrq'](_0x3cfd8a,{}),..._0x23341b[_0xbe11c2(0x1ae)](_0x312622,{})};return Object[_0xbe11c2(0x176)](_0x2c917a)['length']?_0x2c917a:undefined;},SAFE_MODE_ARGS=[_0x15de31(0x193)],ALLOW_LOCALHOST_ARGS=['--disable-web-security','--allow-running-insecure-content',_0x15de31(0x1b2),_0x15de31(0x1c5)];export function buildBrowserOptionsFromSettings(_0x524179,_0x147500={}){const _0x20e0ea=_0x15de31,_0x5bb503={'pAsYw':_0x20e0ea(0x1a2),'OOHEO':function(_0x441d4c,_0x415564){return _0x441d4c(_0x415564);}},_0x49e1a6=asRecord(_0x524179[_0x20e0ea(0x1b5)]),_0x2a02ab={...asRecord(_0x49e1a6?.['launchOptions'])??{}};typeof _0x147500[_0x20e0ea(0x18e)]===_0x5bb503[_0x20e0ea(0x1bf)]&&(_0x2a02ab[_0x20e0ea(0x18e)]=_0x147500['headless']);if(_0x524179['safeMode']){const _0x369dd5=_0x2a02ab['args']??[],_0x3c5814=SAFE_MODE_ARGS['filter'](_0x51fc3c=>!_0x369dd5[_0x20e0ea(0x1a1)](_0x51fc3c));_0x2a02ab['args']=[..._0x369dd5,..._0x3c5814];}if(_0x524179['allowInsecureLocalhost']){const _0x327802=_0x2a02ab['args']??[],_0x3c8540=ALLOW_LOCALHOST_ARGS[_0x20e0ea(0x188)](_0x3e71ef=>!_0x327802['includes'](_0x3e71ef));_0x2a02ab['args']=[..._0x327802,..._0x3c8540];}const _0x494f0c={..._0x5bb503[_0x20e0ea(0x192)](asRecord,_0x49e1a6?.[_0x20e0ea(0x16b)])??{}};_0x494f0c[_0x20e0ea(0x17d)]=!![];typeof _0x524179[_0x20e0ea(0x1be)]===_0x20e0ea(0x1c0)&&(_0x494f0c['userAgent']=_0x524179['userAgent']);const _0xda5dcb=mergeHeaders(asRecord(_0x494f0c['extraHTTPHeaders']),asRecord(_0x524179['headers']));return _0xda5dcb?_0x494f0c['extraHTTPHeaders']=_0xda5dcb:delete _0x494f0c[_0x20e0ea(0x1a6)],_0x147500[_0x20e0ea(0x1aa)]&&(_0x494f0c['storageState']=_0x147500[_0x20e0ea(0x1aa)]),{'launchOptions':_0x2a02ab,'contextOptions':_0x494f0c};}async function resolveLocalAuthPath(_0x18cee1){const _0x578a2b=_0x15de31,_0x3ff748={'SYvCq':function(_0x59dc60,_0x33c202,_0x5a82f1){return _0x59dc60(_0x33c202,_0x5a82f1);},'GfbpM':_0x578a2b(0x167),'jlvPZ':function(_0x30031b){return _0x30031b();},'xtpuZ':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','Imlfh':function(_0x5f2647,_0x5d68fc,_0x47893b){return _0x5f2647(_0x5d68fc,_0x47893b);},'ldZsQ':function(_0x24ca4c,_0x505e13,_0xb76d54){return _0x24ca4c(_0x505e13,_0xb76d54);},'aqGUs':function(_0x1c91f6,_0x4905b0){return _0x1c91f6 instanceof _0x4905b0;},'etrCm':function(_0x2342f8,_0x375303){return _0x2342f8(_0x375303);}},_0x2863a2=_0x3ff748[_0x578a2b(0x1a7)](join,_0x18cee1,_0x3ff748[_0x578a2b(0x1ac)]),_0x5b037c=_0x3ff748['SYvCq'](join,_0x18cee1,_0x578a2b(0x1cb));if(existsSync(_0x2863a2))try{const _0xb80a1e=await _0x3ff748[_0x578a2b(0x196)](getToken);if(!_0xb80a1e)throw new Error(_0x3ff748['xtpuZ']);const _0x251f19=await readFile(_0x2863a2),_0x4230f6=_0x3ff748[_0x578a2b(0x1c2)](decrypt,_0x251f19,_0xb80a1e),_0xffd126=_0x3ff748['SYvCq'](join,tmpdir(),'ranger-auth-'+Date[_0x578a2b(0x1a8)]()+_0x578a2b(0x165));return await _0x3ff748[_0x578a2b(0x1b7)](writeFile,_0xffd126,_0x4230f6),{'storageStatePath':_0xffd126,'tempAuthPath':_0xffd126};}catch(_0x28d588){const _0x55e7cd=_0x3ff748['aqGUs'](_0x28d588,Error)?_0x28d588[_0x578a2b(0x1b8)]:_0x3ff748[_0x578a2b(0x166)](String,_0x28d588);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x55e7cd);}if(_0x3ff748['etrCm'](existsSync,_0x5b037c))return{'storageStatePath':_0x5b037c};return{};}export async function buildPlaywrightConfig(_0x5baf22,_0x15e450,_0x4824f1,_0xb218aa,_0x286428){const _0x2c7cc0=_0x15de31,_0x592d4f={'RPvhp':'stagehand','rxCru':function(_0x548278,_0x18dc20){return _0x548278(_0x18dc20);},'EOEli':function(_0x34983e,_0x14f838){return _0x34983e(_0x14f838);},'rSGkm':function(_0x5a2a6e,_0x467ac7,_0xb78152,_0x44193a,_0x34989d,_0x354513,_0x9919ad){return _0x5a2a6e(_0x467ac7,_0xb78152,_0x44193a,_0x34989d,_0x354513,_0x9919ad);}};if(_0x286428)return buildPlaywrightConfigCore(_0x5baf22,_0x286428,_0x15e450,_0x4824f1,_0xb218aa,_0x592d4f[_0x2c7cc0(0x190)]);const {storageStatePath:_0x410845,tempAuthPath:_0x5efb30}=await _0x592d4f['rxCru'](resolveLocalAuthPath,_0x592d4f['EOEli'](getEnvDir,_0x15e450));try{const _0x2383f5=await _0x592d4f['rSGkm'](buildPlaywrightConfigCore,_0x5baf22,_0x410845,_0x15e450,_0x4824f1,_0xb218aa,'stagehand');return{..._0x2383f5,'tempAuthPath':_0x5efb30};}catch(_0x2979d6){_0x5efb30&&await unlink(_0x5efb30)[_0x2c7cc0(0x1a4)](()=>{});throw _0x2979d6;}}export async function buildPlaywrightConfigCore(_0x2bb72b,_0x6a50ea,_0x4d9fd2,_0x76c658,_0xb6e658,_0x406c33='stagehand'){const _0x2a627c=_0x15de31,_0xa0aafe={'CeNkE':function(_0x1b8e77,_0x525f50,_0x5485a4){return _0x1b8e77(_0x525f50,_0x5485a4);},'khqId':function(_0x5f872a,_0x48e998){return _0x5f872a===_0x48e998;},'mcyhQ':'--no-sandbox','jOJhl':'--disable-setuid-sandbox','LUJmz':'clipboard-read','rTuQq':function(_0x1bceb5){return _0x1bceb5();},'zjlRN':function(_0x448d32){return _0x448d32();},'FLmDk':'playwright-cli','HULXQ':_0x2a627c(0x17f),'sgjyv':'none','KHFzZ':'pdf','foWZq':_0x2a627c(0x1ab),'UBqqo':'allow','oBUTS':_0x2a627c(0x191),'sgOQb':function(_0x47ec58,_0x308cd0){return _0x47ec58(_0x308cd0);},'RCgzj':'-cli'},_0x331da1=_0x76c658||_0xa0aafe[_0x2a627c(0x19c)](randomUUID),_0x57dee8=join(_0xa0aafe['zjlRN'](getRangerDir),_0x2a627c(0x168),_0x331da1),_0x1a9854=Boolean(_0x2bb72b[_0x2a627c(0x1c4)]),_0x3d9d95=_0x1a9854?{'browserName':'chromium','cdpEndpoint':_0x2bb72b['cdpEndpoint']}:((()=>{const _0x35e358=_0x2a627c,{launchOptions:_0x20e818,contextOptions:_0x3870de}=_0xa0aafe[_0x35e358(0x181)](buildBrowserOptionsFromSettings,_0x2bb72b,{'headless':_0xb6e658?![]:_0x2bb72b[_0x35e358(0x18e)]??!![],'storageStatePath':_0x6a50ea});if(_0xa0aafe[_0x35e358(0x19e)](process[_0x35e358(0x1ba)]?.(),0x0)){const _0x4f7dd3=[_0xa0aafe['mcyhQ'],_0xa0aafe['jOJhl']],_0x217103=_0x20e818[_0x35e358(0x1b0)]??[],_0x5dbcf8=_0x4f7dd3[_0x35e358(0x188)](_0x1e513b=>!_0x217103[_0x35e358(0x1a1)](_0x1e513b));_0x20e818['args']=[..._0x217103,..._0x5dbcf8];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x20e818,'contextOptions':{..._0x3870de,'permissions':[_0xa0aafe['LUJmz'],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x30382e=_0x406c33===_0xa0aafe[_0x2a627c(0x171)]?{'browser':_0x3d9d95,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x57dee8,'outputMode':_0xa0aafe['HULXQ'],'codegen':_0xa0aafe[_0x2a627c(0x18c)]}:{'name':_0x4d9fd2,'browser':_0x3d9d95,'capabilities':[_0x2a627c(0x1cd),_0x2a627c(0x1c9),'install',_0xa0aafe['KHFzZ'],_0xa0aafe['foWZq']],'imageResponses':_0xa0aafe['UBqqo'],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x57dee8};if(!_0x1a9854){const _0x321dcd=_0x30382e['browser'],_0xcc5d77=_0x321dcd['contextOptions'];if(_0xcc5d77['userAgent']===undefined)delete _0xcc5d77[_0x2a627c(0x1be)];if(_0xcc5d77[_0x2a627c(0x178)]===undefined)delete _0xcc5d77['storageState'];}const _0x505014=join(_0xa0aafe['zjlRN'](tmpdir),_0xa0aafe['oBUTS']);!_0xa0aafe[_0x2a627c(0x16d)](existsSync,_0x505014)&&await mkdir(_0x505014,{'recursive':!![]});const _0x2d9f9a=_0xa0aafe[_0x2a627c(0x19e)](_0x406c33,_0xa0aafe['FLmDk'])?_0xa0aafe[_0x2a627c(0x169)]:'',_0x1d7ab9=join(_0x505014,_0x4d9fd2+'-'+Date['now']()+_0x2d9f9a+_0x2a627c(0x165));return await _0xa0aafe[_0x2a627c(0x181)](writeFile,_0x1d7ab9,JSON[_0x2a627c(0x16c)](_0x30382e,null,0x2)),{'configPath':_0x1d7ab9};}export async function buildPlaywrightCliConfig(_0x2673a9,_0x16190e,_0x34827d,_0x58b0de,_0x101bbd){const _0x250304=_0x15de31,_0x8b8495={'DaRNv':function(_0x39d49d,_0x1de059,_0x12304f,_0x884485,_0x20d3bf,_0x12d8ef,_0x27ac36){return _0x39d49d(_0x1de059,_0x12304f,_0x884485,_0x20d3bf,_0x12d8ef,_0x27ac36);},'YjEkb':'playwright-cli'};if(_0x101bbd)return buildPlaywrightConfigCore(_0x2673a9,_0x101bbd,_0x16190e,_0x34827d,_0x58b0de,'playwright-cli');const {storageStatePath:_0x331b3c,tempAuthPath:_0x47f8d7}=await resolveLocalAuthPath(getEnvDir(_0x16190e));try{const _0x3721ed=await _0x8b8495['DaRNv'](buildPlaywrightConfigCore,_0x2673a9,_0x331b3c,_0x16190e,_0x34827d,_0x58b0de,_0x8b8495[_0x250304(0x17e)]);return{..._0x3721ed,'tempAuthPath':_0x47f8d7};}catch(_0x356be7){_0x47f8d7&&await unlink(_0x47f8d7)['catch'](()=>{});throw _0x356be7;}}export function getNestedValue(_0x4a77aa,_0x231e09){const _0x2021bb=_0x15de31,_0x1a1ce5={'ciOJX':function(_0x5927fd,_0x21dbc7){return _0x5927fd===_0x21dbc7;},'XeQKS':function(_0x4a19f4,_0x1d2824){return _0x4a19f4!==_0x1d2824;},'pvXeZ':'object'},_0x25d9ef=parseKeyPath(_0x231e09);let _0xee02f3=_0x4a77aa;for(const _0x22d7a4 of _0x25d9ef){if(_0xee02f3===null||_0x1a1ce5[_0x2021bb(0x1b9)](_0xee02f3,undefined)||_0x1a1ce5[_0x2021bb(0x1b6)](typeof _0xee02f3,_0x1a1ce5['pvXeZ']))return undefined;_0xee02f3=_0xee02f3[_0x22d7a4];}return _0xee02f3;}export function setNestedValue(_0xf92dee,_0x30145d,_0x535238){const _0x3e3801=_0x15de31,_0x5ad13c={'KncWp':function(_0x495652,_0x434b61){return _0x495652(_0x434b61);},'YxgtC':function(_0x596309,_0x2c54f5){return _0x596309!==_0x2c54f5;},'YpdAL':_0x3e3801(0x19d)},_0x33ec10=_0x5ad13c['KncWp'](parseKeyPath,_0x30145d);let _0xd0c59c=_0xf92dee;for(let _0x2b86d4=0x0;_0x2b86d4<_0x33ec10['length']-0x1;_0x2b86d4++){const _0x21def4=_0x33ec10[_0x2b86d4];(!(_0x21def4 in _0xd0c59c)||_0x5ad13c[_0x3e3801(0x1c6)](typeof _0xd0c59c[_0x21def4],_0x5ad13c['YpdAL']))&&(_0xd0c59c[_0x21def4]={}),_0xd0c59c=_0xd0c59c[_0x21def4];}_0xd0c59c[_0x33ec10[_0x33ec10['length']-0x1]]=_0x535238;}export function deleteNestedValue(_0x14a1cd,_0x3599a7){const _0x551b37=_0x15de31,_0x1393ac={'pGEYp':function(_0x20ddec,_0x308306){return _0x20ddec===_0x308306;},'ovfPQ':function(_0x30f85e,_0x58fcb7){return _0x30f85e!==_0x58fcb7;},'Pdumz':function(_0x3aef27,_0x3c41c1){return _0x3aef27!==_0x3c41c1;},'GbCDF':_0x551b37(0x19d),'rtpja':function(_0x10baea,_0x297cb6){return _0x10baea-_0x297cb6;}},_0x39bdc0=parseKeyPath(_0x3599a7);let _0xbd0957=_0x14a1cd;for(let _0x3520ed=0x0;_0x3520ed<_0x39bdc0['length']-0x1;_0x3520ed++){if(_0x1393ac['pGEYp'](_0xbd0957,null)||_0xbd0957===undefined||_0x1393ac['ovfPQ'](typeof _0xbd0957,_0x551b37(0x19d)))return![];_0xbd0957=_0xbd0957[_0x39bdc0[_0x3520ed]];}if(_0xbd0957===null||_0x1393ac[_0x551b37(0x1c3)](_0xbd0957,undefined)||_0x1393ac[_0x551b37(0x16f)](typeof _0xbd0957,_0x1393ac[_0x551b37(0x1bc)]))return![];const _0x120128=_0x39bdc0[_0x1393ac['rtpja'](_0x39bdc0[_0x551b37(0x172)],0x1)];if(_0x120128 in _0xbd0957)return delete _0xbd0957[_0x120128],!![];return![];}function parseKeyPath(_0x491c87){const _0x4925ce=_0x15de31,_0x5a205f={'DVoLF':'headers','XKkAL':_0x4925ce(0x189),'hkvAV':'setupHeaders'},_0x4b50e0=_0x491c87['split']('.');return _0x4b50e0[0x0]===_0x4925ce(0x182)&&(_0x4b50e0[0x0]=_0x5a205f['DVoLF']),_0x4b50e0[0x0]===_0x5a205f['XKkAL']&&(_0x4b50e0[0x0]=_0x5a205f['hkvAV']),_0x4b50e0;}export function formatSettings(_0x41e784,_0x57f916=0x0){const _0x1b0d5a=_0x15de31,_0x22e870={'iDsPT':function(_0x4a1435,_0x1a9ea8){return _0x4a1435===_0x1a9ea8;}},_0x1430a5=[],_0xdb3e59='\x20\x20'['repeat'](_0x57f916);for(const [_0x1fb760,_0x105ff8]of Object[_0x1b0d5a(0x17c)](_0x41e784)){if(_0x105ff8===undefined)continue;if(_0x22e870['iDsPT'](typeof _0x105ff8,_0x1b0d5a(0x19d))&&_0x105ff8!==null){_0x1430a5[_0x1b0d5a(0x199)](''+_0xdb3e59+_0x1fb760+':');for(const [_0x2dc654,_0x3209fc]of Object['entries'](_0x105ff8)){_0x1430a5[_0x1b0d5a(0x199)](_0xdb3e59+'\x20\x20'+_0x2dc654+':\x20'+_0x3209fc);}}else _0x1430a5['push'](''+_0xdb3e59+_0x1fb760+':\x20'+_0x105ff8);}return _0x1430a5['join']('\x0a');}
@@ -1 +1 @@
1
- function _0x31ae(){const _0x11164e=['508596kJpgSZ','27NxjVJk','567496CNgDcT','1846Fiqicy','HhrJu','580371Mapewy','FyWxI','1021850EtGDqg','935416KBFPVY','7aHvHvq','63Orsqpb','195ZrCGgK','204LRnqjq','13476rIDkIe'];_0x31ae=function(){return _0x11164e;};return _0x31ae();}(function(_0x1edc6b,_0x3eeecd){const _0x2a7079=_0x2360,_0x19f8b3=_0x1edc6b();while(!![]){try{const _0x5099da=parseInt(_0x2a7079(0x1ad))/0x1*(parseInt(_0x2a7079(0x1b4))/0x2)+-parseInt(_0x2a7079(0x1b6))/0x3+-parseInt(_0x2a7079(0x1b3))/0x4+-parseInt(_0x2a7079(0x1ae))/0x5*(-parseInt(_0x2a7079(0x1b0))/0x6)+-parseInt(_0x2a7079(0x1ac))/0x7*(parseInt(_0x2a7079(0x1ab))/0x8)+parseInt(_0x2a7079(0x1b2))/0x9*(-parseInt(_0x2a7079(0x1aa))/0xa)+parseInt(_0x2a7079(0x1b1))/0xb*(parseInt(_0x2a7079(0x1af))/0xc);if(_0x5099da===_0x3eeecd)break;else _0x19f8b3['push'](_0x19f8b3['shift']());}catch(_0x16926f){_0x19f8b3['push'](_0x19f8b3['shift']());}}}(_0x31ae,0x2a38e));import{readFileSync}from'fs';function _0x2360(_0x53f85e,_0x542535){_0x53f85e=_0x53f85e-0x1a9;const _0x31ae75=_0x31ae();let _0x236053=_0x31ae75[_0x53f85e];return _0x236053;}import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x72df27){const _0xa1d399=_0x2360,_0x2b1267={'HhrJu':'skills','yVBvP':function(_0x578c8f,_0x5d4a8c,_0x544604){return _0x578c8f(_0x5d4a8c,_0x544604);}},_0x2988e9=join(__dirname,'..','..',_0x2b1267[_0xa1d399(0x1b5)]),_0x4e7b1f=join(_0x2988e9,_0x72df27);try{return _0x2b1267['yVBvP'](readFileSync,_0x4e7b1f,'utf-8');}catch{return'';}}export function getRangerSkillContent(){const _0x1af3ab=_0x2360,_0x493949={'hlpLz':function(_0x5658af,_0x26a794){return _0x5658af(_0x26a794);},'FyWxI':'ranger/SKILL.md'};return _0x493949['hlpLz'](readSkillContent,_0x493949[_0x1af3ab(0x1a9)]);}
1
+ (function(_0x19774b,_0x4c7832){const _0x12a303=_0x42f5,_0x254931=_0x19774b();while(!![]){try{const _0x55dd8c=parseInt(_0x12a303(0xe7))/0x1+parseInt(_0x12a303(0xe8))/0x2+-parseInt(_0x12a303(0xe3))/0x3*(-parseInt(_0x12a303(0xe0))/0x4)+parseInt(_0x12a303(0xee))/0x5+parseInt(_0x12a303(0xe5))/0x6*(-parseInt(_0x12a303(0xe2))/0x7)+parseInt(_0x12a303(0xec))/0x8+-parseInt(_0x12a303(0xea))/0x9;if(_0x55dd8c===_0x4c7832)break;else _0x254931['push'](_0x254931['shift']());}catch(_0x49acaa){_0x254931['push'](_0x254931['shift']());}}}(_0x2986,0x66296));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function _0x42f5(_0x48d8f6,_0xdbf06a){_0x48d8f6=_0x48d8f6-0xe0;const _0x2986af=_0x2986();let _0x42f563=_0x2986af[_0x48d8f6];return _0x42f563;}export function readSkillContent(_0x3024ef){const _0x5bf8e7=_0x42f5,_0x2328f0={'Zkevt':function(_0x45666c,_0x53c99a,_0x161403,_0x11f67f,_0x47458d){return _0x45666c(_0x53c99a,_0x161403,_0x11f67f,_0x47458d);},'DPUIE':function(_0x2bdb55,_0x2563ee,_0x51f339){return _0x2bdb55(_0x2563ee,_0x51f339);},'KoXJQ':function(_0x2e9e64,_0x3741b,_0x41fc14){return _0x2e9e64(_0x3741b,_0x41fc14);},'OUSGh':'utf-8'},_0x406a12=_0x2328f0[_0x5bf8e7(0xe1)](join,__dirname,'..','..','skills'),_0x112bbe=_0x2328f0[_0x5bf8e7(0xe9)](join,_0x406a12,_0x3024ef);try{return _0x2328f0[_0x5bf8e7(0xeb)](readFileSync,_0x112bbe,_0x2328f0[_0x5bf8e7(0xe6)]);}catch{return'';}}function _0x2986(){const _0x290a2d=['5255552NYPJHW','WFbAj','1880455oXnnos','1503668djDEOR','Zkevt','3686921GkpBwb','3FIYwuM','ranger/SKILL.md','6uxaPvk','OUSGh','295489FDgRMw','545168pVlVMI','DPUIE','9286812hUIPrZ','KoXJQ'];_0x2986=function(){return _0x290a2d;};return _0x2986();}export function getRangerSkillContent(){const _0x309f81=_0x42f5,_0x302605={'FnNqT':function(_0x4b702c,_0x93f9d9){return _0x4b702c(_0x93f9d9);},'WFbAj':_0x309f81(0xe4)};return _0x302605['FnNqT'](readSkillContent,_0x302605[_0x309f81(0xed)]);}