@ranger-testing/ranger-cli 3.1.5-alpha.9b89f77-48 → 3.1.5-alpha.aebd071-49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/deleteProfile.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/novaActCli.js +1 -1
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/organizationEnvApi.js +1 -1
  60. package/build/commands/utils/playwrightCli.js +1 -1
  61. package/build/commands/utils/profileMessages.js +1 -1
  62. package/build/commands/utils/profileSetupBanner.js +1 -1
  63. package/build/commands/utils/projectsConfig.js +1 -1
  64. package/build/commands/utils/rangerConfig.js +1 -1
  65. package/build/commands/utils/rangerRoot.js +1 -1
  66. package/build/commands/utils/rangerwrightCli.js +1 -1
  67. package/build/commands/utils/resolveProfileContext.js +1 -1
  68. package/build/commands/utils/resolveProfileUrl.js +1 -1
  69. package/build/commands/utils/retry.js +1 -1
  70. package/build/commands/utils/scenarioOriginCheck.js +1 -1
  71. package/build/commands/utils/sessionCache.js +1 -1
  72. package/build/commands/utils/settings.js +1 -1
  73. package/build/commands/utils/skillContent.js +1 -1
  74. package/build/commands/utils/skills.js +1 -1
  75. package/build/commands/utils/stitchWebmFiles.js +1 -1
  76. package/build/commands/utils/telemetry.js +1 -1
  77. package/build/commands/utils/tokenRefresh.js +1 -1
  78. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  79. package/build/commands/utils/tunnelClient.js +1 -1
  80. package/build/commands/utils/userApi.js +1 -1
  81. package/build/commands/utils/version.js +1 -1
  82. package/build/commands/verifyFeature.js +1 -1
  83. package/build/commands/verifyFeatureCli.js +1 -1
  84. package/build/commands/verifyFeatureNovaCli.js +1 -1
  85. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  86. package/package.json +4 -2
