@ranger-testing/ranger-cli 2.5.4-alpha.78800d3-3 → 2.5.4-alpha.9360c2a-16

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 +36 -6
  80. package/build/skills/ranger/create.md +19 -0
  81. package/build/skills/ranger/verify.md +46 -7
  82. package/package.json +3 -2
@@ -1 +1 @@
1
- const _0x2b8638=_0x5747;(function(_0x22e9eb,_0x150ce9){const _0x693f52=_0x5747,_0x24c045=_0x22e9eb();while(!![]){try{const _0x45007e=parseInt(_0x693f52(0x6f))/0x1*(parseInt(_0x693f52(0x7d))/0x2)+parseInt(_0x693f52(0x7e))/0x3+parseInt(_0x693f52(0x6a))/0x4+-parseInt(_0x693f52(0x91))/0x5+parseInt(_0x693f52(0x88))/0x6*(parseInt(_0x693f52(0x97))/0x7)+parseInt(_0x693f52(0x80))/0x8+-parseInt(_0x693f52(0x6c))/0x9*(parseInt(_0x693f52(0x6b))/0xa);if(_0x45007e===_0x150ce9)break;else _0x24c045['push'](_0x24c045['shift']());}catch(_0x14af26){_0x24c045['push'](_0x24c045['shift']());}}}(_0x2bbc,0xe6f62));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0x2b8638(0xa0);function toPlaywrightCliSessionKey(_0x2dd536){const _0x27c227=_0x2b8638,_0x131c88=createHash(_0x27c227(0x75))[_0x27c227(0x6d)](_0x2dd536)[_0x27c227(0x9b)](_0x27c227(0x8d))[_0x27c227(0x8f)](0x0,0xc);return'rg-'+_0x131c88;}function shellQuote(_0x1a36ad){const _0x3df4b3=_0x2b8638;return'\x27'+_0x1a36ad[_0x3df4b3(0x7c)](/'/g,_0x3df4b3(0x7a))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x20838c){const _0x19fac8=_0x2b8638,_0xcc673c={'VMJwJ':function(_0x3f4433,_0x655387){return _0x3f4433(_0x655387);}};return SAFE_SHELL_TOKEN[_0x19fac8(0x82)](_0x20838c)?_0x20838c:_0xcc673c[_0x19fac8(0x84)](shellQuote,_0x20838c);}export function buildPlaywrightCliInvocation(_0x50bf79,_0x5b3343,_0x3cdb02){const _0x2ecd58=_0x2b8638,_0x24fb8a={'blyaN':function(_0x2ef510,_0xd12cc6){return _0x2ef510(_0xd12cc6);},'HsaoN':_0x2ecd58(0x9c),'NEsPE':'npx'},_0x185572=_0x24fb8a[_0x2ecd58(0x78)](toPlaywrightCliSessionKey,_0x50bf79),[_0x21653a=_0x2ecd58(0x89)]=_0x3cdb02,_0x4fda19=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x185572,_0x24fb8a[_0x2ecd58(0x70)],_0x5b3343,..._0x3cdb02];return{'command':'npx','args':_0x4fda19,'shellCommand':[_0x24fb8a['NEsPE'],PLAYWRIGHT_CLI_BINARY,_0x2ecd58(0x9f)+quoteShellArg(_0x185572),'--config',quoteShellArg(_0x5b3343),..._0x3cdb02[_0x2ecd58(0x94)](quoteShellArg)][_0x2ecd58(0x86)]('\x20'),'subcommand':_0x21653a};}function _0x2bbc(){const _0x277d1b=['2behHtM','5264052ZOJOMJ','bash_command','2071272NtlLTJ','kill','test','ReKJV','VMJwJ','nkmZe','join','configPath','60dmDfoP','unknown','close','hpfYf','cmd','hex','DleDw','slice','subcommand','7610615NyPIsL','data','trim','map','DeKIM','aNaVa','248934rPEDij','script','yPbLo','EJani','digest','--config','command','args','-s=','@playwright/cli','string','kEKRO','commandArgs','toString','\x0astderr:\x20','error','pipe','SIGKILL','ENUNb','mWFHF','2263420cfndjq','2180UsfOHT','29142IOOhiw','update','cwd','238957EBqchT','HsaoN','length','timed\x20out\x20after\x20','stdout','env','sha256','\x20signal=','null','blyaN','JaNpJ','\x27\x5c\x27\x27','timeoutMs','replace'];_0x2bbc=function(){return _0x277d1b;};return _0x2bbc();}export function buildPlaywrightCliCommandPrefix(_0x25f3ea,_0x1408ec){const _0x1901fe=_0x2b8638,_0x4e57ce={'ezWww':function(_0x2a5bf8,_0x5bf700){return _0x2a5bf8(_0x5bf700);},'aNaVa':'--config','ReKJV':function(_0x13fb5a,_0x4f9fd0){return _0x13fb5a(_0x4f9fd0);}},_0x573583=_0x4e57ce['ezWww'](toPlaywrightCliSessionKey,_0x25f3ea);return['npx',PLAYWRIGHT_CLI_BINARY,_0x1901fe(0x9f)+quoteShellArg(_0x573583),_0x4e57ce[_0x1901fe(0x96)],_0x4e57ce[_0x1901fe(0x83)](quoteShellArg,_0x1408ec)]['join']('\x20');}function truncateOutput(_0x14067d,_0xcfafef=0x7d0){const _0x5a609b=_0x2b8638,_0x3f11f4={'cQxFe':'...'};return _0x14067d[_0x5a609b(0x71)]>_0xcfafef?_0x14067d[_0x5a609b(0x8f)](0x0,_0xcfafef)+_0x3f11f4['cQxFe']:_0x14067d;}export async function runPlaywrightCliCommand(_0x2ef019){const _0xee42e6=_0x2b8638,_0x2c99d9={'fTiLO':function(_0x28db30,_0x4e6591){return _0x28db30(_0x4e6591);},'DeKIM':function(_0x276535,_0x582352){return _0x276535(_0x582352);},'OOayw':_0xee42e6(0x67),'RFmda':function(_0x4e5ecc,_0x53350a){return _0x4e5ecc(_0x53350a);},'XQxkU':function(_0x420d6c,_0xa50cb1){return _0x420d6c(_0xa50cb1);},'kEKRO':_0xee42e6(0x77),'nkmZe':function(_0x126021,_0x4917fb,_0x531c3c,_0x448b5c){return _0x126021(_0x4917fb,_0x531c3c,_0x448b5c);},'yPbLo':_0xee42e6(0x92),'QpjGo':_0xee42e6(0xa6),'ENUNb':_0xee42e6(0x8a)},_0x3d9cbe=buildPlaywrightCliInvocation(_0x2ef019['sessionId'],_0x2ef019[_0xee42e6(0x87)],_0x2ef019[_0xee42e6(0xa3)]);return new Promise((_0x19711e,_0x2d9f96)=>{const _0x4a2208=_0xee42e6,_0x29a7af={'JaNpJ':_0x2c99d9['OOayw'],'XsVBA':'SIGTERM','hpfYf':function(_0xf69a79,_0x2a04d3,_0x7cbe43){return _0xf69a79(_0x2a04d3,_0x7cbe43);},'oPIGd':function(_0x2eb2d0,_0xe18750){return _0x2c99d9['RFmda'](_0x2eb2d0,_0xe18750);},'lMnCf':function(_0xfbad03,_0x158165){return _0x2c99d9['XQxkU'](_0xfbad03,_0x158165);},'EJani':function(_0x459d73,_0x33cee5){return _0x459d73??_0x33cee5;},'IiSca':function(_0x291cf2,_0x563a99){return _0x291cf2??_0x563a99;},'wVCOj':_0x2c99d9[_0x4a2208(0xa2)],'mWFHF':function(_0x49d6fc,_0x121f3f){return _0x49d6fc(_0x121f3f);}},_0x463c0f=_0x2c99d9[_0x4a2208(0x85)](spawn,_0x3d9cbe['command'],_0x3d9cbe[_0x4a2208(0x9e)],{'cwd':_0x2ef019[_0x4a2208(0x6e)],'env':_0x2ef019[_0x4a2208(0x74)],'stdio':['ignore','pipe',_0x4a2208(0x66)]});let _0x579c17='',_0x1f80c9='',_0x440a69=![];const _0x46ac15=_0x2ef019['timeoutMs']&&_0x2ef019[_0x4a2208(0x7b)]>0x0?setTimeout(()=>{const _0x3ae2af=_0x4a2208;_0x440a69=!![],_0x463c0f[_0x3ae2af(0x81)](_0x29a7af['XsVBA']),_0x29a7af[_0x3ae2af(0x8b)](setTimeout,()=>{const _0x516871=_0x3ae2af;try{_0x463c0f['kill'](_0x29a7af[_0x516871(0x79)]);}catch{}},0x3e8);},_0x2ef019[_0x4a2208(0x7b)]):null;_0x463c0f[_0x4a2208(0x73)]?.['on'](_0x2c99d9[_0x4a2208(0x99)],_0xa0b179=>{const _0x2d1d77=_0x4a2208;_0x579c17+=_0xa0b179[_0x2d1d77(0xa4)]();}),_0x463c0f['stderr']?.['on'](_0x2c99d9[_0x4a2208(0x99)],_0x5ad659=>{_0x1f80c9+=_0x5ad659['toString']();}),_0x463c0f['on'](_0x2c99d9['QpjGo'],_0x503a24=>{const _0x3c4afc=_0x4a2208;if(_0x46ac15)_0x2c99d9['fTiLO'](clearTimeout,_0x46ac15);_0x2c99d9[_0x3c4afc(0x95)](_0x2d9f96,_0x503a24);}),_0x463c0f['on'](_0x2c99d9[_0x4a2208(0x68)],(_0x8edb1d,_0x122c9c)=>{const _0x106b4e=_0x4a2208;if(_0x46ac15)_0x29a7af['oPIGd'](clearTimeout,_0x46ac15);if(_0x8edb1d===0x0){_0x29a7af['lMnCf'](_0x19711e,{'stdout':_0x579c17,'stderr':_0x1f80c9,'invocation':_0x3d9cbe});return;}const _0x3c1bda=_0x440a69?_0x106b4e(0x72)+_0x2ef019['timeoutMs']+'ms':'exited\x20with\x20code='+_0x29a7af[_0x106b4e(0x9a)](_0x8edb1d,_0x106b4e(0x77))+_0x106b4e(0x76)+_0x29a7af['IiSca'](_0x122c9c,_0x29a7af['wVCOj']);_0x2d9f96(new Error('playwright-cli\x20'+_0x3d9cbe[_0x106b4e(0x90)]+'\x20'+_0x3c1bda+'\x0astdout:\x20'+_0x29a7af[_0x106b4e(0x69)](truncateOutput,_0x579c17)+_0x106b4e(0xa5)+_0x29a7af[_0x106b4e(0x69)](truncateOutput,_0x1f80c9)));});});}export function extractBashCommand(_0x419ead){const _0x5919aa=_0x2b8638,_0x348892={'DleDw':_0x5919aa(0x8c),'CAkRS':function(_0x4492a1,_0x26e395){return _0x4492a1===_0x26e395;},'BBdPd':function(_0x2feb7a,_0x276cb9){return _0x2feb7a??_0x276cb9;}},_0x10a768=[_0x5919aa(0x9d),_0x348892[_0x5919aa(0x8e)],_0x5919aa(0x98),_0x5919aa(0x7f)];for(const _0x15f720 of _0x10a768){const _0x62f97c=_0x419ead[_0x15f720];if(_0x348892['CAkRS'](typeof _0x62f97c,_0x5919aa(0xa1))&&_0x62f97c[_0x5919aa(0x93)]())return _0x62f97c;}const _0xb0e827=Object['values'](_0x419ead)['find'](_0x538eef=>typeof _0x538eef===_0x5919aa(0xa1)&&_0x538eef['trim']()[_0x5919aa(0x71)]>0x0);return _0x348892['BBdPd'](_0xb0e827,null);}function _0x5747(_0x34ba35,_0x530fa7){_0x34ba35=_0x34ba35-0x66;const _0x2bbc99=_0x2bbc();let _0x574741=_0x2bbc99[_0x34ba35];return _0x574741;}export function parsePlaywrightCliCommand(_0x5d572){const _0x92fc03=_0x5d572['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x92fc03?.[0x1]??null;}
1
+ const _0x365069=_0x197e;(function(_0x34d3dd,_0x4e2e6f){const _0x17cb7a=_0x197e,_0x50788e=_0x34d3dd();while(!![]){try{const _0x2683a0=-parseInt(_0x17cb7a(0xb3))/0x1+-parseInt(_0x17cb7a(0xaf))/0x2*(parseInt(_0x17cb7a(0xb5))/0x3)+parseInt(_0x17cb7a(0xab))/0x4*(-parseInt(_0x17cb7a(0xae))/0x5)+-parseInt(_0x17cb7a(0xdc))/0x6*(-parseInt(_0x17cb7a(0xad))/0x7)+-parseInt(_0x17cb7a(0xd3))/0x8*(-parseInt(_0x17cb7a(0xac))/0x9)+parseInt(_0x17cb7a(0xaa))/0xa+-parseInt(_0x17cb7a(0xc4))/0xb*(-parseInt(_0x17cb7a(0xd5))/0xc);if(_0x2683a0===_0x4e2e6f)break;else _0x50788e['push'](_0x50788e['shift']());}catch(_0x56d75b){_0x50788e['push'](_0x50788e['shift']());}}}(_0x1725,0xf2495));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0x365069(0xcd);function toPlaywrightCliSessionKey(_0x2d6ee6){const _0x10a90a=_0x365069,_0x680dcb={'hXFtO':function(_0x3ebb91,_0x5d7fb8){return _0x3ebb91(_0x5d7fb8);}},_0x3b3009=_0x680dcb[_0x10a90a(0xdb)](createHash,_0x10a90a(0xca))[_0x10a90a(0xc7)](_0x2d6ee6)['digest']('hex')['slice'](0x0,0xc);return'rg-'+_0x3b3009;}function _0x197e(_0x198a74,_0x60618d){_0x198a74=_0x198a74-0xa2;const _0x1725ae=_0x1725();let _0x197e4a=_0x1725ae[_0x198a74];return _0x197e4a;}function shellQuote(_0x13334d){return'\x27'+_0x13334d['replace'](/'/g,'\x27\x5c\x27\x27')+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x56e9de){const _0x4be6e7=_0x365069,_0x5aae64={'TbKmk':function(_0xcdb6a4,_0x2e79de){return _0xcdb6a4(_0x2e79de);}};return SAFE_SHELL_TOKEN[_0x4be6e7(0xd0)](_0x56e9de)?_0x56e9de:_0x5aae64[_0x4be6e7(0xd9)](shellQuote,_0x56e9de);}export function buildPlaywrightCliInvocation(_0x4f0a64,_0x3fcb24,_0x229b8f){const _0xd57974=_0x365069,_0x56e75a={'ukxMI':function(_0x184084,_0x20d173){return _0x184084(_0x20d173);},'sOYen':'--config','xPLcX':_0xd57974(0xa5)},_0x53b8e1=_0x56e75a['ukxMI'](toPlaywrightCliSessionKey,_0x4f0a64),[_0x2a6ab8='unknown']=_0x229b8f,_0xb635c9=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x53b8e1,_0x56e75a[_0xd57974(0xd6)],_0x3fcb24,..._0x229b8f];return{'command':_0x56e75a['xPLcX'],'args':_0xb635c9,'shellCommand':[_0xd57974(0xa5),PLAYWRIGHT_CLI_BINARY,_0xd57974(0xb8)+quoteShellArg(_0x53b8e1),_0x56e75a[_0xd57974(0xd6)],quoteShellArg(_0x3fcb24),..._0x229b8f['map'](quoteShellArg)][_0xd57974(0xa9)]('\x20'),'subcommand':_0x2a6ab8};}export function buildPlaywrightCliCommandPrefix(_0x35a395,_0x3f110f){const _0x30fb69=_0x365069,_0x329e41={'TcHQb':function(_0x1d265c,_0x6ee4b9){return _0x1d265c(_0x6ee4b9);},'nhaKP':_0x30fb69(0xa5),'nAOvr':function(_0x275213,_0x4f6f6a){return _0x275213(_0x4f6f6a);}},_0x2385c4=_0x329e41['TcHQb'](toPlaywrightCliSessionKey,_0x35a395);return[_0x329e41['nhaKP'],PLAYWRIGHT_CLI_BINARY,_0x30fb69(0xb8)+quoteShellArg(_0x2385c4),_0x30fb69(0xb7),_0x329e41[_0x30fb69(0xcb)](quoteShellArg,_0x3f110f)]['join']('\x20');}function truncateOutput(_0x3c29be,_0x31d25c=0x7d0){const _0x8e4e2d=_0x365069,_0x59dd55={'cRhaY':function(_0x29e842,_0x57de58){return _0x29e842+_0x57de58;}};return _0x3c29be['length']>_0x31d25c?_0x59dd55[_0x8e4e2d(0xd1)](_0x3c29be[_0x8e4e2d(0xc8)](0x0,_0x31d25c),_0x8e4e2d(0xc6)):_0x3c29be;}function _0x1725(){const _0x4435e7=['871596BCYvsr','56bkdqCe','20nYTzbH','4FEvfLR','toString','find','cmd','1294275NaXvBv','cwd','1180977SMPuZT','kill','--config','-s=','SIGTERM','configPath','timed\x20out\x20after\x20','data','kqibS','IQDoN','pipe','SIGKILL','\x0astdout:\x20','values','quvxH','5797qbtAzm','AkTpZ','...','update','slice','env','sha256','nAOvr','length','@playwright/cli','timeoutMs','playwright-cli\x20','test','cRhaY','kbDqF','136XdnzTH','args','22740xZzZUG','sOYen','exited\x20with\x20code=','command','TbKmk','subcommand','hXFtO','433266IkzAqG','yzRFB','bash_command','HkzRK','npx','stderr','commandArgs','UzBeL','join','17522690mnftmC','1900972MTwvHK'];_0x1725=function(){return _0x4435e7;};return _0x1725();}export async function runPlaywrightCliCommand(_0x14cdb0){const _0x2df73=_0x365069,_0x43a697={'DQijO':function(_0x43f2b3,_0x51fcd7){return _0x43f2b3(_0x51fcd7);},'UmbhF':function(_0x54912d,_0x2efff7){return _0x54912d??_0x2efff7;},'quvxH':function(_0x1e9472,_0x196a07){return _0x1e9472??_0x196a07;},'yzRFB':function(_0x537a33,_0xa023e4){return _0x537a33(_0xa023e4);},'RvpOh':_0x2df73(0xc0),'CiDEC':function(_0x4489e7,_0x4fe3a8){return _0x4489e7>_0x4fe3a8;},'AkTpZ':function(_0x135cbf,_0x901849,_0x1a51f7){return _0x135cbf(_0x901849,_0x1a51f7);},'kqibS':'data','kbDqF':'error','QbAbg':'close'},_0xdebe60=buildPlaywrightCliInvocation(_0x14cdb0['sessionId'],_0x14cdb0[_0x2df73(0xba)],_0x14cdb0[_0x2df73(0xa7)]);return new Promise((_0x87f1c3,_0x5731d2)=>{const _0x5f4ee6=_0x2df73,_0x5abb36={'GPTrh':_0x43a697['RvpOh'],'HkzRK':function(_0x1e3b26,_0x3d0420,_0x12bd3f){return _0x1e3b26(_0x3d0420,_0x12bd3f);}},_0x55a076=spawn(_0xdebe60['command'],_0xdebe60[_0x5f4ee6(0xd4)],{'cwd':_0x14cdb0[_0x5f4ee6(0xb4)],'env':_0x14cdb0[_0x5f4ee6(0xc9)],'stdio':['ignore','pipe',_0x5f4ee6(0xbf)]});let _0x4c86b1='',_0x5d9e36='',_0x4f6b63=![];const _0x403207=_0x14cdb0[_0x5f4ee6(0xce)]&&_0x43a697['CiDEC'](_0x14cdb0['timeoutMs'],0x0)?_0x43a697[_0x5f4ee6(0xc5)](setTimeout,()=>{const _0x156f03=_0x5f4ee6,_0x39d3f5={'IMPqr':_0x5abb36['GPTrh']};_0x4f6b63=!![],_0x55a076[_0x156f03(0xb6)](_0x156f03(0xb9)),_0x5abb36[_0x156f03(0xa4)](setTimeout,()=>{try{_0x55a076['kill'](_0x39d3f5['IMPqr']);}catch{}},0x3e8);},_0x14cdb0['timeoutMs']):null;_0x55a076['stdout']?.['on'](_0x5f4ee6(0xbc),_0x399549=>{const _0x42e19d=_0x5f4ee6;_0x4c86b1+=_0x399549[_0x42e19d(0xb0)]();}),_0x55a076[_0x5f4ee6(0xa6)]?.['on'](_0x43a697[_0x5f4ee6(0xbd)],_0x2b38dd=>{const _0x2b1c8d=_0x5f4ee6;_0x5d9e36+=_0x2b38dd[_0x2b1c8d(0xb0)]();}),_0x55a076['on'](_0x43a697[_0x5f4ee6(0xd2)],_0x2cef4d=>{if(_0x403207)_0x43a697['DQijO'](clearTimeout,_0x403207);_0x43a697['DQijO'](_0x5731d2,_0x2cef4d);}),_0x55a076['on'](_0x43a697['QbAbg'],(_0x1cb9bd,_0x2805bb)=>{const _0x250ef1=_0x5f4ee6;if(_0x403207)clearTimeout(_0x403207);if(_0x1cb9bd===0x0){_0x87f1c3({'stdout':_0x4c86b1,'stderr':_0x5d9e36,'invocation':_0xdebe60});return;}const _0x48a703=_0x4f6b63?_0x250ef1(0xbb)+_0x14cdb0[_0x250ef1(0xce)]+'ms':_0x250ef1(0xd7)+_0x43a697['UmbhF'](_0x1cb9bd,'null')+'\x20signal='+_0x43a697[_0x250ef1(0xc3)](_0x2805bb,'null');_0x43a697[_0x250ef1(0xa2)](_0x5731d2,new Error(_0x250ef1(0xcf)+_0xdebe60[_0x250ef1(0xda)]+'\x20'+_0x48a703+_0x250ef1(0xc1)+truncateOutput(_0x4c86b1)+'\x0astderr:\x20'+truncateOutput(_0x5d9e36)));});});}export function extractBashCommand(_0x2b480c){const _0x3f96d0=_0x365069,_0x48f7c9={'UzBeL':'script','QUdSQ':_0x3f96d0(0xa3),'DKWDi':function(_0xc4a6d0,_0x57ce92){return _0xc4a6d0===_0x57ce92;},'IQDoN':'string'},_0x256baa=[_0x3f96d0(0xd8),_0x3f96d0(0xb2),_0x48f7c9[_0x3f96d0(0xa8)],_0x48f7c9['QUdSQ']];for(const _0x64a3c4 of _0x256baa){const _0xd4d339=_0x2b480c[_0x64a3c4];if(_0x48f7c9['DKWDi'](typeof _0xd4d339,_0x48f7c9[_0x3f96d0(0xbe)])&&_0xd4d339['trim']())return _0xd4d339;}const _0x25fb3e=Object[_0x3f96d0(0xc2)](_0x2b480c)[_0x3f96d0(0xb1)](_0x12f4fd=>typeof _0x12f4fd==='string'&&_0x12f4fd['trim']()[_0x3f96d0(0xcc)]>0x0);return _0x25fb3e??null;}export function parsePlaywrightCliCommand(_0x6f2aea){const _0x518ff5=_0x6f2aea['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x518ff5?.[0x1]??null;}
@@ -1 +1 @@
1
- (function(_0x129649,_0x380ff8){const _0x2ed077=_0x5408,_0x50a000=_0x129649();while(!![]){try{const _0xca82df=parseInt(_0x2ed077(0xf7))/0x1+parseInt(_0x2ed077(0xfa))/0x2+-parseInt(_0x2ed077(0xff))/0x3*(parseInt(_0x2ed077(0xf9))/0x4)+parseInt(_0x2ed077(0x101))/0x5+-parseInt(_0x2ed077(0xf8))/0x6*(parseInt(_0x2ed077(0xfb))/0x7)+-parseInt(_0x2ed077(0xfe))/0x8+parseInt(_0x2ed077(0xfc))/0x9*(parseInt(_0x2ed077(0xfd))/0xa);if(_0xca82df===_0x380ff8)break;else _0x50a000['push'](_0x50a000['shift']());}catch(_0xadac15){_0x50a000['push'](_0x50a000['shift']());}}}(_0x3403,0xaf982));const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';export function formatProfileRequiredMessage(_0x49af84){const _0x52998e=_0x5408,_0x5b921b={'mbgBR':function(_0x252d22,_0x187c0d){return _0x252d22(_0x187c0d);}},_0x428aff=_0x49af84?_0x5b921b[_0x52998e(0x100)](_0x49af84,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20'+_0x428aff+'.';}function _0x5408(_0x4bf048,_0x10a981){_0x4bf048=_0x4bf048-0xf7;const _0x34036b=_0x3403();let _0x54089d=_0x34036b[_0x4bf048];return _0x54089d;}function _0x3403(){const _0xc3e50=['8041239okEXpp','20FMirrt','8810080sHflVS','3860694XbQycL','mbgBR','1367465WXmdqP','1008365yfhIhu','7386702OYbsgy','4oLKwfd','2539418OOSIRC','7GJHGEh'];_0x3403=function(){return _0xc3e50;};return _0x3403();}
1
+ (function(_0x51e974,_0xf6adca){const _0x32e40f=_0x2a2f,_0x217695=_0x51e974();while(!![]){try{const _0x2678a9=-parseInt(_0x32e40f(0x1a5))/0x1*(-parseInt(_0x32e40f(0x1a4))/0x2)+-parseInt(_0x32e40f(0x1a2))/0x3+parseInt(_0x32e40f(0x1ab))/0x4*(-parseInt(_0x32e40f(0x1a7))/0x5)+-parseInt(_0x32e40f(0x1a6))/0x6+parseInt(_0x32e40f(0x1a8))/0x7*(-parseInt(_0x32e40f(0x1a3))/0x8)+parseInt(_0x32e40f(0x1ad))/0x9*(-parseInt(_0x32e40f(0x1ae))/0xa)+-parseInt(_0x32e40f(0x1ac))/0xb*(-parseInt(_0x32e40f(0x1aa))/0xc);if(_0x2678a9===_0xf6adca)break;else _0x217695['push'](_0x217695['shift']());}catch(_0x18f970){_0x217695['push'](_0x217695['shift']());}}}(_0x5bf0,0x9b6c7));const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';export function formatProfileRequiredMessage(_0x24c503){const _0x4a10b3=_0x2a2f,_0x4174c3={'LwTgb':function(_0x1cbef5,_0x18079c){return _0x1cbef5(_0x18079c);}},_0x517d60=_0x24c503?_0x4174c3['LwTgb'](_0x24c503,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x4a10b3(0x1a9)+_0x517d60+'.';}function _0x2a2f(_0xf1ac63,_0x3eb6fb){_0xf1ac63=_0xf1ac63-0x1a2;const _0x5bf098=_0x5bf0();let _0x2a2fe0=_0x5bf098[_0xf1ac63];return _0x2a2fe0;}function _0x5bf0(){const _0x280d20=['7pWWLJD','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','36HKKnov','36SweZZm','20227053kSqdOv','108PRfULw','484670UsrkpM','3275835VijIfs','8071864BmgjIf','418raakEX','851CbaIpm','6969888FevJrj','674185sgUqqE'];_0x5bf0=function(){return _0x280d20;};return _0x5bf0();}
@@ -1 +1 @@
1
- (function(_0x58e4cf,_0x32dd32){const _0x3a0222=_0x421e,_0x1374d9=_0x58e4cf();while(!![]){try{const _0x16a61d=parseInt(_0x3a0222(0x69))/0x1*(parseInt(_0x3a0222(0x72))/0x2)+parseInt(_0x3a0222(0x67))/0x3+-parseInt(_0x3a0222(0x6e))/0x4*(parseInt(_0x3a0222(0x75))/0x5)+-parseInt(_0x3a0222(0x7a))/0x6*(parseInt(_0x3a0222(0x77))/0x7)+-parseInt(_0x3a0222(0x71))/0x8*(-parseInt(_0x3a0222(0x7c))/0x9)+-parseInt(_0x3a0222(0x70))/0xa*(parseInt(_0x3a0222(0x66))/0xb)+-parseInt(_0x3a0222(0x6d))/0xc;if(_0x16a61d===_0x32dd32)break;else _0x1374d9['push'](_0x1374d9['shift']());}catch(_0x3bfcb4){_0x1374d9['push'](_0x1374d9['shift']());}}}(_0x1825,0x4b197));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x315d89=_0x421e,_0x3fb9bb={'gKElQ':function(_0x5b0bfc,_0x622ced){return _0x5b0bfc+_0x622ced;},'DHpdm':'<div\x20class=\x22ranger-banner__content\x22>','PTqgQ':_0x315d89(0x6c),'CYBrl':'<div\x20class=\x22ranger-banner__message\x22>','MnLmo':_0x315d89(0x6b),'gQphh':_0x315d89(0x68)},_0x249231=_0x3fb9bb[_0x315d89(0x74)](_0x3fb9bb[_0x315d89(0x74)](_0x3fb9bb['gKElQ'](_0x3fb9bb['DHpdm']+_0x3fb9bb['PTqgQ']+_0x3fb9bb[_0x315d89(0x6f)]+_0x315d89(0x76),_0x315d89(0x7b)),_0x3fb9bb[_0x315d89(0x79)])+_0x315d89(0x6b),_0x3fb9bb['gQphh']),_0x4ff100='\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a';return'\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20'+JSON[_0x315d89(0x78)](_0x249231)+';\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[_0x315d89(0x78)](_0x4ff100)+_0x315d89(0x73);})());function _0x1825(){const _0x5cbbee=['75304pjJQxJ','CYBrl','477240FQByRC','167480awNHrj','2uUeXAC',';\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','gKElQ','60xuTTvc','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','168Fdqodu','stringify','MnLmo','108048MiOMvP','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','261ySvOzx','22YbOXOp','1110252eRpXWK','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','137519eIsXgs','addInitScript','</div>','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','642708tDblhS'];_0x1825=function(){return _0x5cbbee;};return _0x1825();}function _0x421e(_0x4950da,_0x53c886){_0x4950da=_0x4950da-0x66;const _0x18250e=_0x1825();let _0x421ef3=_0x18250e[_0x4950da];return _0x421ef3;}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x26b326){const _0x885e52=_0x421e;await _0x26b326[_0x885e52(0x6a)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
1
+ function _0x47f7(_0x1051b8,_0x52c8da){_0x1051b8=_0x1051b8-0xd7;const _0x12f7b1=_0x12f7();let _0x47f76b=_0x12f7b1[_0x1051b8];return _0x47f76b;}function _0x12f7(){const _0x3fe1b7=['2822757JmxcBv','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','AXepd','7cwnTOH','234660irLTfW','\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','8280279EPvoan','</div>','5597480GCQetu',';\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','stringify','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','7980952aPtUvP','2sDrKMP','1229592YcnbKd','442682NQuKOh','asans','addInitScript','\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'];_0x12f7=function(){return _0x3fe1b7;};return _0x12f7();}(function(_0x4374c0,_0x2d881e){const _0x44b1ac=_0x47f7,_0x48ba91=_0x4374c0();while(!![]){try{const _0x2eb839=parseInt(_0x44b1ac(0xdc))/0x1+-parseInt(_0x44b1ac(0xda))/0x2*(-parseInt(_0x44b1ac(0xe0))/0x3)+parseInt(_0x44b1ac(0xdb))/0x4+-parseInt(_0x44b1ac(0xe8))/0x5+-parseInt(_0x44b1ac(0xe4))/0x6+-parseInt(_0x44b1ac(0xe3))/0x7*(-parseInt(_0x44b1ac(0xd9))/0x8)+-parseInt(_0x44b1ac(0xe6))/0x9;if(_0x2eb839===_0x2d881e)break;else _0x48ba91['push'](_0x48ba91['shift']());}catch(_0x1ab9c6){_0x48ba91['push'](_0x48ba91['shift']());}}}(_0x12f7,0x94ebd));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0xf60cde=_0x47f7,_0x43968a={'asans':function(_0x214839,_0x27467e){return _0x214839+_0x27467e;},'PUSRo':'<div\x20class=\x22ranger-banner__message\x22>','AXepd':_0xf60cde(0xd8),'HvrMy':'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','zhadz':'</div>'},_0x2e308a=_0x43968a['asans'](_0x43968a[_0xf60cde(0xdd)](_0x43968a[_0xf60cde(0xdd)]('<div\x20class=\x22ranger-banner__content\x22>'+'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>',_0x43968a['PUSRo'])+_0x43968a[_0xf60cde(0xe2)]+_0x43968a['HvrMy']+_0xf60cde(0xe7),_0x43968a['zhadz']),_0xf60cde(0xe1)),_0x35f9a4=_0xf60cde(0xdf);return _0xf60cde(0xe5)+JSON[_0xf60cde(0xd7)](_0x2e308a)+_0xf60cde(0xe9)+JSON[_0xf60cde(0xd7)](_0x35f9a4)+';\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(_0x292972){const _0x3b79c1=_0x47f7;await _0x292972[_0x3b79c1(0xde)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
@@ -1 +1 @@
1
- (function(_0x3f6f43,_0x17441f){const _0x271f65=_0x35e4,_0x3c15f5=_0x3f6f43();while(!![]){try{const _0xba4813=-parseInt(_0x271f65(0xaf))/0x1+parseInt(_0x271f65(0x95))/0x2*(parseInt(_0x271f65(0x9e))/0x3)+-parseInt(_0x271f65(0xa9))/0x4+parseInt(_0x271f65(0x9f))/0x5+parseInt(_0x271f65(0xad))/0x6+-parseInt(_0x271f65(0x9b))/0x7*(-parseInt(_0x271f65(0x9a))/0x8)+parseInt(_0x271f65(0x88))/0x9;if(_0xba4813===_0x17441f)break;else _0x3c15f5['push'](_0x3c15f5['shift']());}catch(_0x1943ff){_0x3c15f5['push'](_0x3c15f5['shift']());}}}(_0x1b3d,0xaf1df));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 _0x34ffbc=_0x35e4,_0x177a8d={'FCUmR':_0x34ffbc(0x8d)};return join(getRangerHomeDir(),_0x177a8d['FCUmR']);}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x4ea49f=_0x35e4,_0x24bce2={'XxrcB':function(_0x32e505){return _0x32e505();},'IPvrc':function(_0x5c676b,_0x4fc7ff){return _0x5c676b(_0x4fc7ff);},'TEGTR':function(_0x53d2b3){return _0x53d2b3();},'puaQO':function(_0x3274db,_0x162c3a,_0x10ff16){return _0x3274db(_0x162c3a,_0x10ff16);},'IFPQZ':'utf-8','bgXSu':function(_0x3c6ec4){return _0x3c6ec4();},'pyiIW':function(_0xb04696,_0x4a8cd5){return _0xb04696 instanceof _0x4a8cd5;},'qyNCh':function(_0x3617e2,_0x242575){return _0x3617e2!==_0x242575;},'KmJNh':function(_0x57142b,_0x3c8324){return _0x57142b===_0x3c8324;},'uKRso':function(_0x157c72){return _0x157c72();}},_0x364635=_0x24bce2['XxrcB'](getProjectsConfigPath);if(!_0x24bce2['IPvrc'](existsSync,_0x364635))return _0x24bce2['TEGTR'](emptyConfig);let _0x223792;try{_0x223792=_0x24bce2['puaQO'](readFileSync,_0x364635,_0x24bce2['IFPQZ']);}catch(_0x15848f){const _0x3d7223=_0x15848f instanceof Error?_0x15848f['message']:String(_0x15848f);return console['warn']('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x364635+':\x20'+_0x3d7223+'.\x20Ignoring\x20local\x20profile\x20overrides.'),_0x24bce2[_0x4ea49f(0x97)](emptyConfig);}let _0x345999;try{_0x345999=JSON[_0x4ea49f(0x8a)](_0x223792);}catch(_0x162760){const _0x37f500=_0x24bce2['pyiIW'](_0x162760,Error)?_0x162760[_0x4ea49f(0x99)]:String(_0x162760);return console['warn']('[ranger]\x20Warning:\x20'+_0x364635+'\x20is\x20not\x20valid\x20JSON\x20('+_0x37f500+_0x4ea49f(0xa3)),emptyConfig();}if(!_0x345999||typeof _0x345999!==_0x4ea49f(0x87)||Array[_0x4ea49f(0xab)](_0x345999)||_0x24bce2['qyNCh'](_0x345999[_0x4ea49f(0x8e)],CURRENT_VERSION)||_0x24bce2['qyNCh'](typeof _0x345999['projects'],'object')||_0x24bce2[_0x4ea49f(0x98)](_0x345999[_0x4ea49f(0xa6)],null)||Array[_0x4ea49f(0xab)](_0x345999[_0x4ea49f(0xa6)]))return console[_0x4ea49f(0x93)]('[ranger]\x20Warning:\x20'+_0x364635+_0x4ea49f(0x8f)),_0x24bce2['uKRso'](emptyConfig);return _0x345999;}export function writeProjectsConfig(_0x4c1886){const _0x20f95c=_0x35e4,_0x180c5f={'YxiUW':function(_0x1ca678,_0x253d25){return _0x1ca678(_0x253d25);},'fpqbl':function(_0x4b0333,_0x31617d,_0x586fa5){return _0x4b0333(_0x31617d,_0x586fa5);},'rlmvH':_0x20f95c(0xa0),'DiCSk':function(_0x27f9a9,_0x1072a1,_0x40c96c){return _0x27f9a9(_0x1072a1,_0x40c96c);},'VLNSV':function(_0x30593e,_0x3dfa52){return _0x30593e(_0x3dfa52);}},_0x427f29=getProjectsConfigPath(),_0xeb285d=_0x180c5f['YxiUW'](dirname,_0x427f29);!existsSync(_0xeb285d)&&_0x180c5f[_0x20f95c(0x86)](mkdirSync,_0xeb285d,{'recursive':!![]});const _0x1f6b20=_0x427f29+'.'+process['pid']+'.'+Date['now']()+'.tmp',_0x15417c=JSON[_0x20f95c(0x9d)](_0x4c1886,null,0x2)+'\x0a';try{writeFileSync(_0x1f6b20,_0x15417c,{'encoding':_0x180c5f['rlmvH'],'mode':0x180}),_0x180c5f['DiCSk'](renameSync,_0x1f6b20,_0x427f29);}catch(_0x33eff6){try{existsSync(_0x1f6b20)&&_0x180c5f['VLNSV'](unlinkSync,_0x1f6b20);}catch{}throw _0x33eff6;}}export function readProfileOverrides(_0x320482,_0x45ee0b){const _0x222cdd=_0x35e4,_0x2f01dd=readProjectsConfig(),_0x57d2d2=_0x2f01dd['projects'][_0x320482];if(!_0x57d2d2||!_0x57d2d2['profiles'])return null;const _0x694dbb=_0x57d2d2['profiles'][_0x45ee0b];if(!_0x694dbb||!_0x694dbb[_0x222cdd(0x94)])return null;return _0x694dbb['settings']??null;}export function setProfileOverride(_0x24e5dc,_0x6a6aec,_0x21a7fa,_0xdadf23){const _0x321e4d=_0x35e4,_0x5edc65={'ysxHx':function(_0x473359){return _0x473359();},'jPxRa':function(_0x5ae67e,_0x110492,_0x46cefc,_0x4e3f3e){return _0x5ae67e(_0x110492,_0x46cefc,_0x4e3f3e);}};if(!_0x21a7fa)throw new Error('keyPath\x20is\x20required');const _0x5f5571=_0x5edc65[_0x321e4d(0xa5)](readProjectsConfig),_0x2b7732=_0x5f5571[_0x321e4d(0xa6)][_0x24e5dc]??={},_0xd1b47d=_0x2b7732[_0x321e4d(0xa8)]??={},_0x2b7921=_0xd1b47d[_0x6a6aec]??={},_0x282101=_0x2b7921['settings']??={};_0x5edc65['jPxRa'](setByKeyPath,_0x282101,_0x21a7fa,_0xdadf23),writeProjectsConfig(_0x5f5571);}export function unsetProfileOverride(_0x54224d,_0x362883,_0x4a2964){const _0x13a33f=_0x35e4,_0x33da2c={'SDPBE':_0x13a33f(0x90),'gNwzS':function(_0x5bb2e0){return _0x5bb2e0();},'PTBeA':function(_0x1f5202,_0x5a3b14,_0xbd59f9){return _0x1f5202(_0x5a3b14,_0xbd59f9);}};if(!_0x4a2964)throw new Error(_0x33da2c[_0x13a33f(0x8c)]);const _0x4b9322=_0x33da2c[_0x13a33f(0x8b)](readProjectsConfig),_0x2df73a=_0x4b9322['projects'][_0x54224d];if(!_0x2df73a?.['profiles'])return![];const _0x201d58=_0x2df73a['profiles'][_0x362883];if(!_0x201d58?.['settings'])return![];const _0x50e5e9=_0x33da2c[_0x13a33f(0xac)](deleteByKeyPath,_0x201d58[_0x13a33f(0x94)],_0x4a2964);if(!_0x50e5e9)return![];return writeProjectsConfig(_0x4b9322),!![];}export function resetProfileOverrides(_0x4c90a9,_0x7d6889){const _0x43a6dd=_0x35e4,_0x261a5b={'VEqeb':function(_0x18b768,_0x1913d6){return _0x18b768 in _0x1913d6;},'EQsRD':function(_0x54a602,_0xd0e2e0){return _0x54a602(_0xd0e2e0);}},_0x3acb3b=readProjectsConfig(),_0x431ee0=_0x3acb3b['projects'][_0x4c90a9];if(!_0x431ee0?.['profiles'])return;if(!_0x261a5b[_0x43a6dd(0xa4)](_0x7d6889,_0x431ee0[_0x43a6dd(0xa8)]))return;delete _0x431ee0[_0x43a6dd(0xa8)][_0x7d6889],Object[_0x43a6dd(0xae)](_0x431ee0['profiles'])[_0x43a6dd(0xaa)]===0x0&&delete _0x431ee0[_0x43a6dd(0xa8)],!_0x431ee0[_0x43a6dd(0xa8)]&&delete _0x3acb3b['projects'][_0x4c90a9],_0x261a5b['EQsRD'](writeProjectsConfig,_0x3acb3b);}export function mergeCloudProfileSettings(_0x59f7ff,_0x216d9a){const _0x23d5e4=_0x35e4,_0x47dc0b={'oiFbN':function(_0x58d9dc,_0x1760b0){return _0x58d9dc??_0x1760b0;},'vCIMA':function(_0x4a803b,_0x39ef66){return _0x4a803b===_0x39ef66;},'DkXlD':function(_0xebfbe3,_0x50e35c){return _0xebfbe3===_0x50e35c;},'OfnCp':function(_0x569743,_0x123be0){return _0x569743(_0x123be0);},'UISRR':function(_0x58ce28,_0xb7be64){return _0x58ce28(_0xb7be64);},'JBmdq':function(_0x43e8e7,_0x4b1339){return _0x43e8e7===_0x4b1339;}},_0x130feb={..._0x47dc0b['oiFbN'](_0x59f7ff,{})};if(!_0x216d9a)return _0x130feb;for(const [_0x982195,_0x538682]of Object[_0x23d5e4(0x89)](_0x216d9a)){if(_0x47dc0b[_0x23d5e4(0x91)](_0x538682,undefined))continue;if(_0x538682===null){delete _0x130feb[_0x982195];continue;}if(_0x47dc0b[_0x23d5e4(0x9c)](_0x982195,_0x23d5e4(0x92))||_0x982195==='setupHeaders'){const _0x5508b8=_0x47dc0b[_0x23d5e4(0xa7)](asRecord,_0x130feb[_0x982195])??{},_0x4d3659=_0x47dc0b[_0x23d5e4(0xa2)](asRecord,_0x538682);if(!_0x4d3659){_0x130feb[_0x982195]=_0x538682;continue;}const _0x1e78bd={..._0x5508b8};for(const [_0x437117,_0x970f95]of Object[_0x23d5e4(0x89)](_0x4d3659)){if(_0x47dc0b[_0x23d5e4(0xa1)](_0x970f95,null))delete _0x1e78bd[_0x437117];else _0x970f95!==undefined&&(_0x1e78bd[_0x437117]=_0x970f95);}_0x130feb[_0x982195]=_0x1e78bd;continue;}_0x130feb[_0x982195]=_0x538682;}return _0x130feb;}function _0x35e4(_0x4d6f8e,_0x2f05c9){_0x4d6f8e=_0x4d6f8e-0x84;const _0x1b3d70=_0x1b3d();let _0x35e42e=_0x1b3d70[_0x4d6f8e];return _0x35e42e;}function asRecord(_0x4ff0fe){const _0x47af76=_0x35e4,_0x1515b5={'sxIxr':function(_0x290e7d,_0x33bb5a){return _0x290e7d===_0x33bb5a;},'zARrj':_0x47af76(0x87)};return _0x4ff0fe&&_0x1515b5['sxIxr'](typeof _0x4ff0fe,_0x1515b5[_0x47af76(0x84)])&&!Array['isArray'](_0x4ff0fe)?_0x4ff0fe:undefined;}function setByKeyPath(_0x102b2d,_0x35bfb0,_0x18be89){const _0x9bf025=_0x35e4,_0x45f596={'GWIwr':function(_0x5c7fed,_0xd280a9){return _0x5c7fed!==_0xd280a9;}},_0x54d826=_0x35bfb0[_0x9bf025(0x85)]('.');let _0xcd7aa2=_0x102b2d;for(let _0x194f1c=0x0;_0x194f1c<_0x54d826['length']-0x1;_0x194f1c++){const _0xef22a1=_0x54d826[_0x194f1c],_0x5d2ee1=_0xcd7aa2[_0xef22a1];(!_0x5d2ee1||_0x45f596['GWIwr'](typeof _0x5d2ee1,'object')||Array['isArray'](_0x5d2ee1))&&(_0xcd7aa2[_0xef22a1]={}),_0xcd7aa2=_0xcd7aa2[_0xef22a1];}_0xcd7aa2[_0x54d826[_0x54d826[_0x9bf025(0xaa)]-0x1]]=_0x18be89;}function _0x1b3d(){const _0x453e78=['zARrj','split','fpqbl','object','5090004UCwOxS','entries','parse','gNwzS','SDPBE','projects.json','version','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','keyPath\x20is\x20required','vCIMA','headers','warn','settings','51110wLydQE','uZwVn','bgXSu','KmJNh','message','56hPXQpJ','576247NqzJwx','DkXlD','stringify','111AGoJlX','197435XoqXGR','utf-8','JBmdq','UISRR',').\x20Ignoring\x20local\x20profile\x20overrides.','VEqeb','ysxHx','projects','OfnCp','profiles','5092040nqIWkj','length','isArray','PTBeA','7153698APlfZv','keys','1328819QmSFqX'];_0x1b3d=function(){return _0x453e78;};return _0x1b3d();}function deleteByKeyPath(_0x5ba8e5,_0x5c2ff7){const _0x41ea2d=_0x35e4,_0x48381f={'uZwVn':function(_0x43c6ec,_0x49c814){return _0x43c6ec-_0x49c814;}},_0x147fe4=_0x5c2ff7['split']('.');let _0x34eda2=_0x5ba8e5;for(let _0x5310ce=0x0;_0x5310ce<_0x147fe4['length']-0x1;_0x5310ce++){const _0x52f8bf=_0x147fe4[_0x5310ce],_0x48116c=_0x34eda2[_0x52f8bf];if(!_0x48116c||typeof _0x48116c!=='object'||Array['isArray'](_0x48116c))return![];_0x34eda2=_0x48116c;}const _0x47d968=_0x147fe4[_0x48381f[_0x41ea2d(0x96)](_0x147fe4[_0x41ea2d(0xaa)],0x1)];if(!(_0x47d968 in _0x34eda2))return![];return delete _0x34eda2[_0x47d968],!![];}
1
+ (function(_0x518cdd,_0x2c7d45){const _0x1634d8=_0x3aa9,_0x12727c=_0x518cdd();while(!![]){try{const _0x2e6995=parseInt(_0x1634d8(0x149))/0x1+parseInt(_0x1634d8(0x136))/0x2*(parseInt(_0x1634d8(0x12f))/0x3)+parseInt(_0x1634d8(0x13f))/0x4+-parseInt(_0x1634d8(0x141))/0x5+parseInt(_0x1634d8(0x11e))/0x6+parseInt(_0x1634d8(0x139))/0x7+-parseInt(_0x1634d8(0x12c))/0x8;if(_0x2e6995===_0x2c7d45)break;else _0x12727c['push'](_0x12727c['shift']());}catch(_0x5442bb){_0x12727c['push'](_0x12727c['shift']());}}}(_0x38b7,0xdc60e));function _0x3aa9(_0x25e6b1,_0x2c96c1){_0x25e6b1=_0x25e6b1-0x11c;const _0x38b747=_0x38b7();let _0x3aa900=_0x38b747[_0x25e6b1];return _0x3aa900;}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 _0xbfe1b2=_0x3aa9,_0xb5967c={'TYdYA':function(_0x53417,_0x1c2bcd,_0x364902){return _0x53417(_0x1c2bcd,_0x364902);},'ELAJd':function(_0x509470){return _0x509470();}};return _0xb5967c['TYdYA'](join,_0xb5967c[_0xbfe1b2(0x124)](getRangerHomeDir),_0xbfe1b2(0x123));}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x15f246=_0x3aa9,_0x4dfb02={'qAlAC':function(_0x41de92,_0x20bafa){return _0x41de92(_0x20bafa);},'ptkWY':function(_0x3e85e1,_0x2612f8,_0xacab68){return _0x3e85e1(_0x2612f8,_0xacab68);},'FhKMK':'utf-8','APCYx':function(_0x59b95b,_0x17d389){return _0x59b95b instanceof _0x17d389;},'JCsXZ':function(_0x5f4731){return _0x5f4731();},'lSTKs':function(_0x3caf44,_0x22f283){return _0x3caf44 instanceof _0x22f283;},'GDgwf':function(_0x145ef4,_0x33cfa1){return _0x145ef4!==_0x33cfa1;},'JJcTO':'object','YBUGI':function(_0x485b49,_0x5299bd){return _0x485b49===_0x5299bd;}},_0x26d504=getProjectsConfigPath();if(!_0x4dfb02['qAlAC'](existsSync,_0x26d504))return emptyConfig();let _0x2706ab;try{_0x2706ab=_0x4dfb02[_0x15f246(0x11d)](readFileSync,_0x26d504,_0x4dfb02['FhKMK']);}catch(_0x41a395){const _0x34e4dd=_0x4dfb02[_0x15f246(0x127)](_0x41a395,Error)?_0x41a395['message']:String(_0x41a395);return console['warn'](_0x15f246(0x129)+_0x26d504+':\x20'+_0x34e4dd+_0x15f246(0x138)),_0x4dfb02[_0x15f246(0x121)](emptyConfig);}let _0x342290;try{_0x342290=JSON['parse'](_0x2706ab);}catch(_0x2f99b4){const _0xd1e726=_0x4dfb02[_0x15f246(0x126)](_0x2f99b4,Error)?_0x2f99b4[_0x15f246(0x120)]:_0x4dfb02['qAlAC'](String,_0x2f99b4);return console[_0x15f246(0x11c)](_0x15f246(0x130)+_0x26d504+_0x15f246(0x13e)+_0xd1e726+').\x20Ignoring\x20local\x20profile\x20overrides.'),_0x4dfb02[_0x15f246(0x121)](emptyConfig);}if(!_0x342290||_0x4dfb02['GDgwf'](typeof _0x342290,'object')||Array[_0x15f246(0x12d)](_0x342290)||_0x342290['version']!==CURRENT_VERSION||_0x4dfb02[_0x15f246(0x12b)](typeof _0x342290['projects'],_0x4dfb02[_0x15f246(0x13b)])||_0x4dfb02[_0x15f246(0x146)](_0x342290['projects'],null)||Array['isArray'](_0x342290[_0x15f246(0x142)]))return console[_0x15f246(0x11c)]('[ranger]\x20Warning:\x20'+_0x26d504+_0x15f246(0x140)),emptyConfig();return _0x342290;}function _0x38b7(){const _0x408ddb=['APCYx','rVMGy','[ranger]\x20Warning:\x20failed\x20to\x20read\x20','dVwdt','GDgwf','16286744OzTWta','isArray','apfLK','12477jAsiJH','[ranger]\x20Warning:\x20','JGlnE','split','utf-8','tIgOH','RAEEb','648QesIyK','sDtSf','.\x20Ignoring\x20local\x20profile\x20overrides.','2141965gYpBKN','length','JJcTO','AVqtG','XlRNX','\x20is\x20not\x20valid\x20JSON\x20(','2999640VtooBT','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','6608810MdHaOz','projects','settings','stringify','.tmp','YBUGI','lastProfile','profiles','1588626PkEfsM','warn','ptkWY','1609368KmzMmU','headers','message','JCsXZ','object','projects.json','ELAJd','OZHBq','lSTKs'];_0x38b7=function(){return _0x408ddb;};return _0x38b7();}export function writeProjectsConfig(_0x7bc28a){const _0x2ac68d=_0x3aa9,_0x752d92={'sDtSf':function(_0x27d414){return _0x27d414();},'qeWhY':_0x2ac68d(0x133)},_0x10b2d1=_0x752d92[_0x2ac68d(0x137)](getProjectsConfigPath),_0x1497f1=dirname(_0x10b2d1);!existsSync(_0x1497f1)&&mkdirSync(_0x1497f1,{'recursive':!![]});const _0x3e87b1=_0x10b2d1+'.'+process['pid']+'.'+Date['now']()+_0x2ac68d(0x145),_0x50c06e=JSON[_0x2ac68d(0x144)](_0x7bc28a,null,0x2)+'\x0a';try{writeFileSync(_0x3e87b1,_0x50c06e,{'encoding':_0x752d92['qeWhY'],'mode':0x180}),renameSync(_0x3e87b1,_0x10b2d1);}catch(_0x4fb921){try{existsSync(_0x3e87b1)&&unlinkSync(_0x3e87b1);}catch{}throw _0x4fb921;}}export function readProfileOverrides(_0x474f11,_0x1afe6a){const _0x2f8b94=_0x3aa9,_0x2fbbdd={'AVqtG':function(_0x304663){return _0x304663();}},_0x362abe=_0x2fbbdd[_0x2f8b94(0x13c)](readProjectsConfig),_0x20aa77=_0x362abe[_0x2f8b94(0x142)][_0x474f11];if(!_0x20aa77||!_0x20aa77['profiles'])return null;const _0x900568=_0x20aa77[_0x2f8b94(0x148)][_0x1afe6a];if(!_0x900568||!_0x900568[_0x2f8b94(0x143)])return null;return _0x900568[_0x2f8b94(0x143)]??null;}export function setProfileOverride(_0x3f1ff4,_0x5e9c46,_0x397922,_0x4f6f0a){const _0x45405b=_0x3aa9,_0x56d18={'dVwdt':function(_0x97c9d3,_0x154eec){return _0x97c9d3(_0x154eec);}};if(!_0x397922)throw new Error('keyPath\x20is\x20required');const _0xfae307=readProjectsConfig(),_0x4e5f75=_0xfae307['projects'][_0x3f1ff4]??={},_0x3ac49f=_0x4e5f75['profiles']??={},_0xe0fdd3=_0x3ac49f[_0x5e9c46]??={},_0x592f96=_0xe0fdd3['settings']??={};setByKeyPath(_0x592f96,_0x397922,_0x4f6f0a),_0x56d18[_0x45405b(0x12a)](writeProjectsConfig,_0xfae307);}export function unsetProfileOverride(_0x311bf6,_0x196723,_0x51c01f){const _0x45c917=_0x3aa9,_0x1ac1cf={'JGlnE':function(_0x20b924){return _0x20b924();},'OZHBq':function(_0x2095c8,_0x31ec35){return _0x2095c8(_0x31ec35);}};if(!_0x51c01f)throw new Error('keyPath\x20is\x20required');const _0x16a90e=_0x1ac1cf[_0x45c917(0x131)](readProjectsConfig),_0x4f369c=_0x16a90e['projects'][_0x311bf6];if(!_0x4f369c?.['profiles'])return![];const _0x53e5b5=_0x4f369c['profiles'][_0x196723];if(!_0x53e5b5?.[_0x45c917(0x143)])return![];const _0x5d9881=deleteByKeyPath(_0x53e5b5['settings'],_0x51c01f);if(!_0x5d9881)return![];return _0x1ac1cf[_0x45c917(0x125)](writeProjectsConfig,_0x16a90e),!![];}export function resetProfileOverrides(_0x23157e,_0x7f586f){const _0x3a547b=_0x3aa9,_0x533c27={'fTEkH':function(_0x4de5c2,_0x332518){return _0x4de5c2 in _0x332518;},'pmLUT':function(_0x28df2e,_0x744faf){return _0x28df2e===_0x744faf;},'ZEByJ':function(_0xa37509,_0x15f393){return _0xa37509(_0x15f393);}},_0x46675d=readProjectsConfig(),_0x3090fe=_0x46675d['projects'][_0x23157e];if(!_0x3090fe?.[_0x3a547b(0x148)])return;if(!_0x533c27['fTEkH'](_0x7f586f,_0x3090fe['profiles']))return;delete _0x3090fe['profiles'][_0x7f586f],_0x533c27['pmLUT'](Object['keys'](_0x3090fe[_0x3a547b(0x148)])['length'],0x0)&&(!_0x3090fe['lastProfile']?delete _0x46675d[_0x3a547b(0x142)][_0x23157e]:_0x3090fe[_0x3a547b(0x148)]={}),_0x533c27['ZEByJ'](writeProjectsConfig,_0x46675d);}export function readLastProfile(_0x58c10b){const _0x35914a=readProjectsConfig(),_0xa40478=_0x35914a['projects'][_0x58c10b];return _0xa40478?.['lastProfile']??null;}export function writeLastProfile(_0x26f441,_0x57f78c){const _0x1d05a7=_0x3aa9,_0x487912={'RHASK':function(_0x5b4754){return _0x5b4754();}},_0x13e354=_0x487912['RHASK'](readProjectsConfig),_0xf8a0ff=_0x13e354[_0x1d05a7(0x142)][_0x26f441]??={};_0xf8a0ff[_0x1d05a7(0x147)]=_0x57f78c,writeProjectsConfig(_0x13e354);}export function mergeCloudProfileSettings(_0xd936e3,_0x58a910){const _0x2378f6=_0x3aa9,_0x51babf={'KJiBx':function(_0x27bc44,_0x1b09b2){return _0x27bc44??_0x1b09b2;},'Njxzf':function(_0x2803ff,_0x5edfe6){return _0x2803ff===_0x5edfe6;},'apfLK':function(_0x55fcf4,_0x22c730){return _0x55fcf4===_0x22c730;},'XlRNX':'setupHeaders','tIgOH':function(_0x310753,_0x42c12e){return _0x310753(_0x42c12e);}},_0xdb92ba={..._0x51babf['KJiBx'](_0xd936e3,{})};if(!_0x58a910)return _0xdb92ba;for(const [_0x5e7b0f,_0x10fa9c]of Object['entries'](_0x58a910)){if(_0x51babf['Njxzf'](_0x10fa9c,undefined))continue;if(_0x10fa9c===null){delete _0xdb92ba[_0x5e7b0f];continue;}if(_0x51babf[_0x2378f6(0x12e)](_0x5e7b0f,_0x2378f6(0x11f))||_0x5e7b0f===_0x51babf[_0x2378f6(0x13d)]){const _0x2d8860=_0x51babf[_0x2378f6(0x134)](asRecord,_0xdb92ba[_0x5e7b0f])??{},_0x56db37=asRecord(_0x10fa9c);if(!_0x56db37){_0xdb92ba[_0x5e7b0f]=_0x10fa9c;continue;}const _0x53a15a={..._0x2d8860};for(const [_0x31ed00,_0x6b66b0]of Object['entries'](_0x56db37)){if(_0x6b66b0===null)delete _0x53a15a[_0x31ed00];else _0x6b66b0!==undefined&&(_0x53a15a[_0x31ed00]=_0x6b66b0);}_0xdb92ba[_0x5e7b0f]=_0x53a15a;continue;}_0xdb92ba[_0x5e7b0f]=_0x10fa9c;}return _0xdb92ba;}function asRecord(_0x56a0cb){const _0xafeb8d=_0x3aa9,_0x9184fb={'RAEEb':function(_0x3f3fb9,_0x4ca88d){return _0x3f3fb9===_0x4ca88d;},'rVMGy':'object'};return _0x56a0cb&&_0x9184fb[_0xafeb8d(0x135)](typeof _0x56a0cb,_0x9184fb[_0xafeb8d(0x128)])&&!Array['isArray'](_0x56a0cb)?_0x56a0cb:undefined;}function setByKeyPath(_0x3e3745,_0x3d4d1,_0x2e981a){const _0x2b8ad6=_0x3aa9,_0x549ba1={'daeiz':function(_0x2853bf,_0x2652ea){return _0x2853bf<_0x2652ea;},'sWDHU':function(_0x1ce7b3,_0x6c59d0){return _0x1ce7b3!==_0x6c59d0;}},_0x37a9d3=_0x3d4d1['split']('.');let _0x2c1700=_0x3e3745;for(let _0x1b5b25=0x0;_0x549ba1['daeiz'](_0x1b5b25,_0x37a9d3[_0x2b8ad6(0x13a)]-0x1);_0x1b5b25++){const _0x6f6331=_0x37a9d3[_0x1b5b25],_0x5ae0b3=_0x2c1700[_0x6f6331];(!_0x5ae0b3||_0x549ba1['sWDHU'](typeof _0x5ae0b3,'object')||Array['isArray'](_0x5ae0b3))&&(_0x2c1700[_0x6f6331]={}),_0x2c1700=_0x2c1700[_0x6f6331];}_0x2c1700[_0x37a9d3[_0x37a9d3[_0x2b8ad6(0x13a)]-0x1]]=_0x2e981a;}function deleteByKeyPath(_0x392887,_0x3c3341){const _0x2e6273=_0x3aa9,_0x3b85ad={'uqOUJ':function(_0x14ad7c,_0x19a9aa){return _0x14ad7c!==_0x19a9aa;},'anWQp':_0x2e6273(0x122)},_0x3d9476=_0x3c3341[_0x2e6273(0x132)]('.');let _0x26eac0=_0x392887;for(let _0x206e00=0x0;_0x206e00<_0x3d9476[_0x2e6273(0x13a)]-0x1;_0x206e00++){const _0x931188=_0x3d9476[_0x206e00],_0x4be7ca=_0x26eac0[_0x931188];if(!_0x4be7ca||_0x3b85ad['uqOUJ'](typeof _0x4be7ca,_0x3b85ad['anWQp'])||Array['isArray'](_0x4be7ca))return![];_0x26eac0=_0x4be7ca;}const _0x356333=_0x3d9476[_0x3d9476[_0x2e6273(0x13a)]-0x1];if(!(_0x356333 in _0x26eac0))return![];return delete _0x26eac0[_0x356333],!![];}
@@ -1 +1 @@
1
- (function(_0x2a95bf,_0x44bf73){const _0x5a2d3b=_0xfd9c,_0x11fe64=_0x2a95bf();while(!![]){try{const _0x43ad6a=-parseInt(_0x5a2d3b(0x1ef))/0x1*(-parseInt(_0x5a2d3b(0x1e9))/0x2)+-parseInt(_0x5a2d3b(0x1f5))/0x3*(-parseInt(_0x5a2d3b(0x1f4))/0x4)+parseInt(_0x5a2d3b(0x1fc))/0x5+parseInt(_0x5a2d3b(0x1f8))/0x6*(-parseInt(_0x5a2d3b(0x1f6))/0x7)+-parseInt(_0x5a2d3b(0x1f1))/0x8*(parseInt(_0x5a2d3b(0x1f7))/0x9)+-parseInt(_0x5a2d3b(0x1e7))/0xa+parseInt(_0x5a2d3b(0x1ea))/0xb*(parseInt(_0x5a2d3b(0x1ee))/0xc);if(_0x43ad6a===_0x44bf73)break;else _0x11fe64['push'](_0x11fe64['shift']());}catch(_0x5a933e){_0x11fe64['push'](_0x11fe64['shift']());}}}(_0xc5e7,0xd8366));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';function _0xfd9c(_0x2fc716,_0x49a1dc){_0x2fc716=_0x2fc716-0x1e6;const _0xc5e755=_0xc5e7();let _0xfd9c6c=_0xc5e755[_0x2fc716];return _0xfd9c6c;}import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x3242a2=_0xfd9c,_0x2339f2={'MKaJI':function(_0x3986cf,_0x27ed27,_0x4d5e51){return _0x3986cf(_0x27ed27,_0x4d5e51);}};return _0x2339f2[_0x3242a2(0x1f0)](join,getRangerDir(),_0x3242a2(0x1fa));}function _0xc5e7(){const _0x4c81ac=['dBJFj','63085DNxtyA','qDIsL','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','12498990FmjxCG','yGfrq','1506wvziAf','1043482egwvgF','warn','string','object','420ASVRbz','909oFmHMk','MKaJI','7033848LyNqLM','utf-8','message','4LWpdRy','4264881UzStnO','28tRYwQW','18LLoawA','2317386AhbBDM','model','config.json'];_0xc5e7=function(){return _0x4c81ac;};return _0xc5e7();}export async function loadRangerConfig(){const _0x3aa2c6=_0xfd9c,_0x4a710f={'aReCP':function(_0x3bca74,_0x1086ce){return _0x3bca74(_0x1086ce);},'RXHJW':function(_0x1fa376,_0x3ef9af,_0x142ee7){return _0x1fa376(_0x3ef9af,_0x142ee7);},'yGfrq':_0x3aa2c6(0x1f2),'dBJFj':function(_0x4a0f6c,_0x282399){return _0x4a0f6c!==_0x282399;},'qDIsL':_0x3aa2c6(0x1ed),'Dfbai':_0x3aa2c6(0x1ec)},_0x6af713=getRangerConfigPath();if(!_0x4a710f['aReCP'](existsSync,_0x6af713))return{};try{const _0x4ed833=await _0x4a710f['RXHJW'](readFile,_0x6af713,_0x4a710f[_0x3aa2c6(0x1e8)]),_0x154855=JSON['parse'](_0x4ed833);if(!_0x154855||_0x4a710f[_0x3aa2c6(0x1fb)](typeof _0x154855,_0x4a710f[_0x3aa2c6(0x1fd)])||Array['isArray'](_0x154855))return{};const _0x10233d={},_0x35571d=_0x154855[_0x3aa2c6(0x1f9)];return typeof _0x35571d===_0x4a710f['Dfbai']&&(_0x10233d[_0x3aa2c6(0x1f9)]=_0x35571d),_0x10233d;}catch(_0x4a336d){const _0x5dfc19=_0x4a336d instanceof Error?_0x4a336d[_0x3aa2c6(0x1f3)]:String(_0x4a336d);return console[_0x3aa2c6(0x1eb)](_0x3aa2c6(0x1e6)+_0x6af713+':\x20'+_0x5dfc19),{};}}
1
+ (function(_0x113a66,_0x170a8e){const _0x5d3f6f=_0x4a33,_0x3e6269=_0x113a66();while(!![]){try{const _0x157111=-parseInt(_0x5d3f6f(0x6e))/0x1*(-parseInt(_0x5d3f6f(0x67))/0x2)+parseInt(_0x5d3f6f(0x71))/0x3+parseInt(_0x5d3f6f(0x74))/0x4+parseInt(_0x5d3f6f(0x70))/0x5+parseInt(_0x5d3f6f(0x73))/0x6*(parseInt(_0x5d3f6f(0x6d))/0x7)+parseInt(_0x5d3f6f(0x68))/0x8*(parseInt(_0x5d3f6f(0x69))/0x9)+-parseInt(_0x5d3f6f(0x65))/0xa*(parseInt(_0x5d3f6f(0x6a))/0xb);if(_0x157111===_0x170a8e)break;else _0x3e6269['push'](_0x3e6269['shift']());}catch(_0x459be0){_0x3e6269['push'](_0x3e6269['shift']());}}}(_0x1157,0x61de2));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';function _0x4a33(_0x4b35e7,_0x8a52de){_0x4b35e7=_0x4b35e7-0x64;const _0x1157a2=_0x1157();let _0x4a333f=_0x1157a2[_0x4b35e7];return _0x4a333f;}function _0x1157(){const _0x146b66=['120215KMmTIo','nWWjp','3276855WVyrDE','2096139fdKNNg','aTLqK','3162mpNDqe','2044424zIjwcd','warn','790meWATH','parse','2ZFsNgw','32ryxKHd','618372SWdNQs','328317GejZuJ','message','model','6622SwWOEX'];_0x1157=function(){return _0x146b66;};return _0x1157();}import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x1820b8={'AcTzM':function(_0x3c8574,_0x2f027d,_0x2f8e9c){return _0x3c8574(_0x2f027d,_0x2f8e9c);},'jVhFs':function(_0x24a584){return _0x24a584();}};return _0x1820b8['AcTzM'](join,_0x1820b8['jVhFs'](getRangerDir),'config.json');}export async function loadRangerConfig(){const _0x24ce4f=_0x4a33,_0xdc3c7b={'nWWjp':function(_0x444361){return _0x444361();},'aTLqK':function(_0x1732f1,_0x1017be,_0x1b7afc){return _0x1732f1(_0x1017be,_0x1b7afc);},'nEiGQ':function(_0x3d15b5,_0x42c8da){return _0x3d15b5!==_0x42c8da;},'OPCnF':'object','spHBg':'string'},_0x1a0e42=_0xdc3c7b[_0x24ce4f(0x6f)](getRangerConfigPath);if(!existsSync(_0x1a0e42))return{};try{const _0x9d1f8d=await _0xdc3c7b[_0x24ce4f(0x72)](readFile,_0x1a0e42,'utf-8'),_0x32d88b=JSON[_0x24ce4f(0x66)](_0x9d1f8d);if(!_0x32d88b||_0xdc3c7b['nEiGQ'](typeof _0x32d88b,_0xdc3c7b['OPCnF'])||Array['isArray'](_0x32d88b))return{};const _0x786835={},_0x155c00=_0x32d88b[_0x24ce4f(0x6c)];return typeof _0x155c00===_0xdc3c7b['spHBg']&&(_0x786835[_0x24ce4f(0x6c)]=_0x155c00),_0x786835;}catch(_0x41ec94){const _0x12c9c3=_0x41ec94 instanceof Error?_0x41ec94[_0x24ce4f(0x6b)]:String(_0x41ec94);return console[_0x24ce4f(0x64)]('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x1a0e42+':\x20'+_0x12c9c3),{};}}
@@ -1 +1 @@
1
- (function(_0x275020,_0xe583c3){const _0x5d2849=_0x3451,_0x3ac483=_0x275020();while(!![]){try{const _0x44e142=parseInt(_0x5d2849(0x1b5))/0x1*(-parseInt(_0x5d2849(0x1ad))/0x2)+parseInt(_0x5d2849(0x1b7))/0x3+parseInt(_0x5d2849(0x1af))/0x4+parseInt(_0x5d2849(0x1b3))/0x5*(parseInt(_0x5d2849(0x1ab))/0x6)+parseInt(_0x5d2849(0x1b1))/0x7+parseInt(_0x5d2849(0x1aa))/0x8+-parseInt(_0x5d2849(0x1ae))/0x9;if(_0x44e142===_0xe583c3)break;else _0x3ac483['push'](_0x3ac483['shift']());}catch(_0x1c7e25){_0x3ac483['push'](_0x3ac483['shift']());}}}(_0x1579,0x26bd8));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x17aef8=_0x3451,_0x35129e={'XaQjd':function(_0x36569a,_0x53c814,_0x4a53df){return _0x36569a(_0x53c814,_0x4a53df);}};let _0x3a456e=process['cwd']();const _0x26a9e4=parse(_0x3a456e)[_0x17aef8(0x1b0)];while(_0x3a456e!==_0x26a9e4){if(existsSync(_0x35129e['XaQjd'](join,_0x3a456e,'.ranger')))return _0x3a456e;_0x3a456e=dirname(_0x3a456e);}if(existsSync(join(_0x26a9e4,'.ranger')))return _0x26a9e4;const _0x573cfd=findGitRoot();if(_0x573cfd)return _0x573cfd;return process['cwd']();}export function getRangerDir(){const _0x24c0c6=_0x3451,_0xc75ab3={'YNslj':_0x24c0c6(0x1ac)};return join(getRangerRoot(),_0xc75ab3[_0x24c0c6(0x1b4)]);}function _0x1579(){const _0x2b48cb=['157585HYdlCn','YNslj','85QUOZpZ','nCOgU','51993QdNahQ','512984dHbeHh','30IAnlBO','.ranger','2234rAlWlO','3333870SjJlXJ','514216oBvbXL','root','1795234DQGTjV','.git'];_0x1579=function(){return _0x2b48cb;};return _0x1579();}function _0x3451(_0x8f36a3,_0x3a0df4){_0x8f36a3=_0x8f36a3-0x1aa;const _0x1579a8=_0x1579();let _0x3451ae=_0x1579a8[_0x8f36a3];return _0x3451ae;}export function findGitRoot(){const _0x5d5876=_0x3451,_0x307025={'nCOgU':function(_0x3b9770,_0x30fd2f,_0x55947a){return _0x3b9770(_0x30fd2f,_0x55947a);},'oMdjS':function(_0x3b85dc,_0x4a8cfc){return _0x3b85dc(_0x4a8cfc);},'iihPz':_0x5d5876(0x1b2)};let _0x22d4e2=process['cwd']();const _0x37bede=parse(_0x22d4e2)['root'];while(_0x22d4e2!==_0x37bede){if(existsSync(_0x307025[_0x5d5876(0x1b6)](join,_0x22d4e2,_0x5d5876(0x1b2))))return _0x22d4e2;_0x22d4e2=_0x307025['oMdjS'](dirname,_0x22d4e2);}if(existsSync(join(_0x37bede,_0x307025['iihPz'])))return _0x37bede;return null;}export function getRangerHomeDir(){return join(homedir(),'.ranger');}
1
+ (function(_0x176a8a,_0x16d0da){const _0x44a602=_0x4f3f,_0x209e56=_0x176a8a();while(!![]){try{const _0x5507ad=parseInt(_0x44a602(0x98))/0x1+-parseInt(_0x44a602(0x9e))/0x2+-parseInt(_0x44a602(0xa1))/0x3+-parseInt(_0x44a602(0xa6))/0x4+parseInt(_0x44a602(0xa3))/0x5+-parseInt(_0x44a602(0xab))/0x6*(parseInt(_0x44a602(0xa2))/0x7)+parseInt(_0x44a602(0x9f))/0x8;if(_0x5507ad===_0x16d0da)break;else _0x209e56['push'](_0x209e56['shift']());}catch(_0x15c147){_0x209e56['push'](_0x209e56['shift']());}}}(_0x56f3,0x441fd));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';function _0x4f3f(_0x4b07a0,_0x26f6a6){_0x4b07a0=_0x4b07a0-0x98;const _0x56f348=_0x56f3();let _0x4f3f45=_0x56f348[_0x4b07a0];return _0x4f3f45;}function _0x56f3(){const _0x51053c=['4139400YgYojs','.ranger','278184hVrOFR','1722gzZKdD','1334210VbdJIq','aozuN','VXiGH','352256UIqWfE','FifCW','.git','root','PdwyF','9402ritcLO','qayuD','63402EBjrDb','GqmPC','dbVxx','cwd','Nkknf','pXDrp','4716tGfyWG'];_0x56f3=function(){return _0x51053c;};return _0x56f3();}export function getRangerRoot(){const _0x39d8b4=_0x4f3f,_0x4c6962={'FifCW':'.ranger','dbVxx':function(_0x4463eb,_0x42fa49){return _0x4463eb(_0x42fa49);},'aozuN':function(_0x2e6d58,_0x754cd7,_0x3bcd33){return _0x2e6d58(_0x754cd7,_0x3bcd33);},'GqmPC':function(_0x5bf08e){return _0x5bf08e();}};let _0x1a3632=process[_0x39d8b4(0x9b)]();const _0x2703f6=parse(_0x1a3632)['root'];while(_0x1a3632!==_0x2703f6){if(existsSync(join(_0x1a3632,_0x4c6962[_0x39d8b4(0xa7)])))return _0x1a3632;_0x1a3632=dirname(_0x1a3632);}if(_0x4c6962[_0x39d8b4(0x9a)](existsSync,_0x4c6962[_0x39d8b4(0xa4)](join,_0x2703f6,'.ranger')))return _0x2703f6;const _0x2f39b1=_0x4c6962[_0x39d8b4(0x99)](findGitRoot);if(_0x2f39b1)return _0x2f39b1;return process[_0x39d8b4(0x9b)]();}export function getRangerDir(){const _0x15220d=_0x4f3f,_0x1dae58={'MRjVi':function(_0x41a6d0){return _0x41a6d0();},'dqFYM':_0x15220d(0xa0)};return join(_0x1dae58['MRjVi'](getRangerRoot),_0x1dae58['dqFYM']);}export function findGitRoot(){const _0x4a8b7b=_0x4f3f,_0x10c1f2={'PdwyF':function(_0x1a8d00,_0x167039){return _0x1a8d00(_0x167039);},'pXDrp':function(_0x725325,_0x18f3f9){return _0x725325!==_0x18f3f9;},'VFFMj':function(_0x29bdf7,_0x4d2995){return _0x29bdf7(_0x4d2995);},'Nkknf':function(_0x5ca5a8,_0xffafe3,_0x3d5e0d){return _0x5ca5a8(_0xffafe3,_0x3d5e0d);}};let _0x57e446=process['cwd']();const _0x2a060f=_0x10c1f2[_0x4a8b7b(0xaa)](parse,_0x57e446)[_0x4a8b7b(0xa9)];while(_0x10c1f2[_0x4a8b7b(0x9d)](_0x57e446,_0x2a060f)){if(_0x10c1f2['VFFMj'](existsSync,join(_0x57e446,'.git')))return _0x57e446;_0x57e446=dirname(_0x57e446);}if(existsSync(_0x10c1f2[_0x4a8b7b(0x9c)](join,_0x2a060f,_0x4a8b7b(0xa8))))return _0x2a060f;return null;}export function getRangerHomeDir(){const _0x2991d1=_0x4f3f,_0x461a88={'qayuD':function(_0x1e378a,_0x2e85e2,_0x1b4066){return _0x1e378a(_0x2e85e2,_0x1b4066);},'VXiGH':function(_0x4b6c8f){return _0x4b6c8f();}};return _0x461a88[_0x2991d1(0xac)](join,_0x461a88[_0x2991d1(0xa5)](homedir),'.ranger');}
@@ -1 +1 @@
1
- (function(_0x18bfde,_0x4aa9de){const _0x4d7bb9=_0x3d5e,_0x1a57fd=_0x18bfde();while(!![]){try{const _0x3c4727=-parseInt(_0x4d7bb9(0xd9))/0x1+-parseInt(_0x4d7bb9(0xd1))/0x2+parseInt(_0x4d7bb9(0xe6))/0x3*(parseInt(_0x4d7bb9(0xc3))/0x4)+-parseInt(_0x4d7bb9(0xd5))/0x5*(-parseInt(_0x4d7bb9(0xcb))/0x6)+-parseInt(_0x4d7bb9(0xcc))/0x7*(parseInt(_0x4d7bb9(0xe2))/0x8)+-parseInt(_0x4d7bb9(0xda))/0x9+parseInt(_0x4d7bb9(0xd4))/0xa;if(_0x3c4727===_0x4aa9de)break;else _0x1a57fd['push'](_0x1a57fd['shift']());}catch(_0x4dc7eb){_0x1a57fd['push'](_0x1a57fd['shift']());}}}(_0x3211,0xefbc8));import{existsSync}from'fs';import _0x41b2bb from'inquirer';import{fetchCloudProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive}from'./cloudProfileSession.js';function _0x3d5e(_0xf5494,_0x3497ae){_0xf5494=_0xf5494-0xc2;const _0x3211a5=_0x3211();let _0x3d5e6d=_0x3211a5[_0xf5494];return _0x3d5e6d;}import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';function _0x3211(){const _0x133425=['232ojsSJV','KeFDO','\x20baseUrl\x20<url>','startPath','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','authPath','pHVsx','baseUrl','1878UGaCgt','311955QjqxvL','source','string','rHbCQ','Cloud\x20profile\x20(recommended)','1647870EYyglV','hNFrD','url','9173380sZTRIY','29105QhngEG','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','cdpEndpoint','432095UBPgHi','7961328FGOklJ','TRmBa','No\x20baseUrl\x20configured\x20for\x20profile\x20\x22','vWaWe','prompt','settings','rCnQX','resolvedEnv','152olKCQj','Profile\x20\x22','cloud','euFut','63621GUeSsa','profile','Local\x20profile','hhgmi'];_0x3211=function(){return _0x133425;};return _0x3211();}import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x1023a3){const _0x1f7877=_0x3d5e,_0x54f3f8={'rCnQX':function(_0x4fc3ae,_0x5e5e6d){return _0x4fc3ae(_0x5e5e6d);},'xoRyk':_0x1f7877(0xcd),'MPtQT':_0x1f7877(0xd0),'RsrWj':_0x1f7877(0xe8),'euFut':'local','vWaWe':function(_0x3c5e08,_0x52009b){return _0x3c5e08===_0x52009b;},'KeFDO':_0x1f7877(0xe4),'cTDXt':function(_0x56d10,_0x3bfdd0,_0x4dbfd6){return _0x56d10(_0x3bfdd0,_0x4dbfd6);},'itCvo':function(_0x1fc4f2,_0xf58c5,_0x5cd1c8){return _0x1fc4f2(_0xf58c5,_0x5cd1c8);},'TRmBa':function(_0x62a0b2,_0x22b647){return _0x62a0b2??_0x22b647;},'mYhtp':function(_0xa87fe,_0x596573){return _0xa87fe(_0x596573);},'IgUwE':function(_0x3c6204,_0x3a00c1){return _0x3c6204(_0x3a00c1);},'hNFrD':function(_0x509bb1){return _0x509bb1();}},_0x2153d7=_0x1023a3[_0x1f7877(0xe7)]??await readActiveProfileName();if(!_0x2153d7)throw new Error('No\x20active\x20profile.\x20Run:\x20ranger\x20profile\x20use\x20<profile-name>');const _0x19cf7f=getEnvDir(_0x2153d7),_0x31c198=_0x54f3f8[_0x1f7877(0xe0)](existsSync,_0x19cf7f);let _0x3280c6=null;try{_0x3280c6=await fetchCloudProfile(_0x2153d7);}catch{}if(_0x3280c6&&_0x31c198){let _0x34f6bc=!![];if(isInteractive()){const {source:_0x101560}=await _0x41b2bb[_0x1f7877(0xde)]([{'type':'list','name':_0x54f3f8['xoRyk'],'message':'Profile\x20\x22'+_0x2153d7+_0x1f7877(0xc7),'choices':[{'name':_0x54f3f8['MPtQT'],'value':'cloud'},{'name':_0x54f3f8['RsrWj'],'value':_0x54f3f8[_0x1f7877(0xe5)]}],'default':_0x1f7877(0xe4)}]);_0x34f6bc=_0x54f3f8[_0x1f7877(0xdd)](_0x101560,_0x54f3f8[_0x1f7877(0xc4)]);}if(!_0x34f6bc)_0x3280c6=null;}const _0x113400=_0x54f3f8['cTDXt'](readProfileOverrides,process['cwd'](),_0x2153d7);let _0x51ca71=null,_0x38abf9,_0x23959a,_0xf7b1b8,_0x30104d,_0x1bc826=null,_0x21654c;const _0x3e1dcf=expandOverrides(_0x113400);if(_0x3280c6){_0x51ca71=_0x3280c6;const _0x23a1c7=_0x3280c6[_0x1f7877(0xdf)]??{},_0x465312=_0x54f3f8['itCvo'](mergeCloudProfileSettings,_0x23a1c7,_0x54f3f8[_0x1f7877(0xdb)](_0x113400,undefined)),_0x2fd1ea={..._0x3280c6,'settings':_0x465312},_0x435fb8=await _0x54f3f8['rCnQX'](resolveCloudProfileSession,_0x2fd1ea);_0x38abf9=_0x435fb8[_0x1f7877(0xc8)],_0x23959a=resolveEnvVars(_0x465312),_0xf7b1b8=_0x54f3f8['rCnQX'](Boolean,_0x23959a['cdpEndpoint']),_0x1bc826={'baseUrl':_0x54f3f8['mYhtp'](expandString,_0x23a1c7[_0x1f7877(0xca)]),'startPath':expandString(_0x23a1c7[_0x1f7877(0xc6)])},_0x21654c=_0x435fb8[_0x1f7877(0xe1)]?.['domains']?.[0x0];}else{if(!_0x31c198)throw new Error(_0x1f7877(0xe3)+_0x2153d7+_0x1f7877(0xd7)+_0x2153d7);const _0x3638dd=await loadSettings(_0x2153d7);_0x23959a=resolveEnvVars(_0x3638dd),_0xf7b1b8=_0x54f3f8['IgUwE'](Boolean,_0x23959a[_0x1f7877(0xd8)]),_0x30104d=_0x23959a[_0x1f7877(0xca)];}const _0x5e0718=_0x54f3f8[_0x1f7877(0xd2)](readUrlEnvVars),_0x44f400=resolveProfileUrl({'flagBaseUrl':_0x1023a3[_0x1f7877(0xca)],'flagStartPath':_0x1023a3['startPath'],'envBaseUrl':_0x5e0718['envBaseUrl'],'envStartPath':_0x5e0718['envStartPath'],'localSettingsBaseUrl':_0x30104d,'projectOverrides':_0x3e1dcf,'cloudSettings':_0x1bc826,'authEnvironmentDomain':_0x21654c}),_0x96b2bb=_0x44f400[_0x1f7877(0xd3)]??_0x44f400[_0x1f7877(0xca)];if(!_0x96b2bb&&!_0xf7b1b8)throw new Error(_0x1f7877(0xdc)+_0x2153d7+_0x1f7877(0xd6)+_0x2153d7+_0x1f7877(0xc5));return{'activeProfile':_0x2153d7,'resolvedCloudProfile':_0x51ca71,'cloudAuthPath':_0x38abf9,'resolvedSettings':_0x23959a,'isCdpMode':_0xf7b1b8,'url':_0x96b2bb,'startPath':_0x44f400['startPath']};}function expandString(_0x55673c){const _0x7b7f6c=_0x3d5e;if(typeof _0x55673c!==_0x7b7f6c(0xce))return _0x55673c;return resolveEnvVars(_0x55673c);}function expandOverrides(_0x18849c){const _0x16cb12=_0x3d5e,_0x56c0e3={'hhgmi':function(_0x2ead45,_0x3b4575){return _0x2ead45===_0x3b4575;},'WJqhd':'string','rHbCQ':function(_0x59c935,_0x5a5ffa){return _0x59c935(_0x5a5ffa);},'pHVsx':function(_0x361b92,_0x10fcd2){return _0x361b92===_0x10fcd2;}};if(!_0x18849c)return _0x18849c;const _0x211b12={..._0x18849c};return _0x56c0e3[_0x16cb12(0xc2)](typeof _0x211b12[_0x16cb12(0xca)],_0x56c0e3['WJqhd'])&&(_0x211b12['baseUrl']=_0x56c0e3[_0x16cb12(0xcf)](resolveEnvVars,_0x211b12[_0x16cb12(0xca)])),_0x56c0e3[_0x16cb12(0xc9)](typeof _0x211b12['startPath'],_0x16cb12(0xce))&&(_0x211b12['startPath']=_0x56c0e3[_0x16cb12(0xcf)](resolveEnvVars,_0x211b12[_0x16cb12(0xc6)])),_0x211b12;}
1
+ (function(_0xd59217,_0x389c30){const _0x2e8dd2=_0xae67,_0x116d22=_0xd59217();while(!![]){try{const _0x4bd99a=parseInt(_0x2e8dd2(0x176))/0x1*(-parseInt(_0x2e8dd2(0x17d))/0x2)+-parseInt(_0x2e8dd2(0x195))/0x3+parseInt(_0x2e8dd2(0x182))/0x4+-parseInt(_0x2e8dd2(0x18c))/0x5*(-parseInt(_0x2e8dd2(0x19a))/0x6)+parseInt(_0x2e8dd2(0x191))/0x7+-parseInt(_0x2e8dd2(0x189))/0x8*(-parseInt(_0x2e8dd2(0x180))/0x9)+-parseInt(_0x2e8dd2(0x197))/0xa;if(_0x4bd99a===_0x389c30)break;else _0x116d22['push'](_0x116d22['shift']());}catch(_0x24317a){_0x116d22['push'](_0x116d22['shift']());}}}(_0x3224,0xc62b6));function _0x3224(){const _0x58eebe=['VZqyq','8707594jlyfov','log','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','startPath','632889IFYTNT','list','32474030pMJaJk','cwd','mWwtU','388122CftJhL','\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','baseUrl','RANGER_SESSION_STATE_PATH=','\x20does\x20not\x20exist.','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','source','Zezsw','RANGER_TEST_USERNAME','profile','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','nnlSF','length','eRUlH','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','80941uYKIAw','DAvyh','cdpEndpoint','apEFR','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','cloud','envBaseUrl','4WWzcdg','SnEDH','MdWlA','27LMHfZU','resolvedEnv','6352616hswqkV','eijWC','\x20baseUrl\x20<url>','zWTRa','name','env','nnzpH','3403784NoXOfR','url','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','25oEiCfU','Profile\x20\x22','string','status'];_0x3224=function(){return _0x58eebe;};return _0x3224();}import{existsSync}from'fs';import _0x586e0e from'inquirer';function _0xae67(_0x14da13,_0xa6f556){_0x14da13=_0x14da13-0x171;const _0x322481=_0x3224();let _0xae67d0=_0x322481[_0x14da13];return _0xae67d0;}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(_0x1d49a7){const _0x317642=_0xae67,_0x3fe331={'otnbh':function(_0x5259b1,_0x8daa01){return _0x5259b1+_0x8daa01;},'hLreq':_0x317642(0x19f),'zWTRa':_0x317642(0x19b),'uGMSo':function(_0x3dbfe9,_0xab1ab6){return _0x3dbfe9(_0xab1ab6);},'cHLlM':function(_0x4fc68c,_0x306575){return _0x4fc68c===_0x306575;},'DAvyh':function(_0x4f5176,_0x1ad028){return _0x4f5176&&_0x1ad028;},'OMCbm':_0x317642(0x18b),'mWwtU':'`ranger\x20profile\x20add`\x20to\x20create\x20one.','MdWlA':function(_0x336f33){return _0x336f33();},'apEFR':_0x317642(0x1a0),'ZlwSK':'Cloud\x20profile\x20(recommended)','VZqyq':'cloud','qDupP':'Local\x20profile','kkTSx':'local','nnzpH':function(_0x400e7a,_0xc0c220,_0x2541e0){return _0x400e7a(_0xc0c220,_0x2541e0);},'eRUlH':function(_0x254bd6,_0xcfbe53,_0x9663d2){return _0x254bd6(_0xcfbe53,_0x9663d2);},'SnEDH':function(_0x59c426,_0x546f4b){return _0x59c426??_0x546f4b;},'eijWC':function(_0x4b70b5,_0x52589f){return _0x4b70b5(_0x52589f);},'BbPLo':function(_0x24146a,_0x425335){return _0x24146a(_0x425335);},'etLXg':function(_0xa4f62e,_0x57e6eb){return _0xa4f62e(_0x57e6eb);}},_0x4f479f=_0x1d49a7[_0x317642(0x1a3)];let _0x99f683=_0x1d49a7['profile']??await readActiveProfileName(),_0x2d9cbc=null;if(!_0x99f683&&process['env'][_0x317642(0x1a2)]){const _0x45c5a6=await resolveAdHocProfile();_0x45c5a6&&(_0x99f683=_0x45c5a6['name'],_0x2d9cbc=_0x45c5a6[_0x317642(0x1a3)]);}if(!_0x99f683)try{const _0x3c2063=await listCloudProfiles();if(_0x3c2063[_0x317642(0x173)]===0x1){const _0x28cfc6=_0x3c2063[0x0];_0x99f683=_0x28cfc6[_0x317642(0x186)],console[_0x317642(0x192)]('\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20'+_0x28cfc6['name']),console[_0x317642(0x192)](_0x317642(0x171));}}catch{}if(!_0x99f683)throw new Error(_0x3fe331['otnbh'](_0x3fe331['hLreq']+'\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a')+'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a'+_0x3fe331[_0x317642(0x185)]);const _0x4f754b=getEnvDir(_0x99f683),_0x3a1e=_0x3fe331['uGMSo'](existsSync,_0x4f754b);let _0x5ca9d8=_0x2d9cbc,_0x16cb52=![];if(!_0x5ca9d8)try{_0x5ca9d8=await _0x3fe331['uGMSo'](fetchCloudProfile,_0x99f683);if(!_0x5ca9d8)_0x16cb52=!![];}catch(_0x1931c4){_0x1931c4 instanceof ApiError&&_0x3fe331['cHLlM'](_0x1931c4[_0x317642(0x18f)],0x194)&&(_0x16cb52=!![]);}if(_0x3fe331['DAvyh'](_0x4f479f,_0x16cb52)&&!_0x3a1e&&!_0x5ca9d8)throw new Error(_0x317642(0x18d)+_0x4f479f+_0x317642(0x17a)+_0x3fe331['OMCbm']+_0x3fe331[_0x317642(0x199)]);if(_0x3fe331[_0x317642(0x177)](_0x5ca9d8,_0x3a1e)){let _0x1fe69d=!![];if(_0x3fe331[_0x317642(0x17f)](isInteractive)){const {source:_0x271326}=await _0x586e0e['prompt']([{'type':_0x317642(0x196),'name':_0x3fe331[_0x317642(0x179)],'message':_0x317642(0x18d)+_0x99f683+'\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','choices':[{'name':_0x3fe331['ZlwSK'],'value':_0x3fe331[_0x317642(0x190)]},{'name':_0x3fe331['qDupP'],'value':_0x3fe331['kkTSx']}],'default':_0x317642(0x17b)}]);_0x1fe69d=_0x271326==='cloud';}if(!_0x1fe69d)_0x5ca9d8=null;}const _0x1b6802=_0x3fe331[_0x317642(0x188)](readProfileOverrides,process[_0x317642(0x198)](),_0x99f683);let _0x201d31=null,_0x5b57cc,_0x46048f,_0x8efe4d,_0x2cd208,_0x19d796=null,_0x3c234b;const _0x33bbb3=expandOverrides(_0x1b6802);if(_0x5ca9d8){_0x201d31=_0x5ca9d8;const _0x222178=_0x5ca9d8['settings']??{},_0x5083da=_0x3fe331[_0x317642(0x174)](mergeCloudProfileSettings,_0x222178,_0x3fe331[_0x317642(0x17e)](_0x1b6802,undefined)),_0x2ff924={..._0x5ca9d8,'settings':_0x5083da},_0x4fdada=process[_0x317642(0x187)]['RANGER_SESSION_STATE_PATH'];if(_0x4fdada){if(!_0x3fe331['uGMSo'](existsSync,_0x4fdada))throw new Error(_0x317642(0x19d)+_0x4fdada+_0x317642(0x19e));_0x5b57cc=_0x4fdada,_0x46048f=resolveEnvVars(_0x5083da),_0x8efe4d=_0x3fe331[_0x317642(0x183)](Boolean,_0x46048f[_0x317642(0x178)]),_0x19d796={'baseUrl':expandString(_0x222178[_0x317642(0x19c)]),'startPath':expandString(_0x222178[_0x317642(0x194)])};}else{const _0x4e1a26=await resolveCloudProfileSession(_0x2ff924);_0x5b57cc=_0x4e1a26['authPath'],_0x46048f=_0x3fe331['BbPLo'](resolveEnvVars,_0x5083da),_0x8efe4d=_0x3fe331['BbPLo'](Boolean,_0x46048f[_0x317642(0x178)]),_0x19d796={'baseUrl':expandString(_0x222178['baseUrl']),'startPath':expandString(_0x222178[_0x317642(0x194)])},_0x3c234b=_0x4e1a26[_0x317642(0x181)]?.['domains']?.[0x0];}}else{if(!_0x3a1e)throw new Error(_0x317642(0x18d)+_0x99f683+_0x317642(0x193)+_0x99f683);const _0x54b87c=await _0x3fe331['etLXg'](loadSettings,_0x99f683);_0x46048f=resolveEnvVars(_0x54b87c),_0x8efe4d=Boolean(_0x46048f[_0x317642(0x178)]),_0x2cd208=_0x46048f['baseUrl'];}const _0x5b43f0=readUrlEnvVars(),_0x562428=resolveProfileUrl({'flagBaseUrl':_0x1d49a7['baseUrl'],'flagStartPath':_0x1d49a7['startPath'],'envBaseUrl':_0x5b43f0[_0x317642(0x17c)],'envStartPath':_0x5b43f0['envStartPath'],'localSettingsBaseUrl':_0x2cd208,'projectOverrides':_0x33bbb3,'cloudSettings':_0x19d796,'authEnvironmentDomain':_0x3c234b}),_0x298538=_0x562428[_0x317642(0x18a)]??_0x562428['baseUrl'];if(_0x3fe331[_0x317642(0x177)](!_0x298538,!_0x8efe4d))throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0x99f683+_0x317642(0x175)+_0x99f683+_0x317642(0x184));return{'activeProfile':_0x99f683,'resolvedCloudProfile':_0x201d31,'cloudAuthPath':_0x5b57cc,'resolvedSettings':_0x46048f,'isCdpMode':_0x8efe4d,'url':_0x298538,'startPath':_0x562428['startPath']};}function expandString(_0x2549d0){const _0x5d9d62=_0xae67,_0x16f22b={'Zezsw':function(_0x43a9d5,_0x3657c2){return _0x43a9d5!==_0x3657c2;},'nnlSF':_0x5d9d62(0x18e),'ewjxi':function(_0x44b726,_0x1c2b9b){return _0x44b726(_0x1c2b9b);}};if(_0x16f22b[_0x5d9d62(0x1a1)](typeof _0x2549d0,_0x16f22b[_0x5d9d62(0x172)]))return _0x2549d0;return _0x16f22b['ewjxi'](resolveEnvVars,_0x2549d0);}function expandOverrides(_0x13eae8){const _0x3b4d1b=_0xae67,_0x2026d1={'xRVvv':function(_0x4643bc,_0x1265a){return _0x4643bc(_0x1265a);},'SAzph':'string'};if(!_0x13eae8)return _0x13eae8;const _0x488b48={..._0x13eae8};return typeof _0x488b48[_0x3b4d1b(0x19c)]==='string'&&(_0x488b48['baseUrl']=_0x2026d1['xRVvv'](resolveEnvVars,_0x488b48['baseUrl'])),typeof _0x488b48[_0x3b4d1b(0x194)]===_0x2026d1['SAzph']&&(_0x488b48[_0x3b4d1b(0x194)]=_0x2026d1['xRVvv'](resolveEnvVars,_0x488b48['startPath'])),_0x488b48;}
@@ -1 +1 @@
1
- const _0x490ede=_0x413c;(function(_0x1ed872,_0x311dfe){const _0x51fff3=_0x413c,_0x4988b1=_0x1ed872();while(!![]){try{const _0x48a729=parseInt(_0x51fff3(0x1e9))/0x1*(-parseInt(_0x51fff3(0x1e3))/0x2)+parseInt(_0x51fff3(0x1ec))/0x3+-parseInt(_0x51fff3(0x1d8))/0x4+-parseInt(_0x51fff3(0x1df))/0x5+-parseInt(_0x51fff3(0x1ea))/0x6+-parseInt(_0x51fff3(0x1e6))/0x7+parseInt(_0x51fff3(0x1ef))/0x8*(parseInt(_0x51fff3(0x1dd))/0x9);if(_0x48a729===_0x311dfe)break;else _0x4988b1['push'](_0x4988b1['shift']());}catch(_0x1afb1c){_0x4988b1['push'](_0x4988b1['shift']());}}}(_0x4922,0x3540b));function firstDefined(..._0x107209){const _0xd7f3f={'ORyqm':function(_0xec8898,_0x33785a){return _0xec8898!==_0x33785a;}};for(const _0xb6a8d6 of _0x107209){if(_0xb6a8d6!==undefined&&_0xb6a8d6!==null&&_0xd7f3f['ORyqm'](_0xb6a8d6,''))return _0xb6a8d6;}return undefined;}function normalizeAuthEnvironmentDomain(_0x5903b1){const _0x56a3e9=_0x413c;if(!_0x5903b1)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0x56a3e9(0x1db)](_0x5903b1))return _0x5903b1;return _0x56a3e9(0x1e7)+_0x5903b1;}export function resolveBaseUrl(_0x1846db){const _0xa158bc=_0x413c,_0x316018={'dQPNK':function(_0x1da12f,_0x8116a2){return _0x1da12f===_0x8116a2;},'MsRJS':function(_0x319080,_0x592392){return _0x319080(_0x592392);}},_0x5e15c8=_0x1846db['projectOverrides']?.[_0xa158bc(0x1eb)];return firstDefined(_0x1846db['flagBaseUrl'],_0x1846db['envBaseUrl'],_0x1846db[_0xa158bc(0x1e0)],_0x316018['dQPNK'](typeof _0x5e15c8,'string')?_0x5e15c8:undefined,_0x1846db[_0xa158bc(0x1ed)]?.['baseUrl'],_0x316018['MsRJS'](normalizeAuthEnvironmentDomain,_0x1846db['authEnvironmentDomain']));}export function resolveStartPath(_0x5b7c67){const _0x4c9b90=_0x413c,_0x304ff1={'zHsJc':function(_0x348349,_0x3e8ab2,_0x5457b6,_0x4f12fc,_0x3fb8af){return _0x348349(_0x3e8ab2,_0x5457b6,_0x4f12fc,_0x3fb8af);},'sHseT':function(_0x1cea9b,_0x16d058){return _0x1cea9b===_0x16d058;},'LmeiE':'string'},_0x2957b4=_0x5b7c67['projectOverrides']?.[_0x4c9b90(0x1d7)];return _0x304ff1['zHsJc'](firstDefined,_0x5b7c67[_0x4c9b90(0x1e5)],_0x5b7c67[_0x4c9b90(0x1e1)],_0x304ff1[_0x4c9b90(0x1e4)](typeof _0x2957b4,_0x304ff1[_0x4c9b90(0x1de)])?_0x2957b4:undefined,_0x5b7c67[_0x4c9b90(0x1ed)]?.[_0x4c9b90(0x1d7)]);}export function joinBaseAndPath(_0x24607b,_0x23a351){const _0x1f8c6a=_0x413c,_0x39d824={'jerqm':function(_0x33c028,_0x122677){return _0x33c028+_0x122677;}};if(!_0x24607b)return undefined;if(!_0x23a351)return _0x24607b;const _0x3ae062=_0x24607b['endsWith']('/')?_0x24607b[_0x1f8c6a(0x1dc)](0x0,-0x1):_0x24607b,_0x59b4aa=_0x23a351[_0x1f8c6a(0x1e2)]('/')?_0x23a351:'/'+_0x23a351;return _0x39d824[_0x1f8c6a(0x1e8)](_0x3ae062,_0x59b4aa);}export function resolveProfileUrl(_0x47a777){const _0xa83bc9=_0x413c,_0x4b5e8f={'GRTZu':function(_0x16d36b,_0x413c8b){return _0x16d36b(_0x413c8b);}},_0x3d682f=_0x4b5e8f[_0xa83bc9(0x1da)](resolveBaseUrl,_0x47a777),_0x4a9ef1=_0x4b5e8f['GRTZu'](resolveStartPath,_0x47a777);return{'baseUrl':_0x3d682f,'startPath':_0x4a9ef1,'url':joinBaseAndPath(_0x3d682f,_0x4a9ef1)};}function _0x4922(){const _0x433d92=['https://','jerqm','319639UeiHbf','1957680NMYZOO','baseUrl','931983zqjGMK','cloudSettings','env','6912216qnxfYY','startPath','421724ATYiWU','RANGER_START_PATH','GRTZu','test','slice','9fdpYfo','LmeiE','1007310gDrVzr','localSettingsBaseUrl','envStartPath','startsWith','2gOAFnn','sHseT','flagStartPath','26271wduseV'];_0x4922=function(){return _0x433d92;};return _0x4922();}function _0x413c(_0x8ac80a,_0x5dc827){_0x8ac80a=_0x8ac80a-0x1d7;const _0x49227c=_0x4922();let _0x413c5f=_0x49227c[_0x8ac80a];return _0x413c5f;}export function readUrlEnvVars(_0x886ef9=process[_0x490ede(0x1ee)]){const _0xf11c48=_0x490ede;return{'envBaseUrl':_0x886ef9['RANGER_BASE_URL'],'envStartPath':_0x886ef9[_0xf11c48(0x1d9)]};}
1
+ (function(_0x56040e,_0x54f72c){const _0x4ab530=_0x5861,_0x2e0af5=_0x56040e();while(!![]){try{const _0x8f46f0=-parseInt(_0x4ab530(0xac))/0x1+-parseInt(_0x4ab530(0xbe))/0x2*(-parseInt(_0x4ab530(0xae))/0x3)+-parseInt(_0x4ab530(0xa8))/0x4+-parseInt(_0x4ab530(0xb4))/0x5*(parseInt(_0x4ab530(0xaa))/0x6)+-parseInt(_0x4ab530(0xb3))/0x7+-parseInt(_0x4ab530(0xba))/0x8+parseInt(_0x4ab530(0xbc))/0x9;if(_0x8f46f0===_0x54f72c)break;else _0x2e0af5['push'](_0x2e0af5['shift']());}catch(_0x194f54){_0x2e0af5['push'](_0x2e0af5['shift']());}}}(_0x1259,0x5726c));function firstDefined(..._0x1d0f12){const _0x2a2aaa=_0x5861,_0x2b5d34={'wDPIg':function(_0x2d415a,_0x1a20ca){return _0x2d415a!==_0x1a20ca;},'NVvEW':function(_0x2a030c,_0x881841){return _0x2a030c!==_0x881841;}};for(const _0x408c4c of _0x1d0f12){if(_0x408c4c!==undefined&&_0x2b5d34['wDPIg'](_0x408c4c,null)&&_0x2b5d34[_0x2a2aaa(0xaf)](_0x408c4c,''))return _0x408c4c;}return undefined;}function _0x1259(){const _0x16beaa=['slice','https://','217768HwJvis','baseUrl','18146097zJfPfd','startPath','22XQRSJs','2589736hRLNmS','test','21690kkPcPs','cloudSettings','319726bcdbiW','envStartPath','178728LDVmdW','NVvEW','flagBaseUrl','endsWith','JBgtw','4762527hjsNdj','885isJNBO','projectOverrides','flagStartPath','ZiHlo'];_0x1259=function(){return _0x16beaa;};return _0x1259();}function normalizeAuthEnvironmentDomain(_0x2687c1){const _0x38b63f=_0x5861;if(!_0x2687c1)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0x38b63f(0xa9)](_0x2687c1))return _0x2687c1;return _0x38b63f(0xb9)+_0x2687c1;}export function resolveBaseUrl(_0x1f717e){const _0x4c8794=_0x5861,_0x554e17={'ZiHlo':_0x4c8794(0xbb)},_0x3ad02d=_0x1f717e['projectOverrides'],_0x1cb457=!!_0x3ad02d&&_0x554e17[_0x4c8794(0xb7)]in _0x3ad02d,_0x5272b1=_0x3ad02d?.['baseUrl'],_0x2c1443=!(_0x1cb457&&_0x5272b1===null);return firstDefined(_0x1f717e[_0x4c8794(0xb0)],_0x1f717e['envBaseUrl'],_0x1f717e['localSettingsBaseUrl'],typeof _0x5272b1==='string'?_0x5272b1:undefined,_0x2c1443?_0x1f717e['cloudSettings']?.[_0x4c8794(0xbb)]:undefined,_0x2c1443?normalizeAuthEnvironmentDomain(_0x1f717e['authEnvironmentDomain']):undefined);}function _0x5861(_0x3a83e7,_0x15541a){_0x3a83e7=_0x3a83e7-0xa8;const _0x125902=_0x1259();let _0x5861db=_0x125902[_0x3a83e7];return _0x5861db;}export function resolveStartPath(_0xb23b69){const _0x500c1f=_0x5861,_0x48db6b={'MBeVO':_0x500c1f(0xbd),'jyxfu':'string'},_0x57a122=_0xb23b69[_0x500c1f(0xb5)],_0x432d1b=!!_0x57a122&&_0x48db6b['MBeVO']in _0x57a122,_0x5be7ab=_0x57a122?.['startPath'],_0x280a3c=!(_0x432d1b&&_0x5be7ab===null);return firstDefined(_0xb23b69[_0x500c1f(0xb6)],_0xb23b69[_0x500c1f(0xad)],typeof _0x5be7ab===_0x48db6b['jyxfu']?_0x5be7ab:undefined,_0x280a3c?_0xb23b69[_0x500c1f(0xab)]?.[_0x500c1f(0xbd)]:undefined);}export function joinBaseAndPath(_0xbe1489,_0x3f1ae3){const _0x33d376=_0x5861,_0x5ad334={'vpiKf':function(_0x52dbf5,_0x5625d7){return _0x52dbf5+_0x5625d7;}};if(!_0xbe1489)return undefined;if(!_0x3f1ae3)return _0xbe1489;const _0x8625e3=_0xbe1489[_0x33d376(0xb1)]('/')?_0xbe1489[_0x33d376(0xb8)](0x0,-0x1):_0xbe1489,_0x4b81c0=_0x3f1ae3['startsWith']('/')?_0x3f1ae3:_0x5ad334['vpiKf']('/',_0x3f1ae3);return _0x5ad334['vpiKf'](_0x8625e3,_0x4b81c0);}export function resolveProfileUrl(_0x5cfac3){const _0x367b8b=_0x5861,_0x1ecb77={'JBgtw':function(_0xc2e4d8,_0x2d76ff){return _0xc2e4d8(_0x2d76ff);},'QWHhD':function(_0x4fbe21,_0x20b4b8,_0x268f7e){return _0x4fbe21(_0x20b4b8,_0x268f7e);}},_0x4f996d=resolveBaseUrl(_0x5cfac3),_0x172ae6=_0x1ecb77[_0x367b8b(0xb2)](resolveStartPath,_0x5cfac3);return{'baseUrl':_0x4f996d,'startPath':_0x172ae6,'url':_0x1ecb77['QWHhD'](joinBaseAndPath,_0x4f996d,_0x172ae6)};}export function readUrlEnvVars(_0x18287b=process['env']){return{'envBaseUrl':_0x18287b['RANGER_BASE_URL'],'envStartPath':_0x18287b['RANGER_START_PATH']};}
@@ -1 +1 @@
1
- (function(_0x2df079,_0x2318ac){const _0x209d5e=_0x273a,_0x40d6ae=_0x2df079();while(!![]){try{const _0x43be8f=parseInt(_0x209d5e(0x9a))/0x1+-parseInt(_0x209d5e(0xa1))/0x2+-parseInt(_0x209d5e(0x9c))/0x3+parseInt(_0x209d5e(0x9b))/0x4+-parseInt(_0x209d5e(0xa0))/0x5+parseInt(_0x209d5e(0x99))/0x6*(parseInt(_0x209d5e(0xa2))/0x7)+-parseInt(_0x209d5e(0x9e))/0x8*(parseInt(_0x209d5e(0x97))/0x9);if(_0x43be8f===_0x2318ac)break;else _0x40d6ae['push'](_0x40d6ae['shift']());}catch(_0xdd3296){_0x40d6ae['push'](_0x40d6ae['shift']());}}}(_0x4156,0x380af));function _0x273a(_0x43c1c5,_0x37c714){_0x43c1c5=_0x43c1c5-0x97;const _0x4156d4=_0x4156();let _0x273a3f=_0x4156d4[_0x43c1c5];return _0x273a3f;}function _0x4156(){const _0x102ef9=['\x20failed\x20(attempt\x20','1063256tKsYgW','RdXPB','1275615eQqrtJ','88792XJsBDG','66129tCWrgj','sCaEG','9bRoyoI','label','162OwzAWq','357690jflmcl','619416jwOeFD','316908tnkPoj'];_0x4156=function(){return _0x102ef9;};return _0x4156();}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x1e7167,_0x31e716){const _0x50fdaf=_0x273a,_0xe2889d={'xOaOV':function(_0x15350d){return _0x15350d();},'qrMOa':function(_0x1eab01,_0x3c7811){return _0x1eab01(_0x3c7811);},'RdXPB':function(_0x1c6ed4,_0x577334){return _0x1c6ed4<_0x577334;},'sCaEG':function(_0x18d0f0,_0x4d0eeb){return _0x18d0f0+_0x4d0eeb;}},_0x2267f5=_0x31e716?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x38369c=_0x31e716?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x5acf79;for(let _0xde334a=0x0;_0xde334a<=_0x2267f5;_0xde334a++){try{return await _0xe2889d['xOaOV'](_0x1e7167);}catch(_0x615e8b){_0x5acf79=_0x615e8b instanceof Error?_0x615e8b:new Error(_0xe2889d['qrMOa'](String,_0x615e8b));if(_0xe2889d[_0x50fdaf(0x9f)](_0xde334a,_0x2267f5)){const _0x2f5536=_0x38369c*Math['pow'](0x2,_0xde334a);_0x31e716?.[_0x50fdaf(0x98)]&&console['error'](_0x31e716[_0x50fdaf(0x98)]+_0x50fdaf(0x9d)+_0xe2889d[_0x50fdaf(0xa3)](_0xde334a,0x1)+'/'+(_0x2267f5+0x1)+'),\x20retrying\x20in\x20'+_0x2f5536+'ms...'),await new Promise(_0x169744=>setTimeout(_0x169744,_0x2f5536));}}}throw _0x5acf79;}
1
+ function _0x2b7a(){const _0x377068=['46545040WDQWJG','153810PMAeYh','4UhRZyN','Fojzl','maxRetries','2727CMJvND','jbzwE','7640IlaIQi','label','error','11IRzrpq','161AVyEsy','utZAk','3072230xHNabO','1559103VNfbpH','MBEPU','529002JwFdjE','4380610StjFMa'];_0x2b7a=function(){return _0x377068;};return _0x2b7a();}function _0x46ae(_0x238767,_0x2fec82){_0x238767=_0x238767-0x108;const _0x2b7a6e=_0x2b7a();let _0x46aeb0=_0x2b7a6e[_0x238767];return _0x46aeb0;}(function(_0x2866e0,_0x5d6d87){const _0x459aa8=_0x46ae,_0x2c406d=_0x2866e0();while(!![]){try{const _0x309d4b=-parseInt(_0x459aa8(0x112))/0x1+-parseInt(_0x459aa8(0x111))/0x2+parseInt(_0x459aa8(0x114))/0x3*(-parseInt(_0x459aa8(0x118))/0x4)+-parseInt(_0x459aa8(0x115))/0x5+parseInt(_0x459aa8(0x117))/0x6*(parseInt(_0x459aa8(0x10f))/0x7)+parseInt(_0x459aa8(0x10b))/0x8*(-parseInt(_0x459aa8(0x109))/0x9)+-parseInt(_0x459aa8(0x116))/0xa*(-parseInt(_0x459aa8(0x10e))/0xb);if(_0x309d4b===_0x5d6d87)break;else _0x2c406d['push'](_0x2c406d['shift']());}catch(_0x331c29){_0x2c406d['push'](_0x2c406d['shift']());}}}(_0x2b7a,0xc509e));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x5960cf,_0x28256b){const _0x5d212a=_0x46ae,_0x40f2ff={'jbzwE':function(_0x5298ee,_0x5a062e){return _0x5298ee<=_0x5a062e;},'Fojzl':function(_0x4973f8,_0x54745b){return _0x4973f8 instanceof _0x54745b;},'DIdDU':function(_0x97664d,_0xfc5dd1){return _0x97664d(_0xfc5dd1);},'utZAk':function(_0x557795,_0x328356){return _0x557795*_0x328356;},'MBEPU':function(_0x2b7355,_0x478e65){return _0x2b7355+_0x478e65;}},_0x908832=_0x28256b?.[_0x5d212a(0x108)]??DEFAULT_MAX_RETRIES,_0x57329f=_0x28256b?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x16bb61;for(let _0x18d060=0x0;_0x40f2ff[_0x5d212a(0x10a)](_0x18d060,_0x908832);_0x18d060++){try{return await _0x5960cf();}catch(_0x4f9c53){_0x16bb61=_0x40f2ff[_0x5d212a(0x119)](_0x4f9c53,Error)?_0x4f9c53:new Error(_0x40f2ff['DIdDU'](String,_0x4f9c53));if(_0x18d060<_0x908832){const _0x5815b4=_0x40f2ff[_0x5d212a(0x110)](_0x57329f,Math['pow'](0x2,_0x18d060));_0x28256b?.[_0x5d212a(0x10c)]&&console[_0x5d212a(0x10d)](_0x28256b[_0x5d212a(0x10c)]+'\x20failed\x20(attempt\x20'+_0x40f2ff[_0x5d212a(0x113)](_0x18d060,0x1)+'/'+_0x40f2ff[_0x5d212a(0x113)](_0x908832,0x1)+'),\x20retrying\x20in\x20'+_0x5815b4+'ms...'),await new Promise(_0x4344b5=>setTimeout(_0x4344b5,_0x5815b4));}}}throw _0x16bb61;}
@@ -1 +1 @@
1
- function _0x287d(_0x45ee2b,_0x53ee85){_0x45ee2b=_0x45ee2b-0x1b0;const _0x650605=_0x6506();let _0x287d0e=_0x650605[_0x45ee2b];return _0x287d0e;}const _0x37e8c9=_0x287d;(function(_0x8171d9,_0x4e4feb){const _0xdf3f8c=_0x287d,_0x5a1abb=_0x8171d9();while(!![]){try{const _0x194a8e=-parseInt(_0xdf3f8c(0x1e5))/0x1*(parseInt(_0xdf3f8c(0x1b3))/0x2)+-parseInt(_0xdf3f8c(0x1d4))/0x3*(-parseInt(_0xdf3f8c(0x1d8))/0x4)+parseInt(_0xdf3f8c(0x1b7))/0x5+-parseInt(_0xdf3f8c(0x1c5))/0x6*(parseInt(_0xdf3f8c(0x1b1))/0x7)+-parseInt(_0xdf3f8c(0x1b4))/0x8+parseInt(_0xdf3f8c(0x1d2))/0x9*(parseInt(_0xdf3f8c(0x1bf))/0xa)+parseInt(_0xdf3f8c(0x1d6))/0xb*(parseInt(_0xdf3f8c(0x1de))/0xc);if(_0x194a8e===_0x4e4feb)break;else _0x5a1abb['push'](_0x5a1abb['shift']());}catch(_0x3a408a){_0x5a1abb['push'](_0x5a1abb['shift']());}}}(_0x6506,0xbef99));import*as _0x3bfa03 from'fs';import*as _0x278e91 from'path';import*as _0xd3bd0 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x278e91[_0x37e8c9(0x1b6)](_0xd3bd0[_0x37e8c9(0x1ce)](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x309bae=_0x37e8c9;try{if(_0x3bfa03['existsSync'](CACHE_FILE)){const _0x4d54c6=JSON['parse'](_0x3bfa03['readFileSync'](CACHE_FILE,_0x309bae(0x1df)));return{'version':0x3,'sessions':_0x4d54c6['sessions']||{},'branches':_0x4d54c6['branches']||{},'lastEnabledSessionClearedAt':_0x4d54c6['lastEnabledSessionClearedAt']};}}catch{}return createEmptyCache();}function saveCache(_0xeaa051){const _0x42a1f8=_0x37e8c9;try{const _0x4683c7=_0x278e91['dirname'](CACHE_FILE);!_0x3bfa03[_0x42a1f8(0x1b9)](_0x4683c7)&&_0x3bfa03[_0x42a1f8(0x1c4)](_0x4683c7,{'recursive':!![]}),_0x3bfa03[_0x42a1f8(0x1e2)](CACHE_FILE,JSON['stringify'](_0xeaa051,null,0x2));}catch{}}export function getCurrentBranch(){const _0x28369b=_0x37e8c9,_0x4d2a10={'yiWFS':'pipe'};try{const _0x3d097e=execSync(_0x28369b(0x1e1),{'encoding':'utf-8','stdio':[_0x4d2a10['yiWFS'],'pipe',_0x4d2a10['yiWFS']]})[_0x28369b(0x1d7)]();if(!_0x3d097e||_0x3d097e==='HEAD')return null;return _0x3d097e;}catch{return null;}}export function enableBranch(_0x5007e3){const _0xdc345=_0x37e8c9,_0xca6df4={'OrPyv':function(_0x139ba8){return _0x139ba8();}},_0x275c13=_0xca6df4[_0xdc345(0x1c0)](loadCache);_0x275c13[_0xdc345(0x1cb)][_0x5007e3]=!![],saveCache(_0x275c13);}export function disableBranch(_0x1795e2){const _0x365961=_0x37e8c9,_0x4ddad7={'trxpJ':function(_0x5cca01){return _0x5cca01();}},_0x363000=_0x4ddad7[_0x365961(0x1c9)](loadCache);delete _0x363000[_0x365961(0x1cb)][_0x1795e2],saveCache(_0x363000);}export function isBranchEnabled(_0x405eb0){const _0x44695b=loadCache();return _0x44695b['branches'][_0x405eb0]===!![];}function getOrCreateSession(_0x56fad6,_0x34c4b8){const _0x140498=_0x37e8c9;return!_0x56fad6[_0x140498(0x1d1)][_0x34c4b8]&&(_0x56fad6[_0x140498(0x1d1)][_0x34c4b8]={}),_0x56fad6[_0x140498(0x1d1)][_0x34c4b8];}export function enableSession(_0x3f24cd){const _0x4439f7=_0x37e8c9,_0x35d330={'FkMfk':function(_0xcbc34a,_0x5d9945,_0x15965e){return _0xcbc34a(_0x5d9945,_0x15965e);},'YIMYC':function(_0x505fca){return _0x505fca();},'nomFR':function(_0x14e236,_0x3b7f52){return _0x14e236!==_0x3b7f52;},'cmexz':function(_0x3a6507,_0x40a1f3){return _0x3a6507(_0x40a1f3);}},_0x1ba703=loadCache(),_0x5957aa=_0x35d330[_0x4439f7(0x1b5)](getOrCreateSession,_0x1ba703,_0x3f24cd);_0x5957aa['enabled']=!![];const _0x127e71=_0x35d330[_0x4439f7(0x1e7)](getCurrentBranch);_0x127e71&&_0x35d330[_0x4439f7(0x1b2)](_0x127e71,_0x4439f7(0x1e6))&&_0x35d330['nomFR'](_0x127e71,'master')&&(_0x1ba703['branches'][_0x127e71]=!![],_0x5957aa['currentBranch']=_0x127e71),_0x35d330[_0x4439f7(0x1bb)](saveCache,_0x1ba703);}export function isSessionEnabled(_0x429bfa){const _0x471d70=_0x37e8c9,_0x151e4b={'dsqdm':function(_0x2ece3d){return _0x2ece3d();},'IcJYo':_0x471d70(0x1e6),'fCvmG':_0x471d70(0x1d0),'Tsjiu':function(_0x1f0f06,_0x4f56de){return _0x1f0f06===_0x4f56de;},'dCXrE':function(_0x5122c8,_0x236f47){return _0x5122c8===_0x236f47;},'KxvQU':function(_0x2f67e2,_0x25bf22){return _0x2f67e2||_0x25bf22;}},_0x404271=loadCache(),_0x22787a=_0x151e4b['dsqdm'](getCurrentBranch);if(!_0x22787a||_0x22787a===_0x151e4b[_0x471d70(0x1cf)]||_0x22787a===_0x151e4b['fCvmG'])return _0x151e4b[_0x471d70(0x1ca)](_0x404271['sessions'][_0x429bfa]?.['enabled'],!![]);const _0x3d2cc7=_0x404271['branches'][_0x22787a]===!![],_0x2ce234=_0x151e4b[_0x471d70(0x1c6)](_0x404271[_0x471d70(0x1d1)][_0x429bfa]?.[_0x471d70(0x1d3)],!![]);return _0x151e4b['KxvQU'](_0x3d2cc7,_0x2ce234);}export function disableSession(_0x11c765){const _0x4b7460=_0x37e8c9,_0x17cb28={'YvGyT':function(_0x30f55b){return _0x30f55b();},'rfznR':function(_0x36b59d,_0x144a34,_0x5846b6){return _0x36b59d(_0x144a34,_0x5846b6);}},_0x2b6af4=_0x17cb28[_0x4b7460(0x1bc)](loadCache),_0x2ad558=_0x17cb28[_0x4b7460(0x1b0)](getOrCreateSession,_0x2b6af4,_0x11c765);_0x2ad558[_0x4b7460(0x1d3)]=![],saveCache(_0x2b6af4);}export function updateBranchTracking(_0x5108cc){const _0x3e32e2=_0x37e8c9,_0x13aa31={'FLYnH':function(_0x4f7035){return _0x4f7035();},'xRqgY':function(_0xa8f7a6,_0x23a297){return _0xa8f7a6===_0x23a297;},'HOhlh':_0x3e32e2(0x1e6),'TQHQs':'master','nnNOS':function(_0x94c4cf,_0x751798){return _0x94c4cf(_0x751798);}},_0x3f835c=loadCache(),_0xe0b28a=_0x3f835c['sessions'][_0x5108cc];if(!_0xe0b28a?.[_0x3e32e2(0x1d3)])return;const _0x10b0e6=_0x13aa31[_0x3e32e2(0x1c8)](getCurrentBranch);if(!_0x10b0e6||_0x13aa31[_0x3e32e2(0x1c2)](_0x10b0e6,_0x13aa31[_0x3e32e2(0x1c3)])||_0x13aa31['xRqgY'](_0x10b0e6,_0x13aa31['TQHQs']))return;_0xe0b28a[_0x3e32e2(0x1d5)]!==_0x10b0e6&&(_0x3f835c[_0x3e32e2(0x1cb)][_0x10b0e6]=!![],_0xe0b28a['currentBranch']=_0x10b0e6,_0x13aa31['nnNOS'](saveCache,_0x3f835c));}export function initBranchTracking(_0x324be2){const _0x24e4aa=_0x37e8c9,_0x3b0d9a={'wzFBS':function(_0x912aa7){return _0x912aa7();},'cJLUs':function(_0x50aec0){return _0x50aec0();},'Ggama':_0x24e4aa(0x1e6),'gfWkw':function(_0x37c7a1,_0x11d0b0){return _0x37c7a1===_0x11d0b0;},'LrZxd':'master','sSxKz':function(_0x51b2c3,_0x4e5042){return _0x51b2c3===_0x4e5042;},'DYgYQ':function(_0x18fbcf,_0x33a088,_0x3457e8){return _0x18fbcf(_0x33a088,_0x3457e8);}},_0x56474f=_0x3b0d9a['wzFBS'](loadCache),_0x3c855e=_0x3b0d9a['cJLUs'](getCurrentBranch);if(!_0x3c855e||_0x3c855e===_0x3b0d9a['Ggama']||_0x3b0d9a[_0x24e4aa(0x1e4)](_0x3c855e,_0x3b0d9a[_0x24e4aa(0x1cc)]))return;if(_0x3b0d9a[_0x24e4aa(0x1da)](_0x56474f[_0x24e4aa(0x1cb)][_0x3c855e],!![])){const _0x2ae826=_0x3b0d9a[_0x24e4aa(0x1e0)](getOrCreateSession,_0x56474f,_0x324be2);_0x2ae826['enabled']=!![],_0x2ae826[_0x24e4aa(0x1d5)]=_0x3c855e,saveCache(_0x56474f);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x105f5e){const _0x35a3f1=_0x37e8c9,_0x8ca46a={'MMPAG':function(_0x2c5fee){return _0x2c5fee();},'tLKjX':function(_0x2548c5,_0x268972){return _0x2548c5(_0x268972);}},_0xef26d0=_0x8ca46a['MMPAG'](loadCache),_0x300855=_0xef26d0['sessions'][_0x105f5e];_0x300855?.[_0x35a3f1(0x1d3)]&&(_0xef26d0[_0x35a3f1(0x1bd)]=Date[_0x35a3f1(0x1e3)](),_0x8ca46a[_0x35a3f1(0x1ba)](saveCache,_0xef26d0));}export function shouldAutoEnableAfterClear(_0x380323){const _0x39baca=_0x37e8c9;if(_0x380323!==_0x39baca(0x1b8))return![];const _0x228de9=loadCache(),_0x3bf6ff=_0x228de9[_0x39baca(0x1bd)];if(!_0x3bf6ff)return![];const _0x1ddc7d=Date[_0x39baca(0x1e3)]()-_0x3bf6ff;return _0x1ddc7d<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x168f16){const _0x9e2a82=_0x37e8c9,_0x47faa3={'Beibr':function(_0x15c778){return _0x15c778();},'GVaNx':function(_0x303525,_0x3b71d8,_0x1410e7){return _0x303525(_0x3b71d8,_0x1410e7);},'jQvDm':function(_0x574ed1){return _0x574ed1();}},_0x8c9582=_0x47faa3['Beibr'](loadCache),_0x1c67d7=_0x47faa3['GVaNx'](getOrCreateSession,_0x8c9582,_0x168f16);_0x1c67d7[_0x9e2a82(0x1d3)]=!![];const _0x22a9ab=_0x47faa3[_0x9e2a82(0x1be)](getCurrentBranch);_0x22a9ab&&_0x22a9ab!=='main'&&_0x22a9ab!=='master'&&(_0x1c67d7[_0x9e2a82(0x1d5)]=_0x22a9ab),delete _0x8c9582['lastEnabledSessionClearedAt'],saveCache(_0x8c9582);}export function registerSession(_0x4c9748,_0x1809e4){const _0x2858b5=_0x37e8c9,_0x33408f={'syajP':function(_0x38afff,_0x353681,_0x37531f){return _0x38afff(_0x353681,_0x37531f);},'igKrD':function(_0xc25315,_0x1a0ddd){return _0xc25315(_0x1a0ddd);}},_0x57e59f=loadCache(),_0x5cc6e7=_0x33408f['syajP'](getOrCreateSession,_0x57e59f,_0x4c9748);_0x5cc6e7['featureId']=_0x1809e4,_0x5cc6e7[_0x2858b5(0x1c7)]=new Date()['toISOString'](),_0x33408f[_0x2858b5(0x1e8)](saveCache,_0x57e59f);}export function getSessionEntry(_0x4ffc5e){const _0x159de2=_0x37e8c9,_0x37f2ca=loadCache(),_0x385bfc=_0x37f2ca['sessions'][_0x4ffc5e];if(_0x385bfc?.['featureId']&&_0x385bfc?.['registeredAt'])return{'featureId':_0x385bfc[_0x159de2(0x1db)],'registeredAt':_0x385bfc['registeredAt']};return null;}export function unregisterSession(_0x34874d){const _0x2a0a2e=_0x37e8c9,_0x2cacaa={'UtUhr':function(_0x471f5d){return _0x471f5d();}},_0x3120b6=_0x2cacaa[_0x2a0a2e(0x1c1)](loadCache),_0x30d09a=_0x3120b6['sessions'][_0x34874d];_0x30d09a&&(delete _0x30d09a[_0x2a0a2e(0x1db)],delete _0x30d09a[_0x2a0a2e(0x1c7)],saveCache(_0x3120b6));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0xceecc0){const _0x3be613=_0x37e8c9,_0x373e04={'INdxt':function(_0x3217b7){return _0x3217b7();},'mkdfj':function(_0x1e049e,_0xa5c939,_0x365af0){return _0x1e049e(_0xa5c939,_0x365af0);},'HOTSk':function(_0x2630b5,_0x2e6abe){return _0x2630b5-_0x2e6abe;},'AZYCr':function(_0x3abb42,_0x5cace7){return _0x3abb42(_0x5cace7);}},_0x41a8f6=_0x373e04['INdxt'](loadCache),_0x17b0cf=_0x373e04['mkdfj'](getOrCreateSession,_0x41a8f6,_0xceecc0),_0x283d8a=_0x17b0cf['lastPlanReminderAt']||0x0,_0x3ba5c0=Date[_0x3be613(0x1e3)]();if(_0x373e04['HOTSk'](_0x3ba5c0,_0x283d8a)>=PLAN_REMINDER_INTERVAL_MS)return _0x17b0cf['lastPlanReminderAt']=_0x3ba5c0,_0x373e04['AZYCr'](saveCache,_0x41a8f6),!![];return![];}function _0x6506(){const _0x121559=['4zLTVFK','prompted','sSxKz','featureId','HesaH','Hldky','7104912FPAtjW','utf-8','DYgYQ','git\x20rev-parse\x20--abbrev-ref\x20HEAD','writeFileSync','now','gfWkw','497279smptWe','main','YIMYC','igKrD','rfznR','854RMEZkv','nomFR','4ElIdsx','6650216zIEJuk','FkMfk','join','5064855uNmfGv','clear','existsSync','tLKjX','cmexz','YvGyT','lastEnabledSessionClearedAt','jQvDm','20eeUzFJ','OrPyv','UtUhr','xRqgY','HOhlh','mkdirSync','43914AeJnvP','dCXrE','registeredAt','FLYnH','trxpJ','Tsjiu','branches','LrZxd','hNiIR','homedir','IcJYo','master','sessions','4635729YBzNXc','enabled','821103vQuqgC','currentBranch','22UGfVWD','trim'];_0x6506=function(){return _0x121559;};return _0x6506();}export function shouldShowStopReminder(_0x18da0e){const _0x71768=_0x37e8c9,_0x1aa4d2={'Hldky':function(_0x12c216,_0x31c0d9){return _0x12c216>=_0x31c0d9;},'lGZNm':function(_0x6a6017,_0x4f59ff){return _0x6a6017-_0x4f59ff;},'uSAMu':function(_0x1e5ed6,_0x5c5771){return _0x1e5ed6(_0x5c5771);}},_0x3f29fd=loadCache(),_0x31a891=getOrCreateSession(_0x3f29fd,_0x18da0e),_0x4a92ec=_0x31a891['lastStopReminderAt']||0x0,_0x3cb781=Date[_0x71768(0x1e3)]();if(_0x1aa4d2[_0x71768(0x1dd)](_0x1aa4d2['lGZNm'](_0x3cb781,_0x4a92ec),STOP_REMINDER_INTERVAL_MS))return _0x31a891['lastStopReminderAt']=_0x3cb781,_0x1aa4d2['uSAMu'](saveCache,_0x3f29fd),!![];return![];}export function hasSessionBeenPrompted(_0xd5cd41){const _0x176c3e={'aFaUW':function(_0xa815ce,_0x54e7a4){return _0xa815ce===_0x54e7a4;}},_0x36d8ed=loadCache();return _0x176c3e['aFaUW'](_0x36d8ed['sessions'][_0xd5cd41]?.['prompted'],!![]);}export function markSessionPrompted(_0x3c65ae){const _0x5da083=_0x37e8c9,_0x5c3f53={'HesaH':function(_0x130e25){return _0x130e25();},'ltyGP':function(_0xb09950,_0x38b49a,_0x2f7eb8){return _0xb09950(_0x38b49a,_0x2f7eb8);},'hNiIR':function(_0x48ad1e,_0x38f0e8){return _0x48ad1e(_0x38f0e8);}},_0x5a4958=_0x5c3f53[_0x5da083(0x1dc)](loadCache),_0x4775db=_0x5c3f53['ltyGP'](getOrCreateSession,_0x5a4958,_0x3c65ae);_0x4775db[_0x5da083(0x1d9)]=!![],_0x5c3f53[_0x5da083(0x1cd)](saveCache,_0x5a4958);}export function getCacheFile(){return CACHE_FILE;}
1
+ const _0x338361=_0x3db5;function _0x41fe(){const _0x1555ad=['6649992MhvnRC','trim','54848UraCuI','STHuH','CCgzu','504cgNfqn','mqtYn','129367JMIjZt','2890699ajaEuh','589980OlSCOI','featureId','readFileSync','prompted','278820kSBbHJ','registeredAt','QTSng','doesI','HWJCt','lastEnabledSessionClearedAt','lDUnH','18cRUDLJ','35SwMNiV','ZoHLJ','mkdirSync','TidTU','IqMHR','.claude','eonsO','enabled','hHyhu','sessions','AIdfd','pipe','lxwsI','lastStopReminderAt','tZiFB','main','xBVGG','now','utf-8','.ranger_cache.json','sVPnv','clear','branches','master','srWho','UERKl','533702IlhMbv','946NTuZQh'];_0x41fe=function(){return _0x1555ad;};return _0x41fe();}(function(_0x4618dc,_0x6d26cc){const _0xf968c5=_0x3db5,_0x486006=_0x4618dc();while(!![]){try{const _0x5d4865=-parseInt(_0xf968c5(0xd9))/0x1+-parseInt(_0xf968c5(0xd0))/0x2*(parseInt(_0xf968c5(0xe6))/0x3)+parseInt(_0xf968c5(0xd2))/0x4+-parseInt(_0xf968c5(0xe7))/0x5*(parseInt(_0xf968c5(0xdb))/0x6)+-parseInt(_0xf968c5(0xda))/0x7+-parseInt(_0xf968c5(0xd4))/0x8*(parseInt(_0xf968c5(0xd7))/0x9)+-parseInt(_0xf968c5(0xdf))/0xa*(-parseInt(_0xf968c5(0xd1))/0xb);if(_0x5d4865===_0x6d26cc)break;else _0x486006['push'](_0x486006['shift']());}catch(_0x5d1607){_0x486006['push'](_0x486006['shift']());}}}(_0x41fe,0xce382));import*as _0x54efd3 from'fs';import*as _0x4bcdee from'path';import*as _0x324e53 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x4bcdee['join'](_0x324e53['homedir'](),_0x338361(0xec),_0x338361(0xfa));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x1af899=_0x338361,_0xcce4ea={'Myqkq':_0x1af899(0xf9),'dSqQo':function(_0x213525){return _0x213525();}};try{if(_0x54efd3['existsSync'](CACHE_FILE)){const _0x3cbd86=JSON['parse'](_0x54efd3[_0x1af899(0xdd)](CACHE_FILE,_0xcce4ea['Myqkq']));return{'version':0x3,'sessions':_0x3cbd86['sessions']||{},'branches':_0x3cbd86[_0x1af899(0xfd)]||{},'lastEnabledSessionClearedAt':_0x3cbd86[_0x1af899(0xe4)]};}}catch{}return _0xcce4ea['dSqQo'](createEmptyCache);}function saveCache(_0x272e06){const _0xbf5a7f=_0x338361;try{const _0x29ae48=_0x4bcdee['dirname'](CACHE_FILE);!_0x54efd3['existsSync'](_0x29ae48)&&_0x54efd3[_0xbf5a7f(0xe9)](_0x29ae48,{'recursive':!![]}),_0x54efd3['writeFileSync'](CACHE_FILE,JSON['stringify'](_0x272e06,null,0x2));}catch{}}export function getCurrentBranch(){const _0xaacac1=_0x338361,_0x46263c={'sVPnv':function(_0x146b9a,_0x506fd3,_0x60a5f){return _0x146b9a(_0x506fd3,_0x60a5f);},'pZkAl':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','tZiFB':function(_0x3962a0,_0x545ff4){return _0x3962a0===_0x545ff4;}};try{const _0x12cb75=_0x46263c[_0xaacac1(0xfb)](execSync,_0x46263c['pZkAl'],{'encoding':'utf-8','stdio':[_0xaacac1(0xf2),'pipe',_0xaacac1(0xf2)]})[_0xaacac1(0xd3)]();if(!_0x12cb75||_0x46263c[_0xaacac1(0xf5)](_0x12cb75,'HEAD'))return null;return _0x12cb75;}catch{return null;}}export function enableBranch(_0x47588a){const _0x3b8ff0=_0x338361,_0x3468dc={'QTSng':function(_0xfada9a){return _0xfada9a();}},_0x712da6=_0x3468dc[_0x3b8ff0(0xe1)](loadCache);_0x712da6[_0x3b8ff0(0xfd)][_0x47588a]=!![],saveCache(_0x712da6);}export function disableBranch(_0x419c0c){const _0x186b36=_0x338361,_0x391150=loadCache();delete _0x391150[_0x186b36(0xfd)][_0x419c0c],saveCache(_0x391150);}export function isBranchEnabled(_0x10ddf0){const _0xa750f2=_0x338361,_0xa51067={'lxwsI':function(_0x4052f4){return _0x4052f4();}},_0x280842=_0xa51067[_0xa750f2(0xf3)](loadCache);return _0x280842['branches'][_0x10ddf0]===!![];}function getOrCreateSession(_0x11c316,_0x5b6942){const _0x2c9d5e=_0x338361;return!_0x11c316[_0x2c9d5e(0xf0)][_0x5b6942]&&(_0x11c316[_0x2c9d5e(0xf0)][_0x5b6942]={}),_0x11c316['sessions'][_0x5b6942];}export function enableSession(_0x1044e7){const _0x251a47=_0x338361,_0x4f0b31={'TidTU':function(_0x14a919,_0x5e68b0){return _0x14a919!==_0x5e68b0;},'mqtYn':'main','qhhqr':function(_0x3626be,_0x489a86){return _0x3626be(_0x489a86);}},_0x251499=loadCache(),_0x1da909=getOrCreateSession(_0x251499,_0x1044e7);_0x1da909['enabled']=!![];const _0x9f4310=getCurrentBranch();_0x9f4310&&_0x4f0b31[_0x251a47(0xea)](_0x9f4310,_0x4f0b31[_0x251a47(0xd8)])&&_0x9f4310!=='master'&&(_0x251499[_0x251a47(0xfd)][_0x9f4310]=!![],_0x1da909['currentBranch']=_0x9f4310),_0x4f0b31['qhhqr'](saveCache,_0x251499);}export function isSessionEnabled(_0x4e7ebd){const _0x1f880a=_0x338361,_0x57337f={'bnjFq':function(_0x41b766){return _0x41b766();},'srWho':function(_0x590209,_0x5d998b){return _0x590209===_0x5d998b;},'MAFBO':'main','fsxvc':function(_0x262883,_0x52b4dc){return _0x262883===_0x52b4dc;},'cahtm':function(_0x18efa7,_0x32ba93){return _0x18efa7===_0x32ba93;}},_0x3e54d2=_0x57337f['bnjFq'](loadCache),_0x17ccad=getCurrentBranch();if(!_0x17ccad||_0x57337f[_0x1f880a(0xff)](_0x17ccad,_0x57337f['MAFBO'])||_0x57337f['srWho'](_0x17ccad,_0x1f880a(0xfe)))return _0x57337f['fsxvc'](_0x3e54d2['sessions'][_0x4e7ebd]?.['enabled'],!![]);const _0x28004e=_0x57337f['cahtm'](_0x3e54d2[_0x1f880a(0xfd)][_0x17ccad],!![]),_0x189cfe=_0x3e54d2['sessions'][_0x4e7ebd]?.['enabled']===!![];return _0x28004e||_0x189cfe;}export function disableSession(_0x234792){const _0x28f6b0=_0x338361,_0x191192={'FROpl':function(_0x4dcbaf,_0xd6308,_0x3b6a7a){return _0x4dcbaf(_0xd6308,_0x3b6a7a);},'AIdfd':function(_0x18bdc7,_0x8ed606){return _0x18bdc7(_0x8ed606);}},_0x5e815d=loadCache(),_0xe681c0=_0x191192['FROpl'](getOrCreateSession,_0x5e815d,_0x234792);_0xe681c0[_0x28f6b0(0xee)]=![],_0x191192[_0x28f6b0(0xf1)](saveCache,_0x5e815d);}export function updateBranchTracking(_0x51a5df){const _0x3ec0af=_0x338361,_0x5dc59f={'QbCAu':function(_0xd1628c){return _0xd1628c();},'dAjyF':function(_0x5a8318,_0x3f5a69){return _0x5a8318!==_0x3f5a69;}},_0x11ffc9=loadCache(),_0x1f9ead=_0x11ffc9[_0x3ec0af(0xf0)][_0x51a5df];if(!_0x1f9ead?.['enabled'])return;const _0x330977=_0x5dc59f['QbCAu'](getCurrentBranch);if(!_0x330977||_0x330977===_0x3ec0af(0xf6)||_0x330977===_0x3ec0af(0xfe))return;_0x5dc59f['dAjyF'](_0x1f9ead['currentBranch'],_0x330977)&&(_0x11ffc9['branches'][_0x330977]=!![],_0x1f9ead['currentBranch']=_0x330977,saveCache(_0x11ffc9));}export function initBranchTracking(_0x5b3723){const _0x1d4f75=_0x338361,_0x561d17={'aKAgC':function(_0x45baeb){return _0x45baeb();},'TOkQy':'main','aPVVB':'master','UERKl':function(_0x1fa9b3,_0x513ebc){return _0x1fa9b3===_0x513ebc;}},_0x433da7=loadCache(),_0xbeef2b=_0x561d17['aKAgC'](getCurrentBranch);if(!_0xbeef2b||_0xbeef2b===_0x561d17['TOkQy']||_0xbeef2b===_0x561d17['aPVVB'])return;if(_0x561d17[_0x1d4f75(0x100)](_0x433da7['branches'][_0xbeef2b],!![])){const _0x5248a4=getOrCreateSession(_0x433da7,_0x5b3723);_0x5248a4[_0x1d4f75(0xee)]=!![],_0x5248a4['currentBranch']=_0xbeef2b,saveCache(_0x433da7);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x3c3029){const _0x534c53=_0x338361,_0x2753e8={'OScIV':function(_0x51fb37,_0x11ce54){return _0x51fb37(_0x11ce54);}},_0x15609e=loadCache(),_0x536762=_0x15609e['sessions'][_0x3c3029];_0x536762?.['enabled']&&(_0x15609e[_0x534c53(0xe4)]=Date['now'](),_0x2753e8['OScIV'](saveCache,_0x15609e));}export function shouldAutoEnableAfterClear(_0xb06eab){const _0x4c24b5=_0x338361,_0x525aa9={'CCgzu':function(_0x12ed76,_0x4c3c3a){return _0x12ed76!==_0x4c3c3a;},'pzRch':_0x4c24b5(0xfc),'xBVGG':function(_0x26f561,_0x13e1a9){return _0x26f561-_0x13e1a9;}};if(_0x525aa9[_0x4c24b5(0xd6)](_0xb06eab,_0x525aa9['pzRch']))return![];const _0x160786=loadCache(),_0xaa6b6b=_0x160786['lastEnabledSessionClearedAt'];if(!_0xaa6b6b)return![];const _0x21326b=_0x525aa9[_0x4c24b5(0xf7)](Date[_0x4c24b5(0xf8)](),_0xaa6b6b);return _0x21326b<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x24b653){const _0x2802cc=_0x338361,_0x4318c2={'IOHkv':function(_0x2a4715){return _0x2a4715();},'YKQjZ':function(_0xb75aad,_0x57da42,_0x26806b){return _0xb75aad(_0x57da42,_0x26806b);},'jWTkD':function(_0xf45f68){return _0xf45f68();},'ZoHLJ':function(_0x344226,_0x1101cf){return _0x344226!==_0x1101cf;},'STHuH':function(_0x6f1b38,_0x4539ec){return _0x6f1b38(_0x4539ec);}},_0x328229=_0x4318c2['IOHkv'](loadCache),_0x1d60ab=_0x4318c2['YKQjZ'](getOrCreateSession,_0x328229,_0x24b653);_0x1d60ab['enabled']=!![];const _0x331444=_0x4318c2['jWTkD'](getCurrentBranch);_0x331444&&_0x331444!==_0x2802cc(0xf6)&&_0x4318c2[_0x2802cc(0xe8)](_0x331444,_0x2802cc(0xfe))&&(_0x1d60ab['currentBranch']=_0x331444),delete _0x328229[_0x2802cc(0xe4)],_0x4318c2[_0x2802cc(0xd5)](saveCache,_0x328229);}export function registerSession(_0x3599b0,_0x37211a){const _0x3c8972=_0x338361,_0x5275b7={'hHyhu':function(_0x1679d1,_0x576516,_0x209a25){return _0x1679d1(_0x576516,_0x209a25);},'pDLDd':function(_0x930149,_0x5a8584){return _0x930149(_0x5a8584);}},_0x320445=loadCache(),_0x3a7b03=_0x5275b7[_0x3c8972(0xef)](getOrCreateSession,_0x320445,_0x3599b0);_0x3a7b03['featureId']=_0x37211a,_0x3a7b03['registeredAt']=new Date()['toISOString'](),_0x5275b7['pDLDd'](saveCache,_0x320445);}export function getSessionEntry(_0x1eaed8){const _0xf131e2=_0x338361,_0x29bd2b={'lDUnH':function(_0x39a3f7){return _0x39a3f7();}},_0x4f800c=_0x29bd2b[_0xf131e2(0xe5)](loadCache),_0x162c02=_0x4f800c[_0xf131e2(0xf0)][_0x1eaed8];if(_0x162c02?.['featureId']&&_0x162c02?.['registeredAt'])return{'featureId':_0x162c02[_0xf131e2(0xdc)],'registeredAt':_0x162c02[_0xf131e2(0xe0)]};return null;}export function unregisterSession(_0x550bbd){const _0x158241=_0x338361,_0xa3c1d4={'bBRap':function(_0x53d692){return _0x53d692();}},_0xd82505=_0xa3c1d4['bBRap'](loadCache),_0x9cb4aa=_0xd82505[_0x158241(0xf0)][_0x550bbd];_0x9cb4aa&&(delete _0x9cb4aa[_0x158241(0xdc)],delete _0x9cb4aa['registeredAt'],saveCache(_0xd82505));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;function _0x3db5(_0x4517bb,_0x5a275e){_0x4517bb=_0x4517bb-0xd0;const _0x41fe43=_0x41fe();let _0x3db579=_0x41fe43[_0x4517bb];return _0x3db579;}export function shouldShowPlanReminder(_0x504bb7){const _0x49384c=_0x338361,_0x2cb92c={'qeGfx':function(_0x248a70,_0x2e0b0c,_0x5b2948){return _0x248a70(_0x2e0b0c,_0x5b2948);},'NinLF':function(_0x36b3ab,_0x3ab2ef){return _0x36b3ab>=_0x3ab2ef;}},_0x35b33c=loadCache(),_0x210347=_0x2cb92c['qeGfx'](getOrCreateSession,_0x35b33c,_0x504bb7),_0x3dd1f5=_0x210347['lastPlanReminderAt']||0x0,_0xb76b86=Date[_0x49384c(0xf8)]();if(_0x2cb92c['NinLF'](_0xb76b86-_0x3dd1f5,PLAN_REMINDER_INTERVAL_MS))return _0x210347['lastPlanReminderAt']=_0xb76b86,saveCache(_0x35b33c),!![];return![];}export function shouldShowStopReminder(_0x30b19f){const _0x3e2dbf=_0x338361,_0x33bec8={'IqMHR':function(_0x5e2308){return _0x5e2308();},'CDNjs':function(_0x52b23a,_0x4af76,_0x5edfe7){return _0x52b23a(_0x4af76,_0x5edfe7);},'gbvCr':function(_0x1d3265,_0x26cc44){return _0x1d3265>=_0x26cc44;}},_0x3b91d3=_0x33bec8[_0x3e2dbf(0xeb)](loadCache),_0x43ff12=_0x33bec8['CDNjs'](getOrCreateSession,_0x3b91d3,_0x30b19f),_0x5967d1=_0x43ff12[_0x3e2dbf(0xf4)]||0x0,_0x4dd928=Date['now']();if(_0x33bec8['gbvCr'](_0x4dd928-_0x5967d1,STOP_REMINDER_INTERVAL_MS))return _0x43ff12[_0x3e2dbf(0xf4)]=_0x4dd928,saveCache(_0x3b91d3),!![];return![];}export function hasSessionBeenPrompted(_0x304cbe){const _0x3963c2=_0x338361,_0x1bd47b={'doesI':function(_0x3d5d21){return _0x3d5d21();},'eonsO':function(_0x1eceed,_0x3e46df){return _0x1eceed===_0x3e46df;}},_0x74057c=_0x1bd47b[_0x3963c2(0xe2)](loadCache);return _0x1bd47b[_0x3963c2(0xed)](_0x74057c['sessions'][_0x304cbe]?.[_0x3963c2(0xde)],!![]);}export function markSessionPrompted(_0x557662){const _0x18f53b=_0x338361,_0x2d7ac6={'AtSVU':function(_0x5db9e2){return _0x5db9e2();},'HWJCt':function(_0x3a8dc4,_0x26cc97,_0x5bd01e){return _0x3a8dc4(_0x26cc97,_0x5bd01e);},'iSuCw':function(_0x1a0b8d,_0x22d2f8){return _0x1a0b8d(_0x22d2f8);}},_0x26c77d=_0x2d7ac6['AtSVU'](loadCache),_0x1dccaa=_0x2d7ac6[_0x18f53b(0xe3)](getOrCreateSession,_0x26c77d,_0x557662);_0x1dccaa[_0x18f53b(0xde)]=!![],_0x2d7ac6['iSuCw'](saveCache,_0x26c77d);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x47899b=_0x1df3;(function(_0x556474,_0x21461b){const _0x33ab21=_0x1df3,_0x196282=_0x556474();while(!![]){try{const _0x231e40=parseInt(_0x33ab21(0x152))/0x1*(-parseInt(_0x33ab21(0x13b))/0x2)+-parseInt(_0x33ab21(0x17b))/0x3*(parseInt(_0x33ab21(0x137))/0x4)+parseInt(_0x33ab21(0x145))/0x5*(parseInt(_0x33ab21(0x13c))/0x6)+-parseInt(_0x33ab21(0x14a))/0x7*(-parseInt(_0x33ab21(0x177))/0x8)+-parseInt(_0x33ab21(0x16f))/0x9*(-parseInt(_0x33ab21(0x128))/0xa)+parseInt(_0x33ab21(0x121))/0xb*(-parseInt(_0x33ab21(0x16b))/0xc)+-parseInt(_0x33ab21(0x15d))/0xd*(-parseInt(_0x33ab21(0x17a))/0xe);if(_0x231e40===_0x21461b)break;else _0x196282['push'](_0x196282['shift']());}catch(_0x2cf6b6){_0x196282['push'](_0x196282['shift']());}}}(_0x2ae9,0xeb889));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';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x4be196,_0x25210a){const _0x5c4c29=_0x1df3,_0x1a29b6={'wYgmq':function(_0xe753b9,_0x3d68b5,_0x52d69e,_0x5a5095){return _0xe753b9(_0x3d68b5,_0x52d69e,_0x5a5095);},'UblHN':function(_0x33cb83,_0x1338a1,_0x422a81){return _0x33cb83(_0x1338a1,_0x422a81);},'ZaAZt':function(_0x63363c,_0x1a6818,_0x3148c1){return _0x63363c(_0x1a6818,_0x3148c1);},'ITwFD':function(_0x563201,_0x5b5e44,_0x5e753d){return _0x563201(_0x5b5e44,_0x5e753d);},'mJKrj':function(_0x49a62a,_0x12aa79){return _0x49a62a(_0x12aa79);}},_0x2cb3a4=_0x1a29b6['wYgmq'](join,_0x25210a,'ci',_0x4be196),_0x244b4b=join(_0x25210a,'local',_0x4be196),_0x5ce22e=_0x1a29b6[_0x5c4c29(0x150)](join,_0x25210a,_0x4be196),_0x2ab143=_0x1a29b6[_0x5c4c29(0x140)](join,_0x25210a,'local'),_0x4f6a50=_0x1a29b6[_0x5c4c29(0x135)](join,_0x25210a,'ci');if(existsSync(_0x2cb3a4))return _0x2cb3a4;if(existsSync(_0x244b4b))return _0x244b4b;if(_0x1a29b6['mJKrj'](existsSync,_0x5ce22e)&&(_0x5ce22e!==_0x2ab143&&_0x5ce22e!==_0x4f6a50?!![]:_0x1a29b6['mJKrj'](hasLegacyProfileFiles,_0x5ce22e)))return _0x5ce22e;return null;}export function getEnvDir(_0x45cdb4){const _0x7d987c=_0x1df3,_0x19f84e={'XcAbo':function(_0x1bdae4,_0xb20c8b,_0x8912c){return _0x1bdae4(_0xb20c8b,_0x8912c);}},_0x20d8c2=getRangerDir(),_0x3f5883=_0x19f84e[_0x7d987c(0x14c)](findEnvInRoot,_0x45cdb4,_0x20d8c2);if(_0x3f5883)return _0x3f5883;const _0x15d520=getRangerHomeDir();if(_0x15d520!==_0x20d8c2){const _0x2cc37b=_0x19f84e['XcAbo'](findEnvInRoot,_0x45cdb4,_0x15d520);if(_0x2cc37b)return _0x2cc37b;}return join(_0x20d8c2,'local',_0x45cdb4);}export function findExistingEnv(_0x21eb22,_0x260031){const _0x781090=_0x1df3,_0x47a7b5={'yPyRY':function(_0x45874c,_0x1164e5,_0x266055){return _0x45874c(_0x1164e5,_0x266055);},'sjJsb':function(_0x3d620f,_0x221afc,_0x3c472e,_0x594ac0){return _0x3d620f(_0x221afc,_0x3c472e,_0x594ac0);},'FYNVJ':_0x781090(0x14f),'BZfoc':function(_0x234bea,_0x376684){return _0x234bea(_0x376684);},'NQAEw':function(_0x465e35,_0x14de4a){return _0x465e35===_0x14de4a;}},_0x4e56ff=_0x260031?.[_0x781090(0x146)],_0x212250=_0x4e56ff?[_0x4e56ff]:[getRangerDir(),getRangerHomeDir()][_0x781090(0x11b)]((_0x1403d7,_0x410660,_0x2df788)=>_0x2df788['indexOf'](_0x1403d7)===_0x410660),_0x2e63cf=_0x260031?.[_0x781090(0x147)]??['ci',_0x781090(0x142),'legacy'];for(const _0x4b55f0 of _0x212250){const _0x3b4749=_0x47a7b5[_0x781090(0x161)](join,_0x4b55f0,_0x781090(0x142)),_0x4b926c=join(_0x4b55f0,'ci'),_0x386763=[{'location':'ci','path':join(_0x4b55f0,'ci',_0x21eb22)},{'location':_0x781090(0x142),'path':_0x47a7b5['sjJsb'](join,_0x4b55f0,'local',_0x21eb22)},{'location':_0x47a7b5['FYNVJ'],'path':join(_0x4b55f0,_0x21eb22)}];for(const _0x433ab7 of _0x386763){if(_0x2e63cf['includes'](_0x433ab7[_0x781090(0x174)])&&_0x47a7b5['BZfoc'](existsSync,_0x433ab7['path'])){if(_0x433ab7['location']===_0x781090(0x14f)&&(_0x433ab7['path']===_0x3b4749||_0x47a7b5[_0x781090(0x171)](_0x433ab7[_0x781090(0x15a)],_0x4b926c))&&!hasLegacyProfileFiles(_0x433ab7[_0x781090(0x15a)]))continue;return{'path':_0x433ab7['path'],'location':_0x433ab7[_0x781090(0x174)]};}}}return null;}function hasLegacyProfileFiles(_0x21ea33){const _0x5a151a=_0x1df3,_0x458a9c={'DsHXJ':function(_0x5a45a6,_0x387561){return _0x5a45a6(_0x387561);},'YwgAV':function(_0x5af1b0,_0x8cc2e,_0xf7487b){return _0x5af1b0(_0x8cc2e,_0xf7487b);},'yLYPP':'auth.json','BefPX':function(_0x1db078,_0x2911aa){return _0x1db078(_0x2911aa);},'ERVDr':'auth.json.enc'};return _0x458a9c['DsHXJ'](existsSync,join(_0x21ea33,'settings.json'))||_0x458a9c[_0x5a151a(0x148)](existsSync,_0x458a9c['YwgAV'](join,_0x21ea33,_0x458a9c['yLYPP']))||_0x458a9c['BefPX'](existsSync,_0x458a9c['YwgAV'](join,_0x21ea33,_0x458a9c[_0x5a151a(0x14e)]));}export function isEnvCi(_0x2a6e64){const _0x19319a={'yYFTm':function(_0x12c6d2,_0xb093b,_0x2654f8,_0x4419c7){return _0x12c6d2(_0xb093b,_0x2654f8,_0x4419c7);}};return existsSync(_0x19319a['yYFTm'](join,getRangerDir(),'ci',_0x2a6e64));}export async function cleanupTempFiles(_0x1d4cf4){const _0x21a98b=_0x1df3,_0x126712={'nuUeN':'ENOENT'},_0x3859f8=[_0x1d4cf4[_0x21a98b(0x159)],_0x1d4cf4['configPath']][_0x21a98b(0x11b)](Boolean);await Promise[_0x21a98b(0x12b)](_0x3859f8[_0x21a98b(0x166)](_0x111818=>unlink(_0x111818)['catch'](_0x237a9a=>{const _0x2f7643=_0x21a98b;_0x237a9a[_0x2f7643(0x149)]!==_0x126712['nuUeN']&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x111818+':',_0x237a9a[_0x2f7643(0x15f)]);})));}export function getSettingsPath(_0x32c6e9){const _0x276f77=_0x1df3,_0x451bf7={'Wfngb':function(_0x35653d,_0x569bef,_0xb0ccbf){return _0x35653d(_0x569bef,_0xb0ccbf);},'HkUzW':function(_0x34fa65,_0x19a9aa){return _0x34fa65(_0x19a9aa);},'sGqUr':_0x276f77(0x12c)};return _0x451bf7['Wfngb'](join,_0x451bf7['HkUzW'](getEnvDir,_0x32c6e9),_0x451bf7[_0x276f77(0x11c)]);}function _0x2ae9(){const _0x1e2994=['playwright-cli','file','791271EVFHNu','fromEntries','NQAEw','VUEKv','hKsZc','location','isArray','OVQcu','24LEikPW','includes','getuid','1050ANYWNz','6lvBYSi','adxtt','FhSxE','object','-cli','storageState','YYAzQ','replace','headers','--unsafely-treat-insecure-origin-as-secure=http://localhost','--allow-running-insecure-content','LbZLu','Failed\x20to\x20decrypt\x20auth\x20state:\x20','filter','sGqUr','.json','--allow-insecure-localhost','now','zeQQE','11emtPqj','stagehand','userAgent','XjhYN','JNIHe','bcsbA','NCAUy','170VAqjMQ','storageStatePath','safeMode','all','settings.json','launchOptions','gowdq','--disable-setuid-sandbox','sessions','glVlJ','cdpEndpoint','install','headless','ITwFD','extraHTTPHeaders','3330380CVSXcW','uRtBt','browser','repeat','1498TESaFN','48WEGlzu','clipboard-read','txXRG','ranger-config','ZaAZt','entries','local','utf-8','XzkMl','1092180AzPQBp','rangerDir','locations','DsHXJ','code','823949QuUxZI','push','XcAbo','auth.json.enc','ERVDr','legacy','UblHN','contextOptions','2341Vevnrz','xOhaB','ceuGK','--disable-web-security','args','allow','FjSlt','tempAuthPath','path','pdf','xkmnp','329446ADZLNw','vision','message','YyKVW','yPyRY','jEkaK','jYNYa','tabs','zgYVe','map','length','rEBGb','KzhUM','boolean','13350456ipubwO','chromium'];_0x2ae9=function(){return _0x1e2994;};return _0x2ae9();}export async function loadSettings(_0x13bc6a){const _0x211faf=_0x1df3,_0x4a6f50={'adxtt':function(_0x4f9ebe,_0x6e211c){return _0x4f9ebe(_0x6e211c);},'uRtBt':_0x211faf(0x143)},_0x1055fb=getSettingsPath(_0x13bc6a);if(!_0x4a6f50[_0x211faf(0x17c)](existsSync,_0x1055fb))return{};try{const _0x198e89=await readFile(_0x1055fb,_0x4a6f50[_0x211faf(0x138)]);return JSON['parse'](_0x198e89);}catch{return{};}}export async function saveSettings(_0x871054,_0x39e831){const _0x22fded=_0x1df3,_0x323a12={'NCAUy':function(_0x1603c6,_0x1e10cd){return _0x1603c6(_0x1e10cd);},'wxjCe':function(_0xd95842,_0x252e9e,_0x4ebb3b){return _0xd95842(_0x252e9e,_0x4ebb3b);}},_0x2ab584=getSettingsPath(_0x871054),_0x2dd9d8=dirname(_0x2ab584);!_0x323a12[_0x22fded(0x127)](existsSync,_0x2dd9d8)&&await mkdir(_0x2dd9d8,{'recursive':!![]}),await _0x323a12['wxjCe'](writeFile,_0x2ab584,JSON['stringify'](_0x39e831,null,0x2));}export function resolveEnvVars(_0x24ce6f){const _0x83c100=_0x1df3,_0x43b7f9={'xOhaB':function(_0x4075c1,_0x1cac64){return _0x4075c1===_0x1cac64;},'xkmnp':'object'};if(_0x43b7f9[_0x83c100(0x153)](typeof _0x24ce6f,'string'))return _0x24ce6f[_0x83c100(0x115)](/\$\{(\w+)\}/g,(_0x426f43,_0x30aaf1)=>{const _0xde429c=process['env'][_0x30aaf1];if(_0xde429c===undefined)throw new Error('Environment\x20variable\x20'+_0x30aaf1+'\x20is\x20not\x20set');return _0xde429c;});if(Array['isArray'](_0x24ce6f))return _0x24ce6f['map'](resolveEnvVars);if(_0x24ce6f&&typeof _0x24ce6f===_0x43b7f9[_0x83c100(0x15c)])return Object[_0x83c100(0x170)](Object[_0x83c100(0x141)](_0x24ce6f)['map'](([_0x30fa09,_0x4529f7])=>[_0x30fa09,resolveEnvVars(_0x4529f7)]));return _0x24ce6f;}const isRecord=_0x28a692=>typeof _0x28a692==='object'&&_0x28a692!==null&&!Array[_0x47899b(0x175)](_0x28a692),asRecord=_0x4d1d96=>isRecord(_0x4d1d96)?_0x4d1d96:undefined,mergeHeaders=(_0x4e0750,_0x48b366)=>{const _0x27d424=_0x47899b,_0x4512c1={..._0x4e0750??{},..._0x48b366??{}};return Object['keys'](_0x4512c1)[_0x27d424(0x167)]?_0x4512c1:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=[_0x47899b(0x155),_0x47899b(0x118),_0x47899b(0x117),_0x47899b(0x11e)];export function buildBrowserOptionsFromSettings(_0x289311,_0x34ac27={}){const _0x3c4089=_0x47899b,_0x18cfce={'ceuGK':function(_0x54460f,_0x50a762){return _0x54460f(_0x50a762);},'SHDdL':function(_0x5d4d92,_0x1c9266){return _0x5d4d92===_0x1c9266;},'YYAzQ':_0x3c4089(0x16a)},_0x15b659=_0x18cfce[_0x3c4089(0x154)](asRecord,_0x289311[_0x3c4089(0x139)]),_0x34f01a={...asRecord(_0x15b659?.[_0x3c4089(0x12d)])??{}};_0x18cfce['SHDdL'](typeof _0x34ac27[_0x3c4089(0x134)],_0x18cfce[_0x3c4089(0x114)])&&(_0x34f01a[_0x3c4089(0x134)]=_0x34ac27[_0x3c4089(0x134)]);if(_0x289311[_0x3c4089(0x12a)]){const _0x51245f=_0x34f01a['args']??[],_0x2ff7b8=SAFE_MODE_ARGS[_0x3c4089(0x11b)](_0x283f67=>!_0x51245f[_0x3c4089(0x178)](_0x283f67));_0x34f01a['args']=[..._0x51245f,..._0x2ff7b8];}if(_0x289311['allowInsecureLocalhost']){const _0x142a8c=_0x34f01a['args']??[],_0x548d13=ALLOW_LOCALHOST_ARGS[_0x3c4089(0x11b)](_0x6f9def=>!_0x142a8c[_0x3c4089(0x178)](_0x6f9def));_0x34f01a['args']=[..._0x142a8c,..._0x548d13];}const _0x51905e={...asRecord(_0x15b659?.[_0x3c4089(0x151)])??{}};_0x51905e['ignoreHTTPSErrors']=!![];typeof _0x289311['userAgent']==='string'&&(_0x51905e['userAgent']=_0x289311[_0x3c4089(0x123)]);const _0x51f4e5=mergeHeaders(asRecord(_0x51905e[_0x3c4089(0x136)]),asRecord(_0x289311['headers']));return _0x51f4e5?_0x51905e[_0x3c4089(0x136)]=_0x51f4e5:delete _0x51905e[_0x3c4089(0x136)],_0x34ac27[_0x3c4089(0x129)]&&(_0x51905e['storageState']=_0x34ac27[_0x3c4089(0x129)]),{'launchOptions':_0x34f01a,'contextOptions':_0x51905e};}async function resolveLocalAuthPath(_0x26736a){const _0x22e6ea=_0x47899b,_0x5cf617={'LbZLu':function(_0xbdc141,_0x3c5966,_0x27b663){return _0xbdc141(_0x3c5966,_0x27b663);},'sjqIH':_0x22e6ea(0x14d),'IlVGG':'auth.json','nPPdQ':function(_0x99c9fd,_0x36bf9d){return _0x99c9fd(_0x36bf9d);},'ROYSG':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','bwuSq':function(_0x4537f0,_0x208883){return _0x4537f0 instanceof _0x208883;},'KzhUM':function(_0x419b47,_0x51adf9){return _0x419b47(_0x51adf9);}},_0x106e83=_0x5cf617['LbZLu'](join,_0x26736a,_0x5cf617['sjqIH']),_0xd4f37=join(_0x26736a,_0x5cf617['IlVGG']);if(_0x5cf617['nPPdQ'](existsSync,_0x106e83))try{const _0x2bde7b=await getToken();if(!_0x2bde7b)throw new Error(_0x5cf617['ROYSG']);const _0x3fc80a=await readFile(_0x106e83),_0x3af63f=decrypt(_0x3fc80a,_0x2bde7b),_0x43dc74=join(tmpdir(),'ranger-auth-'+Date['now']()+_0x22e6ea(0x11d));return await _0x5cf617[_0x22e6ea(0x119)](writeFile,_0x43dc74,_0x3af63f),{'storageStatePath':_0x43dc74,'tempAuthPath':_0x43dc74};}catch(_0x49b059){const _0x2344dd=_0x5cf617['bwuSq'](_0x49b059,Error)?_0x49b059[_0x22e6ea(0x15f)]:_0x5cf617[_0x22e6ea(0x169)](String,_0x49b059);throw new Error(_0x22e6ea(0x11a)+_0x2344dd);}if(existsSync(_0xd4f37))return{'storageStatePath':_0xd4f37};return{};}function _0x1df3(_0x516fae,_0x4bb0f6){_0x516fae=_0x516fae-0x113;const _0x2ae9d6=_0x2ae9();let _0x1df350=_0x2ae9d6[_0x516fae];return _0x1df350;}export async function buildPlaywrightConfig(_0x236094,_0x2aeae7,_0x195d03,_0xc1e0ff,_0x31369d){const _0x17f196=_0x47899b,_0x42c33f={'YyKVW':function(_0x56aca6,_0x2c216f,_0x19ac5d,_0x42e630,_0x9170d0,_0xa6f246,_0x23245a){return _0x56aca6(_0x2c216f,_0x19ac5d,_0x42e630,_0x9170d0,_0xa6f246,_0x23245a);},'KIsDg':'stagehand','JNIHe':function(_0x40aef5,_0x570143){return _0x40aef5(_0x570143);}};if(_0x31369d)return _0x42c33f[_0x17f196(0x160)](buildPlaywrightConfigCore,_0x236094,_0x31369d,_0x2aeae7,_0x195d03,_0xc1e0ff,_0x42c33f['KIsDg']);const {storageStatePath:_0x3c60d0,tempAuthPath:_0x25a63a}=await _0x42c33f[_0x17f196(0x125)](resolveLocalAuthPath,_0x42c33f[_0x17f196(0x125)](getEnvDir,_0x2aeae7)),_0x11ff6c=await _0x42c33f['YyKVW'](buildPlaywrightConfigCore,_0x236094,_0x3c60d0,_0x2aeae7,_0x195d03,_0xc1e0ff,_0x42c33f['KIsDg']);return{..._0x11ff6c,'tempAuthPath':_0x25a63a};}export async function buildPlaywrightConfigCore(_0x49262c,_0x4bafe7,_0x2edfe6,_0x373881,_0x4c9128,_0x4b0863=_0x47899b(0x122)){const _0x3f7ba0=_0x47899b,_0x1b9404={'XzkMl':function(_0xc36b7f,_0x2c6fa1,_0x531796){return _0xc36b7f(_0x2c6fa1,_0x531796);},'gowdq':function(_0xc7a970,_0x51ec72){return _0xc7a970===_0x51ec72;},'FjSlt':'--no-sandbox','bPjnL':'chromium','RXTAn':_0x3f7ba0(0x13d),'hsUiR':'clipboard-write','dfShM':function(_0x5850ea){return _0x5850ea();},'zKlyN':function(_0x215adc,_0x3d1d73,_0x1a7c06,_0x448f8e){return _0x215adc(_0x3d1d73,_0x1a7c06,_0x448f8e);},'jEkaK':_0x3f7ba0(0x130),'VUEKv':function(_0xbe8ff5,_0x22d22b){return _0xbe8ff5(_0x22d22b);},'kaFac':'none','zgYVe':'core','LkLPH':_0x3f7ba0(0x15b),'mOEtR':_0x3f7ba0(0x157),'glVlJ':_0x3f7ba0(0x13f),'txXRG':function(_0x4d9484,_0x4ab409,_0x3d5984){return _0x4d9484(_0x4ab409,_0x3d5984);},'rpFVY':function(_0x558c04,_0x26aa5e){return _0x558c04===_0x26aa5e;},'VUzIe':_0x3f7ba0(0x17f)},_0xc1d2a1=_0x373881||_0x1b9404['dfShM'](randomUUID),_0x46fb35=_0x1b9404['zKlyN'](join,getRangerDir(),_0x1b9404[_0x3f7ba0(0x162)],_0xc1d2a1),_0x372938=_0x1b9404['VUEKv'](Boolean,_0x49262c['cdpEndpoint']),_0x14e7ff=_0x372938?{'browserName':_0x3f7ba0(0x16c),'cdpEndpoint':_0x49262c[_0x3f7ba0(0x132)]}:((()=>{const _0x1756f7=_0x3f7ba0,{launchOptions:_0x1529ef,contextOptions:_0x3fd7f7}=_0x1b9404[_0x1756f7(0x144)](buildBrowserOptionsFromSettings,_0x49262c,{'headless':_0x4c9128?![]:_0x49262c[_0x1756f7(0x134)]??!![],'storageStatePath':_0x4bafe7});if(_0x1b9404['gowdq'](process[_0x1756f7(0x179)]?.(),0x0)){const _0x25e777=[_0x1b9404[_0x1756f7(0x158)],_0x1756f7(0x12f)],_0x218897=_0x1529ef[_0x1756f7(0x156)]??[],_0x248899=_0x25e777['filter'](_0x5bc1c4=>!_0x218897['includes'](_0x5bc1c4));_0x1529ef['args']=[..._0x218897,..._0x248899];}return{'isolated':!![],'browserName':_0x1b9404['bPjnL'],'launchOptions':_0x1529ef,'contextOptions':{..._0x3fd7f7,'permissions':[_0x1b9404['RXTAn'],_0x1b9404['hsUiR']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x3a3682=_0x4b0863===_0x3f7ba0(0x16d)?{'browser':_0x14e7ff,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x46fb35,'outputMode':_0x3f7ba0(0x16e),'codegen':_0x1b9404['kaFac']}:{'name':_0x2edfe6,'browser':_0x14e7ff,'capabilities':[_0x1b9404[_0x3f7ba0(0x165)],_0x3f7ba0(0x164),_0x3f7ba0(0x133),_0x1b9404['LkLPH'],_0x3f7ba0(0x15e)],'imageResponses':_0x1b9404['mOEtR'],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x46fb35};if(!_0x372938){const _0x29f9e3=_0x3a3682['browser'],_0x1378f3=_0x29f9e3['contextOptions'];if(_0x1b9404[_0x3f7ba0(0x12e)](_0x1378f3['userAgent'],undefined))delete _0x1378f3['userAgent'];if(_0x1378f3[_0x3f7ba0(0x113)]===undefined)delete _0x1378f3[_0x3f7ba0(0x113)];}const _0x5cbe5f=_0x1b9404['XzkMl'](join,tmpdir(),_0x1b9404[_0x3f7ba0(0x131)]);!_0x1b9404[_0x3f7ba0(0x172)](existsSync,_0x5cbe5f)&&await _0x1b9404[_0x3f7ba0(0x13e)](mkdir,_0x5cbe5f,{'recursive':!![]});const _0x4c4e30=_0x1b9404['rpFVY'](_0x4b0863,'playwright-cli')?_0x1b9404['VUzIe']:'',_0x1890b7=_0x1b9404[_0x3f7ba0(0x144)](join,_0x5cbe5f,_0x2edfe6+'-'+Date[_0x3f7ba0(0x11f)]()+_0x4c4e30+_0x3f7ba0(0x11d));return await _0x1b9404[_0x3f7ba0(0x13e)](writeFile,_0x1890b7,JSON['stringify'](_0x3a3682,null,0x2)),{'configPath':_0x1890b7};}export async function buildPlaywrightCliConfig(_0x379517,_0xc8a19f,_0x11d74c,_0x47fa23,_0x5891ee){const _0x3ff841=_0x47899b,_0x54a8c9={'OVQcu':function(_0x303c1a,_0x5b90a7,_0x9a77fe,_0x3e75e6,_0x3671fb,_0x5d0b1e,_0xd3145a){return _0x303c1a(_0x5b90a7,_0x9a77fe,_0x3e75e6,_0x3671fb,_0x5d0b1e,_0xd3145a);},'fpcDf':function(_0x3f6cd6,_0x58656e){return _0x3f6cd6(_0x58656e);},'rvEUr':'playwright-cli'};if(_0x5891ee)return _0x54a8c9[_0x3ff841(0x176)](buildPlaywrightConfigCore,_0x379517,_0x5891ee,_0xc8a19f,_0x11d74c,_0x47fa23,'playwright-cli');const {storageStatePath:_0xbe707a,tempAuthPath:_0x5c70b4}=await resolveLocalAuthPath(_0x54a8c9['fpcDf'](getEnvDir,_0xc8a19f)),_0x244fa1=await buildPlaywrightConfigCore(_0x379517,_0xbe707a,_0xc8a19f,_0x11d74c,_0x47fa23,_0x54a8c9['rvEUr']);return{..._0x244fa1,'tempAuthPath':_0x5c70b4};}export function getNestedValue(_0x187c03,_0x28d462){const _0x37d96e=_0x47899b,_0x15bbfe={'hKsZc':function(_0x3d838c,_0x33cbc3){return _0x3d838c(_0x33cbc3);},'ajLEw':function(_0x4ede7e,_0x56cef4){return _0x4ede7e===_0x56cef4;}},_0x1b8a43=_0x15bbfe[_0x37d96e(0x173)](parseKeyPath,_0x28d462);let _0x26419d=_0x187c03;for(const _0x1778d8 of _0x1b8a43){if(_0x26419d===null||_0x15bbfe['ajLEw'](_0x26419d,undefined)||typeof _0x26419d!==_0x37d96e(0x17e))return undefined;_0x26419d=_0x26419d[_0x1778d8];}return _0x26419d;}export function setNestedValue(_0x37a432,_0x1335f1,_0x544424){const _0x5af32b=_0x47899b,_0x4a3e30={'cLMXp':function(_0x406284,_0x5d2972){return _0x406284 in _0x5d2972;},'UCrni':'object','kSuvm':function(_0x28c762,_0x2c96f3){return _0x28c762-_0x2c96f3;}},_0x2c06c2=parseKeyPath(_0x1335f1);let _0x1903b4=_0x37a432;for(let _0x2d5c09=0x0;_0x2d5c09<_0x2c06c2[_0x5af32b(0x167)]-0x1;_0x2d5c09++){const _0x151556=_0x2c06c2[_0x2d5c09];(!_0x4a3e30['cLMXp'](_0x151556,_0x1903b4)||typeof _0x1903b4[_0x151556]!==_0x4a3e30['UCrni'])&&(_0x1903b4[_0x151556]={}),_0x1903b4=_0x1903b4[_0x151556];}_0x1903b4[_0x2c06c2[_0x4a3e30['kSuvm'](_0x2c06c2[_0x5af32b(0x167)],0x1)]]=_0x544424;}export function deleteNestedValue(_0x440353,_0x47f488){const _0x2b7304=_0x47899b,_0x4c2def={'rOdEE':function(_0x39f3ab,_0x91bc36){return _0x39f3ab===_0x91bc36;},'FhSxE':function(_0x441f0b,_0x3812a4){return _0x441f0b!==_0x3812a4;},'XjhYN':_0x2b7304(0x17e)},_0x36992c=parseKeyPath(_0x47f488);let _0x2e2464=_0x440353;for(let _0x4bd4ab=0x0;_0x4bd4ab<_0x36992c['length']-0x1;_0x4bd4ab++){if(_0x2e2464===null||_0x4c2def['rOdEE'](_0x2e2464,undefined)||typeof _0x2e2464!=='object')return![];_0x2e2464=_0x2e2464[_0x36992c[_0x4bd4ab]];}if(_0x2e2464===null||_0x2e2464===undefined||_0x4c2def[_0x2b7304(0x17d)](typeof _0x2e2464,_0x4c2def[_0x2b7304(0x124)]))return![];const _0x330153=_0x36992c[_0x36992c[_0x2b7304(0x167)]-0x1];if(_0x330153 in _0x2e2464)return delete _0x2e2464[_0x330153],!![];return![];}function parseKeyPath(_0x54fdf4){const _0x2361a3=_0x47899b,_0x55970d={'hcAuW':function(_0x5b039c,_0x2bf2a7){return _0x5b039c===_0x2bf2a7;},'jYNYa':'header','TRwfj':_0x2361a3(0x116),'rEBGb':function(_0x4e6a53,_0x1f31e5){return _0x4e6a53===_0x1f31e5;},'gLRjM':'setupHeader'},_0x40119e=_0x54fdf4['split']('.');return _0x55970d['hcAuW'](_0x40119e[0x0],_0x55970d[_0x2361a3(0x163)])&&(_0x40119e[0x0]=_0x55970d['TRwfj']),_0x55970d[_0x2361a3(0x168)](_0x40119e[0x0],_0x55970d['gLRjM'])&&(_0x40119e[0x0]='setupHeaders'),_0x40119e;}export function formatSettings(_0x3b2525,_0x2ceb3e=0x0){const _0x4ec17e=_0x47899b,_0x2df995={'bcsbA':function(_0x1d27ac,_0x30780d){return _0x1d27ac===_0x30780d;},'zeQQE':function(_0x207e7b,_0x17f042){return _0x207e7b!==_0x17f042;}},_0x467195=[],_0x4d86c0='\x20\x20'[_0x4ec17e(0x13a)](_0x2ceb3e);for(const [_0x4581a4,_0x1ac294]of Object['entries'](_0x3b2525)){if(_0x2df995[_0x4ec17e(0x126)](_0x1ac294,undefined))continue;if(typeof _0x1ac294==='object'&&_0x2df995[_0x4ec17e(0x120)](_0x1ac294,null)){_0x467195[_0x4ec17e(0x14b)](''+_0x4d86c0+_0x4581a4+':');for(const [_0xfd372b,_0xf26682]of Object['entries'](_0x1ac294)){_0x467195['push'](_0x4d86c0+'\x20\x20'+_0xfd372b+':\x20'+_0xf26682);}}else _0x467195['push'](''+_0x4d86c0+_0x4581a4+':\x20'+_0x1ac294);}return _0x467195['join']('\x0a');}
1
+ const _0x44e962=_0x5e17;(function(_0x6af887,_0x147c12){const _0x3b744c=_0x5e17,_0x39eca4=_0x6af887();while(!![]){try{const _0x498b91=-parseInt(_0x3b744c(0x1ca))/0x1+-parseInt(_0x3b744c(0x1bd))/0x2+-parseInt(_0x3b744c(0x1b8))/0x3+-parseInt(_0x3b744c(0x1f3))/0x4*(-parseInt(_0x3b744c(0x1b4))/0x5)+parseInt(_0x3b744c(0x1e8))/0x6*(parseInt(_0x3b744c(0x1fb))/0x7)+-parseInt(_0x3b744c(0x1b7))/0x8*(-parseInt(_0x3b744c(0x1a3))/0x9)+-parseInt(_0x3b744c(0x1d5))/0xa;if(_0x498b91===_0x147c12)break;else _0x39eca4['push'](_0x39eca4['shift']());}catch(_0x264572){_0x39eca4['push'](_0x39eca4['shift']());}}}(_0x193a,0x78af3));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';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x47446e,_0x3d9353){const _0x3b1165=_0x5e17,_0x1891fd={'aAzGF':_0x3b1165(0x20d),'sFoaM':function(_0xcdc574,_0x3d1c08,_0x1197f3){return _0xcdc574(_0x3d1c08,_0x1197f3);},'brmLy':function(_0x57772e,_0x44e3ae,_0x5c1efb){return _0x57772e(_0x44e3ae,_0x5c1efb);},'WTIqV':function(_0x47ae2e,_0x3e9647){return _0x47ae2e(_0x3e9647);},'pdHli':function(_0x5629da,_0x4a0725){return _0x5629da!==_0x4a0725;}},_0x1d5d36=join(_0x3d9353,'ci',_0x47446e),_0x3c0ce3=join(_0x3d9353,_0x1891fd['aAzGF'],_0x47446e),_0x374d25=_0x1891fd[_0x3b1165(0x1bb)](join,_0x3d9353,_0x47446e),_0x10ef02=join(_0x3d9353,'local'),_0x26035e=_0x1891fd[_0x3b1165(0x1a9)](join,_0x3d9353,'ci');if(existsSync(_0x1d5d36))return _0x1d5d36;if(_0x1891fd[_0x3b1165(0x1b1)](existsSync,_0x3c0ce3))return _0x3c0ce3;if(existsSync(_0x374d25)&&(_0x374d25!==_0x10ef02&&_0x1891fd['pdHli'](_0x374d25,_0x26035e)?!![]:hasLegacyProfileFiles(_0x374d25)))return _0x374d25;return null;}export function getEnvDir(_0x2f5cee,_0x1d8ce4={}){const _0x20c170=_0x5e17,_0x5d5177={'JCbAq':function(_0xa85d8a){return _0xa85d8a();},'VHqhN':function(_0x456be8,_0x2b43db,_0x16157a){return _0x456be8(_0x2b43db,_0x16157a);},'gZGIC':function(_0xf50c5d,_0x45205a,_0x39430e){return _0xf50c5d(_0x45205a,_0x39430e);},'xYnPd':function(_0x219c32,_0x249bab){return _0x219c32(_0x249bab);},'lMeds':function(_0xabbb30,_0x165c9d,_0x4cb74d){return _0xabbb30(_0x165c9d,_0x4cb74d);}},_0x2ebd53=_0x5d5177[_0x20c170(0x1ea)](getRangerDir),_0x354fe3=_0x5d5177['VHqhN'](findEnvInRoot,_0x2f5cee,_0x2ebd53);if(_0x354fe3){if(_0x1d8ce4[_0x20c170(0x216)]&&isLegacyEnvPath(_0x354fe3))throw _0x5d5177[_0x20c170(0x1e7)](legacyWriteError,_0x2f5cee,_0x354fe3);return _0x354fe3;}const _0x29c230=_0x5d5177[_0x20c170(0x1ea)](getRangerHomeDir);if(_0x29c230!==_0x2ebd53){const _0x4c16d4=findEnvInRoot(_0x2f5cee,_0x29c230);if(_0x4c16d4){if(_0x1d8ce4[_0x20c170(0x216)]&&_0x5d5177[_0x20c170(0x1d7)](isLegacyEnvPath,_0x4c16d4))throw legacyWriteError(_0x2f5cee,_0x4c16d4);return _0x4c16d4;}}const _0x16d96e=join(_0x29c230,_0x20c170(0x20d),_0x2f5cee);if(_0x1d8ce4[_0x20c170(0x216)])throw _0x5d5177[_0x20c170(0x1ba)](legacyWriteError,_0x2f5cee,_0x16d96e);return _0x16d96e;}function isLegacyEnvPath(_0x3a86a3){const _0x2a2372=_0x5e17,_0x2e82c2={'GCbVP':function(_0x18a547){return _0x18a547();},'ClkVm':function(_0xbf264b,_0x10c1ed){return _0xbf264b+_0x10c1ed;},'Xiihl':function(_0x4658e4,_0x3a305f){return _0x4658e4===_0x3a305f;}},_0x2d6e71=_0x2e82c2['GCbVP'](getRangerDir),_0x1e219e=getRangerHomeDir();for(const _0x5b8f43 of new Set([_0x2d6e71,_0x1e219e])){const _0x5bbab1=_0x5b8f43[_0x2a2372(0x1bc)]('/')?_0x5b8f43:_0x2e82c2[_0x2a2372(0x1dc)](_0x5b8f43,'/');if(_0x2e82c2['Xiihl'](_0x3a86a3,_0x5b8f43)||_0x3a86a3[_0x2a2372(0x1eb)](_0x5bbab1))return!![];}return![];}function _0x193a(){const _0x55a4aa=['dBJwl','location','local','file','HFypr','map','message','keys','SnFby','mNhFI','FiAmt','forWrite','extraHTTPHeaders','pDIkn','chromium','all','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','repeat','warn','27270bHozeU','vQdUm','header','PKPet','lCKVq','browser','brmLy','storageState','auth.json','--disable-web-security','ILkyf','path','object','XnNJT','WTIqV','ZwFVt','luWTx','10uhuotP','YMKKF','eOFvK','1592oMlgzj','945591xyuHJl','headers','lMeds','sFoaM','endsWith','223624YPwmxf','SDTsw','ejylu','stagehand','towqX','string','mPdmv','env','xHtLV','filter','pJddE','fromEntries','storageStatePath','810326kPvVRG','DYbJT','core','settings.json','Environment\x20variable\x20','code','--unsafely-treat-insecure-origin-as-secure=http://localhost','vision','DDNeH','includes','OrKvd','6445160sesUlT','tabs','xYnPd','args','utf-8','legacy','rangerDir','ClkVm','tuUJK','uJlwW','ENOENT','userAgent','catch','entries','PLuhP','join','VagPP','length','gZGIC','5861868KQpRkt','PEWgL','JCbAq','startsWith','push','AeCrL','headless','.json','tempAuthPath','stringify','akzSp','1592452NAOWim','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','now','playwright-cli','RjHLg','uECOy','uCaYB','parse','7xojlbK','LTMiM','boolean','wBJJe','lSLws','UWNmT','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','FHJDr','wtNmo','isArray','aylRU','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','DkGwn','--no-sandbox','install','HQYIP'];_0x193a=function(){return _0x55a4aa;};return _0x193a();}function legacyWriteError(_0x374565,_0x595507){const _0x50c5aa=_0x5e17,_0x40591d={'wUAmO':function(_0x5ce21d,_0x401481){return _0x5ce21d+_0x401481;}};return new Error(_0x40591d['wUAmO']('Refusing\x20to\x20write\x20profile\x20\x22'+_0x374565+'\x22\x20to\x20legacy\x20path\x20'+_0x595507+'.\x0a'+_0x50c5aa(0x1f4)+'\x20\x20ranger\x20profile\x20add\x20<name>\x0a',_0x50c5aa(0x201)));}export function findExistingEnv(_0x2e642f,_0x3a1eb2){const _0x112710=_0x5e17,_0x2b8827={'mPdmv':function(_0x23b1aa){return _0x23b1aa();},'pxrxd':function(_0x5e2939){return _0x5e2939();},'ILkyf':_0x112710(0x20d),'OEKEN':function(_0xdd2659,_0x3d5110,_0x237544){return _0xdd2659(_0x3d5110,_0x237544);},'UWNmT':function(_0x37ef5b,_0x4044bc){return _0x37ef5b(_0x4044bc);},'SnFby':function(_0x944213,_0x4ace99){return _0x944213===_0x4ace99;},'uCaYB':function(_0x2e8eca,_0x3c19d1){return _0x2e8eca(_0x3c19d1);}},_0x253d3a=_0x3a1eb2?.[_0x112710(0x1db)],_0xc0a802=_0x253d3a?[_0x253d3a]:[_0x2b8827[_0x112710(0x1c3)](getRangerDir),_0x2b8827['pxrxd'](getRangerHomeDir)][_0x112710(0x1c6)]((_0x39c699,_0x1d9a0c,_0x5a2ae6)=>_0x5a2ae6['indexOf'](_0x39c699)===_0x1d9a0c),_0x1c1c60=_0x3a1eb2?.['locations']??['ci',_0x2b8827[_0x112710(0x1ad)],_0x112710(0x1da)];for(const _0x2fa7e2 of _0xc0a802){const _0x2f4b6c=join(_0x2fa7e2,_0x2b8827[_0x112710(0x1ad)]),_0x9c85e2=_0x2b8827['OEKEN'](join,_0x2fa7e2,'ci'),_0x5a000c=[{'location':'ci','path':join(_0x2fa7e2,'ci',_0x2e642f)},{'location':_0x112710(0x20d),'path':join(_0x2fa7e2,_0x2b8827['ILkyf'],_0x2e642f)},{'location':_0x112710(0x1da),'path':_0x2b8827['OEKEN'](join,_0x2fa7e2,_0x2e642f)}];for(const _0x209cba of _0x5a000c){if(_0x1c1c60['includes'](_0x209cba[_0x112710(0x20c)])&&_0x2b8827[_0x112710(0x200)](existsSync,_0x209cba[_0x112710(0x1ae)])){if(_0x209cba['location']===_0x112710(0x1da)&&(_0x209cba[_0x112710(0x1ae)]===_0x2f4b6c||_0x2b8827[_0x112710(0x213)](_0x209cba['path'],_0x9c85e2))&&!_0x2b8827[_0x112710(0x1f9)](hasLegacyProfileFiles,_0x209cba['path']))continue;return{'path':_0x209cba['path'],'location':_0x209cba[_0x112710(0x20c)]};}}}return null;}function hasLegacyProfileFiles(_0x41573d){const _0x1f5e48=_0x5e17,_0x314deb={'lCKVq':function(_0x26e679,_0x478f01,_0x3549cf){return _0x26e679(_0x478f01,_0x3549cf);},'FiAmt':function(_0x5897b8,_0x2e97da){return _0x5897b8(_0x2e97da);},'FnxYU':_0x1f5e48(0x1ab),'GMDhp':'auth.json.enc'};return existsSync(_0x314deb[_0x1f5e48(0x1a7)](join,_0x41573d,_0x1f5e48(0x1cd)))||_0x314deb[_0x1f5e48(0x215)](existsSync,join(_0x41573d,_0x314deb['FnxYU']))||_0x314deb['FiAmt'](existsSync,_0x314deb['lCKVq'](join,_0x41573d,_0x314deb['GMDhp']));}export function isEnvCi(_0x561386){const _0x3080ff=_0x5e17,_0x2cd10b={'uJlwW':function(_0x5214f8,_0xc07e16,_0x5df9f2,_0x134100){return _0x5214f8(_0xc07e16,_0x5df9f2,_0x134100);},'HQYIP':function(_0x3e0f2a){return _0x3e0f2a();},'CVTrg':function(_0x346ac4,_0x21cd38){return _0x346ac4!==_0x21cd38;},'Tholw':function(_0x59907c){return _0x59907c();},'vQdUm':function(_0x353921,_0x5b7b15){return _0x353921(_0x5b7b15);}};if(existsSync(_0x2cd10b[_0x3080ff(0x1de)](join,_0x2cd10b[_0x3080ff(0x20a)](getRangerDir),'ci',_0x561386)))return!![];const _0x3f52b7=getRangerHomeDir();if(_0x2cd10b['CVTrg'](_0x3f52b7,_0x2cd10b['Tholw'](getRangerDir))&&_0x2cd10b[_0x3080ff(0x1a4)](existsSync,_0x2cd10b['uJlwW'](join,_0x3f52b7,'ci',_0x561386)))return!![];return![];}export async function cleanupTempFiles(_0x3255f2){const _0x169d6e=_0x5e17,_0x3bdb9f={'eOFvK':function(_0x339c7e,_0x8ea39b){return _0x339c7e!==_0x8ea39b;},'wBJJe':_0x169d6e(0x1df)},_0x17a6b5=[_0x3255f2[_0x169d6e(0x1f0)],_0x3255f2['configPath']][_0x169d6e(0x1c6)](Boolean);await Promise[_0x169d6e(0x19f)](_0x17a6b5[_0x169d6e(0x210)](_0x5a9489=>unlink(_0x5a9489)[_0x169d6e(0x1e1)](_0x52cfb2=>{const _0x45cfd1=_0x169d6e;_0x3bdb9f[_0x45cfd1(0x1b6)](_0x52cfb2[_0x45cfd1(0x1cf)],_0x3bdb9f[_0x45cfd1(0x1fe)])&&console[_0x45cfd1(0x1a2)](_0x45cfd1(0x1a0)+_0x5a9489+':',_0x52cfb2[_0x45cfd1(0x211)]);})));}export function getSettingsPath(_0x662d2e){const _0x135f59={'lxPxC':'settings.json'};return join(getEnvDir(_0x662d2e),_0x135f59['lxPxC']);}export async function loadSettings(_0x14f428){const _0x20584c=_0x5e17,_0x1d9482={'HFypr':function(_0x2bf424,_0x14ef5b){return _0x2bf424(_0x14ef5b);},'uECOy':function(_0x1077cb,_0x5e96dc){return _0x1077cb(_0x5e96dc);}},_0x33a93f=_0x1d9482[_0x20584c(0x20f)](getSettingsPath,_0x14f428);if(!_0x1d9482[_0x20584c(0x1f8)](existsSync,_0x33a93f))return{};try{const _0x497fda=await readFile(_0x33a93f,_0x20584c(0x1d9));return JSON[_0x20584c(0x1fa)](_0x497fda);}catch{return{};}}export async function saveSettings(_0x636ea7,_0x4c3161){const _0x4fa5e9=_0x5e17,_0x18d049={'PKPet':function(_0x5581ba,_0x1b438f){return _0x5581ba(_0x1b438f);},'SDTsw':function(_0x49b428,_0x421de6){return _0x49b428(_0x421de6);},'wtNmo':function(_0x1beec5,_0x1f69d4,_0x4c86b3){return _0x1beec5(_0x1f69d4,_0x4c86b3);}},_0x512019=_0x18d049[_0x4fa5e9(0x1a6)](getSettingsPath,_0x636ea7),_0x2c7456=_0x18d049[_0x4fa5e9(0x1be)](dirname,_0x512019);!_0x18d049['PKPet'](existsSync,_0x2c7456)&&await mkdir(_0x2c7456,{'recursive':!![]}),await _0x18d049[_0x4fa5e9(0x203)](writeFile,_0x512019,JSON[_0x4fa5e9(0x1f1)](_0x4c3161,null,0x2));}export function resolveEnvVars(_0x17a05d){const _0x5dc377=_0x5e17,_0x448bf3={'lSLws':'object'};if(typeof _0x17a05d===_0x5dc377(0x1c2))return _0x17a05d['replace'](/\$\{(\w+)\}/g,(_0x30893b,_0x8c91d)=>{const _0x1f2f5d=_0x5dc377,_0x11fa2a=process[_0x1f2f5d(0x1c4)][_0x8c91d];if(_0x11fa2a===undefined)throw new Error(_0x1f2f5d(0x1ce)+_0x8c91d+'\x20is\x20not\x20set');return _0x11fa2a;});if(Array[_0x5dc377(0x204)](_0x17a05d))return _0x17a05d[_0x5dc377(0x210)](resolveEnvVars);if(_0x17a05d&&typeof _0x17a05d===_0x448bf3[_0x5dc377(0x1ff)])return Object[_0x5dc377(0x1c8)](Object[_0x5dc377(0x1e2)](_0x17a05d)['map'](([_0x485ac2,_0x49832b])=>[_0x485ac2,resolveEnvVars(_0x49832b)]));return _0x17a05d;}const isRecord=_0x3373a6=>typeof _0x3373a6===_0x44e962(0x1af)&&_0x3373a6!==null&&!Array[_0x44e962(0x204)](_0x3373a6),asRecord=_0x785304=>isRecord(_0x785304)?_0x785304:undefined,mergeHeaders=(_0x2ddf08,_0x5099b6)=>{const _0x2ed1d9=_0x44e962,_0x57453e={'luWTx':function(_0x4d5cac,_0x2bc53){return _0x4d5cac??_0x2bc53;}},_0x2926d8={..._0x2ddf08??{},..._0x57453e[_0x2ed1d9(0x1b3)](_0x5099b6,{})};return Object[_0x2ed1d9(0x212)](_0x2926d8)[_0x2ed1d9(0x1e6)]?_0x2926d8:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=[_0x44e962(0x1ac),'--allow-running-insecure-content',_0x44e962(0x1d0),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x3d30db,_0x2fe462={}){const _0x4dd938=_0x44e962,_0x103138={'cjAIw':function(_0x923523,_0xa12478){return _0x923523(_0xa12478);},'akzSp':_0x4dd938(0x1fd),'aylRU':function(_0x39e7ad,_0xf5044a){return _0x39e7ad===_0xf5044a;},'OrKvd':_0x4dd938(0x1c2),'tuUJK':function(_0x4ff357,_0x2a8dd2,_0x3da10d){return _0x4ff357(_0x2a8dd2,_0x3da10d);},'snyQf':function(_0x5b0bc4,_0x3e7e97){return _0x5b0bc4(_0x3e7e97);}},_0x243436=_0x103138['cjAIw'](asRecord,_0x3d30db[_0x4dd938(0x1a8)]),_0x19c5e0={...asRecord(_0x243436?.['launchOptions'])??{}};typeof _0x2fe462[_0x4dd938(0x1ee)]===_0x103138[_0x4dd938(0x1f2)]&&(_0x19c5e0['headless']=_0x2fe462['headless']);if(_0x3d30db['safeMode']){const _0xb619da=_0x19c5e0['args']??[],_0x4c50e2=SAFE_MODE_ARGS[_0x4dd938(0x1c6)](_0x351c18=>!_0xb619da[_0x4dd938(0x1d3)](_0x351c18));_0x19c5e0[_0x4dd938(0x1d8)]=[..._0xb619da,..._0x4c50e2];}if(_0x3d30db['allowInsecureLocalhost']){const _0x5ce221=_0x19c5e0['args']??[],_0x44e268=ALLOW_LOCALHOST_ARGS['filter'](_0xf2c4b4=>!_0x5ce221[_0x4dd938(0x1d3)](_0xf2c4b4));_0x19c5e0[_0x4dd938(0x1d8)]=[..._0x5ce221,..._0x44e268];}const _0xa1611d={..._0x103138['cjAIw'](asRecord,_0x243436?.['contextOptions'])??{}};_0xa1611d['ignoreHTTPSErrors']=!![];_0x103138[_0x4dd938(0x205)](typeof _0x3d30db[_0x4dd938(0x1e0)],_0x103138[_0x4dd938(0x1d4)])&&(_0xa1611d['userAgent']=_0x3d30db['userAgent']);const _0x217425=_0x103138[_0x4dd938(0x1dd)](mergeHeaders,asRecord(_0xa1611d['extraHTTPHeaders']),_0x103138['snyQf'](asRecord,_0x3d30db[_0x4dd938(0x1b9)]));return _0x217425?_0xa1611d[_0x4dd938(0x217)]=_0x217425:delete _0xa1611d[_0x4dd938(0x217)],_0x2fe462['storageStatePath']&&(_0xa1611d[_0x4dd938(0x1aa)]=_0x2fe462[_0x4dd938(0x1c9)]),{'launchOptions':_0x19c5e0,'contextOptions':_0xa1611d};}async function resolveLocalAuthPath(_0xd10840){const _0x295e33=_0x44e962,_0x45ff50={'VagPP':function(_0x384b7f,_0x8ab9bc,_0xbb0706){return _0x384b7f(_0x8ab9bc,_0xbb0706);},'DDNeH':'auth.json.enc','CmTNq':_0x295e33(0x206),'mNhFI':function(_0x4b9b37,_0x543507){return _0x4b9b37(_0x543507);}},_0xbea0e9=_0x45ff50['VagPP'](join,_0xd10840,_0x45ff50[_0x295e33(0x1d2)]),_0x19a2b5=_0x45ff50['VagPP'](join,_0xd10840,_0x295e33(0x1ab));if(existsSync(_0xbea0e9))try{const _0x5eb9be=await getToken();if(!_0x5eb9be)throw new Error(_0x45ff50['CmTNq']);const _0x1cfc9e=await readFile(_0xbea0e9),_0x457c76=decrypt(_0x1cfc9e,_0x5eb9be),_0x19af2c=_0x45ff50[_0x295e33(0x1e5)](join,tmpdir(),'ranger-auth-'+Date['now']()+_0x295e33(0x1ef));return await writeFile(_0x19af2c,_0x457c76),{'storageStatePath':_0x19af2c,'tempAuthPath':_0x19af2c};}catch(_0x1a41d6){const _0x12e3ff=_0x1a41d6 instanceof Error?_0x1a41d6[_0x295e33(0x211)]:_0x45ff50[_0x295e33(0x214)](String,_0x1a41d6);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x12e3ff);}if(_0x45ff50['mNhFI'](existsSync,_0x19a2b5))return{'storageStatePath':_0x19a2b5};return{};}export async function buildPlaywrightConfig(_0x4e2afb,_0x290bf7,_0x41340c,_0x49f4a8,_0x396d1f){const _0x46f499=_0x44e962,_0x3f6771={'DkGwn':function(_0x117195,_0x1a0456,_0x535982,_0x339fff,_0x55a24e,_0x3aa2a6,_0x62e025){return _0x117195(_0x1a0456,_0x535982,_0x339fff,_0x55a24e,_0x3aa2a6,_0x62e025);},'pDIkn':'stagehand','PLuhP':function(_0x4bb122,_0x599087){return _0x4bb122(_0x599087);},'KQlie':function(_0x536993,_0x23307b){return _0x536993(_0x23307b);}};if(_0x396d1f)return _0x3f6771[_0x46f499(0x207)](buildPlaywrightConfigCore,_0x4e2afb,_0x396d1f,_0x290bf7,_0x41340c,_0x49f4a8,_0x3f6771[_0x46f499(0x19d)]);const {storageStatePath:_0x206519,tempAuthPath:_0x393869}=await _0x3f6771[_0x46f499(0x1e3)](resolveLocalAuthPath,_0x3f6771['KQlie'](getEnvDir,_0x290bf7));try{const _0x3697d4=await buildPlaywrightConfigCore(_0x4e2afb,_0x206519,_0x290bf7,_0x41340c,_0x49f4a8,'stagehand');return{..._0x3697d4,'tempAuthPath':_0x393869};}catch(_0x386264){_0x393869&&await unlink(_0x393869)[_0x46f499(0x1e1)](()=>{});throw _0x386264;}}export async function buildPlaywrightConfigCore(_0x53ce14,_0x230dcf,_0x4faa73,_0x4775d4,_0x505eb8,_0x41c0f0=_0x44e962(0x1c0)){const _0x53826b=_0x44e962,_0x323823={'NMOlC':function(_0x749dc5,_0x3c73df,_0x15f8d3){return _0x749dc5(_0x3c73df,_0x15f8d3);},'bqZdI':function(_0x5923b7,_0x6c25a8){return _0x5923b7===_0x6c25a8;},'ejylu':'--disable-setuid-sandbox','uydMg':function(_0x237c25,_0x2fc969){return _0x237c25(_0x2fc969);},'LTMiM':_0x53826b(0x20e),'YMKKF':'none','dBJwl':'allow','AeCrL':'ranger-config','Svckg':_0x53826b(0x1f6),'PEWgL':function(_0x38f024,_0x59996d,_0x22ac48){return _0x38f024(_0x59996d,_0x22ac48);}},_0x2f9116=_0x4775d4||randomUUID(),_0x128220=join(getRangerDir(),'sessions',_0x2f9116),_0x15429c=_0x323823['uydMg'](Boolean,_0x53ce14['cdpEndpoint']),_0x6c6cae=_0x15429c?{'browserName':'chromium','cdpEndpoint':_0x53ce14['cdpEndpoint']}:((()=>{const _0x3c94a2=_0x53826b,{launchOptions:_0x1e1d5a,contextOptions:_0x421c82}=_0x323823['NMOlC'](buildBrowserOptionsFromSettings,_0x53ce14,{'headless':_0x505eb8?![]:_0x53ce14['headless']??!![],'storageStatePath':_0x230dcf});if(_0x323823['bqZdI'](process['getuid']?.(),0x0)){const _0x114065=[_0x3c94a2(0x208),_0x323823[_0x3c94a2(0x1bf)]],_0x208630=_0x1e1d5a[_0x3c94a2(0x1d8)]??[],_0x13ed3f=_0x114065[_0x3c94a2(0x1c6)](_0x486c70=>!_0x208630[_0x3c94a2(0x1d3)](_0x486c70));_0x1e1d5a['args']=[..._0x208630,..._0x13ed3f];}return{'isolated':!![],'browserName':_0x3c94a2(0x19e),'launchOptions':_0x1e1d5a,'contextOptions':{..._0x421c82,'permissions':['clipboard-read','clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x2057db=_0x323823['bqZdI'](_0x41c0f0,_0x53826b(0x1f6))?{'browser':_0x6c6cae,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x128220,'outputMode':_0x323823[_0x53826b(0x1fc)],'codegen':_0x323823[_0x53826b(0x1b5)]}:{'name':_0x4faa73,'browser':_0x6c6cae,'capabilities':[_0x53826b(0x1cc),_0x53826b(0x1d6),_0x53826b(0x209),'pdf',_0x53826b(0x1d1)],'imageResponses':_0x323823[_0x53826b(0x20b)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x128220};if(!_0x15429c){const _0x45906b=_0x2057db['browser'],_0x1643d7=_0x45906b['contextOptions'];if(_0x323823['bqZdI'](_0x1643d7['userAgent'],undefined))delete _0x1643d7[_0x53826b(0x1e0)];if(_0x1643d7[_0x53826b(0x1aa)]===undefined)delete _0x1643d7['storageState'];}const _0x512217=join(tmpdir(),_0x323823[_0x53826b(0x1ed)]);!existsSync(_0x512217)&&await mkdir(_0x512217,{'recursive':!![]});const _0x3280ca=_0x41c0f0===_0x323823['Svckg']?'-cli':'',_0x2cc625=_0x323823[_0x53826b(0x1e9)](join,_0x512217,_0x4faa73+'-'+Date[_0x53826b(0x1f5)]()+_0x3280ca+'.json');return await writeFile(_0x2cc625,JSON[_0x53826b(0x1f1)](_0x2057db,null,0x2)),{'configPath':_0x2cc625};}export async function buildPlaywrightCliConfig(_0x45545e,_0x52f0f1,_0x17ddb4,_0x248073,_0xa3fdf6){const _0x42d036=_0x44e962,_0x15d81d={'xHtLV':function(_0x427872,_0x2fd4f6){return _0x427872(_0x2fd4f6);}};if(_0xa3fdf6)return buildPlaywrightConfigCore(_0x45545e,_0xa3fdf6,_0x52f0f1,_0x17ddb4,_0x248073,'playwright-cli');const {storageStatePath:_0x345ab3,tempAuthPath:_0x12cbd5}=await _0x15d81d[_0x42d036(0x1c5)](resolveLocalAuthPath,_0x15d81d['xHtLV'](getEnvDir,_0x52f0f1));try{const _0x307aa7=await buildPlaywrightConfigCore(_0x45545e,_0x345ab3,_0x52f0f1,_0x17ddb4,_0x248073,_0x42d036(0x1f6));return{..._0x307aa7,'tempAuthPath':_0x12cbd5};}catch(_0x33d3c6){_0x12cbd5&&await unlink(_0x12cbd5)[_0x42d036(0x1e1)](()=>{});throw _0x33d3c6;}}export function getNestedValue(_0x73b7a9,_0x4bda98){const _0x13a79b=_0x44e962,_0x128423={'RjHLg':function(_0x511895,_0x591531){return _0x511895(_0x591531);},'kqiDs':function(_0x315181,_0x40ff26){return _0x315181===_0x40ff26;}},_0x560df1=_0x128423[_0x13a79b(0x1f7)](parseKeyPath,_0x4bda98);let _0x5d4e8f=_0x73b7a9;for(const _0x2d5a4c of _0x560df1){if(_0x5d4e8f===null||_0x128423['kqiDs'](_0x5d4e8f,undefined)||typeof _0x5d4e8f!==_0x13a79b(0x1af))return undefined;_0x5d4e8f=_0x5d4e8f[_0x2d5a4c];}return _0x5d4e8f;}export function setNestedValue(_0x354baf,_0x12a7e7,_0x8d9106){const _0xbcc2ed=_0x44e962,_0x4474d4={'KOjch':function(_0x12cd07,_0x5e10ed){return _0x12cd07(_0x5e10ed);},'DYbJT':function(_0x5650a9,_0xd03a4d){return _0x5650a9 in _0xd03a4d;},'qMRRf':function(_0x5913c6,_0x3618ec){return _0x5913c6-_0x3618ec;}},_0x418b6c=_0x4474d4['KOjch'](parseKeyPath,_0x12a7e7);let _0x1d8e72=_0x354baf;for(let _0x5582e2=0x0;_0x5582e2<_0x418b6c[_0xbcc2ed(0x1e6)]-0x1;_0x5582e2++){const _0x4494e7=_0x418b6c[_0x5582e2];(!_0x4474d4[_0xbcc2ed(0x1cb)](_0x4494e7,_0x1d8e72)||typeof _0x1d8e72[_0x4494e7]!=='object')&&(_0x1d8e72[_0x4494e7]={}),_0x1d8e72=_0x1d8e72[_0x4494e7];}_0x1d8e72[_0x418b6c[_0x4474d4['qMRRf'](_0x418b6c['length'],0x1)]]=_0x8d9106;}function _0x5e17(_0x4ee0b3,_0x4df7a5){_0x4ee0b3=_0x4ee0b3-0x19d;const _0x193aab=_0x193a();let _0x5e17fe=_0x193aab[_0x4ee0b3];return _0x5e17fe;}export function deleteNestedValue(_0x2ac287,_0x7c895e){const _0x31685e=_0x44e962,_0x14d678={'pJddE':function(_0x43e6d2,_0x528a60){return _0x43e6d2(_0x528a60);},'towqX':function(_0x3b53fa,_0x17e182){return _0x3b53fa===_0x17e182;},'vaCUv':'object','XnNJT':function(_0x4e5dfe,_0xfd3b9d){return _0x4e5dfe in _0xfd3b9d;}},_0x28c998=_0x14d678[_0x31685e(0x1c7)](parseKeyPath,_0x7c895e);let _0x19432d=_0x2ac287;for(let _0x273731=0x0;_0x273731<_0x28c998[_0x31685e(0x1e6)]-0x1;_0x273731++){if(_0x14d678['towqX'](_0x19432d,null)||_0x14d678['towqX'](_0x19432d,undefined)||typeof _0x19432d!==_0x14d678['vaCUv'])return![];_0x19432d=_0x19432d[_0x28c998[_0x273731]];}if(_0x14d678[_0x31685e(0x1c1)](_0x19432d,null)||_0x14d678[_0x31685e(0x1c1)](_0x19432d,undefined)||typeof _0x19432d!==_0x14d678['vaCUv'])return![];const _0x7e25cc=_0x28c998[_0x28c998[_0x31685e(0x1e6)]-0x1];if(_0x14d678[_0x31685e(0x1b0)](_0x7e25cc,_0x19432d))return delete _0x19432d[_0x7e25cc],!![];return![];}function parseKeyPath(_0x48daae){const _0xe5fbac=_0x44e962,_0x598d05={'ZwFVt':'headers','FHJDr':'setupHeader'},_0x3161a0=_0x48daae['split']('.');return _0x3161a0[0x0]===_0xe5fbac(0x1a5)&&(_0x3161a0[0x0]=_0x598d05[_0xe5fbac(0x1b2)]),_0x3161a0[0x0]===_0x598d05[_0xe5fbac(0x202)]&&(_0x3161a0[0x0]='setupHeaders'),_0x3161a0;}export function formatSettings(_0x5d3e58,_0x33f681=0x0){const _0x441d0b=_0x44e962,_0x34d8bf={'fThJD':function(_0x2b7b74,_0x382de9){return _0x2b7b74===_0x382de9;}},_0x253ca9=[],_0x16d38b='\x20\x20'[_0x441d0b(0x1a1)](_0x33f681);for(const [_0x41a77c,_0x29751d]of Object[_0x441d0b(0x1e2)](_0x5d3e58)){if(_0x29751d===undefined)continue;if(_0x34d8bf['fThJD'](typeof _0x29751d,_0x441d0b(0x1af))&&_0x29751d!==null){_0x253ca9[_0x441d0b(0x1ec)](''+_0x16d38b+_0x41a77c+':');for(const [_0x30d30b,_0x552c7d]of Object[_0x441d0b(0x1e2)](_0x29751d)){_0x253ca9[_0x441d0b(0x1ec)](_0x16d38b+'\x20\x20'+_0x30d30b+':\x20'+_0x552c7d);}}else _0x253ca9[_0x441d0b(0x1ec)](''+_0x16d38b+_0x41a77c+':\x20'+_0x29751d);}return _0x253ca9[_0x441d0b(0x1e4)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x9624f9,_0x478a6f){const _0x2e6bb8=_0x2e94,_0x24664b=_0x9624f9();while(!![]){try{const _0x5b3cf2=parseInt(_0x2e6bb8(0x180))/0x1*(parseInt(_0x2e6bb8(0x189))/0x2)+-parseInt(_0x2e6bb8(0x18b))/0x3*(-parseInt(_0x2e6bb8(0x181))/0x4)+parseInt(_0x2e6bb8(0x185))/0x5+-parseInt(_0x2e6bb8(0x182))/0x6+parseInt(_0x2e6bb8(0x183))/0x7+-parseInt(_0x2e6bb8(0x184))/0x8+parseInt(_0x2e6bb8(0x188))/0x9;if(_0x5b3cf2===_0x478a6f)break;else _0x24664b['push'](_0x24664b['shift']());}catch(_0x263c41){_0x24664b['push'](_0x24664b['shift']());}}}(_0x1b57,0xab578));function _0x2e94(_0x5bdf97,_0x19b908){_0x5bdf97=_0x5bdf97-0x180;const _0x1b572b=_0x1b57();let _0x2e94ec=_0x1b572b[_0x5bdf97];return _0x2e94ec;}import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';function _0x1b57(){const _0x5603e1=['KwsmW','2173887XHXouT','2362WbxfJK','utf-8','6ITyXLd','211oyewPV','579404kSAHnG','1912854LocuXz','948234PLIZsC','5034992cRyebO','3670505sbkxVJ','skills'];_0x1b57=function(){return _0x5603e1;};return _0x1b57();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x3428fa){const _0x2b515e=_0x2e94,_0x526708={'fxIoo':function(_0x11f852,_0x32d1e5,_0x5e39fb){return _0x11f852(_0x32d1e5,_0x5e39fb);}},_0x2af36f=join(__dirname,'..','..',_0x2b515e(0x186)),_0x1cca28=_0x526708['fxIoo'](join,_0x2af36f,_0x3428fa);try{return readFileSync(_0x1cca28,_0x2b515e(0x18a));}catch{return'';}}export function getRangerSkillContent(){const _0x4176c6=_0x2e94,_0x802716={'KwsmW':function(_0x5362ac,_0x3541d6){return _0x5362ac(_0x3541d6);}};return _0x802716[_0x4176c6(0x187)](readSkillContent,'ranger/SKILL.md');}
1
+ function _0x3994(_0x18b47b,_0x2b3780){_0x18b47b=_0x18b47b-0x18d;const _0xb1f8c=_0xb1f8();let _0x39945b=_0xb1f8c[_0x18b47b];return _0x39945b;}(function(_0x516ddf,_0x5065c1){const _0x14abe6=_0x3994,_0x4bcb26=_0x516ddf();while(!![]){try{const _0x14ece7=-parseInt(_0x14abe6(0x192))/0x1+-parseInt(_0x14abe6(0x18d))/0x2+-parseInt(_0x14abe6(0x191))/0x3+-parseInt(_0x14abe6(0x18f))/0x4+parseInt(_0x14abe6(0x194))/0x5+parseInt(_0x14abe6(0x190))/0x6+parseInt(_0x14abe6(0x193))/0x7;if(_0x14ece7===_0x5065c1)break;else _0x4bcb26['push'](_0x4bcb26['shift']());}catch(_0x1b9573){_0x4bcb26['push'](_0x4bcb26['shift']());}}}(_0xb1f8,0xa5ed8));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x4ada22){const _0x163994=_0x3994,_0x1cce6f={'oJInV':function(_0x12a320,_0x340109,_0x34c0f9,_0xec2347,_0x355d0a){return _0x12a320(_0x340109,_0x34c0f9,_0xec2347,_0x355d0a);}},_0x4c5f41=_0x1cce6f['oJInV'](join,__dirname,'..','..','skills'),_0x57e9cf=join(_0x4c5f41,_0x4ada22);try{return readFileSync(_0x57e9cf,_0x163994(0x18e));}catch{return'';}}export function getRangerSkillContent(){const _0x41dcea={'wtBWc':'ranger/SKILL.md'};return readSkillContent(_0x41dcea['wtBWc']);}function _0xb1f8(){const _0x27e692=['1319089VyqstX','20123040aIWStQ','4741085NzOCpK','1288854PfGsSO','utf-8','2190356byRbrs','4154436JMjTiM','3973794VbBrcq'];_0xb1f8=function(){return _0x27e692;};return _0xb1f8();}