@ranger-testing/ranger-cli 2.5.4-alpha.ed286f1-2 → 2.5.4-alpha.f940f0d-18

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 (82) hide show
  1. package/README.md +36 -14
  2. package/build/cli.js +1 -1
  3. package/build/commands/addEnv.js +1 -1
  4. package/build/commands/authEncrypt.js +1 -1
  5. package/build/commands/clean.js +1 -1
  6. package/build/commands/config.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -0
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -0
  43. package/build/commands/utils/cloudProfileSession.js +1 -0
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -0
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -0
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -0
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/opencodeConfig.js +1 -1
  58. package/build/commands/utils/playwrightCli.js +1 -1
  59. package/build/commands/utils/profileMessages.js +1 -1
  60. package/build/commands/utils/profileSetupBanner.js +1 -1
  61. package/build/commands/utils/projectsConfig.js +1 -0
  62. package/build/commands/utils/rangerConfig.js +1 -1
  63. package/build/commands/utils/rangerRoot.js +1 -1
  64. package/build/commands/utils/resolveProfileContext.js +1 -0
  65. package/build/commands/utils/resolveProfileUrl.js +1 -0
  66. package/build/commands/utils/retry.js +1 -1
  67. package/build/commands/utils/sessionCache.js +1 -1
  68. package/build/commands/utils/settings.js +1 -1
  69. package/build/commands/utils/skillContent.js +1 -1
  70. package/build/commands/utils/skills.js +1 -1
  71. package/build/commands/utils/stitchWebmFiles.js +1 -1
  72. package/build/commands/utils/telemetry.js +1 -1
  73. package/build/commands/utils/tokenRefresh.js +1 -1
  74. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  75. package/build/commands/utils/userApi.js +1 -1
  76. package/build/commands/utils/version.js +1 -1
  77. package/build/commands/verifyFeature.js +1 -1
  78. package/build/commands/verifyFeatureCli.js +1 -1
  79. package/build/skills/ranger/SKILL.md +36 -6
  80. package/build/skills/ranger/create.md +19 -0
  81. package/build/skills/ranger/verify.md +46 -7
  82. package/package.json +3 -2