@@ -1 +1 @@
1
- (function(_0x3dba07,_0x4b6999){const _0xe35561=_0x42fc,_0x3ef39f=_0x3dba07();while(!![]){try{const _0x16c01b=parseInt(_0xe35561(0x1f7))/0x1*(-parseInt(_0xe35561(0x1ce))/0x2)+parseInt(_0xe35561(0x1fa))/0x3*(parseInt(_0xe35561(0x20f))/0x4)+parseInt(_0xe35561(0x208))/0x5*(parseInt(_0xe35561(0x203))/0x6)+-parseInt(_0xe35561(0x1ed))/0x7+-parseInt(_0xe35561(0x1ee))/0x8*(parseInt(_0xe35561(0x206))/0x9)+-parseInt(_0xe35561(0x1de))/0xa+-parseInt(_0xe35561(0x205))/0xb*(-parseInt(_0xe35561(0x20d))/0xc);if(_0x16c01b===_0x4b6999)break;else _0x3ef39f['push'](_0x3ef39f['shift']());}catch(_0x5a9ecd){_0x3ef39f['push'](_0x3ef39f['shift']());}}}(_0x4544,0x7b7aa));import{existsSync}from'fs';import _0x4a8a3a 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 _0x4544(){const _0x2705b2=['log','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','Local\x20profile','environmentKey','\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','\x20does\x20not\x20exist.','\x22\x20instead\x20of\x20the\x20saved\x20active\x20profile\x20\x22','\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20to\x20switch\x20(see\x20`ranger\x20profile\x20ls`),\x20or\x0a','\x22\x20no\x20longer\x20exists\x20(or\x20could\x20not\x20be\x20fetched).\x20Options:\x0a','settings','ugRak','baseUrlSource','6220004gycVlQ','8vTLrpH','Profile\x20\x22','\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20','\x20\x20Warning:\x20','startPath','authEnv','env','envBaseUrl','\x22\x20is\x20ignored\x20when\x20--profile\x20is\x20set;\x20the\x20profile\x27s\x20own\x20auth\x20environment\x20applies.','365969mRKGbx','status','QvQSN','657732GJMagz','cwd','cdpEndpoint','list','ZELRf','RGRtJ','source','qjxPk','name','132pxnjnL','Tqpxa','223883FIxxta','4514526Cstfhz','key','192155wckFPz','HCedt','\x20\x20Falling\x20back\x20to\x20saved\x20active\x20profile\x20\x22','message','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','540GSTOlS','resolvedEnv','16FOVsxL','authPath','eGVsn','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','Active\x20profile\x20\x22','RANGER_SESSION_STATE_PATH','2ykpeUb','zJwAE','MJZrL','length','baseUrl','domains','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','oPfoK','Uuhyn','CFxBT','`\x20to\x20recreate\x20it.','string','prompt','UEVYU','RANGER_SESSION_STATE_PATH=','NCUXb','3764180hUiOph','uFjza','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one\x20ad\x20hoc,\x20or\x0a'];_0x4544=function(){return _0x2705b2;};return _0x4544();}function _0x42fc(_0x4ac500,_0x9f74a0){_0x4ac500=_0x4ac500-0x1cd;const _0x4544da=_0x4544();let _0x42fcbc=_0x4544da[_0x4ac500];return _0x42fcbc;}export async function resolveProfileContext(_0x5b3e7f){const _0x1cfe64=_0x42fc,_0x3f5af8={'MJZrL':function(_0x1dbaf3){return _0x1dbaf3();},'Uuhyn':function(_0x5b6a91,_0x1e754e){return _0x5b6a91(_0x1e754e);},'HCedt':function(_0x339952){return _0x339952();},'ELvai':function(_0x5007e9,_0x3dd035){return _0x5007e9 instanceof _0x3dd035;},'QvQSN':function(_0x204313,_0x40fd27){return _0x204313+_0x40fd27;},'eXQCm':'\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','UEVYU':'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','NCUXb':_0x1cfe64(0x1e5),'HkMGE':function(_0x520fd3,_0x1c408f){return _0x520fd3&&_0x1c408f;},'MSkXY':function(_0x2db46d,_0x12ac25){return _0x2db46d+_0x12ac25;},'zJwAE':_0x1cfe64(0x1fd),'ugRak':'cloud','oPfoK':_0x1cfe64(0x1e3),'RGRtJ':function(_0x54b5b4,_0x17dcc6){return _0x54b5b4===_0x17dcc6;},'Tqpxa':function(_0x407471,_0x4939d9,_0xeca8f4){return _0x407471(_0x4939d9,_0xeca8f4);},'VfNPd':function(_0x434db5,_0x2742ff){return _0x434db5??_0x2742ff;},'qjxPk':function(_0x367101,_0xa7e5c5){return _0x367101(_0xa7e5c5);},'ZELRf':function(_0x1fb1c1,_0x5d069d,_0x2b34f6){return _0x1fb1c1(_0x5d069d,_0x2b34f6);},'uFjza':function(_0x447d50,_0x316478){return _0x447d50+_0x316478;},'GVFyx':_0x1cfe64(0x1e0),'zUHSq':function(_0x263047,_0x203269){return _0x263047(_0x203269);},'eGVsn':function(_0x3bb82e,_0x2267ed){return _0x3bb82e&&_0x2267ed;}},_0x1130eb=_0x5b3e7f['profile'];let _0x4c39d2=_0x1130eb,_0x2f7066=null;const _0x2dfcdb=_0x1130eb?null:await _0x3f5af8[_0x1cfe64(0x1d0)](readActiveProfileName);if(_0x5b3e7f[_0x1cfe64(0x1f3)]&&_0x1130eb)console[_0x1cfe64(0x1e1)]('\x20\x20Note:\x20--env\x20\x22'+_0x5b3e7f['authEnv']+_0x1cfe64(0x1f6));else _0x5b3e7f[_0x1cfe64(0x1f3)]&&!process['env']['RANGER_TEST_USERNAME']&&console['log']('\x20\x20Note:\x20--env\x20\x22'+_0x5b3e7f['authEnv']+'\x22\x20only\x20affects\x20ad-hoc\x20profile\x20resolution;\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20use\x20it.');if(!_0x1130eb&&process[_0x1cfe64(0x1f4)]['RANGER_TEST_USERNAME'])try{const _0x4a3a5c=await _0x3f5af8[_0x1cfe64(0x1d6)](resolveAdHocProfile,{'targetUrl':_0x5b3e7f['baseUrl']??_0x3f5af8[_0x1cfe64(0x209)](readUrlEnvVars)[_0x1cfe64(0x1f5)],'envKey':_0x5b3e7f[_0x1cfe64(0x1f3)]});_0x4a3a5c&&(_0x2dfcdb&&_0x2dfcdb!==_0x4a3a5c[_0x1cfe64(0x202)]&&console['log']('\x20\x20RANGER_TEST_USERNAME\x20is\x20set\x20—\x20using\x20profile\x20\x22'+_0x4a3a5c[_0x1cfe64(0x202)]+_0x1cfe64(0x1e7)+_0x2dfcdb+'\x22.\x20Pass\x20--profile\x20'+_0x2dfcdb+'\x20to\x20override.'),_0x4c39d2=_0x4a3a5c['name'],_0x2f7066=_0x4a3a5c['profile']);}catch(_0x417f96){if(!_0x2dfcdb||_0x5b3e7f['authEnv'])throw _0x417f96;console[_0x1cfe64(0x1e1)](_0x1cfe64(0x1f1)+(_0x3f5af8['ELvai'](_0x417f96,Error)?_0x417f96[_0x1cfe64(0x20b)]:_0x3f5af8['Uuhyn'](String,_0x417f96))),console[_0x1cfe64(0x1e1)](_0x1cfe64(0x20a)+_0x2dfcdb+'\x22.');}if(!_0x4c39d2)_0x4c39d2=_0x2dfcdb??undefined;if(!_0x4c39d2)try{const _0x29460c=await listCloudProfiles();if(_0x29460c[_0x1cfe64(0x1d1)]===0x1){const _0x1b6450=_0x29460c[0x0];_0x4c39d2=_0x1b6450[_0x1cfe64(0x202)],console[_0x1cfe64(0x1e1)]('\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20'+_0x1b6450['name']),console[_0x1cfe64(0x1e1)](_0x1cfe64(0x1e2));}}catch{}if(!_0x4c39d2)throw new Error(_0x3f5af8['QvQSN'](_0x3f5af8['QvQSN'](_0x3f5af8[_0x1cfe64(0x1f9)]('Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a',_0x3f5af8['eXQCm']),'\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a')+_0x3f5af8[_0x1cfe64(0x1db)],_0x3f5af8[_0x1cfe64(0x1dd)]));const _0x2d1d26=getEnvDir(_0x4c39d2),_0x4fb9d7=_0x3f5af8[_0x1cfe64(0x1d6)](existsSync,_0x2d1d26);let _0x557391=_0x2f7066,_0x232fb8=![];if(!_0x557391)try{_0x557391=await fetchCloudProfile(_0x4c39d2);if(!_0x557391)_0x232fb8=!![];}catch(_0x427532){_0x3f5af8['ELvai'](_0x427532,ApiError)&&_0x427532[_0x1cfe64(0x1f8)]===0x194&&(_0x232fb8=!![]);}if(_0x3f5af8['HkMGE'](_0x1130eb,_0x232fb8)&&!_0x4fb9d7&&!_0x557391)throw new Error(_0x3f5af8['MSkXY'](_0x3f5af8['QvQSN']('Profile\x20\x22'+_0x1130eb+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a',_0x1cfe64(0x1d4)),'`ranger\x20profile\x20add`\x20to\x20create\x20one.'));if(_0x557391&&_0x4fb9d7){let _0x3367e9=!![];if(isInteractive()){const {source:_0xfb46cc}=await _0x4a8a3a[_0x1cfe64(0x1da)]([{'type':_0x3f5af8[_0x1cfe64(0x1cf)],'name':_0x1cfe64(0x200),'message':_0x1cfe64(0x1ef)+_0x4c39d2+_0x1cfe64(0x20c),'choices':[{'name':'Cloud\x20profile\x20(recommended)','value':_0x3f5af8[_0x1cfe64(0x1eb)]},{'name':_0x3f5af8[_0x1cfe64(0x1d5)],'value':'local'}],'default':'cloud'}]);_0x3367e9=_0x3f5af8[_0x1cfe64(0x1ff)](_0xfb46cc,_0x3f5af8[_0x1cfe64(0x1eb)]);}if(!_0x3367e9)_0x557391=null;}const _0x3b9a76=_0x3f5af8[_0x1cfe64(0x204)](readProfileOverrides,process[_0x1cfe64(0x1fb)](),_0x4c39d2);let _0x49b68a=null,_0x5007a9,_0xf769ae,_0x88deb9,_0x2e25c5,_0x5761bc=null,_0x5a014a,_0x21ae6a;const _0x462401=expandOverrides(_0x3b9a76),_0x57592d=_0x3f5af8[_0x1cfe64(0x209)](readUrlEnvVars);if(_0x557391){_0x49b68a=_0x557391;const _0x52ae00=_0x557391[_0x1cfe64(0x1ea)]??{},_0x3e7034=mergeCloudProfileSettings(_0x52ae00,_0x3f5af8['VfNPd'](_0x3b9a76,undefined)),_0x3992bd={..._0x557391,'settings':_0x3e7034};_0x5761bc={'baseUrl':_0x3f5af8[_0x1cfe64(0x201)](expandString,_0x52ae00[_0x1cfe64(0x1d2)]),'startPath':expandString(_0x52ae00['startPath'])};const _0x246e4d=await fetchAuthConfig(),_0x29fd18=_0x246e4d?resolveAuthEnvironmentLocally(_0x246e4d,_0x557391[_0x1cfe64(0x1e4)]):null;_0x5a014a=_0x29fd18?.[_0x1cfe64(0x1d3)]?.[0x0],_0x21ae6a=_0x29fd18?.[_0x1cfe64(0x207)];const _0x562ae7=resolveProfileUrl({'flagBaseUrl':_0x5b3e7f['baseUrl'],'flagStartPath':_0x5b3e7f[_0x1cfe64(0x1f2)],'envBaseUrl':_0x57592d[_0x1cfe64(0x1f5)],'envStartPath':_0x57592d['envStartPath'],'projectOverrides':_0x462401,'cloudSettings':_0x5761bc,'authEnvironmentDomain':_0x5a014a}),_0x24c53f=process[_0x1cfe64(0x1f4)][_0x1cfe64(0x1cd)];if(_0x24c53f){if(!existsSync(_0x24c53f))throw new Error(_0x1cfe64(0x1dc)+_0x24c53f+_0x1cfe64(0x1e6));_0x5007a9=_0x24c53f,_0xf769ae=resolveEnvVars(_0x3e7034),_0x88deb9=_0x3f5af8[_0x1cfe64(0x201)](Boolean,_0xf769ae[_0x1cfe64(0x1fc)]);}else{const _0x5a47af=await _0x3f5af8[_0x1cfe64(0x1fe)](resolveCloudProfileSession,_0x3992bd,{'effectiveBaseUrl':_0x562ae7[_0x1cfe64(0x1d2)],'telemetry':_0x5b3e7f['telemetry']});_0x5007a9=_0x5a47af[_0x1cfe64(0x210)],_0xf769ae=resolveEnvVars(_0x5a47af['settings']),_0x88deb9=Boolean(_0xf769ae['cdpEndpoint']),_0x5a014a=_0x5a47af[_0x1cfe64(0x20e)]?.[_0x1cfe64(0x1d3)]?.[0x0],_0x21ae6a=_0x5a47af[_0x1cfe64(0x20e)]?.[_0x1cfe64(0x207)];}}else{if(!_0x4fb9d7){const _0x35da0a=!_0x1130eb;throw new Error(_0x35da0a?_0x3f5af8[_0x1cfe64(0x1df)](_0x1cfe64(0x213)+_0x4c39d2+_0x1cfe64(0x1e9),_0x1cfe64(0x1e8))+_0x3f5af8['GVFyx']+(_0x1cfe64(0x1f0)+_0x4c39d2+_0x1cfe64(0x1d8)):'Profile\x20\x22'+_0x4c39d2+_0x1cfe64(0x212)+_0x4c39d2);}const _0x4a8f29=await loadSettings(_0x4c39d2);_0xf769ae=_0x3f5af8[_0x1cfe64(0x1d6)](resolveEnvVars,_0x4a8f29),_0x88deb9=_0x3f5af8['zUHSq'](Boolean,_0xf769ae[_0x1cfe64(0x1fc)]),_0x2e25c5=_0xf769ae[_0x1cfe64(0x1d2)];}const _0x3cbd89=resolveProfileUrl({'flagBaseUrl':_0x5b3e7f[_0x1cfe64(0x1d2)],'flagStartPath':_0x5b3e7f[_0x1cfe64(0x1f2)],'envBaseUrl':_0x57592d[_0x1cfe64(0x1f5)],'envStartPath':_0x57592d['envStartPath'],'localSettingsBaseUrl':_0x2e25c5,'projectOverrides':_0x462401,'cloudSettings':_0x5761bc,'authEnvironmentDomain':_0x5a014a}),_0x844a8b=_0x3cbd89['url']??_0x3cbd89[_0x1cfe64(0x1d2)];if(_0x3f5af8[_0x1cfe64(0x211)](!_0x844a8b,!_0x88deb9))throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0x4c39d2+'\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20'+_0x4c39d2+'\x20baseUrl\x20<url>');return{'activeProfile':_0x4c39d2,'resolvedCloudProfile':_0x49b68a,'cloudAuthPath':_0x5007a9,'resolvedSettings':_0xf769ae,'isCdpMode':_0x88deb9,'url':_0x844a8b,'baseUrlSource':_0x3cbd89[_0x1cfe64(0x1ec)],'authEnvKey':_0x21ae6a,'startPath':_0x3cbd89['startPath']};}function expandString(_0x1c358e){const _0x202002=_0x42fc,_0x293067={'CFxBT':function(_0x509b96,_0x20b30d){return _0x509b96!==_0x20b30d;},'FAcaE':_0x202002(0x1d9),'cLLhK':function(_0x85d3e3,_0x2eaa3b){return _0x85d3e3(_0x2eaa3b);}};if(_0x293067[_0x202002(0x1d7)](typeof _0x1c358e,_0x293067['FAcaE']))return _0x1c358e;return _0x293067['cLLhK'](resolveEnvVars,_0x1c358e);}function expandOverrides(_0x25f735){const _0x4b29c9=_0x42fc,_0x2aac3f={'QETAC':function(_0x1a6fd1,_0x4b6bf8){return _0x1a6fd1(_0x4b6bf8);}};if(!_0x25f735)return _0x25f735;const _0x1eb349={..._0x25f735};return typeof _0x1eb349['baseUrl']==='string'&&(_0x1eb349[_0x4b29c9(0x1d2)]=_0x2aac3f['QETAC'](resolveEnvVars,_0x1eb349[_0x4b29c9(0x1d2)])),typeof _0x1eb349['startPath']===_0x4b29c9(0x1d9)&&(_0x1eb349['startPath']=resolveEnvVars(_0x1eb349[_0x4b29c9(0x1f2)])),_0x1eb349;}
1
+ (function(_0x9914d4,_0x59f887){const _0x2ea050=_0x1bd3,_0x12519c=_0x9914d4();while(!![]){try{const _0x24854f=-parseInt(_0x2ea050(0x184))/0x1+-parseInt(_0x2ea050(0x173))/0x2*(-parseInt(_0x2ea050(0x15b))/0x3)+-parseInt(_0x2ea050(0x14a))/0x4+-parseInt(_0x2ea050(0x154))/0x5*(parseInt(_0x2ea050(0x178))/0x6)+parseInt(_0x2ea050(0x161))/0x7*(parseInt(_0x2ea050(0x179))/0x8)+parseInt(_0x2ea050(0x14d))/0x9+-parseInt(_0x2ea050(0x180))/0xa;if(_0x24854f===_0x59f887)break;else _0x12519c['push'](_0x12519c['shift']());}catch(_0x5508a4){_0x12519c['push'](_0x12519c['shift']());}}}(_0x3860,0xe486d));function _0x1bd3(_0x61349c,_0x24ce6c){_0x61349c=_0x61349c-0x148;const _0x386040=_0x3860();let _0x1bd3ed=_0x386040[_0x61349c];return _0x1bd3ed;}import{existsSync}from'fs';import _0x3a472f 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';export async function resolveProfileContext(_0x3159af){const _0x59ce15=_0x1bd3,_0x4be6f9={'mmWlq':function(_0x402668,_0x3fce59){return _0x402668(_0x3fce59);},'TMREU':function(_0xea0ff7){return _0xea0ff7();},'royxk':function(_0x1bb8ab,_0x3fd22f){return _0x1bb8ab!==_0x3fd22f;},'oaKTT':function(_0x2509f3,_0x314aa3){return _0x2509f3(_0x314aa3);},'fqbOA':function(_0x54b79d,_0x868e9a){return _0x54b79d??_0x868e9a;},'TxspL':function(_0x5ec26f,_0x450bba){return _0x5ec26f===_0x450bba;},'YKXgN':function(_0x21d3b3,_0x3de09c){return _0x21d3b3+_0x3de09c;},'fdkIB':function(_0x34478f,_0x8a6d14){return _0x34478f+_0x8a6d14;},'msinZ':_0x59ce15(0x152),'VaUhM':_0x59ce15(0x176),'RdXMK':function(_0x4a0dbb,_0x211051){return _0x4a0dbb instanceof _0x211051;},'vsHDp':function(_0x466ff2,_0x19c1fd){return _0x466ff2&&_0x19c1fd;},'fCRYA':function(_0x271dc9,_0x37c74f){return _0x271dc9+_0x37c74f;},'dpYxv':'`ranger\x20profile\x20add`\x20to\x20create\x20one.','JVrIW':function(_0x4cfa82,_0x3d993f){return _0x4cfa82&&_0x3d993f;},'ntFEE':'source','rqJQo':'Cloud\x20profile\x20(recommended)','gMjVz':'Local\x20profile','cwbZq':function(_0x490d67,_0x342849,_0x1634ee){return _0x490d67(_0x342849,_0x1634ee);},'gycTp':function(_0x4b63c6,_0x2c3726){return _0x4b63c6(_0x2c3726);},'nxcTJ':function(_0x436f78,_0x56d1e2,_0x41098a){return _0x436f78(_0x56d1e2,_0x41098a);},'YBvzD':function(_0x2f7641,_0xd0941d){return _0x2f7641(_0xd0941d);},'ybwGj':function(_0x1dec86,_0x4d70b9){return _0x1dec86(_0x4d70b9);},'ZQEwl':function(_0x55f484,_0x2c0efe){return _0x55f484+_0x2c0efe;},'EacTz':_0x59ce15(0x16c),'asbNQ':'\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one\x20ad\x20hoc,\x20or\x0a','sFzPC':function(_0x310467,_0x178484){return _0x310467&&_0x178484;}},_0x124aa5=_0x3159af['profile'];let _0x390a49=_0x124aa5,_0x22c5ec=null;const _0xab1744=_0x124aa5?null:await readActiveProfileName();if(_0x3159af['authEnv']&&_0x124aa5)console[_0x59ce15(0x148)]('\x20\x20Note:\x20--env\x20\x22'+_0x3159af['authEnv']+'\x22\x20is\x20ignored\x20when\x20--profile\x20is\x20set;\x20the\x20profile\x27s\x20own\x20auth\x20environment\x20applies.');else _0x3159af[_0x59ce15(0x162)]&&!process[_0x59ce15(0x15e)][_0x59ce15(0x16a)]&&console['log'](_0x59ce15(0x160)+_0x3159af['authEnv']+_0x59ce15(0x169));if(!_0x124aa5&&process[_0x59ce15(0x15e)][_0x59ce15(0x16a)])try{const _0x3a594e=await _0x4be6f9['mmWlq'](resolveAdHocProfile,{'targetUrl':_0x3159af['baseUrl']??_0x4be6f9['TMREU'](readUrlEnvVars)['envBaseUrl'],'envKey':_0x3159af['authEnv']});_0x3a594e&&(_0xab1744&&_0x4be6f9[_0x59ce15(0x14e)](_0xab1744,_0x3a594e['name'])&&console[_0x59ce15(0x148)](_0x59ce15(0x185)+_0x3a594e[_0x59ce15(0x15c)]+_0x59ce15(0x171)+_0xab1744+'\x22.\x20Pass\x20--profile\x20'+_0xab1744+_0x59ce15(0x186)),_0x390a49=_0x3a594e[_0x59ce15(0x15c)],_0x22c5ec=_0x3a594e[_0x59ce15(0x18a)]);}catch(_0x3e4c98){if(!_0xab1744||_0x3159af['authEnv'])throw _0x3e4c98;console['log']('\x20\x20Warning:\x20'+(_0x3e4c98 instanceof Error?_0x3e4c98['message']:_0x4be6f9['oaKTT'](String,_0x3e4c98))),console[_0x59ce15(0x148)](_0x59ce15(0x158)+_0xab1744+'\x22.');}if(!_0x390a49)_0x390a49=_0x4be6f9[_0x59ce15(0x17e)](_0xab1744,undefined);if(!_0x390a49)try{const _0x5e748d=await listCloudProfiles();if(_0x4be6f9['TxspL'](_0x5e748d['length'],0x1)){const _0x1695c4=_0x5e748d[0x0];_0x390a49=_0x1695c4['name'],console[_0x59ce15(0x148)](_0x59ce15(0x159)+_0x1695c4['name']),console[_0x59ce15(0x148)](_0x59ce15(0x164));}}catch{}if(!_0x390a49)throw new Error(_0x4be6f9[_0x59ce15(0x150)](_0x4be6f9[_0x59ce15(0x182)](_0x4be6f9['msinZ'],_0x59ce15(0x16f))+_0x59ce15(0x157)+'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a',_0x4be6f9['VaUhM']));const _0x809ad9=getEnvDir(_0x390a49),_0x381d74=_0x4be6f9[_0x59ce15(0x17c)](existsSync,_0x809ad9);let _0x197c83=_0x22c5ec,_0x277aa7=![];if(!_0x197c83)try{_0x197c83=await _0x4be6f9['mmWlq'](fetchCloudProfile,_0x390a49);if(!_0x197c83)_0x277aa7=!![];}catch(_0x7e8f0c){_0x4be6f9['RdXMK'](_0x7e8f0c,ApiError)&&_0x7e8f0c[_0x59ce15(0x189)]===0x194&&(_0x277aa7=!![]);}if(_0x4be6f9[_0x59ce15(0x14f)](_0x124aa5,_0x277aa7)&&!_0x381d74&&!_0x197c83)throw new Error(_0x4be6f9[_0x59ce15(0x182)](_0x4be6f9[_0x59ce15(0x17b)]('Profile\x20\x22'+_0x124aa5+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a',_0x59ce15(0x15f)),_0x4be6f9[_0x59ce15(0x155)]));if(_0x4be6f9[_0x59ce15(0x163)](_0x197c83,_0x381d74)){let _0x1cac70=!![];if(isInteractive()){const {source:_0x263236}=await _0x3a472f[_0x59ce15(0x165)]([{'type':_0x59ce15(0x17a),'name':_0x4be6f9['ntFEE'],'message':_0x59ce15(0x15d)+_0x390a49+_0x59ce15(0x16e),'choices':[{'name':_0x4be6f9['rqJQo'],'value':_0x59ce15(0x170)},{'name':_0x4be6f9['gMjVz'],'value':'local'}],'default':_0x59ce15(0x170)}]);_0x1cac70=_0x263236==='cloud';}if(!_0x1cac70)_0x197c83=null;}const _0x356c38=_0x4be6f9['cwbZq'](readProfileOverrides,process['cwd'](),_0x390a49);let _0x2ff84c=null,_0x11775a,_0x27d64e,_0x873606,_0x5e9439,_0x4bf740=null,_0x37f4ee,_0x5a8615;const _0x131b2e=_0x4be6f9['gycTp'](expandOverrides,_0x356c38),_0x3f5308=readUrlEnvVars();if(_0x197c83){_0x2ff84c=_0x197c83;const _0x108e8e=_0x197c83['settings']??{},_0x1d140f=_0x4be6f9['nxcTJ'](mergeCloudProfileSettings,_0x108e8e,_0x4be6f9[_0x59ce15(0x17e)](_0x356c38,undefined)),_0x10fa2b={..._0x197c83,'settings':_0x1d140f};_0x4bf740={'baseUrl':_0x4be6f9['gycTp'](expandString,_0x108e8e['baseUrl']),'startPath':_0x4be6f9['YBvzD'](expandString,_0x108e8e['startPath'])};const _0x1d1416=await fetchAuthConfig(),_0x1391c7=_0x1d1416?_0x4be6f9['cwbZq'](resolveAuthEnvironmentLocally,_0x1d1416,_0x197c83['environmentKey']):null;_0x37f4ee=_0x1391c7?.['domains']?.[0x0],_0x5a8615=_0x1391c7?.[_0x59ce15(0x14c)];const _0x3621d7=_0x4be6f9['oaKTT'](resolveProfileUrl,{'flagBaseUrl':_0x3159af[_0x59ce15(0x177)],'flagStartPath':_0x3159af[_0x59ce15(0x16b)],'envBaseUrl':_0x3f5308[_0x59ce15(0x166)],'envStartPath':_0x3f5308['envStartPath'],'projectOverrides':_0x131b2e,'cloudSettings':_0x4bf740,'authEnvironmentDomain':_0x37f4ee}),_0x5a7319=process[_0x59ce15(0x15e)]['RANGER_SESSION_STATE_PATH'];if(_0x5a7319){if(!_0x4be6f9[_0x59ce15(0x149)](existsSync,_0x5a7319))throw new Error(_0x59ce15(0x181)+_0x5a7319+_0x59ce15(0x14b));_0x11775a=_0x5a7319,_0x27d64e=resolveEnvVars(_0x1d140f),_0x873606=Boolean(_0x27d64e[_0x59ce15(0x17d)]);}else{const _0x339085=await resolveCloudProfileSession(_0x10fa2b,{'effectiveBaseUrl':_0x3621d7[_0x59ce15(0x177)],'telemetry':_0x3159af[_0x59ce15(0x15a)]});_0x11775a=_0x339085['authPath'],_0x27d64e=resolveEnvVars(_0x339085['settings']),_0x873606=Boolean(_0x27d64e[_0x59ce15(0x17d)]),_0x37f4ee=_0x339085['resolvedEnv']?.[_0x59ce15(0x16d)]?.[0x0],_0x5a8615=_0x339085[_0x59ce15(0x187)]?.['key'];}}else{if(!_0x381d74){const _0x6c28d1=!_0x124aa5;throw new Error(_0x6c28d1?_0x4be6f9[_0x59ce15(0x167)]('Active\x20profile\x20\x22'+_0x390a49+_0x59ce15(0x156),_0x4be6f9['EacTz'])+_0x4be6f9['asbNQ']+(_0x59ce15(0x175)+_0x390a49+'`\x20to\x20recreate\x20it.'):_0x59ce15(0x15d)+_0x390a49+_0x59ce15(0x153)+_0x390a49);}const _0x2d3a53=await loadSettings(_0x390a49);_0x27d64e=resolveEnvVars(_0x2d3a53),_0x873606=_0x4be6f9[_0x59ce15(0x151)](Boolean,_0x27d64e['cdpEndpoint']),_0x5e9439=_0x27d64e[_0x59ce15(0x177)];}const _0xc60699=resolveProfileUrl({'flagBaseUrl':_0x3159af['baseUrl'],'flagStartPath':_0x3159af[_0x59ce15(0x16b)],'envBaseUrl':_0x3f5308[_0x59ce15(0x166)],'envStartPath':_0x3f5308[_0x59ce15(0x17f)],'localSettingsBaseUrl':_0x5e9439,'projectOverrides':_0x131b2e,'cloudSettings':_0x4bf740,'authEnvironmentDomain':_0x37f4ee}),_0x2d535a=_0xc60699[_0x59ce15(0x174)]??_0xc60699[_0x59ce15(0x177)];if(_0x4be6f9[_0x59ce15(0x168)](!_0x2d535a,!_0x873606))throw new Error(_0x59ce15(0x172)+_0x390a49+'\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20'+_0x390a49+'\x20baseUrl\x20<url>');return{'activeProfile':_0x390a49,'resolvedCloudProfile':_0x2ff84c,'cloudAuthPath':_0x11775a,'resolvedSettings':_0x27d64e,'isCdpMode':_0x873606,'url':_0x2d535a,'baseUrlSource':_0xc60699['baseUrlSource'],'authEnvKey':_0x5a8615,'startPath':_0xc60699[_0x59ce15(0x16b)]};}function _0x3860(){const _0x35cfd7=['ybwGj','4315340BVwNwp','\x20does\x20not\x20exist.','key','11712195GwhOQR','royxk','vsHDp','YKXgN','YBvzD','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','8205GDvwQK','dpYxv','\x22\x20no\x20longer\x20exists\x20(or\x20could\x20not\x20be\x20fetched).\x20Options:\x0a','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','\x20\x20Falling\x20back\x20to\x20saved\x20active\x20profile\x20\x22','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','telemetry','29217qzDkBM','name','Profile\x20\x22','env','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','\x20\x20Note:\x20--env\x20\x22','858053epENOs','authEnv','JVrIW','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','prompt','envBaseUrl','ZQEwl','sFzPC','\x22\x20only\x20affects\x20ad-hoc\x20profile\x20resolution;\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20use\x20it.','RANGER_TEST_USERNAME','startPath','\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20to\x20switch\x20(see\x20`ranger\x20profile\x20ls`),\x20or\x0a','domains','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','cloud','\x22\x20instead\x20of\x20the\x20saved\x20active\x20profile\x20\x22','No\x20baseUrl\x20configured\x20for\x20profile\x20\x22','334TBFymi','url','\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20','\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','baseUrl','1284FMolJm','88vYFJJh','list','fCRYA','oaKTT','cdpEndpoint','fqbOA','envStartPath','18588120bDXMpm','RANGER_SESSION_STATE_PATH=','fdkIB','npuwK','51271vlHqaf','\x20\x20RANGER_TEST_USERNAME\x20is\x20set\x20—\x20using\x20profile\x20\x22','\x20to\x20override.','resolvedEnv','CNJzG','status','profile','log'];_0x3860=function(){return _0x35cfd7;};return _0x3860();}function expandString(_0x161fe2){const _0x1ad454={'yELXg':function(_0x37328b,_0x4b145e){return _0x37328b(_0x4b145e);}};if(typeof _0x161fe2!=='string')return _0x161fe2;return _0x1ad454['yELXg'](resolveEnvVars,_0x161fe2);}function expandOverrides(_0x37bca8){const _0x13de88=_0x1bd3,_0x1205ef={'popoS':function(_0x4e264e,_0x5578b0){return _0x4e264e===_0x5578b0;},'CNJzG':'string','npuwK':function(_0x36ec51,_0x10c3ae){return _0x36ec51(_0x10c3ae);},'eZiMH':function(_0xc275fe,_0x2e14cf){return _0xc275fe(_0x2e14cf);}};if(!_0x37bca8)return _0x37bca8;const _0x351249={..._0x37bca8};return _0x1205ef['popoS'](typeof _0x351249['baseUrl'],_0x1205ef[_0x13de88(0x188)])&&(_0x351249['baseUrl']=_0x1205ef[_0x13de88(0x183)](resolveEnvVars,_0x351249['baseUrl'])),_0x1205ef['popoS'](typeof _0x351249['startPath'],'string')&&(_0x351249[_0x13de88(0x16b)]=_0x1205ef['eZiMH'](resolveEnvVars,_0x351249['startPath'])),_0x351249;}
@@ -1 +1 @@
1
- const _0x27c0fd=_0x1dc0;(function(_0x36997d,_0x46c064){const _0x1f505f=_0x1dc0,_0x21fe0b=_0x36997d();while(!![]){try{const _0x3b5aca=parseInt(_0x1f505f(0x123))/0x1+-parseInt(_0x1f505f(0x121))/0x2+parseInt(_0x1f505f(0x136))/0x3*(-parseInt(_0x1f505f(0x13a))/0x4)+-parseInt(_0x1f505f(0x12e))/0x5*(-parseInt(_0x1f505f(0x124))/0x6)+parseInt(_0x1f505f(0x129))/0x7*(-parseInt(_0x1f505f(0x12d))/0x8)+parseInt(_0x1f505f(0x138))/0x9+parseInt(_0x1f505f(0x134))/0xa;if(_0x3b5aca===_0x46c064)break;else _0x21fe0b['push'](_0x21fe0b['shift']());}catch(_0x5bad6e){_0x21fe0b['push'](_0x21fe0b['shift']());}}}(_0x317c,0xd0419));function firstDefined(..._0x9b4159){const _0x19981d={'hghsO':function(_0x3bb46a,_0xd0f3a){return _0x3bb46a!==_0xd0f3a;}};for(const _0xf9a0ff of _0x9b4159){if(_0xf9a0ff!==undefined&&_0xf9a0ff!==null&&_0x19981d['hghsO'](_0xf9a0ff,''))return _0xf9a0ff;}return undefined;}function normalizeAuthEnvironmentDomain(_0x5a437e){const _0xd9ab=_0x1dc0;if(!_0x5a437e)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0xd9ab(0x131)](_0x5a437e))return _0x5a437e;return'https://'+_0x5a437e;}export function resolveBaseUrlWithSource(_0x1e023f){const _0x1051ee=_0x1dc0,_0x528113={'sXrEe':function(_0x1729b6,_0x166ecd){return _0x1729b6===_0x166ecd;},'EYnHz':'--base-url','yGtiN':_0x1051ee(0x126),'yzEfg':'local\x20profile\x20settings','ULSvF':function(_0x4dc4fc,_0x4c31bd){return _0x4dc4fc===_0x4c31bd;},'IRsnn':_0x1051ee(0x137),'LFMlU':function(_0x42cd45,_0x541343){return _0x42cd45(_0x541343);},'qdxvE':function(_0x438de0,_0x4f3598){return _0x438de0!==_0x4f3598;}},_0xde86f8=_0x1e023f['projectOverrides'],_0x3d2965=!!_0xde86f8&&'baseUrl'in _0xde86f8,_0x252ebe=_0xde86f8?.[_0x1051ee(0x128)],_0x30f7e3=!(_0x3d2965&&_0x528113['sXrEe'](_0x252ebe,null)),_0x307384=[[_0x1e023f['flagBaseUrl'],_0x528113[_0x1051ee(0x127)]],[_0x1e023f[_0x1051ee(0x11f)],_0x528113[_0x1051ee(0x135)]],[_0x1e023f[_0x1051ee(0x122)],_0x528113['yzEfg']],[_0x528113[_0x1051ee(0x12a)](typeof _0x252ebe,_0x528113[_0x1051ee(0x12f)])?_0x252ebe:undefined,'projects.json\x20override'],[_0x30f7e3?_0x1e023f[_0x1051ee(0x125)]?.['baseUrl']:undefined,_0x1051ee(0x12c)],[_0x30f7e3?_0x528113['LFMlU'](normalizeAuthEnvironmentDomain,_0x1e023f[_0x1051ee(0x133)]):undefined,_0x1051ee(0x130)]];for(const [_0x3f5968,_0x6dac97]of _0x307384){if(_0x3f5968!==undefined&&_0x528113['qdxvE'](_0x3f5968,null)&&_0x3f5968!=='')return{'baseUrl':_0x3f5968,'source':_0x6dac97};}return{};}export function resolveBaseUrl(_0x7e38bb){return resolveBaseUrlWithSource(_0x7e38bb)['baseUrl'];}function _0x317c(){const _0x5ceca2=['45865VbAZdN','IRsnn','auth\x20environment\x20domain','test','vDMoE','authEnvironmentDomain','6735020GPBVtK','yGtiN','669BbQIUy','string','6662664omikJf','startPath','27048IeNvqJ','env','envBaseUrl','envStartPath','1504622eYmUGA','localSettingsBaseUrl','889394GLzIZe','834HzjnZf','cloudSettings','RANGER_BASE_URL','EYnHz','baseUrl','315tnOzrA','ULSvF','RANGER_START_PATH','cloud\x20profile\x20settings','82664PTJEGT'];_0x317c=function(){return _0x5ceca2;};return _0x317c();}export function resolveStartPath(_0x322a5d){const _0x26dc7b=_0x1dc0,_0x3d3917={'IhzKJ':_0x26dc7b(0x139),'tcbVU':function(_0x205e34,_0x1f614e,_0x437d86,_0x30c86d,_0xcfc470){return _0x205e34(_0x1f614e,_0x437d86,_0x30c86d,_0xcfc470);}},_0x100d41=_0x322a5d['projectOverrides'],_0x15f060=!!_0x100d41&&_0x3d3917['IhzKJ']in _0x100d41,_0x463ab0=_0x100d41?.['startPath'],_0x812ffb=!(_0x15f060&&_0x463ab0===null);return _0x3d3917['tcbVU'](firstDefined,_0x322a5d['flagStartPath'],_0x322a5d[_0x26dc7b(0x120)],typeof _0x463ab0==='string'?_0x463ab0:undefined,_0x812ffb?_0x322a5d['cloudSettings']?.[_0x26dc7b(0x139)]:undefined);}function _0x1dc0(_0x5d915f,_0x478262){_0x5d915f=_0x5d915f-0x11e;const _0x317c92=_0x317c();let _0x1dc07b=_0x317c92[_0x5d915f];return _0x1dc07b;}export function joinBaseAndPath(_0x20b745,_0x33f2e9){if(!_0x20b745)return undefined;if(!_0x33f2e9)return _0x20b745;const _0x5d8f05=_0x20b745['endsWith']('/')?_0x20b745['slice'](0x0,-0x1):_0x20b745,_0x579245=_0x33f2e9['startsWith']('/')?_0x33f2e9:'/'+_0x33f2e9;return _0x5d8f05+_0x579245;}export function resolveProfileUrl(_0x4e6068){const _0x4f0755=_0x1dc0,_0x4e28fe={'vDMoE':function(_0x3ae482,_0x13436a){return _0x3ae482(_0x13436a);},'vTPrt':function(_0x1ea533,_0x1f9e2c,_0x14e698){return _0x1ea533(_0x1f9e2c,_0x14e698);}},{baseUrl:_0x4caa62,source:_0x5a7259}=_0x4e28fe[_0x4f0755(0x132)](resolveBaseUrlWithSource,_0x4e6068),_0x1d2746=_0x4e28fe[_0x4f0755(0x132)](resolveStartPath,_0x4e6068);return{'baseUrl':_0x4caa62,'baseUrlSource':_0x5a7259,'startPath':_0x1d2746,'url':_0x4e28fe['vTPrt'](joinBaseAndPath,_0x4caa62,_0x1d2746)};}export function readUrlEnvVars(_0x5e4317=process[_0x27c0fd(0x11e)]){const _0x32a497=_0x27c0fd;return{'envBaseUrl':_0x5e4317[_0x32a497(0x126)],'envStartPath':_0x5e4317[_0x32a497(0x12b)]};}
1
+ (function(_0x4d714e,_0x1101d1){const _0x50acc8=_0x3d18,_0x22d541=_0x4d714e();while(!![]){try{const _0x505c07=-parseInt(_0x50acc8(0x207))/0x1+-parseInt(_0x50acc8(0x205))/0x2*(-parseInt(_0x50acc8(0x1fb))/0x3)+-parseInt(_0x50acc8(0x204))/0x4+parseInt(_0x50acc8(0x201))/0x5*(parseInt(_0x50acc8(0x1fe))/0x6)+parseInt(_0x50acc8(0x20e))/0x7+parseInt(_0x50acc8(0x202))/0x8+-parseInt(_0x50acc8(0x208))/0x9;if(_0x505c07===_0x1101d1)break;else _0x22d541['push'](_0x22d541['shift']());}catch(_0x307c9d){_0x22d541['push'](_0x22d541['shift']());}}}(_0x5b5f,0xf2843));function firstDefined(..._0x1df6d4){const _0x103b14=_0x3d18,_0x154b58={'IdTuO':function(_0x27bf4f,_0x415ed3){return _0x27bf4f!==_0x415ed3;}};for(const _0x2ab785 of _0x1df6d4){if(_0x2ab785!==undefined&&_0x154b58[_0x103b14(0x1f1)](_0x2ab785,null)&&_0x2ab785!=='')return _0x2ab785;}return undefined;}function normalizeAuthEnvironmentDomain(_0x37cb0f){if(!_0x37cb0f)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i['test'](_0x37cb0f))return _0x37cb0f;return'https://'+_0x37cb0f;}export function resolveBaseUrlWithSource(_0x2b19a2){const _0x16f65d=_0x3d18,_0x204632={'hZjIw':function(_0x16484c,_0x3f2f3f){return _0x16484c in _0x3f2f3f;},'CdWma':'baseUrl','xfCLp':function(_0x366739,_0x3a5c81){return _0x366739===_0x3a5c81;},'UbUut':_0x16f65d(0x1fc),'QjowY':_0x16f65d(0x1fd),'vrnnc':'cloud\x20profile\x20settings','dycfp':function(_0x5ad695,_0xe0fa2b){return _0x5ad695(_0xe0fa2b);},'bEElT':function(_0x50b94b,_0x3e4341){return _0x50b94b!==_0x3e4341;},'baZbJ':function(_0x36e402,_0x57f783){return _0x36e402!==_0x57f783;},'OeVwZ':function(_0x47dc98,_0x3b71cf){return _0x47dc98!==_0x3b71cf;}},_0x5a733c=_0x2b19a2[_0x16f65d(0x1f0)],_0x166da4=!!_0x5a733c&&_0x204632[_0x16f65d(0x20c)](_0x204632['CdWma'],_0x5a733c),_0x4bd94f=_0x5a733c?.['baseUrl'],_0x1fab6d=!(_0x166da4&&_0x204632[_0x16f65d(0x1f8)](_0x4bd94f,null)),_0x3bb812=[[_0x2b19a2[_0x16f65d(0x20a)],_0x16f65d(0x203)],[_0x2b19a2['envBaseUrl'],_0x204632[_0x16f65d(0x1f6)]],[_0x2b19a2['localSettingsBaseUrl'],'local\x20profile\x20settings'],[_0x204632['xfCLp'](typeof _0x4bd94f,_0x16f65d(0x200))?_0x4bd94f:undefined,_0x204632[_0x16f65d(0x1f2)]],[_0x1fab6d?_0x2b19a2[_0x16f65d(0x20b)]?.[_0x16f65d(0x206)]:undefined,_0x204632['vrnnc']],[_0x1fab6d?_0x204632[_0x16f65d(0x1f4)](normalizeAuthEnvironmentDomain,_0x2b19a2[_0x16f65d(0x20d)]):undefined,_0x16f65d(0x209)]];for(const [_0x12c0c6,_0x4168c2]of _0x3bb812){if(_0x204632['bEElT'](_0x12c0c6,undefined)&&_0x204632['baZbJ'](_0x12c0c6,null)&&_0x204632[_0x16f65d(0x1ff)](_0x12c0c6,''))return{'baseUrl':_0x12c0c6,'source':_0x4168c2};}return{};}export function resolveBaseUrl(_0x160a0b){const _0x585a92=_0x3d18;return resolveBaseUrlWithSource(_0x160a0b)[_0x585a92(0x206)];}function _0x5b5f(){const _0x1d74e2=['ekoiT','3oIHAez','RANGER_BASE_URL','projects.json\x20override','2869302ngsswk','OeVwZ','string','5YCUSAb','1731144IOtaVZ','--base-url','237264IGBvpx','1834516aKoBCi','baseUrl','1476393EJsRmt','2435634fKUmwe','auth\x20environment\x20domain','flagBaseUrl','cloudSettings','hZjIw','authEnvironmentDomain','8314698iUenGW','tjtfx','projectOverrides','IdTuO','QjowY','startsWith','dycfp','flagStartPath','UbUut','endsWith','xfCLp','startPath'];_0x5b5f=function(){return _0x1d74e2;};return _0x5b5f();}function _0x3d18(_0x4d7135,_0x391695){_0x4d7135=_0x4d7135-0x1f0;const _0x5b5f85=_0x5b5f();let _0x3d18d2=_0x5b5f85[_0x4d7135];return _0x3d18d2;}export function resolveStartPath(_0x90aa0b){const _0x98d58a=_0x3d18,_0x2b22e7={'ekoiT':function(_0x4f6ee2,_0xaf9afc){return _0x4f6ee2 in _0xaf9afc;},'mEwKN':_0x98d58a(0x200)},_0x2c25cd=_0x90aa0b['projectOverrides'],_0x4a7f94=!!_0x2c25cd&&_0x2b22e7[_0x98d58a(0x1fa)]('startPath',_0x2c25cd),_0x1785d6=_0x2c25cd?.[_0x98d58a(0x1f9)],_0x588f9e=!(_0x4a7f94&&_0x1785d6===null);return firstDefined(_0x90aa0b[_0x98d58a(0x1f5)],_0x90aa0b['envStartPath'],typeof _0x1785d6===_0x2b22e7['mEwKN']?_0x1785d6:undefined,_0x588f9e?_0x90aa0b[_0x98d58a(0x20b)]?.['startPath']:undefined);}export function joinBaseAndPath(_0x203001,_0x476694){const _0x5ea7ad=_0x3d18,_0xddfc7a={'tjtfx':function(_0x51f7e4,_0x101daf){return _0x51f7e4+_0x101daf;}};if(!_0x203001)return undefined;if(!_0x476694)return _0x203001;const _0x1e4b1e=_0x203001[_0x5ea7ad(0x1f7)]('/')?_0x203001['slice'](0x0,-0x1):_0x203001,_0x22e4e2=_0x476694[_0x5ea7ad(0x1f3)]('/')?_0x476694:_0xddfc7a[_0x5ea7ad(0x20f)]('/',_0x476694);return _0x1e4b1e+_0x22e4e2;}export function resolveProfileUrl(_0x2771f7){const _0x566e88={'YJZji':function(_0x4501b4,_0xe41027){return _0x4501b4(_0xe41027);},'YwHNC':function(_0x368247,_0x4222a3,_0x57a0b2){return _0x368247(_0x4222a3,_0x57a0b2);}},{baseUrl:_0x518c87,source:_0x3a7c74}=resolveBaseUrlWithSource(_0x2771f7),_0x669a9e=_0x566e88['YJZji'](resolveStartPath,_0x2771f7);return{'baseUrl':_0x518c87,'baseUrlSource':_0x3a7c74,'startPath':_0x669a9e,'url':_0x566e88['YwHNC'](joinBaseAndPath,_0x518c87,_0x669a9e)};}export function readUrlEnvVars(_0x3ecbe4=process['env']){const _0x1e4dc5=_0x3d18;return{'envBaseUrl':_0x3ecbe4[_0x1e4dc5(0x1fc)],'envStartPath':_0x3ecbe4['RANGER_START_PATH']};}
@@ -1 +1 @@
1
- (function(_0x5460c6,_0x5e68ab){const _0x2ace63=_0x1f94,_0x107877=_0x5460c6();while(!![]){try{const _0x18cf41=parseInt(_0x2ace63(0x188))/0x1*(parseInt(_0x2ace63(0x187))/0x2)+-parseInt(_0x2ace63(0x190))/0x3*(-parseInt(_0x2ace63(0x18b))/0x4)+parseInt(_0x2ace63(0x18a))/0x5+parseInt(_0x2ace63(0x192))/0x6+-parseInt(_0x2ace63(0x18c))/0x7*(parseInt(_0x2ace63(0x18e))/0x8)+-parseInt(_0x2ace63(0x189))/0x9*(-parseInt(_0x2ace63(0x185))/0xa)+-parseInt(_0x2ace63(0x183))/0xb;if(_0x18cf41===_0x5e68ab)break;else _0x107877['push'](_0x107877['shift']());}catch(_0x24df41){_0x107877['push'](_0x107877['shift']());}}}(_0x5f31,0x4e116));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x1f94(_0x4dd213,_0x3b4faf){_0x4dd213=_0x4dd213-0x182;const _0x5f31ba=_0x5f31();let _0x1f9464=_0x5f31ba[_0x4dd213];return _0x1f9464;}function _0x5f31(){const _0x52f7e6=['baseDelayMs','3863926Jrkdrv','pow','188460WHhNHt','error','4LGinjg','23642rkIWWJ','207Ibgfsl','1075875DiaIBL','4YwbICj','52017fPdOGP','label','328KxpaIk','\x20failed\x20(attempt\x20','500478FDPzaa','SINJr','677760FdFYhm'];_0x5f31=function(){return _0x52f7e6;};return _0x5f31();}export async function withRetry(_0x2368ba,_0x283893){const _0x106897=_0x1f94,_0x1a6907={'SINJr':function(_0x425c58){return _0x425c58();},'dEiHV':function(_0x16044d,_0x754de0){return _0x16044d instanceof _0x754de0;}},_0x58bd68=_0x283893?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x263b24=_0x283893?.[_0x106897(0x182)]??DEFAULT_BASE_DELAY_MS;let _0x11fc71;for(let _0x20dfe3=0x0;_0x20dfe3<=_0x58bd68;_0x20dfe3++){try{return await _0x1a6907[_0x106897(0x191)](_0x2368ba);}catch(_0x188f2c){_0x11fc71=_0x1a6907['dEiHV'](_0x188f2c,Error)?_0x188f2c:new Error(String(_0x188f2c));if(_0x20dfe3<_0x58bd68){const _0x44a90b=_0x263b24*Math[_0x106897(0x184)](0x2,_0x20dfe3);_0x283893?.[_0x106897(0x18d)]&&console[_0x106897(0x186)](_0x283893['label']+_0x106897(0x18f)+(_0x20dfe3+0x1)+'/'+(_0x58bd68+0x1)+'),\x20retrying\x20in\x20'+_0x44a90b+'ms...'),await new Promise(_0x5ebaf8=>setTimeout(_0x5ebaf8,_0x44a90b));}}}throw _0x11fc71;}
1
+ function _0x39a3(_0x20897a,_0x37a3f1){_0x20897a=_0x20897a-0x1de;const _0x4855b4=_0x4855();let _0x39a3a3=_0x4855b4[_0x20897a];return _0x39a3a3;}function _0x4855(){const _0x356969=['ms...','1259414BTlUYS','9pdVcNs','543190evgQOH','15468NkdFfX','label','BucOk','1OIrsRx','104OJMFhs','3327192szpePy','LVSTX','40061VqUgRD','baseDelayMs','861750GHnFGB','RyxnB','2948340TSsBOJ','308eLBylP'];_0x4855=function(){return _0x356969;};return _0x4855();}(function(_0x5a099f,_0x526d96){const _0x17739b=_0x39a3,_0x464b6f=_0x5a099f();while(!![]){try{const _0x1a30a7=-parseInt(_0x17739b(0x1e8))/0x1*(parseInt(_0x17739b(0x1e2))/0x2)+-parseInt(_0x17739b(0x1e5))/0x3*(-parseInt(_0x17739b(0x1e0))/0x4)+-parseInt(_0x17739b(0x1e4))/0x5+parseInt(_0x17739b(0x1ee))/0x6+-parseInt(_0x17739b(0x1ec))/0x7*(parseInt(_0x17739b(0x1e9))/0x8)+-parseInt(_0x17739b(0x1e3))/0x9*(-parseInt(_0x17739b(0x1df))/0xa)+parseInt(_0x17739b(0x1ea))/0xb;if(_0x1a30a7===_0x526d96)break;else _0x464b6f['push'](_0x464b6f['shift']());}catch(_0x44e84a){_0x464b6f['push'](_0x464b6f['shift']());}}}(_0x4855,0x4f64f));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x1b82b1,_0x38be19){const _0x4c7174=_0x39a3,_0x27459f={'RyxnB':function(_0x3dc05e){return _0x3dc05e();},'LVSTX':function(_0x5c4836,_0xb4bf4b){return _0x5c4836(_0xb4bf4b);},'BucOk':function(_0x12b427,_0x505556){return _0x12b427+_0x505556;}},_0x2c594b=_0x38be19?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x25ee04=_0x38be19?.[_0x4c7174(0x1ed)]??DEFAULT_BASE_DELAY_MS;let _0x3ce778;for(let _0xe784d2=0x0;_0xe784d2<=_0x2c594b;_0xe784d2++){try{return await _0x27459f[_0x4c7174(0x1de)](_0x1b82b1);}catch(_0x518831){_0x3ce778=_0x518831 instanceof Error?_0x518831:new Error(_0x27459f[_0x4c7174(0x1eb)](String,_0x518831));if(_0xe784d2<_0x2c594b){const _0x56f1dd=_0x25ee04*Math['pow'](0x2,_0xe784d2);_0x38be19?.[_0x4c7174(0x1e6)]&&console['error'](_0x38be19[_0x4c7174(0x1e6)]+'\x20failed\x20(attempt\x20'+_0x27459f[_0x4c7174(0x1e7)](_0xe784d2,0x1)+'/'+(_0x2c594b+0x1)+'),\x20retrying\x20in\x20'+_0x56f1dd+_0x4c7174(0x1e1)),await new Promise(_0x2f2acc=>setTimeout(_0x2f2acc,_0x56f1dd));}}}throw _0x3ce778;}
@@ -1 +1 @@
1
- (function(_0x3232be,_0x2edfad){const _0x530bc9=_0x5801,_0x5bb870=_0x3232be();while(!![]){try{const _0x33eb14=-parseInt(_0x530bc9(0xb1))/0x1+parseInt(_0x530bc9(0xaf))/0x2*(-parseInt(_0x530bc9(0xae))/0x3)+-parseInt(_0x530bc9(0xb5))/0x4*(parseInt(_0x530bc9(0xb7))/0x5)+-parseInt(_0x530bc9(0xb8))/0x6*(parseInt(_0x530bc9(0xba))/0x7)+-parseInt(_0x530bc9(0xbb))/0x8*(-parseInt(_0x530bc9(0xb4))/0x9)+parseInt(_0x530bc9(0xb2))/0xa+-parseInt(_0x530bc9(0xb3))/0xb*(-parseInt(_0x530bc9(0xb6))/0xc);if(_0x33eb14===_0x2edfad)break;else _0x5bb870['push'](_0x5bb870['shift']());}catch(_0x132a5f){_0x5bb870['push'](_0x5bb870['shift']());}}}(_0x271a,0x6f7c7));function _0x5801(_0x5c6223,_0x13797c){_0x5c6223=_0x5c6223-0xae;const _0x271a66=_0x271a();let _0x580141=_0x271a66[_0x5c6223];return _0x580141;}const ABSOLUTE_URL_PATTERN=/https?:\/\/[^\s"'<>()\[\]]+/gi;function _0x271a(){const _0x4a0f9c=['13706429DPFtgu','3360213MMDHsI','2766748BaROYk','12EUwgFg','5SVLyJO','96ElROBS','origin','80472NXZcVr','8fOxJnj','3QcfEqh','831394JCLeDg','add','603739eTcVxO','7323100peiqpt'];_0x271a=function(){return _0x4a0f9c;};return _0x271a();}export function extractUrlOrigins(_0x234847){const _0x21ca43=_0x5801,_0x510b71=new Set();for(const _0x3a7b82 of _0x234847['matchAll'](ABSOLUTE_URL_PATTERN)){const _0x46a040=_0x3a7b82[0x0]['replace'](/[.,;:!?]+$/,'');try{_0x510b71[_0x21ca43(0xb0)](new URL(_0x46a040)[_0x21ca43(0xb9)]);}catch{}}return[..._0x510b71];}export function findScenarioOriginMismatches(_0x4994d0,_0x38254c){const _0x5bbde4=_0x5801;let _0x1ffcee;try{_0x1ffcee=new URL(_0x38254c)[_0x5bbde4(0xb9)];}catch{return[];}return extractUrlOrigins(_0x4994d0)['filter'](_0x686dc5=>_0x686dc5!==_0x1ffcee);}
1
+ (function(_0x943e,_0x470d27){const _0x501943=_0x3168,_0x4f34fc=_0x943e();while(!![]){try{const _0x2ca7c2=-parseInt(_0x501943(0xf1))/0x1+parseInt(_0x501943(0xf3))/0x2*(-parseInt(_0x501943(0xef))/0x3)+parseInt(_0x501943(0xed))/0x4+-parseInt(_0x501943(0xf2))/0x5*(-parseInt(_0x501943(0xf7))/0x6)+-parseInt(_0x501943(0xf6))/0x7*(-parseInt(_0x501943(0xf8))/0x8)+-parseInt(_0x501943(0xee))/0x9*(parseInt(_0x501943(0xf0))/0xa)+parseInt(_0x501943(0xec))/0xb*(parseInt(_0x501943(0xf4))/0xc);if(_0x2ca7c2===_0x470d27)break;else _0x4f34fc['push'](_0x4f34fc['shift']());}catch(_0x4fab19){_0x4f34fc['push'](_0x4f34fc['shift']());}}}(_0x2058,0x5a013));const ABSOLUTE_URL_PATTERN=/https?:\/\/[^\s"'<>()\[\]]+/gi;export function extractUrlOrigins(_0xceb902){const _0x1548f8=_0x3168,_0x20266a=new Set();for(const _0x138c60 of _0xceb902['matchAll'](ABSOLUTE_URL_PATTERN)){const _0x570773=_0x138c60[0x0][_0x1548f8(0xea)](/[.,;:!?]+$/,'');try{_0x20266a[_0x1548f8(0xf5)](new URL(_0x570773)[_0x1548f8(0xeb)]);}catch{}}return[..._0x20266a];}function _0x3168(_0x5cd3b1,_0x1d88e1){_0x5cd3b1=_0x5cd3b1-0xea;const _0x20580f=_0x2058();let _0x316875=_0x20580f[_0x5cd3b1];return _0x316875;}export function findScenarioOriginMismatches(_0xa8a73b,_0xbe5216){const _0x121796={'GDYIy':function(_0x3d0241,_0x481ed8){return _0x3d0241(_0x481ed8);}};let _0x1ea6cd;try{_0x1ea6cd=new URL(_0xbe5216)['origin'];}catch{return[];}return _0x121796['GDYIy'](extractUrlOrigins,_0xa8a73b)['filter'](_0x174cab=>_0x174cab!==_0x1ea6cd);}function _0x2058(){const _0x340727=['143690TClPnx','1192726iMXRdq','96UXAszd','add','371MTRNty','6hMtkGk','66512cmQcgR','replace','origin','1002397UiBlqs','2633316muorzZ','207grkNiI','3FnIKtY','128680AbqWMk','595739MJihku'];_0x2058=function(){return _0x340727;};return _0x2058();}
@@ -1 +1 @@
1
- const _0x433da9=_0x2d96;(function(_0x5cb49,_0x42c2b3){const _0x34d803=_0x2d96,_0x5467d5=_0x5cb49();while(!![]){try{const _0x1165cb=-parseInt(_0x34d803(0x1dc))/0x1+-parseInt(_0x34d803(0x1da))/0x2*(-parseInt(_0x34d803(0x1d1))/0x3)+-parseInt(_0x34d803(0x1e3))/0x4*(-parseInt(_0x34d803(0x1c9))/0x5)+parseInt(_0x34d803(0x1cb))/0x6+parseInt(_0x34d803(0x1f1))/0x7+parseInt(_0x34d803(0x1c8))/0x8+-parseInt(_0x34d803(0x1ef))/0x9*(parseInt(_0x34d803(0x1df))/0xa);if(_0x1165cb===_0x42c2b3)break;else _0x5467d5['push'](_0x5467d5['shift']());}catch(_0x591da2){_0x5467d5['push'](_0x5467d5['shift']());}}}(_0xe14a,0x525aa));import*as _0xa40077 from'fs';import*as _0x2fed6f from'path';import*as _0xfe0130 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x2fed6f[_0x433da9(0x1d4)](_0xfe0130[_0x433da9(0x1d9)](),_0x433da9(0x1f4),_0x433da9(0x1d8));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x4f6f77=_0x433da9,_0x402fa8={'NAWPy':function(_0x48df49){return _0x48df49();}};try{if(_0xa40077['existsSync'](CACHE_FILE)){const _0x23b400=JSON['parse'](_0xa40077['readFileSync'](CACHE_FILE,'utf-8'));return{'version':0x3,'sessions':_0x23b400[_0x4f6f77(0x1e4)]||{},'branches':_0x23b400[_0x4f6f77(0x1ed)]||{},'lastEnabledSessionClearedAt':_0x23b400[_0x4f6f77(0x1d6)]};}}catch{}return _0x402fa8['NAWPy'](createEmptyCache);}function saveCache(_0x5bf478){const _0x230d34=_0x433da9;try{const _0x56852d=_0x2fed6f[_0x230d34(0x1e8)](CACHE_FILE);!_0xa40077[_0x230d34(0x1c6)](_0x56852d)&&_0xa40077['mkdirSync'](_0x56852d,{'recursive':!![]}),_0xa40077['writeFileSync'](CACHE_FILE,JSON[_0x230d34(0x1ca)](_0x5bf478,null,0x2));}catch{}}export function getCurrentBranch(){const _0x31698b=_0x433da9,_0x2f3992={'GlXzx':function(_0x196ed6,_0x436212,_0x1aab43){return _0x196ed6(_0x436212,_0x1aab43);},'PUreG':_0x31698b(0x1e7),'grLGS':_0x31698b(0x1d7),'UbNUU':function(_0x2f6884,_0x55a643){return _0x2f6884===_0x55a643;},'QFvVj':_0x31698b(0x1d5)};try{const _0x1c6ed9=_0x2f3992['GlXzx'](execSync,_0x2f3992['PUreG'],{'encoding':'utf-8','stdio':[_0x2f3992['grLGS'],_0x2f3992['grLGS'],_0x2f3992[_0x31698b(0x1f2)]]})['trim']();if(!_0x1c6ed9||_0x2f3992['UbNUU'](_0x1c6ed9,_0x2f3992['QFvVj']))return null;return _0x1c6ed9;}catch{return null;}}export function enableBranch(_0x2db402){const _0x988dd8=_0x433da9,_0x44ffaf={'dTssL':function(_0x2e87eb,_0x3bc179){return _0x2e87eb(_0x3bc179);}},_0x403021=loadCache();_0x403021['branches'][_0x2db402]=!![],_0x44ffaf[_0x988dd8(0x1cc)](saveCache,_0x403021);}export function disableBranch(_0x50c7a5){const _0x4426b1=_0x433da9,_0x2134da={'BFbAx':function(_0x214866){return _0x214866();}},_0x37d7ec=_0x2134da[_0x4426b1(0x1e0)](loadCache);delete _0x37d7ec['branches'][_0x50c7a5],saveCache(_0x37d7ec);}export function isBranchEnabled(_0x4958b4){const _0x593afc=_0x433da9,_0x4af0b1={'XAOMX':function(_0x45a181,_0x5df73e){return _0x45a181===_0x5df73e;}},_0x19440f=loadCache();return _0x4af0b1['XAOMX'](_0x19440f[_0x593afc(0x1ed)][_0x4958b4],!![]);}function getOrCreateSession(_0x178e10,_0x164e8d){const _0x43569f=_0x433da9;return!_0x178e10[_0x43569f(0x1e4)][_0x164e8d]&&(_0x178e10[_0x43569f(0x1e4)][_0x164e8d]={}),_0x178e10['sessions'][_0x164e8d];}export function enableSession(_0x186672){const _0x4b57c0=_0x433da9,_0x3c2cee={'mkHLJ':function(_0x224998){return _0x224998();},'LAEgO':function(_0x228377,_0x334cb5){return _0x228377!==_0x334cb5;},'NINAE':_0x4b57c0(0x1f3),'PHxZO':function(_0x455bee,_0x294bcc){return _0x455bee(_0x294bcc);}},_0x47ca67=_0x3c2cee[_0x4b57c0(0x1ea)](loadCache),_0x3434b8=getOrCreateSession(_0x47ca67,_0x186672);_0x3434b8[_0x4b57c0(0x1e1)]=!![];const _0x216f58=getCurrentBranch();_0x216f58&&_0x3c2cee[_0x4b57c0(0x1e9)](_0x216f58,_0x3c2cee['NINAE'])&&_0x216f58!=='master'&&(_0x47ca67['branches'][_0x216f58]=!![],_0x3434b8['currentBranch']=_0x216f58),_0x3c2cee['PHxZO'](saveCache,_0x47ca67);}export function isSessionEnabled(_0x59135d){const _0x48e556=_0x433da9,_0x2ffd0e={'CFUle':function(_0x1f2f07){return _0x1f2f07();},'CBQvf':_0x48e556(0x1f3),'dxuYQ':function(_0x142665,_0x2df92a){return _0x142665===_0x2df92a;},'WjfFj':_0x48e556(0x1de),'dcYYo':function(_0x188ba1,_0x548115){return _0x188ba1===_0x548115;}},_0x11d73c=_0x2ffd0e['CFUle'](loadCache),_0x1d317e=getCurrentBranch();if(!_0x1d317e||_0x1d317e===_0x2ffd0e['CBQvf']||_0x2ffd0e[_0x48e556(0x1f0)](_0x1d317e,_0x2ffd0e['WjfFj']))return _0x11d73c[_0x48e556(0x1e4)][_0x59135d]?.['enabled']===!![];const _0x467004=_0x11d73c[_0x48e556(0x1ed)][_0x1d317e]===!![],_0x434869=_0x2ffd0e[_0x48e556(0x1ce)](_0x11d73c['sessions'][_0x59135d]?.[_0x48e556(0x1e1)],!![]);return _0x467004||_0x434869;}export function disableSession(_0x128df3){const _0x26cf69=_0x433da9,_0x20ee93={'HQBMm':function(_0x35f89d){return _0x35f89d();}},_0x3b32d8=_0x20ee93[_0x26cf69(0x1d0)](loadCache),_0x39a6d6=getOrCreateSession(_0x3b32d8,_0x128df3);_0x39a6d6[_0x26cf69(0x1e1)]=![],saveCache(_0x3b32d8);}export function updateBranchTracking(_0x5f4262){const _0x4c38ca=_0x433da9,_0x465400={'jarRg':'master'},_0x51b460=loadCache(),_0x1bc215=_0x51b460[_0x4c38ca(0x1e4)][_0x5f4262];if(!_0x1bc215?.['enabled'])return;const _0x37beef=getCurrentBranch();if(!_0x37beef||_0x37beef==='main'||_0x37beef===_0x465400['jarRg'])return;_0x1bc215[_0x4c38ca(0x1cf)]!==_0x37beef&&(_0x51b460['branches'][_0x37beef]=!![],_0x1bc215[_0x4c38ca(0x1cf)]=_0x37beef,saveCache(_0x51b460));}export function initBranchTracking(_0x47f131){const _0x5d8e53=_0x433da9,_0x311ec4={'GZJtK':function(_0x2f4b70){return _0x2f4b70();},'rIyPB':_0x5d8e53(0x1f3),'svxBh':function(_0x5b6aa3,_0x351366){return _0x5b6aa3===_0x351366;},'zMLfV':function(_0x48b9a5,_0x55ab0d,_0x51e939){return _0x48b9a5(_0x55ab0d,_0x51e939);}},_0x18dcc6=_0x311ec4['GZJtK'](loadCache),_0x4370b8=getCurrentBranch();if(!_0x4370b8||_0x4370b8===_0x311ec4['rIyPB']||_0x311ec4[_0x5d8e53(0x1d3)](_0x4370b8,'master'))return;if(_0x18dcc6[_0x5d8e53(0x1ed)][_0x4370b8]===!![]){const _0x28defe=_0x311ec4['zMLfV'](getOrCreateSession,_0x18dcc6,_0x47f131);_0x28defe[_0x5d8e53(0x1e1)]=!![],_0x28defe['currentBranch']=_0x4370b8,saveCache(_0x18dcc6);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;function _0xe14a(){const _0x39161d=['mkHLJ','lastPlanReminderAt','toISOString','branches','featureId','445734zwxzHU','dxuYQ','2164470TDxYeI','grLGS','main','.claude','existsSync','nzOht','3158552HyyNfl','10bgCQGY','stringify','1055676BeoBsA','dTssL','VhNxe','dcYYo','currentBranch','HQBMm','243RWIqBb','hquaj','svxBh','join','HEAD','lastEnabledSessionClearedAt','pipe','.ranger_cache.json','homedir','13102JZcFxx','DCcUv','166592pcHEKq','now','master','190vaPVXY','BFbAx','enabled','clear','68604ZblUpp','sessions','registeredAt','GQeQq','git\x20rev-parse\x20--abbrev-ref\x20HEAD','dirname','LAEgO'];_0xe14a=function(){return _0x39161d;};return _0xe14a();}export function recordEnabledSessionCleared(_0x191de7){const _0x8da52f=_0x433da9,_0x565ceb={'wwbtV':function(_0x16093c,_0x31aae9){return _0x16093c(_0x31aae9);}},_0x571232=loadCache(),_0x38defe=_0x571232[_0x8da52f(0x1e4)][_0x191de7];_0x38defe?.['enabled']&&(_0x571232[_0x8da52f(0x1d6)]=Date[_0x8da52f(0x1dd)](),_0x565ceb['wwbtV'](saveCache,_0x571232));}function _0x2d96(_0x3a9716,_0x56de9c){_0x3a9716=_0x3a9716-0x1c6;const _0xe14a05=_0xe14a();let _0x2d9662=_0xe14a05[_0x3a9716];return _0x2d9662;}export function shouldAutoEnableAfterClear(_0x1a4dbb){const _0xe9d546=_0x433da9,_0x2474c0={'hquaj':function(_0x2b95e4,_0x7f7934){return _0x2b95e4!==_0x7f7934;},'DCcUv':function(_0x4e21a9,_0x22cffc){return _0x4e21a9-_0x22cffc;},'YqxBi':function(_0x575ef7,_0x31df06){return _0x575ef7<=_0x31df06;}};if(_0x2474c0[_0xe9d546(0x1d2)](_0x1a4dbb,_0xe9d546(0x1e2)))return![];const _0x5a4b08=loadCache(),_0x55961b=_0x5a4b08[_0xe9d546(0x1d6)];if(!_0x55961b)return![];const _0x25c951=_0x2474c0[_0xe9d546(0x1db)](Date['now'](),_0x55961b);return _0x2474c0['YqxBi'](_0x25c951,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x3e0c82){const _0x5213eb=_0x433da9,_0x1156e1={'GQeQq':function(_0x5f4b05){return _0x5f4b05();},'VhNxe':function(_0x5d0080,_0x307b32){return _0x5d0080!==_0x307b32;}},_0x304fb2=_0x1156e1[_0x5213eb(0x1e6)](loadCache),_0x514a77=getOrCreateSession(_0x304fb2,_0x3e0c82);_0x514a77['enabled']=!![];const _0x4de1f2=_0x1156e1['GQeQq'](getCurrentBranch);_0x4de1f2&&_0x1156e1[_0x5213eb(0x1cd)](_0x4de1f2,_0x5213eb(0x1f3))&&_0x1156e1['VhNxe'](_0x4de1f2,'master')&&(_0x514a77['currentBranch']=_0x4de1f2),delete _0x304fb2['lastEnabledSessionClearedAt'],saveCache(_0x304fb2);}export function registerSession(_0x193689,_0x2992c9){const _0x307b9d=_0x433da9,_0x1b9cb6={'VgueM':function(_0x1e8e32){return _0x1e8e32();},'VBExu':function(_0x5ec8ba,_0x378602){return _0x5ec8ba(_0x378602);}},_0x24138f=_0x1b9cb6['VgueM'](loadCache),_0x2ff0db=getOrCreateSession(_0x24138f,_0x193689);_0x2ff0db[_0x307b9d(0x1ee)]=_0x2992c9,_0x2ff0db['registeredAt']=new Date()[_0x307b9d(0x1ec)](),_0x1b9cb6['VBExu'](saveCache,_0x24138f);}export function getSessionEntry(_0x3984f6){const _0x5702d8=_0x433da9,_0x2d20ed={'jLAVT':function(_0x59c99f){return _0x59c99f();}},_0x474b43=_0x2d20ed['jLAVT'](loadCache),_0x496f77=_0x474b43[_0x5702d8(0x1e4)][_0x3984f6];if(_0x496f77?.[_0x5702d8(0x1ee)]&&_0x496f77?.[_0x5702d8(0x1e5)])return{'featureId':_0x496f77['featureId'],'registeredAt':_0x496f77['registeredAt']};return null;}export function unregisterSession(_0x219f57){const _0x387e39=_0x433da9,_0x59b0d8={'EDekU':function(_0xfb7b66,_0x581bc8){return _0xfb7b66(_0x581bc8);}},_0x8e8b53=loadCache(),_0x438954=_0x8e8b53['sessions'][_0x219f57];_0x438954&&(delete _0x438954[_0x387e39(0x1ee)],delete _0x438954[_0x387e39(0x1e5)],_0x59b0d8['EDekU'](saveCache,_0x8e8b53));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x13fd9a){const _0x366d9d=_0x433da9,_0x3a1434={'ncVxW':function(_0x38f142,_0x1a2059,_0x412969){return _0x38f142(_0x1a2059,_0x412969);}},_0x5b58ac=loadCache(),_0x4aea91=_0x3a1434['ncVxW'](getOrCreateSession,_0x5b58ac,_0x13fd9a),_0x405c33=_0x4aea91[_0x366d9d(0x1eb)]||0x0,_0x2a99ca=Date[_0x366d9d(0x1dd)]();if(_0x2a99ca-_0x405c33>=PLAN_REMINDER_INTERVAL_MS)return _0x4aea91['lastPlanReminderAt']=_0x2a99ca,saveCache(_0x5b58ac),!![];return![];}export function shouldShowStopReminder(_0x557347){const _0x5e6959={'vdFEN':function(_0x3f0c00){return _0x3f0c00();},'mZOJB':function(_0xa32a8d,_0x512c60){return _0xa32a8d>=_0x512c60;}},_0x2b7c84=_0x5e6959['vdFEN'](loadCache),_0x31a37b=getOrCreateSession(_0x2b7c84,_0x557347),_0x8be380=_0x31a37b['lastStopReminderAt']||0x0,_0x5dc143=Date['now']();if(_0x5e6959['mZOJB'](_0x5dc143-_0x8be380,STOP_REMINDER_INTERVAL_MS))return _0x31a37b['lastStopReminderAt']=_0x5dc143,saveCache(_0x2b7c84),!![];return![];}export function hasSessionBeenPrompted(_0x4fe75a){const _0x47d27f=_0x433da9,_0x34dbc3=loadCache();return _0x34dbc3[_0x47d27f(0x1e4)][_0x4fe75a]?.['prompted']===!![];}export function markSessionPrompted(_0xe591fc){const _0x20de90=_0x433da9,_0x27d874={'nzOht':function(_0x52bdde,_0x12b6fa){return _0x52bdde(_0x12b6fa);}},_0x45c65e=loadCache(),_0x3976e4=getOrCreateSession(_0x45c65e,_0xe591fc);_0x3976e4['prompted']=!![],_0x27d874[_0x20de90(0x1c7)](saveCache,_0x45c65e);}export function getCacheFile(){return CACHE_FILE;}
1
+ const _0x397bde=_0x5b0d;(function(_0x5c822b,_0x49b42f){const _0x42ca1c=_0x5b0d,_0x4a2825=_0x5c822b();while(!![]){try{const _0x2f94a2=-parseInt(_0x42ca1c(0x14c))/0x1+parseInt(_0x42ca1c(0x171))/0x2+parseInt(_0x42ca1c(0x15b))/0x3*(-parseInt(_0x42ca1c(0x163))/0x4)+parseInt(_0x42ca1c(0x160))/0x5+parseInt(_0x42ca1c(0x142))/0x6+parseInt(_0x42ca1c(0x162))/0x7+parseInt(_0x42ca1c(0x147))/0x8*(-parseInt(_0x42ca1c(0x15f))/0x9);if(_0x2f94a2===_0x49b42f)break;else _0x4a2825['push'](_0x4a2825['shift']());}catch(_0x593d08){_0x4a2825['push'](_0x4a2825['shift']());}}}(_0x4d73,0x55872));import*as _0x1d78c2 from'fs';import*as _0x411c09 from'path';import*as _0x3660d3 from'os';import{execSync}from'child_process';function _0x5b0d(_0x258d8f,_0xddd432){_0x258d8f=_0x258d8f-0x13e;const _0x4d737f=_0x4d73();let _0x5b0dc1=_0x4d737f[_0x258d8f];return _0x5b0dc1;}const CACHE_FILE=_0x411c09[_0x397bde(0x15e)](_0x3660d3['homedir'](),_0x397bde(0x156),'.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x99eb83=_0x397bde,_0x260200={'MXRza':_0x99eb83(0x158)};try{if(_0x1d78c2[_0x99eb83(0x168)](CACHE_FILE)){const _0x4e6408=JSON['parse'](_0x1d78c2['readFileSync'](CACHE_FILE,_0x260200[_0x99eb83(0x13f)]));return{'version':0x3,'sessions':_0x4e6408[_0x99eb83(0x16c)]||{},'branches':_0x4e6408[_0x99eb83(0x16e)]||{},'lastEnabledSessionClearedAt':_0x4e6408['lastEnabledSessionClearedAt']};}}catch{}return createEmptyCache();}function saveCache(_0x15ccfb){const _0x200c85=_0x397bde;try{const _0xd55b52=_0x411c09['dirname'](CACHE_FILE);!_0x1d78c2['existsSync'](_0xd55b52)&&_0x1d78c2[_0x200c85(0x167)](_0xd55b52,{'recursive':!![]}),_0x1d78c2['writeFileSync'](CACHE_FILE,JSON[_0x200c85(0x14f)](_0x15ccfb,null,0x2));}catch{}}export function getCurrentBranch(){const _0x419822=_0x397bde,_0x4b81a5={'TXRGv':function(_0x2304a4,_0x513f08,_0x2a7a38){return _0x2304a4(_0x513f08,_0x2a7a38);},'HjwRb':'pipe','WLWGw':_0x419822(0x14d)};try{const _0x3ff1d6=_0x4b81a5['TXRGv'](execSync,_0x419822(0x143),{'encoding':'utf-8','stdio':[_0x4b81a5['HjwRb'],_0x4b81a5['HjwRb'],'pipe']})[_0x419822(0x13e)]();if(!_0x3ff1d6||_0x3ff1d6===_0x4b81a5[_0x419822(0x16d)])return null;return _0x3ff1d6;}catch{return null;}}export function enableBranch(_0x1ae1b9){const _0x56aa05={'zRPDP':function(_0x5d2dd0,_0x4b8202){return _0x5d2dd0(_0x4b8202);}},_0x39034c=loadCache();_0x39034c['branches'][_0x1ae1b9]=!![],_0x56aa05['zRPDP'](saveCache,_0x39034c);}export function disableBranch(_0x1d1e56){const _0x6f2cb5=_0x397bde,_0x4d0c39={'JboEJ':function(_0x45d503,_0x1e92f0){return _0x45d503(_0x1e92f0);}},_0x2f4235=loadCache();delete _0x2f4235['branches'][_0x1d1e56],_0x4d0c39[_0x6f2cb5(0x15c)](saveCache,_0x2f4235);}export function isBranchEnabled(_0x3c7f06){const _0x3b4f4b=_0x397bde,_0x4a2136={'Szfap':function(_0x2f6466){return _0x2f6466();},'HTjIA':function(_0x499b6d,_0x262216){return _0x499b6d===_0x262216;}},_0x2f67ac=_0x4a2136['Szfap'](loadCache);return _0x4a2136['HTjIA'](_0x2f67ac[_0x3b4f4b(0x16e)][_0x3c7f06],!![]);}function _0x4d73(){const _0x194105=['77596wjYlUk','LPDrm','now','fdLnB','mkdirSync','existsSync','RcEMH','oaMgr','currentBranch','sessions','WLWGw','branches','registeredAt','SIhSJ','1067552knoSkj','trim','MXRza','yAxtf','nASjB','2345418wcrXxD','git\x20rev-parse\x20--abbrev-ref\x20HEAD','featureId','enabled','jEhOJ','480JPsuDg','main','gJJUD','lastPlanReminderAt','lastStopReminderAt','582206WXetXZ','HEAD','cnFbi','stringify','FXrRF','bXqmU','toISOString','icfBZ','prompted','master','.claude','lastEnabledSessionClearedAt','utf-8','WHzTS','QYdsG','42kLFLhM','JboEJ','kxjYG','join','30411ZrLGln','1824370VVsdUq','iFXDy','821107bpmFXE'];_0x4d73=function(){return _0x194105;};return _0x4d73();}function getOrCreateSession(_0x8c22d4,_0x4b70c6){return!_0x8c22d4['sessions'][_0x4b70c6]&&(_0x8c22d4['sessions'][_0x4b70c6]={}),_0x8c22d4['sessions'][_0x4b70c6];}export function enableSession(_0x45aa7a){const _0x34bbd1=_0x397bde,_0x12dc31={'fdLnB':function(_0x29a42c,_0x12c5ca,_0x596568){return _0x29a42c(_0x12c5ca,_0x596568);},'RcEMH':function(_0x1be75e){return _0x1be75e();},'cnFbi':function(_0x387d1e,_0xf2ae84){return _0x387d1e(_0xf2ae84);}},_0x3a1d84=loadCache(),_0x2e7682=_0x12dc31[_0x34bbd1(0x166)](getOrCreateSession,_0x3a1d84,_0x45aa7a);_0x2e7682['enabled']=!![];const _0x1bcdd3=_0x12dc31[_0x34bbd1(0x169)](getCurrentBranch);_0x1bcdd3&&_0x1bcdd3!==_0x34bbd1(0x148)&&_0x1bcdd3!=='master'&&(_0x3a1d84[_0x34bbd1(0x16e)][_0x1bcdd3]=!![],_0x2e7682['currentBranch']=_0x1bcdd3),_0x12dc31[_0x34bbd1(0x14e)](saveCache,_0x3a1d84);}export function isSessionEnabled(_0x3606c4){const _0x19dde9=_0x397bde,_0x3caf05={'FXrRF':function(_0x138c75){return _0x138c75();},'SIhSJ':function(_0x4c6bea){return _0x4c6bea();},'bkCTL':function(_0x2ce076,_0x5d6dd9){return _0x2ce076===_0x5d6dd9;},'uBbQN':'master','yWAhk':function(_0x1fa3d4,_0xcba275){return _0x1fa3d4===_0xcba275;}},_0x553a2f=_0x3caf05[_0x19dde9(0x150)](loadCache),_0x2913c6=_0x3caf05[_0x19dde9(0x170)](getCurrentBranch);if(!_0x2913c6||_0x2913c6===_0x19dde9(0x148)||_0x3caf05['bkCTL'](_0x2913c6,_0x3caf05['uBbQN']))return _0x553a2f['sessions'][_0x3606c4]?.[_0x19dde9(0x145)]===!![];const _0x29b393=_0x553a2f[_0x19dde9(0x16e)][_0x2913c6]===!![],_0x244e47=_0x3caf05['yWAhk'](_0x553a2f[_0x19dde9(0x16c)][_0x3606c4]?.['enabled'],!![]);return _0x29b393||_0x244e47;}export function disableSession(_0x3cf630){const _0x326883={'xKWYP':function(_0x5f4914,_0x5d92e6,_0x260de0){return _0x5f4914(_0x5d92e6,_0x260de0);},'wwPQX':function(_0x31763e,_0x4d0cbb){return _0x31763e(_0x4d0cbb);}},_0x531d62=loadCache(),_0x5bc2cc=_0x326883['xKWYP'](getOrCreateSession,_0x531d62,_0x3cf630);_0x5bc2cc['enabled']=![],_0x326883['wwPQX'](saveCache,_0x531d62);}export function updateBranchTracking(_0x3f52ab){const _0x72fca0=_0x397bde,_0x22faf9={'jEhOJ':function(_0x57279c){return _0x57279c();},'yAxtf':function(_0x688cb0){return _0x688cb0();},'uIoLQ':function(_0x1cf610,_0x4b59dc){return _0x1cf610===_0x4b59dc;},'kxjYG':function(_0x75a95a,_0x18bad4){return _0x75a95a===_0x18bad4;},'ubFmN':'master'},_0x3f0738=_0x22faf9[_0x72fca0(0x146)](loadCache),_0x1c6549=_0x3f0738[_0x72fca0(0x16c)][_0x3f52ab];if(!_0x1c6549?.['enabled'])return;const _0x2d7029=_0x22faf9[_0x72fca0(0x140)](getCurrentBranch);if(!_0x2d7029||_0x22faf9['uIoLQ'](_0x2d7029,'main')||_0x22faf9[_0x72fca0(0x15d)](_0x2d7029,_0x22faf9['ubFmN']))return;_0x1c6549[_0x72fca0(0x16b)]!==_0x2d7029&&(_0x3f0738['branches'][_0x2d7029]=!![],_0x1c6549[_0x72fca0(0x16b)]=_0x2d7029,saveCache(_0x3f0738));}export function initBranchTracking(_0x3eacf4){const _0x67b1ee=_0x397bde,_0x5c212f={'bXqmU':function(_0x2751f4){return _0x2751f4();},'LPDrm':function(_0x2f27a1,_0x1b82a3){return _0x2f27a1===_0x1b82a3;},'gJJUD':function(_0x5d4b63,_0x3e80b1,_0x27fd26){return _0x5d4b63(_0x3e80b1,_0x27fd26);}},_0x48fdd3=loadCache(),_0x276875=_0x5c212f[_0x67b1ee(0x151)](getCurrentBranch);if(!_0x276875||_0x5c212f[_0x67b1ee(0x164)](_0x276875,'main')||_0x276875==='master')return;if(_0x48fdd3[_0x67b1ee(0x16e)][_0x276875]===!![]){const _0x3c32b7=_0x5c212f[_0x67b1ee(0x149)](getOrCreateSession,_0x48fdd3,_0x3eacf4);_0x3c32b7[_0x67b1ee(0x145)]=!![],_0x3c32b7['currentBranch']=_0x276875,saveCache(_0x48fdd3);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x5a166a){const _0x199039=_0x397bde,_0x447320=loadCache(),_0xfff95b=_0x447320['sessions'][_0x5a166a];_0xfff95b?.['enabled']&&(_0x447320['lastEnabledSessionClearedAt']=Date[_0x199039(0x165)](),saveCache(_0x447320));}export function shouldAutoEnableAfterClear(_0x2efb26){const _0x5a2433=_0x397bde,_0xb8f754={'icfBZ':function(_0x4eb4c0,_0x24869e){return _0x4eb4c0!==_0x24869e;},'glvrN':'clear','oaMgr':function(_0x2550c7,_0x4cf108){return _0x2550c7-_0x4cf108;},'nASjB':function(_0x548761,_0x4c326b){return _0x548761<=_0x4c326b;}};if(_0xb8f754[_0x5a2433(0x153)](_0x2efb26,_0xb8f754['glvrN']))return![];const _0x37dd07=loadCache(),_0xafa036=_0x37dd07[_0x5a2433(0x157)];if(!_0xafa036)return![];const _0xd5dd5d=_0xb8f754[_0x5a2433(0x16a)](Date[_0x5a2433(0x165)](),_0xafa036);return _0xb8f754[_0x5a2433(0x141)](_0xd5dd5d,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0xdc7851){const _0x3bda77=_0x397bde,_0x245b0f={'qkDNZ':function(_0x555c07){return _0x555c07();},'WHzTS':'main','NGYMQ':function(_0xf2e957,_0x534537){return _0xf2e957!==_0x534537;}},_0xde6f78=_0x245b0f['qkDNZ'](loadCache),_0x1e27b0=getOrCreateSession(_0xde6f78,_0xdc7851);_0x1e27b0['enabled']=!![];const _0x6b5ee2=getCurrentBranch();_0x6b5ee2&&_0x6b5ee2!==_0x245b0f[_0x3bda77(0x159)]&&_0x245b0f['NGYMQ'](_0x6b5ee2,_0x3bda77(0x155))&&(_0x1e27b0['currentBranch']=_0x6b5ee2),delete _0xde6f78['lastEnabledSessionClearedAt'],saveCache(_0xde6f78);}export function registerSession(_0xb00542,_0x33fdc6){const _0x4fc86f=_0x397bde,_0x26b3a3={'eFhWb':function(_0x570d65,_0x3d44c8){return _0x570d65(_0x3d44c8);}},_0x1b0690=loadCache(),_0x3afd46=getOrCreateSession(_0x1b0690,_0xb00542);_0x3afd46[_0x4fc86f(0x144)]=_0x33fdc6,_0x3afd46['registeredAt']=new Date()[_0x4fc86f(0x152)](),_0x26b3a3['eFhWb'](saveCache,_0x1b0690);}export function getSessionEntry(_0x510526){const _0x2b09f1=_0x397bde,_0x484bec=loadCache(),_0x48fe9c=_0x484bec['sessions'][_0x510526];if(_0x48fe9c?.['featureId']&&_0x48fe9c?.[_0x2b09f1(0x16f)])return{'featureId':_0x48fe9c[_0x2b09f1(0x144)],'registeredAt':_0x48fe9c[_0x2b09f1(0x16f)]};return null;}export function unregisterSession(_0x37abce){const _0x308eca=_0x397bde,_0x4cecfc=loadCache(),_0xd15943=_0x4cecfc[_0x308eca(0x16c)][_0x37abce];_0xd15943&&(delete _0xd15943['featureId'],delete _0xd15943['registeredAt'],saveCache(_0x4cecfc));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0xce4c63){const _0x110784=_0x397bde,_0x21d46e={'yzywo':function(_0x20b613){return _0x20b613();},'xjOmd':function(_0x27b455,_0x307e60){return _0x27b455-_0x307e60;},'QYdsG':function(_0xdeb7d6,_0x2a6d39){return _0xdeb7d6(_0x2a6d39);}},_0x2bd13c=_0x21d46e['yzywo'](loadCache),_0x576b46=getOrCreateSession(_0x2bd13c,_0xce4c63),_0x26a5de=_0x576b46['lastPlanReminderAt']||0x0,_0x469930=Date['now']();if(_0x21d46e['xjOmd'](_0x469930,_0x26a5de)>=PLAN_REMINDER_INTERVAL_MS)return _0x576b46[_0x110784(0x14a)]=_0x469930,_0x21d46e[_0x110784(0x15a)](saveCache,_0x2bd13c),!![];return![];}export function shouldShowStopReminder(_0x4e23af){const _0x5a4fae=_0x397bde,_0x168aff={'jbEgm':function(_0x55ba79,_0x3e3e6c,_0x2a0baf){return _0x55ba79(_0x3e3e6c,_0x2a0baf);},'ZieJE':function(_0x1fe827,_0x3a6f7b){return _0x1fe827-_0x3a6f7b;}},_0x5c893b=loadCache(),_0x4f1ec6=_0x168aff['jbEgm'](getOrCreateSession,_0x5c893b,_0x4e23af),_0x5b4abe=_0x4f1ec6[_0x5a4fae(0x14b)]||0x0,_0x5ec2d6=Date['now']();if(_0x168aff['ZieJE'](_0x5ec2d6,_0x5b4abe)>=STOP_REMINDER_INTERVAL_MS)return _0x4f1ec6[_0x5a4fae(0x14b)]=_0x5ec2d6,saveCache(_0x5c893b),!![];return![];}export function hasSessionBeenPrompted(_0x29c3e8){const _0x5f3c36=_0x397bde,_0x5587ef={'iFXDy':function(_0x1368b8){return _0x1368b8();}},_0x380d2b=_0x5587ef[_0x5f3c36(0x161)](loadCache);return _0x380d2b[_0x5f3c36(0x16c)][_0x29c3e8]?.[_0x5f3c36(0x154)]===!![];}export function markSessionPrompted(_0x5f225e){const _0x1d27d0=_0x397bde,_0x3670ec=loadCache(),_0x577994=getOrCreateSession(_0x3670ec,_0x5f225e);_0x577994[_0x1d27d0(0x154)]=!![],saveCache(_0x3670ec);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x34bd59=_0x172c;(function(_0x280711,_0x5ec039){const _0x3995ad=_0x172c,_0x1d16e9=_0x280711();while(!![]){try{const _0x5cf414=parseInt(_0x3995ad(0x200))/0x1*(parseInt(_0x3995ad(0x221))/0x2)+-parseInt(_0x3995ad(0x1d0))/0x3+-parseInt(_0x3995ad(0x1ef))/0x4+-parseInt(_0x3995ad(0x1eb))/0x5*(parseInt(_0x3995ad(0x222))/0x6)+-parseInt(_0x3995ad(0x23e))/0x7*(parseInt(_0x3995ad(0x205))/0x8)+-parseInt(_0x3995ad(0x1e2))/0x9+parseInt(_0x3995ad(0x1ba))/0xa;if(_0x5cf414===_0x5ec039)break;else _0x1d16e9['push'](_0x1d16e9['shift']());}catch(_0x15cda1){_0x1d16e9['push'](_0x1d16e9['shift']());}}}(_0x1fd5,0x960a1));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';function _0x172c(_0x3fdc86,_0x192275){_0x3fdc86=_0x3fdc86-0x1b5;const _0x1fd52b=_0x1fd5();let _0x172c3b=_0x1fd52b[_0x3fdc86];return _0x172c3b;}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(_0x4755e8,_0x328aaa){const _0x491722=_0x172c,_0x47c104={'eLyJS':'local','kLBlt':function(_0x58519f,_0x4e232b,_0x361087){return _0x58519f(_0x4e232b,_0x361087);},'NkaDz':function(_0xd3a24f,_0x4eb6f1){return _0xd3a24f(_0x4eb6f1);},'NKHkv':function(_0x2ef009,_0x1bd899){return _0x2ef009!==_0x1bd899;},'fOSHS':function(_0x2951a6,_0x5079c7){return _0x2951a6(_0x5079c7);}},_0x4ea957=join(_0x328aaa,'ci',_0x4755e8),_0x1ee60e=join(_0x328aaa,_0x47c104[_0x491722(0x22d)],_0x4755e8),_0x27749f=_0x47c104['kLBlt'](join,_0x328aaa,_0x4755e8),_0x3e8791=join(_0x328aaa,_0x47c104[_0x491722(0x22d)]),_0x66ebf8=_0x47c104[_0x491722(0x1f2)](join,_0x328aaa,'ci');if(_0x47c104['NkaDz'](existsSync,_0x4ea957))return _0x4ea957;if(_0x47c104['NkaDz'](existsSync,_0x1ee60e))return _0x1ee60e;if(existsSync(_0x27749f)&&(_0x47c104[_0x491722(0x217)](_0x27749f,_0x3e8791)&&_0x27749f!==_0x66ebf8?!![]:_0x47c104['fOSHS'](hasLegacyProfileFiles,_0x27749f)))return _0x27749f;return null;}export function getEnvDir(_0x31d313,_0x27f6b1={}){const _0xca6019=_0x172c,_0x3f151f={'HvDNf':function(_0x51583d,_0x656928){return _0x51583d!==_0x656928;},'dyejn':function(_0x4fc182,_0x36af03,_0x291646){return _0x4fc182(_0x36af03,_0x291646);},'ZXcdX':function(_0x4b955e,_0x14bd78){return _0x4b955e(_0x14bd78);},'HpmdA':function(_0x544eb9,_0x16edb5,_0x2222f8){return _0x544eb9(_0x16edb5,_0x2222f8);},'GDDrA':'local'},_0x156d2e=getRangerDir(),_0x35d502=findEnvInRoot(_0x31d313,_0x156d2e);if(_0x35d502){if(_0x27f6b1['forWrite']&&isLegacyEnvPath(_0x35d502))throw legacyWriteError(_0x31d313,_0x35d502);return _0x35d502;}const _0x458024=getRangerHomeDir();if(_0x3f151f[_0xca6019(0x220)](_0x458024,_0x156d2e)){const _0x28eb3f=_0x3f151f['dyejn'](findEnvInRoot,_0x31d313,_0x458024);if(_0x28eb3f){if(_0x27f6b1[_0xca6019(0x1e3)]&&_0x3f151f[_0xca6019(0x236)](isLegacyEnvPath,_0x28eb3f))throw _0x3f151f[_0xca6019(0x1f6)](legacyWriteError,_0x31d313,_0x28eb3f);return _0x28eb3f;}}const _0x1dab56=join(_0x458024,_0x3f151f[_0xca6019(0x1d2)],_0x31d313);if(_0x27f6b1['forWrite'])throw legacyWriteError(_0x31d313,_0x1dab56);return _0x1dab56;}function isLegacyEnvPath(_0x2c969e){const _0x5df443=_0x172c,_0x9a7a89={'wNTIU':function(_0x147e02){return _0x147e02();},'rVdhS':function(_0x28d88b,_0x293350){return _0x28d88b===_0x293350;}},_0xdf4868=_0x9a7a89[_0x5df443(0x1ca)](getRangerDir),_0x2a5d9a=getRangerHomeDir();for(const _0x55a6e4 of new Set([_0xdf4868,_0x2a5d9a])){const _0x4d4a84=_0x55a6e4[_0x5df443(0x23d)]('/')?_0x55a6e4:_0x55a6e4+'/';if(_0x9a7a89[_0x5df443(0x1f1)](_0x2c969e,_0x55a6e4)||_0x2c969e[_0x5df443(0x1ed)](_0x4d4a84))return!![];}return![];}function legacyWriteError(_0x435898,_0x2233a8){const _0x1e767d=_0x172c,_0x253bb1={'VDehK':function(_0x5b4049,_0x45feca){return _0x5b4049+_0x45feca;}};return new Error(_0x253bb1['VDehK'](_0x1e767d(0x1c9)+_0x435898+'\x22\x20to\x20legacy\x20path\x20'+_0x2233a8+'.\x0a',_0x1e767d(0x1f4))+_0x1e767d(0x22e)+'See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.');}export function findExistingEnv(_0x30ebc8,_0x353ef2){const _0x4bc0de=_0x172c,_0x55e934={'WAZws':function(_0x1e1f30){return _0x1e1f30();},'dGGBn':'local','TTRiz':function(_0xbffd4c,_0x5e857d,_0x38700e){return _0xbffd4c(_0x5e857d,_0x38700e);},'ijqXc':function(_0x27333d,_0xeddf24,_0x5b2c75,_0x1bd716){return _0x27333d(_0xeddf24,_0x5b2c75,_0x1bd716);},'LMStQ':function(_0x12dd38,_0x5332e5){return _0x12dd38===_0x5332e5;},'BacJn':'legacy','ipPKO':function(_0x361188,_0xa546c1){return _0x361188===_0xa546c1;},'RqfKK':function(_0x5f288d,_0x482430){return _0x5f288d(_0x482430);}},_0x3d3943=_0x353ef2?.['rangerDir'],_0x3e09e5=_0x3d3943?[_0x3d3943]:[_0x55e934['WAZws'](getRangerDir),getRangerHomeDir()][_0x4bc0de(0x21f)]((_0x171e9f,_0x4c1c96,_0x5af12c)=>_0x5af12c[_0x4bc0de(0x1c7)](_0x171e9f)===_0x4c1c96),_0x1b8c40=_0x353ef2?.['locations']??['ci',_0x4bc0de(0x1c0),_0x4bc0de(0x1c6)];for(const _0x115909 of _0x3e09e5){const _0x2e0d78=join(_0x115909,_0x55e934[_0x4bc0de(0x1be)]),_0x5309e7=_0x55e934['TTRiz'](join,_0x115909,'ci'),_0x5d5f10=[{'location':'ci','path':_0x55e934[_0x4bc0de(0x21e)](join,_0x115909,'ci',_0x30ebc8)},{'location':_0x4bc0de(0x1c0),'path':join(_0x115909,_0x55e934[_0x4bc0de(0x1be)],_0x30ebc8)},{'location':'legacy','path':join(_0x115909,_0x30ebc8)}];for(const _0x57030c of _0x5d5f10){if(_0x1b8c40[_0x4bc0de(0x1e5)](_0x57030c['location'])&&existsSync(_0x57030c['path'])){if(_0x55e934['LMStQ'](_0x57030c[_0x4bc0de(0x201)],_0x55e934['BacJn'])&&(_0x55e934['ipPKO'](_0x57030c[_0x4bc0de(0x219)],_0x2e0d78)||_0x57030c[_0x4bc0de(0x219)]===_0x5309e7)&&!_0x55e934[_0x4bc0de(0x238)](hasLegacyProfileFiles,_0x57030c['path']))continue;return{'path':_0x57030c[_0x4bc0de(0x219)],'location':_0x57030c[_0x4bc0de(0x201)]};}}}return null;}function hasLegacyProfileFiles(_0x351454){const _0xaf7cba=_0x172c,_0x121c9b={'TSNLN':function(_0x1accee,_0xb54083){return _0x1accee(_0xb54083);},'onkMA':function(_0x9c1cce,_0x2730df,_0x5af956){return _0x9c1cce(_0x2730df,_0x5af956);},'ckLdO':_0xaf7cba(0x1f3),'nivqw':'auth.json.enc'};return _0x121c9b[_0xaf7cba(0x1e0)](existsSync,_0x121c9b[_0xaf7cba(0x23c)](join,_0x351454,'settings.json'))||existsSync(join(_0x351454,_0x121c9b['ckLdO']))||_0x121c9b[_0xaf7cba(0x1e0)](existsSync,join(_0x351454,_0x121c9b['nivqw']));}export function isEnvCi(_0x21125e){const _0x274f01=_0x172c,_0x16b77e={'NAHVP':function(_0x4cc9a3,_0xa4342f){return _0x4cc9a3(_0xa4342f);},'ynDnQ':function(_0x50bd7e){return _0x50bd7e();},'WtWQs':function(_0x5cbe1d,_0x491875){return _0x5cbe1d!==_0x491875;},'vduLY':function(_0x17efc7,_0x489bb2){return _0x17efc7(_0x489bb2);},'IoSRA':function(_0x514a4b,_0x1d81dc,_0x3f4111,_0x54eef4){return _0x514a4b(_0x1d81dc,_0x3f4111,_0x54eef4);}};if(_0x16b77e['NAHVP'](existsSync,join(_0x16b77e['ynDnQ'](getRangerDir),'ci',_0x21125e)))return!![];const _0x2f2ed9=_0x16b77e['ynDnQ'](getRangerHomeDir);if(_0x16b77e['WtWQs'](_0x2f2ed9,getRangerDir())&&_0x16b77e[_0x274f01(0x1dc)](existsSync,_0x16b77e[_0x274f01(0x1ff)](join,_0x2f2ed9,'ci',_0x21125e)))return!![];return![];}export async function cleanupTempFiles(_0x3d82ed){const _0x7b1ea4=_0x172c,_0x36b59a={'LAAeW':_0x7b1ea4(0x1c5)},_0x5199fa=[_0x3d82ed[_0x7b1ea4(0x208)],_0x3d82ed[_0x7b1ea4(0x20c)]][_0x7b1ea4(0x21f)](Boolean);await Promise['all'](_0x5199fa['map'](_0x5081a0=>unlink(_0x5081a0)[_0x7b1ea4(0x1c2)](_0x172125=>{const _0x2f5520=_0x7b1ea4;_0x172125['code']!==_0x36b59a[_0x2f5520(0x237)]&&console[_0x2f5520(0x239)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x5081a0+':',_0x172125[_0x2f5520(0x206)]);})));}export function getSettingsPath(_0x414f33){const _0x47daae=_0x172c,_0x2868f7={'pwoZt':'settings.json'};return join(getEnvDir(_0x414f33),_0x2868f7[_0x47daae(0x1e8)]);}export async function loadSettings(_0x13eb38){const _0x4bf7b5=_0x172c,_0x957a5c={'cKUqw':function(_0x1d6193,_0xa95191,_0x2e8910){return _0x1d6193(_0xa95191,_0x2e8910);}},_0x5d3dbb=getSettingsPath(_0x13eb38);if(!existsSync(_0x5d3dbb))return{};try{const _0x588bcf=await _0x957a5c[_0x4bf7b5(0x1b6)](readFile,_0x5d3dbb,_0x4bf7b5(0x240));return JSON[_0x4bf7b5(0x1d7)](_0x588bcf);}catch{return{};}}export async function saveSettings(_0x5b8797,_0x121250){const _0x365c03={'hQTzt':function(_0x31491b,_0x197339){return _0x31491b(_0x197339);}},_0x414cfe=_0x365c03['hQTzt'](getSettingsPath,_0x5b8797),_0x55737c=dirname(_0x414cfe);!existsSync(_0x55737c)&&await mkdir(_0x55737c,{'recursive':!![]}),await writeFile(_0x414cfe,JSON['stringify'](_0x121250,null,0x2));}export function resolveEnvVars(_0x2e71d2){const _0x452700=_0x172c,_0x1834da={'XOIPt':function(_0x30e493,_0x1c13eb){return _0x30e493===_0x1c13eb;},'RjbHw':_0x452700(0x1c3),'DamWH':function(_0x46ad3d,_0x3fabbd){return _0x46ad3d===_0x3fabbd;},'qjzLD':'object'};if(_0x1834da['XOIPt'](typeof _0x2e71d2,_0x1834da[_0x452700(0x1e6)]))return _0x2e71d2['replace'](/\$\{(\w+)\}/g,(_0xae4608,_0x292eed)=>{const _0x2535ac=_0x452700,_0x3136ad=process['env'][_0x292eed];if(_0x3136ad===undefined)throw new Error(_0x2535ac(0x225)+_0x292eed+_0x2535ac(0x1e9));return _0x3136ad;});if(Array[_0x452700(0x20b)](_0x2e71d2))return _0x2e71d2[_0x452700(0x1f7)](resolveEnvVars);if(_0x2e71d2&&_0x1834da[_0x452700(0x1bd)](typeof _0x2e71d2,_0x1834da[_0x452700(0x235)]))return Object[_0x452700(0x1da)](Object['entries'](_0x2e71d2)['map'](([_0x558eff,_0x1e5521])=>[_0x558eff,resolveEnvVars(_0x1e5521)]));return _0x2e71d2;}const isRecord=_0x549491=>typeof _0x549491==='object'&&_0x549491!==null&&!Array['isArray'](_0x549491),asRecord=_0x5cb4f7=>isRecord(_0x5cb4f7)?_0x5cb4f7:undefined,mergeHeaders=(_0x2358db,_0x2effa5)=>{const _0x16404e=_0x172c,_0x2a9517={..._0x2358db??{},..._0x2effa5??{}};return Object[_0x16404e(0x1cd)](_0x2a9517)[_0x16404e(0x1cc)]?_0x2a9517:undefined;},SAFE_MODE_ARGS=[_0x34bd59(0x1bc)],ALLOW_LOCALHOST_ARGS=[_0x34bd59(0x1f9),_0x34bd59(0x1fd),_0x34bd59(0x1ee),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x406d3f,_0x94a165={}){const _0x521121=_0x34bd59,_0x4f6f21={'xHBir':function(_0x49da37,_0x365b06){return _0x49da37(_0x365b06);},'CDxiv':function(_0x413598,_0x47be28){return _0x413598===_0x47be28;},'ZcemO':_0x521121(0x224),'WctTr':function(_0x30fc21,_0x4039ff,_0x59519e){return _0x30fc21(_0x4039ff,_0x59519e);},'QmAKL':function(_0x32b617,_0x485323){return _0x32b617(_0x485323);}},_0xd75c80=asRecord(_0x406d3f['browser']),_0xecfdf={..._0x4f6f21['xHBir'](asRecord,_0xd75c80?.['launchOptions'])??{}};_0x4f6f21['CDxiv'](typeof _0x94a165['headless'],_0x4f6f21[_0x521121(0x22a)])&&(_0xecfdf['headless']=_0x94a165['headless']);if(_0x406d3f['safeMode']){const _0x21dc60=_0xecfdf[_0x521121(0x21b)]??[],_0x1fbad0=SAFE_MODE_ARGS['filter'](_0x48e2ff=>!_0x21dc60[_0x521121(0x1e5)](_0x48e2ff));_0xecfdf[_0x521121(0x21b)]=[..._0x21dc60,..._0x1fbad0];}if(_0x406d3f['allowInsecureLocalhost']){const _0x1b5cec=_0xecfdf[_0x521121(0x21b)]??[],_0x33abc3=ALLOW_LOCALHOST_ARGS['filter'](_0x276175=>!_0x1b5cec[_0x521121(0x1e5)](_0x276175));_0xecfdf['args']=[..._0x1b5cec,..._0x33abc3];}const _0x18afe5={..._0x4f6f21['xHBir'](asRecord,_0xd75c80?.[_0x521121(0x1fa)])??{}};_0x18afe5['ignoreHTTPSErrors']=!![];typeof _0x406d3f['userAgent']==='string'&&(_0x18afe5['userAgent']=_0x406d3f[_0x521121(0x1f0)]);const _0x1a2e06=_0x4f6f21['WctTr'](mergeHeaders,asRecord(_0x18afe5['extraHTTPHeaders']),_0x4f6f21[_0x521121(0x21a)](asRecord,_0x406d3f[_0x521121(0x20d)]));return _0x1a2e06?_0x18afe5['extraHTTPHeaders']=_0x1a2e06:delete _0x18afe5['extraHTTPHeaders'],_0x94a165[_0x521121(0x22c)]&&(_0x18afe5[_0x521121(0x1dd)]=_0x94a165['storageStatePath']),{'launchOptions':_0xecfdf,'contextOptions':_0x18afe5};}export async function resolveProfileStorageState(_0x31ccc4){const _0x3c3993={'QmSls':function(_0x20bf92,_0x32ce60){return _0x20bf92(_0x32ce60);}};return resolveLocalAuthPath(_0x3c3993['QmSls'](getEnvDir,_0x31ccc4));}async function resolveLocalAuthPath(_0x5a22a5){const _0x1566e2=_0x34bd59,_0x5d9808={'NofRE':_0x1566e2(0x1e7),'GxxOh':function(_0xb0646f,_0x3b5ac3,_0x1b43cc){return _0xb0646f(_0x3b5ac3,_0x1b43cc);},'poKvw':_0x1566e2(0x1f3),'UUDKR':function(_0x519312){return _0x519312();},'qwbEm':function(_0x18cba6,_0x1ef1ee){return _0x18cba6(_0x1ef1ee);},'qYzoc':function(_0x4dfe64,_0x1f8994,_0x470308){return _0x4dfe64(_0x1f8994,_0x470308);}},_0x22e43a=join(_0x5a22a5,_0x5d9808[_0x1566e2(0x1ce)]),_0xaaaebb=_0x5d9808['GxxOh'](join,_0x5a22a5,_0x5d9808['poKvw']);if(existsSync(_0x22e43a))try{const _0xc3e8e0=await _0x5d9808['UUDKR'](getToken);if(!_0xc3e8e0)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x89115d=await _0x5d9808[_0x1566e2(0x20f)](readFile,_0x22e43a),_0x3a691f=_0x5d9808[_0x1566e2(0x1fb)](decrypt,_0x89115d,_0xc3e8e0),_0x1dab3d=join(tmpdir(),'ranger-auth-'+Date['now']()+_0x1566e2(0x21c));return await writeFile(_0x1dab3d,_0x3a691f),{'storageStatePath':_0x1dab3d,'tempAuthPath':_0x1dab3d};}catch(_0x42912e){const _0x2aafda=_0x42912e instanceof Error?_0x42912e['message']:String(_0x42912e);throw new Error(_0x1566e2(0x21d)+_0x2aafda);}if(existsSync(_0xaaaebb))return{'storageStatePath':_0xaaaebb};return{};}export async function buildPlaywrightConfig(_0x8c1908,_0x5b642d,_0xbade5b,_0x3bf828,_0x53b868){const _0x5b6c05=_0x34bd59,_0x1a7e76={'GNeTx':function(_0x4dba2e,_0x115082,_0x43c40e,_0x2dd052,_0x2984b8,_0x1adf5b,_0x45fb50){return _0x4dba2e(_0x115082,_0x43c40e,_0x2dd052,_0x2984b8,_0x1adf5b,_0x45fb50);},'LbMlZ':'stagehand','jtBug':function(_0x589ffb,_0x37d02e){return _0x589ffb(_0x37d02e);},'SNvqG':function(_0xc77f5c,_0x1c0b38,_0x1427d8,_0x2f207d,_0x1afa5d,_0x1f9ca5,_0x112a00){return _0xc77f5c(_0x1c0b38,_0x1427d8,_0x2f207d,_0x1afa5d,_0x1f9ca5,_0x112a00);}};if(_0x53b868)return _0x1a7e76['GNeTx'](buildPlaywrightConfigCore,_0x8c1908,_0x53b868,_0x5b642d,_0xbade5b,_0x3bf828,_0x1a7e76[_0x5b6c05(0x203)]);const {storageStatePath:_0x578006,tempAuthPath:_0x56cc8e}=await _0x1a7e76[_0x5b6c05(0x1b5)](resolveLocalAuthPath,_0x1a7e76[_0x5b6c05(0x1b5)](getEnvDir,_0x5b642d));try{const _0x232c37=await _0x1a7e76[_0x5b6c05(0x1df)](buildPlaywrightConfigCore,_0x8c1908,_0x578006,_0x5b642d,_0xbade5b,_0x3bf828,'stagehand');return{..._0x232c37,'tempAuthPath':_0x56cc8e};}catch(_0x1602ec){_0x56cc8e&&await unlink(_0x56cc8e)['catch'](()=>{});throw _0x1602ec;}}export async function buildPlaywrightConfigCore(_0x2c9577,_0x1fb4b6,_0xe8997,_0x35f17b,_0x3d34bc,_0x3f6dcf=_0x34bd59(0x22f)){const _0x546bb4=_0x34bd59,_0x5c59b4={'VpIag':function(_0x14f3bf,_0x1d5b81){return _0x14f3bf===_0x1d5b81;},'tNUsy':'--no-sandbox','VDKMs':'clipboard-read','OvIxJ':_0x546bb4(0x1fe),'KAKff':function(_0x4c993d,_0x56b0a5,_0x2e390c,_0x1a60e6){return _0x4c993d(_0x56b0a5,_0x2e390c,_0x1a60e6);},'NHylm':function(_0x4129d5){return _0x4129d5();},'InJpA':function(_0x582d80,_0x26ecd4){return _0x582d80(_0x26ecd4);},'ASCSM':'chromium','jtOqL':'file','ZadJg':'install','MdmJi':_0x546bb4(0x23a),'apzVZ':_0x546bb4(0x1d6),'nerNH':'allow','QssvO':'ranger-config','DyDVA':function(_0x2aaabb,_0xdd10e0,_0xcc49a7){return _0x2aaabb(_0xdd10e0,_0xcc49a7);},'oZKud':function(_0x46e6a7,_0x2c97a5){return _0x46e6a7===_0x2c97a5;},'aKKxW':'-cli'},_0x1b6563=_0x35f17b||randomUUID(),_0x15197d=_0x5c59b4[_0x546bb4(0x209)](join,_0x5c59b4[_0x546bb4(0x1b7)](getRangerDir),_0x546bb4(0x223),_0x1b6563),_0x34a68a=_0x5c59b4[_0x546bb4(0x1d9)](Boolean,_0x2c9577[_0x546bb4(0x1bb)]),_0x4ae65c=_0x34a68a?{'browserName':_0x5c59b4['ASCSM'],'cdpEndpoint':_0x2c9577[_0x546bb4(0x1bb)]}:((()=>{const _0x4d3e70=_0x546bb4,{launchOptions:_0x1e0384,contextOptions:_0x5a5a93}=buildBrowserOptionsFromSettings(_0x2c9577,{'headless':_0x3d34bc?![]:_0x2c9577[_0x4d3e70(0x233)]??!![],'storageStatePath':_0x1fb4b6});if(_0x5c59b4[_0x4d3e70(0x1f8)](process[_0x4d3e70(0x23b)]?.(),0x0)){const _0xf8395f=[_0x5c59b4['tNUsy'],_0x4d3e70(0x1de)],_0x507acd=_0x1e0384['args']??[],_0x15a655=_0xf8395f[_0x4d3e70(0x21f)](_0x2c2f85=>!_0x507acd[_0x4d3e70(0x1e5)](_0x2c2f85));_0x1e0384[_0x4d3e70(0x21b)]=[..._0x507acd,..._0x15a655];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x1e0384,'contextOptions':{..._0x5a5a93,'permissions':[_0x5c59b4[_0x4d3e70(0x22b)],_0x5c59b4[_0x4d3e70(0x1d3)]],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x1009e9=_0x5c59b4['VpIag'](_0x3f6dcf,_0x546bb4(0x1e1))?{'browser':_0x4ae65c,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x15197d,'outputMode':_0x5c59b4[_0x546bb4(0x1cf)],'codegen':'none'}:{'name':_0xe8997,'browser':_0x4ae65c,'capabilities':[_0x546bb4(0x214),_0x546bb4(0x227),_0x5c59b4['ZadJg'],_0x5c59b4['MdmJi'],_0x5c59b4['apzVZ']],'imageResponses':_0x5c59b4[_0x546bb4(0x207)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x15197d};if(!_0x34a68a){const _0x20470b=_0x1009e9['browser'],_0x3b4f6d=_0x20470b[_0x546bb4(0x1fa)];if(_0x3b4f6d[_0x546bb4(0x1f0)]===undefined)delete _0x3b4f6d['userAgent'];if(_0x3b4f6d[_0x546bb4(0x1dd)]===undefined)delete _0x3b4f6d['storageState'];}const _0x31ffbe=join(tmpdir(),_0x5c59b4['QssvO']);!existsSync(_0x31ffbe)&&await _0x5c59b4['DyDVA'](mkdir,_0x31ffbe,{'recursive':!![]});const _0x458b81=_0x5c59b4[_0x546bb4(0x213)](_0x3f6dcf,'playwright-cli')?_0x5c59b4['aKKxW']:'',_0xedf9ea=_0x5c59b4[_0x546bb4(0x218)](join,_0x31ffbe,_0xe8997+'-'+Date[_0x546bb4(0x234)]()+_0x458b81+_0x546bb4(0x21c));return await _0x5c59b4['DyDVA'](writeFile,_0xedf9ea,JSON['stringify'](_0x1009e9,null,0x2)),{'configPath':_0xedf9ea,'storageStatePath':_0x1fb4b6};}export async function buildPlaywrightCliConfig(_0x572e46,_0x3ed724,_0x241d4e,_0x402553,_0x7f9b15){const _0x361d30=_0x34bd59,_0x2c9257={'Iwekp':function(_0x4182d2,_0xa8fda3){return _0x4182d2(_0xa8fda3);},'Yrfbj':'playwright-cli','SbUKE':function(_0x1d6d37,_0x11ed04){return _0x1d6d37(_0x11ed04);}};if(_0x7f9b15)return buildPlaywrightConfigCore(_0x572e46,_0x7f9b15,_0x3ed724,_0x241d4e,_0x402553,_0x361d30(0x1e1));const {storageStatePath:_0x588bba,tempAuthPath:_0x9834e3}=await _0x2c9257[_0x361d30(0x1e4)](resolveLocalAuthPath,getEnvDir(_0x3ed724));try{const _0x56eb09=await buildPlaywrightConfigCore(_0x572e46,_0x588bba,_0x3ed724,_0x241d4e,_0x402553,_0x2c9257['Yrfbj']);return{..._0x56eb09,'tempAuthPath':_0x9834e3};}catch(_0x5c444d){_0x9834e3&&await _0x2c9257[_0x361d30(0x1db)](unlink,_0x9834e3)['catch'](()=>{});throw _0x5c444d;}}export async function buildRangerwrightCliConfig(_0x397719,_0x614ab1,_0x42746d,_0x47d7ae,_0x49780b){const _0x3d7ffe=_0x34bd59,_0x175cb9={'JLAdC':function(_0x2d4473,_0x496347,_0x2a5269){return _0x2d4473(_0x496347,_0x2a5269);},'dXuWt':_0x3d7ffe(0x232),'vOwcH':'--disable-setuid-sandbox','DrvxI':'clipboard-read','msTEP':_0x3d7ffe(0x1fe),'UugOW':function(_0x2ead37,_0x4ed58d){return _0x2ead37(_0x4ed58d);},'GifrM':function(_0x49b0ab){return _0x49b0ab();},'Wlcfb':function(_0x3e6ec9,_0x5d3db9){return _0x3e6ec9(_0x5d3db9);},'fZXFt':function(_0x31d627,_0x5d45c2,_0x4bcf5f){return _0x31d627(_0x5d45c2,_0x4bcf5f);},'QPsQj':function(_0x4c1b57,_0x59c72d){return _0x4c1b57(_0x59c72d);},'zVCRr':function(_0x422df6,_0x4170cf,_0xfd50e0){return _0x422df6(_0x4170cf,_0xfd50e0);}},{storageStatePath:_0x41ec39,tempAuthPath:_0x336c28}=_0x49780b?{'storageStatePath':_0x49780b,'tempAuthPath':undefined}:await _0x175cb9[_0x3d7ffe(0x230)](resolveLocalAuthPath,getEnvDir(_0x614ab1)),_0x5d83f8=_0x42746d||_0x175cb9['GifrM'](randomUUID),_0x48fb83=join(getRangerDir(),'sessions',_0x5d83f8),_0x1853b5=_0x175cb9['Wlcfb'](Boolean,_0x397719[_0x3d7ffe(0x1bb)]),_0x2c86ad=_0x1853b5?{'browserName':_0x3d7ffe(0x204),'cdpEndpoint':_0x397719['cdpEndpoint']}:((()=>{const _0x3fca14=_0x3d7ffe,{launchOptions:_0x1774a2,contextOptions:_0x35d3fc}=_0x175cb9[_0x3fca14(0x1f5)](buildBrowserOptionsFromSettings,_0x397719,{'headless':_0x47d7ae?![]:_0x397719[_0x3fca14(0x233)]??!![],'storageStatePath':_0x41ec39});if(process[_0x3fca14(0x23b)]?.()===0x0){const _0xa5cec1=[_0x175cb9['dXuWt'],_0x175cb9[_0x3fca14(0x216)]],_0x39b5bb=_0x1774a2['args']??[],_0x31899d=_0xa5cec1[_0x3fca14(0x21f)](_0x4e5a57=>!_0x39b5bb['includes'](_0x4e5a57));_0x1774a2['args']=[..._0x39b5bb,..._0x31899d];}return{'browserName':'chromium','launchOptions':_0x1774a2,'contextOptions':{..._0x35d3fc,'permissions':[_0x175cb9[_0x3fca14(0x23f)],_0x175cb9[_0x3fca14(0x1b8)]],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x1853b5){const _0xa4945=_0x2c86ad['contextOptions'];if(_0xa4945){if(_0xa4945['userAgent']===undefined)delete _0xa4945[_0x3d7ffe(0x1f0)];if(_0xa4945[_0x3d7ffe(0x1dd)]===undefined)delete _0xa4945[_0x3d7ffe(0x1dd)];}}const _0xdc8231={'browser':_0x2c86ad,'outputDir':_0x48fb83,'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'settle':{'navigationLoadTimeoutMs':0x7530,'networkSettleTimeoutMs':0x1388,'networkIdleWindowMs':0x1f4,'postActionAnimationFrameCount':0x2}};let _0x572a26;try{const _0x1bc291=_0x175cb9['fZXFt'](join,tmpdir(),'ranger-config');!_0x175cb9[_0x3d7ffe(0x1fc)](existsSync,_0x1bc291)&&await mkdir(_0x1bc291,{'recursive':!![]}),_0x572a26=_0x175cb9['zVCRr'](join,_0x1bc291,_0x614ab1+'-'+Date[_0x3d7ffe(0x234)]()+_0x3d7ffe(0x229)),await writeFile(_0x572a26,JSON[_0x3d7ffe(0x1ec)](_0xdc8231,null,0x2));}catch(_0x2904dc){_0x336c28&&await _0x175cb9['UugOW'](unlink,_0x336c28)['catch'](()=>{});throw _0x2904dc;}return{'configPath':_0x572a26,'storageStatePath':_0x41ec39,'tempAuthPath':_0x336c28,'outputDir':_0x48fb83};}export async function buildNovaActCliConfig(_0xfb10f4,_0x6860c6,_0x38d3c6,_0x531773,_0x380a96){const _0xdc841e=_0x34bd59,_0x7e191f={'iRvkY':function(_0x4910b2,_0x683520){return _0x4910b2(_0x683520);},'Ohakx':function(_0x254d43){return _0x254d43();},'vhtWc':function(_0x597069){return _0x597069();},'CYOgk':_0xdc841e(0x223),'sGYkH':function(_0x362faf,_0x53e179){return _0x362faf===_0x53e179;},'bGHcw':function(_0x2475aa,_0x4163ae){return _0x2475aa(_0x4163ae);},'xJoaN':function(_0x60ffa1,_0x587a78){return _0x60ffa1===_0x587a78;},'KGvnH':_0xdc841e(0x1c3)},{storageStatePath:_0x542a20,tempAuthPath:_0xbcb034}=_0x380a96?{'storageStatePath':_0x380a96,'tempAuthPath':undefined}:await _0x7e191f[_0xdc841e(0x1bf)](resolveLocalAuthPath,_0x7e191f['iRvkY'](getEnvDir,_0x6860c6)),_0x131877=_0x38d3c6||_0x7e191f['Ohakx'](randomUUID),_0xb2baba=join(_0x7e191f['vhtWc'](getRangerDir),_0x7e191f['CYOgk'],_0x131877),_0x4bdb46=join(_0xb2baba,'nova-user-data'),_0xf912b2=_0x542a20?join(_0x4bdb46,_0xdc841e(0x210)):undefined,{launchOptions:_0x522d76,contextOptions:_0x59ef20}=buildBrowserOptionsFromSettings(_0xfb10f4,{'headless':_0x531773?![]:_0xfb10f4['headless']??!![],'storageStatePath':_0x542a20});if(process[_0xdc841e(0x23b)]?.()===0x0){const _0x537d=['--no-sandbox','--disable-setuid-sandbox'],_0x2fa930=_0x522d76[_0xdc841e(0x21b)]??[],_0x408270=_0x537d[_0xdc841e(0x21f)](_0x47be2b=>!_0x2fa930[_0xdc841e(0x1e5)](_0x47be2b));_0x522d76[_0xdc841e(0x21b)]=[..._0x2fa930,..._0x408270];}const _0x2df609=_0x7e191f[_0xdc841e(0x1d8)](typeof _0x522d76['executablePath'],_0xdc841e(0x1c3))?_0x522d76['executablePath']:_0x542a20?chromium[_0xdc841e(0x202)]():undefined;return{'storageStatePath':_0x542a20,'tempAuthPath':_0xbcb034,'baseUrl':_0xfb10f4[_0xdc841e(0x1b9)],'headless':_0x7e191f[_0xdc841e(0x1d5)](Boolean,_0x522d76[_0xdc841e(0x233)]),'userDataDir':_0x4bdb46,'browserProfilePath':_0xf912b2,'executablePath':_0x2df609,'launchArgs':Array['isArray'](_0x522d76[_0xdc841e(0x21b)])?_0x522d76[_0xdc841e(0x21b)]['filter'](_0x5c08b2=>typeof _0x5c08b2===_0xdc841e(0x1c3)):[],'userAgent':_0x7e191f[_0xdc841e(0x1ea)](typeof _0x59ef20['userAgent'],_0x7e191f['KGvnH'])?_0x59ef20[_0xdc841e(0x1f0)]:undefined,'extraHTTPHeaders':_0x59ef20[_0xdc841e(0x215)],'allowInsecureLocalhost':_0x7e191f['bGHcw'](Boolean,_0xfb10f4['allowInsecureLocalhost']),'safeMode':Boolean(_0xfb10f4[_0xdc841e(0x212)]),'cdpEndpoint':_0xfb10f4[_0xdc841e(0x1bb)],'isCdpMode':Boolean(_0xfb10f4['cdpEndpoint'])};}export function getNestedValue(_0x2607fd,_0x33f0f9){const _0x2c3631=_0x34bd59,_0x3a3687={'ZkRoF':function(_0x31db0a,_0x27f78b){return _0x31db0a(_0x27f78b);},'glhEP':function(_0x13add8,_0x2c2f5d){return _0x13add8===_0x2c2f5d;},'bDvZA':function(_0x58c5d4,_0x35a269){return _0x58c5d4!==_0x35a269;}},_0x3ec7bf=_0x3a3687['ZkRoF'](parseKeyPath,_0x33f0f9);let _0x43316a=_0x2607fd;for(const _0x43ee21 of _0x3ec7bf){if(_0x3a3687['glhEP'](_0x43316a,null)||_0x43316a===undefined||_0x3a3687[_0x2c3631(0x231)](typeof _0x43316a,_0x2c3631(0x1d4)))return undefined;_0x43316a=_0x43316a[_0x43ee21];}return _0x43316a;}export function setNestedValue(_0x5ccfe9,_0x495077,_0x50228b){const _0x2da390=_0x34bd59,_0x4e1067={'UIzax':function(_0xa44fe3,_0x30ceda){return _0xa44fe3 in _0x30ceda;},'EDILd':function(_0x545943,_0x567177){return _0x545943!==_0x567177;},'dIkQG':function(_0xc60b92,_0x5825c7){return _0xc60b92-_0x5825c7;}},_0x24e5dc=parseKeyPath(_0x495077);let _0x280b4e=_0x5ccfe9;for(let _0x1cae24=0x0;_0x1cae24<_0x24e5dc['length']-0x1;_0x1cae24++){const _0x427535=_0x24e5dc[_0x1cae24];(!_0x4e1067['UIzax'](_0x427535,_0x280b4e)||_0x4e1067['EDILd'](typeof _0x280b4e[_0x427535],_0x2da390(0x1d4)))&&(_0x280b4e[_0x427535]={}),_0x280b4e=_0x280b4e[_0x427535];}_0x280b4e[_0x24e5dc[_0x4e1067[_0x2da390(0x20e)](_0x24e5dc['length'],0x1)]]=_0x50228b;}function _0x1fd5(){const _0x3322a0=['RjbHw','auth.json.enc','pwoZt','\x20is\x20not\x20set','xJoaN','65mKnYDC','stringify','startsWith','--unsafely-treat-insecure-origin-as-secure=http://localhost','4269388JVCuTy','userAgent','rVdhS','kLBlt','auth.json','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','JLAdC','HpmdA','map','VpIag','--disable-web-security','contextOptions','qYzoc','QPsQj','--allow-running-insecure-content','clipboard-write','IoSRA','1XVWEaN','location','executablePath','LbMlZ','chromium','296nlcTvd','message','nerNH','tempAuthPath','KAKff','header','isArray','configPath','headers','dIkQG','qwbEm','Default','bJrZR','safeMode','oZKud','core','extraHTTPHeaders','vOwcH','NKHkv','DyDVA','path','QmAKL','args','.json','Failed\x20to\x20decrypt\x20auth\x20state:\x20','ijqXc','filter','HvDNf','1389638rJXiSv','449424nSDJtZ','sessions','boolean','Environment\x20variable\x20','EWyDi','tabs','entries','-rangerwright.json','ZcemO','VDKMs','storageStatePath','eLyJS','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','stagehand','UugOW','bDvZA','--no-sandbox','headless','now','qjzLD','ZXcdX','LAAeW','RqfKK','warn','pdf','getuid','onkMA','endsWith','223118pwbyGe','DrvxI','utf-8','jtBug','cKUqw','NHylm','msTEP','baseUrl','50235630WtBLYp','cdpEndpoint','--disable-features=WebBluetooth','DamWH','dGGBn','iRvkY','local','push','catch','string','vkLPh','ENOENT','legacy','indexOf','XtHQl','Refusing\x20to\x20write\x20profile\x20\x22','wNTIU','XhwDd','length','keys','NofRE','jtOqL','2585124CzdrvW','sELYJ','GDDrA','OvIxJ','object','bGHcw','vision','parse','sGYkH','InJpA','fromEntries','SbUKE','vduLY','storageState','--disable-setuid-sandbox','SNvqG','TSNLN','playwright-cli','9195084ylUYdN','forWrite','Iwekp','includes'];_0x1fd5=function(){return _0x3322a0;};return _0x1fd5();}export function deleteNestedValue(_0x14d7c4,_0x2615af){const _0x5c1276=_0x34bd59,_0x29289f={'bJrZR':function(_0x596a21,_0x1df414){return _0x596a21===_0x1df414;},'XtHQl':_0x5c1276(0x1d4),'lKVoY':function(_0x4233d4,_0x5ae3d2){return _0x4233d4===_0x5ae3d2;},'fnXJy':function(_0x1a21fc,_0x471159){return _0x1a21fc!==_0x471159;},'nePfJ':function(_0x169a57,_0x545a71){return _0x169a57-_0x545a71;}},_0x337c37=parseKeyPath(_0x2615af);let _0x5c36c0=_0x14d7c4;for(let _0x35ddae=0x0;_0x35ddae<_0x337c37['length']-0x1;_0x35ddae++){if(_0x5c36c0===null||_0x29289f[_0x5c1276(0x211)](_0x5c36c0,undefined)||typeof _0x5c36c0!==_0x29289f['XtHQl'])return![];_0x5c36c0=_0x5c36c0[_0x337c37[_0x35ddae]];}if(_0x29289f['lKVoY'](_0x5c36c0,null)||_0x5c36c0===undefined||_0x29289f['fnXJy'](typeof _0x5c36c0,_0x29289f[_0x5c1276(0x1c8)]))return![];const _0x5ea002=_0x337c37[_0x29289f['nePfJ'](_0x337c37[_0x5c1276(0x1cc)],0x1)];if(_0x5ea002 in _0x5c36c0)return delete _0x5c36c0[_0x5ea002],!![];return![];}function parseKeyPath(_0x276f12){const _0x36f42b=_0x34bd59,_0x509948={'vkLPh':function(_0x290702,_0x3ddccf){return _0x290702===_0x3ddccf;},'XhwDd':_0x36f42b(0x20a),'EWyDi':_0x36f42b(0x20d),'IsItx':'setupHeader'},_0x32864a=_0x276f12['split']('.');return _0x509948[_0x36f42b(0x1c4)](_0x32864a[0x0],_0x509948[_0x36f42b(0x1cb)])&&(_0x32864a[0x0]=_0x509948[_0x36f42b(0x226)]),_0x32864a[0x0]===_0x509948['IsItx']&&(_0x32864a[0x0]='setupHeaders'),_0x32864a;}export function formatSettings(_0x349485,_0x4e7dbc=0x0){const _0x4b49f9=_0x34bd59,_0x585c2f={'sELYJ':function(_0x528472,_0x1c8392){return _0x528472===_0x1c8392;}},_0x1d148e=[],_0x372095='\x20\x20'['repeat'](_0x4e7dbc);for(const [_0x5406bb,_0x2bc5e0]of Object['entries'](_0x349485)){if(_0x2bc5e0===undefined)continue;if(_0x585c2f[_0x4b49f9(0x1d1)](typeof _0x2bc5e0,'object')&&_0x2bc5e0!==null){_0x1d148e['push'](''+_0x372095+_0x5406bb+':');for(const [_0x41bbc5,_0x2eb0ac]of Object[_0x4b49f9(0x228)](_0x2bc5e0)){_0x1d148e['push'](_0x372095+'\x20\x20'+_0x41bbc5+':\x20'+_0x2eb0ac);}}else _0x1d148e[_0x4b49f9(0x1c1)](''+_0x372095+_0x5406bb+':\x20'+_0x2bc5e0);}return _0x1d148e['join']('\x0a');}
1
+ const _0x50ffde=_0x16ef;function _0x16ef(_0x46bc75,_0x14b911){_0x46bc75=_0x46bc75-0x168;const _0x227b94=_0x227b();let _0x16efde=_0x227b94[_0x46bc75];return _0x16efde;}(function(_0x24e58e,_0x531f97){const _0x4387d9=_0x16ef,_0x201b9f=_0x24e58e();while(!![]){try{const _0x1c0f3c=parseInt(_0x4387d9(0x1bb))/0x1+parseInt(_0x4387d9(0x198))/0x2*(parseInt(_0x4387d9(0x1c2))/0x3)+-parseInt(_0x4387d9(0x1e5))/0x4*(-parseInt(_0x4387d9(0x1c6))/0x5)+-parseInt(_0x4387d9(0x177))/0x6+-parseInt(_0x4387d9(0x169))/0x7*(parseInt(_0x4387d9(0x1c9))/0x8)+-parseInt(_0x4387d9(0x1b0))/0x9*(parseInt(_0x4387d9(0x19d))/0xa)+parseInt(_0x4387d9(0x1d8))/0xb;if(_0x1c0f3c===_0x531f97)break;else _0x201b9f['push'](_0x201b9f['shift']());}catch(_0x16b50c){_0x201b9f['push'](_0x201b9f['shift']());}}}(_0x227b,0x45a77));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(_0x26a593,_0x59f881){const _0x963bbd=_0x16ef,_0x577822={'nKdFy':function(_0x120c9d,_0x21b5fe,_0x4c81b7,_0x504274){return _0x120c9d(_0x21b5fe,_0x4c81b7,_0x504274);},'iApHf':'local','xcORf':function(_0x2e36c0,_0x307a28,_0x20ded3){return _0x2e36c0(_0x307a28,_0x20ded3);},'PELSs':function(_0x2042c6,_0x1b47b3,_0x553f87){return _0x2042c6(_0x1b47b3,_0x553f87);},'AvvBi':function(_0x22b726,_0x468ba9,_0x126fc3){return _0x22b726(_0x468ba9,_0x126fc3);},'bQpJd':function(_0x5504e6,_0x44722c){return _0x5504e6(_0x44722c);}},_0x5c4835=join(_0x59f881,'ci',_0x26a593),_0x2cd59f=_0x577822['nKdFy'](join,_0x59f881,_0x577822['iApHf'],_0x26a593),_0x131b4b=_0x577822['xcORf'](join,_0x59f881,_0x26a593),_0x3c75de=_0x577822[_0x963bbd(0x1b2)](join,_0x59f881,_0x577822['iApHf']),_0x46c201=_0x577822['AvvBi'](join,_0x59f881,'ci');if(existsSync(_0x5c4835))return _0x5c4835;if(_0x577822['bQpJd'](existsSync,_0x2cd59f))return _0x2cd59f;if(_0x577822['bQpJd'](existsSync,_0x131b4b)&&(_0x131b4b!==_0x3c75de&&_0x131b4b!==_0x46c201?!![]:hasLegacyProfileFiles(_0x131b4b)))return _0x131b4b;return null;}export function getEnvDir(_0x20e20a,_0x560d90={}){const _0x3299b6=_0x16ef,_0x53fbdb={'jxuqa':function(_0x3ddfaf){return _0x3ddfaf();},'cIjLg':function(_0x55dbf0,_0x4eb8be){return _0x55dbf0(_0x4eb8be);},'JDtPm':function(_0x1cc7a0,_0x2b1d13){return _0x1cc7a0!==_0x2b1d13;},'yWkjZ':function(_0x598466,_0x33ffa9,_0x2b6c27){return _0x598466(_0x33ffa9,_0x2b6c27);}},_0x51a809=_0x53fbdb['jxuqa'](getRangerDir),_0x5e4f9b=findEnvInRoot(_0x20e20a,_0x51a809);if(_0x5e4f9b){if(_0x560d90[_0x3299b6(0x1e0)]&&_0x53fbdb[_0x3299b6(0x1a6)](isLegacyEnvPath,_0x5e4f9b))throw legacyWriteError(_0x20e20a,_0x5e4f9b);return _0x5e4f9b;}const _0x1b8378=_0x53fbdb[_0x3299b6(0x1cf)](getRangerHomeDir);if(_0x53fbdb['JDtPm'](_0x1b8378,_0x51a809)){const _0x5d4ee0=findEnvInRoot(_0x20e20a,_0x1b8378);if(_0x5d4ee0){if(_0x560d90['forWrite']&&_0x53fbdb['cIjLg'](isLegacyEnvPath,_0x5d4ee0))throw _0x53fbdb[_0x3299b6(0x1cd)](legacyWriteError,_0x20e20a,_0x5d4ee0);return _0x5d4ee0;}}const _0x26efed=join(_0x1b8378,'local',_0x20e20a);if(_0x560d90[_0x3299b6(0x1e0)])throw _0x53fbdb[_0x3299b6(0x1cd)](legacyWriteError,_0x20e20a,_0x26efed);return _0x26efed;}function _0x227b(){const _0x14197c=['qbAcS','entries','HCuXc','rangerDir','cIjLg','executablePath','YUNnu','message','filter','string','vTRTj','includes','fromEntries','VdKlq','45wiaSlW','clipboard-read','PELSs','qJdVM','playwright-cli','gWifA','--allow-insecure-localhost','catch','headless','ZSqis','lVzIj','126395KNBFLE','kwrbx','ranger-auth-','JZYGd','ZrZZO','AFSsa','KLUhH','99unSQlo','.json','now','location','275jRXgyz','LqmTM','--allow-running-insecure-content','552HUpCVc','wqszQ','ENOENT','cdpEndpoint','yWkjZ','VcWqV','jxuqa','args','WQONc','WHoNP','storageState','extraHTTPHeaders','vGNxm','zixvx','tempAuthPath','2616812pnoRwW','Spxlz','WWyLf','ignoreHTTPSErrors','-cli','dXLNA','TGhYI','--no-sandbox','forWrite','isArray','lMKOr','zkdYI','legacy','33836JmCZfN','HpCQG','setupHeaders','vtDKp','install','storageStatePath','map','safeMode','CzZAV','vision','browser','userAgent','48062AUPwgy','parse','EPAyu','MhjMR','launchOptions','pSMjV','rDhCE','--disable-web-security','olAZA','LsENF','path','allow','stagehand','getuid','449280iqNAOS','headers','WUJCQ','dMJmG','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','contextOptions','riWLi','\x20is\x20not\x20set','locations','auedo','setupHeader','smNgG','tNnjZ','MwKsE','-rangerwright.json','JZnKq','WJpJb','HAdCe','chromium','length','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','repeat','CbJyC','--disable-setuid-sandbox','pESoR','EBMxi','env','boolean','hhIXF','startsWith','stringify','nova-user-data','file','3930biwQNG','UsuLj','Caqym','auth.json.enc','settings.json','120880Ccaevu','--disable-features=WebBluetooth','local','UKuSH','fqOPw'];_0x227b=function(){return _0x14197c;};return _0x227b();}function isLegacyEnvPath(_0x5017e8){const _0x134ea6=_0x16ef,_0x5e395d={'TGhYI':function(_0x55778b){return _0x55778b();},'riWLi':function(_0x149fcf,_0x3b44de){return _0x149fcf+_0x3b44de;},'YUNnu':function(_0x4d39f7,_0x3d84a7){return _0x4d39f7===_0x3d84a7;}},_0x3d690f=_0x5e395d[_0x134ea6(0x1de)](getRangerDir),_0x35a4bd=getRangerHomeDir();for(const _0x1776ce of new Set([_0x3d690f,_0x35a4bd])){const _0x2d935f=_0x1776ce['endsWith']('/')?_0x1776ce:_0x5e395d[_0x134ea6(0x17d)](_0x1776ce,'/');if(_0x5e395d[_0x134ea6(0x1a8)](_0x5017e8,_0x1776ce)||_0x5017e8[_0x134ea6(0x194)](_0x2d935f))return!![];}return![];}function legacyWriteError(_0x4a038c,_0x3fa76b){const _0x37ccfa=_0x16ef,_0x1e4f4d={'yBmIk':function(_0x2150f3,_0x243b6f){return _0x2150f3+_0x243b6f;}};return new Error(_0x1e4f4d['yBmIk']('Refusing\x20to\x20write\x20profile\x20\x22'+_0x4a038c+'\x22\x20to\x20legacy\x20path\x20'+_0x3fa76b+'.\x0a'+'That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a'+_0x37ccfa(0x18b),'See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.'));}export function findExistingEnv(_0x13155b,_0x12e42e){const _0x377a7c=_0x16ef,_0x2d555c={'jdjdZ':function(_0xf71908){return _0xf71908();},'olAZA':'legacy','fqOPw':function(_0x34f546,_0xb3c52e,_0xb16e2c){return _0x34f546(_0xb3c52e,_0xb16e2c);},'UKuSH':function(_0x236110,_0x281513,_0x1c3740,_0x51653f){return _0x236110(_0x281513,_0x1c3740,_0x51653f);},'dMJmG':_0x377a7c(0x19f),'jSXLz':function(_0x1ce4ca,_0xf41b92){return _0x1ce4ca(_0xf41b92);},'lTWtd':function(_0x5bd337,_0x3c2a2e){return _0x5bd337===_0x3c2a2e;},'Ioxay':function(_0xbd9c9b,_0xddf775){return _0xbd9c9b===_0xddf775;}},_0x11c449=_0x12e42e?.[_0x377a7c(0x1a5)],_0x14b3f6=_0x11c449?[_0x11c449]:[_0x2d555c['jdjdZ'](getRangerDir),getRangerHomeDir()]['filter']((_0x4eed16,_0x27b0fa,_0x2ac4af)=>_0x2ac4af['indexOf'](_0x4eed16)===_0x27b0fa),_0x32742b=_0x12e42e?.[_0x377a7c(0x17f)]??['ci','local',_0x2d555c['olAZA']];for(const _0x1d21f7 of _0x14b3f6){const _0x1658df=join(_0x1d21f7,_0x377a7c(0x19f)),_0x11ef4e=_0x2d555c[_0x377a7c(0x1a1)](join,_0x1d21f7,'ci'),_0x1003d8=[{'location':'ci','path':_0x2d555c[_0x377a7c(0x1a0)](join,_0x1d21f7,'ci',_0x13155b)},{'location':_0x377a7c(0x19f),'path':join(_0x1d21f7,_0x2d555c[_0x377a7c(0x17a)],_0x13155b)},{'location':_0x377a7c(0x1e4),'path':join(_0x1d21f7,_0x13155b)}];for(const _0x190ed4 of _0x1003d8){if(_0x32742b[_0x377a7c(0x1ad)](_0x190ed4[_0x377a7c(0x1c5)])&&_0x2d555c['jSXLz'](existsSync,_0x190ed4['path'])){if(_0x190ed4['location']===_0x2d555c[_0x377a7c(0x171)]&&(_0x2d555c['lTWtd'](_0x190ed4['path'],_0x1658df)||_0x2d555c['Ioxay'](_0x190ed4['path'],_0x11ef4e))&&!_0x2d555c['jSXLz'](hasLegacyProfileFiles,_0x190ed4[_0x377a7c(0x173)]))continue;return{'path':_0x190ed4[_0x377a7c(0x173)],'location':_0x190ed4[_0x377a7c(0x1c5)]};}}}return null;}function hasLegacyProfileFiles(_0x241324){const _0x8f2e3b=_0x16ef,_0x2de6ad={'HvJgR':function(_0x2a3709,_0x4ed8b4){return _0x2a3709(_0x4ed8b4);},'yfuNT':_0x8f2e3b(0x19c),'CbJyC':function(_0x26201d,_0x38349f){return _0x26201d(_0x38349f);},'LsENF':function(_0x48d52b,_0x11abc4,_0x70aac2){return _0x48d52b(_0x11abc4,_0x70aac2);}};return _0x2de6ad['HvJgR'](existsSync,join(_0x241324,_0x2de6ad['yfuNT']))||existsSync(join(_0x241324,'auth.json'))||_0x2de6ad[_0x8f2e3b(0x18d)](existsSync,_0x2de6ad[_0x8f2e3b(0x172)](join,_0x241324,_0x8f2e3b(0x19b)));}export function isEnvCi(_0x521845){const _0x57d58d=_0x16ef,_0x23dddb={'WWevn':function(_0x544489,_0x551768){return _0x544489(_0x551768);},'XEDdu':function(_0x4b5e5e){return _0x4b5e5e();},'VcWqV':function(_0x42c1ea){return _0x42c1ea();},'XWijo':function(_0x19bcde,_0x25a8e5){return _0x19bcde!==_0x25a8e5;},'TtrgV':function(_0x4e9c5,_0x1596b6,_0x3e1e4f,_0x4001fc){return _0x4e9c5(_0x1596b6,_0x3e1e4f,_0x4001fc);}};if(_0x23dddb['WWevn'](existsSync,join(_0x23dddb['XEDdu'](getRangerDir),'ci',_0x521845)))return!![];const _0x349e0a=_0x23dddb[_0x57d58d(0x1ce)](getRangerHomeDir);if(_0x23dddb['XWijo'](_0x349e0a,_0x23dddb['VcWqV'](getRangerDir))&&existsSync(_0x23dddb['TtrgV'](join,_0x349e0a,'ci',_0x521845)))return!![];return![];}export async function cleanupTempFiles(_0x4b06b9){const _0x53f4ff=_0x16ef,_0x2e38b9=[_0x4b06b9[_0x53f4ff(0x1d7)],_0x4b06b9['configPath']]['filter'](Boolean);await Promise['all'](_0x2e38b9[_0x53f4ff(0x1eb)](_0xd20c88=>unlink(_0xd20c88)[_0x53f4ff(0x1b7)](_0x44d62d=>{const _0x5e1b88=_0x53f4ff;_0x44d62d['code']!==_0x5e1b88(0x1cb)&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0xd20c88+':',_0x44d62d[_0x5e1b88(0x1a9)]);})));}export function getSettingsPath(_0x269d2f){const _0x423342=_0x16ef,_0x11bea1={'WUJCQ':function(_0x2a1355,_0x3ec048,_0x1f34c0){return _0x2a1355(_0x3ec048,_0x1f34c0);},'UsuLj':function(_0x5d2b0b,_0x2ee71b){return _0x5d2b0b(_0x2ee71b);}};return _0x11bea1[_0x423342(0x179)](join,_0x11bea1[_0x423342(0x199)](getEnvDir,_0x269d2f),_0x423342(0x19c));}export async function loadSettings(_0x400afd){const _0xfd5d07=_0x16ef,_0x7dca12={'MhjMR':function(_0x2f2e28,_0x15bade){return _0x2f2e28(_0x15bade);},'xHizU':function(_0x171b3f,_0x3b2166,_0x52fe77){return _0x171b3f(_0x3b2166,_0x52fe77);}},_0x2de308=getSettingsPath(_0x400afd);if(!_0x7dca12[_0xfd5d07(0x16c)](existsSync,_0x2de308))return{};try{const _0xa2d52=await _0x7dca12['xHizU'](readFile,_0x2de308,'utf-8');return JSON[_0xfd5d07(0x16a)](_0xa2d52);}catch{return{};}}export async function saveSettings(_0x4d2a58,_0x18cff2){const _0x168b03=_0x16ef,_0x5cca47={'ygtAC':function(_0x193e35,_0xb32ea0){return _0x193e35(_0xb32ea0);}},_0x4a9171=_0x5cca47['ygtAC'](getSettingsPath,_0x4d2a58),_0x34e13d=dirname(_0x4a9171);!existsSync(_0x34e13d)&&await mkdir(_0x34e13d,{'recursive':!![]}),await writeFile(_0x4a9171,JSON[_0x168b03(0x195)](_0x18cff2,null,0x2));}export function resolveEnvVars(_0x506e92){const _0x4ab64f=_0x16ef,_0x40149d={'smNgG':function(_0x1b34a9,_0x848ea2){return _0x1b34a9===_0x848ea2;},'ytznA':'object'};if(typeof _0x506e92==='string')return _0x506e92['replace'](/\$\{(\w+)\}/g,(_0xfcaa66,_0x488c36)=>{const _0x568dc8=_0x16ef,_0x52f8bc=process[_0x568dc8(0x191)][_0x488c36];if(_0x52f8bc===undefined)throw new Error('Environment\x20variable\x20'+_0x488c36+_0x568dc8(0x17e));return _0x52f8bc;});if(Array[_0x4ab64f(0x1e1)](_0x506e92))return _0x506e92[_0x4ab64f(0x1eb)](resolveEnvVars);if(_0x506e92&&_0x40149d[_0x4ab64f(0x182)](typeof _0x506e92,_0x40149d['ytznA']))return Object[_0x4ab64f(0x1ae)](Object[_0x4ab64f(0x1a3)](_0x506e92)[_0x4ab64f(0x1eb)](([_0x5a1edd,_0x27aeb7])=>[_0x5a1edd,resolveEnvVars(_0x27aeb7)]));return _0x506e92;}const isRecord=_0x446b25=>typeof _0x446b25==='object'&&_0x446b25!==null&&!Array[_0x50ffde(0x1e1)](_0x446b25),asRecord=_0x1da1eb=>isRecord(_0x1da1eb)?_0x1da1eb:undefined,mergeHeaders=(_0x1aa128,_0x18af06)=>{const _0x4aba0d=_0x50ffde,_0x273883={'lMKOr':function(_0xc7b833,_0x197172){return _0xc7b833??_0x197172;}},_0x495971={..._0x273883[_0x4aba0d(0x1e2)](_0x1aa128,{}),..._0x18af06??{}};return Object['keys'](_0x495971)['length']?_0x495971:undefined;},SAFE_MODE_ARGS=[_0x50ffde(0x19e)],ALLOW_LOCALHOST_ARGS=[_0x50ffde(0x170),_0x50ffde(0x1c8),'--unsafely-treat-insecure-origin-as-secure=http://localhost',_0x50ffde(0x1b6)];export function buildBrowserOptionsFromSettings(_0x28cae3,_0x2d947d={}){const _0x5d8b5c=_0x50ffde,_0x1dca26={'zkdYI':function(_0x2a01ca,_0x43380b){return _0x2a01ca(_0x43380b);},'lVzIj':function(_0x58755e,_0x3fac7e){return _0x58755e(_0x3fac7e);},'RrgYi':function(_0x2d4fc9,_0x12b83a){return _0x2d4fc9===_0x12b83a;},'CQuJE':function(_0x138c0d,_0x8f65f9){return _0x138c0d(_0x8f65f9);},'AFSsa':'string','EBMxi':function(_0x5f5cf6,_0x141bc5){return _0x5f5cf6(_0x141bc5);}},_0x5bab2a=_0x1dca26[_0x5d8b5c(0x1e3)](asRecord,_0x28cae3['browser']),_0x20d462={..._0x1dca26['lVzIj'](asRecord,_0x5bab2a?.[_0x5d8b5c(0x16d)])??{}};_0x1dca26['RrgYi'](typeof _0x2d947d['headless'],_0x5d8b5c(0x192))&&(_0x20d462[_0x5d8b5c(0x1b8)]=_0x2d947d[_0x5d8b5c(0x1b8)]);if(_0x28cae3[_0x5d8b5c(0x1ec)]){const _0x26be17=_0x20d462['args']??[],_0x2a5437=SAFE_MODE_ARGS[_0x5d8b5c(0x1aa)](_0x59c6c4=>!_0x26be17[_0x5d8b5c(0x1ad)](_0x59c6c4));_0x20d462['args']=[..._0x26be17,..._0x2a5437];}if(_0x28cae3['allowInsecureLocalhost']){const _0x1cf3a1=_0x20d462['args']??[],_0x3c3b0e=ALLOW_LOCALHOST_ARGS['filter'](_0x21f4be=>!_0x1cf3a1['includes'](_0x21f4be));_0x20d462['args']=[..._0x1cf3a1,..._0x3c3b0e];}const _0x6a3867={..._0x1dca26['CQuJE'](asRecord,_0x5bab2a?.[_0x5d8b5c(0x17c)])??{}};_0x6a3867[_0x5d8b5c(0x1db)]=!![];typeof _0x28cae3[_0x5d8b5c(0x168)]===_0x1dca26[_0x5d8b5c(0x1c0)]&&(_0x6a3867['userAgent']=_0x28cae3['userAgent']);const _0x504836=mergeHeaders(_0x1dca26[_0x5d8b5c(0x1ba)](asRecord,_0x6a3867[_0x5d8b5c(0x1d4)]),_0x1dca26[_0x5d8b5c(0x190)](asRecord,_0x28cae3['headers']));return _0x504836?_0x6a3867[_0x5d8b5c(0x1d4)]=_0x504836:delete _0x6a3867['extraHTTPHeaders'],_0x2d947d['storageStatePath']&&(_0x6a3867[_0x5d8b5c(0x1d3)]=_0x2d947d[_0x5d8b5c(0x1ea)]),{'launchOptions':_0x20d462,'contextOptions':_0x6a3867};}export async function resolveProfileStorageState(_0x2f3f74){return resolveLocalAuthPath(getEnvDir(_0x2f3f74));}async function resolveLocalAuthPath(_0x134702){const _0x4d42c2=_0x50ffde,_0x2d5791={'kfgRF':'auth.json.enc','EPAyu':function(_0x1cb200,_0x10b768){return _0x1cb200(_0x10b768);},'BaoBV':function(_0x43daa7){return _0x43daa7();},'czURL':_0x4d42c2(0x17b),'qbAcS':function(_0x1c539b,_0x7d6473,_0x3d2f3d){return _0x1c539b(_0x7d6473,_0x3d2f3d);},'CzZAV':function(_0x23cce6,_0x1384a7){return _0x23cce6 instanceof _0x1384a7;}},_0x53ad2f=join(_0x134702,_0x2d5791['kfgRF']),_0x1d5f9d=join(_0x134702,'auth.json');if(_0x2d5791[_0x4d42c2(0x16b)](existsSync,_0x53ad2f))try{const _0x412e0d=await _0x2d5791['BaoBV'](getToken);if(!_0x412e0d)throw new Error(_0x2d5791['czURL']);const _0x53b0fe=await readFile(_0x53ad2f),_0x3baa00=_0x2d5791[_0x4d42c2(0x1a2)](decrypt,_0x53b0fe,_0x412e0d),_0x23f117=_0x2d5791[_0x4d42c2(0x1a2)](join,_0x2d5791['BaoBV'](tmpdir),_0x4d42c2(0x1bd)+Date['now']()+'.json');return await _0x2d5791[_0x4d42c2(0x1a2)](writeFile,_0x23f117,_0x3baa00),{'storageStatePath':_0x23f117,'tempAuthPath':_0x23f117};}catch(_0x4ff639){const _0x1f259a=_0x2d5791[_0x4d42c2(0x1ed)](_0x4ff639,Error)?_0x4ff639['message']:_0x2d5791['EPAyu'](String,_0x4ff639);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x1f259a);}if(existsSync(_0x1d5f9d))return{'storageStatePath':_0x1d5f9d};return{};}export async function buildPlaywrightConfig(_0x1084ce,_0x157628,_0x465397,_0x2a18f7,_0x5ebbea){const _0xb227e7=_0x50ffde,_0x4fc346={'Spxlz':function(_0x5129a3,_0x76b0b9){return _0x5129a3(_0x76b0b9);},'pKcAZ':_0xb227e7(0x175),'TMPsL':function(_0x23deeb,_0x1ddee2){return _0x23deeb(_0x1ddee2);}};if(_0x5ebbea)return buildPlaywrightConfigCore(_0x1084ce,_0x5ebbea,_0x157628,_0x465397,_0x2a18f7,'stagehand');const {storageStatePath:_0x22833a,tempAuthPath:_0x3d3884}=await _0x4fc346[_0xb227e7(0x1d9)](resolveLocalAuthPath,getEnvDir(_0x157628));try{const _0x58725b=await buildPlaywrightConfigCore(_0x1084ce,_0x22833a,_0x157628,_0x465397,_0x2a18f7,_0x4fc346['pKcAZ']);return{..._0x58725b,'tempAuthPath':_0x3d3884};}catch(_0x2c27ed){_0x3d3884&&await _0x4fc346['TMPsL'](unlink,_0x3d3884)[_0xb227e7(0x1b7)](()=>{});throw _0x2c27ed;}}export async function buildPlaywrightConfigCore(_0x566c02,_0x219ca7,_0x2e2f56,_0x19a4fb,_0x5d06f1,_0x57cd73='stagehand'){const _0x3ef6e5=_0x50ffde,_0x2caeb3={'VdKlq':function(_0x4ca357,_0x547520){return _0x4ca357===_0x547520;},'MwKsE':'--disable-setuid-sandbox','sFOAM':'chromium','HsRzu':function(_0x50dd9a){return _0x50dd9a();},'pESoR':function(_0x34f20a,_0x38e8f5,_0x106b6d,_0x3903d0){return _0x34f20a(_0x38e8f5,_0x106b6d,_0x3903d0);},'MLxGr':function(_0x49602e){return _0x49602e();},'LoQLJ':_0x3ef6e5(0x197),'OjDUO':'core','gWifA':_0x3ef6e5(0x1e9),'Caqym':'pdf','LVpKX':function(_0x2129cc,_0x390ddb,_0x4c7e9d){return _0x2129cc(_0x390ddb,_0x4c7e9d);},'GzDBa':'ranger-config','glYNQ':_0x3ef6e5(0x1b4),'FqaPK':_0x3ef6e5(0x1dc)},_0x21dce3=_0x19a4fb||_0x2caeb3['HsRzu'](randomUUID),_0x4991e7=_0x2caeb3[_0x3ef6e5(0x18f)](join,_0x2caeb3['MLxGr'](getRangerDir),'sessions',_0x21dce3),_0x368604=Boolean(_0x566c02['cdpEndpoint']),_0x57fae7=_0x368604?{'browserName':_0x2caeb3['sFOAM'],'cdpEndpoint':_0x566c02[_0x3ef6e5(0x1cc)]}:((()=>{const _0x39c8c0=_0x3ef6e5,{launchOptions:_0x2a74a8,contextOptions:_0x191e26}=buildBrowserOptionsFromSettings(_0x566c02,{'headless':_0x5d06f1?![]:_0x566c02[_0x39c8c0(0x1b8)]??!![],'storageStatePath':_0x219ca7});if(_0x2caeb3['VdKlq'](process[_0x39c8c0(0x176)]?.(),0x0)){const _0x85c941=['--no-sandbox',_0x2caeb3[_0x39c8c0(0x184)]],_0x50f61f=_0x2a74a8[_0x39c8c0(0x1d0)]??[],_0x329cea=_0x85c941['filter'](_0x251c68=>!_0x50f61f[_0x39c8c0(0x1ad)](_0x251c68));_0x2a74a8['args']=[..._0x50f61f,..._0x329cea];}return{'isolated':!![],'browserName':_0x2caeb3['sFOAM'],'launchOptions':_0x2a74a8,'contextOptions':{..._0x191e26,'permissions':[_0x39c8c0(0x1b1),'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x302051=_0x57cd73==='playwright-cli'?{'browser':_0x57fae7,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4991e7,'outputMode':_0x2caeb3['LoQLJ'],'codegen':'none'}:{'name':_0x2e2f56,'browser':_0x57fae7,'capabilities':[_0x2caeb3['OjDUO'],'tabs',_0x2caeb3[_0x3ef6e5(0x1b5)],_0x2caeb3[_0x3ef6e5(0x19a)],_0x3ef6e5(0x1ee)],'imageResponses':_0x3ef6e5(0x174),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4991e7};if(!_0x368604){const _0x13af5c=_0x302051[_0x3ef6e5(0x1ef)],_0x1de859=_0x13af5c[_0x3ef6e5(0x17c)];if(_0x2caeb3[_0x3ef6e5(0x1af)](_0x1de859[_0x3ef6e5(0x168)],undefined))delete _0x1de859[_0x3ef6e5(0x168)];if(_0x1de859['storageState']===undefined)delete _0x1de859['storageState'];}const _0xbb688a=_0x2caeb3['LVpKX'](join,_0x2caeb3['HsRzu'](tmpdir),_0x2caeb3['GzDBa']);!existsSync(_0xbb688a)&&await mkdir(_0xbb688a,{'recursive':!![]});const _0xfd8873=_0x57cd73===_0x2caeb3['glYNQ']?_0x2caeb3['FqaPK']:'',_0x580351=join(_0xbb688a,_0x2e2f56+'-'+Date[_0x3ef6e5(0x1c4)]()+_0xfd8873+_0x3ef6e5(0x1c3));return await writeFile(_0x580351,JSON['stringify'](_0x302051,null,0x2)),{'configPath':_0x580351,'storageStatePath':_0x219ca7};}export async function buildPlaywrightCliConfig(_0x2b2f40,_0x3d4e4d,_0x1bbbe5,_0x73122c,_0x587161){const _0x2f45ae=_0x50ffde,_0x4d18ee={'dXLNA':_0x2f45ae(0x1b4),'JZYGd':function(_0x42efd7,_0x123407,_0x2170b1,_0x4c6240,_0x2e916b,_0x4dfc7c,_0xc47e24){return _0x42efd7(_0x123407,_0x2170b1,_0x4c6240,_0x2e916b,_0x4dfc7c,_0xc47e24);}};if(_0x587161)return buildPlaywrightConfigCore(_0x2b2f40,_0x587161,_0x3d4e4d,_0x1bbbe5,_0x73122c,_0x4d18ee[_0x2f45ae(0x1dd)]);const {storageStatePath:_0x3a9421,tempAuthPath:_0x584e41}=await resolveLocalAuthPath(getEnvDir(_0x3d4e4d));try{const _0x16794c=await _0x4d18ee[_0x2f45ae(0x1be)](buildPlaywrightConfigCore,_0x2b2f40,_0x3a9421,_0x3d4e4d,_0x1bbbe5,_0x73122c,'playwright-cli');return{..._0x16794c,'tempAuthPath':_0x584e41};}catch(_0xe6d329){_0x584e41&&await unlink(_0x584e41)['catch'](()=>{});throw _0xe6d329;}}export async function buildRangerwrightCliConfig(_0x40a5b1,_0x3dea8c,_0x52d1dc,_0x5a161d,_0x5dd129){const _0x5f1d7d=_0x50ffde,_0x12bc3d={'wqszQ':function(_0x1d2e1c,_0x2fb427){return _0x1d2e1c===_0x2fb427;},'LqmTM':'--no-sandbox','xMzIe':'--disable-setuid-sandbox','WHoNP':'chromium','qJdVM':_0x5f1d7d(0x1b1),'mxuUq':function(_0x42ce3f,_0x3e57c9){return _0x42ce3f(_0x3e57c9);},'auedo':function(_0x968d39,_0x54e143){return _0x968d39(_0x54e143);},'JZnKq':function(_0x411682){return _0x411682();},'ZrZZO':function(_0x19ab40,_0x5d7de4,_0x592bb8,_0x155a37){return _0x19ab40(_0x5d7de4,_0x592bb8,_0x155a37);},'HAdCe':'sessions','UcJyC':function(_0x12f4d4,_0x1dbef2){return _0x12f4d4(_0x1dbef2);},'hhIXF':function(_0x3dd08b,_0x2d1247){return _0x3dd08b===_0x2d1247;},'tNEhH':function(_0x58b277,_0x9c47d7,_0xa33c59){return _0x58b277(_0x9c47d7,_0xa33c59);},'WQONc':function(_0x5dc043,_0x5374a0,_0x274a82){return _0x5dc043(_0x5374a0,_0x274a82);},'EJNtL':function(_0x467847,_0x559f38){return _0x467847(_0x559f38);}},{storageStatePath:_0x4991c4,tempAuthPath:_0x5a3c0f}=_0x5dd129?{'storageStatePath':_0x5dd129,'tempAuthPath':undefined}:await _0x12bc3d['mxuUq'](resolveLocalAuthPath,_0x12bc3d[_0x5f1d7d(0x180)](getEnvDir,_0x3dea8c)),_0x5b61bc=_0x52d1dc||_0x12bc3d[_0x5f1d7d(0x186)](randomUUID),_0x4abfe9=_0x12bc3d[_0x5f1d7d(0x1bf)](join,_0x12bc3d[_0x5f1d7d(0x186)](getRangerDir),_0x12bc3d[_0x5f1d7d(0x188)],_0x5b61bc),_0x4a47d1=_0x12bc3d['UcJyC'](Boolean,_0x40a5b1['cdpEndpoint']),_0x29769f=_0x4a47d1?{'browserName':_0x5f1d7d(0x189),'cdpEndpoint':_0x40a5b1['cdpEndpoint']}:((()=>{const _0x51fd17=_0x5f1d7d,{launchOptions:_0x5a5aad,contextOptions:_0x4c8cc4}=buildBrowserOptionsFromSettings(_0x40a5b1,{'headless':_0x5a161d?![]:_0x40a5b1['headless']??!![],'storageStatePath':_0x4991c4});if(_0x12bc3d[_0x51fd17(0x1ca)](process[_0x51fd17(0x176)]?.(),0x0)){const _0x3039d5=[_0x12bc3d[_0x51fd17(0x1c7)],_0x12bc3d['xMzIe']],_0xc5898b=_0x5a5aad['args']??[],_0x240460=_0x3039d5[_0x51fd17(0x1aa)](_0x3a213c=>!_0xc5898b[_0x51fd17(0x1ad)](_0x3a213c));_0x5a5aad['args']=[..._0xc5898b,..._0x240460];}return{'browserName':_0x12bc3d[_0x51fd17(0x1d2)],'launchOptions':_0x5a5aad,'contextOptions':{..._0x4c8cc4,'permissions':[_0x12bc3d[_0x51fd17(0x1b3)],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x4a47d1){const _0x27df4d=_0x29769f['contextOptions'];if(_0x27df4d){if(_0x12bc3d[_0x5f1d7d(0x193)](_0x27df4d['userAgent'],undefined))delete _0x27df4d[_0x5f1d7d(0x168)];if(_0x12bc3d[_0x5f1d7d(0x193)](_0x27df4d['storageState'],undefined))delete _0x27df4d['storageState'];}}const _0x318bc3={'browser':_0x29769f,'outputDir':_0x4abfe9,'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'settle':{'navigationLoadTimeoutMs':0x7530,'networkSettleTimeoutMs':0x1388,'networkIdleWindowMs':0x1f4,'postActionAnimationFrameCount':0x2}};let _0x4314bc;try{const _0x2719e7=_0x12bc3d['tNEhH'](join,tmpdir(),'ranger-config');!existsSync(_0x2719e7)&&await mkdir(_0x2719e7,{'recursive':!![]}),_0x4314bc=join(_0x2719e7,_0x3dea8c+'-'+Date[_0x5f1d7d(0x1c4)]()+_0x5f1d7d(0x185)),await _0x12bc3d[_0x5f1d7d(0x1d1)](writeFile,_0x4314bc,JSON['stringify'](_0x318bc3,null,0x2));}catch(_0x5d02c8){_0x5a3c0f&&await _0x12bc3d['EJNtL'](unlink,_0x5a3c0f)[_0x5f1d7d(0x1b7)](()=>{});throw _0x5d02c8;}return{'configPath':_0x4314bc,'storageStatePath':_0x4991c4,'tempAuthPath':_0x5a3c0f,'outputDir':_0x4abfe9};}export async function buildNovaActCliConfig(_0xe2c980,_0x56b796,_0x380af4,_0x2ae99b,_0x300faf){const _0x4a0963=_0x50ffde,_0x421ab5={'ZSqis':function(_0x128cf8,_0x4c908a){return _0x128cf8(_0x4c908a);},'scQDx':function(_0x5cf191){return _0x5cf191();},'WJpJb':_0x4a0963(0x196),'pSMjV':'Default','HCuXc':function(_0x1d4148,_0x169c89,_0x1e4da5){return _0x1d4148(_0x169c89,_0x1e4da5);},'ywuwG':function(_0x4880b6,_0x290ce2){return _0x4880b6===_0x290ce2;},'cXyqi':_0x4a0963(0x1df),'mKoJS':_0x4a0963(0x18e),'vGNxm':function(_0x179abd,_0x21df35){return _0x179abd(_0x21df35);}},{storageStatePath:_0x250bce,tempAuthPath:_0x223aca}=_0x300faf?{'storageStatePath':_0x300faf,'tempAuthPath':undefined}:await _0x421ab5['ZSqis'](resolveLocalAuthPath,getEnvDir(_0x56b796)),_0x4c46de=_0x380af4||randomUUID(),_0x357030=join(_0x421ab5['scQDx'](getRangerDir),'sessions',_0x4c46de),_0x233c64=join(_0x357030,_0x421ab5[_0x4a0963(0x187)]),_0x5bcb49=_0x250bce?join(_0x233c64,_0x421ab5[_0x4a0963(0x16e)]):undefined,{launchOptions:_0x5dcd13,contextOptions:_0x482a35}=_0x421ab5[_0x4a0963(0x1a4)](buildBrowserOptionsFromSettings,_0xe2c980,{'headless':_0x2ae99b?![]:_0xe2c980['headless']??!![],'storageStatePath':_0x250bce});if(_0x421ab5['ywuwG'](process[_0x4a0963(0x176)]?.(),0x0)){const _0x564edb=[_0x421ab5['cXyqi'],_0x421ab5['mKoJS']],_0x5ec1d5=_0x5dcd13['args']??[],_0x1feb45=_0x564edb[_0x4a0963(0x1aa)](_0xf0adf3=>!_0x5ec1d5[_0x4a0963(0x1ad)](_0xf0adf3));_0x5dcd13['args']=[..._0x5ec1d5,..._0x1feb45];}const _0x24e7c8=typeof _0x5dcd13[_0x4a0963(0x1a7)]===_0x4a0963(0x1ab)?_0x5dcd13[_0x4a0963(0x1a7)]:_0x250bce?chromium['executablePath']():undefined;return{'storageStatePath':_0x250bce,'tempAuthPath':_0x223aca,'baseUrl':_0xe2c980['baseUrl'],'headless':_0x421ab5['ZSqis'](Boolean,_0x5dcd13['headless']),'userDataDir':_0x233c64,'browserProfilePath':_0x5bcb49,'executablePath':_0x24e7c8,'launchArgs':Array[_0x4a0963(0x1e1)](_0x5dcd13[_0x4a0963(0x1d0)])?_0x5dcd13[_0x4a0963(0x1d0)]['filter'](_0x2e64ae=>typeof _0x2e64ae==='string'):[],'userAgent':_0x421ab5['ywuwG'](typeof _0x482a35['userAgent'],_0x4a0963(0x1ab))?_0x482a35[_0x4a0963(0x168)]:undefined,'extraHTTPHeaders':_0x482a35['extraHTTPHeaders'],'allowInsecureLocalhost':_0x421ab5[_0x4a0963(0x1b9)](Boolean,_0xe2c980['allowInsecureLocalhost']),'safeMode':_0x421ab5['ZSqis'](Boolean,_0xe2c980['safeMode']),'cdpEndpoint':_0xe2c980['cdpEndpoint'],'isCdpMode':_0x421ab5[_0x4a0963(0x1d5)](Boolean,_0xe2c980['cdpEndpoint'])};}export function getNestedValue(_0x34f029,_0x4791a6){const _0x17899d=_0x50ffde,_0x1366ce={'tNnjZ':function(_0x4e6b64,_0x3d4254){return _0x4e6b64===_0x3d4254;},'vTRTj':function(_0x5e67d9,_0x111304){return _0x5e67d9===_0x111304;}},_0x3b4cb7=parseKeyPath(_0x4791a6);let _0x1aea51=_0x34f029;for(const _0x323f6e of _0x3b4cb7){if(_0x1366ce[_0x17899d(0x183)](_0x1aea51,null)||_0x1366ce[_0x17899d(0x1ac)](_0x1aea51,undefined)||typeof _0x1aea51!=='object')return undefined;_0x1aea51=_0x1aea51[_0x323f6e];}return _0x1aea51;}export function setNestedValue(_0x29b932,_0x360692,_0x50485d){const _0x1bd387=_0x50ffde,_0x4f66dc={'zGGYY':function(_0x23c9fc,_0x4d4321){return _0x23c9fc<_0x4d4321;},'Bqtuu':function(_0xdb7b6,_0x13de10){return _0xdb7b6!==_0x13de10;}},_0x503281=parseKeyPath(_0x360692);let _0x2837d7=_0x29b932;for(let _0x1456bd=0x0;_0x4f66dc['zGGYY'](_0x1456bd,_0x503281['length']-0x1);_0x1456bd++){const _0x34a9ab=_0x503281[_0x1456bd];(!(_0x34a9ab in _0x2837d7)||_0x4f66dc['Bqtuu'](typeof _0x2837d7[_0x34a9ab],'object'))&&(_0x2837d7[_0x34a9ab]={}),_0x2837d7=_0x2837d7[_0x34a9ab];}_0x2837d7[_0x503281[_0x503281[_0x1bd387(0x18a)]-0x1]]=_0x50485d;}export function deleteNestedValue(_0x1fc248,_0xfb0eb3){const _0x350705=_0x50ffde,_0x1b635f={'kwrbx':function(_0x4c8f2b,_0x4ed1f3){return _0x4c8f2b(_0x4ed1f3);},'EZDKt':function(_0x1b24f9,_0x11e175){return _0x1b24f9<_0x11e175;},'vtDKp':function(_0x48dee3,_0x3dd5b1){return _0x48dee3===_0x3dd5b1;},'jOuEg':'object','OBrko':function(_0x400a99,_0x16cd1b){return _0x400a99===_0x16cd1b;},'JTlDv':function(_0x268a44,_0x24e0a5){return _0x268a44===_0x24e0a5;}},_0x3c73f7=_0x1b635f[_0x350705(0x1bc)](parseKeyPath,_0xfb0eb3);let _0x43ed59=_0x1fc248;for(let _0x45e7fe=0x0;_0x1b635f['EZDKt'](_0x45e7fe,_0x3c73f7[_0x350705(0x18a)]-0x1);_0x45e7fe++){if(_0x43ed59===null||_0x1b635f[_0x350705(0x1e8)](_0x43ed59,undefined)||typeof _0x43ed59!==_0x1b635f['jOuEg'])return![];_0x43ed59=_0x43ed59[_0x3c73f7[_0x45e7fe]];}if(_0x1b635f['OBrko'](_0x43ed59,null)||_0x1b635f['JTlDv'](_0x43ed59,undefined)||typeof _0x43ed59!==_0x1b635f['jOuEg'])return![];const _0x26a24e=_0x3c73f7[_0x3c73f7[_0x350705(0x18a)]-0x1];if(_0x26a24e in _0x43ed59)return delete _0x43ed59[_0x26a24e],!![];return![];}function parseKeyPath(_0x1f26d5){const _0x47c561=_0x50ffde,_0x2daf4c={'zixvx':function(_0x8bf690,_0x297197){return _0x8bf690===_0x297197;},'nkTMq':'header','HpCQG':_0x47c561(0x178),'WWyLf':_0x47c561(0x181)},_0x13c702=_0x1f26d5['split']('.');return _0x2daf4c['zixvx'](_0x13c702[0x0],_0x2daf4c['nkTMq'])&&(_0x13c702[0x0]=_0x2daf4c[_0x47c561(0x1e6)]),_0x2daf4c[_0x47c561(0x1d6)](_0x13c702[0x0],_0x2daf4c[_0x47c561(0x1da)])&&(_0x13c702[0x0]=_0x47c561(0x1e7)),_0x13c702;}export function formatSettings(_0x509ad6,_0xec41e6=0x0){const _0x1a6038=_0x50ffde,_0x1487a9={'rDhCE':function(_0x2b858f,_0x1b0697){return _0x2b858f===_0x1b0697;},'KLUhH':function(_0x3f6a69,_0x291d73){return _0x3f6a69!==_0x291d73;}},_0x41c0fc=[],_0x5333b9='\x20\x20'[_0x1a6038(0x18c)](_0xec41e6);for(const [_0x516a1f,_0x28304d]of Object['entries'](_0x509ad6)){if(_0x1487a9['rDhCE'](_0x28304d,undefined))continue;if(_0x1487a9[_0x1a6038(0x16f)](typeof _0x28304d,'object')&&_0x1487a9[_0x1a6038(0x1c1)](_0x28304d,null)){_0x41c0fc['push'](''+_0x5333b9+_0x516a1f+':');for(const [_0x5c7f5a,_0x19b94f]of Object['entries'](_0x28304d)){_0x41c0fc['push'](_0x5333b9+'\x20\x20'+_0x5c7f5a+':\x20'+_0x19b94f);}}else _0x41c0fc['push'](''+_0x5333b9+_0x516a1f+':\x20'+_0x28304d);}return _0x41c0fc['join']('\x0a');}
@@ -1 +1 @@
1
- (function(_0x2850d4,_0x366fee){const _0x30672f=_0x50e4,_0x160b54=_0x2850d4();while(!![]){try{const _0xf23f4e=-parseInt(_0x30672f(0x1ab))/0x1*(-parseInt(_0x30672f(0x1a8))/0x2)+parseInt(_0x30672f(0x1ae))/0x3*(parseInt(_0x30672f(0x1ac))/0x4)+parseInt(_0x30672f(0x1ad))/0x5+parseInt(_0x30672f(0x1a9))/0x6+-parseInt(_0x30672f(0x1a4))/0x7*(-parseInt(_0x30672f(0x1a6))/0x8)+-parseInt(_0x30672f(0x1a7))/0x9*(parseInt(_0x30672f(0x1a3))/0xa)+-parseInt(_0x30672f(0x1af))/0xb;if(_0xf23f4e===_0x366fee)break;else _0x160b54['push'](_0x160b54['shift']());}catch(_0x164728){_0x160b54['push'](_0x160b54['shift']());}}}(_0x3e84,0x457c6));import{readFileSync}from'fs';function _0x50e4(_0x2fc878,_0x15857b){_0x2fc878=_0x2fc878-0x1a2;const _0x3e849e=_0x3e84();let _0x50e4f2=_0x3e849e[_0x2fc878];return _0x50e4f2;}import{dirname,join}from'path';function _0x3e84(){const _0x54da2e=['8ixDYQy','297954jqnoli','2846EGSrGI','833106nZEhpQ','utf-8','226KPqogq','344WLmLGJ','327220VVUVgv','12231WJLbDI','9569714RYKQHI','qnvfB','50seIExi','3105221mFGjrV','ranger/SKILL.md'];_0x3e84=function(){return _0x54da2e;};return _0x3e84();}import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x4bc37f){const _0x402222=_0x50e4,_0x404757={'pOQzM':function(_0xf9a3f2,_0x259353,_0x10677f){return _0xf9a3f2(_0x259353,_0x10677f);},'qnvfB':function(_0x1341aa,_0x308e98,_0x2e258b){return _0x1341aa(_0x308e98,_0x2e258b);}},_0x2d81cb=join(__dirname,'..','..','skills'),_0x5cc8f0=_0x404757['pOQzM'](join,_0x2d81cb,_0x4bc37f);try{return _0x404757[_0x402222(0x1a2)](readFileSync,_0x5cc8f0,_0x402222(0x1aa));}catch{return'';}}export function getRangerSkillContent(){const _0x173ee5=_0x50e4;return readSkillContent(_0x173ee5(0x1a5));}
1
+ (function(_0x284a31,_0x452337){const _0x16cd77=_0x1e71,_0x76758f=_0x284a31();while(!![]){try{const _0x27693c=parseInt(_0x16cd77(0xd5))/0x1+parseInt(_0x16cd77(0xdc))/0x2+parseInt(_0x16cd77(0xdb))/0x3+-parseInt(_0x16cd77(0xd7))/0x4+-parseInt(_0x16cd77(0xda))/0x5+-parseInt(_0x16cd77(0xd6))/0x6*(-parseInt(_0x16cd77(0xdf))/0x7)+-parseInt(_0x16cd77(0xd9))/0x8*(-parseInt(_0x16cd77(0xde))/0x9);if(_0x27693c===_0x452337)break;else _0x76758f['push'](_0x76758f['shift']());}catch(_0x2d4bda){_0x76758f['push'](_0x76758f['shift']());}}}(_0xfe73,0xb23a6));function _0x1e71(_0x12842a,_0x1a8d18){_0x12842a=_0x12842a-0xd3;const _0xfe730f=_0xfe73();let _0x1e71e2=_0xfe730f[_0x12842a];return _0x1e71e2;}import{readFileSync}from'fs';function _0xfe73(){const _0x5c30e7=['5106300TKzTtn','ranger/SKILL.md','17912zUxcdz','1505265qNuIJf','485751ODlgOK','1221546WTyBNr','wXXiP','1647LENnjt','7zEZQpg','skills','oiDms','nxHOB','360558ophBbT','4587990ASPRNi'];_0xfe73=function(){return _0x5c30e7;};return _0xfe73();}import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x4ec1b5){const _0xbb25dc=_0x1e71,_0x3ec9e4={'wXXiP':function(_0x49d938,_0xb0f47a,_0x19c7a7,_0x219543,_0x12194b){return _0x49d938(_0xb0f47a,_0x19c7a7,_0x219543,_0x12194b);},'oiDms':_0xbb25dc(0xe0)},_0x5591d4=_0x3ec9e4[_0xbb25dc(0xdd)](join,__dirname,'..','..',_0x3ec9e4[_0xbb25dc(0xd3)]),_0x4cfb83=join(_0x5591d4,_0x4ec1b5);try{return readFileSync(_0x4cfb83,'utf-8');}catch{return'';}}export function getRangerSkillContent(){const _0x5c0492=_0x1e71,_0x33a132={'nxHOB':function(_0x26b0c,_0x5942b0){return _0x26b0c(_0x5942b0);}};return _0x33a132[_0x5c0492(0xd4)](readSkillContent,_0x5c0492(0xd8));}
@@ -1 +1 @@
1
- const _0xb2439f=_0x50ab;(function(_0x54a094,_0xd70955){const _0x45286f=_0x50ab,_0xde42b3=_0x54a094();while(!![]){try{const _0x53dd80=parseInt(_0x45286f(0xdf))/0x1+parseInt(_0x45286f(0xcb))/0x2*(-parseInt(_0x45286f(0xc6))/0x3)+-parseInt(_0x45286f(0xcf))/0x4*(parseInt(_0x45286f(0xca))/0x5)+parseInt(_0x45286f(0xd9))/0x6*(-parseInt(_0x45286f(0xd5))/0x7)+parseInt(_0x45286f(0xc7))/0x8*(-parseInt(_0x45286f(0xcc))/0x9)+-parseInt(_0x45286f(0xe7))/0xa*(-parseInt(_0x45286f(0xdc))/0xb)+parseInt(_0x45286f(0xc8))/0xc;if(_0x53dd80===_0xd70955)break;else _0xde42b3['push'](_0xde42b3['shift']());}catch(_0x50e939){_0xde42b3['push'](_0xde42b3['shift']());}}}(_0x2342,0x5a24a));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';function _0x2342(){const _0x5d9aea=['claude','XnNns','GgkbH','7kaLXkD','SKILL.md','vrszc','OwjDU','3222852BEikTw','length','.md','1066065JVIFOu','utf-8','mbefT','415674QKWzgc','\x20\x20Location:\x20','ranger','isDirectory','join','\x20\x20Skill\x20not\x20found:\x20','log','RTwLb','10VsdFHQ','nIgIj','GCXFY','MsFOe','warn','match','\x20\x20Installed\x20skill:\x20','51711UNIZmb','390568vwlmVv','24078216ngwXdA','bug-bash','5HbVkqg','34qhtere','117wAkzVf','\x20\x20Removed\x20deprecated\x20skill:\x20','dDxsO','2740148anKUeb','ahdzW','Jefvg'];_0x2342=function(){return _0x5d9aea;};return _0x2342();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function _0x50ab(_0x269a5d,_0x555822){_0x269a5d=_0x269a5d-0xc1;const _0x234215=_0x2342();let _0x50abde=_0x234215[_0x269a5d];return _0x50abde;}export const RANGER_MANAGED_SKILLS=[_0xb2439f(0xe1)];export const DEPRECATED_SKILLS=['e2e-test-recommender',_0xb2439f(0xc9),'feature-tracker'];export async function installSkill(_0x47fe9b,_0x4eb5dd={}){const _0x4c8758=_0xb2439f,_0x460630={'Zacca':'project','MsFOe':_0x4c8758(0xd2),'ahdzW':function(_0x275908,_0x154598,_0x164814){return _0x275908(_0x154598,_0x164814);},'smtza':function(_0x5cab30,_0x3f696f){return _0x5cab30(_0x3f696f);},'Jefvg':function(_0x207f24,_0x596520){return _0x207f24(_0x596520);},'dDxsO':_0x4c8758(0xd6),'PBTRx':function(_0x3de4d0,_0x2cc2dd){return _0x3de4d0===_0x2cc2dd;},'xFKLJ':function(_0x444529,_0x3d2562,_0x22071b){return _0x444529(_0x3d2562,_0x22071b);},'mbefT':function(_0x293a74,_0x1a0ff0,_0xd937ea){return _0x293a74(_0x1a0ff0,_0xd937ea);},'mBfpI':function(_0x43b223,_0x16ba88,_0x1a88d6){return _0x43b223(_0x16ba88,_0x1a88d6);},'XnNns':function(_0x21a67c,_0x3c1f2b,_0x1d42e5){return _0x21a67c(_0x3c1f2b,_0x1d42e5);},'GgkbH':'utf-8','vrszc':function(_0x5b1d64,_0x38f52a,_0x24d8e4){return _0x5b1d64(_0x38f52a,_0x24d8e4);},'GCXFY':function(_0x40b4a3,_0x40efdd){return _0x40b4a3>_0x40efdd;}},{level:level=_0x460630['Zacca'],cliVersion:_0x44e767,platform:platform=_0x460630[_0x4c8758(0xc2)]}=_0x4eb5dd,_0x3ed895=getSourceSkillsDir(),_0xccb5e9=join(_0x3ed895,_0x47fe9b),_0x553ad6=_0x460630[_0x4c8758(0xd0)](join,_0x3ed895,_0x47fe9b+_0x4c8758(0xdb)),_0xa86d8f=existsSync(_0xccb5e9)&&_0x460630['smtza'](statSync,_0xccb5e9)[_0x4c8758(0xe2)]()&&_0x460630[_0x4c8758(0xd1)](existsSync,join(_0xccb5e9,_0x460630[_0x4c8758(0xce)])),_0x14af9e=existsSync(_0x553ad6);if(!_0xa86d8f&&!_0x14af9e)return console[_0x4c8758(0xc3)](_0x4c8758(0xe4)+_0x47fe9b),![];const _0x2f4d38=_0x460630['PBTRx'](platform,'opencode')?getOpencodeSkillsDir(level):getSkillsDir(level),_0x5a5313=_0x460630['ahdzW'](join,_0x2f4d38,_0x47fe9b);await mkdir(_0x5a5313,{'recursive':!![]});let _0x4bab79,_0x53fbae=[];if(_0xa86d8f){const _0x1c07ad=await readdir(_0xccb5e9),_0x4651dd=_0x1c07ad['filter'](_0x5699a5=>_0x5699a5['endsWith']('.md'));for(const _0x7b900 of _0x4651dd){const _0x674454=_0x460630[_0x4c8758(0xd0)](join,_0xccb5e9,_0x7b900),_0x312a2c=_0x460630['xFKLJ'](join,_0x5a5313,_0x7b900);await copyFile(_0x674454,_0x312a2c),_0x53fbae['push'](_0x7b900);}_0x4bab79=await _0x460630[_0x4c8758(0xde)](readFile,_0x460630['mBfpI'](join,_0xccb5e9,_0x4c8758(0xd6)),_0x4c8758(0xdd));}else{_0x4bab79=await _0x460630[_0x4c8758(0xd3)](readFile,_0x553ad6,_0x460630[_0x4c8758(0xd4)]);const _0x28b9ee=_0x460630[_0x4c8758(0xd7)](join,_0x5a5313,_0x460630[_0x4c8758(0xce)]);await writeFile(_0x28b9ee,_0x4bab79,_0x460630['GgkbH']),_0x53fbae['push'](_0x4c8758(0xd6));}const {name:_0x4aa8d1}=_0x460630[_0x4c8758(0xd1)](parseFrontmatter,_0x4bab79);return console['log'](_0x4c8758(0xc5)+_0x4aa8d1),console[_0x4c8758(0xe5)](_0x4c8758(0xe0)+_0x5a5313),_0x460630[_0x4c8758(0xc1)](_0x53fbae[_0x4c8758(0xda)],0x1)&&console['log']('\x20\x20Files:\x20'+_0x53fbae[_0x4c8758(0xe3)](',\x20')),logLocalAgentInstallation(_0x47fe9b,{'skillDisplayName':_0x4aa8d1,'installLevel':level},_0x44e767)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x51bb61=_0xb2439f,_0x1632c4={'OwjDU':function(_0x5f3f45,_0x5c4c90,_0x150639,_0x2c8a3e,_0x41c8dd){return _0x5f3f45(_0x5c4c90,_0x150639,_0x2c8a3e,_0x41c8dd);},'eCuQb':function(_0xab3c8d,_0x14f90f){return _0xab3c8d(_0x14f90f);}},_0x2f09ef=[_0x1632c4[_0x51bb61(0xd8)](join,__dirname,'..','..','skills'),join(__dirname,'..','..','..','skills')];for(const _0x576c2e of _0x2f09ef){if(_0x1632c4['eCuQb'](existsSync,_0x576c2e))return _0x576c2e;}return _0x2f09ef[0x0];}function parseFrontmatter(_0x1c23ce){const _0x5eb176=_0xb2439f,_0x59e281={'PxajR':'Invalid\x20skill\x20frontmatter'},_0x148b2d=_0x1c23ce[_0x5eb176(0xc4)](/^---\n([\s\S]+?)\n---/);if(!_0x148b2d)throw new Error(_0x59e281['PxajR']);const _0x14edb0=_0x148b2d[0x1],_0x42c850=_0x14edb0[_0x5eb176(0xc4)](/name:\s*(.+)/),_0xeb1a0f=_0x14edb0[_0x5eb176(0xc4)](/description:\s*"?(.+?)"?\n/);return{'name':_0x42c850?.[0x1]['trim']()||'','description':_0xeb1a0f?.[0x1]['trim']()||''};}export async function removeSkill(_0xcbf980,_0x3eddc4){const _0x4fe69c=_0xb2439f,_0x2dd85f={'nIgIj':function(_0x2c39a9,_0xc2569c){return _0x2c39a9(_0xc2569c);},'RTwLb':function(_0x130221,_0x12bfb3,_0x4b8050){return _0x130221(_0x12bfb3,_0x4b8050);}},_0x5bbfb0=_0x2dd85f[_0x4fe69c(0xe8)](getSkillsDir,_0x3eddc4),_0x72f81b=join(_0x5bbfb0,_0xcbf980);if(!existsSync(_0x72f81b))return![];try{return await _0x2dd85f[_0x4fe69c(0xe6)](rm,_0x72f81b,{'recursive':!![]}),console[_0x4fe69c(0xe5)](_0x4fe69c(0xcd)+_0xcbf980),!![];}catch{return console['warn']('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0xcbf980),![];}}
1
+ const _0x539de8=_0x3a13;(function(_0x3cb74d,_0x3816f1){const _0x14966c=_0x3a13,_0x447293=_0x3cb74d();while(!![]){try{const _0x1f4798=-parseInt(_0x14966c(0xa1))/0x1+-parseInt(_0x14966c(0x7e))/0x2*(-parseInt(_0x14966c(0x80))/0x3)+parseInt(_0x14966c(0x8b))/0x4*(-parseInt(_0x14966c(0x8a))/0x5)+-parseInt(_0x14966c(0x95))/0x6+-parseInt(_0x14966c(0xa7))/0x7+parseInt(_0x14966c(0xa8))/0x8+parseInt(_0x14966c(0x93))/0x9*(parseInt(_0x14966c(0x97))/0xa);if(_0x1f4798===_0x3816f1)break;else _0x447293['push'](_0x447293['shift']());}catch(_0x107b4a){_0x447293['push'](_0x447293['shift']());}}}(_0x3b9e,0xb9c7f));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';function _0x3a13(_0x4390e5,_0x43861a){_0x4390e5=_0x4390e5-0x7c;const _0x3b9e77=_0x3b9e();let _0x3a13a3=_0x3b9e77[_0x4390e5];return _0x3a13a3;}function _0x3b9e(){const _0x321219=['815036RAxVdh','\x20\x20Files:\x20','Invalid\x20skill\x20frontmatter','push','ioojw','catch','7700882MWdXtv','4481984lLFrMr','trim','utf-8','10042rlflVd','match','201cnwIse','endsWith','nPHpC','scsbA','xSlFp','\x20\x20Installed\x20skill:\x20','skills','TDnIA','join','length','290WqiSTv','46240GNSlLr','ranger','\x20\x20Skill\x20not\x20found:\x20','reYzo','oEULj','opencode','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','RSAZQ','1932651FkeVyH','dHTVA','761532zfwKqy','e2e-test-recommender','120OuwRQP','.md','isDirectory','warn','SKILL.md','JGGck','log','\x20\x20Location:\x20','aECnC','NbooG'];_0x3b9e=function(){return _0x321219;};return _0x3b9e();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x539de8(0x8c)];export const DEPRECATED_SKILLS=[_0x539de8(0x96),'bug-bash','feature-tracker'];export async function installSkill(_0x2348c6,_0x5dbb0f={}){const _0x4ae759=_0x539de8,_0x2aed6d={'ioojw':'project','aECnC':'claude','scsbA':function(_0x48c166){return _0x48c166();},'xSlFp':function(_0x153933,_0x5eac52,_0x574bd7){return _0x153933(_0x5eac52,_0x574bd7);},'GdnKl':function(_0x35df4a,_0x21eccb,_0x385fe2){return _0x35df4a(_0x21eccb,_0x385fe2);},'HwKEy':function(_0x23f063,_0x558d2d){return _0x23f063(_0x558d2d);},'dHTVA':function(_0x454877,_0x3a7025){return _0x454877(_0x3a7025);},'rzmfy':function(_0x3f2d07,_0x155d97){return _0x3f2d07(_0x155d97);},'nPHpC':function(_0x4a368d,_0x478788,_0x51f7f1){return _0x4a368d(_0x478788,_0x51f7f1);},'QpHHN':function(_0x425ab9,_0x2b6f2a,_0x1ee429){return _0x425ab9(_0x2b6f2a,_0x1ee429);},'cNEAT':function(_0x173a73,_0x4aa6e4,_0x17633d){return _0x173a73(_0x4aa6e4,_0x17633d);},'cddLv':_0x4ae759(0x7d),'NbooG':function(_0x3491a7,_0x53c1ad){return _0x3491a7(_0x53c1ad);}},{level:level=_0x2aed6d[_0x4ae759(0xa5)],cliVersion:_0x3a6f58,platform:platform=_0x2aed6d[_0x4ae759(0x9f)]}=_0x5dbb0f,_0x308cdc=_0x2aed6d[_0x4ae759(0x83)](getSourceSkillsDir),_0x138e2f=_0x2aed6d[_0x4ae759(0x84)](join,_0x308cdc,_0x2348c6),_0x158889=_0x2aed6d['GdnKl'](join,_0x308cdc,_0x2348c6+_0x4ae759(0x98)),_0x57867d=_0x2aed6d['HwKEy'](existsSync,_0x138e2f)&&statSync(_0x138e2f)[_0x4ae759(0x99)]()&&_0x2aed6d[_0x4ae759(0x94)](existsSync,join(_0x138e2f,_0x4ae759(0x9b))),_0x1c97ef=_0x2aed6d['HwKEy'](existsSync,_0x158889);if(!_0x57867d&&!_0x1c97ef)return console[_0x4ae759(0x9a)](_0x4ae759(0x8d)+_0x2348c6),![];const _0x50cf47=platform===_0x4ae759(0x90)?_0x2aed6d[_0x4ae759(0x94)](getOpencodeSkillsDir,level):_0x2aed6d['rzmfy'](getSkillsDir,level),_0x4605b4=_0x2aed6d[_0x4ae759(0x84)](join,_0x50cf47,_0x2348c6);await mkdir(_0x4605b4,{'recursive':!![]});let _0x5e9246,_0x5e48fc=[];if(_0x57867d){const _0x2d0c7f=await readdir(_0x138e2f),_0xfea655=_0x2d0c7f['filter'](_0x49146b=>_0x49146b[_0x4ae759(0x81)](_0x4ae759(0x98)));for(const _0x34333f of _0xfea655){const _0x54de3c=_0x2aed6d[_0x4ae759(0x84)](join,_0x138e2f,_0x34333f),_0x1bf4e0=_0x2aed6d[_0x4ae759(0x82)](join,_0x4605b4,_0x34333f);await _0x2aed6d['QpHHN'](copyFile,_0x54de3c,_0x1bf4e0),_0x5e48fc[_0x4ae759(0xa4)](_0x34333f);}_0x5e9246=await _0x2aed6d['cNEAT'](readFile,join(_0x138e2f,_0x4ae759(0x9b)),_0x4ae759(0x7d));}else{_0x5e9246=await readFile(_0x158889,_0x2aed6d['cddLv']);const _0x39e6c0=join(_0x4605b4,'SKILL.md');await writeFile(_0x39e6c0,_0x5e9246,_0x4ae759(0x7d)),_0x5e48fc['push']('SKILL.md');}const {name:_0x494546}=_0x2aed6d[_0x4ae759(0xa0)](parseFrontmatter,_0x5e9246);return console[_0x4ae759(0x9d)](_0x4ae759(0x85)+_0x494546),console['log'](_0x4ae759(0x9e)+_0x4605b4),_0x5e48fc[_0x4ae759(0x89)]>0x1&&console[_0x4ae759(0x9d)](_0x4ae759(0xa2)+_0x5e48fc[_0x4ae759(0x88)](',\x20')),logLocalAgentInstallation(_0x2348c6,{'skillDisplayName':_0x494546,'installLevel':level},_0x3a6f58)[_0x4ae759(0xa6)](()=>{}),!![];}function getSourceSkillsDir(){const _0x339dc0=_0x539de8,_0x2dc4c6={'JGGck':function(_0x5d9567,_0x1f94cc,_0x2817ea,_0x4e42b7,_0x120ed5){return _0x5d9567(_0x1f94cc,_0x2817ea,_0x4e42b7,_0x120ed5);},'TDnIA':_0x339dc0(0x86),'oEULj':function(_0x58251d,_0x38cc49,_0x40459e,_0x5d7e68,_0x30f9ab,_0x5f405c){return _0x58251d(_0x38cc49,_0x40459e,_0x5d7e68,_0x30f9ab,_0x5f405c);},'RSAZQ':function(_0x217fd0,_0x54bf9c){return _0x217fd0(_0x54bf9c);}},_0x23a770=[_0x2dc4c6[_0x339dc0(0x9c)](join,__dirname,'..','..',_0x2dc4c6['TDnIA']),_0x2dc4c6[_0x339dc0(0x8f)](join,__dirname,'..','..','..',_0x2dc4c6[_0x339dc0(0x87)])];for(const _0x453f05 of _0x23a770){if(_0x2dc4c6[_0x339dc0(0x92)](existsSync,_0x453f05))return _0x453f05;}return _0x23a770[0x0];}function parseFrontmatter(_0x50d9ce){const _0xa75297=_0x539de8,_0x5778fd=_0x50d9ce['match'](/^---\n([\s\S]+?)\n---/);if(!_0x5778fd)throw new Error(_0xa75297(0xa3));const _0x4147b6=_0x5778fd[0x1],_0x259bf7=_0x4147b6['match'](/name:\s*(.+)/),_0x3ca6fb=_0x4147b6[_0xa75297(0x7f)](/description:\s*"?(.+?)"?\n/);return{'name':_0x259bf7?.[0x1][_0xa75297(0x7c)]()||'','description':_0x3ca6fb?.[0x1][_0xa75297(0x7c)]()||''};}export async function removeSkill(_0x52ab72,_0x3125ac){const _0x308ab6=_0x539de8,_0x5a92dc={'reYzo':function(_0x468fd9,_0x448707,_0x5ce294){return _0x468fd9(_0x448707,_0x5ce294);}},_0x31eb02=getSkillsDir(_0x3125ac),_0x25a840=join(_0x31eb02,_0x52ab72);if(!existsSync(_0x25a840))return![];try{return await _0x5a92dc[_0x308ab6(0x8e)](rm,_0x25a840,{'recursive':!![]}),console[_0x308ab6(0x9d)]('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x52ab72),!![];}catch{return console['warn'](_0x308ab6(0x91)+_0x52ab72),![];}}
@@ -1 +1 @@
1
- const _0xc9f34b=_0x2d2b;(function(_0x11dfbe,_0x153c40){const _0x2ec4a8=_0x2d2b,_0x36f603=_0x11dfbe();while(!![]){try{const _0x48d87b=-parseInt(_0x2ec4a8(0x11d))/0x1*(parseInt(_0x2ec4a8(0x114))/0x2)+-parseInt(_0x2ec4a8(0x126))/0x3+-parseInt(_0x2ec4a8(0x136))/0x4*(-parseInt(_0x2ec4a8(0x13a))/0x5)+-parseInt(_0x2ec4a8(0x133))/0x6+-parseInt(_0x2ec4a8(0x132))/0x7+-parseInt(_0x2ec4a8(0xf9))/0x8*(parseInt(_0x2ec4a8(0xfb))/0x9)+parseInt(_0x2ec4a8(0x122))/0xa;if(_0x48d87b===_0x153c40)break;else _0x36f603['push'](_0x36f603['shift']());}catch(_0x551cef){_0x36f603['push'](_0x36f603['shift']());}}}(_0x2461,0xaec05));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(_0x2aaca2,_0xbc9e9){const _0x37e7d6=_0x2d2b,_0x46fadb={'PzSsg':function(_0x16ea00,_0x51b990){return _0x16ea00>=_0x51b990;},'pYWZo':function(_0xef232d,_0x5774e1){return _0xef232d<=_0x5774e1;},'ZYABY':function(_0x329cbe,_0x463c8c){return _0x329cbe&_0x463c8c;},'ZKBcO':function(_0x316565,_0x344aca){return _0x316565<_0x344aca;},'Nnbaf':function(_0x2a4d22,_0x472856){return _0x2a4d22*_0x472856;}};if(_0x46fadb['PzSsg'](_0xbc9e9,_0x2aaca2[_0x37e7d6(0x121)]))return[0x0,0x0];const _0x4b8c2c=_0x2aaca2[_0xbc9e9];let _0x879d54=0x1,_0x51bc58=0x80;while(_0x46fadb[_0x37e7d6(0x129)](_0x879d54,0x8)&&!_0x46fadb[_0x37e7d6(0x128)](_0x4b8c2c,_0x51bc58)){_0x879d54++,_0x51bc58>>=0x1;}if(_0xbc9e9+_0x879d54>_0x2aaca2[_0x37e7d6(0x121)])return[0x0,0x0];let _0x5e0d81=_0x46fadb[_0x37e7d6(0x128)](_0x4b8c2c,_0x51bc58-0x1);for(let _0x49f21a=0x1;_0x46fadb[_0x37e7d6(0x100)](_0x49f21a,_0x879d54);_0x49f21a++){_0x5e0d81=_0x46fadb['Nnbaf'](_0x5e0d81,0x100)+_0x2aaca2[_0xbc9e9+_0x49f21a];}return[_0x5e0d81,_0x879d54];}function readId(_0x5b5450,_0x519be5){const _0x448da2=_0x2d2b,_0x27c256={'xkuZK':function(_0x446701,_0x5a808c){return _0x446701>=_0x5a808c;},'rpdaq':function(_0x4dc2cc,_0x1c4fa1){return _0x4dc2cc>=_0x1c4fa1;},'JbiVC':function(_0x4a221c,_0x51f155){return _0x4a221c<_0x51f155;},'kanWx':function(_0x4da1ca,_0x4e9914){return _0x4da1ca+_0x4e9914;},'tOppE':function(_0x30d566,_0x34987a){return _0x30d566*_0x34987a;}};if(_0x27c256['xkuZK'](_0x519be5,_0x5b5450[_0x448da2(0x121)]))return[0x0,0x0];const _0x432026=_0x5b5450[_0x519be5];let _0x574e04;if(_0x27c256['rpdaq'](_0x432026,0x80))_0x574e04=0x1;else{if(_0x432026>=0x40)_0x574e04=0x2;else{if(_0x432026>=0x20)_0x574e04=0x3;else{if(_0x27c256[_0x448da2(0x125)](_0x432026,0x10))_0x574e04=0x4;else return[_0x432026,0x1];}}}if(_0x519be5+_0x574e04>_0x5b5450['length'])return[0x0,0x0];let _0x165931=0x0;for(let _0x410f6a=0x0;_0x27c256['JbiVC'](_0x410f6a,_0x574e04);_0x410f6a++){_0x165931=_0x27c256[_0x448da2(0x123)](_0x27c256[_0x448da2(0x103)](_0x165931,0x100),_0x5b5450[_0x27c256[_0x448da2(0x123)](_0x519be5,_0x410f6a)]);}return[_0x165931,_0x574e04];}function readUint(_0x30f09f,_0x57007d,_0x5bcb04){const _0x1f209c=_0x2d2b,_0x23f9f9={'xCnON':function(_0x2538de,_0xb145ae){return _0x2538de<_0xb145ae;},'RYrsi':function(_0xc514ae,_0x1b3ca4){return _0xc514ae+_0x1b3ca4;},'fXrNp':function(_0x316e29,_0x10a86c){return _0x316e29*_0x10a86c;}};let _0x1464e5=0x0;for(let _0x44cdc7=0x0;_0x23f9f9[_0x1f209c(0x111)](_0x44cdc7,_0x5bcb04);_0x44cdc7++){_0x1464e5=_0x23f9f9['RYrsi'](_0x23f9f9['fXrNp'](_0x1464e5,0x100),_0x30f09f[_0x57007d+_0x44cdc7]);}return _0x1464e5;}function isUnknownSize(_0x1a2be7,_0x234fef){const _0x300c20=_0x2d2b,_0x458419={'rsdKr':function(_0x3c969b,_0xe21429){return _0x3c969b===_0xe21429;}};return _0x458419[_0x300c20(0x127)](_0x1a2be7,Math['pow'](0x2,0x7*_0x234fef)-0x1);}function writeVint(_0x3a407f,_0x50180f){const _0x1ad3b4=_0x2d2b,_0x190f2d={'JUokm':function(_0x58beb6,_0xbe48cd){return _0x58beb6||_0xbe48cd;},'bqekC':function(_0x1df9ec,_0x2dd5b3){return _0x1df9ec-_0x2dd5b3;},'gagLI':function(_0x56ea04,_0x22c058){return _0x56ea04>=_0x22c058;},'LmBXj':function(_0x1f7678,_0x5963ee){return _0x1f7678<<_0x5963ee;}};let _0x398ee5=_0x190f2d[_0x1ad3b4(0x12f)](_0x50180f,0x1);while(_0x190f2d['bqekC'](Math[_0x1ad3b4(0x138)](0x2,0x7*_0x398ee5),0x2)<_0x3a407f)_0x398ee5++;const _0x116b1c=Buffer['alloc'](_0x398ee5);for(let _0x342e80=_0x398ee5-0x1;_0x190f2d[_0x1ad3b4(0x110)](_0x342e80,0x0);_0x342e80--){_0x116b1c[_0x342e80]=_0x3a407f&0xff,_0x3a407f=Math['floor'](_0x3a407f/0x100);}return _0x116b1c[0x0]|=_0x190f2d[_0x1ad3b4(0x10f)](0x1,0x8-_0x398ee5),_0x116b1c;}function _0x2d2b(_0x107e59,_0xfba28e){_0x107e59=_0x107e59-0xf4;const _0x2461b8=_0x2461();let _0x2d2be0=_0x2461b8[_0x107e59];return _0x2d2be0;}function writeUint(_0x413009,_0xd0bec7){const _0x3e3e1d=_0x2d2b,_0x10f27e={'ARdKe':function(_0x5e8e33,_0x37bc44){return _0x5e8e33-_0x37bc44;},'wIjBN':function(_0x6c3fc3,_0x3aebfb){return _0x6c3fc3&_0x3aebfb;},'Dnoey':function(_0x5ab0ed,_0x4cd2ba){return _0x5ab0ed/_0x4cd2ba;}},_0x4add39=Buffer[_0x3e3e1d(0xf4)](_0xd0bec7);for(let _0x447796=_0x10f27e[_0x3e3e1d(0x117)](_0xd0bec7,0x1);_0x447796>=0x0;_0x447796--){_0x4add39[_0x447796]=_0x10f27e[_0x3e3e1d(0x131)](_0x413009,0xff),_0x413009=Math['floor'](_0x10f27e[_0x3e3e1d(0x13c)](_0x413009,0x100));}return _0x4add39;}function writeUnknownSizeVint(_0x54553f){const _0x42da50=_0x2d2b,_0x1a049d={'kkZCb':function(_0x47ddf7,_0x4b3492){return _0x47ddf7-_0x4b3492;}},_0x4be212=Buffer['alloc'](_0x54553f,0xff);return _0x4be212[0x0]=0xff>>_0x1a049d[_0x42da50(0x108)](_0x54553f,0x1),_0x4be212;}function uintSize(_0x5eb48b){const _0x106bbb=_0x2d2b,_0x2ff2a9={'BvQUL':function(_0x560a39,_0x369d11){return _0x560a39/_0x369d11;}};if(_0x5eb48b===0x0)return 0x1;let _0x445b4c=0x0,_0x1f082a=_0x5eb48b;while(_0x1f082a>0x0){_0x445b4c++,_0x1f082a=Math[_0x106bbb(0x130)](_0x2ff2a9[_0x106bbb(0x13b)](_0x1f082a,0x100));}return _0x445b4c;}function findTimestampScale(_0x587cbd,_0x235212){const _0x40baf9=_0x2d2b,_0xc4c0bf={'rhDbF':function(_0x26613b,_0x4c3960){return _0x26613b+_0x4c3960;},'SBypa':function(_0xc5d343,_0x2fcafc,_0x585719){return _0xc5d343(_0x2fcafc,_0x585719);},'juFCS':function(_0x3cb205,_0x2ee0a1){return _0x3cb205===_0x2ee0a1;},'xDejP':function(_0x189d6b,_0x3d18a6){return _0x189d6b===_0x3d18a6;},'KuFoi':function(_0x223c5c,_0x27c635,_0x412510){return _0x223c5c(_0x27c635,_0x412510);},'MKEZf':function(_0xceabd7,_0x1bb5f9){return _0xceabd7+_0x1bb5f9;}};let _0x278c9a=_0x235212;const _0x278eaa=Math[_0x40baf9(0x120)](_0x587cbd['length'],_0xc4c0bf[_0x40baf9(0x112)](_0x235212,0x2710));while(_0x278c9a<_0x278eaa){const [_0x4dd543,_0x52d955]=readId(_0x587cbd,_0x278c9a),[_0x431f21,_0x13c4f1]=readVint(_0x587cbd,_0x278c9a+_0x52d955);if(_0x4dd543===ID_INFO){let _0x3d3b8c=_0xc4c0bf['rhDbF'](_0x278c9a+_0x52d955,_0x13c4f1);const _0xa05903=_0xc4c0bf['rhDbF'](_0x3d3b8c,_0x431f21);while(_0x3d3b8c<_0xa05903){const [_0x127470,_0x4b84a4]=readId(_0x587cbd,_0x3d3b8c),[_0x44af3c,_0x1521c1]=_0xc4c0bf['SBypa'](readVint,_0x587cbd,_0x3d3b8c+_0x4b84a4);if(_0xc4c0bf['juFCS'](_0x127470,ID_TIMESTAMP_SCALE))return readUint(_0x587cbd,_0x3d3b8c+_0x4b84a4+_0x1521c1,_0x44af3c);_0x3d3b8c+=_0xc4c0bf[_0x40baf9(0x112)](_0x4b84a4,_0x1521c1)+_0x44af3c;}break;}if(_0xc4c0bf['xDejP'](_0x4dd543,ID_CLUSTER))break;if(_0xc4c0bf['KuFoi'](isUnknownSize,_0x431f21,_0x13c4f1))break;_0x278c9a+=_0xc4c0bf['MKEZf'](_0x52d955,_0x13c4f1)+_0x431f21;}return 0xf4240;}function findFirstClusterOffset(_0xa62d3c,_0x84d0c2){const _0x3eb79e=_0x2d2b,_0x3c007b={'zdfDM':function(_0x4698a7,_0x51ecba,_0x3a44d0){return _0x4698a7(_0x51ecba,_0x3a44d0);},'temhA':function(_0x2adddb,_0x346a9f){return _0x2adddb===_0x346a9f;},'epAGu':function(_0x350662,_0x3278f1){return _0x350662+_0x3278f1;},'YJnNq':function(_0x59e01d,_0x48b24c){return _0x59e01d+_0x48b24c;},'zwYsp':function(_0x50db3d,_0x2ec348){return _0x50db3d+_0x2ec348;}};let _0x5bf762=_0x84d0c2;while(_0x5bf762<_0xa62d3c[_0x3eb79e(0x121)]){const [_0x207c3f,_0x44fa9b]=_0x3c007b['zdfDM'](readId,_0xa62d3c,_0x5bf762);if(_0x3c007b['temhA'](_0x207c3f,ID_CLUSTER))return _0x5bf762;const [_0x337711,_0x39479b]=readVint(_0xa62d3c,_0x3c007b[_0x3eb79e(0x10b)](_0x5bf762,_0x44fa9b));if(isUnknownSize(_0x337711,_0x39479b))return _0x5bf762;_0x5bf762+=_0x3c007b['YJnNq'](_0x3c007b['zwYsp'](_0x44fa9b,_0x39479b),_0x337711);}return _0xa62d3c[_0x3eb79e(0x121)];}function _0x2461(){const _0x50274c=['xCnON','rhDbF','BDdtg','12458zxGwwD','sAfiW','ePPFn','ARdKe','timestamp','nQSto','Ibgnk','IqayQ','from','147mTJxGm','maxTimestampTicks','cvHho','min','length','38537070cziKbH','kanWx','McesS','xkuZK','2666934YdWpKk','rsdKr','ZYABY','pYWZo','concat','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','wfgbf','ltByF','ovpvi','JUokm','floor','wIjBN','9996462fKsOdw','456264DtLPoE','COxIQ','push','4JQOAJe','\x20files\x20->\x20','pow','argv','5793415SUUqtB','BvQUL','Dnoey','alloc','ffrpX','pNyrR','ImgiZ','BUREW','878096gFouxQ','mJQGZ','81tvZaLM','GrsQz','log','twtHl','cprxn','ZKBcO','BHHOy','YQbdw','tOppE','endsWith','header','hWGCN','error','kkZCb','QBBNm','exit','epAGu','max','jRkDT','slice','LmBXj','gagLI'];_0x2461=function(){return _0x50274c;};return _0x2461();}function findClusterEnd(_0x48eff3,_0x402bd7,_0x37644b,_0x1bd57d){const _0x920c9=_0x2d2b,_0x57eb87={'ZeFlo':function(_0x53e7b8,_0x32c72c){return _0x53e7b8+_0x32c72c;},'sAfiW':function(_0x5bbe2e,_0x473a4c){return _0x5bbe2e<_0x473a4c;},'ovpvi':function(_0x52cbb6,_0x469e2a){return _0x52cbb6-_0x469e2a;},'ePPFn':function(_0xa4e8a7,_0x12af1c,_0x33403d){return _0xa4e8a7(_0x12af1c,_0x33403d);}};if(!isUnknownSize(_0x37644b,_0x1bd57d))return _0x57eb87['ZeFlo'](_0x402bd7,_0x37644b);const _0x47210c=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x3c36c2=_0x402bd7;while(_0x57eb87[_0x920c9(0x115)](_0x3c36c2,_0x57eb87[_0x920c9(0x12e)](_0x48eff3[_0x920c9(0x121)],0x4))){const [_0x175c71,_0x5c7285]=readId(_0x48eff3,_0x3c36c2);if(_0x47210c['has'](_0x175c71))return _0x3c36c2;const [_0x5b1668,_0x58c77a]=readVint(_0x48eff3,_0x3c36c2+_0x5c7285);if(_0x57eb87[_0x920c9(0x116)](isUnknownSize,_0x5b1668,_0x58c77a))return _0x48eff3[_0x920c9(0x121)];_0x3c36c2+=_0x57eb87['ZeFlo'](_0x5c7285+_0x58c77a,_0x5b1668);}return _0x48eff3[_0x920c9(0x121)];}function extractClusters(_0x42f8f8,_0x62e741){const _0x540c7a=_0x2d2b,_0x17ae0b={'WlRPk':function(_0x33d79d,_0x1ddf3b,_0x5d97e6){return _0x33d79d(_0x1ddf3b,_0x5d97e6);},'ltByF':function(_0x958ceb,_0x24a58e){return _0x958ceb+_0x24a58e;},'BHHOy':function(_0xbad635,_0x3801d1,_0x435fe1){return _0xbad635(_0x3801d1,_0x435fe1);},'yupTG':function(_0x127f41,_0x1180a6,_0x4e31e9){return _0x127f41(_0x1180a6,_0x4e31e9);},'ruYTV':function(_0x503c67,_0x3188b4){return _0x503c67<_0x3188b4;},'GrsQz':function(_0x4eadfd,_0x5b03d1){return _0x4eadfd===_0x5b03d1;},'cvHho':function(_0x297856,_0xcdd4c8){return _0x297856+_0xcdd4c8;},'jRkDT':function(_0x17626f,_0xc9d7a0,_0x5b0b23){return _0x17626f(_0xc9d7a0,_0x5b0b23);},'CacVs':function(_0x39e687,_0x49e0a6,_0x6e1fc9){return _0x39e687(_0x49e0a6,_0x6e1fc9);},'AfBpJ':function(_0x4d13f0,_0x26f24f){return _0x4d13f0+_0x26f24f;}},_0x2cfcb3=[],_0x550205=Buffer[_0x540c7a(0x11c)]([0x1f,0x43,0xb6,0x75]);let _0x41bd93=0x0;while(_0x41bd93<_0x42f8f8['length']){const _0xaeda63=_0x42f8f8['indexOf'](_0x550205,_0x41bd93);if(_0xaeda63===-0x1)break;const [_0x46f222,_0x167274]=_0x17ae0b['WlRPk'](readId,_0x42f8f8,_0xaeda63);if(_0x46f222!==ID_CLUSTER){_0x41bd93=_0x17ae0b[_0x540c7a(0x12d)](_0xaeda63,0x1);continue;}const [_0x3eecbf,_0x27ab3e]=_0x17ae0b[_0x540c7a(0x101)](readVint,_0x42f8f8,_0xaeda63+_0x167274),_0x32990a=_0x17ae0b[_0x540c7a(0x12d)](_0xaeda63+_0x167274,_0x27ab3e),_0x379ce2=findClusterEnd(_0x42f8f8,_0x32990a,_0x3eecbf,_0x27ab3e);let _0x55b9cb=_0x32990a,_0x3bd8b1=0x0,_0x5cf7e3=0x2,_0x2d3c9f=![],_0x2a0bba=Buffer['alloc'](0x0),_0x4f1cdb=Buffer['alloc'](0x0);while(_0x55b9cb<_0x379ce2){const [_0x4b832e,_0x8effc2]=readId(_0x42f8f8,_0x55b9cb),[_0x524a73,_0x5aa855]=readVint(_0x42f8f8,_0x17ae0b[_0x540c7a(0x12d)](_0x55b9cb,_0x8effc2));if(_0x4b832e===ID_TIMESTAMP){_0x3bd8b1=readUint(_0x42f8f8,_0x55b9cb+_0x8effc2+_0x5aa855,_0x524a73),_0x5cf7e3=_0x524a73,_0x2d3c9f=!![],_0x2a0bba=_0x42f8f8[_0x540c7a(0x10e)](_0x32990a,_0x55b9cb);const _0x147973=_0x55b9cb+_0x8effc2+_0x5aa855+_0x524a73;_0x4f1cdb=_0x42f8f8['slice'](_0x147973,_0x379ce2);break;}if(_0x4b832e===ID_CLUSTER)break;if(_0x17ae0b['yupTG'](isUnknownSize,_0x524a73,_0x5aa855))break;_0x55b9cb+=_0x17ae0b[_0x540c7a(0x12d)](_0x8effc2,_0x5aa855)+_0x524a73;}!_0x2d3c9f&&(_0x4f1cdb=_0x42f8f8['slice'](_0x32990a,_0x379ce2));let _0x1da87d=_0x3bd8b1;_0x55b9cb=_0x32990a;while(_0x17ae0b['ruYTV'](_0x55b9cb,_0x379ce2)){const [_0x12da3a,_0x4216ce]=readId(_0x42f8f8,_0x55b9cb),[_0xf1ec30,_0x420dd9]=readVint(_0x42f8f8,_0x17ae0b[_0x540c7a(0x12d)](_0x55b9cb,_0x4216ce));if(_0x17ae0b[_0x540c7a(0xfc)](_0x12da3a,ID_SIMPLE_BLOCK)&&_0xf1ec30>=0x4){const _0x184e50=_0x17ae0b[_0x540c7a(0x11f)](_0x55b9cb+_0x4216ce,_0x420dd9),[,_0x5999ae]=_0x17ae0b[_0x540c7a(0x10d)](readVint,_0x42f8f8,_0x184e50),_0x43df7f=_0x42f8f8['readInt16BE'](_0x17ae0b['cvHho'](_0x184e50,_0x5999ae)),_0x342bbb=_0x3bd8b1+_0x43df7f;if(_0x342bbb>_0x1da87d)_0x1da87d=_0x342bbb;}if(_0x17ae0b[_0x540c7a(0xfc)](_0x12da3a,ID_CLUSTER))break;if(_0x17ae0b['CacVs'](isUnknownSize,_0xf1ec30,_0x420dd9))break;_0x55b9cb+=_0x17ae0b['AfBpJ'](_0x4216ce+_0x420dd9,_0xf1ec30);}_0x2cfcb3['push']({'timestamp':_0x3bd8b1,'maxTicks':_0x1da87d,'bodyBeforeTimestamp':_0x2a0bba,'bodyAfterTimestamp':_0x4f1cdb,'timestampElementSize':_0x5cf7e3}),_0x41bd93=_0x379ce2;}return _0x2cfcb3;}function parseWebm(_0x1b240d){const _0x219c2a=_0x2d2b,_0x1e0ca3={'twtHl':function(_0x20d74e,_0x1fdd14,_0x458620){return _0x20d74e(_0x1fdd14,_0x458620);},'nQSto':function(_0x50bec6,_0x2ecf76,_0x117e1a){return _0x50bec6(_0x2ecf76,_0x117e1a);},'hWGCN':function(_0x5ead86,_0x18022a){return _0x5ead86!==_0x18022a;},'YQbdw':function(_0x4fa1bd,_0x1fb60b){return _0x4fa1bd+_0x1fb60b;}};let _0x3e9419=0x0;const [,_0x447d71]=_0x1e0ca3[_0x219c2a(0xfe)](readId,_0x1b240d,_0x3e9419),[_0x7509c2,_0x52a53c]=_0x1e0ca3[_0x219c2a(0x119)](readVint,_0x1b240d,_0x3e9419+_0x447d71);_0x3e9419+=_0x447d71+_0x52a53c+_0x7509c2;const [_0x736960,_0x5e578f]=readId(_0x1b240d,_0x3e9419);if(_0x1e0ca3[_0x219c2a(0x106)](_0x736960,ID_SEGMENT))return null;const [,_0x1c60f6]=readVint(_0x1b240d,_0x3e9419+_0x5e578f),_0xb67732=_0x1e0ca3[_0x219c2a(0x102)](_0x3e9419+_0x5e578f,_0x1c60f6),_0x2666d3=_0x1e0ca3[_0x219c2a(0x119)](findTimestampScale,_0x1b240d,_0xb67732),_0x586d67=findFirstClusterOffset(_0x1b240d,_0xb67732),_0x187eaa=_0x1b240d[_0x219c2a(0x10e)](0x0,_0x586d67),_0x321336=_0x1e0ca3[_0x219c2a(0xfe)](extractClusters,_0x1b240d,_0x2666d3);let _0x155ea7=0x0;for(const _0x2d6d56 of _0x321336){if(_0x2d6d56['maxTicks']>_0x155ea7)_0x155ea7=_0x2d6d56['maxTicks'];}return{'header':_0x187eaa,'clusters':_0x321336,'timestampScale':_0x2666d3,'maxTimestampTicks':_0x155ea7};}function buildCluster(_0x30bb7b,_0x2f9651,_0x1a5d31){const _0x58837c=_0x2d2b,_0x31c522={'pNyrR':function(_0x3225f4,_0x56956b,_0x4b6645){return _0x3225f4(_0x56956b,_0x4b6645);}},_0x7e1135=Buffer['from']([0x1f,0x43,0xb6,0x75]),_0x4e6e5f=Math[_0x58837c(0x10c)](0x4,uintSize(_0x30bb7b)),_0x369550=Buffer[_0x58837c(0x12a)]([Buffer[_0x58837c(0x11c)]([ID_TIMESTAMP]),writeVint(_0x4e6e5f),_0x31c522[_0x58837c(0xf6)](writeUint,_0x30bb7b,_0x4e6e5f)]),_0x4d8ac9=Buffer['concat']([_0x2f9651,_0x369550,_0x1a5d31]),_0x402b93=writeVint(_0x4d8ac9['length']);return Buffer['concat']([_0x7e1135,_0x402b93,_0x4d8ac9]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x1effb9){const _0xba436a=_0x2d2b,_0x36f923={'BUREW':function(_0x1713cc,_0x4b3bcb,_0x3da474){return _0x1713cc(_0x4b3bcb,_0x3da474);},'cprxn':function(_0x7b508a,_0x3f173f){return _0x7b508a+_0x3f173f;},'Ibgnk':function(_0x5c3870,_0x52a796){return _0x5c3870+_0x52a796;},'zMuTj':function(_0x11b541,_0x47150b){return _0x11b541(_0x47150b);},'vJxIV':function(_0x35635d,_0x5f0ab7){return _0x35635d+_0x5f0ab7;},'McesS':function(_0x2af035,_0x3a22a2){return _0x2af035+_0x3a22a2;},'wfgbf':function(_0x42a0af,_0x99ed3,_0x2e1966){return _0x42a0af(_0x99ed3,_0x2e1966);},'IqayQ':function(_0x25a095,_0x15f165,_0x597d49){return _0x25a095(_0x15f165,_0x597d49);},'eEnAW':function(_0x4cc307,_0x4e76fe){return _0x4cc307+_0x4e76fe;},'BDdtg':function(_0x4a4357,_0x8ef444){return _0x4a4357+_0x8ef444;}},_0x787df2=Buffer['from'](_0x1effb9);let _0x13dac3=0x0;const [,_0x3f16ee]=readId(_0x787df2,_0x13dac3),[_0x4c27a9,_0x52d807]=_0x36f923[_0xba436a(0xf8)](readVint,_0x787df2,_0x13dac3+_0x3f16ee),_0x304f01=_0x36f923[_0xba436a(0xff)](_0x13dac3+_0x3f16ee+_0x52d807,_0x4c27a9),[,_0x28437d]=_0x36f923['BUREW'](readId,_0x787df2,_0x304f01),[,_0xad188e]=readVint(_0x787df2,_0x36f923[_0xba436a(0x11a)](_0x304f01,_0x28437d)),_0x3f71b2=_0x36f923['cprxn'](_0x36f923[_0xba436a(0x11a)](_0x304f01,_0x28437d),_0xad188e),_0x5f2cb7=_0x36f923['zMuTj'](writeUnknownSizeVint,_0xad188e);_0x5f2cb7['copy'](_0x787df2,_0x36f923['vJxIV'](_0x304f01,_0x28437d));let _0x3a9698=_0x3f71b2;const _0x32bbdb=Math[_0xba436a(0x120)](_0x787df2[_0xba436a(0x121)],_0x36f923['McesS'](_0x3f71b2,0x2710));while(_0x3a9698<_0x32bbdb){const [_0x28c2f1,_0x1a23c7]=readId(_0x787df2,_0x3a9698),[_0x563d36,_0x40d026]=_0x36f923[_0xba436a(0x12c)](readVint,_0x787df2,_0x3a9698+_0x1a23c7);if(_0x28c2f1===ID_CLUSTER)break;if(isUnknownSize(_0x563d36,_0x40d026))break;if(_0x28c2f1===ID_INFO){const _0x2b71d7=_0x3a9698+_0x1a23c7+_0x40d026,_0x570a04=_0x2b71d7+_0x563d36,_0x27918b=[];let _0x19bf2d=_0x2b71d7;while(_0x19bf2d<_0x570a04){const [_0x2ce428,_0x4af517]=_0x36f923[_0xba436a(0x11b)](readId,_0x787df2,_0x19bf2d),[_0x306d94,_0x45e3db]=_0x36f923['BUREW'](readVint,_0x787df2,_0x36f923[_0xba436a(0xff)](_0x19bf2d,_0x4af517)),_0x40a23d=_0x4af517+_0x45e3db+_0x306d94;_0x2ce428!==ID_DURATION&&_0x27918b['push'](_0x787df2['slice'](_0x19bf2d,_0x36f923['eEnAW'](_0x19bf2d,_0x40a23d))),_0x19bf2d+=_0x40a23d;}const _0x5a448b=Buffer['concat'](_0x27918b),_0x14e051=Buffer[_0xba436a(0x12a)]([_0x787df2['slice'](_0x3a9698,_0x36f923['vJxIV'](_0x3a9698,_0x1a23c7)),writeVint(_0x5a448b['length'],_0x40d026)]);return Buffer['concat']([_0x787df2['slice'](0x0,_0x3a9698),_0x14e051,_0x5a448b,_0x787df2[_0xba436a(0x10e)](_0x570a04)]);}_0x3a9698+=_0x36f923[_0xba436a(0x113)](_0x36f923[_0xba436a(0x124)](_0x1a23c7,_0x40d026),_0x563d36);}return _0x787df2;}export function stitchWebmFiles(_0x4553f2,_0x745110){const _0x26f1f8=_0x2d2b,_0x2db609={'ImgiZ':function(_0x544c24,_0x4024b2){return _0x544c24<=_0x4024b2;},'COxIQ':function(_0x24ba13,_0x35c487){return _0x24ba13(_0x35c487);},'mJQGZ':function(_0xe9ca16,_0xd8339a){return _0xe9ca16===_0xd8339a;},'ffrpX':function(_0x4dfd45,_0x558307){return _0x4dfd45<_0x558307;},'glTBe':function(_0xa89938,_0xcc8ef0,_0xebde6e,_0x184df4){return _0xa89938(_0xcc8ef0,_0xebde6e,_0x184df4);},'QBBNm':function(_0x332bdf,_0x219d58){return _0x332bdf+_0x219d58;}};if(_0x2db609[_0x26f1f8(0xf7)](_0x4553f2['length'],0x1))return![];const _0x50f2d7=[];for(const _0x8ff7b4 of _0x4553f2){const _0x193674=readFileSync(_0x8ff7b4),_0x133e92=_0x2db609['COxIQ'](parseWebm,_0x193674);if(!_0x133e92||_0x2db609[_0x26f1f8(0xfa)](_0x133e92['clusters']['length'],0x0))return![];_0x50f2d7[_0x26f1f8(0x135)](_0x133e92);}const _0x565d1f=_0x50f2d7[0x0],_0xb016f=_0x2db609[_0x26f1f8(0x134)](rebuildHeaderWithoutDuration,_0x565d1f[_0x26f1f8(0x105)]),_0x4bb9c0=[_0xb016f];let _0x1fda44=0x0;for(let _0x2c406f=0x0;_0x2db609[_0x26f1f8(0xf5)](_0x2c406f,_0x50f2d7[_0x26f1f8(0x121)]);_0x2c406f++){const _0x184fc7=_0x50f2d7[_0x2c406f];for(const _0x12fe95 of _0x184fc7['clusters']){const _0xc1caef=_0x12fe95[_0x26f1f8(0x118)]+_0x1fda44;_0x4bb9c0[_0x26f1f8(0x135)](_0x2db609['glTBe'](buildCluster,_0xc1caef,_0x12fe95['bodyBeforeTimestamp'],_0x12fe95['bodyAfterTimestamp']));}const _0x42bba4=0x1e;_0x1fda44+=_0x2db609[_0x26f1f8(0x109)](_0x184fc7[_0x26f1f8(0x11e)],_0x42bba4);}return writeFileSync(_0x745110,Buffer[_0x26f1f8(0x12a)](_0x4bb9c0)),!![];}if(process['argv'][0x1]?.['endsWith']('stitchWebmFiles.ts')||process['argv'][0x1]?.[_0xc9f34b(0x104)]('stitchWebmFiles.js')){const args=process[_0xc9f34b(0x139)]['slice'](0x2);args['length']<0x3&&(console[_0xc9f34b(0x107)](_0xc9f34b(0x12b)),process[_0xc9f34b(0x10a)](0x1));const output=args[args[_0xc9f34b(0x121)]-0x1],inputs=args[_0xc9f34b(0x10e)](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0xc9f34b(0xfd)]('Stitched\x20'+inputs[_0xc9f34b(0x121)]+_0xc9f34b(0x137)+output):console['log']('Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.');}
1
+ const _0x5cb106=_0x4155;(function(_0x199956,_0x56b0f6){const _0x29bae0=_0x4155,_0x506dc4=_0x199956();while(!![]){try{const _0x8cbe1c=parseInt(_0x29bae0(0x1a6))/0x1+-parseInt(_0x29bae0(0x18f))/0x2+parseInt(_0x29bae0(0x1a2))/0x3+parseInt(_0x29bae0(0x18e))/0x4+parseInt(_0x29bae0(0x187))/0x5*(parseInt(_0x29bae0(0x1a9))/0x6)+parseInt(_0x29bae0(0x1b3))/0x7+-parseInt(_0x29bae0(0x1b4))/0x8;if(_0x8cbe1c===_0x56b0f6)break;else _0x506dc4['push'](_0x506dc4['shift']());}catch(_0x3ede6d){_0x506dc4['push'](_0x506dc4['shift']());}}}(_0x1ed3,0x74d37));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(_0xc034f6,_0x32d3de){const _0xc7a3ab=_0x4155,_0x2843e0={'qVjSf':function(_0x46e67f,_0x24f945){return _0x46e67f<=_0x24f945;},'xtovn':function(_0x24376b,_0x42262b){return _0x24376b-_0x42262b;}};if(_0x32d3de>=_0xc034f6['length'])return[0x0,0x0];const _0x3f9ff5=_0xc034f6[_0x32d3de];let _0x99991f=0x1,_0x11a0ac=0x80;while(_0x2843e0[_0xc7a3ab(0x185)](_0x99991f,0x8)&&!(_0x3f9ff5&_0x11a0ac)){_0x99991f++,_0x11a0ac>>=0x1;}if(_0x32d3de+_0x99991f>_0xc034f6[_0xc7a3ab(0x1ba)])return[0x0,0x0];let _0x38c8ae=_0x3f9ff5&_0x2843e0[_0xc7a3ab(0x1b5)](_0x11a0ac,0x1);for(let _0x271ee9=0x1;_0x271ee9<_0x99991f;_0x271ee9++){_0x38c8ae=_0x38c8ae*0x100+_0xc034f6[_0x32d3de+_0x271ee9];}return[_0x38c8ae,_0x99991f];}function readId(_0x3cdf24,_0x41ddc7){const _0x4ddaf1=_0x4155,_0xdba2ee={'DAsGa':function(_0x3e592a,_0x479455){return _0x3e592a>=_0x479455;},'jdgiS':function(_0x3644e1,_0x1ae226){return _0x3644e1>_0x1ae226;},'koTOO':function(_0x32ce33,_0xac8174){return _0x32ce33<_0xac8174;},'qhuUl':function(_0x4e612a,_0x319238){return _0x4e612a+_0x319238;}};if(_0x41ddc7>=_0x3cdf24['length'])return[0x0,0x0];const _0x1de6de=_0x3cdf24[_0x41ddc7];let _0x595c74;if(_0xdba2ee['DAsGa'](_0x1de6de,0x80))_0x595c74=0x1;else{if(_0x1de6de>=0x40)_0x595c74=0x2;else{if(_0xdba2ee[_0x4ddaf1(0x1bd)](_0x1de6de,0x20))_0x595c74=0x3;else{if(_0x1de6de>=0x10)_0x595c74=0x4;else return[_0x1de6de,0x1];}}}if(_0xdba2ee[_0x4ddaf1(0x1c1)](_0x41ddc7+_0x595c74,_0x3cdf24[_0x4ddaf1(0x1ba)]))return[0x0,0x0];let _0x3ccd37=0x0;for(let _0x1e0163=0x0;_0xdba2ee[_0x4ddaf1(0x184)](_0x1e0163,_0x595c74);_0x1e0163++){_0x3ccd37=_0xdba2ee['qhuUl'](_0x3ccd37*0x100,_0x3cdf24[_0x41ddc7+_0x1e0163]);}return[_0x3ccd37,_0x595c74];}function readUint(_0x3b06cd,_0x59ca5a,_0x58674a){const _0x49d82d=_0x4155,_0x5087f4={'VxjBc':function(_0x3375c0,_0x1c7a79){return _0x3375c0<_0x1c7a79;},'Rvyjq':function(_0x4a063b,_0x2aa718){return _0x4a063b+_0x2aa718;}};let _0x5834b3=0x0;for(let _0x53d795=0x0;_0x5087f4[_0x49d82d(0x195)](_0x53d795,_0x58674a);_0x53d795++){_0x5834b3=_0x5087f4['Rvyjq'](_0x5834b3*0x100,_0x3b06cd[_0x5087f4['Rvyjq'](_0x59ca5a,_0x53d795)]);}return _0x5834b3;}function isUnknownSize(_0x455463,_0x2d788f){const _0x238030=_0x4155,_0x41dfe4={'rQEpP':function(_0xba35ca,_0x311d90){return _0xba35ca===_0x311d90;},'WwdjC':function(_0x2f296d,_0x33dca2){return _0x2f296d-_0x33dca2;}};return _0x41dfe4[_0x238030(0x1b8)](_0x455463,_0x41dfe4[_0x238030(0x199)](Math['pow'](0x2,0x7*_0x2d788f),0x1));}function _0x1ed3(){const _0x5e70c7=['wBxJb','maxTimestampTicks','XPMkE','bodyAfterTimestamp','ISzXw','vBdZO','argv','bGJpJ','concat','koTOO','qVjSf','jZeMD','10850NpCRLw','BumTt','TWIHC','kWmIr','iBXwi','tLZCS','bodyBeforeTimestamp','869956TBVyQY','1892020NSFxTY','wWgmd','RfzNQ','stitchWebmFiles.js','SLFfI','indexOf','VxjBc','NSQNd','ScEDV','slice','WwdjC','endsWith','eQCmi','Boggn','FhDSz','YWiOv','UQTgM','push','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','1669593AgpwlW','YCoSf','timestamp','from','227580pYQKqj','lzOAG','QoenZ','732FnAAyr','WhBYP','MxmxB','min','maxTicks','wZgcP','eBWaV','ONCwQ','AbPHV','Stitched\x20','4495351EZSQlz','3872032yZuudL','xtovn','olyoD','log','rQEpP','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','length','yLYMG','tPbjX','DAsGa','OSWde','Pwxtr','alloc','jdgiS','MABDr','qzLfJ','uGQOY','FCFLo'];_0x1ed3=function(){return _0x5e70c7;};return _0x1ed3();}function writeVint(_0x230e99,_0x200253){const _0x4ec4fe=_0x4155,_0x158306={'AYsri':function(_0x32f5e6,_0x294d7b){return _0x32f5e6||_0x294d7b;},'Jlmvr':function(_0x5c6a52,_0x5e0d2a){return _0x5c6a52*_0x5e0d2a;},'YWiOv':function(_0x5dfccd,_0x18edd6){return _0x5dfccd-_0x18edd6;},'wWgmd':function(_0x475705,_0x47a2f3){return _0x475705&_0x47a2f3;},'AbPHV':function(_0xaef425,_0x1ffc66){return _0xaef425<<_0x1ffc66;}};let _0x4f4c76=_0x158306['AYsri'](_0x200253,0x1);while(Math['pow'](0x2,_0x158306['Jlmvr'](0x7,_0x4f4c76))-0x2<_0x230e99)_0x4f4c76++;const _0x5ef492=Buffer[_0x4ec4fe(0x1c0)](_0x4f4c76);for(let _0x45bb5e=_0x158306[_0x4ec4fe(0x19e)](_0x4f4c76,0x1);_0x45bb5e>=0x0;_0x45bb5e--){_0x5ef492[_0x45bb5e]=_0x158306[_0x4ec4fe(0x190)](_0x230e99,0xff),_0x230e99=Math['floor'](_0x230e99/0x100);}return _0x5ef492[0x0]|=_0x158306[_0x4ec4fe(0x1b1)](0x1,0x8-_0x4f4c76),_0x5ef492;}function writeUint(_0x8ae1c9,_0x143087){const _0x3b047b=_0x4155,_0x20d100={'tPbjX':function(_0x186dc4,_0x2b9e4e){return _0x186dc4-_0x2b9e4e;},'qdmOl':function(_0x5f4e40,_0x5c5f86){return _0x5f4e40/_0x5c5f86;}},_0x209d64=Buffer[_0x3b047b(0x1c0)](_0x143087);for(let _0x213a7f=_0x20d100[_0x3b047b(0x1bc)](_0x143087,0x1);_0x213a7f>=0x0;_0x213a7f--){_0x209d64[_0x213a7f]=_0x8ae1c9&0xff,_0x8ae1c9=Math['floor'](_0x20d100['qdmOl'](_0x8ae1c9,0x100));}return _0x209d64;}function writeUnknownSizeVint(_0x15fca4){const _0x100e66=_0x4155,_0x21d0d1={'uGQOY':function(_0x5e835b,_0x199fd3){return _0x5e835b>>_0x199fd3;},'Pwxtr':function(_0x35c096,_0x26455d){return _0x35c096-_0x26455d;}},_0x2a4d19=Buffer['alloc'](_0x15fca4,0xff);return _0x2a4d19[0x0]=_0x21d0d1[_0x100e66(0x179)](0xff,_0x21d0d1[_0x100e66(0x1bf)](_0x15fca4,0x1)),_0x2a4d19;}function uintSize(_0x5eed75){const _0x5c9dc1={'zPTOY':function(_0x1c87c1,_0x292037){return _0x1c87c1>_0x292037;}};if(_0x5eed75===0x0)return 0x1;let _0x149f92=0x0,_0x51bd0a=_0x5eed75;while(_0x5c9dc1['zPTOY'](_0x51bd0a,0x0)){_0x149f92++,_0x51bd0a=Math['floor'](_0x51bd0a/0x100);}return _0x149f92;}function findTimestampScale(_0x46ba2d,_0x538e07){const _0x1b0f55=_0x4155,_0x143a76={'Cfnkv':function(_0x40bfda,_0x5bf6b6){return _0x40bfda+_0x5bf6b6;},'olyoD':function(_0x4b8b4e,_0x605948){return _0x4b8b4e<_0x605948;},'jZeMD':function(_0x585f49,_0x564cc1,_0x18b983){return _0x585f49(_0x564cc1,_0x18b983);},'MABDr':function(_0x12cdec,_0x14b088){return _0x12cdec===_0x14b088;},'BumTt':function(_0x4850cb,_0x278b35,_0x4663a7){return _0x4850cb(_0x278b35,_0x4663a7);},'WhBYP':function(_0x526836,_0x56f43c){return _0x526836+_0x56f43c;},'NLxBP':function(_0x334e38,_0x2e13f7){return _0x334e38===_0x2e13f7;},'Amcps':function(_0xe3d833,_0x384657,_0x19e000,_0x5cfee6){return _0xe3d833(_0x384657,_0x19e000,_0x5cfee6);},'RfzNQ':function(_0xbfb7f1,_0xc9201a){return _0xbfb7f1+_0xc9201a;},'eBWaV':function(_0xf9e649,_0x2e7b54){return _0xf9e649+_0x2e7b54;},'fjYSf':function(_0x60a880,_0x30f7de){return _0x60a880===_0x30f7de;},'XPMkE':function(_0x1caaa3,_0x37826f){return _0x1caaa3+_0x37826f;}};let _0x22cbed=_0x538e07;const _0x3a4387=Math[_0x1b0f55(0x1ac)](_0x46ba2d[_0x1b0f55(0x1ba)],_0x143a76['Cfnkv'](_0x538e07,0x2710));while(_0x143a76[_0x1b0f55(0x1b6)](_0x22cbed,_0x3a4387)){const [_0x5e7365,_0x996059]=readId(_0x46ba2d,_0x22cbed),[_0x435236,_0x4f5720]=_0x143a76[_0x1b0f55(0x186)](readVint,_0x46ba2d,_0x22cbed+_0x996059);if(_0x143a76[_0x1b0f55(0x1c2)](_0x5e7365,ID_INFO)){let _0x5a2317=_0x22cbed+_0x996059+_0x4f5720;const _0x2a181d=_0x5a2317+_0x435236;while(_0x5a2317<_0x2a181d){const [_0x2dcf57,_0x2da046]=readId(_0x46ba2d,_0x5a2317),[_0x48b460,_0x4906cc]=_0x143a76[_0x1b0f55(0x188)](readVint,_0x46ba2d,_0x143a76[_0x1b0f55(0x1aa)](_0x5a2317,_0x2da046));if(_0x143a76['NLxBP'](_0x2dcf57,ID_TIMESTAMP_SCALE))return _0x143a76['Amcps'](readUint,_0x46ba2d,_0x143a76[_0x1b0f55(0x191)](_0x143a76[_0x1b0f55(0x1af)](_0x5a2317,_0x2da046),_0x4906cc),_0x48b460);_0x5a2317+=_0x2da046+_0x4906cc+_0x48b460;}break;}if(_0x143a76['fjYSf'](_0x5e7365,ID_CLUSTER))break;if(isUnknownSize(_0x435236,_0x4f5720))break;_0x22cbed+=_0x143a76[_0x1b0f55(0x17d)](_0x996059+_0x4f5720,_0x435236);}return 0xf4240;}function findFirstClusterOffset(_0x3f156c,_0x410d6c){const _0x383014=_0x4155,_0x5931cb={'OSWde':function(_0x485fdf,_0x4c7eba,_0x2d6dc9){return _0x485fdf(_0x4c7eba,_0x2d6dc9);},'wBxJb':function(_0x5f4e97,_0x13ba42){return _0x5f4e97===_0x13ba42;},'vBdZO':function(_0x9cd228,_0x2cbf8e){return _0x9cd228+_0x2cbf8e;}};let _0x29481e=_0x410d6c;while(_0x29481e<_0x3f156c['length']){const [_0x29acb,_0x58c2ea]=_0x5931cb[_0x383014(0x1be)](readId,_0x3f156c,_0x29481e);if(_0x5931cb[_0x383014(0x17b)](_0x29acb,ID_CLUSTER))return _0x29481e;const [_0x503c3c,_0x204324]=_0x5931cb['OSWde'](readVint,_0x3f156c,_0x29481e+_0x58c2ea);if(_0x5931cb['OSWde'](isUnknownSize,_0x503c3c,_0x204324))return _0x29481e;_0x29481e+=_0x5931cb[_0x383014(0x180)](_0x58c2ea,_0x204324)+_0x503c3c;}return _0x3f156c['length'];}function findClusterEnd(_0x309e84,_0x1a60f5,_0x45f295,_0x1c213c){const _0x1b3327=_0x4155,_0x25da97={'eQCmi':function(_0x175e87,_0x7eef62,_0xd471cb){return _0x175e87(_0x7eef62,_0xd471cb);},'XWLEq':function(_0x945a96,_0xf33d8b){return _0x945a96+_0xf33d8b;},'yLYMG':function(_0x4cc946,_0x5e2a0e){return _0x4cc946<_0x5e2a0e;},'YCGrL':function(_0x42a831,_0x5184aa){return _0x42a831+_0x5184aa;},'JrryI':function(_0x32f8cf,_0x1831b0){return _0x32f8cf+_0x1831b0;}};if(!_0x25da97[_0x1b3327(0x19b)](isUnknownSize,_0x45f295,_0x1c213c))return _0x25da97['XWLEq'](_0x1a60f5,_0x45f295);const _0x1b1c7d=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x54e28c=_0x1a60f5;while(_0x25da97[_0x1b3327(0x1bb)](_0x54e28c,_0x309e84['length']-0x4)){const [_0x4b01d,_0x2487c4]=readId(_0x309e84,_0x54e28c);if(_0x1b1c7d['has'](_0x4b01d))return _0x54e28c;const [_0x6e135,_0x2a0372]=readVint(_0x309e84,_0x25da97['YCGrL'](_0x54e28c,_0x2487c4));if(isUnknownSize(_0x6e135,_0x2a0372))return _0x309e84['length'];_0x54e28c+=_0x25da97['JrryI'](_0x2487c4,_0x2a0372)+_0x6e135;}return _0x309e84[_0x1b3327(0x1ba)];}function extractClusters(_0x274d30,_0xc73d81){const _0x2f625f=_0x4155,_0x70f5d9={'MxmxB':function(_0x2943c4,_0x56b9a8){return _0x2943c4===_0x56b9a8;},'YfrLC':function(_0xa565a4,_0x307683,_0x32cc91){return _0xa565a4(_0x307683,_0x32cc91);},'yMOLb':function(_0x55007b,_0x2d6f9a){return _0x55007b!==_0x2d6f9a;},'ISzXw':function(_0x2b9921,_0x73db30,_0x1326dc){return _0x2b9921(_0x73db30,_0x1326dc);},'TWIHC':function(_0x5585bd,_0x3ebb68){return _0x5585bd+_0x3ebb68;},'QoenZ':function(_0x27dc22,_0x5cb278){return _0x27dc22+_0x5cb278;},'Boggn':function(_0x49beae,_0x3aa350){return _0x49beae+_0x3aa350;},'JvztF':function(_0x587f75,_0x4f9f77){return _0x587f75===_0x4f9f77;},'ONCwQ':function(_0x3093bb,_0x26014a,_0x23dd6b){return _0x3093bb(_0x26014a,_0x23dd6b);},'fIrjr':function(_0x11a302,_0x395539){return _0x11a302<_0x395539;},'YTlYK':function(_0xf5bd3,_0x4cb3ab){return _0xf5bd3===_0x4cb3ab;},'SLFfI':function(_0x1d9a6d,_0x63ad69){return _0x1d9a6d+_0x63ad69;},'KCUdO':function(_0x1f79f1,_0x13b07c){return _0x1f79f1+_0x13b07c;}},_0x230ad3=[],_0x1cadf7=Buffer[_0x2f625f(0x1a5)]([0x1f,0x43,0xb6,0x75]);let _0x123cf7=0x0;while(_0x123cf7<_0x274d30['length']){const _0x1fe91d=_0x274d30[_0x2f625f(0x194)](_0x1cadf7,_0x123cf7);if(_0x70f5d9['MxmxB'](_0x1fe91d,-0x1))break;const [_0xc8c81f,_0x4a2da8]=_0x70f5d9['YfrLC'](readId,_0x274d30,_0x1fe91d);if(_0x70f5d9['yMOLb'](_0xc8c81f,ID_CLUSTER)){_0x123cf7=_0x1fe91d+0x1;continue;}const [_0x581c8a,_0x290f49]=_0x70f5d9[_0x2f625f(0x17f)](readVint,_0x274d30,_0x70f5d9[_0x2f625f(0x189)](_0x1fe91d,_0x4a2da8)),_0x1f4d28=_0x70f5d9['TWIHC'](_0x1fe91d,_0x4a2da8)+_0x290f49,_0x6540f9=findClusterEnd(_0x274d30,_0x1f4d28,_0x581c8a,_0x290f49);let _0x448900=_0x1f4d28,_0x5b0c95=0x0,_0x4aac74=0x2,_0x1bbbd0=![],_0x312347=Buffer['alloc'](0x0),_0x2f54f2=Buffer[_0x2f625f(0x1c0)](0x0);while(_0x448900<_0x6540f9){const [_0x4ee605,_0x21295a]=readId(_0x274d30,_0x448900),[_0x2ffe7c,_0xbf32fe]=readVint(_0x274d30,_0x70f5d9[_0x2f625f(0x1a8)](_0x448900,_0x21295a));if(_0x70f5d9[_0x2f625f(0x1ab)](_0x4ee605,ID_TIMESTAMP)){_0x5b0c95=readUint(_0x274d30,_0x70f5d9[_0x2f625f(0x19c)](_0x70f5d9['Boggn'](_0x448900,_0x21295a),_0xbf32fe),_0x2ffe7c),_0x4aac74=_0x2ffe7c,_0x1bbbd0=!![],_0x312347=_0x274d30['slice'](_0x1f4d28,_0x448900);const _0x4f14b7=_0x70f5d9[_0x2f625f(0x189)](_0x448900+_0x21295a,_0xbf32fe)+_0x2ffe7c;_0x2f54f2=_0x274d30['slice'](_0x4f14b7,_0x6540f9);break;}if(_0x70f5d9['JvztF'](_0x4ee605,ID_CLUSTER))break;if(_0x70f5d9[_0x2f625f(0x1b0)](isUnknownSize,_0x2ffe7c,_0xbf32fe))break;_0x448900+=_0x21295a+_0xbf32fe+_0x2ffe7c;}!_0x1bbbd0&&(_0x2f54f2=_0x274d30['slice'](_0x1f4d28,_0x6540f9));let _0x477304=_0x5b0c95;_0x448900=_0x1f4d28;while(_0x70f5d9['fIrjr'](_0x448900,_0x6540f9)){const [_0x45a530,_0x2bddf8]=readId(_0x274d30,_0x448900),[_0xd19ffc,_0x278d1a]=readVint(_0x274d30,_0x70f5d9['TWIHC'](_0x448900,_0x2bddf8));if(_0x45a530===ID_SIMPLE_BLOCK&&_0xd19ffc>=0x4){const _0x5bebe1=_0x448900+_0x2bddf8+_0x278d1a,[,_0x1d52ae]=_0x70f5d9['YfrLC'](readVint,_0x274d30,_0x5bebe1),_0x581213=_0x274d30['readInt16BE'](_0x5bebe1+_0x1d52ae),_0x4d4465=_0x5b0c95+_0x581213;if(_0x4d4465>_0x477304)_0x477304=_0x4d4465;}if(_0x70f5d9['YTlYK'](_0x45a530,ID_CLUSTER))break;if(isUnknownSize(_0xd19ffc,_0x278d1a))break;_0x448900+=_0x70f5d9[_0x2f625f(0x193)](_0x70f5d9['KCUdO'](_0x2bddf8,_0x278d1a),_0xd19ffc);}_0x230ad3[_0x2f625f(0x1a0)]({'timestamp':_0x5b0c95,'maxTicks':_0x477304,'bodyBeforeTimestamp':_0x312347,'bodyAfterTimestamp':_0x2f54f2,'timestampElementSize':_0x4aac74}),_0x123cf7=_0x6540f9;}return _0x230ad3;}function _0x4155(_0x1de761,_0x3e8286){_0x1de761=_0x1de761-0x179;const _0x1ed381=_0x1ed3();let _0x41552e=_0x1ed381[_0x1de761];return _0x41552e;}function parseWebm(_0xa6e019){const _0x21169b=_0x4155,_0x48c64f={'UQTgM':function(_0x4dfc41,_0x573447,_0x396510){return _0x4dfc41(_0x573447,_0x396510);},'tLZCS':function(_0x4b101,_0x6206ce){return _0x4b101+_0x6206ce;},'lzOAG':function(_0x3c9d16,_0x4cbbd7){return _0x3c9d16!==_0x4cbbd7;},'wZgcP':function(_0x2af86f,_0x2b0625,_0x26d8df){return _0x2af86f(_0x2b0625,_0x26d8df);},'YCoSf':function(_0x505348,_0x2c73ca){return _0x505348+_0x2c73ca;},'jNRCX':function(_0x533cb8,_0x10978,_0x378a29){return _0x533cb8(_0x10978,_0x378a29);}};let _0x1f1b64=0x0;const [,_0x362df1]=_0x48c64f['UQTgM'](readId,_0xa6e019,_0x1f1b64),[_0x2e845b,_0x5553ff]=_0x48c64f['UQTgM'](readVint,_0xa6e019,_0x48c64f[_0x21169b(0x18c)](_0x1f1b64,_0x362df1));_0x1f1b64+=_0x362df1+_0x5553ff+_0x2e845b;const [_0x41c6ac,_0x273ec2]=readId(_0xa6e019,_0x1f1b64);if(_0x48c64f[_0x21169b(0x1a7)](_0x41c6ac,ID_SEGMENT))return null;const [,_0x154507]=_0x48c64f[_0x21169b(0x1ae)](readVint,_0xa6e019,_0x48c64f[_0x21169b(0x1a3)](_0x1f1b64,_0x273ec2)),_0x493acc=_0x48c64f['YCoSf'](_0x1f1b64,_0x273ec2)+_0x154507,_0xafdb65=findTimestampScale(_0xa6e019,_0x493acc),_0x4219ff=_0x48c64f[_0x21169b(0x19f)](findFirstClusterOffset,_0xa6e019,_0x493acc),_0x31c533=_0xa6e019[_0x21169b(0x198)](0x0,_0x4219ff),_0x1b7a97=_0x48c64f['jNRCX'](extractClusters,_0xa6e019,_0xafdb65);let _0x4ba5ef=0x0;for(const _0x1ce6fa of _0x1b7a97){if(_0x1ce6fa['maxTicks']>_0x4ba5ef)_0x4ba5ef=_0x1ce6fa[_0x21169b(0x1ad)];}return{'header':_0x31c533,'clusters':_0x1b7a97,'timestampScale':_0xafdb65,'maxTimestampTicks':_0x4ba5ef};}function buildCluster(_0x75ad75,_0x16b058,_0x73e307){const _0x4163e0=_0x4155,_0xb9750f={'bGJpJ':function(_0x4a3293,_0x16e146,_0x56bae7){return _0x4a3293(_0x16e146,_0x56bae7);},'FCFLo':function(_0xdbf420,_0x41169a){return _0xdbf420(_0x41169a);}},_0x24be1d=Buffer['from']([0x1f,0x43,0xb6,0x75]),_0x326476=Math['max'](0x4,uintSize(_0x75ad75)),_0x307383=Buffer[_0x4163e0(0x183)]([Buffer[_0x4163e0(0x1a5)]([ID_TIMESTAMP]),writeVint(_0x326476),_0xb9750f[_0x4163e0(0x182)](writeUint,_0x75ad75,_0x326476)]),_0x2b5a01=Buffer['concat']([_0x16b058,_0x307383,_0x73e307]),_0x3f3df3=_0xb9750f[_0x4163e0(0x17a)](writeVint,_0x2b5a01['length']);return Buffer[_0x4163e0(0x183)]([_0x24be1d,_0x3f3df3,_0x2b5a01]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x486c53){const _0xa5cb87=_0x4155,_0xb3a1e7={'UPiqZ':function(_0xd09441,_0x399203,_0x470cb6){return _0xd09441(_0x399203,_0x470cb6);},'iBXwi':function(_0x4c4055,_0x5d21a6){return _0x4c4055+_0x5d21a6;},'kWmIr':function(_0x34e253,_0x63fb78){return _0x34e253+_0x63fb78;},'qzLfJ':function(_0x5b24c6,_0xe9cd1a,_0x3ad741){return _0x5b24c6(_0xe9cd1a,_0x3ad741);},'xFyKt':function(_0x194b1e,_0x320925){return _0x194b1e===_0x320925;},'AwctF':function(_0x41e9fc,_0xf295bf){return _0x41e9fc===_0xf295bf;},'FhDSz':function(_0x189662,_0x2db295){return _0x189662+_0x2db295;},'NSQNd':function(_0x51029b,_0x597625){return _0x51029b!==_0x597625;},'xJFVx':function(_0x3a667d,_0xa83048){return _0x3a667d+_0xa83048;},'IEvcB':function(_0x7685cf,_0x364999){return _0x7685cf+_0x364999;}},_0x3555e0=Buffer[_0xa5cb87(0x1a5)](_0x486c53);let _0x13f7ab=0x0;const [,_0x2edee8]=readId(_0x3555e0,_0x13f7ab),[_0x209e4e,_0x1bef0f]=_0xb3a1e7['UPiqZ'](readVint,_0x3555e0,_0xb3a1e7[_0xa5cb87(0x18b)](_0x13f7ab,_0x2edee8)),_0x40fb3a=_0xb3a1e7['kWmIr'](_0x13f7ab,_0x2edee8)+_0x1bef0f+_0x209e4e,[,_0x413bb7]=readId(_0x3555e0,_0x40fb3a),[,_0x5d2e02]=readVint(_0x3555e0,_0x40fb3a+_0x413bb7),_0x5990c9=_0xb3a1e7['iBXwi'](_0x40fb3a,_0x413bb7)+_0x5d2e02,_0x1a3ad1=writeUnknownSizeVint(_0x5d2e02);_0x1a3ad1['copy'](_0x3555e0,_0x40fb3a+_0x413bb7);let _0x50bf39=_0x5990c9;const _0x3f329d=Math['min'](_0x3555e0['length'],_0xb3a1e7['kWmIr'](_0x5990c9,0x2710));while(_0x50bf39<_0x3f329d){const [_0x58fc48,_0x29a3b1]=readId(_0x3555e0,_0x50bf39),[_0xd001d8,_0x1e899d]=_0xb3a1e7['qzLfJ'](readVint,_0x3555e0,_0x50bf39+_0x29a3b1);if(_0xb3a1e7['xFyKt'](_0x58fc48,ID_CLUSTER))break;if(_0xb3a1e7[_0xa5cb87(0x1c3)](isUnknownSize,_0xd001d8,_0x1e899d))break;if(_0xb3a1e7['AwctF'](_0x58fc48,ID_INFO)){const _0x47b432=_0xb3a1e7[_0xa5cb87(0x18a)](_0x50bf39,_0x29a3b1)+_0x1e899d,_0x46a885=_0x47b432+_0xd001d8,_0x5b4ecc=[];let _0x1f6a65=_0x47b432;while(_0x1f6a65<_0x46a885){const [_0x529851,_0x27c121]=readId(_0x3555e0,_0x1f6a65),[_0x172715,_0x15acc6]=readVint(_0x3555e0,_0xb3a1e7['FhDSz'](_0x1f6a65,_0x27c121)),_0x283ecd=_0x27c121+_0x15acc6+_0x172715;_0xb3a1e7[_0xa5cb87(0x196)](_0x529851,ID_DURATION)&&_0x5b4ecc['push'](_0x3555e0[_0xa5cb87(0x198)](_0x1f6a65,_0xb3a1e7[_0xa5cb87(0x19d)](_0x1f6a65,_0x283ecd))),_0x1f6a65+=_0x283ecd;}const _0x53610e=Buffer[_0xa5cb87(0x183)](_0x5b4ecc),_0x17f458=Buffer['concat']([_0x3555e0[_0xa5cb87(0x198)](_0x50bf39,_0xb3a1e7[_0xa5cb87(0x19d)](_0x50bf39,_0x29a3b1)),writeVint(_0x53610e['length'],_0x1e899d)]);return Buffer['concat']([_0x3555e0['slice'](0x0,_0x50bf39),_0x17f458,_0x53610e,_0x3555e0['slice'](_0x46a885)]);}_0x50bf39+=_0xb3a1e7['xJFVx'](_0xb3a1e7['IEvcB'](_0x29a3b1,_0x1e899d),_0xd001d8);}return _0x3555e0;}export function stitchWebmFiles(_0x464ef5,_0x3bce47){const _0x3e733a=_0x4155,_0x2934e7={'mxPGe':function(_0x4203f1,_0x2dc63d){return _0x4203f1(_0x2dc63d);},'ScEDV':function(_0x57e6cf,_0x21d730){return _0x57e6cf(_0x21d730);},'CmiSQ':function(_0x4fea4c,_0x41bff3){return _0x4fea4c<_0x41bff3;},'ScuCn':function(_0x5b4ab2,_0x57a8ee){return _0x5b4ab2+_0x57a8ee;}};if(_0x464ef5[_0x3e733a(0x1ba)]<=0x1)return![];const _0x286e6e=[];for(const _0x41e3e9 of _0x464ef5){const _0x17538d=_0x2934e7['mxPGe'](readFileSync,_0x41e3e9),_0x590346=_0x2934e7['mxPGe'](parseWebm,_0x17538d);if(!_0x590346||_0x590346['clusters'][_0x3e733a(0x1ba)]===0x0)return![];_0x286e6e['push'](_0x590346);}const _0x1cb123=_0x286e6e[0x0],_0x12860b=_0x2934e7[_0x3e733a(0x197)](rebuildHeaderWithoutDuration,_0x1cb123['header']),_0x4f42a0=[_0x12860b];let _0x1910fc=0x0;for(let _0x4e3747=0x0;_0x2934e7['CmiSQ'](_0x4e3747,_0x286e6e[_0x3e733a(0x1ba)]);_0x4e3747++){const _0x268fde=_0x286e6e[_0x4e3747];for(const _0x2b2ec8 of _0x268fde['clusters']){const _0xc86a68=_0x2b2ec8[_0x3e733a(0x1a4)]+_0x1910fc;_0x4f42a0[_0x3e733a(0x1a0)](buildCluster(_0xc86a68,_0x2b2ec8[_0x3e733a(0x18d)],_0x2b2ec8[_0x3e733a(0x17e)]));}const _0x41421e=0x1e;_0x1910fc+=_0x2934e7['ScuCn'](_0x268fde[_0x3e733a(0x17c)],_0x41421e);}return writeFileSync(_0x3bce47,Buffer[_0x3e733a(0x183)](_0x4f42a0)),!![];}if(process[_0x5cb106(0x181)][0x1]?.['endsWith']('stitchWebmFiles.ts')||process['argv'][0x1]?.[_0x5cb106(0x19a)](_0x5cb106(0x192))){const args=process[_0x5cb106(0x181)][_0x5cb106(0x198)](0x2);args['length']<0x3&&(console['error'](_0x5cb106(0x1a1)),process['exit'](0x1));const output=args[args[_0x5cb106(0x1ba)]-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x5cb106(0x1b7)](_0x5cb106(0x1b2)+inputs['length']+'\x20files\x20->\x20'+output):console[_0x5cb106(0x1b7)](_0x5cb106(0x1b9));}