@ranger-testing/ranger-cli 3.1.6-alpha.cbf7608-55 → 3.1.7-alpha.34400c2-56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/deleteProfile.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/novaActCli.js +1 -1
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/organizationEnvApi.js +1 -1
  60. package/build/commands/utils/playwrightCli.js +1 -1
  61. package/build/commands/utils/profileMessages.js +1 -1
  62. package/build/commands/utils/profileSetupBanner.js +1 -1
  63. package/build/commands/utils/projectsConfig.js +1 -1
  64. package/build/commands/utils/rangerConfig.js +1 -1
  65. package/build/commands/utils/rangerRoot.js +1 -1
  66. package/build/commands/utils/rangerwrightCli.js +1 -1
  67. package/build/commands/utils/resolveProfileContext.js +1 -1
  68. package/build/commands/utils/resolveProfileUrl.js +1 -1
  69. package/build/commands/utils/retry.js +1 -1
  70. package/build/commands/utils/scenarioOriginCheck.js +1 -1
  71. package/build/commands/utils/sessionCache.js +1 -1
  72. package/build/commands/utils/settings.js +1 -1
  73. package/build/commands/utils/skillContent.js +1 -1
  74. package/build/commands/utils/skills.js +1 -1
  75. package/build/commands/utils/stitchWebmFiles.js +1 -1
  76. package/build/commands/utils/telemetry.js +1 -1
  77. package/build/commands/utils/tokenRefresh.js +1 -1
  78. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  79. package/build/commands/utils/tunnelClient.js +1 -1
  80. package/build/commands/utils/userApi.js +1 -1
  81. package/build/commands/utils/version.js +1 -1
  82. package/build/commands/verifyFeature.js +1 -1
  83. package/build/commands/verifyFeatureCli.js +1 -1
  84. package/build/commands/verifyFeatureNovaCli.js +1 -1
  85. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  86. package/package.json +6 -18
