@ranger-testing/ranger-cli 3.1.2 → 3.1.3-alpha.546c9e8-43

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 (85) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/deleteProfile.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/novaActCli.js +1 -1
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/organizationEnvApi.js +1 -1
  60. package/build/commands/utils/playwrightCli.js +1 -1
  61. package/build/commands/utils/profileMessages.js +1 -1
  62. package/build/commands/utils/profileSetupBanner.js +1 -1
  63. package/build/commands/utils/projectsConfig.js +1 -1
  64. package/build/commands/utils/rangerConfig.js +1 -1
  65. package/build/commands/utils/rangerRoot.js +1 -1
  66. package/build/commands/utils/rangerwrightCli.js +1 -1
  67. package/build/commands/utils/resolveProfileContext.js +1 -1
  68. package/build/commands/utils/resolveProfileUrl.js +1 -1
  69. package/build/commands/utils/retry.js +1 -1
  70. package/build/commands/utils/sessionCache.js +1 -1
  71. package/build/commands/utils/settings.js +1 -1
  72. package/build/commands/utils/skillContent.js +1 -1
  73. package/build/commands/utils/skills.js +1 -1
  74. package/build/commands/utils/stitchWebmFiles.js +1 -1
  75. package/build/commands/utils/telemetry.js +1 -1
  76. package/build/commands/utils/tokenRefresh.js +1 -1
  77. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  78. package/build/commands/utils/tunnelClient.js +1 -1
  79. package/build/commands/utils/userApi.js +1 -1
  80. package/build/commands/utils/version.js +1 -1
  81. package/build/commands/verifyFeature.js +1 -1
  82. package/build/commands/verifyFeatureCli.js +1 -1
  83. package/build/commands/verifyFeatureNovaCli.js +1 -1
  84. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  85. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x1a93df,_0x308fd5){const _0x18e0cd=_0x18cd,_0x1f5aba=_0x1a93df();while(!![]){try{const _0x31f058=parseInt(_0x18e0cd(0xb8))/0x1+parseInt(_0x18e0cd(0xeb))/0x2+parseInt(_0x18e0cd(0x78))/0x3*(parseInt(_0x18e0cd(0xbc))/0x4)+parseInt(_0x18e0cd(0xc6))/0x5+-parseInt(_0x18e0cd(0x8e))/0x6*(parseInt(_0x18e0cd(0xde))/0x7)+parseInt(_0x18e0cd(0xd8))/0x8+parseInt(_0x18e0cd(0xdb))/0x9*(-parseInt(_0x18e0cd(0xab))/0xa);if(_0x31f058===_0x308fd5)break;else _0x1f5aba['push'](_0x1f5aba['shift']());}catch(_0x11047f){_0x1f5aba['push'](_0x1f5aba['shift']());}}}(_0x3ab6,0x516ff));import{readdir,rm}from'fs/promises';import{join}from'path';import{existsSync}from'fs';function _0x18cd(_0x518fd7,_0x567559){_0x518fd7=_0x518fd7-0x74;const _0x3ab68d=_0x3ab6();let _0x18cda5=_0x3ab68d[_0x518fd7];return _0x18cda5;}import _0x4f5ff4 from'inquirer';import{getRangerDir,getRangerHomeDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{fetchAuthConfig,createCloudProfile,manualBrowserLogin,ApiError}from'./utils/cloudProfile.js';import{isInteractive}from'./utils/cloudProfileSession.js';function _0x3ab6(){const _0x3e02d3=['sTcCX','4766280rtJIBB','force','\x20\x20Next:\x20ranger\x20go\x20--profile\x20','175581hplxPt','env','abort','1369837CoGMgI','YWpSF','\x20\x20To\x20get\x20automated\x20login\x20set\x20up\x20for\x20your\x20team\x20(a\x20one-time\x20call):\x20eng@ranger.net\x0a','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','TypeError','PDAqq','What\x20would\x20you\x20like\x20to\x20do?','skipAuth','SVGve','cMTzA','user_declined','join','\x27\x20created\x20(CDP).','240610YALril','✓\x20Cloud\x20profile\x20\x27','\x20—\x20not\x20removing.\x20Delete\x20manually\x20if\x20you\x20want\x20it\x20gone.','origin','Please\x20provide\x20--url\x20when\x20running\x20in\x20non-interactive\x20mode.\x0aMake\x20sure\x20the\x20service\x20is\x20running\x20on\x20that\x20port\x20before\x20retrying.\x0aExample:\x20ranger\x20profile\x20add\x20local\x20--url\x20http://localhost:3000','47127lwHlpx','Invalid\x20URL','KtjyR','\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','prompt','Could\x20not\x20reach\x20','tPFfQ','trim','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','TeLMq','log','UjfqU','\x20\x20Set\x20active\x20profile:\x20','indexOf','The\x20--ci\x20flag\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x20session\x20state\x0a','setupHeader','url','environments','error','profile.add.autoRouteSkipped','NcXWU','\x20\x20When\x20you\x27re\x20ready\x20to\x20log\x20in,\x20run\x20`ranger\x20profile\x20add\x20','12lyPRvK','\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20session,\x0a','confirm','keys','QKHft','LNccU','eKGgi','yXXQW','\x0a\x20\x20Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team\x20yet\x20—\x20that\x27s\x20the\x20path\x20that\x20lets\x20Ranger\x20log\x20into\x20your\x20app\x20for\x20you\x20in\x20CI\x20/\x20background\x20agents.\x0a','trackPhaseEnd','nvzqE','RicgP','yes','NkMPA','setupHeaders','\x22.\x20Expected\x20\x22Name:\x20Value\x22.','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20','.\x20Configured\x20envs:\x20','test','wNZgN','\x20\x20Note:\x20cloud\x20profile\x20created,\x20but\x20failed\x20to\x20sweep\x20orphan\x20local\x20dirs\x20(','NODE_TLS_REJECT_UNAUTHORIZED','\x0a\x20\x20Could\x20not\x20fetch\x20this\x20org\x27s\x20auth\x20config:\x20','isProtocolError','\x27\x20to\x20the\x20cloud?','\x0a\x20\x20A\x20profile\x20named\x20\x22','UVoPH','saveToCloud','domains','220BbOFER','uIHMJ','⚠\x20Could\x20not\x20reach\x20','\x20\x20or\x20contact\x20eng@ranger.net\x20to\x20set\x20up\x20automated\x20login\x20for\x20your\x20team.','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','message','nccvO','cdpEndpoint','\x20\x20Note:\x20found\x20git-tracked\x20local\x20profile\x20at\x20','for\x20you,\x20so\x20the\x20encrypted-CI\x20flow\x20is\x20unnecessary.\x0a','\x20\x20https://docs.ranger.net/main/concepts/profiles','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20','YyQCV','33241FXRleX','GLlzy','\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20cloud-managed\x20session.','nurEz','56Cdjpht','exit','slice','iZPSh','\x20\x20Ranger\x20will\x20use\x20it\x20to\x20look\x20up\x20the\x20right\x20cloud\x20auth\x20env\x20to\x20attach.\x0a','VaOde','GngKm','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','warn','http://','924450EfZbiy','Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','.tmp-','\x0a✓\x20Profile\x20\x27','UlkSq','HTTP\x20','Afpqr','list','retry','OCAEm','no_auth_config','RAUrO','length','status','\x27\x20created\x20with\x20a\x20captured\x20session.\x0a','\x20\x20Workaround\x20for\x20now:\x20create\x20a\x20profile\x20without\x20a\x20captured\x20session\x20and\x20supply\x20one\x20later:\x0a','KLmsW'];_0x3ab6=function(){return _0x3e02d3;};return _0x3ab6();}import{matchAuthEnvironment}from'./utils/matchAuthEnvironment.js';import{isPathGitTracked}from'./utils/gitTracked.js';import{setProfileOverride}from'./utils/projectsConfig.js';const CLOUD_PROFILE_SHARING_WARNING='This\x20account\x20will\x20be\x20shared\x20with\x20everyone\x20at\x20your\x20organization';function warnCloudProfileSharedInOrg(){const _0x1453e1=_0x18cd;if(!process['stdout']['isTTY'])return;console[_0x1453e1(0xc4)](CLOUD_PROFILE_SHARING_WARNING);}async function checkUrlReachability(_0x4ba79d){const _0x3755cc=_0x18cd,_0x30a1f6={'GIUvd':function(_0x418ad5,_0x3c0b28,_0x41056){return _0x418ad5(_0x3c0b28,_0x41056);},'cqdqo':'manual','RAUrO':function(_0xb70aca,_0x242320){return _0xb70aca(_0x242320);},'eKGgi':function(_0x2b9102,_0x4ffbb4){return _0x2b9102<_0x4ffbb4;},'KtjyR':_0x3755cc(0x79)};try{const _0x32234b=new AbortController(),_0x488538=_0x30a1f6['GIUvd'](setTimeout,()=>_0x32234b[_0x3755cc(0xdd)](),0x1388),_0x16444b={'method':'HEAD','signal':_0x32234b['signal'],'redirect':_0x30a1f6['cqdqo']};/^https:\/\/localhost(:\d+)?/i[_0x3755cc(0xa0)](_0x4ba79d)&&(process[_0x3755cc(0xdc)]['NODE_TLS_REJECT_UNAUTHORIZED']='0');const _0x1cf3a7=await fetch(_0x4ba79d,_0x16444b);delete process[_0x3755cc(0xdc)]['NODE_TLS_REJECT_UNAUTHORIZED'],_0x30a1f6['RAUrO'](clearTimeout,_0x488538);if(_0x30a1f6[_0x3755cc(0x94)](_0x1cf3a7[_0x3755cc(0xd3)],0x190))return{'ok':!![]};return{'ok':![],'error':_0x3755cc(0xcb)+_0x1cf3a7['status']};}catch(_0x24a40d){delete process['env'][_0x3755cc(0xa3)];const _0x1c201c=_0x24a40d,_0x4a1400=_0x1c201c['message']||_0x30a1f6[_0x3755cc(0xd1)](String,_0x24a40d),_0x3c6173=_0x4a1400['includes'](_0x30a1f6[_0x3755cc(0x7a)])||_0x1c201c['name']===_0x3755cc(0xe2)||_0x4a1400['includes']('fetch\x20failed');return{'ok':![],'error':_0x4a1400,'isProtocolError':_0x3c6173};}}async function sweepOrphanLocalProfile(_0xafb753,_0x3868eb,_0x58ef6c){const _0x5d5f42=_0x18cd,_0x13d9e2={'KLmsW':function(_0x47492c,_0x4514d1,_0x493c02){return _0x47492c(_0x4514d1,_0x493c02);},'RicgP':'local','Afpqr':function(_0x34c72c,_0x487cf7){return _0x34c72c(_0x487cf7);},'wuqLK':function(_0x19ac06,_0x218637){return _0x19ac06(_0x218637);},'SVGve':function(_0x36163a,_0x5d6e2f,_0x582bfd){return _0x36163a(_0x5d6e2f,_0x582bfd);}},_0x1efc46=_0x13d9e2['KLmsW'](join,_0x3868eb,_0x13d9e2[_0x5d5f42(0x99)]),_0x5a2e42=join(_0x1efc46,_0xafb753);existsSync(_0x5a2e42)&&(_0x58ef6c&&await _0x13d9e2[_0x5d5f42(0xcc)](isPathGitTracked,_0x5a2e42)?console[_0x5d5f42(0x82)](_0x5d5f42(0xb3)+_0x5a2e42+_0x5d5f42(0x75)):(await _0x13d9e2[_0x5d5f42(0xd6)](rm,_0x5a2e42,{'recursive':!![],'force':!![]}),console['log']('\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20'+_0x5a2e42)));if(_0x13d9e2['wuqLK'](existsSync,_0x1efc46)){let _0x10b81e=[];try{_0x10b81e=await readdir(_0x1efc46);}catch{return;}const _0x2a812b=_0x5d5f42(0xc8)+_0xafb753+'-';for(const _0x403718 of _0x10b81e){if(!_0x403718['startsWith'](_0x2a812b))continue;const _0x5cb86a=join(_0x1efc46,_0x403718);await _0x13d9e2[_0x5d5f42(0xe6)](rm,_0x5cb86a,{'recursive':!![],'force':!![]}),console[_0x5d5f42(0x82)]('\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20'+_0x5cb86a);}}}async function sweepOrphansBestEffort(_0x4190ed){const _0x34d66a=_0x18cd,_0x5db3bf={'GLlzy':function(_0x4eed7b){return _0x4eed7b();},'UVoPH':function(_0x532951,_0x5c5e44){return _0x532951!==_0x5c5e44;},'nvzqE':function(_0x5df958,_0x24e913,_0x1d6334,_0x431dfb){return _0x5df958(_0x24e913,_0x1d6334,_0x431dfb);},'WvgJs':function(_0x362ba8,_0x46169b){return _0x362ba8 instanceof _0x46169b;},'suCcm':function(_0x3e132e,_0x6ffd00){return _0x3e132e(_0x6ffd00);}};try{await sweepOrphanLocalProfile(_0x4190ed,_0x5db3bf['GLlzy'](getRangerHomeDir),![]);const _0x121fdf=getRangerDir();_0x5db3bf[_0x34d66a(0xa8)](_0x121fdf,_0x5db3bf[_0x34d66a(0xb9)](getRangerHomeDir))&&await _0x5db3bf[_0x34d66a(0x98)](sweepOrphanLocalProfile,_0x4190ed,_0x121fdf,!![]);}catch(_0x26cee6){console[_0x34d66a(0x82)](_0x34d66a(0xa2)+(_0x5db3bf['WvgJs'](_0x26cee6,Error)?_0x26cee6['message']:_0x5db3bf['suCcm'](String,_0x26cee6))+').');}}async function markActive(_0xbc1d1b){const _0x11b6fa=_0x18cd,_0x416d5f={'NcXWU':'Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.'};try{await writeActiveProfileName(_0xbc1d1b),console[_0x11b6fa(0x82)](_0x11b6fa(0x84)+_0xbc1d1b);}catch{console['log'](_0x416d5f[_0x11b6fa(0x8c)]);}}async function tryAutoRouteCloudProfile(_0x1d720d,_0x8c98e0,_0x2bcf57,_0x4cc292,_0x302e37){const _0x2cd2d3=_0x18cd,_0xdcecd7={'OCAEm':function(_0x10cdd5,_0x315527){return _0x10cdd5 instanceof _0x315527;},'lCpmx':function(_0x7556a1,_0x3bfec1){return _0x7556a1(_0x3bfec1);},'nrmTs':'no_auth_config','UlkSq':function(_0xaefc00,_0x2aeaf2){return _0xaefc00+_0x2aeaf2;},'FEtYw':function(_0x517672,_0x26d49b,_0x4e5426){return _0x517672(_0x26d49b,_0x4e5426);},'cMTzA':'user_declined','GngKm':function(_0x165912,_0x2dc5f0,_0x24cd5a,_0x37b975){return _0x165912(_0x2dc5f0,_0x24cd5a,_0x37b975);},'wNZgN':'profile.add.autoRouted'};let _0x1c7710;try{_0x1c7710=await fetchAuthConfig();}catch(_0x21709e){return _0x302e37?.[_0x2cd2d3(0x97)](_0x2cd2d3(0x8b),{'reason':_0x2cd2d3(0xd0),'profileName':_0x1d720d}),console['error'](_0x2cd2d3(0xa4)+(_0xdcecd7[_0x2cd2d3(0xcf)](_0x21709e,Error)?_0x21709e['message']:_0xdcecd7['lCpmx'](String,_0x21709e))),![];}if(!_0x1c7710||!_0x1c7710[_0x2cd2d3(0x89)]||Object[_0x2cd2d3(0x91)](_0x1c7710['environments'])[_0x2cd2d3(0xd2)]===0x0){if(_0x4cc292)return await captureEnvLessProfile(_0x1d720d,_0x8c98e0,_0x2bcf57,_0x302e37);return _0x302e37?.[_0x2cd2d3(0x97)]('profile.add.autoRouteSkipped',{'reason':_0xdcecd7['nrmTs'],'profileName':_0x1d720d}),console['error'](_0xdcecd7['UlkSq'](_0xdcecd7[_0x2cd2d3(0xca)](_0x2cd2d3(0x96)+'\x0a'+_0x2cd2d3(0xd5)+(_0x2cd2d3(0xb6)+_0x1d720d+'\x20--url\x20'+_0x8c98e0+'\x20--skip-auth\x0a'),'\x0a'),_0x2cd2d3(0xe0))+'\x20\x20Details:\x20https://docs.ranger.net/main/concepts/profiles#automated-login'),![];}const _0x4d351c=_0xdcecd7['FEtYw'](matchAuthEnvironment,_0x8c98e0,_0x1c7710);if(!_0x4d351c)return _0x302e37?.[_0x2cd2d3(0x97)](_0x2cd2d3(0x8b),{'reason':'no_match','profileName':_0x1d720d}),console['error']('\x0a\x20\x20No\x20auth\x20env\x20matches\x20'+_0x8c98e0+_0x2cd2d3(0x9f)+Object['keys'](_0x1c7710[_0x2cd2d3(0x89)])[_0x2cd2d3(0xe9)](',\x20')+'.'),![];const _0x26763=_0x1c7710[_0x2cd2d3(0x89)][_0x4d351c],_0x17a903=_0x26763?.[_0x2cd2d3(0xaa)]??[];if(_0x4cc292&&!_0x2bcf57[_0x2cd2d3(0x9a)]){const {saveToCloud:_0x2eb967}=await _0x4f5ff4[_0x2cd2d3(0x7c)]([{'type':_0x2cd2d3(0x90),'name':_0x2cd2d3(0xa9),'message':'Found\x20auth\x20environment\x20\x27'+_0x4d351c+'\x27\x20matching\x20'+_0x8c98e0+'\x0a\x20\x20(domains:\x20'+_0x17a903[_0x2cd2d3(0xe9)](',\x20')+')\x0a\x20\x20Save\x20\x27'+_0x1d720d+_0x2cd2d3(0xa6),'default':!![]}]);if(!_0x2eb967)return _0x302e37?.[_0x2cd2d3(0x97)](_0x2cd2d3(0x8b),{'reason':_0xdcecd7[_0x2cd2d3(0xe7)],'profileName':_0x1d720d}),console[_0x2cd2d3(0x8a)](_0x2cd2d3(0xba)),![];}const _0x5e2e57=_0x17a903['some'](_0x14654c=>{const _0x40b8ed=_0x2cd2d3;try{return new URL(_0x14654c)[_0x40b8ed(0x76)]===new URL(_0x8c98e0)[_0x40b8ed(0x76)];}catch{return![];}}),_0x4b3c0d={};!_0x5e2e57&&(_0x4b3c0d['baseUrl']=_0x8c98e0);try{await _0xdcecd7[_0x2cd2d3(0xc2)](createCloudProfile,_0x1d720d,_0x4d351c,{'settings':_0x4b3c0d}),warnCloudProfileSharedInOrg();}catch(_0x2c52f9){if(_0x2c52f9 instanceof ApiError&&_0x2c52f9[_0x2cd2d3(0xd3)]===0x199){console[_0x2cd2d3(0x8a)]('\x0a\x20\x20A\x20profile\x20named\x20\x22'+_0x1d720d+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a'+('\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x1d720d));throw _0x2c52f9;}throw _0x2c52f9;}return console['log'](_0xdcecd7['UlkSq']('✓\x20Profile\x20\x27'+_0x1d720d+'\x27\x20created.\x0a',_0x2cd2d3(0xda)+_0x1d720d)),await _0xdcecd7['lCpmx'](sweepOrphansBestEffort,_0x1d720d),_0x302e37?.[_0x2cd2d3(0x97)](_0xdcecd7[_0x2cd2d3(0xa1)],{'envKey':_0x4d351c,'profileName':_0x1d720d}),!![];}async function createUnconfiguredCloudProfile(_0x4c8488,_0x3a40db){const _0x268bf6=_0x18cd,_0x3afa88={'TeLMq':function(_0x559d69,_0x1b122c){return _0x559d69 instanceof _0x1b122c;},'PdEhF':function(_0x980648,_0x5a85d9){return _0x980648===_0x5a85d9;}};try{await createCloudProfile(_0x4c8488,undefined,{'settings':_0x3a40db}),warnCloudProfileSharedInOrg();}catch(_0x859266){_0x3afa88[_0x268bf6(0x81)](_0x859266,ApiError)&&_0x3afa88['PdEhF'](_0x859266['status'],0x199)&&console[_0x268bf6(0x8a)](_0x268bf6(0xa7)+_0x4c8488+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a'+(_0x268bf6(0x9e)+_0x4c8488));throw _0x859266;}}async function captureEnvLessProfile(_0x4f8f16,_0x3e0ee1,_0x15876f,_0x5f3e60){const _0x5c39d3=_0x18cd,_0x4a2018={'PDAqq':'confirm','aPhkE':'Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team.\x20Capture\x20a\x20session\x20via\x20a\x20headed\x20browser\x20instead?','bQtdi':_0x5c39d3(0xe8),'uIHMJ':function(_0x5213f2,_0x1a6f51){return _0x5213f2+_0x1a6f51;},'VaOde':function(_0x2deb9a,_0x4d20fe){return _0x2deb9a===_0x4d20fe;},'nTqRb':function(_0x559b2d,_0x33d197,_0x45ff33,_0x5a1352){return _0x559b2d(_0x33d197,_0x45ff33,_0x5a1352);},'nurEz':function(_0x486a74,_0x334564){return _0x486a74>_0x334564;},'iZPSh':function(_0x52f39c,_0xfe813d){return _0x52f39c+_0xfe813d;},'jzqsc':'profile.add.autoRouted'};if(!_0x15876f['yes']){const {capture:_0x15181}=await _0x4f5ff4[_0x5c39d3(0x7c)]([{'type':_0x4a2018[_0x5c39d3(0xe3)],'name':'capture','message':_0x4a2018['aPhkE'],'default':!![]}]);if(!_0x15181)return _0x5f3e60?.[_0x5c39d3(0x97)](_0x5c39d3(0x8b),{'reason':_0x4a2018['bQtdi'],'profileName':_0x4f8f16}),console[_0x5c39d3(0x8a)](_0x4a2018[_0x5c39d3(0xac)](_0x5c39d3(0x8f),_0x5c39d3(0xae))),![];}const _0x4fec4e={};if(_0x15876f[_0x5c39d3(0x87)])for(const _0x5a28ce of _0x15876f[_0x5c39d3(0x87)]){const _0x313f1b=_0x5a28ce[_0x5c39d3(0x85)](':');if(_0x4a2018[_0x5c39d3(0xc1)](_0x313f1b,-0x1))continue;_0x4fec4e[_0x5a28ce['slice'](0x0,_0x313f1b)['trim']()]=_0x5a28ce[_0x5c39d3(0xbe)](_0x4a2018[_0x5c39d3(0xac)](_0x313f1b,0x1))[_0x5c39d3(0x7f)]();}const _0x7bd710={'baseUrl':_0x3e0ee1};Object[_0x5c39d3(0x91)](_0x4fec4e)['length']>0x0&&(_0x7bd710[_0x5c39d3(0x9c)]=_0x4fec4e);let _0x1ac7ea;try{_0x1ac7ea=await _0x4a2018['nTqRb'](createCloudProfile,_0x4f8f16,undefined,{'settings':_0x7bd710}),warnCloudProfileSharedInOrg();}catch(_0x31f1fe){_0x31f1fe instanceof ApiError&&_0x31f1fe[_0x5c39d3(0xd3)]===0x199&&console['error'](_0x4a2018[_0x5c39d3(0xac)]('\x0a\x20\x20A\x20profile\x20named\x20\x22'+_0x4f8f16+_0x5c39d3(0x7b),'\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x4f8f16));throw _0x31f1fe;}return await manualBrowserLogin(_0x1ac7ea,{'key':'','domains':[_0x3e0ee1],'setupHeaders':_0x4a2018[_0x5c39d3(0xbb)](Object['keys'](_0x4fec4e)['length'],0x0)?_0x4fec4e:undefined}),console[_0x5c39d3(0x82)](_0x4a2018[_0x5c39d3(0xbf)](_0x5c39d3(0xc9)+_0x4f8f16+_0x5c39d3(0xd4),_0x5c39d3(0xda)+_0x4f8f16)),await sweepOrphansBestEffort(_0x4f8f16),_0x5f3e60?.['trackPhaseEnd'](_0x4a2018['jzqsc'],{'envKey':null,'profileName':_0x4f8f16}),!![];}export async function addEnv(_0x3e0a9a,_0x3b94d4={},_0x3b7a04){const _0x779f66=_0x18cd,_0x4e2b2d={'YyQCV':function(_0x28d673,_0x287ec1){return _0x28d673+_0x287ec1;},'DUtuZ':'To\x20set\x20up\x20a\x20profile,\x20run:\x0a','qzpuE':_0x779f66(0xaf),'UjfqU':_0x779f66(0xc3),'xzeot':_0x779f66(0xb5),'rgJwB':function(_0x5deb42,_0x816964){return _0x5deb42===_0x816964;},'LNccU':function(_0x5a0830,_0x8a6d4){return _0x5a0830(_0x8a6d4);},'INFjX':function(_0x9a4580){return _0x9a4580();},'yXXQW':_0x779f66(0x77),'QKHft':function(_0x2e9e69,_0x2a5d94,_0x46af37,_0x3bbf72,_0x12475d){return _0x2e9e69(_0x2a5d94,_0x46af37,_0x3bbf72,_0x12475d);},'tPFfQ':'cdpEndpoint','ZSbxT':'isElectron','XUuWJ':function(_0x25c657,_0x592617){return _0x25c657 instanceof _0x592617;},'YWpSF':function(_0xee69a2,_0xa1faf1){return _0xee69a2>_0xa1faf1;},'zrLYc':function(_0x1239f8,_0x2b3fa9){return _0x1239f8+_0x2b3fa9;},'vVRac':'\x0a🌐\x20Profile\x20Setup\x0a','mrKpn':_0x779f66(0xe1),'CMBRF':'input','PyrqH':function(_0x102b50,_0x1e6c42){return _0x102b50||_0x1e6c42;},'NkMPA':'action','TvHzz':'continue','nccvO':function(_0x114263,_0x168bbe){return _0x114263===_0x168bbe;},'sTcCX':function(_0x3b48df,_0x3bd2c3){return _0x3b48df(_0x3bd2c3);}};_0x3b94d4['ci']&&(console['error'](_0x4e2b2d[_0x779f66(0xb7)](_0x4e2b2d[_0x779f66(0xb7)](_0x779f66(0x86)+_0x779f66(0xb4)+'\x0a'+_0x4e2b2d['DUtuZ']+_0x4e2b2d['qzpuE']+'\x0a',_0x4e2b2d[_0x779f66(0x83)]),_0x4e2b2d['xzeot'])),process[_0x779f66(0xbd)](0x1));const _0x366b78={};if(_0x3b94d4[_0x779f66(0x87)])for(const _0x12e7ed of _0x3b94d4['setupHeader']){const _0x348bda=_0x12e7ed['indexOf'](':');if(_0x348bda===-0x1)throw new Error('Invalid\x20--setup-header\x20format:\x20\x22'+_0x12e7ed+_0x779f66(0x9d));const _0x27a27f=_0x12e7ed['slice'](0x0,_0x348bda)['trim'](),_0x66b3a3=_0x12e7ed[_0x779f66(0xbe)](_0x4e2b2d[_0x779f66(0xb7)](_0x348bda,0x1))['trim']();_0x366b78[_0x27a27f]=_0x66b3a3;}if(_0x3b94d4['cdpEndpoint']!==undefined&&_0x4e2b2d['rgJwB'](_0x3b94d4[_0x779f66(0xb2)]['trim'](),''))throw new Error('--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222');if(_0x3b94d4['cdpEndpoint']&&_0x3b94d4['url'])throw new Error('--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.');const _0x1dd266=_0x4e2b2d['LNccU'](Boolean,_0x3b94d4['cdpEndpoint']),_0x3f03f0=_0x4e2b2d['INFjX'](isInteractive);if(!_0x3f03f0&&!_0x3b94d4['url']&&!_0x1dd266&&!_0x3b94d4[_0x779f66(0xe5)])throw new Error(_0x4e2b2d[_0x779f66(0x95)]);if(_0x1dd266){const _0x13aa21=_0x3b94d4['cdpEndpoint'];console[_0x779f66(0x82)]('\x0a🔌\x20CDP\x20Profile\x20Setup\x0a'),console['log'](_0x779f66(0x80)+_0x13aa21);const _0x5bc1b6={'cdpEndpoint':_0x13aa21,'isElectron':!![]};Object[_0x779f66(0x91)](_0x366b78)[_0x779f66(0xd2)]>0x0&&(_0x5bc1b6['setupHeaders']=_0x366b78);await createUnconfiguredCloudProfile(_0x3e0a9a,_0x5bc1b6);try{_0x4e2b2d[_0x779f66(0x92)](setProfileOverride,process['cwd'](),_0x3e0a9a,_0x4e2b2d[_0x779f66(0x7e)],_0x13aa21),setProfileOverride(process['cwd'](),_0x3e0a9a,_0x4e2b2d['ZSbxT'],!![]);}catch(_0x509f69){console[_0x779f66(0x8a)]('\x0a\x20\x20Cloud\x20profile\x20created,\x20but\x20failed\x20to\x20write\x20per-cwd\x20CDP\x20override\x20to\x20projects.json:\x20'+(_0x4e2b2d['XUuWJ'](_0x509f69,Error)?_0x509f69[_0x779f66(0xb0)]:String(_0x509f69)));}console[_0x779f66(0x82)](_0x779f66(0x74)+_0x3e0a9a+_0x779f66(0xea)),await _0x4e2b2d[_0x779f66(0x93)](sweepOrphansBestEffort,_0x3e0a9a),await _0x4e2b2d[_0x779f66(0x93)](markActive,_0x3e0a9a);return;}if(_0x3b94d4[_0x779f66(0xe5)]){const _0xe5c50={};_0x3b94d4['url']&&(_0xe5c50['baseUrl']=_0x3b94d4[_0x779f66(0x88)]);_0x4e2b2d[_0x779f66(0xdf)](Object['keys'](_0x366b78)[_0x779f66(0xd2)],0x0)&&(_0xe5c50[_0x779f66(0x9c)]=_0x366b78);await createUnconfiguredCloudProfile(_0x3e0a9a,_0xe5c50),console['log'](_0x4e2b2d['zrLYc']('✓\x20Profile\x20\x27'+_0x3e0a9a+'\x27\x20created\x20(no\x20session).\x0a',_0x779f66(0x8d)+_0x3e0a9a+'`\x20again\x20without\x20--skip-auth.')),await sweepOrphansBestEffort(_0x3e0a9a),await markActive(_0x3e0a9a);return;}if(_0x3b94d4['url']){const _0x1c622c=_0x3b94d4[_0x779f66(0x88)],_0x330aec=await _0x4e2b2d['LNccU'](checkUrlReachability,_0x1c622c);if(!_0x330aec['ok']&&!_0x3b94d4[_0x779f66(0xd9)])throw new Error(_0x779f66(0x7d)+_0x1c622c+':\x20'+_0x330aec['error']+'\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.');!_0x330aec['ok']&&_0x3b94d4['force']&&console['log'](_0x779f66(0xad)+_0x1c622c+':\x20'+_0x330aec[_0x779f66(0x8a)]+'\x20(continuing\x20with\x20--force)');}else{console[_0x779f66(0x82)](_0x4e2b2d['vVRac']),console['log'](_0x4e2b2d['mrKpn']),console[_0x779f66(0x82)](_0x779f66(0xc0));let _0x35943a='',_0x235bcc=![];while(!![]){const _0xfd9ee3=await _0x4f5ff4['prompt']([{'type':_0x4e2b2d['CMBRF'],'name':'baseUrl','message':_0x235bcc?_0x779f66(0xc7):'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','default':_0x4e2b2d['PyrqH'](_0x35943a,'http://localhost:3000')}]);_0x35943a=_0xfd9ee3['baseUrl'];const _0x2b8620=await _0x4e2b2d[_0x779f66(0x93)](checkUrlReachability,_0x35943a);if(_0x2b8620['ok'])break;const _0x2693ae=/^[a-zA-Z][\w+.-]*:\/\//['test'](_0x35943a),_0x137e47=_0x2b8620[_0x779f66(0xa5)]&&!_0x2693ae,_0x4b0be0=_0x137e47?_0x779f66(0xc5)+_0x35943a:null;_0x235bcc=!![],console[_0x779f66(0x82)]('\x0a\x20\x20Could\x20not\x20reach\x20'+_0x35943a+':\x20'+_0x2b8620['error']);_0x4b0be0&&console[_0x779f66(0x82)]('\x20\x20Did\x20you\x20mean\x20'+_0x4b0be0+'?');const {action:_0x14014c}=await _0x4f5ff4[_0x779f66(0x7c)]([{'type':_0x779f66(0xcd),'name':_0x4e2b2d[_0x779f66(0x9b)],'message':_0x779f66(0xe4),'choices':[..._0x4b0be0?[{'name':'Use\x20'+_0x4b0be0,'value':'use_suggestion'}]:[],{'name':'Enter\x20a\x20different\x20URL','value':_0x779f66(0xce)},{'name':'Continue\x20anyway','value':_0x4e2b2d['TvHzz']}]}]);if(_0x4e2b2d[_0x779f66(0xb1)](_0x14014c,'use_suggestion')&&_0x4b0be0){_0x35943a=_0x4b0be0;const _0x1e7fa1=await _0x4e2b2d[_0x779f66(0xd7)](checkUrlReachability,_0x35943a);if(_0x1e7fa1['ok'])break;console[_0x779f66(0x82)]('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0x35943a+':\x20'+_0x1e7fa1['error']);}else{if(_0x14014c===_0x4e2b2d['TvHzz'])break;}}_0x3b94d4={..._0x3b94d4,'url':_0x35943a};}let _0x23fcfb=![];try{_0x23fcfb=await tryAutoRouteCloudProfile(_0x3e0a9a,_0x3b94d4[_0x779f66(0x88)],_0x3b94d4,_0x3f03f0,_0x3b7a04);}catch(_0x444106){console['error']('\x0a\x20\x20Failed\x20to\x20create\x20cloud\x20profile\x20\x22'+_0x3e0a9a+'\x22:\x20'+(_0x444106 instanceof Error?_0x444106['message']:String(_0x444106))),process[_0x779f66(0xbd)](0x1);}!_0x23fcfb&&process['exit'](0x1),await _0x4e2b2d['sTcCX'](markActive,_0x3e0a9a);}
1
+ const _0xe765e4=_0xfa59;(function(_0x53ec30,_0x38924a){const _0x1944b5=_0xfa59,_0x45b646=_0x53ec30();while(!![]){try{const _0x36dc85=-parseInt(_0x1944b5(0x203))/0x1+-parseInt(_0x1944b5(0x1f0))/0x2+-parseInt(_0x1944b5(0x1b0))/0x3+-parseInt(_0x1944b5(0x1d6))/0x4+-parseInt(_0x1944b5(0x1c1))/0x5+parseInt(_0x1944b5(0x1be))/0x6*(parseInt(_0x1944b5(0x18a))/0x7)+parseInt(_0x1944b5(0x1d3))/0x8;if(_0x36dc85===_0x38924a)break;else _0x45b646['push'](_0x45b646['shift']());}catch(_0x31e08d){_0x45b646['push'](_0x45b646['shift']());}}}(_0xfbf4,0x5268b));import{readdir,rm}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import _0x46318a from'inquirer';import{getRangerDir,getRangerHomeDir}from'./utils/rangerRoot.js';function _0xfbf4(){const _0x107042=['ZAgKY','force','FlqoT','keys','--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','url','\x0a✓\x20Profile\x20\x27','\x0a\x20\x20A\x20profile\x20named\x20\x22','name','\x20\x20Note:\x20cloud\x20profile\x20created,\x20but\x20failed\x20to\x20sweep\x20orphan\x20local\x20dirs\x20(','To\x20set\x20up\x20a\x20profile,\x20run:\x0a','environments','yes','origin','fetch\x20failed','\x27\x20matching\x20',')\x0a\x20\x20Save\x20\x27','nRhgK','abort','exit','The\x20--ci\x20flag\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x20session\x20state\x0a','Could\x20not\x20reach\x20','use_suggestion','baseUrl','message','some','Continue\x20anyway','\x20\x20https://docs.ranger.net/main/concepts/profiles','setupHeader','log','\x27\x20created\x20(no\x20session).\x0a','1488297SEiFdO','ieUfl','xrGYE','Found\x20auth\x20environment\x20\x27','\x0a\x20\x20(domains:\x20','cdpEndpoint','jnwLQ','warn','trackPhaseEnd','IfxOO','VsVAV','\x20\x20or\x20contact\x20eng@ranger.net\x20to\x20set\x20up\x20automated\x20login\x20for\x20your\x20team.','edwSN','kXpnb','11724WpKWSt','BeiDB','join','1210005vhZfFw','MfDfB','eHVSu','\x20(continuing\x20with\x20--force)','HhfqD','fFHeN','\x20\x20Workaround\x20for\x20now:\x20create\x20a\x20profile\x20without\x20a\x20captured\x20session\x20and\x20supply\x20one\x20later:\x0a','no_auth_config','AooMR','This\x20account\x20will\x20be\x20shared\x20with\x20everyone\x20at\x20your\x20organization','FnJcb','YwgZY','cwd','\x0a🌐\x20Profile\x20Setup\x0a','\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','KYkkq','qjZvU','✓\x20Cloud\x20profile\x20\x27','11807848gPOwDF','user_declined','\x20\x20Set\x20active\x20profile:\x20','1806352kuzBIV','\x22.\x20Expected\x20\x22Name:\x20Value\x22.','⚠\x20Could\x20not\x20reach\x20','✓\x20Profile\x20\x27','length','\x20\x20Next:\x20ranger\x20go\x20--profile\x20','profile.add.autoRouted','bAxeG','VkpVR','tBoMK','awKRp','xbTUz','\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','test','error','dspvg','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','neNsQ','rUrvY','continue','saveToCloud','FgKxH','\x20--skip-auth\x0a','startsWith','setupHeaders','628358HTPDTT','confirm','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20','\x27\x20created.\x0a','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','local','PKfFZ','\x20\x20Ranger\x20will\x20use\x20it\x20to\x20look\x20up\x20the\x20right\x20cloud\x20auth\x20env\x20to\x20attach.\x0a','KQsCy','\x0a\x20\x20Could\x20not\x20fetch\x20this\x20org\x27s\x20auth\x20config:\x20','\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20','.\x20Configured\x20envs:\x20','trim','\x20\x20Details:\x20https://docs.ranger.net/main/concepts/profiles#automated-login','EWerB','cKsZe','prompt','kvOVv','wIscc','224675lzYKKi','capture','status','\x20--url\x20','\x20—\x20not\x20removing.\x20Delete\x20manually\x20if\x20you\x20want\x20it\x20gone.','SFSkX','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','VVBLi','\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20cloud-managed\x20session.','\x27\x20to\x20the\x20cloud?','ovUsh','slice','stdout','\x27\x20created\x20with\x20a\x20captured\x20session.\x0a','NODE_TLS_REJECT_UNAUTHORIZED','Please\x20provide\x20--url\x20when\x20running\x20in\x20non-interactive\x20mode.\x0aMake\x20sure\x20the\x20service\x20is\x20running\x20on\x20that\x20port\x20before\x20retrying.\x0aExample:\x20ranger\x20profile\x20add\x20local\x20--url\x20http://localhost:3000','2114jSUlfR','includes','Invalid\x20URL','Use\x20','skipAuth','IqPCt','mRuFv'];_0xfbf4=function(){return _0x107042;};return _0xfbf4();}import{writeActiveProfileName}from'./utils/activeProfile.js';function _0xfa59(_0x3b9287,_0x10df09){_0x3b9287=_0x3b9287-0x18a;const _0xfbf4c8=_0xfbf4();let _0xfa59f5=_0xfbf4c8[_0x3b9287];return _0xfa59f5;}import{fetchAuthConfig,createCloudProfile,manualBrowserLogin,ApiError}from'./utils/cloudProfile.js';import{isInteractive}from'./utils/cloudProfileSession.js';import{matchAuthEnvironment}from'./utils/matchAuthEnvironment.js';import{isPathGitTracked}from'./utils/gitTracked.js';import{setProfileOverride}from'./utils/projectsConfig.js';const CLOUD_PROFILE_SHARING_WARNING=_0xe765e4(0x1ca);function warnCloudProfileSharedInOrg(){const _0x19d008=_0xe765e4;if(!process[_0x19d008(0x20f)]['isTTY'])return;console[_0x19d008(0x1b7)](CLOUD_PROFILE_SHARING_WARNING);}async function checkUrlReachability(_0x205a60){const _0x56eae5=_0xe765e4,_0x5e5d72={'ShVZz':'HEAD','IqPCt':function(_0x227c04,_0x25b53d){return _0x227c04===_0x25b53d;},'fFHeN':'TypeError','qjZvU':_0x56eae5(0x19f)};try{const _0x513fad=new AbortController(),_0x4d5263=setTimeout(()=>_0x513fad[_0x56eae5(0x1a3)](),0x1388),_0xd39728={'method':_0x5e5d72['ShVZz'],'signal':_0x513fad['signal'],'redirect':'manual'};/^https:\/\/localhost(:\d+)?/i[_0x56eae5(0x1e4)](_0x205a60)&&(process['env']['NODE_TLS_REJECT_UNAUTHORIZED']='0');const _0x39e365=await fetch(_0x205a60,_0xd39728);delete process['env']['NODE_TLS_REJECT_UNAUTHORIZED'],clearTimeout(_0x4d5263);if(_0x39e365['status']<0x190)return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x39e365[_0x56eae5(0x205)]};}catch(_0x127bda){delete process['env'][_0x56eae5(0x211)];const _0x4cd24b=_0x127bda,_0x1a988a=_0x4cd24b[_0x56eae5(0x1a9)]||String(_0x127bda),_0x385afc=_0x1a988a['includes'](_0x56eae5(0x18c))||_0x5e5d72[_0x56eae5(0x18f)](_0x4cd24b[_0x56eae5(0x199)],_0x5e5d72[_0x56eae5(0x1c6)])||_0x1a988a[_0x56eae5(0x18b)](_0x5e5d72[_0x56eae5(0x1d1)]);return{'ok':![],'error':_0x1a988a,'isProtocolError':_0x385afc};}}async function sweepOrphanLocalProfile(_0x1487b3,_0x597cc3,_0x4acf14){const _0x2c7792=_0xe765e4,_0x9ab1a4={'mRuFv':function(_0x16b335,_0x4bd2cb,_0x468748){return _0x16b335(_0x4bd2cb,_0x468748);},'FgKxH':function(_0x2f2fc7,_0x3abb00){return _0x2f2fc7(_0x3abb00);},'yfWpm':function(_0x1ea58f,_0x4f6e93,_0x90f00e){return _0x1ea58f(_0x4f6e93,_0x90f00e);}},_0x301cbd=_0x9ab1a4['mRuFv'](join,_0x597cc3,_0x2c7792(0x1f5)),_0x1a69c7=join(_0x301cbd,_0x1487b3);existsSync(_0x1a69c7)&&(_0x4acf14&&await _0x9ab1a4['FgKxH'](isPathGitTracked,_0x1a69c7)?console['log']('\x20\x20Note:\x20found\x20git-tracked\x20local\x20profile\x20at\x20'+_0x1a69c7+_0x2c7792(0x207)):(await _0x9ab1a4[_0x2c7792(0x190)](rm,_0x1a69c7,{'recursive':!![],'force':!![]}),console['log'](_0x2c7792(0x1fa)+_0x1a69c7)));if(existsSync(_0x301cbd)){let _0x4f2686=[];try{_0x4f2686=await _0x9ab1a4[_0x2c7792(0x1ec)](readdir,_0x301cbd);}catch{return;}const _0x21963e='.tmp-'+_0x1487b3+'-';for(const _0xb90948 of _0x4f2686){if(!_0xb90948[_0x2c7792(0x1ee)](_0x21963e))continue;const _0x10cefe=_0x9ab1a4['yfWpm'](join,_0x301cbd,_0xb90948);await rm(_0x10cefe,{'recursive':!![],'force':!![]}),console['log'](_0x2c7792(0x1fa)+_0x10cefe);}}}async function sweepOrphansBestEffort(_0x41e7be){const _0x6cd507=_0xe765e4,_0x451085={'kASWM':function(_0x4e8db0){return _0x4e8db0();},'ieUfl':function(_0x546c45,_0xda98e6){return _0x546c45!==_0xda98e6;},'AooMR':function(_0x599be5,_0x320849){return _0x599be5 instanceof _0x320849;},'XLinW':function(_0x336640,_0x1de482){return _0x336640(_0x1de482);}};try{await sweepOrphanLocalProfile(_0x41e7be,_0x451085['kASWM'](getRangerHomeDir),![]);const _0x558e0c=getRangerDir();_0x451085[_0x6cd507(0x1b1)](_0x558e0c,getRangerHomeDir())&&await sweepOrphanLocalProfile(_0x41e7be,_0x558e0c,!![]);}catch(_0x1c9c87){console['log'](_0x6cd507(0x19a)+(_0x451085[_0x6cd507(0x1c9)](_0x1c9c87,Error)?_0x1c9c87[_0x6cd507(0x1a9)]:_0x451085['XLinW'](String,_0x1c9c87))+').');}}async function markActive(_0x46d2df){const _0x15e8bd=_0xe765e4,_0x59042c={'bAxeG':function(_0x5410bd,_0x592caa){return _0x5410bd(_0x592caa);},'dfXWM':'Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.'};try{await _0x59042c[_0x15e8bd(0x1dd)](writeActiveProfileName,_0x46d2df),console[_0x15e8bd(0x1ae)](_0x15e8bd(0x1d5)+_0x46d2df);}catch{console[_0x15e8bd(0x1ae)](_0x59042c['dfXWM']);}}async function tryAutoRouteCloudProfile(_0xff821d,_0x4e2340,_0xb58227,_0x2da0ec,_0x38d886){const _0x3a4ae2=_0xe765e4,_0x259f10={'aevpT':function(_0x1933c7){return _0x1933c7();},'FlqoT':'profile.add.autoRouteSkipped','nRhgK':function(_0x2df1b3,_0x1edaf2){return _0x2df1b3 instanceof _0x1edaf2;},'XyKxu':function(_0x5b9019,_0x363a78,_0x2c8a07,_0x515d9b,_0x25a813){return _0x5b9019(_0x363a78,_0x2c8a07,_0x515d9b,_0x25a813);},'kFBkQ':function(_0x5aadec,_0x7dc398){return _0x5aadec+_0x7dc398;},'fxTBs':function(_0x57a5fd,_0x2f94a6){return _0x57a5fd+_0x2f94a6;},'nKzSC':'\x0a\x20\x20Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team\x20yet\x20—\x20that\x27s\x20the\x20path\x20that\x20lets\x20Ranger\x20log\x20into\x20your\x20app\x20for\x20you\x20in\x20CI\x20/\x20background\x20agents.\x0a','IfxOO':_0x3a4ae2(0x1c7),'FnJcb':'no_match','kXpnb':'user_declined','KYkkq':_0x3a4ae2(0x20b),'ZAgKY':function(_0x11edb1,_0x59589b,_0x36ff73,_0x1e0be3){return _0x11edb1(_0x59589b,_0x36ff73,_0x1e0be3);},'VkpVR':function(_0x401e87,_0x2df00f){return _0x401e87===_0x2df00f;},'jnwLQ':function(_0x320fe2,_0x183c63){return _0x320fe2(_0x183c63);}};let _0x3bc160;try{_0x3bc160=await _0x259f10['aevpT'](fetchAuthConfig);}catch(_0x2143fa){return _0x38d886?.[_0x3a4ae2(0x1b8)](_0x259f10['FlqoT'],{'reason':_0x3a4ae2(0x1c8),'profileName':_0xff821d}),console[_0x3a4ae2(0x1e5)](_0x3a4ae2(0x1f9)+(_0x259f10[_0x3a4ae2(0x1a2)](_0x2143fa,Error)?_0x2143fa[_0x3a4ae2(0x1a9)]:String(_0x2143fa))),![];}if(!_0x3bc160||!_0x3bc160['environments']||Object[_0x3a4ae2(0x194)](_0x3bc160[_0x3a4ae2(0x19c)])[_0x3a4ae2(0x1da)]===0x0){if(_0x2da0ec)return await _0x259f10['XyKxu'](captureEnvLessProfile,_0xff821d,_0x4e2340,_0xb58227,_0x38d886);return _0x38d886?.['trackPhaseEnd'](_0x259f10[_0x3a4ae2(0x193)],{'reason':'no_auth_config','profileName':_0xff821d}),console[_0x3a4ae2(0x1e5)](_0x259f10['kFBkQ'](_0x259f10['kFBkQ'](_0x259f10['fxTBs'](_0x259f10['fxTBs'](_0x259f10['nKzSC'],'\x0a'),_0x259f10[_0x3a4ae2(0x1b9)])+('\x20\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20'+_0xff821d+_0x3a4ae2(0x206)+_0x4e2340+_0x3a4ae2(0x1ed))+'\x0a','\x20\x20To\x20get\x20automated\x20login\x20set\x20up\x20for\x20your\x20team\x20(a\x20one-time\x20call):\x20eng@ranger.net\x0a'),_0x3a4ae2(0x1fd))),![];}const _0x242a1e=matchAuthEnvironment(_0x4e2340,_0x3bc160);if(!_0x242a1e)return _0x38d886?.[_0x3a4ae2(0x1b8)](_0x259f10['FlqoT'],{'reason':_0x259f10[_0x3a4ae2(0x1cb)],'profileName':_0xff821d}),console['error']('\x0a\x20\x20No\x20auth\x20env\x20matches\x20'+_0x4e2340+_0x3a4ae2(0x1fb)+Object['keys'](_0x3bc160[_0x3a4ae2(0x19c)])['join'](',\x20')+'.'),![];const _0x1dc8f4=_0x3bc160[_0x3a4ae2(0x19c)][_0x242a1e],_0x10e125=_0x1dc8f4?.['domains']??[];if(_0x2da0ec&&!_0xb58227[_0x3a4ae2(0x19d)]){const {saveToCloud:_0x43fd12}=await _0x46318a['prompt']([{'type':_0x3a4ae2(0x1f1),'name':_0x3a4ae2(0x1eb),'message':_0x3a4ae2(0x1b3)+_0x242a1e+_0x3a4ae2(0x1a0)+_0x4e2340+_0x3a4ae2(0x1b4)+_0x10e125[_0x3a4ae2(0x1c0)](',\x20')+_0x3a4ae2(0x1a1)+_0xff821d+_0x3a4ae2(0x20c),'default':!![]}]);if(!_0x43fd12)return _0x38d886?.[_0x3a4ae2(0x1b8)]('profile.add.autoRouteSkipped',{'reason':_0x259f10[_0x3a4ae2(0x1bd)],'profileName':_0xff821d}),console['error'](_0x259f10[_0x3a4ae2(0x1d0)]),![];}const _0x1ec97f=_0x10e125[_0x3a4ae2(0x1aa)](_0x5e5548=>{const _0x236c0c=_0x3a4ae2;try{return new URL(_0x5e5548)['origin']===new URL(_0x4e2340)[_0x236c0c(0x19e)];}catch{return![];}}),_0x18f5a6={};!_0x1ec97f&&(_0x18f5a6['baseUrl']=_0x4e2340);try{await _0x259f10[_0x3a4ae2(0x191)](createCloudProfile,_0xff821d,_0x242a1e,{'settings':_0x18f5a6}),warnCloudProfileSharedInOrg();}catch(_0x22a43a){if(_0x259f10[_0x3a4ae2(0x1a2)](_0x22a43a,ApiError)&&_0x259f10[_0x3a4ae2(0x1de)](_0x22a43a['status'],0x199)){console[_0x3a4ae2(0x1e5)]('\x0a\x20\x20A\x20profile\x20named\x20\x22'+_0xff821d+_0x3a4ae2(0x1cf)+('\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0xff821d));throw _0x22a43a;}throw _0x22a43a;}return console[_0x3a4ae2(0x1ae)](_0x3a4ae2(0x1d9)+_0xff821d+_0x3a4ae2(0x1f3)+(_0x3a4ae2(0x1db)+_0xff821d)),await _0x259f10[_0x3a4ae2(0x1b6)](sweepOrphansBestEffort,_0xff821d),_0x38d886?.['trackPhaseEnd'](_0x3a4ae2(0x1dc),{'envKey':_0x242a1e,'profileName':_0xff821d}),!![];}async function createUnconfiguredCloudProfile(_0x237cac,_0x1b88e9){const _0x4712a3=_0xe765e4,_0x3a9a71={'UNYFV':function(_0x4d86e3){return _0x4d86e3();},'DBGwq':function(_0x4f8805,_0x6c3470){return _0x4f8805===_0x6c3470;},'Prjji':function(_0x4e5bf6,_0x53ba3e){return _0x4e5bf6+_0x53ba3e;}};try{await createCloudProfile(_0x237cac,undefined,{'settings':_0x1b88e9}),_0x3a9a71['UNYFV'](warnCloudProfileSharedInOrg);}catch(_0x80634f){_0x80634f instanceof ApiError&&_0x3a9a71['DBGwq'](_0x80634f['status'],0x199)&&console['error'](_0x3a9a71['Prjji'](_0x4712a3(0x198)+_0x237cac+_0x4712a3(0x1cf),'\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x237cac));throw _0x80634f;}}async function captureEnvLessProfile(_0x5b3014,_0x1ea8d8,_0x39310b,_0x4e291e){const _0x24fc36=_0xe765e4,_0x8cde2e={'neNsQ':_0x24fc36(0x1f1),'WnKrV':_0x24fc36(0x204),'xrGYE':'profile.add.autoRouteSkipped','obGeC':function(_0x4ae583,_0x1e46ba){return _0x4ae583===_0x1e46ba;},'tBoMK':function(_0x140fc1,_0xa04419){return _0x140fc1>_0xa04419;},'MfDfB':function(_0x5bfb65,_0x1128cf,_0x513aa8,_0x150903){return _0x5bfb65(_0x1128cf,_0x513aa8,_0x150903);},'OYrCT':function(_0x2ad03f,_0xe793bf){return _0x2ad03f instanceof _0xe793bf;},'SFSkX':function(_0x361b02,_0x13dcd2,_0x30ae21){return _0x361b02(_0x13dcd2,_0x30ae21);},'WkiOm':function(_0x37375c,_0x31c8aa){return _0x37375c+_0x31c8aa;},'KQsCy':'profile.add.autoRouted'};if(!_0x39310b[_0x24fc36(0x19d)]){const {capture:_0x560cd8}=await _0x46318a['prompt']([{'type':_0x8cde2e[_0x24fc36(0x1e8)],'name':_0x8cde2e['WnKrV'],'message':'Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team.\x20Capture\x20a\x20session\x20via\x20a\x20headed\x20browser\x20instead?','default':!![]}]);if(!_0x560cd8)return _0x4e291e?.[_0x24fc36(0x1b8)](_0x8cde2e[_0x24fc36(0x1b2)],{'reason':_0x24fc36(0x1d4),'profileName':_0x5b3014}),console[_0x24fc36(0x1e5)]('\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20session,\x0a'+_0x24fc36(0x1bb)),![];}const _0x8008f5={};if(_0x39310b['setupHeader'])for(const _0x2f08b3 of _0x39310b['setupHeader']){const _0x3b3601=_0x2f08b3['indexOf'](':');if(_0x8cde2e['obGeC'](_0x3b3601,-0x1))continue;_0x8008f5[_0x2f08b3[_0x24fc36(0x20e)](0x0,_0x3b3601)['trim']()]=_0x2f08b3[_0x24fc36(0x20e)](_0x3b3601+0x1)['trim']();}const _0x4ca576={'baseUrl':_0x1ea8d8};_0x8cde2e[_0x24fc36(0x1df)](Object[_0x24fc36(0x194)](_0x8008f5)['length'],0x0)&&(_0x4ca576['setupHeaders']=_0x8008f5);let _0x4edc73;try{_0x4edc73=await _0x8cde2e[_0x24fc36(0x1c2)](createCloudProfile,_0x5b3014,undefined,{'settings':_0x4ca576}),warnCloudProfileSharedInOrg();}catch(_0x143a4c){_0x8cde2e['OYrCT'](_0x143a4c,ApiError)&&_0x8cde2e['obGeC'](_0x143a4c['status'],0x199)&&console[_0x24fc36(0x1e5)](_0x24fc36(0x198)+_0x5b3014+_0x24fc36(0x1cf)+(_0x24fc36(0x1f2)+_0x5b3014));throw _0x143a4c;}return await _0x8cde2e[_0x24fc36(0x208)](manualBrowserLogin,_0x4edc73,{'key':'','domains':[_0x1ea8d8],'setupHeaders':Object['keys'](_0x8008f5)[_0x24fc36(0x1da)]>0x0?_0x8008f5:undefined}),console['log'](_0x8cde2e['WkiOm'](_0x24fc36(0x197)+_0x5b3014+_0x24fc36(0x210),_0x24fc36(0x1db)+_0x5b3014)),await sweepOrphansBestEffort(_0x5b3014),_0x4e291e?.[_0x24fc36(0x1b8)](_0x8cde2e[_0x24fc36(0x1f8)],{'envKey':null,'profileName':_0x5b3014}),!![];}export async function addEnv(_0x2c005e,_0x4c358d={},_0x2b243a){const _0x19f3ee=_0xe765e4,_0x44689b={'cKsZe':function(_0x4010b2,_0xa48a74){return _0x4010b2+_0xa48a74;},'QmDmj':function(_0x27fac0,_0x378784){return _0x27fac0+_0x378784;},'SoPPL':_0x19f3ee(0x1a5),'BeiDB':'for\x20you,\x20so\x20the\x20encrypted-CI\x20flow\x20is\x20unnecessary.\x0a','ijLRY':_0x19f3ee(0x19b),'YwgZY':_0x19f3ee(0x1e7),'WiymP':function(_0xd07ca4,_0x3da214){return _0xd07ca4+_0x3da214;},'oonDs':function(_0x146823,_0x108d33){return _0x146823===_0x108d33;},'PAKfS':function(_0xf2a5f){return _0xf2a5f();},'QFqMN':_0x19f3ee(0x1e2),'PKfFZ':function(_0xf61394,_0x8cd216){return _0xf61394>_0x8cd216;},'awKRp':function(_0x4fb5c2,_0x1eb444,_0x267ade){return _0x4fb5c2(_0x1eb444,_0x267ade);},'rUrvY':function(_0xa6c135,_0x201b41,_0x564a39,_0x9f15e8,_0x379afb){return _0xa6c135(_0x201b41,_0x564a39,_0x9f15e8,_0x379afb);},'RKKfQ':'cdpEndpoint','xbTUz':function(_0x3885ee,_0x5a0078){return _0x3885ee(_0x5a0078);},'VsVAV':function(_0x48b47d,_0x98cede){return _0x48b47d(_0x98cede);},'EWerB':function(_0x3bf171,_0x53fe21){return _0x3bf171>_0x53fe21;},'VVBLi':'input','kvOVv':_0x19f3ee(0x1e3),'edwSN':function(_0x26394a,_0x578827){return _0x26394a||_0x578827;},'wIscc':'http://localhost:3000','ovUsh':'What\x20would\x20you\x20like\x20to\x20do?','eHVSu':_0x19f3ee(0x1a7),'sHQwW':'Enter\x20a\x20different\x20URL','cUTVG':_0x19f3ee(0x1ab),'HhfqD':_0x19f3ee(0x1ea),'dspvg':function(_0x50ae6d,_0x4a30c1,_0x1410a3,_0x7b9fe9,_0x23fff7,_0x5e653b){return _0x50ae6d(_0x4a30c1,_0x1410a3,_0x7b9fe9,_0x23fff7,_0x5e653b);},'BhxyS':function(_0x2bb47d,_0x3d42a1){return _0x2bb47d instanceof _0x3d42a1;}};_0x4c358d['ci']&&(console['error'](_0x44689b[_0x19f3ee(0x1ff)](_0x44689b['QmDmj'](_0x44689b['SoPPL']+_0x44689b[_0x19f3ee(0x1bf)]+'\x0a',_0x44689b['ijLRY'])+_0x19f3ee(0x209)+'\x0a',_0x44689b[_0x19f3ee(0x1cc)])+_0x19f3ee(0x1ac)),process[_0x19f3ee(0x1a4)](0x1));const _0x58eb06={};if(_0x4c358d['setupHeader'])for(const _0xee112d of _0x4c358d[_0x19f3ee(0x1ad)]){const _0x21cdaf=_0xee112d['indexOf'](':');if(_0x21cdaf===-0x1)throw new Error('Invalid\x20--setup-header\x20format:\x20\x22'+_0xee112d+_0x19f3ee(0x1d7));const _0x285489=_0xee112d['slice'](0x0,_0x21cdaf)[_0x19f3ee(0x1fc)](),_0x4840a1=_0xee112d['slice'](_0x44689b['WiymP'](_0x21cdaf,0x1))['trim']();_0x58eb06[_0x285489]=_0x4840a1;}if(_0x4c358d[_0x19f3ee(0x1b5)]!==undefined&&_0x44689b['oonDs'](_0x4c358d['cdpEndpoint']['trim'](),''))throw new Error('--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222');if(_0x4c358d[_0x19f3ee(0x1b5)]&&_0x4c358d[_0x19f3ee(0x196)])throw new Error(_0x19f3ee(0x195));const _0x5d3bc4=Boolean(_0x4c358d['cdpEndpoint']),_0x52ebd9=_0x44689b['PAKfS'](isInteractive);if(!_0x52ebd9&&!_0x4c358d[_0x19f3ee(0x196)]&&!_0x5d3bc4&&!_0x4c358d['skipAuth'])throw new Error(_0x19f3ee(0x212));if(_0x5d3bc4){const _0x51b8cf=_0x4c358d[_0x19f3ee(0x1b5)];console['log'](_0x44689b['QFqMN']),console[_0x19f3ee(0x1ae)]('\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20'+_0x51b8cf);const _0x381a91={'cdpEndpoint':_0x51b8cf,'isElectron':!![]};_0x44689b[_0x19f3ee(0x1f6)](Object['keys'](_0x58eb06)['length'],0x0)&&(_0x381a91[_0x19f3ee(0x1ef)]=_0x58eb06);await _0x44689b[_0x19f3ee(0x1e0)](createUnconfiguredCloudProfile,_0x2c005e,_0x381a91);try{_0x44689b['rUrvY'](setProfileOverride,process[_0x19f3ee(0x1cd)](),_0x2c005e,_0x44689b['RKKfQ'],_0x51b8cf),_0x44689b[_0x19f3ee(0x1e9)](setProfileOverride,process[_0x19f3ee(0x1cd)](),_0x2c005e,'isElectron',!![]);}catch(_0x571b3e){console[_0x19f3ee(0x1e5)]('\x0a\x20\x20Cloud\x20profile\x20created,\x20but\x20failed\x20to\x20write\x20per-cwd\x20CDP\x20override\x20to\x20projects.json:\x20'+(_0x571b3e instanceof Error?_0x571b3e[_0x19f3ee(0x1a9)]:String(_0x571b3e)));}console['log'](_0x19f3ee(0x1d2)+_0x2c005e+'\x27\x20created\x20(CDP).'),await _0x44689b['xbTUz'](sweepOrphansBestEffort,_0x2c005e),await _0x44689b[_0x19f3ee(0x1ba)](markActive,_0x2c005e);return;}if(_0x4c358d[_0x19f3ee(0x18e)]){const _0x588915={};_0x4c358d['url']&&(_0x588915[_0x19f3ee(0x1a8)]=_0x4c358d['url']);_0x44689b[_0x19f3ee(0x1fe)](Object['keys'](_0x58eb06)['length'],0x0)&&(_0x588915['setupHeaders']=_0x58eb06);await _0x44689b['awKRp'](createUnconfiguredCloudProfile,_0x2c005e,_0x588915),console['log']('✓\x20Profile\x20\x27'+_0x2c005e+_0x19f3ee(0x1af)+('\x20\x20When\x20you\x27re\x20ready\x20to\x20log\x20in,\x20run\x20`ranger\x20profile\x20add\x20'+_0x2c005e+'`\x20again\x20without\x20--skip-auth.')),await _0x44689b[_0x19f3ee(0x1e1)](sweepOrphansBestEffort,_0x2c005e),await markActive(_0x2c005e);return;}if(_0x4c358d[_0x19f3ee(0x196)]){const _0xc457ae=_0x4c358d[_0x19f3ee(0x196)],_0x23c481=await _0x44689b['VsVAV'](checkUrlReachability,_0xc457ae);if(!_0x23c481['ok']&&!_0x4c358d['force'])throw new Error(_0x19f3ee(0x1a6)+_0xc457ae+':\x20'+_0x23c481[_0x19f3ee(0x1e5)]+_0x19f3ee(0x1f4));!_0x23c481['ok']&&_0x4c358d[_0x19f3ee(0x192)]&&console[_0x19f3ee(0x1ae)](_0x19f3ee(0x1d8)+_0xc457ae+':\x20'+_0x23c481['error']+_0x19f3ee(0x1c4));}else{console[_0x19f3ee(0x1ae)](_0x19f3ee(0x1ce)),console[_0x19f3ee(0x1ae)]('\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.'),console[_0x19f3ee(0x1ae)](_0x19f3ee(0x1f7));let _0x6bb0cb='',_0x1b6d02=![];while(!![]){const _0xd0bc2=await _0x46318a[_0x19f3ee(0x200)]([{'type':_0x44689b[_0x19f3ee(0x20a)],'name':_0x19f3ee(0x1a8),'message':_0x1b6d02?'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):':_0x44689b[_0x19f3ee(0x201)],'default':_0x44689b[_0x19f3ee(0x1bc)](_0x6bb0cb,_0x44689b[_0x19f3ee(0x202)])}]);_0x6bb0cb=_0xd0bc2['baseUrl'];const _0x12e803=await checkUrlReachability(_0x6bb0cb);if(_0x12e803['ok'])break;const _0xe4ec11=/^[a-zA-Z][\w+.-]*:\/\//['test'](_0x6bb0cb),_0x584a5e=_0x12e803['isProtocolError']&&!_0xe4ec11,_0x50e9fc=_0x584a5e?'http://'+_0x6bb0cb:null;_0x1b6d02=!![],console['log']('\x0a\x20\x20Could\x20not\x20reach\x20'+_0x6bb0cb+':\x20'+_0x12e803[_0x19f3ee(0x1e5)]);_0x50e9fc&&console[_0x19f3ee(0x1ae)]('\x20\x20Did\x20you\x20mean\x20'+_0x50e9fc+'?');const {action:_0x28589a}=await _0x46318a[_0x19f3ee(0x200)]([{'type':'list','name':'action','message':_0x44689b[_0x19f3ee(0x20d)],'choices':[..._0x50e9fc?[{'name':_0x19f3ee(0x18d)+_0x50e9fc,'value':_0x44689b['eHVSu']}]:[],{'name':_0x44689b['sHQwW'],'value':'retry'},{'name':_0x44689b['cUTVG'],'value':_0x44689b[_0x19f3ee(0x1c5)]}]}]);if(_0x28589a===_0x44689b[_0x19f3ee(0x1c3)]&&_0x50e9fc){_0x6bb0cb=_0x50e9fc;const _0x144acb=await _0x44689b[_0x19f3ee(0x1ba)](checkUrlReachability,_0x6bb0cb);if(_0x144acb['ok'])break;console[_0x19f3ee(0x1ae)]('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0x6bb0cb+':\x20'+_0x144acb['error']);}else{if(_0x28589a===_0x19f3ee(0x1ea))break;}}_0x4c358d={..._0x4c358d,'url':_0x6bb0cb};}let _0xbf3e57=![];try{_0xbf3e57=await _0x44689b[_0x19f3ee(0x1e6)](tryAutoRouteCloudProfile,_0x2c005e,_0x4c358d['url'],_0x4c358d,_0x52ebd9,_0x2b243a);}catch(_0x5e4e6c){console['error']('\x0a\x20\x20Failed\x20to\x20create\x20cloud\x20profile\x20\x22'+_0x2c005e+'\x22:\x20'+(_0x44689b['BhxyS'](_0x5e4e6c,Error)?_0x5e4e6c[_0x19f3ee(0x1a9)]:String(_0x5e4e6c))),process['exit'](0x1);}!_0xbf3e57&&process['exit'](0x1),await markActive(_0x2c005e);}
@@ -1 +1 @@
1
- (function(_0x2880c5,_0x446c37){var _0x552bf6=_0x4929,_0x5ccabb=_0x2880c5();while(!![]){try{var _0x23d852=parseInt(_0x552bf6(0x1e8))/0x1*(-parseInt(_0x552bf6(0x1ee))/0x2)+parseInt(_0x552bf6(0x1ea))/0x3*(-parseInt(_0x552bf6(0x1e6))/0x4)+parseInt(_0x552bf6(0x1f0))/0x5+parseInt(_0x552bf6(0x1ec))/0x6*(parseInt(_0x552bf6(0x1e5))/0x7)+-parseInt(_0x552bf6(0x1f3))/0x8*(parseInt(_0x552bf6(0x1e7))/0x9)+parseInt(_0x552bf6(0x1e4))/0xa+parseInt(_0x552bf6(0x1ed))/0xb;if(_0x23d852===_0x446c37)break;else _0x5ccabb['push'](_0x5ccabb['shift']());}catch(_0x25da38){_0x5ccabb['push'](_0x5ccabb['shift']());}}}(_0x2fe7,0x62159));function _0x4929(_0x4401bd,_0x1f6a05){_0x4401bd=_0x4401bd-0x1e4;var _0x2fe704=_0x2fe7();var _0x49293e=_0x2fe704[_0x4401bd];return _0x49293e;}export async function authEncrypt(_0x5e10c9){var _0x40522a=_0x4929,_0x4c2964={'MkPBm':function(_0x269ff4,_0xdc675d){return _0x269ff4+_0xdc675d;},'TtNOV':function(_0x52220b,_0x6e2f80){return _0x52220b+_0x6e2f80;},'xnKtO':function(_0x2a85f7,_0x4cb096){return _0x2a85f7+_0x4cb096;},'LwbRy':_0x40522a(0x1ef),'VZqma':'\x20\x20ranger\x20profile\x20add\x20<name>\x0a'};console['error'](_0x4c2964['MkPBm'](_0x4c2964['TtNOV'](_0x4c2964['xnKtO'](_0x40522a(0x1eb)+_0x4c2964[_0x40522a(0x1f2)]+'\x0a'+'To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a',_0x4c2964['VZqma'])+'\x0a',_0x40522a(0x1e9)),'\x20\x20https://docs.ranger.net/main/concepts/profiles')),process[_0x40522a(0x1f1)](0x1);}function _0x2fe7(){var _0x2da679=['3895570fTajmt','exit','LwbRy','1048ERhudO','1492520uOfZKE','35qkPhuL','4sNRCVD','5391KkgkxG','1aAeVBs','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','1440501KMkNxq','ranger\x20profile\x20encrypt-auth\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x0a','337494YpuUyG','4504566RAlmZe','1317456HhVIgs','session\x20state\x20for\x20you,\x20so\x20encrypted\x20on-disk\x20auth\x20is\x20unnecessary.\x0a'];_0x2fe7=function(){return _0x2da679;};return _0x2fe7();}
1
+ (function(_0x1f9557,_0x253880){var _0x3880b8=_0xe568,_0x499814=_0x1f9557();while(!![]){try{var _0x1e3fa9=parseInt(_0x3880b8(0x97))/0x1*(-parseInt(_0x3880b8(0x9b))/0x2)+parseInt(_0x3880b8(0xa5))/0x3*(-parseInt(_0x3880b8(0x98))/0x4)+parseInt(_0x3880b8(0xa2))/0x5*(parseInt(_0x3880b8(0x9d))/0x6)+-parseInt(_0x3880b8(0xa7))/0x7*(parseInt(_0x3880b8(0x9f))/0x8)+parseInt(_0x3880b8(0xa0))/0x9+-parseInt(_0x3880b8(0xa8))/0xa+parseInt(_0x3880b8(0x99))/0xb*(-parseInt(_0x3880b8(0xa4))/0xc);if(_0x1e3fa9===_0x253880)break;else _0x499814['push'](_0x499814['shift']());}catch(_0x420d07){_0x499814['push'](_0x499814['shift']());}}}(_0x1c9e,0xadd6a));function _0x1c9e(){var _0x2e4898=['BXjSF','2675897tQSttV','2953730yHrZWI','afVYr','session\x20state\x20for\x20you,\x20so\x20encrypted\x20on-disk\x20auth\x20is\x20unnecessary.\x0a','681goFrKE','6824ZYOxgz','11yagPBI','error','106DfQEGw','WBpjy','138pEiAup','ranger\x20profile\x20encrypt-auth\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x0a','8ZIptJw','8318862ioBzGT','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','264985jFDRrj','\x20\x20https://docs.ranger.net/main/concepts/profiles','7340376aEwUBN','186gkgLhq'];_0x1c9e=function(){return _0x2e4898;};return _0x1c9e();}function _0xe568(_0x1d514a,_0x388f21){_0x1d514a=_0x1d514a-0x97;var _0x1c9eab=_0x1c9e();var _0xe5689a=_0x1c9eab[_0x1d514a];return _0xe5689a;}export async function authEncrypt(_0x332fc3){var _0x10317a=_0xe568,_0x3cee6a={'iFslk':function(_0x233114,_0x414cd5){return _0x233114+_0x414cd5;},'BXjSF':function(_0x292660,_0x9d9ca5){return _0x292660+_0x9d9ca5;},'SCBxI':function(_0x1a2a35,_0x2f61e6){return _0x1a2a35+_0x2f61e6;},'WBpjy':_0x10317a(0x9e),'afVYr':_0x10317a(0xa1)};console[_0x10317a(0x9a)](_0x3cee6a['iFslk'](_0x3cee6a[_0x10317a(0xa6)](_0x3cee6a['SCBxI'](_0x3cee6a[_0x10317a(0x9c)],_0x10317a(0xaa)),'\x0a')+'To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a'+_0x3cee6a[_0x10317a(0xa9)]+'\x0a'+'For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a',_0x10317a(0xa3))),process['exit'](0x1);}
@@ -1 +1 @@
1
- const _0x3a0954=_0x2438;(function(_0x4212a8,_0x1cda0f){const _0x262667=_0x2438,_0x3bc36e=_0x4212a8();while(!![]){try{const _0x484dee=-parseInt(_0x262667(0x13f))/0x1*(-parseInt(_0x262667(0x13a))/0x2)+parseInt(_0x262667(0x125))/0x3*(-parseInt(_0x262667(0x130))/0x4)+-parseInt(_0x262667(0x12c))/0x5+-parseInt(_0x262667(0x138))/0x6+parseInt(_0x262667(0x120))/0x7+-parseInt(_0x262667(0x11e))/0x8*(-parseInt(_0x262667(0x12b))/0x9)+parseInt(_0x262667(0x139))/0xa;if(_0x484dee===_0x1cda0f)break;else _0x3bc36e['push'](_0x3bc36e['shift']());}catch(_0x2e49d4){_0x3bc36e['push'](_0x3bc36e['shift']());}}}(_0x146a,0x4dda7));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';function _0x2438(_0x579244,_0x956c2d){_0x579244=_0x579244-0x118;const _0x146af8=_0x146a();let _0x24388f=_0x146af8[_0x579244];return _0x24388f;}import{spawn}from'child_process';import{deleteAllCredentials}from'./utils/keychain.js';function _0x146a(){const _0x13daea=['e2e-test-recommender','gYfPW','uninstall','✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','219320LtddIe','zDWID','ignore','stcgg','utf-8','plugin','✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','platform','uAMQF','oLwxx','bug-bash','hjLUR','8KyJxGM','error','2618763JCEyKw','dtTyS','length','isArray','@ranger-testing/opencode-plugin','12NlqiFK','close','ranger@trailhead','replace','cSdcV','sIMqb','3175173LjvRmt','2645475jgnJoZ','ihpVP','aFZSc','bjsfy','536348yWcZQo','filter','aKNQy','eOjaU','ZkYMc','✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','log','user','2149932hdpcvi','5771060TAAjdu','4bqxYis'];_0x146a=function(){return _0x13daea;};return _0x146a();}import{getProjectRoot,getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=['ranger','feature-tracker',_0x3a0954(0x11c),_0x3a0954(0x13b)],opencodePluginName=_0x3a0954(0x124);function parseJsonc(_0x235821){const _0x9c9f3d=_0x3a0954,_0x429e33=_0x235821[_0x9c9f3d(0x128)](/\/\*[\s\S]*?\*\//g,''),_0x47a9c5=_0x429e33[_0x9c9f3d(0x128)](/^\s*\/\/.*$/gm,''),_0x2c2230=_0x47a9c5['replace'](/,\s*([}\]])/g,'$1');return JSON['parse'](_0x2c2230);}async function removeOpencodePluginConfig(_0x93ce21){const _0x2f748e=_0x3a0954,_0x4ccaff={'oLwxx':'string','zDWID':_0x2f748e(0x143),'hCJKQ':function(_0x3a7636,_0x4118c8){return _0x3a7636(_0x4118c8);},'dtTyS':function(_0xed9555,_0x5ddafd){return _0xed9555===_0x5ddafd;},'aKNQy':function(_0x1817e8,_0x5620b6,_0x8062e0){return _0x1817e8(_0x5620b6,_0x8062e0);},'ZOkGz':function(_0x1bf73d,_0x50caab){return _0x1bf73d+_0x50caab;}};if(!existsSync(_0x93ce21))return![];let _0x2c50a4;try{const _0xc945b1=await readFile(_0x93ce21,_0x4ccaff[_0x2f748e(0x140)]);_0x2c50a4=_0x4ccaff['hCJKQ'](parseJsonc,_0xc945b1);}catch{return![];}const _0x5338dc=Array[_0x2f748e(0x123)](_0x2c50a4[_0x2f748e(0x144)])?_0x2c50a4['plugin']:[];if(_0x4ccaff[_0x2f748e(0x121)](_0x5338dc[_0x2f748e(0x122)],0x0))return![];const _0x149986=_0x5338dc[_0x2f748e(0x131)](_0x42b690=>{const _0x377a58=_0x2f748e;if(typeof _0x42b690!==_0x4ccaff[_0x377a58(0x11b)])return!![];return _0x42b690!==opencodePluginName;});if(_0x149986[_0x2f748e(0x122)]===_0x5338dc[_0x2f748e(0x122)])return![];return _0x149986[_0x2f748e(0x122)]===0x0?delete _0x2c50a4[_0x2f748e(0x144)]:_0x2c50a4[_0x2f748e(0x144)]=_0x149986,await _0x4ccaff[_0x2f748e(0x132)](writeFile,_0x93ce21,_0x4ccaff['ZOkGz'](JSON['stringify'](_0x2c50a4,null,0x2),'\x0a')),!![];}async function uninstallClaudePlugin(_0x8b8fa1){const _0x8a323d=_0x3a0954,_0x1df004={'cSdcV':'plugin','uAMQF':_0x8a323d(0x127),'gYfPW':function(_0x10e603,_0x2f76dc,_0x50a7bf,_0x295f0b){return _0x10e603(_0x2f76dc,_0x50a7bf,_0x295f0b);},'BbHPV':'claude','bHtyf':function(_0x197994){return _0x197994();},'sIMqb':function(_0x58b820,_0x1f303b){return _0x58b820===_0x1f303b;},'PrOGd':'win32','oTOdq':_0x8a323d(0x126),'WJccF':_0x8a323d(0x11f)};return new Promise(_0x425502=>{const _0x439d8a=_0x8a323d,_0x3c9f5b=[_0x1df004[_0x439d8a(0x129)],_0x439d8a(0x13d),_0x1df004[_0x439d8a(0x11a)]];_0x8b8fa1&&_0x3c9f5b['push']('--scope',_0x8b8fa1);const _0x16f0d6=_0x1df004[_0x439d8a(0x13c)](spawn,_0x1df004['BbHPV'],_0x3c9f5b,{'stdio':['ignore','ignore','ignore'],'cwd':_0x8b8fa1?_0x1df004['bHtyf'](getProjectRoot):undefined,'shell':_0x1df004[_0x439d8a(0x12a)](process[_0x439d8a(0x119)],_0x1df004['PrOGd'])});_0x16f0d6['on'](_0x1df004['oTOdq'],_0x492637=>{_0x425502(_0x492637===0x0);}),_0x16f0d6['on'](_0x1df004['WJccF'],()=>{_0x425502(![]);});});}async function removeMarketplace(){const _0x2cb8d6=_0x3a0954,_0x59e2ce={'XDjXU':function(_0x174894,_0x8fc3df){return _0x174894===_0x8fc3df;},'GzMDS':'claude','eOjaU':_0x2cb8d6(0x144),'OGuDo':'win32','ZGOpD':_0x2cb8d6(0x126),'tdxgE':_0x2cb8d6(0x11f)};return new Promise(_0x3949a6=>{const _0x5317dd=_0x2cb8d6,_0x1a3819={'hjLUR':function(_0x5d1bcd,_0x168d25){return _0x59e2ce['XDjXU'](_0x5d1bcd,_0x168d25);}},_0x19594a=spawn(_0x59e2ce['GzMDS'],[_0x59e2ce[_0x5317dd(0x133)],'marketplace','remove','trailhead'],{'stdio':['ignore',_0x5317dd(0x141),_0x5317dd(0x141)],'shell':process['platform']===_0x59e2ce['OGuDo']});_0x19594a['on'](_0x59e2ce['ZGOpD'],_0x1efc23=>{const _0x1f1281=_0x5317dd;_0x3949a6(_0x1a3819[_0x1f1281(0x11d)](_0x1efc23,0x0));}),_0x19594a['on'](_0x59e2ce['tdxgE'],()=>{_0x3949a6(![]);});});}export async function clean(){const _0x41684f=_0x3a0954,_0x425be={'aFZSc':function(_0x26f8e8){return _0x26f8e8();},'tyLSp':'✓\x20Removed\x20stored\x20credentials','bjsfy':function(_0x4afef0,_0x475570){return _0x4afef0(_0x475570);},'XGtTc':function(_0x27bb8c,_0x31592c,_0x7f8a14){return _0x27bb8c(_0x31592c,_0x7f8a14);},'IeijF':function(_0x5764ea,_0xe795ae,_0xf5373c){return _0x5764ea(_0xe795ae,_0xf5373c);},'eREfO':function(_0xc583ae,_0x1bfb4a){return _0xc583ae(_0x1bfb4a);},'KXaqD':function(_0x56f124,_0x116552,_0x35fce6){return _0x56f124(_0x116552,_0x35fce6);},'ihpVP':_0x41684f(0x137),'HfSXy':function(_0x2f4ed8,_0x2eb4df,_0x26040e){return _0x2f4ed8(_0x2eb4df,_0x26040e);},'qFhOK':'project','ZkYMc':'opencode.json','stcgg':_0x41684f(0x135),'rRVpj':'✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','GdjfL':'✓\x20Removed\x20trailhead\x20marketplace','tvrtq':'Nothing\x20to\x20clean\x20up.\x0a'};console[_0x41684f(0x136)]('\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a');let _0x2d318b=![];try{await _0x425be[_0x41684f(0x12e)](deleteAllCredentials),console[_0x41684f(0x136)](_0x425be['tyLSp']),_0x2d318b=!![];}catch{}const _0x11a609=getCacheFile();existsSync(_0x11a609)&&(await _0x425be[_0x41684f(0x12f)](rm,_0x11a609),_0x2d318b=!![]);const _0x227a1c=_0x425be[_0x41684f(0x12e)](getRangerDir);existsSync(_0x227a1c)&&(await rm(_0x227a1c,{'recursive':!![]}),console[_0x41684f(0x136)]('✓\x20Removed\x20.ranger/\x20directory'),_0x2d318b=!![]);const _0x252ac4=getProjectSkillsDir();for(const _0x54844f of skillsToRemove){const _0x13c145=_0x425be['XGtTc'](join,_0x252ac4,_0x54844f);_0x425be['bjsfy'](existsSync,_0x13c145)&&(await _0x425be['IeijF'](rm,_0x13c145,{'recursive':!![]}),console[_0x41684f(0x136)]('✓\x20Removed\x20project\x20skill:\x20'+_0x54844f),_0x2d318b=!![]);}const _0x3f047b=getUserSkillsDir();for(const _0x4d0178 of skillsToRemove){const _0x2969ed=join(_0x3f047b,_0x4d0178);_0x425be['eREfO'](existsSync,_0x2969ed)&&(await _0x425be['KXaqD'](rm,_0x2969ed,{'recursive':!![]}),console['log']('✓\x20Removed\x20user\x20skill:\x20'+_0x4d0178),_0x2d318b=!![]);}const _0x5be7db=_0x425be[_0x41684f(0x12f)](getOpencodeSkillsDir,'project');for(const _0x54b21f of skillsToRemove){const _0x4986d1=join(_0x5be7db,_0x54b21f);existsSync(_0x4986d1)&&(await rm(_0x4986d1,{'recursive':!![]}),console[_0x41684f(0x136)]('✓\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x54b21f),_0x2d318b=!![]);}const _0xc9c041=_0x425be['eREfO'](getOpencodeSkillsDir,_0x425be[_0x41684f(0x12d)]);for(const _0x44b40f of skillsToRemove){const _0x4a2098=join(_0xc9c041,_0x44b40f);existsSync(_0x4a2098)&&(await _0x425be['HfSXy'](rm,_0x4a2098,{'recursive':!![]}),console[_0x41684f(0x136)]('✓\x20Removed\x20OpenCode\x20user\x20skill:\x20'+_0x44b40f),_0x2d318b=!![]);}const _0x549438=join(_0x425be['eREfO'](getOpencodeConfigDir,_0x425be['qFhOK']),_0x425be[_0x41684f(0x134)]);await removeOpencodePluginConfig(_0x549438)&&(console[_0x41684f(0x136)](_0x41684f(0x118)),_0x2d318b=!![]);const _0x187e04=join(getOpencodeConfigDir('user'),_0x425be[_0x41684f(0x134)]);await _0x425be['bjsfy'](removeOpencodePluginConfig,_0x187e04)&&(console[_0x41684f(0x136)](_0x425be[_0x41684f(0x142)]),_0x2d318b=!![]);const _0x461ddd=await uninstallClaudePlugin();_0x461ddd&&(console['log'](_0x41684f(0x13e)),_0x2d318b=!![]);const _0x5f4e75=await uninstallClaudePlugin('project');_0x5f4e75&&(console['log'](_0x425be['rRVpj']),_0x2d318b=!![]);const _0x2307ec=await _0x425be[_0x41684f(0x12e)](removeMarketplace);_0x2307ec&&(console[_0x41684f(0x136)](_0x425be['GdjfL']),_0x2d318b=!![]),_0x2d318b?console[_0x41684f(0x136)]('\x0a✅\x20Cleanup\x20complete!\x0a'):console[_0x41684f(0x136)](_0x425be['tvrtq']);}
1
+ function _0x44a6(){const _0x804e33=['EISMa','user','AcnMC','length','jcGhE','close','MQiDw','stringify','✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','uninstall','99196VrMVFN','win32','log','3APWuuR','✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','\x0a✅\x20Cleanup\x20complete!\x0a','--scope','filter','hCUKf','NsCUq','woZgY','marketplace','9KYCCgY','QDGfd','✓\x20Removed\x20trailhead\x20marketplace','OWBGV','HOOvg','wePwh','GtybN','Retjq','magxf','ScDXz','MUpEp','RTbxQ','3200020NPJwCs','@ranger-testing/opencode-plugin','697434DmPloq','474280lfXUdP','VCmvL','trailhead','iwiJz','VKrCl','ignore','VYrAj','668636JfIdVt','LpPzx','785766VeGejP','noQZu','1324872EngIXH','7ybGUEj','replace','\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','remove','RglzS','✓\x20Removed\x20user\x20skill:\x20','project','ZNqlo','plugin','wnRyw'];_0x44a6=function(){return _0x804e33;};return _0x44a6();}const _0x3094c7=_0x1dd7;(function(_0xe50e34,_0x2b1888){const _0x22d7df=_0x1dd7,_0x558a87=_0xe50e34();while(!![]){try{const _0x1a0a5f=-parseInt(_0x22d7df(0x1dd))/0x1+parseInt(_0x22d7df(0x1f7))/0x2+parseInt(_0x22d7df(0x1e0))/0x3*(parseInt(_0x22d7df(0x1ff))/0x4)+-parseInt(_0x22d7df(0x1f8))/0x5+parseInt(_0x22d7df(0x1c6))/0x6*(parseInt(_0x22d7df(0x1c9))/0x7)+-parseInt(_0x22d7df(0x1c8))/0x8*(-parseInt(_0x22d7df(0x1e9))/0x9)+-parseInt(_0x22d7df(0x1f5))/0xa;if(_0x1a0a5f===_0x2b1888)break;else _0x558a87['push'](_0x558a87['shift']());}catch(_0x48117e){_0x558a87['push'](_0x558a87['shift']());}}}(_0x44a6,0x48d98));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';function _0x1dd7(_0x1ff149,_0x5b9a24){_0x1ff149=_0x1ff149-0x1c5;const _0x44a604=_0x44a6();let _0x1dd723=_0x44a604[_0x1ff149];return _0x1dd723;}import{deleteAllCredentials}from'./utils/keychain.js';import{getProjectRoot,getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=['ranger','feature-tracker','bug-bash','e2e-test-recommender'],opencodePluginName=_0x3094c7(0x1f6);function parseJsonc(_0x1b4294){const _0x485910=_0x3094c7,_0x212b91=_0x1b4294['replace'](/\/\*[\s\S]*?\*\//g,''),_0x3ac7f5=_0x212b91[_0x485910(0x1ca)](/^\s*\/\/.*$/gm,''),_0x5e09c0=_0x3ac7f5[_0x485910(0x1ca)](/,\s*([}\]])/g,'$1');return JSON['parse'](_0x5e09c0);}async function removeOpencodePluginConfig(_0x37802e){const _0x2015c1=_0x3094c7,_0x3b5ff8={'RTbxQ':function(_0x541354,_0x3cae8b){return _0x541354!==_0x3cae8b;},'jcGhE':function(_0x8ab66d,_0x13cb01){return _0x8ab66d!==_0x13cb01;},'AcnMC':function(_0x58e30d,_0x34c8fb){return _0x58e30d(_0x34c8fb);},'noQZu':'utf-8','bzTWi':function(_0x53d69f,_0x3d6950){return _0x53d69f(_0x3d6950);},'hCUKf':function(_0x12ac1a,_0x346e1a){return _0x12ac1a===_0x346e1a;},'Retjq':function(_0x446352,_0x2959a3,_0x365ce3){return _0x446352(_0x2959a3,_0x365ce3);},'SlqGS':function(_0x40c773,_0x2a7248){return _0x40c773+_0x2a7248;}};if(!_0x3b5ff8[_0x2015c1(0x1d5)](existsSync,_0x37802e))return![];let _0x577ec1;try{const _0x529c91=await readFile(_0x37802e,_0x3b5ff8[_0x2015c1(0x1c7)]);_0x577ec1=_0x3b5ff8['bzTWi'](parseJsonc,_0x529c91);}catch{return![];}const _0x3b63d1=Array['isArray'](_0x577ec1[_0x2015c1(0x1d1)])?_0x577ec1['plugin']:[];if(_0x3b63d1[_0x2015c1(0x1d6)]===0x0)return![];const _0x52c572=_0x3b63d1[_0x2015c1(0x1e4)](_0x2f2740=>{const _0x2561fb=_0x2015c1;if(_0x3b5ff8[_0x2561fb(0x1f4)](typeof _0x2f2740,'string'))return!![];return _0x3b5ff8[_0x2561fb(0x1d7)](_0x2f2740,opencodePluginName);});if(_0x3b5ff8[_0x2015c1(0x1e5)](_0x52c572['length'],_0x3b63d1['length']))return![];return _0x52c572[_0x2015c1(0x1d6)]===0x0?delete _0x577ec1[_0x2015c1(0x1d1)]:_0x577ec1['plugin']=_0x52c572,await _0x3b5ff8[_0x2015c1(0x1f0)](writeFile,_0x37802e,_0x3b5ff8['SlqGS'](JSON[_0x2015c1(0x1da)](_0x577ec1,null,0x2),'\x0a')),!![];}async function uninstallClaudePlugin(_0x2b3891){const _0x2f48fc=_0x3094c7,_0x99c4ff={'WUusT':'ranger@trailhead','oKjJR':_0x2f48fc(0x1e3),'GtybN':'claude','AhzHi':_0x2f48fc(0x1fd),'VYrAj':function(_0x4abc05,_0x5a27ab){return _0x4abc05===_0x5a27ab;},'GBymj':_0x2f48fc(0x1de),'TBTjm':_0x2f48fc(0x1d8)};return new Promise(_0x10f2df=>{const _0x5188ad=_0x2f48fc,_0x3f2dfc={'VCmvL':function(_0x67123,_0x58dcac){return _0x67123(_0x58dcac);}},_0x355ee8=[_0x5188ad(0x1d1),_0x5188ad(0x1dc),_0x99c4ff['WUusT']];_0x2b3891&&_0x355ee8['push'](_0x99c4ff['oKjJR'],_0x2b3891);const _0xe785a8=spawn(_0x99c4ff[_0x5188ad(0x1ef)],_0x355ee8,{'stdio':[_0x5188ad(0x1fd),_0x99c4ff['AhzHi'],_0x5188ad(0x1fd)],'cwd':_0x2b3891?getProjectRoot():undefined,'shell':_0x99c4ff[_0x5188ad(0x1fe)](process['platform'],_0x99c4ff['GBymj'])});_0xe785a8['on'](_0x99c4ff['TBTjm'],_0x11270e=>{_0x10f2df(_0x11270e===0x0);}),_0xe785a8['on']('error',()=>{const _0x3b3f46=_0x5188ad;_0x3f2dfc[_0x3b3f46(0x1f9)](_0x10f2df,![]);});});}async function removeMarketplace(){const _0x230ca4=_0x3094c7,_0x346106={'mwMjQ':function(_0x489e35,_0x144686){return _0x489e35===_0x144686;},'OWBGV':function(_0x1fe947,_0x5866a1){return _0x1fe947(_0x5866a1);},'CBpLY':function(_0xfb3073,_0x2a09ee,_0x9adb20,_0x1ab484){return _0xfb3073(_0x2a09ee,_0x9adb20,_0x1ab484);},'BrGgu':'plugin','magxf':_0x230ca4(0x1e8),'GmzFI':_0x230ca4(0x1cc),'NsCUq':_0x230ca4(0x1fd),'RIKvQ':function(_0xea57b6,_0x1caf3f){return _0xea57b6===_0x1caf3f;},'LpPzx':_0x230ca4(0x1d8),'RglzS':'error'};return new Promise(_0x47a6e8=>{const _0x298257=_0x230ca4,_0x280082={'ZNqlo':function(_0x17bca9,_0x363776){const _0x2597ac=_0x1dd7;return _0x346106[_0x2597ac(0x1ec)](_0x17bca9,_0x363776);}},_0xe265f3=_0x346106['CBpLY'](spawn,'claude',[_0x346106['BrGgu'],_0x346106[_0x298257(0x1f1)],_0x346106['GmzFI'],_0x298257(0x1fa)],{'stdio':[_0x346106[_0x298257(0x1e6)],_0x298257(0x1fd),_0x298257(0x1fd)],'shell':_0x346106['RIKvQ'](process['platform'],_0x298257(0x1de))});_0xe265f3['on'](_0x346106[_0x298257(0x1c5)],_0x43e4f1=>{_0x47a6e8(_0x346106['mwMjQ'](_0x43e4f1,0x0));}),_0xe265f3['on'](_0x346106[_0x298257(0x1cd)],()=>{const _0xfd21a=_0x298257;_0x280082[_0xfd21a(0x1d0)](_0x47a6e8,![]);});});}export async function clean(){const _0x3a9eb7=_0x3094c7,_0x4386f9={'Hbqou':function(_0x2539ff){return _0x2539ff();},'Pxktl':'✓\x20Removed\x20stored\x20credentials','ZTAVQ':function(_0x231350){return _0x231350();},'QDGfd':function(_0xd29bbf,_0x51a42e){return _0xd29bbf(_0x51a42e);},'eCRdD':function(_0x5c7315,_0x2e3f23){return _0x5c7315(_0x2e3f23);},'VkYxk':function(_0x5efb14,_0x24496a,_0x385b3c){return _0x5efb14(_0x24496a,_0x385b3c);},'wePwh':function(_0x11c72c,_0x472032,_0x564bf4){return _0x11c72c(_0x472032,_0x564bf4);},'MUpEp':function(_0x16c6b6,_0x33ad42,_0x1a5565){return _0x16c6b6(_0x33ad42,_0x1a5565);},'woZgY':function(_0x2f35a2,_0x3bb8a5){return _0x2f35a2(_0x3bb8a5);},'wnRyw':function(_0x470911,_0x54b24b,_0x386bc3){return _0x470911(_0x54b24b,_0x386bc3);},'FMDqT':_0x3a9eb7(0x1cf),'HOOvg':'opencode.json','EISMa':_0x3a9eb7(0x1e1),'VKrCl':'user','MQiDw':'✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','ScDXz':'✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','HUtyD':function(_0x31fa72){return _0x31fa72();},'iwiJz':'Nothing\x20to\x20clean\x20up.\x0a'};console[_0x3a9eb7(0x1df)](_0x3a9eb7(0x1cb));let _0x34ebb4=![];try{await _0x4386f9['Hbqou'](deleteAllCredentials),console[_0x3a9eb7(0x1df)](_0x4386f9['Pxktl']),_0x34ebb4=!![];}catch{}const _0x57ace5=_0x4386f9['ZTAVQ'](getCacheFile);_0x4386f9[_0x3a9eb7(0x1ea)](existsSync,_0x57ace5)&&(await _0x4386f9['eCRdD'](rm,_0x57ace5),_0x34ebb4=!![]);const _0x274ddc=getRangerDir();existsSync(_0x274ddc)&&(await rm(_0x274ddc,{'recursive':!![]}),console[_0x3a9eb7(0x1df)]('✓\x20Removed\x20.ranger/\x20directory'),_0x34ebb4=!![]);const _0x530854=getProjectSkillsDir();for(const _0x599711 of skillsToRemove){const _0x5b7998=_0x4386f9['VkYxk'](join,_0x530854,_0x599711);existsSync(_0x5b7998)&&(await _0x4386f9[_0x3a9eb7(0x1ee)](rm,_0x5b7998,{'recursive':!![]}),console['log']('✓\x20Removed\x20project\x20skill:\x20'+_0x599711),_0x34ebb4=!![]);}const _0x2cc6c2=_0x4386f9['Hbqou'](getUserSkillsDir);for(const _0x33a144 of skillsToRemove){const _0x1cad15=join(_0x2cc6c2,_0x33a144);_0x4386f9['QDGfd'](existsSync,_0x1cad15)&&(await _0x4386f9[_0x3a9eb7(0x1f3)](rm,_0x1cad15,{'recursive':!![]}),console[_0x3a9eb7(0x1df)](_0x3a9eb7(0x1ce)+_0x33a144),_0x34ebb4=!![]);}const _0x52d02b=getOpencodeSkillsDir(_0x3a9eb7(0x1cf));for(const _0x1d2b26 of skillsToRemove){const _0x5712f5=_0x4386f9[_0x3a9eb7(0x1ee)](join,_0x52d02b,_0x1d2b26);existsSync(_0x5712f5)&&(await rm(_0x5712f5,{'recursive':!![]}),console[_0x3a9eb7(0x1df)]('✓\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x1d2b26),_0x34ebb4=!![]);}const _0x3020ca=_0x4386f9[_0x3a9eb7(0x1e7)](getOpencodeSkillsDir,_0x3a9eb7(0x1d4));for(const _0x5e6f8c of skillsToRemove){const _0x4d00f7=join(_0x3020ca,_0x5e6f8c);existsSync(_0x4d00f7)&&(await _0x4386f9[_0x3a9eb7(0x1d2)](rm,_0x4d00f7,{'recursive':!![]}),console[_0x3a9eb7(0x1df)]('✓\x20Removed\x20OpenCode\x20user\x20skill:\x20'+_0x5e6f8c),_0x34ebb4=!![]);}const _0x17db26=join(getOpencodeConfigDir(_0x4386f9['FMDqT']),_0x4386f9[_0x3a9eb7(0x1ed)]);await removeOpencodePluginConfig(_0x17db26)&&(console[_0x3a9eb7(0x1df)](_0x4386f9[_0x3a9eb7(0x1d3)]),_0x34ebb4=!![]);const _0x5cb4a1=join(_0x4386f9[_0x3a9eb7(0x1e7)](getOpencodeConfigDir,_0x4386f9[_0x3a9eb7(0x1fc)]),_0x4386f9[_0x3a9eb7(0x1ed)]);await removeOpencodePluginConfig(_0x5cb4a1)&&(console['log'](_0x4386f9[_0x3a9eb7(0x1d9)]),_0x34ebb4=!![]);const _0x5f69c7=await _0x4386f9['Hbqou'](uninstallClaudePlugin);_0x5f69c7&&(console[_0x3a9eb7(0x1df)](_0x4386f9[_0x3a9eb7(0x1f2)]),_0x34ebb4=!![]);const _0xa68a89=await uninstallClaudePlugin('project');_0xa68a89&&(console['log'](_0x3a9eb7(0x1db)),_0x34ebb4=!![]);const _0x193b1d=await _0x4386f9['HUtyD'](removeMarketplace);_0x193b1d&&(console['log'](_0x3a9eb7(0x1eb)),_0x34ebb4=!![]),_0x34ebb4?console[_0x3a9eb7(0x1df)](_0x3a9eb7(0x1e2)):console[_0x3a9eb7(0x1df)](_0x4386f9[_0x3a9eb7(0x1fb)]);}
@@ -1 +1 @@
1
- const _0x4a948e=_0x38d0;(function(_0x3fdfa3,_0x48f419){const _0x539992=_0x38d0,_0x5cef93=_0x3fdfa3();while(!![]){try{const _0x1223d1=parseInt(_0x539992(0xad))/0x1*(-parseInt(_0x539992(0xb3))/0x2)+parseInt(_0x539992(0xb7))/0x3+-parseInt(_0x539992(0xb6))/0x4*(-parseInt(_0x539992(0xb1))/0x5)+parseInt(_0x539992(0xa3))/0x6*(-parseInt(_0x539992(0xce))/0x7)+-parseInt(_0x539992(0xb5))/0x8+parseInt(_0x539992(0xc6))/0x9+-parseInt(_0x539992(0xcd))/0xa*(-parseInt(_0x539992(0xcf))/0xb);if(_0x1223d1===_0x48f419)break;else _0x5cef93['push'](_0x5cef93['shift']());}catch(_0x4411b7){_0x5cef93['push'](_0x5cef93['shift']());}}}(_0xc77a,0x4554d));import{existsSync}from'fs';import{loadSettings,getNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';import{fetchCloudProfile}from'./utils/cloudProfile.js';import{mergeCloudProfileSettings,readProfileOverrides,resetProfileOverrides,setProfileOverride,unsetProfileOverride}from'./utils/projectsConfig.js';function _0xc77a(){const _0x2657d9=['Removed\x20','kind','FTHgx','\x20for\x20\x22','settings','\x20=\x20','Evzmj','startsWith','WHlws','279704TDfIPy','zBXAh','No\x20configuration\x20set\x20for\x20\x22','length','73210cpjWEH','KXLTo','2BZIPGs','iIJJf','2716600LFxsyE','60lXKjWX','330750MgxWXv','parse','alsoExistsElsewhere','Key\x20\x22','log',':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22','OhaIh','allowInsecureLocalhost','(not\x20set)','cloud','\x22\x20not\x20found','trim','forceLogin','mTHSu','object','2750958Obteby','Set\x20','EIdbe','test','null','\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20','snAFp','90DyRMbM','7woMiNy','520113dqeWmV','Invalid\x20value\x20for\x20','tptxa','\x20<key>\x22\x20to\x20remove\x20individual\x20values.','stringify','OGplr','946974WCblmk'];_0xc77a=function(){return _0x2657d9;};return _0xc77a();}const BOOLEAN_KEYS=['headless',_0x4a948e(0xbe),_0x4a948e(0xc3)];function parseLocalValue(_0x172676,_0x3275c0){const _0x4f4212=_0x4a948e,_0x8c228c={'tptxa':'true'};if(BOOLEAN_KEYS['includes'](_0x172676)){if(_0x3275c0===_0x8c228c[_0x4f4212(0xd1)])return!![];if(_0x3275c0==='false')return![];throw new Error(_0x4f4212(0xd0)+_0x172676+_0x4f4212(0xbc));}return _0x3275c0;}function _0x38d0(_0x3c7b88,_0x38e120){_0x3c7b88=_0x3c7b88-0xa0;const _0xc77a36=_0xc77a();let _0x38d05f=_0xc77a36[_0x3c7b88];return _0x38d05f;}function parseOverrideValue(_0x3c0604){const _0x3eb3e9=_0x4a948e,_0x3da50f={'sFQqF':function(_0x3fc16b,_0x10e3eb){return _0x3fc16b===_0x10e3eb;},'IioNB':'true','STGZY':'false','EGvnk':function(_0x4f0851,_0x2b9cb9){return _0x4f0851===_0x2b9cb9;},'Evzmj':_0x3eb3e9(0xca),'jgRQR':function(_0x33e4a6,_0x2e343e){return _0x33e4a6(_0x2e343e);}};if(_0x3da50f['sFQqF'](_0x3c0604,_0x3da50f['IioNB']))return!![];if(_0x3c0604===_0x3da50f['STGZY'])return![];if(_0x3da50f['EGvnk'](_0x3c0604,_0x3da50f[_0x3eb3e9(0xaa)]))return null;if(_0x3c0604==='undefined')return undefined;if(/^-?\d+$/['test'](_0x3c0604)){const _0x3e8bf4=_0x3da50f['jgRQR'](Number,_0x3c0604);if(Number['isSafeInteger'](_0x3e8bf4))return _0x3e8bf4;}if(/^-?\d+\.\d+$/[_0x3eb3e9(0xc9)](_0x3c0604)){const _0x4def64=Number(_0x3c0604);if(!Number['isNaN'](_0x4def64))return _0x4def64;}const _0x5ae854=_0x3c0604[_0x3eb3e9(0xc2)]();if(_0x5ae854[_0x3eb3e9(0xab)]('{')&&_0x5ae854['endsWith']('}')||_0x5ae854['startsWith']('[')&&_0x5ae854['endsWith'](']'))try{return JSON[_0x3eb3e9(0xb8)](_0x5ae854);}catch{}return _0x3c0604;}async function resolveProfileTarget(_0x3fd410){const _0x4bcb24=_0x4a948e,_0x50bc8c={'OhaIh':function(_0x2d7977,_0x58fead){return _0x2d7977(_0x58fead);},'VDIgw':'cloud','mTHSu':'local'},_0xf0df9f=existsSync(getEnvDir(_0x3fd410));let _0x1d37f5=![];try{const _0x51f9b8=await _0x50bc8c[_0x4bcb24(0xbd)](fetchCloudProfile,_0x3fd410);_0x1d37f5=_0x50bc8c[_0x4bcb24(0xbd)](Boolean,_0x51f9b8);}catch{}if(_0x1d37f5)return{'kind':_0x50bc8c['VDIgw'],'alsoExistsElsewhere':_0xf0df9f};if(_0xf0df9f)return{'kind':_0x50bc8c[_0x4bcb24(0xc4)],'alsoExistsElsewhere':![]};throw new Error('Profile\x20\x22'+_0x3fd410+_0x4bcb24(0xcb)+_0x3fd410);}function printDualExistsHint(_0x45942e){console['log']('\x20\x20Note:\x20\x22'+_0x45942e+'\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.');}function getProjectPath(){return process['cwd']();}async function loadEffectiveCloudSettings(_0x2a4177){const _0x2e0be4=_0x4a948e,_0x5e7ebf={'iIJJf':function(_0x410998,_0x493970){return _0x410998(_0x493970);},'wqnHN':function(_0x3fc5af,_0x552d71,_0x1e4f0b){return _0x3fc5af(_0x552d71,_0x1e4f0b);},'BYJUZ':function(_0x1b4841){return _0x1b4841();},'lUmYA':function(_0x1d14b0,_0x35d4ea,_0x2f4dee){return _0x1d14b0(_0x35d4ea,_0x2f4dee);},'ezOMc':function(_0x37de0f,_0x57b44a){return _0x37de0f??_0x57b44a;}},_0x32ad59=await _0x5e7ebf[_0x2e0be4(0xb4)](fetchCloudProfile,_0x2a4177),_0x402782=_0x5e7ebf['wqnHN'](readProfileOverrides,_0x5e7ebf['BYJUZ'](getProjectPath),_0x2a4177);return _0x5e7ebf['lUmYA'](mergeCloudProfileSettings,_0x32ad59?.[_0x2e0be4(0xa8)]??{},_0x5e7ebf['ezOMc'](_0x402782,undefined));}export async function configSet(_0xa1c221,_0x3a10a0,_0x1f442e){const _0x147f39=_0x4a948e,_0x569a56={'zBXAh':'cloud','PInmg':function(_0xac3f16,_0x1318f1){return _0xac3f16(_0x1318f1);},'oeaBZ':function(_0x40cdf0,_0x1515ab){return _0x40cdf0(_0x1515ab);},'hSRgi':function(_0x5e32a0,_0x1379ec,_0x3b7bee,_0xf5a007,_0x28e2bc){return _0x5e32a0(_0x1379ec,_0x3b7bee,_0xf5a007,_0x28e2bc);},'hrWoC':function(_0x5bdb4e){return _0x5bdb4e();}},_0x43648a=await resolveProfileTarget(_0xa1c221);if(_0x43648a[_0x147f39(0xa5)]===_0x569a56[_0x147f39(0xae)]){if(_0x43648a[_0x147f39(0xb9)])_0x569a56['PInmg'](printDualExistsHint,_0xa1c221);const _0x1fbeb6=_0x569a56['oeaBZ'](parseOverrideValue,_0x1f442e);_0x569a56['hSRgi'](setProfileOverride,getProjectPath(),_0xa1c221,_0x3a10a0,_0x1fbeb6),console['log'](_0x147f39(0xc7)+_0x3a10a0+'\x20=\x20'+JSON['stringify'](_0x1fbeb6)+'\x20for\x20\x22'+_0xa1c221+'\x22');return;}const _0x4162fc=parseLocalValue(_0x3a10a0,_0x1f442e);setProfileOverride(_0x569a56['hrWoC'](getProjectPath),_0xa1c221,_0x3a10a0,_0x4162fc),console['log']('Set\x20'+_0x3a10a0+_0x147f39(0xa9)+_0x4162fc+'\x20for\x20\x22'+_0xa1c221+'\x22');}export async function configGet(_0x27322f,_0x2421c2){const _0x4984f4=_0x4a948e,_0x4280de={'WHlws':function(_0xb9de24,_0x241932){return _0xb9de24(_0x241932);},'KXLTo':'cloud','OUgeW':function(_0x38075e,_0x3df882){return _0x38075e(_0x3df882);},'EIdbe':_0x4984f4(0xc5),'cpevL':function(_0x48c7cb,_0x150940){return _0x48c7cb===_0x150940;},'snAFp':function(_0x46cbb7,_0x55b6d3){return _0x46cbb7===_0x55b6d3;}},_0x2a4bf1=await _0x4280de[_0x4984f4(0xac)](resolveProfileTarget,_0x27322f);if(_0x2a4bf1[_0x4984f4(0xa5)]===_0x4280de[_0x4984f4(0xb2)]){const _0x3e4b03=await _0x4280de['OUgeW'](loadEffectiveCloudSettings,_0x27322f),_0x3c10a2=getNestedValue(_0x3e4b03,_0x2421c2);if(_0x3c10a2===undefined)console[_0x4984f4(0xbb)](_0x4984f4(0xbf));else typeof _0x3c10a2===_0x4280de[_0x4984f4(0xc8)]?console['log'](JSON[_0x4984f4(0xa1)](_0x3c10a2,null,0x2)):console['log'](_0x3c10a2);return;}const _0x39e54e=await loadSettings(_0x27322f),_0x2d29d9=getNestedValue(_0x39e54e,_0x2421c2);if(_0x4280de['cpevL'](_0x2d29d9,undefined))console['log'](_0x4984f4(0xbf));else _0x4280de[_0x4984f4(0xcc)](typeof _0x2d29d9,_0x4280de[_0x4984f4(0xc8)])?console[_0x4984f4(0xbb)](JSON['stringify'](_0x2d29d9,null,0x2)):console['log'](_0x2d29d9);}export async function configList(_0x508c0a){const _0x43e1c1=_0x4a948e,_0x5b5c6f={'xoHNQ':function(_0x2b42d8,_0x42c83f){return _0x2b42d8(_0x42c83f);}},_0x9ba02d=await resolveProfileTarget(_0x508c0a);if(_0x9ba02d['kind']==='cloud'){const _0x7433c3=await loadEffectiveCloudSettings(_0x508c0a);if(!_0x7433c3||Object['keys'](_0x7433c3)[_0x43e1c1(0xb0)]===0x0){console[_0x43e1c1(0xbb)](_0x43e1c1(0xaf)+_0x508c0a+'\x22');return;}console[_0x43e1c1(0xbb)](JSON[_0x43e1c1(0xa1)](_0x7433c3,null,0x2));return;}const _0xa7fd6d=_0x5b5c6f['xoHNQ'](getSettingsPath,_0x508c0a);if(!existsSync(_0xa7fd6d)){console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x508c0a+'\x22');return;}const _0x2e4d0f=await loadSettings(_0x508c0a),_0x242b3d=_0x5b5c6f['xoHNQ'](formatSettings,_0x2e4d0f);!_0x242b3d?console['log'](_0x43e1c1(0xaf)+_0x508c0a+'\x22'):console[_0x43e1c1(0xbb)](_0x242b3d);}export async function configUnset(_0x1b3d2d,_0x415997){const _0xa32cda=_0x4a948e,_0x4bab11={'sharE':function(_0x36a8a9,_0x5c0d9b){return _0x36a8a9(_0x5c0d9b);},'WqgBn':function(_0x119e5c,_0x20c3ee){return _0x119e5c===_0x20c3ee;},'YxLep':_0xa32cda(0xc0),'JuPMt':function(_0x579981,_0x5751ef,_0x8acf16,_0x3da5f0){return _0x579981(_0x5751ef,_0x8acf16,_0x3da5f0);},'OGplr':function(_0x5cdb93){return _0x5cdb93();},'QfxPo':function(_0x54332a,_0x336e82){return _0x54332a(_0x336e82);}},_0x541a46=await _0x4bab11['sharE'](resolveProfileTarget,_0x1b3d2d);if(_0x4bab11['WqgBn'](_0x541a46['kind'],_0x4bab11['YxLep'])){if(_0x541a46['alsoExistsElsewhere'])printDualExistsHint(_0x1b3d2d);const _0x4bd95b=_0x4bab11['JuPMt'](unsetProfileOverride,_0x4bab11[_0xa32cda(0xa2)](getProjectPath),_0x1b3d2d,_0x415997);_0x4bd95b?console[_0xa32cda(0xbb)](_0xa32cda(0xa4)+_0x415997+_0xa32cda(0xa7)+_0x1b3d2d+'\x22'):console['log']('Key\x20\x22'+_0x415997+_0xa32cda(0xc1));return;}const _0x3424e6=unsetProfileOverride(getProjectPath(),_0x1b3d2d,_0x415997);if(_0x3424e6){console[_0xa32cda(0xbb)]('Removed\x20'+_0x415997);return;}const _0x12668d=await _0x4bab11['QfxPo'](loadSettings,_0x1b3d2d),_0x5612a6=deleteNestedValue(_0x12668d,_0x415997);_0x5612a6?console['log'](_0xa32cda(0xba)+_0x415997+'\x22\x20lives\x20in\x20the\x20legacy\x20settings\x20file\x20for\x20\x22'+_0x1b3d2d+'\x22\x20and\x20cannot\x20be\x20unset;\x20the\x20legacy\x20tree\x20is\x20read-only\x20under\x20cloud\x20profiles.'):console['log'](_0xa32cda(0xba)+_0x415997+'\x22\x20not\x20found');}export async function configReset(_0x46f045){const _0x599bc2=_0x4a948e,_0x273fbe={'EYJtI':function(_0x349769,_0x588f3e){return _0x349769===_0x588f3e;},'clcOP':_0x599bc2(0xc0),'FTHgx':function(_0x16bf93,_0x2f82d9,_0x405c9c){return _0x16bf93(_0x2f82d9,_0x405c9c);}},_0x3b190e=await resolveProfileTarget(_0x46f045);if(_0x273fbe['EYJtI'](_0x3b190e[_0x599bc2(0xa5)],_0x273fbe['clcOP'])){_0x273fbe[_0x599bc2(0xa6)](resetProfileOverrides,getProjectPath(),_0x46f045),console[_0x599bc2(0xbb)]('Cleared\x20local\x20overrides\x20for\x20\x22'+_0x46f045+'\x22');return;}console['log']('\x22'+_0x46f045+'\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20'+_0x46f045+_0x599bc2(0xa0));}
1
+ const _0x2fa313=_0x49a0;function _0xf490(){const _0x4d80c5=['kind','startsWith','70bYvjWV','ixmAv','keys','3piSUWl','No\x20configuration\x20set\x20for\x20\x22','log','undefined','\x20<key>\x22\x20to\x20remove\x20individual\x20values.','forceLogin','wQxbA','VHKYe','elKAz','422566bgCuTa','9711449nOuHht','parse','stringify','cloud','63930sZBwmn','alsoExistsElsewhere','null','17647lYAyLM','GpxoR','1564920xyPFff','129412YXroAE','1143YyqBVw','\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.','qRqVx','zzNKh','\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20','kRMer','\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20','Key\x20\x22','qzAXC','(not\x20set)','EaPsl',':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22','isSafeInteger','irCqL','12fSXdIO','\x22\x20not\x20found','faZJe','Removed\x20','false','test','true','5752IKfJqq','\x20for\x20\x22','25FAeWuS','OAlkb','Invalid\x20value\x20for\x20','GTkoM'];_0xf490=function(){return _0x4d80c5;};return _0xf490();}(function(_0x1facd2,_0x406465){const _0x1dee8a=_0x49a0,_0x7922f=_0x1facd2();while(!![]){try{const _0x992b06=parseInt(_0x1dee8a(0xf7))/0x1+-parseInt(_0x1dee8a(0xef))/0x2*(parseInt(_0x1dee8a(0xe6))/0x3)+parseInt(_0x1dee8a(0xfa))/0x4*(-parseInt(_0x1dee8a(0xdd))/0x5)+-parseInt(_0x1dee8a(0xf4))/0x6*(parseInt(_0x1dee8a(0xe3))/0x7)+parseInt(_0x1dee8a(0xdb))/0x8*(-parseInt(_0x1dee8a(0xfb))/0x9)+-parseInt(_0x1dee8a(0xf9))/0xa+-parseInt(_0x1dee8a(0xf0))/0xb*(-parseInt(_0x1dee8a(0x109))/0xc);if(_0x992b06===_0x406465)break;else _0x7922f['push'](_0x7922f['shift']());}catch(_0x4fb7f0){_0x7922f['push'](_0x7922f['shift']());}}}(_0xf490,0x2a42f));import{existsSync}from'fs';import{loadSettings,getNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';function _0x49a0(_0x3e255b,_0x596955){_0x3e255b=_0x3e255b-0xd6;const _0xf49081=_0xf490();let _0x49a037=_0xf49081[_0x3e255b];return _0x49a037;}import{fetchCloudProfile}from'./utils/cloudProfile.js';import{mergeCloudProfileSettings,readProfileOverrides,resetProfileOverrides,setProfileOverride,unsetProfileOverride}from'./utils/projectsConfig.js';const BOOLEAN_KEYS=['headless','allowInsecureLocalhost',_0x2fa313(0xeb)];function parseLocalValue(_0x4ac392,_0xb89ff8){const _0x109eda=_0x2fa313,_0x341a6={'GagHi':function(_0x124481,_0x351577){return _0x124481===_0x351577;},'EaPsl':'false'};if(BOOLEAN_KEYS['includes'](_0x4ac392)){if(_0x341a6['GagHi'](_0xb89ff8,'true'))return!![];if(_0x341a6['GagHi'](_0xb89ff8,_0x341a6[_0x109eda(0x105)]))return![];throw new Error(_0x109eda(0xdf)+_0x4ac392+_0x109eda(0x106));}return _0xb89ff8;}function parseOverrideValue(_0x227927){const _0x34e045=_0x2fa313,_0x1bfe18={'bGPfe':_0x34e045(0xda),'fdgco':_0x34e045(0xd8),'wQxbA':_0x34e045(0xf6),'KFLvU':function(_0x569f11,_0x3648a1){return _0x569f11===_0x3648a1;},'faZJe':_0x34e045(0xe9)};if(_0x227927===_0x1bfe18['bGPfe'])return!![];if(_0x227927===_0x1bfe18['fdgco'])return![];if(_0x227927===_0x1bfe18[_0x34e045(0xec)])return null;if(_0x1bfe18['KFLvU'](_0x227927,_0x1bfe18[_0x34e045(0xd6)]))return undefined;if(/^-?\d+$/[_0x34e045(0xd9)](_0x227927)){const _0x58b63e=Number(_0x227927);if(Number[_0x34e045(0x107)](_0x58b63e))return _0x58b63e;}if(/^-?\d+\.\d+$/[_0x34e045(0xd9)](_0x227927)){const _0x42f540=Number(_0x227927);if(!Number['isNaN'](_0x42f540))return _0x42f540;}const _0x5d7fe1=_0x227927['trim']();if(_0x5d7fe1['startsWith']('{')&&_0x5d7fe1['endsWith']('}')||_0x5d7fe1[_0x34e045(0xe2)]('[')&&_0x5d7fe1['endsWith'](']'))try{return JSON[_0x34e045(0xf1)](_0x5d7fe1);}catch{}return _0x227927;}async function resolveProfileTarget(_0x2f9adc){const _0x1ba68f=_0x2fa313,_0x38d894={'eXgow':function(_0x344775,_0x222924){return _0x344775(_0x222924);},'zzNKh':function(_0x38e634,_0x52b826){return _0x38e634(_0x52b826);},'UVQhX':_0x1ba68f(0xf3)},_0x5e7d8e=_0x38d894['eXgow'](existsSync,getEnvDir(_0x2f9adc));let _0x1b517d=![];try{const _0x31b048=await _0x38d894['zzNKh'](fetchCloudProfile,_0x2f9adc);_0x1b517d=_0x38d894[_0x1ba68f(0xfe)](Boolean,_0x31b048);}catch{}if(_0x1b517d)return{'kind':_0x38d894['UVQhX'],'alsoExistsElsewhere':_0x5e7d8e};if(_0x5e7d8e)return{'kind':'local','alsoExistsElsewhere':![]};throw new Error('Profile\x20\x22'+_0x2f9adc+_0x1ba68f(0xff)+_0x2f9adc);}function printDualExistsHint(_0xe25c37){const _0x1fd943=_0x2fa313;console['log']('\x20\x20Note:\x20\x22'+_0xe25c37+_0x1fd943(0xfc));}function getProjectPath(){return process['cwd']();}async function loadEffectiveCloudSettings(_0x9335d2){const _0x346a66=_0x2fa313,_0xbe76bf={'irCqL':function(_0x18e9de,_0x4d1bf0){return _0x18e9de(_0x4d1bf0);},'OAlkb':function(_0x44e698,_0x1b9b9a,_0x37b54f){return _0x44e698(_0x1b9b9a,_0x37b54f);},'kRMer':function(_0x4e6ef6){return _0x4e6ef6();},'ixmAv':function(_0x45c05b,_0x1ffd16){return _0x45c05b??_0x1ffd16;}},_0x4f691e=await _0xbe76bf[_0x346a66(0x108)](fetchCloudProfile,_0x9335d2),_0x4d241b=_0xbe76bf[_0x346a66(0xde)](readProfileOverrides,_0xbe76bf[_0x346a66(0x100)](getProjectPath),_0x9335d2);return mergeCloudProfileSettings(_0x4f691e?.['settings']??{},_0xbe76bf[_0x346a66(0xe4)](_0x4d241b,undefined));}export async function configSet(_0x2e51f8,_0x27f139,_0x15c593){const _0x52b912=_0x2fa313,_0x470eb9={'YeJKx':function(_0x54e398,_0x1fd05e){return _0x54e398===_0x1fd05e;},'ZSSxI':'cloud','FWxqh':function(_0x1f007e,_0x13a822){return _0x1f007e(_0x13a822);},'OcYvE':function(_0xb81410,_0x455f11){return _0xb81410(_0x455f11);},'pskBh':function(_0x154654,_0x23069f,_0x3cbbcb){return _0x154654(_0x23069f,_0x3cbbcb);},'upJSl':function(_0x3cff55,_0x4bbdec,_0x149746,_0x4e7bed,_0x3a93cd){return _0x3cff55(_0x4bbdec,_0x149746,_0x4e7bed,_0x3a93cd);},'EZyBa':function(_0x21d19d){return _0x21d19d();}},_0x3f133b=await resolveProfileTarget(_0x2e51f8);if(_0x470eb9['YeJKx'](_0x3f133b[_0x52b912(0xe1)],_0x470eb9['ZSSxI'])){if(_0x3f133b[_0x52b912(0xf5)])_0x470eb9['FWxqh'](printDualExistsHint,_0x2e51f8);const _0x489703=_0x470eb9['OcYvE'](parseOverrideValue,_0x15c593);setProfileOverride(getProjectPath(),_0x2e51f8,_0x27f139,_0x489703),console[_0x52b912(0xe8)]('Set\x20'+_0x27f139+'\x20=\x20'+JSON[_0x52b912(0xf2)](_0x489703)+'\x20for\x20\x22'+_0x2e51f8+'\x22');return;}const _0x4459b8=_0x470eb9['pskBh'](parseLocalValue,_0x27f139,_0x15c593);_0x470eb9['upJSl'](setProfileOverride,_0x470eb9['EZyBa'](getProjectPath),_0x2e51f8,_0x27f139,_0x4459b8),console['log']('Set\x20'+_0x27f139+'\x20=\x20'+_0x4459b8+_0x52b912(0xdc)+_0x2e51f8+'\x22');}export async function configGet(_0x5f3836,_0x388a03){const _0x4b64a9=_0x2fa313,_0x3ae951={'GpxoR':function(_0x149588,_0x5ec339){return _0x149588===_0x5ec339;},'NPLHd':function(_0x1b78d0,_0x36ac25){return _0x1b78d0(_0x36ac25);},'FQkFz':function(_0x38d1f9,_0xdfb82f,_0x1740e9){return _0x38d1f9(_0xdfb82f,_0x1740e9);},'yMehH':'object'},_0x4302f1=await resolveProfileTarget(_0x5f3836);if(_0x3ae951['GpxoR'](_0x4302f1['kind'],'cloud')){const _0x4c0876=await _0x3ae951['NPLHd'](loadEffectiveCloudSettings,_0x5f3836),_0x50b806=_0x3ae951['FQkFz'](getNestedValue,_0x4c0876,_0x388a03);if(_0x50b806===undefined)console[_0x4b64a9(0xe8)]('(not\x20set)');else _0x3ae951[_0x4b64a9(0xf8)](typeof _0x50b806,_0x3ae951['yMehH'])?console['log'](JSON[_0x4b64a9(0xf2)](_0x50b806,null,0x2)):console[_0x4b64a9(0xe8)](_0x50b806);return;}const _0x1aa805=await loadSettings(_0x5f3836),_0x500345=getNestedValue(_0x1aa805,_0x388a03);if(_0x3ae951['GpxoR'](_0x500345,undefined))console['log'](_0x4b64a9(0x104));else typeof _0x500345===_0x3ae951['yMehH']?console[_0x4b64a9(0xe8)](JSON[_0x4b64a9(0xf2)](_0x500345,null,0x2)):console[_0x4b64a9(0xe8)](_0x500345);}export async function configList(_0x7673be){const _0x11e801=_0x2fa313,_0x26d0cf={'cAWye':function(_0x306152,_0x58c3d9){return _0x306152(_0x58c3d9);},'elKAz':function(_0x3e5165,_0x125594){return _0x3e5165===_0x125594;},'ayjjH':function(_0x4dd7f0,_0x425a8c){return _0x4dd7f0(_0x425a8c);}},_0x5b872c=await resolveProfileTarget(_0x7673be);if(_0x5b872c['kind']==='cloud'){const _0xaf71f2=await _0x26d0cf['cAWye'](loadEffectiveCloudSettings,_0x7673be);if(!_0xaf71f2||_0x26d0cf[_0x11e801(0xee)](Object[_0x11e801(0xe5)](_0xaf71f2)['length'],0x0)){console[_0x11e801(0xe8)]('No\x20configuration\x20set\x20for\x20\x22'+_0x7673be+'\x22');return;}console[_0x11e801(0xe8)](JSON[_0x11e801(0xf2)](_0xaf71f2,null,0x2));return;}const _0x4e1c27=_0x26d0cf['ayjjH'](getSettingsPath,_0x7673be);if(!existsSync(_0x4e1c27)){console[_0x11e801(0xe8)]('No\x20configuration\x20set\x20for\x20\x22'+_0x7673be+'\x22');return;}const _0x176058=await loadSettings(_0x7673be),_0x139b87=_0x26d0cf['ayjjH'](formatSettings,_0x176058);!_0x139b87?console['log'](_0x11e801(0xe7)+_0x7673be+'\x22'):console['log'](_0x139b87);}export async function configUnset(_0x3bea3d,_0x1e9098){const _0x6fa831=_0x2fa313,_0x85dd9a={'qzAXC':function(_0x2616f1,_0x51659a){return _0x2616f1(_0x51659a);},'MLGQH':function(_0x4c0dfc,_0x5c9577){return _0x4c0dfc===_0x5c9577;},'qRqVx':function(_0x5e4fa){return _0x5e4fa();}},_0x4faf4c=await _0x85dd9a['qzAXC'](resolveProfileTarget,_0x3bea3d);if(_0x85dd9a['MLGQH'](_0x4faf4c[_0x6fa831(0xe1)],'cloud')){if(_0x4faf4c[_0x6fa831(0xf5)])_0x85dd9a[_0x6fa831(0x103)](printDualExistsHint,_0x3bea3d);const _0xf6f165=unsetProfileOverride(getProjectPath(),_0x3bea3d,_0x1e9098);_0xf6f165?console['log'](_0x6fa831(0xd7)+_0x1e9098+_0x6fa831(0xdc)+_0x3bea3d+'\x22'):console[_0x6fa831(0xe8)]('Key\x20\x22'+_0x1e9098+'\x22\x20not\x20found');return;}const _0x583411=unsetProfileOverride(_0x85dd9a[_0x6fa831(0xfd)](getProjectPath),_0x3bea3d,_0x1e9098);if(_0x583411){console[_0x6fa831(0xe8)](_0x6fa831(0xd7)+_0x1e9098);return;}const _0x916574=await loadSettings(_0x3bea3d),_0x2a88b5=deleteNestedValue(_0x916574,_0x1e9098);_0x2a88b5?console[_0x6fa831(0xe8)]('Key\x20\x22'+_0x1e9098+'\x22\x20lives\x20in\x20the\x20legacy\x20settings\x20file\x20for\x20\x22'+_0x3bea3d+'\x22\x20and\x20cannot\x20be\x20unset;\x20the\x20legacy\x20tree\x20is\x20read-only\x20under\x20cloud\x20profiles.'):console['log'](_0x6fa831(0x102)+_0x1e9098+_0x6fa831(0x10a));}export async function configReset(_0x500e85){const _0x423467=_0x2fa313,_0x13662f={'GTkoM':function(_0x13c22c,_0x243545){return _0x13c22c(_0x243545);},'VHKYe':function(_0x3adf00){return _0x3adf00();}},_0x272c54=await _0x13662f[_0x423467(0xe0)](resolveProfileTarget,_0x500e85);if(_0x272c54[_0x423467(0xe1)]===_0x423467(0xf3)){resetProfileOverrides(_0x13662f[_0x423467(0xed)](getProjectPath),_0x500e85),console['log']('Cleared\x20local\x20overrides\x20for\x20\x22'+_0x500e85+'\x22');return;}console['log']('\x22'+_0x500e85+_0x423467(0x101)+_0x500e85+_0x423467(0xea));}
@@ -1 +1 @@
1
- (function(_0x2beac6,_0x5de1be){const _0xd30535=_0x4c7c,_0x58d82b=_0x2beac6();while(!![]){try{const _0x5b5e92=-parseInt(_0xd30535(0xe6))/0x1+-parseInt(_0xd30535(0xeb))/0x2+parseInt(_0xd30535(0xef))/0x3+-parseInt(_0xd30535(0xf3))/0x4+-parseInt(_0xd30535(0xed))/0x5*(-parseInt(_0xd30535(0xe5))/0x6)+-parseInt(_0xd30535(0xf2))/0x7*(parseInt(_0xd30535(0xf5))/0x8)+parseInt(_0xd30535(0xf1))/0x9*(parseInt(_0xd30535(0xe3))/0xa);if(_0x5b5e92===_0x5de1be)break;else _0x58d82b['push'](_0x58d82b['shift']());}catch(_0x512866){_0x58d82b['push'](_0x58d82b['shift']());}}}(_0x30e4,0x4da7c));import _0x2ef3ec from'inquirer';import{deleteCloudProfile,fetchCloudProfile}from'./utils/cloudProfile.js';import{isInteractive}from'./utils/cloudProfileSession.js';import{clearLastProfile,resetProfileOverrides}from'./utils/projectsConfig.js';export async function deleteProfile(_0x2e7b0b,_0x247bf7={}){const _0x541e80=_0x4c7c,_0x191f6b={'tfTdq':function(_0x30f126,_0x3a3506){return _0x30f126(_0x3a3506);},'oIDis':function(_0x49b612){return _0x49b612();},'wkIAu':function(_0x287ba6,_0x54d301,_0x5447f6){return _0x287ba6(_0x54d301,_0x5447f6);}},_0x486be3=await _0x191f6b['tfTdq'](fetchCloudProfile,_0x2e7b0b);if(!_0x486be3)throw new Error('Cloud\x20profile\x20\x22'+_0x2e7b0b+'\x22\x20not\x20found.');if(!_0x247bf7['yes']&&!_0x191f6b[_0x541e80(0xe2)](isInteractive))throw new Error('Profile\x20deletion\x20requires\x20an\x20interactive\x20terminal\x20so\x20the\x20profile\x20name\x20can\x20be\x20typed\x20for\x20confirmation.\x20Pass\x20--yes\x20to\x20skip\x20confirmation.');console[_0x541e80(0xe4)]('\x0aWarning:\x20this\x20deletes\x20the\x20shared\x20cloud\x20profile\x20\x22'+_0x2e7b0b+'\x22\x20for\x20everyone\x20in\x20your\x20organization.');if(!_0x247bf7[_0x541e80(0xee)]){const {confirmation:_0x4cad89}=await _0x2ef3ec[_0x541e80(0xe1)]([{'type':_0x541e80(0xe7),'name':_0x541e80(0xea),'message':_0x541e80(0xe8)+_0x2e7b0b+_0x541e80(0xf4)}]);if(_0x4cad89!==_0x2e7b0b)throw new Error(_0x541e80(0xf6));}await _0x191f6b[_0x541e80(0xf0)](deleteCloudProfile,_0x2e7b0b),resetProfileOverrides(process['cwd'](),_0x2e7b0b),_0x191f6b[_0x541e80(0xe9)](clearLastProfile,process[_0x541e80(0xec)](),_0x2e7b0b),console['log']('✓\x20Deleted\x20cloud\x20profile\x20\x22'+_0x2e7b0b+'\x22.');}function _0x4c7c(_0x2e6bfc,_0x52b918){_0x2e6bfc=_0x2e6bfc-0xe1;const _0x30e43a=_0x30e4();let _0x4c7ccd=_0x30e43a[_0x2e6bfc];return _0x4c7ccd;}function _0x30e4(){const _0x18dfb7=['confirmation','1258160dmoTVG','cwd','250JrHZjJ','yes','902697pYAZpa','tfTdq','135BjJhTx','2342585fvzuVC','689360pGMGid','\x22\x20to\x20confirm\x20deletion:','8zzNaWc','Profile\x20deletion\x20cancelled:\x20confirmation\x20did\x20not\x20match.','prompt','oIDis','892400ZvqIHe','log','21000vOpOCz','360348rJzuZU','input','Type\x20\x22','wkIAu'];_0x30e4=function(){return _0x18dfb7;};return _0x30e4();}
1
+ function _0x357a(_0x2db6fc,_0x23f28c){_0x2db6fc=_0x2db6fc-0x181;const _0x15a9e4=_0x15a9();let _0x357ab4=_0x15a9e4[_0x2db6fc];return _0x357ab4;}function _0x15a9(){const _0x763fec=['Profile\x20deletion\x20cancelled:\x20confirmation\x20did\x20not\x20match.','cwd','9VAQzqE','MUxVD','239047AMwrRs','3928032TYXcyi','813906yuHpdq','1191508uHYKYj','\x22\x20not\x20found.','3559758anzSCJ','12DxBzbi','yes','504535dhQlYp','prompt','Profile\x20deletion\x20requires\x20an\x20interactive\x20terminal\x20so\x20the\x20profile\x20name\x20can\x20be\x20typed\x20for\x20confirmation.\x20Pass\x20--yes\x20to\x20skip\x20confirmation.','10914830tWDsSO','log','7SVefKO'];_0x15a9=function(){return _0x763fec;};return _0x15a9();}(function(_0x48b2ad,_0x24205a){const _0x34e8d7=_0x357a,_0x10f355=_0x48b2ad();while(!![]){try{const _0x5411cb=-parseInt(_0x34e8d7(0x18a))/0x1+-parseInt(_0x34e8d7(0x18d))/0x2+-parseInt(_0x34e8d7(0x18c))/0x3+-parseInt(_0x34e8d7(0x190))/0x4*(-parseInt(_0x34e8d7(0x192))/0x5)+-parseInt(_0x34e8d7(0x18f))/0x6*(-parseInt(_0x34e8d7(0x185))/0x7)+-parseInt(_0x34e8d7(0x18b))/0x8+-parseInt(_0x34e8d7(0x188))/0x9*(-parseInt(_0x34e8d7(0x183))/0xa);if(_0x5411cb===_0x24205a)break;else _0x10f355['push'](_0x10f355['shift']());}catch(_0x453aeb){_0x10f355['push'](_0x10f355['shift']());}}}(_0x15a9,0x5f4f6));import _0x3cc00f from'inquirer';import{deleteCloudProfile,fetchCloudProfile}from'./utils/cloudProfile.js';import{isInteractive}from'./utils/cloudProfileSession.js';import{clearLastProfile,resetProfileOverrides}from'./utils/projectsConfig.js';export async function deleteProfile(_0xe28bc0,_0x5e5188={}){const _0x48fd0a=_0x357a,_0x36d3e8={'MUxVD':function(_0x33b951,_0x27668b){return _0x33b951(_0x27668b);}},_0x12485b=await _0x36d3e8['MUxVD'](fetchCloudProfile,_0xe28bc0);if(!_0x12485b)throw new Error('Cloud\x20profile\x20\x22'+_0xe28bc0+_0x48fd0a(0x18e));if(!_0x5e5188['yes']&&!isInteractive())throw new Error(_0x48fd0a(0x182));console['log']('\x0aWarning:\x20this\x20deletes\x20the\x20shared\x20cloud\x20profile\x20\x22'+_0xe28bc0+'\x22\x20for\x20everyone\x20in\x20your\x20organization.');if(!_0x5e5188[_0x48fd0a(0x191)]){const {confirmation:_0x5b56db}=await _0x3cc00f[_0x48fd0a(0x181)]([{'type':'input','name':'confirmation','message':'Type\x20\x22'+_0xe28bc0+'\x22\x20to\x20confirm\x20deletion:'}]);if(_0x5b56db!==_0xe28bc0)throw new Error(_0x48fd0a(0x186));}await _0x36d3e8[_0x48fd0a(0x189)](deleteCloudProfile,_0xe28bc0),resetProfileOverrides(process[_0x48fd0a(0x187)](),_0xe28bc0),clearLastProfile(process['cwd'](),_0xe28bc0),console[_0x48fd0a(0x184)]('✓\x20Deleted\x20cloud\x20profile\x20\x22'+_0xe28bc0+'\x22.');}
@@ -1 +1 @@
1
- const _0x1c50a6=_0x2013;(function(_0x56b63c,_0x25f459){const _0x2900ea=_0x2013,_0x346806=_0x56b63c();while(!![]){try{const _0x3631df=parseInt(_0x2900ea(0x20d))/0x1*(-parseInt(_0x2900ea(0x20b))/0x2)+-parseInt(_0x2900ea(0x205))/0x3+parseInt(_0x2900ea(0x21a))/0x4+parseInt(_0x2900ea(0x1f7))/0x5*(parseInt(_0x2900ea(0x1ef))/0x6)+-parseInt(_0x2900ea(0x1ee))/0x7*(-parseInt(_0x2900ea(0x21b))/0x8)+-parseInt(_0x2900ea(0x209))/0x9*(parseInt(_0x2900ea(0x207))/0xa)+-parseInt(_0x2900ea(0x1ed))/0xb*(parseInt(_0x2900ea(0x212))/0xc);if(_0x3631df===_0x25f459)break;else _0x346806['push'](_0x346806['shift']());}catch(_0x5d8bd3){_0x346806['push'](_0x346806['shift']());}}}(_0x5212,0x7a743));import{readdir,stat}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';import{getToken}from'./utils/keychain.js';function _0x5212(){const _0x5d4ad3=['yaLQY','AfsGm','has','environmentKey','isDirectory','push','localeCompare','Suixb','1175283tAfWhp','.txt','1139690QWCyHH','environmentDetails','9AoMjHw','ikgmu','2EGVdcq','dxkZM','146921hvnvyU','bug-bashes','CjgLB','fuUJC','mxtXl','60NZkWFN','local','log','tNlOO','\x20\x20\x20\x20\x20\x20Details:\x20','map','dXibv','no\x20session','3551460rquxVj','29008TgjEvr','message','error','baseUrl','\x0aCloud\x20Profiles:','name','Run:\x20ranger\x20profile\x20add\x20<profile-name>','1022769VwlCkL','7bNejgm','36kAGsgT','HOvqB','includes','\x20[cloud]','endsWith','sort','cached\x20(updated\x20','startsWith','606355WBglUe','\x20\x20\x20\x20\x20\x20Session:\x20','qkzxy','ZYNde','length','sessions'];_0x5212=function(){return _0x5d4ad3;};return _0x5212();}function _0x2013(_0x1b0995,_0x37301c){_0x1b0995=_0x1b0995-0x1e7;const _0x52125f=_0x5212();let _0x20132e=_0x52125f[_0x1b0995];return _0x20132e;}import{listCloudProfiles}from'./utils/cloudProfile.js';const NON_ENV_DIRS=[_0x1c50a6(0x1fc),_0x1c50a6(0x20e),'reports',_0x1c50a6(0x213),'ci'];export async function getEnvNames(){const _0x43ec7b=_0x1c50a6,_0x31f728={'ZSfJt':function(_0x13301c){return _0x13301c();},'ehDaO':function(_0x28da19,_0xa77b3c,_0x415cf9){return _0x28da19(_0xa77b3c,_0x415cf9);},'yaLQY':_0x43ec7b(0x213),'qkzxy':function(_0x134f73,_0x34cd28,_0x452e5e){return _0x134f73(_0x34cd28,_0x452e5e);},'Suixb':function(_0x3c7561,_0x4fb36c){return _0x3c7561(_0x4fb36c);},'dxkZM':function(_0x3fed28,_0x2bf874,_0x540cf6){return _0x3fed28(_0x2bf874,_0x540cf6);},'AfsGm':_0x43ec7b(0x206),'ikgmu':function(_0x272c2e,_0x4256d8,_0x4c1f5a){return _0x272c2e(_0x4256d8,_0x4c1f5a);},'HOvqB':'settings.json','fuUJC':'legacy'},_0x6ffac8=getRangerDir();if(!existsSync(_0x6ffac8))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x41d223=await _0x31f728['ZSfJt'](readActiveProfileName),_0xf601e5=[],_0x1d10d9={},_0xa0344e=_0x31f728['ehDaO'](join,_0x6ffac8,_0x31f728['yaLQY']);if(existsSync(_0xa0344e)){const _0x14c599=await readdir(_0xa0344e);for(const _0x355f45 of _0x14c599){const _0x153f62=_0x31f728[_0x43ec7b(0x1f9)](join,_0xa0344e,_0x355f45),_0x503411=await stat(_0x153f62);_0x503411['isDirectory']()&&(_0xf601e5[_0x43ec7b(0x202)](_0x355f45),_0x1d10d9[_0x355f45]=_0x31f728[_0x43ec7b(0x1fd)]);}}const _0xeca460=join(_0x6ffac8,'ci');if(existsSync(_0xeca460)){const _0x93ffb3=await _0x31f728[_0x43ec7b(0x204)](readdir,_0xeca460);for(const _0x16aa1e of _0x93ffb3){const _0x4fb19a=_0x31f728[_0x43ec7b(0x20c)](join,_0xeca460,_0x16aa1e),_0x35a2c7=await stat(_0x4fb19a);_0x35a2c7[_0x43ec7b(0x201)]()&&(_0xf601e5['push'](_0x16aa1e),_0x1d10d9[_0x16aa1e]='ci');}}const _0x3024af=await readdir(_0x6ffac8);for(const _0xa6d04c of _0x3024af){if(NON_ENV_DIRS[_0x43ec7b(0x1f1)](_0xa6d04c))continue;if(_0xa6d04c[_0x43ec7b(0x1f6)]('.'))continue;if(_0xa6d04c[_0x43ec7b(0x1f3)](_0x31f728[_0x43ec7b(0x1fe)]))continue;const _0x5d93e9=join(_0x6ffac8,_0xa6d04c),_0x5a49bc=await stat(_0x5d93e9);_0x5a49bc[_0x43ec7b(0x201)]()&&existsSync(_0x31f728[_0x43ec7b(0x20a)](join,_0x5d93e9,_0x31f728[_0x43ec7b(0x1f0)]))&&(!_0xf601e5[_0x43ec7b(0x1f1)](_0xa6d04c)&&(_0xf601e5['push'](_0xa6d04c),_0x1d10d9[_0xa6d04c]=_0x31f728[_0x43ec7b(0x210)]));}return{'envNames':_0xf601e5,'activeEnv':_0x41d223,'envTypes':_0x1d10d9};}export async function envList(){const _0xaa8f45=_0x1c50a6,_0x2e5183={'PCLDB':function(_0x47ae56){return _0x47ae56();},'dXibv':function(_0xb2c23a,_0x400dec){return _0xb2c23a instanceof _0x400dec;},'CjgLB':function(_0x4d9d7d,_0x3e1399){return _0x4d9d7d===_0x3e1399;},'mxtXl':'\x0aNo\x20profiles\x20found.','sHqgw':function(_0x25e939,_0x1a04fa){return _0x25e939>_0x1a04fa;},'OtJFw':_0xaa8f45(0x213),'ZYNde':function(_0x16ffc4,_0x1df53c){return _0x16ffc4(_0x1df53c);},'tNlOO':function(_0x2c4458,_0x4f005b){return _0x2c4458===_0x4f005b;},'NtnZP':'legacy','ENnCv':function(_0x1ed509,_0x4938be){return _0x1ed509>_0x4938be;},'JqgLp':_0xaa8f45(0x219)},{envNames:_0x3a5d3b,activeEnv:_0x4e73b5,envTypes:_0x21f8e3}=await getEnvNames();let _0x374a47=[];const _0x4a2088=await getToken();if(_0x4a2088)try{_0x374a47=await _0x2e5183['PCLDB'](listCloudProfiles);}catch(_0x2185c1){console[_0xaa8f45(0x1e8)]('\x0aWarning:\x20could\x20not\x20fetch\x20cloud\x20profiles:\x20'+(_0x2e5183[_0xaa8f45(0x218)](_0x2185c1,Error)?_0x2185c1[_0xaa8f45(0x1e7)]:String(_0x2185c1)));}if(_0x2e5183['CjgLB'](_0x3a5d3b[_0xaa8f45(0x1fb)],0x0)&&_0x374a47['length']===0x0){console[_0xaa8f45(0x214)](_0x2e5183[_0xaa8f45(0x211)]),console['log'](_0xaa8f45(0x1ec));return;}const _0x19366a=new Set(_0x374a47[_0xaa8f45(0x217)](_0x283e33=>_0x283e33[_0xaa8f45(0x1eb)]));if(_0x2e5183['sHqgw'](_0x3a5d3b['length'],0x0)){console['log']('\x0aLocal\x20Profiles\x20(legacy):');for(const _0x46c9f8 of _0x3a5d3b[_0xaa8f45(0x1f4)]()){const _0x4ff344=_0x46c9f8===_0x4e73b5&&!_0x19366a[_0xaa8f45(0x1ff)](_0x46c9f8),_0x22acc1=_0x21f8e3[_0x46c9f8]||_0x2e5183['OtJFw'],_0x382861=await _0x2e5183[_0xaa8f45(0x1fa)](loadSettings,_0x46c9f8),_0x45834d=_0x2e5183[_0xaa8f45(0x215)](_0x22acc1,_0x2e5183['NtnZP'])?'':'\x20['+_0x22acc1+']';console['log']('\x20\x20'+(_0x4ff344?'*\x20':'\x20\x20')+_0x46c9f8+_0x45834d),_0x382861[_0xaa8f45(0x1e9)]&&console[_0xaa8f45(0x214)]('\x20\x20\x20\x20\x20\x20URL:\x20'+_0x382861['baseUrl']),_0x382861[_0xaa8f45(0x208)]&&console[_0xaa8f45(0x214)](_0xaa8f45(0x216)+_0x382861['environmentDetails']);}}if(_0x2e5183['ENnCv'](_0x374a47[_0xaa8f45(0x1fb)],0x0)){console['log'](_0xaa8f45(0x1ea));for(const _0x1460c5 of _0x374a47['sort']((_0x3b50d8,_0x4ebc1a)=>_0x3b50d8[_0xaa8f45(0x1eb)][_0xaa8f45(0x203)](_0x4ebc1a[_0xaa8f45(0x1eb)]))){const _0x530182=_0x2e5183[_0xaa8f45(0x20f)](_0x1460c5['name'],_0x4e73b5),_0x2c1622=_0x1460c5['environmentKey']?'\x20('+_0x1460c5[_0xaa8f45(0x200)]+')':'',_0x4a64b1=_0x1460c5['sessionUpdatedAt']?_0xaa8f45(0x1f5)+_0x1460c5['sessionUpdatedAt']+')':_0x2e5183['JqgLp'];console[_0xaa8f45(0x214)]('\x20\x20'+(_0x530182?'*\x20':'\x20\x20')+_0x1460c5[_0xaa8f45(0x1eb)]+_0xaa8f45(0x1f2)+_0x2c1622),console[_0xaa8f45(0x214)](_0xaa8f45(0x1f8)+_0x4a64b1);}}_0x4e73b5&&console[_0xaa8f45(0x214)]('\x0a*\x20=\x20active\x20profile');}
1
+ const _0x3cc22a=_0x2551;(function(_0x578209,_0x456f88){const _0x2dd092=_0x2551,_0x28ba0c=_0x578209();while(!![]){try{const _0x1455ff=-parseInt(_0x2dd092(0x1da))/0x1*(parseInt(_0x2dd092(0x1b6))/0x2)+parseInt(_0x2dd092(0x1e0))/0x3+-parseInt(_0x2dd092(0x1c3))/0x4*(parseInt(_0x2dd092(0x1e1))/0x5)+parseInt(_0x2dd092(0x1d7))/0x6*(parseInt(_0x2dd092(0x1c7))/0x7)+-parseInt(_0x2dd092(0x1dd))/0x8+-parseInt(_0x2dd092(0x1d1))/0x9*(parseInt(_0x2dd092(0x1d0))/0xa)+parseInt(_0x2dd092(0x1d6))/0xb;if(_0x1455ff===_0x456f88)break;else _0x28ba0c['push'](_0x28ba0c['shift']());}catch(_0x531200){_0x28ba0c['push'](_0x28ba0c['shift']());}}}(_0x1f1b,0x48e75));import{readdir,stat}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';function _0x1f1b(){const _0x33df49=['environmentDetails','sort','167960VXnPFV','171rvaJSS','EBkyA','Run:\x20ranger\x20profile\x20add\x20<profile-name>','tuIrS','sessionUpdatedAt','5039804BbueyZ','9552Fpfnfc','hqjFx','\x20\x20\x20\x20\x20\x20URL:\x20','3pCwmbg','TCjoV','settings.json','272760RuDwhG','.txt','error','1279815RQAzhJ','380vMgEaQ','NnSNa','INZdB','includes','PBFoZ','localeCompare','148494BjiFih','startsWith','name','\x0aNo\x20profiles\x20found.','TqwzR','qQadt','\x20\x20\x20\x20\x20\x20Session:\x20','legacy','baseUrl','map','cQAEz','endsWith','EzBpY','11932PCsYId','\x0a*\x20=\x20active\x20profile','isDirectory','\x20\x20\x20\x20\x20\x20Details:\x20','952ugTbYk','log','VIAlU','XJnUq','length','local','sessions'];_0x1f1b=function(){return _0x33df49;};return _0x1f1b();}import{readActiveProfileName}from'./utils/activeProfile.js';import{getToken}from'./utils/keychain.js';import{listCloudProfiles}from'./utils/cloudProfile.js';function _0x2551(_0x2b60f5,_0x43654d){_0x2b60f5=_0x2b60f5-0x1b4;const _0x1f1be6=_0x1f1b();let _0x25517b=_0x1f1be6[_0x2b60f5];return _0x25517b;}const NON_ENV_DIRS=[_0x3cc22a(0x1cd),'bug-bashes','reports','local','ci'];export async function getEnvNames(){const _0x537d5c=_0x3cc22a,_0x20b8fe={'INZdB':function(_0x1888c5,_0x3e163f,_0x1559ad){return _0x1888c5(_0x3e163f,_0x1559ad);},'EBkyA':function(_0x504df5,_0x3ce567){return _0x504df5(_0x3ce567);},'TqwzR':function(_0x25af78,_0x245525,_0x1241d7){return _0x25af78(_0x245525,_0x1241d7);},'cQAEz':function(_0x4906e7,_0x454021){return _0x4906e7(_0x454021);},'ORMmH':function(_0x2f5d01,_0x2a5e23,_0x42e558){return _0x2f5d01(_0x2a5e23,_0x42e558);},'exQCM':_0x537d5c(0x1dc),'NnSNa':_0x537d5c(0x1bd)},_0x5bc8a4=getRangerDir();if(!existsSync(_0x5bc8a4))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x34fb5c=await readActiveProfileName(),_0x22ad01=[],_0x1bd8ca={},_0x1d843f=_0x20b8fe[_0x537d5c(0x1e3)](join,_0x5bc8a4,_0x537d5c(0x1cc));if(_0x20b8fe[_0x537d5c(0x1d2)](existsSync,_0x1d843f)){const _0x2370a8=await _0x20b8fe['EBkyA'](readdir,_0x1d843f);for(const _0x1b0036 of _0x2370a8){const _0x557be7=_0x20b8fe[_0x537d5c(0x1ba)](join,_0x1d843f,_0x1b0036),_0x810608=await stat(_0x557be7);_0x810608['isDirectory']()&&(_0x22ad01['push'](_0x1b0036),_0x1bd8ca[_0x1b0036]='local');}}const _0x1cd298=join(_0x5bc8a4,'ci');if(existsSync(_0x1cd298)){const _0x396616=await _0x20b8fe['EBkyA'](readdir,_0x1cd298);for(const _0x42b874 of _0x396616){const _0x1d1a88=_0x20b8fe['TqwzR'](join,_0x1cd298,_0x42b874),_0x3ba80f=await stat(_0x1d1a88);_0x3ba80f['isDirectory']()&&(_0x22ad01['push'](_0x42b874),_0x1bd8ca[_0x42b874]='ci');}}const _0x36e2d1=await _0x20b8fe['EBkyA'](readdir,_0x5bc8a4);for(const _0x43e120 of _0x36e2d1){if(NON_ENV_DIRS[_0x537d5c(0x1e4)](_0x43e120))continue;if(_0x43e120[_0x537d5c(0x1b7)]('.'))continue;if(_0x43e120[_0x537d5c(0x1c1)](_0x537d5c(0x1de)))continue;const _0x2a7d63=join(_0x5bc8a4,_0x43e120),_0xfe07d0=await _0x20b8fe[_0x537d5c(0x1c0)](stat,_0x2a7d63);_0xfe07d0[_0x537d5c(0x1c5)]()&&_0x20b8fe['EBkyA'](existsSync,_0x20b8fe['ORMmH'](join,_0x2a7d63,_0x20b8fe['exQCM']))&&(!_0x22ad01[_0x537d5c(0x1e4)](_0x43e120)&&(_0x22ad01['push'](_0x43e120),_0x1bd8ca[_0x43e120]=_0x20b8fe[_0x537d5c(0x1e2)]));}return{'envNames':_0x22ad01,'activeEnv':_0x34fb5c,'envTypes':_0x1bd8ca};}export async function envList(){const _0x5a75a4=_0x3cc22a,_0x31c938={'EzBpY':function(_0x540ad3){return _0x540ad3();},'ssQGD':function(_0x44b20c,_0xb721e4){return _0x44b20c instanceof _0xb721e4;},'qQadt':function(_0x52f2fd,_0x2ae78b){return _0x52f2fd(_0x2ae78b);},'tuIrS':function(_0x54d6a8,_0x5e2699){return _0x54d6a8===_0x5e2699;},'EZZtU':_0x5a75a4(0x1b9),'hqjFx':_0x5a75a4(0x1d3),'TCjoV':function(_0x1d6df6,_0x4026ec){return _0x1d6df6===_0x4026ec;},'PBFoZ':'local','VIAlU':_0x5a75a4(0x1bd),'XhnVF':function(_0x6c331e,_0x2135cb){return _0x6c331e>_0x2135cb;},'XJnUq':'no\x20session'},{envNames:_0x263fb4,activeEnv:_0xff2355,envTypes:_0x552eb4}=await getEnvNames();let _0x1742f0=[];const _0x82bdfb=await _0x31c938[_0x5a75a4(0x1c2)](getToken);if(_0x82bdfb)try{_0x1742f0=await listCloudProfiles();}catch(_0x3c6994){console[_0x5a75a4(0x1df)]('\x0aWarning:\x20could\x20not\x20fetch\x20cloud\x20profiles:\x20'+(_0x31c938['ssQGD'](_0x3c6994,Error)?_0x3c6994['message']:_0x31c938['qQadt'](String,_0x3c6994)));}if(_0x263fb4[_0x5a75a4(0x1cb)]===0x0&&_0x31c938[_0x5a75a4(0x1d4)](_0x1742f0['length'],0x0)){console['log'](_0x31c938['EZZtU']),console['log'](_0x31c938[_0x5a75a4(0x1d8)]);return;}const _0x4e03b3=new Set(_0x1742f0[_0x5a75a4(0x1bf)](_0x14a05f=>_0x14a05f['name']));if(_0x263fb4['length']>0x0){console[_0x5a75a4(0x1c8)]('\x0aLocal\x20Profiles\x20(legacy):');for(const _0x5949d8 of _0x263fb4[_0x5a75a4(0x1cf)]()){const _0x55669d=_0x31c938[_0x5a75a4(0x1db)](_0x5949d8,_0xff2355)&&!_0x4e03b3['has'](_0x5949d8),_0x14000e=_0x552eb4[_0x5949d8]||_0x31c938[_0x5a75a4(0x1b4)],_0x1729a7=await _0x31c938[_0x5a75a4(0x1bb)](loadSettings,_0x5949d8),_0x5903ce=_0x31c938[_0x5a75a4(0x1db)](_0x14000e,_0x31c938[_0x5a75a4(0x1c9)])?'':'\x20['+_0x14000e+']';console[_0x5a75a4(0x1c8)]('\x20\x20'+(_0x55669d?'*\x20':'\x20\x20')+_0x5949d8+_0x5903ce),_0x1729a7['baseUrl']&&console[_0x5a75a4(0x1c8)](_0x5a75a4(0x1d9)+_0x1729a7[_0x5a75a4(0x1be)]),_0x1729a7['environmentDetails']&&console[_0x5a75a4(0x1c8)](_0x5a75a4(0x1c6)+_0x1729a7[_0x5a75a4(0x1ce)]);}}if(_0x31c938['XhnVF'](_0x1742f0[_0x5a75a4(0x1cb)],0x0)){console[_0x5a75a4(0x1c8)]('\x0aCloud\x20Profiles:');for(const _0x273356 of _0x1742f0['sort']((_0x407ea6,_0x50e3a4)=>_0x407ea6['name'][_0x5a75a4(0x1b5)](_0x50e3a4[_0x5a75a4(0x1b8)]))){const _0x11baaa=_0x273356['name']===_0xff2355,_0x171895=_0x273356['environmentKey']?'\x20('+_0x273356['environmentKey']+')':'',_0x48e219=_0x273356[_0x5a75a4(0x1d5)]?'cached\x20(updated\x20'+_0x273356['sessionUpdatedAt']+')':_0x31c938[_0x5a75a4(0x1ca)];console[_0x5a75a4(0x1c8)]('\x20\x20'+(_0x11baaa?'*\x20':'\x20\x20')+_0x273356['name']+'\x20[cloud]'+_0x171895),console[_0x5a75a4(0x1c8)](_0x5a75a4(0x1bc)+_0x48e219);}}_0xff2355&&console[_0x5a75a4(0x1c8)](_0x5a75a4(0x1c4));}