@ranger-testing/ranger-cli 3.1.2 → 3.1.3-alpha.2c5eb8e-44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/deleteProfile.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/novaActCli.js +1 -1
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/organizationEnvApi.js +1 -1
  60. package/build/commands/utils/playwrightCli.js +1 -1
  61. package/build/commands/utils/profileMessages.js +1 -1
  62. package/build/commands/utils/profileSetupBanner.js +1 -1
  63. package/build/commands/utils/projectsConfig.js +1 -1
  64. package/build/commands/utils/rangerConfig.js +1 -1
  65. package/build/commands/utils/rangerRoot.js +1 -1
  66. package/build/commands/utils/rangerwrightCli.js +1 -1
  67. package/build/commands/utils/resolveProfileContext.js +1 -1
  68. package/build/commands/utils/resolveProfileUrl.js +1 -1
  69. package/build/commands/utils/retry.js +1 -1
  70. package/build/commands/utils/sessionCache.js +1 -1
  71. package/build/commands/utils/settings.js +1 -1
  72. package/build/commands/utils/skillContent.js +1 -1
  73. package/build/commands/utils/skills.js +1 -1
  74. package/build/commands/utils/stitchWebmFiles.js +1 -1
  75. package/build/commands/utils/telemetry.js +1 -1
  76. package/build/commands/utils/tokenRefresh.js +1 -1
  77. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  78. package/build/commands/utils/tunnelClient.js +1 -1
  79. package/build/commands/utils/userApi.js +1 -1
  80. package/build/commands/utils/version.js +1 -1
  81. package/build/commands/verifyFeature.js +1 -1
  82. package/build/commands/verifyFeatureCli.js +1 -1
  83. package/build/commands/verifyFeatureNovaCli.js +1 -1
  84. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  85. package/package.json +2 -2