@@ -1 +1 @@
1
- (function(_0x2e0ef1,_0x4a83cf){const _0xb42e50=_0x1ef4,_0x2079dd=_0x2e0ef1();while(!![]){try{const _0x231135=parseInt(_0xb42e50(0xd0))/0x1+-parseInt(_0xb42e50(0xcc))/0x2+parseInt(_0xb42e50(0xe4))/0x3+parseInt(_0xb42e50(0xc3))/0x4*(parseInt(_0xb42e50(0xe6))/0x5)+-parseInt(_0xb42e50(0xf5))/0x6+-parseInt(_0xb42e50(0xe0))/0x7+-parseInt(_0xb42e50(0xd6))/0x8*(-parseInt(_0xb42e50(0xcd))/0x9);if(_0x231135===_0x4a83cf)break;else _0x2079dd['push'](_0x2079dd['shift']());}catch(_0x4190bd){_0x2079dd['push'](_0x2079dd['shift']());}}}(_0x687f,0x6a4fe));function _0x1ef4(_0x420433,_0x2a740f){_0x420433=_0x420433-0xb9;const _0x687f4b=_0x687f();let _0x1ef4b7=_0x687f4b[_0x420433];return _0x1ef4b7;}import{existsSync}from'fs';import _0x1363f6 from'inquirer';import{ApiError,fetchAuthConfig,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive,resolveAuthEnvironmentLocally}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';function _0x687f(){const _0x38e999=['string','fPucF','envBaseUrl','\x22\x20no\x20longer\x20exists\x20(or\x20could\x20not\x20be\x20fetched).\x20Options:\x0a','uBsTm','1555220VJgFWa','RANGER_TEST_USERNAME','resolvedEnv','cloud','Profile\x20\x22','\x20\x20Note:\x20--env\x20\x22','ZUiHs','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','\x22\x20only\x20affects\x20ad-hoc\x20profile\x20resolution;\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20use\x20it.','15252uFRgNi','45IfdwwY','baseUrlSource','\x22\x20this\x20run\x20(overrides\x20the\x20profile\x27s\x20pinned\x20env\x20for\x20login).','439745AJIoYb','aNwSV','PPdim','wYzIe','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one\x20ad\x20hoc,\x20or\x0a','\x22\x20is\x20used\x20as\x20the\x20auth-environment\x20assertion\x20for\x20\x22','288128KUjxpp','\x20to\x20override.','\x20\x20Falling\x20back\x20to\x20saved\x20active\x20profile\x20\x22','list','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','yfyxI','\x22.\x20Pass\x20--profile\x20','settings','baseUrl','1134476qDvfXR','RANGER_SESSION_STATE_PATH=','key','authPath','679860pAOWTg','cwd','5YMKHGf','prompt','uhDMv','BPJlt','`\x20to\x20recreate\x20it.','length','startPath','kEpTP','domains','\x20baseUrl\x20<url>','JHMDL','LOjtr','env','plFuR','\x20does\x20not\x20exist.','3780612CxJElX','Cloud\x20profile\x20(recommended)','\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','name','log','OobHC','\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20to\x20switch\x20(see\x20`ranger\x20profile\x20ls`),\x20or\x0a','cdpEndpoint','Mzqla','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','authEnv','uVtvr'];_0x687f=function(){return _0x38e999;};return _0x687f();}export async function resolveProfileContext(_0x4997e5){const _0x4a9dd4=_0x1ef4,_0x55d3da={'Mzqla':function(_0x46f697,_0x55ad68){return _0x46f697(_0x55ad68);},'kEpTP':function(_0x2fadf7,_0x39c81d){return _0x2fadf7!==_0x39c81d;},'uBsTm':function(_0x581ae5,_0x222136){return _0x581ae5 instanceof _0x222136;},'ZUiHs':function(_0x4a25e1,_0x20214d){return _0x4a25e1(_0x20214d);},'OobHC':function(_0x47462c,_0x3398d4){return _0x47462c??_0x3398d4;},'aNwSV':function(_0x35ae79){return _0x35ae79();},'LOjtr':function(_0x4ad407,_0x597b19){return _0x4ad407===_0x597b19;},'wYzIe':function(_0x53c070,_0x46c467){return _0x53c070+_0x46c467;},'begLA':function(_0x5737ec,_0x2b814f){return _0x5737ec+_0x2b814f;},'xGjGF':'\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','plFuR':'\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','JHMDL':_0x4a9dd4(0xdb),'vHghF':function(_0x59febc,_0x4c240f){return _0x59febc(_0x4c240f);},'sSJWk':'`ranger\x20profile\x20add`\x20to\x20create\x20one.','fPucF':function(_0x5cd635,_0x85aaaf){return _0x5cd635&&_0x85aaaf;},'BPJlt':_0x4a9dd4(0xf6),'DqWOt':'cloud','CwuuS':'local','oQsts':function(_0x51860e,_0x2f96f9){return _0x51860e(_0x2f96f9);},'uhDMv':function(_0x39569d,_0x4b4ca5){return _0x39569d(_0x4b4ca5);},'LjDOX':function(_0x10635a,_0x1e79b8){return _0x10635a+_0x1e79b8;},'uVtvr':function(_0x36ecc9,_0x5474b2){return _0x36ecc9+_0x5474b2;},'vukbL':_0x4a9dd4(0xd4)},_0x199d20=_0x4997e5['profile'];let _0xe4e87c=_0x199d20,_0x2e072e=null;const _0x31ed8b=_0x199d20?null:await readActiveProfileName();if(_0x4997e5['authEnv']&&_0x199d20)console[_0x4a9dd4(0xf9)](_0x4a9dd4(0xc8)+_0x4997e5[_0x4a9dd4(0xbc)]+_0x4a9dd4(0xd5)+_0x199d20+_0x4a9dd4(0xcf));else _0x4997e5[_0x4a9dd4(0xbc)]&&!process[_0x4a9dd4(0xf2)][_0x4a9dd4(0xc4)]&&console[_0x4a9dd4(0xf9)]('\x20\x20Note:\x20--env\x20\x22'+_0x4997e5['authEnv']+_0x4a9dd4(0xcb));if(!_0x199d20&&process['env']['RANGER_TEST_USERNAME'])try{const _0x3604a7=await _0x55d3da[_0x4a9dd4(0xba)](resolveAdHocProfile,{'targetUrl':_0x4997e5['baseUrl']??readUrlEnvVars()[_0x4a9dd4(0xc0)],'envKey':_0x4997e5[_0x4a9dd4(0xbc)]});_0x3604a7&&(_0x31ed8b&&_0x55d3da[_0x4a9dd4(0xed)](_0x31ed8b,_0x3604a7[_0x4a9dd4(0xf8)])&&console['log']('\x20\x20RANGER_TEST_USERNAME\x20is\x20set\x20—\x20using\x20profile\x20\x22'+_0x3604a7[_0x4a9dd4(0xf8)]+'\x22\x20instead\x20of\x20the\x20saved\x20active\x20profile\x20\x22'+_0x31ed8b+_0x4a9dd4(0xdd)+_0x31ed8b+_0x4a9dd4(0xd7)),_0xe4e87c=_0x3604a7['name'],_0x2e072e=_0x3604a7['profile']);}catch(_0x560236){if(!_0x31ed8b||_0x4997e5['authEnv'])throw _0x560236;console[_0x4a9dd4(0xf9)]('\x20\x20Warning:\x20'+(_0x55d3da['uBsTm'](_0x560236,Error)?_0x560236['message']:_0x55d3da[_0x4a9dd4(0xc9)](String,_0x560236))),console[_0x4a9dd4(0xf9)](_0x4a9dd4(0xd8)+_0x31ed8b+'\x22.');}if(!_0xe4e87c)_0xe4e87c=_0x55d3da[_0x4a9dd4(0xfa)](_0x31ed8b,undefined);if(!_0xe4e87c)try{const _0x4534de=await _0x55d3da[_0x4a9dd4(0xd1)](listCloudProfiles);if(_0x55d3da['LOjtr'](_0x4534de[_0x4a9dd4(0xeb)],0x1)){const _0x581a5a=_0x4534de[0x0];_0xe4e87c=_0x581a5a[_0x4a9dd4(0xf8)],console[_0x4a9dd4(0xf9)]('\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20'+_0x581a5a[_0x4a9dd4(0xf8)]),console['log'](_0x4a9dd4(0xca));}}catch{}if(!_0xe4e87c)throw new Error(_0x55d3da['wYzIe'](_0x55d3da[_0x4a9dd4(0xd3)](_0x55d3da['begLA']('Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a',_0x55d3da['xGjGF']),_0x55d3da[_0x4a9dd4(0xf3)])+_0x4a9dd4(0xf7),_0x55d3da[_0x4a9dd4(0xf0)]));const _0xb59514=_0x55d3da[_0x4a9dd4(0xba)](getEnvDir,_0xe4e87c),_0x58761b=_0x55d3da['ZUiHs'](existsSync,_0xb59514);let _0x2952a2=_0x2e072e,_0x2fa072=![];if(!_0x2952a2)try{_0x2952a2=await _0x55d3da['vHghF'](fetchCloudProfile,_0xe4e87c);if(!_0x2952a2)_0x2fa072=!![];}catch(_0xd61d60){_0x55d3da[_0x4a9dd4(0xc2)](_0xd61d60,ApiError)&&_0xd61d60['status']===0x194&&(_0x2fa072=!![]);}if(_0x199d20&&_0x2fa072&&!_0x58761b&&!_0x2952a2)throw new Error('Profile\x20\x22'+_0x199d20+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a'+_0x4a9dd4(0xda)+_0x55d3da['sSJWk']);if(_0x55d3da[_0x4a9dd4(0xbf)](_0x2952a2,_0x58761b)){let _0x3d9d27=!![];if(_0x55d3da[_0x4a9dd4(0xd1)](isInteractive)){const {source:_0x5957a9}=await _0x1363f6[_0x4a9dd4(0xe7)]([{'type':_0x4a9dd4(0xd9),'name':'source','message':_0x4a9dd4(0xc7)+_0xe4e87c+_0x4a9dd4(0xbb),'choices':[{'name':_0x55d3da[_0x4a9dd4(0xe9)],'value':_0x55d3da['DqWOt']},{'name':'Local\x20profile','value':_0x55d3da['CwuuS']}],'default':_0x55d3da['DqWOt']}]);_0x3d9d27=_0x55d3da[_0x4a9dd4(0xf1)](_0x5957a9,_0x4a9dd4(0xc6));}if(!_0x3d9d27)_0x2952a2=null;}const _0x5083ec=readProfileOverrides(process[_0x4a9dd4(0xe5)](),_0xe4e87c);let _0x47d1be=null,_0x7e638b,_0x8c9f3c,_0x2806fc,_0x12844e,_0xd67085=null,_0x4ae29e,_0x4169a7;const _0x2febe6=expandOverrides(_0x5083ec),_0xce00c0=_0x55d3da[_0x4a9dd4(0xd1)](readUrlEnvVars);if(_0x2952a2){_0x47d1be=_0x2952a2;const _0x48e367=_0x2952a2['settings']??{},_0x3f490e=mergeCloudProfileSettings(_0x48e367,_0x5083ec??undefined),_0x43e8ab={..._0x2952a2,'settings':_0x3f490e};_0xd67085={'baseUrl':_0x55d3da['oQsts'](expandString,_0x48e367['baseUrl']),'startPath':expandString(_0x48e367[_0x4a9dd4(0xec)])};const _0x57a6a2=await fetchAuthConfig(),_0x222f24=_0x57a6a2?resolveAuthEnvironmentLocally(_0x57a6a2,_0x2952a2['environmentKey']):null;_0x4ae29e=_0x222f24?.[_0x4a9dd4(0xee)]?.[0x0],_0x4169a7=_0x222f24?.[_0x4a9dd4(0xe2)];const _0x19369d=resolveProfileUrl({'flagBaseUrl':_0x4997e5['baseUrl'],'flagStartPath':_0x4997e5['startPath'],'envBaseUrl':_0xce00c0[_0x4a9dd4(0xc0)],'envStartPath':_0xce00c0['envStartPath'],'projectOverrides':_0x2febe6,'cloudSettings':_0xd67085,'authEnvironmentDomain':_0x4ae29e}),_0x1d3893=process[_0x4a9dd4(0xf2)]['RANGER_SESSION_STATE_PATH'];if(_0x1d3893){if(!_0x55d3da[_0x4a9dd4(0xe8)](existsSync,_0x1d3893))throw new Error(_0x4a9dd4(0xe1)+_0x1d3893+_0x4a9dd4(0xf4));_0x7e638b=_0x1d3893,_0x8c9f3c=_0x55d3da['oQsts'](resolveEnvVars,_0x3f490e),_0x2806fc=Boolean(_0x8c9f3c[_0x4a9dd4(0xb9)]);}else{const _0x5513cd=await resolveCloudProfileSession(_0x43e8ab,{'effectiveBaseUrl':_0x19369d['baseUrl'],'telemetry':_0x4997e5['telemetry'],'assertedEnv':_0x4997e5[_0x4a9dd4(0xbc)]});_0x7e638b=_0x5513cd[_0x4a9dd4(0xe3)],_0x8c9f3c=resolveEnvVars(_0x5513cd[_0x4a9dd4(0xde)]),_0x2806fc=Boolean(_0x8c9f3c['cdpEndpoint']),_0x4ae29e=_0x5513cd['resolvedEnv']?.[_0x4a9dd4(0xee)]?.[0x0],_0x4169a7=_0x5513cd[_0x4a9dd4(0xc5)]?.[_0x4a9dd4(0xe2)];}}else{if(!_0x58761b){const _0x30713f=!_0x199d20;throw new Error(_0x30713f?_0x55d3da['LjDOX'](_0x55d3da[_0x4a9dd4(0xbd)]('Active\x20profile\x20\x22'+_0xe4e87c+_0x4a9dd4(0xc1),_0x4a9dd4(0xfb))+_0x55d3da['vukbL'],'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20'+_0xe4e87c+_0x4a9dd4(0xea)):_0x4a9dd4(0xc7)+_0xe4e87c+'\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20'+_0xe4e87c);}const _0x36b913=await _0x55d3da['vHghF'](loadSettings,_0xe4e87c);_0x8c9f3c=resolveEnvVars(_0x36b913),_0x2806fc=Boolean(_0x8c9f3c['cdpEndpoint']),_0x12844e=_0x8c9f3c[_0x4a9dd4(0xdf)];}const _0xde258c=resolveProfileUrl({'flagBaseUrl':_0x4997e5['baseUrl'],'flagStartPath':_0x4997e5[_0x4a9dd4(0xec)],'envBaseUrl':_0xce00c0[_0x4a9dd4(0xc0)],'envStartPath':_0xce00c0['envStartPath'],'localSettingsBaseUrl':_0x12844e,'projectOverrides':_0x2febe6,'cloudSettings':_0xd67085,'authEnvironmentDomain':_0x4ae29e}),_0x532568=_0xde258c['url']??_0xde258c['baseUrl'];if(_0x55d3da['fPucF'](!_0x532568,!_0x2806fc))throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0xe4e87c+'\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20'+_0xe4e87c+_0x4a9dd4(0xef));return{'activeProfile':_0xe4e87c,'resolvedCloudProfile':_0x47d1be,'cloudAuthPath':_0x7e638b,'resolvedSettings':_0x8c9f3c,'isCdpMode':_0x2806fc,'url':_0x532568,'baseUrlSource':_0xde258c[_0x4a9dd4(0xce)],'authEnvKey':_0x4169a7,'startPath':_0xde258c[_0x4a9dd4(0xec)]};}function expandString(_0x2bfb50){if(typeof _0x2bfb50!=='string')return _0x2bfb50;return resolveEnvVars(_0x2bfb50);}function expandOverrides(_0x2edcc0){const _0x24d820=_0x1ef4,_0x339b4a={'PPdim':function(_0x47d8e1,_0x48f21b){return _0x47d8e1===_0x48f21b;},'yfyxI':_0x24d820(0xbe),'axxEc':function(_0xf37c18,_0x228df6){return _0xf37c18(_0x228df6);}};if(!_0x2edcc0)return _0x2edcc0;const _0x468752={..._0x2edcc0};return _0x339b4a[_0x24d820(0xd2)](typeof _0x468752['baseUrl'],_0x339b4a['yfyxI'])&&(_0x468752['baseUrl']=_0x339b4a['axxEc'](resolveEnvVars,_0x468752['baseUrl'])),typeof _0x468752['startPath']===_0x339b4a[_0x24d820(0xdc)]&&(_0x468752['startPath']=resolveEnvVars(_0x468752['startPath'])),_0x468752;}
1
+ (function(_0x2d3653,_0x2c8eab){const _0x337c7b=_0x5903,_0xeb7ff0=_0x2d3653();while(!![]){try{const _0x2093c7=parseInt(_0x337c7b(0xb1))/0x1*(-parseInt(_0x337c7b(0x83))/0x2)+parseInt(_0x337c7b(0xb8))/0x3*(-parseInt(_0x337c7b(0xa3))/0x4)+parseInt(_0x337c7b(0xc8))/0x5*(-parseInt(_0x337c7b(0x88))/0x6)+parseInt(_0x337c7b(0xaf))/0x7+-parseInt(_0x337c7b(0x93))/0x8*(-parseInt(_0x337c7b(0xab))/0x9)+-parseInt(_0x337c7b(0x96))/0xa*(-parseInt(_0x337c7b(0x90))/0xb)+parseInt(_0x337c7b(0x9a))/0xc*(-parseInt(_0x337c7b(0xb4))/0xd);if(_0x2093c7===_0x2c8eab)break;else _0xeb7ff0['push'](_0xeb7ff0['shift']());}catch(_0x254f09){_0xeb7ff0['push'](_0xeb7ff0['shift']());}}}(_0x30ad,0xd192f));import{existsSync}from'fs';import _0x86b3f3 from'inquirer';import{ApiError,fetchAuthConfig,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive,resolveAuthEnvironmentLocally}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';function _0x5903(_0x1c5c96,_0x1500a8){_0x1c5c96=_0x1c5c96-0x83;const _0x30ad4d=_0x30ad();let _0x59035f=_0x30ad4d[_0x1c5c96];return _0x59035f;}import{readActiveProfileName}from'./activeProfile.js';function _0x30ad(){const _0x8eec18=['\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','No\x20baseUrl\x20configured\x20for\x20profile\x20\x22','4CCvqPG','domains','`\x20to\x20recreate\x20it.','environmentKey','source','`ranger\x20profile\x20add`\x20to\x20create\x20one.','PcbRY','\x22\x20instead\x20of\x20the\x20saved\x20active\x20profile\x20\x22','6744069uXtLbA','zkMBo','iGbOe','string','5269047euFGcF','sqoGY','43291oyJZVt','cloud','local','13ZHgPsf','startPath','list','TloKo','2895267iDDrGM','name','log','RANGER_SESSION_STATE_PATH','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','envStartPath','\x20to\x20override.','authPath','\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20to\x20switch\x20(see\x20`ranger\x20profile\x20ls`),\x20or\x0a','Local\x20profile','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','resolvedEnv','cdpEndpoint','Aqkay','CgzvD','2722660GqIadJ','26KgTUwt','Zossp','ALmQJ','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','baseUrl','6gYOSqm','\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20','\x20baseUrl\x20<url>','envBaseUrl','QcIqv','Profile\x20\x22','\x22\x20is\x20used\x20as\x20the\x20auth-environment\x20assertion\x20for\x20\x22','OcGWF','22CaZSak','Cloud\x20profile\x20(recommended)','toFKV','8MhNdut','\x22\x20only\x20affects\x20ad-hoc\x20profile\x20resolution;\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20use\x20it.','settings','7714540WbtMCW','\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','baseUrlSource','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','1369812XgDhkB','message','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','RANGER_SESSION_STATE_PATH=','kiZGI','\x20\x20RANGER_TEST_USERNAME\x20is\x20set\x20—\x20using\x20profile\x20\x22','authEnv'];_0x30ad=function(){return _0x8eec18;};return _0x30ad();}export async function resolveProfileContext(_0x37c212){const _0x110b0f=_0x5903,_0xc1754b={'CgzvD':function(_0x43d21e,_0x18550d){return _0x43d21e(_0x18550d);},'zagvB':function(_0x4e01a0){return _0x4e01a0();},'TXNDW':function(_0x264152,_0x5226f2){return _0x264152!==_0x5226f2;},'zkMBo':function(_0x52dbe8,_0x537fbb){return _0x52dbe8(_0x537fbb);},'gnEsW':function(_0x72f6f1,_0x5f44d6){return _0x72f6f1+_0x5f44d6;},'ALmQJ':'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','GAHMR':_0x110b0f(0x86),'FtRXq':'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','OcGWF':function(_0x201963,_0x1ec6c3){return _0x201963(_0x1ec6c3);},'iGbOe':function(_0x1c057b,_0x3c3d7e){return _0x1c057b instanceof _0x3c3d7e;},'QcIqv':function(_0x35a5cf,_0x51140f){return _0x35a5cf+_0x51140f;},'NzZTc':'\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','LrrLL':function(_0x5e19dd,_0x3768ff){return _0x5e19dd&&_0x3768ff;},'IWmgX':_0x110b0f(0xb6),'wFhGO':_0x110b0f(0xa7),'fzvjF':_0x110b0f(0xb2),'kiZGI':function(_0x45bdf9,_0x13369b,_0x3350f5){return _0x45bdf9(_0x13369b,_0x3350f5);},'dNQFX':function(_0x3199f8,_0x13a7bc){return _0x3199f8(_0x13a7bc);},'Aqkay':function(_0x3bd80e){return _0x3bd80e();},'RsseX':function(_0x26b2e6,_0x59bc04){return _0x26b2e6??_0x59bc04;},'toFKV':function(_0x182421,_0x407d23){return _0x182421(_0x407d23);},'sqoGY':function(_0xdd53cd,_0x3c1df8){return _0xdd53cd+_0x3c1df8;},'aUAdb':_0x110b0f(0xc1),'PcbRY':function(_0x58209,_0x1c3326){return _0x58209(_0x1c3326);},'cyIKV':function(_0x1a4bf8,_0x4327c4){return _0x1a4bf8(_0x4327c4);}},_0x5e676c=_0x37c212['profile'];let _0x1a212b=_0x5e676c,_0x4230f9=null;const _0x2d3ae2=_0x5e676c?null:await readActiveProfileName();if(_0x37c212['authEnv']&&_0x5e676c)console['log']('\x20\x20Note:\x20--env\x20\x22'+_0x37c212[_0x110b0f(0xa0)]+_0x110b0f(0x8e)+_0x5e676c+'\x22\x20this\x20run\x20(overrides\x20the\x20profile\x27s\x20pinned\x20env\x20for\x20login).');else _0x37c212[_0x110b0f(0xa0)]&&!process['env']['RANGER_TEST_USERNAME']&&console[_0x110b0f(0xba)]('\x20\x20Note:\x20--env\x20\x22'+_0x37c212[_0x110b0f(0xa0)]+_0x110b0f(0x94));if(!_0x5e676c&&process['env']['RANGER_TEST_USERNAME'])try{const _0x449ea9=await _0xc1754b[_0x110b0f(0xc7)](resolveAdHocProfile,{'targetUrl':_0x37c212['baseUrl']??_0xc1754b['zagvB'](readUrlEnvVars)['envBaseUrl'],'envKey':_0x37c212['authEnv']});_0x449ea9&&(_0x2d3ae2&&_0xc1754b['TXNDW'](_0x2d3ae2,_0x449ea9[_0x110b0f(0xb9)])&&console['log'](_0x110b0f(0x9f)+_0x449ea9['name']+_0x110b0f(0xaa)+_0x2d3ae2+'\x22.\x20Pass\x20--profile\x20'+_0x2d3ae2+_0x110b0f(0xbf)),_0x1a212b=_0x449ea9[_0x110b0f(0xb9)],_0x4230f9=_0x449ea9['profile']);}catch(_0x3a1f0c){if(!_0x2d3ae2||_0x37c212['authEnv'])throw _0x3a1f0c;console[_0x110b0f(0xba)]('\x20\x20Warning:\x20'+(_0x3a1f0c instanceof Error?_0x3a1f0c[_0x110b0f(0x9b)]:_0xc1754b['zkMBo'](String,_0x3a1f0c))),console[_0x110b0f(0xba)]('\x20\x20Falling\x20back\x20to\x20saved\x20active\x20profile\x20\x22'+_0x2d3ae2+'\x22.');}if(!_0x1a212b)_0x1a212b=_0x2d3ae2??undefined;if(!_0x1a212b)try{const _0xe7bbc9=await listCloudProfiles();if(_0xe7bbc9['length']===0x1){const _0x5aff62=_0xe7bbc9[0x0];_0x1a212b=_0x5aff62[_0x110b0f(0xb9)],console[_0x110b0f(0xba)](_0x110b0f(0xbd)+_0x5aff62['name']),console[_0x110b0f(0xba)](_0x110b0f(0xc3));}}catch{}if(!_0x1a212b)throw new Error(_0xc1754b['gnEsW'](_0xc1754b[_0x110b0f(0x85)]+_0x110b0f(0x9c)+_0xc1754b['GAHMR'],_0x110b0f(0x97))+_0xc1754b['FtRXq']);const _0x47cc48=getEnvDir(_0x1a212b),_0x47ce63=existsSync(_0x47cc48);let _0x18a756=_0x4230f9,_0x147515=![];if(!_0x18a756)try{_0x18a756=await _0xc1754b[_0x110b0f(0x8f)](fetchCloudProfile,_0x1a212b);if(!_0x18a756)_0x147515=!![];}catch(_0x3812a1){_0xc1754b[_0x110b0f(0xad)](_0x3812a1,ApiError)&&_0x3812a1['status']===0x194&&(_0x147515=!![]);}if(_0x5e676c&&_0x147515&&!_0x47ce63&&!_0x18a756)throw new Error(_0xc1754b[_0x110b0f(0x8c)]('Profile\x20\x22'+_0x5e676c+_0x110b0f(0xbc),_0xc1754b['NzZTc'])+_0x110b0f(0xa8));if(_0xc1754b['LrrLL'](_0x18a756,_0x47ce63)){let _0xf6d7c=!![];if(isInteractive()){const {source:_0x16902e}=await _0x86b3f3['prompt']([{'type':_0xc1754b['IWmgX'],'name':_0xc1754b['wFhGO'],'message':_0x110b0f(0x8d)+_0x1a212b+'\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','choices':[{'name':_0x110b0f(0x91),'value':_0xc1754b['fzvjF']},{'name':_0x110b0f(0xc2),'value':_0x110b0f(0xb3)}],'default':'cloud'}]);_0xf6d7c=_0x16902e===_0xc1754b['fzvjF'];}if(!_0xf6d7c)_0x18a756=null;}const _0x411ec2=_0xc1754b[_0x110b0f(0x9e)](readProfileOverrides,process['cwd'](),_0x1a212b);let _0x4e0e35=null,_0x543455,_0x72c168,_0x1da286,_0xc72309,_0x81abba=null,_0x17a3a9,_0xa84a84;const _0x9d1101=_0xc1754b['dNQFX'](expandOverrides,_0x411ec2),_0x4209d1=_0xc1754b[_0x110b0f(0xc6)](readUrlEnvVars);if(_0x18a756){_0x4e0e35=_0x18a756;const _0x177520=_0x18a756['settings']??{},_0x53bc41=mergeCloudProfileSettings(_0x177520,_0xc1754b['RsseX'](_0x411ec2,undefined)),_0x57d9e6={..._0x18a756,'settings':_0x53bc41};_0x81abba={'baseUrl':expandString(_0x177520['baseUrl']),'startPath':_0xc1754b[_0x110b0f(0xac)](expandString,_0x177520[_0x110b0f(0xb5)])};const _0x32ecef=await fetchAuthConfig(),_0x58254d=_0x32ecef?resolveAuthEnvironmentLocally(_0x32ecef,_0x18a756[_0x110b0f(0xa6)]):null;_0x17a3a9=_0x58254d?.['domains']?.[0x0],_0xa84a84=_0x58254d?.['key'];const _0xe961cf=_0xc1754b[_0x110b0f(0x92)](resolveProfileUrl,{'flagBaseUrl':_0x37c212[_0x110b0f(0x87)],'flagStartPath':_0x37c212[_0x110b0f(0xb5)],'envBaseUrl':_0x4209d1['envBaseUrl'],'envStartPath':_0x4209d1['envStartPath'],'projectOverrides':_0x9d1101,'cloudSettings':_0x81abba,'authEnvironmentDomain':_0x17a3a9}),_0x270d2d=process['env'][_0x110b0f(0xbb)];if(_0x270d2d){if(!existsSync(_0x270d2d))throw new Error(_0x110b0f(0x9d)+_0x270d2d+'\x20does\x20not\x20exist.');_0x543455=_0x270d2d,_0x72c168=_0xc1754b[_0x110b0f(0x92)](resolveEnvVars,_0x53bc41),_0x1da286=Boolean(_0x72c168['cdpEndpoint']);}else{const _0x1acf93=await resolveCloudProfileSession(_0x57d9e6,{'effectiveBaseUrl':_0xe961cf[_0x110b0f(0x87)],'telemetry':_0x37c212['telemetry'],'assertedEnv':_0x37c212['authEnv']});_0x543455=_0x1acf93[_0x110b0f(0xc0)],_0x72c168=resolveEnvVars(_0x1acf93[_0x110b0f(0x95)]),_0x1da286=Boolean(_0x72c168[_0x110b0f(0xc5)]),_0x17a3a9=_0x1acf93['resolvedEnv']?.[_0x110b0f(0xa4)]?.[0x0],_0xa84a84=_0x1acf93[_0x110b0f(0xc4)]?.['key'];}}else{if(!_0x47ce63){const _0x331468=!_0x5e676c;throw new Error(_0x331468?_0xc1754b[_0x110b0f(0xb0)]('Active\x20profile\x20\x22'+_0x1a212b+'\x22\x20no\x20longer\x20exists\x20(or\x20could\x20not\x20be\x20fetched).\x20Options:\x0a',_0xc1754b['aUAdb'])+'\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one\x20ad\x20hoc,\x20or\x0a'+(_0x110b0f(0x89)+_0x1a212b+_0x110b0f(0xa5)):_0x110b0f(0x8d)+_0x1a212b+_0x110b0f(0x99)+_0x1a212b);}const _0x596d8c=await _0xc1754b[_0x110b0f(0xa9)](loadSettings,_0x1a212b);_0x72c168=resolveEnvVars(_0x596d8c),_0x1da286=Boolean(_0x72c168[_0x110b0f(0xc5)]),_0xc72309=_0x72c168['baseUrl'];}const _0x496192=_0xc1754b['cyIKV'](resolveProfileUrl,{'flagBaseUrl':_0x37c212['baseUrl'],'flagStartPath':_0x37c212[_0x110b0f(0xb5)],'envBaseUrl':_0x4209d1[_0x110b0f(0x8b)],'envStartPath':_0x4209d1[_0x110b0f(0xbe)],'localSettingsBaseUrl':_0xc72309,'projectOverrides':_0x9d1101,'cloudSettings':_0x81abba,'authEnvironmentDomain':_0x17a3a9}),_0x585f30=_0x496192['url']??_0x496192['baseUrl'];if(!_0x585f30&&!_0x1da286)throw new Error(_0x110b0f(0xa2)+_0x1a212b+_0x110b0f(0xa1)+_0x1a212b+_0x110b0f(0x8a));return{'activeProfile':_0x1a212b,'resolvedCloudProfile':_0x4e0e35,'cloudAuthPath':_0x543455,'resolvedSettings':_0x72c168,'isCdpMode':_0x1da286,'url':_0x585f30,'baseUrlSource':_0x496192[_0x110b0f(0x98)],'authEnvKey':_0xa84a84,'startPath':_0x496192['startPath']};}function expandString(_0x227cd8){const _0x5e392a=_0x5903,_0x37142c={'Zossp':function(_0x34a254,_0x494d1c){return _0x34a254!==_0x494d1c;}};if(_0x37142c[_0x5e392a(0x84)](typeof _0x227cd8,_0x5e392a(0xae)))return _0x227cd8;return resolveEnvVars(_0x227cd8);}function expandOverrides(_0x5e3f9c){const _0x1577d2=_0x5903,_0x2acc48={'TloKo':function(_0x17fcc,_0x17110c){return _0x17fcc===_0x17110c;},'DpPuJ':_0x1577d2(0xae),'kSKnC':function(_0x306248,_0x1cee63){return _0x306248(_0x1cee63);}};if(!_0x5e3f9c)return _0x5e3f9c;const _0xe253fc={..._0x5e3f9c};return _0x2acc48[_0x1577d2(0xb7)](typeof _0xe253fc['baseUrl'],_0x2acc48['DpPuJ'])&&(_0xe253fc[_0x1577d2(0x87)]=_0x2acc48['kSKnC'](resolveEnvVars,_0xe253fc['baseUrl'])),typeof _0xe253fc['startPath']===_0x2acc48['DpPuJ']&&(_0xe253fc['startPath']=resolveEnvVars(_0xe253fc[_0x1577d2(0xb5)])),_0xe253fc;}
@@ -1 +1 @@
1
- (function(_0x1bfdbc,_0x302239){const _0x41fc29=_0x1675,_0x5b6d39=_0x1bfdbc();while(!![]){try{const _0x17e712=parseInt(_0x41fc29(0x148))/0x1+parseInt(_0x41fc29(0x14e))/0x2*(parseInt(_0x41fc29(0x13e))/0x3)+parseInt(_0x41fc29(0x14c))/0x4+-parseInt(_0x41fc29(0x141))/0x5+parseInt(_0x41fc29(0x156))/0x6+parseInt(_0x41fc29(0x13f))/0x7+parseInt(_0x41fc29(0x149))/0x8*(-parseInt(_0x41fc29(0x140))/0x9);if(_0x17e712===_0x302239)break;else _0x5b6d39['push'](_0x5b6d39['shift']());}catch(_0x15325d){_0x5b6d39['push'](_0x5b6d39['shift']());}}}(_0x1393,0xced2b));function firstDefined(..._0x2a46d5){const _0x355bdd=_0x1675,_0x2406bf={'fsGUy':function(_0x3e326a,_0x49ae0c){return _0x3e326a!==_0x49ae0c;},'kUDEW':function(_0x263bc5,_0xbac47){return _0x263bc5!==_0xbac47;}};for(const _0x6f562a of _0x2a46d5){if(_0x6f562a!==undefined&&_0x2406bf['fsGUy'](_0x6f562a,null)&&_0x2406bf[_0x355bdd(0x14d)](_0x6f562a,''))return _0x6f562a;}return undefined;}function _0x1393(){const _0x1ee738=['MSHyN','startsWith','jbrXd','string','2001AusJAK','8901739ODNBvv','9lINZlR','3620750TaAJZJ','auth\x20environment\x20domain','startPath','juaxD','cloud\x20profile\x20settings','EOrSg','nRYzK','806757xRcapI','17976544VPbbpK','LTOne','https://','2491884hRlJNt','kUDEW','10cTNxBW','slice','baseUrl','authEnvironmentDomain','UhnOZ','gfCjB','endsWith','YDUUL','6681750xdGIdF','projectOverrides','projects.json\x20override','AXqIU','zQDmL'];_0x1393=function(){return _0x1ee738;};return _0x1393();}function normalizeAuthEnvironmentDomain(_0x3e59a7){const _0x59fa21=_0x1675;if(!_0x3e59a7)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i['test'](_0x3e59a7))return _0x3e59a7;return _0x59fa21(0x14b)+_0x3e59a7;}export function resolveBaseUrlWithSource(_0x1919df){const _0x9a2604=_0x1675,_0x1706fe={'hJSTr':_0x9a2604(0x150),'gfCjB':function(_0x4f7b3e,_0x31b111){return _0x4f7b3e===_0x31b111;},'LTOne':'--base-url','MSHyN':'RANGER_BASE_URL','rlJEK':_0x9a2604(0x13d),'Zwzgp':_0x9a2604(0x145),'AXqIU':function(_0x4679de,_0x578d4d){return _0x4679de(_0x578d4d);},'YDUUL':_0x9a2604(0x142),'UhnOZ':function(_0x48c7e8,_0x9eb60b){return _0x48c7e8!==_0x9eb60b;},'jbrXd':function(_0x1bc328,_0x1fc74a){return _0x1bc328!==_0x1fc74a;},'nRYzK':function(_0x3c16ec,_0x374c38){return _0x3c16ec!==_0x374c38;}},_0x4c1c36=_0x1919df[_0x9a2604(0x136)],_0x3900a5=!!_0x4c1c36&&_0x1706fe['hJSTr']in _0x4c1c36,_0xe31f75=_0x4c1c36?.[_0x9a2604(0x150)],_0x225780=!(_0x3900a5&&_0x1706fe['gfCjB'](_0xe31f75,null)),_0x537ecc=[[_0x1919df['flagBaseUrl'],_0x1706fe[_0x9a2604(0x14a)]],[_0x1919df['envBaseUrl'],_0x1706fe[_0x9a2604(0x13a)]],[_0x1919df['localSettingsBaseUrl'],'local\x20profile\x20settings'],[_0x1706fe[_0x9a2604(0x153)](typeof _0xe31f75,_0x1706fe['rlJEK'])?_0xe31f75:undefined,_0x9a2604(0x137)],[_0x225780?_0x1919df['cloudSettings']?.['baseUrl']:undefined,_0x1706fe['Zwzgp']],[_0x225780?_0x1706fe[_0x9a2604(0x138)](normalizeAuthEnvironmentDomain,_0x1919df[_0x9a2604(0x151)]):undefined,_0x1706fe[_0x9a2604(0x155)]]];for(const [_0x4d4ffc,_0x10c36f]of _0x537ecc){if(_0x1706fe[_0x9a2604(0x152)](_0x4d4ffc,undefined)&&_0x1706fe[_0x9a2604(0x13c)](_0x4d4ffc,null)&&_0x1706fe[_0x9a2604(0x147)](_0x4d4ffc,''))return{'baseUrl':_0x4d4ffc,'source':_0x10c36f};}return{};}export function resolveBaseUrl(_0x1a606c){const _0x9a3aba=_0x1675,_0x2b426c={'zQDmL':function(_0x4b1ad8,_0x1f0945){return _0x4b1ad8(_0x1f0945);}};return _0x2b426c[_0x9a3aba(0x139)](resolveBaseUrlWithSource,_0x1a606c)[_0x9a3aba(0x150)];}export function resolveStartPath(_0x257be3){const _0x3dbabb=_0x1675,_0x2924a3={'ymeyH':'startPath','tiFDU':function(_0x11f17e,_0x524585){return _0x11f17e===_0x524585;},'cAThS':function(_0x2e046b,_0x1031a4,_0x5e4728,_0x5f14b4,_0x4dec21){return _0x2e046b(_0x1031a4,_0x5e4728,_0x5f14b4,_0x4dec21);},'vwetJ':_0x3dbabb(0x13d)},_0x376250=_0x257be3['projectOverrides'],_0x10446a=!!_0x376250&&_0x2924a3['ymeyH']in _0x376250,_0x5b9cc7=_0x376250?.['startPath'],_0x42b5f3=!(_0x10446a&&_0x2924a3['tiFDU'](_0x5b9cc7,null));return _0x2924a3['cAThS'](firstDefined,_0x257be3['flagStartPath'],_0x257be3['envStartPath'],typeof _0x5b9cc7===_0x2924a3['vwetJ']?_0x5b9cc7:undefined,_0x42b5f3?_0x257be3['cloudSettings']?.[_0x3dbabb(0x143)]:undefined);}function _0x1675(_0x1fab3c,_0x358dc2){_0x1fab3c=_0x1fab3c-0x136;const _0x13935c=_0x1393();let _0x16752c=_0x13935c[_0x1fab3c];return _0x16752c;}export function joinBaseAndPath(_0x24a2bd,_0x3f2989){const _0x4a62d0=_0x1675,_0x7950f3={'EOrSg':function(_0x65f7d3,_0x198942){return _0x65f7d3+_0x198942;},'vpTIL':function(_0x527b22,_0x35e16e){return _0x527b22+_0x35e16e;}};if(!_0x24a2bd)return undefined;if(!_0x3f2989)return _0x24a2bd;const _0x1524f8=_0x24a2bd[_0x4a62d0(0x154)]('/')?_0x24a2bd[_0x4a62d0(0x14f)](0x0,-0x1):_0x24a2bd,_0x214d6e=_0x3f2989[_0x4a62d0(0x13b)]('/')?_0x3f2989:_0x7950f3[_0x4a62d0(0x146)]('/',_0x3f2989);return _0x7950f3['vpTIL'](_0x1524f8,_0x214d6e);}export function resolveProfileUrl(_0x882ac3){const _0x3ef72e=_0x1675,_0x14a921={'juaxD':function(_0x2fb5cd,_0xa6e92){return _0x2fb5cd(_0xa6e92);}},{baseUrl:_0x3c18ea,source:_0xd45579}=_0x14a921[_0x3ef72e(0x144)](resolveBaseUrlWithSource,_0x882ac3),_0x32ab0b=resolveStartPath(_0x882ac3);return{'baseUrl':_0x3c18ea,'baseUrlSource':_0xd45579,'startPath':_0x32ab0b,'url':joinBaseAndPath(_0x3c18ea,_0x32ab0b)};}export function readUrlEnvVars(_0x9cb698=process['env']){return{'envBaseUrl':_0x9cb698['RANGER_BASE_URL'],'envStartPath':_0x9cb698['RANGER_START_PATH']};}
1
+ const _0x3536f9=_0x3ca9;(function(_0x51d344,_0x4f9784){const _0xa48c3a=_0x3ca9,_0xb97ac8=_0x51d344();while(!![]){try{const _0x51070d=-parseInt(_0xa48c3a(0x1e0))/0x1*(-parseInt(_0xa48c3a(0x1e6))/0x2)+parseInt(_0xa48c3a(0x1cf))/0x3+parseInt(_0xa48c3a(0x1dd))/0x4*(parseInt(_0xa48c3a(0x1d9))/0x5)+parseInt(_0xa48c3a(0x1e4))/0x6+-parseInt(_0xa48c3a(0x1e3))/0x7+parseInt(_0xa48c3a(0x1da))/0x8+parseInt(_0xa48c3a(0x1e2))/0x9*(-parseInt(_0xa48c3a(0x1db))/0xa);if(_0x51070d===_0x4f9784)break;else _0xb97ac8['push'](_0xb97ac8['shift']());}catch(_0x3a538e){_0xb97ac8['push'](_0xb97ac8['shift']());}}}(_0x5ecc,0x39893));function firstDefined(..._0x30e242){const _0x159e54=_0x3ca9,_0x3fcf0f={'CQOzQ':function(_0x337bfe,_0x40a9d3){return _0x337bfe!==_0x40a9d3;},'kJclf':function(_0x4be952,_0x54ba12){return _0x4be952!==_0x54ba12;}};for(const _0x49f6b3 of _0x30e242){if(_0x3fcf0f[_0x159e54(0x1d5)](_0x49f6b3,undefined)&&_0x3fcf0f['CQOzQ'](_0x49f6b3,null)&&_0x3fcf0f['kJclf'](_0x49f6b3,''))return _0x49f6b3;}return undefined;}function normalizeAuthEnvironmentDomain(_0x2c77ba){const _0x3685d8=_0x3ca9;if(!_0x2c77ba)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0x3685d8(0x1df)](_0x2c77ba))return _0x2c77ba;return _0x3685d8(0x1cb)+_0x2c77ba;}export function resolveBaseUrlWithSource(_0x1a4f2b){const _0x320bf1=_0x3ca9,_0x28ad5d={'PenXf':function(_0x48fcd0,_0x3fee7c){return _0x48fcd0===_0x3fee7c;},'gwCwW':_0x320bf1(0x1ce),'QpQhx':'projects.json\x20override','aKxpO':'auth\x20environment\x20domain','VIbCE':function(_0x3d41db,_0x4b6c84){return _0x3d41db!==_0x4b6c84;},'ccMmu':function(_0x5de7d1,_0x1f8a8b){return _0x5de7d1!==_0x1f8a8b;}},_0x2d99f3=_0x1a4f2b[_0x320bf1(0x1cc)],_0x3d70c7=!!_0x2d99f3&&_0x320bf1(0x1d3)in _0x2d99f3,_0x25652d=_0x2d99f3?.['baseUrl'],_0x3dc1e6=!(_0x3d70c7&&_0x28ad5d[_0x320bf1(0x1cd)](_0x25652d,null)),_0x4afe4d=[[_0x1a4f2b['flagBaseUrl'],'--base-url'],[_0x1a4f2b['envBaseUrl'],_0x320bf1(0x1dc)],[_0x1a4f2b[_0x320bf1(0x1d7)],_0x28ad5d[_0x320bf1(0x1e7)]],[typeof _0x25652d==='string'?_0x25652d:undefined,_0x28ad5d[_0x320bf1(0x1d4)]],[_0x3dc1e6?_0x1a4f2b['cloudSettings']?.[_0x320bf1(0x1d3)]:undefined,'cloud\x20profile\x20settings'],[_0x3dc1e6?normalizeAuthEnvironmentDomain(_0x1a4f2b['authEnvironmentDomain']):undefined,_0x28ad5d['aKxpO']]];for(const [_0x4c6317,_0x2a2604]of _0x4afe4d){if(_0x28ad5d[_0x320bf1(0x1ca)](_0x4c6317,undefined)&&_0x28ad5d['ccMmu'](_0x4c6317,null)&&_0x4c6317!=='')return{'baseUrl':_0x4c6317,'source':_0x2a2604};}return{};}export function resolveBaseUrl(_0xa1bf75){const _0x1abff6=_0x3ca9,_0x78bda6={'NBhPh':function(_0x285d76,_0x1b1f9a){return _0x285d76(_0x1b1f9a);}};return _0x78bda6[_0x1abff6(0x1c8)](resolveBaseUrlWithSource,_0xa1bf75)[_0x1abff6(0x1d3)];}export function resolveStartPath(_0x42a62d){const _0x445951=_0x3ca9,_0x180755={'oBBYc':function(_0x4215b1,_0x56ff3c){return _0x4215b1 in _0x56ff3c;},'bmhkl':function(_0x1ecff0,_0x5d167c){return _0x1ecff0===_0x5d167c;},'FCTZL':'string'},_0x7240e7=_0x42a62d[_0x445951(0x1cc)],_0x577ce6=!!_0x7240e7&&_0x180755['oBBYc'](_0x445951(0x1e1),_0x7240e7),_0x281c7c=_0x7240e7?.['startPath'],_0x4b3161=!(_0x577ce6&&_0x180755['bmhkl'](_0x281c7c,null));return firstDefined(_0x42a62d['flagStartPath'],_0x42a62d[_0x445951(0x1e8)],_0x180755['bmhkl'](typeof _0x281c7c,_0x180755['FCTZL'])?_0x281c7c:undefined,_0x4b3161?_0x42a62d[_0x445951(0x1d0)]?.['startPath']:undefined);}export function joinBaseAndPath(_0x58bab6,_0x26e375){const _0x5b62cd=_0x3ca9,_0x4dcd05={'Yzhux':function(_0x36c3d6,_0x2fec4f){return _0x36c3d6+_0x2fec4f;}};if(!_0x58bab6)return undefined;if(!_0x26e375)return _0x58bab6;const _0x43c614=_0x58bab6[_0x5b62cd(0x1d8)]('/')?_0x58bab6[_0x5b62cd(0x1d6)](0x0,-0x1):_0x58bab6,_0x2fda41=_0x26e375[_0x5b62cd(0x1d1)]('/')?_0x26e375:_0x4dcd05['Yzhux']('/',_0x26e375);return _0x43c614+_0x2fda41;}export function resolveProfileUrl(_0x3013ea){const _0x149516=_0x3ca9,_0xca1aa0={'NcfJs':function(_0x1ce875,_0xfaca73){return _0x1ce875(_0xfaca73);},'EUxzB':function(_0x32ba03,_0x1c39df,_0x4adddc){return _0x32ba03(_0x1c39df,_0x4adddc);}},{baseUrl:_0x4507dd,source:_0x4cf2be}=_0xca1aa0[_0x149516(0x1e5)](resolveBaseUrlWithSource,_0x3013ea),_0x30ab10=resolveStartPath(_0x3013ea);return{'baseUrl':_0x4507dd,'baseUrlSource':_0x4cf2be,'startPath':_0x30ab10,'url':_0xca1aa0[_0x149516(0x1d2)](joinBaseAndPath,_0x4507dd,_0x30ab10)};}function _0x3ca9(_0x5ada22,_0x5a81e9){_0x5ada22=_0x5ada22-0x1c8;const _0x5eccba=_0x5ecc();let _0x3ca9aa=_0x5eccba[_0x5ada22];return _0x3ca9aa;}export function readUrlEnvVars(_0x113ff0=process[_0x3536f9(0x1c9)]){const _0x3c2763=_0x3536f9;return{'envBaseUrl':_0x113ff0['RANGER_BASE_URL'],'envStartPath':_0x113ff0[_0x3c2763(0x1de)]};}function _0x5ecc(){const _0x21ea77=['536185riCAtW','2433904OOQnst','1275740OPrtAt','RANGER_BASE_URL','12YLDlPB','RANGER_START_PATH','test','197WOViUy','startPath','72wpuHny','974365gSUspD','353568uejsbc','NcfJs','2462TLwile','gwCwW','envStartPath','NBhPh','env','VIbCE','https://','projectOverrides','PenXf','local\x20profile\x20settings','1404210MljPOO','cloudSettings','startsWith','EUxzB','baseUrl','QpQhx','CQOzQ','slice','localSettingsBaseUrl','endsWith'];_0x5ecc=function(){return _0x21ea77;};return _0x5ecc();}
@@ -1 +1 @@
1
- (function(_0x198fd1,_0x65e552){const _0xf43d01=_0x1ed8,_0xaf3c73=_0x198fd1();while(!![]){try{const _0x4567ae=parseInt(_0xf43d01(0x16e))/0x1*(-parseInt(_0xf43d01(0x15c))/0x2)+-parseInt(_0xf43d01(0x16d))/0x3*(-parseInt(_0xf43d01(0x166))/0x4)+parseInt(_0xf43d01(0x167))/0x5*(-parseInt(_0xf43d01(0x16b))/0x6)+-parseInt(_0xf43d01(0x15e))/0x7*(parseInt(_0xf43d01(0x15f))/0x8)+parseInt(_0xf43d01(0x162))/0x9+parseInt(_0xf43d01(0x168))/0xa+parseInt(_0xf43d01(0x169))/0xb;if(_0x4567ae===_0x65e552)break;else _0xaf3c73['push'](_0xaf3c73['shift']());}catch(_0x644178){_0xaf3c73['push'](_0xaf3c73['shift']());}}}(_0x4cc5,0x2214a));function _0x4cc5(){const _0x7ed138=['1655766WJUchK','NSsjs','pow','label','4WzLvGE','281525MUMOIh','1926780sIoOZF','400048agjupE','maxRetries','12ilscHO','baseDelayMs','489627wrMcJP','9929qLOHhM','46LMxqNM','),\x20retrying\x20in\x20','7ZRtSEF','765264zEUHfu','\x20failed\x20(attempt\x20','rvHTk'];_0x4cc5=function(){return _0x7ed138;};return _0x4cc5();}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x1ed8(_0x220ab3,_0x4e0e5a){_0x220ab3=_0x220ab3-0x15c;const _0x4cc5c0=_0x4cc5();let _0x1ed812=_0x4cc5c0[_0x220ab3];return _0x1ed812;}export async function withRetry(_0x4ba59a,_0x4175ce){const _0x4d49cf=_0x1ed8,_0x21149d={'rvHTk':function(_0x1976b9,_0x4b8488){return _0x1976b9<=_0x4b8488;},'NSsjs':function(_0x4c5f67,_0x57f062){return _0x4c5f67(_0x57f062);},'srPHx':function(_0x5d9ed8,_0x5a9e77){return _0x5d9ed8*_0x5a9e77;}},_0xe84777=_0x4175ce?.[_0x4d49cf(0x16a)]??DEFAULT_MAX_RETRIES,_0x4d67c6=_0x4175ce?.[_0x4d49cf(0x16c)]??DEFAULT_BASE_DELAY_MS;let _0x370006;for(let _0x4307e5=0x0;_0x21149d[_0x4d49cf(0x161)](_0x4307e5,_0xe84777);_0x4307e5++){try{return await _0x4ba59a();}catch(_0x5c201b){_0x370006=_0x5c201b instanceof Error?_0x5c201b:new Error(_0x21149d[_0x4d49cf(0x163)](String,_0x5c201b));if(_0x4307e5<_0xe84777){const _0x2037bf=_0x21149d['srPHx'](_0x4d67c6,Math[_0x4d49cf(0x164)](0x2,_0x4307e5));_0x4175ce?.['label']&&console['error'](_0x4175ce[_0x4d49cf(0x165)]+_0x4d49cf(0x160)+(_0x4307e5+0x1)+'/'+(_0xe84777+0x1)+_0x4d49cf(0x15d)+_0x2037bf+'ms...'),await new Promise(_0x433ea2=>setTimeout(_0x433ea2,_0x2037bf));}}}throw _0x370006;}
1
+ (function(_0x4304ce,_0x1c2e1b){const _0x485dc2=_0xdf9e,_0x2bd6e2=_0x4304ce();while(!![]){try{const _0xd63359=parseInt(_0x485dc2(0x17a))/0x1+-parseInt(_0x485dc2(0x178))/0x2+-parseInt(_0x485dc2(0x172))/0x3*(-parseInt(_0x485dc2(0x16d))/0x4)+parseInt(_0x485dc2(0x17b))/0x5*(parseInt(_0x485dc2(0x173))/0x6)+-parseInt(_0x485dc2(0x176))/0x7*(-parseInt(_0x485dc2(0x171))/0x8)+parseInt(_0x485dc2(0x177))/0x9*(-parseInt(_0x485dc2(0x16c))/0xa)+-parseInt(_0x485dc2(0x175))/0xb;if(_0xd63359===_0x1c2e1b)break;else _0x2bd6e2['push'](_0x2bd6e2['shift']());}catch(_0xcafe7f){_0x2bd6e2['push'](_0x2bd6e2['shift']());}}}(_0x1c17,0xc879e));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0xdf9e(_0x38ba89,_0x52589f){_0x38ba89=_0x38ba89-0x16c;const _0x1c1749=_0x1c17();let _0x52b721=_0x1c1749[_0x38ba89];return _0x52b721;}function _0x1c17(){const _0x290eec=['baseDelayMs','40FtWdFz','2033260sgRtpY','label','pow','ms...','1368vQENpu','3iicjPK','30TBChqA','error','14322847mCMkqk','54817RZymfK','3043494vsvevu','1766310IOLyqI','okQpt','1274015gaKYSz','1237615BeTUCo'];_0x1c17=function(){return _0x290eec;};return _0x1c17();}export async function withRetry(_0x27c4fb,_0xa5b2d3){const _0x4f3568=_0xdf9e,_0x44b1c7={'hXETU':function(_0x47c25b,_0x3808c7){return _0x47c25b(_0x3808c7);},'okQpt':function(_0x28062d,_0x4a2227){return _0x28062d*_0x4a2227;},'HyHVA':function(_0x29f43f,_0x1b1198){return _0x29f43f+_0x1b1198;}},_0x3f83b5=_0xa5b2d3?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x3def6e=_0xa5b2d3?.[_0x4f3568(0x17c)]??DEFAULT_BASE_DELAY_MS;let _0x4368aa;for(let _0x562f6d=0x0;_0x562f6d<=_0x3f83b5;_0x562f6d++){try{return await _0x27c4fb();}catch(_0x59da26){_0x4368aa=_0x59da26 instanceof Error?_0x59da26:new Error(_0x44b1c7['hXETU'](String,_0x59da26));if(_0x562f6d<_0x3f83b5){const _0x499d57=_0x44b1c7[_0x4f3568(0x179)](_0x3def6e,Math[_0x4f3568(0x16f)](0x2,_0x562f6d));_0xa5b2d3?.[_0x4f3568(0x16e)]&&console[_0x4f3568(0x174)](_0xa5b2d3[_0x4f3568(0x16e)]+'\x20failed\x20(attempt\x20'+_0x44b1c7['HyHVA'](_0x562f6d,0x1)+'/'+(_0x3f83b5+0x1)+'),\x20retrying\x20in\x20'+_0x499d57+_0x4f3568(0x170)),await new Promise(_0x36f633=>setTimeout(_0x36f633,_0x499d57));}}}throw _0x4368aa;}
@@ -1 +1 @@
1
- (function(_0x4b798e,_0x26c706){const _0x1fc0d4=_0xbd77,_0x3bd4cb=_0x4b798e();while(!![]){try{const _0x19400b=-parseInt(_0x1fc0d4(0x19b))/0x1+-parseInt(_0x1fc0d4(0x190))/0x2*(parseInt(_0x1fc0d4(0x197))/0x3)+parseInt(_0x1fc0d4(0x19a))/0x4*(parseInt(_0x1fc0d4(0x19d))/0x5)+-parseInt(_0x1fc0d4(0x192))/0x6*(parseInt(_0x1fc0d4(0x194))/0x7)+-parseInt(_0x1fc0d4(0x198))/0x8+parseInt(_0x1fc0d4(0x193))/0x9*(parseInt(_0x1fc0d4(0x195))/0xa)+parseInt(_0x1fc0d4(0x18f))/0xb*(parseInt(_0x1fc0d4(0x19c))/0xc);if(_0x19400b===_0x26c706)break;else _0x3bd4cb['push'](_0x3bd4cb['shift']());}catch(_0x1c633f){_0x3bd4cb['push'](_0x3bd4cb['shift']());}}}(_0x198a,0xea1aa));function _0xbd77(_0x211076,_0x585250){_0x211076=_0x211076-0x18f;const _0x198a27=_0x198a();let _0xbd7738=_0x198a27[_0x211076];return _0xbd7738;}function _0x198a(){const _0x215e3b=['660600lhMRXN','3504NkLgyU','1933555naskTD','add','101288DSTJSv','214642lUbYDu','matchAll','6VOGATF','2683107LqPPyt','427812ZQmOlt','10qqqHjJ','replace','42xwYtTb','7711136CjjGES','filter','12mqtvfT'];_0x198a=function(){return _0x215e3b;};return _0x198a();}const ABSOLUTE_URL_PATTERN=/https?:\/\/[^\s"'<>()\[\]]+/gi;export function extractUrlOrigins(_0x10e17e){const _0x4d6366=_0xbd77,_0x5bb3ad=new Set();for(const _0x55d0cb of _0x10e17e[_0x4d6366(0x191)](ABSOLUTE_URL_PATTERN)){const _0x150938=_0x55d0cb[0x0][_0x4d6366(0x196)](/[.,;:!?]+$/,'');try{_0x5bb3ad[_0x4d6366(0x19e)](new URL(_0x150938)['origin']);}catch{}}return[..._0x5bb3ad];}export function findScenarioOriginMismatches(_0xe91d3,_0x2a6dcf){const _0xaf4d1c=_0xbd77;let _0x1dc4e4;try{_0x1dc4e4=new URL(_0x2a6dcf)['origin'];}catch{return[];}return extractUrlOrigins(_0xe91d3)[_0xaf4d1c(0x199)](_0x4a4c15=>_0x4a4c15!==_0x1dc4e4);}
1
+ (function(_0x5b0469,_0x894d60){const _0x1d802b=_0x375a,_0x6cd70b=_0x5b0469();while(!![]){try{const _0x4c2665=-parseInt(_0x1d802b(0x167))/0x1+-parseInt(_0x1d802b(0x164))/0x2+-parseInt(_0x1d802b(0x16b))/0x3+parseInt(_0x1d802b(0x168))/0x4*(-parseInt(_0x1d802b(0x162))/0x5)+-parseInt(_0x1d802b(0x169))/0x6*(parseInt(_0x1d802b(0x166))/0x7)+-parseInt(_0x1d802b(0x161))/0x8*(parseInt(_0x1d802b(0x160))/0x9)+parseInt(_0x1d802b(0x16a))/0xa;if(_0x4c2665===_0x894d60)break;else _0x6cd70b['push'](_0x6cd70b['shift']());}catch(_0x56b7fd){_0x6cd70b['push'](_0x6cd70b['shift']());}}}(_0x22c1,0x8f54b));function _0x22c1(){const _0x3970ef=['10031WVWfYK','798006XYyAuP','136636VjPpge','2022OLRrjC','50406960kXpncU','2811717QVjQqb','filter','1447290BYQpxo','56CNbzTT','120cREYdM','matchAll','579922PWYJsF','MWIiv'];_0x22c1=function(){return _0x3970ef;};return _0x22c1();}const ABSOLUTE_URL_PATTERN=/https?:\/\/[^\s"'<>()\[\]]+/gi;function _0x375a(_0x3440ef,_0x4871d4){_0x3440ef=_0x3440ef-0x160;const _0x22c1dc=_0x22c1();let _0x375ac4=_0x22c1dc[_0x3440ef];return _0x375ac4;}export function extractUrlOrigins(_0x55865c){const _0x26bb45=_0x375a,_0x1dcfed=new Set();for(const _0x4eee73 of _0x55865c[_0x26bb45(0x163)](ABSOLUTE_URL_PATTERN)){const _0x1c9b3c=_0x4eee73[0x0]['replace'](/[.,;:!?]+$/,'');try{_0x1dcfed['add'](new URL(_0x1c9b3c)['origin']);}catch{}}return[..._0x1dcfed];}export function findScenarioOriginMismatches(_0x23e4f8,_0x2788c6){const _0x3724cd=_0x375a,_0x418ada={'MWIiv':function(_0x340bbd,_0x4330e7){return _0x340bbd(_0x4330e7);}};let _0x2c1829;try{_0x2c1829=new URL(_0x2788c6)['origin'];}catch{return[];}return _0x418ada[_0x3724cd(0x165)](extractUrlOrigins,_0x23e4f8)[_0x3724cd(0x16c)](_0xbd1dfc=>_0xbd1dfc!==_0x2c1829);}
@@ -1 +1 @@
1
- const _0x24ffec=_0x49ac;(function(_0x3de06c,_0x1e7411){const _0x300986=_0x49ac,_0x474829=_0x3de06c();while(!![]){try{const _0x923c30=-parseInt(_0x300986(0x69))/0x1+parseInt(_0x300986(0x91))/0x2*(-parseInt(_0x300986(0x8a))/0x3)+-parseInt(_0x300986(0x7c))/0x4+parseInt(_0x300986(0x82))/0x5+-parseInt(_0x300986(0x8c))/0x6+-parseInt(_0x300986(0x88))/0x7*(-parseInt(_0x300986(0x74))/0x8)+parseInt(_0x300986(0x71))/0x9;if(_0x923c30===_0x1e7411)break;else _0x474829['push'](_0x474829['shift']());}catch(_0xe57155){_0x474829['push'](_0x474829['shift']());}}}(_0x1b8e,0xcd55e));import*as _0x363721 from'fs';import*as _0x52bc9b from'path';import*as _0x24a75c from'os';import{execSync}from'child_process';const CACHE_FILE=_0x52bc9b[_0x24ffec(0x7a)](_0x24a75c[_0x24ffec(0x83)](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x325096=_0x24ffec,_0x5c5cbc={'FpqxK':function(_0x2185c4){return _0x2185c4();}};try{if(_0x363721['existsSync'](CACHE_FILE)){const _0x39b33f=JSON['parse'](_0x363721[_0x325096(0x67)](CACHE_FILE,_0x325096(0x6d)));return{'version':0x3,'sessions':_0x39b33f[_0x325096(0x6e)]||{},'branches':_0x39b33f[_0x325096(0x6b)]||{},'lastEnabledSessionClearedAt':_0x39b33f['lastEnabledSessionClearedAt']};}}catch{}return _0x5c5cbc['FpqxK'](createEmptyCache);}function saveCache(_0x2d1c5b){const _0x143723=_0x24ffec;try{const _0x9fecb1=_0x52bc9b['dirname'](CACHE_FILE);!_0x363721[_0x143723(0x89)](_0x9fecb1)&&_0x363721['mkdirSync'](_0x9fecb1,{'recursive':!![]}),_0x363721['writeFileSync'](CACHE_FILE,JSON[_0x143723(0x73)](_0x2d1c5b,null,0x2));}catch{}}export function getCurrentBranch(){const _0x10d4c2=_0x24ffec,_0x15b27e={'OYhwL':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','eQwXa':'pipe'};try{const _0x38ef57=execSync(_0x15b27e['OYhwL'],{'encoding':_0x10d4c2(0x6d),'stdio':[_0x15b27e['eQwXa'],_0x10d4c2(0x78),_0x15b27e[_0x10d4c2(0x84)]]})[_0x10d4c2(0x93)]();if(!_0x38ef57||_0x38ef57===_0x10d4c2(0x70))return null;return _0x38ef57;}catch{return null;}}export function enableBranch(_0x49893e){const _0x36ba01=_0x24ffec,_0x27e0ee={'GJBeJ':function(_0x297cae){return _0x297cae();},'VZYjJ':function(_0x154380,_0x3d23dc){return _0x154380(_0x3d23dc);}},_0x11c032=_0x27e0ee[_0x36ba01(0x7b)](loadCache);_0x11c032[_0x36ba01(0x6b)][_0x49893e]=!![],_0x27e0ee['VZYjJ'](saveCache,_0x11c032);}export function disableBranch(_0x4ee243){const _0x1a81a2=_0x24ffec,_0x484c09=loadCache();delete _0x484c09[_0x1a81a2(0x6b)][_0x4ee243],saveCache(_0x484c09);}export function isBranchEnabled(_0x26b28b){const _0x11985b=_0x24ffec,_0x567874={'CtPar':function(_0x499266,_0x4fc961){return _0x499266===_0x4fc961;}},_0x3af0e6=loadCache();return _0x567874[_0x11985b(0x96)](_0x3af0e6['branches'][_0x26b28b],!![]);}function getOrCreateSession(_0x2b127c,_0x61fec0){const _0x22147f=_0x24ffec;return!_0x2b127c[_0x22147f(0x6e)][_0x61fec0]&&(_0x2b127c['sessions'][_0x61fec0]={}),_0x2b127c[_0x22147f(0x6e)][_0x61fec0];}export function enableSession(_0x32199d){const _0x591a05=_0x24ffec,_0x2e6e26={'RnOIe':function(_0x3ffda7,_0x3d33c4,_0x39bfea){return _0x3ffda7(_0x3d33c4,_0x39bfea);},'FaUBf':function(_0x349831){return _0x349831();},'vvcdn':'master'},_0x2044a8=loadCache(),_0x435324=_0x2e6e26[_0x591a05(0x87)](getOrCreateSession,_0x2044a8,_0x32199d);_0x435324[_0x591a05(0x8f)]=!![];const _0x484e94=_0x2e6e26['FaUBf'](getCurrentBranch);_0x484e94&&_0x484e94!==_0x591a05(0x8e)&&_0x484e94!==_0x2e6e26[_0x591a05(0x80)]&&(_0x2044a8[_0x591a05(0x6b)][_0x484e94]=!![],_0x435324[_0x591a05(0x90)]=_0x484e94),saveCache(_0x2044a8);}export function isSessionEnabled(_0x588dc4){const _0x29460a=_0x24ffec,_0x455edf={'ymrMP':function(_0x4646c0){return _0x4646c0();},'MKxjZ':function(_0x3a57ef,_0x1e2c8e){return _0x3a57ef===_0x1e2c8e;},'DqCay':function(_0x3791cb,_0x12c5f0){return _0x3791cb||_0x12c5f0;}},_0x5726c7=_0x455edf['ymrMP'](loadCache),_0x5326d7=getCurrentBranch();if(!_0x5326d7||_0x455edf['MKxjZ'](_0x5326d7,'main')||_0x5326d7===_0x29460a(0x6f))return _0x455edf[_0x29460a(0x6a)](_0x5726c7['sessions'][_0x588dc4]?.['enabled'],!![]);const _0x4431dc=_0x455edf[_0x29460a(0x6a)](_0x5726c7['branches'][_0x5326d7],!![]),_0x5de428=_0x455edf['MKxjZ'](_0x5726c7[_0x29460a(0x6e)][_0x588dc4]?.['enabled'],!![]);return _0x455edf['DqCay'](_0x4431dc,_0x5de428);}export function disableSession(_0x3cbff6){const _0x14e774=_0x24ffec,_0x2ba518={'xmKYt':function(_0x522d19){return _0x522d19();},'VQAWZ':function(_0x4eefc7,_0x4c81d9,_0x39fbea){return _0x4eefc7(_0x4c81d9,_0x39fbea);},'ZIwcH':function(_0x398867,_0xe7453b){return _0x398867(_0xe7453b);}},_0x593946=_0x2ba518[_0x14e774(0x86)](loadCache),_0x5cf31e=_0x2ba518['VQAWZ'](getOrCreateSession,_0x593946,_0x3cbff6);_0x5cf31e['enabled']=![],_0x2ba518['ZIwcH'](saveCache,_0x593946);}export function updateBranchTracking(_0xcdf2c4){const _0x5d7d55=_0x24ffec,_0x48dd38={'anAEz':function(_0x25a416){return _0x25a416();},'bxeoB':function(_0x2c92b0){return _0x2c92b0();},'hRofL':function(_0x3bf89e,_0x457669){return _0x3bf89e===_0x457669;},'AILHR':_0x5d7d55(0x8e),'QGrYo':function(_0xee5554,_0xa21fff){return _0xee5554(_0xa21fff);}},_0x4258a0=_0x48dd38[_0x5d7d55(0x7f)](loadCache),_0x8b8ad3=_0x4258a0[_0x5d7d55(0x6e)][_0xcdf2c4];if(!_0x8b8ad3?.['enabled'])return;const _0x26c381=_0x48dd38[_0x5d7d55(0x77)](getCurrentBranch);if(!_0x26c381||_0x48dd38[_0x5d7d55(0x75)](_0x26c381,_0x48dd38[_0x5d7d55(0x76)])||_0x48dd38[_0x5d7d55(0x75)](_0x26c381,'master'))return;_0x8b8ad3['currentBranch']!==_0x26c381&&(_0x4258a0[_0x5d7d55(0x6b)][_0x26c381]=!![],_0x8b8ad3[_0x5d7d55(0x90)]=_0x26c381,_0x48dd38[_0x5d7d55(0x66)](saveCache,_0x4258a0));}export function initBranchTracking(_0x27ea7d){const _0x27eb24=_0x24ffec,_0x39d060={'rixOx':function(_0x23d502){return _0x23d502();},'Nkyus':function(_0x5bb972,_0x33c4ca){return _0x5bb972===_0x33c4ca;},'IZUVH':_0x27eb24(0x8e),'NpFQl':function(_0x4df4e3,_0x1a847b){return _0x4df4e3(_0x1a847b);}},_0xaa656d=loadCache(),_0x2bf44f=_0x39d060[_0x27eb24(0x8b)](getCurrentBranch);if(!_0x2bf44f||_0x39d060[_0x27eb24(0x7d)](_0x2bf44f,_0x39d060['IZUVH'])||_0x2bf44f==='master')return;if(_0xaa656d[_0x27eb24(0x6b)][_0x2bf44f]===!![]){const _0xf711a2=getOrCreateSession(_0xaa656d,_0x27ea7d);_0xf711a2[_0x27eb24(0x8f)]=!![],_0xf711a2['currentBranch']=_0x2bf44f,_0x39d060[_0x27eb24(0x79)](saveCache,_0xaa656d);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x55d1a0){const _0x3eecaf=_0x24ffec,_0x15d603={'sFGng':function(_0x1707aa){return _0x1707aa();}},_0x17e7c1=_0x15d603['sFGng'](loadCache),_0x2560b2=_0x17e7c1['sessions'][_0x55d1a0];_0x2560b2?.['enabled']&&(_0x17e7c1['lastEnabledSessionClearedAt']=Date[_0x3eecaf(0x97)](),saveCache(_0x17e7c1));}export function shouldAutoEnableAfterClear(_0x24f896){const _0x2cde92=_0x24ffec,_0x5925fd={'bBwjr':function(_0x3e0ea4,_0x1c82ea){return _0x3e0ea4!==_0x1c82ea;},'tUlJS':function(_0x4c1aba){return _0x4c1aba();},'VZAMS':function(_0x1403bc,_0x3e3081){return _0x1403bc-_0x3e3081;}};if(_0x5925fd[_0x2cde92(0x65)](_0x24f896,'clear'))return![];const _0xf36581=_0x5925fd[_0x2cde92(0x95)](loadCache),_0x22ef98=_0xf36581['lastEnabledSessionClearedAt'];if(!_0x22ef98)return![];const _0x1bf9bc=_0x5925fd['VZAMS'](Date['now'](),_0x22ef98);return _0x1bf9bc<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x2f4191){const _0x34b4eb=_0x24ffec,_0x319e7e={'gXHQV':function(_0x1a6d0b,_0x140a78,_0x142b62){return _0x1a6d0b(_0x140a78,_0x142b62);},'MXhok':function(_0x203c5a){return _0x203c5a();},'UZfsX':_0x34b4eb(0x8e),'SfKbm':function(_0x2daf75,_0xac84f8){return _0x2daf75!==_0xac84f8;}},_0x3f1ca2=loadCache(),_0x45654b=_0x319e7e[_0x34b4eb(0x99)](getOrCreateSession,_0x3f1ca2,_0x2f4191);_0x45654b['enabled']=!![];const _0x47b044=_0x319e7e[_0x34b4eb(0x8d)](getCurrentBranch);_0x47b044&&_0x47b044!==_0x319e7e[_0x34b4eb(0x81)]&&_0x319e7e['SfKbm'](_0x47b044,'master')&&(_0x45654b[_0x34b4eb(0x90)]=_0x47b044),delete _0x3f1ca2['lastEnabledSessionClearedAt'],saveCache(_0x3f1ca2);}export function registerSession(_0x32102b,_0x3f4069){const _0x1e206e={'XUpyf':function(_0x1e302a){return _0x1e302a();},'oIqYu':function(_0x1ea534,_0x401ba0,_0xe03382){return _0x1ea534(_0x401ba0,_0xe03382);}},_0x42acf2=_0x1e206e['XUpyf'](loadCache),_0xe12f06=_0x1e206e['oIqYu'](getOrCreateSession,_0x42acf2,_0x32102b);_0xe12f06['featureId']=_0x3f4069,_0xe12f06['registeredAt']=new Date()['toISOString'](),saveCache(_0x42acf2);}export function getSessionEntry(_0xcb36e8){const _0x4004ad=_0x24ffec,_0x6cc45d={'wFWaF':function(_0x56e864){return _0x56e864();}},_0x2ff37d=_0x6cc45d['wFWaF'](loadCache),_0x15a614=_0x2ff37d[_0x4004ad(0x6e)][_0xcb36e8];if(_0x15a614?.[_0x4004ad(0x92)]&&_0x15a614?.[_0x4004ad(0x7e)])return{'featureId':_0x15a614['featureId'],'registeredAt':_0x15a614['registeredAt']};return null;}export function unregisterSession(_0x58c7b7){const _0x5aaa2c=_0x24ffec,_0x20065f={'cXBOI':function(_0x49d22f,_0x437e06){return _0x49d22f(_0x437e06);}},_0x4837f8=loadCache(),_0xfbd9bf=_0x4837f8['sessions'][_0x58c7b7];_0xfbd9bf&&(delete _0xfbd9bf[_0x5aaa2c(0x92)],delete _0xfbd9bf['registeredAt'],_0x20065f['cXBOI'](saveCache,_0x4837f8));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x5cbade){const _0x7d2880=_0x24ffec,_0x5632ca={'IWlWn':function(_0x4bb1bd){return _0x4bb1bd();},'yoHji':function(_0xc521b7,_0x2cd2b4){return _0xc521b7>=_0x2cd2b4;}},_0x4282ba=_0x5632ca['IWlWn'](loadCache),_0x5be0b2=getOrCreateSession(_0x4282ba,_0x5cbade),_0x19ef51=_0x5be0b2[_0x7d2880(0x94)]||0x0,_0x448006=Date[_0x7d2880(0x97)]();if(_0x5632ca['yoHji'](_0x448006-_0x19ef51,PLAN_REMINDER_INTERVAL_MS))return _0x5be0b2['lastPlanReminderAt']=_0x448006,saveCache(_0x4282ba),!![];return![];}function _0x1b8e(){const _0x593527=['AILHR','bxeoB','pipe','NpFQl','join','GJBeJ','6701228izpVsV','Nkyus','registeredAt','anAEz','vvcdn','UZfsX','7183510QNaIiQ','homedir','eQwXa','CmgwV','xmKYt','RnOIe','791QAHSHT','existsSync','3VGulkz','rixOx','6675924BLwSgG','MXhok','main','enabled','currentBranch','247602eyOOXN','featureId','trim','lastPlanReminderAt','tUlJS','CtPar','now','HVbDQ','gXHQV','OdtAb','bBwjr','QGrYo','readFileSync','lastStopReminderAt','1627441RxpxUn','MKxjZ','branches','prompted','utf-8','sessions','master','HEAD','23431392KWkbfW','WEmJc','stringify','94872DtERow','hRofL'];_0x1b8e=function(){return _0x593527;};return _0x1b8e();}export function shouldShowStopReminder(_0x4f8c30){const _0x5de0d1=_0x24ffec,_0xe0834c={'OiXLL':function(_0x332f17){return _0x332f17();},'TqWRy':function(_0x26fb25,_0x32f5f6,_0x197401){return _0x26fb25(_0x32f5f6,_0x197401);},'OdtAb':function(_0x16cdb2,_0x35f83d){return _0x16cdb2(_0x35f83d);}},_0x59536a=_0xe0834c['OiXLL'](loadCache),_0x5027ef=_0xe0834c['TqWRy'](getOrCreateSession,_0x59536a,_0x4f8c30),_0x24c1d0=_0x5027ef['lastStopReminderAt']||0x0,_0x12a356=Date[_0x5de0d1(0x97)]();if(_0x12a356-_0x24c1d0>=STOP_REMINDER_INTERVAL_MS)return _0x5027ef[_0x5de0d1(0x68)]=_0x12a356,_0xe0834c[_0x5de0d1(0x9a)](saveCache,_0x59536a),!![];return![];}function _0x49ac(_0x4ca607,_0x37dd0b){_0x4ca607=_0x4ca607-0x65;const _0x1b8e99=_0x1b8e();let _0x49ace4=_0x1b8e99[_0x4ca607];return _0x49ace4;}export function hasSessionBeenPrompted(_0x22ea22){const _0x8566e2=_0x24ffec,_0xc68cb8={'VBeeA':function(_0x30b300){return _0x30b300();},'WEmJc':function(_0x1885d8,_0x5b971d){return _0x1885d8===_0x5b971d;}},_0x5f1e45=_0xc68cb8['VBeeA'](loadCache);return _0xc68cb8[_0x8566e2(0x72)](_0x5f1e45[_0x8566e2(0x6e)][_0x22ea22]?.['prompted'],!![]);}export function markSessionPrompted(_0x150861){const _0x3804dd=_0x24ffec,_0x1e1ceb={'CmgwV':function(_0x72a3a8){return _0x72a3a8();},'sNaNR':function(_0x3036b6,_0x2217c6,_0xd5a0bd){return _0x3036b6(_0x2217c6,_0xd5a0bd);},'HVbDQ':function(_0x1d7fd0,_0x5c32f0){return _0x1d7fd0(_0x5c32f0);}},_0x367912=_0x1e1ceb[_0x3804dd(0x85)](loadCache),_0x2052a8=_0x1e1ceb['sNaNR'](getOrCreateSession,_0x367912,_0x150861);_0x2052a8[_0x3804dd(0x6c)]=!![],_0x1e1ceb[_0x3804dd(0x98)](saveCache,_0x367912);}export function getCacheFile(){return CACHE_FILE;}
1
+ function _0x5b09(){const _0xff86d3=['lClHY','jOYhR','registeredAt','dirname','yiiee','now','yGzdx','6256DMSYGk','11265WvLukW','aLRFm','sessions','HELbL','branches','lastEnabledSessionClearedAt','dmVTc','EFcDd','parse','vpVbz','toISOString','pipe','existsSync','5168385lOZCsN','writeFileSync','clear','featureId','BneAO','currentBranch','24633RuwhdR','Bgdfj','bFXmG','534ruSvPj','ytsEy','tPXUd','1765996QuvWvK','main','GHVRt','fPSbt','HEAD','HLqzS','utf-8','402PsdzxQ','pLVTN','enabled','1854140sUlllq','xYllm','LhheT','prompted','11511360AhFJrb','8qiFKmS','homedir','readFileSync'];_0x5b09=function(){return _0xff86d3;};return _0x5b09();}const _0x3d7d5f=_0x1c4c;(function(_0x486e6c,_0x1f3e4c){const _0x3dd5e6=_0x1c4c,_0x14b78c=_0x486e6c();while(!![]){try{const _0x3ff234=parseInt(_0x3dd5e6(0xeb))/0x1+-parseInt(_0x3dd5e6(0xea))/0x2*(-parseInt(_0x3dd5e6(0x10b))/0x3)+parseInt(_0x3dd5e6(0x104))/0x4+parseInt(_0x3dd5e6(0xdb))/0x5+-parseInt(_0x3dd5e6(0x101))/0x6*(parseInt(_0x3dd5e6(0xfe))/0x7)+-parseInt(_0x3dd5e6(0xe0))/0x8*(-parseInt(_0x3dd5e6(0xf8))/0x9)+-parseInt(_0x3dd5e6(0xdf))/0xa;if(_0x3ff234===_0x1f3e4c)break;else _0x14b78c['push'](_0x14b78c['shift']());}catch(_0x35f1f9){_0x14b78c['push'](_0x14b78c['shift']());}}}(_0x5b09,0x561aa));import*as _0x232705 from'fs';import*as _0x214a08 from'path';import*as _0xa9fd06 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x214a08['join'](_0xa9fd06[_0x3d7d5f(0xe1)](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x41e754=_0x3d7d5f,_0x2bcba1={'GnWVS':'utf-8'};try{if(_0x232705[_0x41e754(0xf7)](CACHE_FILE)){const _0x4a223b=JSON[_0x41e754(0xf3)](_0x232705[_0x41e754(0xe2)](CACHE_FILE,_0x2bcba1['GnWVS']));return{'version':0x3,'sessions':_0x4a223b[_0x41e754(0xed)]||{},'branches':_0x4a223b[_0x41e754(0xef)]||{},'lastEnabledSessionClearedAt':_0x4a223b[_0x41e754(0xf0)]};}}catch{}return createEmptyCache();}function saveCache(_0x740483){const _0x5731ba=_0x3d7d5f;try{const _0x1333fe=_0x214a08[_0x5731ba(0xe6)](CACHE_FILE);!_0x232705[_0x5731ba(0xf7)](_0x1333fe)&&_0x232705['mkdirSync'](_0x1333fe,{'recursive':!![]}),_0x232705[_0x5731ba(0xf9)](CACHE_FILE,JSON['stringify'](_0x740483,null,0x2));}catch{}}export function getCurrentBranch(){const _0x334546=_0x3d7d5f,_0x537da3={'LhheT':function(_0x5d52ce,_0x197aeb,_0x4067eb){return _0x5d52ce(_0x197aeb,_0x4067eb);},'ytsEy':_0x334546(0x10a),'qptYw':_0x334546(0xf6),'pLVTN':_0x334546(0x108)};try{const _0x29c461=_0x537da3[_0x334546(0xdd)](execSync,'git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':_0x537da3[_0x334546(0x102)],'stdio':['pipe',_0x537da3['qptYw'],_0x537da3['qptYw']]})['trim']();if(!_0x29c461||_0x29c461===_0x537da3[_0x334546(0x10c)])return null;return _0x29c461;}catch{return null;}}export function enableBranch(_0x51df14){const _0x44d70d=_0x3d7d5f,_0x30b7b4={'ksRSc':function(_0x11b40a){return _0x11b40a();}},_0x2efbfd=_0x30b7b4['ksRSc'](loadCache);_0x2efbfd[_0x44d70d(0xef)][_0x51df14]=!![],saveCache(_0x2efbfd);}export function disableBranch(_0x4dddd4){const _0x3321e6=_0x3d7d5f,_0x40361={'UiAyZ':function(_0x17c5b3,_0x327bdf){return _0x17c5b3(_0x327bdf);}},_0x49ff8c=loadCache();delete _0x49ff8c[_0x3321e6(0xef)][_0x4dddd4],_0x40361['UiAyZ'](saveCache,_0x49ff8c);}export function isBranchEnabled(_0x562d7e){const _0x33ba44=_0x3d7d5f,_0x1e7c5f={'HELbL':function(_0xe290c9){return _0xe290c9();}},_0x127bb4=_0x1e7c5f[_0x33ba44(0xee)](loadCache);return _0x127bb4[_0x33ba44(0xef)][_0x562d7e]===!![];}function getOrCreateSession(_0x538a93,_0x107195){const _0x61772d=_0x3d7d5f;return!_0x538a93['sessions'][_0x107195]&&(_0x538a93['sessions'][_0x107195]={}),_0x538a93[_0x61772d(0xed)][_0x107195];}export function enableSession(_0x42f097){const _0x2a1e1e=_0x3d7d5f,_0x3a13ec={'jOYhR':function(_0xfb9738){return _0xfb9738();},'gNmpF':function(_0x306464,_0x52dc08,_0x245f96){return _0x306464(_0x52dc08,_0x245f96);},'HJBub':function(_0x7af027){return _0x7af027();},'yGzdx':function(_0x492073,_0x466de9){return _0x492073!==_0x466de9;},'vpVbz':'master'},_0x36714f=_0x3a13ec[_0x2a1e1e(0xe4)](loadCache),_0x209851=_0x3a13ec['gNmpF'](getOrCreateSession,_0x36714f,_0x42f097);_0x209851['enabled']=!![];const _0x2be0e2=_0x3a13ec['HJBub'](getCurrentBranch);_0x2be0e2&&_0x3a13ec[_0x2a1e1e(0xe9)](_0x2be0e2,_0x2a1e1e(0x105))&&_0x2be0e2!==_0x3a13ec[_0x2a1e1e(0xf4)]&&(_0x36714f['branches'][_0x2be0e2]=!![],_0x209851['currentBranch']=_0x2be0e2),saveCache(_0x36714f);}export function isSessionEnabled(_0x30c2aa){const _0x30fc63=_0x3d7d5f,_0x2539a2={'NdGcp':function(_0x261218){return _0x261218();},'bFXmG':function(_0x1f44bd,_0x51f6ed){return _0x1f44bd===_0x51f6ed;},'fPSbt':function(_0x1f43d1,_0x2ccbbb){return _0x1f43d1===_0x2ccbbb;},'EFcDd':'master'},_0x469354=_0x2539a2['NdGcp'](loadCache),_0x317120=getCurrentBranch();if(!_0x317120||_0x2539a2[_0x30fc63(0x100)](_0x317120,'main')||_0x2539a2[_0x30fc63(0x107)](_0x317120,_0x2539a2[_0x30fc63(0xf2)]))return _0x469354[_0x30fc63(0xed)][_0x30c2aa]?.['enabled']===!![];const _0x4cec79=_0x469354['branches'][_0x317120]===!![],_0x8ea6a2=_0x469354[_0x30fc63(0xed)][_0x30c2aa]?.['enabled']===!![];return _0x4cec79||_0x8ea6a2;}export function disableSession(_0xacfb72){const _0x54796a={'xMTSL':function(_0x8cd0c0,_0xa41096,_0x464923){return _0x8cd0c0(_0xa41096,_0x464923);}},_0x442e03=loadCache(),_0x5b6a48=_0x54796a['xMTSL'](getOrCreateSession,_0x442e03,_0xacfb72);_0x5b6a48['enabled']=![],saveCache(_0x442e03);}export function updateBranchTracking(_0x12219e){const _0x143b47=_0x3d7d5f,_0x43da31={'dmVTc':function(_0x38f393){return _0x38f393();},'BneAO':'master','OYkTh':function(_0x5c4283,_0x51190a){return _0x5c4283!==_0x51190a;},'KbIyw':function(_0x3b50fd,_0x49a93a){return _0x3b50fd(_0x49a93a);}},_0x178949=_0x43da31[_0x143b47(0xf1)](loadCache),_0x463417=_0x178949['sessions'][_0x12219e];if(!_0x463417?.[_0x143b47(0x10d)])return;const _0x20a217=_0x43da31['dmVTc'](getCurrentBranch);if(!_0x20a217||_0x20a217===_0x143b47(0x105)||_0x20a217===_0x43da31[_0x143b47(0xfc)])return;_0x43da31['OYkTh'](_0x463417[_0x143b47(0xfd)],_0x20a217)&&(_0x178949[_0x143b47(0xef)][_0x20a217]=!![],_0x463417[_0x143b47(0xfd)]=_0x20a217,_0x43da31['KbIyw'](saveCache,_0x178949));}export function initBranchTracking(_0xa85fe8){const _0x53b81d=_0x3d7d5f,_0x590b08={'xIAnQ':function(_0x37d815,_0x20ac57){return _0x37d815===_0x20ac57;},'GHVRt':'master','HLqzS':function(_0x24f528,_0x2798aa,_0x2efea0){return _0x24f528(_0x2798aa,_0x2efea0);}},_0x25d908=loadCache(),_0x4ac8fe=getCurrentBranch();if(!_0x4ac8fe||_0x4ac8fe==='main'||_0x590b08['xIAnQ'](_0x4ac8fe,_0x590b08[_0x53b81d(0x106)]))return;if(_0x25d908[_0x53b81d(0xef)][_0x4ac8fe]===!![]){const _0x297f84=_0x590b08[_0x53b81d(0x109)](getOrCreateSession,_0x25d908,_0xa85fe8);_0x297f84[_0x53b81d(0x10d)]=!![],_0x297f84[_0x53b81d(0xfd)]=_0x4ac8fe,saveCache(_0x25d908);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x18438a){const _0x4e8985=_0x3d7d5f,_0x57d674=loadCache(),_0x51a219=_0x57d674['sessions'][_0x18438a];_0x51a219?.[_0x4e8985(0x10d)]&&(_0x57d674[_0x4e8985(0xf0)]=Date['now'](),saveCache(_0x57d674));}export function shouldAutoEnableAfterClear(_0xe37f1a){const _0x184793=_0x3d7d5f,_0x2e5d93={'DnxZy':function(_0x4ccc3d,_0xc38afd){return _0x4ccc3d!==_0xc38afd;},'hwDGU':_0x184793(0xfa),'Ykzcq':function(_0x23bf09,_0x3fdcf5){return _0x23bf09-_0x3fdcf5;}};if(_0x2e5d93['DnxZy'](_0xe37f1a,_0x2e5d93['hwDGU']))return![];const _0x30d3af=loadCache(),_0x4b618c=_0x30d3af['lastEnabledSessionClearedAt'];if(!_0x4b618c)return![];const _0x42ecdd=_0x2e5d93['Ykzcq'](Date[_0x184793(0xe8)](),_0x4b618c);return _0x42ecdd<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x24e83b){const _0x4f16e6=_0x3d7d5f,_0x3aef03={'xYllm':function(_0x2f8729,_0x57ea18,_0x513c1a){return _0x2f8729(_0x57ea18,_0x513c1a);},'yiiee':function(_0x357d19){return _0x357d19();},'LZKXr':'main','aLRFm':function(_0x258dcd,_0x4f4731){return _0x258dcd!==_0x4f4731;},'DPJdB':function(_0x2ec667,_0x55b908){return _0x2ec667(_0x55b908);}},_0x1af5a1=loadCache(),_0x518da8=_0x3aef03[_0x4f16e6(0xdc)](getOrCreateSession,_0x1af5a1,_0x24e83b);_0x518da8[_0x4f16e6(0x10d)]=!![];const _0x124d7b=_0x3aef03[_0x4f16e6(0xe7)](getCurrentBranch);_0x124d7b&&_0x124d7b!==_0x3aef03['LZKXr']&&_0x3aef03[_0x4f16e6(0xec)](_0x124d7b,'master')&&(_0x518da8['currentBranch']=_0x124d7b),delete _0x1af5a1[_0x4f16e6(0xf0)],_0x3aef03['DPJdB'](saveCache,_0x1af5a1);}export function registerSession(_0x24a6eb,_0xc61c6b){const _0x2e81d5=_0x3d7d5f,_0x480d8b={'jacAt':function(_0x26c505){return _0x26c505();}},_0x23e18c=_0x480d8b['jacAt'](loadCache),_0x4ad51e=getOrCreateSession(_0x23e18c,_0x24a6eb);_0x4ad51e['featureId']=_0xc61c6b,_0x4ad51e[_0x2e81d5(0xe5)]=new Date()[_0x2e81d5(0xf5)](),saveCache(_0x23e18c);}export function getSessionEntry(_0x11e475){const _0x4bd354=_0x3d7d5f,_0xfe19a9={'UjvAu':function(_0x291793){return _0x291793();}},_0x58dbc4=_0xfe19a9['UjvAu'](loadCache),_0x2d4a01=_0x58dbc4['sessions'][_0x11e475];if(_0x2d4a01?.['featureId']&&_0x2d4a01?.['registeredAt'])return{'featureId':_0x2d4a01[_0x4bd354(0xfb)],'registeredAt':_0x2d4a01['registeredAt']};return null;}function _0x1c4c(_0x566323,_0x1d5d4a){_0x566323=_0x566323-0xdb;const _0x5b0963=_0x5b09();let _0x1c4c9f=_0x5b0963[_0x566323];return _0x1c4c9f;}export function unregisterSession(_0x2ef2f5){const _0x19f553=_0x3d7d5f,_0x33857e={'Bgdfj':function(_0x260d78){return _0x260d78();},'hDSIR':function(_0x4a22e7,_0xfe5139){return _0x4a22e7(_0xfe5139);}},_0x1a9242=_0x33857e[_0x19f553(0xff)](loadCache),_0x1d64b6=_0x1a9242[_0x19f553(0xed)][_0x2ef2f5];_0x1d64b6&&(delete _0x1d64b6['featureId'],delete _0x1d64b6['registeredAt'],_0x33857e['hDSIR'](saveCache,_0x1a9242));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x5bd999){const _0x41d5b2=_0x3d7d5f,_0x4b8f26={'tPXUd':function(_0x443cb7){return _0x443cb7();},'DZGZJ':function(_0x41883a,_0x3e62a9,_0x3f9b0d){return _0x41883a(_0x3e62a9,_0x3f9b0d);},'DqTLJ':function(_0x224005,_0x54a417){return _0x224005>=_0x54a417;},'YUXEK':function(_0x127558,_0x52dca9){return _0x127558(_0x52dca9);}},_0x509342=_0x4b8f26[_0x41d5b2(0x103)](loadCache),_0x2e52de=_0x4b8f26['DZGZJ'](getOrCreateSession,_0x509342,_0x5bd999),_0x37d93a=_0x2e52de['lastPlanReminderAt']||0x0,_0xb08096=Date['now']();if(_0x4b8f26['DqTLJ'](_0xb08096-_0x37d93a,PLAN_REMINDER_INTERVAL_MS))return _0x2e52de['lastPlanReminderAt']=_0xb08096,_0x4b8f26['YUXEK'](saveCache,_0x509342),!![];return![];}export function shouldShowStopReminder(_0x383006){const _0x150c48=loadCache(),_0x258dc6=getOrCreateSession(_0x150c48,_0x383006),_0x468dbf=_0x258dc6['lastStopReminderAt']||0x0,_0x307f27=Date['now']();if(_0x307f27-_0x468dbf>=STOP_REMINDER_INTERVAL_MS)return _0x258dc6['lastStopReminderAt']=_0x307f27,saveCache(_0x150c48),!![];return![];}export function hasSessionBeenPrompted(_0x10860c){const _0x3516bd=loadCache();return _0x3516bd['sessions'][_0x10860c]?.['prompted']===!![];}export function markSessionPrompted(_0x1b7e40){const _0x423aba=_0x3d7d5f,_0x24c4aa={'ybNbh':function(_0x12c1d2,_0x5995a9,_0x42222a){return _0x12c1d2(_0x5995a9,_0x42222a);},'lClHY':function(_0x3d9bd6,_0x2e8f14){return _0x3d9bd6(_0x2e8f14);}},_0x4b19fb=loadCache(),_0x1aaf5b=_0x24c4aa['ybNbh'](getOrCreateSession,_0x4b19fb,_0x1b7e40);_0x1aaf5b[_0x423aba(0xde)]=!![],_0x24c4aa[_0x423aba(0xe3)](saveCache,_0x4b19fb);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x257913=_0x3583;(function(_0x3dcf56,_0x4b75b7){const _0x2bae39=_0x3583,_0xb289ba=_0x3dcf56();while(!![]){try{const _0x1ec3fb=parseInt(_0x2bae39(0x213))/0x1*(-parseInt(_0x2bae39(0x1fe))/0x2)+-parseInt(_0x2bae39(0x1f8))/0x3*(-parseInt(_0x2bae39(0x222))/0x4)+parseInt(_0x2bae39(0x235))/0x5*(-parseInt(_0x2bae39(0x205))/0x6)+parseInt(_0x2bae39(0x245))/0x7+-parseInt(_0x2bae39(0x1d0))/0x8*(parseInt(_0x2bae39(0x1d6))/0x9)+parseInt(_0x2bae39(0x1f7))/0xa+parseInt(_0x2bae39(0x1dd))/0xb;if(_0x1ec3fb===_0x4b75b7)break;else _0xb289ba['push'](_0xb289ba['shift']());}catch(_0x9afe6b){_0xb289ba['push'](_0xb289ba['shift']());}}}(_0x1cbe,0xda2c3));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{chromium}from'playwright';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x1895b8,_0x51d39f){const _0x4fea5c=_0x3583,_0x9acb92={'nfdaz':function(_0x26fad0,_0x162e4c,_0x2cb8e0){return _0x26fad0(_0x162e4c,_0x2cb8e0);},'GMlaB':function(_0x7187cc,_0x498789){return _0x7187cc(_0x498789);},'HtrxP':function(_0x281559,_0x319cb3){return _0x281559!==_0x319cb3;},'mvtIj':function(_0x2789cd,_0x41ab2d){return _0x2789cd(_0x41ab2d);}},_0x152c21=join(_0x51d39f,'ci',_0x1895b8),_0x5109bd=join(_0x51d39f,_0x4fea5c(0x201),_0x1895b8),_0x10f3e2=_0x9acb92[_0x4fea5c(0x1f0)](join,_0x51d39f,_0x1895b8),_0x3a7b29=join(_0x51d39f,_0x4fea5c(0x201)),_0x2b4df3=join(_0x51d39f,'ci');if(existsSync(_0x152c21))return _0x152c21;if(_0x9acb92['GMlaB'](existsSync,_0x5109bd))return _0x5109bd;if(existsSync(_0x10f3e2)&&(_0x9acb92['HtrxP'](_0x10f3e2,_0x3a7b29)&&_0x10f3e2!==_0x2b4df3?!![]:_0x9acb92['mvtIj'](hasLegacyProfileFiles,_0x10f3e2)))return _0x10f3e2;return null;}export function getEnvDir(_0x4d9e81,_0x1d01b5={}){const _0x3c6f7d=_0x3583,_0x1df703={'iboCF':function(_0x1c5604){return _0x1c5604();},'qBWsm':function(_0x3eb3da,_0x393740,_0x51d158){return _0x3eb3da(_0x393740,_0x51d158);},'SxmFT':_0x3c6f7d(0x201)},_0x5515ad=_0x1df703[_0x3c6f7d(0x215)](getRangerDir),_0x3942d6=findEnvInRoot(_0x4d9e81,_0x5515ad);if(_0x3942d6){if(_0x1d01b5['forWrite']&&isLegacyEnvPath(_0x3942d6))throw _0x1df703['qBWsm'](legacyWriteError,_0x4d9e81,_0x3942d6);return _0x3942d6;}const _0x48245b=getRangerHomeDir();if(_0x48245b!==_0x5515ad){const _0x217ee4=findEnvInRoot(_0x4d9e81,_0x48245b);if(_0x217ee4){if(_0x1d01b5['forWrite']&&isLegacyEnvPath(_0x217ee4))throw _0x1df703['qBWsm'](legacyWriteError,_0x4d9e81,_0x217ee4);return _0x217ee4;}}const _0x5bee5e=join(_0x48245b,_0x1df703['SxmFT'],_0x4d9e81);if(_0x1d01b5[_0x3c6f7d(0x1e1)])throw legacyWriteError(_0x4d9e81,_0x5bee5e);return _0x5bee5e;}function isLegacyEnvPath(_0xc27b31){const _0x358267={'HBzhp':function(_0x24c1b0){return _0x24c1b0();}},_0x33fe77=_0x358267['HBzhp'](getRangerDir),_0x295b1d=getRangerHomeDir();for(const _0x56f38f of new Set([_0x33fe77,_0x295b1d])){const _0x5a3fd5=_0x56f38f['endsWith']('/')?_0x56f38f:_0x56f38f+'/';if(_0xc27b31===_0x56f38f||_0xc27b31['startsWith'](_0x5a3fd5))return!![];}return![];}function legacyWriteError(_0x35fdd6,_0xf96e8f){const _0x1ccb62=_0x3583,_0x1b3270={'qkIUD':function(_0x555aec,_0xf28f8c){return _0x555aec+_0xf28f8c;}};return new Error(_0x1b3270['qkIUD'](_0x1b3270[_0x1ccb62(0x23b)]('Refusing\x20to\x20write\x20profile\x20\x22'+_0x35fdd6+_0x1ccb62(0x236)+_0xf96e8f+'.\x0a'+_0x1ccb62(0x1d5),_0x1ccb62(0x241)),_0x1ccb62(0x1cb)));}export function findExistingEnv(_0x363326,_0x4ae696){const _0x10b744=_0x3583,_0x580ad1={'tDObf':function(_0x5c5be6){return _0x5c5be6();},'dsFGV':_0x10b744(0x201),'umIpM':'legacy','JaabB':function(_0x11e524,_0x4b478a,_0x1d7627,_0x3c169f){return _0x11e524(_0x4b478a,_0x1d7627,_0x3c169f);},'jqTRo':function(_0x19c26f,_0x2dce5b){return _0x19c26f(_0x2dce5b);},'bMXAI':function(_0x1d5325,_0x6e3c63){return _0x1d5325===_0x6e3c63;},'Zjide':function(_0x150d9f,_0x3f2c29){return _0x150d9f===_0x3f2c29;},'YIdcP':function(_0x4f4f65,_0x46aa66){return _0x4f4f65===_0x46aa66;}},_0x450fc8=_0x4ae696?.[_0x10b744(0x22b)],_0x160a5a=_0x450fc8?[_0x450fc8]:[_0x580ad1['tDObf'](getRangerDir),getRangerHomeDir()]['filter']((_0x4042ea,_0x1fd634,_0x3b62a4)=>_0x3b62a4['indexOf'](_0x4042ea)===_0x1fd634),_0x305e67=_0x4ae696?.[_0x10b744(0x1e3)]??['ci',_0x580ad1['dsFGV'],_0x580ad1[_0x10b744(0x23c)]];for(const _0x2b7a7f of _0x160a5a){const _0x52d08a=join(_0x2b7a7f,'local'),_0x11d302=join(_0x2b7a7f,'ci'),_0x120702=[{'location':'ci','path':join(_0x2b7a7f,'ci',_0x363326)},{'location':'local','path':_0x580ad1['JaabB'](join,_0x2b7a7f,'local',_0x363326)},{'location':_0x580ad1[_0x10b744(0x23c)],'path':join(_0x2b7a7f,_0x363326)}];for(const _0x47b388 of _0x120702){if(_0x305e67['includes'](_0x47b388['location'])&&_0x580ad1[_0x10b744(0x1de)](existsSync,_0x47b388[_0x10b744(0x1f5)])){if(_0x580ad1[_0x10b744(0x1cf)](_0x47b388['location'],_0x580ad1['umIpM'])&&(_0x580ad1['Zjide'](_0x47b388['path'],_0x52d08a)||_0x580ad1[_0x10b744(0x1d4)](_0x47b388[_0x10b744(0x1f5)],_0x11d302))&&!_0x580ad1[_0x10b744(0x1de)](hasLegacyProfileFiles,_0x47b388[_0x10b744(0x1f5)]))continue;return{'path':_0x47b388['path'],'location':_0x47b388['location']};}}}return null;}function hasLegacyProfileFiles(_0x1582aa){const _0x411678=_0x3583,_0x30c3b3={'RTjtq':function(_0xf89195,_0xe58ee5,_0x197347){return _0xf89195(_0xe58ee5,_0x197347);},'xOZYE':_0x411678(0x231),'zEPuI':'auth.json.enc'};return existsSync(_0x30c3b3[_0x411678(0x243)](join,_0x1582aa,_0x30c3b3['xOZYE']))||existsSync(_0x30c3b3['RTjtq'](join,_0x1582aa,'auth.json'))||existsSync(_0x30c3b3[_0x411678(0x243)](join,_0x1582aa,_0x30c3b3['zEPuI']));}export function isEnvCi(_0x3980b2){const _0x5c0957=_0x3583,_0x26d7d4={'rlHUQ':function(_0x4bed4c){return _0x4bed4c();},'DxfCV':function(_0x6a1d82,_0x1c06af,_0x2a5ae3,_0x564be2){return _0x6a1d82(_0x1c06af,_0x2a5ae3,_0x564be2);}};if(existsSync(join(getRangerDir(),'ci',_0x3980b2)))return!![];const _0x37e0f4=_0x26d7d4[_0x5c0957(0x233)](getRangerHomeDir);if(_0x37e0f4!==getRangerDir()&&existsSync(_0x26d7d4[_0x5c0957(0x22a)](join,_0x37e0f4,'ci',_0x3980b2)))return!![];return![];}export async function cleanupTempFiles(_0x44ba9e){const _0x4d610d=_0x3583,_0x2a43ea={'awdrl':function(_0x19f8dc,_0x5851c7){return _0x19f8dc!==_0x5851c7;}},_0x44c1ad=[_0x44ba9e[_0x4d610d(0x1df)],_0x44ba9e['configPath']][_0x4d610d(0x20d)](Boolean);await Promise[_0x4d610d(0x1e2)](_0x44c1ad['map'](_0x529dd1=>unlink(_0x529dd1)[_0x4d610d(0x23a)](_0x1c4473=>{const _0x421cb2=_0x4d610d;_0x2a43ea[_0x421cb2(0x1d7)](_0x1c4473[_0x421cb2(0x1e4)],_0x421cb2(0x230))&&console[_0x421cb2(0x209)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x529dd1+':',_0x1c4473['message']);})));}export function getSettingsPath(_0x9a57b5){const _0x32f3c3=_0x3583,_0x4ec807={'ziuWU':function(_0x39b478,_0x45e894,_0x5eca45){return _0x39b478(_0x45e894,_0x5eca45);},'FmIbe':function(_0x241caa,_0x2f51f9){return _0x241caa(_0x2f51f9);},'KWOQn':'settings.json'};return _0x4ec807['ziuWU'](join,_0x4ec807[_0x32f3c3(0x212)](getEnvDir,_0x9a57b5),_0x4ec807['KWOQn']);}export async function loadSettings(_0x2d6217){const _0x59bd04=_0x3583,_0x362b27={'unJsH':function(_0xaad51b,_0x1614a9){return _0xaad51b(_0x1614a9);},'ItDoq':_0x59bd04(0x207)},_0x491c90=_0x362b27['unJsH'](getSettingsPath,_0x2d6217);if(!existsSync(_0x491c90))return{};try{const _0xfea052=await readFile(_0x491c90,_0x362b27[_0x59bd04(0x228)]);return JSON['parse'](_0xfea052);}catch{return{};}}export async function saveSettings(_0x961cf7,_0x46074b){const _0x4c9db9={'dVTry':function(_0x1d9623,_0x5db1b0){return _0x1d9623(_0x5db1b0);},'VbfDW':function(_0x2c8fe4,_0x3546fa,_0x422a46){return _0x2c8fe4(_0x3546fa,_0x422a46);}},_0x29db72=getSettingsPath(_0x961cf7),_0x5e4ee1=dirname(_0x29db72);!_0x4c9db9['dVTry'](existsSync,_0x5e4ee1)&&await _0x4c9db9['VbfDW'](mkdir,_0x5e4ee1,{'recursive':!![]}),await writeFile(_0x29db72,JSON['stringify'](_0x46074b,null,0x2));}export function resolveEnvVars(_0x22d62a){const _0x90f5cb=_0x3583,_0x5465cc={'mNkXY':'object'};if(typeof _0x22d62a==='string')return _0x22d62a[_0x90f5cb(0x1d2)](/\$\{(\w+)\}/g,(_0x3ff302,_0x165a2c)=>{const _0x1883da=_0x90f5cb,_0x43550c=process['env'][_0x165a2c];if(_0x43550c===undefined)throw new Error(_0x1883da(0x1f3)+_0x165a2c+_0x1883da(0x1fd));return _0x43550c;});if(Array['isArray'](_0x22d62a))return _0x22d62a['map'](resolveEnvVars);if(_0x22d62a&&typeof _0x22d62a===_0x5465cc['mNkXY'])return Object[_0x90f5cb(0x208)](Object[_0x90f5cb(0x1d1)](_0x22d62a)[_0x90f5cb(0x1d8)](([_0x479768,_0x1c8df1])=>[_0x479768,resolveEnvVars(_0x1c8df1)]));return _0x22d62a;}const isRecord=_0x7ec5f5=>typeof _0x7ec5f5===_0x257913(0x1e5)&&_0x7ec5f5!==null&&!Array[_0x257913(0x1c7)](_0x7ec5f5),asRecord=_0x28d175=>isRecord(_0x28d175)?_0x28d175:undefined,mergeHeaders=(_0x541fda,_0x3d0776)=>{const _0x1b93f3=_0x257913,_0x118d34={'bTMEF':function(_0x4f98e5,_0x44d476){return _0x4f98e5??_0x44d476;}},_0x343546={..._0x541fda??{},..._0x118d34['bTMEF'](_0x3d0776,{})};return Object[_0x1b93f3(0x1f6)](_0x343546)[_0x1b93f3(0x239)]?_0x343546:undefined;},SAFE_MODE_ARGS=[_0x257913(0x223)],ALLOW_LOCALHOST_ARGS=['--disable-web-security','--allow-running-insecure-content',_0x257913(0x1e6),_0x257913(0x1e0)];export function buildBrowserOptionsFromSettings(_0xc5d4ef,_0x106e07={}){const _0x330484=_0x257913,_0x44468f={'XiFUU':function(_0x1617d7,_0x122229){return _0x1617d7===_0x122229;},'lswgJ':'boolean','TlKxx':function(_0x3fe64e,_0x11fb33){return _0x3fe64e(_0x11fb33);},'cvrai':'string','OLkMP':function(_0x450ebb,_0xd07bd2,_0x18e8f2){return _0x450ebb(_0xd07bd2,_0x18e8f2);},'VnVcj':function(_0x1e8506,_0x17750b){return _0x1e8506(_0x17750b);}},_0x1d1f8b=asRecord(_0xc5d4ef['browser']),_0x5681f2={...asRecord(_0x1d1f8b?.['launchOptions'])??{}};_0x44468f['XiFUU'](typeof _0x106e07[_0x330484(0x1e9)],_0x44468f['lswgJ'])&&(_0x5681f2['headless']=_0x106e07['headless']);if(_0xc5d4ef['safeMode']){const _0xed8644=_0x5681f2['args']??[],_0x4850d9=SAFE_MODE_ARGS['filter'](_0x4d513c=>!_0xed8644['includes'](_0x4d513c));_0x5681f2['args']=[..._0xed8644,..._0x4850d9];}if(_0xc5d4ef[_0x330484(0x20e)]){const _0x2f1a75=_0x5681f2[_0x330484(0x216)]??[],_0x1286bb=ALLOW_LOCALHOST_ARGS['filter'](_0x194d4c=>!_0x2f1a75[_0x330484(0x1ed)](_0x194d4c));_0x5681f2['args']=[..._0x2f1a75,..._0x1286bb];}const _0x254466={..._0x44468f['TlKxx'](asRecord,_0x1d1f8b?.['contextOptions'])??{}};_0x254466[_0x330484(0x237)]=!![];typeof _0xc5d4ef['userAgent']===_0x44468f['cvrai']&&(_0x254466['userAgent']=_0xc5d4ef['userAgent']);const _0x5dd7f6=_0x44468f['OLkMP'](mergeHeaders,asRecord(_0x254466['extraHTTPHeaders']),_0x44468f[_0x330484(0x1f4)](asRecord,_0xc5d4ef['headers']));return _0x5dd7f6?_0x254466['extraHTTPHeaders']=_0x5dd7f6:delete _0x254466['extraHTTPHeaders'],_0x106e07['storageStatePath']&&(_0x254466['storageState']=_0x106e07[_0x330484(0x1c9)]),{'launchOptions':_0x5681f2,'contextOptions':_0x254466};}export async function resolveProfileStorageState(_0x4f3615){const _0x442f1c={'vJfpB':function(_0x4c7a32,_0x3c394a){return _0x4c7a32(_0x3c394a);}};return resolveLocalAuthPath(_0x442f1c['vJfpB'](getEnvDir,_0x4f3615));}async function resolveLocalAuthPath(_0x401de9){const _0x302823=_0x257913,_0x14fc10={'odFCE':_0x302823(0x21f),'ndXNn':_0x302823(0x1cd),'zxIfM':function(_0x37af58,_0x1eae35){return _0x37af58(_0x1eae35);},'aYKoE':function(_0x257cec){return _0x257cec();},'tMbxO':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','TIwNE':function(_0x2e5688,_0x143aa5,_0x427c6b){return _0x2e5688(_0x143aa5,_0x427c6b);},'KOfIX':function(_0x54ed70,_0x34ad1b){return _0x54ed70(_0x34ad1b);}},_0x2ccf2b=join(_0x401de9,_0x14fc10[_0x302823(0x1dc)]),_0x1d5f1c=join(_0x401de9,_0x14fc10[_0x302823(0x226)]);if(_0x14fc10['zxIfM'](existsSync,_0x2ccf2b))try{const _0x3b77f6=await _0x14fc10['aYKoE'](getToken);if(!_0x3b77f6)throw new Error(_0x14fc10['tMbxO']);const _0x335e6f=await readFile(_0x2ccf2b),_0x1563cc=_0x14fc10[_0x302823(0x21a)](decrypt,_0x335e6f,_0x3b77f6),_0x6790f7=join(_0x14fc10['aYKoE'](tmpdir),'ranger-auth-'+Date['now']()+_0x302823(0x1fc));return await writeFile(_0x6790f7,_0x1563cc),{'storageStatePath':_0x6790f7,'tempAuthPath':_0x6790f7};}catch(_0x224d67){const _0x50882e=_0x224d67 instanceof Error?_0x224d67[_0x302823(0x1ca)]:_0x14fc10['KOfIX'](String,_0x224d67);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x50882e);}if(existsSync(_0x1d5f1c))return{'storageStatePath':_0x1d5f1c};return{};}export async function buildPlaywrightConfig(_0x5b97d1,_0xf3ba32,_0xa11f31,_0xbf5014,_0x13cb53){const _0x4b5e78=_0x257913,_0x11b20f={'Ibket':function(_0x17f840,_0x24b96e){return _0x17f840(_0x24b96e);},'rWSFd':function(_0x3a3c7d,_0x136431,_0x5f563a,_0x519b5a,_0x2f0d80,_0x3a68d4,_0x227e78){return _0x3a3c7d(_0x136431,_0x5f563a,_0x519b5a,_0x2f0d80,_0x3a68d4,_0x227e78);}};if(_0x13cb53)return buildPlaywrightConfigCore(_0x5b97d1,_0x13cb53,_0xf3ba32,_0xa11f31,_0xbf5014,_0x4b5e78(0x214));const {storageStatePath:_0x50c992,tempAuthPath:_0x33a15d}=await _0x11b20f['Ibket'](resolveLocalAuthPath,getEnvDir(_0xf3ba32));try{const _0x2778c7=await _0x11b20f[_0x4b5e78(0x204)](buildPlaywrightConfigCore,_0x5b97d1,_0x50c992,_0xf3ba32,_0xa11f31,_0xbf5014,'stagehand');return{..._0x2778c7,'tempAuthPath':_0x33a15d};}catch(_0x417069){_0x33a15d&&await _0x11b20f[_0x4b5e78(0x227)](unlink,_0x33a15d)['catch'](()=>{});throw _0x417069;}}export async function buildPlaywrightConfigCore(_0x528430,_0x29d899,_0x21534f,_0x430b14,_0x4aab1a,_0x46d61f=_0x257913(0x214)){const _0x2c871b=_0x257913,_0x35eaa9={'Rywcz':function(_0x3bcbf1,_0x3402cf,_0x3bfd14){return _0x3bcbf1(_0x3402cf,_0x3bfd14);},'fewoO':function(_0x3e3c44,_0x2ae5c4){return _0x3e3c44===_0x2ae5c4;},'cpGRr':'--disable-setuid-sandbox','ENnCi':'chromium','TuwLa':_0x2c871b(0x23f),'yvXpt':function(_0x3c3b96,_0x15a8b7,_0x4730bd,_0x134ffd){return _0x3c3b96(_0x15a8b7,_0x4730bd,_0x134ffd);},'eSMvA':_0x2c871b(0x217),'FHqlV':function(_0x1d538a,_0x230cb3){return _0x1d538a(_0x230cb3);},'AHtvL':function(_0x13ce1d,_0xf31936){return _0x13ce1d===_0xf31936;},'GdvBA':_0x2c871b(0x21d),'NBnjn':_0x2c871b(0x23d),'Lhbsn':_0x2c871b(0x1eb),'ZMHBu':_0x2c871b(0x1cc),'kAwYs':function(_0x110871,_0x41abe4){return _0x110871(_0x41abe4);},'ORKum':'-cli'},_0xb33829=_0x430b14||randomUUID(),_0x47e176=_0x35eaa9['yvXpt'](join,getRangerDir(),_0x35eaa9[_0x2c871b(0x225)],_0xb33829),_0xf3ab32=_0x35eaa9['FHqlV'](Boolean,_0x528430[_0x2c871b(0x219)]),_0x438091=_0xf3ab32?{'browserName':'chromium','cdpEndpoint':_0x528430['cdpEndpoint']}:((()=>{const _0x9fb64e=_0x2c871b,{launchOptions:_0x4fecde,contextOptions:_0x1385cf}=_0x35eaa9['Rywcz'](buildBrowserOptionsFromSettings,_0x528430,{'headless':_0x4aab1a?![]:_0x528430[_0x9fb64e(0x1e9)]??!![],'storageStatePath':_0x29d899});if(_0x35eaa9[_0x9fb64e(0x22f)](process['getuid']?.(),0x0)){const _0x1bddba=['--no-sandbox',_0x35eaa9['cpGRr']],_0x434726=_0x4fecde[_0x9fb64e(0x216)]??[],_0x4a0cfa=_0x1bddba['filter'](_0x2fbe18=>!_0x434726['includes'](_0x2fbe18));_0x4fecde[_0x9fb64e(0x216)]=[..._0x434726,..._0x4a0cfa];}return{'isolated':!![],'browserName':_0x35eaa9['ENnCi'],'launchOptions':_0x4fecde,'contextOptions':{..._0x1385cf,'permissions':[_0x35eaa9[_0x9fb64e(0x1da)],_0x9fb64e(0x240)],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x7e8d59=_0x35eaa9[_0x2c871b(0x1c8)](_0x46d61f,_0x35eaa9['GdvBA'])?{'browser':_0x438091,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x47e176,'outputMode':_0x2c871b(0x234),'codegen':_0x35eaa9['NBnjn']}:{'name':_0x21534f,'browser':_0x438091,'capabilities':[_0x35eaa9['Lhbsn'],_0x2c871b(0x1d9),_0x2c871b(0x210),'devtools'],'imageResponses':'allow','outputDir':_0x47e176};if(!_0xf3ab32){const _0x11cb9c=_0x7e8d59['browser'],_0xc2adb5=_0x11cb9c['contextOptions'];if(_0xc2adb5['userAgent']===undefined)delete _0xc2adb5['userAgent'];if(_0xc2adb5[_0x2c871b(0x220)]===undefined)delete _0xc2adb5[_0x2c871b(0x220)];}const _0x1cddd5=join(tmpdir(),_0x35eaa9[_0x2c871b(0x232)]);!_0x35eaa9['kAwYs'](existsSync,_0x1cddd5)&&await mkdir(_0x1cddd5,{'recursive':!![]});const _0x43af8c=_0x35eaa9['AHtvL'](_0x46d61f,_0x35eaa9[_0x2c871b(0x1fb)])?_0x35eaa9[_0x2c871b(0x22e)]:'',_0x3e072a=join(_0x1cddd5,_0x21534f+'-'+Date['now']()+_0x43af8c+_0x2c871b(0x1fc));return await writeFile(_0x3e072a,JSON['stringify'](_0x7e8d59,null,0x2)),{'configPath':_0x3e072a,'storageStatePath':_0x29d899};}export async function buildPlaywrightCliConfig(_0x219eb1,_0x2247bb,_0xdc9576,_0x160e54,_0x36e12a){const _0x3b7817=_0x257913,_0x44ffae={'PLQqf':function(_0x510b20,_0x584760){return _0x510b20(_0x584760);}};if(_0x36e12a)return buildPlaywrightConfigCore(_0x219eb1,_0x36e12a,_0x2247bb,_0xdc9576,_0x160e54,_0x3b7817(0x21d));const {storageStatePath:_0x20cbb3,tempAuthPath:_0x5fa2b4}=await _0x44ffae[_0x3b7817(0x20a)](resolveLocalAuthPath,getEnvDir(_0x2247bb));try{const _0x29a41a=await buildPlaywrightConfigCore(_0x219eb1,_0x20cbb3,_0x2247bb,_0xdc9576,_0x160e54,_0x3b7817(0x21d));return{..._0x29a41a,'tempAuthPath':_0x5fa2b4};}catch(_0x532cbd){_0x5fa2b4&&await _0x44ffae[_0x3b7817(0x20a)](unlink,_0x5fa2b4)['catch'](()=>{});throw _0x532cbd;}}export async function buildRangerwrightCliConfig(_0x369368,_0x22ef27,_0x3a30da,_0xa631e0,_0x180a65){const _0x38a012=_0x257913,_0x50ea38={'Epmon':function(_0x57c1b9,_0x497511){return _0x57c1b9===_0x497511;},'lmzbO':_0x38a012(0x22d),'teJzS':'chromium','GDRqH':function(_0x1794b8,_0x4e751f){return _0x1794b8(_0x4e751f);},'Fkrmz':function(_0x17b6e1,_0x2a5da0,_0x34aa5b,_0x7d0f8){return _0x17b6e1(_0x2a5da0,_0x34aa5b,_0x7d0f8);},'vssCP':function(_0x4fb2e7,_0x1c6c94){return _0x4fb2e7(_0x1c6c94);},'GetAG':function(_0x2ca616,_0x17035b){return _0x2ca616===_0x17035b;},'xJLdR':function(_0x1917e6,_0x1a3ba7){return _0x1917e6===_0x1a3ba7;},'ciElO':_0x38a012(0x1cc),'evIUP':function(_0x490777,_0x1857d1){return _0x490777(_0x1857d1);},'oKYxa':function(_0x83d9b3,_0x204f4c,_0x447727){return _0x83d9b3(_0x204f4c,_0x447727);},'cdDEy':function(_0x25d0cc,_0xc52036,_0x3ba0ea){return _0x25d0cc(_0xc52036,_0x3ba0ea);}},{storageStatePath:_0x535684,tempAuthPath:_0x32539b}=_0x180a65?{'storageStatePath':_0x180a65,'tempAuthPath':undefined}:await resolveLocalAuthPath(_0x50ea38['GDRqH'](getEnvDir,_0x22ef27)),_0x3cdc57=_0x3a30da||randomUUID(),_0x45e48b=_0x50ea38[_0x38a012(0x202)](join,getRangerDir(),'sessions',_0x3cdc57),_0x1b013e=_0x50ea38[_0x38a012(0x221)](Boolean,_0x369368['cdpEndpoint']),_0x3717b7=_0x1b013e?{'browserName':'chromium','cdpEndpoint':_0x369368['cdpEndpoint']}:((()=>{const _0x152390=_0x38a012,{launchOptions:_0x3a334d,contextOptions:_0x4dfa6a}=buildBrowserOptionsFromSettings(_0x369368,{'headless':_0xa631e0?![]:_0x369368['headless']??!![],'storageStatePath':_0x535684});if(_0x50ea38['Epmon'](process['getuid']?.(),0x0)){const _0x24067d=[_0x152390(0x238),_0x50ea38['lmzbO']],_0x2b8544=_0x3a334d[_0x152390(0x216)]??[],_0x446da1=_0x24067d['filter'](_0x152bbd=>!_0x2b8544['includes'](_0x152bbd));_0x3a334d['args']=[..._0x2b8544,..._0x446da1];}return{'browserName':_0x50ea38[_0x152390(0x21e)],'launchOptions':_0x3a334d,'contextOptions':{..._0x4dfa6a,'permissions':['clipboard-read',_0x152390(0x240)],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x1b013e){const _0x50b6d1=_0x3717b7[_0x38a012(0x242)];if(_0x50b6d1){if(_0x50ea38[_0x38a012(0x1e8)](_0x50b6d1['userAgent'],undefined))delete _0x50b6d1[_0x38a012(0x203)];if(_0x50ea38[_0x38a012(0x20f)](_0x50b6d1[_0x38a012(0x220)],undefined))delete _0x50b6d1['storageState'];}}const _0x276160={'browser':_0x3717b7,'outputDir':_0x45e48b,'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'settle':{'navigationLoadTimeoutMs':0x7530,'networkSettleTimeoutMs':0x1388,'networkIdleWindowMs':0x1f4,'postActionAnimationFrameCount':0x2}};let _0x3217ed;try{const _0x42b10f=join(tmpdir(),_0x50ea38['ciElO']);!_0x50ea38['evIUP'](existsSync,_0x42b10f)&&await mkdir(_0x42b10f,{'recursive':!![]}),_0x3217ed=_0x50ea38['oKYxa'](join,_0x42b10f,_0x22ef27+'-'+Date[_0x38a012(0x21c)]()+_0x38a012(0x1db)),await _0x50ea38['cdDEy'](writeFile,_0x3217ed,JSON['stringify'](_0x276160,null,0x2));}catch(_0x359373){_0x32539b&&await unlink(_0x32539b)[_0x38a012(0x23a)](()=>{});throw _0x359373;}return{'configPath':_0x3217ed,'storageStatePath':_0x535684,'tempAuthPath':_0x32539b,'outputDir':_0x45e48b};}export async function buildNovaActCliConfig(_0x4891d9,_0x217805,_0x38f812,_0x1759d6,_0x4fe498){const _0x4886ab=_0x257913,_0x5d57ea={'oqePL':function(_0x1ad295,_0xb91b57){return _0x1ad295(_0xb91b57);},'BIdQO':function(_0x24a9e8){return _0x24a9e8();},'nczVl':function(_0x1528f8,_0x12423f,_0x1e8737,_0x55703e){return _0x1528f8(_0x12423f,_0x1e8737,_0x55703e);},'eoXof':'sessions','UjdaL':function(_0xc17cb7,_0x7a9ce2,_0x49c662){return _0xc17cb7(_0x7a9ce2,_0x49c662);},'PUbEp':_0x4886ab(0x23e),'aYpvP':function(_0x78312e,_0x1389f3,_0x4c6b88){return _0x78312e(_0x1389f3,_0x4c6b88);},'qvflz':function(_0x2f5c0d,_0x150c8c){return _0x2f5c0d===_0x150c8c;},'NHTnf':_0x4886ab(0x238),'bfHNY':'--disable-setuid-sandbox','Zvpos':function(_0x50b596,_0x469124){return _0x50b596(_0x469124);}},{storageStatePath:_0x5b1516,tempAuthPath:_0x27c827}=_0x4fe498?{'storageStatePath':_0x4fe498,'tempAuthPath':undefined}:await resolveLocalAuthPath(_0x5d57ea['oqePL'](getEnvDir,_0x217805)),_0x52bcf7=_0x38f812||_0x5d57ea['BIdQO'](randomUUID),_0xec1295=_0x5d57ea['nczVl'](join,getRangerDir(),_0x5d57ea['eoXof'],_0x52bcf7),_0x5b8cb8=_0x5d57ea[_0x4886ab(0x20b)](join,_0xec1295,'nova-user-data'),_0x3d4418=_0x5b1516?join(_0x5b8cb8,_0x5d57ea['PUbEp']):undefined,{launchOptions:_0x5c32ed,contextOptions:_0x4c312b}=_0x5d57ea['aYpvP'](buildBrowserOptionsFromSettings,_0x4891d9,{'headless':_0x1759d6?![]:_0x4891d9[_0x4886ab(0x1e9)]??!![],'storageStatePath':_0x5b1516});if(_0x5d57ea[_0x4886ab(0x1e7)](process['getuid']?.(),0x0)){const _0x247aad=[_0x5d57ea['NHTnf'],_0x5d57ea['bfHNY']],_0x56b492=_0x5c32ed['args']??[],_0x2c29b8=_0x247aad['filter'](_0x1e3ecf=>!_0x56b492['includes'](_0x1e3ecf));_0x5c32ed['args']=[..._0x56b492,..._0x2c29b8];}const _0x3fde64=typeof _0x5c32ed[_0x4886ab(0x211)]===_0x4886ab(0x218)?_0x5c32ed['executablePath']:_0x5b1516?chromium[_0x4886ab(0x211)]():undefined;return{'storageStatePath':_0x5b1516,'tempAuthPath':_0x27c827,'baseUrl':_0x4891d9[_0x4886ab(0x224)],'headless':Boolean(_0x5c32ed['headless']),'userDataDir':_0x5b8cb8,'browserProfilePath':_0x3d4418,'executablePath':_0x3fde64,'launchArgs':Array[_0x4886ab(0x1c7)](_0x5c32ed[_0x4886ab(0x216)])?_0x5c32ed[_0x4886ab(0x216)]['filter'](_0x1d5cf6=>typeof _0x1d5cf6==='string'):[],'userAgent':typeof _0x4c312b[_0x4886ab(0x203)]===_0x4886ab(0x218)?_0x4c312b['userAgent']:undefined,'extraHTTPHeaders':_0x4c312b['extraHTTPHeaders'],'allowInsecureLocalhost':_0x5d57ea[_0x4886ab(0x1fa)](Boolean,_0x4891d9[_0x4886ab(0x20e)]),'safeMode':_0x5d57ea[_0x4886ab(0x1f2)](Boolean,_0x4891d9[_0x4886ab(0x206)]),'cdpEndpoint':_0x4891d9['cdpEndpoint'],'isCdpMode':Boolean(_0x4891d9[_0x4886ab(0x219)])};}export function getNestedValue(_0x4f894f,_0x175319){const _0x204d4f=_0x257913,_0x2b9ceb={'moffE':function(_0x37d707,_0xc8a7ed){return _0x37d707(_0xc8a7ed);},'AsQyM':function(_0xf9590d,_0x212287){return _0xf9590d===_0x212287;},'sJSxP':function(_0x39ec01,_0x4492c4){return _0x39ec01!==_0x4492c4;},'lociQ':'object'},_0x15ebba=_0x2b9ceb[_0x204d4f(0x22c)](parseKeyPath,_0x175319);let _0x30680b=_0x4f894f;for(const _0x1cd62a of _0x15ebba){if(_0x2b9ceb['AsQyM'](_0x30680b,null)||_0x30680b===undefined||_0x2b9ceb[_0x204d4f(0x200)](typeof _0x30680b,_0x2b9ceb[_0x204d4f(0x1f1)]))return undefined;_0x30680b=_0x30680b[_0x1cd62a];}return _0x30680b;}export function setNestedValue(_0xf2f989,_0x5e6fc1,_0x263988){const _0x4ee17d=_0x257913,_0x498df6={'FEMyW':function(_0x45e8d8,_0x236ef9){return _0x45e8d8(_0x236ef9);},'TqTop':function(_0x309cc0,_0x3e726e){return _0x309cc0-_0x3e726e;},'JVERE':_0x4ee17d(0x1e5)},_0x10cadb=_0x498df6['FEMyW'](parseKeyPath,_0x5e6fc1);let _0xb8e218=_0xf2f989;for(let _0x46deb2=0x0;_0x46deb2<_0x498df6[_0x4ee17d(0x1ce)](_0x10cadb['length'],0x1);_0x46deb2++){const _0x4c1450=_0x10cadb[_0x46deb2];(!(_0x4c1450 in _0xb8e218)||typeof _0xb8e218[_0x4c1450]!==_0x498df6['JVERE'])&&(_0xb8e218[_0x4c1450]={}),_0xb8e218=_0xb8e218[_0x4c1450];}_0xb8e218[_0x10cadb[_0x10cadb[_0x4ee17d(0x239)]-0x1]]=_0x263988;}export function deleteNestedValue(_0x4885cc,_0x2c1e3f){const _0xe8aba7=_0x257913,_0x3b3669={'EiNOF':function(_0x590c39,_0x3b1a1f){return _0x590c39(_0x3b1a1f);},'nFxYf':function(_0x24c7a4,_0x4a226f){return _0x24c7a4===_0x4a226f;},'TEtJS':_0xe8aba7(0x1e5),'LiDgn':function(_0x3a4bfb,_0x8a5210){return _0x3a4bfb===_0x8a5210;},'ocesW':function(_0x17c151,_0x5d5e4b){return _0x17c151!==_0x5d5e4b;},'RCqkO':function(_0xbf962f,_0x59c179){return _0xbf962f-_0x59c179;}},_0x1a8d61=_0x3b3669[_0xe8aba7(0x21b)](parseKeyPath,_0x2c1e3f);let _0x365186=_0x4885cc;for(let _0x14f3f7=0x0;_0x14f3f7<_0x1a8d61['length']-0x1;_0x14f3f7++){if(_0x3b3669['nFxYf'](_0x365186,null)||_0x365186===undefined||typeof _0x365186!==_0x3b3669[_0xe8aba7(0x1ec)])return![];_0x365186=_0x365186[_0x1a8d61[_0x14f3f7]];}if(_0x3b3669[_0xe8aba7(0x20c)](_0x365186,null)||_0x3b3669['LiDgn'](_0x365186,undefined)||_0x3b3669['ocesW'](typeof _0x365186,'object'))return![];const _0x14a3cc=_0x1a8d61[_0x3b3669[_0xe8aba7(0x1ee)](_0x1a8d61[_0xe8aba7(0x239)],0x1)];if(_0x14a3cc in _0x365186)return delete _0x365186[_0x14a3cc],!![];return![];}function parseKeyPath(_0x2a5ece){const _0x4407f5=_0x257913,_0x2b3004={'swMKU':_0x4407f5(0x1d3),'bWthw':function(_0x5417e1,_0x10aee1){return _0x5417e1===_0x10aee1;}},_0x1a2f87=_0x2a5ece[_0x4407f5(0x1ff)]('.');return _0x1a2f87[0x0]===_0x4407f5(0x1ea)&&(_0x1a2f87[0x0]=_0x2b3004[_0x4407f5(0x244)]),_0x2b3004['bWthw'](_0x1a2f87[0x0],_0x4407f5(0x229))&&(_0x1a2f87[0x0]='setupHeaders'),_0x1a2f87;}function _0x3583(_0x42198c,_0x19527a){_0x42198c=_0x42198c-0x1c7;const _0x1cbef5=_0x1cbe();let _0x35835f=_0x1cbef5[_0x42198c];return _0x35835f;}export function formatSettings(_0x2d51d0,_0x44e395=0x0){const _0x1aec4f=_0x257913,_0x2165fd={'ZAZoT':function(_0x241106,_0x1d129a){return _0x241106===_0x1d129a;},'wYDkg':function(_0x4a8b4a,_0x138970){return _0x4a8b4a!==_0x138970;}},_0x4b0e0c=[],_0x18a9e2='\x20\x20'['repeat'](_0x44e395);for(const [_0x3755b9,_0x5a1ff9]of Object[_0x1aec4f(0x1d1)](_0x2d51d0)){if(_0x2165fd['ZAZoT'](_0x5a1ff9,undefined))continue;if(_0x2165fd[_0x1aec4f(0x1f9)](typeof _0x5a1ff9,'object')&&_0x2165fd['wYDkg'](_0x5a1ff9,null)){_0x4b0e0c['push'](''+_0x18a9e2+_0x3755b9+':');for(const [_0x2be576,_0x352ff5]of Object['entries'](_0x5a1ff9)){_0x4b0e0c[_0x1aec4f(0x1ef)](_0x18a9e2+'\x20\x20'+_0x2be576+':\x20'+_0x352ff5);}}else _0x4b0e0c['push'](''+_0x18a9e2+_0x3755b9+':\x20'+_0x5a1ff9);}return _0x4b0e0c['join']('\x0a');}function _0x1cbe(){const _0x4e1cf2=['keys','8001520BumIvX','6858fHdJXv','ZAZoT','Zvpos','GdvBA','.json','\x20is\x20not\x20set','6364BFdlTS','split','sJSxP','local','Fkrmz','userAgent','rWSFd','1740XJFzUD','safeMode','utf-8','fromEntries','warn','PLQqf','UjdaL','nFxYf','filter','allowInsecureLocalhost','xJLdR','vision','executablePath','FmIbe','335MqZQHy','stagehand','iboCF','args','sessions','string','cdpEndpoint','TIwNE','EiNOF','now','playwright-cli','teJzS','auth.json.enc','storageState','vssCP','188WRShBt','--disable-features=WebBluetooth','baseUrl','eSMvA','ndXNn','Ibket','ItDoq','setupHeader','DxfCV','rangerDir','moffE','--disable-setuid-sandbox','ORKum','fewoO','ENOENT','settings.json','ZMHBu','rlHUQ','file','9370WbxJcE','\x22\x20to\x20legacy\x20path\x20','ignoreHTTPSErrors','--no-sandbox','length','catch','qkIUD','umIpM','none','Default','clipboard-read','clipboard-write','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','contextOptions','RTjtq','swMKU','10290IlJTQi','isArray','AHtvL','storageStatePath','message','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','ranger-config','auth.json','TqTop','bMXAI','5744AbyFht','entries','replace','headers','YIdcP','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','14463IFXlYT','awdrl','map','pdf','TuwLa','-rangerwright.json','odFCE','30226097OCRbom','jqTRo','tempAuthPath','--allow-insecure-localhost','forWrite','all','locations','code','object','--unsafely-treat-insecure-origin-as-secure=http://localhost','qvflz','GetAG','headless','header','core','TEtJS','includes','RCqkO','push','nfdaz','lociQ','oqePL','Environment\x20variable\x20','VnVcj','path'];_0x1cbe=function(){return _0x4e1cf2;};return _0x1cbe();}
1
+ const _0x33543a=_0x5069;(function(_0x3fce1c,_0x465192){const _0x160789=_0x5069,_0x3a4b62=_0x3fce1c();while(!![]){try{const _0x56a3f9=-parseInt(_0x160789(0x1a4))/0x1*(-parseInt(_0x160789(0x1a8))/0x2)+parseInt(_0x160789(0x1e6))/0x3*(-parseInt(_0x160789(0x1d7))/0x4)+-parseInt(_0x160789(0x1f8))/0x5+parseInt(_0x160789(0x1f4))/0x6*(parseInt(_0x160789(0x20e))/0x7)+-parseInt(_0x160789(0x1d0))/0x8*(parseInt(_0x160789(0x1e8))/0x9)+parseInt(_0x160789(0x1af))/0xa*(parseInt(_0x160789(0x21f))/0xb)+parseInt(_0x160789(0x1a1))/0xc;if(_0x56a3f9===_0x465192)break;else _0x3a4b62['push'](_0x3a4b62['shift']());}catch(_0x69dac2){_0x3a4b62['push'](_0x3a4b62['shift']());}}}(_0x4b62,0xf3d60));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';function _0x5069(_0x5cea6d,_0x5e34c0){_0x5cea6d=_0x5cea6d-0x19d;const _0x4b62f5=_0x4b62();let _0x50697b=_0x4b62f5[_0x5cea6d];return _0x50697b;}import{randomUUID}from'crypto';import{chromium}from'playwright';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x918caa,_0x4a52f5){const _0x23a3da=_0x5069,_0x4e2a73={'CAbsg':function(_0x38e107,_0x321f5c,_0x5b4ac8,_0x537d51){return _0x38e107(_0x321f5c,_0x5b4ac8,_0x537d51);},'mFDEa':function(_0x37b66a,_0x4191a4,_0x2a291b){return _0x37b66a(_0x4191a4,_0x2a291b);},'NdlOz':_0x23a3da(0x222),'IBfIv':function(_0x3dde79,_0x54ac52,_0x961c44){return _0x3dde79(_0x54ac52,_0x961c44);},'nxfeb':function(_0x1182fe,_0x52f95e){return _0x1182fe(_0x52f95e);},'oXzKH':function(_0x5ce050,_0x31e745){return _0x5ce050(_0x31e745);},'xGdhK':function(_0x19622a,_0x453742){return _0x19622a!==_0x453742;},'DdMGP':function(_0x3d1edb,_0x21299a){return _0x3d1edb(_0x21299a);}},_0x5975cf=_0x4e2a73[_0x23a3da(0x1bc)](join,_0x4a52f5,'ci',_0x918caa),_0x42196b=join(_0x4a52f5,_0x23a3da(0x222),_0x918caa),_0x16c054=join(_0x4a52f5,_0x918caa),_0x18d53a=_0x4e2a73[_0x23a3da(0x213)](join,_0x4a52f5,_0x4e2a73['NdlOz']),_0x53d69e=_0x4e2a73['IBfIv'](join,_0x4a52f5,'ci');if(existsSync(_0x5975cf))return _0x5975cf;if(_0x4e2a73[_0x23a3da(0x216)](existsSync,_0x42196b))return _0x42196b;if(_0x4e2a73['oXzKH'](existsSync,_0x16c054)&&(_0x16c054!==_0x18d53a&&_0x4e2a73['xGdhK'](_0x16c054,_0x53d69e)?!![]:_0x4e2a73[_0x23a3da(0x1fd)](hasLegacyProfileFiles,_0x16c054)))return _0x16c054;return null;}export function getEnvDir(_0x71fe70,_0x402580={}){const _0x4387d8=_0x5069,_0x5751e6={'rnucv':function(_0x41028f){return _0x41028f();},'slAwH':function(_0x3cc01d,_0xc911a6,_0x57b8ab){return _0x3cc01d(_0xc911a6,_0x57b8ab);},'vYsiv':function(_0x26917a,_0x2dac71){return _0x26917a(_0x2dac71);},'sNzpl':function(_0x84c4ec,_0x379002,_0x3097eb){return _0x84c4ec(_0x379002,_0x3097eb);},'hQLUP':function(_0x53ff9d,_0x5ba7c4,_0x57b527,_0x50a5e7){return _0x53ff9d(_0x5ba7c4,_0x57b527,_0x50a5e7);},'UgkdE':function(_0x13f256,_0x2e42b6,_0x326c7d){return _0x13f256(_0x2e42b6,_0x326c7d);}},_0x139f7d=_0x5751e6['rnucv'](getRangerDir),_0x432dca=findEnvInRoot(_0x71fe70,_0x139f7d);if(_0x432dca){if(_0x402580[_0x4387d8(0x1a2)]&&isLegacyEnvPath(_0x432dca))throw _0x5751e6[_0x4387d8(0x1b3)](legacyWriteError,_0x71fe70,_0x432dca);return _0x432dca;}const _0xe3df6b=getRangerHomeDir();if(_0xe3df6b!==_0x139f7d){const _0x2ddbd9=findEnvInRoot(_0x71fe70,_0xe3df6b);if(_0x2ddbd9){if(_0x402580[_0x4387d8(0x1a2)]&&_0x5751e6[_0x4387d8(0x1dd)](isLegacyEnvPath,_0x2ddbd9))throw _0x5751e6['sNzpl'](legacyWriteError,_0x71fe70,_0x2ddbd9);return _0x2ddbd9;}}const _0x1022a0=_0x5751e6[_0x4387d8(0x1ae)](join,_0xe3df6b,_0x4387d8(0x222),_0x71fe70);if(_0x402580['forWrite'])throw _0x5751e6['UgkdE'](legacyWriteError,_0x71fe70,_0x1022a0);return _0x1022a0;}function isLegacyEnvPath(_0x6a21b1){const _0x58bfbb=_0x5069,_0x19953e={'mTBRu':function(_0x16d87d){return _0x16d87d();},'WANLV':function(_0xa225e5,_0x246b53){return _0xa225e5+_0x246b53;},'IUCDM':function(_0x5c0413,_0x597812){return _0x5c0413===_0x597812;}},_0xe13e96=_0x19953e[_0x58bfbb(0x1fc)](getRangerDir),_0x2124e5=getRangerHomeDir();for(const _0x6a3039 of new Set([_0xe13e96,_0x2124e5])){const _0x2252af=_0x6a3039[_0x58bfbb(0x19d)]('/')?_0x6a3039:_0x19953e['WANLV'](_0x6a3039,'/');if(_0x19953e['IUCDM'](_0x6a21b1,_0x6a3039)||_0x6a21b1['startsWith'](_0x2252af))return!![];}return![];}function legacyWriteError(_0x3ff4db,_0x178eea){const _0x53d570=_0x5069,_0x393ca6={'ZZNnq':function(_0x322566,_0x139e2b){return _0x322566+_0x139e2b;}};return new Error(_0x393ca6[_0x53d570(0x204)](_0x393ca6[_0x53d570(0x204)]('Refusing\x20to\x20write\x20profile\x20\x22'+_0x3ff4db+'\x22\x20to\x20legacy\x20path\x20'+_0x178eea+'.\x0a','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a')+_0x53d570(0x1ef),_0x53d570(0x1b1)));}export function findExistingEnv(_0xddbd4f,_0x2430c6){const _0x36ba62=_0x5069,_0x10dbb5={'XzIan':function(_0x3a91d4){return _0x3a91d4();},'RVGfT':function(_0x30d8b5){return _0x30d8b5();},'dyFrX':_0x36ba62(0x222),'DxFoh':function(_0x295b76,_0x74b2a,_0x423602){return _0x295b76(_0x74b2a,_0x423602);},'lsctg':function(_0x1d311d,_0x404fc7,_0x1d4928){return _0x1d311d(_0x404fc7,_0x1d4928);},'CZgtT':function(_0x5500fc,_0x1e43a7){return _0x5500fc(_0x1e43a7);},'ixkwH':'legacy','oUpLD':function(_0x553a2b,_0x354302){return _0x553a2b===_0x354302;},'lSrut':function(_0x31378d,_0x3b9f94){return _0x31378d(_0x3b9f94);}},_0x557bf5=_0x2430c6?.['rangerDir'],_0x49f9e8=_0x557bf5?[_0x557bf5]:[_0x10dbb5[_0x36ba62(0x1bb)](getRangerDir),_0x10dbb5['RVGfT'](getRangerHomeDir)]['filter']((_0x3c45cf,_0x4228da,_0x1db3d9)=>_0x1db3d9['indexOf'](_0x3c45cf)===_0x4228da),_0x28141a=_0x2430c6?.[_0x36ba62(0x1ab)]??['ci',_0x10dbb5[_0x36ba62(0x1e3)],'legacy'];for(const _0x152340 of _0x49f9e8){const _0x4259a7=_0x10dbb5['DxFoh'](join,_0x152340,_0x10dbb5[_0x36ba62(0x1e3)]),_0x6f0774=join(_0x152340,'ci'),_0x4ab108=[{'location':'ci','path':join(_0x152340,'ci',_0xddbd4f)},{'location':_0x10dbb5[_0x36ba62(0x1e3)],'path':join(_0x152340,_0x10dbb5['dyFrX'],_0xddbd4f)},{'location':_0x36ba62(0x1c6),'path':_0x10dbb5[_0x36ba62(0x1a5)](join,_0x152340,_0xddbd4f)}];for(const _0x3676a8 of _0x4ab108){if(_0x28141a[_0x36ba62(0x211)](_0x3676a8[_0x36ba62(0x1cd)])&&_0x10dbb5[_0x36ba62(0x223)](existsSync,_0x3676a8['path'])){if(_0x3676a8['location']===_0x10dbb5['ixkwH']&&(_0x10dbb5['oUpLD'](_0x3676a8[_0x36ba62(0x20c)],_0x4259a7)||_0x3676a8[_0x36ba62(0x20c)]===_0x6f0774)&&!_0x10dbb5[_0x36ba62(0x215)](hasLegacyProfileFiles,_0x3676a8['path']))continue;return{'path':_0x3676a8[_0x36ba62(0x20c)],'location':_0x3676a8['location']};}}}return null;}function hasLegacyProfileFiles(_0x22c291){const _0x17e9e8=_0x5069,_0x3456af={'LuLFM':function(_0x3473b4,_0x4f30e5,_0x272c32){return _0x3473b4(_0x4f30e5,_0x272c32);},'CZrxT':'settings.json','NdBkS':function(_0x1e70a3,_0x3c2140){return _0x1e70a3(_0x3c2140);},'pbMaY':_0x17e9e8(0x1c5),'IamTx':function(_0x46ccfe,_0x3fc52c){return _0x46ccfe(_0x3fc52c);}};return existsSync(_0x3456af['LuLFM'](join,_0x22c291,_0x3456af[_0x17e9e8(0x208)]))||_0x3456af['NdBkS'](existsSync,join(_0x22c291,_0x3456af['pbMaY']))||_0x3456af[_0x17e9e8(0x1d4)](existsSync,join(_0x22c291,'auth.json.enc'));}export function isEnvCi(_0x32525b){const _0x10bc68=_0x5069,_0xd1a12a={'vTEss':function(_0x36abe9,_0x306e78,_0x6f5d01,_0x21266f){return _0x36abe9(_0x306e78,_0x6f5d01,_0x21266f);},'OVSdF':function(_0x43f9a1){return _0x43f9a1();},'AUviJ':function(_0xb8cc8f,_0x3913c7){return _0xb8cc8f(_0x3913c7);},'usQMI':function(_0x453684,_0x231084,_0x15b2af,_0xedea1f){return _0x453684(_0x231084,_0x15b2af,_0xedea1f);}};if(existsSync(_0xd1a12a['vTEss'](join,_0xd1a12a[_0x10bc68(0x1b6)](getRangerDir),'ci',_0x32525b)))return!![];const _0x573679=getRangerHomeDir();if(_0x573679!==getRangerDir()&&_0xd1a12a[_0x10bc68(0x1e1)](existsSync,_0xd1a12a['usQMI'](join,_0x573679,'ci',_0x32525b)))return!![];return![];}export async function cleanupTempFiles(_0x26cec7){const _0x3b3aca=_0x5069,_0x14848b={'AViEN':function(_0x4b7a24,_0x371fb7){return _0x4b7a24!==_0x371fb7;}},_0x108f9c=[_0x26cec7['tempAuthPath'],_0x26cec7['configPath']]['filter'](Boolean);await Promise[_0x3b3aca(0x205)](_0x108f9c[_0x3b3aca(0x1b2)](_0x2d23b4=>unlink(_0x2d23b4)[_0x3b3aca(0x226)](_0x5b663a=>{const _0xdbb1c3=_0x3b3aca;_0x14848b['AViEN'](_0x5b663a['code'],'ENOENT')&&console['warn'](_0xdbb1c3(0x219)+_0x2d23b4+':',_0x5b663a['message']);})));}export function getSettingsPath(_0x46484c){const _0x5cd26a=_0x5069,_0x1eae37={'egLdf':function(_0xe8b367,_0x5f5b5e,_0x21bf4e){return _0xe8b367(_0x5f5b5e,_0x21bf4e);},'OTCsq':function(_0x49b937,_0x4f62fb){return _0x49b937(_0x4f62fb);},'niMcb':_0x5cd26a(0x1c8)};return _0x1eae37[_0x5cd26a(0x225)](join,_0x1eae37['OTCsq'](getEnvDir,_0x46484c),_0x1eae37[_0x5cd26a(0x20f)]);}export async function loadSettings(_0x4c55d6){const _0x375e0c=_0x5069,_0x1fc4f8={'bSoDn':function(_0x31a1cd,_0x57f787){return _0x31a1cd(_0x57f787);}},_0x47f9a9=getSettingsPath(_0x4c55d6);if(!_0x1fc4f8[_0x375e0c(0x221)](existsSync,_0x47f9a9))return{};try{const _0x3cd8be=await readFile(_0x47f9a9,_0x375e0c(0x1aa));return JSON[_0x375e0c(0x1f1)](_0x3cd8be);}catch{return{};}}export async function saveSettings(_0x43c5e0,_0xa2f737){const _0x14dff4=_0x5069,_0x3b386c={'nwUZs':function(_0xa44624,_0x1b5e53){return _0xa44624(_0x1b5e53);}},_0x376732=getSettingsPath(_0x43c5e0),_0x566d48=_0x3b386c['nwUZs'](dirname,_0x376732);!_0x3b386c['nwUZs'](existsSync,_0x566d48)&&await mkdir(_0x566d48,{'recursive':!![]}),await writeFile(_0x376732,JSON[_0x14dff4(0x1e2)](_0xa2f737,null,0x2));}export function resolveEnvVars(_0x562e02){const _0x5cfad6=_0x5069;if(typeof _0x562e02==='string')return _0x562e02[_0x5cfad6(0x1c3)](/\$\{(\w+)\}/g,(_0x1b989d,_0x768891)=>{const _0x539e0c=_0x5cfad6,_0x30630a=process[_0x539e0c(0x20a)][_0x768891];if(_0x30630a===undefined)throw new Error('Environment\x20variable\x20'+_0x768891+'\x20is\x20not\x20set');return _0x30630a;});if(Array['isArray'](_0x562e02))return _0x562e02[_0x5cfad6(0x1b2)](resolveEnvVars);if(_0x562e02&&typeof _0x562e02==='object')return Object['fromEntries'](Object[_0x5cfad6(0x1d8)](_0x562e02)[_0x5cfad6(0x1b2)](([_0x2ff487,_0x9d9595])=>[_0x2ff487,resolveEnvVars(_0x9d9595)]));return _0x562e02;}const isRecord=_0x25075c=>typeof _0x25075c===_0x33543a(0x210)&&_0x25075c!==null&&!Array[_0x33543a(0x1de)](_0x25075c),asRecord=_0x8f17f9=>isRecord(_0x8f17f9)?_0x8f17f9:undefined,mergeHeaders=(_0x487794,_0x11f224)=>{const _0x3a10eb=_0x33543a,_0x5a7009={'haPpY':function(_0x3482ce,_0x1da8c1){return _0x3482ce??_0x1da8c1;}},_0x4e4346={..._0x5a7009[_0x3a10eb(0x1c7)](_0x487794,{}),..._0x11f224??{}};return Object[_0x3a10eb(0x1b9)](_0x4e4346)['length']?_0x4e4346:undefined;},SAFE_MODE_ARGS=[_0x33543a(0x1e7)],ALLOW_LOCALHOST_ARGS=[_0x33543a(0x1ed),_0x33543a(0x19f),'--unsafely-treat-insecure-origin-as-secure=http://localhost','--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x52a93b,_0x33dce9={}){const _0x3b8f8e=_0x33543a,_0x4d1411={'SmfVC':function(_0x41b287,_0x16e7aa){return _0x41b287(_0x16e7aa);},'NHpEd':function(_0x167675,_0x366836){return _0x167675===_0x366836;},'iZvED':_0x3b8f8e(0x1c2),'nownM':function(_0x2e154b,_0x59ef7e,_0x266713){return _0x2e154b(_0x59ef7e,_0x266713);},'OvAlL':function(_0x40adf6,_0xed3328){return _0x40adf6(_0xed3328);}},_0xcc82f6=asRecord(_0x52a93b[_0x3b8f8e(0x1ac)]),_0x18783e={..._0x4d1411['SmfVC'](asRecord,_0xcc82f6?.['launchOptions'])??{}};_0x4d1411['NHpEd'](typeof _0x33dce9[_0x3b8f8e(0x1d1)],_0x3b8f8e(0x227))&&(_0x18783e[_0x3b8f8e(0x1d1)]=_0x33dce9['headless']);if(_0x52a93b[_0x3b8f8e(0x218)]){const _0x528adc=_0x18783e['args']??[],_0x38e324=SAFE_MODE_ARGS['filter'](_0x58948=>!_0x528adc['includes'](_0x58948));_0x18783e[_0x3b8f8e(0x1da)]=[..._0x528adc,..._0x38e324];}if(_0x52a93b['allowInsecureLocalhost']){const _0x2e44c6=_0x18783e['args']??[],_0x48d302=ALLOW_LOCALHOST_ARGS[_0x3b8f8e(0x1be)](_0x1e822b=>!_0x2e44c6['includes'](_0x1e822b));_0x18783e['args']=[..._0x2e44c6,..._0x48d302];}const _0x58ec64={...asRecord(_0xcc82f6?.[_0x3b8f8e(0x200)])??{}};_0x58ec64[_0x3b8f8e(0x20b)]=!![];_0x4d1411[_0x3b8f8e(0x1c9)](typeof _0x52a93b[_0x3b8f8e(0x1ca)],_0x4d1411['iZvED'])&&(_0x58ec64['userAgent']=_0x52a93b['userAgent']);const _0x368a92=_0x4d1411[_0x3b8f8e(0x1c4)](mergeHeaders,asRecord(_0x58ec64[_0x3b8f8e(0x1f3)]),_0x4d1411['OvAlL'](asRecord,_0x52a93b['headers']));return _0x368a92?_0x58ec64[_0x3b8f8e(0x1f3)]=_0x368a92:delete _0x58ec64[_0x3b8f8e(0x1f3)],_0x33dce9['storageStatePath']&&(_0x58ec64['storageState']=_0x33dce9[_0x3b8f8e(0x1ee)]),{'launchOptions':_0x18783e,'contextOptions':_0x58ec64};}export async function resolveProfileStorageState(_0x2543f2){const _0x5ac5fa=_0x33543a,_0x2ef53a={'YySSj':function(_0x36cd13,_0x1e61fb){return _0x36cd13(_0x1e61fb);}};return _0x2ef53a[_0x5ac5fa(0x1a0)](resolveLocalAuthPath,_0x2ef53a[_0x5ac5fa(0x1a0)](getEnvDir,_0x2543f2));}async function resolveLocalAuthPath(_0x51257d){const _0x4ae71f=_0x33543a,_0x327e3e={'xXJJy':'auth.json.enc','BZISV':'auth.json','JIkWi':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','mVlvG':function(_0x25a83d,_0x1a9dc6,_0x1f395c){return _0x25a83d(_0x1a9dc6,_0x1f395c);},'RMZmO':function(_0x36aabc){return _0x36aabc();},'tXzqu':function(_0x116802,_0x5ebbac,_0x3c94a9){return _0x116802(_0x5ebbac,_0x3c94a9);},'ICPWt':function(_0x2e8650,_0x2ab114){return _0x2e8650 instanceof _0x2ab114;},'NYGsY':function(_0x789362,_0x48b2e3){return _0x789362(_0x48b2e3);}},_0x543273=join(_0x51257d,_0x327e3e['xXJJy']),_0x4780b2=join(_0x51257d,_0x327e3e[_0x4ae71f(0x1e0)]);if(existsSync(_0x543273))try{const _0x1b69db=await getToken();if(!_0x1b69db)throw new Error(_0x327e3e[_0x4ae71f(0x1f5)]);const _0x524c72=await readFile(_0x543273),_0x98abc0=_0x327e3e[_0x4ae71f(0x1cc)](decrypt,_0x524c72,_0x1b69db),_0x2d629f=_0x327e3e[_0x4ae71f(0x1cc)](join,_0x327e3e[_0x4ae71f(0x1ad)](tmpdir),_0x4ae71f(0x1b8)+Date['now']()+_0x4ae71f(0x1d2));return await _0x327e3e[_0x4ae71f(0x1ba)](writeFile,_0x2d629f,_0x98abc0),{'storageStatePath':_0x2d629f,'tempAuthPath':_0x2d629f};}catch(_0x12b534){const _0x138532=_0x327e3e[_0x4ae71f(0x1d6)](_0x12b534,Error)?_0x12b534['message']:_0x327e3e[_0x4ae71f(0x1db)](String,_0x12b534);throw new Error(_0x4ae71f(0x1ce)+_0x138532);}if(existsSync(_0x4780b2))return{'storageStatePath':_0x4780b2};return{};}export async function buildPlaywrightConfig(_0x188be3,_0xbb0fcc,_0x336be1,_0x2f9090,_0x19faed){const _0x2dd1c0=_0x33543a,_0x562ba4={'SocKc':function(_0xf45299,_0x34f90e,_0xef0d5a,_0x7d3be7,_0x2e2386,_0x1ea161,_0x18e70a){return _0xf45299(_0x34f90e,_0xef0d5a,_0x7d3be7,_0x2e2386,_0x1ea161,_0x18e70a);},'pBsXh':_0x2dd1c0(0x1a9),'FKmQK':function(_0x39c736,_0x1c7442){return _0x39c736(_0x1c7442);}};if(_0x19faed)return _0x562ba4[_0x2dd1c0(0x207)](buildPlaywrightConfigCore,_0x188be3,_0x19faed,_0xbb0fcc,_0x336be1,_0x2f9090,_0x562ba4[_0x2dd1c0(0x20d)]);const {storageStatePath:_0x29c367,tempAuthPath:_0x2e013f}=await resolveLocalAuthPath(getEnvDir(_0xbb0fcc));try{const _0x432194=await buildPlaywrightConfigCore(_0x188be3,_0x29c367,_0xbb0fcc,_0x336be1,_0x2f9090,'stagehand');return{..._0x432194,'tempAuthPath':_0x2e013f};}catch(_0x5493f9){_0x2e013f&&await _0x562ba4[_0x2dd1c0(0x1dc)](unlink,_0x2e013f)[_0x2dd1c0(0x226)](()=>{});throw _0x5493f9;}}export async function buildPlaywrightConfigCore(_0xe30608,_0x59cce1,_0x16f1f3,_0x52695b,_0x52fd9f,_0xc58db8='stagehand'){const _0x8f71dc=_0x33543a,_0xc06ff6={'frQBf':function(_0x7fe67a,_0x187eb7,_0x2c811b){return _0x7fe67a(_0x187eb7,_0x2c811b);},'HxkkD':'--disable-setuid-sandbox','cATYK':'chromium','oeOAh':'clipboard-read','UZVdK':function(_0x3dcc70){return _0x3dcc70();},'LTgGy':_0x8f71dc(0x21e),'hqVkQ':'file','qnZli':_0x8f71dc(0x202),'bSbHx':_0x8f71dc(0x1ec),'fijCN':_0x8f71dc(0x1f9),'WghSS':'allow','ZZaKL':function(_0xc1ae10,_0x3360d1){return _0xc1ae10===_0x3360d1;},'PWhHo':function(_0x5ca4ce,_0x430c62,_0x2bb407){return _0x5ca4ce(_0x430c62,_0x2bb407);}},_0x4ab4b0=_0x52695b||_0xc06ff6[_0x8f71dc(0x217)](randomUUID),_0x3a0d18=join(_0xc06ff6[_0x8f71dc(0x217)](getRangerDir),_0x8f71dc(0x220),_0x4ab4b0),_0x5c5535=Boolean(_0xe30608['cdpEndpoint']),_0x17490b=_0x5c5535?{'browserName':_0x8f71dc(0x1b7),'cdpEndpoint':_0xe30608['cdpEndpoint']}:((()=>{const _0x29b1cf=_0x8f71dc,{launchOptions:_0x573569,contextOptions:_0xd4ac10}=_0xc06ff6['frQBf'](buildBrowserOptionsFromSettings,_0xe30608,{'headless':_0x52fd9f?![]:_0xe30608[_0x29b1cf(0x1d1)]??!![],'storageStatePath':_0x59cce1});if(process['getuid']?.()===0x0){const _0x84f5a9=[_0x29b1cf(0x1b4),_0xc06ff6[_0x29b1cf(0x1f2)]],_0x12fec0=_0x573569[_0x29b1cf(0x1da)]??[],_0x36de45=_0x84f5a9['filter'](_0x797135=>!_0x12fec0[_0x29b1cf(0x211)](_0x797135));_0x573569[_0x29b1cf(0x1da)]=[..._0x12fec0,..._0x36de45];}return{'isolated':!![],'browserName':_0xc06ff6[_0x29b1cf(0x1fa)],'launchOptions':_0x573569,'contextOptions':{..._0xd4ac10,'permissions':[_0xc06ff6[_0x29b1cf(0x1fb)],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x22cd41=_0xc58db8===_0xc06ff6['LTgGy']?{'browser':_0x17490b,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x3a0d18,'outputMode':_0xc06ff6['hqVkQ'],'codegen':_0xc06ff6['qnZli']}:{'name':_0x16f1f3,'browser':_0x17490b,'capabilities':['core',_0x8f71dc(0x1d5),_0xc06ff6[_0x8f71dc(0x1e5)],'pdf',_0xc06ff6[_0x8f71dc(0x209)]],'imageResponses':_0xc06ff6[_0x8f71dc(0x1a7)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x3a0d18};if(!_0x5c5535){const _0xac64e1=_0x22cd41[_0x8f71dc(0x1ac)],_0x44ec9c=_0xac64e1[_0x8f71dc(0x200)];if(_0xc06ff6[_0x8f71dc(0x203)](_0x44ec9c['userAgent'],undefined))delete _0x44ec9c[_0x8f71dc(0x1ca)];if(_0xc06ff6[_0x8f71dc(0x203)](_0x44ec9c['storageState'],undefined))delete _0x44ec9c['storageState'];}const _0x4fc9de=_0xc06ff6['frQBf'](join,tmpdir(),'ranger-config');!existsSync(_0x4fc9de)&&await mkdir(_0x4fc9de,{'recursive':!![]});const _0x1853b0=_0xc58db8===_0x8f71dc(0x21e)?'-cli':'',_0x38b657=join(_0x4fc9de,_0x16f1f3+'-'+Date['now']()+_0x1853b0+'.json');return await _0xc06ff6['PWhHo'](writeFile,_0x38b657,JSON[_0x8f71dc(0x1e2)](_0x22cd41,null,0x2)),{'configPath':_0x38b657,'storageStatePath':_0x59cce1};}export async function buildPlaywrightCliConfig(_0x3bb312,_0x34c6eb,_0x41a944,_0x509bfc,_0x3802c3){const _0x31ba07=_0x33543a,_0x43c617={'LIDAp':function(_0x255621,_0x599092){return _0x255621(_0x599092);},'PzqvE':function(_0x3baf8f,_0x1edcf8,_0x26d319,_0x3fb0e8,_0x504abb,_0x3a5d7f,_0x354d51){return _0x3baf8f(_0x1edcf8,_0x26d319,_0x3fb0e8,_0x504abb,_0x3a5d7f,_0x354d51);},'yTySA':'playwright-cli'};if(_0x3802c3)return buildPlaywrightConfigCore(_0x3bb312,_0x3802c3,_0x34c6eb,_0x41a944,_0x509bfc,_0x31ba07(0x21e));const {storageStatePath:_0x3e125a,tempAuthPath:_0x2c8e25}=await _0x43c617[_0x31ba07(0x1f7)](resolveLocalAuthPath,_0x43c617[_0x31ba07(0x1f7)](getEnvDir,_0x34c6eb));try{const _0x455cc3=await _0x43c617[_0x31ba07(0x224)](buildPlaywrightConfigCore,_0x3bb312,_0x3e125a,_0x34c6eb,_0x41a944,_0x509bfc,_0x43c617[_0x31ba07(0x212)]);return{..._0x455cc3,'tempAuthPath':_0x2c8e25};}catch(_0x3097e7){_0x2c8e25&&await unlink(_0x2c8e25)['catch'](()=>{});throw _0x3097e7;}}export async function buildRangerwrightCliConfig(_0x390e5d,_0x351048,_0x4cb036,_0x2ea8fa,_0x3cf362){const _0x57501b=_0x33543a,_0x1f3992={'eiyma':function(_0x1a8db2,_0x2efac5,_0x387c47){return _0x1a8db2(_0x2efac5,_0x387c47);},'msxhF':function(_0x3d35a,_0x11a4a7){return _0x3d35a===_0x11a4a7;},'jbgVG':_0x57501b(0x1b7),'DQAHV':_0x57501b(0x19e),'SanCA':function(_0x3cb668,_0xf0dd17){return _0x3cb668(_0xf0dd17);},'LCsSN':function(_0x3c60ed){return _0x3c60ed();},'AHxfr':_0x57501b(0x220),'WIIfV':function(_0x2f05b5,_0x408cd0){return _0x2f05b5(_0x408cd0);},'NJUdS':function(_0x2932f5,_0x3c7180,_0x411544){return _0x2932f5(_0x3c7180,_0x411544);}},{storageStatePath:_0x411e81,tempAuthPath:_0x2316dd}=_0x3cf362?{'storageStatePath':_0x3cf362,'tempAuthPath':undefined}:await _0x1f3992[_0x57501b(0x1c1)](resolveLocalAuthPath,_0x1f3992['SanCA'](getEnvDir,_0x351048)),_0x433cf8=_0x4cb036||_0x1f3992['LCsSN'](randomUUID),_0x2f8685=join(getRangerDir(),_0x1f3992[_0x57501b(0x214)],_0x433cf8),_0x1e7f1e=_0x1f3992['WIIfV'](Boolean,_0x390e5d['cdpEndpoint']),_0xceb44b=_0x1e7f1e?{'browserName':_0x57501b(0x1b7),'cdpEndpoint':_0x390e5d['cdpEndpoint']}:((()=>{const _0x44f4b1=_0x57501b,{launchOptions:_0x231c07,contextOptions:_0x2a4bb1}=_0x1f3992['eiyma'](buildBrowserOptionsFromSettings,_0x390e5d,{'headless':_0x2ea8fa?![]:_0x390e5d['headless']??!![],'storageStatePath':_0x411e81});if(_0x1f3992[_0x44f4b1(0x21c)](process[_0x44f4b1(0x1b5)]?.(),0x0)){const _0x4819a2=['--no-sandbox','--disable-setuid-sandbox'],_0x4d638f=_0x231c07[_0x44f4b1(0x1da)]??[],_0x23f930=_0x4819a2['filter'](_0x26bd32=>!_0x4d638f[_0x44f4b1(0x211)](_0x26bd32));_0x231c07['args']=[..._0x4d638f,..._0x23f930];}return{'browserName':_0x1f3992['jbgVG'],'launchOptions':_0x231c07,'contextOptions':{..._0x2a4bb1,'permissions':[_0x1f3992['DQAHV'],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x1e7f1e){const _0x2a503c=_0xceb44b[_0x57501b(0x200)];if(_0x2a503c){if(_0x2a503c['userAgent']===undefined)delete _0x2a503c[_0x57501b(0x1ca)];if(_0x2a503c['storageState']===undefined)delete _0x2a503c['storageState'];}}const _0xf2508b={'browser':_0xceb44b,'outputDir':_0x2f8685,'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'settle':{'navigationLoadTimeoutMs':0x7530,'networkSettleTimeoutMs':0x1388,'networkIdleWindowMs':0x1f4,'postActionAnimationFrameCount':0x2}};let _0x2063c1;try{const _0x78676e=join(_0x1f3992[_0x57501b(0x1ea)](tmpdir),'ranger-config');!existsSync(_0x78676e)&&await _0x1f3992[_0x57501b(0x21d)](mkdir,_0x78676e,{'recursive':!![]}),_0x2063c1=join(_0x78676e,_0x351048+'-'+Date[_0x57501b(0x21a)]()+'-rangerwright.json'),await _0x1f3992[_0x57501b(0x1eb)](writeFile,_0x2063c1,JSON[_0x57501b(0x1e2)](_0xf2508b,null,0x2));}catch(_0x4e0dea){_0x2316dd&&await unlink(_0x2316dd)[_0x57501b(0x226)](()=>{});throw _0x4e0dea;}return{'configPath':_0x2063c1,'storageStatePath':_0x411e81,'tempAuthPath':_0x2316dd,'outputDir':_0x2f8685};}export async function buildNovaActCliConfig(_0x23799a,_0x2cb269,_0x3b6b93,_0x139baf,_0x4a02b7){const _0x2543de=_0x33543a,_0x33a855={'jzaIZ':function(_0x3e2122,_0x2f4218){return _0x3e2122(_0x2f4218);},'pLfXG':function(_0x4126a3){return _0x4126a3();},'ggsTR':_0x2543de(0x220),'fBOrV':_0x2543de(0x1e4),'CLVby':function(_0x98564b,_0x41717a,_0x2f7add){return _0x98564b(_0x41717a,_0x2f7add);},'pCmMq':_0x2543de(0x1b4),'xQsKS':_0x2543de(0x1bf),'sSWZr':function(_0x251c30,_0xeef4e9){return _0x251c30===_0xeef4e9;},'ZjNni':function(_0x498607,_0x3b20d7){return _0x498607(_0x3b20d7);},'VJfXI':'string','URKbG':function(_0x3ad57f,_0x133dbd){return _0x3ad57f(_0x133dbd);},'EihGe':function(_0x3c5cb6,_0x5ec13b){return _0x3c5cb6(_0x5ec13b);}},{storageStatePath:_0x41acaf,tempAuthPath:_0x10baef}=_0x4a02b7?{'storageStatePath':_0x4a02b7,'tempAuthPath':undefined}:await _0x33a855[_0x2543de(0x1d9)](resolveLocalAuthPath,getEnvDir(_0x2cb269)),_0x4a1015=_0x3b6b93||_0x33a855['pLfXG'](randomUUID),_0x57a4e7=join(_0x33a855['pLfXG'](getRangerDir),_0x33a855[_0x2543de(0x1cf)],_0x4a1015),_0xe92823=join(_0x57a4e7,_0x33a855[_0x2543de(0x1fe)]),_0x3e1205=_0x41acaf?join(_0xe92823,'Default'):undefined,{launchOptions:_0x5360ef,contextOptions:_0x2b7790}=_0x33a855['CLVby'](buildBrowserOptionsFromSettings,_0x23799a,{'headless':_0x139baf?![]:_0x23799a[_0x2543de(0x1d1)]??!![],'storageStatePath':_0x41acaf});if(process[_0x2543de(0x1b5)]?.()===0x0){const _0x100e2f=[_0x33a855['pCmMq'],_0x33a855['xQsKS']],_0x38696c=_0x5360ef[_0x2543de(0x1da)]??[],_0x22d34e=_0x100e2f[_0x2543de(0x1be)](_0x27a8c8=>!_0x38696c[_0x2543de(0x211)](_0x27a8c8));_0x5360ef['args']=[..._0x38696c,..._0x22d34e];}const _0x2c946d=_0x33a855[_0x2543de(0x1f6)](typeof _0x5360ef['executablePath'],'string')?_0x5360ef['executablePath']:_0x41acaf?chromium['executablePath']():undefined;return{'storageStatePath':_0x41acaf,'tempAuthPath':_0x10baef,'baseUrl':_0x23799a['baseUrl'],'headless':_0x33a855['ZjNni'](Boolean,_0x5360ef[_0x2543de(0x1d1)]),'userDataDir':_0xe92823,'browserProfilePath':_0x3e1205,'executablePath':_0x2c946d,'launchArgs':Array['isArray'](_0x5360ef[_0x2543de(0x1da)])?_0x5360ef['args']['filter'](_0x50c899=>typeof _0x50c899==='string'):[],'userAgent':_0x33a855['sSWZr'](typeof _0x2b7790[_0x2543de(0x1ca)],_0x33a855[_0x2543de(0x1f0)])?_0x2b7790['userAgent']:undefined,'extraHTTPHeaders':_0x2b7790['extraHTTPHeaders'],'allowInsecureLocalhost':_0x33a855['URKbG'](Boolean,_0x23799a[_0x2543de(0x1b0)]),'safeMode':_0x33a855['URKbG'](Boolean,_0x23799a['safeMode']),'cdpEndpoint':_0x23799a['cdpEndpoint'],'isCdpMode':_0x33a855['EihGe'](Boolean,_0x23799a[_0x2543de(0x1bd)])};}function _0x4b62(){const _0xbd0e84=['OVSdF','chromium','ranger-auth-','keys','tXzqu','XzIan','CAbsg','cdpEndpoint','filter','--disable-setuid-sandbox','headers','SanCA','string','replace','nownM','auth.json','legacy','haPpY','settings.json','NHpEd','userAgent','NVopn','mVlvG','location','Failed\x20to\x20decrypt\x20auth\x20state:\x20','ggsTR','223096beLQCE','headless','.json','Ttzhi','IamTx','tabs','ICPWt','529216tbqPYe','entries','jzaIZ','args','NYGsY','FKmQK','vYsiv','isArray','join','BZISV','AUviJ','stringify','dyFrX','nova-user-data','bSbHx','39ONwebT','--disable-features=WebBluetooth','423DvliZB','DNalW','LCsSN','NJUdS','install','--disable-web-security','storageStatePath','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','VJfXI','parse','HxkkD','extraHTTPHeaders','6lfzdBn','JIkWi','sSWZr','LIDAp','4860700kJVTTU','vision','cATYK','oeOAh','mTBRu','DdMGP','fBOrV','ziHDP','contextOptions','XsbBx','none','ZZaKL','ZZNnq','all','RvBTp','SocKc','CZrxT','fijCN','env','ignoreHTTPSErrors','path','pBsXh','2325568zyxWQC','niMcb','object','includes','yTySA','mFDEa','AHxfr','lSrut','nxfeb','UZVdK','safeMode','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','now','tLYZz','msxhF','eiyma','playwright-cli','5467bOBpox','sessions','bSoDn','local','CZgtT','PzqvE','egLdf','catch','boolean','endsWith','clipboard-read','--allow-running-insecure-content','YySSj','42651336NjlRDU','forWrite','TULQl','441466LyporT','lsctg','length','WghSS','4rXfYew','stagehand','utf-8','locations','browser','RMZmO','hQLUP','4670cHMvZE','allowInsecureLocalhost','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','map','slAwH','--no-sandbox','getuid'];_0x4b62=function(){return _0xbd0e84;};return _0x4b62();}export function getNestedValue(_0xd3d2ac,_0x444c73){const _0x4e8514=_0x33543a,_0x5e229c={'KUwhi':function(_0x1d35d4,_0x406baf){return _0x1d35d4(_0x406baf);},'TKhbn':function(_0x2f1387,_0x342cc0){return _0x2f1387===_0x342cc0;},'RvBTp':function(_0x655302,_0x226691){return _0x655302!==_0x226691;}},_0x1cf177=_0x5e229c['KUwhi'](parseKeyPath,_0x444c73);let _0x543e3e=_0xd3d2ac;for(const _0x5d477e of _0x1cf177){if(_0x543e3e===null||_0x5e229c['TKhbn'](_0x543e3e,undefined)||_0x5e229c[_0x4e8514(0x206)](typeof _0x543e3e,'object'))return undefined;_0x543e3e=_0x543e3e[_0x5d477e];}return _0x543e3e;}export function setNestedValue(_0x4ccaf3,_0x1293b1,_0x464a0d){const _0x450bb5=_0x33543a,_0x115801={'tLYZz':function(_0x33f918,_0x484629){return _0x33f918<_0x484629;},'NVopn':function(_0x2c6f27,_0x586a4a){return _0x2c6f27-_0x586a4a;},'LkoBD':function(_0x4b6bb8,_0x3fa138){return _0x4b6bb8!==_0x3fa138;}},_0x2070e7=parseKeyPath(_0x1293b1);let _0x54f6e9=_0x4ccaf3;for(let _0x239d25=0x0;_0x115801[_0x450bb5(0x21b)](_0x239d25,_0x115801[_0x450bb5(0x1cb)](_0x2070e7['length'],0x1));_0x239d25++){const _0x49634a=_0x2070e7[_0x239d25];(!(_0x49634a in _0x54f6e9)||_0x115801['LkoBD'](typeof _0x54f6e9[_0x49634a],'object'))&&(_0x54f6e9[_0x49634a]={}),_0x54f6e9=_0x54f6e9[_0x49634a];}_0x54f6e9[_0x2070e7[_0x2070e7[_0x450bb5(0x1a6)]-0x1]]=_0x464a0d;}export function deleteNestedValue(_0x4c8417,_0x3b0a1a){const _0x3d6457=_0x33543a,_0x417ead={'XsbBx':function(_0x27a7ab,_0x337a0c){return _0x27a7ab(_0x337a0c);},'DNalW':function(_0x155d55,_0x38b4f4){return _0x155d55<_0x38b4f4;},'Ttzhi':function(_0x53c2e2,_0x2ab5b3){return _0x53c2e2-_0x2ab5b3;},'TULQl':function(_0x3e357c,_0x5c5b71){return _0x3e357c===_0x5c5b71;},'mIfMi':function(_0x4a55f9,_0x17c423){return _0x4a55f9!==_0x17c423;},'MYuCA':_0x3d6457(0x210),'HoYIf':function(_0x5aea8b,_0x527d03){return _0x5aea8b in _0x527d03;}},_0x165c67=_0x417ead[_0x3d6457(0x201)](parseKeyPath,_0x3b0a1a);let _0xe69e7c=_0x4c8417;for(let _0x4209c7=0x0;_0x417ead[_0x3d6457(0x1e9)](_0x4209c7,_0x417ead[_0x3d6457(0x1d3)](_0x165c67[_0x3d6457(0x1a6)],0x1));_0x4209c7++){if(_0xe69e7c===null||_0x417ead[_0x3d6457(0x1a3)](_0xe69e7c,undefined)||typeof _0xe69e7c!==_0x3d6457(0x210))return![];_0xe69e7c=_0xe69e7c[_0x165c67[_0x4209c7]];}if(_0xe69e7c===null||_0xe69e7c===undefined||_0x417ead['mIfMi'](typeof _0xe69e7c,_0x417ead['MYuCA']))return![];const _0x2e61c6=_0x165c67[_0x165c67[_0x3d6457(0x1a6)]-0x1];if(_0x417ead['HoYIf'](_0x2e61c6,_0xe69e7c))return delete _0xe69e7c[_0x2e61c6],!![];return![];}function parseKeyPath(_0x53b3a4){const _0x4fd3be=_0x33543a,_0x91a667={'wdPMx':'setupHeader','xRQJx':'setupHeaders'},_0x5b84d5=_0x53b3a4['split']('.');return _0x5b84d5[0x0]==='header'&&(_0x5b84d5[0x0]=_0x4fd3be(0x1c0)),_0x5b84d5[0x0]===_0x91a667['wdPMx']&&(_0x5b84d5[0x0]=_0x91a667['xRQJx']),_0x5b84d5;}export function formatSettings(_0x3f546f,_0x524727=0x0){const _0x4104a0=_0x33543a,_0x4ad016={'YvOtN':function(_0x431440,_0xfab8){return _0x431440===_0xfab8;},'ziHDP':function(_0x273ae0,_0x448d77){return _0x273ae0===_0x448d77;},'Eiqvz':function(_0x41cafd,_0xcf06ba){return _0x41cafd!==_0xcf06ba;}},_0x2b25d2=[],_0x33089f='\x20\x20'['repeat'](_0x524727);for(const [_0x56d9ae,_0x15d571]of Object['entries'](_0x3f546f)){if(_0x4ad016['YvOtN'](_0x15d571,undefined))continue;if(_0x4ad016[_0x4104a0(0x1ff)](typeof _0x15d571,_0x4104a0(0x210))&&_0x4ad016['Eiqvz'](_0x15d571,null)){_0x2b25d2['push'](''+_0x33089f+_0x56d9ae+':');for(const [_0x418b21,_0x4afb1a]of Object[_0x4104a0(0x1d8)](_0x15d571)){_0x2b25d2['push'](_0x33089f+'\x20\x20'+_0x418b21+':\x20'+_0x4afb1a);}}else _0x2b25d2['push'](''+_0x33089f+_0x56d9ae+':\x20'+_0x15d571);}return _0x2b25d2[_0x4104a0(0x1df)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x2125ff,_0x3ffc5f){const _0x2d35e8=_0x3c84,_0x5100ee=_0x2125ff();while(!![]){try{const _0x2a7897=-parseInt(_0x2d35e8(0x119))/0x1*(parseInt(_0x2d35e8(0x113))/0x2)+parseInt(_0x2d35e8(0x114))/0x3+parseInt(_0x2d35e8(0x117))/0x4+parseInt(_0x2d35e8(0x116))/0x5+parseInt(_0x2d35e8(0x111))/0x6*(parseInt(_0x2d35e8(0x11b))/0x7)+-parseInt(_0x2d35e8(0x110))/0x8+-parseInt(_0x2d35e8(0x112))/0x9*(-parseInt(_0x2d35e8(0x11a))/0xa);if(_0x2a7897===_0x3ffc5f)break;else _0x5100ee['push'](_0x5100ee['shift']());}catch(_0xfffb18){_0x5100ee['push'](_0x5100ee['shift']());}}}(_0x1b5f,0xcd665));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x54d77a){const _0x1fd942=_0x3c84,_0x4ca467={'IEcio':function(_0x39bdcb,_0x12cc70,_0x5841b3){return _0x39bdcb(_0x12cc70,_0x5841b3);},'kuJLI':'utf-8'},_0x129eb2=join(__dirname,'..','..',_0x1fd942(0x118)),_0x4cbb94=_0x4ca467[_0x1fd942(0x115)](join,_0x129eb2,_0x54d77a);try{return readFileSync(_0x4cbb94,_0x4ca467['kuJLI']);}catch{return'';}}function _0x3c84(_0x49638c,_0x43c48b){_0x49638c=_0x49638c-0x110;const _0x1b5fb1=_0x1b5f();let _0x3c84b4=_0x1b5fb1[_0x49638c];return _0x3c84b4;}export function getRangerSkillContent(){const _0xb5d46b={'QBquH':'ranger/SKILL.md'};return readSkillContent(_0xb5d46b['QBquH']);}function _0x1b5f(){const _0x3cd0d6=['18jtLkbO','774TmmUtF','88eEOEHy','4134999QdKjQn','IEcio','2381500ZAjzNN','2469272LWqjew','skills','28264LinfyW','76630DMprUC','247891DJaKri','9218200RYKddF'];_0x1b5f=function(){return _0x3cd0d6;};return _0x1b5f();}
1
+ (function(_0x4619bb,_0x21a221){const _0x43192c=_0x424b,_0xc0b30f=_0x4619bb();while(!![]){try{const _0xd1667=-parseInt(_0x43192c(0x170))/0x1+-parseInt(_0x43192c(0x173))/0x2+parseInt(_0x43192c(0x172))/0x3*(parseInt(_0x43192c(0x171))/0x4)+-parseInt(_0x43192c(0x16c))/0x5+parseInt(_0x43192c(0x175))/0x6*(-parseInt(_0x43192c(0x16f))/0x7)+parseInt(_0x43192c(0x16a))/0x8*(parseInt(_0x43192c(0x16e))/0x9)+parseInt(_0x43192c(0x174))/0xa;if(_0xd1667===_0x21a221)break;else _0xc0b30f['push'](_0xc0b30f['shift']());}catch(_0x3ac7a0){_0xc0b30f['push'](_0xc0b30f['shift']());}}}(_0x32c7,0xf0b4d));import{readFileSync}from'fs';function _0x32c7(){const _0x476902=['806353NjUXst','442076NPiCzT','27SYYAmq','3226020byxeFE','30119970sGcUvZ','230718FQVfWf','5134328CStqRb','QLqbQ','4943125HkjyQT','DGVVL','27KfNvqW','280ARWasy'];_0x32c7=function(){return _0x476902;};return _0x32c7();}import{dirname,join}from'path';import{fileURLToPath}from'url';function _0x424b(_0x520172,_0x8c836c){_0x520172=_0x520172-0x16a;const _0x32c783=_0x32c7();let _0x424b7f=_0x32c783[_0x520172];return _0x424b7f;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x210b39){const _0x756394=_0x424b,_0x1e35d7={'DGVVL':'skills','UAWuu':function(_0x5648a5,_0x44030a,_0x21e510){return _0x5648a5(_0x44030a,_0x21e510);}},_0x54cfb0=join(__dirname,'..','..',_0x1e35d7[_0x756394(0x16d)]),_0x15bffc=join(_0x54cfb0,_0x210b39);try{return _0x1e35d7['UAWuu'](readFileSync,_0x15bffc,'utf-8');}catch{return'';}}export function getRangerSkillContent(){const _0x4369e3=_0x424b,_0x5e1d13={'QLqbQ':'ranger/SKILL.md'};return readSkillContent(_0x5e1d13[_0x4369e3(0x16b)]);}
@@ -1 +1 @@
1
- (function(_0xd91896,_0x8a159d){const _0x22b6e3=_0x4eb8,_0x2505c3=_0xd91896();while(!![]){try{const _0xa8a153=-parseInt(_0x22b6e3(0x184))/0x1+parseInt(_0x22b6e3(0x1a6))/0x2+parseInt(_0x22b6e3(0x18c))/0x3+-parseInt(_0x22b6e3(0x198))/0x4+parseInt(_0x22b6e3(0x1a3))/0x5*(parseInt(_0x22b6e3(0x18a))/0x6)+-parseInt(_0x22b6e3(0x187))/0x7+parseInt(_0x22b6e3(0x18b))/0x8*(parseInt(_0x22b6e3(0x188))/0x9);if(_0xa8a153===_0x8a159d)break;else _0x2505c3['push'](_0x2505c3['shift']());}catch(_0x2b5f92){_0x2505c3['push'](_0x2505c3['shift']());}}}(_0x2287,0x87a20));function _0x2287(){const _0x1076d2=['project','\x20\x20Removed\x20deprecated\x20skill:\x20','eiprq','match','warn','opencode','RBsHM','.md','trim','445TsgYuH','ucQWD','\x20\x20Skill\x20not\x20found:\x20','1532454uACDwY','484386CduPQl','utf-8','endsWith','6503980xDqGYH','9CisWBx','\x20\x20Files:\x20','70470VLqeAB','3609808DqYaLf','1966221dekYeS','\x20\x20Location:\x20','isDirectory','SKILL.md','VXRjK','CTzTZ','JMUNt','wEdIv','GLUXz','HfTMa','push','log','3796348WsHRDc','rflZo'];_0x2287=function(){return _0x1076d2;};return _0x2287();}import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';function _0x4eb8(_0x14c221,_0x4282d8){_0x14c221=_0x14c221-0x184;const _0x22870b=_0x2287();let _0x4eb867=_0x22870b[_0x14c221];return _0x4eb867;}import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=['ranger'];export const DEPRECATED_SKILLS=['e2e-test-recommender','bug-bash','feature-tracker'];export async function installSkill(_0xf1dc2b,_0x1e10c5={}){const _0x39187c=_0x4eb8,_0x4d0ef8={'MDVwa':_0x39187c(0x19a),'CTzTZ':'claude','pVrDK':function(_0x20cd71,_0x3bef95,_0x2b7ecb){return _0x20cd71(_0x3bef95,_0x2b7ecb);},'GLUXz':function(_0x23269a,_0x37e0c3){return _0x23269a(_0x37e0c3);},'FvbDh':function(_0x1c49df,_0x23f69f){return _0x1c49df&&_0x23f69f;},'UgxKm':function(_0x245919,_0x580785){return _0x245919===_0x580785;},'JMUNt':function(_0xbbb513,_0x21b403,_0x39c8c5){return _0xbbb513(_0x21b403,_0x39c8c5);},'QikJC':function(_0x509484,_0x5d561a,_0x582a80){return _0x509484(_0x5d561a,_0x582a80);},'OKZwZ':function(_0x41605a,_0x2395c0,_0x812817){return _0x41605a(_0x2395c0,_0x812817);},'idEyj':function(_0x3e7e5d,_0x4d93e6,_0x7be394){return _0x3e7e5d(_0x4d93e6,_0x7be394);},'eiprq':function(_0x54ccdc,_0x5dbe37,_0x22c29a){return _0x54ccdc(_0x5dbe37,_0x22c29a);},'HfTMa':'SKILL.md','RBsHM':_0x39187c(0x185),'rflZo':function(_0x6c96fd,_0x15773c){return _0x6c96fd(_0x15773c);},'wEdIv':function(_0x22d5b3,_0x28d005,_0x4f8109,_0x3aa389){return _0x22d5b3(_0x28d005,_0x4f8109,_0x3aa389);}},{level:level=_0x4d0ef8['MDVwa'],cliVersion:_0x47487c,platform:platform=_0x4d0ef8[_0x39187c(0x191)]}=_0x1e10c5,_0x270e15=getSourceSkillsDir(),_0x50295a=join(_0x270e15,_0xf1dc2b),_0x5bb5b4=_0x4d0ef8['pVrDK'](join,_0x270e15,_0xf1dc2b+_0x39187c(0x1a1)),_0x92d178=_0x4d0ef8['GLUXz'](existsSync,_0x50295a)&&statSync(_0x50295a)[_0x39187c(0x18e)]()&&_0x4d0ef8[_0x39187c(0x194)](existsSync,join(_0x50295a,_0x39187c(0x18f))),_0x401cd7=_0x4d0ef8[_0x39187c(0x194)](existsSync,_0x5bb5b4);if(_0x4d0ef8['FvbDh'](!_0x92d178,!_0x401cd7))return console[_0x39187c(0x19e)](_0x39187c(0x1a5)+_0xf1dc2b),![];const _0x372585=_0x4d0ef8['UgxKm'](platform,_0x39187c(0x19f))?_0x4d0ef8[_0x39187c(0x194)](getOpencodeSkillsDir,level):getSkillsDir(level),_0x2e1507=_0x4d0ef8['JMUNt'](join,_0x372585,_0xf1dc2b);await _0x4d0ef8['QikJC'](mkdir,_0x2e1507,{'recursive':!![]});let _0x5d67f5,_0xf627b5=[];if(_0x92d178){const _0x12137d=await readdir(_0x50295a),_0x48ac34=_0x12137d['filter'](_0x31cd98=>_0x31cd98[_0x39187c(0x186)](_0x39187c(0x1a1)));for(const _0x424b9a of _0x48ac34){const _0x2dac0d=_0x4d0ef8['OKZwZ'](join,_0x50295a,_0x424b9a),_0x299f48=_0x4d0ef8['idEyj'](join,_0x2e1507,_0x424b9a);await copyFile(_0x2dac0d,_0x299f48),_0xf627b5[_0x39187c(0x196)](_0x424b9a);}_0x5d67f5=await _0x4d0ef8[_0x39187c(0x192)](readFile,_0x4d0ef8[_0x39187c(0x19c)](join,_0x50295a,_0x4d0ef8['HfTMa']),'utf-8');}else{_0x5d67f5=await readFile(_0x5bb5b4,_0x39187c(0x185));const _0x55a16a=join(_0x2e1507,_0x4d0ef8[_0x39187c(0x195)]);await writeFile(_0x55a16a,_0x5d67f5,_0x4d0ef8[_0x39187c(0x1a0)]),_0xf627b5['push'](_0x4d0ef8[_0x39187c(0x195)]);}const {name:_0x3c3e8c}=_0x4d0ef8[_0x39187c(0x199)](parseFrontmatter,_0x5d67f5);return console['log']('\x20\x20Installed\x20skill:\x20'+_0x3c3e8c),console[_0x39187c(0x197)](_0x39187c(0x18d)+_0x2e1507),_0xf627b5['length']>0x1&&console[_0x39187c(0x197)](_0x39187c(0x189)+_0xf627b5['join'](',\x20')),_0x4d0ef8[_0x39187c(0x193)](logLocalAgentInstallation,_0xf1dc2b,{'skillDisplayName':_0x3c3e8c,'installLevel':level},_0x47487c)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x420c90=_0x4eb8,_0x3918ec={'ucQWD':'skills','NlOxv':function(_0x33bf83,_0x14ccd6){return _0x33bf83(_0x14ccd6);}},_0x397b3e=[join(__dirname,'..','..',_0x3918ec['ucQWD']),join(__dirname,'..','..','..',_0x3918ec[_0x420c90(0x1a4)])];for(const _0xfeede7 of _0x397b3e){if(_0x3918ec['NlOxv'](existsSync,_0xfeede7))return _0xfeede7;}return _0x397b3e[0x0];}function parseFrontmatter(_0x4437b2){const _0x5d883c=_0x4eb8,_0x564364={'lgrFu':'Invalid\x20skill\x20frontmatter'},_0x2c24d5=_0x4437b2['match'](/^---\n([\s\S]+?)\n---/);if(!_0x2c24d5)throw new Error(_0x564364['lgrFu']);const _0x30f7c4=_0x2c24d5[0x1],_0x4c974f=_0x30f7c4[_0x5d883c(0x19d)](/name:\s*(.+)/),_0x433739=_0x30f7c4[_0x5d883c(0x19d)](/description:\s*"?(.+?)"?\n/);return{'name':_0x4c974f?.[0x1]['trim']()||'','description':_0x433739?.[0x1][_0x5d883c(0x1a2)]()||''};}export async function removeSkill(_0x2616e9,_0x43cf3a){const _0x24fa03=_0x4eb8,_0x334b29={'dBtMI':function(_0x450014,_0x323637,_0x5e2a98){return _0x450014(_0x323637,_0x5e2a98);},'VXRjK':function(_0x4484ed,_0x5e9c82){return _0x4484ed(_0x5e9c82);}},_0x26ce46=getSkillsDir(_0x43cf3a),_0x3f998b=_0x334b29['dBtMI'](join,_0x26ce46,_0x2616e9);if(!_0x334b29[_0x24fa03(0x190)](existsSync,_0x3f998b))return![];try{return await rm(_0x3f998b,{'recursive':!![]}),console['log'](_0x24fa03(0x19b)+_0x2616e9),!![];}catch{return console['warn']('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x2616e9),![];}}
1
+ function _0x4912(){const _0x2c0bb0=['bug-bash','uvZEG','match','12430693TWHpSN','Invalid\x20skill\x20frontmatter','WXcIL','push','feature-tracker','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','trim','18JKIHfs','claude','146GNHYZv','jeLLB','mTRnR','5657qvVZut','\x20\x20Files:\x20','isDirectory','log','9883090KQxmAA','warn','216ZyzHbg','185985RnFqvr','cLIjE','\x20\x20Skill\x20not\x20found:\x20','EedJs','CknLd','.md','ranger','filter','1013788gDmyqB','10IwoKJf','8JhNweD','207153evbmIs','\x20\x20Location:\x20','39xXZfei','12679692qkVCos','endsWith'];_0x4912=function(){return _0x2c0bb0;};return _0x4912();}const _0x134f36=_0xa63e;(function(_0x828a7d,_0x14317e){const _0x37f584=_0xa63e,_0x4d5b42=_0x828a7d();while(!![]){try{const _0x54e8df=parseInt(_0x37f584(0x107))/0x1*(parseInt(_0x37f584(0x104))/0x2)+-parseInt(_0x37f584(0x102))/0x3*(parseInt(_0x37f584(0xf0))/0x4)+-parseInt(_0x37f584(0x10e))/0x5*(-parseInt(_0x37f584(0x10d))/0x6)+-parseInt(_0x37f584(0x10b))/0x7*(parseInt(_0x37f584(0xf2))/0x8)+-parseInt(_0x37f584(0xf3))/0x9*(-parseInt(_0x37f584(0xf1))/0xa)+-parseInt(_0x37f584(0xfb))/0xb+parseInt(_0x37f584(0xf6))/0xc*(parseInt(_0x37f584(0xf5))/0xd);if(_0x54e8df===_0x14317e)break;else _0x4d5b42['push'](_0x4d5b42['shift']());}catch(_0x2ee6ae){_0x4d5b42['push'](_0x4d5b42['shift']());}}}(_0x4912,0xd76ca));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x134f36(0x114)];export const DEPRECATED_SKILLS=['e2e-test-recommender',_0x134f36(0xf8),_0x134f36(0xff)];function _0xa63e(_0x183a01,_0xebed54){_0x183a01=_0x183a01-0xef;const _0x49122b=_0x4912();let _0xa63e0d=_0x49122b[_0x183a01];return _0xa63e0d;}export async function installSkill(_0x55ed03,_0x327fdb={}){const _0x4f22ea=_0x134f36,_0x3509b5={'BTtzc':_0x4f22ea(0x103),'EedJs':function(_0x4989a5){return _0x4989a5();},'IFAcj':function(_0x15ce4f,_0xc7b97c,_0x2eefaa){return _0x15ce4f(_0xc7b97c,_0x2eefaa);},'cLIjE':function(_0x581740,_0x414a42){return _0x581740(_0x414a42);},'mTRnR':'SKILL.md','XCxBB':function(_0x42195c,_0x59755d){return _0x42195c(_0x59755d);},'UmeVD':function(_0x7ddf91,_0x5366ce){return _0x7ddf91(_0x5366ce);},'CknLd':function(_0x280edc,_0x557096,_0x4b42dc){return _0x280edc(_0x557096,_0x4b42dc);},'jeLLB':function(_0x43ce58,_0x53c09f,_0x560ae4){return _0x43ce58(_0x53c09f,_0x560ae4);},'oFbum':function(_0x394a1b,_0x276437,_0x5c16c4,_0xc8a641){return _0x394a1b(_0x276437,_0x5c16c4,_0xc8a641);}},{level:level='project',cliVersion:_0x49150c,platform:platform=_0x3509b5['BTtzc']}=_0x327fdb,_0x2b9366=_0x3509b5[_0x4f22ea(0x111)](getSourceSkillsDir),_0x1a5acf=_0x3509b5['IFAcj'](join,_0x2b9366,_0x55ed03),_0x113e86=join(_0x2b9366,_0x55ed03+_0x4f22ea(0x113)),_0x53dcae=existsSync(_0x1a5acf)&&_0x3509b5[_0x4f22ea(0x10f)](statSync,_0x1a5acf)[_0x4f22ea(0x109)]()&&existsSync(join(_0x1a5acf,_0x3509b5['mTRnR'])),_0x596f80=_0x3509b5[_0x4f22ea(0x10f)](existsSync,_0x113e86);if(!_0x53dcae&&!_0x596f80)return console[_0x4f22ea(0x10c)](_0x4f22ea(0x110)+_0x55ed03),![];const _0x2a1b3f=platform==='opencode'?_0x3509b5['XCxBB'](getOpencodeSkillsDir,level):getSkillsDir(level),_0x328cb2=_0x3509b5['IFAcj'](join,_0x2a1b3f,_0x55ed03);await mkdir(_0x328cb2,{'recursive':!![]});let _0x54e031,_0x378eb4=[];if(_0x53dcae){const _0x1f2b8f=await _0x3509b5['UmeVD'](readdir,_0x1a5acf),_0x4fc1f3=_0x1f2b8f[_0x4f22ea(0xef)](_0x345c69=>_0x345c69[_0x4f22ea(0xf7)]('.md'));for(const _0x583c77 of _0x4fc1f3){const _0xb1576e=_0x3509b5[_0x4f22ea(0x112)](join,_0x1a5acf,_0x583c77),_0x6c2d21=_0x3509b5['CknLd'](join,_0x328cb2,_0x583c77);await copyFile(_0xb1576e,_0x6c2d21),_0x378eb4[_0x4f22ea(0xfe)](_0x583c77);}_0x54e031=await readFile(join(_0x1a5acf,_0x3509b5[_0x4f22ea(0x106)]),'utf-8');}else{_0x54e031=await _0x3509b5[_0x4f22ea(0x105)](readFile,_0x113e86,'utf-8');const _0x5d2dfd=join(_0x328cb2,_0x3509b5['mTRnR']);await writeFile(_0x5d2dfd,_0x54e031,'utf-8'),_0x378eb4['push']('SKILL.md');}const {name:_0x290383}=parseFrontmatter(_0x54e031);return console[_0x4f22ea(0x10a)]('\x20\x20Installed\x20skill:\x20'+_0x290383),console[_0x4f22ea(0x10a)](_0x4f22ea(0xf4)+_0x328cb2),_0x378eb4['length']>0x1&&console['log'](_0x4f22ea(0x108)+_0x378eb4['join'](',\x20')),_0x3509b5['oFbum'](logLocalAgentInstallation,_0x55ed03,{'skillDisplayName':_0x290383,'installLevel':level},_0x49150c)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x117ba3=[join(__dirname,'..','..','skills'),join(__dirname,'..','..','..','skills')];for(const _0x5cfb55 of _0x117ba3){if(existsSync(_0x5cfb55))return _0x5cfb55;}return _0x117ba3[0x0];}function parseFrontmatter(_0x471b73){const _0x5f0f69=_0x134f36,_0x212c5b={'uvZEG':_0x5f0f69(0xfc)},_0x235ac4=_0x471b73[_0x5f0f69(0xfa)](/^---\n([\s\S]+?)\n---/);if(!_0x235ac4)throw new Error(_0x212c5b[_0x5f0f69(0xf9)]);const _0x52fc70=_0x235ac4[0x1],_0x459d0f=_0x52fc70['match'](/name:\s*(.+)/),_0x114f68=_0x52fc70[_0x5f0f69(0xfa)](/description:\s*"?(.+?)"?\n/);return{'name':_0x459d0f?.[0x1]['trim']()||'','description':_0x114f68?.[0x1][_0x5f0f69(0x101)]()||''};}export async function removeSkill(_0x3f4fc5,_0x290a8f){const _0x3c4d83=_0x134f36,_0x3fad40={'pWuYj':function(_0x1af4d3,_0x47ece5){return _0x1af4d3(_0x47ece5);},'YaEmq':function(_0x46f737,_0x393330){return _0x46f737(_0x393330);},'WXcIL':function(_0x2322c1,_0xcd4590,_0xe3c69a){return _0x2322c1(_0xcd4590,_0xe3c69a);}},_0x35cb6c=_0x3fad40['pWuYj'](getSkillsDir,_0x290a8f),_0x5390ac=join(_0x35cb6c,_0x3f4fc5);if(!_0x3fad40['YaEmq'](existsSync,_0x5390ac))return![];try{return await _0x3fad40[_0x3c4d83(0xfd)](rm,_0x5390ac,{'recursive':!![]}),console['log']('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x3f4fc5),!![];}catch{return console['warn'](_0x3c4d83(0x100)+_0x3f4fc5),![];}}
@@ -1 +1 @@
1
- const _0x21fdc8=_0x23ab;(function(_0x4a3293,_0x593627){const _0x2f5b7f=_0x23ab,_0x8f758=_0x4a3293();while(!![]){try{const _0x2c083b=parseInt(_0x2f5b7f(0x20f))/0x1+parseInt(_0x2f5b7f(0x22d))/0x2+-parseInt(_0x2f5b7f(0x201))/0x3*(parseInt(_0x2f5b7f(0x21d))/0x4)+-parseInt(_0x2f5b7f(0x202))/0x5+parseInt(_0x2f5b7f(0x219))/0x6+parseInt(_0x2f5b7f(0x207))/0x7*(-parseInt(_0x2f5b7f(0x224))/0x8)+parseInt(_0x2f5b7f(0x223))/0x9;if(_0x2c083b===_0x593627)break;else _0x8f758['push'](_0x8f758['shift']());}catch(_0x4b85ae){_0x8f758['push'](_0x8f758['shift']());}}}(_0x242a,0x9684e));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x4d9793,_0x321190){const _0x635cbb=_0x23ab,_0x466e1b={'fGksK':function(_0x1e4e82,_0x1ff757){return _0x1e4e82>=_0x1ff757;},'fOxwb':function(_0x2925d5,_0x1e698e){return _0x2925d5>_0x1e698e;},'TwiRy':function(_0x577d91,_0x459ac8){return _0x577d91&_0x459ac8;},'vaKsl':function(_0x45a1a3,_0x251953){return _0x45a1a3*_0x251953;},'dxvNM':function(_0x400b5a,_0x288ed4){return _0x400b5a+_0x288ed4;}};if(_0x466e1b[_0x635cbb(0x213)](_0x321190,_0x4d9793[_0x635cbb(0x21c)]))return[0x0,0x0];const _0x1ab646=_0x4d9793[_0x321190];let _0x504332=0x1,_0x2c46f1=0x80;while(_0x504332<=0x8&&!(_0x1ab646&_0x2c46f1)){_0x504332++,_0x2c46f1>>=0x1;}if(_0x466e1b['fOxwb'](_0x321190+_0x504332,_0x4d9793['length']))return[0x0,0x0];let _0x386f57=_0x466e1b['TwiRy'](_0x1ab646,_0x2c46f1-0x1);for(let _0x5cae54=0x1;_0x5cae54<_0x504332;_0x5cae54++){_0x386f57=_0x466e1b[_0x635cbb(0x218)](_0x386f57,0x100)+_0x4d9793[_0x466e1b[_0x635cbb(0x225)](_0x321190,_0x5cae54)];}return[_0x386f57,_0x504332];}function readId(_0x2d6e74,_0x58119e){const _0x71d7c4=_0x23ab,_0x4efa59={'RtQRs':function(_0x594f85,_0xfeae35){return _0x594f85>=_0xfeae35;},'oXGiw':function(_0x4a6e92,_0x4be6b6){return _0x4a6e92+_0x4be6b6;},'DCZJw':function(_0x48f1d7,_0x818fad){return _0x48f1d7<_0x818fad;},'jlenZ':function(_0x44c41f,_0x8c9658){return _0x44c41f*_0x8c9658;}};if(_0x4efa59['RtQRs'](_0x58119e,_0x2d6e74['length']))return[0x0,0x0];const _0x5ae76c=_0x2d6e74[_0x58119e];let _0x5b5516;if(_0x5ae76c>=0x80)_0x5b5516=0x1;else{if(_0x5ae76c>=0x40)_0x5b5516=0x2;else{if(_0x5ae76c>=0x20)_0x5b5516=0x3;else{if(_0x4efa59['RtQRs'](_0x5ae76c,0x10))_0x5b5516=0x4;else return[_0x5ae76c,0x1];}}}if(_0x4efa59[_0x71d7c4(0x1f3)](_0x58119e,_0x5b5516)>_0x2d6e74[_0x71d7c4(0x21c)])return[0x0,0x0];let _0x240535=0x0;for(let _0x38b3eb=0x0;_0x4efa59[_0x71d7c4(0x203)](_0x38b3eb,_0x5b5516);_0x38b3eb++){_0x240535=_0x4efa59[_0x71d7c4(0x217)](_0x240535,0x100)+_0x2d6e74[_0x4efa59['oXGiw'](_0x58119e,_0x38b3eb)];}return[_0x240535,_0x5b5516];}function readUint(_0x554779,_0x5ac609,_0x5b98ae){const _0x576fd5=_0x23ab,_0x4efd15={'zadMA':function(_0x4142c1,_0x29bc81){return _0x4142c1<_0x29bc81;},'jMNuI':function(_0x2fc9c9,_0x2fb2be){return _0x2fc9c9+_0x2fb2be;}};let _0x24cd66=0x0;for(let _0x5235d5=0x0;_0x4efd15['zadMA'](_0x5235d5,_0x5b98ae);_0x5235d5++){_0x24cd66=_0x4efd15[_0x576fd5(0x1f6)](_0x24cd66*0x100,_0x554779[_0x5ac609+_0x5235d5]);}return _0x24cd66;}function isUnknownSize(_0x590ef2,_0x5e49e9){const _0x5c2024=_0x23ab,_0x114cef={'hNpDQ':function(_0x1f4d19,_0x19238d){return _0x1f4d19===_0x19238d;},'gglBa':function(_0x355b7a,_0x4805d4){return _0x355b7a-_0x4805d4;},'hBMRM':function(_0x124c40,_0x31da40){return _0x124c40*_0x31da40;}};return _0x114cef[_0x5c2024(0x205)](_0x590ef2,_0x114cef[_0x5c2024(0x1f2)](Math['pow'](0x2,_0x114cef[_0x5c2024(0x209)](0x7,_0x5e49e9)),0x1));}function writeVint(_0x3bea5f,_0x1e173f){const _0xf5b0ed=_0x23ab,_0x72670d={'vtAkZ':function(_0x20350b,_0x2e2fd6){return _0x20350b*_0x2e2fd6;},'RoKBV':function(_0x4aff62,_0x271570){return _0x4aff62-_0x271570;},'Ydxbw':function(_0x2fdf5f,_0x4683b3){return _0x2fdf5f/_0x4683b3;},'BJHTb':function(_0x33ad32,_0x5d14e7){return _0x33ad32<<_0x5d14e7;}};let _0x3f6336=_0x1e173f||0x1;while(Math[_0xf5b0ed(0x1fc)](0x2,_0x72670d[_0xf5b0ed(0x1ff)](0x7,_0x3f6336))-0x2<_0x3bea5f)_0x3f6336++;const _0x5cde85=Buffer[_0xf5b0ed(0x211)](_0x3f6336);for(let _0xa2da23=_0x72670d[_0xf5b0ed(0x220)](_0x3f6336,0x1);_0xa2da23>=0x0;_0xa2da23--){_0x5cde85[_0xa2da23]=_0x3bea5f&0xff,_0x3bea5f=Math[_0xf5b0ed(0x227)](_0x72670d['Ydxbw'](_0x3bea5f,0x100));}return _0x5cde85[0x0]|=_0x72670d[_0xf5b0ed(0x21b)](0x1,0x8-_0x3f6336),_0x5cde85;}function writeUint(_0x45abe7,_0x16e45f){const _0x317df0=Buffer['alloc'](_0x16e45f);for(let _0x54a873=_0x16e45f-0x1;_0x54a873>=0x0;_0x54a873--){_0x317df0[_0x54a873]=_0x45abe7&0xff,_0x45abe7=Math['floor'](_0x45abe7/0x100);}return _0x317df0;}function writeUnknownSizeVint(_0x3172b1){const _0x10482d=_0x23ab,_0x2a6c77={'Awlbl':function(_0x74dc23,_0x327486){return _0x74dc23>>_0x327486;}},_0x3901d8=Buffer[_0x10482d(0x211)](_0x3172b1,0xff);return _0x3901d8[0x0]=_0x2a6c77[_0x10482d(0x206)](0xff,_0x3172b1-0x1),_0x3901d8;}function uintSize(_0xd9593c){const _0xd3e1be={'IfYzE':function(_0x10d300,_0x49717c){return _0x10d300===_0x49717c;},'SnSuA':function(_0x4c0758,_0x1abae8){return _0x4c0758/_0x1abae8;}};if(_0xd3e1be['IfYzE'](_0xd9593c,0x0))return 0x1;let _0x24a653=0x0,_0x9298b3=_0xd9593c;while(_0x9298b3>0x0){_0x24a653++,_0x9298b3=Math['floor'](_0xd3e1be['SnSuA'](_0x9298b3,0x100));}return _0x24a653;}function findTimestampScale(_0x7bb326,_0x5b5f11){const _0x1fe238=_0x23ab,_0x4a5489={'XjdqJ':function(_0xf55cd9,_0x463825){return _0xf55cd9<_0x463825;},'lNwEV':function(_0x300a26,_0x4d95fe,_0x4fcc12){return _0x300a26(_0x4d95fe,_0x4fcc12);},'iWNTA':function(_0x353f1f,_0x42abb6,_0x449989){return _0x353f1f(_0x42abb6,_0x449989);},'rvndl':function(_0x6e0de8,_0x1a928b){return _0x6e0de8+_0x1a928b;},'cGFxy':function(_0x2e9f1f,_0x1c8902){return _0x2e9f1f+_0x1c8902;},'yiZKA':function(_0x4ca8f3,_0x127e76,_0x1b2351){return _0x4ca8f3(_0x127e76,_0x1b2351);},'gQwfD':function(_0x21781d,_0x13dd82){return _0x21781d+_0x13dd82;},'VThgG':function(_0x2c9511,_0x118a61){return _0x2c9511===_0x118a61;},'cfxYu':function(_0x54cdc6,_0xef1051){return _0x54cdc6+_0xef1051;}};let _0x267e77=_0x5b5f11;const _0x11425d=Math['min'](_0x7bb326[_0x1fe238(0x21c)],_0x5b5f11+0x2710);while(_0x4a5489['XjdqJ'](_0x267e77,_0x11425d)){const [_0x221bc4,_0x58d96c]=_0x4a5489[_0x1fe238(0x1f8)](readId,_0x7bb326,_0x267e77),[_0x3c6987,_0x23a93a]=_0x4a5489[_0x1fe238(0x20a)](readVint,_0x7bb326,_0x267e77+_0x58d96c);if(_0x221bc4===ID_INFO){let _0xfe9b9c=_0x4a5489[_0x1fe238(0x20b)](_0x267e77,_0x58d96c)+_0x23a93a;const _0x4eebe9=_0x4a5489['cGFxy'](_0xfe9b9c,_0x3c6987);while(_0xfe9b9c<_0x4eebe9){const [_0x5bb9f3,_0xfca710]=_0x4a5489['yiZKA'](readId,_0x7bb326,_0xfe9b9c),[_0x569257,_0xd18568]=_0x4a5489['yiZKA'](readVint,_0x7bb326,_0xfe9b9c+_0xfca710);if(_0x5bb9f3===ID_TIMESTAMP_SCALE)return readUint(_0x7bb326,_0x4a5489['rvndl'](_0x4a5489[_0x1fe238(0x210)](_0xfe9b9c,_0xfca710),_0xd18568),_0x569257);_0xfe9b9c+=_0xfca710+_0xd18568+_0x569257;}break;}if(_0x4a5489['VThgG'](_0x221bc4,ID_CLUSTER))break;if(isUnknownSize(_0x3c6987,_0x23a93a))break;_0x267e77+=_0x4a5489[_0x1fe238(0x1fd)](_0x58d96c,_0x23a93a)+_0x3c6987;}return 0xf4240;}function findFirstClusterOffset(_0x494c49,_0x6269ba){const _0x12616e=_0x23ab,_0x5c456c={'MvpyC':function(_0x4ff5c1,_0xc8410f){return _0x4ff5c1<_0xc8410f;},'TiWgR':function(_0x13cd64,_0x58b7b0,_0x2f381c){return _0x13cd64(_0x58b7b0,_0x2f381c);},'FXhLL':function(_0x7a00c4,_0x418fbc){return _0x7a00c4+_0x418fbc;},'wIBLw':function(_0x2be097,_0xd5f515){return _0x2be097+_0xd5f515;}};let _0x30aecf=_0x6269ba;while(_0x5c456c[_0x12616e(0x1f9)](_0x30aecf,_0x494c49[_0x12616e(0x21c)])){const [_0x36201b,_0x4d62ed]=_0x5c456c['TiWgR'](readId,_0x494c49,_0x30aecf);if(_0x36201b===ID_CLUSTER)return _0x30aecf;const [_0x126b3e,_0x4dae3a]=_0x5c456c['TiWgR'](readVint,_0x494c49,_0x5c456c['FXhLL'](_0x30aecf,_0x4d62ed));if(isUnknownSize(_0x126b3e,_0x4dae3a))return _0x30aecf;_0x30aecf+=_0x5c456c[_0x12616e(0x200)](_0x4d62ed,_0x4dae3a)+_0x126b3e;}return _0x494c49[_0x12616e(0x21c)];}function findClusterEnd(_0x36ddd4,_0x23ca96,_0x4d89e6,_0x26735b){const _0x4a46a4=_0x23ab,_0x4e0ebf={'Jaxlt':function(_0x516cc2,_0x192cdb){return _0x516cc2-_0x192cdb;},'gzYAi':function(_0x11ff23,_0x4bfb8f,_0x47c17f){return _0x11ff23(_0x4bfb8f,_0x47c17f);},'HLbFi':function(_0x3cfa31,_0x50163f){return _0x3cfa31+_0x50163f;}};if(!isUnknownSize(_0x4d89e6,_0x26735b))return _0x23ca96+_0x4d89e6;const _0x5a2655=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x215643=_0x23ca96;while(_0x215643<_0x4e0ebf[_0x4a46a4(0x222)](_0x36ddd4['length'],0x4)){const [_0x25a6e1,_0x1effdf]=readId(_0x36ddd4,_0x215643);if(_0x5a2655['has'](_0x25a6e1))return _0x215643;const [_0x3c89f6,_0x28f8b6]=_0x4e0ebf['gzYAi'](readVint,_0x36ddd4,_0x215643+_0x1effdf);if(isUnknownSize(_0x3c89f6,_0x28f8b6))return _0x36ddd4['length'];_0x215643+=_0x4e0ebf[_0x4a46a4(0x1ef)](_0x1effdf+_0x28f8b6,_0x3c89f6);}return _0x36ddd4[_0x4a46a4(0x21c)];}function extractClusters(_0x5a0a4b,_0x527832){const _0x2d2a8b=_0x23ab,_0x3b5c66={'yqEch':function(_0x5d1311,_0x61ead3){return _0x5d1311===_0x61ead3;},'zPBCs':function(_0x4f2b76,_0x523edd){return _0x4f2b76!==_0x523edd;},'jxwru':function(_0x19266d,_0x47ebf1){return _0x19266d+_0x47ebf1;},'xTzGv':function(_0x49cdaa,_0x50a987,_0x20b010,_0x39b08a,_0x2114bf){return _0x49cdaa(_0x50a987,_0x20b010,_0x39b08a,_0x2114bf);},'rUIzP':function(_0x39ba5f,_0x47de50,_0x24ffc0){return _0x39ba5f(_0x47de50,_0x24ffc0);},'XsDrZ':function(_0x5b4595,_0x5f45fd,_0x345da2,_0x3d78ec){return _0x5b4595(_0x5f45fd,_0x345da2,_0x3d78ec);},'VdaKM':function(_0x4835cb,_0x271b54){return _0x4835cb+_0x271b54;},'ZEyEN':function(_0x5ba8f6,_0x1727be){return _0x5ba8f6<_0x1727be;},'KWUkA':function(_0x2ddffe,_0x221367,_0x49dbce){return _0x2ddffe(_0x221367,_0x49dbce);},'CUxwK':function(_0x445159,_0x57835a){return _0x445159+_0x57835a;},'XnGKF':function(_0x41ef1c,_0xfd8298){return _0x41ef1c>_0xfd8298;},'MLGcy':function(_0x1ac16d,_0x1ab18b){return _0x1ac16d===_0x1ab18b;},'knWHa':function(_0x19a7db,_0x1707a9){return _0x19a7db+_0x1707a9;},'thEVD':function(_0x19d582,_0xecbb1e){return _0x19d582+_0xecbb1e;}},_0x221c32=[],_0xa5a2a7=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x1cc28e=0x0;while(_0x1cc28e<_0x5a0a4b[_0x2d2a8b(0x21c)]){const _0x39c845=_0x5a0a4b[_0x2d2a8b(0x226)](_0xa5a2a7,_0x1cc28e);if(_0x3b5c66[_0x2d2a8b(0x1f5)](_0x39c845,-0x1))break;const [_0x4e5ef2,_0x11150b]=readId(_0x5a0a4b,_0x39c845);if(_0x3b5c66['zPBCs'](_0x4e5ef2,ID_CLUSTER)){_0x1cc28e=_0x39c845+0x1;continue;}const [_0xa24945,_0x37cc22]=readVint(_0x5a0a4b,_0x3b5c66[_0x2d2a8b(0x22f)](_0x39c845,_0x11150b)),_0x152958=_0x39c845+_0x11150b+_0x37cc22,_0x4cb91f=_0x3b5c66['xTzGv'](findClusterEnd,_0x5a0a4b,_0x152958,_0xa24945,_0x37cc22);let _0x58c163=_0x152958,_0x5cd879=0x0,_0x1834cb=0x2,_0x3dc39e=![],_0x44ff9b=Buffer[_0x2d2a8b(0x211)](0x0),_0x35cecc=Buffer['alloc'](0x0);while(_0x58c163<_0x4cb91f){const [_0x2d9bac,_0x3b22fd]=readId(_0x5a0a4b,_0x58c163),[_0x2f8f50,_0x5db758]=_0x3b5c66[_0x2d2a8b(0x231)](readVint,_0x5a0a4b,_0x3b5c66[_0x2d2a8b(0x22f)](_0x58c163,_0x3b22fd));if(_0x2d9bac===ID_TIMESTAMP){_0x5cd879=_0x3b5c66['XsDrZ'](readUint,_0x5a0a4b,_0x3b5c66['VdaKM'](_0x58c163+_0x3b22fd,_0x5db758),_0x2f8f50),_0x1834cb=_0x2f8f50,_0x3dc39e=!![],_0x44ff9b=_0x5a0a4b['slice'](_0x152958,_0x58c163);const _0x38f9d5=_0x3b5c66[_0x2d2a8b(0x22f)](_0x3b5c66['jxwru'](_0x58c163+_0x3b22fd,_0x5db758),_0x2f8f50);_0x35cecc=_0x5a0a4b['slice'](_0x38f9d5,_0x4cb91f);break;}if(_0x2d9bac===ID_CLUSTER)break;if(isUnknownSize(_0x2f8f50,_0x5db758))break;_0x58c163+=_0x3b5c66[_0x2d2a8b(0x20c)](_0x3b5c66['VdaKM'](_0x3b22fd,_0x5db758),_0x2f8f50);}!_0x3dc39e&&(_0x35cecc=_0x5a0a4b[_0x2d2a8b(0x22e)](_0x152958,_0x4cb91f));let _0x24068e=_0x5cd879;_0x58c163=_0x152958;while(_0x3b5c66['ZEyEN'](_0x58c163,_0x4cb91f)){const [_0x196be1,_0x3eb2ff]=_0x3b5c66[_0x2d2a8b(0x22c)](readId,_0x5a0a4b,_0x58c163),[_0x52e216,_0x1ff436]=_0x3b5c66['rUIzP'](readVint,_0x5a0a4b,_0x58c163+_0x3eb2ff);if(_0x3b5c66['yqEch'](_0x196be1,ID_SIMPLE_BLOCK)&&_0x52e216>=0x4){const _0x37e899=_0x3b5c66['CUxwK'](_0x58c163+_0x3eb2ff,_0x1ff436),[,_0x56bb98]=readVint(_0x5a0a4b,_0x37e899),_0x2513da=_0x5a0a4b[_0x2d2a8b(0x1fa)](_0x3b5c66[_0x2d2a8b(0x20c)](_0x37e899,_0x56bb98)),_0x53cbc5=_0x5cd879+_0x2513da;if(_0x3b5c66['XnGKF'](_0x53cbc5,_0x24068e))_0x24068e=_0x53cbc5;}if(_0x3b5c66['MLGcy'](_0x196be1,ID_CLUSTER))break;if(isUnknownSize(_0x52e216,_0x1ff436))break;_0x58c163+=_0x3b5c66[_0x2d2a8b(0x208)](_0x3b5c66['thEVD'](_0x3eb2ff,_0x1ff436),_0x52e216);}_0x221c32[_0x2d2a8b(0x232)]({'timestamp':_0x5cd879,'maxTicks':_0x24068e,'bodyBeforeTimestamp':_0x44ff9b,'bodyAfterTimestamp':_0x35cecc,'timestampElementSize':_0x1834cb}),_0x1cc28e=_0x4cb91f;}return _0x221c32;}function parseWebm(_0xeb0659){const _0x43a6eb=_0x23ab,_0x565754={'iFyTc':function(_0x5a2a0c,_0xb3b1eb,_0x3be606){return _0x5a2a0c(_0xb3b1eb,_0x3be606);},'CRshU':function(_0x528c8d,_0x463566){return _0x528c8d+_0x463566;},'wooVM':function(_0x2f6be7,_0xf9cda4){return _0x2f6be7!==_0xf9cda4;},'xLPaQ':function(_0x592419,_0x2e8443,_0x2f4548){return _0x592419(_0x2e8443,_0x2f4548);},'DzHrP':function(_0x2d8d26,_0x41fba8){return _0x2d8d26+_0x41fba8;},'GIZBv':function(_0x12a4a7,_0x2ecf0e){return _0x12a4a7+_0x2ecf0e;}};let _0x5d9b77=0x0;const [,_0x2ca045]=_0x565754[_0x43a6eb(0x1f4)](readId,_0xeb0659,_0x5d9b77),[_0x5b4421,_0x7c9df9]=readVint(_0xeb0659,_0x5d9b77+_0x2ca045);_0x5d9b77+=_0x565754[_0x43a6eb(0x22a)](_0x2ca045+_0x7c9df9,_0x5b4421);const [_0x2f4bca,_0x264a58]=readId(_0xeb0659,_0x5d9b77);if(_0x565754['wooVM'](_0x2f4bca,ID_SEGMENT))return null;const [,_0x23ed42]=_0x565754['xLPaQ'](readVint,_0xeb0659,_0x5d9b77+_0x264a58),_0x1d1ffc=_0x565754[_0x43a6eb(0x1f7)](_0x565754['GIZBv'](_0x5d9b77,_0x264a58),_0x23ed42),_0x27185f=findTimestampScale(_0xeb0659,_0x1d1ffc),_0xc2948a=findFirstClusterOffset(_0xeb0659,_0x1d1ffc),_0x186967=_0xeb0659['slice'](0x0,_0xc2948a),_0x4c1bd1=extractClusters(_0xeb0659,_0x27185f);let _0x179b42=0x0;for(const _0x12d80e of _0x4c1bd1){if(_0x12d80e['maxTicks']>_0x179b42)_0x179b42=_0x12d80e['maxTicks'];}return{'header':_0x186967,'clusters':_0x4c1bd1,'timestampScale':_0x27185f,'maxTimestampTicks':_0x179b42};}function _0x23ab(_0x1c84f1,_0x4f2378){_0x1c84f1=_0x1c84f1-0x1ef;const _0x242ad3=_0x242a();let _0x23ab8a=_0x242ad3[_0x1c84f1];return _0x23ab8a;}function _0x242a(){const _0x3e757d=['slice','jxwru','clusters','rUIzP','push','HLbFi','endsWith','puQle','gglBa','oXGiw','iFyTc','yqEch','jMNuI','DzHrP','lNwEV','MvpyC','readInt16BE','argv','pow','cfxYu','bodyBeforeTimestamp','vtAkZ','wIBLw','3549QlDmDJ','6084545dtOpug','DCZJw','hiAlj','hNpDQ','Awlbl','1246MeHnhj','knWHa','hBMRM','iWNTA','rvndl','VdaKM','copy','nqDQG','927730SXfgUL','gQwfD','alloc','hvgog','fGksK','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','gdZiQ','from','jlenZ','vaKsl','3973146tqpeyp','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','BJHTb','length','40gyhxnV','XJwRs','XacxZ','RoKBV','concat','Jaxlt','2490498dMppPu','22680LMKICS','dxvNM','indexOf','floor','stitchWebmFiles.ts','ScPfY','CRshU','log','KWUkA','966504TfmTMZ'];_0x242a=function(){return _0x3e757d;};return _0x242a();}function buildCluster(_0x5a04e6,_0x51ba8f,_0x54104f){const _0x1d8ce7=_0x23ab,_0x4a5019={'CHqcT':function(_0x496293,_0x4db431,_0x35d305){return _0x496293(_0x4db431,_0x35d305);},'XdRXp':function(_0x5426b5,_0x2501f3){return _0x5426b5(_0x2501f3);}},_0xf318e7=Buffer[_0x1d8ce7(0x216)]([0x1f,0x43,0xb6,0x75]),_0x9f019c=Math['max'](0x4,uintSize(_0x5a04e6)),_0x33ad50=Buffer['concat']([Buffer[_0x1d8ce7(0x216)]([ID_TIMESTAMP]),writeVint(_0x9f019c),_0x4a5019['CHqcT'](writeUint,_0x5a04e6,_0x9f019c)]),_0x1a3836=Buffer[_0x1d8ce7(0x221)]([_0x51ba8f,_0x33ad50,_0x54104f]),_0x539908=_0x4a5019['XdRXp'](writeVint,_0x1a3836[_0x1d8ce7(0x21c)]);return Buffer[_0x1d8ce7(0x221)]([_0xf318e7,_0x539908,_0x1a3836]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x313bee){const _0x3d1fa5=_0x23ab,_0x4002c9={'TfpYO':function(_0x5d5341,_0x30f075){return _0x5d5341+_0x30f075;},'XJwRs':function(_0x44218c,_0x255be4){return _0x44218c+_0x255be4;},'hvgog':function(_0xcfd650,_0x185c6a,_0x3b3877){return _0xcfd650(_0x185c6a,_0x3b3877);},'ScPfY':function(_0x4f408f,_0x4d108e){return _0x4f408f(_0x4d108e);},'gdZiQ':function(_0x1a3095,_0x15c518,_0x38f9d0){return _0x1a3095(_0x15c518,_0x38f9d0);},'XacxZ':function(_0x1b7670,_0x281000){return _0x1b7670===_0x281000;},'BKqbw':function(_0x5057de,_0x5ef136){return _0x5057de<_0x5ef136;},'puQle':function(_0x539c2a,_0x5f0645,_0x42698d){return _0x539c2a(_0x5f0645,_0x42698d);},'Uzyij':function(_0x1d6f70,_0x10eb8b){return _0x1d6f70+_0x10eb8b;},'spTAp':function(_0xbd454,_0x5ec5f0){return _0xbd454!==_0x5ec5f0;}},_0x4a5da6=Buffer['from'](_0x313bee);let _0x405c26=0x0;const [,_0x4e7e53]=readId(_0x4a5da6,_0x405c26),[_0x5c0682,_0x13fc3f]=readVint(_0x4a5da6,_0x4002c9['TfpYO'](_0x405c26,_0x4e7e53)),_0x5b2b68=_0x4002c9[_0x3d1fa5(0x21e)](_0x405c26,_0x4e7e53)+_0x13fc3f+_0x5c0682,[,_0x8dedac]=_0x4002c9[_0x3d1fa5(0x212)](readId,_0x4a5da6,_0x5b2b68),[,_0x161370]=_0x4002c9[_0x3d1fa5(0x212)](readVint,_0x4a5da6,_0x4002c9[_0x3d1fa5(0x21e)](_0x5b2b68,_0x8dedac)),_0x2c6628=_0x5b2b68+_0x8dedac+_0x161370,_0x137915=_0x4002c9[_0x3d1fa5(0x229)](writeUnknownSizeVint,_0x161370);_0x137915[_0x3d1fa5(0x20d)](_0x4a5da6,_0x5b2b68+_0x8dedac);let _0x43e732=_0x2c6628;const _0x5aa8e7=Math['min'](_0x4a5da6['length'],_0x2c6628+0x2710);while(_0x43e732<_0x5aa8e7){const [_0x5ec8d0,_0x1e40a9]=_0x4002c9[_0x3d1fa5(0x215)](readId,_0x4a5da6,_0x43e732),[_0xec47ba,_0x27c038]=readVint(_0x4a5da6,_0x4002c9['TfpYO'](_0x43e732,_0x1e40a9));if(_0x4002c9['XacxZ'](_0x5ec8d0,ID_CLUSTER))break;if(_0x4002c9[_0x3d1fa5(0x215)](isUnknownSize,_0xec47ba,_0x27c038))break;if(_0x4002c9[_0x3d1fa5(0x21f)](_0x5ec8d0,ID_INFO)){const _0x40a6bf=_0x43e732+_0x1e40a9+_0x27c038,_0x53021c=_0x40a6bf+_0xec47ba,_0x571a52=[];let _0x156ae3=_0x40a6bf;while(_0x4002c9['BKqbw'](_0x156ae3,_0x53021c)){const [_0x5f4d5f,_0x3ab7cc]=_0x4002c9[_0x3d1fa5(0x212)](readId,_0x4a5da6,_0x156ae3),[_0x2ddfd4,_0x424795]=_0x4002c9['puQle'](readVint,_0x4a5da6,_0x4002c9['TfpYO'](_0x156ae3,_0x3ab7cc)),_0x2b9825=_0x4002c9['Uzyij'](_0x3ab7cc,_0x424795)+_0x2ddfd4;_0x4002c9['spTAp'](_0x5f4d5f,ID_DURATION)&&_0x571a52[_0x3d1fa5(0x232)](_0x4a5da6[_0x3d1fa5(0x22e)](_0x156ae3,_0x156ae3+_0x2b9825)),_0x156ae3+=_0x2b9825;}const _0x3e635a=Buffer[_0x3d1fa5(0x221)](_0x571a52),_0x481961=Buffer[_0x3d1fa5(0x221)]([_0x4a5da6['slice'](_0x43e732,_0x43e732+_0x1e40a9),_0x4002c9[_0x3d1fa5(0x1f1)](writeVint,_0x3e635a[_0x3d1fa5(0x21c)],_0x27c038)]);return Buffer['concat']([_0x4a5da6['slice'](0x0,_0x43e732),_0x481961,_0x3e635a,_0x4a5da6['slice'](_0x53021c)]);}_0x43e732+=_0x1e40a9+_0x27c038+_0xec47ba;}return _0x4a5da6;}export function stitchWebmFiles(_0x57bbff,_0x1721da){const _0x715296=_0x23ab,_0x1ae5c={'ZvzxM':function(_0x13be19,_0x30b240){return _0x13be19(_0x30b240);},'IQXTY':function(_0x2573d8,_0x15660d){return _0x2573d8(_0x15660d);},'ZKFxO':function(_0x481d19,_0x2f3481){return _0x481d19===_0x2f3481;},'hiAlj':function(_0x4a59d0,_0x4eb693,_0x5b2918,_0x417200){return _0x4a59d0(_0x4eb693,_0x5b2918,_0x417200);},'nqDQG':function(_0x3aa213,_0x4c2824,_0x28fb91){return _0x3aa213(_0x4c2824,_0x28fb91);}};if(_0x57bbff[_0x715296(0x21c)]<=0x1)return![];const _0x42da6e=[];for(const _0xbcd37e of _0x57bbff){const _0x7833a4=_0x1ae5c['ZvzxM'](readFileSync,_0xbcd37e),_0x589e3d=_0x1ae5c['IQXTY'](parseWebm,_0x7833a4);if(!_0x589e3d||_0x1ae5c['ZKFxO'](_0x589e3d[_0x715296(0x230)]['length'],0x0))return![];_0x42da6e['push'](_0x589e3d);}const _0x248415=_0x42da6e[0x0],_0x1be245=_0x1ae5c['ZvzxM'](rebuildHeaderWithoutDuration,_0x248415['header']),_0x30ce1b=[_0x1be245];let _0x42b30b=0x0;for(let _0x694983=0x0;_0x694983<_0x42da6e[_0x715296(0x21c)];_0x694983++){const _0x243eb5=_0x42da6e[_0x694983];for(const _0xd24a2c of _0x243eb5[_0x715296(0x230)]){const _0x122d83=_0xd24a2c['timestamp']+_0x42b30b;_0x30ce1b['push'](_0x1ae5c[_0x715296(0x204)](buildCluster,_0x122d83,_0xd24a2c[_0x715296(0x1fe)],_0xd24a2c['bodyAfterTimestamp']));}const _0x5276b3=0x1e;_0x42b30b+=_0x243eb5['maxTimestampTicks']+_0x5276b3;}return _0x1ae5c[_0x715296(0x20e)](writeFileSync,_0x1721da,Buffer['concat'](_0x30ce1b)),!![];}if(process['argv'][0x1]?.[_0x21fdc8(0x1f0)](_0x21fdc8(0x228))||process['argv'][0x1]?.['endsWith']('stitchWebmFiles.js')){const args=process[_0x21fdc8(0x1fb)][_0x21fdc8(0x22e)](0x2);args[_0x21fdc8(0x21c)]<0x3&&(console['error'](_0x21fdc8(0x21a)),process['exit'](0x1));const output=args[args['length']-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console['log']('Stitched\x20'+inputs[_0x21fdc8(0x21c)]+'\x20files\x20->\x20'+output):console[_0x21fdc8(0x22b)](_0x21fdc8(0x214));}
1
+ const _0xd8e7bb=_0x81fe;(function(_0xd5875b,_0x575a50){const _0x5f5364=_0x81fe,_0x28453d=_0xd5875b();while(!![]){try{const _0x484998=parseInt(_0x5f5364(0x1a6))/0x1*(-parseInt(_0x5f5364(0x1b8))/0x2)+parseInt(_0x5f5364(0x1c5))/0x3+-parseInt(_0x5f5364(0x1a1))/0x4+parseInt(_0x5f5364(0x1ce))/0x5*(-parseInt(_0x5f5364(0x1b2))/0x6)+-parseInt(_0x5f5364(0x193))/0x7+-parseInt(_0x5f5364(0x1b7))/0x8*(parseInt(_0x5f5364(0x1ae))/0x9)+-parseInt(_0x5f5364(0x18f))/0xa*(-parseInt(_0x5f5364(0x1ca))/0xb);if(_0x484998===_0x575a50)break;else _0x28453d['push'](_0x28453d['shift']());}catch(_0x478708){_0x28453d['push'](_0x28453d['shift']());}}}(_0x1149,0xc8f89));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x3e8148,_0x384ecd){const _0x1810ef=_0x81fe,_0x3994da={'huOFc':function(_0x59d9cd,_0x275394){return _0x59d9cd>=_0x275394;},'DCnWP':function(_0x515d92,_0x4439e0){return _0x515d92<=_0x4439e0;},'lKHZo':function(_0x15bf16,_0x45a84d){return _0x15bf16>_0x45a84d;},'tcsnU':function(_0x218881,_0x4626c4){return _0x218881+_0x4626c4;},'HxjZA':function(_0x1c0869,_0x1c27fa){return _0x1c0869-_0x1c27fa;},'bfbDq':function(_0x1c00ce,_0x112639){return _0x1c00ce<_0x112639;},'WpfTU':function(_0x53931e,_0x37dd32){return _0x53931e+_0x37dd32;}};if(_0x3994da[_0x1810ef(0x1c2)](_0x384ecd,_0x3e8148[_0x1810ef(0x1ac)]))return[0x0,0x0];const _0x5b061c=_0x3e8148[_0x384ecd];let _0x2010c0=0x1,_0x299cbc=0x80;while(_0x3994da['DCnWP'](_0x2010c0,0x8)&&!(_0x5b061c&_0x299cbc)){_0x2010c0++,_0x299cbc>>=0x1;}if(_0x3994da[_0x1810ef(0x1bd)](_0x3994da['tcsnU'](_0x384ecd,_0x2010c0),_0x3e8148[_0x1810ef(0x1ac)]))return[0x0,0x0];let _0x1c9cae=_0x5b061c&_0x3994da[_0x1810ef(0x1c4)](_0x299cbc,0x1);for(let _0x3a35ce=0x1;_0x3994da[_0x1810ef(0x1ba)](_0x3a35ce,_0x2010c0);_0x3a35ce++){_0x1c9cae=_0x1c9cae*0x100+_0x3e8148[_0x3994da['WpfTU'](_0x384ecd,_0x3a35ce)];}return[_0x1c9cae,_0x2010c0];}function readId(_0xb91152,_0x1f97c6){const _0x280187=_0x81fe,_0x2a1a7c={'PyHcH':function(_0x35f460,_0x35c093){return _0x35f460>=_0x35c093;},'XltAx':function(_0x586ee0,_0x4bf515){return _0x586ee0>=_0x4bf515;},'YBVJj':function(_0x618d02,_0x2cf665){return _0x618d02>=_0x2cf665;},'NoPCj':function(_0x53070f,_0x3272ab){return _0x53070f+_0x3272ab;},'bKjdE':function(_0x18a984,_0x13a325){return _0x18a984*_0x13a325;}};if(_0x1f97c6>=_0xb91152[_0x280187(0x1ac)])return[0x0,0x0];const _0x4aa254=_0xb91152[_0x1f97c6];let _0x34f055;if(_0x2a1a7c[_0x280187(0x1a8)](_0x4aa254,0x80))_0x34f055=0x1;else{if(_0x4aa254>=0x40)_0x34f055=0x2;else{if(_0x2a1a7c[_0x280187(0x1b1)](_0x4aa254,0x20))_0x34f055=0x3;else{if(_0x2a1a7c[_0x280187(0x1c8)](_0x4aa254,0x10))_0x34f055=0x4;else return[_0x4aa254,0x1];}}}if(_0x2a1a7c[_0x280187(0x1d4)](_0x1f97c6,_0x34f055)>_0xb91152[_0x280187(0x1ac)])return[0x0,0x0];let _0x2409be=0x0;for(let _0x149fc9=0x0;_0x149fc9<_0x34f055;_0x149fc9++){_0x2409be=_0x2a1a7c['bKjdE'](_0x2409be,0x100)+_0xb91152[_0x1f97c6+_0x149fc9];}return[_0x2409be,_0x34f055];}function readUint(_0x198836,_0x1e5b09,_0x161d5e){const _0x30b6e2={'mTdWG':function(_0x5e6788,_0x3f68a6){return _0x5e6788<_0x3f68a6;},'yEpYH':function(_0x330ae4,_0x593a7a){return _0x330ae4+_0x593a7a;}};let _0x544ad2=0x0;for(let _0x12ad58=0x0;_0x30b6e2['mTdWG'](_0x12ad58,_0x161d5e);_0x12ad58++){_0x544ad2=_0x30b6e2['yEpYH'](_0x544ad2*0x100,_0x198836[_0x1e5b09+_0x12ad58]);}return _0x544ad2;}function isUnknownSize(_0x19241b,_0x3792ff){const _0x243b3b=_0x81fe;return _0x19241b===Math[_0x243b3b(0x1c7)](0x2,0x7*_0x3792ff)-0x1;}function writeVint(_0x1a21fa,_0x174ca2){const _0x11ac78=_0x81fe,_0x222cdd={'ImOXa':function(_0xee15b7,_0x12d895){return _0xee15b7||_0x12d895;},'sFvlk':function(_0x4275ff,_0x38976e){return _0x4275ff<_0x38976e;},'zsxHo':function(_0x6bb123,_0xcebf46){return _0x6bb123-_0xcebf46;},'qjjgp':function(_0x55c736,_0x2edbb3){return _0x55c736*_0x2edbb3;},'aiOvp':function(_0x4f9de9,_0x51fb36){return _0x4f9de9>=_0x51fb36;},'UGNXm':function(_0x2f98f2,_0x5ecad4){return _0x2f98f2&_0x5ecad4;},'rluou':function(_0x2b159d,_0x495095){return _0x2b159d/_0x495095;}};let _0x3bdeb9=_0x222cdd['ImOXa'](_0x174ca2,0x1);while(_0x222cdd['sFvlk'](_0x222cdd['zsxHo'](Math[_0x11ac78(0x1c7)](0x2,_0x222cdd[_0x11ac78(0x1c6)](0x7,_0x3bdeb9)),0x2),_0x1a21fa))_0x3bdeb9++;const _0x1ae0d8=Buffer[_0x11ac78(0x1a9)](_0x3bdeb9);for(let _0x3201ce=_0x222cdd['zsxHo'](_0x3bdeb9,0x1);_0x222cdd[_0x11ac78(0x18c)](_0x3201ce,0x0);_0x3201ce--){_0x1ae0d8[_0x3201ce]=_0x222cdd['UGNXm'](_0x1a21fa,0xff),_0x1a21fa=Math[_0x11ac78(0x1b9)](_0x222cdd['rluou'](_0x1a21fa,0x100));}return _0x1ae0d8[0x0]|=0x1<<0x8-_0x3bdeb9,_0x1ae0d8;}function writeUint(_0x237eb6,_0x4baa9b){const _0x4e0d21=_0x81fe,_0x4b27f7={'OwiIf':function(_0x3e45ac,_0x2b0128){return _0x3e45ac-_0x2b0128;},'YbxXB':function(_0xa45ead,_0x358abf){return _0xa45ead>=_0x358abf;},'tjUDd':function(_0x1e0dce,_0x1e7a68){return _0x1e0dce&_0x1e7a68;},'oYAFn':function(_0xb7bccb,_0xe45b18){return _0xb7bccb/_0xe45b18;}},_0x51dfe3=Buffer['alloc'](_0x4baa9b);for(let _0x358415=_0x4b27f7['OwiIf'](_0x4baa9b,0x1);_0x4b27f7[_0x4e0d21(0x19d)](_0x358415,0x0);_0x358415--){_0x51dfe3[_0x358415]=_0x4b27f7[_0x4e0d21(0x1d7)](_0x237eb6,0xff),_0x237eb6=Math['floor'](_0x4b27f7[_0x4e0d21(0x1a7)](_0x237eb6,0x100));}return _0x51dfe3;}function writeUnknownSizeVint(_0x50976a){const _0x49c841=_0x81fe,_0x2f1115={'Sseaa':function(_0x2e262d,_0x302bee){return _0x2e262d-_0x302bee;}},_0x3e14ae=Buffer[_0x49c841(0x1a9)](_0x50976a,0xff);return _0x3e14ae[0x0]=0xff>>_0x2f1115['Sseaa'](_0x50976a,0x1),_0x3e14ae;}function uintSize(_0x55d12f){const _0x4fc0e2=_0x81fe,_0xac4600={'ccUAY':function(_0x1c4dce,_0x35bdad){return _0x1c4dce===_0x35bdad;},'FPNND':function(_0x56b324,_0x37e5c8){return _0x56b324>_0x37e5c8;}};if(_0xac4600[_0x4fc0e2(0x1a5)](_0x55d12f,0x0))return 0x1;let _0x1ea4c4=0x0,_0xfbb400=_0x55d12f;while(_0xac4600['FPNND'](_0xfbb400,0x0)){_0x1ea4c4++,_0xfbb400=Math['floor'](_0xfbb400/0x100);}return _0x1ea4c4;}function findTimestampScale(_0xbeca19,_0xfc579d){const _0x5e974c=_0x81fe,_0x2ad145={'ApVBj':function(_0xb5c0a7,_0x340148){return _0xb5c0a7+_0x340148;},'HzqWE':function(_0x563ae8,_0x298cb1,_0x15e124){return _0x563ae8(_0x298cb1,_0x15e124);},'OSaTj':function(_0x345b7a,_0xca391c){return _0x345b7a+_0xca391c;},'wDwBP':function(_0x23b4a7,_0x829055){return _0x23b4a7<_0x829055;},'WnXiL':function(_0x56bc7f,_0x4b1621,_0xae3521,_0x268ae3){return _0x56bc7f(_0x4b1621,_0xae3521,_0x268ae3);},'VxDHe':function(_0x134ddf,_0x580678){return _0x134ddf+_0x580678;},'KOBPU':function(_0x5ce23c,_0x5cc921){return _0x5ce23c+_0x5cc921;},'UHnaS':function(_0x453713,_0x36abd0){return _0x453713+_0x36abd0;},'zETjl':function(_0x45cb56,_0x37e327){return _0x45cb56===_0x37e327;},'FalbV':function(_0x44f098,_0x2b2e85){return _0x44f098+_0x2b2e85;}};let _0x50b513=_0xfc579d;const _0x44b18e=Math[_0x5e974c(0x1af)](_0xbeca19[_0x5e974c(0x1ac)],_0x2ad145[_0x5e974c(0x198)](_0xfc579d,0x2710));while(_0x50b513<_0x44b18e){const [_0x47bdb2,_0x198a3b]=readId(_0xbeca19,_0x50b513),[_0x204cf3,_0x47aa78]=_0x2ad145[_0x5e974c(0x196)](readVint,_0xbeca19,_0x50b513+_0x198a3b);if(_0x47bdb2===ID_INFO){let _0x18b331=_0x50b513+_0x198a3b+_0x47aa78;const _0x40fcee=_0x2ad145['OSaTj'](_0x18b331,_0x204cf3);while(_0x2ad145[_0x5e974c(0x1d0)](_0x18b331,_0x40fcee)){const [_0x2b0a15,_0x2bb0c5]=readId(_0xbeca19,_0x18b331),[_0x15ebe8,_0x3a094b]=readVint(_0xbeca19,_0x18b331+_0x2bb0c5);if(_0x2b0a15===ID_TIMESTAMP_SCALE)return _0x2ad145[_0x5e974c(0x1d8)](readUint,_0xbeca19,_0x2ad145['VxDHe'](_0x2ad145[_0x5e974c(0x194)](_0x18b331,_0x2bb0c5),_0x3a094b),_0x15ebe8);_0x18b331+=_0x2ad145[_0x5e974c(0x197)](_0x2bb0c5+_0x3a094b,_0x15ebe8);}break;}if(_0x2ad145[_0x5e974c(0x1b3)](_0x47bdb2,ID_CLUSTER))break;if(_0x2ad145['HzqWE'](isUnknownSize,_0x204cf3,_0x47aa78))break;_0x50b513+=_0x2ad145['FalbV'](_0x198a3b,_0x47aa78)+_0x204cf3;}return 0xf4240;}function findFirstClusterOffset(_0xc434bc,_0x1f9ac3){const _0x5cb2d0=_0x81fe,_0x501746={'VKHUK':function(_0x3f227f,_0x5a16a2){return _0x3f227f+_0x5a16a2;}};let _0x132c24=_0x1f9ac3;while(_0x132c24<_0xc434bc['length']){const [_0x34cbf9,_0x3903c2]=readId(_0xc434bc,_0x132c24);if(_0x34cbf9===ID_CLUSTER)return _0x132c24;const [_0x41fc55,_0x1ac03e]=readVint(_0xc434bc,_0x132c24+_0x3903c2);if(isUnknownSize(_0x41fc55,_0x1ac03e))return _0x132c24;_0x132c24+=_0x501746[_0x5cb2d0(0x192)](_0x3903c2+_0x1ac03e,_0x41fc55);}return _0xc434bc[_0x5cb2d0(0x1ac)];}function findClusterEnd(_0x45eb1e,_0x1612f6,_0x4e3b69,_0x131aea){const _0xc806e7=_0x81fe,_0x391f56={'zsMpc':function(_0x555bf4,_0x529df0){return _0x555bf4+_0x529df0;},'ABjGf':function(_0x506274,_0x2d0f87){return _0x506274<_0x2d0f87;},'uocvf':function(_0x206e97,_0x30181a){return _0x206e97+_0x30181a;},'YoppD':function(_0x1e7070,_0x2b6a7c){return _0x1e7070+_0x2b6a7c;}};if(!isUnknownSize(_0x4e3b69,_0x131aea))return _0x391f56['zsMpc'](_0x1612f6,_0x4e3b69);const _0x40fa6d=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x171b18=_0x1612f6;while(_0x391f56[_0xc806e7(0x1a2)](_0x171b18,_0x45eb1e['length']-0x4)){const [_0x510773,_0x5cdef1]=readId(_0x45eb1e,_0x171b18);if(_0x40fa6d[_0xc806e7(0x1bb)](_0x510773))return _0x171b18;const [_0x1fcf51,_0x44f82c]=readVint(_0x45eb1e,_0x391f56['uocvf'](_0x171b18,_0x5cdef1));if(isUnknownSize(_0x1fcf51,_0x44f82c))return _0x45eb1e['length'];_0x171b18+=_0x391f56[_0xc806e7(0x1c9)](_0x391f56['YoppD'](_0x5cdef1,_0x44f82c),_0x1fcf51);}return _0x45eb1e[_0xc806e7(0x1ac)];}function extractClusters(_0x4f726c,_0x125f40){const _0x35227a=_0x81fe,_0x2a38e5={'nBbtg':function(_0x44cc23,_0x1e4e7a){return _0x44cc23<_0x1e4e7a;},'QwIAu':function(_0x2885dc,_0x3e5b0b,_0x19ca8c){return _0x2885dc(_0x3e5b0b,_0x19ca8c);},'NMTvW':function(_0x224921,_0x10e9c0){return _0x224921!==_0x10e9c0;},'tArtP':function(_0x1cd768,_0x350513){return _0x1cd768+_0x350513;},'YCPbC':function(_0x446913,_0x590d91){return _0x446913+_0x590d91;},'UnraS':function(_0x10bf0c,_0x4b0aed){return _0x10bf0c<_0x4b0aed;},'yyrGo':function(_0x4f2336,_0x43862b,_0x57eef4){return _0x4f2336(_0x43862b,_0x57eef4);},'DODvv':function(_0x26ed42,_0x1d5dbc){return _0x26ed42+_0x1d5dbc;},'PJCqe':function(_0x578b16,_0x4f4599){return _0x578b16+_0x4f4599;},'XgzdE':function(_0x2b5a2d,_0x5a73d3){return _0x2b5a2d===_0x5a73d3;},'NqkZf':function(_0x2f503c,_0x390e78){return _0x2f503c+_0x390e78;},'xonLr':function(_0x4d1d97,_0x14170b){return _0x4d1d97===_0x14170b;},'HFPIU':function(_0x1eba49,_0x274de4){return _0x1eba49+_0x274de4;}},_0xc841=[],_0x58141b=Buffer[_0x35227a(0x1d6)]([0x1f,0x43,0xb6,0x75]);let _0x3319db=0x0;while(_0x2a38e5[_0x35227a(0x191)](_0x3319db,_0x4f726c[_0x35227a(0x1ac)])){const _0xc1d267=_0x4f726c['indexOf'](_0x58141b,_0x3319db);if(_0xc1d267===-0x1)break;const [_0x4cbcdf,_0x4ff94b]=_0x2a38e5[_0x35227a(0x1a4)](readId,_0x4f726c,_0xc1d267);if(_0x2a38e5[_0x35227a(0x1be)](_0x4cbcdf,ID_CLUSTER)){_0x3319db=_0x2a38e5['tArtP'](_0xc1d267,0x1);continue;}const [_0x5ee348,_0x236258]=readVint(_0x4f726c,_0x2a38e5['YCPbC'](_0xc1d267,_0x4ff94b)),_0x4c81f8=_0xc1d267+_0x4ff94b+_0x236258,_0x2e6b15=findClusterEnd(_0x4f726c,_0x4c81f8,_0x5ee348,_0x236258);let _0x152737=_0x4c81f8,_0x5b8b4d=0x0,_0x2c6e85=0x2,_0x153133=![],_0x3494cb=Buffer['alloc'](0x0),_0x516edf=Buffer['alloc'](0x0);while(_0x2a38e5['UnraS'](_0x152737,_0x2e6b15)){const [_0x495a10,_0x128b2d]=_0x2a38e5[_0x35227a(0x19f)](readId,_0x4f726c,_0x152737),[_0x1e9406,_0x45f09f]=_0x2a38e5['QwIAu'](readVint,_0x4f726c,_0x2a38e5[_0x35227a(0x1d5)](_0x152737,_0x128b2d));if(_0x495a10===ID_TIMESTAMP){_0x5b8b4d=readUint(_0x4f726c,_0x2a38e5['DODvv'](_0x152737+_0x128b2d,_0x45f09f),_0x1e9406),_0x2c6e85=_0x1e9406,_0x153133=!![],_0x3494cb=_0x4f726c['slice'](_0x4c81f8,_0x152737);const _0x2e0fda=_0x2a38e5['PJCqe'](_0x152737+_0x128b2d+_0x45f09f,_0x1e9406);_0x516edf=_0x4f726c[_0x35227a(0x1d2)](_0x2e0fda,_0x2e6b15);break;}if(_0x2a38e5['XgzdE'](_0x495a10,ID_CLUSTER))break;if(isUnknownSize(_0x1e9406,_0x45f09f))break;_0x152737+=_0x128b2d+_0x45f09f+_0x1e9406;}!_0x153133&&(_0x516edf=_0x4f726c[_0x35227a(0x1d2)](_0x4c81f8,_0x2e6b15));let _0x2aa943=_0x5b8b4d;_0x152737=_0x4c81f8;while(_0x2a38e5[_0x35227a(0x191)](_0x152737,_0x2e6b15)){const [_0x5ee82d,_0x1cb6bf]=_0x2a38e5[_0x35227a(0x1a4)](readId,_0x4f726c,_0x152737),[_0xc7e980,_0x53a17d]=readVint(_0x4f726c,_0x2a38e5[_0x35227a(0x1c3)](_0x152737,_0x1cb6bf));if(_0x2a38e5[_0x35227a(0x18e)](_0x5ee82d,ID_SIMPLE_BLOCK)&&_0xc7e980>=0x4){const _0x12e477=_0x2a38e5['NqkZf'](_0x152737,_0x1cb6bf)+_0x53a17d,[,_0x16836c]=readVint(_0x4f726c,_0x12e477),_0x20042a=_0x4f726c[_0x35227a(0x1cd)](_0x2a38e5[_0x35227a(0x19a)](_0x12e477,_0x16836c)),_0x4abb73=_0x5b8b4d+_0x20042a;if(_0x4abb73>_0x2aa943)_0x2aa943=_0x4abb73;}if(_0x5ee82d===ID_CLUSTER)break;if(_0x2a38e5['QwIAu'](isUnknownSize,_0xc7e980,_0x53a17d))break;_0x152737+=_0x2a38e5['NqkZf'](_0x1cb6bf,_0x53a17d)+_0xc7e980;}_0xc841['push']({'timestamp':_0x5b8b4d,'maxTicks':_0x2aa943,'bodyBeforeTimestamp':_0x3494cb,'bodyAfterTimestamp':_0x516edf,'timestampElementSize':_0x2c6e85}),_0x3319db=_0x2e6b15;}return _0xc841;}function parseWebm(_0x3aba3a){const _0x2851db=_0x81fe,_0x24f792={'OTrDt':function(_0x4f75d3,_0x1600e9,_0x3015c5){return _0x4f75d3(_0x1600e9,_0x3015c5);},'uWXjK':function(_0x3f153e,_0xb807dd){return _0x3f153e+_0xb807dd;},'GZMxB':function(_0x53f093,_0x5bbbad,_0x4610ed){return _0x53f093(_0x5bbbad,_0x4610ed);},'dCVVa':function(_0x1bd099,_0x524aa5){return _0x1bd099!==_0x524aa5;},'zfCxZ':function(_0xbf669f,_0x1a3283,_0xc7fee7){return _0xbf669f(_0x1a3283,_0xc7fee7);},'BQdca':function(_0x21719c,_0x2374d9){return _0x21719c>_0x2374d9;}};let _0x347898=0x0;const [,_0x1af844]=_0x24f792['OTrDt'](readId,_0x3aba3a,_0x347898),[_0x2174a5,_0x2eead4]=readVint(_0x3aba3a,_0x347898+_0x1af844);_0x347898+=_0x24f792['uWXjK'](_0x1af844,_0x2eead4)+_0x2174a5;const [_0x27c82a,_0x44a7ee]=_0x24f792[_0x2851db(0x1d3)](readId,_0x3aba3a,_0x347898);if(_0x24f792[_0x2851db(0x199)](_0x27c82a,ID_SEGMENT))return null;const [,_0x3908a0]=readVint(_0x3aba3a,_0x347898+_0x44a7ee),_0x4784e0=_0x24f792['uWXjK'](_0x24f792[_0x2851db(0x1c0)](_0x347898,_0x44a7ee),_0x3908a0),_0x3a291e=_0x24f792[_0x2851db(0x19c)](findTimestampScale,_0x3aba3a,_0x4784e0),_0x201587=findFirstClusterOffset(_0x3aba3a,_0x4784e0),_0x19c984=_0x3aba3a['slice'](0x0,_0x201587),_0x13878e=_0x24f792['OTrDt'](extractClusters,_0x3aba3a,_0x3a291e);let _0x216068=0x0;for(const _0x17e661 of _0x13878e){if(_0x24f792[_0x2851db(0x19b)](_0x17e661['maxTicks'],_0x216068))_0x216068=_0x17e661[_0x2851db(0x1c1)];}return{'header':_0x19c984,'clusters':_0x13878e,'timestampScale':_0x3a291e,'maxTimestampTicks':_0x216068};}function buildCluster(_0x2791bf,_0xce5982,_0x2aa461){const _0x5a5dfb=_0x81fe,_0x42cb58={'mRmPW':function(_0x4cc1bd,_0xc7c49a){return _0x4cc1bd(_0xc7c49a);}},_0x240700=Buffer['from']([0x1f,0x43,0xb6,0x75]),_0x231521=Math['max'](0x4,uintSize(_0x2791bf)),_0x308284=Buffer[_0x5a5dfb(0x1b4)]([Buffer[_0x5a5dfb(0x1d6)]([ID_TIMESTAMP]),_0x42cb58[_0x5a5dfb(0x1a0)](writeVint,_0x231521),writeUint(_0x2791bf,_0x231521)]),_0x266038=Buffer['concat']([_0xce5982,_0x308284,_0x2aa461]),_0xfa3439=writeVint(_0x266038[_0x5a5dfb(0x1ac)]);return Buffer['concat']([_0x240700,_0xfa3439,_0x266038]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x5e1471){const _0x12d672=_0x81fe,_0x5b1710={'SKgWB':function(_0x140099,_0x5e7c77,_0xfe9cd7){return _0x140099(_0x5e7c77,_0xfe9cd7);},'QNVPW':function(_0x4acada,_0x253f46,_0xdd03cf){return _0x4acada(_0x253f46,_0xdd03cf);},'RJXGc':function(_0xd40aba,_0x2d0eaf){return _0xd40aba+_0x2d0eaf;},'NRpmj':function(_0x355817,_0x5681ec){return _0x355817+_0x5681ec;},'eADUS':function(_0x5f29c8,_0x2e9a5a,_0x1f770c){return _0x5f29c8(_0x2e9a5a,_0x1f770c);},'FUAQh':function(_0x39892b,_0x12a1e7,_0x5858be){return _0x39892b(_0x12a1e7,_0x5858be);},'GbNNJ':function(_0x2ebc89,_0x55a04b){return _0x2ebc89+_0x55a04b;},'uRoSq':function(_0x39b87a,_0x4ddec2){return _0x39b87a+_0x4ddec2;},'qBUNP':function(_0x46dabf,_0x512360){return _0x46dabf+_0x512360;},'YADof':function(_0x4a07a9,_0x4c1af0){return _0x4a07a9<_0x4c1af0;},'AMUBw':function(_0x294a0c,_0x5e95d8,_0x2722c5){return _0x294a0c(_0x5e95d8,_0x2722c5);},'yXBMI':function(_0x2cf76,_0x1d9847){return _0x2cf76!==_0x1d9847;},'hPBKZ':function(_0x184849,_0xec060e){return _0x184849+_0xec060e;},'FbrWN':function(_0x4778cc,_0xfa8021){return _0x4778cc+_0xfa8021;}},_0x34f170=Buffer[_0x12d672(0x1d6)](_0x5e1471);let _0x3bdbbc=0x0;const [,_0x276291]=_0x5b1710['SKgWB'](readId,_0x34f170,_0x3bdbbc),[_0x76ca7d,_0x38d824]=_0x5b1710[_0x12d672(0x1bf)](readVint,_0x34f170,_0x3bdbbc+_0x276291),_0x1b06b9=_0x5b1710['RJXGc'](_0x3bdbbc,_0x276291)+_0x38d824+_0x76ca7d,[,_0x2805e2]=readId(_0x34f170,_0x1b06b9),[,_0x2066e0]=readVint(_0x34f170,_0x1b06b9+_0x2805e2),_0x2707bb=_0x1b06b9+_0x2805e2+_0x2066e0,_0x8d1229=writeUnknownSizeVint(_0x2066e0);_0x8d1229[_0x12d672(0x1b5)](_0x34f170,_0x1b06b9+_0x2805e2);let _0xb5658=_0x2707bb;const _0x37e3ca=Math['min'](_0x34f170['length'],_0x5b1710['NRpmj'](_0x2707bb,0x2710));while(_0xb5658<_0x37e3ca){const [_0x4ffb14,_0x53d510]=_0x5b1710[_0x12d672(0x1d1)](readId,_0x34f170,_0xb5658),[_0x3125e0,_0x1cf84f]=_0x5b1710['FUAQh'](readVint,_0x34f170,_0x5b1710[_0x12d672(0x1a3)](_0xb5658,_0x53d510));if(_0x4ffb14===ID_CLUSTER)break;if(isUnknownSize(_0x3125e0,_0x1cf84f))break;if(_0x4ffb14===ID_INFO){const _0x488469=_0x5b1710['uRoSq'](_0x5b1710['qBUNP'](_0xb5658,_0x53d510),_0x1cf84f),_0x45c397=_0x488469+_0x3125e0,_0x50a17d=[];let _0x4997c6=_0x488469;while(_0x5b1710['YADof'](_0x4997c6,_0x45c397)){const [_0x257215,_0x52ecb8]=readId(_0x34f170,_0x4997c6),[_0x31e79e,_0x3422b8]=_0x5b1710['AMUBw'](readVint,_0x34f170,_0x4997c6+_0x52ecb8),_0x30b418=_0x52ecb8+_0x3422b8+_0x31e79e;_0x5b1710['yXBMI'](_0x257215,ID_DURATION)&&_0x50a17d['push'](_0x34f170[_0x12d672(0x1d2)](_0x4997c6,_0x5b1710[_0x12d672(0x190)](_0x4997c6,_0x30b418))),_0x4997c6+=_0x30b418;}const _0x506b02=Buffer[_0x12d672(0x1b4)](_0x50a17d),_0x2a937c=Buffer[_0x12d672(0x1b4)]([_0x34f170[_0x12d672(0x1d2)](_0xb5658,_0xb5658+_0x53d510),writeVint(_0x506b02['length'],_0x1cf84f)]);return Buffer[_0x12d672(0x1b4)]([_0x34f170[_0x12d672(0x1d2)](0x0,_0xb5658),_0x2a937c,_0x506b02,_0x34f170['slice'](_0x45c397)]);}_0xb5658+=_0x5b1710['hPBKZ'](_0x5b1710['FbrWN'](_0x53d510,_0x1cf84f),_0x3125e0);}return _0x34f170;}export function stitchWebmFiles(_0x38c550,_0x35c2d1){const _0x30e422=_0x81fe,_0x3b5c65={'kOtUs':function(_0x1ff061,_0x1e087b){return _0x1ff061<=_0x1e087b;},'wWRqN':function(_0x1b1f6a,_0xeb161d){return _0x1b1f6a(_0xeb161d);},'gWflC':function(_0x8d0380,_0x504089){return _0x8d0380===_0x504089;},'aKEJi':function(_0x3a27f5,_0x2988b2){return _0x3a27f5<_0x2988b2;},'aPrpm':function(_0x4c5d0e,_0x4b354d,_0x3e58b3){return _0x4c5d0e(_0x4b354d,_0x3e58b3);}};if(_0x3b5c65['kOtUs'](_0x38c550['length'],0x1))return![];const _0x1840c1=[];for(const _0x1aa81e of _0x38c550){const _0x1a0488=readFileSync(_0x1aa81e),_0x1026e5=_0x3b5c65[_0x30e422(0x1cf)](parseWebm,_0x1a0488);if(!_0x1026e5||_0x3b5c65['gWflC'](_0x1026e5['clusters']['length'],0x0))return![];_0x1840c1[_0x30e422(0x19e)](_0x1026e5);}const _0x335602=_0x1840c1[0x0],_0x597727=_0x3b5c65[_0x30e422(0x1cf)](rebuildHeaderWithoutDuration,_0x335602[_0x30e422(0x1cb)]),_0x4e1bb4=[_0x597727];let _0x43ac82=0x0;for(let _0x1be18a=0x0;_0x3b5c65[_0x30e422(0x1ad)](_0x1be18a,_0x1840c1[_0x30e422(0x1ac)]);_0x1be18a++){const _0xbf329a=_0x1840c1[_0x1be18a];for(const _0x584f13 of _0xbf329a['clusters']){const _0x47ac4e=_0x584f13['timestamp']+_0x43ac82;_0x4e1bb4[_0x30e422(0x19e)](buildCluster(_0x47ac4e,_0x584f13[_0x30e422(0x1cc)],_0x584f13['bodyAfterTimestamp']));}const _0x348404=0x1e;_0x43ac82+=_0xbf329a['maxTimestampTicks']+_0x348404;}return _0x3b5c65['aPrpm'](writeFileSync,_0x35c2d1,Buffer['concat'](_0x4e1bb4)),!![];}function _0x81fe(_0xc8d0e6,_0x1f9f99){_0xc8d0e6=_0xc8d0e6-0x18c;const _0x1149c3=_0x1149();let _0x81fedb=_0x1149c3[_0xc8d0e6];return _0x81fedb;}function _0x1149(){const _0x106ecb=['stitchWebmFiles.js','5944asKbwY','2TxXmWZ','floor','bfbDq','has','argv','lKHZo','NMTvW','QNVPW','uWXjK','maxTicks','huOFc','NqkZf','HxjZA','252840eHhPeF','qjjgp','pow','YBVJj','zsMpc','4424255PvZhGU','header','bodyBeforeTimestamp','readInt16BE','5NEboez','wWRqN','wDwBP','eADUS','slice','GZMxB','NoPCj','tArtP','from','tjUDd','WnXiL','aiOvp','stitchWebmFiles.ts','xonLr','120Qpiobr','qBUNP','nBbtg','VKHUK','3405633bBJAdR','KOBPU','log','HzqWE','UHnaS','ApVBj','dCVVa','HFPIU','BQdca','zfCxZ','YbxXB','push','yyrGo','mRmPW','4381824odonie','ABjGf','GbNNJ','QwIAu','ccUAY','1436692acTfjh','oYAFn','PyHcH','alloc','endsWith','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','length','aKEJi','12933gdWFfP','min','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','XltAx','7230aphpCC','zETjl','concat','copy'];_0x1149=function(){return _0x106ecb;};return _0x1149();}if(process['argv'][0x1]?.[_0xd8e7bb(0x1aa)](_0xd8e7bb(0x18d))||process['argv'][0x1]?.[_0xd8e7bb(0x1aa)](_0xd8e7bb(0x1b6))){const args=process[_0xd8e7bb(0x1bc)][_0xd8e7bb(0x1d2)](0x2);args[_0xd8e7bb(0x1ac)]<0x3&&(console['error'](_0xd8e7bb(0x1b0)),process['exit'](0x1));const output=args[args[_0xd8e7bb(0x1ac)]-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0xd8e7bb(0x195)]('Stitched\x20'+inputs['length']+'\x20files\x20->\x20'+output):console['log'](_0xd8e7bb(0x1ab));}