@ranger-testing/ranger-cli 3.0.1-alpha.aab0a1c-26 → 3.0.1-alpha.c0b290b-36

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 (85) 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 -0
  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 -0
  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/sessionCache.js +1 -1
  71. package/build/commands/utils/settings.js +1 -1
  72. package/build/commands/utils/skillContent.js +1 -1
  73. package/build/commands/utils/skills.js +1 -1
  74. package/build/commands/utils/stitchWebmFiles.js +1 -1
  75. package/build/commands/utils/telemetry.js +1 -1
  76. package/build/commands/utils/tokenRefresh.js +1 -1
  77. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  78. package/build/commands/utils/tunnelClient.js +1 -0
  79. package/build/commands/utils/userApi.js +1 -1
  80. package/build/commands/utils/version.js +1 -1
  81. package/build/commands/verifyFeature.js +1 -1
  82. package/build/commands/verifyFeatureCli.js +1 -1
  83. package/build/commands/verifyFeatureNovaCli.js +1 -1
  84. package/build/commands/verifyFeatureRangerwrightCli.js +1 -0
  85. package/package.json +5 -2
@@ -1 +1 @@
1
- (function(_0x17b8bc,_0x11ed2d){const _0xc8df31=_0x3de2,_0x224f51=_0x17b8bc();while(!![]){try{const _0x44f2a3=-parseInt(_0xc8df31(0x211))/0x1*(-parseInt(_0xc8df31(0x203))/0x2)+parseInt(_0xc8df31(0x20d))/0x3+-parseInt(_0xc8df31(0x1e8))/0x4*(parseInt(_0xc8df31(0x1f4))/0x5)+-parseInt(_0xc8df31(0x20c))/0x6*(-parseInt(_0xc8df31(0x1fe))/0x7)+-parseInt(_0xc8df31(0x20e))/0x8*(parseInt(_0xc8df31(0x1f1))/0x9)+-parseInt(_0xc8df31(0x217))/0xa+parseInt(_0xc8df31(0x216))/0xb;if(_0x44f2a3===_0x11ed2d)break;else _0x224f51['push'](_0x224f51['shift']());}catch(_0x48c112){_0x224f51['push'](_0x224f51['shift']());}}}(_0xb8ae,0x6beb1));import{existsSync}from'fs';import _0x22d718 from'inquirer';function _0x3de2(_0x11df54,_0x41e186){_0x11df54=_0x11df54-0x1e8;const _0xb8ae0d=_0xb8ae();let _0x3de2a7=_0xb8ae0d[_0x11df54];return _0x3de2a7;}function _0xb8ae(){const _0xa971f0=['profile','baseUrl','126074UTAtLq','cDEfz','cwd','startPath','envBaseUrl','10250163EBWrBY','4809060RtfJrN','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','RANGER_TEST_USERNAME','1056Fjwuod','EYKir','CeLil','VcDLe','list','QmgPs','Cloud\x20profile\x20(recommended)','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','27TpnouK','SKvmN','name','13950dqyMIP','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','env','\x20baseUrl\x20<url>','WOGJD','HsyMM','FrToY','log','cloud','source','91uiiTot','ubCqB','PjjcX','Profile\x20\x22','`ranger\x20profile\x20add`\x20to\x20create\x20one.','2OMNmHp','AgMIC','prompt','string','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','length','SRZeM','\x20does\x20not\x20exist.','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','354180Oyksdp','456858OofpKp','848224qwYzMZ'];_0xb8ae=function(){return _0xa971f0;};return _0xb8ae();}import{ApiError,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive}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(_0x40c07){const _0x279b6b=_0x3de2,_0x3b108f={'cDEfz':function(_0x324b56){return _0x324b56();},'CgobK':function(_0x1cc959,_0x36ee38){return _0x1cc959+_0x36ee38;},'srOcz':function(_0x13cdcb,_0x2738b9){return _0x13cdcb+_0x2738b9;},'bRihR':_0x279b6b(0x218),'PjjcX':function(_0x334adc,_0x5bd26c){return _0x334adc(_0x5bd26c);},'DuhxD':function(_0x1f1a16,_0x59674f){return _0x1f1a16===_0x59674f;},'QmgPs':function(_0xaacbf8,_0x2ce346){return _0xaacbf8&&_0x2ce346;},'EYKir':function(_0x4aca32,_0x3f297a){return _0x4aca32+_0x3f297a;},'QxOKO':function(_0x5b0c50,_0x5b7e68){return _0x5b0c50&&_0x5b7e68;},'NwwPJ':function(_0x1c10d){return _0x1c10d();},'WOGJD':_0x279b6b(0x1ee),'FrToY':'local','HsyMM':function(_0x3601b9,_0x28633c){return _0x3601b9===_0x28633c;},'AgMIC':function(_0x147230,_0x22223e,_0x3c3ad4){return _0x147230(_0x22223e,_0x3c3ad4);},'QDAos':function(_0x1dac61,_0x512c21){return _0x1dac61(_0x512c21);},'xHyVP':function(_0x56bdf1,_0x305152,_0x26678a){return _0x56bdf1(_0x305152,_0x26678a);},'VcDLe':function(_0x52ce56,_0x462425){return _0x52ce56(_0x462425);},'eiDAY':function(_0x2e7b37,_0x195603){return _0x2e7b37(_0x195603);},'SKvmN':function(_0x391988,_0x18c217){return _0x391988(_0x18c217);},'VCDSN':function(_0x2a5954,_0xc42574){return _0x2a5954(_0xc42574);},'CeLil':function(_0x1fac23,_0x95eab4){return _0x1fac23&&_0x95eab4;}},_0x3ac385=_0x40c07[_0x279b6b(0x20f)];let _0x4fae5d=_0x40c07['profile']??await readActiveProfileName(),_0x571aad=null;if(!_0x4fae5d&&process['env'][_0x279b6b(0x219)]){const _0x827e6a=await _0x3b108f[_0x279b6b(0x212)](resolveAdHocProfile);_0x827e6a&&(_0x4fae5d=_0x827e6a['name'],_0x571aad=_0x827e6a[_0x279b6b(0x20f)]);}if(!_0x4fae5d)try{const _0x4ab64c=await listCloudProfiles();if(_0x4ab64c[_0x279b6b(0x208)]===0x1){const _0x61eca8=_0x4ab64c[0x0];_0x4fae5d=_0x61eca8['name'],console[_0x279b6b(0x1fb)](_0x279b6b(0x207)+_0x61eca8[_0x279b6b(0x1f3)]),console[_0x279b6b(0x1fb)](_0x279b6b(0x20b));}}catch{}if(!_0x4fae5d)throw new Error(_0x3b108f['CgobK'](_0x3b108f['srOcz'](_0x3b108f['srOcz']('Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a',_0x3b108f['bRihR']),_0x279b6b(0x1f0))+'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.'));const _0x3b02da=_0x3b108f[_0x279b6b(0x200)](getEnvDir,_0x4fae5d),_0x57b636=_0x3b108f['PjjcX'](existsSync,_0x3b02da);let _0x84da94=_0x571aad,_0x3a8426=![];if(!_0x84da94)try{_0x84da94=await fetchCloudProfile(_0x4fae5d);if(!_0x84da94)_0x3a8426=!![];}catch(_0x2e1404){_0x2e1404 instanceof ApiError&&_0x3b108f['DuhxD'](_0x2e1404['status'],0x194)&&(_0x3a8426=!![]);}if(_0x3b108f[_0x279b6b(0x1ed)](_0x3ac385,_0x3a8426)&&!_0x57b636&&!_0x84da94)throw new Error(_0x3b108f[_0x279b6b(0x1e9)](_0x279b6b(0x201)+_0x3ac385+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20')+_0x279b6b(0x202));if(_0x3b108f['QxOKO'](_0x84da94,_0x57b636)){let _0x520bcd=!![];if(_0x3b108f['NwwPJ'](isInteractive)){const {source:_0x3a7592}=await _0x22d718[_0x279b6b(0x205)]([{'type':_0x279b6b(0x1ec),'name':_0x279b6b(0x1fd),'message':_0x279b6b(0x201)+_0x4fae5d+'\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','choices':[{'name':_0x3b108f[_0x279b6b(0x1f8)],'value':'cloud'},{'name':'Local\x20profile','value':_0x3b108f[_0x279b6b(0x1fa)]}],'default':_0x279b6b(0x1fc)}]);_0x520bcd=_0x3b108f[_0x279b6b(0x1f9)](_0x3a7592,'cloud');}if(!_0x520bcd)_0x84da94=null;}const _0x5cda50=_0x3b108f[_0x279b6b(0x204)](readProfileOverrides,process[_0x279b6b(0x213)](),_0x4fae5d);let _0x3c1bda=null,_0x5dc6c8,_0xa3df2f,_0x1c8acb,_0x5e5487,_0x112ce1=null,_0x2f7daf;const _0xcf6342=_0x3b108f['QDAos'](expandOverrides,_0x5cda50);if(_0x84da94){_0x3c1bda=_0x84da94;const _0x1e233a=_0x84da94['settings']??{},_0x246cb3=_0x3b108f['xHyVP'](mergeCloudProfileSettings,_0x1e233a,_0x5cda50??undefined),_0x25ddfd={..._0x84da94,'settings':_0x246cb3},_0x2e42ee=process[_0x279b6b(0x1f6)]['RANGER_SESSION_STATE_PATH'];if(_0x2e42ee){if(!existsSync(_0x2e42ee))throw new Error('RANGER_SESSION_STATE_PATH='+_0x2e42ee+_0x279b6b(0x20a));_0x5dc6c8=_0x2e42ee,_0xa3df2f=_0x3b108f['PjjcX'](resolveEnvVars,_0x246cb3),_0x1c8acb=_0x3b108f['QDAos'](Boolean,_0xa3df2f['cdpEndpoint']),_0x112ce1={'baseUrl':_0x3b108f[_0x279b6b(0x1eb)](expandString,_0x1e233a['baseUrl']),'startPath':expandString(_0x1e233a[_0x279b6b(0x214)])};}else{const _0x361860=await resolveCloudProfileSession(_0x25ddfd);_0x5dc6c8=_0x361860['authPath'],_0xa3df2f=resolveEnvVars(_0x246cb3),_0x1c8acb=Boolean(_0xa3df2f['cdpEndpoint']),_0x112ce1={'baseUrl':expandString(_0x1e233a['baseUrl']),'startPath':_0x3b108f['eiDAY'](expandString,_0x1e233a[_0x279b6b(0x214)])},_0x2f7daf=_0x361860['resolvedEnv']?.['domains']?.[0x0];}}else{if(!_0x57b636)throw new Error(_0x279b6b(0x201)+_0x4fae5d+_0x279b6b(0x1f5)+_0x4fae5d);const _0x1cff0c=await _0x3b108f['QDAos'](loadSettings,_0x4fae5d);_0xa3df2f=_0x3b108f[_0x279b6b(0x1f2)](resolveEnvVars,_0x1cff0c),_0x1c8acb=_0x3b108f['VCDSN'](Boolean,_0xa3df2f['cdpEndpoint']),_0x5e5487=_0xa3df2f['baseUrl'];}const _0x47a630=_0x3b108f[_0x279b6b(0x212)](readUrlEnvVars),_0xfeab85=resolveProfileUrl({'flagBaseUrl':_0x40c07[_0x279b6b(0x210)],'flagStartPath':_0x40c07[_0x279b6b(0x214)],'envBaseUrl':_0x47a630[_0x279b6b(0x215)],'envStartPath':_0x47a630['envStartPath'],'localSettingsBaseUrl':_0x5e5487,'projectOverrides':_0xcf6342,'cloudSettings':_0x112ce1,'authEnvironmentDomain':_0x2f7daf}),_0x10a0c9=_0xfeab85['url']??_0xfeab85['baseUrl'];if(_0x3b108f[_0x279b6b(0x1ea)](!_0x10a0c9,!_0x1c8acb))throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0x4fae5d+_0x279b6b(0x1ef)+_0x4fae5d+_0x279b6b(0x1f7));return{'activeProfile':_0x4fae5d,'resolvedCloudProfile':_0x3c1bda,'cloudAuthPath':_0x5dc6c8,'resolvedSettings':_0xa3df2f,'isCdpMode':_0x1c8acb,'url':_0x10a0c9,'startPath':_0xfeab85['startPath']};}function expandString(_0x5a3cdf){const _0x32a171=_0x3de2,_0x2615ae={'seBMR':function(_0x314096,_0x9953){return _0x314096!==_0x9953;},'ubCqB':_0x32a171(0x206)};if(_0x2615ae['seBMR'](typeof _0x5a3cdf,_0x2615ae[_0x32a171(0x1ff)]))return _0x5a3cdf;return resolveEnvVars(_0x5a3cdf);}function expandOverrides(_0x4328f0){const _0x3fa737=_0x3de2,_0x36a351={'SRZeM':_0x3fa737(0x206),'EzHVY':function(_0x4cabea,_0x3c5803){return _0x4cabea(_0x3c5803);}};if(!_0x4328f0)return _0x4328f0;const _0x30c9d5={..._0x4328f0};return typeof _0x30c9d5[_0x3fa737(0x210)]===_0x36a351['SRZeM']&&(_0x30c9d5['baseUrl']=_0x36a351['EzHVY'](resolveEnvVars,_0x30c9d5[_0x3fa737(0x210)])),typeof _0x30c9d5['startPath']===_0x36a351[_0x3fa737(0x209)]&&(_0x30c9d5[_0x3fa737(0x214)]=resolveEnvVars(_0x30c9d5['startPath'])),_0x30c9d5;}
1
+ (function(_0x3c8113,_0x55771d){const _0x43ecba=_0x2b3b,_0x330a76=_0x3c8113();while(!![]){try{const _0xbc5358=parseInt(_0x43ecba(0x137))/0x1+parseInt(_0x43ecba(0x13d))/0x2*(parseInt(_0x43ecba(0x133))/0x3)+-parseInt(_0x43ecba(0x14e))/0x4*(-parseInt(_0x43ecba(0x147))/0x5)+-parseInt(_0x43ecba(0x149))/0x6+parseInt(_0x43ecba(0x148))/0x7*(parseInt(_0x43ecba(0x161))/0x8)+parseInt(_0x43ecba(0x146))/0x9*(parseInt(_0x43ecba(0x135))/0xa)+-parseInt(_0x43ecba(0x143))/0xb;if(_0xbc5358===_0x55771d)break;else _0x330a76['push'](_0x330a76['shift']());}catch(_0x5762fe){_0x330a76['push'](_0x330a76['shift']());}}}(_0x4ee5,0x4bac3));import{existsSync}from'fs';import _0x390260 from'inquirer';import{ApiError,fetchAuthConfig,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive,resolveAuthEnvironmentLocally}from'./cloudProfileSession.js';function _0x2b3b(_0x54d9e8,_0x320d03){_0x54d9e8=_0x54d9e8-0x133;const _0x4ee528=_0x4ee5();let _0x2b3b4d=_0x4ee528[_0x54d9e8];return _0x2b3b4d;}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 _0x4ee5(){const _0x2ff628=['51150ixqxdM','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','4225660pRqjMs','dupKP','424395mtzyvr','\x20baseUrl\x20<url>','envBaseUrl','cdpEndpoint','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','name','40BCLhBA','local','settings','startPath','list','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','12127489yeEPDL','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','myRrP','9BhyDOp','5BkITLh','3149734kbXSdG','2152380FpzvnH','domains','RANGER_SESSION_STATE_PATH=','ZmBeP','mGMpL','533044ZmbINJ','GshVA','No\x20baseUrl\x20configured\x20for\x20profile\x20\x22','source','yZXTO','QRPan','LjUVS','zMdTx','baseUrl','Profile\x20\x22','Local\x20profile','VTfgt','\x20does\x20not\x20exist.','ekQLi','profile','RANGER_TEST_USERNAME','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','TXTxT','ADXBu','8pRJjAM','length','cloud','AJhBm','log','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','env','string'];_0x4ee5=function(){return _0x2ff628;};return _0x4ee5();}export async function resolveProfileContext(_0x736add){const _0x39f39d=_0x2b3b,_0x3424d9={'LyIFv':function(_0x9257d5){return _0x9257d5();},'myRrP':function(_0x56c118,_0x1456bb){return _0x56c118===_0x1456bb;},'yZXTO':function(_0x1ea04a,_0x1f1110){return _0x1ea04a+_0x1f1110;},'mGMpL':'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','zMdTx':function(_0x3acaa8,_0x5a6b20){return _0x3acaa8(_0x5a6b20);},'TXTxT':function(_0x4bfd8f,_0x376048){return _0x4bfd8f(_0x376048);},'ZmBeP':function(_0x33af28,_0x5f2cee){return _0x33af28 instanceof _0x5f2cee;},'MFFqg':function(_0x4d75ef,_0x142b18){return _0x4d75ef+_0x142b18;},'QRPan':'`ranger\x20profile\x20add`\x20to\x20create\x20one.','AJhBm':'cloud','LjUVS':_0x39f39d(0x158),'YjMXu':function(_0x1ce483){return _0x1ce483();},'VTfgt':function(_0x44e84e,_0x7f500a){return _0x44e84e(_0x7f500a);},'ekQLi':function(_0x37f910,_0x2dafc9){return _0x37f910(_0x2dafc9);},'ADXBu':function(_0x15f422,_0x167c59){return _0x15f422(_0x167c59);},'GshVA':function(_0x356754,_0x4ada4c,_0x2de1de){return _0x356754(_0x4ada4c,_0x2de1de);},'uYArD':function(_0x35af72,_0x45a3e6){return _0x35af72(_0x45a3e6);}},_0x47cb26=_0x736add['profile'];let _0x5c60cc=_0x736add[_0x39f39d(0x15c)]??await readActiveProfileName(),_0x537044=null;if(!_0x5c60cc&&process[_0x39f39d(0x167)][_0x39f39d(0x15d)]){const _0x1aee3c=await _0x3424d9['LyIFv'](resolveAdHocProfile);_0x1aee3c&&(_0x5c60cc=_0x1aee3c['name'],_0x537044=_0x1aee3c[_0x39f39d(0x15c)]);}if(!_0x5c60cc)try{const _0x866e22=await listCloudProfiles();if(_0x3424d9[_0x39f39d(0x145)](_0x866e22[_0x39f39d(0x162)],0x1)){const _0x43c83e=_0x866e22[0x0];_0x5c60cc=_0x43c83e['name'],console['log'](_0x39f39d(0x166)+_0x43c83e[_0x39f39d(0x13c)]),console[_0x39f39d(0x165)](_0x39f39d(0x144));}}catch{}if(!_0x5c60cc)throw new Error(_0x3424d9['yZXTO'](_0x3424d9['yZXTO'](_0x3424d9[_0x39f39d(0x152)]('Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a',_0x39f39d(0x15e)),'\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a')+_0x3424d9[_0x39f39d(0x14d)],'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.'));const _0x5b8de2=getEnvDir(_0x5c60cc),_0x20c959=_0x3424d9[_0x39f39d(0x155)](existsSync,_0x5b8de2);let _0x4bead6=_0x537044,_0x493ade=![];if(!_0x4bead6)try{_0x4bead6=await _0x3424d9[_0x39f39d(0x15f)](fetchCloudProfile,_0x5c60cc);if(!_0x4bead6)_0x493ade=!![];}catch(_0x3c6a6d){_0x3424d9[_0x39f39d(0x14c)](_0x3c6a6d,ApiError)&&_0x3c6a6d['status']===0x194&&(_0x493ade=!![]);}if(_0x47cb26&&_0x493ade&&!_0x20c959&&!_0x4bead6)throw new Error(_0x3424d9['yZXTO'](_0x3424d9['MFFqg']('Profile\x20\x22'+_0x47cb26+_0x39f39d(0x13b),_0x39f39d(0x142)),_0x3424d9[_0x39f39d(0x153)]));if(_0x4bead6&&_0x20c959){let _0x5ed2b7=!![];if(isInteractive()){const {source:_0x4c3e3d}=await _0x390260['prompt']([{'type':_0x39f39d(0x141),'name':_0x39f39d(0x151),'message':_0x39f39d(0x157)+_0x5c60cc+_0x39f39d(0x134),'choices':[{'name':'Cloud\x20profile\x20(recommended)','value':_0x3424d9[_0x39f39d(0x164)]},{'name':_0x3424d9[_0x39f39d(0x154)],'value':_0x39f39d(0x13e)}],'default':_0x39f39d(0x163)}]);_0x5ed2b7=_0x3424d9['myRrP'](_0x4c3e3d,_0x3424d9[_0x39f39d(0x164)]);}if(!_0x5ed2b7)_0x4bead6=null;}const _0xfa8f6d=readProfileOverrides(process['cwd'](),_0x5c60cc);let _0x4bf965=null,_0x5dad7a,_0x37268a,_0x1db04,_0x4520ce,_0x46a57c=null,_0x564a23;const _0x4a318b=expandOverrides(_0xfa8f6d),_0x3a3334=_0x3424d9['YjMXu'](readUrlEnvVars);if(_0x4bead6){_0x4bf965=_0x4bead6;const _0x1952eb=_0x4bead6[_0x39f39d(0x13f)]??{},_0x12a482=mergeCloudProfileSettings(_0x1952eb,_0xfa8f6d??undefined),_0x119e21={..._0x4bead6,'settings':_0x12a482};_0x46a57c={'baseUrl':_0x3424d9[_0x39f39d(0x159)](expandString,_0x1952eb['baseUrl']),'startPath':expandString(_0x1952eb[_0x39f39d(0x140)])};const _0x49a4be=await fetchAuthConfig(),_0x4824e5=_0x49a4be?resolveAuthEnvironmentLocally(_0x49a4be,_0x4bead6['environmentKey']):null;_0x564a23=_0x4824e5?.[_0x39f39d(0x14a)]?.[0x0];const _0x5bdb43=resolveProfileUrl({'flagBaseUrl':_0x736add['baseUrl'],'flagStartPath':_0x736add['startPath'],'envBaseUrl':_0x3a3334[_0x39f39d(0x139)],'envStartPath':_0x3a3334['envStartPath'],'projectOverrides':_0x4a318b,'cloudSettings':_0x46a57c,'authEnvironmentDomain':_0x564a23}),_0x29ec8b=process[_0x39f39d(0x167)]['RANGER_SESSION_STATE_PATH'];if(_0x29ec8b){if(!_0x3424d9[_0x39f39d(0x15b)](existsSync,_0x29ec8b))throw new Error(_0x39f39d(0x14b)+_0x29ec8b+_0x39f39d(0x15a));_0x5dad7a=_0x29ec8b,_0x37268a=_0x3424d9['ADXBu'](resolveEnvVars,_0x12a482),_0x1db04=_0x3424d9['ekQLi'](Boolean,_0x37268a[_0x39f39d(0x13a)]);}else{const _0x31e99e=await _0x3424d9[_0x39f39d(0x14f)](resolveCloudProfileSession,_0x119e21,{'effectiveBaseUrl':_0x5bdb43[_0x39f39d(0x156)]});_0x5dad7a=_0x31e99e['authPath'],_0x37268a=resolveEnvVars(_0x31e99e[_0x39f39d(0x13f)]),_0x1db04=Boolean(_0x37268a['cdpEndpoint']),_0x564a23=_0x31e99e['resolvedEnv']?.[_0x39f39d(0x14a)]?.[0x0];}}else{if(!_0x20c959)throw new Error('Profile\x20\x22'+_0x5c60cc+'\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x5c60cc);const _0x577fc2=await _0x3424d9[_0x39f39d(0x160)](loadSettings,_0x5c60cc);_0x37268a=resolveEnvVars(_0x577fc2),_0x1db04=_0x3424d9[_0x39f39d(0x15b)](Boolean,_0x37268a[_0x39f39d(0x13a)]),_0x4520ce=_0x37268a['baseUrl'];}const _0x187a3a=_0x3424d9['uYArD'](resolveProfileUrl,{'flagBaseUrl':_0x736add[_0x39f39d(0x156)],'flagStartPath':_0x736add['startPath'],'envBaseUrl':_0x3a3334[_0x39f39d(0x139)],'envStartPath':_0x3a3334['envStartPath'],'localSettingsBaseUrl':_0x4520ce,'projectOverrides':_0x4a318b,'cloudSettings':_0x46a57c,'authEnvironmentDomain':_0x564a23}),_0x167ab9=_0x187a3a['url']??_0x187a3a['baseUrl'];if(!_0x167ab9&&!_0x1db04)throw new Error(_0x39f39d(0x150)+_0x5c60cc+'\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20'+_0x5c60cc+_0x39f39d(0x138));return{'activeProfile':_0x5c60cc,'resolvedCloudProfile':_0x4bf965,'cloudAuthPath':_0x5dad7a,'resolvedSettings':_0x37268a,'isCdpMode':_0x1db04,'url':_0x167ab9,'startPath':_0x187a3a['startPath']};}function expandString(_0x317fc2){const _0x2ba990=_0x2b3b,_0x13bb0d={'SXhkF':function(_0x47b25f,_0x3f6525){return _0x47b25f!==_0x3f6525;},'VEjLj':function(_0x1f7d8b,_0x46b765){return _0x1f7d8b(_0x46b765);}};if(_0x13bb0d['SXhkF'](typeof _0x317fc2,_0x2ba990(0x168)))return _0x317fc2;return _0x13bb0d['VEjLj'](resolveEnvVars,_0x317fc2);}function expandOverrides(_0x4e7e95){const _0x3b3ced=_0x2b3b,_0xbea8fe={'lBzHB':function(_0x2177a5,_0x46330d){return _0x2177a5===_0x46330d;},'dupKP':_0x3b3ced(0x168),'osIfh':function(_0x284eb3,_0xdca657){return _0x284eb3(_0xdca657);}};if(!_0x4e7e95)return _0x4e7e95;const _0x72525a={..._0x4e7e95};return _0xbea8fe['lBzHB'](typeof _0x72525a['baseUrl'],_0xbea8fe[_0x3b3ced(0x136)])&&(_0x72525a[_0x3b3ced(0x156)]=resolveEnvVars(_0x72525a[_0x3b3ced(0x156)])),typeof _0x72525a[_0x3b3ced(0x140)]===_0xbea8fe['dupKP']&&(_0x72525a[_0x3b3ced(0x140)]=_0xbea8fe['osIfh'](resolveEnvVars,_0x72525a[_0x3b3ced(0x140)])),_0x72525a;}
@@ -1 +1 @@
1
- function _0x6d19(_0x53f5f3,_0x50599f){_0x53f5f3=_0x53f5f3-0x71;const _0x57a02d=_0x57a0();let _0x6d19d1=_0x57a02d[_0x53f5f3];return _0x6d19d1;}const _0x4a6c3a=_0x6d19;function _0x57a0(){const _0x1a767d=['localSettingsBaseUrl','416658XvaHqf','authEnvironmentDomain','lTWZB','bSdNg','envBaseUrl','RANGER_START_PATH','baseUrl','1352946gsoaUQ','LbBZS','HLjgC','cloudSettings','envStartPath','uWuuz','716304KEaSQk','866664cqCRdt','RANGER_BASE_URL','4136517jQovFc','2Plygnf','221348uOiWgz','LiqIL','15FsPwxW','ievXr','133157gyurgu','projectOverrides','startPath','test','env'];_0x57a0=function(){return _0x1a767d;};return _0x57a0();}(function(_0x4b2c23,_0x359ab7){const _0x4c3888=_0x6d19,_0xd494b2=_0x4b2c23();while(!![]){try{const _0x5a9c98=parseInt(_0x4c3888(0x88))/0x1*(parseInt(_0x4c3888(0x83))/0x2)+-parseInt(_0x4c3888(0x72))/0x3+-parseInt(_0x4c3888(0x84))/0x4*(-parseInt(_0x4c3888(0x86))/0x5)+parseInt(_0x4c3888(0x7f))/0x6+parseInt(_0x4c3888(0x79))/0x7+parseInt(_0x4c3888(0x80))/0x8+-parseInt(_0x4c3888(0x82))/0x9;if(_0x5a9c98===_0x359ab7)break;else _0xd494b2['push'](_0xd494b2['shift']());}catch(_0x277350){_0xd494b2['push'](_0xd494b2['shift']());}}}(_0x57a0,0x1db40));function firstDefined(..._0x2265ce){const _0x13ee92=_0x6d19,_0x30b1eb={'LbBZS':function(_0x33a897,_0x186c2d){return _0x33a897!==_0x186c2d;}};for(const _0x17c1d9 of _0x2265ce){if(_0x30b1eb[_0x13ee92(0x7a)](_0x17c1d9,undefined)&&_0x17c1d9!==null&&_0x17c1d9!=='')return _0x17c1d9;}return undefined;}function normalizeAuthEnvironmentDomain(_0x2a0ab0){const _0x10432e=_0x6d19;if(!_0x2a0ab0)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0x10432e(0x8b)](_0x2a0ab0))return _0x2a0ab0;return'https://'+_0x2a0ab0;}export function resolveBaseUrl(_0x1e5189){const _0x40d988=_0x6d19,_0x9e81e2={'uWuuz':function(_0x5774e6,_0x2edd80){return _0x5774e6===_0x2edd80;},'ievXr':function(_0x1f4937,_0x378688,_0x5789f4,_0x8ce6b9,_0x1ffbf8,_0xa13ef,_0x2fa5e4){return _0x1f4937(_0x378688,_0x5789f4,_0x8ce6b9,_0x1ffbf8,_0xa13ef,_0x2fa5e4);}},_0x57cd58=_0x1e5189[_0x40d988(0x89)],_0x3440ae=!!_0x57cd58&&_0x40d988(0x78)in _0x57cd58,_0x269ff9=_0x57cd58?.['baseUrl'],_0xd87123=!(_0x3440ae&&_0x9e81e2[_0x40d988(0x7e)](_0x269ff9,null));return _0x9e81e2[_0x40d988(0x87)](firstDefined,_0x1e5189['flagBaseUrl'],_0x1e5189[_0x40d988(0x76)],_0x1e5189[_0x40d988(0x71)],_0x9e81e2['uWuuz'](typeof _0x269ff9,'string')?_0x269ff9:undefined,_0xd87123?_0x1e5189[_0x40d988(0x7c)]?.[_0x40d988(0x78)]:undefined,_0xd87123?normalizeAuthEnvironmentDomain(_0x1e5189[_0x40d988(0x73)]):undefined);}export function resolveStartPath(_0x25c147){const _0x45c522=_0x6d19,_0x3e2e6c={'HLjgC':function(_0x16e313,_0x15117c){return _0x16e313 in _0x15117c;},'DbVru':_0x45c522(0x8a),'bSdNg':function(_0x2310bb,_0x411eee,_0x196247,_0x3f474d,_0x25bb49){return _0x2310bb(_0x411eee,_0x196247,_0x3f474d,_0x25bb49);},'JtNUf':'string'},_0x4c5e99=_0x25c147['projectOverrides'],_0x1a37cd=!!_0x4c5e99&&_0x3e2e6c[_0x45c522(0x7b)](_0x3e2e6c['DbVru'],_0x4c5e99),_0xecd567=_0x4c5e99?.['startPath'],_0x5dc4ae=!(_0x1a37cd&&_0xecd567===null);return _0x3e2e6c[_0x45c522(0x75)](firstDefined,_0x25c147['flagStartPath'],_0x25c147[_0x45c522(0x7d)],typeof _0xecd567===_0x3e2e6c['JtNUf']?_0xecd567:undefined,_0x5dc4ae?_0x25c147[_0x45c522(0x7c)]?.['startPath']:undefined);}export function joinBaseAndPath(_0x3d1a69,_0x396f43){if(!_0x3d1a69)return undefined;if(!_0x396f43)return _0x3d1a69;const _0x16fb61=_0x3d1a69['endsWith']('/')?_0x3d1a69['slice'](0x0,-0x1):_0x3d1a69,_0x33e4b1=_0x396f43['startsWith']('/')?_0x396f43:'/'+_0x396f43;return _0x16fb61+_0x33e4b1;}export function resolveProfileUrl(_0x1abf7d){const _0x4c8a90=_0x6d19,_0x3f86db={'lTWZB':function(_0x1c5a70,_0x436ef8){return _0x1c5a70(_0x436ef8);},'LiqIL':function(_0x519709,_0x3b8416,_0x231d69){return _0x519709(_0x3b8416,_0x231d69);}},_0x2acf5e=resolveBaseUrl(_0x1abf7d),_0x55f851=_0x3f86db[_0x4c8a90(0x74)](resolveStartPath,_0x1abf7d);return{'baseUrl':_0x2acf5e,'startPath':_0x55f851,'url':_0x3f86db[_0x4c8a90(0x85)](joinBaseAndPath,_0x2acf5e,_0x55f851)};}export function readUrlEnvVars(_0x57ce95=process[_0x4a6c3a(0x8c)]){const _0x853d5b=_0x4a6c3a;return{'envBaseUrl':_0x57ce95[_0x853d5b(0x81)],'envStartPath':_0x57ce95[_0x853d5b(0x77)]};}
1
+ const _0x25694f=_0x23e0;(function(_0x27bc9a,_0x7271c7){const _0x2ae9ef=_0x23e0,_0x3f286b=_0x27bc9a();while(!![]){try{const _0x4d318f=-parseInt(_0x2ae9ef(0x1d2))/0x1+parseInt(_0x2ae9ef(0x1c5))/0x2*(-parseInt(_0x2ae9ef(0x1b6))/0x3)+parseInt(_0x2ae9ef(0x1b4))/0x4+parseInt(_0x2ae9ef(0x1ba))/0x5+parseInt(_0x2ae9ef(0x1c1))/0x6*(parseInt(_0x2ae9ef(0x1c9))/0x7)+parseInt(_0x2ae9ef(0x1c2))/0x8*(-parseInt(_0x2ae9ef(0x1c7))/0x9)+parseInt(_0x2ae9ef(0x1b7))/0xa*(parseInt(_0x2ae9ef(0x1ce))/0xb);if(_0x4d318f===_0x7271c7)break;else _0x3f286b['push'](_0x3f286b['shift']());}catch(_0x1341cc){_0x3f286b['push'](_0x3f286b['shift']());}}}(_0x4a74,0x1a0c1));function _0x4a74(){const _0x33505d=['ZKOjU','8ahrCZV','DnyRP','60111DmVIjk','localSettingsBaseUrl','112KmbcNF','rmdTl','RANGER_START_PATH','startsWith','projectOverrides','33YLxmzD','HqWKu','flagStartPath','aOUtt','115084YMOCbI','syFTZ','envBaseUrl','envStartPath','203220YfZgjg','endsWith','28182BJDWhI','204810PHBrOK','string','flagBaseUrl','175820bdSVSu','startPath','iQXxO','RANGER_BASE_URL','env','KRRLx','JbVoe','64518qfXGow','72YMGYiZ','baseUrl'];_0x4a74=function(){return _0x33505d;};return _0x4a74();}function _0x23e0(_0x339319,_0x2e907b){_0x339319=_0x339319-0x1b2;const _0x4a74ba=_0x4a74();let _0x23e047=_0x4a74ba[_0x339319];return _0x23e047;}function firstDefined(..._0x44eddd){const _0x545f07=_0x23e0,_0x22bd41={'NRRwY':function(_0xd30ebd,_0x5872d2){return _0xd30ebd!==_0x5872d2;},'iQXxO':function(_0x4da7a0,_0x335648){return _0x4da7a0!==_0x335648;}};for(const _0xedcf90 of _0x44eddd){if(_0xedcf90!==undefined&&_0x22bd41['NRRwY'](_0xedcf90,null)&&_0x22bd41[_0x545f07(0x1bc)](_0xedcf90,''))return _0xedcf90;}return undefined;}function normalizeAuthEnvironmentDomain(_0x720646){if(!_0x720646)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i['test'](_0x720646))return _0x720646;return'https://'+_0x720646;}export function resolveBaseUrl(_0x2b76a1){const _0x2018da=_0x23e0,_0x153b6d={'rmdTl':function(_0x46d3aa,_0x456ec0){return _0x46d3aa===_0x456ec0;},'KRRLx':function(_0x4ba3f2,_0x4b57d4,_0x3c7fbd,_0x58eeec,_0x47a2bc,_0x1ca051,_0x1fb3b0){return _0x4ba3f2(_0x4b57d4,_0x3c7fbd,_0x58eeec,_0x47a2bc,_0x1ca051,_0x1fb3b0);},'JbVoe':function(_0x1a6214,_0xc7371){return _0x1a6214===_0xc7371;}},_0x59013c=_0x2b76a1[_0x2018da(0x1cd)],_0x3b0c7d=!!_0x59013c&&_0x2018da(0x1c3)in _0x59013c,_0xa8e026=_0x59013c?.[_0x2018da(0x1c3)],_0x168921=!(_0x3b0c7d&&_0x153b6d[_0x2018da(0x1ca)](_0xa8e026,null));return _0x153b6d[_0x2018da(0x1bf)](firstDefined,_0x2b76a1[_0x2018da(0x1b9)],_0x2b76a1[_0x2018da(0x1b2)],_0x2b76a1[_0x2018da(0x1c8)],_0x153b6d[_0x2018da(0x1c0)](typeof _0xa8e026,_0x2018da(0x1b8))?_0xa8e026:undefined,_0x168921?_0x2b76a1['cloudSettings']?.[_0x2018da(0x1c3)]:undefined,_0x168921?normalizeAuthEnvironmentDomain(_0x2b76a1['authEnvironmentDomain']):undefined);}export function resolveStartPath(_0x2cf3dd){const _0x533c5b=_0x23e0,_0x1a3309={'ZKOjU':_0x533c5b(0x1bb),'syFTZ':function(_0x5af260,_0x2aba06){return _0x5af260===_0x2aba06;},'HqWKu':function(_0x5ba279,_0x190068,_0x148114,_0x1c325d,_0x2a3dfd){return _0x5ba279(_0x190068,_0x148114,_0x1c325d,_0x2a3dfd);}},_0xfff946=_0x2cf3dd[_0x533c5b(0x1cd)],_0xbbf188=!!_0xfff946&&_0x1a3309[_0x533c5b(0x1c4)]in _0xfff946,_0x139715=_0xfff946?.[_0x533c5b(0x1bb)],_0x581444=!(_0xbbf188&&_0x1a3309[_0x533c5b(0x1d3)](_0x139715,null));return _0x1a3309[_0x533c5b(0x1cf)](firstDefined,_0x2cf3dd[_0x533c5b(0x1d0)],_0x2cf3dd[_0x533c5b(0x1b3)],_0x1a3309['syFTZ'](typeof _0x139715,_0x533c5b(0x1b8))?_0x139715:undefined,_0x581444?_0x2cf3dd['cloudSettings']?.['startPath']:undefined);}export function joinBaseAndPath(_0x33b6d3,_0x41b866){const _0x599694=_0x23e0;if(!_0x33b6d3)return undefined;if(!_0x41b866)return _0x33b6d3;const _0xa19925=_0x33b6d3[_0x599694(0x1b5)]('/')?_0x33b6d3['slice'](0x0,-0x1):_0x33b6d3,_0x4246b5=_0x41b866[_0x599694(0x1cc)]('/')?_0x41b866:'/'+_0x41b866;return _0xa19925+_0x4246b5;}export function resolveProfileUrl(_0x1c6e04){const _0x28d489=_0x23e0,_0x408224={'aOUtt':function(_0x20a58c,_0x19b887){return _0x20a58c(_0x19b887);},'DnyRP':function(_0x5ead72,_0x5de426,_0x168c9e){return _0x5ead72(_0x5de426,_0x168c9e);}},_0xa2ad88=_0x408224[_0x28d489(0x1d1)](resolveBaseUrl,_0x1c6e04),_0xb32e97=resolveStartPath(_0x1c6e04);return{'baseUrl':_0xa2ad88,'startPath':_0xb32e97,'url':_0x408224[_0x28d489(0x1c6)](joinBaseAndPath,_0xa2ad88,_0xb32e97)};}export function readUrlEnvVars(_0x19eebe=process[_0x25694f(0x1be)]){const _0x274ebc=_0x25694f;return{'envBaseUrl':_0x19eebe[_0x274ebc(0x1bd)],'envStartPath':_0x19eebe[_0x274ebc(0x1cb)]};}
@@ -1 +1 @@
1
- function _0x279d(){const _0x39271b=['\x20failed\x20(attempt\x20','12630726VThsGN','),\x20retrying\x20in\x20','2831630BwsZRT','77vzGHMn','7230680bhRtTI','3983688aUqkZu','2ifViMD','233944KGtKbm','15zfTxYB','135693xBapvN','5EHLXDd','tXeZz','6197835gQRVDK'];_0x279d=function(){return _0x39271b;};return _0x279d();}function _0xc750(_0xb4882f,_0x30eec2){_0xb4882f=_0xb4882f-0xeb;const _0x279d1d=_0x279d();let _0xc75019=_0x279d1d[_0xb4882f];return _0xc75019;}(function(_0x369f05,_0x197b35){const _0x24649c=_0xc750,_0x43a3c5=_0x369f05();while(!![]){try{const _0x1e7657=-parseInt(_0x24649c(0xec))/0x1*(-parseInt(_0x24649c(0xf7))/0x2)+parseInt(_0x24649c(0xeb))/0x3*(-parseInt(_0x24649c(0xf8))/0x4)+parseInt(_0x24649c(0xed))/0x5*(-parseInt(_0x24649c(0xf6))/0x6)+-parseInt(_0x24649c(0xef))/0x7+-parseInt(_0x24649c(0xf5))/0x8+parseInt(_0x24649c(0xf1))/0x9+-parseInt(_0x24649c(0xf3))/0xa*(-parseInt(_0x24649c(0xf4))/0xb);if(_0x1e7657===_0x197b35)break;else _0x43a3c5['push'](_0x43a3c5['shift']());}catch(_0x58804a){_0x43a3c5['push'](_0x43a3c5['shift']());}}}(_0x279d,0xbd5ce));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x1f5d62,_0x4f432b){const _0x405f05=_0xc750,_0x540668={'oMTKq':function(_0x1ace56,_0x4c5928){return _0x1ace56<=_0x4c5928;},'uJVxQ':function(_0x4de12d){return _0x4de12d();},'VNZdr':function(_0x478825,_0x44f6d1){return _0x478825*_0x44f6d1;},'tXeZz':function(_0x38af5f,_0x530ed9){return _0x38af5f+_0x530ed9;}},_0x426112=_0x4f432b?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x4eed91=_0x4f432b?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x1405b1;for(let _0x40a75a=0x0;_0x540668['oMTKq'](_0x40a75a,_0x426112);_0x40a75a++){try{return await _0x540668['uJVxQ'](_0x1f5d62);}catch(_0x3767be){_0x1405b1=_0x3767be instanceof Error?_0x3767be:new Error(String(_0x3767be));if(_0x40a75a<_0x426112){const _0x2c58cb=_0x540668['VNZdr'](_0x4eed91,Math['pow'](0x2,_0x40a75a));_0x4f432b?.['label']&&console['error'](_0x4f432b['label']+_0x405f05(0xf0)+_0x540668[_0x405f05(0xee)](_0x40a75a,0x1)+'/'+_0x540668['tXeZz'](_0x426112,0x1)+_0x405f05(0xf2)+_0x2c58cb+'ms...'),await new Promise(_0x1c1242=>setTimeout(_0x1c1242,_0x2c58cb));}}}throw _0x1405b1;}
1
+ (function(_0x3f85d7,_0xd4ab6){const _0x1226ea=_0xd8bc,_0x25b38e=_0x3f85d7();while(!![]){try{const _0x43db97=-parseInt(_0x1226ea(0x153))/0x1+parseInt(_0x1226ea(0x151))/0x2+parseInt(_0x1226ea(0x152))/0x3+-parseInt(_0x1226ea(0x156))/0x4*(-parseInt(_0x1226ea(0x15e))/0x5)+parseInt(_0x1226ea(0x15b))/0x6+-parseInt(_0x1226ea(0x15a))/0x7+-parseInt(_0x1226ea(0x155))/0x8*(parseInt(_0x1226ea(0x15c))/0x9);if(_0x43db97===_0xd4ab6)break;else _0x25b38e['push'](_0x25b38e['shift']());}catch(_0x552477){_0x25b38e['push'](_0x25b38e['shift']());}}}(_0x2614,0x404c4));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0xd8bc(_0x5b2018,_0x594bb5){_0x5b2018=_0x5b2018-0x150;const _0x26142d=_0x2614();let _0xd8bc1f=_0x26142d[_0x5b2018];return _0xd8bc1f;}export async function withRetry(_0xe65a04,_0x580837){const _0x4a9db0=_0xd8bc,_0x97ab90={'BvPVs':function(_0xe4a4d6,_0x970443){return _0xe4a4d6<=_0x970443;},'TjjGC':function(_0x44db33){return _0x44db33();},'FwZxt':function(_0xb96820,_0x1d11ff){return _0xb96820<_0x1d11ff;},'dBlmr':function(_0x100edd,_0x1c1cf9){return _0x100edd+_0x1c1cf9;}},_0x1eeff8=_0x580837?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x586273=_0x580837?.[_0x4a9db0(0x154)]??DEFAULT_BASE_DELAY_MS;let _0xe22694;for(let _0x4b7823=0x0;_0x97ab90[_0x4a9db0(0x159)](_0x4b7823,_0x1eeff8);_0x4b7823++){try{return await _0x97ab90['TjjGC'](_0xe65a04);}catch(_0x559f51){_0xe22694=_0x559f51 instanceof Error?_0x559f51:new Error(String(_0x559f51));if(_0x97ab90['FwZxt'](_0x4b7823,_0x1eeff8)){const _0x41bb3b=_0x586273*Math['pow'](0x2,_0x4b7823);_0x580837?.['label']&&console[_0x4a9db0(0x158)](_0x580837['label']+_0x4a9db0(0x157)+_0x97ab90[_0x4a9db0(0x15d)](_0x4b7823,0x1)+'/'+(_0x1eeff8+0x1)+_0x4a9db0(0x150)+_0x41bb3b+'ms...'),await new Promise(_0x3d824f=>setTimeout(_0x3d824f,_0x41bb3b));}}}throw _0xe22694;}function _0x2614(){const _0x16b903=['\x20failed\x20(attempt\x20','error','BvPVs','2578478KmwYUR','141876wiDkTl','7803QGZEVD','dBlmr','1666545ropsvB','),\x20retrying\x20in\x20','377490RAtmWN','1075776jORjoH','269973KsZmWI','baseDelayMs','24DofdXO','4NuXSfo'];_0x2614=function(){return _0x16b903;};return _0x2614();}
@@ -1 +1 @@
1
- const _0x2b63c9=_0x6302;(function(_0x34c756,_0x2f2628){const _0x596d97=_0x6302,_0xa25551=_0x34c756();while(!![]){try{const _0x1eabd2=parseInt(_0x596d97(0x162))/0x1+-parseInt(_0x596d97(0x15c))/0x2+-parseInt(_0x596d97(0x159))/0x3+-parseInt(_0x596d97(0x156))/0x4*(parseInt(_0x596d97(0x152))/0x5)+-parseInt(_0x596d97(0x150))/0x6+parseInt(_0x596d97(0x16f))/0x7*(-parseInt(_0x596d97(0x170))/0x8)+-parseInt(_0x596d97(0x148))/0x9*(-parseInt(_0x596d97(0x15e))/0xa);if(_0x1eabd2===_0x2f2628)break;else _0xa25551['push'](_0xa25551['shift']());}catch(_0x4a4c58){_0xa25551['push'](_0xa25551['shift']());}}}(_0xecf6,0x5d2ab));import*as _0x4c9d66 from'fs';import*as _0x593260 from'path';import*as _0x1f692b from'os';import{execSync}from'child_process';const CACHE_FILE=_0x593260['join'](_0x1f692b[_0x2b63c9(0x158)](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x3ef653=_0x2b63c9,_0x2ba552={'tbZPF':function(_0x4046c2){return _0x4046c2();}};try{if(_0x4c9d66[_0x3ef653(0x147)](CACHE_FILE)){const _0x3d502a=JSON[_0x3ef653(0x16a)](_0x4c9d66[_0x3ef653(0x15b)](CACHE_FILE,_0x3ef653(0x14e)));return{'version':0x3,'sessions':_0x3d502a['sessions']||{},'branches':_0x3d502a[_0x3ef653(0x14d)]||{},'lastEnabledSessionClearedAt':_0x3d502a['lastEnabledSessionClearedAt']};}}catch{}return _0x2ba552['tbZPF'](createEmptyCache);}function saveCache(_0x5dcaaa){const _0x51a0b8=_0x2b63c9;try{const _0x92ab40=_0x593260['dirname'](CACHE_FILE);!_0x4c9d66['existsSync'](_0x92ab40)&&_0x4c9d66[_0x51a0b8(0x151)](_0x92ab40,{'recursive':!![]}),_0x4c9d66[_0x51a0b8(0x149)](CACHE_FILE,JSON[_0x51a0b8(0x155)](_0x5dcaaa,null,0x2));}catch{}}export function getCurrentBranch(){const _0x1a0ec0=_0x2b63c9,_0x1bae79={'FPhjN':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','RDRhc':_0x1a0ec0(0x14e),'NKeib':'pipe'};try{const _0x50888b=execSync(_0x1bae79[_0x1a0ec0(0x16b)],{'encoding':_0x1bae79['RDRhc'],'stdio':['pipe',_0x1bae79['NKeib'],_0x1a0ec0(0x171)]})[_0x1a0ec0(0x175)]();if(!_0x50888b||_0x50888b==='HEAD')return null;return _0x50888b;}catch{return null;}}export function enableBranch(_0x5165e6){const _0x4e8f42=_0x2b63c9,_0x2c4b81={'dsUpO':function(_0x34d957){return _0x34d957();},'ZomVt':function(_0x200dbd,_0x125075){return _0x200dbd(_0x125075);}},_0x175c86=_0x2c4b81[_0x4e8f42(0x16e)](loadCache);_0x175c86[_0x4e8f42(0x14d)][_0x5165e6]=!![],_0x2c4b81['ZomVt'](saveCache,_0x175c86);}export function disableBranch(_0x15b6b6){const _0x211959={'KantS':function(_0x1ffe63,_0x4db89c){return _0x1ffe63(_0x4db89c);}},_0x116a58=loadCache();delete _0x116a58['branches'][_0x15b6b6],_0x211959['KantS'](saveCache,_0x116a58);}export function isBranchEnabled(_0x2514e9){const _0x3065d7=_0x2b63c9,_0x4a3864={'OsGYL':function(_0x1d39ee){return _0x1d39ee();},'UHVwi':function(_0x1480b1,_0x3cb061){return _0x1480b1===_0x3cb061;}},_0x47e169=_0x4a3864['OsGYL'](loadCache);return _0x4a3864[_0x3065d7(0x165)](_0x47e169[_0x3065d7(0x14d)][_0x2514e9],!![]);}function getOrCreateSession(_0x21755f,_0x552c06){const _0xcda40b=_0x2b63c9;return!_0x21755f['sessions'][_0x552c06]&&(_0x21755f['sessions'][_0x552c06]={}),_0x21755f[_0xcda40b(0x157)][_0x552c06];}export function enableSession(_0x56be32){const _0x41b811=_0x2b63c9,_0xdf6adb={'JpjWT':function(_0x5d95e7){return _0x5d95e7();},'RXHkf':function(_0x29be5f){return _0x29be5f();},'XyJVL':function(_0x2c4e05,_0x3456a7){return _0x2c4e05!==_0x3456a7;},'bpbmE':_0x41b811(0x176),'pyaHQ':function(_0xd8bae0,_0x1ea933){return _0xd8bae0(_0x1ea933);}},_0x3709e3=_0xdf6adb[_0x41b811(0x15a)](loadCache),_0xde3a84=getOrCreateSession(_0x3709e3,_0x56be32);_0xde3a84[_0x41b811(0x14a)]=!![];const _0x1921b0=_0xdf6adb['RXHkf'](getCurrentBranch);_0x1921b0&&_0xdf6adb[_0x41b811(0x160)](_0x1921b0,_0xdf6adb['bpbmE'])&&_0x1921b0!=='master'&&(_0x3709e3['branches'][_0x1921b0]=!![],_0xde3a84[_0x41b811(0x167)]=_0x1921b0),_0xdf6adb[_0x41b811(0x15f)](saveCache,_0x3709e3);}export function isSessionEnabled(_0x40bd80){const _0x290f45=_0x2b63c9,_0x1662ff={'zTVuN':function(_0x259e15,_0x28c273){return _0x259e15===_0x28c273;},'dBQUj':_0x290f45(0x14c),'rKUyF':function(_0x10a8d3,_0x142f05){return _0x10a8d3===_0x142f05;}},_0x5b64e7=loadCache(),_0x55783f=getCurrentBranch();if(!_0x55783f||_0x1662ff[_0x290f45(0x15d)](_0x55783f,'main')||_0x55783f===_0x1662ff['dBQUj'])return _0x5b64e7[_0x290f45(0x157)][_0x40bd80]?.['enabled']===!![];const _0x5eb7a0=_0x5b64e7['branches'][_0x55783f]===!![],_0x12e09b=_0x1662ff[_0x290f45(0x14b)](_0x5b64e7[_0x290f45(0x157)][_0x40bd80]?.[_0x290f45(0x14a)],!![]);return _0x5eb7a0||_0x12e09b;}export function disableSession(_0x22c70f){const _0x444596=_0x2b63c9,_0x3d9004={'oAUqa':function(_0x1b21f4,_0x5519ac,_0x5c7c44){return _0x1b21f4(_0x5519ac,_0x5c7c44);}},_0xd11f20=loadCache(),_0x51b2b2=_0x3d9004[_0x444596(0x153)](getOrCreateSession,_0xd11f20,_0x22c70f);_0x51b2b2['enabled']=![],saveCache(_0xd11f20);}export function updateBranchTracking(_0x9440df){const _0x42c8a4=_0x2b63c9,_0x483c52={'kuNEq':function(_0x2167c2){return _0x2167c2();},'GbbsV':function(_0x4111ff){return _0x4111ff();},'ZcXoZ':function(_0x1e303c,_0x4cacc7){return _0x1e303c===_0x4cacc7;},'BuVHf':function(_0x3cd627,_0x2ce6b4){return _0x3cd627!==_0x2ce6b4;},'QCXhx':function(_0x3e1248,_0x4b7c76){return _0x3e1248(_0x4b7c76);}},_0x505b71=_0x483c52['kuNEq'](loadCache),_0x2967bf=_0x505b71[_0x42c8a4(0x157)][_0x9440df];if(!_0x2967bf?.[_0x42c8a4(0x14a)])return;const _0xdd2952=_0x483c52['GbbsV'](getCurrentBranch);if(!_0xdd2952||_0xdd2952==='main'||_0x483c52[_0x42c8a4(0x16c)](_0xdd2952,_0x42c8a4(0x14c)))return;_0x483c52['BuVHf'](_0x2967bf['currentBranch'],_0xdd2952)&&(_0x505b71['branches'][_0xdd2952]=!![],_0x2967bf[_0x42c8a4(0x167)]=_0xdd2952,_0x483c52['QCXhx'](saveCache,_0x505b71));}export function initBranchTracking(_0x20bd6c){const _0x572dd6=_0x2b63c9,_0x371625={'bPkdO':function(_0x4065bb,_0x401dbc){return _0x4065bb===_0x401dbc;},'yfqSN':'master','tHRyV':function(_0x58e669,_0xaa4c3e,_0x42e7e2){return _0x58e669(_0xaa4c3e,_0x42e7e2);},'sdWvW':function(_0x3a7323,_0x90d72d){return _0x3a7323(_0x90d72d);}},_0x392263=loadCache(),_0x4e8232=getCurrentBranch();if(!_0x4e8232||_0x371625['bPkdO'](_0x4e8232,_0x572dd6(0x176))||_0x371625[_0x572dd6(0x173)](_0x4e8232,_0x371625['yfqSN']))return;if(_0x392263['branches'][_0x4e8232]===!![]){const _0x557840=_0x371625[_0x572dd6(0x166)](getOrCreateSession,_0x392263,_0x20bd6c);_0x557840[_0x572dd6(0x14a)]=!![],_0x557840[_0x572dd6(0x167)]=_0x4e8232,_0x371625['sdWvW'](saveCache,_0x392263);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x327726){const _0xa7df3f=_0x2b63c9,_0x5f38c8={'PIVos':function(_0x7b5216,_0x9a5ba3){return _0x7b5216(_0x9a5ba3);}},_0x52ba3b=loadCache(),_0x4b1866=_0x52ba3b[_0xa7df3f(0x157)][_0x327726];_0x4b1866?.[_0xa7df3f(0x14a)]&&(_0x52ba3b[_0xa7df3f(0x172)]=Date[_0xa7df3f(0x163)](),_0x5f38c8['PIVos'](saveCache,_0x52ba3b));}function _0xecf6(){const _0x5e91bd=['4132OzczQd','sessions','homedir','2168487QJlgVR','JpjWT','readFileSync','179320DeqVoh','zTVuN','264790fdQFBU','pyaHQ','XyJVL','MWNnc','421289VaoeJq','now','registeredAt','UHVwi','tHRyV','currentBranch','lastPlanReminderAt','Zdbjo','parse','FPhjN','ZcXoZ','IvzhH','dsUpO','3292163NNOlpn','8zqFXJf','pipe','lastEnabledSessionClearedAt','bPkdO','oKvml','trim','main','dlXao','existsSync','603njxVtp','writeFileSync','enabled','rKUyF','master','branches','utf-8','lastStopReminderAt','2082594MLcUlP','mkdirSync','890eaEqFR','oAUqa','featureId','stringify'];_0xecf6=function(){return _0x5e91bd;};return _0xecf6();}export function shouldAutoEnableAfterClear(_0x5da1ef){const _0x5a25c0={'rICoV':function(_0x5b6784,_0x49e1fb){return _0x5b6784<=_0x49e1fb;}};if(_0x5da1ef!=='clear')return![];const _0x190da5=loadCache(),_0x377b51=_0x190da5['lastEnabledSessionClearedAt'];if(!_0x377b51)return![];const _0xc0ee5e=Date['now']()-_0x377b51;return _0x5a25c0['rICoV'](_0xc0ee5e,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x83cf3d){const _0x382354=_0x2b63c9,_0x2862df={'MWNnc':function(_0x816606){return _0x816606();},'Zdbjo':'main','IvzhH':function(_0x45526b,_0x19d505){return _0x45526b!==_0x19d505;},'Xipec':_0x382354(0x14c),'uTcpQ':function(_0x296226,_0x19d552){return _0x296226(_0x19d552);}},_0x2eb5b8=loadCache(),_0x2b6ad9=getOrCreateSession(_0x2eb5b8,_0x83cf3d);_0x2b6ad9[_0x382354(0x14a)]=!![];const _0x397096=_0x2862df[_0x382354(0x161)](getCurrentBranch);_0x397096&&_0x397096!==_0x2862df[_0x382354(0x169)]&&_0x2862df[_0x382354(0x16d)](_0x397096,_0x2862df['Xipec'])&&(_0x2b6ad9['currentBranch']=_0x397096),delete _0x2eb5b8['lastEnabledSessionClearedAt'],_0x2862df['uTcpQ'](saveCache,_0x2eb5b8);}export function registerSession(_0x3c3c43,_0x338dd2){const _0x48a7f5=_0x2b63c9,_0x33a241={'zfjpz':function(_0x55726c){return _0x55726c();},'nEnjt':function(_0x52c4f3,_0x1b232e){return _0x52c4f3(_0x1b232e);}},_0x3d005b=_0x33a241['zfjpz'](loadCache),_0x4f5921=getOrCreateSession(_0x3d005b,_0x3c3c43);_0x4f5921['featureId']=_0x338dd2,_0x4f5921[_0x48a7f5(0x164)]=new Date()['toISOString'](),_0x33a241['nEnjt'](saveCache,_0x3d005b);}export function getSessionEntry(_0x145d49){const _0x2c0a77=_0x2b63c9,_0x87654={'UUgkC':function(_0x19b761){return _0x19b761();}},_0x9e3dc0=_0x87654['UUgkC'](loadCache),_0x3492c2=_0x9e3dc0[_0x2c0a77(0x157)][_0x145d49];if(_0x3492c2?.[_0x2c0a77(0x154)]&&_0x3492c2?.[_0x2c0a77(0x164)])return{'featureId':_0x3492c2['featureId'],'registeredAt':_0x3492c2[_0x2c0a77(0x164)]};return null;}export function unregisterSession(_0x3cbd0b){const _0x4846e9=_0x2b63c9,_0x3f7123={'OBdSi':function(_0x2a68a2,_0x426517){return _0x2a68a2(_0x426517);}},_0x18e35d=loadCache(),_0x89b596=_0x18e35d[_0x4846e9(0x157)][_0x3cbd0b];_0x89b596&&(delete _0x89b596['featureId'],delete _0x89b596['registeredAt'],_0x3f7123['OBdSi'](saveCache,_0x18e35d));}function _0x6302(_0x4debc8,_0x1aa23e){_0x4debc8=_0x4debc8-0x147;const _0xecf690=_0xecf6();let _0x63025d=_0xecf690[_0x4debc8];return _0x63025d;}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0xdf818a){const _0x59c968=_0x2b63c9,_0x4efc8c={'zKjvs':function(_0x2c32b6,_0x31e0a1,_0xecddf0){return _0x2c32b6(_0x31e0a1,_0xecddf0);}},_0x12ef3a=loadCache(),_0x50404b=_0x4efc8c['zKjvs'](getOrCreateSession,_0x12ef3a,_0xdf818a),_0x275db2=_0x50404b['lastPlanReminderAt']||0x0,_0x1dea3f=Date['now']();if(_0x1dea3f-_0x275db2>=PLAN_REMINDER_INTERVAL_MS)return _0x50404b[_0x59c968(0x168)]=_0x1dea3f,saveCache(_0x12ef3a),!![];return![];}export function shouldShowStopReminder(_0x36d85f){const _0x307418=_0x2b63c9,_0x1746e1={'oKvml':function(_0x732c87){return _0x732c87();},'HVBeP':function(_0x53cb58,_0x5bca99){return _0x53cb58-_0x5bca99;}},_0x53b0b8=_0x1746e1[_0x307418(0x174)](loadCache),_0x5f3393=getOrCreateSession(_0x53b0b8,_0x36d85f),_0x1da8fc=_0x5f3393[_0x307418(0x14f)]||0x0,_0x36962c=Date[_0x307418(0x163)]();if(_0x1746e1['HVBeP'](_0x36962c,_0x1da8fc)>=STOP_REMINDER_INTERVAL_MS)return _0x5f3393['lastStopReminderAt']=_0x36962c,saveCache(_0x53b0b8),!![];return![];}export function hasSessionBeenPrompted(_0x22afbb){const _0xc74ee4={'kFRqt':function(_0x977c3f,_0x2ebf59){return _0x977c3f===_0x2ebf59;}},_0x4d3ac7=loadCache();return _0xc74ee4['kFRqt'](_0x4d3ac7['sessions'][_0x22afbb]?.['prompted'],!![]);}export function markSessionPrompted(_0x59a6ae){const _0x2cb77f=_0x2b63c9,_0x2f80d5={'dlXao':function(_0x51630b){return _0x51630b();}},_0xe57d9d=_0x2f80d5[_0x2cb77f(0x177)](loadCache),_0x58cf4c=getOrCreateSession(_0xe57d9d,_0x59a6ae);_0x58cf4c['prompted']=!![],saveCache(_0xe57d9d);}export function getCacheFile(){return CACHE_FILE;}
1
+ const _0x23dc31=_0x31c9;(function(_0x205446,_0x4b525f){const _0x357bbc=_0x31c9,_0x326cc9=_0x205446();while(!![]){try{const _0xa2af29=-parseInt(_0x357bbc(0x118))/0x1*(-parseInt(_0x357bbc(0xe8))/0x2)+parseInt(_0x357bbc(0x11a))/0x3*(-parseInt(_0x357bbc(0xf3))/0x4)+-parseInt(_0x357bbc(0xf8))/0x5*(parseInt(_0x357bbc(0x103))/0x6)+parseInt(_0x357bbc(0xfd))/0x7*(-parseInt(_0x357bbc(0x104))/0x8)+parseInt(_0x357bbc(0x113))/0x9+parseInt(_0x357bbc(0x116))/0xa*(parseInt(_0x357bbc(0xe4))/0xb)+-parseInt(_0x357bbc(0x10b))/0xc;if(_0xa2af29===_0x4b525f)break;else _0x326cc9['push'](_0x326cc9['shift']());}catch(_0x2bf09a){_0x326cc9['push'](_0x326cc9['shift']());}}}(_0x20a9,0x2399e));import*as _0x84c60d from'fs';function _0x31c9(_0x205deb,_0x220696){_0x205deb=_0x205deb-0xe4;const _0x20a925=_0x20a9();let _0x31c90b=_0x20a925[_0x205deb];return _0x31c90b;}import*as _0x1e52ca from'path';import*as _0x40d74e from'os';import{execSync}from'child_process';const CACHE_FILE=_0x1e52ca[_0x23dc31(0x110)](_0x40d74e[_0x23dc31(0x100)](),_0x23dc31(0x10a),_0x23dc31(0x111));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x53dd6a=_0x23dc31,_0xc584c9={'wgIrW':_0x53dd6a(0x108),'WlUZL':function(_0x5c2064){return _0x5c2064();}};try{if(_0x84c60d['existsSync'](CACHE_FILE)){const _0x1d230f=JSON['parse'](_0x84c60d['readFileSync'](CACHE_FILE,_0xc584c9[_0x53dd6a(0xea)]));return{'version':0x3,'sessions':_0x1d230f['sessions']||{},'branches':_0x1d230f[_0x53dd6a(0x112)]||{},'lastEnabledSessionClearedAt':_0x1d230f['lastEnabledSessionClearedAt']};}}catch{}return _0xc584c9[_0x53dd6a(0x11b)](createEmptyCache);}function saveCache(_0x135e84){const _0x3b80fb=_0x23dc31;try{const _0x2ba4e1=_0x1e52ca[_0x3b80fb(0x119)](CACHE_FILE);!_0x84c60d['existsSync'](_0x2ba4e1)&&_0x84c60d['mkdirSync'](_0x2ba4e1,{'recursive':!![]}),_0x84c60d['writeFileSync'](CACHE_FILE,JSON[_0x3b80fb(0xe9)](_0x135e84,null,0x2));}catch{}}export function getCurrentBranch(){const _0x53f2de=_0x23dc31,_0x2919c9={'mUffC':'utf-8','fQHsm':'pipe','RhKbz':function(_0x2ef14c,_0x3f7d30){return _0x2ef14c===_0x3f7d30;}};try{const _0x2ae50f=execSync('git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':_0x2919c9['mUffC'],'stdio':[_0x2919c9[_0x53f2de(0x109)],_0x53f2de(0x10c),_0x2919c9[_0x53f2de(0x109)]]})[_0x53f2de(0xf9)]();if(!_0x2ae50f||_0x2919c9[_0x53f2de(0x106)](_0x2ae50f,_0x53f2de(0x105)))return null;return _0x2ae50f;}catch{return null;}}export function enableBranch(_0x1bd141){const _0x544e44=loadCache();_0x544e44['branches'][_0x1bd141]=!![],saveCache(_0x544e44);}export function disableBranch(_0x432a2f){const _0x4b03e2=_0x23dc31,_0x45360a={'BadLe':function(_0x26496f,_0x1fe736){return _0x26496f(_0x1fe736);}},_0x153a83=loadCache();delete _0x153a83['branches'][_0x432a2f],_0x45360a[_0x4b03e2(0xf1)](saveCache,_0x153a83);}export function isBranchEnabled(_0x5020fa){const _0x4ff627={'RbVBh':function(_0x1ed22e){return _0x1ed22e();}},_0x3c2623=_0x4ff627['RbVBh'](loadCache);return _0x3c2623['branches'][_0x5020fa]===!![];}function getOrCreateSession(_0x333b8a,_0x57153f){const _0x578d89=_0x23dc31;return!_0x333b8a[_0x578d89(0x101)][_0x57153f]&&(_0x333b8a['sessions'][_0x57153f]={}),_0x333b8a['sessions'][_0x57153f];}export function enableSession(_0x4ba026){const _0xfe01aa=_0x23dc31,_0x1df080={'mzWkK':_0xfe01aa(0xfa),'OIred':function(_0x477cc2,_0x4d1cb6){return _0x477cc2!==_0x4d1cb6;}},_0xa39de3=loadCache(),_0x2f3482=getOrCreateSession(_0xa39de3,_0x4ba026);_0x2f3482['enabled']=!![];const _0x4285b6=getCurrentBranch();_0x4285b6&&_0x4285b6!==_0x1df080['mzWkK']&&_0x1df080[_0xfe01aa(0xfe)](_0x4285b6,'master')&&(_0xa39de3['branches'][_0x4285b6]=!![],_0x2f3482[_0xfe01aa(0xf6)]=_0x4285b6),saveCache(_0xa39de3);}export function isSessionEnabled(_0x14143d){const _0x1871b2=_0x23dc31,_0x30cbfd={'IpzOp':function(_0x4cb2c1,_0x44d7f8){return _0x4cb2c1===_0x44d7f8;},'hVeOS':function(_0x510108,_0x191ce1){return _0x510108===_0x191ce1;},'hLHLb':function(_0x2e7420,_0x35bffd){return _0x2e7420===_0x35bffd;}},_0x230f3e=loadCache(),_0x3a1699=getCurrentBranch();if(!_0x3a1699||_0x3a1699===_0x1871b2(0xfa)||_0x30cbfd['IpzOp'](_0x3a1699,_0x1871b2(0xe6)))return _0x30cbfd['hVeOS'](_0x230f3e['sessions'][_0x14143d]?.['enabled'],!![]);const _0x596f32=_0x230f3e['branches'][_0x3a1699]===!![],_0x52dab6=_0x30cbfd[_0x1871b2(0x10f)](_0x230f3e['sessions'][_0x14143d]?.[_0x1871b2(0x11c)],!![]);return _0x596f32||_0x52dab6;}export function disableSession(_0x1c364b){const _0x4d45b9={'YCpSA':function(_0x17e839,_0x1dc785,_0x306b6e){return _0x17e839(_0x1dc785,_0x306b6e);}},_0x14de4c=loadCache(),_0x20301e=_0x4d45b9['YCpSA'](getOrCreateSession,_0x14de4c,_0x1c364b);_0x20301e['enabled']=![],saveCache(_0x14de4c);}export function updateBranchTracking(_0x3cfb76){const _0x460fd2=_0x23dc31,_0x3edd80={'YsDmv':'main','cuOjK':function(_0x64cc3b,_0x26b543){return _0x64cc3b===_0x26b543;}},_0x3566f2=loadCache(),_0x1c1356=_0x3566f2[_0x460fd2(0x101)][_0x3cfb76];if(!_0x1c1356?.[_0x460fd2(0x11c)])return;const _0x26c7cf=getCurrentBranch();if(!_0x26c7cf||_0x26c7cf===_0x3edd80['YsDmv']||_0x3edd80['cuOjK'](_0x26c7cf,_0x460fd2(0xe6)))return;_0x1c1356[_0x460fd2(0xf6)]!==_0x26c7cf&&(_0x3566f2['branches'][_0x26c7cf]=!![],_0x1c1356['currentBranch']=_0x26c7cf,saveCache(_0x3566f2));}export function initBranchTracking(_0x30da93){const _0x316880=_0x23dc31,_0x137819={'FIWXr':function(_0x457438){return _0x457438();},'oHvLn':_0x316880(0xfa),'JuHKY':function(_0x5881d7,_0x2512eb){return _0x5881d7===_0x2512eb;},'Mfjco':function(_0x4dd0b5,_0x1a1069,_0x3b5473){return _0x4dd0b5(_0x1a1069,_0x3b5473);}},_0x59cf09=loadCache(),_0x315aa8=_0x137819[_0x316880(0xf7)](getCurrentBranch);if(!_0x315aa8||_0x315aa8===_0x137819[_0x316880(0xf2)]||_0x137819['JuHKY'](_0x315aa8,'master'))return;if(_0x137819['JuHKY'](_0x59cf09['branches'][_0x315aa8],!![])){const _0x1efadd=_0x137819[_0x316880(0xf5)](getOrCreateSession,_0x59cf09,_0x30da93);_0x1efadd[_0x316880(0x11c)]=!![],_0x1efadd[_0x316880(0xf6)]=_0x315aa8,saveCache(_0x59cf09);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x5ce3c){const _0x3d6fe9=_0x23dc31,_0x5a5119={'gGjSD':function(_0x4584b3){return _0x4584b3();},'yVwNs':function(_0x5cb97f,_0x363c72){return _0x5cb97f(_0x363c72);}},_0x474e9b=_0x5a5119[_0x3d6fe9(0xed)](loadCache),_0x23160f=_0x474e9b['sessions'][_0x5ce3c];_0x23160f?.['enabled']&&(_0x474e9b[_0x3d6fe9(0xf4)]=Date['now'](),_0x5a5119['yVwNs'](saveCache,_0x474e9b));}export function shouldAutoEnableAfterClear(_0x1721d7){const _0x23d292=_0x23dc31,_0x13ec35={'SvkjC':function(_0x36c831,_0x2aadcf){return _0x36c831!==_0x2aadcf;},'fBcNS':'clear','sgSFY':function(_0x291230){return _0x291230();},'vXZiY':function(_0x26531c,_0x5e0739){return _0x26531c-_0x5e0739;}};if(_0x13ec35[_0x23d292(0xe7)](_0x1721d7,_0x13ec35[_0x23d292(0x11d)]))return![];const _0x321275=_0x13ec35[_0x23d292(0xff)](loadCache),_0x558f46=_0x321275[_0x23d292(0xf4)];if(!_0x558f46)return![];const _0x3414f4=_0x13ec35['vXZiY'](Date['now'](),_0x558f46);return _0x3414f4<=CLEAR_AUTO_ENABLE_WINDOW_MS;}function _0x20a9(){const _0x100e9f=['gGjSD','yvPZh','ctSMr','lastPlanReminderAt','BadLe','oHvLn','251288LjIrXi','lastEnabledSessionClearedAt','Mfjco','currentBranch','FIWXr','1084255lglmsl','trim','main','SfOFp','whnNJ','683389urRPKY','OIred','sgSFY','homedir','sessions','prompted','6YNUYWB','8fmKMbg','HEAD','RhKbz','registeredAt','utf-8','fQHsm','.claude','474552MmOMwq','pipe','UDQyr','PDmXw','hLHLb','join','.ranger_cache.json','branches','2596617hUBjxz','orlrP','lastStopReminderAt','10neNLbm','FewLo','76343gApvzR','dirname','6IaTtcJ','WlUZL','enabled','fBcNS','1187428snKlii','toISOString','master','SvkjC','6PkxHUI','stringify','wgIrW','VuzBo','featureId'];_0x20a9=function(){return _0x100e9f;};return _0x20a9();}export function autoEnableAfterClear(_0x653087){const _0x412e0c=_0x23dc31,_0xf125c7={'VuzBo':function(_0x522d7d){return _0x522d7d();},'DiVzd':function(_0x4cee9e,_0x527565){return _0x4cee9e!==_0x527565;},'ctSMr':'main','orlrP':'master'},_0x202395=_0xf125c7[_0x412e0c(0xeb)](loadCache),_0x15bbdf=getOrCreateSession(_0x202395,_0x653087);_0x15bbdf['enabled']=!![];const _0x3e02f5=getCurrentBranch();_0x3e02f5&&_0xf125c7['DiVzd'](_0x3e02f5,_0xf125c7[_0x412e0c(0xef)])&&_0x3e02f5!==_0xf125c7[_0x412e0c(0x114)]&&(_0x15bbdf[_0x412e0c(0xf6)]=_0x3e02f5),delete _0x202395[_0x412e0c(0xf4)],saveCache(_0x202395);}export function registerSession(_0xc9fb8d,_0x2ea936){const _0x34caa5=_0x23dc31,_0x3e160e={'UDQyr':function(_0x870f3a){return _0x870f3a();}},_0x34405a=_0x3e160e[_0x34caa5(0x10d)](loadCache),_0x191f2d=getOrCreateSession(_0x34405a,_0xc9fb8d);_0x191f2d['featureId']=_0x2ea936,_0x191f2d[_0x34caa5(0x107)]=new Date()[_0x34caa5(0xe5)](),saveCache(_0x34405a);}export function getSessionEntry(_0x2e91bf){const _0x62275a=loadCache(),_0x384a38=_0x62275a['sessions'][_0x2e91bf];if(_0x384a38?.['featureId']&&_0x384a38?.['registeredAt'])return{'featureId':_0x384a38['featureId'],'registeredAt':_0x384a38['registeredAt']};return null;}export function unregisterSession(_0x1585ea){const _0x277b46=_0x23dc31,_0x4c2616=loadCache(),_0x4e0960=_0x4c2616['sessions'][_0x1585ea];_0x4e0960&&(delete _0x4e0960[_0x277b46(0xec)],delete _0x4e0960[_0x277b46(0x107)],saveCache(_0x4c2616));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x35117f){const _0x2875b7=_0x23dc31,_0x3f0c54={'whnNJ':function(_0x4c4825,_0x4f0e18,_0x291e55){return _0x4c4825(_0x4f0e18,_0x291e55);},'yvPZh':function(_0x43cc0d,_0x379483){return _0x43cc0d>=_0x379483;},'PDmXw':function(_0x19d0af,_0x13369a){return _0x19d0af-_0x13369a;},'zTxQA':function(_0x3840e5,_0x55a92f){return _0x3840e5(_0x55a92f);}},_0x5d82a3=loadCache(),_0x175d2d=_0x3f0c54[_0x2875b7(0xfc)](getOrCreateSession,_0x5d82a3,_0x35117f),_0x14c803=_0x175d2d[_0x2875b7(0xf0)]||0x0,_0x58bf9a=Date['now']();if(_0x3f0c54[_0x2875b7(0xee)](_0x3f0c54[_0x2875b7(0x10e)](_0x58bf9a,_0x14c803),PLAN_REMINDER_INTERVAL_MS))return _0x175d2d[_0x2875b7(0xf0)]=_0x58bf9a,_0x3f0c54['zTxQA'](saveCache,_0x5d82a3),!![];return![];}export function shouldShowStopReminder(_0x20ff95){const _0x2c8d8b=_0x23dc31,_0x10d0ac={'tJNWB':function(_0x255750){return _0x255750();},'eZIJD':function(_0x397a70,_0x469722,_0x32243c){return _0x397a70(_0x469722,_0x32243c);},'FewLo':function(_0x315c72,_0x4f0b94){return _0x315c72-_0x4f0b94;},'oSDxZ':function(_0x16022a,_0x474683){return _0x16022a(_0x474683);}},_0x17ef48=_0x10d0ac['tJNWB'](loadCache),_0x173d7f=_0x10d0ac['eZIJD'](getOrCreateSession,_0x17ef48,_0x20ff95),_0x15c3d8=_0x173d7f[_0x2c8d8b(0x115)]||0x0,_0x4a7a3c=Date['now']();if(_0x10d0ac[_0x2c8d8b(0x117)](_0x4a7a3c,_0x15c3d8)>=STOP_REMINDER_INTERVAL_MS)return _0x173d7f[_0x2c8d8b(0x115)]=_0x4a7a3c,_0x10d0ac['oSDxZ'](saveCache,_0x17ef48),!![];return![];}export function hasSessionBeenPrompted(_0x3d18ff){const _0x5f1b61=_0x23dc31,_0x782157={'SfOFp':function(_0x4dd0c8,_0x4a964e){return _0x4dd0c8===_0x4a964e;}},_0x5d74a6=loadCache();return _0x782157[_0x5f1b61(0xfb)](_0x5d74a6['sessions'][_0x3d18ff]?.[_0x5f1b61(0x102)],!![]);}export function markSessionPrompted(_0x280781){const _0xcae59a=loadCache(),_0x5de98a=getOrCreateSession(_0xcae59a,_0x280781);_0x5de98a['prompted']=!![],saveCache(_0xcae59a);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x554c9f=_0x3f79;(function(_0x516fd9,_0x5c8a35){const _0x103fc4=_0x3f79,_0x5e8021=_0x516fd9();while(!![]){try{const _0x458fa7=parseInt(_0x103fc4(0x1ca))/0x1+parseInt(_0x103fc4(0x1aa))/0x2+parseInt(_0x103fc4(0x17f))/0x3+-parseInt(_0x103fc4(0x19a))/0x4+parseInt(_0x103fc4(0x198))/0x5+-parseInt(_0x103fc4(0x1a4))/0x6*(-parseInt(_0x103fc4(0x17a))/0x7)+parseInt(_0x103fc4(0x1bc))/0x8*(-parseInt(_0x103fc4(0x19b))/0x9);if(_0x458fa7===_0x5c8a35)break;else _0x5e8021['push'](_0x5e8021['shift']());}catch(_0x12dbf8){_0x5e8021['push'](_0x5e8021['shift']());}}}(_0x14ae,0x5330f));import{readFile,writeFile,mkdir,unlink}from'fs/promises';function _0x14ae(){const _0xd75efe=['string','icDRj','169631LFjmAg','join','yDImM','fhhKi','--no-sandbox','MAzHU','doQtu','KftFd','length','fcsuq','CldXj','cdpEndpoint','yskQT','stringify','ZwKGI','Pniep','mKKUs','boolean','path','message','args','entries','aceKE','--disable-setuid-sandbox','YOJyQ','replace','settings.json','TikFp','ijUXA','XCEth','7UOfOdJ','env','Default','tEqsm','CStAk','88986VTbGEv','Environment\x20variable\x20','ranger-config','TjPAm','FMJXC','QUaXX','fromEntries','allowInsecureLocalhost','extraHTTPHeaders','EzcMJ','storageStatePath','SgvQn','--disable-web-security','includes','userAgent','locations','legacy','BOSMV','file','rangerDir','auth.json','configPath','local','SyOtL','contextOptions','2573380FBTtwx','sessions','2079124EIOSwl','9bAkpWt','safeMode','hmBiS','smOSl','PwjNg','BAhsP','headers','LdKQg','push','4043172SAhthC','now','rXQdN','zPWrL','startsWith','Refusing\x20to\x20write\x20profile\x20\x22','345146gqlydW','GQAeK','pvDWj','location','VPZtu','playwright-cli','EXBPK','forWrite','filter','storageState','setupHeaders','--allow-insecure-localhost','ENOENT','guQiQ','luZFc','rwQCa','object','cwZup','5598976VVgKoJ','browser','headless','baseUrl','nova-user-data','--allow-running-insecure-content','clipboard-write','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','catch','KtReA','plUkT','allow'];_0x14ae=function(){return _0xd75efe;};return _0x14ae();}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(_0x2b73a4,_0x251e5c){const _0x1f4d52=_0x3f79,_0x320318={'TjPAm':function(_0x1eeb37,_0xc04ef2,_0x295f17){return _0x1eeb37(_0xc04ef2,_0x295f17);},'Pniep':function(_0x556ebe,_0x1d493e,_0x356b79){return _0x556ebe(_0x1d493e,_0x356b79);},'GQAeK':function(_0x4d0596,_0x3cece5){return _0x4d0596(_0x3cece5);},'KftFd':function(_0x18c7f6,_0xe75291){return _0x18c7f6!==_0xe75291;}},_0x47a39b=join(_0x251e5c,'ci',_0x2b73a4),_0x4897dc=join(_0x251e5c,'local',_0x2b73a4),_0x5a2f2d=_0x320318[_0x1f4d52(0x182)](join,_0x251e5c,_0x2b73a4),_0x5f0ee3=join(_0x251e5c,_0x1f4d52(0x195)),_0x3b9c50=_0x320318[_0x1f4d52(0x1d9)](join,_0x251e5c,'ci');if(_0x320318['GQAeK'](existsSync,_0x47a39b))return _0x47a39b;if(_0x320318[_0x1f4d52(0x1ab)](existsSync,_0x4897dc))return _0x4897dc;if(existsSync(_0x5a2f2d)&&(_0x5a2f2d!==_0x5f0ee3&&_0x320318[_0x1f4d52(0x1d1)](_0x5a2f2d,_0x3b9c50)?!![]:hasLegacyProfileFiles(_0x5a2f2d)))return _0x5a2f2d;return null;}export function getEnvDir(_0x3750de,_0x6d3efa={}){const _0x3ca41c=_0x3f79,_0x391c69={'icDRj':function(_0x135cac){return _0x135cac();},'BZAQB':function(_0x384db7,_0xef3a52){return _0x384db7(_0xef3a52);},'enSvv':function(_0x45567d,_0x5d7be2,_0x20b3f5){return _0x45567d(_0x5d7be2,_0x20b3f5);},'ghiqT':function(_0x3fa760,_0x581384,_0x2a7b8a){return _0x3fa760(_0x581384,_0x2a7b8a);}},_0x53bcb7=_0x391c69[_0x3ca41c(0x1c9)](getRangerDir),_0x4c507b=findEnvInRoot(_0x3750de,_0x53bcb7);if(_0x4c507b){if(_0x6d3efa['forWrite']&&_0x391c69['BZAQB'](isLegacyEnvPath,_0x4c507b))throw legacyWriteError(_0x3750de,_0x4c507b);return _0x4c507b;}const _0x2a9415=getRangerHomeDir();if(_0x2a9415!==_0x53bcb7){const _0xd4dd64=_0x391c69['enSvv'](findEnvInRoot,_0x3750de,_0x2a9415);if(_0xd4dd64){if(_0x6d3efa[_0x3ca41c(0x1b1)]&&isLegacyEnvPath(_0xd4dd64))throw _0x391c69['ghiqT'](legacyWriteError,_0x3750de,_0xd4dd64);return _0xd4dd64;}}const _0x53f786=join(_0x2a9415,'local',_0x3750de);if(_0x6d3efa[_0x3ca41c(0x1b1)])throw legacyWriteError(_0x3750de,_0x53f786);return _0x53f786;}function isLegacyEnvPath(_0x24f448){const _0x48ce1a=_0x3f79,_0x1638a4={'oFxZZ':function(_0x2ad0e6,_0x1c44c1){return _0x2ad0e6+_0x1c44c1;},'VPZtu':function(_0x4ffe1f,_0x48cc61){return _0x4ffe1f===_0x48cc61;}},_0x5a3e7d=getRangerDir(),_0x23b1c9=getRangerHomeDir();for(const _0x3d33ea of new Set([_0x5a3e7d,_0x23b1c9])){const _0x54634e=_0x3d33ea['endsWith']('/')?_0x3d33ea:_0x1638a4['oFxZZ'](_0x3d33ea,'/');if(_0x1638a4[_0x48ce1a(0x1ae)](_0x24f448,_0x3d33ea)||_0x24f448[_0x48ce1a(0x1a8)](_0x54634e))return!![];}return![];}function legacyWriteError(_0xceadff,_0x36f4ac){const _0x3ef170=_0x3f79,_0x49dbc4={'Pcuqq':function(_0x1bd721,_0x5742a5){return _0x1bd721+_0x5742a5;}};return new Error(_0x49dbc4['Pcuqq'](_0x3ef170(0x1a9)+_0xceadff+'\x22\x20to\x20legacy\x20path\x20'+_0x36f4ac+'.\x0a','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a')+'\x20\x20ranger\x20profile\x20add\x20<name>\x0a'+'See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.');}export function findExistingEnv(_0x3a09e4,_0x1c31df){const _0x24af23=_0x3f79,_0x9df5b9={'fqQTT':function(_0x2a29f4){return _0x2a29f4();},'GaIXh':_0x24af23(0x195),'smOSl':function(_0x5cc738,_0x99d404,_0x35945d){return _0x5cc738(_0x99d404,_0x35945d);},'pvDWj':function(_0x504bf4,_0xb2c78d,_0x3d76c8){return _0x504bf4(_0xb2c78d,_0x3d76c8);},'nbdMi':function(_0xfecb1b,_0x2e13dd){return _0xfecb1b(_0x2e13dd);},'tEqsm':'legacy','FMJXC':function(_0x1c7d8f,_0x540c8f){return _0x1c7d8f===_0x540c8f;}},_0x3b94d3=_0x1c31df?.[_0x24af23(0x192)],_0x45a71a=_0x3b94d3?[_0x3b94d3]:[getRangerDir(),_0x9df5b9['fqQTT'](getRangerHomeDir)][_0x24af23(0x1b2)]((_0x3fea21,_0x3565fd,_0x27073a)=>_0x27073a['indexOf'](_0x3fea21)===_0x3565fd),_0x3d2c4e=_0x1c31df?.[_0x24af23(0x18e)]??['ci','local',_0x24af23(0x18f)];for(const _0x21789f of _0x45a71a){const _0x236bf2=join(_0x21789f,_0x9df5b9['GaIXh']),_0x2230d0=_0x9df5b9[_0x24af23(0x19e)](join,_0x21789f,'ci'),_0xfd2227=[{'location':'ci','path':join(_0x21789f,'ci',_0x3a09e4)},{'location':'local','path':join(_0x21789f,_0x24af23(0x195),_0x3a09e4)},{'location':'legacy','path':_0x9df5b9[_0x24af23(0x1ac)](join,_0x21789f,_0x3a09e4)}];for(const _0x1198eb of _0xfd2227){if(_0x3d2c4e[_0x24af23(0x18c)](_0x1198eb[_0x24af23(0x1ad)])&&_0x9df5b9['nbdMi'](existsSync,_0x1198eb['path'])){if(_0x1198eb['location']===_0x9df5b9[_0x24af23(0x17d)]&&(_0x9df5b9[_0x24af23(0x183)](_0x1198eb['path'],_0x236bf2)||_0x9df5b9['FMJXC'](_0x1198eb[_0x24af23(0x1dc)],_0x2230d0))&&!hasLegacyProfileFiles(_0x1198eb['path']))continue;return{'path':_0x1198eb[_0x24af23(0x1dc)],'location':_0x1198eb[_0x24af23(0x1ad)]};}}}return null;}function hasLegacyProfileFiles(_0x157bbb){const _0x14a359=_0x3f79,_0x735718={'rwQCa':function(_0x5b3223,_0x5e07bd,_0x5a0176){return _0x5b3223(_0x5e07bd,_0x5a0176);}};return existsSync(join(_0x157bbb,'settings.json'))||existsSync(join(_0x157bbb,_0x14a359(0x193)))||existsSync(_0x735718[_0x14a359(0x1b9)](join,_0x157bbb,'auth.json.enc'));}export function isEnvCi(_0x58c881){const _0x5102a3=_0x3f79,_0x35d864={'XCEth':function(_0x168280,_0x4557ed){return _0x168280(_0x4557ed);},'cHOst':function(_0x1a2e64){return _0x1a2e64();},'gkrqm':function(_0x56aa51,_0x117f3e){return _0x56aa51!==_0x117f3e;},'ZKiUd':function(_0x280de9){return _0x280de9();}};if(_0x35d864[_0x5102a3(0x179)](existsSync,join(getRangerDir(),'ci',_0x58c881)))return!![];const _0x4f7f57=_0x35d864['cHOst'](getRangerHomeDir);if(_0x35d864['gkrqm'](_0x4f7f57,_0x35d864['ZKiUd'](getRangerDir))&&existsSync(join(_0x4f7f57,'ci',_0x58c881)))return!![];return![];}export async function cleanupTempFiles(_0x470ad4){const _0x1d4241=_0x3f79,_0x57181e=[_0x470ad4['tempAuthPath'],_0x470ad4[_0x1d4241(0x194)]]['filter'](Boolean);await Promise['all'](_0x57181e['map'](_0x2a28cc=>unlink(_0x2a28cc)[_0x1d4241(0x1c4)](_0x45f273=>{const _0x36bb6c=_0x1d4241;_0x45f273['code']!==_0x36bb6c(0x1b6)&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x2a28cc+':',_0x45f273['message']);})));}export function getSettingsPath(_0x55935a){const _0x1a2258=_0x3f79,_0x360eac={'tJgvp':function(_0x4d7bcb,_0x29f318,_0x2efa5e){return _0x4d7bcb(_0x29f318,_0x2efa5e);},'dOJOD':function(_0x50c76,_0x196fe8){return _0x50c76(_0x196fe8);}};return _0x360eac['tJgvp'](join,_0x360eac['dOJOD'](getEnvDir,_0x55935a),_0x1a2258(0x1e4));}export async function loadSettings(_0x305e4a){const _0x42e7df=_0x3f79,_0x383b59={'CldXj':function(_0x4459af,_0x52deeb){return _0x4459af(_0x52deeb);}},_0x136da5=getSettingsPath(_0x305e4a);if(!_0x383b59[_0x42e7df(0x1d4)](existsSync,_0x136da5))return{};try{const _0xac9e38=await readFile(_0x136da5,'utf-8');return JSON['parse'](_0xac9e38);}catch{return{};}}export async function saveSettings(_0x1886e5,_0x511e0d){const _0x3ca22e=_0x3f79,_0x326a50={'PwjNg':function(_0x1deb67,_0x986cf8){return _0x1deb67(_0x986cf8);},'ijUXA':function(_0x4429e9,_0x44ee39,_0x48feac){return _0x4429e9(_0x44ee39,_0x48feac);}},_0x5ba327=_0x326a50['PwjNg'](getSettingsPath,_0x1886e5),_0x1ceac2=dirname(_0x5ba327);!_0x326a50[_0x3ca22e(0x19f)](existsSync,_0x1ceac2)&&await _0x326a50[_0x3ca22e(0x178)](mkdir,_0x1ceac2,{'recursive':!![]}),await writeFile(_0x5ba327,JSON[_0x3ca22e(0x1d7)](_0x511e0d,null,0x2));}export function resolveEnvVars(_0x7ad348){const _0x206ffb=_0x3f79,_0x394575={'BAhsP':function(_0x5df3cf,_0x2de831){return _0x5df3cf===_0x2de831;},'yDImM':_0x206ffb(0x1ba)};if(typeof _0x7ad348===_0x206ffb(0x1c8))return _0x7ad348[_0x206ffb(0x1e3)](/\$\{(\w+)\}/g,(_0x48d26e,_0x27ca5e)=>{const _0x234e9c=_0x206ffb,_0x115cb7=process[_0x234e9c(0x17b)][_0x27ca5e];if(_0x394575[_0x234e9c(0x1a0)](_0x115cb7,undefined))throw new Error(_0x234e9c(0x180)+_0x27ca5e+'\x20is\x20not\x20set');return _0x115cb7;});if(Array['isArray'](_0x7ad348))return _0x7ad348['map'](resolveEnvVars);if(_0x7ad348&&_0x394575['BAhsP'](typeof _0x7ad348,_0x394575[_0x206ffb(0x1cc)]))return Object[_0x206ffb(0x185)](Object['entries'](_0x7ad348)['map'](([_0x1eac86,_0x5d87cf])=>[_0x1eac86,resolveEnvVars(_0x5d87cf)]));return _0x7ad348;}const isRecord=_0x2bb659=>typeof _0x2bb659==='object'&&_0x2bb659!==null&&!Array['isArray'](_0x2bb659),asRecord=_0x38a50d=>isRecord(_0x38a50d)?_0x38a50d:undefined,mergeHeaders=(_0x49c7cd,_0x51502b)=>{const _0x370b56=_0x3f79,_0x52d7e7={'EzcMJ':function(_0x5bee22,_0x38a320){return _0x5bee22??_0x38a320;}},_0x1e9569={..._0x52d7e7[_0x370b56(0x188)](_0x49c7cd,{}),..._0x51502b??{}};return Object['keys'](_0x1e9569)[_0x370b56(0x1d2)]?_0x1e9569:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=[_0x554c9f(0x18b),_0x554c9f(0x1c1),'--unsafely-treat-insecure-origin-as-secure=http://localhost',_0x554c9f(0x1b5)];export function buildBrowserOptionsFromSettings(_0x303939,_0x40209f={}){const _0x17e069=_0x554c9f,_0x5d18eb={'BOSMV':function(_0x580f21,_0x238032){return _0x580f21===_0x238032;},'COkOm':_0x17e069(0x1db),'cwZup':'string','fhhKi':function(_0x450221,_0x1f0e17){return _0x450221(_0x1f0e17);}},_0x153902=asRecord(_0x303939[_0x17e069(0x1bd)]),_0x2858b7={...asRecord(_0x153902?.['launchOptions'])??{}};_0x5d18eb[_0x17e069(0x190)](typeof _0x40209f[_0x17e069(0x1be)],_0x5d18eb['COkOm'])&&(_0x2858b7[_0x17e069(0x1be)]=_0x40209f[_0x17e069(0x1be)]);if(_0x303939['safeMode']){const _0xeb22ad=_0x2858b7['args']??[],_0x57159b=SAFE_MODE_ARGS['filter'](_0x5cceeb=>!_0xeb22ad['includes'](_0x5cceeb));_0x2858b7[_0x17e069(0x1de)]=[..._0xeb22ad,..._0x57159b];}if(_0x303939[_0x17e069(0x186)]){const _0x1ac9c6=_0x2858b7['args']??[],_0x5d5476=ALLOW_LOCALHOST_ARGS[_0x17e069(0x1b2)](_0x4f733c=>!_0x1ac9c6[_0x17e069(0x18c)](_0x4f733c));_0x2858b7['args']=[..._0x1ac9c6,..._0x5d5476];}const _0xcc959b={...asRecord(_0x153902?.[_0x17e069(0x197)])??{}};_0xcc959b['ignoreHTTPSErrors']=!![];typeof _0x303939['userAgent']===_0x5d18eb[_0x17e069(0x1bb)]&&(_0xcc959b['userAgent']=_0x303939[_0x17e069(0x18d)]);const _0x511c2e=mergeHeaders(_0x5d18eb[_0x17e069(0x1cd)](asRecord,_0xcc959b['extraHTTPHeaders']),asRecord(_0x303939['headers']));return _0x511c2e?_0xcc959b['extraHTTPHeaders']=_0x511c2e:delete _0xcc959b['extraHTTPHeaders'],_0x40209f[_0x17e069(0x189)]&&(_0xcc959b[_0x17e069(0x1b3)]=_0x40209f['storageStatePath']),{'launchOptions':_0x2858b7,'contextOptions':_0xcc959b};}function _0x3f79(_0x5c5bc2,_0xee93ef){_0x5c5bc2=_0x5c5bc2-0x177;const _0x14ae55=_0x14ae();let _0x3f79d4=_0x14ae55[_0x5c5bc2];return _0x3f79d4;}export async function resolveProfileStorageState(_0x2df6f0){const _0x1796fa={'smyEv':function(_0x1a8391,_0x2d084f){return _0x1a8391(_0x2d084f);}};return resolveLocalAuthPath(_0x1796fa['smyEv'](getEnvDir,_0x2df6f0));}async function resolveLocalAuthPath(_0x5945d1){const _0x4f55ad=_0x554c9f,_0x198a7d={'KtReA':function(_0x3a0606,_0x3451b1,_0x47b405){return _0x3a0606(_0x3451b1,_0x47b405);},'yskQT':function(_0x4afa3d){return _0x4afa3d();},'CStAk':_0x4f55ad(0x1c3),'rXQdN':function(_0x54c24e,_0x32e539,_0x5685f2){return _0x54c24e(_0x32e539,_0x5685f2);},'SyOtL':function(_0x22df20){return _0x22df20();}},_0x244f94=join(_0x5945d1,'auth.json.enc'),_0x14a6e8=_0x198a7d[_0x4f55ad(0x1c5)](join,_0x5945d1,'auth.json');if(existsSync(_0x244f94))try{const _0x2c98a6=await _0x198a7d[_0x4f55ad(0x1d6)](getToken);if(!_0x2c98a6)throw new Error(_0x198a7d[_0x4f55ad(0x17e)]);const _0x13854b=await readFile(_0x244f94),_0x655b91=decrypt(_0x13854b,_0x2c98a6),_0x3ba2b6=_0x198a7d[_0x4f55ad(0x1a6)](join,_0x198a7d[_0x4f55ad(0x196)](tmpdir),'ranger-auth-'+Date['now']()+'.json');return await writeFile(_0x3ba2b6,_0x655b91),{'storageStatePath':_0x3ba2b6,'tempAuthPath':_0x3ba2b6};}catch(_0x2f2599){const _0x49f45d=_0x2f2599 instanceof Error?_0x2f2599[_0x4f55ad(0x1dd)]:String(_0x2f2599);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x49f45d);}if(existsSync(_0x14a6e8))return{'storageStatePath':_0x14a6e8};return{};}export async function buildPlaywrightConfig(_0x29b6b0,_0x3a5669,_0x501beb,_0x257160,_0x419755){const _0x8296e0=_0x554c9f,_0x20bce9={'JmsTm':'stagehand','BFBzE':function(_0x589d63,_0x151763){return _0x589d63(_0x151763);}};if(_0x419755)return buildPlaywrightConfigCore(_0x29b6b0,_0x419755,_0x3a5669,_0x501beb,_0x257160,_0x20bce9['JmsTm']);const {storageStatePath:_0x225446,tempAuthPath:_0x42240f}=await _0x20bce9['BFBzE'](resolveLocalAuthPath,getEnvDir(_0x3a5669));try{const _0x39ae6d=await buildPlaywrightConfigCore(_0x29b6b0,_0x225446,_0x3a5669,_0x501beb,_0x257160,'stagehand');return{..._0x39ae6d,'tempAuthPath':_0x42240f};}catch(_0x546bcf){_0x42240f&&await unlink(_0x42240f)[_0x8296e0(0x1c4)](()=>{});throw _0x546bcf;}}export async function buildPlaywrightConfigCore(_0x4a9689,_0x2ddb80,_0x46d2ad,_0x932fb7,_0x4be56c,_0x3f8606='stagehand'){const _0x5a3d80=_0x554c9f,_0xe71b44={'QVLSv':_0x5a3d80(0x1ce),'zPWrL':_0x5a3d80(0x1e1),'LdKQg':'clipboard-read','gDngU':_0x5a3d80(0x1c2),'auqcu':function(_0x1115d0){return _0x1115d0();},'MAzHU':function(_0x5b10a3,_0x5437f7,_0x222fb3,_0x56c4be){return _0x5b10a3(_0x5437f7,_0x222fb3,_0x56c4be);},'QUaXX':_0x5a3d80(0x199),'gnCoO':'chromium','EmVTh':function(_0x51ae88,_0x4e06e0){return _0x51ae88===_0x4e06e0;},'Mregm':'playwright-cli','ZwKGI':_0x5a3d80(0x191),'PnAtm':'core','plUkT':'vision','aceKE':function(_0x16ea05,_0x536b47,_0x2dd434){return _0x16ea05(_0x536b47,_0x2dd434);},'doQtu':_0x5a3d80(0x181),'NkVKh':function(_0x22e1a3,_0x25ae5d,_0x1a1d28){return _0x22e1a3(_0x25ae5d,_0x1a1d28);},'kVcVY':'-cli'},_0x4bb230=_0x932fb7||_0xe71b44['auqcu'](randomUUID),_0x5cc0e0=_0xe71b44[_0x5a3d80(0x1cf)](join,getRangerDir(),_0xe71b44[_0x5a3d80(0x184)],_0x4bb230),_0x4116fb=Boolean(_0x4a9689[_0x5a3d80(0x1d5)]),_0x10f3aa=_0x4116fb?{'browserName':_0xe71b44['gnCoO'],'cdpEndpoint':_0x4a9689['cdpEndpoint']}:((()=>{const _0x4f4d8c=_0x5a3d80,{launchOptions:_0x185a58,contextOptions:_0x396d5c}=buildBrowserOptionsFromSettings(_0x4a9689,{'headless':_0x4be56c?![]:_0x4a9689['headless']??!![],'storageStatePath':_0x2ddb80});if(process['getuid']?.()===0x0){const _0x1b2fa2=[_0xe71b44['QVLSv'],_0xe71b44[_0x4f4d8c(0x1a7)]],_0x3f999a=_0x185a58['args']??[],_0x538ed7=_0x1b2fa2[_0x4f4d8c(0x1b2)](_0x4eb84b=>!_0x3f999a[_0x4f4d8c(0x18c)](_0x4eb84b));_0x185a58[_0x4f4d8c(0x1de)]=[..._0x3f999a,..._0x538ed7];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x185a58,'contextOptions':{..._0x396d5c,'permissions':[_0xe71b44[_0x4f4d8c(0x1a2)],_0xe71b44['gDngU']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x54213=_0xe71b44['EmVTh'](_0x3f8606,_0xe71b44['Mregm'])?{'browser':_0x10f3aa,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5cc0e0,'outputMode':_0xe71b44[_0x5a3d80(0x1d8)],'codegen':'none'}:{'name':_0x46d2ad,'browser':_0x10f3aa,'capabilities':[_0xe71b44['PnAtm'],'tabs','install','pdf',_0xe71b44[_0x5a3d80(0x1c6)]],'imageResponses':_0x5a3d80(0x1c7),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5cc0e0};if(!_0x4116fb){const _0x7e41e3=_0x54213['browser'],_0x5588b8=_0x7e41e3['contextOptions'];if(_0x5588b8['userAgent']===undefined)delete _0x5588b8['userAgent'];if(_0x5588b8['storageState']===undefined)delete _0x5588b8[_0x5a3d80(0x1b3)];}const _0x8c2f9f=_0xe71b44[_0x5a3d80(0x1e0)](join,tmpdir(),_0xe71b44[_0x5a3d80(0x1d0)]);!existsSync(_0x8c2f9f)&&await _0xe71b44['NkVKh'](mkdir,_0x8c2f9f,{'recursive':!![]});const _0x42cb2b=_0x3f8606===_0x5a3d80(0x1af)?_0xe71b44['kVcVY']:'',_0x22667e=join(_0x8c2f9f,_0x46d2ad+'-'+Date[_0x5a3d80(0x1a5)]()+_0x42cb2b+'.json');return await _0xe71b44['NkVKh'](writeFile,_0x22667e,JSON['stringify'](_0x54213,null,0x2)),{'configPath':_0x22667e,'storageStatePath':_0x2ddb80};}export async function buildPlaywrightCliConfig(_0x4b5ff5,_0x2428b6,_0x183e0e,_0x7ca621,_0x316ab5){const _0x574da1=_0x554c9f,_0x342efc={'YOJyQ':_0x574da1(0x1af),'mKKUs':function(_0x4e60d9,_0x9c85df){return _0x4e60d9(_0x9c85df);},'JKwge':function(_0x22b493,_0x2af3d8,_0x24d2ac,_0x4013cd,_0x4c7256,_0x2429d8,_0x3db733){return _0x22b493(_0x2af3d8,_0x24d2ac,_0x4013cd,_0x4c7256,_0x2429d8,_0x3db733);}};if(_0x316ab5)return buildPlaywrightConfigCore(_0x4b5ff5,_0x316ab5,_0x2428b6,_0x183e0e,_0x7ca621,_0x342efc['YOJyQ']);const {storageStatePath:_0x3e3736,tempAuthPath:_0x306715}=await resolveLocalAuthPath(_0x342efc[_0x574da1(0x1da)](getEnvDir,_0x2428b6));try{const _0x1b6c09=await _0x342efc['JKwge'](buildPlaywrightConfigCore,_0x4b5ff5,_0x3e3736,_0x2428b6,_0x183e0e,_0x7ca621,_0x342efc[_0x574da1(0x1e2)]);return{..._0x1b6c09,'tempAuthPath':_0x306715};}catch(_0x2b2154){_0x306715&&await _0x342efc['mKKUs'](unlink,_0x306715)[_0x574da1(0x1c4)](()=>{});throw _0x2b2154;}}export async function buildNovaActCliConfig(_0x5c00d4,_0x1ab36b,_0x1c09b0,_0x22b971,_0x5e04ac){const _0x333150=_0x554c9f,_0x80d989={'TikFp':function(_0x448191,_0x3835b8){return _0x448191(_0x3835b8);},'MUIvD':function(_0x190e86){return _0x190e86();},'SgvQn':function(_0x40d3ea,_0x372626,_0x87fd2a,_0x57ba60){return _0x40d3ea(_0x372626,_0x87fd2a,_0x57ba60);},'VVaCx':'sessions','guQiQ':function(_0x4865af,_0xd7d6ec,_0x27eb3b){return _0x4865af(_0xd7d6ec,_0x27eb3b);},'EXBPK':_0x333150(0x17c),'yAvUV':function(_0x49a0e1,_0x1254e2){return _0x49a0e1===_0x1254e2;},'KJvyZ':'string','Rccen':function(_0x54743a,_0x13f17d){return _0x54743a(_0x13f17d);}},{storageStatePath:_0x32c861,tempAuthPath:_0x377384}=_0x5e04ac?{'storageStatePath':_0x5e04ac,'tempAuthPath':undefined}:await _0x80d989['TikFp'](resolveLocalAuthPath,getEnvDir(_0x1ab36b)),_0x3cd8d2=_0x1c09b0||_0x80d989['MUIvD'](randomUUID),_0x80bb6d=_0x80d989[_0x333150(0x18a)](join,_0x80d989['MUIvD'](getRangerDir),_0x80d989['VVaCx'],_0x3cd8d2),_0x23591e=join(_0x80bb6d,_0x333150(0x1c0)),_0x5454be=_0x32c861?_0x80d989[_0x333150(0x1b7)](join,_0x23591e,_0x80d989[_0x333150(0x1b0)]):undefined,{launchOptions:_0x1916db,contextOptions:_0x454f14}=buildBrowserOptionsFromSettings(_0x5c00d4,{'headless':_0x22b971?![]:_0x5c00d4[_0x333150(0x1be)]??!![],'storageStatePath':_0x32c861});if(process['getuid']?.()===0x0){const _0x224053=['--no-sandbox','--disable-setuid-sandbox'],_0x433d97=_0x1916db['args']??[],_0x169e3c=_0x224053[_0x333150(0x1b2)](_0x5b37e=>!_0x433d97['includes'](_0x5b37e));_0x1916db['args']=[..._0x433d97,..._0x169e3c];}const _0x46c4e8=_0x80d989['yAvUV'](typeof _0x1916db['executablePath'],_0x80d989['KJvyZ'])?_0x1916db['executablePath']:_0x32c861?chromium['executablePath']():undefined;return{'storageStatePath':_0x32c861,'tempAuthPath':_0x377384,'baseUrl':_0x5c00d4[_0x333150(0x1bf)],'headless':Boolean(_0x1916db[_0x333150(0x1be)]),'userDataDir':_0x23591e,'browserProfilePath':_0x5454be,'executablePath':_0x46c4e8,'launchArgs':Array['isArray'](_0x1916db[_0x333150(0x1de)])?_0x1916db[_0x333150(0x1de)][_0x333150(0x1b2)](_0x3a6199=>typeof _0x3a6199===_0x333150(0x1c8)):[],'userAgent':typeof _0x454f14[_0x333150(0x18d)]===_0x80d989['KJvyZ']?_0x454f14['userAgent']:undefined,'extraHTTPHeaders':_0x454f14[_0x333150(0x187)],'allowInsecureLocalhost':_0x80d989['Rccen'](Boolean,_0x5c00d4['allowInsecureLocalhost']),'safeMode':_0x80d989[_0x333150(0x177)](Boolean,_0x5c00d4[_0x333150(0x19c)]),'cdpEndpoint':_0x5c00d4['cdpEndpoint'],'isCdpMode':Boolean(_0x5c00d4[_0x333150(0x1d5)])};}export function getNestedValue(_0x39bae9,_0x4f341f){const _0x730379={'ZXVos':'object'},_0x19f30b=parseKeyPath(_0x4f341f);let _0x13b409=_0x39bae9;for(const _0x2c514a of _0x19f30b){if(_0x13b409===null||_0x13b409===undefined||typeof _0x13b409!==_0x730379['ZXVos'])return undefined;_0x13b409=_0x13b409[_0x2c514a];}return _0x13b409;}export function setNestedValue(_0x22e8a1,_0x49f38c,_0x28d22f){const _0x10dac4=_0x554c9f,_0x16daf0={'Oinub':function(_0x41aacb,_0xb18899){return _0x41aacb<_0xb18899;},'fcsuq':function(_0x2ae25c,_0x326387){return _0x2ae25c-_0x326387;}},_0x3ebe08=parseKeyPath(_0x49f38c);let _0x44c939=_0x22e8a1;for(let _0x1208aa=0x0;_0x16daf0['Oinub'](_0x1208aa,_0x16daf0['fcsuq'](_0x3ebe08[_0x10dac4(0x1d2)],0x1));_0x1208aa++){const _0x1d8c97=_0x3ebe08[_0x1208aa];(!(_0x1d8c97 in _0x44c939)||typeof _0x44c939[_0x1d8c97]!=='object')&&(_0x44c939[_0x1d8c97]={}),_0x44c939=_0x44c939[_0x1d8c97];}_0x44c939[_0x3ebe08[_0x16daf0[_0x10dac4(0x1d3)](_0x3ebe08['length'],0x1)]]=_0x28d22f;}export function deleteNestedValue(_0x346971,_0x2bb4cb){const _0x21b2df=_0x554c9f,_0x2d3414={'hmBiS':function(_0x4de72f,_0x2f2534){return _0x4de72f<_0x2f2534;},'FxykZ':_0x21b2df(0x1ba),'luZFc':function(_0x560555,_0x4f8b19){return _0x560555===_0x4f8b19;}},_0x10f453=parseKeyPath(_0x2bb4cb);let _0x22c33c=_0x346971;for(let _0x816018=0x0;_0x2d3414[_0x21b2df(0x19d)](_0x816018,_0x10f453['length']-0x1);_0x816018++){if(_0x22c33c===null||_0x22c33c===undefined||typeof _0x22c33c!==_0x2d3414['FxykZ'])return![];_0x22c33c=_0x22c33c[_0x10f453[_0x816018]];}if(_0x2d3414[_0x21b2df(0x1b8)](_0x22c33c,null)||_0x2d3414[_0x21b2df(0x1b8)](_0x22c33c,undefined)||typeof _0x22c33c!=='object')return![];const _0x20faf2=_0x10f453[_0x10f453[_0x21b2df(0x1d2)]-0x1];if(_0x20faf2 in _0x22c33c)return delete _0x22c33c[_0x20faf2],!![];return![];}function parseKeyPath(_0x59ca44){const _0x1657d5=_0x554c9f,_0xdff0c3={'arDvW':_0x1657d5(0x1b4)},_0x255780=_0x59ca44['split']('.');return _0x255780[0x0]==='header'&&(_0x255780[0x0]=_0x1657d5(0x1a1)),_0x255780[0x0]==='setupHeader'&&(_0x255780[0x0]=_0xdff0c3['arDvW']),_0x255780;}export function formatSettings(_0x4483b7,_0x1323bb=0x0){const _0x4faf9f=_0x554c9f,_0x5261cc={'JEzWI':_0x4faf9f(0x1ba)},_0x2ae5a7=[],_0xb54906='\x20\x20'['repeat'](_0x1323bb);for(const [_0x4d7731,_0x1b6337]of Object['entries'](_0x4483b7)){if(_0x1b6337===undefined)continue;if(typeof _0x1b6337===_0x5261cc['JEzWI']&&_0x1b6337!==null){_0x2ae5a7['push'](''+_0xb54906+_0x4d7731+':');for(const [_0x3daa13,_0x482bc7]of Object[_0x4faf9f(0x1df)](_0x1b6337)){_0x2ae5a7[_0x4faf9f(0x1a3)](_0xb54906+'\x20\x20'+_0x3daa13+':\x20'+_0x482bc7);}}else _0x2ae5a7['push'](''+_0xb54906+_0x4d7731+':\x20'+_0x1b6337);}return _0x2ae5a7[_0x4faf9f(0x1cb)]('\x0a');}
1
+ const _0x1f5ae2=_0x229b;(function(_0x172002,_0x48fe7a){const _0x405074=_0x229b,_0x110fe5=_0x172002();while(!![]){try{const _0x3a65d1=-parseInt(_0x405074(0x109))/0x1*(parseInt(_0x405074(0x17c))/0x2)+-parseInt(_0x405074(0x14d))/0x3*(parseInt(_0x405074(0x17b))/0x4)+-parseInt(_0x405074(0x15c))/0x5*(parseInt(_0x405074(0x15e))/0x6)+parseInt(_0x405074(0x10b))/0x7*(-parseInt(_0x405074(0x11f))/0x8)+-parseInt(_0x405074(0x124))/0x9*(parseInt(_0x405074(0x120))/0xa)+-parseInt(_0x405074(0x11d))/0xb+parseInt(_0x405074(0x13b))/0xc*(parseInt(_0x405074(0x159))/0xd);if(_0x3a65d1===_0x48fe7a)break;else _0x110fe5['push'](_0x110fe5['shift']());}catch(_0x5afbfb){_0x110fe5['push'](_0x110fe5['shift']());}}}(_0x4e99,0xcd2b7));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';function _0x229b(_0x2b1856,_0x57e032){_0x2b1856=_0x2b1856-0x103;const _0x4e9976=_0x4e99();let _0x229be2=_0x4e9976[_0x2b1856];return _0x229be2;}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(_0x4e92bb,_0x4291c2){const _0x34107e=_0x229b,_0x441295={'BrQva':function(_0x4808aa,_0x5c0c40){return _0x4808aa(_0x5c0c40);}},_0x218c41=join(_0x4291c2,'ci',_0x4e92bb),_0x50bc5c=join(_0x4291c2,'local',_0x4e92bb),_0x2b9406=join(_0x4291c2,_0x4e92bb),_0x4fe812=join(_0x4291c2,'local'),_0x5006d8=join(_0x4291c2,'ci');if(_0x441295['BrQva'](existsSync,_0x218c41))return _0x218c41;if(existsSync(_0x50bc5c))return _0x50bc5c;if(_0x441295[_0x34107e(0x14c)](existsSync,_0x2b9406)&&(_0x2b9406!==_0x4fe812&&_0x2b9406!==_0x5006d8?!![]:hasLegacyProfileFiles(_0x2b9406)))return _0x2b9406;return null;}export function getEnvDir(_0x53ef0a,_0x6b36d7={}){const _0x57dd58=_0x229b,_0x2528b5=getRangerDir(),_0xf5d34a=findEnvInRoot(_0x53ef0a,_0x2528b5);if(_0xf5d34a){if(_0x6b36d7[_0x57dd58(0x173)]&&isLegacyEnvPath(_0xf5d34a))throw legacyWriteError(_0x53ef0a,_0xf5d34a);return _0xf5d34a;}const _0x2aa670=getRangerHomeDir();if(_0x2aa670!==_0x2528b5){const _0x1d3966=findEnvInRoot(_0x53ef0a,_0x2aa670);if(_0x1d3966){if(_0x6b36d7['forWrite']&&isLegacyEnvPath(_0x1d3966))throw legacyWriteError(_0x53ef0a,_0x1d3966);return _0x1d3966;}}const _0x24c192=join(_0x2aa670,'local',_0x53ef0a);if(_0x6b36d7[_0x57dd58(0x173)])throw legacyWriteError(_0x53ef0a,_0x24c192);return _0x24c192;}function isLegacyEnvPath(_0x40d26a){const _0x428397=_0x229b,_0x40e80e={'BmaDH':function(_0x2011d5){return _0x2011d5();},'IgNiq':function(_0x24adda,_0x4eb207){return _0x24adda===_0x4eb207;}},_0x642ced=getRangerDir(),_0x557580=_0x40e80e[_0x428397(0x175)](getRangerHomeDir);for(const _0x46729d of new Set([_0x642ced,_0x557580])){const _0x3146dd=_0x46729d['endsWith']('/')?_0x46729d:_0x46729d+'/';if(_0x40e80e[_0x428397(0x177)](_0x40d26a,_0x46729d)||_0x40d26a[_0x428397(0x164)](_0x3146dd))return!![];}return![];}function _0x4e99(){const _0x165e6a=['4omlvts','904NYdamO','object','OFymY','Failed\x20to\x20decrypt\x20auth\x20state:\x20','HVCtb','cdpEndpoint','KUmsM','JfJFn','length','auth.json.enc','nUkvi','location','allow','EoUSw','1549sueDhu','headers','2053079zBfcty','UtgSR','ENOENT','psWpe','includes','NhCyS','entries','--unsafely-treat-insecure-origin-as-secure=http://localhost','zXjWv','DacPh','warn','safeMode','pQqLI','locations','vmhvc','XDzIJ','join','wpAVV','2704845NUxAzL','XYeCO','40FQcCEz','1850mdgIwb','uDkVQ','ubALL','playwright-cli','25587mIIalc','auth.json','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','RUnLZ','zJSZq','njrGC','configPath','clipboard-write','stringify','NYnHG','Refusing\x20to\x20write\x20profile\x20\x22','WeDxr','push','browser','ILlWJ','getuid','faODc','zLwtG','replace','extraHTTPHeaders','-cli','rTALg','tHKoK','696YERvtT','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','catch','qhyLl','ignoreHTTPSErrors','map','NOYvv','install','headless','UEdMY','chromium','now','MlVMU','dJnJv','legacy','sessions','OfjSn','BrQva','1386759Nvjvuh','userAgent','DksFE','OPTbG','fTWXe','filter','DkRiS','GAPpj','all','CRmKP','--no-sandbox','SddED','1063842PkmXbM','vision','CpckI','5iHHbvG','storageState','3031566aymKqS','soKOu','args','amFyb','Zpzrb','qkxdT','startsWith','tabs','--disable-setuid-sandbox','local','PbqkN','LhWpl','QcsZy','xNWbK','setupHeader','SEhZO','message','string','QYQhk','cFahT','ranger-config','forWrite','path','BmaDH','tempAuthPath','IgNiq','contextOptions','--disable-features=WebBluetooth','stagehand'];_0x4e99=function(){return _0x165e6a;};return _0x4e99();}function legacyWriteError(_0x5f0551,_0x147e1a){const _0x4b70a7=_0x229b,_0x4ec00e={'cGlMO':function(_0x2dc75f,_0x2f076a){return _0x2dc75f+_0x2f076a;},'mxboy':function(_0x51840a,_0x40a0c4){return _0x51840a+_0x40a0c4;}};return new Error(_0x4ec00e['cGlMO'](_0x4ec00e['mxboy'](_0x4b70a7(0x12e)+_0x5f0551+'\x22\x20to\x20legacy\x20path\x20'+_0x147e1a+'.\x0a','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a')+_0x4b70a7(0x126),'See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.'));}export function findExistingEnv(_0x2b512c,_0xb649df){const _0x21cbaf=_0x229b,_0x3a3310={'tHKoK':function(_0x361753,_0x361e56,_0x438da9){return _0x361753(_0x361e56,_0x438da9);},'YwYYT':_0x21cbaf(0x167),'aKACG':function(_0x521c22,_0x17807d,_0x5f3925,_0x2ef12d){return _0x521c22(_0x17807d,_0x5f3925,_0x2ef12d);},'njrGC':_0x21cbaf(0x149),'DacPh':function(_0x48a34c,_0x45d2d1,_0xd447e8){return _0x48a34c(_0x45d2d1,_0xd447e8);},'RUnLZ':function(_0x165fc7,_0x3fb550){return _0x165fc7===_0x3fb550;},'MlVMU':function(_0x3aa4ab,_0x3a8206){return _0x3aa4ab(_0x3a8206);}},_0x201297=_0xb649df?.['rangerDir'],_0x2f9e20=_0x201297?[_0x201297]:[getRangerDir(),getRangerHomeDir()][_0x21cbaf(0x152)]((_0x47b171,_0x3c2deb,_0x3aff9f)=>_0x3aff9f['indexOf'](_0x47b171)===_0x3c2deb),_0x3dbb21=_0xb649df?.[_0x21cbaf(0x118)]??['ci','local','legacy'];for(const _0x182440 of _0x2f9e20){const _0x4dc448=_0x3a3310['tHKoK'](join,_0x182440,_0x3a3310['YwYYT']),_0x5264e5=_0x3a3310[_0x21cbaf(0x13a)](join,_0x182440,'ci'),_0x1ca088=[{'location':'ci','path':_0x3a3310['aKACG'](join,_0x182440,'ci',_0x2b512c)},{'location':'local','path':_0x3a3310['aKACG'](join,_0x182440,_0x3a3310['YwYYT'],_0x2b512c)},{'location':_0x3a3310[_0x21cbaf(0x129)],'path':_0x3a3310[_0x21cbaf(0x114)](join,_0x182440,_0x2b512c)}];for(const _0x15c716 of _0x1ca088){if(_0x3dbb21[_0x21cbaf(0x10f)](_0x15c716[_0x21cbaf(0x106)])&&existsSync(_0x15c716['path'])){if(_0x15c716[_0x21cbaf(0x106)]===_0x3a3310[_0x21cbaf(0x129)]&&(_0x3a3310[_0x21cbaf(0x127)](_0x15c716[_0x21cbaf(0x174)],_0x4dc448)||_0x15c716['path']===_0x5264e5)&&!_0x3a3310[_0x21cbaf(0x147)](hasLegacyProfileFiles,_0x15c716['path']))continue;return{'path':_0x15c716['path'],'location':_0x15c716[_0x21cbaf(0x106)]};}}}return null;}function hasLegacyProfileFiles(_0x5a94b7){const _0x5374c6=_0x229b,_0x36d49e={'VUTKy':function(_0x1c9f48,_0x2d4c5c,_0x4f1161){return _0x1c9f48(_0x2d4c5c,_0x4f1161);},'mXlNA':function(_0x4bdf2d,_0x457d5f){return _0x4bdf2d(_0x457d5f);},'wpAVV':function(_0x1645b9,_0x5de80e,_0x20dda8){return _0x1645b9(_0x5de80e,_0x20dda8);},'JFrsJ':'auth.json.enc'};return existsSync(_0x36d49e['VUTKy'](join,_0x5a94b7,'settings.json'))||existsSync(join(_0x5a94b7,_0x5374c6(0x125)))||_0x36d49e['mXlNA'](existsSync,_0x36d49e[_0x5374c6(0x11c)](join,_0x5a94b7,_0x36d49e['JFrsJ']));}export function isEnvCi(_0x2ecf8b){const _0x2457f3=_0x229b,_0x3df9c2={'nmlzj':function(_0x363b9c,_0x5a6ae2){return _0x363b9c(_0x5a6ae2);},'wapUE':function(_0x51dd6a){return _0x51dd6a();},'amFyb':function(_0x3b569c,_0x47b5a4){return _0x3b569c(_0x47b5a4);},'nUkvi':function(_0x2e16ea,_0x27d960,_0x3b1d88,_0x3ab84f){return _0x2e16ea(_0x27d960,_0x3b1d88,_0x3ab84f);}};if(_0x3df9c2['nmlzj'](existsSync,join(_0x3df9c2['wapUE'](getRangerDir),'ci',_0x2ecf8b)))return!![];const _0x439dc9=getRangerHomeDir();if(_0x439dc9!==_0x3df9c2['wapUE'](getRangerDir)&&_0x3df9c2[_0x2457f3(0x161)](existsSync,_0x3df9c2[_0x2457f3(0x105)](join,_0x439dc9,'ci',_0x2ecf8b)))return!![];return![];}export async function cleanupTempFiles(_0x3b50a3){const _0x47cf85=_0x229b,_0x5b95fe=[_0x3b50a3[_0x47cf85(0x176)],_0x3b50a3[_0x47cf85(0x12a)]][_0x47cf85(0x152)](Boolean);await Promise[_0x47cf85(0x155)](_0x5b95fe['map'](_0x49f1f7=>unlink(_0x49f1f7)['catch'](_0x2ee55b=>{const _0x4bc779=_0x47cf85;_0x2ee55b['code']!==_0x4bc779(0x10d)&&console[_0x4bc779(0x115)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x49f1f7+':',_0x2ee55b[_0x4bc779(0x16e)]);})));}export function getSettingsPath(_0x27a5d7){return join(getEnvDir(_0x27a5d7),'settings.json');}export async function loadSettings(_0x26bb23){const _0x204ffc=_0x229b,_0x3c06a6={'Zpzrb':function(_0x55d614,_0xe1adbf){return _0x55d614(_0xe1adbf);},'zVazb':function(_0x30925e,_0x5e62bc,_0x3e3fd5){return _0x30925e(_0x5e62bc,_0x3e3fd5);}},_0x1427a3=getSettingsPath(_0x26bb23);if(!_0x3c06a6[_0x204ffc(0x162)](existsSync,_0x1427a3))return{};try{const _0x32daee=await _0x3c06a6['zVazb'](readFile,_0x1427a3,'utf-8');return JSON['parse'](_0x32daee);}catch{return{};}}export async function saveSettings(_0x2eeff0,_0x1810b8){const _0x159d1e=_0x229b,_0x5e5cbe={'ubALL':function(_0x38677a,_0x96e4f){return _0x38677a(_0x96e4f);},'QmSzv':function(_0x12b428,_0x2bdf8a){return _0x12b428(_0x2bdf8a);},'CVuWG':function(_0x420ffd,_0x4758e0,_0x5e66fc){return _0x420ffd(_0x4758e0,_0x5e66fc);}},_0x4215fc=_0x5e5cbe[_0x159d1e(0x122)](getSettingsPath,_0x2eeff0),_0x5ce65a=dirname(_0x4215fc);!_0x5e5cbe['QmSzv'](existsSync,_0x5ce65a)&&await mkdir(_0x5ce65a,{'recursive':!![]}),await _0x5e5cbe['CVuWG'](writeFile,_0x4215fc,JSON['stringify'](_0x1810b8,null,0x2));}export function resolveEnvVars(_0x69e56a){const _0x4b0b83=_0x229b,_0x4d9614={'EoUSw':'string','UEdMY':_0x4b0b83(0x17d)};if(typeof _0x69e56a===_0x4d9614[_0x4b0b83(0x108)])return _0x69e56a[_0x4b0b83(0x136)](/\$\{(\w+)\}/g,(_0x42bb8a,_0x4f5bab)=>{const _0x5f0549=process['env'][_0x4f5bab];if(_0x5f0549===undefined)throw new Error('Environment\x20variable\x20'+_0x4f5bab+'\x20is\x20not\x20set');return _0x5f0549;});if(Array['isArray'](_0x69e56a))return _0x69e56a[_0x4b0b83(0x140)](resolveEnvVars);if(_0x69e56a&&typeof _0x69e56a===_0x4d9614[_0x4b0b83(0x144)])return Object['fromEntries'](Object[_0x4b0b83(0x111)](_0x69e56a)['map'](([_0xf63e0c,_0x433ce2])=>[_0xf63e0c,resolveEnvVars(_0x433ce2)]));return _0x69e56a;}const isRecord=_0x416737=>typeof _0x416737==='object'&&_0x416737!==null&&!Array['isArray'](_0x416737),asRecord=_0x388e03=>isRecord(_0x388e03)?_0x388e03:undefined,mergeHeaders=(_0x368def,_0x358efe)=>{const _0x3cdd71=_0x229b,_0x5865eb={..._0x368def??{},..._0x358efe??{}};return Object['keys'](_0x5865eb)[_0x3cdd71(0x103)]?_0x5865eb:undefined;},SAFE_MODE_ARGS=[_0x1f5ae2(0x179)],ALLOW_LOCALHOST_ARGS=['--disable-web-security','--allow-running-insecure-content',_0x1f5ae2(0x112),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x100fc1,_0x5bf86e={}){const _0x5a5f53=_0x1f5ae2,_0x14be94={'wqmzF':'boolean','HgbLX':function(_0x427cd9,_0x5b055b){return _0x427cd9(_0x5b055b);},'uyuRe':function(_0x27575c,_0x13fd74){return _0x27575c===_0x13fd74;},'UtgSR':_0x5a5f53(0x16f)},_0x12a863=asRecord(_0x100fc1[_0x5a5f53(0x131)]),_0x3ede32={...asRecord(_0x12a863?.['launchOptions'])??{}};typeof _0x5bf86e[_0x5a5f53(0x143)]===_0x14be94['wqmzF']&&(_0x3ede32[_0x5a5f53(0x143)]=_0x5bf86e[_0x5a5f53(0x143)]);if(_0x100fc1[_0x5a5f53(0x116)]){const _0x30d59b=_0x3ede32[_0x5a5f53(0x160)]??[],_0x5bb36a=SAFE_MODE_ARGS['filter'](_0x45cc86=>!_0x30d59b[_0x5a5f53(0x10f)](_0x45cc86));_0x3ede32[_0x5a5f53(0x160)]=[..._0x30d59b,..._0x5bb36a];}if(_0x100fc1['allowInsecureLocalhost']){const _0x2d9d6d=_0x3ede32[_0x5a5f53(0x160)]??[],_0x49a7be=ALLOW_LOCALHOST_ARGS[_0x5a5f53(0x152)](_0x244ba0=>!_0x2d9d6d[_0x5a5f53(0x10f)](_0x244ba0));_0x3ede32['args']=[..._0x2d9d6d,..._0x49a7be];}const _0x4d0afb={..._0x14be94['HgbLX'](asRecord,_0x12a863?.[_0x5a5f53(0x178)])??{}};_0x4d0afb[_0x5a5f53(0x13f)]=!![];_0x14be94['uyuRe'](typeof _0x100fc1[_0x5a5f53(0x14e)],_0x14be94[_0x5a5f53(0x10c)])&&(_0x4d0afb[_0x5a5f53(0x14e)]=_0x100fc1[_0x5a5f53(0x14e)]);const _0x47d4b4=mergeHeaders(asRecord(_0x4d0afb[_0x5a5f53(0x137)]),_0x14be94['HgbLX'](asRecord,_0x100fc1['headers']));return _0x47d4b4?_0x4d0afb['extraHTTPHeaders']=_0x47d4b4:delete _0x4d0afb[_0x5a5f53(0x137)],_0x5bf86e['storageStatePath']&&(_0x4d0afb[_0x5a5f53(0x15d)]=_0x5bf86e['storageStatePath']),{'launchOptions':_0x3ede32,'contextOptions':_0x4d0afb};}export async function resolveProfileStorageState(_0x1c1615){const _0x7d2be4=_0x1f5ae2,_0xbc0427={'psWpe':function(_0x12f740,_0x4e5b6a){return _0x12f740(_0x4e5b6a);}};return resolveLocalAuthPath(_0xbc0427[_0x7d2be4(0x10e)](getEnvDir,_0x1c1615));}async function resolveLocalAuthPath(_0x5094ec){const _0x133e0f=_0x1f5ae2,_0x2df851={'dJnJv':function(_0x4f3b85,_0x40d6af,_0x30dc12){return _0x4f3b85(_0x40d6af,_0x30dc12);},'VkDqh':function(_0x57b8d9,_0x1c380f,_0x193b3a){return _0x57b8d9(_0x1c380f,_0x193b3a);},'PbqkN':function(_0x1c9d1b){return _0x1c9d1b();},'rTALg':_0x133e0f(0x13c),'SddED':function(_0x213b23,_0x2ddc71,_0xc034c7){return _0x213b23(_0x2ddc71,_0xc034c7);},'qeWlO':function(_0x41db8f,_0x40fb2e){return _0x41db8f(_0x40fb2e);}},_0x3e6883=_0x2df851[_0x133e0f(0x148)](join,_0x5094ec,_0x133e0f(0x104)),_0x280eeb=_0x2df851['VkDqh'](join,_0x5094ec,_0x133e0f(0x125));if(existsSync(_0x3e6883))try{const _0x546dde=await _0x2df851[_0x133e0f(0x168)](getToken);if(!_0x546dde)throw new Error(_0x2df851[_0x133e0f(0x139)]);const _0x835f20=await readFile(_0x3e6883),_0x5acc95=_0x2df851[_0x133e0f(0x158)](decrypt,_0x835f20,_0x546dde),_0x3c42b1=join(_0x2df851['PbqkN'](tmpdir),'ranger-auth-'+Date[_0x133e0f(0x146)]()+'.json');return await writeFile(_0x3c42b1,_0x5acc95),{'storageStatePath':_0x3c42b1,'tempAuthPath':_0x3c42b1};}catch(_0x2ee4f7){const _0x17f477=_0x2ee4f7 instanceof Error?_0x2ee4f7['message']:_0x2df851['qeWlO'](String,_0x2ee4f7);throw new Error(_0x133e0f(0x17f)+_0x17f477);}if(existsSync(_0x280eeb))return{'storageStatePath':_0x280eeb};return{};}export async function buildPlaywrightConfig(_0x1a603f,_0x1a4785,_0x526901,_0x5110d2,_0x2b605a){const _0x42753c=_0x1f5ae2,_0x2d7536={'CpckI':_0x42753c(0x17a),'CRmKP':function(_0x3f4cf8,_0x2de3b3){return _0x3f4cf8(_0x2de3b3);},'XAOvW':function(_0x2ab34a,_0xfd5075){return _0x2ab34a(_0xfd5075);},'fTWXe':function(_0x2d55d6,_0x384502,_0x39bfad,_0x482a0f,_0x4bcf22,_0x506f0d,_0x1bc940){return _0x2d55d6(_0x384502,_0x39bfad,_0x482a0f,_0x4bcf22,_0x506f0d,_0x1bc940);},'pQqLI':function(_0x3785a7,_0x4b4ea0){return _0x3785a7(_0x4b4ea0);}};if(_0x2b605a)return buildPlaywrightConfigCore(_0x1a603f,_0x2b605a,_0x1a4785,_0x526901,_0x5110d2,_0x2d7536[_0x42753c(0x15b)]);const {storageStatePath:_0x31c710,tempAuthPath:_0x3b6279}=await _0x2d7536[_0x42753c(0x156)](resolveLocalAuthPath,_0x2d7536['XAOvW'](getEnvDir,_0x1a4785));try{const _0x5f32ca=await _0x2d7536[_0x42753c(0x151)](buildPlaywrightConfigCore,_0x1a603f,_0x31c710,_0x1a4785,_0x526901,_0x5110d2,'stagehand');return{..._0x5f32ca,'tempAuthPath':_0x3b6279};}catch(_0x3a13c5){_0x3b6279&&await _0x2d7536[_0x42753c(0x117)](unlink,_0x3b6279)['catch'](()=>{});throw _0x3a13c5;}}export async function buildPlaywrightConfigCore(_0x398514,_0x296a2c,_0x5ce554,_0x145648,_0x2f462b,_0x5b007d=_0x1f5ae2(0x17a)){const _0x247500=_0x1f5ae2,_0x313f59={'KUmsM':function(_0x18c712,_0x20366b,_0x3c8141){return _0x18c712(_0x20366b,_0x3c8141);},'zLwtG':function(_0x386156,_0x23851f){return _0x386156===_0x23851f;},'qkxdT':_0x247500(0x145),'uXygE':'clipboard-write','SEhZO':function(_0x28fc78,_0x4ef29a,_0x4a8bad,_0x2d1e86){return _0x28fc78(_0x4ef29a,_0x4a8bad,_0x2d1e86);},'DBczF':_0x247500(0x14a),'XDzIJ':'playwright-cli','ndXWX':'none','OFymY':_0x247500(0x165),'GAPpj':_0x247500(0x15a),'hyQSv':function(_0x27dec5){return _0x27dec5();},'NYnHG':_0x247500(0x172),'mkthJ':function(_0x13d6d0,_0x1356e8){return _0x13d6d0(_0x1356e8);},'xamkd':_0x247500(0x138),'zXjWv':function(_0x5c7865,_0x198bfc,_0x414478){return _0x5c7865(_0x198bfc,_0x414478);}},_0x3ca74f=_0x145648||randomUUID(),_0x5905a4=_0x313f59[_0x247500(0x16d)](join,getRangerDir(),_0x313f59['DBczF'],_0x3ca74f),_0x630ba=Boolean(_0x398514['cdpEndpoint']),_0xc79dec=_0x630ba?{'browserName':_0x247500(0x145),'cdpEndpoint':_0x398514[_0x247500(0x181)]}:((()=>{const _0x36f03d=_0x247500,{launchOptions:_0x630eda,contextOptions:_0x5d52aa}=_0x313f59[_0x36f03d(0x182)](buildBrowserOptionsFromSettings,_0x398514,{'headless':_0x2f462b?![]:_0x398514['headless']??!![],'storageStatePath':_0x296a2c});if(_0x313f59['zLwtG'](process[_0x36f03d(0x133)]?.(),0x0)){const _0x5860f3=[_0x36f03d(0x157),_0x36f03d(0x166)],_0xc5a7c=_0x630eda['args']??[],_0x348980=_0x5860f3['filter'](_0x16de96=>!_0xc5a7c['includes'](_0x16de96));_0x630eda['args']=[..._0xc5a7c,..._0x348980];}return{'isolated':!![],'browserName':_0x313f59[_0x36f03d(0x163)],'launchOptions':_0x630eda,'contextOptions':{..._0x5d52aa,'permissions':['clipboard-read',_0x313f59['uXygE']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x3ac988=_0x313f59['zLwtG'](_0x5b007d,_0x313f59[_0x247500(0x11a)])?{'browser':_0xc79dec,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5905a4,'outputMode':'file','codegen':_0x313f59['ndXWX']}:{'name':_0x5ce554,'browser':_0xc79dec,'capabilities':['core',_0x313f59[_0x247500(0x17e)],_0x247500(0x142),'pdf',_0x313f59[_0x247500(0x154)]],'imageResponses':_0x247500(0x107),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5905a4};if(!_0x630ba){const _0x2fc352=_0x3ac988[_0x247500(0x131)],_0x3c75d4=_0x2fc352['contextOptions'];if(_0x3c75d4[_0x247500(0x14e)]===undefined)delete _0x3c75d4['userAgent'];if(_0x3c75d4['storageState']===undefined)delete _0x3c75d4[_0x247500(0x15d)];}const _0xc8ee7d=join(_0x313f59['hyQSv'](tmpdir),_0x313f59[_0x247500(0x12d)]);!_0x313f59['mkthJ'](existsSync,_0xc8ee7d)&&await mkdir(_0xc8ee7d,{'recursive':!![]});const _0x148dfd=_0x313f59[_0x247500(0x135)](_0x5b007d,_0x313f59[_0x247500(0x11a)])?_0x313f59['xamkd']:'',_0x424a64=_0x313f59[_0x247500(0x113)](join,_0xc8ee7d,_0x5ce554+'-'+Date['now']()+_0x148dfd+'.json');return await _0x313f59[_0x247500(0x182)](writeFile,_0x424a64,JSON[_0x247500(0x12c)](_0x3ac988,null,0x2)),{'configPath':_0x424a64,'storageStatePath':_0x296a2c};}export async function buildPlaywrightCliConfig(_0x5f564c,_0x15cca1,_0x2baf40,_0x1bc3ab,_0x58b883){const _0x40bae7=_0x1f5ae2,_0x4a2e61={'LhWpl':_0x40bae7(0x123),'nZWGL':function(_0x54fc4,_0x158a9c){return _0x54fc4(_0x158a9c);}};if(_0x58b883)return buildPlaywrightConfigCore(_0x5f564c,_0x58b883,_0x15cca1,_0x2baf40,_0x1bc3ab,_0x4a2e61[_0x40bae7(0x169)]);const {storageStatePath:_0x263fdf,tempAuthPath:_0x396b9e}=await resolveLocalAuthPath(getEnvDir(_0x15cca1));try{const _0x43b6a5=await buildPlaywrightConfigCore(_0x5f564c,_0x263fdf,_0x15cca1,_0x2baf40,_0x1bc3ab,'playwright-cli');return{..._0x43b6a5,'tempAuthPath':_0x396b9e};}catch(_0xc9fdf8){_0x396b9e&&await _0x4a2e61['nZWGL'](unlink,_0x396b9e)[_0x40bae7(0x13d)](()=>{});throw _0xc9fdf8;}}export async function buildRangerwrightCliConfig(_0x87d95,_0x4354a2,_0x992bd4,_0x577fe0,_0x20f000){const _0x49a17e=_0x1f5ae2,_0x39b925={'HVCtb':function(_0x565212,_0x54188c,_0x47260d){return _0x565212(_0x54188c,_0x47260d);},'ILlWJ':'--no-sandbox','xNWbK':_0x49a17e(0x166),'DksFE':'chromium','cFahT':'clipboard-read','faODc':function(_0x486e1d,_0x2dbee8){return _0x486e1d(_0x2dbee8);},'vmhvc':function(_0x2ecfcc,_0x8c303e,_0x3aa16e,_0x10c53d){return _0x2ecfcc(_0x8c303e,_0x3aa16e,_0x10c53d);},'CqkoU':function(_0x512fb3){return _0x512fb3();},'EMtpZ':_0x49a17e(0x14a),'qhyLl':function(_0x2e0ab6,_0x4d1972){return _0x2e0ab6===_0x4d1972;},'exQOO':function(_0x3e2773,_0x4a9677,_0x5273cc){return _0x3e2773(_0x4a9677,_0x5273cc);},'CVmjb':function(_0x22ccef,_0x4033d8){return _0x22ccef(_0x4033d8);}},{storageStatePath:_0x304220,tempAuthPath:_0x47f5ee}=_0x20f000?{'storageStatePath':_0x20f000,'tempAuthPath':undefined}:await _0x39b925[_0x49a17e(0x134)](resolveLocalAuthPath,_0x39b925['faODc'](getEnvDir,_0x4354a2)),_0x29fc6a=_0x992bd4||randomUUID(),_0x1fb54d=_0x39b925[_0x49a17e(0x119)](join,_0x39b925['CqkoU'](getRangerDir),_0x39b925['EMtpZ'],_0x29fc6a),_0x4d82d6=Boolean(_0x87d95[_0x49a17e(0x181)]),_0x4851cd=_0x4d82d6?{'browserName':_0x39b925['DksFE'],'cdpEndpoint':_0x87d95[_0x49a17e(0x181)]}:((()=>{const _0xed3c88=_0x49a17e,{launchOptions:_0x40e4ce,contextOptions:_0x3ca7a3}=_0x39b925['HVCtb'](buildBrowserOptionsFromSettings,_0x87d95,{'headless':_0x577fe0?![]:_0x87d95['headless']??!![],'storageStatePath':_0x304220});if(process[_0xed3c88(0x133)]?.()===0x0){const _0x27cc39=[_0x39b925[_0xed3c88(0x132)],_0x39b925[_0xed3c88(0x16b)]],_0x5f499e=_0x40e4ce['args']??[],_0x3a9adf=_0x27cc39['filter'](_0x17915d=>!_0x5f499e['includes'](_0x17915d));_0x40e4ce['args']=[..._0x5f499e,..._0x3a9adf];}return{'browserName':_0x39b925[_0xed3c88(0x14f)],'launchOptions':_0x40e4ce,'contextOptions':{..._0x3ca7a3,'permissions':[_0x39b925[_0xed3c88(0x171)],_0xed3c88(0x12b)],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x4d82d6){const _0x4b4cf8=_0x4851cd['contextOptions'];if(_0x4b4cf8){if(_0x39b925[_0x49a17e(0x13e)](_0x4b4cf8['userAgent'],undefined))delete _0x4b4cf8[_0x49a17e(0x14e)];if(_0x39b925[_0x49a17e(0x13e)](_0x4b4cf8[_0x49a17e(0x15d)],undefined))delete _0x4b4cf8['storageState'];}}const _0x453f31={'browser':_0x4851cd,'outputDir':_0x1fb54d,'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'settle':{'navigationLoadTimeoutMs':0x7530,'networkSettleTimeoutMs':0x1388,'networkIdleWindowMs':0x1f4,'postActionAnimationFrameCount':0x2}};let _0x3b6891;try{const _0x3f2d5b=_0x39b925['HVCtb'](join,tmpdir(),_0x49a17e(0x172));!existsSync(_0x3f2d5b)&&await _0x39b925[_0x49a17e(0x180)](mkdir,_0x3f2d5b,{'recursive':!![]}),_0x3b6891=_0x39b925['exQOO'](join,_0x3f2d5b,_0x4354a2+'-'+Date[_0x49a17e(0x146)]()+'-rangerwright.json'),await writeFile(_0x3b6891,JSON[_0x49a17e(0x12c)](_0x453f31,null,0x2));}catch(_0x305c77){_0x47f5ee&&await _0x39b925['CVmjb'](unlink,_0x47f5ee)['catch'](()=>{});throw _0x305c77;}return{'configPath':_0x3b6891,'storageStatePath':_0x304220,'tempAuthPath':_0x47f5ee,'outputDir':_0x1fb54d};}export async function buildNovaActCliConfig(_0x27b434,_0x362c72,_0x52178f,_0x57ee2a,_0x110bfd){const _0x4308b9=_0x1f5ae2,_0x562bb9={'JfJFn':function(_0x4e751f,_0x3ab88b){return _0x4e751f(_0x3ab88b);},'soKOu':function(_0x1c439b,_0x47a10e,_0x57b58e,_0x566a20){return _0x1c439b(_0x47a10e,_0x57b58e,_0x566a20);},'dibyR':function(_0x50b0dc){return _0x50b0dc();},'QcsZy':'Default','WeDxr':function(_0x36e2c8,_0x85fdf3,_0x1ed88f){return _0x36e2c8(_0x85fdf3,_0x1ed88f);},'OfjSn':'string','zJSZq':function(_0x41beb1,_0x448528){return _0x41beb1(_0x448528);}},{storageStatePath:_0x3e8f3a,tempAuthPath:_0x1ce571}=_0x110bfd?{'storageStatePath':_0x110bfd,'tempAuthPath':undefined}:await resolveLocalAuthPath(_0x562bb9[_0x4308b9(0x183)](getEnvDir,_0x362c72)),_0x487fbb=_0x52178f||randomUUID(),_0x208bdf=_0x562bb9[_0x4308b9(0x15f)](join,_0x562bb9['dibyR'](getRangerDir),_0x4308b9(0x14a),_0x487fbb),_0x5185ea=join(_0x208bdf,'nova-user-data'),_0x229992=_0x3e8f3a?join(_0x5185ea,_0x562bb9[_0x4308b9(0x16a)]):undefined,{launchOptions:_0x21b128,contextOptions:_0xd57b21}=_0x562bb9[_0x4308b9(0x12f)](buildBrowserOptionsFromSettings,_0x27b434,{'headless':_0x57ee2a?![]:_0x27b434['headless']??!![],'storageStatePath':_0x3e8f3a});if(process[_0x4308b9(0x133)]?.()===0x0){const _0x5911d9=[_0x4308b9(0x157),_0x4308b9(0x166)],_0x3da33b=_0x21b128[_0x4308b9(0x160)]??[],_0x12ae0e=_0x5911d9['filter'](_0x10cb8e=>!_0x3da33b[_0x4308b9(0x10f)](_0x10cb8e));_0x21b128['args']=[..._0x3da33b,..._0x12ae0e];}const _0x19c2ac=typeof _0x21b128['executablePath']===_0x562bb9[_0x4308b9(0x14b)]?_0x21b128['executablePath']:_0x3e8f3a?chromium['executablePath']():undefined;return{'storageStatePath':_0x3e8f3a,'tempAuthPath':_0x1ce571,'baseUrl':_0x27b434['baseUrl'],'headless':Boolean(_0x21b128[_0x4308b9(0x143)]),'userDataDir':_0x5185ea,'browserProfilePath':_0x229992,'executablePath':_0x19c2ac,'launchArgs':Array['isArray'](_0x21b128[_0x4308b9(0x160)])?_0x21b128['args']['filter'](_0x2d24a8=>typeof _0x2d24a8===_0x4308b9(0x16f)):[],'userAgent':typeof _0xd57b21[_0x4308b9(0x14e)]==='string'?_0xd57b21['userAgent']:undefined,'extraHTTPHeaders':_0xd57b21['extraHTTPHeaders'],'allowInsecureLocalhost':Boolean(_0x27b434['allowInsecureLocalhost']),'safeMode':_0x562bb9[_0x4308b9(0x128)](Boolean,_0x27b434[_0x4308b9(0x116)]),'cdpEndpoint':_0x27b434['cdpEndpoint'],'isCdpMode':_0x562bb9['zJSZq'](Boolean,_0x27b434['cdpEndpoint'])};}export function getNestedValue(_0x398679,_0x8f7cb4){const _0x31499f=_0x1f5ae2,_0x4dbfb8={'OPTbG':function(_0x385d31,_0xc702cf){return _0x385d31(_0xc702cf);},'uDkVQ':_0x31499f(0x17d)},_0x4a486f=_0x4dbfb8[_0x31499f(0x150)](parseKeyPath,_0x8f7cb4);let _0x3b8119=_0x398679;for(const _0x3fb335 of _0x4a486f){if(_0x3b8119===null||_0x3b8119===undefined||typeof _0x3b8119!==_0x4dbfb8[_0x31499f(0x121)])return undefined;_0x3b8119=_0x3b8119[_0x3fb335];}return _0x3b8119;}export function setNestedValue(_0x426eee,_0x5a9bbc,_0x2814ef){const _0x552555=_0x1f5ae2,_0x111324={'NhCyS':function(_0x438856,_0xac88cf){return _0x438856-_0xac88cf;}},_0x172f85=parseKeyPath(_0x5a9bbc);let _0x5e80d2=_0x426eee;for(let _0x2b9dac=0x0;_0x2b9dac<_0x111324[_0x552555(0x110)](_0x172f85['length'],0x1);_0x2b9dac++){const _0x351836=_0x172f85[_0x2b9dac];(!(_0x351836 in _0x5e80d2)||typeof _0x5e80d2[_0x351836]!==_0x552555(0x17d))&&(_0x5e80d2[_0x351836]={}),_0x5e80d2=_0x5e80d2[_0x351836];}_0x5e80d2[_0x172f85[_0x111324[_0x552555(0x110)](_0x172f85['length'],0x1)]]=_0x2814ef;}export function deleteNestedValue(_0x525de6,_0x8b8936){const _0x30fa21=_0x1f5ae2,_0x132ac2={'fSBAj':function(_0x1c559e,_0x37f6c7){return _0x1c559e<_0x37f6c7;},'fYhpW':function(_0x4d4869,_0x7bf429){return _0x4d4869===_0x7bf429;},'DkRiS':function(_0x3b4071,_0x1e5445){return _0x3b4071!==_0x1e5445;},'PoAiS':_0x30fa21(0x17d),'DVOAb':function(_0xdb27f8,_0x43c2ef){return _0xdb27f8===_0x43c2ef;},'ElWnU':function(_0x4191bc,_0x2f7a35){return _0x4191bc===_0x2f7a35;},'vNUTD':function(_0x4ad5cc,_0x24a9d3){return _0x4ad5cc-_0x24a9d3;}},_0x8f85a7=parseKeyPath(_0x8b8936);let _0x4519a2=_0x525de6;for(let _0x5c94bb=0x0;_0x132ac2['fSBAj'](_0x5c94bb,_0x8f85a7['length']-0x1);_0x5c94bb++){if(_0x4519a2===null||_0x132ac2['fYhpW'](_0x4519a2,undefined)||_0x132ac2[_0x30fa21(0x153)](typeof _0x4519a2,_0x132ac2['PoAiS']))return![];_0x4519a2=_0x4519a2[_0x8f85a7[_0x5c94bb]];}if(_0x132ac2['DVOAb'](_0x4519a2,null)||_0x132ac2['ElWnU'](_0x4519a2,undefined)||typeof _0x4519a2!==_0x132ac2['PoAiS'])return![];const _0x2ce234=_0x8f85a7[_0x132ac2['vNUTD'](_0x8f85a7['length'],0x1)];if(_0x2ce234 in _0x4519a2)return delete _0x4519a2[_0x2ce234],!![];return![];}function parseKeyPath(_0x19d902){const _0x52676b=_0x1f5ae2,_0x57b9ba={'XYeCO':_0x52676b(0x10a),'KIqTd':function(_0x2bafe9,_0x5ac7f6){return _0x2bafe9===_0x5ac7f6;},'gdbaC':_0x52676b(0x16c),'mcbCq':'setupHeaders'},_0x59194e=_0x19d902['split']('.');return _0x59194e[0x0]==='header'&&(_0x59194e[0x0]=_0x57b9ba[_0x52676b(0x11e)]),_0x57b9ba['KIqTd'](_0x59194e[0x0],_0x57b9ba['gdbaC'])&&(_0x59194e[0x0]=_0x57b9ba['mcbCq']),_0x59194e;}export function formatSettings(_0x2487a7,_0x424b79=0x0){const _0x1551ff=_0x1f5ae2,_0xe2926={'NOYvv':function(_0x4aa8a6,_0x156bdd){return _0x4aa8a6===_0x156bdd;},'QYQhk':_0x1551ff(0x17d)},_0x4823ed=[],_0x5edbac='\x20\x20'['repeat'](_0x424b79);for(const [_0x5a43a7,_0x74dd03]of Object[_0x1551ff(0x111)](_0x2487a7)){if(_0xe2926[_0x1551ff(0x141)](_0x74dd03,undefined))continue;if(typeof _0x74dd03===_0xe2926[_0x1551ff(0x170)]&&_0x74dd03!==null){_0x4823ed[_0x1551ff(0x130)](''+_0x5edbac+_0x5a43a7+':');for(const [_0x57f778,_0x3cbc57]of Object['entries'](_0x74dd03)){_0x4823ed[_0x1551ff(0x130)](_0x5edbac+'\x20\x20'+_0x57f778+':\x20'+_0x3cbc57);}}else _0x4823ed['push'](''+_0x5edbac+_0x5a43a7+':\x20'+_0x74dd03);}return _0x4823ed[_0x1551ff(0x11b)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x46739b,_0x41af72){const _0xf59b2a=_0x1ca9,_0x46694c=_0x46739b();while(!![]){try{const _0x5f58d1=parseInt(_0xf59b2a(0x1bf))/0x1*(-parseInt(_0xf59b2a(0x1b8))/0x2)+parseInt(_0xf59b2a(0x1bc))/0x3*(parseInt(_0xf59b2a(0x1c0))/0x4)+parseInt(_0xf59b2a(0x1c3))/0x5*(parseInt(_0xf59b2a(0x1bb))/0x6)+-parseInt(_0xf59b2a(0x1c1))/0x7*(parseInt(_0xf59b2a(0x1c4))/0x8)+-parseInt(_0xf59b2a(0x1be))/0x9*(-parseInt(_0xf59b2a(0x1b9))/0xa)+parseInt(_0xf59b2a(0x1b4))/0xb*(parseInt(_0xf59b2a(0x1b6))/0xc)+parseInt(_0xf59b2a(0x1bd))/0xd*(-parseInt(_0xf59b2a(0x1ba))/0xe);if(_0x5f58d1===_0x41af72)break;else _0x46694c['push'](_0x46694c['shift']());}catch(_0x1c3329){_0x46694c['push'](_0x46694c['shift']());}}}(_0x4e1c,0x73b29));import{readFileSync}from'fs';import{dirname,join}from'path';function _0x1ca9(_0x1db5b3,_0x259e27){_0x1db5b3=_0x1db5b3-0x1b4;const _0x4e1cb5=_0x4e1c();let _0x1ca971=_0x4e1cb5[_0x1db5b3];return _0x1ca971;}function _0x4e1c(){const _0xd8e35c=['2IaETud','23076dzbsEK','73213ZaueaD','skills','4431395JgoUmH','568KPJLJT','11UjfAMU','HNUjI','3975228kOhcve','nEWNA','42886eCtDFN','280eKLTKD','3486LUoUUG','6fqKYDu','75VJaBvi','14781GszIAf','58086PHoDWa'];_0x4e1c=function(){return _0xd8e35c;};return _0x4e1c();}import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x33fdda){const _0x33d9b8=_0x1ca9,_0x3641df={'lRqIF':_0x33d9b8(0x1c2),'nEWNA':function(_0x5f054f,_0x6f6b0b,_0x3dc696){return _0x5f054f(_0x6f6b0b,_0x3dc696);},'HNUjI':'utf-8'},_0x409ee9=join(__dirname,'..','..',_0x3641df['lRqIF']),_0x2bd770=join(_0x409ee9,_0x33fdda);try{return _0x3641df[_0x33d9b8(0x1b7)](readFileSync,_0x2bd770,_0x3641df[_0x33d9b8(0x1b5)]);}catch{return'';}}export function getRangerSkillContent(){const _0x134633={'YJxtB':function(_0x1cdf10,_0x2bd43c){return _0x1cdf10(_0x2bd43c);}};return _0x134633['YJxtB'](readSkillContent,'ranger/SKILL.md');}
1
+ (function(_0x2c407a,_0xe21d8e){const _0x496339=_0x5dc2,_0x137056=_0x2c407a();while(!![]){try{const _0x438527=parseInt(_0x496339(0xa8))/0x1+parseInt(_0x496339(0xa7))/0x2*(-parseInt(_0x496339(0xb1))/0x3)+-parseInt(_0x496339(0xa5))/0x4+-parseInt(_0x496339(0xaa))/0x5+parseInt(_0x496339(0xa6))/0x6*(parseInt(_0x496339(0xae))/0x7)+parseInt(_0x496339(0xb0))/0x8*(-parseInt(_0x496339(0xaf))/0x9)+parseInt(_0x496339(0xad))/0xa;if(_0x438527===_0xe21d8e)break;else _0x137056['push'](_0x137056['shift']());}catch(_0x1e6e37){_0x137056['push'](_0x137056['shift']());}}}(_0x1217,0x22d39));function _0x1217(){const _0x4944d5=['4980620qTUcVn','76986qDrTmN','9AmDRgV','390944FWgetV','3EbIcRY','1055724QjEkvY','18YtmLIb','18892bFnwDq','122504XITCqX','utf-8','943330KLVLXQ','ranger/SKILL.md','eQHlj'];_0x1217=function(){return _0x4944d5;};return _0x1217();}function _0x5dc2(_0x3894aa,_0x57c71c){_0x3894aa=_0x3894aa-0xa5;const _0x1217a1=_0x1217();let _0x5dc2d6=_0x1217a1[_0x3894aa];return _0x5dc2d6;}import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x4ad018){const _0x459d0a=_0x5dc2,_0x3599ed={'FGjhN':'skills','PznDH':function(_0x1bbfd3,_0x2c64e5,_0x1a0981){return _0x1bbfd3(_0x2c64e5,_0x1a0981);}},_0x2118db=join(__dirname,'..','..',_0x3599ed['FGjhN']),_0x58a8f5=_0x3599ed['PznDH'](join,_0x2118db,_0x4ad018);try{return readFileSync(_0x58a8f5,_0x459d0a(0xa9));}catch{return'';}}export function getRangerSkillContent(){const _0x339401=_0x5dc2,_0x35d89e={'eQHlj':function(_0x22d430,_0x267c19){return _0x22d430(_0x267c19);},'hSgbN':_0x339401(0xab)};return _0x35d89e[_0x339401(0xac)](readSkillContent,_0x35d89e['hSgbN']);}
@@ -1 +1 @@
1
- const _0x3d328c=_0x23ba;(function(_0x3b2192,_0xd433fe){const _0x355a81=_0x23ba,_0x405f8c=_0x3b2192();while(!![]){try{const _0x2069f5=-parseInt(_0x355a81(0x10c))/0x1*(-parseInt(_0x355a81(0xfb))/0x2)+parseInt(_0x355a81(0xeb))/0x3*(-parseInt(_0x355a81(0x109))/0x4)+parseInt(_0x355a81(0x107))/0x5*(parseInt(_0x355a81(0xf9))/0x6)+parseInt(_0x355a81(0xf6))/0x7*(parseInt(_0x355a81(0x104))/0x8)+-parseInt(_0x355a81(0xed))/0x9+parseInt(_0x355a81(0xef))/0xa*(-parseInt(_0x355a81(0x106))/0xb)+parseInt(_0x355a81(0x101))/0xc;if(_0x2069f5===_0xd433fe)break;else _0x405f8c['push'](_0x405f8c['shift']());}catch(_0x3dd776){_0x405f8c['push'](_0x405f8c['shift']());}}}(_0x2099,0x82583));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';function _0x2099(){const _0x16acff=['sLPtN','claude','Invalid\x20skill\x20frontmatter','JhDLI','\x20\x20Skill\x20not\x20found:\x20','IALXm','3052kidbPA','push','utf-8','150ZhFaXX','isDirectory','218884BVoaVs','join','.md','wIxoe','\x20\x20Location:\x20','TKPqt','17379648yPsYtT','OXsCm','warn','872FWGYpu','trim','275jmAWMi','120775JNTDQw','catch','3307552uoqqKA','ranger','AsWXw','5fcNeYw','match','\x20\x20Installed\x20skill:\x20','ptewD','log','3JAzmdY','\x20\x20Files:\x20','1993131zkIKKD','wbrvK','425870NRGdVv'];_0x2099=function(){return _0x16acff;};return _0x2099();}function _0x23ba(_0x5b1e48,_0x5c4a72){_0x5b1e48=_0x5b1e48-0xe8;const _0x209948=_0x2099();let _0x23bab8=_0x209948[_0x5b1e48];return _0x23bab8;}import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x3d328c(0x10a)];export const DEPRECATED_SKILLS=['e2e-test-recommender','bug-bash','feature-tracker'];export async function installSkill(_0x2f134c,_0x4e5993={}){const _0x505a4a=_0x3d328c,_0x23ea83={'tpFsH':'project','ptewD':function(_0x3fe01f){return _0x3fe01f();},'TKPqt':function(_0x340356,_0x794fc6,_0x1e74c1){return _0x340356(_0x794fc6,_0x1e74c1);},'oVoUe':function(_0x1544a7,_0x111ee2){return _0x1544a7(_0x111ee2);},'LgjTZ':'SKILL.md','IALXm':function(_0x5911e9,_0x20fca8){return _0x5911e9(_0x20fca8);},'OXsCm':'opencode','MeJEy':function(_0x45a7f1,_0x2bdd45,_0x4390d9){return _0x45a7f1(_0x2bdd45,_0x4390d9);},'wbrvK':function(_0x5c9072,_0x9d8924,_0x12d8ae){return _0x5c9072(_0x9d8924,_0x12d8ae);},'SmkKv':'utf-8','AsWXw':function(_0x412b0e,_0x38c674,_0x442fee){return _0x412b0e(_0x38c674,_0x442fee);},'wIxoe':function(_0x280c9d,_0x5ba8de,_0x1d4353,_0x3bbc0b){return _0x280c9d(_0x5ba8de,_0x1d4353,_0x3bbc0b);},'OKIJK':function(_0x357e43,_0x5ec7d1){return _0x357e43>_0x5ec7d1;}},{level:level=_0x23ea83['tpFsH'],cliVersion:_0x2f3376,platform:platform=_0x505a4a(0xf1)}=_0x4e5993,_0x413ded=_0x23ea83[_0x505a4a(0xe9)](getSourceSkillsDir),_0x54098b=_0x23ea83[_0x505a4a(0x100)](join,_0x413ded,_0x2f134c),_0x504844=join(_0x413ded,_0x2f134c+_0x505a4a(0xfd)),_0x915e64=_0x23ea83['oVoUe'](existsSync,_0x54098b)&&statSync(_0x54098b)[_0x505a4a(0xfa)]()&&existsSync(_0x23ea83['TKPqt'](join,_0x54098b,_0x23ea83['LgjTZ'])),_0x11b772=_0x23ea83[_0x505a4a(0xf5)](existsSync,_0x504844);if(!_0x915e64&&!_0x11b772)return console[_0x505a4a(0x103)](_0x505a4a(0xf4)+_0x2f134c),![];const _0x2ae354=platform===_0x23ea83[_0x505a4a(0x102)]?_0x23ea83['oVoUe'](getOpencodeSkillsDir,level):getSkillsDir(level),_0xd9f64=join(_0x2ae354,_0x2f134c);await mkdir(_0xd9f64,{'recursive':!![]});let _0x1c794e,_0x2345c0=[];if(_0x915e64){const _0x49e2d9=await _0x23ea83['IALXm'](readdir,_0x54098b),_0x42bc69=_0x49e2d9['filter'](_0x584473=>_0x584473['endsWith'](_0x505a4a(0xfd)));for(const _0x5c7c85 of _0x42bc69){const _0x35c824=join(_0x54098b,_0x5c7c85),_0x4fbf76=join(_0xd9f64,_0x5c7c85);await copyFile(_0x35c824,_0x4fbf76),_0x2345c0['push'](_0x5c7c85);}_0x1c794e=await readFile(_0x23ea83['MeJEy'](join,_0x54098b,'SKILL.md'),'utf-8');}else{_0x1c794e=await _0x23ea83[_0x505a4a(0xee)](readFile,_0x504844,_0x23ea83['SmkKv']);const _0x388afd=_0x23ea83[_0x505a4a(0x10b)](join,_0xd9f64,'SKILL.md');await _0x23ea83[_0x505a4a(0xfe)](writeFile,_0x388afd,_0x1c794e,_0x505a4a(0xf8)),_0x2345c0[_0x505a4a(0xf7)](_0x23ea83['LgjTZ']);}const {name:_0x18687d}=parseFrontmatter(_0x1c794e);return console['log'](_0x505a4a(0xe8)+_0x18687d),console['log'](_0x505a4a(0xff)+_0xd9f64),_0x23ea83['OKIJK'](_0x2345c0['length'],0x1)&&console[_0x505a4a(0xea)](_0x505a4a(0xec)+_0x2345c0[_0x505a4a(0xfc)](',\x20')),_0x23ea83['wIxoe'](logLocalAgentInstallation,_0x2f134c,{'skillDisplayName':_0x18687d,'installLevel':level},_0x2f3376)[_0x505a4a(0x108)](()=>{}),!![];}function getSourceSkillsDir(){const _0x1c9dde=_0x3d328c,_0x36168e={'gYDJD':function(_0x41b4b6,_0x23308d,_0x65ccf1,_0x1519b9,_0x2812dd){return _0x41b4b6(_0x23308d,_0x65ccf1,_0x1519b9,_0x2812dd);},'sLPtN':'skills','WpVBV':function(_0x113e8d,_0x536934){return _0x113e8d(_0x536934);}},_0x2f318e=[_0x36168e['gYDJD'](join,__dirname,'..','..',_0x36168e[_0x1c9dde(0xf0)]),join(__dirname,'..','..','..','skills')];for(const _0x5f1616 of _0x2f318e){if(_0x36168e['WpVBV'](existsSync,_0x5f1616))return _0x5f1616;}return _0x2f318e[0x0];}function parseFrontmatter(_0x7241e2){const _0x3c8823=_0x3d328c,_0x59b20b=_0x7241e2[_0x3c8823(0x10d)](/^---\n([\s\S]+?)\n---/);if(!_0x59b20b)throw new Error(_0x3c8823(0xf2));const _0x12b2c5=_0x59b20b[0x1],_0x40eac3=_0x12b2c5[_0x3c8823(0x10d)](/name:\s*(.+)/),_0x13c4b0=_0x12b2c5['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0x40eac3?.[0x1]['trim']()||'','description':_0x13c4b0?.[0x1][_0x3c8823(0x105)]()||''};}export async function removeSkill(_0x5c3bd4,_0x437546){const _0x3cdc37=_0x3d328c,_0x5b8f47={'OwaGy':function(_0x380466,_0xccc99,_0x4393a7){return _0x380466(_0xccc99,_0x4393a7);},'JhDLI':function(_0x349929,_0x304a74){return _0x349929(_0x304a74);},'LxLcH':function(_0x37c9de,_0x22d495,_0x354fe8){return _0x37c9de(_0x22d495,_0x354fe8);}},_0x3d0a4c=getSkillsDir(_0x437546),_0x4098d6=_0x5b8f47['OwaGy'](join,_0x3d0a4c,_0x5c3bd4);if(!_0x5b8f47[_0x3cdc37(0xf3)](existsSync,_0x4098d6))return![];try{return await _0x5b8f47['LxLcH'](rm,_0x4098d6,{'recursive':!![]}),console['log']('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x5c3bd4),!![];}catch{return console['warn']('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x5c3bd4),![];}}
1
+ const _0x13d08d=_0x1671;(function(_0x268bb8,_0x3c4d9b){const _0x575be4=_0x1671,_0x598fa6=_0x268bb8();while(!![]){try{const _0x396b82=-parseInt(_0x575be4(0xa5))/0x1+-parseInt(_0x575be4(0xbd))/0x2*(-parseInt(_0x575be4(0xb8))/0x3)+-parseInt(_0x575be4(0xa0))/0x4+-parseInt(_0x575be4(0xaa))/0x5*(-parseInt(_0x575be4(0xb6))/0x6)+parseInt(_0x575be4(0xb3))/0x7+parseInt(_0x575be4(0xa1))/0x8*(-parseInt(_0x575be4(0xbc))/0x9)+-parseInt(_0x575be4(0x9d))/0xa*(-parseInt(_0x575be4(0xa6))/0xb);if(_0x396b82===_0x3c4d9b)break;else _0x598fa6['push'](_0x598fa6['shift']());}catch(_0x44f660){_0x598fa6['push'](_0x598fa6['shift']());}}}(_0x262e,0x1a7d0));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 _0x262e(){const _0x20c53f=['\x20\x20Removed\x20deprecated\x20skill:\x20','trim','177796rtwQqZ','2024thYdtp','push','length','ranger','170zkwnKY','LgSxZ','isDirectory','bug-bash','IeoJa','utf-8','Invalid\x20skill\x20frontmatter','opencode','\x20\x20Skill\x20not\x20found:\x20','1306592yQTLsX','.md','BFEwc','14898GaylYM','BCQPa','235803KPAZnj','project','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','SKILL.md','1466109Cbfqcg','2eevhdW','XmvGF','log','isJcH','match','12500KcKeLK','urIrm','claude','521944UAXNwZ','8PqAuhH','skills'];_0x262e=function(){return _0x20c53f;};return _0x262e();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x13d08d(0xa9)];export const DEPRECATED_SKILLS=['e2e-test-recommender',_0x13d08d(0xad),'feature-tracker'];export async function installSkill(_0x8f2fe9,_0x30c894={}){const _0x59611b=_0x13d08d,_0x435e03={'isJcH':function(_0x31841b,_0x2200bb,_0x19eace){return _0x31841b(_0x2200bb,_0x19eace);},'QLptl':function(_0x38ecb4,_0xede76a){return _0x38ecb4(_0xede76a);},'XmvGF':function(_0x39a88f,_0x347f99,_0x9b3b34){return _0x39a88f(_0x347f99,_0x9b3b34);},'BCQPa':_0x59611b(0xbb),'IeoJa':function(_0x132a94,_0x3a3bd3,_0x20e9c6){return _0x132a94(_0x3a3bd3,_0x20e9c6);},'NEkDL':function(_0x6bd2ec,_0x56a0c4,_0x5ace77){return _0x6bd2ec(_0x56a0c4,_0x5ace77);},'zPGzi':function(_0x716699,_0x475566,_0xa33ce4){return _0x716699(_0x475566,_0xa33ce4);},'LIWfa':function(_0x405a2e,_0x2aa5bf,_0x596611){return _0x405a2e(_0x2aa5bf,_0x596611);},'LgSxZ':_0x59611b(0xaf),'sflsZ':function(_0x4aee65,_0x57f4e7){return _0x4aee65(_0x57f4e7);},'ENlkc':function(_0x4a6bdf,_0x239c06){return _0x4a6bdf>_0x239c06;}},{level:level=_0x59611b(0xb9),cliVersion:_0x5a0f96,platform:platform=_0x59611b(0x9f)}=_0x30c894,_0x27a811=getSourceSkillsDir(),_0x26b7b9=_0x435e03[_0x59611b(0x9b)](join,_0x27a811,_0x8f2fe9),_0x554b92=_0x435e03[_0x59611b(0x9b)](join,_0x27a811,_0x8f2fe9+_0x59611b(0xb4)),_0x9c08ce=existsSync(_0x26b7b9)&&_0x435e03['QLptl'](statSync,_0x26b7b9)[_0x59611b(0xac)]()&&existsSync(_0x435e03['XmvGF'](join,_0x26b7b9,_0x435e03['BCQPa'])),_0x5d957f=existsSync(_0x554b92);if(!_0x9c08ce&&!_0x5d957f)return console['warn'](_0x59611b(0xb2)+_0x8f2fe9),![];const _0x2d5c2b=platform===_0x59611b(0xb1)?getOpencodeSkillsDir(level):_0x435e03['QLptl'](getSkillsDir,level),_0x5e59f9=join(_0x2d5c2b,_0x8f2fe9);await _0x435e03[_0x59611b(0xae)](mkdir,_0x5e59f9,{'recursive':!![]});let _0x571a50,_0xf94c9d=[];if(_0x9c08ce){const _0x4afb17=await readdir(_0x26b7b9),_0x41630b=_0x4afb17['filter'](_0x1656c3=>_0x1656c3['endsWith'](_0x59611b(0xb4)));for(const _0x565e50 of _0x41630b){const _0x13eee4=join(_0x26b7b9,_0x565e50),_0x269d74=_0x435e03['NEkDL'](join,_0x5e59f9,_0x565e50);await _0x435e03[_0x59611b(0xbe)](copyFile,_0x13eee4,_0x269d74),_0xf94c9d[_0x59611b(0xa7)](_0x565e50);}_0x571a50=await _0x435e03['zPGzi'](readFile,_0x435e03['LIWfa'](join,_0x26b7b9,'SKILL.md'),_0x435e03[_0x59611b(0xab)]);}else{_0x571a50=await _0x435e03['zPGzi'](readFile,_0x554b92,_0x435e03['LgSxZ']);const _0x5b8ffc=join(_0x5e59f9,_0x435e03[_0x59611b(0xb7)]);await writeFile(_0x5b8ffc,_0x571a50,'utf-8'),_0xf94c9d['push'](_0x435e03[_0x59611b(0xb7)]);}const {name:_0x539f8e}=_0x435e03['sflsZ'](parseFrontmatter,_0x571a50);return console['log']('\x20\x20Installed\x20skill:\x20'+_0x539f8e),console[_0x59611b(0xbf)]('\x20\x20Location:\x20'+_0x5e59f9),_0x435e03['ENlkc'](_0xf94c9d[_0x59611b(0xa8)],0x1)&&console['log']('\x20\x20Files:\x20'+_0xf94c9d['join'](',\x20')),logLocalAgentInstallation(_0x8f2fe9,{'skillDisplayName':_0x539f8e,'installLevel':level},_0x5a0f96)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x47c046=_0x13d08d,_0x22eb8b={'urIrm':_0x47c046(0xa2),'BFEwc':function(_0x2ea390,_0x4d0b2f){return _0x2ea390(_0x4d0b2f);}},_0x313f28=[join(__dirname,'..','..',_0x47c046(0xa2)),join(__dirname,'..','..','..',_0x22eb8b[_0x47c046(0x9e)])];for(const _0x4633c3 of _0x313f28){if(_0x22eb8b[_0x47c046(0xb5)](existsSync,_0x4633c3))return _0x4633c3;}return _0x313f28[0x0];}function _0x1671(_0x302edd,_0x2c0fed){_0x302edd=_0x302edd-0x9b;const _0x262e25=_0x262e();let _0x167112=_0x262e25[_0x302edd];return _0x167112;}function parseFrontmatter(_0x7d26cb){const _0x287170=_0x13d08d,_0x426323=_0x7d26cb[_0x287170(0x9c)](/^---\n([\s\S]+?)\n---/);if(!_0x426323)throw new Error(_0x287170(0xb0));const _0x1b300e=_0x426323[0x1],_0x48ea2f=_0x1b300e['match'](/name:\s*(.+)/),_0x56b8fa=_0x1b300e[_0x287170(0x9c)](/description:\s*"?(.+?)"?\n/);return{'name':_0x48ea2f?.[0x1][_0x287170(0xa4)]()||'','description':_0x56b8fa?.[0x1]['trim']()||''};}export async function removeSkill(_0x4540f2,_0xe42ec0){const _0xf5c0e5=_0x13d08d,_0x109371={'vbdtl':function(_0x1347e4,_0x35382f,_0x4e5af6){return _0x1347e4(_0x35382f,_0x4e5af6);},'RYewA':function(_0x19b8b6,_0x343713){return _0x19b8b6(_0x343713);}},_0xd632d0=getSkillsDir(_0xe42ec0),_0x5d94a8=_0x109371['vbdtl'](join,_0xd632d0,_0x4540f2);if(!_0x109371['RYewA'](existsSync,_0x5d94a8))return![];try{return await rm(_0x5d94a8,{'recursive':!![]}),console['log'](_0xf5c0e5(0xa3)+_0x4540f2),!![];}catch{return console['warn'](_0xf5c0e5(0xba)+_0x4540f2),![];}}
@@ -1 +1 @@
1
- const _0x58d46a=_0x53b7;(function(_0x36c768,_0x4b89e6){const _0x4f6588=_0x53b7,_0x18dc6c=_0x36c768();while(!![]){try{const _0xac0774=-parseInt(_0x4f6588(0x1e8))/0x1*(parseInt(_0x4f6588(0x1dc))/0x2)+-parseInt(_0x4f6588(0x1d4))/0x3+-parseInt(_0x4f6588(0x204))/0x4+parseInt(_0x4f6588(0x1d9))/0x5+parseInt(_0x4f6588(0x1d5))/0x6*(parseInt(_0x4f6588(0x1d7))/0x7)+parseInt(_0x4f6588(0x208))/0x8*(parseInt(_0x4f6588(0x203))/0x9)+parseInt(_0x4f6588(0x209))/0xa;if(_0xac0774===_0x4b89e6)break;else _0x18dc6c['push'](_0x18dc6c['shift']());}catch(_0x2f7e14){_0x18dc6c['push'](_0x18dc6c['shift']());}}}(_0xc7d8,0xd3b5c));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(_0x249b92,_0x2f830b){const _0x230b90=_0x53b7,_0x4f4d5e={'yyzTS':function(_0x220df7,_0x3f980d){return _0x220df7>_0x3f980d;},'MIgKS':function(_0x54a632,_0x1096ed){return _0x54a632+_0x1096ed;},'GntOV':function(_0x2a8065,_0x4168b1){return _0x2a8065&_0x4168b1;},'POwdd':function(_0x6dc0ec,_0x2c8b07){return _0x6dc0ec<_0x2c8b07;},'ykPNg':function(_0x4b8f2d,_0x282167){return _0x4b8f2d*_0x282167;}};if(_0x2f830b>=_0x249b92[_0x230b90(0x1f0)])return[0x0,0x0];const _0x2b10c3=_0x249b92[_0x2f830b];let _0x5bc7f7=0x1,_0x38e07b=0x80;while(_0x5bc7f7<=0x8&&!(_0x2b10c3&_0x38e07b)){_0x5bc7f7++,_0x38e07b>>=0x1;}if(_0x4f4d5e[_0x230b90(0x1ef)](_0x4f4d5e['MIgKS'](_0x2f830b,_0x5bc7f7),_0x249b92['length']))return[0x0,0x0];let _0x53c6ae=_0x4f4d5e[_0x230b90(0x20e)](_0x2b10c3,_0x38e07b-0x1);for(let _0x3d5653=0x1;_0x4f4d5e['POwdd'](_0x3d5653,_0x5bc7f7);_0x3d5653++){_0x53c6ae=_0x4f4d5e['ykPNg'](_0x53c6ae,0x100)+_0x249b92[_0x2f830b+_0x3d5653];}return[_0x53c6ae,_0x5bc7f7];}function _0xc7d8(){const _0x33f1b3=['83276ieOzGr','zylyH','vuybp','GUtbj','argv','TkaUP','log','SfuXn','concat','OZIuf','clusters','XCgoM','34gNdMLl','max','maxTicks','xaKRr','mSzdj','WwHXj','\x20files\x20->\x20','yyzTS','length','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','jSvfU','pow','kvXrO','slice','jTWyc','qesEG','Cazcw','alloc','SXzcc','Oewyw','hzaAU','endsWith','hNZpy','DVrNv','ptpGK','Trssu','afUbi','6489990tqmSYY','2189560zhjFwK','bodyBeforeTimestamp','floor','KaekI','8ObZgmn','12632210WRHGwO','kSvtd','IUrSS','wwTsK','has','GntOV','agHjD','oiVMR','HnbhO','RHbRW','from','mPFlk','TDojK','fccht','JQfkt','rrTqE','bodyAfterTimestamp','UGFtY','zDPcb','push','pYWYe','snoSh','CKXvq','maxTimestampTicks','3102795kBfAjU','552000qOrYcM','readInt16BE','63ExkFst','LMvZx','5260900dTVjmc','sbPpb','header'];_0xc7d8=function(){return _0x33f1b3;};return _0xc7d8();}function readId(_0x4d8ef8,_0x17b54d){const _0x11a8a9=_0x53b7,_0x1548ae={'SfuXn':function(_0x591153,_0x47ee48){return _0x591153>=_0x47ee48;},'Oewyw':function(_0x28b285,_0x56b1de){return _0x28b285>_0x56b1de;},'GUtbj':function(_0x1fea60,_0x44b0c3){return _0x1fea60+_0x44b0c3;}};if(_0x1548ae[_0x11a8a9(0x1e3)](_0x17b54d,_0x4d8ef8[_0x11a8a9(0x1f0)]))return[0x0,0x0];const _0x5db2c6=_0x4d8ef8[_0x17b54d];let _0xe8f3d6;if(_0x5db2c6>=0x80)_0xe8f3d6=0x1;else{if(_0x5db2c6>=0x40)_0xe8f3d6=0x2;else{if(_0x5db2c6>=0x20)_0xe8f3d6=0x3;else{if(_0x1548ae[_0x11a8a9(0x1e3)](_0x5db2c6,0x10))_0xe8f3d6=0x4;else return[_0x5db2c6,0x1];}}}if(_0x1548ae[_0x11a8a9(0x1fb)](_0x1548ae[_0x11a8a9(0x1df)](_0x17b54d,_0xe8f3d6),_0x4d8ef8['length']))return[0x0,0x0];let _0x1ee928=0x0;for(let _0x171ddd=0x0;_0x171ddd<_0xe8f3d6;_0x171ddd++){_0x1ee928=_0x1548ae[_0x11a8a9(0x1df)](_0x1ee928*0x100,_0x4d8ef8[_0x17b54d+_0x171ddd]);}return[_0x1ee928,_0xe8f3d6];}function readUint(_0x252443,_0x142292,_0x544c88){const _0x3b8784=_0x53b7,_0x5dab48={'QaAta':function(_0x1c8363,_0xcaed83){return _0x1c8363<_0xcaed83;},'xaKRr':function(_0x1d9014,_0x560de4){return _0x1d9014*_0x560de4;}};let _0x4d9373=0x0;for(let _0x3baa24=0x0;_0x5dab48['QaAta'](_0x3baa24,_0x544c88);_0x3baa24++){_0x4d9373=_0x5dab48[_0x3b8784(0x1eb)](_0x4d9373,0x100)+_0x252443[_0x142292+_0x3baa24];}return _0x4d9373;}function isUnknownSize(_0x15e377,_0x28834a){const _0x50e94f=_0x53b7,_0x5755b4={'WwHXj':function(_0x2b892c,_0x1b2f02){return _0x2b892c===_0x1b2f02;},'RHbRW':function(_0x190a18,_0x5132c8){return _0x190a18*_0x5132c8;}};return _0x5755b4[_0x50e94f(0x1ed)](_0x15e377,Math[_0x50e94f(0x1f3)](0x2,_0x5755b4[_0x50e94f(0x1c5)](0x7,_0x28834a))-0x1);}function writeVint(_0x1cb6dd,_0x2fe55c){const _0x190b11=_0x53b7,_0x4d16d7={'ptpGK':function(_0x1e590,_0x276679){return _0x1e590-_0x276679;},'vuybp':function(_0xba1e43,_0x59f222){return _0xba1e43*_0x59f222;},'jSvfU':function(_0x32072c,_0x4f1ba8){return _0x32072c>=_0x4f1ba8;},'hzaAU':function(_0x1287fc,_0x3e8639){return _0x1287fc&_0x3e8639;},'fccht':function(_0x1a9e58,_0x376575){return _0x1a9e58/_0x376575;},'zylyH':function(_0x4bb7bd,_0x5acd17){return _0x4bb7bd<<_0x5acd17;}};let _0x52cb21=_0x2fe55c||0x1;while(_0x4d16d7[_0x190b11(0x200)](Math['pow'](0x2,_0x4d16d7[_0x190b11(0x1de)](0x7,_0x52cb21)),0x2)<_0x1cb6dd)_0x52cb21++;const _0x5a68c6=Buffer[_0x190b11(0x1f9)](_0x52cb21);for(let _0x5b9a75=_0x52cb21-0x1;_0x4d16d7[_0x190b11(0x1f2)](_0x5b9a75,0x0);_0x5b9a75--){_0x5a68c6[_0x5b9a75]=_0x4d16d7[_0x190b11(0x1fc)](_0x1cb6dd,0xff),_0x1cb6dd=Math[_0x190b11(0x206)](_0x4d16d7[_0x190b11(0x1c9)](_0x1cb6dd,0x100));}return _0x5a68c6[0x0]|=_0x4d16d7[_0x190b11(0x1dd)](0x1,_0x4d16d7['ptpGK'](0x8,_0x52cb21)),_0x5a68c6;}function writeUint(_0x23c76e,_0x947800){const _0xa97355=_0x53b7,_0x5aac01={'VNzVD':function(_0x610d2d,_0x384cce){return _0x610d2d-_0x384cce;},'qxTuU':function(_0x3c8979,_0x259ea1){return _0x3c8979&_0x259ea1;}},_0x2f1207=Buffer['alloc'](_0x947800);for(let _0x2c749f=_0x5aac01['VNzVD'](_0x947800,0x1);_0x2c749f>=0x0;_0x2c749f--){_0x2f1207[_0x2c749f]=_0x5aac01['qxTuU'](_0x23c76e,0xff),_0x23c76e=Math[_0xa97355(0x206)](_0x23c76e/0x100);}return _0x2f1207;}function writeUnknownSizeVint(_0x4da35b){const _0xefc1cf=_0x53b7,_0x224df1={'SfKzh':function(_0x2a3822,_0x2c900e){return _0x2a3822>>_0x2c900e;},'agHjD':function(_0x771331,_0x23f699){return _0x771331-_0x23f699;}},_0x594c04=Buffer[_0xefc1cf(0x1f9)](_0x4da35b,0xff);return _0x594c04[0x0]=_0x224df1['SfKzh'](0xff,_0x224df1[_0xefc1cf(0x20f)](_0x4da35b,0x1)),_0x594c04;}function uintSize(_0x204817){const _0x4ff311=_0x53b7,_0x5313ca={'mSzdj':function(_0x44fc28,_0x57daba){return _0x44fc28===_0x57daba;},'zDPcb':function(_0x15b6fa,_0x53732c){return _0x15b6fa/_0x53732c;}};if(_0x5313ca[_0x4ff311(0x1ec)](_0x204817,0x0))return 0x1;let _0x2e282f=0x0,_0x3c3d5b=_0x204817;while(_0x3c3d5b>0x0){_0x2e282f++,_0x3c3d5b=Math[_0x4ff311(0x206)](_0x5313ca[_0x4ff311(0x1ce)](_0x3c3d5b,0x100));}return _0x2e282f;}function findTimestampScale(_0x3e9410,_0x45adbd){const _0x11aa6d=_0x53b7,_0x1fc5da={'wWSPx':function(_0x4e8cc1,_0x42810f){return _0x4e8cc1<_0x42810f;},'xwfls':function(_0x3f4149,_0x3bd3aa,_0x411072){return _0x3f4149(_0x3bd3aa,_0x411072);},'jTWyc':function(_0x42b52d,_0x4b5157){return _0x42b52d+_0x4b5157;},'hNZpy':function(_0xa653ef,_0x3ad271){return _0xa653ef+_0x3ad271;}};let _0x1d64f0=_0x45adbd;const _0x1a3dce=Math['min'](_0x3e9410['length'],_0x45adbd+0x2710);while(_0x1fc5da['wWSPx'](_0x1d64f0,_0x1a3dce)){const [_0x26b22d,_0x36b63f]=_0x1fc5da['xwfls'](readId,_0x3e9410,_0x1d64f0),[_0x3a7bf4,_0x48c3f8]=_0x1fc5da['xwfls'](readVint,_0x3e9410,_0x1d64f0+_0x36b63f);if(_0x26b22d===ID_INFO){let _0x58f749=_0x1d64f0+_0x36b63f+_0x48c3f8;const _0x2e4fab=_0x1fc5da[_0x11aa6d(0x1f6)](_0x58f749,_0x3a7bf4);while(_0x58f749<_0x2e4fab){const [_0x2426a8,_0x2b3cc2]=_0x1fc5da['xwfls'](readId,_0x3e9410,_0x58f749),[_0x10cf44,_0x125c44]=_0x1fc5da['xwfls'](readVint,_0x3e9410,_0x58f749+_0x2b3cc2);if(_0x2426a8===ID_TIMESTAMP_SCALE)return readUint(_0x3e9410,_0x58f749+_0x2b3cc2+_0x125c44,_0x10cf44);_0x58f749+=_0x1fc5da[_0x11aa6d(0x1f6)](_0x2b3cc2+_0x125c44,_0x10cf44);}break;}if(_0x26b22d===ID_CLUSTER)break;if(isUnknownSize(_0x3a7bf4,_0x48c3f8))break;_0x1d64f0+=_0x1fc5da[_0x11aa6d(0x1fe)](_0x36b63f+_0x48c3f8,_0x3a7bf4);}return 0xf4240;}function findFirstClusterOffset(_0x33ce29,_0x4d9d0d){const _0x59aac4=_0x53b7,_0x16fa1d={'rrTqE':function(_0x568252,_0xb774a9,_0x34ca6f){return _0x568252(_0xb774a9,_0x34ca6f);},'FWpTc':function(_0x33c9e0,_0x314ca8){return _0x33c9e0===_0x314ca8;},'bHdVe':function(_0x41c99f,_0x481027){return _0x41c99f+_0x481027;}};let _0xd9e23b=_0x4d9d0d;while(_0xd9e23b<_0x33ce29['length']){const [_0x3be74e,_0x776000]=_0x16fa1d['rrTqE'](readId,_0x33ce29,_0xd9e23b);if(_0x16fa1d['FWpTc'](_0x3be74e,ID_CLUSTER))return _0xd9e23b;const [_0x4a46e4,_0x3976bc]=_0x16fa1d[_0x59aac4(0x1cb)](readVint,_0x33ce29,_0x16fa1d['bHdVe'](_0xd9e23b,_0x776000));if(isUnknownSize(_0x4a46e4,_0x3976bc))return _0xd9e23b;_0xd9e23b+=_0x16fa1d['bHdVe'](_0x776000+_0x3976bc,_0x4a46e4);}return _0x33ce29[_0x59aac4(0x1f0)];}function findClusterEnd(_0x1ac931,_0x19054e,_0x48ba7e,_0x190387){const _0x5a408e=_0x53b7,_0x28b77b={'RADhP':function(_0x271274,_0x421b3e,_0x381ccd){return _0x271274(_0x421b3e,_0x381ccd);},'oiVMR':function(_0x448f1d,_0x57390f){return _0x448f1d<_0x57390f;},'LMvZx':function(_0xad3a4d,_0xde2acf,_0x1972f3){return _0xad3a4d(_0xde2acf,_0x1972f3);},'sbPpb':function(_0x26e6e3,_0x287ec2){return _0x26e6e3+_0x287ec2;}};if(!_0x28b77b['RADhP'](isUnknownSize,_0x48ba7e,_0x190387))return _0x19054e+_0x48ba7e;const _0x15de58=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x4355ca=_0x19054e;while(_0x28b77b[_0x5a408e(0x210)](_0x4355ca,_0x1ac931[_0x5a408e(0x1f0)]-0x4)){const [_0x2c6580,_0x50fc04]=_0x28b77b[_0x5a408e(0x1d8)](readId,_0x1ac931,_0x4355ca);if(_0x15de58[_0x5a408e(0x20d)](_0x2c6580))return _0x4355ca;const [_0x2251b4,_0x13f06e]=readVint(_0x1ac931,_0x28b77b[_0x5a408e(0x1da)](_0x4355ca,_0x50fc04));if(isUnknownSize(_0x2251b4,_0x13f06e))return _0x1ac931['length'];_0x4355ca+=_0x28b77b[_0x5a408e(0x1da)](_0x50fc04,_0x13f06e)+_0x2251b4;}return _0x1ac931['length'];}function _0x53b7(_0x4e3cb7,_0x4e35b3){_0x4e3cb7=_0x4e3cb7-0x1c5;const _0xc7d8bc=_0xc7d8();let _0x53b7f2=_0xc7d8bc[_0x4e3cb7];return _0x53b7f2;}function extractClusters(_0x5096a6,_0x10a87f){const _0x2df84f=_0x53b7,_0x3ced5a={'KaekI':function(_0x4e8d52,_0x4b5591){return _0x4e8d52<_0x4b5591;},'qesEG':function(_0x3e2cb4,_0x5b46e2,_0x456d24){return _0x3e2cb4(_0x5b46e2,_0x456d24);},'UGFtY':function(_0x51cb1d,_0x3aefff){return _0x51cb1d+_0x3aefff;},'eBPNZ':function(_0x5099a0,_0x3988e9){return _0x5099a0+_0x3988e9;},'TDojK':function(_0x308a31,_0xa7e069,_0x378978,_0x146ce5,_0x1cf26e){return _0x308a31(_0xa7e069,_0x378978,_0x146ce5,_0x1cf26e);},'IUrSS':function(_0x334226,_0x18e234){return _0x334226<_0x18e234;},'jHfBu':function(_0x3e1f83,_0x121402,_0x20f485){return _0x3e1f83(_0x121402,_0x20f485);},'OZIuf':function(_0x553b58,_0x5a07fd){return _0x553b58===_0x5a07fd;},'hCDcY':function(_0x3cd7d6,_0x2d9b4c,_0x3dc84d,_0x51cc17){return _0x3cd7d6(_0x2d9b4c,_0x3dc84d,_0x51cc17);},'jrtMA':function(_0x90aeec,_0x29b803){return _0x90aeec+_0x29b803;},'NIMRL':function(_0x394b2d,_0x19bcb1,_0x50b074){return _0x394b2d(_0x19bcb1,_0x50b074);},'gToYK':function(_0x3a51ff,_0x4179c8){return _0x3a51ff>=_0x4179c8;},'CKXvq':function(_0x5b2b15,_0x2f0a68){return _0x5b2b15+_0x2f0a68;},'Trssu':function(_0x16963f,_0x425569,_0x59382e){return _0x16963f(_0x425569,_0x59382e);}},_0x19f170=[],_0x527390=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x501882=0x0;while(_0x3ced5a[_0x2df84f(0x207)](_0x501882,_0x5096a6[_0x2df84f(0x1f0)])){const _0x293102=_0x5096a6['indexOf'](_0x527390,_0x501882);if(_0x293102===-0x1)break;const [_0x2efcd4,_0x7752fc]=readId(_0x5096a6,_0x293102);if(_0x2efcd4!==ID_CLUSTER){_0x501882=_0x293102+0x1;continue;}const [_0x172ead,_0x236ecc]=_0x3ced5a['qesEG'](readVint,_0x5096a6,_0x3ced5a[_0x2df84f(0x1cd)](_0x293102,_0x7752fc)),_0x24900c=_0x3ced5a['eBPNZ'](_0x293102+_0x7752fc,_0x236ecc),_0x55b8ed=_0x3ced5a[_0x2df84f(0x1c8)](findClusterEnd,_0x5096a6,_0x24900c,_0x172ead,_0x236ecc);let _0x564868=_0x24900c,_0x4e8d88=0x0,_0x3dac10=0x2,_0x53228f=![],_0x2cae0a=Buffer[_0x2df84f(0x1f9)](0x0),_0x2f4423=Buffer[_0x2df84f(0x1f9)](0x0);while(_0x3ced5a[_0x2df84f(0x20b)](_0x564868,_0x55b8ed)){const [_0x3f03dd,_0x3d4d08]=_0x3ced5a[_0x2df84f(0x1f7)](readId,_0x5096a6,_0x564868),[_0x46541c,_0xad1efe]=_0x3ced5a['jHfBu'](readVint,_0x5096a6,_0x564868+_0x3d4d08);if(_0x3ced5a['OZIuf'](_0x3f03dd,ID_TIMESTAMP)){_0x4e8d88=_0x3ced5a['hCDcY'](readUint,_0x5096a6,_0x564868+_0x3d4d08+_0xad1efe,_0x46541c),_0x3dac10=_0x46541c,_0x53228f=!![],_0x2cae0a=_0x5096a6['slice'](_0x24900c,_0x564868);const _0x5d47e6=_0x3ced5a['jrtMA'](_0x564868,_0x3d4d08)+_0xad1efe+_0x46541c;_0x2f4423=_0x5096a6['slice'](_0x5d47e6,_0x55b8ed);break;}if(_0x3ced5a['OZIuf'](_0x3f03dd,ID_CLUSTER))break;if(_0x3ced5a[_0x2df84f(0x1f7)](isUnknownSize,_0x46541c,_0xad1efe))break;_0x564868+=_0x3d4d08+_0xad1efe+_0x46541c;}!_0x53228f&&(_0x2f4423=_0x5096a6['slice'](_0x24900c,_0x55b8ed));let _0x52db8f=_0x4e8d88;_0x564868=_0x24900c;while(_0x3ced5a[_0x2df84f(0x207)](_0x564868,_0x55b8ed)){const [_0x218c2d,_0x1b9cff]=_0x3ced5a['NIMRL'](readId,_0x5096a6,_0x564868),[_0x49bc06,_0x6ab660]=readVint(_0x5096a6,_0x564868+_0x1b9cff);if(_0x3ced5a[_0x2df84f(0x1e5)](_0x218c2d,ID_SIMPLE_BLOCK)&&_0x3ced5a['gToYK'](_0x49bc06,0x4)){const _0x54ec0d=_0x3ced5a[_0x2df84f(0x1d2)](_0x3ced5a[_0x2df84f(0x1d2)](_0x564868,_0x1b9cff),_0x6ab660),[,_0x562fd2]=_0x3ced5a[_0x2df84f(0x201)](readVint,_0x5096a6,_0x54ec0d),_0x2c4b9b=_0x5096a6[_0x2df84f(0x1d6)](_0x54ec0d+_0x562fd2),_0x30e8f6=_0x3ced5a['eBPNZ'](_0x4e8d88,_0x2c4b9b);if(_0x30e8f6>_0x52db8f)_0x52db8f=_0x30e8f6;}if(_0x3ced5a['OZIuf'](_0x218c2d,ID_CLUSTER))break;if(isUnknownSize(_0x49bc06,_0x6ab660))break;_0x564868+=_0x1b9cff+_0x6ab660+_0x49bc06;}_0x19f170['push']({'timestamp':_0x4e8d88,'maxTicks':_0x52db8f,'bodyBeforeTimestamp':_0x2cae0a,'bodyAfterTimestamp':_0x2f4423,'timestampElementSize':_0x3dac10}),_0x501882=_0x55b8ed;}return _0x19f170;}function parseWebm(_0x5aa01d){const _0x440333=_0x53b7,_0x13c43b={'uhWtH':function(_0x360a50,_0xdc582a,_0x3d1b78){return _0x360a50(_0xdc582a,_0x3d1b78);},'DcKEa':function(_0x4cc1e8,_0x261c81){return _0x4cc1e8+_0x261c81;},'XCgoM':function(_0x47d8f3,_0x4a846f){return _0x47d8f3+_0x4a846f;},'fRUxB':function(_0x5372e0,_0xb93d14){return _0x5372e0!==_0xb93d14;},'kvXrO':function(_0xbb273f,_0x4b629e){return _0xbb273f+_0x4b629e;},'pYWYe':function(_0x4b2aa7,_0x27f765,_0x9598bb){return _0x4b2aa7(_0x27f765,_0x9598bb);},'TkaUP':function(_0x2f20f7,_0x2d6774){return _0x2f20f7>_0x2d6774;}};let _0x54b761=0x0;const [,_0x2293d5]=readId(_0x5aa01d,_0x54b761),[_0x37b4d4,_0x2d12e9]=_0x13c43b['uhWtH'](readVint,_0x5aa01d,_0x54b761+_0x2293d5);_0x54b761+=_0x13c43b['DcKEa'](_0x13c43b[_0x440333(0x1e7)](_0x2293d5,_0x2d12e9),_0x37b4d4);const [_0x1b81f5,_0x233ce1]=readId(_0x5aa01d,_0x54b761);if(_0x13c43b['fRUxB'](_0x1b81f5,ID_SEGMENT))return null;const [,_0x427e95]=readVint(_0x5aa01d,_0x13c43b[_0x440333(0x1f4)](_0x54b761,_0x233ce1)),_0x5c99e4=_0x54b761+_0x233ce1+_0x427e95,_0xfee550=_0x13c43b[_0x440333(0x1d0)](findTimestampScale,_0x5aa01d,_0x5c99e4),_0x509885=findFirstClusterOffset(_0x5aa01d,_0x5c99e4),_0x2df3fc=_0x5aa01d['slice'](0x0,_0x509885),_0x512c9e=_0x13c43b['uhWtH'](extractClusters,_0x5aa01d,_0xfee550);let _0xe36d3d=0x0;for(const _0x1ecb89 of _0x512c9e){if(_0x13c43b[_0x440333(0x1e1)](_0x1ecb89['maxTicks'],_0xe36d3d))_0xe36d3d=_0x1ecb89[_0x440333(0x1ea)];}return{'header':_0x2df3fc,'clusters':_0x512c9e,'timestampScale':_0xfee550,'maxTimestampTicks':_0xe36d3d};}function buildCluster(_0xd109b4,_0x326e49,_0x1efff5){const _0xd1b23f=_0x53b7,_0x400307={'McBeF':function(_0x2095b8,_0x566be8){return _0x2095b8(_0x566be8);},'CtXrR':function(_0x2c1581,_0x592e05){return _0x2c1581(_0x592e05);}},_0x4e9117=Buffer['from']([0x1f,0x43,0xb6,0x75]),_0x24a758=Math[_0xd1b23f(0x1e9)](0x4,_0x400307['McBeF'](uintSize,_0xd109b4)),_0x1f1d15=Buffer['concat']([Buffer['from']([ID_TIMESTAMP]),_0x400307['CtXrR'](writeVint,_0x24a758),writeUint(_0xd109b4,_0x24a758)]),_0x2da70d=Buffer[_0xd1b23f(0x1e4)]([_0x326e49,_0x1f1d15,_0x1efff5]),_0x58ff68=writeVint(_0x2da70d['length']);return Buffer['concat']([_0x4e9117,_0x58ff68,_0x2da70d]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x5e950a){const _0x4d1987=_0x53b7,_0x337d53={'mPFlk':function(_0x3d97ea,_0x1553af,_0x1188f9){return _0x3d97ea(_0x1553af,_0x1188f9);},'kSvtd':function(_0xe2b80,_0x3c75e3){return _0xe2b80+_0x3c75e3;},'afUbi':function(_0x37386f,_0x4123ee){return _0x37386f+_0x4123ee;},'snoSh':function(_0x5ab428,_0x29f273){return _0x5ab428(_0x29f273);},'KJJRf':function(_0x998c61,_0x77717c){return _0x998c61+_0x77717c;},'HnbhO':function(_0x4e2926,_0x4baa61){return _0x4e2926<_0x4baa61;},'SPuML':function(_0x4d08d4,_0x507dd8){return _0x4d08d4===_0x507dd8;},'NVVVp':function(_0x366c21,_0xb299d7){return _0x366c21+_0xb299d7;},'Vcpyb':function(_0x353d91,_0x25120b,_0x27b337){return _0x353d91(_0x25120b,_0x27b337);},'VOgMZ':function(_0x3ac2d8,_0xfcb6a9){return _0x3ac2d8!==_0xfcb6a9;},'wwTsK':function(_0x5ed42d,_0x4fc21e){return _0x5ed42d+_0x4fc21e;},'Jodca':function(_0x1a4d81,_0x398e48,_0x3bbfb6){return _0x1a4d81(_0x398e48,_0x3bbfb6);},'VoAOD':function(_0x4e6de7,_0x4802f9){return _0x4e6de7+_0x4802f9;}},_0x1ab262=Buffer[_0x4d1987(0x1c6)](_0x5e950a);let _0x2b2e6f=0x0;const [,_0x6fec4]=readId(_0x1ab262,_0x2b2e6f),[_0x7cd4e,_0x440e1d]=_0x337d53['mPFlk'](readVint,_0x1ab262,_0x2b2e6f+_0x6fec4),_0x1a1975=_0x337d53[_0x4d1987(0x20a)](_0x2b2e6f+_0x6fec4,_0x440e1d)+_0x7cd4e,[,_0x5a679c]=readId(_0x1ab262,_0x1a1975),[,_0x4407b3]=readVint(_0x1ab262,_0x337d53[_0x4d1987(0x202)](_0x1a1975,_0x5a679c)),_0x224710=_0x337d53['kSvtd'](_0x1a1975+_0x5a679c,_0x4407b3),_0x2c2116=_0x337d53[_0x4d1987(0x1d1)](writeUnknownSizeVint,_0x4407b3);_0x2c2116['copy'](_0x1ab262,_0x337d53['KJJRf'](_0x1a1975,_0x5a679c));let _0x2e33ae=_0x224710;const _0x1b9bbe=Math['min'](_0x1ab262[_0x4d1987(0x1f0)],_0x224710+0x2710);while(_0x337d53[_0x4d1987(0x211)](_0x2e33ae,_0x1b9bbe)){const [_0x38a34e,_0x2b4b2b]=readId(_0x1ab262,_0x2e33ae),[_0x3b4f75,_0x5737fa]=_0x337d53[_0x4d1987(0x1c7)](readVint,_0x1ab262,_0x2e33ae+_0x2b4b2b);if(_0x38a34e===ID_CLUSTER)break;if(isUnknownSize(_0x3b4f75,_0x5737fa))break;if(_0x337d53['SPuML'](_0x38a34e,ID_INFO)){const _0x32b3fe=_0x337d53[_0x4d1987(0x20a)](_0x337d53['kSvtd'](_0x2e33ae,_0x2b4b2b),_0x5737fa),_0x588b2a=_0x337d53['NVVVp'](_0x32b3fe,_0x3b4f75),_0x5b3c48=[];let _0x14ba50=_0x32b3fe;while(_0x337d53[_0x4d1987(0x211)](_0x14ba50,_0x588b2a)){const [_0x18f6fc,_0x4139d0]=_0x337d53[_0x4d1987(0x1c7)](readId,_0x1ab262,_0x14ba50),[_0x523606,_0x5ecbc3]=_0x337d53['Vcpyb'](readVint,_0x1ab262,_0x14ba50+_0x4139d0),_0x14aea0=_0x337d53['kSvtd'](_0x337d53['kSvtd'](_0x4139d0,_0x5ecbc3),_0x523606);_0x337d53['VOgMZ'](_0x18f6fc,ID_DURATION)&&_0x5b3c48['push'](_0x1ab262['slice'](_0x14ba50,_0x337d53[_0x4d1987(0x20c)](_0x14ba50,_0x14aea0))),_0x14ba50+=_0x14aea0;}const _0x3d7216=Buffer[_0x4d1987(0x1e4)](_0x5b3c48),_0x495dab=Buffer[_0x4d1987(0x1e4)]([_0x1ab262['slice'](_0x2e33ae,_0x2e33ae+_0x2b4b2b),_0x337d53['Jodca'](writeVint,_0x3d7216[_0x4d1987(0x1f0)],_0x5737fa)]);return Buffer[_0x4d1987(0x1e4)]([_0x1ab262['slice'](0x0,_0x2e33ae),_0x495dab,_0x3d7216,_0x1ab262['slice'](_0x588b2a)]);}_0x2e33ae+=_0x337d53['VoAOD'](_0x2b4b2b,_0x5737fa)+_0x3b4f75;}return _0x1ab262;}export function stitchWebmFiles(_0x599a02,_0x1afae3){const _0x43147a=_0x53b7,_0x4324bf={'SlTJA':function(_0x1c3f72,_0xbbc405){return _0x1c3f72===_0xbbc405;},'JQfkt':function(_0x190dca,_0x59d446){return _0x190dca(_0x59d446);},'DVrNv':function(_0x46ff2b,_0x14454e){return _0x46ff2b<_0x14454e;},'uJLES':function(_0x537be9,_0x1732f4,_0x20e35f,_0x5b9ac1){return _0x537be9(_0x1732f4,_0x20e35f,_0x5b9ac1);},'Cazcw':function(_0x245b21,_0x245092){return _0x245b21+_0x245092;},'SXzcc':function(_0x4f0689,_0x56af03,_0x9a8c2b){return _0x4f0689(_0x56af03,_0x9a8c2b);}};if(_0x599a02['length']<=0x1)return![];const _0x2dc00d=[];for(const _0x1cb46f of _0x599a02){const _0x258bdd=readFileSync(_0x1cb46f),_0x59cb23=parseWebm(_0x258bdd);if(!_0x59cb23||_0x4324bf['SlTJA'](_0x59cb23['clusters']['length'],0x0))return![];_0x2dc00d[_0x43147a(0x1cf)](_0x59cb23);}const _0x160154=_0x2dc00d[0x0],_0xa0f630=_0x4324bf[_0x43147a(0x1ca)](rebuildHeaderWithoutDuration,_0x160154[_0x43147a(0x1db)]),_0x430ae4=[_0xa0f630];let _0x1b15e9=0x0;for(let _0x4742d9=0x0;_0x4324bf[_0x43147a(0x1ff)](_0x4742d9,_0x2dc00d['length']);_0x4742d9++){const _0x199015=_0x2dc00d[_0x4742d9];for(const _0x1e2fe9 of _0x199015[_0x43147a(0x1e6)]){const _0x3adc01=_0x1e2fe9['timestamp']+_0x1b15e9;_0x430ae4[_0x43147a(0x1cf)](_0x4324bf['uJLES'](buildCluster,_0x3adc01,_0x1e2fe9[_0x43147a(0x205)],_0x1e2fe9[_0x43147a(0x1cc)]));}const _0xbf8344=0x1e;_0x1b15e9+=_0x4324bf[_0x43147a(0x1f8)](_0x199015[_0x43147a(0x1d3)],_0xbf8344);}return _0x4324bf[_0x43147a(0x1fa)](writeFileSync,_0x1afae3,Buffer['concat'](_0x430ae4)),!![];}if(process[_0x58d46a(0x1e0)][0x1]?.[_0x58d46a(0x1fd)]('stitchWebmFiles.ts')||process['argv'][0x1]?.[_0x58d46a(0x1fd)]('stitchWebmFiles.js')){const args=process['argv'][_0x58d46a(0x1f5)](0x2);args[_0x58d46a(0x1f0)]<0x3&&(console['error'](_0x58d46a(0x1f1)),process['exit'](0x1));const output=args[args[_0x58d46a(0x1f0)]-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console['log']('Stitched\x20'+inputs[_0x58d46a(0x1f0)]+_0x58d46a(0x1ee)+output):console[_0x58d46a(0x1e2)]('Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.');}
1
+ const _0x54be51=_0x4be4;(function(_0x124c7a,_0x515e87){const _0x4c9f5c=_0x4be4,_0x14b418=_0x124c7a();while(!![]){try{const _0x209e3f=-parseInt(_0x4c9f5c(0x1c8))/0x1*(parseInt(_0x4c9f5c(0x1b3))/0x2)+-parseInt(_0x4c9f5c(0x1c0))/0x3+-parseInt(_0x4c9f5c(0x1c2))/0x4*(parseInt(_0x4c9f5c(0x1c3))/0x5)+parseInt(_0x4c9f5c(0x1bf))/0x6*(parseInt(_0x4c9f5c(0x19f))/0x7)+parseInt(_0x4c9f5c(0x1be))/0x8+parseInt(_0x4c9f5c(0x198))/0x9+parseInt(_0x4c9f5c(0x1b1))/0xa*(parseInt(_0x4c9f5c(0x1bb))/0xb);if(_0x209e3f===_0x515e87)break;else _0x14b418['push'](_0x14b418['shift']());}catch(_0x20c552){_0x14b418['push'](_0x14b418['shift']());}}}(_0x432d,0x1bc54));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(_0x3dbb5d,_0x588bcc){const _0xb60a65=_0x4be4,_0x5bb21e={'Agszb':function(_0x132f2a,_0x34d0df){return _0x132f2a<=_0x34d0df;},'WsczF':function(_0x412550,_0x2f6c6a){return _0x412550>_0x2f6c6a;},'acAeP':function(_0x1896da,_0x3ae4da){return _0x1896da&_0x3ae4da;},'OgDTD':function(_0x2c894c,_0x2bb8c5){return _0x2c894c<_0x2bb8c5;},'Fsmvw':function(_0x427bd7,_0x569e7b){return _0x427bd7+_0x569e7b;},'lNXBk':function(_0x30ba75,_0x1c2e30){return _0x30ba75*_0x1c2e30;},'wiCle':function(_0x52d866,_0x5a20c3){return _0x52d866+_0x5a20c3;}};if(_0x588bcc>=_0x3dbb5d['length'])return[0x0,0x0];const _0x4c012b=_0x3dbb5d[_0x588bcc];let _0x3ca29a=0x1,_0x55d398=0x80;while(_0x5bb21e[_0xb60a65(0x1ae)](_0x3ca29a,0x8)&&!(_0x4c012b&_0x55d398)){_0x3ca29a++,_0x55d398>>=0x1;}if(_0x5bb21e['WsczF'](_0x588bcc+_0x3ca29a,_0x3dbb5d['length']))return[0x0,0x0];let _0x56474f=_0x5bb21e['acAeP'](_0x4c012b,_0x55d398-0x1);for(let _0x11b12d=0x1;_0x5bb21e['OgDTD'](_0x11b12d,_0x3ca29a);_0x11b12d++){_0x56474f=_0x5bb21e['Fsmvw'](_0x5bb21e['lNXBk'](_0x56474f,0x100),_0x3dbb5d[_0x5bb21e[_0xb60a65(0x1b2)](_0x588bcc,_0x11b12d)]);}return[_0x56474f,_0x3ca29a];}function readId(_0x28f130,_0x3ca7da){const _0xc64cd6=_0x4be4,_0xc141e9={'eKYiS':function(_0x1fcb44,_0x4db1ca){return _0x1fcb44>=_0x4db1ca;},'Nhbmy':function(_0x2be916,_0xab1c93){return _0x2be916>=_0xab1c93;},'mAGyI':function(_0x76c77,_0x3a5596){return _0x76c77>=_0x3a5596;},'jwStw':function(_0x1e522c,_0x55ce33){return _0x1e522c>=_0x55ce33;},'bKIlB':function(_0x2b4eb4,_0x4de40f){return _0x2b4eb4<_0x4de40f;}};if(_0xc141e9[_0xc64cd6(0x1ad)](_0x3ca7da,_0x28f130['length']))return[0x0,0x0];const _0x11f9ff=_0x28f130[_0x3ca7da];let _0x18eb4f;if(_0xc141e9[_0xc64cd6(0x192)](_0x11f9ff,0x80))_0x18eb4f=0x1;else{if(_0xc141e9['mAGyI'](_0x11f9ff,0x40))_0x18eb4f=0x2;else{if(_0x11f9ff>=0x20)_0x18eb4f=0x3;else{if(_0xc141e9[_0xc64cd6(0x194)](_0x11f9ff,0x10))_0x18eb4f=0x4;else return[_0x11f9ff,0x1];}}}if(_0x3ca7da+_0x18eb4f>_0x28f130[_0xc64cd6(0x1b0)])return[0x0,0x0];let _0x4e91fa=0x0;for(let _0x44ecff=0x0;_0xc141e9['bKIlB'](_0x44ecff,_0x18eb4f);_0x44ecff++){_0x4e91fa=_0x4e91fa*0x100+_0x28f130[_0x3ca7da+_0x44ecff];}return[_0x4e91fa,_0x18eb4f];}function readUint(_0x2f14c0,_0x5d1e8c,_0x11cac5){const _0x5ef0a6=_0x4be4,_0x4df53c={'uyiJC':function(_0x563bba,_0x14bdd5){return _0x563bba+_0x14bdd5;}};let _0xed84c7=0x0;for(let _0x20ee3d=0x0;_0x20ee3d<_0x11cac5;_0x20ee3d++){_0xed84c7=_0x4df53c[_0x5ef0a6(0x18f)](_0xed84c7*0x100,_0x2f14c0[_0x5d1e8c+_0x20ee3d]);}return _0xed84c7;}function isUnknownSize(_0x3c765b,_0x1220db){const _0x39670b=_0x4be4,_0x5485c5={'gECrV':function(_0x1be764,_0x1a4f02){return _0x1be764===_0x1a4f02;},'WexMe':function(_0x495bd3,_0x10757e){return _0x495bd3-_0x10757e;}};return _0x5485c5[_0x39670b(0x18e)](_0x3c765b,_0x5485c5['WexMe'](Math[_0x39670b(0x191)](0x2,0x7*_0x1220db),0x1));}function writeVint(_0x3b600d,_0x1a9e39){const _0x5bd33c=_0x4be4,_0x59dc59={'oAZXf':function(_0x51e1af,_0x49e68b){return _0x51e1af<_0x49e68b;},'BVyxf':function(_0x2353c2,_0x19c39c){return _0x2353c2*_0x19c39c;},'oFaUT':function(_0x40763b,_0x3ffe96){return _0x40763b>=_0x3ffe96;}};let _0x2f4387=_0x1a9e39||0x1;while(_0x59dc59[_0x5bd33c(0x1a4)](Math[_0x5bd33c(0x191)](0x2,_0x59dc59[_0x5bd33c(0x1cb)](0x7,_0x2f4387))-0x2,_0x3b600d))_0x2f4387++;const _0xd492a6=Buffer[_0x5bd33c(0x1b6)](_0x2f4387);for(let _0x3d74da=_0x2f4387-0x1;_0x59dc59[_0x5bd33c(0x195)](_0x3d74da,0x0);_0x3d74da--){_0xd492a6[_0x3d74da]=_0x3b600d&0xff,_0x3b600d=Math['floor'](_0x3b600d/0x100);}return _0xd492a6[0x0]|=0x1<<0x8-_0x2f4387,_0xd492a6;}function writeUint(_0x1e44e,_0x594b2b){const _0x3866e2=_0x4be4,_0x26dc37={'aKHKB':function(_0xadc44e,_0x43d1d3){return _0xadc44e-_0x43d1d3;},'vIyip':function(_0xba86b9,_0x4bdb70){return _0xba86b9&_0x4bdb70;},'KlHEK':function(_0x1da0c6,_0x3e6558){return _0x1da0c6/_0x3e6558;}},_0x446291=Buffer['alloc'](_0x594b2b);for(let _0x3d991f=_0x26dc37['aKHKB'](_0x594b2b,0x1);_0x3d991f>=0x0;_0x3d991f--){_0x446291[_0x3d991f]=_0x26dc37['vIyip'](_0x1e44e,0xff),_0x1e44e=Math[_0x3866e2(0x19e)](_0x26dc37[_0x3866e2(0x1aa)](_0x1e44e,0x100));}return _0x446291;}function writeUnknownSizeVint(_0xe81225){const _0x5530bc=Buffer['alloc'](_0xe81225,0xff);return _0x5530bc[0x0]=0xff>>_0xe81225-0x1,_0x5530bc;}function uintSize(_0x4652c6){const _0x28cf97=_0x4be4,_0x2da16e={'FGThb':function(_0x4a8b07,_0x5a7dac){return _0x4a8b07>_0x5a7dac;},'XxIgy':function(_0x19077b,_0x15138b){return _0x19077b/_0x15138b;}};if(_0x4652c6===0x0)return 0x1;let _0x4bdccf=0x0,_0x237c6e=_0x4652c6;while(_0x2da16e[_0x28cf97(0x1b7)](_0x237c6e,0x0)){_0x4bdccf++,_0x237c6e=Math[_0x28cf97(0x19e)](_0x2da16e['XxIgy'](_0x237c6e,0x100));}return _0x4bdccf;}function _0x432d(){const _0x54ab2c=['UqWTl','alloc','FGThb','TnbnK','Stitched\x20','TwonF','5203AJgHlC','UkoOd','CSodk','510208JHaNqv','12198gLqIai','114504YSmhDL','BjLRJ','13676NoMRDV','160GxiCjY','FZZUn','slice','jXYIX','Pdcuc','3lSFbHH','lSbvo','Jkygl','BVyxf','log','from','mjIOa','Dfvaf','cGJdv','SzjlF','jdqje','gECrV','uyiJC','kybCO','pow','Nhbmy','has','jwStw','oFaUT','YepqM','readInt16BE','604179YjfzKY','rivFW','svhkk','tBbSK','lbnHB','vouno','floor','392GKhSqZ','stitchWebmFiles.ts','bodyBeforeTimestamp','jIwiG','KnJay','oAZXf','endsWith','concat','timestamp','indexOf','push','KlHEK','min','jymZi','eKYiS','Agszb','ZARXS','length','1140fLuJPY','wiCle','24902qQUGZY','uzTxI'];_0x432d=function(){return _0x54ab2c;};return _0x432d();}function findTimestampScale(_0xe60b67,_0x4da6a9){const _0x14b51b=_0x4be4,_0x5bf6ea={'svhkk':function(_0x48452f,_0x58964f){return _0x48452f+_0x58964f;},'BDnzp':function(_0x5ce5af,_0x4831a8,_0x9879b5){return _0x5ce5af(_0x4831a8,_0x9879b5);},'lbnHB':function(_0x5d3a72,_0x1f1820,_0x36db10){return _0x5d3a72(_0x1f1820,_0x36db10);},'TwonF':function(_0x30f64d,_0x36025a,_0x5450b9){return _0x30f64d(_0x36025a,_0x5450b9);},'xTrjZ':function(_0x42cb41,_0x40642d){return _0x42cb41+_0x40642d;},'VKXKn':function(_0x4f1539,_0x2d55c5){return _0x4f1539+_0x2d55c5;},'WqSnM':function(_0x45f00a,_0x3dc040,_0x4eb871){return _0x45f00a(_0x3dc040,_0x4eb871);},'mjIOa':function(_0x445d27,_0x27b304){return _0x445d27+_0x27b304;}};let _0x3ccc3b=_0x4da6a9;const _0x23cc72=Math[_0x14b51b(0x1ab)](_0xe60b67['length'],_0x5bf6ea['svhkk'](_0x4da6a9,0x2710));while(_0x3ccc3b<_0x23cc72){const [_0x1c9467,_0x3ba764]=_0x5bf6ea['BDnzp'](readId,_0xe60b67,_0x3ccc3b),[_0x2ad789,_0x5dde39]=readVint(_0xe60b67,_0x5bf6ea[_0x14b51b(0x19a)](_0x3ccc3b,_0x3ba764));if(_0x1c9467===ID_INFO){let _0x4fb8f=_0x5bf6ea['svhkk'](_0x3ccc3b,_0x3ba764)+_0x5dde39;const _0x3300d4=_0x4fb8f+_0x2ad789;while(_0x4fb8f<_0x3300d4){const [_0x1b6983,_0xa9d663]=_0x5bf6ea[_0x14b51b(0x19c)](readId,_0xe60b67,_0x4fb8f),[_0x58ea0c,_0x3bba59]=_0x5bf6ea[_0x14b51b(0x1ba)](readVint,_0xe60b67,_0x4fb8f+_0xa9d663);if(_0x1b6983===ID_TIMESTAMP_SCALE)return readUint(_0xe60b67,_0x5bf6ea['svhkk'](_0x4fb8f+_0xa9d663,_0x3bba59),_0x58ea0c);_0x4fb8f+=_0x5bf6ea['xTrjZ'](_0x5bf6ea['VKXKn'](_0xa9d663,_0x3bba59),_0x58ea0c);}break;}if(_0x1c9467===ID_CLUSTER)break;if(_0x5bf6ea['WqSnM'](isUnknownSize,_0x2ad789,_0x5dde39))break;_0x3ccc3b+=_0x5bf6ea[_0x14b51b(0x189)](_0x3ba764+_0x5dde39,_0x2ad789);}return 0xf4240;}function _0x4be4(_0x2974cc,_0x20c99c){_0x2974cc=_0x2974cc-0x187;const _0x432d9c=_0x432d();let _0x4be47a=_0x432d9c[_0x2974cc];return _0x4be47a;}function findFirstClusterOffset(_0x293802,_0x3482fc){const _0x4e3063=_0x4be4,_0x5f4d76={'uzTxI':function(_0x517fdc,_0x9efc5b){return _0x517fdc===_0x9efc5b;},'FZZUn':function(_0xf705f9,_0x5a2187,_0x17915a){return _0xf705f9(_0x5a2187,_0x17915a);},'jfQhX':function(_0x255ac9,_0x198cff){return _0x255ac9+_0x198cff;},'hLvMN':function(_0x3f2c7e,_0x57f46d){return _0x3f2c7e+_0x57f46d;}};let _0x35f703=_0x3482fc;while(_0x35f703<_0x293802['length']){const [_0x5e1564,_0x160fad]=readId(_0x293802,_0x35f703);if(_0x5f4d76[_0x4e3063(0x1b4)](_0x5e1564,ID_CLUSTER))return _0x35f703;const [_0x5de5dc,_0x3e9929]=_0x5f4d76[_0x4e3063(0x1c4)](readVint,_0x293802,_0x5f4d76['jfQhX'](_0x35f703,_0x160fad));if(_0x5f4d76['FZZUn'](isUnknownSize,_0x5de5dc,_0x3e9929))return _0x35f703;_0x35f703+=_0x5f4d76['hLvMN'](_0x160fad+_0x3e9929,_0x5de5dc);}return _0x293802['length'];}function findClusterEnd(_0x42b968,_0x2ad624,_0x36e180,_0x23835f){const _0x468406=_0x4be4,_0x727d52={'CZnUl':function(_0x5cf614,_0x18a77b,_0x20b02c){return _0x5cf614(_0x18a77b,_0x20b02c);},'jIwiG':function(_0x4387ba,_0x4f9ea8){return _0x4387ba<_0x4f9ea8;},'VGuqL':function(_0x295e9f,_0x3b76a9,_0x3fcb42){return _0x295e9f(_0x3b76a9,_0x3fcb42);},'cCMIZ':function(_0x44e5e2,_0x58ef31){return _0x44e5e2+_0x58ef31;}};if(!_0x727d52['CZnUl'](isUnknownSize,_0x36e180,_0x23835f))return _0x2ad624+_0x36e180;const _0x348a12=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x467b0a=_0x2ad624;while(_0x727d52[_0x468406(0x1a2)](_0x467b0a,_0x42b968[_0x468406(0x1b0)]-0x4)){const [_0x48d027,_0x161bc6]=readId(_0x42b968,_0x467b0a);if(_0x348a12[_0x468406(0x193)](_0x48d027))return _0x467b0a;const [_0x452432,_0x15a126]=_0x727d52['VGuqL'](readVint,_0x42b968,_0x467b0a+_0x161bc6);if(isUnknownSize(_0x452432,_0x15a126))return _0x42b968['length'];_0x467b0a+=_0x727d52['cCMIZ'](_0x161bc6+_0x15a126,_0x452432);}return _0x42b968['length'];}function extractClusters(_0x5a9fa3,_0x4596da){const _0x520364=_0x4be4,_0x1bb86c={'ZARXS':function(_0x1d8614,_0x4b777c,_0x5bdac0,_0x21433c,_0x2e5b47){return _0x1d8614(_0x4b777c,_0x5bdac0,_0x21433c,_0x2e5b47);},'Pdcuc':function(_0x34523b,_0x3bcc5f){return _0x34523b<_0x3bcc5f;},'oPgDV':function(_0x208de4,_0x302a31,_0x400719){return _0x208de4(_0x302a31,_0x400719);},'TnbnK':function(_0x5ed398,_0x152fd3,_0x208e65){return _0x5ed398(_0x152fd3,_0x208e65);},'QeOUg':function(_0x73b595,_0x3ba192){return _0x73b595+_0x3ba192;},'Dfvaf':function(_0x1a22ca,_0x49f0c2,_0x25660d,_0x1c26b5){return _0x1a22ca(_0x49f0c2,_0x25660d,_0x1c26b5);},'UkoOd':function(_0x1abbcf,_0x31a32e){return _0x1abbcf+_0x31a32e;},'Jkygl':function(_0x45250c,_0x1a4840){return _0x45250c+_0x1a4840;},'KmoqE':function(_0x4c9eba,_0x341507){return _0x4c9eba+_0x341507;},'sUFlu':function(_0x1e2688,_0x27609d,_0x4b441c){return _0x1e2688(_0x27609d,_0x4b441c);},'ffqdk':function(_0x5235ce,_0x4d2713){return _0x5235ce+_0x4d2713;},'hiUFS':function(_0x2ce1f8,_0x1b6ba1){return _0x2ce1f8+_0x1b6ba1;},'jGWVL':function(_0x322ed8,_0x10bace){return _0x322ed8===_0x10bace;}},_0x24768f=[],_0x452b0b=Buffer[_0x520364(0x188)]([0x1f,0x43,0xb6,0x75]);let _0x1b3ec8=0x0;while(_0x1b3ec8<_0x5a9fa3[_0x520364(0x1b0)]){const _0x3997b9=_0x5a9fa3[_0x520364(0x1a8)](_0x452b0b,_0x1b3ec8);if(_0x3997b9===-0x1)break;const [_0x7fe7a5,_0x337203]=readId(_0x5a9fa3,_0x3997b9);if(_0x7fe7a5!==ID_CLUSTER){_0x1b3ec8=_0x3997b9+0x1;continue;}const [_0x35c8c5,_0x4b675b]=readVint(_0x5a9fa3,_0x3997b9+_0x337203),_0x2e1a52=_0x3997b9+_0x337203+_0x4b675b,_0x124ef4=_0x1bb86c[_0x520364(0x1af)](findClusterEnd,_0x5a9fa3,_0x2e1a52,_0x35c8c5,_0x4b675b);let _0x3a711c=_0x2e1a52,_0x578776=0x0,_0x473cc6=0x2,_0x5c74c1=![],_0x370b02=Buffer[_0x520364(0x1b6)](0x0),_0x2d1fe7=Buffer[_0x520364(0x1b6)](0x0);while(_0x1bb86c[_0x520364(0x1c7)](_0x3a711c,_0x124ef4)){const [_0x242975,_0x5e73c5]=_0x1bb86c['oPgDV'](readId,_0x5a9fa3,_0x3a711c),[_0x532820,_0x55806f]=_0x1bb86c[_0x520364(0x1b8)](readVint,_0x5a9fa3,_0x1bb86c['QeOUg'](_0x3a711c,_0x5e73c5));if(_0x242975===ID_TIMESTAMP){_0x578776=_0x1bb86c[_0x520364(0x18a)](readUint,_0x5a9fa3,_0x1bb86c['QeOUg'](_0x3a711c+_0x5e73c5,_0x55806f),_0x532820),_0x473cc6=_0x532820,_0x5c74c1=!![],_0x370b02=_0x5a9fa3[_0x520364(0x1c5)](_0x2e1a52,_0x3a711c);const _0x45a9d5=_0x1bb86c[_0x520364(0x1bc)](_0x1bb86c[_0x520364(0x1ca)](_0x1bb86c['KmoqE'](_0x3a711c,_0x5e73c5),_0x55806f),_0x532820);_0x2d1fe7=_0x5a9fa3[_0x520364(0x1c5)](_0x45a9d5,_0x124ef4);break;}if(_0x242975===ID_CLUSTER)break;if(_0x1bb86c[_0x520364(0x1b8)](isUnknownSize,_0x532820,_0x55806f))break;_0x3a711c+=_0x5e73c5+_0x55806f+_0x532820;}!_0x5c74c1&&(_0x2d1fe7=_0x5a9fa3['slice'](_0x2e1a52,_0x124ef4));let _0x58596c=_0x578776;_0x3a711c=_0x2e1a52;while(_0x1bb86c['Pdcuc'](_0x3a711c,_0x124ef4)){const [_0x55a6a4,_0x2a4214]=readId(_0x5a9fa3,_0x3a711c),[_0x3f4a25,_0x196cb4]=_0x1bb86c['sUFlu'](readVint,_0x5a9fa3,_0x3a711c+_0x2a4214);if(_0x55a6a4===ID_SIMPLE_BLOCK&&_0x3f4a25>=0x4){const _0x2ad473=_0x3a711c+_0x2a4214+_0x196cb4,[,_0x52c4b3]=readVint(_0x5a9fa3,_0x2ad473),_0x4e505c=_0x5a9fa3[_0x520364(0x197)](_0x1bb86c['ffqdk'](_0x2ad473,_0x52c4b3)),_0x2581b8=_0x1bb86c['hiUFS'](_0x578776,_0x4e505c);if(_0x2581b8>_0x58596c)_0x58596c=_0x2581b8;}if(_0x1bb86c['jGWVL'](_0x55a6a4,ID_CLUSTER))break;if(isUnknownSize(_0x3f4a25,_0x196cb4))break;_0x3a711c+=_0x2a4214+_0x196cb4+_0x3f4a25;}_0x24768f[_0x520364(0x1a9)]({'timestamp':_0x578776,'maxTicks':_0x58596c,'bodyBeforeTimestamp':_0x370b02,'bodyAfterTimestamp':_0x2d1fe7,'timestampElementSize':_0x473cc6}),_0x1b3ec8=_0x124ef4;}return _0x24768f;}function parseWebm(_0x38f70c){const _0xe542de=_0x4be4,_0x11ee5e={'lSbvo':function(_0x34bc9f,_0x37f6c4,_0x55e345){return _0x34bc9f(_0x37f6c4,_0x55e345);},'SzjlF':function(_0x35a91c,_0x8e0739){return _0x35a91c!==_0x8e0739;},'YepqM':function(_0x5ba3b2,_0xe10f4e,_0x448491){return _0x5ba3b2(_0xe10f4e,_0x448491);},'cUkGb':function(_0x3ceb9f,_0xa4e366){return _0x3ceb9f+_0xa4e366;},'MXWvJ':function(_0x586abc,_0x1a2c11,_0x5372db){return _0x586abc(_0x1a2c11,_0x5372db);},'tBbSK':function(_0x401ecc,_0x50dc0b){return _0x401ecc>_0x50dc0b;}};let _0x584c19=0x0;const [,_0x2e1c03]=readId(_0x38f70c,_0x584c19),[_0x305eb8,_0x2e4237]=readVint(_0x38f70c,_0x584c19+_0x2e1c03);_0x584c19+=_0x2e1c03+_0x2e4237+_0x305eb8;const [_0x59cd2e,_0x40403e]=_0x11ee5e[_0xe542de(0x1c9)](readId,_0x38f70c,_0x584c19);if(_0x11ee5e[_0xe542de(0x18c)](_0x59cd2e,ID_SEGMENT))return null;const [,_0x3580f1]=_0x11ee5e[_0xe542de(0x196)](readVint,_0x38f70c,_0x584c19+_0x40403e),_0x150f36=_0x11ee5e['cUkGb'](_0x584c19,_0x40403e)+_0x3580f1,_0xb8cfcb=_0x11ee5e['MXWvJ'](findTimestampScale,_0x38f70c,_0x150f36),_0x923164=findFirstClusterOffset(_0x38f70c,_0x150f36),_0x240c97=_0x38f70c[_0xe542de(0x1c5)](0x0,_0x923164),_0x18be09=extractClusters(_0x38f70c,_0xb8cfcb);let _0x4cf037=0x0;for(const _0x4650b4 of _0x18be09){if(_0x11ee5e[_0xe542de(0x19b)](_0x4650b4['maxTicks'],_0x4cf037))_0x4cf037=_0x4650b4['maxTicks'];}return{'header':_0x240c97,'clusters':_0x18be09,'timestampScale':_0xb8cfcb,'maxTimestampTicks':_0x4cf037};}function buildCluster(_0x3ac606,_0x4bb4dc,_0x406701){const _0x575816=_0x4be4,_0x25017b={'CSodk':function(_0x122cd4,_0x31c71c){return _0x122cd4(_0x31c71c);}},_0x57c486=Buffer[_0x575816(0x188)]([0x1f,0x43,0xb6,0x75]),_0x1b4374=Math['max'](0x4,_0x25017b['CSodk'](uintSize,_0x3ac606)),_0x1ac0da=Buffer['concat']([Buffer['from']([ID_TIMESTAMP]),writeVint(_0x1b4374),writeUint(_0x3ac606,_0x1b4374)]),_0x2f6ae7=Buffer['concat']([_0x4bb4dc,_0x1ac0da,_0x406701]),_0x4669b7=_0x25017b[_0x575816(0x1bd)](writeVint,_0x2f6ae7['length']);return Buffer['concat']([_0x57c486,_0x4669b7,_0x2f6ae7]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x2d1484){const _0x5a0057=_0x4be4,_0xd6499f={'jXYIX':function(_0x5762be,_0x27af47,_0x40ce98){return _0x5762be(_0x27af47,_0x40ce98);},'gouHN':function(_0x59e441,_0x46c615){return _0x59e441+_0x46c615;},'UqWTl':function(_0x2f0535,_0x3b1aa3){return _0x2f0535+_0x3b1aa3;},'aTtiP':function(_0x469542,_0x15fad1){return _0x469542(_0x15fad1);},'IqIfL':function(_0x1a3ac9,_0x452df4){return _0x1a3ac9+_0x452df4;},'ZgTvT':function(_0x35cd42,_0x445902){return _0x35cd42<_0x445902;},'cGJdv':function(_0x318eeb,_0x36960a,_0x25f6e7){return _0x318eeb(_0x36960a,_0x25f6e7);},'KnJay':function(_0xd6c3e,_0x25860d){return _0xd6c3e===_0x25860d;},'jymZi':function(_0x186834,_0x11f098){return _0x186834+_0x11f098;},'tqQCh':function(_0x5bed7f,_0x473602){return _0x5bed7f<_0x473602;},'DZPDF':function(_0x4d3b5e,_0x48de5d){return _0x4d3b5e!==_0x48de5d;},'nckdJ':function(_0x608031,_0x7c1822){return _0x608031+_0x7c1822;},'SvyFs':function(_0x7e760d,_0x195f30){return _0x7e760d+_0x195f30;}},_0x2744c8=Buffer['from'](_0x2d1484);let _0x27097a=0x0;const [,_0x366b49]=readId(_0x2744c8,_0x27097a),[_0x136481,_0xbd8669]=_0xd6499f[_0x5a0057(0x1c6)](readVint,_0x2744c8,_0x27097a+_0x366b49),_0x30aea3=_0xd6499f['gouHN'](_0xd6499f['UqWTl'](_0x27097a,_0x366b49),_0xbd8669)+_0x136481,[,_0xfd945]=readId(_0x2744c8,_0x30aea3),[,_0x444220]=readVint(_0x2744c8,_0x30aea3+_0xfd945),_0x118b72=_0xd6499f[_0x5a0057(0x1b5)](_0x30aea3+_0xfd945,_0x444220),_0x4970f3=_0xd6499f['aTtiP'](writeUnknownSizeVint,_0x444220);_0x4970f3['copy'](_0x2744c8,_0x30aea3+_0xfd945);let _0x2e70af=_0x118b72;const _0x4d6cc0=Math[_0x5a0057(0x1ab)](_0x2744c8[_0x5a0057(0x1b0)],_0xd6499f['IqIfL'](_0x118b72,0x2710));while(_0xd6499f['ZgTvT'](_0x2e70af,_0x4d6cc0)){const [_0x48dc35,_0x5a0350]=_0xd6499f[_0x5a0057(0x18b)](readId,_0x2744c8,_0x2e70af),[_0x332b5c,_0x271e61]=_0xd6499f['jXYIX'](readVint,_0x2744c8,_0x2e70af+_0x5a0350);if(_0xd6499f[_0x5a0057(0x1a3)](_0x48dc35,ID_CLUSTER))break;if(_0xd6499f['cGJdv'](isUnknownSize,_0x332b5c,_0x271e61))break;if(_0xd6499f['KnJay'](_0x48dc35,ID_INFO)){const _0xdaaa0a=_0x2e70af+_0x5a0350+_0x271e61,_0x5e1c41=_0xd6499f[_0x5a0057(0x1ac)](_0xdaaa0a,_0x332b5c),_0x510fd0=[];let _0x3f6c47=_0xdaaa0a;while(_0xd6499f['tqQCh'](_0x3f6c47,_0x5e1c41)){const [_0x128ede,_0x438727]=readId(_0x2744c8,_0x3f6c47),[_0x592c8e,_0x31ab66]=readVint(_0x2744c8,_0x3f6c47+_0x438727),_0x2a8769=_0xd6499f[_0x5a0057(0x1ac)](_0x438727+_0x31ab66,_0x592c8e);_0xd6499f['DZPDF'](_0x128ede,ID_DURATION)&&_0x510fd0[_0x5a0057(0x1a9)](_0x2744c8['slice'](_0x3f6c47,_0xd6499f['nckdJ'](_0x3f6c47,_0x2a8769))),_0x3f6c47+=_0x2a8769;}const _0xc1e12f=Buffer['concat'](_0x510fd0),_0x332e54=Buffer['concat']([_0x2744c8['slice'](_0x2e70af,_0xd6499f['SvyFs'](_0x2e70af,_0x5a0350)),_0xd6499f[_0x5a0057(0x1c6)](writeVint,_0xc1e12f[_0x5a0057(0x1b0)],_0x271e61)]);return Buffer['concat']([_0x2744c8[_0x5a0057(0x1c5)](0x0,_0x2e70af),_0x332e54,_0xc1e12f,_0x2744c8['slice'](_0x5e1c41)]);}_0x2e70af+=_0x5a0350+_0x271e61+_0x332b5c;}return _0x2744c8;}export function stitchWebmFiles(_0x3dd853,_0x49c5cf){const _0x3c59ac=_0x4be4,_0x59d8dd={'fZbCA':function(_0x14052d,_0x13a4d8){return _0x14052d<=_0x13a4d8;},'vouno':function(_0x27f9f4,_0x3a8d37){return _0x27f9f4(_0x3a8d37);},'BjLRJ':function(_0x4e6933,_0x362dca){return _0x4e6933===_0x362dca;},'kybCO':function(_0x68743,_0x3fa1){return _0x68743<_0x3fa1;},'rivFW':function(_0x8454b2,_0x1fb5bb){return _0x8454b2+_0x1fb5bb;},'jdqje':function(_0x11da8f,_0x51f7c8,_0x2a84e4){return _0x11da8f(_0x51f7c8,_0x2a84e4);}};if(_0x59d8dd['fZbCA'](_0x3dd853[_0x3c59ac(0x1b0)],0x1))return![];const _0x4fcfef=[];for(const _0x1ca901 of _0x3dd853){const _0x1fc31c=_0x59d8dd[_0x3c59ac(0x19d)](readFileSync,_0x1ca901),_0x3cfc89=parseWebm(_0x1fc31c);if(!_0x3cfc89||_0x59d8dd[_0x3c59ac(0x1c1)](_0x3cfc89['clusters'][_0x3c59ac(0x1b0)],0x0))return![];_0x4fcfef[_0x3c59ac(0x1a9)](_0x3cfc89);}const _0x288ad7=_0x4fcfef[0x0],_0x143adb=rebuildHeaderWithoutDuration(_0x288ad7['header']),_0x2c5c9d=[_0x143adb];let _0x35d60d=0x0;for(let _0x161cf3=0x0;_0x59d8dd[_0x3c59ac(0x190)](_0x161cf3,_0x4fcfef[_0x3c59ac(0x1b0)]);_0x161cf3++){const _0x5b53b3=_0x4fcfef[_0x161cf3];for(const _0x461324 of _0x5b53b3['clusters']){const _0x683a65=_0x461324[_0x3c59ac(0x1a7)]+_0x35d60d;_0x2c5c9d['push'](buildCluster(_0x683a65,_0x461324[_0x3c59ac(0x1a1)],_0x461324['bodyAfterTimestamp']));}const _0x5b147a=0x1e;_0x35d60d+=_0x59d8dd[_0x3c59ac(0x199)](_0x5b53b3['maxTimestampTicks'],_0x5b147a);}return _0x59d8dd[_0x3c59ac(0x18d)](writeFileSync,_0x49c5cf,Buffer[_0x3c59ac(0x1a6)](_0x2c5c9d)),!![];}if(process['argv'][0x1]?.[_0x54be51(0x1a5)](_0x54be51(0x1a0))||process['argv'][0x1]?.['endsWith']('stitchWebmFiles.js')){const args=process['argv'][_0x54be51(0x1c5)](0x2);args[_0x54be51(0x1b0)]<0x3&&(console['error']('Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>'),process['exit'](0x1));const output=args[args['length']-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x54be51(0x187)](_0x54be51(0x1b9)+inputs[_0x54be51(0x1b0)]+'\x20files\x20->\x20'+output):console['log']('Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.');}