@ranger-testing/ranger-cli 3.0.1-alpha.aab0a1c-26 → 3.0.1-alpha.ffffb5b-28

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 (81) 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/playwrightCli.js +1 -1
  60. package/build/commands/utils/profileMessages.js +1 -1
  61. package/build/commands/utils/profileSetupBanner.js +1 -1
  62. package/build/commands/utils/projectsConfig.js +1 -1
  63. package/build/commands/utils/rangerConfig.js +1 -1
  64. package/build/commands/utils/rangerRoot.js +1 -1
  65. package/build/commands/utils/resolveProfileContext.js +1 -1
  66. package/build/commands/utils/resolveProfileUrl.js +1 -1
  67. package/build/commands/utils/retry.js +1 -1
  68. package/build/commands/utils/sessionCache.js +1 -1
  69. package/build/commands/utils/settings.js +1 -1
  70. package/build/commands/utils/skillContent.js +1 -1
  71. package/build/commands/utils/skills.js +1 -1
  72. package/build/commands/utils/stitchWebmFiles.js +1 -1
  73. package/build/commands/utils/telemetry.js +1 -1
  74. package/build/commands/utils/tokenRefresh.js +1 -1
  75. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  76. package/build/commands/utils/userApi.js +1 -1
  77. package/build/commands/utils/version.js +1 -1
  78. package/build/commands/verifyFeature.js +1 -1
  79. package/build/commands/verifyFeatureCli.js +1 -1
  80. package/build/commands/verifyFeatureNovaCli.js +1 -1
  81. package/package.json +2 -2
