@ranger-testing/ranger-cli 2.2.0 → 2.2.1

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 (67) 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/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/setup/claude.js +1 -1
  25. package/build/commands/setup/opencode.js +1 -1
  26. package/build/commands/setupCi.js +1 -1
  27. package/build/commands/skillup.js +1 -1
  28. package/build/commands/start.js +1 -1
  29. package/build/commands/status.js +1 -1
  30. package/build/commands/update.js +1 -1
  31. package/build/commands/updateEnv.js +1 -1
  32. package/build/commands/useEnv.js +1 -1
  33. package/build/commands/utils/activeProfile.js +1 -1
  34. package/build/commands/utils/browserSessionsApi.js +1 -1
  35. package/build/commands/utils/claudeConfig.js +1 -1
  36. package/build/commands/utils/claudePlugin.js +1 -1
  37. package/build/commands/utils/crypto.js +1 -1
  38. package/build/commands/utils/desirePathLog.js +1 -1
  39. package/build/commands/utils/deviceAuth.js +1 -1
  40. package/build/commands/utils/environment.js +1 -1
  41. package/build/commands/utils/featureApi.js +1 -1
  42. package/build/commands/utils/featureReportGenerator.js +1 -1
  43. package/build/commands/utils/fixWebmDuration.js +1 -1
  44. package/build/commands/utils/git.js +1 -1
  45. package/build/commands/utils/keychain.js +1 -1
  46. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  47. package/build/commands/utils/mcpImageBase64.js +1 -1
  48. package/build/commands/utils/model.js +1 -1
  49. package/build/commands/utils/opencodeConfig.js +1 -1
  50. package/build/commands/utils/profileMessages.js +1 -1
  51. package/build/commands/utils/profileSetupBanner.js +1 -1
  52. package/build/commands/utils/rangerConfig.js +1 -1
  53. package/build/commands/utils/rangerRoot.js +1 -1
  54. package/build/commands/utils/reportGenerator.js +1 -1
  55. package/build/commands/utils/retry.js +1 -1
  56. package/build/commands/utils/sessionCache.js +1 -1
  57. package/build/commands/utils/settings.js +1 -1
  58. package/build/commands/utils/skillContent.js +1 -1
  59. package/build/commands/utils/skills.js +1 -1
  60. package/build/commands/utils/stitchWebmFiles.js +1 -1
  61. package/build/commands/utils/telemetry.js +1 -1
  62. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  63. package/build/commands/utils/userApi.js +1 -1
  64. package/build/commands/utils/version.js +1 -1
  65. package/build/commands/verifyFeature.js +1 -1
  66. package/build/commands/verifyInBrowser.js +1 -1
  67. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x2ce2db,_0x34edc4){const _0x2554e1=_0x3e10,_0x3208c2=_0x2ce2db();while(!![]){try{const _0x4e0978=parseInt(_0x2554e1(0x6d))/0x1+-parseInt(_0x2554e1(0x7c))/0x2+parseInt(_0x2554e1(0x8c))/0x3*(parseInt(_0x2554e1(0x6e))/0x4)+-parseInt(_0x2554e1(0x6a))/0x5*(parseInt(_0x2554e1(0x7e))/0x6)+-parseInt(_0x2554e1(0x66))/0x7*(parseInt(_0x2554e1(0x79))/0x8)+-parseInt(_0x2554e1(0x74))/0x9*(-parseInt(_0x2554e1(0x67))/0xa)+parseInt(_0x2554e1(0x82))/0xb*(-parseInt(_0x2554e1(0x68))/0xc);if(_0x4e0978===_0x34edc4)break;else _0x3208c2['push'](_0x3208c2['shift']());}catch(_0x2e1155){_0x3208c2['push'](_0x3208c2['shift']());}}}(_0x2272,0xa55da));import{readdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';function _0x3e10(_0x46d543,_0x61cbc0){_0x46d543=_0x46d543-0x65;const _0x227203=_0x2272();let _0x3e10ee=_0x227203[_0x46d543];return _0x3e10ee;}export async function collectScreenshots(_0x492610){const _0x13185e=_0x3e10,_0x34d444={'mUnFQ':function(_0x401718,_0x977e3b,_0x247110){return _0x401718(_0x977e3b,_0x247110);}},_0x814839=[],_0x244aa7=[];if(!existsSync(_0x492610))return{'screenshots':_0x814839,'paths':_0x244aa7};const _0x45dff2=await readdir(_0x492610),_0x321382=_0x45dff2[_0x13185e(0x70)](_0x173b78=>/\.(png|jpg|jpeg|gif|webp)$/i['test'](_0x173b78))[_0x13185e(0x89)]();for(const _0x1c9024 of _0x321382){const _0x400745=_0x34d444[_0x13185e(0x6f)](join,_0x492610,_0x1c9024);_0x814839[_0x13185e(0x77)]({'filename':_0x1c9024,'path':_0x400745,'relativePath':'./'+_0x1c9024}),_0x244aa7['push'](_0x400745);}return{'screenshots':_0x814839,'paths':_0x244aa7};}function _0x2272(){const _0x538de0=['sort','KFLjR','description','72NSPdhP','**Full\x20Trace:**\x20[View\x20in\x20Playwright\x20Trace\x20Viewer](','1211MtBtMm','124790VpLEUm','444ipekFb','filename','355LUymEO','#\x20Verification\x20Report','severity','714897DqBiny','167848EEbmuO','mUnFQ','filter','map','relativePath','###\x20','918fYMoLy','**Duration:**\x20','GQuaa','push','screenshot','28088hnmREL','includes','join','216870AgirnW','toFixed','72720TIyRew','JIsru','BLOCKER','**URL:**\x20','220341FXCaNE','**Generated:**\x20','**Status:**\x20','find','split','**Session:**\x20`','replace'];_0x2272=function(){return _0x538de0;};return _0x2272();}function getSeverityEmoji(_0x25c3ed){const _0x2e21ab=_0x3e10;switch(_0x25c3ed){case _0x2e21ab(0x80):return'🔴';case'MAJOR':return'🟠';default:return'⚪';}}function formatScreenshotCaption(_0x4f759c){const _0x5d27df=_0x3e10,_0x20cdf1=_0x4f759c[_0x5d27df(0x88)](/\.(png|jpg|jpeg|gif|webp)$/i,''),_0x183b37=_0x20cdf1['replace'](/^\d+-/,'');return _0x183b37[_0x5d27df(0x86)]('-')[_0x5d27df(0x71)](_0x1e72ff=>_0x1e72ff['charAt'](0x0)['toUpperCase']()+_0x1e72ff['slice'](0x1))[_0x5d27df(0x7b)]('\x20');}export function generateMarkdownReport(_0x5c8dbc){const _0x4627eb=_0x3e10,_0x2a48a4={'GQuaa':function(_0x3e369d,_0x52eb70){return _0x3e369d/_0x52eb70;},'qefeH':'PASSED','JIsru':'ISSUES\x20FOUND','TdHAF':function(_0x515e60,_0x56be9b){return _0x515e60>_0x56be9b;},'KFLjR':function(_0x242318,_0x16aabf){return _0x242318(_0x16aabf);}},{sessionId:_0x23693d,task:_0xecf74c,url:_0x1c0985,success:_0x19612b,summary:_0x186d7f,issues:_0x1dca70,screenshots:_0x5bce4c,durationMs:_0x3cfc15,traceViewerUrl:_0xb97220}=_0x5c8dbc,_0x13ea48=new Date()['toISOString'](),_0x120ace=_0x2a48a4[_0x4627eb(0x76)](_0x3cfc15,0x3e8)[_0x4627eb(0x7d)](0x1),_0xe36033=[];_0xe36033[_0x4627eb(0x77)](_0x4627eb(0x6b)),_0xe36033[_0x4627eb(0x77)](''),_0xe36033['push'](_0x4627eb(0x87)+_0x23693d+'`'),_0xe36033[_0x4627eb(0x77)](_0x4627eb(0x83)+_0x13ea48),_0xe36033['push'](_0x4627eb(0x75)+_0x120ace+'s'),_0xe36033[_0x4627eb(0x77)](''),_0xe36033['push']('##\x20Task'),_0xe36033[_0x4627eb(0x77)](''),_0xe36033[_0x4627eb(0x77)](_0x4627eb(0x81)+_0x1c0985),_0xe36033[_0x4627eb(0x77)](''),_0xe36033['push']('>\x20'+_0xecf74c),_0xe36033[_0x4627eb(0x77)](''),_0xe36033['push']('##\x20Result'),_0xe36033['push']('');const _0x14f7d7=_0x19612b?'✅':'❌';_0xe36033[_0x4627eb(0x77)](_0x4627eb(0x84)+_0x14f7d7+'\x20'+(_0x19612b?_0x2a48a4['qefeH']:_0x2a48a4[_0x4627eb(0x7f)])),_0xe36033[_0x4627eb(0x77)](''),_0xe36033['push']('###\x20Summary'),_0xe36033[_0x4627eb(0x77)](''),_0xe36033['push'](_0x186d7f),_0xe36033[_0x4627eb(0x77)]('');if(_0x1dca70&&_0x2a48a4['TdHAF'](_0x1dca70['length'],0x0)){_0xe36033[_0x4627eb(0x77)]('###\x20Issues\x20Found\x20('+_0x1dca70['length']+')'),_0xe36033['push']('');for(const _0x311605 of _0x1dca70){const _0x441133=_0x2a48a4[_0x4627eb(0x8a)](getSeverityEmoji,_0x311605['severity']);_0xe36033['push']('####\x20'+_0x441133+'\x20['+_0x311605[_0x4627eb(0x6c)]+']\x20Issue'),_0xe36033['push'](''),_0xe36033['push'](_0x311605[_0x4627eb(0x8b)]),_0xe36033[_0x4627eb(0x77)]('');if(_0x311605[_0x4627eb(0x78)]){const _0x4768e6=_0x311605[_0x4627eb(0x78)],_0x5ab207=_0x5bce4c[_0x4627eb(0x85)](_0x3c6240=>_0x3c6240[_0x4627eb(0x69)]===_0x4768e6||_0x3c6240[_0x4627eb(0x69)][_0x4627eb(0x7a)](_0x4768e6));_0x5ab207&&(_0xe36033[_0x4627eb(0x77)]('**Screenshot:**'),_0xe36033['push'](''),_0xe36033['push']('!['+_0x4768e6+']('+_0x5ab207[_0x4627eb(0x72)]+')'),_0xe36033['push'](''));}}}if(_0x5bce4c['length']>0x0){_0xe36033['push']('##\x20Screenshots\x20('+_0x5bce4c['length']+')'),_0xe36033[_0x4627eb(0x77)]('');for(const _0x21d6ea of _0x5bce4c){const _0x17145d=formatScreenshotCaption(_0x21d6ea[_0x4627eb(0x69)]);_0xe36033['push'](_0x4627eb(0x73)+_0x17145d),_0xe36033['push'](''),_0xe36033[_0x4627eb(0x77)]('!['+_0x21d6ea['filename']+']('+_0x21d6ea[_0x4627eb(0x72)]+')'),_0xe36033['push']('');}}return _0xb97220&&(_0xe36033[_0x4627eb(0x77)]('---'),_0xe36033[_0x4627eb(0x77)](''),_0xe36033['push'](_0x4627eb(0x65)+_0xb97220+')'),_0xe36033[_0x4627eb(0x77)]('')),_0xe36033['join']('\x0a');}
1
+ (function(_0x5ba1a5,_0x5d1372){const _0x9802f9=_0x1243,_0x1ff43e=_0x5ba1a5();while(!![]){try{const _0x108d6c=-parseInt(_0x9802f9(0x202))/0x1+-parseInt(_0x9802f9(0x1f5))/0x2+parseInt(_0x9802f9(0x1e4))/0x3*(parseInt(_0x9802f9(0x1f4))/0x4)+-parseInt(_0x9802f9(0x1e5))/0x5*(parseInt(_0x9802f9(0x1fd))/0x6)+-parseInt(_0x9802f9(0x205))/0x7*(-parseInt(_0x9802f9(0x1f1))/0x8)+-parseInt(_0x9802f9(0x1f2))/0x9+parseInt(_0x9802f9(0x1f8))/0xa;if(_0x108d6c===_0x5d1372)break;else _0x1ff43e['push'](_0x1ff43e['shift']());}catch(_0x1181f0){_0x1ff43e['push'](_0x1ff43e['shift']());}}}(_0x284a,0x6702a));function _0x1243(_0x34955a,_0x2c24ff){_0x34955a=_0x34955a-0x1e4;const _0x284a5a=_0x284a();let _0x1243ee=_0x284a5a[_0x34955a];return _0x1243ee;}import{readdir}from'fs/promises';import{join}from'path';function _0x284a(){const _0x3beb62=['replace','split','506851XpHLiZ','###\x20Issues\x20Found\x20(','severity','21DMFGRx','ISSUES\x20FOUND','YNImK','###\x20Summary','###\x20','3291bCmvOY','1215amBulV','filename','toUpperCase','**URL:**\x20','test','relativePath','find','##\x20Task','**Full\x20Trace:**\x20[View\x20in\x20Playwright\x20Trace\x20Viewer](','MAJOR','push','**Session:**\x20`','462776knbfbV','5064417BMHXEw','toFixed','2440ZmLOon','812990dBNnHF','dkXuH','##\x20Result','11609830qmpPLZ','neNdP','join','---','slice','2610NAOtwk','filter','length'];_0x284a=function(){return _0x3beb62;};return _0x284a();}import{existsSync}from'fs';export async function collectScreenshots(_0x4ad4b4){const _0x39b164=_0x1243,_0x4ed329={'YNImK':function(_0x9fb493,_0x1d30a0){return _0x9fb493(_0x1d30a0);},'ztTEl':function(_0x5341a0,_0x40204,_0x830120){return _0x5341a0(_0x40204,_0x830120);}},_0x50310e=[],_0x4875b1=[];if(!_0x4ed329['YNImK'](existsSync,_0x4ad4b4))return{'screenshots':_0x50310e,'paths':_0x4875b1};const _0x435765=await _0x4ed329[_0x39b164(0x207)](readdir,_0x4ad4b4),_0x3a3d49=_0x435765[_0x39b164(0x1fe)](_0x4c9e3=>/\.(png|jpg|jpeg|gif|webp)$/i[_0x39b164(0x1e9)](_0x4c9e3))['sort']();for(const _0x3c57c1 of _0x3a3d49){const _0x58166a=_0x4ed329['ztTEl'](join,_0x4ad4b4,_0x3c57c1);_0x50310e[_0x39b164(0x1ef)]({'filename':_0x3c57c1,'path':_0x58166a,'relativePath':'./'+_0x3c57c1}),_0x4875b1['push'](_0x58166a);}return{'screenshots':_0x50310e,'paths':_0x4875b1};}function getSeverityEmoji(_0x3c051f){const _0xe61a8=_0x1243;switch(_0x3c051f){case'BLOCKER':return'🔴';case _0xe61a8(0x1ee):return'🟠';default:return'⚪';}}function formatScreenshotCaption(_0x5504e4){const _0x5549c1=_0x1243,_0x27b838=_0x5504e4['replace'](/\.(png|jpg|jpeg|gif|webp)$/i,''),_0xaea74c=_0x27b838[_0x5549c1(0x200)](/^\d+-/,'');return _0xaea74c[_0x5549c1(0x201)]('-')['map'](_0x2f651e=>_0x2f651e['charAt'](0x0)[_0x5549c1(0x1e7)]()+_0x2f651e[_0x5549c1(0x1fc)](0x1))[_0x5549c1(0x1fa)]('\x20');}export function generateMarkdownReport(_0x4bad05){const _0x140860=_0x1243,_0x16a764={'MmAiN':'PASSED','SLKvl':function(_0x563e44,_0x2756b3){return _0x563e44>_0x2756b3;},'neNdP':function(_0x59d64e,_0x51eff3){return _0x59d64e(_0x51eff3);},'dkXuH':function(_0x524dad,_0x62b421){return _0x524dad>_0x62b421;}},{sessionId:_0x22bd64,task:_0xc6ef7e,url:_0x530c6b,success:_0x4abbb1,summary:_0x42113d,issues:_0x40ad91,screenshots:_0x5c337f,durationMs:_0x4964df,traceViewerUrl:_0x25a92a}=_0x4bad05,_0xffee7b=new Date()['toISOString'](),_0x5cee19=(_0x4964df/0x3e8)[_0x140860(0x1f3)](0x1),_0x27ba46=[];_0x27ba46['push']('#\x20Verification\x20Report'),_0x27ba46['push'](''),_0x27ba46['push'](_0x140860(0x1f0)+_0x22bd64+'`'),_0x27ba46[_0x140860(0x1ef)]('**Generated:**\x20'+_0xffee7b),_0x27ba46[_0x140860(0x1ef)]('**Duration:**\x20'+_0x5cee19+'s'),_0x27ba46['push'](''),_0x27ba46[_0x140860(0x1ef)](_0x140860(0x1ec)),_0x27ba46[_0x140860(0x1ef)](''),_0x27ba46['push'](_0x140860(0x1e8)+_0x530c6b),_0x27ba46[_0x140860(0x1ef)](''),_0x27ba46['push']('>\x20'+_0xc6ef7e),_0x27ba46[_0x140860(0x1ef)](''),_0x27ba46['push'](_0x140860(0x1f7)),_0x27ba46['push']('');const _0xf0d043=_0x4abbb1?'✅':'❌';_0x27ba46[_0x140860(0x1ef)]('**Status:**\x20'+_0xf0d043+'\x20'+(_0x4abbb1?_0x16a764['MmAiN']:_0x140860(0x206))),_0x27ba46['push'](''),_0x27ba46['push'](_0x140860(0x208)),_0x27ba46[_0x140860(0x1ef)](''),_0x27ba46[_0x140860(0x1ef)](_0x42113d),_0x27ba46['push']('');if(_0x40ad91&&_0x16a764['SLKvl'](_0x40ad91[_0x140860(0x1ff)],0x0)){_0x27ba46[_0x140860(0x1ef)](_0x140860(0x203)+_0x40ad91['length']+')'),_0x27ba46['push']('');for(const _0x55e34f of _0x40ad91){const _0x28b6db=_0x16a764['neNdP'](getSeverityEmoji,_0x55e34f['severity']);_0x27ba46[_0x140860(0x1ef)]('####\x20'+_0x28b6db+'\x20['+_0x55e34f[_0x140860(0x204)]+']\x20Issue'),_0x27ba46[_0x140860(0x1ef)](''),_0x27ba46[_0x140860(0x1ef)](_0x55e34f['description']),_0x27ba46['push']('');if(_0x55e34f['screenshot']){const _0x112a4e=_0x55e34f['screenshot'],_0x5e7248=_0x5c337f[_0x140860(0x1eb)](_0x2be9cd=>_0x2be9cd[_0x140860(0x1e6)]===_0x112a4e||_0x2be9cd['filename']['includes'](_0x112a4e));_0x5e7248&&(_0x27ba46['push']('**Screenshot:**'),_0x27ba46[_0x140860(0x1ef)](''),_0x27ba46[_0x140860(0x1ef)]('!['+_0x112a4e+']('+_0x5e7248[_0x140860(0x1ea)]+')'),_0x27ba46[_0x140860(0x1ef)](''));}}}if(_0x16a764[_0x140860(0x1f6)](_0x5c337f[_0x140860(0x1ff)],0x0)){_0x27ba46[_0x140860(0x1ef)]('##\x20Screenshots\x20('+_0x5c337f['length']+')'),_0x27ba46['push']('');for(const _0x4f3a8d of _0x5c337f){const _0x567f48=_0x16a764[_0x140860(0x1f9)](formatScreenshotCaption,_0x4f3a8d['filename']);_0x27ba46['push'](_0x140860(0x209)+_0x567f48),_0x27ba46['push'](''),_0x27ba46[_0x140860(0x1ef)]('!['+_0x4f3a8d['filename']+']('+_0x4f3a8d[_0x140860(0x1ea)]+')'),_0x27ba46['push']('');}}return _0x25a92a&&(_0x27ba46['push'](_0x140860(0x1fb)),_0x27ba46[_0x140860(0x1ef)](''),_0x27ba46['push'](_0x140860(0x1ed)+_0x25a92a+')'),_0x27ba46['push']('')),_0x27ba46['join']('\x0a');}
@@ -1 +1 @@
1
- function _0x10ac(){const _0x415520=['636754yRYeMV','2994294EjjFnP','1865339EqhHpZ','maxRetries','4144496ZQzHlq','2039787IpfxGx','\x20failed\x20(attempt\x20','error','1257108jErEJe','label','2MgkeMi','5DoxVPH','1734630mzCIPp','WyxCP'];_0x10ac=function(){return _0x415520;};return _0x10ac();}(function(_0x498d86,_0x792b06){const _0x49b6d1=_0x28b3,_0xed350=_0x498d86();while(!![]){try{const _0x474ed0=parseInt(_0x49b6d1(0x11a))/0x1*(parseInt(_0x49b6d1(0x116))/0x2)+parseInt(_0x49b6d1(0x118))/0x3+-parseInt(_0x49b6d1(0x122))/0x4*(parseInt(_0x49b6d1(0x117))/0x5)+-parseInt(_0x49b6d1(0x11b))/0x6+parseInt(_0x49b6d1(0x11c))/0x7+-parseInt(_0x49b6d1(0x11e))/0x8+parseInt(_0x49b6d1(0x11f))/0x9;if(_0x474ed0===_0x792b06)break;else _0xed350['push'](_0xed350['shift']());}catch(_0x516eca){_0xed350['push'](_0xed350['shift']());}}}(_0x10ac,0x5bf78));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x28b3(_0x5b74b5,_0x991d46){_0x5b74b5=_0x5b74b5-0x115;const _0x10acc8=_0x10ac();let _0x28b3a4=_0x10acc8[_0x5b74b5];return _0x28b3a4;}export async function withRetry(_0x3e07d8,_0x11d13c){const _0x3fbd8f=_0x28b3,_0x34273f={'CONXq':function(_0x102b2d){return _0x102b2d();},'fWhjf':function(_0x559483,_0x44396d){return _0x559483(_0x44396d);},'WyxCP':function(_0x101f4b,_0x3629bc){return _0x101f4b+_0x3629bc;}},_0x3d9c7a=_0x11d13c?.[_0x3fbd8f(0x11d)]??DEFAULT_MAX_RETRIES,_0x537447=_0x11d13c?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0xdc0646;for(let _0xf5923=0x0;_0xf5923<=_0x3d9c7a;_0xf5923++){try{return await _0x34273f['CONXq'](_0x3e07d8);}catch(_0x17fcee){_0xdc0646=_0x17fcee instanceof Error?_0x17fcee:new Error(_0x34273f['fWhjf'](String,_0x17fcee));if(_0xf5923<_0x3d9c7a){const _0x1f6227=_0x537447*Math['pow'](0x2,_0xf5923);_0x11d13c?.['label']&&console[_0x3fbd8f(0x121)](_0x11d13c[_0x3fbd8f(0x115)]+_0x3fbd8f(0x120)+_0x34273f[_0x3fbd8f(0x119)](_0xf5923,0x1)+'/'+(_0x3d9c7a+0x1)+'),\x20retrying\x20in\x20'+_0x1f6227+'ms...'),await new Promise(_0x45aa9b=>setTimeout(_0x45aa9b,_0x1f6227));}}}throw _0xdc0646;}
1
+ (function(_0x1c23e3,_0x1987e0){const _0x334224=_0x977d,_0x11ccd0=_0x1c23e3();while(!![]){try{const _0x2001c2=-parseInt(_0x334224(0xaa))/0x1+parseInt(_0x334224(0xa9))/0x2+-parseInt(_0x334224(0xa2))/0x3*(-parseInt(_0x334224(0xa3))/0x4)+-parseInt(_0x334224(0xa8))/0x5+parseInt(_0x334224(0x9e))/0x6+-parseInt(_0x334224(0xab))/0x7*(parseInt(_0x334224(0xa0))/0x8)+parseInt(_0x334224(0xa1))/0x9;if(_0x2001c2===_0x1987e0)break;else _0x11ccd0['push'](_0x11ccd0['shift']());}catch(_0x29de59){_0x11ccd0['push'](_0x11ccd0['shift']());}}}(_0xeedf,0xa7486));function _0xeedf(){const _0x360e2b=['ms...','UyCjn','baseDelayMs','2695205gPwymB','1415640OggySK','24570rjgfnz','21gonleJ','3031164NPVcXJ','label','3125896aEFkNU','2240847YulFOm','3KYSNCL','3836060UaysyQ','gGybd'];_0xeedf=function(){return _0x360e2b;};return _0xeedf();}function _0x977d(_0x501fd8,_0x236d16){_0x501fd8=_0x501fd8-0x9e;const _0xeedf5=_0xeedf();let _0x977dca=_0xeedf5[_0x501fd8];return _0x977dca;}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x3e1864,_0x565d83){const _0x1118fb=_0x977d,_0x4286cf={'gGybd':function(_0x24f484,_0x3afd57){return _0x24f484<=_0x3afd57;},'uPKqh':function(_0x1f77f3){return _0x1f77f3();},'UyCjn':function(_0x57b7a8,_0xf5e541){return _0x57b7a8*_0xf5e541;}},_0x12dedb=_0x565d83?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x3876ed=_0x565d83?.[_0x1118fb(0xa7)]??DEFAULT_BASE_DELAY_MS;let _0x3f7a96;for(let _0x35baa0=0x0;_0x4286cf[_0x1118fb(0xa4)](_0x35baa0,_0x12dedb);_0x35baa0++){try{return await _0x4286cf['uPKqh'](_0x3e1864);}catch(_0x518599){_0x3f7a96=_0x518599 instanceof Error?_0x518599:new Error(String(_0x518599));if(_0x35baa0<_0x12dedb){const _0x2d37a3=_0x4286cf[_0x1118fb(0xa6)](_0x3876ed,Math['pow'](0x2,_0x35baa0));_0x565d83?.[_0x1118fb(0x9f)]&&console['error'](_0x565d83['label']+'\x20failed\x20(attempt\x20'+(_0x35baa0+0x1)+'/'+(_0x12dedb+0x1)+'),\x20retrying\x20in\x20'+_0x2d37a3+_0x1118fb(0xa5)),await new Promise(_0x55fba1=>setTimeout(_0x55fba1,_0x2d37a3));}}}throw _0x3f7a96;}
@@ -1 +1 @@
1
- const _0x4e00b8=_0x3076;(function(_0x33018b,_0x3273be){const _0x311eb3=_0x3076,_0x2958be=_0x33018b();while(!![]){try{const _0x404d1d=-parseInt(_0x311eb3(0x1d9))/0x1+parseInt(_0x311eb3(0x1e5))/0x2*(-parseInt(_0x311eb3(0x1fa))/0x3)+-parseInt(_0x311eb3(0x1e6))/0x4*(parseInt(_0x311eb3(0x1eb))/0x5)+parseInt(_0x311eb3(0x1f0))/0x6*(parseInt(_0x311eb3(0x1ce))/0x7)+-parseInt(_0x311eb3(0x1db))/0x8*(-parseInt(_0x311eb3(0x1e0))/0x9)+parseInt(_0x311eb3(0x1e1))/0xa*(-parseInt(_0x311eb3(0x1f4))/0xb)+parseInt(_0x311eb3(0x1e9))/0xc;if(_0x404d1d===_0x3273be)break;else _0x2958be['push'](_0x2958be['shift']());}catch(_0x161f03){_0x2958be['push'](_0x2958be['shift']());}}}(_0x387d,0x1b117));import*as _0x21e151 from'fs';import*as _0x5578b2 from'path';import*as _0x53a596 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x5578b2[_0x4e00b8(0x1d0)](_0x53a596['homedir'](),_0x4e00b8(0x1e7),'.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x303d19=_0x4e00b8,_0x33bf93={'ImiEc':function(_0x509f42){return _0x509f42();}};try{if(_0x21e151['existsSync'](CACHE_FILE)){const _0x1239d9=JSON['parse'](_0x21e151[_0x303d19(0x201)](CACHE_FILE,_0x303d19(0x1d4)));return{'version':0x3,'sessions':_0x1239d9['sessions']||{},'branches':_0x1239d9['branches']||{},'lastEnabledSessionClearedAt':_0x1239d9['lastEnabledSessionClearedAt']};}}catch{}return _0x33bf93[_0x303d19(0x1f2)](createEmptyCache);}function _0x387d(){const _0x5bf802=['branches','enabled','HJFsb','dirname','28277pyVJKy','fZkfw','8jgYehy','istcn','git\x20rev-parse\x20--abbrev-ref\x20HEAD','IsOLn','aQDaq','1651779GfeElj','20sXdhMj','aIiOX','featureId','now','7586ZLUXBZ','4CBawlw','.claude','nlcQt','3246552bubHFo','tyimi','1103995vUqrev','fWClv','gNIgm','QYEYe','mrXTu','280086OqaRaJ','main','ImiEc','wbBtD','390907zQQJnk','sessions','currentBranch','YIjqe','master','mkdirSync','129uMADkL','lastEnabledSessionClearedAt','pipe','MBJzW','hdOQa','Lxwxd','writeFileSync','readFileSync','lastPlanReminderAt','MsCwu','prompted','21ogqOlJ','ZTmgy','join','MglJz','registeredAt','jvNDf','utf-8'];_0x387d=function(){return _0x5bf802;};return _0x387d();}function saveCache(_0x368ee4){const _0x5513e0=_0x4e00b8;try{const _0x3f9fdc=_0x5578b2[_0x5513e0(0x1d8)](CACHE_FILE);!_0x21e151['existsSync'](_0x3f9fdc)&&_0x21e151[_0x5513e0(0x1f9)](_0x3f9fdc,{'recursive':!![]}),_0x21e151[_0x5513e0(0x200)](CACHE_FILE,JSON['stringify'](_0x368ee4,null,0x2));}catch{}}export function getCurrentBranch(){const _0xbc01c0=_0x4e00b8,_0x2fe3c8={'CDSJP':function(_0x350863,_0x1d0983,_0x57da48){return _0x350863(_0x1d0983,_0x57da48);},'srbcz':_0xbc01c0(0x1d4),'jvNDf':_0xbc01c0(0x1fc),'mGrvN':function(_0x4788cc,_0x1f0938){return _0x4788cc===_0x1f0938;}};try{const _0x2d08f3=_0x2fe3c8['CDSJP'](execSync,_0xbc01c0(0x1dd),{'encoding':_0x2fe3c8['srbcz'],'stdio':['pipe',_0x2fe3c8[_0xbc01c0(0x1d3)],_0x2fe3c8[_0xbc01c0(0x1d3)]]})['trim']();if(!_0x2d08f3||_0x2fe3c8['mGrvN'](_0x2d08f3,'HEAD'))return null;return _0x2d08f3;}catch{return null;}}export function enableBranch(_0x44aaa5){const _0x594524=_0x4e00b8,_0x34a202={'aIiOX':function(_0x132a68){return _0x132a68();}},_0x497a3e=_0x34a202[_0x594524(0x1e2)](loadCache);_0x497a3e['branches'][_0x44aaa5]=!![],saveCache(_0x497a3e);}export function disableBranch(_0x48c473){const _0x36d6ea=_0x4e00b8,_0x5db7fb=loadCache();delete _0x5db7fb[_0x36d6ea(0x1d5)][_0x48c473],saveCache(_0x5db7fb);}export function isBranchEnabled(_0x598466){const _0x5bdb58=_0x4e00b8,_0x256d62={'sWSUW':function(_0x2b7a13){return _0x2b7a13();},'istcn':function(_0xcda627,_0x8f1469){return _0xcda627===_0x8f1469;}},_0x5d5d6b=_0x256d62['sWSUW'](loadCache);return _0x256d62[_0x5bdb58(0x1dc)](_0x5d5d6b[_0x5bdb58(0x1d5)][_0x598466],!![]);}function getOrCreateSession(_0x346613,_0xf60dc6){const _0x526f64=_0x4e00b8;return!_0x346613['sessions'][_0xf60dc6]&&(_0x346613['sessions'][_0xf60dc6]={}),_0x346613[_0x526f64(0x1f5)][_0xf60dc6];}export function enableSession(_0x457ba3){const _0x39e142=_0x4e00b8,_0x1aee3a={'MsCwu':function(_0x425f5b){return _0x425f5b();},'Lxwxd':function(_0x52e7fd,_0x20f2e2,_0xc617db){return _0x52e7fd(_0x20f2e2,_0xc617db);},'MQmSw':function(_0x584a09,_0x1be9a0){return _0x584a09!==_0x1be9a0;},'nlcQt':_0x39e142(0x1f8),'QYEYe':function(_0x1ee4fe,_0x177e77){return _0x1ee4fe(_0x177e77);}},_0x41462a=_0x1aee3a[_0x39e142(0x1cc)](loadCache),_0x5c8801=_0x1aee3a[_0x39e142(0x1ff)](getOrCreateSession,_0x41462a,_0x457ba3);_0x5c8801[_0x39e142(0x1d6)]=!![];const _0x5cf9b6=getCurrentBranch();_0x5cf9b6&&_0x5cf9b6!==_0x39e142(0x1f1)&&_0x1aee3a['MQmSw'](_0x5cf9b6,_0x1aee3a[_0x39e142(0x1e8)])&&(_0x41462a[_0x39e142(0x1d5)][_0x5cf9b6]=!![],_0x5c8801['currentBranch']=_0x5cf9b6),_0x1aee3a[_0x39e142(0x1ee)](saveCache,_0x41462a);}export function isSessionEnabled(_0x1460e8){const _0x2a11f6=_0x4e00b8,_0x543d71={'ucSYF':function(_0x1c93ea){return _0x1c93ea();},'HJFsb':function(_0x277758,_0x2a9738){return _0x277758===_0x2a9738;},'cWMGf':'main','bCdXI':_0x2a11f6(0x1f8),'aQDaq':function(_0xcb6ae1,_0x17a1a5){return _0xcb6ae1===_0x17a1a5;}},_0x33f846=loadCache(),_0xb705e8=_0x543d71['ucSYF'](getCurrentBranch);if(!_0xb705e8||_0x543d71['HJFsb'](_0xb705e8,_0x543d71['cWMGf'])||_0xb705e8===_0x543d71['bCdXI'])return _0x543d71[_0x2a11f6(0x1d7)](_0x33f846[_0x2a11f6(0x1f5)][_0x1460e8]?.['enabled'],!![]);const _0x416e2e=_0x543d71[_0x2a11f6(0x1df)](_0x33f846[_0x2a11f6(0x1d5)][_0xb705e8],!![]),_0x233a55=_0x33f846[_0x2a11f6(0x1f5)][_0x1460e8]?.[_0x2a11f6(0x1d6)]===!![];return _0x416e2e||_0x233a55;}export function disableSession(_0x17273d){const _0x4dca49=_0x4e00b8,_0x57f41d={'fZkfw':function(_0x5f09f0,_0x345b57,_0x356206){return _0x5f09f0(_0x345b57,_0x356206);}},_0x1ba4d8=loadCache(),_0x27a00a=_0x57f41d[_0x4dca49(0x1da)](getOrCreateSession,_0x1ba4d8,_0x17273d);_0x27a00a['enabled']=![],saveCache(_0x1ba4d8);}export function updateBranchTracking(_0x5834d8){const _0x477b7b=_0x4e00b8,_0x395a48={'wbBtD':function(_0x45e26c,_0x490a7b){return _0x45e26c===_0x490a7b;},'YIjqe':_0x477b7b(0x1f8),'mEARy':function(_0x5a877c,_0x5157bc){return _0x5a877c!==_0x5157bc;},'ckkTs':function(_0x5894de,_0x4c2b28){return _0x5894de(_0x4c2b28);}},_0x525c7d=loadCache(),_0xf2f69d=_0x525c7d['sessions'][_0x5834d8];if(!_0xf2f69d?.['enabled'])return;const _0x17279a=getCurrentBranch();if(!_0x17279a||_0x17279a===_0x477b7b(0x1f1)||_0x395a48[_0x477b7b(0x1f3)](_0x17279a,_0x395a48[_0x477b7b(0x1f7)]))return;_0x395a48['mEARy'](_0xf2f69d['currentBranch'],_0x17279a)&&(_0x525c7d[_0x477b7b(0x1d5)][_0x17279a]=!![],_0xf2f69d['currentBranch']=_0x17279a,_0x395a48['ckkTs'](saveCache,_0x525c7d));}export function initBranchTracking(_0x477ea4){const _0x4bfd96=_0x4e00b8,_0x5bcff1={'hdOQa':function(_0x1bb406){return _0x1bb406();},'IsOLn':_0x4bfd96(0x1f8),'gNIgm':function(_0x2ec64b,_0x3f3f65,_0x1ad646){return _0x2ec64b(_0x3f3f65,_0x1ad646);}},_0x156191=loadCache(),_0x3ac243=_0x5bcff1[_0x4bfd96(0x1fe)](getCurrentBranch);if(!_0x3ac243||_0x3ac243==='main'||_0x3ac243===_0x5bcff1[_0x4bfd96(0x1de)])return;if(_0x156191[_0x4bfd96(0x1d5)][_0x3ac243]===!![]){const _0x189aa5=_0x5bcff1[_0x4bfd96(0x1ed)](getOrCreateSession,_0x156191,_0x477ea4);_0x189aa5['enabled']=!![],_0x189aa5[_0x4bfd96(0x1f6)]=_0x3ac243,saveCache(_0x156191);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x4d63c2){const _0x39b810=_0x4e00b8,_0x540eeb={'mrXTu':function(_0x2a36a2,_0x16a493){return _0x2a36a2(_0x16a493);}},_0x3b99c1=loadCache(),_0x28f9e7=_0x3b99c1[_0x39b810(0x1f5)][_0x4d63c2];_0x28f9e7?.[_0x39b810(0x1d6)]&&(_0x3b99c1[_0x39b810(0x1fb)]=Date[_0x39b810(0x1e4)](),_0x540eeb[_0x39b810(0x1ef)](saveCache,_0x3b99c1));}export function shouldAutoEnableAfterClear(_0x5bc4e6){const _0x5a7c0c={'WVRyi':function(_0x17e460,_0x24e882){return _0x17e460!==_0x24e882;},'loWOt':function(_0xcf644c){return _0xcf644c();},'NLQEw':function(_0x1a5f13,_0x5caf42){return _0x1a5f13-_0x5caf42;}};if(_0x5a7c0c['WVRyi'](_0x5bc4e6,'clear'))return![];const _0x3399a3=_0x5a7c0c['loWOt'](loadCache),_0x32f9bf=_0x3399a3['lastEnabledSessionClearedAt'];if(!_0x32f9bf)return![];const _0x222a84=_0x5a7c0c['NLQEw'](Date['now'](),_0x32f9bf);return _0x222a84<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x259ad8){const _0x4f4694=_0x4e00b8,_0x1a3b2c={'xNDGu':function(_0x8d9fe){return _0x8d9fe();},'mPusz':'main','WHnFO':function(_0x4869df,_0x377156){return _0x4869df!==_0x377156;},'mkWTo':function(_0x3ba153,_0x32fbf8){return _0x3ba153(_0x32fbf8);}},_0xb33c76=loadCache(),_0x3349be=getOrCreateSession(_0xb33c76,_0x259ad8);_0x3349be['enabled']=!![];const _0x4081e2=_0x1a3b2c['xNDGu'](getCurrentBranch);_0x4081e2&&_0x4081e2!==_0x1a3b2c['mPusz']&&_0x1a3b2c['WHnFO'](_0x4081e2,_0x4f4694(0x1f8))&&(_0x3349be[_0x4f4694(0x1f6)]=_0x4081e2),delete _0xb33c76['lastEnabledSessionClearedAt'],_0x1a3b2c['mkWTo'](saveCache,_0xb33c76);}export function registerSession(_0x5e19ff,_0x4b0081){const _0x3ed974=_0x4e00b8,_0x2069cd={'tyimi':function(_0x3cc78e){return _0x3cc78e();},'tkPdl':function(_0x20eea3,_0x376302,_0x1e3ceb){return _0x20eea3(_0x376302,_0x1e3ceb);}},_0x296327=_0x2069cd[_0x3ed974(0x1ea)](loadCache),_0x4dd041=_0x2069cd['tkPdl'](getOrCreateSession,_0x296327,_0x5e19ff);_0x4dd041['featureId']=_0x4b0081,_0x4dd041[_0x3ed974(0x1d2)]=new Date()['toISOString'](),saveCache(_0x296327);}export function getSessionEntry(_0x26deee){const _0x25e853=_0x4e00b8,_0x52bc45={'MBJzW':function(_0x88d144){return _0x88d144();}},_0x20e55f=_0x52bc45[_0x25e853(0x1fd)](loadCache),_0x13706b=_0x20e55f[_0x25e853(0x1f5)][_0x26deee];if(_0x13706b?.['featureId']&&_0x13706b?.['registeredAt'])return{'featureId':_0x13706b['featureId'],'registeredAt':_0x13706b['registeredAt']};return null;}function _0x3076(_0x2d771f,_0x2ec1b3){_0x2d771f=_0x2d771f-0x1cb;const _0x387db6=_0x387d();let _0x307677=_0x387db6[_0x2d771f];return _0x307677;}export function unregisterSession(_0x3ea5b6){const _0x5bd79b=_0x4e00b8,_0x15aafc={'fWClv':function(_0x2f85de){return _0x2f85de();}},_0x4240ac=_0x15aafc[_0x5bd79b(0x1ec)](loadCache),_0x3d7e3b=_0x4240ac['sessions'][_0x3ea5b6];_0x3d7e3b&&(delete _0x3d7e3b[_0x5bd79b(0x1e3)],delete _0x3d7e3b[_0x5bd79b(0x1d2)],saveCache(_0x4240ac));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x194082){const _0x365dd1=_0x4e00b8,_0x4136d8={'EuFMc':function(_0xdb58f){return _0xdb58f();},'MglJz':function(_0x4dd7c5,_0x1b5fc1,_0x4b2503){return _0x4dd7c5(_0x1b5fc1,_0x4b2503);},'ipKyc':function(_0xe129c2,_0x3e1684){return _0xe129c2>=_0x3e1684;},'vIpiU':function(_0x16822a,_0x5df631){return _0x16822a(_0x5df631);}},_0x362a6d=_0x4136d8['EuFMc'](loadCache),_0x28d8f9=_0x4136d8[_0x365dd1(0x1d1)](getOrCreateSession,_0x362a6d,_0x194082),_0x2e1cfc=_0x28d8f9[_0x365dd1(0x1cb)]||0x0,_0x49602a=Date['now']();if(_0x4136d8['ipKyc'](_0x49602a-_0x2e1cfc,PLAN_REMINDER_INTERVAL_MS))return _0x28d8f9[_0x365dd1(0x1cb)]=_0x49602a,_0x4136d8['vIpiU'](saveCache,_0x362a6d),!![];return![];}export function hasSessionBeenPrompted(_0x4eb9d4){const _0x8dfeae=_0x4e00b8,_0x445b82={'YQEXf':function(_0x1c6aa3){return _0x1c6aa3();}},_0x39a37c=_0x445b82['YQEXf'](loadCache);return _0x39a37c[_0x8dfeae(0x1f5)][_0x4eb9d4]?.[_0x8dfeae(0x1cd)]===!![];}export function markSessionPrompted(_0x53c665){const _0x4f3c07=_0x4e00b8,_0x1d8c58={'zCDYi':function(_0x52a605){return _0x52a605();},'ZTmgy':function(_0x367507,_0x369df0,_0xb9fe0d){return _0x367507(_0x369df0,_0xb9fe0d);}},_0x4746b0=_0x1d8c58['zCDYi'](loadCache),_0x220909=_0x1d8c58[_0x4f3c07(0x1cf)](getOrCreateSession,_0x4746b0,_0x53c665);_0x220909['prompted']=!![],saveCache(_0x4746b0);}export function getCacheFile(){return CACHE_FILE;}
1
+ (function(_0x42d0b9,_0x1b396a){const _0x384e47=_0x3c80,_0x42a2d2=_0x42d0b9();while(!![]){try{const _0x2d2010=-parseInt(_0x384e47(0x153))/0x1+parseInt(_0x384e47(0x169))/0x2+parseInt(_0x384e47(0x15b))/0x3*(-parseInt(_0x384e47(0x17b))/0x4)+-parseInt(_0x384e47(0x16e))/0x5+parseInt(_0x384e47(0x161))/0x6+parseInt(_0x384e47(0x14f))/0x7*(-parseInt(_0x384e47(0x172))/0x8)+parseInt(_0x384e47(0x176))/0x9;if(_0x2d2010===_0x1b396a)break;else _0x42a2d2['push'](_0x42a2d2['shift']());}catch(_0x2e218c){_0x42a2d2['push'](_0x42a2d2['shift']());}}}(_0x1368,0xc5958));import*as _0x3eafde from'fs';import*as _0x4a3e2a from'path';import*as _0x512e31 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x4a3e2a['join'](_0x512e31['homedir'](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x528d6a=_0x3c80,_0x1e4377={'btVjc':'utf-8','yGIHV':function(_0x47f74a){return _0x47f74a();}};try{if(_0x3eafde['existsSync'](CACHE_FILE)){const _0x5018f6=JSON['parse'](_0x3eafde['readFileSync'](CACHE_FILE,_0x1e4377[_0x528d6a(0x179)]));return{'version':0x3,'sessions':_0x5018f6['sessions']||{},'branches':_0x5018f6['branches']||{},'lastEnabledSessionClearedAt':_0x5018f6['lastEnabledSessionClearedAt']};}}catch{}return _0x1e4377['yGIHV'](createEmptyCache);}function saveCache(_0x4eee70){const _0x5e93de=_0x3c80;try{const _0x2a6dea=_0x4a3e2a['dirname'](CACHE_FILE);!_0x3eafde[_0x5e93de(0x170)](_0x2a6dea)&&_0x3eafde[_0x5e93de(0x15e)](_0x2a6dea,{'recursive':!![]}),_0x3eafde['writeFileSync'](CACHE_FILE,JSON['stringify'](_0x4eee70,null,0x2));}catch{}}export function getCurrentBranch(){const _0x5775a3=_0x3c80,_0x44786d={'cJdrh':function(_0xc040e2,_0x485a0e,_0x5de2e3){return _0xc040e2(_0x485a0e,_0x5de2e3);},'kQKjz':_0x5775a3(0x177),'csVmG':'utf-8','ReLVI':'pipe','Ainxi':function(_0x2a157c,_0x295bde){return _0x2a157c===_0x295bde;},'HzVEU':_0x5775a3(0x15d)};try{const _0x3c62cb=_0x44786d['cJdrh'](execSync,_0x44786d['kQKjz'],{'encoding':_0x44786d['csVmG'],'stdio':[_0x5775a3(0x16b),_0x44786d[_0x5775a3(0x17a)],'pipe']})['trim']();if(!_0x3c62cb||_0x44786d[_0x5775a3(0x14e)](_0x3c62cb,_0x44786d[_0x5775a3(0x152)]))return null;return _0x3c62cb;}catch{return null;}}export function enableBranch(_0x125310){const _0x25b1ec=_0x3c80,_0x5b491d=loadCache();_0x5b491d[_0x25b1ec(0x16a)][_0x125310]=!![],saveCache(_0x5b491d);}export function disableBranch(_0x569bff){const _0x28088b=_0x3c80,_0x46da6d={'oTumi':function(_0x42d2b5,_0x46f051){return _0x42d2b5(_0x46f051);}},_0x55b9be=loadCache();delete _0x55b9be[_0x28088b(0x16a)][_0x569bff],_0x46da6d['oTumi'](saveCache,_0x55b9be);}export function isBranchEnabled(_0x5a7c24){const _0x369969=loadCache();return _0x369969['branches'][_0x5a7c24]===!![];}function getOrCreateSession(_0x211547,_0x39fd46){const _0x1dddcc=_0x3c80;return!_0x211547['sessions'][_0x39fd46]&&(_0x211547['sessions'][_0x39fd46]={}),_0x211547[_0x1dddcc(0x150)][_0x39fd46];}export function enableSession(_0xb00575){const _0x4300b2=_0x3c80,_0x5132d2={'KMhWL':function(_0x24d97c){return _0x24d97c();},'Chycy':function(_0x4e3174,_0xf0ac24){return _0x4e3174!==_0xf0ac24;}},_0x51a475=loadCache(),_0x35ef68=getOrCreateSession(_0x51a475,_0xb00575);_0x35ef68[_0x4300b2(0x16f)]=!![];const _0x295107=_0x5132d2[_0x4300b2(0x155)](getCurrentBranch);_0x295107&&_0x295107!=='main'&&_0x5132d2['Chycy'](_0x295107,'master')&&(_0x51a475['branches'][_0x295107]=!![],_0x35ef68['currentBranch']=_0x295107),saveCache(_0x51a475);}function _0x1368(){const _0x116849=['541770lGIIDH','iCmSt','HEAD','mkdirSync','lastPlanReminderAt','GSdxr','2549838rEnbqO','GGGHE','VbVHs','currentBranch','toISOString','XPnxW','lbNVh','vCBlK','609128XgUCWr','branches','pipe','HuckO','now','3859220aVzRvG','enabled','existsSync','featureId','1552ggQpOO','WnALX','clear','prompted','37295451tdjKae','git\x20rev-parse\x20--abbrev-ref\x20HEAD','dJIDK','btVjc','ReLVI','28mMJJVd','Ainxi','40145rVjhGr','sessions','GZdUO','HzVEU','915608rGNJNm','registeredAt','KMhWL','SwqlQ','lastEnabledSessionClearedAt','ydzvB','QMIeC','KKBlv'];_0x1368=function(){return _0x116849;};return _0x1368();}export function isSessionEnabled(_0x4f626b){const _0x21ef44=_0x3c80,_0xf82ae8={'GZdUO':function(_0x5ebea0){return _0x5ebea0();},'gKjmx':'main','XPnxW':'master','GGGHE':function(_0x3fb4d6,_0x5e3c56){return _0x3fb4d6===_0x5e3c56;},'TWPVp':function(_0x53f39a,_0x1b54d0){return _0x53f39a===_0x1b54d0;}},_0x3821f7=loadCache(),_0xc7421a=_0xf82ae8[_0x21ef44(0x151)](getCurrentBranch);if(!_0xc7421a||_0xc7421a===_0xf82ae8['gKjmx']||_0xc7421a===_0xf82ae8[_0x21ef44(0x166)])return _0x3821f7['sessions'][_0x4f626b]?.['enabled']===!![];const _0xa69616=_0xf82ae8[_0x21ef44(0x162)](_0x3821f7['branches'][_0xc7421a],!![]),_0x401531=_0xf82ae8['TWPVp'](_0x3821f7['sessions'][_0x4f626b]?.[_0x21ef44(0x16f)],!![]);return _0xa69616||_0x401531;}export function disableSession(_0x582311){const _0x3b1cab=_0x3c80,_0x21ca0d={'aUagY':function(_0x4f06c8,_0xfcc3e7){return _0x4f06c8(_0xfcc3e7);}},_0x1cd4d4=loadCache(),_0x5c00f0=getOrCreateSession(_0x1cd4d4,_0x582311);_0x5c00f0[_0x3b1cab(0x16f)]=![],_0x21ca0d['aUagY'](saveCache,_0x1cd4d4);}export function updateBranchTracking(_0x302d50){const _0x28a8a5=_0x3c80,_0x560efe={'VbVHs':function(_0x162144){return _0x162144();},'wbiry':function(_0x1cf6cc,_0x25cf0b){return _0x1cf6cc===_0x25cf0b;},'NlWAd':function(_0x5c2c42,_0x3e1131){return _0x5c2c42!==_0x3e1131;},'suYLc':function(_0x5c01d5,_0x2e5ecb){return _0x5c01d5(_0x2e5ecb);}},_0x32a51c=loadCache(),_0x3307a8=_0x32a51c['sessions'][_0x302d50];if(!_0x3307a8?.[_0x28a8a5(0x16f)])return;const _0x273232=_0x560efe[_0x28a8a5(0x163)](getCurrentBranch);if(!_0x273232||_0x273232==='main'||_0x560efe['wbiry'](_0x273232,'master'))return;_0x560efe['NlWAd'](_0x3307a8[_0x28a8a5(0x164)],_0x273232)&&(_0x32a51c['branches'][_0x273232]=!![],_0x3307a8[_0x28a8a5(0x164)]=_0x273232,_0x560efe['suYLc'](saveCache,_0x32a51c));}export function initBranchTracking(_0x6403bc){const _0x2fa240=_0x3c80,_0xaefc15={'lbNVh':function(_0x203f45){return _0x203f45();},'iCmSt':function(_0x3aabf4,_0x5493b1){return _0x3aabf4===_0x5493b1;},'GSdxr':function(_0x38da6c,_0x4c5520,_0x1e881b){return _0x38da6c(_0x4c5520,_0x1e881b);}},_0xc0f4ec=_0xaefc15[_0x2fa240(0x167)](loadCache),_0x333424=getCurrentBranch();if(!_0x333424||_0x333424==='main'||_0xaefc15[_0x2fa240(0x15c)](_0x333424,'master'))return;if(_0xc0f4ec[_0x2fa240(0x16a)][_0x333424]===!![]){const _0x3de520=_0xaefc15[_0x2fa240(0x160)](getOrCreateSession,_0xc0f4ec,_0x6403bc);_0x3de520['enabled']=!![],_0x3de520[_0x2fa240(0x164)]=_0x333424,saveCache(_0xc0f4ec);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x38af05){const _0x2cb1c7=_0x3c80,_0x362294={'QMIeC':function(_0x3c384c,_0xc78839){return _0x3c384c(_0xc78839);}},_0x4f33b7=loadCache(),_0xa90a14=_0x4f33b7['sessions'][_0x38af05];_0xa90a14?.[_0x2cb1c7(0x16f)]&&(_0x4f33b7[_0x2cb1c7(0x157)]=Date['now'](),_0x362294[_0x2cb1c7(0x159)](saveCache,_0x4f33b7));}export function shouldAutoEnableAfterClear(_0x1e2df0){const _0x5df3f2=_0x3c80,_0x33f507={'SwqlQ':function(_0x388684,_0x403400){return _0x388684-_0x403400;},'WnALX':function(_0x5a842b,_0x107773){return _0x5a842b<=_0x107773;}};if(_0x1e2df0!==_0x5df3f2(0x174))return![];const _0x5b454d=loadCache(),_0x2b3642=_0x5b454d['lastEnabledSessionClearedAt'];if(!_0x2b3642)return![];const _0x242500=_0x33f507[_0x5df3f2(0x156)](Date['now'](),_0x2b3642);return _0x33f507[_0x5df3f2(0x173)](_0x242500,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x488984){const _0x3276a3=_0x3c80,_0x1492c2={'ydzvB':function(_0xbcdee1){return _0xbcdee1();},'hNAVr':function(_0x1b4d42,_0x407839){return _0x1b4d42!==_0x407839;},'YEFfz':'master'},_0x448c3=loadCache(),_0x571aef=getOrCreateSession(_0x448c3,_0x488984);_0x571aef[_0x3276a3(0x16f)]=!![];const _0x3f7ad8=_0x1492c2[_0x3276a3(0x158)](getCurrentBranch);_0x3f7ad8&&_0x1492c2['hNAVr'](_0x3f7ad8,'main')&&_0x1492c2['hNAVr'](_0x3f7ad8,_0x1492c2['YEFfz'])&&(_0x571aef['currentBranch']=_0x3f7ad8),delete _0x448c3['lastEnabledSessionClearedAt'],saveCache(_0x448c3);}export function registerSession(_0xf02bef,_0x3287de){const _0x483265=_0x3c80,_0x1eb8ec={'HuckO':function(_0x3fb79b){return _0x3fb79b();},'KObzv':function(_0x5b711e,_0x5c8bc6){return _0x5b711e(_0x5c8bc6);}},_0x4318fc=_0x1eb8ec[_0x483265(0x16c)](loadCache),_0x31c393=getOrCreateSession(_0x4318fc,_0xf02bef);_0x31c393[_0x483265(0x171)]=_0x3287de,_0x31c393['registeredAt']=new Date()[_0x483265(0x165)](),_0x1eb8ec['KObzv'](saveCache,_0x4318fc);}export function getSessionEntry(_0x2e079d){const _0x17ee60=_0x3c80,_0x3b2968={'KKBlv':function(_0x3f5fcf){return _0x3f5fcf();}},_0x278cd1=_0x3b2968[_0x17ee60(0x15a)](loadCache),_0x262977=_0x278cd1[_0x17ee60(0x150)][_0x2e079d];if(_0x262977?.['featureId']&&_0x262977?.['registeredAt'])return{'featureId':_0x262977[_0x17ee60(0x171)],'registeredAt':_0x262977[_0x17ee60(0x154)]};return null;}export function unregisterSession(_0x449234){const _0x33c27c=_0x3c80,_0x518704={'BhFWA':function(_0x1cc6b8){return _0x1cc6b8();},'vCBlK':function(_0xb60163,_0x177fec){return _0xb60163(_0x177fec);}},_0x852636=_0x518704['BhFWA'](loadCache),_0x22117d=_0x852636[_0x33c27c(0x150)][_0x449234];_0x22117d&&(delete _0x22117d['featureId'],delete _0x22117d['registeredAt'],_0x518704[_0x33c27c(0x168)](saveCache,_0x852636));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0xc9c9ab){const _0x1a7fc3=_0x3c80,_0x3ddf4d={'FnFhl':function(_0x9927ff){return _0x9927ff();},'feUfi':function(_0x3edf86,_0x294408){return _0x3edf86>=_0x294408;}},_0x1625d9=_0x3ddf4d['FnFhl'](loadCache),_0x520092=getOrCreateSession(_0x1625d9,_0xc9c9ab),_0x5a9e2a=_0x520092['lastPlanReminderAt']||0x0,_0x56d629=Date[_0x1a7fc3(0x16d)]();if(_0x3ddf4d['feUfi'](_0x56d629-_0x5a9e2a,PLAN_REMINDER_INTERVAL_MS))return _0x520092[_0x1a7fc3(0x15f)]=_0x56d629,saveCache(_0x1625d9),!![];return![];}export function hasSessionBeenPrompted(_0x193677){const _0x47e102=_0x3c80,_0x2c2279={'dJIDK':function(_0x4088f4,_0x3884db){return _0x4088f4===_0x3884db;}},_0x35d40a=loadCache();return _0x2c2279[_0x47e102(0x178)](_0x35d40a[_0x47e102(0x150)][_0x193677]?.[_0x47e102(0x175)],!![]);}function _0x3c80(_0x361dbf,_0x206cc0){_0x361dbf=_0x361dbf-0x14e;const _0x136864=_0x1368();let _0x3c8026=_0x136864[_0x361dbf];return _0x3c8026;}export function markSessionPrompted(_0x41f7c7){const _0x2d24bd=_0x3c80,_0x5db01f={'chsTz':function(_0x5a00a6){return _0x5a00a6();},'wrXWq':function(_0x23f399,_0x27dbc3,_0x2d4af9){return _0x23f399(_0x27dbc3,_0x2d4af9);}},_0x3f8f99=_0x5db01f['chsTz'](loadCache),_0x1438da=_0x5db01f['wrXWq'](getOrCreateSession,_0x3f8f99,_0x41f7c7);_0x1438da[_0x2d24bd(0x175)]=!![],saveCache(_0x3f8f99);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x1ccdee=_0x19c4;(function(_0x1fff4c,_0x2ddf42){const _0x124fda=_0x19c4,_0x6c2a73=_0x1fff4c();while(!![]){try{const _0x304dd5=-parseInt(_0x124fda(0x106))/0x1*(-parseInt(_0x124fda(0x127))/0x2)+parseInt(_0x124fda(0x12b))/0x3*(parseInt(_0x124fda(0x13c))/0x4)+-parseInt(_0x124fda(0x148))/0x5+parseInt(_0x124fda(0x10b))/0x6*(-parseInt(_0x124fda(0x115))/0x7)+-parseInt(_0x124fda(0x133))/0x8*(parseInt(_0x124fda(0x144))/0x9)+-parseInt(_0x124fda(0x135))/0xa+parseInt(_0x124fda(0x134))/0xb;if(_0x304dd5===_0x2ddf42)break;else _0x6c2a73['push'](_0x6c2a73['shift']());}catch(_0x5f34dd){_0x6c2a73['push'](_0x6c2a73['shift']());}}}(_0x855d,0x58a6f));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir}from'./rangerRoot.js';export function getEnvDir(_0x5a2016){const _0x3c6190=_0x19c4,_0x554a3={'EwPQT':function(_0x15478a){return _0x15478a();},'ENThf':function(_0x552e49,_0x33f4b4,_0x177ba1,_0x5ed9d3){return _0x552e49(_0x33f4b4,_0x177ba1,_0x5ed9d3);},'hrPse':function(_0x1f8516,_0x1fd716,_0x1a3065,_0x35c30d){return _0x1f8516(_0x1fd716,_0x1a3065,_0x35c30d);},'Lhtgr':function(_0x12d979,_0x42a5ec,_0x4ee48d){return _0x12d979(_0x42a5ec,_0x4ee48d);},'jMvSY':function(_0x2419bb,_0x4b2807){return _0x2419bb(_0x4b2807);},'lpEkt':function(_0x392be7,_0x51f112){return _0x392be7!==_0x51f112;}},_0x406a47=_0x554a3[_0x3c6190(0x124)](getRangerDir),_0x35678d=_0x554a3['ENThf'](join,_0x406a47,'ci',_0x5a2016),_0x52082c=_0x554a3['hrPse'](join,_0x406a47,'local',_0x5a2016),_0x9b2bd2=join(_0x406a47,_0x5a2016),_0x1623fb=join(_0x406a47,_0x3c6190(0x14e)),_0x55fd51=_0x554a3[_0x3c6190(0x155)](join,_0x406a47,'ci');if(existsSync(_0x35678d))return _0x35678d;if(existsSync(_0x52082c))return _0x52082c;if(_0x554a3['jMvSY'](existsSync,_0x9b2bd2)&&(_0x554a3['lpEkt'](_0x9b2bd2,_0x1623fb)&&_0x9b2bd2!==_0x55fd51?!![]:hasLegacyProfileFiles(_0x9b2bd2)))return _0x9b2bd2;return _0x52082c;}export function findExistingEnv(_0x4a87c7,_0x46b060){const _0x23c52f=_0x19c4,_0x11d599={'oumzK':function(_0xadab40){return _0xadab40();},'sudAB':function(_0x54ca9c,_0x1bfe26,_0x2b6766){return _0x54ca9c(_0x1bfe26,_0x2b6766);},'crKCf':function(_0x379950,_0x4e9553,_0x2e6c6c){return _0x379950(_0x4e9553,_0x2e6c6c);},'ZiiwC':function(_0x4d2015,_0x32f03a,_0x35c0a0,_0x40b140){return _0x4d2015(_0x32f03a,_0x35c0a0,_0x40b140);},'wNXLS':_0x23c52f(0x12f),'LeeIg':function(_0x1fc2b9,_0x2b0f97){return _0x1fc2b9===_0x2b0f97;},'rHBwg':function(_0x17b093,_0x537587){return _0x17b093===_0x537587;},'vkNmO':function(_0x254c86,_0xf21c0d){return _0x254c86(_0xf21c0d);}},_0x2cf0eb=_0x11d599['oumzK'](getRangerDir),_0xd03705=_0x46b060?.['locations']??['ci','local',_0x23c52f(0x12f)],_0x1ef6c7=_0x11d599['sudAB'](join,_0x2cf0eb,_0x23c52f(0x14e)),_0x3e6e79=_0x11d599[_0x23c52f(0x151)](join,_0x2cf0eb,'ci'),_0x496a09=[{'location':'ci','path':_0x11d599[_0x23c52f(0x140)](join,_0x2cf0eb,'ci',_0x4a87c7)},{'location':_0x23c52f(0x14e),'path':_0x11d599[_0x23c52f(0x140)](join,_0x2cf0eb,'local',_0x4a87c7)},{'location':_0x23c52f(0x12f),'path':_0x11d599[_0x23c52f(0x151)](join,_0x2cf0eb,_0x4a87c7)}];for(const _0x4b9058 of _0x496a09){if(_0xd03705['includes'](_0x4b9058[_0x23c52f(0x125)])&&existsSync(_0x4b9058['path'])){if(_0x4b9058[_0x23c52f(0x125)]===_0x11d599['wNXLS']&&(_0x11d599['LeeIg'](_0x4b9058[_0x23c52f(0x136)],_0x1ef6c7)||_0x11d599[_0x23c52f(0x139)](_0x4b9058[_0x23c52f(0x136)],_0x3e6e79))&&!_0x11d599['vkNmO'](hasLegacyProfileFiles,_0x4b9058[_0x23c52f(0x136)]))continue;return{'path':_0x4b9058[_0x23c52f(0x136)],'location':_0x4b9058['location']};}}return null;}function hasLegacyProfileFiles(_0x1e4ea5){const _0x2bb85c=_0x19c4,_0x126b58={'GdIvc':function(_0x366887,_0x2a0787){return _0x366887(_0x2a0787);},'JSkcX':_0x2bb85c(0x149),'wtLgZ':function(_0x127ab7,_0x44a6e5,_0x2e324d){return _0x127ab7(_0x44a6e5,_0x2e324d);},'VIjLG':_0x2bb85c(0x150)};return _0x126b58['GdIvc'](existsSync,join(_0x1e4ea5,_0x126b58['JSkcX']))||_0x126b58['GdIvc'](existsSync,_0x126b58[_0x2bb85c(0x12a)](join,_0x1e4ea5,_0x2bb85c(0x14a)))||existsSync(join(_0x1e4ea5,_0x126b58[_0x2bb85c(0x123)]));}function _0x855d(){const _0x194bb2=['legacy','vMHeb','pSHKq','now','2228792pXRaCl','11800965nNDjjr','4395350SXlMeW','path','MFYAe','cdpEndpoint','rHBwg','\x20is\x20not\x20set','object','4HyzgQd','oQUEI','wznqu','header','ZiiwC','browser','UBKLl','split','9tbnsZP','repeat','.json','nrubp','2834715IDHDLi','settings.json','auth.json','storageState','sKXrm','push','local','tabs','auth.json.enc','crKCf','install','xoQzY','entries','Lhtgr','WvdlH','YiuYO','Environment\x20variable\x20','GuHNd','3284txUdsf','getuid','extraHTTPHeaders','Dawas','storageStatePath','10614IRWJHI','map','Wrcpn','prxCa','qsrxh','ranger-config','contextOptions','chromium','isArray','replace','1897IwTeSV','GXAXk','fromEntries','length','warn','vision','zqdPa','message','args','INSQF','DOvam','ISMjH','rlLdl','stringify','VIjLG','EwPQT','location','join','394XyGdep','ivsPX','--disable-setuid-sandbox','wtLgZ','1223496IUCknH','headless','hOszS','filter'];_0x855d=function(){return _0x194bb2;};return _0x855d();}export function isEnvCi(_0x486258){return existsSync(join(getRangerDir(),'ci',_0x486258));}export async function cleanupTempFiles(_0x507231){const _0x2f5732=_0x19c4,_0x42960d={'hzZdG':function(_0x196add,_0x13388b){return _0x196add!==_0x13388b;},'jYdXX':'ENOENT'},_0x2f4935=[_0x507231['tempAuthPath'],_0x507231['configPath']][_0x2f5732(0x12e)](Boolean);await Promise['all'](_0x2f4935[_0x2f5732(0x10c)](_0x1e0dbf=>unlink(_0x1e0dbf)['catch'](_0x312ef3=>{const _0x5bf97d=_0x2f5732;_0x42960d['hzZdG'](_0x312ef3['code'],_0x42960d['jYdXX'])&&console[_0x5bf97d(0x119)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x1e0dbf+':',_0x312ef3[_0x5bf97d(0x11c)]);})));}export function getSettingsPath(_0x271b35){const _0x271bd0=_0x19c4,_0x1b47ac={'YiuYO':function(_0x1a67e4,_0x5a0c98){return _0x1a67e4(_0x5a0c98);},'sKXrm':_0x271bd0(0x149)};return join(_0x1b47ac[_0x271bd0(0x103)](getEnvDir,_0x271b35),_0x1b47ac[_0x271bd0(0x14c)]);}export async function loadSettings(_0x18b8b1){const _0x30c904=_0x19c4,_0x54a16a={'FafZq':function(_0x49b73f,_0x430018){return _0x49b73f(_0x430018);},'wznqu':'utf-8'},_0x189dfa=getSettingsPath(_0x18b8b1);if(!_0x54a16a['FafZq'](existsSync,_0x189dfa))return{};try{const _0x1d6455=await readFile(_0x189dfa,_0x54a16a[_0x30c904(0x13e)]);return JSON['parse'](_0x1d6455);}catch{return{};}}export async function saveSettings(_0x192735,_0x9a4ff8){const _0x39dd4d=_0x19c4,_0xa659ee={'lKULU':function(_0x271c07,_0x4913ac){return _0x271c07(_0x4913ac);},'HuTdk':function(_0x7748e9,_0x3c3526,_0x340e78){return _0x7748e9(_0x3c3526,_0x340e78);},'HNram':function(_0x41a456,_0x47a149,_0x115a2e){return _0x41a456(_0x47a149,_0x115a2e);}},_0x1e2070=_0xa659ee['lKULU'](getSettingsPath,_0x192735),_0x480e0d=dirname(_0x1e2070);!existsSync(_0x480e0d)&&await _0xa659ee['HuTdk'](mkdir,_0x480e0d,{'recursive':!![]}),await _0xa659ee['HNram'](writeFile,_0x1e2070,JSON[_0x39dd4d(0x122)](_0x9a4ff8,null,0x2));}export function resolveEnvVars(_0x4d8ffa){const _0x5e530f=_0x19c4,_0x1d748f={'Dawas':function(_0x3a4a88,_0x50cd37){return _0x3a4a88===_0x50cd37;},'GPtEp':'string','FKlrW':_0x5e530f(0x13b)};if(_0x1d748f[_0x5e530f(0x109)](typeof _0x4d8ffa,_0x1d748f['GPtEp']))return _0x4d8ffa[_0x5e530f(0x114)](/\$\{(\w+)\}/g,(_0x51a3e0,_0x38087a)=>{const _0x20d151=_0x5e530f,_0x871c57=process['env'][_0x38087a];if(_0x871c57===undefined)throw new Error(_0x20d151(0x104)+_0x38087a+_0x20d151(0x13a));return _0x871c57;});if(Array[_0x5e530f(0x113)](_0x4d8ffa))return _0x4d8ffa[_0x5e530f(0x10c)](resolveEnvVars);if(_0x4d8ffa&&typeof _0x4d8ffa===_0x1d748f['FKlrW'])return Object[_0x5e530f(0x117)](Object['entries'](_0x4d8ffa)['map'](([_0x1f094b,_0x3be3cf])=>[_0x1f094b,resolveEnvVars(_0x3be3cf)]));return _0x4d8ffa;}const isRecord=_0x56c3b8=>typeof _0x56c3b8===_0x1ccdee(0x13b)&&_0x56c3b8!==null&&!Array['isArray'](_0x56c3b8),asRecord=_0x4e76d9=>isRecord(_0x4e76d9)?_0x4e76d9:undefined,mergeHeaders=(_0x33d497,_0x851c3f)=>{const _0x301920={..._0x33d497??{},..._0x851c3f??{}};return Object['keys'](_0x301920)['length']?_0x301920:undefined;};export function buildBrowserOptionsFromSettings(_0x3c7f3b,_0x222480={}){const _0x3aa2e8=_0x1ccdee,_0x2f7e1c={'INSQF':function(_0x4f15e0,_0x318a61){return _0x4f15e0(_0x318a61);},'GXAXk':'boolean','MrmWV':function(_0x275940,_0x39837e){return _0x275940===_0x39837e;},'AvQKl':'string','MIZCz':function(_0x2c58e8,_0x47eec0){return _0x2c58e8(_0x47eec0);}},_0x20649c=asRecord(_0x3c7f3b[_0x3aa2e8(0x141)]),_0x33235d={..._0x2f7e1c[_0x3aa2e8(0x11e)](asRecord,_0x20649c?.['launchOptions'])??{}};typeof _0x222480[_0x3aa2e8(0x12c)]===_0x2f7e1c[_0x3aa2e8(0x116)]&&(_0x33235d[_0x3aa2e8(0x12c)]=_0x222480[_0x3aa2e8(0x12c)]);const _0x36b7ab={..._0x2f7e1c['INSQF'](asRecord,_0x20649c?.['contextOptions'])??{}};_0x2f7e1c['MrmWV'](typeof _0x3c7f3b['userAgent'],_0x2f7e1c['AvQKl'])&&(_0x36b7ab['userAgent']=_0x3c7f3b['userAgent']);const _0x54e0a0=mergeHeaders(_0x2f7e1c['MIZCz'](asRecord,_0x36b7ab[_0x3aa2e8(0x108)]),asRecord(_0x3c7f3b['headers']));return _0x54e0a0?_0x36b7ab['extraHTTPHeaders']=_0x54e0a0:delete _0x36b7ab[_0x3aa2e8(0x108)],_0x222480['storageStatePath']&&(_0x36b7ab[_0x3aa2e8(0x14b)]=_0x222480[_0x3aa2e8(0x10a)]),{'launchOptions':_0x33235d,'contextOptions':_0x36b7ab};}function _0x19c4(_0x11d959,_0x70ebb5){_0x11d959=_0x11d959-0x103;const _0x855dae=_0x855d();let _0x19c456=_0x855dae[_0x11d959];return _0x19c456;}export async function buildPlaywrightConfig(_0x1241b5,_0x53be26,_0x249de2,_0x3b162f){const _0x4692b7=_0x1ccdee,_0xba7de6={'MFYAe':function(_0x4ee91a,_0x4893a3){return _0x4ee91a===_0x4893a3;},'ftVQX':'--no-sandbox','pSHKq':_0x4692b7(0x129),'MftGj':'clipboard-write','xoQzY':function(_0x5abd3b,_0x17ac70){return _0x5abd3b(_0x17ac70);},'DOvam':function(_0x5d4308,_0x23dfb8,_0x12e3f2){return _0x5d4308(_0x23dfb8,_0x12e3f2);},'hkACF':_0x4692b7(0x14a),'AtvWN':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','ISMjH':function(_0x41e2bb,_0x5ee11b){return _0x41e2bb(_0x5ee11b);},'cmBkr':function(_0x17e0df){return _0x17e0df();},'ivsPX':function(_0x22a8f1,_0x259da4,_0x1ddc6d,_0x5855c3){return _0x22a8f1(_0x259da4,_0x1ddc6d,_0x5855c3);},'hOszS':'sessions','rwQcJ':function(_0x4d5ff6,_0x1bcf99){return _0x4d5ff6(_0x1bcf99);},'VMJkN':'chromium','UBKLl':function(_0x2c33e4,_0x259813){return _0x2c33e4===_0x259813;},'WvdlH':_0x4692b7(0x110),'QAIdk':function(_0x2e7f3c,_0x44024e){return _0x2e7f3c(_0x44024e);}},_0xd4769c=_0xba7de6[_0x4692b7(0x153)](getEnvDir,_0x53be26),_0x38264a=join(_0xd4769c,_0x4692b7(0x150)),_0x5b20ac=_0xba7de6['DOvam'](join,_0xd4769c,_0xba7de6['hkACF']);let _0x5735c7,_0x55b54b;if(_0xba7de6['xoQzY'](existsSync,_0x38264a))try{const _0x139db5=await getToken();if(!_0x139db5)throw new Error(_0xba7de6['AtvWN']);const _0x94adc=await _0xba7de6[_0x4692b7(0x120)](readFile,_0x38264a),_0x894b1f=_0xba7de6[_0x4692b7(0x11f)](decrypt,_0x94adc,_0x139db5);_0x55b54b=join(tmpdir(),'ranger-auth-'+Date[_0x4692b7(0x132)]()+'.json'),await writeFile(_0x55b54b,_0x894b1f),_0x5735c7=_0x55b54b;}catch(_0x2d8540){const _0x2daf71=_0x2d8540 instanceof Error?_0x2d8540['message']:String(_0x2d8540);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x2daf71);}else existsSync(_0x5b20ac)&&(_0x5735c7=_0x5b20ac);const _0x18f2f3=_0x249de2||_0xba7de6['cmBkr'](randomUUID),_0x4be958=_0xba7de6[_0x4692b7(0x128)](join,getRangerDir(),_0xba7de6[_0x4692b7(0x12d)],_0x18f2f3),_0x36ed75=_0xba7de6['rwQcJ'](Boolean,_0x1241b5[_0x4692b7(0x138)]),_0x278de2=_0x36ed75?{'browserName':_0xba7de6['VMJkN'],'cdpEndpoint':_0x1241b5['cdpEndpoint']}:((()=>{const _0x5757df=_0x4692b7,{launchOptions:_0x59ce35,contextOptions:_0x28d4a5}=buildBrowserOptionsFromSettings(_0x1241b5,{'headless':_0x3b162f?![]:_0x1241b5['headless']??!![],'storageStatePath':_0x5735c7});return _0xba7de6[_0x5757df(0x137)](process[_0x5757df(0x107)]?.(),0x0)&&(_0x59ce35[_0x5757df(0x11d)]=[_0xba7de6['ftVQX'],_0xba7de6[_0x5757df(0x131)]]),{'isolated':!![],'browserName':_0x5757df(0x112),'launchOptions':_0x59ce35,'contextOptions':{..._0x28d4a5,'permissions':['clipboard-read',_0xba7de6['MftGj']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x148ea3={'name':_0x53be26,'browser':_0x278de2,'capabilities':['core',_0x4692b7(0x14f),_0x4692b7(0x152),'pdf',_0x4692b7(0x11a)],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4be958};if(!_0x36ed75){const _0x34e142=_0x148ea3[_0x4692b7(0x141)],_0x2b45d9=_0x34e142[_0x4692b7(0x111)];if(_0xba7de6['MFYAe'](_0x2b45d9['userAgent'],undefined))delete _0x2b45d9['userAgent'];if(_0xba7de6[_0x4692b7(0x142)](_0x2b45d9[_0x4692b7(0x14b)],undefined))delete _0x2b45d9[_0x4692b7(0x14b)];}const _0x431d62=join(tmpdir(),_0xba7de6[_0x4692b7(0x156)]);!_0xba7de6['QAIdk'](existsSync,_0x431d62)&&await mkdir(_0x431d62,{'recursive':!![]});const _0x20c043=join(_0x431d62,_0x53be26+'-'+Date['now']()+_0x4692b7(0x146));return await writeFile(_0x20c043,JSON[_0x4692b7(0x122)](_0x148ea3,null,0x2)),{'configPath':_0x20c043,'tempAuthPath':_0x55b54b};}export function getNestedValue(_0x394727,_0x27c6b4){const _0x4063c0=_0x1ccdee,_0x4292e2={'PDsHf':function(_0x316a5,_0x2cad8d){return _0x316a5(_0x2cad8d);},'rlLdl':function(_0x14cf51,_0x5bfb63){return _0x14cf51===_0x5bfb63;},'ijNvD':'object'},_0x4b0810=_0x4292e2['PDsHf'](parseKeyPath,_0x27c6b4);let _0x8c7e98=_0x394727;for(const _0x141ebf of _0x4b0810){if(_0x4292e2[_0x4063c0(0x121)](_0x8c7e98,null)||_0x8c7e98===undefined||typeof _0x8c7e98!==_0x4292e2['ijNvD'])return undefined;_0x8c7e98=_0x8c7e98[_0x141ebf];}return _0x8c7e98;}export function setNestedValue(_0x3798e4,_0x1f0eb5,_0x44e1f6){const _0x4ad820=_0x1ccdee,_0x12595e={'Wrcpn':function(_0x2f7575,_0x6fbe47){return _0x2f7575(_0x6fbe47);},'vMHeb':function(_0x435f6c,_0xe59ea7){return _0x435f6c<_0xe59ea7;},'CLUBv':function(_0xb820fe,_0x4611e0){return _0xb820fe!==_0x4611e0;}},_0x54fec1=_0x12595e[_0x4ad820(0x10d)](parseKeyPath,_0x1f0eb5);let _0x28a36f=_0x3798e4;for(let _0x165bdb=0x0;_0x12595e[_0x4ad820(0x130)](_0x165bdb,_0x54fec1['length']-0x1);_0x165bdb++){const _0x2cc719=_0x54fec1[_0x165bdb];(!(_0x2cc719 in _0x28a36f)||_0x12595e['CLUBv'](typeof _0x28a36f[_0x2cc719],'object'))&&(_0x28a36f[_0x2cc719]={}),_0x28a36f=_0x28a36f[_0x2cc719];}_0x28a36f[_0x54fec1[_0x54fec1[_0x4ad820(0x118)]-0x1]]=_0x44e1f6;}export function deleteNestedValue(_0x482cdc,_0x330593){const _0x4723be=_0x1ccdee,_0x1738f9={'sjhYu':function(_0xbf3892,_0x21e5c8){return _0xbf3892(_0x21e5c8);},'kueOK':function(_0x2a6da2,_0x48439c){return _0x2a6da2-_0x48439c;},'prxCa':function(_0x2d659d,_0x1c2f34){return _0x2d659d===_0x1c2f34;},'nrubp':function(_0x16963f,_0x383f63){return _0x16963f!==_0x383f63;},'SxqiX':'object','qsrxh':function(_0x276619,_0x2461c8){return _0x276619-_0x2461c8;},'GuHNd':function(_0x404f23,_0x5b0262){return _0x404f23 in _0x5b0262;}},_0x950468=_0x1738f9['sjhYu'](parseKeyPath,_0x330593);let _0x20866b=_0x482cdc;for(let _0x318bff=0x0;_0x318bff<_0x1738f9['kueOK'](_0x950468['length'],0x1);_0x318bff++){if(_0x1738f9[_0x4723be(0x10e)](_0x20866b,null)||_0x20866b===undefined||_0x1738f9[_0x4723be(0x147)](typeof _0x20866b,_0x4723be(0x13b)))return![];_0x20866b=_0x20866b[_0x950468[_0x318bff]];}if(_0x20866b===null||_0x1738f9['prxCa'](_0x20866b,undefined)||typeof _0x20866b!==_0x1738f9['SxqiX'])return![];const _0x463332=_0x950468[_0x1738f9[_0x4723be(0x10f)](_0x950468['length'],0x1)];if(_0x1738f9[_0x4723be(0x105)](_0x463332,_0x20866b))return delete _0x20866b[_0x463332],!![];return![];}function parseKeyPath(_0x5386ae){const _0xf7e540=_0x1ccdee,_0x4ce1d3={'oQUEI':_0xf7e540(0x13f),'EHlCK':'headers'},_0xf99b81=_0x5386ae[_0xf7e540(0x143)]('.');return _0xf99b81[0x0]===_0x4ce1d3[_0xf7e540(0x13d)]&&(_0xf99b81[0x0]=_0x4ce1d3['EHlCK']),_0xf99b81;}export function formatSettings(_0x118c7f,_0x2cb12a=0x0){const _0x1ec345=_0x1ccdee,_0xa654bc={'zqdPa':function(_0x351216,_0x1e413a){return _0x351216===_0x1e413a;},'nEtxo':_0x1ec345(0x13b),'DOtLY':function(_0x3ccd6b,_0x12ff35){return _0x3ccd6b!==_0x12ff35;}},_0xe736f3=[],_0x5b93ad='\x20\x20'[_0x1ec345(0x145)](_0x2cb12a);for(const [_0x417b52,_0x3de5df]of Object['entries'](_0x118c7f)){if(_0x3de5df===undefined)continue;if(_0xa654bc[_0x1ec345(0x11b)](typeof _0x3de5df,_0xa654bc['nEtxo'])&&_0xa654bc['DOtLY'](_0x3de5df,null)){_0xe736f3['push'](''+_0x5b93ad+_0x417b52+':');for(const [_0xf0898a,_0x1cc22b]of Object[_0x1ec345(0x154)](_0x3de5df)){_0xe736f3[_0x1ec345(0x14d)](_0x5b93ad+'\x20\x20'+_0xf0898a+':\x20'+_0x1cc22b);}}else _0xe736f3['push'](''+_0x5b93ad+_0x417b52+':\x20'+_0x3de5df);}return _0xe736f3[_0x1ec345(0x126)]('\x0a');}
1
+ function _0xb01e(){const _0x31b747=['fromEntries','RZsBL','local','IuTcq','tabs','legacy','settings.json','LGoqY','message','headless','ENOENT','location','lYxPT','sessions','Jgepl','3594312fzyNfY','allow','193122XQKQnQ','VEGOy','wkBzC','headers','lWrAt','storageStatePath','aOXMx','EsBin','boolean','VrjIK','browser','extraHTTPHeaders','vprPg','DYcEf','kHNfK','mLoic','join','yQnXj','--disable-setuid-sandbox','stringify','SJtoP','opsWS','--no-sandbox','Failed\x20to\x20decrypt\x20auth\x20state:\x20','header','auth.json','4NcmhJt','zinmz','994708PAfxdp','spznN','now','qydVG','locations','WTrAb','catch','path','length','zzaKM','1544472twGYFv','OyKDf','storageState','map','.json','pdf','userAgent','object','ranger-config','clipboard-read','cdpEndpoint','Rdpjh','llnMc','isArray','1999090GfwEyz','install','ranger-auth-','nwZyv','string','zTIWG','kdPAt','uwQYd','launchOptions','filter','RrNcN','MQQqP','args','2626552DioFaz','1188495SWByFs','TpvJh'];_0xb01e=function(){return _0x31b747;};return _0xb01e();}const _0x5945eb=_0x32d8;function _0x32d8(_0x1a107e,_0x1cff4b){_0x1a107e=_0x1a107e-0x17a;const _0xb01e1=_0xb01e();let _0x32d837=_0xb01e1[_0x1a107e];return _0x32d837;}(function(_0x14c1e1,_0x159c65){const _0x1081df=_0x32d8,_0x13ade2=_0x14c1e1();while(!![]){try{const _0x24653f=parseInt(_0x1081df(0x185))/0x1*(parseInt(_0x1081df(0x1c0))/0x2)+parseInt(_0x1081df(0x1be))/0x3+parseInt(_0x1081df(0x187))/0x4+-parseInt(_0x1081df(0x19f))/0x5+-parseInt(_0x1081df(0x191))/0x6+-parseInt(_0x1081df(0x1ad))/0x7+-parseInt(_0x1081df(0x1ac))/0x8;if(_0x24653f===_0x159c65)break;else _0x13ade2['push'](_0x13ade2['shift']());}catch(_0x28c091){_0x13ade2['push'](_0x13ade2['shift']());}}}(_0xb01e,0xa573b));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir}from'./rangerRoot.js';export function getEnvDir(_0x3a5143){const _0x1ca775=_0x32d8,_0x48ee99={'ieUWC':function(_0x3c1387,_0x56e88d,_0x927d76,_0x2378cc){return _0x3c1387(_0x56e88d,_0x927d76,_0x2378cc);},'bfolu':function(_0x1702eb,_0x41fde4,_0x2ad970){return _0x1702eb(_0x41fde4,_0x2ad970);},'mLoic':function(_0x3191de,_0x4d8622){return _0x3191de(_0x4d8622);},'MldVe':function(_0x5b6035,_0x2b7101){return _0x5b6035!==_0x2b7101;}},_0x17c998=getRangerDir(),_0x2fc77b=_0x48ee99['ieUWC'](join,_0x17c998,'ci',_0x3a5143),_0x29ad23=join(_0x17c998,_0x1ca775(0x1b1),_0x3a5143),_0x48b04c=join(_0x17c998,_0x3a5143),_0x41bad6=_0x48ee99['bfolu'](join,_0x17c998,_0x1ca775(0x1b1)),_0x16f9e6=_0x48ee99['bfolu'](join,_0x17c998,'ci');if(existsSync(_0x2fc77b))return _0x2fc77b;if(existsSync(_0x29ad23))return _0x29ad23;if(_0x48ee99['mLoic'](existsSync,_0x48b04c)&&(_0x48ee99['MldVe'](_0x48b04c,_0x41bad6)&&_0x48b04c!==_0x16f9e6?!![]:_0x48ee99[_0x1ca775(0x17a)](hasLegacyProfileFiles,_0x48b04c)))return _0x48b04c;return _0x29ad23;}export function findExistingEnv(_0x5d0919,_0x5c3f91){const _0x4c5ad2=_0x32d8,_0x3d9046={'IeAJk':function(_0x40587c){return _0x40587c();},'wkBzC':function(_0x4aa080,_0x5e53bd,_0x516385){return _0x4aa080(_0x5e53bd,_0x516385);},'CFsIF':'local','WTrAb':_0x4c5ad2(0x1b4),'qjTyG':function(_0xec0e81,_0x1a64d8){return _0xec0e81===_0x1a64d8;},'qXqQa':function(_0x1c8c4f,_0x24da36){return _0x1c8c4f(_0x24da36);}},_0x45e0d0=_0x3d9046['IeAJk'](getRangerDir),_0x5a5d68=_0x5c3f91?.[_0x4c5ad2(0x18b)]??['ci','local',_0x4c5ad2(0x1b4)],_0x1c0bbe=_0x3d9046[_0x4c5ad2(0x1c2)](join,_0x45e0d0,_0x3d9046['CFsIF']),_0x18a272=join(_0x45e0d0,'ci'),_0x2429d3=[{'location':'ci','path':join(_0x45e0d0,'ci',_0x5d0919)},{'location':_0x4c5ad2(0x1b1),'path':join(_0x45e0d0,'local',_0x5d0919)},{'location':_0x3d9046['WTrAb'],'path':_0x3d9046['wkBzC'](join,_0x45e0d0,_0x5d0919)}];for(const _0x3119cf of _0x2429d3){if(_0x5a5d68['includes'](_0x3119cf['location'])&&existsSync(_0x3119cf['path'])){if(_0x3119cf['location']===_0x3d9046[_0x4c5ad2(0x18c)]&&(_0x3119cf['path']===_0x1c0bbe||_0x3d9046['qjTyG'](_0x3119cf['path'],_0x18a272))&&!_0x3d9046['qXqQa'](hasLegacyProfileFiles,_0x3119cf['path']))continue;return{'path':_0x3119cf[_0x4c5ad2(0x18e)],'location':_0x3119cf[_0x4c5ad2(0x1ba)]};}}return null;}function hasLegacyProfileFiles(_0x144bc0){const _0x17db96=_0x32d8,_0x18acd4={'HRScg':function(_0x535609,_0x5c3ac2){return _0x535609(_0x5c3ac2);},'WwiVu':function(_0x4ff8a8,_0x44dbc3,_0x282e7d){return _0x4ff8a8(_0x44dbc3,_0x282e7d);},'zBMNW':_0x17db96(0x1b5),'Rdpjh':function(_0x1dda40,_0x407f47,_0x15c2ba){return _0x1dda40(_0x407f47,_0x15c2ba);},'zzaKM':'auth.json.enc'};return _0x18acd4['HRScg'](existsSync,_0x18acd4['WwiVu'](join,_0x144bc0,_0x18acd4['zBMNW']))||_0x18acd4['HRScg'](existsSync,join(_0x144bc0,_0x17db96(0x184)))||existsSync(_0x18acd4[_0x17db96(0x19c)](join,_0x144bc0,_0x18acd4[_0x17db96(0x190)]));}export function isEnvCi(_0x485f0c){const _0x3d58f8={'iSTyN':function(_0x30bdd9,_0x28da23,_0x2324b4,_0x323d92){return _0x30bdd9(_0x28da23,_0x2324b4,_0x323d92);},'xGwPU':function(_0x4ed5fe){return _0x4ed5fe();}};return existsSync(_0x3d58f8['iSTyN'](join,_0x3d58f8['xGwPU'](getRangerDir),'ci',_0x485f0c));}export async function cleanupTempFiles(_0x869faf){const _0x158e39=_0x32d8,_0x2c0621={'TpvJh':function(_0x5496d4,_0x1bf38d){return _0x5496d4!==_0x1bf38d;}},_0x26a36c=[_0x869faf['tempAuthPath'],_0x869faf['configPath']][_0x158e39(0x1a8)](Boolean);await Promise['all'](_0x26a36c['map'](_0xd19ead=>unlink(_0xd19ead)[_0x158e39(0x18d)](_0x583b8e=>{const _0x36241e=_0x158e39;_0x2c0621[_0x36241e(0x1ae)](_0x583b8e['code'],_0x36241e(0x1b9))&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0xd19ead+':',_0x583b8e['message']);})));}export function getSettingsPath(_0x16d297){const _0x2cc095=_0x32d8,_0x13051f={'LISdn':function(_0x584b75,_0x3b845f,_0x18ed78){return _0x584b75(_0x3b845f,_0x18ed78);},'spznN':'settings.json'};return _0x13051f['LISdn'](join,getEnvDir(_0x16d297),_0x13051f[_0x2cc095(0x188)]);}export async function loadSettings(_0x2642d2){const _0x479196={'jVhzj':function(_0x22b84c,_0x369eb3){return _0x22b84c(_0x369eb3);}},_0x5ae4c0=_0x479196['jVhzj'](getSettingsPath,_0x2642d2);if(!existsSync(_0x5ae4c0))return{};try{const _0x4c8e22=await readFile(_0x5ae4c0,'utf-8');return JSON['parse'](_0x4c8e22);}catch{return{};}}export async function saveSettings(_0x1e840d,_0x28b766){const _0x2097e9=_0x32d8,_0x13f557={'MxzhL':function(_0x41f704,_0x46f7b9){return _0x41f704(_0x46f7b9);},'yQnXj':function(_0x2179b9,_0x9e2506,_0x5b0435){return _0x2179b9(_0x9e2506,_0x5b0435);},'Jgepl':function(_0x2a5179,_0x2dfee8,_0x342725){return _0x2a5179(_0x2dfee8,_0x342725);}},_0xd98188=_0x13f557['MxzhL'](getSettingsPath,_0x1e840d),_0x5071b2=dirname(_0xd98188);!existsSync(_0x5071b2)&&await _0x13f557[_0x2097e9(0x17c)](mkdir,_0x5071b2,{'recursive':!![]}),await _0x13f557[_0x2097e9(0x1bd)](writeFile,_0xd98188,JSON['stringify'](_0x28b766,null,0x2));}export function resolveEnvVars(_0x398d22){const _0xd6a9f=_0x32d8,_0xf20c84={'kdPAt':function(_0x57c84e,_0x23bc26){return _0x57c84e===_0x23bc26;},'UXwGq':function(_0x2fe722,_0x38beef){return _0x2fe722===_0x38beef;},'leVya':'object'};if(typeof _0x398d22===_0xd6a9f(0x1a3))return _0x398d22['replace'](/\$\{(\w+)\}/g,(_0x2263dd,_0x36889e)=>{const _0x101379=_0xd6a9f,_0x4ada1c=process['env'][_0x36889e];if(_0xf20c84[_0x101379(0x1a5)](_0x4ada1c,undefined))throw new Error('Environment\x20variable\x20'+_0x36889e+'\x20is\x20not\x20set');return _0x4ada1c;});if(Array['isArray'](_0x398d22))return _0x398d22['map'](resolveEnvVars);if(_0x398d22&&_0xf20c84['UXwGq'](typeof _0x398d22,_0xf20c84['leVya']))return Object[_0xd6a9f(0x1af)](Object['entries'](_0x398d22)[_0xd6a9f(0x194)](([_0x985991,_0x1b0223])=>[_0x985991,resolveEnvVars(_0x1b0223)]));return _0x398d22;}const isRecord=_0x505197=>typeof _0x505197===_0x5945eb(0x198)&&_0x505197!==null&&!Array[_0x5945eb(0x19e)](_0x505197),asRecord=_0xf3a2d2=>isRecord(_0xf3a2d2)?_0xf3a2d2:undefined,mergeHeaders=(_0x1cccee,_0x1fad88)=>{const _0x588414=_0x5945eb,_0x316d5c={'LGoqY':function(_0x202779,_0x2d21f0){return _0x202779??_0x2d21f0;}},_0x4b6a34={..._0x316d5c['LGoqY'](_0x1cccee,{}),..._0x316d5c[_0x588414(0x1b6)](_0x1fad88,{})};return Object['keys'](_0x4b6a34)['length']?_0x4b6a34:undefined;};export function buildBrowserOptionsFromSettings(_0x38ff75,_0x2d7f71={}){const _0x903ff5=_0x5945eb,_0x8d86f4={'zTIWG':function(_0xeb6f15,_0x5017e8){return _0xeb6f15(_0x5017e8);}},_0x5b4233=_0x8d86f4[_0x903ff5(0x1a4)](asRecord,_0x38ff75['browser']),_0x398d39={...asRecord(_0x5b4233?.[_0x903ff5(0x1a7)])??{}};typeof _0x2d7f71[_0x903ff5(0x1b8)]===_0x903ff5(0x1c8)&&(_0x398d39[_0x903ff5(0x1b8)]=_0x2d7f71['headless']);const _0x1165ee={..._0x8d86f4[_0x903ff5(0x1a4)](asRecord,_0x5b4233?.['contextOptions'])??{}};typeof _0x38ff75[_0x903ff5(0x197)]==='string'&&(_0x1165ee[_0x903ff5(0x197)]=_0x38ff75['userAgent']);const _0x43a537=mergeHeaders(asRecord(_0x1165ee[_0x903ff5(0x1cb)]),asRecord(_0x38ff75[_0x903ff5(0x1c3)]));return _0x43a537?_0x1165ee[_0x903ff5(0x1cb)]=_0x43a537:delete _0x1165ee['extraHTTPHeaders'],_0x2d7f71[_0x903ff5(0x1c5)]&&(_0x1165ee['storageState']=_0x2d7f71[_0x903ff5(0x1c5)]),{'launchOptions':_0x398d39,'contextOptions':_0x1165ee};}export async function buildPlaywrightConfig(_0x2ae2d2,_0x48e7d0,_0x10d122,_0x304439){const _0x40730d=_0x5945eb,_0x4caafa={'OyKDf':function(_0x5bbdfb,_0x1883e3){return _0x5bbdfb===_0x1883e3;},'ZSAYg':_0x40730d(0x181),'avawG':_0x40730d(0x17d),'WKlwU':function(_0x2b8b6d,_0x22ba0a){return _0x2b8b6d(_0x22ba0a);},'EsBin':'auth.json.enc','aOXMx':function(_0x34a4c8,_0x12cc0a,_0x3f0f69){return _0x34a4c8(_0x12cc0a,_0x3f0f69);},'azNcA':_0x40730d(0x184),'RZsBL':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','MQQqP':function(_0x582578){return _0x582578();},'RrNcN':function(_0x38f511,_0x3ae9bf){return _0x38f511 instanceof _0x3ae9bf;},'iPhwU':'core','nwZyv':_0x40730d(0x1b3),'VEGOy':_0x40730d(0x196),'RtNym':_0x40730d(0x1bf),'qydVG':function(_0x512625,_0x114c61){return _0x512625===_0x114c61;}},_0x27b46b=_0x4caafa['WKlwU'](getEnvDir,_0x48e7d0),_0x61d82c=join(_0x27b46b,_0x4caafa[_0x40730d(0x1c7)]),_0x23f05e=_0x4caafa['aOXMx'](join,_0x27b46b,_0x4caafa['azNcA']);let _0x4bbe2a,_0x199d87;if(existsSync(_0x61d82c))try{const _0x2fe1fc=await getToken();if(!_0x2fe1fc)throw new Error(_0x4caafa[_0x40730d(0x1b0)]);const _0x8b4fa=await readFile(_0x61d82c),_0xf1635f=_0x4caafa[_0x40730d(0x1c6)](decrypt,_0x8b4fa,_0x2fe1fc);_0x199d87=_0x4caafa['aOXMx'](join,_0x4caafa[_0x40730d(0x1aa)](tmpdir),_0x40730d(0x1a1)+Date[_0x40730d(0x189)]()+'.json'),await writeFile(_0x199d87,_0xf1635f),_0x4bbe2a=_0x199d87;}catch(_0x3476d2){const _0x36a9d7=_0x4caafa[_0x40730d(0x1a9)](_0x3476d2,Error)?_0x3476d2[_0x40730d(0x1b7)]:String(_0x3476d2);throw new Error(_0x40730d(0x182)+_0x36a9d7);}else existsSync(_0x23f05e)&&(_0x4bbe2a=_0x23f05e);const _0x3e46ac=_0x10d122||randomUUID(),_0x8bd610=join(_0x4caafa[_0x40730d(0x1aa)](getRangerDir),_0x40730d(0x1bc),_0x3e46ac),_0xad6b05=Boolean(_0x2ae2d2[_0x40730d(0x19b)]),_0x210a2a=_0xad6b05?{'browserName':'chromium','cdpEndpoint':_0x2ae2d2[_0x40730d(0x19b)]}:((()=>{const _0x4f28a3=_0x40730d,{launchOptions:_0x50c467,contextOptions:_0x169d58}=buildBrowserOptionsFromSettings(_0x2ae2d2,{'headless':_0x304439?![]:_0x2ae2d2[_0x4f28a3(0x1b8)]??!![],'storageStatePath':_0x4bbe2a});return _0x4caafa[_0x4f28a3(0x192)](process['getuid']?.(),0x0)&&(_0x50c467[_0x4f28a3(0x1ab)]=[_0x4caafa['ZSAYg'],_0x4caafa['avawG']]),{'isolated':!![],'browserName':'chromium','launchOptions':_0x50c467,'contextOptions':{..._0x169d58,'permissions':[_0x4f28a3(0x19a),'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x3ce628={'name':_0x48e7d0,'browser':_0x210a2a,'capabilities':[_0x4caafa['iPhwU'],_0x4caafa[_0x40730d(0x1a2)],_0x40730d(0x1a0),_0x4caafa[_0x40730d(0x1c1)],'vision'],'imageResponses':_0x4caafa['RtNym'],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x8bd610};if(!_0xad6b05){const _0x40ac2d=_0x3ce628[_0x40730d(0x1ca)],_0x1f5dfa=_0x40ac2d['contextOptions'];if(_0x4caafa[_0x40730d(0x18a)](_0x1f5dfa[_0x40730d(0x197)],undefined))delete _0x1f5dfa['userAgent'];if(_0x4caafa['qydVG'](_0x1f5dfa[_0x40730d(0x193)],undefined))delete _0x1f5dfa[_0x40730d(0x193)];}const _0x27fa86=join(_0x4caafa['MQQqP'](tmpdir),_0x40730d(0x199));!existsSync(_0x27fa86)&&await mkdir(_0x27fa86,{'recursive':!![]});const _0x2466e0=join(_0x27fa86,_0x48e7d0+'-'+Date['now']()+_0x40730d(0x195));return await _0x4caafa[_0x40730d(0x1c6)](writeFile,_0x2466e0,JSON[_0x40730d(0x17e)](_0x3ce628,null,0x2)),{'configPath':_0x2466e0,'tempAuthPath':_0x199d87};}export function getNestedValue(_0x359ea7,_0x3832be){const _0xab5a0b=_0x5945eb,_0x186d5e={'opsWS':_0xab5a0b(0x198)},_0x363007=parseKeyPath(_0x3832be);let _0x37c106=_0x359ea7;for(const _0x261c4a of _0x363007){if(_0x37c106===null||_0x37c106===undefined||typeof _0x37c106!==_0x186d5e[_0xab5a0b(0x180)])return undefined;_0x37c106=_0x37c106[_0x261c4a];}return _0x37c106;}export function setNestedValue(_0x22201e,_0x4c1747,_0x4d13bb){const _0x120b53=_0x5945eb,_0x20bf0c={'BXEAv':function(_0x2c0658,_0x24f1ab){return _0x2c0658<_0x24f1ab;},'IuTcq':function(_0x50a8e7,_0x4c6819){return _0x50a8e7-_0x4c6819;},'usQnE':function(_0x37b336,_0x1ea23c){return _0x37b336 in _0x1ea23c;},'uwQYd':_0x120b53(0x198),'VrjIK':function(_0x3d23f4,_0x46dba5){return _0x3d23f4-_0x46dba5;}},_0x44009f=parseKeyPath(_0x4c1747);let _0x330f27=_0x22201e;for(let _0x328841=0x0;_0x20bf0c['BXEAv'](_0x328841,_0x20bf0c[_0x120b53(0x1b2)](_0x44009f['length'],0x1));_0x328841++){const _0x32a914=_0x44009f[_0x328841];(!_0x20bf0c['usQnE'](_0x32a914,_0x330f27)||typeof _0x330f27[_0x32a914]!==_0x20bf0c[_0x120b53(0x1a6)])&&(_0x330f27[_0x32a914]={}),_0x330f27=_0x330f27[_0x32a914];}_0x330f27[_0x44009f[_0x20bf0c[_0x120b53(0x1c9)](_0x44009f[_0x120b53(0x18f)],0x1)]]=_0x4d13bb;}export function deleteNestedValue(_0x2a9125,_0x5e6ba4){const _0x208454=_0x5945eb,_0x42b61c={'DYcEf':function(_0x47b6c7,_0x53ea14){return _0x47b6c7===_0x53ea14;},'NTHnc':function(_0x25587b,_0x1c1389){return _0x25587b===_0x1c1389;},'vprPg':function(_0x5ea4d2,_0x259b4c){return _0x5ea4d2!==_0x259b4c;},'zinmz':_0x208454(0x198),'rTLlo':function(_0x29ee19,_0x3260cf){return _0x29ee19-_0x3260cf;}},_0x12af46=parseKeyPath(_0x5e6ba4);let _0x537959=_0x2a9125;for(let _0x40de1f=0x0;_0x40de1f<_0x12af46[_0x208454(0x18f)]-0x1;_0x40de1f++){if(_0x42b61c[_0x208454(0x1cd)](_0x537959,null)||_0x42b61c[_0x208454(0x1cd)](_0x537959,undefined)||typeof _0x537959!==_0x208454(0x198))return![];_0x537959=_0x537959[_0x12af46[_0x40de1f]];}if(_0x537959===null||_0x42b61c['NTHnc'](_0x537959,undefined)||_0x42b61c[_0x208454(0x1cc)](typeof _0x537959,_0x42b61c[_0x208454(0x186)]))return![];const _0x5eeeee=_0x12af46[_0x42b61c['rTLlo'](_0x12af46['length'],0x1)];if(_0x5eeeee in _0x537959)return delete _0x537959[_0x5eeeee],!![];return![];}function parseKeyPath(_0x23da7a){const _0x5544a1=_0x5945eb,_0x4bbec8={'SJtoP':_0x5544a1(0x183),'lWrAt':'headers'},_0x3700f4=_0x23da7a['split']('.');return _0x3700f4[0x0]===_0x4bbec8[_0x5544a1(0x17f)]&&(_0x3700f4[0x0]=_0x4bbec8[_0x5544a1(0x1c4)]),_0x3700f4;}export function formatSettings(_0x2c0d4c,_0x5748df=0x0){const _0x1b03e0=_0x5945eb,_0x2f55f6={'llnMc':function(_0x1061d4,_0x56d5d2){return _0x1061d4===_0x56d5d2;},'lYxPT':function(_0x1f433d,_0x5adb51){return _0x1f433d===_0x5adb51;},'kHNfK':_0x1b03e0(0x198),'PRNLg':function(_0x47d90a,_0x484e68){return _0x47d90a!==_0x484e68;}},_0xe72eb4=[],_0x4c8044='\x20\x20'['repeat'](_0x5748df);for(const [_0x1ee6a1,_0xccc86e]of Object['entries'](_0x2c0d4c)){if(_0x2f55f6[_0x1b03e0(0x19d)](_0xccc86e,undefined))continue;if(_0x2f55f6[_0x1b03e0(0x1bb)](typeof _0xccc86e,_0x2f55f6[_0x1b03e0(0x1ce)])&&_0x2f55f6['PRNLg'](_0xccc86e,null)){_0xe72eb4['push'](''+_0x4c8044+_0x1ee6a1+':');for(const [_0x2170c7,_0x1dceb2]of Object['entries'](_0xccc86e)){_0xe72eb4['push'](_0x4c8044+'\x20\x20'+_0x2170c7+':\x20'+_0x1dceb2);}}else _0xe72eb4['push'](''+_0x4c8044+_0x1ee6a1+':\x20'+_0xccc86e);}return _0xe72eb4[_0x1b03e0(0x17b)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x1d2b10,_0x44ef33){const _0xc108fd=_0x2650,_0x46963f=_0x1d2b10();while(!![]){try{const _0xb7d8ec=-parseInt(_0xc108fd(0xa3))/0x1*(-parseInt(_0xc108fd(0x9c))/0x2)+-parseInt(_0xc108fd(0x9d))/0x3+parseInt(_0xc108fd(0xa0))/0x4*(parseInt(_0xc108fd(0x95))/0x5)+parseInt(_0xc108fd(0xa1))/0x6*(-parseInt(_0xc108fd(0x99))/0x7)+parseInt(_0xc108fd(0xa2))/0x8+parseInt(_0xc108fd(0x96))/0x9*(-parseInt(_0xc108fd(0x9a))/0xa)+-parseInt(_0xc108fd(0x98))/0xb*(-parseInt(_0xc108fd(0x9f))/0xc);if(_0xb7d8ec===_0x44ef33)break;else _0x46963f['push'](_0x46963f['shift']());}catch(_0x34602e){_0x46963f['push'](_0x46963f['shift']());}}}(_0x43e0,0x4c985));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(_0x25e482){const _0x3d0bd2=_0x2650,_0x1e4d13={'yistn':function(_0x46b510,_0x9237fc,_0x5292c5){return _0x46b510(_0x9237fc,_0x5292c5);}},_0x5d013f=join(__dirname,'..','..',_0x3d0bd2(0x9e)),_0x2cd80e=_0x1e4d13[_0x3d0bd2(0x97)](join,_0x5d013f,_0x25e482);try{return readFileSync(_0x2cd80e,'utf-8');}catch{return'';}}function _0x2650(_0x5ccae4,_0x1a4470){_0x5ccae4=_0x5ccae4-0x95;const _0x43e0e6=_0x43e0();let _0x265059=_0x43e0e6[_0x5ccae4];return _0x265059;}export function getRangerSkillContent(){const _0x523f34=_0x2650,_0x5dd4a9={'fcIcp':function(_0x7eb04,_0x36cc58){return _0x7eb04(_0x36cc58);}};return _0x5dd4a9['fcIcp'](readSkillContent,_0x523f34(0x9b));}function _0x43e0(){const _0x556e5e=['748989AMYYpl','yistn','58586Qhmucg','7sNeSYI','60FaKkwK','ranger/SKILL.md','1882ONmRKu','611559AVvNat','skills','240rewUAa','1224WLZrap','253734tyHSBt','2504616QoOWoP','362zEwZTl','4885dWrApY'];_0x43e0=function(){return _0x556e5e;};return _0x43e0();}
1
+ (function(_0x366575,_0x3cf8bd){const _0x5ca4ff=_0x150e,_0x493b47=_0x366575();while(!![]){try{const _0x124d3a=-parseInt(_0x5ca4ff(0xf9))/0x1*(-parseInt(_0x5ca4ff(0x100))/0x2)+parseInt(_0x5ca4ff(0x102))/0x3+parseInt(_0x5ca4ff(0xfc))/0x4+parseInt(_0x5ca4ff(0xfa))/0x5*(-parseInt(_0x5ca4ff(0xff))/0x6)+parseInt(_0x5ca4ff(0xfb))/0x7+-parseInt(_0x5ca4ff(0xf8))/0x8+-parseInt(_0x5ca4ff(0x101))/0x9;if(_0x124d3a===_0x3cf8bd)break;else _0x493b47['push'](_0x493b47['shift']());}catch(_0x22201e){_0x493b47['push'](_0x493b47['shift']());}}}(_0x595a,0x5b799));function _0x150e(_0x4d02a6,_0xc9e8c1){_0x4d02a6=_0x4d02a6-0xf8;const _0x595a31=_0x595a();let _0x150eec=_0x595a31[_0x4d02a6];return _0x150eec;}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(_0x142a03){const _0x4c5193=_0x150e,_0x3f8be0={'dIskm':function(_0x29d834,_0x2b7b6a,_0x4c6cc2,_0x17f987,_0x3f6daa){return _0x29d834(_0x2b7b6a,_0x4c6cc2,_0x17f987,_0x3f6daa);},'LSqJJ':function(_0x30314,_0x40561d,_0x5a77ac){return _0x30314(_0x40561d,_0x5a77ac);},'CZdHA':_0x4c5193(0xfd)},_0x3e8bb6=_0x3f8be0['dIskm'](join,__dirname,'..','..','skills'),_0x241dbc=_0x3f8be0['LSqJJ'](join,_0x3e8bb6,_0x142a03);try{return readFileSync(_0x241dbc,_0x3f8be0[_0x4c5193(0xfe)]);}catch{return'';}}function _0x595a(){const _0x598bfb=['2938796LxWLOK','939412sBAZEv','utf-8','CZdHA','6iqhFvb','2hHnaAC','3175281uayyHN','1757232BfCAMi','4388552yCStuY','571843DHtNfV','2681045nwXCOq'];_0x595a=function(){return _0x598bfb;};return _0x595a();}export function getRangerSkillContent(){const _0x1e3da6={'yvOpX':function(_0x55d775,_0xa2089d){return _0x55d775(_0xa2089d);},'IZieI':'ranger/SKILL.md'};return _0x1e3da6['yvOpX'](readSkillContent,_0x1e3da6['IZieI']);}
@@ -1 +1 @@
1
- const _0x4d8274=_0x37ce;(function(_0x3f7956,_0x1d5ac5){const _0x404fff=_0x37ce,_0x2951a7=_0x3f7956();while(!![]){try{const _0x1f5bdb=parseInt(_0x404fff(0x11b))/0x1*(-parseInt(_0x404fff(0x115))/0x2)+parseInt(_0x404fff(0x10f))/0x3+-parseInt(_0x404fff(0x11e))/0x4+-parseInt(_0x404fff(0x124))/0x5*(parseInt(_0x404fff(0x11a))/0x6)+-parseInt(_0x404fff(0x111))/0x7*(-parseInt(_0x404fff(0x117))/0x8)+parseInt(_0x404fff(0x123))/0x9+-parseInt(_0x404fff(0x113))/0xa;if(_0x1f5bdb===_0x1d5ac5)break;else _0x2951a7['push'](_0x2951a7['shift']());}catch(_0x18383e){_0x2951a7['push'](_0x2951a7['shift']());}}}(_0x5b03,0x7da3e));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';function _0x37ce(_0x23ad1c,_0xc89985){_0x23ad1c=_0x23ad1c-0x105;const _0x5b03f4=_0x5b03();let _0x37ce86=_0x5b03f4[_0x23ad1c];return _0x37ce86;}import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=['ranger'];function _0x5b03(){const _0x51f6e6=['14oRRseF','sbHBO','56JHFyDD','Invalid\x20skill\x20frontmatter','CmnMx','304914LoWWVw','23365PCjQHx','push','log','289980rhAhtv','warn','QJxAY','\x20\x20Location:\x20','\x20\x20Skill\x20not\x20found:\x20','2650419TwONSU','50kwVBHM','utf-8','match','.md','filter','e2e-test-recommender','UDSzL','OzXZA','opencode','endsWith','catch','1597950Drisbc','jraTH','541618etXQaG','SKILL.md','1098970MhMQbs','GXLIA'];_0x5b03=function(){return _0x51f6e6;};return _0x5b03();}export const DEPRECATED_SKILLS=[_0x4d8274(0x109),'bug-bash','feature-tracker'];export async function installSkill(_0x38618b,_0x4451b6={}){const _0x3d2e04=_0x4d8274,_0x1eeccd={'EmVRv':'project','IkFWO':'claude','QJxAY':function(_0x2b1404,_0x48e17b,_0x325004){return _0x2b1404(_0x48e17b,_0x325004);},'GXLIA':function(_0x146321,_0x28a386){return _0x146321(_0x28a386);},'EEDbx':function(_0x2c73d4,_0x304732){return _0x2c73d4&&_0x304732;},'AgJOg':function(_0x1a66ca,_0x1ced7e){return _0x1a66ca===_0x1ced7e;},'rdCzx':function(_0x58ff5a,_0x1681cf){return _0x58ff5a(_0x1681cf);},'CmnMx':function(_0x149cbe,_0x22e1bc){return _0x149cbe(_0x22e1bc);},'jhNyb':'utf-8','tiXfa':function(_0x2ed766,_0x236c35,_0x22e648,_0x2a1c94){return _0x2ed766(_0x236c35,_0x22e648,_0x2a1c94);},'sbHBO':_0x3d2e04(0x112)},{level:level=_0x1eeccd['EmVRv'],cliVersion:_0x191668,platform:platform=_0x1eeccd['IkFWO']}=_0x4451b6,_0x2840ab=getSourceSkillsDir(),_0x1e4de4=join(_0x2840ab,_0x38618b),_0x4b9ff4=_0x1eeccd[_0x3d2e04(0x120)](join,_0x2840ab,_0x38618b+_0x3d2e04(0x107)),_0x2eed26=existsSync(_0x1e4de4)&&_0x1eeccd['GXLIA'](statSync,_0x1e4de4)['isDirectory']()&&_0x1eeccd[_0x3d2e04(0x114)](existsSync,join(_0x1e4de4,'SKILL.md')),_0xd82353=existsSync(_0x4b9ff4);if(_0x1eeccd['EEDbx'](!_0x2eed26,!_0xd82353))return console[_0x3d2e04(0x11f)](_0x3d2e04(0x122)+_0x38618b),![];const _0x14e1f5=_0x1eeccd['AgJOg'](platform,_0x3d2e04(0x10c))?_0x1eeccd['rdCzx'](getOpencodeSkillsDir,level):_0x1eeccd['CmnMx'](getSkillsDir,level),_0xe7468=_0x1eeccd['QJxAY'](join,_0x14e1f5,_0x38618b);await mkdir(_0xe7468,{'recursive':!![]});let _0x14ef18,_0x4362ef=[];if(_0x2eed26){const _0x1a2243=await readdir(_0x1e4de4),_0x98209=_0x1a2243[_0x3d2e04(0x108)](_0xfde81e=>_0xfde81e[_0x3d2e04(0x10d)](_0x3d2e04(0x107)));for(const _0x17be9d of _0x98209){const _0x589758=join(_0x1e4de4,_0x17be9d),_0x277a9f=_0x1eeccd['QJxAY'](join,_0xe7468,_0x17be9d);await copyFile(_0x589758,_0x277a9f),_0x4362ef['push'](_0x17be9d);}_0x14ef18=await _0x1eeccd[_0x3d2e04(0x120)](readFile,join(_0x1e4de4,_0x3d2e04(0x112)),_0x1eeccd['jhNyb']);}else{_0x14ef18=await _0x1eeccd[_0x3d2e04(0x120)](readFile,_0x4b9ff4,_0x3d2e04(0x105));const _0x2a0eba=_0x1eeccd['QJxAY'](join,_0xe7468,_0x3d2e04(0x112));await _0x1eeccd['tiXfa'](writeFile,_0x2a0eba,_0x14ef18,_0x1eeccd['jhNyb']),_0x4362ef[_0x3d2e04(0x11c)](_0x1eeccd[_0x3d2e04(0x116)]);}const {name:_0x402973}=_0x1eeccd[_0x3d2e04(0x119)](parseFrontmatter,_0x14ef18);return console[_0x3d2e04(0x11d)]('\x20\x20Installed\x20skill:\x20'+_0x402973),console[_0x3d2e04(0x11d)](_0x3d2e04(0x121)+_0xe7468),_0x4362ef['length']>0x1&&console[_0x3d2e04(0x11d)]('\x20\x20Files:\x20'+_0x4362ef['join'](',\x20')),_0x1eeccd['tiXfa'](logLocalAgentInstallation,_0x38618b,{'skillDisplayName':_0x402973,'installLevel':level},_0x191668)[_0x3d2e04(0x10e)](()=>{}),!![];}function getSourceSkillsDir(){const _0x5b4e8c={'YIKpb':'skills','xNdJq':function(_0xa7871a,_0x541103){return _0xa7871a(_0x541103);}},_0x2c5f1f=[join(__dirname,'..','..','skills'),join(__dirname,'..','..','..',_0x5b4e8c['YIKpb'])];for(const _0x2e578a of _0x2c5f1f){if(_0x5b4e8c['xNdJq'](existsSync,_0x2e578a))return _0x2e578a;}return _0x2c5f1f[0x0];}function parseFrontmatter(_0x143f42){const _0x41b2d7=_0x4d8274,_0x29451d={'UDSzL':_0x41b2d7(0x118)},_0x535d1e=_0x143f42['match'](/^---\n([\s\S]+?)\n---/);if(!_0x535d1e)throw new Error(_0x29451d[_0x41b2d7(0x10a)]);const _0x10240d=_0x535d1e[0x1],_0x27809c=_0x10240d['match'](/name:\s*(.+)/),_0x5b95d9=_0x10240d[_0x41b2d7(0x106)](/description:\s*"?(.+?)"?\n/);return{'name':_0x27809c?.[0x1]['trim']()||'','description':_0x5b95d9?.[0x1]['trim']()||''};}export async function removeSkill(_0x174c4c,_0x47788c){const _0x5b3717=_0x4d8274,_0x5ebec0={'vhLEt':function(_0x262fba,_0x73263,_0x4ce808){return _0x262fba(_0x73263,_0x4ce808);},'OzXZA':function(_0x34164a,_0x5b69d0){return _0x34164a(_0x5b69d0);},'jraTH':function(_0x103eea,_0x3ea8ac,_0x1e1805){return _0x103eea(_0x3ea8ac,_0x1e1805);}},_0x3badd5=getSkillsDir(_0x47788c),_0x35ea80=_0x5ebec0['vhLEt'](join,_0x3badd5,_0x174c4c);if(!_0x5ebec0[_0x5b3717(0x10b)](existsSync,_0x35ea80))return![];try{return await _0x5ebec0[_0x5b3717(0x110)](rm,_0x35ea80,{'recursive':!![]}),console[_0x5b3717(0x11d)]('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x174c4c),!![];}catch{return console[_0x5b3717(0x11f)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x174c4c),![];}}
1
+ function _0x39bd(){const _0x19b6aa=['sLAXt','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','SKILL.md','8379216LWTIQj','.md','log','GpOHk','129962bHXpXt','gBPjz','\x20\x20Removed\x20deprecated\x20skill:\x20','utf-8','e2e-test-recommender','7CJKOHk','HEEnr','520IKqxUK','ZjPhx','\x20\x20Installed\x20skill:\x20','\x20\x20Location:\x20','30IhcWLB','dAclI','2361070DmoaPC','lYGfb','project','skills','push','trim','18789kTbkSL','\x20\x20Files:\x20','4677630frYAXv','667060fLVWDF','BwoVU','PHZHi','match','warn','VkxuB','7356336nckRJS'];_0x39bd=function(){return _0x19b6aa;};return _0x39bd();}const _0x22feff=_0x3c4d;(function(_0x292dc2,_0x4869b7){const _0x2a18ea=_0x3c4d,_0x5c2727=_0x292dc2();while(!![]){try{const _0x1f02ac=parseInt(_0x2a18ea(0x10b))/0x1+parseInt(_0x2a18ea(0x119))/0x2+-parseInt(_0x2a18ea(0x12c))/0x3*(parseInt(_0x2a18ea(0x120))/0x4)+-parseInt(_0x2a18ea(0x126))/0x5+-parseInt(_0x2a18ea(0x10a))/0x6*(parseInt(_0x2a18ea(0x11e))/0x7)+-parseInt(_0x2a18ea(0x111))/0x8+-parseInt(_0x2a18ea(0x115))/0x9*(-parseInt(_0x2a18ea(0x124))/0xa);if(_0x1f02ac===_0x4869b7)break;else _0x5c2727['push'](_0x5c2727['shift']());}catch(_0x58d58f){_0x5c2727['push'](_0x5c2727['shift']());}}}(_0x39bd,0x83baa));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';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=['ranger'];export const DEPRECATED_SKILLS=[_0x22feff(0x11d),'bug-bash','feature-tracker'];export async function installSkill(_0x4926c3,_0x28d9a4={}){const _0x43edcf=_0x22feff,_0xd95a68={'mcCbx':function(_0xe4a366){return _0xe4a366();},'HrOzT':function(_0x3bbf8a,_0x1d8dae,_0x2b5abb){return _0x3bbf8a(_0x1d8dae,_0x2b5abb);},'sLAXt':function(_0x6cbe62,_0x2a755f){return _0x6cbe62(_0x2a755f);},'lYGfb':function(_0x32b2e1,_0x5e857e,_0x2420fd){return _0x32b2e1(_0x5e857e,_0x2420fd);},'dAclI':function(_0x1e66d8,_0x154e83){return _0x1e66d8&&_0x154e83;},'gBPjz':'opencode','BwoVU':_0x43edcf(0x11c),'dATlU':function(_0xde3d61,_0x217a10,_0x254610){return _0xde3d61(_0x217a10,_0x254610);},'lMlOf':_0x43edcf(0x114),'ZjPhx':function(_0x352d93,_0x35a677,_0x199528,_0x479c67){return _0x352d93(_0x35a677,_0x199528,_0x479c67);}},{level:level=_0x43edcf(0x128),cliVersion:_0x2d9c8d,platform:platform='claude'}=_0x28d9a4,_0x4be27a=_0xd95a68['mcCbx'](getSourceSkillsDir),_0xc860eb=join(_0x4be27a,_0x4926c3),_0x5a73e6=_0xd95a68['HrOzT'](join,_0x4be27a,_0x4926c3+_0x43edcf(0x116)),_0x1f9b12=existsSync(_0xc860eb)&&statSync(_0xc860eb)['isDirectory']()&&_0xd95a68[_0x43edcf(0x112)](existsSync,_0xd95a68['lYGfb'](join,_0xc860eb,_0x43edcf(0x114))),_0x537e3e=existsSync(_0x5a73e6);if(_0xd95a68[_0x43edcf(0x125)](!_0x1f9b12,!_0x537e3e))return console[_0x43edcf(0x10f)]('\x20\x20Skill\x20not\x20found:\x20'+_0x4926c3),![];const _0x7a21cd=platform===_0xd95a68[_0x43edcf(0x11a)]?getOpencodeSkillsDir(level):getSkillsDir(level),_0x6cc24=_0xd95a68[_0x43edcf(0x127)](join,_0x7a21cd,_0x4926c3);await mkdir(_0x6cc24,{'recursive':!![]});let _0x455abf,_0x240b02=[];if(_0x1f9b12){const _0x363841=await readdir(_0xc860eb),_0x2a840b=_0x363841['filter'](_0x313fcf=>_0x313fcf['endsWith']('.md'));for(const _0x934655 of _0x2a840b){const _0x5a500e=join(_0xc860eb,_0x934655),_0x408ce6=join(_0x6cc24,_0x934655);await copyFile(_0x5a500e,_0x408ce6),_0x240b02[_0x43edcf(0x12a)](_0x934655);}_0x455abf=await readFile(join(_0xc860eb,_0x43edcf(0x114)),_0xd95a68['BwoVU']);}else{_0x455abf=await _0xd95a68['dATlU'](readFile,_0x5a73e6,_0x43edcf(0x11c));const _0x1fdeca=join(_0x6cc24,'SKILL.md');await writeFile(_0x1fdeca,_0x455abf,_0xd95a68[_0x43edcf(0x10c)]),_0x240b02[_0x43edcf(0x12a)](_0xd95a68['lMlOf']);}const {name:_0x17d729}=parseFrontmatter(_0x455abf);return console['log'](_0x43edcf(0x122)+_0x17d729),console[_0x43edcf(0x117)](_0x43edcf(0x123)+_0x6cc24),_0x240b02['length']>0x1&&console['log'](_0x43edcf(0x12d)+_0x240b02['join'](',\x20')),_0xd95a68[_0x43edcf(0x121)](logLocalAgentInstallation,_0x4926c3,{'skillDisplayName':_0x17d729,'installLevel':level},_0x2d9c8d)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x4b1f6d=_0x22feff,_0x4a257c={'kuSPv':function(_0x5077d3,_0xdc02bb,_0x40fa8a,_0x2aab5a,_0x4406c4){return _0x5077d3(_0xdc02bb,_0x40fa8a,_0x2aab5a,_0x4406c4);},'EYUhx':'skills','HEEnr':function(_0x5b98a0,_0x2d26f4){return _0x5b98a0(_0x2d26f4);}},_0x18f06d=[_0x4a257c['kuSPv'](join,__dirname,'..','..',_0x4b1f6d(0x129)),join(__dirname,'..','..','..',_0x4a257c['EYUhx'])];for(const _0x4f94a1 of _0x18f06d){if(_0x4a257c[_0x4b1f6d(0x11f)](existsSync,_0x4f94a1))return _0x4f94a1;}return _0x18f06d[0x0];}function _0x3c4d(_0x1ad0cf,_0x2de768){_0x1ad0cf=_0x1ad0cf-0x10a;const _0x39bdd5=_0x39bd();let _0x3c4d56=_0x39bdd5[_0x1ad0cf];return _0x3c4d56;}function parseFrontmatter(_0x5c447a){const _0x1b9fc7=_0x22feff,_0x5b5fbb={'VkxuB':'Invalid\x20skill\x20frontmatter'},_0x45d08f=_0x5c447a['match'](/^---\n([\s\S]+?)\n---/);if(!_0x45d08f)throw new Error(_0x5b5fbb[_0x1b9fc7(0x110)]);const _0xd9a817=_0x45d08f[0x1],_0x52ca1c=_0xd9a817['match'](/name:\s*(.+)/),_0x1142ae=_0xd9a817[_0x1b9fc7(0x10e)](/description:\s*"?(.+?)"?\n/);return{'name':_0x52ca1c?.[0x1]['trim']()||'','description':_0x1142ae?.[0x1][_0x1b9fc7(0x12b)]()||''};}export async function removeSkill(_0x18da54,_0x397728){const _0xe4efc4=_0x22feff,_0x589f67={'phAIm':function(_0x26eae9,_0x4bd9e3){return _0x26eae9(_0x4bd9e3);},'GpOHk':function(_0x434a3d,_0x4cb33e){return _0x434a3d(_0x4cb33e);},'PHZHi':function(_0x4d6a03,_0xb8ed81,_0x26f285){return _0x4d6a03(_0xb8ed81,_0x26f285);}},_0x10132c=_0x589f67['phAIm'](getSkillsDir,_0x397728),_0x4fab6e=join(_0x10132c,_0x18da54);if(!_0x589f67[_0xe4efc4(0x118)](existsSync,_0x4fab6e))return![];try{return await _0x589f67[_0xe4efc4(0x10d)](rm,_0x4fab6e,{'recursive':!![]}),console[_0xe4efc4(0x117)](_0xe4efc4(0x11b)+_0x18da54),!![];}catch{return console[_0xe4efc4(0x10f)](_0xe4efc4(0x113)+_0x18da54),![];}}
@@ -1 +1 @@
1
- const _0x4271b2=_0x2e72;(function(_0x148ee9,_0x2b0a36){const _0x45f0a9=_0x2e72,_0x174f99=_0x148ee9();while(!![]){try{const _0x109ca9=parseInt(_0x45f0a9(0x1d4))/0x1*(parseInt(_0x45f0a9(0x206))/0x2)+parseInt(_0x45f0a9(0x1dc))/0x3*(-parseInt(_0x45f0a9(0x1f3))/0x4)+parseInt(_0x45f0a9(0x1ba))/0x5*(parseInt(_0x45f0a9(0x1c1))/0x6)+-parseInt(_0x45f0a9(0x1c9))/0x7*(-parseInt(_0x45f0a9(0x1f1))/0x8)+-parseInt(_0x45f0a9(0x1f4))/0x9+parseInt(_0x45f0a9(0x1d8))/0xa+-parseInt(_0x45f0a9(0x1fd))/0xb;if(_0x109ca9===_0x2b0a36)break;else _0x174f99['push'](_0x174f99['shift']());}catch(_0x18cd95){_0x174f99['push'](_0x174f99['shift']());}}}(_0xe28e,0xc8cd0));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(_0x6588b1,_0x527d6a){const _0x391f43=_0x2e72,_0x40ff09={'jjMsh':function(_0x5095bf,_0x5ad338){return _0x5095bf&_0x5ad338;},'ZpILT':function(_0xee10c6,_0x9768f7){return _0xee10c6>_0x9768f7;},'OnvUq':function(_0x1a0ae7,_0x2fc27a){return _0x1a0ae7+_0x2fc27a;},'GSfSN':function(_0x33e33b,_0x41c6ef){return _0x33e33b-_0x41c6ef;},'lAZtp':function(_0x482eff,_0x2b8baf){return _0x482eff*_0x2b8baf;}};if(_0x527d6a>=_0x6588b1[_0x391f43(0x1e1)])return[0x0,0x0];const _0x13738e=_0x6588b1[_0x527d6a];let _0x424a59=0x1,_0x42a6fc=0x80;while(_0x424a59<=0x8&&!_0x40ff09['jjMsh'](_0x13738e,_0x42a6fc)){_0x424a59++,_0x42a6fc>>=0x1;}if(_0x40ff09['ZpILT'](_0x40ff09['OnvUq'](_0x527d6a,_0x424a59),_0x6588b1['length']))return[0x0,0x0];let _0x1f5c78=_0x13738e&_0x40ff09[_0x391f43(0x1cf)](_0x42a6fc,0x1);for(let _0x42537c=0x1;_0x42537c<_0x424a59;_0x42537c++){_0x1f5c78=_0x40ff09[_0x391f43(0x1cc)](_0x40ff09[_0x391f43(0x1ee)](_0x1f5c78,0x100),_0x6588b1[_0x40ff09['OnvUq'](_0x527d6a,_0x42537c)]);}return[_0x1f5c78,_0x424a59];}function readId(_0x567485,_0x451608){const _0x312b4c=_0x2e72,_0x554ed2={'BZQCi':function(_0x3c7f49,_0x5ca3b7){return _0x3c7f49>=_0x5ca3b7;},'bTCDH':function(_0x164d98,_0x9595a){return _0x164d98<_0x9595a;},'nuJkf':function(_0x5cfd8b,_0x45bac8){return _0x5cfd8b+_0x45bac8;}};if(_0x554ed2['BZQCi'](_0x451608,_0x567485[_0x312b4c(0x1e1)]))return[0x0,0x0];const _0x77914d=_0x567485[_0x451608];let _0x52cfc1;if(_0x77914d>=0x80)_0x52cfc1=0x1;else{if(_0x77914d>=0x40)_0x52cfc1=0x2;else{if(_0x554ed2[_0x312b4c(0x1d3)](_0x77914d,0x20))_0x52cfc1=0x3;else{if(_0x77914d>=0x10)_0x52cfc1=0x4;else return[_0x77914d,0x1];}}}if(_0x451608+_0x52cfc1>_0x567485['length'])return[0x0,0x0];let _0x3235d0=0x0;for(let _0x51d364=0x0;_0x554ed2['bTCDH'](_0x51d364,_0x52cfc1);_0x51d364++){_0x3235d0=_0x554ed2[_0x312b4c(0x1e9)](_0x3235d0*0x100,_0x567485[_0x554ed2[_0x312b4c(0x1e9)](_0x451608,_0x51d364)]);}return[_0x3235d0,_0x52cfc1];}function readUint(_0x185a82,_0x3b720e,_0x4ef97a){const _0x35b5ac=_0x2e72,_0x4bf2bb={'LdQON':function(_0x450e4f,_0x2d6f53){return _0x450e4f<_0x2d6f53;},'kdfhw':function(_0x3ebae9,_0x29823d){return _0x3ebae9+_0x29823d;}};let _0x58eb79=0x0;for(let _0x50a60f=0x0;_0x4bf2bb['LdQON'](_0x50a60f,_0x4ef97a);_0x50a60f++){_0x58eb79=_0x58eb79*0x100+_0x185a82[_0x4bf2bb[_0x35b5ac(0x1be)](_0x3b720e,_0x50a60f)];}return _0x58eb79;}function isUnknownSize(_0x1700e3,_0x29aae3){const _0x1d9f08=_0x2e72,_0x459d94={'QWEdA':function(_0x33f5b0,_0x4b9251){return _0x33f5b0===_0x4b9251;},'lLsWH':function(_0x3d7bc8,_0x126d9b){return _0x3d7bc8*_0x126d9b;}};return _0x459d94[_0x1d9f08(0x1e3)](_0x1700e3,Math['pow'](0x2,_0x459d94['lLsWH'](0x7,_0x29aae3))-0x1);}function _0x2e72(_0x4933ab,_0x4a0992){_0x4933ab=_0x4933ab-0x1b9;const _0xe28eee=_0xe28e();let _0x2e724c=_0xe28eee[_0x4933ab];return _0x2e724c;}function writeVint(_0x2c7596,_0x5258dc){const _0x24d2cf=_0x2e72,_0x541075={'JjpSf':function(_0x36b7fe,_0x3ce6c8){return _0x36b7fe<_0x3ce6c8;},'KyACo':function(_0x2a89f1,_0x2d8ffd){return _0x2a89f1-_0x2d8ffd;},'wyoHm':function(_0x4e2866,_0x9460ba){return _0x4e2866&_0x9460ba;},'xajdN':function(_0x32f282,_0x4b3867){return _0x32f282-_0x4b3867;}};let _0x181a91=_0x5258dc||0x1;while(_0x541075[_0x24d2cf(0x1e6)](_0x541075['KyACo'](Math[_0x24d2cf(0x209)](0x2,0x7*_0x181a91),0x2),_0x2c7596))_0x181a91++;const _0x2b6d69=Buffer['alloc'](_0x181a91);for(let _0x280a8a=_0x541075['KyACo'](_0x181a91,0x1);_0x280a8a>=0x0;_0x280a8a--){_0x2b6d69[_0x280a8a]=_0x541075['wyoHm'](_0x2c7596,0xff),_0x2c7596=Math['floor'](_0x2c7596/0x100);}return _0x2b6d69[0x0]|=0x1<<_0x541075['xajdN'](0x8,_0x181a91),_0x2b6d69;}function writeUint(_0x1bbd9e,_0x3dc20d){const _0x57fd93=_0x2e72,_0x32f847={'kLtCI':function(_0x744a13,_0x230bf3){return _0x744a13>=_0x230bf3;},'OnHBa':function(_0x5a24d7,_0xc5531c){return _0x5a24d7&_0xc5531c;},'WCLaA':function(_0x38eb97,_0x107e0a){return _0x38eb97/_0x107e0a;}},_0x1ebfc3=Buffer[_0x57fd93(0x1d6)](_0x3dc20d);for(let _0x57c0b7=_0x3dc20d-0x1;_0x32f847['kLtCI'](_0x57c0b7,0x0);_0x57c0b7--){_0x1ebfc3[_0x57c0b7]=_0x32f847['OnHBa'](_0x1bbd9e,0xff),_0x1bbd9e=Math[_0x57fd93(0x1c8)](_0x32f847['WCLaA'](_0x1bbd9e,0x100));}return _0x1ebfc3;}function writeUnknownSizeVint(_0x3308bc){const _0x31a4ce=_0x2e72,_0x4b89d0={'dpNNG':function(_0x4182ad,_0xb8fa75){return _0x4182ad>>_0xb8fa75;},'PpUbf':function(_0x519fe1,_0x2cbf17){return _0x519fe1-_0x2cbf17;}},_0x44c048=Buffer[_0x31a4ce(0x1d6)](_0x3308bc,0xff);return _0x44c048[0x0]=_0x4b89d0[_0x31a4ce(0x1fb)](0xff,_0x4b89d0['PpUbf'](_0x3308bc,0x1)),_0x44c048;}function uintSize(_0x39dea2){const _0x486610=_0x2e72,_0x59c977={'GLZyo':function(_0xe6ecb7,_0x43352e){return _0xe6ecb7>_0x43352e;}};if(_0x39dea2===0x0)return 0x1;let _0xc93f3c=0x0,_0x1a5dc3=_0x39dea2;while(_0x59c977[_0x486610(0x1fe)](_0x1a5dc3,0x0)){_0xc93f3c++,_0x1a5dc3=Math[_0x486610(0x1c8)](_0x1a5dc3/0x100);}return _0xc93f3c;}function _0xe28e(){const _0x582b50=['zfnfh','axBkC','4440XGGQGW','log','4192Fstoum','6311628TxXxRK','GWRAj','eeGul','NkXmV','ovmZX','dXXnA','hvVfw','dpNNG','copy','5859887TGXCGN','GLZyo','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','FSNUk','mHcmm','indexOf','OhICo','slice','readInt16BE','34270wbNwCx','pGZtk','fXDzq','pow','VFpOl','175QUkZDw','sKpdY','cTkCv','clusters','kdfhw','FMurC','NlAHI','277734qBIkCo','Phxiv','push','timestamp','gOcpM','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','stitchWebmFiles.js','floor','6461MXocxv','UedIK','stitchWebmFiles.ts','OnvUq','endsWith','exit','GSfSN','ybzDq','pHRSp','NFgQH','BZQCi','17YmPlFA','max','alloc','min','11681340iBScWy','mTvyW','argv','bodyAfterTimestamp','4395SQbhAV','NdYJe','FAZwY','BClQY','PqUhF','length','HtqHs','QWEdA','concat','LOgnA','JjpSf','maxTimestampTicks','XDKXB','nuJkf','error','JvgfA','TuZeV','DbwGF','lAZtp'];_0xe28e=function(){return _0x582b50;};return _0xe28e();}function findTimestampScale(_0x244d88,_0x2454dc){const _0xc23a72=_0x2e72,_0x1473cf={'VioSN':function(_0x16428d,_0x543db7){return _0x16428d+_0x543db7;},'xCMRv':function(_0x4a6209,_0x359e22,_0x921397){return _0x4a6209(_0x359e22,_0x921397);},'FMurC':function(_0xd0cedb,_0x3a600f,_0x16cd3c){return _0xd0cedb(_0x3a600f,_0x16cd3c);},'Lvhcw':function(_0x62e9ea,_0x57c8c0){return _0x62e9ea+_0x57c8c0;},'AgyJf':function(_0x54cb21,_0x1510f3){return _0x54cb21===_0x1510f3;},'TuZeV':function(_0x5ba762,_0x29deab){return _0x5ba762+_0x29deab;},'GYfdU':function(_0x1f0f1d,_0x3d0ff6){return _0x1f0f1d+_0x3d0ff6;},'BClQY':function(_0x4fa716,_0x1df52a){return _0x4fa716+_0x1df52a;},'pztfW':function(_0x39cc72,_0x1ea095){return _0x39cc72+_0x1ea095;},'FAZwY':function(_0x3510d9,_0x2c3d2b){return _0x3510d9===_0x2c3d2b;},'ffHHx':function(_0x33ae33,_0x3ad114){return _0x33ae33+_0x3ad114;},'NdYJe':function(_0x251866,_0x199465){return _0x251866+_0x199465;},'LefGQ':function(_0x3081d2,_0x9d8d29){return _0x3081d2+_0x9d8d29;},'NFgQH':function(_0x461f3f,_0x474145){return _0x461f3f+_0x474145;}};let _0x24e08c=_0x2454dc;const _0x1eda98=Math[_0xc23a72(0x1d7)](_0x244d88[_0xc23a72(0x1e1)],_0x1473cf['VioSN'](_0x2454dc,0x2710));while(_0x24e08c<_0x1eda98){const [_0x2995bd,_0x937e49]=_0x1473cf['xCMRv'](readId,_0x244d88,_0x24e08c),[_0x96aabd,_0x50af63]=_0x1473cf[_0xc23a72(0x1bf)](readVint,_0x244d88,_0x1473cf['Lvhcw'](_0x24e08c,_0x937e49));if(_0x1473cf['AgyJf'](_0x2995bd,ID_INFO)){let _0x3f8c85=_0x1473cf[_0xc23a72(0x1ec)](_0x1473cf['GYfdU'](_0x24e08c,_0x937e49),_0x50af63);const _0x334e1d=_0x1473cf[_0xc23a72(0x1df)](_0x3f8c85,_0x96aabd);while(_0x3f8c85<_0x334e1d){const [_0x258372,_0x51f20c]=readId(_0x244d88,_0x3f8c85),[_0x547940,_0x522c2f]=readVint(_0x244d88,_0x1473cf['pztfW'](_0x3f8c85,_0x51f20c));if(_0x1473cf[_0xc23a72(0x1de)](_0x258372,ID_TIMESTAMP_SCALE))return readUint(_0x244d88,_0x1473cf['ffHHx'](_0x1473cf['Lvhcw'](_0x3f8c85,_0x51f20c),_0x522c2f),_0x547940);_0x3f8c85+=_0x1473cf[_0xc23a72(0x1dd)](_0x51f20c+_0x522c2f,_0x547940);}break;}if(_0x2995bd===ID_CLUSTER)break;if(_0x1473cf['xCMRv'](isUnknownSize,_0x96aabd,_0x50af63))break;_0x24e08c+=_0x1473cf['LefGQ'](_0x1473cf[_0xc23a72(0x1d2)](_0x937e49,_0x50af63),_0x96aabd);}return 0xf4240;}function findFirstClusterOffset(_0xff40e2,_0x30fbed){const _0x141a10=_0x2e72,_0x20b121={'FccRh':function(_0x469685,_0x594a91,_0x2d8a98){return _0x469685(_0x594a91,_0x2d8a98);},'sEbHb':function(_0x230178,_0x22c545,_0x217d2f){return _0x230178(_0x22c545,_0x217d2f);}};let _0x2e186a=_0x30fbed;while(_0x2e186a<_0xff40e2['length']){const [_0x418a6b,_0x1de8df]=_0x20b121['FccRh'](readId,_0xff40e2,_0x2e186a);if(_0x418a6b===ID_CLUSTER)return _0x2e186a;const [_0x135299,_0x596bec]=_0x20b121['sEbHb'](readVint,_0xff40e2,_0x2e186a+_0x1de8df);if(_0x20b121['FccRh'](isUnknownSize,_0x135299,_0x596bec))return _0x2e186a;_0x2e186a+=_0x1de8df+_0x596bec+_0x135299;}return _0xff40e2[_0x141a10(0x1e1)];}function findClusterEnd(_0x4cdf27,_0x4c6082,_0x45acb6,_0x20b8b0){const _0x50c671=_0x2e72,_0x2d8540={'dXXnA':function(_0x47cfd9,_0x15608a,_0x8361c3){return _0x47cfd9(_0x15608a,_0x8361c3);},'HtqHs':function(_0x5748cf,_0x356c48){return _0x5748cf<_0x356c48;},'DUsRv':function(_0x37759f,_0xb23609,_0x105517){return _0x37759f(_0xb23609,_0x105517);},'mTvyW':function(_0x1262c4,_0x3baaa8){return _0x1262c4+_0x3baaa8;},'JvgfA':function(_0x328cb0,_0x329283){return _0x328cb0+_0x329283;}};if(!_0x2d8540[_0x50c671(0x1f9)](isUnknownSize,_0x45acb6,_0x20b8b0))return _0x4c6082+_0x45acb6;const _0x43ef1d=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x2a00c8=_0x4c6082;while(_0x2d8540[_0x50c671(0x1e2)](_0x2a00c8,_0x4cdf27['length']-0x4)){const [_0x5ad7d3,_0x14ed90]=_0x2d8540['DUsRv'](readId,_0x4cdf27,_0x2a00c8);if(_0x43ef1d['has'](_0x5ad7d3))return _0x2a00c8;const [_0x2327b2,_0x4ef444]=readVint(_0x4cdf27,_0x2d8540[_0x50c671(0x1d9)](_0x2a00c8,_0x14ed90));if(isUnknownSize(_0x2327b2,_0x4ef444))return _0x4cdf27[_0x50c671(0x1e1)];_0x2a00c8+=_0x2d8540['JvgfA'](_0x2d8540[_0x50c671(0x1eb)](_0x14ed90,_0x4ef444),_0x2327b2);}return _0x4cdf27['length'];}function extractClusters(_0x57b37c,_0x534750){const _0x40ba9c=_0x2e72,_0x1d2df0={'cTkCv':function(_0x1cff41,_0x1ab56a){return _0x1cff41===_0x1ab56a;},'KvRzY':function(_0x4babf5,_0x3f5b4b,_0x4b6926){return _0x4babf5(_0x3f5b4b,_0x4b6926);},'GWRAj':function(_0x1e9963,_0x53bb4b){return _0x1e9963+_0x53bb4b;},'NkXmV':function(_0x3ad836,_0x5edb32,_0x1f2343){return _0x3ad836(_0x5edb32,_0x1f2343);},'zfnfh':function(_0x1196be,_0x5e1322){return _0x1196be+_0x5e1322;},'UedIK':function(_0x297579,_0x31a06a){return _0x297579+_0x31a06a;},'VFpOl':function(_0x2df243,_0x449e71){return _0x2df243+_0x449e71;},'NlAHI':function(_0x360fa1,_0x3c0c14){return _0x360fa1===_0x3c0c14;},'LOgnA':function(_0x595cfd,_0x627f4e){return _0x595cfd<_0x627f4e;},'kPKLF':function(_0x3eb4af,_0x1d54e5){return _0x3eb4af+_0x1d54e5;},'fXDzq':function(_0x52dad2,_0x1f0b3f){return _0x52dad2>=_0x1f0b3f;},'pGZtk':function(_0x1bbf4d,_0x5882c7){return _0x1bbf4d>_0x5882c7;}},_0xd7d96d=[],_0x593afb=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x1f7696=0x0;while(_0x1f7696<_0x57b37c['length']){const _0x269a23=_0x57b37c[_0x40ba9c(0x202)](_0x593afb,_0x1f7696);if(_0x1d2df0['cTkCv'](_0x269a23,-0x1))break;const [_0x314e88,_0xa0aab]=_0x1d2df0['KvRzY'](readId,_0x57b37c,_0x269a23);if(_0x314e88!==ID_CLUSTER){_0x1f7696=_0x1d2df0[_0x40ba9c(0x1f5)](_0x269a23,0x1);continue;}const [_0x69ced,_0x199cb5]=readVint(_0x57b37c,_0x269a23+_0xa0aab),_0x4bc3f0=_0x1d2df0['GWRAj'](_0x269a23,_0xa0aab)+_0x199cb5,_0x406c4b=findClusterEnd(_0x57b37c,_0x4bc3f0,_0x69ced,_0x199cb5);let _0xd651ee=_0x4bc3f0,_0x1aff3a=0x0,_0x1d238a=0x2,_0x4126c7=![],_0x3838e6=Buffer[_0x40ba9c(0x1d6)](0x0),_0x17c376=Buffer['alloc'](0x0);while(_0xd651ee<_0x406c4b){const [_0xcb419a,_0x252adc]=readId(_0x57b37c,_0xd651ee),[_0x4ba299,_0x4dc158]=_0x1d2df0[_0x40ba9c(0x1f7)](readVint,_0x57b37c,_0xd651ee+_0x252adc);if(_0xcb419a===ID_TIMESTAMP){_0x1aff3a=readUint(_0x57b37c,_0x1d2df0['zfnfh'](_0xd651ee+_0x252adc,_0x4dc158),_0x4ba299),_0x1d238a=_0x4ba299,_0x4126c7=!![],_0x3838e6=_0x57b37c[_0x40ba9c(0x204)](_0x4bc3f0,_0xd651ee);const _0x5505aa=_0x1d2df0['GWRAj'](_0x1d2df0['UedIK'](_0x1d2df0[_0x40ba9c(0x1b9)](_0xd651ee,_0x252adc),_0x4dc158),_0x4ba299);_0x17c376=_0x57b37c[_0x40ba9c(0x204)](_0x5505aa,_0x406c4b);break;}if(_0x1d2df0[_0x40ba9c(0x1c0)](_0xcb419a,ID_CLUSTER))break;if(isUnknownSize(_0x4ba299,_0x4dc158))break;_0xd651ee+=_0x1d2df0[_0x40ba9c(0x1ca)](_0x1d2df0[_0x40ba9c(0x1f5)](_0x252adc,_0x4dc158),_0x4ba299);}!_0x4126c7&&(_0x17c376=_0x57b37c['slice'](_0x4bc3f0,_0x406c4b));let _0x55df16=_0x1aff3a;_0xd651ee=_0x4bc3f0;while(_0x1d2df0[_0x40ba9c(0x1e5)](_0xd651ee,_0x406c4b)){const [_0x4a7f9e,_0x4ff482]=readId(_0x57b37c,_0xd651ee),[_0x2d23ce,_0x4ed707]=readVint(_0x57b37c,_0x1d2df0['kPKLF'](_0xd651ee,_0x4ff482));if(_0x4a7f9e===ID_SIMPLE_BLOCK&&_0x1d2df0[_0x40ba9c(0x208)](_0x2d23ce,0x4)){const _0x3143b3=_0xd651ee+_0x4ff482+_0x4ed707,[,_0x4a9b32]=readVint(_0x57b37c,_0x3143b3),_0x1ff783=_0x57b37c[_0x40ba9c(0x205)](_0x1d2df0[_0x40ba9c(0x1b9)](_0x3143b3,_0x4a9b32)),_0x3c55fe=_0x1aff3a+_0x1ff783;if(_0x1d2df0[_0x40ba9c(0x207)](_0x3c55fe,_0x55df16))_0x55df16=_0x3c55fe;}if(_0x1d2df0[_0x40ba9c(0x1bc)](_0x4a7f9e,ID_CLUSTER))break;if(isUnknownSize(_0x2d23ce,_0x4ed707))break;_0xd651ee+=_0x1d2df0[_0x40ba9c(0x1ef)](_0x1d2df0[_0x40ba9c(0x1ca)](_0x4ff482,_0x4ed707),_0x2d23ce);}_0xd7d96d[_0x40ba9c(0x1c3)]({'timestamp':_0x1aff3a,'maxTicks':_0x55df16,'bodyBeforeTimestamp':_0x3838e6,'bodyAfterTimestamp':_0x17c376,'timestampElementSize':_0x1d238a}),_0x1f7696=_0x406c4b;}return _0xd7d96d;}function parseWebm(_0x59c9f8){const _0x5b4b6d=_0x2e72,_0x471da4={'OhICo':function(_0x469e9b,_0x27f00f,_0x5184ae){return _0x469e9b(_0x27f00f,_0x5184ae);},'DbwGF':function(_0x2477b7,_0x224aaf){return _0x2477b7+_0x224aaf;},'ncThQ':function(_0x5a9843,_0x205492){return _0x5a9843+_0x205492;},'uNoWi':function(_0x40d199,_0x397305){return _0x40d199+_0x397305;},'cTZMT':function(_0x46b0ff,_0x393aba){return _0x46b0ff+_0x393aba;},'XDKXB':function(_0x36cebe,_0x36a465,_0x4011f5){return _0x36cebe(_0x36a465,_0x4011f5);},'PqUhF':function(_0x2ceabe,_0xdc01fe,_0x22a315){return _0x2ceabe(_0xdc01fe,_0x22a315);},'mmZuH':function(_0x2cc1e0,_0x3c7a7b){return _0x2cc1e0>_0x3c7a7b;}};let _0x5189e7=0x0;const [,_0x4b6007]=_0x471da4[_0x5b4b6d(0x203)](readId,_0x59c9f8,_0x5189e7),[_0x3f98a0,_0xc45396]=readVint(_0x59c9f8,_0x5189e7+_0x4b6007);_0x5189e7+=_0x471da4[_0x5b4b6d(0x1ed)](_0x471da4['ncThQ'](_0x4b6007,_0xc45396),_0x3f98a0);const [_0x5a793b,_0x2e5f1d]=_0x471da4[_0x5b4b6d(0x203)](readId,_0x59c9f8,_0x5189e7);if(_0x5a793b!==ID_SEGMENT)return null;const [,_0x5c6112]=_0x471da4['OhICo'](readVint,_0x59c9f8,_0x471da4['uNoWi'](_0x5189e7,_0x2e5f1d)),_0x4c1d09=_0x471da4['cTZMT'](_0x5189e7+_0x2e5f1d,_0x5c6112),_0x297529=_0x471da4[_0x5b4b6d(0x1e8)](findTimestampScale,_0x59c9f8,_0x4c1d09),_0x93ea6c=_0x471da4[_0x5b4b6d(0x1e0)](findFirstClusterOffset,_0x59c9f8,_0x4c1d09),_0x5e1300=_0x59c9f8[_0x5b4b6d(0x204)](0x0,_0x93ea6c),_0x30e3fa=extractClusters(_0x59c9f8,_0x297529);let _0x5b298d=0x0;for(const _0x42d17e of _0x30e3fa){if(_0x471da4['mmZuH'](_0x42d17e['maxTicks'],_0x5b298d))_0x5b298d=_0x42d17e['maxTicks'];}return{'header':_0x5e1300,'clusters':_0x30e3fa,'timestampScale':_0x297529,'maxTimestampTicks':_0x5b298d};}function buildCluster(_0x280518,_0x100031,_0xc81c60){const _0x19a9ce=_0x2e72,_0x1cf908={'axBkC':function(_0x2ae9f3,_0x3d765d){return _0x2ae9f3(_0x3d765d);},'EdzKf':function(_0x488123,_0x1c19e6,_0x10bcac){return _0x488123(_0x1c19e6,_0x10bcac);}},_0x56a72a=Buffer['from']([0x1f,0x43,0xb6,0x75]),_0x39a669=Math[_0x19a9ce(0x1d5)](0x4,uintSize(_0x280518)),_0x2dac19=Buffer[_0x19a9ce(0x1e4)]([Buffer['from']([ID_TIMESTAMP]),_0x1cf908[_0x19a9ce(0x1f0)](writeVint,_0x39a669),_0x1cf908['EdzKf'](writeUint,_0x280518,_0x39a669)]),_0x44270f=Buffer[_0x19a9ce(0x1e4)]([_0x100031,_0x2dac19,_0xc81c60]),_0x173daa=writeVint(_0x44270f[_0x19a9ce(0x1e1)]);return Buffer[_0x19a9ce(0x1e4)]([_0x56a72a,_0x173daa,_0x44270f]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x4e83c4){const _0x10bf4f=_0x2e72,_0x5514cb={'hvVfw':function(_0x3dd5a8,_0x36022c,_0x5ca51d){return _0x3dd5a8(_0x36022c,_0x5ca51d);},'ovmZX':function(_0x31e28e,_0x4c1a6a){return _0x31e28e+_0x4c1a6a;},'gOcpM':function(_0x7264e,_0x21f242){return _0x7264e+_0x21f242;},'Phxiv':function(_0x1a9f1b,_0x416ff7){return _0x1a9f1b<_0x416ff7;},'ybzDq':function(_0xc2208d,_0x5a79d9){return _0xc2208d===_0x5a79d9;},'pHRSp':function(_0x495993,_0x4b6d27){return _0x495993===_0x4b6d27;},'rKizz':function(_0x579acb,_0x4f14bf){return _0x579acb+_0x4f14bf;},'mHcmm':function(_0x5e61d6,_0x2b4c90,_0x2dcb86){return _0x5e61d6(_0x2b4c90,_0x2dcb86);},'eeGul':function(_0x18321e,_0x563830){return _0x18321e+_0x563830;}},_0x1701ff=Buffer['from'](_0x4e83c4);let _0x3ace9b=0x0;const [,_0x524c6e]=_0x5514cb[_0x10bf4f(0x1fa)](readId,_0x1701ff,_0x3ace9b),[_0x6d2476,_0x218101]=readVint(_0x1701ff,_0x5514cb[_0x10bf4f(0x1f8)](_0x3ace9b,_0x524c6e)),_0x2e2f69=_0x5514cb['ovmZX'](_0x5514cb['ovmZX'](_0x3ace9b,_0x524c6e)+_0x218101,_0x6d2476),[,_0x35fb09]=readId(_0x1701ff,_0x2e2f69),[,_0x176d88]=_0x5514cb[_0x10bf4f(0x1fa)](readVint,_0x1701ff,_0x2e2f69+_0x35fb09),_0x476770=_0x5514cb[_0x10bf4f(0x1c5)](_0x2e2f69+_0x35fb09,_0x176d88),_0x565a10=writeUnknownSizeVint(_0x176d88);_0x565a10[_0x10bf4f(0x1fc)](_0x1701ff,_0x2e2f69+_0x35fb09);let _0x47e139=_0x476770;const _0x23a065=Math['min'](_0x1701ff[_0x10bf4f(0x1e1)],_0x476770+0x2710);while(_0x5514cb[_0x10bf4f(0x1c2)](_0x47e139,_0x23a065)){const [_0x5df8de,_0x5d71bb]=readId(_0x1701ff,_0x47e139),[_0x36822e,_0x41401c]=readVint(_0x1701ff,_0x47e139+_0x5d71bb);if(_0x5514cb[_0x10bf4f(0x1d0)](_0x5df8de,ID_CLUSTER))break;if(isUnknownSize(_0x36822e,_0x41401c))break;if(_0x5514cb[_0x10bf4f(0x1d1)](_0x5df8de,ID_INFO)){const _0x35231d=_0x5514cb['gOcpM'](_0x5514cb['gOcpM'](_0x47e139,_0x5d71bb),_0x41401c),_0x53a6ed=_0x5514cb['rKizz'](_0x35231d,_0x36822e),_0x2ed743=[];let _0x10bac7=_0x35231d;while(_0x10bac7<_0x53a6ed){const [_0x1212ad,_0x5926e7]=_0x5514cb[_0x10bf4f(0x201)](readId,_0x1701ff,_0x10bac7),[_0x167765,_0x2f3b4e]=readVint(_0x1701ff,_0x10bac7+_0x5926e7),_0x2c3130=_0x5926e7+_0x2f3b4e+_0x167765;_0x1212ad!==ID_DURATION&&_0x2ed743[_0x10bf4f(0x1c3)](_0x1701ff[_0x10bf4f(0x204)](_0x10bac7,_0x5514cb[_0x10bf4f(0x1f8)](_0x10bac7,_0x2c3130))),_0x10bac7+=_0x2c3130;}const _0x8b1036=Buffer['concat'](_0x2ed743),_0x57f26a=Buffer['concat']([_0x1701ff['slice'](_0x47e139,_0x47e139+_0x5d71bb),writeVint(_0x8b1036['length'],_0x41401c)]);return Buffer[_0x10bf4f(0x1e4)]([_0x1701ff[_0x10bf4f(0x204)](0x0,_0x47e139),_0x57f26a,_0x8b1036,_0x1701ff['slice'](_0x53a6ed)]);}_0x47e139+=_0x5514cb[_0x10bf4f(0x1f6)](_0x5514cb[_0x10bf4f(0x1f8)](_0x5d71bb,_0x41401c),_0x36822e);}return _0x1701ff;}export function stitchWebmFiles(_0x192064,_0x2ae13f){const _0x55c4c8=_0x2e72,_0x286bbb={'XzeFp':function(_0x25c093,_0x544abc){return _0x25c093(_0x544abc);},'FSNUk':function(_0x3e17a0,_0x3ca849){return _0x3e17a0(_0x3ca849);},'sKpdY':function(_0x36715b,_0x1f4cf7,_0x43655f,_0x36687e){return _0x36715b(_0x1f4cf7,_0x43655f,_0x36687e);}};if(_0x192064[_0x55c4c8(0x1e1)]<=0x1)return![];const _0x1e66de=[];for(const _0x2a37de of _0x192064){const _0x2757d4=_0x286bbb['XzeFp'](readFileSync,_0x2a37de),_0x283c99=_0x286bbb[_0x55c4c8(0x200)](parseWebm,_0x2757d4);if(!_0x283c99||_0x283c99['clusters']['length']===0x0)return![];_0x1e66de[_0x55c4c8(0x1c3)](_0x283c99);}const _0x6ac47c=_0x1e66de[0x0],_0x3f31c0=rebuildHeaderWithoutDuration(_0x6ac47c['header']),_0xb7c90b=[_0x3f31c0];let _0x1b34ec=0x0;for(let _0x8d4543=0x0;_0x8d4543<_0x1e66de['length'];_0x8d4543++){const _0x4102b5=_0x1e66de[_0x8d4543];for(const _0x34ca52 of _0x4102b5[_0x55c4c8(0x1bd)]){const _0xeb4be1=_0x34ca52[_0x55c4c8(0x1c4)]+_0x1b34ec;_0xb7c90b['push'](_0x286bbb[_0x55c4c8(0x1bb)](buildCluster,_0xeb4be1,_0x34ca52['bodyBeforeTimestamp'],_0x34ca52[_0x55c4c8(0x1db)]));}const _0x4a3904=0x1e;_0x1b34ec+=_0x4102b5[_0x55c4c8(0x1e7)]+_0x4a3904;}return writeFileSync(_0x2ae13f,Buffer[_0x55c4c8(0x1e4)](_0xb7c90b)),!![];}if(process['argv'][0x1]?.['endsWith'](_0x4271b2(0x1cb))||process['argv'][0x1]?.[_0x4271b2(0x1cd)](_0x4271b2(0x1c7))){const args=process[_0x4271b2(0x1da)][_0x4271b2(0x204)](0x2);args['length']<0x3&&(console[_0x4271b2(0x1ea)](_0x4271b2(0x1c6)),process[_0x4271b2(0x1ce)](0x1));const output=args[args[_0x4271b2(0x1e1)]-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console['log']('Stitched\x20'+inputs['length']+'\x20files\x20->\x20'+output):console[_0x4271b2(0x1f2)](_0x4271b2(0x1ff));}
1
+ const _0x229e6c=_0x5246;(function(_0x2d1e80,_0x237be9){const _0x4145ae=_0x5246,_0xbfe618=_0x2d1e80();while(!![]){try{const _0x4f1ab4=parseInt(_0x4145ae(0x11a))/0x1+-parseInt(_0x4145ae(0xf8))/0x2*(parseInt(_0x4145ae(0x101))/0x3)+-parseInt(_0x4145ae(0xff))/0x4*(-parseInt(_0x4145ae(0xfb))/0x5)+parseInt(_0x4145ae(0x102))/0x6*(parseInt(_0x4145ae(0x124))/0x7)+parseInt(_0x4145ae(0x110))/0x8+parseInt(_0x4145ae(0x104))/0x9*(parseInt(_0x4145ae(0x10a))/0xa)+parseInt(_0x4145ae(0x113))/0xb*(-parseInt(_0x4145ae(0x108))/0xc);if(_0x4f1ab4===_0x237be9)break;else _0xbfe618['push'](_0xbfe618['shift']());}catch(_0xc7defc){_0xbfe618['push'](_0xbfe618['shift']());}}}(_0xf1c3,0xdb785));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(_0x41b855,_0x31bb32){const _0x2c55ed=_0x5246,_0x77111a={'YIcjt':function(_0x1ca25e,_0x5bf6a4){return _0x1ca25e>_0x5bf6a4;},'fxXLm':function(_0x40a370,_0x19e889){return _0x40a370&_0x19e889;},'pYUub':function(_0x2843d0,_0x2bd02e){return _0x2843d0-_0x2bd02e;}};if(_0x31bb32>=_0x41b855[_0x2c55ed(0x10c)])return[0x0,0x0];const _0x23da3d=_0x41b855[_0x31bb32];let _0x26a898=0x1,_0x3e2c77=0x80;while(_0x26a898<=0x8&&!(_0x23da3d&_0x3e2c77)){_0x26a898++,_0x3e2c77>>=0x1;}if(_0x77111a['YIcjt'](_0x31bb32+_0x26a898,_0x41b855['length']))return[0x0,0x0];let _0x415edc=_0x77111a['fxXLm'](_0x23da3d,_0x77111a[_0x2c55ed(0xfc)](_0x3e2c77,0x1));for(let _0x3f6ba7=0x1;_0x3f6ba7<_0x26a898;_0x3f6ba7++){_0x415edc=_0x415edc*0x100+_0x41b855[_0x31bb32+_0x3f6ba7];}return[_0x415edc,_0x26a898];}function readId(_0x145fb7,_0x22ce34){const _0x49d0b4=_0x5246,_0x1e4579={'FQKqp':function(_0x238226,_0x30f05e){return _0x238226>=_0x30f05e;},'HCked':function(_0x22adc1,_0x1d1cfb){return _0x22adc1>=_0x1d1cfb;},'TAMRE':function(_0xaad085,_0x137936){return _0xaad085>_0x137936;},'gvGvY':function(_0x665606,_0x3842f2){return _0x665606<_0x3842f2;},'wwAAU':function(_0xc3e2e,_0x53ec4e){return _0xc3e2e+_0x53ec4e;}};if(_0x22ce34>=_0x145fb7[_0x49d0b4(0x10c)])return[0x0,0x0];const _0x3908be=_0x145fb7[_0x22ce34];let _0x409d80;if(_0x1e4579[_0x49d0b4(0x133)](_0x3908be,0x80))_0x409d80=0x1;else{if(_0x3908be>=0x40)_0x409d80=0x2;else{if(_0x1e4579['HCked'](_0x3908be,0x20))_0x409d80=0x3;else{if(_0x1e4579[_0x49d0b4(0x127)](_0x3908be,0x10))_0x409d80=0x4;else return[_0x3908be,0x1];}}}if(_0x1e4579[_0x49d0b4(0x131)](_0x22ce34+_0x409d80,_0x145fb7['length']))return[0x0,0x0];let _0x26e189=0x0;for(let _0x1b639c=0x0;_0x1e4579[_0x49d0b4(0x12f)](_0x1b639c,_0x409d80);_0x1b639c++){_0x26e189=_0x26e189*0x100+_0x145fb7[_0x1e4579['wwAAU'](_0x22ce34,_0x1b639c)];}return[_0x26e189,_0x409d80];}function readUint(_0x1db8f9,_0x1c846b,_0x3af55e){const _0xa17df1=_0x5246,_0x112a7f={'xGIVM':function(_0x511843,_0xdf2c5a){return _0x511843<_0xdf2c5a;},'SYnFX':function(_0x2a4cd0,_0x5538f5){return _0x2a4cd0+_0x5538f5;},'OiFMN':function(_0x3739a3,_0xe42d71){return _0x3739a3+_0xe42d71;}};let _0x1f2603=0x0;for(let _0x3ab830=0x0;_0x112a7f[_0xa17df1(0x111)](_0x3ab830,_0x3af55e);_0x3ab830++){_0x1f2603=_0x112a7f['SYnFX'](_0x1f2603*0x100,_0x1db8f9[_0x112a7f['OiFMN'](_0x1c846b,_0x3ab830)]);}return _0x1f2603;}function isUnknownSize(_0x295f70,_0xf340a6){const _0x414827=_0x5246,_0x47d5e3={'VDvbT':function(_0x25e91b,_0x14222c){return _0x25e91b===_0x14222c;},'lSJOQ':function(_0x50beae,_0x284d81){return _0x50beae-_0x284d81;}};return _0x47d5e3[_0x414827(0x126)](_0x295f70,_0x47d5e3['lSJOQ'](Math[_0x414827(0x10b)](0x2,0x7*_0xf340a6),0x1));}function writeVint(_0x1871f4,_0x19f340){const _0x566051=_0x5246,_0x5f0b17={'cUgUl':function(_0x5ee15,_0x3e54d1){return _0x5ee15||_0x3e54d1;},'akBKU':function(_0x545cf6,_0x365688){return _0x545cf6*_0x365688;},'JafZu':function(_0x5ed787,_0x3b158d){return _0x5ed787>=_0x3b158d;},'uODNZ':function(_0x3291d9,_0x1c6cb9){return _0x3291d9/_0x1c6cb9;},'Izyhc':function(_0x243376,_0x1bbf7e){return _0x243376<<_0x1bbf7e;},'deGGh':function(_0x134d28,_0xc03c98){return _0x134d28-_0xc03c98;}};let _0x5c489d=_0x5f0b17['cUgUl'](_0x19f340,0x1);while(Math['pow'](0x2,_0x5f0b17[_0x566051(0xfe)](0x7,_0x5c489d))-0x2<_0x1871f4)_0x5c489d++;const _0x5f4cc3=Buffer[_0x566051(0x11e)](_0x5c489d);for(let _0x19debc=_0x5c489d-0x1;_0x5f0b17['JafZu'](_0x19debc,0x0);_0x19debc--){_0x5f4cc3[_0x19debc]=_0x1871f4&0xff,_0x1871f4=Math['floor'](_0x5f0b17[_0x566051(0x10e)](_0x1871f4,0x100));}return _0x5f4cc3[0x0]|=_0x5f0b17['Izyhc'](0x1,_0x5f0b17[_0x566051(0x129)](0x8,_0x5c489d)),_0x5f4cc3;}function _0x5246(_0x35e625,_0x4d56ed){_0x35e625=_0x35e625-0xf0;const _0xf1c35b=_0xf1c3();let _0x5246fc=_0xf1c35b[_0x35e625];return _0x5246fc;}function writeUint(_0x472637,_0x4f31ce){const _0xbeadca=_0x5246,_0x283ea5={'cADIZ':function(_0xf156d6,_0x37bc5c){return _0xf156d6/_0x37bc5c;}},_0x29c060=Buffer[_0xbeadca(0x11e)](_0x4f31ce);for(let _0x24711d=_0x4f31ce-0x1;_0x24711d>=0x0;_0x24711d--){_0x29c060[_0x24711d]=_0x472637&0xff,_0x472637=Math[_0xbeadca(0x10f)](_0x283ea5['cADIZ'](_0x472637,0x100));}return _0x29c060;}function writeUnknownSizeVint(_0x4acdaa){const _0x1489dd=_0x5246,_0x350dd5={'FxyFx':function(_0x555d9c,_0x55d471){return _0x555d9c-_0x55d471;}},_0x5c9fd1=Buffer['alloc'](_0x4acdaa,0xff);return _0x5c9fd1[0x0]=0xff>>_0x350dd5[_0x1489dd(0x119)](_0x4acdaa,0x1),_0x5c9fd1;}function uintSize(_0x577c93){const _0x6c675=_0x5246,_0x21dec2={'mQeHW':function(_0x48a1a5,_0x524a00){return _0x48a1a5===_0x524a00;}};if(_0x21dec2['mQeHW'](_0x577c93,0x0))return 0x1;let _0x238c31=0x0,_0x1687f2=_0x577c93;while(_0x1687f2>0x0){_0x238c31++,_0x1687f2=Math[_0x6c675(0x10f)](_0x1687f2/0x100);}return _0x238c31;}function findTimestampScale(_0x17122d,_0x394747){const _0x571f72=_0x5246,_0x3086b0={'Urnms':function(_0x152980,_0x26d865,_0x50ac9e){return _0x152980(_0x26d865,_0x50ac9e);},'EpgsE':function(_0x4fa240,_0x58453b){return _0x4fa240===_0x58453b;},'ONiRK':function(_0x325dcf,_0x132ad7){return _0x325dcf+_0x132ad7;},'XNFxx':function(_0x1a724d,_0x2da381,_0x349f8a,_0x2ce0b){return _0x1a724d(_0x2da381,_0x349f8a,_0x2ce0b);},'yiDhO':function(_0x195fe6,_0x1a0721,_0xa91b02){return _0x195fe6(_0x1a0721,_0xa91b02);}};let _0x5744f5=_0x394747;const _0x307c13=Math[_0x571f72(0xf1)](_0x17122d[_0x571f72(0x10c)],_0x394747+0x2710);while(_0x5744f5<_0x307c13){const [_0x2977b6,_0x50d281]=_0x3086b0['Urnms'](readId,_0x17122d,_0x5744f5),[_0x4d77ab,_0xd7de07]=_0x3086b0['Urnms'](readVint,_0x17122d,_0x5744f5+_0x50d281);if(_0x3086b0[_0x571f72(0xf7)](_0x2977b6,ID_INFO)){let _0x3c9645=_0x5744f5+_0x50d281+_0xd7de07;const _0x1596fc=_0x3086b0[_0x571f72(0x107)](_0x3c9645,_0x4d77ab);while(_0x3c9645<_0x1596fc){const [_0xe37e83,_0xe2cc40]=_0x3086b0[_0x571f72(0x122)](readId,_0x17122d,_0x3c9645),[_0x13ec33,_0x54dc9d]=_0x3086b0['Urnms'](readVint,_0x17122d,_0x3c9645+_0xe2cc40);if(_0xe37e83===ID_TIMESTAMP_SCALE)return _0x3086b0['XNFxx'](readUint,_0x17122d,_0x3086b0['ONiRK'](_0x3c9645,_0xe2cc40)+_0x54dc9d,_0x13ec33);_0x3c9645+=_0x3086b0['ONiRK'](_0x3086b0[_0x571f72(0x107)](_0xe2cc40,_0x54dc9d),_0x13ec33);}break;}if(_0x3086b0[_0x571f72(0xf7)](_0x2977b6,ID_CLUSTER))break;if(_0x3086b0['yiDhO'](isUnknownSize,_0x4d77ab,_0xd7de07))break;_0x5744f5+=_0x50d281+_0xd7de07+_0x4d77ab;}return 0xf4240;}function findFirstClusterOffset(_0x48dcc0,_0x2ab967){const _0x999fb6=_0x5246,_0x64fef6={'dRseX':function(_0x5b6072,_0x595e07,_0x471cfc){return _0x5b6072(_0x595e07,_0x471cfc);},'hBbbT':function(_0x208ca2,_0x7a6cb4){return _0x208ca2===_0x7a6cb4;},'PedXh':function(_0x3dadca,_0x329ff7){return _0x3dadca+_0x329ff7;},'jEQlU':function(_0x50f6d4,_0x4698d3,_0x57d914){return _0x50f6d4(_0x4698d3,_0x57d914);}};let _0x4c82cd=_0x2ab967;while(_0x4c82cd<_0x48dcc0[_0x999fb6(0x10c)]){const [_0x13db45,_0x3ef453]=_0x64fef6[_0x999fb6(0xf4)](readId,_0x48dcc0,_0x4c82cd);if(_0x64fef6[_0x999fb6(0x106)](_0x13db45,ID_CLUSTER))return _0x4c82cd;const [_0x220dbc,_0xd44365]=_0x64fef6[_0x999fb6(0xf4)](readVint,_0x48dcc0,_0x64fef6[_0x999fb6(0x125)](_0x4c82cd,_0x3ef453));if(_0x64fef6['jEQlU'](isUnknownSize,_0x220dbc,_0xd44365))return _0x4c82cd;_0x4c82cd+=_0x64fef6[_0x999fb6(0x125)](_0x3ef453,_0xd44365)+_0x220dbc;}return _0x48dcc0['length'];}function findClusterEnd(_0x260657,_0x5a8fdf,_0x2687f9,_0x2152c9){const _0x44b865=_0x5246,_0x53c3ea={'oLGIV':function(_0x42f7aa,_0x1fa580,_0x4a2786){return _0x42f7aa(_0x1fa580,_0x4a2786);},'yBoZt':function(_0x455ec3,_0x3a8d3c){return _0x455ec3<_0x3a8d3c;},'IxhtB':function(_0x53dd9e,_0x38bc56,_0x35015c){return _0x53dd9e(_0x38bc56,_0x35015c);},'fvwvN':function(_0x294707,_0x198b14){return _0x294707+_0x198b14;},'ovSIE':function(_0x23cefb,_0x3f684a){return _0x23cefb+_0x3f684a;}};if(!_0x53c3ea['oLGIV'](isUnknownSize,_0x2687f9,_0x2152c9))return _0x5a8fdf+_0x2687f9;const _0x4db56e=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x29c664=_0x5a8fdf;while(_0x53c3ea[_0x44b865(0x115)](_0x29c664,_0x260657[_0x44b865(0x10c)]-0x4)){const [_0xcc6c09,_0x1ba7ef]=_0x53c3ea['IxhtB'](readId,_0x260657,_0x29c664);if(_0x4db56e[_0x44b865(0x103)](_0xcc6c09))return _0x29c664;const [_0x2cfc4e,_0x352fe4]=_0x53c3ea['oLGIV'](readVint,_0x260657,_0x53c3ea['fvwvN'](_0x29c664,_0x1ba7ef));if(isUnknownSize(_0x2cfc4e,_0x352fe4))return _0x260657[_0x44b865(0x10c)];_0x29c664+=_0x53c3ea['ovSIE'](_0x1ba7ef+_0x352fe4,_0x2cfc4e);}return _0x260657['length'];}function extractClusters(_0x14bffa,_0xfd87ef){const _0x4b35dd=_0x5246,_0x4a561a={'cpDwl':function(_0x22c7b1,_0x5c1cbf){return _0x22c7b1<_0x5c1cbf;},'unBdc':function(_0x455277,_0x482675,_0x3f49cc){return _0x455277(_0x482675,_0x3f49cc);},'fGhtp':function(_0x2c5b4d,_0x1389ec){return _0x2c5b4d+_0x1389ec;},'ValEU':function(_0x322202,_0x3fa5c7,_0x2c59da){return _0x322202(_0x3fa5c7,_0x2c59da);},'osBMx':function(_0x22828c,_0x635198){return _0x22828c===_0x635198;},'Abycf':function(_0x17fe8f,_0x2f1775,_0x4a503e){return _0x17fe8f(_0x2f1775,_0x4a503e);},'VsWWp':function(_0xf7228f,_0xa2b9fc){return _0xf7228f===_0xa2b9fc;},'LwuWN':function(_0x558260,_0x30b5b9){return _0x558260+_0x30b5b9;},'vMWwr':function(_0x506be0,_0x382a0b){return _0x506be0+_0x382a0b;},'yEOnh':function(_0x24f6d0,_0x17aff4){return _0x24f6d0>_0x17aff4;}},_0x49a288=[],_0x4d776c=Buffer[_0x4b35dd(0x118)]([0x1f,0x43,0xb6,0x75]);let _0x4b9b14=0x0;while(_0x4a561a[_0x4b35dd(0x116)](_0x4b9b14,_0x14bffa['length'])){const _0xb737fd=_0x14bffa[_0x4b35dd(0x11d)](_0x4d776c,_0x4b9b14);if(_0xb737fd===-0x1)break;const [_0x9d468b,_0x168a2d]=_0x4a561a[_0x4b35dd(0xf5)](readId,_0x14bffa,_0xb737fd);if(_0x9d468b!==ID_CLUSTER){_0x4b9b14=_0x4a561a[_0x4b35dd(0x11f)](_0xb737fd,0x1);continue;}const [_0x43dbfa,_0x33d042]=readVint(_0x14bffa,_0xb737fd+_0x168a2d),_0x38efa8=_0xb737fd+_0x168a2d+_0x33d042,_0xf26472=findClusterEnd(_0x14bffa,_0x38efa8,_0x43dbfa,_0x33d042);let _0x24ef89=_0x38efa8,_0x230d85=0x0,_0x51eecb=0x2,_0x36964a=![],_0x93e188=Buffer[_0x4b35dd(0x11e)](0x0),_0x4e85b7=Buffer[_0x4b35dd(0x11e)](0x0);while(_0x24ef89<_0xf26472){const [_0x34b83e,_0x1e1860]=_0x4a561a[_0x4b35dd(0xfd)](readId,_0x14bffa,_0x24ef89),[_0x51a6a2,_0x584373]=_0x4a561a['ValEU'](readVint,_0x14bffa,_0x24ef89+_0x1e1860);if(_0x4a561a['osBMx'](_0x34b83e,ID_TIMESTAMP)){_0x230d85=readUint(_0x14bffa,_0x4a561a['fGhtp'](_0x24ef89+_0x1e1860,_0x584373),_0x51a6a2),_0x51eecb=_0x51a6a2,_0x36964a=!![],_0x93e188=_0x14bffa['slice'](_0x38efa8,_0x24ef89);const _0x1568ac=_0x4a561a['fGhtp'](_0x24ef89+_0x1e1860+_0x584373,_0x51a6a2);_0x4e85b7=_0x14bffa[_0x4b35dd(0x12e)](_0x1568ac,_0xf26472);break;}if(_0x4a561a['osBMx'](_0x34b83e,ID_CLUSTER))break;if(_0x4a561a['Abycf'](isUnknownSize,_0x51a6a2,_0x584373))break;_0x24ef89+=_0x4a561a['fGhtp'](_0x1e1860,_0x584373)+_0x51a6a2;}!_0x36964a&&(_0x4e85b7=_0x14bffa['slice'](_0x38efa8,_0xf26472));let _0x164c3d=_0x230d85;_0x24ef89=_0x38efa8;while(_0x24ef89<_0xf26472){const [_0x2a6c30,_0x3d0855]=_0x4a561a[_0x4b35dd(0xfd)](readId,_0x14bffa,_0x24ef89),[_0x4ee2a7,_0x163f97]=readVint(_0x14bffa,_0x24ef89+_0x3d0855);if(_0x4a561a['VsWWp'](_0x2a6c30,ID_SIMPLE_BLOCK)&&_0x4ee2a7>=0x4){const _0x213f5d=_0x4a561a['LwuWN'](_0x4a561a[_0x4b35dd(0xf6)](_0x24ef89,_0x3d0855),_0x163f97),[,_0x58cc1d]=readVint(_0x14bffa,_0x213f5d),_0x212cfc=_0x14bffa[_0x4b35dd(0xf9)](_0x213f5d+_0x58cc1d),_0x299bc0=_0x230d85+_0x212cfc;if(_0x4a561a['yEOnh'](_0x299bc0,_0x164c3d))_0x164c3d=_0x299bc0;}if(_0x4a561a[_0x4b35dd(0x10d)](_0x2a6c30,ID_CLUSTER))break;if(_0x4a561a['unBdc'](isUnknownSize,_0x4ee2a7,_0x163f97))break;_0x24ef89+=_0x4a561a['fGhtp'](_0x3d0855,_0x163f97)+_0x4ee2a7;}_0x49a288['push']({'timestamp':_0x230d85,'maxTicks':_0x164c3d,'bodyBeforeTimestamp':_0x93e188,'bodyAfterTimestamp':_0x4e85b7,'timestampElementSize':_0x51eecb}),_0x4b9b14=_0xf26472;}return _0x49a288;}function parseWebm(_0x4f2e9f){const _0x927f4b=_0x5246,_0x5d4a4e={'MnUdD':function(_0x230ca0,_0x319b1c){return _0x230ca0+_0x319b1c;},'CrJyD':function(_0xb15a85,_0x433d41,_0x50405d){return _0xb15a85(_0x433d41,_0x50405d);},'HNIXm':function(_0x577cab,_0x2160bd){return _0x577cab+_0x2160bd;},'pcoRy':function(_0x223aaa,_0x330925){return _0x223aaa+_0x330925;},'gSSZM':function(_0x55aaf4,_0x3c248f,_0x39c4fd){return _0x55aaf4(_0x3c248f,_0x39c4fd);}};let _0x5230ee=0x0;const [,_0x429b8d]=readId(_0x4f2e9f,_0x5230ee),[_0x491395,_0x1e7cc6]=readVint(_0x4f2e9f,_0x5d4a4e[_0x927f4b(0x112)](_0x5230ee,_0x429b8d));_0x5230ee+=_0x5d4a4e['MnUdD'](_0x5d4a4e[_0x927f4b(0x112)](_0x429b8d,_0x1e7cc6),_0x491395);const [_0x2d11e2,_0xec859c]=_0x5d4a4e['CrJyD'](readId,_0x4f2e9f,_0x5230ee);if(_0x2d11e2!==ID_SEGMENT)return null;const [,_0x54fbb0]=readVint(_0x4f2e9f,_0x5d4a4e[_0x927f4b(0xf0)](_0x5230ee,_0xec859c)),_0x55a69c=_0x5d4a4e['pcoRy'](_0x5230ee,_0xec859c)+_0x54fbb0,_0x21e370=findTimestampScale(_0x4f2e9f,_0x55a69c),_0x483cb2=_0x5d4a4e['gSSZM'](findFirstClusterOffset,_0x4f2e9f,_0x55a69c),_0x5624a6=_0x4f2e9f[_0x927f4b(0x12e)](0x0,_0x483cb2),_0x5dadda=extractClusters(_0x4f2e9f,_0x21e370);let _0x4024da=0x0;for(const _0x10028a of _0x5dadda){if(_0x10028a['maxTicks']>_0x4024da)_0x4024da=_0x10028a['maxTicks'];}return{'header':_0x5624a6,'clusters':_0x5dadda,'timestampScale':_0x21e370,'maxTimestampTicks':_0x4024da};}function buildCluster(_0x4808d8,_0x11a443,_0x287025){const _0x5622cb=_0x5246,_0x2cc246={'FvvaY':function(_0x4a0a68,_0x3afbd9){return _0x4a0a68(_0x3afbd9);},'wAGNI':function(_0x4ac6c0,_0x551001,_0x1312b4){return _0x4ac6c0(_0x551001,_0x1312b4);}},_0x53b7ed=Buffer['from']([0x1f,0x43,0xb6,0x75]),_0x4a949a=Math['max'](0x4,_0x2cc246['FvvaY'](uintSize,_0x4808d8)),_0x3f93=Buffer['concat']([Buffer['from']([ID_TIMESTAMP]),writeVint(_0x4a949a),_0x2cc246[_0x5622cb(0x121)](writeUint,_0x4808d8,_0x4a949a)]),_0x26aa22=Buffer[_0x5622cb(0x128)]([_0x11a443,_0x3f93,_0x287025]),_0x48a872=_0x2cc246[_0x5622cb(0x100)](writeVint,_0x26aa22[_0x5622cb(0x10c)]);return Buffer[_0x5622cb(0x128)]([_0x53b7ed,_0x48a872,_0x26aa22]);}const ID_DURATION=0x4489;function _0xf1c3(){const _0x46aeef=['dRseX','unBdc','vMWwr','EpgsE','634jJgZOM','readInt16BE','endsWith','25llGfhk','pYUub','ValEU','akBKU','1276364SxsXig','FvvaY','14979wMdiKF','6973446OOfMVO','has','9YqPzYb','maxTimestampTicks','hBbbT','ONiRK','3306588NSotOl','argv','17236390EThHfC','pow','length','VsWWp','uODNZ','floor','780152OALGur','xGIVM','MnUdD','143IVwfuu','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','yBoZt','cpDwl','zFAJr','from','FxyFx','1485013UvaJho','copy','zrDZH','indexOf','alloc','fGhtp','FVnuw','wAGNI','Urnms','TOJWO','7jOIZBE','PedXh','VDvbT','HCked','concat','deGGh','pvGtX','VtYhM','IyxSP','stitchWebmFiles.ts','slice','gvGvY','\x20files\x20->\x20','TAMRE','bWrYK','FQKqp','HNIXm','min','nWuwv','exit'];_0xf1c3=function(){return _0x46aeef;};return _0xf1c3();}function rebuildHeaderWithoutDuration(_0x3dea54){const _0x316c9a=_0x5246,_0x194086={'nWuwv':function(_0x29c6bd,_0x4dac41,_0x11e21e){return _0x29c6bd(_0x4dac41,_0x11e21e);},'yBEyW':function(_0x3b1622,_0x58bd6d){return _0x3b1622+_0x58bd6d;},'oyGkt':function(_0x16e3cf,_0x1f5e3b){return _0x16e3cf+_0x1f5e3b;},'euMHr':function(_0x5aa8cc,_0x15d145){return _0x5aa8cc+_0x15d145;},'zrDZH':function(_0x10d7b8,_0x41d3c8){return _0x10d7b8(_0x41d3c8);},'FVnuw':function(_0x1503b1,_0x569b61){return _0x1503b1===_0x569b61;},'VtYhM':function(_0x4d12fe,_0x3360bf,_0x3a77f9){return _0x4d12fe(_0x3360bf,_0x3a77f9);},'dIVzq':function(_0x36b066,_0x2335a5){return _0x36b066===_0x2335a5;},'CwXGf':function(_0x1a63be,_0x32e597){return _0x1a63be+_0x32e597;},'UBNfM':function(_0x4a06f0,_0x559dfd){return _0x4a06f0+_0x559dfd;},'bWrYK':function(_0x56f4e3,_0x2e0964){return _0x56f4e3+_0x2e0964;},'IyxSP':function(_0xec09c1,_0x2e9a6c){return _0xec09c1!==_0x2e9a6c;},'TOJWO':function(_0x32dab6,_0x2c71c2){return _0x32dab6+_0x2c71c2;},'zFAJr':function(_0x3d7be7,_0x1ea1ae,_0x39dfb5){return _0x3d7be7(_0x1ea1ae,_0x39dfb5);}},_0x1a76b3=Buffer[_0x316c9a(0x118)](_0x3dea54);let _0x46862f=0x0;const [,_0x262595]=readId(_0x1a76b3,_0x46862f),[_0x334e51,_0x5ef76b]=_0x194086[_0x316c9a(0xf2)](readVint,_0x1a76b3,_0x194086['yBEyW'](_0x46862f,_0x262595)),_0x2f92e1=_0x46862f+_0x262595+_0x5ef76b+_0x334e51,[,_0x54f107]=readId(_0x1a76b3,_0x2f92e1),[,_0x6f6b57]=readVint(_0x1a76b3,_0x194086['oyGkt'](_0x2f92e1,_0x54f107)),_0x1bdff9=_0x194086['euMHr'](_0x2f92e1+_0x54f107,_0x6f6b57),_0x2d430d=_0x194086[_0x316c9a(0x11c)](writeUnknownSizeVint,_0x6f6b57);_0x2d430d[_0x316c9a(0x11b)](_0x1a76b3,_0x2f92e1+_0x54f107);let _0x39b547=_0x1bdff9;const _0xbd819e=Math[_0x316c9a(0xf1)](_0x1a76b3[_0x316c9a(0x10c)],_0x1bdff9+0x2710);while(_0x39b547<_0xbd819e){const [_0x5b4af4,_0x1a879d]=readId(_0x1a76b3,_0x39b547),[_0x3b47c2,_0x1c0db2]=readVint(_0x1a76b3,_0x39b547+_0x1a879d);if(_0x194086[_0x316c9a(0x120)](_0x5b4af4,ID_CLUSTER))break;if(_0x194086[_0x316c9a(0x12b)](isUnknownSize,_0x3b47c2,_0x1c0db2))break;if(_0x194086['dIVzq'](_0x5b4af4,ID_INFO)){const _0x3c0df2=_0x194086['euMHr'](_0x39b547,_0x1a879d)+_0x1c0db2,_0x4e7952=_0x194086['oyGkt'](_0x3c0df2,_0x3b47c2),_0x17c586=[];let _0x42bc14=_0x3c0df2;while(_0x42bc14<_0x4e7952){const [_0x105e73,_0x1df01d]=readId(_0x1a76b3,_0x42bc14),[_0x1d1ffd,_0x5a77e8]=_0x194086[_0x316c9a(0xf2)](readVint,_0x1a76b3,_0x194086['CwXGf'](_0x42bc14,_0x1df01d)),_0x2d04c3=_0x194086['UBNfM'](_0x194086['bWrYK'](_0x1df01d,_0x5a77e8),_0x1d1ffd);_0x194086[_0x316c9a(0x12c)](_0x105e73,ID_DURATION)&&_0x17c586['push'](_0x1a76b3[_0x316c9a(0x12e)](_0x42bc14,_0x194086[_0x316c9a(0x123)](_0x42bc14,_0x2d04c3))),_0x42bc14+=_0x2d04c3;}const _0xdd0137=Buffer[_0x316c9a(0x128)](_0x17c586),_0x5ce84d=Buffer['concat']([_0x1a76b3[_0x316c9a(0x12e)](_0x39b547,_0x39b547+_0x1a879d),_0x194086[_0x316c9a(0x117)](writeVint,_0xdd0137['length'],_0x1c0db2)]);return Buffer['concat']([_0x1a76b3[_0x316c9a(0x12e)](0x0,_0x39b547),_0x5ce84d,_0xdd0137,_0x1a76b3['slice'](_0x4e7952)]);}_0x39b547+=_0x194086[_0x316c9a(0x132)](_0x1a879d,_0x1c0db2)+_0x3b47c2;}return _0x1a76b3;}export function stitchWebmFiles(_0x4d982a,_0x2ebc51){const _0xd499ac=_0x5246,_0x7ee01b={'pvGtX':function(_0xf227b4,_0x2931d6){return _0xf227b4(_0x2931d6);},'HgEic':function(_0x3fa2be,_0x5df363){return _0x3fa2be+_0x5df363;}};if(_0x4d982a[_0xd499ac(0x10c)]<=0x1)return![];const _0x121185=[];for(const _0x433bcc of _0x4d982a){const _0xf3cad2=readFileSync(_0x433bcc),_0x1361c5=parseWebm(_0xf3cad2);if(!_0x1361c5||_0x1361c5['clusters']['length']===0x0)return![];_0x121185['push'](_0x1361c5);}const _0x2eef74=_0x121185[0x0],_0x3d0ae3=_0x7ee01b[_0xd499ac(0x12a)](rebuildHeaderWithoutDuration,_0x2eef74['header']),_0x15fdbb=[_0x3d0ae3];let _0x1b9c0b=0x0;for(let _0xf0f7a6=0x0;_0xf0f7a6<_0x121185[_0xd499ac(0x10c)];_0xf0f7a6++){const _0x3af286=_0x121185[_0xf0f7a6];for(const _0x2d8525 of _0x3af286['clusters']){const _0x44a322=_0x7ee01b['HgEic'](_0x2d8525['timestamp'],_0x1b9c0b);_0x15fdbb['push'](buildCluster(_0x44a322,_0x2d8525['bodyBeforeTimestamp'],_0x2d8525['bodyAfterTimestamp']));}const _0x3a50df=0x1e;_0x1b9c0b+=_0x3af286[_0xd499ac(0x105)]+_0x3a50df;}return writeFileSync(_0x2ebc51,Buffer[_0xd499ac(0x128)](_0x15fdbb)),!![];}if(process['argv'][0x1]?.[_0x229e6c(0xfa)](_0x229e6c(0x12d))||process['argv'][0x1]?.[_0x229e6c(0xfa)]('stitchWebmFiles.js')){const args=process[_0x229e6c(0x109)][_0x229e6c(0x12e)](0x2);args[_0x229e6c(0x10c)]<0x3&&(console['error'](_0x229e6c(0x114)),process[_0x229e6c(0xf3)](0x1));const output=args[args[_0x229e6c(0x10c)]-0x1],inputs=args[_0x229e6c(0x12e)](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console['log']('Stitched\x20'+inputs[_0x229e6c(0x10c)]+_0x229e6c(0x130)+output):console['log']('Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.');}
@@ -1 +1 @@
1
- const _0x11da83=_0x23f3;(function(_0x44f356,_0x342f98){const _0x209339=_0x23f3,_0x851766=_0x44f356();while(!![]){try{const _0x4a1049=-parseInt(_0x209339(0x1c9))/0x1+parseInt(_0x209339(0x1d2))/0x2+-parseInt(_0x209339(0x201))/0x3*(-parseInt(_0x209339(0x1fb))/0x4)+parseInt(_0x209339(0x1ef))/0x5*(parseInt(_0x209339(0x1fc))/0x6)+-parseInt(_0x209339(0x1f1))/0x7*(parseInt(_0x209339(0x20b))/0x8)+-parseInt(_0x209339(0x1d3))/0x9+parseInt(_0x209339(0x203))/0xa;if(_0x4a1049===_0x342f98)break;else _0x851766['push'](_0x851766['shift']());}catch(_0x3685a0){_0x851766['push'](_0x851766['shift']());}}}(_0x2c7b,0x87449));import{randomUUID}from'crypto';import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';import{homedir}from'os';function _0x2c7b(){const _0x295cad=['phase','EqJoW','success','YAMlR','TFWFi','lVqsx','DbrsU','trackPhaseError','oqXmN','21524ZdmreZ','103842GNtUKZ','.ranger','now','hJHQB','fcrkp','441DDJdFo','trackPhaseEnd','15972310TXzKnQ','vDuVv','version','evaluation','get','dskFE','isTty','stringify','72kFNpKv','commandStartTime','nodeVersion','splice','trim','isCI','BUpTb','command_start','errorMessage','wEocI','command','featureId','cliVersion','buffer','flushing','phaseCounter','constructor','checklistItemId','652003rqnytk','application/json','errorType','trackCommandError','trackCommandStart','[telemetry]\x20Sending\x20','dSRxc','toISOString','DEBUG','452594helDBk','8380116ODNlew','GITHUB_ACTIONS','catch','/api/v1/mcp/cli-telemetry','phaseStartTimes','stdout','phase_end','isTTY','trackPhaseStart','durationMs','name','platform','sendImmediate','setContext','guRtx','flush','length','env','deviceId','buildEvent','sendBatch','bLQoy','flushAsync','Authorization','push','WieLm','error','browserSessionId','120RCXvEs','commandId','694337SqxddO'];_0x2c7b=function(){return _0x295cad;};return _0x2c7b();}function _0x23f3(_0x1e0706,_0x10f161){_0x1e0706=_0x1e0706-0x1c4;const _0x2c7b94=_0x2c7b();let _0x23f388=_0x2c7b94[_0x1e0706];return _0x23f388;}import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{getCurrentVersion}from'./version.js';let cachedDeviceId=null;function getDeviceId(){const _0x4549f0=_0x23f3,_0x5b0dba={'WieLm':function(_0x4f543e){return _0x4f543e();},'guRtx':function(_0x1da52c,_0x5d493a,_0x1b6c07){return _0x1da52c(_0x5d493a,_0x1b6c07);},'vDuVv':'.session','cGgyF':function(_0x172245,_0x5e1cb8){return _0x172245(_0x5e1cb8);},'oqXmN':function(_0x351080,_0x4f4b4c,_0x4157ae){return _0x351080(_0x4f4b4c,_0x4157ae);},'dSRxc':function(_0x4e7eae,_0x3c8e75,_0x52153c){return _0x4e7eae(_0x3c8e75,_0x52153c);}};if(cachedDeviceId)return cachedDeviceId;try{const _0x230af6=join(_0x5b0dba['WieLm'](homedir),_0x4549f0(0x1fd)),_0x122d47=_0x5b0dba[_0x4549f0(0x1e1)](join,_0x230af6,_0x5b0dba[_0x4549f0(0x204)]);if(_0x5b0dba['cGgyF'](existsSync,_0x122d47)){cachedDeviceId=_0x5b0dba[_0x4549f0(0x1fa)](readFileSync,_0x122d47,'utf-8')[_0x4549f0(0x20f)]();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=randomUUID(),mkdirSync(_0x230af6,{'recursive':!![]}),_0x5b0dba[_0x4549f0(0x1cf)](writeFileSync,_0x122d47,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=_0x5b0dba[_0x4549f0(0x1ec)](randomUUID),cachedDeviceId;}}export class TelemetryCollector{['buffer']=[];['commandId'];['command'];[_0x11da83(0x20c)];['phaseCounter']=0x0;['phaseStartTimes']=new Map();[_0x11da83(0x1c5)]=null;[_0x11da83(0x1e5)];['cliVersion'];['nodeVersion'];['platform'];['isTty'];['isCI'];['featureId'];[_0x11da83(0x1c8)];[_0x11da83(0x1ee)];constructor(_0x158641){const _0xcecaef=_0x11da83,_0x4bd962={'wEocI':function(_0x8397d1){return _0x8397d1();},'qGhuV':function(_0x2e6a82){return _0x2e6a82();}};this[_0xcecaef(0x1f0)]=_0x4bd962['wEocI'](randomUUID),this[_0xcecaef(0x215)]=_0x158641,this[_0xcecaef(0x20c)]=Date['now'](),this[_0xcecaef(0x1e5)]=_0x4bd962[_0xcecaef(0x214)](getDeviceId),this[_0xcecaef(0x217)]=_0x4bd962['qGhuV'](getCurrentVersion),this['nodeVersion']=process[_0xcecaef(0x205)],this[_0xcecaef(0x1de)]=process['platform'],this[_0xcecaef(0x209)]=process[_0xcecaef(0x1d8)][_0xcecaef(0x1da)]??![],this['isCI']=!!(process['env']['CI']||process['env'][_0xcecaef(0x1d4)]);}[_0x11da83(0x1e0)](_0x330d1f){const _0x2d7480=_0x11da83;if(_0x330d1f[_0x2d7480(0x216)])this[_0x2d7480(0x216)]=_0x330d1f['featureId'];if(_0x330d1f['checklistItemId'])this['checklistItemId']=_0x330d1f['checklistItemId'];if(_0x330d1f['browserSessionId'])this['browserSessionId']=_0x330d1f['browserSessionId'];}async[_0x11da83(0x1cd)](_0x45ce38){const _0x3ec97b=_0x11da83,_0x2718c9=this['buildEvent']({'eventType':_0x3ec97b(0x212),'metadata':_0x45ce38});await this[_0x3ec97b(0x1df)](_0x2718c9);}async['trackCommandEnd'](_0x26b50e,_0x54dfd3){const _0x49a78a=_0x11da83,_0x513e68={'BUpTb':'command_end','fcrkp':function(_0x801d1d,_0x750361){return _0x801d1d-_0x750361;}},_0x196110=this['buildEvent']({'eventType':_0x513e68[_0x49a78a(0x211)],'outcome':_0x26b50e,'durationMs':_0x513e68[_0x49a78a(0x200)](Date[_0x49a78a(0x1fe)](),this['commandStartTime']),'metadata':_0x54dfd3});await this[_0x49a78a(0x1df)](_0x196110),await this['flush']();}async[_0x11da83(0x1cc)](_0x3dd8e6,_0x2b12d4){const _0x414da9=_0x11da83,_0x6125ab={'bLQoy':function(_0x3cadd0,_0x40ddec,_0x1ced30){return _0x3cadd0(_0x40ddec,_0x1ced30);},'jrwZI':function(_0x4c2a7b,_0x14efca){return _0x4c2a7b instanceof _0x14efca;},'nsJwO':'Unknown'},_0x12cc5b=this[_0x414da9(0x1e6)]({'eventType':'command_error','errorMessage':_0x6125ab[_0x414da9(0x1e8)](truncate,_0x6125ab['jrwZI'](_0x3dd8e6,Error)?_0x3dd8e6['message']:String(_0x3dd8e6),0x1f4),'errorType':_0x3dd8e6 instanceof Error?_0x3dd8e6[_0x414da9(0x1c7)]['name']:_0x6125ab['nsJwO'],'durationMs':Date[_0x414da9(0x1fe)]()-this['commandStartTime'],'metadata':_0x2b12d4});await this[_0x414da9(0x1df)](_0x12cc5b),await this['flush']();}[_0x11da83(0x1db)](_0x3b7b99,_0xdc2567){const _0x33659a=_0x11da83;this[_0x33659a(0x1c6)]++,this[_0x33659a(0x1d7)]['set'](_0x3b7b99,Date[_0x33659a(0x1fe)]());const _0x43e0ef=this['buildEvent']({'eventType':'phase_start','phase':_0x3b7b99,'phaseIndex':this['phaseCounter'],'metadata':_0xdc2567});this[_0x33659a(0x1c4)][_0x33659a(0x1eb)](_0x43e0ef);}[_0x11da83(0x202)](_0x230f26,_0x56e3ca){const _0x18a124=_0x11da83,_0x329c6f={'dskFE':_0x18a124(0x1d9)},_0x1f6427=this['phaseStartTimes'][_0x18a124(0x207)](_0x230f26),_0xa4b340=_0x1f6427?Date[_0x18a124(0x1fe)]()-_0x1f6427:undefined;this[_0x18a124(0x1d7)]['delete'](_0x230f26);const _0x838dce=this[_0x18a124(0x1e6)]({'eventType':_0x329c6f[_0x18a124(0x208)],'phase':_0x230f26,'durationMs':_0xa4b340,'metadata':_0x56e3ca});this[_0x18a124(0x1c4)][_0x18a124(0x1eb)](_0x838dce),this['buffer']['length']>=0xa&&this['flushAsync']();}async[_0x11da83(0x1f9)](_0x4bdadc,_0x2ae1a4,_0x533c6f){const _0x42686f=_0x11da83,_0x260900={'YAMlR':function(_0x99d0cc,_0x45379b){return _0x99d0cc-_0x45379b;},'DbrsU':'phase_error','JeypF':function(_0x2e8664,_0x759be9){return _0x2e8664(_0x759be9);}},_0x49548b=this[_0x42686f(0x1d7)]['get'](_0x4bdadc),_0x37cbbe=_0x49548b?_0x260900[_0x42686f(0x1f5)](Date['now'](),_0x49548b):undefined;this[_0x42686f(0x1d7)]['delete'](_0x4bdadc);const _0xa6c43a=this[_0x42686f(0x1e6)]({'eventType':_0x260900[_0x42686f(0x1f8)],'phase':_0x4bdadc,'durationMs':_0x37cbbe,'errorMessage':truncate(_0x2ae1a4 instanceof Error?_0x2ae1a4['message']:_0x260900['JeypF'](String,_0x2ae1a4),0x1f4),'errorType':_0x2ae1a4 instanceof Error?_0x2ae1a4['constructor'][_0x42686f(0x1dd)]:'Unknown','metadata':_0x533c6f});await this[_0x42686f(0x1df)](_0xa6c43a);}async[_0x11da83(0x1e2)](){const _0x4e6667=_0x11da83,_0x84ec3e={'TFWFi':function(_0x939580,_0x2fd501){return _0x939580===_0x2fd501;}};if(_0x84ec3e[_0x4e6667(0x1f6)](this[_0x4e6667(0x1c4)][_0x4e6667(0x1e3)],0x0))return;const _0x57886a=this['buffer'][_0x4e6667(0x20e)](0x0);try{await this[_0x4e6667(0x1e7)](_0x57886a);}catch{}}[_0x11da83(0x1e6)](_0x47c756){const _0x4ccf55=_0x11da83;return{'eventType':_0x47c756['eventType'],'command':this[_0x4ccf55(0x215)],'commandId':this['commandId'],'deviceId':this[_0x4ccf55(0x1e5)],'timestamp':new Date()[_0x4ccf55(0x1d0)](),'durationMs':_0x47c756[_0x4ccf55(0x1dc)],'phase':_0x47c756[_0x4ccf55(0x1f2)],'phaseIndex':_0x47c756['phaseIndex'],'outcome':_0x47c756['outcome'],'errorMessage':_0x47c756[_0x4ccf55(0x213)],'errorType':_0x47c756[_0x4ccf55(0x1cb)],'featureId':this['featureId'],'checklistItemId':this['checklistItemId'],'browserSessionId':this['browserSessionId'],'evaluation':_0x47c756[_0x4ccf55(0x206)],'cliVersion':this['cliVersion'],'nodeVersion':this[_0x4ccf55(0x20d)],'platform':this['platform'],'cwd':process['cwd'](),'isTty':this['isTty'],'isCI':this[_0x4ccf55(0x210)],'metadata':_0x47c756['metadata']};}async[_0x11da83(0x1df)](_0x2ad2a9){const _0xe73da4=_0x11da83;try{await this[_0xe73da4(0x1e7)]([_0x2ad2a9]);}catch{}}[_0x11da83(0x1e9)](){const _0x898a20=_0x11da83;if(this[_0x898a20(0x1c5)])return;this[_0x898a20(0x1c5)]=this[_0x898a20(0x1e2)]()['finally'](()=>{this['flushing']=null;});}async['sendBatch'](_0x2add5b){const _0x487311=_0x11da83,_0x45759d={'EqJoW':function(_0x34cb37){return _0x34cb37();},'KYGgi':_0x487311(0x1ca),'ZdEWZ':_0x487311(0x1ea),'Oyrvl':'POST','UIWrX':function(_0x2ccea1,_0x4ab9d0){return _0x2ccea1(_0x4ab9d0);}},_0x75f644=await _0x45759d[_0x487311(0x1f3)](getToken)[_0x487311(0x1d5)](()=>null),_0x155496=_0x45759d[_0x487311(0x1f3)](getApiBaseUrl),_0x317e6d={'Content-Type':_0x45759d['KYGgi']};_0x75f644&&(_0x317e6d[_0x45759d['ZdEWZ']]='Bearer\x20'+_0x75f644);const _0x295dfb={'events':_0x2add5b};process[_0x487311(0x1e4)][_0x487311(0x1d1)]&&console[_0x487311(0x1ed)](_0x487311(0x1ce)+_0x2add5b['length']+'\x20event(s)\x20to\x20'+_0x155496+'/api/v1/mcp/cli-telemetry');const _0x3ad640=new AbortController(),_0x2876a6=setTimeout(()=>_0x3ad640['abort'](),0x1388);try{await fetch(_0x155496+_0x487311(0x1d6),{'method':_0x45759d['Oyrvl'],'headers':_0x317e6d,'body':JSON[_0x487311(0x20a)](_0x295dfb),'signal':_0x3ad640['signal']});}finally{_0x45759d['UIWrX'](clearTimeout,_0x2876a6);}}}let currentCollector=null;export function createTelemetryCollector(_0x472863){return currentCollector=new TelemetryCollector(_0x472863),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0x29ecf3,_0x215a32,_0x40d97c){const _0x320eaa=_0x11da83,_0x4ae24c={'hJHQB':function(_0x40c24b,_0x54c4dc){return _0x40c24b(_0x54c4dc);},'xpYYI':function(_0x2a8a52,_0x38390f){return _0x2a8a52(_0x38390f);},'Jrbvc':_0x320eaa(0x1f4)},_0x3ba62c=_0x4ae24c[_0x320eaa(0x1ff)](createTelemetryCollector,_0x29ecf3);await _0x3ba62c[_0x320eaa(0x1cd)](_0x40d97c);try{const _0x178155=await _0x4ae24c['xpYYI'](_0x215a32,_0x3ba62c);return await _0x3ba62c['trackCommandEnd'](_0x4ae24c['Jrbvc']),_0x178155;}catch(_0x280462){await _0x3ba62c[_0x320eaa(0x1cc)](_0x280462);throw _0x280462;}finally{await _0x3ba62c[_0x320eaa(0x1e2)]();}}function truncate(_0x3f19be,_0x4ca86f){const _0xd7a7c7=_0x11da83,_0x5d4b9b={'lVqsx':function(_0x4857f3,_0x8357f0){return _0x4857f3>_0x8357f0;},'kFTGN':function(_0x3cd4ca,_0x58e574){return _0x3cd4ca+_0x58e574;}};return _0x5d4b9b[_0xd7a7c7(0x1f7)](_0x3f19be[_0xd7a7c7(0x1e3)],_0x4ca86f)?_0x5d4b9b['kFTGN'](_0x3f19be['slice'](0x0,_0x4ca86f),'...'):_0x3f19be;}
1
+ const _0xd721e3=_0x599d;(function(_0x3e8406,_0x15c840){const _0x419d09=_0x599d,_0x49b231=_0x3e8406();while(!![]){try{const _0x5bff1e=parseInt(_0x419d09(0x1da))/0x1*(parseInt(_0x419d09(0x1e2))/0x2)+parseInt(_0x419d09(0x1c2))/0x3*(parseInt(_0x419d09(0x1c9))/0x4)+-parseInt(_0x419d09(0x1e6))/0x5*(-parseInt(_0x419d09(0x1ea))/0x6)+parseInt(_0x419d09(0x1c7))/0x7*(parseInt(_0x419d09(0x1d7))/0x8)+-parseInt(_0x419d09(0x1f2))/0x9*(parseInt(_0x419d09(0x1cb))/0xa)+parseInt(_0x419d09(0x1de))/0xb*(parseInt(_0x419d09(0x1f4))/0xc)+parseInt(_0x419d09(0x1d9))/0xd*(-parseInt(_0x419d09(0x1d4))/0xe);if(_0x5bff1e===_0x15c840)break;else _0x49b231['push'](_0x49b231['shift']());}catch(_0x35cc07){_0x49b231['push'](_0x49b231['shift']());}}}(_0x3cff,0x58fa1));import{randomUUID}from'crypto';import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';import{homedir}from'os';import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{getCurrentVersion}from'./version.js';function _0x3cff(){const _0x348ea3=['flushing','trackCommandError','7UXgXTX','DEBUG','68fSrpTX','evaluation','190AtNBuB','DzfyQ','length','phase_start','trackPhaseEnd','phase_end','jbmTu','isTty','delete','154mRPDkq','command','cliVersion','687928qliMsO','constructor','656383JzHHxi','339237XJjhJz','error','mgSCE','signal','11Cbbgrz','set','HHQGa','GITHUB_ACTIONS','4AiOLNS','KwSFx','stringify','ozSsf','550NcAJby','trim','trackPhaseError','nodeVersion','20226rXsKcl','utf-8','sendBatch','setContext','featureId','stdout','...','errorMessage','153774eNaUUq','gHhHV','1062240uocBlR','Bearer\x20','Unknown','dEsWM','deviceId','name','commandStartTime','platform','flushAsync','checklistItemId','trackCommandStart','now','phaseStartTimes','browserSessionId','commandId','sendImmediate','trackCommandEnd','buildEvent','command_end','phaseCounter','flush','errorType','abort','version','phase_error','eventType','Authorization','itcmD','isCI','durationMs','3651wRjxpY','message','metadata'];_0x3cff=function(){return _0x348ea3;};return _0x3cff();}let cachedDeviceId=null;function getDeviceId(){const _0x702992=_0x599d,_0xa542e2={'dEsWM':function(_0x251fb5,_0x7e9c3f,_0x4e446e){return _0x251fb5(_0x7e9c3f,_0x4e446e);},'nFYUa':'.ranger','nJDLJ':'.session','KTHtb':function(_0x360ef1,_0x2a7f14,_0x21961f){return _0x360ef1(_0x2a7f14,_0x21961f);},'itcmD':function(_0x2183b6){return _0x2183b6();}};if(cachedDeviceId)return cachedDeviceId;try{const _0x434f55=_0xa542e2[_0x702992(0x1f7)](join,homedir(),_0xa542e2['nFYUa']),_0x7fbdf9=join(_0x434f55,_0xa542e2['nJDLJ']);if(existsSync(_0x7fbdf9)){cachedDeviceId=_0xa542e2['KTHtb'](readFileSync,_0x7fbdf9,_0x702992(0x1eb))[_0x702992(0x1e7)]();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=randomUUID(),_0xa542e2[_0x702992(0x1f7)](mkdirSync,_0x434f55,{'recursive':!![]}),writeFileSync(_0x7fbdf9,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=_0xa542e2[_0x702992(0x1bf)](randomUUID),cachedDeviceId;}}export class TelemetryCollector{['buffer']=[];['commandId'];[_0xd721e3(0x1d5)];['commandStartTime'];['phaseCounter']=0x0;[_0xd721e3(0x200)]=new Map();['flushing']=null;[_0xd721e3(0x1f8)];[_0xd721e3(0x1d6)];['nodeVersion'];[_0xd721e3(0x1fb)];['isTty'];['isCI'];[_0xd721e3(0x1ee)];['checklistItemId'];['browserSessionId'];constructor(_0x18e887){const _0x2bafcb=_0xd721e3,_0x53999d={'ozSsf':function(_0x1de6b7){return _0x1de6b7();}};this[_0x2bafcb(0x202)]=randomUUID(),this[_0x2bafcb(0x1d5)]=_0x18e887,this['commandStartTime']=Date['now'](),this['deviceId']=getDeviceId(),this[_0x2bafcb(0x1d6)]=_0x53999d[_0x2bafcb(0x1e5)](getCurrentVersion),this['nodeVersion']=process[_0x2bafcb(0x1bb)],this['platform']=process[_0x2bafcb(0x1fb)],this[_0x2bafcb(0x1d2)]=process[_0x2bafcb(0x1ef)]['isTTY']??![],this[_0x2bafcb(0x1c0)]=!!(process['env']['CI']||process['env'][_0x2bafcb(0x1e1)]);}[_0xd721e3(0x1ed)](_0x5b1847){const _0x2b70af=_0xd721e3;if(_0x5b1847['featureId'])this[_0x2b70af(0x1ee)]=_0x5b1847[_0x2b70af(0x1ee)];if(_0x5b1847[_0x2b70af(0x1fd)])this[_0x2b70af(0x1fd)]=_0x5b1847[_0x2b70af(0x1fd)];if(_0x5b1847['browserSessionId'])this[_0x2b70af(0x201)]=_0x5b1847['browserSessionId'];}async[_0xd721e3(0x1fe)](_0x5b56bf){const _0x3b4fd9=_0xd721e3,_0x101529={'UGaZs':'command_start'},_0x3788c0=this[_0x3b4fd9(0x1b5)]({'eventType':_0x101529['UGaZs'],'metadata':_0x5b56bf});await this['sendImmediate'](_0x3788c0);}async['trackCommandEnd'](_0x5c3bc7,_0x118cf3){const _0x36816f=_0xd721e3,_0x2c5b5a=this['buildEvent']({'eventType':_0x36816f(0x1b6),'outcome':_0x5c3bc7,'durationMs':Date[_0x36816f(0x1ff)]()-this[_0x36816f(0x1fa)],'metadata':_0x118cf3});await this[_0x36816f(0x203)](_0x2c5b5a),await this['flush']();}async['trackCommandError'](_0x3dda7d,_0x2840bc){const _0x4d8cca=_0xd721e3,_0x18b259={'dLsuZ':'command_error','mgSCE':function(_0x54088b,_0x3d6123,_0xbb6fce){return _0x54088b(_0x3d6123,_0xbb6fce);},'vTrpq':function(_0x4367ea,_0x2d987c){return _0x4367ea instanceof _0x2d987c;}},_0x590ba4=this['buildEvent']({'eventType':_0x18b259['dLsuZ'],'errorMessage':_0x18b259[_0x4d8cca(0x1dc)](truncate,_0x18b259['vTrpq'](_0x3dda7d,Error)?_0x3dda7d[_0x4d8cca(0x1c3)]:String(_0x3dda7d),0x1f4),'errorType':_0x18b259['vTrpq'](_0x3dda7d,Error)?_0x3dda7d['constructor']['name']:_0x4d8cca(0x1f6),'durationMs':Date['now']()-this['commandStartTime'],'metadata':_0x2840bc});await this[_0x4d8cca(0x203)](_0x590ba4),await this['flush']();}['trackPhaseStart'](_0x39be8b,_0x480eec){const _0x1bf6d5=_0xd721e3,_0x505e57={'gHhHV':_0x1bf6d5(0x1ce)};this[_0x1bf6d5(0x1b7)]++,this[_0x1bf6d5(0x200)][_0x1bf6d5(0x1df)](_0x39be8b,Date['now']());const _0xdef374=this['buildEvent']({'eventType':_0x505e57[_0x1bf6d5(0x1f3)],'phase':_0x39be8b,'phaseIndex':this['phaseCounter'],'metadata':_0x480eec});this['buffer']['push'](_0xdef374);}[_0xd721e3(0x1cf)](_0xb5f2bd,_0x1981d3){const _0x32d623=_0xd721e3,_0x135832={'bsoLH':_0x32d623(0x1d0),'DzfyQ':function(_0x184d6e,_0x295892){return _0x184d6e>=_0x295892;}},_0x5696d2=this[_0x32d623(0x200)]['get'](_0xb5f2bd),_0x40a7b2=_0x5696d2?Date[_0x32d623(0x1ff)]()-_0x5696d2:undefined;this['phaseStartTimes']['delete'](_0xb5f2bd);const _0x3db438=this['buildEvent']({'eventType':_0x135832['bsoLH'],'phase':_0xb5f2bd,'durationMs':_0x40a7b2,'metadata':_0x1981d3});this['buffer']['push'](_0x3db438),_0x135832[_0x32d623(0x1cc)](this['buffer']['length'],0xa)&&this[_0x32d623(0x1fc)]();}async[_0xd721e3(0x1e8)](_0x2bfdd7,_0x537609,_0x161d41){const _0xaa3e71=_0xd721e3,_0x29c852={'lNBEF':function(_0x250380,_0x581ead){return _0x250380-_0x581ead;},'KwSFx':_0xaa3e71(0x1bc),'tFEiR':function(_0x468bd0,_0xc458f3){return _0x468bd0 instanceof _0xc458f3;},'HHQGa':function(_0x1e74e7,_0x24e30b){return _0x1e74e7 instanceof _0x24e30b;}},_0x54da9d=this[_0xaa3e71(0x200)]['get'](_0x2bfdd7),_0x3e41a2=_0x54da9d?_0x29c852['lNBEF'](Date['now'](),_0x54da9d):undefined;this[_0xaa3e71(0x200)][_0xaa3e71(0x1d3)](_0x2bfdd7);const _0x480d53=this['buildEvent']({'eventType':_0x29c852[_0xaa3e71(0x1e3)],'phase':_0x2bfdd7,'durationMs':_0x3e41a2,'errorMessage':truncate(_0x29c852['tFEiR'](_0x537609,Error)?_0x537609['message']:String(_0x537609),0x1f4),'errorType':_0x29c852[_0xaa3e71(0x1e0)](_0x537609,Error)?_0x537609[_0xaa3e71(0x1d8)][_0xaa3e71(0x1f9)]:'Unknown','metadata':_0x161d41});await this['sendImmediate'](_0x480d53);}async[_0xd721e3(0x1b8)](){const _0x4d0536=_0xd721e3;if(this['buffer'][_0x4d0536(0x1cd)]===0x0)return;const _0x39f8d0=this['buffer']['splice'](0x0);try{await this[_0x4d0536(0x1ec)](_0x39f8d0);}catch{}}['buildEvent'](_0x5c644d){const _0x494812=_0xd721e3;return{'eventType':_0x5c644d[_0x494812(0x1bd)],'command':this['command'],'commandId':this[_0x494812(0x202)],'deviceId':this['deviceId'],'timestamp':new Date()['toISOString'](),'durationMs':_0x5c644d[_0x494812(0x1c1)],'phase':_0x5c644d['phase'],'phaseIndex':_0x5c644d['phaseIndex'],'outcome':_0x5c644d['outcome'],'errorMessage':_0x5c644d[_0x494812(0x1f1)],'errorType':_0x5c644d[_0x494812(0x1b9)],'featureId':this[_0x494812(0x1ee)],'checklistItemId':this['checklistItemId'],'browserSessionId':this['browserSessionId'],'evaluation':_0x5c644d[_0x494812(0x1ca)],'cliVersion':this[_0x494812(0x1d6)],'nodeVersion':this[_0x494812(0x1e9)],'platform':this[_0x494812(0x1fb)],'cwd':process['cwd'](),'isTty':this[_0x494812(0x1d2)],'isCI':this[_0x494812(0x1c0)],'metadata':_0x5c644d[_0x494812(0x1c4)]};}async['sendImmediate'](_0x2de5a8){try{await this['sendBatch']([_0x2de5a8]);}catch{}}['flushAsync'](){const _0x12b83f=_0xd721e3;if(this[_0x12b83f(0x1c5)])return;this['flushing']=this['flush']()['finally'](()=>{const _0x591024=_0x12b83f;this[_0x591024(0x1c5)]=null;});}async['sendBatch'](_0x56f016){const _0x47964c=_0xd721e3,_0x461bdb={'PTTkP':function(_0x50b82d,_0x4550e1,_0x246e1d){return _0x50b82d(_0x4550e1,_0x246e1d);},'YeXfw':function(_0x2772ae,_0x1593c2){return _0x2772ae(_0x1593c2);}},_0x56b2b1=await getToken()['catch'](()=>null),_0x1d43c9=getApiBaseUrl(),_0x3f4c70={'Content-Type':'application/json'};_0x56b2b1&&(_0x3f4c70[_0x47964c(0x1be)]=_0x47964c(0x1f5)+_0x56b2b1);const _0x439b91={'events':_0x56f016};process['env'][_0x47964c(0x1c8)]&&console[_0x47964c(0x1db)]('[telemetry]\x20Sending\x20'+_0x56f016['length']+'\x20event(s)\x20to\x20'+_0x1d43c9+'/api/v1/mcp/cli-telemetry');const _0x28ee89=new AbortController(),_0x16f1c3=_0x461bdb['PTTkP'](setTimeout,()=>_0x28ee89[_0x47964c(0x1ba)](),0x1388);try{await fetch(_0x1d43c9+'/api/v1/mcp/cli-telemetry',{'method':'POST','headers':_0x3f4c70,'body':JSON[_0x47964c(0x1e4)](_0x439b91),'signal':_0x28ee89[_0x47964c(0x1dd)]});}finally{_0x461bdb['YeXfw'](clearTimeout,_0x16f1c3);}}}let currentCollector=null;export function createTelemetryCollector(_0x5bef2b){return currentCollector=new TelemetryCollector(_0x5bef2b),currentCollector;}function _0x599d(_0x908d04,_0x4ecf6b){_0x908d04=_0x908d04-0x1b4;const _0x3cff0b=_0x3cff();let _0x599d37=_0x3cff0b[_0x908d04];return _0x599d37;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0xee4253,_0x417ec3,_0x331bc1){const _0x482b0c=_0xd721e3,_0x46a82f={'rCUgP':'success'},_0x1d0582=createTelemetryCollector(_0xee4253);await _0x1d0582['trackCommandStart'](_0x331bc1);try{const _0x29b8d4=await _0x417ec3(_0x1d0582);return await _0x1d0582[_0x482b0c(0x1b4)](_0x46a82f['rCUgP']),_0x29b8d4;}catch(_0x2b5cc1){await _0x1d0582[_0x482b0c(0x1c6)](_0x2b5cc1);throw _0x2b5cc1;}finally{await _0x1d0582['flush']();}}function truncate(_0x4a3b55,_0x30d49d){const _0x1e8deb=_0xd721e3,_0xc1c25a={'jbmTu':function(_0x53b305,_0x389c09){return _0x53b305>_0x389c09;}};return _0xc1c25a[_0x1e8deb(0x1d1)](_0x4a3b55[_0x1e8deb(0x1cd)],_0x30d49d)?_0x4a3b55['slice'](0x0,_0x30d49d)+_0x1e8deb(0x1f0):_0x4a3b55;}
@@ -1 +1 @@
1
- function _0x5341(_0x1db440,_0x54c2e1){_0x1db440=_0x1db440-0x14b;const _0x3d36fd=_0x3d36();let _0x5341e9=_0x3d36fd[_0x1db440];return _0x5341e9;}(function(_0x50e4b1,_0x4b0d28){const _0xf0d8a0=_0x5341,_0x1f1690=_0x50e4b1();while(!![]){try{const _0x209990=parseInt(_0xf0d8a0(0x174))/0x1+-parseInt(_0xf0d8a0(0x172))/0x2*(-parseInt(_0xf0d8a0(0x169))/0x3)+parseInt(_0xf0d8a0(0x16f))/0x4*(-parseInt(_0xf0d8a0(0x152))/0x5)+-parseInt(_0xf0d8a0(0x153))/0x6+parseInt(_0xf0d8a0(0x16e))/0x7+parseInt(_0xf0d8a0(0x15a))/0x8*(parseInt(_0xf0d8a0(0x165))/0x9)+-parseInt(_0xf0d8a0(0x155))/0xa*(parseInt(_0xf0d8a0(0x14f))/0xb);if(_0x209990===_0x4b0d28)break;else _0x1f1690['push'](_0x1f1690['shift']());}catch(_0x1c1bc7){_0x1f1690['push'](_0x1f1690['shift']());}}}(_0x3d36,0x5f5eb));import{readdir,readFile}from'fs/promises';import{join}from'path';export async function mapStepsToTraceSnapshots(_0x2ca002,_0x574902){const _0x45de55=_0x5341,_0x12f5a9={'tjnvu':function(_0x2abf4d,_0x186bf8,_0x4e1c40){return _0x2abf4d(_0x186bf8,_0x4e1c40);},'cCxUC':function(_0x1114b1,_0x226440){return _0x1114b1(_0x226440);},'OHXTz':function(_0x3bf38b,_0x402e8f){return _0x3bf38b===_0x402e8f;},'ltayG':function(_0x50ae75,_0x55ede4,_0x544084){return _0x50ae75(_0x55ede4,_0x544084);},'DGMtb':function(_0x2dfd00,_0x19fbbe){return _0x2dfd00-_0x19fbbe;},'QImjz':_0x45de55(0x179),'Sdofb':'input','qTRbG':'after','ituGz':function(_0x3e74df,_0x383662){return _0x3e74df===_0x383662;},'PeNVX':function(_0x34a54e,_0x32032a){return _0x34a54e===_0x32032a;},'LRsuj':'string','MFUAY':function(_0xbebcef,_0x146c0b){return _0xbebcef===_0x146c0b;},'DmxnZ':'event','RaIxY':function(_0x5ad999,_0x1a70e4){return _0x5ad999-_0x1a70e4;},'tRikm':function(_0xa97a7,_0x48647f){return _0xa97a7-_0x48647f;},'Slpvj':function(_0x3bc055,_0x1cfda6){return _0x3bc055<_0x1cfda6;},'RbpSe':'page@0','htNDa':'goto','RzsZM':function(_0x9eda58,_0x5631f2){return _0x9eda58>=_0x5631f2;},'GmxKP':function(_0x3ed8ce,_0x311cce){return _0x3ed8ce<_0x311cce;},'qLzXO':function(_0x4a4373,_0x593e6b){return _0x4a4373-_0x593e6b;}},_0x29a734=new Map();if(_0x574902['length']===0x0)return _0x29a734;const _0x3e04d8=[],_0x520ee5=async _0x46fca2=>{const _0x4abdbe=_0x45de55,_0x5fc043=await _0x12f5a9['tjnvu'](readdir,_0x46fca2,{'withFileTypes':!![]});for(const _0x476a5a of _0x5fc043){const _0x2b907b=join(_0x46fca2,_0x476a5a[_0x4abdbe(0x15e)]);if(_0x476a5a['isDirectory']())await _0x12f5a9[_0x4abdbe(0x170)](_0x520ee5,_0x2b907b);else _0x476a5a['name']['endsWith'](_0x4abdbe(0x150))&&_0x3e04d8[_0x4abdbe(0x167)](_0x2b907b);}};await _0x520ee5(_0x2ca002);if(_0x12f5a9['OHXTz'](_0x3e04d8[_0x45de55(0x166)],0x0))return _0x29a734;const _0x4a4f15=[];for(const _0x169389 of _0x3e04d8){const _0x4a82ed=await _0x12f5a9['ltayG'](readFile,_0x169389,_0x45de55(0x14c)),_0x549deb=_0x4a82ed['split']('\x0a')['filter'](_0x4796fc=>_0x4796fc['trim']());for(const _0x5c35dd of _0x549deb){try{_0x4a4f15['push'](JSON['parse'](_0x5c35dd));}catch{}}}if(_0x4a4f15[_0x45de55(0x166)]===0x0)return _0x29a734;const _0x2ade70=_0x4a4f15['find'](_0xa53c9=>_0xa53c9[_0x45de55(0x160)]==='context-options');if(!_0x2ade70)return _0x29a734;const _0x2f0e25=_0x12f5a9[_0x45de55(0x16b)](_0x2ade70['wallTime'],_0x2ade70['monotonicTime']),_0x14139f=new Map();for(const _0x27cb63 of _0x4a4f15){switch(_0x27cb63['type']){case _0x12f5a9['QImjz']:{const _0x1cdd4d=_0x27cb63;_0x14139f[_0x45de55(0x16a)](_0x1cdd4d[_0x45de55(0x171)],{'callId':_0x1cdd4d[_0x45de55(0x171)],'startTime':_0x1cdd4d[_0x45de55(0x14b)],'endTime':0x0,'method':_0x1cdd4d['method'],'apiName':_0x1cdd4d[_0x45de55(0x164)],'params':_0x1cdd4d['params'],'pageId':_0x1cdd4d[_0x45de55(0x168)],'beforeSnapshot':_0x1cdd4d['beforeSnapshot']});break;}case _0x12f5a9[_0x45de55(0x178)]:{const _0x1aeead=_0x27cb63,_0x207306=_0x14139f['get'](_0x1aeead[_0x45de55(0x171)]);if(_0x207306){if(_0x1aeead['inputSnapshot'])_0x207306[_0x45de55(0x156)]=_0x1aeead['inputSnapshot'];if(_0x1aeead['point'])_0x207306['point']=_0x1aeead['point'];}break;}case _0x12f5a9['qTRbG']:{const _0x516463=_0x27cb63,_0x4c5a15=_0x14139f['get'](_0x516463[_0x45de55(0x171)]);if(_0x4c5a15){_0x4c5a15[_0x45de55(0x175)]=_0x516463['endTime'];if(_0x516463[_0x45de55(0x15c)])_0x4c5a15['afterSnapshot']=_0x516463['afterSnapshot'];}break;}}}const _0x478e68=Array['from'](_0x14139f['values']())['filter'](_0x3b03cf=>_0x3b03cf['endTime']>0x0&&(_0x3b03cf[_0x45de55(0x15c)]||_0x3b03cf['beforeSnapshot']))['sort']((_0x20fdd0,_0x1367c5)=>_0x20fdd0['startTime']-_0x1367c5[_0x45de55(0x14b)]);if(_0x12f5a9['ituGz'](_0x478e68[_0x45de55(0x166)],0x0))return _0x29a734;const _0x57e9e5=new Map();for(const _0x4a646c of _0x4a4f15){if(_0x12f5a9['PeNVX'](_0x4a646c[_0x45de55(0x160)],'frame-snapshot')){const _0x419271=_0x4a646c[_0x45de55(0x14d)];_0x419271?.[_0x45de55(0x176)]&&_0x419271?.[_0x45de55(0x16c)]&&_0x57e9e5[_0x45de55(0x16a)](_0x419271['snapshotName'],_0x419271[_0x45de55(0x16c)]);}}const _0x173cd9=new Map();for(const _0x2e9218 of _0x478e68){const _0x2b960d=_0x2e9218['params']?.['url'];_0x2e9218['method']==='goto'&&_0x12f5a9[_0x45de55(0x177)](typeof _0x2b960d,_0x12f5a9[_0x45de55(0x154)])&&_0x2e9218['pageId']&&_0x173cd9['set'](_0x2e9218[_0x45de55(0x168)],_0x2b960d);}for(const _0x1ee3eb of _0x4a4f15){const _0xcad744=_0x1ee3eb,_0x1acc98=_0xcad744['params'],_0x4e0a9e=_0x1acc98?.[_0x45de55(0x15d)];_0x12f5a9[_0x45de55(0x161)](_0xcad744[_0x45de55(0x160)],_0x12f5a9['DmxnZ'])&&_0x12f5a9[_0x45de55(0x15f)](_0xcad744[_0x45de55(0x15b)],'navigated')&&typeof _0x4e0a9e===_0x12f5a9['LRsuj']&&_0x12f5a9[_0x45de55(0x161)](typeof _0xcad744['pageId'],_0x12f5a9[_0x45de55(0x154)])&&_0x173cd9[_0x45de55(0x16a)](_0xcad744['pageId'],_0x4e0a9e);}for(const _0x23f83f of _0x574902){const _0x400edf=new Date(_0x23f83f[_0x45de55(0x14e)])[_0x45de55(0x157)](),_0x351979=_0x12f5a9['RaIxY'](_0x400edf,_0x2f0e25);let _0xd2ef07=null,_0x5cc43e=Infinity;for(const _0x169eae of _0x478e68){const _0x16ae43=Math[_0x45de55(0x163)](_0x12f5a9['tRikm'](_0x169eae[_0x45de55(0x175)],_0x351979));_0x12f5a9[_0x45de55(0x162)](_0x16ae43,_0x5cc43e)&&(_0x5cc43e=_0x16ae43,_0xd2ef07=_0x169eae);}if(!_0xd2ef07)continue;const _0x1ed6dd=_0xd2ef07['afterSnapshot']||_0xd2ef07['beforeSnapshot'];if(!_0x1ed6dd)continue;const _0x4c93ec=_0xd2ef07['pageId']||_0x12f5a9[_0x45de55(0x159)];let _0x168d8b=_0x57e9e5['get'](_0x1ed6dd)||_0x173cd9[_0x45de55(0x16d)](_0x4c93ec)||'';if(!_0x168d8b)for(let _0x5b1a4b=_0x478e68['indexOf'](_0xd2ef07);_0x5b1a4b>=0x0;_0x5b1a4b--){const _0x352f0d=_0x478e68[_0x5b1a4b][_0x45de55(0x173)]?.[_0x45de55(0x15d)];if(_0x478e68[_0x5b1a4b][_0x45de55(0x15b)]===_0x12f5a9[_0x45de55(0x151)]&&_0x12f5a9[_0x45de55(0x15f)](typeof _0x352f0d,_0x12f5a9['LRsuj'])){_0x168d8b=_0x352f0d;break;}}let _0x4938e5,_0x38bf34;const _0x43240d=_0x478e68['indexOf'](_0xd2ef07);if(_0x12f5a9['RzsZM'](_0x43240d,0x0)&&_0x12f5a9['GmxKP'](_0x43240d,_0x12f5a9['qLzXO'](_0x478e68[_0x45de55(0x166)],0x1))){const _0x21ec1a=_0x478e68[_0x43240d+0x1];_0x21ec1a['point']&&_0x21ec1a['inputSnapshot']&&(_0x4938e5=_0x21ec1a['point'],_0x38bf34=_0x21ec1a[_0x45de55(0x156)]);}_0x29a734['set'](_0x23f83f[_0x45de55(0x158)],{'snapshotName':_0x1ed6dd,'inputSnapshotName':_0x38bf34,'pageId':_0x4c93ec,'pageUrl':_0x168d8b,'callId':_0xd2ef07['callId'],'point':_0x4938e5});}return _0x29a734;}function _0x3d36(){const _0x2ce870=['DGMtb','frameUrl','get','4464285NoEVmd','1784tVlfhl','cCxUC','callId','2AbcxQf','params','77073GSRbdr','endTime','snapshotName','PeNVX','Sdofb','before','startTime','utf-8','snapshot','capturedAt','4609wyVjME','.trace','htNDa','7635ypjbXz','2570610ElyVfl','LRsuj','2920UZikXm','inputSnapshot','getTime','stepId','RbpSe','76528yTNvwj','method','afterSnapshot','url','name','ituGz','type','MFUAY','Slpvj','abs','apiName','369zoFKyT','length','push','pageId','1546278Etflgh','set'];_0x3d36=function(){return _0x2ce870;};return _0x3d36();}
1
+ (function(_0x2148cf,_0x44e6d0){const _0x4b3544=_0x1ba0,_0x449fc8=_0x2148cf();while(!![]){try{const _0x51c67d=-parseInt(_0x4b3544(0xe5))/0x1+parseInt(_0x4b3544(0xd3))/0x2*(-parseInt(_0x4b3544(0xc6))/0x3)+-parseInt(_0x4b3544(0xcb))/0x4+-parseInt(_0x4b3544(0xd6))/0x5*(parseInt(_0x4b3544(0xe7))/0x6)+-parseInt(_0x4b3544(0xd4))/0x7*(parseInt(_0x4b3544(0xd1))/0x8)+-parseInt(_0x4b3544(0xd9))/0x9+parseInt(_0x4b3544(0xc1))/0xa*(parseInt(_0x4b3544(0xc9))/0xb);if(_0x51c67d===_0x44e6d0)break;else _0x449fc8['push'](_0x449fc8['shift']());}catch(_0x37845e){_0x449fc8['push'](_0x449fc8['shift']());}}}(_0x1e97,0xe4bb8));function _0x1e97(){const _0x438f6f=['navigated','212900KMUzwF','push','pageId','split','lJzhT','beforeSnapshot','963488TqGrnB','qSYga','10dwYQqv','49XDGnrJ','Bxsyb','454590IhdWBe','string','trim','2931849OIHvDc','EGnCt','cqibB','filter','length','params','snapshotName','inputSnapshot','values','afterSnapshot','indexOf','getTime','874039AAMLle','page@0','54GLoRYH','point','from','KXWgt','OZcmB','type','callId','context-options','frameUrl','get','method','startTime','oVANZ','url','5906660nBoJTe','isDirectory','stepId','capturedAt','endTime','170061buPNiJ','wjXEE','set','77vfgNdf'];_0x1e97=function(){return _0x438f6f;};return _0x1e97();}function _0x1ba0(_0x1ae159,_0xb24cdf){_0x1ae159=_0x1ae159-0xb4;const _0x1e97b1=_0x1e97();let _0x1ba0ae=_0x1e97b1[_0x1ae159];return _0x1ba0ae;}import{readdir,readFile}from'fs/promises';import{join}from'path';export async function mapStepsToTraceSnapshots(_0x58f91c,_0x3599e1){const _0x4006aa=_0x1ba0,_0x3bf9ad={'wjXEE':function(_0x1f0308,_0x3abd09,_0x1bbc2e){return _0x1f0308(_0x3abd09,_0x1bbc2e);},'OZcmB':function(_0x3bda14,_0x89b68b){return _0x3bda14(_0x89b68b);},'BiLja':function(_0x1feff2,_0x5a6b71){return _0x1feff2===_0x5a6b71;},'dIiIx':'utf-8','ZLyGJ':function(_0x5a1118,_0xd5fafb){return _0x5a1118===_0xd5fafb;},'oVANZ':function(_0x287bf5,_0x3a7257){return _0x287bf5-_0x3a7257;},'cqibB':'before','EGnCt':'after','QMEYw':'goto','HLZmM':function(_0x3fbc54,_0x4a6c99){return _0x3fbc54===_0x4a6c99;},'qSYga':_0x4006aa(0xca),'lJzhT':_0x4006aa(0xd7),'Bxsyb':_0x4006aa(0xe6),'KXWgt':function(_0x9d4275,_0x203084){return _0x9d4275+_0x203084;}},_0x5f219c=new Map();if(_0x3599e1['length']===0x0)return _0x5f219c;const _0x121fbf=[],_0x1831d9=async _0x4d0900=>{const _0x5401df=_0x4006aa,_0x1764e7=await _0x3bf9ad[_0x5401df(0xc7)](readdir,_0x4d0900,{'withFileTypes':!![]});for(const _0x3847d0 of _0x1764e7){const _0xaf4785=_0x3bf9ad['wjXEE'](join,_0x4d0900,_0x3847d0['name']);if(_0x3847d0[_0x5401df(0xc2)]())await _0x1831d9(_0xaf4785);else _0x3847d0['name']['endsWith']('.trace')&&_0x121fbf[_0x5401df(0xcc)](_0xaf4785);}};await _0x3bf9ad[_0x4006aa(0xb7)](_0x1831d9,_0x58f91c);if(_0x3bf9ad['BiLja'](_0x121fbf['length'],0x0))return _0x5f219c;const _0x5fee58=[];for(const _0x2f14fa of _0x121fbf){const _0x481251=await readFile(_0x2f14fa,_0x3bf9ad['dIiIx']),_0x1f2923=_0x481251[_0x4006aa(0xce)]('\x0a')[_0x4006aa(0xdc)](_0x788d33=>_0x788d33[_0x4006aa(0xd8)]());for(const _0x50446b of _0x1f2923){try{_0x5fee58['push'](JSON['parse'](_0x50446b));}catch{}}}if(_0x3bf9ad['ZLyGJ'](_0x5fee58[_0x4006aa(0xdd)],0x0))return _0x5f219c;const _0x477409=_0x5fee58['find'](_0x34841d=>_0x34841d[_0x4006aa(0xb8)]===_0x4006aa(0xba));if(!_0x477409)return _0x5f219c;const _0x14ef36=_0x3bf9ad[_0x4006aa(0xbf)](_0x477409['wallTime'],_0x477409['monotonicTime']),_0x234dea=new Map();for(const _0x46ab38 of _0x5fee58){switch(_0x46ab38['type']){case _0x3bf9ad[_0x4006aa(0xdb)]:{const _0x4c1f20=_0x46ab38;_0x234dea[_0x4006aa(0xc8)](_0x4c1f20[_0x4006aa(0xb9)],{'callId':_0x4c1f20[_0x4006aa(0xb9)],'startTime':_0x4c1f20[_0x4006aa(0xbe)],'endTime':0x0,'method':_0x4c1f20[_0x4006aa(0xbd)],'apiName':_0x4c1f20['apiName'],'params':_0x4c1f20[_0x4006aa(0xde)],'pageId':_0x4c1f20[_0x4006aa(0xcd)],'beforeSnapshot':_0x4c1f20[_0x4006aa(0xd0)]});break;}case'input':{const _0xbc0c68=_0x46ab38,_0x54e4b5=_0x234dea[_0x4006aa(0xbc)](_0xbc0c68['callId']);if(_0x54e4b5){if(_0xbc0c68[_0x4006aa(0xe0)])_0x54e4b5['inputSnapshot']=_0xbc0c68['inputSnapshot'];if(_0xbc0c68[_0x4006aa(0xb4)])_0x54e4b5[_0x4006aa(0xb4)]=_0xbc0c68['point'];}break;}case _0x3bf9ad[_0x4006aa(0xda)]:{const _0x573d30=_0x46ab38,_0x3b786f=_0x234dea['get'](_0x573d30[_0x4006aa(0xb9)]);if(_0x3b786f){_0x3b786f['endTime']=_0x573d30['endTime'];if(_0x573d30['afterSnapshot'])_0x3b786f['afterSnapshot']=_0x573d30[_0x4006aa(0xe2)];}break;}}}const _0x3b3260=Array[_0x4006aa(0xb5)](_0x234dea[_0x4006aa(0xe1)]())[_0x4006aa(0xdc)](_0x42ee89=>_0x42ee89['endTime']>0x0&&(_0x42ee89[_0x4006aa(0xe2)]||_0x42ee89['beforeSnapshot']))['sort']((_0x235f9e,_0xa3f8ec)=>_0x235f9e[_0x4006aa(0xbe)]-_0xa3f8ec['startTime']);if(_0x3b3260['length']===0x0)return _0x5f219c;const _0x109da8=new Map();for(const _0x551c4a of _0x5fee58){if(_0x3bf9ad['ZLyGJ'](_0x551c4a['type'],'frame-snapshot')){const _0x29e253=_0x551c4a['snapshot'];_0x29e253?.[_0x4006aa(0xdf)]&&_0x29e253?.['frameUrl']&&_0x109da8[_0x4006aa(0xc8)](_0x29e253[_0x4006aa(0xdf)],_0x29e253[_0x4006aa(0xbb)]);}}const _0xade514=new Map();for(const _0x4d946c of _0x3b3260){const _0x152c12=_0x4d946c['params']?.['url'];_0x3bf9ad['BiLja'](_0x4d946c['method'],_0x3bf9ad['QMEYw'])&&_0x3bf9ad['HLZmM'](typeof _0x152c12,'string')&&_0x4d946c[_0x4006aa(0xcd)]&&_0xade514[_0x4006aa(0xc8)](_0x4d946c[_0x4006aa(0xcd)],_0x152c12);}for(const _0xc72c6a of _0x5fee58){const _0xb7122=_0xc72c6a,_0x2dbb3b=_0xb7122['params'],_0x4604c6=_0x2dbb3b?.[_0x4006aa(0xc0)];_0xb7122['type']==='event'&&_0xb7122['method']===_0x3bf9ad[_0x4006aa(0xd2)]&&_0x3bf9ad['BiLja'](typeof _0x4604c6,_0x3bf9ad[_0x4006aa(0xcf)])&&typeof _0xb7122[_0x4006aa(0xcd)]===_0x3bf9ad[_0x4006aa(0xcf)]&&_0xade514[_0x4006aa(0xc8)](_0xb7122[_0x4006aa(0xcd)],_0x4604c6);}for(const _0x38cdb5 of _0x3599e1){const _0x4ad894=new Date(_0x38cdb5[_0x4006aa(0xc4)])[_0x4006aa(0xe4)](),_0x26092a=_0x4ad894-_0x14ef36;let _0x3f65f6=null,_0x5c5aad=Infinity;for(const _0x2c6547 of _0x3b3260){const _0x5a90b3=Math['abs'](_0x2c6547[_0x4006aa(0xc5)]-_0x26092a);_0x5a90b3<_0x5c5aad&&(_0x5c5aad=_0x5a90b3,_0x3f65f6=_0x2c6547);}if(!_0x3f65f6)continue;const _0x16ccf1=_0x3f65f6[_0x4006aa(0xe2)]||_0x3f65f6[_0x4006aa(0xd0)];if(!_0x16ccf1)continue;const _0x13e0d5=_0x3f65f6[_0x4006aa(0xcd)]||_0x3bf9ad[_0x4006aa(0xd5)];let _0x59f1a0=_0x109da8['get'](_0x16ccf1)||_0xade514['get'](_0x13e0d5)||'';if(!_0x59f1a0)for(let _0x4dfb39=_0x3b3260['indexOf'](_0x3f65f6);_0x4dfb39>=0x0;_0x4dfb39--){const _0x50b9f1=_0x3b3260[_0x4dfb39][_0x4006aa(0xde)]?.[_0x4006aa(0xc0)];if(_0x3b3260[_0x4dfb39][_0x4006aa(0xbd)]===_0x3bf9ad['QMEYw']&&_0x3bf9ad['BiLja'](typeof _0x50b9f1,_0x4006aa(0xd7))){_0x59f1a0=_0x50b9f1;break;}}let _0x487f1a,_0x5adc88;const _0x5db8ba=_0x3b3260[_0x4006aa(0xe3)](_0x3f65f6);if(_0x5db8ba>=0x0&&_0x5db8ba<_0x3b3260['length']-0x1){const _0x52eb18=_0x3b3260[_0x3bf9ad[_0x4006aa(0xb6)](_0x5db8ba,0x1)];_0x52eb18[_0x4006aa(0xb4)]&&_0x52eb18[_0x4006aa(0xe0)]&&(_0x487f1a=_0x52eb18[_0x4006aa(0xb4)],_0x5adc88=_0x52eb18[_0x4006aa(0xe0)]);}_0x5f219c[_0x4006aa(0xc8)](_0x38cdb5[_0x4006aa(0xc3)],{'snapshotName':_0x16ccf1,'inputSnapshotName':_0x5adc88,'pageId':_0x13e0d5,'pageUrl':_0x59f1a0,'callId':_0x3f65f6['callId'],'point':_0x487f1a});}return _0x5f219c;}
@@ -1 +1 @@
1
- (function(_0x509b06,_0x4e07ff){const _0x33928b=_0x4685,_0x20fa5f=_0x509b06();while(!![]){try{const _0x264637=parseInt(_0x33928b(0x122))/0x1*(parseInt(_0x33928b(0x118))/0x2)+-parseInt(_0x33928b(0x115))/0x3*(-parseInt(_0x33928b(0x114))/0x4)+-parseInt(_0x33928b(0x11b))/0x5*(-parseInt(_0x33928b(0x120))/0x6)+parseInt(_0x33928b(0x117))/0x7*(parseInt(_0x33928b(0x113))/0x8)+parseInt(_0x33928b(0x11a))/0x9*(parseInt(_0x33928b(0x11d))/0xa)+-parseInt(_0x33928b(0x121))/0xb+-parseInt(_0x33928b(0x11e))/0xc;if(_0x264637===_0x4e07ff)break;else _0x20fa5f['push'](_0x20fa5f['shift']());}catch(_0x13dc71){_0x20fa5f['push'](_0x20fa5f['shift']());}}}(_0x5504,0xf410e));function _0x4685(_0x56b2a7,_0xb1d9a4){_0x56b2a7=_0x56b2a7-0x113;const _0x550488=_0x5504();let _0x468563=_0x550488[_0x56b2a7];return _0x468563;}import{getApiBaseUrl}from'./environment.js';function _0x5504(){const _0x4de7ca=['status','2010DilKSn','23664648aeNJEk','/api/v1/mcp/me','2958078ENVhXk','13299605HTbzXw','89881PxYCLz','json','1369784KyWtte','808408gHGMBO','3TOcsxc','Bearer\x20','63RNHzpU','24yvjLiu','message','38781PTTnTE','5qLNhuC'];_0x5504=function(){return _0x4de7ca;};return _0x5504();}export async function getCurrentUser(_0x243333){const _0x17d687=_0x4685,_0x559d0f={'dcPPB':'GET','SgfWe':function(_0x47d38d,_0x320f73){return _0x47d38d instanceof _0x320f73;},'rCDXm':function(_0x2030b5,_0xb339d0){return _0x2030b5(_0xb339d0);}},_0x23bf3f=getApiBaseUrl();try{const _0x3566c1=await fetch(_0x23bf3f+_0x17d687(0x11f),{'method':_0x559d0f['dcPPB'],'headers':{'Authorization':_0x17d687(0x116)+_0x243333}});if(!_0x3566c1['ok'])return{'success':![],'error':_0x3566c1['status']+'\x20'+_0x3566c1['statusText'],'status':_0x3566c1[_0x17d687(0x11c)]};const _0x2053fd=await _0x3566c1[_0x17d687(0x123)]();return{'success':!![],'user':_0x2053fd};}catch(_0x33f502){return{'success':![],'error':_0x559d0f['SgfWe'](_0x33f502,Error)?_0x33f502[_0x17d687(0x119)]:_0x559d0f['rCDXm'](String,_0x33f502)};}}
1
+ function _0x205e(){const _0x28fd15=['status','Bearer\x20','496112lBJGXC','113912ArIeJl','1614333rVSAFE','message','statusText','60QRpKSh','4GjrTdd','649617lssxmC','3714964ZZgrmm','1358640sNcXed','60985HPqcHS','/api/v1/mcp/me','10mDFSGy','4FUIHKd'];_0x205e=function(){return _0x28fd15;};return _0x205e();}(function(_0x1de66a,_0x48c06f){const _0xa1bf1=_0x20a2,_0x4fb73f=_0x1de66a();while(!![]){try{const _0x446650=-parseInt(_0xa1bf1(0x195))/0x1*(parseInt(_0xa1bf1(0x199))/0x2)+-parseInt(_0xa1bf1(0x18f))/0x3*(-parseInt(_0xa1bf1(0x18e))/0x4)+parseInt(_0xa1bf1(0x192))/0x5*(parseInt(_0xa1bf1(0x19d))/0x6)+-parseInt(_0xa1bf1(0x19a))/0x7+parseInt(_0xa1bf1(0x198))/0x8+-parseInt(_0xa1bf1(0x191))/0x9*(parseInt(_0xa1bf1(0x194))/0xa)+parseInt(_0xa1bf1(0x190))/0xb;if(_0x446650===_0x48c06f)break;else _0x4fb73f['push'](_0x4fb73f['shift']());}catch(_0x3b5d67){_0x4fb73f['push'](_0x4fb73f['shift']());}}}(_0x205e,0x1f74c));import{getApiBaseUrl}from'./environment.js';function _0x20a2(_0x2c58a7,_0x2e1035){_0x2c58a7=_0x2c58a7-0x18e;const _0x205e3f=_0x205e();let _0x20a2a1=_0x205e3f[_0x2c58a7];return _0x20a2a1;}export async function getCurrentUser(_0xce2b26){const _0x192b82=_0x20a2,_0x5a7554={'hwhxF':function(_0x595bd6,_0x4139c4){return _0x595bd6 instanceof _0x4139c4;},'MZjKq':function(_0x553b8e,_0x48dcaf){return _0x553b8e(_0x48dcaf);}},_0x921cbc=getApiBaseUrl();try{const _0x20c481=await fetch(_0x921cbc+_0x192b82(0x193),{'method':'GET','headers':{'Authorization':_0x192b82(0x197)+_0xce2b26}});if(!_0x20c481['ok'])return{'success':![],'error':_0x20c481[_0x192b82(0x196)]+'\x20'+_0x20c481[_0x192b82(0x19c)],'status':_0x20c481[_0x192b82(0x196)]};const _0x4a6b9b=await _0x20c481['json']();return{'success':!![],'user':_0x4a6b9b};}catch(_0x5f0acc){return{'success':![],'error':_0x5a7554['hwhxF'](_0x5f0acc,Error)?_0x5f0acc[_0x192b82(0x19b)]:_0x5a7554['MZjKq'](String,_0x5f0acc)};}}