@@ -0,0 +1 @@
1
+ (function(_0x216d62,_0x3e039f){const _0x259a39=_0x4447,_0x2b1d4e=_0x216d62();while(!![]){try{const _0x115d7f=parseInt(_0x259a39(0x19c))/0x1*(-parseInt(_0x259a39(0x191))/0x2)+parseInt(_0x259a39(0x189))/0x3*(-parseInt(_0x259a39(0x180))/0x4)+-parseInt(_0x259a39(0x18a))/0x5*(parseInt(_0x259a39(0x182))/0x6)+parseInt(_0x259a39(0x19e))/0x7*(-parseInt(_0x259a39(0x19f))/0x8)+-parseInt(_0x259a39(0x18c))/0x9+-parseInt(_0x259a39(0x186))/0xa+-parseInt(_0x259a39(0x183))/0xb*(-parseInt(_0x259a39(0x184))/0xc);if(_0x115d7f===_0x3e039f)break;else _0x2b1d4e['push'](_0x2b1d4e['shift']());}catch(_0x36aa28){_0x2b1d4e['push'](_0x2b1d4e['shift']());}}}(_0x4070,0xb511d));function _0x4070(){const _0x53904f=['\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','1024191zyzjNb','profile','length','liIkm','string','61378YrMCrk','cftLT','Profile\x20\x22','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','url','\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','name','envStartPath','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','RANGER_TEST_USERNAME','Local\x20profile','13uPGuuz','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','1996708crsLwZ','24mlbTTj','baseUrl','cwd','env','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','resolvedEnv','tOrNx','log','48JjgYiX','startPath','568500KcAyaO','2008633PeCdCe','288bzUgtB','domains','9825250leATkB','cloud','cdpEndpoint','61887DeNGec','55LQnVFz'];_0x4070=function(){return _0x53904f;};return _0x4070();}import{existsSync}from'fs';function _0x4447(_0xf37e41,_0x326476){_0xf37e41=_0xf37e41-0x17c;const _0x40701b=_0x4070();let _0x4447e2=_0x40701b[_0xf37e41];return _0x4447e2;}import _0x334ccb from'inquirer';import{ApiError,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x5acd72){const _0x4fe88e=_0x4447,_0x1039e5={'sTFYx':function(_0x5c1c0f){return _0x5c1c0f();},'VbmtK':function(_0x57acf0,_0x4cffef){return _0x57acf0+_0x4cffef;},'liIkm':function(_0x513380,_0x2251b5){return _0x513380(_0x2251b5);},'MyiXV':function(_0x470ee2,_0x22a7cd){return _0x470ee2(_0x22a7cd);},'NwKdJ':function(_0x34ebb5,_0x803646){return _0x34ebb5===_0x803646;},'ZlPXs':'\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','piONo':'`ranger\x20profile\x20add`\x20to\x20create\x20one.','KWMze':_0x4fe88e(0x187),'cftLT':function(_0x152cab,_0x5c15fe){return _0x152cab(_0x5c15fe);},'YkhfR':function(_0x23b516,_0x31560c){return _0x23b516(_0x31560c);},'tOrNx':function(_0x47789b,_0x46e1d3){return _0x47789b(_0x46e1d3);},'VUGxk':function(_0x2ce4e1){return _0x2ce4e1();}},_0x3ee47b=_0x5acd72['profile'];let _0x5784d3=_0x5acd72['profile']??await readActiveProfileName(),_0x361b06=null;if(!_0x5784d3&&process[_0x4fe88e(0x1a2)][_0x4fe88e(0x19a)]){const _0x49cb7a=await _0x1039e5['sTFYx'](resolveAdHocProfile);_0x49cb7a&&(_0x5784d3=_0x49cb7a[_0x4fe88e(0x197)],_0x361b06=_0x49cb7a[_0x4fe88e(0x18d)]);}if(!_0x5784d3)try{const _0x4d9108=await listCloudProfiles();if(_0x4d9108[_0x4fe88e(0x18e)]===0x1){const _0x47afeb=_0x4d9108[0x0];_0x5784d3=_0x47afeb[_0x4fe88e(0x197)],console[_0x4fe88e(0x17f)]('\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20'+_0x47afeb[_0x4fe88e(0x197)]),console['log']('\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)');}}catch{}if(!_0x5784d3)throw new Error(_0x1039e5['VbmtK'](_0x4fe88e(0x199)+_0x4fe88e(0x17c),_0x4fe88e(0x19d))+_0x4fe88e(0x196)+'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.');const _0x284132=_0x1039e5['liIkm'](getEnvDir,_0x5784d3),_0x1cb7c8=_0x1039e5['MyiXV'](existsSync,_0x284132);let _0x750eb9=_0x361b06,_0x2dfb8a=![];if(!_0x750eb9)try{_0x750eb9=await fetchCloudProfile(_0x5784d3);if(!_0x750eb9)_0x2dfb8a=!![];}catch(_0x1f8f1d){_0x1f8f1d instanceof ApiError&&_0x1039e5['NwKdJ'](_0x1f8f1d['status'],0x194)&&(_0x2dfb8a=!![]);}if(_0x3ee47b&&_0x2dfb8a&&!_0x1cb7c8&&!_0x750eb9)throw new Error(_0x4fe88e(0x193)+_0x3ee47b+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a'+_0x1039e5['ZlPXs']+_0x1039e5['piONo']);if(_0x750eb9&&_0x1cb7c8){let _0x236db9=!![];if(isInteractive()){const {source:_0xe1443}=await _0x334ccb['prompt']([{'type':'list','name':'source','message':'Profile\x20\x22'+_0x5784d3+_0x4fe88e(0x18b),'choices':[{'name':'Cloud\x20profile\x20(recommended)','value':_0x1039e5['KWMze']},{'name':_0x4fe88e(0x19b),'value':'local'}],'default':'cloud'}]);_0x236db9=_0xe1443===_0x4fe88e(0x187);}if(!_0x236db9)_0x750eb9=null;}const _0x25c950=readProfileOverrides(process[_0x4fe88e(0x1a1)](),_0x5784d3);let _0x144212=null,_0x507019,_0x4bb480,_0x30d0f7,_0x370cc6,_0x10b516=null,_0x198e8f;const _0x5f2e13=expandOverrides(_0x25c950);if(_0x750eb9){_0x144212=_0x750eb9;const _0x5c2507=_0x750eb9['settings']??{},_0x3b0cab=mergeCloudProfileSettings(_0x5c2507,_0x25c950??undefined),_0x378d35={..._0x750eb9,'settings':_0x3b0cab},_0x133a5e=process[_0x4fe88e(0x1a2)]['RANGER_SESSION_STATE_PATH'];if(_0x133a5e){if(!_0x1039e5['liIkm'](existsSync,_0x133a5e))throw new Error('RANGER_SESSION_STATE_PATH='+_0x133a5e+'\x20does\x20not\x20exist.');_0x507019=_0x133a5e,_0x4bb480=_0x1039e5[_0x4fe88e(0x192)](resolveEnvVars,_0x3b0cab),_0x30d0f7=_0x1039e5['YkhfR'](Boolean,_0x4bb480['cdpEndpoint']),_0x10b516={'baseUrl':expandString(_0x5c2507['baseUrl']),'startPath':expandString(_0x5c2507['startPath'])};}else{const _0x5e5f9a=await _0x1039e5[_0x4fe88e(0x18f)](resolveCloudProfileSession,_0x378d35);_0x507019=_0x5e5f9a['authPath'],_0x4bb480=resolveEnvVars(_0x3b0cab),_0x30d0f7=Boolean(_0x4bb480[_0x4fe88e(0x188)]),_0x10b516={'baseUrl':_0x1039e5['liIkm'](expandString,_0x5c2507['baseUrl']),'startPath':_0x1039e5[_0x4fe88e(0x192)](expandString,_0x5c2507['startPath'])},_0x198e8f=_0x5e5f9a[_0x4fe88e(0x17d)]?.[_0x4fe88e(0x185)]?.[0x0];}}else{if(!_0x1cb7c8)throw new Error('Profile\x20\x22'+_0x5784d3+'\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x5784d3);const _0x545f9f=await loadSettings(_0x5784d3);_0x4bb480=resolveEnvVars(_0x545f9f),_0x30d0f7=_0x1039e5[_0x4fe88e(0x17e)](Boolean,_0x4bb480['cdpEndpoint']),_0x370cc6=_0x4bb480[_0x4fe88e(0x1a0)];}const _0x39ee7b=_0x1039e5['VUGxk'](readUrlEnvVars),_0xd28f8d=resolveProfileUrl({'flagBaseUrl':_0x5acd72['baseUrl'],'flagStartPath':_0x5acd72['startPath'],'envBaseUrl':_0x39ee7b['envBaseUrl'],'envStartPath':_0x39ee7b[_0x4fe88e(0x198)],'localSettingsBaseUrl':_0x370cc6,'projectOverrides':_0x5f2e13,'cloudSettings':_0x10b516,'authEnvironmentDomain':_0x198e8f}),_0x1a4fe3=_0xd28f8d[_0x4fe88e(0x195)]??_0xd28f8d[_0x4fe88e(0x1a0)];if(!_0x1a4fe3&&!_0x30d0f7)throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0x5784d3+_0x4fe88e(0x194)+_0x5784d3+'\x20baseUrl\x20<url>');return{'activeProfile':_0x5784d3,'resolvedCloudProfile':_0x144212,'cloudAuthPath':_0x507019,'resolvedSettings':_0x4bb480,'isCdpMode':_0x30d0f7,'url':_0x1a4fe3,'startPath':_0xd28f8d[_0x4fe88e(0x181)]};}function expandString(_0xf6e37d){const _0x236fb4=_0x4447,_0x27a0ab={'dmEwB':function(_0x432556,_0x1fa1ea){return _0x432556(_0x1fa1ea);}};if(typeof _0xf6e37d!==_0x236fb4(0x190))return _0xf6e37d;return _0x27a0ab['dmEwB'](resolveEnvVars,_0xf6e37d);}function expandOverrides(_0x9aef33){const _0xf99a57=_0x4447,_0x35b825={'VUdQl':function(_0x4f7f5e,_0x2fc4ed){return _0x4f7f5e(_0x2fc4ed);},'Wimxj':_0xf99a57(0x190)};if(!_0x9aef33)return _0x9aef33;const _0x1d8a1f={..._0x9aef33};return typeof _0x1d8a1f['baseUrl']===_0xf99a57(0x190)&&(_0x1d8a1f['baseUrl']=_0x35b825['VUdQl'](resolveEnvVars,_0x1d8a1f['baseUrl'])),typeof _0x1d8a1f['startPath']===_0x35b825['Wimxj']&&(_0x1d8a1f[_0xf99a57(0x181)]=resolveEnvVars(_0x1d8a1f[_0xf99a57(0x181)])),_0x1d8a1f;}
@@ -0,0 +1 @@
1
+ function _0x7d95(_0x4dc3c9,_0x349d9d){_0x4dc3c9=_0x4dc3c9-0x67;const _0x4ad791=_0x4ad7();let _0x7d95f7=_0x4ad791[_0x4dc3c9];return _0x7d95f7;}(function(_0xb27a23,_0x17e6ff){const _0x359ff8=_0x7d95,_0x25ba06=_0xb27a23();while(!![]){try{const _0x387ab4=-parseInt(_0x359ff8(0x7a))/0x1+-parseInt(_0x359ff8(0x79))/0x2+-parseInt(_0x359ff8(0x7c))/0x3+-parseInt(_0x359ff8(0x6c))/0x4+parseInt(_0x359ff8(0x6e))/0x5*(-parseInt(_0x359ff8(0x7b))/0x6)+parseInt(_0x359ff8(0x6f))/0x7+parseInt(_0x359ff8(0x68))/0x8;if(_0x387ab4===_0x17e6ff)break;else _0x25ba06['push'](_0x25ba06['shift']());}catch(_0x2951f7){_0x25ba06['push'](_0x25ba06['shift']());}}}(_0x4ad7,0x2acf2));function firstDefined(..._0x5d04e7){for(const _0x119bc3 of _0x5d04e7){if(_0x119bc3!==undefined&&_0x119bc3!==null&&_0x119bc3!=='')return _0x119bc3;}return undefined;}function normalizeAuthEnvironmentDomain(_0x17eca1){if(!_0x17eca1)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i['test'](_0x17eca1))return _0x17eca1;return'https://'+_0x17eca1;}export function resolveBaseUrl(_0x3a9695){const _0x133047=_0x7d95,_0x48213b={'bCjlu':function(_0x33efdd,_0x27c59b){return _0x33efdd in _0x27c59b;},'UVIvo':function(_0x39c019,_0x1dd612){return _0x39c019===_0x1dd612;},'WiTtG':_0x133047(0x69),'xwzVP':function(_0x332df4,_0x5df804){return _0x332df4(_0x5df804);}},_0xc8f577=_0x3a9695[_0x133047(0x77)],_0x83aac=!!_0xc8f577&&_0x48213b['bCjlu'](_0x133047(0x6a),_0xc8f577),_0x29a402=_0xc8f577?.[_0x133047(0x6a)],_0x2464c3=!(_0x83aac&&_0x29a402===null);return firstDefined(_0x3a9695[_0x133047(0x75)],_0x3a9695[_0x133047(0x6d)],_0x3a9695['localSettingsBaseUrl'],_0x48213b[_0x133047(0x72)](typeof _0x29a402,_0x48213b['WiTtG'])?_0x29a402:undefined,_0x2464c3?_0x3a9695[_0x133047(0x76)]?.[_0x133047(0x6a)]:undefined,_0x2464c3?_0x48213b['xwzVP'](normalizeAuthEnvironmentDomain,_0x3a9695[_0x133047(0x70)]):undefined);}export function resolveStartPath(_0xe05ea8){const _0xec60c6=_0x7d95,_0x181a02={'NCjXM':function(_0x49116b,_0x279146,_0x36c34d,_0x37f619,_0x519e83){return _0x49116b(_0x279146,_0x36c34d,_0x37f619,_0x519e83);},'yiEpM':function(_0x27dfac,_0x35bb5c){return _0x27dfac===_0x35bb5c;}},_0x32d686=_0xe05ea8['projectOverrides'],_0x210abf=!!_0x32d686&&_0xec60c6(0x71)in _0x32d686,_0x5a7196=_0x32d686?.['startPath'],_0x3e0a3c=!(_0x210abf&&_0x5a7196===null);return _0x181a02['NCjXM'](firstDefined,_0xe05ea8[_0xec60c6(0x6b)],_0xe05ea8[_0xec60c6(0x67)],_0x181a02['yiEpM'](typeof _0x5a7196,'string')?_0x5a7196:undefined,_0x3e0a3c?_0xe05ea8['cloudSettings']?.[_0xec60c6(0x71)]:undefined);}function _0x4ad7(){const _0xe1b7d9=['997252LKhNID','envBaseUrl','29615gwyIKC','1212673LYnBAI','authEnvironmentDomain','startPath','UVIvo','endsWith','startsWith','flagBaseUrl','cloudSettings','projectOverrides','HhMnE','256722UcsCns','32070MBdMtW','258Xwkxue','753621qHTYlN','slice','envStartPath','7341976VCWGKf','string','baseUrl','flagStartPath'];_0x4ad7=function(){return _0xe1b7d9;};return _0x4ad7();}export function joinBaseAndPath(_0x494c04,_0xf98a34){const _0x1e8c35=_0x7d95,_0x98da08={'HhMnE':function(_0x4ce09c,_0x44413e){return _0x4ce09c+_0x44413e;}};if(!_0x494c04)return undefined;if(!_0xf98a34)return _0x494c04;const _0x3c577b=_0x494c04[_0x1e8c35(0x73)]('/')?_0x494c04[_0x1e8c35(0x7d)](0x0,-0x1):_0x494c04,_0x21e204=_0xf98a34[_0x1e8c35(0x74)]('/')?_0xf98a34:_0x98da08[_0x1e8c35(0x78)]('/',_0xf98a34);return _0x3c577b+_0x21e204;}export function resolveProfileUrl(_0x2562c0){const _0x372efa=resolveBaseUrl(_0x2562c0),_0x252ee5=resolveStartPath(_0x2562c0);return{'baseUrl':_0x372efa,'startPath':_0x252ee5,'url':joinBaseAndPath(_0x372efa,_0x252ee5)};}export function readUrlEnvVars(_0x2ae07d=process['env']){return{'envBaseUrl':_0x2ae07d['RANGER_BASE_URL'],'envStartPath':_0x2ae07d['RANGER_START_PATH']};}
@@ -1 +1 @@
1
- (function(_0xad35fb,_0x45105a){const _0x5d5ebc=_0x529e,_0x18033c=_0xad35fb();while(!![]){try{const _0x27b099=parseInt(_0x5d5ebc(0x155))/0x1+parseInt(_0x5d5ebc(0x15d))/0x2*(-parseInt(_0x5d5ebc(0x161))/0x3)+parseInt(_0x5d5ebc(0x160))/0x4+-parseInt(_0x5d5ebc(0x15a))/0x5*(-parseInt(_0x5d5ebc(0x154))/0x6)+parseInt(_0x5d5ebc(0x15c))/0x7*(parseInt(_0x5d5ebc(0x153))/0x8)+-parseInt(_0x5d5ebc(0x15f))/0x9*(parseInt(_0x5d5ebc(0x163))/0xa)+parseInt(_0x5d5ebc(0x159))/0xb*(parseInt(_0x5d5ebc(0x162))/0xc);if(_0x27b099===_0x45105a)break;else _0x18033c['push'](_0x18033c['shift']());}catch(_0x48e66a){_0x18033c['push'](_0x18033c['shift']());}}}(_0x1743,0x72182));function _0x529e(_0xe2462e,_0x2e6ec2){_0xe2462e=_0xe2462e-0x153;const _0x17435e=_0x1743();let _0x529ea5=_0x17435e[_0xe2462e];return _0x529ea5;}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x1743(){const _0x5462a2=['\x20failed\x20(attempt\x20','4316337SzWmFw','1055632wCnwYg','15AqGwHx','7808244JQaEMb','10pkUrbl','712bXtqHI','4158762goQsua','129118FbpbXc','baseDelayMs','WgOHj','pow','11hSOuLq','5qjelhG','error','854twdEWI','320310dQDayP'];_0x1743=function(){return _0x5462a2;};return _0x1743();}export async function withRetry(_0x18c997,_0x29b47e){const _0x18e5d0=_0x529e,_0x1e7f1a={'uwjjh':function(_0x54fc45){return _0x54fc45();},'WgOHj':function(_0x2976e1,_0x48bec8){return _0x2976e1(_0x48bec8);},'GhCNT':function(_0x4b5d82,_0x57f0cd){return _0x4b5d82+_0x57f0cd;}},_0x2b9432=_0x29b47e?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x38b3dc=_0x29b47e?.[_0x18e5d0(0x156)]??DEFAULT_BASE_DELAY_MS;let _0x228d76;for(let _0x4bc3cb=0x0;_0x4bc3cb<=_0x2b9432;_0x4bc3cb++){try{return await _0x1e7f1a['uwjjh'](_0x18c997);}catch(_0x260418){_0x228d76=_0x260418 instanceof Error?_0x260418:new Error(_0x1e7f1a[_0x18e5d0(0x157)](String,_0x260418));if(_0x4bc3cb<_0x2b9432){const _0x102d2b=_0x38b3dc*Math[_0x18e5d0(0x158)](0x2,_0x4bc3cb);_0x29b47e?.['label']&&console[_0x18e5d0(0x15b)](_0x29b47e['label']+_0x18e5d0(0x15e)+_0x1e7f1a['GhCNT'](_0x4bc3cb,0x1)+'/'+(_0x2b9432+0x1)+'),\x20retrying\x20in\x20'+_0x102d2b+'ms...'),await new Promise(_0x4d2e45=>setTimeout(_0x4d2e45,_0x102d2b));}}}throw _0x228d76;}
1
+ function _0x1c60(_0x25288e,_0x482638){_0x25288e=_0x25288e-0x157;const _0x1bb772=_0x1bb7();let _0x1c600a=_0x1bb772[_0x25288e];return _0x1c600a;}function _0x1bb7(){const _0x198178=['2432jHYYSN','1143455OdQggZ','3943224YJdTbW','6969326xvwAZK','8080350QbAnhQ','997CEayMl','916491dyKnAG','130ggZILd','32211YilCYJ','hCAkD','pow','maxRetries','4QvZfAK'];_0x1bb7=function(){return _0x198178;};return _0x1bb7();}(function(_0x1e3f18,_0x431e24){const _0x1ce600=_0x1c60,_0x4e6ddd=_0x1e3f18();while(!![]){try{const _0x1e6cf7=-parseInt(_0x1ce600(0x163))/0x1*(parseInt(_0x1ce600(0x158))/0x2)+parseInt(_0x1ce600(0x157))/0x3+-parseInt(_0x1ce600(0x15d))/0x4*(parseInt(_0x1ce600(0x15f))/0x5)+-parseInt(_0x1ce600(0x160))/0x6+parseInt(_0x1ce600(0x161))/0x7+parseInt(_0x1ce600(0x15e))/0x8*(parseInt(_0x1ce600(0x159))/0x9)+-parseInt(_0x1ce600(0x162))/0xa;if(_0x1e6cf7===_0x431e24)break;else _0x4e6ddd['push'](_0x4e6ddd['shift']());}catch(_0x482b29){_0x4e6ddd['push'](_0x4e6ddd['shift']());}}}(_0x1bb7,0x99e7c));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x2a545f,_0x17d735){const _0x54065e=_0x1c60,_0x5f5b0b={'bAjmG':function(_0x1c8283){return _0x1c8283();},'hCAkD':function(_0x3787a8,_0x1a23de){return _0x3787a8(_0x1a23de);},'mjPZb':function(_0x406a51,_0x2f9e2e){return _0x406a51<_0x2f9e2e;}},_0x27c451=_0x17d735?.[_0x54065e(0x15c)]??DEFAULT_MAX_RETRIES,_0x57bc49=_0x17d735?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x387fa9;for(let _0x314a76=0x0;_0x314a76<=_0x27c451;_0x314a76++){try{return await _0x5f5b0b['bAjmG'](_0x2a545f);}catch(_0x193927){_0x387fa9=_0x193927 instanceof Error?_0x193927:new Error(_0x5f5b0b[_0x54065e(0x15a)](String,_0x193927));if(_0x5f5b0b['mjPZb'](_0x314a76,_0x27c451)){const _0x4c7998=_0x57bc49*Math[_0x54065e(0x15b)](0x2,_0x314a76);_0x17d735?.['label']&&console['error'](_0x17d735['label']+'\x20failed\x20(attempt\x20'+(_0x314a76+0x1)+'/'+(_0x27c451+0x1)+'),\x20retrying\x20in\x20'+_0x4c7998+'ms...'),await new Promise(_0x48fa0c=>setTimeout(_0x48fa0c,_0x4c7998));}}}throw _0x387fa9;}
@@ -1 +1 @@
1
- const _0x517922=_0x2607;function _0xfc8a(){const _0x1c50c7=['branches','ekdrD','7LjyefA','eRZRX','mJkqL','hNTFg','fmEuq','419023OgsDfH','yixBw','toISOString','clear','JEEvo','JfeiX','1052860zSVlGf','770kvILiC','ADyFh','CoeVb','HsEXf','registeredAt','lastEnabledSessionClearedAt','sessions','ZlYGp','existsSync','pipe','writeFileSync','main','5538992PhZHqn','2539074nkqPit','ScydU','.ranger_cache.json','VtOdl','8721558tLDhQY','readFileSync','NNpVk','uhmPl','trim','currentBranch','prompted','pNyHo','oGGLl','IveYN','1mCjGCc','XtqEh','now','NCcJD','785202YwaenG','geYwR','parse','lastStopReminderAt','pgaXu','featureId','utf-8','enabled','JWHaK','4naPolE','dlvWE','FADVX','master','2252742GQiyOg'];_0xfc8a=function(){return _0x1c50c7;};return _0xfc8a();}(function(_0x31d1e0,_0x28bc9a){const _0x44cd3c=_0x2607,_0xe105ce=_0x31d1e0();while(!![]){try{const _0x563f0e=parseInt(_0x44cd3c(0x1b5))/0x1*(parseInt(_0x44cd3c(0x1b9))/0x2)+-parseInt(_0x44cd3c(0x1a7))/0x3+parseInt(_0x44cd3c(0x1c2))/0x4*(parseInt(_0x44cd3c(0x199))/0x5)+-parseInt(_0x44cd3c(0x18b))/0x6*(parseInt(_0x44cd3c(0x18e))/0x7)+-parseInt(_0x44cd3c(0x1a6))/0x8+-parseInt(_0x44cd3c(0x1ab))/0x9+-parseInt(_0x44cd3c(0x19a))/0xa*(-parseInt(_0x44cd3c(0x193))/0xb);if(_0x563f0e===_0x28bc9a)break;else _0xe105ce['push'](_0xe105ce['shift']());}catch(_0x5c694d){_0xe105ce['push'](_0xe105ce['shift']());}}}(_0xfc8a,0x9f71b));import*as _0x1b23ea from'fs';import*as _0x46316f from'path';import*as _0x2dd39d from'os';import{execSync}from'child_process';const CACHE_FILE=_0x46316f['join'](_0x2dd39d['homedir'](),'.claude',_0x517922(0x1a9));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x5de02c=_0x517922,_0x12a7a7={'ScydU':function(_0x1e320e){return _0x1e320e();}};try{if(_0x1b23ea[_0x5de02c(0x1a2)](CACHE_FILE)){const _0x2ad642=JSON[_0x5de02c(0x1bb)](_0x1b23ea[_0x5de02c(0x1ac)](CACHE_FILE,_0x5de02c(0x1bf)));return{'version':0x3,'sessions':_0x2ad642['sessions']||{},'branches':_0x2ad642[_0x5de02c(0x18c)]||{},'lastEnabledSessionClearedAt':_0x2ad642[_0x5de02c(0x19f)]};}}catch{}return _0x12a7a7[_0x5de02c(0x1a8)](createEmptyCache);}function saveCache(_0x28a30b){const _0x14e1ee=_0x517922;try{const _0x4f3c17=_0x46316f['dirname'](CACHE_FILE);!_0x1b23ea['existsSync'](_0x4f3c17)&&_0x1b23ea['mkdirSync'](_0x4f3c17,{'recursive':!![]}),_0x1b23ea[_0x14e1ee(0x1a4)](CACHE_FILE,JSON['stringify'](_0x28a30b,null,0x2));}catch{}}export function getCurrentBranch(){const _0x5df841=_0x517922,_0x2a1feb={'ekdrD':function(_0x3e5ec3,_0x2de131,_0x3fa6b4){return _0x3e5ec3(_0x2de131,_0x3fa6b4);},'YdqSA':_0x5df841(0x1bf),'NCcJD':'pipe','pNyHo':function(_0xa0abc1,_0x66bcc2){return _0xa0abc1===_0x66bcc2;}};try{const _0x3af86f=_0x2a1feb[_0x5df841(0x18d)](execSync,'git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':_0x2a1feb['YdqSA'],'stdio':[_0x2a1feb[_0x5df841(0x1b8)],_0x2a1feb[_0x5df841(0x1b8)],_0x5df841(0x1a3)]})[_0x5df841(0x1af)]();if(!_0x3af86f||_0x2a1feb[_0x5df841(0x1b2)](_0x3af86f,'HEAD'))return null;return _0x3af86f;}catch{return null;}}export function enableBranch(_0x16c862){const _0xd6ada9=_0x517922,_0x3ef623={'Btqgs':function(_0x3d1e83){return _0x3d1e83();}},_0x14c731=_0x3ef623['Btqgs'](loadCache);_0x14c731[_0xd6ada9(0x18c)][_0x16c862]=!![],saveCache(_0x14c731);}export function disableBranch(_0x43faf4){const _0x19924c=_0x517922,_0x1c6f0b={'NSbbk':function(_0x8c183d){return _0x8c183d();},'ZlYGp':function(_0x244d4a,_0x1c1374){return _0x244d4a(_0x1c1374);}},_0x137f7a=_0x1c6f0b['NSbbk'](loadCache);delete _0x137f7a['branches'][_0x43faf4],_0x1c6f0b[_0x19924c(0x1a1)](saveCache,_0x137f7a);}export function isBranchEnabled(_0x1682ef){const _0x52b600=_0x517922,_0x5cc88c={'PqBju':function(_0xd58f78){return _0xd58f78();},'FYXAi':function(_0x2715a3,_0x97429f){return _0x2715a3===_0x97429f;}},_0x592847=_0x5cc88c['PqBju'](loadCache);return _0x5cc88c['FYXAi'](_0x592847[_0x52b600(0x18c)][_0x1682ef],!![]);}function getOrCreateSession(_0x4aa763,_0x6b505d){const _0x4b370=_0x517922;return!_0x4aa763[_0x4b370(0x1a0)][_0x6b505d]&&(_0x4aa763[_0x4b370(0x1a0)][_0x6b505d]={}),_0x4aa763['sessions'][_0x6b505d];}export function enableSession(_0x3f05a0){const _0x2ede03=_0x517922,_0x4e54cf={'jWkjc':function(_0x1e7b0d,_0x464361,_0xc18095){return _0x1e7b0d(_0x464361,_0xc18095);},'scOQh':function(_0x12b2b3,_0x5e0d1b){return _0x12b2b3!==_0x5e0d1b;},'rrkae':_0x2ede03(0x18a),'XtqEh':function(_0x5980ff,_0x3af21c){return _0x5980ff(_0x3af21c);}},_0x5ab90f=loadCache(),_0x44d6bc=_0x4e54cf['jWkjc'](getOrCreateSession,_0x5ab90f,_0x3f05a0);_0x44d6bc[_0x2ede03(0x1c0)]=!![];const _0x28277d=getCurrentBranch();_0x28277d&&_0x28277d!=='main'&&_0x4e54cf['scOQh'](_0x28277d,_0x4e54cf['rrkae'])&&(_0x5ab90f[_0x2ede03(0x18c)][_0x28277d]=!![],_0x44d6bc[_0x2ede03(0x1b0)]=_0x28277d),_0x4e54cf[_0x2ede03(0x1b6)](saveCache,_0x5ab90f);}export function isSessionEnabled(_0x3a3def){const _0x4ddec5=_0x517922,_0x4a9d6d={'VtOdl':function(_0x272daa){return _0x272daa();},'pxfpc':_0x4ddec5(0x1a5),'oglpX':function(_0x28eb94,_0x50d21f){return _0x28eb94===_0x50d21f;},'XxIoa':_0x4ddec5(0x18a),'TAlCp':function(_0x5a8392,_0x41b5db){return _0x5a8392===_0x41b5db;},'IveYN':function(_0x3c1723,_0x5cd4d8){return _0x3c1723===_0x5cd4d8;}},_0x2ee892=loadCache(),_0x279c62=_0x4a9d6d[_0x4ddec5(0x1aa)](getCurrentBranch);if(!_0x279c62||_0x279c62===_0x4a9d6d['pxfpc']||_0x4a9d6d['oglpX'](_0x279c62,_0x4a9d6d['XxIoa']))return _0x4a9d6d['TAlCp'](_0x2ee892[_0x4ddec5(0x1a0)][_0x3a3def]?.['enabled'],!![]);const _0x20d84f=_0x2ee892['branches'][_0x279c62]===!![],_0x7f4564=_0x4a9d6d[_0x4ddec5(0x1b4)](_0x2ee892['sessions'][_0x3a3def]?.[_0x4ddec5(0x1c0)],!![]);return _0x20d84f||_0x7f4564;}export function disableSession(_0x5f481c){const _0x17bf10=_0x517922,_0x3320d2={'CoeVb':function(_0x3ce80b,_0x571ef6){return _0x3ce80b(_0x571ef6);}},_0x6371fc=loadCache(),_0x42ca08=getOrCreateSession(_0x6371fc,_0x5f481c);_0x42ca08[_0x17bf10(0x1c0)]=![],_0x3320d2[_0x17bf10(0x19c)](saveCache,_0x6371fc);}export function updateBranchTracking(_0x3f663a){const _0x6a491e=_0x517922,_0x2d4cdd={'yixBw':function(_0x5ba0cd){return _0x5ba0cd();},'NNpVk':function(_0x565406,_0x54b7f8){return _0x565406===_0x54b7f8;},'oKuty':_0x6a491e(0x1a5),'HsEXf':function(_0x54f97d,_0xf8c7e7){return _0x54f97d!==_0xf8c7e7;}},_0xf1586f=_0x2d4cdd[_0x6a491e(0x194)](loadCache),_0x327b42=_0xf1586f['sessions'][_0x3f663a];if(!_0x327b42?.['enabled'])return;const _0x5302a8=_0x2d4cdd[_0x6a491e(0x194)](getCurrentBranch);if(!_0x5302a8||_0x2d4cdd['NNpVk'](_0x5302a8,_0x2d4cdd['oKuty'])||_0x2d4cdd[_0x6a491e(0x1ad)](_0x5302a8,'master'))return;_0x2d4cdd[_0x6a491e(0x19d)](_0x327b42[_0x6a491e(0x1b0)],_0x5302a8)&&(_0xf1586f[_0x6a491e(0x18c)][_0x5302a8]=!![],_0x327b42[_0x6a491e(0x1b0)]=_0x5302a8,saveCache(_0xf1586f));}export function initBranchTracking(_0x8271a0){const _0x4c4ab1=_0x517922,_0x117d09={'cfCyZ':function(_0x5762d8){return _0x5762d8();},'JEEvo':function(_0x1e6ee2,_0x8e64da){return _0x1e6ee2===_0x8e64da;},'tYfJc':function(_0x4878ed,_0x3ce29e,_0x308d84){return _0x4878ed(_0x3ce29e,_0x308d84);},'VEeRY':function(_0x39a627,_0x3e5413){return _0x39a627(_0x3e5413);}},_0x45c7f6=_0x117d09['cfCyZ'](loadCache),_0x41e37c=_0x117d09['cfCyZ'](getCurrentBranch);if(!_0x41e37c||_0x117d09[_0x4c4ab1(0x197)](_0x41e37c,'main')||_0x41e37c==='master')return;if(_0x45c7f6['branches'][_0x41e37c]===!![]){const _0x1f763b=_0x117d09['tYfJc'](getOrCreateSession,_0x45c7f6,_0x8271a0);_0x1f763b[_0x4c4ab1(0x1c0)]=!![],_0x1f763b[_0x4c4ab1(0x1b0)]=_0x41e37c,_0x117d09['VEeRY'](saveCache,_0x45c7f6);}}function _0x2607(_0x27860d,_0x2b6eb2){_0x27860d=_0x27860d-0x188;const _0xfc8a9b=_0xfc8a();let _0x260776=_0xfc8a9b[_0x27860d];return _0x260776;}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x58f3b0){const _0x2f3ba1=_0x517922,_0x25dc84=loadCache(),_0x3a6f48=_0x25dc84['sessions'][_0x58f3b0];_0x3a6f48?.[_0x2f3ba1(0x1c0)]&&(_0x25dc84['lastEnabledSessionClearedAt']=Date['now'](),saveCache(_0x25dc84));}export function shouldAutoEnableAfterClear(_0x21492b){const _0x5228cd=_0x517922,_0x25b985={'dlvWE':function(_0x39d485,_0x170cb2){return _0x39d485!==_0x170cb2;},'uhmPl':_0x5228cd(0x196),'OODwr':function(_0x4bdc8f){return _0x4bdc8f();},'pkXeR':function(_0x536ea0,_0x4ac78a){return _0x536ea0-_0x4ac78a;},'ooktw':function(_0x5683b1,_0x536e74){return _0x5683b1<=_0x536e74;}};if(_0x25b985[_0x5228cd(0x188)](_0x21492b,_0x25b985[_0x5228cd(0x1ae)]))return![];const _0x3b17f9=_0x25b985['OODwr'](loadCache),_0x8d4c4=_0x3b17f9['lastEnabledSessionClearedAt'];if(!_0x8d4c4)return![];const _0x48a0c0=_0x25b985['pkXeR'](Date[_0x5228cd(0x1b7)](),_0x8d4c4);return _0x25b985['ooktw'](_0x48a0c0,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x9e2a0){const _0x123d44=_0x517922,_0x12418c={'mJkqL':function(_0x52c37b){return _0x52c37b();},'fmEuq':function(_0x4a26f6,_0x5df294){return _0x4a26f6!==_0x5df294;},'geYwR':_0x123d44(0x1a5),'DfkgU':_0x123d44(0x18a),'ADyFh':function(_0x53a73b,_0x5cf8be){return _0x53a73b(_0x5cf8be);}},_0x27b527=_0x12418c[_0x123d44(0x190)](loadCache),_0xf92c4f=getOrCreateSession(_0x27b527,_0x9e2a0);_0xf92c4f[_0x123d44(0x1c0)]=!![];const _0x502ba0=getCurrentBranch();_0x502ba0&&_0x12418c[_0x123d44(0x192)](_0x502ba0,_0x12418c[_0x123d44(0x1ba)])&&_0x502ba0!==_0x12418c['DfkgU']&&(_0xf92c4f[_0x123d44(0x1b0)]=_0x502ba0),delete _0x27b527[_0x123d44(0x19f)],_0x12418c[_0x123d44(0x19b)](saveCache,_0x27b527);}export function registerSession(_0x213bdb,_0x55c7d4){const _0x2b74ad=_0x517922,_0x55e668={'GKVcT':function(_0x261b62){return _0x261b62();},'FADVX':function(_0x5dda6f,_0x1480e5,_0x133466){return _0x5dda6f(_0x1480e5,_0x133466);}},_0x114c13=_0x55e668['GKVcT'](loadCache),_0x3999c1=_0x55e668[_0x2b74ad(0x189)](getOrCreateSession,_0x114c13,_0x213bdb);_0x3999c1['featureId']=_0x55c7d4,_0x3999c1['registeredAt']=new Date()[_0x2b74ad(0x195)](),saveCache(_0x114c13);}export function getSessionEntry(_0x1fe9a1){const _0x4a55fd=_0x517922,_0x1d2eba={'hNTFg':function(_0x5e5649){return _0x5e5649();}},_0x3b9715=_0x1d2eba[_0x4a55fd(0x191)](loadCache),_0x38ee5b=_0x3b9715[_0x4a55fd(0x1a0)][_0x1fe9a1];if(_0x38ee5b?.['featureId']&&_0x38ee5b?.[_0x4a55fd(0x19e)])return{'featureId':_0x38ee5b[_0x4a55fd(0x1be)],'registeredAt':_0x38ee5b['registeredAt']};return null;}export function unregisterSession(_0x201851){const _0x41b9c5=_0x517922,_0x5ab6b9={'JWHaK':function(_0x2a9ebd,_0x4500ca){return _0x2a9ebd(_0x4500ca);}},_0x34b3d7=loadCache(),_0x26b306=_0x34b3d7[_0x41b9c5(0x1a0)][_0x201851];_0x26b306&&(delete _0x26b306[_0x41b9c5(0x1be)],delete _0x26b306['registeredAt'],_0x5ab6b9[_0x41b9c5(0x1c1)](saveCache,_0x34b3d7));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x49bb0a){const _0x2990a0=_0x517922,_0xa6b186={'pgaXu':function(_0x2e0f2f){return _0x2e0f2f();},'eRZRX':function(_0x3c9c5e,_0x8e701d){return _0x3c9c5e>=_0x8e701d;},'JfeiX':function(_0x50c592,_0x326551){return _0x50c592-_0x326551;}},_0x3955dd=_0xa6b186[_0x2990a0(0x1bd)](loadCache),_0x199982=getOrCreateSession(_0x3955dd,_0x49bb0a),_0x1ffa49=_0x199982['lastPlanReminderAt']||0x0,_0x3946f8=Date[_0x2990a0(0x1b7)]();if(_0xa6b186[_0x2990a0(0x18f)](_0xa6b186[_0x2990a0(0x198)](_0x3946f8,_0x1ffa49),PLAN_REMINDER_INTERVAL_MS))return _0x199982['lastPlanReminderAt']=_0x3946f8,saveCache(_0x3955dd),!![];return![];}export function shouldShowStopReminder(_0x40acd4){const _0x29fdc4=_0x517922,_0x5771ca={'hiLKg':function(_0x3ad0a9,_0x3c6553){return _0x3ad0a9-_0x3c6553;},'oGGLl':function(_0x53490c,_0x32a1f8){return _0x53490c(_0x32a1f8);}},_0x2377c9=loadCache(),_0x292fd9=getOrCreateSession(_0x2377c9,_0x40acd4),_0x173051=_0x292fd9[_0x29fdc4(0x1bc)]||0x0,_0x140c89=Date['now']();if(_0x5771ca['hiLKg'](_0x140c89,_0x173051)>=STOP_REMINDER_INTERVAL_MS)return _0x292fd9[_0x29fdc4(0x1bc)]=_0x140c89,_0x5771ca[_0x29fdc4(0x1b3)](saveCache,_0x2377c9),!![];return![];}export function hasSessionBeenPrompted(_0xf8e20){const _0x10dac2=_0x517922,_0x29ddf0={'zcVQR':function(_0x5aea25){return _0x5aea25();}},_0x53c1d2=_0x29ddf0['zcVQR'](loadCache);return _0x53c1d2[_0x10dac2(0x1a0)][_0xf8e20]?.[_0x10dac2(0x1b1)]===!![];}export function markSessionPrompted(_0x239168){const _0x2e692=_0x517922,_0x4fd908={'uFgPm':function(_0x396e2d){return _0x396e2d();}},_0x5aa4e4=_0x4fd908['uFgPm'](loadCache),_0x2e2feb=getOrCreateSession(_0x5aa4e4,_0x239168);_0x2e2feb[_0x2e692(0x1b1)]=!![],saveCache(_0x5aa4e4);}export function getCacheFile(){return CACHE_FILE;}
1
+ (function(_0x390326,_0x31a961){const _0x5c9561=_0x2e9d,_0x38c927=_0x390326();while(!![]){try{const _0x532090=parseInt(_0x5c9561(0xd2))/0x1*(parseInt(_0x5c9561(0xc5))/0x2)+parseInt(_0x5c9561(0xe2))/0x3*(-parseInt(_0x5c9561(0xd9))/0x4)+-parseInt(_0x5c9561(0xc7))/0x5*(-parseInt(_0x5c9561(0xda))/0x6)+-parseInt(_0x5c9561(0xe3))/0x7+parseInt(_0x5c9561(0xc9))/0x8*(-parseInt(_0x5c9561(0xd6))/0x9)+-parseInt(_0x5c9561(0xc3))/0xa+parseInt(_0x5c9561(0xb9))/0xb;if(_0x532090===_0x31a961)break;else _0x38c927['push'](_0x38c927['shift']());}catch(_0x14fbb1){_0x38c927['push'](_0x38c927['shift']());}}}(_0x541e,0xf0377));import*as _0xf48215 from'fs';import*as _0x415c6a from'path';import*as _0xea321c from'os';import{execSync}from'child_process';const CACHE_FILE=_0x415c6a['join'](_0xea321c['homedir'](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0xa4f86c=_0x2e9d,_0x19f88c={'ucXtr':_0xa4f86c(0xe0),'dOjSO':function(_0x4c858b){return _0x4c858b();}};try{if(_0xf48215['existsSync'](CACHE_FILE)){const _0x375936=JSON['parse'](_0xf48215['readFileSync'](CACHE_FILE,_0x19f88c[_0xa4f86c(0xe6)]));return{'version':0x3,'sessions':_0x375936[_0xa4f86c(0xd8)]||{},'branches':_0x375936[_0xa4f86c(0xbc)]||{},'lastEnabledSessionClearedAt':_0x375936[_0xa4f86c(0xde)]};}}catch{}return _0x19f88c['dOjSO'](createEmptyCache);}function _0x541e(){const _0xb2a9ee=['enabled','uKQuA','aRKQx','registeredAt','30859mgSZZI','featureId','vrsaF','lastStopReminderAt','453321iCoWgG','LmnuH','sessions','6036GUObgT','458220qazyUq','FJEWl','now','tPKOT','lastEnabledSessionClearedAt','eIQfo','utf-8','xlEEj','3474gqYwag','3353945BjiIbh','HsRfF','gsVPh','ucXtr','Wrzkg','currentBranch','11661991IZzFwj','wNQvS','clear','branches','lastPlanReminderAt','eeYVS','mXbwv','pipe','XNWlP','toISOString','2571260AUKYBn','VzBPl','98RkaSWP','prompted','85bqwQFY','master','64KGnpie','stringify','main','shczu','yYqjQ'];_0x541e=function(){return _0xb2a9ee;};return _0x541e();}function saveCache(_0x3c396e){const _0x11b3ec=_0x2e9d;try{const _0x35c344=_0x415c6a['dirname'](CACHE_FILE);!_0xf48215['existsSync'](_0x35c344)&&_0xf48215['mkdirSync'](_0x35c344,{'recursive':!![]}),_0xf48215['writeFileSync'](CACHE_FILE,JSON[_0x11b3ec(0xca)](_0x3c396e,null,0x2));}catch{}}export function getCurrentBranch(){const _0x7da28=_0x2e9d,_0x59c191={'shczu':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','lOoVX':_0x7da28(0xe0),'uKQuA':_0x7da28(0xc0),'eIQfo':'HEAD'};try{const _0x646cfa=execSync(_0x59c191[_0x7da28(0xcc)],{'encoding':_0x59c191['lOoVX'],'stdio':[_0x7da28(0xc0),_0x59c191[_0x7da28(0xcf)],_0x59c191[_0x7da28(0xcf)]]})['trim']();if(!_0x646cfa||_0x646cfa===_0x59c191[_0x7da28(0xdf)])return null;return _0x646cfa;}catch{return null;}}export function enableBranch(_0x42ed0c){const _0x2f4943=_0x2e9d,_0x463755={'vrsaF':function(_0x490cb2){return _0x490cb2();}},_0xf966b=_0x463755[_0x2f4943(0xd4)](loadCache);_0xf966b['branches'][_0x42ed0c]=!![],saveCache(_0xf966b);}export function disableBranch(_0x4ef4cd){const _0x32044a=_0x2e9d,_0x44c6fb={'FJEWl':function(_0x55f5c3,_0x2c2cc1){return _0x55f5c3(_0x2c2cc1);}},_0x3f1b23=loadCache();delete _0x3f1b23[_0x32044a(0xbc)][_0x4ef4cd],_0x44c6fb[_0x32044a(0xdb)](saveCache,_0x3f1b23);}export function isBranchEnabled(_0x12d14a){const _0x8d8c8e=_0x2e9d,_0x77f51b={'COCdz':function(_0x2afa5d,_0x48cc33){return _0x2afa5d===_0x48cc33;}},_0x4f2fd1=loadCache();return _0x77f51b['COCdz'](_0x4f2fd1[_0x8d8c8e(0xbc)][_0x12d14a],!![]);}function getOrCreateSession(_0x5a40b1,_0x2553cc){const _0x5825e8=_0x2e9d;return!_0x5a40b1['sessions'][_0x2553cc]&&(_0x5a40b1['sessions'][_0x2553cc]={}),_0x5a40b1[_0x5825e8(0xd8)][_0x2553cc];}export function enableSession(_0x55d977){const _0x2049a3=_0x2e9d,_0x17649e={'OrwNq':function(_0x1a1b5d){return _0x1a1b5d();},'LXbYi':'main'},_0x56447f=_0x17649e['OrwNq'](loadCache),_0x5b454d=getOrCreateSession(_0x56447f,_0x55d977);_0x5b454d[_0x2049a3(0xce)]=!![];const _0x1624f6=getCurrentBranch();_0x1624f6&&_0x1624f6!==_0x17649e['LXbYi']&&_0x1624f6!=='master'&&(_0x56447f[_0x2049a3(0xbc)][_0x1624f6]=!![],_0x5b454d[_0x2049a3(0xe8)]=_0x1624f6),saveCache(_0x56447f);}export function isSessionEnabled(_0x38ed98){const _0x6f3afd=_0x2e9d,_0x407f65={'wNQvS':function(_0x199504){return _0x199504();},'pRXWn':function(_0x2bcc58,_0x510593){return _0x2bcc58===_0x510593;},'VzBPl':_0x6f3afd(0xc8),'bwfXQ':function(_0x59a285,_0x4c1d0f){return _0x59a285||_0x4c1d0f;}},_0x18b453=_0x407f65[_0x6f3afd(0xba)](loadCache),_0x3b1a45=getCurrentBranch();if(!_0x3b1a45||_0x3b1a45===_0x6f3afd(0xcb)||_0x407f65['pRXWn'](_0x3b1a45,_0x407f65[_0x6f3afd(0xc4)]))return _0x407f65['pRXWn'](_0x18b453['sessions'][_0x38ed98]?.['enabled'],!![]);const _0x52bc25=_0x18b453[_0x6f3afd(0xbc)][_0x3b1a45]===!![],_0x22da84=_0x18b453[_0x6f3afd(0xd8)][_0x38ed98]?.['enabled']===!![];return _0x407f65['bwfXQ'](_0x52bc25,_0x22da84);}export function disableSession(_0x5d6bf0){const _0x4d783b=_0x2e9d,_0x445d52={'mXbwv':function(_0xaefb83){return _0xaefb83();},'iuBIn':function(_0xbc348f,_0x593210,_0x39c370){return _0xbc348f(_0x593210,_0x39c370);}},_0x489163=_0x445d52[_0x4d783b(0xbf)](loadCache),_0x4ccb22=_0x445d52['iuBIn'](getOrCreateSession,_0x489163,_0x5d6bf0);_0x4ccb22[_0x4d783b(0xce)]=![],saveCache(_0x489163);}export function updateBranchTracking(_0x131f75){const _0x560af7=_0x2e9d,_0x5599c3={'xlEEj':function(_0x21fb20){return _0x21fb20();},'HsRfF':function(_0x17d590,_0x2de253){return _0x17d590===_0x2de253;},'KrvJo':function(_0x8ca4d0,_0x1d383d){return _0x8ca4d0===_0x1d383d;},'tPKOT':function(_0x4b1c7b,_0x6d7b8e){return _0x4b1c7b!==_0x6d7b8e;},'aRKQx':function(_0x5f30ee,_0x8b3195){return _0x5f30ee(_0x8b3195);}},_0x57454a=_0x5599c3[_0x560af7(0xe1)](loadCache),_0x3eecac=_0x57454a['sessions'][_0x131f75];if(!_0x3eecac?.[_0x560af7(0xce)])return;const _0x47a79f=getCurrentBranch();if(!_0x47a79f||_0x5599c3[_0x560af7(0xe4)](_0x47a79f,_0x560af7(0xcb))||_0x5599c3['KrvJo'](_0x47a79f,'master'))return;_0x5599c3[_0x560af7(0xdd)](_0x3eecac[_0x560af7(0xe8)],_0x47a79f)&&(_0x57454a['branches'][_0x47a79f]=!![],_0x3eecac[_0x560af7(0xe8)]=_0x47a79f,_0x5599c3[_0x560af7(0xd0)](saveCache,_0x57454a));}export function initBranchTracking(_0x4bc0b6){const _0x21e49e=_0x2e9d,_0xb59f6d={'iHnim':function(_0x488241){return _0x488241();},'Wrzkg':function(_0x2507d0,_0x27d56a){return _0x2507d0===_0x27d56a;},'tOESr':_0x21e49e(0xc8),'QQvgl':function(_0x46426e,_0x2f8e2c,_0x41a958){return _0x46426e(_0x2f8e2c,_0x41a958);}},_0xfd8fea=_0xb59f6d['iHnim'](loadCache),_0x35f5d4=getCurrentBranch();if(!_0x35f5d4||_0xb59f6d['Wrzkg'](_0x35f5d4,'main')||_0x35f5d4===_0xb59f6d['tOESr'])return;if(_0xb59f6d[_0x21e49e(0xe7)](_0xfd8fea['branches'][_0x35f5d4],!![])){const _0x546594=_0xb59f6d['QQvgl'](getOrCreateSession,_0xfd8fea,_0x4bc0b6);_0x546594['enabled']=!![],_0x546594['currentBranch']=_0x35f5d4,saveCache(_0xfd8fea);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x196057){const _0x2bf3de=_0x2e9d,_0x4c1b80={'brLmA':function(_0x515a13,_0x32e457){return _0x515a13(_0x32e457);}},_0x2dc738=loadCache(),_0x4aeeba=_0x2dc738[_0x2bf3de(0xd8)][_0x196057];_0x4aeeba?.[_0x2bf3de(0xce)]&&(_0x2dc738['lastEnabledSessionClearedAt']=Date[_0x2bf3de(0xdc)](),_0x4c1b80['brLmA'](saveCache,_0x2dc738));}export function shouldAutoEnableAfterClear(_0x1a6c75){const _0x40c060=_0x2e9d,_0x44125a={'gsVPh':function(_0x5acbf3,_0x2c4b08){return _0x5acbf3-_0x2c4b08;}};if(_0x1a6c75!==_0x40c060(0xbb))return![];const _0x3b1c22=loadCache(),_0x14955e=_0x3b1c22['lastEnabledSessionClearedAt'];if(!_0x14955e)return![];const _0x1d8b48=_0x44125a[_0x40c060(0xe5)](Date[_0x40c060(0xdc)](),_0x14955e);return _0x1d8b48<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0xd303ad){const _0x32b5a6=_0x2e9d,_0x2d026a={'yYqjQ':function(_0x2c18d9){return _0x2c18d9();},'YFaWh':function(_0x4779c4){return _0x4779c4();},'Relmf':function(_0x24f744,_0x46ed12){return _0x24f744!==_0x46ed12;},'lfPZg':_0x32b5a6(0xcb),'UmdLr':function(_0x1603f2,_0x662671){return _0x1603f2!==_0x662671;},'yIJWR':'master'},_0x1b3ffd=_0x2d026a[_0x32b5a6(0xcd)](loadCache),_0x47add2=getOrCreateSession(_0x1b3ffd,_0xd303ad);_0x47add2[_0x32b5a6(0xce)]=!![];const _0x56d161=_0x2d026a['YFaWh'](getCurrentBranch);_0x56d161&&_0x2d026a['Relmf'](_0x56d161,_0x2d026a['lfPZg'])&&_0x2d026a['UmdLr'](_0x56d161,_0x2d026a['yIJWR'])&&(_0x47add2['currentBranch']=_0x56d161),delete _0x1b3ffd[_0x32b5a6(0xde)],saveCache(_0x1b3ffd);}export function registerSession(_0xc6349,_0x4ad615){const _0x1204ff=_0x2e9d,_0x576f63={'ebclU':function(_0x40f620,_0x5b1a46,_0x2ba013){return _0x40f620(_0x5b1a46,_0x2ba013);}},_0x22e888=loadCache(),_0x2fdb86=_0x576f63['ebclU'](getOrCreateSession,_0x22e888,_0xc6349);_0x2fdb86[_0x1204ff(0xd3)]=_0x4ad615,_0x2fdb86['registeredAt']=new Date()[_0x1204ff(0xc2)](),saveCache(_0x22e888);}export function getSessionEntry(_0x2eb5a7){const _0x3968f0=_0x2e9d,_0x907de4=loadCache(),_0x51efd5=_0x907de4['sessions'][_0x2eb5a7];if(_0x51efd5?.['featureId']&&_0x51efd5?.[_0x3968f0(0xd1)])return{'featureId':_0x51efd5['featureId'],'registeredAt':_0x51efd5['registeredAt']};return null;}export function unregisterSession(_0x30b4ce){const _0x1c8e01=loadCache(),_0x13e809=_0x1c8e01['sessions'][_0x30b4ce];_0x13e809&&(delete _0x13e809['featureId'],delete _0x13e809['registeredAt'],saveCache(_0x1c8e01));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0xaefe94){const _0x12157b=_0x2e9d,_0x404fc7={'sjAdI':function(_0x3240dc,_0x1eb88a,_0x449ada){return _0x3240dc(_0x1eb88a,_0x449ada);},'XNWlP':function(_0x3c97a4,_0x56a5e5){return _0x3c97a4>=_0x56a5e5;},'eeYVS':function(_0x23e887,_0x41cb27){return _0x23e887(_0x41cb27);}},_0x2723ff=loadCache(),_0x58e88a=_0x404fc7['sjAdI'](getOrCreateSession,_0x2723ff,_0xaefe94),_0x39ece6=_0x58e88a[_0x12157b(0xbd)]||0x0,_0x122cdd=Date[_0x12157b(0xdc)]();if(_0x404fc7[_0x12157b(0xc1)](_0x122cdd-_0x39ece6,PLAN_REMINDER_INTERVAL_MS))return _0x58e88a['lastPlanReminderAt']=_0x122cdd,_0x404fc7[_0x12157b(0xbe)](saveCache,_0x2723ff),!![];return![];}export function shouldShowStopReminder(_0x461067){const _0x5df2f4=_0x2e9d,_0x2aa026={'sPZgE':function(_0x3d185e,_0x559bb9){return _0x3d185e>=_0x559bb9;}},_0x2c3d09=loadCache(),_0x3564ef=getOrCreateSession(_0x2c3d09,_0x461067),_0x449171=_0x3564ef[_0x5df2f4(0xd5)]||0x0,_0x1e3aa5=Date['now']();if(_0x2aa026['sPZgE'](_0x1e3aa5-_0x449171,STOP_REMINDER_INTERVAL_MS))return _0x3564ef[_0x5df2f4(0xd5)]=_0x1e3aa5,saveCache(_0x2c3d09),!![];return![];}export function hasSessionBeenPrompted(_0x733b7){const _0x49eaff=_0x2e9d,_0x49301e=loadCache();return _0x49301e[_0x49eaff(0xd8)][_0x733b7]?.[_0x49eaff(0xc6)]===!![];}export function markSessionPrompted(_0x39d24f){const _0x564b44=_0x2e9d,_0xe02f6b={'LmnuH':function(_0x485130){return _0x485130();},'iDkex':function(_0x26de97,_0x135a27,_0x1b6c47){return _0x26de97(_0x135a27,_0x1b6c47);}},_0x4332b9=_0xe02f6b[_0x564b44(0xd7)](loadCache),_0x16884a=_0xe02f6b['iDkex'](getOrCreateSession,_0x4332b9,_0x39d24f);_0x16884a[_0x564b44(0xc6)]=!![],saveCache(_0x4332b9);}function _0x2e9d(_0x26a375,_0x16b083){_0x26a375=_0x26a375-0xb9;const _0x541ef9=_0x541e();let _0x2e9d2c=_0x541ef9[_0x26a375];return _0x2e9d2c;}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x5554aa=_0x5b22;(function(_0x5e62fd,_0x183022){const _0x3dfa42=_0x5b22,_0xd9e22f=_0x5e62fd();while(!![]){try{const _0x2fafa9=parseInt(_0x3dfa42(0x1c0))/0x1+parseInt(_0x3dfa42(0x17f))/0x2+parseInt(_0x3dfa42(0x179))/0x3+parseInt(_0x3dfa42(0x196))/0x4*(parseInt(_0x3dfa42(0x194))/0x5)+parseInt(_0x3dfa42(0x17c))/0x6+parseInt(_0x3dfa42(0x1c3))/0x7*(parseInt(_0x3dfa42(0x1ac))/0x8)+-parseInt(_0x3dfa42(0x1ab))/0x9;if(_0x2fafa9===_0x183022)break;else _0xd9e22f['push'](_0xd9e22f['shift']());}catch(_0x261c25){_0xd9e22f['push'](_0xd9e22f['shift']());}}}(_0x4b20,0x2790c));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(_0x244c2a){const _0x2f54f2=_0x5b22,_0x464406={'wIrnc':function(_0x391ba7){return _0x391ba7();},'KkkKt':function(_0x24ac77,_0x3d2147,_0x5c8ebe,_0x10af36){return _0x24ac77(_0x3d2147,_0x5c8ebe,_0x10af36);},'LzWvj':function(_0x49c6f9,_0x51b01c,_0x393d68,_0x46afb6){return _0x49c6f9(_0x51b01c,_0x393d68,_0x46afb6);},'vfMqH':function(_0x3af4dc,_0xd553a,_0x22c56){return _0x3af4dc(_0xd553a,_0x22c56);},'LOGcn':function(_0x44f8c5,_0x360b56,_0x1f263a){return _0x44f8c5(_0x360b56,_0x1f263a);},'elNPF':'local','tXIUd':function(_0x358c5d,_0x397565){return _0x358c5d(_0x397565);},'INWiC':function(_0xe028f,_0x4b404e){return _0xe028f(_0x4b404e);},'NcLIT':function(_0x35f2e2,_0x23514c){return _0x35f2e2!==_0x23514c;}},_0x2d11ae=_0x464406[_0x2f54f2(0x180)](getRangerDir),_0x62e468=_0x464406['KkkKt'](join,_0x2d11ae,'ci',_0x244c2a),_0x983be8=_0x464406['LzWvj'](join,_0x2d11ae,'local',_0x244c2a),_0x4fa1cd=_0x464406['vfMqH'](join,_0x2d11ae,_0x244c2a),_0x1eadb0=_0x464406['LOGcn'](join,_0x2d11ae,_0x464406[_0x2f54f2(0x183)]),_0x45f90d=join(_0x2d11ae,'ci');if(existsSync(_0x62e468))return _0x62e468;if(_0x464406[_0x2f54f2(0x199)](existsSync,_0x983be8))return _0x983be8;if(_0x464406['INWiC'](existsSync,_0x4fa1cd)&&(_0x464406['NcLIT'](_0x4fa1cd,_0x1eadb0)&&_0x4fa1cd!==_0x45f90d?!![]:hasLegacyProfileFiles(_0x4fa1cd)))return _0x4fa1cd;return _0x983be8;}function _0x4b20(){const _0x48b179=['ranger-auth-','645820yWDYFT','wIrnc','length','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','elNPF','isArray','path','.json','allow','IQFcA','xGLZz','Failed\x20to\x20decrypt\x20auth\x20state:\x20','sessions','auth.json','clipboard-read','locations','rdrIh','setupHeaders','hsKXu','CoSCb','--allow-insecure-localhost','634105qrnsQU','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','8CZGAQO','location','push','tXIUd','install','PGcSK','CUzBX','NXQdp','code','GXGEl','--disable-features=WebBluetooth','RilNg','catch','ENOENT','wxUyd','parse','RPnEr','BFscJ','now','file','bKYjN','6409980QUZFud','32FnUubC','itkTf','lPsSB','stringify','kcrTI','storageStatePath','gcRED','ranger-config','headless','env','all','includes','map','args','lEGCh','\x20is\x20not\x20set','qFxhP','legacy','RfRNp','nmEax','87609xtYDbm','qTirF','contextOptions','107989zLVNjj','message','Trxuc','join','KuTxJ','object','storageState','repeat','vision','--disable-setuid-sandbox','filter','zXEkq','header','headers','auth.json.enc','pdf','tEGbs','huEUD','ZhNHG','getuid','391650fIySvP','KnyPg','cdpEndpoint','107166dWArzU','extraHTTPHeaders'];_0x4b20=function(){return _0x48b179;};return _0x4b20();}export function findExistingEnv(_0x432cdf,_0x343c30){const _0x3708c4=_0x5b22,_0x4da36b={'wWWlm':_0x3708c4(0x1bd),'QHeYO':function(_0x48c20f,_0x435894,_0x43dfa4){return _0x48c20f(_0x435894,_0x43dfa4);},'KuTxJ':'local','KnyPg':function(_0xae0a6b,_0x85d9da,_0xf9aa63,_0x4b5450){return _0xae0a6b(_0x85d9da,_0xf9aa63,_0x4b5450);},'huEUD':function(_0x266a21,_0x4f3254){return _0x266a21===_0x4f3254;}},_0x470862=_0x343c30?.['rangerDir']??getRangerDir(),_0x177e83=_0x343c30?.[_0x3708c4(0x18e)]??['ci','local',_0x4da36b['wWWlm']],_0x4e1b97=_0x4da36b['QHeYO'](join,_0x470862,_0x4da36b[_0x3708c4(0x1c7)]),_0x3f2175=join(_0x470862,'ci'),_0x4b4504=[{'location':'ci','path':join(_0x470862,'ci',_0x432cdf)},{'location':_0x4da36b[_0x3708c4(0x1c7)],'path':_0x4da36b[_0x3708c4(0x17a)](join,_0x470862,_0x4da36b['KuTxJ'],_0x432cdf)},{'location':_0x4da36b['wWWlm'],'path':join(_0x470862,_0x432cdf)}];for(const _0x5afaef of _0x4b4504){if(_0x177e83[_0x3708c4(0x1b7)](_0x5afaef['location'])&&existsSync(_0x5afaef['path'])){if(_0x4da36b[_0x3708c4(0x176)](_0x5afaef['location'],_0x4da36b['wWWlm'])&&(_0x4da36b[_0x3708c4(0x176)](_0x5afaef[_0x3708c4(0x185)],_0x4e1b97)||_0x5afaef[_0x3708c4(0x185)]===_0x3f2175)&&!hasLegacyProfileFiles(_0x5afaef[_0x3708c4(0x185)]))continue;return{'path':_0x5afaef[_0x3708c4(0x185)],'location':_0x5afaef[_0x3708c4(0x197)]};}}return null;}function hasLegacyProfileFiles(_0x20104e){const _0x12d320=_0x5b22,_0x23f519={'lEGCh':'settings.json','KmOGP':function(_0x2cd837,_0x22e1aa,_0x40241c){return _0x2cd837(_0x22e1aa,_0x40241c);},'igzBy':function(_0x244eee,_0x548aef){return _0x244eee(_0x548aef);},'wxUyd':'auth.json.enc'};return existsSync(join(_0x20104e,_0x23f519[_0x12d320(0x1ba)]))||existsSync(_0x23f519['KmOGP'](join,_0x20104e,'auth.json'))||_0x23f519['igzBy'](existsSync,join(_0x20104e,_0x23f519[_0x12d320(0x1a4)]));}export function isEnvCi(_0x49998e){const _0x18d90a={'HPjvV':function(_0x43ec2e,_0x42df81){return _0x43ec2e(_0x42df81);},'LbutA':function(_0x5e0ee7,_0x4ea968,_0x1870fb,_0x12e6b5){return _0x5e0ee7(_0x4ea968,_0x1870fb,_0x12e6b5);},'EUHYz':function(_0x355d9d){return _0x355d9d();}};return _0x18d90a['HPjvV'](existsSync,_0x18d90a['LbutA'](join,_0x18d90a['EUHYz'](getRangerDir),'ci',_0x49998e));}export async function cleanupTempFiles(_0x27e8a8){const _0x239973=_0x5b22,_0x313d9f=[_0x27e8a8['tempAuthPath'],_0x27e8a8['configPath']][_0x239973(0x1cd)](Boolean);await Promise[_0x239973(0x1b6)](_0x313d9f['map'](_0x199c4d=>unlink(_0x199c4d)[_0x239973(0x1a2)](_0x43c53e=>{const _0x1afdab=_0x239973;_0x43c53e[_0x1afdab(0x19e)]!==_0x1afdab(0x1a3)&&console['warn'](_0x1afdab(0x195)+_0x199c4d+':',_0x43c53e[_0x1afdab(0x1c4)]);})));}export function getSettingsPath(_0x3b1269){const _0x370527=_0x5b22,_0x285219={'xGLZz':function(_0x472c7e,_0x42cd4b,_0x1200c9){return _0x472c7e(_0x42cd4b,_0x1200c9);},'GXGEl':'settings.json'};return _0x285219[_0x370527(0x189)](join,getEnvDir(_0x3b1269),_0x285219[_0x370527(0x19f)]);}export async function loadSettings(_0x1d7336){const _0x1558fe=_0x5b22,_0x3a180e={'aseIB':function(_0x4e00c2,_0x286ab1){return _0x4e00c2(_0x286ab1);}},_0x4f995e=_0x3a180e['aseIB'](getSettingsPath,_0x1d7336);if(!existsSync(_0x4f995e))return{};try{const _0x57eaa6=await readFile(_0x4f995e,'utf-8');return JSON[_0x1558fe(0x1a5)](_0x57eaa6);}catch{return{};}}export async function saveSettings(_0x347fa5,_0x52ddea){const _0x18aba9=_0x5b22,_0x5cad33={'tEGbs':function(_0x963df3,_0x2fdd05){return _0x963df3(_0x2fdd05);},'WyAlh':function(_0x142f72,_0x277c6e){return _0x142f72(_0x277c6e);}},_0x58902a=getSettingsPath(_0x347fa5),_0x35bab4=_0x5cad33[_0x18aba9(0x175)](dirname,_0x58902a);!_0x5cad33['WyAlh'](existsSync,_0x35bab4)&&await mkdir(_0x35bab4,{'recursive':!![]}),await writeFile(_0x58902a,JSON['stringify'](_0x52ddea,null,0x2));}export function resolveEnvVars(_0x338118){const _0x55bb22=_0x5b22,_0x46cacd={'pfxPG':function(_0x209734,_0x2c5f2d){return _0x209734===_0x2c5f2d;}};if(typeof _0x338118==='string')return _0x338118['replace'](/\$\{(\w+)\}/g,(_0x5d671c,_0x282e48)=>{const _0x2525c3=_0x5b22,_0x5bbb1f=process[_0x2525c3(0x1b5)][_0x282e48];if(_0x5bbb1f===undefined)throw new Error('Environment\x20variable\x20'+_0x282e48+_0x2525c3(0x1bb));return _0x5bbb1f;});if(Array[_0x55bb22(0x184)](_0x338118))return _0x338118['map'](resolveEnvVars);if(_0x338118&&_0x46cacd['pfxPG'](typeof _0x338118,'object'))return Object['fromEntries'](Object['entries'](_0x338118)[_0x55bb22(0x1b8)](([_0xa300ea,_0x424dca])=>[_0xa300ea,resolveEnvVars(_0x424dca)]));return _0x338118;}const isRecord=_0x1131b9=>typeof _0x1131b9===_0x5554aa(0x1c8)&&_0x1131b9!==null&&!Array['isArray'](_0x1131b9),asRecord=_0x58ed90=>isRecord(_0x58ed90)?_0x58ed90:undefined,mergeHeaders=(_0x164f16,_0x2a95dd)=>{const _0x460d0a=_0x5554aa,_0x579925={'ZhNHG':function(_0x478f6f,_0x1506fc){return _0x478f6f??_0x1506fc;}},_0x1805d4={..._0x579925[_0x460d0a(0x177)](_0x164f16,{}),..._0x2a95dd??{}};return Object['keys'](_0x1805d4)['length']?_0x1805d4:undefined;},SAFE_MODE_ARGS=[_0x5554aa(0x1a0)],ALLOW_LOCALHOST_ARGS=['--disable-web-security','--allow-running-insecure-content','--unsafely-treat-insecure-origin-as-secure=http://localhost',_0x5554aa(0x193)];export function buildBrowserOptionsFromSettings(_0x4d748e,_0x36495={}){const _0x25da63=_0x5554aa,_0x4a49a5={'YGiLx':function(_0x280807,_0x1eb054){return _0x280807(_0x1eb054);},'CCrVq':function(_0x18d280,_0x34c343){return _0x18d280===_0x34c343;},'vtHNG':function(_0x515a2c,_0x61d3b0,_0x3de2eb){return _0x515a2c(_0x61d3b0,_0x3de2eb);},'RPnEr':function(_0x1d8587,_0x489f97){return _0x1d8587(_0x489f97);}},_0x861012=_0x4a49a5['YGiLx'](asRecord,_0x4d748e['browser']),_0x241668={..._0x4a49a5['YGiLx'](asRecord,_0x861012?.['launchOptions'])??{}};_0x4a49a5['CCrVq'](typeof _0x36495[_0x25da63(0x1b4)],'boolean')&&(_0x241668['headless']=_0x36495[_0x25da63(0x1b4)]);if(_0x4d748e['safeMode']){const _0x17cfd4=_0x241668['args']??[],_0x1fdf19=SAFE_MODE_ARGS['filter'](_0x3de10c=>!_0x17cfd4['includes'](_0x3de10c));_0x241668['args']=[..._0x17cfd4,..._0x1fdf19];}if(_0x4d748e['allowInsecureLocalhost']){const _0x1e0002=_0x241668[_0x25da63(0x1b9)]??[],_0x48a1e3=ALLOW_LOCALHOST_ARGS['filter'](_0x4cc711=>!_0x1e0002['includes'](_0x4cc711));_0x241668['args']=[..._0x1e0002,..._0x48a1e3];}const _0xb8f93e={...asRecord(_0x861012?.[_0x25da63(0x1c2)])??{}};_0xb8f93e['ignoreHTTPSErrors']=!![];typeof _0x4d748e['userAgent']==='string'&&(_0xb8f93e['userAgent']=_0x4d748e['userAgent']);const _0x488ada=_0x4a49a5['vtHNG'](mergeHeaders,_0x4a49a5[_0x25da63(0x1a6)](asRecord,_0xb8f93e['extraHTTPHeaders']),asRecord(_0x4d748e[_0x25da63(0x1d0)]));return _0x488ada?_0xb8f93e[_0x25da63(0x17d)]=_0x488ada:delete _0xb8f93e[_0x25da63(0x17d)],_0x36495[_0x25da63(0x1b1)]&&(_0xb8f93e[_0x25da63(0x1c9)]=_0x36495[_0x25da63(0x1b1)]),{'launchOptions':_0x241668,'contextOptions':_0xb8f93e};}export async function buildPlaywrightConfig(_0x4b25e1,_0x5ed7b2,_0x3f4726,_0x4c88a3){const _0x577301=_0x5554aa,_0x352190={'Comix':function(_0x4ace5b,_0x4f8358){return _0x4ace5b===_0x4f8358;},'PGcSK':'chromium','TnWtA':_0x577301(0x18d),'PrIbX':function(_0x4e0510,_0x53ff89){return _0x4e0510(_0x53ff89);},'NXQdp':function(_0x4c1e4b,_0x2bcf16,_0x1c9ff8){return _0x4c1e4b(_0x2bcf16,_0x1c9ff8);},'BNlKz':'auth.json.enc','jFuvX':function(_0x4f3140,_0x1fbbc7,_0x3bf5a1){return _0x4f3140(_0x1fbbc7,_0x3bf5a1);},'qFxhP':function(_0x690d45,_0x322a51){return _0x690d45(_0x322a51);},'hsKXu':function(_0x18c80d){return _0x18c80d();},'UlfeF':_0x577301(0x182),'odHLD':function(_0xd533e8,_0x1282a7,_0x496b6c){return _0xd533e8(_0x1282a7,_0x496b6c);},'itkTf':function(_0x29d8fa,_0x61c760){return _0x29d8fa instanceof _0x61c760;},'ZJKbg':function(_0x381ea0){return _0x381ea0();},'zXEkq':function(_0x3e62e3,_0x1ed0dd,_0x375608,_0x201445){return _0x3e62e3(_0x1ed0dd,_0x375608,_0x201445);},'kcrTI':function(_0x222062){return _0x222062();},'nmEax':function(_0x50db47,_0x1f8458){return _0x50db47(_0x1f8458);},'RilNg':'core','MJjuq':function(_0x541699,_0x11d5e7){return _0x541699===_0x11d5e7;},'DMSjQ':function(_0x237123,_0x5d06c7){return _0x237123===_0x5d06c7;},'ojnUs':function(_0x5d4d95,_0x58ae23,_0x4679f7){return _0x5d4d95(_0x58ae23,_0x4679f7);}},_0x3684c2=_0x352190['PrIbX'](getEnvDir,_0x5ed7b2),_0x510750=_0x352190[_0x577301(0x19d)](join,_0x3684c2,_0x352190['BNlKz']),_0x561157=_0x352190['jFuvX'](join,_0x3684c2,'auth.json');let _0x2fef8d,_0x1d4835;if(_0x352190[_0x577301(0x1bc)](existsSync,_0x510750))try{const _0x113246=await _0x352190['hsKXu'](getToken);if(!_0x113246)throw new Error(_0x352190['UlfeF']);const _0x19464b=await readFile(_0x510750),_0x2c9b47=_0x352190['odHLD'](decrypt,_0x19464b,_0x113246);_0x1d4835=_0x352190['jFuvX'](join,_0x352190[_0x577301(0x191)](tmpdir),_0x577301(0x17e)+Date['now']()+_0x577301(0x186)),await writeFile(_0x1d4835,_0x2c9b47),_0x2fef8d=_0x1d4835;}catch(_0x5ce918){const _0x21b639=_0x352190[_0x577301(0x1ad)](_0x5ce918,Error)?_0x5ce918[_0x577301(0x1c4)]:String(_0x5ce918);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x21b639);}else _0x352190[_0x577301(0x1bc)](existsSync,_0x561157)&&(_0x2fef8d=_0x561157);const _0x1edb91=_0x3f4726||_0x352190['ZJKbg'](randomUUID),_0x3c6264=_0x352190[_0x577301(0x1ce)](join,_0x352190[_0x577301(0x1b0)](getRangerDir),_0x577301(0x18b),_0x1edb91),_0x1c09bc=_0x352190[_0x577301(0x1bf)](Boolean,_0x4b25e1[_0x577301(0x17b)]),_0x4d8dd1=_0x1c09bc?{'browserName':_0x352190[_0x577301(0x19b)],'cdpEndpoint':_0x4b25e1[_0x577301(0x17b)]}:((()=>{const _0x29cf59=_0x577301,{launchOptions:_0x2e06e0,contextOptions:_0x247b8a}=buildBrowserOptionsFromSettings(_0x4b25e1,{'headless':_0x4c88a3?![]:_0x4b25e1[_0x29cf59(0x1b4)]??!![],'storageStatePath':_0x2fef8d});if(_0x352190['Comix'](process[_0x29cf59(0x178)]?.(),0x0)){const _0x2d1bf9=['--no-sandbox','--disable-setuid-sandbox'],_0x154c6f=_0x2e06e0['args']??[],_0x31335a=_0x2d1bf9[_0x29cf59(0x1cd)](_0x1ec289=>!_0x154c6f['includes'](_0x1ec289));_0x2e06e0[_0x29cf59(0x1b9)]=[..._0x154c6f,..._0x31335a];}return{'isolated':!![],'browserName':_0x352190['PGcSK'],'launchOptions':_0x2e06e0,'contextOptions':{..._0x247b8a,'permissions':[_0x352190['TnWtA'],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x399fa3={'name':_0x5ed7b2,'browser':_0x4d8dd1,'capabilities':[_0x352190[_0x577301(0x1a1)],'tabs',_0x577301(0x19a),_0x577301(0x1d2),_0x577301(0x1cb)],'imageResponses':_0x577301(0x187),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x3c6264};if(!_0x1c09bc){const _0x2128ac=_0x399fa3['browser'],_0x5c98fe=_0x2128ac['contextOptions'];if(_0x352190['MJjuq'](_0x5c98fe['userAgent'],undefined))delete _0x5c98fe['userAgent'];if(_0x352190['DMSjQ'](_0x5c98fe['storageState'],undefined))delete _0x5c98fe['storageState'];}const _0xd49a72=join(tmpdir(),_0x577301(0x1b3));!existsSync(_0xd49a72)&&await _0x352190['ojnUs'](mkdir,_0xd49a72,{'recursive':!![]});const _0x133fcd=join(_0xd49a72,_0x5ed7b2+'-'+Date[_0x577301(0x1a8)]()+'.json');return await writeFile(_0x133fcd,JSON[_0x577301(0x1af)](_0x399fa3,null,0x2)),{'configPath':_0x133fcd,'tempAuthPath':_0x1d4835};}export async function buildPlaywrightCliConfig(_0x28c71d,_0x491460,_0x1c62ce,_0x446aec){const _0x46d515=_0x5554aa,_0x302895={'BFscJ':_0x46d515(0x1cc),'pTVlu':'chromium','lPsSB':function(_0xaf9afe,_0x126cd7,_0x25ece1){return _0xaf9afe(_0x126cd7,_0x25ece1);},'aQenB':_0x46d515(0x18c),'HxWDT':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','Tohta':function(_0x1aa767,_0x165384){return _0x1aa767(_0x165384);},'niMfC':function(_0xb38838,_0x437bdc){return _0xb38838(_0x437bdc);},'gcRED':function(_0x4e1539){return _0x4e1539();},'TYFcw':function(_0x1f27e9,_0x10f6ac){return _0x1f27e9===_0x10f6ac;},'TRURM':'none','OnXGy':function(_0x39fe47){return _0x39fe47();},'IQFcA':_0x46d515(0x1b3),'CUzBX':function(_0x30b6ce,_0x80feaf,_0x151a03){return _0x30b6ce(_0x80feaf,_0x151a03);}},_0x176c59=getEnvDir(_0x491460),_0x491d5e=_0x302895[_0x46d515(0x1ae)](join,_0x176c59,_0x46d515(0x1d1)),_0x3661dc=join(_0x176c59,_0x302895['aQenB']);let _0xc29f7e,_0x283f31;if(existsSync(_0x491d5e))try{const _0x53bdce=await getToken();if(!_0x53bdce)throw new Error(_0x302895['HxWDT']);const _0x49aa8c=await _0x302895['Tohta'](readFile,_0x491d5e),_0x3794e5=decrypt(_0x49aa8c,_0x53bdce);_0x283f31=join(tmpdir(),_0x46d515(0x17e)+Date[_0x46d515(0x1a8)]()+'.json'),await _0x302895[_0x46d515(0x1ae)](writeFile,_0x283f31,_0x3794e5),_0xc29f7e=_0x283f31;}catch(_0x207c9){const _0x3544a3=_0x207c9 instanceof Error?_0x207c9[_0x46d515(0x1c4)]:_0x302895['niMfC'](String,_0x207c9);throw new Error(_0x46d515(0x18a)+_0x3544a3);}else existsSync(_0x3661dc)&&(_0xc29f7e=_0x3661dc);const _0x4cbc1a=_0x1c62ce||_0x302895[_0x46d515(0x1b2)](randomUUID),_0x20b362=join(_0x302895[_0x46d515(0x1b2)](getRangerDir),'sessions',_0x4cbc1a),_0x3053a5=Boolean(_0x28c71d['cdpEndpoint']),_0x49164a=_0x3053a5?{'browserName':'chromium','cdpEndpoint':_0x28c71d['cdpEndpoint']}:((()=>{const _0x5a204b=_0x46d515,{launchOptions:_0x340d73,contextOptions:_0xf8249a}=buildBrowserOptionsFromSettings(_0x28c71d,{'headless':_0x446aec?![]:_0x28c71d[_0x5a204b(0x1b4)]??!![],'storageStatePath':_0xc29f7e});if(process[_0x5a204b(0x178)]?.()===0x0){const _0x4b6742=['--no-sandbox',_0x302895[_0x5a204b(0x1a7)]],_0x32a806=_0x340d73[_0x5a204b(0x1b9)]??[],_0x30e8ea=_0x4b6742['filter'](_0x48269c=>!_0x32a806[_0x5a204b(0x1b7)](_0x48269c));_0x340d73['args']=[..._0x32a806,..._0x30e8ea];}return{'isolated':!![],'browserName':_0x302895['pTVlu'],'launchOptions':_0x340d73,'contextOptions':{..._0xf8249a,'permissions':['clipboard-read','clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x3053a5){const _0x776532=_0x49164a[_0x46d515(0x1c2)];if(_0x776532['userAgent']===undefined)delete _0x776532['userAgent'];if(_0x302895['TYFcw'](_0x776532['storageState'],undefined))delete _0x776532['storageState'];}const _0x29d665={'browser':_0x49164a,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x20b362,'outputMode':_0x46d515(0x1a9),'codegen':_0x302895['TRURM']},_0x1408b8=join(_0x302895['OnXGy'](tmpdir),_0x302895[_0x46d515(0x188)]);!existsSync(_0x1408b8)&&await _0x302895['lPsSB'](mkdir,_0x1408b8,{'recursive':!![]});const _0xd96d5e=_0x302895['lPsSB'](join,_0x1408b8,_0x491460+'-'+Date['now']()+'-cli.json');return await _0x302895[_0x46d515(0x19c)](writeFile,_0xd96d5e,JSON[_0x46d515(0x1af)](_0x29d665,null,0x2)),{'configPath':_0xd96d5e,'tempAuthPath':_0x283f31};}function _0x5b22(_0x1c134a,_0x316822){_0x1c134a=_0x1c134a-0x175;const _0x4b20a3=_0x4b20();let _0x5b2227=_0x4b20a3[_0x1c134a];return _0x5b2227;}export function getNestedValue(_0x2a3d86,_0x33dd14){const _0x1f0ee7=_0x5554aa,_0x146769={'qTirF':function(_0x4172f6,_0x541fd0){return _0x4172f6(_0x541fd0);},'rdrIh':function(_0x1d061,_0x1c9715){return _0x1d061===_0x1c9715;},'fqQYz':function(_0x1da1cc,_0x19e273){return _0x1da1cc!==_0x19e273;}},_0x5bff55=_0x146769[_0x1f0ee7(0x1c1)](parseKeyPath,_0x33dd14);let _0x3a986a=_0x2a3d86;for(const _0x1136c9 of _0x5bff55){if(_0x146769[_0x1f0ee7(0x18f)](_0x3a986a,null)||_0x3a986a===undefined||_0x146769['fqQYz'](typeof _0x3a986a,'object'))return undefined;_0x3a986a=_0x3a986a[_0x1136c9];}return _0x3a986a;}export function setNestedValue(_0x44eb47,_0xe1201f,_0x2c541c){const _0x3108a6=_0x5554aa,_0x506fe5={'CoSCb':function(_0x509ca4,_0x504e47){return _0x509ca4-_0x504e47;}},_0x4b11a6=parseKeyPath(_0xe1201f);let _0x4be38b=_0x44eb47;for(let _0xf1607d=0x0;_0xf1607d<_0x4b11a6['length']-0x1;_0xf1607d++){const _0x4caf1c=_0x4b11a6[_0xf1607d];(!(_0x4caf1c in _0x4be38b)||typeof _0x4be38b[_0x4caf1c]!==_0x3108a6(0x1c8))&&(_0x4be38b[_0x4caf1c]={}),_0x4be38b=_0x4be38b[_0x4caf1c];}_0x4be38b[_0x4b11a6[_0x506fe5[_0x3108a6(0x192)](_0x4b11a6[_0x3108a6(0x181)],0x1)]]=_0x2c541c;}export function deleteNestedValue(_0x8e20d2,_0x9033a7){const _0xf01974=_0x5554aa,_0x3f3a21={'YNUbR':function(_0x252f1e,_0x186afb){return _0x252f1e===_0x186afb;},'KkyZZ':function(_0x3af313,_0x2bb0fa){return _0x3af313!==_0x2bb0fa;},'vzSXr':'object','Trxuc':function(_0xa3546a,_0x47cf7f){return _0xa3546a===_0x47cf7f;}},_0x230f17=parseKeyPath(_0x9033a7);let _0x122edb=_0x8e20d2;for(let _0x158932=0x0;_0x158932<_0x230f17['length']-0x1;_0x158932++){if(_0x3f3a21['YNUbR'](_0x122edb,null)||_0x122edb===undefined||_0x3f3a21['KkyZZ'](typeof _0x122edb,_0x3f3a21['vzSXr']))return![];_0x122edb=_0x122edb[_0x230f17[_0x158932]];}if(_0x3f3a21['YNUbR'](_0x122edb,null)||_0x3f3a21[_0xf01974(0x1c5)](_0x122edb,undefined)||typeof _0x122edb!==_0x3f3a21['vzSXr'])return![];const _0x514094=_0x230f17[_0x230f17[_0xf01974(0x181)]-0x1];if(_0x514094 in _0x122edb)return delete _0x122edb[_0x514094],!![];return![];}function parseKeyPath(_0x2b6783){const _0x4cea73=_0x5554aa,_0x18fd67={'dVujr':function(_0x4709b7,_0x569ea0){return _0x4709b7===_0x569ea0;},'hxuHy':_0x4cea73(0x1cf),'bKYjN':'headers','tFdBJ':'setupHeader','Vyqeb':_0x4cea73(0x190)},_0x2057e9=_0x2b6783['split']('.');return _0x18fd67['dVujr'](_0x2057e9[0x0],_0x18fd67['hxuHy'])&&(_0x2057e9[0x0]=_0x18fd67[_0x4cea73(0x1aa)]),_0x18fd67['dVujr'](_0x2057e9[0x0],_0x18fd67['tFdBJ'])&&(_0x2057e9[0x0]=_0x18fd67['Vyqeb']),_0x2057e9;}export function formatSettings(_0x168e68,_0x2c1d8f=0x0){const _0x38b93c=_0x5554aa,_0x2fb193={'RfRNp':function(_0x3123fd,_0x5be04a){return _0x3123fd===_0x5be04a;},'xRjwk':'object'},_0x4b6255=[],_0xba7fed='\x20\x20'[_0x38b93c(0x1ca)](_0x2c1d8f);for(const [_0x56ec3c,_0x470892]of Object['entries'](_0x168e68)){if(_0x470892===undefined)continue;if(_0x2fb193[_0x38b93c(0x1be)](typeof _0x470892,_0x2fb193['xRjwk'])&&_0x470892!==null){_0x4b6255[_0x38b93c(0x198)](''+_0xba7fed+_0x56ec3c+':');for(const [_0x3c26e7,_0x3075dd]of Object['entries'](_0x470892)){_0x4b6255['push'](_0xba7fed+'\x20\x20'+_0x3c26e7+':\x20'+_0x3075dd);}}else _0x4b6255[_0x38b93c(0x198)](''+_0xba7fed+_0x56ec3c+':\x20'+_0x470892);}return _0x4b6255[_0x38b93c(0x1c6)]('\x0a');}
1
+ const _0x589602=_0x1806;(function(_0x3e2f1e,_0x239832){const _0x105ee8=_0x1806,_0xe1de7e=_0x3e2f1e();while(!![]){try{const _0x403912=parseInt(_0x105ee8(0x186))/0x1+-parseInt(_0x105ee8(0x197))/0x2+-parseInt(_0x105ee8(0x1ac))/0x3*(-parseInt(_0x105ee8(0x187))/0x4)+parseInt(_0x105ee8(0x1bb))/0x5*(parseInt(_0x105ee8(0x17f))/0x6)+-parseInt(_0x105ee8(0x1ce))/0x7*(-parseInt(_0x105ee8(0x194))/0x8)+parseInt(_0x105ee8(0x1d5))/0x9*(-parseInt(_0x105ee8(0x17e))/0xa)+parseInt(_0x105ee8(0x1ab))/0xb*(-parseInt(_0x105ee8(0x1ec))/0xc);if(_0x403912===_0x239832)break;else _0xe1de7e['push'](_0xe1de7e['shift']());}catch(_0x33ca6f){_0xe1de7e['push'](_0xe1de7e['shift']());}}}(_0x1e84,0x74737));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,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x1c66e5,_0x48a9ea){const _0x36baa2=_0x1806,_0x53fccd={'AemjQ':function(_0x338731,_0x538dea,_0x3e2c6e,_0x2808b2){return _0x338731(_0x538dea,_0x3e2c6e,_0x2808b2);},'YNKtP':function(_0x48f3f5,_0x29d78b,_0x25b814){return _0x48f3f5(_0x29d78b,_0x25b814);},'ZvtDv':'local','gcZHW':function(_0x5205b3,_0x554e73,_0xbba4c9){return _0x5205b3(_0x554e73,_0xbba4c9);},'FOIrC':function(_0x9a8a25,_0x3c2046){return _0x9a8a25(_0x3c2046);},'oKPZM':function(_0x4a0842,_0x55cd82){return _0x4a0842!==_0x55cd82;}},_0x2a53f8=join(_0x48a9ea,'ci',_0x1c66e5),_0x37f7bb=_0x53fccd['AemjQ'](join,_0x48a9ea,'local',_0x1c66e5),_0xecd2b4=join(_0x48a9ea,_0x1c66e5),_0x2b0f8b=_0x53fccd[_0x36baa2(0x1c5)](join,_0x48a9ea,_0x53fccd[_0x36baa2(0x1b1)]),_0x227586=_0x53fccd['gcZHW'](join,_0x48a9ea,'ci');if(existsSync(_0x2a53f8))return _0x2a53f8;if(existsSync(_0x37f7bb))return _0x37f7bb;if(_0x53fccd['FOIrC'](existsSync,_0xecd2b4)&&(_0x53fccd['oKPZM'](_0xecd2b4,_0x2b0f8b)&&_0xecd2b4!==_0x227586?!![]:hasLegacyProfileFiles(_0xecd2b4)))return _0xecd2b4;return null;}export function getEnvDir(_0x2a451c,_0x2a5f90={}){const _0x1e8c64=_0x1806,_0x248022={'jdqEI':function(_0x4f3d8f){return _0x4f3d8f();},'ZLboj':function(_0x145ded,_0x4efd2a,_0x212467){return _0x145ded(_0x4efd2a,_0x212467);},'usHVd':function(_0x2f3b5f,_0x3ac2d8,_0x22c431){return _0x2f3b5f(_0x3ac2d8,_0x22c431);},'aAQTY':function(_0x492afa,_0x100db1){return _0x492afa(_0x100db1);},'VThAd':function(_0x587c1d,_0x15d077,_0x58d2a1,_0x3a7b33){return _0x587c1d(_0x15d077,_0x58d2a1,_0x3a7b33);},'eVmIs':_0x1e8c64(0x1a7)},_0x1abf28=_0x248022['jdqEI'](getRangerDir),_0xefd81a=_0x248022['ZLboj'](findEnvInRoot,_0x2a451c,_0x1abf28);if(_0xefd81a){if(_0x2a5f90['forWrite']&&isLegacyEnvPath(_0xefd81a))throw _0x248022[_0x1e8c64(0x1ba)](legacyWriteError,_0x2a451c,_0xefd81a);return _0xefd81a;}const _0x36b6e9=getRangerHomeDir();if(_0x36b6e9!==_0x1abf28){const _0x35d6f0=_0x248022[_0x1e8c64(0x19e)](findEnvInRoot,_0x2a451c,_0x36b6e9);if(_0x35d6f0){if(_0x2a5f90['forWrite']&&_0x248022[_0x1e8c64(0x1a5)](isLegacyEnvPath,_0x35d6f0))throw _0x248022['ZLboj'](legacyWriteError,_0x2a451c,_0x35d6f0);return _0x35d6f0;}}const _0x3217a3=_0x248022[_0x1e8c64(0x1f2)](join,_0x36b6e9,_0x248022['eVmIs'],_0x2a451c);if(_0x2a5f90[_0x1e8c64(0x19a)])throw legacyWriteError(_0x2a451c,_0x3217a3);return _0x3217a3;}function isLegacyEnvPath(_0x307a8c){const _0x30c53c=_0x1806,_0x17bc1b={'VlwTH':function(_0x2cd729){return _0x2cd729();},'ZVQqu':function(_0x520a80,_0x1b1355){return _0x520a80===_0x1b1355;}},_0x145b53=_0x17bc1b['VlwTH'](getRangerDir),_0x4024e9=getRangerHomeDir();for(const _0x11f98a of new Set([_0x145b53,_0x4024e9])){const _0x9ed457=_0x11f98a['endsWith']('/')?_0x11f98a:_0x11f98a+'/';if(_0x17bc1b[_0x30c53c(0x1c4)](_0x307a8c,_0x11f98a)||_0x307a8c[_0x30c53c(0x1be)](_0x9ed457))return!![];}return![];}function legacyWriteError(_0xd09509,_0x2e7f47){const _0x1fb94f=_0x1806,_0x241e07={'bauRN':function(_0x33d602,_0x401bd1){return _0x33d602+_0x401bd1;}};return new Error(_0x241e07['bauRN']('Refusing\x20to\x20write\x20profile\x20\x22'+_0xd09509+_0x1fb94f(0x1e9)+_0x2e7f47+'.\x0a'+'That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a'+_0x1fb94f(0x1bc),_0x1fb94f(0x1ea)));}function _0x1806(_0x233b9a,_0x3d1885){_0x233b9a=_0x233b9a-0x17e;const _0x1e8409=_0x1e84();let _0x180658=_0x1e8409[_0x233b9a];return _0x180658;}export function findExistingEnv(_0x3133a8,_0x4a7dc8){const _0x1aaf68=_0x1806,_0x4904c8={'ORKzQ':function(_0x3f0805){return _0x3f0805();},'sbxEt':function(_0x3805c8,_0x297c0a,_0x27debf){return _0x3805c8(_0x297c0a,_0x27debf);},'SfrEI':function(_0x44e14f,_0x3077b5,_0x22a8c){return _0x44e14f(_0x3077b5,_0x22a8c);},'TOKut':function(_0x4eb30b,_0x313fe6,_0x1563c6,_0x152f7f){return _0x4eb30b(_0x313fe6,_0x1563c6,_0x152f7f);},'lphNo':function(_0x8bbba7,_0x37ab0e,_0x17678e,_0x573396){return _0x8bbba7(_0x37ab0e,_0x17678e,_0x573396);},'flMLt':'local','McjRd':'legacy','ZfYfM':function(_0xbe473b,_0x20eb9c){return _0xbe473b===_0x20eb9c;}},_0x452edb=_0x4a7dc8?.['rangerDir'],_0x474ac9=_0x452edb?[_0x452edb]:[_0x4904c8['ORKzQ'](getRangerDir),getRangerHomeDir()]['filter']((_0x37e052,_0x57492d,_0x1b0569)=>_0x1b0569[_0x1aaf68(0x196)](_0x37e052)===_0x57492d),_0x41c41a=_0x4a7dc8?.[_0x1aaf68(0x18f)]??['ci','local',_0x1aaf68(0x1cb)];for(const _0x2b917e of _0x474ac9){const _0x5557f6=_0x4904c8['sbxEt'](join,_0x2b917e,_0x1aaf68(0x1a7)),_0x277d98=_0x4904c8['SfrEI'](join,_0x2b917e,'ci'),_0x4da8f0=[{'location':'ci','path':_0x4904c8['TOKut'](join,_0x2b917e,'ci',_0x3133a8)},{'location':'local','path':_0x4904c8['lphNo'](join,_0x2b917e,_0x4904c8[_0x1aaf68(0x1e1)],_0x3133a8)},{'location':_0x4904c8[_0x1aaf68(0x1f4)],'path':join(_0x2b917e,_0x3133a8)}];for(const _0x4d93f6 of _0x4da8f0){if(_0x41c41a[_0x1aaf68(0x1dd)](_0x4d93f6[_0x1aaf68(0x18a)])&&existsSync(_0x4d93f6[_0x1aaf68(0x1c9)])){if(_0x4904c8[_0x1aaf68(0x19f)](_0x4d93f6['location'],'legacy')&&(_0x4904c8[_0x1aaf68(0x19f)](_0x4d93f6['path'],_0x5557f6)||_0x4904c8['ZfYfM'](_0x4d93f6[_0x1aaf68(0x1c9)],_0x277d98))&&!hasLegacyProfileFiles(_0x4d93f6['path']))continue;return{'path':_0x4d93f6['path'],'location':_0x4d93f6['location']};}}}return null;}function hasLegacyProfileFiles(_0x4534aa){const _0x11e1b9=_0x1806,_0x43be9f={'ZAQJO':function(_0xdae451,_0x2d20c7){return _0xdae451(_0x2d20c7);},'XrimM':function(_0xe0c192,_0x3ec121,_0x5cd599){return _0xe0c192(_0x3ec121,_0x5cd599);},'aRuyy':'auth.json.enc'};return _0x43be9f['ZAQJO'](existsSync,_0x43be9f['XrimM'](join,_0x4534aa,_0x11e1b9(0x1d3)))||_0x43be9f['ZAQJO'](existsSync,_0x43be9f['XrimM'](join,_0x4534aa,_0x11e1b9(0x1ef)))||existsSync(join(_0x4534aa,_0x43be9f['aRuyy']));}export function isEnvCi(_0x7f253d){const _0xf2bd47=_0x1806,_0x268653={'WZwID':function(_0xafb55a){return _0xafb55a();},'fahyC':function(_0x3be276,_0x1d5b59){return _0x3be276!==_0x1d5b59;},'YmpyS':function(_0x3f5d86,_0x370f9c){return _0x3f5d86(_0x370f9c);}};if(existsSync(join(_0x268653[_0xf2bd47(0x180)](getRangerDir),'ci',_0x7f253d)))return!![];const _0x5174f4=getRangerHomeDir();if(_0x268653[_0xf2bd47(0x1cd)](_0x5174f4,_0x268653[_0xf2bd47(0x180)](getRangerDir))&&_0x268653['YmpyS'](existsSync,join(_0x5174f4,'ci',_0x7f253d)))return!![];return![];}export async function cleanupTempFiles(_0x496e33){const _0x251b3e=_0x1806,_0x1f4fde={'lnbmO':function(_0x26c70e,_0x2aa968){return _0x26c70e!==_0x2aa968;}},_0x4387c7=[_0x496e33[_0x251b3e(0x1f1)],_0x496e33['configPath']][_0x251b3e(0x19b)](Boolean);await Promise['all'](_0x4387c7[_0x251b3e(0x1f5)](_0xfa52dc=>unlink(_0xfa52dc)['catch'](_0x3acc8d=>{const _0x1a85e4=_0x251b3e;_0x1f4fde['lnbmO'](_0x3acc8d['code'],_0x1a85e4(0x183))&&console[_0x1a85e4(0x192)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0xfa52dc+':',_0x3acc8d[_0x1a85e4(0x1c6)]);})));}export function getSettingsPath(_0x265778){return join(getEnvDir(_0x265778),'settings.json');}export async function loadSettings(_0x412287){const _0x403625=_0x1806,_0x1f5fc1={'ulMmB':function(_0x16342f,_0x1b7ede){return _0x16342f(_0x1b7ede);},'zQUlS':function(_0x1f9afd,_0x4e9b8f,_0xa1fbf7){return _0x1f9afd(_0x4e9b8f,_0xa1fbf7);},'PTEaz':'utf-8'},_0x5087b9=_0x1f5fc1[_0x403625(0x1d6)](getSettingsPath,_0x412287);if(!_0x1f5fc1['ulMmB'](existsSync,_0x5087b9))return{};try{const _0x645801=await _0x1f5fc1[_0x403625(0x1a3)](readFile,_0x5087b9,_0x1f5fc1[_0x403625(0x1c7)]);return JSON['parse'](_0x645801);}catch{return{};}}export async function saveSettings(_0x5f1c00,_0x5c3cf4){const _0x39ba4d=_0x1806,_0x36ecf0={'WsJlv':function(_0x1adc89,_0x5e3200){return _0x1adc89(_0x5e3200);}},_0x2fbfde=_0x36ecf0[_0x39ba4d(0x1d9)](getSettingsPath,_0x5f1c00),_0x5215fb=_0x36ecf0[_0x39ba4d(0x1d9)](dirname,_0x2fbfde);!_0x36ecf0[_0x39ba4d(0x1d9)](existsSync,_0x5215fb)&&await mkdir(_0x5215fb,{'recursive':!![]}),await writeFile(_0x2fbfde,JSON[_0x39ba4d(0x1ae)](_0x5c3cf4,null,0x2));}export function resolveEnvVars(_0x5f5377){const _0x41c0ba=_0x1806,_0x2dad79={'PCbUk':function(_0x772ab2,_0x3d1bdc){return _0x772ab2===_0x3d1bdc;},'oUnLw':'object'};if(typeof _0x5f5377==='string')return _0x5f5377['replace'](/\$\{(\w+)\}/g,(_0x414bb5,_0x10ff76)=>{const _0x1efd43=_0x1806,_0xaad494=process[_0x1efd43(0x1f3)][_0x10ff76];if(_0xaad494===undefined)throw new Error('Environment\x20variable\x20'+_0x10ff76+_0x1efd43(0x1bf));return _0xaad494;});if(Array['isArray'](_0x5f5377))return _0x5f5377[_0x41c0ba(0x1f5)](resolveEnvVars);if(_0x5f5377&&_0x2dad79['PCbUk'](typeof _0x5f5377,_0x2dad79['oUnLw']))return Object['fromEntries'](Object['entries'](_0x5f5377)['map'](([_0xde1f22,_0x3f81fa])=>[_0xde1f22,resolveEnvVars(_0x3f81fa)]));return _0x5f5377;}function _0x1e84(){const _0x4fd4c6=['headers','zQUlS','PcXNj','aAQTY','tkGQM','local','hBBfk','install','eYrbD','1144bwwqyd','1599vBccys','YSUwk','stringify','file','clipboard-write','ZvtDv','object','--no-sandbox','contextOptions','push','glvpU','sessions','isArray','pdf','usHVd','160PeCght','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','SfFxy','startsWith','\x20is\x20not\x20set','extraHTTPHeaders','Pozgb','JIAfc','--unsafely-treat-insecure-origin-as-secure=http://localhost','ZVQqu','YNKtP','message','PTEaz','cdpEndpoint','path','storageState','legacy','string','fahyC','7YqEjdQ','sWiml','YZeRj','clipboard-read','join','settings.json','VVARz','112986PIvhre','ulMmB','KRjwD','xTGZp','WsJlv','headless','stagehand','storageStatePath','includes','catch','nbsHK','lxtyo','flMLt','Iadeh','emdkP','xaDkp','IksxB','header','launchOptions','ranger-auth-','\x22\x20to\x20legacy\x20path\x20','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','eqCuy','141576WsVXla','IhXzR','entries','auth.json','--allow-insecure-localhost','tempAuthPath','VThAd','env','McjRd','map','250Fdhxin','162858olYdpM','WZwID','hvGKG','XSRyz','ENOENT','setupHeaders','core','512338raDglG','3652wBSJol','PsFhJ','kyoQT','location','repeat','allowInsecureLocalhost','split','DLBqv','locations','chromium','vision','warn','tabs','4576936mtKpqF','getuid','indexOf','843670CogQaH','YNruj','MgTZD','forWrite','filter','lagux','setupHeader','ZLboj','ZfYfM','args','length'];_0x1e84=function(){return _0x4fd4c6;};return _0x1e84();}const isRecord=_0x5042db=>typeof _0x5042db===_0x589602(0x1b2)&&_0x5042db!==null&&!Array[_0x589602(0x1b8)](_0x5042db),asRecord=_0x2871da=>isRecord(_0x2871da)?_0x2871da:undefined,mergeHeaders=(_0x47db99,_0x4c61ea)=>{const _0x1b5b22=_0x589602,_0x173b54={'emdkP':function(_0x2d898c,_0x278beb){return _0x2d898c??_0x278beb;}},_0x5eb0bd={..._0x47db99??{},..._0x173b54[_0x1b5b22(0x1e3)](_0x4c61ea,{})};return Object['keys'](_0x5eb0bd)['length']?_0x5eb0bd:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=['--disable-web-security','--allow-running-insecure-content',_0x589602(0x1c3),_0x589602(0x1f0)];export function buildBrowserOptionsFromSettings(_0x5ccc18,_0x3b5f65={}){const _0x19b81f=_0x589602,_0x55b58e={'QGBjY':function(_0x3f01e2,_0x77f1d){return _0x3f01e2===_0x77f1d;},'DLBqv':function(_0x159877,_0x30fd22){return _0x159877(_0x30fd22);},'erYae':function(_0xaa36d9,_0x4339d9,_0x4ef678){return _0xaa36d9(_0x4339d9,_0x4ef678);},'yYJap':function(_0x210d92,_0x1407fa){return _0x210d92(_0x1407fa);},'IhXzR':function(_0xf88a22,_0x2408c9){return _0xf88a22(_0x2408c9);}},_0x1128d5=asRecord(_0x5ccc18['browser']),_0x140417={...asRecord(_0x1128d5?.[_0x19b81f(0x1e7)])??{}};_0x55b58e['QGBjY'](typeof _0x3b5f65[_0x19b81f(0x1da)],'boolean')&&(_0x140417['headless']=_0x3b5f65['headless']);if(_0x5ccc18['safeMode']){const _0x43ddef=_0x140417['args']??[],_0x41ba70=SAFE_MODE_ARGS['filter'](_0x1584ca=>!_0x43ddef[_0x19b81f(0x1dd)](_0x1584ca));_0x140417[_0x19b81f(0x1a0)]=[..._0x43ddef,..._0x41ba70];}if(_0x5ccc18[_0x19b81f(0x18c)]){const _0x439ba6=_0x140417['args']??[],_0x13f53c=ALLOW_LOCALHOST_ARGS[_0x19b81f(0x19b)](_0x338d4b=>!_0x439ba6[_0x19b81f(0x1dd)](_0x338d4b));_0x140417['args']=[..._0x439ba6,..._0x13f53c];}const _0x55c92b={..._0x55b58e[_0x19b81f(0x18e)](asRecord,_0x1128d5?.[_0x19b81f(0x1b4)])??{}};_0x55c92b['ignoreHTTPSErrors']=!![];typeof _0x5ccc18['userAgent']===_0x19b81f(0x1cc)&&(_0x55c92b['userAgent']=_0x5ccc18['userAgent']);const _0x5bdd52=_0x55b58e['erYae'](mergeHeaders,_0x55b58e['yYJap'](asRecord,_0x55c92b[_0x19b81f(0x1c0)]),_0x55b58e[_0x19b81f(0x1ed)](asRecord,_0x5ccc18[_0x19b81f(0x1a2)]));return _0x5bdd52?_0x55c92b['extraHTTPHeaders']=_0x5bdd52:delete _0x55c92b[_0x19b81f(0x1c0)],_0x3b5f65[_0x19b81f(0x1dc)]&&(_0x55c92b[_0x19b81f(0x1ca)]=_0x3b5f65[_0x19b81f(0x1dc)]),{'launchOptions':_0x140417,'contextOptions':_0x55c92b};}async function resolveLocalAuthPath(_0x3b3e1c){const _0x4ca576=_0x589602,_0xc142e9={'MgTZD':_0x4ca576(0x1ef),'VVARz':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','xtfGw':function(_0x2155b5,_0x528984){return _0x2155b5(_0x528984);},'gDvUo':function(_0x343b94){return _0x343b94();},'KLdPS':function(_0x23dd4b,_0x25d44b,_0x30d8fd){return _0x23dd4b(_0x25d44b,_0x30d8fd);},'glvpU':function(_0x471e13,_0x19fbd8){return _0x471e13 instanceof _0x19fbd8;},'NbUNp':function(_0x3d1870,_0x580fa1){return _0x3d1870(_0x580fa1);},'mwIqE':function(_0x1e7037,_0x2fda48){return _0x1e7037(_0x2fda48);}},_0x3a06f5=join(_0x3b3e1c,'auth.json.enc'),_0x46c8af=join(_0x3b3e1c,_0xc142e9[_0x4ca576(0x199)]);if(existsSync(_0x3a06f5))try{const _0x406de0=await getToken();if(!_0x406de0)throw new Error(_0xc142e9[_0x4ca576(0x1d4)]);const _0x3546e0=await _0xc142e9['xtfGw'](readFile,_0x3a06f5),_0x4d9dd0=decrypt(_0x3546e0,_0x406de0),_0xae71c8=join(_0xc142e9['gDvUo'](tmpdir),_0x4ca576(0x1e8)+Date['now']()+'.json');return await _0xc142e9['KLdPS'](writeFile,_0xae71c8,_0x4d9dd0),{'storageStatePath':_0xae71c8,'tempAuthPath':_0xae71c8};}catch(_0x36f469){const _0x5a4f48=_0xc142e9[_0x4ca576(0x1b6)](_0x36f469,Error)?_0x36f469['message']:_0xc142e9['NbUNp'](String,_0x36f469);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x5a4f48);}if(_0xc142e9['mwIqE'](existsSync,_0x46c8af))return{'storageStatePath':_0x46c8af};return{};}export async function buildPlaywrightConfig(_0x444720,_0x5bbbbf,_0x541ed9,_0x54aa4f,_0x38057e){const _0x10d235=_0x589602,_0x5f0e98={'xTGZp':function(_0x1d53f6,_0x4a4dcb,_0x4ee048,_0x440995,_0x476ec3,_0x43d791,_0x28f716){return _0x1d53f6(_0x4a4dcb,_0x4ee048,_0x440995,_0x476ec3,_0x43d791,_0x28f716);},'IksxB':'stagehand','VXuDq':function(_0x2291c6,_0x2f3b9a){return _0x2291c6(_0x2f3b9a);},'Pozgb':function(_0x128984,_0x5a6945){return _0x128984(_0x5a6945);},'kyoQT':function(_0x73ceb4,_0x33b213){return _0x73ceb4(_0x33b213);}};if(_0x38057e)return _0x5f0e98[_0x10d235(0x1d8)](buildPlaywrightConfigCore,_0x444720,_0x38057e,_0x5bbbbf,_0x541ed9,_0x54aa4f,_0x5f0e98[_0x10d235(0x1e5)]);const {storageStatePath:_0x393658,tempAuthPath:_0x56f5bf}=await _0x5f0e98['VXuDq'](resolveLocalAuthPath,_0x5f0e98[_0x10d235(0x1c1)](getEnvDir,_0x5bbbbf));try{const _0x3a2240=await _0x5f0e98['xTGZp'](buildPlaywrightConfigCore,_0x444720,_0x393658,_0x5bbbbf,_0x541ed9,_0x54aa4f,'stagehand');return{..._0x3a2240,'tempAuthPath':_0x56f5bf};}catch(_0x716017){_0x56f5bf&&await _0x5f0e98[_0x10d235(0x189)](unlink,_0x56f5bf)[_0x10d235(0x1de)](()=>{});throw _0x716017;}}export async function buildPlaywrightConfigCore(_0x2f727d,_0x678168,_0x265e70,_0x208520,_0x32fb45,_0x10d964=_0x589602(0x1db)){const _0xb4181e=_0x589602,_0x2670b3={'oLumU':_0xb4181e(0x1b3),'PcXNj':_0xb4181e(0x190),'Iadeh':_0xb4181e(0x1d1),'SfFxy':_0xb4181e(0x1b0),'lxtyo':function(_0xb2789){return _0xb2789();},'nbsHK':_0xb4181e(0x1b7),'lagux':function(_0x2a94a4,_0x3d95f3){return _0x2a94a4(_0x3d95f3);},'fIiJl':function(_0x54dac2,_0x36f1b5){return _0x54dac2===_0x36f1b5;},'hBBfk':_0xb4181e(0x1af),'PbOPR':_0xb4181e(0x185),'IiXxT':_0xb4181e(0x191),'rEZUS':function(_0x222ff6,_0x3ffff0){return _0x222ff6===_0x3ffff0;},'eqCuy':function(_0x211863,_0x19b117,_0x4efd24){return _0x211863(_0x19b117,_0x4efd24);},'AjZvx':function(_0x37483f,_0xab7733){return _0x37483f===_0xab7733;},'TVgdQ':'playwright-cli','YNruj':'-cli','uANcy':function(_0x42881f,_0xf03785,_0x1dbe5a){return _0x42881f(_0xf03785,_0x1dbe5a);}},_0x1cdcfd=_0x208520||randomUUID(),_0x28a58d=join(_0x2670b3['lxtyo'](getRangerDir),_0x2670b3[_0xb4181e(0x1df)],_0x1cdcfd),_0x3c9566=_0x2670b3[_0xb4181e(0x19c)](Boolean,_0x2f727d[_0xb4181e(0x1c8)]),_0x2bf349=_0x3c9566?{'browserName':'chromium','cdpEndpoint':_0x2f727d[_0xb4181e(0x1c8)]}:((()=>{const _0x194023=_0xb4181e,{launchOptions:_0xa5c253,contextOptions:_0x1d3dea}=buildBrowserOptionsFromSettings(_0x2f727d,{'headless':_0x32fb45?![]:_0x2f727d['headless']??!![],'storageStatePath':_0x678168});if(process[_0x194023(0x195)]?.()===0x0){const _0x1b2077=[_0x2670b3['oLumU'],'--disable-setuid-sandbox'],_0x23388b=_0xa5c253['args']??[],_0x23a986=_0x1b2077['filter'](_0x4ee718=>!_0x23388b[_0x194023(0x1dd)](_0x4ee718));_0xa5c253[_0x194023(0x1a0)]=[..._0x23388b,..._0x23a986];}return{'isolated':!![],'browserName':_0x2670b3[_0x194023(0x1a4)],'launchOptions':_0xa5c253,'contextOptions':{..._0x1d3dea,'permissions':[_0x2670b3[_0x194023(0x1e2)],_0x2670b3[_0x194023(0x1bd)]],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x21bb90=_0x2670b3['fIiJl'](_0x10d964,'playwright-cli')?{'browser':_0x2bf349,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x28a58d,'outputMode':_0x2670b3[_0xb4181e(0x1a8)],'codegen':'none'}:{'name':_0x265e70,'browser':_0x2bf349,'capabilities':[_0x2670b3['PbOPR'],_0xb4181e(0x193),_0xb4181e(0x1a9),_0xb4181e(0x1b9),_0x2670b3['IiXxT']],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x28a58d};if(!_0x3c9566){const _0x2792a2=_0x21bb90['browser'],_0x16e75d=_0x2792a2['contextOptions'];if(_0x16e75d['userAgent']===undefined)delete _0x16e75d['userAgent'];if(_0x2670b3['rEZUS'](_0x16e75d[_0xb4181e(0x1ca)],undefined))delete _0x16e75d[_0xb4181e(0x1ca)];}const _0x267a17=_0x2670b3[_0xb4181e(0x1eb)](join,_0x2670b3[_0xb4181e(0x1e0)](tmpdir),'ranger-config');!existsSync(_0x267a17)&&await mkdir(_0x267a17,{'recursive':!![]});const _0x1f9fab=_0x2670b3['AjZvx'](_0x10d964,_0x2670b3['TVgdQ'])?_0x2670b3[_0xb4181e(0x198)]:'',_0x2116ee=_0x2670b3['uANcy'](join,_0x267a17,_0x265e70+'-'+Date['now']()+_0x1f9fab+'.json');return await writeFile(_0x2116ee,JSON[_0xb4181e(0x1ae)](_0x21bb90,null,0x2)),{'configPath':_0x2116ee};}export async function buildPlaywrightCliConfig(_0x5f5a68,_0x32d6c3,_0x724117,_0x3d54c8,_0x679863){const _0x1b7fe1=_0x589602,_0x1eb150={'DVyeH':function(_0x3a1664,_0x41eeea,_0x1197ce,_0x340f6f,_0xcf8dde,_0x140b76,_0x1c5ac1){return _0x3a1664(_0x41eeea,_0x1197ce,_0x340f6f,_0xcf8dde,_0x140b76,_0x1c5ac1);},'XSRyz':'playwright-cli','PsFhJ':function(_0x1daad0,_0x39a664){return _0x1daad0(_0x39a664);}};if(_0x679863)return _0x1eb150['DVyeH'](buildPlaywrightConfigCore,_0x5f5a68,_0x679863,_0x32d6c3,_0x724117,_0x3d54c8,_0x1eb150['XSRyz']);const {storageStatePath:_0x47d3fb,tempAuthPath:_0x10bdef}=await _0x1eb150[_0x1b7fe1(0x188)](resolveLocalAuthPath,_0x1eb150[_0x1b7fe1(0x188)](getEnvDir,_0x32d6c3));try{const _0x4e0fc6=await buildPlaywrightConfigCore(_0x5f5a68,_0x47d3fb,_0x32d6c3,_0x724117,_0x3d54c8,_0x1eb150[_0x1b7fe1(0x182)]);return{..._0x4e0fc6,'tempAuthPath':_0x10bdef};}catch(_0x55aecf){_0x10bdef&&await _0x1eb150['PsFhJ'](unlink,_0x10bdef)[_0x1b7fe1(0x1de)](()=>{});throw _0x55aecf;}}export function getNestedValue(_0x224f74,_0x6046b7){const _0x5499d2=_0x589602,_0x2b3b5b=parseKeyPath(_0x6046b7);let _0x28ac71=_0x224f74;for(const _0x506200 of _0x2b3b5b){if(_0x28ac71===null||_0x28ac71===undefined||typeof _0x28ac71!==_0x5499d2(0x1b2))return undefined;_0x28ac71=_0x28ac71[_0x506200];}return _0x28ac71;}export function setNestedValue(_0x947bb5,_0x44fddd,_0x310239){const _0xe0b965=_0x589602,_0x57d0ba={'oVMsv':function(_0xde6543,_0xbfe1b4){return _0xde6543(_0xbfe1b4);},'oVIIk':function(_0x2cea35,_0xd4c1f7){return _0x2cea35 in _0xd4c1f7;},'BtzCT':function(_0xbbccee,_0x3540ab){return _0xbbccee-_0x3540ab;}},_0x41ef81=_0x57d0ba['oVMsv'](parseKeyPath,_0x44fddd);let _0x54bcc8=_0x947bb5;for(let _0x410dac=0x0;_0x410dac<_0x41ef81[_0xe0b965(0x1a1)]-0x1;_0x410dac++){const _0x27d6a0=_0x41ef81[_0x410dac];(!_0x57d0ba['oVIIk'](_0x27d6a0,_0x54bcc8)||typeof _0x54bcc8[_0x27d6a0]!=='object')&&(_0x54bcc8[_0x27d6a0]={}),_0x54bcc8=_0x54bcc8[_0x27d6a0];}_0x54bcc8[_0x41ef81[_0x57d0ba['BtzCT'](_0x41ef81['length'],0x1)]]=_0x310239;}export function deleteNestedValue(_0xd97d33,_0x47accc){const _0x2847d8=_0x589602,_0x29ce7b={'hvGKG':function(_0x2f1707,_0x23133b){return _0x2f1707(_0x23133b);},'eYrbD':function(_0x247450,_0x14bfaf){return _0x247450<_0x14bfaf;},'xaDkp':function(_0x2d954b,_0x4f8750){return _0x2d954b-_0x4f8750;},'YZeRj':function(_0x3c0459,_0x5cd423){return _0x3c0459===_0x5cd423;},'tkGQM':function(_0x547fc7,_0x2d7b82){return _0x547fc7===_0x2d7b82;},'YSUwk':function(_0x174366,_0x39d291){return _0x174366!==_0x39d291;},'TPviB':'object'},_0x5f070d=_0x29ce7b[_0x2847d8(0x181)](parseKeyPath,_0x47accc);let _0x502b84=_0xd97d33;for(let _0x333480=0x0;_0x29ce7b[_0x2847d8(0x1aa)](_0x333480,_0x29ce7b[_0x2847d8(0x1e4)](_0x5f070d[_0x2847d8(0x1a1)],0x1));_0x333480++){if(_0x29ce7b[_0x2847d8(0x1d0)](_0x502b84,null)||_0x29ce7b[_0x2847d8(0x1a6)](_0x502b84,undefined)||_0x29ce7b[_0x2847d8(0x1ad)](typeof _0x502b84,_0x29ce7b['TPviB']))return![];_0x502b84=_0x502b84[_0x5f070d[_0x333480]];}if(_0x502b84===null||_0x502b84===undefined||_0x29ce7b['YSUwk'](typeof _0x502b84,'object'))return![];const _0x18469a=_0x5f070d[_0x5f070d[_0x2847d8(0x1a1)]-0x1];if(_0x18469a in _0x502b84)return delete _0x502b84[_0x18469a],!![];return![];}function parseKeyPath(_0x2b9b02){const _0x4b06a2=_0x589602,_0x1a6211={'sWiml':function(_0x41ef78,_0x110b3f){return _0x41ef78===_0x110b3f;},'dPqiE':_0x4b06a2(0x1e6),'FPZhV':_0x4b06a2(0x19d),'axMrA':_0x4b06a2(0x184)},_0x2c9819=_0x2b9b02[_0x4b06a2(0x18d)]('.');return _0x1a6211[_0x4b06a2(0x1cf)](_0x2c9819[0x0],_0x1a6211['dPqiE'])&&(_0x2c9819[0x0]='headers'),_0x1a6211['sWiml'](_0x2c9819[0x0],_0x1a6211['FPZhV'])&&(_0x2c9819[0x0]=_0x1a6211['axMrA']),_0x2c9819;}export function formatSettings(_0x3b005e,_0x247b54=0x0){const _0x480e0b=_0x589602,_0x24f63a={'JIAfc':function(_0x5f17bc,_0xe86378){return _0x5f17bc===_0xe86378;},'KRjwD':function(_0x3d3932,_0x3aab35){return _0x3d3932===_0x3aab35;},'mCENu':_0x480e0b(0x1b2)},_0x36e74c=[],_0x2a1bbe='\x20\x20'[_0x480e0b(0x18b)](_0x247b54);for(const [_0x2a9dd6,_0x41efc1]of Object[_0x480e0b(0x1ee)](_0x3b005e)){if(_0x24f63a[_0x480e0b(0x1c2)](_0x41efc1,undefined))continue;if(_0x24f63a[_0x480e0b(0x1d7)](typeof _0x41efc1,_0x24f63a['mCENu'])&&_0x41efc1!==null){_0x36e74c[_0x480e0b(0x1b5)](''+_0x2a1bbe+_0x2a9dd6+':');for(const [_0x1b6640,_0xab0b65]of Object['entries'](_0x41efc1)){_0x36e74c['push'](_0x2a1bbe+'\x20\x20'+_0x1b6640+':\x20'+_0xab0b65);}}else _0x36e74c['push'](''+_0x2a1bbe+_0x2a9dd6+':\x20'+_0x41efc1);}return _0x36e74c[_0x480e0b(0x1d2)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x38fa97,_0x143c8d){const _0x3e761e=_0x5d0f,_0x18e76e=_0x38fa97();while(!![]){try{const _0x2fd256=-parseInt(_0x3e761e(0x19d))/0x1+parseInt(_0x3e761e(0x1a5))/0x2+parseInt(_0x3e761e(0x1a3))/0x3+parseInt(_0x3e761e(0x1a1))/0x4+-parseInt(_0x3e761e(0x19e))/0x5+parseInt(_0x3e761e(0x19c))/0x6+-parseInt(_0x3e761e(0x1a0))/0x7*(parseInt(_0x3e761e(0x1a4))/0x8);if(_0x2fd256===_0x143c8d)break;else _0x18e76e['push'](_0x18e76e['shift']());}catch(_0x24e9e8){_0x18e76e['push'](_0x18e76e['shift']());}}}(_0x359e,0xacfe6));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(_0x1d18bf){const _0xcec362=_0x5d0f,_0x25ce19={'VfyEC':'skills','XJbLV':function(_0xbf1135,_0x278325,_0x5611a6){return _0xbf1135(_0x278325,_0x5611a6);}},_0x3c9ebe=join(__dirname,'..','..',_0x25ce19['VfyEC']),_0x4bfb44=join(_0x3c9ebe,_0x1d18bf);try{return _0x25ce19['XJbLV'](readFileSync,_0x4bfb44,_0xcec362(0x19f));}catch{return'';}}function _0x5d0f(_0x1c7b41,_0x5dc21a){_0x1c7b41=_0x1c7b41-0x19c;const _0x359e3c=_0x359e();let _0x5d0fcc=_0x359e3c[_0x1c7b41];return _0x5d0fcc;}function _0x359e(){const _0x580264=['8561RSJPvF','673384GPiguy','ranger/SKILL.md','4216260ScfIfU','2600FrJkXb','2340602RVyhCa','1657212JZysjJ','883205LOEaFj','5155035lqIVwV','utf-8'];_0x359e=function(){return _0x580264;};return _0x359e();}export function getRangerSkillContent(){const _0x25f26e=_0x5d0f;return readSkillContent(_0x25f26e(0x1a2));}
1
+ function _0x52fc(){const _0x55e73b=['dVipi','417MAktXx','204692AsohrN','570JhuvxI','7724udYfAA','12222NPpYLq','546147avJUby','hkhuA','MhLtR','5963730ntMTkW','922345QgGzyU','676600aGBAgI','2DqiDBg'];_0x52fc=function(){return _0x55e73b;};return _0x52fc();}function _0x5a1f(_0x2064a2,_0x2693dc){_0x2064a2=_0x2064a2-0x72;const _0x52fcd8=_0x52fc();let _0x5a1f90=_0x52fcd8[_0x2064a2];return _0x5a1f90;}(function(_0x4b6def,_0x169c0e){const _0x1a17f0=_0x5a1f,_0x24cafa=_0x4b6def();while(!![]){try{const _0x2bdedd=-parseInt(_0x1a17f0(0x77))/0x1*(parseInt(_0x1a17f0(0x74))/0x2)+-parseInt(_0x1a17f0(0x76))/0x3*(-parseInt(_0x1a17f0(0x79))/0x4)+-parseInt(_0x1a17f0(0x72))/0x5+parseInt(_0x1a17f0(0x78))/0x6*(-parseInt(_0x1a17f0(0x7a))/0x7)+-parseInt(_0x1a17f0(0x73))/0x8+-parseInt(_0x1a17f0(0x7b))/0x9+parseInt(_0x1a17f0(0x7e))/0xa;if(_0x2bdedd===_0x169c0e)break;else _0x24cafa['push'](_0x24cafa['shift']());}catch(_0x2e1563){_0x24cafa['push'](_0x24cafa['shift']());}}}(_0x52fc,0x2828d));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(_0x441c63){const _0x1cabfa=_0x5a1f,_0x23963c={'NQrog':function(_0xe2b04a,_0x4c5d49,_0x2fef00,_0x18ccc4,_0x2f44fc){return _0xe2b04a(_0x4c5d49,_0x2fef00,_0x18ccc4,_0x2f44fc);},'hkhuA':'skills','MhLtR':function(_0x5c1011,_0x497064,_0x402985){return _0x5c1011(_0x497064,_0x402985);},'CsYQc':function(_0x28c97d,_0x51612a,_0x58103a){return _0x28c97d(_0x51612a,_0x58103a);},'PAMzO':'utf-8'},_0x5f0bf0=_0x23963c['NQrog'](join,__dirname,'..','..',_0x23963c[_0x1cabfa(0x7c)]),_0x86fc95=_0x23963c[_0x1cabfa(0x7d)](join,_0x5f0bf0,_0x441c63);try{return _0x23963c['CsYQc'](readFileSync,_0x86fc95,_0x23963c['PAMzO']);}catch{return'';}}export function getRangerSkillContent(){const _0x1c836c=_0x5a1f,_0x430ef7={'dVipi':'ranger/SKILL.md'};return readSkillContent(_0x430ef7[_0x1c836c(0x75)]);}
@@ -1 +1 @@
1
- const _0x1e69e5=_0x3135;(function(_0xa259a9,_0x35be0a){const _0x353fc4=_0x3135,_0x25e71d=_0xa259a9();while(!![]){try{const _0x418c0c=parseInt(_0x353fc4(0x196))/0x1*(parseInt(_0x353fc4(0x197))/0x2)+parseInt(_0x353fc4(0x18f))/0x3+parseInt(_0x353fc4(0x19b))/0x4+parseInt(_0x353fc4(0x18b))/0x5*(-parseInt(_0x353fc4(0x18e))/0x6)+parseInt(_0x353fc4(0x198))/0x7+parseInt(_0x353fc4(0x19d))/0x8*(-parseInt(_0x353fc4(0x187))/0x9)+-parseInt(_0x353fc4(0x182))/0xa;if(_0x418c0c===_0x35be0a)break;else _0x25e71d['push'](_0x25e71d['shift']());}catch(_0xb526b0){_0x25e71d['push'](_0x25e71d['shift']());}}}(_0x559d,0x1b346));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';function _0x3135(_0x4389ed,_0x3907a6){_0x4389ed=_0x4389ed-0x178;const _0x559d93=_0x559d();let _0x31359b=_0x559d93[_0x4389ed];return _0x31359b;}import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x1e69e5(0x17c)];export const DEPRECATED_SKILLS=['e2e-test-recommender',_0x1e69e5(0x185),'feature-tracker'];export async function installSkill(_0x3c9b93,_0x5c7bcd={}){const _0x42ea2d=_0x1e69e5,_0x247479={'RqAsn':_0x42ea2d(0x17b),'ElXUC':function(_0x436ec8){return _0x436ec8();},'gLdVr':function(_0x325a41,_0x18a493,_0x48a893){return _0x325a41(_0x18a493,_0x48a893);},'UISoM':function(_0x41e0a9,_0x758036,_0x5b93cc){return _0x41e0a9(_0x758036,_0x5b93cc);},'LrXvf':function(_0xb72b5e,_0x3606b1){return _0xb72b5e(_0x3606b1);},'cHSQN':function(_0x183aa0,_0x3c6e3c){return _0x183aa0(_0x3c6e3c);},'ZyZZp':function(_0x420c86,_0x4d13f6,_0x158c10){return _0x420c86(_0x4d13f6,_0x158c10);},'lLlww':function(_0x36e0e9,_0x1785e1){return _0x36e0e9(_0x1785e1);},'NGOgQ':function(_0x5823de,_0x3b82a5,_0x42cd3d){return _0x5823de(_0x3b82a5,_0x42cd3d);},'vXhUH':_0x42ea2d(0x194),'DZJrt':function(_0x4f46ea,_0x2a1f77,_0x48cac2){return _0x4f46ea(_0x2a1f77,_0x48cac2);},'qADbB':function(_0x1e6ac2,_0x22ad60,_0x4086f4,_0x36b9f4){return _0x1e6ac2(_0x22ad60,_0x4086f4,_0x36b9f4);}},{level:level=_0x42ea2d(0x17e),cliVersion:_0x2dc6fa,platform:platform=_0x247479['RqAsn']}=_0x5c7bcd,_0xa746f7=_0x247479['ElXUC'](getSourceSkillsDir),_0x184c91=_0x247479['gLdVr'](join,_0xa746f7,_0x3c9b93),_0x23df11=_0x247479['UISoM'](join,_0xa746f7,_0x3c9b93+_0x42ea2d(0x190)),_0x3ad1db=_0x247479['LrXvf'](existsSync,_0x184c91)&&_0x247479[_0x42ea2d(0x17d)](statSync,_0x184c91)[_0x42ea2d(0x189)]()&&existsSync(_0x247479[_0x42ea2d(0x180)](join,_0x184c91,'SKILL.md')),_0x12e9c4=existsSync(_0x23df11);if(!_0x3ad1db&&!_0x12e9c4)return console[_0x42ea2d(0x186)](_0x42ea2d(0x192)+_0x3c9b93),![];const _0x3731f8=platform===_0x42ea2d(0x195)?getOpencodeSkillsDir(level):getSkillsDir(level),_0x212750=join(_0x3731f8,_0x3c9b93);await _0x247479['gLdVr'](mkdir,_0x212750,{'recursive':!![]});let _0x37a97b,_0x14c9ec=[];if(_0x3ad1db){const _0x35bbc1=await _0x247479[_0x42ea2d(0x178)](readdir,_0x184c91),_0x5a5fc8=_0x35bbc1[_0x42ea2d(0x18d)](_0x23f8ac=>_0x23f8ac['endsWith'](_0x42ea2d(0x190)));for(const _0x5dbe08 of _0x5a5fc8){const _0x15c730=_0x247479[_0x42ea2d(0x17a)](join,_0x184c91,_0x5dbe08),_0x25375f=_0x247479[_0x42ea2d(0x19c)](join,_0x212750,_0x5dbe08);await copyFile(_0x15c730,_0x25375f),_0x14c9ec['push'](_0x5dbe08);}_0x37a97b=await readFile(_0x247479[_0x42ea2d(0x179)](join,_0x184c91,'SKILL.md'),'utf-8');}else{_0x37a97b=await _0x247479[_0x42ea2d(0x17a)](readFile,_0x23df11,_0x247479['vXhUH']);const _0x4dd165=_0x247479['DZJrt'](join,_0x212750,_0x42ea2d(0x193));await writeFile(_0x4dd165,_0x37a97b,'utf-8'),_0x14c9ec['push']('SKILL.md');}const {name:_0xfe3fca}=_0x247479['cHSQN'](parseFrontmatter,_0x37a97b);return console[_0x42ea2d(0x19a)]('\x20\x20Installed\x20skill:\x20'+_0xfe3fca),console['log']('\x20\x20Location:\x20'+_0x212750),_0x14c9ec['length']>0x1&&console['log'](_0x42ea2d(0x199)+_0x14c9ec['join'](',\x20')),_0x247479[_0x42ea2d(0x183)](logLocalAgentInstallation,_0x3c9b93,{'skillDisplayName':_0xfe3fca,'installLevel':level},_0x2dc6fa)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x1dc02c=_0x1e69e5,_0x18fa64={'PMpZx':function(_0x36ae69,_0x10e609,_0x2d212c,_0x22bd02,_0x3de25d,_0x256585){return _0x36ae69(_0x10e609,_0x2d212c,_0x22bd02,_0x3de25d,_0x256585);},'dOmct':_0x1dc02c(0x184),'bsQEv':function(_0x3b38c5,_0x1946bf){return _0x3b38c5(_0x1946bf);}},_0x408bbe=[join(__dirname,'..','..','skills'),_0x18fa64[_0x1dc02c(0x188)](join,__dirname,'..','..','..',_0x18fa64[_0x1dc02c(0x18a)])];for(const _0x548a6d of _0x408bbe){if(_0x18fa64['bsQEv'](existsSync,_0x548a6d))return _0x548a6d;}return _0x408bbe[0x0];}function parseFrontmatter(_0xb54784){const _0x52e8be=_0x1e69e5,_0x3600ae=_0xb54784['match'](/^---\n([\s\S]+?)\n---/);if(!_0x3600ae)throw new Error('Invalid\x20skill\x20frontmatter');const _0x3f93fd=_0x3600ae[0x1],_0x4d9da3=_0x3f93fd[_0x52e8be(0x181)](/name:\s*(.+)/),_0x3d4f02=_0x3f93fd[_0x52e8be(0x181)](/description:\s*"?(.+?)"?\n/);return{'name':_0x4d9da3?.[0x1][_0x52e8be(0x18c)]()||'','description':_0x3d4f02?.[0x1]['trim']()||''};}function _0x559d(){const _0x314a28=['ZyZZp','match','1653810VXeTib','qADbB','skills','bug-bash','warn','129663lvOqLo','PMpZx','isDirectory','dOmct','283240wSIrET','trim','filter','6fbTFWQ','181860hhDshB','.md','eBPZG','\x20\x20Skill\x20not\x20found:\x20','SKILL.md','utf-8','opencode','79847MtrQcL','2UHCUob','428785nYkeaL','\x20\x20Files:\x20','log','584576SYGRYS','NGOgQ','8YIKYDs','lLlww','UISoM','gLdVr','claude','ranger','cHSQN','project','GfdZT'];_0x559d=function(){return _0x314a28;};return _0x559d();}export async function removeSkill(_0x59dcc6,_0x23e588){const _0xecd729=_0x1e69e5,_0x55e1c2={'GfdZT':function(_0x1d4af6,_0x1108d9){return _0x1d4af6(_0x1108d9);},'UkDZH':function(_0x3abdba,_0x4538f3,_0x30582f){return _0x3abdba(_0x4538f3,_0x30582f);},'eBPZG':function(_0x3a8fd0,_0x31519e){return _0x3a8fd0(_0x31519e);}},_0x2fd09a=_0x55e1c2[_0xecd729(0x17f)](getSkillsDir,_0x23e588),_0xbe36b1=_0x55e1c2['UkDZH'](join,_0x2fd09a,_0x59dcc6);if(!_0x55e1c2[_0xecd729(0x191)](existsSync,_0xbe36b1))return![];try{return await rm(_0xbe36b1,{'recursive':!![]}),console['log']('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x59dcc6),!![];}catch{return console[_0xecd729(0x186)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x59dcc6),![];}}
1
+ const _0x332bf6=_0x3a39;(function(_0xbb6714,_0x12b0e9){const _0x3ad250=_0x3a39,_0xeebf16=_0xbb6714();while(!![]){try{const _0x3cefc7=-parseInt(_0x3ad250(0x1fd))/0x1+parseInt(_0x3ad250(0x201))/0x2+parseInt(_0x3ad250(0x1f0))/0x3*(-parseInt(_0x3ad250(0x1f3))/0x4)+-parseInt(_0x3ad250(0x20b))/0x5+-parseInt(_0x3ad250(0x1f4))/0x6*(-parseInt(_0x3ad250(0x20e))/0x7)+-parseInt(_0x3ad250(0x208))/0x8+parseInt(_0x3ad250(0x1fc))/0x9*(parseInt(_0x3ad250(0x205))/0xa);if(_0x3cefc7===_0x12b0e9)break;else _0xeebf16['push'](_0xeebf16['shift']());}catch(_0x551757){_0xeebf16['push'](_0xeebf16['shift']());}}}(_0x145e,0x4a319));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';function _0x145e(){const _0x2a8891=['filter','SKILL.md','2355cEkIJR','KzMQp','Invalid\x20skill\x20frontmatter','2448ejmKnM','2683398UrneDl','warn','exDeV','match','\x20\x20Removed\x20deprecated\x20skill:\x20','LieIN','isDirectory','\x20\x20Location:\x20','1692AWVIIS','269564oDvZqe','project','ekjmv','cmwCS','348782eHQMmt','push','\x20\x20Skill\x20not\x20found:\x20','length','52090imhLlu','TqIQN','Lhcol','4076760heyuOW','TRWNn','utf-8','187200CDfyUL','cuXEv','log','7ZKCrwY','feature-tracker','gcdUZ','IEPEA','NsywN','.md'];_0x145e=function(){return _0x2a8891;};return _0x145e();}function _0x3a39(_0x2b9be0,_0x596d19){_0x2b9be0=_0x2b9be0-0x1f0;const _0x145e47=_0x145e();let _0x3a39e7=_0x145e47[_0x2b9be0];return _0x3a39e7;}import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=['ranger'];export const DEPRECATED_SKILLS=['e2e-test-recommender','bug-bash',_0x332bf6(0x20f)];export async function installSkill(_0xaed173,_0x679c3b={}){const _0x23cab7=_0x332bf6,_0x9c8437={'ymsGR':'claude','GiIWU':function(_0x21e2f3){return _0x21e2f3();},'NsywN':function(_0x11de55,_0x48873d,_0x2beacd){return _0x11de55(_0x48873d,_0x2beacd);},'NurUU':function(_0x4fb3c4,_0x3c145f){return _0x4fb3c4(_0x3c145f);},'KzMQp':function(_0xc2bb92,_0x1b1e00){return _0xc2bb92(_0x1b1e00);},'ekjmv':function(_0x329d1b,_0x20c77e){return _0x329d1b(_0x20c77e);},'Lhcol':function(_0x478184,_0x6a0b6b){return _0x478184&&_0x6a0b6b;},'TqIQN':function(_0x3c3c24,_0x5de892){return _0x3c3c24(_0x5de892);},'iMuAs':function(_0x565d86,_0x737d86,_0x4335af){return _0x565d86(_0x737d86,_0x4335af);},'jHhSZ':function(_0x52d0c6,_0x497b4f,_0x31b122){return _0x52d0c6(_0x497b4f,_0x31b122);},'cuXEv':function(_0x3cdbd9,_0x12e681,_0x5a3343){return _0x3cdbd9(_0x12e681,_0x5a3343);},'QEiZx':_0x23cab7(0x20a),'IEPEA':function(_0x4e18a0,_0xa86341,_0x3d4ed2){return _0x4e18a0(_0xa86341,_0x3d4ed2);},'cmwCS':function(_0x4f5145,_0x1106a8,_0x5177df,_0x2536eb){return _0x4f5145(_0x1106a8,_0x5177df,_0x2536eb);},'AfIir':'SKILL.md','WhZlS':function(_0x1f9fcd,_0x31faa6){return _0x1f9fcd>_0x31faa6;},'TRWNn':function(_0x40f3b0,_0x23e65a,_0x2a36db,_0x1b01dc){return _0x40f3b0(_0x23e65a,_0x2a36db,_0x1b01dc);}},{level:level=_0x23cab7(0x1fe),cliVersion:_0x4a226f,platform:platform=_0x9c8437['ymsGR']}=_0x679c3b,_0xf7e37a=_0x9c8437['GiIWU'](getSourceSkillsDir),_0x481744=_0x9c8437['NsywN'](join,_0xf7e37a,_0xaed173),_0x1f5d91=_0x9c8437[_0x23cab7(0x212)](join,_0xf7e37a,_0xaed173+_0x23cab7(0x213)),_0xf75488=existsSync(_0x481744)&&_0x9c8437['NurUU'](statSync,_0x481744)[_0x23cab7(0x1fa)]()&&_0x9c8437[_0x23cab7(0x1f1)](existsSync,_0x9c8437['NsywN'](join,_0x481744,_0x23cab7(0x215))),_0x30c96d=_0x9c8437[_0x23cab7(0x1ff)](existsSync,_0x1f5d91);if(_0x9c8437[_0x23cab7(0x207)](!_0xf75488,!_0x30c96d))return console[_0x23cab7(0x1f5)](_0x23cab7(0x203)+_0xaed173),![];const _0x4c50fe=platform==='opencode'?_0x9c8437[_0x23cab7(0x206)](getOpencodeSkillsDir,level):_0x9c8437['TqIQN'](getSkillsDir,level),_0x4de7ba=_0x9c8437['iMuAs'](join,_0x4c50fe,_0xaed173);await mkdir(_0x4de7ba,{'recursive':!![]});let _0x16ed68,_0x26b03f=[];if(_0xf75488){const _0x206774=await readdir(_0x481744),_0x4597dd=_0x206774[_0x23cab7(0x214)](_0x1e57fb=>_0x1e57fb['endsWith']('.md'));for(const _0x1afff2 of _0x4597dd){const _0x548856=join(_0x481744,_0x1afff2),_0x5d1af6=_0x9c8437['jHhSZ'](join,_0x4de7ba,_0x1afff2);await _0x9c8437[_0x23cab7(0x20c)](copyFile,_0x548856,_0x5d1af6),_0x26b03f[_0x23cab7(0x202)](_0x1afff2);}_0x16ed68=await readFile(join(_0x481744,'SKILL.md'),'utf-8');}else{_0x16ed68=await _0x9c8437['jHhSZ'](readFile,_0x1f5d91,_0x9c8437['QEiZx']);const _0x7ceb57=_0x9c8437[_0x23cab7(0x211)](join,_0x4de7ba,_0x23cab7(0x215));await _0x9c8437[_0x23cab7(0x200)](writeFile,_0x7ceb57,_0x16ed68,_0x9c8437['QEiZx']),_0x26b03f[_0x23cab7(0x202)](_0x9c8437['AfIir']);}const {name:_0x1408f4}=parseFrontmatter(_0x16ed68);return console[_0x23cab7(0x20d)]('\x20\x20Installed\x20skill:\x20'+_0x1408f4),console['log'](_0x23cab7(0x1fb)+_0x4de7ba),_0x9c8437['WhZlS'](_0x26b03f[_0x23cab7(0x204)],0x1)&&console['log']('\x20\x20Files:\x20'+_0x26b03f['join'](',\x20')),_0x9c8437[_0x23cab7(0x209)](logLocalAgentInstallation,_0xaed173,{'skillDisplayName':_0x1408f4,'installLevel':level},_0x4a226f)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x4a7a4f=_0x332bf6,_0x50d461={'LieIN':'skills','olvuL':function(_0x45ce8c,_0x53f3c5){return _0x45ce8c(_0x53f3c5);}},_0x1c7d1b=[join(__dirname,'..','..',_0x50d461['LieIN']),join(__dirname,'..','..','..',_0x50d461[_0x4a7a4f(0x1f9)])];for(const _0x4b482e of _0x1c7d1b){if(_0x50d461['olvuL'](existsSync,_0x4b482e))return _0x4b482e;}return _0x1c7d1b[0x0];}function parseFrontmatter(_0x2f6e03){const _0x296e84=_0x332bf6,_0x237a15=_0x2f6e03[_0x296e84(0x1f7)](/^---\n([\s\S]+?)\n---/);if(!_0x237a15)throw new Error(_0x296e84(0x1f2));const _0x1a825b=_0x237a15[0x1],_0x374861=_0x1a825b['match'](/name:\s*(.+)/),_0xc71117=_0x1a825b['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0x374861?.[0x1]['trim']()||'','description':_0xc71117?.[0x1]['trim']()||''};}export async function removeSkill(_0x1392ed,_0xe70023){const _0x475778=_0x332bf6,_0x33eae4={'gcdUZ':function(_0x204ef8,_0xc1fdc6){return _0x204ef8(_0xc1fdc6);},'MXyCT':function(_0x2bc5fc,_0x3354c9,_0x55f736){return _0x2bc5fc(_0x3354c9,_0x55f736);},'exDeV':function(_0x51e61d,_0x41d256){return _0x51e61d(_0x41d256);}},_0x4506b6=_0x33eae4[_0x475778(0x210)](getSkillsDir,_0xe70023),_0x59a579=_0x33eae4['MXyCT'](join,_0x4506b6,_0x1392ed);if(!_0x33eae4[_0x475778(0x1f6)](existsSync,_0x59a579))return![];try{return await rm(_0x59a579,{'recursive':!![]}),console[_0x475778(0x20d)](_0x475778(0x1f8)+_0x1392ed),!![];}catch{return console[_0x475778(0x1f5)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x1392ed),![];}}
@@ -1 +1 @@
1
- const _0xb14d0f=_0x495a;(function(_0x56c91a,_0x471ef4){const _0x428fdb=_0x495a,_0x5dad38=_0x56c91a();while(!![]){try{const _0x58920b=-parseInt(_0x428fdb(0x12c))/0x1+parseInt(_0x428fdb(0x145))/0x2+-parseInt(_0x428fdb(0x132))/0x3*(parseInt(_0x428fdb(0x133))/0x4)+-parseInt(_0x428fdb(0x14f))/0x5*(-parseInt(_0x428fdb(0x119))/0x6)+-parseInt(_0x428fdb(0x15a))/0x7+parseInt(_0x428fdb(0x13a))/0x8*(parseInt(_0x428fdb(0x139))/0x9)+-parseInt(_0x428fdb(0x150))/0xa*(-parseInt(_0x428fdb(0x12b))/0xb);if(_0x58920b===_0x471ef4)break;else _0x5dad38['push'](_0x5dad38['shift']());}catch(_0x90b660){_0x5dad38['push'](_0x5dad38['shift']());}}}(_0x5579,0xb2da1));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(_0x5b1974,_0x4da51d){const _0x40e101=_0x495a,_0x3ea5fd={'GXnnR':function(_0x5eed19,_0x487ef5){return _0x5eed19>=_0x487ef5;},'exwiP':function(_0xa5f990,_0x303e18){return _0xa5f990<=_0x303e18;},'SGTaz':function(_0x9ee461,_0x3f8542){return _0x9ee461&_0x3f8542;},'FYVhL':function(_0xf45525,_0xfe051c){return _0xf45525+_0xfe051c;},'aHmkN':function(_0x18f72d,_0x435e3a){return _0x18f72d-_0x435e3a;},'dydjj':function(_0x3e6e4c,_0x30a38c){return _0x3e6e4c<_0x30a38c;},'NPDHd':function(_0x20cb34,_0x36ef21){return _0x20cb34*_0x36ef21;}};if(_0x3ea5fd[_0x40e101(0x147)](_0x4da51d,_0x5b1974[_0x40e101(0x13d)]))return[0x0,0x0];const _0x17edf8=_0x5b1974[_0x4da51d];let _0x4f50fb=0x1,_0x1db64c=0x80;while(_0x3ea5fd['exwiP'](_0x4f50fb,0x8)&&!_0x3ea5fd['SGTaz'](_0x17edf8,_0x1db64c)){_0x4f50fb++,_0x1db64c>>=0x1;}if(_0x3ea5fd['FYVhL'](_0x4da51d,_0x4f50fb)>_0x5b1974[_0x40e101(0x13d)])return[0x0,0x0];let _0x2c36b0=_0x3ea5fd[_0x40e101(0x15c)](_0x17edf8,_0x3ea5fd['aHmkN'](_0x1db64c,0x1));for(let _0xe165d=0x1;_0x3ea5fd['dydjj'](_0xe165d,_0x4f50fb);_0xe165d++){_0x2c36b0=_0x3ea5fd[_0x40e101(0x126)](_0x2c36b0,0x100)+_0x5b1974[_0x4da51d+_0xe165d];}return[_0x2c36b0,_0x4f50fb];}function readId(_0x15a55b,_0x36cbd8){const _0x4096fa=_0x495a,_0x1b382c={'pLJib':function(_0x459750,_0x130a74){return _0x459750>=_0x130a74;},'aNPSl':function(_0x53040d,_0x5cd5ad){return _0x53040d>=_0x5cd5ad;},'ZitZq':function(_0x2a583f,_0x227326){return _0x2a583f>_0x227326;}};if(_0x1b382c[_0x4096fa(0x131)](_0x36cbd8,_0x15a55b[_0x4096fa(0x13d)]))return[0x0,0x0];const _0x200b38=_0x15a55b[_0x36cbd8];let _0x8b5a90;if(_0x200b38>=0x80)_0x8b5a90=0x1;else{if(_0x1b382c[_0x4096fa(0x13b)](_0x200b38,0x40))_0x8b5a90=0x2;else{if(_0x1b382c[_0x4096fa(0x131)](_0x200b38,0x20))_0x8b5a90=0x3;else{if(_0x200b38>=0x10)_0x8b5a90=0x4;else return[_0x200b38,0x1];}}}if(_0x1b382c['ZitZq'](_0x36cbd8+_0x8b5a90,_0x15a55b[_0x4096fa(0x13d)]))return[0x0,0x0];let _0x162283=0x0;for(let _0x54c554=0x0;_0x54c554<_0x8b5a90;_0x54c554++){_0x162283=_0x162283*0x100+_0x15a55b[_0x36cbd8+_0x54c554];}return[_0x162283,_0x8b5a90];}function readUint(_0x58a9c8,_0x2ab951,_0x229e8a){const _0x20891d=_0x495a,_0x147ab6={'yFPzi':function(_0x1e149b,_0x5a1e62){return _0x1e149b<_0x5a1e62;},'wAQpK':function(_0x17ce3c,_0x1fa1be){return _0x17ce3c*_0x1fa1be;},'niObT':function(_0x34357b,_0x865a04){return _0x34357b+_0x865a04;}};let _0x58a755=0x0;for(let _0x321656=0x0;_0x147ab6['yFPzi'](_0x321656,_0x229e8a);_0x321656++){_0x58a755=_0x147ab6['wAQpK'](_0x58a755,0x100)+_0x58a9c8[_0x147ab6[_0x20891d(0x115)](_0x2ab951,_0x321656)];}return _0x58a755;}function isUnknownSize(_0x1ea850,_0x1d7167){const _0x4e0b35={'Rsktz':function(_0x305bd9,_0x19b5c9){return _0x305bd9-_0x19b5c9;},'AwSKj':function(_0x324b0a,_0x59005a){return _0x324b0a*_0x59005a;}};return _0x1ea850===_0x4e0b35['Rsktz'](Math['pow'](0x2,_0x4e0b35['AwSKj'](0x7,_0x1d7167)),0x1);}function writeVint(_0x5c2404,_0x461930){const _0x1a577a=_0x495a,_0x918118={'SNZEs':function(_0x5ac124,_0x441145){return _0x5ac124||_0x441145;},'czKri':function(_0x54e989,_0xaa52e3){return _0x54e989<_0xaa52e3;},'Quhhq':function(_0x1d2bf7,_0x2b4ff9){return _0x1d2bf7*_0x2b4ff9;},'vXKRg':function(_0x1b51d4,_0x206a77){return _0x1b51d4>=_0x206a77;},'OpqnK':function(_0x2ecd7d,_0x239eb2){return _0x2ecd7d/_0x239eb2;},'ztolT':function(_0x359cd8,_0x512949){return _0x359cd8-_0x512949;}};let _0x175a5f=_0x918118[_0x1a577a(0x135)](_0x461930,0x1);while(_0x918118[_0x1a577a(0x123)](Math['pow'](0x2,_0x918118[_0x1a577a(0x134)](0x7,_0x175a5f))-0x2,_0x5c2404))_0x175a5f++;const _0x5b041c=Buffer[_0x1a577a(0x146)](_0x175a5f);for(let _0x248db2=_0x175a5f-0x1;_0x918118['vXKRg'](_0x248db2,0x0);_0x248db2--){_0x5b041c[_0x248db2]=_0x5c2404&0xff,_0x5c2404=Math['floor'](_0x918118[_0x1a577a(0x125)](_0x5c2404,0x100));}return _0x5b041c[0x0]|=0x1<<_0x918118['ztolT'](0x8,_0x175a5f),_0x5b041c;}function writeUint(_0xa668b3,_0x2a4032){const _0x1a0fcb=_0x495a,_0x8f6df7={'oLvZi':function(_0x191127,_0x21f715){return _0x191127-_0x21f715;}},_0x437c17=Buffer[_0x1a0fcb(0x146)](_0x2a4032);for(let _0x5a7327=_0x8f6df7['oLvZi'](_0x2a4032,0x1);_0x5a7327>=0x0;_0x5a7327--){_0x437c17[_0x5a7327]=_0xa668b3&0xff,_0xa668b3=Math['floor'](_0xa668b3/0x100);}return _0x437c17;}function writeUnknownSizeVint(_0x101f4d){const _0x5f05a7=_0x495a,_0xacdd01={'QsggZ':function(_0x3383cf,_0x3813ab){return _0x3383cf>>_0x3813ab;},'nIoKL':function(_0x415e86,_0x4daeb7){return _0x415e86-_0x4daeb7;}},_0x1bd3ae=Buffer['alloc'](_0x101f4d,0xff);return _0x1bd3ae[0x0]=_0xacdd01[_0x5f05a7(0x114)](0xff,_0xacdd01[_0x5f05a7(0x144)](_0x101f4d,0x1)),_0x1bd3ae;}function uintSize(_0x589ab1){const _0x28e51b={'nsAei':function(_0x20e212,_0x53388b){return _0x20e212>_0x53388b;}};if(_0x589ab1===0x0)return 0x1;let _0x31a8fa=0x0,_0x30284b=_0x589ab1;while(_0x28e51b['nsAei'](_0x30284b,0x0)){_0x31a8fa++,_0x30284b=Math['floor'](_0x30284b/0x100);}return _0x31a8fa;}function findTimestampScale(_0x3b9ae6,_0x5782ab){const _0x2c9a8c=_0x495a,_0x4d13c9={'FdXIG':function(_0x768899,_0x2a5cc1){return _0x768899+_0x2a5cc1;},'IElmz':function(_0x1a5a8a,_0x1e5476,_0x9a7174){return _0x1a5a8a(_0x1e5476,_0x9a7174);},'MmApG':function(_0x28da6c,_0x427a6c){return _0x28da6c+_0x427a6c;},'ohkZD':function(_0x1fb137,_0x25a5ee){return _0x1fb137===_0x25a5ee;},'bmKUF':function(_0x505cea,_0x4ed01c,_0x1b6bde){return _0x505cea(_0x4ed01c,_0x1b6bde);},'uiWUa':function(_0x37c010,_0x5223d1){return _0x37c010+_0x5223d1;},'pEsfg':function(_0x55a3d9,_0x2b2f7f){return _0x55a3d9+_0x2b2f7f;}};let _0x3bc96a=_0x5782ab;const _0x319e75=Math[_0x2c9a8c(0x148)](_0x3b9ae6['length'],_0x4d13c9['FdXIG'](_0x5782ab,0x2710));while(_0x3bc96a<_0x319e75){const [_0x3561e3,_0x484704]=_0x4d13c9['IElmz'](readId,_0x3b9ae6,_0x3bc96a),[_0x312343,_0x569860]=readVint(_0x3b9ae6,_0x4d13c9['MmApG'](_0x3bc96a,_0x484704));if(_0x4d13c9['ohkZD'](_0x3561e3,ID_INFO)){let _0x561992=_0x4d13c9[_0x2c9a8c(0x136)](_0x3bc96a,_0x484704)+_0x569860;const _0x2f6672=_0x561992+_0x312343;while(_0x561992<_0x2f6672){const [_0xa529f6,_0x2b6ba2]=_0x4d13c9[_0x2c9a8c(0x141)](readId,_0x3b9ae6,_0x561992),[_0x1afe52,_0x2c8d41]=readVint(_0x3b9ae6,_0x561992+_0x2b6ba2);if(_0x4d13c9[_0x2c9a8c(0x12e)](_0xa529f6,ID_TIMESTAMP_SCALE))return readUint(_0x3b9ae6,_0x4d13c9['MmApG'](_0x4d13c9['uiWUa'](_0x561992,_0x2b6ba2),_0x2c8d41),_0x1afe52);_0x561992+=_0x4d13c9['uiWUa'](_0x4d13c9['pEsfg'](_0x2b6ba2,_0x2c8d41),_0x1afe52);}break;}if(_0x3561e3===ID_CLUSTER)break;if(isUnknownSize(_0x312343,_0x569860))break;_0x3bc96a+=_0x4d13c9['uiWUa'](_0x4d13c9['MmApG'](_0x484704,_0x569860),_0x312343);}return 0xf4240;}function findFirstClusterOffset(_0x1b07a9,_0x2c162e){const _0x4ab9db=_0x495a,_0x394a67={'zzcbt':function(_0x489148,_0x338fa7){return _0x489148<_0x338fa7;},'soVlS':function(_0x361ea3,_0x41f7db,_0x1db730){return _0x361ea3(_0x41f7db,_0x1db730);},'otNLK':function(_0x4ade07,_0x1f989a){return _0x4ade07===_0x1f989a;},'cyuwy':function(_0x3de8d1,_0x25c7d4){return _0x3de8d1+_0x25c7d4;},'QcJUx':function(_0x15c98a,_0x5059a2){return _0x15c98a+_0x5059a2;}};let _0x1d378a=_0x2c162e;while(_0x394a67['zzcbt'](_0x1d378a,_0x1b07a9['length'])){const [_0x361ddd,_0x121ff9]=_0x394a67[_0x4ab9db(0x11a)](readId,_0x1b07a9,_0x1d378a);if(_0x394a67['otNLK'](_0x361ddd,ID_CLUSTER))return _0x1d378a;const [_0x3f3e95,_0xa33b43]=readVint(_0x1b07a9,_0x394a67['cyuwy'](_0x1d378a,_0x121ff9));if(isUnknownSize(_0x3f3e95,_0xa33b43))return _0x1d378a;_0x1d378a+=_0x394a67[_0x4ab9db(0x127)](_0x121ff9,_0xa33b43)+_0x3f3e95;}return _0x1b07a9['length'];}function findClusterEnd(_0x58a5f2,_0x1ccffa,_0x4f19f0,_0x493b38){const _0x312f9f=_0x495a,_0x4445c2={'ledUi':function(_0x2e856d,_0x12f69b,_0x53b335){return _0x2e856d(_0x12f69b,_0x53b335);},'OwrIl':function(_0x44c84c,_0x5209cf){return _0x44c84c<_0x5209cf;},'CbyLB':function(_0x1fc052,_0x5a06a3){return _0x1fc052-_0x5a06a3;},'GjPyJ':function(_0x1d985e,_0x463da5,_0x3c0453){return _0x1d985e(_0x463da5,_0x3c0453);},'aGRZI':function(_0x3878fb,_0x18aba7){return _0x3878fb+_0x18aba7;}};if(!_0x4445c2['ledUi'](isUnknownSize,_0x4f19f0,_0x493b38))return _0x1ccffa+_0x4f19f0;const _0x5b6815=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x557e21=_0x1ccffa;while(_0x4445c2[_0x312f9f(0x117)](_0x557e21,_0x4445c2[_0x312f9f(0x14c)](_0x58a5f2[_0x312f9f(0x13d)],0x4))){const [_0x40e6c5,_0x28bdde]=_0x4445c2['GjPyJ'](readId,_0x58a5f2,_0x557e21);if(_0x5b6815[_0x312f9f(0x140)](_0x40e6c5))return _0x557e21;const [_0x566581,_0x18ee29]=readVint(_0x58a5f2,_0x4445c2[_0x312f9f(0x156)](_0x557e21,_0x28bdde));if(_0x4445c2['GjPyJ'](isUnknownSize,_0x566581,_0x18ee29))return _0x58a5f2[_0x312f9f(0x13d)];_0x557e21+=_0x4445c2['aGRZI'](_0x28bdde,_0x18ee29)+_0x566581;}return _0x58a5f2[_0x312f9f(0x13d)];}function extractClusters(_0x3a856f,_0x19f811){const _0x1b0637=_0x495a,_0x491c1c={'aeQdN':function(_0x3d9864,_0xb74ccc){return _0x3d9864===_0xb74ccc;},'aslpp':function(_0x1d29a1,_0x2b2127,_0x4f2e74){return _0x1d29a1(_0x2b2127,_0x4f2e74);},'zurVC':function(_0x2a8444,_0x24e6d5){return _0x2a8444!==_0x24e6d5;},'DbHsR':function(_0x3586f2,_0x2a1b64,_0x1d6715){return _0x3586f2(_0x2a1b64,_0x1d6715);},'uaAfV':function(_0x51d802,_0x560fd9){return _0x51d802+_0x560fd9;},'revUj':function(_0x35af6f,_0x450d12){return _0x35af6f+_0x450d12;},'BXfDX':function(_0x22917c,_0x4a8edb,_0x1f8591,_0x3b7a6a,_0x1764e6){return _0x22917c(_0x4a8edb,_0x1f8591,_0x3b7a6a,_0x1764e6);},'qjyyt':function(_0x4b6cfa,_0x6fe6c9){return _0x4b6cfa<_0x6fe6c9;},'sBeLG':function(_0x3c6e32,_0x63bb5b,_0x9b8176){return _0x3c6e32(_0x63bb5b,_0x9b8176);},'oMbxG':function(_0x5d1b5f,_0x4964d0){return _0x5d1b5f+_0x4964d0;},'BHeUA':function(_0x3f6cd4,_0xc2e676){return _0x3f6cd4+_0xc2e676;},'qkAfw':function(_0x2f87f8,_0x358db7){return _0x2f87f8+_0x358db7;},'XLxit':function(_0x461b54,_0x55bc4f){return _0x461b54>=_0x55bc4f;},'igFen':function(_0x453ec5,_0x422edd,_0x2fe681){return _0x453ec5(_0x422edd,_0x2fe681);},'FELLr':function(_0x5e1af7,_0x19c224,_0x1e78c3){return _0x5e1af7(_0x19c224,_0x1e78c3);},'cAdZa':function(_0x3f5192,_0x4cb08c){return _0x3f5192+_0x4cb08c;}},_0x1eed9f=[],_0x3d7cb9=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x4e9693=0x0;while(_0x4e9693<_0x3a856f[_0x1b0637(0x13d)]){const _0x1a2635=_0x3a856f['indexOf'](_0x3d7cb9,_0x4e9693);if(_0x491c1c[_0x1b0637(0x15b)](_0x1a2635,-0x1))break;const [_0x250461,_0x43c8b0]=_0x491c1c['aslpp'](readId,_0x3a856f,_0x1a2635);if(_0x491c1c[_0x1b0637(0x11d)](_0x250461,ID_CLUSTER)){_0x4e9693=_0x1a2635+0x1;continue;}const [_0x51a30e,_0x2597e4]=_0x491c1c[_0x1b0637(0x118)](readVint,_0x3a856f,_0x491c1c[_0x1b0637(0x130)](_0x1a2635,_0x43c8b0)),_0x157ba7=_0x491c1c['revUj'](_0x1a2635,_0x43c8b0)+_0x2597e4,_0x2bbe31=_0x491c1c[_0x1b0637(0x12f)](findClusterEnd,_0x3a856f,_0x157ba7,_0x51a30e,_0x2597e4);let _0x587b5a=_0x157ba7,_0x476348=0x0,_0x28ddc2=0x2,_0x33d490=![],_0x2dde22=Buffer['alloc'](0x0),_0x3225c2=Buffer[_0x1b0637(0x146)](0x0);while(_0x491c1c[_0x1b0637(0x14d)](_0x587b5a,_0x2bbe31)){const [_0x415c26,_0x200f63]=_0x491c1c['sBeLG'](readId,_0x3a856f,_0x587b5a),[_0x22f67b,_0x1a0f0e]=readVint(_0x3a856f,_0x587b5a+_0x200f63);if(_0x415c26===ID_TIMESTAMP){_0x476348=readUint(_0x3a856f,_0x491c1c['revUj'](_0x491c1c['oMbxG'](_0x587b5a,_0x200f63),_0x1a0f0e),_0x22f67b),_0x28ddc2=_0x22f67b,_0x33d490=!![],_0x2dde22=_0x3a856f[_0x1b0637(0x14a)](_0x157ba7,_0x587b5a);const _0x3fea1f=_0x491c1c[_0x1b0637(0x157)](_0x491c1c[_0x1b0637(0x122)](_0x587b5a+_0x200f63,_0x1a0f0e),_0x22f67b);_0x3225c2=_0x3a856f['slice'](_0x3fea1f,_0x2bbe31);break;}if(_0x415c26===ID_CLUSTER)break;if(_0x491c1c['DbHsR'](isUnknownSize,_0x22f67b,_0x1a0f0e))break;_0x587b5a+=_0x200f63+_0x1a0f0e+_0x22f67b;}!_0x33d490&&(_0x3225c2=_0x3a856f[_0x1b0637(0x14a)](_0x157ba7,_0x2bbe31));let _0x5717e3=_0x476348;_0x587b5a=_0x157ba7;while(_0x587b5a<_0x2bbe31){const [_0x4bd91a,_0x26d79e]=_0x491c1c['DbHsR'](readId,_0x3a856f,_0x587b5a),[_0xc6f7e3,_0xda7c13]=_0x491c1c['sBeLG'](readVint,_0x3a856f,_0x587b5a+_0x26d79e);if(_0x491c1c[_0x1b0637(0x15b)](_0x4bd91a,ID_SIMPLE_BLOCK)&&_0x491c1c['XLxit'](_0xc6f7e3,0x4)){const _0x427130=_0x587b5a+_0x26d79e+_0xda7c13,[,_0x1f5fbb]=_0x491c1c[_0x1b0637(0x154)](readVint,_0x3a856f,_0x427130),_0xd748b2=_0x3a856f[_0x1b0637(0x138)](_0x491c1c[_0x1b0637(0x120)](_0x427130,_0x1f5fbb)),_0x25e034=_0x476348+_0xd748b2;if(_0x25e034>_0x5717e3)_0x5717e3=_0x25e034;}if(_0x4bd91a===ID_CLUSTER)break;if(_0x491c1c['FELLr'](isUnknownSize,_0xc6f7e3,_0xda7c13))break;_0x587b5a+=_0x491c1c['cAdZa'](_0x26d79e+_0xda7c13,_0xc6f7e3);}_0x1eed9f[_0x1b0637(0x142)]({'timestamp':_0x476348,'maxTicks':_0x5717e3,'bodyBeforeTimestamp':_0x2dde22,'bodyAfterTimestamp':_0x3225c2,'timestampElementSize':_0x28ddc2}),_0x4e9693=_0x2bbe31;}return _0x1eed9f;}function parseWebm(_0x428092){const _0x5f120f=_0x495a,_0x40ea21={'dgmsr':function(_0x3c52b1,_0xa85bcf,_0x5bfb97){return _0x3c52b1(_0xa85bcf,_0x5bfb97);},'iSVil':function(_0x1381da,_0x375f78){return _0x1381da+_0x375f78;},'wuMmq':function(_0x531a3d,_0x4235be){return _0x531a3d!==_0x4235be;},'tjImw':function(_0x16d97a,_0x3898fe,_0x44161f){return _0x16d97a(_0x3898fe,_0x44161f);},'OPgBX':function(_0x21fb1c,_0x566e4a,_0xc80dd3){return _0x21fb1c(_0x566e4a,_0xc80dd3);},'CuLHT':function(_0x4b40a9,_0x159f2b,_0xfbb50e){return _0x4b40a9(_0x159f2b,_0xfbb50e);}};let _0x21035a=0x0;const [,_0x4063ee]=readId(_0x428092,_0x21035a),[_0x950a67,_0x115fc9]=_0x40ea21[_0x5f120f(0x151)](readVint,_0x428092,_0x40ea21[_0x5f120f(0x153)](_0x21035a,_0x4063ee));_0x21035a+=_0x40ea21[_0x5f120f(0x153)](_0x4063ee+_0x115fc9,_0x950a67);const [_0x4b2a2a,_0x59fd9d]=readId(_0x428092,_0x21035a);if(_0x40ea21['wuMmq'](_0x4b2a2a,ID_SEGMENT))return null;const [,_0x30145e]=_0x40ea21[_0x5f120f(0x13c)](readVint,_0x428092,_0x40ea21['iSVil'](_0x21035a,_0x59fd9d)),_0x57ab7e=_0x40ea21[_0x5f120f(0x153)](_0x21035a,_0x59fd9d)+_0x30145e,_0x4283c4=_0x40ea21['OPgBX'](findTimestampScale,_0x428092,_0x57ab7e),_0x5df637=_0x40ea21[_0x5f120f(0x159)](findFirstClusterOffset,_0x428092,_0x57ab7e),_0x346f83=_0x428092[_0x5f120f(0x14a)](0x0,_0x5df637),_0x530c7a=extractClusters(_0x428092,_0x4283c4);let _0x4d4ae2=0x0;for(const _0xc48d0f of _0x530c7a){if(_0xc48d0f['maxTicks']>_0x4d4ae2)_0x4d4ae2=_0xc48d0f[_0x5f120f(0x15d)];}return{'header':_0x346f83,'clusters':_0x530c7a,'timestampScale':_0x4283c4,'maxTimestampTicks':_0x4d4ae2};}function buildCluster(_0x28a0c3,_0x10b9ff,_0x3b86b1){const _0x49b0cf=_0x495a,_0x3304dd={'xnlCQ':function(_0x26e4fe,_0x2e76b7){return _0x26e4fe(_0x2e76b7);}},_0x19324a=Buffer['from']([0x1f,0x43,0xb6,0x75]),_0x2b6d39=Math['max'](0x4,uintSize(_0x28a0c3)),_0x2c98a2=Buffer['concat']([Buffer['from']([ID_TIMESTAMP]),writeVint(_0x2b6d39),writeUint(_0x28a0c3,_0x2b6d39)]),_0x3c6105=Buffer['concat']([_0x10b9ff,_0x2c98a2,_0x3b86b1]),_0x4cb80b=_0x3304dd[_0x49b0cf(0x11c)](writeVint,_0x3c6105[_0x49b0cf(0x13d)]);return Buffer['concat']([_0x19324a,_0x4cb80b,_0x3c6105]);}function _0x5579(){const _0x4460bb=['280crqqFI','dgmsr','OSrng','iSVil','igFen','ZeOef','aGRZI','BHeUA','exit','CuLHT','7456526PAkQui','aeQdN','SGTaz','maxTicks','concat','log','error','EtNyg','QsggZ','niObT','endsWith','OwrIl','DbHsR','14670SMDlTe','soVlS','stitchWebmFiles.js','xnlCQ','zurVC','bBnSh','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','revUj','TbxbY','qkAfw','czKri','from','OpqnK','NPDHd','QcJUx','UNmAh','header','EaXsc','28787pjUWoa','457553AHSgwa','bodyBeforeTimestamp','ohkZD','BXfDX','uaAfV','pLJib','99gvrHND','102684ICeMhL','Quhhq','SNZEs','FdXIG','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','readInt16BE','99ustsqE','857016YrGTVV','aNPSl','tjImw','length','argv','stitchWebmFiles.ts','has','bmKUF','push','BlqBL','nIoKL','1867886DLjSYw','alloc','GXnnR','min','\x20files\x20->\x20','slice','clusters','CbyLB','qjyyt','vkcDg','1875NYJgDg'];_0x5579=function(){return _0x4460bb;};return _0x5579();}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x48c704){const _0x1c40f7=_0x495a,_0x5bc14c={'vkcDg':function(_0xa17d8f,_0x1eb3f7){return _0xa17d8f+_0x1eb3f7;},'EaXsc':function(_0x50b8df,_0x354a9b){return _0x50b8df+_0x354a9b;},'TbxbY':function(_0x177ea1,_0x1070cb,_0x2892b9){return _0x177ea1(_0x1070cb,_0x2892b9);},'FzYvJ':function(_0x5b1799,_0x18b9be){return _0x5b1799+_0x18b9be;},'SisUl':function(_0x4bfc64,_0x511dba){return _0x4bfc64(_0x511dba);},'fZlcA':function(_0xf23105,_0x50d962){return _0xf23105+_0x50d962;},'bBnSh':function(_0x103247,_0x58bbfc){return _0x103247+_0x58bbfc;},'UNmAh':function(_0x1a2dd0,_0x5d72a7){return _0x1a2dd0<_0x5d72a7;},'ZeOef':function(_0x406d56,_0x3fd4ec){return _0x406d56+_0x3fd4ec;},'OSrng':function(_0x36f7e6,_0x1c8433){return _0x36f7e6===_0x1c8433;},'EtNyg':function(_0x466ebb,_0x3fbe02){return _0x466ebb+_0x3fbe02;}},_0x348b3c=Buffer[_0x1c40f7(0x124)](_0x48c704);let _0x7021fc=0x0;const [,_0x217936]=readId(_0x348b3c,_0x7021fc),[_0x4fe30f,_0x3f8e3f]=readVint(_0x348b3c,_0x5bc14c[_0x1c40f7(0x14e)](_0x7021fc,_0x217936)),_0x1466b6=_0x5bc14c[_0x1c40f7(0x12a)](_0x7021fc,_0x217936)+_0x3f8e3f+_0x4fe30f,[,_0x4993d7]=_0x5bc14c['TbxbY'](readId,_0x348b3c,_0x1466b6),[,_0x5cea95]=readVint(_0x348b3c,_0x1466b6+_0x4993d7),_0x3eb04f=_0x5bc14c['FzYvJ'](_0x1466b6,_0x4993d7)+_0x5cea95,_0x2ebbad=_0x5bc14c['SisUl'](writeUnknownSizeVint,_0x5cea95);_0x2ebbad['copy'](_0x348b3c,_0x5bc14c['fZlcA'](_0x1466b6,_0x4993d7));let _0x347be9=_0x3eb04f;const _0x273ffb=Math[_0x1c40f7(0x148)](_0x348b3c['length'],_0x5bc14c[_0x1c40f7(0x11e)](_0x3eb04f,0x2710));while(_0x5bc14c[_0x1c40f7(0x128)](_0x347be9,_0x273ffb)){const [_0x46daf4,_0x477a20]=readId(_0x348b3c,_0x347be9),[_0x4cc664,_0x2ff82e]=_0x5bc14c['TbxbY'](readVint,_0x348b3c,_0x5bc14c[_0x1c40f7(0x155)](_0x347be9,_0x477a20));if(_0x46daf4===ID_CLUSTER)break;if(_0x5bc14c[_0x1c40f7(0x121)](isUnknownSize,_0x4cc664,_0x2ff82e))break;if(_0x5bc14c[_0x1c40f7(0x152)](_0x46daf4,ID_INFO)){const _0x46313a=_0x5bc14c['FzYvJ'](_0x347be9,_0x477a20)+_0x2ff82e,_0x26fe1b=_0x5bc14c[_0x1c40f7(0x113)](_0x46313a,_0x4cc664),_0x5708d6=[];let _0x1581f0=_0x46313a;while(_0x5bc14c['UNmAh'](_0x1581f0,_0x26fe1b)){const [_0x5711c7,_0x294b14]=_0x5bc14c[_0x1c40f7(0x121)](readId,_0x348b3c,_0x1581f0),[_0x1fbd27,_0x449bbe]=readVint(_0x348b3c,_0x1581f0+_0x294b14),_0x2c32c7=_0x5bc14c['fZlcA'](_0x294b14+_0x449bbe,_0x1fbd27);_0x5711c7!==ID_DURATION&&_0x5708d6[_0x1c40f7(0x142)](_0x348b3c[_0x1c40f7(0x14a)](_0x1581f0,_0x1581f0+_0x2c32c7)),_0x1581f0+=_0x2c32c7;}const _0x56d917=Buffer['concat'](_0x5708d6),_0x2985f9=Buffer['concat']([_0x348b3c['slice'](_0x347be9,_0x347be9+_0x477a20),writeVint(_0x56d917[_0x1c40f7(0x13d)],_0x2ff82e)]);return Buffer[_0x1c40f7(0x110)]([_0x348b3c['slice'](0x0,_0x347be9),_0x2985f9,_0x56d917,_0x348b3c['slice'](_0x26fe1b)]);}_0x347be9+=_0x477a20+_0x2ff82e+_0x4cc664;}return _0x348b3c;}export function stitchWebmFiles(_0x22004f,_0x50d275){const _0x5389a0=_0x495a,_0x5a498c={'iwADD':function(_0x2070fd,_0x205912){return _0x2070fd<=_0x205912;},'BlqBL':function(_0x5902d1,_0x1c47be){return _0x5902d1(_0x1c47be);},'DiPHM':function(_0x2609ea,_0x921d51,_0x5580a6){return _0x2609ea(_0x921d51,_0x5580a6);}};if(_0x5a498c['iwADD'](_0x22004f['length'],0x1))return![];const _0x5396d8=[];for(const _0x42d15e of _0x22004f){const _0x44396d=_0x5a498c['BlqBL'](readFileSync,_0x42d15e),_0xaa0378=parseWebm(_0x44396d);if(!_0xaa0378||_0xaa0378['clusters']['length']===0x0)return![];_0x5396d8[_0x5389a0(0x142)](_0xaa0378);}const _0x3c2f86=_0x5396d8[0x0],_0x295937=_0x5a498c[_0x5389a0(0x143)](rebuildHeaderWithoutDuration,_0x3c2f86[_0x5389a0(0x129)]),_0x49994b=[_0x295937];let _0x5cad6b=0x0;for(let _0x242ae7=0x0;_0x242ae7<_0x5396d8[_0x5389a0(0x13d)];_0x242ae7++){const _0x5bca33=_0x5396d8[_0x242ae7];for(const _0xae4405 of _0x5bca33[_0x5389a0(0x14b)]){const _0x4693b4=_0xae4405['timestamp']+_0x5cad6b;_0x49994b[_0x5389a0(0x142)](buildCluster(_0x4693b4,_0xae4405[_0x5389a0(0x12d)],_0xae4405['bodyAfterTimestamp']));}const _0x42e5fe=0x1e;_0x5cad6b+=_0x5bca33['maxTimestampTicks']+_0x42e5fe;}return _0x5a498c['DiPHM'](writeFileSync,_0x50d275,Buffer['concat'](_0x49994b)),!![];}function _0x495a(_0x138fea,_0x51fea9){_0x138fea=_0x138fea-0x110;const _0x557974=_0x5579();let _0x495ae9=_0x557974[_0x138fea];return _0x495ae9;}if(process['argv'][0x1]?.['endsWith'](_0xb14d0f(0x13f))||process[_0xb14d0f(0x13e)][0x1]?.[_0xb14d0f(0x116)](_0xb14d0f(0x11b))){const args=process['argv']['slice'](0x2);args['length']<0x3&&(console[_0xb14d0f(0x112)](_0xb14d0f(0x11f)),process[_0xb14d0f(0x158)](0x1));const output=args[args['length']-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0xb14d0f(0x111)]('Stitched\x20'+inputs[_0xb14d0f(0x13d)]+_0xb14d0f(0x149)+output):console[_0xb14d0f(0x111)](_0xb14d0f(0x137));}
1
+ const _0x1799f7=_0x4325;(function(_0x199142,_0x443799){const _0x4875db=_0x4325,_0x4061ca=_0x199142();while(!![]){try{const _0x129c33=-parseInt(_0x4875db(0x17d))/0x1+-parseInt(_0x4875db(0x19a))/0x2+parseInt(_0x4875db(0x15b))/0x3+parseInt(_0x4875db(0x166))/0x4+parseInt(_0x4875db(0x181))/0x5*(-parseInt(_0x4875db(0x16e))/0x6)+-parseInt(_0x4875db(0x195))/0x7*(parseInt(_0x4875db(0x177))/0x8)+parseInt(_0x4875db(0x197))/0x9;if(_0x129c33===_0x443799)break;else _0x4061ca['push'](_0x4061ca['shift']());}catch(_0x8eb058){_0x4061ca['push'](_0x4061ca['shift']());}}}(_0x262d,0x77eef));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(_0x444dd0,_0x5b5d6d){const _0x71578=_0x4325,_0x38a3d5={'ANLOj':function(_0x258822,_0x3c5f94){return _0x258822>_0x3c5f94;},'uemEU':function(_0x363679,_0x26260c){return _0x363679&_0x26260c;},'pIGeP':function(_0x3a2060,_0x53f001){return _0x3a2060-_0x53f001;},'cSvQW':function(_0x57b2a9,_0x25702d){return _0x57b2a9<_0x25702d;},'GhrJX':function(_0x389d62,_0x3bcc74){return _0x389d62+_0x3bcc74;},'XRJfP':function(_0x2b5987,_0x313454){return _0x2b5987*_0x313454;}};if(_0x5b5d6d>=_0x444dd0[_0x71578(0x158)])return[0x0,0x0];const _0x358f10=_0x444dd0[_0x5b5d6d];let _0x2675f0=0x1,_0x20d575=0x80;while(_0x2675f0<=0x8&&!(_0x358f10&_0x20d575)){_0x2675f0++,_0x20d575>>=0x1;}if(_0x38a3d5[_0x71578(0x163)](_0x5b5d6d+_0x2675f0,_0x444dd0['length']))return[0x0,0x0];let _0x43bdc6=_0x38a3d5[_0x71578(0x167)](_0x358f10,_0x38a3d5[_0x71578(0x193)](_0x20d575,0x1));for(let _0x2b294b=0x1;_0x38a3d5[_0x71578(0x17b)](_0x2b294b,_0x2675f0);_0x2b294b++){_0x43bdc6=_0x38a3d5[_0x71578(0x16f)](_0x38a3d5['XRJfP'](_0x43bdc6,0x100),_0x444dd0[_0x5b5d6d+_0x2b294b]);}return[_0x43bdc6,_0x2675f0];}function readId(_0xcf1974,_0x55a5a5){const _0x6bbd05=_0x4325,_0x468b25={'znmIm':function(_0xcb9cf2,_0x8104a5){return _0xcb9cf2>=_0x8104a5;},'oIZcx':function(_0x96834b,_0x8dfd74){return _0x96834b>=_0x8dfd74;},'IgPhs':function(_0x58037d,_0x5bea73){return _0x58037d>=_0x5bea73;},'jlRBs':function(_0x14a304,_0xfaae6b){return _0x14a304+_0xfaae6b;},'lZXnS':function(_0x3a14dc,_0x38921b){return _0x3a14dc*_0x38921b;}};if(_0x55a5a5>=_0xcf1974[_0x6bbd05(0x158)])return[0x0,0x0];const _0x522687=_0xcf1974[_0x55a5a5];let _0x356515;if(_0x468b25[_0x6bbd05(0x16c)](_0x522687,0x80))_0x356515=0x1;else{if(_0x468b25['oIZcx'](_0x522687,0x40))_0x356515=0x2;else{if(_0x468b25[_0x6bbd05(0x196)](_0x522687,0x20))_0x356515=0x3;else{if(_0x522687>=0x10)_0x356515=0x4;else return[_0x522687,0x1];}}}if(_0x55a5a5+_0x356515>_0xcf1974[_0x6bbd05(0x158)])return[0x0,0x0];let _0x41ddbd=0x0;for(let _0x1c42c0=0x0;_0x1c42c0<_0x356515;_0x1c42c0++){_0x41ddbd=_0x468b25['jlRBs'](_0x468b25['lZXnS'](_0x41ddbd,0x100),_0xcf1974[_0x55a5a5+_0x1c42c0]);}return[_0x41ddbd,_0x356515];}function _0x262d(){const _0x3ccdb2=['cecOs','RGxyp','Stitched\x20','fxrnt','alloc','log','cGHFe','17784vbwxXC','bodyAfterTimestamp','qMmBa','from','cSvQW','MHSdo','561722GXhUBt','GBrFe','vdTkw','slice','264035XSNise','max','bodyBeforeTimestamp','krthV','floor','QJaPK','sjFXc','nsPtM','hurLb','nUfaG','zvDTM','timestamp','maxTicks','xVLBv','min','zpxfn','concat','yyGrC','pIGeP','iNcev','133qYcOBL','IgPhs','4789845qUxUol','WJjcB','nijXu','192922VuSjJj','jqtiY','dsAVg','GIfhS','clusters','length','ktexQ','jXXWw','1219197bJuLBJ','zuxGx','HhdVa','ujmPO','hXQvK','ZPzTH','rjJwP','stitchWebmFiles.js','ANLOj','BKCtY','push','1434708EDBdzR','uemEU','DEFct','WLukR','pow','argv','znmIm','DBnOy','12GXpSNa','GhrJX'];_0x262d=function(){return _0x3ccdb2;};return _0x262d();}function readUint(_0x30cd1b,_0x1696ee,_0x305998){const _0x4ff8f2={'xWkRr':function(_0x5bc577,_0x542593){return _0x5bc577*_0x542593;}};let _0x3f7b14=0x0;for(let _0x1d658d=0x0;_0x1d658d<_0x305998;_0x1d658d++){_0x3f7b14=_0x4ff8f2['xWkRr'](_0x3f7b14,0x100)+_0x30cd1b[_0x1696ee+_0x1d658d];}return _0x3f7b14;}function isUnknownSize(_0x80eca5,_0x36690e){const _0x1861ff=_0x4325,_0x3ae5de={'sjFXc':function(_0x2a75dc,_0x1f117c){return _0x2a75dc*_0x1f117c;}};return _0x80eca5===Math['pow'](0x2,_0x3ae5de[_0x1861ff(0x187)](0x7,_0x36690e))-0x1;}function writeVint(_0x4a2686,_0x1ed8ea){const _0x36bca3=_0x4325,_0x3c006c={'zvDTM':function(_0x339f07,_0x15bad9){return _0x339f07<_0x15bad9;},'QdEFK':function(_0x379e00,_0x5c7518){return _0x379e00-_0x5c7518;},'tHEZb':function(_0x339166,_0xb07d0f){return _0x339166&_0xb07d0f;},'KDhHs':function(_0x148d9b,_0x4d0603){return _0x148d9b/_0x4d0603;},'dsAVg':function(_0x3889c9,_0x4b8098){return _0x3889c9<<_0x4b8098;},'aPmnU':function(_0x482f50,_0x1005c0){return _0x482f50-_0x1005c0;}};let _0x5cd11f=_0x1ed8ea||0x1;while(_0x3c006c[_0x36bca3(0x18b)](Math[_0x36bca3(0x16a)](0x2,0x7*_0x5cd11f)-0x2,_0x4a2686))_0x5cd11f++;const _0x5a7f3f=Buffer['alloc'](_0x5cd11f);for(let _0x48b632=_0x3c006c['QdEFK'](_0x5cd11f,0x1);_0x48b632>=0x0;_0x48b632--){_0x5a7f3f[_0x48b632]=_0x3c006c['tHEZb'](_0x4a2686,0xff),_0x4a2686=Math[_0x36bca3(0x185)](_0x3c006c['KDhHs'](_0x4a2686,0x100));}return _0x5a7f3f[0x0]|=_0x3c006c[_0x36bca3(0x19c)](0x1,_0x3c006c['aPmnU'](0x8,_0x5cd11f)),_0x5a7f3f;}function writeUint(_0x371de5,_0x218a2c){const _0x159df0=_0x4325,_0x1eaf4f={'GBrFe':function(_0xf1207b,_0x4f59e8){return _0xf1207b>=_0x4f59e8;}},_0x54e21a=Buffer['alloc'](_0x218a2c);for(let _0x2700c4=_0x218a2c-0x1;_0x1eaf4f[_0x159df0(0x17e)](_0x2700c4,0x0);_0x2700c4--){_0x54e21a[_0x2700c4]=_0x371de5&0xff,_0x371de5=Math['floor'](_0x371de5/0x100);}return _0x54e21a;}function _0x4325(_0x54d6d9,_0x458fd4){_0x54d6d9=_0x54d6d9-0x157;const _0x262d3f=_0x262d();let _0x4325a5=_0x262d3f[_0x54d6d9];return _0x4325a5;}function writeUnknownSizeVint(_0x462575){const _0xe212ff={'qaGma':function(_0x2e2f72,_0x39fa6d){return _0x2e2f72>>_0x39fa6d;}},_0x547d9c=Buffer['alloc'](_0x462575,0xff);return _0x547d9c[0x0]=_0xe212ff['qaGma'](0xff,_0x462575-0x1),_0x547d9c;}function uintSize(_0x1dbc43){const _0x57b182=_0x4325,_0x26a2e5={'HhdVa':function(_0x533cd1,_0x1574f6){return _0x533cd1===_0x1574f6;},'cGHFe':function(_0x4d30c7,_0x271f9c){return _0x4d30c7>_0x271f9c;}};if(_0x26a2e5[_0x57b182(0x15d)](_0x1dbc43,0x0))return 0x1;let _0x10faa1=0x0,_0x5835de=_0x1dbc43;while(_0x26a2e5[_0x57b182(0x176)](_0x5835de,0x0)){_0x10faa1++,_0x5835de=Math['floor'](_0x5835de/0x100);}return _0x10faa1;}function findTimestampScale(_0x5ccad6,_0x1d064d){const _0x552778=_0x4325,_0x3ddf56={'GIfhS':function(_0x57b159,_0x322c0c){return _0x57b159<_0x322c0c;},'npcSS':function(_0x2ed825,_0x15a30b,_0x224d8a){return _0x2ed825(_0x15a30b,_0x224d8a);},'fxrnt':function(_0x196f48,_0x21e543){return _0x196f48+_0x21e543;},'zvYYH':function(_0x3af6c3,_0x148ad3){return _0x3af6c3+_0x148ad3;},'KqcXf':function(_0xb93779,_0x4fc7f7){return _0xb93779+_0x4fc7f7;},'hurLb':function(_0x16ad10,_0x31d3f8){return _0x16ad10<_0x31d3f8;},'RGxyp':function(_0x56791f,_0x12734b,_0x516918,_0x8ce0ea){return _0x56791f(_0x12734b,_0x516918,_0x8ce0ea);},'jXXWw':function(_0x59c450,_0x1e03ee){return _0x59c450+_0x1e03ee;},'NWrbe':function(_0x357f7a,_0x4d8268){return _0x357f7a===_0x4d8268;},'WLukR':function(_0x563528,_0x722539,_0x3ad8a1){return _0x563528(_0x722539,_0x3ad8a1);}};let _0xeab15e=_0x1d064d;const _0x436b0c=Math[_0x552778(0x18f)](_0x5ccad6['length'],_0x1d064d+0x2710);while(_0x3ddf56[_0x552778(0x19d)](_0xeab15e,_0x436b0c)){const [_0x5a12b4,_0x19b8d2]=_0x3ddf56['npcSS'](readId,_0x5ccad6,_0xeab15e),[_0x3e157c,_0x5c5470]=readVint(_0x5ccad6,_0x3ddf56[_0x552778(0x173)](_0xeab15e,_0x19b8d2));if(_0x5a12b4===ID_INFO){let _0x2e3840=_0x3ddf56['fxrnt'](_0x3ddf56['zvYYH'](_0xeab15e,_0x19b8d2),_0x5c5470);const _0x352605=_0x3ddf56['KqcXf'](_0x2e3840,_0x3e157c);while(_0x3ddf56[_0x552778(0x189)](_0x2e3840,_0x352605)){const [_0x5c9879,_0xca2589]=_0x3ddf56['npcSS'](readId,_0x5ccad6,_0x2e3840),[_0x593509,_0x4ab3c8]=readVint(_0x5ccad6,_0x2e3840+_0xca2589);if(_0x5c9879===ID_TIMESTAMP_SCALE)return _0x3ddf56[_0x552778(0x171)](readUint,_0x5ccad6,_0x3ddf56['KqcXf'](_0x2e3840+_0xca2589,_0x4ab3c8),_0x593509);_0x2e3840+=_0x3ddf56[_0x552778(0x15a)](_0xca2589,_0x4ab3c8)+_0x593509;}break;}if(_0x3ddf56['NWrbe'](_0x5a12b4,ID_CLUSTER))break;if(_0x3ddf56[_0x552778(0x169)](isUnknownSize,_0x3e157c,_0x5c5470))break;_0xeab15e+=_0x3ddf56[_0x552778(0x173)](_0x19b8d2+_0x5c5470,_0x3e157c);}return 0xf4240;}function findFirstClusterOffset(_0x35379e,_0x1e0b0c){const _0x2e3eac=_0x4325,_0x1f6595={'ujmPO':function(_0x193445,_0x223bfc){return _0x193445<_0x223bfc;},'xVLBv':function(_0x4c7c4c,_0x2d0a2f){return _0x4c7c4c===_0x2d0a2f;},'ZPzTH':function(_0x3a00d4,_0x103312){return _0x3a00d4+_0x103312;}};let _0x5b4a3d=_0x1e0b0c;while(_0x1f6595[_0x2e3eac(0x15e)](_0x5b4a3d,_0x35379e[_0x2e3eac(0x158)])){const [_0x2154ea,_0x411a40]=readId(_0x35379e,_0x5b4a3d);if(_0x1f6595[_0x2e3eac(0x18e)](_0x2154ea,ID_CLUSTER))return _0x5b4a3d;const [_0x278069,_0x9c29b1]=readVint(_0x35379e,_0x1f6595[_0x2e3eac(0x160)](_0x5b4a3d,_0x411a40));if(isUnknownSize(_0x278069,_0x9c29b1))return _0x5b4a3d;_0x5b4a3d+=_0x411a40+_0x9c29b1+_0x278069;}return _0x35379e['length'];}function findClusterEnd(_0x117457,_0x1d56de,_0x3b2579,_0x176600){const _0x3b0fb7=_0x4325,_0x2808d3={'xuglT':function(_0x1d8182,_0x1c2fbe){return _0x1d8182<_0x1c2fbe;},'suXXs':function(_0x397c74,_0x70fa48){return _0x397c74-_0x70fa48;},'Ezvbl':function(_0x323b7f,_0x52480c,_0x208387){return _0x323b7f(_0x52480c,_0x208387);},'VOtdq':function(_0x5179d9,_0x2b7e10,_0x54419a){return _0x5179d9(_0x2b7e10,_0x54419a);},'tNXfc':function(_0x45feb4,_0x5742e3){return _0x45feb4+_0x5742e3;}};if(!isUnknownSize(_0x3b2579,_0x176600))return _0x1d56de+_0x3b2579;const _0x2b54f0=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x1013e2=_0x1d56de;while(_0x2808d3['xuglT'](_0x1013e2,_0x2808d3['suXXs'](_0x117457[_0x3b0fb7(0x158)],0x4))){const [_0x358435,_0x36ada]=readId(_0x117457,_0x1013e2);if(_0x2b54f0['has'](_0x358435))return _0x1013e2;const [_0x305ae1,_0x141b75]=_0x2808d3['Ezvbl'](readVint,_0x117457,_0x1013e2+_0x36ada);if(_0x2808d3['VOtdq'](isUnknownSize,_0x305ae1,_0x141b75))return _0x117457['length'];_0x1013e2+=_0x2808d3['tNXfc'](_0x36ada,_0x141b75)+_0x305ae1;}return _0x117457['length'];}function extractClusters(_0xad61e6,_0x56bd5b){const _0xcabff4=_0x4325,_0x514cbc={'iNcev':function(_0x304fb1,_0x5d357d){return _0x304fb1<_0x5d357d;},'ktexQ':function(_0x57903c,_0x2d3afc,_0x4c06eb){return _0x57903c(_0x2d3afc,_0x4c06eb);},'nijXu':function(_0x3ccdd7,_0x4ea36d){return _0x3ccdd7+_0x4ea36d;},'jqtiY':function(_0x2d73d5,_0x3d650f,_0x31e118,_0x2bd633){return _0x2d73d5(_0x3d650f,_0x31e118,_0x2bd633);},'XUQRQ':function(_0x26fdbb,_0x22783d){return _0x26fdbb+_0x22783d;},'WJjcB':function(_0x599941,_0x4f0513){return _0x599941+_0x4f0513;},'nsPtM':function(_0x4ed0c5,_0x7f6d91){return _0x4ed0c5+_0x7f6d91;},'BKCtY':function(_0x3616f2,_0x2d6748){return _0x3616f2===_0x2d6748;},'SCSXA':function(_0xcf05e0,_0x32ea9a){return _0xcf05e0<_0x32ea9a;},'krthV':function(_0x1c6f2d,_0xbd9502,_0x2c5392){return _0x1c6f2d(_0xbd9502,_0x2c5392);},'vdTkw':function(_0x318adf,_0x24aff4){return _0x318adf===_0x24aff4;},'dLJip':function(_0x5da1e9,_0xacbf14){return _0x5da1e9===_0xacbf14;},'hXQvK':function(_0x1b574f,_0x323ab1){return _0x1b574f+_0x323ab1;}},_0x4decf8=[],_0x142ca3=Buffer[_0xcabff4(0x17a)]([0x1f,0x43,0xb6,0x75]);let _0x550bde=0x0;while(_0x514cbc[_0xcabff4(0x194)](_0x550bde,_0xad61e6[_0xcabff4(0x158)])){const _0x4c2140=_0xad61e6['indexOf'](_0x142ca3,_0x550bde);if(_0x4c2140===-0x1)break;const [_0x4f745a,_0x39f28d]=_0x514cbc['ktexQ'](readId,_0xad61e6,_0x4c2140);if(_0x4f745a!==ID_CLUSTER){_0x550bde=_0x4c2140+0x1;continue;}const [_0x3be9b6,_0x3c1413]=readVint(_0xad61e6,_0x514cbc[_0xcabff4(0x199)](_0x4c2140,_0x39f28d)),_0x13b876=_0x514cbc['nijXu'](_0x4c2140+_0x39f28d,_0x3c1413),_0x58462e=findClusterEnd(_0xad61e6,_0x13b876,_0x3be9b6,_0x3c1413);let _0x23847=_0x13b876,_0x1af96f=0x0,_0x12a591=0x2,_0x2a35a2=![],_0x2a6f01=Buffer['alloc'](0x0),_0x13a171=Buffer[_0xcabff4(0x174)](0x0);while(_0x23847<_0x58462e){const [_0x3ec896,_0xd897e3]=readId(_0xad61e6,_0x23847),[_0x51c8cc,_0x45e028]=_0x514cbc[_0xcabff4(0x159)](readVint,_0xad61e6,_0x23847+_0xd897e3);if(_0x3ec896===ID_TIMESTAMP){_0x1af96f=_0x514cbc[_0xcabff4(0x19b)](readUint,_0xad61e6,_0x514cbc['XUQRQ'](_0x514cbc['WJjcB'](_0x23847,_0xd897e3),_0x45e028),_0x51c8cc),_0x12a591=_0x51c8cc,_0x2a35a2=!![],_0x2a6f01=_0xad61e6[_0xcabff4(0x180)](_0x13b876,_0x23847);const _0x5e8b02=_0x514cbc[_0xcabff4(0x199)](_0x514cbc['nsPtM'](_0x514cbc[_0xcabff4(0x188)](_0x23847,_0xd897e3),_0x45e028),_0x51c8cc);_0x13a171=_0xad61e6['slice'](_0x5e8b02,_0x58462e);break;}if(_0x514cbc[_0xcabff4(0x164)](_0x3ec896,ID_CLUSTER))break;if(_0x514cbc['ktexQ'](isUnknownSize,_0x51c8cc,_0x45e028))break;_0x23847+=_0x514cbc['XUQRQ'](_0xd897e3,_0x45e028)+_0x51c8cc;}!_0x2a35a2&&(_0x13a171=_0xad61e6['slice'](_0x13b876,_0x58462e));let _0x51ab5e=_0x1af96f;_0x23847=_0x13b876;while(_0x514cbc['SCSXA'](_0x23847,_0x58462e)){const [_0x2d6208,_0x3a86dc]=_0x514cbc['ktexQ'](readId,_0xad61e6,_0x23847),[_0x51e6ce,_0x252d4e]=_0x514cbc[_0xcabff4(0x184)](readVint,_0xad61e6,_0x514cbc[_0xcabff4(0x198)](_0x23847,_0x3a86dc));if(_0x514cbc[_0xcabff4(0x17f)](_0x2d6208,ID_SIMPLE_BLOCK)&&_0x51e6ce>=0x4){const _0x58cf2e=_0x23847+_0x3a86dc+_0x252d4e,[,_0x1af89c]=readVint(_0xad61e6,_0x58cf2e),_0x16ec4c=_0xad61e6['readInt16BE'](_0x514cbc['nijXu'](_0x58cf2e,_0x1af89c)),_0xcf8c85=_0x1af96f+_0x16ec4c;if(_0xcf8c85>_0x51ab5e)_0x51ab5e=_0xcf8c85;}if(_0x514cbc['dLJip'](_0x2d6208,ID_CLUSTER))break;if(_0x514cbc[_0xcabff4(0x184)](isUnknownSize,_0x51e6ce,_0x252d4e))break;_0x23847+=_0x514cbc[_0xcabff4(0x15f)](_0x3a86dc,_0x252d4e)+_0x51e6ce;}_0x4decf8[_0xcabff4(0x165)]({'timestamp':_0x1af96f,'maxTicks':_0x51ab5e,'bodyBeforeTimestamp':_0x2a6f01,'bodyAfterTimestamp':_0x13a171,'timestampElementSize':_0x12a591}),_0x550bde=_0x58462e;}return _0x4decf8;}function parseWebm(_0x3632e9){const _0x1d538f=_0x4325,_0x26b55b={'QtjAo':function(_0x437535,_0x128c38,_0x506e55){return _0x437535(_0x128c38,_0x506e55);},'DBnOy':function(_0x58a7b5,_0x121a9f){return _0x58a7b5+_0x121a9f;},'rjJwP':function(_0x2990ac,_0x165ff7,_0xc46681){return _0x2990ac(_0x165ff7,_0xc46681);},'XyzBH':function(_0x296449,_0xe63c67){return _0x296449>_0xe63c67;}};let _0x2bef7d=0x0;const [,_0x546b5a]=readId(_0x3632e9,_0x2bef7d),[_0x256f65,_0x3043c2]=_0x26b55b['QtjAo'](readVint,_0x3632e9,_0x26b55b['DBnOy'](_0x2bef7d,_0x546b5a));_0x2bef7d+=_0x546b5a+_0x3043c2+_0x256f65;const [_0x178498,_0x766259]=_0x26b55b[_0x1d538f(0x161)](readId,_0x3632e9,_0x2bef7d);if(_0x178498!==ID_SEGMENT)return null;const [,_0x5a607c]=readVint(_0x3632e9,_0x2bef7d+_0x766259),_0x5d9d64=_0x26b55b[_0x1d538f(0x16d)](_0x2bef7d+_0x766259,_0x5a607c),_0x1973e9=_0x26b55b['rjJwP'](findTimestampScale,_0x3632e9,_0x5d9d64),_0x581ab1=findFirstClusterOffset(_0x3632e9,_0x5d9d64),_0x24a7a4=_0x3632e9['slice'](0x0,_0x581ab1),_0xb24fa6=extractClusters(_0x3632e9,_0x1973e9);let _0x71ef32=0x0;for(const _0x25b59f of _0xb24fa6){if(_0x26b55b['XyzBH'](_0x25b59f['maxTicks'],_0x71ef32))_0x71ef32=_0x25b59f[_0x1d538f(0x18d)];}return{'header':_0x24a7a4,'clusters':_0xb24fa6,'timestampScale':_0x1973e9,'maxTimestampTicks':_0x71ef32};}function buildCluster(_0x45d593,_0xb9d90f,_0x3377da){const _0xad83cb=_0x4325,_0x69660e={'zpxfn':function(_0x5116e7,_0x1e1f9f){return _0x5116e7(_0x1e1f9f);},'yyGrC':function(_0x41bc77,_0x1701f7,_0x2941e0){return _0x41bc77(_0x1701f7,_0x2941e0);}},_0x43b1eb=Buffer[_0xad83cb(0x17a)]([0x1f,0x43,0xb6,0x75]),_0x57c564=Math[_0xad83cb(0x182)](0x4,uintSize(_0x45d593)),_0x50a21=Buffer['concat']([Buffer['from']([ID_TIMESTAMP]),_0x69660e[_0xad83cb(0x190)](writeVint,_0x57c564),_0x69660e[_0xad83cb(0x192)](writeUint,_0x45d593,_0x57c564)]),_0x2eeaae=Buffer['concat']([_0xb9d90f,_0x50a21,_0x3377da]),_0x6bb73a=writeVint(_0x2eeaae[_0xad83cb(0x158)]);return Buffer['concat']([_0x43b1eb,_0x6bb73a,_0x2eeaae]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x5b6abe){const _0x202083=_0x4325,_0x40233a={'qMmBa':function(_0x44659f,_0x12a6a7,_0x182180){return _0x44659f(_0x12a6a7,_0x182180);},'cecOs':function(_0x2fb714,_0x1c7066){return _0x2fb714+_0x1c7066;},'nUfaG':function(_0x5d1ac9,_0x3bc47d){return _0x5d1ac9+_0x3bc47d;},'QuYBf':function(_0x2a8d4f,_0x1e64a3){return _0x2a8d4f+_0x1e64a3;},'DEFct':function(_0x5a18f9,_0x4d2e69){return _0x5a18f9(_0x4d2e69);},'MHSdo':function(_0x1eb5fb,_0x3a9b79){return _0x1eb5fb<_0x3a9b79;},'QJaPK':function(_0x42ef93,_0x3ac50f){return _0x42ef93+_0x3ac50f;},'TxQRP':function(_0x388208,_0x139553){return _0x388208+_0x139553;},'dgEwR':function(_0x217a11,_0x33c91e){return _0x217a11!==_0x33c91e;}},_0x25989b=Buffer[_0x202083(0x17a)](_0x5b6abe);let _0xa3c34f=0x0;const [,_0x2e49a5]=_0x40233a['qMmBa'](readId,_0x25989b,_0xa3c34f),[_0x11e543,_0x2af60f]=readVint(_0x25989b,_0x40233a['cecOs'](_0xa3c34f,_0x2e49a5)),_0x592ad5=_0x40233a[_0x202083(0x170)](_0x40233a[_0x202083(0x18a)](_0x40233a[_0x202083(0x170)](_0xa3c34f,_0x2e49a5),_0x2af60f),_0x11e543),[,_0x429dc5]=readId(_0x25989b,_0x592ad5),[,_0x1d114c]=readVint(_0x25989b,_0x592ad5+_0x429dc5),_0x5beb76=_0x40233a['QuYBf'](_0x40233a[_0x202083(0x170)](_0x592ad5,_0x429dc5),_0x1d114c),_0x447892=_0x40233a[_0x202083(0x168)](writeUnknownSizeVint,_0x1d114c);_0x447892['copy'](_0x25989b,_0x592ad5+_0x429dc5);let _0x70f147=_0x5beb76;const _0x1660d6=Math['min'](_0x25989b[_0x202083(0x158)],_0x40233a['cecOs'](_0x5beb76,0x2710));while(_0x70f147<_0x1660d6){const [_0x4aeced,_0x59a2b8]=readId(_0x25989b,_0x70f147),[_0x34a4aa,_0xe4a89c]=_0x40233a[_0x202083(0x179)](readVint,_0x25989b,_0x40233a['QuYBf'](_0x70f147,_0x59a2b8));if(_0x4aeced===ID_CLUSTER)break;if(isUnknownSize(_0x34a4aa,_0xe4a89c))break;if(_0x4aeced===ID_INFO){const _0x4b3e93=_0x70f147+_0x59a2b8+_0xe4a89c,_0x3c71de=_0x40233a['QuYBf'](_0x4b3e93,_0x34a4aa),_0x4abc2b=[];let _0xfac88c=_0x4b3e93;while(_0x40233a[_0x202083(0x17c)](_0xfac88c,_0x3c71de)){const [_0xe351f2,_0x35e857]=_0x40233a['qMmBa'](readId,_0x25989b,_0xfac88c),[_0x733394,_0x17e2fe]=_0x40233a['qMmBa'](readVint,_0x25989b,_0x40233a[_0x202083(0x186)](_0xfac88c,_0x35e857)),_0x3643d4=_0x40233a['TxQRP'](_0x40233a['nUfaG'](_0x35e857,_0x17e2fe),_0x733394);_0x40233a['dgEwR'](_0xe351f2,ID_DURATION)&&_0x4abc2b['push'](_0x25989b['slice'](_0xfac88c,_0xfac88c+_0x3643d4)),_0xfac88c+=_0x3643d4;}const _0x53a549=Buffer['concat'](_0x4abc2b),_0x5cd376=Buffer[_0x202083(0x191)]([_0x25989b['slice'](_0x70f147,_0x70f147+_0x59a2b8),writeVint(_0x53a549['length'],_0xe4a89c)]);return Buffer['concat']([_0x25989b[_0x202083(0x180)](0x0,_0x70f147),_0x5cd376,_0x53a549,_0x25989b['slice'](_0x3c71de)]);}_0x70f147+=_0x59a2b8+_0xe4a89c+_0x34a4aa;}return _0x25989b;}export function stitchWebmFiles(_0x4c3b00,_0x427267){const _0x826c0=_0x4325,_0x5a7839={'dyare':function(_0x5a2a67,_0x5abcff){return _0x5a2a67(_0x5abcff);},'zuxGx':function(_0x2f0205,_0x53b51a,_0x4bb6da,_0x53ccbc){return _0x2f0205(_0x53b51a,_0x4bb6da,_0x53ccbc);},'JVcUj':function(_0x251272,_0x15e052,_0x36aabb){return _0x251272(_0x15e052,_0x36aabb);}};if(_0x4c3b00['length']<=0x1)return![];const _0x35c37c=[];for(const _0x256122 of _0x4c3b00){const _0xea179=_0x5a7839['dyare'](readFileSync,_0x256122),_0x33c132=parseWebm(_0xea179);if(!_0x33c132||_0x33c132[_0x826c0(0x157)][_0x826c0(0x158)]===0x0)return![];_0x35c37c[_0x826c0(0x165)](_0x33c132);}const _0x4ff050=_0x35c37c[0x0],_0x4431ea=rebuildHeaderWithoutDuration(_0x4ff050['header']),_0x16780d=[_0x4431ea];let _0x736edd=0x0;for(let _0x3aa6c5=0x0;_0x3aa6c5<_0x35c37c['length'];_0x3aa6c5++){const _0x3f17cf=_0x35c37c[_0x3aa6c5];for(const _0x5bddee of _0x3f17cf['clusters']){const _0x56947b=_0x5bddee[_0x826c0(0x18c)]+_0x736edd;_0x16780d['push'](_0x5a7839[_0x826c0(0x15c)](buildCluster,_0x56947b,_0x5bddee[_0x826c0(0x183)],_0x5bddee[_0x826c0(0x178)]));}const _0x3b223f=0x1e;_0x736edd+=_0x3f17cf['maxTimestampTicks']+_0x3b223f;}return _0x5a7839['JVcUj'](writeFileSync,_0x427267,Buffer['concat'](_0x16780d)),!![];}if(process[_0x1799f7(0x16b)][0x1]?.['endsWith']('stitchWebmFiles.ts')||process['argv'][0x1]?.['endsWith'](_0x1799f7(0x162))){const args=process[_0x1799f7(0x16b)][_0x1799f7(0x180)](0x2);args['length']<0x3&&(console['error']('Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>'),process['exit'](0x1));const output=args[args['length']-0x1],inputs=args[_0x1799f7(0x180)](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x1799f7(0x175)](_0x1799f7(0x172)+inputs[_0x1799f7(0x158)]+'\x20files\x20->\x20'+output):console[_0x1799f7(0x175)]('Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.');}
@@ -1 +1 @@
1
- const _0x25296a=_0x3d1f;(function(_0x26e5ac,_0xae011d){const _0x1cf300=_0x3d1f,_0x2c802f=_0x26e5ac();while(!![]){try{const _0x3f7af9=-parseInt(_0x1cf300(0xb7))/0x1*(-parseInt(_0x1cf300(0xe0))/0x2)+parseInt(_0x1cf300(0xcc))/0x3+-parseInt(_0x1cf300(0xea))/0x4*(-parseInt(_0x1cf300(0xaa))/0x5)+parseInt(_0x1cf300(0xd3))/0x6+-parseInt(_0x1cf300(0xb2))/0x7*(parseInt(_0x1cf300(0xaf))/0x8)+parseInt(_0x1cf300(0xce))/0x9*(parseInt(_0x1cf300(0xe6))/0xa)+parseInt(_0x1cf300(0xdd))/0xb*(-parseInt(_0x1cf300(0xbd))/0xc);if(_0x3f7af9===_0xae011d)break;else _0x2c802f['push'](_0x2c802f['shift']());}catch(_0x54e56d){_0x2c802f['push'](_0x2c802f['shift']());}}}(_0x5336,0xe4b02));import{randomUUID}from'crypto';function _0x5336(){const _0x539fbc=['UzwjX','13428pQgoCT','FeplS','eventType','EOaXX','.ranger','4850526PsETNW','now','error','version','flushAsync','/api/v1/mcp/cli-telemetry','command_start','WYULp','Unknown','length','110mYUSKA','phaseCounter','IVrgx','2246278WUJKuj','transport','durationMs','jVhru','checklistItemId','command','1510Jqpnfb','deviceId','evaluation','trackCommandError','4AXWTJP','constructor','nodeVersion','name','cliVersion','zTbXO','commandId','QaMlZ','nDSGw','isTty','EWTjH','set','\x20event(s)\x20to\x20','phase_error','362075AdHGJQ','trackCommandEnd','push','pNVWV','catch','54776PxwarF','trackPhaseError','buffer','1855selzyv','delete','browserSessionId','command_error','sendBatch','1pSDarv','errorMessage','phase','sendImmediate','qajPq','GITHUB_ACTIONS','1395780VoDiBA','split','XQIbh','platform','commandStartTime','buildEvent','TzNKz','kLXdO','message','kzmtr','phaseStartTimes','trackCommandStart','toISOString','success','splice','5055132oPelCs'];_0x5336=function(){return _0x539fbc;};return _0x5336();}function _0x3d1f(_0x594d38,_0x2e447d){_0x594d38=_0x594d38-0xa6;const _0x53366d=_0x5336();let _0x3d1fa1=_0x53366d[_0x594d38];return _0x3d1fa1;}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';let cachedDeviceId=null;function getDeviceId(){const _0x177b3c=_0x3d1f,_0x2ef2b3={'pNVWV':_0x177b3c(0xd2),'vBXJQ':'.session','WYULp':'utf-8','KmeCQ':function(_0x5c4fd4){return _0x5c4fd4();},'jVhru':function(_0x348a00,_0x2aa12f,_0x36b926){return _0x348a00(_0x2aa12f,_0x36b926);}};if(cachedDeviceId)return cachedDeviceId;try{const _0x30fd3a=join(homedir(),_0x2ef2b3[_0x177b3c(0xad)]),_0x3d140a=join(_0x30fd3a,_0x2ef2b3['vBXJQ']);if(existsSync(_0x3d140a)){cachedDeviceId=readFileSync(_0x3d140a,_0x2ef2b3[_0x177b3c(0xda)])['trim']();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=_0x2ef2b3['KmeCQ'](randomUUID),_0x2ef2b3['jVhru'](mkdirSync,_0x30fd3a,{'recursive':!![]}),_0x2ef2b3[_0x177b3c(0xe3)](writeFileSync,_0x3d140a,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=randomUUID(),cachedDeviceId;}}export class TelemetryCollector{['buffer']=[];[_0x25296a(0xf0)];[_0x25296a(0xe5)];['commandStartTime'];[_0x25296a(0xde)]=0x0;['phaseStartTimes']=new Map();['flushing']=null;['deviceId'];[_0x25296a(0xee)];[_0x25296a(0xec)];['platform'];['isTty'];['isCI'];['featureId'];['checklistItemId'];[_0x25296a(0xb4)];[_0x25296a(0xe1)];constructor(_0x72183b){const _0x3e93f9=_0x25296a,_0x2b3782={'FeplS':function(_0x490467){return _0x490467();}},_0x1b5a32='4|2|3|7|5|8|0|1|6'[_0x3e93f9(0xbe)]('|');let _0x285f12=0x0;while(!![]){switch(_0x1b5a32[_0x285f12++]){case'0':this['platform']=process[_0x3e93f9(0xc0)];continue;case'1':this[_0x3e93f9(0xf3)]=process['stdout']['isTTY']??![];continue;case'2':this[_0x3e93f9(0xe5)]=_0x72183b;continue;case'3':this[_0x3e93f9(0xc1)]=Date[_0x3e93f9(0xd4)]();continue;case'4':this[_0x3e93f9(0xf0)]=_0x2b3782[_0x3e93f9(0xcf)](randomUUID);continue;case'5':this[_0x3e93f9(0xee)]=getCurrentVersion();continue;case'6':this['isCI']=!!(process['env']['CI']||process['env'][_0x3e93f9(0xbc)]);continue;case'7':this[_0x3e93f9(0xe7)]=_0x2b3782['FeplS'](getDeviceId);continue;case'8':this['nodeVersion']=process[_0x3e93f9(0xd6)];continue;}break;}}['setContext'](_0x2e8110){const _0x3b4ee3=_0x25296a;if(_0x2e8110['featureId'])this['featureId']=_0x2e8110['featureId'];if(_0x2e8110['checklistItemId'])this[_0x3b4ee3(0xe4)]=_0x2e8110[_0x3b4ee3(0xe4)];if(_0x2e8110[_0x3b4ee3(0xb4)])this[_0x3b4ee3(0xb4)]=_0x2e8110['browserSessionId'];if(_0x2e8110['transport'])this[_0x3b4ee3(0xe1)]=_0x2e8110[_0x3b4ee3(0xe1)];}async['trackCommandStart'](_0x2b678c){const _0x5c7506=_0x25296a,_0x3c3b47=this[_0x5c7506(0xc2)]({'eventType':_0x5c7506(0xd9),'metadata':_0x2b678c});await this['sendImmediate'](_0x3c3b47);}async['trackCommandEnd'](_0x453378,_0x1f657e){const _0x224096=_0x25296a,_0x5f4e58=this['buildEvent']({'eventType':'command_end','outcome':_0x453378,'durationMs':Date['now']()-this['commandStartTime'],'metadata':_0x1f657e});await this[_0x224096(0xba)](_0x5f4e58),await this['flush']();}async[_0x25296a(0xe9)](_0x2d169b,_0xa46168){const _0x53ca97=_0x25296a,_0x287deb={'kzmtr':_0x53ca97(0xb5),'kLXdO':function(_0x7835a,_0x2e8457,_0x350019){return _0x7835a(_0x2e8457,_0x350019);},'ZmZhw':function(_0x4ddd74,_0x5a19f7){return _0x4ddd74 instanceof _0x5a19f7;},'UzwjX':'Unknown'},_0x116b74=this[_0x53ca97(0xc2)]({'eventType':_0x287deb[_0x53ca97(0xc6)],'errorMessage':_0x287deb[_0x53ca97(0xc4)](truncate,_0x287deb['ZmZhw'](_0x2d169b,Error)?_0x2d169b[_0x53ca97(0xc5)]:String(_0x2d169b),0x1f4),'errorType':_0x2d169b instanceof Error?_0x2d169b['constructor'][_0x53ca97(0xed)]:_0x287deb[_0x53ca97(0xcd)],'durationMs':Date[_0x53ca97(0xd4)]()-this[_0x53ca97(0xc1)],'metadata':_0xa46168});await this[_0x53ca97(0xba)](_0x116b74),await this['flush']();}['trackPhaseStart'](_0x26e119,_0x3f4f10){const _0xec03b=_0x25296a,_0x23798b={'QaMlZ':'phase_start'};this[_0xec03b(0xde)]++,this[_0xec03b(0xc7)][_0xec03b(0xa7)](_0x26e119,Date[_0xec03b(0xd4)]());const _0x53ff26=this['buildEvent']({'eventType':_0x23798b[_0xec03b(0xf1)],'phase':_0x26e119,'phaseIndex':this['phaseCounter'],'metadata':_0x3f4f10});this[_0xec03b(0xb1)][_0xec03b(0xac)](_0x53ff26);}['trackPhaseEnd'](_0xf9abff,_0x12ef11){const _0xc0ecf4=_0x25296a,_0x32d8d6={'IVrgx':function(_0x542026,_0x2333e9){return _0x542026-_0x2333e9;},'ntsnw':'phase_end','TzNKz':function(_0x36230a,_0x2243ad){return _0x36230a>=_0x2243ad;}},_0x40905c=this['phaseStartTimes']['get'](_0xf9abff),_0x5add31=_0x40905c?_0x32d8d6[_0xc0ecf4(0xdf)](Date[_0xc0ecf4(0xd4)](),_0x40905c):undefined;this['phaseStartTimes']['delete'](_0xf9abff);const _0x3b0f09=this['buildEvent']({'eventType':_0x32d8d6['ntsnw'],'phase':_0xf9abff,'durationMs':_0x5add31,'metadata':_0x12ef11});this[_0xc0ecf4(0xb1)]['push'](_0x3b0f09),_0x32d8d6[_0xc0ecf4(0xc3)](this[_0xc0ecf4(0xb1)][_0xc0ecf4(0xdc)],0xa)&&this['flushAsync']();}async[_0x25296a(0xb0)](_0xba9429,_0x83bfa5,_0x3a6fb1){const _0x5df765=_0x25296a,_0x21640d={'pcWJo':function(_0x53f745,_0x4fd4f2){return _0x53f745-_0x4fd4f2;},'XQIbh':_0x5df765(0xa9),'VmBuD':_0x5df765(0xdb)},_0x499c1b=this[_0x5df765(0xc7)]['get'](_0xba9429),_0x442171=_0x499c1b?_0x21640d['pcWJo'](Date[_0x5df765(0xd4)](),_0x499c1b):undefined;this['phaseStartTimes'][_0x5df765(0xb3)](_0xba9429);const _0x4da460=this[_0x5df765(0xc2)]({'eventType':_0x21640d[_0x5df765(0xbf)],'phase':_0xba9429,'durationMs':_0x442171,'errorMessage':truncate(_0x83bfa5 instanceof Error?_0x83bfa5[_0x5df765(0xc5)]:String(_0x83bfa5),0x1f4),'errorType':_0x83bfa5 instanceof Error?_0x83bfa5[_0x5df765(0xeb)]['name']:_0x21640d['VmBuD'],'metadata':_0x3a6fb1});await this['sendImmediate'](_0x4da460);}async['flush'](){const _0x267b13=_0x25296a;if(this[_0x267b13(0xb1)][_0x267b13(0xdc)]===0x0)return;const _0x6ed448=this[_0x267b13(0xb1)][_0x267b13(0xcb)](0x0);try{await this[_0x267b13(0xb6)](_0x6ed448);}catch{}}['buildEvent'](_0x4b07b7){const _0x417e78=_0x25296a;return{'eventType':_0x4b07b7[_0x417e78(0xd0)],'command':this[_0x417e78(0xe5)],'commandId':this[_0x417e78(0xf0)],'deviceId':this['deviceId'],'timestamp':new Date()[_0x417e78(0xc9)](),'durationMs':_0x4b07b7[_0x417e78(0xe2)],'phase':_0x4b07b7[_0x417e78(0xb9)],'phaseIndex':_0x4b07b7['phaseIndex'],'outcome':_0x4b07b7['outcome'],'errorMessage':_0x4b07b7[_0x417e78(0xb8)],'errorType':_0x4b07b7['errorType'],'featureId':this['featureId'],'checklistItemId':this['checklistItemId'],'browserSessionId':this[_0x417e78(0xb4)],'transport':this[_0x417e78(0xe1)],'evaluation':_0x4b07b7[_0x417e78(0xe8)],'cliVersion':this['cliVersion'],'nodeVersion':this['nodeVersion'],'platform':this[_0x417e78(0xc0)],'cwd':process['cwd'](),'isTty':this['isTty'],'isCI':this['isCI'],'metadata':_0x4b07b7['metadata']};}async['sendImmediate'](_0x53cc4e){try{await this['sendBatch']([_0x53cc4e]);}catch{}}[_0x25296a(0xd7)](){if(this['flushing'])return;this['flushing']=this['flush']()['finally'](()=>{this['flushing']=null;});}async['sendBatch'](_0x2735d8){const _0x5aed02=_0x25296a,_0xa72105={'zTbXO':function(_0x2d1b2c){return _0x2d1b2c();},'EWTjH':'Authorization','EOaXX':function(_0x4b4def,_0x8c6001,_0x28f277){return _0x4b4def(_0x8c6001,_0x28f277);},'qajPq':'POST'},_0x18104d=await getToken()[_0x5aed02(0xae)](()=>null),_0xf7d35e=_0xa72105[_0x5aed02(0xef)](getApiBaseUrl),_0x12143d={'Content-Type':'application/json'};_0x18104d&&(_0x12143d[_0xa72105[_0x5aed02(0xa6)]]='Bearer\x20'+_0x18104d);const _0x53bb21={'events':_0x2735d8};process['env']['DEBUG']&&console[_0x5aed02(0xd5)]('[telemetry]\x20Sending\x20'+_0x2735d8['length']+_0x5aed02(0xa8)+_0xf7d35e+_0x5aed02(0xd8));const _0x2d6b49=new AbortController(),_0x485b4d=_0xa72105[_0x5aed02(0xd1)](setTimeout,()=>_0x2d6b49['abort'](),0x1388);try{await fetch(_0xf7d35e+_0x5aed02(0xd8),{'method':_0xa72105[_0x5aed02(0xbb)],'headers':_0x12143d,'body':JSON['stringify'](_0x53bb21),'signal':_0x2d6b49['signal']});}finally{clearTimeout(_0x485b4d);}}}let currentCollector=null;export function createTelemetryCollector(_0x4f934f){return currentCollector=new TelemetryCollector(_0x4f934f),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0x219ef4,_0x41692b,_0x43d666){const _0x4fd111=_0x25296a,_0x2ef534={'nDSGw':function(_0xe929e6,_0x1925d8){return _0xe929e6(_0x1925d8);},'fUQej':_0x4fd111(0xca)},_0x4c63f6=createTelemetryCollector(_0x219ef4);await _0x4c63f6[_0x4fd111(0xc8)](_0x43d666);try{const _0x109562=await _0x2ef534[_0x4fd111(0xf2)](_0x41692b,_0x4c63f6);return await _0x4c63f6[_0x4fd111(0xab)](_0x2ef534['fUQej']),_0x109562;}catch(_0x453d44){await _0x4c63f6['trackCommandError'](_0x453d44);throw _0x453d44;}finally{await _0x4c63f6['flush']();}}function truncate(_0x818372,_0xa4e3cb){return _0x818372['length']>_0xa4e3cb?_0x818372['slice'](0x0,_0xa4e3cb)+'...':_0x818372;}
1
+ const _0x2117de=_0x16ef;(function(_0x309964,_0x1d1e4a){const _0xcd0676=_0x16ef,_0x393817=_0x309964();while(!![]){try{const _0x2fb183=-parseInt(_0xcd0676(0x15d))/0x1*(-parseInt(_0xcd0676(0x156))/0x2)+-parseInt(_0xcd0676(0x12f))/0x3*(parseInt(_0xcd0676(0x137))/0x4)+-parseInt(_0xcd0676(0x147))/0x5*(-parseInt(_0xcd0676(0x130))/0x6)+parseInt(_0xcd0676(0x164))/0x7+-parseInt(_0xcd0676(0x163))/0x8+parseInt(_0xcd0676(0x158))/0x9+parseInt(_0xcd0676(0x16a))/0xa*(-parseInt(_0xcd0676(0x14e))/0xb);if(_0x2fb183===_0x1d1e4a)break;else _0x393817['push'](_0x393817['shift']());}catch(_0x1ca22b){_0x393817['push'](_0x393817['shift']());}}}(_0x3c30,0x4be2b));import{randomUUID}from'crypto';import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';function _0x16ef(_0x32b345,_0x11f45e){_0x32b345=_0x32b345-0x121;const _0x3c3041=_0x3c30();let _0x16ef48=_0x3c3041[_0x32b345];return _0x16ef48;}import{join}from'path';function _0x3c30(){const _0x283d47=['stringify','.session','FQwTQ','484945sNCRUY','isTty','deviceId','platform','yQLgr','name','browserSessionId','11gZcbJC','phaseIndex','error','version','buildEvent','isTTY','slice','zoGqW','1184786cnJMdg','trackCommandEnd','3319965Sahtez','\x20event(s)\x20to\x20','phase_start','toISOString','flushAsync','1OZhkFb','phaseCounter','flushing','command','vgOWu','LfNdd','525584BdPgqt','2597028vMOTlK','sendImmediate','trackPhaseError','checklistItemId','stdout','featureId','9580190KbVExL','phase_error','POST','delete','trackCommandStart','setContext','Unknown','efiuA','signal','DEBUG','trackPhaseStart','push','buffer','length','NBkIM','commandStartTime','now','TIler','171ZuTfTA','18zUHCTI','message','env','trackCommandError','sendBatch','nodeVersion','CEVdU','20260bCGCYI','flush','success','command_error','commandId','evaluation','...','cliVersion','yIiWU','dQWIb','phaseStartTimes','lNIIB','outcome'];_0x3c30=function(){return _0x283d47;};return _0x3c30();}import{homedir}from'os';import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{getCurrentVersion}from'./version.js';let cachedDeviceId=null;function getDeviceId(){const _0x10b0f9=_0x16ef,_0x4154bf={'QLPHm':'.ranger','dQWIb':function(_0xf215b0,_0x4a03c6,_0x119734){return _0xf215b0(_0x4a03c6,_0x119734);},'yIiWU':_0x10b0f9(0x145),'zoGqW':function(_0xe54f8b,_0x325cfb){return _0xe54f8b(_0x325cfb);},'FQwTQ':function(_0x33fb72){return _0x33fb72();}};if(cachedDeviceId)return cachedDeviceId;try{const _0x53a113=join(homedir(),_0x4154bf['QLPHm']),_0x2dbec5=_0x4154bf[_0x10b0f9(0x140)](join,_0x53a113,_0x4154bf[_0x10b0f9(0x13f)]);if(_0x4154bf[_0x10b0f9(0x155)](existsSync,_0x2dbec5)){cachedDeviceId=_0x4154bf['dQWIb'](readFileSync,_0x2dbec5,'utf-8')['trim']();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=_0x4154bf[_0x10b0f9(0x146)](randomUUID),_0x4154bf['dQWIb'](mkdirSync,_0x53a113,{'recursive':!![]}),writeFileSync(_0x2dbec5,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=_0x4154bf[_0x10b0f9(0x146)](randomUUID),cachedDeviceId;}}export class TelemetryCollector{['buffer']=[];[_0x2117de(0x13b)];['command'];['commandStartTime'];['phaseCounter']=0x0;[_0x2117de(0x141)]=new Map();[_0x2117de(0x15f)]=null;[_0x2117de(0x149)];['cliVersion'];[_0x2117de(0x135)];[_0x2117de(0x14a)];['isTty'];['isCI'];[_0x2117de(0x169)];[_0x2117de(0x167)];['browserSessionId'];['transport'];constructor(_0xccb4ea){const _0x5a40d4=_0x2117de,_0x5058aa={'RwatA':function(_0x13ffef){return _0x13ffef();},'cAjYm':function(_0x3ca412){return _0x3ca412();}};this['commandId']=_0x5058aa['RwatA'](randomUUID),this['command']=_0xccb4ea,this['commandStartTime']=Date['now'](),this[_0x5a40d4(0x149)]=getDeviceId(),this[_0x5a40d4(0x13e)]=_0x5058aa['cAjYm'](getCurrentVersion),this[_0x5a40d4(0x135)]=process[_0x5a40d4(0x151)],this['platform']=process[_0x5a40d4(0x14a)],this[_0x5a40d4(0x148)]=process[_0x5a40d4(0x168)][_0x5a40d4(0x153)]??![],this['isCI']=!!(process[_0x5a40d4(0x132)]['CI']||process[_0x5a40d4(0x132)]['GITHUB_ACTIONS']);}[_0x2117de(0x122)](_0x4623ec){const _0x420b30=_0x2117de;if(_0x4623ec[_0x420b30(0x169)])this[_0x420b30(0x169)]=_0x4623ec[_0x420b30(0x169)];if(_0x4623ec[_0x420b30(0x167)])this[_0x420b30(0x167)]=_0x4623ec['checklistItemId'];if(_0x4623ec['browserSessionId'])this['browserSessionId']=_0x4623ec[_0x420b30(0x14d)];if(_0x4623ec['transport'])this['transport']=_0x4623ec['transport'];}async[_0x2117de(0x121)](_0x5961ea){const _0x25b219={'SeuCg':'command_start'},_0x5545f8=this['buildEvent']({'eventType':_0x25b219['SeuCg'],'metadata':_0x5961ea});await this['sendImmediate'](_0x5545f8);}async[_0x2117de(0x157)](_0x3e5c55,_0x23d532){const _0x1c682=_0x2117de,_0x18fc85={'lNIIB':function(_0x394e30,_0x187a1c){return _0x394e30-_0x187a1c;}},_0x710e18=this['buildEvent']({'eventType':'command_end','outcome':_0x3e5c55,'durationMs':_0x18fc85[_0x1c682(0x142)](Date['now'](),this['commandStartTime']),'metadata':_0x23d532});await this[_0x1c682(0x165)](_0x710e18),await this['flush']();}async['trackCommandError'](_0x16e461,_0x20ef04){const _0x47a2cf=_0x2117de,_0x3bd8e4={'TIler':_0x47a2cf(0x13a),'YhfxS':function(_0x4d6837,_0x578a65,_0x589183){return _0x4d6837(_0x578a65,_0x589183);},'CEVdU':function(_0x2166c1,_0x228ef9){return _0x2166c1 instanceof _0x228ef9;},'QVdqo':_0x47a2cf(0x123)},_0x4f44fb=this[_0x47a2cf(0x152)]({'eventType':_0x3bd8e4[_0x47a2cf(0x12e)],'errorMessage':_0x3bd8e4['YhfxS'](truncate,_0x3bd8e4[_0x47a2cf(0x136)](_0x16e461,Error)?_0x16e461['message']:String(_0x16e461),0x1f4),'errorType':_0x16e461 instanceof Error?_0x16e461['constructor']['name']:_0x3bd8e4['QVdqo'],'durationMs':Date[_0x47a2cf(0x12d)]()-this[_0x47a2cf(0x12c)],'metadata':_0x20ef04});await this[_0x47a2cf(0x165)](_0x4f44fb),await this[_0x47a2cf(0x138)]();}[_0x2117de(0x127)](_0x321f5a,_0x5ad7c7){const _0x4f323e=_0x2117de;this[_0x4f323e(0x15e)]++,this['phaseStartTimes']['set'](_0x321f5a,Date['now']());const _0x41a369=this[_0x4f323e(0x152)]({'eventType':_0x4f323e(0x15a),'phase':_0x321f5a,'phaseIndex':this[_0x4f323e(0x15e)],'metadata':_0x5ad7c7});this[_0x4f323e(0x129)][_0x4f323e(0x128)](_0x41a369);}['trackPhaseEnd'](_0xda255e,_0x1812da){const _0x12858f=_0x2117de,_0x419925={'yQLgr':function(_0x41707c,_0x32a0b1){return _0x41707c>=_0x32a0b1;}},_0x11ff5e=this[_0x12858f(0x141)]['get'](_0xda255e),_0x343d43=_0x11ff5e?Date[_0x12858f(0x12d)]()-_0x11ff5e:undefined;this['phaseStartTimes']['delete'](_0xda255e);const _0x14ca6e=this['buildEvent']({'eventType':'phase_end','phase':_0xda255e,'durationMs':_0x343d43,'metadata':_0x1812da});this[_0x12858f(0x129)][_0x12858f(0x128)](_0x14ca6e),_0x419925[_0x12858f(0x14b)](this[_0x12858f(0x129)][_0x12858f(0x12a)],0xa)&&this[_0x12858f(0x15c)]();}async[_0x2117de(0x166)](_0x5c3e93,_0x4a8e6d,_0x3903ca){const _0x4d2c4e=_0x2117de,_0x4f7b79={'NBkIM':function(_0xee5ac,_0x438842,_0x1c2f19){return _0xee5ac(_0x438842,_0x1c2f19);}},_0x2d606a=this[_0x4d2c4e(0x141)]['get'](_0x5c3e93),_0x4087d5=_0x2d606a?Date[_0x4d2c4e(0x12d)]()-_0x2d606a:undefined;this[_0x4d2c4e(0x141)][_0x4d2c4e(0x16d)](_0x5c3e93);const _0x188853=this['buildEvent']({'eventType':_0x4d2c4e(0x16b),'phase':_0x5c3e93,'durationMs':_0x4087d5,'errorMessage':_0x4f7b79[_0x4d2c4e(0x12b)](truncate,_0x4a8e6d instanceof Error?_0x4a8e6d[_0x4d2c4e(0x131)]:String(_0x4a8e6d),0x1f4),'errorType':_0x4a8e6d instanceof Error?_0x4a8e6d['constructor'][_0x4d2c4e(0x14c)]:_0x4d2c4e(0x123),'metadata':_0x3903ca});await this['sendImmediate'](_0x188853);}async[_0x2117de(0x138)](){const _0x1ac307=_0x2117de;if(this['buffer']['length']===0x0)return;const _0x16ad97=this['buffer']['splice'](0x0);try{await this[_0x1ac307(0x134)](_0x16ad97);}catch{}}['buildEvent'](_0x2dd46a){const _0x35fac8=_0x2117de;return{'eventType':_0x2dd46a['eventType'],'command':this[_0x35fac8(0x160)],'commandId':this['commandId'],'deviceId':this['deviceId'],'timestamp':new Date()[_0x35fac8(0x15b)](),'durationMs':_0x2dd46a['durationMs'],'phase':_0x2dd46a['phase'],'phaseIndex':_0x2dd46a[_0x35fac8(0x14f)],'outcome':_0x2dd46a[_0x35fac8(0x143)],'errorMessage':_0x2dd46a['errorMessage'],'errorType':_0x2dd46a['errorType'],'featureId':this[_0x35fac8(0x169)],'checklistItemId':this['checklistItemId'],'browserSessionId':this[_0x35fac8(0x14d)],'transport':this['transport'],'evaluation':_0x2dd46a[_0x35fac8(0x13c)],'cliVersion':this[_0x35fac8(0x13e)],'nodeVersion':this[_0x35fac8(0x135)],'platform':this['platform'],'cwd':process['cwd'](),'isTty':this['isTty'],'isCI':this['isCI'],'metadata':_0x2dd46a['metadata']};}async[_0x2117de(0x165)](_0x101e31){const _0x4e036f=_0x2117de;try{await this[_0x4e036f(0x134)]([_0x101e31]);}catch{}}['flushAsync'](){const _0x55edc6=_0x2117de;if(this[_0x55edc6(0x15f)])return;this['flushing']=this[_0x55edc6(0x138)]()['finally'](()=>{const _0x4bab69=_0x55edc6;this[_0x4bab69(0x15f)]=null;});}async['sendBatch'](_0x57924c){const _0x2e2ddc=_0x2117de,_0x2f81fa={'efiuA':function(_0x1f3779){return _0x1f3779();},'kpstc':function(_0x3b3597,_0x4adf64,_0x5a3968){return _0x3b3597(_0x4adf64,_0x5a3968);},'vgOWu':_0x2e2ddc(0x16c)},_0x396d0c=await getToken()['catch'](()=>null),_0x49b55f=_0x2f81fa[_0x2e2ddc(0x124)](getApiBaseUrl),_0x277880={'Content-Type':'application/json'};_0x396d0c&&(_0x277880['Authorization']='Bearer\x20'+_0x396d0c);const _0x4a9ba6={'events':_0x57924c};process['env'][_0x2e2ddc(0x126)]&&console[_0x2e2ddc(0x150)]('[telemetry]\x20Sending\x20'+_0x57924c['length']+_0x2e2ddc(0x159)+_0x49b55f+'/api/v1/mcp/cli-telemetry');const _0x288d80=new AbortController(),_0x3accaa=setTimeout(()=>_0x288d80['abort'](),0x1388);try{await _0x2f81fa['kpstc'](fetch,_0x49b55f+'/api/v1/mcp/cli-telemetry',{'method':_0x2f81fa[_0x2e2ddc(0x161)],'headers':_0x277880,'body':JSON[_0x2e2ddc(0x144)](_0x4a9ba6),'signal':_0x288d80[_0x2e2ddc(0x125)]});}finally{clearTimeout(_0x3accaa);}}}let currentCollector=null;export function createTelemetryCollector(_0x46761f){return currentCollector=new TelemetryCollector(_0x46761f),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0x576d16,_0x5c0112,_0x5186d8){const _0x3cbab9=_0x2117de,_0x1fe141={'ZuWaM':function(_0x5c5359,_0x15674c){return _0x5c5359(_0x15674c);}},_0x4d46be=createTelemetryCollector(_0x576d16);await _0x4d46be['trackCommandStart'](_0x5186d8);try{const _0x229b53=await _0x1fe141['ZuWaM'](_0x5c0112,_0x4d46be);return await _0x4d46be[_0x3cbab9(0x157)](_0x3cbab9(0x139)),_0x229b53;}catch(_0xc3c7c0){await _0x4d46be[_0x3cbab9(0x133)](_0xc3c7c0);throw _0xc3c7c0;}finally{await _0x4d46be['flush']();}}function truncate(_0xaf1cfa,_0x3f201d){const _0x1dfcc0=_0x2117de,_0x45e71a={'LfNdd':_0x1dfcc0(0x13d)};return _0xaf1cfa[_0x1dfcc0(0x12a)]>_0x3f201d?_0xaf1cfa[_0x1dfcc0(0x154)](0x0,_0x3f201d)+_0x45e71a[_0x1dfcc0(0x162)]:_0xaf1cfa;}
@@ -1 +1 @@
1
- (function(_0xb937a5,_0x1639be){const _0x1a5ece=_0x3aae,_0x50285c=_0xb937a5();while(!![]){try{const _0x2479a9=parseInt(_0x1a5ece(0x120))/0x1+parseInt(_0x1a5ece(0x11d))/0x2+-parseInt(_0x1a5ece(0x121))/0x3*(-parseInt(_0x1a5ece(0x123))/0x4)+parseInt(_0x1a5ece(0x119))/0x5*(-parseInt(_0x1a5ece(0x115))/0x6)+parseInt(_0x1a5ece(0x11b))/0x7+-parseInt(_0x1a5ece(0x11a))/0x8*(parseInt(_0x1a5ece(0x114))/0x9)+-parseInt(_0x1a5ece(0x122))/0xa*(parseInt(_0x1a5ece(0x11f))/0xb);if(_0x2479a9===_0x1639be)break;else _0x50285c['push'](_0x50285c['shift']());}catch(_0xb948e2){_0x50285c['push'](_0x50285c['shift']());}}}(_0xb6e3,0xd83c7));import{getApiBaseUrl}from'./environment.js';import{getRefreshToken,storeToken,storeRefreshToken}from'./keychain.js';export async function refreshCliToken(){const _0x2d1159={'zxcxf':function(_0x1a4b66){return _0x1a4b66();}},_0x43a239=await _0x2d1159['zxcxf'](getRefreshToken);if(!_0x43a239)return null;const _0x3c193b=await tryPartnerRefresh(_0x43a239);if(_0x3c193b)return _0x3c193b;return tryWorkosRefresh(_0x43a239);}export async function refreshPartnerCliToken(_0x242d1,_0x45663c={}){const _0x47a284=_0x3aae,_0x4af51a={'UvgRJ':function(_0x419ea3,_0x1b7501){return _0x419ea3(_0x1b7501);}},_0x2b1f1e=await _0x4af51a['UvgRJ'](tryPartnerRefresh,_0x242d1);return _0x2b1f1e&&_0x45663c[_0x47a284(0x124)]&&await storeRefreshToken(_0x242d1),_0x2b1f1e;}async function tryPartnerRefresh(_0x3fb1bb){const _0x2dce96=_0x3aae,_0x5779fe={'AkSmn':'POST','MRqlG':_0x2dce96(0x126),'aFcqm':function(_0x368296,_0x46e658){return _0x368296(_0x46e658);}},_0x4d7619=getApiBaseUrl();try{const _0x347c3b=await fetch(_0x4d7619+'/cli-auth/partner-refresh',{'method':_0x5779fe[_0x2dce96(0x125)],'headers':{'Content-Type':_0x5779fe['MRqlG']},'body':JSON['stringify']({'refreshToken':_0x3fb1bb}),'signal':AbortSignal[_0x2dce96(0x118)](0x2710)});if(!_0x347c3b['ok'])return null;const _0x504596=await _0x347c3b['json']();return await _0x5779fe['aFcqm'](storeToken,_0x504596[_0x2dce96(0x11c)]),_0x504596['token'];}catch{return null;}}async function tryWorkosRefresh(_0x503429){const _0x325043=_0x3aae,_0x26d33d={'SnZUe':function(_0x2f259f,_0x52b8d5,_0x1b680c){return _0x2f259f(_0x52b8d5,_0x1b680c);},'Mlvjk':_0x325043(0x126),'PWxlP':function(_0x36bce9,_0x57eafd){return _0x36bce9(_0x57eafd);},'RwhLE':function(_0x2c2f87,_0x3cc3a1){return _0x2c2f87(_0x3cc3a1);}},_0x4a8317=getApiBaseUrl();try{const _0x84d9b7=await _0x26d33d['SnZUe'](fetch,_0x4a8317+_0x325043(0x116),{'method':_0x325043(0x117),'headers':{'Content-Type':_0x26d33d[_0x325043(0x113)]},'body':JSON['stringify']({'refreshToken':_0x503429}),'signal':AbortSignal[_0x325043(0x118)](0x2710)});if(!_0x84d9b7['ok'])return null;const _0x3be100=await _0x84d9b7[_0x325043(0x11e)]();return await _0x26d33d['PWxlP'](storeToken,_0x3be100['token']),await _0x26d33d['RwhLE'](storeRefreshToken,_0x3be100['refreshToken']),_0x3be100['token'];}catch{return null;}}function _0x3aae(_0x4595bb,_0x100903){_0x4595bb=_0x4595bb-0x113;const _0xb6e35d=_0xb6e3();let _0x3aae18=_0xb6e35d[_0x4595bb];return _0x3aae18;}function _0xb6e3(){const _0xf61bbb=['application/json','Mlvjk','14160591mbmTEC','7806JTwbbx','/cli-auth/refresh','POST','timeout','1695PEEjgK','8kWMCGh','1242234hToNHy','token','2334062mLKrsB','json','5728514MOXaUO','1666326ocFVBQ','90MPDgVn','20UXYZys','124116HZVCjU','persistRefreshToken','AkSmn'];_0xb6e3=function(){return _0xf61bbb;};return _0xb6e3();}
1
+ (function(_0x59cdc2,_0x210ac6){const _0x325393=_0x1b03,_0x311174=_0x59cdc2();while(!![]){try{const _0x4ef9a2=parseInt(_0x325393(0x129))/0x1+-parseInt(_0x325393(0x12a))/0x2*(parseInt(_0x325393(0x136))/0x3)+-parseInt(_0x325393(0x131))/0x4*(-parseInt(_0x325393(0x130))/0x5)+parseInt(_0x325393(0x137))/0x6*(-parseInt(_0x325393(0x138))/0x7)+-parseInt(_0x325393(0x127))/0x8*(-parseInt(_0x325393(0x124))/0x9)+parseInt(_0x325393(0x132))/0xa*(parseInt(_0x325393(0x133))/0xb)+-parseInt(_0x325393(0x135))/0xc*(parseInt(_0x325393(0x128))/0xd);if(_0x4ef9a2===_0x210ac6)break;else _0x311174['push'](_0x311174['shift']());}catch(_0x4d8f84){_0x311174['push'](_0x311174['shift']());}}}(_0xc298,0x25074));import{getApiBaseUrl}from'./environment.js';import{getRefreshToken,storeToken,storeRefreshToken}from'./keychain.js';function _0xc298(){const _0x3c653a=['stringify','152XPmcNT','26fDFpHM','278970iqsfLi','165192LuBhjb','timeout','token','application/json','AxtWb','ssSNh','1214870tniUxX','4whXijj','10DfOiIv','6589ZqNqmz','qZdIS','1427724UHSvgA','6ZprlUr','152364BDIqgm','7ujuuco','sOnnZ','refreshToken','27315vTbTxQ','/cli-auth/partner-refresh'];_0xc298=function(){return _0x3c653a;};return _0xc298();}export async function refreshCliToken(){const _0x174ec8=_0x1b03,_0x4fcc0e={'ssSNh':function(_0x1593c5,_0x285a53){return _0x1593c5(_0x285a53);},'iCuJA':function(_0x18af06,_0x2c5aca){return _0x18af06(_0x2c5aca);}},_0x4ff358=await getRefreshToken();if(!_0x4ff358)return null;const _0x225d8b=await _0x4fcc0e[_0x174ec8(0x12f)](tryPartnerRefresh,_0x4ff358);if(_0x225d8b)return _0x225d8b;return _0x4fcc0e['iCuJA'](tryWorkosRefresh,_0x4ff358);}function _0x1b03(_0x4403c3,_0x531929){_0x4403c3=_0x4403c3-0x123;const _0xc2983=_0xc298();let _0x1b0387=_0xc2983[_0x4403c3];return _0x1b0387;}export async function refreshPartnerCliToken(_0x5ba91f,_0x4cf3dd={}){const _0x3e3ba1=await tryPartnerRefresh(_0x5ba91f);return _0x3e3ba1&&_0x4cf3dd['persistRefreshToken']&&await storeRefreshToken(_0x5ba91f),_0x3e3ba1;}async function tryPartnerRefresh(_0x142a20){const _0x499135=_0x1b03,_0x6f75ee={'FbnbL':function(_0x3c08e7,_0x2563c6,_0x421f84){return _0x3c08e7(_0x2563c6,_0x421f84);},'WSWbH':'POST','AxtWb':function(_0x2da270,_0x3e243f){return _0x2da270(_0x3e243f);}},_0x2a6e54=getApiBaseUrl();try{const _0x3373b3=await _0x6f75ee['FbnbL'](fetch,_0x2a6e54+_0x499135(0x125),{'method':_0x6f75ee['WSWbH'],'headers':{'Content-Type':_0x499135(0x12d)},'body':JSON[_0x499135(0x126)]({'refreshToken':_0x142a20}),'signal':AbortSignal['timeout'](0x2710)});if(!_0x3373b3['ok'])return null;const _0x4dcc36=await _0x3373b3['json']();return await _0x6f75ee[_0x499135(0x12e)](storeToken,_0x4dcc36[_0x499135(0x12c)]),_0x4dcc36['token'];}catch{return null;}}async function tryWorkosRefresh(_0x11b0f6){const _0x3af9ea=_0x1b03,_0x58272b={'qZdIS':function(_0x3f1ead){return _0x3f1ead();},'sOnnZ':function(_0x163d72,_0x2a53b7,_0x3e819c){return _0x163d72(_0x2a53b7,_0x3e819c);},'WbdPy':function(_0x15677e,_0x128f75){return _0x15677e(_0x128f75);}},_0x4b28a5=_0x58272b[_0x3af9ea(0x134)](getApiBaseUrl);try{const _0x21c32f=await _0x58272b[_0x3af9ea(0x139)](fetch,_0x4b28a5+'/cli-auth/refresh',{'method':'POST','headers':{'Content-Type':'application/json'},'body':JSON[_0x3af9ea(0x126)]({'refreshToken':_0x11b0f6}),'signal':AbortSignal[_0x3af9ea(0x12b)](0x2710)});if(!_0x21c32f['ok'])return null;const _0x10fb6d=await _0x21c32f['json']();return await _0x58272b['WbdPy'](storeToken,_0x10fb6d[_0x3af9ea(0x12c)]),await _0x58272b['WbdPy'](storeRefreshToken,_0x10fb6d[_0x3af9ea(0x123)]),_0x10fb6d[_0x3af9ea(0x12c)];}catch{return null;}}