@ranger-testing/ranger-cli 3.0.1-alpha.aab0a1c-26 → 3.0.1-alpha.c0b290b-36

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 -0
  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 -0
  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 -0
  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 -0
  85. package/package.json +5 -2
@@ -1 +1 @@
1
- (function(_0xd4cca5,_0x193d90){const _0x80a06=_0x3162,_0x34bcfe=_0xd4cca5();while(!![]){try{const _0x23f279=-parseInt(_0x80a06(0x124))/0x1+parseInt(_0x80a06(0xf2))/0x2*(parseInt(_0x80a06(0xc3))/0x3)+parseInt(_0x80a06(0x112))/0x4+parseInt(_0x80a06(0x10f))/0x5*(parseInt(_0x80a06(0xb4))/0x6)+-parseInt(_0x80a06(0xab))/0x7+parseInt(_0x80a06(0xd0))/0x8+-parseInt(_0x80a06(0xa8))/0x9*(parseInt(_0x80a06(0xf6))/0xa);if(_0x23f279===_0x193d90)break;else _0x34bcfe['push'](_0x34bcfe['shift']());}catch(_0x35137d){_0x34bcfe['push'](_0x34bcfe['shift']());}}}(_0xe261,0x71790));import{readdir,rm}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import _0x51228d from'inquirer';import{getRangerDir,getRangerHomeDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';function _0xe261(){const _0x5ad828=['\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20','baseUrl','length','4148696hpIVTT','\x20—\x20not\x20removing.\x20Delete\x20manually\x20if\x20you\x20want\x20it\x20gone.','isProtocolError','\x20\x20Details:\x20https://docs.ranger.net/main/concepts/profiles#automated-login','environments','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','log','\x0a🌐\x20Profile\x20Setup\x0a','\x22.\x20Expected\x20\x22Name:\x20Value\x22.','rzUtd',')\x0a\x20\x20Save\x20\x27','test','lHDKn','url','TjZPU','.\x20Configured\x20envs:\x20','ffvlY','startsWith','NODE_TLS_REJECT_UNAUTHORIZED','fsfoO','for\x20you,\x20so\x20the\x20encrypted-CI\x20flow\x20is\x20unnecessary.\x0a','mPxTJ','keys','user_declined','HTTP\x20','fetch\x20failed','trim','jZqWp','NaIje','\x0a\x20\x20Could\x20not\x20reach\x20','wUUjd','\x27\x20created.\x0a','AQnHe','\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','10vEhjWw','gGqIF','\x20--skip-auth\x0a','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','3680140sbHtbu','\x0a\x20\x20A\x20profile\x20named\x20\x22','\x0a✓\x20Profile\x20\x27','cjlir','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','flPIx','ksotx','Found\x20auth\x20environment\x20\x27','GotdK','setupHeader','aOpiG','\x20\x20https://docs.ranger.net/main/concepts/profiles','ZEWZa','status','cdpEndpoint','\x20\x20Note:\x20cloud\x20profile\x20created,\x20but\x20failed\x20to\x20sweep\x20orphan\x20local\x20dirs\x20(','Enter\x20a\x20different\x20URL','\x20\x20Ranger\x20will\x20use\x20it\x20to\x20look\x20up\x20the\x20right\x20cloud\x20auth\x20env\x20to\x20attach.\x0a','\x20--url\x20','\x20\x20Did\x20you\x20mean\x20','action','\x20\x20When\x20you\x27re\x20ready\x20to\x20log\x20in,\x20run\x20`ranger\x20profile\x20add\x20','\x27\x20created\x20(no\x20session).\x0a','Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team.\x20Capture\x20a\x20session\x20via\x20a\x20headed\x20browser\x20instead?','--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','10YyTvQc','message','join','3263324OWlliv','BLQHm','\x0a\x20\x20No\x20auth\x20env\x20matches\x20','\x0a\x20\x20Cloud\x20profile\x20created,\x20but\x20failed\x20to\x20write\x20per-cwd\x20CDP\x20override\x20to\x20projects.json:\x20','error','tjqLP','XjoHk','cuLkQ','\x0a\x20\x20Could\x20not\x20fetch\x20this\x20org\x27s\x20auth\x20config:\x20','cUhPq','setupHeaders','\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','profile.add.autoRouted','manual','`\x20again\x20without\x20--skip-auth.','RyEaK','waDin','retry','460321MEOiiM','The\x20--ci\x20flag\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x20session\x20state\x0a','no_match','JPcwk','qRbuc','qIVQx','confirm','warn','36OxDuQy','vvIqS','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','1324225dkmkyo','CmtRh','UTdOg','name','env','OHbJL','indexOf','uKIrZ','use_suggestion','1960494NXFFMU','XjCWP','exit','LxMFI','MANGI','NfFYK','skipAuth','tujSN','uuYBY','slice','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20','force','SBTpk','\x20\x20Note:\x20found\x20git-tracked\x20local\x20profile\x20at\x20','prompt','359052krTmkx','XGzBI','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','✓\x20Profile\x20\x27','CpcEB','\x20(continuing\x20with\x20--force)','cwd','\x20\x20Next:\x20ranger\x20go\x20--profile\x20','\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20','trackPhaseEnd'];_0xe261=function(){return _0x5ad828;};return _0xe261();}import{fetchAuthConfig,createCloudProfile,manualBrowserLogin,ApiError}from'./utils/cloudProfile.js';import{isInteractive}from'./utils/cloudProfileSession.js';function _0x3162(_0x4c5b7c,_0x1a9846){_0x4c5b7c=_0x4c5b7c-0xa6;const _0xe261e0=_0xe261();let _0x3162c0=_0xe261e0[_0x4c5b7c];return _0x3162c0;}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 _0x1d30a3=_0x3162;if(!process['stdout']['isTTY'])return;console[_0x1d30a3(0xa7)](CLOUD_PROFILE_SHARING_WARNING);}async function checkUrlReachability(_0x192696){const _0x379c54=_0x3162,_0xd84a79={'aOpiG':'HEAD','NaIje':_0x379c54(0x11f),'XhnNS':function(_0x5009be,_0x3f6aba,_0xff6128){return _0x5009be(_0x3f6aba,_0xff6128);},'vvIqS':function(_0x27698c,_0x128d04){return _0x27698c(_0x128d04);},'pJnAe':function(_0x368ee2,_0x27b23b){return _0x368ee2<_0x27b23b;},'UTdOg':'Invalid\x20URL'};try{const _0x255c04=new AbortController(),_0x13a0b6=setTimeout(()=>_0x255c04['abort'](),0x1388),_0x384bac={'method':_0xd84a79[_0x379c54(0x100)],'signal':_0x255c04['signal'],'redirect':_0xd84a79[_0x379c54(0xec)]};/^https:\/\/localhost(:\d+)?/i[_0x379c54(0xdb)](_0x192696)&&(process[_0x379c54(0xaf)][_0x379c54(0xe2)]='0');const _0x53ace9=await _0xd84a79['XhnNS'](fetch,_0x192696,_0x384bac);delete process['env']['NODE_TLS_REJECT_UNAUTHORIZED'],_0xd84a79['vvIqS'](clearTimeout,_0x13a0b6);if(_0xd84a79['pJnAe'](_0x53ace9['status'],0x190))return{'ok':!![]};return{'ok':![],'error':_0x379c54(0xe8)+_0x53ace9['status']};}catch(_0xbdd768){delete process[_0x379c54(0xaf)]['NODE_TLS_REJECT_UNAUTHORIZED'];const _0x3a1c82=_0xbdd768,_0x465628=_0x3a1c82['message']||_0xd84a79[_0x379c54(0xa9)](String,_0xbdd768),_0x1ead45=_0x465628['includes'](_0xd84a79[_0x379c54(0xad)])||_0x3a1c82[_0x379c54(0xae)]==='TypeError'||_0x465628['includes'](_0x379c54(0xe9));return{'ok':![],'error':_0x465628,'isProtocolError':_0x1ead45};}}async function sweepOrphanLocalProfile(_0x124d85,_0x137689,_0x3e9787){const _0x311afe=_0x3162,_0xece58f={'gGqIF':function(_0x51e575,_0x375bdf,_0x11b3c9){return _0x51e575(_0x375bdf,_0x11b3c9);},'JWWnT':'local','QSzUZ':function(_0x100c3a,_0x1ea881){return _0x100c3a(_0x1ea881);},'NfFYK':function(_0x1ed3ba,_0x20c4df,_0x4c2c6d){return _0x1ed3ba(_0x20c4df,_0x4c2c6d);}},_0x2b6a8f=_0xece58f[_0x311afe(0xf3)](join,_0x137689,_0xece58f['JWWnT']),_0x45a983=join(_0x2b6a8f,_0x124d85);_0xece58f['QSzUZ'](existsSync,_0x45a983)&&(_0x3e9787&&await isPathGitTracked(_0x45a983)?console[_0x311afe(0xd6)](_0x311afe(0xc1)+_0x45a983+_0x311afe(0xd1)):(await rm(_0x45a983,{'recursive':!![],'force':!![]}),console[_0x311afe(0xd6)](_0x311afe(0xcb)+_0x45a983)));if(existsSync(_0x2b6a8f)){let _0x5919d5=[];try{_0x5919d5=await _0xece58f['QSzUZ'](readdir,_0x2b6a8f);}catch{return;}const _0x45643b='.tmp-'+_0x124d85+'-';for(const _0x9a7305 of _0x5919d5){if(!_0x9a7305[_0x311afe(0xe1)](_0x45643b))continue;const _0x43e0e9=_0xece58f[_0x311afe(0xb9)](join,_0x2b6a8f,_0x9a7305);await _0xece58f['gGqIF'](rm,_0x43e0e9,{'recursive':!![],'force':!![]}),console[_0x311afe(0xd6)]('\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20'+_0x43e0e9);}}}async function sweepOrphansBestEffort(_0x5275ed){const _0x393fa3=_0x3162,_0x2f9e9d={'tjqLP':function(_0x5370d1){return _0x5370d1();},'GotdK':function(_0x12f165){return _0x12f165();},'WqViQ':function(_0x3c1919){return _0x3c1919();},'CmtRh':function(_0x239e5b,_0x332779,_0x531ec8,_0x63b7e4){return _0x239e5b(_0x332779,_0x531ec8,_0x63b7e4);}};try{await sweepOrphanLocalProfile(_0x5275ed,_0x2f9e9d[_0x393fa3(0x117)](getRangerHomeDir),![]);const _0xf02544=_0x2f9e9d[_0x393fa3(0xfe)](getRangerDir);_0xf02544!==_0x2f9e9d['WqViQ'](getRangerHomeDir)&&await _0x2f9e9d[_0x393fa3(0xac)](sweepOrphanLocalProfile,_0x5275ed,_0xf02544,!![]);}catch(_0x3f2b61){console[_0x393fa3(0xd6)](_0x393fa3(0x105)+(_0x3f2b61 instanceof Error?_0x3f2b61['message']:String(_0x3f2b61))+').');}}async function markActive(_0x8cd0f9){const _0xa2c88f=_0x3162,_0x4efef7={'uuYBY':_0xa2c88f(0xf5)};try{await writeActiveProfileName(_0x8cd0f9),console[_0xa2c88f(0xd6)]('\x20\x20Set\x20active\x20profile:\x20'+_0x8cd0f9);}catch{console['log'](_0x4efef7[_0xa2c88f(0xbc)]);}}async function tryAutoRouteCloudProfile(_0x3e5b58,_0xb181e2,_0x1d620f,_0x239f15,_0x1ad03c){const _0x8c724d=_0x3162,_0x3d1d97={'XjoHk':function(_0x400f48){return _0x400f48();},'AQnHe':'profile.add.autoRouteSkipped','OHbJL':function(_0x4bf775,_0x26e1de){return _0x4bf775 instanceof _0x26e1de;},'tujSN':function(_0x1ee829,_0x488cda){return _0x1ee829(_0x488cda);},'mPxTJ':function(_0x35542b,_0x427c1a,_0xde338d,_0x5c633e,_0x255449){return _0x35542b(_0x427c1a,_0xde338d,_0x5c633e,_0x255449);},'XjCWP':function(_0x26b2c8,_0x200e70){return _0x26b2c8+_0x200e70;},'lZyyM':function(_0x576d5e,_0x55eba7){return _0x576d5e+_0x55eba7;},'fsfoO':'\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','CpcEB':'\x20\x20To\x20get\x20automated\x20login\x20set\x20up\x20for\x20your\x20team\x20(a\x20one-time\x20call):\x20eng@ranger.net\x0a','GeQYF':_0x8c724d(0xd3),'flPIx':function(_0x112242,_0x1b53bf,_0x26554b){return _0x112242(_0x1b53bf,_0x26554b);},'sWJFg':_0x8c724d(0xa6),'wUUjd':'saveToCloud','cUhPq':_0x8c724d(0xe7),'cuLkQ':function(_0x51c409,_0x3ae24e,_0x5768ca,_0x50f1b2){return _0x51c409(_0x3ae24e,_0x5768ca,_0x50f1b2);},'WWhhk':function(_0x329c86,_0x4d2763){return _0x329c86+_0x4d2763;},'cicdW':_0x8c724d(0x11e)};let _0x3a69f4;try{_0x3a69f4=await _0x3d1d97[_0x8c724d(0x118)](fetchAuthConfig);}catch(_0x2f450c){return _0x1ad03c?.['trackPhaseEnd'](_0x3d1d97[_0x8c724d(0xf0)],{'reason':'no_auth_config','profileName':_0x3e5b58}),console[_0x8c724d(0x116)](_0x8c724d(0x11a)+(_0x3d1d97[_0x8c724d(0xb0)](_0x2f450c,Error)?_0x2f450c[_0x8c724d(0x110)]:_0x3d1d97[_0x8c724d(0xbb)](String,_0x2f450c))),![];}if(!_0x3a69f4||!_0x3a69f4[_0x8c724d(0xd4)]||Object['keys'](_0x3a69f4[_0x8c724d(0xd4)])[_0x8c724d(0xcf)]===0x0){if(_0x239f15)return await _0x3d1d97[_0x8c724d(0xe5)](captureEnvLessProfile,_0x3e5b58,_0xb181e2,_0x1d620f,_0x1ad03c);return _0x1ad03c?.[_0x8c724d(0xcc)](_0x3d1d97['AQnHe'],{'reason':'no_auth_config','profileName':_0x3e5b58}),console['error'](_0x3d1d97[_0x8c724d(0xb5)](_0x3d1d97['XjCWP'](_0x3d1d97['lZyyM'](_0x3d1d97[_0x8c724d(0xe3)]+'\x0a'+'\x20\x20Workaround\x20for\x20now:\x20create\x20a\x20profile\x20without\x20a\x20captured\x20session\x20and\x20supply\x20one\x20later:\x0a',_0x8c724d(0xbe)+_0x3e5b58+_0x8c724d(0x108)+_0xb181e2+_0x8c724d(0xf4))+'\x0a',_0x3d1d97[_0x8c724d(0xc7)]),_0x3d1d97['GeQYF'])),![];}const _0x28fe95=_0x3d1d97[_0x8c724d(0xfb)](matchAuthEnvironment,_0xb181e2,_0x3a69f4);if(!_0x28fe95)return _0x1ad03c?.[_0x8c724d(0xcc)](_0x3d1d97[_0x8c724d(0xf0)],{'reason':_0x8c724d(0x126),'profileName':_0x3e5b58}),console[_0x8c724d(0x116)](_0x8c724d(0x114)+_0xb181e2+_0x8c724d(0xdf)+Object['keys'](_0x3a69f4['environments'])[_0x8c724d(0x111)](',\x20')+'.'),![];const _0x1e5685=_0x3a69f4[_0x8c724d(0xd4)][_0x28fe95],_0x242c5c=_0x1e5685?.['domains']??[];if(_0x239f15&&!_0x1d620f['yes']){const {saveToCloud:_0x599281}=await _0x51228d['prompt']([{'type':_0x3d1d97['sWJFg'],'name':_0x3d1d97[_0x8c724d(0xee)],'message':_0x8c724d(0xfd)+_0x28fe95+'\x27\x20matching\x20'+_0xb181e2+'\x0a\x20\x20(domains:\x20'+_0x242c5c[_0x8c724d(0x111)](',\x20')+_0x8c724d(0xda)+_0x3e5b58+'\x27\x20to\x20the\x20cloud?','default':!![]}]);if(!_0x599281)return _0x1ad03c?.['trackPhaseEnd']('profile.add.autoRouteSkipped',{'reason':_0x3d1d97[_0x8c724d(0x11b)],'profileName':_0x3e5b58}),console['error']('\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20cloud-managed\x20session.'),![];}const _0x283388=_0x242c5c['some'](_0x1aba47=>{try{return new URL(_0x1aba47)['origin']===new URL(_0xb181e2)['origin'];}catch{return![];}}),_0x47c191={};!_0x283388&&(_0x47c191[_0x8c724d(0xce)]=_0xb181e2);try{await _0x3d1d97[_0x8c724d(0x119)](createCloudProfile,_0x3e5b58,_0x28fe95,{'settings':_0x47c191}),_0x3d1d97['XjoHk'](warnCloudProfileSharedInOrg);}catch(_0x4a5891){if(_0x4a5891 instanceof ApiError&&_0x4a5891[_0x8c724d(0x103)]===0x199){console[_0x8c724d(0x116)](_0x3d1d97['WWhhk']('\x0a\x20\x20A\x20profile\x20named\x20\x22'+_0x3e5b58+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a',_0x8c724d(0xcd)+_0x3e5b58));throw _0x4a5891;}throw _0x4a5891;}return console['log'](_0x8c724d(0xc6)+_0x3e5b58+_0x8c724d(0xef)+('\x20\x20Next:\x20ranger\x20go\x20--profile\x20'+_0x3e5b58)),await sweepOrphansBestEffort(_0x3e5b58),_0x1ad03c?.['trackPhaseEnd'](_0x3d1d97['cicdW'],{'envKey':_0x28fe95,'profileName':_0x3e5b58}),!![];}async function createUnconfiguredCloudProfile(_0x2434bb,_0x4e7e9a){const _0x233396=_0x3162,_0x2196f={'egDOz':function(_0x5aced7,_0x87c67,_0x4e0654,_0x1ff731){return _0x5aced7(_0x87c67,_0x4e0654,_0x1ff731);},'uKIrZ':function(_0x32ec94){return _0x32ec94();}};try{await _0x2196f['egDOz'](createCloudProfile,_0x2434bb,undefined,{'settings':_0x4e7e9a}),_0x2196f[_0x233396(0xb2)](warnCloudProfileSharedInOrg);}catch(_0x1a69c3){_0x1a69c3 instanceof ApiError&&_0x1a69c3['status']===0x199&&console[_0x233396(0x116)](_0x233396(0xf7)+_0x2434bb+_0x233396(0xf1)+(_0x233396(0xcd)+_0x2434bb));throw _0x1a69c3;}}async function captureEnvLessProfile(_0x5cb28a,_0x285a78,_0x1d546,_0x3ae12b){const _0xd64ee1=_0x3162,_0x3a3d7e={'TnRfA':_0xd64ee1(0xa6),'wpFJP':'profile.add.autoRouteSkipped','ksotx':function(_0x2e3ce2,_0x5483bd){return _0x2e3ce2>_0x5483bd;},'RyEaK':function(_0x387c9f){return _0x387c9f();},'YCtFa':function(_0x8d227a,_0x53931d){return _0x8d227a+_0x53931d;},'KpOkO':function(_0x314de1,_0x2cc61e){return _0x314de1>_0x2cc61e;},'qgSHl':function(_0x2cc8b2,_0x36445e){return _0x2cc8b2(_0x36445e);}};if(!_0x1d546['yes']){const {capture:_0x588f3e}=await _0x51228d[_0xd64ee1(0xc2)]([{'type':_0x3a3d7e['TnRfA'],'name':'capture','message':_0xd64ee1(0x10d),'default':!![]}]);if(!_0x588f3e)return _0x3ae12b?.[_0xd64ee1(0xcc)](_0x3a3d7e['wpFJP'],{'reason':'user_declined','profileName':_0x5cb28a}),console['error']('\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 _0x15d7f2={};if(_0x1d546[_0xd64ee1(0xff)])for(const _0x4b9772 of _0x1d546['setupHeader']){const _0x2466c8=_0x4b9772[_0xd64ee1(0xb1)](':');if(_0x2466c8===-0x1)continue;_0x15d7f2[_0x4b9772['slice'](0x0,_0x2466c8)[_0xd64ee1(0xea)]()]=_0x4b9772[_0xd64ee1(0xbd)](_0x2466c8+0x1)[_0xd64ee1(0xea)]();}const _0x30ff4d={'baseUrl':_0x285a78};_0x3a3d7e[_0xd64ee1(0xfc)](Object[_0xd64ee1(0xe6)](_0x15d7f2)[_0xd64ee1(0xcf)],0x0)&&(_0x30ff4d[_0xd64ee1(0x11c)]=_0x15d7f2);let _0x5a0a38;try{_0x5a0a38=await createCloudProfile(_0x5cb28a,undefined,{'settings':_0x30ff4d}),_0x3a3d7e[_0xd64ee1(0x121)](warnCloudProfileSharedInOrg);}catch(_0xafa515){_0xafa515 instanceof ApiError&&_0xafa515['status']===0x199&&console['error'](_0x3a3d7e['YCtFa'](_0xd64ee1(0xf7)+_0x5cb28a+_0xd64ee1(0xf1),_0xd64ee1(0xcd)+_0x5cb28a));throw _0xafa515;}return await manualBrowserLogin(_0x5a0a38,{'key':'','domains':[_0x285a78],'setupHeaders':_0x3a3d7e['KpOkO'](Object[_0xd64ee1(0xe6)](_0x15d7f2)[_0xd64ee1(0xcf)],0x0)?_0x15d7f2:undefined}),console['log'](_0x3a3d7e['YCtFa'](_0xd64ee1(0xf8)+_0x5cb28a+'\x27\x20created\x20with\x20a\x20captured\x20session.\x0a',_0xd64ee1(0xca)+_0x5cb28a)),await _0x3a3d7e['qgSHl'](sweepOrphansBestEffort,_0x5cb28a),_0x3ae12b?.[_0xd64ee1(0xcc)]('profile.add.autoRouted',{'envKey':null,'profileName':_0x5cb28a}),!![];}export async function addEnv(_0x193584,_0x525e5c={},_0x1e507c){const _0xfe28a1=_0x3162,_0x1e8aaf={'ffvlY':function(_0x5d014a,_0x4e5c91){return _0x5d014a+_0x4e5c91;},'bdwaV':_0xfe28a1(0xe4),'cjlir':_0xfe28a1(0x101),'lHDKn':function(_0x42c5cd,_0x2c9906){return _0x42c5cd!==_0x2c9906;},'QoHkn':function(_0x4074f6,_0x183af2){return _0x4074f6===_0x183af2;},'BLQHm':_0xfe28a1(0x10e),'ujggq':function(_0x17b491,_0x144c7a){return _0x17b491(_0x144c7a);},'WBZvU':function(_0x40bab2,_0x457278){return _0x40bab2>_0x457278;},'yJHwr':function(_0x525a4e,_0x54121a,_0x10d262){return _0x525a4e(_0x54121a,_0x10d262);},'XGzBI':function(_0x390b73,_0x1d2019,_0x2f15b6,_0x2e9b59,_0x1a864d){return _0x390b73(_0x1d2019,_0x2f15b6,_0x2e9b59,_0x1a864d);},'LxMFI':'isElectron','TjZPU':function(_0x80d460,_0x218fac){return _0x80d460 instanceof _0x218fac;},'ZEWZa':function(_0x19fa68,_0x898c0){return _0x19fa68(_0x898c0);},'qeWxy':function(_0x4f2884,_0x1927af,_0x433cb4){return _0x4f2884(_0x1927af,_0x433cb4);},'JPcwk':function(_0x1684cb,_0x29d9f1){return _0x1684cb+_0x29d9f1;},'LCyfq':function(_0x1914e4,_0x337e66){return _0x1914e4(_0x337e66);},'waDin':'input','qIVQx':'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','jZqWp':'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','qRbuc':function(_0x5f3033,_0x356393){return _0x5f3033||_0x356393;},'rzUtd':'list','MANGI':_0xfe28a1(0x10a),'SBTpk':'What\x20would\x20you\x20like\x20to\x20do?','WgvUu':_0xfe28a1(0xb3),'PIuKv':'continue','jeSGN':function(_0x22fa5e,_0xfeec42,_0x2a479d,_0x5e279a,_0x50733c,_0x2df8b5){return _0x22fa5e(_0xfeec42,_0x2a479d,_0x5e279a,_0x50733c,_0x2df8b5);}};_0x525e5c['ci']&&(console[_0xfe28a1(0x116)](_0x1e8aaf[_0xfe28a1(0xe0)](_0x1e8aaf['ffvlY'](_0xfe28a1(0x125)+_0x1e8aaf['bdwaV']+'\x0a'+'To\x20set\x20up\x20a\x20profile,\x20run:\x0a',_0xfe28a1(0xaa))+'\x0a',_0xfe28a1(0xc5))+_0x1e8aaf[_0xfe28a1(0xf9)]),process['exit'](0x1));const _0x52332a={};if(_0x525e5c[_0xfe28a1(0xff)])for(const _0x223f19 of _0x525e5c['setupHeader']){const _0x25c64e=_0x223f19[_0xfe28a1(0xb1)](':');if(_0x25c64e===-0x1)throw new Error('Invalid\x20--setup-header\x20format:\x20\x22'+_0x223f19+_0xfe28a1(0xd8));const _0x275053=_0x223f19[_0xfe28a1(0xbd)](0x0,_0x25c64e)[_0xfe28a1(0xea)](),_0x1b9701=_0x223f19['slice'](_0x25c64e+0x1)['trim']();_0x52332a[_0x275053]=_0x1b9701;}if(_0x1e8aaf[_0xfe28a1(0xdc)](_0x525e5c[_0xfe28a1(0x104)],undefined)&&_0x1e8aaf['QoHkn'](_0x525e5c[_0xfe28a1(0x104)]['trim'](),''))throw new Error('--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222');if(_0x525e5c[_0xfe28a1(0x104)]&&_0x525e5c[_0xfe28a1(0xdd)])throw new Error(_0x1e8aaf[_0xfe28a1(0x113)]);const _0x1e1b5b=_0x1e8aaf['ujggq'](Boolean,_0x525e5c[_0xfe28a1(0x104)]),_0x4df715=isInteractive();if(!_0x4df715&&!_0x525e5c[_0xfe28a1(0xdd)]&&!_0x1e1b5b&&!_0x525e5c[_0xfe28a1(0xba)])throw new Error('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');if(_0x1e1b5b){const _0x59edb1=_0x525e5c['cdpEndpoint'];console[_0xfe28a1(0xd6)](_0xfe28a1(0x11d)),console['log'](_0xfe28a1(0xd5)+_0x59edb1);const _0x25e179={'cdpEndpoint':_0x59edb1,'isElectron':!![]};_0x1e8aaf['WBZvU'](Object[_0xfe28a1(0xe6)](_0x52332a)[_0xfe28a1(0xcf)],0x0)&&(_0x25e179['setupHeaders']=_0x52332a);await _0x1e8aaf['yJHwr'](createUnconfiguredCloudProfile,_0x193584,_0x25e179);try{setProfileOverride(process[_0xfe28a1(0xc9)](),_0x193584,_0xfe28a1(0x104),_0x59edb1),_0x1e8aaf[_0xfe28a1(0xc4)](setProfileOverride,process['cwd'](),_0x193584,_0x1e8aaf[_0xfe28a1(0xb7)],!![]);}catch(_0x515fb1){console[_0xfe28a1(0x116)](_0xfe28a1(0x115)+(_0x1e8aaf['TjZPU'](_0x515fb1,Error)?_0x515fb1['message']:_0x1e8aaf['ZEWZa'](String,_0x515fb1)));}console[_0xfe28a1(0xd6)]('✓\x20Cloud\x20profile\x20\x27'+_0x193584+'\x27\x20created\x20(CDP).'),await sweepOrphansBestEffort(_0x193584),await markActive(_0x193584);return;}if(_0x525e5c[_0xfe28a1(0xba)]){const _0x9233f2={};_0x525e5c['url']&&(_0x9233f2[_0xfe28a1(0xce)]=_0x525e5c[_0xfe28a1(0xdd)]);Object['keys'](_0x52332a)[_0xfe28a1(0xcf)]>0x0&&(_0x9233f2[_0xfe28a1(0x11c)]=_0x52332a);await _0x1e8aaf['qeWxy'](createUnconfiguredCloudProfile,_0x193584,_0x9233f2),console['log'](_0x1e8aaf[_0xfe28a1(0x127)]('✓\x20Profile\x20\x27'+_0x193584+_0xfe28a1(0x10c),_0xfe28a1(0x10b)+_0x193584+_0xfe28a1(0x120))),await _0x1e8aaf[_0xfe28a1(0x102)](sweepOrphansBestEffort,_0x193584),await _0x1e8aaf['LCyfq'](markActive,_0x193584);return;}if(_0x525e5c[_0xfe28a1(0xdd)]){const _0x2eaefa=_0x525e5c[_0xfe28a1(0xdd)],_0x708c85=await checkUrlReachability(_0x2eaefa);if(!_0x708c85['ok']&&!_0x525e5c['force'])throw new Error('Could\x20not\x20reach\x20'+_0x2eaefa+':\x20'+_0x708c85['error']+'\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.');!_0x708c85['ok']&&_0x525e5c[_0xfe28a1(0xbf)]&&console[_0xfe28a1(0xd6)]('⚠\x20Could\x20not\x20reach\x20'+_0x2eaefa+':\x20'+_0x708c85['error']+_0xfe28a1(0xc8));}else{console['log'](_0xfe28a1(0xd7)),console[_0xfe28a1(0xd6)](_0xfe28a1(0xfa)),console[_0xfe28a1(0xd6)](_0xfe28a1(0x107));let _0x16f3ad='',_0x34e63b=![];while(!![]){const _0x57aac7=await _0x51228d['prompt']([{'type':_0x1e8aaf[_0xfe28a1(0x122)],'name':'baseUrl','message':_0x34e63b?_0x1e8aaf[_0xfe28a1(0x129)]:_0x1e8aaf[_0xfe28a1(0xeb)],'default':_0x1e8aaf[_0xfe28a1(0x128)](_0x16f3ad,'http://localhost:3000')}]);_0x16f3ad=_0x57aac7[_0xfe28a1(0xce)];const _0x302e0f=await checkUrlReachability(_0x16f3ad);if(_0x302e0f['ok'])break;const _0x12b0c7=/^[a-zA-Z][\w+.-]*:\/\//[_0xfe28a1(0xdb)](_0x16f3ad),_0x1159ed=_0x302e0f[_0xfe28a1(0xd2)]&&!_0x12b0c7,_0x4652ee=_0x1159ed?'http://'+_0x16f3ad:null;_0x34e63b=!![],console['log'](_0xfe28a1(0xed)+_0x16f3ad+':\x20'+_0x302e0f['error']);_0x4652ee&&console['log'](_0xfe28a1(0x109)+_0x4652ee+'?');const {action:_0x316bb4}=await _0x51228d[_0xfe28a1(0xc2)]([{'type':_0x1e8aaf[_0xfe28a1(0xd9)],'name':_0x1e8aaf[_0xfe28a1(0xb8)],'message':_0x1e8aaf[_0xfe28a1(0xc0)],'choices':[..._0x4652ee?[{'name':'Use\x20'+_0x4652ee,'value':_0x1e8aaf['WgvUu']}]:[],{'name':_0xfe28a1(0x106),'value':_0xfe28a1(0x123)},{'name':'Continue\x20anyway','value':'continue'}]}]);if(_0x316bb4===_0xfe28a1(0xb3)&&_0x4652ee){_0x16f3ad=_0x4652ee;const _0x320cf1=await checkUrlReachability(_0x16f3ad);if(_0x320cf1['ok'])break;console['log']('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0x16f3ad+':\x20'+_0x320cf1['error']);}else{if(_0x1e8aaf['QoHkn'](_0x316bb4,_0x1e8aaf['PIuKv']))break;}}_0x525e5c={..._0x525e5c,'url':_0x16f3ad};}let _0x30c313=![];try{_0x30c313=await _0x1e8aaf['jeSGN'](tryAutoRouteCloudProfile,_0x193584,_0x525e5c['url'],_0x525e5c,_0x4df715,_0x1e507c);}catch(_0x12c778){console['error']('\x0a\x20\x20Failed\x20to\x20create\x20cloud\x20profile\x20\x22'+_0x193584+'\x22:\x20'+(_0x1e8aaf[_0xfe28a1(0xde)](_0x12c778,Error)?_0x12c778['message']:String(_0x12c778))),process[_0xfe28a1(0xb6)](0x1);}!_0x30c313&&process[_0xfe28a1(0xb6)](0x1),await _0x1e8aaf['ujggq'](markActive,_0x193584);}
1
+ const _0x55ab0e=_0xe170;(function(_0x18fd62,_0x33ddef){const _0x4a61ce=_0xe170,_0x1a27ad=_0x18fd62();while(!![]){try{const _0x4e4f5d=parseInt(_0x4a61ce(0x230))/0x1+-parseInt(_0x4a61ce(0x1db))/0x2+-parseInt(_0x4a61ce(0x217))/0x3*(-parseInt(_0x4a61ce(0x1dd))/0x4)+-parseInt(_0x4a61ce(0x1f8))/0x5+-parseInt(_0x4a61ce(0x219))/0x6*(parseInt(_0x4a61ce(0x205))/0x7)+parseInt(_0x4a61ce(0x1c0))/0x8*(-parseInt(_0x4a61ce(0x1d9))/0x9)+parseInt(_0x4a61ce(0x224))/0xa;if(_0x4e4f5d===_0x33ddef)break;else _0x1a27ad['push'](_0x1a27ad['shift']());}catch(_0x5ef88f){_0x1a27ad['push'](_0x1a27ad['shift']());}}}(_0x3300,0x7d92b));import{readdir,rm}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import _0x49d6ea from'inquirer';import{getRangerDir,getRangerHomeDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{fetchAuthConfig,createCloudProfile,manualBrowserLogin,ApiError}from'./utils/cloudProfile.js';import{isInteractive}from'./utils/cloudProfileSession.js';import{matchAuthEnvironment}from'./utils/matchAuthEnvironment.js';import{isPathGitTracked}from'./utils/gitTracked.js';import{setProfileOverride}from'./utils/projectsConfig.js';function _0x3300(){const _0x4d8316=['3207965vcSmPY','Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team.\x20Capture\x20a\x20session\x20via\x20a\x20headed\x20browser\x20instead?','message','LIbIQ','trackPhaseEnd','\x20\x20https://docs.ranger.net/main/concepts/profiles','vgFQN','feljw','DxtEK','\x20\x20Set\x20active\x20profile:\x20','uClxw','skipAuth','use_suggestion','7AwGehk','indexOf','slice','wbVzm','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','user_declined','\x20—\x20not\x20removing.\x20Delete\x20manually\x20if\x20you\x20want\x20it\x20gone.','length','KVtPZ','yCPQV','pbPgV','OHcNs','isTTY','GUban','Could\x20not\x20reach\x20','.\x20Configured\x20envs:\x20','yes','Lwjer','6dZxCAq','\x0a\x20\x20A\x20profile\x20named\x20\x22','2974506vaCYhx','no_match','error','UMAer','\x27\x20created\x20with\x20a\x20captured\x20session.\x0a','HEAD','⚠\x20Could\x20not\x20reach\x20','cdpEndpoint','\x0a\x20\x20Could\x20not\x20fetch\x20this\x20org\x27s\x20auth\x20config:\x20','\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','oCUSM','19768430hawoaO','url','keys','Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','prompt','\x20\x20Note:\x20found\x20git-tracked\x20local\x20profile\x20at\x20','tXhqB','Vynqv','zidKQ','\x27\x20created.\x0a','jlFYp','status','132220gWQseQ','origin','dwcQC','QbFOC','gPzkL','hOYGL','exit','local','npfje','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20','--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','action','\x0a\x20\x20Failed\x20to\x20create\x20cloud\x20profile\x20\x22','Found\x20auth\x20environment\x20\x27','stdout','`\x20again\x20without\x20--skip-auth.','HTTP\x20','✓\x20Profile\x20\x27','for\x20you,\x20so\x20the\x20encrypted-CI\x20flow\x20is\x20unnecessary.\x0a','.tmp-','\x20\x20Details:\x20https://docs.ranger.net/main/concepts/profiles#automated-login','Continue\x20anyway','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','48TOsvft','\x27\x20created\x20(CDP).','Ihmhr','trim','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','signal','NODE_TLS_REJECT_UNAUTHORIZED','Invalid\x20URL','profile.add.autoRouteSkipped','tCVeW','force','\x0a\x20\x20Still\x20could\x20not\x20reach\x20','isElectron','AQrnA','\x20\x20or\x20contact\x20eng@ranger.net\x20to\x20set\x20up\x20automated\x20login\x20for\x20your\x20team.','vyypH','JOqgd','pxYxI','iTdbs','cwd','log','setupHeader','\x20\x20Next:\x20ranger\x20go\x20--profile\x20','This\x20account\x20will\x20be\x20shared\x20with\x20everyone\x20at\x20your\x20organization','test','1124523lzbcBt','dtkcm','780148nKFMBA','hWdWF','1364768ihbXNq','isProtocolError','baseUrl','profile.add.autoRouted','\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20session,\x0a','startsWith','\x20\x20When\x20you\x27re\x20ready\x20to\x20log\x20in,\x20run\x20`ranger\x20profile\x20add\x20','retry','FKhrI','xSLnm','\x20\x20To\x20get\x20automated\x20login\x20set\x20up\x20for\x20your\x20team\x20(a\x20one-time\x20call):\x20eng@ranger.net\x0a','environments','gWfpU','abort','What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','\x0a\x20\x20Cloud\x20profile\x20created,\x20but\x20failed\x20to\x20write\x20per-cwd\x20CDP\x20override\x20to\x20projects.json:\x20','TwmRS','\x0a\x20\x20No\x20auth\x20env\x20matches\x20','lsOxN','nQKXV','no_auth_config','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','join','YiyDJ','manual','QveOe','KZHtk'];_0x3300=function(){return _0x4d8316;};return _0x3300();}const CLOUD_PROFILE_SHARING_WARNING=_0x55ab0e(0x1d7);function warnCloudProfileSharedInOrg(){const _0x4325da=_0x55ab0e;if(!process[_0x4325da(0x23e)][_0x4325da(0x211)])return;console['warn'](CLOUD_PROFILE_SHARING_WARNING);}function _0xe170(_0x205353,_0x3bc67d){_0x205353=_0x205353-0x1bd;const _0x33008a=_0x3300();let _0xe17045=_0x33008a[_0x205353];return _0xe17045;}async function checkUrlReachability(_0x42ee10){const _0x8a7bb=_0x55ab0e,_0x268c12={'npfje':function(_0x349686,_0x7529c8,_0x1b79f8){return _0x349686(_0x7529c8,_0x1b79f8);},'soquE':_0x8a7bb(0x1f5),'vyypH':function(_0x334a91,_0x5ce6c9){return _0x334a91(_0x5ce6c9);},'DxtEK':'TypeError'};try{const _0xd9f16b=new AbortController(),_0x127c17=_0x268c12[_0x8a7bb(0x238)](setTimeout,()=>_0xd9f16b[_0x8a7bb(0x1ea)](),0x1388),_0x1c19f0={'method':_0x8a7bb(0x21e),'signal':_0xd9f16b[_0x8a7bb(0x1c5)],'redirect':_0x268c12['soquE']};/^https:\/\/localhost(:\d+)?/i['test'](_0x42ee10)&&(process['env'][_0x8a7bb(0x1c6)]='0');const _0x132d42=await fetch(_0x42ee10,_0x1c19f0);delete process['env'][_0x8a7bb(0x1c6)],clearTimeout(_0x127c17);if(_0x132d42[_0x8a7bb(0x22f)]<0x190)return{'ok':!![]};return{'ok':![],'error':_0x8a7bb(0x240)+_0x132d42['status']};}catch(_0x495eb2){delete process['env'][_0x8a7bb(0x1c6)];const _0x49c7e=_0x495eb2,_0x2d9861=_0x49c7e[_0x8a7bb(0x1fa)]||_0x268c12[_0x8a7bb(0x1cf)](String,_0x495eb2),_0x36d81b=_0x2d9861['includes'](_0x8a7bb(0x1c7))||_0x49c7e['name']===_0x268c12[_0x8a7bb(0x200)]||_0x2d9861['includes']('fetch\x20failed');return{'ok':![],'error':_0x2d9861,'isProtocolError':_0x36d81b};}}async function sweepOrphanLocalProfile(_0x3d36cf,_0x516eeb,_0x484c0f){const _0x395bfb=_0x55ab0e,_0x39fab4={'EHYPk':_0x395bfb(0x237),'LXYMY':function(_0x53f385,_0xa1bcb5){return _0x53f385(_0xa1bcb5);},'qmMep':function(_0x3c7c85,_0x3e183f,_0x2f608d){return _0x3c7c85(_0x3e183f,_0x2f608d);},'GUban':function(_0x176ead,_0x374d7e){return _0x176ead(_0x374d7e);},'FgInU':function(_0xe2850a,_0x10b3cd,_0x14dbba){return _0xe2850a(_0x10b3cd,_0x14dbba);}},_0x35afa5=join(_0x516eeb,_0x39fab4['EHYPk']),_0x1733f3=join(_0x35afa5,_0x3d36cf);existsSync(_0x1733f3)&&(_0x484c0f&&await _0x39fab4['LXYMY'](isPathGitTracked,_0x1733f3)?console['log'](_0x395bfb(0x229)+_0x1733f3+_0x395bfb(0x20b)):(await _0x39fab4['qmMep'](rm,_0x1733f3,{'recursive':!![],'force':!![]}),console[_0x395bfb(0x1d4)]('\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20'+_0x1733f3)));if(_0x39fab4[_0x395bfb(0x212)](existsSync,_0x35afa5)){let _0x29e15a=[];try{_0x29e15a=await readdir(_0x35afa5);}catch{return;}const _0x34b04f=_0x395bfb(0x243)+_0x3d36cf+'-';for(const _0x3557cf of _0x29e15a){if(!_0x3557cf[_0x395bfb(0x1e2)](_0x34b04f))continue;const _0x44dfcf=_0x39fab4['FgInU'](join,_0x35afa5,_0x3557cf);await rm(_0x44dfcf,{'recursive':!![],'force':!![]}),console['log']('\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20'+_0x44dfcf);}}}async function sweepOrphansBestEffort(_0xb02a56){const _0x5225d5=_0x55ab0e,_0x98bfed={'Baott':function(_0x176a5d,_0x168e1e,_0x208964,_0x9ac809){return _0x176a5d(_0x168e1e,_0x208964,_0x9ac809);},'hQbhA':function(_0x1f4fb0){return _0x1f4fb0();},'JOqgd':function(_0x10caf1,_0x2e1a43){return _0x10caf1!==_0x2e1a43;},'Vynqv':function(_0xdcf9f8,_0xc71f60){return _0xdcf9f8 instanceof _0xc71f60;}};try{await _0x98bfed['Baott'](sweepOrphanLocalProfile,_0xb02a56,_0x98bfed['hQbhA'](getRangerHomeDir),![]);const _0x103ae6=getRangerDir();_0x98bfed[_0x5225d5(0x1d0)](_0x103ae6,getRangerHomeDir())&&await sweepOrphanLocalProfile(_0xb02a56,_0x103ae6,!![]);}catch(_0x33fb9b){console['log']('\x20\x20Note:\x20cloud\x20profile\x20created,\x20but\x20failed\x20to\x20sweep\x20orphan\x20local\x20dirs\x20('+(_0x98bfed[_0x5225d5(0x22b)](_0x33fb9b,Error)?_0x33fb9b['message']:String(_0x33fb9b))+').');}}async function markActive(_0x3e491b){const _0x1386c6=_0x55ab0e,_0x3a8670={'feljw':function(_0x24bd81,_0x271d92){return _0x24bd81(_0x271d92);},'Dtdwd':'Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.'};try{await _0x3a8670[_0x1386c6(0x1ff)](writeActiveProfileName,_0x3e491b),console['log'](_0x1386c6(0x201)+_0x3e491b);}catch{console[_0x1386c6(0x1d4)](_0x3a8670['Dtdwd']);}}async function tryAutoRouteCloudProfile(_0x5d0dda,_0x1aaf65,_0x583ce0,_0x98e3ea,_0x28908f){const _0x5cc2ab=_0x55ab0e,_0xe8f233={'pbPgV':function(_0x3a77a4,_0x478c20){return _0x3a77a4===_0x478c20;},'ilWxF':function(_0x4959dd){return _0x4959dd();},'LIbIQ':_0x5cc2ab(0x1f1),'jlFYp':function(_0x3bdd35,_0xcf3b5c){return _0x3bdd35(_0xcf3b5c);},'BreDv':function(_0x3d2032,_0x18430c,_0xdbe4f5,_0x7c204,_0x790df7){return _0x3d2032(_0x18430c,_0xdbe4f5,_0x7c204,_0x790df7);},'iFGxQ':function(_0x3f55dc,_0x2e7d47){return _0x3f55dc+_0x2e7d47;},'aEwBD':'\x20\x20Workaround\x20for\x20now:\x20create\x20a\x20profile\x20without\x20a\x20captured\x20session\x20and\x20supply\x20one\x20later:\x0a','GrwtZ':_0x5cc2ab(0x1e7),'Ihmhr':_0x5cc2ab(0x1bd),'TwmRS':function(_0x3e53c0,_0x1271d9,_0x224bc5){return _0x3e53c0(_0x1271d9,_0x224bc5);},'oCUSM':_0x5cc2ab(0x1c8),'grGaS':_0x5cc2ab(0x21a),'gWfpU':'saveToCloud','wbVzm':function(_0x247c5e,_0x542e61,_0x621932,_0x50f796){return _0x247c5e(_0x542e61,_0x621932,_0x50f796);},'szXoU':function(_0x5047f6,_0x50df91){return _0x5047f6 instanceof _0x50df91;},'ddRcq':function(_0x437f07,_0xd88aa4){return _0x437f07===_0xd88aa4;},'KVtPZ':function(_0x4119eb,_0x1fd47a){return _0x4119eb+_0x1fd47a;},'tCVeW':'profile.add.autoRouted'};let _0x325b2a;try{_0x325b2a=await _0xe8f233['ilWxF'](fetchAuthConfig);}catch(_0x22d83a){return _0x28908f?.['trackPhaseEnd'](_0x5cc2ab(0x1c8),{'reason':_0xe8f233[_0x5cc2ab(0x1fb)],'profileName':_0x5d0dda}),console[_0x5cc2ab(0x21b)](_0x5cc2ab(0x221)+(_0x22d83a instanceof Error?_0x22d83a[_0x5cc2ab(0x1fa)]:_0xe8f233[_0x5cc2ab(0x22e)](String,_0x22d83a))),![];}if(!_0x325b2a||!_0x325b2a[_0x5cc2ab(0x1e8)]||Object['keys'](_0x325b2a['environments'])['length']===0x0){if(_0x98e3ea)return await _0xe8f233['BreDv'](captureEnvLessProfile,_0x5d0dda,_0x1aaf65,_0x583ce0,_0x28908f);return _0x28908f?.['trackPhaseEnd']('profile.add.autoRouteSkipped',{'reason':'no_auth_config','profileName':_0x5d0dda}),console[_0x5cc2ab(0x21b)](_0xe8f233['iFGxQ']('\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'+'\x0a'+_0xe8f233['aEwBD']+('\x20\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20'+_0x5d0dda+'\x20--url\x20'+_0x1aaf65+'\x20--skip-auth\x0a')+'\x0a'+_0xe8f233['GrwtZ'],_0xe8f233[_0x5cc2ab(0x1c2)])),![];}const _0x29b723=_0xe8f233[_0x5cc2ab(0x1ed)](matchAuthEnvironment,_0x1aaf65,_0x325b2a);if(!_0x29b723)return _0x28908f?.['trackPhaseEnd'](_0xe8f233[_0x5cc2ab(0x223)],{'reason':_0xe8f233['grGaS'],'profileName':_0x5d0dda}),console[_0x5cc2ab(0x21b)](_0x5cc2ab(0x1ee)+_0x1aaf65+_0x5cc2ab(0x214)+Object[_0x5cc2ab(0x226)](_0x325b2a[_0x5cc2ab(0x1e8)])[_0x5cc2ab(0x1f3)](',\x20')+'.'),![];const _0x43bcd6=_0x325b2a['environments'][_0x29b723],_0x3b33ee=_0x43bcd6?.['domains']??[];if(_0x98e3ea&&!_0x583ce0[_0x5cc2ab(0x215)]){const {saveToCloud:_0x48156e}=await _0x49d6ea['prompt']([{'type':'confirm','name':_0xe8f233[_0x5cc2ab(0x1e9)],'message':_0x5cc2ab(0x23d)+_0x29b723+'\x27\x20matching\x20'+_0x1aaf65+'\x0a\x20\x20(domains:\x20'+_0x3b33ee[_0x5cc2ab(0x1f3)](',\x20')+')\x0a\x20\x20Save\x20\x27'+_0x5d0dda+'\x27\x20to\x20the\x20cloud?','default':!![]}]);if(!_0x48156e)return _0x28908f?.[_0x5cc2ab(0x1fc)](_0xe8f233[_0x5cc2ab(0x223)],{'reason':_0x5cc2ab(0x20a),'profileName':_0x5d0dda}),console['error']('\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20cloud-managed\x20session.'),![];}const _0x189bfa=_0x3b33ee['some'](_0xce61b3=>{const _0x2f89b3=_0x5cc2ab;try{return _0xe8f233[_0x2f89b3(0x20f)](new URL(_0xce61b3)[_0x2f89b3(0x231)],new URL(_0x1aaf65)['origin']);}catch{return![];}}),_0x39e97c={};!_0x189bfa&&(_0x39e97c['baseUrl']=_0x1aaf65);try{await _0xe8f233[_0x5cc2ab(0x208)](createCloudProfile,_0x5d0dda,_0x29b723,{'settings':_0x39e97c}),warnCloudProfileSharedInOrg();}catch(_0x2cfa42){if(_0xe8f233['szXoU'](_0x2cfa42,ApiError)&&_0xe8f233['ddRcq'](_0x2cfa42['status'],0x199)){console[_0x5cc2ab(0x21b)](_0xe8f233[_0x5cc2ab(0x20d)](_0x5cc2ab(0x218)+_0x5d0dda+_0x5cc2ab(0x222),_0x5cc2ab(0x239)+_0x5d0dda));throw _0x2cfa42;}throw _0x2cfa42;}return console['log'](_0xe8f233['KVtPZ']('✓\x20Profile\x20\x27'+_0x5d0dda+_0x5cc2ab(0x22d),_0x5cc2ab(0x1d6)+_0x5d0dda)),await sweepOrphansBestEffort(_0x5d0dda),_0x28908f?.['trackPhaseEnd'](_0xe8f233[_0x5cc2ab(0x1c9)],{'envKey':_0x29b723,'profileName':_0x5d0dda}),!![];}async function createUnconfiguredCloudProfile(_0x97912c,_0x583e4e){const _0x41bd09=_0x55ab0e,_0x105140={'tXhqB':function(_0x1ae91e,_0x218cc9,_0x14895a,_0x4fab94){return _0x1ae91e(_0x218cc9,_0x14895a,_0x4fab94);},'RHRJx':function(_0x167501,_0x1367ef){return _0x167501 instanceof _0x1367ef;}};try{await _0x105140[_0x41bd09(0x22a)](createCloudProfile,_0x97912c,undefined,{'settings':_0x583e4e}),warnCloudProfileSharedInOrg();}catch(_0x3dfb02){_0x105140['RHRJx'](_0x3dfb02,ApiError)&&_0x3dfb02['status']===0x199&&console[_0x41bd09(0x21b)](_0x41bd09(0x218)+_0x97912c+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a'+('\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x97912c));throw _0x3dfb02;}}async function captureEnvLessProfile(_0x120d41,_0x39d3d1,_0x412161,_0x2dc09b){const _0x3f47ef=_0x55ab0e,_0x3276ed={'vgFQN':function(_0xd02e0d,_0x58e83b){return _0xd02e0d+_0x58e83b;},'QbFOC':function(_0x205509,_0x59c933){return _0x205509===_0x59c933;},'SFtKr':function(_0x76f05b,_0x515c68){return _0x76f05b>_0x515c68;},'dwcQC':function(_0x21801c,_0x14d2f4,_0x2454fc,_0x48da8d){return _0x21801c(_0x14d2f4,_0x2454fc,_0x48da8d);},'UMAer':function(_0x7a0311){return _0x7a0311();},'Lwjer':function(_0x3bf697,_0x4b9e22){return _0x3bf697 instanceof _0x4b9e22;},'jpdhD':function(_0x4a038f,_0x211111){return _0x4a038f>_0x211111;},'gPzkL':function(_0x376345,_0x890728){return _0x376345(_0x890728);}};if(!_0x412161['yes']){const {capture:_0x2429ac}=await _0x49d6ea['prompt']([{'type':'confirm','name':'capture','message':_0x3f47ef(0x1f9),'default':!![]}]);if(!_0x2429ac)return _0x2dc09b?.[_0x3f47ef(0x1fc)]('profile.add.autoRouteSkipped',{'reason':'user_declined','profileName':_0x120d41}),console['error'](_0x3276ed[_0x3f47ef(0x1fe)](_0x3f47ef(0x1e1),_0x3f47ef(0x1ce))),![];}const _0x16aeb3={};if(_0x412161['setupHeader'])for(const _0x2cb230 of _0x412161['setupHeader']){const _0x3b4675=_0x2cb230['indexOf'](':');if(_0x3276ed['QbFOC'](_0x3b4675,-0x1))continue;_0x16aeb3[_0x2cb230['slice'](0x0,_0x3b4675)['trim']()]=_0x2cb230[_0x3f47ef(0x207)](_0x3b4675+0x1)['trim']();}const _0x3dd887={'baseUrl':_0x39d3d1};_0x3276ed['SFtKr'](Object[_0x3f47ef(0x226)](_0x16aeb3)[_0x3f47ef(0x20c)],0x0)&&(_0x3dd887['setupHeaders']=_0x16aeb3);let _0x54c3c5;try{_0x54c3c5=await _0x3276ed[_0x3f47ef(0x232)](createCloudProfile,_0x120d41,undefined,{'settings':_0x3dd887}),_0x3276ed[_0x3f47ef(0x21c)](warnCloudProfileSharedInOrg);}catch(_0x2d3c99){_0x3276ed[_0x3f47ef(0x216)](_0x2d3c99,ApiError)&&_0x3276ed[_0x3f47ef(0x233)](_0x2d3c99['status'],0x199)&&console[_0x3f47ef(0x21b)]('\x0a\x20\x20A\x20profile\x20named\x20\x22'+_0x120d41+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a'+('\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x120d41));throw _0x2d3c99;}return await manualBrowserLogin(_0x54c3c5,{'key':'','domains':[_0x39d3d1],'setupHeaders':_0x3276ed['jpdhD'](Object[_0x3f47ef(0x226)](_0x16aeb3)[_0x3f47ef(0x20c)],0x0)?_0x16aeb3:undefined}),console['log'](_0x3276ed['vgFQN']('\x0a✓\x20Profile\x20\x27'+_0x120d41+_0x3f47ef(0x21d),'\x20\x20Next:\x20ranger\x20go\x20--profile\x20'+_0x120d41)),await _0x3276ed[_0x3f47ef(0x234)](sweepOrphansBestEffort,_0x120d41),_0x2dc09b?.['trackPhaseEnd'](_0x3f47ef(0x1e0),{'envKey':null,'profileName':_0x120d41}),!![];}export async function addEnv(_0x4fc34d,_0xb324b={},_0x16f08b){const _0x1bc9c1=_0x55ab0e,_0x412789={'GMuoM':function(_0x2d717f,_0x2a65ff){return _0x2d717f+_0x2a65ff;},'BQVrO':function(_0x3415bb,_0x4d9980){return _0x3415bb+_0x4d9980;},'YvZvf':_0x1bc9c1(0x242),'hOYGL':_0x1bc9c1(0x1fd),'QveOe':function(_0x1ed1c8,_0x1d02ea){return _0x1ed1c8!==_0x1d02ea;},'nQKXV':function(_0x19c088,_0x110747){return _0x19c088===_0x110747;},'xSLnm':function(_0x2619fd){return _0x2619fd();},'YiyDJ':_0x1bc9c1(0x1f2),'uClxw':'\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','FxOZC':function(_0x4c42d2,_0x3d7286,_0x5dbb97,_0x1db251,_0xde505d){return _0x4c42d2(_0x3d7286,_0x5dbb97,_0x1db251,_0xde505d);},'pWRiC':_0x1bc9c1(0x220),'LtEoe':_0x1bc9c1(0x1cc),'KZHtk':function(_0x48d844,_0x3c1ced){return _0x48d844 instanceof _0x3c1ced;},'FKhrI':function(_0x46333c,_0x3e73d9){return _0x46333c(_0x3e73d9);},'pxYxI':function(_0x4c6ca6,_0x47cffa,_0x581b46){return _0x4c6ca6(_0x47cffa,_0x581b46);},'OHcNs':_0x1bc9c1(0x1df),'zidKQ':_0x1bc9c1(0x227),'CgNJk':'http://localhost:3000','IfQkM':'What\x20would\x20you\x20like\x20to\x20do?','skalK':'Enter\x20a\x20different\x20URL','yCPQV':_0x1bc9c1(0x1e4),'vlVsu':_0x1bc9c1(0x1be),'dtkcm':'continue','iTdbs':function(_0x53a991,_0x5a0025){return _0x53a991===_0x5a0025;},'hWdWF':function(_0x4260a9,_0x3ff13b){return _0x4260a9(_0x3ff13b);},'lsOxN':function(_0x50882d,_0x5a7789){return _0x50882d===_0x5a7789;},'WzeZV':function(_0x569f1c,_0x28b2b4,_0x2e363d,_0x271936,_0x23d0d3,_0x29ccfb){return _0x569f1c(_0x28b2b4,_0x2e363d,_0x271936,_0x23d0d3,_0x29ccfb);},'AQrnA':function(_0xcc1b7d,_0x69726b){return _0xcc1b7d(_0x69726b);}};_0xb324b['ci']&&(console['error'](_0x412789['GMuoM'](_0x412789['BQVrO']('The\x20--ci\x20flag\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x20session\x20state\x0a'+_0x412789['YvZvf']+'\x0a','To\x20set\x20up\x20a\x20profile,\x20run:\x0a')+'\x20\x20ranger\x20profile\x20add\x20<name>\x0a'+'\x0a'+_0x1bc9c1(0x209),_0x412789[_0x1bc9c1(0x235)])),process[_0x1bc9c1(0x236)](0x1));const _0x269c46={};if(_0xb324b[_0x1bc9c1(0x1d5)])for(const _0x3f054a of _0xb324b[_0x1bc9c1(0x1d5)]){const _0x58718a=_0x3f054a[_0x1bc9c1(0x206)](':');if(_0x58718a===-0x1)throw new Error('Invalid\x20--setup-header\x20format:\x20\x22'+_0x3f054a+'\x22.\x20Expected\x20\x22Name:\x20Value\x22.');const _0x3782fa=_0x3f054a[_0x1bc9c1(0x207)](0x0,_0x58718a)['trim'](),_0x3fd808=_0x3f054a['slice'](_0x412789['GMuoM'](_0x58718a,0x1))[_0x1bc9c1(0x1c3)]();_0x269c46[_0x3782fa]=_0x3fd808;}if(_0x412789[_0x1bc9c1(0x1f6)](_0xb324b[_0x1bc9c1(0x220)],undefined)&&_0x412789[_0x1bc9c1(0x1f0)](_0xb324b['cdpEndpoint'][_0x1bc9c1(0x1c3)](),''))throw new Error('--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222');if(_0xb324b['cdpEndpoint']&&_0xb324b['url'])throw new Error(_0x1bc9c1(0x23a));const _0x21949a=Boolean(_0xb324b['cdpEndpoint']),_0x3aaab8=_0x412789[_0x1bc9c1(0x1e6)](isInteractive);if(!_0x3aaab8&&!_0xb324b[_0x1bc9c1(0x225)]&&!_0x21949a&&!_0xb324b[_0x1bc9c1(0x203)])throw new Error(_0x412789[_0x1bc9c1(0x1f4)]);if(_0x21949a){const _0x16fdb=_0xb324b[_0x1bc9c1(0x220)];console['log'](_0x412789[_0x1bc9c1(0x202)]),console[_0x1bc9c1(0x1d4)]('\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20'+_0x16fdb);const _0x3d1dcd={'cdpEndpoint':_0x16fdb,'isElectron':!![]};Object['keys'](_0x269c46)['length']>0x0&&(_0x3d1dcd['setupHeaders']=_0x269c46);await createUnconfiguredCloudProfile(_0x4fc34d,_0x3d1dcd);try{_0x412789['FxOZC'](setProfileOverride,process[_0x1bc9c1(0x1d3)](),_0x4fc34d,_0x412789['pWRiC'],_0x16fdb),setProfileOverride(process[_0x1bc9c1(0x1d3)](),_0x4fc34d,_0x412789['LtEoe'],!![]);}catch(_0x2a7045){console['error'](_0x1bc9c1(0x1ec)+(_0x412789[_0x1bc9c1(0x1f7)](_0x2a7045,Error)?_0x2a7045['message']:String(_0x2a7045)));}console['log']('✓\x20Cloud\x20profile\x20\x27'+_0x4fc34d+_0x1bc9c1(0x1c1)),await _0x412789['FKhrI'](sweepOrphansBestEffort,_0x4fc34d),await _0x412789['FKhrI'](markActive,_0x4fc34d);return;}if(_0xb324b['skipAuth']){const _0x4780dc={};_0xb324b[_0x1bc9c1(0x225)]&&(_0x4780dc[_0x1bc9c1(0x1df)]=_0xb324b[_0x1bc9c1(0x225)]);Object[_0x1bc9c1(0x226)](_0x269c46)['length']>0x0&&(_0x4780dc['setupHeaders']=_0x269c46);await _0x412789[_0x1bc9c1(0x1d1)](createUnconfiguredCloudProfile,_0x4fc34d,_0x4780dc),console[_0x1bc9c1(0x1d4)](_0x1bc9c1(0x241)+_0x4fc34d+'\x27\x20created\x20(no\x20session).\x0a'+(_0x1bc9c1(0x1e3)+_0x4fc34d+_0x1bc9c1(0x23f))),await sweepOrphansBestEffort(_0x4fc34d),await markActive(_0x4fc34d);return;}if(_0xb324b['url']){const _0x1c598e=_0xb324b[_0x1bc9c1(0x225)],_0x58694a=await _0x412789[_0x1bc9c1(0x1e5)](checkUrlReachability,_0x1c598e);if(!_0x58694a['ok']&&!_0xb324b[_0x1bc9c1(0x1ca)])throw new Error(_0x1bc9c1(0x213)+_0x1c598e+':\x20'+_0x58694a[_0x1bc9c1(0x21b)]+_0x1bc9c1(0x1c4));!_0x58694a['ok']&&_0xb324b[_0x1bc9c1(0x1ca)]&&console[_0x1bc9c1(0x1d4)](_0x1bc9c1(0x21f)+_0x1c598e+':\x20'+_0x58694a['error']+'\x20(continuing\x20with\x20--force)');}else{console[_0x1bc9c1(0x1d4)]('\x0a🌐\x20Profile\x20Setup\x0a'),console[_0x1bc9c1(0x1d4)](_0x1bc9c1(0x1bf)),console[_0x1bc9c1(0x1d4)]('\x20\x20Ranger\x20will\x20use\x20it\x20to\x20look\x20up\x20the\x20right\x20cloud\x20auth\x20env\x20to\x20attach.\x0a');let _0x3e66cb='',_0x53e804=![];while(!![]){const _0x396808=await _0x49d6ea[_0x1bc9c1(0x228)]([{'type':'input','name':_0x412789[_0x1bc9c1(0x210)],'message':_0x53e804?_0x412789[_0x1bc9c1(0x22c)]:_0x1bc9c1(0x1eb),'default':_0x3e66cb||_0x412789['CgNJk']}]);_0x3e66cb=_0x396808['baseUrl'];const _0x508c16=await checkUrlReachability(_0x3e66cb);if(_0x508c16['ok'])break;const _0x56c456=/^[a-zA-Z][\w+.-]*:\/\//[_0x1bc9c1(0x1d8)](_0x3e66cb),_0x3d8f1f=_0x508c16[_0x1bc9c1(0x1de)]&&!_0x56c456,_0x2f6aa3=_0x3d8f1f?'http://'+_0x3e66cb:null;_0x53e804=!![],console['log']('\x0a\x20\x20Could\x20not\x20reach\x20'+_0x3e66cb+':\x20'+_0x508c16['error']);_0x2f6aa3&&console[_0x1bc9c1(0x1d4)]('\x20\x20Did\x20you\x20mean\x20'+_0x2f6aa3+'?');const {action:_0xa97702}=await _0x49d6ea[_0x1bc9c1(0x228)]([{'type':'list','name':_0x1bc9c1(0x23b),'message':_0x412789['IfQkM'],'choices':[..._0x2f6aa3?[{'name':'Use\x20'+_0x2f6aa3,'value':_0x1bc9c1(0x204)}]:[],{'name':_0x412789['skalK'],'value':_0x412789[_0x1bc9c1(0x20e)]},{'name':_0x412789['vlVsu'],'value':_0x412789['dtkcm']}]}]);if(_0x412789[_0x1bc9c1(0x1d2)](_0xa97702,_0x1bc9c1(0x204))&&_0x2f6aa3){_0x3e66cb=_0x2f6aa3;const _0x5932c6=await _0x412789[_0x1bc9c1(0x1dc)](checkUrlReachability,_0x3e66cb);if(_0x5932c6['ok'])break;console[_0x1bc9c1(0x1d4)](_0x1bc9c1(0x1cb)+_0x3e66cb+':\x20'+_0x5932c6['error']);}else{if(_0x412789[_0x1bc9c1(0x1ef)](_0xa97702,_0x412789[_0x1bc9c1(0x1da)]))break;}}_0xb324b={..._0xb324b,'url':_0x3e66cb};}let _0x2c9ef6=![];try{_0x2c9ef6=await _0x412789['WzeZV'](tryAutoRouteCloudProfile,_0x4fc34d,_0xb324b['url'],_0xb324b,_0x3aaab8,_0x16f08b);}catch(_0x4afc53){console['error'](_0x1bc9c1(0x23c)+_0x4fc34d+'\x22:\x20'+(_0x4afc53 instanceof Error?_0x4afc53['message']:String(_0x4afc53))),process['exit'](0x1);}!_0x2c9ef6&&process['exit'](0x1),await _0x412789[_0x1bc9c1(0x1cd)](markActive,_0x4fc34d);}
@@ -1 +1 @@
1
- function _0x58b2(){var _0x559bf9=['1139244YbBmGn','299632KSisti','exit','vEZXR','8816928DoDAip','vHFmG','2590245ozzXFP','245ibvsvw','ranger\x20profile\x20encrypt-auth\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x0a','758758fYfrpg','To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','1210464PpErMm','31016nCxiMu'];_0x58b2=function(){return _0x559bf9;};return _0x58b2();}function _0xfa5c(_0x295d4a,_0x1e0a5c){_0x295d4a=_0x295d4a-0x121;var _0x58b2c7=_0x58b2();var _0xfa5c67=_0x58b2c7[_0x295d4a];return _0xfa5c67;}(function(_0xf85caa,_0x8703c2){var _0x3284eb=_0xfa5c,_0x1e9e66=_0xf85caa();while(!![]){try{var _0x3b59c9=parseInt(_0x3284eb(0x12a))/0x1+parseInt(_0x3284eb(0x122))/0x2+parseInt(_0x3284eb(0x121))/0x3+parseInt(_0x3284eb(0x12d))/0x4*(parseInt(_0x3284eb(0x128))/0x5)+parseInt(_0x3284eb(0x12c))/0x6+-parseInt(_0x3284eb(0x127))/0x7+-parseInt(_0x3284eb(0x125))/0x8;if(_0x3b59c9===_0x8703c2)break;else _0x1e9e66['push'](_0x1e9e66['shift']());}catch(_0x1f730e){_0x1e9e66['push'](_0x1e9e66['shift']());}}}(_0x58b2,0x61225));export async function authEncrypt(_0xa7aba0){var _0xa646a=_0xfa5c,_0x4db1cd={'QuFEH':function(_0x126984,_0x3c9535){return _0x126984+_0x3c9535;},'NGtLG':function(_0x25df3b,_0x32d5a7){return _0x25df3b+_0x32d5a7;},'vHFmG':'session\x20state\x20for\x20you,\x20so\x20encrypted\x20on-disk\x20auth\x20is\x20unnecessary.\x0a','vEZXR':_0xa646a(0x12b)};console['error'](_0x4db1cd['QuFEH'](_0x4db1cd['QuFEH'](_0x4db1cd['NGtLG'](_0xa646a(0x129),_0x4db1cd[_0xa646a(0x126)])+'\x0a'+_0x4db1cd[_0xa646a(0x124)],'\x20\x20ranger\x20profile\x20add\x20<name>\x0a'),'\x0a')+'For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a'+'\x20\x20https://docs.ranger.net/main/concepts/profiles'),process[_0xa646a(0x123)](0x1);}
1
+ (function(_0x4e1d3a,_0x153d0b){var _0x3c09c1=_0x13f1,_0x1e3df2=_0x4e1d3a();while(!![]){try{var _0x4100a1=-parseInt(_0x3c09c1(0x174))/0x1*(-parseInt(_0x3c09c1(0x173))/0x2)+-parseInt(_0x3c09c1(0x175))/0x3+parseInt(_0x3c09c1(0x17d))/0x4+parseInt(_0x3c09c1(0x17f))/0x5+parseInt(_0x3c09c1(0x17a))/0x6*(-parseInt(_0x3c09c1(0x177))/0x7)+-parseInt(_0x3c09c1(0x178))/0x8+parseInt(_0x3c09c1(0x176))/0x9;if(_0x4100a1===_0x153d0b)break;else _0x1e3df2['push'](_0x1e3df2['shift']());}catch(_0x292d57){_0x1e3df2['push'](_0x1e3df2['shift']());}}}(_0x5674,0x806be));function _0x13f1(_0x5aa614,_0x472204){_0x5aa614=_0x5aa614-0x172;var _0x567426=_0x5674();var _0x13f116=_0x567426[_0x5aa614];return _0x13f116;}function _0x5674(){var _0xf34719=['1578180OzJBJo','AYgEa','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','1265424ddffrS','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','1557315EmmgUs','ranger\x20profile\x20encrypt-auth\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x0a','2aoAnDr','323875zBENmB','814410HJZcKi','7232382stWtYA','21HzuXyV','1349744KCswYg','UlVye'];_0x5674=function(){return _0xf34719;};return _0x5674();}export async function authEncrypt(_0x4e2c68){var _0x5b80b3=_0x13f1,_0x17870b={'UlVye':function(_0x6cb53c,_0x5187ce){return _0x6cb53c+_0x5187ce;},'kqhDU':_0x5b80b3(0x172),'ACRCa':'To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','AYgEa':_0x5b80b3(0x17e)};console['error'](_0x17870b[_0x5b80b3(0x179)](_0x17870b[_0x5b80b3(0x179)](_0x17870b['kqhDU'],'session\x20state\x20for\x20you,\x20so\x20encrypted\x20on-disk\x20auth\x20is\x20unnecessary.\x0a'),'\x0a')+_0x17870b['ACRCa']+_0x17870b[_0x5b80b3(0x17b)]+'\x0a'+_0x5b80b3(0x17c)+'\x20\x20https://docs.ranger.net/main/concepts/profiles'),process['exit'](0x1);}
@@ -1 +1 @@
1
- const _0x1f35e0=_0x2be5;(function(_0x337051,_0x411f23){const _0x535a53=_0x2be5,_0x56275b=_0x337051();while(!![]){try{const _0x5032ce=-parseInt(_0x535a53(0xec))/0x1*(parseInt(_0x535a53(0xf6))/0x2)+-parseInt(_0x535a53(0x11a))/0x3*(parseInt(_0x535a53(0x103))/0x4)+-parseInt(_0x535a53(0xee))/0x5+-parseInt(_0x535a53(0x10a))/0x6+-parseInt(_0x535a53(0xeb))/0x7+-parseInt(_0x535a53(0xed))/0x8*(parseInt(_0x535a53(0xf9))/0x9)+parseInt(_0x535a53(0x107))/0xa;if(_0x5032ce===_0x411f23)break;else _0x56275b['push'](_0x56275b['shift']());}catch(_0x2349e4){_0x56275b['push'](_0x56275b['shift']());}}}(_0x7c38,0xd60dd));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 _0x2be5(_0x3dc62a,_0x428cf4){_0x3dc62a=_0x3dc62a-0xe5;const _0x7c38a5=_0x7c38();let _0x2be572=_0x7c38a5[_0x3dc62a];return _0x2be572;}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=[_0x1f35e0(0x101),_0x1f35e0(0x10e),'bug-bash',_0x1f35e0(0x11c)],opencodePluginName=_0x1f35e0(0x113);function _0x7c38(){const _0x3fceca=['e2e-test-recommender','MGHGz','eRLzv','✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','RewJV','QEGbY','beePo','PyyCz','log','KOrBE','uninstall','6406120tqvRJa','173lOvHhG','32ywSjBL','5190105AvCiZy','win32','WXCRk','hOebZ','✓\x20Removed\x20.ranger/\x20directory','ignore','claude','ylUqW','13694JvudVM','hjfGX','xCWnn','454437WlGxAl','length','plugin','HENeL','NFQDJ','IFNvm','parse','FVgmb','ranger','ldLHu','4fxhWiL','marketplace','project','platform','68631000JTyfYT','yFyGW','stringify','9435252rpmEAH','remove','iVVLW','utf-8','feature-tracker','opencode.json','✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','--scope','error','@ranger-testing/opencode-plugin','replace','IhNpB','\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','✓\x20Removed\x20stored\x20credentials','dcIJV','WVbXP','3222327jcwxTi','LwbCo'];_0x7c38=function(){return _0x3fceca;};return _0x7c38();}function parseJsonc(_0x441750){const _0x4a34e4=_0x1f35e0,_0x518c88=_0x441750[_0x4a34e4(0x114)](/\/\*[\s\S]*?\*\//g,''),_0x3fdab0=_0x518c88[_0x4a34e4(0x114)](/^\s*\/\/.*$/gm,''),_0x27873b=_0x3fdab0[_0x4a34e4(0x114)](/,\s*([}\]])/g,'$1');return JSON[_0x4a34e4(0xff)](_0x27873b);}async function removeOpencodePluginConfig(_0x5cb7aa){const _0x30f157=_0x1f35e0,_0x59bd50={'beePo':function(_0x1d2de4,_0x742b97){return _0x1d2de4(_0x742b97);},'rrwQV':function(_0x23bc7c,_0x26649b,_0x44035d){return _0x23bc7c(_0x26649b,_0x44035d);},'MGHGz':_0x30f157(0x10d),'LwbCo':function(_0x36fc45,_0x1269dc){return _0x36fc45===_0x1269dc;},'NFQDJ':function(_0x1a0d5c,_0x78eaf3,_0x417899){return _0x1a0d5c(_0x78eaf3,_0x417899);},'iVVLW':function(_0x4db6f0,_0x549b42){return _0x4db6f0+_0x549b42;}};if(!_0x59bd50[_0x30f157(0xe6)](existsSync,_0x5cb7aa))return![];let _0x233424;try{const _0x54cac7=await _0x59bd50['rrwQV'](readFile,_0x5cb7aa,_0x59bd50[_0x30f157(0x11d)]);_0x233424=parseJsonc(_0x54cac7);}catch{return![];}const _0x37fb7c=Array['isArray'](_0x233424[_0x30f157(0xfb)])?_0x233424['plugin']:[];if(_0x59bd50['LwbCo'](_0x37fb7c[_0x30f157(0xfa)],0x0))return![];const _0x46a15f=_0x37fb7c['filter'](_0x2a560d=>{if(typeof _0x2a560d!=='string')return!![];return _0x2a560d!==opencodePluginName;});if(_0x59bd50[_0x30f157(0x11b)](_0x46a15f['length'],_0x37fb7c[_0x30f157(0xfa)]))return![];return _0x46a15f[_0x30f157(0xfa)]===0x0?delete _0x233424['plugin']:_0x233424[_0x30f157(0xfb)]=_0x46a15f,await _0x59bd50[_0x30f157(0xfd)](writeFile,_0x5cb7aa,_0x59bd50[_0x30f157(0x10c)](JSON[_0x30f157(0x109)](_0x233424,null,0x2),'\x0a')),!![];}async function uninstallClaudePlugin(_0x481db7){const _0x657b5f=_0x1f35e0,_0x1e917c={'RewJV':function(_0x22f54f,_0xcbf613){return _0x22f54f===_0xcbf613;},'KOrBE':'plugin','IhNpB':_0x657b5f(0xea),'gQwzv':'claude','MNPpu':_0x657b5f(0xef)};return new Promise(_0x4ab3b0=>{const _0x4afb17=_0x657b5f,_0x3a0e6a=[_0x1e917c[_0x4afb17(0xe9)],_0x1e917c[_0x4afb17(0x115)],'ranger@trailhead'];_0x481db7&&_0x3a0e6a['push'](_0x4afb17(0x111),_0x481db7);const _0x4c5d8e=spawn(_0x1e917c['gQwzv'],_0x3a0e6a,{'stdio':['ignore',_0x4afb17(0xf3),'ignore'],'cwd':_0x481db7?getProjectRoot():undefined,'shell':process[_0x4afb17(0x106)]===_0x1e917c['MNPpu']});_0x4c5d8e['on']('close',_0x13c864=>{const _0x2ac58d=_0x4afb17;_0x4ab3b0(_0x1e917c[_0x2ac58d(0x120)](_0x13c864,0x0));}),_0x4c5d8e['on']('error',()=>{_0x4ab3b0(![]);});});}async function removeMarketplace(){const _0x22d4f4=_0x1f35e0,_0x5ab1aa={'WVbXP':function(_0x365218,_0x4aa292){return _0x365218(_0x4aa292);},'cAPka':function(_0x182efa,_0x2717d7,_0x4e1c7c,_0xdca82){return _0x182efa(_0x2717d7,_0x4e1c7c,_0xdca82);},'gpHtI':_0x22d4f4(0xf4),'IFNvm':'plugin','hbblG':'trailhead','Wamxm':'ignore','QEGbY':_0x22d4f4(0xef),'CeVEw':'close'};return new Promise(_0x5ebb54=>{const _0x2120e0=_0x22d4f4,_0x154d70={'dcIJV':function(_0x166322,_0x387d2e){return _0x166322===_0x387d2e;}},_0x3441e0=_0x5ab1aa['cAPka'](spawn,_0x5ab1aa['gpHtI'],[_0x5ab1aa[_0x2120e0(0xfe)],_0x2120e0(0x104),_0x2120e0(0x10b),_0x5ab1aa['hbblG']],{'stdio':['ignore',_0x2120e0(0xf3),_0x5ab1aa['Wamxm']],'shell':process[_0x2120e0(0x106)]===_0x5ab1aa[_0x2120e0(0xe5)]});_0x3441e0['on'](_0x5ab1aa['CeVEw'],_0x5847d8=>{const _0x5603f8=_0x2120e0;_0x5ebb54(_0x154d70[_0x5603f8(0x118)](_0x5847d8,0x0));}),_0x3441e0['on'](_0x2120e0(0x112),()=>{const _0x1d436d=_0x2120e0;_0x5ab1aa[_0x1d436d(0x119)](_0x5ebb54,![]);});});}export async function clean(){const _0x3b0379=_0x1f35e0,_0x47de7d={'eRLzv':_0x3b0379(0x116),'yFyGW':function(_0x15f63a){return _0x15f63a();},'fwDaL':_0x3b0379(0x117),'PyyCz':function(_0x99aacc,_0x2fee1b){return _0x99aacc(_0x2fee1b);},'ylUqW':function(_0x3c262e,_0x2c77e5,_0x58dc42){return _0x3c262e(_0x2c77e5,_0x58dc42);},'hOebZ':function(_0x28d3ff){return _0x28d3ff();},'FVgmb':function(_0x159f61,_0x266cff){return _0x159f61(_0x266cff);},'WXCRk':'user','dQyuf':function(_0x1e5751,_0x29f6aa,_0x3b9dd6){return _0x1e5751(_0x29f6aa,_0x3b9dd6);},'PUhFT':function(_0x2e55b4,_0xaf615e,_0x32aade){return _0x2e55b4(_0xaf615e,_0x32aade);},'HENeL':'✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','xCWnn':function(_0x3040d8,_0x4e25c8){return _0x3040d8(_0x4e25c8);},'ldLHu':_0x3b0379(0x10f),'hjfGX':_0x3b0379(0x105)};console['log'](_0x47de7d[_0x3b0379(0x11e)]);let _0x343c0e=![];try{await _0x47de7d[_0x3b0379(0x108)](deleteAllCredentials),console['log'](_0x47de7d['fwDaL']),_0x343c0e=!![];}catch{}const _0x1e9077=getCacheFile();existsSync(_0x1e9077)&&(await rm(_0x1e9077),_0x343c0e=!![]);const _0x14c939=_0x47de7d[_0x3b0379(0x108)](getRangerDir);_0x47de7d['PyyCz'](existsSync,_0x14c939)&&(await _0x47de7d[_0x3b0379(0xf5)](rm,_0x14c939,{'recursive':!![]}),console[_0x3b0379(0xe8)](_0x3b0379(0xf2)),_0x343c0e=!![]);const _0x2cc501=getProjectSkillsDir();for(const _0x2e7dfb of skillsToRemove){const _0x9178f5=_0x47de7d['ylUqW'](join,_0x2cc501,_0x2e7dfb);existsSync(_0x9178f5)&&(await _0x47de7d['ylUqW'](rm,_0x9178f5,{'recursive':!![]}),console['log']('✓\x20Removed\x20project\x20skill:\x20'+_0x2e7dfb),_0x343c0e=!![]);}const _0x386c48=_0x47de7d['hOebZ'](getUserSkillsDir);for(const _0x5a8bfa of skillsToRemove){const _0x364e8e=join(_0x386c48,_0x5a8bfa);existsSync(_0x364e8e)&&(await _0x47de7d[_0x3b0379(0xf5)](rm,_0x364e8e,{'recursive':!![]}),console['log']('✓\x20Removed\x20user\x20skill:\x20'+_0x5a8bfa),_0x343c0e=!![]);}const _0x28e308=_0x47de7d['FVgmb'](getOpencodeSkillsDir,'project');for(const _0x28c151 of skillsToRemove){const _0x44a25b=_0x47de7d['ylUqW'](join,_0x28e308,_0x28c151);_0x47de7d[_0x3b0379(0x100)](existsSync,_0x44a25b)&&(await rm(_0x44a25b,{'recursive':!![]}),console['log']('✓\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x28c151),_0x343c0e=!![]);}const _0x2c467=getOpencodeSkillsDir(_0x47de7d[_0x3b0379(0xf0)]);for(const _0x9c827c of skillsToRemove){const _0x2a40ce=_0x47de7d['dQyuf'](join,_0x2c467,_0x9c827c);_0x47de7d[_0x3b0379(0xe7)](existsSync,_0x2a40ce)&&(await _0x47de7d['PUhFT'](rm,_0x2a40ce,{'recursive':!![]}),console['log']('✓\x20Removed\x20OpenCode\x20user\x20skill:\x20'+_0x9c827c),_0x343c0e=!![]);}const _0x3d8e03=join(_0x47de7d['FVgmb'](getOpencodeConfigDir,_0x3b0379(0x105)),_0x3b0379(0x10f));await removeOpencodePluginConfig(_0x3d8e03)&&(console[_0x3b0379(0xe8)](_0x47de7d[_0x3b0379(0xfc)]),_0x343c0e=!![]);const _0x1b34f3=join(_0x47de7d[_0x3b0379(0xf8)](getOpencodeConfigDir,_0x47de7d['WXCRk']),_0x47de7d[_0x3b0379(0x102)]);await _0x47de7d[_0x3b0379(0xe7)](removeOpencodePluginConfig,_0x1b34f3)&&(console[_0x3b0379(0xe8)]('✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)'),_0x343c0e=!![]);const _0x132326=await uninstallClaudePlugin();_0x132326&&(console[_0x3b0379(0xe8)](_0x3b0379(0x110)),_0x343c0e=!![]);const _0x1ae5e6=await _0x47de7d['FVgmb'](uninstallClaudePlugin,_0x47de7d[_0x3b0379(0xf7)]);_0x1ae5e6&&(console[_0x3b0379(0xe8)](_0x3b0379(0x11f)),_0x343c0e=!![]);const _0x4760be=await _0x47de7d[_0x3b0379(0xf1)](removeMarketplace);_0x4760be&&(console['log']('✓\x20Removed\x20trailhead\x20marketplace'),_0x343c0e=!![]),_0x343c0e?console[_0x3b0379(0xe8)]('\x0a✅\x20Cleanup\x20complete!\x0a'):console[_0x3b0379(0xe8)]('Nothing\x20to\x20clean\x20up.\x0a');}
1
+ const _0x32b496=_0x3b8b;(function(_0x35804a,_0x208ce3){const _0xb737d1=_0x3b8b,_0x58bfea=_0x35804a();while(!![]){try{const _0x13e4a0=parseInt(_0xb737d1(0x174))/0x1+-parseInt(_0xb737d1(0x161))/0x2+parseInt(_0xb737d1(0x179))/0x3*(parseInt(_0xb737d1(0x17f))/0x4)+-parseInt(_0xb737d1(0x153))/0x5+parseInt(_0xb737d1(0x14f))/0x6*(parseInt(_0xb737d1(0x15e))/0x7)+-parseInt(_0xb737d1(0x164))/0x8*(parseInt(_0xb737d1(0x163))/0x9)+parseInt(_0xb737d1(0x14e))/0xa*(-parseInt(_0xb737d1(0x14b))/0xb);if(_0x13e4a0===_0x208ce3)break;else _0x58bfea['push'](_0x58bfea['shift']());}catch(_0x5be909){_0x58bfea['push'](_0x58bfea['shift']());}}}(_0x53af,0x7fb41));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';import{deleteAllCredentials}from'./utils/keychain.js';import{getProjectRoot,getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=[_0x32b496(0x17b),_0x32b496(0x172),'bug-bash','e2e-test-recommender'],opencodePluginName=_0x32b496(0x170);function parseJsonc(_0x1069cd){const _0x5d5c5d=_0x32b496,_0x1feb44=_0x1069cd['replace'](/\/\*[\s\S]*?\*\//g,''),_0x390dcc=_0x1feb44[_0x5d5c5d(0x16a)](/^\s*\/\/.*$/gm,''),_0x7df781=_0x390dcc[_0x5d5c5d(0x16a)](/,\s*([}\]])/g,'$1');return JSON['parse'](_0x7df781);}function _0x53af(){const _0x4cb7c1=['xUEAK','AsqJB','@ranger-testing/opencode-plugin','✓\x20Removed\x20user\x20skill:\x20','feature-tracker','marketplace','698562rWTnxl','✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','trailhead','VPlWU','eYwMj','3VJJhfD','stringify','ranger','project','EdebW','VKHbH','2916652qJKWoa','user','SOAhM','eJXxc','uneOx','ARKxx','OLtiq','28270aQAhqN','length','✓\x20Removed\x20OpenCode\x20project\x20skill:\x20','1290LlrtnL','2184SWxolC','\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','opencode.json','969695NVbbEb','jwDCE','remove','CTBdM','LTZKN','✓\x20Removed\x20project\x20skill:\x20','BFkuQ','LWfIL','plugin','UmAmG','uninstall','9394XKIukq','close','filter','1168444cIVlGD','claude','27RkiEBc','755864ffgInC','✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','log','GnemZ','utf-8','ignore','replace','nProg','jjrOI','isArray'];_0x53af=function(){return _0x4cb7c1;};return _0x53af();}async function removeOpencodePluginConfig(_0x1e7d4c){const _0x13ca74=_0x32b496,_0x49d886={'LTZKN':'string','LWfIL':function(_0x2acfc8,_0x595971){return _0x2acfc8!==_0x595971;},'jwDCE':function(_0x14dc13,_0x15f7a2,_0x460f95){return _0x14dc13(_0x15f7a2,_0x460f95);},'jGwIO':_0x13ca74(0x168),'xUEAK':function(_0x215757,_0x8c40e1){return _0x215757===_0x8c40e1;},'zgxga':function(_0x210f01,_0x13c9a4){return _0x210f01===_0x13c9a4;},'VPlWU':function(_0x41d2cb,_0x597e6c){return _0x41d2cb===_0x597e6c;},'wOTMw':function(_0x530130,_0x1c2529,_0x24e104){return _0x530130(_0x1c2529,_0x24e104);}};if(!existsSync(_0x1e7d4c))return![];let _0x155534;try{const _0x1e0e23=await _0x49d886[_0x13ca74(0x154)](readFile,_0x1e7d4c,_0x49d886['jGwIO']);_0x155534=parseJsonc(_0x1e0e23);}catch{return![];}const _0x49a632=Array[_0x13ca74(0x16d)](_0x155534[_0x13ca74(0x15b)])?_0x155534[_0x13ca74(0x15b)]:[];if(_0x49d886[_0x13ca74(0x16e)](_0x49a632['length'],0x0))return![];const _0x5b5127=_0x49a632[_0x13ca74(0x160)](_0x41567c=>{const _0x27c22e=_0x13ca74;if(typeof _0x41567c!==_0x49d886[_0x27c22e(0x157)])return!![];return _0x49d886[_0x27c22e(0x15a)](_0x41567c,opencodePluginName);});if(_0x49d886['zgxga'](_0x5b5127[_0x13ca74(0x14c)],_0x49a632[_0x13ca74(0x14c)]))return![];return _0x49d886[_0x13ca74(0x177)](_0x5b5127[_0x13ca74(0x14c)],0x0)?delete _0x155534[_0x13ca74(0x15b)]:_0x155534['plugin']=_0x5b5127,await _0x49d886['wOTMw'](writeFile,_0x1e7d4c,JSON[_0x13ca74(0x17a)](_0x155534,null,0x2)+'\x0a'),!![];}async function uninstallClaudePlugin(_0x14e0c6){const _0x1b8de0=_0x32b496,_0x5e12b0={'eYwMj':function(_0x5701c2,_0x52c951){return _0x5701c2(_0x52c951);},'VtGaj':_0x1b8de0(0x15d),'EdebW':'claude','VKHbH':'ignore','NAgWB':function(_0x54c54b,_0x47bf31){return _0x54c54b===_0x47bf31;},'OZVrc':'win32','kVAEp':_0x1b8de0(0x15f),'zwSgS':'error'};return new Promise(_0x2655e5=>{const _0x43e653=_0x1b8de0,_0x1fdef2=[_0x43e653(0x15b),_0x5e12b0['VtGaj'],'ranger@trailhead'];_0x14e0c6&&_0x1fdef2['push']('--scope',_0x14e0c6);const _0x22b91d=spawn(_0x5e12b0[_0x43e653(0x17d)],_0x1fdef2,{'stdio':[_0x5e12b0[_0x43e653(0x17e)],_0x5e12b0[_0x43e653(0x17e)],_0x5e12b0['VKHbH']],'cwd':_0x14e0c6?getProjectRoot():undefined,'shell':_0x5e12b0['NAgWB'](process['platform'],_0x5e12b0['OZVrc'])});_0x22b91d['on'](_0x5e12b0['kVAEp'],_0x599b14=>{const _0x4bc3a9=_0x43e653;_0x5e12b0[_0x4bc3a9(0x178)](_0x2655e5,_0x599b14===0x0);}),_0x22b91d['on'](_0x5e12b0['zwSgS'],()=>{_0x2655e5(![]);});});}function _0x3b8b(_0x5d1448,_0x59eaee){_0x5d1448=_0x5d1448-0x149;const _0x53afde=_0x53af();let _0x3b8b5b=_0x53afde[_0x5d1448];return _0x3b8b5b;}async function removeMarketplace(){const _0x58d4a2=_0x32b496,_0x4d5997={'GnemZ':'plugin','nProg':_0x58d4a2(0x169),'BFkuQ':'win32','ahXzJ':'error'};return new Promise(_0x22f27b=>{const _0x5b30cb=_0x58d4a2,_0xd7255f={'AsqJB':function(_0x1b47e5,_0x8dab11){return _0x1b47e5(_0x8dab11);}},_0x4ee788=spawn(_0x5b30cb(0x162),[_0x4d5997[_0x5b30cb(0x167)],_0x5b30cb(0x173),_0x5b30cb(0x155),_0x5b30cb(0x176)],{'stdio':[_0x5b30cb(0x169),_0x5b30cb(0x169),_0x4d5997[_0x5b30cb(0x16b)]],'shell':process['platform']===_0x4d5997[_0x5b30cb(0x159)]});_0x4ee788['on'](_0x5b30cb(0x15f),_0x310f55=>{_0x22f27b(_0x310f55===0x0);}),_0x4ee788['on'](_0x4d5997['ahXzJ'],()=>{const _0x246449=_0x5b30cb;_0xd7255f[_0x246449(0x16f)](_0x22f27b,![]);});});}export async function clean(){const _0x4a5b41=_0x32b496,_0x1e664b={'wZvee':function(_0x538af3){return _0x538af3();},'PLMZT':function(_0x3ebf8e){return _0x3ebf8e();},'SOAhM':function(_0xa05524,_0xd49850){return _0xa05524(_0xd49850);},'rSeOT':function(_0x4fc932){return _0x4fc932();},'eJXxc':function(_0x41ab64,_0x337bd4){return _0x41ab64(_0x337bd4);},'ARKxx':function(_0x35345d,_0x67fab3,_0x56d45c){return _0x35345d(_0x67fab3,_0x56d45c);},'OLtiq':_0x4a5b41(0x17c),'mMPxQ':function(_0xff7a4b,_0x3d8e47,_0x5700ff){return _0xff7a4b(_0x3d8e47,_0x5700ff);},'CTBdM':function(_0x40f987,_0x589f5f,_0x2b2673){return _0x40f987(_0x589f5f,_0x2b2673);},'gZZrR':function(_0x40adf3,_0x2b172e){return _0x40adf3(_0x2b172e);},'UhJXs':function(_0x1c8327,_0x3188b2){return _0x1c8327(_0x3188b2);},'XbeTj':function(_0x5056ba,_0x50672e,_0x30b10e){return _0x5056ba(_0x50672e,_0x30b10e);},'uneOx':function(_0x4ba897,_0x21bf4b){return _0x4ba897(_0x21bf4b);},'jjrOI':_0x4a5b41(0x180),'qFCUt':_0x4a5b41(0x152),'UmAmG':_0x4a5b41(0x165),'sYEed':'✓\x20Removed\x20trailhead\x20marketplace','ouFRG':'\x0a✅\x20Cleanup\x20complete!\x0a'};console['log'](_0x4a5b41(0x150));let _0x343416=![];try{await _0x1e664b['wZvee'](deleteAllCredentials),console['log']('✓\x20Removed\x20stored\x20credentials'),_0x343416=!![];}catch{}const _0x27c895=_0x1e664b['PLMZT'](getCacheFile);existsSync(_0x27c895)&&(await _0x1e664b[_0x4a5b41(0x181)](rm,_0x27c895),_0x343416=!![]);const _0x26ee45=_0x1e664b['rSeOT'](getRangerDir);_0x1e664b['SOAhM'](existsSync,_0x26ee45)&&(await rm(_0x26ee45,{'recursive':!![]}),console['log']('✓\x20Removed\x20.ranger/\x20directory'),_0x343416=!![]);const _0x5a77c0=getProjectSkillsDir();for(const _0x470d3e of skillsToRemove){const _0x1ea450=join(_0x5a77c0,_0x470d3e);_0x1e664b[_0x4a5b41(0x182)](existsSync,_0x1ea450)&&(await _0x1e664b[_0x4a5b41(0x149)](rm,_0x1ea450,{'recursive':!![]}),console['log'](_0x4a5b41(0x158)+_0x470d3e),_0x343416=!![]);}const _0x1186c2=getUserSkillsDir();for(const _0x5e89aa of skillsToRemove){const _0x2bc915=join(_0x1186c2,_0x5e89aa);_0x1e664b[_0x4a5b41(0x182)](existsSync,_0x2bc915)&&(await _0x1e664b['ARKxx'](rm,_0x2bc915,{'recursive':!![]}),console[_0x4a5b41(0x166)](_0x4a5b41(0x171)+_0x5e89aa),_0x343416=!![]);}const _0x4b6e6b=getOpencodeSkillsDir(_0x1e664b['OLtiq']);for(const _0x5820c9 of skillsToRemove){const _0xe5900e=join(_0x4b6e6b,_0x5820c9);_0x1e664b['eJXxc'](existsSync,_0xe5900e)&&(await _0x1e664b['mMPxQ'](rm,_0xe5900e,{'recursive':!![]}),console[_0x4a5b41(0x166)](_0x4a5b41(0x14d)+_0x5820c9),_0x343416=!![]);}const _0x5016e8=_0x1e664b['eJXxc'](getOpencodeSkillsDir,'user');for(const _0xec34b3 of skillsToRemove){const _0x3cc495=join(_0x5016e8,_0xec34b3);_0x1e664b[_0x4a5b41(0x181)](existsSync,_0x3cc495)&&(await _0x1e664b['ARKxx'](rm,_0x3cc495,{'recursive':!![]}),console[_0x4a5b41(0x166)]('✓\x20Removed\x20OpenCode\x20user\x20skill:\x20'+_0xec34b3),_0x343416=!![]);}const _0x2abf8a=_0x1e664b[_0x4a5b41(0x156)](join,_0x1e664b['gZZrR'](getOpencodeConfigDir,_0x4a5b41(0x17c)),'opencode.json');await _0x1e664b['UhJXs'](removeOpencodePluginConfig,_0x2abf8a)&&(console[_0x4a5b41(0x166)](_0x4a5b41(0x151)),_0x343416=!![]);const _0x58922e=_0x1e664b['XbeTj'](join,_0x1e664b[_0x4a5b41(0x183)](getOpencodeConfigDir,_0x1e664b[_0x4a5b41(0x16c)]),_0x1e664b['qFCUt']);await removeOpencodePluginConfig(_0x58922e)&&(console[_0x4a5b41(0x166)]('✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)'),_0x343416=!![]);const _0x51e085=await uninstallClaudePlugin();_0x51e085&&(console[_0x4a5b41(0x166)](_0x1e664b[_0x4a5b41(0x15c)]),_0x343416=!![]);const _0x505d68=await _0x1e664b['uneOx'](uninstallClaudePlugin,_0x1e664b[_0x4a5b41(0x14a)]);_0x505d68&&(console['log'](_0x4a5b41(0x175)),_0x343416=!![]);const _0x536ec8=await removeMarketplace();_0x536ec8&&(console[_0x4a5b41(0x166)](_0x1e664b['sYEed']),_0x343416=!![]),_0x343416?console[_0x4a5b41(0x166)](_0x1e664b['ouFRG']):console[_0x4a5b41(0x166)]('Nothing\x20to\x20clean\x20up.\x0a');}
@@ -1 +1 @@
1
- const _0x1ccb66=_0x2a3d;(function(_0x200110,_0xa30da0){const _0x173c16=_0x2a3d,_0x1425b9=_0x200110();while(!![]){try{const _0x1d9c0a=parseInt(_0x173c16(0x94))/0x1+parseInt(_0x173c16(0x9d))/0x2*(-parseInt(_0x173c16(0x73))/0x3)+-parseInt(_0x173c16(0x70))/0x4+parseInt(_0x173c16(0x9c))/0x5+-parseInt(_0x173c16(0x7f))/0x6*(-parseInt(_0x173c16(0x71))/0x7)+-parseInt(_0x173c16(0x87))/0x8*(parseInt(_0x173c16(0x93))/0x9)+parseInt(_0x173c16(0x7d))/0xa*(parseInt(_0x173c16(0x6b))/0xb);if(_0x1d9c0a===_0xa30da0)break;else _0x1425b9['push'](_0x1425b9['shift']());}catch(_0x3859db){_0x1425b9['push'](_0x1425b9['shift']());}}}(_0x3d7c,0xa4a89));import{existsSync}from'fs';import{loadSettings,getNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';function _0x2a3d(_0x570bf4,_0x1511a6){_0x570bf4=_0x570bf4-0x65;const _0x3d7c43=_0x3d7c();let _0x2a3d7b=_0x3d7c43[_0x570bf4];return _0x2a3d7b;}import{fetchCloudProfile}from'./utils/cloudProfile.js';import{mergeCloudProfileSettings,readProfileOverrides,resetProfileOverrides,setProfileOverride,unsetProfileOverride}from'./utils/projectsConfig.js';const BOOLEAN_KEYS=['headless',_0x1ccb66(0x95)];function parseLocalValue(_0x541629,_0x2538c8){const _0x901fa8=_0x1ccb66,_0x516db6={'RbZLv':'true','wBVXP':'false'};if(BOOLEAN_KEYS[_0x901fa8(0x88)](_0x541629)){if(_0x2538c8===_0x516db6['RbZLv'])return!![];if(_0x2538c8===_0x516db6[_0x901fa8(0x8f)])return![];throw new Error(_0x901fa8(0x89)+_0x541629+_0x901fa8(0x8d));}return _0x2538c8;}function parseOverrideValue(_0x27a9df){const _0x518e66=_0x1ccb66,_0x27c183={'yUFCw':function(_0x46b516,_0x4f56d0){return _0x46b516===_0x4f56d0;},'ADXDL':_0x518e66(0x6a),'VOtAL':function(_0x582594,_0x1b3f3a){return _0x582594===_0x1b3f3a;},'EQJIb':function(_0x2bb404,_0x195ae8){return _0x2bb404===_0x195ae8;},'tLBxY':_0x518e66(0x8a),'dLmLM':function(_0x150cb4,_0x38ff47){return _0x150cb4===_0x38ff47;},'NOGVl':function(_0x4112e5,_0x1ba58a){return _0x4112e5(_0x1ba58a);}};if(_0x27c183['yUFCw'](_0x27a9df,_0x27c183['ADXDL']))return!![];if(_0x27c183['VOtAL'](_0x27a9df,'false'))return![];if(_0x27c183['EQJIb'](_0x27a9df,_0x27c183[_0x518e66(0x6d)]))return null;if(_0x27c183['dLmLM'](_0x27a9df,'undefined'))return undefined;if(/^-?\d+$/['test'](_0x27a9df)){const _0x3d51c9=Number(_0x27a9df);if(Number['isSafeInteger'](_0x3d51c9))return _0x3d51c9;}if(/^-?\d+\.\d+$/['test'](_0x27a9df)){const _0x4a2f96=_0x27c183[_0x518e66(0x91)](Number,_0x27a9df);if(!Number['isNaN'](_0x4a2f96))return _0x4a2f96;}const _0x396d3a=_0x27a9df['trim']();if(_0x396d3a[_0x518e66(0x72)]('{')&&_0x396d3a[_0x518e66(0x9a)]('}')||_0x396d3a[_0x518e66(0x72)]('[')&&_0x396d3a[_0x518e66(0x9a)](']'))try{return JSON['parse'](_0x396d3a);}catch{}return _0x27a9df;}async function resolveProfileTarget(_0x32df43){const _0x3055bb=_0x1ccb66,_0x380c52={'Fvuip':function(_0x32cffa,_0x303bde){return _0x32cffa(_0x303bde);},'wSxBG':_0x3055bb(0x75)},_0x50173e=_0x380c52[_0x3055bb(0x6e)](existsSync,getEnvDir(_0x32df43));let _0xd83b22=![];try{const _0x12c6e5=await fetchCloudProfile(_0x32df43);_0xd83b22=Boolean(_0x12c6e5);}catch{}if(_0xd83b22)return{'kind':_0x380c52[_0x3055bb(0x68)],'alsoExistsElsewhere':_0x50173e};if(_0x50173e)return{'kind':_0x3055bb(0x76),'alsoExistsElsewhere':![]};throw new Error(_0x3055bb(0x82)+_0x32df43+'\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x32df43);}function _0x3d7c(){const _0x5bb919=['keys','XMkHW','wSxBG','Set\x20','true','143cZFeZd','Removed\x20','tLBxY','Fvuip','nkwBH','1602860aSKKaU','658XlWDDi','startsWith','3GkYgrh','Cleared\x20local\x20overrides\x20for\x20\x22','cloud','local','\x20=\x20','No\x20configuration\x20set\x20for\x20\x22','eunrs','IWFwq','nJhme','BmzWV','44150QRPWOx','alsoExistsElsewhere','55074vXztVo','\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20','\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.','Profile\x20\x22','WRDdt','cwd','stringify','lJFbi','36936bbBlIF','includes','Invalid\x20value\x20for\x20','null','log','cpluH',':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22','FMqxK','wBVXP','\x20for\x20\x22','NOGVl','kind','234jFtxCK','431130wvgoOi','allowInsecureLocalhost','qbOLR','\x20<key>\x22\x20to\x20remove\x20individual\x20values.','\x22\x20and\x20cannot\x20be\x20unset;\x20the\x20legacy\x20tree\x20is\x20read-only\x20under\x20cloud\x20profiles.','(not\x20set)','endsWith','QNTlF','2308120mhwOFm','1235554XIzRJN','object','settings'];_0x3d7c=function(){return _0x5bb919;};return _0x3d7c();}function printDualExistsHint(_0x2c74eb){const _0x423886=_0x1ccb66;console[_0x423886(0x8b)]('\x20\x20Note:\x20\x22'+_0x2c74eb+_0x423886(0x81));}function getProjectPath(){const _0x3c8108=_0x1ccb66;return process[_0x3c8108(0x84)]();}async function loadEffectiveCloudSettings(_0x241d64){const _0x4b40bf=_0x1ccb66,_0x32d7bb={'BmzWV':function(_0x48c8b1,_0x483186){return _0x48c8b1(_0x483186);},'cpluH':function(_0xc077d5,_0xe003c0,_0x332984){return _0xc077d5(_0xe003c0,_0x332984);}},_0x1737ae=await _0x32d7bb[_0x4b40bf(0x7c)](fetchCloudProfile,_0x241d64),_0x1defae=_0x32d7bb[_0x4b40bf(0x8c)](readProfileOverrides,getProjectPath(),_0x241d64);return mergeCloudProfileSettings(_0x1737ae?.[_0x4b40bf(0x65)]??{},_0x1defae??undefined);}export async function configSet(_0x31e0f2,_0x96e722,_0x3ffadf){const _0x1da0da=_0x1ccb66,_0x3b8e90={'FswCv':function(_0x38a3ab,_0x4bafc5){return _0x38a3ab(_0x4bafc5);},'eunrs':_0x1da0da(0x75),'nJhme':function(_0x13d3b4){return _0x13d3b4();}},_0x2c1951=await _0x3b8e90['FswCv'](resolveProfileTarget,_0x31e0f2);if(_0x2c1951[_0x1da0da(0x92)]===_0x3b8e90[_0x1da0da(0x79)]){if(_0x2c1951['alsoExistsElsewhere'])_0x3b8e90['FswCv'](printDualExistsHint,_0x31e0f2);const _0x3ccbd2=parseOverrideValue(_0x3ffadf);setProfileOverride(getProjectPath(),_0x31e0f2,_0x96e722,_0x3ccbd2),console['log'](_0x1da0da(0x69)+_0x96e722+_0x1da0da(0x77)+JSON['stringify'](_0x3ccbd2)+'\x20for\x20\x22'+_0x31e0f2+'\x22');return;}const _0x36b400=parseLocalValue(_0x96e722,_0x3ffadf);setProfileOverride(_0x3b8e90[_0x1da0da(0x7b)](getProjectPath),_0x31e0f2,_0x96e722,_0x36b400),console['log'](_0x1da0da(0x69)+_0x96e722+_0x1da0da(0x77)+_0x36b400+'\x20for\x20\x22'+_0x31e0f2+'\x22');}export async function configGet(_0x437890,_0x212727){const _0x245dac=_0x1ccb66,_0x1a0fac={'lJFbi':function(_0x2e09d5,_0x2f172a){return _0x2e09d5===_0x2f172a;},'FMqxK':function(_0x2bdf31,_0x194223,_0x2a2101){return _0x2bdf31(_0x194223,_0x2a2101);},'qbOLR':function(_0x4174dd,_0x31c21e){return _0x4174dd===_0x31c21e;},'cZDoI':'object'},_0x3d9357=await resolveProfileTarget(_0x437890);if(_0x3d9357['kind']===_0x245dac(0x75)){const _0x500176=await loadEffectiveCloudSettings(_0x437890),_0x54ccf0=getNestedValue(_0x500176,_0x212727);if(_0x1a0fac['lJFbi'](_0x54ccf0,undefined))console[_0x245dac(0x8b)](_0x245dac(0x99));else _0x1a0fac[_0x245dac(0x86)](typeof _0x54ccf0,_0x245dac(0x9e))?console[_0x245dac(0x8b)](JSON[_0x245dac(0x85)](_0x54ccf0,null,0x2)):console[_0x245dac(0x8b)](_0x54ccf0);return;}const _0x191701=await loadSettings(_0x437890),_0x551612=_0x1a0fac[_0x245dac(0x8e)](getNestedValue,_0x191701,_0x212727);if(_0x1a0fac['lJFbi'](_0x551612,undefined))console[_0x245dac(0x8b)](_0x245dac(0x99));else _0x1a0fac[_0x245dac(0x96)](typeof _0x551612,_0x1a0fac['cZDoI'])?console['log'](JSON[_0x245dac(0x85)](_0x551612,null,0x2)):console['log'](_0x551612);}export async function configList(_0x35364f){const _0x4352c7=_0x1ccb66,_0xc47b29={'XMkHW':function(_0x476501,_0x37d998){return _0x476501===_0x37d998;},'WRDdt':function(_0xc15695,_0x210f35){return _0xc15695(_0x210f35);},'Epuft':function(_0x4421ff,_0x3e3e2e){return _0x4421ff(_0x3e3e2e);}},_0x25d30b=await resolveProfileTarget(_0x35364f);if(_0x25d30b[_0x4352c7(0x92)]==='cloud'){const _0x17f2c0=await loadEffectiveCloudSettings(_0x35364f);if(!_0x17f2c0||_0xc47b29[_0x4352c7(0x67)](Object[_0x4352c7(0x66)](_0x17f2c0)['length'],0x0)){console[_0x4352c7(0x8b)]('No\x20configuration\x20set\x20for\x20\x22'+_0x35364f+'\x22');return;}console['log'](JSON['stringify'](_0x17f2c0,null,0x2));return;}const _0x4dafdd=_0xc47b29['WRDdt'](getSettingsPath,_0x35364f);if(!_0xc47b29['Epuft'](existsSync,_0x4dafdd)){console[_0x4352c7(0x8b)](_0x4352c7(0x78)+_0x35364f+'\x22');return;}const _0x4acbb3=await loadSettings(_0x35364f),_0x4b230f=_0xc47b29[_0x4352c7(0x83)](formatSettings,_0x4acbb3);!_0x4b230f?console[_0x4352c7(0x8b)]('No\x20configuration\x20set\x20for\x20\x22'+_0x35364f+'\x22'):console[_0x4352c7(0x8b)](_0x4b230f);}export async function configUnset(_0x7d7012,_0x15ecb7){const _0x5c4c0b=_0x1ccb66,_0x56ecd1={'JUeBM':function(_0x355120,_0x5b6bfa){return _0x355120===_0x5b6bfa;},'LDwDE':_0x5c4c0b(0x75),'nkwBH':function(_0x4623b0,_0x3852a0){return _0x4623b0(_0x3852a0);},'IWFwq':function(_0x1e3e47,_0x554f82,_0x7b5e11,_0x42df25){return _0x1e3e47(_0x554f82,_0x7b5e11,_0x42df25);},'oQnAw':function(_0x23b906){return _0x23b906();}},_0x27f146=await resolveProfileTarget(_0x7d7012);if(_0x56ecd1['JUeBM'](_0x27f146[_0x5c4c0b(0x92)],_0x56ecd1['LDwDE'])){if(_0x27f146[_0x5c4c0b(0x7e)])_0x56ecd1[_0x5c4c0b(0x6f)](printDualExistsHint,_0x7d7012);const _0x14f173=_0x56ecd1[_0x5c4c0b(0x7a)](unsetProfileOverride,_0x56ecd1['oQnAw'](getProjectPath),_0x7d7012,_0x15ecb7);_0x14f173?console[_0x5c4c0b(0x8b)]('Removed\x20'+_0x15ecb7+_0x5c4c0b(0x90)+_0x7d7012+'\x22'):console[_0x5c4c0b(0x8b)]('Key\x20\x22'+_0x15ecb7+'\x22\x20not\x20found');return;}const _0x4e64d6=_0x56ecd1['IWFwq'](unsetProfileOverride,_0x56ecd1['oQnAw'](getProjectPath),_0x7d7012,_0x15ecb7);if(_0x4e64d6){console['log'](_0x5c4c0b(0x6c)+_0x15ecb7);return;}const _0x50b1b5=await loadSettings(_0x7d7012),_0x5d2f91=deleteNestedValue(_0x50b1b5,_0x15ecb7);_0x5d2f91?console[_0x5c4c0b(0x8b)]('Key\x20\x22'+_0x15ecb7+'\x22\x20lives\x20in\x20the\x20legacy\x20settings\x20file\x20for\x20\x22'+_0x7d7012+_0x5c4c0b(0x98)):console['log']('Key\x20\x22'+_0x15ecb7+'\x22\x20not\x20found');}export async function configReset(_0x2ddda1){const _0x168db9=_0x1ccb66,_0x4c83ab={'ZwEED':function(_0x4242af,_0x42a992){return _0x4242af(_0x42a992);},'PuKRH':function(_0x3cbd1a,_0x21127a,_0xca5dbe){return _0x3cbd1a(_0x21127a,_0xca5dbe);},'QNTlF':function(_0x248d04){return _0x248d04();}},_0xecad8d=await _0x4c83ab['ZwEED'](resolveProfileTarget,_0x2ddda1);if(_0xecad8d['kind']==='cloud'){_0x4c83ab['PuKRH'](resetProfileOverrides,_0x4c83ab[_0x168db9(0x9b)](getProjectPath),_0x2ddda1),console['log'](_0x168db9(0x74)+_0x2ddda1+'\x22');return;}console['log']('\x22'+_0x2ddda1+_0x168db9(0x80)+_0x2ddda1+_0x168db9(0x97));}
1
+ (function(_0x4aa50b,_0x4a4d27){const _0x309cb7=_0x485d,_0x513706=_0x4aa50b();while(!![]){try{const _0x2d9802=parseInt(_0x309cb7(0xaf))/0x1*(-parseInt(_0x309cb7(0xa3))/0x2)+parseInt(_0x309cb7(0x8c))/0x3+-parseInt(_0x309cb7(0xa8))/0x4+parseInt(_0x309cb7(0xb1))/0x5+parseInt(_0x309cb7(0xab))/0x6*(-parseInt(_0x309cb7(0x96))/0x7)+-parseInt(_0x309cb7(0xac))/0x8+parseInt(_0x309cb7(0x97))/0x9;if(_0x2d9802===_0x4a4d27)break;else _0x513706['push'](_0x513706['shift']());}catch(_0x507c31){_0x513706['push'](_0x513706['shift']());}}}(_0x47dc,0xef263));import{existsSync}from'fs';import{loadSettings,getNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';import{fetchCloudProfile}from'./utils/cloudProfile.js';import{mergeCloudProfileSettings,readProfileOverrides,resetProfileOverrides,setProfileOverride,unsetProfileOverride}from'./utils/projectsConfig.js';const BOOLEAN_KEYS=['headless','allowInsecureLocalhost'];function parseLocalValue(_0x302131,_0x2f7c15){const _0x4e851d=_0x485d,_0x125121={'IKqso':'true'};if(BOOLEAN_KEYS['includes'](_0x302131)){if(_0x2f7c15===_0x125121['IKqso'])return!![];if(_0x2f7c15==='false')return![];throw new Error(_0x4e851d(0xae)+_0x302131+_0x4e851d(0x8e));}return _0x2f7c15;}function parseOverrideValue(_0x5d1d8f){const _0x30a2f8=_0x485d,_0x479977={'OlTNB':function(_0x2e1130,_0x21b63c){return _0x2e1130===_0x21b63c;},'gaKRX':_0x30a2f8(0x91),'Ooxlv':'null','PCyqb':function(_0x5ca3bb,_0x18df54){return _0x5ca3bb(_0x18df54);},'fjrqk':function(_0x1d8a4f,_0xeb31fd){return _0x1d8a4f(_0xeb31fd);}};if(_0x479977[_0x30a2f8(0x94)](_0x5d1d8f,'true'))return!![];if(_0x5d1d8f===_0x479977['gaKRX'])return![];if(_0x5d1d8f===_0x479977[_0x30a2f8(0x87)])return null;if(_0x5d1d8f===_0x30a2f8(0xb9))return undefined;if(/^-?\d+$/[_0x30a2f8(0x9c)](_0x5d1d8f)){const _0x560ad1=_0x479977['PCyqb'](Number,_0x5d1d8f);if(Number[_0x30a2f8(0xa0)](_0x560ad1))return _0x560ad1;}if(/^-?\d+\.\d+$/['test'](_0x5d1d8f)){const _0x58cfe1=_0x479977[_0x30a2f8(0xb0)](Number,_0x5d1d8f);if(!Number[_0x30a2f8(0xaa)](_0x58cfe1))return _0x58cfe1;}const _0x44ab3f=_0x5d1d8f['trim']();if(_0x44ab3f['startsWith']('{')&&_0x44ab3f[_0x30a2f8(0x99)]('}')||_0x44ab3f[_0x30a2f8(0x93)]('[')&&_0x44ab3f[_0x30a2f8(0x99)](']'))try{return JSON[_0x30a2f8(0x8f)](_0x44ab3f);}catch{}return _0x5d1d8f;}function _0x485d(_0x3d524d,_0x297f77){_0x3d524d=_0x3d524d-0x87;const _0x47dc83=_0x47dc();let _0x485d70=_0x47dc83[_0x3d524d];return _0x485d70;}async function resolveProfileTarget(_0x27ede9){const _0x683814=_0x485d,_0x2964f0={'GhTxv':function(_0x66f7f,_0x27ae14){return _0x66f7f(_0x27ae14);},'FdWbR':_0x683814(0x8a)},_0x19a577=_0x2964f0['GhTxv'](existsSync,_0x2964f0[_0x683814(0xb5)](getEnvDir,_0x27ede9));let _0x56baf6=![];try{const _0x1d3ff3=await fetchCloudProfile(_0x27ede9);_0x56baf6=_0x2964f0['GhTxv'](Boolean,_0x1d3ff3);}catch{}if(_0x56baf6)return{'kind':_0x2964f0[_0x683814(0x9a)],'alsoExistsElsewhere':_0x19a577};if(_0x19a577)return{'kind':_0x683814(0x9d),'alsoExistsElsewhere':![]};throw new Error(_0x683814(0xa5)+_0x27ede9+'\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x27ede9);}function printDualExistsHint(_0xff5be){const _0x3a83a1=_0x485d;console['log'](_0x3a83a1(0x98)+_0xff5be+'\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.');}function getProjectPath(){const _0x581d4a=_0x485d;return process[_0x581d4a(0xad)]();}async function loadEffectiveCloudSettings(_0x1f887f){const _0x1bc0bf=_0x485d,_0x2b7c7e={'PAROC':function(_0x331a44,_0x9ca1ec){return _0x331a44(_0x9ca1ec);},'vmenx':function(_0xaf1bb6,_0x5d16da,_0x5eb753){return _0xaf1bb6(_0x5d16da,_0x5eb753);}},_0x135a09=await _0x2b7c7e[_0x1bc0bf(0xa1)](fetchCloudProfile,_0x1f887f),_0x35e504=readProfileOverrides(getProjectPath(),_0x1f887f);return _0x2b7c7e['vmenx'](mergeCloudProfileSettings,_0x135a09?.['settings']??{},_0x35e504??undefined);}export async function configSet(_0x20d99a,_0x1c90f0,_0x4d4ace){const _0x40f347=_0x485d,_0x24eaff={'DxJDk':function(_0x86ed1e,_0x176415){return _0x86ed1e(_0x176415);},'JJfSJ':function(_0x37fc11,_0x25a4ae){return _0x37fc11(_0x25a4ae);},'dVMog':function(_0x244791,_0x3d1ac5,_0x37ffd4){return _0x244791(_0x3d1ac5,_0x37ffd4);},'jZkBm':function(_0x23b968){return _0x23b968();}},_0x57e5a0=await resolveProfileTarget(_0x20d99a);if(_0x57e5a0[_0x40f347(0xb6)]==='cloud'){if(_0x57e5a0['alsoExistsElsewhere'])_0x24eaff[_0x40f347(0xb7)](printDualExistsHint,_0x20d99a);const _0x92ef90=_0x24eaff[_0x40f347(0xb2)](parseOverrideValue,_0x4d4ace);setProfileOverride(getProjectPath(),_0x20d99a,_0x1c90f0,_0x92ef90),console['log']('Set\x20'+_0x1c90f0+_0x40f347(0xa9)+JSON['stringify'](_0x92ef90)+'\x20for\x20\x22'+_0x20d99a+'\x22');return;}const _0x47162a=_0x24eaff['dVMog'](parseLocalValue,_0x1c90f0,_0x4d4ace);setProfileOverride(_0x24eaff[_0x40f347(0x89)](getProjectPath),_0x20d99a,_0x1c90f0,_0x47162a),console[_0x40f347(0x8b)](_0x40f347(0xb8)+_0x1c90f0+'\x20=\x20'+_0x47162a+'\x20for\x20\x22'+_0x20d99a+'\x22');}export async function configGet(_0x412f82,_0x2dd98d){const _0x5d4a07=_0x485d,_0x7ca160={'ZNEzR':function(_0x480923,_0x32ff7e){return _0x480923(_0x32ff7e);},'iLjCz':function(_0x13256c,_0x2bb3ff,_0x1fcbdc){return _0x13256c(_0x2bb3ff,_0x1fcbdc);},'aYAlm':function(_0x176148,_0x988fc9){return _0x176148===_0x988fc9;},'NrMaQ':function(_0x1e66f7,_0x2b9b8f){return _0x1e66f7(_0x2b9b8f);},'aKHYH':function(_0x28eb58,_0x47ad77,_0x5da0f4){return _0x28eb58(_0x47ad77,_0x5da0f4);},'VpNuB':function(_0x5951f9,_0x827936){return _0x5951f9===_0x827936;}},_0x3ee5c6=await _0x7ca160[_0x5d4a07(0xa6)](resolveProfileTarget,_0x412f82);if(_0x3ee5c6[_0x5d4a07(0xb6)]==='cloud'){const _0x286274=await loadEffectiveCloudSettings(_0x412f82),_0x5cc9cb=_0x7ca160[_0x5d4a07(0x90)](getNestedValue,_0x286274,_0x2dd98d);if(_0x7ca160[_0x5d4a07(0xb4)](_0x5cc9cb,undefined))console[_0x5d4a07(0x8b)]('(not\x20set)');else typeof _0x5cc9cb==='object'?console['log'](JSON['stringify'](_0x5cc9cb,null,0x2)):console['log'](_0x5cc9cb);return;}const _0x1858fe=await _0x7ca160[_0x5d4a07(0x9e)](loadSettings,_0x412f82),_0x34cac9=_0x7ca160['aKHYH'](getNestedValue,_0x1858fe,_0x2dd98d);if(_0x7ca160[_0x5d4a07(0xb4)](_0x34cac9,undefined))console['log'](_0x5d4a07(0x88));else _0x7ca160['VpNuB'](typeof _0x34cac9,'object')?console[_0x5d4a07(0x8b)](JSON['stringify'](_0x34cac9,null,0x2)):console['log'](_0x34cac9);}export async function configList(_0x260f09){const _0x2f740d=_0x485d,_0x575341={'SnXfz':function(_0xaf6bd3,_0x4b3c80){return _0xaf6bd3(_0x4b3c80);},'lRozK':function(_0x5d81a6,_0x2e3138){return _0x5d81a6===_0x2e3138;},'WXNbr':function(_0x382ca1,_0x3992fa){return _0x382ca1(_0x3992fa);}},_0x249daa=await _0x575341['SnXfz'](resolveProfileTarget,_0x260f09);if(_0x249daa['kind']===_0x2f740d(0x8a)){const _0x451d27=await _0x575341['SnXfz'](loadEffectiveCloudSettings,_0x260f09);if(!_0x451d27||_0x575341[_0x2f740d(0xb3)](Object[_0x2f740d(0xa7)](_0x451d27)['length'],0x0)){console[_0x2f740d(0x8b)]('No\x20configuration\x20set\x20for\x20\x22'+_0x260f09+'\x22');return;}console['log'](JSON['stringify'](_0x451d27,null,0x2));return;}const _0x164dc0=_0x575341[_0x2f740d(0x95)](getSettingsPath,_0x260f09);if(!_0x575341['SnXfz'](existsSync,_0x164dc0)){console['log'](_0x2f740d(0xa2)+_0x260f09+'\x22');return;}const _0x44bece=await loadSettings(_0x260f09),_0x487743=formatSettings(_0x44bece);!_0x487743?console['log'](_0x2f740d(0xa2)+_0x260f09+'\x22'):console['log'](_0x487743);}export async function configUnset(_0x4db56b,_0x210a74){const _0x13ca38=_0x485d,_0x57e22d={'YUwyI':function(_0x5738bf,_0x5bde85){return _0x5738bf(_0x5bde85);},'xsDEn':function(_0x290c51,_0x4378fe){return _0x290c51===_0x4378fe;},'nwKTo':function(_0xeb6cf7){return _0xeb6cf7();}},_0x5b0a38=await _0x57e22d['YUwyI'](resolveProfileTarget,_0x4db56b);if(_0x57e22d['xsDEn'](_0x5b0a38[_0x13ca38(0xb6)],_0x13ca38(0x8a))){if(_0x5b0a38['alsoExistsElsewhere'])printDualExistsHint(_0x4db56b);const _0x49e8c4=unsetProfileOverride(_0x57e22d['nwKTo'](getProjectPath),_0x4db56b,_0x210a74);_0x49e8c4?console[_0x13ca38(0x8b)](_0x13ca38(0xa4)+_0x210a74+_0x13ca38(0x8d)+_0x4db56b+'\x22'):console['log'](_0x13ca38(0x9f)+_0x210a74+'\x22\x20not\x20found');return;}const _0x5b952d=unsetProfileOverride(_0x57e22d['nwKTo'](getProjectPath),_0x4db56b,_0x210a74);if(_0x5b952d){console['log']('Removed\x20'+_0x210a74);return;}const _0x4c76c1=await loadSettings(_0x4db56b),_0x49a6ea=deleteNestedValue(_0x4c76c1,_0x210a74);_0x49a6ea?console[_0x13ca38(0x8b)](_0x13ca38(0x9f)+_0x210a74+'\x22\x20lives\x20in\x20the\x20legacy\x20settings\x20file\x20for\x20\x22'+_0x4db56b+'\x22\x20and\x20cannot\x20be\x20unset;\x20the\x20legacy\x20tree\x20is\x20read-only\x20under\x20cloud\x20profiles.'):console[_0x13ca38(0x8b)]('Key\x20\x22'+_0x210a74+_0x13ca38(0x92));}function _0x47dc(){const _0x2b7de2=['516Xcpecs','2665176cBXOBH','cwd','Invalid\x20value\x20for\x20','29525aCoqDI','fjrqk','1992750RCQBOS','JJfSJ','lRozK','aYAlm','GhTxv','kind','DxJDk','Set\x20','undefined','Ooxlv','(not\x20set)','jZkBm','cloud','log','501540RTCydS','\x20for\x20\x22',':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22','parse','iLjCz','false','\x22\x20not\x20found','startsWith','OlTNB','WXNbr','63217CniApQ','40754313CTsxag','\x20\x20Note:\x20\x22','endsWith','FdWbR','pzzsy','test','local','NrMaQ','Key\x20\x22','isSafeInteger','PAROC','No\x20configuration\x20set\x20for\x20\x22','100QXFwpU','Removed\x20','Profile\x20\x22','ZNEzR','keys','6113476oHlycZ','\x20=\x20','isNaN'];_0x47dc=function(){return _0x2b7de2;};return _0x47dc();}export async function configReset(_0x27a707){const _0xd34490=_0x485d,_0x330475={'TTORd':function(_0x22c87f,_0x27b6dd){return _0x22c87f(_0x27b6dd);},'pzzsy':function(_0x439a95,_0x27abe7){return _0x439a95===_0x27abe7;},'rSCqS':function(_0x3d4040,_0x2f03ea,_0x49489b){return _0x3d4040(_0x2f03ea,_0x49489b);},'hLxYL':function(_0x442a13){return _0x442a13();}},_0x442fc=await _0x330475['TTORd'](resolveProfileTarget,_0x27a707);if(_0x330475[_0xd34490(0x9b)](_0x442fc['kind'],_0xd34490(0x8a))){_0x330475['rSCqS'](resetProfileOverrides,_0x330475['hLxYL'](getProjectPath),_0x27a707),console[_0xd34490(0x8b)]('Cleared\x20local\x20overrides\x20for\x20\x22'+_0x27a707+'\x22');return;}console['log']('\x22'+_0x27a707+'\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20'+_0x27a707+'\x20<key>\x22\x20to\x20remove\x20individual\x20values.');}
@@ -1 +1 @@
1
- (function(_0x880de8,_0x2ac0a4){const _0x5c1fbc=_0x566a,_0x5e9ee9=_0x880de8();while(!![]){try{const _0x30d32b=-parseInt(_0x5c1fbc(0x1c7))/0x1+-parseInt(_0x5c1fbc(0x1c2))/0x2*(-parseInt(_0x5c1fbc(0x1c8))/0x3)+-parseInt(_0x5c1fbc(0x1c5))/0x4+parseInt(_0x5c1fbc(0x1c4))/0x5*(parseInt(_0x5c1fbc(0x1ca))/0x6)+parseInt(_0x5c1fbc(0x1d0))/0x7*(-parseInt(_0x5c1fbc(0x1bc))/0x8)+parseInt(_0x5c1fbc(0x1c9))/0x9+parseInt(_0x5c1fbc(0x1d1))/0xa;if(_0x30d32b===_0x2ac0a4)break;else _0x5e9ee9['push'](_0x5e9ee9['shift']());}catch(_0x5d3850){_0x5e9ee9['push'](_0x5e9ee9['shift']());}}}(_0x1104,0x511b7));import _0x4510b9 from'inquirer';import{deleteCloudProfile,fetchCloudProfile}from'./utils/cloudProfile.js';import{isInteractive}from'./utils/cloudProfileSession.js';function _0x1104(){const _0x4daa4f=['\x22\x20not\x20found.','Cloud\x20profile\x20\x22','tAlxT','\x22\x20for\x20everyone\x20in\x20your\x20organization.','confirmation','24028UdJfoC','NVnpQ','40WtsAKv','111800LpnXFK','\x22\x20to\x20confirm\x20deletion:','533874nnLYOM','93HtgaCU','2719674CkNCZQ','11070jCwjkJ','mScXF','input','Type\x20\x22','yes','✓\x20Deleted\x20cloud\x20profile\x20\x22','566867duZmtZ','6095640OSCCoG','cwd','Vhfrz','log','40RejpmD'];_0x1104=function(){return _0x4daa4f;};return _0x1104();}import{clearLastProfile,resetProfileOverrides}from'./utils/projectsConfig.js';function _0x566a(_0x61cb8a,_0x114410){_0x61cb8a=_0x61cb8a-0x1bc;const _0x110416=_0x1104();let _0x566a8a=_0x110416[_0x61cb8a];return _0x566a8a;}export async function deleteProfile(_0x5b181c,_0x5d1eb3={}){const _0x235676=_0x566a,_0x2e5cc0={'NVnpQ':function(_0x985731,_0x34f56e){return _0x985731(_0x34f56e);},'Vhfrz':_0x235676(0x1cc),'VfeSD':function(_0x57f5ba,_0x4a6102){return _0x57f5ba!==_0x4a6102;},'mScXF':'Profile\x20deletion\x20cancelled:\x20confirmation\x20did\x20not\x20match.','tAlxT':function(_0xccc5df,_0x756271,_0x5397c2){return _0xccc5df(_0x756271,_0x5397c2);}},_0x5dab09=await _0x2e5cc0[_0x235676(0x1c3)](fetchCloudProfile,_0x5b181c);if(!_0x5dab09)throw new Error(_0x235676(0x1be)+_0x5b181c+_0x235676(0x1bd));if(!_0x5d1eb3[_0x235676(0x1ce)]&&!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[_0x235676(0x1d4)]('\x0aWarning:\x20this\x20deletes\x20the\x20shared\x20cloud\x20profile\x20\x22'+_0x5b181c+_0x235676(0x1c0));if(!_0x5d1eb3['yes']){const {confirmation:_0x2af0a1}=await _0x4510b9['prompt']([{'type':_0x2e5cc0[_0x235676(0x1d3)],'name':_0x235676(0x1c1),'message':_0x235676(0x1cd)+_0x5b181c+_0x235676(0x1c6)}]);if(_0x2e5cc0['VfeSD'](_0x2af0a1,_0x5b181c))throw new Error(_0x2e5cc0[_0x235676(0x1cb)]);}await deleteCloudProfile(_0x5b181c),resetProfileOverrides(process[_0x235676(0x1d2)](),_0x5b181c),_0x2e5cc0[_0x235676(0x1bf)](clearLastProfile,process[_0x235676(0x1d2)](),_0x5b181c),console['log'](_0x235676(0x1cf)+_0x5b181c+'\x22.');}
1
+ (function(_0x348647,_0x38fc45){const _0xf6e2f=_0x357d,_0x174b2b=_0x348647();while(!![]){try{const _0x3731e2=-parseInt(_0xf6e2f(0xdc))/0x1*(-parseInt(_0xf6e2f(0xce))/0x2)+-parseInt(_0xf6e2f(0xcb))/0x3+-parseInt(_0xf6e2f(0xdb))/0x4+-parseInt(_0xf6e2f(0xdf))/0x5+parseInt(_0xf6e2f(0xd6))/0x6*(-parseInt(_0xf6e2f(0xd0))/0x7)+-parseInt(_0xf6e2f(0xd7))/0x8*(parseInt(_0xf6e2f(0xdd))/0x9)+-parseInt(_0xf6e2f(0xe0))/0xa*(-parseInt(_0xf6e2f(0xe1))/0xb);if(_0x3731e2===_0x38fc45)break;else _0x174b2b['push'](_0x174b2b['shift']());}catch(_0x45a669){_0x174b2b['push'](_0x174b2b['shift']());}}}(_0x6a90,0x1b10f));import _0x16edfc from'inquirer';function _0x357d(_0x1dd3ae,_0xb9fd5){_0x1dd3ae=_0x1dd3ae-0xcb;const _0x6a90e7=_0x6a90();let _0x357d02=_0x6a90e7[_0x1dd3ae];return _0x357d02;}import{deleteCloudProfile,fetchCloudProfile}from'./utils/cloudProfile.js';function _0x6a90(){const _0x260bfb=['Type\x20\x22','Profile\x20deletion\x20requires\x20an\x20interactive\x20terminal\x20so\x20the\x20profile\x20name\x20can\x20be\x20typed\x20for\x20confirmation.\x20Pass\x20--yes\x20to\x20skip\x20confirmation.','Profile\x20deletion\x20cancelled:\x20confirmation\x20did\x20not\x20match.','193200SLPcKS','51EdWgno','9rdErGT','cwd','91745kmceYS','2930nAhdck','5093kolhJe','54732jQXopg','✓\x20Deleted\x20cloud\x20profile\x20\x22','JlPwc','6898BSCLUM','dGtpE','312298VwoRGl','confirmation','yes','\x22\x20not\x20found.','Cloud\x20profile\x20\x22','TIikf','12niczLo','212592FPxMaZ'];_0x6a90=function(){return _0x260bfb;};return _0x6a90();}import{isInteractive}from'./utils/cloudProfileSession.js';import{clearLastProfile,resetProfileOverrides}from'./utils/projectsConfig.js';export async function deleteProfile(_0x1b91c9,_0x4179f0={}){const _0x40890f=_0x357d,_0x1c5e8c={'dGtpE':_0x40890f(0xd9),'TIikf':'input','jtVNa':function(_0xac0c7c,_0x5baad5){return _0xac0c7c!==_0x5baad5;},'JlPwc':_0x40890f(0xda),'iGyFn':function(_0x11a37c,_0x1b856e){return _0x11a37c(_0x1b856e);},'oUFtE':function(_0x42a6fa,_0x59e2f2,_0x2f5366){return _0x42a6fa(_0x59e2f2,_0x2f5366);}},_0x119f4d=await fetchCloudProfile(_0x1b91c9);if(!_0x119f4d)throw new Error(_0x40890f(0xd4)+_0x1b91c9+_0x40890f(0xd3));if(!_0x4179f0['yes']&&!isInteractive())throw new Error(_0x1c5e8c[_0x40890f(0xcf)]);console['log']('\x0aWarning:\x20this\x20deletes\x20the\x20shared\x20cloud\x20profile\x20\x22'+_0x1b91c9+'\x22\x20for\x20everyone\x20in\x20your\x20organization.');if(!_0x4179f0[_0x40890f(0xd2)]){const {confirmation:_0x3959a4}=await _0x16edfc['prompt']([{'type':_0x1c5e8c[_0x40890f(0xd5)],'name':_0x40890f(0xd1),'message':_0x40890f(0xd8)+_0x1b91c9+'\x22\x20to\x20confirm\x20deletion:'}]);if(_0x1c5e8c['jtVNa'](_0x3959a4,_0x1b91c9))throw new Error(_0x1c5e8c[_0x40890f(0xcd)]);}await _0x1c5e8c['iGyFn'](deleteCloudProfile,_0x1b91c9),_0x1c5e8c['oUFtE'](resetProfileOverrides,process['cwd'](),_0x1b91c9),clearLastProfile(process[_0x40890f(0xde)](),_0x1b91c9),console['log'](_0x40890f(0xcc)+_0x1b91c9+'\x22.');}
@@ -1 +1 @@
1
- function _0x4980(_0x5db945,_0x760c70){_0x5db945=_0x5db945-0xb7;const _0x24030b=_0x2403();let _0x49800c=_0x24030b[_0x5db945];return _0x49800c;}function _0x2403(){const _0x2e023e=['hWAvg','cached\x20(updated\x20','local','Run:\x20ranger\x20profile\x20add\x20<profile-name>','35pzGYEB','jfnFN','legacy','627825ryXRHI','MZaQP','name','1080478zJYEZs','sessions','log','message','fEyQA','8872236lxjuuu','1310136rZQcqX','push','Xhmyh','34455700vsPJvX','KrNrC','bug-bashes','\x20\x20\x20\x20\x20\x20Details:\x20','41999aKJTOM','ubNiB','environmentDetails','.txt','has','ouAMG','JRIhW','48NfygHo','OqShZ','length','isDirectory','LhjiW','localeCompare','5577308kKcTSo','includes','3LXmlGx'];_0x2403=function(){return _0x2e023e;};return _0x2403();}const _0x18d895=_0x4980;(function(_0x4fc67e,_0x5383a7){const _0x23efbf=_0x4980,_0x319fa1=_0x4fc67e();while(!![]){try{const _0x52b994=parseInt(_0x23efbf(0xce))/0x1+parseInt(_0x23efbf(0xc1))/0x2*(-parseInt(_0x23efbf(0xdd))/0x3)+-parseInt(_0x23efbf(0xdb))/0x4+-parseInt(_0x23efbf(0xbe))/0x5*(parseInt(_0x23efbf(0xd5))/0x6)+-parseInt(_0x23efbf(0xbb))/0x7*(parseInt(_0x23efbf(0xc7))/0x8)+parseInt(_0x23efbf(0xc6))/0x9+parseInt(_0x23efbf(0xca))/0xa;if(_0x52b994===_0x5383a7)break;else _0x319fa1['push'](_0x319fa1['shift']());}catch(_0x36d4b3){_0x319fa1['push'](_0x319fa1['shift']());}}}(_0x2403,0xaeabc));import{readdir,stat}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';import{getToken}from'./utils/keychain.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const NON_ENV_DIRS=[_0x18d895(0xc2),_0x18d895(0xcc),'reports','local','ci'];export async function getEnvNames(){const _0x6027cc=_0x18d895,_0xc2e21d={'ubNiB':function(_0x39728e,_0x46b5d9){return _0x39728e(_0x46b5d9);},'cEZDI':function(_0x26791d,_0x4edd57,_0x2793eb){return _0x26791d(_0x4edd57,_0x2793eb);},'iPLYk':function(_0x40ea3c,_0x424610){return _0x40ea3c(_0x424610);},'MXJFY':function(_0xce0db6,_0x363d01,_0x3241d8){return _0xce0db6(_0x363d01,_0x3241d8);},'GMwDZ':function(_0x40bcc3,_0x507c1d){return _0x40bcc3(_0x507c1d);},'fEyQA':_0x6027cc(0xb9),'jfnFN':function(_0x2ee416,_0x3735ae){return _0x2ee416(_0x3735ae);},'ecMJN':function(_0x3f2bdf,_0x3e57c8,_0x5a45dd){return _0x3f2bdf(_0x3e57c8,_0x5a45dd);},'KrNrC':_0x6027cc(0xd1),'OqShZ':function(_0x5ddf8a,_0x156038){return _0x5ddf8a(_0x156038);}},_0x4acdde=getRangerDir();if(!_0xc2e21d[_0x6027cc(0xcf)](existsSync,_0x4acdde))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x5705eb=await readActiveProfileName(),_0x2c0e58=[],_0x2a95f7={},_0x1ee16d=_0xc2e21d['cEZDI'](join,_0x4acdde,_0x6027cc(0xb9));if(_0xc2e21d['iPLYk'](existsSync,_0x1ee16d)){const _0x4b567b=await readdir(_0x1ee16d);for(const _0xb5d330 of _0x4b567b){const _0x15a0be=_0xc2e21d['MXJFY'](join,_0x1ee16d,_0xb5d330),_0x275b8b=await _0xc2e21d['GMwDZ'](stat,_0x15a0be);_0x275b8b['isDirectory']()&&(_0x2c0e58['push'](_0xb5d330),_0x2a95f7[_0xb5d330]=_0xc2e21d[_0x6027cc(0xc5)]);}}const _0x32479e=join(_0x4acdde,'ci');if(_0xc2e21d[_0x6027cc(0xbc)](existsSync,_0x32479e)){const _0x41922a=await _0xc2e21d['jfnFN'](readdir,_0x32479e);for(const _0x7637b9 of _0x41922a){const _0x3cd60e=_0xc2e21d['ecMJN'](join,_0x32479e,_0x7637b9),_0x4e0683=await _0xc2e21d['jfnFN'](stat,_0x3cd60e);_0x4e0683['isDirectory']()&&(_0x2c0e58[_0x6027cc(0xc8)](_0x7637b9),_0x2a95f7[_0x7637b9]='ci');}}const _0x46dbc4=await readdir(_0x4acdde);for(const _0x803e1f of _0x46dbc4){if(NON_ENV_DIRS[_0x6027cc(0xdc)](_0x803e1f))continue;if(_0x803e1f['startsWith']('.'))continue;if(_0x803e1f['endsWith'](_0xc2e21d[_0x6027cc(0xcb)]))continue;const _0x2f6f82=join(_0x4acdde,_0x803e1f),_0xf335d6=await _0xc2e21d[_0x6027cc(0xd6)](stat,_0x2f6f82);_0xf335d6[_0x6027cc(0xd8)]()&&_0xc2e21d[_0x6027cc(0xcf)](existsSync,_0xc2e21d['MXJFY'](join,_0x2f6f82,'settings.json'))&&(!_0x2c0e58['includes'](_0x803e1f)&&(_0x2c0e58[_0x6027cc(0xc8)](_0x803e1f),_0x2a95f7[_0x803e1f]=_0x6027cc(0xbd)));}return{'envNames':_0x2c0e58,'activeEnv':_0x5705eb,'envTypes':_0x2a95f7};}export async function envList(){const _0x5e9630=_0x18d895,_0x2bb4a2={'xRors':function(_0x2690c7,_0x2275a8){return _0x2690c7 instanceof _0x2275a8;},'Xhmyh':function(_0x395051,_0x17f1cf){return _0x395051(_0x17f1cf);},'KObJe':function(_0x4af579,_0x1327a6){return _0x4af579===_0x1327a6;},'MZaQP':'\x0aNo\x20profiles\x20found.','niQWK':_0x5e9630(0xba),'ouAMG':_0x5e9630(0xb9),'LhjiW':'legacy','hWAvg':'\x0aCloud\x20Profiles:','JRIhW':function(_0x405b1b,_0x1679a8){return _0x405b1b===_0x1679a8;}},{envNames:_0xfa8ce0,activeEnv:_0x25401b,envTypes:_0xb96c55}=await getEnvNames();let _0x3e217a=[];const _0x342f1d=await getToken();if(_0x342f1d)try{_0x3e217a=await listCloudProfiles();}catch(_0x106e2f){console['error']('\x0aWarning:\x20could\x20not\x20fetch\x20cloud\x20profiles:\x20'+(_0x2bb4a2['xRors'](_0x106e2f,Error)?_0x106e2f[_0x5e9630(0xc4)]:_0x2bb4a2[_0x5e9630(0xc9)](String,_0x106e2f)));}if(_0xfa8ce0['length']===0x0&&_0x2bb4a2['KObJe'](_0x3e217a['length'],0x0)){console['log'](_0x2bb4a2[_0x5e9630(0xbf)]),console['log'](_0x2bb4a2['niQWK']);return;}const _0x4b5c4b=new Set(_0x3e217a['map'](_0x1b96f8=>_0x1b96f8[_0x5e9630(0xc0)]));if(_0xfa8ce0[_0x5e9630(0xd7)]>0x0){console[_0x5e9630(0xc3)]('\x0aLocal\x20Profiles\x20(legacy):');for(const _0x6ac9d4 of _0xfa8ce0['sort']()){const _0x4cc035=_0x6ac9d4===_0x25401b&&!_0x4b5c4b[_0x5e9630(0xd2)](_0x6ac9d4),_0x189938=_0xb96c55[_0x6ac9d4]||_0x2bb4a2[_0x5e9630(0xd3)],_0x1cc663=await _0x2bb4a2['Xhmyh'](loadSettings,_0x6ac9d4),_0x3b7074=_0x189938===_0x2bb4a2[_0x5e9630(0xd9)]?'':'\x20['+_0x189938+']';console[_0x5e9630(0xc3)]('\x20\x20'+(_0x4cc035?'*\x20':'\x20\x20')+_0x6ac9d4+_0x3b7074),_0x1cc663['baseUrl']&&console[_0x5e9630(0xc3)]('\x20\x20\x20\x20\x20\x20URL:\x20'+_0x1cc663['baseUrl']),_0x1cc663[_0x5e9630(0xd0)]&&console[_0x5e9630(0xc3)](_0x5e9630(0xcd)+_0x1cc663[_0x5e9630(0xd0)]);}}if(_0x3e217a['length']>0x0){console[_0x5e9630(0xc3)](_0x2bb4a2[_0x5e9630(0xb7)]);for(const _0x13dadf of _0x3e217a['sort']((_0x453c85,_0x4c43a7)=>_0x453c85['name'][_0x5e9630(0xda)](_0x4c43a7['name']))){const _0x11eda5=_0x2bb4a2[_0x5e9630(0xd4)](_0x13dadf['name'],_0x25401b),_0x333d79=_0x13dadf['environmentKey']?'\x20('+_0x13dadf['environmentKey']+')':'',_0x586d22=_0x13dadf['sessionUpdatedAt']?_0x5e9630(0xb8)+_0x13dadf['sessionUpdatedAt']+')':'no\x20session';console[_0x5e9630(0xc3)]('\x20\x20'+(_0x11eda5?'*\x20':'\x20\x20')+_0x13dadf['name']+'\x20[cloud]'+_0x333d79),console['log']('\x20\x20\x20\x20\x20\x20Session:\x20'+_0x586d22);}}_0x25401b&&console[_0x5e9630(0xc3)]('\x0a*\x20=\x20active\x20profile');}
1
+ const _0x3aca8d=_0x97cc;(function(_0x39b346,_0x11ffb5){const _0x3c5b85=_0x97cc,_0x5204cf=_0x39b346();while(!![]){try{const _0x33bcb1=parseInt(_0x3c5b85(0x86))/0x1+parseInt(_0x3c5b85(0x8b))/0x2+parseInt(_0x3c5b85(0x7f))/0x3*(-parseInt(_0x3c5b85(0x6b))/0x4)+-parseInt(_0x3c5b85(0x6f))/0x5+parseInt(_0x3c5b85(0x85))/0x6+-parseInt(_0x3c5b85(0x76))/0x7*(parseInt(_0x3c5b85(0x73))/0x8)+parseInt(_0x3c5b85(0x88))/0x9*(parseInt(_0x3c5b85(0x82))/0xa);if(_0x33bcb1===_0x11ffb5)break;else _0x5204cf['push'](_0x5204cf['shift']());}catch(_0x18cc42){_0x5204cf['push'](_0x5204cf['shift']());}}}(_0x1ab9,0x6ec4b));import{readdir,stat}from'fs/promises';import{join}from'path';import{existsSync}from'fs';function _0x97cc(_0x105210,_0x2b6a8a){_0x105210=_0x105210-0x67;const _0x1ab953=_0x1ab9();let _0x97cc08=_0x1ab953[_0x105210];return _0x97cc08;}import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';import{getToken}from'./utils/keychain.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const NON_ENV_DIRS=['sessions',_0x3aca8d(0x7b),'reports',_0x3aca8d(0x7d),'ci'];export async function getEnvNames(){const _0x1a7e6a=_0x3aca8d,_0x4ea675={'KtOJI':function(_0x26efe4){return _0x26efe4();},'cuiYa':function(_0x3c43ca){return _0x3c43ca();},'nZEQO':function(_0x5ff423,_0x4e63db,_0x3deb9c){return _0x5ff423(_0x4e63db,_0x3deb9c);},'FvcrW':function(_0x427d22,_0xb08c05){return _0x427d22(_0xb08c05);},'LdAzt':_0x1a7e6a(0x7d),'hnKOm':function(_0x53e6e7,_0x17dcd5,_0x2401e9){return _0x53e6e7(_0x17dcd5,_0x2401e9);},'mjAsV':function(_0x59f2d7,_0x3d08b0){return _0x59f2d7(_0x3d08b0);},'ikoHS':function(_0xaeaa7d,_0x3e548b){return _0xaeaa7d(_0x3e548b);},'ZQxAa':_0x1a7e6a(0x77)},_0x166a65=_0x4ea675['KtOJI'](getRangerDir);if(!existsSync(_0x166a65))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x2c47a9=await _0x4ea675[_0x1a7e6a(0x69)](readActiveProfileName),_0x1317bd=[],_0x53b600={},_0x14022a=_0x4ea675[_0x1a7e6a(0x8f)](join,_0x166a65,_0x1a7e6a(0x7d));if(existsSync(_0x14022a)){const _0x592bf2=await readdir(_0x14022a);for(const _0x221b1b of _0x592bf2){const _0x451083=join(_0x14022a,_0x221b1b),_0x564c57=await _0x4ea675['FvcrW'](stat,_0x451083);_0x564c57['isDirectory']()&&(_0x1317bd['push'](_0x221b1b),_0x53b600[_0x221b1b]=_0x4ea675['LdAzt']);}}const _0x243622=_0x4ea675['nZEQO'](join,_0x166a65,'ci');if(existsSync(_0x243622)){const _0x59796=await _0x4ea675[_0x1a7e6a(0x72)](readdir,_0x243622);for(const _0xede663 of _0x59796){const _0x3a20d9=_0x4ea675[_0x1a7e6a(0x75)](join,_0x243622,_0xede663),_0x3de9e4=await _0x4ea675[_0x1a7e6a(0x84)](stat,_0x3a20d9);_0x3de9e4[_0x1a7e6a(0x8a)]()&&(_0x1317bd[_0x1a7e6a(0x6e)](_0xede663),_0x53b600[_0xede663]='ci');}}const _0x10fc38=await _0x4ea675[_0x1a7e6a(0x79)](readdir,_0x166a65);for(const _0x2d6bd6 of _0x10fc38){if(NON_ENV_DIRS[_0x1a7e6a(0x81)](_0x2d6bd6))continue;if(_0x2d6bd6['startsWith']('.'))continue;if(_0x2d6bd6['endsWith']('.txt'))continue;const _0x4e1e11=join(_0x166a65,_0x2d6bd6),_0x2c05a3=await stat(_0x4e1e11);_0x2c05a3['isDirectory']()&&existsSync(_0x4ea675['hnKOm'](join,_0x4e1e11,_0x4ea675['ZQxAa']))&&(!_0x1317bd[_0x1a7e6a(0x81)](_0x2d6bd6)&&(_0x1317bd[_0x1a7e6a(0x6e)](_0x2d6bd6),_0x53b600[_0x2d6bd6]='legacy'));}return{'envNames':_0x1317bd,'activeEnv':_0x2c47a9,'envTypes':_0x53b600};}function _0x1ab9(){const _0x3d265b=['error','push','3067910qfRtFa','length','YcWyJ','FvcrW','425488PYloYc','DnCWg','hnKOm','84hsoFHh','settings.json','\x0a*\x20=\x20active\x20profile','ikoHS','\x20[cloud]','bug-bashes','sort','local','localeCompare','156LzETuY','LejJK','includes','10mVHIkj','baseUrl','mjAsV','1904790MSgPWv','847586iTaHdk','message','7793793qoiTvb','environmentDetails','isDirectory','1025362omTHCd','log','Run:\x20ranger\x20profile\x20add\x20<profile-name>','name','nZEQO','sessionUpdatedAt','tgwYX','\x0aCloud\x20Profiles:','cuiYa','pZSAB','64476qJPgNp','no\x20session'];_0x1ab9=function(){return _0x3d265b;};return _0x1ab9();}export async function envList(){const _0x1928aa=_0x3aca8d,_0x3b9889={'YcWyJ':function(_0x5ede36,_0x28f639){return _0x5ede36 instanceof _0x28f639;},'LejJK':function(_0x2c1d92,_0x49c93b){return _0x2c1d92(_0x49c93b);},'mdUtJ':function(_0x253427,_0x458d99){return _0x253427===_0x458d99;},'PmRxC':'\x0aNo\x20profiles\x20found.','WDezK':_0x1928aa(0x8d),'pZSAB':'legacy','tgwYX':function(_0x74e9fa,_0x2aadcb){return _0x74e9fa>_0x2aadcb;},'yNIIw':_0x1928aa(0x68),'DnCWg':_0x1928aa(0x6c)},{envNames:_0x3939ea,activeEnv:_0xc4435a,envTypes:_0x26d55e}=await getEnvNames();let _0x59428=[];const _0x1c5552=await getToken();if(_0x1c5552)try{_0x59428=await listCloudProfiles();}catch(_0x2f4a5d){console[_0x1928aa(0x6d)]('\x0aWarning:\x20could\x20not\x20fetch\x20cloud\x20profiles:\x20'+(_0x3b9889[_0x1928aa(0x71)](_0x2f4a5d,Error)?_0x2f4a5d[_0x1928aa(0x87)]:_0x3b9889['LejJK'](String,_0x2f4a5d)));}if(_0x3939ea['length']===0x0&&_0x3b9889['mdUtJ'](_0x59428[_0x1928aa(0x70)],0x0)){console['log'](_0x3b9889['PmRxC']),console['log'](_0x3b9889['WDezK']);return;}const _0x4ccb8c=new Set(_0x59428['map'](_0x1517e3=>_0x1517e3['name']));if(_0x3939ea[_0x1928aa(0x70)]>0x0){console['log']('\x0aLocal\x20Profiles\x20(legacy):');for(const _0x583165 of _0x3939ea[_0x1928aa(0x7c)]()){const _0x138671=_0x583165===_0xc4435a&&!_0x4ccb8c['has'](_0x583165),_0x4dd337=_0x26d55e[_0x583165]||'local',_0x3b0810=await _0x3b9889[_0x1928aa(0x80)](loadSettings,_0x583165),_0x210dd8=_0x4dd337===_0x3b9889[_0x1928aa(0x6a)]?'':'\x20['+_0x4dd337+']';console[_0x1928aa(0x8c)]('\x20\x20'+(_0x138671?'*\x20':'\x20\x20')+_0x583165+_0x210dd8),_0x3b0810['baseUrl']&&console[_0x1928aa(0x8c)]('\x20\x20\x20\x20\x20\x20URL:\x20'+_0x3b0810[_0x1928aa(0x83)]),_0x3b0810[_0x1928aa(0x89)]&&console[_0x1928aa(0x8c)]('\x20\x20\x20\x20\x20\x20Details:\x20'+_0x3b0810[_0x1928aa(0x89)]);}}if(_0x3b9889[_0x1928aa(0x67)](_0x59428['length'],0x0)){console['log'](_0x3b9889['yNIIw']);for(const _0x51962d of _0x59428[_0x1928aa(0x7c)]((_0x3c1cd4,_0x27fe7d)=>_0x3c1cd4['name'][_0x1928aa(0x7e)](_0x27fe7d[_0x1928aa(0x8e)]))){const _0xa0b008=_0x51962d['name']===_0xc4435a,_0x40291d=_0x51962d['environmentKey']?'\x20('+_0x51962d['environmentKey']+')':'',_0x5cabde=_0x51962d['sessionUpdatedAt']?'cached\x20(updated\x20'+_0x51962d[_0x1928aa(0x90)]+')':_0x3b9889[_0x1928aa(0x74)];console['log']('\x20\x20'+(_0xa0b008?'*\x20':'\x20\x20')+_0x51962d['name']+_0x1928aa(0x7a)+_0x40291d),console['log']('\x20\x20\x20\x20\x20\x20Session:\x20'+_0x5cabde);}}_0xc4435a&&console['log'](_0x1928aa(0x78));}