@ranger-testing/ranger-cli 3.1.3 → 3.1.4-alpha.96fdd81-47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/deleteProfile.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/novaActCli.js +1 -1
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/organizationEnvApi.js +1 -1
  60. package/build/commands/utils/playwrightCli.js +1 -1
  61. package/build/commands/utils/profileMessages.js +1 -1
  62. package/build/commands/utils/profileSetupBanner.js +1 -1
  63. package/build/commands/utils/projectsConfig.js +1 -1
  64. package/build/commands/utils/rangerConfig.js +1 -1
  65. package/build/commands/utils/rangerRoot.js +1 -1
  66. package/build/commands/utils/rangerwrightCli.js +1 -1
  67. package/build/commands/utils/resolveProfileContext.js +1 -1
  68. package/build/commands/utils/resolveProfileUrl.js +1 -1
  69. package/build/commands/utils/retry.js +1 -1
  70. package/build/commands/utils/scenarioOriginCheck.js +1 -0
  71. package/build/commands/utils/sessionCache.js +1 -1
  72. package/build/commands/utils/settings.js +1 -1
  73. package/build/commands/utils/skillContent.js +1 -1
  74. package/build/commands/utils/skills.js +1 -1
  75. package/build/commands/utils/stitchWebmFiles.js +1 -1
  76. package/build/commands/utils/telemetry.js +1 -1
  77. package/build/commands/utils/tokenRefresh.js +1 -1
  78. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  79. package/build/commands/utils/tunnelClient.js +1 -1
  80. package/build/commands/utils/userApi.js +1 -1
  81. package/build/commands/utils/version.js +1 -1
  82. package/build/commands/verifyFeature.js +1 -1
  83. package/build/commands/verifyFeatureCli.js +1 -1
  84. package/build/commands/verifyFeatureNovaCli.js +1 -1
  85. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  86. package/package.json +2 -1