@@ -1 +1 @@
1
- function _0x3a2c(){const _0x652944=['1567HHrAIx','22948gSkzbd','950450NtgVGs','464490MirYbZ','ranger\x20profile\x20add\x20local','9qLzONj','168RdplkT','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20','286MfURUG','PikOi','1432nZCWkn','3138840WODzNp','10919150MmHvev','7133RuArmO'];_0x3a2c=function(){return _0x652944;};return _0x3a2c();}function _0x4d4d(_0x2722b2,_0x90d759){_0x2722b2=_0x2722b2-0x67;const _0x3a2ced=_0x3a2c();let _0x4d4d64=_0x3a2ced[_0x2722b2];return _0x4d4d64;}const _0x4ceed1=_0x4d4d;(function(_0x47a7de,_0x3f6998){const _0x4e8b6=_0x4d4d,_0xc9b45=_0x47a7de();while(!![]){try{const _0xb0ecd9=parseInt(_0x4e8b6(0x6c))/0x1*(parseInt(_0x4e8b6(0x74))/0x2)+-parseInt(_0x4e8b6(0x72))/0x3*(-parseInt(_0x4e8b6(0x6d))/0x4)+parseInt(_0x4e8b6(0x6e))/0x5+-parseInt(_0x4e8b6(0x6f))/0x6+parseInt(_0x4e8b6(0x6b))/0x7*(parseInt(_0x4e8b6(0x68))/0x8)+parseInt(_0x4e8b6(0x71))/0x9*(parseInt(_0x4e8b6(0x69))/0xa)+-parseInt(_0x4e8b6(0x6a))/0xb;if(_0xb0ecd9===_0x3f6998)break;else _0xc9b45['push'](_0xc9b45['shift']());}catch(_0x50fe23){_0xc9b45['push'](_0xc9b45['shift']());}}}(_0x3a2c,0x2777f));const DEFAULT_PROFILE_COMMAND=_0x4ceed1(0x70);export function formatProfileRequiredMessage(_0x540191){const _0x1a9758=_0x4ceed1,_0x499c71={'PikOi':function(_0x513d6e,_0x245f22){return _0x513d6e(_0x245f22);}},_0x76b500=_0x540191?_0x499c71[_0x1a9758(0x67)](_0x540191,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x1a9758(0x73)+_0x76b500+'.';}
1
+ (function(_0x5d285f,_0x318a42){const _0x516ebf=_0x115a,_0x163d55=_0x5d285f();while(!![]){try{const _0x1fcce3=-parseInt(_0x516ebf(0x6d))/0x1*(parseInt(_0x516ebf(0x72))/0x2)+parseInt(_0x516ebf(0x71))/0x3*(-parseInt(_0x516ebf(0x6a))/0x4)+-parseInt(_0x516ebf(0x74))/0x5*(-parseInt(_0x516ebf(0x6b))/0x6)+parseInt(_0x516ebf(0x73))/0x7*(parseInt(_0x516ebf(0x6e))/0x8)+parseInt(_0x516ebf(0x6c))/0x9+parseInt(_0x516ebf(0x75))/0xa+-parseInt(_0x516ebf(0x70))/0xb*(-parseInt(_0x516ebf(0x6f))/0xc);if(_0x1fcce3===_0x318a42)break;else _0x163d55['push'](_0x163d55['shift']());}catch(_0x23fa2e){_0x163d55['push'](_0x163d55['shift']());}}}(_0x1480,0x7080b));const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';function _0x115a(_0x3f53d3,_0x37b3c1){_0x3f53d3=_0x3f53d3-0x6a;const _0x148067=_0x1480();let _0x115a9c=_0x148067[_0x3f53d3];return _0x115a9c;}function _0x1480(){const _0x1ec054=['10BlJxLH','8qCsVZa','7149324vslOKN','11ywVSNm','63gavAEZ','67430jRgQbY','777385GdrXkR','5815caXBqE','692610kUViHO','166372mMwNuO','1596atdtxw','5273667LiDyoX'];_0x1480=function(){return _0x1ec054;};return _0x1480();}export function formatProfileRequiredMessage(_0x1eee90){const _0x53d427={'DNLqm':function(_0x1e2c6e,_0x31c3d3){return _0x1e2c6e(_0x31c3d3);}},_0x229116=_0x1eee90?_0x53d427['DNLqm'](_0x1eee90,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20'+_0x229116+'.';}
@@ -1 +1 @@
1
- function _0x1847(){const _0x223693=['1158519KpfzZc','2548936cxhpAA','<div\x20class=\x22ranger-banner__message\x22>',';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','5471694yxNEKm','2361555BzHexy','6yYYKxe','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','HrZDp','lTSrB','zxaEo','459816MgWFss','75026ZVmArI','<div\x20class=\x22ranger-banner__content\x22>','4fWOhBo','2049415Rthyxv'];_0x1847=function(){return _0x223693;};return _0x1847();}function _0x3f31(_0x893be2,_0x474b6f){_0x893be2=_0x893be2-0x145;const _0x1847a7=_0x1847();let _0x3f317d=_0x1847a7[_0x893be2];return _0x3f317d;}(function(_0xc58e5f,_0x5127d4){const _0x1cdda8=_0x3f31,_0x17885c=_0xc58e5f();while(!![]){try{const _0x5efcff=-parseInt(_0x1cdda8(0x14c))/0x1+parseInt(_0x1cdda8(0x14b))/0x2+parseInt(_0x1cdda8(0x150))/0x3*(-parseInt(_0x1cdda8(0x14e))/0x4)+parseInt(_0x1cdda8(0x14f))/0x5*(parseInt(_0x1cdda8(0x146))/0x6)+parseInt(_0x1cdda8(0x145))/0x7+parseInt(_0x1cdda8(0x151))/0x8+-parseInt(_0x1cdda8(0x155))/0x9;if(_0x5efcff===_0x5127d4)break;else _0x17885c['push'](_0x17885c['shift']());}catch(_0x428a39){_0x17885c['push'](_0x17885c['shift']());}}}(_0x1847,0x37530));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x412707=_0x3f31,_0x3e2984={'zxaEo':function(_0x73cbd9,_0x5a0e56){return _0x73cbd9+_0x5a0e56;},'lecFO':function(_0x29f878,_0x51fe0e){return _0x29f878+_0x51fe0e;},'HrZDp':function(_0x31c916,_0x38757b){return _0x31c916+_0x38757b;},'GiuCu':'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','lTSrB':_0x412707(0x152)},_0x38d7ab=_0x3e2984[_0x412707(0x14a)](_0x3e2984[_0x412707(0x14a)](_0x3e2984['lecFO'](_0x3e2984[_0x412707(0x148)](_0x412707(0x14d)+_0x3e2984['GiuCu'],_0x3e2984[_0x412707(0x149)])+'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>',_0x412707(0x154))+'</div>','</div>'),_0x412707(0x147)),_0xd5f33f='\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a';return'\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20'+JSON['stringify'](_0x38d7ab)+';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20'+JSON['stringify'](_0xd5f33f)+_0x412707(0x153);})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x5f056c){await _0x5f056c['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
1
+ (function(_0x254bf4,_0x4ddd36){const _0x4369ea=_0x3445,_0xd0ffcc=_0x254bf4();while(!![]){try{const _0x1ca7fc=-parseInt(_0x4369ea(0x1cd))/0x1*(parseInt(_0x4369ea(0x1d9))/0x2)+parseInt(_0x4369ea(0x1d1))/0x3*(-parseInt(_0x4369ea(0x1dc))/0x4)+-parseInt(_0x4369ea(0x1cc))/0x5+-parseInt(_0x4369ea(0x1c9))/0x6+-parseInt(_0x4369ea(0x1d3))/0x7+parseInt(_0x4369ea(0x1d5))/0x8*(parseInt(_0x4369ea(0x1dd))/0x9)+parseInt(_0x4369ea(0x1cf))/0xa;if(_0x1ca7fc===_0x4ddd36)break;else _0xd0ffcc['push'](_0xd0ffcc['shift']());}catch(_0x3d841c){_0xd0ffcc['push'](_0xd0ffcc['shift']());}}}(_0x8196,0x8366d));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x10b0a3=_0x3445,_0x498fca={'kOYWP':function(_0x5ab628,_0x5611f8){return _0x5ab628+_0x5611f8;},'PgQSc':function(_0x13fd84,_0x22d8f1){return _0x13fd84+_0x22d8f1;},'bGHLx':_0x10b0a3(0x1d0),'ymbAo':'<div\x20class=\x22ranger-banner__message\x22>','WsfrQ':_0x10b0a3(0x1db),'cCMwq':_0x10b0a3(0x1de)},_0x5d7a1f=_0x498fca['kOYWP'](_0x498fca['PgQSc']('<div\x20class=\x22ranger-banner__content\x22>'+_0x498fca[_0x10b0a3(0x1d7)]+_0x498fca[_0x10b0a3(0x1d4)],_0x10b0a3(0x1da)),_0x498fca[_0x10b0a3(0x1d6)])+'</div>'+_0x10b0a3(0x1ce)+_0x498fca[_0x10b0a3(0x1ca)],_0x10f684='\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a';return _0x10b0a3(0x1d8)+JSON['stringify'](_0x5d7a1f)+_0x10b0a3(0x1cb)+JSON['stringify'](_0x10f684)+';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a';})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}function _0x8196(){const _0x3b9947=['WsfrQ','bGHLx','\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20','8Fdehul','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','24KEFePD','21663AcxARS','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','1977060ONvpyc','cCMwq',';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20','492000uUCFjQ','133726KSKTvY','</div>','23600650KjomnM','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','388671OpkyXC','addInitScript','4093257JqWQVg','ymbAo','1672MdbQdm'];_0x8196=function(){return _0x3b9947;};return _0x8196();}function _0x3445(_0x13021c,_0x5686f7){_0x13021c=_0x13021c-0x1c9;const _0x8196c2=_0x8196();let _0x344544=_0x8196c2[_0x13021c];return _0x344544;}export async function addProfileSetupBanner(_0xf4e743){const _0x421394=_0x3445;await _0xf4e743[_0x421394(0x1d2)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
@@ -1 +1 @@
1
- (function(_0x3876ff,_0x5573ad){const _0x329b6c=_0x54c2,_0x5e0e19=_0x3876ff();while(!![]){try{const _0x1d7afa=parseInt(_0x329b6c(0x1e8))/0x1+parseInt(_0x329b6c(0x1f6))/0x2+parseInt(_0x329b6c(0x1ee))/0x3+parseInt(_0x329b6c(0x1d3))/0x4*(parseInt(_0x329b6c(0x1ea))/0x5)+-parseInt(_0x329b6c(0x1da))/0x6*(-parseInt(_0x329b6c(0x1f3))/0x7)+-parseInt(_0x329b6c(0x1f4))/0x8+-parseInt(_0x329b6c(0x1ed))/0x9;if(_0x1d7afa===_0x5573ad)break;else _0x5e0e19['push'](_0x5e0e19['shift']());}catch(_0x4bb691){_0x5e0e19['push'](_0x5e0e19['shift']());}}}(_0x2e4e,0x7c33f));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x5b7f92=_0x54c2,_0x395fcc={'ZOGTn':_0x5b7f92(0x1e5)};return join(getRangerHomeDir(),_0x395fcc['ZOGTn']);}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x146210=_0x54c2,_0x47ca94={'SlLLN':function(_0x2a0eaa){return _0x2a0eaa();},'IyGsB':function(_0x59f6ce,_0xe7149c){return _0x59f6ce(_0xe7149c);},'KrOcA':function(_0xc2d31c,_0x1da57e,_0x40db7e){return _0xc2d31c(_0x1da57e,_0x40db7e);},'aVBvp':_0x146210(0x1d5),'knqlv':function(_0x43253a,_0x17c3d1){return _0x43253a instanceof _0x17c3d1;},'sDFXT':function(_0x22d17e){return _0x22d17e();},'xGQLz':function(_0x4685e1){return _0x4685e1();},'viwWq':function(_0x1b594f,_0x5d69b8){return _0x1b594f!==_0x5d69b8;},'ylgRo':_0x146210(0x1e2),'NABGl':function(_0x2e5f7d){return _0x2e5f7d();}},_0x4c593a=_0x47ca94[_0x146210(0x1dd)](getProjectsConfigPath);if(!_0x47ca94['IyGsB'](existsSync,_0x4c593a))return emptyConfig();let _0x45a28d;try{_0x45a28d=_0x47ca94['KrOcA'](readFileSync,_0x4c593a,_0x47ca94['aVBvp']);}catch(_0x4faadc){const _0x3b9d1b=_0x47ca94['knqlv'](_0x4faadc,Error)?_0x4faadc[_0x146210(0x1d7)]:String(_0x4faadc);return console['warn']('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x4c593a+':\x20'+_0x3b9d1b+'.\x20Ignoring\x20local\x20profile\x20overrides.'),_0x47ca94['sDFXT'](emptyConfig);}let _0x335731;try{_0x335731=JSON['parse'](_0x45a28d);}catch(_0x3ce06a){const _0x440efd=_0x47ca94['knqlv'](_0x3ce06a,Error)?_0x3ce06a['message']:String(_0x3ce06a);return console['warn'](_0x146210(0x1de)+_0x4c593a+'\x20is\x20not\x20valid\x20JSON\x20('+_0x440efd+_0x146210(0x1e3)),_0x47ca94['xGQLz'](emptyConfig);}if(!_0x335731||_0x47ca94[_0x146210(0x1d2)](typeof _0x335731,_0x47ca94['ylgRo'])||Array['isArray'](_0x335731)||_0x335731['version']!==CURRENT_VERSION||_0x47ca94['viwWq'](typeof _0x335731['projects'],'object')||_0x335731['projects']===null||Array['isArray'](_0x335731['projects']))return console['warn']('[ranger]\x20Warning:\x20'+_0x4c593a+'\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.'),_0x47ca94['NABGl'](emptyConfig);return _0x335731;}export function writeProjectsConfig(_0x47bf6c){const _0x284e42=_0x54c2,_0x1f9bc4={'RzgNP':function(_0x464af1){return _0x464af1();},'Jhuzd':function(_0x2117b4,_0x11dbbc){return _0x2117b4(_0x11dbbc);},'ZAKdC':function(_0x3813ee,_0x330527,_0x510ce5){return _0x3813ee(_0x330527,_0x510ce5);},'iexlX':function(_0x32f606,_0x43981f,_0x38cafd,_0x20e714){return _0x32f606(_0x43981f,_0x38cafd,_0x20e714);}},_0x467e4d=_0x1f9bc4[_0x284e42(0x1d1)](getProjectsConfigPath),_0x1b3b49=dirname(_0x467e4d);!_0x1f9bc4['Jhuzd'](existsSync,_0x1b3b49)&&_0x1f9bc4['ZAKdC'](mkdirSync,_0x1b3b49,{'recursive':!![]});const _0x2a918b=_0x467e4d+'.'+process['pid']+'.'+Date[_0x284e42(0x1db)]()+'.tmp',_0x3c4a0d=JSON[_0x284e42(0x1e4)](_0x47bf6c,null,0x2)+'\x0a';try{_0x1f9bc4[_0x284e42(0x1d9)](writeFileSync,_0x2a918b,_0x3c4a0d,{'encoding':'utf-8','mode':0x180}),renameSync(_0x2a918b,_0x467e4d);}catch(_0x31bb1e){try{existsSync(_0x2a918b)&&_0x1f9bc4['Jhuzd'](unlinkSync,_0x2a918b);}catch{}throw _0x31bb1e;}}export function readProfileOverrides(_0xdbc295,_0x56e64f){const _0x23efcf=_0x54c2,_0x55e5bc=readProjectsConfig(),_0x349e01=_0x55e5bc[_0x23efcf(0x1e9)][_0xdbc295];if(!_0x349e01||!_0x349e01[_0x23efcf(0x1e6)])return null;const _0x1cc19f=_0x349e01[_0x23efcf(0x1e6)][_0x56e64f];if(!_0x1cc19f||!_0x1cc19f[_0x23efcf(0x1f7)])return null;return _0x1cc19f['settings']??null;}export function setProfileOverride(_0x30d34c,_0x4e7548,_0x43e204,_0x863411){const _0x3e41a5=_0x54c2,_0x22049e={'XPIeD':_0x3e41a5(0x1df),'mbHQm':function(_0x2ebc09){return _0x2ebc09();},'jikrc':function(_0xacb719,_0x15b51e,_0x964e21,_0x160067){return _0xacb719(_0x15b51e,_0x964e21,_0x160067);}};if(!_0x43e204)throw new Error(_0x22049e[_0x3e41a5(0x1f5)]);const _0x223b3c=_0x22049e[_0x3e41a5(0x1e1)](readProjectsConfig),_0x281125=_0x223b3c['projects'][_0x30d34c]??={},_0xa2862f=_0x281125['profiles']??={},_0x2a440d=_0xa2862f[_0x4e7548]??={},_0x72ea82=_0x2a440d['settings']??={};_0x22049e['jikrc'](setByKeyPath,_0x72ea82,_0x43e204,_0x863411),writeProjectsConfig(_0x223b3c);}function _0x2e4e(){const _0x463ef9=['RzgNP','viwWq','2964LvGMmw','ZTsjN','utf-8','nBLya','message','split','iexlX','1170282PYsaev','now','headers','SlLLN','[ranger]\x20Warning:\x20','keyPath\x20is\x20required','EHtlc','mbHQm','object',').\x20Ignoring\x20local\x20profile\x20overrides.','stringify','projects.json','profiles','FEGdY','351920tfvSKx','projects','3415iDYiTq','isArray','length','9264492IHcHaa','781659vuthcN','dehGc','pilLc','entries','lastProfile','14lSAcps','2793016xuWkBe','XPIeD','757160yEvwsF','settings','LNpIP','Arhvs'];_0x2e4e=function(){return _0x463ef9;};return _0x2e4e();}export function unsetProfileOverride(_0x3d82a8,_0xcf5fd3,_0x448bfb){const _0x540bb3=_0x54c2,_0x1bf916={'FEGdY':_0x540bb3(0x1df),'EHtlc':function(_0x1f9f89){return _0x1f9f89();},'qOcdq':function(_0x6db4c5,_0x52ac8f){return _0x6db4c5(_0x52ac8f);}};if(!_0x448bfb)throw new Error(_0x1bf916[_0x540bb3(0x1e7)]);const _0x230b0e=_0x1bf916[_0x540bb3(0x1e0)](readProjectsConfig),_0x37bd5c=_0x230b0e[_0x540bb3(0x1e9)][_0x3d82a8];if(!_0x37bd5c?.['profiles'])return![];const _0x343a89=_0x37bd5c[_0x540bb3(0x1e6)][_0xcf5fd3];if(!_0x343a89?.['settings'])return![];const _0x7a6f1c=deleteByKeyPath(_0x343a89['settings'],_0x448bfb);if(!_0x7a6f1c)return![];return _0x1bf916['qOcdq'](writeProjectsConfig,_0x230b0e),!![];}export function resetProfileOverrides(_0x25c726,_0x43d3fe){const _0x3c49ee=_0x54c2,_0x576ab5={'ZTsjN':function(_0x5424b4,_0x1ef363){return _0x5424b4 in _0x1ef363;},'nBLya':function(_0x116fac,_0x49733f){return _0x116fac(_0x49733f);}},_0x379caa=readProjectsConfig(),_0x10bc8f=_0x379caa[_0x3c49ee(0x1e9)][_0x25c726];if(!_0x10bc8f?.[_0x3c49ee(0x1e6)])return;if(!_0x576ab5[_0x3c49ee(0x1d4)](_0x43d3fe,_0x10bc8f[_0x3c49ee(0x1e6)]))return;delete _0x10bc8f[_0x3c49ee(0x1e6)][_0x43d3fe],Object['keys'](_0x10bc8f[_0x3c49ee(0x1e6)])[_0x3c49ee(0x1ec)]===0x0&&(!_0x10bc8f['lastProfile']?delete _0x379caa[_0x3c49ee(0x1e9)][_0x25c726]:_0x10bc8f[_0x3c49ee(0x1e6)]={}),_0x576ab5[_0x3c49ee(0x1d6)](writeProjectsConfig,_0x379caa);}export function readLastProfile(_0x57e9cc){const _0x265ea5=_0x54c2,_0x46640a={'aHyoM':function(_0xdb185){return _0xdb185();}},_0xc80b25=_0x46640a['aHyoM'](readProjectsConfig),_0x141603=_0xc80b25['projects'][_0x57e9cc];return _0x141603?.[_0x265ea5(0x1f2)]??null;}export function writeLastProfile(_0x201b92,_0x25445e){const _0x81e1b=_0x54c2,_0x48f223={'BrplL':function(_0x22380a,_0x216588){return _0x22380a(_0x216588);}},_0x28a527=readProjectsConfig(),_0x4be445=_0x28a527[_0x81e1b(0x1e9)][_0x201b92]??={};_0x4be445['lastProfile']=_0x25445e,_0x48f223['BrplL'](writeProjectsConfig,_0x28a527);}export function clearLastProfile(_0x5643af,_0x1e8584){const _0x27bde6=_0x54c2,_0x2d14d1={'ujOOp':function(_0x21f438){return _0x21f438();},'EHzjd':function(_0x53b089,_0x37a9eb){return _0x53b089===_0x37a9eb;}},_0x34cf75=_0x2d14d1['ujOOp'](readProjectsConfig),_0x48a63d=_0x34cf75[_0x27bde6(0x1e9)][_0x5643af];if(!_0x48a63d||_0x48a63d[_0x27bde6(0x1f2)]!==_0x1e8584)return![];return delete _0x48a63d[_0x27bde6(0x1f2)],(!_0x48a63d['profiles']||_0x2d14d1['EHzjd'](Object['keys'](_0x48a63d[_0x27bde6(0x1e6)])['length'],0x0))&&delete _0x34cf75[_0x27bde6(0x1e9)][_0x5643af],writeProjectsConfig(_0x34cf75),!![];}export function mergeCloudProfileSettings(_0x1c6b89,_0x3ddaf0){const _0x5dcb41=_0x54c2,_0x4ce1a0={'Arhvs':function(_0x20b465,_0x18389a){return _0x20b465===_0x18389a;},'dehGc':function(_0x29f163,_0x52e7b9){return _0x29f163(_0x52e7b9);},'LNpIP':function(_0x282299,_0x35a1f5){return _0x282299===_0x35a1f5;}},_0x5e41ce={..._0x1c6b89??{}};if(!_0x3ddaf0)return _0x5e41ce;for(const [_0x22f2b9,_0x5ae7bb]of Object[_0x5dcb41(0x1f1)](_0x3ddaf0)){if(_0x5ae7bb===undefined)continue;if(_0x5ae7bb===null){delete _0x5e41ce[_0x22f2b9];continue;}if(_0x4ce1a0[_0x5dcb41(0x1d0)](_0x22f2b9,_0x5dcb41(0x1dc))||_0x22f2b9==='setupHeaders'){const _0x554e15=_0x4ce1a0[_0x5dcb41(0x1ef)](asRecord,_0x5e41ce[_0x22f2b9])??{},_0x43166c=asRecord(_0x5ae7bb);if(!_0x43166c){_0x5e41ce[_0x22f2b9]=_0x5ae7bb;continue;}const _0x19efac={..._0x554e15};for(const [_0x322661,_0x2e3767]of Object[_0x5dcb41(0x1f1)](_0x43166c)){if(_0x4ce1a0[_0x5dcb41(0x1f8)](_0x2e3767,null))delete _0x19efac[_0x322661];else _0x2e3767!==undefined&&(_0x19efac[_0x322661]=_0x2e3767);}_0x5e41ce[_0x22f2b9]=_0x19efac;continue;}_0x5e41ce[_0x22f2b9]=_0x5ae7bb;}return _0x5e41ce;}function asRecord(_0x3f6ed3){const _0x3c28d1=_0x54c2,_0x1cbefd={'KgjTf':_0x3c28d1(0x1e2)};return _0x3f6ed3&&typeof _0x3f6ed3===_0x1cbefd['KgjTf']&&!Array['isArray'](_0x3f6ed3)?_0x3f6ed3:undefined;}function _0x54c2(_0x38bde5,_0x4969d5){_0x38bde5=_0x38bde5-0x1d0;const _0x2e4eb2=_0x2e4e();let _0x54c23c=_0x2e4eb2[_0x38bde5];return _0x54c23c;}function setByKeyPath(_0x3c3233,_0x4d928d,_0x27e2ab){const _0xa19af4=_0x54c2,_0x30c098={'SnSUH':function(_0x3b1b31,_0x907a7c){return _0x3b1b31!==_0x907a7c;}},_0x4b01f3=_0x4d928d['split']('.');let _0x354b62=_0x3c3233;for(let _0x436b38=0x0;_0x436b38<_0x4b01f3[_0xa19af4(0x1ec)]-0x1;_0x436b38++){const _0x460ef9=_0x4b01f3[_0x436b38],_0x206426=_0x354b62[_0x460ef9];(!_0x206426||_0x30c098['SnSUH'](typeof _0x206426,_0xa19af4(0x1e2))||Array[_0xa19af4(0x1eb)](_0x206426))&&(_0x354b62[_0x460ef9]={}),_0x354b62=_0x354b62[_0x460ef9];}_0x354b62[_0x4b01f3[_0x4b01f3[_0xa19af4(0x1ec)]-0x1]]=_0x27e2ab;}function deleteByKeyPath(_0x86a747,_0x75085a){const _0x4cc901=_0x54c2,_0x4b318a={'SBGWA':function(_0x36c4dc,_0x5c9090){return _0x36c4dc!==_0x5c9090;},'pilLc':function(_0x3ca1d6,_0xcf0ff6){return _0x3ca1d6-_0xcf0ff6;}},_0x5dbc96=_0x75085a[_0x4cc901(0x1d8)]('.');let _0x3f1e8f=_0x86a747;for(let _0x3efc06=0x0;_0x3efc06<_0x5dbc96[_0x4cc901(0x1ec)]-0x1;_0x3efc06++){const _0x2a1628=_0x5dbc96[_0x3efc06],_0x2c1854=_0x3f1e8f[_0x2a1628];if(!_0x2c1854||_0x4b318a['SBGWA'](typeof _0x2c1854,_0x4cc901(0x1e2))||Array['isArray'](_0x2c1854))return![];_0x3f1e8f=_0x2c1854;}const _0x5edc4b=_0x5dbc96[_0x4b318a[_0x4cc901(0x1f0)](_0x5dbc96['length'],0x1)];if(!(_0x5edc4b in _0x3f1e8f))return![];return delete _0x3f1e8f[_0x5edc4b],!![];}
1
+ (function(_0x42062c,_0x4ceb6a){const _0x526d9d=_0x40c6,_0x14f828=_0x42062c();while(!![]){try{const _0x39c4f0=parseInt(_0x526d9d(0x1e8))/0x1+parseInt(_0x526d9d(0x1e3))/0x2+-parseInt(_0x526d9d(0x1f0))/0x3+-parseInt(_0x526d9d(0x1ee))/0x4*(parseInt(_0x526d9d(0x1d7))/0x5)+-parseInt(_0x526d9d(0x1f3))/0x6*(-parseInt(_0x526d9d(0x1f4))/0x7)+-parseInt(_0x526d9d(0x1e1))/0x8+parseInt(_0x526d9d(0x1e4))/0x9*(parseInt(_0x526d9d(0x1db))/0xa);if(_0x39c4f0===_0x4ceb6a)break;else _0x14f828['push'](_0x14f828['shift']());}catch(_0x37e526){_0x14f828['push'](_0x14f828['shift']());}}}(_0x304d,0x4dc11));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';function _0x304d(){const _0x4a3242=['keys','lLVcp','keyPath\x20is\x20required','lastProfile','qnYVe','.\x20Ignoring\x20local\x20profile\x20overrides.','warn','879435uDaLvz','\x20is\x20not\x20valid\x20JSON\x20(','split','qtTxg','3197610insHbd','isArray','utf-8','message','length','QIygg','1878632FhVYlv','hwvga','188498iMuQsg','9hlnAOf','now','CCzgS','OyXuY','407410AQynCS','KvTnN','parse','pid','RfzLo','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','8kiPNqf','LvOOR','188202hCfwNw','oBBuR','projects','62742RChriW','98XuzXMV','WazCO','NOOYp','zqxPw','isbcV','[ranger]\x20Warning:\x20','IXZdB','settings','profiles','aPxnr'];_0x304d=function(){return _0x4a3242;};return _0x304d();}import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;function _0x40c6(_0x225c23,_0x1ac527){_0x225c23=_0x225c23-0x1c9;const _0x304d12=_0x304d();let _0x40c6db=_0x304d12[_0x225c23];return _0x40c6db;}export function getProjectsConfigPath(){const _0x5d7d2d=_0x40c6,_0xaedcaa={'isbcV':function(_0x568b07){return _0x568b07();},'qHVdJ':'projects.json'};return join(_0xaedcaa[_0x5d7d2d(0x1ca)](getRangerHomeDir),_0xaedcaa['qHVdJ']);}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x4dd334=_0x40c6,_0x423f61={'vfvHR':function(_0x532814,_0x1f61f4){return _0x532814(_0x1f61f4);},'KbzvO':function(_0x48c498,_0x2eea00,_0xd82652){return _0x48c498(_0x2eea00,_0xd82652);},'bOWeY':function(_0x2c75a9,_0x38d795){return _0x2c75a9 instanceof _0x38d795;},'NOOYp':function(_0x1ffa8e){return _0x1ffa8e();},'qnYVe':function(_0x4121bc,_0x586bdd){return _0x4121bc!==_0x586bdd;},'qtTxg':'object','RfzLo':function(_0x542de1,_0x539c4a){return _0x542de1!==_0x539c4a;}},_0x4fcf4e=getProjectsConfigPath();if(!_0x423f61['vfvHR'](existsSync,_0x4fcf4e))return emptyConfig();let _0x1a72d3;try{_0x1a72d3=_0x423f61['KbzvO'](readFileSync,_0x4fcf4e,'utf-8');}catch(_0xb70d79){const _0x5eaf40=_0x423f61['bOWeY'](_0xb70d79,Error)?_0xb70d79[_0x4dd334(0x1de)]:String(_0xb70d79);return console['warn']('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x4fcf4e+':\x20'+_0x5eaf40+_0x4dd334(0x1d5)),_0x423f61['NOOYp'](emptyConfig);}let _0x1f3968;try{_0x1f3968=JSON[_0x4dd334(0x1ea)](_0x1a72d3);}catch(_0x492d98){const _0x430539=_0x492d98 instanceof Error?_0x492d98[_0x4dd334(0x1de)]:String(_0x492d98);return console['warn']('[ranger]\x20Warning:\x20'+_0x4fcf4e+_0x4dd334(0x1d8)+_0x430539+').\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();}if(!_0x1f3968||_0x423f61[_0x4dd334(0x1d4)](typeof _0x1f3968,_0x423f61[_0x4dd334(0x1da)])||Array['isArray'](_0x1f3968)||_0x1f3968['version']!==CURRENT_VERSION||_0x423f61[_0x4dd334(0x1ec)](typeof _0x1f3968['projects'],_0x423f61[_0x4dd334(0x1da)])||_0x1f3968[_0x4dd334(0x1f2)]===null||Array[_0x4dd334(0x1dc)](_0x1f3968[_0x4dd334(0x1f2)]))return console[_0x4dd334(0x1d6)](_0x4dd334(0x1cb)+_0x4fcf4e+_0x4dd334(0x1ed)),_0x423f61[_0x4dd334(0x1f6)](emptyConfig);return _0x1f3968;}export function writeProjectsConfig(_0x32268b){const _0x50f0a2=_0x40c6,_0x86599c={'zqxPw':function(_0x14c09b){return _0x14c09b();},'RdCfV':function(_0x51983b,_0x10a634){return _0x51983b(_0x10a634);},'sAIZo':function(_0x1f49eb,_0x6f54e6){return _0x1f49eb(_0x6f54e6);},'WazCO':function(_0x1419a1,_0x58507b){return _0x1419a1+_0x58507b;},'wxsRA':function(_0x5cac83,_0xd207e4,_0x546131){return _0x5cac83(_0xd207e4,_0x546131);}},_0x3b10bc=_0x86599c[_0x50f0a2(0x1c9)](getProjectsConfigPath),_0x43014f=_0x86599c['RdCfV'](dirname,_0x3b10bc);!_0x86599c['sAIZo'](existsSync,_0x43014f)&&mkdirSync(_0x43014f,{'recursive':!![]});const _0x1277ee=_0x3b10bc+'.'+process[_0x50f0a2(0x1eb)]+'.'+Date[_0x50f0a2(0x1e5)]()+'.tmp',_0x1cce00=_0x86599c[_0x50f0a2(0x1f5)](JSON['stringify'](_0x32268b,null,0x2),'\x0a');try{writeFileSync(_0x1277ee,_0x1cce00,{'encoding':_0x50f0a2(0x1dd),'mode':0x180}),_0x86599c['wxsRA'](renameSync,_0x1277ee,_0x3b10bc);}catch(_0x2ea119){try{existsSync(_0x1277ee)&&unlinkSync(_0x1277ee);}catch{}throw _0x2ea119;}}export function readProfileOverrides(_0x8b7f9c,_0x142aba){const _0x2ad189=_0x40c6,_0x506d05={'PJwKp':function(_0xff9b74){return _0xff9b74();}},_0x36e0e7=_0x506d05['PJwKp'](readProjectsConfig),_0x2f8010=_0x36e0e7['projects'][_0x8b7f9c];if(!_0x2f8010||!_0x2f8010['profiles'])return null;const _0x5a89ef=_0x2f8010['profiles'][_0x142aba];if(!_0x5a89ef||!_0x5a89ef[_0x2ad189(0x1cd)])return null;return _0x5a89ef[_0x2ad189(0x1cd)]??null;}export function setProfileOverride(_0x48fe13,_0x52d35c,_0x1a261c,_0x14ffa0){const _0x2e5d33=_0x40c6,_0x2a1947={'WyYuc':_0x2e5d33(0x1d2),'qTtPQ':function(_0x4bfee6,_0x29c25c,_0x4d2a61,_0x19db25){return _0x4bfee6(_0x29c25c,_0x4d2a61,_0x19db25);}};if(!_0x1a261c)throw new Error(_0x2a1947['WyYuc']);const _0x281fd9=readProjectsConfig(),_0x3834c2=_0x281fd9[_0x2e5d33(0x1f2)][_0x48fe13]??={},_0x2208d=_0x3834c2[_0x2e5d33(0x1ce)]??={},_0x36e0a6=_0x2208d[_0x52d35c]??={},_0x639d2=_0x36e0a6['settings']??={};_0x2a1947['qTtPQ'](setByKeyPath,_0x639d2,_0x1a261c,_0x14ffa0),writeProjectsConfig(_0x281fd9);}export function unsetProfileOverride(_0x403362,_0x9be8f4,_0x5ee38e){const _0x3d144b=_0x40c6,_0x4c6cb3={'IXZdB':_0x3d144b(0x1d2),'MOSzm':function(_0x49e5c6){return _0x49e5c6();},'LvOOR':function(_0x182b85,_0x3c4c63,_0x55cb4f){return _0x182b85(_0x3c4c63,_0x55cb4f);},'QIygg':function(_0x1c6d1a,_0x40194d){return _0x1c6d1a(_0x40194d);}};if(!_0x5ee38e)throw new Error(_0x4c6cb3[_0x3d144b(0x1cc)]);const _0x45b91a=_0x4c6cb3['MOSzm'](readProjectsConfig),_0x11c4b9=_0x45b91a[_0x3d144b(0x1f2)][_0x403362];if(!_0x11c4b9?.[_0x3d144b(0x1ce)])return![];const _0x13c07a=_0x11c4b9[_0x3d144b(0x1ce)][_0x9be8f4];if(!_0x13c07a?.[_0x3d144b(0x1cd)])return![];const _0x56ed29=_0x4c6cb3[_0x3d144b(0x1ef)](deleteByKeyPath,_0x13c07a['settings'],_0x5ee38e);if(!_0x56ed29)return![];return _0x4c6cb3[_0x3d144b(0x1e0)](writeProjectsConfig,_0x45b91a),!![];}export function resetProfileOverrides(_0x2c2160,_0x4e240c){const _0x287d5f=_0x40c6,_0x5355b5={'lLVcp':function(_0x2fd276){return _0x2fd276();},'KvTnN':function(_0x1707de,_0x4e8e80){return _0x1707de in _0x4e8e80;}},_0x5559fa=_0x5355b5[_0x287d5f(0x1d1)](readProjectsConfig),_0x24b875=_0x5559fa[_0x287d5f(0x1f2)][_0x2c2160];if(!_0x24b875?.[_0x287d5f(0x1ce)])return;if(!_0x5355b5[_0x287d5f(0x1e9)](_0x4e240c,_0x24b875['profiles']))return;delete _0x24b875[_0x287d5f(0x1ce)][_0x4e240c],Object[_0x287d5f(0x1d0)](_0x24b875[_0x287d5f(0x1ce)])['length']===0x0&&(!_0x24b875['lastProfile']?delete _0x5559fa[_0x287d5f(0x1f2)][_0x2c2160]:_0x24b875[_0x287d5f(0x1ce)]={}),writeProjectsConfig(_0x5559fa);}export function readLastProfile(_0x3e4b6b){const _0x78388a=_0x40c6,_0x488321={'Mwhkw':function(_0x417322){return _0x417322();}},_0x215b4f=_0x488321['Mwhkw'](readProjectsConfig),_0x533e70=_0x215b4f['projects'][_0x3e4b6b];return _0x533e70?.[_0x78388a(0x1d3)]??null;}export function writeLastProfile(_0xd2ab8b,_0xeffe3){const _0x58db15=readProjectsConfig(),_0x44d894=_0x58db15['projects'][_0xd2ab8b]??={};_0x44d894['lastProfile']=_0xeffe3,writeProjectsConfig(_0x58db15);}export function clearLastProfile(_0x2d0783,_0x5bfff6){const _0x57293f=_0x40c6,_0x3b36c9={'pyNRV':function(_0x3d15c3){return _0x3d15c3();},'oKAVi':function(_0x4f9f3e,_0x2e452b){return _0x4f9f3e(_0x2e452b);}},_0x2df323=_0x3b36c9['pyNRV'](readProjectsConfig),_0x4aea96=_0x2df323['projects'][_0x2d0783];if(!_0x4aea96||_0x4aea96['lastProfile']!==_0x5bfff6)return![];return delete _0x4aea96[_0x57293f(0x1d3)],(!_0x4aea96['profiles']||Object[_0x57293f(0x1d0)](_0x4aea96['profiles'])['length']===0x0)&&delete _0x2df323[_0x57293f(0x1f2)][_0x2d0783],_0x3b36c9['oKAVi'](writeProjectsConfig,_0x2df323),!![];}export function mergeCloudProfileSettings(_0x56b925,_0x458383){const _0x39d113=_0x40c6,_0x51f061={'CCzgS':function(_0x5c3e3b,_0x1bdb88){return _0x5c3e3b===_0x1bdb88;},'topsE':'headers','PCXtL':function(_0xba8f89,_0x5429cc){return _0xba8f89(_0x5429cc);},'oTkLz':function(_0x353117,_0x5db0bb){return _0x353117===_0x5db0bb;}},_0x3abdca={..._0x56b925??{}};if(!_0x458383)return _0x3abdca;for(const [_0x341e5e,_0x155cea]of Object['entries'](_0x458383)){if(_0x155cea===undefined)continue;if(_0x51f061['CCzgS'](_0x155cea,null)){delete _0x3abdca[_0x341e5e];continue;}if(_0x341e5e===_0x51f061['topsE']||_0x51f061[_0x39d113(0x1e6)](_0x341e5e,'setupHeaders')){const _0x45b7c0=asRecord(_0x3abdca[_0x341e5e])??{},_0x4ae95f=_0x51f061['PCXtL'](asRecord,_0x155cea);if(!_0x4ae95f){_0x3abdca[_0x341e5e]=_0x155cea;continue;}const _0x535144={..._0x45b7c0};for(const [_0x16465c,_0x4a55cd]of Object['entries'](_0x4ae95f)){if(_0x51f061['oTkLz'](_0x4a55cd,null))delete _0x535144[_0x16465c];else _0x4a55cd!==undefined&&(_0x535144[_0x16465c]=_0x4a55cd);}_0x3abdca[_0x341e5e]=_0x535144;continue;}_0x3abdca[_0x341e5e]=_0x155cea;}return _0x3abdca;}function asRecord(_0x12534c){const _0x38fd9f=_0x40c6,_0x222896={'aPxnr':function(_0x3f4f52,_0x4d051d){return _0x3f4f52===_0x4d051d;}};return _0x12534c&&_0x222896[_0x38fd9f(0x1cf)](typeof _0x12534c,'object')&&!Array[_0x38fd9f(0x1dc)](_0x12534c)?_0x12534c:undefined;}function setByKeyPath(_0x2df45f,_0x90ea8f,_0x3e0def){const _0x7d2bb9=_0x40c6,_0x2a63be={'vMwbV':function(_0x30bfa2,_0x3f8b68){return _0x30bfa2<_0x3f8b68;},'OyXuY':function(_0x59e6f8,_0x520b3f){return _0x59e6f8-_0x520b3f;},'hwvga':'object','FDhbq':function(_0xf9d94f,_0x3b8718){return _0xf9d94f-_0x3b8718;}},_0x2d73e2=_0x90ea8f['split']('.');let _0x115541=_0x2df45f;for(let _0x45ff2a=0x0;_0x2a63be['vMwbV'](_0x45ff2a,_0x2a63be[_0x7d2bb9(0x1e7)](_0x2d73e2['length'],0x1));_0x45ff2a++){const _0x4f642d=_0x2d73e2[_0x45ff2a],_0x40894b=_0x115541[_0x4f642d];(!_0x40894b||typeof _0x40894b!==_0x2a63be[_0x7d2bb9(0x1e2)]||Array[_0x7d2bb9(0x1dc)](_0x40894b))&&(_0x115541[_0x4f642d]={}),_0x115541=_0x115541[_0x4f642d];}_0x115541[_0x2d73e2[_0x2a63be['FDhbq'](_0x2d73e2[_0x7d2bb9(0x1df)],0x1)]]=_0x3e0def;}function deleteByKeyPath(_0x3e81bb,_0x9b03c9){const _0x13951e=_0x40c6,_0x353764={'oxnoR':function(_0x2b2f15,_0x4f6eae){return _0x2b2f15<_0x4f6eae;},'QWnxG':'object','oBBuR':function(_0x2cb600,_0x504e43){return _0x2cb600-_0x504e43;},'ojJRo':function(_0x717cfa,_0x4e0f47){return _0x717cfa in _0x4e0f47;}},_0x5d83d0=_0x9b03c9[_0x13951e(0x1d9)]('.');let _0x58b066=_0x3e81bb;for(let _0x3a9f3b=0x0;_0x353764['oxnoR'](_0x3a9f3b,_0x5d83d0[_0x13951e(0x1df)]-0x1);_0x3a9f3b++){const _0x5db9b8=_0x5d83d0[_0x3a9f3b],_0x313058=_0x58b066[_0x5db9b8];if(!_0x313058||typeof _0x313058!==_0x353764['QWnxG']||Array[_0x13951e(0x1dc)](_0x313058))return![];_0x58b066=_0x313058;}const _0x4870ba=_0x5d83d0[_0x353764[_0x13951e(0x1f1)](_0x5d83d0[_0x13951e(0x1df)],0x1)];if(!_0x353764['ojJRo'](_0x4870ba,_0x58b066))return![];return delete _0x58b066[_0x4870ba],!![];}
@@ -1 +1 @@
1
- function _0x2421(){const _0x17cf75=['parse','364046rkvWUo','warn','360mTVNRU','aaoKb','model','489yCoFyE','213702FuJjwf','115497qvrXSr','8611370nBnYTi','805040geyTst','25364361adkCFZ','dBMpk','RaiBW','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','2OOlVez','91PPChQp','LEuGu','20344LmgIeF'];_0x2421=function(){return _0x17cf75;};return _0x2421();}(function(_0x1774ff,_0xfabc08){const _0x2a556a=_0x385a,_0x5b8349=_0x1774ff();while(!![]){try{const _0x2cc305=parseInt(_0x2a556a(0x19f))/0x1*(-parseInt(_0x2a556a(0x1a4))/0x2)+-parseInt(_0x2a556a(0x196))/0x3*(parseInt(_0x2a556a(0x1a2))/0x4)+parseInt(_0x2a556a(0x19a))/0x5+parseInt(_0x2a556a(0x197))/0x6*(-parseInt(_0x2a556a(0x1a0))/0x7)+-parseInt(_0x2a556a(0x193))/0x8*(-parseInt(_0x2a556a(0x198))/0x9)+-parseInt(_0x2a556a(0x199))/0xa+parseInt(_0x2a556a(0x19b))/0xb;if(_0x2cc305===_0xfabc08)break;else _0x5b8349['push'](_0x5b8349['shift']());}catch(_0x1f5019){_0x5b8349['push'](_0x5b8349['shift']());}}}(_0x2421,0x80b12));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x1272d9=_0x385a,_0x5a6945={'dBMpk':function(_0x5117b2,_0x1bb027,_0x117295){return _0x5117b2(_0x1bb027,_0x117295);},'RaiBW':function(_0x45abb1){return _0x45abb1();}};return _0x5a6945[_0x1272d9(0x19c)](join,_0x5a6945[_0x1272d9(0x19d)](getRangerDir),'config.json');}function _0x385a(_0x2ae46d,_0x25768d){_0x2ae46d=_0x2ae46d-0x192;const _0x242109=_0x2421();let _0x385a04=_0x242109[_0x2ae46d];return _0x385a04;}export async function loadRangerConfig(){const _0x440c6a=_0x385a,_0xf00aed={'ogvKz':function(_0x1d18f0){return _0x1d18f0();},'rYskK':function(_0x27e5ca,_0x55c2e4,_0x409227){return _0x27e5ca(_0x55c2e4,_0x409227);},'LEuGu':'object','aaoKb':function(_0xf4ce04,_0x48a820){return _0xf4ce04 instanceof _0x48a820;}},_0x1faa23=_0xf00aed['ogvKz'](getRangerConfigPath);if(!existsSync(_0x1faa23))return{};try{const _0x411d77=await _0xf00aed['rYskK'](readFile,_0x1faa23,'utf-8'),_0x1142ef=JSON[_0x440c6a(0x1a3)](_0x411d77);if(!_0x1142ef||typeof _0x1142ef!==_0xf00aed[_0x440c6a(0x1a1)]||Array['isArray'](_0x1142ef))return{};const _0x1249ba={},_0x21a46b=_0x1142ef['model'];return typeof _0x21a46b==='string'&&(_0x1249ba[_0x440c6a(0x195)]=_0x21a46b),_0x1249ba;}catch(_0x479586){const _0x552553=_0xf00aed[_0x440c6a(0x194)](_0x479586,Error)?_0x479586['message']:String(_0x479586);return console[_0x440c6a(0x192)](_0x440c6a(0x19e)+_0x1faa23+':\x20'+_0x552553),{};}}
1
+ (function(_0x2434c4,_0x328858){const _0x1b264e=_0x21b0,_0x5aa174=_0x2434c4();while(!![]){try{const _0x1016b3=parseInt(_0x1b264e(0x15b))/0x1+parseInt(_0x1b264e(0x15d))/0x2+parseInt(_0x1b264e(0x160))/0x3+-parseInt(_0x1b264e(0x158))/0x4+-parseInt(_0x1b264e(0x15f))/0x5+-parseInt(_0x1b264e(0x159))/0x6+parseInt(_0x1b264e(0x152))/0x7*(parseInt(_0x1b264e(0x15e))/0x8);if(_0x1016b3===_0x328858)break;else _0x5aa174['push'](_0x5aa174['shift']());}catch(_0x5d88f3){_0x5aa174['push'](_0x5aa174['shift']());}}}(_0x365c,0x9f533));import{readFile}from'fs/promises';import{existsSync}from'fs';function _0x365c(){const _0x28b213=['3465530KZeTZQ','165255frvxSV','warn','7biwhQA','model','config.json','object','parse','message','4139076kkoesT','5011116KjbvUK','RcZtT','420684OZvqYP','utf-8','1184632HKCxmV','17180568GeSCvB'];_0x365c=function(){return _0x28b213;};return _0x365c();}function _0x21b0(_0x3affc4,_0x3bcce1){_0x3affc4=_0x3affc4-0x151;const _0x365cf0=_0x365c();let _0x21b0c5=_0x365cf0[_0x3affc4];return _0x21b0c5;}import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x879c91=_0x21b0,_0x2ee6fd={'RcZtT':_0x879c91(0x154)};return join(getRangerDir(),_0x2ee6fd[_0x879c91(0x15a)]);}export async function loadRangerConfig(){const _0x5c7cde=_0x21b0,_0x47ec41={'Xhrjn':function(_0x5bb412,_0x5aabe6){return _0x5bb412 instanceof _0x5aabe6;},'LIurR':function(_0x55ec6d,_0x4591b6){return _0x55ec6d(_0x4591b6);}},_0x15c53c=getRangerConfigPath();if(!existsSync(_0x15c53c))return{};try{const _0x23a9f0=await readFile(_0x15c53c,_0x5c7cde(0x15c)),_0x427d81=JSON[_0x5c7cde(0x156)](_0x23a9f0);if(!_0x427d81||typeof _0x427d81!==_0x5c7cde(0x155)||Array['isArray'](_0x427d81))return{};const _0x52f5c1={},_0x3a02e1=_0x427d81[_0x5c7cde(0x153)];return typeof _0x3a02e1==='string'&&(_0x52f5c1['model']=_0x3a02e1),_0x52f5c1;}catch(_0x2b6a5e){const _0xe29728=_0x47ec41['Xhrjn'](_0x2b6a5e,Error)?_0x2b6a5e[_0x5c7cde(0x157)]:_0x47ec41['LIurR'](String,_0x2b6a5e);return console[_0x5c7cde(0x151)]('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x15c53c+':\x20'+_0xe29728),{};}}
@@ -1 +1 @@
1
- (function(_0xf98cc0,_0x58864c){const _0x1ce685=_0x5916,_0x12c22a=_0xf98cc0();while(!![]){try{const _0x1a1f40=parseInt(_0x1ce685(0x1cb))/0x1+parseInt(_0x1ce685(0x1ce))/0x2*(-parseInt(_0x1ce685(0x1cf))/0x3)+parseInt(_0x1ce685(0x1d4))/0x4+-parseInt(_0x1ce685(0x1c7))/0x5+parseInt(_0x1ce685(0x1cc))/0x6+-parseInt(_0x1ce685(0x1d5))/0x7+parseInt(_0x1ce685(0x1cd))/0x8;if(_0x1a1f40===_0x58864c)break;else _0x12c22a['push'](_0x12c22a['shift']());}catch(_0x1adf51){_0x12c22a['push'](_0x12c22a['shift']());}}}(_0x4744,0x85563));function _0x4744(){const _0x557c50=['2646427xJlTwj','2077640SotBZn','DHqLx','.ranger','TZxKo','534005XUHQqh','3885624aCraWI','77784zyuVIU','26266iRMDAi','183FDVaFj','psyYE','jijYn','RxEDl','root','3798068Vazewl'];_0x4744=function(){return _0x557c50;};return _0x4744();}import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';function _0x5916(_0x5c114b,_0xe4dcc4){_0x5c114b=_0x5c114b-0x1c7;const _0x4744ec=_0x4744();let _0x591683=_0x4744ec[_0x5c114b];return _0x591683;}export function getRangerRoot(){const _0x35ec07=_0x5916,_0x38c1d2={'yBEBf':function(_0x20a741,_0x14759f){return _0x20a741!==_0x14759f;},'PBrYe':function(_0x4ec7ef,_0x3bea86,_0xa9841a){return _0x4ec7ef(_0x3bea86,_0xa9841a);},'DHqLx':'.ranger','jijYn':function(_0x2db0fb,_0x2659b2){return _0x2db0fb(_0x2659b2);},'TZxKo':function(_0x303602,_0x5cc5ce,_0x136a0e){return _0x303602(_0x5cc5ce,_0x136a0e);}};let _0x11619c=process['cwd']();const _0xeabcc1=parse(_0x11619c)['root'];while(_0x38c1d2['yBEBf'](_0x11619c,_0xeabcc1)){if(existsSync(_0x38c1d2['PBrYe'](join,_0x11619c,_0x38c1d2['DHqLx'])))return _0x11619c;_0x11619c=dirname(_0x11619c);}if(_0x38c1d2[_0x35ec07(0x1d1)](existsSync,_0x38c1d2[_0x35ec07(0x1ca)](join,_0xeabcc1,_0x38c1d2[_0x35ec07(0x1c8)])))return _0xeabcc1;const _0x1f71b9=findGitRoot();if(_0x1f71b9)return _0x1f71b9;return process['cwd']();}export function getRangerDir(){const _0x50db55={'pSteN':function(_0x8283fd,_0xdb4c8e,_0x46aa12){return _0x8283fd(_0xdb4c8e,_0x46aa12);},'IKkpN':'.ranger'};return _0x50db55['pSteN'](join,getRangerRoot(),_0x50db55['IKkpN']);}export function findGitRoot(){const _0x463e21=_0x5916,_0x3dc5a1={'psyYE':function(_0x431576,_0x231c9a){return _0x431576(_0x231c9a);},'Kaask':'.git','DIfXq':function(_0x49283f,_0x4fb1d0){return _0x49283f(_0x4fb1d0);}};let _0xdb47b3=process['cwd']();const _0x3fd437=parse(_0xdb47b3)[_0x463e21(0x1d3)];while(_0xdb47b3!==_0x3fd437){if(_0x3dc5a1['psyYE'](existsSync,join(_0xdb47b3,_0x3dc5a1['Kaask'])))return _0xdb47b3;_0xdb47b3=_0x3dc5a1['DIfXq'](dirname,_0xdb47b3);}if(_0x3dc5a1[_0x463e21(0x1d0)](existsSync,join(_0x3fd437,_0x3dc5a1['Kaask'])))return _0x3fd437;return null;}export function getRangerHomeDir(){const _0x496daa=_0x5916,_0x6dd6be={'JPTVm':function(_0x1b1347){return _0x1b1347();},'RxEDl':_0x496daa(0x1c9)};return join(_0x6dd6be['JPTVm'](homedir),_0x6dd6be[_0x496daa(0x1d2)]);}
1
+ (function(_0x3097ec,_0x37e1c){const _0x3cfabe=_0x26e5,_0x9237bf=_0x3097ec();while(!![]){try{const _0x35a9d4=-parseInt(_0x3cfabe(0x156))/0x1*(-parseInt(_0x3cfabe(0x161))/0x2)+parseInt(_0x3cfabe(0x15e))/0x3*(-parseInt(_0x3cfabe(0x160))/0x4)+parseInt(_0x3cfabe(0x162))/0x5+-parseInt(_0x3cfabe(0x153))/0x6+-parseInt(_0x3cfabe(0x157))/0x7*(parseInt(_0x3cfabe(0x15b))/0x8)+-parseInt(_0x3cfabe(0x159))/0x9+parseInt(_0x3cfabe(0x15c))/0xa*(parseInt(_0x3cfabe(0x154))/0xb);if(_0x35a9d4===_0x37e1c)break;else _0x9237bf['push'](_0x9237bf['shift']());}catch(_0x266df5){_0x9237bf['push'](_0x9237bf['shift']());}}}(_0x151d,0x397fa));function _0x151d(){const _0x2f9ca2=['889209qXglTk','mkVlO','4OgLizb','34100HQrHRm','941040ldsGyG','.ranger','ugoVk','2243316gJpNQE','10776469faVwlY','root','23sJjnOt','7wwxqLq','.git','1937367viUrEP','cwd','3511768DAyYzO','10bEqnFQ','MnCMD'];_0x151d=function(){return _0x2f9ca2;};return _0x151d();}function _0x26e5(_0x48a625,_0x28a828){_0x48a625=_0x48a625-0x151;const _0x151dc=_0x151d();let _0x26e590=_0x151dc[_0x48a625];return _0x26e590;}import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x28587c=_0x26e5,_0x45a7d8={'jgnUo':function(_0x2a4c65,_0x3d1b9a){return _0x2a4c65(_0x3d1b9a);},'vkXih':function(_0x1ab232,_0x1ec825){return _0x1ab232!==_0x1ec825;},'MnCMD':function(_0x52fd7a,_0x5cad53){return _0x52fd7a(_0x5cad53);},'ugoVk':function(_0x33846f,_0x3d6638){return _0x33846f(_0x3d6638);},'IiOfc':'.ranger'};let _0x41b67c=process[_0x28587c(0x15a)]();const _0x58fa7b=_0x45a7d8['jgnUo'](parse,_0x41b67c)['root'];while(_0x45a7d8['vkXih'](_0x41b67c,_0x58fa7b)){if(_0x45a7d8[_0x28587c(0x15d)](existsSync,join(_0x41b67c,'.ranger')))return _0x41b67c;_0x41b67c=_0x45a7d8[_0x28587c(0x152)](dirname,_0x41b67c);}if(existsSync(join(_0x58fa7b,_0x45a7d8['IiOfc'])))return _0x58fa7b;const _0x3832b3=findGitRoot();if(_0x3832b3)return _0x3832b3;return process[_0x28587c(0x15a)]();}export function getRangerDir(){const _0x48d4fe=_0x26e5;return join(getRangerRoot(),_0x48d4fe(0x151));}export function findGitRoot(){const _0x3519c=_0x26e5,_0x42a13a={'VnmaZ':function(_0x159b2c,_0x49f7cd,_0x2fe7c2){return _0x159b2c(_0x49f7cd,_0x2fe7c2);},'mkVlO':_0x3519c(0x158)};let _0x5830c4=process[_0x3519c(0x15a)]();const _0x2566f8=parse(_0x5830c4)[_0x3519c(0x155)];while(_0x5830c4!==_0x2566f8){if(existsSync(join(_0x5830c4,_0x3519c(0x158))))return _0x5830c4;_0x5830c4=dirname(_0x5830c4);}if(existsSync(_0x42a13a['VnmaZ'](join,_0x2566f8,_0x42a13a[_0x3519c(0x15f)])))return _0x2566f8;return null;}export function getRangerHomeDir(){const _0x3efef5={'fmpcL':function(_0x5253b3,_0x324135,_0x11ba32){return _0x5253b3(_0x324135,_0x11ba32);},'Snmyj':function(_0x5514f9){return _0x5514f9();},'oeXpB':'.ranger'};return _0x3efef5['fmpcL'](join,_0x3efef5['Snmyj'](homedir),_0x3efef5['oeXpB']);}
@@ -1 +1 @@
1
- (function(_0x17b8bc,_0x11ed2d){const _0xc8df31=_0x3de2,_0x224f51=_0x17b8bc();while(!![]){try{const _0x44f2a3=-parseInt(_0xc8df31(0x211))/0x1*(-parseInt(_0xc8df31(0x203))/0x2)+parseInt(_0xc8df31(0x20d))/0x3+-parseInt(_0xc8df31(0x1e8))/0x4*(parseInt(_0xc8df31(0x1f4))/0x5)+-parseInt(_0xc8df31(0x20c))/0x6*(-parseInt(_0xc8df31(0x1fe))/0x7)+-parseInt(_0xc8df31(0x20e))/0x8*(parseInt(_0xc8df31(0x1f1))/0x9)+-parseInt(_0xc8df31(0x217))/0xa+parseInt(_0xc8df31(0x216))/0xb;if(_0x44f2a3===_0x11ed2d)break;else _0x224f51['push'](_0x224f51['shift']());}catch(_0x48c112){_0x224f51['push'](_0x224f51['shift']());}}}(_0xb8ae,0x6beb1));import{existsSync}from'fs';import _0x22d718 from'inquirer';function _0x3de2(_0x11df54,_0x41e186){_0x11df54=_0x11df54-0x1e8;const _0xb8ae0d=_0xb8ae();let _0x3de2a7=_0xb8ae0d[_0x11df54];return _0x3de2a7;}function _0xb8ae(){const _0xa971f0=['profile','baseUrl','126074UTAtLq','cDEfz','cwd','startPath','envBaseUrl','10250163EBWrBY','4809060RtfJrN','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','RANGER_TEST_USERNAME','1056Fjwuod','EYKir','CeLil','VcDLe','list','QmgPs','Cloud\x20profile\x20(recommended)','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','27TpnouK','SKvmN','name','13950dqyMIP','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','env','\x20baseUrl\x20<url>','WOGJD','HsyMM','FrToY','log','cloud','source','91uiiTot','ubCqB','PjjcX','Profile\x20\x22','`ranger\x20profile\x20add`\x20to\x20create\x20one.','2OMNmHp','AgMIC','prompt','string','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','length','SRZeM','\x20does\x20not\x20exist.','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','354180Oyksdp','456858OofpKp','848224qwYzMZ'];_0xb8ae=function(){return _0xa971f0;};return _0xb8ae();}import{ApiError,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x40c07){const _0x279b6b=_0x3de2,_0x3b108f={'cDEfz':function(_0x324b56){return _0x324b56();},'CgobK':function(_0x1cc959,_0x36ee38){return _0x1cc959+_0x36ee38;},'srOcz':function(_0x13cdcb,_0x2738b9){return _0x13cdcb+_0x2738b9;},'bRihR':_0x279b6b(0x218),'PjjcX':function(_0x334adc,_0x5bd26c){return _0x334adc(_0x5bd26c);},'DuhxD':function(_0x1f1a16,_0x59674f){return _0x1f1a16===_0x59674f;},'QmgPs':function(_0xaacbf8,_0x2ce346){return _0xaacbf8&&_0x2ce346;},'EYKir':function(_0x4aca32,_0x3f297a){return _0x4aca32+_0x3f297a;},'QxOKO':function(_0x5b0c50,_0x5b7e68){return _0x5b0c50&&_0x5b7e68;},'NwwPJ':function(_0x1c10d){return _0x1c10d();},'WOGJD':_0x279b6b(0x1ee),'FrToY':'local','HsyMM':function(_0x3601b9,_0x28633c){return _0x3601b9===_0x28633c;},'AgMIC':function(_0x147230,_0x22223e,_0x3c3ad4){return _0x147230(_0x22223e,_0x3c3ad4);},'QDAos':function(_0x1dac61,_0x512c21){return _0x1dac61(_0x512c21);},'xHyVP':function(_0x56bdf1,_0x305152,_0x26678a){return _0x56bdf1(_0x305152,_0x26678a);},'VcDLe':function(_0x52ce56,_0x462425){return _0x52ce56(_0x462425);},'eiDAY':function(_0x2e7b37,_0x195603){return _0x2e7b37(_0x195603);},'SKvmN':function(_0x391988,_0x18c217){return _0x391988(_0x18c217);},'VCDSN':function(_0x2a5954,_0xc42574){return _0x2a5954(_0xc42574);},'CeLil':function(_0x1fac23,_0x95eab4){return _0x1fac23&&_0x95eab4;}},_0x3ac385=_0x40c07[_0x279b6b(0x20f)];let _0x4fae5d=_0x40c07['profile']??await readActiveProfileName(),_0x571aad=null;if(!_0x4fae5d&&process['env'][_0x279b6b(0x219)]){const _0x827e6a=await _0x3b108f[_0x279b6b(0x212)](resolveAdHocProfile);_0x827e6a&&(_0x4fae5d=_0x827e6a['name'],_0x571aad=_0x827e6a[_0x279b6b(0x20f)]);}if(!_0x4fae5d)try{const _0x4ab64c=await listCloudProfiles();if(_0x4ab64c[_0x279b6b(0x208)]===0x1){const _0x61eca8=_0x4ab64c[0x0];_0x4fae5d=_0x61eca8['name'],console[_0x279b6b(0x1fb)](_0x279b6b(0x207)+_0x61eca8[_0x279b6b(0x1f3)]),console[_0x279b6b(0x1fb)](_0x279b6b(0x20b));}}catch{}if(!_0x4fae5d)throw new Error(_0x3b108f['CgobK'](_0x3b108f['srOcz'](_0x3b108f['srOcz']('Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a',_0x3b108f['bRihR']),_0x279b6b(0x1f0))+'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.'));const _0x3b02da=_0x3b108f[_0x279b6b(0x200)](getEnvDir,_0x4fae5d),_0x57b636=_0x3b108f['PjjcX'](existsSync,_0x3b02da);let _0x84da94=_0x571aad,_0x3a8426=![];if(!_0x84da94)try{_0x84da94=await fetchCloudProfile(_0x4fae5d);if(!_0x84da94)_0x3a8426=!![];}catch(_0x2e1404){_0x2e1404 instanceof ApiError&&_0x3b108f['DuhxD'](_0x2e1404['status'],0x194)&&(_0x3a8426=!![]);}if(_0x3b108f[_0x279b6b(0x1ed)](_0x3ac385,_0x3a8426)&&!_0x57b636&&!_0x84da94)throw new Error(_0x3b108f[_0x279b6b(0x1e9)](_0x279b6b(0x201)+_0x3ac385+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20')+_0x279b6b(0x202));if(_0x3b108f['QxOKO'](_0x84da94,_0x57b636)){let _0x520bcd=!![];if(_0x3b108f['NwwPJ'](isInteractive)){const {source:_0x3a7592}=await _0x22d718[_0x279b6b(0x205)]([{'type':_0x279b6b(0x1ec),'name':_0x279b6b(0x1fd),'message':_0x279b6b(0x201)+_0x4fae5d+'\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','choices':[{'name':_0x3b108f[_0x279b6b(0x1f8)],'value':'cloud'},{'name':'Local\x20profile','value':_0x3b108f[_0x279b6b(0x1fa)]}],'default':_0x279b6b(0x1fc)}]);_0x520bcd=_0x3b108f[_0x279b6b(0x1f9)](_0x3a7592,'cloud');}if(!_0x520bcd)_0x84da94=null;}const _0x5cda50=_0x3b108f[_0x279b6b(0x204)](readProfileOverrides,process[_0x279b6b(0x213)](),_0x4fae5d);let _0x3c1bda=null,_0x5dc6c8,_0xa3df2f,_0x1c8acb,_0x5e5487,_0x112ce1=null,_0x2f7daf;const _0xcf6342=_0x3b108f['QDAos'](expandOverrides,_0x5cda50);if(_0x84da94){_0x3c1bda=_0x84da94;const _0x1e233a=_0x84da94['settings']??{},_0x246cb3=_0x3b108f['xHyVP'](mergeCloudProfileSettings,_0x1e233a,_0x5cda50??undefined),_0x25ddfd={..._0x84da94,'settings':_0x246cb3},_0x2e42ee=process[_0x279b6b(0x1f6)]['RANGER_SESSION_STATE_PATH'];if(_0x2e42ee){if(!existsSync(_0x2e42ee))throw new Error('RANGER_SESSION_STATE_PATH='+_0x2e42ee+_0x279b6b(0x20a));_0x5dc6c8=_0x2e42ee,_0xa3df2f=_0x3b108f['PjjcX'](resolveEnvVars,_0x246cb3),_0x1c8acb=_0x3b108f['QDAos'](Boolean,_0xa3df2f['cdpEndpoint']),_0x112ce1={'baseUrl':_0x3b108f[_0x279b6b(0x1eb)](expandString,_0x1e233a['baseUrl']),'startPath':expandString(_0x1e233a[_0x279b6b(0x214)])};}else{const _0x361860=await resolveCloudProfileSession(_0x25ddfd);_0x5dc6c8=_0x361860['authPath'],_0xa3df2f=resolveEnvVars(_0x246cb3),_0x1c8acb=Boolean(_0xa3df2f['cdpEndpoint']),_0x112ce1={'baseUrl':expandString(_0x1e233a['baseUrl']),'startPath':_0x3b108f['eiDAY'](expandString,_0x1e233a[_0x279b6b(0x214)])},_0x2f7daf=_0x361860['resolvedEnv']?.['domains']?.[0x0];}}else{if(!_0x57b636)throw new Error(_0x279b6b(0x201)+_0x4fae5d+_0x279b6b(0x1f5)+_0x4fae5d);const _0x1cff0c=await _0x3b108f['QDAos'](loadSettings,_0x4fae5d);_0xa3df2f=_0x3b108f[_0x279b6b(0x1f2)](resolveEnvVars,_0x1cff0c),_0x1c8acb=_0x3b108f['VCDSN'](Boolean,_0xa3df2f['cdpEndpoint']),_0x5e5487=_0xa3df2f['baseUrl'];}const _0x47a630=_0x3b108f[_0x279b6b(0x212)](readUrlEnvVars),_0xfeab85=resolveProfileUrl({'flagBaseUrl':_0x40c07[_0x279b6b(0x210)],'flagStartPath':_0x40c07[_0x279b6b(0x214)],'envBaseUrl':_0x47a630[_0x279b6b(0x215)],'envStartPath':_0x47a630['envStartPath'],'localSettingsBaseUrl':_0x5e5487,'projectOverrides':_0xcf6342,'cloudSettings':_0x112ce1,'authEnvironmentDomain':_0x2f7daf}),_0x10a0c9=_0xfeab85['url']??_0xfeab85['baseUrl'];if(_0x3b108f[_0x279b6b(0x1ea)](!_0x10a0c9,!_0x1c8acb))throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0x4fae5d+_0x279b6b(0x1ef)+_0x4fae5d+_0x279b6b(0x1f7));return{'activeProfile':_0x4fae5d,'resolvedCloudProfile':_0x3c1bda,'cloudAuthPath':_0x5dc6c8,'resolvedSettings':_0xa3df2f,'isCdpMode':_0x1c8acb,'url':_0x10a0c9,'startPath':_0xfeab85['startPath']};}function expandString(_0x5a3cdf){const _0x32a171=_0x3de2,_0x2615ae={'seBMR':function(_0x314096,_0x9953){return _0x314096!==_0x9953;},'ubCqB':_0x32a171(0x206)};if(_0x2615ae['seBMR'](typeof _0x5a3cdf,_0x2615ae[_0x32a171(0x1ff)]))return _0x5a3cdf;return resolveEnvVars(_0x5a3cdf);}function expandOverrides(_0x4328f0){const _0x3fa737=_0x3de2,_0x36a351={'SRZeM':_0x3fa737(0x206),'EzHVY':function(_0x4cabea,_0x3c5803){return _0x4cabea(_0x3c5803);}};if(!_0x4328f0)return _0x4328f0;const _0x30c9d5={..._0x4328f0};return typeof _0x30c9d5[_0x3fa737(0x210)]===_0x36a351['SRZeM']&&(_0x30c9d5['baseUrl']=_0x36a351['EzHVY'](resolveEnvVars,_0x30c9d5[_0x3fa737(0x210)])),typeof _0x30c9d5['startPath']===_0x36a351[_0x3fa737(0x209)]&&(_0x30c9d5[_0x3fa737(0x214)]=resolveEnvVars(_0x30c9d5['startPath'])),_0x30c9d5;}
1
+ (function(_0x2afb1e,_0x15b409){const _0x275244=_0x9034,_0xf84fd9=_0x2afb1e();while(!![]){try{const _0x429d8a=parseInt(_0x275244(0xe3))/0x1*(parseInt(_0x275244(0xe5))/0x2)+-parseInt(_0x275244(0xd2))/0x3+parseInt(_0x275244(0xd3))/0x4*(-parseInt(_0x275244(0xea))/0x5)+parseInt(_0x275244(0xdb))/0x6+parseInt(_0x275244(0xcb))/0x7+parseInt(_0x275244(0xbd))/0x8*(-parseInt(_0x275244(0xd1))/0x9)+parseInt(_0x275244(0xdc))/0xa;if(_0x429d8a===_0x15b409)break;else _0xf84fd9['push'](_0xf84fd9['shift']());}catch(_0x592911){_0xf84fd9['push'](_0xf84fd9['shift']());}}}(_0xbf86,0xdf376));function _0x9034(_0x1a4c93,_0x48ed76){_0x1a4c93=_0x1a4c93-0xbd;const _0xbf8604=_0xbf86();let _0x903401=_0xbf8604[_0x1a4c93];return _0x903401;}import{existsSync}from'fs';import _0x5def2a from'inquirer';import{ApiError,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive}from'./cloudProfileSession.js';function _0xbf86(){const _0x3d32f4=['fRZwE','profile','status','url','settings','HAoGX','dnoag','jDPXB','env','8802955cYKQcL','fOzlo','RANGER_SESSION_STATE_PATH','resolvedEnv','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','cloud','216oyeDOw','3093750FWJNEZ','4rvVvig','NeGgj','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','name','xOkuz','cwd','ixyNr','length','572364pekcaq','18031520ErRxcu','Cloud\x20profile\x20(recommended)','baseUrl','MVnLM','Profile\x20\x22','NLkxa','string','5603qcMKWe','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','84yKZERs','RLBEZ','startPath','No\x20baseUrl\x20configured\x20for\x20profile\x20\x22','RANGER_SESSION_STATE_PATH=','3326585LHbGfv','260192ouzKrj','authPath','cdpEndpoint','tErJq','qwNQs'];_0xbf86=function(){return _0x3d32f4;};return _0xbf86();}import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0xbe4a87){const _0x353470=_0x9034,_0x25bc94={'dnoag':function(_0x5eff0b){return _0x5eff0b();},'vGfpk':function(_0x1292b6,_0x3c65a7){return _0x1292b6===_0x3c65a7;},'qwNQs':function(_0x2663fb,_0x13f04e){return _0x2663fb+_0x13f04e;},'fCjTq':function(_0x4460fc,_0x4fcc3f){return _0x4460fc+_0x4fcc3f;},'RLBEZ':'\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','Zwqon':_0x353470(0xd5),'cqIBR':'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','bjqsK':function(_0x5c5448,_0x4b7b43){return _0x5c5448(_0x4b7b43);},'CfIWM':function(_0x3f5374,_0x2bf2fb){return _0x3f5374(_0x2bf2fb);},'NLkxa':function(_0x3559b0,_0x860c7f){return _0x3559b0&&_0x860c7f;},'TPIms':function(_0x4aa77d,_0x195f85){return _0x4aa77d+_0x195f85;},'jDPXB':'\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','xOkuz':'`ranger\x20profile\x20add`\x20to\x20create\x20one.','tErJq':function(_0x14d173,_0xab1d88){return _0x14d173&&_0xab1d88;},'vYZnQ':function(_0x3baa57){return _0x3baa57();},'NbmMV':'source','fRZwE':'Local\x20profile','MVnLM':'local','HBNEc':_0x353470(0xd0),'XcKkz':function(_0x1d8d89,_0x540932,_0x39d457){return _0x1d8d89(_0x540932,_0x39d457);},'NeGgj':function(_0x2b68ac,_0x390594){return _0x2b68ac(_0x390594);},'gaTxZ':function(_0x57dd4e,_0x12aeaa){return _0x57dd4e??_0x12aeaa;},'ixyNr':function(_0x44957d,_0x4d5c40){return _0x44957d(_0x4d5c40);},'KXSMv':function(_0x4b5d75,_0xbdb91c){return _0x4b5d75(_0xbdb91c);},'ifQXy':function(_0x344acb,_0x474b4a){return _0x344acb(_0x474b4a);},'MGWSH':function(_0x5856ed,_0x571a08){return _0x5856ed(_0x571a08);},'HQhZm':function(_0x207d3a){return _0x207d3a();}},_0x302cdd=_0xbe4a87[_0x353470(0xc3)];let _0x23fcb3=_0xbe4a87['profile']??await readActiveProfileName(),_0x349940=null;if(!_0x23fcb3&&process[_0x353470(0xca)]['RANGER_TEST_USERNAME']){const _0x2d247a=await _0x25bc94[_0x353470(0xc8)](resolveAdHocProfile);_0x2d247a&&(_0x23fcb3=_0x2d247a['name'],_0x349940=_0x2d247a[_0x353470(0xc3)]);}if(!_0x23fcb3)try{const _0x2ed894=await listCloudProfiles();if(_0x25bc94['vGfpk'](_0x2ed894[_0x353470(0xda)],0x1)){const _0x4513a4=_0x2ed894[0x0];_0x23fcb3=_0x4513a4[_0x353470(0xd6)],console['log']('\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20'+_0x4513a4[_0x353470(0xd6)]),console['log']('\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)');}}catch{}if(!_0x23fcb3)throw new Error(_0x25bc94[_0x353470(0xc1)](_0x25bc94['fCjTq']('Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a'+_0x25bc94[_0x353470(0xe6)],_0x25bc94['Zwqon'])+_0x25bc94['cqIBR'],'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.'));const _0x58b3d1=_0x25bc94['bjqsK'](getEnvDir,_0x23fcb3),_0x561fbc=_0x25bc94['CfIWM'](existsSync,_0x58b3d1);let _0x4c9b3e=_0x349940,_0x183999=![];if(!_0x4c9b3e)try{_0x4c9b3e=await fetchCloudProfile(_0x23fcb3);if(!_0x4c9b3e)_0x183999=!![];}catch(_0x459072){_0x459072 instanceof ApiError&&_0x459072[_0x353470(0xc4)]===0x194&&(_0x183999=!![]);}if(_0x25bc94[_0x353470(0xe1)](_0x302cdd,_0x183999)&&!_0x561fbc&&!_0x4c9b3e)throw new Error(_0x25bc94['TPIms'](_0x353470(0xe0)+_0x302cdd+_0x353470(0xcf),_0x25bc94[_0x353470(0xc9)])+_0x25bc94[_0x353470(0xd7)]);if(_0x25bc94[_0x353470(0xc0)](_0x4c9b3e,_0x561fbc)){let _0x1da339=!![];if(_0x25bc94['vYZnQ'](isInteractive)){const {source:_0x359883}=await _0x5def2a['prompt']([{'type':'list','name':_0x25bc94['NbmMV'],'message':_0x353470(0xe0)+_0x23fcb3+_0x353470(0xe4),'choices':[{'name':_0x353470(0xdd),'value':_0x353470(0xd0)},{'name':_0x25bc94[_0x353470(0xc2)],'value':_0x25bc94[_0x353470(0xdf)]}],'default':_0x353470(0xd0)}]);_0x1da339=_0x359883===_0x25bc94['HBNEc'];}if(!_0x1da339)_0x4c9b3e=null;}const _0x51fe3a=_0x25bc94['XcKkz'](readProfileOverrides,process[_0x353470(0xd8)](),_0x23fcb3);let _0x479b07=null,_0x42f63e,_0x2e685e,_0x1624a5,_0x282cbe,_0x1ce3cd=null,_0x4be063;const _0x5142f2=_0x25bc94[_0x353470(0xd4)](expandOverrides,_0x51fe3a);if(_0x4c9b3e){_0x479b07=_0x4c9b3e;const _0x45d8c6=_0x4c9b3e[_0x353470(0xc6)]??{},_0x35e9fd=_0x25bc94['XcKkz'](mergeCloudProfileSettings,_0x45d8c6,_0x25bc94['gaTxZ'](_0x51fe3a,undefined)),_0x43ee08={..._0x4c9b3e,'settings':_0x35e9fd},_0x15bf00=process['env'][_0x353470(0xcd)];if(_0x15bf00){if(!existsSync(_0x15bf00))throw new Error(_0x353470(0xe9)+_0x15bf00+'\x20does\x20not\x20exist.');_0x42f63e=_0x15bf00,_0x2e685e=_0x25bc94[_0x353470(0xd9)](resolveEnvVars,_0x35e9fd),_0x1624a5=Boolean(_0x2e685e[_0x353470(0xbf)]),_0x1ce3cd={'baseUrl':_0x25bc94['KXSMv'](expandString,_0x45d8c6['baseUrl']),'startPath':expandString(_0x45d8c6[_0x353470(0xe7)])};}else{const _0x1841dc=await _0x25bc94['ifQXy'](resolveCloudProfileSession,_0x43ee08);_0x42f63e=_0x1841dc[_0x353470(0xbe)],_0x2e685e=resolveEnvVars(_0x35e9fd),_0x1624a5=_0x25bc94['ifQXy'](Boolean,_0x2e685e[_0x353470(0xbf)]),_0x1ce3cd={'baseUrl':expandString(_0x45d8c6['baseUrl']),'startPath':_0x25bc94['MGWSH'](expandString,_0x45d8c6[_0x353470(0xe7)])},_0x4be063=_0x1841dc[_0x353470(0xce)]?.['domains']?.[0x0];}}else{if(!_0x561fbc)throw new Error('Profile\x20\x22'+_0x23fcb3+'\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x23fcb3);const _0x571d83=await loadSettings(_0x23fcb3);_0x2e685e=resolveEnvVars(_0x571d83),_0x1624a5=Boolean(_0x2e685e[_0x353470(0xbf)]),_0x282cbe=_0x2e685e['baseUrl'];}const _0x1b0b6f=_0x25bc94['HQhZm'](readUrlEnvVars),_0x35c446=_0x25bc94[_0x353470(0xd4)](resolveProfileUrl,{'flagBaseUrl':_0xbe4a87['baseUrl'],'flagStartPath':_0xbe4a87['startPath'],'envBaseUrl':_0x1b0b6f['envBaseUrl'],'envStartPath':_0x1b0b6f['envStartPath'],'localSettingsBaseUrl':_0x282cbe,'projectOverrides':_0x5142f2,'cloudSettings':_0x1ce3cd,'authEnvironmentDomain':_0x4be063}),_0x4e8445=_0x35c446[_0x353470(0xc5)]??_0x35c446[_0x353470(0xde)];if(_0x25bc94[_0x353470(0xe1)](!_0x4e8445,!_0x1624a5))throw new Error(_0x353470(0xe8)+_0x23fcb3+'\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20'+_0x23fcb3+'\x20baseUrl\x20<url>');return{'activeProfile':_0x23fcb3,'resolvedCloudProfile':_0x479b07,'cloudAuthPath':_0x42f63e,'resolvedSettings':_0x2e685e,'isCdpMode':_0x1624a5,'url':_0x4e8445,'startPath':_0x35c446['startPath']};}function expandString(_0x18a029){const _0x5ee1fb=_0x9034,_0x3ff82a={'WDiRq':function(_0x5b13f6,_0x359758){return _0x5b13f6!==_0x359758;}};if(_0x3ff82a['WDiRq'](typeof _0x18a029,_0x5ee1fb(0xe2)))return _0x18a029;return resolveEnvVars(_0x18a029);}function expandOverrides(_0x6f548c){const _0x4be69=_0x9034,_0x5e8d24={'fOzlo':function(_0x2bb6be,_0x3bde74){return _0x2bb6be===_0x3bde74;},'qrVYJ':_0x4be69(0xe2),'HAoGX':function(_0x29aff6,_0x2eb27c){return _0x29aff6(_0x2eb27c);},'ldZwp':function(_0x46f9cd,_0xf497ec){return _0x46f9cd(_0xf497ec);}};if(!_0x6f548c)return _0x6f548c;const _0x383116={..._0x6f548c};return _0x5e8d24[_0x4be69(0xcc)](typeof _0x383116['baseUrl'],_0x5e8d24['qrVYJ'])&&(_0x383116[_0x4be69(0xde)]=_0x5e8d24[_0x4be69(0xc7)](resolveEnvVars,_0x383116['baseUrl'])),typeof _0x383116['startPath']===_0x4be69(0xe2)&&(_0x383116[_0x4be69(0xe7)]=_0x5e8d24['ldZwp'](resolveEnvVars,_0x383116['startPath'])),_0x383116;}
@@ -1 +1 @@
1
- function _0x6d19(_0x53f5f3,_0x50599f){_0x53f5f3=_0x53f5f3-0x71;const _0x57a02d=_0x57a0();let _0x6d19d1=_0x57a02d[_0x53f5f3];return _0x6d19d1;}const _0x4a6c3a=_0x6d19;function _0x57a0(){const _0x1a767d=['localSettingsBaseUrl','416658XvaHqf','authEnvironmentDomain','lTWZB','bSdNg','envBaseUrl','RANGER_START_PATH','baseUrl','1352946gsoaUQ','LbBZS','HLjgC','cloudSettings','envStartPath','uWuuz','716304KEaSQk','866664cqCRdt','RANGER_BASE_URL','4136517jQovFc','2Plygnf','221348uOiWgz','LiqIL','15FsPwxW','ievXr','133157gyurgu','projectOverrides','startPath','test','env'];_0x57a0=function(){return _0x1a767d;};return _0x57a0();}(function(_0x4b2c23,_0x359ab7){const _0x4c3888=_0x6d19,_0xd494b2=_0x4b2c23();while(!![]){try{const _0x5a9c98=parseInt(_0x4c3888(0x88))/0x1*(parseInt(_0x4c3888(0x83))/0x2)+-parseInt(_0x4c3888(0x72))/0x3+-parseInt(_0x4c3888(0x84))/0x4*(-parseInt(_0x4c3888(0x86))/0x5)+parseInt(_0x4c3888(0x7f))/0x6+parseInt(_0x4c3888(0x79))/0x7+parseInt(_0x4c3888(0x80))/0x8+-parseInt(_0x4c3888(0x82))/0x9;if(_0x5a9c98===_0x359ab7)break;else _0xd494b2['push'](_0xd494b2['shift']());}catch(_0x277350){_0xd494b2['push'](_0xd494b2['shift']());}}}(_0x57a0,0x1db40));function firstDefined(..._0x2265ce){const _0x13ee92=_0x6d19,_0x30b1eb={'LbBZS':function(_0x33a897,_0x186c2d){return _0x33a897!==_0x186c2d;}};for(const _0x17c1d9 of _0x2265ce){if(_0x30b1eb[_0x13ee92(0x7a)](_0x17c1d9,undefined)&&_0x17c1d9!==null&&_0x17c1d9!=='')return _0x17c1d9;}return undefined;}function normalizeAuthEnvironmentDomain(_0x2a0ab0){const _0x10432e=_0x6d19;if(!_0x2a0ab0)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0x10432e(0x8b)](_0x2a0ab0))return _0x2a0ab0;return'https://'+_0x2a0ab0;}export function resolveBaseUrl(_0x1e5189){const _0x40d988=_0x6d19,_0x9e81e2={'uWuuz':function(_0x5774e6,_0x2edd80){return _0x5774e6===_0x2edd80;},'ievXr':function(_0x1f4937,_0x378688,_0x5789f4,_0x8ce6b9,_0x1ffbf8,_0xa13ef,_0x2fa5e4){return _0x1f4937(_0x378688,_0x5789f4,_0x8ce6b9,_0x1ffbf8,_0xa13ef,_0x2fa5e4);}},_0x57cd58=_0x1e5189[_0x40d988(0x89)],_0x3440ae=!!_0x57cd58&&_0x40d988(0x78)in _0x57cd58,_0x269ff9=_0x57cd58?.['baseUrl'],_0xd87123=!(_0x3440ae&&_0x9e81e2[_0x40d988(0x7e)](_0x269ff9,null));return _0x9e81e2[_0x40d988(0x87)](firstDefined,_0x1e5189['flagBaseUrl'],_0x1e5189[_0x40d988(0x76)],_0x1e5189[_0x40d988(0x71)],_0x9e81e2['uWuuz'](typeof _0x269ff9,'string')?_0x269ff9:undefined,_0xd87123?_0x1e5189[_0x40d988(0x7c)]?.[_0x40d988(0x78)]:undefined,_0xd87123?normalizeAuthEnvironmentDomain(_0x1e5189[_0x40d988(0x73)]):undefined);}export function resolveStartPath(_0x25c147){const _0x45c522=_0x6d19,_0x3e2e6c={'HLjgC':function(_0x16e313,_0x15117c){return _0x16e313 in _0x15117c;},'DbVru':_0x45c522(0x8a),'bSdNg':function(_0x2310bb,_0x411eee,_0x196247,_0x3f474d,_0x25bb49){return _0x2310bb(_0x411eee,_0x196247,_0x3f474d,_0x25bb49);},'JtNUf':'string'},_0x4c5e99=_0x25c147['projectOverrides'],_0x1a37cd=!!_0x4c5e99&&_0x3e2e6c[_0x45c522(0x7b)](_0x3e2e6c['DbVru'],_0x4c5e99),_0xecd567=_0x4c5e99?.['startPath'],_0x5dc4ae=!(_0x1a37cd&&_0xecd567===null);return _0x3e2e6c[_0x45c522(0x75)](firstDefined,_0x25c147['flagStartPath'],_0x25c147[_0x45c522(0x7d)],typeof _0xecd567===_0x3e2e6c['JtNUf']?_0xecd567:undefined,_0x5dc4ae?_0x25c147[_0x45c522(0x7c)]?.['startPath']:undefined);}export function joinBaseAndPath(_0x3d1a69,_0x396f43){if(!_0x3d1a69)return undefined;if(!_0x396f43)return _0x3d1a69;const _0x16fb61=_0x3d1a69['endsWith']('/')?_0x3d1a69['slice'](0x0,-0x1):_0x3d1a69,_0x33e4b1=_0x396f43['startsWith']('/')?_0x396f43:'/'+_0x396f43;return _0x16fb61+_0x33e4b1;}export function resolveProfileUrl(_0x1abf7d){const _0x4c8a90=_0x6d19,_0x3f86db={'lTWZB':function(_0x1c5a70,_0x436ef8){return _0x1c5a70(_0x436ef8);},'LiqIL':function(_0x519709,_0x3b8416,_0x231d69){return _0x519709(_0x3b8416,_0x231d69);}},_0x2acf5e=resolveBaseUrl(_0x1abf7d),_0x55f851=_0x3f86db[_0x4c8a90(0x74)](resolveStartPath,_0x1abf7d);return{'baseUrl':_0x2acf5e,'startPath':_0x55f851,'url':_0x3f86db[_0x4c8a90(0x85)](joinBaseAndPath,_0x2acf5e,_0x55f851)};}export function readUrlEnvVars(_0x57ce95=process[_0x4a6c3a(0x8c)]){const _0x853d5b=_0x4a6c3a;return{'envBaseUrl':_0x57ce95[_0x853d5b(0x81)],'envStartPath':_0x57ce95[_0x853d5b(0x77)]};}
1
+ (function(_0x11644a,_0x27bedd){const _0x235f91=_0x12d5,_0x49465f=_0x11644a();while(!![]){try{const _0x49d4e5=-parseInt(_0x235f91(0x1a7))/0x1*(parseInt(_0x235f91(0x1a5))/0x2)+parseInt(_0x235f91(0x1a9))/0x3+parseInt(_0x235f91(0x1a6))/0x4+parseInt(_0x235f91(0x1aa))/0x5+-parseInt(_0x235f91(0x1a2))/0x6+parseInt(_0x235f91(0x1a0))/0x7+-parseInt(_0x235f91(0x1ac))/0x8*(-parseInt(_0x235f91(0x1a8))/0x9);if(_0x49d4e5===_0x27bedd)break;else _0x49465f['push'](_0x49465f['shift']());}catch(_0x3e62a0){_0x49465f['push'](_0x49465f['shift']());}}}(_0x2c65,0xb780c));function firstDefined(..._0x30b125){const _0x575347={'hOjCD':function(_0x391dc1,_0x5d3fae){return _0x391dc1!==_0x5d3fae;}};for(const _0x348049 of _0x30b125){if(_0x348049!==undefined&&_0x348049!==null&&_0x575347['hOjCD'](_0x348049,''))return _0x348049;}return undefined;}function normalizeAuthEnvironmentDomain(_0x12ddac){const _0xf22251=_0x12d5;if(!_0x12ddac)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0xf22251(0x1ae)](_0x12ddac))return _0x12ddac;return _0xf22251(0x1a3)+_0x12ddac;}export function resolveBaseUrl(_0x590560){const _0x263d84=_0x12d5,_0x3da900={'iWvfo':function(_0x33320a,_0x52b937){return _0x33320a in _0x52b937;},'aExKV':function(_0x4892c6,_0x45a866){return _0x4892c6===_0x45a866;},'jyilP':function(_0x444acc,_0x1147cc,_0x19926e,_0x554006,_0x3fbdf3,_0x416cba,_0x2f4de5){return _0x444acc(_0x1147cc,_0x19926e,_0x554006,_0x3fbdf3,_0x416cba,_0x2f4de5);},'zUYaB':function(_0x17a5b4,_0x4323b4){return _0x17a5b4===_0x4323b4;},'XQFjB':'string'},_0x321e8=_0x590560['projectOverrides'],_0x169065=!!_0x321e8&&_0x3da900[_0x263d84(0x19d)]('baseUrl',_0x321e8),_0x5658ff=_0x321e8?.['baseUrl'],_0x50df3b=!(_0x169065&&_0x3da900['aExKV'](_0x5658ff,null));return _0x3da900[_0x263d84(0x19c)](firstDefined,_0x590560[_0x263d84(0x1a4)],_0x590560['envBaseUrl'],_0x590560[_0x263d84(0x1a1)],_0x3da900['zUYaB'](typeof _0x5658ff,_0x3da900[_0x263d84(0x1af)])?_0x5658ff:undefined,_0x50df3b?_0x590560[_0x263d84(0x19e)]?.[_0x263d84(0x199)]:undefined,_0x50df3b?normalizeAuthEnvironmentDomain(_0x590560['authEnvironmentDomain']):undefined);}export function resolveStartPath(_0x13b01d){const _0x24591f=_0x12d5,_0x304c1f={'CGHGh':'startPath'},_0x5d11dc=_0x13b01d['projectOverrides'],_0x5d2cae=!!_0x5d11dc&&_0x304c1f[_0x24591f(0x1ab)]in _0x5d11dc,_0x26bad3=_0x5d11dc?.[_0x24591f(0x19f)],_0x5e9889=!(_0x5d2cae&&_0x26bad3===null);return firstDefined(_0x13b01d['flagStartPath'],_0x13b01d['envStartPath'],typeof _0x26bad3==='string'?_0x26bad3:undefined,_0x5e9889?_0x13b01d[_0x24591f(0x19e)]?.['startPath']:undefined);}function _0x12d5(_0x18a406,_0x89ad66){_0x18a406=_0x18a406-0x199;const _0x2c65b5=_0x2c65();let _0x12d5f1=_0x2c65b5[_0x18a406];return _0x12d5f1;}export function joinBaseAndPath(_0x50da77,_0x1c4e35){const _0x2fdf69=_0x12d5,_0x6b136c={'cetMO':function(_0x3ed7a3,_0x527ccf){return _0x3ed7a3+_0x527ccf;}};if(!_0x50da77)return undefined;if(!_0x1c4e35)return _0x50da77;const _0x2cf0ff=_0x50da77[_0x2fdf69(0x1ad)]('/')?_0x50da77[_0x2fdf69(0x19b)](0x0,-0x1):_0x50da77,_0x2ebde2=_0x1c4e35['startsWith']('/')?_0x1c4e35:_0x6b136c['cetMO']('/',_0x1c4e35);return _0x2cf0ff+_0x2ebde2;}function _0x2c65(){const _0x2ce40b=['7787574VMEula','https://','flagBaseUrl','4426DHRhNY','2608696ePkLGc','673ZyAyiF','614826NgUqWh','1736535GbKzrb','3421295lirjpk','CGHGh','48pTrNzS','endsWith','test','XQFjB','baseUrl','RANGER_START_PATH','slice','jyilP','iWvfo','cloudSettings','startPath','8496208fRihsa','localSettingsBaseUrl'];_0x2c65=function(){return _0x2ce40b;};return _0x2c65();}export function resolveProfileUrl(_0x5a18b1){const _0x368895={'jEUnR':function(_0x2e8ad5,_0x62a372){return _0x2e8ad5(_0x62a372);}},_0x1ad949=_0x368895['jEUnR'](resolveBaseUrl,_0x5a18b1),_0x3d3252=_0x368895['jEUnR'](resolveStartPath,_0x5a18b1);return{'baseUrl':_0x1ad949,'startPath':_0x3d3252,'url':joinBaseAndPath(_0x1ad949,_0x3d3252)};}export function readUrlEnvVars(_0x594b60=process['env']){const _0x41ded2=_0x12d5;return{'envBaseUrl':_0x594b60['RANGER_BASE_URL'],'envStartPath':_0x594b60[_0x41ded2(0x19a)]};}
@@ -1 +1 @@
1
- function _0x279d(){const _0x39271b=['\x20failed\x20(attempt\x20','12630726VThsGN','),\x20retrying\x20in\x20','2831630BwsZRT','77vzGHMn','7230680bhRtTI','3983688aUqkZu','2ifViMD','233944KGtKbm','15zfTxYB','135693xBapvN','5EHLXDd','tXeZz','6197835gQRVDK'];_0x279d=function(){return _0x39271b;};return _0x279d();}function _0xc750(_0xb4882f,_0x30eec2){_0xb4882f=_0xb4882f-0xeb;const _0x279d1d=_0x279d();let _0xc75019=_0x279d1d[_0xb4882f];return _0xc75019;}(function(_0x369f05,_0x197b35){const _0x24649c=_0xc750,_0x43a3c5=_0x369f05();while(!![]){try{const _0x1e7657=-parseInt(_0x24649c(0xec))/0x1*(-parseInt(_0x24649c(0xf7))/0x2)+parseInt(_0x24649c(0xeb))/0x3*(-parseInt(_0x24649c(0xf8))/0x4)+parseInt(_0x24649c(0xed))/0x5*(-parseInt(_0x24649c(0xf6))/0x6)+-parseInt(_0x24649c(0xef))/0x7+-parseInt(_0x24649c(0xf5))/0x8+parseInt(_0x24649c(0xf1))/0x9+-parseInt(_0x24649c(0xf3))/0xa*(-parseInt(_0x24649c(0xf4))/0xb);if(_0x1e7657===_0x197b35)break;else _0x43a3c5['push'](_0x43a3c5['shift']());}catch(_0x58804a){_0x43a3c5['push'](_0x43a3c5['shift']());}}}(_0x279d,0xbd5ce));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x1f5d62,_0x4f432b){const _0x405f05=_0xc750,_0x540668={'oMTKq':function(_0x1ace56,_0x4c5928){return _0x1ace56<=_0x4c5928;},'uJVxQ':function(_0x4de12d){return _0x4de12d();},'VNZdr':function(_0x478825,_0x44f6d1){return _0x478825*_0x44f6d1;},'tXeZz':function(_0x38af5f,_0x530ed9){return _0x38af5f+_0x530ed9;}},_0x426112=_0x4f432b?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x4eed91=_0x4f432b?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x1405b1;for(let _0x40a75a=0x0;_0x540668['oMTKq'](_0x40a75a,_0x426112);_0x40a75a++){try{return await _0x540668['uJVxQ'](_0x1f5d62);}catch(_0x3767be){_0x1405b1=_0x3767be instanceof Error?_0x3767be:new Error(String(_0x3767be));if(_0x40a75a<_0x426112){const _0x2c58cb=_0x540668['VNZdr'](_0x4eed91,Math['pow'](0x2,_0x40a75a));_0x4f432b?.['label']&&console['error'](_0x4f432b['label']+_0x405f05(0xf0)+_0x540668[_0x405f05(0xee)](_0x40a75a,0x1)+'/'+_0x540668['tXeZz'](_0x426112,0x1)+_0x405f05(0xf2)+_0x2c58cb+'ms...'),await new Promise(_0x1c1242=>setTimeout(_0x1c1242,_0x2c58cb));}}}throw _0x1405b1;}
1
+ (function(_0x2912a6,_0x581045){const _0x308bfa=_0x57d5,_0x1b7d30=_0x2912a6();while(!![]){try{const _0x380763=-parseInt(_0x308bfa(0x9e))/0x1+-parseInt(_0x308bfa(0x9a))/0x2*(parseInt(_0x308bfa(0x96))/0x3)+parseInt(_0x308bfa(0x97))/0x4*(parseInt(_0x308bfa(0xa7))/0x5)+-parseInt(_0x308bfa(0xa1))/0x6*(-parseInt(_0x308bfa(0xa3))/0x7)+-parseInt(_0x308bfa(0x9d))/0x8+parseInt(_0x308bfa(0x9f))/0x9*(-parseInt(_0x308bfa(0xa5))/0xa)+parseInt(_0x308bfa(0x99))/0xb*(parseInt(_0x308bfa(0x9b))/0xc);if(_0x380763===_0x581045)break;else _0x1b7d30['push'](_0x1b7d30['shift']());}catch(_0x5d1859){_0x1b7d30['push'](_0x1b7d30['shift']());}}}(_0x63d2,0xabe2e));function _0x63d2(){const _0x42c776=['30GcFCng','\x20failed\x20(attempt\x20','46915bjOFqe','baseDelayMs','15uZYDcg','484Izkbga','),\x20retrying\x20in\x20','14624313LfRCVE','304732DCFZRN','12jBvkQy','ms...','10153048edFmce','304849FDUJBx','2380122VnpwjD','maxRetries','12OmNVyw','label','4789414nJGrnL','error'];_0x63d2=function(){return _0x42c776;};return _0x63d2();}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x57d5(_0x5a48fd,_0x2aed51){_0x5a48fd=_0x5a48fd-0x96;const _0x63d2d6=_0x63d2();let _0x57d526=_0x63d2d6[_0x5a48fd];return _0x57d526;}export async function withRetry(_0x5b8968,_0x54ad79){const _0x41fa26=_0x57d5,_0x50e551=_0x54ad79?.[_0x41fa26(0xa0)]??DEFAULT_MAX_RETRIES,_0x2785f8=_0x54ad79?.[_0x41fa26(0xa8)]??DEFAULT_BASE_DELAY_MS;let _0x1b5234;for(let _0x3466e2=0x0;_0x3466e2<=_0x50e551;_0x3466e2++){try{return await _0x5b8968();}catch(_0x1a6710){_0x1b5234=_0x1a6710 instanceof Error?_0x1a6710:new Error(String(_0x1a6710));if(_0x3466e2<_0x50e551){const _0x54adb7=_0x2785f8*Math['pow'](0x2,_0x3466e2);_0x54ad79?.[_0x41fa26(0xa2)]&&console[_0x41fa26(0xa4)](_0x54ad79['label']+_0x41fa26(0xa6)+(_0x3466e2+0x1)+'/'+(_0x50e551+0x1)+_0x41fa26(0x98)+_0x54adb7+_0x41fa26(0x9c)),await new Promise(_0xe2ca85=>setTimeout(_0xe2ca85,_0x54adb7));}}}throw _0x1b5234;}
@@ -1 +1 @@
1
- const _0x2b63c9=_0x6302;(function(_0x34c756,_0x2f2628){const _0x596d97=_0x6302,_0xa25551=_0x34c756();while(!![]){try{const _0x1eabd2=parseInt(_0x596d97(0x162))/0x1+-parseInt(_0x596d97(0x15c))/0x2+-parseInt(_0x596d97(0x159))/0x3+-parseInt(_0x596d97(0x156))/0x4*(parseInt(_0x596d97(0x152))/0x5)+-parseInt(_0x596d97(0x150))/0x6+parseInt(_0x596d97(0x16f))/0x7*(-parseInt(_0x596d97(0x170))/0x8)+-parseInt(_0x596d97(0x148))/0x9*(-parseInt(_0x596d97(0x15e))/0xa);if(_0x1eabd2===_0x2f2628)break;else _0xa25551['push'](_0xa25551['shift']());}catch(_0x4a4c58){_0xa25551['push'](_0xa25551['shift']());}}}(_0xecf6,0x5d2ab));import*as _0x4c9d66 from'fs';import*as _0x593260 from'path';import*as _0x1f692b from'os';import{execSync}from'child_process';const CACHE_FILE=_0x593260['join'](_0x1f692b[_0x2b63c9(0x158)](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x3ef653=_0x2b63c9,_0x2ba552={'tbZPF':function(_0x4046c2){return _0x4046c2();}};try{if(_0x4c9d66[_0x3ef653(0x147)](CACHE_FILE)){const _0x3d502a=JSON[_0x3ef653(0x16a)](_0x4c9d66[_0x3ef653(0x15b)](CACHE_FILE,_0x3ef653(0x14e)));return{'version':0x3,'sessions':_0x3d502a['sessions']||{},'branches':_0x3d502a[_0x3ef653(0x14d)]||{},'lastEnabledSessionClearedAt':_0x3d502a['lastEnabledSessionClearedAt']};}}catch{}return _0x2ba552['tbZPF'](createEmptyCache);}function saveCache(_0x5dcaaa){const _0x51a0b8=_0x2b63c9;try{const _0x92ab40=_0x593260['dirname'](CACHE_FILE);!_0x4c9d66['existsSync'](_0x92ab40)&&_0x4c9d66[_0x51a0b8(0x151)](_0x92ab40,{'recursive':!![]}),_0x4c9d66[_0x51a0b8(0x149)](CACHE_FILE,JSON[_0x51a0b8(0x155)](_0x5dcaaa,null,0x2));}catch{}}export function getCurrentBranch(){const _0x1a0ec0=_0x2b63c9,_0x1bae79={'FPhjN':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','RDRhc':_0x1a0ec0(0x14e),'NKeib':'pipe'};try{const _0x50888b=execSync(_0x1bae79[_0x1a0ec0(0x16b)],{'encoding':_0x1bae79['RDRhc'],'stdio':['pipe',_0x1bae79['NKeib'],_0x1a0ec0(0x171)]})[_0x1a0ec0(0x175)]();if(!_0x50888b||_0x50888b==='HEAD')return null;return _0x50888b;}catch{return null;}}export function enableBranch(_0x5165e6){const _0x4e8f42=_0x2b63c9,_0x2c4b81={'dsUpO':function(_0x34d957){return _0x34d957();},'ZomVt':function(_0x200dbd,_0x125075){return _0x200dbd(_0x125075);}},_0x175c86=_0x2c4b81[_0x4e8f42(0x16e)](loadCache);_0x175c86[_0x4e8f42(0x14d)][_0x5165e6]=!![],_0x2c4b81['ZomVt'](saveCache,_0x175c86);}export function disableBranch(_0x15b6b6){const _0x211959={'KantS':function(_0x1ffe63,_0x4db89c){return _0x1ffe63(_0x4db89c);}},_0x116a58=loadCache();delete _0x116a58['branches'][_0x15b6b6],_0x211959['KantS'](saveCache,_0x116a58);}export function isBranchEnabled(_0x2514e9){const _0x3065d7=_0x2b63c9,_0x4a3864={'OsGYL':function(_0x1d39ee){return _0x1d39ee();},'UHVwi':function(_0x1480b1,_0x3cb061){return _0x1480b1===_0x3cb061;}},_0x47e169=_0x4a3864['OsGYL'](loadCache);return _0x4a3864[_0x3065d7(0x165)](_0x47e169[_0x3065d7(0x14d)][_0x2514e9],!![]);}function getOrCreateSession(_0x21755f,_0x552c06){const _0xcda40b=_0x2b63c9;return!_0x21755f['sessions'][_0x552c06]&&(_0x21755f['sessions'][_0x552c06]={}),_0x21755f[_0xcda40b(0x157)][_0x552c06];}export function enableSession(_0x56be32){const _0x41b811=_0x2b63c9,_0xdf6adb={'JpjWT':function(_0x5d95e7){return _0x5d95e7();},'RXHkf':function(_0x29be5f){return _0x29be5f();},'XyJVL':function(_0x2c4e05,_0x3456a7){return _0x2c4e05!==_0x3456a7;},'bpbmE':_0x41b811(0x176),'pyaHQ':function(_0xd8bae0,_0x1ea933){return _0xd8bae0(_0x1ea933);}},_0x3709e3=_0xdf6adb[_0x41b811(0x15a)](loadCache),_0xde3a84=getOrCreateSession(_0x3709e3,_0x56be32);_0xde3a84[_0x41b811(0x14a)]=!![];const _0x1921b0=_0xdf6adb['RXHkf'](getCurrentBranch);_0x1921b0&&_0xdf6adb[_0x41b811(0x160)](_0x1921b0,_0xdf6adb['bpbmE'])&&_0x1921b0!=='master'&&(_0x3709e3['branches'][_0x1921b0]=!![],_0xde3a84[_0x41b811(0x167)]=_0x1921b0),_0xdf6adb[_0x41b811(0x15f)](saveCache,_0x3709e3);}export function isSessionEnabled(_0x40bd80){const _0x290f45=_0x2b63c9,_0x1662ff={'zTVuN':function(_0x259e15,_0x28c273){return _0x259e15===_0x28c273;},'dBQUj':_0x290f45(0x14c),'rKUyF':function(_0x10a8d3,_0x142f05){return _0x10a8d3===_0x142f05;}},_0x5b64e7=loadCache(),_0x55783f=getCurrentBranch();if(!_0x55783f||_0x1662ff[_0x290f45(0x15d)](_0x55783f,'main')||_0x55783f===_0x1662ff['dBQUj'])return _0x5b64e7[_0x290f45(0x157)][_0x40bd80]?.['enabled']===!![];const _0x5eb7a0=_0x5b64e7['branches'][_0x55783f]===!![],_0x12e09b=_0x1662ff[_0x290f45(0x14b)](_0x5b64e7[_0x290f45(0x157)][_0x40bd80]?.[_0x290f45(0x14a)],!![]);return _0x5eb7a0||_0x12e09b;}export function disableSession(_0x22c70f){const _0x444596=_0x2b63c9,_0x3d9004={'oAUqa':function(_0x1b21f4,_0x5519ac,_0x5c7c44){return _0x1b21f4(_0x5519ac,_0x5c7c44);}},_0xd11f20=loadCache(),_0x51b2b2=_0x3d9004[_0x444596(0x153)](getOrCreateSession,_0xd11f20,_0x22c70f);_0x51b2b2['enabled']=![],saveCache(_0xd11f20);}export function updateBranchTracking(_0x9440df){const _0x42c8a4=_0x2b63c9,_0x483c52={'kuNEq':function(_0x2167c2){return _0x2167c2();},'GbbsV':function(_0x4111ff){return _0x4111ff();},'ZcXoZ':function(_0x1e303c,_0x4cacc7){return _0x1e303c===_0x4cacc7;},'BuVHf':function(_0x3cd627,_0x2ce6b4){return _0x3cd627!==_0x2ce6b4;},'QCXhx':function(_0x3e1248,_0x4b7c76){return _0x3e1248(_0x4b7c76);}},_0x505b71=_0x483c52['kuNEq'](loadCache),_0x2967bf=_0x505b71[_0x42c8a4(0x157)][_0x9440df];if(!_0x2967bf?.[_0x42c8a4(0x14a)])return;const _0xdd2952=_0x483c52['GbbsV'](getCurrentBranch);if(!_0xdd2952||_0xdd2952==='main'||_0x483c52[_0x42c8a4(0x16c)](_0xdd2952,_0x42c8a4(0x14c)))return;_0x483c52['BuVHf'](_0x2967bf['currentBranch'],_0xdd2952)&&(_0x505b71['branches'][_0xdd2952]=!![],_0x2967bf[_0x42c8a4(0x167)]=_0xdd2952,_0x483c52['QCXhx'](saveCache,_0x505b71));}export function initBranchTracking(_0x20bd6c){const _0x572dd6=_0x2b63c9,_0x371625={'bPkdO':function(_0x4065bb,_0x401dbc){return _0x4065bb===_0x401dbc;},'yfqSN':'master','tHRyV':function(_0x58e669,_0xaa4c3e,_0x42e7e2){return _0x58e669(_0xaa4c3e,_0x42e7e2);},'sdWvW':function(_0x3a7323,_0x90d72d){return _0x3a7323(_0x90d72d);}},_0x392263=loadCache(),_0x4e8232=getCurrentBranch();if(!_0x4e8232||_0x371625['bPkdO'](_0x4e8232,_0x572dd6(0x176))||_0x371625[_0x572dd6(0x173)](_0x4e8232,_0x371625['yfqSN']))return;if(_0x392263['branches'][_0x4e8232]===!![]){const _0x557840=_0x371625[_0x572dd6(0x166)](getOrCreateSession,_0x392263,_0x20bd6c);_0x557840[_0x572dd6(0x14a)]=!![],_0x557840[_0x572dd6(0x167)]=_0x4e8232,_0x371625['sdWvW'](saveCache,_0x392263);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x327726){const _0xa7df3f=_0x2b63c9,_0x5f38c8={'PIVos':function(_0x7b5216,_0x9a5ba3){return _0x7b5216(_0x9a5ba3);}},_0x52ba3b=loadCache(),_0x4b1866=_0x52ba3b[_0xa7df3f(0x157)][_0x327726];_0x4b1866?.[_0xa7df3f(0x14a)]&&(_0x52ba3b[_0xa7df3f(0x172)]=Date[_0xa7df3f(0x163)](),_0x5f38c8['PIVos'](saveCache,_0x52ba3b));}function _0xecf6(){const _0x5e91bd=['4132OzczQd','sessions','homedir','2168487QJlgVR','JpjWT','readFileSync','179320DeqVoh','zTVuN','264790fdQFBU','pyaHQ','XyJVL','MWNnc','421289VaoeJq','now','registeredAt','UHVwi','tHRyV','currentBranch','lastPlanReminderAt','Zdbjo','parse','FPhjN','ZcXoZ','IvzhH','dsUpO','3292163NNOlpn','8zqFXJf','pipe','lastEnabledSessionClearedAt','bPkdO','oKvml','trim','main','dlXao','existsSync','603njxVtp','writeFileSync','enabled','rKUyF','master','branches','utf-8','lastStopReminderAt','2082594MLcUlP','mkdirSync','890eaEqFR','oAUqa','featureId','stringify'];_0xecf6=function(){return _0x5e91bd;};return _0xecf6();}export function shouldAutoEnableAfterClear(_0x5da1ef){const _0x5a25c0={'rICoV':function(_0x5b6784,_0x49e1fb){return _0x5b6784<=_0x49e1fb;}};if(_0x5da1ef!=='clear')return![];const _0x190da5=loadCache(),_0x377b51=_0x190da5['lastEnabledSessionClearedAt'];if(!_0x377b51)return![];const _0xc0ee5e=Date['now']()-_0x377b51;return _0x5a25c0['rICoV'](_0xc0ee5e,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x83cf3d){const _0x382354=_0x2b63c9,_0x2862df={'MWNnc':function(_0x816606){return _0x816606();},'Zdbjo':'main','IvzhH':function(_0x45526b,_0x19d505){return _0x45526b!==_0x19d505;},'Xipec':_0x382354(0x14c),'uTcpQ':function(_0x296226,_0x19d552){return _0x296226(_0x19d552);}},_0x2eb5b8=loadCache(),_0x2b6ad9=getOrCreateSession(_0x2eb5b8,_0x83cf3d);_0x2b6ad9[_0x382354(0x14a)]=!![];const _0x397096=_0x2862df[_0x382354(0x161)](getCurrentBranch);_0x397096&&_0x397096!==_0x2862df[_0x382354(0x169)]&&_0x2862df[_0x382354(0x16d)](_0x397096,_0x2862df['Xipec'])&&(_0x2b6ad9['currentBranch']=_0x397096),delete _0x2eb5b8['lastEnabledSessionClearedAt'],_0x2862df['uTcpQ'](saveCache,_0x2eb5b8);}export function registerSession(_0x3c3c43,_0x338dd2){const _0x48a7f5=_0x2b63c9,_0x33a241={'zfjpz':function(_0x55726c){return _0x55726c();},'nEnjt':function(_0x52c4f3,_0x1b232e){return _0x52c4f3(_0x1b232e);}},_0x3d005b=_0x33a241['zfjpz'](loadCache),_0x4f5921=getOrCreateSession(_0x3d005b,_0x3c3c43);_0x4f5921['featureId']=_0x338dd2,_0x4f5921[_0x48a7f5(0x164)]=new Date()['toISOString'](),_0x33a241['nEnjt'](saveCache,_0x3d005b);}export function getSessionEntry(_0x145d49){const _0x2c0a77=_0x2b63c9,_0x87654={'UUgkC':function(_0x19b761){return _0x19b761();}},_0x9e3dc0=_0x87654['UUgkC'](loadCache),_0x3492c2=_0x9e3dc0[_0x2c0a77(0x157)][_0x145d49];if(_0x3492c2?.[_0x2c0a77(0x154)]&&_0x3492c2?.[_0x2c0a77(0x164)])return{'featureId':_0x3492c2['featureId'],'registeredAt':_0x3492c2[_0x2c0a77(0x164)]};return null;}export function unregisterSession(_0x3cbd0b){const _0x4846e9=_0x2b63c9,_0x3f7123={'OBdSi':function(_0x2a68a2,_0x426517){return _0x2a68a2(_0x426517);}},_0x18e35d=loadCache(),_0x89b596=_0x18e35d[_0x4846e9(0x157)][_0x3cbd0b];_0x89b596&&(delete _0x89b596['featureId'],delete _0x89b596['registeredAt'],_0x3f7123['OBdSi'](saveCache,_0x18e35d));}function _0x6302(_0x4debc8,_0x1aa23e){_0x4debc8=_0x4debc8-0x147;const _0xecf690=_0xecf6();let _0x63025d=_0xecf690[_0x4debc8];return _0x63025d;}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0xdf818a){const _0x59c968=_0x2b63c9,_0x4efc8c={'zKjvs':function(_0x2c32b6,_0x31e0a1,_0xecddf0){return _0x2c32b6(_0x31e0a1,_0xecddf0);}},_0x12ef3a=loadCache(),_0x50404b=_0x4efc8c['zKjvs'](getOrCreateSession,_0x12ef3a,_0xdf818a),_0x275db2=_0x50404b['lastPlanReminderAt']||0x0,_0x1dea3f=Date['now']();if(_0x1dea3f-_0x275db2>=PLAN_REMINDER_INTERVAL_MS)return _0x50404b[_0x59c968(0x168)]=_0x1dea3f,saveCache(_0x12ef3a),!![];return![];}export function shouldShowStopReminder(_0x36d85f){const _0x307418=_0x2b63c9,_0x1746e1={'oKvml':function(_0x732c87){return _0x732c87();},'HVBeP':function(_0x53cb58,_0x5bca99){return _0x53cb58-_0x5bca99;}},_0x53b0b8=_0x1746e1[_0x307418(0x174)](loadCache),_0x5f3393=getOrCreateSession(_0x53b0b8,_0x36d85f),_0x1da8fc=_0x5f3393[_0x307418(0x14f)]||0x0,_0x36962c=Date[_0x307418(0x163)]();if(_0x1746e1['HVBeP'](_0x36962c,_0x1da8fc)>=STOP_REMINDER_INTERVAL_MS)return _0x5f3393['lastStopReminderAt']=_0x36962c,saveCache(_0x53b0b8),!![];return![];}export function hasSessionBeenPrompted(_0x22afbb){const _0xc74ee4={'kFRqt':function(_0x977c3f,_0x2ebf59){return _0x977c3f===_0x2ebf59;}},_0x4d3ac7=loadCache();return _0xc74ee4['kFRqt'](_0x4d3ac7['sessions'][_0x22afbb]?.['prompted'],!![]);}export function markSessionPrompted(_0x59a6ae){const _0x2cb77f=_0x2b63c9,_0x2f80d5={'dlXao':function(_0x51630b){return _0x51630b();}},_0xe57d9d=_0x2f80d5[_0x2cb77f(0x177)](loadCache),_0x58cf4c=getOrCreateSession(_0xe57d9d,_0x59a6ae);_0x58cf4c['prompted']=!![],saveCache(_0xe57d9d);}export function getCacheFile(){return CACHE_FILE;}
1
+ const _0x1b9bcb=_0x1e68;(function(_0x1c1759,_0x39d192){const _0x3e5e81=_0x1e68,_0x134d82=_0x1c1759();while(!![]){try{const _0x43a9dc=-parseInt(_0x3e5e81(0xdc))/0x1+parseInt(_0x3e5e81(0xeb))/0x2+-parseInt(_0x3e5e81(0x100))/0x3*(-parseInt(_0x3e5e81(0xdf))/0x4)+-parseInt(_0x3e5e81(0x105))/0x5+parseInt(_0x3e5e81(0xff))/0x6+parseInt(_0x3e5e81(0xf7))/0x7*(parseInt(_0x3e5e81(0x112))/0x8)+-parseInt(_0x3e5e81(0x10f))/0x9;if(_0x43a9dc===_0x39d192)break;else _0x134d82['push'](_0x134d82['shift']());}catch(_0x49b086){_0x134d82['push'](_0x134d82['shift']());}}}(_0x32ae,0xbe536));import*as _0x4c38f2 from'fs';import*as _0x459192 from'path';import*as _0x987a6a from'os';import{execSync}from'child_process';const CACHE_FILE=_0x459192['join'](_0x987a6a['homedir'](),_0x1b9bcb(0x106),_0x1b9bcb(0xfe));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x4cb85b=_0x1b9bcb,_0x52e263={'lTdWu':'utf-8'};try{if(_0x4c38f2[_0x4cb85b(0xf1)](CACHE_FILE)){const _0xa3b180=JSON[_0x4cb85b(0xe0)](_0x4c38f2[_0x4cb85b(0xfd)](CACHE_FILE,_0x52e263['lTdWu']));return{'version':0x3,'sessions':_0xa3b180[_0x4cb85b(0x102)]||{},'branches':_0xa3b180['branches']||{},'lastEnabledSessionClearedAt':_0xa3b180[_0x4cb85b(0x10c)]};}}catch{}return createEmptyCache();}function saveCache(_0x249950){const _0x2d8324=_0x1b9bcb;try{const _0x5c8b65=_0x459192['dirname'](CACHE_FILE);!_0x4c38f2['existsSync'](_0x5c8b65)&&_0x4c38f2[_0x2d8324(0xe8)](_0x5c8b65,{'recursive':!![]}),_0x4c38f2[_0x2d8324(0xdb)](CACHE_FILE,JSON['stringify'](_0x249950,null,0x2));}catch{}}function _0x1e68(_0x420687,_0x4345e0){_0x420687=_0x420687-0xda;const _0x32ae20=_0x32ae();let _0x1e687c=_0x32ae20[_0x420687];return _0x1e687c;}export function getCurrentBranch(){const _0x3d83f=_0x1b9bcb,_0x430a3c={'MgqbZ':_0x3d83f(0xe2),'BZPJY':_0x3d83f(0xf9),'OqOcc':_0x3d83f(0xe7)};try{const _0x57bc33=execSync(_0x430a3c[_0x3d83f(0x10d)],{'encoding':_0x430a3c['BZPJY'],'stdio':[_0x430a3c[_0x3d83f(0xf3)],_0x430a3c['OqOcc'],_0x430a3c['OqOcc']]})[_0x3d83f(0xef)]();if(!_0x57bc33||_0x57bc33===_0x3d83f(0xf2))return null;return _0x57bc33;}catch{return null;}}export function enableBranch(_0x8591e0){const _0x37e758={'igQvb':function(_0x28a46b){return _0x28a46b();}},_0x2a2a71=_0x37e758['igQvb'](loadCache);_0x2a2a71['branches'][_0x8591e0]=!![],saveCache(_0x2a2a71);}export function disableBranch(_0x52d89f){const _0x29398b=_0x1b9bcb,_0x272308={'RkKsw':function(_0xdf2cf){return _0xdf2cf();}},_0x621cc5=_0x272308[_0x29398b(0xee)](loadCache);delete _0x621cc5[_0x29398b(0xe3)][_0x52d89f],saveCache(_0x621cc5);}export function isBranchEnabled(_0x5ca668){const _0x1c36d7=_0x1b9bcb,_0x2b8288=loadCache();return _0x2b8288[_0x1c36d7(0xe3)][_0x5ca668]===!![];}function getOrCreateSession(_0x44f6f9,_0x39a08d){const _0x344073=_0x1b9bcb;return!_0x44f6f9[_0x344073(0x102)][_0x39a08d]&&(_0x44f6f9[_0x344073(0x102)][_0x39a08d]={}),_0x44f6f9[_0x344073(0x102)][_0x39a08d];}export function enableSession(_0x7905bd){const _0x333280=_0x1b9bcb,_0x324ec9={'fasdT':function(_0x57369d,_0x4f9ea4,_0x1237f2){return _0x57369d(_0x4f9ea4,_0x1237f2);},'SsxZb':function(_0xc4ac21,_0x4c88c2){return _0xc4ac21!==_0x4c88c2;},'TYfTp':'main'},_0x455f58=loadCache(),_0x3372cf=_0x324ec9[_0x333280(0xe1)](getOrCreateSession,_0x455f58,_0x7905bd);_0x3372cf['enabled']=!![];const _0x144cad=getCurrentBranch();_0x144cad&&_0x324ec9[_0x333280(0x108)](_0x144cad,_0x324ec9['TYfTp'])&&_0x144cad!=='master'&&(_0x455f58[_0x333280(0xe3)][_0x144cad]=!![],_0x3372cf[_0x333280(0xe5)]=_0x144cad),saveCache(_0x455f58);}export function isSessionEnabled(_0x332d71){const _0x8e6d00=_0x1b9bcb,_0x13ba2e={'pgUal':function(_0x598663){return _0x598663();},'ZVejp':function(_0x305fa4,_0x2ea8f0){return _0x305fa4===_0x2ea8f0;},'ffqrB':_0x8e6d00(0x109),'OkFOL':function(_0x44d030,_0x42d644){return _0x44d030===_0x42d644;},'whcyM':_0x8e6d00(0x107),'XbEMi':function(_0x46d212,_0x2645ff){return _0x46d212===_0x2645ff;},'YFXzH':function(_0x290ed1,_0x2f86f){return _0x290ed1||_0x2f86f;}},_0xb4b65b=loadCache(),_0x503dee=_0x13ba2e[_0x8e6d00(0x10a)](getCurrentBranch);if(!_0x503dee||_0x13ba2e['ZVejp'](_0x503dee,_0x13ba2e[_0x8e6d00(0xed)])||_0x13ba2e['OkFOL'](_0x503dee,_0x13ba2e[_0x8e6d00(0xda)]))return _0xb4b65b['sessions'][_0x332d71]?.['enabled']===!![];const _0x574645=_0x13ba2e[_0x8e6d00(0xe9)](_0xb4b65b['branches'][_0x503dee],!![]),_0x233e0c=_0x13ba2e[_0x8e6d00(0x10b)](_0xb4b65b[_0x8e6d00(0x102)][_0x332d71]?.['enabled'],!![]);return _0x13ba2e[_0x8e6d00(0xf8)](_0x574645,_0x233e0c);}export function disableSession(_0x29305d){const _0xec2d9b=_0x1b9bcb,_0x3aa594={'KxLND':function(_0x503425,_0x4d5123,_0x2b3b1f){return _0x503425(_0x4d5123,_0x2b3b1f);}},_0x46dc51=loadCache(),_0x398412=_0x3aa594['KxLND'](getOrCreateSession,_0x46dc51,_0x29305d);_0x398412[_0xec2d9b(0xea)]=![],saveCache(_0x46dc51);}export function updateBranchTracking(_0x6d0efe){const _0x1055f4=_0x1b9bcb,_0x197a89={'eoqXF':function(_0x24fb52){return _0x24fb52();},'bZijs':function(_0x43bb6f,_0x264f80){return _0x43bb6f===_0x264f80;},'HUpaf':function(_0x21e23a,_0x20c0df){return _0x21e23a(_0x20c0df);}},_0xf8ec23=loadCache(),_0x575844=_0xf8ec23[_0x1055f4(0x102)][_0x6d0efe];if(!_0x575844?.['enabled'])return;const _0x102d1b=_0x197a89[_0x1055f4(0x104)](getCurrentBranch);if(!_0x102d1b||_0x197a89[_0x1055f4(0xf4)](_0x102d1b,_0x1055f4(0x109))||_0x197a89[_0x1055f4(0xf4)](_0x102d1b,_0x1055f4(0x107)))return;_0x575844['currentBranch']!==_0x102d1b&&(_0xf8ec23['branches'][_0x102d1b]=!![],_0x575844['currentBranch']=_0x102d1b,_0x197a89['HUpaf'](saveCache,_0xf8ec23));}export function initBranchTracking(_0x92e2d9){const _0x4c1b69=_0x1b9bcb,_0x3bdfba={'TlSjZ':'main','ndefz':'master','scXkQ':function(_0x50e288,_0x1749c4){return _0x50e288===_0x1749c4;},'shiot':function(_0x51588f,_0x44a7be,_0x4e8ee0){return _0x51588f(_0x44a7be,_0x4e8ee0);}},_0x1a1ef0=loadCache(),_0x50d8b4=getCurrentBranch();if(!_0x50d8b4||_0x50d8b4===_0x3bdfba[_0x4c1b69(0xec)]||_0x50d8b4===_0x3bdfba['ndefz'])return;if(_0x3bdfba[_0x4c1b69(0xfc)](_0x1a1ef0['branches'][_0x50d8b4],!![])){const _0x2f796e=_0x3bdfba['shiot'](getOrCreateSession,_0x1a1ef0,_0x92e2d9);_0x2f796e[_0x4c1b69(0xea)]=!![],_0x2f796e[_0x4c1b69(0xe5)]=_0x50d8b4,saveCache(_0x1a1ef0);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x5e9e55){const _0x189a95=_0x1b9bcb,_0x178f33={'WAKDl':function(_0x2ff3e8,_0xc415c8){return _0x2ff3e8(_0xc415c8);}},_0x396e73=loadCache(),_0x4f6ec2=_0x396e73['sessions'][_0x5e9e55];_0x4f6ec2?.[_0x189a95(0xea)]&&(_0x396e73['lastEnabledSessionClearedAt']=Date[_0x189a95(0x113)](),_0x178f33['WAKDl'](saveCache,_0x396e73));}export function shouldAutoEnableAfterClear(_0x1c7305){const _0x5d3466=_0x1b9bcb,_0x126215={'CYiuT':function(_0x428375,_0x469575){return _0x428375!==_0x469575;},'WduLT':function(_0x19e3ce,_0xc2b42e){return _0x19e3ce-_0xc2b42e;}};if(_0x126215['CYiuT'](_0x1c7305,_0x5d3466(0xdd)))return![];const _0x5ae091=loadCache(),_0x4e4a53=_0x5ae091[_0x5d3466(0x10c)];if(!_0x4e4a53)return![];const _0x5ec3f9=_0x126215[_0x5d3466(0x111)](Date[_0x5d3466(0x113)](),_0x4e4a53);return _0x5ec3f9<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x25b373){const _0xc408c5=_0x1b9bcb,_0x46e51d={'etoVX':function(_0xa7fa34){return _0xa7fa34();},'MkRkO':function(_0x385335,_0x3d714c,_0x520d19){return _0x385335(_0x3d714c,_0x520d19);},'mywId':function(_0x33226d){return _0x33226d();},'osBym':function(_0x415a2b,_0x5cae8e){return _0x415a2b!==_0x5cae8e;},'PGZPL':_0xc408c5(0x107),'UvWLg':function(_0x41df39,_0x55e262){return _0x41df39(_0x55e262);}},_0x53c336=_0x46e51d['etoVX'](loadCache),_0x48a01e=_0x46e51d[_0xc408c5(0xfb)](getOrCreateSession,_0x53c336,_0x25b373);_0x48a01e['enabled']=!![];const _0x3c3a1a=_0x46e51d[_0xc408c5(0xde)](getCurrentBranch);_0x3c3a1a&&_0x3c3a1a!=='main'&&_0x46e51d['osBym'](_0x3c3a1a,_0x46e51d['PGZPL'])&&(_0x48a01e['currentBranch']=_0x3c3a1a),delete _0x53c336[_0xc408c5(0x10c)],_0x46e51d['UvWLg'](saveCache,_0x53c336);}export function registerSession(_0x2fe835,_0x46868b){const _0x64d3c={'cvWeg':function(_0x52640b){return _0x52640b();},'ImoXB':function(_0xbd8faf,_0x175419,_0x3dc5c7){return _0xbd8faf(_0x175419,_0x3dc5c7);}},_0x2a2daf=_0x64d3c['cvWeg'](loadCache),_0xce72b8=_0x64d3c['ImoXB'](getOrCreateSession,_0x2a2daf,_0x2fe835);_0xce72b8['featureId']=_0x46868b,_0xce72b8['registeredAt']=new Date()['toISOString'](),saveCache(_0x2a2daf);}export function getSessionEntry(_0x2e5e58){const _0xdba1ca=_0x1b9bcb,_0x14e8e3={'TmAjv':function(_0x48c3bf){return _0x48c3bf();}},_0x1e7c02=_0x14e8e3[_0xdba1ca(0xe4)](loadCache),_0x202ace=_0x1e7c02[_0xdba1ca(0x102)][_0x2e5e58];if(_0x202ace?.[_0xdba1ca(0xf0)]&&_0x202ace?.[_0xdba1ca(0xfa)])return{'featureId':_0x202ace['featureId'],'registeredAt':_0x202ace[_0xdba1ca(0xfa)]};return null;}export function unregisterSession(_0x15ef0a){const _0x714706=_0x1b9bcb,_0x352b69={'HoMTK':function(_0x7f2c1,_0x2c7d43){return _0x7f2c1(_0x2c7d43);}},_0x518fbd=loadCache(),_0x64f3e9=_0x518fbd[_0x714706(0x102)][_0x15ef0a];_0x64f3e9&&(delete _0x64f3e9[_0x714706(0xf0)],delete _0x64f3e9[_0x714706(0xfa)],_0x352b69[_0x714706(0x110)](saveCache,_0x518fbd));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x1d285d){const _0x543033=_0x1b9bcb,_0x4cbd9a={'lgXsc':function(_0x40d606){return _0x40d606();},'cIKox':function(_0x107e8a,_0x96b24e,_0x2a1133){return _0x107e8a(_0x96b24e,_0x2a1133);},'hujQp':function(_0xae66f2,_0x233702){return _0xae66f2-_0x233702;},'VanfJ':function(_0x4ca77b,_0x3b4556){return _0x4ca77b(_0x3b4556);}},_0x2e4375=_0x4cbd9a['lgXsc'](loadCache),_0x2559fc=_0x4cbd9a['cIKox'](getOrCreateSession,_0x2e4375,_0x1d285d),_0x206f2c=_0x2559fc[_0x543033(0x101)]||0x0,_0x4c76eb=Date['now']();if(_0x4cbd9a[_0x543033(0x103)](_0x4c76eb,_0x206f2c)>=PLAN_REMINDER_INTERVAL_MS)return _0x2559fc[_0x543033(0x101)]=_0x4c76eb,_0x4cbd9a[_0x543033(0xe6)](saveCache,_0x2e4375),!![];return![];}export function shouldShowStopReminder(_0x317998){const _0x43d073=_0x1b9bcb,_0x4c8686={'MFlSN':function(_0x58ae89){return _0x58ae89();},'RqRkz':function(_0x2977bd,_0x558fb3){return _0x2977bd-_0x558fb3;}},_0x26c1f5=_0x4c8686[_0x43d073(0xf5)](loadCache),_0x37a6e0=getOrCreateSession(_0x26c1f5,_0x317998),_0x1baa93=_0x37a6e0[_0x43d073(0x10e)]||0x0,_0x16581e=Date['now']();if(_0x4c8686['RqRkz'](_0x16581e,_0x1baa93)>=STOP_REMINDER_INTERVAL_MS)return _0x37a6e0[_0x43d073(0x10e)]=_0x16581e,saveCache(_0x26c1f5),!![];return![];}export function hasSessionBeenPrompted(_0x2da21d){const _0x37fb12=_0x1b9bcb,_0x530e79={'fvbqJ':function(_0x4a57a0,_0x507136){return _0x4a57a0===_0x507136;}},_0x1b9bec=loadCache();return _0x530e79['fvbqJ'](_0x1b9bec['sessions'][_0x2da21d]?.[_0x37fb12(0xf6)],!![]);}function _0x32ae(){const _0x2f526e=['1809372uGqXXY','3YOHMiz','lastPlanReminderAt','sessions','hujQp','eoqXF','1693735TGZBcE','.claude','master','SsxZb','main','pgUal','XbEMi','lastEnabledSessionClearedAt','MgqbZ','lastStopReminderAt','17973729tpuKqJ','HoMTK','WduLT','4184MYTaHn','now','whcyM','writeFileSync','87217ODHiGQ','clear','mywId','3915380uzEVhn','parse','fasdT','git\x20rev-parse\x20--abbrev-ref\x20HEAD','branches','TmAjv','currentBranch','VanfJ','pipe','mkdirSync','OkFOL','enabled','972108UtSuFz','TlSjZ','ffqrB','RkKsw','trim','featureId','existsSync','HEAD','OqOcc','bZijs','MFlSN','prompted','19222mUcHUs','YFXzH','utf-8','registeredAt','MkRkO','scXkQ','readFileSync','.ranger_cache.json'];_0x32ae=function(){return _0x2f526e;};return _0x32ae();}export function markSessionPrompted(_0x36b8d1){const _0x500e7d=_0x1b9bcb,_0x403ec3=loadCache(),_0x1f4986=getOrCreateSession(_0x403ec3,_0x36b8d1);_0x1f4986[_0x500e7d(0xf6)]=!![],saveCache(_0x403ec3);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x554c9f=_0x3f79;(function(_0x516fd9,_0x5c8a35){const _0x103fc4=_0x3f79,_0x5e8021=_0x516fd9();while(!![]){try{const _0x458fa7=parseInt(_0x103fc4(0x1ca))/0x1+parseInt(_0x103fc4(0x1aa))/0x2+parseInt(_0x103fc4(0x17f))/0x3+-parseInt(_0x103fc4(0x19a))/0x4+parseInt(_0x103fc4(0x198))/0x5+-parseInt(_0x103fc4(0x1a4))/0x6*(-parseInt(_0x103fc4(0x17a))/0x7)+parseInt(_0x103fc4(0x1bc))/0x8*(-parseInt(_0x103fc4(0x19b))/0x9);if(_0x458fa7===_0x5c8a35)break;else _0x5e8021['push'](_0x5e8021['shift']());}catch(_0x12dbf8){_0x5e8021['push'](_0x5e8021['shift']());}}}(_0x14ae,0x5330f));import{readFile,writeFile,mkdir,unlink}from'fs/promises';function _0x14ae(){const _0xd75efe=['string','icDRj','169631LFjmAg','join','yDImM','fhhKi','--no-sandbox','MAzHU','doQtu','KftFd','length','fcsuq','CldXj','cdpEndpoint','yskQT','stringify','ZwKGI','Pniep','mKKUs','boolean','path','message','args','entries','aceKE','--disable-setuid-sandbox','YOJyQ','replace','settings.json','TikFp','ijUXA','XCEth','7UOfOdJ','env','Default','tEqsm','CStAk','88986VTbGEv','Environment\x20variable\x20','ranger-config','TjPAm','FMJXC','QUaXX','fromEntries','allowInsecureLocalhost','extraHTTPHeaders','EzcMJ','storageStatePath','SgvQn','--disable-web-security','includes','userAgent','locations','legacy','BOSMV','file','rangerDir','auth.json','configPath','local','SyOtL','contextOptions','2573380FBTtwx','sessions','2079124EIOSwl','9bAkpWt','safeMode','hmBiS','smOSl','PwjNg','BAhsP','headers','LdKQg','push','4043172SAhthC','now','rXQdN','zPWrL','startsWith','Refusing\x20to\x20write\x20profile\x20\x22','345146gqlydW','GQAeK','pvDWj','location','VPZtu','playwright-cli','EXBPK','forWrite','filter','storageState','setupHeaders','--allow-insecure-localhost','ENOENT','guQiQ','luZFc','rwQCa','object','cwZup','5598976VVgKoJ','browser','headless','baseUrl','nova-user-data','--allow-running-insecure-content','clipboard-write','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','catch','KtReA','plUkT','allow'];_0x14ae=function(){return _0xd75efe;};return _0x14ae();}import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{chromium}from'playwright';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x2b73a4,_0x251e5c){const _0x1f4d52=_0x3f79,_0x320318={'TjPAm':function(_0x1eeb37,_0xc04ef2,_0x295f17){return _0x1eeb37(_0xc04ef2,_0x295f17);},'Pniep':function(_0x556ebe,_0x1d493e,_0x356b79){return _0x556ebe(_0x1d493e,_0x356b79);},'GQAeK':function(_0x4d0596,_0x3cece5){return _0x4d0596(_0x3cece5);},'KftFd':function(_0x18c7f6,_0xe75291){return _0x18c7f6!==_0xe75291;}},_0x47a39b=join(_0x251e5c,'ci',_0x2b73a4),_0x4897dc=join(_0x251e5c,'local',_0x2b73a4),_0x5a2f2d=_0x320318[_0x1f4d52(0x182)](join,_0x251e5c,_0x2b73a4),_0x5f0ee3=join(_0x251e5c,_0x1f4d52(0x195)),_0x3b9c50=_0x320318[_0x1f4d52(0x1d9)](join,_0x251e5c,'ci');if(_0x320318['GQAeK'](existsSync,_0x47a39b))return _0x47a39b;if(_0x320318[_0x1f4d52(0x1ab)](existsSync,_0x4897dc))return _0x4897dc;if(existsSync(_0x5a2f2d)&&(_0x5a2f2d!==_0x5f0ee3&&_0x320318[_0x1f4d52(0x1d1)](_0x5a2f2d,_0x3b9c50)?!![]:hasLegacyProfileFiles(_0x5a2f2d)))return _0x5a2f2d;return null;}export function getEnvDir(_0x3750de,_0x6d3efa={}){const _0x3ca41c=_0x3f79,_0x391c69={'icDRj':function(_0x135cac){return _0x135cac();},'BZAQB':function(_0x384db7,_0xef3a52){return _0x384db7(_0xef3a52);},'enSvv':function(_0x45567d,_0x5d7be2,_0x20b3f5){return _0x45567d(_0x5d7be2,_0x20b3f5);},'ghiqT':function(_0x3fa760,_0x581384,_0x2a7b8a){return _0x3fa760(_0x581384,_0x2a7b8a);}},_0x53bcb7=_0x391c69[_0x3ca41c(0x1c9)](getRangerDir),_0x4c507b=findEnvInRoot(_0x3750de,_0x53bcb7);if(_0x4c507b){if(_0x6d3efa['forWrite']&&_0x391c69['BZAQB'](isLegacyEnvPath,_0x4c507b))throw legacyWriteError(_0x3750de,_0x4c507b);return _0x4c507b;}const _0x2a9415=getRangerHomeDir();if(_0x2a9415!==_0x53bcb7){const _0xd4dd64=_0x391c69['enSvv'](findEnvInRoot,_0x3750de,_0x2a9415);if(_0xd4dd64){if(_0x6d3efa[_0x3ca41c(0x1b1)]&&isLegacyEnvPath(_0xd4dd64))throw _0x391c69['ghiqT'](legacyWriteError,_0x3750de,_0xd4dd64);return _0xd4dd64;}}const _0x53f786=join(_0x2a9415,'local',_0x3750de);if(_0x6d3efa[_0x3ca41c(0x1b1)])throw legacyWriteError(_0x3750de,_0x53f786);return _0x53f786;}function isLegacyEnvPath(_0x24f448){const _0x48ce1a=_0x3f79,_0x1638a4={'oFxZZ':function(_0x2ad0e6,_0x1c44c1){return _0x2ad0e6+_0x1c44c1;},'VPZtu':function(_0x4ffe1f,_0x48cc61){return _0x4ffe1f===_0x48cc61;}},_0x5a3e7d=getRangerDir(),_0x23b1c9=getRangerHomeDir();for(const _0x3d33ea of new Set([_0x5a3e7d,_0x23b1c9])){const _0x54634e=_0x3d33ea['endsWith']('/')?_0x3d33ea:_0x1638a4['oFxZZ'](_0x3d33ea,'/');if(_0x1638a4[_0x48ce1a(0x1ae)](_0x24f448,_0x3d33ea)||_0x24f448[_0x48ce1a(0x1a8)](_0x54634e))return!![];}return![];}function legacyWriteError(_0xceadff,_0x36f4ac){const _0x3ef170=_0x3f79,_0x49dbc4={'Pcuqq':function(_0x1bd721,_0x5742a5){return _0x1bd721+_0x5742a5;}};return new Error(_0x49dbc4['Pcuqq'](_0x3ef170(0x1a9)+_0xceadff+'\x22\x20to\x20legacy\x20path\x20'+_0x36f4ac+'.\x0a','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a')+'\x20\x20ranger\x20profile\x20add\x20<name>\x0a'+'See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.');}export function findExistingEnv(_0x3a09e4,_0x1c31df){const _0x24af23=_0x3f79,_0x9df5b9={'fqQTT':function(_0x2a29f4){return _0x2a29f4();},'GaIXh':_0x24af23(0x195),'smOSl':function(_0x5cc738,_0x99d404,_0x35945d){return _0x5cc738(_0x99d404,_0x35945d);},'pvDWj':function(_0x504bf4,_0xb2c78d,_0x3d76c8){return _0x504bf4(_0xb2c78d,_0x3d76c8);},'nbdMi':function(_0xfecb1b,_0x2e13dd){return _0xfecb1b(_0x2e13dd);},'tEqsm':'legacy','FMJXC':function(_0x1c7d8f,_0x540c8f){return _0x1c7d8f===_0x540c8f;}},_0x3b94d3=_0x1c31df?.[_0x24af23(0x192)],_0x45a71a=_0x3b94d3?[_0x3b94d3]:[getRangerDir(),_0x9df5b9['fqQTT'](getRangerHomeDir)][_0x24af23(0x1b2)]((_0x3fea21,_0x3565fd,_0x27073a)=>_0x27073a['indexOf'](_0x3fea21)===_0x3565fd),_0x3d2c4e=_0x1c31df?.[_0x24af23(0x18e)]??['ci','local',_0x24af23(0x18f)];for(const _0x21789f of _0x45a71a){const _0x236bf2=join(_0x21789f,_0x9df5b9['GaIXh']),_0x2230d0=_0x9df5b9[_0x24af23(0x19e)](join,_0x21789f,'ci'),_0xfd2227=[{'location':'ci','path':join(_0x21789f,'ci',_0x3a09e4)},{'location':'local','path':join(_0x21789f,_0x24af23(0x195),_0x3a09e4)},{'location':'legacy','path':_0x9df5b9[_0x24af23(0x1ac)](join,_0x21789f,_0x3a09e4)}];for(const _0x1198eb of _0xfd2227){if(_0x3d2c4e[_0x24af23(0x18c)](_0x1198eb[_0x24af23(0x1ad)])&&_0x9df5b9['nbdMi'](existsSync,_0x1198eb['path'])){if(_0x1198eb['location']===_0x9df5b9[_0x24af23(0x17d)]&&(_0x9df5b9[_0x24af23(0x183)](_0x1198eb['path'],_0x236bf2)||_0x9df5b9['FMJXC'](_0x1198eb[_0x24af23(0x1dc)],_0x2230d0))&&!hasLegacyProfileFiles(_0x1198eb['path']))continue;return{'path':_0x1198eb[_0x24af23(0x1dc)],'location':_0x1198eb[_0x24af23(0x1ad)]};}}}return null;}function hasLegacyProfileFiles(_0x157bbb){const _0x14a359=_0x3f79,_0x735718={'rwQCa':function(_0x5b3223,_0x5e07bd,_0x5a0176){return _0x5b3223(_0x5e07bd,_0x5a0176);}};return existsSync(join(_0x157bbb,'settings.json'))||existsSync(join(_0x157bbb,_0x14a359(0x193)))||existsSync(_0x735718[_0x14a359(0x1b9)](join,_0x157bbb,'auth.json.enc'));}export function isEnvCi(_0x58c881){const _0x5102a3=_0x3f79,_0x35d864={'XCEth':function(_0x168280,_0x4557ed){return _0x168280(_0x4557ed);},'cHOst':function(_0x1a2e64){return _0x1a2e64();},'gkrqm':function(_0x56aa51,_0x117f3e){return _0x56aa51!==_0x117f3e;},'ZKiUd':function(_0x280de9){return _0x280de9();}};if(_0x35d864[_0x5102a3(0x179)](existsSync,join(getRangerDir(),'ci',_0x58c881)))return!![];const _0x4f7f57=_0x35d864['cHOst'](getRangerHomeDir);if(_0x35d864['gkrqm'](_0x4f7f57,_0x35d864['ZKiUd'](getRangerDir))&&existsSync(join(_0x4f7f57,'ci',_0x58c881)))return!![];return![];}export async function cleanupTempFiles(_0x470ad4){const _0x1d4241=_0x3f79,_0x57181e=[_0x470ad4['tempAuthPath'],_0x470ad4[_0x1d4241(0x194)]]['filter'](Boolean);await Promise['all'](_0x57181e['map'](_0x2a28cc=>unlink(_0x2a28cc)[_0x1d4241(0x1c4)](_0x45f273=>{const _0x36bb6c=_0x1d4241;_0x45f273['code']!==_0x36bb6c(0x1b6)&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x2a28cc+':',_0x45f273['message']);})));}export function getSettingsPath(_0x55935a){const _0x1a2258=_0x3f79,_0x360eac={'tJgvp':function(_0x4d7bcb,_0x29f318,_0x2efa5e){return _0x4d7bcb(_0x29f318,_0x2efa5e);},'dOJOD':function(_0x50c76,_0x196fe8){return _0x50c76(_0x196fe8);}};return _0x360eac['tJgvp'](join,_0x360eac['dOJOD'](getEnvDir,_0x55935a),_0x1a2258(0x1e4));}export async function loadSettings(_0x305e4a){const _0x42e7df=_0x3f79,_0x383b59={'CldXj':function(_0x4459af,_0x52deeb){return _0x4459af(_0x52deeb);}},_0x136da5=getSettingsPath(_0x305e4a);if(!_0x383b59[_0x42e7df(0x1d4)](existsSync,_0x136da5))return{};try{const _0xac9e38=await readFile(_0x136da5,'utf-8');return JSON['parse'](_0xac9e38);}catch{return{};}}export async function saveSettings(_0x1886e5,_0x511e0d){const _0x3ca22e=_0x3f79,_0x326a50={'PwjNg':function(_0x1deb67,_0x986cf8){return _0x1deb67(_0x986cf8);},'ijUXA':function(_0x4429e9,_0x44ee39,_0x48feac){return _0x4429e9(_0x44ee39,_0x48feac);}},_0x5ba327=_0x326a50['PwjNg'](getSettingsPath,_0x1886e5),_0x1ceac2=dirname(_0x5ba327);!_0x326a50[_0x3ca22e(0x19f)](existsSync,_0x1ceac2)&&await _0x326a50[_0x3ca22e(0x178)](mkdir,_0x1ceac2,{'recursive':!![]}),await writeFile(_0x5ba327,JSON[_0x3ca22e(0x1d7)](_0x511e0d,null,0x2));}export function resolveEnvVars(_0x7ad348){const _0x206ffb=_0x3f79,_0x394575={'BAhsP':function(_0x5df3cf,_0x2de831){return _0x5df3cf===_0x2de831;},'yDImM':_0x206ffb(0x1ba)};if(typeof _0x7ad348===_0x206ffb(0x1c8))return _0x7ad348[_0x206ffb(0x1e3)](/\$\{(\w+)\}/g,(_0x48d26e,_0x27ca5e)=>{const _0x234e9c=_0x206ffb,_0x115cb7=process[_0x234e9c(0x17b)][_0x27ca5e];if(_0x394575[_0x234e9c(0x1a0)](_0x115cb7,undefined))throw new Error(_0x234e9c(0x180)+_0x27ca5e+'\x20is\x20not\x20set');return _0x115cb7;});if(Array['isArray'](_0x7ad348))return _0x7ad348['map'](resolveEnvVars);if(_0x7ad348&&_0x394575['BAhsP'](typeof _0x7ad348,_0x394575[_0x206ffb(0x1cc)]))return Object[_0x206ffb(0x185)](Object['entries'](_0x7ad348)['map'](([_0x1eac86,_0x5d87cf])=>[_0x1eac86,resolveEnvVars(_0x5d87cf)]));return _0x7ad348;}const isRecord=_0x2bb659=>typeof _0x2bb659==='object'&&_0x2bb659!==null&&!Array['isArray'](_0x2bb659),asRecord=_0x38a50d=>isRecord(_0x38a50d)?_0x38a50d:undefined,mergeHeaders=(_0x49c7cd,_0x51502b)=>{const _0x370b56=_0x3f79,_0x52d7e7={'EzcMJ':function(_0x5bee22,_0x38a320){return _0x5bee22??_0x38a320;}},_0x1e9569={..._0x52d7e7[_0x370b56(0x188)](_0x49c7cd,{}),..._0x51502b??{}};return Object['keys'](_0x1e9569)[_0x370b56(0x1d2)]?_0x1e9569:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=[_0x554c9f(0x18b),_0x554c9f(0x1c1),'--unsafely-treat-insecure-origin-as-secure=http://localhost',_0x554c9f(0x1b5)];export function buildBrowserOptionsFromSettings(_0x303939,_0x40209f={}){const _0x17e069=_0x554c9f,_0x5d18eb={'BOSMV':function(_0x580f21,_0x238032){return _0x580f21===_0x238032;},'COkOm':_0x17e069(0x1db),'cwZup':'string','fhhKi':function(_0x450221,_0x1f0e17){return _0x450221(_0x1f0e17);}},_0x153902=asRecord(_0x303939[_0x17e069(0x1bd)]),_0x2858b7={...asRecord(_0x153902?.['launchOptions'])??{}};_0x5d18eb[_0x17e069(0x190)](typeof _0x40209f[_0x17e069(0x1be)],_0x5d18eb['COkOm'])&&(_0x2858b7[_0x17e069(0x1be)]=_0x40209f[_0x17e069(0x1be)]);if(_0x303939['safeMode']){const _0xeb22ad=_0x2858b7['args']??[],_0x57159b=SAFE_MODE_ARGS['filter'](_0x5cceeb=>!_0xeb22ad['includes'](_0x5cceeb));_0x2858b7[_0x17e069(0x1de)]=[..._0xeb22ad,..._0x57159b];}if(_0x303939[_0x17e069(0x186)]){const _0x1ac9c6=_0x2858b7['args']??[],_0x5d5476=ALLOW_LOCALHOST_ARGS[_0x17e069(0x1b2)](_0x4f733c=>!_0x1ac9c6[_0x17e069(0x18c)](_0x4f733c));_0x2858b7['args']=[..._0x1ac9c6,..._0x5d5476];}const _0xcc959b={...asRecord(_0x153902?.[_0x17e069(0x197)])??{}};_0xcc959b['ignoreHTTPSErrors']=!![];typeof _0x303939['userAgent']===_0x5d18eb[_0x17e069(0x1bb)]&&(_0xcc959b['userAgent']=_0x303939[_0x17e069(0x18d)]);const _0x511c2e=mergeHeaders(_0x5d18eb[_0x17e069(0x1cd)](asRecord,_0xcc959b['extraHTTPHeaders']),asRecord(_0x303939['headers']));return _0x511c2e?_0xcc959b['extraHTTPHeaders']=_0x511c2e:delete _0xcc959b['extraHTTPHeaders'],_0x40209f[_0x17e069(0x189)]&&(_0xcc959b[_0x17e069(0x1b3)]=_0x40209f['storageStatePath']),{'launchOptions':_0x2858b7,'contextOptions':_0xcc959b};}function _0x3f79(_0x5c5bc2,_0xee93ef){_0x5c5bc2=_0x5c5bc2-0x177;const _0x14ae55=_0x14ae();let _0x3f79d4=_0x14ae55[_0x5c5bc2];return _0x3f79d4;}export async function resolveProfileStorageState(_0x2df6f0){const _0x1796fa={'smyEv':function(_0x1a8391,_0x2d084f){return _0x1a8391(_0x2d084f);}};return resolveLocalAuthPath(_0x1796fa['smyEv'](getEnvDir,_0x2df6f0));}async function resolveLocalAuthPath(_0x5945d1){const _0x4f55ad=_0x554c9f,_0x198a7d={'KtReA':function(_0x3a0606,_0x3451b1,_0x47b405){return _0x3a0606(_0x3451b1,_0x47b405);},'yskQT':function(_0x4afa3d){return _0x4afa3d();},'CStAk':_0x4f55ad(0x1c3),'rXQdN':function(_0x54c24e,_0x32e539,_0x5685f2){return _0x54c24e(_0x32e539,_0x5685f2);},'SyOtL':function(_0x22df20){return _0x22df20();}},_0x244f94=join(_0x5945d1,'auth.json.enc'),_0x14a6e8=_0x198a7d[_0x4f55ad(0x1c5)](join,_0x5945d1,'auth.json');if(existsSync(_0x244f94))try{const _0x2c98a6=await _0x198a7d[_0x4f55ad(0x1d6)](getToken);if(!_0x2c98a6)throw new Error(_0x198a7d[_0x4f55ad(0x17e)]);const _0x13854b=await readFile(_0x244f94),_0x655b91=decrypt(_0x13854b,_0x2c98a6),_0x3ba2b6=_0x198a7d[_0x4f55ad(0x1a6)](join,_0x198a7d[_0x4f55ad(0x196)](tmpdir),'ranger-auth-'+Date['now']()+'.json');return await writeFile(_0x3ba2b6,_0x655b91),{'storageStatePath':_0x3ba2b6,'tempAuthPath':_0x3ba2b6};}catch(_0x2f2599){const _0x49f45d=_0x2f2599 instanceof Error?_0x2f2599[_0x4f55ad(0x1dd)]:String(_0x2f2599);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x49f45d);}if(existsSync(_0x14a6e8))return{'storageStatePath':_0x14a6e8};return{};}export async function buildPlaywrightConfig(_0x29b6b0,_0x3a5669,_0x501beb,_0x257160,_0x419755){const _0x8296e0=_0x554c9f,_0x20bce9={'JmsTm':'stagehand','BFBzE':function(_0x589d63,_0x151763){return _0x589d63(_0x151763);}};if(_0x419755)return buildPlaywrightConfigCore(_0x29b6b0,_0x419755,_0x3a5669,_0x501beb,_0x257160,_0x20bce9['JmsTm']);const {storageStatePath:_0x225446,tempAuthPath:_0x42240f}=await _0x20bce9['BFBzE'](resolveLocalAuthPath,getEnvDir(_0x3a5669));try{const _0x39ae6d=await buildPlaywrightConfigCore(_0x29b6b0,_0x225446,_0x3a5669,_0x501beb,_0x257160,'stagehand');return{..._0x39ae6d,'tempAuthPath':_0x42240f};}catch(_0x546bcf){_0x42240f&&await unlink(_0x42240f)[_0x8296e0(0x1c4)](()=>{});throw _0x546bcf;}}export async function buildPlaywrightConfigCore(_0x4a9689,_0x2ddb80,_0x46d2ad,_0x932fb7,_0x4be56c,_0x3f8606='stagehand'){const _0x5a3d80=_0x554c9f,_0xe71b44={'QVLSv':_0x5a3d80(0x1ce),'zPWrL':_0x5a3d80(0x1e1),'LdKQg':'clipboard-read','gDngU':_0x5a3d80(0x1c2),'auqcu':function(_0x1115d0){return _0x1115d0();},'MAzHU':function(_0x5b10a3,_0x5437f7,_0x222fb3,_0x56c4be){return _0x5b10a3(_0x5437f7,_0x222fb3,_0x56c4be);},'QUaXX':_0x5a3d80(0x199),'gnCoO':'chromium','EmVTh':function(_0x51ae88,_0x4e06e0){return _0x51ae88===_0x4e06e0;},'Mregm':'playwright-cli','ZwKGI':_0x5a3d80(0x191),'PnAtm':'core','plUkT':'vision','aceKE':function(_0x16ea05,_0x536b47,_0x2dd434){return _0x16ea05(_0x536b47,_0x2dd434);},'doQtu':_0x5a3d80(0x181),'NkVKh':function(_0x22e1a3,_0x25ae5d,_0x1a1d28){return _0x22e1a3(_0x25ae5d,_0x1a1d28);},'kVcVY':'-cli'},_0x4bb230=_0x932fb7||_0xe71b44['auqcu'](randomUUID),_0x5cc0e0=_0xe71b44[_0x5a3d80(0x1cf)](join,getRangerDir(),_0xe71b44[_0x5a3d80(0x184)],_0x4bb230),_0x4116fb=Boolean(_0x4a9689[_0x5a3d80(0x1d5)]),_0x10f3aa=_0x4116fb?{'browserName':_0xe71b44['gnCoO'],'cdpEndpoint':_0x4a9689['cdpEndpoint']}:((()=>{const _0x4f4d8c=_0x5a3d80,{launchOptions:_0x185a58,contextOptions:_0x396d5c}=buildBrowserOptionsFromSettings(_0x4a9689,{'headless':_0x4be56c?![]:_0x4a9689['headless']??!![],'storageStatePath':_0x2ddb80});if(process['getuid']?.()===0x0){const _0x1b2fa2=[_0xe71b44['QVLSv'],_0xe71b44[_0x4f4d8c(0x1a7)]],_0x3f999a=_0x185a58['args']??[],_0x538ed7=_0x1b2fa2[_0x4f4d8c(0x1b2)](_0x4eb84b=>!_0x3f999a[_0x4f4d8c(0x18c)](_0x4eb84b));_0x185a58[_0x4f4d8c(0x1de)]=[..._0x3f999a,..._0x538ed7];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x185a58,'contextOptions':{..._0x396d5c,'permissions':[_0xe71b44[_0x4f4d8c(0x1a2)],_0xe71b44['gDngU']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x54213=_0xe71b44['EmVTh'](_0x3f8606,_0xe71b44['Mregm'])?{'browser':_0x10f3aa,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5cc0e0,'outputMode':_0xe71b44[_0x5a3d80(0x1d8)],'codegen':'none'}:{'name':_0x46d2ad,'browser':_0x10f3aa,'capabilities':[_0xe71b44['PnAtm'],'tabs','install','pdf',_0xe71b44[_0x5a3d80(0x1c6)]],'imageResponses':_0x5a3d80(0x1c7),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5cc0e0};if(!_0x4116fb){const _0x7e41e3=_0x54213['browser'],_0x5588b8=_0x7e41e3['contextOptions'];if(_0x5588b8['userAgent']===undefined)delete _0x5588b8['userAgent'];if(_0x5588b8['storageState']===undefined)delete _0x5588b8[_0x5a3d80(0x1b3)];}const _0x8c2f9f=_0xe71b44[_0x5a3d80(0x1e0)](join,tmpdir(),_0xe71b44[_0x5a3d80(0x1d0)]);!existsSync(_0x8c2f9f)&&await _0xe71b44['NkVKh'](mkdir,_0x8c2f9f,{'recursive':!![]});const _0x42cb2b=_0x3f8606===_0x5a3d80(0x1af)?_0xe71b44['kVcVY']:'',_0x22667e=join(_0x8c2f9f,_0x46d2ad+'-'+Date[_0x5a3d80(0x1a5)]()+_0x42cb2b+'.json');return await _0xe71b44['NkVKh'](writeFile,_0x22667e,JSON['stringify'](_0x54213,null,0x2)),{'configPath':_0x22667e,'storageStatePath':_0x2ddb80};}export async function buildPlaywrightCliConfig(_0x4b5ff5,_0x2428b6,_0x183e0e,_0x7ca621,_0x316ab5){const _0x574da1=_0x554c9f,_0x342efc={'YOJyQ':_0x574da1(0x1af),'mKKUs':function(_0x4e60d9,_0x9c85df){return _0x4e60d9(_0x9c85df);},'JKwge':function(_0x22b493,_0x2af3d8,_0x24d2ac,_0x4013cd,_0x4c7256,_0x2429d8,_0x3db733){return _0x22b493(_0x2af3d8,_0x24d2ac,_0x4013cd,_0x4c7256,_0x2429d8,_0x3db733);}};if(_0x316ab5)return buildPlaywrightConfigCore(_0x4b5ff5,_0x316ab5,_0x2428b6,_0x183e0e,_0x7ca621,_0x342efc['YOJyQ']);const {storageStatePath:_0x3e3736,tempAuthPath:_0x306715}=await resolveLocalAuthPath(_0x342efc[_0x574da1(0x1da)](getEnvDir,_0x2428b6));try{const _0x1b6c09=await _0x342efc['JKwge'](buildPlaywrightConfigCore,_0x4b5ff5,_0x3e3736,_0x2428b6,_0x183e0e,_0x7ca621,_0x342efc[_0x574da1(0x1e2)]);return{..._0x1b6c09,'tempAuthPath':_0x306715};}catch(_0x2b2154){_0x306715&&await _0x342efc['mKKUs'](unlink,_0x306715)[_0x574da1(0x1c4)](()=>{});throw _0x2b2154;}}export async function buildNovaActCliConfig(_0x5c00d4,_0x1ab36b,_0x1c09b0,_0x22b971,_0x5e04ac){const _0x333150=_0x554c9f,_0x80d989={'TikFp':function(_0x448191,_0x3835b8){return _0x448191(_0x3835b8);},'MUIvD':function(_0x190e86){return _0x190e86();},'SgvQn':function(_0x40d3ea,_0x372626,_0x87fd2a,_0x57ba60){return _0x40d3ea(_0x372626,_0x87fd2a,_0x57ba60);},'VVaCx':'sessions','guQiQ':function(_0x4865af,_0xd7d6ec,_0x27eb3b){return _0x4865af(_0xd7d6ec,_0x27eb3b);},'EXBPK':_0x333150(0x17c),'yAvUV':function(_0x49a0e1,_0x1254e2){return _0x49a0e1===_0x1254e2;},'KJvyZ':'string','Rccen':function(_0x54743a,_0x13f17d){return _0x54743a(_0x13f17d);}},{storageStatePath:_0x32c861,tempAuthPath:_0x377384}=_0x5e04ac?{'storageStatePath':_0x5e04ac,'tempAuthPath':undefined}:await _0x80d989['TikFp'](resolveLocalAuthPath,getEnvDir(_0x1ab36b)),_0x3cd8d2=_0x1c09b0||_0x80d989['MUIvD'](randomUUID),_0x80bb6d=_0x80d989[_0x333150(0x18a)](join,_0x80d989['MUIvD'](getRangerDir),_0x80d989['VVaCx'],_0x3cd8d2),_0x23591e=join(_0x80bb6d,_0x333150(0x1c0)),_0x5454be=_0x32c861?_0x80d989[_0x333150(0x1b7)](join,_0x23591e,_0x80d989[_0x333150(0x1b0)]):undefined,{launchOptions:_0x1916db,contextOptions:_0x454f14}=buildBrowserOptionsFromSettings(_0x5c00d4,{'headless':_0x22b971?![]:_0x5c00d4[_0x333150(0x1be)]??!![],'storageStatePath':_0x32c861});if(process['getuid']?.()===0x0){const _0x224053=['--no-sandbox','--disable-setuid-sandbox'],_0x433d97=_0x1916db['args']??[],_0x169e3c=_0x224053[_0x333150(0x1b2)](_0x5b37e=>!_0x433d97['includes'](_0x5b37e));_0x1916db['args']=[..._0x433d97,..._0x169e3c];}const _0x46c4e8=_0x80d989['yAvUV'](typeof _0x1916db['executablePath'],_0x80d989['KJvyZ'])?_0x1916db['executablePath']:_0x32c861?chromium['executablePath']():undefined;return{'storageStatePath':_0x32c861,'tempAuthPath':_0x377384,'baseUrl':_0x5c00d4[_0x333150(0x1bf)],'headless':Boolean(_0x1916db[_0x333150(0x1be)]),'userDataDir':_0x23591e,'browserProfilePath':_0x5454be,'executablePath':_0x46c4e8,'launchArgs':Array['isArray'](_0x1916db[_0x333150(0x1de)])?_0x1916db[_0x333150(0x1de)][_0x333150(0x1b2)](_0x3a6199=>typeof _0x3a6199===_0x333150(0x1c8)):[],'userAgent':typeof _0x454f14[_0x333150(0x18d)]===_0x80d989['KJvyZ']?_0x454f14['userAgent']:undefined,'extraHTTPHeaders':_0x454f14[_0x333150(0x187)],'allowInsecureLocalhost':_0x80d989['Rccen'](Boolean,_0x5c00d4['allowInsecureLocalhost']),'safeMode':_0x80d989[_0x333150(0x177)](Boolean,_0x5c00d4[_0x333150(0x19c)]),'cdpEndpoint':_0x5c00d4['cdpEndpoint'],'isCdpMode':Boolean(_0x5c00d4[_0x333150(0x1d5)])};}export function getNestedValue(_0x39bae9,_0x4f341f){const _0x730379={'ZXVos':'object'},_0x19f30b=parseKeyPath(_0x4f341f);let _0x13b409=_0x39bae9;for(const _0x2c514a of _0x19f30b){if(_0x13b409===null||_0x13b409===undefined||typeof _0x13b409!==_0x730379['ZXVos'])return undefined;_0x13b409=_0x13b409[_0x2c514a];}return _0x13b409;}export function setNestedValue(_0x22e8a1,_0x49f38c,_0x28d22f){const _0x10dac4=_0x554c9f,_0x16daf0={'Oinub':function(_0x41aacb,_0xb18899){return _0x41aacb<_0xb18899;},'fcsuq':function(_0x2ae25c,_0x326387){return _0x2ae25c-_0x326387;}},_0x3ebe08=parseKeyPath(_0x49f38c);let _0x44c939=_0x22e8a1;for(let _0x1208aa=0x0;_0x16daf0['Oinub'](_0x1208aa,_0x16daf0['fcsuq'](_0x3ebe08[_0x10dac4(0x1d2)],0x1));_0x1208aa++){const _0x1d8c97=_0x3ebe08[_0x1208aa];(!(_0x1d8c97 in _0x44c939)||typeof _0x44c939[_0x1d8c97]!=='object')&&(_0x44c939[_0x1d8c97]={}),_0x44c939=_0x44c939[_0x1d8c97];}_0x44c939[_0x3ebe08[_0x16daf0[_0x10dac4(0x1d3)](_0x3ebe08['length'],0x1)]]=_0x28d22f;}export function deleteNestedValue(_0x346971,_0x2bb4cb){const _0x21b2df=_0x554c9f,_0x2d3414={'hmBiS':function(_0x4de72f,_0x2f2534){return _0x4de72f<_0x2f2534;},'FxykZ':_0x21b2df(0x1ba),'luZFc':function(_0x560555,_0x4f8b19){return _0x560555===_0x4f8b19;}},_0x10f453=parseKeyPath(_0x2bb4cb);let _0x22c33c=_0x346971;for(let _0x816018=0x0;_0x2d3414[_0x21b2df(0x19d)](_0x816018,_0x10f453['length']-0x1);_0x816018++){if(_0x22c33c===null||_0x22c33c===undefined||typeof _0x22c33c!==_0x2d3414['FxykZ'])return![];_0x22c33c=_0x22c33c[_0x10f453[_0x816018]];}if(_0x2d3414[_0x21b2df(0x1b8)](_0x22c33c,null)||_0x2d3414[_0x21b2df(0x1b8)](_0x22c33c,undefined)||typeof _0x22c33c!=='object')return![];const _0x20faf2=_0x10f453[_0x10f453[_0x21b2df(0x1d2)]-0x1];if(_0x20faf2 in _0x22c33c)return delete _0x22c33c[_0x20faf2],!![];return![];}function parseKeyPath(_0x59ca44){const _0x1657d5=_0x554c9f,_0xdff0c3={'arDvW':_0x1657d5(0x1b4)},_0x255780=_0x59ca44['split']('.');return _0x255780[0x0]==='header'&&(_0x255780[0x0]=_0x1657d5(0x1a1)),_0x255780[0x0]==='setupHeader'&&(_0x255780[0x0]=_0xdff0c3['arDvW']),_0x255780;}export function formatSettings(_0x4483b7,_0x1323bb=0x0){const _0x4faf9f=_0x554c9f,_0x5261cc={'JEzWI':_0x4faf9f(0x1ba)},_0x2ae5a7=[],_0xb54906='\x20\x20'['repeat'](_0x1323bb);for(const [_0x4d7731,_0x1b6337]of Object['entries'](_0x4483b7)){if(_0x1b6337===undefined)continue;if(typeof _0x1b6337===_0x5261cc['JEzWI']&&_0x1b6337!==null){_0x2ae5a7['push'](''+_0xb54906+_0x4d7731+':');for(const [_0x3daa13,_0x482bc7]of Object[_0x4faf9f(0x1df)](_0x1b6337)){_0x2ae5a7[_0x4faf9f(0x1a3)](_0xb54906+'\x20\x20'+_0x3daa13+':\x20'+_0x482bc7);}}else _0x2ae5a7['push'](''+_0xb54906+_0x4d7731+':\x20'+_0x1b6337);}return _0x2ae5a7[_0x4faf9f(0x1cb)]('\x0a');}
1
+ const _0xb0189d=_0x6883;(function(_0x316c2b,_0x2fc3af){const _0x4ee61d=_0x6883,_0x32a651=_0x316c2b();while(!![]){try{const _0x2ccb1c=parseInt(_0x4ee61d(0x145))/0x1+parseInt(_0x4ee61d(0x17d))/0x2*(-parseInt(_0x4ee61d(0x162))/0x3)+parseInt(_0x4ee61d(0x182))/0x4+-parseInt(_0x4ee61d(0x15c))/0x5*(parseInt(_0x4ee61d(0x188))/0x6)+parseInt(_0x4ee61d(0x168))/0x7*(-parseInt(_0x4ee61d(0x158))/0x8)+parseInt(_0x4ee61d(0x199))/0x9*(parseInt(_0x4ee61d(0x170))/0xa)+-parseInt(_0x4ee61d(0x1a8))/0xb;if(_0x2ccb1c===_0x2fc3af)break;else _0x32a651['push'](_0x32a651['shift']());}catch(_0x25ff12){_0x32a651['push'](_0x32a651['shift']());}}}(_0x6544,0xa90d5));function _0x6883(_0x36a39f,_0x101bc5){_0x36a39f=_0x36a39f-0x131;const _0x654453=_0x6544();let _0x688346=_0x654453[_0x36a39f];return _0x688346;}import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';function _0x6544(){const _0x5af247=['RWyLs','\x20is\x20not\x20set','441GEONiT','aUkXc','parse','dQpwW','Failed\x20to\x20decrypt\x20auth\x20state:\x20','XdumZ','--disable-web-security','local','25070hdBSnJ','.json','contextOptions','keys','RjngN','sessions','userAgent','now','umjIs','locations','headless','tempAuthPath','ptRCE','169196PAIubT','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','playwright-cli','yQzFY','-cli','5533088evEUuL','qodoZ','oOttv','location','message','LClQn','37938WsagUW','--disable-features=WebBluetooth','headers','DiUzC','vision','pdf','AwWcL','Nlmex','filter','clipboard-write','length','includes','myEiq','auth.json','storageState','GdeIL','DEAZn','3087ZLiRRQ','nova-user-data','BaJsw','kdayf','code','clipboard-read','legacy','XSbWH','VCHeX','--disable-setuid-sandbox','startsWith','ranger-auth-','auth.json.enc','getuid','isArray','9944088WvWtjs','HBzEQ','fjNWq','repeat','warn','executablePath','znUah','cdpEndpoint','EyaYX','WkUvJ','stringify','string','rscmO','extraHTTPHeaders','tmgMy','ITqBW','entries','sYxgJ','aYktP','path','otkip','storageStatePath','chromium','377098rpRByy','MMMyh','lntss','Default','eaYMD','GqSFy','launchOptions','forWrite','ShmdG','boolean','settings.json','object','pYVKf','keHjx','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','all','browser','CXVCE','Refusing\x20to\x20write\x20profile\x20\x22','1736gVkcgd','czVaC','--allow-insecure-localhost','KhVxz','665EGeYAB','nqUaK','map','hsDKL','allow','XdbvZ','6aRuYzN','args','--allow-running-insecure-content','WmDHM'];_0x6544=function(){return _0x5af247;};return _0x6544();}import{tmpdir}from'os';import{randomUUID}from'crypto';import{chromium}from'playwright';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x1d5db9,_0x13e8ea){const _0x29e82b=_0x6883,_0x27b5f3={'szrwG':function(_0x31a7e4,_0x1c2287,_0x5c2e26,_0x3d4a44){return _0x31a7e4(_0x1c2287,_0x5c2e26,_0x3d4a44);},'fHJnM':function(_0x2a86d4,_0x142e9c,_0x54f699,_0x39dee5){return _0x2a86d4(_0x142e9c,_0x54f699,_0x39dee5);},'oOttv':function(_0x5c68e1,_0x18fcc5,_0xf980a1){return _0x5c68e1(_0x18fcc5,_0xf980a1);},'UDpSb':function(_0xb740b,_0x4e3928){return _0xb740b!==_0x4e3928;}},_0xec0fe2=_0x27b5f3['szrwG'](join,_0x13e8ea,'ci',_0x1d5db9),_0x45908e=_0x27b5f3['fHJnM'](join,_0x13e8ea,'local',_0x1d5db9),_0x4febbc=_0x27b5f3[_0x29e82b(0x184)](join,_0x13e8ea,_0x1d5db9),_0x5afc6d=_0x27b5f3['oOttv'](join,_0x13e8ea,'local'),_0x36302e=join(_0x13e8ea,'ci');if(existsSync(_0xec0fe2))return _0xec0fe2;if(existsSync(_0x45908e))return _0x45908e;if(existsSync(_0x4febbc)&&(_0x27b5f3['UDpSb'](_0x4febbc,_0x5afc6d)&&_0x4febbc!==_0x36302e?!![]:hasLegacyProfileFiles(_0x4febbc)))return _0x4febbc;return null;}export function getEnvDir(_0x3eaaf3,_0x322eaf={}){const _0x3ccf21=_0x6883,_0x8cdc79={'EyaYX':function(_0x539e28){return _0x539e28();},'FuCVi':function(_0x15c86d,_0x1b9a8c){return _0x15c86d(_0x1b9a8c);},'tLzQQ':function(_0x3d4120,_0x32a5a0){return _0x3d4120!==_0x32a5a0;},'HBzEQ':function(_0x17f763,_0x36b6f6,_0x369bde){return _0x17f763(_0x36b6f6,_0x369bde);}},_0x5f0e33=_0x8cdc79[_0x3ccf21(0x136)](getRangerDir),_0xcfbb92=findEnvInRoot(_0x3eaaf3,_0x5f0e33);if(_0xcfbb92){if(_0x322eaf[_0x3ccf21(0x14c)]&&_0x8cdc79['FuCVi'](isLegacyEnvPath,_0xcfbb92))throw legacyWriteError(_0x3eaaf3,_0xcfbb92);return _0xcfbb92;}const _0x29eb4a=getRangerHomeDir();if(_0x8cdc79['tLzQQ'](_0x29eb4a,_0x5f0e33)){const _0xda832d=_0x8cdc79[_0x3ccf21(0x1a9)](findEnvInRoot,_0x3eaaf3,_0x29eb4a);if(_0xda832d){if(_0x322eaf['forWrite']&&isLegacyEnvPath(_0xda832d))throw legacyWriteError(_0x3eaaf3,_0xda832d);return _0xda832d;}}const _0xfe186f=join(_0x29eb4a,_0x3ccf21(0x16f),_0x3eaaf3);if(_0x322eaf['forWrite'])throw _0x8cdc79[_0x3ccf21(0x1a9)](legacyWriteError,_0x3eaaf3,_0xfe186f);return _0xfe186f;}function isLegacyEnvPath(_0x31362d){const _0x1796df=_0x6883,_0x3ba431={'tYuFn':function(_0x56fe65){return _0x56fe65();},'otkip':function(_0x156a45,_0x28421a){return _0x156a45+_0x28421a;}},_0xa01d8d=_0x3ba431['tYuFn'](getRangerDir),_0x42e266=getRangerHomeDir();for(const _0x402b7b of new Set([_0xa01d8d,_0x42e266])){const _0x573eec=_0x402b7b['endsWith']('/')?_0x402b7b:_0x3ba431[_0x1796df(0x142)](_0x402b7b,'/');if(_0x31362d===_0x402b7b||_0x31362d[_0x1796df(0x1a3)](_0x573eec))return!![];}return![];}function legacyWriteError(_0x6ed9df,_0x382784){const _0x5c4a84=_0x6883,_0x2f868e={'dQpwW':function(_0x58eada,_0x15c93c){return _0x58eada+_0x15c93c;},'sYxgJ':function(_0x2e2af0,_0x51aab0){return _0x2e2af0+_0x51aab0;}};return new Error(_0x2f868e[_0x5c4a84(0x16b)](_0x2f868e[_0x5c4a84(0x13f)](_0x5c4a84(0x157)+_0x6ed9df+'\x22\x20to\x20legacy\x20path\x20'+_0x382784+'.\x0a','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a')+_0x5c4a84(0x17e),_0x5c4a84(0x153)));}export function findExistingEnv(_0x5be178,_0x19c36c){const _0x17d2ff=_0x6883,_0x379871={'KhVxz':function(_0x5a4cf5){return _0x5a4cf5();},'fjNWq':function(_0x58e574,_0xf878c6,_0x163c69){return _0x58e574(_0xf878c6,_0x163c69);},'ShmdG':_0x17d2ff(0x16f),'VCHeX':function(_0xd481e2,_0x283f25,_0x33b7ce){return _0xd481e2(_0x283f25,_0x33b7ce);},'ARQVQ':function(_0x2b4c5c,_0x283127){return _0x2b4c5c===_0x283127;}},_0x2a2cec=_0x19c36c?.['rangerDir'],_0x3ec73c=_0x2a2cec?[_0x2a2cec]:[_0x379871[_0x17d2ff(0x15b)](getRangerDir),getRangerHomeDir()]['filter']((_0x101e74,_0x3bd1a8,_0xe35366)=>_0xe35366['indexOf'](_0x101e74)===_0x3bd1a8),_0x21088f=_0x19c36c?.[_0x17d2ff(0x179)]??['ci',_0x17d2ff(0x16f),'legacy'];for(const _0x39063a of _0x3ec73c){const _0x39d542=_0x379871[_0x17d2ff(0x1aa)](join,_0x39063a,_0x379871[_0x17d2ff(0x14d)]),_0x27d2cb=_0x379871['VCHeX'](join,_0x39063a,'ci'),_0x269c14=[{'location':'ci','path':join(_0x39063a,'ci',_0x5be178)},{'location':'local','path':join(_0x39063a,'local',_0x5be178)},{'location':_0x17d2ff(0x19f),'path':_0x379871[_0x17d2ff(0x1a1)](join,_0x39063a,_0x5be178)}];for(const _0x3d3744 of _0x269c14){if(_0x21088f['includes'](_0x3d3744[_0x17d2ff(0x185)])&&existsSync(_0x3d3744['path'])){if(_0x379871['ARQVQ'](_0x3d3744[_0x17d2ff(0x185)],_0x17d2ff(0x19f))&&(_0x3d3744[_0x17d2ff(0x141)]===_0x39d542||_0x3d3744[_0x17d2ff(0x141)]===_0x27d2cb)&&!hasLegacyProfileFiles(_0x3d3744[_0x17d2ff(0x141)]))continue;return{'path':_0x3d3744[_0x17d2ff(0x141)],'location':_0x3d3744['location']};}}}return null;}function hasLegacyProfileFiles(_0x2facf9){const _0x27b243=_0x6883,_0x21869f={'czVaC':function(_0xa91bba,_0x260963,_0x2a17f2){return _0xa91bba(_0x260963,_0x2a17f2);},'yJtuz':'settings.json','umjIs':function(_0x39e592,_0x22637d){return _0x39e592(_0x22637d);}};return existsSync(_0x21869f[_0x27b243(0x159)](join,_0x2facf9,_0x21869f['yJtuz']))||_0x21869f[_0x27b243(0x178)](existsSync,_0x21869f['czVaC'](join,_0x2facf9,_0x27b243(0x195)))||existsSync(join(_0x2facf9,_0x27b243(0x1a5)));}export function isEnvCi(_0x3cf74a){const _0x467344=_0x6883,_0x30e85b={'WkUvJ':function(_0x367572,_0x26a33f){return _0x367572(_0x26a33f);},'MMMyh':function(_0x29143e,_0x56570e,_0x2784a6,_0x49a5ab){return _0x29143e(_0x56570e,_0x2784a6,_0x49a5ab);},'GqSFy':function(_0x27bcd1){return _0x27bcd1();}};if(_0x30e85b[_0x467344(0x137)](existsSync,_0x30e85b[_0x467344(0x146)](join,getRangerDir(),'ci',_0x3cf74a)))return!![];const _0x21b1ce=_0x30e85b[_0x467344(0x14a)](getRangerHomeDir);if(_0x21b1ce!==getRangerDir()&&existsSync(join(_0x21b1ce,'ci',_0x3cf74a)))return!![];return![];}export async function cleanupTempFiles(_0x5aa612){const _0x5eb5d5=_0x6883,_0xe0f2d7={'yWELh':function(_0x2569b6,_0x4cebef){return _0x2569b6!==_0x4cebef;},'tmgMy':'ENOENT'},_0x110a5c=[_0x5aa612[_0x5eb5d5(0x17b)],_0x5aa612['configPath']]['filter'](Boolean);await Promise[_0x5eb5d5(0x154)](_0x110a5c['map'](_0x401b2e=>unlink(_0x401b2e)['catch'](_0x37cb61=>{const _0x3434da=_0x5eb5d5;_0xe0f2d7['yWELh'](_0x37cb61[_0x3434da(0x19d)],_0xe0f2d7[_0x3434da(0x13c)])&&console[_0x3434da(0x132)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x401b2e+':',_0x37cb61['message']);})));}export function getSettingsPath(_0x3225c5){const _0x5274f1=_0x6883,_0x41a969={'DEAZn':function(_0x43c886,_0x18200c,_0x552b24){return _0x43c886(_0x18200c,_0x552b24);}};return _0x41a969[_0x5274f1(0x198)](join,getEnvDir(_0x3225c5),_0x5274f1(0x14f));}export async function loadSettings(_0x2adb6b){const _0x4e9586=_0x6883,_0x238cbb=getSettingsPath(_0x2adb6b);if(!existsSync(_0x238cbb))return{};try{const _0x1e0f38=await readFile(_0x238cbb,'utf-8');return JSON[_0x4e9586(0x16a)](_0x1e0f38);}catch{return{};}}export async function saveSettings(_0x1029d7,_0x4d5b1a){const _0x585829=_0x6883,_0x1f6cb5={'FIBMv':function(_0x2aa16f,_0x2ba284){return _0x2aa16f(_0x2ba284);},'znUah':function(_0x57012a,_0x36bfbe,_0x52be5a){return _0x57012a(_0x36bfbe,_0x52be5a);},'lntss':function(_0x2e784c,_0x1d1684,_0x78fb1f){return _0x2e784c(_0x1d1684,_0x78fb1f);}},_0x256149=getSettingsPath(_0x1029d7),_0x3b7a4c=dirname(_0x256149);!_0x1f6cb5['FIBMv'](existsSync,_0x3b7a4c)&&await _0x1f6cb5[_0x585829(0x134)](mkdir,_0x3b7a4c,{'recursive':!![]}),await _0x1f6cb5[_0x585829(0x147)](writeFile,_0x256149,JSON[_0x585829(0x138)](_0x4d5b1a,null,0x2));}export function resolveEnvVars(_0xc26996){const _0x2fe10f=_0x6883,_0x11d4b8={'BaJsw':_0x2fe10f(0x139),'GdeIL':function(_0x3f5313,_0x3ee4df){return _0x3f5313===_0x3ee4df;},'CXVCE':'object'};if(typeof _0xc26996===_0x11d4b8[_0x2fe10f(0x19b)])return _0xc26996['replace'](/\$\{(\w+)\}/g,(_0x12e68a,_0x83b334)=>{const _0x4aa572=_0x2fe10f,_0xd14d54=process['env'][_0x83b334];if(_0xd14d54===undefined)throw new Error('Environment\x20variable\x20'+_0x83b334+_0x4aa572(0x167));return _0xd14d54;});if(Array[_0x2fe10f(0x1a7)](_0xc26996))return _0xc26996[_0x2fe10f(0x15e)](resolveEnvVars);if(_0xc26996&&_0x11d4b8[_0x2fe10f(0x197)](typeof _0xc26996,_0x11d4b8[_0x2fe10f(0x156)]))return Object['fromEntries'](Object['entries'](_0xc26996)['map'](([_0x3f6b92,_0x1c92a3])=>[_0x3f6b92,resolveEnvVars(_0x1c92a3)]));return _0xc26996;}const isRecord=_0x4437dd=>typeof _0x4437dd===_0xb0189d(0x150)&&_0x4437dd!==null&&!Array[_0xb0189d(0x1a7)](_0x4437dd),asRecord=_0x2cddd9=>isRecord(_0x2cddd9)?_0x2cddd9:undefined,mergeHeaders=(_0x3863ed,_0x56c92c)=>{const _0x255406=_0xb0189d,_0x31b3f5={'qodoZ':function(_0x118ae1,_0x298c2c){return _0x118ae1??_0x298c2c;}},_0x3fcaaa={..._0x31b3f5[_0x255406(0x183)](_0x3863ed,{}),..._0x56c92c??{}};return Object[_0x255406(0x173)](_0x3fcaaa)[_0x255406(0x192)]?_0x3fcaaa:undefined;},SAFE_MODE_ARGS=[_0xb0189d(0x189)],ALLOW_LOCALHOST_ARGS=[_0xb0189d(0x16e),_0xb0189d(0x164),'--unsafely-treat-insecure-origin-as-secure=http://localhost',_0xb0189d(0x15a)];export function buildBrowserOptionsFromSettings(_0x1123bb,_0x5aaf94={}){const _0x146e2b=_0xb0189d,_0x86df63={'JCCYI':function(_0x3dba21,_0x2a5f96){return _0x3dba21===_0x2a5f96;},'XZjqU':_0x146e2b(0x14e),'nqUaK':function(_0x569a3e,_0x2bd172){return _0x569a3e(_0x2bd172);},'HXcjx':function(_0x47db37,_0x378381,_0xc561ff){return _0x47db37(_0x378381,_0xc561ff);}},_0x10d5f5=asRecord(_0x1123bb[_0x146e2b(0x155)]),_0x551646={...asRecord(_0x10d5f5?.[_0x146e2b(0x14b)])??{}};_0x86df63['JCCYI'](typeof _0x5aaf94[_0x146e2b(0x17a)],_0x86df63['XZjqU'])&&(_0x551646[_0x146e2b(0x17a)]=_0x5aaf94[_0x146e2b(0x17a)]);if(_0x1123bb['safeMode']){const _0x1ac8cf=_0x551646['args']??[],_0x232571=SAFE_MODE_ARGS[_0x146e2b(0x190)](_0x204066=>!_0x1ac8cf[_0x146e2b(0x193)](_0x204066));_0x551646[_0x146e2b(0x163)]=[..._0x1ac8cf,..._0x232571];}if(_0x1123bb['allowInsecureLocalhost']){const _0x4ceb48=_0x551646[_0x146e2b(0x163)]??[],_0x19d87d=ALLOW_LOCALHOST_ARGS[_0x146e2b(0x190)](_0x1dfc33=>!_0x4ceb48[_0x146e2b(0x193)](_0x1dfc33));_0x551646['args']=[..._0x4ceb48,..._0x19d87d];}const _0x5a8a3f={..._0x86df63[_0x146e2b(0x15d)](asRecord,_0x10d5f5?.['contextOptions'])??{}};_0x5a8a3f['ignoreHTTPSErrors']=!![];typeof _0x1123bb['userAgent']===_0x146e2b(0x139)&&(_0x5a8a3f['userAgent']=_0x1123bb['userAgent']);const _0x3c01f4=_0x86df63['HXcjx'](mergeHeaders,_0x86df63[_0x146e2b(0x15d)](asRecord,_0x5a8a3f['extraHTTPHeaders']),_0x86df63[_0x146e2b(0x15d)](asRecord,_0x1123bb['headers']));return _0x3c01f4?_0x5a8a3f[_0x146e2b(0x13b)]=_0x3c01f4:delete _0x5a8a3f[_0x146e2b(0x13b)],_0x5aaf94['storageStatePath']&&(_0x5a8a3f[_0x146e2b(0x196)]=_0x5aaf94[_0x146e2b(0x143)]),{'launchOptions':_0x551646,'contextOptions':_0x5a8a3f};}export async function resolveProfileStorageState(_0x1e3573){const _0x1bba2a={'odJAn':function(_0x1fdb28,_0xa6108d){return _0x1fdb28(_0xa6108d);}};return _0x1bba2a['odJAn'](resolveLocalAuthPath,getEnvDir(_0x1e3573));}async function resolveLocalAuthPath(_0x40b759){const _0x53c4de=_0xb0189d,_0x261305={'Qxdyn':'auth.json.enc','XdbvZ':function(_0x1b1c16,_0x4792c3,_0x47c03d){return _0x1b1c16(_0x4792c3,_0x47c03d);},'hsDKL':_0x53c4de(0x195),'ITqBW':function(_0x481ee0,_0x461099){return _0x481ee0(_0x461099);},'LClQn':function(_0x1acc15){return _0x1acc15();},'rscmO':function(_0x3060c7,_0x29deda){return _0x3060c7(_0x29deda);},'FoOrF':function(_0x8b1a56,_0x35181){return _0x8b1a56 instanceof _0x35181;}},_0x5c2b62=join(_0x40b759,_0x261305['Qxdyn']),_0x3ebea3=_0x261305[_0x53c4de(0x161)](join,_0x40b759,_0x261305[_0x53c4de(0x15f)]);if(_0x261305[_0x53c4de(0x13d)](existsSync,_0x5c2b62))try{const _0x87a5b3=await _0x261305[_0x53c4de(0x187)](getToken);if(!_0x87a5b3)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x1a5b79=await _0x261305[_0x53c4de(0x13a)](readFile,_0x5c2b62),_0x39a4aa=decrypt(_0x1a5b79,_0x87a5b3),_0x534d96=_0x261305['XdbvZ'](join,tmpdir(),_0x53c4de(0x1a4)+Date['now']()+'.json');return await writeFile(_0x534d96,_0x39a4aa),{'storageStatePath':_0x534d96,'tempAuthPath':_0x534d96};}catch(_0x341372){const _0x49da5a=_0x261305['FoOrF'](_0x341372,Error)?_0x341372[_0x53c4de(0x186)]:String(_0x341372);throw new Error(_0x53c4de(0x16c)+_0x49da5a);}if(existsSync(_0x3ebea3))return{'storageStatePath':_0x3ebea3};return{};}export async function buildPlaywrightConfig(_0x291c0f,_0x1390a9,_0x2ea6fc,_0x51a02f,_0x3e8595){const _0x519288=_0xb0189d,_0x43d5ab={'Nlmex':function(_0x483cf9,_0x1e29f9,_0x1f6350,_0x7d6fd2,_0x11c42a,_0x209fa2,_0x597381){return _0x483cf9(_0x1e29f9,_0x1f6350,_0x7d6fd2,_0x11c42a,_0x209fa2,_0x597381);},'DiUzC':function(_0x46c3e9,_0x4ccaf1){return _0x46c3e9(_0x4ccaf1);}};if(_0x3e8595)return buildPlaywrightConfigCore(_0x291c0f,_0x3e8595,_0x1390a9,_0x2ea6fc,_0x51a02f,'stagehand');const {storageStatePath:_0x58fdc4,tempAuthPath:_0x387833}=await resolveLocalAuthPath(getEnvDir(_0x1390a9));try{const _0x5b09dc=await _0x43d5ab[_0x519288(0x18f)](buildPlaywrightConfigCore,_0x291c0f,_0x58fdc4,_0x1390a9,_0x2ea6fc,_0x51a02f,'stagehand');return{..._0x5b09dc,'tempAuthPath':_0x387833};}catch(_0x21fa3f){_0x387833&&await _0x43d5ab[_0x519288(0x18b)](unlink,_0x387833)['catch'](()=>{});throw _0x21fa3f;}}export async function buildPlaywrightConfigCore(_0x29bcde,_0x5b8e19,_0x524e13,_0x1ce596,_0x1d9d25,_0x4acc28='stagehand'){const _0x4e90d8=_0xb0189d,_0x585575={'keHjx':function(_0x1794d2,_0x48b055,_0x40b97d){return _0x1794d2(_0x48b055,_0x40b97d);},'HsFGk':function(_0x132737,_0x289a12){return _0x132737===_0x289a12;},'LtTnv':'--no-sandbox','ThsIj':_0x4e90d8(0x1a2),'uZPQf':_0x4e90d8(0x144),'MBuTJ':function(_0x2e6e45){return _0x2e6e45();},'RWyLs':function(_0x51f9d6,_0x3e437f,_0x56939b,_0x2b5890){return _0x51f9d6(_0x3e437f,_0x56939b,_0x2b5890);},'XdumZ':'file','qdrKH':'core','HRGXJ':_0x4e90d8(0x18c),'kdayf':function(_0x32cd46,_0x9a941b){return _0x32cd46===_0x9a941b;},'LVGpt':function(_0x29bb57,_0x42ab0c){return _0x29bb57===_0x42ab0c;},'yCyfM':'ranger-config','aYktP':function(_0x1c03d7,_0x1dcf88){return _0x1c03d7(_0x1dcf88);},'OzsfH':'playwright-cli','RjngN':function(_0x4babc7,_0x2a297b,_0x2eaebe){return _0x4babc7(_0x2a297b,_0x2eaebe);}},_0x3207ae=_0x1ce596||_0x585575['MBuTJ'](randomUUID),_0x5ace3c=_0x585575[_0x4e90d8(0x166)](join,_0x585575['MBuTJ'](getRangerDir),_0x4e90d8(0x175),_0x3207ae),_0x9f640c=Boolean(_0x29bcde[_0x4e90d8(0x135)]),_0x2d1b9f=_0x9f640c?{'browserName':_0x585575['uZPQf'],'cdpEndpoint':_0x29bcde[_0x4e90d8(0x135)]}:((()=>{const _0x87cd1e=_0x4e90d8,{launchOptions:_0x515e1c,contextOptions:_0x182adf}=_0x585575[_0x87cd1e(0x152)](buildBrowserOptionsFromSettings,_0x29bcde,{'headless':_0x1d9d25?![]:_0x29bcde['headless']??!![],'storageStatePath':_0x5b8e19});if(_0x585575['HsFGk'](process['getuid']?.(),0x0)){const _0x311b29=[_0x585575['LtTnv'],_0x585575['ThsIj']],_0x58cc64=_0x515e1c[_0x87cd1e(0x163)]??[],_0xf3b4c6=_0x311b29['filter'](_0x44c339=>!_0x58cc64['includes'](_0x44c339));_0x515e1c[_0x87cd1e(0x163)]=[..._0x58cc64,..._0xf3b4c6];}return{'isolated':!![],'browserName':_0x585575['uZPQf'],'launchOptions':_0x515e1c,'contextOptions':{..._0x182adf,'permissions':[_0x87cd1e(0x19e),_0x87cd1e(0x191)],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x4daa58=_0x4acc28==='playwright-cli'?{'browser':_0x2d1b9f,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5ace3c,'outputMode':_0x585575[_0x4e90d8(0x16d)],'codegen':'none'}:{'name':_0x524e13,'browser':_0x2d1b9f,'capabilities':[_0x585575['qdrKH'],'tabs','install',_0x4e90d8(0x18d),_0x585575['HRGXJ']],'imageResponses':_0x4e90d8(0x160),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5ace3c};if(!_0x9f640c){const _0x42ab17=_0x4daa58['browser'],_0x1f36bc=_0x42ab17[_0x4e90d8(0x172)];if(_0x585575[_0x4e90d8(0x19c)](_0x1f36bc[_0x4e90d8(0x176)],undefined))delete _0x1f36bc[_0x4e90d8(0x176)];if(_0x585575['LVGpt'](_0x1f36bc[_0x4e90d8(0x196)],undefined))delete _0x1f36bc[_0x4e90d8(0x196)];}const _0xd8452e=join(tmpdir(),_0x585575['yCyfM']);!_0x585575[_0x4e90d8(0x140)](existsSync,_0xd8452e)&&await mkdir(_0xd8452e,{'recursive':!![]});const _0x2ccbd1=_0x585575[_0x4e90d8(0x19c)](_0x4acc28,_0x585575['OzsfH'])?_0x4e90d8(0x181):'',_0x1fd686=join(_0xd8452e,_0x524e13+'-'+Date[_0x4e90d8(0x177)]()+_0x2ccbd1+_0x4e90d8(0x171));return await _0x585575[_0x4e90d8(0x174)](writeFile,_0x1fd686,JSON[_0x4e90d8(0x138)](_0x4daa58,null,0x2)),{'configPath':_0x1fd686,'storageStatePath':_0x5b8e19};}export async function buildPlaywrightCliConfig(_0x56827b,_0x91b530,_0x2b2018,_0x181c51,_0x42589d){const _0x51e994=_0xb0189d,_0x381e68={'pYVKf':function(_0x35ebd5,_0x16b38f,_0x4b0281,_0x3cdead,_0x377a3f,_0x5344b9,_0x5324e8){return _0x35ebd5(_0x16b38f,_0x4b0281,_0x3cdead,_0x377a3f,_0x5344b9,_0x5324e8);},'NQbQG':_0x51e994(0x17f),'yBVkk':function(_0x53e016,_0x229c1f){return _0x53e016(_0x229c1f);}};if(_0x42589d)return _0x381e68[_0x51e994(0x151)](buildPlaywrightConfigCore,_0x56827b,_0x42589d,_0x91b530,_0x2b2018,_0x181c51,_0x381e68['NQbQG']);const {storageStatePath:_0x448de0,tempAuthPath:_0x3b9280}=await resolveLocalAuthPath(getEnvDir(_0x91b530));try{const _0x1d2836=await buildPlaywrightConfigCore(_0x56827b,_0x448de0,_0x91b530,_0x2b2018,_0x181c51,_0x51e994(0x17f));return{..._0x1d2836,'tempAuthPath':_0x3b9280};}catch(_0x42a741){_0x3b9280&&await _0x381e68['yBVkk'](unlink,_0x3b9280)['catch'](()=>{});throw _0x42a741;}}export async function buildNovaActCliConfig(_0x42607e,_0x142bc0,_0x3f1578,_0x2736df,_0x2538d9){const _0x24b471=_0xb0189d,_0x4de547={'ptRCE':function(_0x172889,_0x668ad4){return _0x172889(_0x668ad4);},'SJvmS':_0x24b471(0x148),'PKpRR':function(_0x54bbb6,_0x445118,_0x5bce96){return _0x54bbb6(_0x445118,_0x5bce96);},'yCRgN':function(_0x1093e3,_0x477a29){return _0x1093e3===_0x477a29;},'eaYMD':_0x24b471(0x1a2),'myEiq':'string','AwWcL':function(_0x49fd2c,_0x153dbb){return _0x49fd2c(_0x153dbb);}},{storageStatePath:_0x3a611d,tempAuthPath:_0x53719c}=_0x2538d9?{'storageStatePath':_0x2538d9,'tempAuthPath':undefined}:await resolveLocalAuthPath(_0x4de547['ptRCE'](getEnvDir,_0x142bc0)),_0x1bc2cd=_0x3f1578||randomUUID(),_0x4c25cd=join(getRangerDir(),'sessions',_0x1bc2cd),_0x3f1739=join(_0x4c25cd,_0x24b471(0x19a)),_0x4a6f41=_0x3a611d?join(_0x3f1739,_0x4de547['SJvmS']):undefined,{launchOptions:_0x3171d0,contextOptions:_0x2b8a10}=_0x4de547['PKpRR'](buildBrowserOptionsFromSettings,_0x42607e,{'headless':_0x2736df?![]:_0x42607e[_0x24b471(0x17a)]??!![],'storageStatePath':_0x3a611d});if(_0x4de547['yCRgN'](process[_0x24b471(0x1a6)]?.(),0x0)){const _0x3fe19a=['--no-sandbox',_0x4de547[_0x24b471(0x149)]],_0x58cc67=_0x3171d0['args']??[],_0x35885c=_0x3fe19a['filter'](_0xb46551=>!_0x58cc67[_0x24b471(0x193)](_0xb46551));_0x3171d0['args']=[..._0x58cc67,..._0x35885c];}const _0x51c81b=typeof _0x3171d0[_0x24b471(0x133)]===_0x4de547[_0x24b471(0x194)]?_0x3171d0[_0x24b471(0x133)]:_0x3a611d?chromium[_0x24b471(0x133)]():undefined;return{'storageStatePath':_0x3a611d,'tempAuthPath':_0x53719c,'baseUrl':_0x42607e['baseUrl'],'headless':Boolean(_0x3171d0[_0x24b471(0x17a)]),'userDataDir':_0x3f1739,'browserProfilePath':_0x4a6f41,'executablePath':_0x51c81b,'launchArgs':Array[_0x24b471(0x1a7)](_0x3171d0[_0x24b471(0x163)])?_0x3171d0['args'][_0x24b471(0x190)](_0x481e5f=>typeof _0x481e5f===_0x24b471(0x139)):[],'userAgent':typeof _0x2b8a10['userAgent']===_0x4de547[_0x24b471(0x194)]?_0x2b8a10[_0x24b471(0x176)]:undefined,'extraHTTPHeaders':_0x2b8a10['extraHTTPHeaders'],'allowInsecureLocalhost':_0x4de547[_0x24b471(0x17c)](Boolean,_0x42607e['allowInsecureLocalhost']),'safeMode':Boolean(_0x42607e['safeMode']),'cdpEndpoint':_0x42607e['cdpEndpoint'],'isCdpMode':_0x4de547[_0x24b471(0x18e)](Boolean,_0x42607e[_0x24b471(0x135)])};}export function getNestedValue(_0x36b321,_0x4e801b){const _0x499867={'bSCqO':function(_0x224730,_0x5e8566){return _0x224730===_0x5e8566;},'Whudn':'object'},_0x13e703=parseKeyPath(_0x4e801b);let _0x2aa496=_0x36b321;for(const _0x3f3374 of _0x13e703){if(_0x2aa496===null||_0x499867['bSCqO'](_0x2aa496,undefined)||typeof _0x2aa496!==_0x499867['Whudn'])return undefined;_0x2aa496=_0x2aa496[_0x3f3374];}return _0x2aa496;}export function setNestedValue(_0x561d7a,_0x1e4afc,_0x2b492b){const _0x2f0bd5=_0xb0189d,_0x7680cc={'WmDHM':function(_0x312d9b,_0x2bb114){return _0x312d9b(_0x2bb114);},'aKZoQ':function(_0x5443e6,_0x1fcc63){return _0x5443e6 in _0x1fcc63;},'pAHnu':'object'},_0x4aa443=_0x7680cc[_0x2f0bd5(0x165)](parseKeyPath,_0x1e4afc);let _0x303fef=_0x561d7a;for(let _0x284092=0x0;_0x284092<_0x4aa443['length']-0x1;_0x284092++){const _0x4839c2=_0x4aa443[_0x284092];(!_0x7680cc['aKZoQ'](_0x4839c2,_0x303fef)||typeof _0x303fef[_0x4839c2]!==_0x7680cc['pAHnu'])&&(_0x303fef[_0x4839c2]={}),_0x303fef=_0x303fef[_0x4839c2];}_0x303fef[_0x4aa443[_0x4aa443['length']-0x1]]=_0x2b492b;}export function deleteNestedValue(_0x183f9c,_0x271d88){const _0x48c53=_0xb0189d,_0x18c864={'XSbWH':function(_0x1151e7,_0x4b573f){return _0x1151e7(_0x4b573f);},'aUkXc':function(_0x125eb0,_0x3770d9){return _0x125eb0===_0x3770d9;},'GHOxq':_0x48c53(0x150),'cTEVJ':function(_0x556831,_0x5cc0b9){return _0x556831===_0x5cc0b9;},'bxJIb':function(_0x1bebe6,_0x1afcfa){return _0x1bebe6-_0x1afcfa;},'XOXxm':function(_0x630fb8,_0xa2db34){return _0x630fb8 in _0xa2db34;}},_0x23dc77=_0x18c864[_0x48c53(0x1a0)](parseKeyPath,_0x271d88);let _0x425fd4=_0x183f9c;for(let _0x13f573=0x0;_0x13f573<_0x23dc77[_0x48c53(0x192)]-0x1;_0x13f573++){if(_0x18c864[_0x48c53(0x169)](_0x425fd4,null)||_0x425fd4===undefined||typeof _0x425fd4!==_0x18c864['GHOxq'])return![];_0x425fd4=_0x425fd4[_0x23dc77[_0x13f573]];}if(_0x18c864['aUkXc'](_0x425fd4,null)||_0x18c864['cTEVJ'](_0x425fd4,undefined)||typeof _0x425fd4!==_0x48c53(0x150))return![];const _0x5764a1=_0x23dc77[_0x18c864['bxJIb'](_0x23dc77[_0x48c53(0x192)],0x1)];if(_0x18c864['XOXxm'](_0x5764a1,_0x425fd4))return delete _0x425fd4[_0x5764a1],!![];return![];}function parseKeyPath(_0x7a76d3){const _0x22e6ff=_0xb0189d,_0x2318df={'yQzFY':'setupHeader'},_0xa4ef56=_0x7a76d3['split']('.');return _0xa4ef56[0x0]==='header'&&(_0xa4ef56[0x0]=_0x22e6ff(0x18a)),_0xa4ef56[0x0]===_0x2318df[_0x22e6ff(0x180)]&&(_0xa4ef56[0x0]='setupHeaders'),_0xa4ef56;}export function formatSettings(_0x20ee86,_0x5696d7=0x0){const _0x3c840f=_0xb0189d,_0x314273=[],_0x3de6ef='\x20\x20'[_0x3c840f(0x131)](_0x5696d7);for(const [_0x33f5f3,_0x441346]of Object[_0x3c840f(0x13e)](_0x20ee86)){if(_0x441346===undefined)continue;if(typeof _0x441346===_0x3c840f(0x150)&&_0x441346!==null){_0x314273['push'](''+_0x3de6ef+_0x33f5f3+':');for(const [_0x2a896f,_0x4b2a11]of Object[_0x3c840f(0x13e)](_0x441346)){_0x314273['push'](_0x3de6ef+'\x20\x20'+_0x2a896f+':\x20'+_0x4b2a11);}}else _0x314273['push'](''+_0x3de6ef+_0x33f5f3+':\x20'+_0x441346);}return _0x314273['join']('\x0a');}
@@ -1 +1 @@
1
- (function(_0x46739b,_0x41af72){const _0xf59b2a=_0x1ca9,_0x46694c=_0x46739b();while(!![]){try{const _0x5f58d1=parseInt(_0xf59b2a(0x1bf))/0x1*(-parseInt(_0xf59b2a(0x1b8))/0x2)+parseInt(_0xf59b2a(0x1bc))/0x3*(parseInt(_0xf59b2a(0x1c0))/0x4)+parseInt(_0xf59b2a(0x1c3))/0x5*(parseInt(_0xf59b2a(0x1bb))/0x6)+-parseInt(_0xf59b2a(0x1c1))/0x7*(parseInt(_0xf59b2a(0x1c4))/0x8)+-parseInt(_0xf59b2a(0x1be))/0x9*(-parseInt(_0xf59b2a(0x1b9))/0xa)+parseInt(_0xf59b2a(0x1b4))/0xb*(parseInt(_0xf59b2a(0x1b6))/0xc)+parseInt(_0xf59b2a(0x1bd))/0xd*(-parseInt(_0xf59b2a(0x1ba))/0xe);if(_0x5f58d1===_0x41af72)break;else _0x46694c['push'](_0x46694c['shift']());}catch(_0x1c3329){_0x46694c['push'](_0x46694c['shift']());}}}(_0x4e1c,0x73b29));import{readFileSync}from'fs';import{dirname,join}from'path';function _0x1ca9(_0x1db5b3,_0x259e27){_0x1db5b3=_0x1db5b3-0x1b4;const _0x4e1cb5=_0x4e1c();let _0x1ca971=_0x4e1cb5[_0x1db5b3];return _0x1ca971;}function _0x4e1c(){const _0xd8e35c=['2IaETud','23076dzbsEK','73213ZaueaD','skills','4431395JgoUmH','568KPJLJT','11UjfAMU','HNUjI','3975228kOhcve','nEWNA','42886eCtDFN','280eKLTKD','3486LUoUUG','6fqKYDu','75VJaBvi','14781GszIAf','58086PHoDWa'];_0x4e1c=function(){return _0xd8e35c;};return _0x4e1c();}import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x33fdda){const _0x33d9b8=_0x1ca9,_0x3641df={'lRqIF':_0x33d9b8(0x1c2),'nEWNA':function(_0x5f054f,_0x6f6b0b,_0x3dc696){return _0x5f054f(_0x6f6b0b,_0x3dc696);},'HNUjI':'utf-8'},_0x409ee9=join(__dirname,'..','..',_0x3641df['lRqIF']),_0x2bd770=join(_0x409ee9,_0x33fdda);try{return _0x3641df[_0x33d9b8(0x1b7)](readFileSync,_0x2bd770,_0x3641df[_0x33d9b8(0x1b5)]);}catch{return'';}}export function getRangerSkillContent(){const _0x134633={'YJxtB':function(_0x1cdf10,_0x2bd43c){return _0x1cdf10(_0x2bd43c);}};return _0x134633['YJxtB'](readSkillContent,'ranger/SKILL.md');}
1
+ (function(_0x21c21e,_0x17ea0c){const _0x1f259c=_0x4053,_0x36c3e7=_0x21c21e();while(!![]){try{const _0x4daeba=parseInt(_0x1f259c(0x183))/0x1+parseInt(_0x1f259c(0x187))/0x2*(parseInt(_0x1f259c(0x17d))/0x3)+parseInt(_0x1f259c(0x185))/0x4*(-parseInt(_0x1f259c(0x17b))/0x5)+parseInt(_0x1f259c(0x181))/0x6*(-parseInt(_0x1f259c(0x17f))/0x7)+-parseInt(_0x1f259c(0x184))/0x8*(-parseInt(_0x1f259c(0x17a))/0x9)+-parseInt(_0x1f259c(0x180))/0xa*(-parseInt(_0x1f259c(0x17e))/0xb)+-parseInt(_0x1f259c(0x189))/0xc;if(_0x4daeba===_0x17ea0c)break;else _0x36c3e7['push'](_0x36c3e7['shift']());}catch(_0x317092){_0x36c3e7['push'](_0x36c3e7['shift']());}}}(_0x2683,0xdc2e9));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';function _0x4053(_0xc09344,_0x4ce9e3){_0xc09344=_0xc09344-0x17a;const _0x268357=_0x2683();let _0x405304=_0x268357[_0xc09344];return _0x405304;}function _0x2683(){const _0x571162=['4175043HNzqvG','40601YRDIgy','22596KWnszT','1510QuaiYA','714VXanNJ','skills','209026IHEztg','14294104eVJmRf','163288PwTBod','RQOKY','2HcgQhv','aQsYF','29946312BDmnkj','9GFoXev','20ExtsUs','FcKUn'];_0x2683=function(){return _0x571162;};return _0x2683();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x1d6b33){const _0x27d0f9=_0x4053,_0x8abaae={'FcKUn':function(_0x473bfd,_0x2eddfc,_0x1edc72,_0x1ec5e7,_0x55eb9b){return _0x473bfd(_0x2eddfc,_0x1edc72,_0x1ec5e7,_0x55eb9b);},'aQsYF':_0x27d0f9(0x182),'RQOKY':function(_0x176ef5,_0xb8011b,_0x48d6a2){return _0x176ef5(_0xb8011b,_0x48d6a2);}},_0x4113f2=_0x8abaae[_0x27d0f9(0x17c)](join,__dirname,'..','..',_0x8abaae[_0x27d0f9(0x188)]),_0x9af3c1=join(_0x4113f2,_0x1d6b33);try{return _0x8abaae[_0x27d0f9(0x186)](readFileSync,_0x9af3c1,'utf-8');}catch{return'';}}export function getRangerSkillContent(){return readSkillContent('ranger/SKILL.md');}