@ranger-testing/ranger-cli 3.0.1-alpha.ffffb5b-28 → 3.1.1-alpha.b22d278-38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/deleteProfile.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/mcpBootstrap.js +1 -1
- package/build/commands/migrateProfile.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/cloudProfile.js +1 -1
- package/build/commands/utils/cloudProfileSession.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/legacyWarning.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/novaActCli.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/organizationEnvApi.js +1 -0
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/projectsConfig.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/rangerwrightCli.js +1 -0
- package/build/commands/utils/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/tunnelClient.js +1 -0
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyFeatureNovaCli.js +1 -1
- package/build/commands/verifyFeatureRangerwrightCli.js +1 -0
- package/package.json +4 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x173cec,_0x26d129){const _0x253905=_0xb241,_0x24a288=_0x173cec();while(!![]){try{const _0x217036=-parseInt(_0x253905(0x16a))/0x1+parseInt(_0x253905(0x15c))/0x2+parseInt(_0x253905(0x13e))/0x3*(-parseInt(_0x253905(0x159))/0x4)+parseInt(_0x253905(0x144))/0x5+-parseInt(_0x253905(0x151))/0x6+parseInt(_0x253905(0x150))/0x7+parseInt(_0x253905(0x142))/0x8;if(_0x217036===_0x26d129)break;else _0x24a288['push'](_0x24a288['shift']());}catch(_0x43bbc5){_0x24a288['push'](_0x24a288['shift']());}}}(_0x404c,0xd1d36));import{existsSync}from'fs';import _0x431a4e from'inquirer';import{ApiError,fetchAuthConfig,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive,resolveAuthEnvironmentLocally}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';function _0xb241(_0x3daaf5,_0x33696b){_0x3daaf5=_0x3daaf5-0x13a;const _0x404cad=_0x404c();let _0xb24106=_0x404cad[_0x3daaf5];return _0xb24106;}export async function resolveProfileContext(_0xf57400){const _0x2ee160=_0xb241,_0x572122={'vIFOA':function(_0x5560fd){return _0x5560fd();},'zurEN':function(_0x396bab,_0x4fa071){return _0x396bab===_0x4fa071;},'QnZej':function(_0x5d239c,_0x3ed801){return _0x5d239c+_0x3ed801;},'mOoOP':_0x2ee160(0x148),'uPAql':function(_0x4654ad,_0x11a15e){return _0x4654ad(_0x11a15e);},'GSVhk':function(_0x2a29af,_0x4bf8d0){return _0x2a29af instanceof _0x4bf8d0;},'THbdQ':function(_0x377ccb,_0x5b755a){return _0x377ccb===_0x5b755a;},'VpdlY':_0x2ee160(0x15b),'cRurx':function(_0x53f883,_0x393998){return _0x53f883&&_0x393998;},'Chqgw':'source','fqyns':'Local\x20profile','spPyZ':_0x2ee160(0x155),'FXVLN':_0x2ee160(0x14e),'MhKWL':function(_0x4f7cb2,_0x893913,_0x23765f){return _0x4f7cb2(_0x893913,_0x23765f);},'jGtTK':function(_0x5393b4,_0x338639){return _0x5393b4(_0x338639);},'wHRmk':function(_0x1b8bde,_0x4f6c84){return _0x1b8bde(_0x4f6c84);},'rjLPF':function(_0x275ece,_0x4c81cb){return _0x275ece(_0x4c81cb);},'yQFdV':function(_0x37d9bc,_0x3da52a){return _0x37d9bc(_0x3da52a);},'vPQYg':function(_0x474dd7,_0xf4e332,_0x421569){return _0x474dd7(_0xf4e332,_0x421569);},'UUqdj':function(_0x57399a,_0x1630f1){return _0x57399a(_0x1630f1);},'FZkcz':function(_0x240603,_0x516e87){return _0x240603(_0x516e87);}},_0x21aee2=_0xf57400[_0x2ee160(0x15e)];let _0x190783=_0xf57400['profile']??await _0x572122['vIFOA'](readActiveProfileName),_0x481abe=null;if(!_0x190783&&process[_0x2ee160(0x169)][_0x2ee160(0x141)]){const _0x331f0c=await resolveAdHocProfile();_0x331f0c&&(_0x190783=_0x331f0c['name'],_0x481abe=_0x331f0c['profile']);}if(!_0x190783)try{const _0x1ab501=await listCloudProfiles();if(_0x572122['zurEN'](_0x1ab501['length'],0x1)){const _0x10ead6=_0x1ab501[0x0];_0x190783=_0x10ead6[_0x2ee160(0x14f)],console[_0x2ee160(0x14a)]('\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20'+_0x10ead6['name']),console[_0x2ee160(0x14a)]('\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)');}}catch{}if(!_0x190783)throw new Error(_0x572122[_0x2ee160(0x168)](_0x572122[_0x2ee160(0x168)](_0x2ee160(0x156),_0x2ee160(0x146)),_0x2ee160(0x167))+'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a'+_0x572122[_0x2ee160(0x14c)]);const _0x4aa6dd=getEnvDir(_0x190783),_0x13fd18=existsSync(_0x4aa6dd);let _0x535751=_0x481abe,_0x18ece0=![];if(!_0x535751)try{_0x535751=await _0x572122['uPAql'](fetchCloudProfile,_0x190783);if(!_0x535751)_0x18ece0=!![];}catch(_0x3b3744){_0x572122['GSVhk'](_0x3b3744,ApiError)&&_0x572122[_0x2ee160(0x14b)](_0x3b3744[_0x2ee160(0x15d)],0x194)&&(_0x18ece0=!![]);}if(_0x21aee2&&_0x18ece0&&!_0x13fd18&&!_0x535751)throw new Error(_0x572122['QnZej'](_0x2ee160(0x149)+_0x21aee2+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a'+_0x2ee160(0x145),_0x572122['VpdlY']));if(_0x572122['cRurx'](_0x535751,_0x13fd18)){let _0x52b8a7=!![];if(isInteractive()){const {source:_0x17eef3}=await _0x431a4e[_0x2ee160(0x13c)]([{'type':_0x2ee160(0x13a),'name':_0x572122[_0x2ee160(0x154)],'message':_0x2ee160(0x149)+_0x190783+_0x2ee160(0x165),'choices':[{'name':_0x2ee160(0x143),'value':_0x2ee160(0x14e)},{'name':_0x572122['fqyns'],'value':_0x572122[_0x2ee160(0x166)]}],'default':_0x2ee160(0x14e)}]);_0x52b8a7=_0x17eef3===_0x572122['FXVLN'];}if(!_0x52b8a7)_0x535751=null;}const _0x157e63=readProfileOverrides(process['cwd'](),_0x190783);let _0x42b6a9=null,_0x58b7cf,_0x360ef1,_0x335e47,_0x51752e,_0x47b035=null,_0x2bc40e;const _0x35a8a3=expandOverrides(_0x157e63),_0x10ec4d=readUrlEnvVars();if(_0x535751){_0x42b6a9=_0x535751;const _0x15a52f=_0x535751['settings']??{},_0x11dc10=_0x572122['MhKWL'](mergeCloudProfileSettings,_0x15a52f,_0x157e63??undefined),_0x4ec66f={..._0x535751,'settings':_0x11dc10};_0x47b035={'baseUrl':_0x572122['jGtTK'](expandString,_0x15a52f[_0x2ee160(0x164)]),'startPath':_0x572122['wHRmk'](expandString,_0x15a52f[_0x2ee160(0x140)])};const _0x3d32ff=await fetchAuthConfig(),_0x39c30a=_0x3d32ff?resolveAuthEnvironmentLocally(_0x3d32ff,_0x535751['environmentKey']):null;_0x2bc40e=_0x39c30a?.[_0x2ee160(0x157)]?.[0x0];const _0x1e10f8=resolveProfileUrl({'flagBaseUrl':_0xf57400[_0x2ee160(0x164)],'flagStartPath':_0xf57400['startPath'],'envBaseUrl':_0x10ec4d['envBaseUrl'],'envStartPath':_0x10ec4d['envStartPath'],'projectOverrides':_0x35a8a3,'cloudSettings':_0x47b035,'authEnvironmentDomain':_0x2bc40e}),_0x121d90=process['env'][_0x2ee160(0x153)];if(_0x121d90){if(!_0x572122[_0x2ee160(0x147)](existsSync,_0x121d90))throw new Error('RANGER_SESSION_STATE_PATH='+_0x121d90+'\x20does\x20not\x20exist.');_0x58b7cf=_0x121d90,_0x360ef1=resolveEnvVars(_0x11dc10),_0x335e47=_0x572122[_0x2ee160(0x13f)](Boolean,_0x360ef1['cdpEndpoint']);}else{const _0x133e47=await _0x572122[_0x2ee160(0x160)](resolveCloudProfileSession,_0x4ec66f,{'effectiveBaseUrl':_0x1e10f8['baseUrl']});_0x58b7cf=_0x133e47['authPath'],_0x360ef1=_0x572122[_0x2ee160(0x158)](resolveEnvVars,_0x133e47[_0x2ee160(0x161)]),_0x335e47=Boolean(_0x360ef1['cdpEndpoint']),_0x2bc40e=_0x133e47[_0x2ee160(0x13d)]?.[_0x2ee160(0x157)]?.[0x0];}}else{if(!_0x13fd18)throw new Error(_0x2ee160(0x149)+_0x190783+'\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x190783);const _0x572d1a=await loadSettings(_0x190783);_0x360ef1=_0x572122[_0x2ee160(0x13b)](resolveEnvVars,_0x572d1a),_0x335e47=Boolean(_0x360ef1['cdpEndpoint']),_0x51752e=_0x360ef1[_0x2ee160(0x164)];}const _0x1c5e0c=resolveProfileUrl({'flagBaseUrl':_0xf57400['baseUrl'],'flagStartPath':_0xf57400['startPath'],'envBaseUrl':_0x10ec4d['envBaseUrl'],'envStartPath':_0x10ec4d[_0x2ee160(0x163)],'localSettingsBaseUrl':_0x51752e,'projectOverrides':_0x35a8a3,'cloudSettings':_0x47b035,'authEnvironmentDomain':_0x2bc40e}),_0x46de87=_0x1c5e0c['url']??_0x1c5e0c[_0x2ee160(0x164)];if(!_0x46de87&&!_0x335e47)throw new Error(_0x2ee160(0x14d)+_0x190783+'\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20'+_0x190783+'\x20baseUrl\x20<url>');return{'activeProfile':_0x190783,'resolvedCloudProfile':_0x42b6a9,'cloudAuthPath':_0x58b7cf,'resolvedSettings':_0x360ef1,'isCdpMode':_0x335e47,'url':_0x46de87,'startPath':_0x1c5e0c[_0x2ee160(0x140)]};}function expandString(_0x433d1a){const _0x36d040=_0xb241,_0x2cbcde={'agveh':'string'};if(typeof _0x433d1a!==_0x2cbcde[_0x36d040(0x152)])return _0x433d1a;return resolveEnvVars(_0x433d1a);}function expandOverrides(_0x96d1a2){const _0x24c61b=_0xb241,_0x236a8c={'EkwiA':function(_0x43d047,_0x4ee2e7){return _0x43d047===_0x4ee2e7;},'vuIbV':'string','kZiWv':function(_0x41bf1f,_0x536c55){return _0x41bf1f(_0x536c55);}};if(!_0x96d1a2)return _0x96d1a2;const _0x13ed59={..._0x96d1a2};return _0x236a8c['EkwiA'](typeof _0x13ed59['baseUrl'],_0x236a8c['vuIbV'])&&(_0x13ed59['baseUrl']=resolveEnvVars(_0x13ed59[_0x24c61b(0x164)])),_0x236a8c[_0x24c61b(0x15f)](typeof _0x13ed59[_0x24c61b(0x140)],_0x24c61b(0x15a))&&(_0x13ed59[_0x24c61b(0x140)]=_0x236a8c[_0x24c61b(0x162)](resolveEnvVars,_0x13ed59[_0x24c61b(0x140)])),_0x13ed59;}function _0x404c(){const _0x1a7731=['agveh','RANGER_SESSION_STATE_PATH','Chqgw','local','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','domains','UUqdj','564EJHEGq','string','`ranger\x20profile\x20add`\x20to\x20create\x20one.','2109030NexarW','status','profile','EkwiA','vPQYg','settings','kZiWv','envStartPath','baseUrl','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','spPyZ','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','QnZej','env','1524220LmYhpP','list','FZkcz','prompt','resolvedEnv','28419fdEYoq','yQFdV','startPath','RANGER_TEST_USERNAME','8725688HrHVwy','Cloud\x20profile\x20(recommended)','5889830qEIRBB','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','rjLPF','\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','Profile\x20\x22','log','THbdQ','mOoOP','No\x20baseUrl\x20configured\x20for\x20profile\x20\x22','cloud','name','7816571CsJsDA','4322916MOfRFP'];_0x404c=function(){return _0x1a7731;};return _0x404c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x1ae8(_0x477647,_0x3511c2){_0x477647=_0x477647-0x1bc;const _0xc425d4=_0xc425();let _0x1ae821=_0xc425d4[_0x477647];return _0x1ae821;}(function(_0x37b4f3,_0x16c41e){const _0x276419=_0x1ae8,_0x4af75f=_0x37b4f3();while(!![]){try{const _0x40c4b2=-parseInt(_0x276419(0x1d1))/0x1+parseInt(_0x276419(0x1d3))/0x2*(-parseInt(_0x276419(0x1d0))/0x3)+parseInt(_0x276419(0x1cf))/0x4+parseInt(_0x276419(0x1be))/0x5*(parseInt(_0x276419(0x1c9))/0x6)+-parseInt(_0x276419(0x1ca))/0x7*(-parseInt(_0x276419(0x1ce))/0x8)+-parseInt(_0x276419(0x1c1))/0x9*(-parseInt(_0x276419(0x1d8))/0xa)+parseInt(_0x276419(0x1c3))/0xb*(-parseInt(_0x276419(0x1d7))/0xc);if(_0x40c4b2===_0x16c41e)break;else _0x4af75f['push'](_0x4af75f['shift']());}catch(_0x3caa93){_0x4af75f['push'](_0x4af75f['shift']());}}}(_0xc425,0x6f184));function firstDefined(..._0x1c4376){const _0x27f40d=_0x1ae8,_0x2abcbb={'liWNj':function(_0x462846,_0x56e44a){return _0x462846!==_0x56e44a;}};for(const _0x43a478 of _0x1c4376){if(_0x43a478!==undefined&&_0x2abcbb[_0x27f40d(0x1c2)](_0x43a478,null)&&_0x2abcbb[_0x27f40d(0x1c2)](_0x43a478,''))return _0x43a478;}return undefined;}function normalizeAuthEnvironmentDomain(_0x192384){const _0x13575a=_0x1ae8;if(!_0x192384)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i['test'](_0x192384))return _0x192384;return _0x13575a(0x1c5)+_0x192384;}export function resolveBaseUrl(_0x264d17){const _0x3e9c42=_0x1ae8,_0x2bedf5={'RgXxX':function(_0x218e9d,_0x21f863){return _0x218e9d in _0x21f863;},'FIhNX':_0x3e9c42(0x1c0),'YhANz':function(_0x2eddff,_0x471fa9,_0x4612cf,_0x1a976f,_0xe0c646,_0x5b8504,_0x5ecf6a){return _0x2eddff(_0x471fa9,_0x4612cf,_0x1a976f,_0xe0c646,_0x5b8504,_0x5ecf6a);},'ahcpn':function(_0x754e0b,_0x826e58){return _0x754e0b===_0x826e58;},'JLWYC':function(_0x6e60be,_0x1f27e7){return _0x6e60be(_0x1f27e7);}},_0x18fc47=_0x264d17[_0x3e9c42(0x1c6)],_0x466135=!!_0x18fc47&&_0x2bedf5['RgXxX'](_0x2bedf5[_0x3e9c42(0x1c7)],_0x18fc47),_0x368fc9=_0x18fc47?.['baseUrl'],_0x1c21df=!(_0x466135&&_0x368fc9===null);return _0x2bedf5['YhANz'](firstDefined,_0x264d17[_0x3e9c42(0x1d9)],_0x264d17['envBaseUrl'],_0x264d17['localSettingsBaseUrl'],_0x2bedf5['ahcpn'](typeof _0x368fc9,_0x3e9c42(0x1bf))?_0x368fc9:undefined,_0x1c21df?_0x264d17['cloudSettings']?.['baseUrl']:undefined,_0x1c21df?_0x2bedf5[_0x3e9c42(0x1cc)](normalizeAuthEnvironmentDomain,_0x264d17[_0x3e9c42(0x1bc)]):undefined);}export function resolveStartPath(_0x7fc5aa){const _0x3fdc8d=_0x1ae8,_0x2ddb40={'uxCQO':function(_0x9fc65e,_0x433185){return _0x9fc65e in _0x433185;},'lghJd':function(_0x516363,_0x22496d){return _0x516363===_0x22496d;},'BySEj':function(_0x3cba94,_0x545edc,_0x5c9521,_0x5aec3d,_0x528718){return _0x3cba94(_0x545edc,_0x5c9521,_0x5aec3d,_0x528718);},'tGFFD':_0x3fdc8d(0x1bf)},_0x355ee2=_0x7fc5aa['projectOverrides'],_0x3ab47e=!!_0x355ee2&&_0x2ddb40[_0x3fdc8d(0x1c4)]('startPath',_0x355ee2),_0x329ea4=_0x355ee2?.['startPath'],_0xce3ce7=!(_0x3ab47e&&_0x2ddb40['lghJd'](_0x329ea4,null));return _0x2ddb40[_0x3fdc8d(0x1d4)](firstDefined,_0x7fc5aa[_0x3fdc8d(0x1d2)],_0x7fc5aa[_0x3fdc8d(0x1c8)],_0x2ddb40['lghJd'](typeof _0x329ea4,_0x2ddb40[_0x3fdc8d(0x1cd)])?_0x329ea4:undefined,_0xce3ce7?_0x7fc5aa['cloudSettings']?.['startPath']:undefined);}export function joinBaseAndPath(_0x4c6fbf,_0x2cdf69){const _0xd51ef0=_0x1ae8,_0x4f111f={'MnCTt':function(_0x17c5e1,_0x20fe58){return _0x17c5e1+_0x20fe58;}};if(!_0x4c6fbf)return undefined;if(!_0x2cdf69)return _0x4c6fbf;const _0x42efab=_0x4c6fbf['endsWith']('/')?_0x4c6fbf[_0xd51ef0(0x1cb)](0x0,-0x1):_0x4c6fbf,_0x198038=_0x2cdf69[_0xd51ef0(0x1d5)]('/')?_0x2cdf69:'/'+_0x2cdf69;return _0x4f111f['MnCTt'](_0x42efab,_0x198038);}export function resolveProfileUrl(_0x14a9ca){const _0x190a04=_0x1ae8,_0x15da15={'EsuDl':function(_0x2744b1,_0x351a13){return _0x2744b1(_0x351a13);}},_0x3fd7bc=resolveBaseUrl(_0x14a9ca),_0x8a12c2=_0x15da15[_0x190a04(0x1d6)](resolveStartPath,_0x14a9ca);return{'baseUrl':_0x3fd7bc,'startPath':_0x8a12c2,'url':joinBaseAndPath(_0x3fd7bc,_0x8a12c2)};}function _0xc425(){const _0x3cff8c=['tGFFD','1905528slcoin','2888540ksGnXk','9XYxoFm','27191Ihcbwe','flagStartPath','274642Tnxkdw','BySEj','startsWith','EsuDl','320556vgYEeq','8116180iSaToR','flagBaseUrl','authEnvironmentDomain','RANGER_START_PATH','190ZtDzJD','string','baseUrl','9tpqRwU','liWNj','517NBmDwg','uxCQO','https://','projectOverrides','FIhNX','envStartPath','22038aUuVXX','14FxAjOP','slice','JLWYC'];_0xc425=function(){return _0x3cff8c;};return _0xc425();}export function readUrlEnvVars(_0x256f4f=process['env']){const _0x543733=_0x1ae8;return{'envBaseUrl':_0x256f4f['RANGER_BASE_URL'],'envStartPath':_0x256f4f[_0x543733(0x1bd)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x535052,_0x3cf847){const _0x5c4b9f=_0x3d81,_0x2d5c1c=_0x535052();while(!![]){try{const _0x2d7a11=-parseInt(_0x5c4b9f(0xe7))/0x1*(-parseInt(_0x5c4b9f(0xe5))/0x2)+parseInt(_0x5c4b9f(0xe1))/0x3+-parseInt(_0x5c4b9f(0xde))/0x4+parseInt(_0x5c4b9f(0xdd))/0x5+parseInt(_0x5c4b9f(0xdc))/0x6*(parseInt(_0x5c4b9f(0xe3))/0x7)+-parseInt(_0x5c4b9f(0xe6))/0x8+-parseInt(_0x5c4b9f(0xe0))/0x9;if(_0x2d7a11===_0x3cf847)break;else _0x2d5c1c['push'](_0x2d5c1c['shift']());}catch(_0x6cddc){_0x2d5c1c['push'](_0x2d5c1c['shift']());}}}(_0x312b,0x521e3));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x312b(){const _0x4524f3=['1207390hQCgoj','2195760ixnfjx','1AvSTVe','PsxEM','),\x20retrying\x20in\x20','12jTYGjz','623405xCQmRr','2263188qIEvLG','pow','6151644YurUqq','1746498ynKcfI','label','1923586xxzqNe','maxRetries'];_0x312b=function(){return _0x4524f3;};return _0x312b();}function _0x3d81(_0x22782e,_0x1d43f3){_0x22782e=_0x22782e-0xdc;const _0x312bd9=_0x312b();let _0x3d8163=_0x312bd9[_0x22782e];return _0x3d8163;}export async function withRetry(_0x1525dd,_0xd2328b){const _0xf90193=_0x3d81,_0x1e8128={'NSaeL':function(_0x3cad13){return _0x3cad13();},'PsxEM':function(_0x3cc90b,_0x41c98c){return _0x3cc90b(_0x41c98c);},'fUDYP':function(_0x27cf25,_0x3b537d){return _0x27cf25<_0x3b537d;},'HLNJM':function(_0x3ea44c,_0x406c08){return _0x3ea44c+_0x406c08;}},_0x1980ad=_0xd2328b?.[_0xf90193(0xe4)]??DEFAULT_MAX_RETRIES,_0x27001d=_0xd2328b?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x5adcfb;for(let _0x33476c=0x0;_0x33476c<=_0x1980ad;_0x33476c++){try{return await _0x1e8128['NSaeL'](_0x1525dd);}catch(_0x1f2679){_0x5adcfb=_0x1f2679 instanceof Error?_0x1f2679:new Error(_0x1e8128[_0xf90193(0xe8)](String,_0x1f2679));if(_0x1e8128['fUDYP'](_0x33476c,_0x1980ad)){const _0x6d9c84=_0x27001d*Math[_0xf90193(0xdf)](0x2,_0x33476c);_0xd2328b?.[_0xf90193(0xe2)]&&console['error'](_0xd2328b[_0xf90193(0xe2)]+'\x20failed\x20(attempt\x20'+_0x1e8128['HLNJM'](_0x33476c,0x1)+'/'+(_0x1980ad+0x1)+_0xf90193(0xe9)+_0x6d9c84+'ms...'),await new Promise(_0x1d60c4=>setTimeout(_0x1d60c4,_0x6d9c84));}}}throw _0x5adcfb;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1b9bcb=_0x1e68;(function(_0x1c1759,_0x39d192){const _0x3e5e81=_0x1e68,_0x134d82=_0x1c1759();while(!![]){try{const _0x43a9dc=-parseInt(_0x3e5e81(0xdc))/0x1+parseInt(_0x3e5e81(0xeb))/0x2+-parseInt(_0x3e5e81(0x100))/0x3*(-parseInt(_0x3e5e81(0xdf))/0x4)+-parseInt(_0x3e5e81(0x105))/0x5+parseInt(_0x3e5e81(0xff))/0x6+parseInt(_0x3e5e81(0xf7))/0x7*(parseInt(_0x3e5e81(0x112))/0x8)+-parseInt(_0x3e5e81(0x10f))/0x9;if(_0x43a9dc===_0x39d192)break;else _0x134d82['push'](_0x134d82['shift']());}catch(_0x49b086){_0x134d82['push'](_0x134d82['shift']());}}}(_0x32ae,0xbe536));import*as _0x4c38f2 from'fs';import*as _0x459192 from'path';import*as _0x987a6a from'os';import{execSync}from'child_process';const CACHE_FILE=_0x459192['join'](_0x987a6a['homedir'](),_0x1b9bcb(0x106),_0x1b9bcb(0xfe));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x4cb85b=_0x1b9bcb,_0x52e263={'lTdWu':'utf-8'};try{if(_0x4c38f2[_0x4cb85b(0xf1)](CACHE_FILE)){const _0xa3b180=JSON[_0x4cb85b(0xe0)](_0x4c38f2[_0x4cb85b(0xfd)](CACHE_FILE,_0x52e263['lTdWu']));return{'version':0x3,'sessions':_0xa3b180[_0x4cb85b(0x102)]||{},'branches':_0xa3b180['branches']||{},'lastEnabledSessionClearedAt':_0xa3b180[_0x4cb85b(0x10c)]};}}catch{}return createEmptyCache();}function saveCache(_0x249950){const _0x2d8324=_0x1b9bcb;try{const _0x5c8b65=_0x459192['dirname'](CACHE_FILE);!_0x4c38f2['existsSync'](_0x5c8b65)&&_0x4c38f2[_0x2d8324(0xe8)](_0x5c8b65,{'recursive':!![]}),_0x4c38f2[_0x2d8324(0xdb)](CACHE_FILE,JSON['stringify'](_0x249950,null,0x2));}catch{}}function _0x1e68(_0x420687,_0x4345e0){_0x420687=_0x420687-0xda;const _0x32ae20=_0x32ae();let _0x1e687c=_0x32ae20[_0x420687];return _0x1e687c;}export function getCurrentBranch(){const _0x3d83f=_0x1b9bcb,_0x430a3c={'MgqbZ':_0x3d83f(0xe2),'BZPJY':_0x3d83f(0xf9),'OqOcc':_0x3d83f(0xe7)};try{const _0x57bc33=execSync(_0x430a3c[_0x3d83f(0x10d)],{'encoding':_0x430a3c['BZPJY'],'stdio':[_0x430a3c[_0x3d83f(0xf3)],_0x430a3c['OqOcc'],_0x430a3c['OqOcc']]})[_0x3d83f(0xef)]();if(!_0x57bc33||_0x57bc33===_0x3d83f(0xf2))return null;return _0x57bc33;}catch{return null;}}export function enableBranch(_0x8591e0){const _0x37e758={'igQvb':function(_0x28a46b){return _0x28a46b();}},_0x2a2a71=_0x37e758['igQvb'](loadCache);_0x2a2a71['branches'][_0x8591e0]=!![],saveCache(_0x2a2a71);}export function disableBranch(_0x52d89f){const _0x29398b=_0x1b9bcb,_0x272308={'RkKsw':function(_0xdf2cf){return _0xdf2cf();}},_0x621cc5=_0x272308[_0x29398b(0xee)](loadCache);delete _0x621cc5[_0x29398b(0xe3)][_0x52d89f],saveCache(_0x621cc5);}export function isBranchEnabled(_0x5ca668){const _0x1c36d7=_0x1b9bcb,_0x2b8288=loadCache();return _0x2b8288[_0x1c36d7(0xe3)][_0x5ca668]===!![];}function getOrCreateSession(_0x44f6f9,_0x39a08d){const _0x344073=_0x1b9bcb;return!_0x44f6f9[_0x344073(0x102)][_0x39a08d]&&(_0x44f6f9[_0x344073(0x102)][_0x39a08d]={}),_0x44f6f9[_0x344073(0x102)][_0x39a08d];}export function enableSession(_0x7905bd){const _0x333280=_0x1b9bcb,_0x324ec9={'fasdT':function(_0x57369d,_0x4f9ea4,_0x1237f2){return _0x57369d(_0x4f9ea4,_0x1237f2);},'SsxZb':function(_0xc4ac21,_0x4c88c2){return _0xc4ac21!==_0x4c88c2;},'TYfTp':'main'},_0x455f58=loadCache(),_0x3372cf=_0x324ec9[_0x333280(0xe1)](getOrCreateSession,_0x455f58,_0x7905bd);_0x3372cf['enabled']=!![];const _0x144cad=getCurrentBranch();_0x144cad&&_0x324ec9[_0x333280(0x108)](_0x144cad,_0x324ec9['TYfTp'])&&_0x144cad!=='master'&&(_0x455f58[_0x333280(0xe3)][_0x144cad]=!![],_0x3372cf[_0x333280(0xe5)]=_0x144cad),saveCache(_0x455f58);}export function isSessionEnabled(_0x332d71){const _0x8e6d00=_0x1b9bcb,_0x13ba2e={'pgUal':function(_0x598663){return _0x598663();},'ZVejp':function(_0x305fa4,_0x2ea8f0){return _0x305fa4===_0x2ea8f0;},'ffqrB':_0x8e6d00(0x109),'OkFOL':function(_0x44d030,_0x42d644){return _0x44d030===_0x42d644;},'whcyM':_0x8e6d00(0x107),'XbEMi':function(_0x46d212,_0x2645ff){return _0x46d212===_0x2645ff;},'YFXzH':function(_0x290ed1,_0x2f86f){return _0x290ed1||_0x2f86f;}},_0xb4b65b=loadCache(),_0x503dee=_0x13ba2e[_0x8e6d00(0x10a)](getCurrentBranch);if(!_0x503dee||_0x13ba2e['ZVejp'](_0x503dee,_0x13ba2e[_0x8e6d00(0xed)])||_0x13ba2e['OkFOL'](_0x503dee,_0x13ba2e[_0x8e6d00(0xda)]))return _0xb4b65b['sessions'][_0x332d71]?.['enabled']===!![];const _0x574645=_0x13ba2e[_0x8e6d00(0xe9)](_0xb4b65b['branches'][_0x503dee],!![]),_0x233e0c=_0x13ba2e[_0x8e6d00(0x10b)](_0xb4b65b[_0x8e6d00(0x102)][_0x332d71]?.['enabled'],!![]);return _0x13ba2e[_0x8e6d00(0xf8)](_0x574645,_0x233e0c);}export function disableSession(_0x29305d){const _0xec2d9b=_0x1b9bcb,_0x3aa594={'KxLND':function(_0x503425,_0x4d5123,_0x2b3b1f){return _0x503425(_0x4d5123,_0x2b3b1f);}},_0x46dc51=loadCache(),_0x398412=_0x3aa594['KxLND'](getOrCreateSession,_0x46dc51,_0x29305d);_0x398412[_0xec2d9b(0xea)]=![],saveCache(_0x46dc51);}export function updateBranchTracking(_0x6d0efe){const _0x1055f4=_0x1b9bcb,_0x197a89={'eoqXF':function(_0x24fb52){return _0x24fb52();},'bZijs':function(_0x43bb6f,_0x264f80){return _0x43bb6f===_0x264f80;},'HUpaf':function(_0x21e23a,_0x20c0df){return _0x21e23a(_0x20c0df);}},_0xf8ec23=loadCache(),_0x575844=_0xf8ec23[_0x1055f4(0x102)][_0x6d0efe];if(!_0x575844?.['enabled'])return;const _0x102d1b=_0x197a89[_0x1055f4(0x104)](getCurrentBranch);if(!_0x102d1b||_0x197a89[_0x1055f4(0xf4)](_0x102d1b,_0x1055f4(0x109))||_0x197a89[_0x1055f4(0xf4)](_0x102d1b,_0x1055f4(0x107)))return;_0x575844['currentBranch']!==_0x102d1b&&(_0xf8ec23['branches'][_0x102d1b]=!![],_0x575844['currentBranch']=_0x102d1b,_0x197a89['HUpaf'](saveCache,_0xf8ec23));}export function initBranchTracking(_0x92e2d9){const _0x4c1b69=_0x1b9bcb,_0x3bdfba={'TlSjZ':'main','ndefz':'master','scXkQ':function(_0x50e288,_0x1749c4){return _0x50e288===_0x1749c4;},'shiot':function(_0x51588f,_0x44a7be,_0x4e8ee0){return _0x51588f(_0x44a7be,_0x4e8ee0);}},_0x1a1ef0=loadCache(),_0x50d8b4=getCurrentBranch();if(!_0x50d8b4||_0x50d8b4===_0x3bdfba[_0x4c1b69(0xec)]||_0x50d8b4===_0x3bdfba['ndefz'])return;if(_0x3bdfba[_0x4c1b69(0xfc)](_0x1a1ef0['branches'][_0x50d8b4],!![])){const _0x2f796e=_0x3bdfba['shiot'](getOrCreateSession,_0x1a1ef0,_0x92e2d9);_0x2f796e[_0x4c1b69(0xea)]=!![],_0x2f796e[_0x4c1b69(0xe5)]=_0x50d8b4,saveCache(_0x1a1ef0);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x5e9e55){const _0x189a95=_0x1b9bcb,_0x178f33={'WAKDl':function(_0x2ff3e8,_0xc415c8){return _0x2ff3e8(_0xc415c8);}},_0x396e73=loadCache(),_0x4f6ec2=_0x396e73['sessions'][_0x5e9e55];_0x4f6ec2?.[_0x189a95(0xea)]&&(_0x396e73['lastEnabledSessionClearedAt']=Date[_0x189a95(0x113)](),_0x178f33['WAKDl'](saveCache,_0x396e73));}export function shouldAutoEnableAfterClear(_0x1c7305){const _0x5d3466=_0x1b9bcb,_0x126215={'CYiuT':function(_0x428375,_0x469575){return _0x428375!==_0x469575;},'WduLT':function(_0x19e3ce,_0xc2b42e){return _0x19e3ce-_0xc2b42e;}};if(_0x126215['CYiuT'](_0x1c7305,_0x5d3466(0xdd)))return![];const _0x5ae091=loadCache(),_0x4e4a53=_0x5ae091[_0x5d3466(0x10c)];if(!_0x4e4a53)return![];const _0x5ec3f9=_0x126215[_0x5d3466(0x111)](Date[_0x5d3466(0x113)](),_0x4e4a53);return _0x5ec3f9<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x25b373){const _0xc408c5=_0x1b9bcb,_0x46e51d={'etoVX':function(_0xa7fa34){return _0xa7fa34();},'MkRkO':function(_0x385335,_0x3d714c,_0x520d19){return _0x385335(_0x3d714c,_0x520d19);},'mywId':function(_0x33226d){return _0x33226d();},'osBym':function(_0x415a2b,_0x5cae8e){return _0x415a2b!==_0x5cae8e;},'PGZPL':_0xc408c5(0x107),'UvWLg':function(_0x41df39,_0x55e262){return _0x41df39(_0x55e262);}},_0x53c336=_0x46e51d['etoVX'](loadCache),_0x48a01e=_0x46e51d[_0xc408c5(0xfb)](getOrCreateSession,_0x53c336,_0x25b373);_0x48a01e['enabled']=!![];const _0x3c3a1a=_0x46e51d[_0xc408c5(0xde)](getCurrentBranch);_0x3c3a1a&&_0x3c3a1a!=='main'&&_0x46e51d['osBym'](_0x3c3a1a,_0x46e51d['PGZPL'])&&(_0x48a01e['currentBranch']=_0x3c3a1a),delete _0x53c336[_0xc408c5(0x10c)],_0x46e51d['UvWLg'](saveCache,_0x53c336);}export function registerSession(_0x2fe835,_0x46868b){const _0x64d3c={'cvWeg':function(_0x52640b){return _0x52640b();},'ImoXB':function(_0xbd8faf,_0x175419,_0x3dc5c7){return _0xbd8faf(_0x175419,_0x3dc5c7);}},_0x2a2daf=_0x64d3c['cvWeg'](loadCache),_0xce72b8=_0x64d3c['ImoXB'](getOrCreateSession,_0x2a2daf,_0x2fe835);_0xce72b8['featureId']=_0x46868b,_0xce72b8['registeredAt']=new Date()['toISOString'](),saveCache(_0x2a2daf);}export function getSessionEntry(_0x2e5e58){const _0xdba1ca=_0x1b9bcb,_0x14e8e3={'TmAjv':function(_0x48c3bf){return _0x48c3bf();}},_0x1e7c02=_0x14e8e3[_0xdba1ca(0xe4)](loadCache),_0x202ace=_0x1e7c02[_0xdba1ca(0x102)][_0x2e5e58];if(_0x202ace?.[_0xdba1ca(0xf0)]&&_0x202ace?.[_0xdba1ca(0xfa)])return{'featureId':_0x202ace['featureId'],'registeredAt':_0x202ace[_0xdba1ca(0xfa)]};return null;}export function unregisterSession(_0x15ef0a){const _0x714706=_0x1b9bcb,_0x352b69={'HoMTK':function(_0x7f2c1,_0x2c7d43){return _0x7f2c1(_0x2c7d43);}},_0x518fbd=loadCache(),_0x64f3e9=_0x518fbd[_0x714706(0x102)][_0x15ef0a];_0x64f3e9&&(delete _0x64f3e9[_0x714706(0xf0)],delete _0x64f3e9[_0x714706(0xfa)],_0x352b69[_0x714706(0x110)](saveCache,_0x518fbd));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x1d285d){const _0x543033=_0x1b9bcb,_0x4cbd9a={'lgXsc':function(_0x40d606){return _0x40d606();},'cIKox':function(_0x107e8a,_0x96b24e,_0x2a1133){return _0x107e8a(_0x96b24e,_0x2a1133);},'hujQp':function(_0xae66f2,_0x233702){return _0xae66f2-_0x233702;},'VanfJ':function(_0x4ca77b,_0x3b4556){return _0x4ca77b(_0x3b4556);}},_0x2e4375=_0x4cbd9a['lgXsc'](loadCache),_0x2559fc=_0x4cbd9a['cIKox'](getOrCreateSession,_0x2e4375,_0x1d285d),_0x206f2c=_0x2559fc[_0x543033(0x101)]||0x0,_0x4c76eb=Date['now']();if(_0x4cbd9a[_0x543033(0x103)](_0x4c76eb,_0x206f2c)>=PLAN_REMINDER_INTERVAL_MS)return _0x2559fc[_0x543033(0x101)]=_0x4c76eb,_0x4cbd9a[_0x543033(0xe6)](saveCache,_0x2e4375),!![];return![];}export function shouldShowStopReminder(_0x317998){const _0x43d073=_0x1b9bcb,_0x4c8686={'MFlSN':function(_0x58ae89){return _0x58ae89();},'RqRkz':function(_0x2977bd,_0x558fb3){return _0x2977bd-_0x558fb3;}},_0x26c1f5=_0x4c8686[_0x43d073(0xf5)](loadCache),_0x37a6e0=getOrCreateSession(_0x26c1f5,_0x317998),_0x1baa93=_0x37a6e0[_0x43d073(0x10e)]||0x0,_0x16581e=Date['now']();if(_0x4c8686['RqRkz'](_0x16581e,_0x1baa93)>=STOP_REMINDER_INTERVAL_MS)return _0x37a6e0[_0x43d073(0x10e)]=_0x16581e,saveCache(_0x26c1f5),!![];return![];}export function hasSessionBeenPrompted(_0x2da21d){const _0x37fb12=_0x1b9bcb,_0x530e79={'fvbqJ':function(_0x4a57a0,_0x507136){return _0x4a57a0===_0x507136;}},_0x1b9bec=loadCache();return _0x530e79['fvbqJ'](_0x1b9bec['sessions'][_0x2da21d]?.[_0x37fb12(0xf6)],!![]);}function _0x32ae(){const _0x2f526e=['1809372uGqXXY','3YOHMiz','lastPlanReminderAt','sessions','hujQp','eoqXF','1693735TGZBcE','.claude','master','SsxZb','main','pgUal','XbEMi','lastEnabledSessionClearedAt','MgqbZ','lastStopReminderAt','17973729tpuKqJ','HoMTK','WduLT','4184MYTaHn','now','whcyM','writeFileSync','87217ODHiGQ','clear','mywId','3915380uzEVhn','parse','fasdT','git\x20rev-parse\x20--abbrev-ref\x20HEAD','branches','TmAjv','currentBranch','VanfJ','pipe','mkdirSync','OkFOL','enabled','972108UtSuFz','TlSjZ','ffqrB','RkKsw','trim','featureId','existsSync','HEAD','OqOcc','bZijs','MFlSN','prompted','19222mUcHUs','YFXzH','utf-8','registeredAt','MkRkO','scXkQ','readFileSync','.ranger_cache.json'];_0x32ae=function(){return _0x2f526e;};return _0x32ae();}export function markSessionPrompted(_0x36b8d1){const _0x500e7d=_0x1b9bcb,_0x403ec3=loadCache(),_0x1f4986=getOrCreateSession(_0x403ec3,_0x36b8d1);_0x1f4986[_0x500e7d(0xf6)]=!![],saveCache(_0x403ec3);}export function getCacheFile(){return CACHE_FILE;}
|
|
1
|
+
const _0x4841bd=_0x1f55;(function(_0x10948e,_0xd652a4){const _0x1ee298=_0x1f55,_0x1dba3c=_0x10948e();while(!![]){try{const _0x37a61b=-parseInt(_0x1ee298(0xef))/0x1*(parseInt(_0x1ee298(0xd4))/0x2)+-parseInt(_0x1ee298(0xf5))/0x3+parseInt(_0x1ee298(0xf4))/0x4*(-parseInt(_0x1ee298(0xf1))/0x5)+-parseInt(_0x1ee298(0xe9))/0x6*(-parseInt(_0x1ee298(0xf6))/0x7)+-parseInt(_0x1ee298(0xd9))/0x8+parseInt(_0x1ee298(0xe0))/0x9*(-parseInt(_0x1ee298(0xd1))/0xa)+-parseInt(_0x1ee298(0xcc))/0xb*(-parseInt(_0x1ee298(0xe3))/0xc);if(_0x37a61b===_0xd652a4)break;else _0x1dba3c['push'](_0x1dba3c['shift']());}catch(_0x4dffee){_0x1dba3c['push'](_0x1dba3c['shift']());}}}(_0x261b,0x7ab45));import*as _0x49ca79 from'fs';import*as _0x5eb65e from'path';function _0x1f55(_0x1d83bf,_0x5ce56){_0x1d83bf=_0x1d83bf-0xbf;const _0x261b6a=_0x261b();let _0x1f5590=_0x261b6a[_0x1d83bf];return _0x1f5590;}import*as _0x1fc079 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x5eb65e[_0x4841bd(0xdf)](_0x1fc079['homedir'](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x15b0e2=_0x4841bd,_0x510d41={'yZBbZ':_0x15b0e2(0xe7),'rkmTw':function(_0x612385){return _0x612385();}};try{if(_0x49ca79[_0x15b0e2(0xea)](CACHE_FILE)){const _0x15d7bb=JSON[_0x15b0e2(0xe6)](_0x49ca79[_0x15b0e2(0xc3)](CACHE_FILE,_0x510d41['yZBbZ']));return{'version':0x3,'sessions':_0x15d7bb['sessions']||{},'branches':_0x15d7bb['branches']||{},'lastEnabledSessionClearedAt':_0x15d7bb[_0x15b0e2(0xdd)]};}}catch{}return _0x510d41[_0x15b0e2(0xbf)](createEmptyCache);}function saveCache(_0x117310){const _0x41c292=_0x4841bd;try{const _0x4c48d3=_0x5eb65e['dirname'](CACHE_FILE);!_0x49ca79['existsSync'](_0x4c48d3)&&_0x49ca79[_0x41c292(0xd8)](_0x4c48d3,{'recursive':!![]}),_0x49ca79[_0x41c292(0xd6)](CACHE_FILE,JSON['stringify'](_0x117310,null,0x2));}catch{}}export function getCurrentBranch(){const _0x5ac976=_0x4841bd,_0x32ee12={'WQLJt':_0x5ac976(0xdb),'eIHKf':'pipe','zzFJU':function(_0x1224cd,_0x2ba455){return _0x1224cd===_0x2ba455;},'AvAsM':_0x5ac976(0xd3)};try{const _0x1313b9=execSync(_0x32ee12[_0x5ac976(0xeb)],{'encoding':'utf-8','stdio':[_0x32ee12[_0x5ac976(0xde)],_0x32ee12[_0x5ac976(0xde)],_0x5ac976(0xce)]})[_0x5ac976(0xc5)]();if(!_0x1313b9||_0x32ee12['zzFJU'](_0x1313b9,_0x32ee12['AvAsM']))return null;return _0x1313b9;}catch{return null;}}export function enableBranch(_0x400a6d){const _0x193a4a=_0x4841bd,_0x1fb944={'JkfGN':function(_0x5687cc,_0x384428){return _0x5687cc(_0x384428);}},_0x3d94e6=loadCache();_0x3d94e6['branches'][_0x400a6d]=!![],_0x1fb944[_0x193a4a(0xd0)](saveCache,_0x3d94e6);}export function disableBranch(_0x342ecc){const _0x12f452=loadCache();delete _0x12f452['branches'][_0x342ecc],saveCache(_0x12f452);}export function isBranchEnabled(_0x2f35c4){const _0x4efb74={'NoMhg':function(_0x1f2120){return _0x1f2120();},'vFkyw':function(_0x4bc1ed,_0x4c8e16){return _0x4bc1ed===_0x4c8e16;}},_0x179cf0=_0x4efb74['NoMhg'](loadCache);return _0x4efb74['vFkyw'](_0x179cf0['branches'][_0x2f35c4],!![]);}function getOrCreateSession(_0x22ff48,_0x533858){return!_0x22ff48['sessions'][_0x533858]&&(_0x22ff48['sessions'][_0x533858]={}),_0x22ff48['sessions'][_0x533858];}export function enableSession(_0x938a51){const _0x12ff30=_0x4841bd,_0x46dba2={'ORYuj':function(_0x1d6723,_0x40f5f8){return _0x1d6723!==_0x40f5f8;}},_0x85fb50=loadCache(),_0x4d6401=getOrCreateSession(_0x85fb50,_0x938a51);_0x4d6401[_0x12ff30(0xc2)]=!![];const _0x258d21=getCurrentBranch();_0x258d21&&_0x46dba2['ORYuj'](_0x258d21,'main')&&_0x258d21!==_0x12ff30(0xcb)&&(_0x85fb50[_0x12ff30(0xed)][_0x258d21]=!![],_0x4d6401[_0x12ff30(0xc1)]=_0x258d21),saveCache(_0x85fb50);}export function isSessionEnabled(_0x578364){const _0x348432=_0x4841bd,_0x148889={'kaiHC':function(_0x36a5f4){return _0x36a5f4();},'ZXeyc':function(_0x3646ba,_0x51ab9d){return _0x3646ba===_0x51ab9d;},'SaMcK':_0x348432(0xf0)},_0x1c4115=_0x148889[_0x348432(0xca)](loadCache),_0x175a0a=getCurrentBranch();if(!_0x175a0a||_0x148889[_0x348432(0xc0)](_0x175a0a,_0x148889['SaMcK'])||_0x175a0a==='master')return _0x1c4115[_0x348432(0xda)][_0x578364]?.['enabled']===!![];const _0x40a319=_0x1c4115['branches'][_0x175a0a]===!![],_0x4c89b6=_0x1c4115[_0x348432(0xda)][_0x578364]?.['enabled']===!![];return _0x40a319||_0x4c89b6;}export function disableSession(_0x10be2c){const _0x3907a0=_0x4841bd,_0x3818a9={'rJHNd':function(_0x55e17a,_0x4bc66a,_0xe9b530){return _0x55e17a(_0x4bc66a,_0xe9b530);},'bcvLK':function(_0x5bf7e8,_0x1b220a){return _0x5bf7e8(_0x1b220a);}},_0x46bcc7=loadCache(),_0x335ff2=_0x3818a9[_0x3907a0(0xcd)](getOrCreateSession,_0x46bcc7,_0x10be2c);_0x335ff2['enabled']=![],_0x3818a9['bcvLK'](saveCache,_0x46bcc7);}export function updateBranchTracking(_0x3f95ec){const _0x3857f5=_0x4841bd,_0x5db091={'VNadH':function(_0x592962){return _0x592962();},'yqMuu':function(_0x44d190){return _0x44d190();},'fKltZ':function(_0x21c4e4,_0x5d8991){return _0x21c4e4===_0x5d8991;},'YdPnL':function(_0x48c9e1,_0x50bfad){return _0x48c9e1(_0x50bfad);}},_0xc77bd2=_0x5db091['VNadH'](loadCache),_0x249a0e=_0xc77bd2['sessions'][_0x3f95ec];if(!_0x249a0e?.[_0x3857f5(0xc2)])return;const _0x39d8e9=_0x5db091[_0x3857f5(0xd2)](getCurrentBranch);if(!_0x39d8e9||_0x5db091[_0x3857f5(0xe1)](_0x39d8e9,_0x3857f5(0xf0))||_0x39d8e9==='master')return;_0x249a0e['currentBranch']!==_0x39d8e9&&(_0xc77bd2['branches'][_0x39d8e9]=!![],_0x249a0e[_0x3857f5(0xc1)]=_0x39d8e9,_0x5db091[_0x3857f5(0xf2)](saveCache,_0xc77bd2));}export function initBranchTracking(_0x3f7544){const _0x382cbc=_0x4841bd,_0x5343af={'FGTBh':function(_0x1ae6bf){return _0x1ae6bf();},'DjBAk':function(_0xfef20c,_0x167cb4){return _0xfef20c===_0x167cb4;},'MTyvz':_0x382cbc(0xf0),'GPVyc':function(_0x23d65b,_0xeaf372,_0xd19105){return _0x23d65b(_0xeaf372,_0xd19105);},'fHAzw':function(_0x7b84d6,_0x3e55fe){return _0x7b84d6(_0x3e55fe);}},_0x5dc29e=_0x5343af['FGTBh'](loadCache),_0x21a7a5=_0x5343af['FGTBh'](getCurrentBranch);if(!_0x21a7a5||_0x5343af[_0x382cbc(0xe4)](_0x21a7a5,_0x5343af['MTyvz'])||_0x5343af[_0x382cbc(0xe4)](_0x21a7a5,'master'))return;if(_0x5dc29e['branches'][_0x21a7a5]===!![]){const _0x99a497=_0x5343af[_0x382cbc(0xee)](getOrCreateSession,_0x5dc29e,_0x3f7544);_0x99a497[_0x382cbc(0xc2)]=!![],_0x99a497['currentBranch']=_0x21a7a5,_0x5343af[_0x382cbc(0xc6)](saveCache,_0x5dc29e);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x3e6496){const _0x4bd592=_0x4841bd,_0x1761b4=loadCache(),_0x16daad=_0x1761b4['sessions'][_0x3e6496];_0x16daad?.['enabled']&&(_0x1761b4['lastEnabledSessionClearedAt']=Date[_0x4bd592(0xc4)](),saveCache(_0x1761b4));}export function shouldAutoEnableAfterClear(_0x40a064){const _0x2fb464=_0x4841bd,_0x36acfd={'FKsvL':'clear','xfigr':function(_0x16b7ad){return _0x16b7ad();}};if(_0x40a064!==_0x36acfd[_0x2fb464(0xe8)])return![];const _0x45c2c0=_0x36acfd[_0x2fb464(0xe2)](loadCache),_0x36918f=_0x45c2c0[_0x2fb464(0xdd)];if(!_0x36918f)return![];const _0x1e3166=Date[_0x2fb464(0xc4)]()-_0x36918f;return _0x1e3166<=CLEAR_AUTO_ENABLE_WINDOW_MS;}function _0x261b(){const _0x2cdf78=['7rBtNRW','rkmTw','ZXeyc','currentBranch','enabled','readFileSync','now','trim','fHAzw','arWja','ayXKS','prompted','kaiHC','master','165kWIXQt','rJHNd','pipe','DNStU','JkfGN','5130mipsQk','yqMuu','HEAD','6LdQvdP','RahMG','writeFileSync','featureId','mkdirSync','107312JVRYNX','sessions','git\x20rev-parse\x20--abbrev-ref\x20HEAD','registeredAt','lastEnabledSessionClearedAt','eIHKf','join','5022tJYlLq','fKltZ','xfigr','1336932wVCMuH','DjBAk','hveQx','parse','utf-8','FKsvL','3931428oFTLTu','existsSync','WQLJt','zucvz','branches','GPVyc','137577RafJtx','main','327185eeEtvi','YdPnL','zDVqP','28TflEoX','1960044todXOw'];_0x261b=function(){return _0x2cdf78;};return _0x261b();}export function autoEnableAfterClear(_0x1c3830){const _0x526429=_0x4841bd,_0x11a410={'UAOnJ':function(_0x4fb418){return _0x4fb418();},'zucvz':function(_0x390ae5,_0x62b979){return _0x390ae5!==_0x62b979;},'vmria':'master'},_0x418e6a=loadCache(),_0xe8cbe4=getOrCreateSession(_0x418e6a,_0x1c3830);_0xe8cbe4['enabled']=!![];const _0x26afe6=_0x11a410['UAOnJ'](getCurrentBranch);_0x26afe6&&_0x11a410[_0x526429(0xec)](_0x26afe6,_0x526429(0xf0))&&_0x26afe6!==_0x11a410['vmria']&&(_0xe8cbe4[_0x526429(0xc1)]=_0x26afe6),delete _0x418e6a[_0x526429(0xdd)],saveCache(_0x418e6a);}export function registerSession(_0x482d86,_0x1eaa27){const _0x4b01cd=_0x4841bd,_0x1d8abf={'ayXKS':function(_0x89c4ef){return _0x89c4ef();},'CoErM':function(_0x350cb3,_0x520a31){return _0x350cb3(_0x520a31);}},_0x577338=_0x1d8abf[_0x4b01cd(0xc8)](loadCache),_0x3965f5=getOrCreateSession(_0x577338,_0x482d86);_0x3965f5[_0x4b01cd(0xd7)]=_0x1eaa27,_0x3965f5['registeredAt']=new Date()['toISOString'](),_0x1d8abf['CoErM'](saveCache,_0x577338);}export function getSessionEntry(_0x1c1537){const _0x1d6717=_0x4841bd,_0x31d939=loadCache(),_0x427733=_0x31d939[_0x1d6717(0xda)][_0x1c1537];if(_0x427733?.['featureId']&&_0x427733?.[_0x1d6717(0xdc)])return{'featureId':_0x427733['featureId'],'registeredAt':_0x427733['registeredAt']};return null;}export function unregisterSession(_0x3e9e46){const _0x156375=_0x4841bd,_0x29f3a2=loadCache(),_0x274892=_0x29f3a2[_0x156375(0xda)][_0x3e9e46];_0x274892&&(delete _0x274892[_0x156375(0xd7)],delete _0x274892['registeredAt'],saveCache(_0x29f3a2));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x3c479f){const _0x21cdec=_0x4841bd,_0x862f0e={'zDVqP':function(_0x5c8b29){return _0x5c8b29();},'RahMG':function(_0x47f7f8,_0x334182){return _0x47f7f8(_0x334182);}},_0x38cefe=_0x862f0e[_0x21cdec(0xf3)](loadCache),_0x364a5b=getOrCreateSession(_0x38cefe,_0x3c479f),_0xe42d07=_0x364a5b['lastPlanReminderAt']||0x0,_0x275d6=Date[_0x21cdec(0xc4)]();if(_0x275d6-_0xe42d07>=PLAN_REMINDER_INTERVAL_MS)return _0x364a5b['lastPlanReminderAt']=_0x275d6,_0x862f0e[_0x21cdec(0xd5)](saveCache,_0x38cefe),!![];return![];}export function shouldShowStopReminder(_0x5414cb){const _0x45a664=_0x4841bd,_0x395833={'arWja':function(_0x398107,_0x1eae8d){return _0x398107-_0x1eae8d;},'cwVAh':function(_0x51caa1,_0x362bde){return _0x51caa1(_0x362bde);}},_0x5ecf41=loadCache(),_0x319978=getOrCreateSession(_0x5ecf41,_0x5414cb),_0xa63a81=_0x319978['lastStopReminderAt']||0x0,_0x3391e4=Date['now']();if(_0x395833[_0x45a664(0xc7)](_0x3391e4,_0xa63a81)>=STOP_REMINDER_INTERVAL_MS)return _0x319978['lastStopReminderAt']=_0x3391e4,_0x395833['cwVAh'](saveCache,_0x5ecf41),!![];return![];}export function hasSessionBeenPrompted(_0x50857a){const _0x32a2ff=_0x4841bd,_0x414d45={'hveQx':function(_0x1c98d9){return _0x1c98d9();}},_0xffcedd=_0x414d45[_0x32a2ff(0xe5)](loadCache);return _0xffcedd['sessions'][_0x50857a]?.[_0x32a2ff(0xc9)]===!![];}export function markSessionPrompted(_0x9e4865){const _0x1ab042=_0x4841bd,_0x42506b={'DNStU':function(_0x4b2d73,_0x37aebe){return _0x4b2d73(_0x37aebe);}},_0x3fa3bc=loadCache(),_0x2e0e48=getOrCreateSession(_0x3fa3bc,_0x9e4865);_0x2e0e48['prompted']=!![],_0x42506b[_0x1ab042(0xcf)](saveCache,_0x3fa3bc);}export function getCacheFile(){return CACHE_FILE;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xb0189d=_0x6883;(function(_0x316c2b,_0x2fc3af){const _0x4ee61d=_0x6883,_0x32a651=_0x316c2b();while(!![]){try{const _0x2ccb1c=parseInt(_0x4ee61d(0x145))/0x1+parseInt(_0x4ee61d(0x17d))/0x2*(-parseInt(_0x4ee61d(0x162))/0x3)+parseInt(_0x4ee61d(0x182))/0x4+-parseInt(_0x4ee61d(0x15c))/0x5*(parseInt(_0x4ee61d(0x188))/0x6)+parseInt(_0x4ee61d(0x168))/0x7*(-parseInt(_0x4ee61d(0x158))/0x8)+parseInt(_0x4ee61d(0x199))/0x9*(parseInt(_0x4ee61d(0x170))/0xa)+-parseInt(_0x4ee61d(0x1a8))/0xb;if(_0x2ccb1c===_0x2fc3af)break;else _0x32a651['push'](_0x32a651['shift']());}catch(_0x25ff12){_0x32a651['push'](_0x32a651['shift']());}}}(_0x6544,0xa90d5));function _0x6883(_0x36a39f,_0x101bc5){_0x36a39f=_0x36a39f-0x131;const _0x654453=_0x6544();let _0x688346=_0x654453[_0x36a39f];return _0x688346;}import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';function _0x6544(){const _0x5af247=['RWyLs','\x20is\x20not\x20set','441GEONiT','aUkXc','parse','dQpwW','Failed\x20to\x20decrypt\x20auth\x20state:\x20','XdumZ','--disable-web-security','local','25070hdBSnJ','.json','contextOptions','keys','RjngN','sessions','userAgent','now','umjIs','locations','headless','tempAuthPath','ptRCE','169196PAIubT','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','playwright-cli','yQzFY','-cli','5533088evEUuL','qodoZ','oOttv','location','message','LClQn','37938WsagUW','--disable-features=WebBluetooth','headers','DiUzC','vision','pdf','AwWcL','Nlmex','filter','clipboard-write','length','includes','myEiq','auth.json','storageState','GdeIL','DEAZn','3087ZLiRRQ','nova-user-data','BaJsw','kdayf','code','clipboard-read','legacy','XSbWH','VCHeX','--disable-setuid-sandbox','startsWith','ranger-auth-','auth.json.enc','getuid','isArray','9944088WvWtjs','HBzEQ','fjNWq','repeat','warn','executablePath','znUah','cdpEndpoint','EyaYX','WkUvJ','stringify','string','rscmO','extraHTTPHeaders','tmgMy','ITqBW','entries','sYxgJ','aYktP','path','otkip','storageStatePath','chromium','377098rpRByy','MMMyh','lntss','Default','eaYMD','GqSFy','launchOptions','forWrite','ShmdG','boolean','settings.json','object','pYVKf','keHjx','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','all','browser','CXVCE','Refusing\x20to\x20write\x20profile\x20\x22','1736gVkcgd','czVaC','--allow-insecure-localhost','KhVxz','665EGeYAB','nqUaK','map','hsDKL','allow','XdbvZ','6aRuYzN','args','--allow-running-insecure-content','WmDHM'];_0x6544=function(){return _0x5af247;};return _0x6544();}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(_0x1d5db9,_0x13e8ea){const _0x29e82b=_0x6883,_0x27b5f3={'szrwG':function(_0x31a7e4,_0x1c2287,_0x5c2e26,_0x3d4a44){return _0x31a7e4(_0x1c2287,_0x5c2e26,_0x3d4a44);},'fHJnM':function(_0x2a86d4,_0x142e9c,_0x54f699,_0x39dee5){return _0x2a86d4(_0x142e9c,_0x54f699,_0x39dee5);},'oOttv':function(_0x5c68e1,_0x18fcc5,_0xf980a1){return _0x5c68e1(_0x18fcc5,_0xf980a1);},'UDpSb':function(_0xb740b,_0x4e3928){return _0xb740b!==_0x4e3928;}},_0xec0fe2=_0x27b5f3['szrwG'](join,_0x13e8ea,'ci',_0x1d5db9),_0x45908e=_0x27b5f3['fHJnM'](join,_0x13e8ea,'local',_0x1d5db9),_0x4febbc=_0x27b5f3[_0x29e82b(0x184)](join,_0x13e8ea,_0x1d5db9),_0x5afc6d=_0x27b5f3['oOttv'](join,_0x13e8ea,'local'),_0x36302e=join(_0x13e8ea,'ci');if(existsSync(_0xec0fe2))return _0xec0fe2;if(existsSync(_0x45908e))return _0x45908e;if(existsSync(_0x4febbc)&&(_0x27b5f3['UDpSb'](_0x4febbc,_0x5afc6d)&&_0x4febbc!==_0x36302e?!![]:hasLegacyProfileFiles(_0x4febbc)))return _0x4febbc;return null;}export function getEnvDir(_0x3eaaf3,_0x322eaf={}){const _0x3ccf21=_0x6883,_0x8cdc79={'EyaYX':function(_0x539e28){return _0x539e28();},'FuCVi':function(_0x15c86d,_0x1b9a8c){return _0x15c86d(_0x1b9a8c);},'tLzQQ':function(_0x3d4120,_0x32a5a0){return _0x3d4120!==_0x32a5a0;},'HBzEQ':function(_0x17f763,_0x36b6f6,_0x369bde){return _0x17f763(_0x36b6f6,_0x369bde);}},_0x5f0e33=_0x8cdc79[_0x3ccf21(0x136)](getRangerDir),_0xcfbb92=findEnvInRoot(_0x3eaaf3,_0x5f0e33);if(_0xcfbb92){if(_0x322eaf[_0x3ccf21(0x14c)]&&_0x8cdc79['FuCVi'](isLegacyEnvPath,_0xcfbb92))throw legacyWriteError(_0x3eaaf3,_0xcfbb92);return _0xcfbb92;}const _0x29eb4a=getRangerHomeDir();if(_0x8cdc79['tLzQQ'](_0x29eb4a,_0x5f0e33)){const _0xda832d=_0x8cdc79[_0x3ccf21(0x1a9)](findEnvInRoot,_0x3eaaf3,_0x29eb4a);if(_0xda832d){if(_0x322eaf['forWrite']&&isLegacyEnvPath(_0xda832d))throw legacyWriteError(_0x3eaaf3,_0xda832d);return _0xda832d;}}const _0xfe186f=join(_0x29eb4a,_0x3ccf21(0x16f),_0x3eaaf3);if(_0x322eaf['forWrite'])throw _0x8cdc79[_0x3ccf21(0x1a9)](legacyWriteError,_0x3eaaf3,_0xfe186f);return _0xfe186f;}function isLegacyEnvPath(_0x31362d){const _0x1796df=_0x6883,_0x3ba431={'tYuFn':function(_0x56fe65){return _0x56fe65();},'otkip':function(_0x156a45,_0x28421a){return _0x156a45+_0x28421a;}},_0xa01d8d=_0x3ba431['tYuFn'](getRangerDir),_0x42e266=getRangerHomeDir();for(const _0x402b7b of new Set([_0xa01d8d,_0x42e266])){const _0x573eec=_0x402b7b['endsWith']('/')?_0x402b7b:_0x3ba431[_0x1796df(0x142)](_0x402b7b,'/');if(_0x31362d===_0x402b7b||_0x31362d[_0x1796df(0x1a3)](_0x573eec))return!![];}return![];}function legacyWriteError(_0x6ed9df,_0x382784){const _0x5c4a84=_0x6883,_0x2f868e={'dQpwW':function(_0x58eada,_0x15c93c){return _0x58eada+_0x15c93c;},'sYxgJ':function(_0x2e2af0,_0x51aab0){return _0x2e2af0+_0x51aab0;}};return new Error(_0x2f868e[_0x5c4a84(0x16b)](_0x2f868e[_0x5c4a84(0x13f)](_0x5c4a84(0x157)+_0x6ed9df+'\x22\x20to\x20legacy\x20path\x20'+_0x382784+'.\x0a','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a')+_0x5c4a84(0x17e),_0x5c4a84(0x153)));}export function findExistingEnv(_0x5be178,_0x19c36c){const _0x17d2ff=_0x6883,_0x379871={'KhVxz':function(_0x5a4cf5){return _0x5a4cf5();},'fjNWq':function(_0x58e574,_0xf878c6,_0x163c69){return _0x58e574(_0xf878c6,_0x163c69);},'ShmdG':_0x17d2ff(0x16f),'VCHeX':function(_0xd481e2,_0x283f25,_0x33b7ce){return _0xd481e2(_0x283f25,_0x33b7ce);},'ARQVQ':function(_0x2b4c5c,_0x283127){return _0x2b4c5c===_0x283127;}},_0x2a2cec=_0x19c36c?.['rangerDir'],_0x3ec73c=_0x2a2cec?[_0x2a2cec]:[_0x379871[_0x17d2ff(0x15b)](getRangerDir),getRangerHomeDir()]['filter']((_0x101e74,_0x3bd1a8,_0xe35366)=>_0xe35366['indexOf'](_0x101e74)===_0x3bd1a8),_0x21088f=_0x19c36c?.[_0x17d2ff(0x179)]??['ci',_0x17d2ff(0x16f),'legacy'];for(const _0x39063a of _0x3ec73c){const _0x39d542=_0x379871[_0x17d2ff(0x1aa)](join,_0x39063a,_0x379871[_0x17d2ff(0x14d)]),_0x27d2cb=_0x379871['VCHeX'](join,_0x39063a,'ci'),_0x269c14=[{'location':'ci','path':join(_0x39063a,'ci',_0x5be178)},{'location':'local','path':join(_0x39063a,'local',_0x5be178)},{'location':_0x17d2ff(0x19f),'path':_0x379871[_0x17d2ff(0x1a1)](join,_0x39063a,_0x5be178)}];for(const _0x3d3744 of _0x269c14){if(_0x21088f['includes'](_0x3d3744[_0x17d2ff(0x185)])&&existsSync(_0x3d3744['path'])){if(_0x379871['ARQVQ'](_0x3d3744[_0x17d2ff(0x185)],_0x17d2ff(0x19f))&&(_0x3d3744[_0x17d2ff(0x141)]===_0x39d542||_0x3d3744[_0x17d2ff(0x141)]===_0x27d2cb)&&!hasLegacyProfileFiles(_0x3d3744[_0x17d2ff(0x141)]))continue;return{'path':_0x3d3744[_0x17d2ff(0x141)],'location':_0x3d3744['location']};}}}return null;}function hasLegacyProfileFiles(_0x2facf9){const _0x27b243=_0x6883,_0x21869f={'czVaC':function(_0xa91bba,_0x260963,_0x2a17f2){return _0xa91bba(_0x260963,_0x2a17f2);},'yJtuz':'settings.json','umjIs':function(_0x39e592,_0x22637d){return _0x39e592(_0x22637d);}};return existsSync(_0x21869f[_0x27b243(0x159)](join,_0x2facf9,_0x21869f['yJtuz']))||_0x21869f[_0x27b243(0x178)](existsSync,_0x21869f['czVaC'](join,_0x2facf9,_0x27b243(0x195)))||existsSync(join(_0x2facf9,_0x27b243(0x1a5)));}export function isEnvCi(_0x3cf74a){const _0x467344=_0x6883,_0x30e85b={'WkUvJ':function(_0x367572,_0x26a33f){return _0x367572(_0x26a33f);},'MMMyh':function(_0x29143e,_0x56570e,_0x2784a6,_0x49a5ab){return _0x29143e(_0x56570e,_0x2784a6,_0x49a5ab);},'GqSFy':function(_0x27bcd1){return _0x27bcd1();}};if(_0x30e85b[_0x467344(0x137)](existsSync,_0x30e85b[_0x467344(0x146)](join,getRangerDir(),'ci',_0x3cf74a)))return!![];const _0x21b1ce=_0x30e85b[_0x467344(0x14a)](getRangerHomeDir);if(_0x21b1ce!==getRangerDir()&&existsSync(join(_0x21b1ce,'ci',_0x3cf74a)))return!![];return![];}export async function cleanupTempFiles(_0x5aa612){const _0x5eb5d5=_0x6883,_0xe0f2d7={'yWELh':function(_0x2569b6,_0x4cebef){return _0x2569b6!==_0x4cebef;},'tmgMy':'ENOENT'},_0x110a5c=[_0x5aa612[_0x5eb5d5(0x17b)],_0x5aa612['configPath']]['filter'](Boolean);await Promise[_0x5eb5d5(0x154)](_0x110a5c['map'](_0x401b2e=>unlink(_0x401b2e)['catch'](_0x37cb61=>{const _0x3434da=_0x5eb5d5;_0xe0f2d7['yWELh'](_0x37cb61[_0x3434da(0x19d)],_0xe0f2d7[_0x3434da(0x13c)])&&console[_0x3434da(0x132)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x401b2e+':',_0x37cb61['message']);})));}export function getSettingsPath(_0x3225c5){const _0x5274f1=_0x6883,_0x41a969={'DEAZn':function(_0x43c886,_0x18200c,_0x552b24){return _0x43c886(_0x18200c,_0x552b24);}};return _0x41a969[_0x5274f1(0x198)](join,getEnvDir(_0x3225c5),_0x5274f1(0x14f));}export async function loadSettings(_0x2adb6b){const _0x4e9586=_0x6883,_0x238cbb=getSettingsPath(_0x2adb6b);if(!existsSync(_0x238cbb))return{};try{const _0x1e0f38=await readFile(_0x238cbb,'utf-8');return JSON[_0x4e9586(0x16a)](_0x1e0f38);}catch{return{};}}export async function saveSettings(_0x1029d7,_0x4d5b1a){const _0x585829=_0x6883,_0x1f6cb5={'FIBMv':function(_0x2aa16f,_0x2ba284){return _0x2aa16f(_0x2ba284);},'znUah':function(_0x57012a,_0x36bfbe,_0x52be5a){return _0x57012a(_0x36bfbe,_0x52be5a);},'lntss':function(_0x2e784c,_0x1d1684,_0x78fb1f){return _0x2e784c(_0x1d1684,_0x78fb1f);}},_0x256149=getSettingsPath(_0x1029d7),_0x3b7a4c=dirname(_0x256149);!_0x1f6cb5['FIBMv'](existsSync,_0x3b7a4c)&&await _0x1f6cb5[_0x585829(0x134)](mkdir,_0x3b7a4c,{'recursive':!![]}),await _0x1f6cb5[_0x585829(0x147)](writeFile,_0x256149,JSON[_0x585829(0x138)](_0x4d5b1a,null,0x2));}export function resolveEnvVars(_0xc26996){const _0x2fe10f=_0x6883,_0x11d4b8={'BaJsw':_0x2fe10f(0x139),'GdeIL':function(_0x3f5313,_0x3ee4df){return _0x3f5313===_0x3ee4df;},'CXVCE':'object'};if(typeof _0xc26996===_0x11d4b8[_0x2fe10f(0x19b)])return _0xc26996['replace'](/\$\{(\w+)\}/g,(_0x12e68a,_0x83b334)=>{const _0x4aa572=_0x2fe10f,_0xd14d54=process['env'][_0x83b334];if(_0xd14d54===undefined)throw new Error('Environment\x20variable\x20'+_0x83b334+_0x4aa572(0x167));return _0xd14d54;});if(Array[_0x2fe10f(0x1a7)](_0xc26996))return _0xc26996[_0x2fe10f(0x15e)](resolveEnvVars);if(_0xc26996&&_0x11d4b8[_0x2fe10f(0x197)](typeof _0xc26996,_0x11d4b8[_0x2fe10f(0x156)]))return Object['fromEntries'](Object['entries'](_0xc26996)['map'](([_0x3f6b92,_0x1c92a3])=>[_0x3f6b92,resolveEnvVars(_0x1c92a3)]));return _0xc26996;}const isRecord=_0x4437dd=>typeof _0x4437dd===_0xb0189d(0x150)&&_0x4437dd!==null&&!Array[_0xb0189d(0x1a7)](_0x4437dd),asRecord=_0x2cddd9=>isRecord(_0x2cddd9)?_0x2cddd9:undefined,mergeHeaders=(_0x3863ed,_0x56c92c)=>{const _0x255406=_0xb0189d,_0x31b3f5={'qodoZ':function(_0x118ae1,_0x298c2c){return _0x118ae1??_0x298c2c;}},_0x3fcaaa={..._0x31b3f5[_0x255406(0x183)](_0x3863ed,{}),..._0x56c92c??{}};return Object[_0x255406(0x173)](_0x3fcaaa)[_0x255406(0x192)]?_0x3fcaaa:undefined;},SAFE_MODE_ARGS=[_0xb0189d(0x189)],ALLOW_LOCALHOST_ARGS=[_0xb0189d(0x16e),_0xb0189d(0x164),'--unsafely-treat-insecure-origin-as-secure=http://localhost',_0xb0189d(0x15a)];export function buildBrowserOptionsFromSettings(_0x1123bb,_0x5aaf94={}){const _0x146e2b=_0xb0189d,_0x86df63={'JCCYI':function(_0x3dba21,_0x2a5f96){return _0x3dba21===_0x2a5f96;},'XZjqU':_0x146e2b(0x14e),'nqUaK':function(_0x569a3e,_0x2bd172){return _0x569a3e(_0x2bd172);},'HXcjx':function(_0x47db37,_0x378381,_0xc561ff){return _0x47db37(_0x378381,_0xc561ff);}},_0x10d5f5=asRecord(_0x1123bb[_0x146e2b(0x155)]),_0x551646={...asRecord(_0x10d5f5?.[_0x146e2b(0x14b)])??{}};_0x86df63['JCCYI'](typeof _0x5aaf94[_0x146e2b(0x17a)],_0x86df63['XZjqU'])&&(_0x551646[_0x146e2b(0x17a)]=_0x5aaf94[_0x146e2b(0x17a)]);if(_0x1123bb['safeMode']){const _0x1ac8cf=_0x551646['args']??[],_0x232571=SAFE_MODE_ARGS[_0x146e2b(0x190)](_0x204066=>!_0x1ac8cf[_0x146e2b(0x193)](_0x204066));_0x551646[_0x146e2b(0x163)]=[..._0x1ac8cf,..._0x232571];}if(_0x1123bb['allowInsecureLocalhost']){const _0x4ceb48=_0x551646[_0x146e2b(0x163)]??[],_0x19d87d=ALLOW_LOCALHOST_ARGS[_0x146e2b(0x190)](_0x1dfc33=>!_0x4ceb48[_0x146e2b(0x193)](_0x1dfc33));_0x551646['args']=[..._0x4ceb48,..._0x19d87d];}const _0x5a8a3f={..._0x86df63[_0x146e2b(0x15d)](asRecord,_0x10d5f5?.['contextOptions'])??{}};_0x5a8a3f['ignoreHTTPSErrors']=!![];typeof _0x1123bb['userAgent']===_0x146e2b(0x139)&&(_0x5a8a3f['userAgent']=_0x1123bb['userAgent']);const _0x3c01f4=_0x86df63['HXcjx'](mergeHeaders,_0x86df63[_0x146e2b(0x15d)](asRecord,_0x5a8a3f['extraHTTPHeaders']),_0x86df63[_0x146e2b(0x15d)](asRecord,_0x1123bb['headers']));return _0x3c01f4?_0x5a8a3f[_0x146e2b(0x13b)]=_0x3c01f4:delete _0x5a8a3f[_0x146e2b(0x13b)],_0x5aaf94['storageStatePath']&&(_0x5a8a3f[_0x146e2b(0x196)]=_0x5aaf94[_0x146e2b(0x143)]),{'launchOptions':_0x551646,'contextOptions':_0x5a8a3f};}export async function resolveProfileStorageState(_0x1e3573){const _0x1bba2a={'odJAn':function(_0x1fdb28,_0xa6108d){return _0x1fdb28(_0xa6108d);}};return _0x1bba2a['odJAn'](resolveLocalAuthPath,getEnvDir(_0x1e3573));}async function resolveLocalAuthPath(_0x40b759){const _0x53c4de=_0xb0189d,_0x261305={'Qxdyn':'auth.json.enc','XdbvZ':function(_0x1b1c16,_0x4792c3,_0x47c03d){return _0x1b1c16(_0x4792c3,_0x47c03d);},'hsDKL':_0x53c4de(0x195),'ITqBW':function(_0x481ee0,_0x461099){return _0x481ee0(_0x461099);},'LClQn':function(_0x1acc15){return _0x1acc15();},'rscmO':function(_0x3060c7,_0x29deda){return _0x3060c7(_0x29deda);},'FoOrF':function(_0x8b1a56,_0x35181){return _0x8b1a56 instanceof _0x35181;}},_0x5c2b62=join(_0x40b759,_0x261305['Qxdyn']),_0x3ebea3=_0x261305[_0x53c4de(0x161)](join,_0x40b759,_0x261305[_0x53c4de(0x15f)]);if(_0x261305[_0x53c4de(0x13d)](existsSync,_0x5c2b62))try{const _0x87a5b3=await _0x261305[_0x53c4de(0x187)](getToken);if(!_0x87a5b3)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x1a5b79=await _0x261305[_0x53c4de(0x13a)](readFile,_0x5c2b62),_0x39a4aa=decrypt(_0x1a5b79,_0x87a5b3),_0x534d96=_0x261305['XdbvZ'](join,tmpdir(),_0x53c4de(0x1a4)+Date['now']()+'.json');return await writeFile(_0x534d96,_0x39a4aa),{'storageStatePath':_0x534d96,'tempAuthPath':_0x534d96};}catch(_0x341372){const _0x49da5a=_0x261305['FoOrF'](_0x341372,Error)?_0x341372[_0x53c4de(0x186)]:String(_0x341372);throw new Error(_0x53c4de(0x16c)+_0x49da5a);}if(existsSync(_0x3ebea3))return{'storageStatePath':_0x3ebea3};return{};}export async function buildPlaywrightConfig(_0x291c0f,_0x1390a9,_0x2ea6fc,_0x51a02f,_0x3e8595){const _0x519288=_0xb0189d,_0x43d5ab={'Nlmex':function(_0x483cf9,_0x1e29f9,_0x1f6350,_0x7d6fd2,_0x11c42a,_0x209fa2,_0x597381){return _0x483cf9(_0x1e29f9,_0x1f6350,_0x7d6fd2,_0x11c42a,_0x209fa2,_0x597381);},'DiUzC':function(_0x46c3e9,_0x4ccaf1){return _0x46c3e9(_0x4ccaf1);}};if(_0x3e8595)return buildPlaywrightConfigCore(_0x291c0f,_0x3e8595,_0x1390a9,_0x2ea6fc,_0x51a02f,'stagehand');const {storageStatePath:_0x58fdc4,tempAuthPath:_0x387833}=await resolveLocalAuthPath(getEnvDir(_0x1390a9));try{const _0x5b09dc=await _0x43d5ab[_0x519288(0x18f)](buildPlaywrightConfigCore,_0x291c0f,_0x58fdc4,_0x1390a9,_0x2ea6fc,_0x51a02f,'stagehand');return{..._0x5b09dc,'tempAuthPath':_0x387833};}catch(_0x21fa3f){_0x387833&&await _0x43d5ab[_0x519288(0x18b)](unlink,_0x387833)['catch'](()=>{});throw _0x21fa3f;}}export async function buildPlaywrightConfigCore(_0x29bcde,_0x5b8e19,_0x524e13,_0x1ce596,_0x1d9d25,_0x4acc28='stagehand'){const _0x4e90d8=_0xb0189d,_0x585575={'keHjx':function(_0x1794d2,_0x48b055,_0x40b97d){return _0x1794d2(_0x48b055,_0x40b97d);},'HsFGk':function(_0x132737,_0x289a12){return _0x132737===_0x289a12;},'LtTnv':'--no-sandbox','ThsIj':_0x4e90d8(0x1a2),'uZPQf':_0x4e90d8(0x144),'MBuTJ':function(_0x2e6e45){return _0x2e6e45();},'RWyLs':function(_0x51f9d6,_0x3e437f,_0x56939b,_0x2b5890){return _0x51f9d6(_0x3e437f,_0x56939b,_0x2b5890);},'XdumZ':'file','qdrKH':'core','HRGXJ':_0x4e90d8(0x18c),'kdayf':function(_0x32cd46,_0x9a941b){return _0x32cd46===_0x9a941b;},'LVGpt':function(_0x29bb57,_0x42ab0c){return _0x29bb57===_0x42ab0c;},'yCyfM':'ranger-config','aYktP':function(_0x1c03d7,_0x1dcf88){return _0x1c03d7(_0x1dcf88);},'OzsfH':'playwright-cli','RjngN':function(_0x4babc7,_0x2a297b,_0x2eaebe){return _0x4babc7(_0x2a297b,_0x2eaebe);}},_0x3207ae=_0x1ce596||_0x585575['MBuTJ'](randomUUID),_0x5ace3c=_0x585575[_0x4e90d8(0x166)](join,_0x585575['MBuTJ'](getRangerDir),_0x4e90d8(0x175),_0x3207ae),_0x9f640c=Boolean(_0x29bcde[_0x4e90d8(0x135)]),_0x2d1b9f=_0x9f640c?{'browserName':_0x585575['uZPQf'],'cdpEndpoint':_0x29bcde[_0x4e90d8(0x135)]}:((()=>{const _0x87cd1e=_0x4e90d8,{launchOptions:_0x515e1c,contextOptions:_0x182adf}=_0x585575[_0x87cd1e(0x152)](buildBrowserOptionsFromSettings,_0x29bcde,{'headless':_0x1d9d25?![]:_0x29bcde['headless']??!![],'storageStatePath':_0x5b8e19});if(_0x585575['HsFGk'](process['getuid']?.(),0x0)){const _0x311b29=[_0x585575['LtTnv'],_0x585575['ThsIj']],_0x58cc64=_0x515e1c[_0x87cd1e(0x163)]??[],_0xf3b4c6=_0x311b29['filter'](_0x44c339=>!_0x58cc64['includes'](_0x44c339));_0x515e1c[_0x87cd1e(0x163)]=[..._0x58cc64,..._0xf3b4c6];}return{'isolated':!![],'browserName':_0x585575['uZPQf'],'launchOptions':_0x515e1c,'contextOptions':{..._0x182adf,'permissions':[_0x87cd1e(0x19e),_0x87cd1e(0x191)],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x4daa58=_0x4acc28==='playwright-cli'?{'browser':_0x2d1b9f,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5ace3c,'outputMode':_0x585575[_0x4e90d8(0x16d)],'codegen':'none'}:{'name':_0x524e13,'browser':_0x2d1b9f,'capabilities':[_0x585575['qdrKH'],'tabs','install',_0x4e90d8(0x18d),_0x585575['HRGXJ']],'imageResponses':_0x4e90d8(0x160),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5ace3c};if(!_0x9f640c){const _0x42ab17=_0x4daa58['browser'],_0x1f36bc=_0x42ab17[_0x4e90d8(0x172)];if(_0x585575[_0x4e90d8(0x19c)](_0x1f36bc[_0x4e90d8(0x176)],undefined))delete _0x1f36bc[_0x4e90d8(0x176)];if(_0x585575['LVGpt'](_0x1f36bc[_0x4e90d8(0x196)],undefined))delete _0x1f36bc[_0x4e90d8(0x196)];}const _0xd8452e=join(tmpdir(),_0x585575['yCyfM']);!_0x585575[_0x4e90d8(0x140)](existsSync,_0xd8452e)&&await mkdir(_0xd8452e,{'recursive':!![]});const _0x2ccbd1=_0x585575[_0x4e90d8(0x19c)](_0x4acc28,_0x585575['OzsfH'])?_0x4e90d8(0x181):'',_0x1fd686=join(_0xd8452e,_0x524e13+'-'+Date[_0x4e90d8(0x177)]()+_0x2ccbd1+_0x4e90d8(0x171));return await _0x585575[_0x4e90d8(0x174)](writeFile,_0x1fd686,JSON[_0x4e90d8(0x138)](_0x4daa58,null,0x2)),{'configPath':_0x1fd686,'storageStatePath':_0x5b8e19};}export async function buildPlaywrightCliConfig(_0x56827b,_0x91b530,_0x2b2018,_0x181c51,_0x42589d){const _0x51e994=_0xb0189d,_0x381e68={'pYVKf':function(_0x35ebd5,_0x16b38f,_0x4b0281,_0x3cdead,_0x377a3f,_0x5344b9,_0x5324e8){return _0x35ebd5(_0x16b38f,_0x4b0281,_0x3cdead,_0x377a3f,_0x5344b9,_0x5324e8);},'NQbQG':_0x51e994(0x17f),'yBVkk':function(_0x53e016,_0x229c1f){return _0x53e016(_0x229c1f);}};if(_0x42589d)return _0x381e68[_0x51e994(0x151)](buildPlaywrightConfigCore,_0x56827b,_0x42589d,_0x91b530,_0x2b2018,_0x181c51,_0x381e68['NQbQG']);const {storageStatePath:_0x448de0,tempAuthPath:_0x3b9280}=await resolveLocalAuthPath(getEnvDir(_0x91b530));try{const _0x1d2836=await buildPlaywrightConfigCore(_0x56827b,_0x448de0,_0x91b530,_0x2b2018,_0x181c51,_0x51e994(0x17f));return{..._0x1d2836,'tempAuthPath':_0x3b9280};}catch(_0x42a741){_0x3b9280&&await _0x381e68['yBVkk'](unlink,_0x3b9280)['catch'](()=>{});throw _0x42a741;}}export async function buildNovaActCliConfig(_0x42607e,_0x142bc0,_0x3f1578,_0x2736df,_0x2538d9){const _0x24b471=_0xb0189d,_0x4de547={'ptRCE':function(_0x172889,_0x668ad4){return _0x172889(_0x668ad4);},'SJvmS':_0x24b471(0x148),'PKpRR':function(_0x54bbb6,_0x445118,_0x5bce96){return _0x54bbb6(_0x445118,_0x5bce96);},'yCRgN':function(_0x1093e3,_0x477a29){return _0x1093e3===_0x477a29;},'eaYMD':_0x24b471(0x1a2),'myEiq':'string','AwWcL':function(_0x49fd2c,_0x153dbb){return _0x49fd2c(_0x153dbb);}},{storageStatePath:_0x3a611d,tempAuthPath:_0x53719c}=_0x2538d9?{'storageStatePath':_0x2538d9,'tempAuthPath':undefined}:await resolveLocalAuthPath(_0x4de547['ptRCE'](getEnvDir,_0x142bc0)),_0x1bc2cd=_0x3f1578||randomUUID(),_0x4c25cd=join(getRangerDir(),'sessions',_0x1bc2cd),_0x3f1739=join(_0x4c25cd,_0x24b471(0x19a)),_0x4a6f41=_0x3a611d?join(_0x3f1739,_0x4de547['SJvmS']):undefined,{launchOptions:_0x3171d0,contextOptions:_0x2b8a10}=_0x4de547['PKpRR'](buildBrowserOptionsFromSettings,_0x42607e,{'headless':_0x2736df?![]:_0x42607e[_0x24b471(0x17a)]??!![],'storageStatePath':_0x3a611d});if(_0x4de547['yCRgN'](process[_0x24b471(0x1a6)]?.(),0x0)){const _0x3fe19a=['--no-sandbox',_0x4de547[_0x24b471(0x149)]],_0x58cc67=_0x3171d0['args']??[],_0x35885c=_0x3fe19a['filter'](_0xb46551=>!_0x58cc67[_0x24b471(0x193)](_0xb46551));_0x3171d0['args']=[..._0x58cc67,..._0x35885c];}const _0x51c81b=typeof _0x3171d0[_0x24b471(0x133)]===_0x4de547[_0x24b471(0x194)]?_0x3171d0[_0x24b471(0x133)]:_0x3a611d?chromium[_0x24b471(0x133)]():undefined;return{'storageStatePath':_0x3a611d,'tempAuthPath':_0x53719c,'baseUrl':_0x42607e['baseUrl'],'headless':Boolean(_0x3171d0[_0x24b471(0x17a)]),'userDataDir':_0x3f1739,'browserProfilePath':_0x4a6f41,'executablePath':_0x51c81b,'launchArgs':Array[_0x24b471(0x1a7)](_0x3171d0[_0x24b471(0x163)])?_0x3171d0['args'][_0x24b471(0x190)](_0x481e5f=>typeof _0x481e5f===_0x24b471(0x139)):[],'userAgent':typeof _0x2b8a10['userAgent']===_0x4de547[_0x24b471(0x194)]?_0x2b8a10[_0x24b471(0x176)]:undefined,'extraHTTPHeaders':_0x2b8a10['extraHTTPHeaders'],'allowInsecureLocalhost':_0x4de547[_0x24b471(0x17c)](Boolean,_0x42607e['allowInsecureLocalhost']),'safeMode':Boolean(_0x42607e['safeMode']),'cdpEndpoint':_0x42607e['cdpEndpoint'],'isCdpMode':_0x4de547[_0x24b471(0x18e)](Boolean,_0x42607e[_0x24b471(0x135)])};}export function getNestedValue(_0x36b321,_0x4e801b){const _0x499867={'bSCqO':function(_0x224730,_0x5e8566){return _0x224730===_0x5e8566;},'Whudn':'object'},_0x13e703=parseKeyPath(_0x4e801b);let _0x2aa496=_0x36b321;for(const _0x3f3374 of _0x13e703){if(_0x2aa496===null||_0x499867['bSCqO'](_0x2aa496,undefined)||typeof _0x2aa496!==_0x499867['Whudn'])return undefined;_0x2aa496=_0x2aa496[_0x3f3374];}return _0x2aa496;}export function setNestedValue(_0x561d7a,_0x1e4afc,_0x2b492b){const _0x2f0bd5=_0xb0189d,_0x7680cc={'WmDHM':function(_0x312d9b,_0x2bb114){return _0x312d9b(_0x2bb114);},'aKZoQ':function(_0x5443e6,_0x1fcc63){return _0x5443e6 in _0x1fcc63;},'pAHnu':'object'},_0x4aa443=_0x7680cc[_0x2f0bd5(0x165)](parseKeyPath,_0x1e4afc);let _0x303fef=_0x561d7a;for(let _0x284092=0x0;_0x284092<_0x4aa443['length']-0x1;_0x284092++){const _0x4839c2=_0x4aa443[_0x284092];(!_0x7680cc['aKZoQ'](_0x4839c2,_0x303fef)||typeof _0x303fef[_0x4839c2]!==_0x7680cc['pAHnu'])&&(_0x303fef[_0x4839c2]={}),_0x303fef=_0x303fef[_0x4839c2];}_0x303fef[_0x4aa443[_0x4aa443['length']-0x1]]=_0x2b492b;}export function deleteNestedValue(_0x183f9c,_0x271d88){const _0x48c53=_0xb0189d,_0x18c864={'XSbWH':function(_0x1151e7,_0x4b573f){return _0x1151e7(_0x4b573f);},'aUkXc':function(_0x125eb0,_0x3770d9){return _0x125eb0===_0x3770d9;},'GHOxq':_0x48c53(0x150),'cTEVJ':function(_0x556831,_0x5cc0b9){return _0x556831===_0x5cc0b9;},'bxJIb':function(_0x1bebe6,_0x1afcfa){return _0x1bebe6-_0x1afcfa;},'XOXxm':function(_0x630fb8,_0xa2db34){return _0x630fb8 in _0xa2db34;}},_0x23dc77=_0x18c864[_0x48c53(0x1a0)](parseKeyPath,_0x271d88);let _0x425fd4=_0x183f9c;for(let _0x13f573=0x0;_0x13f573<_0x23dc77[_0x48c53(0x192)]-0x1;_0x13f573++){if(_0x18c864[_0x48c53(0x169)](_0x425fd4,null)||_0x425fd4===undefined||typeof _0x425fd4!==_0x18c864['GHOxq'])return![];_0x425fd4=_0x425fd4[_0x23dc77[_0x13f573]];}if(_0x18c864['aUkXc'](_0x425fd4,null)||_0x18c864['cTEVJ'](_0x425fd4,undefined)||typeof _0x425fd4!==_0x48c53(0x150))return![];const _0x5764a1=_0x23dc77[_0x18c864['bxJIb'](_0x23dc77[_0x48c53(0x192)],0x1)];if(_0x18c864['XOXxm'](_0x5764a1,_0x425fd4))return delete _0x425fd4[_0x5764a1],!![];return![];}function parseKeyPath(_0x7a76d3){const _0x22e6ff=_0xb0189d,_0x2318df={'yQzFY':'setupHeader'},_0xa4ef56=_0x7a76d3['split']('.');return _0xa4ef56[0x0]==='header'&&(_0xa4ef56[0x0]=_0x22e6ff(0x18a)),_0xa4ef56[0x0]===_0x2318df[_0x22e6ff(0x180)]&&(_0xa4ef56[0x0]='setupHeaders'),_0xa4ef56;}export function formatSettings(_0x20ee86,_0x5696d7=0x0){const _0x3c840f=_0xb0189d,_0x314273=[],_0x3de6ef='\x20\x20'[_0x3c840f(0x131)](_0x5696d7);for(const [_0x33f5f3,_0x441346]of Object[_0x3c840f(0x13e)](_0x20ee86)){if(_0x441346===undefined)continue;if(typeof _0x441346===_0x3c840f(0x150)&&_0x441346!==null){_0x314273['push'](''+_0x3de6ef+_0x33f5f3+':');for(const [_0x2a896f,_0x4b2a11]of Object[_0x3c840f(0x13e)](_0x441346)){_0x314273['push'](_0x3de6ef+'\x20\x20'+_0x2a896f+':\x20'+_0x4b2a11);}}else _0x314273['push'](''+_0x3de6ef+_0x33f5f3+':\x20'+_0x441346);}return _0x314273['join']('\x0a');}
|
|
1
|
+
const _0x5ebd86=_0x38c9;(function(_0x5ccb95,_0x7363ae){const _0x2e030d=_0x38c9,_0x5a758c=_0x5ccb95();while(!![]){try{const _0x1c713c=parseInt(_0x2e030d(0x216))/0x1*(parseInt(_0x2e030d(0x207))/0x2)+-parseInt(_0x2e030d(0x215))/0x3+parseInt(_0x2e030d(0x201))/0x4+-parseInt(_0x2e030d(0x1b6))/0x5+-parseInt(_0x2e030d(0x1d4))/0x6*(parseInt(_0x2e030d(0x230))/0x7)+parseInt(_0x2e030d(0x214))/0x8*(-parseInt(_0x2e030d(0x1c2))/0x9)+-parseInt(_0x2e030d(0x22a))/0xa*(-parseInt(_0x2e030d(0x209))/0xb);if(_0x1c713c===_0x7363ae)break;else _0x5a758c['push'](_0x5a758c['shift']());}catch(_0x4b8100){_0x5a758c['push'](_0x5a758c['shift']());}}}(_0x167e,0xa75e2));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(_0x11d910,_0x389d06){const _0x1b2924=_0x38c9,_0x3c0893={'egSJz':function(_0x591a5d,_0x2a71b5,_0x280091,_0x5ceabb){return _0x591a5d(_0x2a71b5,_0x280091,_0x5ceabb);},'nlmuA':_0x1b2924(0x20c),'dFtRu':function(_0x15ccc4,_0x3b8459,_0x83005){return _0x15ccc4(_0x3b8459,_0x83005);},'SgcGK':function(_0x4aefb4,_0x43e79d){return _0x4aefb4(_0x43e79d);},'JvRto':function(_0x1c44cc,_0x3d0312){return _0x1c44cc(_0x3d0312);},'tXsyZ':function(_0x266860,_0x50bc9d){return _0x266860!==_0x50bc9d;}},_0x5f0cd5=join(_0x389d06,'ci',_0x11d910),_0x251814=_0x3c0893[_0x1b2924(0x1e8)](join,_0x389d06,_0x3c0893[_0x1b2924(0x1ef)],_0x11d910),_0x2a42f9=_0x3c0893[_0x1b2924(0x1f1)](join,_0x389d06,_0x11d910),_0x2e995a=join(_0x389d06,'local'),_0x1cb43b=_0x3c0893['dFtRu'](join,_0x389d06,'ci');if(existsSync(_0x5f0cd5))return _0x5f0cd5;if(_0x3c0893['SgcGK'](existsSync,_0x251814))return _0x251814;if(_0x3c0893[_0x1b2924(0x205)](existsSync,_0x2a42f9)&&(_0x2a42f9!==_0x2e995a&&_0x3c0893[_0x1b2924(0x1dd)](_0x2a42f9,_0x1cb43b)?!![]:_0x3c0893['JvRto'](hasLegacyProfileFiles,_0x2a42f9)))return _0x2a42f9;return null;}export function getEnvDir(_0xe83d48,_0x408ec5={}){const _0x21e947=_0x38c9,_0x4a949d={'XkPKp':function(_0x55fc70,_0x5d42d8,_0x355b0a){return _0x55fc70(_0x5d42d8,_0x355b0a);},'ZQbCp':function(_0x59cf29,_0x452e35){return _0x59cf29(_0x452e35);},'Daljm':function(_0x4932ec,_0x2313f8,_0x17bb0a){return _0x4932ec(_0x2313f8,_0x17bb0a);},'wdNWz':function(_0x30ced6,_0x3a15d6,_0x1436b8){return _0x30ced6(_0x3a15d6,_0x1436b8);}},_0x1c38f5=getRangerDir(),_0x32a98c=_0x4a949d['XkPKp'](findEnvInRoot,_0xe83d48,_0x1c38f5);if(_0x32a98c){if(_0x408ec5['forWrite']&&_0x4a949d['ZQbCp'](isLegacyEnvPath,_0x32a98c))throw legacyWriteError(_0xe83d48,_0x32a98c);return _0x32a98c;}const _0xf93737=getRangerHomeDir();if(_0xf93737!==_0x1c38f5){const _0x3ebfa6=_0x4a949d['Daljm'](findEnvInRoot,_0xe83d48,_0xf93737);if(_0x3ebfa6){if(_0x408ec5['forWrite']&&isLegacyEnvPath(_0x3ebfa6))throw _0x4a949d['XkPKp'](legacyWriteError,_0xe83d48,_0x3ebfa6);return _0x3ebfa6;}}const _0x20be90=join(_0xf93737,'local',_0xe83d48);if(_0x408ec5['forWrite'])throw _0x4a949d[_0x21e947(0x1d5)](legacyWriteError,_0xe83d48,_0x20be90);return _0x20be90;}function isLegacyEnvPath(_0x517029){const _0x2cde70=_0x38c9,_0x405144={'MQKXI':function(_0x2eb190){return _0x2eb190();}},_0x4f6788=_0x405144['MQKXI'](getRangerDir),_0x2e3ea6=_0x405144[_0x2cde70(0x1e6)](getRangerHomeDir);for(const _0x5ef5b1 of new Set([_0x4f6788,_0x2e3ea6])){const _0x29d214=_0x5ef5b1['endsWith']('/')?_0x5ef5b1:_0x5ef5b1+'/';if(_0x517029===_0x5ef5b1||_0x517029[_0x2cde70(0x1a9)](_0x29d214))return!![];}return![];}function legacyWriteError(_0x10d2b1,_0x4a85dd){const _0x4610cf=_0x38c9,_0x762c72={'nBPLN':function(_0x562f30,_0x4b9abb){return _0x562f30+_0x4b9abb;}};return new Error(_0x762c72[_0x4610cf(0x1e4)]('Refusing\x20to\x20write\x20profile\x20\x22'+_0x10d2b1+'\x22\x20to\x20legacy\x20path\x20'+_0x4a85dd+'.\x0a','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a')+_0x4610cf(0x232)+'See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.');}export function findExistingEnv(_0x396f6d,_0x40c81b){const _0x30fdc3=_0x38c9,_0x43268e={'JWBsd':'local','LARHl':function(_0x20870a,_0x19affb,_0x125020,_0x3537a4){return _0x20870a(_0x19affb,_0x125020,_0x3537a4);},'GmNOM':function(_0x51d49d,_0x277fac){return _0x51d49d(_0x277fac);},'VLuNc':function(_0x38dc11,_0x17b54a){return _0x38dc11===_0x17b54a;}},_0x5e4a21=_0x40c81b?.['rangerDir'],_0x493c89=_0x5e4a21?[_0x5e4a21]:[getRangerDir(),getRangerHomeDir()][_0x30fdc3(0x1c4)]((_0x68df4c,_0x152666,_0x5aa67c)=>_0x5aa67c[_0x30fdc3(0x1cd)](_0x68df4c)===_0x152666),_0x2a25fd=_0x40c81b?.['locations']??['ci','local','legacy'];for(const _0x52069f of _0x493c89){const _0x22feaf=join(_0x52069f,_0x43268e['JWBsd']),_0x160654=join(_0x52069f,'ci'),_0x467c81=[{'location':'ci','path':_0x43268e['LARHl'](join,_0x52069f,'ci',_0x396f6d)},{'location':'local','path':_0x43268e['LARHl'](join,_0x52069f,_0x30fdc3(0x20c),_0x396f6d)},{'location':'legacy','path':join(_0x52069f,_0x396f6d)}];for(const _0x1db298 of _0x467c81){if(_0x2a25fd['includes'](_0x1db298['location'])&&_0x43268e[_0x30fdc3(0x1bb)](existsSync,_0x1db298[_0x30fdc3(0x1f2)])){if(_0x43268e[_0x30fdc3(0x1e5)](_0x1db298[_0x30fdc3(0x1c7)],_0x30fdc3(0x1d9))&&(_0x1db298[_0x30fdc3(0x1f2)]===_0x22feaf||_0x1db298[_0x30fdc3(0x1f2)]===_0x160654)&&!hasLegacyProfileFiles(_0x1db298[_0x30fdc3(0x1f2)]))continue;return{'path':_0x1db298['path'],'location':_0x1db298['location']};}}}return null;}function hasLegacyProfileFiles(_0xfee4a8){const _0x59796a=_0x38c9,_0x164a1b={'towsN':function(_0x21fc78,_0x478859){return _0x21fc78(_0x478859);},'oIUJl':function(_0x8529b9,_0x16e1c4,_0x5ca69a){return _0x8529b9(_0x16e1c4,_0x5ca69a);},'fxLqq':'settings.json','LcrTD':'auth.json.enc'};return _0x164a1b[_0x59796a(0x21c)](existsSync,_0x164a1b[_0x59796a(0x204)](join,_0xfee4a8,_0x164a1b[_0x59796a(0x1b4)]))||_0x164a1b['towsN'](existsSync,join(_0xfee4a8,'auth.json'))||existsSync(join(_0xfee4a8,_0x164a1b[_0x59796a(0x1fe)]));}export function isEnvCi(_0x1fd21f){const _0x55d908=_0x38c9,_0x560cd8={'GhYPw':function(_0x456251,_0x29a72f){return _0x456251(_0x29a72f);},'YjxKR':function(_0x611ea9,_0x1ae73a,_0x5ed145,_0x13f086){return _0x611ea9(_0x1ae73a,_0x5ed145,_0x13f086);},'IIQKF':function(_0x9b01f4){return _0x9b01f4();},'yJfyd':function(_0x46d196){return _0x46d196();}};if(_0x560cd8['GhYPw'](existsSync,_0x560cd8[_0x55d908(0x1ed)](join,_0x560cd8[_0x55d908(0x1ba)](getRangerDir),'ci',_0x1fd21f)))return!![];const _0x3ea716=_0x560cd8[_0x55d908(0x1f8)](getRangerHomeDir);if(_0x3ea716!==_0x560cd8['IIQKF'](getRangerDir)&&existsSync(join(_0x3ea716,'ci',_0x1fd21f)))return!![];return![];}export async function cleanupTempFiles(_0x25ad70){const _0xfb3f70=_0x38c9,_0x46f6a9={'DnRiq':'ENOENT'},_0x16b01f=[_0x25ad70['tempAuthPath'],_0x25ad70[_0xfb3f70(0x20e)]]['filter'](Boolean);await Promise[_0xfb3f70(0x1c6)](_0x16b01f[_0xfb3f70(0x1e9)](_0x377d04=>unlink(_0x377d04)[_0xfb3f70(0x1f3)](_0x2d2ba3=>{const _0x4af945=_0xfb3f70;_0x2d2ba3['code']!==_0x46f6a9['DnRiq']&&console[_0x4af945(0x1da)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x377d04+':',_0x2d2ba3[_0x4af945(0x1b8)]);})));}export function getSettingsPath(_0x1bc0f9){const _0x39cf0d=_0x38c9,_0x27a2ac={'xxdjz':function(_0x37e885,_0x59cf12,_0x10b53e){return _0x37e885(_0x59cf12,_0x10b53e);},'TGUFY':function(_0x52524b,_0x429627){return _0x52524b(_0x429627);},'ZdHoT':_0x39cf0d(0x1bd)};return _0x27a2ac[_0x39cf0d(0x1ce)](join,_0x27a2ac[_0x39cf0d(0x1c0)](getEnvDir,_0x1bc0f9),_0x27a2ac['ZdHoT']);}export async function loadSettings(_0x456a1a){const _0x107b09=_0x38c9,_0xeaffcc={'KPYRh':function(_0x255ba2,_0x5a8271){return _0x255ba2(_0x5a8271);},'HQhEh':function(_0x3071a3,_0x286964,_0x1ad445){return _0x3071a3(_0x286964,_0x1ad445);},'bUbrE':'utf-8'},_0x15af2f=getSettingsPath(_0x456a1a);if(!_0xeaffcc[_0x107b09(0x1db)](existsSync,_0x15af2f))return{};try{const _0x329660=await _0xeaffcc[_0x107b09(0x228)](readFile,_0x15af2f,_0xeaffcc[_0x107b09(0x1dc)]);return JSON[_0x107b09(0x208)](_0x329660);}catch{return{};}}export async function saveSettings(_0xf4ae43,_0x3b3664){const _0x19c84b=_0x38c9,_0x1348ff={'DnqMq':function(_0x49be28,_0x5e8657){return _0x49be28(_0x5e8657);}},_0x44e389=getSettingsPath(_0xf4ae43),_0x9c1e9f=_0x1348ff[_0x19c84b(0x1f4)](dirname,_0x44e389);!_0x1348ff[_0x19c84b(0x1f4)](existsSync,_0x9c1e9f)&&await mkdir(_0x9c1e9f,{'recursive':!![]}),await writeFile(_0x44e389,JSON['stringify'](_0x3b3664,null,0x2));}function _0x167e(){const _0x1cd010=['xxdjz','browser','GYqaG','sfSiz','extraHTTPHeaders','header','3807978vJULCB','wdNWz','ZrSPR','ranger-config','xBBqH','legacy','warn','KPYRh','bUbrE','tXsyZ','tabs','SJCHO','auth.json','sessions','wzhVY','--no-sandbox','nBPLN','VLuNc','MQKXI','lWxmX','egSJz','map','WFNjW','contextOptions','storageState','YjxKR','length','nlmuA','storageStatePath','dFtRu','path','catch','DnqMq','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','--disable-features=WebBluetooth','auth.json.enc','yJfyd','YvQCt','repeat','getuid','.json','ewfuG','LcrTD','whwur','now','2011112gdzLZy','--disable-setuid-sandbox','includes','oIUJl','JvRto','install','4682XcFLrI','parse','6500736iQdtss','QjTLB','ToOMC','local','tlFqm','configPath','fnVSL','kUDis','clipboard-write','kMNmw','string','25936tQBVRP','2025864QmnnLS','101HVIVOI','kTAeg','cdpEndpoint','SseCn','ZAVWB','UuHTo','towsN','isArray','MkKsH','LmaZo','env','PssQs','Abnml','setupHeader','setupHeaders','GNzwd','none','entries','HQhEh','IoAPz','50VyHXlr','args','--allow-insecure-localhost','gVdsD','Xfvqj','gOvCU','7RMsWYo','executablePath','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','playwright-cli','startsWith','safeMode','push','ranger-auth-','RcPYi','stagehand','headless','WdBKL','allowInsecureLocalhost','file','chromium','fxLqq','Environment\x20variable\x20','5267260vpaeNK','-cli','message','core','IIQKF','GmNOM','headers','settings.json','object','userAgent','TGUFY','LlKSe','1791PMYMaH','LGwij','filter','--unsafely-treat-insecure-origin-as-secure=http://localhost','all','location','kZAbb','replace','uVicu','gTbzO','keys','indexOf'];_0x167e=function(){return _0x1cd010;};return _0x167e();}export function resolveEnvVars(_0x438030){const _0x497d12=_0x38c9;if(typeof _0x438030==='string')return _0x438030[_0x497d12(0x1c9)](/\$\{(\w+)\}/g,(_0x34534d,_0x43da82)=>{const _0x3c1f24=_0x497d12,_0x44c066=process[_0x3c1f24(0x220)][_0x43da82];if(_0x44c066===undefined)throw new Error(_0x3c1f24(0x1b5)+_0x43da82+'\x20is\x20not\x20set');return _0x44c066;});if(Array['isArray'](_0x438030))return _0x438030[_0x497d12(0x1e9)](resolveEnvVars);if(_0x438030&&typeof _0x438030==='object')return Object['fromEntries'](Object['entries'](_0x438030)['map'](([_0x4fba76,_0x50e8e6])=>[_0x4fba76,resolveEnvVars(_0x50e8e6)]));return _0x438030;}const isRecord=_0xd97882=>typeof _0xd97882==='object'&&_0xd97882!==null&&!Array['isArray'](_0xd97882),asRecord=_0x2d3879=>isRecord(_0x2d3879)?_0x2d3879:undefined,mergeHeaders=(_0x363dd6,_0x5751c0)=>{const _0x1d02ee=_0x38c9,_0x3f5952={'ToOMC':function(_0x48ba6f,_0x44041f){return _0x48ba6f??_0x44041f;}},_0x1a7ab7={..._0x363dd6??{},..._0x3f5952[_0x1d02ee(0x20b)](_0x5751c0,{})};return Object[_0x1d02ee(0x1cc)](_0x1a7ab7)[_0x1d02ee(0x1ee)]?_0x1a7ab7:undefined;},SAFE_MODE_ARGS=[_0x5ebd86(0x1f6)],ALLOW_LOCALHOST_ARGS=['--disable-web-security','--allow-running-insecure-content',_0x5ebd86(0x1c5),_0x5ebd86(0x22c)];export function buildBrowserOptionsFromSettings(_0x5de666,_0x1bc322={}){const _0x5bd727=_0x5ebd86,_0x2e4f2b={'YvQCt':function(_0x546230,_0x3e6354){return _0x546230(_0x3e6354);},'DqONK':function(_0x3a8601,_0x4bd5ef){return _0x3a8601===_0x4bd5ef;},'LWYOA':'boolean','uVicu':'string','lxVLO':function(_0x315fb1,_0x5777e2,_0xed0101){return _0x315fb1(_0x5777e2,_0xed0101);}},_0x2f8f2a=_0x2e4f2b[_0x5bd727(0x1f9)](asRecord,_0x5de666[_0x5bd727(0x1cf)]),_0xa01d65={..._0x2e4f2b['YvQCt'](asRecord,_0x2f8f2a?.['launchOptions'])??{}};_0x2e4f2b['DqONK'](typeof _0x1bc322[_0x5bd727(0x1af)],_0x2e4f2b['LWYOA'])&&(_0xa01d65[_0x5bd727(0x1af)]=_0x1bc322['headless']);if(_0x5de666[_0x5bd727(0x1aa)]){const _0x170806=_0xa01d65['args']??[],_0x209f95=SAFE_MODE_ARGS[_0x5bd727(0x1c4)](_0x41fc4c=>!_0x170806['includes'](_0x41fc4c));_0xa01d65['args']=[..._0x170806,..._0x209f95];}if(_0x5de666[_0x5bd727(0x1b1)]){const _0x175782=_0xa01d65['args']??[],_0x4a28eb=ALLOW_LOCALHOST_ARGS[_0x5bd727(0x1c4)](_0x3c7572=>!_0x175782[_0x5bd727(0x203)](_0x3c7572));_0xa01d65[_0x5bd727(0x22b)]=[..._0x175782,..._0x4a28eb];}const _0x54ba64={..._0x2e4f2b['YvQCt'](asRecord,_0x2f8f2a?.[_0x5bd727(0x1eb)])??{}};_0x54ba64['ignoreHTTPSErrors']=!![];typeof _0x5de666[_0x5bd727(0x1bf)]===_0x2e4f2b[_0x5bd727(0x1ca)]&&(_0x54ba64['userAgent']=_0x5de666[_0x5bd727(0x1bf)]);const _0x1ec14a=_0x2e4f2b['lxVLO'](mergeHeaders,_0x2e4f2b['YvQCt'](asRecord,_0x54ba64[_0x5bd727(0x1d2)]),asRecord(_0x5de666['headers']));return _0x1ec14a?_0x54ba64[_0x5bd727(0x1d2)]=_0x1ec14a:delete _0x54ba64['extraHTTPHeaders'],_0x1bc322['storageStatePath']&&(_0x54ba64['storageState']=_0x1bc322[_0x5bd727(0x1f0)]),{'launchOptions':_0xa01d65,'contextOptions':_0x54ba64};}export async function resolveProfileStorageState(_0x1cfe14){const _0x49e5c7=_0x5ebd86,_0x1ffc25={'kUDis':function(_0x3c7367,_0x2a8e29){return _0x3c7367(_0x2a8e29);}};return _0x1ffc25['kUDis'](resolveLocalAuthPath,_0x1ffc25[_0x49e5c7(0x210)](getEnvDir,_0x1cfe14));}async function resolveLocalAuthPath(_0x1e7de8){const _0x3493ac=_0x5ebd86,_0x583df7={'fnVSL':_0x3493ac(0x1f7),'gOvCU':function(_0x4da001,_0x2062e7,_0x2c0cb0){return _0x4da001(_0x2062e7,_0x2c0cb0);},'PssQs':_0x3493ac(0x1f5),'LGwij':function(_0x168563,_0x40cded,_0x4d2b12){return _0x168563(_0x40cded,_0x4d2b12);},'APWhB':function(_0x3aa39a){return _0x3aa39a();},'RXPrF':function(_0x53a36d,_0x4b750e,_0x167fff){return _0x53a36d(_0x4b750e,_0x167fff);},'DZWKa':function(_0x159f4f,_0x143787){return _0x159f4f(_0x143787);}},_0x3e7d39=join(_0x1e7de8,_0x583df7[_0x3493ac(0x20f)]),_0x4a46bd=_0x583df7['gOvCU'](join,_0x1e7de8,_0x3493ac(0x1e0));if(existsSync(_0x3e7d39))try{const _0x44df25=await getToken();if(!_0x44df25)throw new Error(_0x583df7[_0x3493ac(0x221)]);const _0x3714c4=await readFile(_0x3e7d39),_0x2fce8f=_0x583df7[_0x3493ac(0x22f)](decrypt,_0x3714c4,_0x44df25),_0x295b50=_0x583df7[_0x3493ac(0x1c3)](join,_0x583df7['APWhB'](tmpdir),_0x3493ac(0x1ac)+Date[_0x3493ac(0x200)]()+_0x3493ac(0x1fc));return await _0x583df7['RXPrF'](writeFile,_0x295b50,_0x2fce8f),{'storageStatePath':_0x295b50,'tempAuthPath':_0x295b50};}catch(_0x3a3ac5){const _0x4e1865=_0x3a3ac5 instanceof Error?_0x3a3ac5[_0x3493ac(0x1b8)]:_0x583df7['DZWKa'](String,_0x3a3ac5);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x4e1865);}if(existsSync(_0x4a46bd))return{'storageStatePath':_0x4a46bd};return{};}export async function buildPlaywrightConfig(_0x512a95,_0x328e9d,_0x689d2c,_0x506b7b,_0x545531){const _0x5b2376=_0x5ebd86,_0x27de1c={'IoAPz':function(_0x99f8c6,_0x2e23bd,_0x4f9d68,_0x461e7b,_0x27c4e7,_0x3cf5c7,_0xbf7884){return _0x99f8c6(_0x2e23bd,_0x4f9d68,_0x461e7b,_0x27c4e7,_0x3cf5c7,_0xbf7884);},'LlKSe':'stagehand','SJCHO':function(_0x476ae2,_0x2b0b5d,_0x3f128f,_0x4bd10e,_0x57a0d7,_0x4cfae0,_0x29d742){return _0x476ae2(_0x2b0b5d,_0x3f128f,_0x4bd10e,_0x57a0d7,_0x4cfae0,_0x29d742);}};if(_0x545531)return _0x27de1c[_0x5b2376(0x229)](buildPlaywrightConfigCore,_0x512a95,_0x545531,_0x328e9d,_0x689d2c,_0x506b7b,_0x27de1c['LlKSe']);const {storageStatePath:_0x2e9cbe,tempAuthPath:_0x312375}=await resolveLocalAuthPath(getEnvDir(_0x328e9d));try{const _0x3afda6=await _0x27de1c[_0x5b2376(0x1df)](buildPlaywrightConfigCore,_0x512a95,_0x2e9cbe,_0x328e9d,_0x689d2c,_0x506b7b,_0x27de1c[_0x5b2376(0x1c1)]);return{..._0x3afda6,'tempAuthPath':_0x312375};}catch(_0x4bbfb1){_0x312375&&await unlink(_0x312375)[_0x5b2376(0x1f3)](()=>{});throw _0x4bbfb1;}}export async function buildPlaywrightConfigCore(_0x15b770,_0x2250f7,_0x58ab0c,_0x4b296c,_0x49a91b,_0x523b17=_0x5ebd86(0x1ae)){const _0x278317=_0x5ebd86,_0x3612e4={'ZrSPR':function(_0x24b9d5,_0x501287,_0x2ab7f4){return _0x24b9d5(_0x501287,_0x2ab7f4);},'sfSiz':'chromium','QjTLB':_0x278317(0x211),'isvXr':function(_0x54e1a3){return _0x54e1a3();},'OuLOo':_0x278317(0x1e1),'lWxmX':_0x278317(0x1b2),'kZAbb':_0x278317(0x206),'Abnml':'pdf','leMdb':'vision','veATM':'allow','xBBqH':function(_0x626378,_0x4cfef5){return _0x626378===_0x4cfef5;},'gVdsD':_0x278317(0x1d7),'ZAVWB':function(_0x232084,_0x2a0dbd){return _0x232084(_0x2a0dbd);},'gTbzO':_0x278317(0x1b7),'TYpLl':function(_0x3731ba,_0x416b7f,_0x1f5ab2){return _0x3731ba(_0x416b7f,_0x1f5ab2);}},_0x28c720=_0x4b296c||randomUUID(),_0x15d01f=join(_0x3612e4['isvXr'](getRangerDir),_0x3612e4['OuLOo'],_0x28c720),_0x5826bd=Boolean(_0x15b770[_0x278317(0x218)]),_0x58e65c=_0x5826bd?{'browserName':'chromium','cdpEndpoint':_0x15b770['cdpEndpoint']}:((()=>{const _0x317f07=_0x278317,{launchOptions:_0x30d8a9,contextOptions:_0x382765}=_0x3612e4[_0x317f07(0x1d6)](buildBrowserOptionsFromSettings,_0x15b770,{'headless':_0x49a91b?![]:_0x15b770[_0x317f07(0x1af)]??!![],'storageStatePath':_0x2250f7});if(process[_0x317f07(0x1fb)]?.()===0x0){const _0x4fcf58=['--no-sandbox','--disable-setuid-sandbox'],_0x318b2a=_0x30d8a9[_0x317f07(0x22b)]??[],_0x52f488=_0x4fcf58['filter'](_0x24e908=>!_0x318b2a['includes'](_0x24e908));_0x30d8a9['args']=[..._0x318b2a,..._0x52f488];}return{'isolated':!![],'browserName':_0x3612e4[_0x317f07(0x1d1)],'launchOptions':_0x30d8a9,'contextOptions':{..._0x382765,'permissions':['clipboard-read',_0x3612e4[_0x317f07(0x20a)]],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x356c68=_0x523b17==='playwright-cli'?{'browser':_0x58e65c,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x15d01f,'outputMode':_0x3612e4[_0x278317(0x1e7)],'codegen':_0x278317(0x226)}:{'name':_0x58ab0c,'browser':_0x58e65c,'capabilities':[_0x278317(0x1b9),_0x278317(0x1de),_0x3612e4[_0x278317(0x1c8)],_0x3612e4[_0x278317(0x222)],_0x3612e4['leMdb']],'imageResponses':_0x3612e4['veATM'],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x15d01f};if(!_0x5826bd){const _0x107ccf=_0x356c68['browser'],_0x2f0511=_0x107ccf[_0x278317(0x1eb)];if(_0x3612e4[_0x278317(0x1d8)](_0x2f0511['userAgent'],undefined))delete _0x2f0511['userAgent'];if(_0x2f0511[_0x278317(0x1ec)]===undefined)delete _0x2f0511[_0x278317(0x1ec)];}const _0x2564d9=join(_0x3612e4['isvXr'](tmpdir),_0x3612e4[_0x278317(0x22d)]);!_0x3612e4[_0x278317(0x21a)](existsSync,_0x2564d9)&&await mkdir(_0x2564d9,{'recursive':!![]});const _0x38c8bf=_0x523b17==='playwright-cli'?_0x3612e4[_0x278317(0x1cb)]:'',_0x4f112d=_0x3612e4[_0x278317(0x1d6)](join,_0x2564d9,_0x58ab0c+'-'+Date[_0x278317(0x200)]()+_0x38c8bf+'.json');return await _0x3612e4['TYpLl'](writeFile,_0x4f112d,JSON['stringify'](_0x356c68,null,0x2)),{'configPath':_0x4f112d,'storageStatePath':_0x2250f7};}export async function buildPlaywrightCliConfig(_0x492806,_0x27fb70,_0x5ae325,_0x4a4e14,_0x4b8a3d){const _0x22e495=_0x5ebd86,_0x194e20={'WTPbE':function(_0xf0b494,_0x247bec,_0x1b5993,_0x5e6016,_0x55baba,_0x32e532,_0x37dedd){return _0xf0b494(_0x247bec,_0x1b5993,_0x5e6016,_0x55baba,_0x32e532,_0x37dedd);},'kTAeg':_0x22e495(0x233),'tlFqm':function(_0x56b667,_0x3d2e79){return _0x56b667(_0x3d2e79);}};if(_0x4b8a3d)return _0x194e20['WTPbE'](buildPlaywrightConfigCore,_0x492806,_0x4b8a3d,_0x27fb70,_0x5ae325,_0x4a4e14,'playwright-cli');const {storageStatePath:_0x3141b4,tempAuthPath:_0x6db336}=await resolveLocalAuthPath(getEnvDir(_0x27fb70));try{const _0x1738b3=await buildPlaywrightConfigCore(_0x492806,_0x3141b4,_0x27fb70,_0x5ae325,_0x4a4e14,_0x194e20[_0x22e495(0x217)]);return{..._0x1738b3,'tempAuthPath':_0x6db336};}catch(_0x38c442){_0x6db336&&await _0x194e20[_0x22e495(0x20d)](unlink,_0x6db336)[_0x22e495(0x1f3)](()=>{});throw _0x38c442;}}export async function buildRangerwrightCliConfig(_0x424886,_0x2f99e9,_0x46d890,_0x545961,_0x3ca960){const _0x2d419f=_0x5ebd86,_0x3ab4cd={'sZJxm':function(_0x31b234,_0x4a63e9,_0x58757f){return _0x31b234(_0x4a63e9,_0x58757f);},'GYqaG':function(_0x5d4887,_0x239f3b){return _0x5d4887===_0x239f3b;},'Xfvqj':'clipboard-read','UuHTo':function(_0x1a964d,_0x2da779){return _0x1a964d(_0x2da779);},'fOJnt':function(_0x5837d7,_0xa7e80e){return _0x5837d7===_0xa7e80e;},'JIxOS':function(_0x16f2e6){return _0x16f2e6();},'WdBKL':'ranger-config','QjjtF':function(_0x5ab253,_0x543d86){return _0x5ab253(_0x543d86);}},{storageStatePath:_0x593d64,tempAuthPath:_0x535066}=_0x3ca960?{'storageStatePath':_0x3ca960,'tempAuthPath':undefined}:await _0x3ab4cd[_0x2d419f(0x21b)](resolveLocalAuthPath,getEnvDir(_0x2f99e9)),_0x3567d6=_0x46d890||randomUUID(),_0x14208a=join(getRangerDir(),'sessions',_0x3567d6),_0x2c0b69=_0x3ab4cd[_0x2d419f(0x21b)](Boolean,_0x424886['cdpEndpoint']),_0x2d5ac8=_0x2c0b69?{'browserName':_0x2d419f(0x1b3),'cdpEndpoint':_0x424886['cdpEndpoint']}:((()=>{const _0x1b841f=_0x2d419f,{launchOptions:_0x290156,contextOptions:_0x46fd6b}=_0x3ab4cd['sZJxm'](buildBrowserOptionsFromSettings,_0x424886,{'headless':_0x545961?![]:_0x424886['headless']??!![],'storageStatePath':_0x593d64});if(_0x3ab4cd[_0x1b841f(0x1d0)](process[_0x1b841f(0x1fb)]?.(),0x0)){const _0x386b4e=[_0x1b841f(0x1e3),_0x1b841f(0x202)],_0x39fabd=_0x290156['args']??[],_0x26f01e=_0x386b4e['filter'](_0x44141c=>!_0x39fabd[_0x1b841f(0x203)](_0x44141c));_0x290156['args']=[..._0x39fabd,..._0x26f01e];}return{'browserName':'chromium','launchOptions':_0x290156,'contextOptions':{..._0x46fd6b,'permissions':[_0x3ab4cd[_0x1b841f(0x22e)],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x2c0b69){const _0x386c39=_0x2d5ac8['contextOptions'];if(_0x386c39){if(_0x386c39[_0x2d419f(0x1bf)]===undefined)delete _0x386c39[_0x2d419f(0x1bf)];if(_0x3ab4cd['fOJnt'](_0x386c39[_0x2d419f(0x1ec)],undefined))delete _0x386c39['storageState'];}}const _0x2ef632={'browser':_0x2d5ac8,'outputDir':_0x14208a,'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'settle':{'navigationLoadTimeoutMs':0x7530,'networkSettleTimeoutMs':0x1388,'networkIdleWindowMs':0x1f4,'postActionAnimationFrameCount':0x2}};let _0x32da9c;try{const _0x3bc554=join(_0x3ab4cd['JIxOS'](tmpdir),_0x3ab4cd[_0x2d419f(0x1b0)]);!_0x3ab4cd['QjjtF'](existsSync,_0x3bc554)&&await mkdir(_0x3bc554,{'recursive':!![]}),_0x32da9c=join(_0x3bc554,_0x2f99e9+'-'+Date['now']()+'-rangerwright.json'),await _0x3ab4cd['sZJxm'](writeFile,_0x32da9c,JSON['stringify'](_0x2ef632,null,0x2));}catch(_0x39bb93){_0x535066&&await unlink(_0x535066)['catch'](()=>{});throw _0x39bb93;}return{'configPath':_0x32da9c,'storageStatePath':_0x593d64,'tempAuthPath':_0x535066,'outputDir':_0x14208a};}export async function buildNovaActCliConfig(_0x4a8ee6,_0x5bb05a,_0x556e40,_0xfb6cd2,_0xa321a){const _0x284c21=_0x5ebd86,_0x4f2816={'wzhVY':function(_0x4a69bc,_0xbfb40c){return _0x4a69bc(_0xbfb40c);},'LmaZo':function(_0x58c52d){return _0x58c52d();},'GNzwd':function(_0x4a1124,_0x2c499e,_0x1d9ce0){return _0x4a1124(_0x2c499e,_0x1d9ce0);},'MkKsH':function(_0x2cf85b,_0x538455,_0x4d39ac){return _0x2cf85b(_0x538455,_0x4d39ac);},'UiBRb':function(_0x985e42,_0x2a9c01){return _0x985e42===_0x2a9c01;},'gLgHQ':'--disable-setuid-sandbox','whwur':function(_0x3ff337,_0x314d10){return _0x3ff337(_0x314d10);}},{storageStatePath:_0x55b8ef,tempAuthPath:_0x365938}=_0xa321a?{'storageStatePath':_0xa321a,'tempAuthPath':undefined}:await _0x4f2816['wzhVY'](resolveLocalAuthPath,getEnvDir(_0x5bb05a)),_0x2f0a64=_0x556e40||_0x4f2816[_0x284c21(0x21f)](randomUUID),_0x48e9e5=join(_0x4f2816['LmaZo'](getRangerDir),_0x284c21(0x1e1),_0x2f0a64),_0x204d06=_0x4f2816[_0x284c21(0x225)](join,_0x48e9e5,'nova-user-data'),_0x1f557a=_0x55b8ef?_0x4f2816[_0x284c21(0x21e)](join,_0x204d06,'Default'):undefined,{launchOptions:_0x501b1c,contextOptions:_0x57fa08}=_0x4f2816['GNzwd'](buildBrowserOptionsFromSettings,_0x4a8ee6,{'headless':_0xfb6cd2?![]:_0x4a8ee6['headless']??!![],'storageStatePath':_0x55b8ef});if(_0x4f2816['UiBRb'](process['getuid']?.(),0x0)){const _0x35afb1=['--no-sandbox',_0x4f2816['gLgHQ']],_0x4b92d2=_0x501b1c[_0x284c21(0x22b)]??[],_0x54b0c6=_0x35afb1[_0x284c21(0x1c4)](_0x4005e8=>!_0x4b92d2[_0x284c21(0x203)](_0x4005e8));_0x501b1c['args']=[..._0x4b92d2,..._0x54b0c6];}const _0x4ed5d3=typeof _0x501b1c['executablePath']===_0x284c21(0x213)?_0x501b1c['executablePath']:_0x55b8ef?chromium[_0x284c21(0x231)]():undefined;return{'storageStatePath':_0x55b8ef,'tempAuthPath':_0x365938,'baseUrl':_0x4a8ee6['baseUrl'],'headless':_0x4f2816[_0x284c21(0x1e2)](Boolean,_0x501b1c['headless']),'userDataDir':_0x204d06,'browserProfilePath':_0x1f557a,'executablePath':_0x4ed5d3,'launchArgs':Array[_0x284c21(0x21d)](_0x501b1c[_0x284c21(0x22b)])?_0x501b1c[_0x284c21(0x22b)]['filter'](_0x484b43=>typeof _0x484b43===_0x284c21(0x213)):[],'userAgent':typeof _0x57fa08['userAgent']===_0x284c21(0x213)?_0x57fa08[_0x284c21(0x1bf)]:undefined,'extraHTTPHeaders':_0x57fa08[_0x284c21(0x1d2)],'allowInsecureLocalhost':Boolean(_0x4a8ee6['allowInsecureLocalhost']),'safeMode':Boolean(_0x4a8ee6['safeMode']),'cdpEndpoint':_0x4a8ee6[_0x284c21(0x218)],'isCdpMode':_0x4f2816[_0x284c21(0x1ff)](Boolean,_0x4a8ee6[_0x284c21(0x218)])};}export function getNestedValue(_0x1d16d2,_0x14dd2e){const _0x3b1278={'VHDpr':function(_0x24ead5,_0x2f7a6d){return _0x24ead5(_0x2f7a6d);},'aJHvJ':function(_0x5a3170,_0x363896){return _0x5a3170===_0x363896;}},_0x4903c2=_0x3b1278['VHDpr'](parseKeyPath,_0x14dd2e);let _0x9187e9=_0x1d16d2;for(const _0x4b09c3 of _0x4903c2){if(_0x9187e9===null||_0x3b1278['aJHvJ'](_0x9187e9,undefined)||typeof _0x9187e9!=='object')return undefined;_0x9187e9=_0x9187e9[_0x4b09c3];}return _0x9187e9;}export function setNestedValue(_0x5819d6,_0x28f617,_0x29d255){const _0x461dd8=_0x5ebd86,_0x105bab={'tuboF':function(_0x1af239,_0x3cfcb6){return _0x1af239(_0x3cfcb6);},'ewfuG':'object','SseCn':function(_0x595895,_0x42419e){return _0x595895-_0x42419e;}},_0x11e81c=_0x105bab['tuboF'](parseKeyPath,_0x28f617);let _0x22a775=_0x5819d6;for(let _0x419501=0x0;_0x419501<_0x11e81c[_0x461dd8(0x1ee)]-0x1;_0x419501++){const _0x3330fa=_0x11e81c[_0x419501];(!(_0x3330fa in _0x22a775)||typeof _0x22a775[_0x3330fa]!==_0x105bab[_0x461dd8(0x1fd)])&&(_0x22a775[_0x3330fa]={}),_0x22a775=_0x22a775[_0x3330fa];}_0x22a775[_0x11e81c[_0x105bab[_0x461dd8(0x219)](_0x11e81c[_0x461dd8(0x1ee)],0x1)]]=_0x29d255;}function _0x38c9(_0x3f64c3,_0x47845c){_0x3f64c3=_0x3f64c3-0x1a9;const _0x167e02=_0x167e();let _0x38c98c=_0x167e02[_0x3f64c3];return _0x38c98c;}export function deleteNestedValue(_0x27843d,_0x4871eb){const _0x180273=_0x5ebd86,_0x476bd3={'xdYah':function(_0x27eda2,_0x5392dc){return _0x27eda2<_0x5392dc;},'bJGIz':function(_0x23c2d4,_0x4c9ff2){return _0x23c2d4===_0x4c9ff2;},'RcPYi':'object','hQTlZ':function(_0x2106c9,_0x29639e){return _0x2106c9!==_0x29639e;}},_0x2864f9=parseKeyPath(_0x4871eb);let _0x251d3b=_0x27843d;for(let _0x359ad1=0x0;_0x476bd3['xdYah'](_0x359ad1,_0x2864f9['length']-0x1);_0x359ad1++){if(_0x251d3b===null||_0x476bd3['bJGIz'](_0x251d3b,undefined)||typeof _0x251d3b!==_0x476bd3[_0x180273(0x1ad)])return![];_0x251d3b=_0x251d3b[_0x2864f9[_0x359ad1]];}if(_0x251d3b===null||_0x251d3b===undefined||_0x476bd3['hQTlZ'](typeof _0x251d3b,_0x180273(0x1be)))return![];const _0x2accc2=_0x2864f9[_0x2864f9[_0x180273(0x1ee)]-0x1];if(_0x2accc2 in _0x251d3b)return delete _0x251d3b[_0x2accc2],!![];return![];}function parseKeyPath(_0xe68038){const _0x3fd1d2=_0x5ebd86,_0x517d45={'iaqlT':_0x3fd1d2(0x1bc),'WFNjW':_0x3fd1d2(0x223),'kMNmw':_0x3fd1d2(0x224)},_0x193682=_0xe68038['split']('.');return _0x193682[0x0]===_0x3fd1d2(0x1d3)&&(_0x193682[0x0]=_0x517d45['iaqlT']),_0x193682[0x0]===_0x517d45[_0x3fd1d2(0x1ea)]&&(_0x193682[0x0]=_0x517d45[_0x3fd1d2(0x212)]),_0x193682;}export function formatSettings(_0x4ad0e9,_0x2f2a2e=0x0){const _0x554124=_0x5ebd86,_0x4ae6a1={'jzXGw':function(_0xd3cb8c,_0x519442){return _0xd3cb8c===_0x519442;},'fdmlq':function(_0x10915d,_0x2849c0){return _0x10915d!==_0x2849c0;}},_0x299083=[],_0x368c3f='\x20\x20'[_0x554124(0x1fa)](_0x2f2a2e);for(const [_0x1c074d,_0x1a6aeb]of Object[_0x554124(0x227)](_0x4ad0e9)){if(_0x4ae6a1['jzXGw'](_0x1a6aeb,undefined))continue;if(typeof _0x1a6aeb==='object'&&_0x4ae6a1['fdmlq'](_0x1a6aeb,null)){_0x299083['push'](''+_0x368c3f+_0x1c074d+':');for(const [_0x43d07f,_0x101b0b]of Object['entries'](_0x1a6aeb)){_0x299083[_0x554124(0x1ab)](_0x368c3f+'\x20\x20'+_0x43d07f+':\x20'+_0x101b0b);}}else _0x299083['push'](''+_0x368c3f+_0x1c074d+':\x20'+_0x1a6aeb);}return _0x299083['join']('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x289e07,_0xa0c3b6){const _0x2ef7b3=_0x52b5,_0x45cdb1=_0x289e07();while(!![]){try{const _0x64fad3=parseInt(_0x2ef7b3(0x1af))/0x1*(-parseInt(_0x2ef7b3(0x1b4))/0x2)+-parseInt(_0x2ef7b3(0x1b7))/0x3+parseInt(_0x2ef7b3(0x1b3))/0x4+-parseInt(_0x2ef7b3(0x1b9))/0x5+parseInt(_0x2ef7b3(0x1b2))/0x6*(parseInt(_0x2ef7b3(0x1ad))/0x7)+parseInt(_0x2ef7b3(0x1ae))/0x8*(-parseInt(_0x2ef7b3(0x1b6))/0x9)+parseInt(_0x2ef7b3(0x1b0))/0xa*(parseInt(_0x2ef7b3(0x1b5))/0xb);if(_0x64fad3===_0xa0c3b6)break;else _0x45cdb1['push'](_0x45cdb1['shift']());}catch(_0xdc30ce){_0x45cdb1['push'](_0x45cdb1['shift']());}}}(_0x5cf3,0xe72a8));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function _0x52b5(_0x168735,_0x1667a0){_0x168735=_0x168735-0x1ac;const _0x5cf36d=_0x5cf3();let _0x52b534=_0x5cf36d[_0x168735];return _0x52b534;}function _0x5cf3(){const _0x593441=['skills','2796552KBdCGS','3779288BUkMlK','6500xffdiV','11Hnwuoh','11043IxnVbO','474837LATRtU','utf-8','6992405CcqHFk','sioTR','7uTNkYZ','3704FmTIYv','526FPygPW','33703030ownYmB'];_0x5cf3=function(){return _0x593441;};return _0x5cf3();}export function readSkillContent(_0xbef0c9){const _0x297120=_0x52b5,_0x24183d={'WaBWb':function(_0x385826,_0x4089b9,_0xdcaef,_0x49ea72,_0x79eef1){return _0x385826(_0x4089b9,_0xdcaef,_0x49ea72,_0x79eef1);},'ywngR':_0x297120(0x1b1),'cdMas':function(_0x37676d,_0x2bfe77,_0x3ae3f4){return _0x37676d(_0x2bfe77,_0x3ae3f4);},'sioTR':_0x297120(0x1b8)},_0x57891d=_0x24183d['WaBWb'](join,__dirname,'..','..',_0x24183d['ywngR']),_0x59d87e=_0x24183d['cdMas'](join,_0x57891d,_0xbef0c9);try{return _0x24183d['cdMas'](readFileSync,_0x59d87e,_0x24183d[_0x297120(0x1ac)]);}catch{return'';}}export function getRangerSkillContent(){return readSkillContent('ranger/SKILL.md');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x55d4(_0x38b640,_0x2b3b0f){_0x38b640=_0x38b640-0x10e;const _0x207189=_0x2071();let _0x55d4c1=_0x207189[_0x38b640];return _0x55d4c1;}const _0x30c1d1=_0x55d4;(function(_0x527179,_0x1a4303){const _0x24b525=_0x55d4,_0xf8dfe6=_0x527179();while(!![]){try{const _0x436070=parseInt(_0x24b525(0x114))/0x1*(-parseInt(_0x24b525(0x119))/0x2)+parseInt(_0x24b525(0x116))/0x3*(-parseInt(_0x24b525(0x113))/0x4)+parseInt(_0x24b525(0x127))/0x5+-parseInt(_0x24b525(0x12f))/0x6+parseInt(_0x24b525(0x131))/0x7+parseInt(_0x24b525(0x120))/0x8*(-parseInt(_0x24b525(0x122))/0x9)+parseInt(_0x24b525(0x12e))/0xa*(parseInt(_0x24b525(0x121))/0xb);if(_0x436070===_0x1a4303)break;else _0xf8dfe6['push'](_0xf8dfe6['shift']());}catch(_0x2b2b8f){_0xf8dfe6['push'](_0xf8dfe6['shift']());}}}(_0x2071,0x4af60));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';function _0x2071(){const _0x595327=['opencode','140FVaINw','1715370eSBEUA','QpuYn','2831458oIClsA','match','filter','nGAiK','\x20\x20Files:\x20','vTIfw','5460rFVhmv','1gczWVS','Invalid\x20skill\x20frontmatter','1014gUwmwe','SKILL.md','skills','89394DiHWDG','warn','bug-bash','feature-tracker','\x20\x20Skill\x20not\x20found:\x20','fNBsb','log','2733128yiqpeH','792011fNVEVR','9cdmooR','.md','endsWith','catch','GXhvI','140675EdIGCn','NMUYB','\x20\x20Installed\x20skill:\x20','ascrJ','GOFDn','OLNxK'];_0x2071=function(){return _0x595327;};return _0x2071();}import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=['ranger'];export const DEPRECATED_SKILLS=['e2e-test-recommender',_0x30c1d1(0x11b),_0x30c1d1(0x11c)];export async function installSkill(_0x43d4ff,_0x37ffc3={}){const _0x44599e=_0x30c1d1,_0x69980f={'scrFx':'claude','OLNxK':function(_0x297f96,_0x2d621,_0x4e0157){return _0x297f96(_0x2d621,_0x4e0157);},'fNBsb':function(_0x7be616,_0x433ec9){return _0x7be616(_0x433ec9);},'QpuYn':function(_0x1cbc9a,_0x30773f){return _0x1cbc9a&&_0x30773f;},'GOFDn':function(_0x40f7ae,_0x257dcb){return _0x40f7ae(_0x257dcb);},'ascrJ':_0x44599e(0x117),'nGAiK':'utf-8','fwrnv':function(_0xf5fbe8,_0x304efc,_0x111248){return _0xf5fbe8(_0x304efc,_0x111248);},'vTIfw':function(_0x386f1c,_0x1eac84,_0x527b52,_0x35acce){return _0x386f1c(_0x1eac84,_0x527b52,_0x35acce);},'cUThB':function(_0x4815d0,_0x47411f){return _0x4815d0>_0x47411f;},'NMUYB':function(_0x2e91fa,_0x5e0c78,_0x2ec4d1,_0x35fd4b){return _0x2e91fa(_0x5e0c78,_0x2ec4d1,_0x35fd4b);}},{level:level='project',cliVersion:_0x50eeb0,platform:platform=_0x69980f['scrFx']}=_0x37ffc3,_0x8cd312=getSourceSkillsDir(),_0x5514b6=join(_0x8cd312,_0x43d4ff),_0x45de3b=_0x69980f[_0x44599e(0x12c)](join,_0x8cd312,_0x43d4ff+'.md'),_0x3fb851=existsSync(_0x5514b6)&&_0x69980f['fNBsb'](statSync,_0x5514b6)['isDirectory']()&&_0x69980f['fNBsb'](existsSync,join(_0x5514b6,'SKILL.md')),_0x3342a6=_0x69980f[_0x44599e(0x11e)](existsSync,_0x45de3b);if(_0x69980f[_0x44599e(0x130)](!_0x3fb851,!_0x3342a6))return console['warn'](_0x44599e(0x11d)+_0x43d4ff),![];const _0x2fe9c9=platform===_0x44599e(0x12d)?_0x69980f[_0x44599e(0x12b)](getOpencodeSkillsDir,level):getSkillsDir(level),_0x349a66=_0x69980f['OLNxK'](join,_0x2fe9c9,_0x43d4ff);await mkdir(_0x349a66,{'recursive':!![]});let _0x52a7be,_0x3765d5=[];if(_0x3fb851){const _0x3ef2bb=await readdir(_0x5514b6),_0x5c0fe3=_0x3ef2bb[_0x44599e(0x10f)](_0x56e9b9=>_0x56e9b9[_0x44599e(0x124)](_0x44599e(0x123)));for(const _0x50c0e2 of _0x5c0fe3){const _0x424d78=_0x69980f[_0x44599e(0x12c)](join,_0x5514b6,_0x50c0e2),_0x31da29=join(_0x349a66,_0x50c0e2);await copyFile(_0x424d78,_0x31da29),_0x3765d5['push'](_0x50c0e2);}_0x52a7be=await readFile(join(_0x5514b6,_0x69980f['ascrJ']),_0x69980f['nGAiK']);}else{_0x52a7be=await _0x69980f['fwrnv'](readFile,_0x45de3b,_0x69980f['nGAiK']);const _0x549cb2=join(_0x349a66,_0x69980f[_0x44599e(0x12a)]);await _0x69980f[_0x44599e(0x112)](writeFile,_0x549cb2,_0x52a7be,_0x69980f[_0x44599e(0x110)]),_0x3765d5['push']('SKILL.md');}const {name:_0x3e585d}=parseFrontmatter(_0x52a7be);return console['log'](_0x44599e(0x129)+_0x3e585d),console['log']('\x20\x20Location:\x20'+_0x349a66),_0x69980f['cUThB'](_0x3765d5['length'],0x1)&&console[_0x44599e(0x11f)](_0x44599e(0x111)+_0x3765d5['join'](',\x20')),_0x69980f[_0x44599e(0x128)](logLocalAgentInstallation,_0x43d4ff,{'skillDisplayName':_0x3e585d,'installLevel':level},_0x50eeb0)[_0x44599e(0x125)](()=>{}),!![];}function getSourceSkillsDir(){const _0x41a8dd=_0x30c1d1,_0x35926b={'OdenK':function(_0x24daec,_0x250146,_0x4c5d7f,_0x2e0eee,_0x3083aa,_0x2eba28){return _0x24daec(_0x250146,_0x4c5d7f,_0x2e0eee,_0x3083aa,_0x2eba28);},'GXhvI':_0x41a8dd(0x118),'aDyyh':function(_0x36ac8c,_0x5ce838){return _0x36ac8c(_0x5ce838);}},_0x2b8abb=[join(__dirname,'..','..',_0x41a8dd(0x118)),_0x35926b['OdenK'](join,__dirname,'..','..','..',_0x35926b[_0x41a8dd(0x126)])];for(const _0x4e753f of _0x2b8abb){if(_0x35926b['aDyyh'](existsSync,_0x4e753f))return _0x4e753f;}return _0x2b8abb[0x0];}function parseFrontmatter(_0x2fffca){const _0x5c507a=_0x30c1d1,_0x573b2b=_0x2fffca['match'](/^---\n([\s\S]+?)\n---/);if(!_0x573b2b)throw new Error(_0x5c507a(0x115));const _0x180945=_0x573b2b[0x1],_0x39535c=_0x180945['match'](/name:\s*(.+)/),_0x2ebde6=_0x180945[_0x5c507a(0x10e)](/description:\s*"?(.+?)"?\n/);return{'name':_0x39535c?.[0x1]['trim']()||'','description':_0x2ebde6?.[0x1]['trim']()||''};}export async function removeSkill(_0x30d93d,_0x317a0e){const _0x3a0573=_0x30c1d1,_0x27b677=getSkillsDir(_0x317a0e),_0x2456ba=join(_0x27b677,_0x30d93d);if(!existsSync(_0x2456ba))return![];try{return await rm(_0x2456ba,{'recursive':!![]}),console[_0x3a0573(0x11f)]('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x30d93d),!![];}catch{return console[_0x3a0573(0x11a)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x30d93d),![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x38ff66=_0x417e;(function(_0x1e90e1,_0x294051){const _0x22b684=_0x417e,_0x59c5ea=_0x1e90e1();while(!![]){try{const _0x5da214=-parseInt(_0x22b684(0x133))/0x1+parseInt(_0x22b684(0x13b))/0x2*(parseInt(_0x22b684(0x105))/0x3)+parseInt(_0x22b684(0x107))/0x4+parseInt(_0x22b684(0x10f))/0x5*(parseInt(_0x22b684(0x134))/0x6)+-parseInt(_0x22b684(0x10e))/0x7*(-parseInt(_0x22b684(0x11b))/0x8)+parseInt(_0x22b684(0x123))/0x9+-parseInt(_0x22b684(0x11a))/0xa*(parseInt(_0x22b684(0x13d))/0xb);if(_0x5da214===_0x294051)break;else _0x59c5ea['push'](_0x59c5ea['shift']());}catch(_0x2c69fb){_0x59c5ea['push'](_0x59c5ea['shift']());}}}(_0x5957,0x9695a));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(_0x2c7a7d,_0x7ce01f){const _0x3d7d38=_0x417e,_0x584e73={'jPVCB':function(_0x49d7e9,_0x4adbbd){return _0x49d7e9>=_0x4adbbd;},'bLLeI':function(_0x499691,_0x5cb2fc){return _0x499691<=_0x5cb2fc;},'zEJPW':function(_0x514ad2,_0x480f4b){return _0x514ad2&_0x480f4b;},'mhQJi':function(_0x4c79c0,_0x1bb197){return _0x4c79c0+_0x1bb197;},'BxXAB':function(_0x58cd53,_0x5410fe){return _0x58cd53<_0x5410fe;},'TGTAm':function(_0x32facd,_0x2f16fd){return _0x32facd+_0x2f16fd;},'KRFwl':function(_0x5d9434,_0x4da1b9){return _0x5d9434*_0x4da1b9;}};if(_0x584e73['jPVCB'](_0x7ce01f,_0x2c7a7d['length']))return[0x0,0x0];const _0x2dadfd=_0x2c7a7d[_0x7ce01f];let _0x179869=0x1,_0x4490aa=0x80;while(_0x584e73[_0x3d7d38(0xf4)](_0x179869,0x8)&&!_0x584e73['zEJPW'](_0x2dadfd,_0x4490aa)){_0x179869++,_0x4490aa>>=0x1;}if(_0x584e73['mhQJi'](_0x7ce01f,_0x179869)>_0x2c7a7d[_0x3d7d38(0x121)])return[0x0,0x0];let _0x29a7f1=_0x584e73[_0x3d7d38(0x119)](_0x2dadfd,_0x4490aa-0x1);for(let _0x50fc53=0x1;_0x584e73['BxXAB'](_0x50fc53,_0x179869);_0x50fc53++){_0x29a7f1=_0x584e73[_0x3d7d38(0x13e)](_0x584e73[_0x3d7d38(0xfe)](_0x29a7f1,0x100),_0x2c7a7d[_0x7ce01f+_0x50fc53]);}return[_0x29a7f1,_0x179869];}function readId(_0x28a1bc,_0x18bcd6){const _0x486cf6=_0x417e,_0x430eee={'HYhuo':function(_0x40819c,_0x57dbf3){return _0x40819c>=_0x57dbf3;},'krftt':function(_0x5bb7b5,_0x5536e7){return _0x5bb7b5>=_0x5536e7;},'WLoOh':function(_0x917659,_0x5cfd18){return _0x917659>=_0x5cfd18;},'eeenu':function(_0xf1a865,_0x260de9){return _0xf1a865>_0x260de9;},'kPSGH':function(_0x465072,_0x555d8c){return _0x465072<_0x555d8c;},'Mofes':function(_0x534781,_0x42beac){return _0x534781*_0x42beac;}};if(_0x18bcd6>=_0x28a1bc[_0x486cf6(0x121)])return[0x0,0x0];const _0x2acfbc=_0x28a1bc[_0x18bcd6];let _0x1d8b5b;if(_0x430eee['HYhuo'](_0x2acfbc,0x80))_0x1d8b5b=0x1;else{if(_0x2acfbc>=0x40)_0x1d8b5b=0x2;else{if(_0x430eee[_0x486cf6(0x117)](_0x2acfbc,0x20))_0x1d8b5b=0x3;else{if(_0x430eee[_0x486cf6(0x136)](_0x2acfbc,0x10))_0x1d8b5b=0x4;else return[_0x2acfbc,0x1];}}}if(_0x430eee['eeenu'](_0x18bcd6+_0x1d8b5b,_0x28a1bc[_0x486cf6(0x121)]))return[0x0,0x0];let _0x1fcd9f=0x0;for(let _0x45b833=0x0;_0x430eee[_0x486cf6(0x106)](_0x45b833,_0x1d8b5b);_0x45b833++){_0x1fcd9f=_0x430eee[_0x486cf6(0x141)](_0x1fcd9f,0x100)+_0x28a1bc[_0x18bcd6+_0x45b833];}return[_0x1fcd9f,_0x1d8b5b];}function readUint(_0x469433,_0x515f04,_0x5d0bf0){const _0x17feb1=_0x417e,_0x2c2a84={'WSbni':function(_0x24887e,_0x4aa759){return _0x24887e<_0x4aa759;}};let _0x1b0676=0x0;for(let _0x1fefa6=0x0;_0x2c2a84[_0x17feb1(0xf5)](_0x1fefa6,_0x5d0bf0);_0x1fefa6++){_0x1b0676=_0x1b0676*0x100+_0x469433[_0x515f04+_0x1fefa6];}return _0x1b0676;}function isUnknownSize(_0x2a7872,_0x459f4d){const _0x1bf829=_0x417e,_0xb50645={'hmWpS':function(_0x3fc50b,_0xa5adec){return _0x3fc50b-_0xa5adec;},'XeBev':function(_0x53e1c6,_0x1be705){return _0x53e1c6*_0x1be705;}};return _0x2a7872===_0xb50645['hmWpS'](Math[_0x1bf829(0x12c)](0x2,_0xb50645['XeBev'](0x7,_0x459f4d)),0x1);}function writeVint(_0x5369f6,_0x39695c){const _0x438a2a=_0x417e,_0x713a0c={'cUTIV':function(_0x31d12a,_0x546d1b){return _0x31d12a<_0x546d1b;},'qfcAK':function(_0x44fbd9,_0x5b501c){return _0x44fbd9*_0x5b501c;},'PnBDE':function(_0x2cca83,_0x30f15e){return _0x2cca83-_0x30f15e;},'vttWv':function(_0x3d9528,_0x22b319){return _0x3d9528>=_0x22b319;},'vsVwB':function(_0x1d843a,_0x2a959b){return _0x1d843a&_0x2a959b;}};let _0x2fdff9=_0x39695c||0x1;while(_0x713a0c[_0x438a2a(0x127)](Math[_0x438a2a(0x12c)](0x2,_0x713a0c[_0x438a2a(0x143)](0x7,_0x2fdff9))-0x2,_0x5369f6))_0x2fdff9++;const _0x287ca3=Buffer['alloc'](_0x2fdff9);for(let _0x81ad8c=_0x713a0c['PnBDE'](_0x2fdff9,0x1);_0x713a0c['vttWv'](_0x81ad8c,0x0);_0x81ad8c--){_0x287ca3[_0x81ad8c]=_0x713a0c[_0x438a2a(0x128)](_0x5369f6,0xff),_0x5369f6=Math[_0x438a2a(0x125)](_0x5369f6/0x100);}return _0x287ca3[0x0]|=0x1<<0x8-_0x2fdff9,_0x287ca3;}function writeUint(_0xd5b0e9,_0x55d26d){const _0x2499b0=_0x417e,_0x478369={'xjSHd':function(_0x5c3f77,_0x488fca){return _0x5c3f77-_0x488fca;},'cPRYV':function(_0x389f47,_0xef8a97){return _0x389f47>=_0xef8a97;},'YgfUB':function(_0x230e2c,_0x509cfd){return _0x230e2c&_0x509cfd;},'RtbOb':function(_0x271546,_0x290893){return _0x271546/_0x290893;}},_0x299064=Buffer['alloc'](_0x55d26d);for(let _0x2b8a94=_0x478369[_0x2499b0(0x10d)](_0x55d26d,0x1);_0x478369[_0x2499b0(0x140)](_0x2b8a94,0x0);_0x2b8a94--){_0x299064[_0x2b8a94]=_0x478369['YgfUB'](_0xd5b0e9,0xff),_0xd5b0e9=Math['floor'](_0x478369[_0x2499b0(0x104)](_0xd5b0e9,0x100));}return _0x299064;}function _0x5957(){const _0xb3f57c=['2124004dimout','ncVCm','error','max','MDWUj','PxLcQ','xjSHd','7mtfkRe','310kRGVyD','sMhyD','Qsewe','iUbCL','YrLFP','stitchWebmFiles.ts','ioZEZ','hqkXy','krftt','qGFtU','zEJPW','1738160TMnDHu','3279176XvvlwC','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','NnWSL','from','stitchWebmFiles.js','ZlkwY','length','aYVNg','7745706oeZqXl','BceRY','floor','LlRqj','cUTIV','vsVwB','xnDfS','DHXtA','alloc','pow','push','maxTimestampTicks','log','slice','ALIdg','uEBCT','346779ifrpcS','96582tOEURu','WGiRz','WLoOh','YfMRk','cesHz','kwxPs','fuzkW','166546kEdldn','bodyAfterTimestamp','132sQRfWh','TGTAm','rgsZE','cPRYV','Mofes','clusters','qfcAK','ztsUU','concat','sVqxz','FWLEi','bLLeI','WSbni','WWUNu','KVfPb','endsWith','JlClN','PqqQJ','tRROp','maxTicks','PwIsp','KRFwl','copy','nhWAA','min','CHdcf','\x20files\x20->\x20','RtbOb','9gSznLJ','kPSGH'];_0x5957=function(){return _0xb3f57c;};return _0x5957();}function writeUnknownSizeVint(_0x29466b){const _0x389c22=_0x417e,_0x2b860c={'qGFtU':function(_0xc38ea7,_0x15cb80){return _0xc38ea7>>_0x15cb80;},'GMNfb':function(_0x5d4379,_0x19a85b){return _0x5d4379-_0x19a85b;}},_0x13a552=Buffer['alloc'](_0x29466b,0xff);return _0x13a552[0x0]=_0x2b860c[_0x389c22(0x118)](0xff,_0x2b860c['GMNfb'](_0x29466b,0x1)),_0x13a552;}function uintSize(_0x412914){const _0x19e786=_0x417e;if(_0x412914===0x0)return 0x1;let _0x29d957=0x0,_0x4a5f5e=_0x412914;while(_0x4a5f5e>0x0){_0x29d957++,_0x4a5f5e=Math[_0x19e786(0x125)](_0x4a5f5e/0x100);}return _0x29d957;}function findTimestampScale(_0xc37235,_0x23fa68){const _0x490351=_0x417e,_0x2212b0={'MDWUj':function(_0x4e888f,_0x35d431){return _0x4e888f+_0x35d431;},'ewyDe':function(_0x5325ed,_0x271eab,_0x4f79db){return _0x5325ed(_0x271eab,_0x4f79db);},'Qsewe':function(_0x3f7bcd,_0x1110c5){return _0x3f7bcd===_0x1110c5;},'DHXtA':function(_0x5c87a9,_0x442cfe,_0x2befae){return _0x5c87a9(_0x442cfe,_0x2befae);},'iUbCL':function(_0x15cd79,_0x4c1cc7){return _0x15cd79+_0x4c1cc7;},'xPTYo':function(_0x4584ee,_0x225f99,_0x1cd704,_0xeacb06){return _0x4584ee(_0x225f99,_0x1cd704,_0xeacb06);},'uEBCT':function(_0x163635,_0x3c45ef){return _0x163635+_0x3c45ef;}};let _0x4a615a=_0x23fa68;const _0x5ba1b1=Math['min'](_0xc37235['length'],_0x2212b0[_0x490351(0x10b)](_0x23fa68,0x2710));while(_0x4a615a<_0x5ba1b1){const [_0xf6c6df,_0x1be466]=readId(_0xc37235,_0x4a615a),[_0x33cd7f,_0xa72dcd]=_0x2212b0['ewyDe'](readVint,_0xc37235,_0x4a615a+_0x1be466);if(_0x2212b0['Qsewe'](_0xf6c6df,ID_INFO)){let _0x1ad465=_0x4a615a+_0x1be466+_0xa72dcd;const _0x2bfc99=_0x1ad465+_0x33cd7f;while(_0x1ad465<_0x2bfc99){const [_0x3b3026,_0x52148a]=_0x2212b0[_0x490351(0x12a)](readId,_0xc37235,_0x1ad465),[_0x122fa8,_0x594e64]=readVint(_0xc37235,_0x2212b0[_0x490351(0x112)](_0x1ad465,_0x52148a));if(_0x2212b0[_0x490351(0x111)](_0x3b3026,ID_TIMESTAMP_SCALE))return _0x2212b0['xPTYo'](readUint,_0xc37235,_0x1ad465+_0x52148a+_0x594e64,_0x122fa8);_0x1ad465+=_0x2212b0[_0x490351(0x10b)](_0x52148a,_0x594e64)+_0x122fa8;}break;}if(_0x2212b0['Qsewe'](_0xf6c6df,ID_CLUSTER))break;if(_0x2212b0['ewyDe'](isUnknownSize,_0x33cd7f,_0xa72dcd))break;_0x4a615a+=_0x2212b0[_0x490351(0x132)](_0x1be466+_0xa72dcd,_0x33cd7f);}return 0xf4240;}function findFirstClusterOffset(_0x329377,_0x354854){const _0x5bf85b=_0x417e,_0x3b8ba0={'ZlkwY':function(_0x348801,_0x284562){return _0x348801===_0x284562;},'DVxBR':function(_0x229cb4,_0x5b55d6,_0x4938e8){return _0x229cb4(_0x5b55d6,_0x4938e8);},'PwIsp':function(_0x1f6d13,_0x510e12){return _0x1f6d13+_0x510e12;},'mCfyA':function(_0x2b64c0,_0x39692d){return _0x2b64c0+_0x39692d;}};let _0x118833=_0x354854;while(_0x118833<_0x329377[_0x5bf85b(0x121)]){const [_0x475fb1,_0x5606d7]=readId(_0x329377,_0x118833);if(_0x3b8ba0[_0x5bf85b(0x120)](_0x475fb1,ID_CLUSTER))return _0x118833;const [_0x44c7c0,_0x1b8b85]=_0x3b8ba0['DVxBR'](readVint,_0x329377,_0x3b8ba0[_0x5bf85b(0xfd)](_0x118833,_0x5606d7));if(_0x3b8ba0['DVxBR'](isUnknownSize,_0x44c7c0,_0x1b8b85))return _0x118833;_0x118833+=_0x3b8ba0['mCfyA'](_0x5606d7+_0x1b8b85,_0x44c7c0);}return _0x329377['length'];}function findClusterEnd(_0x5e7588,_0x1a37f0,_0x3b74ca,_0x198951){const _0x56ddaf=_0x417e,_0x56e4f4={'EdOAX':function(_0x2803b1,_0x3e14cb){return _0x2803b1+_0x3e14cb;},'utzaR':function(_0x4f6c1d,_0x2e658a){return _0x4f6c1d<_0x2e658a;},'xnDfS':function(_0x25d335,_0x38296b,_0x259e44){return _0x25d335(_0x38296b,_0x259e44);},'WYzWi':function(_0x2f2f21,_0x3c5b7c){return _0x2f2f21+_0x3c5b7c;},'JlClN':function(_0x3c71dc,_0x581d74){return _0x3c71dc+_0x581d74;}};if(!isUnknownSize(_0x3b74ca,_0x198951))return _0x56e4f4['EdOAX'](_0x1a37f0,_0x3b74ca);const _0x324177=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x3c1526=_0x1a37f0;while(_0x56e4f4['utzaR'](_0x3c1526,_0x5e7588['length']-0x4)){const [_0x499ff9,_0x13339b]=_0x56e4f4[_0x56ddaf(0x129)](readId,_0x5e7588,_0x3c1526);if(_0x324177['has'](_0x499ff9))return _0x3c1526;const [_0x498ec6,_0x394a45]=readVint(_0x5e7588,_0x3c1526+_0x13339b);if(isUnknownSize(_0x498ec6,_0x394a45))return _0x5e7588['length'];_0x3c1526+=_0x56e4f4['WYzWi'](_0x56e4f4[_0x56ddaf(0xf9)](_0x13339b,_0x394a45),_0x498ec6);}return _0x5e7588['length'];}function extractClusters(_0x276cc5,_0x4c1457){const _0xc79909=_0x417e,_0x113009={'kwxPs':function(_0x1ad100,_0x40336d){return _0x1ad100<_0x40336d;},'QQyOI':function(_0x3b8a1f,_0x3dfc94){return _0x3b8a1f===_0x3dfc94;},'ioZEZ':function(_0x5d6f29,_0x56a523){return _0x5d6f29!==_0x56a523;},'sMhyD':function(_0x45c793,_0x39cb73){return _0x45c793+_0x39cb73;},'WWUNu':function(_0x219bc0,_0x3b5824,_0x149ff6,_0x46a277,_0x3e3e5e){return _0x219bc0(_0x3b5824,_0x149ff6,_0x46a277,_0x3e3e5e);},'FWLEi':function(_0x1d568e,_0x888278,_0x1d99fa){return _0x1d568e(_0x888278,_0x1d99fa);},'WGiRz':function(_0x3e0a01,_0x40c81d){return _0x3e0a01+_0x40c81d;},'PqqQJ':function(_0x11170f,_0x2992a6){return _0x11170f+_0x2992a6;},'zfmyL':function(_0x14fe81,_0xc9e5a1){return _0x14fe81===_0xc9e5a1;},'vtFfZ':function(_0x22012a,_0x265e44){return _0x22012a+_0x265e44;},'hqkXy':function(_0x2bea2f,_0x19664e){return _0x2bea2f<_0x19664e;},'jBKfh':function(_0x581115,_0x436f55,_0x12b6ad){return _0x581115(_0x436f55,_0x12b6ad);},'VkPbx':function(_0x7452d8,_0x1b442e){return _0x7452d8>=_0x1b442e;},'KVfPb':function(_0x205ac1,_0x2b62de){return _0x205ac1+_0x2b62de;},'rNARH':function(_0x4aca4a,_0x24e536){return _0x4aca4a+_0x24e536;},'cesHz':function(_0xb37274,_0x3e432a,_0x629a9d){return _0xb37274(_0x3e432a,_0x629a9d);},'PwozQ':function(_0x998d5e,_0x1ce8c7){return _0x998d5e+_0x1ce8c7;}},_0x380c4d=[],_0x48a45b=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x49ec60=0x0;while(_0x113009['kwxPs'](_0x49ec60,_0x276cc5[_0xc79909(0x121)])){const _0x213b3e=_0x276cc5['indexOf'](_0x48a45b,_0x49ec60);if(_0x113009['QQyOI'](_0x213b3e,-0x1))break;const [_0x1191b1,_0x3fe460]=readId(_0x276cc5,_0x213b3e);if(_0x113009[_0xc79909(0x115)](_0x1191b1,ID_CLUSTER)){_0x49ec60=_0x213b3e+0x1;continue;}const [_0x4b5df1,_0x11654b]=readVint(_0x276cc5,_0x213b3e+_0x3fe460),_0x115a66=_0x113009[_0xc79909(0x110)](_0x213b3e,_0x3fe460)+_0x11654b,_0x53c2c9=_0x113009[_0xc79909(0xf6)](findClusterEnd,_0x276cc5,_0x115a66,_0x4b5df1,_0x11654b);let _0x3fafc7=_0x115a66,_0x4c06c0=0x0,_0x28bcda=0x2,_0x1dc9a9=![],_0xd3f8c8=Buffer[_0xc79909(0x12b)](0x0),_0x44a4c5=Buffer['alloc'](0x0);while(_0x113009[_0xc79909(0x139)](_0x3fafc7,_0x53c2c9)){const [_0x54a420,_0x33f436]=_0x113009[_0xc79909(0xf3)](readId,_0x276cc5,_0x3fafc7),[_0x5ef286,_0x2a2adc]=readVint(_0x276cc5,_0x113009[_0xc79909(0x135)](_0x3fafc7,_0x33f436));if(_0x113009['QQyOI'](_0x54a420,ID_TIMESTAMP)){_0x4c06c0=readUint(_0x276cc5,_0x113009['WGiRz'](_0x3fafc7,_0x33f436)+_0x2a2adc,_0x5ef286),_0x28bcda=_0x5ef286,_0x1dc9a9=!![],_0xd3f8c8=_0x276cc5['slice'](_0x115a66,_0x3fafc7);const _0x1eb9c2=_0x113009['PqqQJ'](_0x113009[_0xc79909(0xfa)](_0x3fafc7+_0x33f436,_0x2a2adc),_0x5ef286);_0x44a4c5=_0x276cc5['slice'](_0x1eb9c2,_0x53c2c9);break;}if(_0x113009['zfmyL'](_0x54a420,ID_CLUSTER))break;if(isUnknownSize(_0x5ef286,_0x2a2adc))break;_0x3fafc7+=_0x113009['vtFfZ'](_0x33f436,_0x2a2adc)+_0x5ef286;}!_0x1dc9a9&&(_0x44a4c5=_0x276cc5[_0xc79909(0x130)](_0x115a66,_0x53c2c9));let _0x343cc5=_0x4c06c0;_0x3fafc7=_0x115a66;while(_0x113009[_0xc79909(0x116)](_0x3fafc7,_0x53c2c9)){const [_0x2d8ea4,_0x3a86cd]=_0x113009['jBKfh'](readId,_0x276cc5,_0x3fafc7),[_0x427d1d,_0x487a00]=readVint(_0x276cc5,_0x3fafc7+_0x3a86cd);if(_0x2d8ea4===ID_SIMPLE_BLOCK&&_0x113009['VkPbx'](_0x427d1d,0x4)){const _0x11db71=_0x3fafc7+_0x3a86cd+_0x487a00,[,_0x3eae47]=_0x113009[_0xc79909(0xf3)](readVint,_0x276cc5,_0x11db71),_0x2bd969=_0x276cc5['readInt16BE'](_0x113009[_0xc79909(0xf7)](_0x11db71,_0x3eae47)),_0x27d859=_0x113009['rNARH'](_0x4c06c0,_0x2bd969);if(_0x27d859>_0x343cc5)_0x343cc5=_0x27d859;}if(_0x2d8ea4===ID_CLUSTER)break;if(_0x113009[_0xc79909(0x138)](isUnknownSize,_0x427d1d,_0x487a00))break;_0x3fafc7+=_0x113009['PwozQ'](_0x3a86cd,_0x487a00)+_0x427d1d;}_0x380c4d['push']({'timestamp':_0x4c06c0,'maxTicks':_0x343cc5,'bodyBeforeTimestamp':_0xd3f8c8,'bodyAfterTimestamp':_0x44a4c5,'timestampElementSize':_0x28bcda}),_0x49ec60=_0x53c2c9;}return _0x380c4d;}function parseWebm(_0x106ec1){const _0x2c9f6a=_0x417e,_0x7c4aec={'LlRqj':function(_0x1399de,_0x577cea,_0x692aa3){return _0x1399de(_0x577cea,_0x692aa3);},'ncVCm':function(_0x45ad7d,_0x58a2d2){return _0x45ad7d+_0x58a2d2;},'ALIdg':function(_0x3c15a9,_0x5a8ae9){return _0x3c15a9+_0x5a8ae9;}};let _0x30b575=0x0;const [,_0x48d8fd]=readId(_0x106ec1,_0x30b575),[_0x4e13da,_0x490923]=_0x7c4aec[_0x2c9f6a(0x126)](readVint,_0x106ec1,_0x30b575+_0x48d8fd);_0x30b575+=_0x48d8fd+_0x490923+_0x4e13da;const [_0x6be127,_0x4deff1]=_0x7c4aec['LlRqj'](readId,_0x106ec1,_0x30b575);if(_0x6be127!==ID_SEGMENT)return null;const [,_0x4a9183]=readVint(_0x106ec1,_0x7c4aec[_0x2c9f6a(0x108)](_0x30b575,_0x4deff1)),_0x349303=_0x7c4aec[_0x2c9f6a(0x108)](_0x7c4aec[_0x2c9f6a(0x131)](_0x30b575,_0x4deff1),_0x4a9183),_0x1a37f3=_0x7c4aec[_0x2c9f6a(0x126)](findTimestampScale,_0x106ec1,_0x349303),_0x400d7b=findFirstClusterOffset(_0x106ec1,_0x349303),_0x494f5d=_0x106ec1['slice'](0x0,_0x400d7b),_0x3fa5dd=_0x7c4aec[_0x2c9f6a(0x126)](extractClusters,_0x106ec1,_0x1a37f3);let _0x425d7f=0x0;for(const _0x2d2aa0 of _0x3fa5dd){if(_0x2d2aa0[_0x2c9f6a(0xfc)]>_0x425d7f)_0x425d7f=_0x2d2aa0[_0x2c9f6a(0xfc)];}return{'header':_0x494f5d,'clusters':_0x3fa5dd,'timestampScale':_0x1a37f3,'maxTimestampTicks':_0x425d7f};}function buildCluster(_0x45f650,_0x49bf6b,_0x525b98){const _0x4ec1a0=_0x417e,_0x53f2fb={'YfMRk':function(_0x29d1bd,_0x46e182){return _0x29d1bd(_0x46e182);},'vZClf':function(_0x5dae77,_0x48def6,_0x368570){return _0x5dae77(_0x48def6,_0x368570);}},_0x9e9c30=Buffer[_0x4ec1a0(0x11e)]([0x1f,0x43,0xb6,0x75]),_0x5b3aae=Math[_0x4ec1a0(0x10a)](0x4,uintSize(_0x45f650)),_0x2fb750=Buffer['concat']([Buffer[_0x4ec1a0(0x11e)]([ID_TIMESTAMP]),_0x53f2fb[_0x4ec1a0(0x137)](writeVint,_0x5b3aae),_0x53f2fb['vZClf'](writeUint,_0x45f650,_0x5b3aae)]),_0xc61213=Buffer['concat']([_0x49bf6b,_0x2fb750,_0x525b98]),_0x396786=_0x53f2fb[_0x4ec1a0(0x137)](writeVint,_0xc61213[_0x4ec1a0(0x121)]);return Buffer['concat']([_0x9e9c30,_0x396786,_0xc61213]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x111d9b){const _0x18479f=_0x417e,_0x208dd5={'fuzkW':function(_0x420de0,_0x20d7f8){return _0x420de0+_0x20d7f8;},'YrLFP':function(_0x5f66fd,_0x25c636){return _0x5f66fd+_0x25c636;},'NnWSL':function(_0x53283c,_0x4f0e78,_0x3a0526){return _0x53283c(_0x4f0e78,_0x3a0526);},'sVqxz':function(_0xd53730,_0x34cae3){return _0xd53730+_0x34cae3;},'ztsUU':function(_0x199c4c,_0x2b1889){return _0x199c4c(_0x2b1889);},'zTLDG':function(_0x2141ed,_0x23c2e2){return _0x2141ed+_0x23c2e2;},'BceRY':function(_0x1aca96,_0x21c110){return _0x1aca96<_0x21c110;},'rgsZE':function(_0x43c5d3,_0x5ee586){return _0x43c5d3+_0x5ee586;},'igqjI':function(_0x3a4091,_0x4d04e3){return _0x3a4091===_0x4d04e3;},'VWhgs':function(_0x5e98d0,_0x44a3ff,_0x2abb31){return _0x5e98d0(_0x44a3ff,_0x2abb31);},'nhWAA':function(_0x56e2b5,_0x18a111){return _0x56e2b5<_0x18a111;},'cgXGR':function(_0x3337fe,_0x38841a,_0xfb6f32){return _0x3337fe(_0x38841a,_0xfb6f32);},'PxLcQ':function(_0x45bd03,_0x369f1c){return _0x45bd03+_0x369f1c;},'GvUYn':function(_0x3e262c,_0xc8eec1){return _0x3e262c+_0xc8eec1;},'JkROy':function(_0x21ad66,_0xd0624f,_0x1a92f3){return _0x21ad66(_0xd0624f,_0x1a92f3);},'hZoZm':function(_0x398047,_0x57598a){return _0x398047+_0x57598a;}},_0x4843f7=Buffer['from'](_0x111d9b);let _0x15820f=0x0;const [,_0xab8b2d]=readId(_0x4843f7,_0x15820f),[_0x14a775,_0x3513cc]=readVint(_0x4843f7,_0x15820f+_0xab8b2d),_0x260acf=_0x208dd5[_0x18479f(0x13a)](_0x208dd5[_0x18479f(0x113)](_0x15820f,_0xab8b2d),_0x3513cc)+_0x14a775,[,_0x215625]=readId(_0x4843f7,_0x260acf),[,_0x2344ab]=_0x208dd5[_0x18479f(0x11d)](readVint,_0x4843f7,_0x208dd5[_0x18479f(0xf2)](_0x260acf,_0x215625)),_0x18aba3=_0x208dd5['YrLFP'](_0x208dd5[_0x18479f(0xf2)](_0x260acf,_0x215625),_0x2344ab),_0x2ac032=_0x208dd5[_0x18479f(0x144)](writeUnknownSizeVint,_0x2344ab);_0x2ac032[_0x18479f(0xff)](_0x4843f7,_0x208dd5[_0x18479f(0x113)](_0x260acf,_0x215625));let _0x238408=_0x18aba3;const _0x58b3b8=Math[_0x18479f(0x101)](_0x4843f7[_0x18479f(0x121)],_0x208dd5['zTLDG'](_0x18aba3,0x2710));while(_0x208dd5[_0x18479f(0x124)](_0x238408,_0x58b3b8)){const [_0x43be0c,_0x5c8845]=_0x208dd5['NnWSL'](readId,_0x4843f7,_0x238408),[_0x14a63f,_0x217e43]=readVint(_0x4843f7,_0x208dd5['rgsZE'](_0x238408,_0x5c8845));if(_0x208dd5['igqjI'](_0x43be0c,ID_CLUSTER))break;if(_0x208dd5['VWhgs'](isUnknownSize,_0x14a63f,_0x217e43))break;if(_0x43be0c===ID_INFO){const _0x754a97=_0x208dd5['sVqxz'](_0x208dd5['zTLDG'](_0x238408,_0x5c8845),_0x217e43),_0x3057e3=_0x754a97+_0x14a63f,_0x40c4ad=[];let _0x3980f2=_0x754a97;while(_0x208dd5[_0x18479f(0x100)](_0x3980f2,_0x3057e3)){const [_0xa9aa26,_0xa5ecec]=readId(_0x4843f7,_0x3980f2),[_0x32c058,_0x2cfb9a]=_0x208dd5['cgXGR'](readVint,_0x4843f7,_0x208dd5['PxLcQ'](_0x3980f2,_0xa5ecec)),_0x15fcf5=_0x208dd5['GvUYn'](_0x208dd5[_0x18479f(0x10c)](_0xa5ecec,_0x2cfb9a),_0x32c058);_0xa9aa26!==ID_DURATION&&_0x40c4ad[_0x18479f(0x12d)](_0x4843f7[_0x18479f(0x130)](_0x3980f2,_0x3980f2+_0x15fcf5)),_0x3980f2+=_0x15fcf5;}const _0x543105=Buffer['concat'](_0x40c4ad),_0x2f9083=Buffer[_0x18479f(0xf1)]([_0x4843f7['slice'](_0x238408,_0x208dd5[_0x18479f(0x13f)](_0x238408,_0x5c8845)),_0x208dd5['JkROy'](writeVint,_0x543105['length'],_0x217e43)]);return Buffer['concat']([_0x4843f7['slice'](0x0,_0x238408),_0x2f9083,_0x543105,_0x4843f7['slice'](_0x3057e3)]);}_0x238408+=_0x208dd5['hZoZm'](_0x5c8845,_0x217e43)+_0x14a63f;}return _0x4843f7;}export function stitchWebmFiles(_0x5592da,_0x4342c7){const _0x2969be=_0x417e,_0x29184c={'CHdcf':function(_0x1b9052,_0x318e2e){return _0x1b9052(_0x318e2e);},'MmEwy':function(_0x3a584a,_0x4974d1){return _0x3a584a<_0x4974d1;},'drQpM':function(_0x3e756d,_0xc50026,_0x2a7c9d,_0x4b89fa){return _0x3e756d(_0xc50026,_0x2a7c9d,_0x4b89fa);},'tRROp':function(_0x587dba,_0x1b2b3d){return _0x587dba+_0x1b2b3d;},'aYVNg':function(_0x309de7,_0x4f7015,_0x3f8132){return _0x309de7(_0x4f7015,_0x3f8132);}};if(_0x5592da[_0x2969be(0x121)]<=0x1)return![];const _0x188a57=[];for(const _0x57da5d of _0x5592da){const _0x4f9828=readFileSync(_0x57da5d),_0x195637=parseWebm(_0x4f9828);if(!_0x195637||_0x195637['clusters']['length']===0x0)return![];_0x188a57[_0x2969be(0x12d)](_0x195637);}const _0x2ca2e2=_0x188a57[0x0],_0x3e34d4=_0x29184c[_0x2969be(0x102)](rebuildHeaderWithoutDuration,_0x2ca2e2['header']),_0x4362c2=[_0x3e34d4];let _0x33534b=0x0;for(let _0x525bf5=0x0;_0x29184c['MmEwy'](_0x525bf5,_0x188a57['length']);_0x525bf5++){const _0x14a7cd=_0x188a57[_0x525bf5];for(const _0x4e324b of _0x14a7cd[_0x2969be(0x142)]){const _0x24f436=_0x4e324b['timestamp']+_0x33534b;_0x4362c2[_0x2969be(0x12d)](_0x29184c['drQpM'](buildCluster,_0x24f436,_0x4e324b['bodyBeforeTimestamp'],_0x4e324b[_0x2969be(0x13c)]));}const _0x1683bb=0x1e;_0x33534b+=_0x29184c[_0x2969be(0xfb)](_0x14a7cd[_0x2969be(0x12e)],_0x1683bb);}return _0x29184c[_0x2969be(0x122)](writeFileSync,_0x4342c7,Buffer['concat'](_0x4362c2)),!![];}function _0x417e(_0x599636,_0x257d1e){_0x599636=_0x599636-0xf1;const _0x5957ab=_0x5957();let _0x417e63=_0x5957ab[_0x599636];return _0x417e63;}if(process['argv'][0x1]?.[_0x38ff66(0xf8)](_0x38ff66(0x114))||process['argv'][0x1]?.[_0x38ff66(0xf8)](_0x38ff66(0x11f))){const args=process['argv']['slice'](0x2);args['length']<0x3&&(console[_0x38ff66(0x109)](_0x38ff66(0x11c)),process['exit'](0x1));const output=args[args[_0x38ff66(0x121)]-0x1],inputs=args[_0x38ff66(0x130)](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x38ff66(0x12f)]('Stitched\x20'+inputs[_0x38ff66(0x121)]+_0x38ff66(0x103)+output):console['log']('Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.');}
|
|
1
|
+
const _0x168b9e=_0x3edf;(function(_0x1897de,_0x43128b){const _0x5f0b01=_0x3edf,_0x538ef7=_0x1897de();while(!![]){try{const _0x47b4e3=parseInt(_0x5f0b01(0x212))/0x1*(-parseInt(_0x5f0b01(0x1fe))/0x2)+parseInt(_0x5f0b01(0x1eb))/0x3+-parseInt(_0x5f0b01(0x1fb))/0x4*(parseInt(_0x5f0b01(0x1f4))/0x5)+-parseInt(_0x5f0b01(0x1d6))/0x6+-parseInt(_0x5f0b01(0x1db))/0x7+parseInt(_0x5f0b01(0x218))/0x8+-parseInt(_0x5f0b01(0x213))/0x9*(-parseInt(_0x5f0b01(0x208))/0xa);if(_0x47b4e3===_0x43128b)break;else _0x538ef7['push'](_0x538ef7['shift']());}catch(_0x14b82){_0x538ef7['push'](_0x538ef7['shift']());}}}(_0x1881,0xcd172));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(_0xc5e68b,_0x356fc4){const _0x527c1e=_0x3edf,_0x5c094e={'RpDXj':function(_0x295af2,_0x2b558d){return _0x295af2>=_0x2b558d;},'quGZg':function(_0x388a71,_0x2096dc){return _0x388a71<=_0x2096dc;},'VTEic':function(_0x14672f,_0x192400){return _0x14672f&_0x192400;},'eqUMK':function(_0x4a8db7,_0x381f1a){return _0x4a8db7>_0x381f1a;},'EulbX':function(_0x2ad09b,_0x177e7d){return _0x2ad09b&_0x177e7d;},'QCVMH':function(_0x6e72bc,_0x1bee51){return _0x6e72bc-_0x1bee51;},'CbFyB':function(_0x500cc0,_0x10b8b9){return _0x500cc0+_0x10b8b9;},'rOiqi':function(_0x4fb298,_0x207fff){return _0x4fb298*_0x207fff;}};if(_0x5c094e['RpDXj'](_0x356fc4,_0xc5e68b['length']))return[0x0,0x0];const _0x3dd345=_0xc5e68b[_0x356fc4];let _0x5afe60=0x1,_0x38bc19=0x80;while(_0x5c094e['quGZg'](_0x5afe60,0x8)&&!_0x5c094e['VTEic'](_0x3dd345,_0x38bc19)){_0x5afe60++,_0x38bc19>>=0x1;}if(_0x5c094e[_0x527c1e(0x204)](_0x356fc4+_0x5afe60,_0xc5e68b['length']))return[0x0,0x0];let _0x97df55=_0x5c094e[_0x527c1e(0x20c)](_0x3dd345,_0x5c094e['QCVMH'](_0x38bc19,0x1));for(let _0x3de62b=0x1;_0x3de62b<_0x5afe60;_0x3de62b++){_0x97df55=_0x5c094e[_0x527c1e(0x1dc)](_0x5c094e[_0x527c1e(0x206)](_0x97df55,0x100),_0xc5e68b[_0x5c094e[_0x527c1e(0x1dc)](_0x356fc4,_0x3de62b)]);}return[_0x97df55,_0x5afe60];}function readId(_0xcc6f2,_0x121a18){const _0xf2501=_0x3edf,_0x9ef45d={'svBNx':function(_0x4ee6a0,_0x7a3b2e){return _0x4ee6a0>=_0x7a3b2e;},'fvRwn':function(_0x101fa9,_0x28ac30){return _0x101fa9*_0x28ac30;},'bcHBv':function(_0x1271be,_0x5c563b){return _0x1271be+_0x5c563b;}};if(_0x121a18>=_0xcc6f2['length'])return[0x0,0x0];const _0x5421e2=_0xcc6f2[_0x121a18];let _0x571329;if(_0x5421e2>=0x80)_0x571329=0x1;else{if(_0x5421e2>=0x40)_0x571329=0x2;else{if(_0x5421e2>=0x20)_0x571329=0x3;else{if(_0x9ef45d[_0xf2501(0x209)](_0x5421e2,0x10))_0x571329=0x4;else return[_0x5421e2,0x1];}}}if(_0x121a18+_0x571329>_0xcc6f2['length'])return[0x0,0x0];let _0x21df9b=0x0;for(let _0x16009f=0x0;_0x16009f<_0x571329;_0x16009f++){_0x21df9b=_0x9ef45d[_0xf2501(0x1e6)](_0x21df9b,0x100)+_0xcc6f2[_0x9ef45d[_0xf2501(0x1f6)](_0x121a18,_0x16009f)];}return[_0x21df9b,_0x571329];}function readUint(_0xb9153a,_0x4805ae,_0x534c66){const _0x370afb=_0x3edf,_0x4baea6={'UiqpU':function(_0x281313,_0x318e3e){return _0x281313*_0x318e3e;},'iKXbk':function(_0x1f3142,_0x468c02){return _0x1f3142+_0x468c02;}};let _0x120320=0x0;for(let _0x4dec5b=0x0;_0x4dec5b<_0x534c66;_0x4dec5b++){_0x120320=_0x4baea6['UiqpU'](_0x120320,0x100)+_0xb9153a[_0x4baea6[_0x370afb(0x211)](_0x4805ae,_0x4dec5b)];}return _0x120320;}function isUnknownSize(_0x1aad58,_0x27b495){const _0x5b3882=_0x3edf,_0x5a50bd={'VOSeq':function(_0xf93055,_0x3da11a){return _0xf93055===_0x3da11a;}};return _0x5a50bd['VOSeq'](_0x1aad58,Math[_0x5b3882(0x1fc)](0x2,0x7*_0x27b495)-0x1);}function writeVint(_0x2f8542,_0x244cf6){const _0x512031=_0x3edf,_0x12fd94={'zvPEb':function(_0x182423,_0x2477e1){return _0x182423&_0x2477e1;},'DLwKM':function(_0x3561cf,_0x2c55ea){return _0x3561cf-_0x2c55ea;}};let _0x1fcb85=_0x244cf6||0x1;while(Math[_0x512031(0x1fc)](0x2,0x7*_0x1fcb85)-0x2<_0x2f8542)_0x1fcb85++;const _0x25fee6=Buffer[_0x512031(0x1e5)](_0x1fcb85);for(let _0x2466c4=_0x1fcb85-0x1;_0x2466c4>=0x0;_0x2466c4--){_0x25fee6[_0x2466c4]=_0x12fd94[_0x512031(0x1e3)](_0x2f8542,0xff),_0x2f8542=Math[_0x512031(0x1e8)](_0x2f8542/0x100);}return _0x25fee6[0x0]|=0x1<<_0x12fd94[_0x512031(0x1fd)](0x8,_0x1fcb85),_0x25fee6;}function writeUint(_0x48f498,_0x53fdb4){const _0x3317ba=_0x3edf,_0x19181b={'VNRPw':function(_0x4664b8,_0x2b02f7){return _0x4664b8>=_0x2b02f7;}},_0x5cff66=Buffer[_0x3317ba(0x1e5)](_0x53fdb4);for(let _0x2b857f=_0x53fdb4-0x1;_0x19181b[_0x3317ba(0x202)](_0x2b857f,0x0);_0x2b857f--){_0x5cff66[_0x2b857f]=_0x48f498&0xff,_0x48f498=Math['floor'](_0x48f498/0x100);}return _0x5cff66;}function writeUnknownSizeVint(_0x55685c){const _0x386881={'usZSN':function(_0x44aee3,_0x3f0e7a){return _0x44aee3>>_0x3f0e7a;}},_0x4dfd75=Buffer['alloc'](_0x55685c,0xff);return _0x4dfd75[0x0]=_0x386881['usZSN'](0xff,_0x55685c-0x1),_0x4dfd75;}function uintSize(_0x2f6217){const _0x33007c=_0x3edf,_0x30d13f={'gUCat':function(_0x73e9a0,_0x2fb36f){return _0x73e9a0===_0x2fb36f;}};if(_0x30d13f[_0x33007c(0x219)](_0x2f6217,0x0))return 0x1;let _0x2c270e=0x0,_0x4a1baf=_0x2f6217;while(_0x4a1baf>0x0){_0x2c270e++,_0x4a1baf=Math['floor'](_0x4a1baf/0x100);}return _0x2c270e;}function findTimestampScale(_0x3f21f7,_0x3209bc){const _0x4975cd=_0x3edf,_0x67666c={'swtnu':function(_0x37948c,_0x25b609){return _0x37948c+_0x25b609;},'CqlOH':function(_0x2807c7,_0x28421e){return _0x2807c7<_0x28421e;},'vZQoR':function(_0x4d004d,_0x3539ac){return _0x4d004d<_0x3539ac;},'WviNO':function(_0x28e7b9,_0x2215f1,_0xfd9336){return _0x28e7b9(_0x2215f1,_0xfd9336);},'TaoGx':function(_0x4db7ff,_0x4c444b,_0x3901c6){return _0x4db7ff(_0x4c444b,_0x3901c6);},'JYZrF':function(_0x1e5c8b,_0x1343c8){return _0x1e5c8b===_0x1343c8;},'mnOwi':function(_0x517ecc,_0x687541){return _0x517ecc+_0x687541;},'qIWrb':function(_0x44f2a4,_0xd942aa){return _0x44f2a4+_0xd942aa;}};let _0x9eac46=_0x3209bc;const _0x3ea0be=Math['min'](_0x3f21f7['length'],_0x67666c[_0x4975cd(0x205)](_0x3209bc,0x2710));while(_0x67666c['CqlOH'](_0x9eac46,_0x3ea0be)){const [_0x3146ea,_0x1f1453]=readId(_0x3f21f7,_0x9eac46),[_0x2339a5,_0x555174]=readVint(_0x3f21f7,_0x67666c[_0x4975cd(0x205)](_0x9eac46,_0x1f1453));if(_0x3146ea===ID_INFO){let _0x29269e=_0x67666c[_0x4975cd(0x205)](_0x9eac46,_0x1f1453)+_0x555174;const _0x58968d=_0x29269e+_0x2339a5;while(_0x67666c['vZQoR'](_0x29269e,_0x58968d)){const [_0x3121ad,_0x55cbed]=_0x67666c[_0x4975cd(0x20d)](readId,_0x3f21f7,_0x29269e),[_0x1cb2b5,_0x23a354]=_0x67666c[_0x4975cd(0x1f0)](readVint,_0x3f21f7,_0x29269e+_0x55cbed);if(_0x67666c['JYZrF'](_0x3121ad,ID_TIMESTAMP_SCALE))return readUint(_0x3f21f7,_0x67666c['swtnu'](_0x29269e,_0x55cbed)+_0x23a354,_0x1cb2b5);_0x29269e+=_0x67666c['mnOwi'](_0x67666c[_0x4975cd(0x216)](_0x55cbed,_0x23a354),_0x1cb2b5);}break;}if(_0x67666c[_0x4975cd(0x1e7)](_0x3146ea,ID_CLUSTER))break;if(isUnknownSize(_0x2339a5,_0x555174))break;_0x9eac46+=_0x1f1453+_0x555174+_0x2339a5;}return 0xf4240;}function _0x1881(){const _0x428dad=['slice','\x20files\x20->\x20','iKXbk','7151RfjUeH','24300819yIssGx','readInt16BE','max','qIWrb','qLYPK','12821944qmIEps','gUCat','concat','UdTru','sajCy','CeoXf','4841730oFdfTE','JObwx','log','Stitched\x20','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','2366756NGYLCN','CbFyB','from','jbKYP','clusters','JmQgo','mlrdL','uwnXq','zvPEb','vROHz','alloc','fvRwn','JYZrF','floor','NYEzV','aSyzc','1332975RTPNNU','Vhgou','length','lMvYT','XZrzQ','TaoGx','LSOpX','bodyBeforeTimestamp','VtsxC','7302820aZBRNj','maxTimestampTicks','bcHBv','JyydD','exit','odsdv','stitchWebmFiles.ts','4zGKPhr','pow','DLwKM','364VudiFj','LkdAr','push','fklRb','VNRPw','error','eqUMK','swtnu','rOiqi','UWvta','10mlOJNo','svBNx','indexOf','XVJMx','EulbX','WviNO','endsWith'];_0x1881=function(){return _0x428dad;};return _0x1881();}function findFirstClusterOffset(_0xb59eba,_0x3c6d1a){const _0x2ebb0c=_0x3edf,_0x112b5c={'XZrzQ':function(_0x51f622,_0x48f73b,_0x3fa2f8){return _0x51f622(_0x48f73b,_0x3fa2f8);},'sajCy':function(_0xa1b2ec,_0x1dbc44){return _0xa1b2ec===_0x1dbc44;},'cQHRP':function(_0x3bc0fb,_0x38c163,_0x33698c){return _0x3bc0fb(_0x38c163,_0x33698c);},'UWvta':function(_0x55fa83,_0x5d1946){return _0x55fa83+_0x5d1946;},'lMvYT':function(_0x4b12d4,_0x2af46c,_0x57ed1d){return _0x4b12d4(_0x2af46c,_0x57ed1d);},'LSOpX':function(_0x1d6f8a,_0x5e4557){return _0x1d6f8a+_0x5e4557;}};let _0x9c6291=_0x3c6d1a;while(_0x9c6291<_0xb59eba[_0x2ebb0c(0x1ed)]){const [_0x24570b,_0x2f6a95]=_0x112b5c[_0x2ebb0c(0x1ef)](readId,_0xb59eba,_0x9c6291);if(_0x112b5c[_0x2ebb0c(0x21c)](_0x24570b,ID_CLUSTER))return _0x9c6291;const [_0x3bd314,_0x54c8a0]=_0x112b5c['cQHRP'](readVint,_0xb59eba,_0x112b5c[_0x2ebb0c(0x207)](_0x9c6291,_0x2f6a95));if(_0x112b5c[_0x2ebb0c(0x1ee)](isUnknownSize,_0x3bd314,_0x54c8a0))return _0x9c6291;_0x9c6291+=_0x112b5c[_0x2ebb0c(0x1f1)](_0x2f6a95+_0x54c8a0,_0x3bd314);}return _0xb59eba[_0x2ebb0c(0x1ed)];}function findClusterEnd(_0x533cb3,_0x280103,_0x11fcca,_0x511d14){const _0x3a6b3b=_0x3edf,_0x12d46d={'qLYPK':function(_0x1aca96,_0x48e7da,_0x2019fa){return _0x1aca96(_0x48e7da,_0x2019fa);},'odsdv':function(_0x3cfc15,_0x120d4d){return _0x3cfc15+_0x120d4d;}};if(!_0x12d46d[_0x3a6b3b(0x217)](isUnknownSize,_0x11fcca,_0x511d14))return _0x12d46d['odsdv'](_0x280103,_0x11fcca);const _0x4c9f27=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x45466f=_0x280103;while(_0x45466f<_0x533cb3['length']-0x4){const [_0x45de97,_0x3b0135]=readId(_0x533cb3,_0x45466f);if(_0x4c9f27['has'](_0x45de97))return _0x45466f;const [_0x45198d,_0x1e7ebb]=_0x12d46d[_0x3a6b3b(0x217)](readVint,_0x533cb3,_0x45466f+_0x3b0135);if(isUnknownSize(_0x45198d,_0x1e7ebb))return _0x533cb3['length'];_0x45466f+=_0x12d46d[_0x3a6b3b(0x1f9)](_0x3b0135+_0x1e7ebb,_0x45198d);}return _0x533cb3['length'];}function extractClusters(_0x4c27d1,_0x4ba8cd){const _0x33af2f=_0x3edf,_0xfc0c3c={'fklRb':function(_0x9fe31a,_0x2b4425){return _0x9fe31a<_0x2b4425;},'qAzKT':function(_0x49f52c,_0x2a68ba){return _0x49f52c===_0x2a68ba;},'aXyqu':function(_0x49ce93,_0x2547d9,_0x229bf0){return _0x49ce93(_0x2547d9,_0x229bf0);},'ViLrF':function(_0x3e9b7a,_0x96ad19,_0x4abbdd){return _0x3e9b7a(_0x96ad19,_0x4abbdd);},'CeoXf':function(_0x16e7c8,_0x13c4de){return _0x16e7c8+_0x13c4de;},'ZfLDq':function(_0xbbfd66,_0x54ae93,_0x34eea0,_0x71eb1d){return _0xbbfd66(_0x54ae93,_0x34eea0,_0x71eb1d);},'UdTru':function(_0x192d79,_0x165788){return _0x192d79+_0x165788;},'PSTNm':function(_0x26cf8e,_0x287f80){return _0x26cf8e===_0x287f80;},'fUUEP':function(_0x36f78c,_0x158768,_0x24bf2e){return _0x36f78c(_0x158768,_0x24bf2e);},'IMLIH':function(_0x4b333e,_0x1be562){return _0x4b333e>=_0x1be562;},'lyUqs':function(_0x22d613,_0xe13dc4){return _0x22d613+_0xe13dc4;},'jbKYP':function(_0x5a57ed,_0x38e1eb){return _0x5a57ed>_0x38e1eb;},'mlrLs':function(_0x524fd6,_0x359d98){return _0x524fd6===_0x359d98;}},_0x461113=[],_0x54d324=Buffer[_0x33af2f(0x1dd)]([0x1f,0x43,0xb6,0x75]);let _0x1e80a1=0x0;while(_0xfc0c3c['fklRb'](_0x1e80a1,_0x4c27d1['length'])){const _0x3a26e1=_0x4c27d1[_0x33af2f(0x20a)](_0x54d324,_0x1e80a1);if(_0xfc0c3c['qAzKT'](_0x3a26e1,-0x1))break;const [_0x2bdebb,_0x32ea55]=readId(_0x4c27d1,_0x3a26e1);if(_0x2bdebb!==ID_CLUSTER){_0x1e80a1=_0x3a26e1+0x1;continue;}const [_0x1af3be,_0x266e3e]=_0xfc0c3c['aXyqu'](readVint,_0x4c27d1,_0x3a26e1+_0x32ea55),_0x39b5cb=_0x3a26e1+_0x32ea55+_0x266e3e,_0x340fa8=findClusterEnd(_0x4c27d1,_0x39b5cb,_0x1af3be,_0x266e3e);let _0x4e1a03=_0x39b5cb,_0x1d1963=0x0,_0x456a46=0x2,_0x1a5ae2=![],_0x1d3bdf=Buffer['alloc'](0x0),_0x34648f=Buffer[_0x33af2f(0x1e5)](0x0);while(_0xfc0c3c[_0x33af2f(0x201)](_0x4e1a03,_0x340fa8)){const [_0x56e5c4,_0x49a7b2]=readId(_0x4c27d1,_0x4e1a03),[_0x978a56,_0x30edc9]=_0xfc0c3c['ViLrF'](readVint,_0x4c27d1,_0xfc0c3c[_0x33af2f(0x21d)](_0x4e1a03,_0x49a7b2));if(_0x56e5c4===ID_TIMESTAMP){_0x1d1963=_0xfc0c3c['ZfLDq'](readUint,_0x4c27d1,_0xfc0c3c['CeoXf'](_0x4e1a03,_0x49a7b2)+_0x30edc9,_0x978a56),_0x456a46=_0x978a56,_0x1a5ae2=!![],_0x1d3bdf=_0x4c27d1['slice'](_0x39b5cb,_0x4e1a03);const _0x52b11a=_0xfc0c3c['CeoXf'](_0xfc0c3c[_0x33af2f(0x21b)](_0x4e1a03,_0x49a7b2)+_0x30edc9,_0x978a56);_0x34648f=_0x4c27d1[_0x33af2f(0x20f)](_0x52b11a,_0x340fa8);break;}if(_0xfc0c3c['PSTNm'](_0x56e5c4,ID_CLUSTER))break;if(_0xfc0c3c['fUUEP'](isUnknownSize,_0x978a56,_0x30edc9))break;_0x4e1a03+=_0x49a7b2+_0x30edc9+_0x978a56;}!_0x1a5ae2&&(_0x34648f=_0x4c27d1['slice'](_0x39b5cb,_0x340fa8));let _0x2c00eb=_0x1d1963;_0x4e1a03=_0x39b5cb;while(_0xfc0c3c['fklRb'](_0x4e1a03,_0x340fa8)){const [_0x2a9195,_0x21c236]=readId(_0x4c27d1,_0x4e1a03),[_0x21aa07,_0x505d7d]=_0xfc0c3c['fUUEP'](readVint,_0x4c27d1,_0x4e1a03+_0x21c236);if(_0xfc0c3c['PSTNm'](_0x2a9195,ID_SIMPLE_BLOCK)&&_0xfc0c3c['IMLIH'](_0x21aa07,0x4)){const _0x1e8719=_0xfc0c3c['UdTru'](_0x4e1a03+_0x21c236,_0x505d7d),[,_0x5c531c]=readVint(_0x4c27d1,_0x1e8719),_0x15d872=_0x4c27d1[_0x33af2f(0x214)](_0xfc0c3c['lyUqs'](_0x1e8719,_0x5c531c)),_0x11d88b=_0xfc0c3c[_0x33af2f(0x21b)](_0x1d1963,_0x15d872);if(_0xfc0c3c[_0x33af2f(0x1de)](_0x11d88b,_0x2c00eb))_0x2c00eb=_0x11d88b;}if(_0xfc0c3c['mlrLs'](_0x2a9195,ID_CLUSTER))break;if(isUnknownSize(_0x21aa07,_0x505d7d))break;_0x4e1a03+=_0x21c236+_0x505d7d+_0x21aa07;}_0x461113['push']({'timestamp':_0x1d1963,'maxTicks':_0x2c00eb,'bodyBeforeTimestamp':_0x1d3bdf,'bodyAfterTimestamp':_0x34648f,'timestampElementSize':_0x456a46}),_0x1e80a1=_0x340fa8;}return _0x461113;}function parseWebm(_0x10e1fc){const _0x5f007c=_0x3edf,_0x1117f4={'JyydD':function(_0xe0e6dd,_0x2c7d34,_0xd021c0){return _0xe0e6dd(_0x2c7d34,_0xd021c0);},'VtsxC':function(_0x283bd7,_0x45d336){return _0x283bd7+_0x45d336;},'LVsYc':function(_0x67b76f,_0x2780db){return _0x67b76f+_0x2780db;},'ZJJeD':function(_0x2b3458,_0x31f63d,_0x3ea89e){return _0x2b3458(_0x31f63d,_0x3ea89e);},'aSyzc':function(_0x4ee050,_0x2e0ec2){return _0x4ee050>_0x2e0ec2;}};let _0x552b98=0x0;const [,_0x55bb10]=_0x1117f4['JyydD'](readId,_0x10e1fc,_0x552b98),[_0x2384a8,_0x462df9]=_0x1117f4[_0x5f007c(0x1f7)](readVint,_0x10e1fc,_0x1117f4[_0x5f007c(0x1f3)](_0x552b98,_0x55bb10));_0x552b98+=_0x55bb10+_0x462df9+_0x2384a8;const [_0x21d8f5,_0x3c237c]=readId(_0x10e1fc,_0x552b98);if(_0x21d8f5!==ID_SEGMENT)return null;const [,_0x431767]=readVint(_0x10e1fc,_0x1117f4['LVsYc'](_0x552b98,_0x3c237c)),_0x1704d7=_0x1117f4['VtsxC'](_0x552b98,_0x3c237c)+_0x431767,_0x42b825=_0x1117f4['JyydD'](findTimestampScale,_0x10e1fc,_0x1704d7),_0x1a7076=findFirstClusterOffset(_0x10e1fc,_0x1704d7),_0x3636a9=_0x10e1fc['slice'](0x0,_0x1a7076),_0x35b0e7=_0x1117f4['ZJJeD'](extractClusters,_0x10e1fc,_0x42b825);let _0x182a11=0x0;for(const _0xf0fc22 of _0x35b0e7){if(_0x1117f4[_0x5f007c(0x1ea)](_0xf0fc22['maxTicks'],_0x182a11))_0x182a11=_0xf0fc22['maxTicks'];}return{'header':_0x3636a9,'clusters':_0x35b0e7,'timestampScale':_0x42b825,'maxTimestampTicks':_0x182a11};}function _0x3edf(_0x4fe17a,_0x513f76){_0x4fe17a=_0x4fe17a-0x1d6;const _0x18816e=_0x1881();let _0x3edff9=_0x18816e[_0x4fe17a];return _0x3edff9;}function buildCluster(_0x127a02,_0x573694,_0x2b9c41){const _0x10ccf1=_0x3edf,_0x12008f={'UgKCv':function(_0x1a34f9,_0x41968a){return _0x1a34f9(_0x41968a);},'fYHdD':function(_0x2a675d,_0x53bbc9){return _0x2a675d(_0x53bbc9);}},_0x49679e=Buffer[_0x10ccf1(0x1dd)]([0x1f,0x43,0xb6,0x75]),_0x4bed1a=Math[_0x10ccf1(0x215)](0x4,_0x12008f['UgKCv'](uintSize,_0x127a02)),_0x24d3ef=Buffer['concat']([Buffer['from']([ID_TIMESTAMP]),_0x12008f['fYHdD'](writeVint,_0x4bed1a),writeUint(_0x127a02,_0x4bed1a)]),_0x16fa4e=Buffer['concat']([_0x573694,_0x24d3ef,_0x2b9c41]),_0x1d8d9a=_0x12008f['UgKCv'](writeVint,_0x16fa4e[_0x10ccf1(0x1ed)]);return Buffer[_0x10ccf1(0x21a)]([_0x49679e,_0x1d8d9a,_0x16fa4e]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x11c584){const _0x2d24f5=_0x3edf,_0x3181d7={'mlrdL':function(_0x154194,_0x3df4e7,_0x13fe21){return _0x154194(_0x3df4e7,_0x13fe21);},'uwnXq':function(_0x230dde,_0x2cea92){return _0x230dde+_0x2cea92;},'vROHz':function(_0xf724ec,_0x24cccd){return _0xf724ec+_0x24cccd;},'JObwx':function(_0x4038fc,_0x3526a8){return _0x4038fc+_0x3526a8;},'AnfCC':function(_0xeec4b0,_0x591c31){return _0xeec4b0+_0x591c31;},'JmQgo':function(_0x70ed3e,_0xf58f5b){return _0x70ed3e+_0xf58f5b;},'NYEzV':function(_0x5e38ed,_0x1d4239){return _0x5e38ed<_0x1d4239;},'mKXGj':function(_0x267253,_0xd70782,_0xcea94a){return _0x267253(_0xd70782,_0xcea94a);},'Vhgou':function(_0x3b69b9,_0x1a3610){return _0x3b69b9+_0x1a3610;},'LkdAr':function(_0x2864b0,_0x5288eb){return _0x2864b0+_0x5288eb;},'LxqeU':function(_0x34d232,_0x245d8f){return _0x34d232!==_0x245d8f;},'Oxxok':function(_0x9b5b17,_0x3896c2,_0xd49739){return _0x9b5b17(_0x3896c2,_0xd49739);}},_0x41a0ea=Buffer[_0x2d24f5(0x1dd)](_0x11c584);let _0x178465=0x0;const [,_0x307aed]=_0x3181d7[_0x2d24f5(0x1e1)](readId,_0x41a0ea,_0x178465),[_0x2d7318,_0x6b5607]=readVint(_0x41a0ea,_0x3181d7[_0x2d24f5(0x1e2)](_0x178465,_0x307aed)),_0x1f9c5e=_0x3181d7[_0x2d24f5(0x1e4)](_0x3181d7[_0x2d24f5(0x1e4)](_0x178465,_0x307aed)+_0x6b5607,_0x2d7318),[,_0x249399]=readId(_0x41a0ea,_0x1f9c5e),[,_0x3c8449]=_0x3181d7['mlrdL'](readVint,_0x41a0ea,_0x1f9c5e+_0x249399),_0x334e30=_0x3181d7['JObwx'](_0x1f9c5e,_0x249399)+_0x3c8449,_0x183012=writeUnknownSizeVint(_0x3c8449);_0x183012['copy'](_0x41a0ea,_0x3181d7['AnfCC'](_0x1f9c5e,_0x249399));let _0x11f4d7=_0x334e30;const _0x25dbe8=Math['min'](_0x41a0ea[_0x2d24f5(0x1ed)],_0x3181d7[_0x2d24f5(0x1e0)](_0x334e30,0x2710));while(_0x3181d7[_0x2d24f5(0x1e9)](_0x11f4d7,_0x25dbe8)){const [_0x405f9e,_0x318d14]=readId(_0x41a0ea,_0x11f4d7),[_0x4f43f0,_0x22a232]=readVint(_0x41a0ea,_0x11f4d7+_0x318d14);if(_0x405f9e===ID_CLUSTER)break;if(isUnknownSize(_0x4f43f0,_0x22a232))break;if(_0x405f9e===ID_INFO){const _0x4a9cf1=_0x11f4d7+_0x318d14+_0x22a232,_0x184d6a=_0x3181d7['uwnXq'](_0x4a9cf1,_0x4f43f0),_0x493dcd=[];let _0x400fe1=_0x4a9cf1;while(_0x3181d7[_0x2d24f5(0x1e9)](_0x400fe1,_0x184d6a)){const [_0x180038,_0x3751de]=_0x3181d7['mlrdL'](readId,_0x41a0ea,_0x400fe1),[_0x4f4546,_0x5e6767]=_0x3181d7['mKXGj'](readVint,_0x41a0ea,_0x3181d7[_0x2d24f5(0x1ec)](_0x400fe1,_0x3751de)),_0x1f9033=_0x3181d7[_0x2d24f5(0x1ff)](_0x3751de+_0x5e6767,_0x4f4546);_0x3181d7['LxqeU'](_0x180038,ID_DURATION)&&_0x493dcd[_0x2d24f5(0x200)](_0x41a0ea[_0x2d24f5(0x20f)](_0x400fe1,_0x3181d7['AnfCC'](_0x400fe1,_0x1f9033))),_0x400fe1+=_0x1f9033;}const _0x3579c7=Buffer[_0x2d24f5(0x21a)](_0x493dcd),_0x5ed12d=Buffer[_0x2d24f5(0x21a)]([_0x41a0ea[_0x2d24f5(0x20f)](_0x11f4d7,_0x11f4d7+_0x318d14),_0x3181d7['Oxxok'](writeVint,_0x3579c7['length'],_0x22a232)]);return Buffer['concat']([_0x41a0ea[_0x2d24f5(0x20f)](0x0,_0x11f4d7),_0x5ed12d,_0x3579c7,_0x41a0ea[_0x2d24f5(0x20f)](_0x184d6a)]);}_0x11f4d7+=_0x3181d7[_0x2d24f5(0x1d7)](_0x318d14+_0x22a232,_0x4f43f0);}return _0x41a0ea;}export function stitchWebmFiles(_0x8925a6,_0x2ebaef){const _0x5e74f8=_0x3edf,_0x5beb66={'BJauA':function(_0x17b72d,_0x24a1ab){return _0x17b72d<=_0x24a1ab;},'NeUPS':function(_0x40f751,_0x587fd2){return _0x40f751===_0x587fd2;},'chdYv':function(_0x15ceea,_0x51d057){return _0x15ceea(_0x51d057);},'XvbfA':function(_0x498b6c,_0x506939){return _0x498b6c<_0x506939;},'XVJMx':function(_0x55a92c,_0x4562b7){return _0x55a92c+_0x4562b7;}};if(_0x5beb66['BJauA'](_0x8925a6[_0x5e74f8(0x1ed)],0x1))return![];const _0x504c90=[];for(const _0x598ba2 of _0x8925a6){const _0x1da989=readFileSync(_0x598ba2),_0x1c42ee=parseWebm(_0x1da989);if(!_0x1c42ee||_0x5beb66['NeUPS'](_0x1c42ee[_0x5e74f8(0x1df)]['length'],0x0))return![];_0x504c90['push'](_0x1c42ee);}const _0x1066d9=_0x504c90[0x0],_0x7ed507=_0x5beb66['chdYv'](rebuildHeaderWithoutDuration,_0x1066d9['header']),_0x1948ef=[_0x7ed507];let _0x3fe244=0x0;for(let _0x676f47=0x0;_0x5beb66['XvbfA'](_0x676f47,_0x504c90['length']);_0x676f47++){const _0x2df257=_0x504c90[_0x676f47];for(const _0x44a863 of _0x2df257['clusters']){const _0x57dd4c=_0x5beb66[_0x5e74f8(0x20b)](_0x44a863['timestamp'],_0x3fe244);_0x1948ef['push'](buildCluster(_0x57dd4c,_0x44a863[_0x5e74f8(0x1f2)],_0x44a863['bodyAfterTimestamp']));}const _0x38e076=0x1e;_0x3fe244+=_0x2df257[_0x5e74f8(0x1f5)]+_0x38e076;}return writeFileSync(_0x2ebaef,Buffer[_0x5e74f8(0x21a)](_0x1948ef)),!![];}if(process['argv'][0x1]?.['endsWith'](_0x168b9e(0x1fa))||process['argv'][0x1]?.[_0x168b9e(0x20e)]('stitchWebmFiles.js')){const args=process['argv']['slice'](0x2);args['length']<0x3&&(console[_0x168b9e(0x203)]('Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>'),process[_0x168b9e(0x1f8)](0x1));const output=args[args[_0x168b9e(0x1ed)]-0x1],inputs=args[_0x168b9e(0x20f)](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console['log'](_0x168b9e(0x1d9)+inputs['length']+_0x168b9e(0x210)+output):console[_0x168b9e(0x1d8)](_0x168b9e(0x1da));}
|