@@ -1 +1 @@
1
- function _0x2039(){const _0x16a4fa=['list','kITMq','\x27\x20created\x20(no\x20session).\x0a','dhYar','retry','environments','length','startsWith','setupHeaders','profile.add.autoRouted','NUANO','\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','\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','LhmXK','eoAHL','NODE_TLS_REJECT_UNAUTHORIZED','tEFHF','cdpEndpoint','\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20','\x20\x20To\x20get\x20automated\x20login\x20set\x20up\x20for\x20your\x20team\x20(a\x20one-time\x20call):\x20eng@ranger.net\x0a','TSLfc','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20','kMpQz','CHOZr','What\x20would\x20you\x20like\x20to\x20do?','Syftg','lNUzK','2724575YgGDmS','\x0a\x20\x20(domains:\x20','\x20--skip-auth\x0a','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','CktQu','2772080dtxoTH','RgzGI','\x0a\x20\x20No\x20auth\x20env\x20matches\x20','\x27\x20created.\x0a','4656216ixLZbl','RYTPs','\x20—\x20not\x20removing.\x20Delete\x20manually\x20if\x20you\x20want\x20it\x20gone.','7843608fpHPvk','knQLP','error','confirm','log','\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','indexOf','fOmfz','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','udcIp','IpGGw','join','includes','isTTY','capture','slice','domains','YYZZS','BjsFA','gZxho','uIdKY','\x20\x20Workaround\x20for\x20now:\x20create\x20a\x20profile\x20without\x20a\x20captured\x20session\x20and\x20supply\x20one\x20later:\x0a','ogQOY','Continue\x20anyway','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','7OLmfqd','eyqYx','name','`\x20again\x20without\x20--skip-auth.','trackPhaseEnd','ycUIr','nuoMh','\x20\x20Note:\x20found\x20git-tracked\x20local\x20profile\x20at\x20','BAKXD','message','Enter\x20a\x20different\x20URL','Could\x20not\x20reach\x20','\x20\x20Next:\x20ranger\x20go\x20--profile\x20','env','ovvlZ','GVIid','fetch\x20failed','\x20\x20Ranger\x20will\x20use\x20it\x20to\x20look\x20up\x20the\x20right\x20cloud\x20auth\x20env\x20to\x20attach.\x0a','prompt','yRbds','\x0a\x20\x20Still\x20could\x20not\x20reach\x20','cwd','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','GZKVP','1132944YCRfod','status','yyTrO','\x20\x20or\x20contact\x20eng@ranger.net\x20to\x20set\x20up\x20automated\x20login\x20for\x20your\x20team.','bnZaR','\x0a\x20\x20A\x20profile\x20named\x20\x22','signal','\x0a🌐\x20Profile\x20Setup\x0a','url','stdout','Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team.\x20Capture\x20a\x20session\x20via\x20a\x20headed\x20browser\x20instead?','baseUrl','\x20--url\x20','1180998rKGbxl','\x20\x20Note:\x20cloud\x20profile\x20created,\x20but\x20failed\x20to\x20sweep\x20orphan\x20local\x20dirs\x20(','test','rVtpA','manual','\x20\x20Set\x20active\x20profile:\x20','\x27\x20to\x20the\x20cloud?','\x20(continuing\x20with\x20--force)','678897NiGOAQ','VURfN','keys','use_suggestion','action','continue','HEAD','.\x20Configured\x20envs:\x20','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','\x20\x20When\x20you\x27re\x20ready\x20to\x20log\x20in,\x20run\x20`ranger\x20profile\x20add\x20','exit','gFVed','skipAuth','6KvIcSs','bcuDB','setupHeader','What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','To\x20set\x20up\x20a\x20profile,\x20run:\x0a'];_0x2039=function(){return _0x16a4fa;};return _0x2039();}(function(_0x126a57,_0x5e2f22){const _0x3f7bf3=_0x41c2,_0x3607f8=_0x126a57();while(!![]){try{const _0x18b904=parseInt(_0x3f7bf3(0xe0))/0x1+-parseInt(_0x3f7bf3(0xcb))/0x2+parseInt(_0x3f7bf3(0xd8))/0x3+parseInt(_0x3f7bf3(0x112))/0x4+-parseInt(_0x3f7bf3(0x10d))/0x5*(parseInt(_0x3f7bf3(0xed))/0x6)+-parseInt(_0x3f7bf3(0xb3))/0x7*(-parseInt(_0x3f7bf3(0x116))/0x8)+-parseInt(_0x3f7bf3(0x119))/0x9;if(_0x18b904===_0x5e2f22)break;else _0x3607f8['push'](_0x3607f8['shift']());}catch(_0x4450e2){_0x3607f8['push'](_0x3607f8['shift']());}}}(_0x2039,0x590a7));import{readdir,rm}from'fs/promises';import{join}from'path';import{existsSync}from'fs';function _0x41c2(_0x1d7877,_0x491db5){_0x1d7877=_0x1d7877-0x9e;const _0x203993=_0x2039();let _0x41c2c1=_0x203993[_0x1d7877];return _0x41c2c1;}import _0x5eb420 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';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 _0x475300=_0x41c2;if(!process[_0x475300(0xd4)][_0x475300(0xa7)])return;console['warn'](CLOUD_PROFILE_SHARING_WARNING);}async function checkUrlReachability(_0x3a4816){const _0x37b5cc=_0x41c2,_0x2d620d={'LhmXK':function(_0x20436b,_0x143b58,_0x2e1137){return _0x20436b(_0x143b58,_0x2e1137);},'tEFHF':_0x37b5cc(0xe6),'wSKRN':'Invalid\x20URL','CHOZr':function(_0x115f1e,_0x53cb97){return _0x115f1e===_0x53cb97;},'gZxho':'TypeError','ovvlZ':_0x37b5cc(0xc3)};try{const _0x4ad933=new AbortController(),_0x1264df=_0x2d620d[_0x37b5cc(0xff)](setTimeout,()=>_0x4ad933['abort'](),0x1388),_0x264a07={'method':_0x2d620d[_0x37b5cc(0x102)],'signal':_0x4ad933[_0x37b5cc(0xd1)],'redirect':_0x37b5cc(0xdc)};/^https:\/\/localhost(:\d+)?/i['test'](_0x3a4816)&&(process[_0x37b5cc(0xc0)][_0x37b5cc(0x101)]='0');const _0x33b50a=await fetch(_0x3a4816,_0x264a07);delete process[_0x37b5cc(0xc0)]['NODE_TLS_REJECT_UNAUTHORIZED'],clearTimeout(_0x1264df);if(_0x33b50a[_0x37b5cc(0xcc)]<0x190)return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x33b50a['status']};}catch(_0x58ee59){delete process['env'][_0x37b5cc(0x101)];const _0x4c1638=_0x58ee59,_0x5b16fc=_0x4c1638[_0x37b5cc(0xbc)]||String(_0x58ee59),_0x5e7163=_0x5b16fc['includes'](_0x2d620d['wSKRN'])||_0x2d620d[_0x37b5cc(0x109)](_0x4c1638[_0x37b5cc(0xb5)],_0x2d620d[_0x37b5cc(0xad)])||_0x5b16fc[_0x37b5cc(0xa6)](_0x2d620d[_0x37b5cc(0xc1)]);return{'ok':![],'error':_0x5b16fc,'isProtocolError':_0x5e7163};}}async function sweepOrphanLocalProfile(_0x2344f9,_0x52fc81,_0x87f39b){const _0x3535d2=_0x41c2,_0x139d6e={'kITMq':function(_0x3d08c0,_0xe69f83,_0x1e1468){return _0x3d08c0(_0xe69f83,_0x1e1468);},'eyqYx':function(_0x3a730a,_0x3f1072,_0x1a5d2e){return _0x3a730a(_0x3f1072,_0x1a5d2e);},'nuoMh':function(_0x146124,_0x2337ad){return _0x146124(_0x2337ad);},'yRbds':function(_0x38bd42,_0x1169e5,_0x505dd0){return _0x38bd42(_0x1169e5,_0x505dd0);}},_0x4d4aaf=_0x139d6e[_0x3535d2(0xf3)](join,_0x52fc81,'local'),_0x5565d6=_0x139d6e[_0x3535d2(0xb4)](join,_0x4d4aaf,_0x2344f9);_0x139d6e[_0x3535d2(0xb9)](existsSync,_0x5565d6)&&(_0x87f39b&&await _0x139d6e[_0x3535d2(0xb9)](isPathGitTracked,_0x5565d6)?console[_0x3535d2(0x9e)](_0x3535d2(0xba)+_0x5565d6+_0x3535d2(0x118)):(await rm(_0x5565d6,{'recursive':!![],'force':!![]}),console['log'](_0x3535d2(0x104)+_0x5565d6)));if(_0x139d6e['nuoMh'](existsSync,_0x4d4aaf)){let _0xfb97b8=[];try{_0xfb97b8=await _0x139d6e[_0x3535d2(0xb9)](readdir,_0x4d4aaf);}catch{return;}const _0x4609ff='.tmp-'+_0x2344f9+'-';for(const _0x33ebb1 of _0xfb97b8){if(!_0x33ebb1[_0x3535d2(0xf9)](_0x4609ff))continue;const _0x3158fd=_0x139d6e['yRbds'](join,_0x4d4aaf,_0x33ebb1);await _0x139d6e[_0x3535d2(0xc6)](rm,_0x3158fd,{'recursive':!![],'force':!![]}),console[_0x3535d2(0x9e)](_0x3535d2(0x104)+_0x3158fd);}}}async function sweepOrphansBestEffort(_0x30f7c1){const _0x5c0e50=_0x41c2,_0x213e0d={'RgzGI':function(_0x8f8e2){return _0x8f8e2();}};try{await sweepOrphanLocalProfile(_0x30f7c1,getRangerHomeDir(),![]);const _0x3a0de4=getRangerDir();_0x3a0de4!==_0x213e0d[_0x5c0e50(0x113)](getRangerHomeDir)&&await sweepOrphanLocalProfile(_0x30f7c1,_0x3a0de4,!![]);}catch(_0x52d433){console['log'](_0x5c0e50(0xd9)+(_0x52d433 instanceof Error?_0x52d433['message']:String(_0x52d433))+').');}}async function markActive(_0x5858e6){const _0x2d6dbd=_0x41c2,_0xd2c9fa={'yZUre':function(_0x94bab8,_0xe6c78d){return _0x94bab8(_0xe6c78d);},'bRsXG':_0x2d6dbd(0x110)};try{await _0xd2c9fa['yZUre'](writeActiveProfileName,_0x5858e6),console['log'](_0x2d6dbd(0xdd)+_0x5858e6);}catch{console['log'](_0xd2c9fa['bRsXG']);}}async function tryAutoRouteCloudProfile(_0x3e611a,_0x4c4786,_0x2ceac2,_0x4e5553,_0x406845){const _0x3c094c=_0x41c2,_0x152008={'rVtpA':function(_0x4490b0,_0x342187){return _0x4490b0===_0x342187;},'RVPAs':'profile.add.autoRouteSkipped','YYZZS':'no_auth_config','VURfN':function(_0x22af16,_0x4e4817){return _0x22af16(_0x4e4817);},'cuuuM':function(_0x402bac,_0xf8192b){return _0x402bac+_0xf8192b;},'gYjhx':function(_0x5d2a29,_0x546fcf){return _0x5d2a29+_0x546fcf;},'GVIid':_0x3c094c(0xfe),'cUuev':_0x3c094c(0xaf),'xlgQR':function(_0x459920,_0x19397f,_0x721211){return _0x459920(_0x19397f,_0x721211);},'uCVOA':'saveToCloud','NUANO':'user_declined','ubNJU':'\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20cloud-managed\x20session.','Syftg':function(_0x59128b,_0xa10a9d,_0x7043e7,_0x4a55b2){return _0x59128b(_0xa10a9d,_0x7043e7,_0x4a55b2);},'ycUIr':_0x3c094c(0xfb)};let _0x29c1a2;try{_0x29c1a2=await fetchAuthConfig();}catch(_0x287e35){return _0x406845?.[_0x3c094c(0xb7)](_0x152008['RVPAs'],{'reason':_0x152008[_0x3c094c(0xab)],'profileName':_0x3e611a}),console[_0x3c094c(0x11b)]('\x0a\x20\x20Could\x20not\x20fetch\x20this\x20org\x27s\x20auth\x20config:\x20'+(_0x287e35 instanceof Error?_0x287e35[_0x3c094c(0xbc)]:_0x152008[_0x3c094c(0xe1)](String,_0x287e35))),![];}if(!_0x29c1a2||!_0x29c1a2[_0x3c094c(0xf7)]||Object['keys'](_0x29c1a2[_0x3c094c(0xf7)])['length']===0x0){if(_0x4e5553)return await captureEnvLessProfile(_0x3e611a,_0x4c4786,_0x2ceac2,_0x406845);return _0x406845?.['trackPhaseEnd'](_0x152008['RVPAs'],{'reason':_0x152008[_0x3c094c(0xab)],'profileName':_0x3e611a}),console[_0x3c094c(0x11b)](_0x152008['cuuuM'](_0x152008['cuuuM'](_0x152008['gYjhx'](_0x152008[_0x3c094c(0xc2)]+'\x0a'+_0x152008['cUuev'],'\x20\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20'+_0x3e611a+_0x3c094c(0xd7)+_0x4c4786+_0x3c094c(0x10f))+'\x0a',_0x3c094c(0x105)),'\x20\x20Details:\x20https://docs.ranger.net/main/concepts/profiles#automated-login')),![];}const _0x5cccad=_0x152008['xlgQR'](matchAuthEnvironment,_0x4c4786,_0x29c1a2);if(!_0x5cccad)return _0x406845?.[_0x3c094c(0xb7)]('profile.add.autoRouteSkipped',{'reason':'no_match','profileName':_0x3e611a}),console['error'](_0x3c094c(0x114)+_0x4c4786+_0x3c094c(0xe7)+Object[_0x3c094c(0xe2)](_0x29c1a2[_0x3c094c(0xf7)])[_0x3c094c(0xa5)](',\x20')+'.'),![];const _0x462a40=_0x29c1a2[_0x3c094c(0xf7)][_0x5cccad],_0x15158c=_0x462a40?.[_0x3c094c(0xaa)]??[];if(_0x4e5553&&!_0x2ceac2['yes']){const {saveToCloud:_0x2cfe15}=await _0x5eb420['prompt']([{'type':_0x3c094c(0x11c),'name':_0x152008['uCVOA'],'message':'Found\x20auth\x20environment\x20\x27'+_0x5cccad+'\x27\x20matching\x20'+_0x4c4786+_0x3c094c(0x10e)+_0x15158c['join'](',\x20')+')\x0a\x20\x20Save\x20\x27'+_0x3e611a+_0x3c094c(0xde),'default':!![]}]);if(!_0x2cfe15)return _0x406845?.['trackPhaseEnd'](_0x152008['RVPAs'],{'reason':_0x152008[_0x3c094c(0xfc)],'profileName':_0x3e611a}),console[_0x3c094c(0x11b)](_0x152008['ubNJU']),![];}const _0x51f890=_0x15158c['some'](_0x442af3=>{const _0x5d1bad=_0x3c094c;try{return _0x152008[_0x5d1bad(0xdb)](new URL(_0x442af3)['origin'],new URL(_0x4c4786)['origin']);}catch{return![];}}),_0x389658={};!_0x51f890&&(_0x389658[_0x3c094c(0xd6)]=_0x4c4786);try{await _0x152008[_0x3c094c(0x10b)](createCloudProfile,_0x3e611a,_0x5cccad,{'settings':_0x389658}),warnCloudProfileSharedInOrg();}catch(_0x82d916){if(_0x82d916 instanceof ApiError&&_0x82d916[_0x3c094c(0xcc)]===0x199){console['error'](_0x152008['gYjhx'](_0x3c094c(0xd0)+_0x3e611a+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a',_0x3c094c(0x107)+_0x3e611a));throw _0x82d916;}throw _0x82d916;}return console[_0x3c094c(0x9e)]('✓\x20Profile\x20\x27'+_0x3e611a+_0x3c094c(0x115)+(_0x3c094c(0xbf)+_0x3e611a)),await sweepOrphansBestEffort(_0x3e611a),_0x406845?.['trackPhaseEnd'](_0x152008[_0x3c094c(0xb8)],{'envKey':_0x5cccad,'profileName':_0x3e611a}),!![];}async function createUnconfiguredCloudProfile(_0x2a6e41,_0x3f06a8){const _0x323a4c=_0x41c2,_0x55c9c3={'kYrew':function(_0x170503,_0x366237,_0x479f2d,_0x4b5a98){return _0x170503(_0x366237,_0x479f2d,_0x4b5a98);}};try{await _0x55c9c3['kYrew'](createCloudProfile,_0x2a6e41,undefined,{'settings':_0x3f06a8}),warnCloudProfileSharedInOrg();}catch(_0x251a41){_0x251a41 instanceof ApiError&&_0x251a41[_0x323a4c(0xcc)]===0x199&&console[_0x323a4c(0x11b)]('\x0a\x20\x20A\x20profile\x20named\x20\x22'+_0x2a6e41+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a'+('\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x2a6e41));throw _0x251a41;}}async function captureEnvLessProfile(_0x4baf6d,_0x42cde5,_0x4cbeeb,_0x2171b4){const _0x3145c0=_0x41c2,_0x56985d={'kMpQz':_0x3145c0(0x11c),'FTXtP':_0x3145c0(0xd5),'pBTlt':'profile.add.autoRouteSkipped','PcAWx':function(_0x5cec01,_0x48a5a5){return _0x5cec01+_0x48a5a5;},'TSLfc':function(_0x4fec05,_0x4b3d5c){return _0x4fec05===_0x4b3d5c;},'udcIp':function(_0x17d052,_0x2aad13){return _0x17d052>_0x2aad13;},'OqJlX':function(_0x325256,_0x434aef,_0x47c96e,_0x100ad6){return _0x325256(_0x434aef,_0x47c96e,_0x100ad6);},'dhYar':function(_0xd3f84c){return _0xd3f84c();},'Torlf':function(_0x31de24,_0x55e7e7){return _0x31de24 instanceof _0x55e7e7;},'rVdul':function(_0x5c21b2,_0x54882f){return _0x5c21b2+_0x54882f;}};if(!_0x4cbeeb['yes']){const {capture:_0x539589}=await _0x5eb420['prompt']([{'type':_0x56985d[_0x3145c0(0x108)],'name':_0x3145c0(0xa8),'message':_0x56985d['FTXtP'],'default':!![]}]);if(!_0x539589)return _0x2171b4?.[_0x3145c0(0xb7)](_0x56985d['pBTlt'],{'reason':'user_declined','profileName':_0x4baf6d}),console['error'](_0x56985d['PcAWx']('\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20session,\x0a',_0x3145c0(0xce))),![];}const _0x30e4d7={};if(_0x4cbeeb[_0x3145c0(0xef)])for(const _0x480220 of _0x4cbeeb['setupHeader']){const _0x3af1a2=_0x480220[_0x3145c0(0xa0)](':');if(_0x56985d[_0x3145c0(0x106)](_0x3af1a2,-0x1))continue;_0x30e4d7[_0x480220['slice'](0x0,_0x3af1a2)['trim']()]=_0x480220[_0x3145c0(0xa9)](_0x56985d['PcAWx'](_0x3af1a2,0x1))['trim']();}const _0x2174e6={'baseUrl':_0x42cde5};_0x56985d[_0x3145c0(0xa3)](Object[_0x3145c0(0xe2)](_0x30e4d7)[_0x3145c0(0xf8)],0x0)&&(_0x2174e6['setupHeaders']=_0x30e4d7);let _0x4899b3;try{_0x4899b3=await _0x56985d['OqJlX'](createCloudProfile,_0x4baf6d,undefined,{'settings':_0x2174e6}),_0x56985d[_0x3145c0(0xf5)](warnCloudProfileSharedInOrg);}catch(_0x26895){_0x56985d['Torlf'](_0x26895,ApiError)&&_0x26895['status']===0x199&&console['error'](_0x3145c0(0xd0)+_0x4baf6d+_0x3145c0(0xfd)+('\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x4baf6d));throw _0x26895;}return await manualBrowserLogin(_0x4899b3,{'key':'','domains':[_0x42cde5],'setupHeaders':Object['keys'](_0x30e4d7)[_0x3145c0(0xf8)]>0x0?_0x30e4d7:undefined}),console[_0x3145c0(0x9e)](_0x56985d['rVdul']('\x0a✓\x20Profile\x20\x27'+_0x4baf6d+'\x27\x20created\x20with\x20a\x20captured\x20session.\x0a','\x20\x20Next:\x20ranger\x20go\x20--profile\x20'+_0x4baf6d)),await sweepOrphansBestEffort(_0x4baf6d),_0x2171b4?.['trackPhaseEnd']('profile.add.autoRouted',{'envKey':null,'profileName':_0x4baf6d}),!![];}export async function addEnv(_0x206be3,_0x33c23f={},_0x56d170){const _0x52773c=_0x41c2,_0x45798d={'ogQOY':function(_0xef8486,_0x14cbfe){return _0xef8486+_0x14cbfe;},'BjsFA':function(_0x2b7757,_0x40aa16){return _0x2b7757+_0x40aa16;},'KSBeX':'The\x20--ci\x20flag\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x20session\x20state\x0a','fOmfz':'for\x20you,\x20so\x20the\x20encrypted-CI\x20flow\x20is\x20unnecessary.\x0a','BwDbs':_0x52773c(0xf1),'gFVed':_0x52773c(0xb2),'BAKXD':'\x20\x20https://docs.ranger.net/main/concepts/profiles','GZKVP':function(_0x292775,_0x4fc343){return _0x292775===_0x4fc343;},'nhziL':'--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','SFMIo':'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','lPTkk':function(_0x5d8f43,_0x41f9e5){return _0x5d8f43>_0x41f9e5;},'CktQu':function(_0x8f1e74,_0x3f16ca,_0x1e9ca0){return _0x8f1e74(_0x3f16ca,_0x1e9ca0);},'bcuDB':function(_0x69678,_0x3aaf16){return _0x69678 instanceof _0x3aaf16;},'IpGGw':function(_0x581f5c,_0xab920a){return _0x581f5c(_0xab920a);},'eoAHL':function(_0x4d8d88,_0x2f0b8c){return _0x4d8d88(_0x2f0b8c);},'lJYkq':function(_0x2e0416,_0x4c1d95){return _0x2e0416>_0x4c1d95;},'RseHq':function(_0x8222e6,_0x82ea0){return _0x8222e6+_0x82ea0;},'yyTrO':_0x52773c(0xc4),'knQLP':'input','oyyPO':function(_0x375283,_0xdda4fe){return _0x375283(_0xdda4fe);},'lSSof':_0x52773c(0xe4),'bnZaR':_0x52773c(0x10a),'gikqW':_0x52773c(0xf6),'oLBnR':_0x52773c(0xb1),'uIdKY':_0x52773c(0xe5),'RYTPs':function(_0x2c95ac,_0xfc2df4){return _0x2c95ac===_0xfc2df4;},'oDvwW':function(_0x12d460,_0xf9027f,_0x1a9316,_0x1200a4,_0x37d19e,_0x4f4dd5){return _0x12d460(_0xf9027f,_0x1a9316,_0x1200a4,_0x37d19e,_0x4f4dd5);},'lNUzK':function(_0x322a86,_0x4f0d63){return _0x322a86(_0x4f0d63);}};_0x33c23f['ci']&&(console[_0x52773c(0x11b)](_0x45798d[_0x52773c(0xb0)](_0x45798d['ogQOY'](_0x45798d[_0x52773c(0xac)](_0x45798d['KSBeX']+_0x45798d[_0x52773c(0xa1)]+'\x0a',_0x45798d['BwDbs'])+_0x45798d[_0x52773c(0xeb)]+'\x0a','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a'),_0x45798d[_0x52773c(0xbb)])),process[_0x52773c(0xea)](0x1));const _0x39c1e7={};if(_0x33c23f['setupHeader'])for(const _0x2cb8fb of _0x33c23f[_0x52773c(0xef)]){const _0x2086d0=_0x2cb8fb['indexOf'](':');if(_0x45798d[_0x52773c(0xca)](_0x2086d0,-0x1))throw new Error('Invalid\x20--setup-header\x20format:\x20\x22'+_0x2cb8fb+'\x22.\x20Expected\x20\x22Name:\x20Value\x22.');const _0x37e536=_0x2cb8fb['slice'](0x0,_0x2086d0)['trim'](),_0xf93833=_0x2cb8fb['slice'](_0x45798d['ogQOY'](_0x2086d0,0x1))['trim']();_0x39c1e7[_0x37e536]=_0xf93833;}if(_0x33c23f['cdpEndpoint']!==undefined&&_0x33c23f[_0x52773c(0x103)]['trim']()==='')throw new Error(_0x52773c(0xc9));if(_0x33c23f['cdpEndpoint']&&_0x33c23f['url'])throw new Error(_0x45798d['nhziL']);const _0x15f0bb=Boolean(_0x33c23f['cdpEndpoint']),_0x5a2692=isInteractive();if(!_0x5a2692&&!_0x33c23f[_0x52773c(0xd3)]&&!_0x15f0bb&&!_0x33c23f[_0x52773c(0xec)])throw new Error(_0x45798d['SFMIo']);if(_0x15f0bb){const _0x4950b8=_0x33c23f[_0x52773c(0x103)];console[_0x52773c(0x9e)](_0x52773c(0x9f)),console['log']('\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20'+_0x4950b8);const _0x164ef4={'cdpEndpoint':_0x4950b8,'isElectron':!![]};_0x45798d['lPTkk'](Object[_0x52773c(0xe2)](_0x39c1e7)[_0x52773c(0xf8)],0x0)&&(_0x164ef4[_0x52773c(0xfa)]=_0x39c1e7);await _0x45798d[_0x52773c(0x111)](createUnconfiguredCloudProfile,_0x206be3,_0x164ef4);try{setProfileOverride(process['cwd'](),_0x206be3,'cdpEndpoint',_0x4950b8),setProfileOverride(process[_0x52773c(0xc8)](),_0x206be3,'isElectron',!![]);}catch(_0xad2252){console[_0x52773c(0x11b)]('\x0a\x20\x20Cloud\x20profile\x20created,\x20but\x20failed\x20to\x20write\x20per-cwd\x20CDP\x20override\x20to\x20projects.json:\x20'+(_0x45798d['bcuDB'](_0xad2252,Error)?_0xad2252['message']:_0x45798d['IpGGw'](String,_0xad2252)));}console['log']('✓\x20Cloud\x20profile\x20\x27'+_0x206be3+'\x27\x20created\x20(CDP).'),await _0x45798d[_0x52773c(0x100)](sweepOrphansBestEffort,_0x206be3),await _0x45798d[_0x52773c(0xa4)](markActive,_0x206be3);return;}if(_0x33c23f['skipAuth']){const _0x1cde6e={};_0x33c23f['url']&&(_0x1cde6e['baseUrl']=_0x33c23f[_0x52773c(0xd3)]);_0x45798d['lJYkq'](Object['keys'](_0x39c1e7)['length'],0x0)&&(_0x1cde6e[_0x52773c(0xfa)]=_0x39c1e7);await createUnconfiguredCloudProfile(_0x206be3,_0x1cde6e),console[_0x52773c(0x9e)](_0x45798d['RseHq']('✓\x20Profile\x20\x27'+_0x206be3+_0x52773c(0xf4),_0x52773c(0xe9)+_0x206be3+_0x52773c(0xb6))),await sweepOrphansBestEffort(_0x206be3),await markActive(_0x206be3);return;}if(_0x33c23f[_0x52773c(0xd3)]){const _0x363eb2=_0x33c23f['url'],_0x4845f1=await checkUrlReachability(_0x363eb2);if(!_0x4845f1['ok']&&!_0x33c23f['force'])throw new Error(_0x52773c(0xbe)+_0x363eb2+':\x20'+_0x4845f1[_0x52773c(0x11b)]+_0x52773c(0xa2));!_0x4845f1['ok']&&_0x33c23f['force']&&console['log']('⚠\x20Could\x20not\x20reach\x20'+_0x363eb2+':\x20'+_0x4845f1[_0x52773c(0x11b)]+_0x52773c(0xdf));}else{console['log'](_0x52773c(0xd2)),console[_0x52773c(0x9e)](_0x52773c(0xe8)),console[_0x52773c(0x9e)](_0x45798d[_0x52773c(0xcd)]);let _0x1aafba='',_0x5574f8=![];while(!![]){const _0x34d63b=await _0x5eb420['prompt']([{'type':_0x45798d[_0x52773c(0x11a)],'name':_0x52773c(0xd6),'message':_0x5574f8?'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):':_0x52773c(0xf0),'default':_0x1aafba||'http://localhost:3000'}]);_0x1aafba=_0x34d63b['baseUrl'];const _0xcd4014=await _0x45798d['oyyPO'](checkUrlReachability,_0x1aafba);if(_0xcd4014['ok'])break;const _0x15348b=/^[a-zA-Z][\w+.-]*:\/\//[_0x52773c(0xda)](_0x1aafba),_0x135e72=_0xcd4014['isProtocolError']&&!_0x15348b,_0x1ec49b=_0x135e72?'http://'+_0x1aafba:null;_0x5574f8=!![],console[_0x52773c(0x9e)]('\x0a\x20\x20Could\x20not\x20reach\x20'+_0x1aafba+':\x20'+_0xcd4014['error']);_0x1ec49b&&console['log']('\x20\x20Did\x20you\x20mean\x20'+_0x1ec49b+'?');const {action:_0x4b4677}=await _0x5eb420[_0x52773c(0xc5)]([{'type':_0x52773c(0xf2),'name':_0x45798d['lSSof'],'message':_0x45798d[_0x52773c(0xcf)],'choices':[..._0x1ec49b?[{'name':'Use\x20'+_0x1ec49b,'value':_0x52773c(0xe3)}]:[],{'name':_0x52773c(0xbd),'value':_0x45798d['gikqW']},{'name':_0x45798d['oLBnR'],'value':_0x45798d[_0x52773c(0xae)]}]}]);if(_0x45798d[_0x52773c(0x117)](_0x4b4677,'use_suggestion')&&_0x1ec49b){_0x1aafba=_0x1ec49b;const _0x9ae17e=await _0x45798d[_0x52773c(0xa4)](checkUrlReachability,_0x1aafba);if(_0x9ae17e['ok'])break;console['log'](_0x52773c(0xc7)+_0x1aafba+':\x20'+_0x9ae17e['error']);}else{if(_0x4b4677==='continue')break;}}_0x33c23f={..._0x33c23f,'url':_0x1aafba};}let _0x5e89e1=![];try{_0x5e89e1=await _0x45798d['oDvwW'](tryAutoRouteCloudProfile,_0x206be3,_0x33c23f[_0x52773c(0xd3)],_0x33c23f,_0x5a2692,_0x56d170);}catch(_0x255b0a){console[_0x52773c(0x11b)]('\x0a\x20\x20Failed\x20to\x20create\x20cloud\x20profile\x20\x22'+_0x206be3+'\x22:\x20'+(_0x45798d[_0x52773c(0xee)](_0x255b0a,Error)?_0x255b0a['message']:String(_0x255b0a))),process[_0x52773c(0xea)](0x1);}!_0x5e89e1&&process['exit'](0x1),await _0x45798d[_0x52773c(0x10c)](markActive,_0x206be3);}
1
+ (function(_0x5e5a1b,_0x4f4661){const _0x49a369=_0x1ded,_0x4511ed=_0x5e5a1b();while(!![]){try{const _0x2d6eb0=-parseInt(_0x49a369(0x191))/0x1+parseInt(_0x49a369(0x188))/0x2+-parseInt(_0x49a369(0x13d))/0x3*(-parseInt(_0x49a369(0x195))/0x4)+parseInt(_0x49a369(0x175))/0x5+parseInt(_0x49a369(0x19e))/0x6+parseInt(_0x49a369(0x193))/0x7+-parseInt(_0x49a369(0x13f))/0x8*(parseInt(_0x49a369(0x14d))/0x9);if(_0x2d6eb0===_0x4f4661)break;else _0x4511ed['push'](_0x4511ed['shift']());}catch(_0x246949){_0x4511ed['push'](_0x4511ed['shift']());}}}(_0x50a4,0x869cc));function _0x50a4(){const _0x1890c3=['rMxni','fMJYt','BrlWH','abort','onxJT','`\x20again\x20without\x20--skip-auth.','eGMKN','http://','cfqtD','3788460mnACVR','trim','.tmp-','authEnv','join','url','profile.add.autoRouteSkipped','\x0a\x20\x20Still\x20could\x20not\x20reach\x20','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','exit','origin','NFePP','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','uGkgH','setupHeader','status','\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20session,\x0a','nJuYZ','2126960KUslSP','\x0a\x20\x20A\x20profile\x20named\x20\x22','Found\x20auth\x20environment\x20\x27','keys','KgRhB','\x27\x20matching\x20','slice','environments','znRJh','980268lniWwm','NODE_TLS_REJECT_UNAUTHORIZED','7228949kvdPdj','MdzWG','4179116mLwloM','domains','EfDNR','PKxGK','profile.add.autoRouted','TkCLd','\x20Your\x20org\x20has\x20no\x20auth\x20environments\x20configured.','\x22.\x20Expected\x20\x22Name:\x20Value\x22.','trackPhaseEnd','326484LSIUbp','QGGzS','xychM','ZCglD','Use\x20','\x0a✓\x20Profile\x20\x27','cqpQg','\x22\x20not\x20found.','log','cvZTT','\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','\x20\x20Note:\x20found\x20git-tracked\x20local\x20profile\x20at\x20','capture','gxNKn','cdpEndpoint','fLaHc','\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20','QeiGa','fNfcH','\x20--url\x20','rrNwW','mqLUs','\x20\x20Ranger\x20will\x20use\x20it\x20to\x20look\x20up\x20the\x20right\x20cloud\x20auth\x20env\x20to\x20attach.\x0a','\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20cloud-managed\x20session.','manual','no_auth_config','✓\x20Cloud\x20profile\x20\x27','env_not_found','Invalid\x20URL','http://localhost:3000','KMJMG','includes','confirm','Enter\x20a\x20different\x20URL','saveToCloud','force','\x0a\x20\x20Auth\x20environment\x20\x22','use_suggestion','\x0a\x20\x20Cloud\x20profile\x20created,\x20but\x20failed\x20to\x20write\x20per-cwd\x20CDP\x20override\x20to\x20projects.json:\x20','qnSLQ','TypeError','RsUMT','LpUad','✓\x20Profile\x20\x27','ZpDCo','error','3FbTCRl','prompt','38208hgsdQM','\x0a🌐\x20Profile\x20Setup\x0a','StCwf','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','hUpMy','\x0a\x20\x20(domains:\x20','--cdp-endpoint\x20and\x20--env\x20are\x20mutually\x20exclusive:\x20a\x20CDP\x20profile\x20connects\x20to\x20an\x20existing\x20browser\x20and\x20has\x20no\x20auth\x20environment.','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','HpNra','setupHeaders','\x27\x20created\x20(no\x20session).\x0a','yes','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','To\x20set\x20up\x20a\x20profile,\x20run:\x0a','4563ClduaF','cZNzL','\x0a\x20\x20Could\x20not\x20reach\x20','length','VIJUw','isProtocolError','Vwkhc','Continue\x20anyway','FLadn','fetch\x20failed','message','Invalid\x20--setup-header\x20format:\x20\x22','\x20\x20Details:\x20https://docs.ranger.net/main/concepts/profiles#automated-login','env','\x27\x20created\x20(CDP).','rDCxr','action','\x27\x20to\x20the\x20cloud?','cwd','vsjev','warn','SyGtG','skipAuth','\x20\x20Workaround\x20for\x20now:\x20create\x20a\x20profile\x20without\x20a\x20captured\x20session\x20and\x20supply\x20one\x20later:\x0a','julfe','\x27\x20created.\x0a','\x20--skip-auth\x0a','dnFQM','name','\x27\x20created\x20with\x20a\x20captured\x20session.\x0a','GCOBU'];_0x50a4=function(){return _0x1890c3;};return _0x50a4();}import{readdir,rm}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import _0x5aadde from'inquirer';import{getRangerDir,getRangerHomeDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{fetchAuthConfig,createCloudProfile,manualBrowserLogin,ApiError}from'./utils/cloudProfile.js';function _0x1ded(_0x28c2f8,_0x4c66df){_0x28c2f8=_0x28c2f8-0x11d;const _0x50a4f8=_0x50a4();let _0x1deddb=_0x50a4f8[_0x28c2f8];return _0x1deddb;}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='This\x20account\x20will\x20be\x20shared\x20with\x20everyone\x20at\x20your\x20organization';function warnCloudProfileSharedInOrg(){const _0x5ef8db=_0x1ded;if(!process['stdout']['isTTY'])return;console[_0x5ef8db(0x161)](CLOUD_PROFILE_SHARING_WARNING);}async function checkUrlReachability(_0x21ee6a){const _0x44faf1=_0x1ded,_0x3b40e5={'mJCPk':'HEAD','Vwkhc':_0x44faf1(0x127),'qnSLQ':function(_0x4643ea,_0x43b4fc){return _0x4643ea<_0x43b4fc;},'xychM':function(_0x3d28e1,_0x2a1806){return _0x3d28e1(_0x2a1806);},'cZNzL':_0x44faf1(0x12b),'ezXRO':function(_0x243cc4,_0x27ee2d){return _0x243cc4===_0x27ee2d;}};try{const _0x3155ab=new AbortController(),_0x2ec348=setTimeout(()=>_0x3155ab[_0x44faf1(0x16f)](),0x1388),_0x47b6d7={'method':_0x3b40e5['mJCPk'],'signal':_0x3155ab['signal'],'redirect':_0x3b40e5[_0x44faf1(0x153)]};/^https:\/\/localhost(:\d+)?/i['test'](_0x21ee6a)&&(process['env']['NODE_TLS_REJECT_UNAUTHORIZED']='0');const _0x15beef=await fetch(_0x21ee6a,_0x47b6d7);delete process['env'][_0x44faf1(0x192)],clearTimeout(_0x2ec348);if(_0x3b40e5[_0x44faf1(0x136)](_0x15beef['status'],0x190))return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x15beef['status']};}catch(_0x1423b3){delete process[_0x44faf1(0x15a)][_0x44faf1(0x192)];const _0x52bf18=_0x1423b3,_0xf0696a=_0x52bf18[_0x44faf1(0x157)]||_0x3b40e5[_0x44faf1(0x1a0)](String,_0x1423b3),_0x4012da=_0xf0696a[_0x44faf1(0x12e)](_0x3b40e5[_0x44faf1(0x14e)])||_0x3b40e5['ezXRO'](_0x52bf18[_0x44faf1(0x169)],_0x44faf1(0x137))||_0xf0696a['includes'](_0x44faf1(0x156));return{'ok':![],'error':_0xf0696a,'isProtocolError':_0x4012da};}}async function sweepOrphanLocalProfile(_0x38d23b,_0x1581b2,_0x6a1c53){const _0x40372a=_0x1ded,_0x17ca2f={'fNfcH':'local','FbiGp':function(_0x420075,_0x51d666,_0x4427dd){return _0x420075(_0x51d666,_0x4427dd);},'znRJh':function(_0x4fc594,_0x1c12a7){return _0x4fc594(_0x1c12a7);},'pDBQg':function(_0x1c05d2,_0x2904ac,_0x582cd5){return _0x1c05d2(_0x2904ac,_0x582cd5);},'HpNra':function(_0x3db6a1,_0x3e9cbf,_0x420f25){return _0x3db6a1(_0x3e9cbf,_0x420f25);}},_0x2b7fe5=join(_0x1581b2,_0x17ca2f[_0x40372a(0x121)]),_0x35ec74=_0x17ca2f['FbiGp'](join,_0x2b7fe5,_0x38d23b);existsSync(_0x35ec74)&&(_0x6a1c53&&await isPathGitTracked(_0x35ec74)?console[_0x40372a(0x1a6)](_0x40372a(0x1a9)+_0x35ec74+'\x20—\x20not\x20removing.\x20Delete\x20manually\x20if\x20you\x20want\x20it\x20gone.'):(await rm(_0x35ec74,{'recursive':!![],'force':!![]}),console[_0x40372a(0x1a6)](_0x40372a(0x11f)+_0x35ec74)));if(_0x17ca2f[_0x40372a(0x190)](existsSync,_0x2b7fe5)){let _0x2e377d=[];try{_0x2e377d=await _0x17ca2f[_0x40372a(0x190)](readdir,_0x2b7fe5);}catch{return;}const _0x3b0400=_0x40372a(0x177)+_0x38d23b+'-';for(const _0x1a4ac2 of _0x2e377d){if(!_0x1a4ac2['startsWith'](_0x3b0400))continue;const _0x480a03=_0x17ca2f['pDBQg'](join,_0x2b7fe5,_0x1a4ac2);await _0x17ca2f[_0x40372a(0x147)](rm,_0x480a03,{'recursive':!![],'force':!![]}),console['log']('\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20'+_0x480a03);}}}async function sweepOrphansBestEffort(_0x4f276d){const _0x224046=_0x1ded,_0x4be427={'MRJst':function(_0x40b1fd){return _0x40b1fd();},'QeiGa':function(_0x26c324,_0x17a329,_0x539796,_0x30b299){return _0x26c324(_0x17a329,_0x539796,_0x30b299);},'lGYDy':function(_0x4327f5,_0x1c8e9b){return _0x4327f5 instanceof _0x1c8e9b;},'lzhwq':function(_0x57adcd,_0x3eef26){return _0x57adcd(_0x3eef26);}};try{await sweepOrphanLocalProfile(_0x4f276d,getRangerHomeDir(),![]);const _0x3058dc=getRangerDir();_0x3058dc!==_0x4be427['MRJst'](getRangerHomeDir)&&await _0x4be427[_0x224046(0x120)](sweepOrphanLocalProfile,_0x4f276d,_0x3058dc,!![]);}catch(_0x4a826c){console[_0x224046(0x1a6)]('\x20\x20Note:\x20cloud\x20profile\x20created,\x20but\x20failed\x20to\x20sweep\x20orphan\x20local\x20dirs\x20('+(_0x4be427['lGYDy'](_0x4a826c,Error)?_0x4a826c[_0x224046(0x157)]:_0x4be427['lzhwq'](String,_0x4a826c))+').');}}async function markActive(_0x41c5e1){const _0x3c0e5d=_0x1ded,_0x573ad4={'ZCglD':function(_0x2999f4,_0x1ebdfd){return _0x2999f4(_0x1ebdfd);},'eGMKN':'Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.'};try{await _0x573ad4[_0x3c0e5d(0x1a1)](writeActiveProfileName,_0x41c5e1),console['log']('\x20\x20Set\x20active\x20profile:\x20'+_0x41c5e1);}catch{console['log'](_0x573ad4[_0x3c0e5d(0x172)]);}}async function tryAutoRouteCloudProfile(_0xb59391,_0x2c65d5,_0x448c44,_0x110113,_0x5f236a){const _0xb8979=_0x1ded,_0x28d759={'QGGzS':function(_0x2865d4,_0x3e3b41){return _0x2865d4===_0x3e3b41;},'gxNKn':function(_0x1a12fa){return _0x1a12fa();},'ZpDCo':'profile.add.autoRouteSkipped','VIJUw':_0xb8979(0x128),'KMJMG':function(_0x49702a,_0x5ed7c3){return _0x49702a(_0x5ed7c3);},'StCwf':function(_0x3413a8,_0x336f70){return _0x3413a8+_0x336f70;},'Uztql':function(_0x3efd26,_0x3646fd){return _0x3efd26+_0x3646fd;},'BKaBu':'\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','LpUad':'\x20\x20To\x20get\x20automated\x20login\x20set\x20up\x20for\x20your\x20team\x20(a\x20one-time\x20call):\x20eng@ranger.net\x0a','fLaHc':_0xb8979(0x12a),'cvZTT':function(_0x3573c7,_0x5a3ef0){return _0x3573c7+_0x5a3ef0;},'PKxGK':_0xb8979(0x19b),'OUgYz':'no_match','exKYI':'confirm','hUpMy':_0xb8979(0x131),'cfqtD':_0xb8979(0x126),'BrlWH':function(_0x5b67b3){return _0x5b67b3();},'julfe':function(_0x11cd06,_0x199fdc){return _0x11cd06 instanceof _0x199fdc;},'yUJXt':function(_0x5f2b43,_0x56dd99){return _0x5f2b43+_0x56dd99;}};let _0x34e72f;try{_0x34e72f=await _0x28d759[_0xb8979(0x1ab)](fetchAuthConfig);}catch(_0x20c62e){return _0x5f236a?.['trackPhaseEnd'](_0x28d759[_0xb8979(0x13b)],{'reason':_0x28d759[_0xb8979(0x151)],'profileName':_0xb59391}),console[_0xb8979(0x13c)]('\x0a\x20\x20Could\x20not\x20fetch\x20this\x20org\x27s\x20auth\x20config:\x20'+(_0x20c62e instanceof Error?_0x20c62e['message']:_0x28d759['KMJMG'](String,_0x20c62e))),![];}if((!_0x34e72f||!_0x34e72f[_0xb8979(0x18f)]||_0x28d759[_0xb8979(0x19f)](Object[_0xb8979(0x18b)](_0x34e72f[_0xb8979(0x18f)])[_0xb8979(0x150)],0x0))&&!_0x448c44[_0xb8979(0x178)]){if(_0x110113)return await captureEnvLessProfile(_0xb59391,_0x2c65d5,_0x448c44,_0x5f236a);return _0x5f236a?.['trackPhaseEnd'](_0x28d759[_0xb8979(0x13b)],{'reason':'no_auth_config','profileName':_0xb59391}),console[_0xb8979(0x13c)](_0x28d759[_0xb8979(0x141)](_0x28d759['StCwf'](_0x28d759['Uztql'](_0x28d759['BKaBu']+'\x0a',_0xb8979(0x164))+('\x20\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20'+_0xb59391+_0xb8979(0x122)+_0x2c65d5+_0xb8979(0x167)),'\x0a')+_0x28d759[_0xb8979(0x139)],_0xb8979(0x159))),![];}let _0x43288d;if(_0x448c44[_0xb8979(0x178)]){if(!_0x34e72f?.['environments']?.[_0x448c44['authEnv']]){const _0x5b5d09=Object['keys'](_0x34e72f?.['environments']??{});return _0x5f236a?.['trackPhaseEnd'](_0x28d759['ZpDCo'],{'reason':_0x28d759[_0xb8979(0x11e)],'profileName':_0xb59391}),console['error'](_0x28d759[_0xb8979(0x1a7)](_0xb8979(0x133)+_0x448c44['authEnv']+_0xb8979(0x1a5),_0x5b5d09['length']?'\x20Configured\x20envs:\x20'+_0x5b5d09[_0xb8979(0x179)](',\x20')+'.':_0x28d759[_0xb8979(0x198)])),![];}_0x43288d=_0x448c44[_0xb8979(0x178)];}else _0x43288d=matchAuthEnvironment(_0x2c65d5,_0x34e72f);if(!_0x43288d)return _0x5f236a?.['trackPhaseEnd'](_0x28d759[_0xb8979(0x13b)],{'reason':_0x28d759['OUgYz'],'profileName':_0xb59391}),console[_0xb8979(0x13c)]('\x0a\x20\x20No\x20auth\x20env\x20matches\x20'+_0x2c65d5+'.\x20Pass\x20--env\x20<key>\x20to\x20pick\x20one,\x20or\x20use\x20--skip-auth.\x20Configured\x20envs:\x20'+Object['keys'](_0x34e72f?.[_0xb8979(0x18f)]??{})['join'](',\x20')+'.'),![];const _0x435d00=_0x34e72f?.['environments']?.[_0x43288d],_0x55410d=_0x435d00?.[_0xb8979(0x196)]??[];if(_0x110113&&!_0x448c44[_0xb8979(0x14a)]){const {saveToCloud:_0x41c10c}=await _0x5aadde['prompt']([{'type':_0x28d759['exKYI'],'name':_0x28d759[_0xb8979(0x143)],'message':_0xb8979(0x18a)+_0x43288d+_0xb8979(0x18d)+_0x2c65d5+_0xb8979(0x144)+_0x55410d[_0xb8979(0x179)](',\x20')+')\x0a\x20\x20Save\x20\x27'+_0xb59391+_0xb8979(0x15e),'default':!![]}]);if(!_0x41c10c)return _0x5f236a?.[_0xb8979(0x19d)](_0x28d759['ZpDCo'],{'reason':'user_declined','profileName':_0xb59391}),console[_0xb8979(0x13c)](_0x28d759[_0xb8979(0x174)]),![];}const _0x11336c=_0x55410d['some'](_0x52c0a0=>{const _0x2fbd94=_0xb8979;try{return _0x28d759[_0x2fbd94(0x19f)](new URL(_0x52c0a0)[_0x2fbd94(0x17f)],new URL(_0x2c65d5)['origin']);}catch{return![];}}),_0x42e819={};!_0x11336c&&(_0x42e819['baseUrl']=_0x2c65d5);try{await createCloudProfile(_0xb59391,_0x43288d,{'settings':_0x42e819}),_0x28d759[_0xb8979(0x16e)](warnCloudProfileSharedInOrg);}catch(_0x2506d6){if(_0x28d759[_0xb8979(0x165)](_0x2506d6,ApiError)&&_0x2506d6[_0xb8979(0x185)]===0x199){console['error'](_0x28d759['yUJXt'](_0xb8979(0x189)+_0xb59391+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0xb59391));throw _0x2506d6;}throw _0x2506d6;}return console['log']('✓\x20Profile\x20\x27'+_0xb59391+_0xb8979(0x166)+('\x20\x20Next:\x20ranger\x20go\x20--profile\x20'+_0xb59391)),await _0x28d759[_0xb8979(0x12d)](sweepOrphansBestEffort,_0xb59391),_0x5f236a?.[_0xb8979(0x19d)]('profile.add.autoRouted',{'envKey':_0x43288d,'profileName':_0xb59391}),!![];}async function createUnconfiguredCloudProfile(_0x5f0c0b,_0x46d7bc){const _0x5d4727=_0x1ded,_0x5c556f={'kztzn':function(_0x3b7bf9){return _0x3b7bf9();},'TkCLd':function(_0x58c89c,_0x14fb57){return _0x58c89c instanceof _0x14fb57;},'JVuut':function(_0x3b1826,_0x5580d4){return _0x3b1826+_0x5580d4;}};try{await createCloudProfile(_0x5f0c0b,undefined,{'settings':_0x46d7bc}),_0x5c556f['kztzn'](warnCloudProfileSharedInOrg);}catch(_0x24b621){_0x5c556f[_0x5d4727(0x19a)](_0x24b621,ApiError)&&_0x24b621['status']===0x199&&console[_0x5d4727(0x13c)](_0x5c556f['JVuut'](_0x5d4727(0x189)+_0x5f0c0b+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x5f0c0b));throw _0x24b621;}}async function captureEnvLessProfile(_0x120b53,_0xbd4c4c,_0x14d4e8,_0x9a6651){const _0x21c5a0=_0x1ded,_0x223f46={'BeLLI':_0x21c5a0(0x1aa),'rMxni':'Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team.\x20Capture\x20a\x20session\x20via\x20a\x20headed\x20browser\x20instead?','dnFQM':'user_declined','KJJJL':function(_0x2f8b93,_0x375c47){return _0x2f8b93+_0x375c47;},'uGkgH':function(_0x1bd5c,_0xff68cd){return _0x1bd5c>_0xff68cd;},'MdzWG':function(_0x281228){return _0x281228();},'KgRhB':function(_0x5952f5,_0x223e22){return _0x5952f5 instanceof _0x223e22;},'NwtTM':function(_0x24933b,_0xc7c587,_0x37d4f1){return _0x24933b(_0xc7c587,_0x37d4f1);},'jqXKk':function(_0x4e0b49,_0x5ab061){return _0x4e0b49+_0x5ab061;},'onxJT':function(_0x1a5f42,_0x326bff){return _0x1a5f42(_0x326bff);},'aYzSd':_0x21c5a0(0x199)};if(!_0x14d4e8['yes']){const {capture:_0x37af8e}=await _0x5aadde['prompt']([{'type':_0x21c5a0(0x12f),'name':_0x223f46['BeLLI'],'message':_0x223f46[_0x21c5a0(0x16c)],'default':!![]}]);if(!_0x37af8e)return _0x9a6651?.['trackPhaseEnd'](_0x21c5a0(0x17b),{'reason':_0x223f46[_0x21c5a0(0x168)],'profileName':_0x120b53}),console[_0x21c5a0(0x13c)](_0x223f46['KJJJL'](_0x21c5a0(0x186),'\x20\x20or\x20contact\x20eng@ranger.net\x20to\x20set\x20up\x20automated\x20login\x20for\x20your\x20team.')),![];}const _0x4a20d0={};if(_0x14d4e8[_0x21c5a0(0x184)])for(const _0x35ad3e of _0x14d4e8[_0x21c5a0(0x184)]){const _0x281ca7=_0x35ad3e['indexOf'](':');if(_0x281ca7===-0x1)continue;_0x4a20d0[_0x35ad3e[_0x21c5a0(0x18e)](0x0,_0x281ca7)['trim']()]=_0x35ad3e['slice'](_0x223f46['KJJJL'](_0x281ca7,0x1))[_0x21c5a0(0x176)]();}const _0x115baf={'baseUrl':_0xbd4c4c};_0x223f46['uGkgH'](Object['keys'](_0x4a20d0)['length'],0x0)&&(_0x115baf[_0x21c5a0(0x148)]=_0x4a20d0);let _0x25c9fc;try{_0x25c9fc=await createCloudProfile(_0x120b53,undefined,{'settings':_0x115baf}),_0x223f46[_0x21c5a0(0x194)](warnCloudProfileSharedInOrg);}catch(_0x3a8238){_0x223f46[_0x21c5a0(0x18c)](_0x3a8238,ApiError)&&_0x3a8238['status']===0x199&&console[_0x21c5a0(0x13c)](_0x21c5a0(0x189)+_0x120b53+_0x21c5a0(0x1a8)+('\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x120b53));throw _0x3a8238;}return await _0x223f46['NwtTM'](manualBrowserLogin,_0x25c9fc,{'key':'','domains':[_0xbd4c4c],'setupHeaders':_0x223f46[_0x21c5a0(0x183)](Object['keys'](_0x4a20d0)['length'],0x0)?_0x4a20d0:undefined}),console['log'](_0x223f46['jqXKk'](_0x21c5a0(0x1a3)+_0x120b53+_0x21c5a0(0x16a),'\x20\x20Next:\x20ranger\x20go\x20--profile\x20'+_0x120b53)),await _0x223f46[_0x21c5a0(0x170)](sweepOrphansBestEffort,_0x120b53),_0x9a6651?.[_0x21c5a0(0x19d)](_0x223f46['aYzSd'],{'envKey':null,'profileName':_0x120b53}),!![];}export async function addEnv(_0x545aa1,_0x2043a3={},_0x2ff1c3){const _0x1f5886=_0x1ded,_0x2657f1={'bvFQX':function(_0x5c2024,_0x353977){return _0x5c2024+_0x353977;},'pstlT':'The\x20--ci\x20flag\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x20session\x20state\x0a','rwooW':'for\x20you,\x20so\x20the\x20encrypted-CI\x20flow\x20is\x20unnecessary.\x0a','GCOBU':_0x1f5886(0x14c),'cMdMy':_0x1f5886(0x17d),'mqLUs':function(_0x4476ba,_0x462137){return _0x4476ba!==_0x462137;},'uqhAk':function(_0x46c0b6,_0x460dec){return _0x46c0b6===_0x460dec;},'BjEIa':'--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','rrNwW':'--skip-auth\x20and\x20--env\x20are\x20mutually\x20exclusive:\x20--skip-auth\x20makes\x20an\x20env-less\x20profile,\x20--env\x20binds\x20one\x20to\x20an\x20auth\x20environment.','eTzRY':_0x1f5886(0x145),'cqpQg':function(_0x1507c1,_0x1fef38){return _0x1507c1(_0x1fef38);},'McKFi':function(_0x4c38f4){return _0x4c38f4();},'EfDNR':_0x1f5886(0x142),'FLadn':'\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','nJuYZ':function(_0x22686c,_0x180ad3){return _0x22686c>_0x180ad3;},'rDCxr':function(_0x397435,_0x2b2bb6,_0x10eedc){return _0x397435(_0x2b2bb6,_0x10eedc);},'NFePP':function(_0x8bedc6,_0x13fb0f,_0x5af2f9,_0x34f693,_0x90cd1e){return _0x8bedc6(_0x13fb0f,_0x5af2f9,_0x34f693,_0x90cd1e);},'zwkLu':_0x1f5886(0x11d),'fMJYt':function(_0x2ba864,_0x13f56a){return _0x2ba864+_0x13f56a;},'sHcAm':'input','BHmdD':_0x1f5886(0x12c),'uNOmV':'list','kVfeb':_0x1f5886(0x134),'npCoi':_0x1f5886(0x130),'DzpUx':'continue','ZQvkG':function(_0x535bed,_0x2794d4){return _0x535bed===_0x2794d4;},'vsjev':function(_0x3fd0b2,_0x2d4337,_0x2722a0,_0x5b3df2,_0x4ec692,_0x5e44e3){return _0x3fd0b2(_0x2d4337,_0x2722a0,_0x5b3df2,_0x4ec692,_0x5e44e3);},'SyGtG':function(_0x2efb4e,_0x555cbb){return _0x2efb4e instanceof _0x555cbb;},'RsUMT':function(_0x2331f6,_0x45b070){return _0x2331f6(_0x45b070);}};_0x2043a3['ci']&&(console[_0x1f5886(0x13c)](_0x2657f1['bvFQX'](_0x2657f1['bvFQX'](_0x2657f1['bvFQX'](_0x2657f1['pstlT'],_0x2657f1['rwooW'])+'\x0a'+_0x2657f1[_0x1f5886(0x16b)],_0x1f5886(0x181)),'\x0a')+_0x2657f1['cMdMy']+'\x20\x20https://docs.ranger.net/main/concepts/profiles'),process['exit'](0x1));const _0x232740={};if(_0x2043a3[_0x1f5886(0x184)])for(const _0x5442a6 of _0x2043a3[_0x1f5886(0x184)]){const _0x495910=_0x5442a6['indexOf'](':');if(_0x495910===-0x1)throw new Error(_0x1f5886(0x158)+_0x5442a6+_0x1f5886(0x19c));const _0x448030=_0x5442a6[_0x1f5886(0x18e)](0x0,_0x495910)[_0x1f5886(0x176)](),_0x15a37b=_0x5442a6['slice'](_0x2657f1['bvFQX'](_0x495910,0x1))['trim']();_0x232740[_0x448030]=_0x15a37b;}if(_0x2657f1[_0x1f5886(0x124)](_0x2043a3[_0x1f5886(0x11d)],undefined)&&_0x2657f1['uqhAk'](_0x2043a3[_0x1f5886(0x11d)][_0x1f5886(0x176)](),''))throw new Error(_0x1f5886(0x182));if(_0x2043a3['cdpEndpoint']&&_0x2043a3['url'])throw new Error(_0x2657f1['BjEIa']);if(_0x2043a3['authEnv']&&_0x2043a3['skipAuth'])throw new Error(_0x2657f1[_0x1f5886(0x123)]);if(_0x2043a3['authEnv']&&_0x2043a3['cdpEndpoint'])throw new Error(_0x2657f1['eTzRY']);const _0x156d1b=_0x2657f1['cqpQg'](Boolean,_0x2043a3['cdpEndpoint']),_0x38274d=_0x2657f1['McKFi'](isInteractive);if(!_0x38274d&&!_0x2043a3[_0x1f5886(0x17a)]&&!_0x156d1b&&!_0x2043a3[_0x1f5886(0x163)])throw new Error(_0x2657f1[_0x1f5886(0x197)]);if(_0x156d1b){const _0x539793=_0x2043a3['cdpEndpoint'];console['log'](_0x2657f1[_0x1f5886(0x155)]),console[_0x1f5886(0x1a6)](_0x1f5886(0x14b)+_0x539793);const _0x158605={'cdpEndpoint':_0x539793,'isElectron':!![]};_0x2657f1[_0x1f5886(0x187)](Object['keys'](_0x232740)[_0x1f5886(0x150)],0x0)&&(_0x158605[_0x1f5886(0x148)]=_0x232740);await _0x2657f1[_0x1f5886(0x15c)](createUnconfiguredCloudProfile,_0x545aa1,_0x158605);try{_0x2657f1['NFePP'](setProfileOverride,process[_0x1f5886(0x15f)](),_0x545aa1,_0x2657f1['zwkLu'],_0x539793),_0x2657f1[_0x1f5886(0x180)](setProfileOverride,process[_0x1f5886(0x15f)](),_0x545aa1,'isElectron',!![]);}catch(_0x4217c4){console['error'](_0x1f5886(0x135)+(_0x4217c4 instanceof Error?_0x4217c4[_0x1f5886(0x157)]:String(_0x4217c4)));}console[_0x1f5886(0x1a6)](_0x1f5886(0x129)+_0x545aa1+_0x1f5886(0x15b)),await sweepOrphansBestEffort(_0x545aa1),await _0x2657f1['cqpQg'](markActive,_0x545aa1);return;}if(_0x2043a3[_0x1f5886(0x163)]){const _0x231d1a={};_0x2043a3['url']&&(_0x231d1a['baseUrl']=_0x2043a3[_0x1f5886(0x17a)]);Object['keys'](_0x232740)['length']>0x0&&(_0x231d1a[_0x1f5886(0x148)]=_0x232740);await createUnconfiguredCloudProfile(_0x545aa1,_0x231d1a),console['log'](_0x2657f1[_0x1f5886(0x16d)](_0x1f5886(0x13a)+_0x545aa1+_0x1f5886(0x149),'\x20\x20When\x20you\x27re\x20ready\x20to\x20log\x20in,\x20run\x20`ranger\x20profile\x20add\x20'+_0x545aa1+_0x1f5886(0x171))),await _0x2657f1['cqpQg'](sweepOrphansBestEffort,_0x545aa1),await _0x2657f1[_0x1f5886(0x1a4)](markActive,_0x545aa1);return;}if(_0x2043a3['url']){const _0x4e81e1=_0x2043a3['url'],_0x5504a3=await _0x2657f1['cqpQg'](checkUrlReachability,_0x4e81e1);if(!_0x5504a3['ok']&&!_0x2043a3['force'])throw new Error('Could\x20not\x20reach\x20'+_0x4e81e1+':\x20'+_0x5504a3[_0x1f5886(0x13c)]+_0x1f5886(0x146));!_0x5504a3['ok']&&_0x2043a3[_0x1f5886(0x132)]&&console[_0x1f5886(0x1a6)]('⚠\x20Could\x20not\x20reach\x20'+_0x4e81e1+':\x20'+_0x5504a3['error']+'\x20(continuing\x20with\x20--force)');}else{console[_0x1f5886(0x1a6)](_0x1f5886(0x140)),console['log']('\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.'),console[_0x1f5886(0x1a6)](_0x1f5886(0x125));let _0x3bd252='',_0x1cc00c=![];while(!![]){const _0x7f4aad=await _0x5aadde['prompt']([{'type':_0x2657f1['sHcAm'],'name':'baseUrl','message':_0x1cc00c?'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):':'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','default':_0x3bd252||_0x2657f1['BHmdD']}]);_0x3bd252=_0x7f4aad['baseUrl'];const _0x4b6de5=await checkUrlReachability(_0x3bd252);if(_0x4b6de5['ok'])break;const _0x5a8efc=/^[a-zA-Z][\w+.-]*:\/\//['test'](_0x3bd252),_0x1c735a=_0x4b6de5[_0x1f5886(0x152)]&&!_0x5a8efc,_0x2fd27c=_0x1c735a?_0x1f5886(0x173)+_0x3bd252:null;_0x1cc00c=!![],console[_0x1f5886(0x1a6)](_0x1f5886(0x14f)+_0x3bd252+':\x20'+_0x4b6de5[_0x1f5886(0x13c)]);_0x2fd27c&&console['log']('\x20\x20Did\x20you\x20mean\x20'+_0x2fd27c+'?');const {action:_0x480039}=await _0x5aadde[_0x1f5886(0x13e)]([{'type':_0x2657f1['uNOmV'],'name':_0x1f5886(0x15d),'message':'What\x20would\x20you\x20like\x20to\x20do?','choices':[..._0x2fd27c?[{'name':_0x1f5886(0x1a2)+_0x2fd27c,'value':_0x2657f1['kVfeb']}]:[],{'name':_0x2657f1['npCoi'],'value':'retry'},{'name':_0x1f5886(0x154),'value':_0x2657f1['DzpUx']}]}]);if(_0x2657f1['ZQvkG'](_0x480039,_0x1f5886(0x134))&&_0x2fd27c){_0x3bd252=_0x2fd27c;const _0x4ee683=await _0x2657f1['cqpQg'](checkUrlReachability,_0x3bd252);if(_0x4ee683['ok'])break;console[_0x1f5886(0x1a6)](_0x1f5886(0x17c)+_0x3bd252+':\x20'+_0x4ee683[_0x1f5886(0x13c)]);}else{if(_0x480039==='continue')break;}}_0x2043a3={..._0x2043a3,'url':_0x3bd252};}let _0x8bd0cf=![];try{_0x8bd0cf=await _0x2657f1[_0x1f5886(0x160)](tryAutoRouteCloudProfile,_0x545aa1,_0x2043a3['url'],_0x2043a3,_0x38274d,_0x2ff1c3);}catch(_0x3d390e){console[_0x1f5886(0x13c)]('\x0a\x20\x20Failed\x20to\x20create\x20cloud\x20profile\x20\x22'+_0x545aa1+'\x22:\x20'+(_0x2657f1[_0x1f5886(0x162)](_0x3d390e,Error)?_0x3d390e['message']:String(_0x3d390e))),process[_0x1f5886(0x17e)](0x1);}!_0x8bd0cf&&process[_0x1f5886(0x17e)](0x1),await _0x2657f1[_0x1f5886(0x138)](markActive,_0x545aa1);}
@@ -1 +1 @@
1
- (function(_0x36d827,_0x4e7b3e){var _0x3d07e1=_0x4a99,_0x5708ce=_0x36d827();while(!![]){try{var _0x5287a3=parseInt(_0x3d07e1(0x1f8))/0x1+parseInt(_0x3d07e1(0x1f3))/0x2+-parseInt(_0x3d07e1(0x1fc))/0x3*(-parseInt(_0x3d07e1(0x1f2))/0x4)+parseInt(_0x3d07e1(0x1fb))/0x5*(parseInt(_0x3d07e1(0x1f7))/0x6)+parseInt(_0x3d07e1(0x1ff))/0x7+-parseInt(_0x3d07e1(0x1fe))/0x8+-parseInt(_0x3d07e1(0x200))/0x9;if(_0x5287a3===_0x4e7b3e)break;else _0x5708ce['push'](_0x5708ce['shift']());}catch(_0x255953){_0x5708ce['push'](_0x5708ce['shift']());}}}(_0x4535,0xcc8f8));function _0x4a99(_0x38ea45,_0x576fed){_0x38ea45=_0x38ea45-0x1f2;var _0x453556=_0x4535();var _0x4a99f3=_0x453556[_0x38ea45];return _0x4a99f3;}function _0x4535(){var _0x549100=['12336872kzRETn','9209606fSSzPU','34473483IFidIL','5580784aPfwaB','3041576BOzkeH','BEGaW','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','ranger\x20profile\x20encrypt-auth\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x0a','12WPUKel','859006mMPQJs','dlbrw','error','2799320shjeuD','3RxinsH','exit'];_0x4535=function(){return _0x549100;};return _0x4535();}export async function authEncrypt(_0x128f83){var _0x4430c3=_0x4a99,_0x373347={'KCjYf':function(_0x1426f5,_0x1890e8){return _0x1426f5+_0x1890e8;},'dlbrw':'To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','BEGaW':'\x20\x20ranger\x20profile\x20add\x20<name>\x0a','GKzdP':_0x4430c3(0x1f5)};console[_0x4430c3(0x1fa)](_0x373347['KCjYf'](_0x373347['KCjYf'](_0x4430c3(0x1f6),'session\x20state\x20for\x20you,\x20so\x20encrypted\x20on-disk\x20auth\x20is\x20unnecessary.\x0a')+'\x0a'+_0x373347[_0x4430c3(0x1f9)]+_0x373347[_0x4430c3(0x1f4)]+'\x0a'+_0x373347['GKzdP'],'\x20\x20https://docs.ranger.net/main/concepts/profiles')),process[_0x4430c3(0x1fd)](0x1);}
1
+ (function(_0x3ab63e,_0xa05e35){var _0x265a8c=_0x3ba1,_0x39312c=_0x3ab63e();while(!![]){try{var _0x450721=-parseInt(_0x265a8c(0x1a0))/0x1*(parseInt(_0x265a8c(0x197))/0x2)+parseInt(_0x265a8c(0x1a1))/0x3+parseInt(_0x265a8c(0x195))/0x4+parseInt(_0x265a8c(0x1a3))/0x5*(parseInt(_0x265a8c(0x19d))/0x6)+-parseInt(_0x265a8c(0x1a4))/0x7*(parseInt(_0x265a8c(0x19e))/0x8)+parseInt(_0x265a8c(0x199))/0x9+-parseInt(_0x265a8c(0x198))/0xa;if(_0x450721===_0xa05e35)break;else _0x39312c['push'](_0x39312c['shift']());}catch(_0x5257cf){_0x39312c['push'](_0x39312c['shift']());}}}(_0x53d7,0xe4794));function _0x53d7(){var _0x47a1b0=['5613210cIVBwd','\x20\x20https://docs.ranger.net/main/concepts/profiles','error','To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','54LsdKBd','16fxaBVn','exit','333639tuDgQr','1942407RmUGQF','fAreM','422605vmjqLy','978922TLmcDo','ranger\x20profile\x20encrypt-auth\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x0a','session\x20state\x20for\x20you,\x20so\x20encrypted\x20on-disk\x20auth\x20is\x20unnecessary.\x0a','vtakd','nZrRz','6537628rEGvwS','jWaUY','6lrPBcu','14498180oalQPR'];_0x53d7=function(){return _0x47a1b0;};return _0x53d7();}function _0x3ba1(_0x205495,_0x5c472c){_0x205495=_0x205495-0x193;var _0x53d721=_0x53d7();var _0x3ba19b=_0x53d721[_0x205495];return _0x3ba19b;}export async function authEncrypt(_0x3bfc77){var _0x52d1f7=_0x3ba1,_0x58bf18={'nZrRz':function(_0x45c0ea,_0x1fecb0){return _0x45c0ea+_0x1fecb0;},'vtakd':function(_0x353446,_0x5a0102){return _0x353446+_0x5a0102;},'fAreM':function(_0x508928,_0xb949b4){return _0x508928+_0xb949b4;},'aAMMA':function(_0x3d8f9b,_0x11e25d){return _0x3d8f9b+_0x11e25d;},'pVezR':_0x52d1f7(0x1a6),'jWaUY':_0x52d1f7(0x19a)};console[_0x52d1f7(0x19b)](_0x58bf18[_0x52d1f7(0x194)](_0x58bf18['nZrRz'](_0x58bf18[_0x52d1f7(0x193)](_0x58bf18[_0x52d1f7(0x1a2)](_0x58bf18['aAMMA'](_0x52d1f7(0x1a5),_0x58bf18['pVezR'])+'\x0a',_0x52d1f7(0x19c)),'\x20\x20ranger\x20profile\x20add\x20<name>\x0a'),'\x0a'),'For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a')+_0x58bf18[_0x52d1f7(0x196)]),process[_0x52d1f7(0x19f)](0x1);}
@@ -1 +1 @@
1
- const _0x167a59=_0x57a5;(function(_0x4cfb24,_0x30afe3){const _0x447656=_0x57a5,_0x4d7b9a=_0x4cfb24();while(!![]){try{const _0x37c62d=-parseInt(_0x447656(0xf2))/0x1*(parseInt(_0x447656(0x10f))/0x2)+-parseInt(_0x447656(0xf0))/0x3*(-parseInt(_0x447656(0x11d))/0x4)+-parseInt(_0x447656(0x10c))/0x5*(-parseInt(_0x447656(0x121))/0x6)+-parseInt(_0x447656(0x11b))/0x7*(-parseInt(_0x447656(0xfa))/0x8)+parseInt(_0x447656(0xfd))/0x9+-parseInt(_0x447656(0xf9))/0xa+-parseInt(_0x447656(0x119))/0xb*(-parseInt(_0x447656(0x10e))/0xc);if(_0x37c62d===_0x30afe3)break;else _0x4d7b9a['push'](_0x4d7b9a['shift']());}catch(_0x1d604d){_0x4d7b9a['push'](_0x4d7b9a['shift']());}}}(_0x1794,0x5ac17));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';function _0x1794(){const _0x2d3f2d=['12sxOPOm','58444pZpqlE','LGLaz','JBtZk','\x0a✅\x20Cleanup\x20complete!\x0a','qgweW','isArray','opencode.json','close','JPKnk','fyKhb','1151711fypGfK','rYNkb','2858198ecTzbq','XOOWd','381884JTyyzz','push','GANqW','✓\x20Removed\x20.ranger/\x20directory','297324VvuiWi','✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','plugin','platform','PDrMH','gPhPN','AlLjW','✓\x20Removed\x20OpenCode\x20project\x20skill:\x20','parse','length','rJCgD','✓\x20Removed\x20trailhead\x20marketplace','kRLoP','CiXGc','9GlZzzt','hbSaT','19hfRGZb','\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','@ranger-testing/opencode-plugin','NdMiQ','filter','error','remove','4803900wAzcwi','8ZWvdse','FNCNV','✓\x20Removed\x20user\x20skill:\x20','4579263SduJDl','user','MjzuE','win32','replace','project','log','rtiSh','VeyOv','ukJll','UtsUT','marketplace','ZXmZu','ddeZR','ignore','10nvCLhv','XtqXh'];_0x1794=function(){return _0x2d3f2d;};return _0x1794();}import{existsSync}from'fs';import{spawn}from'child_process';import{deleteAllCredentials}from'./utils/keychain.js';import{getProjectRoot,getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';function _0x57a5(_0x45cfae,_0x5c8d9e){_0x45cfae=_0x45cfae-0xe3;const _0x1794bb=_0x1794();let _0x57a528=_0x1794bb[_0x45cfae];return _0x57a528;}import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=['ranger','feature-tracker','bug-bash','e2e-test-recommender'],opencodePluginName=_0x167a59(0xf4);function parseJsonc(_0x2afa8a){const _0x2445c2=_0x167a59,_0x416aab=_0x2afa8a['replace'](/\/\*[\s\S]*?\*\//g,''),_0xab41c=_0x416aab[_0x2445c2(0x101)](/^\s*\/\/.*$/gm,''),_0x40a659=_0xab41c[_0x2445c2(0x101)](/,\s*([}\]])/g,'$1');return JSON[_0x2445c2(0xea)](_0x40a659);}async function removeOpencodePluginConfig(_0x142119){const _0x3434e5=_0x167a59,_0x5386da={'VeyOv':function(_0x3ddfda,_0x445c2c){return _0x3ddfda!==_0x445c2c;},'Pthrj':'string','YZZgM':function(_0x461ee7,_0x5dc18d){return _0x461ee7(_0x5dc18d);},'UtsUT':function(_0x237519,_0xa6589f,_0x3871d7){return _0x237519(_0xa6589f,_0x3871d7);},'JBtZk':function(_0x51e98c,_0x497696){return _0x51e98c===_0x497696;},'LdVuo':function(_0x278404,_0x5afce8){return _0x278404===_0x5afce8;},'gPhPN':function(_0x5de9a2,_0xcfdb4){return _0x5de9a2+_0xcfdb4;}};if(!_0x5386da['YZZgM'](existsSync,_0x142119))return![];let _0x14d604;try{const _0xa301bb=await _0x5386da['UtsUT'](readFile,_0x142119,'utf-8');_0x14d604=parseJsonc(_0xa301bb);}catch{return![];}const _0x3c450a=Array[_0x3434e5(0x114)](_0x14d604[_0x3434e5(0xe4)])?_0x14d604['plugin']:[];if(_0x5386da[_0x3434e5(0x111)](_0x3c450a[_0x3434e5(0xeb)],0x0))return![];const _0x261bd1=_0x3c450a[_0x3434e5(0xf6)](_0x15a9d9=>{const _0x2de863=_0x3434e5;if(_0x5386da[_0x2de863(0x105)](typeof _0x15a9d9,_0x5386da['Pthrj']))return!![];return _0x15a9d9!==opencodePluginName;});if(_0x5386da['LdVuo'](_0x261bd1[_0x3434e5(0xeb)],_0x3c450a[_0x3434e5(0xeb)]))return![];return _0x5386da[_0x3434e5(0x111)](_0x261bd1[_0x3434e5(0xeb)],0x0)?delete _0x14d604['plugin']:_0x14d604[_0x3434e5(0xe4)]=_0x261bd1,await _0x5386da[_0x3434e5(0x107)](writeFile,_0x142119,_0x5386da[_0x3434e5(0xe7)](JSON['stringify'](_0x14d604,null,0x2),'\x0a')),!![];}async function uninstallClaudePlugin(_0x3708e7){const _0x6136ba=_0x167a59,_0x5da422={'ZXmZu':_0x6136ba(0xe4),'rtiSh':'uninstall','RRlMJ':'--scope','ukJll':function(_0x15bb86,_0x4f0efc,_0x3b5352,_0x17f368){return _0x15bb86(_0x4f0efc,_0x3b5352,_0x17f368);},'ueUzj':'claude','fyKhb':_0x6136ba(0x10b),'JPKnk':function(_0x5d54d7){return _0x5d54d7();}};return new Promise(_0x510205=>{const _0x2f44cb=_0x6136ba,_0x3e63fd=[_0x5da422[_0x2f44cb(0x109)],_0x5da422[_0x2f44cb(0x104)],'ranger@trailhead'];_0x3708e7&&_0x3e63fd[_0x2f44cb(0x11e)](_0x5da422['RRlMJ'],_0x3708e7);const _0x4c7417=_0x5da422[_0x2f44cb(0x106)](spawn,_0x5da422['ueUzj'],_0x3e63fd,{'stdio':[_0x5da422[_0x2f44cb(0x118)],_0x5da422['fyKhb'],_0x2f44cb(0x10b)],'cwd':_0x3708e7?_0x5da422[_0x2f44cb(0x117)](getProjectRoot):undefined,'shell':process[_0x2f44cb(0xe5)]==='win32'});_0x4c7417['on'](_0x2f44cb(0x116),_0x5516af=>{_0x510205(_0x5516af===0x0);}),_0x4c7417['on']('error',()=>{_0x510205(![]);});});}async function removeMarketplace(){const _0x770a33=_0x167a59,_0x45522b={'WwIiz':function(_0x4092a7,_0x28e560){return _0x4092a7(_0x28e560);},'fLRqE':function(_0x58e83d,_0x46b477,_0x16b65b,_0x487169){return _0x58e83d(_0x46b477,_0x16b65b,_0x487169);},'ndaPR':'claude','zEHFe':_0x770a33(0x108),'kRLoP':'ignore','Hvhep':function(_0x428421,_0x32bdfd){return _0x428421===_0x32bdfd;},'ucxtI':'close','rJCgD':_0x770a33(0xf7)};return new Promise(_0x1c4d11=>{const _0x350fa3=_0x770a33,_0x2778f3=_0x45522b['fLRqE'](spawn,_0x45522b['ndaPR'],[_0x350fa3(0xe4),_0x45522b['zEHFe'],_0x350fa3(0xf8),'trailhead'],{'stdio':[_0x350fa3(0x10b),_0x45522b[_0x350fa3(0xee)],_0x45522b['kRLoP']],'shell':_0x45522b['Hvhep'](process['platform'],_0x350fa3(0x100))});_0x2778f3['on'](_0x45522b['ucxtI'],_0x49fe9b=>{_0x1c4d11(_0x49fe9b===0x0);}),_0x2778f3['on'](_0x45522b[_0x350fa3(0xec)],()=>{_0x45522b['WwIiz'](_0x1c4d11,![]);});});}export async function clean(){const _0x3c1b1b=_0x167a59,_0x3a1d9a={'aZhAE':function(_0x153017){return _0x153017();},'zbDLM':'✓\x20Removed\x20stored\x20credentials','TOoDT':function(_0x180311,_0x162318){return _0x180311(_0x162318);},'NdMiQ':function(_0x34ec22){return _0x34ec22();},'CiXGc':function(_0x47615a,_0x1f5f40){return _0x47615a(_0x1f5f40);},'MjzuE':_0x3c1b1b(0x120),'rYNkb':function(_0xdad3d0){return _0xdad3d0();},'LGLaz':function(_0x2bbadd,_0x14f123,_0x56d739){return _0x2bbadd(_0x14f123,_0x56d739);},'FNCNV':function(_0x161e3f,_0x520ce7){return _0x161e3f(_0x520ce7);},'ddeZR':_0x3c1b1b(0x102),'qgweW':function(_0x5f1d04,_0xb9b9b,_0x42ced6){return _0x5f1d04(_0xb9b9b,_0x42ced6);},'XOOWd':_0x3c1b1b(0x115),'hbSaT':function(_0x3c0ace,_0x383fd4){return _0x3c0ace(_0x383fd4);},'GANqW':'✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','afjES':function(_0x3876f3,_0x271040){return _0x3876f3(_0x271040);},'XtqXh':'✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','ReRek':_0x3c1b1b(0xe3),'AlLjW':_0x3c1b1b(0xed),'PDrMH':_0x3c1b1b(0x112),'aMKzJ':'Nothing\x20to\x20clean\x20up.\x0a'};console['log'](_0x3c1b1b(0xf3));let _0x2ad03f=![];try{await _0x3a1d9a['aZhAE'](deleteAllCredentials),console['log'](_0x3a1d9a['zbDLM']),_0x2ad03f=!![];}catch{}const _0x2de3d7=getCacheFile();_0x3a1d9a['TOoDT'](existsSync,_0x2de3d7)&&(await _0x3a1d9a['TOoDT'](rm,_0x2de3d7),_0x2ad03f=!![]);const _0x1b28f3=_0x3a1d9a[_0x3c1b1b(0xf5)](getRangerDir);_0x3a1d9a['CiXGc'](existsSync,_0x1b28f3)&&(await rm(_0x1b28f3,{'recursive':!![]}),console[_0x3c1b1b(0x103)](_0x3a1d9a[_0x3c1b1b(0xff)]),_0x2ad03f=!![]);const _0x414810=_0x3a1d9a[_0x3c1b1b(0x11a)](getProjectSkillsDir);for(const _0x4c4707 of skillsToRemove){const _0x33d633=_0x3a1d9a['LGLaz'](join,_0x414810,_0x4c4707);_0x3a1d9a['FNCNV'](existsSync,_0x33d633)&&(await rm(_0x33d633,{'recursive':!![]}),console['log']('✓\x20Removed\x20project\x20skill:\x20'+_0x4c4707),_0x2ad03f=!![]);}const _0x2ec510=getUserSkillsDir();for(const _0x1e9dd1 of skillsToRemove){const _0x461e80=_0x3a1d9a['LGLaz'](join,_0x2ec510,_0x1e9dd1);_0x3a1d9a[_0x3c1b1b(0xfb)](existsSync,_0x461e80)&&(await _0x3a1d9a[_0x3c1b1b(0x110)](rm,_0x461e80,{'recursive':!![]}),console['log'](_0x3c1b1b(0xfc)+_0x1e9dd1),_0x2ad03f=!![]);}const _0x317668=getOpencodeSkillsDir(_0x3a1d9a[_0x3c1b1b(0x10a)]);for(const _0x44d43c of skillsToRemove){const _0x203c73=join(_0x317668,_0x44d43c);_0x3a1d9a[_0x3c1b1b(0xef)](existsSync,_0x203c73)&&(await rm(_0x203c73,{'recursive':!![]}),console[_0x3c1b1b(0x103)](_0x3c1b1b(0xe9)+_0x44d43c),_0x2ad03f=!![]);}const _0x420d37=_0x3a1d9a[_0x3c1b1b(0xfb)](getOpencodeSkillsDir,_0x3c1b1b(0xfe));for(const _0x4b0fb5 of skillsToRemove){const _0x379fcf=_0x3a1d9a[_0x3c1b1b(0x113)](join,_0x420d37,_0x4b0fb5);existsSync(_0x379fcf)&&(await rm(_0x379fcf,{'recursive':!![]}),console['log']('✓\x20Removed\x20OpenCode\x20user\x20skill:\x20'+_0x4b0fb5),_0x2ad03f=!![]);}const _0x2bc4ee=_0x3a1d9a[_0x3c1b1b(0x113)](join,_0x3a1d9a['FNCNV'](getOpencodeConfigDir,_0x3a1d9a[_0x3c1b1b(0x10a)]),_0x3a1d9a[_0x3c1b1b(0x11c)]);await _0x3a1d9a[_0x3c1b1b(0xf1)](removeOpencodePluginConfig,_0x2bc4ee)&&(console[_0x3c1b1b(0x103)](_0x3a1d9a[_0x3c1b1b(0x11f)]),_0x2ad03f=!![]);const _0x37c916=join(_0x3a1d9a['afjES'](getOpencodeConfigDir,'user'),'opencode.json');await removeOpencodePluginConfig(_0x37c916)&&(console[_0x3c1b1b(0x103)](_0x3a1d9a[_0x3c1b1b(0x10d)]),_0x2ad03f=!![]);const _0xe4fe93=await _0x3a1d9a[_0x3c1b1b(0x11a)](uninstallClaudePlugin);_0xe4fe93&&(console[_0x3c1b1b(0x103)]('✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)'),_0x2ad03f=!![]);const _0xf9cd27=await _0x3a1d9a['TOoDT'](uninstallClaudePlugin,_0x3a1d9a[_0x3c1b1b(0x10a)]);_0xf9cd27&&(console['log'](_0x3a1d9a['ReRek']),_0x2ad03f=!![]);const _0x28e4b7=await removeMarketplace();_0x28e4b7&&(console[_0x3c1b1b(0x103)](_0x3a1d9a[_0x3c1b1b(0xe8)]),_0x2ad03f=!![]),_0x2ad03f?console[_0x3c1b1b(0x103)](_0x3a1d9a[_0x3c1b1b(0xe6)]):console[_0x3c1b1b(0x103)](_0x3a1d9a['aMKzJ']);}
1
+ const _0x277e57=_0x25d3;function _0x25d3(_0x3f6d34,_0x3bbf1e){_0x3f6d34=_0x3f6d34-0x1f1;const _0x1e4b4f=_0x1e4b();let _0x25d320=_0x1e4b4f[_0x3f6d34];return _0x25d320;}(function(_0x5c43bb,_0x42c931){const _0xcf29=_0x25d3,_0x2e220d=_0x5c43bb();while(!![]){try{const _0x61ff87=parseInt(_0xcf29(0x20f))/0x1+parseInt(_0xcf29(0x21f))/0x2+-parseInt(_0xcf29(0x226))/0x3*(-parseInt(_0xcf29(0x1fc))/0x4)+-parseInt(_0xcf29(0x218))/0x5+parseInt(_0xcf29(0x1fb))/0x6+parseInt(_0xcf29(0x1f7))/0x7+parseInt(_0xcf29(0x219))/0x8*(-parseInt(_0xcf29(0x1f4))/0x9);if(_0x61ff87===_0x42c931)break;else _0x2e220d['push'](_0x2e220d['shift']());}catch(_0x5dd5e7){_0x2e220d['push'](_0x2e220d['shift']());}}}(_0x1e4b,0x7f5a7));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';import{deleteAllCredentials}from'./utils/keychain.js';import{getProjectRoot,getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';function _0x1e4b(){const _0x388427=['XLPKj','5115292UGbuIc','ignore','✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','uninstall','5721024FtKmMK','124VPLQdh','Yfjlz','✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','ffcGc','OiBls','project','platform','parse','\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','length','GUwAy','RbvNK','UCvtb','plugin','uuuqn','✓\x20Removed\x20user\x20skill:\x20','trailhead','log','user','355854MFYywL','filter','opencode.json','✓\x20Removed\x20OpenCode\x20user\x20skill:\x20','win32','VtjXQ','mvkfy','baytl','gjwXg','311130TjeVME','24365456ZTKtNh','dVePN','stringify','YCyNM','string','✓\x20Removed\x20.ranger/\x20directory','1999936PsDDlr','vLNyW','PaUGr','FlyvG','error','claude','nRYCu','57045gfEVRC','replace','JFMgo','close','9OIcjgP','feature-tracker'];_0x1e4b=function(){return _0x388427;};return _0x1e4b();}import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=['ranger',_0x277e57(0x1f5),'bug-bash','e2e-test-recommender'],opencodePluginName='@ranger-testing/opencode-plugin';function parseJsonc(_0x562168){const _0x1edea6=_0x277e57,_0x22ae8f=_0x562168['replace'](/\/\*[\s\S]*?\*\//g,''),_0xbdafb2=_0x22ae8f[_0x1edea6(0x1f1)](/^\s*\/\/.*$/gm,''),_0x4b2192=_0xbdafb2['replace'](/,\s*([}\]])/g,'$1');return JSON[_0x1edea6(0x203)](_0x4b2192);}async function removeOpencodePluginConfig(_0x5f5a40){const _0xbf4f54=_0x277e57,_0x48d106={'JFMgo':_0xbf4f54(0x21d),'XLPKj':function(_0x18dcc0,_0x28d88c){return _0x18dcc0!==_0x28d88c;},'YCyNM':function(_0x1fb865,_0x158e1c){return _0x1fb865(_0x158e1c);},'ffcGc':function(_0x4e4916,_0x482708){return _0x4e4916===_0x482708;},'NrHwd':function(_0x398df3,_0x52fd4a,_0x424ca5){return _0x398df3(_0x52fd4a,_0x424ca5);},'mvkfy':function(_0x35b795,_0x57602d){return _0x35b795+_0x57602d;}};if(!_0x48d106[_0xbf4f54(0x21c)](existsSync,_0x5f5a40))return![];let _0x40574b;try{const _0x43f6f5=await readFile(_0x5f5a40,'utf-8');_0x40574b=_0x48d106[_0xbf4f54(0x21c)](parseJsonc,_0x43f6f5);}catch{return![];}const _0x1e0806=Array['isArray'](_0x40574b[_0xbf4f54(0x209)])?_0x40574b['plugin']:[];if(_0x48d106[_0xbf4f54(0x1ff)](_0x1e0806['length'],0x0))return![];const _0x385bf5=_0x1e0806[_0xbf4f54(0x210)](_0xbaf5d7=>{const _0x3f4d3a=_0xbf4f54;if(typeof _0xbaf5d7!==_0x48d106[_0x3f4d3a(0x1f2)])return!![];return _0x48d106[_0x3f4d3a(0x1f6)](_0xbaf5d7,opencodePluginName);});if(_0x385bf5['length']===_0x1e0806['length'])return![];return _0x385bf5[_0xbf4f54(0x205)]===0x0?delete _0x40574b['plugin']:_0x40574b[_0xbf4f54(0x209)]=_0x385bf5,await _0x48d106['NrHwd'](writeFile,_0x5f5a40,_0x48d106[_0xbf4f54(0x215)](JSON[_0xbf4f54(0x21b)](_0x40574b,null,0x2),'\x0a')),!![];}async function uninstallClaudePlugin(_0x31a7d2){const _0x3f7773=_0x277e57,_0x461465={'TfIvV':function(_0x1603bb,_0x4eb59b){return _0x1603bb===_0x4eb59b;},'uuuqn':function(_0x3f2177,_0x581617){return _0x3f2177(_0x581617);},'PrJFk':_0x3f7773(0x209),'qwQlo':_0x3f7773(0x1fa),'gjwXg':'ranger@trailhead','vLNyW':'--scope','PaUGr':function(_0x4f1839,_0x3fb17b,_0x367af8,_0x3e95bf){return _0x4f1839(_0x3fb17b,_0x367af8,_0x3e95bf);},'RbvNK':_0x3f7773(0x1f8),'ffJOc':function(_0x39692e){return _0x39692e();},'dVePN':_0x3f7773(0x1f3)};return new Promise(_0x4687ff=>{const _0x3ce4e3=_0x3f7773,_0x145d21=[_0x461465['PrJFk'],_0x461465['qwQlo'],_0x461465[_0x3ce4e3(0x217)]];_0x31a7d2&&_0x145d21['push'](_0x461465[_0x3ce4e3(0x220)],_0x31a7d2);const _0x2a1761=_0x461465[_0x3ce4e3(0x221)](spawn,_0x3ce4e3(0x224),_0x145d21,{'stdio':[_0x461465[_0x3ce4e3(0x207)],_0x3ce4e3(0x1f8),_0x461465[_0x3ce4e3(0x207)]],'cwd':_0x31a7d2?_0x461465['ffJOc'](getProjectRoot):undefined,'shell':process['platform']===_0x3ce4e3(0x213)});_0x2a1761['on'](_0x461465[_0x3ce4e3(0x21a)],_0xe1ae65=>{_0x4687ff(_0x461465['TfIvV'](_0xe1ae65,0x0));}),_0x2a1761['on'](_0x3ce4e3(0x223),()=>{const _0x245b0e=_0x3ce4e3;_0x461465[_0x245b0e(0x20a)](_0x4687ff,![]);});});}async function removeMarketplace(){const _0x2272bb=_0x277e57,_0x18a4a7={'mHIjC':function(_0x15e284,_0x3726fc){return _0x15e284===_0x3726fc;},'GSzsm':function(_0x7186e3,_0x54c82a){return _0x7186e3(_0x54c82a);},'RSxui':function(_0x2ea011,_0x26250b,_0x4586c8,_0x12de52){return _0x2ea011(_0x26250b,_0x4586c8,_0x12de52);},'UCvtb':'claude','Yfjlz':_0x2272bb(0x209),'OiBls':_0x2272bb(0x213)};return new Promise(_0x75dd18=>{const _0x35130f=_0x2272bb,_0xd2cd7e=_0x18a4a7['RSxui'](spawn,_0x18a4a7[_0x35130f(0x208)],[_0x18a4a7[_0x35130f(0x1fd)],'marketplace','remove',_0x35130f(0x20c)],{'stdio':['ignore',_0x35130f(0x1f8),'ignore'],'shell':process[_0x35130f(0x202)]===_0x18a4a7[_0x35130f(0x200)]});_0xd2cd7e['on'](_0x35130f(0x1f3),_0x5ee4d3=>{_0x75dd18(_0x18a4a7['mHIjC'](_0x5ee4d3,0x0));}),_0xd2cd7e['on']('error',()=>{_0x18a4a7['GSzsm'](_0x75dd18,![]);});});}export async function clean(){const _0x4983ad=_0x277e57,_0x226baa={'FlyvG':'✓\x20Removed\x20stored\x20credentials','nRYCu':function(_0x206026,_0x255f11){return _0x206026(_0x255f11);},'usajN':function(_0x3dd27f){return _0x3dd27f();},'VtjXQ':function(_0x54a74c,_0x47be14,_0x25d416){return _0x54a74c(_0x47be14,_0x25d416);},'FUwbW':_0x4983ad(0x20e),'GUwAy':function(_0x18742a,_0x586720,_0x48beb8){return _0x18742a(_0x586720,_0x48beb8);},'baytl':_0x4983ad(0x1f9),'zgDje':function(_0x28e82a){return _0x28e82a();},'eLhhx':_0x4983ad(0x201),'vDzZK':_0x4983ad(0x1fe),'BSJyc':'Nothing\x20to\x20clean\x20up.\x0a'};console[_0x4983ad(0x20d)](_0x4983ad(0x204));let _0x475942=![];try{await deleteAllCredentials(),console['log'](_0x226baa[_0x4983ad(0x222)]),_0x475942=!![];}catch{}const _0x36b2bb=getCacheFile();_0x226baa[_0x4983ad(0x225)](existsSync,_0x36b2bb)&&(await _0x226baa[_0x4983ad(0x225)](rm,_0x36b2bb),_0x475942=!![]);const _0x4b502d=getRangerDir();existsSync(_0x4b502d)&&(await rm(_0x4b502d,{'recursive':!![]}),console[_0x4983ad(0x20d)](_0x4983ad(0x21e)),_0x475942=!![]);const _0x469548=_0x226baa['usajN'](getProjectSkillsDir);for(const _0x1224ce of skillsToRemove){const _0x2e0436=_0x226baa[_0x4983ad(0x214)](join,_0x469548,_0x1224ce);_0x226baa['nRYCu'](existsSync,_0x2e0436)&&(await _0x226baa[_0x4983ad(0x214)](rm,_0x2e0436,{'recursive':!![]}),console[_0x4983ad(0x20d)]('✓\x20Removed\x20project\x20skill:\x20'+_0x1224ce),_0x475942=!![]);}const _0x5df509=getUserSkillsDir();for(const _0x2d4799 of skillsToRemove){const _0x24859f=join(_0x5df509,_0x2d4799);_0x226baa[_0x4983ad(0x225)](existsSync,_0x24859f)&&(await rm(_0x24859f,{'recursive':!![]}),console[_0x4983ad(0x20d)](_0x4983ad(0x20b)+_0x2d4799),_0x475942=!![]);}const _0x491fc0=getOpencodeSkillsDir('project');for(const _0xe260c7 of skillsToRemove){const _0x118929=_0x226baa['VtjXQ'](join,_0x491fc0,_0xe260c7);existsSync(_0x118929)&&(await rm(_0x118929,{'recursive':!![]}),console[_0x4983ad(0x20d)]('✓\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0xe260c7),_0x475942=!![]);}const _0x59f65b=getOpencodeSkillsDir(_0x226baa['FUwbW']);for(const _0x4d661d of skillsToRemove){const _0x223919=_0x226baa[_0x4983ad(0x214)](join,_0x59f65b,_0x4d661d);existsSync(_0x223919)&&(await rm(_0x223919,{'recursive':!![]}),console['log'](_0x4983ad(0x212)+_0x4d661d),_0x475942=!![]);}const _0x3e579e=join(getOpencodeConfigDir('project'),_0x4983ad(0x211));await _0x226baa['nRYCu'](removeOpencodePluginConfig,_0x3e579e)&&(console[_0x4983ad(0x20d)]('✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)'),_0x475942=!![]);const _0x2dcc92=_0x226baa[_0x4983ad(0x206)](join,getOpencodeConfigDir(_0x226baa['FUwbW']),'opencode.json');await _0x226baa['nRYCu'](removeOpencodePluginConfig,_0x2dcc92)&&(console[_0x4983ad(0x20d)](_0x226baa[_0x4983ad(0x216)]),_0x475942=!![]);const _0x5348c3=await _0x226baa['zgDje'](uninstallClaudePlugin);_0x5348c3&&(console['log']('✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)'),_0x475942=!![]);const _0x4374ca=await _0x226baa[_0x4983ad(0x225)](uninstallClaudePlugin,_0x226baa['eLhhx']);_0x4374ca&&(console[_0x4983ad(0x20d)](_0x226baa['vDzZK']),_0x475942=!![]);const _0x5bd611=await _0x226baa['usajN'](removeMarketplace);_0x5bd611&&(console[_0x4983ad(0x20d)]('✓\x20Removed\x20trailhead\x20marketplace'),_0x475942=!![]),_0x475942?console['log']('\x0a✅\x20Cleanup\x20complete!\x0a'):console['log'](_0x226baa['BSJyc']);}
@@ -1 +1 @@
1
- const _0x7eba42=_0x4cf8;(function(_0x1ae65e,_0x3b7b1b){const _0x4e1717=_0x4cf8,_0x10b3b1=_0x1ae65e();while(!![]){try{const _0x199c58=-parseInt(_0x4e1717(0x106))/0x1+-parseInt(_0x4e1717(0xf2))/0x2*(-parseInt(_0x4e1717(0x103))/0x3)+parseInt(_0x4e1717(0x102))/0x4*(parseInt(_0x4e1717(0xfb))/0x5)+parseInt(_0x4e1717(0x10e))/0x6*(-parseInt(_0x4e1717(0xf8))/0x7)+parseInt(_0x4e1717(0xec))/0x8*(-parseInt(_0x4e1717(0x105))/0x9)+parseInt(_0x4e1717(0xfd))/0xa+parseInt(_0x4e1717(0xfc))/0xb;if(_0x199c58===_0x3b7b1b)break;else _0x10b3b1['push'](_0x10b3b1['shift']());}catch(_0x525cf1){_0x10b3b1['push'](_0x10b3b1['shift']());}}}(_0x23ea,0x9e53f));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';const BOOLEAN_KEYS=['headless',_0x7eba42(0x10c),'forceLogin'];function parseLocalValue(_0x17e9cc,_0x591b15){const _0x2b1ec1=_0x7eba42,_0x1e08b8={'ufLWH':'false'};if(BOOLEAN_KEYS[_0x2b1ec1(0x113)](_0x17e9cc)){if(_0x591b15===_0x2b1ec1(0xe8))return!![];if(_0x591b15===_0x1e08b8['ufLWH'])return![];throw new Error(_0x2b1ec1(0xe9)+_0x17e9cc+':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22');}return _0x591b15;}function parseOverrideValue(_0x3243e4){const _0x1c944b=_0x7eba42,_0x15b5a3={'yMOCg':function(_0x566b69,_0xeb2555){return _0x566b69===_0xeb2555;},'eTPJz':function(_0x4dba58,_0xc3aa62){return _0x4dba58===_0xc3aa62;},'wYuzS':_0x1c944b(0xee)};if(_0x3243e4===_0x1c944b(0xe8))return!![];if(_0x15b5a3['yMOCg'](_0x3243e4,'false'))return![];if(_0x15b5a3[_0x1c944b(0xf3)](_0x3243e4,'null'))return null;if(_0x3243e4===_0x15b5a3['wYuzS'])return undefined;if(/^-?\d+$/[_0x1c944b(0xf7)](_0x3243e4)){const _0x44fe66=Number(_0x3243e4);if(Number['isSafeInteger'](_0x44fe66))return _0x44fe66;}if(/^-?\d+\.\d+$/[_0x1c944b(0xf7)](_0x3243e4)){const _0x11b51f=Number(_0x3243e4);if(!Number[_0x1c944b(0xe7)](_0x11b51f))return _0x11b51f;}const _0x3e79df=_0x3243e4[_0x1c944b(0xef)]();if(_0x3e79df['startsWith']('{')&&_0x3e79df[_0x1c944b(0x10d)]('}')||_0x3e79df[_0x1c944b(0xff)]('[')&&_0x3e79df[_0x1c944b(0x10d)](']'))try{return JSON[_0x1c944b(0x104)](_0x3e79df);}catch{}return _0x3243e4;}async function resolveProfileTarget(_0x3f9a65){const _0x33775d={'edggX':function(_0x1c0c14,_0x4f428d){return _0x1c0c14(_0x4f428d);},'NOXGe':'local'},_0xd69969=existsSync(getEnvDir(_0x3f9a65));let _0x317e60=![];try{const _0x53b1f2=await fetchCloudProfile(_0x3f9a65);_0x317e60=_0x33775d['edggX'](Boolean,_0x53b1f2);}catch{}if(_0x317e60)return{'kind':'cloud','alsoExistsElsewhere':_0xd69969};if(_0xd69969)return{'kind':_0x33775d['NOXGe'],'alsoExistsElsewhere':![]};throw new Error('Profile\x20\x22'+_0x3f9a65+'\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x3f9a65);}function _0x4cf8(_0x5709e5,_0x4a4396){_0x5709e5=_0x5709e5-0xe6;const _0x23ea9a=_0x23ea();let _0x4cf8ca=_0x23ea9a[_0x5709e5];return _0x4cf8ca;}function printDualExistsHint(_0x33e0a1){const _0x5b6719=_0x7eba42;console['log'](_0x5b6719(0x101)+_0x33e0a1+'\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.');}function getProjectPath(){return process['cwd']();}async function loadEffectiveCloudSettings(_0xd55985){const _0x1610b7=_0x7eba42,_0x52a876={'hkosH':function(_0x43c8c0,_0x14866c){return _0x43c8c0(_0x14866c);},'mvrMs':function(_0x1800e9,_0x23c86a,_0x1f9719){return _0x1800e9(_0x23c86a,_0x1f9719);},'uktZb':function(_0x375dbc,_0x480e06){return _0x375dbc??_0x480e06;}},_0x15a663=await _0x52a876[_0x1610b7(0xf6)](fetchCloudProfile,_0xd55985),_0x3fe77a=readProfileOverrides(getProjectPath(),_0xd55985);return _0x52a876[_0x1610b7(0xf1)](mergeCloudProfileSettings,_0x15a663?.['settings']??{},_0x52a876[_0x1610b7(0x10b)](_0x3fe77a,undefined));}export async function configSet(_0x42bd46,_0x2e521f,_0x49adca){const _0x57c48b=_0x7eba42,_0x45f706={'wLhQo':function(_0x529332,_0x5b1558){return _0x529332(_0x5b1558);},'QZhpw':function(_0x1947da,_0x3debae){return _0x1947da===_0x3debae;},'OxBPS':function(_0xcef653,_0x859665,_0x5f25e9,_0x508e3b,_0x2e8e9c){return _0xcef653(_0x859665,_0x5f25e9,_0x508e3b,_0x2e8e9c);},'SwBsM':function(_0x2d836a){return _0x2d836a();},'cprXc':function(_0x44af85,_0x3630a4,_0x4760e0,_0x534402,_0xfdc802){return _0x44af85(_0x3630a4,_0x4760e0,_0x534402,_0xfdc802);},'MstSa':function(_0x163009){return _0x163009();}},_0x574783=await _0x45f706['wLhQo'](resolveProfileTarget,_0x42bd46);if(_0x45f706['QZhpw'](_0x574783['kind'],_0x57c48b(0x111))){if(_0x574783['alsoExistsElsewhere'])printDualExistsHint(_0x42bd46);const _0x16c7b6=parseOverrideValue(_0x49adca);_0x45f706[_0x57c48b(0x10f)](setProfileOverride,_0x45f706[_0x57c48b(0xe6)](getProjectPath),_0x42bd46,_0x2e521f,_0x16c7b6),console['log']('Set\x20'+_0x2e521f+_0x57c48b(0xf0)+JSON['stringify'](_0x16c7b6)+'\x20for\x20\x22'+_0x42bd46+'\x22');return;}const _0x2964ed=parseLocalValue(_0x2e521f,_0x49adca);_0x45f706[_0x57c48b(0xf9)](setProfileOverride,_0x45f706[_0x57c48b(0x110)](getProjectPath),_0x42bd46,_0x2e521f,_0x2964ed),console['log']('Set\x20'+_0x2e521f+_0x57c48b(0xf0)+_0x2964ed+_0x57c48b(0xea)+_0x42bd46+'\x22');}export async function configGet(_0x89661f,_0x23e30c){const _0x3d57ff=_0x7eba42,_0x3fa0f5={'kDKUp':function(_0x5ae269,_0x5ba055){return _0x5ae269(_0x5ba055);},'gKWnB':function(_0x1afecc,_0x8a91f4,_0x70ddae){return _0x1afecc(_0x8a91f4,_0x70ddae);},'rqirw':function(_0x5e700b,_0x4fa6a4){return _0x5e700b===_0x4fa6a4;}},_0x37c316=await _0x3fa0f5['kDKUp'](resolveProfileTarget,_0x89661f);if(_0x37c316['kind']===_0x3d57ff(0x111)){const _0x16c5be=await loadEffectiveCloudSettings(_0x89661f),_0x1bab36=_0x3fa0f5[_0x3d57ff(0xed)](getNestedValue,_0x16c5be,_0x23e30c);if(_0x3fa0f5['rqirw'](_0x1bab36,undefined))console['log']('(not\x20set)');else typeof _0x1bab36===_0x3d57ff(0xf4)?console[_0x3d57ff(0x108)](JSON['stringify'](_0x1bab36,null,0x2)):console['log'](_0x1bab36);return;}const _0x3f8ccf=await _0x3fa0f5[_0x3d57ff(0xf5)](loadSettings,_0x89661f),_0x4790a7=getNestedValue(_0x3f8ccf,_0x23e30c);if(_0x4790a7===undefined)console['log'](_0x3d57ff(0x100));else typeof _0x4790a7===_0x3d57ff(0xf4)?console['log'](JSON[_0x3d57ff(0x112)](_0x4790a7,null,0x2)):console[_0x3d57ff(0x108)](_0x4790a7);}export async function configList(_0x356718){const _0x23a09f=_0x7eba42,_0x166482={'VOiUM':function(_0x4b8268,_0x62e82f){return _0x4b8268(_0x62e82f);},'zkGkm':function(_0x1bea60,_0x4a3e8f){return _0x1bea60===_0x4a3e8f;}},_0x54ffb6=await _0x166482['VOiUM'](resolveProfileTarget,_0x356718);if(_0x166482['zkGkm'](_0x54ffb6[_0x23a09f(0xfe)],_0x23a09f(0x111))){const _0x5c63b6=await _0x166482['VOiUM'](loadEffectiveCloudSettings,_0x356718);if(!_0x5c63b6||_0x166482[_0x23a09f(0xeb)](Object['keys'](_0x5c63b6)['length'],0x0)){console[_0x23a09f(0x108)]('No\x20configuration\x20set\x20for\x20\x22'+_0x356718+'\x22');return;}console['log'](JSON[_0x23a09f(0x112)](_0x5c63b6,null,0x2));return;}const _0x2534af=_0x166482['VOiUM'](getSettingsPath,_0x356718);if(!existsSync(_0x2534af)){console[_0x23a09f(0x108)]('No\x20configuration\x20set\x20for\x20\x22'+_0x356718+'\x22');return;}const _0x34cd84=await _0x166482[_0x23a09f(0x107)](loadSettings,_0x356718),_0x22e9c1=formatSettings(_0x34cd84);!_0x22e9c1?console['log'](_0x23a09f(0x109)+_0x356718+'\x22'):console['log'](_0x22e9c1);}function _0x23ea(){const _0x48cf06=['Removed\x20','4273760PqXxTS','5254865QvnuhB','6637110HtbZXb','kind','startsWith','(not\x20set)','\x20\x20Note:\x20\x22','4jwpszK','183PfozfG','parse','108558yLzXoG','350786EjZlkX','VOiUM','log','No\x20configuration\x20set\x20for\x20\x22','\x20<key>\x22\x20to\x20remove\x20individual\x20values.','uktZb','allowInsecureLocalhost','endsWith','126EdCTnX','OxBPS','MstSa','cloud','stringify','includes','SwBsM','isNaN','true','Invalid\x20value\x20for\x20','\x20for\x20\x22','zkGkm','688RKhDao','gKWnB','undefined','trim','\x20=\x20','mvrMs','27988CSmNav','eTPJz','object','kDKUp','hkosH','test','271061lAwrBJ','cprXc'];_0x23ea=function(){return _0x48cf06;};return _0x23ea();}export async function configUnset(_0x23fa28,_0x12bcf4){const _0x47dfe9=_0x7eba42,_0x455fbd={'SwVXf':_0x47dfe9(0x111),'zyYDA':function(_0x242efb,_0x1bbe7b,_0x4afaa6,_0x4c21c1){return _0x242efb(_0x1bbe7b,_0x4afaa6,_0x4c21c1);}},_0x5600c8=await resolveProfileTarget(_0x23fa28);if(_0x5600c8['kind']===_0x455fbd['SwVXf']){if(_0x5600c8['alsoExistsElsewhere'])printDualExistsHint(_0x23fa28);const _0x4ea75d=_0x455fbd['zyYDA'](unsetProfileOverride,getProjectPath(),_0x23fa28,_0x12bcf4);_0x4ea75d?console[_0x47dfe9(0x108)](_0x47dfe9(0xfa)+_0x12bcf4+'\x20for\x20\x22'+_0x23fa28+'\x22'):console[_0x47dfe9(0x108)]('Key\x20\x22'+_0x12bcf4+'\x22\x20not\x20found');return;}const _0x4c00f7=unsetProfileOverride(getProjectPath(),_0x23fa28,_0x12bcf4);if(_0x4c00f7){console['log']('Removed\x20'+_0x12bcf4);return;}const _0x44c2b8=await loadSettings(_0x23fa28),_0x19417f=deleteNestedValue(_0x44c2b8,_0x12bcf4);_0x19417f?console['log']('Key\x20\x22'+_0x12bcf4+'\x22\x20lives\x20in\x20the\x20legacy\x20settings\x20file\x20for\x20\x22'+_0x23fa28+'\x22\x20and\x20cannot\x20be\x20unset;\x20the\x20legacy\x20tree\x20is\x20read-only\x20under\x20cloud\x20profiles.'):console[_0x47dfe9(0x108)]('Key\x20\x22'+_0x12bcf4+'\x22\x20not\x20found');}export async function configReset(_0x25b68e){const _0x198fe4=_0x7eba42,_0x39153e={'ChjIz':function(_0x28792e){return _0x28792e();}},_0xab25cb=await resolveProfileTarget(_0x25b68e);if(_0xab25cb['kind']==='cloud'){resetProfileOverrides(_0x39153e['ChjIz'](getProjectPath),_0x25b68e),console[_0x198fe4(0x108)]('Cleared\x20local\x20overrides\x20for\x20\x22'+_0x25b68e+'\x22');return;}console[_0x198fe4(0x108)]('\x22'+_0x25b68e+'\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20'+_0x25b68e+_0x198fe4(0x10a));}
1
+ const _0x5b5311=_0x3697;(function(_0x86e7ad,_0x8a6aed){const _0x291a8d=_0x3697,_0xad5894=_0x86e7ad();while(!![]){try{const _0x46b582=parseInt(_0x291a8d(0x1d0))/0x1+-parseInt(_0x291a8d(0x1d2))/0x2+-parseInt(_0x291a8d(0x1d4))/0x3+parseInt(_0x291a8d(0x1dd))/0x4+-parseInt(_0x291a8d(0x1ca))/0x5+-parseInt(_0x291a8d(0x1c1))/0x6+parseInt(_0x291a8d(0x1c2))/0x7;if(_0x46b582===_0x8a6aed)break;else _0xad5894['push'](_0xad5894['shift']());}catch(_0x5d4c0c){_0xad5894['push'](_0xad5894['shift']());}}}(_0x3a4c,0x4e269));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';const BOOLEAN_KEYS=['headless','allowInsecureLocalhost',_0x5b5311(0x1c3)];function parseLocalValue(_0x42ecd3,_0x554b07){const _0x22b3ee=_0x5b5311,_0x21a5de={'PoNSV':function(_0x974640,_0x3c6b80){return _0x974640===_0x3c6b80;},'xcFTy':_0x22b3ee(0x1d9)};if(BOOLEAN_KEYS[_0x22b3ee(0x1cb)](_0x42ecd3)){if(_0x554b07===_0x22b3ee(0x1e9))return!![];if(_0x21a5de['PoNSV'](_0x554b07,_0x21a5de['xcFTy']))return![];throw new Error(_0x22b3ee(0x1c0)+_0x42ecd3+':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22');}return _0x554b07;}function parseOverrideValue(_0x4c54c8){const _0x4380dd=_0x5b5311,_0x39d9bc={'VrmUe':function(_0x5802af,_0x1cd58c){return _0x5802af===_0x1cd58c;},'hGcFw':'undefined'};if(_0x4c54c8===_0x4380dd(0x1e9))return!![];if(_0x4c54c8===_0x4380dd(0x1d9))return![];if(_0x4c54c8===_0x4380dd(0x1e4))return null;if(_0x39d9bc[_0x4380dd(0x1cf)](_0x4c54c8,_0x39d9bc['hGcFw']))return undefined;if(/^-?\d+$/[_0x4380dd(0x1cc)](_0x4c54c8)){const _0x185904=Number(_0x4c54c8);if(Number[_0x4380dd(0x1c7)](_0x185904))return _0x185904;}if(/^-?\d+\.\d+$/['test'](_0x4c54c8)){const _0x1b7944=Number(_0x4c54c8);if(!Number[_0x4380dd(0x1d1)](_0x1b7944))return _0x1b7944;}const _0x20dcf5=_0x4c54c8[_0x4380dd(0x1d3)]();if(_0x20dcf5['startsWith']('{')&&_0x20dcf5[_0x4380dd(0x1d7)]('}')||_0x20dcf5[_0x4380dd(0x1dc)]('[')&&_0x20dcf5['endsWith'](']'))try{return JSON['parse'](_0x20dcf5);}catch{}return _0x4c54c8;}async function resolveProfileTarget(_0x2e8928){const _0x52466c=existsSync(getEnvDir(_0x2e8928));let _0x1e1244=![];try{const _0x5e3b79=await fetchCloudProfile(_0x2e8928);_0x1e1244=Boolean(_0x5e3b79);}catch{}if(_0x1e1244)return{'kind':'cloud','alsoExistsElsewhere':_0x52466c};if(_0x52466c)return{'kind':'local','alsoExistsElsewhere':![]};throw new Error('Profile\x20\x22'+_0x2e8928+'\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x2e8928);}function printDualExistsHint(_0x1416f1){const _0x40cb8c=_0x5b5311;console['log']('\x20\x20Note:\x20\x22'+_0x1416f1+_0x40cb8c(0x1ec));}function getProjectPath(){const _0x36c0ac=_0x5b5311;return process[_0x36c0ac(0x1e5)]();}function _0x3a4c(){const _0x333de0=['cwd','bFUmx','tQKHO','\x22\x20lives\x20in\x20the\x20legacy\x20settings\x20file\x20for\x20\x22','true','stringify','\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20','\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.','\x22\x20and\x20cannot\x20be\x20unset;\x20the\x20legacy\x20tree\x20is\x20read-only\x20under\x20cloud\x20profiles.','BNdUe','log','Invalid\x20value\x20for\x20','478398nDJoPx','3543561YioPAD','forceLogin','sXKSK','HMjuP','oAlRR','isSafeInteger','\x20for\x20\x22','orrXx','1415365uSDnso','includes','test','\x20=\x20','Removed\x20','VrmUe','342234kDcZeC','isNaN','426962tJrHYT','trim','1615437CkcxmG','ZEppd','Set\x20','endsWith','cloud','false','FErQD','lXLHo','startsWith','2345656SGundx','Key\x20\x22','xmdsV','No\x20configuration\x20set\x20for\x20\x22','\x22\x20not\x20found','alsoExistsElsewhere','Cleared\x20local\x20overrides\x20for\x20\x22','null'];_0x3a4c=function(){return _0x333de0;};return _0x3a4c();}async function loadEffectiveCloudSettings(_0x5eedce){const _0x57bb84=_0x5b5311,_0x60dfcc={'pSkwN':function(_0x463f56,_0x49c203,_0x17bb39){return _0x463f56(_0x49c203,_0x17bb39);},'ZEppd':function(_0xe75f06,_0x2c869d){return _0xe75f06??_0x2c869d;}},_0xa3ebb4=await fetchCloudProfile(_0x5eedce),_0x4eb2a1=readProfileOverrides(getProjectPath(),_0x5eedce);return _0x60dfcc['pSkwN'](mergeCloudProfileSettings,_0xa3ebb4?.['settings']??{},_0x60dfcc[_0x57bb84(0x1d5)](_0x4eb2a1,undefined));}export async function configSet(_0x39c8ad,_0x5cd15d,_0x304adc){const _0x594ebb=_0x5b5311,_0x43d793={'CHcwl':function(_0x1fc02e,_0x16799d){return _0x1fc02e(_0x16799d);},'sXKSK':'cloud','rgaNd':function(_0x38122c,_0x52997b){return _0x38122c(_0x52997b);},'jOZjG':function(_0x30e0a1,_0x8a1ca1,_0x2c7cb5,_0x1942f5,_0x35ea86){return _0x30e0a1(_0x8a1ca1,_0x2c7cb5,_0x1942f5,_0x35ea86);},'THmoP':function(_0x192610,_0x3d3f85,_0x116de4){return _0x192610(_0x3d3f85,_0x116de4);}},_0x1b62a0=await _0x43d793['CHcwl'](resolveProfileTarget,_0x39c8ad);if(_0x1b62a0['kind']===_0x43d793[_0x594ebb(0x1c4)]){if(_0x1b62a0[_0x594ebb(0x1e2)])_0x43d793['CHcwl'](printDualExistsHint,_0x39c8ad);const _0x52ba58=_0x43d793['rgaNd'](parseOverrideValue,_0x304adc);_0x43d793['jOZjG'](setProfileOverride,getProjectPath(),_0x39c8ad,_0x5cd15d,_0x52ba58),console['log'](_0x594ebb(0x1d6)+_0x5cd15d+_0x594ebb(0x1cd)+JSON[_0x594ebb(0x1ea)](_0x52ba58)+_0x594ebb(0x1c8)+_0x39c8ad+'\x22');return;}const _0x179aab=_0x43d793['THmoP'](parseLocalValue,_0x5cd15d,_0x304adc);setProfileOverride(getProjectPath(),_0x39c8ad,_0x5cd15d,_0x179aab),console['log'](_0x594ebb(0x1d6)+_0x5cd15d+_0x594ebb(0x1cd)+_0x179aab+'\x20for\x20\x22'+_0x39c8ad+'\x22');}function _0x3697(_0x47b87a,_0x36e297){_0x47b87a=_0x47b87a-0x1bf;const _0x3a4ce9=_0x3a4c();let _0x36978b=_0x3a4ce9[_0x47b87a];return _0x36978b;}export async function configGet(_0x380256,_0x28004e){const _0x29b290=_0x5b5311,_0x103cd6={'HMjuP':function(_0x369ae0,_0x14c6e0){return _0x369ae0(_0x14c6e0);},'NNavv':function(_0x3660a7,_0x4ab398,_0x477338){return _0x3660a7(_0x4ab398,_0x477338);},'RGBjA':function(_0x4746b3,_0x2e7bb3){return _0x4746b3===_0x2e7bb3;},'xmdsV':function(_0x15507b,_0x5e6938){return _0x15507b===_0x5e6938;},'LsKrj':'object'},_0x1348b7=await resolveProfileTarget(_0x380256);if(_0x1348b7['kind']==='cloud'){const _0x15a101=await _0x103cd6[_0x29b290(0x1c5)](loadEffectiveCloudSettings,_0x380256),_0x4d9a12=_0x103cd6['NNavv'](getNestedValue,_0x15a101,_0x28004e);if(_0x103cd6['RGBjA'](_0x4d9a12,undefined))console[_0x29b290(0x1bf)]('(not\x20set)');else _0x103cd6[_0x29b290(0x1df)](typeof _0x4d9a12,'object')?console[_0x29b290(0x1bf)](JSON[_0x29b290(0x1ea)](_0x4d9a12,null,0x2)):console['log'](_0x4d9a12);return;}const _0x5ea4fc=await loadSettings(_0x380256),_0x41842d=getNestedValue(_0x5ea4fc,_0x28004e);if(_0x103cd6['RGBjA'](_0x41842d,undefined))console[_0x29b290(0x1bf)]('(not\x20set)');else _0x103cd6[_0x29b290(0x1df)](typeof _0x41842d,_0x103cd6['LsKrj'])?console[_0x29b290(0x1bf)](JSON['stringify'](_0x41842d,null,0x2)):console['log'](_0x41842d);}export async function configList(_0x48e44d){const _0x52c800=_0x5b5311,_0x150e2c={'lXLHo':function(_0x5628fb,_0x46effd){return _0x5628fb(_0x46effd);},'jmCXH':_0x52c800(0x1d8),'FErQD':function(_0x40334c,_0x465d03){return _0x40334c===_0x465d03;},'tQKHO':function(_0x10d044,_0x52cc6a){return _0x10d044(_0x52cc6a);}},_0x2a57c2=await _0x150e2c['lXLHo'](resolveProfileTarget,_0x48e44d);if(_0x2a57c2['kind']===_0x150e2c['jmCXH']){const _0x445b19=await _0x150e2c[_0x52c800(0x1db)](loadEffectiveCloudSettings,_0x48e44d);if(!_0x445b19||_0x150e2c[_0x52c800(0x1da)](Object['keys'](_0x445b19)['length'],0x0)){console['log'](_0x52c800(0x1e0)+_0x48e44d+'\x22');return;}console['log'](JSON[_0x52c800(0x1ea)](_0x445b19,null,0x2));return;}const _0x3f682e=getSettingsPath(_0x48e44d);if(!_0x150e2c[_0x52c800(0x1e7)](existsSync,_0x3f682e)){console[_0x52c800(0x1bf)]('No\x20configuration\x20set\x20for\x20\x22'+_0x48e44d+'\x22');return;}const _0x3f04d0=await _0x150e2c['tQKHO'](loadSettings,_0x48e44d),_0x5934aa=formatSettings(_0x3f04d0);!_0x5934aa?console['log'](_0x52c800(0x1e0)+_0x48e44d+'\x22'):console[_0x52c800(0x1bf)](_0x5934aa);}export async function configUnset(_0x194c26,_0x297da8){const _0x9b12f3=_0x5b5311,_0x12770d={'fSqaS':function(_0x5711cf,_0x4539cd){return _0x5711cf(_0x4539cd);},'oAlRR':function(_0xd4bfd0,_0x172d01){return _0xd4bfd0===_0x172d01;},'orrXx':_0x9b12f3(0x1d8),'HYZzS':function(_0x15088a,_0x1ded20,_0x357791,_0x3179ba){return _0x15088a(_0x1ded20,_0x357791,_0x3179ba);},'BNdUe':function(_0x702753){return _0x702753();},'bFUmx':function(_0x29d0a5,_0x41ecfe,_0x4b709d){return _0x29d0a5(_0x41ecfe,_0x4b709d);}},_0x36db03=await _0x12770d['fSqaS'](resolveProfileTarget,_0x194c26);if(_0x12770d[_0x9b12f3(0x1c6)](_0x36db03['kind'],_0x12770d[_0x9b12f3(0x1c9)])){if(_0x36db03[_0x9b12f3(0x1e2)])printDualExistsHint(_0x194c26);const _0x8652e=unsetProfileOverride(getProjectPath(),_0x194c26,_0x297da8);_0x8652e?console[_0x9b12f3(0x1bf)](_0x9b12f3(0x1ce)+_0x297da8+'\x20for\x20\x22'+_0x194c26+'\x22'):console['log']('Key\x20\x22'+_0x297da8+_0x9b12f3(0x1e1));return;}const _0x18f9f3=_0x12770d['HYZzS'](unsetProfileOverride,_0x12770d[_0x9b12f3(0x1ee)](getProjectPath),_0x194c26,_0x297da8);if(_0x18f9f3){console[_0x9b12f3(0x1bf)](_0x9b12f3(0x1ce)+_0x297da8);return;}const _0x14cb74=await loadSettings(_0x194c26),_0x563f5c=_0x12770d[_0x9b12f3(0x1e6)](deleteNestedValue,_0x14cb74,_0x297da8);_0x563f5c?console['log'](_0x9b12f3(0x1de)+_0x297da8+_0x9b12f3(0x1e8)+_0x194c26+_0x9b12f3(0x1ed)):console[_0x9b12f3(0x1bf)](_0x9b12f3(0x1de)+_0x297da8+_0x9b12f3(0x1e1));}export async function configReset(_0x55beac){const _0x55ac18=_0x5b5311,_0x4da536={'aXSpW':'cloud'},_0xf34f7a=await resolveProfileTarget(_0x55beac);if(_0xf34f7a['kind']===_0x4da536['aXSpW']){resetProfileOverrides(getProjectPath(),_0x55beac),console['log'](_0x55ac18(0x1e3)+_0x55beac+'\x22');return;}console[_0x55ac18(0x1bf)]('\x22'+_0x55beac+_0x55ac18(0x1eb)+_0x55beac+'\x20<key>\x22\x20to\x20remove\x20individual\x20values.');}
@@ -1 +1 @@
1
- (function(_0xdcd401,_0x32cd59){const _0x18afc1=_0xdac4,_0x40e615=_0xdcd401();while(!![]){try{const _0x2ccd15=-parseInt(_0x18afc1(0xa3))/0x1*(parseInt(_0x18afc1(0xab))/0x2)+-parseInt(_0x18afc1(0xad))/0x3+parseInt(_0x18afc1(0xa9))/0x4*(-parseInt(_0x18afc1(0x9d))/0x5)+-parseInt(_0x18afc1(0xaa))/0x6*(parseInt(_0x18afc1(0x9c))/0x7)+-parseInt(_0x18afc1(0x9f))/0x8+parseInt(_0x18afc1(0xa0))/0x9*(parseInt(_0x18afc1(0xa2))/0xa)+parseInt(_0x18afc1(0xa6))/0xb*(parseInt(_0x18afc1(0xa4))/0xc);if(_0x2ccd15===_0x32cd59)break;else _0x40e615['push'](_0x40e615['shift']());}catch(_0x4cb03c){_0x40e615['push'](_0x40e615['shift']());}}}(_0x19e7,0xea9a1));function _0x19e7(){const _0x31123c=['Profile\x20deletion\x20requires\x20an\x20interactive\x20terminal\x20so\x20the\x20profile\x20name\x20can\x20be\x20typed\x20for\x20confirmation.\x20Pass\x20--yes\x20to\x20skip\x20confirmation.','Type\x20\x22','16gGRBXQ','5442rxIgDl','2040ZYlvBq','cwd','5187963wGNpml','\x22\x20not\x20found.','log','8659lJhzio','953480NdYvKh','bhoZV','13666904KFcxKB','4014324YMqzrI','\x22\x20for\x20everyone\x20in\x20your\x20organization.','10ufAwtG','1727BOggxF','12zcIzIb','\x22\x20to\x20confirm\x20deletion:','83587460REeOCZ'];_0x19e7=function(){return _0x31123c;};return _0x19e7();}import _0x122080 from'inquirer';import{deleteCloudProfile,fetchCloudProfile}from'./utils/cloudProfile.js';import{isInteractive}from'./utils/cloudProfileSession.js';function _0xdac4(_0x540e63,_0x4bc40f){_0x540e63=_0x540e63-0x9a;const _0x19e75a=_0x19e7();let _0xdac48=_0x19e75a[_0x540e63];return _0xdac48;}import{clearLastProfile,resetProfileOverrides}from'./utils/projectsConfig.js';export async function deleteProfile(_0x91b87c,_0x58365e={}){const _0xc009aa=_0xdac4,_0x1cf3c1={'Rjicl':_0xc009aa(0xa7),'bhoZV':'confirmation','PQswg':function(_0x21bb3c,_0x3b715a,_0x1f26c6){return _0x21bb3c(_0x3b715a,_0x1f26c6);}},_0x2da840=await fetchCloudProfile(_0x91b87c);if(!_0x2da840)throw new Error('Cloud\x20profile\x20\x22'+_0x91b87c+_0xc009aa(0x9a));if(!_0x58365e['yes']&&!isInteractive())throw new Error(_0x1cf3c1['Rjicl']);console['log']('\x0aWarning:\x20this\x20deletes\x20the\x20shared\x20cloud\x20profile\x20\x22'+_0x91b87c+_0xc009aa(0xa1));if(!_0x58365e['yes']){const {confirmation:_0x1be421}=await _0x122080['prompt']([{'type':'input','name':_0x1cf3c1[_0xc009aa(0x9e)],'message':_0xc009aa(0xa8)+_0x91b87c+_0xc009aa(0xa5)}]);if(_0x1be421!==_0x91b87c)throw new Error('Profile\x20deletion\x20cancelled:\x20confirmation\x20did\x20not\x20match.');}await deleteCloudProfile(_0x91b87c),resetProfileOverrides(process['cwd'](),_0x91b87c),_0x1cf3c1['PQswg'](clearLastProfile,process[_0xc009aa(0xac)](),_0x91b87c),console[_0xc009aa(0x9b)]('✓\x20Deleted\x20cloud\x20profile\x20\x22'+_0x91b87c+'\x22.');}
1
+ function _0x2e74(_0x592105,_0x112b9d){_0x592105=_0x592105-0x70;const _0x25badf=_0x25ba();let _0x2e7431=_0x25badf[_0x592105];return _0x2e7431;}(function(_0x28bc9f,_0x2a2925){const _0x425ac4=_0x2e74,_0x2bde91=_0x28bc9f();while(!![]){try{const _0x13d527=parseInt(_0x425ac4(0x79))/0x1+parseInt(_0x425ac4(0x77))/0x2*(-parseInt(_0x425ac4(0x73))/0x3)+parseInt(_0x425ac4(0x71))/0x4+parseInt(_0x425ac4(0x87))/0x5*(parseInt(_0x425ac4(0x84))/0x6)+-parseInt(_0x425ac4(0x7a))/0x7*(parseInt(_0x425ac4(0x75))/0x8)+-parseInt(_0x425ac4(0x70))/0x9*(parseInt(_0x425ac4(0x74))/0xa)+-parseInt(_0x425ac4(0x89))/0xb*(parseInt(_0x425ac4(0x7c))/0xc);if(_0x13d527===_0x2a2925)break;else _0x2bde91['push'](_0x2bde91['shift']());}catch(_0x16ac03){_0x2bde91['push'](_0x2bde91['shift']());}}}(_0x25ba,0xd0beb));function _0x25ba(){const _0x1cb05f=['22540vcxscz','1722032syNCIc','fYHAF','40FxpIUh','RtwPp','894024twlJGH','14qhmkmf','cwd','36EckUQP','\x22\x20for\x20everyone\x20in\x20your\x20organization.','PBRxC','Profile\x20deletion\x20cancelled:\x20confirmation\x20did\x20not\x20match.','yes','oltTG','\x22\x20not\x20found.','\x0aWarning:\x20this\x20deletes\x20the\x20shared\x20cloud\x20profile\x20\x22','9738318oFppIh','log','confirmation','5SauVlL','Cloud\x20profile\x20\x22','4152401OsLGiU','5292STXQMM','5795580xDxVhs','ledRm','33393RPeMNF'];_0x25ba=function(){return _0x1cb05f;};return _0x25ba();}import _0x3c377a 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(_0x1fc163,_0x2fdf6f={}){const _0x577a87=_0x2e74,_0x416828={'PBRxC':function(_0x2d9f30,_0x3a6904){return _0x2d9f30(_0x3a6904);},'RtwPp':function(_0x4a1d2a){return _0x4a1d2a();},'oltTG':'input','HNBDF':_0x577a87(0x86),'ledRm':_0x577a87(0x7f),'zGlcA':function(_0x2f4bea,_0x365f9f){return _0x2f4bea(_0x365f9f);},'fYHAF':function(_0x69fa7c,_0x1e2742,_0x583fd8){return _0x69fa7c(_0x1e2742,_0x583fd8);}},_0x934ece=await _0x416828[_0x577a87(0x7e)](fetchCloudProfile,_0x1fc163);if(!_0x934ece)throw new Error(_0x577a87(0x88)+_0x1fc163+_0x577a87(0x82));if(!_0x2fdf6f[_0x577a87(0x80)]&&!_0x416828[_0x577a87(0x78)](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[_0x577a87(0x85)](_0x577a87(0x83)+_0x1fc163+_0x577a87(0x7d));if(!_0x2fdf6f['yes']){const {confirmation:_0x55ccb9}=await _0x3c377a['prompt']([{'type':_0x416828[_0x577a87(0x81)],'name':_0x416828['HNBDF'],'message':'Type\x20\x22'+_0x1fc163+'\x22\x20to\x20confirm\x20deletion:'}]);if(_0x55ccb9!==_0x1fc163)throw new Error(_0x416828[_0x577a87(0x72)]);}await _0x416828['zGlcA'](deleteCloudProfile,_0x1fc163),resetProfileOverrides(process[_0x577a87(0x7b)](),_0x1fc163),_0x416828[_0x577a87(0x76)](clearLastProfile,process['cwd'](),_0x1fc163),console['log']('✓\x20Deleted\x20cloud\x20profile\x20\x22'+_0x1fc163+'\x22.');}
@@ -1 +1 @@
1
- const _0x28c6b0=_0x10e5;(function(_0x57ffa1,_0x1190ab){const _0x1c77e6=_0x10e5,_0x4d965e=_0x57ffa1();while(!![]){try{const _0x2c03e2=-parseInt(_0x1c77e6(0x199))/0x1*(-parseInt(_0x1c77e6(0x18a))/0x2)+-parseInt(_0x1c77e6(0x1a4))/0x3+-parseInt(_0x1c77e6(0x19d))/0x4*(-parseInt(_0x1c77e6(0x1ae))/0x5)+-parseInt(_0x1c77e6(0x189))/0x6+parseInt(_0x1c77e6(0x1ac))/0x7+-parseInt(_0x1c77e6(0x192))/0x8+parseInt(_0x1c77e6(0x1a7))/0x9*(parseInt(_0x1c77e6(0x1a5))/0xa);if(_0x2c03e2===_0x1190ab)break;else _0x4d965e['push'](_0x4d965e['shift']());}catch(_0x22ba66){_0x4d965e['push'](_0x4d965e['shift']());}}}(_0x6e66,0x44a3a));import{readdir,stat}from'fs/promises';function _0x6e66(){const _0x5bbef0=['7034PQdMcz','message','name','\x0aCloud\x20Profiles:','PmGyO','\x20\x20\x20\x20\x20\x20URL:\x20','\x20[cloud]','isDirectory','3642144PqvBWr','WoDqZ','\x0aNo\x20profiles\x20found.','includes','jsLjk','.txt','KudJn','50ZuGXNW','\x20\x20\x20\x20\x20\x20Session:\x20','\x20\x20\x20\x20\x20\x20Details:\x20','legacy','195988nfKNrA','baseUrl','Run:\x20ranger\x20profile\x20add\x20<profile-name>','length','startsWith','OfkSL','reports','1213239oDDuhG','35770LqIvvP','sort','1710OklLUX','eMCev','local','BAJhv','no\x20session','765044rilRXf','has','45kXJbYe','\x0a*\x20=\x20active\x20profile','push','log','environmentDetails','1589508YbJfXO'];_0x6e66=function(){return _0x5bbef0;};return _0x6e66();}import{join}from'path';function _0x10e5(_0x4083f6,_0x5aebfd){_0x4083f6=_0x4083f6-0x189;const _0x6e667d=_0x6e66();let _0x10e57b=_0x6e667d[_0x4083f6];return _0x10e57b;}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';import{listCloudProfiles}from'./utils/cloudProfile.js';const NON_ENV_DIRS=['sessions','bug-bashes',_0x28c6b0(0x1a3),_0x28c6b0(0x1a9),'ci'];export async function getEnvNames(){const _0x58ab55=_0x28c6b0,_0x234bfd={'eMCev':function(_0x1eefa7,_0x211193){return _0x1eefa7(_0x211193);},'jsLjk':'local','OJHIG':function(_0x11fa13,_0x567618,_0x2306b1){return _0x11fa13(_0x567618,_0x2306b1);},'mzHUP':function(_0x55bbd8,_0x52cfce){return _0x55bbd8(_0x52cfce);},'DyJCz':function(_0x277319,_0x1bea77){return _0x277319(_0x1bea77);},'WoDqZ':function(_0x46b996,_0x246ee7){return _0x46b996(_0x246ee7);},'AkPwq':_0x58ab55(0x197),'BAJhv':function(_0x17ac30,_0x22d5fd,_0x24e53a){return _0x17ac30(_0x22d5fd,_0x24e53a);},'OfkSL':'settings.json'},_0x4d0f93=getRangerDir();if(!_0x234bfd[_0x58ab55(0x1a8)](existsSync,_0x4d0f93))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x1ca217=await readActiveProfileName(),_0x39f1c0=[],_0x529dd9={},_0x3c7f23=join(_0x4d0f93,_0x234bfd[_0x58ab55(0x196)]);if(_0x234bfd[_0x58ab55(0x1a8)](existsSync,_0x3c7f23)){const _0x489e53=await readdir(_0x3c7f23);for(const _0x1b2c19 of _0x489e53){const _0x538a1a=_0x234bfd['OJHIG'](join,_0x3c7f23,_0x1b2c19),_0x588138=await _0x234bfd[_0x58ab55(0x1a8)](stat,_0x538a1a);_0x588138['isDirectory']()&&(_0x39f1c0['push'](_0x1b2c19),_0x529dd9[_0x1b2c19]=_0x234bfd[_0x58ab55(0x196)]);}}const _0x281ae7=join(_0x4d0f93,'ci');if(_0x234bfd['mzHUP'](existsSync,_0x281ae7)){const _0x2823e1=await _0x234bfd['eMCev'](readdir,_0x281ae7);for(const _0x3fdad8 of _0x2823e1){const _0x21b4b8=_0x234bfd['OJHIG'](join,_0x281ae7,_0x3fdad8),_0x171f44=await _0x234bfd['DyJCz'](stat,_0x21b4b8);_0x171f44['isDirectory']()&&(_0x39f1c0[_0x58ab55(0x1b0)](_0x3fdad8),_0x529dd9[_0x3fdad8]='ci');}}const _0x5c85f5=await _0x234bfd[_0x58ab55(0x193)](readdir,_0x4d0f93);for(const _0x3ba1d3 of _0x5c85f5){if(NON_ENV_DIRS[_0x58ab55(0x195)](_0x3ba1d3))continue;if(_0x3ba1d3[_0x58ab55(0x1a1)]('.'))continue;if(_0x3ba1d3['endsWith'](_0x234bfd['AkPwq']))continue;const _0x5b284b=_0x234bfd[_0x58ab55(0x1aa)](join,_0x4d0f93,_0x3ba1d3),_0x181f47=await stat(_0x5b284b);_0x181f47[_0x58ab55(0x191)]()&&existsSync(_0x234bfd[_0x58ab55(0x1aa)](join,_0x5b284b,_0x234bfd[_0x58ab55(0x1a2)]))&&(!_0x39f1c0['includes'](_0x3ba1d3)&&(_0x39f1c0['push'](_0x3ba1d3),_0x529dd9[_0x3ba1d3]=_0x58ab55(0x19c)));}return{'envNames':_0x39f1c0,'activeEnv':_0x1ca217,'envTypes':_0x529dd9};}export async function envList(){const _0x606aeb=_0x28c6b0,_0x33d42d={'PmGyO':function(_0x170393,_0x20d782){return _0x170393===_0x20d782;},'cVNDZ':_0x606aeb(0x19f),'KudJn':'\x0aLocal\x20Profiles\x20(legacy):','fZRuX':function(_0x56bdad,_0x37e199){return _0x56bdad===_0x37e199;},'TCtYT':_0x606aeb(0x1a9),'hnDmh':function(_0x518482,_0x3702b6){return _0x518482>_0x3702b6;},'oMBEh':_0x606aeb(0x1ab)},{envNames:_0x4f927a,activeEnv:_0x40581f,envTypes:_0x5db72f}=await getEnvNames();let _0x37d9c8=[];const _0x106635=await getToken();if(_0x106635)try{_0x37d9c8=await listCloudProfiles();}catch(_0x110357){console['error']('\x0aWarning:\x20could\x20not\x20fetch\x20cloud\x20profiles:\x20'+(_0x110357 instanceof Error?_0x110357[_0x606aeb(0x18b)]:String(_0x110357)));}if(_0x4f927a[_0x606aeb(0x1a0)]===0x0&&_0x33d42d[_0x606aeb(0x18e)](_0x37d9c8['length'],0x0)){console['log'](_0x606aeb(0x194)),console['log'](_0x33d42d['cVNDZ']);return;}const _0x52f0cf=new Set(_0x37d9c8['map'](_0x5c172a=>_0x5c172a[_0x606aeb(0x18c)]));if(_0x4f927a[_0x606aeb(0x1a0)]>0x0){console[_0x606aeb(0x1b1)](_0x33d42d[_0x606aeb(0x198)]);for(const _0x501953 of _0x4f927a[_0x606aeb(0x1a6)]()){const _0x490398=_0x33d42d['fZRuX'](_0x501953,_0x40581f)&&!_0x52f0cf[_0x606aeb(0x1ad)](_0x501953),_0x27e7d0=_0x5db72f[_0x501953]||_0x33d42d['TCtYT'],_0x1cb9e5=await loadSettings(_0x501953),_0x2f4b93=_0x27e7d0==='legacy'?'':'\x20['+_0x27e7d0+']';console[_0x606aeb(0x1b1)]('\x20\x20'+(_0x490398?'*\x20':'\x20\x20')+_0x501953+_0x2f4b93),_0x1cb9e5[_0x606aeb(0x19e)]&&console['log'](_0x606aeb(0x18f)+_0x1cb9e5['baseUrl']),_0x1cb9e5['environmentDetails']&&console[_0x606aeb(0x1b1)](_0x606aeb(0x19b)+_0x1cb9e5[_0x606aeb(0x1b2)]);}}if(_0x33d42d['hnDmh'](_0x37d9c8['length'],0x0)){console['log'](_0x606aeb(0x18d));for(const _0x341607 of _0x37d9c8[_0x606aeb(0x1a6)]((_0x524696,_0x1fbd54)=>_0x524696['name']['localeCompare'](_0x1fbd54[_0x606aeb(0x18c)]))){const _0x376a93=_0x33d42d[_0x606aeb(0x18e)](_0x341607['name'],_0x40581f),_0x2286ab=_0x341607['environmentKey']?'\x20('+_0x341607['environmentKey']+')':'',_0x18727d=_0x341607['sessionUpdatedAt']?'cached\x20(updated\x20'+_0x341607['sessionUpdatedAt']+')':_0x33d42d['oMBEh'];console['log']('\x20\x20'+(_0x376a93?'*\x20':'\x20\x20')+_0x341607['name']+_0x606aeb(0x190)+_0x2286ab),console['log'](_0x606aeb(0x19a)+_0x18727d);}}_0x40581f&&console[_0x606aeb(0x1b1)](_0x606aeb(0x1af));}
1
+ const _0x134fc6=_0x5734;(function(_0x49035f,_0x420228){const _0x5a9fd8=_0x5734,_0x12db2b=_0x49035f();while(!![]){try{const _0x2c2f79=-parseInt(_0x5a9fd8(0x1de))/0x1*(-parseInt(_0x5a9fd8(0x1e0))/0x2)+parseInt(_0x5a9fd8(0x202))/0x3+parseInt(_0x5a9fd8(0x1f0))/0x4+parseInt(_0x5a9fd8(0x1e6))/0x5+-parseInt(_0x5a9fd8(0x1f3))/0x6+parseInt(_0x5a9fd8(0x1ea))/0x7+parseInt(_0x5a9fd8(0x203))/0x8*(-parseInt(_0x5a9fd8(0x1e8))/0x9);if(_0x2c2f79===_0x420228)break;else _0x12db2b['push'](_0x12db2b['shift']());}catch(_0x44b874){_0x12db2b['push'](_0x12db2b['shift']());}}}(_0x301c,0xa8bf2));function _0x5734(_0x2c723a,_0x197161){_0x2c723a=_0x2c723a-0x1dc;const _0x301cb4=_0x301c();let _0x5734bd=_0x301cb4[_0x2c723a];return _0x5734bd;}function _0x301c(){const _0x5aa327=['log','includes','baseUrl','length','push','map','1415ezsvaC','SJgIs','202yDgNKo','OEpse','reports','isDirectory','sessionUpdatedAt','localeCompare','3838555CpcKfO','local','18iUZtcL','MdZAv','1957606PcIOYN','\x0aWarning:\x20could\x20not\x20fetch\x20cloud\x20profiles:\x20','SQxpM','\x20\x20\x20\x20\x20\x20Details:\x20','keys','\x20\x20\x20\x20','1748240lJPIdh','Run:\x20ranger\x20profile\x20add\x20<profile-name>','FTDuu','7363668KavEJi','FHPIF','\x0aCloud\x20Profiles\x20(by\x20environment):','name','legacy','fFocu','message','AtMwI','ywjvf','get','has','environmentKey','kzoot','sort','EDHzc','1065306MZExiU','255928LBPYqv','\x0aNo\x20profiles\x20found.','GNySh','xDzxI','texTu','error','bGPsm','kzmEr'];_0x301c=function(){return _0x5aa327;};return _0x301c();}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';import{listCloudProfiles}from'./utils/cloudProfile.js';const NON_ENV_DIRS=['sessions','bug-bashes',_0x134fc6(0x1e2),'local','ci'];export function shouldGroupByEnvironment(_0x1aad30){const _0x58b954=_0x134fc6;return _0x1aad30['some'](_0x5d189b=>_0x5d189b[_0x58b954(0x1fe)]);}export function groupCloudProfilesByEnvironment(_0x30e1d1){const _0xf5fcef=_0x134fc6,_0x40eb2a={'phbEZ':function(_0xa3e583,_0x54bfd6){return _0xa3e583===_0x54bfd6;},'iFHkf':function(_0xb90cf1,_0x456e22){return _0xb90cf1===_0x456e22;}},_0x59b93b=new Map();for(const _0xa4dd17 of _0x30e1d1){const _0x463aca=_0xa4dd17['environmentKey']??null,_0x49b36f=_0x59b93b[_0xf5fcef(0x1fc)](_0x463aca);if(_0x49b36f)_0x49b36f['push'](_0xa4dd17);else _0x59b93b['set'](_0x463aca,[_0xa4dd17]);}const _0x34ab4e=[..._0x59b93b[_0xf5fcef(0x1ee)]()]['sort']((_0x12162e,_0x512600)=>{if(_0x40eb2a['phbEZ'](_0x12162e,null))return 0x1;if(_0x40eb2a['iFHkf'](_0x512600,null))return-0x1;return _0x12162e['localeCompare'](_0x512600);});return _0x34ab4e[_0xf5fcef(0x1dd)](_0x1d0896=>({'environmentKey':_0x1d0896,'profiles':_0x59b93b[_0xf5fcef(0x1fc)](_0x1d0896)['sort']((_0x161955,_0x30354a)=>_0x161955[_0xf5fcef(0x1f6)]['localeCompare'](_0x30354a['name']))}));}export async function getEnvNames(){const _0x59e7ee=_0x134fc6,_0x463799={'AtMwI':function(_0x1492df){return _0x1492df();},'xDzxI':function(_0x1404a6,_0x229a34){return _0x1404a6(_0x229a34);},'texTu':'local','OEpse':function(_0xd0eed1,_0x601d94){return _0xd0eed1(_0x601d94);},'MdZAv':function(_0x554c8b,_0x320fb8,_0x27a0d8){return _0x554c8b(_0x320fb8,_0x27a0d8);},'SJgIs':function(_0xcc09aa,_0x321fa3,_0x2bfe71){return _0xcc09aa(_0x321fa3,_0x2bfe71);}},_0x1ce225=_0x463799['AtMwI'](getRangerDir);if(!_0x463799['xDzxI'](existsSync,_0x1ce225))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x1ed6fa=await _0x463799[_0x59e7ee(0x1fa)](readActiveProfileName),_0x1b3cb4=[],_0x249c75={},_0x362183=join(_0x1ce225,_0x463799[_0x59e7ee(0x207)]);if(existsSync(_0x362183)){const _0x2e42d2=await _0x463799[_0x59e7ee(0x1e1)](readdir,_0x362183);for(const _0x5198d8 of _0x2e42d2){const _0x4a9c9d=_0x463799[_0x59e7ee(0x1e9)](join,_0x362183,_0x5198d8),_0x4c7486=await _0x463799[_0x59e7ee(0x206)](stat,_0x4a9c9d);_0x4c7486['isDirectory']()&&(_0x1b3cb4['push'](_0x5198d8),_0x249c75[_0x5198d8]='local');}}const _0x58ca17=_0x463799[_0x59e7ee(0x1df)](join,_0x1ce225,'ci');if(existsSync(_0x58ca17)){const _0x1502d0=await _0x463799['xDzxI'](readdir,_0x58ca17);for(const _0x4f4bfb of _0x1502d0){const _0xa18bb1=_0x463799['MdZAv'](join,_0x58ca17,_0x4f4bfb),_0x57d97d=await stat(_0xa18bb1);_0x57d97d[_0x59e7ee(0x1e3)]()&&(_0x1b3cb4[_0x59e7ee(0x1dc)](_0x4f4bfb),_0x249c75[_0x4f4bfb]='ci');}}const _0x11b408=await _0x463799['xDzxI'](readdir,_0x1ce225);for(const _0x46b0b5 of _0x11b408){if(NON_ENV_DIRS[_0x59e7ee(0x20c)](_0x46b0b5))continue;if(_0x46b0b5['startsWith']('.'))continue;if(_0x46b0b5['endsWith']('.txt'))continue;const _0x838f2=join(_0x1ce225,_0x46b0b5),_0x26204c=await _0x463799['OEpse'](stat,_0x838f2);_0x26204c[_0x59e7ee(0x1e3)]()&&existsSync(join(_0x838f2,'settings.json'))&&(!_0x1b3cb4[_0x59e7ee(0x20c)](_0x46b0b5)&&(_0x1b3cb4[_0x59e7ee(0x1dc)](_0x46b0b5),_0x249c75[_0x46b0b5]=_0x59e7ee(0x1f7)));}return{'envNames':_0x1b3cb4,'activeEnv':_0x1ed6fa,'envTypes':_0x249c75};}export async function envList(){const _0x261fee=_0x134fc6,_0xe97fdc={'VafCb':function(_0x4d73cc){return _0x4d73cc();},'fFocu':function(_0x42b4a7){return _0x42b4a7();},'ywjvf':function(_0x4789bc,_0x1b913f){return _0x4789bc instanceof _0x1b913f;},'KxunB':function(_0x1e1f84,_0x127722){return _0x1e1f84(_0x127722);},'bGPsm':function(_0x39cb09,_0x8241a8){return _0x39cb09===_0x8241a8;},'kzoot':_0x261fee(0x204),'SQxpM':'\x0aLocal\x20Profiles\x20(legacy):','LhlbC':_0x261fee(0x1e7),'GNySh':function(_0x58a445,_0x18eebe){return _0x58a445(_0x18eebe);},'EPKqF':function(_0x48857c,_0x12e4b1){return _0x48857c===_0x12e4b1;},'aTTlv':'legacy','kzmEr':function(_0x88100b,_0x3e0be9){return _0x88100b>_0x3e0be9;},'EDHzc':function(_0x275ab8,_0x5b6667){return _0x275ab8(_0x5b6667);},'FTDuu':'(no\x20environment\x20—\x20manual\x20or\x20no\x20auth)','FHPIF':_0x261fee(0x1ef),'puZdl':function(_0x4d446e,_0x58ff81,_0x3e32fd){return _0x4d446e(_0x58ff81,_0x3e32fd);}},{envNames:_0xe168f1,activeEnv:_0x409392,envTypes:_0x57d1d2}=await getEnvNames();let _0x388361=[];const _0x53533b=await _0xe97fdc['VafCb'](getToken);if(_0x53533b)try{_0x388361=await _0xe97fdc[_0x261fee(0x1f8)](listCloudProfiles);}catch(_0x24fdf1){console[_0x261fee(0x208)](_0x261fee(0x1eb)+(_0xe97fdc[_0x261fee(0x1fb)](_0x24fdf1,Error)?_0x24fdf1[_0x261fee(0x1f9)]:_0xe97fdc['KxunB'](String,_0x24fdf1)));}if(_0xe168f1['length']===0x0&&_0xe97fdc[_0x261fee(0x209)](_0x388361[_0x261fee(0x20e)],0x0)){console[_0x261fee(0x20b)](_0xe97fdc[_0x261fee(0x1ff)]),console['log'](_0x261fee(0x1f1));return;}const _0xa163d9=new Set(_0x388361['map'](_0x18496e=>_0x18496e[_0x261fee(0x1f6)]));if(_0xe168f1['length']>0x0){console['log'](_0xe97fdc[_0x261fee(0x1ec)]);for(const _0x2adde2 of _0xe168f1['sort']()){const _0x1874e8=_0x2adde2===_0x409392&&!_0xa163d9[_0x261fee(0x1fd)](_0x2adde2),_0x3e6d4f=_0x57d1d2[_0x2adde2]||_0xe97fdc['LhlbC'],_0x2f08a4=await _0xe97fdc[_0x261fee(0x205)](loadSettings,_0x2adde2),_0x2fb5c7=_0xe97fdc['EPKqF'](_0x3e6d4f,_0xe97fdc['aTTlv'])?'':'\x20['+_0x3e6d4f+']';console['log']('\x20\x20'+(_0x1874e8?'*\x20':'\x20\x20')+_0x2adde2+_0x2fb5c7),_0x2f08a4[_0x261fee(0x20d)]&&console[_0x261fee(0x20b)]('\x20\x20\x20\x20\x20\x20URL:\x20'+_0x2f08a4[_0x261fee(0x20d)]),_0x2f08a4['environmentDetails']&&console['log'](_0x261fee(0x1ed)+_0x2f08a4['environmentDetails']);}}const _0x1e99cc=(_0x37e12a,_0x15ca4)=>{const _0xeea340=_0x261fee,_0x18d0ad=_0x37e12a[_0xeea340(0x1f6)]===_0x409392,_0x121482=_0x37e12a['sessionUpdatedAt']?'cached\x20(updated\x20'+_0x37e12a[_0xeea340(0x1e4)]+')':'no\x20session';console['log'](''+_0x15ca4+(_0x18d0ad?'*\x20':'\x20\x20')+_0x37e12a[_0xeea340(0x1f6)]),console[_0xeea340(0x20b)](_0x15ca4+'\x20\x20\x20\x20Session:\x20'+_0x121482);};if(_0xe97fdc[_0x261fee(0x20a)](_0x388361['length'],0x0)){if(_0xe97fdc[_0x261fee(0x201)](shouldGroupByEnvironment,_0x388361)){console[_0x261fee(0x20b)](_0x261fee(0x1f5));for(const _0x202761 of _0xe97fdc['GNySh'](groupCloudProfilesByEnvironment,_0x388361)){const _0x5e4e24=_0x202761[_0x261fee(0x1fe)]??_0xe97fdc[_0x261fee(0x1f2)];console['log']('\x0a\x20\x20'+_0x5e4e24);for(const _0x13b603 of _0x202761['profiles']){_0x1e99cc(_0x13b603,_0xe97fdc[_0x261fee(0x1f4)]);}}}else{console['log']('\x0aCloud\x20Profiles:');for(const _0x4ceadc of[..._0x388361][_0x261fee(0x200)]((_0x46cbb3,_0x25e03f)=>_0x46cbb3['name'][_0x261fee(0x1e5)](_0x25e03f['name']))){_0xe97fdc['puZdl'](_0x1e99cc,_0x4ceadc,'\x20\x20');}}}_0x409392&&console[_0x261fee(0x20b)]('\x0a*\x20=\x20active\x20profile');}