@ranger-testing/ranger-cli 3.1.4 → 3.1.5-alpha.0c090c6-50

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 -3
@@ -1 +1 @@
1
- (function(_0x408763,_0x140cc1){const _0x553d3a=_0x112d,_0x30aec5=_0x408763();while(!![]){try{const _0x174a2c=parseInt(_0x553d3a(0x123))/0x1*(parseInt(_0x553d3a(0x15d))/0x2)+parseInt(_0x553d3a(0x158))/0x3+parseInt(_0x553d3a(0x127))/0x4+-parseInt(_0x553d3a(0x146))/0x5*(parseInt(_0x553d3a(0x131))/0x6)+parseInt(_0x553d3a(0x132))/0x7*(-parseInt(_0x553d3a(0x169))/0x8)+parseInt(_0x553d3a(0x167))/0x9*(-parseInt(_0x553d3a(0x16b))/0xa)+parseInt(_0x553d3a(0x155))/0xb;if(_0x174a2c===_0x140cc1)break;else _0x30aec5['push'](_0x30aec5['shift']());}catch(_0x466901){_0x30aec5['push'](_0x30aec5['shift']());}}}(_0x4b06,0x215f4));import{existsSync}from'fs';import _0x4d62b7 from'inquirer';function _0x4b06(){const _0x3038c3=['RANGER_TEST_USERNAME','1990881aDFaMK','\x22.\x20Pass\x20--profile\x20','1168616ueWfce','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','10wkLWJT','baseUrl','53669XqsxUg','glvby','FTTwS','url','627348AElVvO','`ranger\x20profile\x20add`\x20to\x20create\x20one.','Hycnt','lnLys','local','cloud','\x20\x20Note:\x20--env\x20\x22','kJDNZ','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','\x20baseUrl\x20<url>','1448004frwHVH','7XRGxvf','cwd','cdpEndpoint','ZuzZh','TbLPu','No\x20baseUrl\x20configured\x20for\x20profile\x20\x22','RANGER_SESSION_STATE_PATH=','zBnWV','ttzqS','envStartPath','iFwis','string','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','env','authPath','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','key','startPath','`\x20to\x20recreate\x20it.','\x22\x20is\x20ignored\x20when\x20--profile\x20is\x20set;\x20the\x20profile\x27s\x20own\x20auth\x20environment\x20applies.','5IDXWKl','prompt','rLWxo','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','\x22\x20only\x20affects\x20ad-hoc\x20profile\x20resolution;\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20use\x20it.','\x20\x20Warning:\x20','egJvD','message','domains','muWip','list','LpXku','Active\x20profile\x20\x22','\x22\x20no\x20longer\x20exists\x20(or\x20could\x20not\x20be\x20fetched).\x20Options:\x0a','resolvedEnv','2186602NyjAOR','telemetry','log','364044iqwZmc','name','RANGER_SESSION_STATE_PATH','pAthR','environmentKey','10LvhkGA','xQCWJ','\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','VItYa','Profile\x20\x22','\x20does\x20not\x20exist.','source','baseUrlSource','authEnv'];_0x4b06=function(){return _0x3038c3;};return _0x4b06();}import{ApiError,fetchAuthConfig,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive,resolveAuthEnvironmentLocally}from'./cloudProfileSession.js';function _0x112d(_0x286e40,_0x5369c6){_0x286e40=_0x286e40-0x123;const _0x4b0660=_0x4b06();let _0x112dae=_0x4b0660[_0x286e40];return _0x112dae;}import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0xdedac1){const _0x1451b9=_0x112d,_0x25713b={'VItYa':function(_0x4d6f5c){return _0x4d6f5c();},'glvby':function(_0xcb7cc7,_0x5d5026){return _0xcb7cc7!==_0x5d5026;},'ZuzZh':function(_0x218534,_0x1b27af){return _0x218534===_0x1b27af;},'JkBTk':function(_0x49284c,_0x3473b){return _0x49284c+_0x3473b;},'zBnWV':function(_0x354931,_0x2f2fef){return _0x354931+_0x2f2fef;},'fbHDn':_0x1451b9(0x141),'lnLys':_0x1451b9(0x15f),'LpXku':_0x1451b9(0x128),'eHQkb':function(_0x38fcba){return _0x38fcba();},'xQCWJ':_0x1451b9(0x150),'pAthR':'Local\x20profile','YENer':_0x1451b9(0x12b),'egJvD':_0x1451b9(0x12c),'Hycnt':function(_0x13e405,_0x484e5a,_0x1cef0b){return _0x13e405(_0x484e5a,_0x1cef0b);},'iFwis':function(_0x264ddb,_0x7fc46a){return _0x264ddb(_0x7fc46a);},'VMkYS':function(_0x414ea8,_0x3a0e62){return _0x414ea8(_0x3a0e62);},'bpaik':function(_0x28aedf,_0x2acb46){return _0x28aedf(_0x2acb46);},'FTTwS':function(_0x3b9a56,_0x1235bc){return _0x3b9a56(_0x1235bc);},'muWip':function(_0x3d1481,_0x4890bd){return _0x3d1481+_0x4890bd;},'rLWxo':function(_0x59b851,_0x133166){return _0x59b851+_0x133166;},'xjDUh':'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20to\x20switch\x20(see\x20`ranger\x20profile\x20ls`),\x20or\x0a','kJDNZ':'\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one\x20ad\x20hoc,\x20or\x0a','CbdhC':function(_0x433ac0,_0x168926){return _0x433ac0&&_0x168926;}},_0x56c4ff=_0xdedac1['profile'];let _0xb6fc86=_0x56c4ff,_0x141e34=null;const _0x422559=_0x56c4ff?null:await _0x25713b['VItYa'](readActiveProfileName);if(_0xdedac1['authEnv']&&_0x56c4ff)console['log']('\x20\x20Note:\x20--env\x20\x22'+_0xdedac1[_0x1451b9(0x165)]+_0x1451b9(0x145));else _0xdedac1[_0x1451b9(0x165)]&&!process[_0x1451b9(0x13f)][_0x1451b9(0x166)]&&console['log'](_0x1451b9(0x12d)+_0xdedac1[_0x1451b9(0x165)]+_0x1451b9(0x14a));if(!_0x56c4ff&&process['env'][_0x1451b9(0x166)])try{const _0x51d500=await resolveAdHocProfile({'targetUrl':_0xdedac1['baseUrl']??readUrlEnvVars()['envBaseUrl'],'envKey':_0xdedac1[_0x1451b9(0x165)]});_0x51d500&&(_0x422559&&_0x25713b[_0x1451b9(0x124)](_0x422559,_0x51d500[_0x1451b9(0x159)])&&console['log']('\x20\x20RANGER_TEST_USERNAME\x20is\x20set\x20—\x20using\x20profile\x20\x22'+_0x51d500['name']+'\x22\x20instead\x20of\x20the\x20saved\x20active\x20profile\x20\x22'+_0x422559+_0x1451b9(0x168)+_0x422559+'\x20to\x20override.'),_0xb6fc86=_0x51d500['name'],_0x141e34=_0x51d500['profile']);}catch(_0x317f6d){if(!_0x422559||_0xdedac1['authEnv'])throw _0x317f6d;console[_0x1451b9(0x157)](_0x1451b9(0x14b)+(_0x317f6d instanceof Error?_0x317f6d[_0x1451b9(0x14d)]:String(_0x317f6d))),console['log']('\x20\x20Falling\x20back\x20to\x20saved\x20active\x20profile\x20\x22'+_0x422559+'\x22.');}if(!_0xb6fc86)_0xb6fc86=_0x422559??undefined;if(!_0xb6fc86)try{const _0x17a562=await _0x25713b['VItYa'](listCloudProfiles);if(_0x25713b[_0x1451b9(0x135)](_0x17a562['length'],0x1)){const _0x53c762=_0x17a562[0x0];_0xb6fc86=_0x53c762['name'],console[_0x1451b9(0x157)]('\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20'+_0x53c762[_0x1451b9(0x159)]),console['log']('\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)');}}catch{}if(!_0xb6fc86)throw new Error(_0x25713b['JkBTk'](_0x25713b[_0x1451b9(0x139)](_0x1451b9(0x16a),_0x1451b9(0x13e)),_0x25713b['fbHDn'])+_0x25713b[_0x1451b9(0x12a)]+'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.');const _0x5ea535=getEnvDir(_0xb6fc86),_0x43ec5a=existsSync(_0x5ea535);let _0x3149d6=_0x141e34,_0x2886f0=![];if(!_0x3149d6)try{_0x3149d6=await fetchCloudProfile(_0xb6fc86);if(!_0x3149d6)_0x2886f0=!![];}catch(_0x1135f8){_0x1135f8 instanceof ApiError&&_0x1135f8['status']===0x194&&(_0x2886f0=!![]);}if(_0x56c4ff&&_0x2886f0&&!_0x43ec5a&&!_0x3149d6)throw new Error(_0x1451b9(0x161)+_0x56c4ff+_0x1451b9(0x12f)+'\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20'+_0x25713b[_0x1451b9(0x151)]);if(_0x3149d6&&_0x43ec5a){let _0x4ef584=!![];if(_0x25713b['eHQkb'](isInteractive)){const {source:_0x1e6f2a}=await _0x4d62b7[_0x1451b9(0x147)]([{'type':_0x25713b[_0x1451b9(0x15e)],'name':_0x1451b9(0x163),'message':_0x1451b9(0x161)+_0xb6fc86+'\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','choices':[{'name':'Cloud\x20profile\x20(recommended)','value':_0x1451b9(0x12c)},{'name':_0x25713b[_0x1451b9(0x15b)],'value':_0x25713b['YENer']}],'default':_0x25713b['egJvD']}]);_0x4ef584=_0x1e6f2a===_0x25713b[_0x1451b9(0x14c)];}if(!_0x4ef584)_0x3149d6=null;}const _0x5ef393=_0x25713b[_0x1451b9(0x129)](readProfileOverrides,process[_0x1451b9(0x133)](),_0xb6fc86);let _0x381e94=null,_0x3fa04c,_0x31b19b,_0x10bc80,_0x154e3a,_0x3a5c58=null,_0x267a79,_0x30652d;const _0x39bdb5=_0x25713b[_0x1451b9(0x13c)](expandOverrides,_0x5ef393),_0x578a60=_0x25713b[_0x1451b9(0x160)](readUrlEnvVars);if(_0x3149d6){_0x381e94=_0x3149d6;const _0x24d575=_0x3149d6['settings']??{},_0x5bbc6b=_0x25713b['Hycnt'](mergeCloudProfileSettings,_0x24d575,_0x5ef393??undefined),_0x5be998={..._0x3149d6,'settings':_0x5bbc6b};_0x3a5c58={'baseUrl':_0x25713b['VMkYS'](expandString,_0x24d575['baseUrl']),'startPath':_0x25713b['bpaik'](expandString,_0x24d575[_0x1451b9(0x143)])};const _0x143886=await fetchAuthConfig(),_0x2556c9=_0x143886?_0x25713b[_0x1451b9(0x129)](resolveAuthEnvironmentLocally,_0x143886,_0x3149d6[_0x1451b9(0x15c)]):null;_0x267a79=_0x2556c9?.[_0x1451b9(0x14e)]?.[0x0],_0x30652d=_0x2556c9?.[_0x1451b9(0x142)];const _0x2b56ec=_0x25713b['iFwis'](resolveProfileUrl,{'flagBaseUrl':_0xdedac1[_0x1451b9(0x16c)],'flagStartPath':_0xdedac1['startPath'],'envBaseUrl':_0x578a60['envBaseUrl'],'envStartPath':_0x578a60['envStartPath'],'projectOverrides':_0x39bdb5,'cloudSettings':_0x3a5c58,'authEnvironmentDomain':_0x267a79}),_0x2efa4c=process[_0x1451b9(0x13f)][_0x1451b9(0x15a)];if(_0x2efa4c){if(!existsSync(_0x2efa4c))throw new Error(_0x1451b9(0x138)+_0x2efa4c+_0x1451b9(0x162));_0x3fa04c=_0x2efa4c,_0x31b19b=resolveEnvVars(_0x5bbc6b),_0x10bc80=Boolean(_0x31b19b[_0x1451b9(0x134)]);}else{const _0x1a97ec=await _0x25713b[_0x1451b9(0x129)](resolveCloudProfileSession,_0x5be998,{'effectiveBaseUrl':_0x2b56ec[_0x1451b9(0x16c)],'telemetry':_0xdedac1[_0x1451b9(0x156)]});_0x3fa04c=_0x1a97ec[_0x1451b9(0x140)],_0x31b19b=_0x25713b[_0x1451b9(0x125)](resolveEnvVars,_0x1a97ec['settings']),_0x10bc80=_0x25713b[_0x1451b9(0x125)](Boolean,_0x31b19b[_0x1451b9(0x134)]),_0x267a79=_0x1a97ec[_0x1451b9(0x154)]?.[_0x1451b9(0x14e)]?.[0x0],_0x30652d=_0x1a97ec['resolvedEnv']?.[_0x1451b9(0x142)];}}else{if(!_0x43ec5a){const _0x259034=!_0x56c4ff;throw new Error(_0x259034?_0x25713b[_0x1451b9(0x14f)](_0x25713b[_0x1451b9(0x148)](_0x1451b9(0x152)+_0xb6fc86+_0x1451b9(0x153),_0x25713b['xjDUh'])+_0x25713b[_0x1451b9(0x12e)],'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20'+_0xb6fc86+_0x1451b9(0x144)):'Profile\x20\x22'+_0xb6fc86+_0x1451b9(0x149)+_0xb6fc86);}const _0xf4655c=await loadSettings(_0xb6fc86);_0x31b19b=resolveEnvVars(_0xf4655c),_0x10bc80=Boolean(_0x31b19b['cdpEndpoint']),_0x154e3a=_0x31b19b[_0x1451b9(0x16c)];}const _0x130f38=resolveProfileUrl({'flagBaseUrl':_0xdedac1['baseUrl'],'flagStartPath':_0xdedac1[_0x1451b9(0x143)],'envBaseUrl':_0x578a60['envBaseUrl'],'envStartPath':_0x578a60[_0x1451b9(0x13b)],'localSettingsBaseUrl':_0x154e3a,'projectOverrides':_0x39bdb5,'cloudSettings':_0x3a5c58,'authEnvironmentDomain':_0x267a79}),_0x518706=_0x130f38[_0x1451b9(0x126)]??_0x130f38[_0x1451b9(0x16c)];if(_0x25713b['CbdhC'](!_0x518706,!_0x10bc80))throw new Error(_0x1451b9(0x137)+_0xb6fc86+'\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20'+_0xb6fc86+_0x1451b9(0x130));return{'activeProfile':_0xb6fc86,'resolvedCloudProfile':_0x381e94,'cloudAuthPath':_0x3fa04c,'resolvedSettings':_0x31b19b,'isCdpMode':_0x10bc80,'url':_0x518706,'baseUrlSource':_0x130f38[_0x1451b9(0x164)],'authEnvKey':_0x30652d,'startPath':_0x130f38['startPath']};}function expandString(_0x338fab){const _0x427b32=_0x112d,_0x230970={'ttzqS':_0x427b32(0x13d),'TbLPu':function(_0x1ec70f,_0x28e1ae){return _0x1ec70f(_0x28e1ae);}};if(typeof _0x338fab!==_0x230970[_0x427b32(0x13a)])return _0x338fab;return _0x230970[_0x427b32(0x136)](resolveEnvVars,_0x338fab);}function expandOverrides(_0x5dfad3){const _0x4b0bd0=_0x112d,_0x337d73={'jflaV':function(_0x5c8613,_0x4785f9){return _0x5c8613===_0x4785f9;}};if(!_0x5dfad3)return _0x5dfad3;const _0x5062d1={..._0x5dfad3};return _0x337d73['jflaV'](typeof _0x5062d1['baseUrl'],_0x4b0bd0(0x13d))&&(_0x5062d1[_0x4b0bd0(0x16c)]=resolveEnvVars(_0x5062d1[_0x4b0bd0(0x16c)])),typeof _0x5062d1['startPath']===_0x4b0bd0(0x13d)&&(_0x5062d1['startPath']=resolveEnvVars(_0x5062d1['startPath'])),_0x5062d1;}
1
+ (function(_0x19c7e8,_0x15ecf4){const _0x12f750=_0x30e7,_0x461eb9=_0x19c7e8();while(!![]){try{const _0x10fdc5=-parseInt(_0x12f750(0x19d))/0x1*(parseInt(_0x12f750(0x1c8))/0x2)+-parseInt(_0x12f750(0x187))/0x3*(parseInt(_0x12f750(0x192))/0x4)+parseInt(_0x12f750(0x1bb))/0x5*(-parseInt(_0x12f750(0x1bf))/0x6)+parseInt(_0x12f750(0x18c))/0x7+parseInt(_0x12f750(0x1bc))/0x8*(parseInt(_0x12f750(0x1a5))/0x9)+-parseInt(_0x12f750(0x1ca))/0xa+parseInt(_0x12f750(0x1c7))/0xb*(parseInt(_0x12f750(0x198))/0xc);if(_0x10fdc5===_0x15ecf4)break;else _0x461eb9['push'](_0x461eb9['shift']());}catch(_0x20d7c1){_0x461eb9['push'](_0x461eb9['shift']());}}}(_0x5280,0x78c2a));import{existsSync}from'fs';import _0x596ed5 from'inquirer';function _0x30e7(_0x42f8a0,_0x2fc13c){_0x42f8a0=_0x42f8a0-0x187;const _0x52801a=_0x5280();let _0x30e774=_0x52801a[_0x42f8a0];return _0x30e774;}function _0x5280(){const _0x4170c7=['\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','baseUrl','baseUrlSource','key','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','Qrmkw','\x20\x20RANGER_TEST_USERNAME\x20is\x20set\x20—\x20using\x20profile\x20\x22','SMdal','lCjQS','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','authEnv','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','envStartPath','startPath','\x20to\x20override.','WPhTL','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','prompt','log','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','190FKbrdl','8mjeKNK','cloud','mEYuq','105030gLGUcw','environmentKey','zaCmn','\x22\x20only\x20affects\x20ad-hoc\x20profile\x20resolution;\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20use\x20it.','RANGER_TEST_USERNAME','mJHsy','xpitb','GUhae','88xakBEL','8eVGWcv','ddoSa','3824980owrQbo','40578pbsYBc','SOxbU','WABHn','\x20does\x20not\x20exist.','EVOUh','6813247EMuQHU','ZrqUU','DACgn','length','local','list','188PZPAvL','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','env','mEEAg','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','name','2057388IbiKdd','vxTRG','RANGER_SESSION_STATE_PATH=','domains','envBaseUrl','135508XHuGlM','RANGER_SESSION_STATE_PATH','Cloud\x20profile\x20(recommended)','\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','ynNUg','message','cdpEndpoint','settings','3376467GzEBzM'];_0x5280=function(){return _0x4170c7;};return _0x5280();}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';export async function resolveProfileContext(_0x5ed176){const _0xc38927=_0x30e7,_0x9a9f06={'mEEAg':function(_0x3c768d){return _0x3c768d();},'Qrmkw':function(_0x43016c,_0x30293f){return _0x43016c(_0x30293f);},'WABHn':function(_0x4c75db,_0x258aa8){return _0x4c75db!==_0x258aa8;},'lCjQS':function(_0x278533,_0x148cb2){return _0x278533 instanceof _0x148cb2;},'ZrqUU':function(_0x516bd6,_0x57a9cb){return _0x516bd6??_0x57a9cb;},'mJHsy':function(_0xb754a8,_0x34233b){return _0xb754a8===_0x34233b;},'ynNUg':function(_0x4fd535,_0x1731bd){return _0x4fd535+_0x1731bd;},'yLbjA':_0xc38927(0x1ba),'WPhTL':_0xc38927(0x1a0),'orVvd':'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','cCZrb':function(_0x3dd498,_0x1949f8){return _0x3dd498(_0x1949f8);},'zaCmn':function(_0x11d5e8,_0x45689c){return _0x11d5e8 instanceof _0x45689c;},'SMdal':'`ranger\x20profile\x20add`\x20to\x20create\x20one.','ddoSa':_0xc38927(0x191),'RCyOl':'Local\x20profile','DACgn':_0xc38927(0x1bd),'GUhae':function(_0x393875,_0x5a6504){return _0x393875(_0x5a6504);},'hlgjk':function(_0x17618f,_0x1359c7,_0x1be5ca){return _0x17618f(_0x1359c7,_0x1be5ca);},'hxKRw':function(_0x4de2a5,_0x5a9c69){return _0x4de2a5(_0x5a9c69);},'ddFzb':function(_0x51aeeb,_0x12fa20,_0x5307c8){return _0x51aeeb(_0x12fa20,_0x5307c8);},'xpitb':function(_0xc2d599,_0x54d5c0){return _0xc2d599(_0x54d5c0);},'LqauS':function(_0x3b9252,_0x2bb3cb,_0x550fe1){return _0x3b9252(_0x2bb3cb,_0x550fe1);},'mRyFF':function(_0x251a7f,_0x26bca1){return _0x251a7f(_0x26bca1);},'vxTRG':function(_0xa14df4,_0x34890c){return _0xa14df4+_0x34890c;},'SOxbU':'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20to\x20switch\x20(see\x20`ranger\x20profile\x20ls`),\x20or\x0a','UoGXR':'\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one\x20ad\x20hoc,\x20or\x0a','qgPUt':function(_0x102ab6,_0x1ac9d2){return _0x102ab6(_0x1ac9d2);},'mEYuq':function(_0x3a1e02,_0x26117b){return _0x3a1e02&&_0x26117b;}},_0x3dc97c=_0x5ed176['profile'];let _0x5e3d1c=_0x3dc97c,_0x5b328b=null;const _0x3aa820=_0x3dc97c?null:await _0x9a9f06['mEEAg'](readActiveProfileName);if(_0x5ed176[_0xc38927(0x1b0)]&&_0x3dc97c)console['log']('\x20\x20Note:\x20--env\x20\x22'+_0x5ed176[_0xc38927(0x1b0)]+'\x22\x20is\x20ignored\x20when\x20--profile\x20is\x20set;\x20the\x20profile\x27s\x20own\x20auth\x20environment\x20applies.');else _0x5ed176['authEnv']&&!process[_0xc38927(0x194)]['RANGER_TEST_USERNAME']&&console[_0xc38927(0x1b9)]('\x20\x20Note:\x20--env\x20\x22'+_0x5ed176['authEnv']+_0xc38927(0x1c2));if(!_0x3dc97c&&process[_0xc38927(0x194)][_0xc38927(0x1c3)])try{const _0x2acc93=await _0x9a9f06[_0xc38927(0x1ab)](resolveAdHocProfile,{'targetUrl':_0x5ed176[_0xc38927(0x1a7)]??readUrlEnvVars()['envBaseUrl'],'envKey':_0x5ed176[_0xc38927(0x1b0)]});_0x2acc93&&(_0x3aa820&&_0x9a9f06[_0xc38927(0x189)](_0x3aa820,_0x2acc93['name'])&&console[_0xc38927(0x1b9)](_0xc38927(0x1ac)+_0x2acc93['name']+'\x22\x20instead\x20of\x20the\x20saved\x20active\x20profile\x20\x22'+_0x3aa820+'\x22.\x20Pass\x20--profile\x20'+_0x3aa820+_0xc38927(0x1b4)),_0x5e3d1c=_0x2acc93[_0xc38927(0x197)],_0x5b328b=_0x2acc93['profile']);}catch(_0x537784){if(!_0x3aa820||_0x5ed176['authEnv'])throw _0x537784;console[_0xc38927(0x1b9)]('\x20\x20Warning:\x20'+(_0x9a9f06[_0xc38927(0x1ae)](_0x537784,Error)?_0x537784[_0xc38927(0x1a2)]:_0x9a9f06[_0xc38927(0x1ab)](String,_0x537784))),console['log']('\x20\x20Falling\x20back\x20to\x20saved\x20active\x20profile\x20\x22'+_0x3aa820+'\x22.');}if(!_0x5e3d1c)_0x5e3d1c=_0x9a9f06[_0xc38927(0x18d)](_0x3aa820,undefined);if(!_0x5e3d1c)try{const _0x1d74fc=await listCloudProfiles();if(_0x9a9f06[_0xc38927(0x1c4)](_0x1d74fc[_0xc38927(0x18f)],0x1)){const _0xdcdf15=_0x1d74fc[0x0];_0x5e3d1c=_0xdcdf15[_0xc38927(0x197)],console['log'](_0xc38927(0x1aa)+_0xdcdf15['name']),console['log']('\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)');}}catch{}if(!_0x5e3d1c)throw new Error(_0x9a9f06[_0xc38927(0x1a1)](_0xc38927(0x1b7)+_0xc38927(0x1b6)+_0x9a9f06['yLbjA']+_0x9a9f06[_0xc38927(0x1b5)],_0x9a9f06['orVvd']));const _0x287b0b=getEnvDir(_0x5e3d1c),_0x5e898e=_0x9a9f06['Qrmkw'](existsSync,_0x287b0b);let _0x4c3b3d=_0x5b328b,_0x1a1190=![];if(!_0x4c3b3d)try{_0x4c3b3d=await _0x9a9f06['cCZrb'](fetchCloudProfile,_0x5e3d1c);if(!_0x4c3b3d)_0x1a1190=!![];}catch(_0x35522a){_0x9a9f06[_0xc38927(0x1c1)](_0x35522a,ApiError)&&_0x35522a['status']===0x194&&(_0x1a1190=!![]);}if(_0x3dc97c&&_0x1a1190&&!_0x5e898e&&!_0x4c3b3d)throw new Error('Profile\x20\x22'+_0x3dc97c+_0xc38927(0x193)+_0xc38927(0x1af)+_0x9a9f06[_0xc38927(0x1ad)]);if(_0x4c3b3d&&_0x5e898e){let _0x108588=!![];if(_0x9a9f06['mEEAg'](isInteractive)){const {source:_0x15ce2b}=await _0x596ed5[_0xc38927(0x1b8)]([{'type':_0x9a9f06[_0xc38927(0x1c9)],'name':'source','message':'Profile\x20\x22'+_0x5e3d1c+_0xc38927(0x196),'choices':[{'name':_0xc38927(0x19f),'value':'cloud'},{'name':_0x9a9f06['RCyOl'],'value':_0xc38927(0x190)}],'default':'cloud'}]);_0x108588=_0x15ce2b===_0x9a9f06[_0xc38927(0x18e)];}if(!_0x108588)_0x4c3b3d=null;}const _0x5499d5=readProfileOverrides(process['cwd'](),_0x5e3d1c);let _0x3ebf51=null,_0x1023c2,_0x5ead97,_0x2f40dc,_0x28d5d9,_0x592179=null,_0x48f25d,_0x5114f3;const _0x41839e=_0x9a9f06[_0xc38927(0x1c6)](expandOverrides,_0x5499d5),_0x317118=_0x9a9f06[_0xc38927(0x195)](readUrlEnvVars);if(_0x4c3b3d){_0x3ebf51=_0x4c3b3d;const _0x37f96e=_0x4c3b3d['settings']??{},_0x23a4b5=_0x9a9f06['hlgjk'](mergeCloudProfileSettings,_0x37f96e,_0x5499d5??undefined),_0x360559={..._0x4c3b3d,'settings':_0x23a4b5};_0x592179={'baseUrl':expandString(_0x37f96e[_0xc38927(0x1a7)]),'startPath':_0x9a9f06['hxKRw'](expandString,_0x37f96e['startPath'])};const _0x311869=await _0x9a9f06['mEEAg'](fetchAuthConfig),_0x348a09=_0x311869?_0x9a9f06['ddFzb'](resolveAuthEnvironmentLocally,_0x311869,_0x4c3b3d[_0xc38927(0x1c0)]):null;_0x48f25d=_0x348a09?.[_0xc38927(0x19b)]?.[0x0],_0x5114f3=_0x348a09?.[_0xc38927(0x1a9)];const _0x125cc9=_0x9a9f06['xpitb'](resolveProfileUrl,{'flagBaseUrl':_0x5ed176[_0xc38927(0x1a7)],'flagStartPath':_0x5ed176['startPath'],'envBaseUrl':_0x317118[_0xc38927(0x19c)],'envStartPath':_0x317118['envStartPath'],'projectOverrides':_0x41839e,'cloudSettings':_0x592179,'authEnvironmentDomain':_0x48f25d}),_0x58222b=process[_0xc38927(0x194)][_0xc38927(0x19e)];if(_0x58222b){if(!_0x9a9f06[_0xc38927(0x1c5)](existsSync,_0x58222b))throw new Error(_0xc38927(0x19a)+_0x58222b+_0xc38927(0x18a));_0x1023c2=_0x58222b,_0x5ead97=resolveEnvVars(_0x23a4b5),_0x2f40dc=Boolean(_0x5ead97['cdpEndpoint']);}else{const _0x25185a=await _0x9a9f06['LqauS'](resolveCloudProfileSession,_0x360559,{'effectiveBaseUrl':_0x125cc9['baseUrl'],'telemetry':_0x5ed176['telemetry']});_0x1023c2=_0x25185a['authPath'],_0x5ead97=_0x9a9f06['mRyFF'](resolveEnvVars,_0x25185a[_0xc38927(0x1a4)]),_0x2f40dc=Boolean(_0x5ead97[_0xc38927(0x1a3)]),_0x48f25d=_0x25185a['resolvedEnv']?.['domains']?.[0x0],_0x5114f3=_0x25185a['resolvedEnv']?.['key'];}}else{if(!_0x5e898e){const _0xe7c697=!_0x3dc97c;throw new Error(_0xe7c697?_0x9a9f06[_0xc38927(0x199)](_0x9a9f06['vxTRG']('Active\x20profile\x20\x22'+_0x5e3d1c+'\x22\x20no\x20longer\x20exists\x20(or\x20could\x20not\x20be\x20fetched).\x20Options:\x0a'+_0x9a9f06[_0xc38927(0x188)],_0x9a9f06['UoGXR']),'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20'+_0x5e3d1c+'`\x20to\x20recreate\x20it.'):'Profile\x20\x22'+_0x5e3d1c+_0xc38927(0x1b1)+_0x5e3d1c);}const _0x1548f7=await loadSettings(_0x5e3d1c);_0x5ead97=resolveEnvVars(_0x1548f7),_0x2f40dc=_0x9a9f06['qgPUt'](Boolean,_0x5ead97['cdpEndpoint']),_0x28d5d9=_0x5ead97['baseUrl'];}const _0x462602=resolveProfileUrl({'flagBaseUrl':_0x5ed176[_0xc38927(0x1a7)],'flagStartPath':_0x5ed176['startPath'],'envBaseUrl':_0x317118[_0xc38927(0x19c)],'envStartPath':_0x317118[_0xc38927(0x1b2)],'localSettingsBaseUrl':_0x28d5d9,'projectOverrides':_0x41839e,'cloudSettings':_0x592179,'authEnvironmentDomain':_0x48f25d}),_0x5b8e34=_0x462602['url']??_0x462602['baseUrl'];if(_0x9a9f06[_0xc38927(0x1be)](!_0x5b8e34,!_0x2f40dc))throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0x5e3d1c+_0xc38927(0x1a6)+_0x5e3d1c+'\x20baseUrl\x20<url>');return{'activeProfile':_0x5e3d1c,'resolvedCloudProfile':_0x3ebf51,'cloudAuthPath':_0x1023c2,'resolvedSettings':_0x5ead97,'isCdpMode':_0x2f40dc,'url':_0x5b8e34,'baseUrlSource':_0x462602[_0xc38927(0x1a8)],'authEnvKey':_0x5114f3,'startPath':_0x462602['startPath']};}function expandString(_0x1d51fa){const _0x53438e=_0x30e7,_0x564424={'EVOUh':'string','aMzIS':function(_0x5f4aa1,_0x410016){return _0x5f4aa1(_0x410016);}};if(typeof _0x1d51fa!==_0x564424[_0x53438e(0x18b)])return _0x1d51fa;return _0x564424['aMzIS'](resolveEnvVars,_0x1d51fa);}function expandOverrides(_0x2c4d26){const _0x3084df=_0x30e7,_0x155590={'ZQlmE':function(_0x5bf425,_0x4a13ed){return _0x5bf425===_0x4a13ed;},'CLTgw':'string','zOKfF':function(_0x2b5239,_0x6ac11f){return _0x2b5239===_0x6ac11f;},'EbXWS':function(_0xdbb84d,_0x3dab4b){return _0xdbb84d(_0x3dab4b);}};if(!_0x2c4d26)return _0x2c4d26;const _0x143c65={..._0x2c4d26};return _0x155590['ZQlmE'](typeof _0x143c65[_0x3084df(0x1a7)],_0x155590['CLTgw'])&&(_0x143c65[_0x3084df(0x1a7)]=resolveEnvVars(_0x143c65[_0x3084df(0x1a7)])),_0x155590['zOKfF'](typeof _0x143c65[_0x3084df(0x1b3)],_0x155590['CLTgw'])&&(_0x143c65['startPath']=_0x155590['EbXWS'](resolveEnvVars,_0x143c65['startPath'])),_0x143c65;}
@@ -1 +1 @@
1
- const _0x420f19=_0x10fc;(function(_0x370940,_0x51ec6a){const _0x3ea199=_0x10fc,_0xdb7bc3=_0x370940();while(!![]){try{const _0x27be22=-parseInt(_0x3ea199(0xf3))/0x1*(-parseInt(_0x3ea199(0xf0))/0x2)+-parseInt(_0x3ea199(0x102))/0x3+parseInt(_0x3ea199(0xfa))/0x4+-parseInt(_0x3ea199(0xfc))/0x5*(-parseInt(_0x3ea199(0xf6))/0x6)+-parseInt(_0x3ea199(0xf5))/0x7+-parseInt(_0x3ea199(0x103))/0x8*(parseInt(_0x3ea199(0xea))/0x9)+parseInt(_0x3ea199(0x100))/0xa*(-parseInt(_0x3ea199(0xff))/0xb);if(_0x27be22===_0x51ec6a)break;else _0xdb7bc3['push'](_0xdb7bc3['shift']());}catch(_0x425a4e){_0xdb7bc3['push'](_0xdb7bc3['shift']());}}}(_0x2314,0x5ab09));function firstDefined(..._0x302627){for(const _0x5586c5 of _0x302627){if(_0x5586c5!==undefined&&_0x5586c5!==null&&_0x5586c5!=='')return _0x5586c5;}return undefined;}function normalizeAuthEnvironmentDomain(_0x41d3ac){const _0x486d3a=_0x10fc;if(!_0x41d3ac)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0x486d3a(0xe7)](_0x41d3ac))return _0x41d3ac;return'https://'+_0x41d3ac;}export function resolveBaseUrlWithSource(_0x502836){const _0x10c71f=_0x10fc,_0x527ca2={'dUyZh':function(_0xf32052,_0x300f1a){return _0xf32052===_0x300f1a;},'JokPM':'cloud\x20profile\x20settings','BwkjQ':'auth\x20environment\x20domain','qMlHX':function(_0xab351f,_0x30bfd7){return _0xab351f!==_0x30bfd7;}},_0x1eecc8=_0x502836['projectOverrides'],_0x5c8635=!!_0x1eecc8&&_0x10c71f(0xe6)in _0x1eecc8,_0x18f1fe=_0x1eecc8?.[_0x10c71f(0xe6)],_0x517f06=!(_0x5c8635&&_0x527ca2['dUyZh'](_0x18f1fe,null)),_0x4f8074=[[_0x502836['flagBaseUrl'],'--base-url'],[_0x502836[_0x10c71f(0xf9)],_0x10c71f(0x101)],[_0x502836[_0x10c71f(0xe8)],_0x10c71f(0xeb)],[typeof _0x18f1fe==='string'?_0x18f1fe:undefined,'projects.json\x20override'],[_0x517f06?_0x502836[_0x10c71f(0xfe)]?.['baseUrl']:undefined,_0x527ca2[_0x10c71f(0xf4)]],[_0x517f06?normalizeAuthEnvironmentDomain(_0x502836['authEnvironmentDomain']):undefined,_0x527ca2[_0x10c71f(0xf7)]]];for(const [_0x3b4f11,_0x2f9b01]of _0x4f8074){if(_0x3b4f11!==undefined&&_0x3b4f11!==null&&_0x527ca2['qMlHX'](_0x3b4f11,''))return{'baseUrl':_0x3b4f11,'source':_0x2f9b01};}return{};}export function resolveBaseUrl(_0x291861){return resolveBaseUrlWithSource(_0x291861)['baseUrl'];}function _0x10fc(_0x1dda78,_0x30efec){_0x1dda78=_0x1dda78-0xe6;const _0x2314bf=_0x2314();let _0x10fc88=_0x2314bf[_0x1dda78];return _0x10fc88;}function _0x2314(){const _0x45702d=['143jyKOKp','716530qUAEpc','RANGER_BASE_URL','372693lniOyz','80FYJwXg','baseUrl','test','localSettingsBaseUrl','RANGER_START_PATH','58131UVXeVt','local\x20profile\x20settings','Hyqxn','env','projectOverrides','slice','66xfbduy','startPath','startsWith','19994XesaHv','JokPM','2024631RcgdsO','120WmUxDw','BwkjQ','endsWith','envBaseUrl','2779304XBgtlg','string','106595HxcrDR','gpPAo','cloudSettings'];_0x2314=function(){return _0x45702d;};return _0x2314();}export function resolveStartPath(_0x8c5e36){const _0x4bdc20=_0x10fc,_0x3ffa9f={'CTpXe':function(_0x1aa226,_0x5e9e90){return _0x1aa226 in _0x5e9e90;},'Hyqxn':'startPath'},_0x22ba71=_0x8c5e36[_0x4bdc20(0xee)],_0x554253=!!_0x22ba71&&_0x3ffa9f['CTpXe'](_0x3ffa9f[_0x4bdc20(0xec)],_0x22ba71),_0x58a293=_0x22ba71?.[_0x4bdc20(0xf1)],_0x430c6e=!(_0x554253&&_0x58a293===null);return firstDefined(_0x8c5e36['flagStartPath'],_0x8c5e36['envStartPath'],typeof _0x58a293===_0x4bdc20(0xfb)?_0x58a293:undefined,_0x430c6e?_0x8c5e36[_0x4bdc20(0xfe)]?.['startPath']:undefined);}export function joinBaseAndPath(_0x550dc7,_0xc151ad){const _0x470c6d=_0x10fc,_0x1193f0={'gpPAo':function(_0x29d15f,_0x5166d0){return _0x29d15f+_0x5166d0;}};if(!_0x550dc7)return undefined;if(!_0xc151ad)return _0x550dc7;const _0x45463f=_0x550dc7[_0x470c6d(0xf8)]('/')?_0x550dc7[_0x470c6d(0xef)](0x0,-0x1):_0x550dc7,_0x5b7ceb=_0xc151ad[_0x470c6d(0xf2)]('/')?_0xc151ad:_0x1193f0[_0x470c6d(0xfd)]('/',_0xc151ad);return _0x1193f0['gpPAo'](_0x45463f,_0x5b7ceb);}export function resolveProfileUrl(_0x1c73f9){const _0x42fd0d={'CzhRt':function(_0x517e14,_0x3a5463){return _0x517e14(_0x3a5463);},'TGSpn':function(_0x49b38e,_0x47dec8){return _0x49b38e(_0x47dec8);}},{baseUrl:_0x41c43a,source:_0x2adf9e}=_0x42fd0d['CzhRt'](resolveBaseUrlWithSource,_0x1c73f9),_0x1eaaf5=_0x42fd0d['TGSpn'](resolveStartPath,_0x1c73f9);return{'baseUrl':_0x41c43a,'baseUrlSource':_0x2adf9e,'startPath':_0x1eaaf5,'url':joinBaseAndPath(_0x41c43a,_0x1eaaf5)};}export function readUrlEnvVars(_0x20467c=process[_0x420f19(0xed)]){const _0x5cf4dd=_0x420f19;return{'envBaseUrl':_0x20467c[_0x5cf4dd(0x101)],'envStartPath':_0x20467c[_0x5cf4dd(0xe9)]};}
1
+ const _0x205a3c=_0x5c61;(function(_0x47c7e0,_0x53d5bf){const _0x49a6e0=_0x5c61,_0x18b689=_0x47c7e0();while(!![]){try{const _0x54d73f=parseInt(_0x49a6e0(0x184))/0x1*(parseInt(_0x49a6e0(0x188))/0x2)+parseInt(_0x49a6e0(0x180))/0x3+-parseInt(_0x49a6e0(0x18c))/0x4+-parseInt(_0x49a6e0(0x17a))/0x5*(-parseInt(_0x49a6e0(0x191))/0x6)+-parseInt(_0x49a6e0(0x189))/0x7*(-parseInt(_0x49a6e0(0x185))/0x8)+-parseInt(_0x49a6e0(0x178))/0x9+-parseInt(_0x49a6e0(0x179))/0xa*(-parseInt(_0x49a6e0(0x192))/0xb);if(_0x54d73f===_0x53d5bf)break;else _0x18b689['push'](_0x18b689['shift']());}catch(_0x2600ca){_0x18b689['push'](_0x18b689['shift']());}}}(_0xe92a,0xaf3ff));function firstDefined(..._0x2f863f){const _0x1222ca=_0x5c61,_0x9ebcff={'OPrJj':function(_0xf497a5,_0x3c612a){return _0xf497a5!==_0x3c612a;}};for(const _0x6b4710 of _0x2f863f){if(_0x9ebcff['OPrJj'](_0x6b4710,undefined)&&_0x9ebcff[_0x1222ca(0x17c)](_0x6b4710,null)&&_0x9ebcff[_0x1222ca(0x17c)](_0x6b4710,''))return _0x6b4710;}return undefined;}function _0xe92a(){const _0x18a400=['cloudSettings','QnNie','DRTMt','VUncN','hJgxh','Veqaa','env','11110086TibnOG','10oYcxnn','350255LBdleO','--base-url','OPrJj','flagBaseUrl','TYsJT','RANGER_BASE_URL','378663LHlErE','qTWwG','vegRN','startPath','58371BgUeYm','312WFBbbA','MuEAA','gOHGu','38okgSvd','1561smDiDT','string','slice','3469868upmoUq','baseUrl','envStartPath','endsWith','Sdzze','60uGMhpX','9627937LuYCgl','projectOverrides','test'];_0xe92a=function(){return _0x18a400;};return _0xe92a();}function normalizeAuthEnvironmentDomain(_0x5a6ade){const _0x19e8a2=_0x5c61;if(!_0x5a6ade)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0x19e8a2(0x194)](_0x5a6ade))return _0x5a6ade;return'https://'+_0x5a6ade;}function _0x5c61(_0x201911,_0x138965){_0x201911=_0x201911-0x173;const _0xe92a5c=_0xe92a();let _0x5c61e9=_0xe92a5c[_0x201911];return _0x5c61e9;}export function resolveBaseUrlWithSource(_0x1bc28a){const _0x26838a=_0x5c61,_0x5b4abb={'qTWwG':function(_0x44d679,_0x6af1c9){return _0x44d679 in _0x6af1c9;},'hJgxh':_0x26838a(0x18d),'KZMTz':function(_0x4c5305,_0xb4bb77){return _0x4c5305===_0xb4bb77;},'Sdzze':_0x26838a(0x17b),'VUncN':'local\x20profile\x20settings','TYsJT':function(_0x2f94c0,_0x3ad2f8){return _0x2f94c0===_0x3ad2f8;},'VsPCf':function(_0x34d8b2,_0x301110){return _0x34d8b2(_0x301110);},'MuEAA':'auth\x20environment\x20domain','DRTMt':function(_0x249193,_0xdd0e75){return _0x249193!==_0xdd0e75;}},_0x38611b=_0x1bc28a[_0x26838a(0x193)],_0x1c8a70=!!_0x38611b&&_0x5b4abb[_0x26838a(0x181)](_0x5b4abb[_0x26838a(0x175)],_0x38611b),_0x1c80fb=_0x38611b?.['baseUrl'],_0x461079=!(_0x1c8a70&&_0x5b4abb['KZMTz'](_0x1c80fb,null)),_0x257ac6=[[_0x1bc28a[_0x26838a(0x17d)],_0x5b4abb[_0x26838a(0x190)]],[_0x1bc28a['envBaseUrl'],_0x26838a(0x17f)],[_0x1bc28a['localSettingsBaseUrl'],_0x5b4abb[_0x26838a(0x174)]],[_0x5b4abb[_0x26838a(0x17e)](typeof _0x1c80fb,'string')?_0x1c80fb:undefined,'projects.json\x20override'],[_0x461079?_0x1bc28a['cloudSettings']?.[_0x26838a(0x18d)]:undefined,'cloud\x20profile\x20settings'],[_0x461079?_0x5b4abb['VsPCf'](normalizeAuthEnvironmentDomain,_0x1bc28a['authEnvironmentDomain']):undefined,_0x5b4abb[_0x26838a(0x186)]]];for(const [_0x26c7e9,_0x2756f8]of _0x257ac6){if(_0x5b4abb[_0x26838a(0x173)](_0x26c7e9,undefined)&&_0x26c7e9!==null&&_0x5b4abb['DRTMt'](_0x26c7e9,''))return{'baseUrl':_0x26c7e9,'source':_0x2756f8};}return{};}export function resolveBaseUrl(_0x1d38fc){return resolveBaseUrlWithSource(_0x1d38fc)['baseUrl'];}export function resolveStartPath(_0x5bdc28){const _0x430873=_0x5c61,_0x542c8a={'gOHGu':function(_0x5be180,_0x1bd9be){return _0x5be180 in _0x1bd9be;},'QnNie':function(_0x19139c,_0x20539f){return _0x19139c===_0x20539f;},'fgQML':function(_0x47a7a7,_0x57e8a3,_0x31b352,_0x26f91b,_0x22f84c){return _0x47a7a7(_0x57e8a3,_0x31b352,_0x26f91b,_0x22f84c);},'CAheV':function(_0x1333a9,_0x5a3bc3){return _0x1333a9===_0x5a3bc3;},'Veqaa':_0x430873(0x18a)},_0xc5e179=_0x5bdc28['projectOverrides'],_0x3cb9ff=!!_0xc5e179&&_0x542c8a[_0x430873(0x187)](_0x430873(0x183),_0xc5e179),_0x50dc1b=_0xc5e179?.[_0x430873(0x183)],_0x37613f=!(_0x3cb9ff&&_0x542c8a[_0x430873(0x196)](_0x50dc1b,null));return _0x542c8a['fgQML'](firstDefined,_0x5bdc28['flagStartPath'],_0x5bdc28[_0x430873(0x18e)],_0x542c8a['CAheV'](typeof _0x50dc1b,_0x542c8a[_0x430873(0x176)])?_0x50dc1b:undefined,_0x37613f?_0x5bdc28[_0x430873(0x195)]?.['startPath']:undefined);}export function joinBaseAndPath(_0x1ae626,_0x58e50a){const _0x3d7a01=_0x5c61,_0x18e9ff={'uGbrK':function(_0x3c7716,_0xf599de){return _0x3c7716+_0xf599de;}};if(!_0x1ae626)return undefined;if(!_0x58e50a)return _0x1ae626;const _0x1a00c0=_0x1ae626[_0x3d7a01(0x18f)]('/')?_0x1ae626[_0x3d7a01(0x18b)](0x0,-0x1):_0x1ae626,_0x37ab7a=_0x58e50a['startsWith']('/')?_0x58e50a:'/'+_0x58e50a;return _0x18e9ff['uGbrK'](_0x1a00c0,_0x37ab7a);}export function resolveProfileUrl(_0x5a5544){const _0x397d07=_0x5c61,_0x9d2f62={'oxUaa':function(_0x353d00,_0x5b01f2){return _0x353d00(_0x5b01f2);},'vegRN':function(_0x3633e8,_0x587e0b){return _0x3633e8(_0x587e0b);},'GsbfX':function(_0x26df8d,_0x2bc624,_0x2cbd6b){return _0x26df8d(_0x2bc624,_0x2cbd6b);}},{baseUrl:_0x96a565,source:_0x1b7f29}=_0x9d2f62['oxUaa'](resolveBaseUrlWithSource,_0x5a5544),_0x1a5937=_0x9d2f62[_0x397d07(0x182)](resolveStartPath,_0x5a5544);return{'baseUrl':_0x96a565,'baseUrlSource':_0x1b7f29,'startPath':_0x1a5937,'url':_0x9d2f62['GsbfX'](joinBaseAndPath,_0x96a565,_0x1a5937)};}export function readUrlEnvVars(_0x490dda=process[_0x205a3c(0x177)]){const _0x1ac4f4=_0x205a3c;return{'envBaseUrl':_0x490dda[_0x1ac4f4(0x17f)],'envStartPath':_0x490dda['RANGER_START_PATH']};}
@@ -1 +1 @@
1
- function _0x37cf(_0x42e3ea,_0x32934c){_0x42e3ea=_0x42e3ea-0x1f0;const _0x1e7214=_0x1e72();let _0x37cfdd=_0x1e7214[_0x42e3ea];return _0x37cfdd;}(function(_0x1d92b3,_0x344b85){const _0x3b8aee=_0x37cf,_0x6c0110=_0x1d92b3();while(!![]){try{const _0x5e8a70=parseInt(_0x3b8aee(0x1f0))/0x1*(-parseInt(_0x3b8aee(0x1fc))/0x2)+-parseInt(_0x3b8aee(0x1f8))/0x3*(-parseInt(_0x3b8aee(0x1f2))/0x4)+parseInt(_0x3b8aee(0x1f7))/0x5+-parseInt(_0x3b8aee(0x1fa))/0x6+-parseInt(_0x3b8aee(0x1f5))/0x7+-parseInt(_0x3b8aee(0x1f3))/0x8*(parseInt(_0x3b8aee(0x1f9))/0x9)+parseInt(_0x3b8aee(0x1f6))/0xa;if(_0x5e8a70===_0x344b85)break;else _0x6c0110['push'](_0x6c0110['shift']());}catch(_0x23125f){_0x6c0110['push'](_0x6c0110['shift']());}}}(_0x1e72,0x3f610));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x4a2d51,_0x12aebf){const _0x1b1f12=_0x37cf,_0x4b5fef={'mBBzt':function(_0x4de51e){return _0x4de51e();},'osJZR':function(_0x1611db,_0x199116){return _0x1611db(_0x199116);},'PQvWO':function(_0x40a45d,_0x3a141e){return _0x40a45d<_0x3a141e;},'Tjfqw':function(_0x44fa85,_0x133f2f){return _0x44fa85*_0x133f2f;},'VfmRr':function(_0x113bc8,_0x3e5983){return _0x113bc8+_0x3e5983;}},_0x2308b1=_0x12aebf?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x50cf62=_0x12aebf?.[_0x1b1f12(0x1f1)]??DEFAULT_BASE_DELAY_MS;let _0x6787d5;for(let _0x54c04e=0x0;_0x54c04e<=_0x2308b1;_0x54c04e++){try{return await _0x4b5fef['mBBzt'](_0x4a2d51);}catch(_0x15dba6){_0x6787d5=_0x15dba6 instanceof Error?_0x15dba6:new Error(_0x4b5fef['osJZR'](String,_0x15dba6));if(_0x4b5fef['PQvWO'](_0x54c04e,_0x2308b1)){const _0x178abc=_0x4b5fef['Tjfqw'](_0x50cf62,Math[_0x1b1f12(0x1fe)](0x2,_0x54c04e));_0x12aebf?.[_0x1b1f12(0x1fb)]&&console['error'](_0x12aebf['label']+_0x1b1f12(0x1f4)+_0x4b5fef['VfmRr'](_0x54c04e,0x1)+'/'+(_0x2308b1+0x1)+'),\x20retrying\x20in\x20'+_0x178abc+_0x1b1f12(0x1fd)),await new Promise(_0x4137e3=>setTimeout(_0x4137e3,_0x178abc));}}}throw _0x6787d5;}function _0x1e72(){const _0x4df639=['\x20failed\x20(attempt\x20','1085287usXkXc','6764450KvZdGa','234145CkrMeK','63YOeAns','263628vTtgKR','2017536rDnkPV','label','49978bMGajL','ms...','pow','2gGbzkT','baseDelayMs','25940TuHLLP','16Xfdzfw'];_0x1e72=function(){return _0x4df639;};return _0x1e72();}
1
+ function _0x38fd(_0x1fb596,_0x4f5038){_0x1fb596=_0x1fb596-0xbb;const _0xa85864=_0xa858();let _0x38fdc1=_0xa85864[_0x1fb596];return _0x38fdc1;}(function(_0x45f8f1,_0x503e66){const _0x45f1c3=_0x38fd,_0x5d1c1c=_0x45f8f1();while(!![]){try{const _0x280801=-parseInt(_0x45f1c3(0xbe))/0x1*(parseInt(_0x45f1c3(0xbb))/0x2)+-parseInt(_0x45f1c3(0xc6))/0x3*(parseInt(_0x45f1c3(0xc2))/0x4)+-parseInt(_0x45f1c3(0xc3))/0x5+-parseInt(_0x45f1c3(0xbf))/0x6+-parseInt(_0x45f1c3(0xc0))/0x7+parseInt(_0x45f1c3(0xc4))/0x8+parseInt(_0x45f1c3(0xc1))/0x9;if(_0x280801===_0x503e66)break;else _0x5d1c1c['push'](_0x5d1c1c['shift']());}catch(_0x47486c){_0x5d1c1c['push'](_0x5d1c1c['shift']());}}}(_0xa858,0x81391));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x166c3e,_0xec4692){const _0x2c9f1f=_0x38fd,_0x225f13={'lFtIk':function(_0x24b3ba){return _0x24b3ba();}},_0x43e0b7=_0xec4692?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x325142=_0xec4692?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0xd9ef0;for(let _0x299fca=0x0;_0x299fca<=_0x43e0b7;_0x299fca++){try{return await _0x225f13['lFtIk'](_0x166c3e);}catch(_0x5188be){_0xd9ef0=_0x5188be instanceof Error?_0x5188be:new Error(String(_0x5188be));if(_0x299fca<_0x43e0b7){const _0x12ec4d=_0x325142*Math[_0x2c9f1f(0xc5)](0x2,_0x299fca);_0xec4692?.[_0x2c9f1f(0xbd)]&&console[_0x2c9f1f(0xbc)](_0xec4692['label']+'\x20failed\x20(attempt\x20'+(_0x299fca+0x1)+'/'+(_0x43e0b7+0x1)+'),\x20retrying\x20in\x20'+_0x12ec4d+'ms...'),await new Promise(_0x4c20c9=>setTimeout(_0x4c20c9,_0x12ec4d));}}}throw _0xd9ef0;}function _0xa858(){const _0x1d3435=['label','1aOZwVO','827712uyelcP','4746007SaSjzT','25968510LXqZQX','52gNsZqm','4235230PjDubE','5853704twTubM','pow','99684RSWURI','1985686ypBZQc','error'];_0xa858=function(){return _0x1d3435;};return _0xa858();}
@@ -1 +1 @@
1
- (function(_0x3cac27,_0x2ba621){const _0x37ae97=_0x5f2d,_0x51007b=_0x3cac27();while(!![]){try{const _0x240758=parseInt(_0x37ae97(0x83))/0x1+-parseInt(_0x37ae97(0x7a))/0x2*(-parseInt(_0x37ae97(0x79))/0x3)+-parseInt(_0x37ae97(0x82))/0x4*(parseInt(_0x37ae97(0x7e))/0x5)+-parseInt(_0x37ae97(0x81))/0x6*(parseInt(_0x37ae97(0x7f))/0x7)+-parseInt(_0x37ae97(0x85))/0x8+parseInt(_0x37ae97(0x7c))/0x9+parseInt(_0x37ae97(0x7d))/0xa*(parseInt(_0x37ae97(0x84))/0xb);if(_0x240758===_0x2ba621)break;else _0x51007b['push'](_0x51007b['shift']());}catch(_0x1bcdc6){_0x51007b['push'](_0x51007b['shift']());}}}(_0x47a0,0xe962a));const ABSOLUTE_URL_PATTERN=/https?:\/\/[^\s"'<>()\[\]]+/gi;function _0x5f2d(_0x4d6e1e,_0x1d4c88){_0x4d6e1e=_0x4d6e1e-0x79;const _0x47a027=_0x47a0();let _0x5f2d70=_0x47a027[_0x4d6e1e];return _0x5f2d70;}export function extractUrlOrigins(_0x52ca19){const _0x44da95=_0x5f2d,_0x45958e=new Set();for(const _0x31284f of _0x52ca19['matchAll'](ABSOLUTE_URL_PATTERN)){const _0x146537=_0x31284f[0x0]['replace'](/[.,;:!?]+$/,'');try{_0x45958e['add'](new URL(_0x146537)[_0x44da95(0x80)]);}catch{}}return[..._0x45958e];}export function findScenarioOriginMismatches(_0x112be6,_0x25f70c){const _0x2ea2e5=_0x5f2d,_0x3a6b76={'papqC':function(_0xa032eb,_0x370d28){return _0xa032eb(_0x370d28);}};let _0x2f8067;try{_0x2f8067=new URL(_0x25f70c)['origin'];}catch{return[];}return _0x3a6b76['papqC'](extractUrlOrigins,_0x112be6)[_0x2ea2e5(0x7b)](_0x47af32=>_0x47af32!==_0x2f8067);}function _0x47a0(){const _0x58fd40=['12156ZcgOio','4YfmyKf','148516gnHlgh','374oyHCuj','7323712MYneWH','760011lZmarA','8LHTrDz','filter','13050639IWMJrf','82810NiqJng','2446205fgSTLl','1841JQgqfm','origin'];_0x47a0=function(){return _0x58fd40;};return _0x47a0();}
1
+ (function(_0x1f1192,_0x380822){const _0x969c84=_0x5e1c,_0x4d5c41=_0x1f1192();while(!![]){try{const _0x54d7fb=parseInt(_0x969c84(0x15c))/0x1+-parseInt(_0x969c84(0x157))/0x2*(-parseInt(_0x969c84(0x158))/0x3)+-parseInt(_0x969c84(0x15b))/0x4+-parseInt(_0x969c84(0x159))/0x5*(parseInt(_0x969c84(0x15a))/0x6)+-parseInt(_0x969c84(0x15f))/0x7+parseInt(_0x969c84(0x155))/0x8+-parseInt(_0x969c84(0x15d))/0x9*(-parseInt(_0x969c84(0x160))/0xa);if(_0x54d7fb===_0x380822)break;else _0x4d5c41['push'](_0x4d5c41['shift']());}catch(_0x1f0636){_0x4d5c41['push'](_0x4d5c41['shift']());}}}(_0x2ce9,0x3eb35));function _0x2ce9(){const _0x334a16=['10cAFnSW','add','origin','785384XSQUNP','replace','306082mkKJym','9vfLoWv','1409935zbChwE','6YYjLFh','1930016ppGVad','444915VSqyjC','3266208GZxeRt','matchAll','2406677TobcQg'];_0x2ce9=function(){return _0x334a16;};return _0x2ce9();}function _0x5e1c(_0x1501b0,_0x5cb005){_0x1501b0=_0x1501b0-0x153;const _0x2ce97f=_0x2ce9();let _0x5e1c83=_0x2ce97f[_0x1501b0];return _0x5e1c83;}const ABSOLUTE_URL_PATTERN=/https?:\/\/[^\s"'<>()\[\]]+/gi;export function extractUrlOrigins(_0x4163a5){const _0x5bdfca=_0x5e1c,_0x155ca7=new Set();for(const _0x47f897 of _0x4163a5[_0x5bdfca(0x15e)](ABSOLUTE_URL_PATTERN)){const _0x57344b=_0x47f897[0x0][_0x5bdfca(0x156)](/[.,;:!?]+$/,'');try{_0x155ca7[_0x5bdfca(0x153)](new URL(_0x57344b)[_0x5bdfca(0x154)]);}catch{}}return[..._0x155ca7];}export function findScenarioOriginMismatches(_0x3a59be,_0x1c0b2e){const _0x4ea0eb=_0x5e1c;let _0x541982;try{_0x541982=new URL(_0x1c0b2e)[_0x4ea0eb(0x154)];}catch{return[];}return extractUrlOrigins(_0x3a59be)['filter'](_0x2d113e=>_0x2d113e!==_0x541982);}
@@ -1 +1 @@
1
- const _0x39918b=_0x3ee1;(function(_0x57e62e,_0x4ae911){const _0x2039c2=_0x3ee1,_0x1873c6=_0x57e62e();while(!![]){try{const _0x3fc259=parseInt(_0x2039c2(0xc5))/0x1*(-parseInt(_0x2039c2(0xd3))/0x2)+parseInt(_0x2039c2(0xb5))/0x3*(parseInt(_0x2039c2(0xc2))/0x4)+-parseInt(_0x2039c2(0xb6))/0x5+parseInt(_0x2039c2(0xbd))/0x6*(-parseInt(_0x2039c2(0xcf))/0x7)+parseInt(_0x2039c2(0xc8))/0x8+parseInt(_0x2039c2(0xda))/0x9*(-parseInt(_0x2039c2(0xc3))/0xa)+parseInt(_0x2039c2(0xd2))/0xb*(parseInt(_0x2039c2(0xc4))/0xc);if(_0x3fc259===_0x4ae911)break;else _0x1873c6['push'](_0x1873c6['shift']());}catch(_0x4b3b01){_0x1873c6['push'](_0x1873c6['shift']());}}}(_0x1334,0x2b8d8));import*as _0x24ad0d from'fs';import*as _0x4bf313 from'path';import*as _0x5dc103 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x4bf313[_0x39918b(0xab)](_0x5dc103[_0x39918b(0xb2)](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x2bf693=_0x39918b,_0x452dfe={'FBMnn':_0x2bf693(0xe3)};try{if(_0x24ad0d['existsSync'](CACHE_FILE)){const _0x1752a5=JSON['parse'](_0x24ad0d['readFileSync'](CACHE_FILE,_0x452dfe[_0x2bf693(0xdd)]));return{'version':0x3,'sessions':_0x1752a5['sessions']||{},'branches':_0x1752a5['branches']||{},'lastEnabledSessionClearedAt':_0x1752a5[_0x2bf693(0xd1)]};}}catch{}return createEmptyCache();}function saveCache(_0x39f4f8){const _0x244090=_0x39918b;try{const _0x226b0b=_0x4bf313[_0x244090(0xcc)](CACHE_FILE);!_0x24ad0d[_0x244090(0xc1)](_0x226b0b)&&_0x24ad0d['mkdirSync'](_0x226b0b,{'recursive':!![]}),_0x24ad0d[_0x244090(0xb1)](CACHE_FILE,JSON['stringify'](_0x39f4f8,null,0x2));}catch{}}export function getCurrentBranch(){const _0x3e1f3b=_0x39918b,_0x2fca24={'camcm':function(_0x58c733,_0x592588,_0x13ce5d){return _0x58c733(_0x592588,_0x13ce5d);},'ExGoQ':_0x3e1f3b(0xd4),'mRBJS':_0x3e1f3b(0xe3),'Uqfqy':_0x3e1f3b(0xb8),'iOWbr':function(_0x57bdee,_0x52c0c3){return _0x57bdee===_0x52c0c3;},'aNJFI':_0x3e1f3b(0xae)};try{const _0x1b5fc9=_0x2fca24[_0x3e1f3b(0xd6)](execSync,_0x2fca24['ExGoQ'],{'encoding':_0x2fca24['mRBJS'],'stdio':[_0x3e1f3b(0xb8),_0x2fca24[_0x3e1f3b(0xc7)],_0x3e1f3b(0xb8)]})['trim']();if(!_0x1b5fc9||_0x2fca24[_0x3e1f3b(0xe0)](_0x1b5fc9,_0x2fca24[_0x3e1f3b(0xb7)]))return null;return _0x1b5fc9;}catch{return null;}}export function enableBranch(_0x5b0c1e){const _0x960449={'bGSbu':function(_0x3c0e6b){return _0x3c0e6b();}},_0x3fab79=_0x960449['bGSbu'](loadCache);_0x3fab79['branches'][_0x5b0c1e]=!![],saveCache(_0x3fab79);}export function disableBranch(_0x2030cd){const _0x3dbd50=_0x39918b,_0x3007ff={'clYFI':function(_0x821c31,_0x28496d){return _0x821c31(_0x28496d);}},_0x3b8cfc=loadCache();delete _0x3b8cfc['branches'][_0x2030cd],_0x3007ff[_0x3dbd50(0xcb)](saveCache,_0x3b8cfc);}function _0x3ee1(_0x1398ae,_0x5372d5){_0x1398ae=_0x1398ae-0xaa;const _0x133492=_0x1334();let _0x3ee12f=_0x133492[_0x1398ae];return _0x3ee12f;}export function isBranchEnabled(_0x10ce76){const _0x328dfa=_0x39918b,_0x13d370={'KUgHG':function(_0x1fb40c,_0x253cdf){return _0x1fb40c===_0x253cdf;}},_0x125b76=loadCache();return _0x13d370['KUgHG'](_0x125b76[_0x328dfa(0xd9)][_0x10ce76],!![]);}function getOrCreateSession(_0x295381,_0x47963c){return!_0x295381['sessions'][_0x47963c]&&(_0x295381['sessions'][_0x47963c]={}),_0x295381['sessions'][_0x47963c];}export function enableSession(_0x5bf9b9){const _0x492a7a=_0x39918b,_0x3efb51={'dVtXi':function(_0x5cfcd9){return _0x5cfcd9();},'RnegA':function(_0x598cb1,_0x3fd85f,_0x4e3f1a){return _0x598cb1(_0x3fd85f,_0x4e3f1a);},'KSkUd':function(_0x2b389b,_0xaa01d7){return _0x2b389b!==_0xaa01d7;},'pSHfE':function(_0x29e9cb,_0xfdd0cc){return _0x29e9cb(_0xfdd0cc);}},_0x454a6e=_0x3efb51['dVtXi'](loadCache),_0x41edb1=_0x3efb51['RnegA'](getOrCreateSession,_0x454a6e,_0x5bf9b9);_0x41edb1['enabled']=!![];const _0x5a5f43=getCurrentBranch();_0x5a5f43&&_0x5a5f43!==_0x492a7a(0xe4)&&_0x3efb51['KSkUd'](_0x5a5f43,_0x492a7a(0xbf))&&(_0x454a6e[_0x492a7a(0xd9)][_0x5a5f43]=!![],_0x41edb1[_0x492a7a(0xdc)]=_0x5a5f43),_0x3efb51['pSHfE'](saveCache,_0x454a6e);}export function isSessionEnabled(_0x3753b3){const _0x2805cc=_0x39918b,_0x36607d={'fzmFq':function(_0x3dd81f){return _0x3dd81f();},'drnce':function(_0x53e595){return _0x53e595();},'lRpDj':'main','RWPRu':function(_0x31268f,_0x237849){return _0x31268f===_0x237849;}},_0x23fc31=_0x36607d[_0x2805cc(0xc9)](loadCache),_0x2d4135=_0x36607d['drnce'](getCurrentBranch);if(!_0x2d4135||_0x2d4135===_0x36607d[_0x2805cc(0xb9)]||_0x2d4135===_0x2805cc(0xbf))return _0x23fc31[_0x2805cc(0xbb)][_0x3753b3]?.['enabled']===!![];const _0x2cb568=_0x23fc31['branches'][_0x2d4135]===!![],_0x36cad8=_0x36607d['RWPRu'](_0x23fc31[_0x2805cc(0xbb)][_0x3753b3]?.['enabled'],!![]);return _0x2cb568||_0x36cad8;}export function disableSession(_0x53037f){const _0x7cb726=_0x39918b,_0x178522={'XXlik':function(_0x3e4976,_0x2ff04c,_0x2dd97f){return _0x3e4976(_0x2ff04c,_0x2dd97f);},'BcRRf':function(_0x4ebb2d,_0x55ae47){return _0x4ebb2d(_0x55ae47);}},_0x164a05=loadCache(),_0x24be06=_0x178522['XXlik'](getOrCreateSession,_0x164a05,_0x53037f);_0x24be06[_0x7cb726(0xe1)]=![],_0x178522['BcRRf'](saveCache,_0x164a05);}export function updateBranchTracking(_0x403112){const _0x379a35=_0x39918b,_0x4a23a7={'fMGoU':function(_0x4072ab){return _0x4072ab();},'UMgBb':function(_0x209e42,_0x1f9ce3){return _0x209e42===_0x1f9ce3;},'AvUds':'master','xHPdX':function(_0x1fa202,_0x563d2f){return _0x1fa202!==_0x563d2f;},'UrvXa':function(_0xf30e65,_0x3bcc1c){return _0xf30e65(_0x3bcc1c);}},_0x4ebd2d=loadCache(),_0x315582=_0x4ebd2d[_0x379a35(0xbb)][_0x403112];if(!_0x315582?.[_0x379a35(0xe1)])return;const _0x42c77f=_0x4a23a7[_0x379a35(0xaa)](getCurrentBranch);if(!_0x42c77f||_0x42c77f==='main'||_0x4a23a7['UMgBb'](_0x42c77f,_0x4a23a7[_0x379a35(0xdb)]))return;_0x4a23a7[_0x379a35(0xaf)](_0x315582[_0x379a35(0xdc)],_0x42c77f)&&(_0x4ebd2d[_0x379a35(0xd9)][_0x42c77f]=!![],_0x315582['currentBranch']=_0x42c77f,_0x4a23a7['UrvXa'](saveCache,_0x4ebd2d));}export function initBranchTracking(_0x3f0de5){const _0x5d44e8=_0x39918b,_0x5403ea={'RtJiW':function(_0x531dc9){return _0x531dc9();},'nnPnM':function(_0x56a577,_0x3f5979){return _0x56a577===_0x3f5979;},'QnjNz':'master','SJBud':function(_0x394976,_0x56339f,_0x1efdf6){return _0x394976(_0x56339f,_0x1efdf6);}},_0x295bf1=_0x5403ea['RtJiW'](loadCache),_0x55a7e7=getCurrentBranch();if(!_0x55a7e7||_0x5403ea[_0x5d44e8(0xde)](_0x55a7e7,'main')||_0x55a7e7===_0x5403ea[_0x5d44e8(0xce)])return;if(_0x5403ea['nnPnM'](_0x295bf1[_0x5d44e8(0xd9)][_0x55a7e7],!![])){const _0x57e938=_0x5403ea['SJBud'](getOrCreateSession,_0x295bf1,_0x3f0de5);_0x57e938['enabled']=!![],_0x57e938['currentBranch']=_0x55a7e7,saveCache(_0x295bf1);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;function _0x1334(){const _0x59c820=['40bSqNLm','5421648mxicOo','331736aVADGj','cnpES','Uqfqy','2221072YTClqB','fzmFq','MsicI','clYFI','dirname','lastStopReminderAt','QnjNz','7dMVhqG','BZvAl','lastEnabledSessionClearedAt','11wPLMAA','2dOgNMY','git\x20rev-parse\x20--abbrev-ref\x20HEAD','rwZOa','camcm','xTCnE','XQeKh','branches','53595yPevIO','AvUds','currentBranch','FBMnn','nnPnM','RfQXH','iOWbr','enabled','JsYEU','utf-8','main','fMGoU','join','clear','registeredAt','HEAD','xHPdX','featureId','writeFileSync','homedir','HGCcP','tAVJx','45705ABZqjp','918360ErjadQ','aNJFI','pipe','lRpDj','lastPlanReminderAt','sessions','YtFAy','162318BbgeOE','tNhcD','master','now','existsSync','4FdaSPU'];_0x1334=function(){return _0x59c820;};return _0x1334();}export function recordEnabledSessionCleared(_0x555af4){const _0x22f23d=_0x39918b,_0x34153a={'iqAjZ':function(_0x500525){return _0x500525();},'wULWh':function(_0x220a83,_0x5f45b9){return _0x220a83(_0x5f45b9);}},_0x31f1c5=_0x34153a['iqAjZ'](loadCache),_0x27a032=_0x31f1c5[_0x22f23d(0xbb)][_0x555af4];_0x27a032?.[_0x22f23d(0xe1)]&&(_0x31f1c5[_0x22f23d(0xd1)]=Date[_0x22f23d(0xc0)](),_0x34153a['wULWh'](saveCache,_0x31f1c5));}export function shouldAutoEnableAfterClear(_0x584cb2){const _0x23fe41=_0x39918b,_0x2cf1f8={'snfXv':function(_0x35519d,_0x22d6e4){return _0x35519d!==_0x22d6e4;},'mwbRz':_0x23fe41(0xac),'cDhuF':function(_0x50f474,_0x1aeea2){return _0x50f474-_0x1aeea2;},'BZvAl':function(_0x371bf8,_0x423467){return _0x371bf8<=_0x423467;}};if(_0x2cf1f8['snfXv'](_0x584cb2,_0x2cf1f8['mwbRz']))return![];const _0xf506a0=loadCache(),_0x2801e1=_0xf506a0[_0x23fe41(0xd1)];if(!_0x2801e1)return![];const _0x2c5ab8=_0x2cf1f8['cDhuF'](Date[_0x23fe41(0xc0)](),_0x2801e1);return _0x2cf1f8[_0x23fe41(0xd0)](_0x2c5ab8,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x4f571a){const _0xca29dc=_0x39918b,_0x1f3ae9={'cnpES':function(_0x1b1763){return _0x1b1763();},'YtFAy':function(_0x378521,_0x56b856){return _0x378521!==_0x56b856;},'ZpDpd':'master','ltGYD':function(_0x41ced9,_0x1224b1){return _0x41ced9(_0x1224b1);}},_0x4b8afe=_0x1f3ae9[_0xca29dc(0xc6)](loadCache),_0x505e44=getOrCreateSession(_0x4b8afe,_0x4f571a);_0x505e44['enabled']=!![];const _0xb965d3=_0x1f3ae9[_0xca29dc(0xc6)](getCurrentBranch);_0xb965d3&&_0x1f3ae9[_0xca29dc(0xbc)](_0xb965d3,'main')&&_0x1f3ae9['YtFAy'](_0xb965d3,_0x1f3ae9['ZpDpd'])&&(_0x505e44['currentBranch']=_0xb965d3),delete _0x4b8afe['lastEnabledSessionClearedAt'],_0x1f3ae9['ltGYD'](saveCache,_0x4b8afe);}export function registerSession(_0x73676c,_0xd410a2){const _0x152a4a=_0x39918b,_0x1dc61f={'XQeKh':function(_0x59bbb9){return _0x59bbb9();},'tAVJx':function(_0x6fa130,_0x39afba,_0x2970ae){return _0x6fa130(_0x39afba,_0x2970ae);},'pCtOI':function(_0x257a3c,_0x540303){return _0x257a3c(_0x540303);}},_0x57bb9e=_0x1dc61f[_0x152a4a(0xd8)](loadCache),_0x14cadf=_0x1dc61f[_0x152a4a(0xb4)](getOrCreateSession,_0x57bb9e,_0x73676c);_0x14cadf[_0x152a4a(0xb0)]=_0xd410a2,_0x14cadf['registeredAt']=new Date()['toISOString'](),_0x1dc61f['pCtOI'](saveCache,_0x57bb9e);}export function getSessionEntry(_0x50d51e){const _0x36210e=_0x39918b,_0x3f5cb9={'rwZOa':function(_0x2d4f18){return _0x2d4f18();}},_0x28579d=_0x3f5cb9[_0x36210e(0xd5)](loadCache),_0x5654d7=_0x28579d[_0x36210e(0xbb)][_0x50d51e];if(_0x5654d7?.[_0x36210e(0xb0)]&&_0x5654d7?.[_0x36210e(0xad)])return{'featureId':_0x5654d7[_0x36210e(0xb0)],'registeredAt':_0x5654d7[_0x36210e(0xad)]};return null;}export function unregisterSession(_0x221826){const _0x3e1087=_0x39918b,_0x55f8d4={'HGCcP':function(_0x1fea7e){return _0x1fea7e();},'NobhJ':function(_0x1cd673,_0x22fe03){return _0x1cd673(_0x22fe03);}},_0x228c4b=_0x55f8d4[_0x3e1087(0xb3)](loadCache),_0x47bdf7=_0x228c4b['sessions'][_0x221826];_0x47bdf7&&(delete _0x47bdf7['featureId'],delete _0x47bdf7['registeredAt'],_0x55f8d4['NobhJ'](saveCache,_0x228c4b));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x2bee4b){const _0x5cf1e1=_0x39918b,_0x40157b={'tNhcD':function(_0x34234b){return _0x34234b();},'xTCnE':function(_0x541036,_0x2ff261,_0x36b28d){return _0x541036(_0x2ff261,_0x36b28d);},'MsicI':function(_0x3273d3,_0x337c52){return _0x3273d3>=_0x337c52;},'JsYEU':function(_0x4a875e,_0x1c9d65){return _0x4a875e-_0x1c9d65;},'UqtOK':function(_0x4ebc98,_0x3884f5){return _0x4ebc98(_0x3884f5);}},_0xf6bce3=_0x40157b[_0x5cf1e1(0xbe)](loadCache),_0x3b7fd6=_0x40157b[_0x5cf1e1(0xd7)](getOrCreateSession,_0xf6bce3,_0x2bee4b),_0x25c414=_0x3b7fd6['lastPlanReminderAt']||0x0,_0x1066c3=Date['now']();if(_0x40157b[_0x5cf1e1(0xca)](_0x40157b[_0x5cf1e1(0xe2)](_0x1066c3,_0x25c414),PLAN_REMINDER_INTERVAL_MS))return _0x3b7fd6[_0x5cf1e1(0xba)]=_0x1066c3,_0x40157b['UqtOK'](saveCache,_0xf6bce3),!![];return![];}export function shouldShowStopReminder(_0x460ac6){const _0x36835c=_0x39918b,_0x3fc918={'bOmes':function(_0x49f522){return _0x49f522();},'RfQXH':function(_0x21f4ff,_0x314a7b){return _0x21f4ff>=_0x314a7b;},'rWqWY':function(_0x8f7b59,_0x3a06a4){return _0x8f7b59-_0x3a06a4;},'kytBn':function(_0x39880c,_0x482f04){return _0x39880c(_0x482f04);}},_0x1000d6=_0x3fc918['bOmes'](loadCache),_0x5487c6=getOrCreateSession(_0x1000d6,_0x460ac6),_0x27ce44=_0x5487c6[_0x36835c(0xcd)]||0x0,_0x206efe=Date['now']();if(_0x3fc918[_0x36835c(0xdf)](_0x3fc918['rWqWY'](_0x206efe,_0x27ce44),STOP_REMINDER_INTERVAL_MS))return _0x5487c6['lastStopReminderAt']=_0x206efe,_0x3fc918['kytBn'](saveCache,_0x1000d6),!![];return![];}export function hasSessionBeenPrompted(_0x51eef0){const _0x2a6d08=_0x39918b,_0x4cc54d=loadCache();return _0x4cc54d[_0x2a6d08(0xbb)][_0x51eef0]?.['prompted']===!![];}export function markSessionPrompted(_0x4ce77e){const _0x1ea0fc={'lsesW':function(_0x4330b9){return _0x4330b9();}},_0x84351=_0x1ea0fc['lsesW'](loadCache),_0x1bcfa6=getOrCreateSession(_0x84351,_0x4ce77e);_0x1bcfa6['prompted']=!![],saveCache(_0x84351);}export function getCacheFile(){return CACHE_FILE;}
1
+ const _0x344520=_0x1a0b;(function(_0x2f7497,_0x49e1d2){const _0x383a43=_0x1a0b,_0x4bdcf9=_0x2f7497();while(!![]){try{const _0x1f91d3=-parseInt(_0x383a43(0x86))/0x1*(-parseInt(_0x383a43(0xb1))/0x2)+parseInt(_0x383a43(0x90))/0x3+-parseInt(_0x383a43(0xaa))/0x4*(-parseInt(_0x383a43(0xa1))/0x5)+-parseInt(_0x383a43(0x9d))/0x6*(parseInt(_0x383a43(0x98))/0x7)+parseInt(_0x383a43(0x8d))/0x8+parseInt(_0x383a43(0x88))/0x9+-parseInt(_0x383a43(0xa9))/0xa;if(_0x1f91d3===_0x49e1d2)break;else _0x4bdcf9['push'](_0x4bdcf9['shift']());}catch(_0x4b273c){_0x4bdcf9['push'](_0x4bdcf9['shift']());}}}(_0x14d0,0xcbf84));import*as _0x3bb0bb from'fs';import*as _0x1db951 from'path';import*as _0x4b9cfc from'os';import{execSync}from'child_process';const CACHE_FILE=_0x1db951['join'](_0x4b9cfc['homedir'](),'.claude',_0x344520(0x99));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x2bec7b=_0x344520,_0x4245f0={'XzSzA':'utf-8','XGRsa':function(_0x3253a6){return _0x3253a6();}};try{if(_0x3bb0bb[_0x2bec7b(0xa3)](CACHE_FILE)){const _0x334cbd=JSON['parse'](_0x3bb0bb['readFileSync'](CACHE_FILE,_0x4245f0[_0x2bec7b(0xb0)]));return{'version':0x3,'sessions':_0x334cbd[_0x2bec7b(0xb2)]||{},'branches':_0x334cbd[_0x2bec7b(0x9a)]||{},'lastEnabledSessionClearedAt':_0x334cbd[_0x2bec7b(0x8b)]};}}catch{}return _0x4245f0[_0x2bec7b(0x94)](createEmptyCache);}function saveCache(_0x50400f){const _0x3794a2=_0x344520;try{const _0x436656=_0x1db951[_0x3794a2(0xaf)](CACHE_FILE);!_0x3bb0bb[_0x3794a2(0xa3)](_0x436656)&&_0x3bb0bb[_0x3794a2(0xa2)](_0x436656,{'recursive':!![]}),_0x3bb0bb[_0x3794a2(0xa5)](CACHE_FILE,JSON['stringify'](_0x50400f,null,0x2));}catch{}}export function getCurrentBranch(){const _0xa9b713=_0x344520,_0x23989f={'cybPW':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','WITmg':_0xa9b713(0x96),'uZnNa':function(_0x38b4e3,_0x3e5548){return _0x38b4e3===_0x3e5548;}};try{const _0x16a72f=execSync(_0x23989f['cybPW'],{'encoding':_0xa9b713(0xac),'stdio':[_0x23989f[_0xa9b713(0x8a)],'pipe',_0x23989f['WITmg']]})[_0xa9b713(0xa7)]();if(!_0x16a72f||_0x23989f['uZnNa'](_0x16a72f,'HEAD'))return null;return _0x16a72f;}catch{return null;}}export function enableBranch(_0x5aaf2f){const _0x240b35=_0x344520,_0x3b0765=loadCache();_0x3b0765[_0x240b35(0x9a)][_0x5aaf2f]=!![],saveCache(_0x3b0765);}export function disableBranch(_0x47e938){const _0x16c33d=_0x344520,_0x3c7509={'uoUwd':function(_0xcc1e7e){return _0xcc1e7e();}},_0x549541=_0x3c7509[_0x16c33d(0x95)](loadCache);delete _0x549541[_0x16c33d(0x9a)][_0x47e938],saveCache(_0x549541);}export function isBranchEnabled(_0x544e40){const _0x40ddbb=_0x344520,_0x594dfa=loadCache();return _0x594dfa[_0x40ddbb(0x9a)][_0x544e40]===!![];}function getOrCreateSession(_0x6e4da9,_0x54fb7b){const _0x31a14a=_0x344520;return!_0x6e4da9['sessions'][_0x54fb7b]&&(_0x6e4da9[_0x31a14a(0xb2)][_0x54fb7b]={}),_0x6e4da9[_0x31a14a(0xb2)][_0x54fb7b];}export function enableSession(_0x46ed1b){const _0x32062b=_0x344520,_0x1f3f66={'RwqXv':'main','Gbsun':'master'},_0x5e94f4=loadCache(),_0x2e5ad9=getOrCreateSession(_0x5e94f4,_0x46ed1b);_0x2e5ad9[_0x32062b(0x8e)]=!![];const _0xa5803d=getCurrentBranch();_0xa5803d&&_0xa5803d!==_0x1f3f66[_0x32062b(0x8f)]&&_0xa5803d!==_0x1f3f66[_0x32062b(0xae)]&&(_0x5e94f4[_0x32062b(0x9a)][_0xa5803d]=!![],_0x2e5ad9[_0x32062b(0x9b)]=_0xa5803d),saveCache(_0x5e94f4);}export function isSessionEnabled(_0x615195){const _0x2b10b3=_0x344520,_0x4775fd={'DnkfB':function(_0x50ee7b){return _0x50ee7b();},'KVjag':function(_0x5251e5,_0x441129){return _0x5251e5===_0x441129;},'AnJwo':'master'},_0x39e324=_0x4775fd[_0x2b10b3(0x97)](loadCache),_0x56ed70=_0x4775fd['DnkfB'](getCurrentBranch);if(!_0x56ed70||_0x4775fd['KVjag'](_0x56ed70,'main')||_0x4775fd['KVjag'](_0x56ed70,_0x4775fd['AnJwo']))return _0x39e324['sessions'][_0x615195]?.[_0x2b10b3(0x8e)]===!![];const _0x272238=_0x4775fd[_0x2b10b3(0x91)](_0x39e324['branches'][_0x56ed70],!![]),_0x32e125=_0x39e324['sessions'][_0x615195]?.[_0x2b10b3(0x8e)]===!![];return _0x272238||_0x32e125;}export function disableSession(_0x4f86eb){const _0x12a7c1={'kuYvu':function(_0x8d0d50,_0x17bc15,_0x291c47){return _0x8d0d50(_0x17bc15,_0x291c47);},'scbCM':function(_0x3cc4c6,_0x313295){return _0x3cc4c6(_0x313295);}},_0x3ce4fa=loadCache(),_0x3241e9=_0x12a7c1['kuYvu'](getOrCreateSession,_0x3ce4fa,_0x4f86eb);_0x3241e9['enabled']=![],_0x12a7c1['scbCM'](saveCache,_0x3ce4fa);}export function updateBranchTracking(_0x3e9d86){const _0x50a5e6=_0x344520,_0x366421={'AJPLb':function(_0x319100){return _0x319100();},'cxGJZ':'main','eHguP':function(_0xbb9600,_0x1a5f7f){return _0xbb9600===_0x1a5f7f;},'LCjSl':function(_0x4f4e46,_0x445dee){return _0x4f4e46!==_0x445dee;}},_0x221efb=_0x366421['AJPLb'](loadCache),_0xb61758=_0x221efb[_0x50a5e6(0xb2)][_0x3e9d86];if(!_0xb61758?.[_0x50a5e6(0x8e)])return;const _0x28431f=getCurrentBranch();if(!_0x28431f||_0x28431f===_0x366421['cxGJZ']||_0x366421['eHguP'](_0x28431f,'master'))return;_0x366421[_0x50a5e6(0xa4)](_0xb61758['currentBranch'],_0x28431f)&&(_0x221efb['branches'][_0x28431f]=!![],_0xb61758[_0x50a5e6(0x9b)]=_0x28431f,saveCache(_0x221efb));}export function initBranchTracking(_0x136177){const _0x44eb99=_0x344520,_0x9cb12f={'NieyR':function(_0x44dc55){return _0x44dc55();},'BgAny':_0x44eb99(0xb3),'OdsdG':function(_0x751a55,_0x43c93){return _0x751a55===_0x43c93;},'sbdhE':function(_0x457ff8,_0x31f5e7,_0x2d0922){return _0x457ff8(_0x31f5e7,_0x2d0922);},'pUMou':function(_0x49d2ba,_0x72a8f9){return _0x49d2ba(_0x72a8f9);}},_0x357e33=loadCache(),_0x5ed45d=_0x9cb12f[_0x44eb99(0x89)](getCurrentBranch);if(!_0x5ed45d||_0x5ed45d===_0x9cb12f['BgAny']||_0x5ed45d==='master')return;if(_0x9cb12f['OdsdG'](_0x357e33['branches'][_0x5ed45d],!![])){const _0xbe020=_0x9cb12f['sbdhE'](getOrCreateSession,_0x357e33,_0x136177);_0xbe020[_0x44eb99(0x8e)]=!![],_0xbe020['currentBranch']=_0x5ed45d,_0x9cb12f['pUMou'](saveCache,_0x357e33);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x35a240){const _0x116f44=_0x344520,_0x310dce={'jdaVd':function(_0x290ba0){return _0x290ba0();}},_0x5d7315=_0x310dce['jdaVd'](loadCache),_0x3d59cc=_0x5d7315['sessions'][_0x35a240];_0x3d59cc?.[_0x116f44(0x8e)]&&(_0x5d7315[_0x116f44(0x8b)]=Date['now'](),saveCache(_0x5d7315));}export function shouldAutoEnableAfterClear(_0x22572a){const _0x21f2d6=_0x344520,_0x2e3e06={'yPfzV':function(_0x453bce,_0x1afd87){return _0x453bce-_0x1afd87;},'JYrtj':function(_0x163a59,_0x146409){return _0x163a59<=_0x146409;}};if(_0x22572a!==_0x21f2d6(0x87))return![];const _0xe4dca=loadCache(),_0x108015=_0xe4dca[_0x21f2d6(0x8b)];if(!_0x108015)return![];const _0x34926b=_0x2e3e06['yPfzV'](Date[_0x21f2d6(0xa0)](),_0x108015);return _0x2e3e06['JYrtj'](_0x34926b,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x58afea){const _0x4b34a1=_0x344520,_0x3da7c4={'pzdwd':function(_0x412f84){return _0x412f84();},'rwXiq':'main','qBUwz':function(_0x2de35f,_0x448c8d){return _0x2de35f!==_0x448c8d;}},_0x25ebb5=_0x3da7c4['pzdwd'](loadCache),_0x428032=getOrCreateSession(_0x25ebb5,_0x58afea);_0x428032['enabled']=!![];const _0x392104=getCurrentBranch();_0x392104&&_0x392104!==_0x3da7c4['rwXiq']&&_0x3da7c4[_0x4b34a1(0x9e)](_0x392104,_0x4b34a1(0xa6))&&(_0x428032[_0x4b34a1(0x9b)]=_0x392104),delete _0x25ebb5['lastEnabledSessionClearedAt'],saveCache(_0x25ebb5);}export function registerSession(_0x378935,_0x3e2f0f){const _0x4a1b7b=_0x344520,_0x2cddac={'lSaXe':function(_0x2027fe){return _0x2027fe();},'jiMgF':function(_0x89c95d,_0x3210e0){return _0x89c95d(_0x3210e0);}},_0x504afe=_0x2cddac['lSaXe'](loadCache),_0x54bdc3=getOrCreateSession(_0x504afe,_0x378935);_0x54bdc3[_0x4a1b7b(0x9c)]=_0x3e2f0f,_0x54bdc3['registeredAt']=new Date()['toISOString'](),_0x2cddac[_0x4a1b7b(0x8c)](saveCache,_0x504afe);}export function getSessionEntry(_0x3a0452){const _0x3ae8e3=_0x344520,_0x55f40c={'BhCmP':function(_0x22cfa2){return _0x22cfa2();}},_0x4e729f=_0x55f40c['BhCmP'](loadCache),_0x4df5f3=_0x4e729f['sessions'][_0x3a0452];if(_0x4df5f3?.[_0x3ae8e3(0x9c)]&&_0x4df5f3?.['registeredAt'])return{'featureId':_0x4df5f3[_0x3ae8e3(0x9c)],'registeredAt':_0x4df5f3[_0x3ae8e3(0xab)]};return null;}export function unregisterSession(_0x1fc9c5){const _0x53871f=_0x344520,_0x553a34=loadCache(),_0x3d6b08=_0x553a34[_0x53871f(0xb2)][_0x1fc9c5];_0x3d6b08&&(delete _0x3d6b08[_0x53871f(0x9c)],delete _0x3d6b08['registeredAt'],saveCache(_0x553a34));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;function _0x14d0(){const _0x5b29eb=['WITmg','lastEnabledSessionClearedAt','jiMgF','12011560eDgyaS','enabled','RwqXv','3787266MMONBB','KVjag','lastStopReminderAt','jykRr','XGRsa','uoUwd','pipe','DnkfB','11510989oDJnUw','.ranger_cache.json','branches','currentBranch','featureId','6jKjiNv','qBUwz','rqQHm','now','145PmpJjf','mkdirSync','existsSync','LCjSl','writeFileSync','master','trim','bYXzO','26055430YXQcdE','165644SlmhYO','registeredAt','utf-8','UrAUa','Gbsun','dirname','XzSzA','166tohARd','sessions','main','5497uWOMle','clear','5979537XOEZsb','NieyR'];_0x14d0=function(){return _0x5b29eb;};return _0x14d0();}export function shouldShowPlanReminder(_0x375b20){const _0x247cad=_0x344520,_0x130f33={'XPHYp':function(_0x1bb2af){return _0x1bb2af();},'oNOtK':function(_0x25a680,_0x26457,_0x21a17b){return _0x25a680(_0x26457,_0x21a17b);},'rqQHm':function(_0x14fdaa,_0x1d48c8){return _0x14fdaa-_0x1d48c8;}},_0x39a54d=_0x130f33['XPHYp'](loadCache),_0x219de2=_0x130f33['oNOtK'](getOrCreateSession,_0x39a54d,_0x375b20),_0x382ddc=_0x219de2['lastPlanReminderAt']||0x0,_0x41c732=Date['now']();if(_0x130f33[_0x247cad(0x9f)](_0x41c732,_0x382ddc)>=PLAN_REMINDER_INTERVAL_MS)return _0x219de2['lastPlanReminderAt']=_0x41c732,saveCache(_0x39a54d),!![];return![];}function _0x1a0b(_0x5b950b,_0x57ef9f){_0x5b950b=_0x5b950b-0x86;const _0x14d0fd=_0x14d0();let _0x1a0b43=_0x14d0fd[_0x5b950b];return _0x1a0b43;}export function shouldShowStopReminder(_0x429347){const _0x3e3d2b=_0x344520,_0x3fdc74={'bYXzO':function(_0x281d92,_0x325807,_0x280de7){return _0x281d92(_0x325807,_0x280de7);}},_0x76d848=loadCache(),_0x4bcb29=_0x3fdc74[_0x3e3d2b(0xa8)](getOrCreateSession,_0x76d848,_0x429347),_0x1007d8=_0x4bcb29['lastStopReminderAt']||0x0,_0x39ef96=Date['now']();if(_0x39ef96-_0x1007d8>=STOP_REMINDER_INTERVAL_MS)return _0x4bcb29[_0x3e3d2b(0x92)]=_0x39ef96,saveCache(_0x76d848),!![];return![];}export function hasSessionBeenPrompted(_0x3a7a9c){const _0x9b099c=_0x344520,_0x3e268c={'UrAUa':function(_0x3b7082){return _0x3b7082();},'xEIiv':function(_0x182fa4,_0x25394d){return _0x182fa4===_0x25394d;}},_0x2cb404=_0x3e268c[_0x9b099c(0xad)](loadCache);return _0x3e268c['xEIiv'](_0x2cb404['sessions'][_0x3a7a9c]?.['prompted'],!![]);}export function markSessionPrompted(_0x5e9178){const _0x463caf=_0x344520,_0xe2c321={'jykRr':function(_0xdd481c,_0x5f0b7b){return _0xdd481c(_0x5f0b7b);}},_0x5490bb=loadCache(),_0x281eff=getOrCreateSession(_0x5490bb,_0x5e9178);_0x281eff['prompted']=!![],_0xe2c321[_0x463caf(0x93)](saveCache,_0x5490bb);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x497371=_0x3a60;(function(_0x553558,_0x14ac0d){const _0x4f6b26=_0x3a60,_0x3beb4b=_0x553558();while(!![]){try{const _0x3e3c18=parseInt(_0x4f6b26(0x15a))/0x1+-parseInt(_0x4f6b26(0x190))/0x2+parseInt(_0x4f6b26(0x19f))/0x3*(-parseInt(_0x4f6b26(0x156))/0x4)+parseInt(_0x4f6b26(0x166))/0x5*(parseInt(_0x4f6b26(0x151))/0x6)+-parseInt(_0x4f6b26(0x15b))/0x7+parseInt(_0x4f6b26(0x136))/0x8+parseInt(_0x4f6b26(0x189))/0x9;if(_0x3e3c18===_0x14ac0d)break;else _0x3beb4b['push'](_0x3beb4b['shift']());}catch(_0x1b9883){_0x3beb4b['push'](_0x3beb4b['shift']());}}}(_0x54e0,0x62f46));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';function _0x54e0(){const _0x558a1b=['jiSYg','pqYPc','HCDGm','ndQNB','doEvn','Environment\x20variable\x20','core','ZoZeg','GeUbu','KJSQb','857916gNnOGd','forWrite','ENOENT','YOjDd','PKQaX','DGbOn','stringify','590950gnVoTn','Failed\x20to\x20decrypt\x20auth\x20state:\x20','dvuwQ','playwright-cli','--allow-insecure-localhost','CMIPx','length','\x22\x20to\x20legacy\x20path\x20','ftDSY','file','local','--disable-setuid-sandbox','bfaDL','vAHKn','zHYub','12wzhzro','Sjvqd','location','oksuz','HzDWr','baseUrl','kpFVm','KGwxz','userAgent','Refusing\x20to\x20write\x20profile\x20\x22','OFkNT','isArray','pCjdH','split','string','pdf','browser','extraHTTPHeaders','bSikD','TrKRp','entries','executablePath','path','install','includes','none','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','bumdg','psqGS','5873312YxpmWJ','object','ZUgDy','jRddQ','cdpEndpoint','.json','clipboard-read','AKqcm','env','args','boolean','GXfXx','VCvLn','nova-user-data','storageState','KnrUz','stagehand','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','BtUvc','FIGxr','filter','contextOptions','auth.json.enc','xcUon','warn','settings.json','tabs','552XoQxnx','map','kujQO','catch','all','559940fIzEfg','keys','sessions','now','269493wSCcxQ','2904972CukltM','headers','Default','allowInsecureLocalhost','bswcw','getuid','parse','--disable-features=WebBluetooth','--unsafely-treat-insecure-origin-as-secure=http://localhost','utf-8','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','31345LWCrNJ','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','storageStatePath','indexOf','--disable-web-security','XmAKW','legacy','header','JjJxD','Vvqvu','vAmLB','QlESa','-cli','headless','startsWith','join','IOvrB','fTqRb','PnCZJ','iFsEx','locations','aDTLn','anEGi','usoRr','eetYE'];_0x54e0=function(){return _0x558a1b;};return _0x54e0();}import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x23dfcf,_0x6f4f5b){const _0x3f30f2=_0x3a60,_0xb0b4e3={'IOvrB':function(_0x24e232,_0x438776,_0x32fb3f,_0x4d8937){return _0x24e232(_0x438776,_0x32fb3f,_0x4d8937);},'pDaEb':'local','PSpwP':function(_0x4d6d80,_0x30ed80,_0x1bcc7e){return _0x4d6d80(_0x30ed80,_0x1bcc7e);},'GXfXx':function(_0x32e331,_0x3d05ac){return _0x32e331(_0x3d05ac);}},_0x69575a=_0xb0b4e3[_0x3f30f2(0x176)](join,_0x6f4f5b,'ci',_0x23dfcf),_0x39d393=join(_0x6f4f5b,_0xb0b4e3['pDaEb'],_0x23dfcf),_0x442462=join(_0x6f4f5b,_0x23dfcf),_0x480161=join(_0x6f4f5b,_0x3f30f2(0x19a)),_0x3e6264=_0xb0b4e3['PSpwP'](join,_0x6f4f5b,'ci');if(existsSync(_0x69575a))return _0x69575a;if(existsSync(_0x39d393))return _0x39d393;if(_0xb0b4e3['GXfXx'](existsSync,_0x442462)&&(_0x442462!==_0x480161&&_0x442462!==_0x3e6264?!![]:_0xb0b4e3[_0x3f30f2(0x141)](hasLegacyProfileFiles,_0x442462)))return _0x442462;return null;}export function getEnvDir(_0x5b9158,_0x28f293={}){const _0x2f9594=_0x3a60,_0x4f1934={'dsttA':function(_0x57ea94){return _0x57ea94();},'uAEni':function(_0x14c816,_0xd611df,_0x5318ce){return _0x14c816(_0xd611df,_0x5318ce);},'kujQO':function(_0x441690,_0x5694a5){return _0x441690(_0x5694a5);},'YOjDd':function(_0xa40636){return _0xa40636();},'bSikD':function(_0x194bd2,_0x33fe59){return _0x194bd2!==_0x33fe59;},'zHYub':function(_0x2e0de2,_0x2a6224,_0x4cb465){return _0x2e0de2(_0x2a6224,_0x4cb465);},'JjJxD':function(_0x136dda,_0x3b3e99,_0x3be8a1,_0x2b6830){return _0x136dda(_0x3b3e99,_0x3be8a1,_0x2b6830);},'SjpBr':'local','CMIPx':function(_0x22139f,_0x366f11,_0x3d1b9d){return _0x22139f(_0x366f11,_0x3d1b9d);}},_0x232fab=_0x4f1934['dsttA'](getRangerDir),_0x2f74f2=_0x4f1934['uAEni'](findEnvInRoot,_0x5b9158,_0x232fab);if(_0x2f74f2){if(_0x28f293[_0x2f9594(0x18a)]&&_0x4f1934[_0x2f9594(0x153)](isLegacyEnvPath,_0x2f74f2))throw legacyWriteError(_0x5b9158,_0x2f74f2);return _0x2f74f2;}const _0x1bfb61=_0x4f1934[_0x2f9594(0x18c)](getRangerHomeDir);if(_0x4f1934[_0x2f9594(0x12b)](_0x1bfb61,_0x232fab)){const _0x1b4f7d=_0x4f1934[_0x2f9594(0x19e)](findEnvInRoot,_0x5b9158,_0x1bfb61);if(_0x1b4f7d){if(_0x28f293['forWrite']&&_0x4f1934['kujQO'](isLegacyEnvPath,_0x1b4f7d))throw legacyWriteError(_0x5b9158,_0x1b4f7d);return _0x1b4f7d;}}const _0x53544c=_0x4f1934[_0x2f9594(0x16e)](join,_0x1bfb61,_0x4f1934['SjpBr'],_0x5b9158);if(_0x28f293['forWrite'])throw _0x4f1934[_0x2f9594(0x195)](legacyWriteError,_0x5b9158,_0x53544c);return _0x53544c;}function isLegacyEnvPath(_0x1294b0){const _0x3350ff=_0x3a60,_0x249dd4=getRangerDir(),_0x345e02=getRangerHomeDir();for(const _0x11052e of new Set([_0x249dd4,_0x345e02])){const _0x29453b=_0x11052e['endsWith']('/')?_0x11052e:_0x11052e+'/';if(_0x1294b0===_0x11052e||_0x1294b0[_0x3350ff(0x174)](_0x29453b))return!![];}return![];}function _0x3a60(_0x455da0,_0x43a7ea){_0x455da0=_0x455da0-0x11a;const _0x54e00e=_0x54e0();let _0x3a608e=_0x54e00e[_0x455da0];return _0x3a608e;}function legacyWriteError(_0x49dcbc,_0x1d9f5b){const _0x4fc0bb=_0x3a60,_0xd939a2={'fklgL':function(_0x2360a7,_0x443e6b){return _0x2360a7+_0x443e6b;}};return new Error(_0xd939a2['fklgL'](_0x4fc0bb(0x122)+_0x49dcbc+_0x4fc0bb(0x197)+_0x1d9f5b+'.\x0a'+_0x4fc0bb(0x147),'\x20\x20ranger\x20profile\x20add\x20<name>\x0a')+_0x4fc0bb(0x133));}export function findExistingEnv(_0x3fced6,_0x43c20e){const _0x4fd91a=_0x3a60,_0x309e24={'zhhba':function(_0x3e5220){return _0x3e5220();},'Vvqvu':function(_0x54dd1d,_0x5ade97,_0xc3eb6d){return _0x54dd1d(_0x5ade97,_0xc3eb6d);},'WVeAV':function(_0x5d1308,_0x463583){return _0x5d1308(_0x463583);},'gSUPW':function(_0x4ccb3c,_0x2eb9d3){return _0x4ccb3c===_0x2eb9d3;},'xcUon':_0x4fd91a(0x16c),'ebveg':function(_0x1ee96a,_0x2f093c){return _0x1ee96a===_0x2f093c;}},_0x1ca367=_0x43c20e?.['rangerDir'],_0x5a0ed5=_0x1ca367?[_0x1ca367]:[getRangerDir(),_0x309e24['zhhba'](getRangerHomeDir)]['filter']((_0x588d5d,_0x9f9ce0,_0x937831)=>_0x937831[_0x4fd91a(0x169)](_0x588d5d)===_0x9f9ce0),_0x5ef767=_0x43c20e?.[_0x4fd91a(0x17a)]??['ci','local','legacy'];for(const _0x3c3203 of _0x5a0ed5){const _0x2359f1=join(_0x3c3203,_0x4fd91a(0x19a)),_0x3c31bb=_0x309e24[_0x4fd91a(0x16f)](join,_0x3c3203,'ci'),_0x40efa6=[{'location':'ci','path':join(_0x3c3203,'ci',_0x3fced6)},{'location':'local','path':join(_0x3c3203,'local',_0x3fced6)},{'location':_0x4fd91a(0x16c),'path':join(_0x3c3203,_0x3fced6)}];for(const _0x36cbdd of _0x40efa6){if(_0x5ef767['includes'](_0x36cbdd['location'])&&_0x309e24['WVeAV'](existsSync,_0x36cbdd['path'])){if(_0x309e24['gSUPW'](_0x36cbdd[_0x4fd91a(0x11b)],_0x309e24[_0x4fd91a(0x14d)])&&(_0x36cbdd[_0x4fd91a(0x12f)]===_0x2359f1||_0x309e24['ebveg'](_0x36cbdd['path'],_0x3c31bb))&&!hasLegacyProfileFiles(_0x36cbdd[_0x4fd91a(0x12f)]))continue;return{'path':_0x36cbdd[_0x4fd91a(0x12f)],'location':_0x36cbdd['location']};}}}return null;}function hasLegacyProfileFiles(_0x4d629c){const _0x334c6f=_0x3a60,_0x502263={'kpFVm':_0x334c6f(0x14f),'KJSQb':_0x334c6f(0x14c)};return existsSync(join(_0x4d629c,_0x502263[_0x334c6f(0x11f)]))||existsSync(join(_0x4d629c,'auth.json'))||existsSync(join(_0x4d629c,_0x502263[_0x334c6f(0x188)]));}export function isEnvCi(_0x38ffad){const _0x98feb7=_0x3a60,_0x4ffb25={'JLmEy':function(_0x361829,_0x3e0c3a){return _0x361829(_0x3e0c3a);},'hvLBP':function(_0x1cafee,_0x2a020f,_0x5cc5b9,_0x22c67b){return _0x1cafee(_0x2a020f,_0x5cc5b9,_0x22c67b);},'ftDSY':function(_0x3097d4,_0x41c9ad){return _0x3097d4!==_0x41c9ad;},'TcEiY':function(_0x761103){return _0x761103();},'eetYE':function(_0x3fa40e,_0x765b73,_0x121d79,_0x2e9a96){return _0x3fa40e(_0x765b73,_0x121d79,_0x2e9a96);}};if(_0x4ffb25['JLmEy'](existsSync,_0x4ffb25['hvLBP'](join,getRangerDir(),'ci',_0x38ffad)))return!![];const _0x1091c7=getRangerHomeDir();if(_0x4ffb25[_0x98feb7(0x198)](_0x1091c7,_0x4ffb25['TcEiY'](getRangerDir))&&existsSync(_0x4ffb25[_0x98feb7(0x17e)](join,_0x1091c7,'ci',_0x38ffad)))return!![];return![];}export async function cleanupTempFiles(_0x3957e6){const _0x592ae9=_0x3a60,_0x257d2=[_0x3957e6['tempAuthPath'],_0x3957e6['configPath']][_0x592ae9(0x14a)](Boolean);await Promise[_0x592ae9(0x155)](_0x257d2[_0x592ae9(0x152)](_0x464501=>unlink(_0x464501)['catch'](_0x52fe46=>{const _0xcd0c6=_0x592ae9;_0x52fe46['code']!==_0xcd0c6(0x18b)&&console[_0xcd0c6(0x14e)](_0xcd0c6(0x167)+_0x464501+':',_0x52fe46['message']);})));}export function getSettingsPath(_0x367d5f){const _0x134eb3=_0x3a60,_0x3786a0={'yhanR':function(_0x30b46e,_0x536200,_0x497d3f){return _0x30b46e(_0x536200,_0x497d3f);},'BHzpr':function(_0xbceda5,_0x2606d7){return _0xbceda5(_0x2606d7);}};return _0x3786a0['yhanR'](join,_0x3786a0['BHzpr'](getEnvDir,_0x367d5f),_0x134eb3(0x14f));}export async function loadSettings(_0x30cb61){const _0x526bad=_0x3a60,_0x24b9c9={'msOnc':function(_0x3c783e,_0x4854de){return _0x3c783e(_0x4854de);},'jRddQ':function(_0x24142d,_0x47f879,_0x11beef){return _0x24142d(_0x47f879,_0x11beef);},'rJemF':_0x526bad(0x164)},_0x38728d=_0x24b9c9['msOnc'](getSettingsPath,_0x30cb61);if(!_0x24b9c9['msOnc'](existsSync,_0x38728d))return{};try{const _0x23943f=await _0x24b9c9[_0x526bad(0x139)](readFile,_0x38728d,_0x24b9c9['rJemF']);return JSON[_0x526bad(0x161)](_0x23943f);}catch{return{};}}export async function saveSettings(_0x30878f,_0x144470){const _0xd538fa=_0x3a60,_0x1eaddf={'vAHKn':function(_0x2f22a2,_0x2cce2b){return _0x2f22a2(_0x2cce2b);},'ndQNB':function(_0x49b9ca,_0x17a815,_0x218659){return _0x49b9ca(_0x17a815,_0x218659);}},_0x389e59=_0x1eaddf['vAHKn'](getSettingsPath,_0x30878f),_0x500621=_0x1eaddf[_0xd538fa(0x19d)](dirname,_0x389e59);!_0x1eaddf[_0xd538fa(0x19d)](existsSync,_0x500621)&&await mkdir(_0x500621,{'recursive':!![]}),await _0x1eaddf[_0xd538fa(0x182)](writeFile,_0x389e59,JSON['stringify'](_0x144470,null,0x2));}export function resolveEnvVars(_0x449fb7){const _0x2efdfd=_0x3a60,_0x23e86f={'oksuz':_0x2efdfd(0x127)};if(typeof _0x449fb7===_0x23e86f[_0x2efdfd(0x11c)])return _0x449fb7['replace'](/\$\{(\w+)\}/g,(_0x4130cb,_0x1b5bf0)=>{const _0x416643=_0x2efdfd,_0x626ce1=process[_0x416643(0x13e)][_0x1b5bf0];if(_0x626ce1===undefined)throw new Error(_0x416643(0x184)+_0x1b5bf0+'\x20is\x20not\x20set');return _0x626ce1;});if(Array['isArray'](_0x449fb7))return _0x449fb7['map'](resolveEnvVars);if(_0x449fb7&&typeof _0x449fb7===_0x2efdfd(0x137))return Object['fromEntries'](Object['entries'](_0x449fb7)[_0x2efdfd(0x152)](([_0x339db5,_0x4ba3a4])=>[_0x339db5,resolveEnvVars(_0x4ba3a4)]));return _0x449fb7;}const isRecord=_0xaf371b=>typeof _0xaf371b===_0x497371(0x137)&&_0xaf371b!==null&&!Array[_0x497371(0x124)](_0xaf371b),asRecord=_0x54acc0=>isRecord(_0x54acc0)?_0x54acc0:undefined,mergeHeaders=(_0x514b8d,_0x11fd07)=>{const _0x45792e=_0x497371,_0x469330={'CbtAx':function(_0xce25fe,_0x22668a){return _0xce25fe??_0x22668a;}},_0xd3a670={..._0x469330['CbtAx'](_0x514b8d,{}),..._0x11fd07??{}};return Object[_0x45792e(0x157)](_0xd3a670)[_0x45792e(0x196)]?_0xd3a670:undefined;},SAFE_MODE_ARGS=[_0x497371(0x162)],ALLOW_LOCALHOST_ARGS=[_0x497371(0x16a),'--allow-running-insecure-content',_0x497371(0x163),_0x497371(0x194)];export function buildBrowserOptionsFromSettings(_0x46361e,_0x4a574c={}){const _0xd9ca86=_0x497371,_0x31befb={'ZSWVd':function(_0x26e817,_0x3cd017){return _0x26e817(_0x3cd017);},'bswcw':function(_0x1dd50b,_0x51c287){return _0x1dd50b===_0x51c287;},'bfaDL':_0xd9ca86(0x127),'OQcqq':function(_0x4db2dc,_0x47938d,_0x55a9ca){return _0x4db2dc(_0x47938d,_0x55a9ca);},'WRNVZ':function(_0x2a9013,_0x23323b){return _0x2a9013(_0x23323b);}},_0x13a9d1=_0x31befb['ZSWVd'](asRecord,_0x46361e['browser']),_0x5b3e48={...asRecord(_0x13a9d1?.['launchOptions'])??{}};typeof _0x4a574c['headless']===_0xd9ca86(0x140)&&(_0x5b3e48['headless']=_0x4a574c[_0xd9ca86(0x173)]);if(_0x46361e['safeMode']){const _0x5f1063=_0x5b3e48['args']??[],_0x4a8bfc=SAFE_MODE_ARGS['filter'](_0x5aed4a=>!_0x5f1063[_0xd9ca86(0x131)](_0x5aed4a));_0x5b3e48[_0xd9ca86(0x13f)]=[..._0x5f1063,..._0x4a8bfc];}if(_0x46361e[_0xd9ca86(0x15e)]){const _0x10ff9e=_0x5b3e48[_0xd9ca86(0x13f)]??[],_0x4b9208=ALLOW_LOCALHOST_ARGS[_0xd9ca86(0x14a)](_0x6fbd1e=>!_0x10ff9e['includes'](_0x6fbd1e));_0x5b3e48[_0xd9ca86(0x13f)]=[..._0x10ff9e,..._0x4b9208];}const _0x330259={...asRecord(_0x13a9d1?.[_0xd9ca86(0x14b)])??{}};_0x330259['ignoreHTTPSErrors']=!![];_0x31befb[_0xd9ca86(0x15f)](typeof _0x46361e['userAgent'],_0x31befb[_0xd9ca86(0x19c)])&&(_0x330259[_0xd9ca86(0x121)]=_0x46361e['userAgent']);const _0x568b9e=_0x31befb['OQcqq'](mergeHeaders,_0x31befb['ZSWVd'](asRecord,_0x330259[_0xd9ca86(0x12a)]),_0x31befb['WRNVZ'](asRecord,_0x46361e[_0xd9ca86(0x15c)]));return _0x568b9e?_0x330259[_0xd9ca86(0x12a)]=_0x568b9e:delete _0x330259[_0xd9ca86(0x12a)],_0x4a574c[_0xd9ca86(0x168)]&&(_0x330259[_0xd9ca86(0x144)]=_0x4a574c['storageStatePath']),{'launchOptions':_0x5b3e48,'contextOptions':_0x330259};}export async function resolveProfileStorageState(_0x41e56c){return resolveLocalAuthPath(getEnvDir(_0x41e56c));}async function resolveLocalAuthPath(_0x7e4612){const _0x192d7a=_0x497371,_0x46505={'pCjdH':function(_0x2969da,_0x1c0f65,_0xad660a){return _0x2969da(_0x1c0f65,_0xad660a);},'XHbmm':_0x192d7a(0x14c),'iFsEx':function(_0x46d7f6,_0xebf8b){return _0x46d7f6(_0xebf8b);},'pqYPc':function(_0x31acda){return _0x31acda();},'qDKtQ':function(_0x111520,_0x5890e4){return _0x111520 instanceof _0x5890e4;}},_0x386bda=_0x46505[_0x192d7a(0x125)](join,_0x7e4612,_0x46505['XHbmm']),_0x14fece=join(_0x7e4612,'auth.json');if(existsSync(_0x386bda))try{const _0x334354=await getToken();if(!_0x334354)throw new Error(_0x192d7a(0x165));const _0x32f63a=await _0x46505['iFsEx'](readFile,_0x386bda),_0x4299dc=decrypt(_0x32f63a,_0x334354),_0x11dfff=join(_0x46505[_0x192d7a(0x180)](tmpdir),'ranger-auth-'+Date[_0x192d7a(0x159)]()+_0x192d7a(0x13b));return await writeFile(_0x11dfff,_0x4299dc),{'storageStatePath':_0x11dfff,'tempAuthPath':_0x11dfff};}catch(_0x581de1){const _0x5e9553=_0x46505['qDKtQ'](_0x581de1,Error)?_0x581de1['message']:_0x46505[_0x192d7a(0x179)](String,_0x581de1);throw new Error(_0x192d7a(0x191)+_0x5e9553);}if(_0x46505['iFsEx'](existsSync,_0x14fece))return{'storageStatePath':_0x14fece};return{};}export async function buildPlaywrightConfig(_0x788507,_0x22fafd,_0x238e1f,_0x597796,_0x59ac70){const _0x3c5139=_0x497371,_0xd58118={'QlESa':function(_0x25c839,_0x3ae38e,_0x37227d,_0x92f3d7,_0x2ccf0c,_0x389352,_0x2b677){return _0x25c839(_0x3ae38e,_0x37227d,_0x92f3d7,_0x2ccf0c,_0x389352,_0x2b677);},'JIgBP':function(_0x2f7635,_0x2f24b3){return _0x2f7635(_0x2f24b3);},'FIGxr':function(_0x3541e1,_0xc8772d,_0x2e2526,_0x42ade1,_0x2f04d0,_0x546178,_0x16bcb5){return _0x3541e1(_0xc8772d,_0x2e2526,_0x42ade1,_0x2f04d0,_0x546178,_0x16bcb5);},'Ezrom':'stagehand','anEGi':function(_0x97f15c,_0x54949f){return _0x97f15c(_0x54949f);}};if(_0x59ac70)return _0xd58118[_0x3c5139(0x171)](buildPlaywrightConfigCore,_0x788507,_0x59ac70,_0x22fafd,_0x238e1f,_0x597796,_0x3c5139(0x146));const {storageStatePath:_0x155ab2,tempAuthPath:_0x190469}=await resolveLocalAuthPath(_0xd58118['JIgBP'](getEnvDir,_0x22fafd));try{const _0x59e788=await _0xd58118[_0x3c5139(0x149)](buildPlaywrightConfigCore,_0x788507,_0x155ab2,_0x22fafd,_0x238e1f,_0x597796,_0xd58118['Ezrom']);return{..._0x59e788,'tempAuthPath':_0x190469};}catch(_0x5c788c){_0x190469&&await _0xd58118[_0x3c5139(0x17c)](unlink,_0x190469)[_0x3c5139(0x154)](()=>{});throw _0x5c788c;}}export async function buildPlaywrightConfigCore(_0x12cf83,_0x5884b3,_0x30fbcf,_0x5f3d6e,_0x2bc4d2,_0x300b84=_0x497371(0x146)){const _0xa73f78=_0x497371,_0x5f15fa={'qjBbt':function(_0x5387ad,_0xf7d193,_0x1decfe){return _0x5387ad(_0xf7d193,_0x1decfe);},'PnCZJ':function(_0x173d6e,_0x2c375c){return _0x173d6e===_0x2c375c;},'SianN':'--no-sandbox','zWXKj':_0xa73f78(0x13c),'QMUyd':function(_0x13a2d1,_0x4afd2d){return _0x13a2d1(_0x4afd2d);},'zewmu':_0xa73f78(0x199),'cTXlZ':'vision','doEvn':'allow','DUImh':function(_0x1a3f9a,_0x3689b8){return _0x1a3f9a===_0x3689b8;},'eZhoK':function(_0x4768d8,_0x59c392){return _0x4768d8===_0x59c392;},'YyolC':'ranger-config','aPKhf':function(_0x4aea9f,_0x36b253,_0x483021){return _0x4aea9f(_0x36b253,_0x483021);},'AKqcm':_0xa73f78(0x193),'fTqRb':function(_0x1748a6,_0x4242a4,_0x135c37){return _0x1748a6(_0x4242a4,_0x135c37);},'oVPHJ':function(_0x26a72e,_0x18edbf,_0x31cb3c){return _0x26a72e(_0x18edbf,_0x31cb3c);}},_0x2ec9d8=_0x5f3d6e||randomUUID(),_0x134420=join(getRangerDir(),_0xa73f78(0x158),_0x2ec9d8),_0x55cd86=_0x5f15fa['QMUyd'](Boolean,_0x12cf83[_0xa73f78(0x13a)]),_0x35b003=_0x55cd86?{'browserName':'chromium','cdpEndpoint':_0x12cf83['cdpEndpoint']}:((()=>{const _0x287a2e=_0xa73f78,{launchOptions:_0x20702a,contextOptions:_0x19a1fe}=_0x5f15fa['qjBbt'](buildBrowserOptionsFromSettings,_0x12cf83,{'headless':_0x2bc4d2?![]:_0x12cf83['headless']??!![],'storageStatePath':_0x5884b3});if(_0x5f15fa[_0x287a2e(0x178)](process['getuid']?.(),0x0)){const _0x2283ee=[_0x5f15fa['SianN'],_0x287a2e(0x19b)],_0x4cadc2=_0x20702a['args']??[],_0x5ad9cb=_0x2283ee['filter'](_0x5cb2af=>!_0x4cadc2['includes'](_0x5cb2af));_0x20702a[_0x287a2e(0x13f)]=[..._0x4cadc2,..._0x5ad9cb];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x20702a,'contextOptions':{..._0x19a1fe,'permissions':[_0x5f15fa['zWXKj'],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x34bea8=_0x300b84==='playwright-cli'?{'browser':_0x35b003,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x134420,'outputMode':_0x5f15fa['zewmu'],'codegen':_0xa73f78(0x132)}:{'name':_0x30fbcf,'browser':_0x35b003,'capabilities':[_0xa73f78(0x185),_0xa73f78(0x150),_0xa73f78(0x130),_0xa73f78(0x128),_0x5f15fa['cTXlZ']],'imageResponses':_0x5f15fa[_0xa73f78(0x183)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x134420};if(!_0x55cd86){const _0x5d785e=_0x34bea8[_0xa73f78(0x129)],_0x523991=_0x5d785e['contextOptions'];if(_0x5f15fa['DUImh'](_0x523991[_0xa73f78(0x121)],undefined))delete _0x523991['userAgent'];if(_0x5f15fa['eZhoK'](_0x523991[_0xa73f78(0x144)],undefined))delete _0x523991[_0xa73f78(0x144)];}const _0x162ec7=join(tmpdir(),_0x5f15fa['YyolC']);!existsSync(_0x162ec7)&&await _0x5f15fa['aPKhf'](mkdir,_0x162ec7,{'recursive':!![]});const _0x329775=_0x300b84===_0x5f15fa[_0xa73f78(0x13d)]?_0xa73f78(0x172):'',_0xfe0f43=_0x5f15fa[_0xa73f78(0x177)](join,_0x162ec7,_0x30fbcf+'-'+Date[_0xa73f78(0x159)]()+_0x329775+'.json');return await _0x5f15fa['oVPHJ'](writeFile,_0xfe0f43,JSON[_0xa73f78(0x18f)](_0x34bea8,null,0x2)),{'configPath':_0xfe0f43,'storageStatePath':_0x5884b3};}export async function buildPlaywrightCliConfig(_0x12043c,_0x13ad6c,_0x3bf0ca,_0x259f16,_0x57737f){const _0x172265=_0x497371,_0x5cb26e={'ZEqZL':function(_0x1b4762,_0x54969c,_0x29ddb5,_0x4ff5b3,_0x1a24ce,_0x2be852,_0x490487){return _0x1b4762(_0x54969c,_0x29ddb5,_0x4ff5b3,_0x1a24ce,_0x2be852,_0x490487);},'HCDGm':function(_0x352aac,_0x38b40c){return _0x352aac(_0x38b40c);},'TQojH':function(_0x5ba33a,_0x1ce5f6){return _0x5ba33a(_0x1ce5f6);},'xNhrR':_0x172265(0x193)};if(_0x57737f)return _0x5cb26e['ZEqZL'](buildPlaywrightConfigCore,_0x12043c,_0x57737f,_0x13ad6c,_0x3bf0ca,_0x259f16,'playwright-cli');const {storageStatePath:_0x4de365,tempAuthPath:_0x12a288}=await _0x5cb26e[_0x172265(0x181)](resolveLocalAuthPath,_0x5cb26e['TQojH'](getEnvDir,_0x13ad6c));try{const _0x1c770d=await buildPlaywrightConfigCore(_0x12043c,_0x4de365,_0x13ad6c,_0x3bf0ca,_0x259f16,_0x5cb26e['xNhrR']);return{..._0x1c770d,'tempAuthPath':_0x12a288};}catch(_0x54b169){_0x12a288&&await unlink(_0x12a288)[_0x172265(0x154)](()=>{});throw _0x54b169;}}export async function buildRangerwrightCliConfig(_0x2d1d0d,_0x476627,_0xd27e89,_0xdac380,_0x115b7b){const _0x541004=_0x497371,_0x47c5a1={'Sjvqd':function(_0x32f66f,_0x14402c,_0x52111a){return _0x32f66f(_0x14402c,_0x52111a);},'pUeIs':function(_0x49e0c6,_0x5e8cff){return _0x49e0c6===_0x5e8cff;},'itwIP':'--no-sandbox','usoRr':'chromium','nwMne':'clipboard-write','ZoZeg':function(_0x4c3eac,_0x1941f3){return _0x4c3eac(_0x1941f3);},'TrKRp':function(_0x56aabb,_0x3393e8){return _0x56aabb===_0x3393e8;},'IBCZp':function(_0x35e578,_0x115fe9){return _0x35e578===_0x115fe9;},'OFkNT':'ranger-config','vAmLB':function(_0x4f76a2,_0x5e5a55,_0x366c45){return _0x4f76a2(_0x5e5a55,_0x366c45);},'eYMIz':function(_0xe10782,_0x42827f){return _0xe10782(_0x42827f);}},{storageStatePath:_0x214cb6,tempAuthPath:_0x32b188}=_0x115b7b?{'storageStatePath':_0x115b7b,'tempAuthPath':undefined}:await resolveLocalAuthPath(getEnvDir(_0x476627)),_0x44d557=_0xd27e89||randomUUID(),_0x3a52cf=join(getRangerDir(),_0x541004(0x158),_0x44d557),_0x478e08=_0x47c5a1[_0x541004(0x186)](Boolean,_0x2d1d0d[_0x541004(0x13a)]),_0x514cc7=_0x478e08?{'browserName':_0x47c5a1[_0x541004(0x17d)],'cdpEndpoint':_0x2d1d0d[_0x541004(0x13a)]}:((()=>{const _0x1fd98c=_0x541004,{launchOptions:_0x518c87,contextOptions:_0x2004f4}=_0x47c5a1[_0x1fd98c(0x11a)](buildBrowserOptionsFromSettings,_0x2d1d0d,{'headless':_0xdac380?![]:_0x2d1d0d[_0x1fd98c(0x173)]??!![],'storageStatePath':_0x214cb6});if(_0x47c5a1['pUeIs'](process[_0x1fd98c(0x160)]?.(),0x0)){const _0x3fb8e5=[_0x47c5a1['itwIP'],_0x1fd98c(0x19b)],_0x29c9ed=_0x518c87[_0x1fd98c(0x13f)]??[],_0x268b49=_0x3fb8e5['filter'](_0x599a9a=>!_0x29c9ed[_0x1fd98c(0x131)](_0x599a9a));_0x518c87['args']=[..._0x29c9ed,..._0x268b49];}return{'browserName':_0x47c5a1[_0x1fd98c(0x17d)],'launchOptions':_0x518c87,'contextOptions':{..._0x2004f4,'permissions':['clipboard-read',_0x47c5a1['nwMne']],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x478e08){const _0x342672=_0x514cc7['contextOptions'];if(_0x342672){if(_0x47c5a1[_0x541004(0x12c)](_0x342672[_0x541004(0x121)],undefined))delete _0x342672[_0x541004(0x121)];if(_0x47c5a1['IBCZp'](_0x342672[_0x541004(0x144)],undefined))delete _0x342672['storageState'];}}const _0x1ac050={'browser':_0x514cc7,'outputDir':_0x3a52cf,'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'settle':{'navigationLoadTimeoutMs':0x7530,'networkSettleTimeoutMs':0x1388,'networkIdleWindowMs':0x1f4,'postActionAnimationFrameCount':0x2}};let _0x5df3be;try{const _0x22e184=_0x47c5a1['Sjvqd'](join,tmpdir(),_0x47c5a1[_0x541004(0x123)]);!_0x47c5a1['ZoZeg'](existsSync,_0x22e184)&&await mkdir(_0x22e184,{'recursive':!![]}),_0x5df3be=join(_0x22e184,_0x476627+'-'+Date['now']()+'-rangerwright.json'),await _0x47c5a1[_0x541004(0x170)](writeFile,_0x5df3be,JSON[_0x541004(0x18f)](_0x1ac050,null,0x2));}catch(_0x1f98fa){_0x32b188&&await _0x47c5a1['eYMIz'](unlink,_0x32b188)[_0x541004(0x154)](()=>{});throw _0x1f98fa;}return{'configPath':_0x5df3be,'storageStatePath':_0x214cb6,'tempAuthPath':_0x32b188,'outputDir':_0x3a52cf};}export async function buildNovaActCliConfig(_0x41f587,_0x25deee,_0x41d995,_0x39eb62,_0x572ffb){const _0x3769bd=_0x497371,_0x4e2bba={'jiSYg':function(_0x10b24c,_0x3f3820){return _0x10b24c(_0x3f3820);},'RkSFs':function(_0x5a98cc){return _0x5a98cc();},'psqGS':_0x3769bd(0x158),'bumdg':function(_0x4ed507,_0x2545b5,_0x4735cc){return _0x4ed507(_0x2545b5,_0x4735cc);},'KGwxz':function(_0x5ba99f,_0x3daebd,_0x4b1369){return _0x5ba99f(_0x3daebd,_0x4b1369);},'AhgeM':_0x3769bd(0x15d),'PKQaX':function(_0x4e7fd2,_0x2b24c5){return _0x4e7fd2===_0x2b24c5;},'aDTLn':'--disable-setuid-sandbox','XmAKW':function(_0x15ec9a,_0xcd95bb){return _0x15ec9a===_0xcd95bb;}},{storageStatePath:_0x598beb,tempAuthPath:_0x1a255f}=_0x572ffb?{'storageStatePath':_0x572ffb,'tempAuthPath':undefined}:await _0x4e2bba['jiSYg'](resolveLocalAuthPath,_0x4e2bba['jiSYg'](getEnvDir,_0x25deee)),_0x346f0=_0x41d995||_0x4e2bba['RkSFs'](randomUUID),_0x54bfa5=join(_0x4e2bba['RkSFs'](getRangerDir),_0x4e2bba[_0x3769bd(0x135)],_0x346f0),_0x5c4908=_0x4e2bba[_0x3769bd(0x134)](join,_0x54bfa5,_0x3769bd(0x143)),_0x4f6093=_0x598beb?_0x4e2bba[_0x3769bd(0x120)](join,_0x5c4908,_0x4e2bba['AhgeM']):undefined,{launchOptions:_0x4133e3,contextOptions:_0x4a5e95}=buildBrowserOptionsFromSettings(_0x41f587,{'headless':_0x39eb62?![]:_0x41f587['headless']??!![],'storageStatePath':_0x598beb});if(_0x4e2bba[_0x3769bd(0x18d)](process[_0x3769bd(0x160)]?.(),0x0)){const _0x236f4a=['--no-sandbox',_0x4e2bba[_0x3769bd(0x17b)]],_0x31c4f5=_0x4133e3['args']??[],_0x458096=_0x236f4a['filter'](_0x3f9831=>!_0x31c4f5['includes'](_0x3f9831));_0x4133e3[_0x3769bd(0x13f)]=[..._0x31c4f5,..._0x458096];}const _0x261eb2=typeof _0x4133e3[_0x3769bd(0x12e)]==='string'?_0x4133e3['executablePath']:_0x598beb?chromium['executablePath']():undefined;return{'storageStatePath':_0x598beb,'tempAuthPath':_0x1a255f,'baseUrl':_0x41f587[_0x3769bd(0x11e)],'headless':Boolean(_0x4133e3[_0x3769bd(0x173)]),'userDataDir':_0x5c4908,'browserProfilePath':_0x4f6093,'executablePath':_0x261eb2,'launchArgs':Array['isArray'](_0x4133e3['args'])?_0x4133e3[_0x3769bd(0x13f)][_0x3769bd(0x14a)](_0x474339=>typeof _0x474339==='string'):[],'userAgent':_0x4e2bba[_0x3769bd(0x16b)](typeof _0x4a5e95['userAgent'],_0x3769bd(0x127))?_0x4a5e95['userAgent']:undefined,'extraHTTPHeaders':_0x4a5e95[_0x3769bd(0x12a)],'allowInsecureLocalhost':Boolean(_0x41f587['allowInsecureLocalhost']),'safeMode':Boolean(_0x41f587['safeMode']),'cdpEndpoint':_0x41f587[_0x3769bd(0x13a)],'isCdpMode':_0x4e2bba[_0x3769bd(0x17f)](Boolean,_0x41f587['cdpEndpoint'])};}export function getNestedValue(_0xfa28a,_0x578647){const _0x499923=_0x497371,_0x137fcb={'iXcwc':function(_0x5d56b7,_0x49d129){return _0x5d56b7(_0x49d129);},'jvvMl':function(_0x4c6b26,_0x179574){return _0x4c6b26===_0x179574;},'kUbDg':function(_0x41f5ff,_0x2b385b){return _0x41f5ff===_0x2b385b;},'COKqp':_0x499923(0x137)},_0xc1e3b2=_0x137fcb['iXcwc'](parseKeyPath,_0x578647);let _0x31bf5e=_0xfa28a;for(const _0x3f1c8f of _0xc1e3b2){if(_0x137fcb['jvvMl'](_0x31bf5e,null)||_0x137fcb['kUbDg'](_0x31bf5e,undefined)||typeof _0x31bf5e!==_0x137fcb['COKqp'])return undefined;_0x31bf5e=_0x31bf5e[_0x3f1c8f];}return _0x31bf5e;}export function setNestedValue(_0x10c633,_0x2ba36f,_0x544fca){const _0x34cbd3=_0x497371,_0xb630c6={'xDdxJ':function(_0x56498a,_0x9e81a5){return _0x56498a(_0x9e81a5);},'BtUvc':function(_0x39c994,_0x563a4a){return _0x39c994-_0x563a4a;},'mApyJ':function(_0x2c26e5,_0x29849c){return _0x2c26e5 in _0x29849c;},'aFeat':function(_0x4bd1a2,_0x763a36){return _0x4bd1a2!==_0x763a36;},'ZUgDy':function(_0xc4ea85,_0x34ce4c){return _0xc4ea85-_0x34ce4c;}},_0x8623d8=_0xb630c6['xDdxJ'](parseKeyPath,_0x2ba36f);let _0xdb9174=_0x10c633;for(let _0x186b26=0x0;_0x186b26<_0xb630c6[_0x34cbd3(0x148)](_0x8623d8['length'],0x1);_0x186b26++){const _0x34d1b1=_0x8623d8[_0x186b26];(!_0xb630c6['mApyJ'](_0x34d1b1,_0xdb9174)||_0xb630c6['aFeat'](typeof _0xdb9174[_0x34d1b1],_0x34cbd3(0x137)))&&(_0xdb9174[_0x34d1b1]={}),_0xdb9174=_0xdb9174[_0x34d1b1];}_0xdb9174[_0x8623d8[_0xb630c6[_0x34cbd3(0x138)](_0x8623d8[_0x34cbd3(0x196)],0x1)]]=_0x544fca;}export function deleteNestedValue(_0x11f5a9,_0x2cc2c6){const _0x5d8e3b=_0x497371,_0x12741a={'dvuwQ':function(_0x56cc73,_0x252c62){return _0x56cc73<_0x252c62;},'GeUbu':function(_0x5c5b13,_0x1a2f9b){return _0x5c5b13===_0x1a2f9b;},'VCvLn':function(_0x1df2e1,_0x560b6f){return _0x1df2e1!==_0x560b6f;},'DGbOn':'object','hvRvB':function(_0x3fab20,_0x38e3c8){return _0x3fab20 in _0x38e3c8;}},_0x5a6df9=parseKeyPath(_0x2cc2c6);let _0x520c47=_0x11f5a9;for(let _0x52d8c3=0x0;_0x12741a[_0x5d8e3b(0x192)](_0x52d8c3,_0x5a6df9['length']-0x1);_0x52d8c3++){if(_0x520c47===null||_0x12741a[_0x5d8e3b(0x187)](_0x520c47,undefined)||_0x12741a[_0x5d8e3b(0x142)](typeof _0x520c47,_0x12741a[_0x5d8e3b(0x18e)]))return![];_0x520c47=_0x520c47[_0x5a6df9[_0x52d8c3]];}if(_0x520c47===null||_0x520c47===undefined||typeof _0x520c47!=='object')return![];const _0xdc38b7=_0x5a6df9[_0x5a6df9['length']-0x1];if(_0x12741a['hvRvB'](_0xdc38b7,_0x520c47))return delete _0x520c47[_0xdc38b7],!![];return![];}function parseKeyPath(_0x46d7e7){const _0x563245=_0x497371,_0x25da48={'yHCgF':_0x563245(0x15c),'WxnMs':function(_0x18c2ee,_0x13218c){return _0x18c2ee===_0x13218c;},'KqoqI':'setupHeaders'},_0x55cb20=_0x46d7e7[_0x563245(0x126)]('.');return _0x55cb20[0x0]===_0x563245(0x16d)&&(_0x55cb20[0x0]=_0x25da48['yHCgF']),_0x25da48['WxnMs'](_0x55cb20[0x0],'setupHeader')&&(_0x55cb20[0x0]=_0x25da48['KqoqI']),_0x55cb20;}export function formatSettings(_0x5cb7b5,_0x24ba80=0x0){const _0x46f319=_0x497371,_0x4f4b29={'KnrUz':function(_0x4e2e43,_0x2248e9){return _0x4e2e43===_0x2248e9;},'svovD':_0x46f319(0x137),'HzDWr':function(_0x504a7d,_0x10bd76){return _0x504a7d!==_0x10bd76;}},_0x2ff251=[],_0x1cab13='\x20\x20'['repeat'](_0x24ba80);for(const [_0x4f8e06,_0x210802]of Object['entries'](_0x5cb7b5)){if(_0x210802===undefined)continue;if(_0x4f4b29[_0x46f319(0x145)](typeof _0x210802,_0x4f4b29['svovD'])&&_0x4f4b29[_0x46f319(0x11d)](_0x210802,null)){_0x2ff251['push'](''+_0x1cab13+_0x4f8e06+':');for(const [_0x4970ba,_0x1888e4]of Object[_0x46f319(0x12d)](_0x210802)){_0x2ff251['push'](_0x1cab13+'\x20\x20'+_0x4970ba+':\x20'+_0x1888e4);}}else _0x2ff251['push'](''+_0x1cab13+_0x4f8e06+':\x20'+_0x210802);}return _0x2ff251[_0x46f319(0x175)]('\x0a');}
1
+ const _0x21984b=_0x52e6;(function(_0x21b23b,_0x3aba27){const _0x58119d=_0x52e6,_0x328b24=_0x21b23b();while(!![]){try{const _0x3ac9d3=parseInt(_0x58119d(0x12e))/0x1*(parseInt(_0x58119d(0x17b))/0x2)+parseInt(_0x58119d(0x150))/0x3*(-parseInt(_0x58119d(0x14b))/0x4)+-parseInt(_0x58119d(0x13f))/0x5+-parseInt(_0x58119d(0x16b))/0x6+-parseInt(_0x58119d(0x169))/0x7*(parseInt(_0x58119d(0x16e))/0x8)+-parseInt(_0x58119d(0x17c))/0x9*(parseInt(_0x58119d(0x183))/0xa)+-parseInt(_0x58119d(0x138))/0xb*(-parseInt(_0x58119d(0x14c))/0xc);if(_0x3ac9d3===_0x3aba27)break;else _0x328b24['push'](_0x328b24['shift']());}catch(_0x34adea){_0x328b24['push'](_0x328b24['shift']());}}}(_0xf29c,0xd109a));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';function _0xf29c(){const _0x1dfc64=['ranger-config','qEiAM','executablePath','string','OquHJ','userAgent','map','clipboard-read','args','stringify','--no-sandbox','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','env','LQSWk','-cli','contextOptions','isArray','object','KIZcI','zbnNA','vZPtH','jNnpg','chromium','-rangerwright.json','oAqVq','length','gnZGP','LcoEI','sbNdW','WfRTs','1odsqTp','tkHxh','tempAuthPath','allowInsecureLocalhost','BatxV','DJBkE','--disable-setuid-sandbox','getuid','split','PURXH','869rAJdtK','tBHdV','ignoreHTTPSErrors','now','legacy','headers','file','2972655wcFtUY','rangerDir','join','DrwPR','safeMode','dCUeV','YcQFI','pSKRh','xTlCw','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','Ebfnv','code','547752LMCotG','803508xhZiVf','gAMdS','replace','forWrite','12deYnqI','WGLsr','warn','includes','clipboard-write','fZXef','launchOptions','yBXvE','Environment\x20variable\x20','playwright-cli','\x22\x20to\x20legacy\x20path\x20','hQtII','headless','MHSTq','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','filter','zpmTG','sessions','cdpEndpoint','--allow-running-insecure-content','CgEBg','Eyudt','path','mRceO','none','63yhammq','cjFJR','8396376QPPJeq','local','nMihx','1418952eojHRx','baseUrl','Ebxdo','VxvOg','OcCBw','auth.json','qsLiR','nlYgu','message','OmWNc','lnwvZ','nVIUq','uwJpI','6578zjZQUU','35388VsxnMv','ranger-auth-','sJQfy','--allow-insecure-localhost','storageState','lkKty','settings.json','760yVGUyI','locations','push','PrVwA'];_0xf29c=function(){return _0x1dfc64;};return _0xf29c();}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(_0x4f4964,_0x4d7ab8){const _0xb3b6d6=_0x52e6,_0x32a31c={'eyepT':function(_0x3e5617,_0x14624d,_0x3163fb,_0x546aaf){return _0x3e5617(_0x14624d,_0x3163fb,_0x546aaf);},'WZUHB':function(_0x4bf196,_0x2bc408,_0x481414,_0x39f33d){return _0x4bf196(_0x2bc408,_0x481414,_0x39f33d);},'Ebfnv':function(_0x4df4c4,_0x97d56e,_0x4962de){return _0x4df4c4(_0x97d56e,_0x4962de);},'AVqcG':function(_0x865dc7,_0x48b82a){return _0x865dc7(_0x48b82a);},'lnwvZ':function(_0x362e88,_0x4d274e){return _0x362e88(_0x4d274e);}},_0x5b87cf=_0x32a31c['eyepT'](join,_0x4d7ab8,'ci',_0x4f4964),_0x359fa6=_0x32a31c['WZUHB'](join,_0x4d7ab8,_0xb3b6d6(0x16c),_0x4f4964),_0x4ac369=_0x32a31c[_0xb3b6d6(0x149)](join,_0x4d7ab8,_0x4f4964),_0x27b5f9=join(_0x4d7ab8,'local'),_0x3e75ab=join(_0x4d7ab8,'ci');if(existsSync(_0x5b87cf))return _0x5b87cf;if(existsSync(_0x359fa6))return _0x359fa6;if(_0x32a31c['AVqcG'](existsSync,_0x4ac369)&&(_0x4ac369!==_0x27b5f9&&_0x4ac369!==_0x3e75ab?!![]:_0x32a31c[_0xb3b6d6(0x178)](hasLegacyProfileFiles,_0x4ac369)))return _0x4ac369;return null;}export function getEnvDir(_0x126374,_0x15c96e={}){const _0x3824ff=_0x52e6,_0x7e9c59={'izOQy':function(_0x20833e){return _0x20833e();},'LQSWk':function(_0x4368c6,_0x4e9ff9,_0x4a80e4){return _0x4368c6(_0x4e9ff9,_0x4a80e4);},'nlYgu':function(_0xa4068a,_0x309dfb){return _0xa4068a(_0x309dfb);},'hKcGz':function(_0x160dd0,_0xbecc1a,_0x3c7b59){return _0x160dd0(_0xbecc1a,_0x3c7b59);},'nMihx':function(_0x44c650,_0x5cf06c,_0x414abd,_0x3a0633){return _0x44c650(_0x5cf06c,_0x414abd,_0x3a0633);},'CXvru':_0x3824ff(0x16c),'CgEBg':function(_0x56e0ff,_0x4bfc92,_0x38887f){return _0x56e0ff(_0x4bfc92,_0x38887f);}},_0x209e17=_0x7e9c59['izOQy'](getRangerDir),_0x4363f1=_0x7e9c59['LQSWk'](findEnvInRoot,_0x126374,_0x209e17);if(_0x4363f1){if(_0x15c96e[_0x3824ff(0x14f)]&&_0x7e9c59['nlYgu'](isLegacyEnvPath,_0x4363f1))throw _0x7e9c59[_0x3824ff(0x194)](legacyWriteError,_0x126374,_0x4363f1);return _0x4363f1;}const _0x3a9229=getRangerHomeDir();if(_0x3a9229!==_0x209e17){const _0x4fb4ae=_0x7e9c59['hKcGz'](findEnvInRoot,_0x126374,_0x3a9229);if(_0x4fb4ae){if(_0x15c96e['forWrite']&&_0x7e9c59[_0x3824ff(0x175)](isLegacyEnvPath,_0x4fb4ae))throw legacyWriteError(_0x126374,_0x4fb4ae);return _0x4fb4ae;}}const _0x160db3=_0x7e9c59[_0x3824ff(0x16d)](join,_0x3a9229,_0x7e9c59['CXvru'],_0x126374);if(_0x15c96e['forWrite'])throw _0x7e9c59[_0x3824ff(0x164)](legacyWriteError,_0x126374,_0x160db3);return _0x160db3;}function isLegacyEnvPath(_0x1ca636){const _0x58705b={'rAxHf':function(_0x49d18a,_0x8cbcfb){return _0x49d18a===_0x8cbcfb;}},_0x3a1141=getRangerDir(),_0x24ddf5=getRangerHomeDir();for(const _0x191781 of new Set([_0x3a1141,_0x24ddf5])){const _0x57e277=_0x191781['endsWith']('/')?_0x191781:_0x191781+'/';if(_0x58705b['rAxHf'](_0x1ca636,_0x191781)||_0x1ca636['startsWith'](_0x57e277))return!![];}return![];}function legacyWriteError(_0x1ce52f,_0x31e038){const _0x5e1f20=_0x52e6,_0x23a7a4={'pSKRh':function(_0x35ddeb,_0x2cf61b){return _0x35ddeb+_0x2cf61b;}};return new Error(_0x23a7a4[_0x5e1f20(0x146)]('Refusing\x20to\x20write\x20profile\x20\x22'+_0x1ce52f+_0x5e1f20(0x15a)+_0x31e038+'.\x0a'+'That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a',_0x5e1f20(0x148))+'See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.');}function _0x52e6(_0x16f7da,_0x72948b){_0x16f7da=_0x16f7da-0x123;const _0xf29ca5=_0xf29c();let _0x52e6b0=_0xf29ca5[_0x16f7da];return _0x52e6b0;}export function findExistingEnv(_0x2575a3,_0x1701cb){const _0x52145e=_0x52e6,_0x565f37={'OmWNc':function(_0x5f4425){return _0x5f4425();},'cjFJR':_0x52145e(0x13c),'DrwPR':function(_0x197a81,_0x155529,_0xbf6cf2,_0x4a2c1a){return _0x197a81(_0x155529,_0xbf6cf2,_0x4a2c1a);},'ElIOo':'local','FNJyg':function(_0x5eb927,_0x4cb8ca,_0x3efafe,_0x14e9a5){return _0x5eb927(_0x4cb8ca,_0x3efafe,_0x14e9a5);},'jPgAm':function(_0x5722db,_0x414b6f,_0x49e324){return _0x5722db(_0x414b6f,_0x49e324);},'rqjKp':function(_0x5d4577,_0x485dff){return _0x5d4577===_0x485dff;},'vZPtH':function(_0x57ce84,_0x34a8ca){return _0x57ce84===_0x34a8ca;}},_0x5ea303=_0x1701cb?.[_0x52145e(0x140)],_0x2d4893=_0x5ea303?[_0x5ea303]:[_0x565f37['OmWNc'](getRangerDir),_0x565f37[_0x52145e(0x177)](getRangerHomeDir)]['filter']((_0x256187,_0x1dccad,_0x29dcf1)=>_0x29dcf1['indexOf'](_0x256187)===_0x1dccad),_0x2a237a=_0x1701cb?.[_0x52145e(0x184)]??['ci',_0x52145e(0x16c),_0x565f37[_0x52145e(0x16a)]];for(const _0x196a48 of _0x2d4893){const _0x192901=join(_0x196a48,'local'),_0xeed8f2=join(_0x196a48,'ci'),_0x4719b8=[{'location':'ci','path':_0x565f37[_0x52145e(0x142)](join,_0x196a48,'ci',_0x2575a3)},{'location':_0x565f37['ElIOo'],'path':_0x565f37['FNJyg'](join,_0x196a48,_0x565f37['ElIOo'],_0x2575a3)},{'location':_0x565f37[_0x52145e(0x16a)],'path':_0x565f37['jPgAm'](join,_0x196a48,_0x2575a3)}];for(const _0x3e731f of _0x4719b8){if(_0x2a237a[_0x52145e(0x153)](_0x3e731f['location'])&&existsSync(_0x3e731f[_0x52145e(0x166)])){if(_0x565f37['rqjKp'](_0x3e731f['location'],'legacy')&&(_0x565f37[_0x52145e(0x124)](_0x3e731f[_0x52145e(0x166)],_0x192901)||_0x3e731f[_0x52145e(0x166)]===_0xeed8f2)&&!hasLegacyProfileFiles(_0x3e731f['path']))continue;return{'path':_0x3e731f[_0x52145e(0x166)],'location':_0x3e731f['location']};}}}return null;}function hasLegacyProfileFiles(_0x4fdd5a){const _0x381f85=_0x52e6,_0xdf5230={'BatxV':function(_0x486635,_0x1e2073){return _0x486635(_0x1e2073);},'oAqVq':function(_0x580bd5,_0x5ef302,_0x15cb5d){return _0x580bd5(_0x5ef302,_0x15cb5d);},'WfRTs':_0x381f85(0x182),'uiRNx':'auth.json.enc'};return _0xdf5230['BatxV'](existsSync,_0xdf5230[_0x381f85(0x128)](join,_0x4fdd5a,_0xdf5230[_0x381f85(0x12d)]))||existsSync(join(_0x4fdd5a,_0x381f85(0x173)))||_0xdf5230[_0x381f85(0x132)](existsSync,_0xdf5230[_0x381f85(0x128)](join,_0x4fdd5a,_0xdf5230['uiRNx']));}export function isEnvCi(_0x5a5e81){const _0x4b0b3b=_0x52e6,_0x940b4f={'MMOFp':function(_0x2e58c6,_0x4bd9a1,_0x290d25,_0x1863a3){return _0x2e58c6(_0x4bd9a1,_0x290d25,_0x1863a3);},'qsLiR':function(_0x2d23a9){return _0x2d23a9();},'RJMmv':function(_0xe84d9){return _0xe84d9();},'ycpVC':function(_0x310550,_0x34eb56){return _0x310550!==_0x34eb56;}};if(existsSync(_0x940b4f['MMOFp'](join,_0x940b4f[_0x4b0b3b(0x174)](getRangerDir),'ci',_0x5a5e81)))return!![];const _0x49805f=_0x940b4f['RJMmv'](getRangerHomeDir);if(_0x940b4f['ycpVC'](_0x49805f,getRangerDir())&&existsSync(join(_0x49805f,'ci',_0x5a5e81)))return!![];return![];}export async function cleanupTempFiles(_0x395085){const _0x52b267=_0x52e6,_0x180371={'PURXH':function(_0x5c1bd3,_0x5e7e49){return _0x5c1bd3!==_0x5e7e49;}},_0x4324ab=[_0x395085[_0x52b267(0x130)],_0x395085['configPath']]['filter'](Boolean);await Promise['all'](_0x4324ab[_0x52b267(0x18d)](_0x330a0a=>unlink(_0x330a0a)['catch'](_0xcb7b4a=>{const _0x328267=_0x52b267;_0x180371[_0x328267(0x137)](_0xcb7b4a[_0x328267(0x14a)],'ENOENT')&&console[_0x328267(0x152)](_0x328267(0x192)+_0x330a0a+':',_0xcb7b4a[_0x328267(0x176)]);})));}export function getSettingsPath(_0xa632c3){const _0x5be70d=_0x52e6,_0x19aff3={'XNcrs':function(_0x110d27,_0x4b0cd8,_0xf3c470){return _0x110d27(_0x4b0cd8,_0xf3c470);},'mXZjN':_0x5be70d(0x182)};return _0x19aff3['XNcrs'](join,getEnvDir(_0xa632c3),_0x19aff3['mXZjN']);}export async function loadSettings(_0x136e28){const _0x5e900a=_0x52e6,_0x13498c={'qEiAM':function(_0x16a651,_0x347f80){return _0x16a651(_0x347f80);}},_0x235d7b=getSettingsPath(_0x136e28);if(!_0x13498c[_0x5e900a(0x188)](existsSync,_0x235d7b))return{};try{const _0x1a719a=await readFile(_0x235d7b,'utf-8');return JSON['parse'](_0x1a719a);}catch{return{};}}export async function saveSettings(_0x1c04bf,_0x3553e2){const _0x27dacc=_0x52e6,_0x20fb48={'UqQxT':function(_0x1e5bd4,_0x2fef9f){return _0x1e5bd4(_0x2fef9f);},'MHSTq':function(_0x5b5bf9,_0x57f089){return _0x5b5bf9(_0x57f089);}},_0x997b1c=_0x20fb48['UqQxT'](getSettingsPath,_0x1c04bf),_0x3c7bc1=dirname(_0x997b1c);!_0x20fb48[_0x27dacc(0x15d)](existsSync,_0x3c7bc1)&&await mkdir(_0x3c7bc1,{'recursive':!![]}),await writeFile(_0x997b1c,JSON['stringify'](_0x3553e2,null,0x2));}export function resolveEnvVars(_0x35109b){const _0x3a2159=_0x52e6,_0x2ee24e={'BYDol':function(_0x5eec02,_0xa5cc54){return _0x5eec02===_0xa5cc54;}};if(_0x2ee24e['BYDol'](typeof _0x35109b,_0x3a2159(0x18a)))return _0x35109b[_0x3a2159(0x14e)](/\$\{(\w+)\}/g,(_0x2f701f,_0x3c764f)=>{const _0x6bdc97=_0x3a2159,_0x6a8d43=process[_0x6bdc97(0x193)][_0x3c764f];if(_0x6a8d43===undefined)throw new Error(_0x6bdc97(0x158)+_0x3c764f+'\x20is\x20not\x20set');return _0x6a8d43;});if(Array[_0x3a2159(0x197)](_0x35109b))return _0x35109b['map'](resolveEnvVars);if(_0x35109b&&typeof _0x35109b==='object')return Object['fromEntries'](Object['entries'](_0x35109b)['map'](([_0xfd6db5,_0x270f72])=>[_0xfd6db5,resolveEnvVars(_0x270f72)]));return _0x35109b;}const isRecord=_0x2831bf=>typeof _0x2831bf==='object'&&_0x2831bf!==null&&!Array['isArray'](_0x2831bf),asRecord=_0x4d1285=>isRecord(_0x4d1285)?_0x4d1285:undefined,mergeHeaders=(_0x1a3cd1,_0x44a760)=>{const _0x50061e=_0x52e6,_0x54fc98={'FliUU':function(_0x137baf,_0x45f8ce){return _0x137baf??_0x45f8ce;}},_0x53d701={..._0x1a3cd1??{},..._0x54fc98['FliUU'](_0x44a760,{})};return Object['keys'](_0x53d701)[_0x50061e(0x129)]?_0x53d701:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=['--disable-web-security',_0x21984b(0x163),'--unsafely-treat-insecure-origin-as-secure=http://localhost',_0x21984b(0x17f)];export function buildBrowserOptionsFromSettings(_0x1d6c9b,_0x3cb018={}){const _0x14670a=_0x21984b,_0x367ced={'zbnNA':function(_0x57af4e,_0x2f1dce){return _0x57af4e(_0x2f1dce);},'KIZcI':function(_0x1e854a,_0x312fa2){return _0x1e854a(_0x312fa2);},'nVIUq':function(_0x3cd4de,_0x4a600b){return _0x3cd4de===_0x4a600b;},'tBHdV':'boolean','fxgcI':function(_0x1b1832,_0xd033f2,_0x599967){return _0x1b1832(_0xd033f2,_0x599967);},'UyOAt':function(_0xf6a659,_0x39e32e){return _0xf6a659(_0x39e32e);},'PrVwA':function(_0xb3cfed,_0x3a413e){return _0xb3cfed(_0x3a413e);}},_0x586503=_0x367ced['zbnNA'](asRecord,_0x1d6c9b['browser']),_0x2d2c1f={..._0x367ced[_0x14670a(0x199)](asRecord,_0x586503?.[_0x14670a(0x156)])??{}};_0x367ced['nVIUq'](typeof _0x3cb018['headless'],_0x367ced[_0x14670a(0x139)])&&(_0x2d2c1f[_0x14670a(0x15c)]=_0x3cb018[_0x14670a(0x15c)]);if(_0x1d6c9b['safeMode']){const _0x3cb336=_0x2d2c1f[_0x14670a(0x18f)]??[],_0x4a5e2b=SAFE_MODE_ARGS['filter'](_0x3b2d10=>!_0x3cb336['includes'](_0x3b2d10));_0x2d2c1f[_0x14670a(0x18f)]=[..._0x3cb336,..._0x4a5e2b];}if(_0x1d6c9b[_0x14670a(0x131)]){const _0x4cd6f7=_0x2d2c1f['args']??[],_0x11c830=ALLOW_LOCALHOST_ARGS['filter'](_0x38818a=>!_0x4cd6f7['includes'](_0x38818a));_0x2d2c1f[_0x14670a(0x18f)]=[..._0x4cd6f7,..._0x11c830];}const _0x4a99be={..._0x367ced[_0x14670a(0x123)](asRecord,_0x586503?.[_0x14670a(0x196)])??{}};_0x4a99be[_0x14670a(0x13a)]=!![];_0x367ced[_0x14670a(0x179)](typeof _0x1d6c9b['userAgent'],_0x14670a(0x18a))&&(_0x4a99be[_0x14670a(0x18c)]=_0x1d6c9b[_0x14670a(0x18c)]);const _0x143d41=_0x367ced['fxgcI'](mergeHeaders,_0x367ced['UyOAt'](asRecord,_0x4a99be['extraHTTPHeaders']),_0x367ced[_0x14670a(0x186)](asRecord,_0x1d6c9b[_0x14670a(0x13d)]));return _0x143d41?_0x4a99be['extraHTTPHeaders']=_0x143d41:delete _0x4a99be['extraHTTPHeaders'],_0x3cb018['storageStatePath']&&(_0x4a99be[_0x14670a(0x180)]=_0x3cb018['storageStatePath']),{'launchOptions':_0x2d2c1f,'contextOptions':_0x4a99be};}export async function resolveProfileStorageState(_0x47da91){const _0x182f80={'bndSI':function(_0x1661fb,_0x2be872){return _0x1661fb(_0x2be872);}};return resolveLocalAuthPath(_0x182f80['bndSI'](getEnvDir,_0x47da91));}async function resolveLocalAuthPath(_0x5cd4f0){const _0x103fcf=_0x21984b,_0x2526c9={'eZrkd':'auth.json.enc','zwrVg':_0x103fcf(0x173),'gAMdS':function(_0x277eda,_0x16c649){return _0x277eda(_0x16c649);},'EDGpY':_0x103fcf(0x15e),'YoTLz':function(_0x474429,_0x59e528){return _0x474429 instanceof _0x59e528;},'jNnpg':function(_0x2922b9,_0x299b0a){return _0x2922b9(_0x299b0a);},'sJQfy':function(_0x51a95b,_0x57ea88){return _0x51a95b(_0x57ea88);}},_0x53afd2=join(_0x5cd4f0,_0x2526c9['eZrkd']),_0x14b483=join(_0x5cd4f0,_0x2526c9['zwrVg']);if(_0x2526c9[_0x103fcf(0x14d)](existsSync,_0x53afd2))try{const _0x2832f9=await getToken();if(!_0x2832f9)throw new Error(_0x2526c9['EDGpY']);const _0x46525d=await readFile(_0x53afd2),_0x2c41ec=decrypt(_0x46525d,_0x2832f9),_0x135cf1=join(tmpdir(),_0x103fcf(0x17d)+Date['now']()+'.json');return await writeFile(_0x135cf1,_0x2c41ec),{'storageStatePath':_0x135cf1,'tempAuthPath':_0x135cf1};}catch(_0x31e811){const _0x297c41=_0x2526c9['YoTLz'](_0x31e811,Error)?_0x31e811['message']:_0x2526c9[_0x103fcf(0x125)](String,_0x31e811);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x297c41);}if(_0x2526c9[_0x103fcf(0x17e)](existsSync,_0x14b483))return{'storageStatePath':_0x14b483};return{};}export async function buildPlaywrightConfig(_0x4288f0,_0x18bf42,_0x30e419,_0x22aa3d,_0x12cc09){const _0x1192da=_0x21984b,_0x349bbb={'LcoEI':function(_0x356919,_0x4701aa,_0x5a0d5f,_0x17c5e8,_0x4972d8,_0x351bb7,_0x253228){return _0x356919(_0x4701aa,_0x5a0d5f,_0x17c5e8,_0x4972d8,_0x351bb7,_0x253228);},'gOGgN':function(_0x33f583,_0x208784){return _0x33f583(_0x208784);},'iPSEI':'stagehand'};if(_0x12cc09)return _0x349bbb[_0x1192da(0x12b)](buildPlaywrightConfigCore,_0x4288f0,_0x12cc09,_0x18bf42,_0x30e419,_0x22aa3d,'stagehand');const {storageStatePath:_0x1e7537,tempAuthPath:_0x24d37a}=await _0x349bbb['gOGgN'](resolveLocalAuthPath,getEnvDir(_0x18bf42));try{const _0x24434b=await buildPlaywrightConfigCore(_0x4288f0,_0x1e7537,_0x18bf42,_0x30e419,_0x22aa3d,_0x349bbb['iPSEI']);return{..._0x24434b,'tempAuthPath':_0x24d37a};}catch(_0x240e92){_0x24d37a&&await _0x349bbb['gOGgN'](unlink,_0x24d37a)['catch'](()=>{});throw _0x240e92;}}export async function buildPlaywrightConfigCore(_0x4cf253,_0x37130a,_0x54e430,_0x1525af,_0x13bb88,_0xbabd2b='stagehand'){const _0x4866ae=_0x21984b,_0x59ef65={'pxFaA':function(_0x89b6cd,_0x2475b7,_0x5d145b){return _0x89b6cd(_0x2475b7,_0x5d145b);},'ovqni':_0x4866ae(0x154),'hQtII':function(_0x110074,_0x21db45,_0xe3a518,_0x2b41f7){return _0x110074(_0x21db45,_0xe3a518,_0x2b41f7);},'cigSw':_0x4866ae(0x161),'BRTwK':function(_0x2808bf,_0x16cad2){return _0x2808bf(_0x16cad2);},'eTuxV':_0x4866ae(0x126),'gojMb':_0x4866ae(0x13e),'ndXWR':'core','mRceO':'install','UjmLf':'allow','OquHJ':function(_0x80aaa2,_0x30aba3){return _0x80aaa2===_0x30aba3;},'lkKty':function(_0x2522e8,_0x1651c2){return _0x2522e8(_0x1651c2);},'gnZGP':_0x4866ae(0x195)},_0x5f146d=_0x1525af||randomUUID(),_0x1917dd=_0x59ef65[_0x4866ae(0x15b)](join,getRangerDir(),_0x59ef65['cigSw'],_0x5f146d),_0x164b44=_0x59ef65['BRTwK'](Boolean,_0x4cf253[_0x4866ae(0x162)]),_0x1d6b36=_0x164b44?{'browserName':_0x59ef65['eTuxV'],'cdpEndpoint':_0x4cf253['cdpEndpoint']}:((()=>{const _0x5bd3e1=_0x4866ae,{launchOptions:_0x43ea41,contextOptions:_0x158a25}=_0x59ef65['pxFaA'](buildBrowserOptionsFromSettings,_0x4cf253,{'headless':_0x13bb88?![]:_0x4cf253['headless']??!![],'storageStatePath':_0x37130a});if(process[_0x5bd3e1(0x135)]?.()===0x0){const _0x52b89a=['--no-sandbox','--disable-setuid-sandbox'],_0x37880d=_0x43ea41['args']??[],_0x1871ed=_0x52b89a[_0x5bd3e1(0x15f)](_0x2185fb=>!_0x37880d['includes'](_0x2185fb));_0x43ea41['args']=[..._0x37880d,..._0x1871ed];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x43ea41,'contextOptions':{..._0x158a25,'permissions':[_0x5bd3e1(0x18e),_0x59ef65['ovqni']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x2797cd=_0xbabd2b===_0x4866ae(0x159)?{'browser':_0x1d6b36,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x1917dd,'outputMode':_0x59ef65['gojMb'],'codegen':_0x4866ae(0x168)}:{'name':_0x54e430,'browser':_0x1d6b36,'capabilities':[_0x59ef65['ndXWR'],'tabs',_0x59ef65[_0x4866ae(0x167)],'pdf','vision'],'imageResponses':_0x59ef65['UjmLf'],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x1917dd};if(!_0x164b44){const _0x4dd60b=_0x2797cd['browser'],_0x4f4a38=_0x4dd60b['contextOptions'];if(_0x59ef65[_0x4866ae(0x18b)](_0x4f4a38['userAgent'],undefined))delete _0x4f4a38['userAgent'];if(_0x4f4a38['storageState']===undefined)delete _0x4f4a38[_0x4866ae(0x180)];}const _0x3c15ed=join(tmpdir(),_0x4866ae(0x187));!_0x59ef65[_0x4866ae(0x181)](existsSync,_0x3c15ed)&&await mkdir(_0x3c15ed,{'recursive':!![]});const _0x7f5678=_0x59ef65[_0x4866ae(0x18b)](_0xbabd2b,_0x4866ae(0x159))?_0x59ef65[_0x4866ae(0x12a)]:'',_0x519245=join(_0x3c15ed,_0x54e430+'-'+Date['now']()+_0x7f5678+'.json');return await writeFile(_0x519245,JSON[_0x4866ae(0x190)](_0x2797cd,null,0x2)),{'configPath':_0x519245,'storageStatePath':_0x37130a};}export async function buildPlaywrightCliConfig(_0x1a6685,_0x349161,_0x364098,_0x51ab82,_0x5b9327){const _0x453054=_0x21984b,_0x367e47={'WGLsr':'playwright-cli','LmARX':function(_0x21c99f,_0x328949){return _0x21c99f(_0x328949);},'yBXvE':function(_0x193454,_0x441777,_0x158aa8,_0x37b5b4,_0x5e5c18,_0x744405,_0x3c2c88){return _0x193454(_0x441777,_0x158aa8,_0x37b5b4,_0x5e5c18,_0x744405,_0x3c2c88);}};if(_0x5b9327)return buildPlaywrightConfigCore(_0x1a6685,_0x5b9327,_0x349161,_0x364098,_0x51ab82,_0x367e47[_0x453054(0x151)]);const {storageStatePath:_0x3cc1f0,tempAuthPath:_0x29e51b}=await _0x367e47['LmARX'](resolveLocalAuthPath,getEnvDir(_0x349161));try{const _0x5d12c0=await _0x367e47[_0x453054(0x157)](buildPlaywrightConfigCore,_0x1a6685,_0x3cc1f0,_0x349161,_0x364098,_0x51ab82,'playwright-cli');return{..._0x5d12c0,'tempAuthPath':_0x29e51b};}catch(_0x40f352){_0x29e51b&&await unlink(_0x29e51b)['catch'](()=>{});throw _0x40f352;}}export async function buildRangerwrightCliConfig(_0x54b62c,_0x3d0a1e,_0x3bf86c,_0x33e768,_0x5c624d){const _0x29b939=_0x21984b,_0x592e9a={'DHXsl':'clipboard-read','sbNdW':function(_0x39c98e,_0x2445a9){return _0x39c98e(_0x2445a9);},'AxxHv':function(_0x28f554){return _0x28f554();},'QZJPS':'chromium','ehuDx':function(_0xb535c1,_0x2bdcda){return _0xb535c1===_0x2bdcda;},'tjMvn':function(_0x99ef41,_0x7f6833,_0x5e84aa){return _0x99ef41(_0x7f6833,_0x5e84aa);},'mepEA':_0x29b939(0x187)},{storageStatePath:_0x133952,tempAuthPath:_0x4563b6}=_0x5c624d?{'storageStatePath':_0x5c624d,'tempAuthPath':undefined}:await resolveLocalAuthPath(_0x592e9a[_0x29b939(0x12c)](getEnvDir,_0x3d0a1e)),_0x513738=_0x3bf86c||randomUUID(),_0x36b01a=join(_0x592e9a['AxxHv'](getRangerDir),'sessions',_0x513738),_0x408d06=Boolean(_0x54b62c[_0x29b939(0x162)]),_0x97c5a=_0x408d06?{'browserName':_0x592e9a['QZJPS'],'cdpEndpoint':_0x54b62c[_0x29b939(0x162)]}:((()=>{const _0x35b557=_0x29b939,{launchOptions:_0x2139dd,contextOptions:_0xb2573f}=buildBrowserOptionsFromSettings(_0x54b62c,{'headless':_0x33e768?![]:_0x54b62c['headless']??!![],'storageStatePath':_0x133952});if(process['getuid']?.()===0x0){const _0x47326c=[_0x35b557(0x191),_0x35b557(0x134)],_0x5bc921=_0x2139dd[_0x35b557(0x18f)]??[],_0x429566=_0x47326c[_0x35b557(0x15f)](_0x3e5b05=>!_0x5bc921['includes'](_0x3e5b05));_0x2139dd[_0x35b557(0x18f)]=[..._0x5bc921,..._0x429566];}return{'browserName':_0x35b557(0x126),'launchOptions':_0x2139dd,'contextOptions':{..._0xb2573f,'permissions':[_0x592e9a['DHXsl'],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x408d06){const _0x57a8db=_0x97c5a['contextOptions'];if(_0x57a8db){if(_0x592e9a['ehuDx'](_0x57a8db['userAgent'],undefined))delete _0x57a8db['userAgent'];if(_0x57a8db['storageState']===undefined)delete _0x57a8db[_0x29b939(0x180)];}}const _0x252511={'browser':_0x97c5a,'outputDir':_0x36b01a,'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'settle':{'navigationLoadTimeoutMs':0x7530,'networkSettleTimeoutMs':0x1388,'networkIdleWindowMs':0x1f4,'postActionAnimationFrameCount':0x2}};let _0x24fed;try{const _0x312245=_0x592e9a['tjMvn'](join,_0x592e9a['AxxHv'](tmpdir),_0x592e9a['mepEA']);!existsSync(_0x312245)&&await mkdir(_0x312245,{'recursive':!![]}),_0x24fed=join(_0x312245,_0x3d0a1e+'-'+Date[_0x29b939(0x13b)]()+_0x29b939(0x127)),await _0x592e9a['tjMvn'](writeFile,_0x24fed,JSON[_0x29b939(0x190)](_0x252511,null,0x2));}catch(_0x12379a){_0x4563b6&&await unlink(_0x4563b6)['catch'](()=>{});throw _0x12379a;}return{'configPath':_0x24fed,'storageStatePath':_0x133952,'tempAuthPath':_0x4563b6,'outputDir':_0x36b01a};}export async function buildNovaActCliConfig(_0x412133,_0x10247b,_0x3076df,_0x39fd1c,_0x42c7ab){const _0x2813c5=_0x21984b,_0x4b47d6={'fLTyS':function(_0x241053){return _0x241053();},'DJBkE':'nova-user-data','tkHxh':'Default','YcQFI':function(_0x1e2f54,_0x26a2b2){return _0x1e2f54===_0x26a2b2;},'AKIYx':_0x2813c5(0x134),'sMexB':'string','Ebxdo':function(_0xb69d90,_0x2eb388){return _0xb69d90(_0x2eb388);},'uwJpI':function(_0x5cc791,_0x5b7f8f){return _0x5cc791(_0x5b7f8f);}},{storageStatePath:_0x4a78b5,tempAuthPath:_0x4da9c5}=_0x42c7ab?{'storageStatePath':_0x42c7ab,'tempAuthPath':undefined}:await resolveLocalAuthPath(getEnvDir(_0x10247b)),_0x48f9c2=_0x3076df||_0x4b47d6['fLTyS'](randomUUID),_0x1af0bf=join(_0x4b47d6['fLTyS'](getRangerDir),_0x2813c5(0x161),_0x48f9c2),_0x37ba29=join(_0x1af0bf,_0x4b47d6[_0x2813c5(0x133)]),_0x392a94=_0x4a78b5?join(_0x37ba29,_0x4b47d6[_0x2813c5(0x12f)]):undefined,{launchOptions:_0x290daf,contextOptions:_0x1e4d5d}=buildBrowserOptionsFromSettings(_0x412133,{'headless':_0x39fd1c?![]:_0x412133[_0x2813c5(0x15c)]??!![],'storageStatePath':_0x4a78b5});if(_0x4b47d6[_0x2813c5(0x145)](process['getuid']?.(),0x0)){const _0xadfecd=[_0x2813c5(0x191),_0x4b47d6['AKIYx']],_0x14394a=_0x290daf['args']??[],_0x3936ce=_0xadfecd[_0x2813c5(0x15f)](_0x23e037=>!_0x14394a[_0x2813c5(0x153)](_0x23e037));_0x290daf['args']=[..._0x14394a,..._0x3936ce];}const _0x1c1753=typeof _0x290daf['executablePath']===_0x2813c5(0x18a)?_0x290daf[_0x2813c5(0x189)]:_0x4a78b5?chromium[_0x2813c5(0x189)]():undefined;return{'storageStatePath':_0x4a78b5,'tempAuthPath':_0x4da9c5,'baseUrl':_0x412133[_0x2813c5(0x16f)],'headless':Boolean(_0x290daf['headless']),'userDataDir':_0x37ba29,'browserProfilePath':_0x392a94,'executablePath':_0x1c1753,'launchArgs':Array[_0x2813c5(0x197)](_0x290daf[_0x2813c5(0x18f)])?_0x290daf[_0x2813c5(0x18f)]['filter'](_0x3bc4b1=>typeof _0x3bc4b1===_0x2813c5(0x18a)):[],'userAgent':typeof _0x1e4d5d['userAgent']===_0x4b47d6['sMexB']?_0x1e4d5d[_0x2813c5(0x18c)]:undefined,'extraHTTPHeaders':_0x1e4d5d['extraHTTPHeaders'],'allowInsecureLocalhost':_0x4b47d6[_0x2813c5(0x170)](Boolean,_0x412133['allowInsecureLocalhost']),'safeMode':Boolean(_0x412133[_0x2813c5(0x143)]),'cdpEndpoint':_0x412133['cdpEndpoint'],'isCdpMode':_0x4b47d6[_0x2813c5(0x17a)](Boolean,_0x412133['cdpEndpoint'])};}export function getNestedValue(_0x390254,_0x3f4d16){const _0x3ff804=_0x21984b,_0x2f8036={'kBthB':function(_0x301655,_0x4ef3bb){return _0x301655(_0x4ef3bb);},'dCUeV':function(_0x27b772,_0x5ac387){return _0x27b772===_0x5ac387;},'xTlCw':'object'},_0x2b057d=_0x2f8036['kBthB'](parseKeyPath,_0x3f4d16);let _0x3519f7=_0x390254;for(const _0x46e487 of _0x2b057d){if(_0x2f8036[_0x3ff804(0x144)](_0x3519f7,null)||_0x2f8036['dCUeV'](_0x3519f7,undefined)||typeof _0x3519f7!==_0x2f8036[_0x3ff804(0x147)])return undefined;_0x3519f7=_0x3519f7[_0x46e487];}return _0x3519f7;}export function setNestedValue(_0x2f508f,_0x47be29,_0x18cb8d){const _0x111c17=_0x21984b,_0x5817ce={'ETJmn':function(_0x4bce34,_0x1d2861){return _0x4bce34<_0x1d2861;},'ZYvUM':function(_0x2fc9d8,_0x520fb4){return _0x2fc9d8 in _0x520fb4;},'yCkaZ':function(_0x289afe,_0x587da8){return _0x289afe!==_0x587da8;},'UUkhU':function(_0x5edd93,_0x42a984){return _0x5edd93-_0x42a984;}},_0x38ad7c=parseKeyPath(_0x47be29);let _0x299217=_0x2f508f;for(let _0x136b80=0x0;_0x5817ce['ETJmn'](_0x136b80,_0x38ad7c['length']-0x1);_0x136b80++){const _0x12c229=_0x38ad7c[_0x136b80];(!_0x5817ce['ZYvUM'](_0x12c229,_0x299217)||_0x5817ce['yCkaZ'](typeof _0x299217[_0x12c229],_0x111c17(0x198)))&&(_0x299217[_0x12c229]={}),_0x299217=_0x299217[_0x12c229];}_0x299217[_0x38ad7c[_0x5817ce['UUkhU'](_0x38ad7c[_0x111c17(0x129)],0x1)]]=_0x18cb8d;}export function deleteNestedValue(_0x45572d,_0x2aba92){const _0x2e6e25=_0x21984b,_0x48c533={'bbLvD':function(_0x1a86b2,_0x48937a){return _0x1a86b2(_0x48937a);},'mgNvq':function(_0x235cd1,_0x1fffef){return _0x235cd1<_0x1fffef;},'iKOix':function(_0x3f4322,_0x821c66){return _0x3f4322-_0x821c66;},'OcCBw':function(_0x22baa2,_0x5b0b2b){return _0x22baa2===_0x5b0b2b;},'Eyudt':_0x2e6e25(0x198),'VxvOg':function(_0x3fc83b,_0x35030c){return _0x3fc83b in _0x35030c;}},_0x19ba2c=_0x48c533['bbLvD'](parseKeyPath,_0x2aba92);let _0xb6e22e=_0x45572d;for(let _0x1fe2e6=0x0;_0x48c533['mgNvq'](_0x1fe2e6,_0x48c533['iKOix'](_0x19ba2c['length'],0x1));_0x1fe2e6++){if(_0x48c533[_0x2e6e25(0x172)](_0xb6e22e,null)||_0xb6e22e===undefined||typeof _0xb6e22e!=='object')return![];_0xb6e22e=_0xb6e22e[_0x19ba2c[_0x1fe2e6]];}if(_0xb6e22e===null||_0x48c533['OcCBw'](_0xb6e22e,undefined)||typeof _0xb6e22e!==_0x48c533[_0x2e6e25(0x165)])return![];const _0x4248b5=_0x19ba2c[_0x48c533['iKOix'](_0x19ba2c['length'],0x1)];if(_0x48c533[_0x2e6e25(0x171)](_0x4248b5,_0xb6e22e))return delete _0xb6e22e[_0x4248b5],!![];return![];}function parseKeyPath(_0x1d7ddc){const _0x48314a=_0x21984b,_0x43a4d7={'fmWkH':function(_0x2e2939,_0x470cdf){return _0x2e2939===_0x470cdf;},'fZXef':_0x48314a(0x13d),'RdDym':'setupHeader'},_0x5941db=_0x1d7ddc[_0x48314a(0x136)]('.');return _0x43a4d7['fmWkH'](_0x5941db[0x0],'header')&&(_0x5941db[0x0]=_0x43a4d7[_0x48314a(0x155)]),_0x5941db[0x0]===_0x43a4d7['RdDym']&&(_0x5941db[0x0]='setupHeaders'),_0x5941db;}export function formatSettings(_0x342a40,_0x517494=0x0){const _0x254eba=_0x21984b,_0x31f395={'zpmTG':function(_0x23afaf,_0x24c2eb){return _0x23afaf===_0x24c2eb;},'zLpCj':'object','FAFLc':function(_0x22c23f,_0x41db99){return _0x22c23f!==_0x41db99;}},_0xf26631=[],_0x3b0a3c='\x20\x20'['repeat'](_0x517494);for(const [_0x1caf21,_0x2405c5]of Object['entries'](_0x342a40)){if(_0x2405c5===undefined)continue;if(_0x31f395[_0x254eba(0x160)](typeof _0x2405c5,_0x31f395['zLpCj'])&&_0x31f395['FAFLc'](_0x2405c5,null)){_0xf26631[_0x254eba(0x185)](''+_0x3b0a3c+_0x1caf21+':');for(const [_0x37188e,_0x531dcd]of Object['entries'](_0x2405c5)){_0xf26631[_0x254eba(0x185)](_0x3b0a3c+'\x20\x20'+_0x37188e+':\x20'+_0x531dcd);}}else _0xf26631[_0x254eba(0x185)](''+_0x3b0a3c+_0x1caf21+':\x20'+_0x2405c5);}return _0xf26631[_0x254eba(0x141)]('\x0a');}
@@ -1 +1 @@
1
- function _0x2746(){const _0x336e38=['TMrQr','3332661jHnMjp','1562275LgAdWU','4nlRskY','ranger/SKILL.md','527412IkJhOv','zPCAM','2422346TNeEuP','19432622rzYXYP','PndGo','132740CgEXAi','1035MiRTyl','4510544QRATkU','1GqeuSD','skills','56QjFmbg'];_0x2746=function(){return _0x336e38;};return _0x2746();}(function(_0xd3d240,_0x57efc3){const _0x7754bf=_0x42ad,_0x12314f=_0xd3d240();while(!![]){try{const _0x48a070=parseInt(_0x7754bf(0x189))/0x1*(parseInt(_0x7754bf(0x183))/0x2)+parseInt(_0x7754bf(0x17d))/0x3*(-parseInt(_0x7754bf(0x17f))/0x4)+-parseInt(_0x7754bf(0x17e))/0x5+parseInt(_0x7754bf(0x181))/0x6*(parseInt(_0x7754bf(0x17b))/0x7)+parseInt(_0x7754bf(0x188))/0x8+parseInt(_0x7754bf(0x187))/0x9*(parseInt(_0x7754bf(0x186))/0xa)+-parseInt(_0x7754bf(0x184))/0xb;if(_0x48a070===_0x57efc3)break;else _0x12314f['push'](_0x12314f['shift']());}catch(_0x46205f){_0x12314f['push'](_0x12314f['shift']());}}}(_0x2746,0xc6eb5));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(_0x467abb){const _0x4b325c=_0x42ad,_0x4d55d8={'zPCAM':function(_0x11b282,_0x291bac,_0x119e62,_0xdb4e00,_0x3325cd){return _0x11b282(_0x291bac,_0x119e62,_0xdb4e00,_0x3325cd);},'McGCP':_0x4b325c(0x18a),'PndGo':'utf-8'},_0x412e29=_0x4d55d8[_0x4b325c(0x182)](join,__dirname,'..','..',_0x4d55d8['McGCP']),_0x5d79d6=join(_0x412e29,_0x467abb);try{return readFileSync(_0x5d79d6,_0x4d55d8[_0x4b325c(0x185)]);}catch{return'';}}function _0x42ad(_0x546ed5,_0x57e333){_0x546ed5=_0x546ed5-0x17b;const _0x274600=_0x2746();let _0x42adae=_0x274600[_0x546ed5];return _0x42adae;}export function getRangerSkillContent(){const _0x3004ba=_0x42ad,_0x44dee2={'TMrQr':_0x3004ba(0x180)};return readSkillContent(_0x44dee2[_0x3004ba(0x17c)]);}
1
+ function _0x5a32(_0x2a71fa,_0xc648a3){_0x2a71fa=_0x2a71fa-0xe3;const _0x5b3a85=_0x5b3a();let _0x5a32a8=_0x5b3a85[_0x2a71fa];return _0x5a32a8;}(function(_0x3a8ad6,_0x4655ef){const _0x196322=_0x5a32,_0xb4c5c1=_0x3a8ad6();while(!![]){try{const _0xc8d511=parseInt(_0x196322(0xe3))/0x1+-parseInt(_0x196322(0xe6))/0x2*(parseInt(_0x196322(0xe9))/0x3)+-parseInt(_0x196322(0xed))/0x4+-parseInt(_0x196322(0xe4))/0x5*(-parseInt(_0x196322(0xeb))/0x6)+-parseInt(_0x196322(0xe5))/0x7*(parseInt(_0x196322(0xe8))/0x8)+parseInt(_0x196322(0xee))/0x9*(-parseInt(_0x196322(0xef))/0xa)+parseInt(_0x196322(0xf0))/0xb;if(_0xc8d511===_0x4655ef)break;else _0xb4c5c1['push'](_0xb4c5c1['shift']());}catch(_0x2d1ace){_0xb4c5c1['push'](_0xb4c5c1['shift']());}}}(_0x5b3a,0xea534));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';function _0x5b3a(){const _0x422797=['16801767pCXCoU','10FtTUHx','40909550yrZAgH','XnlqQ','1412332jQmqCD','137405ZznBca','7BvXllE','1116446jPywsw','KPMaZ','5861992xegoSZ','3mXqAyQ','skills','48kHjOPy','fViYt','4934396PxLTzd'];_0x5b3a=function(){return _0x422797;};return _0x5b3a();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x5a2c47){const _0x4a56ae=_0x5a32,_0x28d934={'XnlqQ':function(_0x2b6d80,_0x532470,_0x35548f,_0x412df2,_0x276b06){return _0x2b6d80(_0x532470,_0x35548f,_0x412df2,_0x276b06);},'fViYt':function(_0x20a9c1,_0x77f599,_0x347335){return _0x20a9c1(_0x77f599,_0x347335);},'GPIRj':'utf-8'},_0xc7644=_0x28d934[_0x4a56ae(0xf1)](join,__dirname,'..','..',_0x4a56ae(0xea)),_0x80e7b5=join(_0xc7644,_0x5a2c47);try{return _0x28d934[_0x4a56ae(0xec)](readFileSync,_0x80e7b5,_0x28d934['GPIRj']);}catch{return'';}}export function getRangerSkillContent(){const _0xcba84f=_0x5a32,_0x3cd576={'KPMaZ':function(_0x198d06,_0x30b989){return _0x198d06(_0x30b989);},'qjawe':'ranger/SKILL.md'};return _0x3cd576[_0xcba84f(0xe7)](readSkillContent,_0x3cd576['qjawe']);}
@@ -1 +1 @@
1
- const _0x3f9c7c=_0x5364;(function(_0x1f2996,_0x4b8e44){const _0x508ae2=_0x5364,_0x36b7c1=_0x1f2996();while(!![]){try{const _0x546777=parseInt(_0x508ae2(0xf1))/0x1*(parseInt(_0x508ae2(0xfa))/0x2)+-parseInt(_0x508ae2(0x10e))/0x3*(-parseInt(_0x508ae2(0xed))/0x4)+parseInt(_0x508ae2(0xff))/0x5*(-parseInt(_0x508ae2(0x10a))/0x6)+-parseInt(_0x508ae2(0xfd))/0x7*(parseInt(_0x508ae2(0xf3))/0x8)+-parseInt(_0x508ae2(0x105))/0x9*(-parseInt(_0x508ae2(0xe6))/0xa)+-parseInt(_0x508ae2(0x103))/0xb*(-parseInt(_0x508ae2(0x100))/0xc)+parseInt(_0x508ae2(0x106))/0xd*(-parseInt(_0x508ae2(0xf9))/0xe);if(_0x546777===_0x4b8e44)break;else _0x36b7c1['push'](_0x36b7c1['shift']());}catch(_0x4a3af4){_0x36b7c1['push'](_0x36b7c1['shift']());}}}(_0x25cf,0x2935a));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';function _0x5364(_0x2db094,_0x30c191){_0x2db094=_0x2db094-0xe6;const _0x25cf59=_0x25cf();let _0x5364f7=_0x25cf59[_0x2db094];return _0x5364f7;}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',_0x3f9c7c(0x10b),_0x3f9c7c(0xf2)];export async function installSkill(_0x2209a2,_0x40769a={}){const _0x49e1f5=_0x3f9c7c,_0x17a84c={'yWiQL':_0x49e1f5(0x108),'ThfCc':function(_0x39cbaa){return _0x39cbaa();},'jtEBv':function(_0x2b4256,_0x185b16,_0x442080){return _0x2b4256(_0x185b16,_0x442080);},'OgjvB':function(_0x52f817,_0x5da85a,_0x3a27a3){return _0x52f817(_0x5da85a,_0x3a27a3);},'yevyy':function(_0x758965,_0x426214){return _0x758965(_0x426214);},'QbOVz':function(_0x2ddd5c,_0x322224){return _0x2ddd5c(_0x322224);},'PIjWQ':_0x49e1f5(0x101),'xTJzQ':function(_0xae8143,_0x2bdf00,_0x2fae07){return _0xae8143(_0x2bdf00,_0x2fae07);},'eYFBj':function(_0xfd4f10,_0x59e21a,_0x332826){return _0xfd4f10(_0x59e21a,_0x332826);},'BAPWS':function(_0x575e8b,_0x33f921,_0xcc8675){return _0x575e8b(_0x33f921,_0xcc8675);},'IvsJs':function(_0x3824ed,_0x1f984e,_0x3c18e5){return _0x3824ed(_0x1f984e,_0x3c18e5);},'PGYsz':function(_0x114efb,_0x4afe7c,_0x4ba99f,_0x1678a7){return _0x114efb(_0x4afe7c,_0x4ba99f,_0x1678a7);}},{level:level=_0x49e1f5(0xee),cliVersion:_0xabe6cd,platform:platform=_0x17a84c['yWiQL']}=_0x40769a,_0x552347=_0x17a84c['ThfCc'](getSourceSkillsDir),_0x51598d=_0x17a84c['jtEBv'](join,_0x552347,_0x2209a2),_0xa1f926=_0x17a84c[_0x49e1f5(0x10d)](join,_0x552347,_0x2209a2+_0x49e1f5(0x104)),_0x3fa06d=existsSync(_0x51598d)&&_0x17a84c['yevyy'](statSync,_0x51598d)['isDirectory']()&&_0x17a84c['QbOVz'](existsSync,join(_0x51598d,_0x17a84c['PIjWQ'])),_0x11811d=existsSync(_0xa1f926);if(!_0x3fa06d&&!_0x11811d)return console['warn'](_0x49e1f5(0xf4)+_0x2209a2),![];const _0x4d8fb8=platform==='opencode'?getOpencodeSkillsDir(level):getSkillsDir(level),_0x5bc08e=join(_0x4d8fb8,_0x2209a2);await mkdir(_0x5bc08e,{'recursive':!![]});let _0x3d817f,_0x21d576=[];if(_0x3fa06d){const _0x53b60a=await _0x17a84c['QbOVz'](readdir,_0x51598d),_0x864e25=_0x53b60a['filter'](_0x337d89=>_0x337d89[_0x49e1f5(0x109)]('.md'));for(const _0x8e1679 of _0x864e25){const _0x226335=_0x17a84c[_0x49e1f5(0xfb)](join,_0x51598d,_0x8e1679),_0x5fb998=_0x17a84c[_0x49e1f5(0xf7)](join,_0x5bc08e,_0x8e1679);await copyFile(_0x226335,_0x5fb998),_0x21d576[_0x49e1f5(0x102)](_0x8e1679);}_0x3d817f=await _0x17a84c['xTJzQ'](readFile,_0x17a84c[_0x49e1f5(0xf5)](join,_0x51598d,_0x49e1f5(0x101)),'utf-8');}else{_0x3d817f=await _0x17a84c[_0x49e1f5(0xe9)](readFile,_0xa1f926,'utf-8');const _0x18f5f4=join(_0x5bc08e,_0x49e1f5(0x101));await writeFile(_0x18f5f4,_0x3d817f,_0x49e1f5(0xef)),_0x21d576['push'](_0x17a84c['PIjWQ']);}const {name:_0x222f65}=parseFrontmatter(_0x3d817f);return console['log'](_0x49e1f5(0xf8)+_0x222f65),console[_0x49e1f5(0xe8)](_0x49e1f5(0xeb)+_0x5bc08e),_0x21d576['length']>0x1&&console[_0x49e1f5(0xe8)]('\x20\x20Files:\x20'+_0x21d576[_0x49e1f5(0xf0)](',\x20')),_0x17a84c['PGYsz'](logLocalAgentInstallation,_0x2209a2,{'skillDisplayName':_0x222f65,'installLevel':level},_0xabe6cd)['catch'](()=>{}),!![];}function _0x25cf(){const _0x12d1ca=['163144hJApea','\x20\x20Skill\x20not\x20found:\x20','BAPWS','match','eYFBj','\x20\x20Installed\x20skill:\x20','197652NtGGSf','614252NLHchc','xTJzQ','tidQv','70ESbTAs','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','5Zwebsh','33444JmzyFu','SKILL.md','push','165vlUlii','.md','1203822DMXEpt','26VGdOYT','soFUN','claude','endsWith','1794882XlRWpL','bug-bash','RBdHI','OgjvB','652254XslvFV','10sftIjZ','warn','log','IvsJs','Htmbw','\x20\x20Location:\x20','trim','4fCvcif','project','utf-8','join','1lCTdEV','feature-tracker'];_0x25cf=function(){return _0x12d1ca;};return _0x25cf();}function getSourceSkillsDir(){const _0x1c449e=_0x3f9c7c,_0x151ab5={'tidQv':'skills','Ehgps':function(_0x2e99dc,_0x3111db){return _0x2e99dc(_0x3111db);}},_0xb6b268=[join(__dirname,'..','..',_0x151ab5['tidQv']),join(__dirname,'..','..','..',_0x151ab5[_0x1c449e(0xfc)])];for(const _0x4e2718 of _0xb6b268){if(_0x151ab5['Ehgps'](existsSync,_0x4e2718))return _0x4e2718;}return _0xb6b268[0x0];}function parseFrontmatter(_0xfcab9c){const _0x2d86b8=_0x3f9c7c,_0x467769={'soFUN':'Invalid\x20skill\x20frontmatter'},_0x54f018=_0xfcab9c['match'](/^---\n([\s\S]+?)\n---/);if(!_0x54f018)throw new Error(_0x467769[_0x2d86b8(0x107)]);const _0x2f46d5=_0x54f018[0x1],_0x17561e=_0x2f46d5[_0x2d86b8(0xf6)](/name:\s*(.+)/),_0xa8f28c=_0x2f46d5[_0x2d86b8(0xf6)](/description:\s*"?(.+?)"?\n/);return{'name':_0x17561e?.[0x1][_0x2d86b8(0xec)]()||'','description':_0xa8f28c?.[0x1]['trim']()||''};}export async function removeSkill(_0x380e70,_0x38448c){const _0x25ab8d=_0x3f9c7c,_0x2dee7f={'Htmbw':function(_0xcface9,_0x3d58f3){return _0xcface9(_0x3d58f3);},'RBdHI':function(_0xaaa8a,_0x3af0bf,_0x479cf5){return _0xaaa8a(_0x3af0bf,_0x479cf5);}},_0x36fcfb=_0x2dee7f[_0x25ab8d(0xea)](getSkillsDir,_0x38448c),_0x237fd2=_0x2dee7f[_0x25ab8d(0x10c)](join,_0x36fcfb,_0x380e70);if(!existsSync(_0x237fd2))return![];try{return await rm(_0x237fd2,{'recursive':!![]}),console[_0x25ab8d(0xe8)]('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x380e70),!![];}catch{return console[_0x25ab8d(0xe7)](_0x25ab8d(0xfe)+_0x380e70),![];}}
1
+ const _0x21cc63=_0x3253;(function(_0x20ef3d,_0x4c0ebc){const _0x1e2f1d=_0x3253,_0x1e2321=_0x20ef3d();while(!![]){try{const _0x298455=-parseInt(_0x1e2f1d(0x173))/0x1+-parseInt(_0x1e2f1d(0x170))/0x2+-parseInt(_0x1e2f1d(0x163))/0x3+parseInt(_0x1e2f1d(0x162))/0x4+parseInt(_0x1e2f1d(0x171))/0x5+parseInt(_0x1e2f1d(0x168))/0x6+parseInt(_0x1e2f1d(0x166))/0x7*(parseInt(_0x1e2f1d(0x16f))/0x8);if(_0x298455===_0x4c0ebc)break;else _0x1e2321['push'](_0x1e2321['shift']());}catch(_0x5ac575){_0x1e2321['push'](_0x1e2321['shift']());}}}(_0x3d68,0xb1648));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';function _0x3253(_0x41557a,_0x1183fa){_0x41557a=_0x41557a-0x15a;const _0x3d6815=_0x3d68();let _0x32537d=_0x3d6815[_0x41557a];return _0x32537d;}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=[_0x21cc63(0x165)];export const DEPRECATED_SKILLS=['e2e-test-recommender','bug-bash','feature-tracker'];export async function installSkill(_0x13c734,_0x3e5443={}){const _0x32abb0=_0x21cc63,_0x2753fc={'StFAt':_0x32abb0(0x15c),'bNVGo':'claude','PVeZw':function(_0x7d11ed,_0x1ec080,_0x391dcd){return _0x7d11ed(_0x1ec080,_0x391dcd);},'FycGi':function(_0x4bebc7,_0x570872){return _0x4bebc7(_0x570872);},'rgaEo':function(_0x246c88,_0x88ef8c){return _0x246c88(_0x88ef8c);},'Vqreq':function(_0x2cba14,_0x3a6911){return _0x2cba14&&_0x3a6911;},'ciUmI':function(_0xa8bf66,_0x33a437){return _0xa8bf66===_0x33a437;},'Dzwvv':'opencode','dZcCY':function(_0x5bb870,_0x5c13df,_0x4c09cf){return _0x5bb870(_0x5c13df,_0x4c09cf);},'vHpwW':'SKILL.md','ayrof':function(_0x48cfdd,_0x523d65,_0x2b2a72,_0x45ab25){return _0x48cfdd(_0x523d65,_0x2b2a72,_0x45ab25);},'oxbIS':'utf-8','TNpii':function(_0xa92956,_0x2bc238){return _0xa92956(_0x2bc238);}},{level:level=_0x2753fc['StFAt'],cliVersion:_0x335aad,platform:platform=_0x2753fc[_0x32abb0(0x160)]}=_0x3e5443,_0x3c5e56=getSourceSkillsDir(),_0x4e8828=_0x2753fc[_0x32abb0(0x167)](join,_0x3c5e56,_0x13c734),_0x1646a3=join(_0x3c5e56,_0x13c734+'.md'),_0x395483=_0x2753fc[_0x32abb0(0x169)](existsSync,_0x4e8828)&&_0x2753fc['FycGi'](statSync,_0x4e8828)['isDirectory']()&&_0x2753fc[_0x32abb0(0x169)](existsSync,join(_0x4e8828,_0x32abb0(0x164))),_0x3e9bf8=_0x2753fc['rgaEo'](existsSync,_0x1646a3);if(_0x2753fc['Vqreq'](!_0x395483,!_0x3e9bf8))return console[_0x32abb0(0x176)]('\x20\x20Skill\x20not\x20found:\x20'+_0x13c734),![];const _0x141feb=_0x2753fc['ciUmI'](platform,_0x2753fc[_0x32abb0(0x174)])?getOpencodeSkillsDir(level):getSkillsDir(level),_0x6a80ec=_0x2753fc['PVeZw'](join,_0x141feb,_0x13c734);await _0x2753fc[_0x32abb0(0x16e)](mkdir,_0x6a80ec,{'recursive':!![]});let _0x3f64d4,_0x2df41d=[];if(_0x395483){const _0x55eaea=await _0x2753fc[_0x32abb0(0x169)](readdir,_0x4e8828),_0x13b12e=_0x55eaea['filter'](_0x31f15d=>_0x31f15d[_0x32abb0(0x172)]('.md'));for(const _0x46d75e of _0x13b12e){const _0x3f671e=join(_0x4e8828,_0x46d75e),_0x28d954=_0x2753fc[_0x32abb0(0x167)](join,_0x6a80ec,_0x46d75e);await copyFile(_0x3f671e,_0x28d954),_0x2df41d['push'](_0x46d75e);}_0x3f64d4=await _0x2753fc['PVeZw'](readFile,join(_0x4e8828,'SKILL.md'),'utf-8');}else{_0x3f64d4=await _0x2753fc['dZcCY'](readFile,_0x1646a3,_0x32abb0(0x15d));const _0x32bbd7=join(_0x6a80ec,_0x2753fc['vHpwW']);await _0x2753fc['ayrof'](writeFile,_0x32bbd7,_0x3f64d4,_0x2753fc[_0x32abb0(0x15a)]),_0x2df41d['push']('SKILL.md');}const {name:_0x1ff218}=_0x2753fc[_0x32abb0(0x16c)](parseFrontmatter,_0x3f64d4);return console[_0x32abb0(0x177)](_0x32abb0(0x16b)+_0x1ff218),console[_0x32abb0(0x177)](_0x32abb0(0x175)+_0x6a80ec),_0x2df41d[_0x32abb0(0x161)]>0x1&&console['log']('\x20\x20Files:\x20'+_0x2df41d['join'](',\x20')),logLocalAgentInstallation(_0x13c734,{'skillDisplayName':_0x1ff218,'installLevel':level},_0x335aad)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0xe80393=_0x21cc63,_0x33260d={'yAtgs':function(_0x37d6ec,_0x1690d1,_0x4d8aa0,_0x3f1b7d,_0x3410eb){return _0x37d6ec(_0x1690d1,_0x4d8aa0,_0x3f1b7d,_0x3410eb);},'CGtWf':_0xe80393(0x15b)},_0x5998d7=[_0x33260d[_0xe80393(0x178)](join,__dirname,'..','..',_0x33260d['CGtWf']),join(__dirname,'..','..','..','skills')];for(const _0x48c53d of _0x5998d7){if(existsSync(_0x48c53d))return _0x48c53d;}return _0x5998d7[0x0];}function _0x3d68(){const _0x474a05=['bNVGo','length','4075348MfCJXy','3767571IPVMLy','SKILL.md','ranger','35413BiIqkI','PVeZw','4797894KdVfdm','FycGi','\x20\x20Removed\x20deprecated\x20skill:\x20','\x20\x20Installed\x20skill:\x20','TNpii','trim','dZcCY','2808PaWFqZ','953598ETVwue','167140uWmJSt','endsWith','1168367AxbwDY','Dzwvv','\x20\x20Location:\x20','warn','log','yAtgs','oxbIS','skills','project','utf-8','qjHyX','Invalid\x20skill\x20frontmatter'];_0x3d68=function(){return _0x474a05;};return _0x3d68();}function parseFrontmatter(_0x499633){const _0x428b4f=_0x21cc63,_0x3379f4={'qjHyX':_0x428b4f(0x15f)},_0x27041b=_0x499633['match'](/^---\n([\s\S]+?)\n---/);if(!_0x27041b)throw new Error(_0x3379f4[_0x428b4f(0x15e)]);const _0x553b0c=_0x27041b[0x1],_0x34a44e=_0x553b0c['match'](/name:\s*(.+)/),_0x351edc=_0x553b0c['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0x34a44e?.[0x1][_0x428b4f(0x16d)]()||'','description':_0x351edc?.[0x1][_0x428b4f(0x16d)]()||''};}export async function removeSkill(_0x92852,_0x445179){const _0x4c83f3=_0x21cc63,_0x501258={'PZNRE':function(_0x5a1d30,_0x4e1aa7,_0x4ee427){return _0x5a1d30(_0x4e1aa7,_0x4ee427);}},_0x25f03c=getSkillsDir(_0x445179),_0x254d6b=_0x501258['PZNRE'](join,_0x25f03c,_0x92852);if(!existsSync(_0x254d6b))return![];try{return await rm(_0x254d6b,{'recursive':!![]}),console[_0x4c83f3(0x177)](_0x4c83f3(0x16a)+_0x92852),!![];}catch{return console['warn']('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x92852),![];}}
@@ -1 +1 @@
1
- function _0x365d(){const _0x44d795=['593185qWOKxU','cAQOO','push','endsWith','YEgLC','mvkti','170fqaoHH','AdBRa','UsoND','5486211YLIetV','maxTicks','1745555EyXzMW','8bEQQJY','from','fqEUg','readInt16BE','RCqfO','Gnbpp','jdovU','tdbKP','jaBEH','2241ATzkzv','tlnVK','noKTL','qpiIS','VZWeS','RsQeZ','wstkJ','LYbzX','clusters','Stitched\x20','FusWl','exit','lfDNM','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','GcarI','log','pow','ZVrWN','alloc','stitchWebmFiles.js','TTpHt','argv','copy','ibMVz','ZRGNj','XiQiW','slice','max','length','1043992sdXtZh','eMRRl','6109960yzZcPV','rbcWq','cvlhv','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','concat','PHXlp','giiWc','ZXANm','\x20files\x20->\x20','timestamp','2767728DGtsYV'];_0x365d=function(){return _0x44d795;};return _0x365d();}const _0x3d958c=_0x2d89;(function(_0x28a1e4,_0x184622){const _0x14b868=_0x2d89,_0x2adcb4=_0x28a1e4();while(!![]){try{const _0x1dae6e=parseInt(_0x14b868(0x152))/0x1+parseInt(_0x14b868(0x165))/0x2*(parseInt(_0x14b868(0x174))/0x3)+parseInt(_0x14b868(0x16b))/0x4*(parseInt(_0x14b868(0x15f))/0x5)+-parseInt(_0x14b868(0x15e))/0x6+parseInt(_0x14b868(0x16a))/0x7+-parseInt(_0x14b868(0x154))/0x8+parseInt(_0x14b868(0x168))/0x9;if(_0x1dae6e===_0x184622)break;else _0x2adcb4['push'](_0x2adcb4['shift']());}catch(_0x4999e1){_0x2adcb4['push'](_0x2adcb4['shift']());}}}(_0x365d,0xeeef0));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(_0x329b78,_0x2cc0a1){const _0x5d7aca=_0x2d89,_0x1d4223={'GcarI':function(_0xdb7b8a,_0x432497){return _0xdb7b8a>=_0x432497;},'rbcWq':function(_0x4e6258,_0x300153){return _0x4e6258-_0x300153;},'aahgF':function(_0xe015c9,_0x5b6395){return _0xe015c9+_0x5b6395;},'TTpHt':function(_0x384412,_0x29dfbd){return _0x384412*_0x29dfbd;}};if(_0x1d4223[_0x5d7aca(0x143)](_0x2cc0a1,_0x329b78[_0x5d7aca(0x151)]))return[0x0,0x0];const _0x5852b2=_0x329b78[_0x2cc0a1];let _0x4a2339=0x1,_0x4857ec=0x80;while(_0x4a2339<=0x8&&!(_0x5852b2&_0x4857ec)){_0x4a2339++,_0x4857ec>>=0x1;}if(_0x2cc0a1+_0x4a2339>_0x329b78['length'])return[0x0,0x0];let _0x4c1fa1=_0x5852b2&_0x1d4223[_0x5d7aca(0x155)](_0x4857ec,0x1);for(let _0x50639c=0x1;_0x50639c<_0x4a2339;_0x50639c++){_0x4c1fa1=_0x1d4223['aahgF'](_0x1d4223[_0x5d7aca(0x149)](_0x4c1fa1,0x100),_0x329b78[_0x2cc0a1+_0x50639c]);}return[_0x4c1fa1,_0x4a2339];}function readId(_0x5ba223,_0x3bcf79){const _0x3900bb=_0x2d89,_0x59890a={'wstkJ':function(_0x1c0b54,_0x168a88){return _0x1c0b54>=_0x168a88;},'PWerj':function(_0x591e3e,_0x2a71e1){return _0x591e3e>_0x2a71e1;},'giiWc':function(_0x53e9c4,_0x4a2146){return _0x53e9c4<_0x4a2146;},'PgsEo':function(_0x35f34d,_0x3723e0){return _0x35f34d*_0x3723e0;},'puxrh':function(_0x48888e,_0x91db1c){return _0x48888e+_0x91db1c;}};if(_0x59890a[_0x3900bb(0x13b)](_0x3bcf79,_0x5ba223['length']))return[0x0,0x0];const _0x1b2baf=_0x5ba223[_0x3bcf79];let _0x2bbd76;if(_0x1b2baf>=0x80)_0x2bbd76=0x1;else{if(_0x1b2baf>=0x40)_0x2bbd76=0x2;else{if(_0x59890a['wstkJ'](_0x1b2baf,0x20))_0x2bbd76=0x3;else{if(_0x59890a[_0x3900bb(0x13b)](_0x1b2baf,0x10))_0x2bbd76=0x4;else return[_0x1b2baf,0x1];}}}if(_0x59890a['PWerj'](_0x3bcf79+_0x2bbd76,_0x5ba223['length']))return[0x0,0x0];let _0x58d59=0x0;for(let _0x2f6933=0x0;_0x59890a[_0x3900bb(0x15a)](_0x2f6933,_0x2bbd76);_0x2f6933++){_0x58d59=_0x59890a['PgsEo'](_0x58d59,0x100)+_0x5ba223[_0x59890a['puxrh'](_0x3bcf79,_0x2f6933)];}return[_0x58d59,_0x2bbd76];}function _0x2d89(_0x4c8155,_0x181150){_0x4c8155=_0x4c8155-0x13a;const _0x365d8d=_0x365d();let _0x2d89c1=_0x365d8d[_0x4c8155];return _0x2d89c1;}function readUint(_0x144e71,_0x127122,_0x45e12f){const _0x45296a={'nqDvN':function(_0x59d0bd,_0x1476d5){return _0x59d0bd+_0x1476d5;},'qwDRZ':function(_0x1e434d,_0x3a93c5){return _0x1e434d*_0x3a93c5;}};let _0x293383=0x0;for(let _0x393cb4=0x0;_0x393cb4<_0x45e12f;_0x393cb4++){_0x293383=_0x45296a['nqDvN'](_0x45296a['qwDRZ'](_0x293383,0x100),_0x144e71[_0x45296a['nqDvN'](_0x127122,_0x393cb4)]);}return _0x293383;}function isUnknownSize(_0x3a96da,_0x1c882d){const _0x2ed070=_0x2d89,_0xa1f824={'FJyCT':function(_0x492740,_0x59ce66){return _0x492740===_0x59ce66;},'RsQeZ':function(_0x2560c4,_0xd0f83f){return _0x2560c4*_0xd0f83f;}};return _0xa1f824['FJyCT'](_0x3a96da,Math[_0x2ed070(0x145)](0x2,_0xa1f824[_0x2ed070(0x13a)](0x7,_0x1c882d))-0x1);}function writeVint(_0x27dccf,_0x9448a){const _0x31ad11=_0x2d89,_0x15dade={'ZXANm':function(_0x496417,_0x5f149a){return _0x496417||_0x5f149a;},'Gnbpp':function(_0x2fe785,_0x1822b6){return _0x2fe785-_0x1822b6;},'cAQOO':function(_0x180ed9,_0x35052d){return _0x180ed9-_0x35052d;},'ZVrWN':function(_0x43644c,_0x52a60b){return _0x43644c&_0x52a60b;}};let _0x4d6243=_0x15dade[_0x31ad11(0x15b)](_0x9448a,0x1);while(_0x15dade['Gnbpp'](Math[_0x31ad11(0x145)](0x2,0x7*_0x4d6243),0x2)<_0x27dccf)_0x4d6243++;const _0x36a042=Buffer['alloc'](_0x4d6243);for(let _0x1dc5d7=_0x15dade[_0x31ad11(0x160)](_0x4d6243,0x1);_0x1dc5d7>=0x0;_0x1dc5d7--){_0x36a042[_0x1dc5d7]=_0x15dade[_0x31ad11(0x146)](_0x27dccf,0xff),_0x27dccf=Math['floor'](_0x27dccf/0x100);}return _0x36a042[0x0]|=0x1<<_0x15dade[_0x31ad11(0x170)](0x8,_0x4d6243),_0x36a042;}function writeUint(_0x2ffd3f,_0x2d08c5){const _0xbafc06=_0x2d89,_0x418d3b={'QBcMl':function(_0x18254a,_0x1ed1b6){return _0x18254a/_0x1ed1b6;}},_0x1e40a2=Buffer[_0xbafc06(0x147)](_0x2d08c5);for(let _0xc4fc40=_0x2d08c5-0x1;_0xc4fc40>=0x0;_0xc4fc40--){_0x1e40a2[_0xc4fc40]=_0x2ffd3f&0xff,_0x2ffd3f=Math['floor'](_0x418d3b['QBcMl'](_0x2ffd3f,0x100));}return _0x1e40a2;}function writeUnknownSizeVint(_0x3f8043){const _0x11218a=_0x2d89,_0x34b7b0={'tdbKP':function(_0x520788,_0x13b2e9){return _0x520788-_0x13b2e9;}},_0x4fd1ff=Buffer[_0x11218a(0x147)](_0x3f8043,0xff);return _0x4fd1ff[0x0]=0xff>>_0x34b7b0[_0x11218a(0x172)](_0x3f8043,0x1),_0x4fd1ff;}function uintSize(_0xace9c9){const _0xf83687={'KHHgg':function(_0x7b555b,_0x2256e4){return _0x7b555b>_0x2256e4;}};if(_0xace9c9===0x0)return 0x1;let _0x37648c=0x0,_0x397140=_0xace9c9;while(_0xf83687['KHHgg'](_0x397140,0x0)){_0x37648c++,_0x397140=Math['floor'](_0x397140/0x100);}return _0x37648c;}function findTimestampScale(_0x67c44,_0x257fd4){const _0x37402b=_0x2d89,_0x444c12={'ibMVz':function(_0x4c407c,_0x1fbf16){return _0x4c407c+_0x1fbf16;},'YEgLC':function(_0x2b2f32,_0x3f6ce9){return _0x2b2f32===_0x3f6ce9;},'aLKlk':function(_0x398cba,_0x40e184){return _0x398cba<_0x40e184;},'ZRGNj':function(_0x2361b5,_0x10aa90,_0xc76dbd){return _0x2361b5(_0x10aa90,_0xc76dbd);},'PHXlp':function(_0x3bd44c,_0x5cc720){return _0x3bd44c+_0x5cc720;}};let _0x1a4042=_0x257fd4;const _0x283243=Math['min'](_0x67c44[_0x37402b(0x151)],_0x257fd4+0x2710);while(_0x1a4042<_0x283243){const [_0x410022,_0x3fb90d]=readId(_0x67c44,_0x1a4042),[_0x2dd16c,_0x5512ae]=readVint(_0x67c44,_0x444c12['ibMVz'](_0x1a4042,_0x3fb90d));if(_0x444c12[_0x37402b(0x163)](_0x410022,ID_INFO)){let _0xe50e13=_0x444c12[_0x37402b(0x14c)](_0x1a4042+_0x3fb90d,_0x5512ae);const _0x853efe=_0xe50e13+_0x2dd16c;while(_0x444c12['aLKlk'](_0xe50e13,_0x853efe)){const [_0x140f2c,_0x45348d]=readId(_0x67c44,_0xe50e13),[_0x4acda7,_0x50630b]=_0x444c12['ZRGNj'](readVint,_0x67c44,_0x444c12['ibMVz'](_0xe50e13,_0x45348d));if(_0x140f2c===ID_TIMESTAMP_SCALE)return readUint(_0x67c44,_0xe50e13+_0x45348d+_0x50630b,_0x4acda7);_0xe50e13+=_0x444c12['PHXlp'](_0x444c12['ibMVz'](_0x45348d,_0x50630b),_0x4acda7);}break;}if(_0x410022===ID_CLUSTER)break;if(_0x444c12[_0x37402b(0x14d)](isUnknownSize,_0x2dd16c,_0x5512ae))break;_0x1a4042+=_0x444c12['PHXlp'](_0x444c12[_0x37402b(0x159)](_0x3fb90d,_0x5512ae),_0x2dd16c);}return 0xf4240;}function findFirstClusterOffset(_0x4fe915,_0x55df81){const _0x2db7a7=_0x2d89,_0x4a002c={'tlnVK':function(_0x56b1c9,_0x26a930){return _0x56b1c9===_0x26a930;},'jaBEH':function(_0x38c82d,_0x3be826,_0x52c2cf){return _0x38c82d(_0x3be826,_0x52c2cf);}};let _0x72b89b=_0x55df81;while(_0x72b89b<_0x4fe915[_0x2db7a7(0x151)]){const [_0xf71961,_0x49b90c]=readId(_0x4fe915,_0x72b89b);if(_0x4a002c[_0x2db7a7(0x175)](_0xf71961,ID_CLUSTER))return _0x72b89b;const [_0x555272,_0x860c89]=_0x4a002c[_0x2db7a7(0x173)](readVint,_0x4fe915,_0x72b89b+_0x49b90c);if(_0x4a002c['jaBEH'](isUnknownSize,_0x555272,_0x860c89))return _0x72b89b;_0x72b89b+=_0x49b90c+_0x860c89+_0x555272;}return _0x4fe915['length'];}function findClusterEnd(_0x2b5768,_0x5533ee,_0x2daf44,_0x4d9bf1){const _0x266c04=_0x2d89,_0x53dfdd={'AdBRa':function(_0x6c3dee,_0x31cbc4){return _0x6c3dee+_0x31cbc4;},'MwEdm':function(_0x3aad48,_0x52c9e5){return _0x3aad48-_0x52c9e5;}};if(!isUnknownSize(_0x2daf44,_0x4d9bf1))return _0x53dfdd['AdBRa'](_0x5533ee,_0x2daf44);const _0x1c26a4=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x366d3d=_0x5533ee;while(_0x366d3d<_0x53dfdd['MwEdm'](_0x2b5768['length'],0x4)){const [_0x2d92a3,_0xcbfbd2]=readId(_0x2b5768,_0x366d3d);if(_0x1c26a4['has'](_0x2d92a3))return _0x366d3d;const [_0x239b8b,_0x2cac83]=readVint(_0x2b5768,_0x366d3d+_0xcbfbd2);if(isUnknownSize(_0x239b8b,_0x2cac83))return _0x2b5768[_0x266c04(0x151)];_0x366d3d+=_0x53dfdd[_0x266c04(0x166)](_0xcbfbd2+_0x2cac83,_0x239b8b);}return _0x2b5768['length'];}function extractClusters(_0x1df205,_0xbbc40){const _0x25410a=_0x2d89,_0x472535={'WjQWX':function(_0x47c724,_0xeb9b55){return _0x47c724<_0xeb9b55;},'LYbzX':function(_0x2efb50,_0x2aa094,_0x1bb148){return _0x2efb50(_0x2aa094,_0x1bb148);},'lfDNM':function(_0x265cc3,_0x36df03){return _0x265cc3+_0x36df03;},'ovAnG':function(_0x2d19e9,_0x216653){return _0x2d19e9+_0x216653;},'AupII':function(_0x3ef5da,_0x21bc8f){return _0x3ef5da===_0x21bc8f;},'SPtko':function(_0x5767c9,_0x272e7f,_0x7d7568,_0x495462){return _0x5767c9(_0x272e7f,_0x7d7568,_0x495462);},'PVldj':function(_0x3b756c,_0x50608e){return _0x3b756c+_0x50608e;},'eMRRl':function(_0x32da00,_0x2fbea6){return _0x32da00+_0x2fbea6;},'JBUfo':function(_0x53a4b3,_0x2d1cba,_0x13a1f8){return _0x53a4b3(_0x2d1cba,_0x13a1f8);},'noKTL':function(_0x351c88,_0x416bf8){return _0x351c88<_0x416bf8;},'LEXZf':function(_0x45d637,_0x43692a,_0x191c71){return _0x45d637(_0x43692a,_0x191c71);},'eLRCL':function(_0x31813,_0x3986f0){return _0x31813===_0x3986f0;},'ocwDN':function(_0x54cfdb,_0x259330){return _0x54cfdb+_0x259330;}},_0x51d1b8=[],_0x3e1304=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x2aacbe=0x0;while(_0x472535['WjQWX'](_0x2aacbe,_0x1df205['length'])){const _0x226cd7=_0x1df205['indexOf'](_0x3e1304,_0x2aacbe);if(_0x226cd7===-0x1)break;const [_0x2ecfe6,_0x58a3ac]=_0x472535['LYbzX'](readId,_0x1df205,_0x226cd7);if(_0x2ecfe6!==ID_CLUSTER){_0x2aacbe=_0x226cd7+0x1;continue;}const [_0x3eb912,_0x54b9b3]=readVint(_0x1df205,_0x226cd7+_0x58a3ac),_0x219387=_0x472535[_0x25410a(0x141)](_0x472535['ovAnG'](_0x226cd7,_0x58a3ac),_0x54b9b3),_0x3714ca=findClusterEnd(_0x1df205,_0x219387,_0x3eb912,_0x54b9b3);let _0x4d9f37=_0x219387,_0xe2c99=0x0,_0x26dfbf=0x2,_0x58100c=![],_0x10bd2e=Buffer[_0x25410a(0x147)](0x0),_0x46697e=Buffer['alloc'](0x0);while(_0x472535['WjQWX'](_0x4d9f37,_0x3714ca)){const [_0x564e8a,_0x4c6df2]=readId(_0x1df205,_0x4d9f37),[_0x839cbb,_0x2783c6]=readVint(_0x1df205,_0x4d9f37+_0x4c6df2);if(_0x472535['AupII'](_0x564e8a,ID_TIMESTAMP)){_0xe2c99=_0x472535['SPtko'](readUint,_0x1df205,_0x472535['ovAnG'](_0x4d9f37,_0x4c6df2)+_0x2783c6,_0x839cbb),_0x26dfbf=_0x839cbb,_0x58100c=!![],_0x10bd2e=_0x1df205['slice'](_0x219387,_0x4d9f37);const _0x5bba7e=_0x472535['PVldj'](_0x472535['eMRRl'](_0x4d9f37,_0x4c6df2),_0x2783c6)+_0x839cbb;_0x46697e=_0x1df205[_0x25410a(0x14f)](_0x5bba7e,_0x3714ca);break;}if(_0x564e8a===ID_CLUSTER)break;if(_0x472535['JBUfo'](isUnknownSize,_0x839cbb,_0x2783c6))break;_0x4d9f37+=_0x472535[_0x25410a(0x153)](_0x4c6df2,_0x2783c6)+_0x839cbb;}!_0x58100c&&(_0x46697e=_0x1df205['slice'](_0x219387,_0x3714ca));let _0x3c7968=_0xe2c99;_0x4d9f37=_0x219387;while(_0x472535[_0x25410a(0x176)](_0x4d9f37,_0x3714ca)){const [_0x3c5d4b,_0x5dbaa1]=_0x472535['LEXZf'](readId,_0x1df205,_0x4d9f37),[_0x22a179,_0xc44b14]=_0x472535[_0x25410a(0x13c)](readVint,_0x1df205,_0x4d9f37+_0x5dbaa1);if(_0x472535['eLRCL'](_0x3c5d4b,ID_SIMPLE_BLOCK)&&_0x22a179>=0x4){const _0x1d605a=_0x472535[_0x25410a(0x153)](_0x4d9f37,_0x5dbaa1)+_0xc44b14,[,_0x18c528]=_0x472535['JBUfo'](readVint,_0x1df205,_0x1d605a),_0x246fd2=_0x1df205[_0x25410a(0x16e)](_0x1d605a+_0x18c528),_0x3d629d=_0xe2c99+_0x246fd2;if(_0x3d629d>_0x3c7968)_0x3c7968=_0x3d629d;}if(_0x3c5d4b===ID_CLUSTER)break;if(isUnknownSize(_0x22a179,_0xc44b14))break;_0x4d9f37+=_0x472535['ocwDN'](_0x5dbaa1,_0xc44b14)+_0x22a179;}_0x51d1b8['push']({'timestamp':_0xe2c99,'maxTicks':_0x3c7968,'bodyBeforeTimestamp':_0x10bd2e,'bodyAfterTimestamp':_0x46697e,'timestampElementSize':_0x26dfbf}),_0x2aacbe=_0x3714ca;}return _0x51d1b8;}function parseWebm(_0x401de5){const _0x24a102=_0x2d89,_0x51d54b={'mvkti':function(_0x4c3723,_0x3cb113,_0x25f24d){return _0x4c3723(_0x3cb113,_0x25f24d);},'XiQiW':function(_0x2da713,_0x107c75){return _0x2da713+_0x107c75;},'jdovU':function(_0x4312d0,_0x3dd3c7,_0x209d9c){return _0x4312d0(_0x3dd3c7,_0x209d9c);},'laEqn':function(_0x522a83,_0x2d83d5,_0x5f2e7c){return _0x522a83(_0x2d83d5,_0x5f2e7c);},'iefYp':function(_0x14ebee,_0x5b26a5,_0x7e679b){return _0x14ebee(_0x5b26a5,_0x7e679b);}};let _0x2ed7d4=0x0;const [,_0x9b2b16]=_0x51d54b[_0x24a102(0x164)](readId,_0x401de5,_0x2ed7d4),[_0x587d06,_0x174d71]=readVint(_0x401de5,_0x51d54b['XiQiW'](_0x2ed7d4,_0x9b2b16));_0x2ed7d4+=_0x51d54b['XiQiW'](_0x51d54b['XiQiW'](_0x9b2b16,_0x174d71),_0x587d06);const [_0x32c164,_0x514e47]=_0x51d54b[_0x24a102(0x171)](readId,_0x401de5,_0x2ed7d4);if(_0x32c164!==ID_SEGMENT)return null;const [,_0x2714ff]=readVint(_0x401de5,_0x51d54b[_0x24a102(0x14e)](_0x2ed7d4,_0x514e47)),_0x5ef6e3=_0x2ed7d4+_0x514e47+_0x2714ff,_0x299207=_0x51d54b['laEqn'](findTimestampScale,_0x401de5,_0x5ef6e3),_0x373786=findFirstClusterOffset(_0x401de5,_0x5ef6e3),_0x422c64=_0x401de5[_0x24a102(0x14f)](0x0,_0x373786),_0x5d9173=_0x51d54b['iefYp'](extractClusters,_0x401de5,_0x299207);let _0x59c411=0x0;for(const _0x37c078 of _0x5d9173){if(_0x37c078[_0x24a102(0x169)]>_0x59c411)_0x59c411=_0x37c078[_0x24a102(0x169)];}return{'header':_0x422c64,'clusters':_0x5d9173,'timestampScale':_0x299207,'maxTimestampTicks':_0x59c411};}function buildCluster(_0x2e1a13,_0x2cdb9c,_0xba8ac7){const _0x36f241=_0x2d89,_0x136656={'MnpSE':function(_0x1e5f49,_0x36298b){return _0x1e5f49(_0x36298b);}},_0xd10c28=Buffer[_0x36f241(0x16c)]([0x1f,0x43,0xb6,0x75]),_0x5bda38=Math[_0x36f241(0x150)](0x4,_0x136656['MnpSE'](uintSize,_0x2e1a13)),_0x4329ec=Buffer[_0x36f241(0x158)]([Buffer['from']([ID_TIMESTAMP]),writeVint(_0x5bda38),writeUint(_0x2e1a13,_0x5bda38)]),_0x1ec316=Buffer['concat']([_0x2cdb9c,_0x4329ec,_0xba8ac7]),_0x2c1583=writeVint(_0x1ec316[_0x36f241(0x151)]);return Buffer[_0x36f241(0x158)]([_0xd10c28,_0x2c1583,_0x1ec316]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x3f3333){const _0x1a5ede=_0x2d89,_0x1e322b={'fqEUg':function(_0x23e28b,_0x49eeaf){return _0x23e28b+_0x49eeaf;},'qpiIS':function(_0x59fd19,_0x2e0c02){return _0x59fd19(_0x2e0c02);},'IlWke':function(_0x2c7686,_0x59f517){return _0x2c7686+_0x59f517;},'UsoND':function(_0x407e55,_0x2b0114,_0x146aa2){return _0x407e55(_0x2b0114,_0x146aa2);},'LqMZV':function(_0x4f446b,_0x26453e,_0x382811){return _0x4f446b(_0x26453e,_0x382811);},'MYuMV':function(_0x3b404f,_0x3e032c){return _0x3b404f+_0x3e032c;},'UenmT':function(_0x48c073,_0x378387){return _0x48c073===_0x378387;},'RCqfO':function(_0x2932d3,_0x2d56ee){return _0x2932d3===_0x2d56ee;},'cvlhv':function(_0x36e4c3,_0x706956){return _0x36e4c3+_0x706956;},'WQepJ':function(_0x4f0c09,_0x4d9f3c,_0x44cb35){return _0x4f0c09(_0x4d9f3c,_0x44cb35);}},_0x12fc90=Buffer['from'](_0x3f3333);let _0x3487e5=0x0;const [,_0x380494]=readId(_0x12fc90,_0x3487e5),[_0x5bb5ff,_0x4df59f]=readVint(_0x12fc90,_0x1e322b[_0x1a5ede(0x16d)](_0x3487e5,_0x380494)),_0x5e895f=_0x3487e5+_0x380494+_0x4df59f+_0x5bb5ff,[,_0x1561f0]=readId(_0x12fc90,_0x5e895f),[,_0x414515]=readVint(_0x12fc90,_0x1e322b[_0x1a5ede(0x16d)](_0x5e895f,_0x1561f0)),_0x1d85dd=_0x1e322b[_0x1a5ede(0x16d)](_0x1e322b[_0x1a5ede(0x16d)](_0x5e895f,_0x1561f0),_0x414515),_0x321af3=_0x1e322b[_0x1a5ede(0x177)](writeUnknownSizeVint,_0x414515);_0x321af3[_0x1a5ede(0x14b)](_0x12fc90,_0x1e322b['IlWke'](_0x5e895f,_0x1561f0));let _0x1685a6=_0x1d85dd;const _0x2ad11e=Math['min'](_0x12fc90[_0x1a5ede(0x151)],_0x1e322b['fqEUg'](_0x1d85dd,0x2710));while(_0x1685a6<_0x2ad11e){const [_0x82b994,_0x283e5a]=_0x1e322b[_0x1a5ede(0x167)](readId,_0x12fc90,_0x1685a6),[_0x4a045e,_0x3df864]=_0x1e322b['LqMZV'](readVint,_0x12fc90,_0x1e322b['MYuMV'](_0x1685a6,_0x283e5a));if(_0x1e322b['UenmT'](_0x82b994,ID_CLUSTER))break;if(_0x1e322b['UsoND'](isUnknownSize,_0x4a045e,_0x3df864))break;if(_0x1e322b[_0x1a5ede(0x16f)](_0x82b994,ID_INFO)){const _0x47a090=_0x1e322b[_0x1a5ede(0x156)](_0x1685a6+_0x283e5a,_0x3df864),_0x15a2a0=_0x47a090+_0x4a045e,_0x56d2b0=[];let _0x4fb163=_0x47a090;while(_0x4fb163<_0x15a2a0){const [_0xe1a3ba,_0x44ceaf]=readId(_0x12fc90,_0x4fb163),[_0x437d00,_0x465d4e]=_0x1e322b[_0x1a5ede(0x167)](readVint,_0x12fc90,_0x4fb163+_0x44ceaf),_0x1e93b7=_0x44ceaf+_0x465d4e+_0x437d00;_0xe1a3ba!==ID_DURATION&&_0x56d2b0[_0x1a5ede(0x161)](_0x12fc90['slice'](_0x4fb163,_0x4fb163+_0x1e93b7)),_0x4fb163+=_0x1e93b7;}const _0x55d5e7=Buffer['concat'](_0x56d2b0),_0x23d6b2=Buffer['concat']([_0x12fc90['slice'](_0x1685a6,_0x1685a6+_0x283e5a),_0x1e322b['WQepJ'](writeVint,_0x55d5e7['length'],_0x3df864)]);return Buffer['concat']([_0x12fc90[_0x1a5ede(0x14f)](0x0,_0x1685a6),_0x23d6b2,_0x55d5e7,_0x12fc90[_0x1a5ede(0x14f)](_0x15a2a0)]);}_0x1685a6+=_0x1e322b['fqEUg'](_0x283e5a,_0x3df864)+_0x4a045e;}return _0x12fc90;}export function stitchWebmFiles(_0x3b478a,_0x1ffb2d){const _0x1a3863=_0x2d89,_0x322977={'mRpIP':function(_0x5f1eaf,_0x212504){return _0x5f1eaf<=_0x212504;},'FusWl':function(_0x30c207,_0x1e6ba){return _0x30c207(_0x1e6ba);},'TkNZZ':function(_0x1722fd,_0x280dce,_0x2cca17,_0x23f506){return _0x1722fd(_0x280dce,_0x2cca17,_0x23f506);},'VZWeS':function(_0x4fdac1,_0x2bf2fc,_0xa9e0cf){return _0x4fdac1(_0x2bf2fc,_0xa9e0cf);}};if(_0x322977['mRpIP'](_0x3b478a[_0x1a3863(0x151)],0x1))return![];const _0x1ce944=[];for(const _0x5ab367 of _0x3b478a){const _0x442974=_0x322977[_0x1a3863(0x13f)](readFileSync,_0x5ab367),_0x5d9dfd=parseWebm(_0x442974);if(!_0x5d9dfd||_0x5d9dfd[_0x1a3863(0x13d)]['length']===0x0)return![];_0x1ce944['push'](_0x5d9dfd);}const _0x1fa2c6=_0x1ce944[0x0],_0x231d77=rebuildHeaderWithoutDuration(_0x1fa2c6['header']),_0x299a15=[_0x231d77];let _0x5b9a10=0x0;for(let _0x5dcf49=0x0;_0x5dcf49<_0x1ce944[_0x1a3863(0x151)];_0x5dcf49++){const _0x188fde=_0x1ce944[_0x5dcf49];for(const _0x1d0509 of _0x188fde['clusters']){const _0x5c49d3=_0x1d0509[_0x1a3863(0x15d)]+_0x5b9a10;_0x299a15[_0x1a3863(0x161)](_0x322977['TkNZZ'](buildCluster,_0x5c49d3,_0x1d0509['bodyBeforeTimestamp'],_0x1d0509['bodyAfterTimestamp']));}const _0x23b7bf=0x1e;_0x5b9a10+=_0x188fde['maxTimestampTicks']+_0x23b7bf;}return _0x322977[_0x1a3863(0x178)](writeFileSync,_0x1ffb2d,Buffer['concat'](_0x299a15)),!![];}if(process[_0x3d958c(0x14a)][0x1]?.['endsWith']('stitchWebmFiles.ts')||process['argv'][0x1]?.[_0x3d958c(0x162)](_0x3d958c(0x148))){const args=process['argv']['slice'](0x2);args[_0x3d958c(0x151)]<0x3&&(console['error'](_0x3d958c(0x157)),process[_0x3d958c(0x140)](0x1));const output=args[args['length']-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console['log'](_0x3d958c(0x13e)+inputs[_0x3d958c(0x151)]+_0x3d958c(0x15c)+output):console[_0x3d958c(0x144)](_0x3d958c(0x142));}
1
+ const _0x34890e=_0x5083;function _0x5083(_0x558256,_0x2d68a4){_0x558256=_0x558256-0x148;const _0x1b5cd0=_0x1b5c();let _0x5083b4=_0x1b5cd0[_0x558256];return _0x5083b4;}(function(_0x18368d,_0x5dda08){const _0x169789=_0x5083,_0x30a62a=_0x18368d();while(!![]){try{const _0x5053b7=-parseInt(_0x169789(0x16f))/0x1*(-parseInt(_0x169789(0x150))/0x2)+-parseInt(_0x169789(0x18e))/0x3+parseInt(_0x169789(0x192))/0x4*(-parseInt(_0x169789(0x176))/0x5)+-parseInt(_0x169789(0x177))/0x6+parseInt(_0x169789(0x165))/0x7*(-parseInt(_0x169789(0x187))/0x8)+-parseInt(_0x169789(0x14b))/0x9+parseInt(_0x169789(0x169))/0xa;if(_0x5053b7===_0x5dda08)break;else _0x30a62a['push'](_0x30a62a['shift']());}catch(_0x21a701){_0x30a62a['push'](_0x30a62a['shift']());}}}(_0x1b5c,0x4477c));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(_0x4590b9,_0x3f4e63){const _0x3c60b7={'wqFOm':function(_0x3985e6,_0x8898a5){return _0x3985e6>=_0x8898a5;},'daApc':function(_0xeff98f,_0x30a696){return _0xeff98f&_0x30a696;},'HmGOZ':function(_0x187442,_0x57f67e){return _0x187442<_0x57f67e;},'COLDY':function(_0x33df86,_0x28d185){return _0x33df86*_0x28d185;}};if(_0x3c60b7['wqFOm'](_0x3f4e63,_0x4590b9['length']))return[0x0,0x0];const _0x46d642=_0x4590b9[_0x3f4e63];let _0x2fa4bf=0x1,_0x345bf0=0x80;while(_0x2fa4bf<=0x8&&!_0x3c60b7['daApc'](_0x46d642,_0x345bf0)){_0x2fa4bf++,_0x345bf0>>=0x1;}if(_0x3f4e63+_0x2fa4bf>_0x4590b9['length'])return[0x0,0x0];let _0xe036c4=_0x46d642&_0x345bf0-0x1;for(let _0x49d65c=0x1;_0x3c60b7['HmGOZ'](_0x49d65c,_0x2fa4bf);_0x49d65c++){_0xe036c4=_0x3c60b7['COLDY'](_0xe036c4,0x100)+_0x4590b9[_0x3f4e63+_0x49d65c];}return[_0xe036c4,_0x2fa4bf];}function readId(_0x443d3a,_0x1fc765){const _0x55ac1f=_0x5083,_0x3711c4={'IxTCs':function(_0x35ad76,_0x22be47){return _0x35ad76>=_0x22be47;},'oFuEX':function(_0x1944da,_0x48194c){return _0x1944da>_0x48194c;},'jFquF':function(_0x1816fd,_0x3e7cd1){return _0x1816fd+_0x3e7cd1;},'NBigW':function(_0x860350,_0x129c7d){return _0x860350<_0x129c7d;},'OZfjb':function(_0x417c72,_0x37b06e){return _0x417c72*_0x37b06e;}};if(_0x3711c4[_0x55ac1f(0x14a)](_0x1fc765,_0x443d3a['length']))return[0x0,0x0];const _0x476f63=_0x443d3a[_0x1fc765];let _0x234bda;if(_0x476f63>=0x80)_0x234bda=0x1;else{if(_0x476f63>=0x40)_0x234bda=0x2;else{if(_0x476f63>=0x20)_0x234bda=0x3;else{if(_0x476f63>=0x10)_0x234bda=0x4;else return[_0x476f63,0x1];}}}if(_0x3711c4[_0x55ac1f(0x18c)](_0x3711c4['jFquF'](_0x1fc765,_0x234bda),_0x443d3a['length']))return[0x0,0x0];let _0x4e7926=0x0;for(let _0x21e5f6=0x0;_0x3711c4[_0x55ac1f(0x16d)](_0x21e5f6,_0x234bda);_0x21e5f6++){_0x4e7926=_0x3711c4['OZfjb'](_0x4e7926,0x100)+_0x443d3a[_0x3711c4[_0x55ac1f(0x164)](_0x1fc765,_0x21e5f6)];}return[_0x4e7926,_0x234bda];}function readUint(_0x10ab02,_0x7e635e,_0x13d53f){const _0x154b75=_0x5083,_0x49b14b={'dTTYc':function(_0x523228,_0x2727a5){return _0x523228<_0x2727a5;},'sIeAA':function(_0x2792c3,_0x597f3d){return _0x2792c3+_0x597f3d;},'JIfLF':function(_0x28715c,_0x50e50c){return _0x28715c*_0x50e50c;}};let _0x1ba3df=0x0;for(let _0x196b59=0x0;_0x49b14b['dTTYc'](_0x196b59,_0x13d53f);_0x196b59++){_0x1ba3df=_0x49b14b[_0x154b75(0x14c)](_0x49b14b['JIfLF'](_0x1ba3df,0x100),_0x10ab02[_0x49b14b['sIeAA'](_0x7e635e,_0x196b59)]);}return _0x1ba3df;}function isUnknownSize(_0x33bf4d,_0x45478f){const _0x61daf0=_0x5083,_0x208d40={'Baxwh':function(_0x116e96,_0x51bb35){return _0x116e96===_0x51bb35;},'TvWdW':function(_0x2d9ed6,_0x1d0fae){return _0x2d9ed6-_0x1d0fae;}};return _0x208d40[_0x61daf0(0x158)](_0x33bf4d,_0x208d40[_0x61daf0(0x18b)](Math['pow'](0x2,0x7*_0x45478f),0x1));}function writeVint(_0x353a13,_0x3fb1e1){const _0x369c34=_0x5083,_0x235e49={'TdxLj':function(_0x4c73ab,_0x53206e){return _0x4c73ab||_0x53206e;},'DwYlQ':function(_0x452023,_0x2710b7){return _0x452023<_0x2710b7;},'BVfAp':function(_0x25e76c,_0x20543a){return _0x25e76c-_0x20543a;},'wUnyo':function(_0x9f6144,_0x10c1b5){return _0x9f6144-_0x10c1b5;},'fkVlE':function(_0x38fae5,_0x81892c){return _0x38fae5>=_0x81892c;},'apBNA':function(_0x3dc71e,_0x5b7045){return _0x3dc71e&_0x5b7045;},'XPefP':function(_0x3347e1,_0x375c1e){return _0x3347e1<<_0x375c1e;}};let _0x18e656=_0x235e49[_0x369c34(0x15e)](_0x3fb1e1,0x1);while(_0x235e49[_0x369c34(0x191)](_0x235e49[_0x369c34(0x149)](Math['pow'](0x2,0x7*_0x18e656),0x2),_0x353a13))_0x18e656++;const _0x1045f6=Buffer['alloc'](_0x18e656);for(let _0x19429d=_0x235e49['wUnyo'](_0x18e656,0x1);_0x235e49['fkVlE'](_0x19429d,0x0);_0x19429d--){_0x1045f6[_0x19429d]=_0x235e49[_0x369c34(0x170)](_0x353a13,0xff),_0x353a13=Math[_0x369c34(0x17a)](_0x353a13/0x100);}return _0x1045f6[0x0]|=_0x235e49['XPefP'](0x1,0x8-_0x18e656),_0x1045f6;}function writeUint(_0x4e6268,_0x3633b9){const _0x128f53=_0x5083,_0x423dbd={'hwzgP':function(_0x44eb85,_0x243ce2){return _0x44eb85-_0x243ce2;},'kIyVZ':function(_0x4be7f9,_0x4869d7){return _0x4be7f9&_0x4869d7;},'fEvzx':function(_0x5eb17c,_0x191de6){return _0x5eb17c/_0x191de6;}},_0xcdcd6b=Buffer['alloc'](_0x3633b9);for(let _0x15993a=_0x423dbd[_0x128f53(0x173)](_0x3633b9,0x1);_0x15993a>=0x0;_0x15993a--){_0xcdcd6b[_0x15993a]=_0x423dbd['kIyVZ'](_0x4e6268,0xff),_0x4e6268=Math[_0x128f53(0x17a)](_0x423dbd[_0x128f53(0x162)](_0x4e6268,0x100));}return _0xcdcd6b;}function writeUnknownSizeVint(_0x70d718){const _0x5408e9=Buffer['alloc'](_0x70d718,0xff);return _0x5408e9[0x0]=0xff>>_0x70d718-0x1,_0x5408e9;}function uintSize(_0x31ad76){const _0x1354c9={'FMPBQ':function(_0xb1de0e,_0x3cf014){return _0xb1de0e===_0x3cf014;},'pkCgy':function(_0x2daef8,_0x526cfc){return _0x2daef8>_0x526cfc;},'TaaNt':function(_0x17eece,_0x25478e){return _0x17eece/_0x25478e;}};if(_0x1354c9['FMPBQ'](_0x31ad76,0x0))return 0x1;let _0x32762b=0x0,_0x5c2118=_0x31ad76;while(_0x1354c9['pkCgy'](_0x5c2118,0x0)){_0x32762b++,_0x5c2118=Math['floor'](_0x1354c9['TaaNt'](_0x5c2118,0x100));}return _0x32762b;}function findTimestampScale(_0xa127e7,_0x6e3696){const _0x1feda8=_0x5083,_0x3c9b10={'PXYZr':function(_0x42e384,_0xa7ba0b){return _0x42e384+_0xa7ba0b;},'RTbeD':function(_0x1e544b,_0x28c050,_0x4e5f46){return _0x1e544b(_0x28c050,_0x4e5f46);},'ATOKc':function(_0x5b0801,_0x4a91e1){return _0x5b0801===_0x4a91e1;},'HpLBM':function(_0x55f612,_0x1acc42){return _0x55f612+_0x1acc42;},'dDnqi':function(_0x11e4a4,_0x564c95){return _0x11e4a4<_0x564c95;},'RNJXa':function(_0x48af57,_0x29079d,_0x4894ce){return _0x48af57(_0x29079d,_0x4894ce);},'BRyxl':function(_0x176492,_0x3e4aa9){return _0x176492+_0x3e4aa9;},'sXFlB':function(_0x38cad1,_0x36a897){return _0x38cad1+_0x36a897;},'caqzc':function(_0x3f0be4,_0x2d3670){return _0x3f0be4+_0x2d3670;},'dNCbn':function(_0x25e34a,_0xf302e8,_0x9cad43){return _0x25e34a(_0xf302e8,_0x9cad43);}};let _0x40acab=_0x6e3696;const _0x2b6207=Math[_0x1feda8(0x14f)](_0xa127e7[_0x1feda8(0x17f)],_0x3c9b10[_0x1feda8(0x16a)](_0x6e3696,0x2710));while(_0x40acab<_0x2b6207){const [_0x328f3f,_0x3bbb11]=_0x3c9b10[_0x1feda8(0x17e)](readId,_0xa127e7,_0x40acab),[_0x545a53,_0x50ef0b]=_0x3c9b10[_0x1feda8(0x17e)](readVint,_0xa127e7,_0x40acab+_0x3bbb11);if(_0x3c9b10[_0x1feda8(0x174)](_0x328f3f,ID_INFO)){let _0x4809b0=_0x3c9b10['HpLBM'](_0x40acab,_0x3bbb11)+_0x50ef0b;const _0x156ab4=_0x3c9b10[_0x1feda8(0x17c)](_0x4809b0,_0x545a53);while(_0x3c9b10['dDnqi'](_0x4809b0,_0x156ab4)){const [_0x3cd445,_0x31905b]=_0x3c9b10[_0x1feda8(0x161)](readId,_0xa127e7,_0x4809b0),[_0x4d509d,_0x4ab9a9]=_0x3c9b10[_0x1feda8(0x161)](readVint,_0xa127e7,_0x3c9b10['BRyxl'](_0x4809b0,_0x31905b));if(_0x3cd445===ID_TIMESTAMP_SCALE)return readUint(_0xa127e7,_0x3c9b10['sXFlB'](_0x3c9b10[_0x1feda8(0x14e)](_0x4809b0,_0x31905b),_0x4ab9a9),_0x4d509d);_0x4809b0+=_0x3c9b10['caqzc'](_0x31905b+_0x4ab9a9,_0x4d509d);}break;}if(_0x3c9b10['ATOKc'](_0x328f3f,ID_CLUSTER))break;if(_0x3c9b10[_0x1feda8(0x16b)](isUnknownSize,_0x545a53,_0x50ef0b))break;_0x40acab+=_0x3bbb11+_0x50ef0b+_0x545a53;}return 0xf4240;}function _0x1b5c(){const _0x4f3863=['endsWith','pIkqQ','GDQPn','Stitched\x20','argv','3940624DkOsEx','bodyAfterTimestamp','QSoew','push','TvWdW','oFuEX','DQrCC','1064496AEWTJk','cvXlB','jRgUk','DwYlQ','4rYZVZR','neduF','AUMxU','slice','PJMdi','clusters','BVfAp','IxTCs','4124880cSCTAa','sIeAA','wcGhF','BRyxl','min','65904ubAcHO','qkMIz','bkjHP','IlGGI','JMkuo','MzMlc','concat','TWmjx','Baxwh','gvUcQ','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','maxTimestampTicks','stitchWebmFiles.js','zfiEH','TdxLj','gONbi','owTUZ','RNJXa','fEvzx','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','jFquF','7ztsMhc','dhCpo','NzpDb','biAge','20996970NOhTnb','PXYZr','dNCbn','moxyC','NBigW','UhXIV','5BOIbCk','apBNA','log','MnWgM','hwzgP','ATOKc','RIqll','2508685OcZshS','1059276DfZGrE','hjQKZ','fLkmp','floor','from','HpLBM','alloc','RTbeD','length','rsAhz','maxTicks'];_0x1b5c=function(){return _0x4f3863;};return _0x1b5c();}function findFirstClusterOffset(_0x44b43e,_0x5ae5e4){const _0x4e56e5=_0x5083,_0x60d34c={'GDQPn':function(_0x35107c,_0x47cf6c,_0x317abb){return _0x35107c(_0x47cf6c,_0x317abb);},'MnWgM':function(_0x580fb9,_0x4e782d,_0x14ce8f){return _0x580fb9(_0x4e782d,_0x14ce8f);},'MzMlc':function(_0x395e09,_0x4c6dae){return _0x395e09+_0x4c6dae;}};let _0x562c84=_0x5ae5e4;while(_0x562c84<_0x44b43e[_0x4e56e5(0x17f)]){const [_0x1d467f,_0x1fa778]=_0x60d34c[_0x4e56e5(0x184)](readId,_0x44b43e,_0x562c84);if(_0x1d467f===ID_CLUSTER)return _0x562c84;const [_0x5904c4,_0x26e28e]=readVint(_0x44b43e,_0x562c84+_0x1fa778);if(_0x60d34c[_0x4e56e5(0x172)](isUnknownSize,_0x5904c4,_0x26e28e))return _0x562c84;_0x562c84+=_0x60d34c[_0x4e56e5(0x155)](_0x1fa778+_0x26e28e,_0x5904c4);}return _0x44b43e[_0x4e56e5(0x17f)];}function findClusterEnd(_0x3d8466,_0xcbdb75,_0x4404ac,_0x5a760d){const _0x4883fd=_0x5083,_0x1f2abe={'IlGGI':function(_0x124ca9,_0x42e497){return _0x124ca9+_0x42e497;},'rsAhz':function(_0x584c84,_0x3bf57c,_0x5aaacc){return _0x584c84(_0x3bf57c,_0x5aaacc);},'apemr':function(_0x1d9363,_0x502364,_0x18232c){return _0x1d9363(_0x502364,_0x18232c);},'moxyC':function(_0x25ac16,_0x273b8b,_0x489ac0){return _0x25ac16(_0x273b8b,_0x489ac0);}};if(!isUnknownSize(_0x4404ac,_0x5a760d))return _0x1f2abe['IlGGI'](_0xcbdb75,_0x4404ac);const _0x5964de=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x14590c=_0xcbdb75;while(_0x14590c<_0x3d8466['length']-0x4){const [_0x5780d3,_0x3b42e5]=_0x1f2abe[_0x4883fd(0x180)](readId,_0x3d8466,_0x14590c);if(_0x5964de['has'](_0x5780d3))return _0x14590c;const [_0x7840ae,_0x2e69b1]=_0x1f2abe['apemr'](readVint,_0x3d8466,_0x14590c+_0x3b42e5);if(_0x1f2abe[_0x4883fd(0x16c)](isUnknownSize,_0x7840ae,_0x2e69b1))return _0x3d8466['length'];_0x14590c+=_0x1f2abe[_0x4883fd(0x153)](_0x3b42e5+_0x2e69b1,_0x7840ae);}return _0x3d8466['length'];}function extractClusters(_0x4d536c,_0x2661b1){const _0x2e04ac=_0x5083,_0x422ee4={'BmPyP':function(_0x3b1b16,_0x564f79){return _0x3b1b16===_0x564f79;},'neduF':function(_0x5a24bc,_0x487420,_0x55ca76){return _0x5a24bc(_0x487420,_0x55ca76);},'cvXlB':function(_0x313875,_0x24834b){return _0x313875!==_0x24834b;},'TWmjx':function(_0x2fe1cc,_0x23bb73){return _0x2fe1cc+_0x23bb73;},'qkMIz':function(_0x264849,_0x10c1a2,_0x3110d0,_0x4c8e53,_0x563ccc){return _0x264849(_0x10c1a2,_0x3110d0,_0x4c8e53,_0x563ccc);},'RIqll':function(_0x1e99a4,_0x4a057f){return _0x1e99a4<_0x4a057f;},'biAge':function(_0x40cda6,_0x3baaee){return _0x40cda6===_0x3baaee;},'UhXIV':function(_0x2ea1ab,_0xc3f14e){return _0x2ea1ab+_0xc3f14e;},'pJisc':function(_0x55e7a7,_0x2615bf){return _0x55e7a7>=_0x2615bf;},'YhEDH':function(_0x19f8eb,_0x3a6f32){return _0x19f8eb+_0x3a6f32;},'xcmyB':function(_0x4e62dc,_0x3a5d4f,_0x3468b4){return _0x4e62dc(_0x3a5d4f,_0x3468b4);}},_0x5e6370=[],_0x2e3800=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x40874e=0x0;while(_0x40874e<_0x4d536c['length']){const _0xb671dd=_0x4d536c['indexOf'](_0x2e3800,_0x40874e);if(_0x422ee4['BmPyP'](_0xb671dd,-0x1))break;const [_0x22a713,_0x199ab0]=_0x422ee4['neduF'](readId,_0x4d536c,_0xb671dd);if(_0x422ee4[_0x2e04ac(0x18f)](_0x22a713,ID_CLUSTER)){_0x40874e=_0x422ee4[_0x2e04ac(0x157)](_0xb671dd,0x1);continue;}const [_0x237ad3,_0x384170]=readVint(_0x4d536c,_0xb671dd+_0x199ab0),_0xe6bebb=_0xb671dd+_0x199ab0+_0x384170,_0xdd38cf=_0x422ee4[_0x2e04ac(0x151)](findClusterEnd,_0x4d536c,_0xe6bebb,_0x237ad3,_0x384170);let _0x3f16c9=_0xe6bebb,_0x50f4f0=0x0,_0x414df0=0x2,_0x5e6067=![],_0x357e15=Buffer[_0x2e04ac(0x17d)](0x0),_0x462805=Buffer['alloc'](0x0);while(_0x422ee4[_0x2e04ac(0x175)](_0x3f16c9,_0xdd38cf)){const [_0x451b9c,_0x2a09be]=readId(_0x4d536c,_0x3f16c9),[_0x3ab378,_0x382e3a]=_0x422ee4[_0x2e04ac(0x193)](readVint,_0x4d536c,_0x3f16c9+_0x2a09be);if(_0x422ee4[_0x2e04ac(0x168)](_0x451b9c,ID_TIMESTAMP)){_0x50f4f0=readUint(_0x4d536c,_0x422ee4[_0x2e04ac(0x16e)](_0x3f16c9,_0x2a09be)+_0x382e3a,_0x3ab378),_0x414df0=_0x3ab378,_0x5e6067=!![],_0x357e15=_0x4d536c['slice'](_0xe6bebb,_0x3f16c9);const _0x370e95=_0x422ee4['UhXIV'](_0x3f16c9,_0x2a09be)+_0x382e3a+_0x3ab378;_0x462805=_0x4d536c[_0x2e04ac(0x195)](_0x370e95,_0xdd38cf);break;}if(_0x422ee4['BmPyP'](_0x451b9c,ID_CLUSTER))break;if(_0x422ee4['neduF'](isUnknownSize,_0x3ab378,_0x382e3a))break;_0x3f16c9+=_0x2a09be+_0x382e3a+_0x3ab378;}!_0x5e6067&&(_0x462805=_0x4d536c['slice'](_0xe6bebb,_0xdd38cf));let _0x16d6b5=_0x50f4f0;_0x3f16c9=_0xe6bebb;while(_0x3f16c9<_0xdd38cf){const [_0x596751,_0x522a0f]=readId(_0x4d536c,_0x3f16c9),[_0x5ec3b7,_0x56e451]=_0x422ee4[_0x2e04ac(0x193)](readVint,_0x4d536c,_0x3f16c9+_0x522a0f);if(_0x596751===ID_SIMPLE_BLOCK&&_0x422ee4['pJisc'](_0x5ec3b7,0x4)){const _0x2c9fd9=_0x422ee4['YhEDH'](_0x3f16c9+_0x522a0f,_0x56e451),[,_0x96f323]=_0x422ee4['xcmyB'](readVint,_0x4d536c,_0x2c9fd9),_0x526ed4=_0x4d536c['readInt16BE'](_0x422ee4['TWmjx'](_0x2c9fd9,_0x96f323)),_0x1cdc27=_0x50f4f0+_0x526ed4;if(_0x1cdc27>_0x16d6b5)_0x16d6b5=_0x1cdc27;}if(_0x596751===ID_CLUSTER)break;if(isUnknownSize(_0x5ec3b7,_0x56e451))break;_0x3f16c9+=_0x422ee4['YhEDH'](_0x522a0f,_0x56e451)+_0x5ec3b7;}_0x5e6370[_0x2e04ac(0x18a)]({'timestamp':_0x50f4f0,'maxTicks':_0x16d6b5,'bodyBeforeTimestamp':_0x357e15,'bodyAfterTimestamp':_0x462805,'timestampElementSize':_0x414df0}),_0x40874e=_0xdd38cf;}return _0x5e6370;}function parseWebm(_0x5cc8cb){const _0x106158=_0x5083,_0x13c7a6={'PJMdi':function(_0x233377,_0x3da5e9,_0x40ef89){return _0x233377(_0x3da5e9,_0x40ef89);},'zfiEH':function(_0x49257d,_0x1fea86){return _0x49257d+_0x1fea86;},'DQrCC':function(_0x22a136,_0x329082){return _0x22a136!==_0x329082;},'bkjHP':function(_0x4a4fc3,_0x368d26){return _0x4a4fc3+_0x368d26;}};let _0x4e027f=0x0;const [,_0x4807c4]=_0x13c7a6[_0x106158(0x196)](readId,_0x5cc8cb,_0x4e027f),[_0x5a5946,_0x36fddf]=readVint(_0x5cc8cb,_0x4e027f+_0x4807c4);_0x4e027f+=_0x13c7a6['zfiEH'](_0x4807c4+_0x36fddf,_0x5a5946);const [_0x443609,_0x2caad0]=readId(_0x5cc8cb,_0x4e027f);if(_0x13c7a6[_0x106158(0x18d)](_0x443609,ID_SEGMENT))return null;const [,_0x1efe59]=readVint(_0x5cc8cb,_0x13c7a6[_0x106158(0x15d)](_0x4e027f,_0x2caad0)),_0x1dff1a=_0x13c7a6[_0x106158(0x152)](_0x4e027f+_0x2caad0,_0x1efe59),_0x57936f=_0x13c7a6['PJMdi'](findTimestampScale,_0x5cc8cb,_0x1dff1a),_0x98f926=findFirstClusterOffset(_0x5cc8cb,_0x1dff1a),_0x33b32e=_0x5cc8cb['slice'](0x0,_0x98f926),_0x4b7b06=_0x13c7a6[_0x106158(0x196)](extractClusters,_0x5cc8cb,_0x57936f);let _0x4b01c6=0x0;for(const _0x101f32 of _0x4b7b06){if(_0x101f32[_0x106158(0x181)]>_0x4b01c6)_0x4b01c6=_0x101f32[_0x106158(0x181)];}return{'header':_0x33b32e,'clusters':_0x4b7b06,'timestampScale':_0x57936f,'maxTimestampTicks':_0x4b01c6};}function buildCluster(_0x2a8b9a,_0xe426fe,_0xa12ab6){const _0x4ed4c6=_0x5083,_0x344920={'wcGhF':function(_0x2f0cb1,_0x1ea0cf){return _0x2f0cb1(_0x1ea0cf);},'gONbi':function(_0x46249d,_0x2b994f,_0x2c83f8){return _0x46249d(_0x2b994f,_0x2c83f8);}},_0x1a2089=Buffer[_0x4ed4c6(0x17b)]([0x1f,0x43,0xb6,0x75]),_0x64346=Math['max'](0x4,uintSize(_0x2a8b9a)),_0x4a6f61=Buffer[_0x4ed4c6(0x156)]([Buffer[_0x4ed4c6(0x17b)]([ID_TIMESTAMP]),_0x344920[_0x4ed4c6(0x14d)](writeVint,_0x64346),_0x344920[_0x4ed4c6(0x15f)](writeUint,_0x2a8b9a,_0x64346)]),_0x536a5e=Buffer['concat']([_0xe426fe,_0x4a6f61,_0xa12ab6]),_0x333ce3=writeVint(_0x536a5e['length']);return Buffer['concat']([_0x1a2089,_0x333ce3,_0x536a5e]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x1f6efb){const _0x45affa=_0x5083,_0x2aef14={'QSoew':function(_0x59ebc7,_0x248464,_0xbb8293){return _0x59ebc7(_0x248464,_0xbb8293);},'NzpDb':function(_0x2054e5,_0x27cdd4){return _0x2054e5+_0x27cdd4;},'dhCpo':function(_0x51315d,_0x5f5480){return _0x51315d+_0x5f5480;},'fLkmp':function(_0x596d6e,_0xe1143f){return _0x596d6e+_0xe1143f;},'iXzxE':function(_0x5ac603,_0x1aa0ff){return _0x5ac603(_0x1aa0ff);},'jRgUk':function(_0x4d180b,_0x4a2882){return _0x4d180b<_0x4a2882;},'JMkuo':function(_0x23622a,_0x3e30c1){return _0x23622a+_0x3e30c1;},'pIkqQ':function(_0x4b666e,_0x1e2b2a){return _0x4b666e===_0x1e2b2a;},'gvUcQ':function(_0x2cc919,_0x3e934f,_0x3804de){return _0x2cc919(_0x3e934f,_0x3804de);},'hjQKZ':function(_0x220ad1,_0x3c37f6){return _0x220ad1+_0x3c37f6;}},_0x4b5d8f=Buffer['from'](_0x1f6efb);let _0x393436=0x0;const [,_0xb1bf70]=readId(_0x4b5d8f,_0x393436),[_0x1e22d3,_0xf4baef]=_0x2aef14['QSoew'](readVint,_0x4b5d8f,_0x393436+_0xb1bf70),_0x52c2f3=_0x2aef14[_0x45affa(0x167)](_0x393436+_0xb1bf70+_0xf4baef,_0x1e22d3),[,_0x359133]=_0x2aef14[_0x45affa(0x189)](readId,_0x4b5d8f,_0x52c2f3),[,_0x2cbed6]=readVint(_0x4b5d8f,_0x2aef14[_0x45affa(0x166)](_0x52c2f3,_0x359133)),_0x1717dd=_0x2aef14[_0x45affa(0x179)](_0x2aef14['dhCpo'](_0x52c2f3,_0x359133),_0x2cbed6),_0x8dfb1f=_0x2aef14['iXzxE'](writeUnknownSizeVint,_0x2cbed6);_0x8dfb1f['copy'](_0x4b5d8f,_0x52c2f3+_0x359133);let _0x380c46=_0x1717dd;const _0x275317=Math[_0x45affa(0x14f)](_0x4b5d8f['length'],_0x2aef14[_0x45affa(0x166)](_0x1717dd,0x2710));while(_0x2aef14[_0x45affa(0x190)](_0x380c46,_0x275317)){const [_0x14a998,_0x1ef543]=_0x2aef14['QSoew'](readId,_0x4b5d8f,_0x380c46),[_0x56f6b1,_0x1c58b8]=readVint(_0x4b5d8f,_0x2aef14[_0x45affa(0x154)](_0x380c46,_0x1ef543));if(_0x14a998===ID_CLUSTER)break;if(isUnknownSize(_0x56f6b1,_0x1c58b8))break;if(_0x2aef14[_0x45affa(0x183)](_0x14a998,ID_INFO)){const _0x571454=_0x2aef14['JMkuo'](_0x2aef14[_0x45affa(0x179)](_0x380c46,_0x1ef543),_0x1c58b8),_0xefba3c=_0x571454+_0x56f6b1,_0x401e5b=[];let _0x431be1=_0x571454;while(_0x431be1<_0xefba3c){const [_0x515bac,_0x19e3c8]=_0x2aef14[_0x45affa(0x159)](readId,_0x4b5d8f,_0x431be1),[_0x15fe3d,_0x202549]=readVint(_0x4b5d8f,_0x2aef14[_0x45affa(0x178)](_0x431be1,_0x19e3c8)),_0x42efab=_0x2aef14[_0x45affa(0x166)](_0x19e3c8+_0x202549,_0x15fe3d);_0x515bac!==ID_DURATION&&_0x401e5b[_0x45affa(0x18a)](_0x4b5d8f[_0x45affa(0x195)](_0x431be1,_0x2aef14[_0x45affa(0x178)](_0x431be1,_0x42efab))),_0x431be1+=_0x42efab;}const _0x328d98=Buffer['concat'](_0x401e5b),_0x1af605=Buffer['concat']([_0x4b5d8f[_0x45affa(0x195)](_0x380c46,_0x380c46+_0x1ef543),writeVint(_0x328d98[_0x45affa(0x17f)],_0x1c58b8)]);return Buffer[_0x45affa(0x156)]([_0x4b5d8f[_0x45affa(0x195)](0x0,_0x380c46),_0x1af605,_0x328d98,_0x4b5d8f['slice'](_0xefba3c)]);}_0x380c46+=_0x2aef14['fLkmp'](_0x2aef14['hjQKZ'](_0x1ef543,_0x1c58b8),_0x56f6b1);}return _0x4b5d8f;}export function stitchWebmFiles(_0x30410f,_0x57321d){const _0x220954=_0x5083,_0x851363={'Gosaw':function(_0x110da4,_0x5d9ffd){return _0x110da4<=_0x5d9ffd;},'uMdnV':function(_0x10eb06,_0x19485b){return _0x10eb06(_0x19485b);},'quxet':function(_0x5aafb2,_0x4d7695){return _0x5aafb2(_0x4d7695);},'SorPZ':function(_0x5b5fbb,_0x4f92db){return _0x5b5fbb===_0x4f92db;},'owTUZ':function(_0x476478,_0x5104fc){return _0x476478<_0x5104fc;},'AUMxU':function(_0x56eb08,_0x1cfa02,_0x2d5343,_0x441381){return _0x56eb08(_0x1cfa02,_0x2d5343,_0x441381);}};if(_0x851363['Gosaw'](_0x30410f['length'],0x1))return![];const _0x1bfa15=[];for(const _0x984216 of _0x30410f){const _0x1e53ba=_0x851363['uMdnV'](readFileSync,_0x984216),_0x469da8=_0x851363['quxet'](parseWebm,_0x1e53ba);if(!_0x469da8||_0x851363['SorPZ'](_0x469da8['clusters'][_0x220954(0x17f)],0x0))return![];_0x1bfa15['push'](_0x469da8);}const _0x1e3909=_0x1bfa15[0x0],_0x81bc7c=rebuildHeaderWithoutDuration(_0x1e3909['header']),_0x292453=[_0x81bc7c];let _0x5265b9=0x0;for(let _0x10075a=0x0;_0x851363[_0x220954(0x160)](_0x10075a,_0x1bfa15['length']);_0x10075a++){const _0x2e707b=_0x1bfa15[_0x10075a];for(const _0x104e56 of _0x2e707b[_0x220954(0x148)]){const _0x2929a1=_0x104e56['timestamp']+_0x5265b9;_0x292453['push'](_0x851363[_0x220954(0x194)](buildCluster,_0x2929a1,_0x104e56['bodyBeforeTimestamp'],_0x104e56[_0x220954(0x188)]));}const _0x2f0b46=0x1e;_0x5265b9+=_0x2e707b[_0x220954(0x15b)]+_0x2f0b46;}return writeFileSync(_0x57321d,Buffer['concat'](_0x292453)),!![];}if(process[_0x34890e(0x186)][0x1]?.['endsWith']('stitchWebmFiles.ts')||process['argv'][0x1]?.[_0x34890e(0x182)](_0x34890e(0x15c))){const args=process[_0x34890e(0x186)][_0x34890e(0x195)](0x2);args['length']<0x3&&(console['error'](_0x34890e(0x15a)),process['exit'](0x1));const output=args[args[_0x34890e(0x17f)]-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console['log'](_0x34890e(0x185)+inputs['length']+'\x20files\x20->\x20'+output):console[_0x34890e(0x171)](_0x34890e(0x163));}