@ranger-testing/ranger-cli 3.1.3-alpha.e1ca941-42 → 3.1.4-alpha.96fdd81-47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/deleteProfile.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/mcpBootstrap.js +1 -1
- package/build/commands/migrateProfile.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/cloudProfile.js +1 -1
- package/build/commands/utils/cloudProfileSession.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/legacyWarning.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/novaActCli.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/organizationEnvApi.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/projectsConfig.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/rangerwrightCli.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/scenarioOriginCheck.js +1 -0
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/tunnelClient.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyFeatureNovaCli.js +1 -1
- package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
- package/package.json +3 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x25de18,_0x289c40){const _0x584e3b=_0x1a6e,_0x42816c=_0x25de18();while(!![]){try{const _0x664faa=parseInt(_0x584e3b(0x1cc))/0x1*(-parseInt(_0x584e3b(0x1cb))/0x2)+-parseInt(_0x584e3b(0x1bf))/0x3+-parseInt(_0x584e3b(0x1d0))/0x4+parseInt(_0x584e3b(0x1da))/0x5*(-parseInt(_0x584e3b(0x1c4))/0x6)+parseInt(_0x584e3b(0x1d1))/0x7+parseInt(_0x584e3b(0x1ce))/0x8*(parseInt(_0x584e3b(0x1bd))/0x9)+parseInt(_0x584e3b(0x1bb))/0xa*(parseInt(_0x584e3b(0x1bc))/0xb);if(_0x664faa===_0x289c40)break;else _0x42816c['push'](_0x42816c['shift']());}catch(_0x585a26){_0x42816c['push'](_0x42816c['shift']());}}}(_0x27a5,0xd3407));import{existsSync}from'fs';import _0xe72293 from'inquirer';import{ApiError,fetchAuthConfig,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';function _0x1a6e(_0x44da53,_0x5f5560){_0x44da53=_0x44da53-0x1b3;const _0x27a595=_0x27a5();let _0x1a6e73=_0x27a595[_0x44da53];return _0x1a6e73;}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(_0x414ce4){const _0x43bafd=_0x1a6e,_0x7fff4f={'eiGjO':function(_0xb17b65,_0xbfb307){return _0xb17b65+_0xbfb307;},'HVXjw':_0x43bafd(0x1d4),'gKMGv':_0x43bafd(0x1df),'PpKkp':function(_0xe2b6c6,_0x55307c){return _0xe2b6c6(_0x55307c);},'oAwUH':function(_0x4ad334,_0x4315ad){return _0x4ad334(_0x4315ad);},'qQumH':function(_0x85f723,_0x13555c){return _0x85f723===_0x13555c;},'VciFZ':function(_0x1a1fc7,_0x2e16d1){return _0x1a1fc7&&_0x2e16d1;},'WMObE':function(_0x4d7d0c,_0x42045c){return _0x4d7d0c+_0x42045c;},'yHeaQ':function(_0x170e9f,_0x1e02a1){return _0x170e9f+_0x1e02a1;},'tvnya':'\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','iMwFj':function(_0x22e66f){return _0x22e66f();},'FftMJ':_0x43bafd(0x1ba),'RhWvW':'cloud','ZSDLY':_0x43bafd(0x1c5),'zeifU':function(_0x444935,_0x63fa96){return _0x444935===_0x63fa96;},'OtpIY':function(_0x326cb5,_0x401c0e,_0x1221f8){return _0x326cb5(_0x401c0e,_0x1221f8);},'eMTnb':function(_0x79a438,_0x4a48ae){return _0x79a438(_0x4a48ae);}},_0x38faa0=_0x414ce4['profile'];let _0x5a2c97=_0x414ce4['profile']??await readActiveProfileName(),_0x39eb04=null;if(!_0x5a2c97&&process[_0x43bafd(0x1e5)]['RANGER_TEST_USERNAME']){const _0x2c77ac=await resolveAdHocProfile();_0x2c77ac&&(_0x5a2c97=_0x2c77ac['name'],_0x39eb04=_0x2c77ac[_0x43bafd(0x1cd)]);}if(!_0x5a2c97)try{const _0x338fbb=await listCloudProfiles();if(_0x338fbb[_0x43bafd(0x1b7)]===0x1){const _0x1fa548=_0x338fbb[0x0];_0x5a2c97=_0x1fa548['name'],console[_0x43bafd(0x1d8)](_0x43bafd(0x1b6)+_0x1fa548['name']),console[_0x43bafd(0x1d8)](_0x43bafd(0x1b4));}}catch{}if(!_0x5a2c97)throw new Error(_0x7fff4f['eiGjO'](_0x7fff4f[_0x43bafd(0x1c2)]+_0x7fff4f['gKMGv']+'\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a',_0x43bafd(0x1c7))+'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.');const _0x50806e=getEnvDir(_0x5a2c97),_0x22779c=_0x7fff4f['PpKkp'](existsSync,_0x50806e);let _0x16cadf=_0x39eb04,_0x33892d=![];if(!_0x16cadf)try{_0x16cadf=await _0x7fff4f['oAwUH'](fetchCloudProfile,_0x5a2c97);if(!_0x16cadf)_0x33892d=!![];}catch(_0x568457){_0x568457 instanceof ApiError&&_0x7fff4f[_0x43bafd(0x1d2)](_0x568457[_0x43bafd(0x1db)],0x194)&&(_0x33892d=!![]);}if(_0x7fff4f['VciFZ'](_0x38faa0,_0x33892d)&&!_0x22779c&&!_0x16cadf)throw new Error(_0x7fff4f['WMObE'](_0x7fff4f[_0x43bafd(0x1ca)]('Profile\x20\x22'+_0x38faa0+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a',_0x7fff4f[_0x43bafd(0x1d6)]),'`ranger\x20profile\x20add`\x20to\x20create\x20one.'));if(_0x7fff4f['VciFZ'](_0x16cadf,_0x22779c)){let _0x3f7ccb=!![];if(_0x7fff4f[_0x43bafd(0x1c6)](isInteractive)){const {source:_0x22ef5b}=await _0xe72293['prompt']([{'type':'list','name':_0x43bafd(0x1d5),'message':_0x43bafd(0x1c9)+_0x5a2c97+_0x43bafd(0x1d9),'choices':[{'name':_0x7fff4f['FftMJ'],'value':_0x7fff4f['RhWvW']},{'name':'Local\x20profile','value':_0x7fff4f[_0x43bafd(0x1dc)]}],'default':_0x43bafd(0x1b5)}]);_0x3f7ccb=_0x7fff4f[_0x43bafd(0x1e3)](_0x22ef5b,_0x43bafd(0x1b5));}if(!_0x3f7ccb)_0x16cadf=null;}const _0x24d900=readProfileOverrides(process[_0x43bafd(0x1b3)](),_0x5a2c97);let _0x4e0a48=null,_0x495861,_0x19a90b,_0x30622f,_0x47c88d,_0x4333e1=null,_0x1e8c79;const _0x1f58f1=expandOverrides(_0x24d900),_0x20db4b=readUrlEnvVars();if(_0x16cadf){_0x4e0a48=_0x16cadf;const _0x3203d9=_0x16cadf['settings']??{},_0x19d9f4=_0x7fff4f['OtpIY'](mergeCloudProfileSettings,_0x3203d9,_0x24d900??undefined),_0x9b992f={..._0x16cadf,'settings':_0x19d9f4};_0x4333e1={'baseUrl':_0x7fff4f['PpKkp'](expandString,_0x3203d9['baseUrl']),'startPath':expandString(_0x3203d9[_0x43bafd(0x1d7)])};const _0x5222b2=await fetchAuthConfig(),_0x53cfc4=_0x5222b2?_0x7fff4f[_0x43bafd(0x1de)](resolveAuthEnvironmentLocally,_0x5222b2,_0x16cadf['environmentKey']):null;_0x1e8c79=_0x53cfc4?.['domains']?.[0x0];const _0x30d849=resolveProfileUrl({'flagBaseUrl':_0x414ce4[_0x43bafd(0x1e1)],'flagStartPath':_0x414ce4['startPath'],'envBaseUrl':_0x20db4b['envBaseUrl'],'envStartPath':_0x20db4b[_0x43bafd(0x1d3)],'projectOverrides':_0x1f58f1,'cloudSettings':_0x4333e1,'authEnvironmentDomain':_0x1e8c79}),_0xe6ca2c=process['env'][_0x43bafd(0x1cf)];if(_0xe6ca2c){if(!existsSync(_0xe6ca2c))throw new Error(_0x43bafd(0x1e4)+_0xe6ca2c+_0x43bafd(0x1e6));_0x495861=_0xe6ca2c,_0x19a90b=resolveEnvVars(_0x19d9f4),_0x30622f=Boolean(_0x19a90b[_0x43bafd(0x1c1)]);}else{const _0x65fb3=await _0x7fff4f['OtpIY'](resolveCloudProfileSession,_0x9b992f,{'effectiveBaseUrl':_0x30d849['baseUrl'],'telemetry':_0x414ce4[_0x43bafd(0x1dd)]});_0x495861=_0x65fb3[_0x43bafd(0x1c8)],_0x19a90b=_0x7fff4f['eMTnb'](resolveEnvVars,_0x65fb3['settings']),_0x30622f=Boolean(_0x19a90b['cdpEndpoint']),_0x1e8c79=_0x65fb3[_0x43bafd(0x1c3)]?.['domains']?.[0x0];}}else{if(!_0x22779c)throw new Error('Profile\x20\x22'+_0x5a2c97+'\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x5a2c97);const _0x17277d=await _0x7fff4f[_0x43bafd(0x1e0)](loadSettings,_0x5a2c97);_0x19a90b=_0x7fff4f['eMTnb'](resolveEnvVars,_0x17277d),_0x30622f=_0x7fff4f['PpKkp'](Boolean,_0x19a90b[_0x43bafd(0x1c1)]),_0x47c88d=_0x19a90b[_0x43bafd(0x1e1)];}const _0x3f1bb2=_0x7fff4f['PpKkp'](resolveProfileUrl,{'flagBaseUrl':_0x414ce4[_0x43bafd(0x1e1)],'flagStartPath':_0x414ce4['startPath'],'envBaseUrl':_0x20db4b['envBaseUrl'],'envStartPath':_0x20db4b['envStartPath'],'localSettingsBaseUrl':_0x47c88d,'projectOverrides':_0x1f58f1,'cloudSettings':_0x4333e1,'authEnvironmentDomain':_0x1e8c79}),_0x4b915d=_0x3f1bb2[_0x43bafd(0x1be)]??_0x3f1bb2['baseUrl'];if(_0x7fff4f[_0x43bafd(0x1b9)](!_0x4b915d,!_0x30622f))throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0x5a2c97+'\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20'+_0x5a2c97+_0x43bafd(0x1e2));return{'activeProfile':_0x5a2c97,'resolvedCloudProfile':_0x4e0a48,'cloudAuthPath':_0x495861,'resolvedSettings':_0x19a90b,'isCdpMode':_0x30622f,'url':_0x4b915d,'startPath':_0x3f1bb2['startPath']};}function expandString(_0x3077d6){const _0x326f18=_0x1a6e;if(typeof _0x3077d6!==_0x326f18(0x1c0))return _0x3077d6;return resolveEnvVars(_0x3077d6);}function _0x27a5(){const _0x593b4f=['1318655sWWwgS','status','ZSDLY','telemetry','OtpIY','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','oAwUH','baseUrl','\x20baseUrl\x20<url>','zeifU','RANGER_SESSION_STATE_PATH=','env','\x20does\x20not\x20exist.','cwd','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','cloud','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','length','oJrZP','VciFZ','Cloud\x20profile\x20(recommended)','11688730qSdhsI','11xoMCPu','2007vYpRBg','url','980457kqrXlu','string','cdpEndpoint','HVXjw','resolvedEnv','6cvmiks','local','iMwFj','\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','authPath','Profile\x20\x22','yHeaQ','4cJrnFS','623947DQVRDU','profile','20192EDjSFm','RANGER_SESSION_STATE_PATH','100572vIIZjU','6980043WIhZhu','qQumH','envStartPath','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','source','tvnya','startPath','log','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?'];_0x27a5=function(){return _0x593b4f;};return _0x27a5();}function expandOverrides(_0x1a7528){const _0x192860=_0x1a6e,_0x3fb3e7={'oJrZP':_0x192860(0x1c0)};if(!_0x1a7528)return _0x1a7528;const _0x2255ff={..._0x1a7528};return typeof _0x2255ff['baseUrl']===_0x3fb3e7[_0x192860(0x1b8)]&&(_0x2255ff[_0x192860(0x1e1)]=resolveEnvVars(_0x2255ff['baseUrl'])),typeof _0x2255ff['startPath']===_0x3fb3e7[_0x192860(0x1b8)]&&(_0x2255ff[_0x192860(0x1d7)]=resolveEnvVars(_0x2255ff['startPath'])),_0x2255ff;}
|
|
1
|
+
(function(_0x4b40fa,_0x13b04a){const _0x33535b=_0x1bea,_0x351b8e=_0x4b40fa();while(!![]){try{const _0x3bc0bc=-parseInt(_0x33535b(0x1be))/0x1+parseInt(_0x33535b(0x1c0))/0x2+parseInt(_0x33535b(0x1ae))/0x3*(parseInt(_0x33535b(0x1e1))/0x4)+-parseInt(_0x33535b(0x1ce))/0x5*(parseInt(_0x33535b(0x1ad))/0x6)+-parseInt(_0x33535b(0x1d1))/0x7+-parseInt(_0x33535b(0x1c8))/0x8+parseInt(_0x33535b(0x1db))/0x9;if(_0x3bc0bc===_0x13b04a)break;else _0x351b8e['push'](_0x351b8e['shift']());}catch(_0x7542dc){_0x351b8e['push'](_0x351b8e['shift']());}}}(_0x63f2,0x31684));import{existsSync}from'fs';import _0x2f69be from'inquirer';import{ApiError,fetchAuthConfig,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive,resolveAuthEnvironmentLocally}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';function _0x63f2(){const _0x29f4ec=['7287975vJXYoP','resolvedEnv','authPath','startPath','BvpPw','name','44EfGaaz','eOsRB','\x20to\x20override.','EhGyC','env','baseUrl','Qcsug','jJZme','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','envBaseUrl','54SJzuAZ','80991xVFUzU','SDkUu','log','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','cwd','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','ZkQQQ','prompt','cloud','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','key','HAjOh','GpsJT','QbWUI','domains','395957nKncgQ','list','692444cCheWD','\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20to\x20switch\x20(see\x20`ranger\x20profile\x20ls`),\x20or\x0a','\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','string','authEnv','Local\x20profile','\x20\x20Warning:\x20','length','2974896sabgbB','Profile\x20\x22','AZtpd','Uqvzd','MHNVd','telemetry','198840chGOxH','cdpEndpoint','envStartPath','874027pXTsBe','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','RANGER_SESSION_STATE_PATH=','profile','RANGER_TEST_USERNAME','\x22.\x20Pass\x20--profile\x20','sWgRC','message','settings','\x22\x20is\x20ignored\x20when\x20--profile\x20is\x20set;\x20the\x20profile\x27s\x20own\x20auth\x20environment\x20applies.'];_0x63f2=function(){return _0x29f4ec;};return _0x63f2();}function _0x1bea(_0x3c50a8,_0x3348ac){_0x3c50a8=_0x3c50a8-0x1a4;const _0x63f2ab=_0x63f2();let _0x1bea69=_0x63f2ab[_0x3c50a8];return _0x1bea69;}import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x2e19f8){const _0x1b10f9=_0x1bea,_0x580aca={'HAjOh':function(_0x45fc90){return _0x45fc90();},'Uqvzd':function(_0x584867,_0x148480){return _0x584867(_0x148480);},'DXQsK':function(_0x406e36){return _0x406e36();},'IaYvT':function(_0x449aed,_0x4646fd){return _0x449aed===_0x4646fd;},'RSdlW':function(_0x9be87e,_0xca19e6){return _0x9be87e+_0xca19e6;},'AsDho':function(_0x1cd1f0,_0x428f53){return _0x1cd1f0+_0x428f53;},'HqsyV':_0x1b10f9(0x1c2),'BvpPw':function(_0x3c1700,_0x3b4bfc){return _0x3c1700(_0x3b4bfc);},'GpsJT':function(_0x63467d,_0x4406f7){return _0x63467d+_0x4406f7;},'CPqTb':_0x1b10f9(0x1ab),'TlSUC':_0x1b10f9(0x1bf),'WArqn':'source','eOsRB':_0x1b10f9(0x1b7),'QbWUI':'local','jJZme':function(_0x5a1280,_0x19d58a){return _0x5a1280(_0x19d58a);},'tQvge':function(_0x696e0a,_0x4f9f48){return _0x696e0a(_0x4f9f48);},'GVnMc':function(_0x4631ed,_0x489b7a,_0x4a8759){return _0x4631ed(_0x489b7a,_0x4a8759);},'SDkUu':function(_0x19e40c,_0x2ed109){return _0x19e40c(_0x2ed109);},'NpYSk':function(_0x45e197,_0x1a0d50){return _0x45e197+_0x1a0d50;},'MHNVd':function(_0x5eae38,_0x1ac93e){return _0x5eae38(_0x1ac93e);},'Qcsug':function(_0x139c5f,_0x5dff30){return _0x139c5f&&_0x5dff30;}},_0x586612=_0x2e19f8[_0x1b10f9(0x1d4)];let _0x58fb92=_0x586612,_0x1692f2=null;const _0x4acd08=_0x586612?null:await _0x580aca['HAjOh'](readActiveProfileName);if(_0x2e19f8[_0x1b10f9(0x1c4)]&&_0x586612)console[_0x1b10f9(0x1b0)]('\x20\x20Note:\x20--env\x20\x22'+_0x2e19f8[_0x1b10f9(0x1c4)]+_0x1b10f9(0x1da));else _0x2e19f8['authEnv']&&!process['env']['RANGER_TEST_USERNAME']&&console['log']('\x20\x20Note:\x20--env\x20\x22'+_0x2e19f8[_0x1b10f9(0x1c4)]+'\x22\x20only\x20affects\x20ad-hoc\x20profile\x20resolution;\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20use\x20it.');if(!_0x586612&&process[_0x1b10f9(0x1a7)][_0x1b10f9(0x1d5)])try{const _0x4b517b=await _0x580aca['Uqvzd'](resolveAdHocProfile,{'targetUrl':_0x2e19f8[_0x1b10f9(0x1a8)]??readUrlEnvVars()['envBaseUrl'],'envKey':_0x2e19f8['authEnv']});_0x4b517b&&(_0x4acd08&&_0x4acd08!==_0x4b517b['name']&&console['log']('\x20\x20RANGER_TEST_USERNAME\x20is\x20set\x20—\x20using\x20profile\x20\x22'+_0x4b517b[_0x1b10f9(0x1e0)]+'\x22\x20instead\x20of\x20the\x20saved\x20active\x20profile\x20\x22'+_0x4acd08+_0x1b10f9(0x1d6)+_0x4acd08+_0x1b10f9(0x1a5)),_0x58fb92=_0x4b517b['name'],_0x1692f2=_0x4b517b['profile']);}catch(_0x40637e){if(!_0x4acd08||_0x2e19f8[_0x1b10f9(0x1c4)])throw _0x40637e;console['log'](_0x1b10f9(0x1c6)+(_0x40637e instanceof Error?_0x40637e[_0x1b10f9(0x1d8)]:_0x580aca[_0x1b10f9(0x1cb)](String,_0x40637e))),console[_0x1b10f9(0x1b0)]('\x20\x20Falling\x20back\x20to\x20saved\x20active\x20profile\x20\x22'+_0x4acd08+'\x22.');}if(!_0x58fb92)_0x58fb92=_0x4acd08??undefined;if(!_0x58fb92)try{const _0x5d9b0e=await _0x580aca['DXQsK'](listCloudProfiles);if(_0x580aca['IaYvT'](_0x5d9b0e[_0x1b10f9(0x1c7)],0x1)){const _0x54500b=_0x5d9b0e[0x0];_0x58fb92=_0x54500b['name'],console['log'](_0x1b10f9(0x1b4)+_0x54500b['name']),console['log']('\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)');}}catch{}if(!_0x58fb92)throw new Error(_0x580aca['RSdlW'](_0x580aca['AsDho']('Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a'),'\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a')+_0x1b10f9(0x1b2)+_0x580aca['HqsyV']);const _0x4b7c1f=getEnvDir(_0x58fb92),_0x3fb441=_0x580aca[_0x1b10f9(0x1df)](existsSync,_0x4b7c1f);let _0x36d42e=_0x1692f2,_0x7ec2ea=![];if(!_0x36d42e)try{_0x36d42e=await fetchCloudProfile(_0x58fb92);if(!_0x36d42e)_0x7ec2ea=!![];}catch(_0x3e5362){_0x3e5362 instanceof ApiError&&_0x580aca['IaYvT'](_0x3e5362['status'],0x194)&&(_0x7ec2ea=!![]);}if(_0x586612&&_0x7ec2ea&&!_0x3fb441&&!_0x36d42e)throw new Error(_0x580aca[_0x1b10f9(0x1bb)](_0x580aca['RSdlW'](_0x1b10f9(0x1c9)+_0x586612+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a',_0x580aca['CPqTb']),'`ranger\x20profile\x20add`\x20to\x20create\x20one.'));if(_0x36d42e&&_0x3fb441){let _0x3f8ec7=!![];if(_0x580aca['DXQsK'](isInteractive)){const {source:_0x4e27b8}=await _0x2f69be[_0x1b10f9(0x1b6)]([{'type':_0x580aca['TlSUC'],'name':_0x580aca['WArqn'],'message':_0x1b10f9(0x1c9)+_0x58fb92+_0x1b10f9(0x1b1),'choices':[{'name':'Cloud\x20profile\x20(recommended)','value':_0x580aca['eOsRB']},{'name':_0x1b10f9(0x1c5),'value':_0x580aca[_0x1b10f9(0x1bc)]}],'default':'cloud'}]);_0x3f8ec7=_0x4e27b8===_0x580aca[_0x1b10f9(0x1a4)];}if(!_0x3f8ec7)_0x36d42e=null;}const _0x4d306b=readProfileOverrides(process[_0x1b10f9(0x1b3)](),_0x58fb92);let _0x4590f0=null,_0xa3d3ca,_0x2dbad3,_0x521c0d,_0x3e6e9f,_0x5d0349=null,_0x326374,_0x4994b6;const _0x3f41b8=expandOverrides(_0x4d306b),_0x101beb=_0x580aca[_0x1b10f9(0x1ba)](readUrlEnvVars);if(_0x36d42e){_0x4590f0=_0x36d42e;const _0x35be19=_0x36d42e['settings']??{},_0x4e14b5=mergeCloudProfileSettings(_0x35be19,_0x4d306b??undefined),_0x54eaab={..._0x36d42e,'settings':_0x4e14b5};_0x5d0349={'baseUrl':_0x580aca[_0x1b10f9(0x1cb)](expandString,_0x35be19['baseUrl']),'startPath':expandString(_0x35be19['startPath'])};const _0x301e71=await _0x580aca[_0x1b10f9(0x1ba)](fetchAuthConfig),_0x82769d=_0x301e71?resolveAuthEnvironmentLocally(_0x301e71,_0x36d42e['environmentKey']):null;_0x326374=_0x82769d?.[_0x1b10f9(0x1bd)]?.[0x0],_0x4994b6=_0x82769d?.[_0x1b10f9(0x1b9)];const _0x7eb276=_0x580aca[_0x1b10f9(0x1aa)](resolveProfileUrl,{'flagBaseUrl':_0x2e19f8[_0x1b10f9(0x1a8)],'flagStartPath':_0x2e19f8[_0x1b10f9(0x1de)],'envBaseUrl':_0x101beb['envBaseUrl'],'envStartPath':_0x101beb['envStartPath'],'projectOverrides':_0x3f41b8,'cloudSettings':_0x5d0349,'authEnvironmentDomain':_0x326374}),_0x3ca32a=process['env']['RANGER_SESSION_STATE_PATH'];if(_0x3ca32a){if(!existsSync(_0x3ca32a))throw new Error(_0x1b10f9(0x1d3)+_0x3ca32a+'\x20does\x20not\x20exist.');_0xa3d3ca=_0x3ca32a,_0x2dbad3=_0x580aca[_0x1b10f9(0x1aa)](resolveEnvVars,_0x4e14b5),_0x521c0d=_0x580aca['tQvge'](Boolean,_0x2dbad3[_0x1b10f9(0x1cf)]);}else{const _0x1f8a9f=await _0x580aca['GVnMc'](resolveCloudProfileSession,_0x54eaab,{'effectiveBaseUrl':_0x7eb276[_0x1b10f9(0x1a8)],'telemetry':_0x2e19f8[_0x1b10f9(0x1cd)]});_0xa3d3ca=_0x1f8a9f[_0x1b10f9(0x1dd)],_0x2dbad3=_0x580aca[_0x1b10f9(0x1af)](resolveEnvVars,_0x1f8a9f[_0x1b10f9(0x1d9)]),_0x521c0d=Boolean(_0x2dbad3['cdpEndpoint']),_0x326374=_0x1f8a9f[_0x1b10f9(0x1dc)]?.['domains']?.[0x0],_0x4994b6=_0x1f8a9f[_0x1b10f9(0x1dc)]?.[_0x1b10f9(0x1b9)];}}else{if(!_0x3fb441){const _0x711c58=!_0x586612;throw new Error(_0x711c58?_0x580aca['NpYSk'](_0x580aca[_0x1b10f9(0x1bb)]('Active\x20profile\x20\x22'+_0x58fb92+'\x22\x20no\x20longer\x20exists\x20(or\x20could\x20not\x20be\x20fetched).\x20Options:\x0a',_0x1b10f9(0x1c1))+'\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one\x20ad\x20hoc,\x20or\x0a','\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20'+_0x58fb92+'`\x20to\x20recreate\x20it.'):_0x1b10f9(0x1c9)+_0x58fb92+_0x1b10f9(0x1d2)+_0x58fb92);}const _0x355187=await loadSettings(_0x58fb92);_0x2dbad3=_0x580aca[_0x1b10f9(0x1af)](resolveEnvVars,_0x355187),_0x521c0d=_0x580aca[_0x1b10f9(0x1cc)](Boolean,_0x2dbad3['cdpEndpoint']),_0x3e6e9f=_0x2dbad3['baseUrl'];}const _0x317cf8=resolveProfileUrl({'flagBaseUrl':_0x2e19f8['baseUrl'],'flagStartPath':_0x2e19f8[_0x1b10f9(0x1de)],'envBaseUrl':_0x101beb[_0x1b10f9(0x1ac)],'envStartPath':_0x101beb[_0x1b10f9(0x1d0)],'localSettingsBaseUrl':_0x3e6e9f,'projectOverrides':_0x3f41b8,'cloudSettings':_0x5d0349,'authEnvironmentDomain':_0x326374}),_0x4e8f25=_0x317cf8['url']??_0x317cf8['baseUrl'];if(_0x580aca[_0x1b10f9(0x1a9)](!_0x4e8f25,!_0x521c0d))throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0x58fb92+_0x1b10f9(0x1b8)+_0x58fb92+'\x20baseUrl\x20<url>');return{'activeProfile':_0x58fb92,'resolvedCloudProfile':_0x4590f0,'cloudAuthPath':_0xa3d3ca,'resolvedSettings':_0x2dbad3,'isCdpMode':_0x521c0d,'url':_0x4e8f25,'baseUrlSource':_0x317cf8['baseUrlSource'],'authEnvKey':_0x4994b6,'startPath':_0x317cf8['startPath']};}function expandString(_0x1d3880){const _0x232c6f=_0x1bea,_0x245608={'AZtpd':_0x232c6f(0x1c3)};if(typeof _0x1d3880!==_0x245608[_0x232c6f(0x1ca)])return _0x1d3880;return resolveEnvVars(_0x1d3880);}function expandOverrides(_0x11686c){const _0x502fbe=_0x1bea,_0x2eae62={'sWgRC':function(_0x5f0798,_0x46ca45){return _0x5f0798===_0x46ca45;},'mOKel':function(_0x554ac6,_0x40ae8f){return _0x554ac6(_0x40ae8f);},'EhGyC':'string','ZkQQQ':function(_0x5d6a58,_0x13948e){return _0x5d6a58(_0x13948e);}};if(!_0x11686c)return _0x11686c;const _0x4cd724={..._0x11686c};return _0x2eae62[_0x502fbe(0x1d7)](typeof _0x4cd724[_0x502fbe(0x1a8)],'string')&&(_0x4cd724[_0x502fbe(0x1a8)]=_0x2eae62['mOKel'](resolveEnvVars,_0x4cd724[_0x502fbe(0x1a8)])),typeof _0x4cd724['startPath']===_0x2eae62[_0x502fbe(0x1a6)]&&(_0x4cd724['startPath']=_0x2eae62[_0x502fbe(0x1b5)](resolveEnvVars,_0x4cd724['startPath'])),_0x4cd724;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0x217f3a=_0xcf8b;(function(_0x2e5449,_0x6dd10a){const _0x106ab0=_0xcf8b,_0x87d71c=_0x2e5449();while(!![]){try{const _0x5228e2=parseInt(_0x106ab0(0x100))/0x1+-parseInt(_0x106ab0(0xf9))/0x2*(-parseInt(_0x106ab0(0xed))/0x3)+-parseInt(_0x106ab0(0xec))/0x4*(parseInt(_0x106ab0(0x104))/0x5)+parseInt(_0x106ab0(0xf1))/0x6+parseInt(_0x106ab0(0xee))/0x7+parseInt(_0x106ab0(0xf0))/0x8*(-parseInt(_0x106ab0(0x105))/0x9)+-parseInt(_0x106ab0(0xf8))/0xa*(parseInt(_0x106ab0(0xeb))/0xb);if(_0x5228e2===_0x6dd10a)break;else _0x87d71c['push'](_0x87d71c['shift']());}catch(_0x46d9b3){_0x87d71c['push'](_0x87d71c['shift']());}}}(_0x5a05,0xa3a2d));function firstDefined(..._0x2c27de){const _0x40d49f=_0xcf8b,_0x399346={'aMShS':function(_0xeff276,_0x521b3d){return _0xeff276!==_0x521b3d;},'ihOQA':function(_0xe3d9d4,_0x2f7a52){return _0xe3d9d4!==_0x2f7a52;}};for(const _0xdabccc of _0x2c27de){if(_0x399346['aMShS'](_0xdabccc,undefined)&&_0x399346[_0x40d49f(0xe9)](_0xdabccc,null)&&_0x399346['ihOQA'](_0xdabccc,''))return _0xdabccc;}return undefined;}function normalizeAuthEnvironmentDomain(_0x12f9a9){const _0x32cb9a=_0xcf8b;if(!_0x12f9a9)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0x32cb9a(0x101)](_0x12f9a9))return _0x12f9a9;return'https://'+_0x12f9a9;}export function resolveBaseUrlWithSource(_0x4e8cf3){const _0xd06f5d=_0xcf8b,_0x2d831e={'TSdyB':'--base-url','tQYXB':_0xd06f5d(0x103),'WOHcy':function(_0x35ea5f,_0x5456c7){return _0x35ea5f(_0x5456c7);}},_0x2e5839=_0x4e8cf3[_0xd06f5d(0xe7)],_0x370f63=!!_0x2e5839&&'baseUrl'in _0x2e5839,_0x5388e8=_0x2e5839?.[_0xd06f5d(0xff)],_0x3de3a6=!(_0x370f63&&_0x5388e8===null),_0x11ed36=[[_0x4e8cf3[_0xd06f5d(0xfa)],_0x2d831e[_0xd06f5d(0xe6)]],[_0x4e8cf3['envBaseUrl'],'RANGER_BASE_URL'],[_0x4e8cf3[_0xd06f5d(0xea)],_0x2d831e['tQYXB']],[typeof _0x5388e8==='string'?_0x5388e8:undefined,_0xd06f5d(0xe5)],[_0x3de3a6?_0x4e8cf3['cloudSettings']?.[_0xd06f5d(0xff)]:undefined,_0xd06f5d(0x102)],[_0x3de3a6?_0x2d831e['WOHcy'](normalizeAuthEnvironmentDomain,_0x4e8cf3[_0xd06f5d(0xf4)]):undefined,_0xd06f5d(0xfd)]];for(const [_0x1333e6,_0x2c8b6a]of _0x11ed36){if(_0x1333e6!==undefined&&_0x1333e6!==null&&_0x1333e6!=='')return{'baseUrl':_0x1333e6,'source':_0x2c8b6a};}return{};}function _0x5a05(){const _0x54de17=['137902lwusVF','test','cloud\x20profile\x20settings','local\x20profile\x20settings','16905EguLGB','1710UtAqfE','flagStartPath','projects.json\x20override','TSdyB','projectOverrides','startsWith','aMShS','localSettingsBaseUrl','33GLejzz','668vuiZwJ','9sfprkE','5643316ZfGPru','startPath','45160ZBFSBE','7985280urWxNj','MZney','env','authEnvironmentDomain','tEJBv','eOwjf','string','3541150tRJNOs','729870jkuIhG','flagBaseUrl','endsWith','empnJ','auth\x20environment\x20domain','RANGER_BASE_URL','baseUrl'];_0x5a05=function(){return _0x54de17;};return _0x5a05();}export function resolveBaseUrl(_0x15f320){const _0x893705=_0xcf8b,_0x15d3e3={'ljhcJ':function(_0xd9fbcd,_0x3b1e1e){return _0xd9fbcd(_0x3b1e1e);}};return _0x15d3e3['ljhcJ'](resolveBaseUrlWithSource,_0x15f320)[_0x893705(0xff)];}function _0xcf8b(_0x408122,_0x2206bd){_0x408122=_0x408122-0xe4;const _0x5a051e=_0x5a05();let _0xcf8b76=_0x5a051e[_0x408122];return _0xcf8b76;}export function resolveStartPath(_0x4030a4){const _0x545a2b=_0xcf8b,_0x41b39b={'MZney':function(_0xbb3446,_0x20be82){return _0xbb3446 in _0x20be82;},'yTNUJ':_0x545a2b(0xef)},_0x530edc=_0x4030a4['projectOverrides'],_0x33a7ab=!!_0x530edc&&_0x41b39b[_0x545a2b(0xf2)](_0x41b39b['yTNUJ'],_0x530edc),_0x1ad37e=_0x530edc?.['startPath'],_0x11ffb5=!(_0x33a7ab&&_0x1ad37e===null);return firstDefined(_0x4030a4[_0x545a2b(0xe4)],_0x4030a4['envStartPath'],typeof _0x1ad37e===_0x545a2b(0xf7)?_0x1ad37e:undefined,_0x11ffb5?_0x4030a4['cloudSettings']?.[_0x545a2b(0xef)]:undefined);}export function joinBaseAndPath(_0x4c175a,_0x9ac5fe){const _0x196c5d=_0xcf8b,_0x49ee78={'empnJ':function(_0x413902,_0x360b3c){return _0x413902+_0x360b3c;}};if(!_0x4c175a)return undefined;if(!_0x9ac5fe)return _0x4c175a;const _0x453ccf=_0x4c175a[_0x196c5d(0xfb)]('/')?_0x4c175a['slice'](0x0,-0x1):_0x4c175a,_0x10dbd8=_0x9ac5fe[_0x196c5d(0xe8)]('/')?_0x9ac5fe:_0x49ee78[_0x196c5d(0xfc)]('/',_0x9ac5fe);return _0x453ccf+_0x10dbd8;}export function resolveProfileUrl(_0xb87bba){const _0x54270d=_0xcf8b,_0x32070d={'eOwjf':function(_0x505d73,_0x263525){return _0x505d73(_0x263525);},'tEJBv':function(_0x260839,_0x41a4e5,_0x3013f2){return _0x260839(_0x41a4e5,_0x3013f2);}},{baseUrl:_0x3be051,source:_0x3bb8f7}=_0x32070d[_0x54270d(0xf6)](resolveBaseUrlWithSource,_0xb87bba),_0x5ce6f4=resolveStartPath(_0xb87bba);return{'baseUrl':_0x3be051,'baseUrlSource':_0x3bb8f7,'startPath':_0x5ce6f4,'url':_0x32070d[_0x54270d(0xf5)](joinBaseAndPath,_0x3be051,_0x5ce6f4)};}export function readUrlEnvVars(_0x28777d=process[_0x217f3a(0xf3)]){const _0x3e0367=_0x217f3a;return{'envBaseUrl':_0x28777d[_0x3e0367(0xfe)],'envStartPath':_0x28777d['RANGER_START_PATH']};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x40d8bc,_0x106e91){const _0x5b2a80=_0x3d5d,_0x353eb9=_0x40d8bc();while(!![]){try{const _0x4bb50c=parseInt(_0x5b2a80(0xa2))/0x1*(-parseInt(_0x5b2a80(0xa4))/0x2)+-parseInt(_0x5b2a80(0xa7))/0x3*(-parseInt(_0x5b2a80(0xb1))/0x4)+parseInt(_0x5b2a80(0xa8))/0x5*(-parseInt(_0x5b2a80(0xaf))/0x6)+-parseInt(_0x5b2a80(0xa9))/0x7+-parseInt(_0x5b2a80(0xb0))/0x8*(-parseInt(_0x5b2a80(0xac))/0x9)+parseInt(_0x5b2a80(0xa5))/0xa+parseInt(_0x5b2a80(0xa6))/0xb*(-parseInt(_0x5b2a80(0xa1))/0xc);if(_0x4bb50c===_0x106e91)break;else _0x353eb9['push'](_0x353eb9['shift']());}catch(_0x34146e){_0x353eb9['push'](_0x353eb9['shift']());}}}(_0x2894,0xf1458));function _0x3d5d(_0x3bec53,_0x1a62ed){_0x3bec53=_0x3bec53-0xa1;const _0x289479=_0x2894();let _0x3d5d1b=_0x289479[_0x3bec53];return _0x3d5d1b;}function _0x2894(){const _0x11ae7a=['bDJMJ','xKCaw','817500IHKPvG','24xwfIqS','27464uuBjdq','336RoZjDQ','1konwNc','baseDelayMs','1583458qtdvnH','12521780PVZXjK','148247hpWoYI','573CEHhab','30fORFCX','38010cNpQgL','RPAMa','ms...','1250037UixhvX'];_0x2894=function(){return _0x11ae7a;};return _0x2894();}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x1907d1,_0x952037){const _0x5255b8=_0x3d5d,_0x148964={'xKCaw':function(_0x57be4d,_0x20719f){return _0x57be4d instanceof _0x20719f;},'bDJMJ':function(_0x1de1b8,_0x1bedd7){return _0x1de1b8(_0x1bedd7);},'HujFW':function(_0x3a2cd2,_0x419d6e){return _0x3a2cd2<_0x419d6e;},'mQhGU':function(_0x391ba0,_0x48c78a){return _0x391ba0*_0x48c78a;},'RPAMa':function(_0x9ee73a,_0x367bf2){return _0x9ee73a+_0x367bf2;}},_0x24a25c=_0x952037?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x480f9b=_0x952037?.[_0x5255b8(0xa3)]??DEFAULT_BASE_DELAY_MS;let _0x44fbae;for(let _0x4b10c6=0x0;_0x4b10c6<=_0x24a25c;_0x4b10c6++){try{return await _0x1907d1();}catch(_0x449784){_0x44fbae=_0x148964[_0x5255b8(0xae)](_0x449784,Error)?_0x449784:new Error(_0x148964[_0x5255b8(0xad)](String,_0x449784));if(_0x148964['HujFW'](_0x4b10c6,_0x24a25c)){const _0x5ec3cf=_0x148964['mQhGU'](_0x480f9b,Math['pow'](0x2,_0x4b10c6));_0x952037?.['label']&&console['error'](_0x952037['label']+'\x20failed\x20(attempt\x20'+_0x148964[_0x5255b8(0xaa)](_0x4b10c6,0x1)+'/'+_0x148964['RPAMa'](_0x24a25c,0x1)+'),\x20retrying\x20in\x20'+_0x5ec3cf+_0x5255b8(0xab)),await new Promise(_0x16c79c=>setTimeout(_0x16c79c,_0x5ec3cf));}}}throw _0x44fbae;}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _0x40d5(){const _0x3b45ae=['44264bCgyty','567TadgHw','replace','14AUPWnx','275613yLzVYH','813880asuLwX','558172DbpBfX','226608wfBgjF','cWQnU','1165927WADyzB','origin','21326OxfmtF'];_0x40d5=function(){return _0x3b45ae;};return _0x40d5();}function _0x4c63(_0x305f3f,_0x5bd129){_0x305f3f=_0x305f3f-0x152;const _0x40d5d5=_0x40d5();let _0x4c63ef=_0x40d5d5[_0x305f3f];return _0x4c63ef;}(function(_0x18ef3c,_0x1a884b){const _0xeb18fc=_0x4c63,_0x2c5329=_0x18ef3c();while(!![]){try{const _0x57b507=-parseInt(_0xeb18fc(0x153))/0x1*(parseInt(_0xeb18fc(0x15b))/0x2)+parseInt(_0xeb18fc(0x154))/0x3+-parseInt(_0xeb18fc(0x156))/0x4+-parseInt(_0xeb18fc(0x155))/0x5+-parseInt(_0xeb18fc(0x157))/0x6+parseInt(_0xeb18fc(0x159))/0x7+parseInt(_0xeb18fc(0x15c))/0x8*(parseInt(_0xeb18fc(0x15d))/0x9);if(_0x57b507===_0x1a884b)break;else _0x2c5329['push'](_0x2c5329['shift']());}catch(_0x129288){_0x2c5329['push'](_0x2c5329['shift']());}}}(_0x40d5,0x1cb8a));const ABSOLUTE_URL_PATTERN=/https?:\/\/[^\s"'<>()\[\]]+/gi;export function extractUrlOrigins(_0x323a4c){const _0x30927c=_0x4c63,_0x26096e=new Set();for(const _0xfa2ec of _0x323a4c['matchAll'](ABSOLUTE_URL_PATTERN)){const _0x4ded80=_0xfa2ec[0x0][_0x30927c(0x152)](/[.,;:!?]+$/,'');try{_0x26096e['add'](new URL(_0x4ded80)[_0x30927c(0x15a)]);}catch{}}return[..._0x26096e];}export function findScenarioOriginMismatches(_0x4d0d97,_0x44bb7f){const _0x3dda52=_0x4c63,_0x513d58={'cWQnU':function(_0x178ef4,_0x49a367){return _0x178ef4(_0x49a367);}};let _0x24dd99;try{_0x24dd99=new URL(_0x44bb7f)['origin'];}catch{return[];}return _0x513d58[_0x3dda52(0x158)](extractUrlOrigins,_0x4d0d97)['filter'](_0x114827=>_0x114827!==_0x24dd99);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1838c3=_0x22fc;(function(_0x1d92e1,_0x567def){const _0x4229f8=_0x22fc,_0x1c92dd=_0x1d92e1();while(!![]){try{const _0x56457f=-parseInt(_0x4229f8(0x1d4))/0x1*(parseInt(_0x4229f8(0x1d8))/0x2)+-parseInt(_0x4229f8(0x1e5))/0x3+-parseInt(_0x4229f8(0x1d2))/0x4+-parseInt(_0x4229f8(0x1f0))/0x5*(parseInt(_0x4229f8(0x1df))/0x6)+parseInt(_0x4229f8(0x1db))/0x7*(-parseInt(_0x4229f8(0x1be))/0x8)+parseInt(_0x4229f8(0x1f6))/0x9+parseInt(_0x4229f8(0x1bf))/0xa;if(_0x56457f===_0x567def)break;else _0x1c92dd['push'](_0x1c92dd['shift']());}catch(_0x47b42e){_0x1c92dd['push'](_0x1c92dd['shift']());}}}(_0x3d7e,0xeac82));import*as _0x14eaaa from'fs';import*as _0x5d964d from'path';import*as _0x18a6e6 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x5d964d[_0x1838c3(0x1f9)](_0x18a6e6['homedir'](),_0x1838c3(0x1d6),'.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x2295fd=_0x1838c3,_0x14b4d2={'UfCdk':_0x2295fd(0x1cf),'iIHcZ':function(_0x55b881){return _0x55b881();}};try{if(_0x14eaaa[_0x2295fd(0x1ea)](CACHE_FILE)){const _0x336865=JSON['parse'](_0x14eaaa['readFileSync'](CACHE_FILE,_0x14b4d2[_0x2295fd(0x1c7)]));return{'version':0x3,'sessions':_0x336865['sessions']||{},'branches':_0x336865[_0x2295fd(0x1e6)]||{},'lastEnabledSessionClearedAt':_0x336865[_0x2295fd(0x1e7)]};}}catch{}return _0x14b4d2['iIHcZ'](createEmptyCache);}function saveCache(_0x3b3dae){const _0x5ec746=_0x1838c3;try{const _0x167f5c=_0x5d964d['dirname'](CACHE_FILE);!_0x14eaaa['existsSync'](_0x167f5c)&&_0x14eaaa[_0x5ec746(0x1e2)](_0x167f5c,{'recursive':!![]}),_0x14eaaa[_0x5ec746(0x1cc)](CACHE_FILE,JSON['stringify'](_0x3b3dae,null,0x2));}catch{}}export function getCurrentBranch(){const _0x562118=_0x1838c3,_0x1ffa0b={'TjzKd':function(_0x2b6ad9,_0x43ac09,_0x47357e){return _0x2b6ad9(_0x43ac09,_0x47357e);},'nxGTJ':_0x562118(0x1ca),'wWJWJ':'pipe','JreQl':function(_0x1f1981,_0x12fc17){return _0x1f1981===_0x12fc17;},'KRpxl':'HEAD'};try{const _0x4f25d8=_0x1ffa0b[_0x562118(0x1dc)](execSync,_0x1ffa0b[_0x562118(0x1c0)],{'encoding':_0x562118(0x1cf),'stdio':[_0x1ffa0b['wWJWJ'],_0x1ffa0b[_0x562118(0x1cb)],_0x1ffa0b['wWJWJ']]})['trim']();if(!_0x4f25d8||_0x1ffa0b['JreQl'](_0x4f25d8,_0x1ffa0b[_0x562118(0x1c2)]))return null;return _0x4f25d8;}catch{return null;}}export function enableBranch(_0x32a5de){const _0x58ab96=_0x1838c3,_0x1e73e2={'hgPpN':function(_0x10ed98){return _0x10ed98();}},_0xb559b7=_0x1e73e2[_0x58ab96(0x1ee)](loadCache);_0xb559b7['branches'][_0x32a5de]=!![],saveCache(_0xb559b7);}export function disableBranch(_0x591314){const _0x359ca8=_0x1838c3,_0x45515a={'iAdkt':function(_0x29fc77){return _0x29fc77();}},_0x345d3f=_0x45515a[_0x359ca8(0x1e8)](loadCache);delete _0x345d3f[_0x359ca8(0x1e6)][_0x591314],saveCache(_0x345d3f);}export function isBranchEnabled(_0x49c821){const _0x801644=_0x1838c3,_0x5d2ede={'cFCyn':function(_0x10fd82){return _0x10fd82();},'vulKT':function(_0x836125,_0x46d1ef){return _0x836125===_0x46d1ef;}},_0x2cc326=_0x5d2ede[_0x801644(0x1d7)](loadCache);return _0x5d2ede['vulKT'](_0x2cc326[_0x801644(0x1e6)][_0x49c821],!![]);}function getOrCreateSession(_0x321004,_0x5daf2d){const _0x576c97=_0x1838c3;return!_0x321004['sessions'][_0x5daf2d]&&(_0x321004[_0x576c97(0x1c3)][_0x5daf2d]={}),_0x321004[_0x576c97(0x1c3)][_0x5daf2d];}export function enableSession(_0x3e95cd){const _0x161a3b=_0x1838c3,_0xde133c={'zBneE':function(_0x470e29){return _0x470e29();},'LDpnw':function(_0x459c32,_0xeacd7a){return _0x459c32!==_0xeacd7a;},'zWQRi':_0x161a3b(0x1f5),'fMkvV':function(_0x27ba1b,_0x5cc52a){return _0x27ba1b(_0x5cc52a);}},_0x557a68=_0xde133c[_0x161a3b(0x1d0)](loadCache),_0x1f4795=getOrCreateSession(_0x557a68,_0x3e95cd);_0x1f4795['enabled']=!![];const _0xb7cfb8=getCurrentBranch();_0xb7cfb8&&_0xde133c[_0x161a3b(0x1d1)](_0xb7cfb8,_0xde133c[_0x161a3b(0x1c1)])&&_0xde133c['LDpnw'](_0xb7cfb8,_0x161a3b(0x1d9))&&(_0x557a68[_0x161a3b(0x1e6)][_0xb7cfb8]=!![],_0x1f4795[_0x161a3b(0x1d5)]=_0xb7cfb8),_0xde133c[_0x161a3b(0x1e4)](saveCache,_0x557a68);}function _0x22fc(_0x50b97b,_0x345fe9){_0x50b97b=_0x50b97b-0x1be;const _0x3d7e6f=_0x3d7e();let _0x22fcf8=_0x3d7e6f[_0x50b97b];return _0x22fcf8;}export function isSessionEnabled(_0x5d8cf2){const _0x41c3c9=_0x1838c3,_0x435f3c={'hkGTf':function(_0x1bf97e){return _0x1bf97e();},'wqvlR':function(_0xb50732,_0x4a8d3e){return _0xb50732===_0x4a8d3e;},'LiHHJ':_0x41c3c9(0x1f5),'hWuZc':function(_0x131013,_0x4abe8){return _0x131013===_0x4abe8;}},_0x1c6754=_0x435f3c[_0x41c3c9(0x1d3)](loadCache),_0x33e47e=getCurrentBranch();if(!_0x33e47e||_0x435f3c['wqvlR'](_0x33e47e,_0x435f3c[_0x41c3c9(0x1e9)])||_0x33e47e==='master')return _0x1c6754[_0x41c3c9(0x1c3)][_0x5d8cf2]?.['enabled']===!![];const _0x3fb4ad=_0x435f3c['hWuZc'](_0x1c6754['branches'][_0x33e47e],!![]),_0x1a229f=_0x1c6754[_0x41c3c9(0x1c3)][_0x5d8cf2]?.['enabled']===!![];return _0x3fb4ad||_0x1a229f;}export function disableSession(_0x4492a4){const _0x28b062={'Ckmar':function(_0x1807b6,_0x22e366){return _0x1807b6(_0x22e366);}},_0x1cc459=loadCache(),_0x19f45a=getOrCreateSession(_0x1cc459,_0x4492a4);_0x19f45a['enabled']=![],_0x28b062['Ckmar'](saveCache,_0x1cc459);}export function updateBranchTracking(_0x44ffc8){const _0x2f3094=_0x1838c3,_0x24cf5a={'xyrLg':function(_0x3609dd){return _0x3609dd();},'AxNlm':function(_0x18cc7e,_0x18cfec){return _0x18cc7e===_0x18cfec;},'YhOgn':'master','uRBRR':function(_0x2e0bb7,_0x5958a2){return _0x2e0bb7!==_0x5958a2;}},_0x193cdf=loadCache(),_0x4c97f9=_0x193cdf['sessions'][_0x44ffc8];if(!_0x4c97f9?.['enabled'])return;const _0x16ea32=_0x24cf5a[_0x2f3094(0x1eb)](getCurrentBranch);if(!_0x16ea32||_0x24cf5a['AxNlm'](_0x16ea32,'main')||_0x16ea32===_0x24cf5a[_0x2f3094(0x1c6)])return;_0x24cf5a['uRBRR'](_0x4c97f9[_0x2f3094(0x1d5)],_0x16ea32)&&(_0x193cdf[_0x2f3094(0x1e6)][_0x16ea32]=!![],_0x4c97f9[_0x2f3094(0x1d5)]=_0x16ea32,saveCache(_0x193cdf));}export function initBranchTracking(_0x290666){const _0x4d7cc9=_0x1838c3,_0xe594d2={'srAYB':function(_0x28233b){return _0x28233b();},'BvHvN':function(_0x2a4b42,_0x2ee5b2){return _0x2a4b42(_0x2ee5b2);}},_0x2877c7=loadCache(),_0x135e1a=_0xe594d2['srAYB'](getCurrentBranch);if(!_0x135e1a||_0x135e1a==='main'||_0x135e1a===_0x4d7cc9(0x1d9))return;if(_0x2877c7[_0x4d7cc9(0x1e6)][_0x135e1a]===!![]){const _0x54fc2e=getOrCreateSession(_0x2877c7,_0x290666);_0x54fc2e['enabled']=!![],_0x54fc2e['currentBranch']=_0x135e1a,_0xe594d2[_0x4d7cc9(0x1c5)](saveCache,_0x2877c7);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x862606){const _0x3812bc=_0x1838c3,_0x595e7d=loadCache(),_0x57072a=_0x595e7d['sessions'][_0x862606];_0x57072a?.['enabled']&&(_0x595e7d[_0x3812bc(0x1e7)]=Date[_0x3812bc(0x1dd)](),saveCache(_0x595e7d));}export function shouldAutoEnableAfterClear(_0x53362b){const _0x43dac4=_0x1838c3,_0x227321={'VaolJ':function(_0xcafe7b,_0x4e4b78){return _0xcafe7b!==_0x4e4b78;},'ICdoV':function(_0x2a6d35,_0x2d4318){return _0x2a6d35-_0x2d4318;},'oyChn':function(_0x10466f,_0x574755){return _0x10466f<=_0x574755;}};if(_0x227321['VaolJ'](_0x53362b,_0x43dac4(0x1ef)))return![];const _0x4de370=loadCache(),_0x5969a7=_0x4de370[_0x43dac4(0x1e7)];if(!_0x5969a7)return![];const _0x417594=_0x227321[_0x43dac4(0x1f7)](Date[_0x43dac4(0x1dd)](),_0x5969a7);return _0x227321[_0x43dac4(0x1da)](_0x417594,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x5b67ad){const _0x2082b=_0x1838c3,_0x524352={'tjdhJ':function(_0x1ca34d,_0x3ad75b,_0x1fd401){return _0x1ca34d(_0x3ad75b,_0x1fd401);},'AiwSb':function(_0x13fcef){return _0x13fcef();},'hmkmn':function(_0x1caf38,_0x3b60d4){return _0x1caf38!==_0x3b60d4;},'dlDQK':_0x2082b(0x1d9)},_0x43d7fa=loadCache(),_0x447654=_0x524352['tjdhJ'](getOrCreateSession,_0x43d7fa,_0x5b67ad);_0x447654[_0x2082b(0x1e0)]=!![];const _0x31f2ac=_0x524352[_0x2082b(0x1c9)](getCurrentBranch);_0x31f2ac&&_0x524352[_0x2082b(0x1e1)](_0x31f2ac,_0x2082b(0x1f5))&&_0x524352['hmkmn'](_0x31f2ac,_0x524352['dlDQK'])&&(_0x447654[_0x2082b(0x1d5)]=_0x31f2ac),delete _0x43d7fa['lastEnabledSessionClearedAt'],saveCache(_0x43d7fa);}export function registerSession(_0x28a9d6,_0x15d429){const _0x4afd1a=_0x1838c3,_0x379951={'ofEvQ':function(_0x349e93,_0x2bb14e,_0x34c854){return _0x349e93(_0x2bb14e,_0x34c854);},'DIuHp':function(_0x3019f3,_0x325e6e){return _0x3019f3(_0x325e6e);}},_0x3a879d=loadCache(),_0x3b769f=_0x379951['ofEvQ'](getOrCreateSession,_0x3a879d,_0x28a9d6);_0x3b769f[_0x4afd1a(0x1c8)]=_0x15d429,_0x3b769f['registeredAt']=new Date()[_0x4afd1a(0x1f4)](),_0x379951['DIuHp'](saveCache,_0x3a879d);}export function getSessionEntry(_0x111561){const _0x4daef4=_0x1838c3,_0x3eb76d={'PiqYH':function(_0x21ac25){return _0x21ac25();}},_0x4eaefd=_0x3eb76d['PiqYH'](loadCache),_0x351383=_0x4eaefd['sessions'][_0x111561];if(_0x351383?.[_0x4daef4(0x1c8)]&&_0x351383?.['registeredAt'])return{'featureId':_0x351383[_0x4daef4(0x1c8)],'registeredAt':_0x351383[_0x4daef4(0x1e3)]};return null;}export function unregisterSession(_0x58396f){const _0x3b4543=_0x1838c3,_0x91ebce={'aoHvM':function(_0x47bcdc){return _0x47bcdc();},'MZEPB':function(_0x207133,_0x3cbc81){return _0x207133(_0x3cbc81);}},_0xd6c34b=_0x91ebce[_0x3b4543(0x1c4)](loadCache),_0x2b5b01=_0xd6c34b['sessions'][_0x58396f];_0x2b5b01&&(delete _0x2b5b01[_0x3b4543(0x1c8)],delete _0x2b5b01['registeredAt'],_0x91ebce['MZEPB'](saveCache,_0xd6c34b));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x7037a5){const _0x1b1c86=_0x1838c3,_0x28e471={'tduQz':function(_0xcb5412){return _0xcb5412();},'urXCN':function(_0x1bcbdf,_0x3508a0,_0x1a7cbe){return _0x1bcbdf(_0x3508a0,_0x1a7cbe);},'pxNjq':function(_0x115183,_0x423cd2){return _0x115183-_0x423cd2;},'IWNKl':function(_0x240df7,_0x5a3cce){return _0x240df7(_0x5a3cce);}},_0x5d7dfa=_0x28e471['tduQz'](loadCache),_0x2abb4c=_0x28e471[_0x1b1c86(0x1ed)](getOrCreateSession,_0x5d7dfa,_0x7037a5),_0x353cd0=_0x2abb4c['lastPlanReminderAt']||0x0,_0x3aca05=Date[_0x1b1c86(0x1dd)]();if(_0x28e471['pxNjq'](_0x3aca05,_0x353cd0)>=PLAN_REMINDER_INTERVAL_MS)return _0x2abb4c[_0x1b1c86(0x1f2)]=_0x3aca05,_0x28e471[_0x1b1c86(0x1de)](saveCache,_0x5d7dfa),!![];return![];}export function shouldShowStopReminder(_0x51fc15){const _0x3efcc8=_0x1838c3,_0x434adb={'iXJEu':function(_0x38e5c9,_0x1d7a46){return _0x38e5c9>=_0x1d7a46;}},_0x53e569=loadCache(),_0x1c47a5=getOrCreateSession(_0x53e569,_0x51fc15),_0x3a269a=_0x1c47a5[_0x3efcc8(0x1cd)]||0x0,_0x28957a=Date['now']();if(_0x434adb[_0x3efcc8(0x1ce)](_0x28957a-_0x3a269a,STOP_REMINDER_INTERVAL_MS))return _0x1c47a5[_0x3efcc8(0x1cd)]=_0x28957a,saveCache(_0x53e569),!![];return![];}export function hasSessionBeenPrompted(_0x1127dd){const _0x498e3b=_0x1838c3,_0xc6d80c={'MyUGP':function(_0x2c5bd8){return _0x2c5bd8();},'iruqe':function(_0x4267d0,_0x554062){return _0x4267d0===_0x554062;}},_0x33aca1=_0xc6d80c['MyUGP'](loadCache);return _0xc6d80c[_0x498e3b(0x1f8)](_0x33aca1[_0x498e3b(0x1c3)][_0x1127dd]?.[_0x498e3b(0x1f3)],!![]);}function _0x3d7e(){const _0x3b84d9=['nxGTJ','zWQRi','KRpxl','sessions','aoHvM','BvHvN','YhOgn','UfCdk','featureId','AiwSb','git\x20rev-parse\x20--abbrev-ref\x20HEAD','wWJWJ','writeFileSync','lastStopReminderAt','iXJEu','utf-8','zBneE','LDpnw','3869112WUKMAX','hkGTf','2sQIaBH','currentBranch','.claude','cFCyn','1550126Nqqlhv','master','oyChn','259dleHSl','TjzKd','now','IWNKl','24qBbUWk','enabled','hmkmn','mkdirSync','registeredAt','fMkvV','3840678CAwkaq','branches','lastEnabledSessionClearedAt','iAdkt','LiHHJ','existsSync','xyrLg','BWqBl','urXCN','hgPpN','clear','182615lgiQGO','EXExi','lastPlanReminderAt','prompted','toISOString','main','6478254KWpRhD','ICdoV','iruqe','join','375616TrrFCB','59228060Gnoybj'];_0x3d7e=function(){return _0x3b84d9;};return _0x3d7e();}export function markSessionPrompted(_0x40e708){const _0x3dee80=_0x1838c3,_0xc8c3b0={'BWqBl':function(_0x3dbac0){return _0x3dbac0();},'EXExi':function(_0x359f7b,_0x18ef59){return _0x359f7b(_0x18ef59);}},_0x1a366b=_0xc8c3b0[_0x3dee80(0x1ec)](loadCache),_0x291f4d=getOrCreateSession(_0x1a366b,_0x40e708);_0x291f4d['prompted']=!![],_0xc8c3b0[_0x3dee80(0x1f1)](saveCache,_0x1a366b);}export function getCacheFile(){return CACHE_FILE;}
|
|
1
|
+
const _0x3ee91e=_0xc6c2;(function(_0x27f8a1,_0x215e71){const _0x39e41a=_0xc6c2,_0x2e73e1=_0x27f8a1();while(!![]){try{const _0x32e54c=-parseInt(_0x39e41a(0x1ea))/0x1+parseInt(_0x39e41a(0x1ee))/0x2+parseInt(_0x39e41a(0x1f6))/0x3*(-parseInt(_0x39e41a(0x1f3))/0x4)+parseInt(_0x39e41a(0x1e9))/0x5+-parseInt(_0x39e41a(0x20c))/0x6*(parseInt(_0x39e41a(0x1f8))/0x7)+-parseInt(_0x39e41a(0x1f2))/0x8*(-parseInt(_0x39e41a(0x210))/0x9)+parseInt(_0x39e41a(0x205))/0xa;if(_0x32e54c===_0x215e71)break;else _0x2e73e1['push'](_0x2e73e1['shift']());}catch(_0x5a9038){_0x2e73e1['push'](_0x2e73e1['shift']());}}}(_0x234a,0x1fcc4));import*as _0x34447b from'fs';import*as _0x169278 from'path';import*as _0x3484c2 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x169278['join'](_0x3484c2[_0x3ee91e(0x1e3)](),'.claude',_0x3ee91e(0x1e5));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x27d348=_0x3ee91e,_0x30fc51={'yCvAf':_0x27d348(0x1fd)};try{if(_0x34447b['existsSync'](CACHE_FILE)){const _0x105a8f=JSON[_0x27d348(0x1f1)](_0x34447b[_0x27d348(0x1ec)](CACHE_FILE,_0x30fc51['yCvAf']));return{'version':0x3,'sessions':_0x105a8f['sessions']||{},'branches':_0x105a8f[_0x27d348(0x1fc)]||{},'lastEnabledSessionClearedAt':_0x105a8f['lastEnabledSessionClearedAt']};}}catch{}return createEmptyCache();}function saveCache(_0xb02975){const _0x2d2823=_0x3ee91e;try{const _0x25cc46=_0x169278[_0x2d2823(0x207)](CACHE_FILE);!_0x34447b[_0x2d2823(0x1f0)](_0x25cc46)&&_0x34447b['mkdirSync'](_0x25cc46,{'recursive':!![]}),_0x34447b['writeFileSync'](CACHE_FILE,JSON[_0x2d2823(0x208)](_0xb02975,null,0x2));}catch{}}export function getCurrentBranch(){const _0x2e794d=_0x3ee91e,_0x56634e={'GvkLp':function(_0x8dc162,_0x4927f4,_0x1f24f9){return _0x8dc162(_0x4927f4,_0x1f24f9);},'wAzdV':_0x2e794d(0x20f),'UIDXE':function(_0x280b95,_0x42f0df){return _0x280b95===_0x42f0df;}};try{const _0x1661d9=_0x56634e['GvkLp'](execSync,_0x2e794d(0x20d),{'encoding':_0x2e794d(0x1fd),'stdio':[_0x2e794d(0x20f),'pipe',_0x56634e[_0x2e794d(0x1f5)]]})['trim']();if(!_0x1661d9||_0x56634e['UIDXE'](_0x1661d9,_0x2e794d(0x1e2)))return null;return _0x1661d9;}catch{return null;}}export function enableBranch(_0x26eefd){const _0x2befe8=_0x3ee91e,_0x26a5b9={'EdxES':function(_0x23a044,_0x4e9c7a){return _0x23a044(_0x4e9c7a);}},_0x55fafe=loadCache();_0x55fafe[_0x2befe8(0x1fc)][_0x26eefd]=!![],_0x26a5b9[_0x2befe8(0x204)](saveCache,_0x55fafe);}export function disableBranch(_0x390c80){const _0x22a897=_0x3ee91e,_0x56b08b={'xBIjq':function(_0x39f98e){return _0x39f98e();}},_0x5cc54e=_0x56b08b[_0x22a897(0x211)](loadCache);delete _0x5cc54e['branches'][_0x390c80],saveCache(_0x5cc54e);}export function isBranchEnabled(_0x21b6c2){const _0x427e94=_0x3ee91e,_0x12bfbb={'ZPEgd':function(_0x4d58d3){return _0x4d58d3();}},_0x1a3000=_0x12bfbb['ZPEgd'](loadCache);return _0x1a3000[_0x427e94(0x1fc)][_0x21b6c2]===!![];}function getOrCreateSession(_0x3db055,_0x500589){const _0xd40bc8=_0x3ee91e;return!_0x3db055['sessions'][_0x500589]&&(_0x3db055[_0xd40bc8(0x1f9)][_0x500589]={}),_0x3db055[_0xd40bc8(0x1f9)][_0x500589];}export function enableSession(_0x4527f4){const _0x216ce1=_0x3ee91e,_0x454984={'SQQGU':function(_0x1e8859){return _0x1e8859();},'mKEMa':function(_0x134e12,_0x2b05c5,_0x45e792){return _0x134e12(_0x2b05c5,_0x45e792);},'DArko':_0x216ce1(0x213),'AUEdV':'master'},_0x48d281=_0x454984[_0x216ce1(0x1e8)](loadCache),_0x368b74=_0x454984['mKEMa'](getOrCreateSession,_0x48d281,_0x4527f4);_0x368b74['enabled']=!![];const _0x3f9a95=_0x454984['SQQGU'](getCurrentBranch);_0x3f9a95&&_0x3f9a95!==_0x454984['DArko']&&_0x3f9a95!==_0x454984['AUEdV']&&(_0x48d281['branches'][_0x3f9a95]=!![],_0x368b74['currentBranch']=_0x3f9a95),saveCache(_0x48d281);}export function isSessionEnabled(_0x403ba){const _0xcc61db=_0x3ee91e,_0x2d425f={'WQllU':function(_0x492100){return _0x492100();},'XtZPw':function(_0x1a6a23,_0x2b2e21){return _0x1a6a23===_0x2b2e21;},'WjsZV':_0xcc61db(0x213),'FqFmZ':function(_0x57a866,_0x15fb3a){return _0x57a866===_0x15fb3a;},'XIjGK':'master'},_0xf406f3=_0x2d425f['WQllU'](loadCache),_0x4ca226=getCurrentBranch();if(!_0x4ca226||_0x2d425f['XtZPw'](_0x4ca226,_0x2d425f['WjsZV'])||_0x2d425f['FqFmZ'](_0x4ca226,_0x2d425f[_0xcc61db(0x1e6)]))return _0xf406f3[_0xcc61db(0x1f9)][_0x403ba]?.[_0xcc61db(0x1f7)]===!![];const _0x5d0972=_0xf406f3['branches'][_0x4ca226]===!![],_0x596580=_0xf406f3['sessions'][_0x403ba]?.['enabled']===!![];return _0x5d0972||_0x596580;}export function disableSession(_0x127169){const _0x5919da=_0x3ee91e,_0x18007f=loadCache(),_0x55dbef=getOrCreateSession(_0x18007f,_0x127169);_0x55dbef[_0x5919da(0x1f7)]=![],saveCache(_0x18007f);}export function updateBranchTracking(_0x577a49){const _0x2a842c=_0x3ee91e,_0x544d3c={'YCXPD':function(_0x2a74e1){return _0x2a74e1();},'RBoUq':function(_0x2c44eb){return _0x2c44eb();},'nsmxO':_0x2a842c(0x213),'dbJCH':function(_0xefd7da,_0xd9f164){return _0xefd7da!==_0xd9f164;},'ACfNN':function(_0x48aee0,_0x180af3){return _0x48aee0(_0x180af3);}},_0x1c1171=_0x544d3c['YCXPD'](loadCache),_0x56ffe3=_0x1c1171[_0x2a842c(0x1f9)][_0x577a49];if(!_0x56ffe3?.[_0x2a842c(0x1f7)])return;const _0xfdcdbc=_0x544d3c['RBoUq'](getCurrentBranch);if(!_0xfdcdbc||_0xfdcdbc===_0x544d3c[_0x2a842c(0x20a)]||_0xfdcdbc===_0x2a842c(0x212))return;_0x544d3c['dbJCH'](_0x56ffe3[_0x2a842c(0x1ef)],_0xfdcdbc)&&(_0x1c1171[_0x2a842c(0x1fc)][_0xfdcdbc]=!![],_0x56ffe3[_0x2a842c(0x1ef)]=_0xfdcdbc,_0x544d3c['ACfNN'](saveCache,_0x1c1171));}export function initBranchTracking(_0x323cdc){const _0x4e8c1c=_0x3ee91e,_0x31125b={'lJDWs':function(_0x3ffc9c){return _0x3ffc9c();},'pCIYY':function(_0xc798f2){return _0xc798f2();}},_0x849f8f=_0x31125b['lJDWs'](loadCache),_0x6e449e=_0x31125b['pCIYY'](getCurrentBranch);if(!_0x6e449e||_0x6e449e==='main'||_0x6e449e===_0x4e8c1c(0x212))return;if(_0x849f8f[_0x4e8c1c(0x1fc)][_0x6e449e]===!![]){const _0x12d690=getOrCreateSession(_0x849f8f,_0x323cdc);_0x12d690[_0x4e8c1c(0x1f7)]=!![],_0x12d690['currentBranch']=_0x6e449e,saveCache(_0x849f8f);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x187d58){const _0x39eed6=_0x3ee91e,_0x4743fd={'TZIpt':function(_0x3eca0a){return _0x3eca0a();}},_0x266d5a=_0x4743fd['TZIpt'](loadCache),_0x218a82=_0x266d5a['sessions'][_0x187d58];_0x218a82?.[_0x39eed6(0x1f7)]&&(_0x266d5a[_0x39eed6(0x1e0)]=Date[_0x39eed6(0x1fa)](),saveCache(_0x266d5a));}function _0x234a(){const _0x1c9ec8=['EdxES','2406830lRVTKz','zjUco','dirname','stringify','cdImd','nsmxO','clear','67602UrildS','git\x20rev-parse\x20--abbrev-ref\x20HEAD','kaTgi','pipe','549603LRoSUC','xBIjq','master','main','lastEnabledSessionClearedAt','mZVHE','HEAD','homedir','MRgVY','.ranger_cache.json','XIjGK','OWCpm','SQQGU','5800wxPDiB','239105POyxrb','GgbUD','readFileSync','TbrTf','489398uvnXiF','currentBranch','existsSync','parse','32nvZDGq','4kAjRHB','xliHl','wAzdV','340761yDDfTs','enabled','154CIlCaH','sessions','now','lastStopReminderAt','branches','utf-8','featureId','registeredAt','CEaIQ','PWJeN','fmFNg','uySzn'];_0x234a=function(){return _0x1c9ec8;};return _0x234a();}export function shouldAutoEnableAfterClear(_0x35d429){const _0x1dcda2=_0x3ee91e,_0x10595a={'GgbUD':function(_0x92e2cf,_0x11e932){return _0x92e2cf!==_0x11e932;},'VHhlz':_0x1dcda2(0x20b),'OWCpm':function(_0x7d5e77){return _0x7d5e77();}};if(_0x10595a[_0x1dcda2(0x1eb)](_0x35d429,_0x10595a['VHhlz']))return![];const _0x354029=_0x10595a[_0x1dcda2(0x1e7)](loadCache),_0x148094=_0x354029['lastEnabledSessionClearedAt'];if(!_0x148094)return![];const _0x4e5ac1=Date['now']()-_0x148094;return _0x4e5ac1<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x4698e7){const _0x12c62a=_0x3ee91e,_0x71d809={'xliHl':function(_0x4b8ebd){return _0x4b8ebd();},'uySzn':_0x12c62a(0x213)},_0x1197b5=_0x71d809['xliHl'](loadCache),_0x457af9=getOrCreateSession(_0x1197b5,_0x4698e7);_0x457af9['enabled']=!![];const _0x2ea965=_0x71d809[_0x12c62a(0x1f4)](getCurrentBranch);_0x2ea965&&_0x2ea965!==_0x71d809[_0x12c62a(0x203)]&&_0x2ea965!=='master'&&(_0x457af9[_0x12c62a(0x1ef)]=_0x2ea965),delete _0x1197b5[_0x12c62a(0x1e0)],saveCache(_0x1197b5);}export function registerSession(_0x5dd79b,_0x424b24){const _0x2df3f7=_0x3ee91e,_0x4cb35f={'zjUco':function(_0x2eae74,_0x3630a6){return _0x2eae74(_0x3630a6);}},_0x26d35c=loadCache(),_0x56ef04=getOrCreateSession(_0x26d35c,_0x5dd79b);_0x56ef04[_0x2df3f7(0x1fe)]=_0x424b24,_0x56ef04[_0x2df3f7(0x1ff)]=new Date()['toISOString'](),_0x4cb35f[_0x2df3f7(0x206)](saveCache,_0x26d35c);}export function getSessionEntry(_0x23ecce){const _0xd1b155=_0x3ee91e,_0x4d67a4={'MRgVY':function(_0x3976c5){return _0x3976c5();}},_0x179fc0=_0x4d67a4[_0xd1b155(0x1e4)](loadCache),_0x4f1635=_0x179fc0['sessions'][_0x23ecce];if(_0x4f1635?.['featureId']&&_0x4f1635?.[_0xd1b155(0x1ff)])return{'featureId':_0x4f1635[_0xd1b155(0x1fe)],'registeredAt':_0x4f1635['registeredAt']};return null;}export function unregisterSession(_0x41de54){const _0x4ecec1=_0x3ee91e,_0x466932={'TbrTf':function(_0x1764d5){return _0x1764d5();},'aTyzh':function(_0x2d4e81,_0x581b6e){return _0x2d4e81(_0x581b6e);}},_0x535e0a=_0x466932[_0x4ecec1(0x1ed)](loadCache),_0x2835b2=_0x535e0a['sessions'][_0x41de54];_0x2835b2&&(delete _0x2835b2['featureId'],delete _0x2835b2['registeredAt'],_0x466932['aTyzh'](saveCache,_0x535e0a));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x3c8f4b){const _0x1f81ee=_0x3ee91e,_0x1213ca={'klVyq':function(_0x3793ca){return _0x3793ca();},'kaTgi':function(_0x56c5fb,_0x1a13a2,_0x5c1e08){return _0x56c5fb(_0x1a13a2,_0x5c1e08);},'FuOGY':function(_0x2be681,_0x2e4f71){return _0x2be681-_0x2e4f71;},'PWJeN':function(_0x297019,_0x170cda){return _0x297019(_0x170cda);}},_0x3fa921=_0x1213ca['klVyq'](loadCache),_0x4964f1=_0x1213ca[_0x1f81ee(0x20e)](getOrCreateSession,_0x3fa921,_0x3c8f4b),_0xaf1b1e=_0x4964f1['lastPlanReminderAt']||0x0,_0x7f9392=Date[_0x1f81ee(0x1fa)]();if(_0x1213ca['FuOGY'](_0x7f9392,_0xaf1b1e)>=PLAN_REMINDER_INTERVAL_MS)return _0x4964f1['lastPlanReminderAt']=_0x7f9392,_0x1213ca[_0x1f81ee(0x201)](saveCache,_0x3fa921),!![];return![];}export function shouldShowStopReminder(_0x43a910){const _0x1cf400=_0x3ee91e,_0xd183e0={'gZKTO':function(_0x27a2b5){return _0x27a2b5();},'cdImd':function(_0x431312,_0x220381,_0x309907){return _0x431312(_0x220381,_0x309907);},'CEaIQ':function(_0x341674,_0x5d8a18){return _0x341674>=_0x5d8a18;},'mZVHE':function(_0x2273d1,_0x38cb08){return _0x2273d1-_0x38cb08;},'xJMYS':function(_0x768921,_0x24c583){return _0x768921(_0x24c583);}},_0x44a671=_0xd183e0['gZKTO'](loadCache),_0x84c5c6=_0xd183e0[_0x1cf400(0x209)](getOrCreateSession,_0x44a671,_0x43a910),_0x2fb0ff=_0x84c5c6[_0x1cf400(0x1fb)]||0x0,_0x1436fa=Date[_0x1cf400(0x1fa)]();if(_0xd183e0[_0x1cf400(0x200)](_0xd183e0[_0x1cf400(0x1e1)](_0x1436fa,_0x2fb0ff),STOP_REMINDER_INTERVAL_MS))return _0x84c5c6[_0x1cf400(0x1fb)]=_0x1436fa,_0xd183e0['xJMYS'](saveCache,_0x44a671),!![];return![];}function _0xc6c2(_0x1d0fc2,_0x27ee74){_0x1d0fc2=_0x1d0fc2-0x1e0;const _0x234aac=_0x234a();let _0xc6c2a0=_0x234aac[_0x1d0fc2];return _0xc6c2a0;}export function hasSessionBeenPrompted(_0x259b6a){const _0x13c262=_0x3ee91e,_0x4abbf4={'sACGe':function(_0x25f2bf){return _0x25f2bf();},'fmFNg':function(_0x4f740a,_0x3bf043){return _0x4f740a===_0x3bf043;}},_0x11c491=_0x4abbf4['sACGe'](loadCache);return _0x4abbf4[_0x13c262(0x202)](_0x11c491[_0x13c262(0x1f9)][_0x259b6a]?.['prompted'],!![]);}export function markSessionPrompted(_0x4962ad){const _0x2e6fcb={'nsyCq':function(_0x266745,_0x1f1d73,_0xd75029){return _0x266745(_0x1f1d73,_0xd75029);},'JNjvv':function(_0xa9cb50,_0x2266db){return _0xa9cb50(_0x2266db);}},_0x337bc0=loadCache(),_0x16df75=_0x2e6fcb['nsyCq'](getOrCreateSession,_0x337bc0,_0x4962ad);_0x16df75['prompted']=!![],_0x2e6fcb['JNjvv'](saveCache,_0x337bc0);}export function getCacheFile(){return CACHE_FILE;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1f0ad9=_0x47e9;(function(_0x35e1eb,_0x36c5c7){const _0x1ab00d=_0x47e9,_0x1ba2f5=_0x35e1eb();while(!![]){try{const _0x2cb6e8=-parseInt(_0x1ab00d(0x1e3))/0x1+parseInt(_0x1ab00d(0x1ee))/0x2+parseInt(_0x1ab00d(0x23c))/0x3*(parseInt(_0x1ab00d(0x1e7))/0x4)+parseInt(_0x1ab00d(0x1f6))/0x5*(-parseInt(_0x1ab00d(0x1fe))/0x6)+-parseInt(_0x1ab00d(0x1fb))/0x7+parseInt(_0x1ab00d(0x23d))/0x8+parseInt(_0x1ab00d(0x1f2))/0x9;if(_0x2cb6e8===_0x36c5c7)break;else _0x1ba2f5['push'](_0x1ba2f5['shift']());}catch(_0x256acc){_0x1ba2f5['push'](_0x1ba2f5['shift']());}}}(_0x3fd7,0xae509));import{readFile,writeFile,mkdir,unlink}from'fs/promises';function _0x3fd7(){const _0x2c04c1=['wdKTI','stNvu','OZmKf','chromium','fmdmn','bWSPn','legacy','all','string','QLaiQ','ENOENT','split','497827fOXAPR','repeat','.json','executablePath','4kOgeDb','EvtgJ','header','parse','KxKTH','filter','settings.json','1631378jcsaQm','IANpn','catch','join','12100509iQqEpX','pdf','gjDDQ','TkFME','5931110RMLTyi','aELBT','RaDCQ','hERmT','--disable-features=WebBluetooth','4562831FWvRwP','boolean','lxdoT','6cpFQdO','pNBDK','IQXtB','\x22\x20to\x20legacy\x20path\x20','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','storageState','iYUtl','forWrite','isArray','xXOTe','--no-sandbox','agAgz','userAgent','aSWLi','tWfuM','auth.json','Awqob','zlQVP','emQoT','dWfli','cdpEndpoint','XXfZD','--disable-web-security','keys','drYAL','XAWpQ','clipboard-write','cZExQ','LCKcT','emAUS','FGlsd','WktYv','ranger-config','safeMode','dHPMx','path','ignoreHTTPSErrors','map','efcYn','Failed\x20to\x20decrypt\x20auth\x20state:\x20','now','KqidD','--allow-insecure-localhost','--disable-setuid-sandbox','endsWith','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','OdCrt','-cli','DxaNB','amsxl','storageStatePath','baseUrl','extraHTTPHeaders','auth.json.enc','browser','getuid','setupHeaders','stagehand','contextOptions','KurYN','allow','qAilj','2225814oSgiJe','1181976TqBlSF','env','sessions','tOjoF','playwright-cli','dGxmx','args','length','object','fromEntries','--unsafely-treat-insecure-origin-as-secure=http://localhost','configPath','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','core','push','includes','headless','file','local','slwnW','entries'];_0x3fd7=function(){return _0x2c04c1;};return _0x3fd7();}import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{chromium}from'playwright';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x288e1f,_0xe51316){const _0x34a8a3=_0x47e9,_0x45304f={'ZboOC':function(_0x137a13,_0x4b2a8f,_0x55dbd5,_0x379a4e){return _0x137a13(_0x4b2a8f,_0x55dbd5,_0x379a4e);},'dWfli':function(_0x42ceb9,_0x4a0a4c,_0x5353a8){return _0x42ceb9(_0x4a0a4c,_0x5353a8);},'EvtgJ':function(_0x360b9d,_0x379607,_0x1b2693){return _0x360b9d(_0x379607,_0x1b2693);},'bWSPn':function(_0x4aea6a,_0x22a9a5){return _0x4aea6a(_0x22a9a5);},'RaDCQ':function(_0x51e20e,_0x17f46b){return _0x51e20e!==_0x17f46b;}},_0x16a03a=_0x45304f['ZboOC'](join,_0xe51316,'ci',_0x288e1f),_0x5ae453=join(_0xe51316,_0x34a8a3(0x24f),_0x288e1f),_0x19af9e=_0x45304f[_0x34a8a3(0x211)](join,_0xe51316,_0x288e1f),_0x48df19=join(_0xe51316,_0x34a8a3(0x24f)),_0x4b02c6=_0x45304f[_0x34a8a3(0x1e8)](join,_0xe51316,'ci');if(existsSync(_0x16a03a))return _0x16a03a;if(_0x45304f[_0x34a8a3(0x1dc)](existsSync,_0x5ae453))return _0x5ae453;if(existsSync(_0x19af9e)&&(_0x45304f[_0x34a8a3(0x1f8)](_0x19af9e,_0x48df19)&&_0x45304f[_0x34a8a3(0x1f8)](_0x19af9e,_0x4b02c6)?!![]:hasLegacyProfileFiles(_0x19af9e)))return _0x19af9e;return null;}export function getEnvDir(_0x1fabb7,_0x55233c={}){const _0x3b412a=_0x47e9,_0x3f0a63={'amsxl':function(_0x1e35e3,_0x4c7e1a,_0x2c773f){return _0x1e35e3(_0x4c7e1a,_0x2c773f);},'OdCrt':function(_0x50ada2,_0x434769){return _0x50ada2(_0x434769);},'huUGH':function(_0xeee981,_0x3c9d89,_0x5228df){return _0xeee981(_0x3c9d89,_0x5228df);},'bHIiO':function(_0x35ec3a,_0x35005a,_0x260464,_0x1464d2){return _0x35ec3a(_0x35005a,_0x260464,_0x1464d2);},'aELBT':_0x3b412a(0x24f)},_0x2bc379=getRangerDir(),_0x565b80=_0x3f0a63[_0x3b412a(0x22f)](findEnvInRoot,_0x1fabb7,_0x2bc379);if(_0x565b80){if(_0x55233c[_0x3b412a(0x205)]&&_0x3f0a63[_0x3b412a(0x22c)](isLegacyEnvPath,_0x565b80))throw _0x3f0a63['huUGH'](legacyWriteError,_0x1fabb7,_0x565b80);return _0x565b80;}const _0x46ac87=getRangerHomeDir();if(_0x46ac87!==_0x2bc379){const _0x8652e6=findEnvInRoot(_0x1fabb7,_0x46ac87);if(_0x8652e6){if(_0x55233c[_0x3b412a(0x205)]&&isLegacyEnvPath(_0x8652e6))throw legacyWriteError(_0x1fabb7,_0x8652e6);return _0x8652e6;}}const _0x167af0=_0x3f0a63['bHIiO'](join,_0x46ac87,_0x3f0a63[_0x3b412a(0x1f7)],_0x1fabb7);if(_0x55233c['forWrite'])throw legacyWriteError(_0x1fabb7,_0x167af0);return _0x167af0;}function isLegacyEnvPath(_0x3339cd){const _0x37209e=_0x47e9,_0xda6afb={'PxOMd':function(_0x1e662c){return _0x1e662c();},'NUDGP':function(_0x59b8a7,_0x49335f){return _0x59b8a7+_0x49335f;}},_0x372fbf=getRangerDir(),_0x7136f8=_0xda6afb['PxOMd'](getRangerHomeDir);for(const _0xbc997c of new Set([_0x372fbf,_0x7136f8])){const _0x2865a6=_0xbc997c[_0x37209e(0x22a)]('/')?_0xbc997c:_0xda6afb['NUDGP'](_0xbc997c,'/');if(_0x3339cd===_0xbc997c||_0x3339cd['startsWith'](_0x2865a6))return!![];}return![];}function legacyWriteError(_0xca273f,_0x49ab0c){const _0x422c02=_0x47e9,_0x510f87={'gjDDQ':function(_0x445bf5,_0xa6ea9d){return _0x445bf5+_0xa6ea9d;}};return new Error(_0x510f87[_0x422c02(0x1f4)](_0x510f87[_0x422c02(0x1f4)]('Refusing\x20to\x20write\x20profile\x20\x22'+_0xca273f+_0x422c02(0x201)+_0x49ab0c+'.\x0a',_0x422c02(0x202))+'\x20\x20ranger\x20profile\x20add\x20<name>\x0a',_0x422c02(0x22b)));}export function findExistingEnv(_0x15580c,_0x2f3013){const _0x137366=_0x47e9,_0x2910f2={'OZmKf':_0x137366(0x1dd),'lxdoT':function(_0x5ef9cf,_0x2bae1a,_0x374882){return _0x5ef9cf(_0x2bae1a,_0x374882);},'wdKTI':function(_0x1d112a,_0x4616f9){return _0x1d112a(_0x4616f9);},'MBtId':function(_0x535cef,_0x2b5f96){return _0x535cef===_0x2b5f96;},'pDdUk':function(_0x2a9a09,_0x2e140a){return _0x2a9a09===_0x2e140a;}},_0x3c7b9b=_0x2f3013?.['rangerDir'],_0x57d7de=_0x3c7b9b?[_0x3c7b9b]:[getRangerDir(),getRangerHomeDir()][_0x137366(0x1ec)]((_0x182869,_0x8d2478,_0xe969b7)=>_0xe969b7['indexOf'](_0x182869)===_0x8d2478),_0x3952ca=_0x2f3013?.['locations']??['ci',_0x137366(0x24f),_0x2910f2[_0x137366(0x1d9)]];for(const _0x1f7b5b of _0x57d7de){const _0xc3c225=_0x2910f2[_0x137366(0x1fd)](join,_0x1f7b5b,_0x137366(0x24f)),_0x3fd1a3=join(_0x1f7b5b,'ci'),_0x64785=[{'location':'ci','path':join(_0x1f7b5b,'ci',_0x15580c)},{'location':'local','path':join(_0x1f7b5b,_0x137366(0x24f),_0x15580c)},{'location':_0x137366(0x1dd),'path':join(_0x1f7b5b,_0x15580c)}];for(const _0x488a66 of _0x64785){if(_0x3952ca[_0x137366(0x24c)](_0x488a66['location'])&&_0x2910f2[_0x137366(0x1d7)](existsSync,_0x488a66[_0x137366(0x221)])){if(_0x2910f2['MBtId'](_0x488a66['location'],_0x2910f2['OZmKf'])&&(_0x488a66[_0x137366(0x221)]===_0xc3c225||_0x2910f2['pDdUk'](_0x488a66[_0x137366(0x221)],_0x3fd1a3))&&!hasLegacyProfileFiles(_0x488a66[_0x137366(0x221)]))continue;return{'path':_0x488a66[_0x137366(0x221)],'location':_0x488a66['location']};}}}return null;}function hasLegacyProfileFiles(_0x3f6b69){const _0x190634=_0x47e9,_0x27e8f0={'QLaiQ':function(_0x20f0b4,_0x25c9bb){return _0x20f0b4(_0x25c9bb);}};return _0x27e8f0[_0x190634(0x1e0)](existsSync,join(_0x3f6b69,_0x190634(0x1ed)))||_0x27e8f0[_0x190634(0x1e0)](existsSync,join(_0x3f6b69,_0x190634(0x20d)))||_0x27e8f0['QLaiQ'](existsSync,join(_0x3f6b69,_0x190634(0x233)));}export function isEnvCi(_0xbe52ff){const _0x39ee24=_0x47e9,_0x269b04={'xXOTe':function(_0x2e1761,_0x1e7ba0,_0x5962f7,_0x1a1e53){return _0x2e1761(_0x1e7ba0,_0x5962f7,_0x1a1e53);},'qBHmN':function(_0x3f6419){return _0x3f6419();},'SAoqf':function(_0x2d30fd){return _0x2d30fd();},'Awqob':function(_0x106b86){return _0x106b86();},'QEefw':function(_0x11b09b,_0x41639e){return _0x11b09b(_0x41639e);},'hNXol':function(_0x4dd231,_0x3c5f13,_0x59f51c,_0x1adae6){return _0x4dd231(_0x3c5f13,_0x59f51c,_0x1adae6);}};if(existsSync(_0x269b04[_0x39ee24(0x207)](join,_0x269b04['qBHmN'](getRangerDir),'ci',_0xbe52ff)))return!![];const _0x2e53ba=_0x269b04['SAoqf'](getRangerHomeDir);if(_0x2e53ba!==_0x269b04[_0x39ee24(0x20e)](getRangerDir)&&_0x269b04['QEefw'](existsSync,_0x269b04['hNXol'](join,_0x2e53ba,'ci',_0xbe52ff)))return!![];return![];}export async function cleanupTempFiles(_0x40b047){const _0x3e13bc=_0x47e9,_0x4b3124={'uDBIe':function(_0x54f6f6,_0x450474){return _0x54f6f6!==_0x450474;}},_0x2c3eff=[_0x40b047['tempAuthPath'],_0x40b047[_0x3e13bc(0x248)]]['filter'](Boolean);await Promise[_0x3e13bc(0x1de)](_0x2c3eff['map'](_0xf4524d=>unlink(_0xf4524d)['catch'](_0x13845a=>{const _0x1bda06=_0x3e13bc;_0x4b3124['uDBIe'](_0x13845a['code'],_0x1bda06(0x1e1))&&console['warn'](_0x1bda06(0x249)+_0xf4524d+':',_0x13845a['message']);})));}export function getSettingsPath(_0x33c88f){const _0x49941a=_0x47e9;return join(getEnvDir(_0x33c88f),_0x49941a(0x1ed));}export async function loadSettings(_0xbfb6bb){const _0x11d144=_0x47e9,_0x1e9b61={'fmdmn':function(_0x1699b7,_0x164a7c){return _0x1699b7(_0x164a7c);},'XAWpQ':function(_0x144ec4,_0x48dbb4,_0x2aa754){return _0x144ec4(_0x48dbb4,_0x2aa754);},'AnWdm':'utf-8'},_0x2d69ea=getSettingsPath(_0xbfb6bb);if(!_0x1e9b61[_0x11d144(0x1db)](existsSync,_0x2d69ea))return{};try{const _0x2d0ddb=await _0x1e9b61[_0x11d144(0x217)](readFile,_0x2d69ea,_0x1e9b61['AnWdm']);return JSON[_0x11d144(0x1ea)](_0x2d0ddb);}catch{return{};}}export async function saveSettings(_0x1786f6,_0x436c00){const _0x1beda7=_0x47e9,_0x400f1f={'pNBDK':function(_0x3e9876,_0x33d405){return _0x3e9876(_0x33d405);},'dOHCb':function(_0x36e854,_0x1f61ba,_0x29bf2a){return _0x36e854(_0x1f61ba,_0x29bf2a);},'efcYn':function(_0x450cdc,_0x25256f,_0x25a032){return _0x450cdc(_0x25256f,_0x25a032);}},_0x2dc05a=getSettingsPath(_0x1786f6),_0x3a327b=_0x400f1f['pNBDK'](dirname,_0x2dc05a);!_0x400f1f[_0x1beda7(0x1ff)](existsSync,_0x3a327b)&&await _0x400f1f['dOHCb'](mkdir,_0x3a327b,{'recursive':!![]}),await _0x400f1f[_0x1beda7(0x224)](writeFile,_0x2dc05a,JSON['stringify'](_0x436c00,null,0x2));}export function resolveEnvVars(_0x493d9e){const _0x211eae=_0x47e9,_0x4173f1={'SXbdx':_0x211eae(0x1df)};if(typeof _0x493d9e===_0x4173f1['SXbdx'])return _0x493d9e['replace'](/\$\{(\w+)\}/g,(_0x2eee8f,_0x3f0df5)=>{const _0xe69beb=_0x211eae,_0xeed412=process[_0xe69beb(0x23e)][_0x3f0df5];if(_0xeed412===undefined)throw new Error('Environment\x20variable\x20'+_0x3f0df5+'\x20is\x20not\x20set');return _0xeed412;});if(Array[_0x211eae(0x206)](_0x493d9e))return _0x493d9e['map'](resolveEnvVars);if(_0x493d9e&&typeof _0x493d9e==='object')return Object[_0x211eae(0x246)](Object[_0x211eae(0x1d6)](_0x493d9e)[_0x211eae(0x223)](([_0x280bed,_0x594be0])=>[_0x280bed,resolveEnvVars(_0x594be0)]));return _0x493d9e;}const isRecord=_0x50347f=>typeof _0x50347f==='object'&&_0x50347f!==null&&!Array['isArray'](_0x50347f),asRecord=_0x2a950a=>isRecord(_0x2a950a)?_0x2a950a:undefined,mergeHeaders=(_0x473084,_0xdedd36)=>{const _0x3728c9=_0x47e9,_0x2200fe={'XXfZD':function(_0x550412,_0x210087){return _0x550412??_0x210087;}},_0x3b750b={..._0x2200fe[_0x3728c9(0x213)](_0x473084,{}),..._0xdedd36??{}};return Object[_0x3728c9(0x215)](_0x3b750b)[_0x3728c9(0x244)]?_0x3b750b:undefined;},SAFE_MODE_ARGS=[_0x1f0ad9(0x1fa)],ALLOW_LOCALHOST_ARGS=[_0x1f0ad9(0x214),'--allow-running-insecure-content',_0x1f0ad9(0x247),_0x1f0ad9(0x228)];function _0x47e9(_0x4b2059,_0x537a4d){_0x4b2059=_0x4b2059-0x1d5;const _0x3fd77f=_0x3fd7();let _0x47e921=_0x3fd77f[_0x4b2059];return _0x47e921;}export function buildBrowserOptionsFromSettings(_0x43f73b,_0x335172={}){const _0x696a4f=_0x1f0ad9,_0x7592c7={'vMCkn':function(_0x1f94ab,_0x520f08){return _0x1f94ab(_0x520f08);},'stNvu':function(_0x2122c6,_0x54ad52){return _0x2122c6===_0x54ad52;}},_0x10931f=_0x7592c7['vMCkn'](asRecord,_0x43f73b[_0x696a4f(0x234)]),_0x5da93b={...asRecord(_0x10931f?.['launchOptions'])??{}};typeof _0x335172['headless']===_0x696a4f(0x1fc)&&(_0x5da93b['headless']=_0x335172[_0x696a4f(0x24d)]);if(_0x43f73b[_0x696a4f(0x21f)]){const _0x357e88=_0x5da93b[_0x696a4f(0x243)]??[],_0xf21045=SAFE_MODE_ARGS[_0x696a4f(0x1ec)](_0x18e74d=>!_0x357e88[_0x696a4f(0x24c)](_0x18e74d));_0x5da93b[_0x696a4f(0x243)]=[..._0x357e88,..._0xf21045];}if(_0x43f73b['allowInsecureLocalhost']){const _0x24f9a7=_0x5da93b[_0x696a4f(0x243)]??[],_0x2016b9=ALLOW_LOCALHOST_ARGS['filter'](_0xfe98ca=>!_0x24f9a7[_0x696a4f(0x24c)](_0xfe98ca));_0x5da93b['args']=[..._0x24f9a7,..._0x2016b9];}const _0x378f40={...asRecord(_0x10931f?.['contextOptions'])??{}};_0x378f40[_0x696a4f(0x222)]=!![];_0x7592c7[_0x696a4f(0x1d8)](typeof _0x43f73b[_0x696a4f(0x20a)],_0x696a4f(0x1df))&&(_0x378f40['userAgent']=_0x43f73b['userAgent']);const _0x1d3976=mergeHeaders(_0x7592c7['vMCkn'](asRecord,_0x378f40[_0x696a4f(0x232)]),asRecord(_0x43f73b['headers']));return _0x1d3976?_0x378f40[_0x696a4f(0x232)]=_0x1d3976:delete _0x378f40['extraHTTPHeaders'],_0x335172[_0x696a4f(0x230)]&&(_0x378f40[_0x696a4f(0x203)]=_0x335172['storageStatePath']),{'launchOptions':_0x5da93b,'contextOptions':_0x378f40};}export async function resolveProfileStorageState(_0x7d817c){const _0x4e533b=_0x1f0ad9,_0x503bcd={'iYUtl':function(_0x562b16,_0x2e3cb1){return _0x562b16(_0x2e3cb1);}};return _0x503bcd[_0x4e533b(0x204)](resolveLocalAuthPath,getEnvDir(_0x7d817c));}async function resolveLocalAuthPath(_0x11c2dc){const _0x4cf39a=_0x1f0ad9,_0x2ea274={'KqidD':function(_0x331d88,_0x562a96,_0x2735a8){return _0x331d88(_0x562a96,_0x2735a8);},'slwnW':'auth.json','cZExQ':function(_0x47004d,_0x523c06){return _0x47004d(_0x523c06);},'LCKcT':function(_0x35f5d8,_0x5a19d4){return _0x35f5d8(_0x5a19d4);}},_0x107682=_0x2ea274[_0x4cf39a(0x227)](join,_0x11c2dc,_0x4cf39a(0x233)),_0x4cac6b=_0x2ea274[_0x4cf39a(0x227)](join,_0x11c2dc,_0x2ea274[_0x4cf39a(0x1d5)]);if(_0x2ea274[_0x4cf39a(0x219)](existsSync,_0x107682))try{const _0x1638b1=await getToken();if(!_0x1638b1)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x2ec1db=await readFile(_0x107682),_0x13de5a=_0x2ea274['KqidD'](decrypt,_0x2ec1db,_0x1638b1),_0x24b965=join(tmpdir(),'ranger-auth-'+Date[_0x4cf39a(0x226)]()+_0x4cf39a(0x1e5));return await writeFile(_0x24b965,_0x13de5a),{'storageStatePath':_0x24b965,'tempAuthPath':_0x24b965};}catch(_0x3fe2cc){const _0x1c66c5=_0x3fe2cc instanceof Error?_0x3fe2cc['message']:_0x2ea274['cZExQ'](String,_0x3fe2cc);throw new Error(_0x4cf39a(0x225)+_0x1c66c5);}if(_0x2ea274[_0x4cf39a(0x21a)](existsSync,_0x4cac6b))return{'storageStatePath':_0x4cac6b};return{};}export async function buildPlaywrightConfig(_0x8975aa,_0x59d0ca,_0x1fb27c,_0x29e9cd,_0x22b882){const _0x930d82=_0x1f0ad9,_0x46c810={'FGlsd':function(_0x37876c,_0xe2f637,_0xb7dbb0,_0x12b71a,_0xe6606c,_0x4c6283,_0x2ad007){return _0x37876c(_0xe2f637,_0xb7dbb0,_0x12b71a,_0xe6606c,_0x4c6283,_0x2ad007);},'yVAZc':_0x930d82(0x237)};if(_0x22b882)return _0x46c810['FGlsd'](buildPlaywrightConfigCore,_0x8975aa,_0x22b882,_0x59d0ca,_0x1fb27c,_0x29e9cd,'stagehand');const {storageStatePath:_0x416344,tempAuthPath:_0x318e4b}=await resolveLocalAuthPath(getEnvDir(_0x59d0ca));try{const _0x26185d=await _0x46c810[_0x930d82(0x21c)](buildPlaywrightConfigCore,_0x8975aa,_0x416344,_0x59d0ca,_0x1fb27c,_0x29e9cd,_0x46c810['yVAZc']);return{..._0x26185d,'tempAuthPath':_0x318e4b};}catch(_0x5ea96a){_0x318e4b&&await unlink(_0x318e4b)['catch'](()=>{});throw _0x5ea96a;}}export async function buildPlaywrightConfigCore(_0x5e3d6f,_0xbf1747,_0xceb040,_0x12688a,_0x4ec2c2,_0x577bbe=_0x1f0ad9(0x237)){const _0x1ef01f=_0x1f0ad9,_0x5be85a={'WPSuz':_0x1ef01f(0x229),'WYAPS':_0x1ef01f(0x218),'WktYv':function(_0x208c15){return _0x208c15();},'jrBvx':_0x1ef01f(0x1da),'OfCYC':_0x1ef01f(0x24e),'IpDAK':'tabs','ZjRve':function(_0x30d002,_0x208906){return _0x30d002===_0x208906;},'DxaNB':function(_0x4d22e6,_0xf00d,_0x190e6f){return _0x4d22e6(_0xf00d,_0x190e6f);},'sxohG':'ranger-config','mPwNp':function(_0x4079ba,_0x33fb58){return _0x4079ba===_0x33fb58;}},_0x4f4d02=_0x12688a||randomUUID(),_0x52a8ad=join(_0x5be85a[_0x1ef01f(0x21d)](getRangerDir),'sessions',_0x4f4d02),_0x37f2b2=Boolean(_0x5e3d6f[_0x1ef01f(0x212)]),_0x2d27bc=_0x37f2b2?{'browserName':_0x5be85a['jrBvx'],'cdpEndpoint':_0x5e3d6f[_0x1ef01f(0x212)]}:((()=>{const _0x55028b=_0x1ef01f,{launchOptions:_0x107eca,contextOptions:_0x5ee926}=buildBrowserOptionsFromSettings(_0x5e3d6f,{'headless':_0x4ec2c2?![]:_0x5e3d6f[_0x55028b(0x24d)]??!![],'storageStatePath':_0xbf1747});if(process[_0x55028b(0x235)]?.()===0x0){const _0x3a13ca=[_0x55028b(0x208),_0x5be85a['WPSuz']],_0x259d5a=_0x107eca[_0x55028b(0x243)]??[],_0x5095bd=_0x3a13ca['filter'](_0x5cffb9=>!_0x259d5a['includes'](_0x5cffb9));_0x107eca['args']=[..._0x259d5a,..._0x5095bd];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x107eca,'contextOptions':{..._0x5ee926,'permissions':['clipboard-read',_0x5be85a['WYAPS']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x3e51a1=_0x577bbe===_0x1ef01f(0x241)?{'browser':_0x2d27bc,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x52a8ad,'outputMode':_0x5be85a['OfCYC'],'codegen':'none'}:{'name':_0xceb040,'browser':_0x2d27bc,'capabilities':[_0x1ef01f(0x24a),_0x5be85a['IpDAK'],'install',_0x1ef01f(0x1f3),'vision'],'imageResponses':_0x1ef01f(0x23a),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x52a8ad};if(!_0x37f2b2){const _0x356def=_0x3e51a1['browser'],_0x24789e=_0x356def['contextOptions'];if(_0x5be85a['ZjRve'](_0x24789e[_0x1ef01f(0x20a)],undefined))delete _0x24789e['userAgent'];if(_0x24789e['storageState']===undefined)delete _0x24789e['storageState'];}const _0x517965=_0x5be85a[_0x1ef01f(0x22e)](join,_0x5be85a['WktYv'](tmpdir),_0x5be85a['sxohG']);!existsSync(_0x517965)&&await mkdir(_0x517965,{'recursive':!![]});const _0x3c1454=_0x5be85a['mPwNp'](_0x577bbe,_0x1ef01f(0x241))?_0x1ef01f(0x22d):'',_0x49b34b=join(_0x517965,_0xceb040+'-'+Date[_0x1ef01f(0x226)]()+_0x3c1454+_0x1ef01f(0x1e5));return await writeFile(_0x49b34b,JSON['stringify'](_0x3e51a1,null,0x2)),{'configPath':_0x49b34b,'storageStatePath':_0xbf1747};}export async function buildPlaywrightCliConfig(_0x27c095,_0x211b70,_0x175c6d,_0x4197ef,_0x400c85){const _0x524415=_0x1f0ad9,_0xe1332b={'rpWMr':function(_0x151621,_0x8be0d2){return _0x151621(_0x8be0d2);},'AWWgS':function(_0x2ce90d,_0x2a77d1,_0x4a8fec,_0x35c3a1,_0x497bf3,_0x350c12,_0x229210){return _0x2ce90d(_0x2a77d1,_0x4a8fec,_0x35c3a1,_0x497bf3,_0x350c12,_0x229210);}};if(_0x400c85)return buildPlaywrightConfigCore(_0x27c095,_0x400c85,_0x211b70,_0x175c6d,_0x4197ef,_0x524415(0x241));const {storageStatePath:_0x5adb63,tempAuthPath:_0x4d7e8b}=await resolveLocalAuthPath(_0xe1332b['rpWMr'](getEnvDir,_0x211b70));try{const _0x4aaced=await _0xe1332b['AWWgS'](buildPlaywrightConfigCore,_0x27c095,_0x5adb63,_0x211b70,_0x175c6d,_0x4197ef,'playwright-cli');return{..._0x4aaced,'tempAuthPath':_0x4d7e8b};}catch(_0x392e17){_0x4d7e8b&&await unlink(_0x4d7e8b)[_0x524415(0x1f0)](()=>{});throw _0x392e17;}}export async function buildRangerwrightCliConfig(_0x35bba7,_0x38c0fa,_0x1a36f6,_0x2a6e6f,_0x454925){const _0x22aef6=_0x1f0ad9,_0x3eabb4={'aSWLi':function(_0x426379,_0x50912e){return _0x426379===_0x50912e;},'RtLdt':'chromium','dWRqJ':'clipboard-read','tOjoF':function(_0xfd9148){return _0xfd9148();},'JVRkb':_0x22aef6(0x23f),'dDaYF':function(_0x2d7469,_0x6bfc21){return _0x2d7469(_0x6bfc21);},'dGxmx':function(_0x2f1d9b,_0x84f0fe,_0x225c56){return _0x2f1d9b(_0x84f0fe,_0x225c56);}},{storageStatePath:_0x257926,tempAuthPath:_0x312747}=_0x454925?{'storageStatePath':_0x454925,'tempAuthPath':undefined}:await resolveLocalAuthPath(getEnvDir(_0x38c0fa)),_0x51ec57=_0x1a36f6||_0x3eabb4['tOjoF'](randomUUID),_0x53e73d=join(_0x3eabb4[_0x22aef6(0x240)](getRangerDir),_0x3eabb4['JVRkb'],_0x51ec57),_0x20791a=_0x3eabb4['dDaYF'](Boolean,_0x35bba7[_0x22aef6(0x212)]),_0x175d3a=_0x20791a?{'browserName':'chromium','cdpEndpoint':_0x35bba7['cdpEndpoint']}:((()=>{const _0x2702e4=_0x22aef6,{launchOptions:_0x2c4bf8,contextOptions:_0x20ace2}=buildBrowserOptionsFromSettings(_0x35bba7,{'headless':_0x2a6e6f?![]:_0x35bba7[_0x2702e4(0x24d)]??!![],'storageStatePath':_0x257926});if(_0x3eabb4[_0x2702e4(0x20b)](process['getuid']?.(),0x0)){const _0x3c8636=[_0x2702e4(0x208),'--disable-setuid-sandbox'],_0x1464f0=_0x2c4bf8[_0x2702e4(0x243)]??[],_0x5d2566=_0x3c8636['filter'](_0x1a80bf=>!_0x1464f0['includes'](_0x1a80bf));_0x2c4bf8[_0x2702e4(0x243)]=[..._0x1464f0,..._0x5d2566];}return{'browserName':_0x3eabb4['RtLdt'],'launchOptions':_0x2c4bf8,'contextOptions':{..._0x20ace2,'permissions':[_0x3eabb4['dWRqJ'],_0x2702e4(0x218)],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x20791a){const _0x316e0c=_0x175d3a[_0x22aef6(0x238)];if(_0x316e0c){if(_0x3eabb4[_0x22aef6(0x20b)](_0x316e0c['userAgent'],undefined))delete _0x316e0c['userAgent'];if(_0x316e0c[_0x22aef6(0x203)]===undefined)delete _0x316e0c['storageState'];}}const _0x5677d8={'browser':_0x175d3a,'outputDir':_0x53e73d,'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'settle':{'navigationLoadTimeoutMs':0x7530,'networkSettleTimeoutMs':0x1388,'networkIdleWindowMs':0x1f4,'postActionAnimationFrameCount':0x2}};let _0x1300b7;try{const _0x330a5d=_0x3eabb4[_0x22aef6(0x242)](join,_0x3eabb4['tOjoF'](tmpdir),_0x22aef6(0x21e));!existsSync(_0x330a5d)&&await mkdir(_0x330a5d,{'recursive':!![]}),_0x1300b7=join(_0x330a5d,_0x38c0fa+'-'+Date['now']()+'-rangerwright.json'),await writeFile(_0x1300b7,JSON['stringify'](_0x5677d8,null,0x2));}catch(_0x88a602){_0x312747&&await unlink(_0x312747)['catch'](()=>{});throw _0x88a602;}return{'configPath':_0x1300b7,'storageStatePath':_0x257926,'tempAuthPath':_0x312747,'outputDir':_0x53e73d};}export async function buildNovaActCliConfig(_0x1e09e5,_0x4c6ccc,_0x484093,_0x3e2194,_0x795d8a){const _0x5709b2=_0x1f0ad9,_0x405018={'bxrtE':function(_0x5a0209,_0x2b8871){return _0x5a0209(_0x2b8871);},'egJbz':function(_0x58eaf2,_0x1d54f9){return _0x58eaf2(_0x1d54f9);},'kAkTp':function(_0x2d802a){return _0x2d802a();},'NLhIc':function(_0x30c7a1,_0x43db75,_0x5201d2,_0x191649){return _0x30c7a1(_0x43db75,_0x5201d2,_0x191649);},'dHPMx':'nova-user-data','qAilj':function(_0xc49d2,_0x38cb3c,_0x9827d){return _0xc49d2(_0x38cb3c,_0x9827d);},'TkFME':function(_0x1f4b0f,_0x52cc1f){return _0x1f4b0f===_0x52cc1f;},'tWfuM':_0x5709b2(0x1df),'KxKTH':function(_0x38aeb2,_0x4877f5){return _0x38aeb2===_0x4877f5;},'wzXrK':function(_0x2ac6ee,_0x113733){return _0x2ac6ee(_0x113733);}},{storageStatePath:_0xb41240,tempAuthPath:_0xd63b3d}=_0x795d8a?{'storageStatePath':_0x795d8a,'tempAuthPath':undefined}:await _0x405018['bxrtE'](resolveLocalAuthPath,_0x405018['egJbz'](getEnvDir,_0x4c6ccc)),_0x1c6e1a=_0x484093||_0x405018['kAkTp'](randomUUID),_0x2e21dc=_0x405018['NLhIc'](join,getRangerDir(),'sessions',_0x1c6e1a),_0x173e1b=join(_0x2e21dc,_0x405018[_0x5709b2(0x220)]),_0x42d318=_0xb41240?_0x405018[_0x5709b2(0x23b)](join,_0x173e1b,'Default'):undefined,{launchOptions:_0xa84ff0,contextOptions:_0x59fc5a}=buildBrowserOptionsFromSettings(_0x1e09e5,{'headless':_0x3e2194?![]:_0x1e09e5[_0x5709b2(0x24d)]??!![],'storageStatePath':_0xb41240});if(_0x405018[_0x5709b2(0x1f5)](process['getuid']?.(),0x0)){const _0x57b710=[_0x5709b2(0x208),'--disable-setuid-sandbox'],_0x344202=_0xa84ff0[_0x5709b2(0x243)]??[],_0x2fcc7c=_0x57b710['filter'](_0x38aef4=>!_0x344202['includes'](_0x38aef4));_0xa84ff0[_0x5709b2(0x243)]=[..._0x344202,..._0x2fcc7c];}const _0x1210c8=typeof _0xa84ff0[_0x5709b2(0x1e6)]===_0x405018[_0x5709b2(0x20c)]?_0xa84ff0['executablePath']:_0xb41240?chromium[_0x5709b2(0x1e6)]():undefined;return{'storageStatePath':_0xb41240,'tempAuthPath':_0xd63b3d,'baseUrl':_0x1e09e5[_0x5709b2(0x231)],'headless':Boolean(_0xa84ff0[_0x5709b2(0x24d)]),'userDataDir':_0x173e1b,'browserProfilePath':_0x42d318,'executablePath':_0x1210c8,'launchArgs':Array['isArray'](_0xa84ff0[_0x5709b2(0x243)])?_0xa84ff0['args']['filter'](_0x347df5=>typeof _0x347df5===_0x5709b2(0x1df)):[],'userAgent':_0x405018[_0x5709b2(0x1eb)](typeof _0x59fc5a[_0x5709b2(0x20a)],'string')?_0x59fc5a['userAgent']:undefined,'extraHTTPHeaders':_0x59fc5a[_0x5709b2(0x232)],'allowInsecureLocalhost':Boolean(_0x1e09e5['allowInsecureLocalhost']),'safeMode':_0x405018['wzXrK'](Boolean,_0x1e09e5['safeMode']),'cdpEndpoint':_0x1e09e5[_0x5709b2(0x212)],'isCdpMode':Boolean(_0x1e09e5['cdpEndpoint'])};}export function getNestedValue(_0x94e9ae,_0x4034b8){const _0x52aa96=_0x1f0ad9,_0x171197={'NAeXp':function(_0x2b871b,_0x9fd540){return _0x2b871b(_0x9fd540);},'GWHLJ':function(_0x3ee471,_0x2c1a09){return _0x3ee471===_0x2c1a09;},'kIpBf':function(_0x3dcfba,_0x297e1f){return _0x3dcfba===_0x297e1f;},'ijJKn':function(_0xbb8a95,_0xe51eda){return _0xbb8a95!==_0xe51eda;}},_0x4628a8=_0x171197['NAeXp'](parseKeyPath,_0x4034b8);let _0x38d0e6=_0x94e9ae;for(const _0xfa2c24 of _0x4628a8){if(_0x171197['GWHLJ'](_0x38d0e6,null)||_0x171197['kIpBf'](_0x38d0e6,undefined)||_0x171197['ijJKn'](typeof _0x38d0e6,_0x52aa96(0x245)))return undefined;_0x38d0e6=_0x38d0e6[_0xfa2c24];}return _0x38d0e6;}export function setNestedValue(_0x985907,_0x37053f,_0x120f1d){const _0x4cbb8c=_0x1f0ad9,_0x25745c={'IANpn':function(_0x45cc29,_0x27178d){return _0x45cc29<_0x27178d;},'zlQVP':function(_0x127821,_0x725f76){return _0x127821 in _0x725f76;},'CEzPA':function(_0x20f55a,_0x55fddd){return _0x20f55a!==_0x55fddd;},'QcqWY':_0x4cbb8c(0x245)},_0x43b24b=parseKeyPath(_0x37053f);let _0xe0e418=_0x985907;for(let _0x232733=0x0;_0x25745c[_0x4cbb8c(0x1ef)](_0x232733,_0x43b24b[_0x4cbb8c(0x244)]-0x1);_0x232733++){const _0x10f30e=_0x43b24b[_0x232733];(!_0x25745c[_0x4cbb8c(0x20f)](_0x10f30e,_0xe0e418)||_0x25745c['CEzPA'](typeof _0xe0e418[_0x10f30e],_0x25745c['QcqWY']))&&(_0xe0e418[_0x10f30e]={}),_0xe0e418=_0xe0e418[_0x10f30e];}_0xe0e418[_0x43b24b[_0x43b24b['length']-0x1]]=_0x120f1d;}export function deleteNestedValue(_0xe909f9,_0x2dca65){const _0x1307ab=_0x1f0ad9,_0x1f6b26={'IQXtB':function(_0x2c4e22,_0x1bf423){return _0x2c4e22(_0x1bf423);},'emAUS':function(_0x45fa90,_0x182e0b){return _0x45fa90<_0x182e0b;},'KurYN':function(_0xd1a7c5,_0x5b2f4f){return _0xd1a7c5-_0x5b2f4f;},'agAgz':'object','hERmT':function(_0x154732,_0x581dc3){return _0x154732 in _0x581dc3;}},_0x6f8a6f=_0x1f6b26[_0x1307ab(0x200)](parseKeyPath,_0x2dca65);let _0x47cf30=_0xe909f9;for(let _0xb9a19c=0x0;_0x1f6b26[_0x1307ab(0x21b)](_0xb9a19c,_0x1f6b26[_0x1307ab(0x239)](_0x6f8a6f['length'],0x1));_0xb9a19c++){if(_0x47cf30===null||_0x47cf30===undefined||typeof _0x47cf30!==_0x1f6b26[_0x1307ab(0x209)])return![];_0x47cf30=_0x47cf30[_0x6f8a6f[_0xb9a19c]];}if(_0x47cf30===null||_0x47cf30===undefined||typeof _0x47cf30!==_0x1f6b26[_0x1307ab(0x209)])return![];const _0x3c5908=_0x6f8a6f[_0x6f8a6f[_0x1307ab(0x244)]-0x1];if(_0x1f6b26[_0x1307ab(0x1f9)](_0x3c5908,_0x47cf30))return delete _0x47cf30[_0x3c5908],!![];return![];}function parseKeyPath(_0x17e1e8){const _0x14bad4=_0x1f0ad9,_0x36bba0={'xMmCj':_0x14bad4(0x1e9),'MAtjT':'headers','LgeSV':function(_0x37d896,_0x272870){return _0x37d896===_0x272870;},'emQoT':'setupHeader'},_0x146a75=_0x17e1e8[_0x14bad4(0x1e2)]('.');return _0x146a75[0x0]===_0x36bba0['xMmCj']&&(_0x146a75[0x0]=_0x36bba0['MAtjT']),_0x36bba0['LgeSV'](_0x146a75[0x0],_0x36bba0[_0x14bad4(0x210)])&&(_0x146a75[0x0]=_0x14bad4(0x236)),_0x146a75;}export function formatSettings(_0x2b70fd,_0x14b2c4=0x0){const _0x2a1f38=_0x1f0ad9,_0x37b877={'zEenn':function(_0x1653a0,_0x3bf537){return _0x1653a0===_0x3bf537;},'drYAL':_0x2a1f38(0x245)},_0x1a3395=[],_0x2d5918='\x20\x20'[_0x2a1f38(0x1e4)](_0x14b2c4);for(const [_0x2ccfbf,_0xfb8cc8]of Object[_0x2a1f38(0x1d6)](_0x2b70fd)){if(_0xfb8cc8===undefined)continue;if(_0x37b877['zEenn'](typeof _0xfb8cc8,_0x37b877[_0x2a1f38(0x216)])&&_0xfb8cc8!==null){_0x1a3395[_0x2a1f38(0x24b)](''+_0x2d5918+_0x2ccfbf+':');for(const [_0x7a85b2,_0x340947]of Object['entries'](_0xfb8cc8)){_0x1a3395['push'](_0x2d5918+'\x20\x20'+_0x7a85b2+':\x20'+_0x340947);}}else _0x1a3395['push'](''+_0x2d5918+_0x2ccfbf+':\x20'+_0xfb8cc8);}return _0x1a3395[_0x2a1f38(0x1f1)]('\x0a');}
|
|
1
|
+
const _0x44c6b3=_0x2c57;(function(_0x370720,_0x768cbb){const _0x1dc5c7=_0x2c57,_0x1611dc=_0x370720();while(!![]){try{const _0x157868=parseInt(_0x1dc5c7(0x266))/0x1+parseInt(_0x1dc5c7(0x227))/0x2+parseInt(_0x1dc5c7(0x239))/0x3*(parseInt(_0x1dc5c7(0x20f))/0x4)+parseInt(_0x1dc5c7(0x1fa))/0x5*(-parseInt(_0x1dc5c7(0x226))/0x6)+parseInt(_0x1dc5c7(0x246))/0x7*(parseInt(_0x1dc5c7(0x254))/0x8)+parseInt(_0x1dc5c7(0x20e))/0x9+-parseInt(_0x1dc5c7(0x245))/0xa;if(_0x157868===_0x768cbb)break;else _0x1611dc['push'](_0x1611dc['shift']());}catch(_0x4708c4){_0x1611dc['push'](_0x1611dc['shift']());}}}(_0x284b,0xdf600));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{chromium}from'playwright';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x17f0b9,_0x2e3354){const _0x114c31=_0x2c57,_0x397124={'eZsfl':function(_0x1b41e7,_0xc7e69f,_0x41b7ef,_0x6a242){return _0x1b41e7(_0xc7e69f,_0x41b7ef,_0x6a242);},'oWSJX':_0x114c31(0x223),'QAIVf':function(_0x556d0c,_0xaa40dd,_0x205db5){return _0x556d0c(_0xaa40dd,_0x205db5);},'yozIh':function(_0x4ae0da,_0x46a8fc){return _0x4ae0da(_0x46a8fc);},'OJjFy':function(_0x52defd,_0x3a0ccd){return _0x52defd!==_0x3a0ccd;},'xRNHP':function(_0x49006a,_0xccf85){return _0x49006a(_0xccf85);}},_0x37ef69=_0x397124[_0x114c31(0x228)](join,_0x2e3354,'ci',_0x17f0b9),_0x3b6f4e=join(_0x2e3354,_0x397124['oWSJX'],_0x17f0b9),_0xeddc12=join(_0x2e3354,_0x17f0b9),_0x1745dc=join(_0x2e3354,_0x397124[_0x114c31(0x237)]),_0x17f9c4=_0x397124['QAIVf'](join,_0x2e3354,'ci');if(_0x397124[_0x114c31(0x261)](existsSync,_0x37ef69))return _0x37ef69;if(_0x397124['yozIh'](existsSync,_0x3b6f4e))return _0x3b6f4e;if(_0x397124['yozIh'](existsSync,_0xeddc12)&&(_0x397124[_0x114c31(0x20b)](_0xeddc12,_0x1745dc)&&_0x397124['OJjFy'](_0xeddc12,_0x17f9c4)?!![]:_0x397124['xRNHP'](hasLegacyProfileFiles,_0xeddc12)))return _0xeddc12;return null;}export function getEnvDir(_0x1f9082,_0x4fa9a2={}){const _0x3bac87=_0x2c57,_0x39bc84={'Synkn':function(_0x4ccdae){return _0x4ccdae();},'SDBVJ':function(_0x49160a,_0x4815da,_0x53d3c9){return _0x49160a(_0x4815da,_0x53d3c9);},'XpqIV':function(_0x58b4fd,_0x463fa0){return _0x58b4fd(_0x463fa0);},'kfZOX':function(_0x2f5116,_0x136147,_0x430e48){return _0x2f5116(_0x136147,_0x430e48);},'vrvsB':function(_0x22bac0,_0x487f66,_0x43705b){return _0x22bac0(_0x487f66,_0x43705b);},'bPGZl':function(_0x50aea1,_0x20b4b5,_0x1ca183,_0x409965){return _0x50aea1(_0x20b4b5,_0x1ca183,_0x409965);}},_0x5fba4a=_0x39bc84['Synkn'](getRangerDir),_0x22100c=_0x39bc84[_0x3bac87(0x238)](findEnvInRoot,_0x1f9082,_0x5fba4a);if(_0x22100c){if(_0x4fa9a2['forWrite']&&_0x39bc84[_0x3bac87(0x21f)](isLegacyEnvPath,_0x22100c))throw _0x39bc84[_0x3bac87(0x1f4)](legacyWriteError,_0x1f9082,_0x22100c);return _0x22100c;}const _0x38f499=getRangerHomeDir();if(_0x38f499!==_0x5fba4a){const _0x1078dd=_0x39bc84['vrvsB'](findEnvInRoot,_0x1f9082,_0x38f499);if(_0x1078dd){if(_0x4fa9a2[_0x3bac87(0x26c)]&&isLegacyEnvPath(_0x1078dd))throw legacyWriteError(_0x1f9082,_0x1078dd);return _0x1078dd;}}const _0x50be28=_0x39bc84[_0x3bac87(0x215)](join,_0x38f499,_0x3bac87(0x223),_0x1f9082);if(_0x4fa9a2[_0x3bac87(0x26c)])throw legacyWriteError(_0x1f9082,_0x50be28);return _0x50be28;}function isLegacyEnvPath(_0x6e21ea){const _0x22f996=_0x2c57,_0x342754=getRangerDir(),_0x477e3a=getRangerHomeDir();for(const _0x5e2c6a of new Set([_0x342754,_0x477e3a])){const _0x4e215b=_0x5e2c6a[_0x22f996(0x224)]('/')?_0x5e2c6a:_0x5e2c6a+'/';if(_0x6e21ea===_0x5e2c6a||_0x6e21ea[_0x22f996(0x24f)](_0x4e215b))return!![];}return![];}function legacyWriteError(_0x296296,_0x515938){const _0x139c4b=_0x2c57;return new Error('Refusing\x20to\x20write\x20profile\x20\x22'+_0x296296+_0x139c4b(0x1f7)+_0x515938+'.\x0a'+_0x139c4b(0x1fb)+_0x139c4b(0x22a)+'See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.');}export function findExistingEnv(_0x3b969e,_0x327cc8){const _0x43aef2=_0x2c57,_0x171d9e={'RhGIK':function(_0x36324c){return _0x36324c();},'wJSjc':function(_0x2b0c26,_0x3e1a69,_0x5bbf43){return _0x2b0c26(_0x3e1a69,_0x5bbf43);},'Prltz':function(_0x23fc27,_0x24f76c,_0x3c1449,_0x3174ee){return _0x23fc27(_0x24f76c,_0x3c1449,_0x3174ee);},'LaKIJ':_0x43aef2(0x223),'cOFXm':_0x43aef2(0x1f2),'RnRqr':function(_0x2f0056,_0x3e5b1b){return _0x2f0056(_0x3e5b1b);},'EcFrk':function(_0x153fb9,_0xa55e24){return _0x153fb9===_0xa55e24;}},_0xa13487=_0x327cc8?.['rangerDir'],_0x28648f=_0xa13487?[_0xa13487]:[_0x171d9e[_0x43aef2(0x259)](getRangerDir),_0x171d9e[_0x43aef2(0x259)](getRangerHomeDir)]['filter']((_0x535316,_0x1ebb0e,_0x1072a1)=>_0x1072a1['indexOf'](_0x535316)===_0x1ebb0e),_0x3b13d3=_0x327cc8?.[_0x43aef2(0x265)]??['ci','local','legacy'];for(const _0x527db8 of _0x28648f){const _0xfcf56e=_0x171d9e['wJSjc'](join,_0x527db8,'local'),_0xe5653f=join(_0x527db8,'ci'),_0x6ce48=[{'location':'ci','path':_0x171d9e['Prltz'](join,_0x527db8,'ci',_0x3b969e)},{'location':_0x43aef2(0x223),'path':join(_0x527db8,_0x171d9e[_0x43aef2(0x24a)],_0x3b969e)},{'location':_0x171d9e['cOFXm'],'path':join(_0x527db8,_0x3b969e)}];for(const _0x5a8c3a of _0x6ce48){if(_0x3b13d3[_0x43aef2(0x1f0)](_0x5a8c3a['location'])&&_0x171d9e['RnRqr'](existsSync,_0x5a8c3a['path'])){if(_0x171d9e[_0x43aef2(0x1eb)](_0x5a8c3a[_0x43aef2(0x24b)],_0x171d9e['cOFXm'])&&(_0x5a8c3a[_0x43aef2(0x21d)]===_0xfcf56e||_0x5a8c3a['path']===_0xe5653f)&&!hasLegacyProfileFiles(_0x5a8c3a[_0x43aef2(0x21d)]))continue;return{'path':_0x5a8c3a[_0x43aef2(0x21d)],'location':_0x5a8c3a[_0x43aef2(0x24b)]};}}}return null;}function hasLegacyProfileFiles(_0x54c2c){const _0x3ee41a=_0x2c57,_0x18e3e9={'xwwJb':function(_0x5bc061,_0x4ed377){return _0x5bc061(_0x4ed377);},'rNeBE':function(_0x1e0f7f,_0x1633f8,_0x269200){return _0x1e0f7f(_0x1633f8,_0x269200);},'zGjFX':_0x3ee41a(0x255),'JEfZZ':_0x3ee41a(0x26a),'JHofB':function(_0x333671,_0x18bd96){return _0x333671(_0x18bd96);}};return _0x18e3e9[_0x3ee41a(0x20a)](existsSync,_0x18e3e9['rNeBE'](join,_0x54c2c,_0x18e3e9['zGjFX']))||existsSync(_0x18e3e9[_0x3ee41a(0x235)](join,_0x54c2c,_0x18e3e9[_0x3ee41a(0x26b)]))||_0x18e3e9[_0x3ee41a(0x1ff)](existsSync,_0x18e3e9[_0x3ee41a(0x235)](join,_0x54c2c,_0x3ee41a(0x243)));}export function isEnvCi(_0x5c70d3){const _0xfbddca=_0x2c57,_0x47947f={'tsTQw':function(_0x2b5ea0,_0x8a09bf){return _0x2b5ea0(_0x8a09bf);},'zdORE':function(_0x309260){return _0x309260();},'pdgLX':function(_0x5a1a74,_0x12ead4){return _0x5a1a74!==_0x12ead4;},'CuALD':function(_0x527bab){return _0x527bab();},'Mblkl':function(_0x5186a1,_0x6caa31){return _0x5186a1(_0x6caa31);},'tXfNJ':function(_0x2acad2,_0x14e936,_0x15ae72,_0x3527a2){return _0x2acad2(_0x14e936,_0x15ae72,_0x3527a2);}};if(_0x47947f[_0xfbddca(0x258)](existsSync,join(_0x47947f['zdORE'](getRangerDir),'ci',_0x5c70d3)))return!![];const _0xb97d60=getRangerHomeDir();if(_0x47947f[_0xfbddca(0x1ee)](_0xb97d60,_0x47947f['CuALD'](getRangerDir))&&_0x47947f['Mblkl'](existsSync,_0x47947f[_0xfbddca(0x214)](join,_0xb97d60,'ci',_0x5c70d3)))return!![];return![];}export async function cleanupTempFiles(_0x1a4250){const _0x7aa59d=_0x2c57,_0x5df51f={'tKUhS':'ENOENT'},_0x107afa=[_0x1a4250[_0x7aa59d(0x1ed)],_0x1a4250['configPath']]['filter'](Boolean);await Promise[_0x7aa59d(0x256)](_0x107afa[_0x7aa59d(0x212)](_0x1e4ef9=>unlink(_0x1e4ef9)['catch'](_0x31d2c0=>{_0x31d2c0['code']!==_0x5df51f['tKUhS']&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x1e4ef9+':',_0x31d2c0['message']);})));}export function getSettingsPath(_0x2899aa){const _0x2ddb2=_0x2c57,_0x15153a={'YheqH':function(_0x1d6dd8,_0x21df62,_0x5943e9){return _0x1d6dd8(_0x21df62,_0x5943e9);},'mVoXz':function(_0x2567bf,_0x30c3c8){return _0x2567bf(_0x30c3c8);}};return _0x15153a['YheqH'](join,_0x15153a[_0x2ddb2(0x221)](getEnvDir,_0x2899aa),_0x2ddb2(0x255));}export async function loadSettings(_0x3ad4bc){const _0x13320e=_0x2c57,_0x4e8c67={'McAVf':function(_0x49df10,_0x3c59e0,_0x1909e0){return _0x49df10(_0x3c59e0,_0x1909e0);},'vJWWC':'utf-8'},_0xe44b33=getSettingsPath(_0x3ad4bc);if(!existsSync(_0xe44b33))return{};try{const _0x13061e=await _0x4e8c67['McAVf'](readFile,_0xe44b33,_0x4e8c67[_0x13320e(0x201)]);return JSON['parse'](_0x13061e);}catch{return{};}}function _0x2c57(_0x4aec7d,_0x529ae5){_0x4aec7d=_0x4aec7d-0x1ea;const _0x284b23=_0x284b();let _0x2c57b6=_0x284b23[_0x4aec7d];return _0x2c57b6;}export async function saveSettings(_0x366a8f,_0x5b4338){const _0x3daa1e=_0x2c57,_0x549b7f={'voETC':function(_0x1c68cf,_0x2e4d6a){return _0x1c68cf(_0x2e4d6a);},'cqkuI':function(_0x290084,_0x2203be,_0x48c359){return _0x290084(_0x2203be,_0x48c359);}},_0x3c85b3=getSettingsPath(_0x366a8f),_0x2bb23d=dirname(_0x3c85b3);!_0x549b7f[_0x3daa1e(0x26e)](existsSync,_0x2bb23d)&&await _0x549b7f['cqkuI'](mkdir,_0x2bb23d,{'recursive':!![]}),await _0x549b7f[_0x3daa1e(0x218)](writeFile,_0x3c85b3,JSON[_0x3daa1e(0x23d)](_0x5b4338,null,0x2));}function _0x284b(){const _0x24f65c=['YOJQL','replace','getuid','cdpEndpoint','uniIV','args','kSzBg','BUeRK','rNeBE','headless','oWSJX','SDBVJ','12CoEEsR','CIktb','PDLBH','lbUKG','stringify','HkKrh','boolean','isArray','--disable-setuid-sandbox','ranger-auth-','auth.json.enc','gmwGo','20860570zMFCyC','2004037UOEpyl','dQOuU','xguEA','ryrCD','LaKIJ','location','setupHeader','vAuaa','nova-user-data','startsWith','UJvdX','rwLBM','catch','pFdQO','24QLJgKO','settings.json','all','userAgent','tsTQw','RhGIK','BggBZ','baseUrl','extraHTTPHeaders','Default','browser','RnAwL','Dxpwx','yozIh','entries','core','nKYFh','locations','33712YfTUZm','\x20is\x20not\x20set','yXgGq','--unsafely-treat-insecure-origin-as-secure=http://localhost','auth.json','JEfZZ','forWrite','install','voETC','fSNKs','EcFrk','yzKze','tempAuthPath','pdgLX','repeat','includes','safeMode','legacy','ZETan','kfZOX','filter','now','\x22\x20to\x20legacy\x20path\x20','lgQNB','Environment\x20variable\x20','1625935EBFfvN','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','join','clipboard-write','mKYsS','JHofB','LHafW','vJWWC','sessions','dNvJG','push','zgRyI','clipboard-read','length','object','ULVTu','xwwJb','OJjFy','tWFcj','executablePath','2569077Lxdays','1604444vCdhhI','setupHeaders','string','map','JxCwX','tXfNJ','bPGZl','xlggI','ranger-config','cqkuI','ignoreHTTPSErrors','mOHUv','contextOptions','playwright-cli','path','--no-sandbox','XpqIV','chromium','mVoXz','storageState','local','endsWith','fromEntries','24YDrGUS','3038534UWdJgk','eZsfl','gTJJv','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','NXmMp','headers'];_0x284b=function(){return _0x24f65c;};return _0x284b();}export function resolveEnvVars(_0x10c680){const _0x44718e=_0x2c57,_0x294a63={'xlggI':function(_0x218755,_0x43f3a4){return _0x218755===_0x43f3a4;}};if(_0x294a63[_0x44718e(0x216)](typeof _0x10c680,'string'))return _0x10c680[_0x44718e(0x22e)](/\$\{(\w+)\}/g,(_0x383f3e,_0x1281ee)=>{const _0x5fb477=_0x44718e,_0x1674cb=process['env'][_0x1281ee];if(_0x1674cb===undefined)throw new Error(_0x5fb477(0x1f9)+_0x1281ee+_0x5fb477(0x267));return _0x1674cb;});if(Array[_0x44718e(0x240)](_0x10c680))return _0x10c680[_0x44718e(0x212)](resolveEnvVars);if(_0x10c680&&typeof _0x10c680==='object')return Object[_0x44718e(0x225)](Object[_0x44718e(0x262)](_0x10c680)['map'](([_0x53af14,_0x356cf0])=>[_0x53af14,resolveEnvVars(_0x356cf0)]));return _0x10c680;}const isRecord=_0x4bcc87=>typeof _0x4bcc87===_0x44c6b3(0x208)&&_0x4bcc87!==null&&!Array['isArray'](_0x4bcc87),asRecord=_0x10a8d1=>isRecord(_0x10a8d1)?_0x10a8d1:undefined,mergeHeaders=(_0x2bcb47,_0xe4db95)=>{const _0xa9d382={..._0x2bcb47??{},..._0xe4db95??{}};return Object['keys'](_0xa9d382)['length']?_0xa9d382:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=['--disable-web-security','--allow-running-insecure-content',_0x44c6b3(0x269),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x397448,_0x3c58aa={}){const _0x578b6e=_0x44c6b3,_0x8a8691={'RnAwL':function(_0x5983c7,_0x19b7b8){return _0x5983c7(_0x19b7b8);},'kSzBg':_0x578b6e(0x23f),'RakNr':function(_0x95709e,_0x18b0d9){return _0x95709e===_0x18b0d9;},'mKYsS':function(_0x41a6c6,_0x2c2d88,_0x3a07a8){return _0x41a6c6(_0x2c2d88,_0x3a07a8);},'LHafW':function(_0x1a9166,_0x4eb152){return _0x1a9166(_0x4eb152);}},_0x5a3be7=asRecord(_0x397448['browser']),_0x203b70={..._0x8a8691[_0x578b6e(0x25f)](asRecord,_0x5a3be7?.['launchOptions'])??{}};typeof _0x3c58aa['headless']===_0x8a8691[_0x578b6e(0x233)]&&(_0x203b70['headless']=_0x3c58aa[_0x578b6e(0x236)]);if(_0x397448['safeMode']){const _0x31d8ff=_0x203b70[_0x578b6e(0x232)]??[],_0x378daf=SAFE_MODE_ARGS['filter'](_0x5c0b20=>!_0x31d8ff['includes'](_0x5c0b20));_0x203b70[_0x578b6e(0x232)]=[..._0x31d8ff,..._0x378daf];}if(_0x397448['allowInsecureLocalhost']){const _0x5a4615=_0x203b70[_0x578b6e(0x232)]??[],_0x3c287b=ALLOW_LOCALHOST_ARGS[_0x578b6e(0x1f5)](_0x1fd9d=>!_0x5a4615[_0x578b6e(0x1f0)](_0x1fd9d));_0x203b70['args']=[..._0x5a4615,..._0x3c287b];}const _0x8d07fa={...asRecord(_0x5a3be7?.[_0x578b6e(0x21b)])??{}};_0x8d07fa[_0x578b6e(0x219)]=!![];_0x8a8691['RakNr'](typeof _0x397448['userAgent'],'string')&&(_0x8d07fa['userAgent']=_0x397448['userAgent']);const _0x47e541=_0x8a8691[_0x578b6e(0x1fe)](mergeHeaders,asRecord(_0x8d07fa[_0x578b6e(0x25c)]),_0x8a8691[_0x578b6e(0x200)](asRecord,_0x397448[_0x578b6e(0x22c)]));return _0x47e541?_0x8d07fa['extraHTTPHeaders']=_0x47e541:delete _0x8d07fa['extraHTTPHeaders'],_0x3c58aa['storageStatePath']&&(_0x8d07fa[_0x578b6e(0x222)]=_0x3c58aa['storageStatePath']),{'launchOptions':_0x203b70,'contextOptions':_0x8d07fa};}export async function resolveProfileStorageState(_0x48b31b){return resolveLocalAuthPath(getEnvDir(_0x48b31b));}async function resolveLocalAuthPath(_0x47e1cc){const _0x3c5574=_0x44c6b3,_0x543009={'vAuaa':function(_0x1740f8,_0x1f3724,_0xff52d6){return _0x1740f8(_0x1f3724,_0xff52d6);},'tYNzd':function(_0x2af97f,_0x30f4b1,_0x304d3c){return _0x2af97f(_0x30f4b1,_0x304d3c);},'BUeRK':_0x3c5574(0x26a),'gmwGo':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','RglZk':function(_0x1d78f1,_0x4b18ba,_0x51f7af){return _0x1d78f1(_0x4b18ba,_0x51f7af);},'KGgWL':function(_0x1d0f40,_0x48c945,_0x14b3ae){return _0x1d0f40(_0x48c945,_0x14b3ae);},'fdkDf':function(_0x378713,_0x42238a){return _0x378713(_0x42238a);}},_0x37800a=_0x543009[_0x3c5574(0x24d)](join,_0x47e1cc,'auth.json.enc'),_0x133e03=_0x543009['tYNzd'](join,_0x47e1cc,_0x543009[_0x3c5574(0x234)]);if(existsSync(_0x37800a))try{const _0x229d16=await getToken();if(!_0x229d16)throw new Error(_0x543009[_0x3c5574(0x244)]);const _0xdc642a=await readFile(_0x37800a),_0x4a29b7=decrypt(_0xdc642a,_0x229d16),_0x184b86=_0x543009['RglZk'](join,tmpdir(),_0x3c5574(0x242)+Date['now']()+'.json');return await _0x543009['KGgWL'](writeFile,_0x184b86,_0x4a29b7),{'storageStatePath':_0x184b86,'tempAuthPath':_0x184b86};}catch(_0x18715){const _0x1d9c69=_0x18715 instanceof Error?_0x18715['message']:_0x543009['fdkDf'](String,_0x18715);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x1d9c69);}if(existsSync(_0x133e03))return{'storageStatePath':_0x133e03};return{};}export async function buildPlaywrightConfig(_0x1d53c4,_0x4c0df7,_0x1cf62e,_0x58e25a,_0x5766be){const _0x5b0697=_0x44c6b3,_0x34f42b={'gTJJv':function(_0x5b3de7,_0x5dda67){return _0x5b3de7(_0x5dda67);},'PDLBH':function(_0x5a2223,_0x34500a){return _0x5a2223(_0x34500a);},'XCDTJ':function(_0x3107ea,_0x43dab8,_0x421c20,_0x1fdfcb,_0x2e2490,_0x58dc15,_0x27d006){return _0x3107ea(_0x43dab8,_0x421c20,_0x1fdfcb,_0x2e2490,_0x58dc15,_0x27d006);},'yXgGq':'stagehand','NXmMp':function(_0x37fe22,_0x5c7ea3){return _0x37fe22(_0x5c7ea3);}};if(_0x5766be)return buildPlaywrightConfigCore(_0x1d53c4,_0x5766be,_0x4c0df7,_0x1cf62e,_0x58e25a,'stagehand');const {storageStatePath:_0x5cdb3f,tempAuthPath:_0x27b3b3}=await _0x34f42b[_0x5b0697(0x229)](resolveLocalAuthPath,_0x34f42b[_0x5b0697(0x23b)](getEnvDir,_0x4c0df7));try{const _0xa1df99=await _0x34f42b['XCDTJ'](buildPlaywrightConfigCore,_0x1d53c4,_0x5cdb3f,_0x4c0df7,_0x1cf62e,_0x58e25a,_0x34f42b[_0x5b0697(0x268)]);return{..._0xa1df99,'tempAuthPath':_0x27b3b3};}catch(_0x53d77e){_0x27b3b3&&await _0x34f42b[_0x5b0697(0x22b)](unlink,_0x27b3b3)[_0x5b0697(0x252)](()=>{});throw _0x53d77e;}}export async function buildPlaywrightConfigCore(_0x3feb51,_0x21cbe3,_0x1c266f,_0x3fb818,_0x1dc9b7,_0x4af658='stagehand'){const _0x347a30=_0x44c6b3,_0x540afc={'xqHlI':function(_0x44da4b,_0x44e608,_0x429dcb){return _0x44da4b(_0x44e608,_0x429dcb);},'uniIV':_0x347a30(0x21e),'uVcTa':_0x347a30(0x241),'lbUKG':_0x347a30(0x220),'fSNKs':'clipboard-read','KjhKe':_0x347a30(0x1fd),'lgQNB':function(_0x403566){return _0x403566();},'AbPFS':_0x347a30(0x202),'pxlkF':'tabs','FnwXo':'vision','LWkQz':function(_0x3956cb,_0x16ef0b){return _0x3956cb===_0x16ef0b;},'XQxzU':function(_0x55fa48,_0x1ded7a){return _0x55fa48===_0x1ded7a;},'dQOuU':function(_0x49ea52,_0x3e5bfe){return _0x49ea52(_0x3e5bfe);},'JxCwX':'-cli'},_0x2f735e=_0x3fb818||_0x540afc[_0x347a30(0x1f8)](randomUUID),_0x2755fb=join(_0x540afc[_0x347a30(0x1f8)](getRangerDir),_0x540afc['AbPFS'],_0x2f735e),_0x203b3a=Boolean(_0x3feb51['cdpEndpoint']),_0x261375=_0x203b3a?{'browserName':'chromium','cdpEndpoint':_0x3feb51['cdpEndpoint']}:((()=>{const _0x475d54=_0x347a30,{launchOptions:_0x56dcfe,contextOptions:_0x2236c7}=_0x540afc['xqHlI'](buildBrowserOptionsFromSettings,_0x3feb51,{'headless':_0x1dc9b7?![]:_0x3feb51[_0x475d54(0x236)]??!![],'storageStatePath':_0x21cbe3});if(process[_0x475d54(0x22f)]?.()===0x0){const _0x58bada=[_0x540afc[_0x475d54(0x231)],_0x540afc['uVcTa']],_0x4ee0f1=_0x56dcfe[_0x475d54(0x232)]??[],_0x55dc18=_0x58bada['filter'](_0x2b9832=>!_0x4ee0f1[_0x475d54(0x1f0)](_0x2b9832));_0x56dcfe[_0x475d54(0x232)]=[..._0x4ee0f1,..._0x55dc18];}return{'isolated':!![],'browserName':_0x540afc[_0x475d54(0x23c)],'launchOptions':_0x56dcfe,'contextOptions':{..._0x2236c7,'permissions':[_0x540afc[_0x475d54(0x1ea)],_0x540afc['KjhKe']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x417212=_0x4af658===_0x347a30(0x21c)?{'browser':_0x261375,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x2755fb,'outputMode':'file','codegen':'none'}:{'name':_0x1c266f,'browser':_0x261375,'capabilities':[_0x347a30(0x263),_0x540afc['pxlkF'],_0x347a30(0x26d),'pdf',_0x540afc['FnwXo']],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x2755fb};if(!_0x203b3a){const _0x233e87=_0x417212[_0x347a30(0x25e)],_0x2ed6da=_0x233e87[_0x347a30(0x21b)];if(_0x540afc['LWkQz'](_0x2ed6da[_0x347a30(0x257)],undefined))delete _0x2ed6da['userAgent'];if(_0x540afc['XQxzU'](_0x2ed6da['storageState'],undefined))delete _0x2ed6da[_0x347a30(0x222)];}const _0x263d43=_0x540afc['xqHlI'](join,_0x540afc['lgQNB'](tmpdir),'ranger-config');!_0x540afc[_0x347a30(0x247)](existsSync,_0x263d43)&&await mkdir(_0x263d43,{'recursive':!![]});const _0x188249=_0x4af658==='playwright-cli'?_0x540afc[_0x347a30(0x213)]:'',_0x1f6ea5=join(_0x263d43,_0x1c266f+'-'+Date[_0x347a30(0x1f6)]()+_0x188249+'.json');return await writeFile(_0x1f6ea5,JSON[_0x347a30(0x23d)](_0x417212,null,0x2)),{'configPath':_0x1f6ea5,'storageStatePath':_0x21cbe3};}export async function buildPlaywrightCliConfig(_0x3166f3,_0x51c963,_0x1fe692,_0x45c09c,_0x3aaeaa){const _0x539745=_0x44c6b3,_0x135ba0={'dNvJG':'playwright-cli','pFdQO':function(_0x1b74c4,_0x56cbe0){return _0x1b74c4(_0x56cbe0);}};if(_0x3aaeaa)return buildPlaywrightConfigCore(_0x3166f3,_0x3aaeaa,_0x51c963,_0x1fe692,_0x45c09c,_0x135ba0[_0x539745(0x203)]);const {storageStatePath:_0x5256c1,tempAuthPath:_0x527f10}=await _0x135ba0['pFdQO'](resolveLocalAuthPath,_0x135ba0['pFdQO'](getEnvDir,_0x51c963));try{const _0x1c87cf=await buildPlaywrightConfigCore(_0x3166f3,_0x5256c1,_0x51c963,_0x1fe692,_0x45c09c,_0x539745(0x21c));return{..._0x1c87cf,'tempAuthPath':_0x527f10};}catch(_0x4decf3){_0x527f10&&await _0x135ba0[_0x539745(0x253)](unlink,_0x527f10)[_0x539745(0x252)](()=>{});throw _0x4decf3;}}export async function buildRangerwrightCliConfig(_0x25788e,_0x409d08,_0x15ca1c,_0xd2687f,_0x3fe588){const _0x498a56=_0x44c6b3,_0x3a7480={'zgRyI':function(_0x3a3f63,_0x35cee3,_0x4274f7){return _0x3a3f63(_0x35cee3,_0x4274f7);},'RbPIX':function(_0x1a6e88,_0xa383e4){return _0x1a6e88===_0xa383e4;},'DNEqy':'--no-sandbox','YOJQL':_0x498a56(0x206),'iesHa':'clipboard-write','HkKrh':function(_0x39a2d0,_0x237936){return _0x39a2d0(_0x237936);},'xguEA':function(_0x3c6be9,_0x414c99,_0x2dbc17,_0x1aa9f5){return _0x3c6be9(_0x414c99,_0x2dbc17,_0x1aa9f5);},'AITZp':function(_0x494aee){return _0x494aee();},'xIeLH':'sessions','auONp':function(_0x2503d7,_0x4edc88){return _0x2503d7(_0x4edc88);},'IjCYi':_0x498a56(0x220),'BggBZ':function(_0x2c1f16,_0x2de17f){return _0x2c1f16===_0x2de17f;},'UJvdX':function(_0x340452,_0x433763){return _0x340452===_0x433763;},'tWFcj':function(_0x55ed55,_0x45dbc9,_0x113733){return _0x55ed55(_0x45dbc9,_0x113733);},'PNSiV':function(_0x41f116,_0x505f27){return _0x41f116(_0x505f27);},'UTEZh':function(_0xc9c5e0,_0x3eb233,_0x2cde8e){return _0xc9c5e0(_0x3eb233,_0x2cde8e);},'ryrCD':function(_0x4f6ce5,_0x56275e,_0x370d86){return _0x4f6ce5(_0x56275e,_0x370d86);}},{storageStatePath:_0x458fb3,tempAuthPath:_0x2d1d80}=_0x3fe588?{'storageStatePath':_0x3fe588,'tempAuthPath':undefined}:await resolveLocalAuthPath(_0x3a7480[_0x498a56(0x23e)](getEnvDir,_0x409d08)),_0x21954=_0x15ca1c||randomUUID(),_0x3e275a=_0x3a7480[_0x498a56(0x248)](join,_0x3a7480['AITZp'](getRangerDir),_0x3a7480['xIeLH'],_0x21954),_0x273f47=_0x3a7480['auONp'](Boolean,_0x25788e[_0x498a56(0x230)]),_0x3ab5f0=_0x273f47?{'browserName':_0x3a7480['IjCYi'],'cdpEndpoint':_0x25788e[_0x498a56(0x230)]}:((()=>{const _0x2009a1=_0x498a56,{launchOptions:_0x2621d4,contextOptions:_0x20133f}=_0x3a7480[_0x2009a1(0x205)](buildBrowserOptionsFromSettings,_0x25788e,{'headless':_0xd2687f?![]:_0x25788e[_0x2009a1(0x236)]??!![],'storageStatePath':_0x458fb3});if(_0x3a7480['RbPIX'](process[_0x2009a1(0x22f)]?.(),0x0)){const _0x83a47c=[_0x3a7480['DNEqy'],_0x2009a1(0x241)],_0x47d9d6=_0x2621d4['args']??[],_0x230bff=_0x83a47c['filter'](_0x4d07bf=>!_0x47d9d6['includes'](_0x4d07bf));_0x2621d4[_0x2009a1(0x232)]=[..._0x47d9d6,..._0x230bff];}return{'browserName':_0x2009a1(0x220),'launchOptions':_0x2621d4,'contextOptions':{..._0x20133f,'permissions':[_0x3a7480[_0x2009a1(0x22d)],_0x3a7480['iesHa']],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x273f47){const _0x39ff03=_0x3ab5f0[_0x498a56(0x21b)];if(_0x39ff03){if(_0x3a7480[_0x498a56(0x25a)](_0x39ff03[_0x498a56(0x257)],undefined))delete _0x39ff03[_0x498a56(0x257)];if(_0x3a7480[_0x498a56(0x250)](_0x39ff03[_0x498a56(0x222)],undefined))delete _0x39ff03[_0x498a56(0x222)];}}const _0x5d0203={'browser':_0x3ab5f0,'outputDir':_0x3e275a,'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'settle':{'navigationLoadTimeoutMs':0x7530,'networkSettleTimeoutMs':0x1388,'networkIdleWindowMs':0x1f4,'postActionAnimationFrameCount':0x2}};let _0x5a4f12;try{const _0x48a463=_0x3a7480[_0x498a56(0x20c)](join,tmpdir(),_0x498a56(0x217));!_0x3a7480['PNSiV'](existsSync,_0x48a463)&&await mkdir(_0x48a463,{'recursive':!![]}),_0x5a4f12=_0x3a7480['UTEZh'](join,_0x48a463,_0x409d08+'-'+Date[_0x498a56(0x1f6)]()+'-rangerwright.json'),await _0x3a7480[_0x498a56(0x249)](writeFile,_0x5a4f12,JSON['stringify'](_0x5d0203,null,0x2));}catch(_0x2cefa0){_0x2d1d80&&await _0x3a7480['HkKrh'](unlink,_0x2d1d80)['catch'](()=>{});throw _0x2cefa0;}return{'configPath':_0x5a4f12,'storageStatePath':_0x458fb3,'tempAuthPath':_0x2d1d80,'outputDir':_0x3e275a};}export async function buildNovaActCliConfig(_0x1ec60b,_0x5a205a,_0x208eb8,_0x508ab4,_0x545013){const _0x3e4560=_0x44c6b3,_0x1171f8={'ULVTu':function(_0x2f9369,_0x2a82d8){return _0x2f9369(_0x2a82d8);},'yzKze':function(_0xaade30,_0x82f37b,_0x32dab5){return _0xaade30(_0x82f37b,_0x32dab5);},'Dxpwx':function(_0xb8608e,_0x5b508b,_0x5de37b){return _0xb8608e(_0x5b508b,_0x5de37b);},'CIktb':'--no-sandbox','nKYFh':function(_0xe8178f,_0x428ac5){return _0xe8178f===_0x428ac5;}},{storageStatePath:_0x3086a7,tempAuthPath:_0x35d6b5}=_0x545013?{'storageStatePath':_0x545013,'tempAuthPath':undefined}:await _0x1171f8['ULVTu'](resolveLocalAuthPath,getEnvDir(_0x5a205a)),_0x1d7e93=_0x208eb8||randomUUID(),_0x4ba9b0=join(getRangerDir(),'sessions',_0x1d7e93),_0xac6d83=_0x1171f8[_0x3e4560(0x1ec)](join,_0x4ba9b0,_0x3e4560(0x24e)),_0x5b065d=_0x3086a7?_0x1171f8['yzKze'](join,_0xac6d83,_0x3e4560(0x25d)):undefined,{launchOptions:_0x5bdca1,contextOptions:_0x5472bd}=_0x1171f8[_0x3e4560(0x260)](buildBrowserOptionsFromSettings,_0x1ec60b,{'headless':_0x508ab4?![]:_0x1ec60b[_0x3e4560(0x236)]??!![],'storageStatePath':_0x3086a7});if(process[_0x3e4560(0x22f)]?.()===0x0){const _0x21c9bb=[_0x1171f8[_0x3e4560(0x23a)],'--disable-setuid-sandbox'],_0x2add5f=_0x5bdca1['args']??[],_0x56a126=_0x21c9bb[_0x3e4560(0x1f5)](_0x3cfbc0=>!_0x2add5f['includes'](_0x3cfbc0));_0x5bdca1[_0x3e4560(0x232)]=[..._0x2add5f,..._0x56a126];}const _0x542b06=_0x1171f8[_0x3e4560(0x264)](typeof _0x5bdca1[_0x3e4560(0x20d)],'string')?_0x5bdca1['executablePath']:_0x3086a7?chromium['executablePath']():undefined;return{'storageStatePath':_0x3086a7,'tempAuthPath':_0x35d6b5,'baseUrl':_0x1ec60b[_0x3e4560(0x25b)],'headless':_0x1171f8[_0x3e4560(0x209)](Boolean,_0x5bdca1['headless']),'userDataDir':_0xac6d83,'browserProfilePath':_0x5b065d,'executablePath':_0x542b06,'launchArgs':Array[_0x3e4560(0x240)](_0x5bdca1[_0x3e4560(0x232)])?_0x5bdca1[_0x3e4560(0x232)][_0x3e4560(0x1f5)](_0x566403=>typeof _0x566403===_0x3e4560(0x211)):[],'userAgent':_0x1171f8[_0x3e4560(0x264)](typeof _0x5472bd[_0x3e4560(0x257)],_0x3e4560(0x211))?_0x5472bd['userAgent']:undefined,'extraHTTPHeaders':_0x5472bd['extraHTTPHeaders'],'allowInsecureLocalhost':Boolean(_0x1ec60b['allowInsecureLocalhost']),'safeMode':_0x1171f8['ULVTu'](Boolean,_0x1ec60b[_0x3e4560(0x1f1)]),'cdpEndpoint':_0x1ec60b[_0x3e4560(0x230)],'isCdpMode':Boolean(_0x1ec60b['cdpEndpoint'])};}export function getNestedValue(_0x37e9d7,_0x35a162){const _0x4afdee=_0x44c6b3,_0x51675d={'kaDnO':function(_0x46e74f,_0x13cde4){return _0x46e74f(_0x13cde4);},'mOHUv':function(_0x3272c1,_0x1e6368){return _0x3272c1===_0x1e6368;}},_0x23c47c=_0x51675d['kaDnO'](parseKeyPath,_0x35a162);let _0x473354=_0x37e9d7;for(const _0x469686 of _0x23c47c){if(_0x473354===null||_0x51675d[_0x4afdee(0x21a)](_0x473354,undefined)||typeof _0x473354!==_0x4afdee(0x208))return undefined;_0x473354=_0x473354[_0x469686];}return _0x473354;}export function setNestedValue(_0x16b613,_0x470d74,_0x337fa9){const _0x255248=_0x44c6b3,_0x4bec81={'ABXnE':function(_0xf275e1,_0x111018){return _0xf275e1-_0x111018;},'SIYCg':function(_0x477b26,_0xfb991a){return _0x477b26 in _0xfb991a;},'MbSdQ':function(_0x5872e4,_0x5dce95){return _0x5872e4!==_0x5dce95;}},_0x5c65a0=parseKeyPath(_0x470d74);let _0x2f8c82=_0x16b613;for(let _0x64f2e0=0x0;_0x64f2e0<_0x4bec81['ABXnE'](_0x5c65a0[_0x255248(0x207)],0x1);_0x64f2e0++){const _0x12e8e8=_0x5c65a0[_0x64f2e0];(!_0x4bec81['SIYCg'](_0x12e8e8,_0x2f8c82)||_0x4bec81['MbSdQ'](typeof _0x2f8c82[_0x12e8e8],_0x255248(0x208)))&&(_0x2f8c82[_0x12e8e8]={}),_0x2f8c82=_0x2f8c82[_0x12e8e8];}_0x2f8c82[_0x5c65a0[_0x5c65a0[_0x255248(0x207)]-0x1]]=_0x337fa9;}export function deleteNestedValue(_0x540420,_0x3d16ed){const _0x12a3f7=_0x44c6b3,_0x10454d={'ZETan':function(_0x396ee1,_0x170783){return _0x396ee1<_0x170783;},'bUKcJ':function(_0x14752a,_0x28f2f6){return _0x14752a-_0x28f2f6;},'ajwMX':function(_0x36cdfb,_0x2603d6){return _0x36cdfb!==_0x2603d6;},'rwLBM':_0x12a3f7(0x208),'ovJag':function(_0x332477,_0x24587c){return _0x332477===_0x24587c;},'CGeIY':function(_0x3e3f96,_0xf5441){return _0x3e3f96!==_0xf5441;},'XZjie':function(_0x35e7af,_0x29c404){return _0x35e7af in _0x29c404;}},_0x588e4a=parseKeyPath(_0x3d16ed);let _0x586327=_0x540420;for(let _0x1973ea=0x0;_0x10454d[_0x12a3f7(0x1f3)](_0x1973ea,_0x10454d['bUKcJ'](_0x588e4a['length'],0x1));_0x1973ea++){if(_0x586327===null||_0x586327===undefined||_0x10454d['ajwMX'](typeof _0x586327,_0x10454d[_0x12a3f7(0x251)]))return![];_0x586327=_0x586327[_0x588e4a[_0x1973ea]];}if(_0x586327===null||_0x10454d['ovJag'](_0x586327,undefined)||_0x10454d['CGeIY'](typeof _0x586327,_0x10454d['rwLBM']))return![];const _0x1bfde5=_0x588e4a[_0x588e4a[_0x12a3f7(0x207)]-0x1];if(_0x10454d['XZjie'](_0x1bfde5,_0x586327))return delete _0x586327[_0x1bfde5],!![];return![];}function parseKeyPath(_0x4ab0d7){const _0x2b5d0d=_0x44c6b3,_0x27f79b=_0x4ab0d7['split']('.');return _0x27f79b[0x0]==='header'&&(_0x27f79b[0x0]=_0x2b5d0d(0x22c)),_0x27f79b[0x0]===_0x2b5d0d(0x24c)&&(_0x27f79b[0x0]=_0x2b5d0d(0x210)),_0x27f79b;}export function formatSettings(_0x587625,_0x3478b8=0x0){const _0x24939d=_0x44c6b3,_0x443ea7={'WdEPA':function(_0x3566c7,_0x459d8b){return _0x3566c7===_0x459d8b;}},_0x3944d1=[],_0x50100f='\x20\x20'[_0x24939d(0x1ef)](_0x3478b8);for(const [_0x5c4ceb,_0x14e07a]of Object['entries'](_0x587625)){if(_0x443ea7['WdEPA'](_0x14e07a,undefined))continue;if(typeof _0x14e07a==='object'&&_0x14e07a!==null){_0x3944d1['push'](''+_0x50100f+_0x5c4ceb+':');for(const [_0x3f25bb,_0x5c2362]of Object[_0x24939d(0x262)](_0x14e07a)){_0x3944d1[_0x24939d(0x204)](_0x50100f+'\x20\x20'+_0x3f25bb+':\x20'+_0x5c2362);}}else _0x3944d1['push'](''+_0x50100f+_0x5c4ceb+':\x20'+_0x14e07a);}return _0x3944d1[_0x24939d(0x1fc)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x48400e,_0xecbce){const _0x168523=_0x13a9,_0x28fbfa=_0x48400e();while(!![]){try{const _0x52d238=-parseInt(_0x168523(0x10d))/0x1+-parseInt(_0x168523(0x10f))/0x2+parseInt(_0x168523(0x119))/0x3*(-parseInt(_0x168523(0x117))/0x4)+parseInt(_0x168523(0x112))/0x5+-parseInt(_0x168523(0x110))/0x6*(-parseInt(_0x168523(0x10e))/0x7)+parseInt(_0x168523(0x10c))/0x8*(parseInt(_0x168523(0x114))/0x9)+-parseInt(_0x168523(0x116))/0xa*(-parseInt(_0x168523(0x118))/0xb);if(_0x52d238===_0xecbce)break;else _0x28fbfa['push'](_0x28fbfa['shift']());}catch(_0x390aa4){_0x28fbfa['push'](_0x28fbfa['shift']());}}}(_0x2429,0x39f7d));function _0x2429(){const _0x207830=['3645fMjtvP','776cQRGic','306532ItAeSD','42AZDQui','747686dQVPed','192978cNjpPo','skills','529215kwxCus','utf-8','5571nBRRQk','JyOzR','10AMUQPM','1188UYUudu','10117833QnlOdW'];_0x2429=function(){return _0x207830;};return _0x2429();}import{readFileSync}from'fs';function _0x13a9(_0x3e2699,_0x59fc70){_0x3e2699=_0x3e2699-0x10c;const _0x242912=_0x2429();let _0x13a9bd=_0x242912[_0x3e2699];return _0x13a9bd;}import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x179783){const _0x32623f=_0x13a9,_0x4e50a1={'tSETi':_0x32623f(0x111),'JyOzR':function(_0x571811,_0x7b58bd,_0x2b78d5){return _0x571811(_0x7b58bd,_0x2b78d5);}},_0x19f7b3=join(__dirname,'..','..',_0x4e50a1['tSETi']),_0x21cc18=_0x4e50a1[_0x32623f(0x115)](join,_0x19f7b3,_0x179783);try{return _0x4e50a1['JyOzR'](readFileSync,_0x21cc18,_0x32623f(0x113));}catch{return'';}}export function getRangerSkillContent(){const _0x265455={'AlwYd':function(_0x43eeb9,_0x2a3dda){return _0x43eeb9(_0x2a3dda);},'KZBRW':'ranger/SKILL.md'};return _0x265455['AlwYd'](readSkillContent,_0x265455['KZBRW']);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xc7fc5d=_0xb47c;(function(_0x4615a4,_0x4db2ce){const _0x29e585=_0xb47c,_0x3c5988=_0x4615a4();while(!![]){try{const _0x1ed632=-parseInt(_0x29e585(0x17c))/0x1+parseInt(_0x29e585(0x166))/0x2+parseInt(_0x29e585(0x160))/0x3+-parseInt(_0x29e585(0x179))/0x4*(parseInt(_0x29e585(0x180))/0x5)+-parseInt(_0x29e585(0x161))/0x6*(parseInt(_0x29e585(0x16e))/0x7)+-parseInt(_0x29e585(0x17f))/0x8*(parseInt(_0x29e585(0x16b))/0x9)+parseInt(_0x29e585(0x168))/0xa*(parseInt(_0x29e585(0x17a))/0xb);if(_0x1ed632===_0x4db2ce)break;else _0x3c5988['push'](_0x3c5988['shift']());}catch(_0x3ef222){_0x3c5988['push'](_0x3c5988['shift']());}}}(_0x2306,0xe0e25));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';function _0x2306(){const _0x5a6c85=['ranger','HLZrG','warn','244ojOfJw','22OxENWm','\x20\x20Removed\x20deprecated\x20skill:\x20','1831038xKhIik','endsWith','catch','8gTFkqH','46660ejPVIF','trim','claude','log','utf-8','1967445ERQiwM','14898ENNHEr','illHo','ZLrTj','\x20\x20Files:\x20','join','1462064mhNxDB','yRnho','19735570NfSBsg','filter','\x20\x20Location:\x20','6201963BFvgiE','match','SKILL.md','3731ZepiJh','project','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','kqsDr','\x20\x20Installed\x20skill:\x20','hXTeG','nOyuP','BGvPs'];_0x2306=function(){return _0x5a6c85;};return _0x2306();}import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';function _0xb47c(_0x1dd6ef,_0x45f27c){_0x1dd6ef=_0x1dd6ef-0x15d;const _0x230653=_0x2306();let _0xb47cde=_0x230653[_0x1dd6ef];return _0xb47cde;}import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0xc7fc5d(0x176)];export const DEPRECATED_SKILLS=['e2e-test-recommender','bug-bash','feature-tracker'];export async function installSkill(_0x561d67,_0x1c4520={}){const _0x4c93e9=_0xc7fc5d,_0x25abc9={'hXTeG':_0x4c93e9(0x16f),'TBCoc':function(_0x18b8dd){return _0x18b8dd();},'BGvPs':function(_0x60691c,_0x549a7c,_0x460f15){return _0x60691c(_0x549a7c,_0x460f15);},'WUcLW':function(_0x14250c,_0x5f402a){return _0x14250c(_0x5f402a);},'eGvNc':function(_0x4d237c,_0x43be08){return _0x4d237c(_0x43be08);},'FFPDl':function(_0x5ac55e,_0x224fdb){return _0x5ac55e&&_0x224fdb;},'nOyuP':'opencode','ZLrTj':'utf-8','kqsDr':function(_0x504e4c,_0x51fea4){return _0x504e4c>_0x51fea4;}},{level:level=_0x25abc9[_0x4c93e9(0x173)],cliVersion:_0x1d5444,platform:platform=_0x4c93e9(0x15d)}=_0x1c4520,_0x53029b=_0x25abc9['TBCoc'](getSourceSkillsDir),_0x13f31e=_0x25abc9['BGvPs'](join,_0x53029b,_0x561d67),_0x99abe3=join(_0x53029b,_0x561d67+'.md'),_0x941327=_0x25abc9['WUcLW'](existsSync,_0x13f31e)&&_0x25abc9['WUcLW'](statSync,_0x13f31e)['isDirectory']()&&_0x25abc9['eGvNc'](existsSync,_0x25abc9[_0x4c93e9(0x175)](join,_0x13f31e,'SKILL.md')),_0x437aef=existsSync(_0x99abe3);if(_0x25abc9['FFPDl'](!_0x941327,!_0x437aef))return console[_0x4c93e9(0x178)]('\x20\x20Skill\x20not\x20found:\x20'+_0x561d67),![];const _0x5a2fec=platform===_0x25abc9[_0x4c93e9(0x174)]?getOpencodeSkillsDir(level):getSkillsDir(level),_0x3292dc=join(_0x5a2fec,_0x561d67);await mkdir(_0x3292dc,{'recursive':!![]});let _0x24871d,_0x3d8af6=[];if(_0x941327){const _0x8d30a2=await readdir(_0x13f31e),_0x48e70f=_0x8d30a2[_0x4c93e9(0x169)](_0x55f7d8=>_0x55f7d8[_0x4c93e9(0x17d)]('.md'));for(const _0x4b722a of _0x48e70f){const _0x2fc94f=_0x25abc9[_0x4c93e9(0x175)](join,_0x13f31e,_0x4b722a),_0x3ebc08=_0x25abc9['BGvPs'](join,_0x3292dc,_0x4b722a);await _0x25abc9['BGvPs'](copyFile,_0x2fc94f,_0x3ebc08),_0x3d8af6['push'](_0x4b722a);}_0x24871d=await _0x25abc9[_0x4c93e9(0x175)](readFile,join(_0x13f31e,_0x4c93e9(0x16d)),_0x25abc9[_0x4c93e9(0x163)]);}else{_0x24871d=await readFile(_0x99abe3,_0x4c93e9(0x15f));const _0x33ffef=join(_0x3292dc,'SKILL.md');await writeFile(_0x33ffef,_0x24871d,_0x25abc9[_0x4c93e9(0x163)]),_0x3d8af6['push'](_0x4c93e9(0x16d));}const {name:_0x42961e}=parseFrontmatter(_0x24871d);return console['log'](_0x4c93e9(0x172)+_0x42961e),console[_0x4c93e9(0x15e)](_0x4c93e9(0x16a)+_0x3292dc),_0x25abc9[_0x4c93e9(0x171)](_0x3d8af6['length'],0x1)&&console['log'](_0x4c93e9(0x164)+_0x3d8af6[_0x4c93e9(0x165)](',\x20')),logLocalAgentInstallation(_0x561d67,{'skillDisplayName':_0x42961e,'installLevel':level},_0x1d5444)[_0x4c93e9(0x17e)](()=>{}),!![];}function getSourceSkillsDir(){const _0x5c32a2=_0xc7fc5d,_0x23550b={'yRnho':'skills','KpOzo':function(_0x9f0a32,_0x3c77ed,_0x2451f3,_0x11229f,_0x56ef55,_0x494fc6){return _0x9f0a32(_0x3c77ed,_0x2451f3,_0x11229f,_0x56ef55,_0x494fc6);},'HLZrG':function(_0x394b58,_0x4d065c){return _0x394b58(_0x4d065c);}},_0x403e6=[join(__dirname,'..','..',_0x23550b[_0x5c32a2(0x167)]),_0x23550b['KpOzo'](join,__dirname,'..','..','..',_0x23550b['yRnho'])];for(const _0x5d1832 of _0x403e6){if(_0x23550b[_0x5c32a2(0x177)](existsSync,_0x5d1832))return _0x5d1832;}return _0x403e6[0x0];}function parseFrontmatter(_0x5598ec){const _0x1c51b6=_0xc7fc5d,_0xd56898=_0x5598ec['match'](/^---\n([\s\S]+?)\n---/);if(!_0xd56898)throw new Error('Invalid\x20skill\x20frontmatter');const _0x6543aa=_0xd56898[0x1],_0x1321b6=_0x6543aa['match'](/name:\s*(.+)/),_0x575ffb=_0x6543aa[_0x1c51b6(0x16c)](/description:\s*"?(.+?)"?\n/);return{'name':_0x1321b6?.[0x1]['trim']()||'','description':_0x575ffb?.[0x1][_0x1c51b6(0x181)]()||''};}export async function removeSkill(_0x104c59,_0x2cc91d){const _0x3a6851=_0xc7fc5d,_0x3e5a20={'illHo':function(_0x2e5708,_0x20db64,_0x4959d2){return _0x2e5708(_0x20db64,_0x4959d2);},'Zirif':function(_0x5cc69e,_0x3f9787){return _0x5cc69e(_0x3f9787);}},_0x48aa0c=getSkillsDir(_0x2cc91d),_0x58ca6d=_0x3e5a20[_0x3a6851(0x162)](join,_0x48aa0c,_0x104c59);if(!_0x3e5a20['Zirif'](existsSync,_0x58ca6d))return![];try{return await rm(_0x58ca6d,{'recursive':!![]}),console[_0x3a6851(0x15e)](_0x3a6851(0x17b)+_0x104c59),!![];}catch{return console['warn'](_0x3a6851(0x170)+_0x104c59),![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xc3913b=_0x4621;function _0x472b(){const _0x11eacb=['IdRaB','error','jRHqi','clusters','svOlw','gfcRA','maxTicks','fyLNX','hundk','331499ZLdVcJ','qddHF','GwhuP','push','kbePJ','argv','jKZBK','NYbEf','30wMdHSr','stitchWebmFiles.ts','from','exit','HEjKv','Stitched\x20','YgLcf','TWChh','omUeT','1224414knSOiX','qYpCo','11465wtkSvg','bodyAfterTimestamp','readInt16BE','4458000vXPsaW','BCoiE','MfmxH','VAABF','tgTVN','KUJRD','slice','log','\x20files\x20->\x20','drLgr','DlKMF','TOQxH','ZrzIa','beXqy','oxjuk','alloc','timestamp','481937JYaHiI','FexMj','2uXvmBi','jEGqV','XZBsp','indexOf','ertCR','12GNMwTe','vntLU','floor','length','copy','tPFLY','dNSyu','GNQVC','356Gaggdd','yxRiv','znJdW','619713BMbxnB','Qsvet','concat','123277YDgFkZ','bFIyG'];_0x472b=function(){return _0x11eacb;};return _0x472b();}(function(_0x2acc28,_0x579587){const _0x49a7a0=_0x4621,_0x1e55b6=_0x2acc28();while(!![]){try{const _0x3f8165=-parseInt(_0x49a7a0(0xeb))/0x1*(parseInt(_0x49a7a0(0xed))/0x2)+parseInt(_0x49a7a0(0x11c))/0x3+-parseInt(_0x49a7a0(0xfa))/0x4*(parseInt(_0x49a7a0(0xd7))/0x5)+parseInt(_0x49a7a0(0xf2))/0x6*(-parseInt(_0x49a7a0(0x10b))/0x7)+parseInt(_0x49a7a0(0xda))/0x8+parseInt(_0x49a7a0(0xfd))/0x9+-parseInt(_0x49a7a0(0x113))/0xa*(-parseInt(_0x49a7a0(0x100))/0xb);if(_0x3f8165===_0x579587)break;else _0x1e55b6['push'](_0x1e55b6['shift']());}catch(_0x5014cb){_0x1e55b6['push'](_0x1e55b6['shift']());}}}(_0x472b,0x461a2));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(_0xb5ed25,_0x4aec5d){const _0x24789d=_0x4621,_0x54830e={'czita':function(_0x5dbb2e,_0x13ec33){return _0x5dbb2e>=_0x13ec33;},'MfmxH':function(_0x19be31,_0xbc18a7){return _0x19be31&_0xbc18a7;},'vntLU':function(_0x28efaa,_0x24bf50){return _0x28efaa-_0x24bf50;},'ifUNC':function(_0x3a5bfe,_0x50acf8){return _0x3a5bfe+_0x50acf8;}};if(_0x54830e['czita'](_0x4aec5d,_0xb5ed25[_0x24789d(0xf5)]))return[0x0,0x0];const _0x297520=_0xb5ed25[_0x4aec5d];let _0x3450ed=0x1,_0x4c4218=0x80;while(_0x3450ed<=0x8&&!(_0x297520&_0x4c4218)){_0x3450ed++,_0x4c4218>>=0x1;}if(_0x4aec5d+_0x3450ed>_0xb5ed25['length'])return[0x0,0x0];let _0x1763b8=_0x54830e[_0x24789d(0xdc)](_0x297520,_0x54830e[_0x24789d(0xf3)](_0x4c4218,0x1));for(let _0xf2205b=0x1;_0xf2205b<_0x3450ed;_0xf2205b++){_0x1763b8=_0x1763b8*0x100+_0xb5ed25[_0x54830e['ifUNC'](_0x4aec5d,_0xf2205b)];}return[_0x1763b8,_0x3450ed];}function readId(_0x5bba0d,_0x59fe54){const _0x2e35ae=_0x4621,_0x2ceb95={'omUeT':function(_0x51da32,_0x3c77c1){return _0x51da32+_0x3c77c1;},'ILNtI':function(_0x51eff0,_0x809c3){return _0x51eff0<_0x809c3;},'BCoiE':function(_0xfc8496,_0x3f7423){return _0xfc8496*_0x3f7423;}};if(_0x59fe54>=_0x5bba0d['length'])return[0x0,0x0];const _0x4e2659=_0x5bba0d[_0x59fe54];let _0x3ef81f;if(_0x4e2659>=0x80)_0x3ef81f=0x1;else{if(_0x4e2659>=0x40)_0x3ef81f=0x2;else{if(_0x4e2659>=0x20)_0x3ef81f=0x3;else{if(_0x4e2659>=0x10)_0x3ef81f=0x4;else return[_0x4e2659,0x1];}}}if(_0x2ceb95[_0x2e35ae(0x11b)](_0x59fe54,_0x3ef81f)>_0x5bba0d[_0x2e35ae(0xf5)])return[0x0,0x0];let _0x278e1b=0x0;for(let _0x5dda7f=0x0;_0x2ceb95['ILNtI'](_0x5dda7f,_0x3ef81f);_0x5dda7f++){_0x278e1b=_0x2ceb95[_0x2e35ae(0xdb)](_0x278e1b,0x100)+_0x5bba0d[_0x2ceb95['omUeT'](_0x59fe54,_0x5dda7f)];}return[_0x278e1b,_0x3ef81f];}function _0x4621(_0x8995c7,_0x3151f5){_0x8995c7=_0x8995c7-0xd7;const _0x472b7f=_0x472b();let _0x46219a=_0x472b7f[_0x8995c7];return _0x46219a;}function readUint(_0x504db8,_0x312c3f,_0x5e8cb9){const _0x4d92d9=_0x4621,_0x593691={'hAhth':function(_0x161d5c,_0x289f5d){return _0x161d5c<_0x289f5d;},'ZrzIa':function(_0xa63d01,_0x302ae2){return _0xa63d01+_0x302ae2;}};let _0x48c440=0x0;for(let _0x504b0d=0x0;_0x593691['hAhth'](_0x504b0d,_0x5e8cb9);_0x504b0d++){_0x48c440=_0x593691[_0x4d92d9(0xe6)](_0x48c440*0x100,_0x504db8[_0x312c3f+_0x504b0d]);}return _0x48c440;}function isUnknownSize(_0x51cda5,_0x13eee4){const _0x439f35=_0x4621,_0x20e510={'qYpCo':function(_0x3c8e4,_0x1be7ea){return _0x3c8e4-_0x1be7ea;}};return _0x51cda5===_0x20e510[_0x439f35(0x11d)](Math['pow'](0x2,0x7*_0x13eee4),0x1);}function writeVint(_0x3be58a,_0xea3b58){const _0x208569=_0x4621,_0x26b92b={'IdRaB':function(_0x39249e,_0x5ba817){return _0x39249e||_0x5ba817;},'Akcfn':function(_0x1d6d45,_0x4db16f){return _0x1d6d45<_0x4db16f;},'UnZDR':function(_0x1fd2b1,_0x58072e){return _0x1fd2b1*_0x58072e;},'TOQxH':function(_0x8c7ffc,_0x14f1a8){return _0x8c7ffc-_0x14f1a8;},'Ebwkb':function(_0x46f315,_0xb7f5b6){return _0x46f315&_0xb7f5b6;},'JbAgb':function(_0x27583d,_0x4683ee){return _0x27583d/_0x4683ee;}};let _0x1ec2f2=_0x26b92b[_0x208569(0x102)](_0xea3b58,0x1);while(_0x26b92b['Akcfn'](Math['pow'](0x2,_0x26b92b['UnZDR'](0x7,_0x1ec2f2))-0x2,_0x3be58a))_0x1ec2f2++;const _0x19515b=Buffer['alloc'](_0x1ec2f2);for(let _0x1ed74f=_0x26b92b[_0x208569(0xe5)](_0x1ec2f2,0x1);_0x1ed74f>=0x0;_0x1ed74f--){_0x19515b[_0x1ed74f]=_0x26b92b['Ebwkb'](_0x3be58a,0xff),_0x3be58a=Math['floor'](_0x26b92b['JbAgb'](_0x3be58a,0x100));}return _0x19515b[0x0]|=0x1<<0x8-_0x1ec2f2,_0x19515b;}function writeUint(_0x412794,_0x3c3a46){const _0x3c16f5=_0x4621,_0xe59179={'AdIEE':function(_0x29b5dd,_0x5f1213){return _0x29b5dd-_0x5f1213;}},_0x2bcc82=Buffer[_0x3c16f5(0xe9)](_0x3c3a46);for(let _0x1c3a8f=_0xe59179['AdIEE'](_0x3c3a46,0x1);_0x1c3a8f>=0x0;_0x1c3a8f--){_0x2bcc82[_0x1c3a8f]=_0x412794&0xff,_0x412794=Math[_0x3c16f5(0xf4)](_0x412794/0x100);}return _0x2bcc82;}function writeUnknownSizeVint(_0x590f88){const _0x2767af=_0x4621,_0x53160d={'oxjuk':function(_0x281be8,_0x5cdee2){return _0x281be8-_0x5cdee2;}},_0x29f861=Buffer[_0x2767af(0xe9)](_0x590f88,0xff);return _0x29f861[0x0]=0xff>>_0x53160d[_0x2767af(0xe8)](_0x590f88,0x1),_0x29f861;}function uintSize(_0x40bb71){const _0x21f6c7=_0x4621,_0x260818={'VAABF':function(_0x4763c2,_0x40fd79){return _0x4763c2===_0x40fd79;},'TWChh':function(_0x3ee6fa,_0x13c92b){return _0x3ee6fa>_0x13c92b;},'SQQvM':function(_0x24856b,_0x3c6684){return _0x24856b/_0x3c6684;}};if(_0x260818[_0x21f6c7(0xdd)](_0x40bb71,0x0))return 0x1;let _0x1ea482=0x0,_0x409c5c=_0x40bb71;while(_0x260818[_0x21f6c7(0x11a)](_0x409c5c,0x0)){_0x1ea482++,_0x409c5c=Math['floor'](_0x260818['SQQvM'](_0x409c5c,0x100));}return _0x1ea482;}function findTimestampScale(_0x484f42,_0x1eaf14){const _0x4ed432=_0x4621,_0x1d8bf8={'GNQVC':function(_0x412e70,_0xa289c0){return _0x412e70+_0xa289c0;},'GwhuP':function(_0x41119c,_0x433c0b){return _0x41119c<_0x433c0b;},'fyLNX':function(_0x16ec14,_0x496a26,_0x4e593e){return _0x16ec14(_0x496a26,_0x4e593e);},'tPFLY':function(_0x20fc7f,_0x5077c6){return _0x20fc7f===_0x5077c6;},'dNSyu':function(_0x3fb343,_0x1d9f25){return _0x3fb343+_0x1d9f25;},'pZzhD':function(_0x7d6d75,_0x1d10ba,_0x1f8e93){return _0x7d6d75(_0x1d10ba,_0x1f8e93);},'txFqY':function(_0x275017,_0x27b201){return _0x275017+_0x27b201;}};let _0x374740=_0x1eaf14;const _0x573285=Math['min'](_0x484f42[_0x4ed432(0xf5)],_0x1d8bf8['GNQVC'](_0x1eaf14,0x2710));while(_0x1d8bf8[_0x4ed432(0x10d)](_0x374740,_0x573285)){const [_0x485445,_0x572e4a]=readId(_0x484f42,_0x374740),[_0x29ff08,_0xaef361]=_0x1d8bf8['fyLNX'](readVint,_0x484f42,_0x374740+_0x572e4a);if(_0x1d8bf8['tPFLY'](_0x485445,ID_INFO)){let _0x4b4c20=_0x1d8bf8[_0x4ed432(0xf9)](_0x374740+_0x572e4a,_0xaef361);const _0x3c1716=_0x1d8bf8['GNQVC'](_0x4b4c20,_0x29ff08);while(_0x4b4c20<_0x3c1716){const [_0x233ba8,_0x3f2d7c]=_0x1d8bf8[_0x4ed432(0x109)](readId,_0x484f42,_0x4b4c20),[_0x271369,_0x524beb]=_0x1d8bf8[_0x4ed432(0x109)](readVint,_0x484f42,_0x4b4c20+_0x3f2d7c);if(_0x233ba8===ID_TIMESTAMP_SCALE)return readUint(_0x484f42,_0x1d8bf8[_0x4ed432(0xf8)](_0x4b4c20+_0x3f2d7c,_0x524beb),_0x271369);_0x4b4c20+=_0x1d8bf8[_0x4ed432(0xf8)](_0x3f2d7c,_0x524beb)+_0x271369;}break;}if(_0x1d8bf8[_0x4ed432(0xf7)](_0x485445,ID_CLUSTER))break;if(_0x1d8bf8['pZzhD'](isUnknownSize,_0x29ff08,_0xaef361))break;_0x374740+=_0x1d8bf8['txFqY'](_0x572e4a+_0xaef361,_0x29ff08);}return 0xf4240;}function findFirstClusterOffset(_0x4f10f4,_0x4cec3d){const _0x45bfe8=_0x4621,_0x2fad94={'MhRka':function(_0x5ad2dd,_0x461749){return _0x5ad2dd<_0x461749;},'ALKBN':function(_0x4c66cf,_0x1ba35f,_0x3e5efc){return _0x4c66cf(_0x1ba35f,_0x3e5efc);},'qddHF':function(_0x37fd4e,_0x161c0a){return _0x37fd4e+_0x161c0a;}};let _0x1aad88=_0x4cec3d;while(_0x2fad94['MhRka'](_0x1aad88,_0x4f10f4[_0x45bfe8(0xf5)])){const [_0x538a0d,_0xcfb983]=readId(_0x4f10f4,_0x1aad88);if(_0x538a0d===ID_CLUSTER)return _0x1aad88;const [_0x40eb23,_0x70db8b]=readVint(_0x4f10f4,_0x1aad88+_0xcfb983);if(_0x2fad94['ALKBN'](isUnknownSize,_0x40eb23,_0x70db8b))return _0x1aad88;_0x1aad88+=_0x2fad94[_0x45bfe8(0x10c)](_0x2fad94['qddHF'](_0xcfb983,_0x70db8b),_0x40eb23);}return _0x4f10f4[_0x45bfe8(0xf5)];}function findClusterEnd(_0x3b8261,_0x40d1e6,_0x6fc84e,_0x3e9651){const _0x1d4bdc={'hdfnm':function(_0x42b718,_0xa9c3ae,_0x987ad8){return _0x42b718(_0xa9c3ae,_0x987ad8);},'cWKBM':function(_0x40e068,_0x1cfd61){return _0x40e068+_0x1cfd61;}};if(!isUnknownSize(_0x6fc84e,_0x3e9651))return _0x40d1e6+_0x6fc84e;const _0x4efe6d=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x3f1867=_0x40d1e6;while(_0x3f1867<_0x3b8261['length']-0x4){const [_0x2dcce2,_0x2b8894]=readId(_0x3b8261,_0x3f1867);if(_0x4efe6d['has'](_0x2dcce2))return _0x3f1867;const [_0x1105f7,_0x568120]=readVint(_0x3b8261,_0x3f1867+_0x2b8894);if(_0x1d4bdc['hdfnm'](isUnknownSize,_0x1105f7,_0x568120))return _0x3b8261['length'];_0x3f1867+=_0x1d4bdc['cWKBM'](_0x2b8894,_0x568120)+_0x1105f7;}return _0x3b8261['length'];}function extractClusters(_0x15a0f1,_0x8b7ea2){const _0x54eb3c=_0x4621,_0x5a94ff={'Qsvet':function(_0x35966f,_0x195f6c){return _0x35966f<_0x195f6c;},'KUJRD':function(_0x5bb2aa,_0x7b0f8a){return _0x5bb2aa===_0x7b0f8a;},'mDxPM':function(_0x5b5aad,_0x221b23){return _0x5b5aad!==_0x221b23;},'NYbEf':function(_0x117a1e,_0x39365b){return _0x117a1e+_0x39365b;},'QSFWA':function(_0x20fdb2,_0x9df418,_0x272b3c){return _0x20fdb2(_0x9df418,_0x272b3c);},'GJqdf':function(_0x2673d6,_0x4d580f,_0x76fd8f){return _0x2673d6(_0x4d580f,_0x76fd8f);},'jKZBK':function(_0x341181,_0xa3baa,_0x3b7a18,_0x477b30){return _0x341181(_0xa3baa,_0x3b7a18,_0x477b30);},'HEjKv':function(_0x5bfcad,_0x2dbd2f){return _0x5bfcad+_0x2dbd2f;},'znJdW':function(_0x5a260c,_0x12ed68){return _0x5a260c+_0x12ed68;},'HOaWg':function(_0x1b6416,_0x216f8d){return _0x1b6416+_0x216f8d;},'FexMj':function(_0x3265e6,_0x2c4827){return _0x3265e6+_0x2c4827;},'yxRiv':function(_0x424a10,_0x17b034){return _0x424a10>_0x17b034;},'kEaHo':function(_0x50325b,_0x58a073){return _0x50325b+_0x58a073;}},_0x396451=[],_0x4fece3=Buffer[_0x54eb3c(0x115)]([0x1f,0x43,0xb6,0x75]);let _0x514630=0x0;while(_0x5a94ff[_0x54eb3c(0xfe)](_0x514630,_0x15a0f1['length'])){const _0xd32187=_0x15a0f1[_0x54eb3c(0xf0)](_0x4fece3,_0x514630);if(_0x5a94ff['KUJRD'](_0xd32187,-0x1))break;const [_0x4443b3,_0xd03a1b]=readId(_0x15a0f1,_0xd32187);if(_0x5a94ff['mDxPM'](_0x4443b3,ID_CLUSTER)){_0x514630=_0x5a94ff[_0x54eb3c(0x112)](_0xd32187,0x1);continue;}const [_0x523325,_0x2a7992]=readVint(_0x15a0f1,_0xd32187+_0xd03a1b),_0x19357c=_0x5a94ff[_0x54eb3c(0x112)](_0xd32187+_0xd03a1b,_0x2a7992),_0x51de94=findClusterEnd(_0x15a0f1,_0x19357c,_0x523325,_0x2a7992);let _0x19ad68=_0x19357c,_0x2fe3d1=0x0,_0x7c2c68=0x2,_0x4b286b=![],_0x2b9068=Buffer[_0x54eb3c(0xe9)](0x0),_0x34b28a=Buffer['alloc'](0x0);while(_0x19ad68<_0x51de94){const [_0x1b3eb6,_0x2c1e41]=_0x5a94ff['QSFWA'](readId,_0x15a0f1,_0x19ad68),[_0x299391,_0x35c218]=_0x5a94ff['GJqdf'](readVint,_0x15a0f1,_0x19ad68+_0x2c1e41);if(_0x1b3eb6===ID_TIMESTAMP){_0x2fe3d1=_0x5a94ff[_0x54eb3c(0x111)](readUint,_0x15a0f1,_0x5a94ff[_0x54eb3c(0x112)](_0x5a94ff[_0x54eb3c(0x117)](_0x19ad68,_0x2c1e41),_0x35c218),_0x299391),_0x7c2c68=_0x299391,_0x4b286b=!![],_0x2b9068=_0x15a0f1['slice'](_0x19357c,_0x19ad68);const _0x2ecf22=_0x5a94ff[_0x54eb3c(0xfc)](_0x5a94ff['znJdW'](_0x5a94ff['HOaWg'](_0x19ad68,_0x2c1e41),_0x35c218),_0x299391);_0x34b28a=_0x15a0f1['slice'](_0x2ecf22,_0x51de94);break;}if(_0x5a94ff[_0x54eb3c(0xdf)](_0x1b3eb6,ID_CLUSTER))break;if(isUnknownSize(_0x299391,_0x35c218))break;_0x19ad68+=_0x5a94ff[_0x54eb3c(0xec)](_0x2c1e41,_0x35c218)+_0x299391;}!_0x4b286b&&(_0x34b28a=_0x15a0f1[_0x54eb3c(0xe0)](_0x19357c,_0x51de94));let _0x587add=_0x2fe3d1;_0x19ad68=_0x19357c;while(_0x19ad68<_0x51de94){const [_0x5ace91,_0x43de75]=_0x5a94ff['QSFWA'](readId,_0x15a0f1,_0x19ad68),[_0x2fc138,_0x10af2c]=readVint(_0x15a0f1,_0x19ad68+_0x43de75);if(_0x5a94ff[_0x54eb3c(0xdf)](_0x5ace91,ID_SIMPLE_BLOCK)&&_0x2fc138>=0x4){const _0x3b2972=_0x19ad68+_0x43de75+_0x10af2c,[,_0xadab9f]=_0x5a94ff['QSFWA'](readVint,_0x15a0f1,_0x3b2972),_0x4ef02e=_0x15a0f1[_0x54eb3c(0xd9)](_0x3b2972+_0xadab9f),_0x4b549a=_0x2fe3d1+_0x4ef02e;if(_0x5a94ff[_0x54eb3c(0xfb)](_0x4b549a,_0x587add))_0x587add=_0x4b549a;}if(_0x5a94ff[_0x54eb3c(0xdf)](_0x5ace91,ID_CLUSTER))break;if(isUnknownSize(_0x2fc138,_0x10af2c))break;_0x19ad68+=_0x5a94ff[_0x54eb3c(0x112)](_0x5a94ff['kEaHo'](_0x43de75,_0x10af2c),_0x2fc138);}_0x396451[_0x54eb3c(0x10e)]({'timestamp':_0x2fe3d1,'maxTicks':_0x587add,'bodyBeforeTimestamp':_0x2b9068,'bodyAfterTimestamp':_0x34b28a,'timestampElementSize':_0x7c2c68}),_0x514630=_0x51de94;}return _0x396451;}function parseWebm(_0x4dd1d8){const _0x8e87b9=_0x4621,_0x3eb857={'NQoDm':function(_0x12e605,_0x4e452a,_0xab9795){return _0x12e605(_0x4e452a,_0xab9795);},'bFIyG':function(_0x3e2101,_0x50838b){return _0x3e2101+_0x50838b;},'YgLcf':function(_0x3c279f,_0x36e2fd,_0x1c3c1f){return _0x3c279f(_0x36e2fd,_0x1c3c1f);},'KDITo':function(_0x3e9d98,_0x2b1e54){return _0x3e9d98+_0x2b1e54;},'gfcRA':function(_0x4136fd,_0x1e00cb,_0xbf52bb){return _0x4136fd(_0x1e00cb,_0xbf52bb);},'svOlw':function(_0x348604,_0x4c43a6){return _0x348604>_0x4c43a6;}};let _0x22eae7=0x0;const [,_0x29ed11]=_0x3eb857['NQoDm'](readId,_0x4dd1d8,_0x22eae7),[_0x562bad,_0x328b35]=_0x3eb857['NQoDm'](readVint,_0x4dd1d8,_0x22eae7+_0x29ed11);_0x22eae7+=_0x3eb857[_0x8e87b9(0x101)](_0x3eb857['bFIyG'](_0x29ed11,_0x328b35),_0x562bad);const [_0x1f2aed,_0x36349d]=readId(_0x4dd1d8,_0x22eae7);if(_0x1f2aed!==ID_SEGMENT)return null;const [,_0x5aca61]=_0x3eb857[_0x8e87b9(0x119)](readVint,_0x4dd1d8,_0x22eae7+_0x36349d),_0x2d1d0f=_0x3eb857[_0x8e87b9(0x101)](_0x3eb857['KDITo'](_0x22eae7,_0x36349d),_0x5aca61),_0x33af91=findTimestampScale(_0x4dd1d8,_0x2d1d0f),_0x1aba5c=_0x3eb857[_0x8e87b9(0x107)](findFirstClusterOffset,_0x4dd1d8,_0x2d1d0f),_0x4742b8=_0x4dd1d8['slice'](0x0,_0x1aba5c),_0x4d7b29=extractClusters(_0x4dd1d8,_0x33af91);let _0x416619=0x0;for(const _0x5f58d3 of _0x4d7b29){if(_0x3eb857[_0x8e87b9(0x106)](_0x5f58d3[_0x8e87b9(0x108)],_0x416619))_0x416619=_0x5f58d3['maxTicks'];}return{'header':_0x4742b8,'clusters':_0x4d7b29,'timestampScale':_0x33af91,'maxTimestampTicks':_0x416619};}function buildCluster(_0x3beb8b,_0x29cc30,_0x104d02){const _0x2564dd=_0x4621,_0x43d416={'jRHqi':function(_0x36e77f,_0x41bac9){return _0x36e77f(_0x41bac9);},'yuRIF':function(_0x315827,_0x5399b9,_0x3ba38b){return _0x315827(_0x5399b9,_0x3ba38b);}},_0x158319=Buffer[_0x2564dd(0x115)]([0x1f,0x43,0xb6,0x75]),_0xe59f68=Math['max'](0x4,_0x43d416['jRHqi'](uintSize,_0x3beb8b)),_0x48eea0=Buffer['concat']([Buffer[_0x2564dd(0x115)]([ID_TIMESTAMP]),_0x43d416[_0x2564dd(0x104)](writeVint,_0xe59f68),_0x43d416['yuRIF'](writeUint,_0x3beb8b,_0xe59f68)]),_0x120a43=Buffer['concat']([_0x29cc30,_0x48eea0,_0x104d02]),_0x47beb7=writeVint(_0x120a43['length']);return Buffer[_0x2564dd(0xff)]([_0x158319,_0x47beb7,_0x120a43]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x33813c){const _0x18b666=_0x4621,_0x210a7a={'jEGqV':function(_0x4d46d8,_0x2945c5,_0xc4ee2c){return _0x4d46d8(_0x2945c5,_0xc4ee2c);},'DlKMF':function(_0x3d40e4,_0x17216c){return _0x3d40e4+_0x17216c;},'beXqy':function(_0x561cd0,_0x3d1681){return _0x561cd0+_0x3d1681;},'ertCR':function(_0x1f33a2,_0x4b56c7,_0x226e08){return _0x1f33a2(_0x4b56c7,_0x226e08);},'etTtz':function(_0x575f9d,_0xca13d8){return _0x575f9d+_0xca13d8;},'CMedD':function(_0xa65b4f,_0x18e0d5){return _0xa65b4f+_0x18e0d5;},'dbXTc':function(_0x41749e,_0x580b1e){return _0x41749e<_0x580b1e;},'drLgr':function(_0x3a6760,_0x494dd2,_0x4ae0ad){return _0x3a6760(_0x494dd2,_0x4ae0ad);},'WkzVq':function(_0x486262,_0x2b60f8){return _0x486262+_0x2b60f8;},'pROgg':function(_0x5d571f,_0x25278e,_0xf202ba){return _0x5d571f(_0x25278e,_0xf202ba);},'kbePJ':function(_0x4ffdef,_0x3524fb){return _0x4ffdef+_0x3524fb;}},_0x3b8540=Buffer[_0x18b666(0x115)](_0x33813c);let _0x311461=0x0;const [,_0xbafa13]=_0x210a7a['jEGqV'](readId,_0x3b8540,_0x311461),[_0x2e8de1,_0x46c555]=readVint(_0x3b8540,_0x210a7a['DlKMF'](_0x311461,_0xbafa13)),_0x1d1e48=_0x210a7a['beXqy'](_0x210a7a['beXqy'](_0x311461,_0xbafa13),_0x46c555)+_0x2e8de1,[,_0x365ef5]=_0x210a7a[_0x18b666(0xf1)](readId,_0x3b8540,_0x1d1e48),[,_0x4b70ee]=readVint(_0x3b8540,_0x1d1e48+_0x365ef5),_0x12a855=_0x210a7a[_0x18b666(0xe7)](_0x210a7a['etTtz'](_0x1d1e48,_0x365ef5),_0x4b70ee),_0x3dd030=writeUnknownSizeVint(_0x4b70ee);_0x3dd030[_0x18b666(0xf6)](_0x3b8540,_0x210a7a['CMedD'](_0x1d1e48,_0x365ef5));let _0x557ec3=_0x12a855;const _0x5208c3=Math['min'](_0x3b8540[_0x18b666(0xf5)],_0x12a855+0x2710);while(_0x210a7a['dbXTc'](_0x557ec3,_0x5208c3)){const [_0x5358e5,_0x56305a]=_0x210a7a[_0x18b666(0xee)](readId,_0x3b8540,_0x557ec3),[_0x4172e6,_0x2457c8]=_0x210a7a['drLgr'](readVint,_0x3b8540,_0x557ec3+_0x56305a);if(_0x5358e5===ID_CLUSTER)break;if(_0x210a7a[_0x18b666(0xee)](isUnknownSize,_0x4172e6,_0x2457c8))break;if(_0x5358e5===ID_INFO){const _0x5cbfc8=_0x210a7a[_0x18b666(0xe4)](_0x210a7a['WkzVq'](_0x557ec3,_0x56305a),_0x2457c8),_0x55890a=_0x210a7a['WkzVq'](_0x5cbfc8,_0x4172e6),_0x3974cd=[];let _0x983b70=_0x5cbfc8;while(_0x983b70<_0x55890a){const [_0x306f24,_0x5e04e6]=_0x210a7a['pROgg'](readId,_0x3b8540,_0x983b70),[_0xf75fc8,_0x819473]=readVint(_0x3b8540,_0x983b70+_0x5e04e6),_0x3e5289=_0x5e04e6+_0x819473+_0xf75fc8;_0x306f24!==ID_DURATION&&_0x3974cd[_0x18b666(0x10e)](_0x3b8540[_0x18b666(0xe0)](_0x983b70,_0x210a7a['etTtz'](_0x983b70,_0x3e5289))),_0x983b70+=_0x3e5289;}const _0x408064=Buffer[_0x18b666(0xff)](_0x3974cd),_0x11ddfc=Buffer[_0x18b666(0xff)]([_0x3b8540['slice'](_0x557ec3,_0x557ec3+_0x56305a),_0x210a7a[_0x18b666(0xe3)](writeVint,_0x408064[_0x18b666(0xf5)],_0x2457c8)]);return Buffer['concat']([_0x3b8540['slice'](0x0,_0x557ec3),_0x11ddfc,_0x408064,_0x3b8540['slice'](_0x55890a)]);}_0x557ec3+=_0x210a7a[_0x18b666(0x10f)](_0x56305a,_0x2457c8)+_0x4172e6;}return _0x3b8540;}export function stitchWebmFiles(_0x15c04d,_0x1b4e9a){const _0x26981b=_0x4621,_0x25d022={'XZBsp':function(_0x57bbb7,_0x15fd8e){return _0x57bbb7===_0x15fd8e;},'hundk':function(_0x21e400,_0xcd80e5){return _0x21e400(_0xcd80e5);},'tgTVN':function(_0x228d68,_0x8b19a6){return _0x228d68+_0x8b19a6;},'wUmJv':function(_0xd30917,_0x55e131,_0x1623be){return _0xd30917(_0x55e131,_0x1623be);}};if(_0x15c04d['length']<=0x1)return![];const _0x3a8ddb=[];for(const _0x1cb20e of _0x15c04d){const _0xb8a358=readFileSync(_0x1cb20e),_0xac0dc1=parseWebm(_0xb8a358);if(!_0xac0dc1||_0x25d022[_0x26981b(0xef)](_0xac0dc1[_0x26981b(0x105)]['length'],0x0))return![];_0x3a8ddb[_0x26981b(0x10e)](_0xac0dc1);}const _0x312e6f=_0x3a8ddb[0x0],_0x1756e4=_0x25d022[_0x26981b(0x10a)](rebuildHeaderWithoutDuration,_0x312e6f['header']),_0x52c922=[_0x1756e4];let _0x397977=0x0;for(let _0x1cd243=0x0;_0x1cd243<_0x3a8ddb[_0x26981b(0xf5)];_0x1cd243++){const _0x16af68=_0x3a8ddb[_0x1cd243];for(const _0x14dd13 of _0x16af68[_0x26981b(0x105)]){const _0x30e6ec=_0x14dd13[_0x26981b(0xea)]+_0x397977;_0x52c922[_0x26981b(0x10e)](buildCluster(_0x30e6ec,_0x14dd13['bodyBeforeTimestamp'],_0x14dd13[_0x26981b(0xd8)]));}const _0x4b28c6=0x1e;_0x397977+=_0x25d022[_0x26981b(0xde)](_0x16af68['maxTimestampTicks'],_0x4b28c6);}return _0x25d022['wUmJv'](writeFileSync,_0x1b4e9a,Buffer['concat'](_0x52c922)),!![];}if(process['argv'][0x1]?.['endsWith'](_0xc3913b(0x114))||process[_0xc3913b(0x110)][0x1]?.['endsWith']('stitchWebmFiles.js')){const args=process['argv']['slice'](0x2);args['length']<0x3&&(console[_0xc3913b(0x103)]('Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>'),process[_0xc3913b(0x116)](0x1));const output=args[args['length']-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0xc3913b(0xe1)](_0xc3913b(0x118)+inputs['length']+_0xc3913b(0xe2)+output):console['log']('Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.');}
|
|
1
|
+
const _0x37da93=_0x4421;(function(_0x2d666e,_0x89bfbc){const _0x1f0225=_0x4421,_0x1b97cb=_0x2d666e();while(!![]){try{const _0x241108=parseInt(_0x1f0225(0xaf))/0x1*(parseInt(_0x1f0225(0xc3))/0x2)+-parseInt(_0x1f0225(0x91))/0x3+-parseInt(_0x1f0225(0xca))/0x4+parseInt(_0x1f0225(0xba))/0x5*(-parseInt(_0x1f0225(0xc9))/0x6)+-parseInt(_0x1f0225(0xd1))/0x7+-parseInt(_0x1f0225(0xc6))/0x8+parseInt(_0x1f0225(0xa3))/0x9;if(_0x241108===_0x89bfbc)break;else _0x1b97cb['push'](_0x1b97cb['shift']());}catch(_0x249f9c){_0x1b97cb['push'](_0x1b97cb['shift']());}}}(_0x2ebd,0xe8071));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(_0x388806,_0x1763e2){const _0x446330=_0x4421,_0x2d3999={'yelQg':function(_0xf8cec4,_0x2e4f33){return _0xf8cec4>=_0x2e4f33;},'vqMnF':function(_0x2acd55,_0x250079){return _0x2acd55<=_0x250079;},'YbLAr':function(_0x1bf847,_0x57c6b7){return _0x1bf847>_0x57c6b7;},'eolPX':function(_0x14da38,_0x555079){return _0x14da38&_0x555079;},'dGecy':function(_0x42f32b,_0x59e330){return _0x42f32b-_0x59e330;},'HpBlk':function(_0x70d96,_0x171e42){return _0x70d96<_0x171e42;},'iBDrV':function(_0x2cc83b,_0x29509d){return _0x2cc83b*_0x29509d;}};if(_0x2d3999[_0x446330(0xb7)](_0x1763e2,_0x388806['length']))return[0x0,0x0];const _0xb0da8b=_0x388806[_0x1763e2];let _0xa9c9e9=0x1,_0xc7aa2=0x80;while(_0x2d3999['vqMnF'](_0xa9c9e9,0x8)&&!(_0xb0da8b&_0xc7aa2)){_0xa9c9e9++,_0xc7aa2>>=0x1;}if(_0x2d3999['YbLAr'](_0x1763e2+_0xa9c9e9,_0x388806[_0x446330(0xd4)]))return[0x0,0x0];let _0x43f60c=_0x2d3999[_0x446330(0xcd)](_0xb0da8b,_0x2d3999[_0x446330(0x97)](_0xc7aa2,0x1));for(let _0xbf9328=0x1;_0x2d3999[_0x446330(0xbf)](_0xbf9328,_0xa9c9e9);_0xbf9328++){_0x43f60c=_0x2d3999['iBDrV'](_0x43f60c,0x100)+_0x388806[_0x1763e2+_0xbf9328];}return[_0x43f60c,_0xa9c9e9];}function readId(_0x4991a7,_0x2126e9){const _0x89009d=_0x4421,_0x319955={'aBPGA':function(_0x42a4a,_0x5f1c2f){return _0x42a4a>=_0x5f1c2f;},'GmEKs':function(_0x183f3b,_0x1323b3){return _0x183f3b>=_0x1323b3;},'lgxqC':function(_0x2bced1,_0x14adf0){return _0x2bced1*_0x14adf0;},'ldAEF':function(_0x51fe0c,_0x1c499c){return _0x51fe0c+_0x1c499c;}};if(_0x319955['aBPGA'](_0x2126e9,_0x4991a7['length']))return[0x0,0x0];const _0x382307=_0x4991a7[_0x2126e9];let _0x1439f5;if(_0x382307>=0x80)_0x1439f5=0x1;else{if(_0x382307>=0x40)_0x1439f5=0x2;else{if(_0x319955[_0x89009d(0x94)](_0x382307,0x20))_0x1439f5=0x3;else{if(_0x319955['GmEKs'](_0x382307,0x10))_0x1439f5=0x4;else return[_0x382307,0x1];}}}if(_0x2126e9+_0x1439f5>_0x4991a7['length'])return[0x0,0x0];let _0x5da46a=0x0;for(let _0x3f4a41=0x0;_0x3f4a41<_0x1439f5;_0x3f4a41++){_0x5da46a=_0x319955[_0x89009d(0xc0)](_0x5da46a,0x100)+_0x4991a7[_0x319955[_0x89009d(0xab)](_0x2126e9,_0x3f4a41)];}return[_0x5da46a,_0x1439f5];}function readUint(_0x45bf6b,_0x1ed950,_0x5cec17){const _0x12b005={'kOtJU':function(_0x5d1edd,_0x3cb569){return _0x5d1edd<_0x3cb569;},'SVAtn':function(_0x1ee505,_0x9ecc51){return _0x1ee505+_0x9ecc51;}};let _0x4f3a28=0x0;for(let _0x2da161=0x0;_0x12b005['kOtJU'](_0x2da161,_0x5cec17);_0x2da161++){_0x4f3a28=_0x12b005['SVAtn'](_0x4f3a28*0x100,_0x45bf6b[_0x1ed950+_0x2da161]);}return _0x4f3a28;}function isUnknownSize(_0x283ede,_0x373461){const _0x323c78=_0x4421;return _0x283ede===Math[_0x323c78(0xd9)](0x2,0x7*_0x373461)-0x1;}function writeVint(_0x5c2c23,_0x168bca){const _0x534925=_0x4421,_0x53325e={'oaZJy':function(_0x2ee3a4,_0x15adb5){return _0x2ee3a4-_0x15adb5;},'IrQWs':function(_0x1befb4,_0xc7f5d1){return _0x1befb4*_0xc7f5d1;},'CZfvY':function(_0x3ce34a,_0xe9a1ff){return _0x3ce34a&_0xe9a1ff;},'qSZit':function(_0x4af988,_0x309f29){return _0x4af988/_0x309f29;}};let _0x3146da=_0x168bca||0x1;while(_0x53325e[_0x534925(0xcb)](Math['pow'](0x2,_0x53325e['IrQWs'](0x7,_0x3146da)),0x2)<_0x5c2c23)_0x3146da++;const _0x236929=Buffer['alloc'](_0x3146da);for(let _0x39ce69=_0x3146da-0x1;_0x39ce69>=0x0;_0x39ce69--){_0x236929[_0x39ce69]=_0x53325e[_0x534925(0xc4)](_0x5c2c23,0xff),_0x5c2c23=Math[_0x534925(0xb1)](_0x53325e[_0x534925(0x9d)](_0x5c2c23,0x100));}return _0x236929[0x0]|=0x1<<_0x53325e[_0x534925(0xcb)](0x8,_0x3146da),_0x236929;}function writeUint(_0x1e7ee7,_0x2508c1){const _0x34e949=_0x4421,_0x134e4b={'wpYcS':function(_0x466de1,_0x3f72b2){return _0x466de1-_0x3f72b2;},'QKXSt':function(_0x50eddf,_0x362b74){return _0x50eddf&_0x362b74;}},_0x41e214=Buffer['alloc'](_0x2508c1);for(let _0x243fcf=_0x134e4b[_0x34e949(0xc5)](_0x2508c1,0x1);_0x243fcf>=0x0;_0x243fcf--){_0x41e214[_0x243fcf]=_0x134e4b[_0x34e949(0xb8)](_0x1e7ee7,0xff),_0x1e7ee7=Math[_0x34e949(0xb1)](_0x1e7ee7/0x100);}return _0x41e214;}function writeUnknownSizeVint(_0x1ca300){const _0x1fd91d=_0x4421,_0x246790={'jUhVZ':function(_0x2d9158,_0x592dc3){return _0x2d9158>>_0x592dc3;},'TqnVL':function(_0x49ddff,_0x34e29e){return _0x49ddff-_0x34e29e;}},_0x2d866e=Buffer['alloc'](_0x1ca300,0xff);return _0x2d866e[0x0]=_0x246790['jUhVZ'](0xff,_0x246790[_0x1fd91d(0xd5)](_0x1ca300,0x1)),_0x2d866e;}function uintSize(_0x15e6c8){const _0x55ecf8=_0x4421,_0x3cf41d={'BSWOw':function(_0x20e676,_0x425d71){return _0x20e676===_0x425d71;},'yraAw':function(_0x1c9fc1,_0x57836b){return _0x1c9fc1>_0x57836b;},'nZWxs':function(_0x5bef3d,_0x5f4f81){return _0x5bef3d/_0x5f4f81;}};if(_0x3cf41d['BSWOw'](_0x15e6c8,0x0))return 0x1;let _0x3d74e8=0x0,_0x5df8c9=_0x15e6c8;while(_0x3cf41d[_0x55ecf8(0xa2)](_0x5df8c9,0x0)){_0x3d74e8++,_0x5df8c9=Math['floor'](_0x3cf41d[_0x55ecf8(0xa8)](_0x5df8c9,0x100));}return _0x3d74e8;}function findTimestampScale(_0x219809,_0x3bc129){const _0x198a4f=_0x4421,_0x9fa2b4={'tlEqp':function(_0x33328,_0x226a42){return _0x33328+_0x226a42;},'ZvxTE':function(_0x10a6b9,_0x2016af){return _0x10a6b9<_0x2016af;},'IkmfR':function(_0x241daf,_0xf11c61,_0x26887b){return _0x241daf(_0xf11c61,_0x26887b);},'ihAmr':function(_0x2643f4,_0xa177ab){return _0x2643f4+_0xa177ab;},'IiEom':function(_0x19a8af,_0x5f35c0){return _0x19a8af===_0x5f35c0;}};let _0x5f47a8=_0x3bc129;const _0x47e572=Math[_0x198a4f(0xa0)](_0x219809[_0x198a4f(0xd4)],_0x9fa2b4[_0x198a4f(0xb3)](_0x3bc129,0x2710));while(_0x9fa2b4[_0x198a4f(0xcf)](_0x5f47a8,_0x47e572)){const [_0x263796,_0xc68dc4]=_0x9fa2b4[_0x198a4f(0xd2)](readId,_0x219809,_0x5f47a8),[_0x5b7d09,_0x5c405f]=readVint(_0x219809,_0x5f47a8+_0xc68dc4);if(_0x263796===ID_INFO){let _0x307b20=_0x9fa2b4[_0x198a4f(0xb3)](_0x5f47a8,_0xc68dc4)+_0x5c405f;const _0x474d79=_0x307b20+_0x5b7d09;while(_0x307b20<_0x474d79){const [_0x77e6b8,_0x5ae60b]=_0x9fa2b4['IkmfR'](readId,_0x219809,_0x307b20),[_0x265888,_0x5c7537]=readVint(_0x219809,_0x9fa2b4['tlEqp'](_0x307b20,_0x5ae60b));if(_0x77e6b8===ID_TIMESTAMP_SCALE)return readUint(_0x219809,_0x307b20+_0x5ae60b+_0x5c7537,_0x265888);_0x307b20+=_0x9fa2b4[_0x198a4f(0xc1)](_0x5ae60b,_0x5c7537)+_0x265888;}break;}if(_0x9fa2b4['IiEom'](_0x263796,ID_CLUSTER))break;if(isUnknownSize(_0x5b7d09,_0x5c405f))break;_0x5f47a8+=_0x9fa2b4['tlEqp'](_0xc68dc4+_0x5c405f,_0x5b7d09);}return 0xf4240;}function findFirstClusterOffset(_0x86bc55,_0x2c9bf4){const _0xcb6c09=_0x4421,_0x24021b={'MEqYN':function(_0x57952e,_0x8d14f2){return _0x57952e<_0x8d14f2;},'djqwC':function(_0x3f13f6,_0x1c6a5c){return _0x3f13f6===_0x1c6a5c;},'fbIgx':function(_0x1d7b6a,_0x5e65d6,_0x2b4897){return _0x1d7b6a(_0x5e65d6,_0x2b4897);},'OXAjq':function(_0x518844,_0x339ba9){return _0x518844+_0x339ba9;}};let _0x2dcba4=_0x2c9bf4;while(_0x24021b[_0xcb6c09(0xad)](_0x2dcba4,_0x86bc55[_0xcb6c09(0xd4)])){const [_0x27a0f0,_0x1ee8ff]=readId(_0x86bc55,_0x2dcba4);if(_0x24021b[_0xcb6c09(0xae)](_0x27a0f0,ID_CLUSTER))return _0x2dcba4;const [_0x229cf9,_0x388863]=_0x24021b[_0xcb6c09(0x9c)](readVint,_0x86bc55,_0x2dcba4+_0x1ee8ff);if(isUnknownSize(_0x229cf9,_0x388863))return _0x2dcba4;_0x2dcba4+=_0x24021b['OXAjq'](_0x24021b[_0xcb6c09(0xbe)](_0x1ee8ff,_0x388863),_0x229cf9);}return _0x86bc55['length'];}function findClusterEnd(_0x30193a,_0x455b9e,_0xbdc8fd,_0x552515){const _0x429adf=_0x4421,_0x168204={'DjOTO':function(_0x907c68,_0x30b897,_0xd687f9){return _0x907c68(_0x30b897,_0xd687f9);},'NBtbq':function(_0x1f16d2,_0x581533){return _0x1f16d2+_0x581533;},'JZGLC':function(_0x156143,_0xb336e6){return _0x156143<_0xb336e6;},'aIRlk':function(_0x3abd85,_0x549d38){return _0x3abd85-_0x549d38;},'CqcFe':function(_0x2c9ac6,_0xbffad1,_0x14685c){return _0x2c9ac6(_0xbffad1,_0x14685c);}};if(!_0x168204['DjOTO'](isUnknownSize,_0xbdc8fd,_0x552515))return _0x168204[_0x429adf(0xa4)](_0x455b9e,_0xbdc8fd);const _0x302338=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x57319e=_0x455b9e;while(_0x168204['JZGLC'](_0x57319e,_0x168204['aIRlk'](_0x30193a[_0x429adf(0xd4)],0x4))){const [_0x3e5a05,_0x462fef]=_0x168204['CqcFe'](readId,_0x30193a,_0x57319e);if(_0x302338[_0x429adf(0xd6)](_0x3e5a05))return _0x57319e;const [_0x98e65e,_0xd202c4]=_0x168204[_0x429adf(0xbd)](readVint,_0x30193a,_0x57319e+_0x462fef);if(_0x168204[_0x429adf(0xbd)](isUnknownSize,_0x98e65e,_0xd202c4))return _0x30193a['length'];_0x57319e+=_0x462fef+_0xd202c4+_0x98e65e;}return _0x30193a['length'];}function extractClusters(_0x9d3023,_0x4eb8b9){const _0x1ae9e5=_0x4421,_0x42a1c4={'mjoZC':function(_0x552adf,_0x4cd8ee){return _0x552adf<_0x4cd8ee;},'fViyA':function(_0x557926,_0xe69cfb,_0x1692c9){return _0x557926(_0xe69cfb,_0x1692c9);},'vqxUV':function(_0x2f98b7,_0x33ffd7){return _0x2f98b7+_0x33ffd7;},'XlePM':function(_0x159c4f,_0x21f2bd){return _0x159c4f+_0x21f2bd;},'KFhUW':function(_0x729a7f,_0xc9ead5){return _0x729a7f+_0xc9ead5;},'GKaBk':function(_0x24edf5,_0x1060f2,_0x5ba5a4,_0xe71c17){return _0x24edf5(_0x1060f2,_0x5ba5a4,_0xe71c17);},'VGffr':function(_0x451300,_0x1760da){return _0x451300===_0x1760da;},'pKYbT':function(_0x19c9b4,_0xe48e41){return _0x19c9b4+_0xe48e41;},'zjADp':function(_0x12c3ca,_0x5c67e0){return _0x12c3ca<_0x5c67e0;},'fDZCr':function(_0x35ac21,_0x3bb068){return _0x35ac21+_0x3bb068;},'aRUDD':function(_0x38f05f,_0x388e01){return _0x38f05f+_0x388e01;},'SVOzh':function(_0x3f0274,_0x5bcb30){return _0x3f0274>_0x5bcb30;},'OIIiB':function(_0xd3f278,_0x548b49,_0x592318){return _0xd3f278(_0x548b49,_0x592318);},'TEXdF':function(_0x42835f,_0x53d072){return _0x42835f+_0x53d072;},'kYhMX':function(_0x340b96,_0x509441){return _0x340b96+_0x509441;}},_0xb8bf05=[],_0x4ab1d6=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x47fbd3=0x0;while(_0x42a1c4['mjoZC'](_0x47fbd3,_0x9d3023[_0x1ae9e5(0xd4)])){const _0x512cbe=_0x9d3023[_0x1ae9e5(0xb5)](_0x4ab1d6,_0x47fbd3);if(_0x512cbe===-0x1)break;const [_0x3796ef,_0x3dc2b2]=_0x42a1c4[_0x1ae9e5(0xa1)](readId,_0x9d3023,_0x512cbe);if(_0x3796ef!==ID_CLUSTER){_0x47fbd3=_0x42a1c4['vqxUV'](_0x512cbe,0x1);continue;}const [_0x8e881c,_0x8ba308]=readVint(_0x9d3023,_0x42a1c4[_0x1ae9e5(0xd8)](_0x512cbe,_0x3dc2b2)),_0x257e24=_0x42a1c4[_0x1ae9e5(0xa5)](_0x512cbe,_0x3dc2b2)+_0x8ba308,_0xa9dbd8=findClusterEnd(_0x9d3023,_0x257e24,_0x8e881c,_0x8ba308);let _0x58bf69=_0x257e24,_0x1f7eb6=0x0,_0x335dfb=0x2,_0x5f1fd5=![],_0x39f1f8=Buffer['alloc'](0x0),_0x53f1f7=Buffer[_0x1ae9e5(0x92)](0x0);while(_0x42a1c4[_0x1ae9e5(0xbc)](_0x58bf69,_0xa9dbd8)){const [_0x2e1a9c,_0x41cd34]=readId(_0x9d3023,_0x58bf69),[_0x193bb1,_0x3500a3]=_0x42a1c4['fViyA'](readVint,_0x9d3023,_0x42a1c4[_0x1ae9e5(0xc8)](_0x58bf69,_0x41cd34));if(_0x2e1a9c===ID_TIMESTAMP){_0x1f7eb6=_0x42a1c4[_0x1ae9e5(0x90)](readUint,_0x9d3023,_0x58bf69+_0x41cd34+_0x3500a3,_0x193bb1),_0x335dfb=_0x193bb1,_0x5f1fd5=!![],_0x39f1f8=_0x9d3023['slice'](_0x257e24,_0x58bf69);const _0x36fcec=_0x58bf69+_0x41cd34+_0x3500a3+_0x193bb1;_0x53f1f7=_0x9d3023[_0x1ae9e5(0xd0)](_0x36fcec,_0xa9dbd8);break;}if(_0x42a1c4['VGffr'](_0x2e1a9c,ID_CLUSTER))break;if(_0x42a1c4['fViyA'](isUnknownSize,_0x193bb1,_0x3500a3))break;_0x58bf69+=_0x42a1c4['pKYbT'](_0x42a1c4['KFhUW'](_0x41cd34,_0x3500a3),_0x193bb1);}!_0x5f1fd5&&(_0x53f1f7=_0x9d3023[_0x1ae9e5(0xd0)](_0x257e24,_0xa9dbd8));let _0x170152=_0x1f7eb6;_0x58bf69=_0x257e24;while(_0x42a1c4[_0x1ae9e5(0xb0)](_0x58bf69,_0xa9dbd8)){const [_0x207650,_0x6421a]=_0x42a1c4[_0x1ae9e5(0xa1)](readId,_0x9d3023,_0x58bf69),[_0x4bb6bb,_0x2d7bae]=_0x42a1c4['fViyA'](readVint,_0x9d3023,_0x42a1c4[_0x1ae9e5(0xb4)](_0x58bf69,_0x6421a));if(_0x207650===ID_SIMPLE_BLOCK&&_0x4bb6bb>=0x4){const _0x93276e=_0x42a1c4['KFhUW'](_0x58bf69,_0x6421a)+_0x2d7bae,[,_0x390aa2]=_0x42a1c4['fViyA'](readVint,_0x9d3023,_0x93276e),_0x3cc1be=_0x9d3023[_0x1ae9e5(0x98)](_0x42a1c4['aRUDD'](_0x93276e,_0x390aa2)),_0x466f9b=_0x42a1c4[_0x1ae9e5(0xd8)](_0x1f7eb6,_0x3cc1be);if(_0x42a1c4['SVOzh'](_0x466f9b,_0x170152))_0x170152=_0x466f9b;}if(_0x42a1c4['VGffr'](_0x207650,ID_CLUSTER))break;if(_0x42a1c4['OIIiB'](isUnknownSize,_0x4bb6bb,_0x2d7bae))break;_0x58bf69+=_0x42a1c4['TEXdF'](_0x42a1c4[_0x1ae9e5(0xce)](_0x6421a,_0x2d7bae),_0x4bb6bb);}_0xb8bf05['push']({'timestamp':_0x1f7eb6,'maxTicks':_0x170152,'bodyBeforeTimestamp':_0x39f1f8,'bodyAfterTimestamp':_0x53f1f7,'timestampElementSize':_0x335dfb}),_0x47fbd3=_0xa9dbd8;}return _0xb8bf05;}function parseWebm(_0x5c0eed){const _0x1c46b7=_0x4421,_0xec7b9a={'SjzQW':function(_0x6bf80a,_0xc8ffb8,_0x22d58e){return _0x6bf80a(_0xc8ffb8,_0x22d58e);},'EAxVX':function(_0x32e388,_0x932a82){return _0x32e388+_0x932a82;},'jjCcV':function(_0x1e2d00,_0x55cd87,_0xe49b4c){return _0x1e2d00(_0x55cd87,_0xe49b4c);},'MDaaz':function(_0x33ad11,_0x33ec26,_0x45bb7c){return _0x33ad11(_0x33ec26,_0x45bb7c);},'SCiPv':function(_0x404d69,_0x3277eb,_0x1a7ca8){return _0x404d69(_0x3277eb,_0x1a7ca8);},'RdDGp':function(_0x220244,_0x11c64d){return _0x220244>_0x11c64d;}};let _0x385b24=0x0;const [,_0x588c27]=_0xec7b9a['SjzQW'](readId,_0x5c0eed,_0x385b24),[_0x42790d,_0x2f2327]=readVint(_0x5c0eed,_0xec7b9a[_0x1c46b7(0xa6)](_0x385b24,_0x588c27));_0x385b24+=_0xec7b9a['EAxVX'](_0x588c27,_0x2f2327)+_0x42790d;const [_0x51ad17,_0x55936a]=readId(_0x5c0eed,_0x385b24);if(_0x51ad17!==ID_SEGMENT)return null;const [,_0x128fea]=_0xec7b9a[_0x1c46b7(0x93)](readVint,_0x5c0eed,_0x385b24+_0x55936a),_0x3c651f=_0xec7b9a['EAxVX'](_0x385b24+_0x55936a,_0x128fea),_0x5bc13a=_0xec7b9a[_0x1c46b7(0xcc)](findTimestampScale,_0x5c0eed,_0x3c651f),_0x2e5338=findFirstClusterOffset(_0x5c0eed,_0x3c651f),_0x3b18be=_0x5c0eed['slice'](0x0,_0x2e5338),_0xb1203=_0xec7b9a[_0x1c46b7(0x95)](extractClusters,_0x5c0eed,_0x5bc13a);let _0x59d473=0x0;for(const _0x12f4f8 of _0xb1203){if(_0xec7b9a['RdDGp'](_0x12f4f8['maxTicks'],_0x59d473))_0x59d473=_0x12f4f8['maxTicks'];}return{'header':_0x3b18be,'clusters':_0xb1203,'timestampScale':_0x5bc13a,'maxTimestampTicks':_0x59d473};}function _0x4421(_0x2c3d3c,_0x366256){_0x2c3d3c=_0x2c3d3c-0x90;const _0x2ebdec=_0x2ebd();let _0x442155=_0x2ebdec[_0x2c3d3c];return _0x442155;}function _0x2ebd(){const _0x4ef158=['134226rGQjIT','4605516vKTYdA','oaZJy','MDaaz','eolPX','kYhMX','ZvxTE','slice','3098606sYNqOU','IkmfR','exit','length','TqnVL','has','concat','XlePM','pow','GKaBk','3069639Siwysg','alloc','jjCcV','GmEKs','SCiPv','bInyp','dGecy','readInt16BE','argv','from','stitchWebmFiles.ts','fbIgx','qSZit','HWYaH','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','min','fViyA','yraAw','43596207FKxwrZ','NBtbq','vqxUV','EAxVX','mcwHY','nZWxs','max','\x20files\x20->\x20','ldAEF','sPCRg','MEqYN','djqwC','19447SByCjU','zjADp','floor','mGdeD','tlEqp','fDZCr','indexOf','HXpGo','yelQg','QKXSt','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','150nGsRYJ','clusters','mjoZC','DjOTO','OXAjq','HpBlk','lgxqC','ihAmr','push','118tkSNVF','CZfvY','wpYcS','14021048CqPGDT','endsWith','KFhUW'];_0x2ebd=function(){return _0x4ef158;};return _0x2ebd();}function buildCluster(_0x1236bf,_0x5a81f6,_0x5013be){const _0x4bbb5d=_0x4421,_0x303708={'bInyp':function(_0x5872b5,_0x1532ad){return _0x5872b5(_0x1532ad);}},_0xb12176=Buffer[_0x4bbb5d(0x9a)]([0x1f,0x43,0xb6,0x75]),_0x4ecf3a=Math[_0x4bbb5d(0xa9)](0x4,uintSize(_0x1236bf)),_0x3e1877=Buffer[_0x4bbb5d(0xd7)]([Buffer['from']([ID_TIMESTAMP]),_0x303708[_0x4bbb5d(0x96)](writeVint,_0x4ecf3a),writeUint(_0x1236bf,_0x4ecf3a)]),_0x424151=Buffer['concat']([_0x5a81f6,_0x3e1877,_0x5013be]),_0x5d662c=_0x303708[_0x4bbb5d(0x96)](writeVint,_0x424151['length']);return Buffer['concat']([_0xb12176,_0x5d662c,_0x424151]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x4f8883){const _0x216f94=_0x4421,_0x502c4c={'sPCRg':function(_0x22186d,_0x12a3ca,_0x107b1b){return _0x22186d(_0x12a3ca,_0x107b1b);},'HXpGo':function(_0x35a8a2,_0xaa0201){return _0x35a8a2+_0xaa0201;},'EdXTY':function(_0x40410b,_0x1a0862){return _0x40410b<_0x1a0862;},'kUePD':function(_0x47b991,_0x212c90){return _0x47b991===_0x212c90;},'BIRBY':function(_0x46ca65,_0x38afbd){return _0x46ca65+_0x38afbd;},'mrmTP':function(_0x47b732,_0x1a25d5){return _0x47b732+_0x1a25d5;},'qeaVm':function(_0x5cf459,_0x9c9b21){return _0x5cf459<_0x9c9b21;},'HWYaH':function(_0x1ed7ac,_0x3ae67b,_0x252b13){return _0x1ed7ac(_0x3ae67b,_0x252b13);}},_0x82b9d=Buffer[_0x216f94(0x9a)](_0x4f8883);let _0x16886b=0x0;const [,_0x357524]=_0x502c4c[_0x216f94(0xac)](readId,_0x82b9d,_0x16886b),[_0x6b69b6,_0x101006]=readVint(_0x82b9d,_0x16886b+_0x357524),_0x4a8f99=_0x502c4c['HXpGo'](_0x16886b+_0x357524,_0x101006)+_0x6b69b6,[,_0x36c142]=readId(_0x82b9d,_0x4a8f99),[,_0x5d8e9a]=_0x502c4c['sPCRg'](readVint,_0x82b9d,_0x4a8f99+_0x36c142),_0x2ff0b7=_0x502c4c[_0x216f94(0xb6)](_0x4a8f99,_0x36c142)+_0x5d8e9a,_0x33870c=writeUnknownSizeVint(_0x5d8e9a);_0x33870c['copy'](_0x82b9d,_0x4a8f99+_0x36c142);let _0x843bfa=_0x2ff0b7;const _0x5f4565=Math['min'](_0x82b9d['length'],_0x2ff0b7+0x2710);while(_0x502c4c['EdXTY'](_0x843bfa,_0x5f4565)){const [_0xaa1a40,_0x4a6967]=readId(_0x82b9d,_0x843bfa),[_0x1450ee,_0x3ae187]=_0x502c4c['sPCRg'](readVint,_0x82b9d,_0x843bfa+_0x4a6967);if(_0xaa1a40===ID_CLUSTER)break;if(isUnknownSize(_0x1450ee,_0x3ae187))break;if(_0x502c4c['kUePD'](_0xaa1a40,ID_INFO)){const _0x2d710b=_0x502c4c['BIRBY'](_0x502c4c['mrmTP'](_0x843bfa,_0x4a6967),_0x3ae187),_0x1800da=_0x2d710b+_0x1450ee,_0x765d0e=[];let _0x4c9f60=_0x2d710b;while(_0x502c4c['qeaVm'](_0x4c9f60,_0x1800da)){const [_0x5cb4aa,_0x260287]=readId(_0x82b9d,_0x4c9f60),[_0x3aa0cc,_0x3335c5]=readVint(_0x82b9d,_0x4c9f60+_0x260287),_0x53d08a=_0x502c4c['HXpGo'](_0x502c4c['mrmTP'](_0x260287,_0x3335c5),_0x3aa0cc);_0x5cb4aa!==ID_DURATION&&_0x765d0e[_0x216f94(0xc2)](_0x82b9d['slice'](_0x4c9f60,_0x4c9f60+_0x53d08a)),_0x4c9f60+=_0x53d08a;}const _0x774c07=Buffer[_0x216f94(0xd7)](_0x765d0e),_0x105f56=Buffer['concat']([_0x82b9d[_0x216f94(0xd0)](_0x843bfa,_0x843bfa+_0x4a6967),_0x502c4c[_0x216f94(0x9e)](writeVint,_0x774c07[_0x216f94(0xd4)],_0x3ae187)]);return Buffer[_0x216f94(0xd7)]([_0x82b9d[_0x216f94(0xd0)](0x0,_0x843bfa),_0x105f56,_0x774c07,_0x82b9d['slice'](_0x1800da)]);}_0x843bfa+=_0x502c4c['BIRBY'](_0x4a6967,_0x3ae187)+_0x1450ee;}return _0x82b9d;}export function stitchWebmFiles(_0x5acfbd,_0x2fbf9d){const _0x3a4dee=_0x4421,_0x4ec8e6={'mcwHY':function(_0x2d2075,_0x4de158){return _0x2d2075(_0x4de158);},'ywpiA':function(_0x877a28,_0x2efd4f){return _0x877a28===_0x2efd4f;},'mGdeD':function(_0x114fda,_0x4ecd6f){return _0x114fda+_0x4ecd6f;}};if(_0x5acfbd['length']<=0x1)return![];const _0x466612=[];for(const _0x417bd5 of _0x5acfbd){const _0x5859ca=readFileSync(_0x417bd5),_0x31d91c=_0x4ec8e6[_0x3a4dee(0xa7)](parseWebm,_0x5859ca);if(!_0x31d91c||_0x4ec8e6['ywpiA'](_0x31d91c['clusters'][_0x3a4dee(0xd4)],0x0))return![];_0x466612[_0x3a4dee(0xc2)](_0x31d91c);}const _0xd5b7ef=_0x466612[0x0],_0x27437e=rebuildHeaderWithoutDuration(_0xd5b7ef['header']),_0x3da810=[_0x27437e];let _0x1b1313=0x0;for(let _0x5d2f83=0x0;_0x5d2f83<_0x466612[_0x3a4dee(0xd4)];_0x5d2f83++){const _0x53a91b=_0x466612[_0x5d2f83];for(const _0x5d38ed of _0x53a91b[_0x3a4dee(0xbb)]){const _0x5e66cc=_0x5d38ed['timestamp']+_0x1b1313;_0x3da810[_0x3a4dee(0xc2)](buildCluster(_0x5e66cc,_0x5d38ed['bodyBeforeTimestamp'],_0x5d38ed['bodyAfterTimestamp']));}const _0x4d177e=0x1e;_0x1b1313+=_0x4ec8e6[_0x3a4dee(0xb2)](_0x53a91b['maxTimestampTicks'],_0x4d177e);}return writeFileSync(_0x2fbf9d,Buffer['concat'](_0x3da810)),!![];}if(process['argv'][0x1]?.[_0x37da93(0xc7)](_0x37da93(0x9b))||process[_0x37da93(0x99)][0x1]?.[_0x37da93(0xc7)]('stitchWebmFiles.js')){const args=process[_0x37da93(0x99)][_0x37da93(0xd0)](0x2);args[_0x37da93(0xd4)]<0x3&&(console['error'](_0x37da93(0x9f)),process[_0x37da93(0xd3)](0x1));const output=args[args['length']-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console['log']('Stitched\x20'+inputs['length']+_0x37da93(0xaa)+output):console['log'](_0x37da93(0xb9));}
|