@ranger-testing/ranger-cli 3.0.1-alpha.d9f4572-27 → 3.0.1-alpha.f6aba6c-32
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/organizationEnvApi.js +1 -0
- 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/rangerwrightCli.js +1 -0
- 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/build/commands/verifyFeatureRangerwrightCli.js +1 -0
- package/package.json +3 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4bbfb2=_0x5464;(function(_0x2437a0,_0x4d4586){const _0x5336d6=_0x5464,_0x515486=_0x2437a0();while(!![]){try{const _0x17596c=-parseInt(_0x5336d6(0x120))/0x1+-parseInt(_0x5336d6(0x11e))/0x2*(parseInt(_0x5336d6(0x138))/0x3)+parseInt(_0x5336d6(0x10d))/0x4+-parseInt(_0x5336d6(0x106))/0x5*(parseInt(_0x5336d6(0x12f))/0x6)+-parseInt(_0x5336d6(0x105))/0x7+-parseInt(_0x5336d6(0x103))/0x8*(-parseInt(_0x5336d6(0x134))/0x9)+-parseInt(_0x5336d6(0x12c))/0xa*(-parseInt(_0x5336d6(0x127))/0xb);if(_0x17596c===_0x4d4586)break;else _0x515486['push'](_0x515486['shift']());}catch(_0x1aeddd){_0x515486['push'](_0x515486['shift']());}}}(_0x38a5,0x4c4b0));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0x4bbfb2(0x11f);function toPlaywrightCliSessionKey(_0x5476e1){const _0x3f1f09=_0x4bbfb2,_0x4da92b={'vSZyW':_0x3f1f09(0x12e)},_0x25f75e=createHash(_0x3f1f09(0x10f))['update'](_0x5476e1)[_0x3f1f09(0x117)](_0x4da92b[_0x3f1f09(0x11d)])['slice'](0x0,0xc);return _0x3f1f09(0x118)+_0x25f75e;}function shellQuote(_0x1e24d2){const _0x2e10e0=_0x4bbfb2;return'\x27'+_0x1e24d2[_0x2e10e0(0x136)](/'/g,'\x27\x5c\x27\x27')+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x2fe3c0){const _0x166c33=_0x4bbfb2;return SAFE_SHELL_TOKEN[_0x166c33(0x121)](_0x2fe3c0)?_0x2fe3c0:shellQuote(_0x2fe3c0);}export function buildPlaywrightCliInvocation(_0x313525,_0x362668,_0x34f06b){const _0x254f93=_0x4bbfb2,_0x4e1bf1={'WziTY':function(_0x13cc68,_0x3f8be2){return _0x13cc68(_0x3f8be2);},'WEpaC':'unknown','hmZae':'npx','UNhIs':function(_0x2ba015,_0x351a77){return _0x2ba015(_0x351a77);},'SsTir':'--config'},_0x489013=_0x4e1bf1[_0x254f93(0x116)](toPlaywrightCliSessionKey,_0x313525),[_0x3ea000=_0x4e1bf1['WEpaC']]=_0x34f06b,_0x275aa4=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x489013,_0x254f93(0x112),_0x362668,..._0x34f06b];return{'command':_0x4e1bf1['hmZae'],'args':_0x275aa4,'shellCommand':['npx',PLAYWRIGHT_CLI_BINARY,_0x254f93(0x108)+_0x4e1bf1[_0x254f93(0x126)](quoteShellArg,_0x489013),_0x4e1bf1['SsTir'],quoteShellArg(_0x362668),..._0x34f06b['map'](quoteShellArg)][_0x254f93(0x119)]('\x20'),'subcommand':_0x3ea000};}function _0x5464(_0x45e105,_0x1d687f){_0x45e105=_0x45e105-0xfd;const _0x38a5a1=_0x38a5();let _0x5464d9=_0x38a5a1[_0x45e105];return _0x5464d9;}export function buildPlaywrightCliCommandPrefix(_0x2dd165,_0x3b2856){const _0xf32007=_0x4bbfb2,_0x538363={'FgyKI':_0xf32007(0x101),'UkHuh':'--config'},_0x16f63d=toPlaywrightCliSessionKey(_0x2dd165);return[_0x538363['FgyKI'],PLAYWRIGHT_CLI_BINARY,_0xf32007(0x108)+quoteShellArg(_0x16f63d),_0x538363['UkHuh'],quoteShellArg(_0x3b2856)][_0xf32007(0x119)]('\x20');}function truncateOutput(_0x523827,_0x30122f=0x7d0){const _0x32505d=_0x4bbfb2;return _0x523827[_0x32505d(0x124)]>_0x30122f?_0x523827['slice'](0x0,_0x30122f)+_0x32505d(0x113):_0x523827;}export async function runPlaywrightCliCommand(_0x52212f){const _0x1c7501=_0x4bbfb2,_0x4fff69={'iMhRN':function(_0x2c96c1,_0x2757aa){return _0x2c96c1===_0x2757aa;},'bLHTq':function(_0xe1b6f1,_0x1c4831){return _0xe1b6f1(_0x1c4831);},'ZKAkV':function(_0x3d8f9f,_0x336f67){return _0x3d8f9f??_0x336f67;},'JkPSX':_0x1c7501(0x107),'jZxvN':function(_0x372e8c,_0xf3e5c6){return _0x372e8c??_0xf3e5c6;},'tNETz':function(_0xf5e974,_0x253463){return _0xf5e974(_0x253463);},'vfWbE':function(_0x5cb026,_0x11c62e){return _0x5cb026(_0x11c62e);},'NhApc':_0x1c7501(0x12b),'zjAvP':function(_0x3eec4b,_0x572885,_0x50ccb3){return _0x3eec4b(_0x572885,_0x50ccb3);},'tZTbB':_0x1c7501(0x102),'dhrOa':_0x1c7501(0x10b),'PQPag':_0x1c7501(0x125),'qFyRZ':function(_0x3958e2,_0x18de2e,_0x3b0352,_0x301f88){return _0x3958e2(_0x18de2e,_0x3b0352,_0x301f88);}},_0x459cba=_0x4fff69[_0x1c7501(0x10c)](buildPlaywrightCliInvocation,_0x52212f[_0x1c7501(0xfd)],_0x52212f['configPath'],_0x52212f[_0x1c7501(0x123)]);return new Promise((_0x1b886c,_0xce338b)=>{const _0x33f4d8=_0x1c7501,_0x2d85b9=spawn(_0x459cba[_0x33f4d8(0x111)],_0x459cba[_0x33f4d8(0x12a)],{'cwd':_0x52212f[_0x33f4d8(0x129)],'env':_0x52212f['env'],'stdio':[_0x33f4d8(0x104),_0x4fff69['NhApc'],'pipe']});let _0x4445c1='',_0x22b775='',_0x5455a7=![];const _0x16895c=_0x52212f['timeoutMs']&&_0x52212f['timeoutMs']>0x0?_0x4fff69[_0x33f4d8(0xff)](setTimeout,()=>{const _0xe07455=_0x33f4d8;_0x5455a7=!![],_0x2d85b9[_0xe07455(0x115)](_0xe07455(0x110)),setTimeout(()=>{try{_0x2d85b9['kill']('SIGKILL');}catch{}},0x3e8);},_0x52212f[_0x33f4d8(0x137)]):null;_0x2d85b9[_0x33f4d8(0x130)]?.['on'](_0x4fff69[_0x33f4d8(0x133)],_0x30b1d3=>{const _0x2465ae=_0x33f4d8;_0x4445c1+=_0x30b1d3[_0x2465ae(0x11b)]();}),_0x2d85b9[_0x33f4d8(0xfe)]?.['on'](_0x4fff69[_0x33f4d8(0x133)],_0x926ea8=>{_0x22b775+=_0x926ea8['toString']();}),_0x2d85b9['on'](_0x4fff69['dhrOa'],_0x4ac2aa=>{if(_0x16895c)clearTimeout(_0x16895c);_0xce338b(_0x4ac2aa);}),_0x2d85b9['on'](_0x4fff69[_0x33f4d8(0x11a)],(_0x50f74b,_0x42653f)=>{const _0x4f33d8=_0x33f4d8;if(_0x16895c)clearTimeout(_0x16895c);if(_0x4fff69[_0x4f33d8(0x11c)](_0x50f74b,0x0)){_0x4fff69['bLHTq'](_0x1b886c,{'stdout':_0x4445c1,'stderr':_0x22b775,'invocation':_0x459cba});return;}const _0x29430d=_0x5455a7?'timed\x20out\x20after\x20'+_0x52212f['timeoutMs']+'ms':_0x4f33d8(0x122)+_0x4fff69['ZKAkV'](_0x50f74b,_0x4fff69[_0x4f33d8(0x132)])+'\x20signal='+_0x4fff69['jZxvN'](_0x42653f,'null');_0x4fff69['tNETz'](_0xce338b,new Error(_0x4f33d8(0x114)+_0x459cba[_0x4f33d8(0x100)]+'\x20'+_0x29430d+'\x0astdout:\x20'+_0x4fff69[_0x4f33d8(0x131)](truncateOutput,_0x4445c1)+_0x4f33d8(0x109)+_0x4fff69['vfWbE'](truncateOutput,_0x22b775)));});});}function _0x38a5(){const _0x522ba6=['close','UNhIs','2974466mHYYca','trim','cwd','args','pipe','60dlXZGM','CFOht','hex','1742358EyRXCG','stdout','vfWbE','JkPSX','tZTbB','3346173QMFMVi','cmd','replace','timeoutMs','1765761IbHtNS','hdNLD','sessionId','stderr','zjAvP','subcommand','npx','data','8Olbldg','ignore','4181317tjRAmv','10KoGybH','null','-s=','\x0astderr:\x20','string','error','qFyRZ','2335068JejSgh','errKp','sha256','SIGTERM','command','--config','...','playwright-cli\x20','kill','WziTY','digest','rg-','join','PQPag','toString','iMhRN','vSZyW','2dJdKKW','@playwright/cli','498800ewtRJk','test','exited\x20with\x20code=','commandArgs','length'];_0x38a5=function(){return _0x522ba6;};return _0x38a5();}export function extractBashCommand(_0x405877){const _0x5041b5=_0x4bbfb2,_0x2e4693={'errKp':_0x5041b5(0x135),'hdNLD':'bash_command','tvhtj':function(_0x596406,_0x227b89){return _0x596406===_0x227b89;},'CFOht':_0x5041b5(0x10a)},_0x41e81b=['command',_0x2e4693[_0x5041b5(0x10e)],'script',_0x2e4693[_0x5041b5(0x139)]];for(const _0x1d94b0 of _0x41e81b){const _0x57ff03=_0x405877[_0x1d94b0];if(_0x2e4693['tvhtj'](typeof _0x57ff03,_0x2e4693[_0x5041b5(0x12d)])&&_0x57ff03['trim']())return _0x57ff03;}const _0xd5b582=Object['values'](_0x405877)['find'](_0x333885=>typeof _0x333885==='string'&&_0x333885[_0x5041b5(0x128)]()[_0x5041b5(0x124)]>0x0);return _0xd5b582??null;}export function parsePlaywrightCliCommand(_0x54a4af){const _0x526068=_0x54a4af['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x526068?.[0x1]??null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x113d(_0x4eda14,_0x2af6f4){_0x4eda14=_0x4eda14-0x11c;const _0x1d3418=_0x1d34();let _0x113d1b=_0x1d3418[_0x4eda14];return _0x113d1b;}const _0x5bb644=_0x113d;function _0x1d34(){const _0x5a5eb8=['5307219mVdVGF','948228DbKvRH','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','5dREgkS','2827NVufom','347347IrxpHj','7819yrcewd','ranger\x20profile\x20add\x20local','93970wVfCQQ','7535946rzsOsk','3977128RylMWL','10744AXkyov','4MgxcMo'];_0x1d34=function(){return _0x5a5eb8;};return _0x1d34();}(function(_0x1dfc89,_0x5846d6){const _0x44b388=_0x113d,_0x4f172b=_0x1dfc89();while(!![]){try{const _0x37b284=parseInt(_0x44b388(0x124))/0x1*(parseInt(_0x44b388(0x11e))/0x2)+-parseInt(_0x44b388(0x120))/0x3+parseInt(_0x44b388(0x11c))/0x4*(-parseInt(_0x44b388(0x122))/0x5)+parseInt(_0x44b388(0x128))/0x6+parseInt(_0x44b388(0x125))/0x7*(-parseInt(_0x44b388(0x11d))/0x8)+-parseInt(_0x44b388(0x11f))/0x9+parseInt(_0x44b388(0x127))/0xa*(parseInt(_0x44b388(0x123))/0xb);if(_0x37b284===_0x5846d6)break;else _0x4f172b['push'](_0x4f172b['shift']());}catch(_0x3d5d20){_0x4f172b['push'](_0x4f172b['shift']());}}}(_0x1d34,0xebb9e));const DEFAULT_PROFILE_COMMAND=_0x5bb644(0x126);export function formatProfileRequiredMessage(_0x1c6e8f){const _0x11dda6=_0x5bb644,_0x5b59c8=_0x1c6e8f?_0x1c6e8f(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x11dda6(0x121)+_0x5b59c8+'.';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3a10(){const _0x2b6af1=['315623lfjYMw','</div>','634532PgKiak','<div\x20class=\x22ranger-banner__message\x22>','FseRO','2730hfzHJV','\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','3070160WCAxBd','\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','7276212JFaXlU','531321MkEumj','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>',';\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','20344nGhrMQ','<div\x20class=\x22ranger-banner__content\x22>','959TCopfd','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','954MjCUFK'];_0x3a10=function(){return _0x2b6af1;};return _0x3a10();}(function(_0x1a42af,_0x37ab24){const _0x155b83=_0x421b,_0x91d2b7=_0x1a42af();while(!![]){try{const _0xa2b34=parseInt(_0x155b83(0x172))/0x1+parseInt(_0x155b83(0x174))/0x2+parseInt(_0x155b83(0x16a))/0x3+-parseInt(_0x155b83(0x179))/0x4+-parseInt(_0x155b83(0x177))/0x5*(parseInt(_0x155b83(0x171))/0x6)+-parseInt(_0x155b83(0x16f))/0x7*(parseInt(_0x155b83(0x16d))/0x8)+parseInt(_0x155b83(0x169))/0x9;if(_0xa2b34===_0x37ab24)break;else _0x91d2b7['push'](_0x91d2b7['shift']());}catch(_0x13294f){_0x91d2b7['push'](_0x91d2b7['shift']());}}}(_0x3a10,0x657e7));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0xb2386b=_0x421b,_0x4a3692={'XRSxn':function(_0x269c1b,_0x402ef7){return _0x269c1b+_0x402ef7;},'atlvy':function(_0x40d028,_0x2a4bd4){return _0x40d028+_0x2a4bd4;},'FseRO':function(_0xabff81,_0x1644f2){return _0xabff81+_0x1644f2;},'cHWJW':_0xb2386b(0x170),'ZCMCt':_0xb2386b(0x175),'QowZy':'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'},_0x4705ce=_0x4a3692['XRSxn'](_0x4a3692['atlvy'](_0x4a3692[_0xb2386b(0x176)](_0x4a3692[_0xb2386b(0x176)](_0xb2386b(0x16e)+_0x4a3692['cHWJW']+_0x4a3692['ZCMCt'],_0xb2386b(0x16b)),'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>')+_0xb2386b(0x173),_0xb2386b(0x173)),_0x4a3692['QowZy']),_0x39d2f9=_0xb2386b(0x17a);return _0xb2386b(0x178)+JSON['stringify'](_0x4705ce)+';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20'+JSON['stringify'](_0x39d2f9)+_0xb2386b(0x16c);})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}function _0x421b(_0x27ca8e,_0x5427eb){_0x27ca8e=_0x27ca8e-0x169;const _0x3a103f=_0x3a10();let _0x421bf6=_0x3a103f[_0x27ca8e];return _0x421bf6;}export async function addProfileSetupBanner(_0x3a243c){await _0x3a243c['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
|
|
@@ -1 +1 @@
|
|
|
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
|
+
(function(_0x37d49d,_0x5f1732){const _0x2bacdf=_0x4355,_0x1a7210=_0x37d49d();while(!![]){try{const _0x40a7be=-parseInt(_0x2bacdf(0x125))/0x1+-parseInt(_0x2bacdf(0x14b))/0x2*(-parseInt(_0x2bacdf(0x14c))/0x3)+parseInt(_0x2bacdf(0x151))/0x4*(parseInt(_0x2bacdf(0x157))/0x5)+-parseInt(_0x2bacdf(0x155))/0x6+parseInt(_0x2bacdf(0x130))/0x7+parseInt(_0x2bacdf(0x142))/0x8*(parseInt(_0x2bacdf(0x144))/0x9)+parseInt(_0x2bacdf(0x150))/0xa*(-parseInt(_0x2bacdf(0x128))/0xb);if(_0x40a7be===_0x5f1732)break;else _0x1a7210['push'](_0x1a7210['shift']());}catch(_0x5e5789){_0x1a7210['push'](_0x1a7210['shift']());}}}(_0x3a95,0x85f1a));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 _0x450e5b=_0x4355,_0x4fda1b={'Nokvt':function(_0x44048d,_0x5a06d6,_0x52cc4c){return _0x44048d(_0x5a06d6,_0x52cc4c);},'mSKJE':function(_0x4683b0){return _0x4683b0();},'pTMNK':'projects.json'};return _0x4fda1b[_0x450e5b(0x13c)](join,_0x4fda1b['mSKJE'](getRangerHomeDir),_0x4fda1b[_0x450e5b(0x137)]);}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x11d298=_0x4355,_0x57434f={'zNxLO':function(_0x27bf49){return _0x27bf49();},'twiOX':function(_0x5e4b8e,_0x61a741,_0x513ec8){return _0x5e4b8e(_0x61a741,_0x513ec8);},'gOVDg':function(_0xa088df,_0x4b992d){return _0xa088df instanceof _0x4b992d;},'mCpqz':function(_0x22e656,_0x1678f2){return _0x22e656(_0x1678f2);},'ESQrL':function(_0x1f0829){return _0x1f0829();},'gLbkx':function(_0xd3577,_0x4abb85){return _0xd3577!==_0x4abb85;},'HnkAO':_0x11d298(0x148),'UFzQc':function(_0x540f3d,_0x13c420){return _0x540f3d===_0x13c420;},'uzeuz':function(_0x4ca03b){return _0x4ca03b();}},_0x307be6=_0x57434f[_0x11d298(0x135)](getProjectsConfigPath);if(!existsSync(_0x307be6))return emptyConfig();let _0x454c02;try{_0x454c02=_0x57434f[_0x11d298(0x13e)](readFileSync,_0x307be6,'utf-8');}catch(_0x51c282){const _0xb5911c=_0x51c282 instanceof Error?_0x51c282[_0x11d298(0x153)]:String(_0x51c282);return console['warn'](_0x11d298(0x132)+_0x307be6+':\x20'+_0xb5911c+_0x11d298(0x12f)),_0x57434f['zNxLO'](emptyConfig);}let _0x229dcb;try{_0x229dcb=JSON['parse'](_0x454c02);}catch(_0x5ec42a){const _0x3b94bf=_0x57434f[_0x11d298(0x140)](_0x5ec42a,Error)?_0x5ec42a[_0x11d298(0x153)]:_0x57434f[_0x11d298(0x127)](String,_0x5ec42a);return console[_0x11d298(0x143)](_0x11d298(0x129)+_0x307be6+_0x11d298(0x145)+_0x3b94bf+').\x20Ignoring\x20local\x20profile\x20overrides.'),_0x57434f['ESQrL'](emptyConfig);}if(!_0x229dcb||_0x57434f['gLbkx'](typeof _0x229dcb,_0x57434f['HnkAO'])||Array['isArray'](_0x229dcb)||_0x229dcb[_0x11d298(0x123)]!==CURRENT_VERSION||typeof _0x229dcb[_0x11d298(0x14e)]!==_0x11d298(0x148)||_0x57434f[_0x11d298(0x14f)](_0x229dcb['projects'],null)||Array['isArray'](_0x229dcb['projects']))return console[_0x11d298(0x143)](_0x11d298(0x129)+_0x307be6+'\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.'),_0x57434f[_0x11d298(0x149)](emptyConfig);return _0x229dcb;}function _0x3a95(){const _0xf26d96=['gOVDg','split','8NYhLJX','warn','8363502aTmZKF','\x20is\x20not\x20valid\x20JSON\x20(','aFrqF','setupHeaders','object','uzeuz','oXadb','1445162dWERaQ','3wNgAio','ThGKd','projects','UFzQc','1910ysZiUT','484niXHFv','gBJTC','message','OJLWq','1866888kKijgO','aPKSA','3735huYvGk','FLfmp','oJcFY','SBCpB','version','settings','623296UUJjoY','dLyej','mCpqz','47157OdBHoj','[ranger]\x20Warning:\x20','gkLaX','SZaUE','oRYkf','profiles','keys','.\x20Ignoring\x20local\x20profile\x20overrides.','3917543xHxIGz','utf-8','[ranger]\x20Warning:\x20failed\x20to\x20read\x20','keyPath\x20is\x20required','iFaya','zNxLO','lastProfile','pTMNK','UJwyC','hDxWS','length','JcEsO','Nokvt','TiwIE','twiOX','entries'];_0x3a95=function(){return _0xf26d96;};return _0x3a95();}export function writeProjectsConfig(_0x187f33){const _0x5e11fa=_0x4355,_0xf98693={'iFaya':function(_0x2f460d,_0x434159){return _0x2f460d(_0x434159);},'oXadb':function(_0x5bb176,_0x3ef884,_0x4cbf5c){return _0x5bb176(_0x3ef884,_0x4cbf5c);},'LHzsI':function(_0x4a43f0,_0x28c03a,_0x58e56b,_0x2cddb8){return _0x4a43f0(_0x28c03a,_0x58e56b,_0x2cddb8);},'OJLWq':function(_0x5c2a02,_0x3bc6cf,_0x5cc1f6){return _0x5c2a02(_0x3bc6cf,_0x5cc1f6);}},_0x144322=getProjectsConfigPath(),_0x3cd74e=_0xf98693[_0x5e11fa(0x134)](dirname,_0x144322);!_0xf98693[_0x5e11fa(0x134)](existsSync,_0x3cd74e)&&_0xf98693[_0x5e11fa(0x14a)](mkdirSync,_0x3cd74e,{'recursive':!![]});const _0xfa5c94=_0x144322+'.'+process['pid']+'.'+Date['now']()+'.tmp',_0x551e1a=JSON['stringify'](_0x187f33,null,0x2)+'\x0a';try{_0xf98693['LHzsI'](writeFileSync,_0xfa5c94,_0x551e1a,{'encoding':_0x5e11fa(0x131),'mode':0x180}),_0xf98693[_0x5e11fa(0x154)](renameSync,_0xfa5c94,_0x144322);}catch(_0x2319d3){try{existsSync(_0xfa5c94)&&_0xf98693[_0x5e11fa(0x134)](unlinkSync,_0xfa5c94);}catch{}throw _0x2319d3;}}export function readProfileOverrides(_0x5e23cf,_0x3f7b54){const _0x47bec5=_0x4355,_0x1b8ba5={'oRYkf':function(_0x412d90){return _0x412d90();}},_0x841fdb=_0x1b8ba5[_0x47bec5(0x12c)](readProjectsConfig),_0xf5c339=_0x841fdb['projects'][_0x5e23cf];if(!_0xf5c339||!_0xf5c339['profiles'])return null;const _0x16d6af=_0xf5c339['profiles'][_0x3f7b54];if(!_0x16d6af||!_0x16d6af['settings'])return null;return _0x16d6af['settings']??null;}export function setProfileOverride(_0xff4bfc,_0x4cee23,_0x275f37,_0x1c5753){const _0xbd9788=_0x4355,_0x5b2498={'SZaUE':function(_0x58c6c0){return _0x58c6c0();},'azPYO':function(_0x573ef1,_0xce678,_0x3aae4d,_0x34ae03){return _0x573ef1(_0xce678,_0x3aae4d,_0x34ae03);}};if(!_0x275f37)throw new Error('keyPath\x20is\x20required');const _0x323e25=_0x5b2498[_0xbd9788(0x12b)](readProjectsConfig),_0xbe455=_0x323e25['projects'][_0xff4bfc]??={},_0x3c9272=_0xbe455[_0xbd9788(0x12d)]??={},_0x266044=_0x3c9272[_0x4cee23]??={},_0x44fefe=_0x266044[_0xbd9788(0x124)]??={};_0x5b2498['azPYO'](setByKeyPath,_0x44fefe,_0x275f37,_0x1c5753),writeProjectsConfig(_0x323e25);}export function unsetProfileOverride(_0x4afd3d,_0x24d035,_0x59df16){const _0x96ed09=_0x4355,_0x25f64a={'UJwyC':_0x96ed09(0x133),'gBJTC':function(_0x1bffd5){return _0x1bffd5();},'hDxWS':function(_0x333f7b,_0x3eb676){return _0x333f7b(_0x3eb676);}};if(!_0x59df16)throw new Error(_0x25f64a[_0x96ed09(0x138)]);const _0xaf7ec1=_0x25f64a[_0x96ed09(0x152)](readProjectsConfig),_0x5350d9=_0xaf7ec1[_0x96ed09(0x14e)][_0x4afd3d];if(!_0x5350d9?.['profiles'])return![];const _0x23a1ef=_0x5350d9[_0x96ed09(0x12d)][_0x24d035];if(!_0x23a1ef?.[_0x96ed09(0x124)])return![];const _0x3b3ef0=deleteByKeyPath(_0x23a1ef['settings'],_0x59df16);if(!_0x3b3ef0)return![];return _0x25f64a[_0x96ed09(0x139)](writeProjectsConfig,_0xaf7ec1),!![];}export function resetProfileOverrides(_0x1b1308,_0x151da2){const _0x431f56=_0x4355,_0x5467fe={'FLfmp':function(_0x3a8125){return _0x3a8125();},'IxVYS':function(_0xfc3a82,_0x8628ab){return _0xfc3a82===_0x8628ab;},'RquJI':function(_0x1921a0,_0xb0e865){return _0x1921a0(_0xb0e865);}},_0x4f22b5=_0x5467fe[_0x431f56(0x158)](readProjectsConfig),_0x34149c=_0x4f22b5['projects'][_0x1b1308];if(!_0x34149c?.['profiles'])return;if(!(_0x151da2 in _0x34149c['profiles']))return;delete _0x34149c['profiles'][_0x151da2],_0x5467fe['IxVYS'](Object['keys'](_0x34149c[_0x431f56(0x12d)])[_0x431f56(0x13a)],0x0)&&(!_0x34149c['lastProfile']?delete _0x4f22b5[_0x431f56(0x14e)][_0x1b1308]:_0x34149c[_0x431f56(0x12d)]={}),_0x5467fe['RquJI'](writeProjectsConfig,_0x4f22b5);}export function readLastProfile(_0x1f9508){const _0x2f274c=_0x4355,_0x4ac2cf={'gkLaX':function(_0x282088){return _0x282088();}},_0x101713=_0x4ac2cf[_0x2f274c(0x12a)](readProjectsConfig),_0x4906ea=_0x101713[_0x2f274c(0x14e)][_0x1f9508];return _0x4906ea?.[_0x2f274c(0x136)]??null;}export function writeLastProfile(_0x56cbff,_0x404862){const _0x41b040=_0x4355,_0x123381={'ynZaQ':function(_0x157dfe){return _0x157dfe();},'wiJeh':function(_0x28e215,_0x38f26e){return _0x28e215(_0x38f26e);}},_0x33c6ff=_0x123381['ynZaQ'](readProjectsConfig),_0x43e2ec=_0x33c6ff[_0x41b040(0x14e)][_0x56cbff]??={};_0x43e2ec[_0x41b040(0x136)]=_0x404862,_0x123381['wiJeh'](writeProjectsConfig,_0x33c6ff);}export function clearLastProfile(_0x3190e6,_0x18e92e){const _0x11c96b=_0x4355,_0x45eab4={'aPKSA':function(_0x551451,_0xa05985){return _0x551451!==_0xa05985;},'JcEsO':function(_0x501f49,_0x4c9bf3){return _0x501f49(_0x4c9bf3);}},_0x155b9b=readProjectsConfig(),_0x29809c=_0x155b9b[_0x11c96b(0x14e)][_0x3190e6];if(!_0x29809c||_0x45eab4[_0x11c96b(0x156)](_0x29809c[_0x11c96b(0x136)],_0x18e92e))return![];return delete _0x29809c['lastProfile'],(!_0x29809c[_0x11c96b(0x12d)]||Object[_0x11c96b(0x12e)](_0x29809c['profiles'])[_0x11c96b(0x13a)]===0x0)&&delete _0x155b9b[_0x11c96b(0x14e)][_0x3190e6],_0x45eab4[_0x11c96b(0x13b)](writeProjectsConfig,_0x155b9b),!![];}export function mergeCloudProfileSettings(_0x69810f,_0x587f23){const _0x49196c=_0x4355,_0x1e0611={'dLyej':function(_0x24436a,_0x413365){return _0x24436a===_0x413365;},'aFrqF':'headers','ThGKd':function(_0x39c7e,_0x216bef){return _0x39c7e(_0x216bef);},'JVSAZ':function(_0x4a5f94,_0xe19864){return _0x4a5f94(_0xe19864);},'NxiJn':function(_0x128dbf,_0x334a0f){return _0x128dbf===_0x334a0f;}},_0x433968={..._0x69810f??{}};if(!_0x587f23)return _0x433968;for(const [_0x4461bb,_0x752cd8]of Object['entries'](_0x587f23)){if(_0x752cd8===undefined)continue;if(_0x1e0611[_0x49196c(0x126)](_0x752cd8,null)){delete _0x433968[_0x4461bb];continue;}if(_0x1e0611[_0x49196c(0x126)](_0x4461bb,_0x1e0611[_0x49196c(0x146)])||_0x4461bb===_0x49196c(0x147)){const _0x7bc589=_0x1e0611[_0x49196c(0x14d)](asRecord,_0x433968[_0x4461bb])??{},_0xf6d48=_0x1e0611['JVSAZ'](asRecord,_0x752cd8);if(!_0xf6d48){_0x433968[_0x4461bb]=_0x752cd8;continue;}const _0x3cc302={..._0x7bc589};for(const [_0x3adfc2,_0x529fcc]of Object[_0x49196c(0x13f)](_0xf6d48)){if(_0x1e0611['NxiJn'](_0x529fcc,null))delete _0x3cc302[_0x3adfc2];else _0x529fcc!==undefined&&(_0x3cc302[_0x3adfc2]=_0x529fcc);}_0x433968[_0x4461bb]=_0x3cc302;continue;}_0x433968[_0x4461bb]=_0x752cd8;}return _0x433968;}function asRecord(_0x243c7f){const _0x583270=_0x4355,_0x1f3379={'tsxSp':function(_0x585d33,_0x5ef2eb){return _0x585d33===_0x5ef2eb;},'TiwIE':'object'};return _0x243c7f&&_0x1f3379['tsxSp'](typeof _0x243c7f,_0x1f3379[_0x583270(0x13d)])&&!Array['isArray'](_0x243c7f)?_0x243c7f:undefined;}function setByKeyPath(_0x1e5863,_0x4f58e1,_0x3a3458){const _0x4ebeb8=_0x4355,_0x40eb55={'syifv':function(_0x259c3c,_0x429ea1){return _0x259c3c-_0x429ea1;}},_0x22fa05=_0x4f58e1[_0x4ebeb8(0x141)]('.');let _0x37800b=_0x1e5863;for(let _0x14306d=0x0;_0x14306d<_0x40eb55['syifv'](_0x22fa05[_0x4ebeb8(0x13a)],0x1);_0x14306d++){const _0x114b6d=_0x22fa05[_0x14306d],_0x113d0f=_0x37800b[_0x114b6d];(!_0x113d0f||typeof _0x113d0f!=='object'||Array['isArray'](_0x113d0f))&&(_0x37800b[_0x114b6d]={}),_0x37800b=_0x37800b[_0x114b6d];}_0x37800b[_0x22fa05[_0x40eb55['syifv'](_0x22fa05['length'],0x1)]]=_0x3a3458;}function _0x4355(_0x36a320,_0x1197f1){_0x36a320=_0x36a320-0x121;const _0x3a9532=_0x3a95();let _0x4355a0=_0x3a9532[_0x36a320];return _0x4355a0;}function deleteByKeyPath(_0x512898,_0x1af318){const _0x75ca21=_0x4355,_0xa63871={'SBCpB':function(_0x36b085,_0x8b800){return _0x36b085<_0x8b800;},'oJcFY':function(_0x3a5e03,_0x1d6298){return _0x3a5e03!==_0x1d6298;},'kbnzC':_0x75ca21(0x148),'bUuhJ':function(_0x3cd9e5,_0x2f9b1a){return _0x3cd9e5-_0x2f9b1a;}},_0x37ea20=_0x1af318['split']('.');let _0x416c4f=_0x512898;for(let _0x42bc70=0x0;_0xa63871[_0x75ca21(0x122)](_0x42bc70,_0x37ea20['length']-0x1);_0x42bc70++){const _0x61c6a7=_0x37ea20[_0x42bc70],_0x5ac786=_0x416c4f[_0x61c6a7];if(!_0x5ac786||_0xa63871[_0x75ca21(0x121)](typeof _0x5ac786,_0xa63871['kbnzC'])||Array['isArray'](_0x5ac786))return![];_0x416c4f=_0x5ac786;}const _0x2ff0e4=_0x37ea20[_0xa63871['bUuhJ'](_0x37ea20[_0x75ca21(0x13a)],0x1)];if(!(_0x2ff0e4 in _0x416c4f))return![];return delete _0x416c4f[_0x2ff0e4],!![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4d68c8,_0x4d3a26){const _0x362b65=_0x1f20,_0x5d9d1f=_0x4d68c8();while(!![]){try{const _0x482447=-parseInt(_0x362b65(0x184))/0x1+parseInt(_0x362b65(0x17e))/0x2*(parseInt(_0x362b65(0x183))/0x3)+-parseInt(_0x362b65(0x17a))/0x4+-parseInt(_0x362b65(0x185))/0x5+-parseInt(_0x362b65(0x17b))/0x6*(-parseInt(_0x362b65(0x186))/0x7)+-parseInt(_0x362b65(0x17f))/0x8*(-parseInt(_0x362b65(0x181))/0x9)+-parseInt(_0x362b65(0x187))/0xa;if(_0x482447===_0x4d3a26)break;else _0x5d9d1f['push'](_0x5d9d1f['shift']());}catch(_0x5ca1f6){_0x5d9d1f['push'](_0x5d9d1f['shift']());}}}(_0x1687,0x3c0ff));import{readFile}from'fs/promises';function _0x1f20(_0x3ff89b,_0x39a5f9){_0x3ff89b=_0x3ff89b-0x179;const _0x168720=_0x1687();let _0x1f205d=_0x168720[_0x3ff89b];return _0x1f205d;}import{existsSync}from'fs';import{join}from'path';function _0x1687(){const _0xa85122=['config.json','10SMDHws','8tLDShn','model','2177469NTshWm','string','163884hFecAY','298331xKdBzj','331185MgOFBC','25697LmtiLS','2689640jwREah','parse','utf-8','54588SpXsgs','618kYQiHv','jnZBi'];_0x1687=function(){return _0xa85122;};return _0x1687();}import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x590a8f=_0x1f20,_0x383ae8={'IfXPj':function(_0x5f0b5a,_0x2ff8d3,_0x10b88c){return _0x5f0b5a(_0x2ff8d3,_0x10b88c);},'jnZBi':function(_0x185dc5){return _0x185dc5();}};return _0x383ae8['IfXPj'](join,_0x383ae8[_0x590a8f(0x17c)](getRangerDir),_0x590a8f(0x17d));}export async function loadRangerConfig(){const _0x31f3d2=_0x1f20,_0x27d1c9={'UTwVL':function(_0x40c0aa){return _0x40c0aa();},'oQFSR':function(_0x4dd6e9,_0x344834,_0x3f8a6f){return _0x4dd6e9(_0x344834,_0x3f8a6f);},'epTAA':'object','BKhjL':_0x31f3d2(0x182),'hqRXb':function(_0x289567,_0x3ffe48){return _0x289567(_0x3ffe48);}},_0x3a8e9d=_0x27d1c9['UTwVL'](getRangerConfigPath);if(!existsSync(_0x3a8e9d))return{};try{const _0x315470=await _0x27d1c9['oQFSR'](readFile,_0x3a8e9d,_0x31f3d2(0x179)),_0x521b08=JSON[_0x31f3d2(0x188)](_0x315470);if(!_0x521b08||typeof _0x521b08!==_0x27d1c9['epTAA']||Array['isArray'](_0x521b08))return{};const _0x5416fd={},_0x58d3fc=_0x521b08['model'];return typeof _0x58d3fc===_0x27d1c9['BKhjL']&&(_0x5416fd[_0x31f3d2(0x180)]=_0x58d3fc),_0x5416fd;}catch(_0x12efec){const _0x4a35e3=_0x12efec instanceof Error?_0x12efec['message']:_0x27d1c9['hqRXb'](String,_0x12efec);return console['warn']('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x3a8e9d+':\x20'+_0x4a35e3),{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2c7600,_0x4c8985){const _0x45ead6=_0x1044,_0x38a08f=_0x2c7600();while(!![]){try{const _0x306e41=parseInt(_0x45ead6(0x1e1))/0x1*(-parseInt(_0x45ead6(0x1d6))/0x2)+-parseInt(_0x45ead6(0x1d7))/0x3+-parseInt(_0x45ead6(0x1da))/0x4*(-parseInt(_0x45ead6(0x1d0))/0x5)+-parseInt(_0x45ead6(0x1df))/0x6+parseInt(_0x45ead6(0x1dd))/0x7*(-parseInt(_0x45ead6(0x1de))/0x8)+parseInt(_0x45ead6(0x1d4))/0x9+parseInt(_0x45ead6(0x1dc))/0xa;if(_0x306e41===_0x4c8985)break;else _0x38a08f['push'](_0x38a08f['shift']());}catch(_0x57e1e1){_0x38a08f['push'](_0x38a08f['shift']());}}}(_0x13db,0x3d52f));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';function _0x1044(_0x464e8c,_0x964e7){_0x464e8c=_0x464e8c-0x1d0;const _0x13db01=_0x13db();let _0x1044d9=_0x13db01[_0x464e8c];return _0x1044d9;}function _0x13db(){const _0x38db07=['5398MczYSg','33861vnIKln','kKuFf','tEzqW','12JaUneE','XFaec','3563530ydQSOj','82439TAJxMC','312GBCHLI','425520SjxVYj','uIqjp','24adGIcU','184645isqbbm','AJpuc','cwd','root','3512961TirPfm','.ranger'];_0x13db=function(){return _0x38db07;};return _0x13db();}export function getRangerRoot(){const _0x16cb78=_0x1044,_0x1c87f1={'kKuFf':function(_0x364011,_0x10b6c6){return _0x364011(_0x10b6c6);},'egryr':function(_0x1f915b,_0x16d8e4){return _0x1f915b(_0x16d8e4);},'XFaec':function(_0x438094){return _0x438094();}};let _0x10ed6e=process['cwd']();const _0x4d0cf9=_0x1c87f1[_0x16cb78(0x1d8)](parse,_0x10ed6e)[_0x16cb78(0x1d3)];while(_0x10ed6e!==_0x4d0cf9){if(_0x1c87f1['kKuFf'](existsSync,join(_0x10ed6e,_0x16cb78(0x1d5))))return _0x10ed6e;_0x10ed6e=_0x1c87f1['egryr'](dirname,_0x10ed6e);}if(_0x1c87f1['kKuFf'](existsSync,join(_0x4d0cf9,'.ranger')))return _0x4d0cf9;const _0x178c09=_0x1c87f1[_0x16cb78(0x1db)](findGitRoot);if(_0x178c09)return _0x178c09;return process[_0x16cb78(0x1d2)]();}export function getRangerDir(){const _0x446e28=_0x1044,_0x44587e={'uIqjp':function(_0x16114d,_0x4b57e8,_0x2f7179){return _0x16114d(_0x4b57e8,_0x2f7179);}};return _0x44587e[_0x446e28(0x1e0)](join,getRangerRoot(),'.ranger');}export function findGitRoot(){const _0x1b2a5d=_0x1044,_0x4dd786={'AJpuc':function(_0x597e25,_0xe2af04){return _0x597e25(_0xe2af04);},'WuEgq':function(_0x2c2afb,_0x5c374a){return _0x2c2afb!==_0x5c374a;},'tEzqW':function(_0x4df0ab,_0xe9d3ec,_0x2fe186){return _0x4df0ab(_0xe9d3ec,_0x2fe186);}};let _0x143148=process[_0x1b2a5d(0x1d2)]();const _0x2f3bd0=_0x4dd786['AJpuc'](parse,_0x143148)[_0x1b2a5d(0x1d3)];while(_0x4dd786['WuEgq'](_0x143148,_0x2f3bd0)){if(existsSync(_0x4dd786[_0x1b2a5d(0x1d9)](join,_0x143148,'.git')))return _0x143148;_0x143148=dirname(_0x143148);}if(_0x4dd786[_0x1b2a5d(0x1d1)](existsSync,join(_0x2f3bd0,'.git')))return _0x2f3bd0;return null;}export function getRangerHomeDir(){const _0x4c797b={'FFqlJ':function(_0x5b7b44){return _0x5b7b44();}};return join(_0x4c797b['FFqlJ'](homedir),'.ranger');}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x30ba7a,_0xb15836){const _0x559d8b=_0xde41,_0x1aaf26=_0x30ba7a();while(!![]){try{const _0x474164=parseInt(_0x559d8b(0xa1))/0x1+-parseInt(_0x559d8b(0xa5))/0x2*(parseInt(_0x559d8b(0x9c))/0x3)+parseInt(_0x559d8b(0x81))/0x4*(-parseInt(_0x559d8b(0xa8))/0x5)+parseInt(_0x559d8b(0x87))/0x6*(-parseInt(_0x559d8b(0xaf))/0x7)+parseInt(_0x559d8b(0x97))/0x8*(-parseInt(_0x559d8b(0xa7))/0x9)+parseInt(_0x559d8b(0x8f))/0xa*(parseInt(_0x559d8b(0x8b))/0xb)+-parseInt(_0x559d8b(0x9e))/0xc*(-parseInt(_0x559d8b(0x9f))/0xd);if(_0x474164===_0xb15836)break;else _0x1aaf26['push'](_0x1aaf26['shift']());}catch(_0xb48ab2){_0x1aaf26['push'](_0x1aaf26['shift']());}}}(_0x241a,0x2cc25));function _0xde41(_0x3535ca,_0x31a60f){_0x3535ca=_0x3535ca-0x7f;const _0x241adc=_0x241a();let _0xde416e=_0x241adc[_0x3535ca];return _0xde416e;}import{spawn}from'child_process';import{createRequire}from'module';import{dirname,join}from'path';import{readFileSync}from'fs';import{quoteShellArg}from'./playwrightCli.js';export const RANGERWRIGHT_CLI_PACKAGE='@ranger-testing/rangerwright';export const RANGERWRIGHT_CLI_BINARY='rangerwright';function readPackageJson(_0x39e22d){const _0x169b19=_0xde41,_0x2cfd5c={'QESdj':function(_0x567c47,_0x5ee069,_0x3a6078){return _0x567c47(_0x5ee069,_0x3a6078);},'aBTPO':function(_0x4add7a,_0x1c1289){return _0x4add7a!==_0x1c1289;}},_0x315ee1=_0x2cfd5c[_0x169b19(0x82)](readFileSync,_0x39e22d,'utf-8'),_0x115f09=JSON[_0x169b19(0x96)](_0x315ee1);if(!_0x115f09||_0x2cfd5c[_0x169b19(0xb1)](typeof _0x115f09,_0x169b19(0x98)))return{};return _0x115f09;}function _0x241a(){const _0x1f1bf4=['LaOuY','keXAN','args','subcommand','timed\x20out\x20after\x20','267295fcqTrV','package.json','aBTPO','\x20binary','DAzNL','MYRZo','bin','kill','argv','artifactDir','24456xBnGUd','QESdj','\x20does\x20not\x20expose\x20a\x20','rangerwright-cli\x20','exited\x20with\x20code=','close','30QUfnWb','toString','CpFVg','VbyaQ','59279AsYRWy','binaryPath','join','map','150hihKBb','assign','kDWwv','stdout','env','GKDgi','null','parse','8KxYxFT','object','pipe','RwVFf','Tbdrd','5361zMFoMI','--json','155412RFwdak','754ILgvyg','NRtmB','259424kVjgMR','\x0astderr:\x20','\x20signal=','commandArgs','112PXOeZK','SIGKILL','2967561LuYwXI','235XFSQrT','timeoutMs'];_0x241a=function(){return _0x1f1bf4;};return _0x241a();}export function resolveRangerwrightCliBinary(){const _0x54b850=_0xde41,_0x89ae20={'DAzNL':function(_0x26b284,_0x442e15){return _0x26b284===_0x442e15;},'Tbdrd':'string'},_0x3170f6=createRequire(process[_0x54b850(0x7f)][0x1]||join(process['cwd'](),_0x54b850(0xb0))),_0x41cf7b=_0x3170f6['resolve'](RANGERWRIGHT_CLI_PACKAGE+'/package.json'),_0x2ce713=dirname(_0x41cf7b),_0x4576fb=readPackageJson(_0x41cf7b),_0x190c9d=_0x89ae20[_0x54b850(0xb3)](typeof _0x4576fb[_0x54b850(0xb5)],_0x89ae20[_0x54b850(0x9b)])?_0x4576fb[_0x54b850(0xb5)]:_0x4576fb[_0x54b850(0xb5)]?.[RANGERWRIGHT_CLI_BINARY];if(!_0x190c9d)throw new Error(RANGERWRIGHT_CLI_PACKAGE+_0x54b850(0x83)+RANGERWRIGHT_CLI_BINARY+_0x54b850(0xb2));return join(_0x2ce713,_0x190c9d);}export function buildRangerwrightCliEnv(_0x4b24e5){const _0x4046ca=_0xde41;return{'RANGERWRIGHT_SESSION':_0x4b24e5['sessionId'],'RANGERWRIGHT_CONFIG':_0x4b24e5['configPath'],'RANGERWRIGHT_ARTIFACT_DIR':_0x4b24e5[_0x4046ca(0x80)],..._0x4b24e5['socketPath']?{'RANGERWRIGHT_SOCKET_PATH':_0x4b24e5['socketPath']}:{}};}export function applyRangerwrightCliEnv(_0x24ea9a,_0x5b2f4b){const _0x26c9fd=_0xde41,_0x165331={'MYRZo':function(_0x3b9079,_0x2fe073){return _0x3b9079(_0x2fe073);}};Object[_0x26c9fd(0x90)](_0x24ea9a,_0x165331[_0x26c9fd(0xb4)](buildRangerwrightCliEnv,_0x5b2f4b));}export function buildRangerwrightCliCommandPrefix(_0x74a1a5=resolveRangerwrightCliBinary()){return quoteShellArg(_0x74a1a5)+'\x20--json';}function getRangerwrightSubcommand(_0x3ba006){return _0x3ba006[0x0]??'unknown';}export function buildRangerwrightCliInvocation(_0x4d351f,_0x142c53){const _0x127350=_0xde41,_0x20b3e5={'keXAN':function(_0x1420ae,_0x271473){return _0x1420ae(_0x271473);},'RwVFf':_0x127350(0x9d)},_0x1ebe61=_0x4d351f[_0x127350(0x8c)]??resolveRangerwrightCliBinary(),_0x4136d4=[_0x127350(0x9d),..._0x142c53];return{'command':_0x1ebe61,'args':_0x4136d4,'shellCommand':[_0x20b3e5[_0x127350(0xab)](quoteShellArg,_0x1ebe61),_0x20b3e5[_0x127350(0x9a)],..._0x142c53[_0x127350(0x8e)](quoteShellArg)][_0x127350(0x8d)]('\x20'),'subcommand':_0x20b3e5[_0x127350(0xab)](getRangerwrightSubcommand,_0x142c53)};}function truncateOutput(_0x3c9a5,_0x3ab3c3=0x7d0){const _0x56eac8={'mmWPj':function(_0xb0f383,_0x190726){return _0xb0f383+_0x190726;}};return _0x3c9a5['length']>_0x3ab3c3?_0x56eac8['mmWPj'](_0x3c9a5['slice'](0x0,_0x3ab3c3),'...'):_0x3c9a5;}export async function runRangerwrightCliCommand(_0x13bbf0){const _0x42f6c7=_0xde41,_0xb557b9={'PAEvp':function(_0x5806fe,_0x37da44){return _0x5806fe(_0x37da44);},'GKDgi':function(_0x18e33d,_0x579750,_0x427bca,_0x25c27e){return _0x18e33d(_0x579750,_0x427bca,_0x25c27e);},'LaOuY':'pipe','owcVa':'data','kDWwv':'error','VbyaQ':_0x42f6c7(0x86),'LEESr':function(_0xbec1a8,_0x53f541){return _0xbec1a8(_0x53f541);}},_0xa80a79=buildRangerwrightCliInvocation(_0x13bbf0,_0x13bbf0[_0x42f6c7(0xa4)]),_0x5274b6={..._0x13bbf0[_0x42f6c7(0x93)]??process['env'],..._0xb557b9['LEESr'](buildRangerwrightCliEnv,_0x13bbf0)};return new Promise((_0x400e4e,_0x271323)=>{const _0x31206b=_0x42f6c7,_0x5180ac={'CpFVg':function(_0x2345f5,_0x2e0a04){return _0x2345f5(_0x2e0a04);},'NRtmB':function(_0x39bae5,_0x4f6876){return _0x39bae5(_0x4f6876);},'YdrLA':_0x31206b(0x95)},_0x58949c=_0xb557b9[_0x31206b(0x94)](spawn,_0xa80a79['command'],_0xa80a79[_0x31206b(0xac)],{'cwd':_0x13bbf0['cwd'],'env':_0x5274b6,'stdio':['ignore',_0xb557b9[_0x31206b(0xaa)],_0x31206b(0x99)]});let _0x3a4f8a='',_0x3780f8='',_0x36ae2c=![];const _0x12383b=_0x13bbf0['timeoutMs']&&_0x13bbf0[_0x31206b(0xa9)]>0x0?setTimeout(()=>{const _0x3dc176=_0x31206b;_0x36ae2c=!![],_0x58949c[_0x3dc176(0xb6)]('SIGTERM'),setTimeout(()=>{const _0x1f7a66=_0x3dc176;try{_0x58949c['kill'](_0x1f7a66(0xa6));}catch{}},0x3e8);},_0x13bbf0[_0x31206b(0xa9)]):null;_0x58949c[_0x31206b(0x92)]?.['on']('data',_0x44d85c=>{const _0x21c047=_0x31206b;_0x3a4f8a+=_0x44d85c[_0x21c047(0x88)]();}),_0x58949c['stderr']?.['on'](_0xb557b9['owcVa'],_0x3c3651=>{const _0x4d0359=_0x31206b;_0x3780f8+=_0x3c3651[_0x4d0359(0x88)]();}),_0x58949c['on'](_0xb557b9[_0x31206b(0x91)],_0x55fef1=>{if(_0x12383b)clearTimeout(_0x12383b);_0xb557b9['PAEvp'](_0x271323,_0x55fef1);}),_0x58949c['on'](_0xb557b9[_0x31206b(0x8a)],(_0x29e756,_0x12cff0)=>{const _0x39a5ed=_0x31206b;if(_0x12383b)_0x5180ac['CpFVg'](clearTimeout,_0x12383b);if(_0x29e756===0x0){_0x5180ac[_0x39a5ed(0xa0)](_0x400e4e,{'stdout':_0x3a4f8a,'stderr':_0x3780f8,'invocation':_0xa80a79});return;}const _0x4f9490=_0x36ae2c?_0x39a5ed(0xae)+_0x13bbf0[_0x39a5ed(0xa9)]+'ms':_0x39a5ed(0x85)+(_0x29e756??_0x39a5ed(0x95))+_0x39a5ed(0xa3)+(_0x12cff0??_0x5180ac['YdrLA']);_0x5180ac[_0x39a5ed(0x89)](_0x271323,new Error(_0x39a5ed(0x84)+_0xa80a79[_0x39a5ed(0xad)]+'\x20'+_0x4f9490+'\x0astdout:\x20'+truncateOutput(_0x3a4f8a)+_0x39a5ed(0xa2)+_0x5180ac['NRtmB'](truncateOutput,_0x3780f8)));});});}export function parseRangerwrightCliCommand(_0x172f3d){const _0x54bc6a=_0x172f3d['match'](/(?:^|\s)(?:"[^"]*rangerwright"|'[^']*rangerwright'|\S*rangerwright)(?:\s+--json)?\s+([a-z-]+)/);return _0x54bc6a?.[0x1]??null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5318a6,_0x562b54){const _0x4db926=_0x4687,_0x13233d=_0x5318a6();while(!![]){try{const _0x2613d5=parseInt(_0x4db926(0x18b))/0x1+parseInt(_0x4db926(0x17f))/0x2*(-parseInt(_0x4db926(0x198))/0x3)+parseInt(_0x4db926(0x189))/0x4+parseInt(_0x4db926(0x1a6))/0x5+-parseInt(_0x4db926(0x184))/0x6+-parseInt(_0x4db926(0x19e))/0x7*(parseInt(_0x4db926(0x188))/0x8)+parseInt(_0x4db926(0x1a9))/0x9;if(_0x2613d5===_0x562b54)break;else _0x13233d['push'](_0x13233d['shift']());}catch(_0x3fb4b7){_0x13233d['push'](_0x13233d['shift']());}}}(_0xb1f5,0x8c59d));import{existsSync}from'fs';import _0x51fe88 from'inquirer';function _0xb1f5(){const _0x827c4f=['cdpEndpoint','IDrQY','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','1728598DwsYqb','status','baseUrl','name','`ranger\x20profile\x20add`\x20to\x20create\x20one.','45252ufrZFw','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','domains','6776680sIrhXE','2886868DXiNrx','\x20baseUrl\x20<url>','598067qGREhZ','string','tUHJm','settings','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','No\x20baseUrl\x20configured\x20for\x20profile\x20\x22','source','RANGER_SESSION_STATE_PATH','length','url','\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','UqaRw','JYShe','3HINDqa','EAuSr','\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','FLBSH','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','7UWxNTF','cloud','envBaseUrl','tqZQt','local','Profile\x20\x22','stZKt','SUpeg','4816765lisWvg','profile','startPath','95994lAgQfK','rktVv','zjBML','resolvedEnv','wdrQd'];_0xb1f5=function(){return _0x827c4f;};return _0xb1f5();}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(_0x56b997){const _0x2adc1b=_0x4687,_0x1f75a0={'YWlUK':function(_0xf7fc95){return _0xf7fc95();},'tUHJm':function(_0x481d78,_0x5943eb){return _0x481d78===_0x5943eb;},'dythP':_0x2adc1b(0x186),'tqZQt':function(_0x4374ff,_0x26ef62){return _0x4374ff(_0x26ef62);},'SUpeg':function(_0x7668e6,_0xd905b0){return _0x7668e6(_0xd905b0);},'stZKt':function(_0x1977ed,_0x5dca3a){return _0x1977ed&&_0x5dca3a;},'FLBSH':function(_0x1bc31e,_0x52c190){return _0x1bc31e+_0x52c190;},'JvKxX':_0x2adc1b(0x185),'TDeBj':function(_0x34a1a9,_0x528b19){return _0x34a1a9&&_0x528b19;},'RoSUC':'list','oEJpp':'Cloud\x20profile\x20(recommended)','cWnAO':_0x2adc1b(0x1a2),'NuEtN':function(_0xf9793c,_0x56a306){return _0xf9793c===_0x56a306;},'EAuSr':'cloud','zjBML':function(_0x2a7a5c,_0x29d9d8,_0x3d5e6a){return _0x2a7a5c(_0x29d9d8,_0x3d5e6a);},'UqaRw':function(_0x533978,_0x325c15){return _0x533978(_0x325c15);},'JYShe':function(_0x4e961d,_0x139de5){return _0x4e961d(_0x139de5);},'ZNTaW':function(_0x13f656,_0x130d8a){return _0x13f656(_0x130d8a);},'IDrQY':function(_0x4efb3b,_0x55a78b){return _0x4efb3b(_0x55a78b);},'kOlUe':function(_0x369ff6,_0x57b3d3){return _0x369ff6(_0x57b3d3);},'wdrQd':function(_0x55eb99){return _0x55eb99();}},_0x27b60d=_0x56b997[_0x2adc1b(0x1a7)];let _0x11cf7b=_0x56b997[_0x2adc1b(0x1a7)]??await readActiveProfileName(),_0x57880c=null;if(!_0x11cf7b&&process['env']['RANGER_TEST_USERNAME']){const _0x22b514=await _0x1f75a0['YWlUK'](resolveAdHocProfile);_0x22b514&&(_0x11cf7b=_0x22b514[_0x2adc1b(0x182)],_0x57880c=_0x22b514[_0x2adc1b(0x1a7)]);}if(!_0x11cf7b)try{const _0xe726cf=await _0x1f75a0['YWlUK'](listCloudProfiles);if(_0x1f75a0['tUHJm'](_0xe726cf[_0x2adc1b(0x193)],0x1)){const _0x245251=_0xe726cf[0x0];_0x11cf7b=_0x245251[_0x2adc1b(0x182)],console['log']('\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20'+_0x245251[_0x2adc1b(0x182)]),console['log'](_0x2adc1b(0x18f));}}catch{}if(!_0x11cf7b)throw new Error('Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a'+_0x2adc1b(0x19d)+_0x1f75a0['dythP']+_0x2adc1b(0x195)+_0x2adc1b(0x19a));const _0x28096a=_0x1f75a0['tqZQt'](getEnvDir,_0x11cf7b),_0x267e19=existsSync(_0x28096a);let _0x4b89ae=_0x57880c,_0x4decda=![];if(!_0x4b89ae)try{_0x4b89ae=await _0x1f75a0[_0x2adc1b(0x1a5)](fetchCloudProfile,_0x11cf7b);if(!_0x4b89ae)_0x4decda=!![];}catch(_0x3e6737){_0x3e6737 instanceof ApiError&&_0x1f75a0[_0x2adc1b(0x18d)](_0x3e6737[_0x2adc1b(0x180)],0x194)&&(_0x4decda=!![]);}if(_0x1f75a0[_0x2adc1b(0x1a4)](_0x27b60d,_0x4decda)&&!_0x267e19&&!_0x4b89ae)throw new Error(_0x1f75a0[_0x2adc1b(0x19c)](_0x2adc1b(0x1a3)+_0x27b60d+_0x2adc1b(0x19b)+_0x1f75a0['JvKxX'],_0x2adc1b(0x183)));if(_0x1f75a0['TDeBj'](_0x4b89ae,_0x267e19)){let _0x476ba2=!![];if(isInteractive()){const {source:_0x4fd39d}=await _0x51fe88['prompt']([{'type':_0x1f75a0['RoSUC'],'name':_0x2adc1b(0x191),'message':_0x2adc1b(0x1a3)+_0x11cf7b+_0x2adc1b(0x17e),'choices':[{'name':_0x1f75a0['oEJpp'],'value':_0x2adc1b(0x19f)},{'name':'Local\x20profile','value':_0x1f75a0['cWnAO']}],'default':_0x2adc1b(0x19f)}]);_0x476ba2=_0x1f75a0['NuEtN'](_0x4fd39d,_0x1f75a0[_0x2adc1b(0x199)]);}if(!_0x476ba2)_0x4b89ae=null;}const _0x379912=_0x1f75a0[_0x2adc1b(0x179)](readProfileOverrides,process['cwd'](),_0x11cf7b);let _0x5904b6=null,_0x47dab3,_0x12842e,_0x353a7f,_0x57c796,_0x69c0d8=null,_0x570259;const _0x24353d=expandOverrides(_0x379912);if(_0x4b89ae){_0x5904b6=_0x4b89ae;const _0x4335dc=_0x4b89ae[_0x2adc1b(0x18e)]??{},_0x29cd08=mergeCloudProfileSettings(_0x4335dc,_0x379912??undefined),_0x4b00aa={..._0x4b89ae,'settings':_0x29cd08},_0x7b9591=process['env'][_0x2adc1b(0x192)];if(_0x7b9591){if(!_0x1f75a0[_0x2adc1b(0x1a1)](existsSync,_0x7b9591))throw new Error('RANGER_SESSION_STATE_PATH='+_0x7b9591+'\x20does\x20not\x20exist.');_0x47dab3=_0x7b9591,_0x12842e=_0x1f75a0[_0x2adc1b(0x196)](resolveEnvVars,_0x29cd08),_0x353a7f=Boolean(_0x12842e[_0x2adc1b(0x17c)]),_0x69c0d8={'baseUrl':_0x1f75a0[_0x2adc1b(0x1a1)](expandString,_0x4335dc['baseUrl']),'startPath':expandString(_0x4335dc['startPath'])};}else{const _0x20f5fa=await _0x1f75a0[_0x2adc1b(0x197)](resolveCloudProfileSession,_0x4b00aa);_0x47dab3=_0x20f5fa['authPath'],_0x12842e=_0x1f75a0['ZNTaW'](resolveEnvVars,_0x20f5fa['settings']),_0x353a7f=Boolean(_0x12842e['cdpEndpoint']),_0x69c0d8={'baseUrl':_0x1f75a0['IDrQY'](expandString,_0x4335dc['baseUrl']),'startPath':_0x1f75a0[_0x2adc1b(0x1a5)](expandString,_0x4335dc[_0x2adc1b(0x1a8)])},_0x570259=_0x20f5fa[_0x2adc1b(0x17a)]?.[_0x2adc1b(0x187)]?.[0x0];}}else{if(!_0x267e19)throw new Error(_0x2adc1b(0x1a3)+_0x11cf7b+'\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x11cf7b);const _0x30e8da=await loadSettings(_0x11cf7b);_0x12842e=_0x1f75a0['kOlUe'](resolveEnvVars,_0x30e8da),_0x353a7f=Boolean(_0x12842e[_0x2adc1b(0x17c)]),_0x57c796=_0x12842e['baseUrl'];}const _0x36fef4=_0x1f75a0[_0x2adc1b(0x17b)](readUrlEnvVars),_0x1dc4c2=_0x1f75a0[_0x2adc1b(0x17d)](resolveProfileUrl,{'flagBaseUrl':_0x56b997[_0x2adc1b(0x181)],'flagStartPath':_0x56b997[_0x2adc1b(0x1a8)],'envBaseUrl':_0x36fef4[_0x2adc1b(0x1a0)],'envStartPath':_0x36fef4['envStartPath'],'localSettingsBaseUrl':_0x57c796,'projectOverrides':_0x24353d,'cloudSettings':_0x69c0d8,'authEnvironmentDomain':_0x570259}),_0x1bbd11=_0x1dc4c2[_0x2adc1b(0x194)]??_0x1dc4c2[_0x2adc1b(0x181)];if(!_0x1bbd11&&!_0x353a7f)throw new Error(_0x2adc1b(0x190)+_0x11cf7b+'\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20'+_0x11cf7b+_0x2adc1b(0x18a));return{'activeProfile':_0x11cf7b,'resolvedCloudProfile':_0x5904b6,'cloudAuthPath':_0x47dab3,'resolvedSettings':_0x12842e,'isCdpMode':_0x353a7f,'url':_0x1bbd11,'startPath':_0x1dc4c2['startPath']};}function _0x4687(_0x5d8017,_0x212200){_0x5d8017=_0x5d8017-0x179;const _0xb1f536=_0xb1f5();let _0x46873c=_0xb1f536[_0x5d8017];return _0x46873c;}function expandString(_0x144dfd){const _0x550200=_0x4687,_0x129dfb={'rktVv':function(_0x2c5188,_0x48e590){return _0x2c5188!==_0x48e590;},'SKuUI':function(_0x40b4c2,_0x5b166a){return _0x40b4c2(_0x5b166a);}};if(_0x129dfb[_0x550200(0x1aa)](typeof _0x144dfd,'string'))return _0x144dfd;return _0x129dfb['SKuUI'](resolveEnvVars,_0x144dfd);}function expandOverrides(_0x49c7a7){const _0x5b774d=_0x4687,_0x145276={'wGyPP':function(_0x5edba9,_0x508b14){return _0x5edba9(_0x508b14);},'gbxlW':function(_0x4987e4,_0x1e07ce){return _0x4987e4===_0x1e07ce;},'CTyRr':_0x5b774d(0x18c)};if(!_0x49c7a7)return _0x49c7a7;const _0x388e64={..._0x49c7a7};return typeof _0x388e64['baseUrl']==='string'&&(_0x388e64['baseUrl']=_0x145276['wGyPP'](resolveEnvVars,_0x388e64[_0x5b774d(0x181)])),_0x145276['gbxlW'](typeof _0x388e64[_0x5b774d(0x1a8)],_0x145276['CTyRr'])&&(_0x388e64['startPath']=resolveEnvVars(_0x388e64['startPath'])),_0x388e64;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0x71c758=_0x5ade;(function(_0x2eacfa,_0x31c7d9){const _0x1227eb=_0x5ade,_0x2931f2=_0x2eacfa();while(!![]){try{const _0x263b6b=-parseInt(_0x1227eb(0x1cd))/0x1+-parseInt(_0x1227eb(0x1cb))/0x2+-parseInt(_0x1227eb(0x1c0))/0x3+parseInt(_0x1227eb(0x1b8))/0x4+parseInt(_0x1227eb(0x1ba))/0x5+parseInt(_0x1227eb(0x1c3))/0x6*(-parseInt(_0x1227eb(0x1bb))/0x7)+-parseInt(_0x1227eb(0x1c9))/0x8*(-parseInt(_0x1227eb(0x1bc))/0x9);if(_0x263b6b===_0x31c7d9)break;else _0x2931f2['push'](_0x2931f2['shift']());}catch(_0x2d25f8){_0x2931f2['push'](_0x2931f2['shift']());}}}(_0x45f5,0x42932));function _0x5ade(_0x9b2e02,_0x57560e){_0x9b2e02=_0x9b2e02-0x1b7;const _0x45f519=_0x45f5();let _0x5ade99=_0x45f519[_0x9b2e02];return _0x5ade99;}function firstDefined(..._0x4a117d){const _0x10d0da=_0x5ade,_0xbb9e47={'pJObx':function(_0x2488dc,_0x3ed89d){return _0x2488dc!==_0x3ed89d;}};for(const _0x4b4af3 of _0x4a117d){if(_0xbb9e47[_0x10d0da(0x1cc)](_0x4b4af3,undefined)&&_0x4b4af3!==null&&_0x4b4af3!=='')return _0x4b4af3;}return undefined;}function normalizeAuthEnvironmentDomain(_0x26a521){if(!_0x26a521)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i['test'](_0x26a521))return _0x26a521;return'https://'+_0x26a521;}export function resolveBaseUrl(_0x12862f){const _0x206e07=_0x5ade,_0x5277a8={'yYjJU':'baseUrl','EeaHL':'string'},_0x476f6c=_0x12862f[_0x206e07(0x1c6)],_0x5b3332=!!_0x476f6c&&_0x5277a8[_0x206e07(0x1c8)]in _0x476f6c,_0x4e61b9=_0x476f6c?.['baseUrl'],_0x2e3d35=!(_0x5b3332&&_0x4e61b9===null);return firstDefined(_0x12862f[_0x206e07(0x1c1)],_0x12862f['envBaseUrl'],_0x12862f['localSettingsBaseUrl'],typeof _0x4e61b9===_0x5277a8[_0x206e07(0x1c4)]?_0x4e61b9:undefined,_0x2e3d35?_0x12862f[_0x206e07(0x1be)]?.['baseUrl']:undefined,_0x2e3d35?normalizeAuthEnvironmentDomain(_0x12862f[_0x206e07(0x1bf)]):undefined);}function _0x45f5(){const _0x3edef6=['1000749ykWRai','flagBaseUrl','flagStartPath','871692QBylbN','EeaHL','aMRVD','projectOverrides','endsWith','yYjJU','8jqrIro','czFUK','720380hDxKCm','pJObx','86255mBRkgR','slice','env','471096VxIERq','AkvfS','1875630IGvOnz','7lzIgsU','6345900pbGXIz','startsWith','cloudSettings','authEnvironmentDomain'];_0x45f5=function(){return _0x3edef6;};return _0x45f5();}export function resolveStartPath(_0x19b3c3){const _0x32beee=_0x5ade,_0x1d13b5={'jENXh':function(_0x36d666,_0xb13717){return _0x36d666 in _0xb13717;},'ltAdg':'startPath','czFUK':function(_0x58225,_0x2ee24b,_0x2a8159,_0x560b67,_0x34f378){return _0x58225(_0x2ee24b,_0x2a8159,_0x560b67,_0x34f378);},'aMRVD':'string'},_0x5cd5a0=_0x19b3c3[_0x32beee(0x1c6)],_0x209b49=!!_0x5cd5a0&&_0x1d13b5['jENXh'](_0x1d13b5['ltAdg'],_0x5cd5a0),_0x52860=_0x5cd5a0?.['startPath'],_0x4c8ca2=!(_0x209b49&&_0x52860===null);return _0x1d13b5[_0x32beee(0x1ca)](firstDefined,_0x19b3c3[_0x32beee(0x1c2)],_0x19b3c3['envStartPath'],typeof _0x52860===_0x1d13b5[_0x32beee(0x1c5)]?_0x52860:undefined,_0x4c8ca2?_0x19b3c3['cloudSettings']?.['startPath']:undefined);}export function joinBaseAndPath(_0x168dd0,_0x41b3b2){const _0xdc2fb8=_0x5ade,_0x5dbfe4={'FGtXw':function(_0x6524b,_0x11bb78){return _0x6524b+_0x11bb78;}};if(!_0x168dd0)return undefined;if(!_0x41b3b2)return _0x168dd0;const _0x19237f=_0x168dd0[_0xdc2fb8(0x1c7)]('/')?_0x168dd0[_0xdc2fb8(0x1ce)](0x0,-0x1):_0x168dd0,_0x2dd6ce=_0x41b3b2[_0xdc2fb8(0x1bd)]('/')?_0x41b3b2:'/'+_0x41b3b2;return _0x5dbfe4['FGtXw'](_0x19237f,_0x2dd6ce);}export function resolveProfileUrl(_0x12ac9f){const _0x39ff40=_0x5ade,_0xc78425={'hwoLr':function(_0x678edf,_0x25f257){return _0x678edf(_0x25f257);},'AkvfS':function(_0x55e469,_0x5d165b,_0x5b1dd2){return _0x55e469(_0x5d165b,_0x5b1dd2);}},_0x20f59f=resolveBaseUrl(_0x12ac9f),_0x2974a3=_0xc78425['hwoLr'](resolveStartPath,_0x12ac9f);return{'baseUrl':_0x20f59f,'startPath':_0x2974a3,'url':_0xc78425[_0x39ff40(0x1b9)](joinBaseAndPath,_0x20f59f,_0x2974a3)};}export function readUrlEnvVars(_0x170bc3=process[_0x71c758(0x1b7)]){return{'envBaseUrl':_0x170bc3['RANGER_BASE_URL'],'envStartPath':_0x170bc3['RANGER_START_PATH']};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x434f(){const _0x34dac6=['2231131AghGAB','303402DrYeIh','pow','2926830olkqmU','488997RvugLt','ms...','8emOFqU','gpgTT','90eFziga','214346BDRWxI','1649335dUJggj','SPsnM','error','4JoassS','\x20failed\x20(attempt\x20','181755ACYLOV','2CFnPEI','456jZXEQG','),\x20retrying\x20in\x20','baseDelayMs','label'];_0x434f=function(){return _0x34dac6;};return _0x434f();}(function(_0x1374b5,_0xf8e8e6){const _0x22dd0b=_0x1543,_0x1fbc26=_0x1374b5();while(!![]){try{const _0x2e595a=-parseInt(_0x22dd0b(0x94))/0x1+-parseInt(_0x22dd0b(0x8e))/0x2*(parseInt(_0x22dd0b(0x97))/0x3)+-parseInt(_0x22dd0b(0x8b))/0x4*(-parseInt(_0x22dd0b(0x88))/0x5)+-parseInt(_0x22dd0b(0x96))/0x6+parseInt(_0x22dd0b(0x93))/0x7*(parseInt(_0x22dd0b(0x99))/0x8)+-parseInt(_0x22dd0b(0x8d))/0x9*(parseInt(_0x22dd0b(0x9b))/0xa)+-parseInt(_0x22dd0b(0x9c))/0xb*(-parseInt(_0x22dd0b(0x8f))/0xc);if(_0x2e595a===_0xf8e8e6)break;else _0x1fbc26['push'](_0x1fbc26['shift']());}catch(_0x48f53a){_0x1fbc26['push'](_0x1fbc26['shift']());}}}(_0x434f,0x3dcb3));function _0x1543(_0x2e43f7,_0x28ff7b){_0x2e43f7=_0x2e43f7-0x88;const _0x434f0c=_0x434f();let _0x15436c=_0x434f0c[_0x2e43f7];return _0x15436c;}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x2492c0,_0x24d536){const _0x1ff2d9=_0x1543,_0x1fdd7={'SPsnM':function(_0x4c315c,_0x4143f1){return _0x4c315c<=_0x4143f1;},'MiSmD':function(_0x34af0b){return _0x34af0b();},'gpgTT':function(_0x4eecc5,_0x1edea4){return _0x4eecc5 instanceof _0x1edea4;}},_0x15031e=_0x24d536?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x369458=_0x24d536?.[_0x1ff2d9(0x91)]??DEFAULT_BASE_DELAY_MS;let _0x1d1129;for(let _0x33874a=0x0;_0x1fdd7[_0x1ff2d9(0x89)](_0x33874a,_0x15031e);_0x33874a++){try{return await _0x1fdd7['MiSmD'](_0x2492c0);}catch(_0x4015ff){_0x1d1129=_0x1fdd7[_0x1ff2d9(0x9a)](_0x4015ff,Error)?_0x4015ff:new Error(String(_0x4015ff));if(_0x33874a<_0x15031e){const _0x29b2a7=_0x369458*Math[_0x1ff2d9(0x95)](0x2,_0x33874a);_0x24d536?.[_0x1ff2d9(0x92)]&&console[_0x1ff2d9(0x8a)](_0x24d536[_0x1ff2d9(0x92)]+_0x1ff2d9(0x8c)+(_0x33874a+0x1)+'/'+(_0x15031e+0x1)+_0x1ff2d9(0x90)+_0x29b2a7+_0x1ff2d9(0x98)),await new Promise(_0x56e71b=>setTimeout(_0x56e71b,_0x29b2a7));}}}throw _0x1d1129;}
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const _0x211fa6=_0xa85e;(function(_0x19641a,_0x4d5b7f){const _0x5c3956=_0xa85e,_0x405682=_0x19641a();while(!![]){try{const _0x2d0373=-parseInt(_0x5c3956(0x1b0))/0x1+-parseInt(_0x5c3956(0x191))/0x2+parseInt(_0x5c3956(0x1a1))/0x3*(-parseInt(_0x5c3956(0x1b5))/0x4)+parseInt(_0x5c3956(0x188))/0x5*(-parseInt(_0x5c3956(0x19a))/0x6)+-parseInt(_0x5c3956(0x1a4))/0x7*(parseInt(_0x5c3956(0x19b))/0x8)+parseInt(_0x5c3956(0x19e))/0x9*(parseInt(_0x5c3956(0x18e))/0xa)+parseInt(_0x5c3956(0x189))/0xb;if(_0x2d0373===_0x4d5b7f)break;else _0x405682['push'](_0x405682['shift']());}catch(_0x60fbe8){_0x405682['push'](_0x405682['shift']());}}}(_0xcdb1,0x482fe));import*as _0x50c598 from'fs';import*as _0x5d0513 from'path';import*as _0x3910b1 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x5d0513[_0x211fa6(0x197)](_0x3910b1['homedir'](),_0x211fa6(0x1ae),'.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x12ed73=_0x211fa6,_0x4d7dbe={'noZsV':_0x12ed73(0x18d)};try{if(_0x50c598[_0x12ed73(0x194)](CACHE_FILE)){const _0x28dd54=JSON['parse'](_0x50c598['readFileSync'](CACHE_FILE,_0x4d7dbe['noZsV']));return{'version':0x3,'sessions':_0x28dd54['sessions']||{},'branches':_0x28dd54[_0x12ed73(0x1b1)]||{},'lastEnabledSessionClearedAt':_0x28dd54[_0x12ed73(0x1a0)]};}}catch{}return createEmptyCache();}function saveCache(_0x1e53b3){const _0x3a1efd=_0x211fa6;try{const _0xd28d16=_0x5d0513['dirname'](CACHE_FILE);!_0x50c598['existsSync'](_0xd28d16)&&_0x50c598['mkdirSync'](_0xd28d16,{'recursive':!![]}),_0x50c598['writeFileSync'](CACHE_FILE,JSON[_0x3a1efd(0x192)](_0x1e53b3,null,0x2));}catch{}}export function getCurrentBranch(){const _0x4b292c=_0x211fa6,_0x3b9d9f={'IKOnN':function(_0x6b0a32,_0xe58bc0,_0x511a14){return _0x6b0a32(_0xe58bc0,_0x511a14);},'KmhSq':'pipe','pcAnp':function(_0xacdfa1,_0x52c7f2){return _0xacdfa1===_0x52c7f2;}};try{const _0x19327f=_0x3b9d9f['IKOnN'](execSync,'git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':_0x4b292c(0x18d),'stdio':['pipe',_0x3b9d9f['KmhSq'],_0x4b292c(0x18b)]})['trim']();if(!_0x19327f||_0x3b9d9f['pcAnp'](_0x19327f,_0x4b292c(0x1b4)))return null;return _0x19327f;}catch{return null;}}export function enableBranch(_0x72c89b){const _0x1767a6={'mFnpI':function(_0x5ce606,_0x5be49b){return _0x5ce606(_0x5be49b);}},_0x389426=loadCache();_0x389426['branches'][_0x72c89b]=!![],_0x1767a6['mFnpI'](saveCache,_0x389426);}export function disableBranch(_0xb1ca6d){const _0x5efec6=_0x211fa6,_0x6d08dd=loadCache();delete _0x6d08dd[_0x5efec6(0x1b1)][_0xb1ca6d],saveCache(_0x6d08dd);}export function isBranchEnabled(_0x16e0d6){const _0x57ce98=_0x211fa6,_0x2c4997={'wGzdX':function(_0xea2a9e){return _0xea2a9e();}},_0x7e1da=_0x2c4997[_0x57ce98(0x19d)](loadCache);return _0x7e1da[_0x57ce98(0x1b1)][_0x16e0d6]===!![];}function getOrCreateSession(_0xeeba72,_0x813166){return!_0xeeba72['sessions'][_0x813166]&&(_0xeeba72['sessions'][_0x813166]={}),_0xeeba72['sessions'][_0x813166];}export function enableSession(_0x223036){const _0x19e748=_0x211fa6,_0x3398e5={'HLqaJ':function(_0x33f8d2){return _0x33f8d2();},'bEnea':'main','sKqEk':function(_0x4a60e1,_0x3e74b4){return _0x4a60e1!==_0x3e74b4;},'xQTxl':function(_0x1187fb,_0x832765){return _0x1187fb(_0x832765);}},_0x52ae5b=_0x3398e5[_0x19e748(0x1b2)](loadCache),_0x41f00a=getOrCreateSession(_0x52ae5b,_0x223036);_0x41f00a['enabled']=!![];const _0x263dfc=_0x3398e5['HLqaJ'](getCurrentBranch);_0x263dfc&&_0x263dfc!==_0x3398e5[_0x19e748(0x1ab)]&&_0x3398e5[_0x19e748(0x1a7)](_0x263dfc,_0x19e748(0x1a3))&&(_0x52ae5b['branches'][_0x263dfc]=!![],_0x41f00a[_0x19e748(0x1ad)]=_0x263dfc),_0x3398e5['xQTxl'](saveCache,_0x52ae5b);}export function isSessionEnabled(_0x14ca1b){const _0xa2faf7=_0x211fa6,_0xbf0d5={'wxuEe':function(_0x4aa7e1){return _0x4aa7e1();},'yCtuQ':function(_0x1d23a6){return _0x1d23a6();},'TwmMI':function(_0x43817b,_0x19e154){return _0x43817b===_0x19e154;},'ZIWgd':'master','qSFsU':function(_0x25743d,_0x6c4b20){return _0x25743d||_0x6c4b20;}},_0x193200=_0xbf0d5['wxuEe'](loadCache),_0x2d988c=_0xbf0d5['yCtuQ'](getCurrentBranch);if(!_0x2d988c||_0xbf0d5[_0xa2faf7(0x18c)](_0x2d988c,_0xa2faf7(0x1a2))||_0xbf0d5[_0xa2faf7(0x18c)](_0x2d988c,_0xbf0d5['ZIWgd']))return _0x193200['sessions'][_0x14ca1b]?.['enabled']===!![];const _0x184455=_0x193200[_0xa2faf7(0x1b1)][_0x2d988c]===!![],_0xe5e8a6=_0xbf0d5[_0xa2faf7(0x18c)](_0x193200['sessions'][_0x14ca1b]?.[_0xa2faf7(0x19c)],!![]);return _0xbf0d5['qSFsU'](_0x184455,_0xe5e8a6);}export function disableSession(_0x5607dd){const _0x14a9f7=_0x211fa6,_0x3f2911=loadCache(),_0x55aaf2=getOrCreateSession(_0x3f2911,_0x5607dd);_0x55aaf2[_0x14a9f7(0x19c)]=![],saveCache(_0x3f2911);}function _0xa85e(_0x266d29,_0x2f7398){_0x266d29=_0x266d29-0x188;const _0xcdb16f=_0xcdb1();let _0xa85ef7=_0xcdb16f[_0x266d29];return _0xa85ef7;}export function updateBranchTracking(_0x7b82eb){const _0xf2b3d8=_0x211fa6,_0x43ba64={'FxseJ':function(_0x5d3ddc){return _0x5d3ddc();},'EjyRG':'main','xPcUy':function(_0x51a81a,_0xf941ab){return _0x51a81a===_0xf941ab;},'vPDqh':'master'},_0x33ac8e=_0x43ba64[_0xf2b3d8(0x193)](loadCache),_0x5151f8=_0x33ac8e['sessions'][_0x7b82eb];if(!_0x5151f8?.[_0xf2b3d8(0x19c)])return;const _0x335998=_0x43ba64['FxseJ'](getCurrentBranch);if(!_0x335998||_0x335998===_0x43ba64['EjyRG']||_0x43ba64[_0xf2b3d8(0x1af)](_0x335998,_0x43ba64[_0xf2b3d8(0x18f)]))return;_0x5151f8['currentBranch']!==_0x335998&&(_0x33ac8e['branches'][_0x335998]=!![],_0x5151f8[_0xf2b3d8(0x1ad)]=_0x335998,saveCache(_0x33ac8e));}export function initBranchTracking(_0x32db1b){const _0x593e7f=_0x211fa6,_0x2450e5={'CYvTJ':function(_0x33f2cc){return _0x33f2cc();},'MPIyh':function(_0x33b139,_0x3da1d2){return _0x33b139===_0x3da1d2;},'Kyijg':'master'},_0x8b5fb4=_0x2450e5[_0x593e7f(0x1a5)](loadCache),_0x399d5b=getCurrentBranch();if(!_0x399d5b||_0x399d5b===_0x593e7f(0x1a2)||_0x2450e5['MPIyh'](_0x399d5b,_0x2450e5['Kyijg']))return;if(_0x2450e5['MPIyh'](_0x8b5fb4['branches'][_0x399d5b],!![])){const _0xb0aa88=getOrCreateSession(_0x8b5fb4,_0x32db1b);_0xb0aa88['enabled']=!![],_0xb0aa88['currentBranch']=_0x399d5b,saveCache(_0x8b5fb4);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x525195){const _0x181de0=_0x211fa6,_0x1e776d={'EbmJj':function(_0x5231df){return _0x5231df();},'ZxtWH':function(_0x400caa,_0x2229f8){return _0x400caa(_0x2229f8);}},_0x227354=_0x1e776d[_0x181de0(0x198)](loadCache),_0x471e9b=_0x227354['sessions'][_0x525195];_0x471e9b?.['enabled']&&(_0x227354[_0x181de0(0x1a0)]=Date[_0x181de0(0x1ac)](),_0x1e776d[_0x181de0(0x1b3)](saveCache,_0x227354));}export function shouldAutoEnableAfterClear(_0x33b24b){const _0x4b49da=_0x211fa6,_0x556b8c={'szHit':function(_0x2f8ef4,_0x370ef4){return _0x2f8ef4!==_0x370ef4;},'ShPXj':function(_0x970acf){return _0x970acf();},'NSmQy':function(_0x268511,_0x31db79){return _0x268511<=_0x31db79;}};if(_0x556b8c['szHit'](_0x33b24b,'clear'))return![];const _0x245da7=_0x556b8c[_0x4b49da(0x195)](loadCache),_0x5114f4=_0x245da7[_0x4b49da(0x1a0)];if(!_0x5114f4)return![];const _0x14fb5a=Date['now']()-_0x5114f4;return _0x556b8c['NSmQy'](_0x14fb5a,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x4e8f98){const _0x268079=_0x211fa6,_0x28ceb9={'UziOA':function(_0x4fda9b,_0x905abf,_0x4e27bf){return _0x4fda9b(_0x905abf,_0x4e27bf);},'FCEeX':function(_0xceea5e,_0x15e91a){return _0xceea5e!==_0x15e91a;},'EjaNg':'main','rxvag':function(_0x318fd8,_0x173a2e){return _0x318fd8(_0x173a2e);}},_0x36935a=loadCache(),_0x5a140f=_0x28ceb9[_0x268079(0x1aa)](getOrCreateSession,_0x36935a,_0x4e8f98);_0x5a140f[_0x268079(0x19c)]=!![];const _0x55ac97=getCurrentBranch();_0x55ac97&&_0x28ceb9['FCEeX'](_0x55ac97,_0x28ceb9['EjaNg'])&&_0x55ac97!==_0x268079(0x1a3)&&(_0x5a140f[_0x268079(0x1ad)]=_0x55ac97),delete _0x36935a[_0x268079(0x1a0)],_0x28ceb9[_0x268079(0x1a9)](saveCache,_0x36935a);}export function registerSession(_0x40eafc,_0x44b2bd){const _0x23848b=_0x211fa6,_0x257ef4={'suYUK':function(_0x2893e2,_0x5a8540,_0x3c6972){return _0x2893e2(_0x5a8540,_0x3c6972);}},_0x3058fa=loadCache(),_0x426713=_0x257ef4['suYUK'](getOrCreateSession,_0x3058fa,_0x40eafc);_0x426713['featureId']=_0x44b2bd,_0x426713[_0x23848b(0x1a6)]=new Date()[_0x23848b(0x196)](),saveCache(_0x3058fa);}export function getSessionEntry(_0x39d612){const _0x2e882f=_0x211fa6,_0x3a5a6c=loadCache(),_0x58bd13=_0x3a5a6c['sessions'][_0x39d612];if(_0x58bd13?.['featureId']&&_0x58bd13?.['registeredAt'])return{'featureId':_0x58bd13[_0x2e882f(0x19f)],'registeredAt':_0x58bd13[_0x2e882f(0x1a6)]};return null;}export function unregisterSession(_0x1f32c9){const _0x56707b=_0x211fa6,_0xea8ebc={'YewSf':function(_0x32c93b){return _0x32c93b();}},_0x2bfc78=_0xea8ebc['YewSf'](loadCache),_0x4da49b=_0x2bfc78['sessions'][_0x1f32c9];_0x4da49b&&(delete _0x4da49b[_0x56707b(0x19f)],delete _0x4da49b[_0x56707b(0x1a6)],saveCache(_0x2bfc78));}function _0xcdb1(){const _0xc8e1ab=['stringify','FxseJ','existsSync','ShPXj','toISOString','join','EbmJj','lastStopReminderAt','582bwWLUq','4358000FTIPOo','enabled','wGzdX','27vZPNgm','featureId','lastEnabledSessionClearedAt','3nFpjaX','main','master','7cvYUly','CYvTJ','registeredAt','sKqEk','lastPlanReminderAt','rxvag','UziOA','bEnea','now','currentBranch','.claude','xPcUy','180136ygTvHb','branches','HLqaJ','ZxtWH','HEAD','1257724uayXyp','12335WLKtah','19075441QxvatV','AkFuC','pipe','TwmMI','utf-8','292510KUAlKa','vPDqh','GJykg','495180vtFLLg'];_0xcdb1=function(){return _0xc8e1ab;};return _0xcdb1();}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x1a87bc){const _0x593962=_0x211fa6,_0x117072={'yZxYP':function(_0x5a0601,_0x3f9c59){return _0x5a0601>=_0x3f9c59;},'AkFuC':function(_0x5666a5,_0x3029ba){return _0x5666a5(_0x3029ba);}},_0x52a2e1=loadCache(),_0x4fea12=getOrCreateSession(_0x52a2e1,_0x1a87bc),_0x584539=_0x4fea12[_0x593962(0x1a8)]||0x0,_0x37afc5=Date[_0x593962(0x1ac)]();if(_0x117072['yZxYP'](_0x37afc5-_0x584539,PLAN_REMINDER_INTERVAL_MS))return _0x4fea12[_0x593962(0x1a8)]=_0x37afc5,_0x117072[_0x593962(0x18a)](saveCache,_0x52a2e1),!![];return![];}export function shouldShowStopReminder(_0x3f13c2){const _0x22f6da=_0x211fa6,_0x357c23={'sUhim':function(_0x4eacd5){return _0x4eacd5();},'zJbng':function(_0x27ada4,_0x437cb0){return _0x27ada4(_0x437cb0);}},_0x3c2421=_0x357c23['sUhim'](loadCache),_0x12ffa8=getOrCreateSession(_0x3c2421,_0x3f13c2),_0x41de69=_0x12ffa8[_0x22f6da(0x199)]||0x0,_0x1b7f79=Date['now']();if(_0x1b7f79-_0x41de69>=STOP_REMINDER_INTERVAL_MS)return _0x12ffa8[_0x22f6da(0x199)]=_0x1b7f79,_0x357c23['zJbng'](saveCache,_0x3c2421),!![];return![];}export function hasSessionBeenPrompted(_0x16e59d){const _0x9df120=_0x211fa6,_0x47938a={'GJykg':function(_0x5e6be3){return _0x5e6be3();},'RliGO':function(_0x219784,_0x447b1f){return _0x219784===_0x447b1f;}},_0x392283=_0x47938a[_0x9df120(0x190)](loadCache);return _0x47938a['RliGO'](_0x392283['sessions'][_0x16e59d]?.['prompted'],!![]);}export function markSessionPrompted(_0x326f0e){const _0x257570=loadCache(),_0x16a662=getOrCreateSession(_0x257570,_0x326f0e);_0x16a662['prompted']=!![],saveCache(_0x257570);}export function getCacheFile(){return CACHE_FILE;}
|