@ranger-testing/ranger-cli 3.0.1-alpha.aab0a1c-26 → 3.0.1-alpha.d9f4572-27
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.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/deleteProfile.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/mcpBootstrap.js +1 -1
- package/build/commands/migrateProfile.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/cloudProfile.js +1 -1
- package/build/commands/utils/cloudProfileSession.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/legacyWarning.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/novaActCli.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/projectsConfig.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyFeatureNovaCli.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x127504=_0x59e4;function _0x59e4(_0x49a4a6,_0x317bee){_0x49a4a6=_0x49a4a6-0xf0;const _0x4c768f=_0x4c76();let _0x59e4f4=_0x4c768f[_0x49a4a6];return _0x59e4f4;}function _0x4c76(){const _0x4bfd50=['4iFTRxn','12645281vRZIOt','1668990jqfSGP','4912200obqGJA','2869626tgONQn','53718feSamQ','ranger\x20profile\x20add\x20local','7efoXaY','31KZUoRW','2325275qTyhip','9FnaMpZ','3013671gfZyLq','12nrhgrZ'];_0x4c76=function(){return _0x4bfd50;};return _0x4c76();}(function(_0x529c0d,_0x549033){const _0x1835b5=_0x59e4,_0xabed2f=_0x529c0d();while(!![]){try{const _0x424184=-parseInt(_0x1835b5(0xf1))/0x1*(parseInt(_0x1835b5(0xfb))/0x2)+-parseInt(_0x1835b5(0xf4))/0x3*(-parseInt(_0x1835b5(0xf6))/0x4)+parseInt(_0x1835b5(0xf2))/0x5+-parseInt(_0x1835b5(0xfa))/0x6*(parseInt(_0x1835b5(0xf0))/0x7)+-parseInt(_0x1835b5(0xf9))/0x8+-parseInt(_0x1835b5(0xf3))/0x9*(parseInt(_0x1835b5(0xf8))/0xa)+parseInt(_0x1835b5(0xf7))/0xb*(parseInt(_0x1835b5(0xf5))/0xc);if(_0x424184===_0x549033)break;else _0xabed2f['push'](_0xabed2f['shift']());}catch(_0x3baa56){_0xabed2f['push'](_0xabed2f['shift']());}}}(_0x4c76,0x80bff));const DEFAULT_PROFILE_COMMAND=_0x127504(0xfc);export function formatProfileRequiredMessage(_0x331808){const _0x217871=_0x331808?_0x331808(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'+_0x217871+'.';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5a9c(){const _0x43ae05=['<div\x20class=\x22ranger-banner__content\x22>','168745DHqeyN','548374FqDmsE','GKhPD','\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','5zMrDGh','1603509mfJblV','addInitScript','17507sqMUUk',';\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','67720TKPtzy','QgaCZ','<div\x20class=\x22ranger-banner__message\x22>','\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','282EXmrgv','12385251OwPWiJ','3883JjBRLF','1200nDosvd','5222448BtFYSZ','MALNa','stringify','StcJN'];_0x5a9c=function(){return _0x43ae05;};return _0x5a9c();}function _0x41f4(_0x1f01e4,_0x5aa4f6){_0x1f01e4=_0x1f01e4-0x10e;const _0x5a9c0c=_0x5a9c();let _0x41f4e4=_0x5a9c0c[_0x1f01e4];return _0x41f4e4;}(function(_0x91430d,_0x1d230b){const _0x41d2e7=_0x41f4,_0x596d79=_0x91430d();while(!![]){try{const _0xb9e6ea=-parseInt(_0x41d2e7(0x11d))/0x1*(-parseInt(_0x41d2e7(0x11a))/0x2)+parseInt(_0x41d2e7(0x11e))/0x3+-parseInt(_0x41d2e7(0x114))/0x4+-parseInt(_0x41d2e7(0x119))/0x5*(-parseInt(_0x41d2e7(0x110))/0x6)+parseInt(_0x41d2e7(0x120))/0x7*(-parseInt(_0x41d2e7(0x113))/0x8)+parseInt(_0x41d2e7(0x111))/0x9+-parseInt(_0x41d2e7(0x122))/0xa*(parseInt(_0x41d2e7(0x112))/0xb);if(_0xb9e6ea===_0x1d230b)break;else _0x596d79['push'](_0x596d79['shift']());}catch(_0x2cf01f){_0x596d79['push'](_0x596d79['shift']());}}}(_0x5a9c,0xc2756));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x4c0bbd=_0x41f4,_0x5d8bcd={'StcJN':function(_0x314a62,_0x358237){return _0x314a62+_0x358237;},'LhAZk':'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','hxueB':_0x4c0bbd(0x10e),'QgaCZ':'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','GKhPD':'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','MALNa':'</div>','vEJze':'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'},_0x3aca0c=_0x5d8bcd['StcJN'](_0x5d8bcd[_0x4c0bbd(0x117)](_0x5d8bcd[_0x4c0bbd(0x117)](_0x5d8bcd[_0x4c0bbd(0x117)](_0x4c0bbd(0x118),_0x5d8bcd['LhAZk'])+_0x5d8bcd['hxueB']+_0x5d8bcd[_0x4c0bbd(0x123)],_0x5d8bcd[_0x4c0bbd(0x11b)]),'</div>'),_0x5d8bcd[_0x4c0bbd(0x115)])+_0x5d8bcd['vEJze'],_0x1c5142=_0x4c0bbd(0x11c);return _0x4c0bbd(0x10f)+JSON['stringify'](_0x3aca0c)+';\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[_0x4c0bbd(0x116)](_0x1c5142)+_0x4c0bbd(0x121);})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x4d31d3){const _0x10dbf6=_0x41f4;await _0x4d31d3[_0x10dbf6(0x11f)]({'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(_0x3d2226,_0x4843b8){const _0x28012f=_0x5de5,_0x506c26=_0x3d2226();while(!![]){try{const _0x531109=-parseInt(_0x28012f(0x1d5))/0x1+parseInt(_0x28012f(0x1c6))/0x2*(-parseInt(_0x28012f(0x1b7))/0x3)+-parseInt(_0x28012f(0x1c3))/0x4+parseInt(_0x28012f(0x1d9))/0x5+-parseInt(_0x28012f(0x1d7))/0x6*(-parseInt(_0x28012f(0x1be))/0x7)+parseInt(_0x28012f(0x1ba))/0x8+parseInt(_0x28012f(0x1ca))/0x9*(parseInt(_0x28012f(0x1d8))/0xa);if(_0x531109===_0x4843b8)break;else _0x506c26['push'](_0x506c26['shift']());}catch(_0x91d4c){_0x506c26['push'](_0x506c26['shift']());}}}(_0x304b,0x4616c));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';function _0x304b(){const _0x2fca0e=['message','\x20is\x20not\x20valid\x20JSON\x20(','keyPath\x20is\x20required','4382zbWHQR',').\x20Ignoring\x20local\x20profile\x20overrides.','split','length','pPPEV','1957940mepUrr','wrSZv','lLfWV','2CURslM','version','lastProfile','cXgGw','55611JxFSYR','uHjXJ','object','.\x20Ignoring\x20local\x20profile\x20overrides.','MuVUj','now','setupHeaders','qXLTT','headers','BxTVH','pBWZR','1418SLCySU','IjlAo','5106FRdKzZ','290VndNUf','1737760aJbzcM','warn','rSSqH','dltNe','qRfZj','hosdE','isArray','entries','cmKdB','YAveP','[ranger]\x20Warning:\x20','vvMWl','keys','pid','profiles','AXEUB','SKKYz','settings','1232193yxJbPp','.tmp','projects','1033992lgfNBU'];_0x304b=function(){return _0x2fca0e;};return _0x304b();}const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x5f0311=_0x5de5,_0x30bfda={'rSSqH':function(_0x30dd5a){return _0x30dd5a();},'hosdE':'projects.json'};return join(_0x30bfda[_0x5f0311(0x1db)](getRangerHomeDir),_0x30bfda[_0x5f0311(0x1de)]);}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x2e9649=_0x5de5,_0x38525d={'BxTVH':function(_0x147663){return _0x147663();},'fNxwX':function(_0x5a4578,_0x31b4c5){return _0x5a4578(_0x31b4c5);},'zBtFI':function(_0x181713){return _0x181713();},'IjlAo':function(_0x3aaccb,_0x217246){return _0x3aaccb instanceof _0x217246;},'iyTtu':function(_0x121dbb){return _0x121dbb();},'zmAkG':function(_0x3f6793,_0x12995d){return _0x3f6793(_0x12995d);},'qRfZj':function(_0x5c749b,_0xd6c5e7){return _0x5c749b!==_0xd6c5e7;},'KXIAN':_0x2e9649(0x1cc),'aMbse':function(_0x3ae148){return _0x3ae148();}},_0x372f40=_0x38525d[_0x2e9649(0x1d3)](getProjectsConfigPath);if(!_0x38525d['fNxwX'](existsSync,_0x372f40))return _0x38525d['zBtFI'](emptyConfig);let _0xa98052;try{_0xa98052=readFileSync(_0x372f40,'utf-8');}catch(_0x1735bc){const _0x3a3ddb=_0x38525d[_0x2e9649(0x1d6)](_0x1735bc,Error)?_0x1735bc[_0x2e9649(0x1bb)]:_0x38525d['fNxwX'](String,_0x1735bc);return console[_0x2e9649(0x1da)]('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x372f40+':\x20'+_0x3a3ddb+_0x2e9649(0x1cd)),_0x38525d['iyTtu'](emptyConfig);}let _0xb0febe;try{_0xb0febe=JSON['parse'](_0xa98052);}catch(_0x41ccac){const _0xbada6e=_0x41ccac instanceof Error?_0x41ccac['message']:_0x38525d['zmAkG'](String,_0x41ccac);return console[_0x2e9649(0x1da)]('[ranger]\x20Warning:\x20'+_0x372f40+_0x2e9649(0x1bc)+_0xbada6e+_0x2e9649(0x1bf)),emptyConfig();}if(!_0xb0febe||_0x38525d[_0x2e9649(0x1dd)](typeof _0xb0febe,_0x38525d['KXIAN'])||Array[_0x2e9649(0x1df)](_0xb0febe)||_0xb0febe[_0x2e9649(0x1c7)]!==CURRENT_VERSION||_0x38525d[_0x2e9649(0x1dd)](typeof _0xb0febe[_0x2e9649(0x1b9)],_0x38525d['KXIAN'])||_0xb0febe['projects']===null||Array[_0x2e9649(0x1df)](_0xb0febe[_0x2e9649(0x1b9)]))return console[_0x2e9649(0x1da)](_0x2e9649(0x1e3)+_0x372f40+'\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.'),_0x38525d['aMbse'](emptyConfig);return _0xb0febe;}export function writeProjectsConfig(_0xe565cb){const _0x15431d=_0x5de5,_0x1a30b3={'pBWZR':function(_0x444d39){return _0x444d39();},'MuVUj':function(_0x38c800,_0x4ba1c0){return _0x38c800(_0x4ba1c0);},'SCzzK':function(_0x5b8c5a,_0x57d6c3,_0x938e28){return _0x5b8c5a(_0x57d6c3,_0x938e28);},'aiWAQ':function(_0x591f75,_0x3cc8c7){return _0x591f75+_0x3cc8c7;},'vvMWl':'utf-8'},_0x493e26=_0x1a30b3[_0x15431d(0x1d4)](getProjectsConfigPath),_0xb970c6=dirname(_0x493e26);!_0x1a30b3[_0x15431d(0x1ce)](existsSync,_0xb970c6)&&_0x1a30b3['SCzzK'](mkdirSync,_0xb970c6,{'recursive':!![]});const _0x3198c5=_0x493e26+'.'+process[_0x15431d(0x1b2)]+'.'+Date[_0x15431d(0x1cf)]()+_0x15431d(0x1b8),_0x1075f3=_0x1a30b3['aiWAQ'](JSON['stringify'](_0xe565cb,null,0x2),'\x0a');try{writeFileSync(_0x3198c5,_0x1075f3,{'encoding':_0x1a30b3[_0x15431d(0x1e4)],'mode':0x180}),renameSync(_0x3198c5,_0x493e26);}catch(_0x111d47){try{existsSync(_0x3198c5)&&_0x1a30b3['MuVUj'](unlinkSync,_0x3198c5);}catch{}throw _0x111d47;}}export function readProfileOverrides(_0x1e7c53,_0xef3363){const _0x30d263=_0x5de5,_0x30c10e=readProjectsConfig(),_0x84c784=_0x30c10e[_0x30d263(0x1b9)][_0x1e7c53];if(!_0x84c784||!_0x84c784[_0x30d263(0x1b3)])return null;const _0x18a993=_0x84c784['profiles'][_0xef3363];if(!_0x18a993||!_0x18a993[_0x30d263(0x1b6)])return null;return _0x18a993['settings']??null;}export function setProfileOverride(_0x9662f6,_0x490623,_0x3ec8ac,_0x55abca){const _0x335a37=_0x5de5,_0x46375d={'SKKYz':_0x335a37(0x1bd),'fBlki':function(_0x54d6bf,_0x1fa829){return _0x54d6bf(_0x1fa829);}};if(!_0x3ec8ac)throw new Error(_0x46375d[_0x335a37(0x1b5)]);const _0x5c303c=readProjectsConfig(),_0x23afe1=_0x5c303c[_0x335a37(0x1b9)][_0x9662f6]??={},_0x479ad3=_0x23afe1[_0x335a37(0x1b3)]??={},_0x151625=_0x479ad3[_0x490623]??={},_0xe80605=_0x151625[_0x335a37(0x1b6)]??={};setByKeyPath(_0xe80605,_0x3ec8ac,_0x55abca),_0x46375d['fBlki'](writeProjectsConfig,_0x5c303c);}export function unsetProfileOverride(_0x12ae80,_0x58a9f6,_0x2c69be){const _0x57bc31=_0x5de5,_0x3fad74={'pPPEV':function(_0x30535b,_0x5d9aff,_0x71469e){return _0x30535b(_0x5d9aff,_0x71469e);}};if(!_0x2c69be)throw new Error('keyPath\x20is\x20required');const _0x572a52=readProjectsConfig(),_0x3a230a=_0x572a52['projects'][_0x12ae80];if(!_0x3a230a?.['profiles'])return![];const _0x46aa0a=_0x3a230a['profiles'][_0x58a9f6];if(!_0x46aa0a?.[_0x57bc31(0x1b6)])return![];const _0x518f3d=_0x3fad74[_0x57bc31(0x1c2)](deleteByKeyPath,_0x46aa0a['settings'],_0x2c69be);if(!_0x518f3d)return![];return writeProjectsConfig(_0x572a52),!![];}export function resetProfileOverrides(_0x2b8e18,_0x46b217){const _0x27fccc=_0x5de5,_0x1c69b6={'YAveP':function(_0x3658b0,_0x3641e7){return _0x3658b0 in _0x3641e7;},'dltNe':function(_0x856630,_0x3675af){return _0x856630(_0x3675af);}},_0x345d0e=readProjectsConfig(),_0x139a68=_0x345d0e[_0x27fccc(0x1b9)][_0x2b8e18];if(!_0x139a68?.['profiles'])return;if(!_0x1c69b6[_0x27fccc(0x1e2)](_0x46b217,_0x139a68['profiles']))return;delete _0x139a68[_0x27fccc(0x1b3)][_0x46b217],Object[_0x27fccc(0x1e5)](_0x139a68['profiles'])[_0x27fccc(0x1c1)]===0x0&&(!_0x139a68[_0x27fccc(0x1c8)]?delete _0x345d0e[_0x27fccc(0x1b9)][_0x2b8e18]:_0x139a68[_0x27fccc(0x1b3)]={}),_0x1c69b6[_0x27fccc(0x1dc)](writeProjectsConfig,_0x345d0e);}export function readLastProfile(_0x2ebf96){const _0x4e5d8a=_0x5de5,_0x25a9e4=readProjectsConfig(),_0xda5aca=_0x25a9e4[_0x4e5d8a(0x1b9)][_0x2ebf96];return _0xda5aca?.['lastProfile']??null;}export function writeLastProfile(_0x3f5420,_0x1dffeb){const _0x1fcf3e=_0x5de5,_0x477ad2={'cXgGw':function(_0x17a724,_0x462db9){return _0x17a724(_0x462db9);}},_0x1ee527=readProjectsConfig(),_0x152160=_0x1ee527[_0x1fcf3e(0x1b9)][_0x3f5420]??={};_0x152160['lastProfile']=_0x1dffeb,_0x477ad2[_0x1fcf3e(0x1c9)](writeProjectsConfig,_0x1ee527);}function _0x5de5(_0x4d58c8,_0xb9a4f8){_0x4d58c8=_0x4d58c8-0x1b2;const _0x304b80=_0x304b();let _0x5de554=_0x304b80[_0x4d58c8];return _0x5de554;}export function clearLastProfile(_0x5013cb,_0x42583e){const _0x12ee1d=_0x5de5,_0xc7f00f={'qXLTT':function(_0x4a228d,_0x51e398){return _0x4a228d!==_0x51e398;},'PKhSW':function(_0x405af4,_0x9d8df0){return _0x405af4===_0x9d8df0;}},_0x90407c=readProjectsConfig(),_0x206b8d=_0x90407c[_0x12ee1d(0x1b9)][_0x5013cb];if(!_0x206b8d||_0xc7f00f[_0x12ee1d(0x1d1)](_0x206b8d[_0x12ee1d(0x1c8)],_0x42583e))return![];return delete _0x206b8d['lastProfile'],(!_0x206b8d[_0x12ee1d(0x1b3)]||_0xc7f00f['PKhSW'](Object['keys'](_0x206b8d[_0x12ee1d(0x1b3)])['length'],0x0))&&delete _0x90407c['projects'][_0x5013cb],writeProjectsConfig(_0x90407c),!![];}export function mergeCloudProfileSettings(_0x306efd,_0x395c3d){const _0x175179=_0x5de5,_0x2655b0={'XkYIN':function(_0x29df80,_0x698e67){return _0x29df80===_0x698e67;},'HZFzv':function(_0xda54e6,_0x5b09b0){return _0xda54e6===_0x5b09b0;},'uHjXJ':_0x175179(0x1d2),'rissh':function(_0x3b4fa9,_0x3b24fc){return _0x3b4fa9===_0x3b24fc;},'wrSZv':_0x175179(0x1d0),'LqZvo':function(_0x3bc975,_0x170d21){return _0x3bc975(_0x170d21);}},_0x14bed7={..._0x306efd??{}};if(!_0x395c3d)return _0x14bed7;for(const [_0x577df9,_0x3e748b]of Object[_0x175179(0x1e0)](_0x395c3d)){if(_0x3e748b===undefined)continue;if(_0x2655b0['XkYIN'](_0x3e748b,null)){delete _0x14bed7[_0x577df9];continue;}if(_0x2655b0['HZFzv'](_0x577df9,_0x2655b0[_0x175179(0x1cb)])||_0x2655b0['rissh'](_0x577df9,_0x2655b0[_0x175179(0x1c4)])){const _0x5c2973=_0x2655b0['LqZvo'](asRecord,_0x14bed7[_0x577df9])??{},_0x48273a=asRecord(_0x3e748b);if(!_0x48273a){_0x14bed7[_0x577df9]=_0x3e748b;continue;}const _0x40772d={..._0x5c2973};for(const [_0x464a44,_0x536076]of Object['entries'](_0x48273a)){if(_0x536076===null)delete _0x40772d[_0x464a44];else _0x536076!==undefined&&(_0x40772d[_0x464a44]=_0x536076);}_0x14bed7[_0x577df9]=_0x40772d;continue;}_0x14bed7[_0x577df9]=_0x3e748b;}return _0x14bed7;}function asRecord(_0x37ae5c){const _0x132e74=_0x5de5;return _0x37ae5c&&typeof _0x37ae5c==='object'&&!Array[_0x132e74(0x1df)](_0x37ae5c)?_0x37ae5c:undefined;}function setByKeyPath(_0x3c0726,_0x4c9c42,_0xeabcf6){const _0x1469db=_0x5de5,_0x33fa49={'XCYuP':function(_0x18db0a,_0x3e54c2){return _0x18db0a<_0x3e54c2;},'oQzMq':function(_0x2718e6,_0x445e63){return _0x2718e6-_0x445e63;},'lLfWV':function(_0x3e5cb6,_0x292e38){return _0x3e5cb6!==_0x292e38;},'cmKdB':_0x1469db(0x1cc),'AXEUB':function(_0x4f0dee,_0x41faa9){return _0x4f0dee-_0x41faa9;}},_0x38c7b7=_0x4c9c42[_0x1469db(0x1c0)]('.');let _0x5d31bf=_0x3c0726;for(let _0x5d22bb=0x0;_0x33fa49['XCYuP'](_0x5d22bb,_0x33fa49['oQzMq'](_0x38c7b7[_0x1469db(0x1c1)],0x1));_0x5d22bb++){const _0x5ba6da=_0x38c7b7[_0x5d22bb],_0x2bec2f=_0x5d31bf[_0x5ba6da];(!_0x2bec2f||_0x33fa49[_0x1469db(0x1c5)](typeof _0x2bec2f,_0x33fa49[_0x1469db(0x1e1)])||Array[_0x1469db(0x1df)](_0x2bec2f))&&(_0x5d31bf[_0x5ba6da]={}),_0x5d31bf=_0x5d31bf[_0x5ba6da];}_0x5d31bf[_0x38c7b7[_0x33fa49[_0x1469db(0x1b4)](_0x38c7b7['length'],0x1)]]=_0xeabcf6;}function deleteByKeyPath(_0x4883ed,_0x4c3bd2){const _0x2313d8=_0x5de5,_0x5a57da={'MHfAw':function(_0x4beb84,_0x2ff35f){return _0x4beb84-_0x2ff35f;}},_0x478c0f=_0x4c3bd2[_0x2313d8(0x1c0)]('.');let _0x12e568=_0x4883ed;for(let _0x292761=0x0;_0x292761<_0x478c0f[_0x2313d8(0x1c1)]-0x1;_0x292761++){const _0x429fc3=_0x478c0f[_0x292761],_0x700e95=_0x12e568[_0x429fc3];if(!_0x700e95||typeof _0x700e95!=='object'||Array['isArray'](_0x700e95))return![];_0x12e568=_0x700e95;}const _0x292833=_0x478c0f[_0x5a57da['MHfAw'](_0x478c0f[_0x2313d8(0x1c1)],0x1)];if(!(_0x292833 in _0x12e568))return![];return delete _0x12e568[_0x292833],!![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x55a9(){const _0x1d51bd=['utf-8','model','32199QiuLbQ','32Xmxvwj','config.json','105140BCuFLP','1666770Oleysa','44YLaSeW','2scfrmB','301236GxjfUn','35bbaYQt','153124CGGhyt','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','string','gkGly','object','lQtGu','195BRMhYV','54666QRXcBk','409350HuWSdT','6hLsqwp','message'];_0x55a9=function(){return _0x1d51bd;};return _0x55a9();}(function(_0x46d72c,_0x3b2622){const _0x50600d=_0x4b69,_0x2e67a5=_0x46d72c();while(!![]){try{const _0x4c90c8=-parseInt(_0x50600d(0x8b))/0x1+parseInt(_0x50600d(0x88))/0x2*(-parseInt(_0x50600d(0x82))/0x3)+parseInt(_0x50600d(0x85))/0x4*(-parseInt(_0x50600d(0x8a))/0x5)+-parseInt(_0x50600d(0x7e))/0x6*(-parseInt(_0x50600d(0x86))/0x7)+-parseInt(_0x50600d(0x83))/0x8*(-parseInt(_0x50600d(0x7c))/0x9)+parseInt(_0x50600d(0x7d))/0xa*(-parseInt(_0x50600d(0x87))/0xb)+parseInt(_0x50600d(0x89))/0xc*(parseInt(_0x50600d(0x7b))/0xd);if(_0x4c90c8===_0x3b2622)break;else _0x2e67a5['push'](_0x2e67a5['shift']());}catch(_0x5e23b4){_0x2e67a5['push'](_0x2e67a5['shift']());}}}(_0x55a9,0x1f17f));import{readFile}from'fs/promises';import{existsSync}from'fs';function _0x4b69(_0x1532b3,_0xe15308){_0x1532b3=_0x1532b3-0x76;const _0x55a9ef=_0x55a9();let _0x4b6991=_0x55a9ef[_0x1532b3];return _0x4b6991;}import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x5276b6=_0x4b69,_0x595bbe={'gkGly':function(_0x4af6c2){return _0x4af6c2();},'BwNxe':_0x5276b6(0x84)};return join(_0x595bbe[_0x5276b6(0x78)](getRangerDir),_0x595bbe['BwNxe']);}export async function loadRangerConfig(){const _0x398380=_0x4b69,_0x3edc05={'lQtGu':function(_0x30bd0a,_0x41a74a,_0x31646e){return _0x30bd0a(_0x41a74a,_0x31646e);},'qdSlM':function(_0x6d259f,_0x82c6e8){return _0x6d259f!==_0x82c6e8;},'vWZeO':_0x398380(0x77),'tsdhI':function(_0x2f35d0,_0x1e866c){return _0x2f35d0 instanceof _0x1e866c;}},_0x9c390c=getRangerConfigPath();if(!existsSync(_0x9c390c))return{};try{const _0x41bd34=await _0x3edc05[_0x398380(0x7a)](readFile,_0x9c390c,_0x398380(0x80)),_0x29d4f4=JSON['parse'](_0x41bd34);if(!_0x29d4f4||_0x3edc05['qdSlM'](typeof _0x29d4f4,_0x398380(0x79))||Array['isArray'](_0x29d4f4))return{};const _0x43e905={},_0x17e443=_0x29d4f4[_0x398380(0x81)];return typeof _0x17e443===_0x3edc05['vWZeO']&&(_0x43e905['model']=_0x17e443),_0x43e905;}catch(_0x228b80){const _0x414ee5=_0x3edc05['tsdhI'](_0x228b80,Error)?_0x228b80[_0x398380(0x7f)]:String(_0x228b80);return console['warn'](_0x398380(0x76)+_0x9c390c+':\x20'+_0x414ee5),{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x56d8b1,_0x3759bd){const _0x4730ae=_0x1c82,_0x48e70f=_0x56d8b1();while(!![]){try{const _0x1e6b83=parseInt(_0x4730ae(0x9d))/0x1+parseInt(_0x4730ae(0x95))/0x2+parseInt(_0x4730ae(0x93))/0x3*(-parseInt(_0x4730ae(0x92))/0x4)+-parseInt(_0x4730ae(0x9c))/0x5*(parseInt(_0x4730ae(0x8c))/0x6)+parseInt(_0x4730ae(0x96))/0x7+parseInt(_0x4730ae(0x94))/0x8*(parseInt(_0x4730ae(0x9a))/0x9)+-parseInt(_0x4730ae(0x91))/0xa*(parseInt(_0x4730ae(0x90))/0xb);if(_0x1e6b83===_0x3759bd)break;else _0x48e70f['push'](_0x48e70f['shift']());}catch(_0x543e31){_0x48e70f['push'](_0x48e70f['shift']());}}}(_0x5d82,0xcac87));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x5ac3ff=_0x1c82,_0xa223f0={'JjNrq':function(_0x39bc59,_0x5aebd1){return _0x39bc59(_0x5aebd1);},'wRMih':function(_0x17dff1,_0x51ca12){return _0x17dff1!==_0x51ca12;},'dWppb':function(_0x283eea,_0x32b7e5){return _0x283eea(_0x32b7e5);},'ugbcP':_0x5ac3ff(0x8f)};let _0x43bc7c=process['cwd']();const _0x4fc489=_0xa223f0[_0x5ac3ff(0x9b)](parse,_0x43bc7c)['root'];while(_0xa223f0[_0x5ac3ff(0x8b)](_0x43bc7c,_0x4fc489)){if(_0xa223f0[_0x5ac3ff(0x9b)](existsSync,join(_0x43bc7c,_0x5ac3ff(0x8f))))return _0x43bc7c;_0x43bc7c=_0xa223f0['dWppb'](dirname,_0x43bc7c);}if(existsSync(join(_0x4fc489,_0xa223f0['ugbcP'])))return _0x4fc489;const _0x54fe29=findGitRoot();if(_0x54fe29)return _0x54fe29;return process['cwd']();}export function getRangerDir(){const _0x1f2839={'MMMrW':'.ranger'};return join(getRangerRoot(),_0x1f2839['MMMrW']);}export function findGitRoot(){const _0x44fef2=_0x1c82,_0x2f3ca8={'MBjJC':function(_0x113620,_0x420e8c,_0x369af3){return _0x113620(_0x420e8c,_0x369af3);},'DBrMp':function(_0x5d05f9,_0x5596fd){return _0x5d05f9(_0x5596fd);},'HoelQ':function(_0x366548,_0x6ffa38,_0x5a3510){return _0x366548(_0x6ffa38,_0x5a3510);},'sllbD':'.git'};let _0x4b4763=process[_0x44fef2(0x98)]();const _0x2ad1b1=parse(_0x4b4763)['root'];while(_0x4b4763!==_0x2ad1b1){if(existsSync(_0x2f3ca8[_0x44fef2(0x99)](join,_0x4b4763,'.git')))return _0x4b4763;_0x4b4763=dirname(_0x4b4763);}if(_0x2f3ca8['DBrMp'](existsSync,_0x2f3ca8[_0x44fef2(0x8e)](join,_0x2ad1b1,_0x2f3ca8[_0x44fef2(0x8d)])))return _0x2ad1b1;return null;}function _0x1c82(_0x4e26ed,_0x30d9fa){_0x4e26ed=_0x4e26ed-0x8b;const _0x5d821f=_0x5d82();let _0x1c823c=_0x5d821f[_0x4e26ed];return _0x1c823c;}export function getRangerHomeDir(){const _0xeabd55=_0x1c82,_0x3dc661={'iBjRY':function(_0x2a3e9a){return _0x2a3e9a();},'xFrMk':_0xeabd55(0x8f)};return join(_0x3dc661[_0xeabd55(0x97)](homedir),_0x3dc661['xFrMk']);}function _0x5d82(){const _0x3ba055=['HoelQ','.ranger','1518616upfaeF','50XjxmUH','32436oYvynd','33jgsfLn','768KQLxVU','277724HGbQDa','11205908lYkadK','iBjRY','cwd','MBjJC','102294GKjugG','JjNrq','21585nuKWFi','385160XSqVEX','wRMih','2232fjKsaD','sllbD'];_0x5d82=function(){return _0x3ba055;};return _0x5d82();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x36c1eb,_0x6d266d){const _0xe80c82=_0x426d,_0x1fa529=_0x36c1eb();while(!![]){try{const _0x1a8b90=parseInt(_0xe80c82(0x1c3))/0x1+parseInt(_0xe80c82(0x1bc))/0x2*(-parseInt(_0xe80c82(0x1cb))/0x3)+-parseInt(_0xe80c82(0x1bd))/0x4+parseInt(_0xe80c82(0x1c4))/0x5+parseInt(_0xe80c82(0x1cc))/0x6*(parseInt(_0xe80c82(0x1b9))/0x7)+parseInt(_0xe80c82(0x1de))/0x8+-parseInt(_0xe80c82(0x1d3))/0x9;if(_0x1a8b90===_0x6d266d)break;else _0x1fa529['push'](_0x1fa529['shift']());}catch(_0x25d301){_0x1fa529['push'](_0x1fa529['shift']());}}}(_0x2d1d,0x8191a));function _0x2d1d(){const _0x58d5da=['startPath','env','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','cloud','6137168cknxvW','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','cTvoR','pNrBi','split','cdpEndpoint','70aAItly','vWySv','tcTJL','166TPvduf','1367952OyqHKy','log','QgRRL','name','ZkDdz','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','181900PUNjKC','2869880WJklPE','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','VuJjY','Profile\x20\x22','RANGER_SESSION_STATE_PATH=','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','ijWOv','2334OpuWfo','104814ekPpza','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','JZnPN','cwd','list','envStartPath','baseUrl','6843924VLFRye','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','rJCYz','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','zFbvf','profile','ZlveW'];_0x2d1d=function(){return _0x58d5da;};return _0x2d1d();}function _0x426d(_0x28bd03,_0x6ab547){_0x28bd03=_0x28bd03-0x1b9;const _0x2d1d17=_0x2d1d();let _0x426ddd=_0x2d1d17[_0x28bd03];return _0x426ddd;}import{existsSync}from'fs';import _0x1a6d79 from'inquirer';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(_0x5443ca){const _0x397478=_0x426d,_0xe02442={'zFbvf':function(_0x2f790c){return _0x2f790c();},'YFysr':function(_0x4c6370,_0x38aed3){return _0x4c6370+_0x38aed3;},'fskJA':function(_0x4db3f,_0x2c9cb8){return _0x4db3f+_0x2c9cb8;},'QgRRL':function(_0xe81ce2,_0x28f757){return _0xe81ce2+_0x28f757;},'PXgjm':_0x397478(0x1c9),'ZkDdz':function(_0x349c28,_0x2952b4){return _0x349c28(_0x2952b4);},'CfGcN':function(_0x15eab6,_0x2d15d0){return _0x15eab6 instanceof _0x2d15d0;},'Sqdwb':function(_0xf7d471,_0x2c95cc){return _0xf7d471&&_0x2c95cc;},'pADPw':function(_0x3a67aa,_0x324f95){return _0x3a67aa+_0x324f95;},'PWrMm':_0x397478(0x1d0),'pNrBi':'Cloud\x20profile\x20(recommended)','rJCYz':'Local\x20profile','qrsRJ':'local','DHGcF':function(_0x3f67e4,_0x22168e){return _0x3f67e4===_0x22168e;},'JZnPN':_0x397478(0x1dd),'kJIoK':function(_0x3c0339,_0x322882,_0xd0124d){return _0x3c0339(_0x322882,_0xd0124d);},'BnqYj':function(_0xa584c3,_0x414314,_0xe5b0da){return _0xa584c3(_0x414314,_0xe5b0da);},'cTvoR':function(_0xe8e423,_0x595712){return _0xe8e423??_0x595712;},'tcTJL':'2|0|1|3|4','OvJjA':function(_0x51f799,_0xdbf4ce){return _0x51f799(_0xdbf4ce);},'tkcAU':function(_0x46ddae,_0x1a1217){return _0x46ddae(_0x1a1217);},'vWySv':function(_0x3d3657,_0x3fac1){return _0x3d3657(_0x3fac1);},'ZlveW':function(_0x6550dd,_0x12cad6){return _0x6550dd(_0x12cad6);}},_0x23719a=_0x5443ca['profile'];let _0x1140c1=_0x5443ca[_0x397478(0x1d8)]??await readActiveProfileName(),_0x5476fb=null;if(!_0x1140c1&&process['env']['RANGER_TEST_USERNAME']){const _0x8f57dc=await resolveAdHocProfile();_0x8f57dc&&(_0x1140c1=_0x8f57dc[_0x397478(0x1c0)],_0x5476fb=_0x8f57dc[_0x397478(0x1d8)]);}if(!_0x1140c1)try{const _0x152c7c=await _0xe02442[_0x397478(0x1d7)](listCloudProfiles);if(_0x152c7c['length']===0x1){const _0x5ed41c=_0x152c7c[0x0];_0x1140c1=_0x5ed41c['name'],console[_0x397478(0x1be)](_0x397478(0x1cd)+_0x5ed41c[_0x397478(0x1c0)]),console[_0x397478(0x1be)](_0x397478(0x1c2));}}catch{}if(!_0x1140c1)throw new Error(_0xe02442['YFysr'](_0xe02442['fskJA'](_0xe02442[_0x397478(0x1bf)](_0xe02442[_0x397478(0x1bf)](_0xe02442['PXgjm'],_0x397478(0x1d4)),'\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a'),'\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 _0x6bd6f2=getEnvDir(_0x1140c1),_0x2fedfd=existsSync(_0x6bd6f2);let _0x527239=_0x5476fb,_0x27d13e=![];if(!_0x527239)try{_0x527239=await _0xe02442[_0x397478(0x1c1)](fetchCloudProfile,_0x1140c1);if(!_0x527239)_0x27d13e=!![];}catch(_0x4bf46a){_0xe02442['CfGcN'](_0x4bf46a,ApiError)&&_0x4bf46a['status']===0x194&&(_0x27d13e=!![]);}if(_0xe02442['Sqdwb'](_0x23719a,_0x27d13e)&&!_0x2fedfd&&!_0x527239)throw new Error(_0xe02442['pADPw']('Profile\x20\x22'+_0x23719a+_0x397478(0x1c5),'\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20')+'`ranger\x20profile\x20add`\x20to\x20create\x20one.');if(_0x527239&&_0x2fedfd){let _0x21191a=!![];if(isInteractive()){const {source:_0x33fd85}=await _0x1a6d79['prompt']([{'type':_0xe02442['PWrMm'],'name':'source','message':_0x397478(0x1c7)+_0x1140c1+_0x397478(0x1df),'choices':[{'name':_0xe02442[_0x397478(0x1e1)],'value':_0x397478(0x1dd)},{'name':_0xe02442[_0x397478(0x1d5)],'value':_0xe02442['qrsRJ']}],'default':_0x397478(0x1dd)}]);_0x21191a=_0xe02442['DHGcF'](_0x33fd85,_0xe02442[_0x397478(0x1ce)]);}if(!_0x21191a)_0x527239=null;}const _0x4ec06a=_0xe02442['kJIoK'](readProfileOverrides,process[_0x397478(0x1cf)](),_0x1140c1);let _0x5904d6=null,_0x216f8b,_0x267aac,_0x22d6a1,_0x1ac522,_0x21b4f4=null,_0x429ac9;const _0x4f82a7=_0xe02442[_0x397478(0x1c1)](expandOverrides,_0x4ec06a);if(_0x527239){_0x5904d6=_0x527239;const _0x5cffd4=_0x527239['settings']??{},_0x41cf9f=_0xe02442['BnqYj'](mergeCloudProfileSettings,_0x5cffd4,_0xe02442[_0x397478(0x1e0)](_0x4ec06a,undefined)),_0x232816={..._0x527239,'settings':_0x41cf9f},_0x499d9d=process[_0x397478(0x1db)]['RANGER_SESSION_STATE_PATH'];if(_0x499d9d){const _0x34d980=_0xe02442[_0x397478(0x1bb)][_0x397478(0x1e2)]('|');let _0x3c048d=0x0;while(!![]){switch(_0x34d980[_0x3c048d++]){case'0':_0x216f8b=_0x499d9d;continue;case'1':_0x267aac=_0xe02442['OvJjA'](resolveEnvVars,_0x41cf9f);continue;case'2':if(!_0xe02442['tkcAU'](existsSync,_0x499d9d))throw new Error(_0x397478(0x1c8)+_0x499d9d+'\x20does\x20not\x20exist.');continue;case'3':_0x22d6a1=Boolean(_0x267aac[_0x397478(0x1e3)]);continue;case'4':_0x21b4f4={'baseUrl':expandString(_0x5cffd4[_0x397478(0x1d2)]),'startPath':expandString(_0x5cffd4[_0x397478(0x1da)])};continue;}break;}}else{const _0xb2c0d1=await resolveCloudProfileSession(_0x232816);_0x216f8b=_0xb2c0d1['authPath'],_0x267aac=_0xe02442['vWySv'](resolveEnvVars,_0x41cf9f),_0x22d6a1=_0xe02442[_0x397478(0x1ba)](Boolean,_0x267aac['cdpEndpoint']),_0x21b4f4={'baseUrl':_0xe02442[_0x397478(0x1d9)](expandString,_0x5cffd4['baseUrl']),'startPath':expandString(_0x5cffd4['startPath'])},_0x429ac9=_0xb2c0d1['resolvedEnv']?.['domains']?.[0x0];}}else{if(!_0x2fedfd)throw new Error('Profile\x20\x22'+_0x1140c1+_0x397478(0x1dc)+_0x1140c1);const _0x40510e=await loadSettings(_0x1140c1);_0x267aac=resolveEnvVars(_0x40510e),_0x22d6a1=Boolean(_0x267aac['cdpEndpoint']),_0x1ac522=_0x267aac['baseUrl'];}const _0x3894b1=readUrlEnvVars(),_0x31e804=_0xe02442['ZlveW'](resolveProfileUrl,{'flagBaseUrl':_0x5443ca[_0x397478(0x1d2)],'flagStartPath':_0x5443ca['startPath'],'envBaseUrl':_0x3894b1['envBaseUrl'],'envStartPath':_0x3894b1[_0x397478(0x1d1)],'localSettingsBaseUrl':_0x1ac522,'projectOverrides':_0x4f82a7,'cloudSettings':_0x21b4f4,'authEnvironmentDomain':_0x429ac9}),_0x40dc28=_0x31e804['url']??_0x31e804['baseUrl'];if(_0xe02442['Sqdwb'](!_0x40dc28,!_0x22d6a1))throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0x1140c1+_0x397478(0x1d6)+_0x1140c1+'\x20baseUrl\x20<url>');return{'activeProfile':_0x1140c1,'resolvedCloudProfile':_0x5904d6,'cloudAuthPath':_0x216f8b,'resolvedSettings':_0x267aac,'isCdpMode':_0x22d6a1,'url':_0x40dc28,'startPath':_0x31e804[_0x397478(0x1da)]};}function expandString(_0x2ec8fd){if(typeof _0x2ec8fd!=='string')return _0x2ec8fd;return resolveEnvVars(_0x2ec8fd);}function expandOverrides(_0xefa845){const _0x207474=_0x426d,_0x5f55fb={'ijWOv':function(_0x19495f,_0x29e66d){return _0x19495f(_0x29e66d);},'VuJjY':function(_0x3df227,_0x5dc4c3){return _0x3df227(_0x5dc4c3);}};if(!_0xefa845)return _0xefa845;const _0x23ceba={..._0xefa845};return typeof _0x23ceba[_0x207474(0x1d2)]==='string'&&(_0x23ceba['baseUrl']=_0x5f55fb[_0x207474(0x1ca)](resolveEnvVars,_0x23ceba['baseUrl'])),typeof _0x23ceba[_0x207474(0x1da)]==='string'&&(_0x23ceba['startPath']=_0x5f55fb[_0x207474(0x1c6)](resolveEnvVars,_0x23ceba['startPath'])),_0x23ceba;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1dffbf,_0xad7d73){const _0x359a17=_0x52da,_0x35ce78=_0x1dffbf();while(!![]){try{const _0xdde87d=parseInt(_0x359a17(0x1a4))/0x1+-parseInt(_0x359a17(0x1b1))/0x2*(parseInt(_0x359a17(0x1b3))/0x3)+parseInt(_0x359a17(0x1a0))/0x4+parseInt(_0x359a17(0x1a7))/0x5*(parseInt(_0x359a17(0x1a1))/0x6)+-parseInt(_0x359a17(0x19d))/0x7*(-parseInt(_0x359a17(0x1a6))/0x8)+-parseInt(_0x359a17(0x19c))/0x9*(-parseInt(_0x359a17(0x19e))/0xa)+-parseInt(_0x359a17(0x1a5))/0xb;if(_0xdde87d===_0xad7d73)break;else _0x35ce78['push'](_0x35ce78['shift']());}catch(_0x53e561){_0x35ce78['push'](_0x35ce78['shift']());}}}(_0x1223,0x220fc));function firstDefined(..._0x5ac415){const _0x1a4547=_0x52da,_0x4611ed={'WujBB':function(_0x518947,_0x17af6c){return _0x518947!==_0x17af6c;}};for(const _0x13d1a8 of _0x5ac415){if(_0x13d1a8!==undefined&&_0x4611ed[_0x1a4547(0x1aa)](_0x13d1a8,null)&&_0x4611ed['WujBB'](_0x13d1a8,''))return _0x13d1a8;}return undefined;}function normalizeAuthEnvironmentDomain(_0x12466d){const _0x2f20ca=_0x52da;if(!_0x12466d)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0x2f20ca(0x1ac)](_0x12466d))return _0x12466d;return'https://'+_0x12466d;}export function resolveBaseUrl(_0x113c69){const _0x5dd526=_0x52da,_0x1775d2={'gzUmB':function(_0x57853e,_0x44bc9f){return _0x57853e in _0x44bc9f;},'dZyvX':'baseUrl','tbcUL':_0x5dd526(0x1a8),'jqjcI':function(_0x1d193c,_0x47d258){return _0x1d193c(_0x47d258);}},_0x5d2ccc=_0x113c69['projectOverrides'],_0x184ceb=!!_0x5d2ccc&&_0x1775d2['gzUmB'](_0x1775d2[_0x5dd526(0x1ad)],_0x5d2ccc),_0x1240fa=_0x5d2ccc?.[_0x5dd526(0x1a9)],_0x372c50=!(_0x184ceb&&_0x1240fa===null);return firstDefined(_0x113c69[_0x5dd526(0x1b2)],_0x113c69[_0x5dd526(0x1a2)],_0x113c69['localSettingsBaseUrl'],typeof _0x1240fa===_0x1775d2['tbcUL']?_0x1240fa:undefined,_0x372c50?_0x113c69['cloudSettings']?.['baseUrl']:undefined,_0x372c50?_0x1775d2[_0x5dd526(0x1a3)](normalizeAuthEnvironmentDomain,_0x113c69['authEnvironmentDomain']):undefined);}export function resolveStartPath(_0xd70762){const _0x48ee4f=_0x52da,_0x30aab8={'Nsdmd':function(_0x32a483,_0x5e1417){return _0x32a483===_0x5e1417;},'shZlO':_0x48ee4f(0x1a8)},_0x274444=_0xd70762['projectOverrides'],_0x22652d=!!_0x274444&&'startPath'in _0x274444,_0x34a783=_0x274444?.['startPath'],_0x53d43a=!(_0x22652d&&_0x30aab8[_0x48ee4f(0x1ae)](_0x34a783,null));return firstDefined(_0xd70762[_0x48ee4f(0x19f)],_0xd70762['envStartPath'],typeof _0x34a783===_0x30aab8['shZlO']?_0x34a783:undefined,_0x53d43a?_0xd70762['cloudSettings']?.['startPath']:undefined);}function _0x1223(){const _0x3753f5=['491358XnjaTd','9pEslnk','126oQrvrt','2222490zLwmDA','flagStartPath','94896fDCaWO','2316nXoxiw','envBaseUrl','jqjcI','128346tYpEGj','1614921XxWEJH','576brWtqF','965qgqagE','string','baseUrl','WujBB','endsWith','test','dZyvX','Nsdmd','slice','startsWith','2lETIBD','flagBaseUrl'];_0x1223=function(){return _0x3753f5;};return _0x1223();}export function joinBaseAndPath(_0x20af8d,_0x3a0641){const _0x387b4e=_0x52da,_0x4cc89d={'KcAig':function(_0xce070c,_0x4e4eca){return _0xce070c+_0x4e4eca;},'gOhSc':function(_0x483c75,_0x224bea){return _0x483c75+_0x224bea;}};if(!_0x20af8d)return undefined;if(!_0x3a0641)return _0x20af8d;const _0x91e435=_0x20af8d[_0x387b4e(0x1ab)]('/')?_0x20af8d[_0x387b4e(0x1af)](0x0,-0x1):_0x20af8d,_0x35287c=_0x3a0641[_0x387b4e(0x1b0)]('/')?_0x3a0641:_0x4cc89d['KcAig']('/',_0x3a0641);return _0x4cc89d['gOhSc'](_0x91e435,_0x35287c);}export function resolveProfileUrl(_0x15bd5f){const _0x108488={'QZnXv':function(_0x9f8d4c,_0x1dd23a,_0x25631e){return _0x9f8d4c(_0x1dd23a,_0x25631e);}},_0x272ef3=resolveBaseUrl(_0x15bd5f),_0x871a67=resolveStartPath(_0x15bd5f);return{'baseUrl':_0x272ef3,'startPath':_0x871a67,'url':_0x108488['QZnXv'](joinBaseAndPath,_0x272ef3,_0x871a67)};}function _0x52da(_0x113708,_0x3b6366){_0x113708=_0x113708-0x19c;const _0x122304=_0x1223();let _0x52da00=_0x122304[_0x113708];return _0x52da00;}export function readUrlEnvVars(_0x2afc87=process['env']){return{'envBaseUrl':_0x2afc87['RANGER_BASE_URL'],'envStartPath':_0x2afc87['RANGER_START_PATH']};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1e1e(){const _0x351930=['710190hxkHaw','341582ljQFzs','828952delpLD','153873tkCjsl','label','baseDelayMs','689855WqAonN','ugMME','ms...','13192VTLnZP','9rCizrK','maxRetries','2408JKTMri','647004ihZIJj'];_0x1e1e=function(){return _0x351930;};return _0x1e1e();}function _0x2fea(_0xf387e2,_0x3494a6){_0xf387e2=_0xf387e2-0x7d;const _0x1e1ea7=_0x1e1e();let _0x2fea45=_0x1e1ea7[_0xf387e2];return _0x2fea45;}(function(_0x4326b7,_0x19cbbc){const _0x293174=_0x2fea,_0x416038=_0x4326b7();while(!![]){try{const _0x2fdef2=parseInt(_0x293174(0x81))/0x1+-parseInt(_0x293174(0x82))/0x2+-parseInt(_0x293174(0x7d))/0x3*(parseInt(_0x293174(0x83))/0x4)+-parseInt(_0x293174(0x87))/0x5+parseInt(_0x293174(0x80))/0x6+-parseInt(_0x293174(0x7f))/0x7*(-parseInt(_0x293174(0x8a))/0x8)+parseInt(_0x293174(0x84))/0x9;if(_0x2fdef2===_0x19cbbc)break;else _0x416038['push'](_0x416038['shift']());}catch(_0x256481){_0x416038['push'](_0x416038['shift']());}}}(_0x1e1e,0x7335d));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x1764f6,_0x4ae3ef){const _0x587555=_0x2fea,_0x2083e4={'ugMME':function(_0x476596,_0x1a26c2){return _0x476596<=_0x1a26c2;},'DBtsy':function(_0x499e1f){return _0x499e1f();},'cYxYo':function(_0x54f962,_0x322af1){return _0x54f962 instanceof _0x322af1;},'CzICk':function(_0x1d8f99,_0x307d09){return _0x1d8f99+_0x307d09;}},_0x1cfd4c=_0x4ae3ef?.[_0x587555(0x7e)]??DEFAULT_MAX_RETRIES,_0x34e71d=_0x4ae3ef?.[_0x587555(0x86)]??DEFAULT_BASE_DELAY_MS;let _0x26b60c;for(let _0x284594=0x0;_0x2083e4[_0x587555(0x88)](_0x284594,_0x1cfd4c);_0x284594++){try{return await _0x2083e4['DBtsy'](_0x1764f6);}catch(_0x2b2ff3){_0x26b60c=_0x2083e4['cYxYo'](_0x2b2ff3,Error)?_0x2b2ff3:new Error(String(_0x2b2ff3));if(_0x284594<_0x1cfd4c){const _0x5202ea=_0x34e71d*Math['pow'](0x2,_0x284594);_0x4ae3ef?.['label']&&console['error'](_0x4ae3ef[_0x587555(0x85)]+'\x20failed\x20(attempt\x20'+(_0x284594+0x1)+'/'+_0x2083e4['CzICk'](_0x1cfd4c,0x1)+'),\x20retrying\x20in\x20'+_0x5202ea+_0x587555(0x89)),await new Promise(_0x1f28bf=>setTimeout(_0x1f28bf,_0x5202ea));}}}throw _0x26b60c;}
|
|
@@ -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 _0x50281e=_0x32b1;(function(_0x1728ad,_0xa0ee1a){const _0x232b0a=_0x32b1,_0x2967aa=_0x1728ad();while(!![]){try{const _0x11ef93=-parseInt(_0x232b0a(0x204))/0x1*(parseInt(_0x232b0a(0x1de))/0x2)+parseInt(_0x232b0a(0x1ef))/0x3+-parseInt(_0x232b0a(0x1f8))/0x4+-parseInt(_0x232b0a(0x1e1))/0x5+-parseInt(_0x232b0a(0x206))/0x6+parseInt(_0x232b0a(0x208))/0x7+parseInt(_0x232b0a(0x20a))/0x8*(parseInt(_0x232b0a(0x1fb))/0x9);if(_0x11ef93===_0xa0ee1a)break;else _0x2967aa['push'](_0x2967aa['shift']());}catch(_0x240f34){_0x2967aa['push'](_0x2967aa['shift']());}}}(_0x2af3,0x22c88));import*as _0x44a823 from'fs';import*as _0x4a9e6c from'path';import*as _0x17d479 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x4a9e6c[_0x50281e(0x207)](_0x17d479[_0x50281e(0x1f4)](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x54719a=_0x50281e,_0x44f27a={'JyIWh':_0x54719a(0x20b),'wgujO':function(_0x147d62){return _0x147d62();}};try{if(_0x44a823['existsSync'](CACHE_FILE)){const _0x417f05=JSON[_0x54719a(0x1ec)](_0x44a823['readFileSync'](CACHE_FILE,_0x44f27a[_0x54719a(0x1e3)]));return{'version':0x3,'sessions':_0x417f05['sessions']||{},'branches':_0x417f05['branches']||{},'lastEnabledSessionClearedAt':_0x417f05[_0x54719a(0x1df)]};}}catch{}return _0x44f27a[_0x54719a(0x1f5)](createEmptyCache);}function saveCache(_0x256e27){const _0x3fbf5d=_0x50281e;try{const _0x585557=_0x4a9e6c['dirname'](CACHE_FILE);!_0x44a823[_0x3fbf5d(0x205)](_0x585557)&&_0x44a823[_0x3fbf5d(0x203)](_0x585557,{'recursive':!![]}),_0x44a823[_0x3fbf5d(0x1fc)](CACHE_FILE,JSON['stringify'](_0x256e27,null,0x2));}catch{}}export function getCurrentBranch(){const _0x591771=_0x50281e,_0x4b3a81={'lhjfg':function(_0x1e657b,_0x51575e,_0x3d9268){return _0x1e657b(_0x51575e,_0x3d9268);},'DVgkB':_0x591771(0x1ea),'hBhxN':_0x591771(0x20b),'rJKgQ':_0x591771(0x1fa),'DdFOe':function(_0x2e5520,_0x4ebe96){return _0x2e5520===_0x4ebe96;},'dBqih':_0x591771(0x1e7)};try{const _0x3feba0=_0x4b3a81[_0x591771(0x1e4)](execSync,_0x4b3a81[_0x591771(0x1f9)],{'encoding':_0x4b3a81['hBhxN'],'stdio':[_0x591771(0x1fa),_0x4b3a81['rJKgQ'],_0x591771(0x1fa)]})[_0x591771(0x20c)]();if(!_0x3feba0||_0x4b3a81[_0x591771(0x1f6)](_0x3feba0,_0x4b3a81['dBqih']))return null;return _0x3feba0;}catch{return null;}}export function enableBranch(_0x540f7d){const _0x29d235=_0x50281e,_0xf8fa24={'oqDCR':function(_0x454dc1){return _0x454dc1();}},_0x48bb4b=_0xf8fa24[_0x29d235(0x1ed)](loadCache);_0x48bb4b[_0x29d235(0x1fe)][_0x540f7d]=!![],saveCache(_0x48bb4b);}export function disableBranch(_0x2c413a){const _0x388e9a=_0x50281e,_0x5052f0={'eqtzN':function(_0x2844e3){return _0x2844e3();}},_0x3b4f04=_0x5052f0[_0x388e9a(0x1e0)](loadCache);delete _0x3b4f04[_0x388e9a(0x1fe)][_0x2c413a],saveCache(_0x3b4f04);}export function isBranchEnabled(_0x12d98a){const _0x3d8d72=loadCache();return _0x3d8d72['branches'][_0x12d98a]===!![];}function getOrCreateSession(_0x4dde77,_0x264921){const _0x1fc4ba=_0x50281e;return!_0x4dde77['sessions'][_0x264921]&&(_0x4dde77[_0x1fc4ba(0x209)][_0x264921]={}),_0x4dde77[_0x1fc4ba(0x209)][_0x264921];}export function enableSession(_0x236be5){const _0x57c59c=_0x50281e,_0x1e712b={'pFISw':function(_0x3c4cd5){return _0x3c4cd5();},'kXCzM':function(_0x2c54b1,_0x43c67c,_0x41c17f){return _0x2c54b1(_0x43c67c,_0x41c17f);},'OGBvb':function(_0x150c3d,_0x10db45){return _0x150c3d!==_0x10db45;},'BTJzZ':_0x57c59c(0x1fd),'EVCWg':function(_0x106f42,_0x5b13d2){return _0x106f42(_0x5b13d2);}},_0x15742a=_0x1e712b['pFISw'](loadCache),_0x102b32=_0x1e712b['kXCzM'](getOrCreateSession,_0x15742a,_0x236be5);_0x102b32[_0x57c59c(0x201)]=!![];const _0x32d3ef=getCurrentBranch();_0x32d3ef&&_0x1e712b['OGBvb'](_0x32d3ef,_0x1e712b['BTJzZ'])&&_0x32d3ef!==_0x57c59c(0x202)&&(_0x15742a[_0x57c59c(0x1fe)][_0x32d3ef]=!![],_0x102b32['currentBranch']=_0x32d3ef),_0x1e712b['EVCWg'](saveCache,_0x15742a);}export function isSessionEnabled(_0x346da4){const _0x51fdec=_0x50281e,_0x279b52={'UGhJr':function(_0x51376a){return _0x51376a();},'lGVZF':function(_0x46a303,_0x16e230){return _0x46a303===_0x16e230;},'jGtsT':_0x51fdec(0x1fd),'oWyhh':_0x51fdec(0x202),'QPGhn':function(_0x4988d7,_0x909fd5){return _0x4988d7===_0x909fd5;}},_0x1fc639=loadCache(),_0x2543de=_0x279b52[_0x51fdec(0x1dd)](getCurrentBranch);if(!_0x2543de||_0x279b52[_0x51fdec(0x1e9)](_0x2543de,_0x279b52['jGtsT'])||_0x279b52['lGVZF'](_0x2543de,_0x279b52['oWyhh']))return _0x279b52['QPGhn'](_0x1fc639[_0x51fdec(0x209)][_0x346da4]?.['enabled'],!![]);const _0xd6421d=_0x1fc639[_0x51fdec(0x1fe)][_0x2543de]===!![],_0x400d9a=_0x1fc639[_0x51fdec(0x209)][_0x346da4]?.[_0x51fdec(0x201)]===!![];return _0xd6421d||_0x400d9a;}export function disableSession(_0x3a0a58){const _0xbdb7a9=_0x50281e,_0x23c5e7={'ZgVmH':function(_0x4fb99a,_0x35a0a0,_0x4a797e){return _0x4fb99a(_0x35a0a0,_0x4a797e);}},_0x23ff5e=loadCache(),_0x2bafaa=_0x23c5e7[_0xbdb7a9(0x200)](getOrCreateSession,_0x23ff5e,_0x3a0a58);_0x2bafaa[_0xbdb7a9(0x201)]=![],saveCache(_0x23ff5e);}export function updateBranchTracking(_0x3c68f1){const _0x44215e=_0x50281e,_0x2ae1ef={'WoCsr':function(_0x5a14c9){return _0x5a14c9();},'oUnXu':function(_0x4ff471){return _0x4ff471();},'MdhVT':function(_0x1bacf5,_0x147a1c){return _0x1bacf5===_0x147a1c;},'TsNAI':function(_0x4c2572,_0x426ebd){return _0x4c2572!==_0x426ebd;}},_0x149f58=_0x2ae1ef['WoCsr'](loadCache),_0x53df75=_0x149f58[_0x44215e(0x209)][_0x3c68f1];if(!_0x53df75?.[_0x44215e(0x201)])return;const _0xd67cb6=_0x2ae1ef[_0x44215e(0x1f0)](getCurrentBranch);if(!_0xd67cb6||_0xd67cb6==='main'||_0x2ae1ef['MdhVT'](_0xd67cb6,_0x44215e(0x202)))return;_0x2ae1ef['TsNAI'](_0x53df75['currentBranch'],_0xd67cb6)&&(_0x149f58[_0x44215e(0x1fe)][_0xd67cb6]=!![],_0x53df75[_0x44215e(0x1e2)]=_0xd67cb6,saveCache(_0x149f58));}export function initBranchTracking(_0x45bc6d){const _0x21f4a4=_0x50281e,_0xfb4d40={'dRYwJ':function(_0x371d29){return _0x371d29();},'oRStT':function(_0x5a2213,_0x2fa698){return _0x5a2213===_0x2fa698;},'NWiqI':function(_0x438199,_0x30da13,_0x5db293){return _0x438199(_0x30da13,_0x5db293);},'WLJVQ':function(_0x1778a5,_0x2bd1d7){return _0x1778a5(_0x2bd1d7);}},_0x5b0f41=_0xfb4d40['dRYwJ'](loadCache),_0x571b4b=getCurrentBranch();if(!_0x571b4b||_0xfb4d40[_0x21f4a4(0x1f1)](_0x571b4b,'main')||_0x571b4b===_0x21f4a4(0x202))return;if(_0x5b0f41['branches'][_0x571b4b]===!![]){const _0x29ebb9=_0xfb4d40['NWiqI'](getOrCreateSession,_0x5b0f41,_0x45bc6d);_0x29ebb9[_0x21f4a4(0x201)]=!![],_0x29ebb9['currentBranch']=_0x571b4b,_0xfb4d40[_0x21f4a4(0x1f7)](saveCache,_0x5b0f41);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x472945){const _0x48aa9f=_0x50281e,_0x587eba={'zdcxc':function(_0xa1da3f,_0xe9a58b){return _0xa1da3f(_0xe9a58b);}},_0x4d6de1=loadCache(),_0x303358=_0x4d6de1[_0x48aa9f(0x209)][_0x472945];_0x303358?.[_0x48aa9f(0x201)]&&(_0x4d6de1['lastEnabledSessionClearedAt']=Date[_0x48aa9f(0x1f3)](),_0x587eba['zdcxc'](saveCache,_0x4d6de1));}export function shouldAutoEnableAfterClear(_0x54d211){const _0x49880e=_0x50281e,_0x48cff6={'tdoJU':function(_0x58ff11,_0x3a88cc){return _0x58ff11!==_0x3a88cc;}};if(_0x48cff6['tdoJU'](_0x54d211,'clear'))return![];const _0x6355dd=loadCache(),_0x10037a=_0x6355dd['lastEnabledSessionClearedAt'];if(!_0x10037a)return![];const _0x16869f=Date[_0x49880e(0x1f3)]()-_0x10037a;return _0x16869f<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x57cf4a){const _0x638bc=_0x50281e,_0x55c53f={'Itlph':function(_0x18cd4d){return _0x18cd4d();},'dOgmx':function(_0x3bd5d1,_0x4c6d12){return _0x3bd5d1!==_0x4c6d12;},'XKjbt':function(_0x5ae948,_0x2919a5){return _0x5ae948(_0x2919a5);}},_0x473b3a=_0x55c53f['Itlph'](loadCache),_0x775f1e=getOrCreateSession(_0x473b3a,_0x57cf4a);_0x775f1e['enabled']=!![];const _0x19bbb1=getCurrentBranch();_0x19bbb1&&_0x19bbb1!==_0x638bc(0x1fd)&&_0x55c53f[_0x638bc(0x1f2)](_0x19bbb1,_0x638bc(0x202))&&(_0x775f1e['currentBranch']=_0x19bbb1),delete _0x473b3a[_0x638bc(0x1df)],_0x55c53f['XKjbt'](saveCache,_0x473b3a);}function _0x2af3(){const _0x4cb36f=['utf-8','trim','UGhJr','43118lyczrK','lastEnabledSessionClearedAt','eqtzN','1167425YzvNWV','currentBranch','JyIWh','lhjfg','featureId','DLEAZ','HEAD','DRJkf','lGVZF','git\x20rev-parse\x20--abbrev-ref\x20HEAD','lastStopReminderAt','parse','oqDCR','registeredAt','409830eVlsab','oUnXu','oRStT','dOgmx','now','homedir','wgujO','DdFOe','WLJVQ','259392CQdwFd','DVgkB','pipe','9cTYXgk','writeFileSync','main','branches','toISOString','ZgVmH','enabled','master','mkdirSync','13pWOTYJ','existsSync','1607076PhhMnh','join','1251873sYqQzh','sessions','5387752BDuxHQ'];_0x2af3=function(){return _0x4cb36f;};return _0x2af3();}export function registerSession(_0x34fb2f,_0x523e61){const _0x4c8162=_0x50281e,_0x45bedb={'eocpX':function(_0x50ffd1){return _0x50ffd1();}},_0x2cd20e=_0x45bedb['eocpX'](loadCache),_0x48246a=getOrCreateSession(_0x2cd20e,_0x34fb2f);_0x48246a[_0x4c8162(0x1e5)]=_0x523e61,_0x48246a[_0x4c8162(0x1ee)]=new Date()[_0x4c8162(0x1ff)](),saveCache(_0x2cd20e);}export function getSessionEntry(_0x22f694){const _0x1148e8=_0x50281e,_0x39c340={'DLEAZ':function(_0x5d2375){return _0x5d2375();}},_0x32d703=_0x39c340[_0x1148e8(0x1e6)](loadCache),_0x547e61=_0x32d703['sessions'][_0x22f694];if(_0x547e61?.[_0x1148e8(0x1e5)]&&_0x547e61?.['registeredAt'])return{'featureId':_0x547e61[_0x1148e8(0x1e5)],'registeredAt':_0x547e61['registeredAt']};return null;}export function unregisterSession(_0x2eab18){const _0x26eba6=_0x50281e,_0x27526b={'XHvtQ':function(_0x7e9acf){return _0x7e9acf();},'DRJkf':function(_0x5f48af,_0xf1e76c){return _0x5f48af(_0xf1e76c);}},_0x5b95f6=_0x27526b['XHvtQ'](loadCache),_0x2f9161=_0x5b95f6['sessions'][_0x2eab18];_0x2f9161&&(delete _0x2f9161['featureId'],delete _0x2f9161[_0x26eba6(0x1ee)],_0x27526b[_0x26eba6(0x1e8)](saveCache,_0x5b95f6));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0xe117f0){const _0x2db93b=_0x50281e,_0x5f3a11={'ulrlu':function(_0x10c0fd,_0x3e6fd4,_0x52bd3b){return _0x10c0fd(_0x3e6fd4,_0x52bd3b);},'ZuzNT':function(_0x247a11,_0x2eddba){return _0x247a11>=_0x2eddba;},'IGEVG':function(_0x250235,_0x203d6b){return _0x250235(_0x203d6b);}},_0xa6c421=loadCache(),_0xafab76=_0x5f3a11['ulrlu'](getOrCreateSession,_0xa6c421,_0xe117f0),_0xb1e98e=_0xafab76['lastPlanReminderAt']||0x0,_0x13add0=Date[_0x2db93b(0x1f3)]();if(_0x5f3a11['ZuzNT'](_0x13add0-_0xb1e98e,PLAN_REMINDER_INTERVAL_MS))return _0xafab76['lastPlanReminderAt']=_0x13add0,_0x5f3a11['IGEVG'](saveCache,_0xa6c421),!![];return![];}export function shouldShowStopReminder(_0x3d02c){const _0x2f0cfb=_0x50281e,_0x27d893={'YJdrO':function(_0xbff451,_0x5986e4){return _0xbff451>=_0x5986e4;}},_0x49811c=loadCache(),_0x1fc2af=getOrCreateSession(_0x49811c,_0x3d02c),_0x35258b=_0x1fc2af[_0x2f0cfb(0x1eb)]||0x0,_0x2d20c2=Date['now']();if(_0x27d893['YJdrO'](_0x2d20c2-_0x35258b,STOP_REMINDER_INTERVAL_MS))return _0x1fc2af[_0x2f0cfb(0x1eb)]=_0x2d20c2,saveCache(_0x49811c),!![];return![];}export function hasSessionBeenPrompted(_0x48f3f6){const _0x53d418=_0x50281e,_0x175c85={'VNEKb':function(_0x5428ff){return _0x5428ff();},'hbLdx':function(_0x40061f,_0x59799e){return _0x40061f===_0x59799e;}},_0xc8e635=_0x175c85['VNEKb'](loadCache);return _0x175c85['hbLdx'](_0xc8e635[_0x53d418(0x209)][_0x48f3f6]?.['prompted'],!![]);}export function markSessionPrompted(_0x591d6c){const _0x4a5420=loadCache(),_0x4b94f3=getOrCreateSession(_0x4a5420,_0x591d6c);_0x4b94f3['prompted']=!![],saveCache(_0x4a5420);}function _0x32b1(_0x2a7f3a,_0x5918c3){_0x2a7f3a=_0x2a7f3a-0x1dd;const _0x2af300=_0x2af3();let _0x32b1a3=_0x2af300[_0x2a7f3a];return _0x32b1a3;}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 _0x1a733a=_0x2969;(function(_0x525da8,_0x310345){const _0x249d2b=_0x2969,_0x2db999=_0x525da8();while(!![]){try{const _0x3c40c7=parseInt(_0x249d2b(0x18d))/0x1+-parseInt(_0x249d2b(0x1ca))/0x2*(parseInt(_0x249d2b(0x1ae))/0x3)+-parseInt(_0x249d2b(0x180))/0x4*(-parseInt(_0x249d2b(0x1a2))/0x5)+parseInt(_0x249d2b(0x1cb))/0x6*(parseInt(_0x249d2b(0x1e4))/0x7)+parseInt(_0x249d2b(0x1ce))/0x8+parseInt(_0x249d2b(0x1dd))/0x9*(-parseInt(_0x249d2b(0x179))/0xa)+-parseInt(_0x249d2b(0x1a3))/0xb;if(_0x3c40c7===_0x310345)break;else _0x2db999['push'](_0x2db999['shift']());}catch(_0xab094f){_0x2db999['push'](_0x2db999['shift']());}}}(_0x322d,0xa5057));import{readFile,writeFile,mkdir,unlink}from'fs/promises';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';function _0x322d(){const _0x1b162a=['iUulg','lvoPx','vIpCt','stagehand','xyLLi','launchOptions','3CuCnWW','kZXuI','ignoreHTTPSErrors','LLjdx','eSWox','ebUxp','sqeNu','join','configPath','indexOf','SSAAD','endsWith','forWrite','ByiKT','userAgent','env','uRews','xTLlJ','chromium','.json','XQClX','now','ranger-auth-','wTZKP','args','allow','ywAuY','ZeKsJ','885680DXljVI','66VFsTTK','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','cdpEndpoint','5437800bpIwIg','includes','install','contextOptions','warn','safeMode','clipboard-read','storageState','length','map','wAUQL','iWItJ','entries','Wtaxw','object','349686AvWqJf','catch','message','playwright-cli','EvNKZ','sessions','gyuXt','663929mffxlG','HWyTC','path','tyQKQ','browser','local','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','auth.json.enc','location','allowInsecureLocalhost','isArray','KfvOE','MtirL','all','280mehdlb','file','skpBX','PsLws','-cli','JAVlc','core','32QBQzLP','startsWith','getuid','vision','rangerDir','settings.json','--allow-running-insecure-content','--disable-setuid-sandbox','string','vxYkl','header','qdwIY','--allow-insecure-localhost','620605uObCbY','aBqpw','legacy','wcIpk','kgugp','--no-sandbox','OGtIg','zDiRY','kYeiO','fromEntries','pdf','ZZxxT','YmDzN','xgzFv','SaBRg','boolean','Environment\x20variable\x20','setupHeaders','SkGLz','filter','auth.json','8105GsIkSS','1649296XJlRSP','SYIza','headless','SZOPe','\x22\x20to\x20legacy\x20path\x20'];_0x322d=function(){return _0x1b162a;};return _0x322d();}import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x51dd6e,_0x473df5){const _0x103bb2=_0x2969,_0x7eed20={'FCvgY':function(_0x2878c2,_0x3d296b,_0x15a976,_0x41b2d4){return _0x2878c2(_0x3d296b,_0x15a976,_0x41b2d4);},'XQClX':'local','GEdyw':function(_0xfdc163,_0x310cfe){return _0xfdc163(_0x310cfe);},'ntFhJ':function(_0x49f357,_0x227380){return _0x49f357!==_0x227380;},'SkGLz':function(_0x4dfe08,_0x4fe127){return _0x4dfe08(_0x4fe127);}},_0x5dc42c=_0x7eed20['FCvgY'](join,_0x473df5,'ci',_0x51dd6e),_0x3dc509=join(_0x473df5,_0x7eed20[_0x103bb2(0x1c2)],_0x51dd6e),_0x24f1cd=join(_0x473df5,_0x51dd6e),_0x117cec=join(_0x473df5,_0x103bb2(0x170)),_0x4a9473=join(_0x473df5,'ci');if(_0x7eed20['GEdyw'](existsSync,_0x5dc42c))return _0x5dc42c;if(existsSync(_0x3dc509))return _0x3dc509;if(existsSync(_0x24f1cd)&&(_0x7eed20['ntFhJ'](_0x24f1cd,_0x117cec)&&_0x7eed20['ntFhJ'](_0x24f1cd,_0x4a9473)?!![]:_0x7eed20[_0x103bb2(0x19f)](hasLegacyProfileFiles,_0x24f1cd)))return _0x24f1cd;return null;}export function getEnvDir(_0x5e64c6,_0x53380d={}){const _0x58e44b=_0x2969,_0x2d19a9={'HWyTC':function(_0x582ba6,_0x597834,_0x13f038){return _0x582ba6(_0x597834,_0x13f038);},'eJzXU':function(_0x1d3c29,_0x12211b){return _0x1d3c29!==_0x12211b;},'QrvFy':function(_0x48b837,_0x5aef10){return _0x48b837(_0x5aef10);},'ASdJX':function(_0x2bff00,_0x533e98,_0x2370e2,_0x2e438c){return _0x2bff00(_0x533e98,_0x2370e2,_0x2e438c);},'UdVDP':'local'},_0x52f7ff=getRangerDir(),_0x5a5c3e=findEnvInRoot(_0x5e64c6,_0x52f7ff);if(_0x5a5c3e){if(_0x53380d['forWrite']&&isLegacyEnvPath(_0x5a5c3e))throw _0x2d19a9[_0x58e44b(0x1e5)](legacyWriteError,_0x5e64c6,_0x5a5c3e);return _0x5a5c3e;}const _0x2bdc0a=getRangerHomeDir();if(_0x2d19a9['eJzXU'](_0x2bdc0a,_0x52f7ff)){const _0x2c6e18=findEnvInRoot(_0x5e64c6,_0x2bdc0a);if(_0x2c6e18){if(_0x53380d[_0x58e44b(0x1ba)]&&_0x2d19a9['QrvFy'](isLegacyEnvPath,_0x2c6e18))throw _0x2d19a9['HWyTC'](legacyWriteError,_0x5e64c6,_0x2c6e18);return _0x2c6e18;}}const _0x6f1d1f=_0x2d19a9['ASdJX'](join,_0x2bdc0a,_0x2d19a9['UdVDP'],_0x5e64c6);if(_0x53380d[_0x58e44b(0x1ba)])throw legacyWriteError(_0x5e64c6,_0x6f1d1f);return _0x6f1d1f;}function isLegacyEnvPath(_0x166a71){const _0x555dba=_0x2969,_0x4f3a17={'uKjow':function(_0x163a02,_0x2934c6){return _0x163a02===_0x2934c6;}},_0x1a5e21=getRangerDir(),_0x2d14eb=getRangerHomeDir();for(const _0x51669f of new Set([_0x1a5e21,_0x2d14eb])){const _0x50a843=_0x51669f[_0x555dba(0x1b9)]('/')?_0x51669f:_0x51669f+'/';if(_0x4f3a17['uKjow'](_0x166a71,_0x51669f)||_0x166a71[_0x555dba(0x181)](_0x50a843))return!![];}return![];}function legacyWriteError(_0x24e51d,_0x4dcc7e){const _0x124ce4=_0x2969,_0x5aef8e={'skpBX':function(_0x31fc21,_0x4d026c){return _0x31fc21+_0x4d026c;}};return new Error(_0x5aef8e[_0x124ce4(0x17b)]('Refusing\x20to\x20write\x20profile\x20\x22'+_0x24e51d+_0x124ce4(0x1a7)+_0x4dcc7e+'.\x0a'+_0x124ce4(0x1cc),'\x20\x20ranger\x20profile\x20add\x20<name>\x0a')+_0x124ce4(0x171));}export function findExistingEnv(_0x179fe5,_0x210b82){const _0x1481f4=_0x2969,_0x3c7ad3={'wTZKP':_0x1481f4(0x18f),'VtXAF':function(_0x40765d,_0x3f7859,_0x1b5d6f){return _0x40765d(_0x3f7859,_0x1b5d6f);},'UmRNS':_0x1481f4(0x170),'aBqpw':function(_0x40124c,_0xdb323d){return _0x40124c(_0xdb323d);},'OGtIg':function(_0x286eaa,_0x39c99c){return _0x286eaa(_0x39c99c);}},_0xa7a4a4=_0x210b82?.[_0x1481f4(0x184)],_0x493c05=_0xa7a4a4?[_0xa7a4a4]:[getRangerDir(),getRangerHomeDir()]['filter']((_0x34b29e,_0x1cc5c3,_0x3871f2)=>_0x3871f2[_0x1481f4(0x1b7)](_0x34b29e)===_0x1cc5c3),_0x465064=_0x210b82?.['locations']??['ci',_0x1481f4(0x170),_0x3c7ad3['wTZKP']];for(const _0xf5e537 of _0x493c05){const _0x134536=join(_0xf5e537,'local'),_0x296713=_0x3c7ad3['VtXAF'](join,_0xf5e537,'ci'),_0x215c35=[{'location':'ci','path':join(_0xf5e537,'ci',_0x179fe5)},{'location':_0x3c7ad3['UmRNS'],'path':join(_0xf5e537,_0x1481f4(0x170),_0x179fe5)},{'location':_0x3c7ad3[_0x1481f4(0x1c5)],'path':join(_0xf5e537,_0x179fe5)}];for(const _0x596bec of _0x215c35){if(_0x465064[_0x1481f4(0x1cf)](_0x596bec[_0x1481f4(0x173)])&&_0x3c7ad3[_0x1481f4(0x18e)](existsSync,_0x596bec['path'])){if(_0x596bec[_0x1481f4(0x173)]==='legacy'&&(_0x596bec[_0x1481f4(0x1e6)]===_0x134536||_0x596bec[_0x1481f4(0x1e6)]===_0x296713)&&!_0x3c7ad3[_0x1481f4(0x193)](hasLegacyProfileFiles,_0x596bec['path']))continue;return{'path':_0x596bec['path'],'location':_0x596bec[_0x1481f4(0x173)]};}}}return null;}function hasLegacyProfileFiles(_0x58b5b1){const _0x317e03=_0x2969,_0xe2c20f={'aUKmM':function(_0x307358,_0x21fc8a){return _0x307358(_0x21fc8a);},'kZXuI':'auth.json'};return _0xe2c20f['aUKmM'](existsSync,join(_0x58b5b1,_0x317e03(0x185)))||_0xe2c20f['aUKmM'](existsSync,join(_0x58b5b1,_0xe2c20f[_0x317e03(0x1af)]))||existsSync(join(_0x58b5b1,_0x317e03(0x172)));}export function isEnvCi(_0x2cbe45){const _0xa2595f=_0x2969,_0x356002={'SYIza':function(_0x1d2356,_0x45daa8){return _0x1d2356(_0x45daa8);},'ywAuY':function(_0x52a12b,_0x1f1ec6,_0x471d44,_0x4d4406){return _0x52a12b(_0x1f1ec6,_0x471d44,_0x4d4406);},'Wtaxw':function(_0x1c9c11){return _0x1c9c11();}};if(_0x356002[_0xa2595f(0x1a4)](existsSync,_0x356002[_0xa2595f(0x1c8)](join,getRangerDir(),'ci',_0x2cbe45)))return!![];const _0x4f1a35=_0x356002[_0xa2595f(0x1db)](getRangerHomeDir);if(_0x4f1a35!==_0x356002['Wtaxw'](getRangerDir)&&existsSync(join(_0x4f1a35,'ci',_0x2cbe45)))return!![];return![];}export async function cleanupTempFiles(_0x12fd20){const _0x3c9175=_0x2969,_0x3ae7e4={'IiECG':function(_0xb33658,_0x551a31){return _0xb33658!==_0x551a31;},'uRews':'ENOENT'},_0x320aec=[_0x12fd20['tempAuthPath'],_0x12fd20[_0x3c9175(0x1b6)]]['filter'](Boolean);await Promise[_0x3c9175(0x178)](_0x320aec[_0x3c9175(0x1d7)](_0x1c1dce=>unlink(_0x1c1dce)['catch'](_0x2580c7=>{const _0x362652=_0x3c9175;_0x3ae7e4['IiECG'](_0x2580c7['code'],_0x3ae7e4[_0x362652(0x1be)])&&console[_0x362652(0x1d2)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x1c1dce+':',_0x2580c7['message']);})));}export function getSettingsPath(_0x39c92e){const _0x32b080={'pefUk':function(_0x5df16b,_0xf30f4){return _0x5df16b(_0xf30f4);},'YiVpL':'settings.json'};return join(_0x32b080['pefUk'](getEnvDir,_0x39c92e),_0x32b080['YiVpL']);}export async function loadSettings(_0x109bf8){const _0x2c8182=_0x2969,_0x3c4b97={'xTLlJ':function(_0x36f15f,_0x23bfa4){return _0x36f15f(_0x23bfa4);},'ebUxp':function(_0x33d223,_0x11f37a){return _0x33d223(_0x11f37a);},'jizrA':function(_0xc3ced7,_0x10942f,_0x28b5d5){return _0xc3ced7(_0x10942f,_0x28b5d5);},'TcwYe':'utf-8'},_0x411e0d=_0x3c4b97[_0x2c8182(0x1bf)](getSettingsPath,_0x109bf8);if(!_0x3c4b97[_0x2c8182(0x1b3)](existsSync,_0x411e0d))return{};try{const _0x5544ea=await _0x3c4b97['jizrA'](readFile,_0x411e0d,_0x3c4b97['TcwYe']);return JSON['parse'](_0x5544ea);}catch{return{};}}export async function saveSettings(_0x1c8a19,_0x3fc776){const _0x1bce6b=_0x2969,_0xa07d25={'GVbPx':function(_0x4e8f36,_0x252513){return _0x4e8f36(_0x252513);},'eSWox':function(_0x51bce8,_0x1b38dd){return _0x51bce8(_0x1b38dd);},'puUOc':function(_0x2e5ca1,_0x5e9138,_0xbd222f){return _0x2e5ca1(_0x5e9138,_0xbd222f);}},_0x29fd33=getSettingsPath(_0x1c8a19),_0xfbced9=_0xa07d25['GVbPx'](dirname,_0x29fd33);!_0xa07d25[_0x1bce6b(0x1b2)](existsSync,_0xfbced9)&&await _0xa07d25['puUOc'](mkdir,_0xfbced9,{'recursive':!![]}),await writeFile(_0x29fd33,JSON['stringify'](_0x3fc776,null,0x2));}export function resolveEnvVars(_0x39ad7a){const _0x3e6f5d=_0x2969,_0x6f7088={'nrYDj':function(_0x47e51a,_0x65e3aa){return _0x47e51a===_0x65e3aa;},'kgugp':function(_0x14980c,_0x383c6f){return _0x14980c===_0x383c6f;}};if(_0x6f7088['nrYDj'](typeof _0x39ad7a,_0x3e6f5d(0x188)))return _0x39ad7a['replace'](/\$\{(\w+)\}/g,(_0x2aac59,_0xee7f74)=>{const _0x2f3bd9=_0x3e6f5d,_0x3c2468=process[_0x2f3bd9(0x1bd)][_0xee7f74];if(_0x3c2468===undefined)throw new Error(_0x2f3bd9(0x19d)+_0xee7f74+'\x20is\x20not\x20set');return _0x3c2468;});if(Array['isArray'](_0x39ad7a))return _0x39ad7a[_0x3e6f5d(0x1d7)](resolveEnvVars);if(_0x39ad7a&&_0x6f7088[_0x3e6f5d(0x191)](typeof _0x39ad7a,_0x3e6f5d(0x1dc)))return Object[_0x3e6f5d(0x196)](Object[_0x3e6f5d(0x1da)](_0x39ad7a)['map'](([_0x108187,_0xa13f04])=>[_0x108187,resolveEnvVars(_0xa13f04)]));return _0x39ad7a;}const isRecord=_0x4d835e=>typeof _0x4d835e==='object'&&_0x4d835e!==null&&!Array['isArray'](_0x4d835e),asRecord=_0xf486bd=>isRecord(_0xf486bd)?_0xf486bd:undefined,mergeHeaders=(_0x2cfa68,_0x3be29f)=>{const _0x2ca1f3=_0x2969,_0xf10c5b={'mdEYh':function(_0xac4a86,_0x47d55d){return _0xac4a86??_0x47d55d;}},_0x50e544={..._0x2cfa68??{},..._0xf10c5b['mdEYh'](_0x3be29f,{})};return Object['keys'](_0x50e544)[_0x2ca1f3(0x1d6)]?_0x50e544:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=['--disable-web-security',_0x1a733a(0x186),'--unsafely-treat-insecure-origin-as-secure=http://localhost',_0x1a733a(0x18c)];function _0x2969(_0x5edbb4,_0x31437b){_0x5edbb4=_0x5edbb4-0x16e;const _0x322d41=_0x322d();let _0x296966=_0x322d41[_0x5edbb4];return _0x296966;}export function buildBrowserOptionsFromSettings(_0x1b836f,_0x3c0ac9={}){const _0x16b426=_0x1a733a,_0x55133d={'iUulg':function(_0x946307,_0x1c77e9){return _0x946307(_0x1c77e9);},'ceJHu':function(_0x186bbb,_0x14df01){return _0x186bbb===_0x14df01;},'lFAVp':_0x16b426(0x19c),'SaBRg':function(_0x28531c,_0x303053){return _0x28531c===_0x303053;},'ZZxxT':_0x16b426(0x188),'bDbPE':function(_0x56e10a,_0x39a494,_0x4f3333){return _0x56e10a(_0x39a494,_0x4f3333);},'OLGOQ':function(_0x3b4edf,_0x3ab7c5){return _0x3b4edf(_0x3ab7c5);}},_0x448700=asRecord(_0x1b836f[_0x16b426(0x16f)]),_0x451b8c={..._0x55133d[_0x16b426(0x1a8)](asRecord,_0x448700?.[_0x16b426(0x1ad)])??{}};_0x55133d['ceJHu'](typeof _0x3c0ac9['headless'],_0x55133d['lFAVp'])&&(_0x451b8c['headless']=_0x3c0ac9[_0x16b426(0x1a5)]);if(_0x1b836f[_0x16b426(0x1d3)]){const _0xdfad69=_0x451b8c['args']??[],_0x124da6=SAFE_MODE_ARGS['filter'](_0x191673=>!_0xdfad69[_0x16b426(0x1cf)](_0x191673));_0x451b8c[_0x16b426(0x1c6)]=[..._0xdfad69,..._0x124da6];}if(_0x1b836f[_0x16b426(0x174)]){const _0x56b832=_0x451b8c[_0x16b426(0x1c6)]??[],_0x187233=ALLOW_LOCALHOST_ARGS[_0x16b426(0x1a0)](_0x11d626=>!_0x56b832['includes'](_0x11d626));_0x451b8c['args']=[..._0x56b832,..._0x187233];}const _0x644db1={...asRecord(_0x448700?.[_0x16b426(0x1d1)])??{}};_0x644db1[_0x16b426(0x1b0)]=!![];_0x55133d[_0x16b426(0x19b)](typeof _0x1b836f[_0x16b426(0x1bc)],_0x55133d[_0x16b426(0x198)])&&(_0x644db1[_0x16b426(0x1bc)]=_0x1b836f[_0x16b426(0x1bc)]);const _0x21bce2=_0x55133d['bDbPE'](mergeHeaders,_0x55133d['OLGOQ'](asRecord,_0x644db1['extraHTTPHeaders']),asRecord(_0x1b836f['headers']));return _0x21bce2?_0x644db1['extraHTTPHeaders']=_0x21bce2:delete _0x644db1['extraHTTPHeaders'],_0x3c0ac9['storageStatePath']&&(_0x644db1['storageState']=_0x3c0ac9['storageStatePath']),{'launchOptions':_0x451b8c,'contextOptions':_0x644db1};}export async function resolveProfileStorageState(_0x440c9d){const _0x4cc2c5=_0x1a733a,_0x2ad800={'lvoPx':function(_0xc359e6,_0x2f23ef){return _0xc359e6(_0x2f23ef);}};return resolveLocalAuthPath(_0x2ad800[_0x4cc2c5(0x1a9)](getEnvDir,_0x440c9d));}async function resolveLocalAuthPath(_0x4f7d1a){const _0x4702b8=_0x1a733a,_0x103472={'QSkff':function(_0x202e5a,_0xfbb67d,_0x4c1370){return _0x202e5a(_0xfbb67d,_0x4c1370);},'sqeNu':function(_0x52e0fd,_0x22cc3b){return _0x52e0fd(_0x22cc3b);},'xIsvs':function(_0x4b758b){return _0x4b758b();},'wGSAt':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','FdFyg':function(_0x3f984a,_0x298750,_0x283b1e){return _0x3f984a(_0x298750,_0x283b1e);},'nJxBe':function(_0x1dc94d){return _0x1dc94d();},'GCYUI':function(_0x27f329,_0x1dd34f){return _0x27f329 instanceof _0x1dd34f;}},_0x103dbf=_0x103472['QSkff'](join,_0x4f7d1a,_0x4702b8(0x172)),_0x529cad=join(_0x4f7d1a,_0x4702b8(0x1a1));if(_0x103472[_0x4702b8(0x1b4)](existsSync,_0x103dbf))try{const _0x1d4f98=await _0x103472['xIsvs'](getToken);if(!_0x1d4f98)throw new Error(_0x103472['wGSAt']);const _0x55b49c=await _0x103472[_0x4702b8(0x1b4)](readFile,_0x103dbf),_0x55b0cd=decrypt(_0x55b49c,_0x1d4f98),_0x3c3d35=_0x103472['FdFyg'](join,_0x103472['nJxBe'](tmpdir),_0x4702b8(0x1c4)+Date[_0x4702b8(0x1c3)]()+'.json');return await writeFile(_0x3c3d35,_0x55b0cd),{'storageStatePath':_0x3c3d35,'tempAuthPath':_0x3c3d35};}catch(_0x3e575f){const _0x57a07e=_0x103472['GCYUI'](_0x3e575f,Error)?_0x3e575f[_0x4702b8(0x1df)]:String(_0x3e575f);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x57a07e);}if(existsSync(_0x529cad))return{'storageStatePath':_0x529cad};return{};}export async function buildPlaywrightConfig(_0x3d529c,_0x23e8e9,_0x1e347a,_0x39cda7,_0x4fde62){const _0x10570b=_0x1a733a,_0x10e1d4={'oVzUs':function(_0x2e6dab,_0x5f5a0f,_0x42f6b4,_0x50f2c5,_0x7d1f7a,_0x4d1a64,_0x1bccc4){return _0x2e6dab(_0x5f5a0f,_0x42f6b4,_0x50f2c5,_0x7d1f7a,_0x4d1a64,_0x1bccc4);},'kYPlh':'stagehand','ZLKvs':function(_0x54fbf2,_0x105d7d){return _0x54fbf2(_0x105d7d);},'wcIpk':function(_0x2d0b60,_0x24dd35,_0x455d49,_0x21cc3b,_0x1651b6,_0x2c47ee,_0x278969){return _0x2d0b60(_0x24dd35,_0x455d49,_0x21cc3b,_0x1651b6,_0x2c47ee,_0x278969);}};if(_0x4fde62)return _0x10e1d4['oVzUs'](buildPlaywrightConfigCore,_0x3d529c,_0x4fde62,_0x23e8e9,_0x1e347a,_0x39cda7,_0x10e1d4['kYPlh']);const {storageStatePath:_0x3edfb5,tempAuthPath:_0x2adaa7}=await resolveLocalAuthPath(_0x10e1d4['ZLKvs'](getEnvDir,_0x23e8e9));try{const _0x3f2ef2=await _0x10e1d4[_0x10570b(0x190)](buildPlaywrightConfigCore,_0x3d529c,_0x3edfb5,_0x23e8e9,_0x1e347a,_0x39cda7,_0x10570b(0x1ab));return{..._0x3f2ef2,'tempAuthPath':_0x2adaa7};}catch(_0xf9c68a){_0x2adaa7&&await _0x10e1d4['ZLKvs'](unlink,_0x2adaa7)[_0x10570b(0x1de)](()=>{});throw _0xf9c68a;}}export async function buildPlaywrightConfigCore(_0x49b228,_0x586202,_0x46534c,_0x3a2422,_0xa32d19,_0x4c1d2e=_0x1a733a(0x1ab)){const _0xddb941=_0x1a733a,_0xee2bd1={'wAUQL':function(_0x11cdbe,_0x4f2ce0,_0x13e4db){return _0x11cdbe(_0x4f2ce0,_0x13e4db);},'SBzbl':_0xddb941(0x1d4),'DbHgF':'clipboard-write','IHkcI':function(_0x2ab095){return _0x2ab095();},'iWItJ':function(_0x5cc2e4){return _0x5cc2e4();},'krAxP':_0xddb941(0x17a),'LLjdx':'tabs','aoQtt':_0xddb941(0x197),'JAVlc':function(_0x158aca,_0x223d79){return _0x158aca===_0x223d79;},'kYeiO':'ranger-config','ZeKsJ':function(_0x3b6f82,_0x549b0e){return _0x3b6f82(_0x549b0e);},'vxYkl':function(_0x31d00d,_0xfe31c7){return _0x31d00d===_0xfe31c7;},'WVJzb':_0xddb941(0x1e0),'xgzFv':_0xddb941(0x17d)},_0x30f42b=_0x3a2422||_0xee2bd1['IHkcI'](randomUUID),_0x4ce23e=join(_0xee2bd1[_0xddb941(0x1d9)](getRangerDir),_0xddb941(0x1e2),_0x30f42b),_0x2ca922=Boolean(_0x49b228[_0xddb941(0x1cd)]),_0x4a92b0=_0x2ca922?{'browserName':_0xddb941(0x1c0),'cdpEndpoint':_0x49b228[_0xddb941(0x1cd)]}:((()=>{const _0x28eee7=_0xddb941,{launchOptions:_0x1636f6,contextOptions:_0x16e490}=_0xee2bd1['wAUQL'](buildBrowserOptionsFromSettings,_0x49b228,{'headless':_0xa32d19?![]:_0x49b228['headless']??!![],'storageStatePath':_0x586202});if(process[_0x28eee7(0x182)]?.()===0x0){const _0x2d67e1=['--no-sandbox',_0x28eee7(0x187)],_0x4d7491=_0x1636f6['args']??[],_0x20e8af=_0x2d67e1['filter'](_0x2ea584=>!_0x4d7491[_0x28eee7(0x1cf)](_0x2ea584));_0x1636f6[_0x28eee7(0x1c6)]=[..._0x4d7491,..._0x20e8af];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x1636f6,'contextOptions':{..._0x16e490,'permissions':[_0xee2bd1['SBzbl'],_0xee2bd1['DbHgF']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x3ebd19=_0x4c1d2e==='playwright-cli'?{'browser':_0x4a92b0,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4ce23e,'outputMode':_0xee2bd1['krAxP'],'codegen':'none'}:{'name':_0x46534c,'browser':_0x4a92b0,'capabilities':[_0xddb941(0x17f),_0xee2bd1[_0xddb941(0x1b1)],_0xddb941(0x1d0),_0xee2bd1['aoQtt'],_0xddb941(0x183)],'imageResponses':_0xddb941(0x1c7),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4ce23e};if(!_0x2ca922){const _0x201cc4=_0x3ebd19['browser'],_0x154b60=_0x201cc4[_0xddb941(0x1d1)];if(_0x154b60['userAgent']===undefined)delete _0x154b60['userAgent'];if(_0xee2bd1[_0xddb941(0x17e)](_0x154b60[_0xddb941(0x1d5)],undefined))delete _0x154b60[_0xddb941(0x1d5)];}const _0x58634c=_0xee2bd1['wAUQL'](join,tmpdir(),_0xee2bd1[_0xddb941(0x195)]);!_0xee2bd1[_0xddb941(0x1c9)](existsSync,_0x58634c)&&await _0xee2bd1[_0xddb941(0x1d8)](mkdir,_0x58634c,{'recursive':!![]});const _0x4eef4f=_0xee2bd1[_0xddb941(0x189)](_0x4c1d2e,_0xee2bd1['WVJzb'])?_0xee2bd1[_0xddb941(0x19a)]:'',_0x287584=join(_0x58634c,_0x46534c+'-'+Date[_0xddb941(0x1c3)]()+_0x4eef4f+_0xddb941(0x1c1));return await _0xee2bd1['wAUQL'](writeFile,_0x287584,JSON['stringify'](_0x3ebd19,null,0x2)),{'configPath':_0x287584,'storageStatePath':_0x586202};}export async function buildPlaywrightCliConfig(_0x18f505,_0x1dbc9b,_0x373e49,_0x45a489,_0x2c3e14){const _0x2053b0=_0x1a733a,_0x29cdb4={'lkUFd':function(_0x196acb,_0x3e78e2,_0x2bbce4,_0x132a79,_0x4f593d,_0x3e890c,_0x2a4958){return _0x196acb(_0x3e78e2,_0x2bbce4,_0x132a79,_0x4f593d,_0x3e890c,_0x2a4958);},'JWaCb':'playwright-cli','tyQKQ':function(_0x3c78bf,_0x4d04bb){return _0x3c78bf(_0x4d04bb);}};if(_0x2c3e14)return _0x29cdb4['lkUFd'](buildPlaywrightConfigCore,_0x18f505,_0x2c3e14,_0x1dbc9b,_0x373e49,_0x45a489,_0x29cdb4['JWaCb']);const {storageStatePath:_0x1ec311,tempAuthPath:_0x27b2f6}=await resolveLocalAuthPath(getEnvDir(_0x1dbc9b));try{const _0x363e63=await _0x29cdb4['lkUFd'](buildPlaywrightConfigCore,_0x18f505,_0x1ec311,_0x1dbc9b,_0x373e49,_0x45a489,_0x29cdb4['JWaCb']);return{..._0x363e63,'tempAuthPath':_0x27b2f6};}catch(_0xb6b2f4){_0x27b2f6&&await _0x29cdb4[_0x2053b0(0x16e)](unlink,_0x27b2f6)[_0x2053b0(0x1de)](()=>{});throw _0xb6b2f4;}}export async function buildNovaActCliConfig(_0x135a6d,_0x5040bc,_0x378e10,_0x4635fa,_0x155da0){const _0x50a903=_0x1a733a,_0x5789d5={'KfvOE':function(_0x970c00,_0x1884a1){return _0x970c00(_0x1884a1);},'PsLws':function(_0x56facd){return _0x56facd();},'SZOPe':function(_0x323419,_0x29e8c6,_0x4a0411){return _0x323419(_0x29e8c6,_0x4a0411);},'EvNKZ':'Default','gyuXt':function(_0x4209cf,_0x7598d6){return _0x4209cf===_0x7598d6;}},{storageStatePath:_0x31db6c,tempAuthPath:_0x3b4118}=_0x155da0?{'storageStatePath':_0x155da0,'tempAuthPath':undefined}:await _0x5789d5[_0x50a903(0x176)](resolveLocalAuthPath,getEnvDir(_0x5040bc)),_0x17eaae=_0x378e10||_0x5789d5[_0x50a903(0x17c)](randomUUID),_0xc2efab=join(getRangerDir(),'sessions',_0x17eaae),_0x231ba6=_0x5789d5[_0x50a903(0x1a6)](join,_0xc2efab,'nova-user-data'),_0x22316c=_0x31db6c?join(_0x231ba6,_0x5789d5[_0x50a903(0x1e1)]):undefined,{launchOptions:_0x16cf2b,contextOptions:_0x271683}=buildBrowserOptionsFromSettings(_0x135a6d,{'headless':_0x4635fa?![]:_0x135a6d['headless']??!![],'storageStatePath':_0x31db6c});if(process['getuid']?.()===0x0){const _0x484f42=[_0x50a903(0x192),'--disable-setuid-sandbox'],_0x1b3ecd=_0x16cf2b[_0x50a903(0x1c6)]??[],_0x9f57e2=_0x484f42['filter'](_0x372468=>!_0x1b3ecd['includes'](_0x372468));_0x16cf2b[_0x50a903(0x1c6)]=[..._0x1b3ecd,..._0x9f57e2];}const _0x5ca132=typeof _0x16cf2b['executablePath']===_0x50a903(0x188)?_0x16cf2b['executablePath']:_0x31db6c?chromium['executablePath']():undefined;return{'storageStatePath':_0x31db6c,'tempAuthPath':_0x3b4118,'baseUrl':_0x135a6d['baseUrl'],'headless':Boolean(_0x16cf2b[_0x50a903(0x1a5)]),'userDataDir':_0x231ba6,'browserProfilePath':_0x22316c,'executablePath':_0x5ca132,'launchArgs':Array[_0x50a903(0x175)](_0x16cf2b['args'])?_0x16cf2b[_0x50a903(0x1c6)][_0x50a903(0x1a0)](_0xd4da01=>typeof _0xd4da01===_0x50a903(0x188)):[],'userAgent':_0x5789d5[_0x50a903(0x1e3)](typeof _0x271683['userAgent'],_0x50a903(0x188))?_0x271683[_0x50a903(0x1bc)]:undefined,'extraHTTPHeaders':_0x271683['extraHTTPHeaders'],'allowInsecureLocalhost':Boolean(_0x135a6d[_0x50a903(0x174)]),'safeMode':Boolean(_0x135a6d[_0x50a903(0x1d3)]),'cdpEndpoint':_0x135a6d['cdpEndpoint'],'isCdpMode':_0x5789d5[_0x50a903(0x176)](Boolean,_0x135a6d['cdpEndpoint'])};}export function getNestedValue(_0x32262a,_0x3aa379){const _0x58ad7a=_0x1a733a,_0x4072f6={'zDiRY':function(_0x8abe51,_0x4b938c){return _0x8abe51(_0x4b938c);},'SSAAD':function(_0x3404fc,_0x4ad923){return _0x3404fc===_0x4ad923;},'iFwzW':function(_0x5d4730,_0x35dcb1){return _0x5d4730===_0x35dcb1;},'xyLLi':function(_0x5d7f03,_0x5ec01d){return _0x5d7f03!==_0x5ec01d;},'vIpCt':_0x58ad7a(0x1dc)},_0x102781=_0x4072f6[_0x58ad7a(0x194)](parseKeyPath,_0x3aa379);let _0x285d05=_0x32262a;for(const _0xb5c7d1 of _0x102781){if(_0x4072f6[_0x58ad7a(0x1b8)](_0x285d05,null)||_0x4072f6['iFwzW'](_0x285d05,undefined)||_0x4072f6[_0x58ad7a(0x1ac)](typeof _0x285d05,_0x4072f6[_0x58ad7a(0x1aa)]))return undefined;_0x285d05=_0x285d05[_0xb5c7d1];}return _0x285d05;}export function setNestedValue(_0x2dc097,_0x31332a,_0x4b4124){const _0xbee1dc=_0x1a733a,_0x4b6704={'zAVtC':function(_0x3f0b7c,_0xdd6920){return _0x3f0b7c(_0xdd6920);},'YmDzN':function(_0x33cab9,_0x150f28){return _0x33cab9!==_0x150f28;},'jQjGg':_0xbee1dc(0x1dc)},_0x3a5e8c=_0x4b6704['zAVtC'](parseKeyPath,_0x31332a);let _0x4efeae=_0x2dc097;for(let _0xf97eef=0x0;_0xf97eef<_0x3a5e8c['length']-0x1;_0xf97eef++){const _0x251444=_0x3a5e8c[_0xf97eef];(!(_0x251444 in _0x4efeae)||_0x4b6704[_0xbee1dc(0x199)](typeof _0x4efeae[_0x251444],_0x4b6704['jQjGg']))&&(_0x4efeae[_0x251444]={}),_0x4efeae=_0x4efeae[_0x251444];}_0x4efeae[_0x3a5e8c[_0x3a5e8c['length']-0x1]]=_0x4b4124;}export function deleteNestedValue(_0x12cdf1,_0x517337){const _0x58b101=_0x1a733a,_0x2ef30e={'MtirL':function(_0x26afee,_0x4994d1){return _0x26afee<_0x4994d1;},'AttAO':function(_0x30a307,_0x3bdf1d){return _0x30a307-_0x3bdf1d;},'ByiKT':function(_0x3ba77e,_0x2a6268){return _0x3ba77e!==_0x2a6268;}},_0x27b16e=parseKeyPath(_0x517337);let _0x3d72d4=_0x12cdf1;for(let _0x1128ad=0x0;_0x2ef30e[_0x58b101(0x177)](_0x1128ad,_0x2ef30e['AttAO'](_0x27b16e[_0x58b101(0x1d6)],0x1));_0x1128ad++){if(_0x3d72d4===null||_0x3d72d4===undefined||_0x2ef30e[_0x58b101(0x1bb)](typeof _0x3d72d4,'object'))return![];_0x3d72d4=_0x3d72d4[_0x27b16e[_0x1128ad]];}if(_0x3d72d4===null||_0x3d72d4===undefined||typeof _0x3d72d4!=='object')return![];const _0x2aa5cb=_0x27b16e[_0x27b16e[_0x58b101(0x1d6)]-0x1];if(_0x2aa5cb in _0x3d72d4)return delete _0x3d72d4[_0x2aa5cb],!![];return![];}function parseKeyPath(_0x34a5ac){const _0x4b2ebc=_0x1a733a,_0x245c42={'qdwIY':_0x4b2ebc(0x18a),'IPEBW':'setupHeader'},_0x2c29ed=_0x34a5ac['split']('.');return _0x2c29ed[0x0]===_0x245c42[_0x4b2ebc(0x18b)]&&(_0x2c29ed[0x0]='headers'),_0x2c29ed[0x0]===_0x245c42['IPEBW']&&(_0x2c29ed[0x0]=_0x4b2ebc(0x19e)),_0x2c29ed;}export function formatSettings(_0x467dc5,_0x4b23cf=0x0){const _0x3e2f8b=_0x1a733a,_0x1d3b7e={'RxGJd':function(_0x2be095,_0x328a28){return _0x2be095===_0x328a28;},'jwGwU':function(_0xb3d0e8,_0x4b275a){return _0xb3d0e8!==_0x4b275a;}},_0x1d4d8c=[],_0x777e18='\x20\x20'['repeat'](_0x4b23cf);for(const [_0x1b0a99,_0x270cd7]of Object['entries'](_0x467dc5)){if(_0x1d3b7e['RxGJd'](_0x270cd7,undefined))continue;if(typeof _0x270cd7==='object'&&_0x1d3b7e['jwGwU'](_0x270cd7,null)){_0x1d4d8c['push'](''+_0x777e18+_0x1b0a99+':');for(const [_0x466953,_0x2659ea]of Object[_0x3e2f8b(0x1da)](_0x270cd7)){_0x1d4d8c['push'](_0x777e18+'\x20\x20'+_0x466953+':\x20'+_0x2659ea);}}else _0x1d4d8c['push'](''+_0x777e18+_0x1b0a99+':\x20'+_0x270cd7);}return _0x1d4d8c[_0x3e2f8b(0x1b5)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x5c5b(_0x30e41f,_0x49e67d){_0x30e41f=_0x30e41f-0x156;const _0x1897f2=_0x1897();let _0x5c5b0f=_0x1897f2[_0x30e41f];return _0x5c5b0f;}(function(_0x46e2a1,_0x4d77a2){const _0x3cd7d4=_0x5c5b,_0x1c42a2=_0x46e2a1();while(!![]){try{const _0x2ef937=-parseInt(_0x3cd7d4(0x15a))/0x1*(-parseInt(_0x3cd7d4(0x159))/0x2)+-parseInt(_0x3cd7d4(0x15b))/0x3*(parseInt(_0x3cd7d4(0x15f))/0x4)+-parseInt(_0x3cd7d4(0x15e))/0x5+parseInt(_0x3cd7d4(0x15d))/0x6+parseInt(_0x3cd7d4(0x15c))/0x7+-parseInt(_0x3cd7d4(0x160))/0x8+parseInt(_0x3cd7d4(0x157))/0x9;if(_0x2ef937===_0x4d77a2)break;else _0x1c42a2['push'](_0x1c42a2['shift']());}catch(_0x5e7984){_0x1c42a2['push'](_0x1c42a2['shift']());}}}(_0x1897,0xd8f01));import{readFileSync}from'fs';import{dirname,join}from'path';function _0x1897(){const _0x4d8e62=['6612760eLdFlO','16IBdShE','5891408KwHwKH','gehsC','OhLlk','CFmbD','2548197PxcwoB','xrorw','914tjUVvU','2287fasyMc','74838boUJNS','3090920nRtGSL','7664922GXLiWf'];_0x1897=function(){return _0x4d8e62;};return _0x1897();}import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x505bee){const _0x5f09a5=_0x5c5b,_0x2b6686={'xrorw':'skills','OhLlk':function(_0x1aebc4,_0x1f0917,_0x48a8ca){return _0x1aebc4(_0x1f0917,_0x48a8ca);}},_0x10a93e=join(__dirname,'..','..',_0x2b6686[_0x5f09a5(0x158)]),_0x26a3eb=_0x2b6686[_0x5f09a5(0x162)](join,_0x10a93e,_0x505bee);try{return readFileSync(_0x26a3eb,'utf-8');}catch{return'';}}export function getRangerSkillContent(){const _0x1c984c=_0x5c5b,_0x5539bc={'CFmbD':function(_0x431e5c,_0x58a6e4){return _0x431e5c(_0x58a6e4);},'gehsC':'ranger/SKILL.md'};return _0x5539bc[_0x1c984c(0x156)](readSkillContent,_0x5539bc[_0x1c984c(0x161)]);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x59c169=_0x3eb6;(function(_0x2f4d9d,_0x3cbb5e){const _0x50ae99=_0x3eb6,_0x5aaa3a=_0x2f4d9d();while(!![]){try{const _0x3ebecd=parseInt(_0x50ae99(0x177))/0x1*(parseInt(_0x50ae99(0x17d))/0x2)+parseInt(_0x50ae99(0x16e))/0x3+-parseInt(_0x50ae99(0x16a))/0x4*(parseInt(_0x50ae99(0x160))/0x5)+-parseInt(_0x50ae99(0x169))/0x6+parseInt(_0x50ae99(0x171))/0x7+parseInt(_0x50ae99(0x17c))/0x8+-parseInt(_0x50ae99(0x170))/0x9;if(_0x3ebecd===_0x3cbb5e)break;else _0x5aaa3a['push'](_0x5aaa3a['shift']());}catch(_0x4f1bc6){_0x5aaa3a['push'](_0x5aaa3a['shift']());}}}(_0x2f2a,0xcbc13));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x59c169(0x162)];export const DEPRECATED_SKILLS=[_0x59c169(0x165),'bug-bash',_0x59c169(0x178)];export async function installSkill(_0x56e292,_0x171d09={}){const _0x59e954=_0x59c169,_0x1afed2={'VWtjB':function(_0x51939c,_0x56d429,_0x2f7a52){return _0x51939c(_0x56d429,_0x2f7a52);},'rkZLs':'SKILL.md','FpAuB':function(_0x586c01,_0x17de3c){return _0x586c01(_0x17de3c);},'vJHqO':function(_0x9e8fe9,_0x241ce1){return _0x9e8fe9===_0x241ce1;},'hTqLK':function(_0x9c551c,_0x3b90d3){return _0x9c551c(_0x3b90d3);},'hVThD':function(_0x9ef9cf,_0x38399c,_0x1e4b42){return _0x9ef9cf(_0x38399c,_0x1e4b42);},'QDcOb':'utf-8','gJmPo':function(_0x2e9167,_0x428ca1){return _0x2e9167>_0x428ca1;},'qDaFF':function(_0x3d4db1,_0x260ab6,_0x171f16,_0x20b4ba){return _0x3d4db1(_0x260ab6,_0x171f16,_0x20b4ba);}},{level:level='project',cliVersion:_0x24fce7,platform:platform='claude'}=_0x171d09,_0x50066c=getSourceSkillsDir(),_0x25f569=join(_0x50066c,_0x56e292),_0x33705e=_0x1afed2['VWtjB'](join,_0x50066c,_0x56e292+_0x59e954(0x17a)),_0x23321c=existsSync(_0x25f569)&&statSync(_0x25f569)[_0x59e954(0x16d)]()&&existsSync(join(_0x25f569,_0x1afed2[_0x59e954(0x16c)])),_0x4950ff=_0x1afed2['FpAuB'](existsSync,_0x33705e);if(!_0x23321c&&!_0x4950ff)return console['warn'](_0x59e954(0x17b)+_0x56e292),![];const _0x3a7f7b=_0x1afed2[_0x59e954(0x176)](platform,'opencode')?_0x1afed2[_0x59e954(0x175)](getOpencodeSkillsDir,level):getSkillsDir(level),_0x396c3f=_0x1afed2['VWtjB'](join,_0x3a7f7b,_0x56e292);await _0x1afed2['VWtjB'](mkdir,_0x396c3f,{'recursive':!![]});let _0x1f39ed,_0x45359d=[];if(_0x23321c){const _0x3f0d09=await readdir(_0x25f569),_0x39c218=_0x3f0d09['filter'](_0x1142e5=>_0x1142e5[_0x59e954(0x173)](_0x59e954(0x17a)));for(const _0x4e2ef7 of _0x39c218){const _0x2420f9=_0x1afed2['VWtjB'](join,_0x25f569,_0x4e2ef7),_0x24d1c6=_0x1afed2['VWtjB'](join,_0x396c3f,_0x4e2ef7);await copyFile(_0x2420f9,_0x24d1c6),_0x45359d[_0x59e954(0x174)](_0x4e2ef7);}_0x1f39ed=await readFile(_0x1afed2[_0x59e954(0x16b)](join,_0x25f569,'SKILL.md'),_0x1afed2[_0x59e954(0x17f)]);}else{_0x1f39ed=await _0x1afed2['VWtjB'](readFile,_0x33705e,_0x59e954(0x164));const _0x1d9645=join(_0x396c3f,_0x1afed2['rkZLs']);await writeFile(_0x1d9645,_0x1f39ed,_0x59e954(0x164)),_0x45359d['push'](_0x1afed2['rkZLs']);}const {name:_0x522f42}=parseFrontmatter(_0x1f39ed);return console['log']('\x20\x20Installed\x20skill:\x20'+_0x522f42),console['log']('\x20\x20Location:\x20'+_0x396c3f),_0x1afed2['gJmPo'](_0x45359d[_0x59e954(0x180)],0x1)&&console[_0x59e954(0x16f)](_0x59e954(0x161)+_0x45359d[_0x59e954(0x168)](',\x20')),_0x1afed2[_0x59e954(0x172)](logLocalAgentInstallation,_0x56e292,{'skillDisplayName':_0x522f42,'installLevel':level},_0x24fce7)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x315378=_0x59c169,_0x48b005={'Adbsk':function(_0x2ec9a8,_0x4307e6,_0x3f4d0b,_0x46d059,_0x2bcdbe,_0x4bb8da){return _0x2ec9a8(_0x4307e6,_0x3f4d0b,_0x46d059,_0x2bcdbe,_0x4bb8da);},'lzoij':'skills','nWDii':function(_0x4c7a2a,_0x365210){return _0x4c7a2a(_0x365210);}},_0x2b6159=[join(__dirname,'..','..','skills'),_0x48b005[_0x315378(0x167)](join,__dirname,'..','..','..',_0x48b005['lzoij'])];for(const _0x46084b of _0x2b6159){if(_0x48b005[_0x315378(0x166)](existsSync,_0x46084b))return _0x46084b;}return _0x2b6159[0x0];}function _0x2f2a(){const _0x44f25e=['isDirectory','5006499ivkykz','log','25981866tZvepy','11111800ARUPlS','qDaFF','endsWith','push','hTqLK','vJHqO','1281734UYyVjW','feature-tracker','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','.md','\x20\x20Skill\x20not\x20found:\x20','3285888loJNXF','2ImBNnq','trim','QDcOb','length','1195iJAyjJ','\x20\x20Files:\x20','ranger','match','utf-8','e2e-test-recommender','nWDii','Adbsk','join','1768032dSAYDL','15608miAXao','hVThD','rkZLs'];_0x2f2a=function(){return _0x44f25e;};return _0x2f2a();}function parseFrontmatter(_0x2dde8e){const _0x1b82ac=_0x59c169,_0x2bb384=_0x2dde8e[_0x1b82ac(0x163)](/^---\n([\s\S]+?)\n---/);if(!_0x2bb384)throw new Error('Invalid\x20skill\x20frontmatter');const _0x344fbb=_0x2bb384[0x1],_0x54002a=_0x344fbb[_0x1b82ac(0x163)](/name:\s*(.+)/),_0x1b8fbd=_0x344fbb[_0x1b82ac(0x163)](/description:\s*"?(.+?)"?\n/);return{'name':_0x54002a?.[0x1][_0x1b82ac(0x17e)]()||'','description':_0x1b8fbd?.[0x1][_0x1b82ac(0x17e)]()||''};}function _0x3eb6(_0xef266,_0x370eec){_0xef266=_0xef266-0x160;const _0x2f2abe=_0x2f2a();let _0x3eb69a=_0x2f2abe[_0xef266];return _0x3eb69a;}export async function removeSkill(_0x2724e2,_0x1ffa29){const _0x1d0fbe=_0x59c169,_0x472ad4=getSkillsDir(_0x1ffa29),_0x5a9c97=join(_0x472ad4,_0x2724e2);if(!existsSync(_0x5a9c97))return![];try{return await rm(_0x5a9c97,{'recursive':!![]}),console[_0x1d0fbe(0x16f)]('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x2724e2),!![];}catch{return console['warn'](_0x1d0fbe(0x179)+_0x2724e2),![];}}
|