@@ -1 +1 @@
1
- (function(_0x1a93df,_0x308fd5){const _0x18e0cd=_0x18cd,_0x1f5aba=_0x1a93df();while(!![]){try{const _0x31f058=parseInt(_0x18e0cd(0xb8))/0x1+parseInt(_0x18e0cd(0xeb))/0x2+parseInt(_0x18e0cd(0x78))/0x3*(parseInt(_0x18e0cd(0xbc))/0x4)+parseInt(_0x18e0cd(0xc6))/0x5+-parseInt(_0x18e0cd(0x8e))/0x6*(parseInt(_0x18e0cd(0xde))/0x7)+parseInt(_0x18e0cd(0xd8))/0x8+parseInt(_0x18e0cd(0xdb))/0x9*(-parseInt(_0x18e0cd(0xab))/0xa);if(_0x31f058===_0x308fd5)break;else _0x1f5aba['push'](_0x1f5aba['shift']());}catch(_0x11047f){_0x1f5aba['push'](_0x1f5aba['shift']());}}}(_0x3ab6,0x516ff));import{readdir,rm}from'fs/promises';import{join}from'path';import{existsSync}from'fs';function _0x18cd(_0x518fd7,_0x567559){_0x518fd7=_0x518fd7-0x74;const _0x3ab68d=_0x3ab6();let _0x18cda5=_0x3ab68d[_0x518fd7];return _0x18cda5;}import _0x4f5ff4 from'inquirer';import{getRangerDir,getRangerHomeDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{fetchAuthConfig,createCloudProfile,manualBrowserLogin,ApiError}from'./utils/cloudProfile.js';import{isInteractive}from'./utils/cloudProfileSession.js';function _0x3ab6(){const _0x3e02d3=['sTcCX','4766280rtJIBB','force','\x20\x20Next:\x20ranger\x20go\x20--profile\x20','175581hplxPt','env','abort','1369837CoGMgI','YWpSF','\x20\x20To\x20get\x20automated\x20login\x20set\x20up\x20for\x20your\x20team\x20(a\x20one-time\x20call):\x20eng@ranger.net\x0a','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','TypeError','PDAqq','What\x20would\x20you\x20like\x20to\x20do?','skipAuth','SVGve','cMTzA','user_declined','join','\x27\x20created\x20(CDP).','240610YALril','✓\x20Cloud\x20profile\x20\x27','\x20—\x20not\x20removing.\x20Delete\x20manually\x20if\x20you\x20want\x20it\x20gone.','origin','Please\x20provide\x20--url\x20when\x20running\x20in\x20non-interactive\x20mode.\x0aMake\x20sure\x20the\x20service\x20is\x20running\x20on\x20that\x20port\x20before\x20retrying.\x0aExample:\x20ranger\x20profile\x20add\x20local\x20--url\x20http://localhost:3000','47127lwHlpx','Invalid\x20URL','KtjyR','\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','prompt','Could\x20not\x20reach\x20','tPFfQ','trim','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','TeLMq','log','UjfqU','\x20\x20Set\x20active\x20profile:\x20','indexOf','The\x20--ci\x20flag\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x20session\x20state\x0a','setupHeader','url','environments','error','profile.add.autoRouteSkipped','NcXWU','\x20\x20When\x20you\x27re\x20ready\x20to\x20log\x20in,\x20run\x20`ranger\x20profile\x20add\x20','12lyPRvK','\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20session,\x0a','confirm','keys','QKHft','LNccU','eKGgi','yXXQW','\x0a\x20\x20Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team\x20yet\x20—\x20that\x27s\x20the\x20path\x20that\x20lets\x20Ranger\x20log\x20into\x20your\x20app\x20for\x20you\x20in\x20CI\x20/\x20background\x20agents.\x0a','trackPhaseEnd','nvzqE','RicgP','yes','NkMPA','setupHeaders','\x22.\x20Expected\x20\x22Name:\x20Value\x22.','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20','.\x20Configured\x20envs:\x20','test','wNZgN','\x20\x20Note:\x20cloud\x20profile\x20created,\x20but\x20failed\x20to\x20sweep\x20orphan\x20local\x20dirs\x20(','NODE_TLS_REJECT_UNAUTHORIZED','\x0a\x20\x20Could\x20not\x20fetch\x20this\x20org\x27s\x20auth\x20config:\x20','isProtocolError','\x27\x20to\x20the\x20cloud?','\x0a\x20\x20A\x20profile\x20named\x20\x22','UVoPH','saveToCloud','domains','220BbOFER','uIHMJ','⚠\x20Could\x20not\x20reach\x20','\x20\x20or\x20contact\x20eng@ranger.net\x20to\x20set\x20up\x20automated\x20login\x20for\x20your\x20team.','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','message','nccvO','cdpEndpoint','\x20\x20Note:\x20found\x20git-tracked\x20local\x20profile\x20at\x20','for\x20you,\x20so\x20the\x20encrypted-CI\x20flow\x20is\x20unnecessary.\x0a','\x20\x20https://docs.ranger.net/main/concepts/profiles','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20','YyQCV','33241FXRleX','GLlzy','\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20cloud-managed\x20session.','nurEz','56Cdjpht','exit','slice','iZPSh','\x20\x20Ranger\x20will\x20use\x20it\x20to\x20look\x20up\x20the\x20right\x20cloud\x20auth\x20env\x20to\x20attach.\x0a','VaOde','GngKm','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','warn','http://','924450EfZbiy','Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','.tmp-','\x0a✓\x20Profile\x20\x27','UlkSq','HTTP\x20','Afpqr','list','retry','OCAEm','no_auth_config','RAUrO','length','status','\x27\x20created\x20with\x20a\x20captured\x20session.\x0a','\x20\x20Workaround\x20for\x20now:\x20create\x20a\x20profile\x20without\x20a\x20captured\x20session\x20and\x20supply\x20one\x20later:\x0a','KLmsW'];_0x3ab6=function(){return _0x3e02d3;};return _0x3ab6();}import{matchAuthEnvironment}from'./utils/matchAuthEnvironment.js';import{isPathGitTracked}from'./utils/gitTracked.js';import{setProfileOverride}from'./utils/projectsConfig.js';const CLOUD_PROFILE_SHARING_WARNING='This\x20account\x20will\x20be\x20shared\x20with\x20everyone\x20at\x20your\x20organization';function warnCloudProfileSharedInOrg(){const _0x1453e1=_0x18cd;if(!process['stdout']['isTTY'])return;console[_0x1453e1(0xc4)](CLOUD_PROFILE_SHARING_WARNING);}async function checkUrlReachability(_0x4ba79d){const _0x3755cc=_0x18cd,_0x30a1f6={'GIUvd':function(_0x418ad5,_0x3c0b28,_0x41056){return _0x418ad5(_0x3c0b28,_0x41056);},'cqdqo':'manual','RAUrO':function(_0xb70aca,_0x242320){return _0xb70aca(_0x242320);},'eKGgi':function(_0x2b9102,_0x4ffbb4){return _0x2b9102<_0x4ffbb4;},'KtjyR':_0x3755cc(0x79)};try{const _0x32234b=new AbortController(),_0x488538=_0x30a1f6['GIUvd'](setTimeout,()=>_0x32234b[_0x3755cc(0xdd)](),0x1388),_0x16444b={'method':'HEAD','signal':_0x32234b['signal'],'redirect':_0x30a1f6['cqdqo']};/^https:\/\/localhost(:\d+)?/i[_0x3755cc(0xa0)](_0x4ba79d)&&(process[_0x3755cc(0xdc)]['NODE_TLS_REJECT_UNAUTHORIZED']='0');const _0x1cf3a7=await fetch(_0x4ba79d,_0x16444b);delete process[_0x3755cc(0xdc)]['NODE_TLS_REJECT_UNAUTHORIZED'],_0x30a1f6['RAUrO'](clearTimeout,_0x488538);if(_0x30a1f6[_0x3755cc(0x94)](_0x1cf3a7[_0x3755cc(0xd3)],0x190))return{'ok':!![]};return{'ok':![],'error':_0x3755cc(0xcb)+_0x1cf3a7['status']};}catch(_0x24a40d){delete process['env'][_0x3755cc(0xa3)];const _0x1c201c=_0x24a40d,_0x4a1400=_0x1c201c['message']||_0x30a1f6[_0x3755cc(0xd1)](String,_0x24a40d),_0x3c6173=_0x4a1400['includes'](_0x30a1f6[_0x3755cc(0x7a)])||_0x1c201c['name']===_0x3755cc(0xe2)||_0x4a1400['includes']('fetch\x20failed');return{'ok':![],'error':_0x4a1400,'isProtocolError':_0x3c6173};}}async function sweepOrphanLocalProfile(_0xafb753,_0x3868eb,_0x58ef6c){const _0x5d5f42=_0x18cd,_0x13d9e2={'KLmsW':function(_0x47492c,_0x4514d1,_0x493c02){return _0x47492c(_0x4514d1,_0x493c02);},'RicgP':'local','Afpqr':function(_0x34c72c,_0x487cf7){return _0x34c72c(_0x487cf7);},'wuqLK':function(_0x19ac06,_0x218637){return _0x19ac06(_0x218637);},'SVGve':function(_0x36163a,_0x5d6e2f,_0x582bfd){return _0x36163a(_0x5d6e2f,_0x582bfd);}},_0x1efc46=_0x13d9e2['KLmsW'](join,_0x3868eb,_0x13d9e2[_0x5d5f42(0x99)]),_0x5a2e42=join(_0x1efc46,_0xafb753);existsSync(_0x5a2e42)&&(_0x58ef6c&&await _0x13d9e2[_0x5d5f42(0xcc)](isPathGitTracked,_0x5a2e42)?console[_0x5d5f42(0x82)](_0x5d5f42(0xb3)+_0x5a2e42+_0x5d5f42(0x75)):(await _0x13d9e2[_0x5d5f42(0xd6)](rm,_0x5a2e42,{'recursive':!![],'force':!![]}),console['log']('\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20'+_0x5a2e42)));if(_0x13d9e2['wuqLK'](existsSync,_0x1efc46)){let _0x10b81e=[];try{_0x10b81e=await readdir(_0x1efc46);}catch{return;}const _0x2a812b=_0x5d5f42(0xc8)+_0xafb753+'-';for(const _0x403718 of _0x10b81e){if(!_0x403718['startsWith'](_0x2a812b))continue;const _0x5cb86a=join(_0x1efc46,_0x403718);await _0x13d9e2[_0x5d5f42(0xe6)](rm,_0x5cb86a,{'recursive':!![],'force':!![]}),console[_0x5d5f42(0x82)]('\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20'+_0x5cb86a);}}}async function sweepOrphansBestEffort(_0x4190ed){const _0x34d66a=_0x18cd,_0x5db3bf={'GLlzy':function(_0x4eed7b){return _0x4eed7b();},'UVoPH':function(_0x532951,_0x5c5e44){return _0x532951!==_0x5c5e44;},'nvzqE':function(_0x5df958,_0x24e913,_0x1d6334,_0x431dfb){return _0x5df958(_0x24e913,_0x1d6334,_0x431dfb);},'WvgJs':function(_0x362ba8,_0x46169b){return _0x362ba8 instanceof _0x46169b;},'suCcm':function(_0x3e132e,_0x6ffd00){return _0x3e132e(_0x6ffd00);}};try{await sweepOrphanLocalProfile(_0x4190ed,_0x5db3bf['GLlzy'](getRangerHomeDir),![]);const _0x121fdf=getRangerDir();_0x5db3bf[_0x34d66a(0xa8)](_0x121fdf,_0x5db3bf[_0x34d66a(0xb9)](getRangerHomeDir))&&await _0x5db3bf[_0x34d66a(0x98)](sweepOrphanLocalProfile,_0x4190ed,_0x121fdf,!![]);}catch(_0x26cee6){console[_0x34d66a(0x82)](_0x34d66a(0xa2)+(_0x5db3bf['WvgJs'](_0x26cee6,Error)?_0x26cee6['message']:_0x5db3bf['suCcm'](String,_0x26cee6))+').');}}async function markActive(_0xbc1d1b){const _0x11b6fa=_0x18cd,_0x416d5f={'NcXWU':'Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.'};try{await writeActiveProfileName(_0xbc1d1b),console[_0x11b6fa(0x82)](_0x11b6fa(0x84)+_0xbc1d1b);}catch{console['log'](_0x416d5f[_0x11b6fa(0x8c)]);}}async function tryAutoRouteCloudProfile(_0x1d720d,_0x8c98e0,_0x2bcf57,_0x4cc292,_0x302e37){const _0x2cd2d3=_0x18cd,_0xdcecd7={'OCAEm':function(_0x10cdd5,_0x315527){return _0x10cdd5 instanceof _0x315527;},'lCpmx':function(_0x7556a1,_0x3bfec1){return _0x7556a1(_0x3bfec1);},'nrmTs':'no_auth_config','UlkSq':function(_0xaefc00,_0x2aeaf2){return _0xaefc00+_0x2aeaf2;},'FEtYw':function(_0x517672,_0x26d49b,_0x4e5426){return _0x517672(_0x26d49b,_0x4e5426);},'cMTzA':'user_declined','GngKm':function(_0x165912,_0x2dc5f0,_0x24cd5a,_0x37b975){return _0x165912(_0x2dc5f0,_0x24cd5a,_0x37b975);},'wNZgN':'profile.add.autoRouted'};let _0x1c7710;try{_0x1c7710=await fetchAuthConfig();}catch(_0x21709e){return _0x302e37?.[_0x2cd2d3(0x97)](_0x2cd2d3(0x8b),{'reason':_0x2cd2d3(0xd0),'profileName':_0x1d720d}),console['error'](_0x2cd2d3(0xa4)+(_0xdcecd7[_0x2cd2d3(0xcf)](_0x21709e,Error)?_0x21709e['message']:_0xdcecd7['lCpmx'](String,_0x21709e))),![];}if(!_0x1c7710||!_0x1c7710[_0x2cd2d3(0x89)]||Object[_0x2cd2d3(0x91)](_0x1c7710['environments'])[_0x2cd2d3(0xd2)]===0x0){if(_0x4cc292)return await captureEnvLessProfile(_0x1d720d,_0x8c98e0,_0x2bcf57,_0x302e37);return _0x302e37?.[_0x2cd2d3(0x97)]('profile.add.autoRouteSkipped',{'reason':_0xdcecd7['nrmTs'],'profileName':_0x1d720d}),console['error'](_0xdcecd7['UlkSq'](_0xdcecd7[_0x2cd2d3(0xca)](_0x2cd2d3(0x96)+'\x0a'+_0x2cd2d3(0xd5)+(_0x2cd2d3(0xb6)+_0x1d720d+'\x20--url\x20'+_0x8c98e0+'\x20--skip-auth\x0a'),'\x0a'),_0x2cd2d3(0xe0))+'\x20\x20Details:\x20https://docs.ranger.net/main/concepts/profiles#automated-login'),![];}const _0x4d351c=_0xdcecd7['FEtYw'](matchAuthEnvironment,_0x8c98e0,_0x1c7710);if(!_0x4d351c)return _0x302e37?.[_0x2cd2d3(0x97)](_0x2cd2d3(0x8b),{'reason':'no_match','profileName':_0x1d720d}),console['error']('\x0a\x20\x20No\x20auth\x20env\x20matches\x20'+_0x8c98e0+_0x2cd2d3(0x9f)+Object['keys'](_0x1c7710[_0x2cd2d3(0x89)])[_0x2cd2d3(0xe9)](',\x20')+'.'),![];const _0x26763=_0x1c7710[_0x2cd2d3(0x89)][_0x4d351c],_0x17a903=_0x26763?.[_0x2cd2d3(0xaa)]??[];if(_0x4cc292&&!_0x2bcf57[_0x2cd2d3(0x9a)]){const {saveToCloud:_0x2eb967}=await _0x4f5ff4[_0x2cd2d3(0x7c)]([{'type':_0x2cd2d3(0x90),'name':_0x2cd2d3(0xa9),'message':'Found\x20auth\x20environment\x20\x27'+_0x4d351c+'\x27\x20matching\x20'+_0x8c98e0+'\x0a\x20\x20(domains:\x20'+_0x17a903[_0x2cd2d3(0xe9)](',\x20')+')\x0a\x20\x20Save\x20\x27'+_0x1d720d+_0x2cd2d3(0xa6),'default':!![]}]);if(!_0x2eb967)return _0x302e37?.[_0x2cd2d3(0x97)](_0x2cd2d3(0x8b),{'reason':_0xdcecd7[_0x2cd2d3(0xe7)],'profileName':_0x1d720d}),console[_0x2cd2d3(0x8a)](_0x2cd2d3(0xba)),![];}const _0x5e2e57=_0x17a903['some'](_0x14654c=>{const _0x40b8ed=_0x2cd2d3;try{return new URL(_0x14654c)[_0x40b8ed(0x76)]===new URL(_0x8c98e0)[_0x40b8ed(0x76)];}catch{return![];}}),_0x4b3c0d={};!_0x5e2e57&&(_0x4b3c0d['baseUrl']=_0x8c98e0);try{await _0xdcecd7[_0x2cd2d3(0xc2)](createCloudProfile,_0x1d720d,_0x4d351c,{'settings':_0x4b3c0d}),warnCloudProfileSharedInOrg();}catch(_0x2c52f9){if(_0x2c52f9 instanceof ApiError&&_0x2c52f9[_0x2cd2d3(0xd3)]===0x199){console[_0x2cd2d3(0x8a)]('\x0a\x20\x20A\x20profile\x20named\x20\x22'+_0x1d720d+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a'+('\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x1d720d));throw _0x2c52f9;}throw _0x2c52f9;}return console['log'](_0xdcecd7['UlkSq']('✓\x20Profile\x20\x27'+_0x1d720d+'\x27\x20created.\x0a',_0x2cd2d3(0xda)+_0x1d720d)),await _0xdcecd7['lCpmx'](sweepOrphansBestEffort,_0x1d720d),_0x302e37?.[_0x2cd2d3(0x97)](_0xdcecd7[_0x2cd2d3(0xa1)],{'envKey':_0x4d351c,'profileName':_0x1d720d}),!![];}async function createUnconfiguredCloudProfile(_0x4c8488,_0x3a40db){const _0x268bf6=_0x18cd,_0x3afa88={'TeLMq':function(_0x559d69,_0x1b122c){return _0x559d69 instanceof _0x1b122c;},'PdEhF':function(_0x980648,_0x5a85d9){return _0x980648===_0x5a85d9;}};try{await createCloudProfile(_0x4c8488,undefined,{'settings':_0x3a40db}),warnCloudProfileSharedInOrg();}catch(_0x859266){_0x3afa88[_0x268bf6(0x81)](_0x859266,ApiError)&&_0x3afa88['PdEhF'](_0x859266['status'],0x199)&&console[_0x268bf6(0x8a)](_0x268bf6(0xa7)+_0x4c8488+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a'+(_0x268bf6(0x9e)+_0x4c8488));throw _0x859266;}}async function captureEnvLessProfile(_0x4f8f16,_0x3e0ee1,_0x15876f,_0x5f3e60){const _0x5c39d3=_0x18cd,_0x4a2018={'PDAqq':'confirm','aPhkE':'Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team.\x20Capture\x20a\x20session\x20via\x20a\x20headed\x20browser\x20instead?','bQtdi':_0x5c39d3(0xe8),'uIHMJ':function(_0x5213f2,_0x1a6f51){return _0x5213f2+_0x1a6f51;},'VaOde':function(_0x2deb9a,_0x4d20fe){return _0x2deb9a===_0x4d20fe;},'nTqRb':function(_0x559b2d,_0x33d197,_0x45ff33,_0x5a1352){return _0x559b2d(_0x33d197,_0x45ff33,_0x5a1352);},'nurEz':function(_0x486a74,_0x334564){return _0x486a74>_0x334564;},'iZPSh':function(_0x52f39c,_0xfe813d){return _0x52f39c+_0xfe813d;},'jzqsc':'profile.add.autoRouted'};if(!_0x15876f['yes']){const {capture:_0x15181}=await _0x4f5ff4[_0x5c39d3(0x7c)]([{'type':_0x4a2018[_0x5c39d3(0xe3)],'name':'capture','message':_0x4a2018['aPhkE'],'default':!![]}]);if(!_0x15181)return _0x5f3e60?.[_0x5c39d3(0x97)](_0x5c39d3(0x8b),{'reason':_0x4a2018['bQtdi'],'profileName':_0x4f8f16}),console[_0x5c39d3(0x8a)](_0x4a2018[_0x5c39d3(0xac)](_0x5c39d3(0x8f),_0x5c39d3(0xae))),![];}const _0x4fec4e={};if(_0x15876f[_0x5c39d3(0x87)])for(const _0x5a28ce of _0x15876f[_0x5c39d3(0x87)]){const _0x313f1b=_0x5a28ce[_0x5c39d3(0x85)](':');if(_0x4a2018[_0x5c39d3(0xc1)](_0x313f1b,-0x1))continue;_0x4fec4e[_0x5a28ce['slice'](0x0,_0x313f1b)['trim']()]=_0x5a28ce[_0x5c39d3(0xbe)](_0x4a2018[_0x5c39d3(0xac)](_0x313f1b,0x1))[_0x5c39d3(0x7f)]();}const _0x7bd710={'baseUrl':_0x3e0ee1};Object[_0x5c39d3(0x91)](_0x4fec4e)['length']>0x0&&(_0x7bd710[_0x5c39d3(0x9c)]=_0x4fec4e);let _0x1ac7ea;try{_0x1ac7ea=await _0x4a2018['nTqRb'](createCloudProfile,_0x4f8f16,undefined,{'settings':_0x7bd710}),warnCloudProfileSharedInOrg();}catch(_0x31f1fe){_0x31f1fe instanceof ApiError&&_0x31f1fe[_0x5c39d3(0xd3)]===0x199&&console['error'](_0x4a2018[_0x5c39d3(0xac)]('\x0a\x20\x20A\x20profile\x20named\x20\x22'+_0x4f8f16+_0x5c39d3(0x7b),'\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x4f8f16));throw _0x31f1fe;}return await manualBrowserLogin(_0x1ac7ea,{'key':'','domains':[_0x3e0ee1],'setupHeaders':_0x4a2018[_0x5c39d3(0xbb)](Object['keys'](_0x4fec4e)['length'],0x0)?_0x4fec4e:undefined}),console[_0x5c39d3(0x82)](_0x4a2018[_0x5c39d3(0xbf)](_0x5c39d3(0xc9)+_0x4f8f16+_0x5c39d3(0xd4),_0x5c39d3(0xda)+_0x4f8f16)),await sweepOrphansBestEffort(_0x4f8f16),_0x5f3e60?.['trackPhaseEnd'](_0x4a2018['jzqsc'],{'envKey':null,'profileName':_0x4f8f16}),!![];}export async function addEnv(_0x3e0a9a,_0x3b94d4={},_0x3b7a04){const _0x779f66=_0x18cd,_0x4e2b2d={'YyQCV':function(_0x28d673,_0x287ec1){return _0x28d673+_0x287ec1;},'DUtuZ':'To\x20set\x20up\x20a\x20profile,\x20run:\x0a','qzpuE':_0x779f66(0xaf),'UjfqU':_0x779f66(0xc3),'xzeot':_0x779f66(0xb5),'rgJwB':function(_0x5deb42,_0x816964){return _0x5deb42===_0x816964;},'LNccU':function(_0x5a0830,_0x8a6d4){return _0x5a0830(_0x8a6d4);},'INFjX':function(_0x9a4580){return _0x9a4580();},'yXXQW':_0x779f66(0x77),'QKHft':function(_0x2e9e69,_0x2a5d94,_0x46af37,_0x3bbf72,_0x12475d){return _0x2e9e69(_0x2a5d94,_0x46af37,_0x3bbf72,_0x12475d);},'tPFfQ':'cdpEndpoint','ZSbxT':'isElectron','XUuWJ':function(_0x25c657,_0x592617){return _0x25c657 instanceof _0x592617;},'YWpSF':function(_0xee69a2,_0xa1faf1){return _0xee69a2>_0xa1faf1;},'zrLYc':function(_0x1239f8,_0x2b3fa9){return _0x1239f8+_0x2b3fa9;},'vVRac':'\x0a🌐\x20Profile\x20Setup\x0a','mrKpn':_0x779f66(0xe1),'CMBRF':'input','PyrqH':function(_0x102b50,_0x1e6c42){return _0x102b50||_0x1e6c42;},'NkMPA':'action','TvHzz':'continue','nccvO':function(_0x114263,_0x168bbe){return _0x114263===_0x168bbe;},'sTcCX':function(_0x3b48df,_0x3bd2c3){return _0x3b48df(_0x3bd2c3);}};_0x3b94d4['ci']&&(console['error'](_0x4e2b2d[_0x779f66(0xb7)](_0x4e2b2d[_0x779f66(0xb7)](_0x779f66(0x86)+_0x779f66(0xb4)+'\x0a'+_0x4e2b2d['DUtuZ']+_0x4e2b2d['qzpuE']+'\x0a',_0x4e2b2d[_0x779f66(0x83)]),_0x4e2b2d['xzeot'])),process[_0x779f66(0xbd)](0x1));const _0x366b78={};if(_0x3b94d4[_0x779f66(0x87)])for(const _0x12e7ed of _0x3b94d4['setupHeader']){const _0x348bda=_0x12e7ed['indexOf'](':');if(_0x348bda===-0x1)throw new Error('Invalid\x20--setup-header\x20format:\x20\x22'+_0x12e7ed+_0x779f66(0x9d));const _0x27a27f=_0x12e7ed['slice'](0x0,_0x348bda)['trim'](),_0x66b3a3=_0x12e7ed[_0x779f66(0xbe)](_0x4e2b2d[_0x779f66(0xb7)](_0x348bda,0x1))['trim']();_0x366b78[_0x27a27f]=_0x66b3a3;}if(_0x3b94d4['cdpEndpoint']!==undefined&&_0x4e2b2d['rgJwB'](_0x3b94d4[_0x779f66(0xb2)]['trim'](),''))throw new Error('--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222');if(_0x3b94d4['cdpEndpoint']&&_0x3b94d4['url'])throw new Error('--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.');const _0x1dd266=_0x4e2b2d['LNccU'](Boolean,_0x3b94d4['cdpEndpoint']),_0x3f03f0=_0x4e2b2d['INFjX'](isInteractive);if(!_0x3f03f0&&!_0x3b94d4['url']&&!_0x1dd266&&!_0x3b94d4[_0x779f66(0xe5)])throw new Error(_0x4e2b2d[_0x779f66(0x95)]);if(_0x1dd266){const _0x13aa21=_0x3b94d4['cdpEndpoint'];console[_0x779f66(0x82)]('\x0a🔌\x20CDP\x20Profile\x20Setup\x0a'),console['log'](_0x779f66(0x80)+_0x13aa21);const _0x5bc1b6={'cdpEndpoint':_0x13aa21,'isElectron':!![]};Object[_0x779f66(0x91)](_0x366b78)[_0x779f66(0xd2)]>0x0&&(_0x5bc1b6['setupHeaders']=_0x366b78);await createUnconfiguredCloudProfile(_0x3e0a9a,_0x5bc1b6);try{_0x4e2b2d[_0x779f66(0x92)](setProfileOverride,process['cwd'](),_0x3e0a9a,_0x4e2b2d[_0x779f66(0x7e)],_0x13aa21),setProfileOverride(process['cwd'](),_0x3e0a9a,_0x4e2b2d['ZSbxT'],!![]);}catch(_0x509f69){console[_0x779f66(0x8a)]('\x0a\x20\x20Cloud\x20profile\x20created,\x20but\x20failed\x20to\x20write\x20per-cwd\x20CDP\x20override\x20to\x20projects.json:\x20'+(_0x4e2b2d['XUuWJ'](_0x509f69,Error)?_0x509f69[_0x779f66(0xb0)]:String(_0x509f69)));}console[_0x779f66(0x82)](_0x779f66(0x74)+_0x3e0a9a+_0x779f66(0xea)),await _0x4e2b2d[_0x779f66(0x93)](sweepOrphansBestEffort,_0x3e0a9a),await _0x4e2b2d[_0x779f66(0x93)](markActive,_0x3e0a9a);return;}if(_0x3b94d4[_0x779f66(0xe5)]){const _0xe5c50={};_0x3b94d4['url']&&(_0xe5c50['baseUrl']=_0x3b94d4[_0x779f66(0x88)]);_0x4e2b2d[_0x779f66(0xdf)](Object['keys'](_0x366b78)[_0x779f66(0xd2)],0x0)&&(_0xe5c50[_0x779f66(0x9c)]=_0x366b78);await createUnconfiguredCloudProfile(_0x3e0a9a,_0xe5c50),console['log'](_0x4e2b2d['zrLYc']('✓\x20Profile\x20\x27'+_0x3e0a9a+'\x27\x20created\x20(no\x20session).\x0a',_0x779f66(0x8d)+_0x3e0a9a+'`\x20again\x20without\x20--skip-auth.')),await sweepOrphansBestEffort(_0x3e0a9a),await markActive(_0x3e0a9a);return;}if(_0x3b94d4['url']){const _0x1c622c=_0x3b94d4[_0x779f66(0x88)],_0x330aec=await _0x4e2b2d['LNccU'](checkUrlReachability,_0x1c622c);if(!_0x330aec['ok']&&!_0x3b94d4[_0x779f66(0xd9)])throw new Error(_0x779f66(0x7d)+_0x1c622c+':\x20'+_0x330aec['error']+'\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.');!_0x330aec['ok']&&_0x3b94d4['force']&&console['log'](_0x779f66(0xad)+_0x1c622c+':\x20'+_0x330aec[_0x779f66(0x8a)]+'\x20(continuing\x20with\x20--force)');}else{console[_0x779f66(0x82)](_0x4e2b2d['vVRac']),console['log'](_0x4e2b2d['mrKpn']),console[_0x779f66(0x82)](_0x779f66(0xc0));let _0x35943a='',_0x235bcc=![];while(!![]){const _0xfd9ee3=await _0x4f5ff4['prompt']([{'type':_0x4e2b2d['CMBRF'],'name':'baseUrl','message':_0x235bcc?_0x779f66(0xc7):'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','default':_0x4e2b2d['PyrqH'](_0x35943a,'http://localhost:3000')}]);_0x35943a=_0xfd9ee3['baseUrl'];const _0x2b8620=await _0x4e2b2d[_0x779f66(0x93)](checkUrlReachability,_0x35943a);if(_0x2b8620['ok'])break;const _0x2693ae=/^[a-zA-Z][\w+.-]*:\/\//['test'](_0x35943a),_0x137e47=_0x2b8620[_0x779f66(0xa5)]&&!_0x2693ae,_0x4b0be0=_0x137e47?_0x779f66(0xc5)+_0x35943a:null;_0x235bcc=!![],console[_0x779f66(0x82)]('\x0a\x20\x20Could\x20not\x20reach\x20'+_0x35943a+':\x20'+_0x2b8620['error']);_0x4b0be0&&console[_0x779f66(0x82)]('\x20\x20Did\x20you\x20mean\x20'+_0x4b0be0+'?');const {action:_0x14014c}=await _0x4f5ff4[_0x779f66(0x7c)]([{'type':_0x779f66(0xcd),'name':_0x4e2b2d[_0x779f66(0x9b)],'message':_0x779f66(0xe4),'choices':[..._0x4b0be0?[{'name':'Use\x20'+_0x4b0be0,'value':'use_suggestion'}]:[],{'name':'Enter\x20a\x20different\x20URL','value':_0x779f66(0xce)},{'name':'Continue\x20anyway','value':_0x4e2b2d['TvHzz']}]}]);if(_0x4e2b2d[_0x779f66(0xb1)](_0x14014c,'use_suggestion')&&_0x4b0be0){_0x35943a=_0x4b0be0;const _0x1e7fa1=await _0x4e2b2d[_0x779f66(0xd7)](checkUrlReachability,_0x35943a);if(_0x1e7fa1['ok'])break;console[_0x779f66(0x82)]('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0x35943a+':\x20'+_0x1e7fa1['error']);}else{if(_0x14014c===_0x4e2b2d['TvHzz'])break;}}_0x3b94d4={..._0x3b94d4,'url':_0x35943a};}let _0x23fcfb=![];try{_0x23fcfb=await tryAutoRouteCloudProfile(_0x3e0a9a,_0x3b94d4[_0x779f66(0x88)],_0x3b94d4,_0x3f03f0,_0x3b7a04);}catch(_0x444106){console['error']('\x0a\x20\x20Failed\x20to\x20create\x20cloud\x20profile\x20\x22'+_0x3e0a9a+'\x22:\x20'+(_0x444106 instanceof Error?_0x444106['message']:String(_0x444106))),process[_0x779f66(0xbd)](0x1);}!_0x23fcfb&&process['exit'](0x1),await _0x4e2b2d['sTcCX'](markActive,_0x3e0a9a);}
1
+ const _0x270d87=_0x1293;(function(_0x562e03,_0x3f56e9){const _0x9452ea=_0x1293,_0x2ce360=_0x562e03();while(!![]){try{const _0x4e9725=parseInt(_0x9452ea(0xd7))/0x1+parseInt(_0x9452ea(0x13b))/0x2*(-parseInt(_0x9452ea(0x120))/0x3)+parseInt(_0x9452ea(0x106))/0x4+parseInt(_0x9452ea(0x14a))/0x5*(parseInt(_0x9452ea(0x11a))/0x6)+parseInt(_0x9452ea(0x148))/0x7+-parseInt(_0x9452ea(0xf8))/0x8*(-parseInt(_0x9452ea(0xc7))/0x9)+-parseInt(_0x9452ea(0xeb))/0xa*(parseInt(_0x9452ea(0x14e))/0xb);if(_0x4e9725===_0x3f56e9)break;else _0x2ce360['push'](_0x2ce360['shift']());}catch(_0x664cc8){_0x2ce360['push'](_0x2ce360['shift']());}}}(_0x46e9,0x5794a));import{readdir,rm}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import _0x7d494e from'inquirer';import{getRangerDir,getRangerHomeDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{fetchAuthConfig,createCloudProfile,manualBrowserLogin,ApiError}from'./utils/cloudProfile.js';import{isInteractive}from'./utils/cloudProfileSession.js';function _0x1293(_0x5a4af8,_0x18003c){_0x5a4af8=_0x5a4af8-0xc6;const _0x46e90f=_0x46e9();let _0x1293b4=_0x46e90f[_0x5a4af8];return _0x1293b4;}import{matchAuthEnvironment}from'./utils/matchAuthEnvironment.js';import{isPathGitTracked}from'./utils/gitTracked.js';import{setProfileOverride}from'./utils/projectsConfig.js';const CLOUD_PROFILE_SHARING_WARNING=_0x270d87(0x126);function warnCloudProfileSharedInOrg(){const _0x233776=_0x270d87;if(!process['stdout']['isTTY'])return;console[_0x233776(0x134)](CLOUD_PROFILE_SHARING_WARNING);}async function checkUrlReachability(_0x44291b){const _0x365001=_0x270d87,_0x30b8bd={'zArHo':function(_0x3ba696,_0x2299e6,_0x57e839){return _0x3ba696(_0x2299e6,_0x57e839);},'joxGO':function(_0x33e096,_0x45305e,_0x314715){return _0x33e096(_0x45305e,_0x314715);},'Enqrk':function(_0x26407e,_0x1d0a91){return _0x26407e(_0x1d0a91);},'WkLBF':function(_0x5ec530,_0x103960){return _0x5ec530<_0x103960;},'Ddgbv':function(_0x3b11a4,_0x3e7f74){return _0x3b11a4===_0x3e7f74;},'OYMno':'TypeError'};try{const _0x1fd607=new AbortController(),_0x1399cc=_0x30b8bd[_0x365001(0xd0)](setTimeout,()=>_0x1fd607[_0x365001(0xe2)](),0x1388),_0x3e3409={'method':_0x365001(0x113),'signal':_0x1fd607['signal'],'redirect':'manual'};/^https:\/\/localhost(:\d+)?/i[_0x365001(0xd4)](_0x44291b)&&(process[_0x365001(0x144)]['NODE_TLS_REJECT_UNAUTHORIZED']='0');const _0x38c91a=await _0x30b8bd[_0x365001(0xd9)](fetch,_0x44291b,_0x3e3409);delete process['env'][_0x365001(0x118)],_0x30b8bd[_0x365001(0x117)](clearTimeout,_0x1399cc);if(_0x30b8bd[_0x365001(0x138)](_0x38c91a['status'],0x190))return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x38c91a['status']};}catch(_0x394a3f){delete process[_0x365001(0x144)]['NODE_TLS_REJECT_UNAUTHORIZED'];const _0x4bf5a7=_0x394a3f,_0xfaf6d2=_0x4bf5a7['message']||_0x30b8bd[_0x365001(0x117)](String,_0x394a3f),_0x565870=_0xfaf6d2['includes']('Invalid\x20URL')||_0x30b8bd[_0x365001(0x101)](_0x4bf5a7['name'],_0x30b8bd[_0x365001(0x119)])||_0xfaf6d2['includes'](_0x365001(0x131));return{'ok':![],'error':_0xfaf6d2,'isProtocolError':_0x565870};}}async function sweepOrphanLocalProfile(_0x5804f1,_0x1cc539,_0x3b2307){const _0x5796e9=_0x270d87,_0x156ddd={'UObSp':function(_0x5627be,_0x4f92fe,_0x5a05d4){return _0x5627be(_0x4f92fe,_0x5a05d4);},'eTktC':'local','WJFLS':function(_0x2057de,_0x4fcfa2){return _0x2057de(_0x4fcfa2);},'ugBvL':function(_0x19f489,_0x1cab62){return _0x19f489(_0x1cab62);},'HPMiR':function(_0x26970c,_0x2d485d){return _0x26970c(_0x2d485d);},'CACwf':function(_0x36d985,_0x42eece,_0x2bb6a5){return _0x36d985(_0x42eece,_0x2bb6a5);}},_0x6ecf6e=_0x156ddd[_0x5796e9(0x13a)](join,_0x1cc539,_0x156ddd[_0x5796e9(0x112)]),_0x1ffa2b=join(_0x6ecf6e,_0x5804f1);existsSync(_0x1ffa2b)&&(_0x3b2307&&await _0x156ddd['WJFLS'](isPathGitTracked,_0x1ffa2b)?console['log'](_0x5796e9(0x107)+_0x1ffa2b+'\x20—\x20not\x20removing.\x20Delete\x20manually\x20if\x20you\x20want\x20it\x20gone.'):(await _0x156ddd['UObSp'](rm,_0x1ffa2b,{'recursive':!![],'force':!![]}),console['log'](_0x5796e9(0x133)+_0x1ffa2b)));if(_0x156ddd[_0x5796e9(0x109)](existsSync,_0x6ecf6e)){let _0x209347=[];try{_0x209347=await _0x156ddd['HPMiR'](readdir,_0x6ecf6e);}catch{return;}const _0x4e8e24=_0x5796e9(0x127)+_0x5804f1+'-';for(const _0x5a54ac of _0x209347){if(!_0x5a54ac['startsWith'](_0x4e8e24))continue;const _0x172fdc=join(_0x6ecf6e,_0x5a54ac);await _0x156ddd['CACwf'](rm,_0x172fdc,{'recursive':!![],'force':!![]}),console[_0x5796e9(0x125)](_0x5796e9(0x133)+_0x172fdc);}}}function _0x46e9(){const _0x422425=['xgWzz','user_declined','Use\x20','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','\x27\x20to\x20the\x20cloud?','Ddgbv','isElectron','indexOf','status','✓\x20Profile\x20\x27','347832iEHFvW','\x20\x20Note:\x20found\x20git-tracked\x20local\x20profile\x20at\x20','HSHNm','ugBvL','\x20\x20Details:\x20https://docs.ranger.net/main/concepts/profiles#automated-login','\x20\x20Did\x20you\x20mean\x20','jWPgY','oGZGT','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','\x0a\x20\x20(domains:\x20','\x20\x20Workaround\x20for\x20now:\x20create\x20a\x20profile\x20without\x20a\x20captured\x20session\x20and\x20supply\x20one\x20later:\x0a','\x20(continuing\x20with\x20--force)','eTktC','HEAD','environments','length','keys','Enqrk','NODE_TLS_REJECT_UNAUTHORIZED','OYMno','126kMQEFD',')\x0a\x20\x20Save\x20\x27','some','tmHVK','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','\x0a✓\x20Profile\x20\x27','309081QuIHVX','join','\x0a\x20\x20Still\x20could\x20not\x20reach\x20','prompt','\x20\x20Set\x20active\x20profile:\x20','log','This\x20account\x20will\x20be\x20shared\x20with\x20everyone\x20at\x20your\x20organization','.tmp-','\x27\x20created\x20with\x20a\x20captured\x20session.\x0a','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','MSlwQ','\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20cloud-managed\x20session.','error','YEFCC','XAPFm','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20','slice','fetch\x20failed','\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20','warn','trackPhaseEnd','force','message','WkLBF','\x0a\x20\x20Failed\x20to\x20create\x20cloud\x20profile\x20\x22','UObSp','2PXZsoF','\x20--skip-auth\x0a','Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','thjYT','setupHeader','setupHeaders','cdpEndpoint','continue','for\x20you,\x20so\x20the\x20encrypted-CI\x20flow\x20is\x20unnecessary.\x0a','env','\x0a🌐\x20Profile\x20Setup\x0a','http://','gWujO','3545486OzYuzR','rMdnA','8815YQfpbO','vZDiY','DTtxH','HGJGS','16005nTpApn','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','WYuho','What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','\x22.\x20Expected\x20\x22Name:\x20Value\x22.','30249wWltEf','mDSlV','url','\x0a\x20\x20Could\x20not\x20reach\x20','wVBXT','odVDn','trim','GDROr','confirm','zArHo','Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team.\x20Capture\x20a\x20session\x20via\x20a\x20headed\x20browser\x20instead?','no_match','FSHQU','test','DUuDD','oKacw','587550pJmpuG','NZaQE','joxGO','FaYLF','profile.add.autoRouted','cwd','use_suggestion','isProtocolError','\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','\x0a\x20\x20A\x20profile\x20named\x20\x22','profile.add.autoRouteSkipped','abort','eJrEA','baseUrl','SSHnl','action','XFxUC','no_auth_config','\x0a\x20\x20No\x20auth\x20env\x20matches\x20','yAbrV','8270YDWlWA','origin','bNlUv','capture','\x22:\x20','Jllhq','\x27\x20created\x20(no\x20session).\x0a','\x27\x20matching\x20','To\x20set\x20up\x20a\x20profile,\x20run:\x0a','\x0a\x20\x20Could\x20not\x20fetch\x20this\x20org\x27s\x20auth\x20config:\x20','TjaLg','exit','FUQAU','1064SFnHjZ','HnlOS','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20','MYIMm'];_0x46e9=function(){return _0x422425;};return _0x46e9();}async function sweepOrphansBestEffort(_0x536240){const _0x28e61b=_0x270d87,_0x575006={'KaNVG':function(_0x4ede6e){return _0x4ede6e();},'BEphM':function(_0x4be02e,_0x4cccf9,_0x448199,_0x1c51d7){return _0x4be02e(_0x4cccf9,_0x448199,_0x1c51d7);},'bNlUv':function(_0x59e526,_0x548ae6){return _0x59e526(_0x548ae6);}};try{await sweepOrphanLocalProfile(_0x536240,_0x575006['KaNVG'](getRangerHomeDir),![]);const _0x545441=getRangerDir();_0x545441!==getRangerHomeDir()&&await _0x575006['BEphM'](sweepOrphanLocalProfile,_0x536240,_0x545441,!![]);}catch(_0x13c4a9){console[_0x28e61b(0x125)]('\x20\x20Note:\x20cloud\x20profile\x20created,\x20but\x20failed\x20to\x20sweep\x20orphan\x20local\x20dirs\x20('+(_0x13c4a9 instanceof Error?_0x13c4a9[_0x28e61b(0x137)]:_0x575006[_0x28e61b(0xed)](String,_0x13c4a9))+').');}}async function markActive(_0x28801e){const _0xbfa55b=_0x270d87,_0x5bfda1={'SGmRf':function(_0x3a8f30,_0x56e52b){return _0x3a8f30(_0x56e52b);},'aURpu':_0xbfa55b(0x11e)};try{await _0x5bfda1['SGmRf'](writeActiveProfileName,_0x28801e),console['log'](_0xbfa55b(0x124)+_0x28801e);}catch{console['log'](_0x5bfda1['aURpu']);}}async function tryAutoRouteCloudProfile(_0x4ea948,_0x3ce60b,_0x5d27d6,_0x68e8db,_0x3415a3){const _0x3ccddf=_0x270d87,_0x41b2db={'WFCNG':_0x3ccddf(0xe1),'THQSc':function(_0xcb7c43,_0x13a334){return _0xcb7c43 instanceof _0x13a334;},'DUuDD':function(_0x522f5f,_0x480d75){return _0x522f5f(_0x480d75);},'HGJGS':function(_0x2f7dfa,_0x533bde){return _0x2f7dfa+_0x533bde;},'TjaLg':'\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','XRcdC':_0x3ccddf(0x110),'HnlOS':_0x3ccddf(0x10a),'GDROr':_0x3ccddf(0xcf),'CMZPS':'saveToCloud','RKCnY':_0x3ccddf(0xfd),'cNuKC':function(_0x4c582a,_0x5e7575,_0x479a10,_0x25f077){return _0x4c582a(_0x5e7575,_0x479a10,_0x25f077);},'gWujO':function(_0x2f9352){return _0x2f9352();},'wVBXT':function(_0x30c3a4,_0x57a7d1){return _0x30c3a4 instanceof _0x57a7d1;},'aLlsW':function(_0x2fd3ec,_0x42f706){return _0x2fd3ec+_0x42f706;}};let _0x4ca495;try{_0x4ca495=await fetchAuthConfig();}catch(_0x22e587){return _0x3415a3?.[_0x3ccddf(0x135)](_0x41b2db['WFCNG'],{'reason':_0x3ccddf(0xe8),'profileName':_0x4ea948}),console['error'](_0x3ccddf(0xf4)+(_0x41b2db['THQSc'](_0x22e587,Error)?_0x22e587[_0x3ccddf(0x137)]:_0x41b2db[_0x3ccddf(0xd5)](String,_0x22e587))),![];}if(!_0x4ca495||!_0x4ca495[_0x3ccddf(0x114)]||Object[_0x3ccddf(0x116)](_0x4ca495[_0x3ccddf(0x114)])[_0x3ccddf(0x115)]===0x0){if(_0x68e8db)return await captureEnvLessProfile(_0x4ea948,_0x3ce60b,_0x5d27d6,_0x3415a3);return _0x3415a3?.[_0x3ccddf(0x135)](_0x3ccddf(0xe1),{'reason':'no_auth_config','profileName':_0x4ea948}),console[_0x3ccddf(0x12c)](_0x41b2db[_0x3ccddf(0x14d)](_0x41b2db[_0x3ccddf(0x14d)](_0x41b2db[_0x3ccddf(0x14d)](_0x41b2db[_0x3ccddf(0xf5)]+'\x0a'+_0x41b2db['XRcdC'],_0x3ccddf(0xfa)+_0x4ea948+'\x20--url\x20'+_0x3ce60b+_0x3ccddf(0x13c))+'\x0a','\x20\x20To\x20get\x20automated\x20login\x20set\x20up\x20for\x20your\x20team\x20(a\x20one-time\x20call):\x20eng@ranger.net\x0a'),_0x41b2db[_0x3ccddf(0xf9)])),![];}const _0x38da1d=matchAuthEnvironment(_0x3ce60b,_0x4ca495);if(!_0x38da1d)return _0x3415a3?.[_0x3ccddf(0x135)](_0x3ccddf(0xe1),{'reason':_0x3ccddf(0xd2),'profileName':_0x4ea948}),console[_0x3ccddf(0x12c)](_0x3ccddf(0xe9)+_0x3ce60b+'.\x20Configured\x20envs:\x20'+Object[_0x3ccddf(0x116)](_0x4ca495[_0x3ccddf(0x114)])[_0x3ccddf(0x121)](',\x20')+'.'),![];const _0x5d26bd=_0x4ca495[_0x3ccddf(0x114)][_0x38da1d],_0x578559=_0x5d26bd?.['domains']??[];if(_0x68e8db&&!_0x5d27d6['yes']){const {saveToCloud:_0x2cc0bb}=await _0x7d494e[_0x3ccddf(0x123)]([{'type':_0x41b2db[_0x3ccddf(0xce)],'name':_0x41b2db['CMZPS'],'message':'Found\x20auth\x20environment\x20\x27'+_0x38da1d+_0x3ccddf(0xf2)+_0x3ce60b+_0x3ccddf(0x10f)+_0x578559['join'](',\x20')+_0x3ccddf(0x11b)+_0x4ea948+_0x3ccddf(0x100),'default':!![]}]);if(!_0x2cc0bb)return _0x3415a3?.['trackPhaseEnd'](_0x41b2db['WFCNG'],{'reason':_0x41b2db['RKCnY'],'profileName':_0x4ea948}),console[_0x3ccddf(0x12c)](_0x3ccddf(0x12b)),![];}const _0x4b1484=_0x578559[_0x3ccddf(0x11c)](_0x59c5ec=>{const _0x17185b=_0x3ccddf;try{return new URL(_0x59c5ec)['origin']===new URL(_0x3ce60b)[_0x17185b(0xec)];}catch{return![];}}),_0x43e29e={};!_0x4b1484&&(_0x43e29e[_0x3ccddf(0xe4)]=_0x3ce60b);try{await _0x41b2db['cNuKC'](createCloudProfile,_0x4ea948,_0x38da1d,{'settings':_0x43e29e}),_0x41b2db[_0x3ccddf(0x147)](warnCloudProfileSharedInOrg);}catch(_0x102db9){if(_0x41b2db[_0x3ccddf(0xcb)](_0x102db9,ApiError)&&_0x102db9[_0x3ccddf(0x104)]===0x199){console[_0x3ccddf(0x12c)](_0x41b2db['HGJGS'](_0x3ccddf(0xe0)+_0x4ea948+_0x3ccddf(0xdf),_0x3ccddf(0x12f)+_0x4ea948));throw _0x102db9;}throw _0x102db9;}return console[_0x3ccddf(0x125)](_0x41b2db['aLlsW'](_0x3ccddf(0x105)+_0x4ea948+'\x27\x20created.\x0a','\x20\x20Next:\x20ranger\x20go\x20--profile\x20'+_0x4ea948)),await _0x41b2db['DUuDD'](sweepOrphansBestEffort,_0x4ea948),_0x3415a3?.[_0x3ccddf(0x135)]('profile.add.autoRouted',{'envKey':_0x38da1d,'profileName':_0x4ea948}),!![];}async function createUnconfiguredCloudProfile(_0x4b4b91,_0x4ed09d){const _0x34adbd=_0x270d87,_0x598be0={'Jllhq':function(_0x4c28c2,_0x2a9d50,_0x3afb8a,_0xc447f1){return _0x4c28c2(_0x2a9d50,_0x3afb8a,_0xc447f1);}};try{await _0x598be0[_0x34adbd(0xf0)](createCloudProfile,_0x4b4b91,undefined,{'settings':_0x4ed09d}),warnCloudProfileSharedInOrg();}catch(_0x140983){_0x140983 instanceof ApiError&&_0x140983[_0x34adbd(0x104)]===0x199&&console['error']('\x0a\x20\x20A\x20profile\x20named\x20\x22'+_0x4b4b91+_0x34adbd(0xdf)+('\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x4b4b91));throw _0x140983;}}async function captureEnvLessProfile(_0x319dff,_0x484e0a,_0x337445,_0x4b648c){const _0x3acbc0=_0x270d87,_0x33ac8f={'rMdnA':_0x3acbc0(0xee),'FSHQU':'profile.add.autoRouteSkipped','oKacw':'user_declined','MSlwQ':function(_0x233d06,_0x344e8f){return _0x233d06+_0x344e8f;},'odVDn':function(_0x1e7d1e,_0x177364){return _0x1e7d1e===_0x177364;},'MYIMm':function(_0x47bfab){return _0x47bfab();},'XFxUC':function(_0x3950cf,_0x5d2faa){return _0x3950cf>_0x5d2faa;},'NZaQE':function(_0x17d782,_0xb3cd06){return _0x17d782(_0xb3cd06);},'xgWzz':_0x3acbc0(0xdb)};if(!_0x337445['yes']){const {capture:_0x4f0ade}=await _0x7d494e['prompt']([{'type':_0x3acbc0(0xcf),'name':_0x33ac8f[_0x3acbc0(0x149)],'message':_0x3acbc0(0xd1),'default':!![]}]);if(!_0x4f0ade)return _0x4b648c?.['trackPhaseEnd'](_0x33ac8f[_0x3acbc0(0xd3)],{'reason':_0x33ac8f[_0x3acbc0(0xd6)],'profileName':_0x319dff}),console[_0x3acbc0(0x12c)](_0x33ac8f[_0x3acbc0(0x12a)]('\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20session,\x0a','\x20\x20or\x20contact\x20eng@ranger.net\x20to\x20set\x20up\x20automated\x20login\x20for\x20your\x20team.')),![];}const _0x105e2b={};if(_0x337445['setupHeader'])for(const _0x4801ff of _0x337445[_0x3acbc0(0x13f)]){const _0x267402=_0x4801ff['indexOf'](':');if(_0x33ac8f['odVDn'](_0x267402,-0x1))continue;_0x105e2b[_0x4801ff[_0x3acbc0(0x130)](0x0,_0x267402)[_0x3acbc0(0xcd)]()]=_0x4801ff[_0x3acbc0(0x130)](_0x33ac8f['MSlwQ'](_0x267402,0x1))[_0x3acbc0(0xcd)]();}const _0xf4e5d0={'baseUrl':_0x484e0a};Object[_0x3acbc0(0x116)](_0x105e2b)[_0x3acbc0(0x115)]>0x0&&(_0xf4e5d0['setupHeaders']=_0x105e2b);let _0x1198e9;try{_0x1198e9=await createCloudProfile(_0x319dff,undefined,{'settings':_0xf4e5d0}),_0x33ac8f[_0x3acbc0(0xfb)](warnCloudProfileSharedInOrg);}catch(_0x1644a4){_0x1644a4 instanceof ApiError&&_0x33ac8f[_0x3acbc0(0xcc)](_0x1644a4['status'],0x199)&&console['error']('\x0a\x20\x20A\x20profile\x20named\x20\x22'+_0x319dff+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a'+(_0x3acbc0(0x12f)+_0x319dff));throw _0x1644a4;}return await manualBrowserLogin(_0x1198e9,{'key':'','domains':[_0x484e0a],'setupHeaders':_0x33ac8f[_0x3acbc0(0xe7)](Object[_0x3acbc0(0x116)](_0x105e2b)['length'],0x0)?_0x105e2b:undefined}),console[_0x3acbc0(0x125)](_0x3acbc0(0x11f)+_0x319dff+_0x3acbc0(0x128)+('\x20\x20Next:\x20ranger\x20go\x20--profile\x20'+_0x319dff)),await _0x33ac8f[_0x3acbc0(0xd8)](sweepOrphansBestEffort,_0x319dff),_0x4b648c?.[_0x3acbc0(0x135)](_0x33ac8f[_0x3acbc0(0xfc)],{'envKey':null,'profileName':_0x319dff}),!![];}export async function addEnv(_0x2dc009,_0x232327={},_0x28acbb){const _0x2a07ce=_0x270d87,_0x474c68={'iUDUo':function(_0x137a92,_0x3939eb){return _0x137a92+_0x3939eb;},'eJrEA':function(_0x597585,_0x3bea10){return _0x597585+_0x3bea10;},'tltgl':'The\x20--ci\x20flag\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x20session\x20state\x0a','lCEew':_0x2a07ce(0x143),'VHRtm':_0x2a07ce(0xf3),'XAPFm':function(_0x46c684,_0x6b945c){return _0x46c684!==_0x6b945c;},'YEFCC':function(_0x28cef7,_0x57fc49){return _0x28cef7===_0x57fc49;},'thjYT':'--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','ZWZiS':'--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','jWPgY':function(_0x5b4e3f){return _0x5b4e3f();},'PKMcs':function(_0x5e5ffc,_0x4a0c7d){return _0x5e5ffc>_0x4a0c7d;},'HSHNm':function(_0x3c0a92,_0x4bbe38,_0x859fc0){return _0x3c0a92(_0x4bbe38,_0x859fc0);},'FUQAU':function(_0x378ad3,_0x38a2ee,_0x1f9ef3,_0x325741,_0x50c8e4){return _0x378ad3(_0x38a2ee,_0x1f9ef3,_0x325741,_0x50c8e4);},'SSHnl':function(_0x4f930f,_0x5d3e8d){return _0x4f930f instanceof _0x5d3e8d;},'yAbrV':function(_0x3f006c,_0xb9be13){return _0x3f006c(_0xb9be13);},'oGZGT':function(_0x303400,_0x56eb02){return _0x303400(_0x56eb02);},'FaYLF':function(_0x4f78c4,_0x370534){return _0x4f78c4(_0x370534);},'jwKpI':function(_0x403fd9,_0x4af93b){return _0x403fd9(_0x4af93b);},'DTtxH':_0x2a07ce(0x13d),'tmHVK':function(_0x3a204b,_0x1eaffb){return _0x3a204b||_0x1eaffb;},'mDSlV':'http://localhost:3000','yexhR':'list','nGVpB':'What\x20would\x20you\x20like\x20to\x20do?','YXyTg':'Enter\x20a\x20different\x20URL','vZDiY':_0x2a07ce(0x142),'WYuho':function(_0x54fbc9,_0x36bab3){return _0x54fbc9(_0x36bab3);}};_0x232327['ci']&&(console['error'](_0x474c68['iUDUo'](_0x474c68[_0x2a07ce(0xe3)](_0x474c68['tltgl'],_0x474c68['lCEew']),'\x0a')+_0x474c68['VHRtm']+_0x2a07ce(0x129)+'\x0a'+_0x2a07ce(0x14f)+'\x20\x20https://docs.ranger.net/main/concepts/profiles'),process['exit'](0x1));const _0x1768b7={};if(_0x232327['setupHeader'])for(const _0x307ad4 of _0x232327[_0x2a07ce(0x13f)]){const _0x23d2bd=_0x307ad4[_0x2a07ce(0x103)](':');if(_0x23d2bd===-0x1)throw new Error('Invalid\x20--setup-header\x20format:\x20\x22'+_0x307ad4+_0x2a07ce(0xc6));const _0x4fd94b=_0x307ad4[_0x2a07ce(0x130)](0x0,_0x23d2bd)[_0x2a07ce(0xcd)](),_0x1f1102=_0x307ad4['slice'](_0x474c68['eJrEA'](_0x23d2bd,0x1))['trim']();_0x1768b7[_0x4fd94b]=_0x1f1102;}if(_0x474c68[_0x2a07ce(0x12e)](_0x232327['cdpEndpoint'],undefined)&&_0x474c68[_0x2a07ce(0x12d)](_0x232327['cdpEndpoint'][_0x2a07ce(0xcd)](),''))throw new Error(_0x474c68[_0x2a07ce(0x13e)]);if(_0x232327['cdpEndpoint']&&_0x232327[_0x2a07ce(0xc9)])throw new Error(_0x474c68['ZWZiS']);const _0x21c634=Boolean(_0x232327[_0x2a07ce(0x141)]),_0x43af11=_0x474c68[_0x2a07ce(0x10c)](isInteractive);if(!_0x43af11&&!_0x232327['url']&&!_0x21c634&&!_0x232327['skipAuth'])throw new Error(_0x2a07ce(0x10e));if(_0x21c634){const _0x5e9ed9=_0x232327[_0x2a07ce(0x141)];console[_0x2a07ce(0x125)](_0x2a07ce(0x132)),console[_0x2a07ce(0x125)]('\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20'+_0x5e9ed9);const _0x15af74={'cdpEndpoint':_0x5e9ed9,'isElectron':!![]};_0x474c68['PKMcs'](Object[_0x2a07ce(0x116)](_0x1768b7)[_0x2a07ce(0x115)],0x0)&&(_0x15af74[_0x2a07ce(0x140)]=_0x1768b7);await _0x474c68['HSHNm'](createUnconfiguredCloudProfile,_0x2dc009,_0x15af74);try{_0x474c68[_0x2a07ce(0xf7)](setProfileOverride,process[_0x2a07ce(0xdc)](),_0x2dc009,_0x2a07ce(0x141),_0x5e9ed9),setProfileOverride(process['cwd'](),_0x2dc009,_0x2a07ce(0x102),!![]);}catch(_0x203384){console[_0x2a07ce(0x12c)]('\x0a\x20\x20Cloud\x20profile\x20created,\x20but\x20failed\x20to\x20write\x20per-cwd\x20CDP\x20override\x20to\x20projects.json:\x20'+(_0x474c68[_0x2a07ce(0xe5)](_0x203384,Error)?_0x203384['message']:String(_0x203384)));}console[_0x2a07ce(0x125)]('✓\x20Cloud\x20profile\x20\x27'+_0x2dc009+'\x27\x20created\x20(CDP).'),await sweepOrphansBestEffort(_0x2dc009),await _0x474c68[_0x2a07ce(0xea)](markActive,_0x2dc009);return;}if(_0x232327['skipAuth']){const _0x97ec0f={};_0x232327['url']&&(_0x97ec0f['baseUrl']=_0x232327['url']);_0x474c68['PKMcs'](Object['keys'](_0x1768b7)[_0x2a07ce(0x115)],0x0)&&(_0x97ec0f['setupHeaders']=_0x1768b7);await _0x474c68[_0x2a07ce(0x108)](createUnconfiguredCloudProfile,_0x2dc009,_0x97ec0f),console['log'](_0x474c68['iUDUo']('✓\x20Profile\x20\x27'+_0x2dc009+_0x2a07ce(0xf1),'\x20\x20When\x20you\x27re\x20ready\x20to\x20log\x20in,\x20run\x20`ranger\x20profile\x20add\x20'+_0x2dc009+'`\x20again\x20without\x20--skip-auth.')),await _0x474c68[_0x2a07ce(0x10d)](sweepOrphansBestEffort,_0x2dc009),await _0x474c68[_0x2a07ce(0xda)](markActive,_0x2dc009);return;}if(_0x232327[_0x2a07ce(0xc9)]){const _0x39fccc=_0x232327[_0x2a07ce(0xc9)],_0x41f5d7=await _0x474c68['jwKpI'](checkUrlReachability,_0x39fccc);if(!_0x41f5d7['ok']&&!_0x232327[_0x2a07ce(0x136)])throw new Error('Could\x20not\x20reach\x20'+_0x39fccc+':\x20'+_0x41f5d7[_0x2a07ce(0x12c)]+_0x2a07ce(0xff));!_0x41f5d7['ok']&&_0x232327['force']&&console['log']('⚠\x20Could\x20not\x20reach\x20'+_0x39fccc+':\x20'+_0x41f5d7['error']+_0x2a07ce(0x111));}else{console['log'](_0x2a07ce(0x145)),console[_0x2a07ce(0x125)]('\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.'),console[_0x2a07ce(0x125)]('\x20\x20Ranger\x20will\x20use\x20it\x20to\x20look\x20up\x20the\x20right\x20cloud\x20auth\x20env\x20to\x20attach.\x0a');let _0x39bea4='',_0xf21eae=![];while(!![]){const _0x1d0394=await _0x7d494e['prompt']([{'type':'input','name':'baseUrl','message':_0xf21eae?_0x474c68[_0x2a07ce(0x14c)]:_0x2a07ce(0x151),'default':_0x474c68[_0x2a07ce(0x11d)](_0x39bea4,_0x474c68[_0x2a07ce(0xc8)])}]);_0x39bea4=_0x1d0394[_0x2a07ce(0xe4)];const _0x3bcf60=await checkUrlReachability(_0x39bea4);if(_0x3bcf60['ok'])break;const _0x93ed2=/^[a-zA-Z][\w+.-]*:\/\//[_0x2a07ce(0xd4)](_0x39bea4),_0x2ff0fc=_0x3bcf60[_0x2a07ce(0xde)]&&!_0x93ed2,_0x37a4aa=_0x2ff0fc?_0x2a07ce(0x146)+_0x39bea4:null;_0xf21eae=!![],console['log'](_0x2a07ce(0xca)+_0x39bea4+':\x20'+_0x3bcf60['error']);_0x37a4aa&&console['log'](_0x2a07ce(0x10b)+_0x37a4aa+'?');const {action:_0x501d57}=await _0x7d494e['prompt']([{'type':_0x474c68['yexhR'],'name':_0x2a07ce(0xe6),'message':_0x474c68['nGVpB'],'choices':[..._0x37a4aa?[{'name':_0x2a07ce(0xfe)+_0x37a4aa,'value':_0x2a07ce(0xdd)}]:[],{'name':_0x474c68['YXyTg'],'value':'retry'},{'name':'Continue\x20anyway','value':_0x474c68[_0x2a07ce(0x14b)]}]}]);if(_0x474c68[_0x2a07ce(0x12d)](_0x501d57,'use_suggestion')&&_0x37a4aa){_0x39bea4=_0x37a4aa;const _0x4fdc76=await checkUrlReachability(_0x39bea4);if(_0x4fdc76['ok'])break;console[_0x2a07ce(0x125)](_0x2a07ce(0x122)+_0x39bea4+':\x20'+_0x4fdc76[_0x2a07ce(0x12c)]);}else{if(_0x501d57===_0x474c68[_0x2a07ce(0x14b)])break;}}_0x232327={..._0x232327,'url':_0x39bea4};}let _0x34cdcd=![];try{_0x34cdcd=await tryAutoRouteCloudProfile(_0x2dc009,_0x232327['url'],_0x232327,_0x43af11,_0x28acbb);}catch(_0x3e757d){console[_0x2a07ce(0x12c)](_0x2a07ce(0x139)+_0x2dc009+_0x2a07ce(0xef)+(_0x474c68[_0x2a07ce(0xe5)](_0x3e757d,Error)?_0x3e757d[_0x2a07ce(0x137)]:_0x474c68['FaYLF'](String,_0x3e757d))),process[_0x2a07ce(0xf6)](0x1);}!_0x34cdcd&&process['exit'](0x1),await _0x474c68[_0x2a07ce(0x150)](markActive,_0x2dc009);}
@@ -1 +1 @@
1
- (function(_0x2880c5,_0x446c37){var _0x552bf6=_0x4929,_0x5ccabb=_0x2880c5();while(!![]){try{var _0x23d852=parseInt(_0x552bf6(0x1e8))/0x1*(-parseInt(_0x552bf6(0x1ee))/0x2)+parseInt(_0x552bf6(0x1ea))/0x3*(-parseInt(_0x552bf6(0x1e6))/0x4)+parseInt(_0x552bf6(0x1f0))/0x5+parseInt(_0x552bf6(0x1ec))/0x6*(parseInt(_0x552bf6(0x1e5))/0x7)+-parseInt(_0x552bf6(0x1f3))/0x8*(parseInt(_0x552bf6(0x1e7))/0x9)+parseInt(_0x552bf6(0x1e4))/0xa+parseInt(_0x552bf6(0x1ed))/0xb;if(_0x23d852===_0x446c37)break;else _0x5ccabb['push'](_0x5ccabb['shift']());}catch(_0x25da38){_0x5ccabb['push'](_0x5ccabb['shift']());}}}(_0x2fe7,0x62159));function _0x4929(_0x4401bd,_0x1f6a05){_0x4401bd=_0x4401bd-0x1e4;var _0x2fe704=_0x2fe7();var _0x49293e=_0x2fe704[_0x4401bd];return _0x49293e;}export async function authEncrypt(_0x5e10c9){var _0x40522a=_0x4929,_0x4c2964={'MkPBm':function(_0x269ff4,_0xdc675d){return _0x269ff4+_0xdc675d;},'TtNOV':function(_0x52220b,_0x6e2f80){return _0x52220b+_0x6e2f80;},'xnKtO':function(_0x2a85f7,_0x4cb096){return _0x2a85f7+_0x4cb096;},'LwbRy':_0x40522a(0x1ef),'VZqma':'\x20\x20ranger\x20profile\x20add\x20<name>\x0a'};console['error'](_0x4c2964['MkPBm'](_0x4c2964['TtNOV'](_0x4c2964['xnKtO'](_0x40522a(0x1eb)+_0x4c2964[_0x40522a(0x1f2)]+'\x0a'+'To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a',_0x4c2964['VZqma'])+'\x0a',_0x40522a(0x1e9)),'\x20\x20https://docs.ranger.net/main/concepts/profiles')),process[_0x40522a(0x1f1)](0x1);}function _0x2fe7(){var _0x2da679=['3895570fTajmt','exit','LwbRy','1048ERhudO','1492520uOfZKE','35qkPhuL','4sNRCVD','5391KkgkxG','1aAeVBs','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','1440501KMkNxq','ranger\x20profile\x20encrypt-auth\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x0a','337494YpuUyG','4504566RAlmZe','1317456HhVIgs','session\x20state\x20for\x20you,\x20so\x20encrypted\x20on-disk\x20auth\x20is\x20unnecessary.\x0a'];_0x2fe7=function(){return _0x2da679;};return _0x2fe7();}
1
+ (function(_0x48d0ec,_0x38346a){var _0x5b3328=_0x3e65,_0x2b920d=_0x48d0ec();while(!![]){try{var _0x36925c=-parseInt(_0x5b3328(0xd7))/0x1*(parseInt(_0x5b3328(0xdd))/0x2)+parseInt(_0x5b3328(0xde))/0x3+-parseInt(_0x5b3328(0xd4))/0x4*(parseInt(_0x5b3328(0xe4))/0x5)+parseInt(_0x5b3328(0xe0))/0x6+parseInt(_0x5b3328(0xe2))/0x7*(parseInt(_0x5b3328(0xd8))/0x8)+parseInt(_0x5b3328(0xe1))/0x9+parseInt(_0x5b3328(0xd9))/0xa*(parseInt(_0x5b3328(0xdf))/0xb);if(_0x36925c===_0x38346a)break;else _0x2b920d['push'](_0x2b920d['shift']());}catch(_0x5d8261){_0x2b920d['push'](_0x2b920d['shift']());}}}(_0x38f2,0x89830));function _0x38f2(){var _0x33589b=['180GgVdch','1015215AvMkEl','1495747oEDcxQ','437796lqlAfm','7615827MVmSrM','3153178bBAKtV','VbTpp','110945hVElNT','vgsnc','Utenm','196PemYAz','ranger\x20profile\x20encrypt-auth\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x0a','MUfon','7155GesKIr','16SHnWIe','10mFVlRN','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','\x20\x20https://docs.ranger.net/main/concepts/profiles','rncYd'];_0x38f2=function(){return _0x33589b;};return _0x38f2();}function _0x3e65(_0x3127b3,_0x445c72){_0x3127b3=_0x3127b3-0xd2;var _0x38f272=_0x38f2();var _0x3e6504=_0x38f272[_0x3127b3];return _0x3e6504;}export async function authEncrypt(_0x204183){var _0xfcf413=_0x3e65,_0x518820={'vgsnc':function(_0x14f72e,_0x36d4b6){return _0x14f72e+_0x36d4b6;},'MUfon':function(_0x3c4f00,_0x209072){return _0x3c4f00+_0x209072;},'VbTpp':function(_0x305a49,_0xe40d04){return _0x305a49+_0xe40d04;},'Utenm':'session\x20state\x20for\x20you,\x20so\x20encrypted\x20on-disk\x20auth\x20is\x20unnecessary.\x0a','yAmIA':'To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','rncYd':_0xfcf413(0xdb)};console['error'](_0x518820[_0xfcf413(0xd2)](_0x518820[_0xfcf413(0xd6)](_0x518820[_0xfcf413(0xd6)](_0x518820[_0xfcf413(0xe3)](_0x518820[_0xfcf413(0xd2)](_0xfcf413(0xd5)+_0x518820[_0xfcf413(0xd3)],'\x0a'),_0x518820['yAmIA'])+'\x20\x20ranger\x20profile\x20add\x20<name>\x0a','\x0a'),_0xfcf413(0xda)),_0x518820[_0xfcf413(0xdc)])),process['exit'](0x1);}
@@ -1 +1 @@
1
- const _0x3a0954=_0x2438;(function(_0x4212a8,_0x1cda0f){const _0x262667=_0x2438,_0x3bc36e=_0x4212a8();while(!![]){try{const _0x484dee=-parseInt(_0x262667(0x13f))/0x1*(-parseInt(_0x262667(0x13a))/0x2)+parseInt(_0x262667(0x125))/0x3*(-parseInt(_0x262667(0x130))/0x4)+-parseInt(_0x262667(0x12c))/0x5+-parseInt(_0x262667(0x138))/0x6+parseInt(_0x262667(0x120))/0x7+-parseInt(_0x262667(0x11e))/0x8*(-parseInt(_0x262667(0x12b))/0x9)+parseInt(_0x262667(0x139))/0xa;if(_0x484dee===_0x1cda0f)break;else _0x3bc36e['push'](_0x3bc36e['shift']());}catch(_0x2e49d4){_0x3bc36e['push'](_0x3bc36e['shift']());}}}(_0x146a,0x4dda7));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';function _0x2438(_0x579244,_0x956c2d){_0x579244=_0x579244-0x118;const _0x146af8=_0x146a();let _0x24388f=_0x146af8[_0x579244];return _0x24388f;}import{spawn}from'child_process';import{deleteAllCredentials}from'./utils/keychain.js';function _0x146a(){const _0x13daea=['e2e-test-recommender','gYfPW','uninstall','✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','219320LtddIe','zDWID','ignore','stcgg','utf-8','plugin','✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','platform','uAMQF','oLwxx','bug-bash','hjLUR','8KyJxGM','error','2618763JCEyKw','dtTyS','length','isArray','@ranger-testing/opencode-plugin','12NlqiFK','close','ranger@trailhead','replace','cSdcV','sIMqb','3175173LjvRmt','2645475jgnJoZ','ihpVP','aFZSc','bjsfy','536348yWcZQo','filter','aKNQy','eOjaU','ZkYMc','✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','log','user','2149932hdpcvi','5771060TAAjdu','4bqxYis'];_0x146a=function(){return _0x13daea;};return _0x146a();}import{getProjectRoot,getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=['ranger','feature-tracker',_0x3a0954(0x11c),_0x3a0954(0x13b)],opencodePluginName=_0x3a0954(0x124);function parseJsonc(_0x235821){const _0x9c9f3d=_0x3a0954,_0x429e33=_0x235821[_0x9c9f3d(0x128)](/\/\*[\s\S]*?\*\//g,''),_0x47a9c5=_0x429e33[_0x9c9f3d(0x128)](/^\s*\/\/.*$/gm,''),_0x2c2230=_0x47a9c5['replace'](/,\s*([}\]])/g,'$1');return JSON['parse'](_0x2c2230);}async function removeOpencodePluginConfig(_0x93ce21){const _0x2f748e=_0x3a0954,_0x4ccaff={'oLwxx':'string','zDWID':_0x2f748e(0x143),'hCJKQ':function(_0x3a7636,_0x4118c8){return _0x3a7636(_0x4118c8);},'dtTyS':function(_0xed9555,_0x5ddafd){return _0xed9555===_0x5ddafd;},'aKNQy':function(_0x1817e8,_0x5620b6,_0x8062e0){return _0x1817e8(_0x5620b6,_0x8062e0);},'ZOkGz':function(_0x1bf73d,_0x50caab){return _0x1bf73d+_0x50caab;}};if(!existsSync(_0x93ce21))return![];let _0x2c50a4;try{const _0xc945b1=await readFile(_0x93ce21,_0x4ccaff[_0x2f748e(0x140)]);_0x2c50a4=_0x4ccaff['hCJKQ'](parseJsonc,_0xc945b1);}catch{return![];}const _0x5338dc=Array[_0x2f748e(0x123)](_0x2c50a4[_0x2f748e(0x144)])?_0x2c50a4['plugin']:[];if(_0x4ccaff[_0x2f748e(0x121)](_0x5338dc[_0x2f748e(0x122)],0x0))return![];const _0x149986=_0x5338dc[_0x2f748e(0x131)](_0x42b690=>{const _0x377a58=_0x2f748e;if(typeof _0x42b690!==_0x4ccaff[_0x377a58(0x11b)])return!![];return _0x42b690!==opencodePluginName;});if(_0x149986[_0x2f748e(0x122)]===_0x5338dc[_0x2f748e(0x122)])return![];return _0x149986[_0x2f748e(0x122)]===0x0?delete _0x2c50a4[_0x2f748e(0x144)]:_0x2c50a4[_0x2f748e(0x144)]=_0x149986,await _0x4ccaff[_0x2f748e(0x132)](writeFile,_0x93ce21,_0x4ccaff['ZOkGz'](JSON['stringify'](_0x2c50a4,null,0x2),'\x0a')),!![];}async function uninstallClaudePlugin(_0x8b8fa1){const _0x8a323d=_0x3a0954,_0x1df004={'cSdcV':'plugin','uAMQF':_0x8a323d(0x127),'gYfPW':function(_0x10e603,_0x2f76dc,_0x50a7bf,_0x295f0b){return _0x10e603(_0x2f76dc,_0x50a7bf,_0x295f0b);},'BbHPV':'claude','bHtyf':function(_0x197994){return _0x197994();},'sIMqb':function(_0x58b820,_0x1f303b){return _0x58b820===_0x1f303b;},'PrOGd':'win32','oTOdq':_0x8a323d(0x126),'WJccF':_0x8a323d(0x11f)};return new Promise(_0x425502=>{const _0x439d8a=_0x8a323d,_0x3c9f5b=[_0x1df004[_0x439d8a(0x129)],_0x439d8a(0x13d),_0x1df004[_0x439d8a(0x11a)]];_0x8b8fa1&&_0x3c9f5b['push']('--scope',_0x8b8fa1);const _0x16f0d6=_0x1df004[_0x439d8a(0x13c)](spawn,_0x1df004['BbHPV'],_0x3c9f5b,{'stdio':['ignore','ignore','ignore'],'cwd':_0x8b8fa1?_0x1df004['bHtyf'](getProjectRoot):undefined,'shell':_0x1df004[_0x439d8a(0x12a)](process[_0x439d8a(0x119)],_0x1df004['PrOGd'])});_0x16f0d6['on'](_0x1df004['oTOdq'],_0x492637=>{_0x425502(_0x492637===0x0);}),_0x16f0d6['on'](_0x1df004['WJccF'],()=>{_0x425502(![]);});});}async function removeMarketplace(){const _0x2cb8d6=_0x3a0954,_0x59e2ce={'XDjXU':function(_0x174894,_0x8fc3df){return _0x174894===_0x8fc3df;},'GzMDS':'claude','eOjaU':_0x2cb8d6(0x144),'OGuDo':'win32','ZGOpD':_0x2cb8d6(0x126),'tdxgE':_0x2cb8d6(0x11f)};return new Promise(_0x3949a6=>{const _0x5317dd=_0x2cb8d6,_0x1a3819={'hjLUR':function(_0x5d1bcd,_0x168d25){return _0x59e2ce['XDjXU'](_0x5d1bcd,_0x168d25);}},_0x19594a=spawn(_0x59e2ce['GzMDS'],[_0x59e2ce[_0x5317dd(0x133)],'marketplace','remove','trailhead'],{'stdio':['ignore',_0x5317dd(0x141),_0x5317dd(0x141)],'shell':process['platform']===_0x59e2ce['OGuDo']});_0x19594a['on'](_0x59e2ce['ZGOpD'],_0x1efc23=>{const _0x1f1281=_0x5317dd;_0x3949a6(_0x1a3819[_0x1f1281(0x11d)](_0x1efc23,0x0));}),_0x19594a['on'](_0x59e2ce['tdxgE'],()=>{_0x3949a6(![]);});});}export async function clean(){const _0x41684f=_0x3a0954,_0x425be={'aFZSc':function(_0x26f8e8){return _0x26f8e8();},'tyLSp':'✓\x20Removed\x20stored\x20credentials','bjsfy':function(_0x4afef0,_0x475570){return _0x4afef0(_0x475570);},'XGtTc':function(_0x27bb8c,_0x31592c,_0x7f8a14){return _0x27bb8c(_0x31592c,_0x7f8a14);},'IeijF':function(_0x5764ea,_0xe795ae,_0xf5373c){return _0x5764ea(_0xe795ae,_0xf5373c);},'eREfO':function(_0xc583ae,_0x1bfb4a){return _0xc583ae(_0x1bfb4a);},'KXaqD':function(_0x56f124,_0x116552,_0x35fce6){return _0x56f124(_0x116552,_0x35fce6);},'ihpVP':_0x41684f(0x137),'HfSXy':function(_0x2f4ed8,_0x2eb4df,_0x26040e){return _0x2f4ed8(_0x2eb4df,_0x26040e);},'qFhOK':'project','ZkYMc':'opencode.json','stcgg':_0x41684f(0x135),'rRVpj':'✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','GdjfL':'✓\x20Removed\x20trailhead\x20marketplace','tvrtq':'Nothing\x20to\x20clean\x20up.\x0a'};console[_0x41684f(0x136)]('\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a');let _0x2d318b=![];try{await _0x425be[_0x41684f(0x12e)](deleteAllCredentials),console[_0x41684f(0x136)](_0x425be['tyLSp']),_0x2d318b=!![];}catch{}const _0x11a609=getCacheFile();existsSync(_0x11a609)&&(await _0x425be[_0x41684f(0x12f)](rm,_0x11a609),_0x2d318b=!![]);const _0x227a1c=_0x425be[_0x41684f(0x12e)](getRangerDir);existsSync(_0x227a1c)&&(await rm(_0x227a1c,{'recursive':!![]}),console[_0x41684f(0x136)]('✓\x20Removed\x20.ranger/\x20directory'),_0x2d318b=!![]);const _0x252ac4=getProjectSkillsDir();for(const _0x54844f of skillsToRemove){const _0x13c145=_0x425be['XGtTc'](join,_0x252ac4,_0x54844f);_0x425be['bjsfy'](existsSync,_0x13c145)&&(await _0x425be['IeijF'](rm,_0x13c145,{'recursive':!![]}),console[_0x41684f(0x136)]('✓\x20Removed\x20project\x20skill:\x20'+_0x54844f),_0x2d318b=!![]);}const _0x3f047b=getUserSkillsDir();for(const _0x4d0178 of skillsToRemove){const _0x2969ed=join(_0x3f047b,_0x4d0178);_0x425be['eREfO'](existsSync,_0x2969ed)&&(await _0x425be['KXaqD'](rm,_0x2969ed,{'recursive':!![]}),console['log']('✓\x20Removed\x20user\x20skill:\x20'+_0x4d0178),_0x2d318b=!![]);}const _0x5be7db=_0x425be[_0x41684f(0x12f)](getOpencodeSkillsDir,'project');for(const _0x54b21f of skillsToRemove){const _0x4986d1=join(_0x5be7db,_0x54b21f);existsSync(_0x4986d1)&&(await rm(_0x4986d1,{'recursive':!![]}),console[_0x41684f(0x136)]('✓\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x54b21f),_0x2d318b=!![]);}const _0xc9c041=_0x425be['eREfO'](getOpencodeSkillsDir,_0x425be[_0x41684f(0x12d)]);for(const _0x44b40f of skillsToRemove){const _0x4a2098=join(_0xc9c041,_0x44b40f);existsSync(_0x4a2098)&&(await _0x425be['HfSXy'](rm,_0x4a2098,{'recursive':!![]}),console[_0x41684f(0x136)]('✓\x20Removed\x20OpenCode\x20user\x20skill:\x20'+_0x44b40f),_0x2d318b=!![]);}const _0x549438=join(_0x425be['eREfO'](getOpencodeConfigDir,_0x425be['qFhOK']),_0x425be[_0x41684f(0x134)]);await removeOpencodePluginConfig(_0x549438)&&(console[_0x41684f(0x136)](_0x41684f(0x118)),_0x2d318b=!![]);const _0x187e04=join(getOpencodeConfigDir('user'),_0x425be[_0x41684f(0x134)]);await _0x425be['bjsfy'](removeOpencodePluginConfig,_0x187e04)&&(console[_0x41684f(0x136)](_0x425be[_0x41684f(0x142)]),_0x2d318b=!![]);const _0x461ddd=await uninstallClaudePlugin();_0x461ddd&&(console['log'](_0x41684f(0x13e)),_0x2d318b=!![]);const _0x5f4e75=await uninstallClaudePlugin('project');_0x5f4e75&&(console['log'](_0x425be['rRVpj']),_0x2d318b=!![]);const _0x2307ec=await _0x425be[_0x41684f(0x12e)](removeMarketplace);_0x2307ec&&(console[_0x41684f(0x136)](_0x425be['GdjfL']),_0x2d318b=!![]),_0x2d318b?console[_0x41684f(0x136)]('\x0a✅\x20Cleanup\x20complete!\x0a'):console[_0x41684f(0x136)](_0x425be['tvrtq']);}
1
+ const _0x37627c=_0xdc08;(function(_0x1b0a06,_0x1c4881){const _0x493a3b=_0xdc08,_0x2c0167=_0x1b0a06();while(!![]){try{const _0x5734aa=parseInt(_0x493a3b(0x156))/0x1*(-parseInt(_0x493a3b(0x145))/0x2)+-parseInt(_0x493a3b(0x150))/0x3*(parseInt(_0x493a3b(0x160))/0x4)+-parseInt(_0x493a3b(0x142))/0x5+-parseInt(_0x493a3b(0x162))/0x6*(-parseInt(_0x493a3b(0x161))/0x7)+parseInt(_0x493a3b(0x13d))/0x8*(parseInt(_0x493a3b(0x15b))/0x9)+parseInt(_0x493a3b(0x165))/0xa+parseInt(_0x493a3b(0x134))/0xb*(parseInt(_0x493a3b(0x166))/0xc);if(_0x5734aa===_0x1c4881)break;else _0x2c0167['push'](_0x2c0167['shift']());}catch(_0x56e57f){_0x2c0167['push'](_0x2c0167['shift']());}}}(_0x3028,0x56df4));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';function _0x3028(){const _0x2c0e9c=['RNRwD','NhzUa','2908955GrvRjj','✓\x20Removed\x20user\x20skill:\x20','ranger','2UXrPla','log','--scope','stringify','\x0a✅\x20Cleanup\x20complete!\x0a','KGpFb','gVsua','win32','\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','zebIh','YhvXq','486306asGnpG','push','IGiZE','dONzs','JzyxK','mawOk','624922ArDHdD','✓\x20Removed\x20stored\x20credentials','@ranger-testing/opencode-plugin','project','✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','18KMygYW','eycgc','✓\x20Removed\x20.ranger/\x20directory','parse','loeHL','4ueZatN','574VymDPa','47238zrzpgN','plugin','opencode.json','661950InxWWB','106248dyVwLR','ZYwHy','✓\x20Removed\x20OpenCode\x20user\x20skill:\x20','aJEQh','remove','YPHYi','ignore','user','length','platform','VYqGN','claude','filter','473wVnsRE','SfmOC','replace','ZPYsL','close','utf-8','YeGjR','WRyVY','string','2528560nCyVox','tMaNB','UZuTF'];_0x3028=function(){return _0x2c0e9c;};return _0x3028();}import{getProjectRoot,getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';function _0xdc08(_0x219164,_0x4d60da){_0x219164=_0x219164-0x128;const _0x3028ee=_0x3028();let _0xdc088a=_0x3028ee[_0x219164];return _0xdc088a;}const skillsToRemove=[_0x37627c(0x144),'feature-tracker','bug-bash','e2e-test-recommender'],opencodePluginName=_0x37627c(0x158);function parseJsonc(_0x32b035){const _0x5e280f=_0x37627c,_0x58621f=_0x32b035['replace'](/\/\*[\s\S]*?\*\//g,''),_0x40fcc5=_0x58621f[_0x5e280f(0x136)](/^\s*\/\/.*$/gm,''),_0x579f76=_0x40fcc5[_0x5e280f(0x136)](/,\s*([}\]])/g,'$1');return JSON[_0x5e280f(0x15e)](_0x579f76);}async function removeOpencodePluginConfig(_0x245b8c){const _0x43d5fc=_0x37627c,_0x2d73e7={'mawOk':function(_0x2b01ec,_0x583346){return _0x2b01ec(_0x583346);},'WRyVY':function(_0x4d0fd8,_0x29b8b5,_0x574fd6){return _0x4d0fd8(_0x29b8b5,_0x574fd6);},'bwApV':_0x43d5fc(0x139),'hkKzS':function(_0x1f859e,_0x32014a){return _0x1f859e(_0x32014a);},'YVBeP':function(_0x41d6be,_0x40e083){return _0x41d6be===_0x40e083;},'fuCQy':function(_0x1276a6,_0x10d396){return _0x1276a6===_0x10d396;},'eycgc':function(_0x4e9d3,_0xb0250b){return _0x4e9d3+_0xb0250b;}};if(!_0x2d73e7[_0x43d5fc(0x155)](existsSync,_0x245b8c))return![];let _0x50d888;try{const _0x18c6ee=await _0x2d73e7[_0x43d5fc(0x13b)](readFile,_0x245b8c,_0x2d73e7['bwApV']);_0x50d888=_0x2d73e7['hkKzS'](parseJsonc,_0x18c6ee);}catch{return![];}const _0x17c737=Array['isArray'](_0x50d888[_0x43d5fc(0x163)])?_0x50d888['plugin']:[];if(_0x17c737[_0x43d5fc(0x12f)]===0x0)return![];const _0x461b02=_0x17c737[_0x43d5fc(0x133)](_0x2f1892=>{const _0x1da6f4=_0x43d5fc;if(typeof _0x2f1892!==_0x1da6f4(0x13c))return!![];return _0x2f1892!==opencodePluginName;});if(_0x2d73e7['YVBeP'](_0x461b02[_0x43d5fc(0x12f)],_0x17c737['length']))return![];return _0x2d73e7['fuCQy'](_0x461b02['length'],0x0)?delete _0x50d888['plugin']:_0x50d888[_0x43d5fc(0x163)]=_0x461b02,await writeFile(_0x245b8c,_0x2d73e7[_0x43d5fc(0x15c)](JSON[_0x43d5fc(0x148)](_0x50d888,null,0x2),'\x0a')),!![];}async function uninstallClaudePlugin(_0x2970c8){const _0x22aa00=_0x37627c,_0x4b5fbe={'icXPi':function(_0x18b52d,_0x5d8354){return _0x18b52d(_0x5d8354);},'eAnGA':_0x22aa00(0x163),'MJhLO':'uninstall','ZYwHy':'ranger@trailhead','kDvxr':_0x22aa00(0x147),'AGfoZ':_0x22aa00(0x132),'PWcxY':_0x22aa00(0x12d),'VYqGN':_0x22aa00(0x14c),'KGpFb':'close'};return new Promise(_0x5940b5=>{const _0x588e32=_0x22aa00,_0x21d02d=[_0x4b5fbe['eAnGA'],_0x4b5fbe['MJhLO'],_0x4b5fbe[_0x588e32(0x128)]];_0x2970c8&&_0x21d02d[_0x588e32(0x151)](_0x4b5fbe['kDvxr'],_0x2970c8);const _0x575280=spawn(_0x4b5fbe['AGfoZ'],_0x21d02d,{'stdio':[_0x4b5fbe['PWcxY'],'ignore',_0x588e32(0x12d)],'cwd':_0x2970c8?getProjectRoot():undefined,'shell':process[_0x588e32(0x130)]===_0x4b5fbe[_0x588e32(0x131)]});_0x575280['on'](_0x4b5fbe[_0x588e32(0x14a)],_0x19beb2=>{_0x5940b5(_0x19beb2===0x0);}),_0x575280['on']('error',()=>{_0x4b5fbe['icXPi'](_0x5940b5,![]);});});}async function removeMarketplace(){const _0x5ab1df=_0x37627c,_0x330a2f={'aJEQh':function(_0x31863f,_0x418bdf,_0x39ed6,_0x2eb621){return _0x31863f(_0x418bdf,_0x39ed6,_0x2eb621);},'gogmI':'claude','JzyxK':'marketplace','gVsua':'trailhead','loeHL':_0x5ab1df(0x12d),'YhvXq':function(_0x1f9f31,_0x2428a9){return _0x1f9f31===_0x2428a9;},'SfmOC':'win32','nXFbq':_0x5ab1df(0x138)};return new Promise(_0x242dae=>{const _0x1c601d=_0x5ab1df,_0x46194b=_0x330a2f[_0x1c601d(0x12a)](spawn,_0x330a2f['gogmI'],['plugin',_0x330a2f[_0x1c601d(0x154)],_0x1c601d(0x12b),_0x330a2f[_0x1c601d(0x14b)]],{'stdio':['ignore',_0x1c601d(0x12d),_0x330a2f[_0x1c601d(0x15f)]],'shell':_0x330a2f[_0x1c601d(0x14f)](process['platform'],_0x330a2f[_0x1c601d(0x135)])});_0x46194b['on'](_0x330a2f['nXFbq'],_0x508bf6=>{_0x242dae(_0x508bf6===0x0);}),_0x46194b['on']('error',()=>{_0x242dae(![]);});});}export async function clean(){const _0x11b256=_0x37627c,_0x4d56fe={'mpBjB':_0x11b256(0x14d),'YPHYi':_0x11b256(0x157),'ZPYsL':function(_0x21ff02,_0x2ab95b){return _0x21ff02(_0x2ab95b);},'nnqUY':function(_0x38aa3c,_0x2ebbff){return _0x38aa3c(_0x2ebbff);},'tMaNB':function(_0x504354,_0x5ed23a,_0xaff74f){return _0x504354(_0x5ed23a,_0xaff74f);},'YeGjR':function(_0x17367d){return _0x17367d();},'dONzs':_0x11b256(0x159),'CIveT':function(_0x562f86,_0x3298ac,_0x157f27){return _0x562f86(_0x3298ac,_0x157f27);},'RNRwD':_0x11b256(0x12e),'HLXvD':function(_0xc19aae,_0x24718a){return _0xc19aae(_0x24718a);},'UZuTF':function(_0x3f7edb,_0x23b490,_0x38470c){return _0x3f7edb(_0x23b490,_0x38470c);},'IGiZE':'opencode.json','zebIh':'✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','BoTys':function(_0x1e711f,_0x40fea9){return _0x1e711f(_0x40fea9);},'NhzUa':'✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','NJBFT':_0x11b256(0x15a)};console['log'](_0x4d56fe['mpBjB']);let _0x578380=![];try{await deleteAllCredentials(),console[_0x11b256(0x146)](_0x4d56fe[_0x11b256(0x12c)]),_0x578380=!![];}catch{}const _0x3af761=getCacheFile();_0x4d56fe[_0x11b256(0x137)](existsSync,_0x3af761)&&(await rm(_0x3af761),_0x578380=!![]);const _0x4f613b=getRangerDir();_0x4d56fe['nnqUY'](existsSync,_0x4f613b)&&(await _0x4d56fe['tMaNB'](rm,_0x4f613b,{'recursive':!![]}),console['log'](_0x11b256(0x15d)),_0x578380=!![]);const _0x584c2e=getProjectSkillsDir();for(const _0x27eecf of skillsToRemove){const _0xdbc506=join(_0x584c2e,_0x27eecf);_0x4d56fe['ZPYsL'](existsSync,_0xdbc506)&&(await _0x4d56fe[_0x11b256(0x13e)](rm,_0xdbc506,{'recursive':!![]}),console['log']('✓\x20Removed\x20project\x20skill:\x20'+_0x27eecf),_0x578380=!![]);}const _0x4ad2c2=_0x4d56fe[_0x11b256(0x13a)](getUserSkillsDir);for(const _0xb8f5ce of skillsToRemove){const _0x421406=join(_0x4ad2c2,_0xb8f5ce);_0x4d56fe['ZPYsL'](existsSync,_0x421406)&&(await rm(_0x421406,{'recursive':!![]}),console['log'](_0x11b256(0x143)+_0xb8f5ce),_0x578380=!![]);}const _0x1aed23=_0x4d56fe['ZPYsL'](getOpencodeSkillsDir,_0x4d56fe[_0x11b256(0x153)]);for(const _0x1fddd2 of skillsToRemove){const _0x13161c=_0x4d56fe['CIveT'](join,_0x1aed23,_0x1fddd2);_0x4d56fe['nnqUY'](existsSync,_0x13161c)&&(await _0x4d56fe[_0x11b256(0x13e)](rm,_0x13161c,{'recursive':!![]}),console[_0x11b256(0x146)]('✓\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x1fddd2),_0x578380=!![]);}const _0x38824d=getOpencodeSkillsDir(_0x4d56fe[_0x11b256(0x140)]);for(const _0x513e9e of skillsToRemove){const _0x52c28b=join(_0x38824d,_0x513e9e);_0x4d56fe['HLXvD'](existsSync,_0x52c28b)&&(await rm(_0x52c28b,{'recursive':!![]}),console['log'](_0x11b256(0x129)+_0x513e9e),_0x578380=!![]);}const _0x3f33b0=_0x4d56fe[_0x11b256(0x13f)](join,getOpencodeConfigDir(_0x11b256(0x159)),_0x4d56fe[_0x11b256(0x152)]);await _0x4d56fe[_0x11b256(0x137)](removeOpencodePluginConfig,_0x3f33b0)&&(console['log'](_0x4d56fe[_0x11b256(0x14e)]),_0x578380=!![]);const _0x2977d7=join(_0x4d56fe['BoTys'](getOpencodeConfigDir,_0x4d56fe[_0x11b256(0x140)]),_0x11b256(0x164));await removeOpencodePluginConfig(_0x2977d7)&&(console[_0x11b256(0x146)]('✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)'),_0x578380=!![]);const _0x21c59e=await _0x4d56fe[_0x11b256(0x13a)](uninstallClaudePlugin);_0x21c59e&&(console[_0x11b256(0x146)](_0x4d56fe[_0x11b256(0x141)]),_0x578380=!![]);const _0x5977b4=await _0x4d56fe['nnqUY'](uninstallClaudePlugin,_0x11b256(0x159));_0x5977b4&&(console['log'](_0x4d56fe['NJBFT']),_0x578380=!![]);const _0x1f7d32=await removeMarketplace();_0x1f7d32&&(console['log']('✓\x20Removed\x20trailhead\x20marketplace'),_0x578380=!![]),_0x578380?console['log'](_0x11b256(0x149)):console[_0x11b256(0x146)]('Nothing\x20to\x20clean\x20up.\x0a');}
@@ -1 +1 @@
1
- const _0x4a948e=_0x38d0;(function(_0x3fdfa3,_0x48f419){const _0x539992=_0x38d0,_0x5cef93=_0x3fdfa3();while(!![]){try{const _0x1223d1=parseInt(_0x539992(0xad))/0x1*(-parseInt(_0x539992(0xb3))/0x2)+parseInt(_0x539992(0xb7))/0x3+-parseInt(_0x539992(0xb6))/0x4*(-parseInt(_0x539992(0xb1))/0x5)+parseInt(_0x539992(0xa3))/0x6*(-parseInt(_0x539992(0xce))/0x7)+-parseInt(_0x539992(0xb5))/0x8+parseInt(_0x539992(0xc6))/0x9+-parseInt(_0x539992(0xcd))/0xa*(-parseInt(_0x539992(0xcf))/0xb);if(_0x1223d1===_0x48f419)break;else _0x5cef93['push'](_0x5cef93['shift']());}catch(_0x4411b7){_0x5cef93['push'](_0x5cef93['shift']());}}}(_0xc77a,0x4554d));import{existsSync}from'fs';import{loadSettings,getNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';import{fetchCloudProfile}from'./utils/cloudProfile.js';import{mergeCloudProfileSettings,readProfileOverrides,resetProfileOverrides,setProfileOverride,unsetProfileOverride}from'./utils/projectsConfig.js';function _0xc77a(){const _0x2657d9=['Removed\x20','kind','FTHgx','\x20for\x20\x22','settings','\x20=\x20','Evzmj','startsWith','WHlws','279704TDfIPy','zBXAh','No\x20configuration\x20set\x20for\x20\x22','length','73210cpjWEH','KXLTo','2BZIPGs','iIJJf','2716600LFxsyE','60lXKjWX','330750MgxWXv','parse','alsoExistsElsewhere','Key\x20\x22','log',':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22','OhaIh','allowInsecureLocalhost','(not\x20set)','cloud','\x22\x20not\x20found','trim','forceLogin','mTHSu','object','2750958Obteby','Set\x20','EIdbe','test','null','\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20','snAFp','90DyRMbM','7woMiNy','520113dqeWmV','Invalid\x20value\x20for\x20','tptxa','\x20<key>\x22\x20to\x20remove\x20individual\x20values.','stringify','OGplr','946974WCblmk'];_0xc77a=function(){return _0x2657d9;};return _0xc77a();}const BOOLEAN_KEYS=['headless',_0x4a948e(0xbe),_0x4a948e(0xc3)];function parseLocalValue(_0x172676,_0x3275c0){const _0x4f4212=_0x4a948e,_0x8c228c={'tptxa':'true'};if(BOOLEAN_KEYS['includes'](_0x172676)){if(_0x3275c0===_0x8c228c[_0x4f4212(0xd1)])return!![];if(_0x3275c0==='false')return![];throw new Error(_0x4f4212(0xd0)+_0x172676+_0x4f4212(0xbc));}return _0x3275c0;}function _0x38d0(_0x3c7b88,_0x38e120){_0x3c7b88=_0x3c7b88-0xa0;const _0xc77a36=_0xc77a();let _0x38d05f=_0xc77a36[_0x3c7b88];return _0x38d05f;}function parseOverrideValue(_0x3c0604){const _0x3eb3e9=_0x4a948e,_0x3da50f={'sFQqF':function(_0x3fc16b,_0x10e3eb){return _0x3fc16b===_0x10e3eb;},'IioNB':'true','STGZY':'false','EGvnk':function(_0x4f0851,_0x2b9cb9){return _0x4f0851===_0x2b9cb9;},'Evzmj':_0x3eb3e9(0xca),'jgRQR':function(_0x33e4a6,_0x2e343e){return _0x33e4a6(_0x2e343e);}};if(_0x3da50f['sFQqF'](_0x3c0604,_0x3da50f['IioNB']))return!![];if(_0x3c0604===_0x3da50f['STGZY'])return![];if(_0x3da50f['EGvnk'](_0x3c0604,_0x3da50f[_0x3eb3e9(0xaa)]))return null;if(_0x3c0604==='undefined')return undefined;if(/^-?\d+$/['test'](_0x3c0604)){const _0x3e8bf4=_0x3da50f['jgRQR'](Number,_0x3c0604);if(Number['isSafeInteger'](_0x3e8bf4))return _0x3e8bf4;}if(/^-?\d+\.\d+$/[_0x3eb3e9(0xc9)](_0x3c0604)){const _0x4def64=Number(_0x3c0604);if(!Number['isNaN'](_0x4def64))return _0x4def64;}const _0x5ae854=_0x3c0604[_0x3eb3e9(0xc2)]();if(_0x5ae854[_0x3eb3e9(0xab)]('{')&&_0x5ae854['endsWith']('}')||_0x5ae854['startsWith']('[')&&_0x5ae854['endsWith'](']'))try{return JSON[_0x3eb3e9(0xb8)](_0x5ae854);}catch{}return _0x3c0604;}async function resolveProfileTarget(_0x3fd410){const _0x4bcb24=_0x4a948e,_0x50bc8c={'OhaIh':function(_0x2d7977,_0x58fead){return _0x2d7977(_0x58fead);},'VDIgw':'cloud','mTHSu':'local'},_0xf0df9f=existsSync(getEnvDir(_0x3fd410));let _0x1d37f5=![];try{const _0x51f9b8=await _0x50bc8c[_0x4bcb24(0xbd)](fetchCloudProfile,_0x3fd410);_0x1d37f5=_0x50bc8c[_0x4bcb24(0xbd)](Boolean,_0x51f9b8);}catch{}if(_0x1d37f5)return{'kind':_0x50bc8c['VDIgw'],'alsoExistsElsewhere':_0xf0df9f};if(_0xf0df9f)return{'kind':_0x50bc8c[_0x4bcb24(0xc4)],'alsoExistsElsewhere':![]};throw new Error('Profile\x20\x22'+_0x3fd410+_0x4bcb24(0xcb)+_0x3fd410);}function printDualExistsHint(_0x45942e){console['log']('\x20\x20Note:\x20\x22'+_0x45942e+'\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.');}function getProjectPath(){return process['cwd']();}async function loadEffectiveCloudSettings(_0x2a4177){const _0x2e0be4=_0x4a948e,_0x5e7ebf={'iIJJf':function(_0x410998,_0x493970){return _0x410998(_0x493970);},'wqnHN':function(_0x3fc5af,_0x552d71,_0x1e4f0b){return _0x3fc5af(_0x552d71,_0x1e4f0b);},'BYJUZ':function(_0x1b4841){return _0x1b4841();},'lUmYA':function(_0x1d14b0,_0x35d4ea,_0x2f4dee){return _0x1d14b0(_0x35d4ea,_0x2f4dee);},'ezOMc':function(_0x37de0f,_0x57b44a){return _0x37de0f??_0x57b44a;}},_0x32ad59=await _0x5e7ebf[_0x2e0be4(0xb4)](fetchCloudProfile,_0x2a4177),_0x402782=_0x5e7ebf['wqnHN'](readProfileOverrides,_0x5e7ebf['BYJUZ'](getProjectPath),_0x2a4177);return _0x5e7ebf['lUmYA'](mergeCloudProfileSettings,_0x32ad59?.[_0x2e0be4(0xa8)]??{},_0x5e7ebf['ezOMc'](_0x402782,undefined));}export async function configSet(_0xa1c221,_0x3a10a0,_0x1f442e){const _0x147f39=_0x4a948e,_0x569a56={'zBXAh':'cloud','PInmg':function(_0xac3f16,_0x1318f1){return _0xac3f16(_0x1318f1);},'oeaBZ':function(_0x40cdf0,_0x1515ab){return _0x40cdf0(_0x1515ab);},'hSRgi':function(_0x5e32a0,_0x1379ec,_0x3b7bee,_0xf5a007,_0x28e2bc){return _0x5e32a0(_0x1379ec,_0x3b7bee,_0xf5a007,_0x28e2bc);},'hrWoC':function(_0x5bdb4e){return _0x5bdb4e();}},_0x43648a=await resolveProfileTarget(_0xa1c221);if(_0x43648a[_0x147f39(0xa5)]===_0x569a56[_0x147f39(0xae)]){if(_0x43648a[_0x147f39(0xb9)])_0x569a56['PInmg'](printDualExistsHint,_0xa1c221);const _0x1fbeb6=_0x569a56['oeaBZ'](parseOverrideValue,_0x1f442e);_0x569a56['hSRgi'](setProfileOverride,getProjectPath(),_0xa1c221,_0x3a10a0,_0x1fbeb6),console['log'](_0x147f39(0xc7)+_0x3a10a0+'\x20=\x20'+JSON['stringify'](_0x1fbeb6)+'\x20for\x20\x22'+_0xa1c221+'\x22');return;}const _0x4162fc=parseLocalValue(_0x3a10a0,_0x1f442e);setProfileOverride(_0x569a56['hrWoC'](getProjectPath),_0xa1c221,_0x3a10a0,_0x4162fc),console['log']('Set\x20'+_0x3a10a0+_0x147f39(0xa9)+_0x4162fc+'\x20for\x20\x22'+_0xa1c221+'\x22');}export async function configGet(_0x27322f,_0x2421c2){const _0x4984f4=_0x4a948e,_0x4280de={'WHlws':function(_0xb9de24,_0x241932){return _0xb9de24(_0x241932);},'KXLTo':'cloud','OUgeW':function(_0x38075e,_0x3df882){return _0x38075e(_0x3df882);},'EIdbe':_0x4984f4(0xc5),'cpevL':function(_0x48c7cb,_0x150940){return _0x48c7cb===_0x150940;},'snAFp':function(_0x46cbb7,_0x55b6d3){return _0x46cbb7===_0x55b6d3;}},_0x2a4bf1=await _0x4280de[_0x4984f4(0xac)](resolveProfileTarget,_0x27322f);if(_0x2a4bf1[_0x4984f4(0xa5)]===_0x4280de[_0x4984f4(0xb2)]){const _0x3e4b03=await _0x4280de['OUgeW'](loadEffectiveCloudSettings,_0x27322f),_0x3c10a2=getNestedValue(_0x3e4b03,_0x2421c2);if(_0x3c10a2===undefined)console[_0x4984f4(0xbb)](_0x4984f4(0xbf));else typeof _0x3c10a2===_0x4280de[_0x4984f4(0xc8)]?console['log'](JSON[_0x4984f4(0xa1)](_0x3c10a2,null,0x2)):console['log'](_0x3c10a2);return;}const _0x39e54e=await loadSettings(_0x27322f),_0x2d29d9=getNestedValue(_0x39e54e,_0x2421c2);if(_0x4280de['cpevL'](_0x2d29d9,undefined))console['log'](_0x4984f4(0xbf));else _0x4280de[_0x4984f4(0xcc)](typeof _0x2d29d9,_0x4280de[_0x4984f4(0xc8)])?console[_0x4984f4(0xbb)](JSON['stringify'](_0x2d29d9,null,0x2)):console['log'](_0x2d29d9);}export async function configList(_0x508c0a){const _0x43e1c1=_0x4a948e,_0x5b5c6f={'xoHNQ':function(_0x2b42d8,_0x42c83f){return _0x2b42d8(_0x42c83f);}},_0x9ba02d=await resolveProfileTarget(_0x508c0a);if(_0x9ba02d['kind']==='cloud'){const _0x7433c3=await loadEffectiveCloudSettings(_0x508c0a);if(!_0x7433c3||Object['keys'](_0x7433c3)[_0x43e1c1(0xb0)]===0x0){console[_0x43e1c1(0xbb)](_0x43e1c1(0xaf)+_0x508c0a+'\x22');return;}console[_0x43e1c1(0xbb)](JSON[_0x43e1c1(0xa1)](_0x7433c3,null,0x2));return;}const _0xa7fd6d=_0x5b5c6f['xoHNQ'](getSettingsPath,_0x508c0a);if(!existsSync(_0xa7fd6d)){console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x508c0a+'\x22');return;}const _0x2e4d0f=await loadSettings(_0x508c0a),_0x242b3d=_0x5b5c6f['xoHNQ'](formatSettings,_0x2e4d0f);!_0x242b3d?console['log'](_0x43e1c1(0xaf)+_0x508c0a+'\x22'):console[_0x43e1c1(0xbb)](_0x242b3d);}export async function configUnset(_0x1b3d2d,_0x415997){const _0xa32cda=_0x4a948e,_0x4bab11={'sharE':function(_0x36a8a9,_0x5c0d9b){return _0x36a8a9(_0x5c0d9b);},'WqgBn':function(_0x119e5c,_0x20c3ee){return _0x119e5c===_0x20c3ee;},'YxLep':_0xa32cda(0xc0),'JuPMt':function(_0x579981,_0x5751ef,_0x8acf16,_0x3da5f0){return _0x579981(_0x5751ef,_0x8acf16,_0x3da5f0);},'OGplr':function(_0x5cdb93){return _0x5cdb93();},'QfxPo':function(_0x54332a,_0x336e82){return _0x54332a(_0x336e82);}},_0x541a46=await _0x4bab11['sharE'](resolveProfileTarget,_0x1b3d2d);if(_0x4bab11['WqgBn'](_0x541a46['kind'],_0x4bab11['YxLep'])){if(_0x541a46['alsoExistsElsewhere'])printDualExistsHint(_0x1b3d2d);const _0x4bd95b=_0x4bab11['JuPMt'](unsetProfileOverride,_0x4bab11[_0xa32cda(0xa2)](getProjectPath),_0x1b3d2d,_0x415997);_0x4bd95b?console[_0xa32cda(0xbb)](_0xa32cda(0xa4)+_0x415997+_0xa32cda(0xa7)+_0x1b3d2d+'\x22'):console['log']('Key\x20\x22'+_0x415997+_0xa32cda(0xc1));return;}const _0x3424e6=unsetProfileOverride(getProjectPath(),_0x1b3d2d,_0x415997);if(_0x3424e6){console[_0xa32cda(0xbb)]('Removed\x20'+_0x415997);return;}const _0x12668d=await _0x4bab11['QfxPo'](loadSettings,_0x1b3d2d),_0x5612a6=deleteNestedValue(_0x12668d,_0x415997);_0x5612a6?console['log'](_0xa32cda(0xba)+_0x415997+'\x22\x20lives\x20in\x20the\x20legacy\x20settings\x20file\x20for\x20\x22'+_0x1b3d2d+'\x22\x20and\x20cannot\x20be\x20unset;\x20the\x20legacy\x20tree\x20is\x20read-only\x20under\x20cloud\x20profiles.'):console['log'](_0xa32cda(0xba)+_0x415997+'\x22\x20not\x20found');}export async function configReset(_0x46f045){const _0x599bc2=_0x4a948e,_0x273fbe={'EYJtI':function(_0x349769,_0x588f3e){return _0x349769===_0x588f3e;},'clcOP':_0x599bc2(0xc0),'FTHgx':function(_0x16bf93,_0x2f82d9,_0x405c9c){return _0x16bf93(_0x2f82d9,_0x405c9c);}},_0x3b190e=await resolveProfileTarget(_0x46f045);if(_0x273fbe['EYJtI'](_0x3b190e[_0x599bc2(0xa5)],_0x273fbe['clcOP'])){_0x273fbe[_0x599bc2(0xa6)](resetProfileOverrides,getProjectPath(),_0x46f045),console[_0x599bc2(0xbb)]('Cleared\x20local\x20overrides\x20for\x20\x22'+_0x46f045+'\x22');return;}console['log']('\x22'+_0x46f045+'\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20'+_0x46f045+_0x599bc2(0xa0));}
1
+ (function(_0x1b439a,_0x334379){const _0x26eee2=_0x3c66,_0x2dd167=_0x1b439a();while(!![]){try{const _0x3c3609=parseInt(_0x26eee2(0x126))/0x1*(parseInt(_0x26eee2(0x12b))/0x2)+parseInt(_0x26eee2(0x12e))/0x3+parseInt(_0x26eee2(0x13d))/0x4*(parseInt(_0x26eee2(0x145))/0x5)+-parseInt(_0x26eee2(0x152))/0x6+parseInt(_0x26eee2(0x125))/0x7+parseInt(_0x26eee2(0x135))/0x8*(parseInt(_0x26eee2(0x132))/0x9)+-parseInt(_0x26eee2(0x13a))/0xa;if(_0x3c3609===_0x334379)break;else _0x2dd167['push'](_0x2dd167['shift']());}catch(_0x270416){_0x2dd167['push'](_0x2dd167['shift']());}}}(_0x1d33,0xb1dbe));import{existsSync}from'fs';import{loadSettings,getNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';import{fetchCloudProfile}from'./utils/cloudProfile.js';import{mergeCloudProfileSettings,readProfileOverrides,resetProfileOverrides,setProfileOverride,unsetProfileOverride}from'./utils/projectsConfig.js';function _0x3c66(_0x35702f,_0x4e392b){_0x35702f=_0x35702f-0x125;const _0x1d337d=_0x1d33();let _0x3c666b=_0x1d337d[_0x35702f];return _0x3c666b;}const BOOLEAN_KEYS=['headless','allowInsecureLocalhost','forceLogin'];function parseLocalValue(_0xadc7a2,_0x20fa73){const _0x1d56d4=_0x3c66,_0x3a1390={'bYajW':'true'};if(BOOLEAN_KEYS['includes'](_0xadc7a2)){if(_0x20fa73===_0x3a1390['bYajW'])return!![];if(_0x20fa73===_0x1d56d4(0x129))return![];throw new Error('Invalid\x20value\x20for\x20'+_0xadc7a2+_0x1d56d4(0x142));}return _0x20fa73;}function parseOverrideValue(_0x8e6902){const _0x22a0ee=_0x3c66,_0x7d81c7={'CZydU':function(_0x4dc44c,_0x40d36b){return _0x4dc44c===_0x40d36b;},'KlWuv':_0x22a0ee(0x131),'IUgHW':function(_0x2d7bc0,_0xa032bb){return _0x2d7bc0(_0xa032bb);}};if(_0x7d81c7['CZydU'](_0x8e6902,'true'))return!![];if(_0x8e6902==='false')return![];if(_0x7d81c7[_0x22a0ee(0x130)](_0x8e6902,_0x22a0ee(0x144)))return null;if(_0x8e6902===_0x7d81c7[_0x22a0ee(0x137)])return undefined;if(/^-?\d+$/[_0x22a0ee(0x14e)](_0x8e6902)){const _0x2af5dd=_0x7d81c7[_0x22a0ee(0x136)](Number,_0x8e6902);if(Number['isSafeInteger'](_0x2af5dd))return _0x2af5dd;}if(/^-?\d+\.\d+$/['test'](_0x8e6902)){const _0x1de597=Number(_0x8e6902);if(!Number[_0x22a0ee(0x140)](_0x1de597))return _0x1de597;}const _0x27fa30=_0x8e6902[_0x22a0ee(0x134)]();if(_0x27fa30['startsWith']('{')&&_0x27fa30[_0x22a0ee(0x13c)]('}')||_0x27fa30['startsWith']('[')&&_0x27fa30['endsWith'](']'))try{return JSON[_0x22a0ee(0x148)](_0x27fa30);}catch{}return _0x8e6902;}function _0x1d33(){const _0x5a7ea4=['object','MBETN','kind','5579292lNnVJL','ZcqAh','cwd','Key\x20\x22','\x22\x20not\x20found','local','1749538UBzTiY','534706oHsIyU','(not\x20set)','GnNNt','false','\x20for\x20\x22','2JLeGEy','log','eYzrj','2092530gQSGxH','alsoExistsElsewhere','CZydU','undefined','5571027YsfwDs','yjtkR','trim','8xTCObX','IUgHW','KlWuv','BWlsj','cGPxA','17851410aULFKC','No\x20configuration\x20set\x20for\x20\x22','endsWith','27536LevCPw','mjdRW','YYQHy','isNaN','\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.',':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22','\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20','null','975ppNZqS','kZYFE','Removed\x20','parse','vHLvj','Set\x20','cloud','\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20','stringify','test'];_0x1d33=function(){return _0x5a7ea4;};return _0x1d33();}async function resolveProfileTarget(_0x8b4bdc){const _0xc71a9d=_0x3c66,_0x80e0be={'yjtkR':function(_0x466beb,_0x3dcaed){return _0x466beb(_0x3dcaed);},'eYzrj':function(_0xc854e0,_0x1c7036){return _0xc854e0(_0x1c7036);},'YYQHy':_0xc71a9d(0x157)},_0x527445=_0x80e0be['yjtkR'](existsSync,_0x80e0be[_0xc71a9d(0x12d)](getEnvDir,_0x8b4bdc));let _0x3c191d=![];try{const _0x167e7a=await _0x80e0be[_0xc71a9d(0x12d)](fetchCloudProfile,_0x8b4bdc);_0x3c191d=_0x80e0be[_0xc71a9d(0x133)](Boolean,_0x167e7a);}catch{}if(_0x3c191d)return{'kind':'cloud','alsoExistsElsewhere':_0x527445};if(_0x527445)return{'kind':_0x80e0be[_0xc71a9d(0x13f)],'alsoExistsElsewhere':![]};throw new Error('Profile\x20\x22'+_0x8b4bdc+_0xc71a9d(0x143)+_0x8b4bdc);}function printDualExistsHint(_0x5d6482){const _0x1e8f79=_0x3c66;console[_0x1e8f79(0x12c)]('\x20\x20Note:\x20\x22'+_0x5d6482+_0x1e8f79(0x141));}function getProjectPath(){const _0x2494fd=_0x3c66;return process[_0x2494fd(0x154)]();}async function loadEffectiveCloudSettings(_0x54786f){const _0x262c37=_0x3c66,_0x28f713={'icKIU':function(_0x4b7b05,_0x1d1d89){return _0x4b7b05(_0x1d1d89);},'MBETN':function(_0x374003,_0x5cf6e2){return _0x374003??_0x5cf6e2;}},_0x6127f5=await _0x28f713['icKIU'](fetchCloudProfile,_0x54786f),_0x34ceea=readProfileOverrides(getProjectPath(),_0x54786f);return mergeCloudProfileSettings(_0x6127f5?.['settings']??{},_0x28f713[_0x262c37(0x150)](_0x34ceea,undefined));}export async function configSet(_0x1df3c7,_0x13be56,_0x5561fe){const _0x4a629b=_0x3c66,_0x44c3a0={'BWlsj':function(_0x17bff4,_0x3aad23){return _0x17bff4(_0x3aad23);},'aIcmG':function(_0x21daf1,_0x282cff){return _0x21daf1===_0x282cff;},'eeqoX':'cloud'},_0x59da6b=await _0x44c3a0[_0x4a629b(0x138)](resolveProfileTarget,_0x1df3c7);if(_0x44c3a0['aIcmG'](_0x59da6b[_0x4a629b(0x151)],_0x44c3a0['eeqoX'])){if(_0x59da6b[_0x4a629b(0x12f)])_0x44c3a0['BWlsj'](printDualExistsHint,_0x1df3c7);const _0x2d1256=_0x44c3a0['BWlsj'](parseOverrideValue,_0x5561fe);setProfileOverride(getProjectPath(),_0x1df3c7,_0x13be56,_0x2d1256),console[_0x4a629b(0x12c)](_0x4a629b(0x14a)+_0x13be56+'\x20=\x20'+JSON['stringify'](_0x2d1256)+_0x4a629b(0x12a)+_0x1df3c7+'\x22');return;}const _0x163e52=parseLocalValue(_0x13be56,_0x5561fe);setProfileOverride(getProjectPath(),_0x1df3c7,_0x13be56,_0x163e52),console[_0x4a629b(0x12c)](_0x4a629b(0x14a)+_0x13be56+'\x20=\x20'+_0x163e52+_0x4a629b(0x12a)+_0x1df3c7+'\x22');}export async function configGet(_0x3b0920,_0x12c902){const _0x2b3d19=_0x3c66,_0x3ea69c={'ZcqAh':function(_0x4f60d8,_0x21f17e,_0x2ee43b){return _0x4f60d8(_0x21f17e,_0x2ee43b);},'vHLvj':function(_0x5b6b38,_0x522bcc){return _0x5b6b38===_0x522bcc;},'cGPxA':function(_0x444db0,_0xbdee99){return _0x444db0===_0xbdee99;},'mjdRW':function(_0x535f3c,_0x181350){return _0x535f3c===_0x181350;},'gZVLJ':function(_0x1cfba7,_0x30d9db){return _0x1cfba7===_0x30d9db;}},_0x5f08b4=await resolveProfileTarget(_0x3b0920);if(_0x5f08b4[_0x2b3d19(0x151)]==='cloud'){const _0x3cb4da=await loadEffectiveCloudSettings(_0x3b0920),_0x4d6380=_0x3ea69c[_0x2b3d19(0x153)](getNestedValue,_0x3cb4da,_0x12c902);if(_0x3ea69c[_0x2b3d19(0x149)](_0x4d6380,undefined))console[_0x2b3d19(0x12c)](_0x2b3d19(0x127));else _0x3ea69c[_0x2b3d19(0x139)](typeof _0x4d6380,_0x2b3d19(0x14f))?console['log'](JSON['stringify'](_0x4d6380,null,0x2)):console[_0x2b3d19(0x12c)](_0x4d6380);return;}const _0x2ae9ce=await loadSettings(_0x3b0920),_0x4abc82=getNestedValue(_0x2ae9ce,_0x12c902);if(_0x3ea69c[_0x2b3d19(0x13e)](_0x4abc82,undefined))console[_0x2b3d19(0x12c)](_0x2b3d19(0x127));else _0x3ea69c['gZVLJ'](typeof _0x4abc82,'object')?console[_0x2b3d19(0x12c)](JSON[_0x2b3d19(0x14d)](_0x4abc82,null,0x2)):console[_0x2b3d19(0x12c)](_0x4abc82);}export async function configList(_0x5bae9e){const _0x4b5b5f=_0x3c66,_0x511dba={'kZYFE':function(_0x2d7221,_0x289548){return _0x2d7221(_0x289548);},'HZDiU':function(_0x58c369,_0x3509fb){return _0x58c369===_0x3509fb;},'GnNNt':_0x4b5b5f(0x14b)},_0x45631c=await _0x511dba[_0x4b5b5f(0x146)](resolveProfileTarget,_0x5bae9e);if(_0x511dba['HZDiU'](_0x45631c['kind'],_0x511dba[_0x4b5b5f(0x128)])){const _0x4a61dc=await _0x511dba[_0x4b5b5f(0x146)](loadEffectiveCloudSettings,_0x5bae9e);if(!_0x4a61dc||Object['keys'](_0x4a61dc)['length']===0x0){console[_0x4b5b5f(0x12c)](_0x4b5b5f(0x13b)+_0x5bae9e+'\x22');return;}console[_0x4b5b5f(0x12c)](JSON[_0x4b5b5f(0x14d)](_0x4a61dc,null,0x2));return;}const _0x788500=getSettingsPath(_0x5bae9e);if(!_0x511dba[_0x4b5b5f(0x146)](existsSync,_0x788500)){console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x5bae9e+'\x22');return;}const _0x36049b=await _0x511dba['kZYFE'](loadSettings,_0x5bae9e),_0x2d98f7=formatSettings(_0x36049b);!_0x2d98f7?console['log'](_0x4b5b5f(0x13b)+_0x5bae9e+'\x22'):console[_0x4b5b5f(0x12c)](_0x2d98f7);}export async function configUnset(_0x520470,_0x2ea39a){const _0x52103d=_0x3c66,_0x5b8c47={'AdnvO':function(_0x1602a4,_0x502794){return _0x1602a4===_0x502794;},'qKArb':function(_0x598335,_0x61b564){return _0x598335(_0x61b564);},'Utrlm':function(_0x262112){return _0x262112();},'lcpHz':function(_0x224f8b,_0xfb3a25,_0x3d804b,_0x23ed5b){return _0x224f8b(_0xfb3a25,_0x3d804b,_0x23ed5b);}},_0xf1cd91=await resolveProfileTarget(_0x520470);if(_0x5b8c47['AdnvO'](_0xf1cd91[_0x52103d(0x151)],_0x52103d(0x14b))){if(_0xf1cd91['alsoExistsElsewhere'])_0x5b8c47['qKArb'](printDualExistsHint,_0x520470);const _0x1f3194=unsetProfileOverride(_0x5b8c47['Utrlm'](getProjectPath),_0x520470,_0x2ea39a);_0x1f3194?console[_0x52103d(0x12c)](_0x52103d(0x147)+_0x2ea39a+'\x20for\x20\x22'+_0x520470+'\x22'):console['log']('Key\x20\x22'+_0x2ea39a+_0x52103d(0x156));return;}const _0x165d99=_0x5b8c47['lcpHz'](unsetProfileOverride,getProjectPath(),_0x520470,_0x2ea39a);if(_0x165d99){console[_0x52103d(0x12c)]('Removed\x20'+_0x2ea39a);return;}const _0x1030a5=await loadSettings(_0x520470),_0x22dd7a=deleteNestedValue(_0x1030a5,_0x2ea39a);_0x22dd7a?console['log']('Key\x20\x22'+_0x2ea39a+'\x22\x20lives\x20in\x20the\x20legacy\x20settings\x20file\x20for\x20\x22'+_0x520470+'\x22\x20and\x20cannot\x20be\x20unset;\x20the\x20legacy\x20tree\x20is\x20read-only\x20under\x20cloud\x20profiles.'):console[_0x52103d(0x12c)](_0x52103d(0x155)+_0x2ea39a+'\x22\x20not\x20found');}export async function configReset(_0x4cfad2){const _0x5a74fd=_0x3c66,_0x1571a5={'IpSRM':function(_0x48d42a,_0x22e4b8){return _0x48d42a(_0x22e4b8);},'nKUfQ':function(_0x1c7446,_0x1d9aae){return _0x1c7446===_0x1d9aae;}},_0x18212c=await _0x1571a5['IpSRM'](resolveProfileTarget,_0x4cfad2);if(_0x1571a5['nKUfQ'](_0x18212c['kind'],_0x5a74fd(0x14b))){resetProfileOverrides(getProjectPath(),_0x4cfad2),console[_0x5a74fd(0x12c)]('Cleared\x20local\x20overrides\x20for\x20\x22'+_0x4cfad2+'\x22');return;}console[_0x5a74fd(0x12c)]('\x22'+_0x4cfad2+_0x5a74fd(0x14c)+_0x4cfad2+'\x20<key>\x22\x20to\x20remove\x20individual\x20values.');}
@@ -1 +1 @@
1
- (function(_0x2beac6,_0x5de1be){const _0xd30535=_0x4c7c,_0x58d82b=_0x2beac6();while(!![]){try{const _0x5b5e92=-parseInt(_0xd30535(0xe6))/0x1+-parseInt(_0xd30535(0xeb))/0x2+parseInt(_0xd30535(0xef))/0x3+-parseInt(_0xd30535(0xf3))/0x4+-parseInt(_0xd30535(0xed))/0x5*(-parseInt(_0xd30535(0xe5))/0x6)+-parseInt(_0xd30535(0xf2))/0x7*(parseInt(_0xd30535(0xf5))/0x8)+parseInt(_0xd30535(0xf1))/0x9*(parseInt(_0xd30535(0xe3))/0xa);if(_0x5b5e92===_0x5de1be)break;else _0x58d82b['push'](_0x58d82b['shift']());}catch(_0x512866){_0x58d82b['push'](_0x58d82b['shift']());}}}(_0x30e4,0x4da7c));import _0x2ef3ec from'inquirer';import{deleteCloudProfile,fetchCloudProfile}from'./utils/cloudProfile.js';import{isInteractive}from'./utils/cloudProfileSession.js';import{clearLastProfile,resetProfileOverrides}from'./utils/projectsConfig.js';export async function deleteProfile(_0x2e7b0b,_0x247bf7={}){const _0x541e80=_0x4c7c,_0x191f6b={'tfTdq':function(_0x30f126,_0x3a3506){return _0x30f126(_0x3a3506);},'oIDis':function(_0x49b612){return _0x49b612();},'wkIAu':function(_0x287ba6,_0x54d301,_0x5447f6){return _0x287ba6(_0x54d301,_0x5447f6);}},_0x486be3=await _0x191f6b['tfTdq'](fetchCloudProfile,_0x2e7b0b);if(!_0x486be3)throw new Error('Cloud\x20profile\x20\x22'+_0x2e7b0b+'\x22\x20not\x20found.');if(!_0x247bf7['yes']&&!_0x191f6b[_0x541e80(0xe2)](isInteractive))throw new Error('Profile\x20deletion\x20requires\x20an\x20interactive\x20terminal\x20so\x20the\x20profile\x20name\x20can\x20be\x20typed\x20for\x20confirmation.\x20Pass\x20--yes\x20to\x20skip\x20confirmation.');console[_0x541e80(0xe4)]('\x0aWarning:\x20this\x20deletes\x20the\x20shared\x20cloud\x20profile\x20\x22'+_0x2e7b0b+'\x22\x20for\x20everyone\x20in\x20your\x20organization.');if(!_0x247bf7[_0x541e80(0xee)]){const {confirmation:_0x4cad89}=await _0x2ef3ec[_0x541e80(0xe1)]([{'type':_0x541e80(0xe7),'name':_0x541e80(0xea),'message':_0x541e80(0xe8)+_0x2e7b0b+_0x541e80(0xf4)}]);if(_0x4cad89!==_0x2e7b0b)throw new Error(_0x541e80(0xf6));}await _0x191f6b[_0x541e80(0xf0)](deleteCloudProfile,_0x2e7b0b),resetProfileOverrides(process['cwd'](),_0x2e7b0b),_0x191f6b[_0x541e80(0xe9)](clearLastProfile,process[_0x541e80(0xec)](),_0x2e7b0b),console['log']('✓\x20Deleted\x20cloud\x20profile\x20\x22'+_0x2e7b0b+'\x22.');}function _0x4c7c(_0x2e6bfc,_0x52b918){_0x2e6bfc=_0x2e6bfc-0xe1;const _0x30e43a=_0x30e4();let _0x4c7ccd=_0x30e43a[_0x2e6bfc];return _0x4c7ccd;}function _0x30e4(){const _0x18dfb7=['confirmation','1258160dmoTVG','cwd','250JrHZjJ','yes','902697pYAZpa','tfTdq','135BjJhTx','2342585fvzuVC','689360pGMGid','\x22\x20to\x20confirm\x20deletion:','8zzNaWc','Profile\x20deletion\x20cancelled:\x20confirmation\x20did\x20not\x20match.','prompt','oIDis','892400ZvqIHe','log','21000vOpOCz','360348rJzuZU','input','Type\x20\x22','wkIAu'];_0x30e4=function(){return _0x18dfb7;};return _0x30e4();}
1
+ (function(_0x2cae31,_0xcb2248){const _0x1b71d4=_0x22bc,_0x1c9f80=_0x2cae31();while(!![]){try{const _0x2c520e=-parseInt(_0x1b71d4(0x106))/0x1*(-parseInt(_0x1b71d4(0x10f))/0x2)+parseInt(_0x1b71d4(0x112))/0x3*(parseInt(_0x1b71d4(0x107))/0x4)+parseInt(_0x1b71d4(0x100))/0x5*(-parseInt(_0x1b71d4(0x109))/0x6)+parseInt(_0x1b71d4(0x10a))/0x7+parseInt(_0x1b71d4(0x103))/0x8+-parseInt(_0x1b71d4(0x111))/0x9+-parseInt(_0x1b71d4(0xff))/0xa;if(_0x2c520e===_0xcb2248)break;else _0x1c9f80['push'](_0x1c9f80['shift']());}catch(_0x286001){_0x1c9f80['push'](_0x1c9f80['shift']());}}}(_0x3458,0xe882a));import _0x520761 from'inquirer';import{deleteCloudProfile,fetchCloudProfile}from'./utils/cloudProfile.js';function _0x22bc(_0x5db380,_0x127474){_0x5db380=_0x5db380-0xfe;const _0x345834=_0x3458();let _0x22bc86=_0x345834[_0x5db380];return _0x22bc86;}import{isInteractive}from'./utils/cloudProfileSession.js';import{clearLastProfile,resetProfileOverrides}from'./utils/projectsConfig.js';export async function deleteProfile(_0x1ac9b0,_0x4f2710={}){const _0x3ddac4=_0x22bc,_0x460fd2={'MjwEw':function(_0xfff154,_0x1577d6){return _0xfff154(_0x1577d6);},'pbMLm':function(_0xbb2556){return _0xbb2556();},'tWQmx':_0x3ddac4(0x113),'VDBNx':_0x3ddac4(0x10b),'cHMMk':function(_0x53a691,_0x2d32ff){return _0x53a691!==_0x2d32ff;},'Weyrm':function(_0x36772f,_0x436ae8,_0xac3ade){return _0x36772f(_0x436ae8,_0xac3ade);}},_0x22c0ca=await _0x460fd2['MjwEw'](fetchCloudProfile,_0x1ac9b0);if(!_0x22c0ca)throw new Error(_0x3ddac4(0x105)+_0x1ac9b0+'\x22\x20not\x20found.');if(!_0x4f2710[_0x3ddac4(0x10e)]&&!_0x460fd2['pbMLm'](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[_0x3ddac4(0xfe)]('\x0aWarning:\x20this\x20deletes\x20the\x20shared\x20cloud\x20profile\x20\x22'+_0x1ac9b0+_0x3ddac4(0x110));if(!_0x4f2710['yes']){const {confirmation:_0x116170}=await _0x520761[_0x3ddac4(0x10d)]([{'type':_0x460fd2[_0x3ddac4(0x102)],'name':_0x460fd2['VDBNx'],'message':_0x3ddac4(0x10c)+_0x1ac9b0+'\x22\x20to\x20confirm\x20deletion:'}]);if(_0x460fd2[_0x3ddac4(0x104)](_0x116170,_0x1ac9b0))throw new Error(_0x3ddac4(0x101));}await _0x460fd2[_0x3ddac4(0x114)](deleteCloudProfile,_0x1ac9b0),resetProfileOverrides(process[_0x3ddac4(0x108)](),_0x1ac9b0),_0x460fd2['Weyrm'](clearLastProfile,process['cwd'](),_0x1ac9b0),console[_0x3ddac4(0xfe)]('✓\x20Deleted\x20cloud\x20profile\x20\x22'+_0x1ac9b0+'\x22.');}function _0x3458(){const _0x3dc006=['Profile\x20deletion\x20cancelled:\x20confirmation\x20did\x20not\x20match.','tWQmx','9922432gfAwRS','cHMMk','Cloud\x20profile\x20\x22','303qSUTSK','84412WACbXv','cwd','102ZpukZb','3090297WOgZaz','confirmation','Type\x20\x22','prompt','yes','8856PvYOXx','\x22\x20for\x20everyone\x20in\x20your\x20organization.','15191658QeBPav','63mEpUsd','input','MjwEw','log','664320Mmkhyt','223490vqdWxb'];_0x3458=function(){return _0x3dc006;};return _0x3458();}
@@ -1 +1 @@
1
- const _0x1c50a6=_0x2013;(function(_0x56b63c,_0x25f459){const _0x2900ea=_0x2013,_0x346806=_0x56b63c();while(!![]){try{const _0x3631df=parseInt(_0x2900ea(0x20d))/0x1*(-parseInt(_0x2900ea(0x20b))/0x2)+-parseInt(_0x2900ea(0x205))/0x3+parseInt(_0x2900ea(0x21a))/0x4+parseInt(_0x2900ea(0x1f7))/0x5*(parseInt(_0x2900ea(0x1ef))/0x6)+-parseInt(_0x2900ea(0x1ee))/0x7*(-parseInt(_0x2900ea(0x21b))/0x8)+-parseInt(_0x2900ea(0x209))/0x9*(parseInt(_0x2900ea(0x207))/0xa)+-parseInt(_0x2900ea(0x1ed))/0xb*(parseInt(_0x2900ea(0x212))/0xc);if(_0x3631df===_0x25f459)break;else _0x346806['push'](_0x346806['shift']());}catch(_0x5d8bd3){_0x346806['push'](_0x346806['shift']());}}}(_0x5212,0x7a743));import{readdir,stat}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';import{getToken}from'./utils/keychain.js';function _0x5212(){const _0x5d4ad3=['yaLQY','AfsGm','has','environmentKey','isDirectory','push','localeCompare','Suixb','1175283tAfWhp','.txt','1139690QWCyHH','environmentDetails','9AoMjHw','ikgmu','2EGVdcq','dxkZM','146921hvnvyU','bug-bashes','CjgLB','fuUJC','mxtXl','60NZkWFN','local','log','tNlOO','\x20\x20\x20\x20\x20\x20Details:\x20','map','dXibv','no\x20session','3551460rquxVj','29008TgjEvr','message','error','baseUrl','\x0aCloud\x20Profiles:','name','Run:\x20ranger\x20profile\x20add\x20<profile-name>','1022769VwlCkL','7bNejgm','36kAGsgT','HOvqB','includes','\x20[cloud]','endsWith','sort','cached\x20(updated\x20','startsWith','606355WBglUe','\x20\x20\x20\x20\x20\x20Session:\x20','qkzxy','ZYNde','length','sessions'];_0x5212=function(){return _0x5d4ad3;};return _0x5212();}function _0x2013(_0x1b0995,_0x37301c){_0x1b0995=_0x1b0995-0x1e7;const _0x52125f=_0x5212();let _0x20132e=_0x52125f[_0x1b0995];return _0x20132e;}import{listCloudProfiles}from'./utils/cloudProfile.js';const NON_ENV_DIRS=[_0x1c50a6(0x1fc),_0x1c50a6(0x20e),'reports',_0x1c50a6(0x213),'ci'];export async function getEnvNames(){const _0x43ec7b=_0x1c50a6,_0x31f728={'ZSfJt':function(_0x13301c){return _0x13301c();},'ehDaO':function(_0x28da19,_0xa77b3c,_0x415cf9){return _0x28da19(_0xa77b3c,_0x415cf9);},'yaLQY':_0x43ec7b(0x213),'qkzxy':function(_0x134f73,_0x34cd28,_0x452e5e){return _0x134f73(_0x34cd28,_0x452e5e);},'Suixb':function(_0x3c7561,_0x4fb36c){return _0x3c7561(_0x4fb36c);},'dxkZM':function(_0x3fed28,_0x2bf874,_0x540cf6){return _0x3fed28(_0x2bf874,_0x540cf6);},'AfsGm':_0x43ec7b(0x206),'ikgmu':function(_0x272c2e,_0x4256d8,_0x4c1f5a){return _0x272c2e(_0x4256d8,_0x4c1f5a);},'HOvqB':'settings.json','fuUJC':'legacy'},_0x6ffac8=getRangerDir();if(!existsSync(_0x6ffac8))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x41d223=await _0x31f728['ZSfJt'](readActiveProfileName),_0xf601e5=[],_0x1d10d9={},_0xa0344e=_0x31f728['ehDaO'](join,_0x6ffac8,_0x31f728['yaLQY']);if(existsSync(_0xa0344e)){const _0x14c599=await readdir(_0xa0344e);for(const _0x355f45 of _0x14c599){const _0x153f62=_0x31f728[_0x43ec7b(0x1f9)](join,_0xa0344e,_0x355f45),_0x503411=await stat(_0x153f62);_0x503411['isDirectory']()&&(_0xf601e5[_0x43ec7b(0x202)](_0x355f45),_0x1d10d9[_0x355f45]=_0x31f728[_0x43ec7b(0x1fd)]);}}const _0xeca460=join(_0x6ffac8,'ci');if(existsSync(_0xeca460)){const _0x93ffb3=await _0x31f728[_0x43ec7b(0x204)](readdir,_0xeca460);for(const _0x16aa1e of _0x93ffb3){const _0x4fb19a=_0x31f728[_0x43ec7b(0x20c)](join,_0xeca460,_0x16aa1e),_0x35a2c7=await stat(_0x4fb19a);_0x35a2c7[_0x43ec7b(0x201)]()&&(_0xf601e5['push'](_0x16aa1e),_0x1d10d9[_0x16aa1e]='ci');}}const _0x3024af=await readdir(_0x6ffac8);for(const _0xa6d04c of _0x3024af){if(NON_ENV_DIRS[_0x43ec7b(0x1f1)](_0xa6d04c))continue;if(_0xa6d04c[_0x43ec7b(0x1f6)]('.'))continue;if(_0xa6d04c[_0x43ec7b(0x1f3)](_0x31f728[_0x43ec7b(0x1fe)]))continue;const _0x5d93e9=join(_0x6ffac8,_0xa6d04c),_0x5a49bc=await stat(_0x5d93e9);_0x5a49bc[_0x43ec7b(0x201)]()&&existsSync(_0x31f728[_0x43ec7b(0x20a)](join,_0x5d93e9,_0x31f728[_0x43ec7b(0x1f0)]))&&(!_0xf601e5[_0x43ec7b(0x1f1)](_0xa6d04c)&&(_0xf601e5['push'](_0xa6d04c),_0x1d10d9[_0xa6d04c]=_0x31f728[_0x43ec7b(0x210)]));}return{'envNames':_0xf601e5,'activeEnv':_0x41d223,'envTypes':_0x1d10d9};}export async function envList(){const _0xaa8f45=_0x1c50a6,_0x2e5183={'PCLDB':function(_0x47ae56){return _0x47ae56();},'dXibv':function(_0xb2c23a,_0x400dec){return _0xb2c23a instanceof _0x400dec;},'CjgLB':function(_0x4d9d7d,_0x3e1399){return _0x4d9d7d===_0x3e1399;},'mxtXl':'\x0aNo\x20profiles\x20found.','sHqgw':function(_0x25e939,_0x1a04fa){return _0x25e939>_0x1a04fa;},'OtJFw':_0xaa8f45(0x213),'ZYNde':function(_0x16ffc4,_0x1df53c){return _0x16ffc4(_0x1df53c);},'tNlOO':function(_0x2c4458,_0x4f005b){return _0x2c4458===_0x4f005b;},'NtnZP':'legacy','ENnCv':function(_0x1ed509,_0x4938be){return _0x1ed509>_0x4938be;},'JqgLp':_0xaa8f45(0x219)},{envNames:_0x3a5d3b,activeEnv:_0x4e73b5,envTypes:_0x21f8e3}=await getEnvNames();let _0x374a47=[];const _0x4a2088=await getToken();if(_0x4a2088)try{_0x374a47=await _0x2e5183['PCLDB'](listCloudProfiles);}catch(_0x2185c1){console[_0xaa8f45(0x1e8)]('\x0aWarning:\x20could\x20not\x20fetch\x20cloud\x20profiles:\x20'+(_0x2e5183[_0xaa8f45(0x218)](_0x2185c1,Error)?_0x2185c1[_0xaa8f45(0x1e7)]:String(_0x2185c1)));}if(_0x2e5183['CjgLB'](_0x3a5d3b[_0xaa8f45(0x1fb)],0x0)&&_0x374a47['length']===0x0){console[_0xaa8f45(0x214)](_0x2e5183[_0xaa8f45(0x211)]),console['log'](_0xaa8f45(0x1ec));return;}const _0x19366a=new Set(_0x374a47[_0xaa8f45(0x217)](_0x283e33=>_0x283e33[_0xaa8f45(0x1eb)]));if(_0x2e5183['sHqgw'](_0x3a5d3b['length'],0x0)){console['log']('\x0aLocal\x20Profiles\x20(legacy):');for(const _0x46c9f8 of _0x3a5d3b[_0xaa8f45(0x1f4)]()){const _0x4ff344=_0x46c9f8===_0x4e73b5&&!_0x19366a[_0xaa8f45(0x1ff)](_0x46c9f8),_0x22acc1=_0x21f8e3[_0x46c9f8]||_0x2e5183['OtJFw'],_0x382861=await _0x2e5183[_0xaa8f45(0x1fa)](loadSettings,_0x46c9f8),_0x45834d=_0x2e5183[_0xaa8f45(0x215)](_0x22acc1,_0x2e5183['NtnZP'])?'':'\x20['+_0x22acc1+']';console['log']('\x20\x20'+(_0x4ff344?'*\x20':'\x20\x20')+_0x46c9f8+_0x45834d),_0x382861[_0xaa8f45(0x1e9)]&&console[_0xaa8f45(0x214)]('\x20\x20\x20\x20\x20\x20URL:\x20'+_0x382861['baseUrl']),_0x382861[_0xaa8f45(0x208)]&&console[_0xaa8f45(0x214)](_0xaa8f45(0x216)+_0x382861['environmentDetails']);}}if(_0x2e5183['ENnCv'](_0x374a47[_0xaa8f45(0x1fb)],0x0)){console['log'](_0xaa8f45(0x1ea));for(const _0x1460c5 of _0x374a47['sort']((_0x3b50d8,_0x4ebc1a)=>_0x3b50d8[_0xaa8f45(0x1eb)][_0xaa8f45(0x203)](_0x4ebc1a[_0xaa8f45(0x1eb)]))){const _0x530182=_0x2e5183[_0xaa8f45(0x20f)](_0x1460c5['name'],_0x4e73b5),_0x2c1622=_0x1460c5['environmentKey']?'\x20('+_0x1460c5[_0xaa8f45(0x200)]+')':'',_0x4a64b1=_0x1460c5['sessionUpdatedAt']?_0xaa8f45(0x1f5)+_0x1460c5['sessionUpdatedAt']+')':_0x2e5183['JqgLp'];console[_0xaa8f45(0x214)]('\x20\x20'+(_0x530182?'*\x20':'\x20\x20')+_0x1460c5[_0xaa8f45(0x1eb)]+_0xaa8f45(0x1f2)+_0x2c1622),console[_0xaa8f45(0x214)](_0xaa8f45(0x1f8)+_0x4a64b1);}}_0x4e73b5&&console[_0xaa8f45(0x214)]('\x0a*\x20=\x20active\x20profile');}
1
+ const _0x4fefbc=_0x4daf;(function(_0x21d4a7,_0x468387){const _0x2c077a=_0x4daf,_0x180e6e=_0x21d4a7();while(!![]){try{const _0x3e2e85=parseInt(_0x2c077a(0xc1))/0x1*(parseInt(_0x2c077a(0xc8))/0x2)+parseInt(_0x2c077a(0xc0))/0x3+parseInt(_0x2c077a(0xa7))/0x4*(parseInt(_0x2c077a(0xd0))/0x5)+parseInt(_0x2c077a(0xb9))/0x6*(parseInt(_0x2c077a(0xbe))/0x7)+parseInt(_0x2c077a(0xb4))/0x8*(parseInt(_0x2c077a(0xcb))/0x9)+-parseInt(_0x2c077a(0xbf))/0xa+-parseInt(_0x2c077a(0xad))/0xb;if(_0x3e2e85===_0x468387)break;else _0x180e6e['push'](_0x180e6e['shift']());}catch(_0x5ec745){_0x180e6e['push'](_0x180e6e['shift']());}}}(_0x146d,0x769b7));function _0x146d(){const _0x2ece2c=['99yUFQDV','Run:\x20ranger\x20profile\x20add\x20<profile-name>','local','kTZcn','sort','3273085idpxvx','LrlfA','4fDYRtK','localeCompare','cached\x20(updated\x20','bug-bashes','fVgde','\x0aLocal\x20Profiles\x20(legacy):','6995131preQPC','EKnCk','isDirectory','error','message','jnvSu','sessionUpdatedAt','32752IqcAQz','log','GJsBV','legacy','yTzco','530454Fmclkv','map','\x0aCloud\x20Profiles:','name','TZehA','7QnbRTD','4512750xTNvZr','1456098cVdpiF','65khXpar','\x20[cloud]','baseUrl','sessions','DoGZP','endsWith','.txt','9218yFpecY','\x20\x20\x20\x20\x20\x20URL:\x20','no\x20session'];_0x146d=function(){return _0x2ece2c;};return _0x146d();}import{readdir,stat}from'fs/promises';import{join}from'path';import{existsSync}from'fs';function _0x4daf(_0x2217cd,_0x3a6050){_0x2217cd=_0x2217cd-0xa6;const _0x146d01=_0x146d();let _0x4daf4f=_0x146d01[_0x2217cd];return _0x4daf4f;}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=[_0x4fefbc(0xc4),_0x4fefbc(0xaa),'reports','local','ci'];export async function getEnvNames(){const _0x583ff6=_0x4fefbc,_0x1bfd64={'TZehA':function(_0x3e4388,_0x9dbe9,_0x44a177){return _0x3e4388(_0x9dbe9,_0x44a177);},'kTZcn':_0x583ff6(0xcd),'JpUYV':function(_0x384faa,_0x10f871){return _0x384faa(_0x10f871);},'jnvSu':function(_0xcf7e30,_0x23ae92){return _0xcf7e30(_0x23ae92);},'EKnCk':_0x583ff6(0xc7),'LrlfA':'settings.json'},_0x46dfd2=getRangerDir();if(!existsSync(_0x46dfd2))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x5c9c01=await readActiveProfileName(),_0x863784=[],_0x37fe88={},_0x6d8df3=_0x1bfd64['TZehA'](join,_0x46dfd2,_0x1bfd64[_0x583ff6(0xce)]);if(existsSync(_0x6d8df3)){const _0x30407a=await _0x1bfd64['JpUYV'](readdir,_0x6d8df3);for(const _0x24394f of _0x30407a){const _0x206bd4=join(_0x6d8df3,_0x24394f),_0x3c886d=await _0x1bfd64[_0x583ff6(0xb2)](stat,_0x206bd4);_0x3c886d['isDirectory']()&&(_0x863784['push'](_0x24394f),_0x37fe88[_0x24394f]=_0x583ff6(0xcd));}}const _0x218803=join(_0x46dfd2,'ci');if(existsSync(_0x218803)){const _0x49d754=await readdir(_0x218803);for(const _0x480da0 of _0x49d754){const _0x1d6b4f=join(_0x218803,_0x480da0),_0x589851=await _0x1bfd64['jnvSu'](stat,_0x1d6b4f);_0x589851[_0x583ff6(0xaf)]()&&(_0x863784['push'](_0x480da0),_0x37fe88[_0x480da0]='ci');}}const _0x2db580=await readdir(_0x46dfd2);for(const _0x20212c of _0x2db580){if(NON_ENV_DIRS['includes'](_0x20212c))continue;if(_0x20212c['startsWith']('.'))continue;if(_0x20212c[_0x583ff6(0xc6)](_0x1bfd64[_0x583ff6(0xae)]))continue;const _0x3539ef=_0x1bfd64[_0x583ff6(0xbd)](join,_0x46dfd2,_0x20212c),_0x4c6bb4=await _0x1bfd64['JpUYV'](stat,_0x3539ef);_0x4c6bb4['isDirectory']()&&existsSync(join(_0x3539ef,_0x1bfd64[_0x583ff6(0xa6)]))&&(!_0x863784['includes'](_0x20212c)&&(_0x863784['push'](_0x20212c),_0x37fe88[_0x20212c]=_0x583ff6(0xb7)));}return{'envNames':_0x863784,'activeEnv':_0x5c9c01,'envTypes':_0x37fe88};}export async function envList(){const _0x2e51f0=_0x4fefbc,_0x279183={'fVgde':function(_0x53ad44){return _0x53ad44();},'yTzco':function(_0x25639a,_0x203478){return _0x25639a instanceof _0x203478;},'ZoDQD':function(_0x2b585b,_0x5917e9){return _0x2b585b===_0x5917e9;},'LMRuM':_0x2e51f0(0xcc),'GJsBV':function(_0x337b23,_0x1bcb7a){return _0x337b23>_0x1bcb7a;},'DoGZP':function(_0x5e2d7e,_0x229cf7){return _0x5e2d7e===_0x229cf7;},'jEZdZ':'local'},{envNames:_0x1bdeb1,activeEnv:_0xc7b424,envTypes:_0x1b63d3}=await getEnvNames();let _0x2b2170=[];const _0x5d7123=await _0x279183['fVgde'](getToken);if(_0x5d7123)try{_0x2b2170=await _0x279183[_0x2e51f0(0xab)](listCloudProfiles);}catch(_0x13f8d6){console[_0x2e51f0(0xb0)]('\x0aWarning:\x20could\x20not\x20fetch\x20cloud\x20profiles:\x20'+(_0x279183[_0x2e51f0(0xb8)](_0x13f8d6,Error)?_0x13f8d6[_0x2e51f0(0xb1)]:String(_0x13f8d6)));}if(_0x279183['ZoDQD'](_0x1bdeb1['length'],0x0)&&_0x2b2170['length']===0x0){console['log']('\x0aNo\x20profiles\x20found.'),console['log'](_0x279183['LMRuM']);return;}const _0x14a428=new Set(_0x2b2170[_0x2e51f0(0xba)](_0x2d9f82=>_0x2d9f82[_0x2e51f0(0xbc)]));if(_0x279183[_0x2e51f0(0xb6)](_0x1bdeb1['length'],0x0)){console[_0x2e51f0(0xb5)](_0x2e51f0(0xac));for(const _0x4bebdf of _0x1bdeb1[_0x2e51f0(0xcf)]()){const _0x52e117=_0x279183[_0x2e51f0(0xc5)](_0x4bebdf,_0xc7b424)&&!_0x14a428['has'](_0x4bebdf),_0x5942ef=_0x1b63d3[_0x4bebdf]||_0x279183['jEZdZ'],_0xcb06a6=await loadSettings(_0x4bebdf),_0x3de7d3=_0x279183[_0x2e51f0(0xc5)](_0x5942ef,'legacy')?'':'\x20['+_0x5942ef+']';console['log']('\x20\x20'+(_0x52e117?'*\x20':'\x20\x20')+_0x4bebdf+_0x3de7d3),_0xcb06a6[_0x2e51f0(0xc3)]&&console['log'](_0x2e51f0(0xc9)+_0xcb06a6['baseUrl']),_0xcb06a6['environmentDetails']&&console[_0x2e51f0(0xb5)]('\x20\x20\x20\x20\x20\x20Details:\x20'+_0xcb06a6['environmentDetails']);}}if(_0x2b2170['length']>0x0){console[_0x2e51f0(0xb5)](_0x2e51f0(0xbb));for(const _0x46daf3 of _0x2b2170['sort']((_0x1d0fc5,_0x105d72)=>_0x1d0fc5['name'][_0x2e51f0(0xa8)](_0x105d72[_0x2e51f0(0xbc)]))){const _0x5f47ba=_0x46daf3['name']===_0xc7b424,_0x55933d=_0x46daf3['environmentKey']?'\x20('+_0x46daf3['environmentKey']+')':'',_0x212256=_0x46daf3[_0x2e51f0(0xb3)]?_0x2e51f0(0xa9)+_0x46daf3['sessionUpdatedAt']+')':_0x2e51f0(0xca);console[_0x2e51f0(0xb5)]('\x20\x20'+(_0x5f47ba?'*\x20':'\x20\x20')+_0x46daf3['name']+_0x2e51f0(0xc2)+_0x55933d),console['log']('\x20\x20\x20\x20\x20\x20Session:\x20'+_0x212256);}}_0xc7b424&&console['log']('\x0a*\x20=\x20active\x20profile');}