@ranger-testing/ranger-cli 2.5.4-alpha.a70fc60-4 → 2.5.4-alpha.a98f848-6

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 (80) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/mcpBootstrap.js +1 -1
  25. package/build/commands/migrateProfile.js +1 -1
  26. package/build/commands/setup/claude.js +1 -1
  27. package/build/commands/setup/opencode.js +1 -1
  28. package/build/commands/setupCi.js +1 -1
  29. package/build/commands/skillup.js +1 -1
  30. package/build/commands/start.js +1 -1
  31. package/build/commands/status.js +1 -1
  32. package/build/commands/update.js +1 -1
  33. package/build/commands/updateEnv.js +1 -1
  34. package/build/commands/useEnv.js +1 -1
  35. package/build/commands/utils/activeProfile.js +1 -1
  36. package/build/commands/utils/agentEnv.js +1 -1
  37. package/build/commands/utils/browserSessionsApi.js +1 -1
  38. package/build/commands/utils/claudeConfig.js +1 -1
  39. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  40. package/build/commands/utils/claudePlugin.js +1 -1
  41. package/build/commands/utils/cloudProfile.js +1 -1
  42. package/build/commands/utils/cloudProfileSession.js +1 -1
  43. package/build/commands/utils/crypto.js +1 -1
  44. package/build/commands/utils/desirePathLog.js +1 -1
  45. package/build/commands/utils/deviceAuth.js +1 -1
  46. package/build/commands/utils/environment.js +1 -1
  47. package/build/commands/utils/featureApi.js +1 -1
  48. package/build/commands/utils/fixWebmDuration.js +1 -1
  49. package/build/commands/utils/gitTracked.js +1 -1
  50. package/build/commands/utils/keychain.js +1 -1
  51. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  52. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  53. package/build/commands/utils/mcpImageBase64.js +1 -1
  54. package/build/commands/utils/model.js +1 -1
  55. package/build/commands/utils/opencodeConfig.js +1 -1
  56. package/build/commands/utils/playwrightCli.js +1 -1
  57. package/build/commands/utils/profileMessages.js +1 -1
  58. package/build/commands/utils/profileSetupBanner.js +1 -1
  59. package/build/commands/utils/projectsConfig.js +1 -1
  60. package/build/commands/utils/rangerConfig.js +1 -1
  61. package/build/commands/utils/rangerRoot.js +1 -1
  62. package/build/commands/utils/resolveProfileContext.js +1 -1
  63. package/build/commands/utils/resolveProfileUrl.js +1 -1
  64. package/build/commands/utils/retry.js +1 -1
  65. package/build/commands/utils/sessionCache.js +1 -1
  66. package/build/commands/utils/settings.js +1 -1
  67. package/build/commands/utils/skillContent.js +1 -1
  68. package/build/commands/utils/skills.js +1 -1
  69. package/build/commands/utils/stitchWebmFiles.js +1 -1
  70. package/build/commands/utils/telemetry.js +1 -1
  71. package/build/commands/utils/tokenRefresh.js +1 -1
  72. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  73. package/build/commands/utils/userApi.js +1 -1
  74. package/build/commands/utils/version.js +1 -1
  75. package/build/commands/verifyFeature.js +1 -1
  76. package/build/commands/verifyFeatureCli.js +1 -1
  77. package/build/skills/ranger/SKILL.md +17 -3
  78. package/build/skills/ranger/create.md +6 -0
  79. package/build/skills/ranger/verify.md +23 -3
  80. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x56f158,_0x189f31){const _0x25980b=_0x45b7,_0x1b3967=_0x56f158();while(!![]){try{const _0x10d60b=-parseInt(_0x25980b(0x90))/0x1*(parseInt(_0x25980b(0xa1))/0x2)+-parseInt(_0x25980b(0x92))/0x3+-parseInt(_0x25980b(0x9f))/0x4+parseInt(_0x25980b(0x93))/0x5*(parseInt(_0x25980b(0x9c))/0x6)+parseInt(_0x25980b(0xa0))/0x7*(-parseInt(_0x25980b(0x9e))/0x8)+-parseInt(_0x25980b(0x8b))/0x9*(-parseInt(_0x25980b(0x8e))/0xa)+parseInt(_0x25980b(0x95))/0xb*(parseInt(_0x25980b(0x8a))/0xc);if(_0x10d60b===_0x189f31)break;else _0x1b3967['push'](_0x1b3967['shift']());}catch(_0x3699d1){_0x1b3967['push'](_0x1b3967['shift']());}}}(_0x2444,0xf420c));function firstDefined(..._0x1d2131){const _0x333c0f=_0x45b7,_0x5d1445={'hYxOg':function(_0x29f9a5,_0x2ff9f2){return _0x29f9a5!==_0x2ff9f2;}};for(const _0x57e1fe of _0x1d2131){if(_0x57e1fe!==undefined&&_0x57e1fe!==null&&_0x5d1445[_0x333c0f(0x9d)](_0x57e1fe,''))return _0x57e1fe;}return undefined;}function normalizeAuthEnvironmentDomain(_0x5e1f25){if(!_0x5e1f25)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i['test'](_0x5e1f25))return _0x5e1f25;return'https://'+_0x5e1f25;}function _0x2444(){const _0x4dc027=['string','5438847EsnJQp','1127755hgcnUN','slice','11RhNnNY','xGlqA','KxyoD','envBaseUrl','localSettingsBaseUrl','startPath','cloudSettings','18VOawmN','hYxOg','1437496PcfnAq','6054632VFGBfb','35Eeiptu','172374ZOQThx','projectOverrides','59869416cpTPDt','27hqzpoJ','UtKPi','startsWith','1978210zgCyGr','RANGER_START_PATH','12tOSQZi'];_0x2444=function(){return _0x4dc027;};return _0x2444();}export function resolveBaseUrl(_0x507ec6){const _0x4b4ddd=_0x45b7,_0x459a2e={'wuYBr':function(_0x30a7fa,_0x55e85a,_0x4d8657,_0x5c0c6c,_0x86d6dd,_0x2dd15a,_0x366925){return _0x30a7fa(_0x55e85a,_0x4d8657,_0x5c0c6c,_0x86d6dd,_0x2dd15a,_0x366925);},'UtKPi':'string'},_0x2d91d4=_0x507ec6['projectOverrides']?.['baseUrl'];return _0x459a2e['wuYBr'](firstDefined,_0x507ec6['flagBaseUrl'],_0x507ec6[_0x4b4ddd(0x98)],_0x507ec6[_0x4b4ddd(0x99)],typeof _0x2d91d4===_0x459a2e[_0x4b4ddd(0x8c)]?_0x2d91d4:undefined,_0x507ec6[_0x4b4ddd(0x9b)]?.['baseUrl'],normalizeAuthEnvironmentDomain(_0x507ec6['authEnvironmentDomain']));}export function resolveStartPath(_0x5f2928){const _0x3a56e7=_0x45b7,_0x223737=_0x5f2928[_0x3a56e7(0x89)]?.[_0x3a56e7(0x9a)];return firstDefined(_0x5f2928['flagStartPath'],_0x5f2928['envStartPath'],typeof _0x223737===_0x3a56e7(0x91)?_0x223737:undefined,_0x5f2928[_0x3a56e7(0x9b)]?.[_0x3a56e7(0x9a)]);}export function joinBaseAndPath(_0x19e89f,_0x3809c7){const _0x16234f=_0x45b7,_0x1a0dc9={'xGlqA':function(_0x1d8a6d,_0x74e690){return _0x1d8a6d+_0x74e690;},'KxyoD':function(_0x1c98e4,_0x1080d4){return _0x1c98e4+_0x1080d4;}};if(!_0x19e89f)return undefined;if(!_0x3809c7)return _0x19e89f;const _0x27b749=_0x19e89f['endsWith']('/')?_0x19e89f[_0x16234f(0x94)](0x0,-0x1):_0x19e89f,_0x16b6a0=_0x3809c7[_0x16234f(0x8d)]('/')?_0x3809c7:_0x1a0dc9[_0x16234f(0x96)]('/',_0x3809c7);return _0x1a0dc9[_0x16234f(0x97)](_0x27b749,_0x16b6a0);}function _0x45b7(_0x3d7c1d,_0xdcfd55){_0x3d7c1d=_0x3d7c1d-0x89;const _0x2444c6=_0x2444();let _0x45b71b=_0x2444c6[_0x3d7c1d];return _0x45b71b;}export function resolveProfileUrl(_0x227467){const _0x593d1a=resolveBaseUrl(_0x227467),_0xa90daa=resolveStartPath(_0x227467);return{'baseUrl':_0x593d1a,'startPath':_0xa90daa,'url':joinBaseAndPath(_0x593d1a,_0xa90daa)};}export function readUrlEnvVars(_0xdfc388=process['env']){const _0x24550f=_0x45b7;return{'envBaseUrl':_0xdfc388['RANGER_BASE_URL'],'envStartPath':_0xdfc388[_0x24550f(0x8f)]};}
1
+ const _0x14e171=_0x14c6;function _0x34b0(){const _0x110df4=['18JOvGkv','6925368FldKoJ','startPath','localSettingsBaseUrl','1336987HEVrJJ','projectOverrides','KWHUZ','2dyeLQr','5462765dMJPBo','startsWith','flagStartPath','cloudSettings','3866590AQhGCf','slice','3103530dstNaY','116moiZOF','RANGER_BASE_URL','pLhLF','string','5MqAEGE','flagBaseUrl','65589YAIyIb','17410870QUCbiN','baseUrl','Bgshm','https://','env','endsWith'];_0x34b0=function(){return _0x110df4;};return _0x34b0();}(function(_0x4fdc6e,_0x5bc0ae){const _0x5103a8=_0x14c6,_0x105e25=_0x4fdc6e();while(!![]){try{const _0x5b8d1f=-parseInt(_0x5103a8(0x1db))/0x1*(parseInt(_0x5103a8(0x1de))/0x2)+parseInt(_0x5103a8(0x1d0))/0x3*(-parseInt(_0x5103a8(0x1e6))/0x4)+parseInt(_0x5103a8(0x1ea))/0x5*(parseInt(_0x5103a8(0x1e5))/0x6)+-parseInt(_0x5103a8(0x1e3))/0x7+parseInt(_0x5103a8(0x1d8))/0x8*(parseInt(_0x5103a8(0x1d7))/0x9)+parseInt(_0x5103a8(0x1d1))/0xa+-parseInt(_0x5103a8(0x1df))/0xb;if(_0x5b8d1f===_0x5bc0ae)break;else _0x105e25['push'](_0x105e25['shift']());}catch(_0x505429){_0x105e25['push'](_0x105e25['shift']());}}}(_0x34b0,0xecbd5));function firstDefined(..._0x4b63f7){const _0x2bc54c=_0x14c6,_0x6ec9b7={'pLhLF':function(_0x5e3852,_0x127d15){return _0x5e3852!==_0x127d15;}};for(const _0x28235a of _0x4b63f7){if(_0x6ec9b7[_0x2bc54c(0x1e8)](_0x28235a,undefined)&&_0x28235a!==null&&_0x6ec9b7[_0x2bc54c(0x1e8)](_0x28235a,''))return _0x28235a;}return undefined;}function normalizeAuthEnvironmentDomain(_0x5841c2){const _0x210ba0=_0x14c6;if(!_0x5841c2)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i['test'](_0x5841c2))return _0x5841c2;return _0x210ba0(0x1d4)+_0x5841c2;}export function resolveBaseUrl(_0x97d94c){const _0x30f81f=_0x14c6,_0x1cf6fa={'tfZSn':function(_0x23ba00,_0x20410c,_0x583a84,_0x3bd4cd,_0x4f00ba,_0x5a0fa5,_0x33cc10){return _0x23ba00(_0x20410c,_0x583a84,_0x3bd4cd,_0x4f00ba,_0x5a0fa5,_0x33cc10);},'KWHUZ':function(_0xc9b613,_0x38d180){return _0xc9b613===_0x38d180;},'GCuXv':function(_0x555425,_0x594cb0){return _0x555425(_0x594cb0);}},_0x2d9fa0=_0x97d94c[_0x30f81f(0x1dc)]?.['baseUrl'],_0x2171dd=_0x2d9fa0!==null;return _0x1cf6fa['tfZSn'](firstDefined,_0x97d94c[_0x30f81f(0x1cf)],_0x97d94c['envBaseUrl'],_0x97d94c[_0x30f81f(0x1da)],_0x1cf6fa[_0x30f81f(0x1dd)](typeof _0x2d9fa0,'string')?_0x2d9fa0:undefined,_0x2171dd?_0x97d94c[_0x30f81f(0x1e2)]?.[_0x30f81f(0x1d2)]:undefined,_0x2171dd?_0x1cf6fa['GCuXv'](normalizeAuthEnvironmentDomain,_0x97d94c['authEnvironmentDomain']):undefined);}export function resolveStartPath(_0x3c71fa){const _0x149b28=_0x14c6,_0x3b6dfd=_0x3c71fa[_0x149b28(0x1dc)]?.['startPath'],_0x47ea05=_0x3b6dfd!==null;return firstDefined(_0x3c71fa[_0x149b28(0x1e1)],_0x3c71fa['envStartPath'],typeof _0x3b6dfd===_0x149b28(0x1e9)?_0x3b6dfd:undefined,_0x47ea05?_0x3c71fa[_0x149b28(0x1e2)]?.[_0x149b28(0x1d9)]:undefined);}export function joinBaseAndPath(_0x547863,_0x46d39b){const _0x472501=_0x14c6,_0x4e1386={'Bgshm':function(_0xb41848,_0x53e5b9){return _0xb41848+_0x53e5b9;}};if(!_0x547863)return undefined;if(!_0x46d39b)return _0x547863;const _0x5a959d=_0x547863[_0x472501(0x1d6)]('/')?_0x547863[_0x472501(0x1e4)](0x0,-0x1):_0x547863,_0x41040b=_0x46d39b[_0x472501(0x1e0)]('/')?_0x46d39b:_0x4e1386[_0x472501(0x1d3)]('/',_0x46d39b);return _0x4e1386[_0x472501(0x1d3)](_0x5a959d,_0x41040b);}function _0x14c6(_0x45fe77,_0x9a3101){_0x45fe77=_0x45fe77-0x1cf;const _0x34b01d=_0x34b0();let _0x14c6af=_0x34b01d[_0x45fe77];return _0x14c6af;}export function resolveProfileUrl(_0x23343e){const _0xd75bf0={'zrQPI':function(_0x5c18f7,_0x21dfd9,_0x4ce780){return _0x5c18f7(_0x21dfd9,_0x4ce780);}},_0x566e57=resolveBaseUrl(_0x23343e),_0x429914=resolveStartPath(_0x23343e);return{'baseUrl':_0x566e57,'startPath':_0x429914,'url':_0xd75bf0['zrQPI'](joinBaseAndPath,_0x566e57,_0x429914)};}export function readUrlEnvVars(_0xb57ad9=process[_0x14e171(0x1d5)]){const _0x38797d=_0x14e171;return{'envBaseUrl':_0xb57ad9[_0x38797d(0x1e7)],'envStartPath':_0xb57ad9['RANGER_START_PATH']};}
@@ -1 +1 @@
1
- (function(_0x21fe29,_0x10e599){const _0x24bd4c=_0x1f18,_0x3157bf=_0x21fe29();while(!![]){try{const _0x45c535=parseInt(_0x24bd4c(0x1b8))/0x1*(parseInt(_0x24bd4c(0x1ba))/0x2)+parseInt(_0x24bd4c(0x1bd))/0x3+parseInt(_0x24bd4c(0x1b6))/0x4+-parseInt(_0x24bd4c(0x1b7))/0x5+parseInt(_0x24bd4c(0x1b3))/0x6*(parseInt(_0x24bd4c(0x1b4))/0x7)+-parseInt(_0x24bd4c(0x1b1))/0x8*(-parseInt(_0x24bd4c(0x1af))/0x9)+-parseInt(_0x24bd4c(0x1ad))/0xa*(parseInt(_0x24bd4c(0x1bb))/0xb);if(_0x45c535===_0x10e599)break;else _0x3157bf['push'](_0x3157bf['shift']());}catch(_0x338ebb){_0x3157bf['push'](_0x3157bf['shift']());}}}(_0x431f,0x75d86));function _0x431f(){const _0x1fad23=['5577366mjmuWL','7hdjybt','TcHjh','2073428MaBpHF','2756795zySuZR','3KOEeQH','label','59914KnvqtM','8190809wmboHq','OBTNA','396006bgkDpE','baseDelayMs','20LgBqZQ','ms...','6750sJpalY','maxRetries','9104mrXWvH','\x20failed\x20(attempt\x20'];_0x431f=function(){return _0x1fad23;};return _0x431f();}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x1f18(_0x50b05e,_0x28c6b0){_0x50b05e=_0x50b05e-0x1ad;const _0x431f91=_0x431f();let _0x1f18e5=_0x431f91[_0x50b05e];return _0x1f18e5;}export async function withRetry(_0x453206,_0x878ce8){const _0x1d8f34=_0x1f18,_0x58939a={'OBTNA':function(_0x2209af,_0x52c141){return _0x2209af<=_0x52c141;},'TcHjh':function(_0x1497c4,_0xa47254){return _0x1497c4 instanceof _0xa47254;},'urPPE':function(_0x201cc7,_0x1aebe6){return _0x201cc7<_0x1aebe6;},'xZdCq':function(_0x38177a,_0x3e2e38){return _0x38177a+_0x3e2e38;}},_0x484a0b=_0x878ce8?.[_0x1d8f34(0x1b0)]??DEFAULT_MAX_RETRIES,_0x4c3e9d=_0x878ce8?.[_0x1d8f34(0x1be)]??DEFAULT_BASE_DELAY_MS;let _0x5d6d69;for(let _0x3024f6=0x0;_0x58939a[_0x1d8f34(0x1bc)](_0x3024f6,_0x484a0b);_0x3024f6++){try{return await _0x453206();}catch(_0x115ad1){_0x5d6d69=_0x58939a[_0x1d8f34(0x1b5)](_0x115ad1,Error)?_0x115ad1:new Error(String(_0x115ad1));if(_0x58939a['urPPE'](_0x3024f6,_0x484a0b)){const _0x1a3b4a=_0x4c3e9d*Math['pow'](0x2,_0x3024f6);_0x878ce8?.['label']&&console['error'](_0x878ce8[_0x1d8f34(0x1b9)]+_0x1d8f34(0x1b2)+_0x58939a['xZdCq'](_0x3024f6,0x1)+'/'+(_0x484a0b+0x1)+'),\x20retrying\x20in\x20'+_0x1a3b4a+_0x1d8f34(0x1ae)),await new Promise(_0x50e60c=>setTimeout(_0x50e60c,_0x1a3b4a));}}}throw _0x5d6d69;}
1
+ function _0x4fa6(_0x19560,_0x1fbb3e){_0x19560=_0x19560-0xb8;const _0x2b49e6=_0x2b49();let _0x4fa6cc=_0x2b49e6[_0x19560];return _0x4fa6cc;}(function(_0x214055,_0x11a777){const _0x14bcbf=_0x4fa6,_0x425a56=_0x214055();while(!![]){try{const _0x1ab52b=parseInt(_0x14bcbf(0xc6))/0x1+-parseInt(_0x14bcbf(0xc1))/0x2+parseInt(_0x14bcbf(0xbb))/0x3+parseInt(_0x14bcbf(0xbd))/0x4+parseInt(_0x14bcbf(0xb9))/0x5+-parseInt(_0x14bcbf(0xc4))/0x6*(-parseInt(_0x14bcbf(0xba))/0x7)+-parseInt(_0x14bcbf(0xc2))/0x8*(parseInt(_0x14bcbf(0xbc))/0x9);if(_0x1ab52b===_0x11a777)break;else _0x425a56['push'](_0x425a56['shift']());}catch(_0x159c24){_0x425a56['push'](_0x425a56['shift']());}}}(_0x2b49,0xc39b0));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x1df877,_0x29ebe3){const _0x348e29=_0x4fa6,_0x23121e={'qwwNu':function(_0x4ba9c3,_0x4293f2){return _0x4ba9c3<=_0x4293f2;},'NmyyT':function(_0x370161,_0x23bdfc){return _0x370161 instanceof _0x23bdfc;},'CVqnZ':function(_0x30355e,_0x1f796){return _0x30355e*_0x1f796;},'FsBnX':function(_0x2be357,_0x26b6bf){return _0x2be357+_0x26b6bf;}},_0x284bc3=_0x29ebe3?.[_0x348e29(0xc5)]??DEFAULT_MAX_RETRIES,_0x55dd83=_0x29ebe3?.[_0x348e29(0xb8)]??DEFAULT_BASE_DELAY_MS;let _0x1fe999;for(let _0xc0f441=0x0;_0x23121e[_0x348e29(0xc7)](_0xc0f441,_0x284bc3);_0xc0f441++){try{return await _0x1df877();}catch(_0x50f783){_0x1fe999=_0x23121e['NmyyT'](_0x50f783,Error)?_0x50f783:new Error(String(_0x50f783));if(_0xc0f441<_0x284bc3){const _0x53df2c=_0x23121e['CVqnZ'](_0x55dd83,Math['pow'](0x2,_0xc0f441));_0x29ebe3?.[_0x348e29(0xc0)]&&console['error'](_0x29ebe3['label']+_0x348e29(0xc3)+_0x23121e['FsBnX'](_0xc0f441,0x1)+'/'+_0x23121e[_0x348e29(0xbf)](_0x284bc3,0x1)+_0x348e29(0xbe)+_0x53df2c+'ms...'),await new Promise(_0x48d94=>setTimeout(_0x48d94,_0x53df2c));}}}throw _0x1fe999;}function _0x2b49(){const _0x28030f=['4543bruDqD','3801600ghVnOA','9768501sYDXbO','4044316LWjFMW','),\x20retrying\x20in\x20','FsBnX','label','2238270UNHXUd','16rJHtth','\x20failed\x20(attempt\x20','5034pvcbpb','maxRetries','762128mFjEok','qwwNu','baseDelayMs','2530975cNWGjA'];_0x2b49=function(){return _0x28030f;};return _0x2b49();}
@@ -1 +1 @@
1
- const _0xe64401=_0x6942;(function(_0x293251,_0x2aee33){const _0x37a1e8=_0x6942,_0x8e8f80=_0x293251();while(!![]){try{const _0x4deb69=parseInt(_0x37a1e8(0xc9))/0x1+parseInt(_0x37a1e8(0xc4))/0x2+parseInt(_0x37a1e8(0x9b))/0x3+-parseInt(_0x37a1e8(0xa1))/0x4*(-parseInt(_0x37a1e8(0xaa))/0x5)+parseInt(_0x37a1e8(0xa9))/0x6*(parseInt(_0x37a1e8(0xbd))/0x7)+parseInt(_0x37a1e8(0xb3))/0x8+-parseInt(_0x37a1e8(0x9a))/0x9;if(_0x4deb69===_0x2aee33)break;else _0x8e8f80['push'](_0x8e8f80['shift']());}catch(_0x4363ca){_0x8e8f80['push'](_0x8e8f80['shift']());}}}(_0x47a8,0x34f87));import*as _0x5d2aa5 from'fs';import*as _0x384bb5 from'path';import*as _0x22a86d from'os';import{execSync}from'child_process';const CACHE_FILE=_0x384bb5[_0xe64401(0xaf)](_0x22a86d['homedir'](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x4244d5=_0xe64401,_0x472e64={'bMLgG':function(_0x425b68){return _0x425b68();}};try{if(_0x5d2aa5['existsSync'](CACHE_FILE)){const _0x5e7f5d=JSON[_0x4244d5(0xbf)](_0x5d2aa5['readFileSync'](CACHE_FILE,_0x4244d5(0xb9)));return{'version':0x3,'sessions':_0x5e7f5d[_0x4244d5(0x98)]||{},'branches':_0x5e7f5d['branches']||{},'lastEnabledSessionClearedAt':_0x5e7f5d['lastEnabledSessionClearedAt']};}}catch{}return _0x472e64['bMLgG'](createEmptyCache);}function saveCache(_0x276e41){const _0x19bac6=_0xe64401;try{const _0x27392a=_0x384bb5[_0x19bac6(0xc8)](CACHE_FILE);!_0x5d2aa5[_0x19bac6(0x9c)](_0x27392a)&&_0x5d2aa5['mkdirSync'](_0x27392a,{'recursive':!![]}),_0x5d2aa5[_0x19bac6(0xc5)](CACHE_FILE,JSON[_0x19bac6(0xa6)](_0x276e41,null,0x2));}catch{}}export function getCurrentBranch(){const _0x3eb0b3=_0xe64401,_0x3216cc={'fjTsD':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','eEWuV':_0x3eb0b3(0xb9),'PhVBR':'pipe'};try{const _0x1f85f4=execSync(_0x3216cc[_0x3eb0b3(0xb5)],{'encoding':_0x3216cc['eEWuV'],'stdio':[_0x3216cc[_0x3eb0b3(0xb7)],_0x3216cc[_0x3eb0b3(0xb7)],_0x3eb0b3(0xb6)]})[_0x3eb0b3(0xac)]();if(!_0x1f85f4||_0x1f85f4==='HEAD')return null;return _0x1f85f4;}catch{return null;}}export function enableBranch(_0x5aece7){const _0xf04021=loadCache();_0xf04021['branches'][_0x5aece7]=!![],saveCache(_0xf04021);}export function disableBranch(_0x24f9ba){const _0xdae885=_0xe64401,_0x27b259=loadCache();delete _0x27b259[_0xdae885(0xa3)][_0x24f9ba],saveCache(_0x27b259);}export function isBranchEnabled(_0xbc2ae){const _0x293af8=_0xe64401,_0x114e68={'LbaOo':function(_0x2996b3){return _0x2996b3();}},_0x4634a1=_0x114e68['LbaOo'](loadCache);return _0x4634a1[_0x293af8(0xa3)][_0xbc2ae]===!![];}function getOrCreateSession(_0x565b96,_0x407060){return!_0x565b96['sessions'][_0x407060]&&(_0x565b96['sessions'][_0x407060]={}),_0x565b96['sessions'][_0x407060];}export function enableSession(_0x5444b7){const _0x4e911e=_0xe64401,_0x56ff5e={'mpMak':function(_0xed335f){return _0xed335f();},'KpJwd':function(_0x14ef29,_0x296745){return _0x14ef29!==_0x296745;},'ifhvM':'main','oqEGy':function(_0x459390,_0x5486e7){return _0x459390(_0x5486e7);}},_0x204b57=_0x56ff5e['mpMak'](loadCache),_0x31c430=getOrCreateSession(_0x204b57,_0x5444b7);_0x31c430['enabled']=!![];const _0x35d13f=getCurrentBranch();_0x35d13f&&_0x56ff5e[_0x4e911e(0xc6)](_0x35d13f,_0x56ff5e[_0x4e911e(0xc0)])&&_0x35d13f!==_0x4e911e(0xb8)&&(_0x204b57[_0x4e911e(0xa3)][_0x35d13f]=!![],_0x31c430['currentBranch']=_0x35d13f),_0x56ff5e['oqEGy'](saveCache,_0x204b57);}export function isSessionEnabled(_0x56a67f){const _0xb3fd5b=_0xe64401,_0x2536d6={'gaiCX':function(_0x18ac99){return _0x18ac99();},'RXEgp':function(_0x22a780,_0x56c414){return _0x22a780===_0x56c414;},'ymajo':function(_0x4da143,_0x2db52a){return _0x4da143===_0x2db52a;},'JnCCa':function(_0x1afa41,_0x35b15e){return _0x1afa41===_0x35b15e;},'RfEFr':function(_0x340741,_0x5be512){return _0x340741||_0x5be512;}},_0x53b10e=loadCache(),_0x2ea36f=_0x2536d6[_0xb3fd5b(0xb0)](getCurrentBranch);if(!_0x2ea36f||_0x2536d6['RXEgp'](_0x2ea36f,'main')||_0x2536d6[_0xb3fd5b(0xca)](_0x2ea36f,'master'))return _0x53b10e[_0xb3fd5b(0x98)][_0x56a67f]?.[_0xb3fd5b(0x95)]===!![];const _0x582ddb=_0x2536d6['RXEgp'](_0x53b10e[_0xb3fd5b(0xa3)][_0x2ea36f],!![]),_0x427fe6=_0x2536d6[_0xb3fd5b(0x9e)](_0x53b10e[_0xb3fd5b(0x98)][_0x56a67f]?.[_0xb3fd5b(0x95)],!![]);return _0x2536d6[_0xb3fd5b(0xc3)](_0x582ddb,_0x427fe6);}export function disableSession(_0x17c3ce){const _0x30aad2=_0xe64401,_0x1cb6e2={'SCuRg':function(_0x2be6a3){return _0x2be6a3();},'ZVXtp':function(_0x5cc558,_0x2ac0f1,_0x2699db){return _0x5cc558(_0x2ac0f1,_0x2699db);},'jkYkT':function(_0x4f75be,_0x53bcc1){return _0x4f75be(_0x53bcc1);}},_0x45b361=_0x1cb6e2[_0x30aad2(0xa7)](loadCache),_0x51339b=_0x1cb6e2[_0x30aad2(0xa4)](getOrCreateSession,_0x45b361,_0x17c3ce);_0x51339b['enabled']=![],_0x1cb6e2[_0x30aad2(0xba)](saveCache,_0x45b361);}export function updateBranchTracking(_0x55db73){const _0x10aafd=_0xe64401,_0x405ac7={'AqQnM':function(_0x2863ec){return _0x2863ec();},'MPPXc':function(_0x4bd2c5,_0x31839e){return _0x4bd2c5===_0x31839e;},'wqtfU':_0x10aafd(0xbb),'GAGPr':'master','iHKNy':function(_0x5a715c,_0x94d6ed){return _0x5a715c!==_0x94d6ed;},'xkHcv':function(_0x41c3b1,_0x2392db){return _0x41c3b1(_0x2392db);}},_0x4b9f27=loadCache(),_0x5de611=_0x4b9f27[_0x10aafd(0x98)][_0x55db73];if(!_0x5de611?.['enabled'])return;const _0x53aa9b=_0x405ac7['AqQnM'](getCurrentBranch);if(!_0x53aa9b||_0x405ac7['MPPXc'](_0x53aa9b,_0x405ac7[_0x10aafd(0xa5)])||_0x53aa9b===_0x405ac7[_0x10aafd(0xbc)])return;_0x405ac7['iHKNy'](_0x5de611[_0x10aafd(0x9f)],_0x53aa9b)&&(_0x4b9f27['branches'][_0x53aa9b]=!![],_0x5de611[_0x10aafd(0x9f)]=_0x53aa9b,_0x405ac7[_0x10aafd(0x9d)](saveCache,_0x4b9f27));}export function initBranchTracking(_0x2e3bd5){const _0x1a6dd7=_0xe64401,_0x41c25e={'EsrPY':function(_0x446c2a){return _0x446c2a();},'jNlTj':function(_0x5675f5,_0x4e138d){return _0x5675f5===_0x4e138d;},'SmBGm':_0x1a6dd7(0xb8),'TeiJx':function(_0x171eb6,_0x42b53c,_0x1d48dd){return _0x171eb6(_0x42b53c,_0x1d48dd);}},_0x12e2cb=_0x41c25e['EsrPY'](loadCache),_0x46b045=getCurrentBranch();if(!_0x46b045||_0x41c25e['jNlTj'](_0x46b045,_0x1a6dd7(0xbb))||_0x46b045===_0x41c25e['SmBGm'])return;if(_0x12e2cb['branches'][_0x46b045]===!![]){const _0x38ba76=_0x41c25e['TeiJx'](getOrCreateSession,_0x12e2cb,_0x2e3bd5);_0x38ba76[_0x1a6dd7(0x95)]=!![],_0x38ba76[_0x1a6dd7(0x9f)]=_0x46b045,saveCache(_0x12e2cb);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;function _0x6942(_0x55ad94,_0x49e518){_0x55ad94=_0x55ad94-0x94;const _0x47a8d9=_0x47a8();let _0x6942f2=_0x47a8d9[_0x55ad94];return _0x6942f2;}export function recordEnabledSessionCleared(_0x105cac){const _0x2de0b3=loadCache(),_0x2adafd=_0x2de0b3['sessions'][_0x105cac];_0x2adafd?.['enabled']&&(_0x2de0b3['lastEnabledSessionClearedAt']=Date['now'](),saveCache(_0x2de0b3));}export function shouldAutoEnableAfterClear(_0x12e723){const _0x97237=_0xe64401,_0x44a20d={'dDlKi':_0x97237(0xae),'CErfo':function(_0x4f8907,_0x1c55fe){return _0x4f8907-_0x1c55fe;},'ZKXwX':function(_0x38dfd1,_0x143564){return _0x38dfd1<=_0x143564;}};if(_0x12e723!==_0x44a20d[_0x97237(0x99)])return![];const _0x4b63d6=loadCache(),_0x424629=_0x4b63d6[_0x97237(0xad)];if(!_0x424629)return![];const _0x49f91f=_0x44a20d[_0x97237(0xb1)](Date['now'](),_0x424629);return _0x44a20d['ZKXwX'](_0x49f91f,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x2b972f){const _0x262732=_0xe64401,_0x352ab3={'NolXU':function(_0x42263d){return _0x42263d();},'Nxogm':function(_0x305c00,_0x2adae7,_0x929db){return _0x305c00(_0x2adae7,_0x929db);},'KnbYL':function(_0x5774f4,_0x4e603e){return _0x5774f4!==_0x4e603e;},'BsvvF':_0x262732(0xbb),'mxNqx':function(_0x23f48f,_0x3b01a1){return _0x23f48f(_0x3b01a1);}},_0x4a37d7=_0x352ab3[_0x262732(0xc7)](loadCache),_0x50c0af=_0x352ab3['Nxogm'](getOrCreateSession,_0x4a37d7,_0x2b972f);_0x50c0af[_0x262732(0x95)]=!![];const _0x20330b=getCurrentBranch();_0x20330b&&_0x352ab3[_0x262732(0x94)](_0x20330b,_0x352ab3['BsvvF'])&&_0x352ab3[_0x262732(0x94)](_0x20330b,_0x262732(0xb8))&&(_0x50c0af['currentBranch']=_0x20330b),delete _0x4a37d7['lastEnabledSessionClearedAt'],_0x352ab3['mxNqx'](saveCache,_0x4a37d7);}export function registerSession(_0x36023c,_0x15b163){const _0x3a4680=_0xe64401,_0x1f10cd=loadCache(),_0x49fb13=getOrCreateSession(_0x1f10cd,_0x36023c);_0x49fb13[_0x3a4680(0xb4)]=_0x15b163,_0x49fb13['registeredAt']=new Date()['toISOString'](),saveCache(_0x1f10cd);}export function getSessionEntry(_0x198c06){const _0x3a6cc9=_0xe64401,_0x144293=loadCache(),_0x3bf88b=_0x144293['sessions'][_0x198c06];if(_0x3bf88b?.[_0x3a6cc9(0xb4)]&&_0x3bf88b?.['registeredAt'])return{'featureId':_0x3bf88b[_0x3a6cc9(0xb4)],'registeredAt':_0x3bf88b['registeredAt']};return null;}export function unregisterSession(_0x3ee27b){const _0x9c374a=_0xe64401,_0x2a5d94={'VtLrC':function(_0x268840){return _0x268840();}},_0x506060=_0x2a5d94['VtLrC'](loadCache),_0x57648d=_0x506060['sessions'][_0x3ee27b];_0x57648d&&(delete _0x57648d['featureId'],delete _0x57648d[_0x9c374a(0x97)],saveCache(_0x506060));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x2de1ee){const _0x39568b=_0xe64401,_0x104552={'dDbmL':function(_0x31f864,_0x574bb8,_0x456192){return _0x31f864(_0x574bb8,_0x456192);},'iiMUL':function(_0x4577c4,_0x15f7a4){return _0x4577c4>=_0x15f7a4;},'QeBOB':function(_0x22b7d1,_0x4caa25){return _0x22b7d1-_0x4caa25;}},_0x485fab=loadCache(),_0xd848d1=_0x104552['dDbmL'](getOrCreateSession,_0x485fab,_0x2de1ee),_0x30da86=_0xd848d1['lastPlanReminderAt']||0x0,_0x4b1bdd=Date[_0x39568b(0xa8)]();if(_0x104552[_0x39568b(0xbe)](_0x104552[_0x39568b(0xa2)](_0x4b1bdd,_0x30da86),PLAN_REMINDER_INTERVAL_MS))return _0xd848d1['lastPlanReminderAt']=_0x4b1bdd,saveCache(_0x485fab),!![];return![];}export function shouldShowStopReminder(_0x112ddd){const _0x4fc693=_0xe64401,_0x2912ea={'HCknw':function(_0x473cdb){return _0x473cdb();},'rfDLA':function(_0x34db2e,_0xfab8ca,_0x48718b){return _0x34db2e(_0xfab8ca,_0x48718b);},'JCCuV':function(_0x1f86b9,_0x50ca34){return _0x1f86b9>=_0x50ca34;},'JKvCf':function(_0x21dbca,_0x222941){return _0x21dbca-_0x222941;}},_0x87de2e=_0x2912ea[_0x4fc693(0x96)](loadCache),_0x246fec=_0x2912ea[_0x4fc693(0xb2)](getOrCreateSession,_0x87de2e,_0x112ddd),_0x521f9c=_0x246fec[_0x4fc693(0xc2)]||0x0,_0x91389e=Date[_0x4fc693(0xa8)]();if(_0x2912ea[_0x4fc693(0xab)](_0x2912ea['JKvCf'](_0x91389e,_0x521f9c),STOP_REMINDER_INTERVAL_MS))return _0x246fec[_0x4fc693(0xc2)]=_0x91389e,saveCache(_0x87de2e),!![];return![];}function _0x47a8(){const _0x30ab18=['SCuRg','now','105654yUVMcf','1270ONtsnI','JCCuV','trim','lastEnabledSessionClearedAt','clear','join','gaiCX','CErfo','rfDLA','1965792nZOrNV','featureId','fjTsD','pipe','PhVBR','master','utf-8','jkYkT','main','GAGPr','28tsTXPy','iiMUL','parse','ifhvM','cOJBT','lastStopReminderAt','RfEFr','482584LajpKf','writeFileSync','KpJwd','NolXU','dirname','73278JarbnR','ymajo','KnbYL','enabled','HCknw','registeredAt','sessions','dDlKi','8122482JJUDKu','1224651eRllNB','existsSync','xkHcv','JnCCa','currentBranch','prompted','1268OvFtNY','QeBOB','branches','ZVXtp','wqtfU','stringify'];_0x47a8=function(){return _0x30ab18;};return _0x47a8();}export function hasSessionBeenPrompted(_0x592e24){const _0x4b30a7=_0xe64401,_0x593273={'UXpQh':function(_0x52d144,_0x594bfa){return _0x52d144===_0x594bfa;}},_0x5e3ffc=loadCache();return _0x593273['UXpQh'](_0x5e3ffc[_0x4b30a7(0x98)][_0x592e24]?.['prompted'],!![]);}export function markSessionPrompted(_0x3b5625){const _0x5c6312=_0xe64401,_0x4ff664={'cOJBT':function(_0x4d4a47){return _0x4d4a47();},'vuDXM':function(_0x175b1e,_0x504d67,_0x1cccd5){return _0x175b1e(_0x504d67,_0x1cccd5);}},_0x224ba9=_0x4ff664[_0x5c6312(0xc1)](loadCache),_0x304c4d=_0x4ff664['vuDXM'](getOrCreateSession,_0x224ba9,_0x3b5625);_0x304c4d[_0x5c6312(0xa0)]=!![],saveCache(_0x224ba9);}export function getCacheFile(){return CACHE_FILE;}
1
+ function _0x511a(_0x387bf0,_0x2e6473){_0x387bf0=_0x387bf0-0x77;const _0x1122ee=_0x1122();let _0x511a64=_0x1122ee[_0x387bf0];return _0x511a64;}const _0x3bf0e8=_0x511a;(function(_0x298141,_0x58e235){const _0x21c0ad=_0x511a,_0x5f4a2e=_0x298141();while(!![]){try{const _0x5c6c9c=parseInt(_0x21c0ad(0x85))/0x1*(parseInt(_0x21c0ad(0x77))/0x2)+parseInt(_0x21c0ad(0x8d))/0x3+parseInt(_0x21c0ad(0x79))/0x4+-parseInt(_0x21c0ad(0x8c))/0x5+parseInt(_0x21c0ad(0x8e))/0x6*(parseInt(_0x21c0ad(0x9a))/0x7)+parseInt(_0x21c0ad(0x88))/0x8*(-parseInt(_0x21c0ad(0x9d))/0x9)+-parseInt(_0x21c0ad(0x95))/0xa;if(_0x5c6c9c===_0x58e235)break;else _0x5f4a2e['push'](_0x5f4a2e['shift']());}catch(_0x51d636){_0x5f4a2e['push'](_0x5f4a2e['shift']());}}}(_0x1122,0x40717));import*as _0x19135e from'fs';import*as _0x411f5b from'path';import*as _0x47ea4b from'os';import{execSync}from'child_process';const CACHE_FILE=_0x411f5b[_0x3bf0e8(0x7c)](_0x47ea4b[_0x3bf0e8(0xa5)](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x1868ab=_0x3bf0e8,_0x28ffbf={'YDQhQ':_0x1868ab(0xa1),'UKZkl':function(_0x2fd413){return _0x2fd413();}};try{if(_0x19135e[_0x1868ab(0x80)](CACHE_FILE)){const _0x57ac9f=JSON['parse'](_0x19135e['readFileSync'](CACHE_FILE,_0x28ffbf['YDQhQ']));return{'version':0x3,'sessions':_0x57ac9f[_0x1868ab(0x89)]||{},'branches':_0x57ac9f['branches']||{},'lastEnabledSessionClearedAt':_0x57ac9f[_0x1868ab(0x7b)]};}}catch{}return _0x28ffbf[_0x1868ab(0x81)](createEmptyCache);}function saveCache(_0x4199ad){const _0x17a874=_0x3bf0e8;try{const _0x1d4f84=_0x411f5b['dirname'](CACHE_FILE);!_0x19135e['existsSync'](_0x1d4f84)&&_0x19135e['mkdirSync'](_0x1d4f84,{'recursive':!![]}),_0x19135e[_0x17a874(0x8a)](CACHE_FILE,JSON['stringify'](_0x4199ad,null,0x2));}catch{}}export function getCurrentBranch(){const _0x2f5fe5=_0x3bf0e8,_0x43a2a8={'fsqLi':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','SPSyL':'HEAD'};try{const _0x35e773=execSync(_0x43a2a8[_0x2f5fe5(0xa0)],{'encoding':'utf-8','stdio':[_0x2f5fe5(0x9f),'pipe',_0x2f5fe5(0x9f)]})['trim']();if(!_0x35e773||_0x35e773===_0x43a2a8[_0x2f5fe5(0x8b)])return null;return _0x35e773;}catch{return null;}}export function enableBranch(_0x39eca8){const _0x49a520={'SSWlV':function(_0x57c528){return _0x57c528();}},_0x1f87de=_0x49a520['SSWlV'](loadCache);_0x1f87de['branches'][_0x39eca8]=!![],saveCache(_0x1f87de);}export function disableBranch(_0x14479d){const _0x37af0f={'krqmR':function(_0x984cb0){return _0x984cb0();}},_0x256716=_0x37af0f['krqmR'](loadCache);delete _0x256716['branches'][_0x14479d],saveCache(_0x256716);}export function isBranchEnabled(_0x384a04){const _0x5b06d4=_0x3bf0e8,_0x370ef4=loadCache();return _0x370ef4[_0x5b06d4(0x86)][_0x384a04]===!![];}function getOrCreateSession(_0xa6f069,_0x489c13){const _0xb0b6ac=_0x3bf0e8;return!_0xa6f069[_0xb0b6ac(0x89)][_0x489c13]&&(_0xa6f069['sessions'][_0x489c13]={}),_0xa6f069['sessions'][_0x489c13];}export function enableSession(_0x584f26){const _0x997f50=_0x3bf0e8,_0x4740b0={'bZWms':function(_0x2e436b,_0x208adb,_0x6ea5b0){return _0x2e436b(_0x208adb,_0x6ea5b0);},'bupwX':function(_0x8a21e,_0x39a929){return _0x8a21e!==_0x39a929;},'lofyQ':'master','tzqqp':function(_0xde518f,_0x507390){return _0xde518f(_0x507390);}},_0xbd648a=loadCache(),_0x4f8299=_0x4740b0[_0x997f50(0x7f)](getOrCreateSession,_0xbd648a,_0x584f26);_0x4f8299[_0x997f50(0x96)]=!![];const _0x5eccda=getCurrentBranch();_0x5eccda&&_0x5eccda!==_0x997f50(0x78)&&_0x4740b0[_0x997f50(0xa9)](_0x5eccda,_0x4740b0[_0x997f50(0x93)])&&(_0xbd648a['branches'][_0x5eccda]=!![],_0x4f8299[_0x997f50(0x9e)]=_0x5eccda),_0x4740b0[_0x997f50(0xa2)](saveCache,_0xbd648a);}export function isSessionEnabled(_0x155e41){const _0x4de3e6=_0x3bf0e8,_0x5f0c56={'wnLZN':function(_0x395f50){return _0x395f50();},'YaWYp':function(_0x275d01){return _0x275d01();},'lROfm':function(_0x18b43a,_0x188d4c){return _0x18b43a===_0x188d4c;},'KcSQP':function(_0x309110,_0x1060d6){return _0x309110===_0x1060d6;},'RHCwt':function(_0x34343b,_0x4fbc9d){return _0x34343b===_0x4fbc9d;}},_0x31b280=_0x5f0c56[_0x4de3e6(0x9b)](loadCache),_0x3c9c00=_0x5f0c56[_0x4de3e6(0x87)](getCurrentBranch);if(!_0x3c9c00||_0x5f0c56['lROfm'](_0x3c9c00,_0x4de3e6(0x78))||_0x3c9c00==='master')return _0x5f0c56['KcSQP'](_0x31b280['sessions'][_0x155e41]?.[_0x4de3e6(0x96)],!![]);const _0x593216=_0x31b280['branches'][_0x3c9c00]===!![],_0x231e55=_0x5f0c56[_0x4de3e6(0x9c)](_0x31b280[_0x4de3e6(0x89)][_0x155e41]?.[_0x4de3e6(0x96)],!![]);return _0x593216||_0x231e55;}function _0x1122(){const _0x1b5bb6=['bupwX','244sNklSh','main','1426336jTeETD','zSILM','lastEnabledSessionClearedAt','join','now','lEJLy','bZWms','existsSync','UKZkl','registeredAt','featureId','KRrEI','1727VSJMlC','branches','YaWYp','1368YZnWEU','sessions','writeFileSync','SPSyL','1605645qbjsMU','558000yVzSwe','14526sryiCl','kctES','PIKTo','lastPlanReminderAt','prompted','lofyQ','lastStopReminderAt','1542490EaRGjr','enabled','aFwTu','master','toISOString','21evGXCW','wnLZN','RHCwt','1116jAgTyY','currentBranch','pipe','fsqLi','utf-8','tzqqp','dCclz','BuJzc','homedir','RhRBU','BGFqV','yOrol'];_0x1122=function(){return _0x1b5bb6;};return _0x1122();}export function disableSession(_0x9ae89f){const _0x393540={'EfvQV':function(_0x104415){return _0x104415();},'DJGCt':function(_0x3b5c78,_0x318c3c){return _0x3b5c78(_0x318c3c);}},_0x562d2a=_0x393540['EfvQV'](loadCache),_0x4c19b4=getOrCreateSession(_0x562d2a,_0x9ae89f);_0x4c19b4['enabled']=![],_0x393540['DJGCt'](saveCache,_0x562d2a);}export function updateBranchTracking(_0x8f9fe2){const _0x2646b5=_0x3bf0e8,_0x16b29e={'PKnUC':function(_0xf6fc6b){return _0xf6fc6b();},'YFKeB':_0x2646b5(0x78),'OqxPT':function(_0x2d1c12,_0x545e23){return _0x2d1c12===_0x545e23;},'PIKTo':function(_0x1ae19a,_0x2c90bc){return _0x1ae19a!==_0x2c90bc;},'gFAHm':function(_0x598522,_0x2b8e00){return _0x598522(_0x2b8e00);}},_0x1e5da9=loadCache(),_0x185c77=_0x1e5da9[_0x2646b5(0x89)][_0x8f9fe2];if(!_0x185c77?.['enabled'])return;const _0x189282=_0x16b29e['PKnUC'](getCurrentBranch);if(!_0x189282||_0x189282===_0x16b29e['YFKeB']||_0x16b29e['OqxPT'](_0x189282,_0x2646b5(0x98)))return;_0x16b29e[_0x2646b5(0x90)](_0x185c77['currentBranch'],_0x189282)&&(_0x1e5da9[_0x2646b5(0x86)][_0x189282]=!![],_0x185c77['currentBranch']=_0x189282,_0x16b29e['gFAHm'](saveCache,_0x1e5da9));}export function initBranchTracking(_0xcaebfb){const _0x36c5f6=_0x3bf0e8,_0x3ff5c8={'Qlmin':function(_0x30ec8f){return _0x30ec8f();},'CUdHT':function(_0x15fe04,_0x3862bd){return _0x15fe04===_0x3862bd;},'MPvyi':function(_0x5c5a1c,_0x4dd4f8,_0x5d6ac4){return _0x5c5a1c(_0x4dd4f8,_0x5d6ac4);}},_0x42053e=_0x3ff5c8['Qlmin'](loadCache),_0x5722e9=getCurrentBranch();if(!_0x5722e9||_0x5722e9==='main'||_0x3ff5c8['CUdHT'](_0x5722e9,_0x36c5f6(0x98)))return;if(_0x42053e['branches'][_0x5722e9]===!![]){const _0x468153=_0x3ff5c8['MPvyi'](getOrCreateSession,_0x42053e,_0xcaebfb);_0x468153['enabled']=!![],_0x468153['currentBranch']=_0x5722e9,saveCache(_0x42053e);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x5d64a9){const _0x54a2ce={'ypxqp':function(_0x4cac13,_0x4422d1){return _0x4cac13(_0x4422d1);}},_0x145fc7=loadCache(),_0x260d2f=_0x145fc7['sessions'][_0x5d64a9];_0x260d2f?.['enabled']&&(_0x145fc7['lastEnabledSessionClearedAt']=Date['now'](),_0x54a2ce['ypxqp'](saveCache,_0x145fc7));}export function shouldAutoEnableAfterClear(_0x2d4801){const _0xc9affd=_0x3bf0e8,_0x5fc7a8={'lEJLy':function(_0x40f6dc,_0x2be296){return _0x40f6dc!==_0x2be296;},'yOrol':function(_0x47d7ff){return _0x47d7ff();}};if(_0x5fc7a8[_0xc9affd(0x7e)](_0x2d4801,'clear'))return![];const _0x1580d9=_0x5fc7a8[_0xc9affd(0xa8)](loadCache),_0x3e88fb=_0x1580d9[_0xc9affd(0x7b)];if(!_0x3e88fb)return![];const _0x4d450a=Date[_0xc9affd(0x7d)]()-_0x3e88fb;return _0x4d450a<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x34dd61){const _0x3f0fb4=_0x3bf0e8,_0x212cfa={'TyiYF':function(_0x56667e){return _0x56667e();},'BuJzc':function(_0x50e1f7,_0x4081eb){return _0x50e1f7!==_0x4081eb;},'aFwTu':function(_0x432dfb,_0x3139d3){return _0x432dfb(_0x3139d3);}},_0x4060ae=_0x212cfa['TyiYF'](loadCache),_0x4542a7=getOrCreateSession(_0x4060ae,_0x34dd61);_0x4542a7['enabled']=!![];const _0x2a978a=getCurrentBranch();_0x2a978a&&_0x212cfa['BuJzc'](_0x2a978a,'main')&&_0x212cfa[_0x3f0fb4(0xa4)](_0x2a978a,'master')&&(_0x4542a7['currentBranch']=_0x2a978a),delete _0x4060ae['lastEnabledSessionClearedAt'],_0x212cfa[_0x3f0fb4(0x97)](saveCache,_0x4060ae);}export function registerSession(_0x2a0aea,_0x5359bb){const _0x14877a=_0x3bf0e8,_0x5b1667={'QfNER':function(_0x5ee64f,_0x542079){return _0x5ee64f(_0x542079);}},_0x2f13ad=loadCache(),_0x21a7c9=getOrCreateSession(_0x2f13ad,_0x2a0aea);_0x21a7c9['featureId']=_0x5359bb,_0x21a7c9['registeredAt']=new Date()[_0x14877a(0x99)](),_0x5b1667['QfNER'](saveCache,_0x2f13ad);}export function getSessionEntry(_0x14dc3b){const _0x220201=_0x3bf0e8,_0x3a1158={'BGFqV':function(_0x56c992){return _0x56c992();}},_0x2a83bd=_0x3a1158[_0x220201(0xa7)](loadCache),_0xa67cff=_0x2a83bd[_0x220201(0x89)][_0x14dc3b];if(_0xa67cff?.[_0x220201(0x83)]&&_0xa67cff?.[_0x220201(0x82)])return{'featureId':_0xa67cff['featureId'],'registeredAt':_0xa67cff['registeredAt']};return null;}export function unregisterSession(_0x3bc59d){const _0x17d142=_0x3bf0e8,_0x401e42={'zSILM':function(_0x4a9d70,_0xe7e7a2){return _0x4a9d70(_0xe7e7a2);}},_0x1a931c=loadCache(),_0x5c4ba8=_0x1a931c['sessions'][_0x3bc59d];_0x5c4ba8&&(delete _0x5c4ba8[_0x17d142(0x83)],delete _0x5c4ba8['registeredAt'],_0x401e42[_0x17d142(0x7a)](saveCache,_0x1a931c));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x53d860){const _0x1b5d5b=_0x3bf0e8,_0x2440ff={'rcaLq':function(_0x1c736a){return _0x1c736a();},'RhRBU':function(_0x2e2766,_0x3bd423,_0x6730a8){return _0x2e2766(_0x3bd423,_0x6730a8);},'jszyT':function(_0x4ac289,_0x6ef26e){return _0x4ac289-_0x6ef26e;}},_0x1d4d6e=_0x2440ff['rcaLq'](loadCache),_0x270039=_0x2440ff[_0x1b5d5b(0xa6)](getOrCreateSession,_0x1d4d6e,_0x53d860),_0x4d9c1d=_0x270039['lastPlanReminderAt']||0x0,_0x580f69=Date[_0x1b5d5b(0x7d)]();if(_0x2440ff['jszyT'](_0x580f69,_0x4d9c1d)>=PLAN_REMINDER_INTERVAL_MS)return _0x270039[_0x1b5d5b(0x91)]=_0x580f69,saveCache(_0x1d4d6e),!![];return![];}export function shouldShowStopReminder(_0x545623){const _0x36b892=_0x3bf0e8,_0x20f507={'wWEJA':function(_0x29a4df){return _0x29a4df();},'KRrEI':function(_0x24ad12,_0x52de96){return _0x24ad12>=_0x52de96;},'rNdMV':function(_0x47c790,_0x4f85ae){return _0x47c790-_0x4f85ae;},'DufJC':function(_0xb8e412,_0x2ab443){return _0xb8e412(_0x2ab443);}},_0x455022=_0x20f507['wWEJA'](loadCache),_0x4d0474=getOrCreateSession(_0x455022,_0x545623),_0xbf534b=_0x4d0474['lastStopReminderAt']||0x0,_0x17f176=Date['now']();if(_0x20f507[_0x36b892(0x84)](_0x20f507['rNdMV'](_0x17f176,_0xbf534b),STOP_REMINDER_INTERVAL_MS))return _0x4d0474[_0x36b892(0x94)]=_0x17f176,_0x20f507['DufJC'](saveCache,_0x455022),!![];return![];}export function hasSessionBeenPrompted(_0x2112ab){const _0xb04a00=_0x3bf0e8,_0x25e1ba={'znkme':function(_0x19195a){return _0x19195a();}},_0x4ba72d=_0x25e1ba['znkme'](loadCache);return _0x4ba72d[_0xb04a00(0x89)][_0x2112ab]?.[_0xb04a00(0x92)]===!![];}export function markSessionPrompted(_0x2afbba){const _0x1ff7f2=_0x3bf0e8,_0x38253d={'mojDV':function(_0x1e6675){return _0x1e6675();},'dCclz':function(_0x40dff9,_0x327c87,_0x385196){return _0x40dff9(_0x327c87,_0x385196);},'kctES':function(_0x54b1cc,_0x8cdb11){return _0x54b1cc(_0x8cdb11);}},_0x3dad6b=_0x38253d['mojDV'](loadCache),_0x3d4302=_0x38253d[_0x1ff7f2(0xa3)](getOrCreateSession,_0x3dad6b,_0x2afbba);_0x3d4302['prompted']=!![],_0x38253d[_0x1ff7f2(0x8f)](saveCache,_0x3dad6b);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x1f68ed=_0x9bd2;(function(_0x5d8121,_0x162887){const _0x5040cc=_0x9bd2,_0x3b420c=_0x5d8121();while(!![]){try{const _0x25e747=parseInt(_0x5040cc(0x10e))/0x1*(-parseInt(_0x5040cc(0x122))/0x2)+parseInt(_0x5040cc(0xc6))/0x3*(-parseInt(_0x5040cc(0xd7))/0x4)+-parseInt(_0x5040cc(0xe6))/0x5+parseInt(_0x5040cc(0xd5))/0x6+parseInt(_0x5040cc(0xd4))/0x7*(-parseInt(_0x5040cc(0xeb))/0x8)+parseInt(_0x5040cc(0xf3))/0x9*(parseInt(_0x5040cc(0x111))/0xa)+parseInt(_0x5040cc(0x10b))/0xb;if(_0x25e747===_0x162887)break;else _0x3b420c['push'](_0x3b420c['shift']());}catch(_0x7d8a69){_0x3b420c['push'](_0x3b420c['shift']());}}}(_0x127e,0x6c9e9));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(_0x18af57,_0xb1ce30){const _0x5009e8=_0x9bd2,_0x3e25b5={'XmkEf':function(_0xaf411,_0x164af1,_0x211bfb,_0x1cd366){return _0xaf411(_0x164af1,_0x211bfb,_0x1cd366);},'NGPXb':function(_0xf5ce0e,_0x32940d,_0x35d0fe){return _0xf5ce0e(_0x32940d,_0x35d0fe);},'vCUyZ':'local','AERDo':function(_0xe4efd,_0x38f3ba,_0x35afcd){return _0xe4efd(_0x38f3ba,_0x35afcd);},'FoJKP':function(_0x2841fa,_0x267d4b){return _0x2841fa(_0x267d4b);},'TocNR':function(_0x1b268c,_0x2c7a02){return _0x1b268c(_0x2c7a02);},'RDLoo':function(_0x3c4498,_0x304270){return _0x3c4498!==_0x304270;},'zBnOQ':function(_0x4ccc9b,_0x20ee1f){return _0x4ccc9b!==_0x20ee1f;}},_0x489a0f=_0x3e25b5['XmkEf'](join,_0xb1ce30,'ci',_0x18af57),_0x33a665=_0x3e25b5[_0x5009e8(0xcc)](join,_0xb1ce30,'local',_0x18af57),_0x5b0b63=_0x3e25b5['NGPXb'](join,_0xb1ce30,_0x18af57),_0x558204=join(_0xb1ce30,_0x3e25b5['vCUyZ']),_0x5a7244=_0x3e25b5['AERDo'](join,_0xb1ce30,'ci');if(_0x3e25b5[_0x5009e8(0x128)](existsSync,_0x489a0f))return _0x489a0f;if(_0x3e25b5[_0x5009e8(0x128)](existsSync,_0x33a665))return _0x33a665;if(_0x3e25b5[_0x5009e8(0xe8)](existsSync,_0x5b0b63)&&(_0x3e25b5['RDLoo'](_0x5b0b63,_0x558204)&&_0x3e25b5[_0x5009e8(0xfd)](_0x5b0b63,_0x5a7244)?!![]:hasLegacyProfileFiles(_0x5b0b63)))return _0x5b0b63;return null;}export function getEnvDir(_0x568806){const _0x3a8328=_0x9bd2,_0x3b8668={'hUhBu':function(_0x36b531){return _0x36b531();}},_0x51e631=_0x3b8668[_0x3a8328(0xca)](getRangerDir),_0x28ced9=findEnvInRoot(_0x568806,_0x51e631);if(_0x28ced9)return _0x28ced9;const _0x4fc75d=_0x3b8668[_0x3a8328(0xca)](getRangerHomeDir);if(_0x4fc75d!==_0x51e631){const _0xbcc776=findEnvInRoot(_0x568806,_0x4fc75d);if(_0xbcc776)return _0xbcc776;}return join(_0x51e631,'local',_0x568806);}function _0x127e(){const _0x590b2d=['location','allowInsecureLocalhost','--disable-features=WebBluetooth','UVdcV','chromium','20858893alRnbL','zoQiG','join','3jCUFiK','install','JypxI','10dnCknN','--allow-insecure-localhost','DtmyV','ranger-auth-','vSJXs','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','isArray','fromEntries','PhhLO','jmsIF','parse','vwJVq','clipboard-write','HFhsj','iATMC','local','hvycM','575518EiwKIb','NUETt','fZSKC','includes','IKZJC','launchOptions','FoJKP','DSVZe','headless','qbuHv','setupHeaders','entries','header','xYBxc','235551WAHDRo','boolean','HzBPB','keys','hUhBu','rangerDir','XmkEf','BAXTO','UkBgv','browser','vision','ZEvZu','stringify','length','161wlCjiw','3711912fyXuGl','zhbiQ','16DZqKPS','qZAkJ','tabs','storageStatePath','now','extraHTTPHeaders','Gjikh','getuid','contextOptions','--disable-web-security','args','.json','settings.json','push','legacy','2054335ZLLzBX','repeat','TocNR','Qwsqm','storageState','273704yopeUG','replace','playwright-cli','core','cOpkB','lUCIZ','--no-sandbox','sessions','2745909hFxxjT','QHoej','dHhgP','\x20is\x20not\x20set','all','userAgent','auth.json','TLCzD','map','filter','zBnOQ','object','tempAuthPath','aIicT','MMmWb','PReWV','path','string','juEsP'];_0x127e=function(){return _0x590b2d;};return _0x127e();}export function findExistingEnv(_0x4402ae,_0x58be99){const _0x253d94=_0x9bd2,_0xd2531c={'aIicT':function(_0x127ae6){return _0x127ae6();},'WXQYu':_0x253d94(0x120),'uSEyx':function(_0x1d638a,_0x5b9ba0,_0x29f197){return _0x1d638a(_0x5b9ba0,_0x29f197);},'vSJXs':function(_0x300ac2,_0x518184,_0x5066c8,_0x42ee34){return _0x300ac2(_0x518184,_0x5066c8,_0x42ee34);},'Qwsqm':function(_0x4f057a,_0x55c341){return _0x4f057a(_0x55c341);},'fZSKC':function(_0x316db5,_0x119201){return _0x316db5===_0x119201;},'DSVZe':'legacy'},_0xa23e87=_0x58be99?.[_0x253d94(0xcb)],_0xb31c63=_0xa23e87?[_0xa23e87]:[getRangerDir(),_0xd2531c[_0x253d94(0x100)](getRangerHomeDir)][_0x253d94(0xfc)]((_0x57400f,_0x504062,_0x1dabf5)=>_0x1dabf5['indexOf'](_0x57400f)===_0x504062),_0x9e1969=_0x58be99?.['locations']??['ci',_0xd2531c['WXQYu'],'legacy'];for(const _0x204bfb of _0xb31c63){const _0x50e6e8=join(_0x204bfb,'local'),_0x2ed21b=_0xd2531c['uSEyx'](join,_0x204bfb,'ci'),_0x30a29e=[{'location':'ci','path':_0xd2531c[_0x253d94(0x115)](join,_0x204bfb,'ci',_0x4402ae)},{'location':_0x253d94(0x120),'path':join(_0x204bfb,_0xd2531c['WXQYu'],_0x4402ae)},{'location':_0x253d94(0xe5),'path':join(_0x204bfb,_0x4402ae)}];for(const _0x1dfc7a of _0x30a29e){if(_0x9e1969['includes'](_0x1dfc7a[_0x253d94(0x106)])&&_0xd2531c[_0x253d94(0xe9)](existsSync,_0x1dfc7a[_0x253d94(0x103)])){if(_0xd2531c['fZSKC'](_0x1dfc7a['location'],_0xd2531c[_0x253d94(0xbf)])&&(_0x1dfc7a[_0x253d94(0x103)]===_0x50e6e8||_0xd2531c[_0x253d94(0x124)](_0x1dfc7a[_0x253d94(0x103)],_0x2ed21b))&&!hasLegacyProfileFiles(_0x1dfc7a['path']))continue;return{'path':_0x1dfc7a['path'],'location':_0x1dfc7a['location']};}}}return null;}function hasLegacyProfileFiles(_0x114b04){const _0x6af39a=_0x9bd2,_0x2a5a07={'IKZJC':function(_0x2cfcfb,_0x2dba09,_0x28163e){return _0x2cfcfb(_0x2dba09,_0x28163e);},'fOuVR':'auth.json'};return existsSync(_0x2a5a07[_0x6af39a(0x126)](join,_0x114b04,_0x6af39a(0xe3)))||existsSync(_0x2a5a07[_0x6af39a(0x126)](join,_0x114b04,_0x2a5a07['fOuVR']))||existsSync(_0x2a5a07['IKZJC'](join,_0x114b04,'auth.json.enc'));}export function isEnvCi(_0x18e9d3){const _0x4dbbb5=_0x9bd2,_0x240217={'cQcGQ':function(_0x527769,_0x296680){return _0x527769(_0x296680);},'sVggk':function(_0x29b212,_0x18b615,_0x225e65,_0x307d95){return _0x29b212(_0x18b615,_0x225e65,_0x307d95);},'PhhLO':function(_0x495661){return _0x495661();}};return _0x240217['cQcGQ'](existsSync,_0x240217['sVggk'](join,_0x240217[_0x4dbbb5(0x119)](getRangerDir),'ci',_0x18e9d3));}export async function cleanupTempFiles(_0x44a6ee){const _0x3dae77=_0x9bd2,_0x326f85={'DlHaB':function(_0x3b4b82,_0x243b9b){return _0x3b4b82!==_0x243b9b;},'gtcaY':'ENOENT'},_0x69574e=[_0x44a6ee[_0x3dae77(0xff)],_0x44a6ee['configPath']]['filter'](Boolean);await Promise[_0x3dae77(0xf7)](_0x69574e['map'](_0x3dd628=>unlink(_0x3dd628)['catch'](_0x25bf30=>{_0x326f85['DlHaB'](_0x25bf30['code'],_0x326f85['gtcaY'])&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x3dd628+':',_0x25bf30['message']);})));}export function getSettingsPath(_0x383279){const _0x551720=_0x9bd2,_0x74b8e8={'damDm':function(_0x1613e6,_0x20b461,_0x577826){return _0x1613e6(_0x20b461,_0x577826);},'eLXqX':function(_0x2585bf,_0x54bdca){return _0x2585bf(_0x54bdca);},'igKYe':_0x551720(0xe3)};return _0x74b8e8['damDm'](join,_0x74b8e8['eLXqX'](getEnvDir,_0x383279),_0x74b8e8['igKYe']);}export async function loadSettings(_0x12ab60){const _0x223e9a=_0x9bd2,_0x4b8355={'jmsIF':function(_0x42ae,_0x14b83b){return _0x42ae(_0x14b83b);},'DtmyV':function(_0x1cdb61,_0x484b73,_0x575f92){return _0x1cdb61(_0x484b73,_0x575f92);}},_0x1fccba=getSettingsPath(_0x12ab60);if(!_0x4b8355[_0x223e9a(0x11a)](existsSync,_0x1fccba))return{};try{const _0x178295=await _0x4b8355[_0x223e9a(0x113)](readFile,_0x1fccba,'utf-8');return JSON[_0x223e9a(0x11b)](_0x178295);}catch{return{};}}export async function saveSettings(_0x40ea40,_0x381ef8){const _0x56f9a9=_0x9bd2,_0x42e6cb={'hvycM':function(_0x3eb2f4,_0x1862a7){return _0x3eb2f4(_0x1862a7);},'dHhgP':function(_0x433412,_0x2a1f26){return _0x433412(_0x2a1f26);},'iEHnG':function(_0x45739a,_0x5de50e,_0x38e458){return _0x45739a(_0x5de50e,_0x38e458);}},_0x57ee94=_0x42e6cb[_0x56f9a9(0x121)](getSettingsPath,_0x40ea40),_0x20c87a=_0x42e6cb['hvycM'](dirname,_0x57ee94);!_0x42e6cb[_0x56f9a9(0xf5)](existsSync,_0x20c87a)&&await _0x42e6cb['iEHnG'](mkdir,_0x20c87a,{'recursive':!![]}),await writeFile(_0x57ee94,JSON[_0x56f9a9(0xd2)](_0x381ef8,null,0x2));}export function resolveEnvVars(_0x4e9958){const _0x43052e=_0x9bd2,_0x2b93e1={'vKSgj':function(_0x10c4eb,_0x32a5c6){return _0x10c4eb===_0x32a5c6;},'hMfMX':_0x43052e(0x104),'zhbiQ':'object'};if(typeof _0x4e9958===_0x2b93e1['hMfMX'])return _0x4e9958[_0x43052e(0xec)](/\$\{(\w+)\}/g,(_0x126ecd,_0x2c6165)=>{const _0x349632=_0x43052e,_0x195c85=process['env'][_0x2c6165];if(_0x2b93e1['vKSgj'](_0x195c85,undefined))throw new Error('Environment\x20variable\x20'+_0x2c6165+_0x349632(0xf6));return _0x195c85;});if(Array[_0x43052e(0x117)](_0x4e9958))return _0x4e9958['map'](resolveEnvVars);if(_0x4e9958&&typeof _0x4e9958===_0x2b93e1[_0x43052e(0xd6)])return Object[_0x43052e(0x118)](Object[_0x43052e(0xc3)](_0x4e9958)[_0x43052e(0xfb)](([_0x1b6712,_0x12bbfd])=>[_0x1b6712,resolveEnvVars(_0x12bbfd)]));return _0x4e9958;}const isRecord=_0x523c32=>typeof _0x523c32==='object'&&_0x523c32!==null&&!Array[_0x1f68ed(0x117)](_0x523c32),asRecord=_0x31d35d=>isRecord(_0x31d35d)?_0x31d35d:undefined,mergeHeaders=(_0x308afd,_0x42b0b8)=>{const _0x403aaa=_0x1f68ed,_0x2045ad={'Gjikh':function(_0x484ba4,_0x53e6b5){return _0x484ba4??_0x53e6b5;}},_0x168c7b={..._0x2045ad['Gjikh'](_0x308afd,{}),..._0x2045ad[_0x403aaa(0xdd)](_0x42b0b8,{})};return Object[_0x403aaa(0xc9)](_0x168c7b)['length']?_0x168c7b:undefined;},SAFE_MODE_ARGS=[_0x1f68ed(0x108)],ALLOW_LOCALHOST_ARGS=[_0x1f68ed(0xe0),'--allow-running-insecure-content','--unsafely-treat-insecure-origin-as-secure=http://localhost',_0x1f68ed(0x112)];export function buildBrowserOptionsFromSettings(_0x3d28b,_0x9bda3d={}){const _0x2353b2=_0x1f68ed,_0x18f61a={'xYBxc':function(_0x452fe3,_0x2ead80){return _0x452fe3(_0x2ead80);},'FlOYm':function(_0x3946c0,_0x1792e4){return _0x3946c0===_0x1792e4;},'UkBgv':_0x2353b2(0xc7),'lGOLN':'string','MMmWb':function(_0x59b0df,_0x7ff0db,_0x539835){return _0x59b0df(_0x7ff0db,_0x539835);}},_0x1941e3=asRecord(_0x3d28b[_0x2353b2(0xcf)]),_0x3b4b08={..._0x18f61a[_0x2353b2(0xc5)](asRecord,_0x1941e3?.[_0x2353b2(0x127)])??{}};_0x18f61a['FlOYm'](typeof _0x9bda3d['headless'],_0x18f61a[_0x2353b2(0xce)])&&(_0x3b4b08['headless']=_0x9bda3d['headless']);if(_0x3d28b['safeMode']){const _0xb8f2e9=_0x3b4b08['args']??[],_0x4dfaa0=SAFE_MODE_ARGS[_0x2353b2(0xfc)](_0x2f60da=>!_0xb8f2e9[_0x2353b2(0x125)](_0x2f60da));_0x3b4b08[_0x2353b2(0xe1)]=[..._0xb8f2e9,..._0x4dfaa0];}if(_0x3d28b[_0x2353b2(0x107)]){const _0x5cf5ee=_0x3b4b08['args']??[],_0x2250ba=ALLOW_LOCALHOST_ARGS[_0x2353b2(0xfc)](_0x2cfb7d=>!_0x5cf5ee[_0x2353b2(0x125)](_0x2cfb7d));_0x3b4b08['args']=[..._0x5cf5ee,..._0x2250ba];}const _0x3f9ac3={...asRecord(_0x1941e3?.['contextOptions'])??{}};_0x3f9ac3['ignoreHTTPSErrors']=!![];typeof _0x3d28b[_0x2353b2(0xf8)]===_0x18f61a['lGOLN']&&(_0x3f9ac3['userAgent']=_0x3d28b[_0x2353b2(0xf8)]);const _0x13e94d=_0x18f61a[_0x2353b2(0x101)](mergeHeaders,asRecord(_0x3f9ac3['extraHTTPHeaders']),_0x18f61a['xYBxc'](asRecord,_0x3d28b['headers']));return _0x13e94d?_0x3f9ac3[_0x2353b2(0xdc)]=_0x13e94d:delete _0x3f9ac3[_0x2353b2(0xdc)],_0x9bda3d['storageStatePath']&&(_0x3f9ac3[_0x2353b2(0xea)]=_0x9bda3d[_0x2353b2(0xda)]),{'launchOptions':_0x3b4b08,'contextOptions':_0x3f9ac3};}async function resolveLocalAuthPath(_0x40639f){const _0x164fe2=_0x1f68ed,_0x1efc02={'QHVoi':function(_0x2d6772,_0x12b00c,_0x4bfac3){return _0x2d6772(_0x12b00c,_0x4bfac3);},'zmqjF':'auth.json.enc','JypxI':_0x164fe2(0xf9),'fwEvD':function(_0x2be459,_0x21b21a){return _0x2be459(_0x21b21a);},'ljozB':function(_0x385839,_0x2ac9c9){return _0x385839(_0x2ac9c9);},'kokeC':function(_0x2dd1e9,_0x3cf7e1){return _0x2dd1e9(_0x3cf7e1);},'juEsP':function(_0x3b55b7,_0x6d603c){return _0x3b55b7(_0x6d603c);}},_0x465803=_0x1efc02['QHVoi'](join,_0x40639f,_0x1efc02['zmqjF']),_0x2e530c=join(_0x40639f,_0x1efc02[_0x164fe2(0x110)]);if(_0x1efc02['fwEvD'](existsSync,_0x465803))try{const _0xb81025=await getToken();if(!_0xb81025)throw new Error(_0x164fe2(0x116));const _0x140de5=await _0x1efc02['ljozB'](readFile,_0x465803),_0x2166f6=decrypt(_0x140de5,_0xb81025),_0xbe9929=_0x1efc02['QHVoi'](join,tmpdir(),_0x164fe2(0x114)+Date[_0x164fe2(0xdb)]()+_0x164fe2(0xe2));return await writeFile(_0xbe9929,_0x2166f6),{'storageStatePath':_0xbe9929,'tempAuthPath':_0xbe9929};}catch(_0x502334){const _0x132399=_0x502334 instanceof Error?_0x502334['message']:_0x1efc02['kokeC'](String,_0x502334);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x132399);}if(_0x1efc02[_0x164fe2(0x105)](existsSync,_0x2e530c))return{'storageStatePath':_0x2e530c};return{};}export async function buildPlaywrightConfig(_0x3f230a,_0x3ebc85,_0x2e914f,_0x1dabb3,_0x1d160d){const _0x29628e=_0x1f68ed,_0x251c59={'NUETt':function(_0x289e6e,_0x2411a6,_0x48f0c5,_0x20dd9b,_0x5a5111,_0x1ec49f,_0x3bea70){return _0x289e6e(_0x2411a6,_0x48f0c5,_0x20dd9b,_0x5a5111,_0x1ec49f,_0x3bea70);},'PReWV':function(_0x4acf6e,_0x41927a){return _0x4acf6e(_0x41927a);}};if(_0x1d160d)return _0x251c59[_0x29628e(0x123)](buildPlaywrightConfigCore,_0x3f230a,_0x1d160d,_0x3ebc85,_0x2e914f,_0x1dabb3,'stagehand');const {storageStatePath:_0x239840,tempAuthPath:_0x46c480}=await _0x251c59[_0x29628e(0x102)](resolveLocalAuthPath,getEnvDir(_0x3ebc85)),_0x634a8a=await buildPlaywrightConfigCore(_0x3f230a,_0x239840,_0x3ebc85,_0x2e914f,_0x1dabb3,'stagehand');return{..._0x634a8a,'tempAuthPath':_0x46c480};}export async function buildPlaywrightConfigCore(_0xbf97d8,_0x5e107b,_0x477222,_0x375a98,_0x3066f9,_0x35d107='stagehand'){const _0x17edff=_0x1f68ed,_0x460dea={'lUCIZ':function(_0x150ddc,_0x2a5ffd){return _0x150ddc===_0x2a5ffd;},'NJaGL':'--disable-setuid-sandbox','UVdcV':_0x17edff(0x11d),'HFhsj':function(_0x4a4b73){return _0x4a4b73();},'BVJpY':function(_0x2e247c){return _0x2e247c();},'iATMC':_0x17edff(0xed),'zoQiG':'file','IyRIG':_0x17edff(0xd9),'vwJVq':_0x17edff(0xd0),'XFbOA':function(_0x37a992,_0x151365,_0x692be9){return _0x37a992(_0x151365,_0x692be9);},'mKHvM':'ranger-config','BAXTO':function(_0x53cd3f,_0x37effe,_0x4d1d23){return _0x53cd3f(_0x37effe,_0x4d1d23);},'qbuHv':'-cli'},_0xa06b34=_0x375a98||_0x460dea[_0x17edff(0x11e)](randomUUID),_0x5d68c5=join(_0x460dea['BVJpY'](getRangerDir),_0x17edff(0xf2),_0xa06b34),_0x4e2534=Boolean(_0xbf97d8['cdpEndpoint']),_0x4e82ea=_0x4e2534?{'browserName':_0x17edff(0x10a),'cdpEndpoint':_0xbf97d8['cdpEndpoint']}:((()=>{const _0x5666be=_0x17edff,{launchOptions:_0x50188c,contextOptions:_0x346569}=buildBrowserOptionsFromSettings(_0xbf97d8,{'headless':_0x3066f9?![]:_0xbf97d8[_0x5666be(0xc0)]??!![],'storageStatePath':_0x5e107b});if(_0x460dea[_0x5666be(0xf0)](process[_0x5666be(0xde)]?.(),0x0)){const _0x4a3f71=[_0x5666be(0xf1),_0x460dea['NJaGL']],_0x446bb8=_0x50188c[_0x5666be(0xe1)]??[],_0x23963f=_0x4a3f71[_0x5666be(0xfc)](_0x5d1e85=>!_0x446bb8[_0x5666be(0x125)](_0x5d1e85));_0x50188c[_0x5666be(0xe1)]=[..._0x446bb8,..._0x23963f];}return{'isolated':!![],'browserName':_0x5666be(0x10a),'launchOptions':_0x50188c,'contextOptions':{..._0x346569,'permissions':['clipboard-read',_0x460dea[_0x5666be(0x109)]],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x1ab22a=_0x35d107===_0x460dea['iATMC']?{'browser':_0x4e82ea,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5d68c5,'outputMode':_0x460dea[_0x17edff(0x10c)],'codegen':'none'}:{'name':_0x477222,'browser':_0x4e82ea,'capabilities':[_0x17edff(0xee),_0x460dea['IyRIG'],_0x17edff(0x10f),'pdf',_0x460dea[_0x17edff(0x11c)]],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5d68c5};if(!_0x4e2534){const _0x335911=_0x1ab22a[_0x17edff(0xcf)],_0x54a52a=_0x335911[_0x17edff(0xdf)];if(_0x54a52a[_0x17edff(0xf8)]===undefined)delete _0x54a52a[_0x17edff(0xf8)];if(_0x54a52a[_0x17edff(0xea)]===undefined)delete _0x54a52a[_0x17edff(0xea)];}const _0x4a53a6=_0x460dea['XFbOA'](join,tmpdir(),_0x460dea['mKHvM']);!existsSync(_0x4a53a6)&&await _0x460dea[_0x17edff(0xcd)](mkdir,_0x4a53a6,{'recursive':!![]});const _0xa71db7=_0x35d107===_0x460dea[_0x17edff(0x11f)]?_0x460dea[_0x17edff(0xc1)]:'',_0xab2eaf=join(_0x4a53a6,_0x477222+'-'+Date['now']()+_0xa71db7+'.json');return await writeFile(_0xab2eaf,JSON['stringify'](_0x1ab22a,null,0x2)),{'configPath':_0xab2eaf};}export async function buildPlaywrightCliConfig(_0x2779ed,_0x7aca59,_0xa3b797,_0x18c039,_0x20b317){const _0x9e6bc3=_0x1f68ed,_0x2109c1={'QHoej':'playwright-cli','TLCzD':function(_0x20da6f,_0x5dbff5){return _0x20da6f(_0x5dbff5);}};if(_0x20b317)return buildPlaywrightConfigCore(_0x2779ed,_0x20b317,_0x7aca59,_0xa3b797,_0x18c039,_0x2109c1['QHoej']);const {storageStatePath:_0x333e06,tempAuthPath:_0x2384c0}=await resolveLocalAuthPath(_0x2109c1[_0x9e6bc3(0xfa)](getEnvDir,_0x7aca59)),_0xfb4291=await buildPlaywrightConfigCore(_0x2779ed,_0x333e06,_0x7aca59,_0xa3b797,_0x18c039,_0x2109c1[_0x9e6bc3(0xf4)]);return{..._0xfb4291,'tempAuthPath':_0x2384c0};}export function getNestedValue(_0x3ee6ec,_0x49bddf){const _0x5e5e67=_0x1f68ed,_0x29588d={'HzBPB':_0x5e5e67(0xfe)},_0x5528f7=parseKeyPath(_0x49bddf);let _0x1b3acd=_0x3ee6ec;for(const _0x483f75 of _0x5528f7){if(_0x1b3acd===null||_0x1b3acd===undefined||typeof _0x1b3acd!==_0x29588d[_0x5e5e67(0xc8)])return undefined;_0x1b3acd=_0x1b3acd[_0x483f75];}return _0x1b3acd;}export function setNestedValue(_0x1d2697,_0x49c557,_0x1e3794){const _0x4da44b=_0x1f68ed,_0x5213d1={'cOpkB':function(_0x473f40,_0x1d68b8){return _0x473f40<_0x1d68b8;},'BCciH':function(_0x211e7d,_0x5d708b){return _0x211e7d-_0x5d708b;},'ZEvZu':function(_0x56ce1c,_0x316dab){return _0x56ce1c-_0x316dab;}},_0x1eaf4a=parseKeyPath(_0x49c557);let _0x4dac57=_0x1d2697;for(let _0x49fbcc=0x0;_0x5213d1[_0x4da44b(0xef)](_0x49fbcc,_0x5213d1['BCciH'](_0x1eaf4a[_0x4da44b(0xd3)],0x1));_0x49fbcc++){const _0x2893df=_0x1eaf4a[_0x49fbcc];(!(_0x2893df in _0x4dac57)||typeof _0x4dac57[_0x2893df]!==_0x4da44b(0xfe))&&(_0x4dac57[_0x2893df]={}),_0x4dac57=_0x4dac57[_0x2893df];}_0x4dac57[_0x1eaf4a[_0x5213d1[_0x4da44b(0xd1)](_0x1eaf4a['length'],0x1)]]=_0x1e3794;}function _0x9bd2(_0x671a29,_0x2cb4d2){_0x671a29=_0x671a29-0xbf;const _0x127ee4=_0x127e();let _0x9bd21d=_0x127ee4[_0x671a29];return _0x9bd21d;}export function deleteNestedValue(_0x48bc22,_0x5592ce){const _0x33dfe0=_0x1f68ed,_0x2a9e92={'hSCkJ':function(_0x5548dd,_0x289e15){return _0x5548dd-_0x289e15;},'qZAkJ':function(_0x3292a4,_0x16053a){return _0x3292a4 in _0x16053a;}},_0x35a41f=parseKeyPath(_0x5592ce);let _0x2902b6=_0x48bc22;for(let _0x1da8c3=0x0;_0x1da8c3<_0x2a9e92['hSCkJ'](_0x35a41f['length'],0x1);_0x1da8c3++){if(_0x2902b6===null||_0x2902b6===undefined||typeof _0x2902b6!==_0x33dfe0(0xfe))return![];_0x2902b6=_0x2902b6[_0x35a41f[_0x1da8c3]];}if(_0x2902b6===null||_0x2902b6===undefined||typeof _0x2902b6!=='object')return![];const _0x37e1c9=_0x35a41f[_0x35a41f['length']-0x1];if(_0x2a9e92[_0x33dfe0(0xd8)](_0x37e1c9,_0x2902b6))return delete _0x2902b6[_0x37e1c9],!![];return![];}function parseKeyPath(_0x56c7e0){const _0x5b079c=_0x1f68ed,_0x531e90={'dyjzD':function(_0x46e63a,_0x4f5e0b){return _0x46e63a===_0x4f5e0b;},'Dnede':_0x5b079c(0xc4),'HEpgy':'headers'},_0x1d5fd2=_0x56c7e0['split']('.');return _0x531e90['dyjzD'](_0x1d5fd2[0x0],_0x531e90['Dnede'])&&(_0x1d5fd2[0x0]=_0x531e90['HEpgy']),_0x1d5fd2[0x0]==='setupHeader'&&(_0x1d5fd2[0x0]=_0x5b079c(0xc2)),_0x1d5fd2;}export function formatSettings(_0x4e14a0,_0x3ec3d7=0x0){const _0x538a3f=_0x1f68ed,_0x30569f={'fkmjf':function(_0x639610,_0x4eccc3){return _0x639610!==_0x4eccc3;}},_0x524004=[],_0x529c78='\x20\x20'[_0x538a3f(0xe7)](_0x3ec3d7);for(const [_0x387496,_0x14c9d1]of Object['entries'](_0x4e14a0)){if(_0x14c9d1===undefined)continue;if(typeof _0x14c9d1===_0x538a3f(0xfe)&&_0x30569f['fkmjf'](_0x14c9d1,null)){_0x524004['push'](''+_0x529c78+_0x387496+':');for(const [_0x42930c,_0x29d857]of Object['entries'](_0x14c9d1)){_0x524004['push'](_0x529c78+'\x20\x20'+_0x42930c+':\x20'+_0x29d857);}}else _0x524004[_0x538a3f(0xe4)](''+_0x529c78+_0x387496+':\x20'+_0x14c9d1);}return _0x524004[_0x538a3f(0x10d)]('\x0a');}
1
+ function _0x1a05(_0x130a44,_0x2ec7e2){_0x130a44=_0x130a44-0x18f;const _0x3cd617=_0x3cd6();let _0x1a05a1=_0x3cd617[_0x130a44];return _0x1a05a1;}const _0x39b7ee=_0x1a05;(function(_0x1530fa,_0x350436){const _0x3a1eda=_0x1a05,_0x5ce501=_0x1530fa();while(!![]){try{const _0x171960=-parseInt(_0x3a1eda(0x1b5))/0x1*(-parseInt(_0x3a1eda(0x19b))/0x2)+-parseInt(_0x3a1eda(0x1e7))/0x3*(-parseInt(_0x3a1eda(0x1b4))/0x4)+-parseInt(_0x3a1eda(0x193))/0x5+-parseInt(_0x3a1eda(0x192))/0x6*(-parseInt(_0x3a1eda(0x1ee))/0x7)+-parseInt(_0x3a1eda(0x191))/0x8+parseInt(_0x3a1eda(0x1c8))/0x9*(parseInt(_0x3a1eda(0x19a))/0xa)+parseInt(_0x3a1eda(0x1f2))/0xb*(parseInt(_0x3a1eda(0x1d6))/0xc);if(_0x171960===_0x350436)break;else _0x5ce501['push'](_0x5ce501['shift']());}catch(_0x5c3f73){_0x5ce501['push'](_0x5ce501['shift']());}}}(_0x3cd6,0xee610));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';function _0x3cd6(){const _0x288ed3=['object','launchOptions','EbbUr','--allow-running-insecure-content','now','args','ARZkq','fromEntries','9oQySUy','PJHuN','eEIHX','storageState','length','install','VGBOZ','string','catch','lflcx','xbugA','sfHWl','bQBMV','QGkhw','37512gnZZrE','safeMode','browser','omMyk','env','yPBOc','local','code','vision','vzmUr','cdpEndpoint','repeat','legacy','none','--disable-features=WebBluetooth','playwright-cli','ranger-config','6nsQIHn','userAgent','isArray','getuid','GQvvM','chromium','hgExt','252378iGwIpo','utf-8','DKfoF','.json','9031zOTTau','tempAuthPath','auth.json.enc','push','storageStatePath','11651440vzptcY','24qUifyE','9364935kIsReY','Rjhvw','rangerDir','filter','message','jpIty','headless','4708430QZKkPR','2GsSsYw','taJRt','auth.json','split','NTwNS','aRxxF','pLtHK','jSkrn','mKyum','diqDV','wQSkK','SOana','pxiOL','stringify','includes','file','-cli','Failed\x20to\x20decrypt\x20auth\x20state:\x20','join','location','setupHeader','stagehand','contextOptions','yePwN','configPath','129308AgPliC','1059658iZmOKx','entries','fmiMc','JPwIr','LDIkR','QVwmL','setupHeaders','--unsafely-treat-insecure-origin-as-secure=http://localhost','ENOENT','pkAna','path'];_0x3cd6=function(){return _0x288ed3;};return _0x3cd6();}import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x5aef8f,_0x58f2f0){const _0x3ea8c=_0x1a05,_0x305d42={'sfHWl':function(_0x118198,_0xe69a02,_0x1d7fc1,_0x2a25e7){return _0x118198(_0xe69a02,_0x1d7fc1,_0x2a25e7);},'pkAna':function(_0x51d94b,_0x3c455c,_0x1a3d33){return _0x51d94b(_0x3c455c,_0x1a3d33);},'DKfoF':'local','QzMUm':function(_0xddef59,_0x1a3dee){return _0xddef59(_0x1a3dee);},'UzJAR':function(_0x2bd3a7,_0x1bc0eb){return _0x2bd3a7(_0x1bc0eb);},'vzmUr':function(_0x395b3b,_0x2cdeab){return _0x395b3b!==_0x2cdeab;}},_0x37bf6d=_0x305d42[_0x3ea8c(0x1d3)](join,_0x58f2f0,'ci',_0x5aef8f),_0x195ac8=join(_0x58f2f0,_0x3ea8c(0x1dc),_0x5aef8f),_0x49be66=join(_0x58f2f0,_0x5aef8f),_0x274a42=_0x305d42[_0x3ea8c(0x1be)](join,_0x58f2f0,_0x305d42[_0x3ea8c(0x1f0)]),_0xcec4dc=join(_0x58f2f0,'ci');if(existsSync(_0x37bf6d))return _0x37bf6d;if(_0x305d42['QzMUm'](existsSync,_0x195ac8))return _0x195ac8;if(_0x305d42['UzJAR'](existsSync,_0x49be66)&&(_0x49be66!==_0x274a42&&_0x305d42[_0x3ea8c(0x1df)](_0x49be66,_0xcec4dc)?!![]:hasLegacyProfileFiles(_0x49be66)))return _0x49be66;return null;}export function getEnvDir(_0x4c35e9){const _0x39a72a=_0x1a05,_0x31cc39={'taJRt':function(_0x462dad){return _0x462dad();},'wQSkK':function(_0x5a10c2,_0x3ff611,_0x51552e){return _0x5a10c2(_0x3ff611,_0x51552e);},'yHREz':function(_0xd3d644){return _0xd3d644();},'pxiOL':function(_0x5ba088,_0x2eef30){return _0x5ba088!==_0x2eef30;}},_0x4f686a=_0x31cc39[_0x39a72a(0x19c)](getRangerDir),_0x3650c6=_0x31cc39[_0x39a72a(0x1a5)](findEnvInRoot,_0x4c35e9,_0x4f686a);if(_0x3650c6)return _0x3650c6;const _0x7a3f17=_0x31cc39['yHREz'](getRangerHomeDir);if(_0x31cc39[_0x39a72a(0x1a7)](_0x7a3f17,_0x4f686a)){const _0x5344bd=findEnvInRoot(_0x4c35e9,_0x7a3f17);if(_0x5344bd)return _0x5344bd;}return join(_0x4f686a,_0x39a72a(0x1dc),_0x4c35e9);}export function findExistingEnv(_0x143480,_0x5522c5){const _0x2a74be=_0x1a05,_0x4e6133={'HnugT':function(_0xd67845){return _0xd67845();},'aRxxF':_0x2a74be(0x1dc),'cnJjf':function(_0x267b46,_0x4f2830,_0x4f8c8c){return _0x267b46(_0x4f2830,_0x4f8c8c);},'LDIkR':function(_0x2946f1,_0x41dabf,_0x4c4d3d,_0x461400){return _0x2946f1(_0x41dabf,_0x4c4d3d,_0x461400);},'oIBFn':function(_0x447a2b,_0x2604b2){return _0x447a2b(_0x2604b2);},'PiQAq':_0x2a74be(0x1e2),'EOkNN':function(_0x17eda0,_0x30a2f9){return _0x17eda0===_0x30a2f9;}},_0x488752=_0x5522c5?.[_0x2a74be(0x195)],_0x129a7e=_0x488752?[_0x488752]:[_0x4e6133['HnugT'](getRangerDir),getRangerHomeDir()][_0x2a74be(0x196)]((_0x2a9237,_0xd24064,_0x9a3c38)=>_0x9a3c38['indexOf'](_0x2a9237)===_0xd24064),_0x49d173=_0x5522c5?.['locations']??['ci',_0x4e6133[_0x2a74be(0x1a0)],'legacy'];for(const _0x83cd29 of _0x129a7e){const _0x37f4c2=_0x4e6133['cnJjf'](join,_0x83cd29,_0x2a74be(0x1dc)),_0x18a5ae=join(_0x83cd29,'ci'),_0x3053dc=[{'location':'ci','path':join(_0x83cd29,'ci',_0x143480)},{'location':'local','path':_0x4e6133[_0x2a74be(0x1b9)](join,_0x83cd29,_0x4e6133['aRxxF'],_0x143480)},{'location':_0x2a74be(0x1e2),'path':join(_0x83cd29,_0x143480)}];for(const _0xe774e8 of _0x3053dc){if(_0x49d173['includes'](_0xe774e8['location'])&&_0x4e6133['oIBFn'](existsSync,_0xe774e8[_0x2a74be(0x1bf)])){if(_0xe774e8[_0x2a74be(0x1ae)]===_0x4e6133['PiQAq']&&(_0x4e6133['EOkNN'](_0xe774e8[_0x2a74be(0x1bf)],_0x37f4c2)||_0xe774e8[_0x2a74be(0x1bf)]===_0x18a5ae)&&!hasLegacyProfileFiles(_0xe774e8[_0x2a74be(0x1bf)]))continue;return{'path':_0xe774e8['path'],'location':_0xe774e8['location']};}}}return null;}function hasLegacyProfileFiles(_0x123338){const _0x23fb59=_0x1a05,_0x470fc3={'omMyk':function(_0x2fcd32,_0x176776){return _0x2fcd32(_0x176776);},'WwJgQ':'settings.json','VGBOZ':function(_0x114e3d,_0x4a71ab,_0xa959e3){return _0x114e3d(_0x4a71ab,_0xa959e3);}};return _0x470fc3[_0x23fb59(0x1d9)](existsSync,join(_0x123338,_0x470fc3['WwJgQ']))||_0x470fc3['omMyk'](existsSync,_0x470fc3[_0x23fb59(0x1ce)](join,_0x123338,_0x23fb59(0x19d)))||existsSync(join(_0x123338,_0x23fb59(0x1f4)));}export function isEnvCi(_0x371f7d){const _0x1bf09b=_0x1a05,_0x28290e={'sHjhJ':function(_0x27bc01){return _0x27bc01();},'KfRVA':function(_0x1034c1){return _0x1034c1();},'hgExt':function(_0x5794c3,_0x142b5c){return _0x5794c3!==_0x142b5c;},'mKyum':function(_0x4517b9,_0x21e8bf){return _0x4517b9(_0x21e8bf);},'mzsbO':function(_0x25308f,_0xf117de,_0x2893cf,_0x2a9b1f){return _0x25308f(_0xf117de,_0x2893cf,_0x2a9b1f);}};if(existsSync(join(_0x28290e['sHjhJ'](getRangerDir),'ci',_0x371f7d)))return!![];const _0x31a588=_0x28290e['KfRVA'](getRangerHomeDir);if(_0x28290e[_0x1bf09b(0x1ed)](_0x31a588,getRangerDir())&&_0x28290e[_0x1bf09b(0x1a3)](existsSync,_0x28290e['mzsbO'](join,_0x31a588,'ci',_0x371f7d)))return!![];return![];}export async function cleanupTempFiles(_0x326408){const _0x486397=_0x1a05,_0x2c54cf={'ARZkq':function(_0x1f8baa,_0x15f34e){return _0x1f8baa!==_0x15f34e;}},_0x2ea93a=[_0x326408[_0x486397(0x1f3)],_0x326408[_0x486397(0x1b3)]]['filter'](Boolean);await Promise['all'](_0x2ea93a['map'](_0x36c64f=>unlink(_0x36c64f)['catch'](_0x304042=>{const _0x1ddbab=_0x486397;_0x2c54cf[_0x1ddbab(0x1c6)](_0x304042[_0x1ddbab(0x1dd)],_0x1ddbab(0x1bd))&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x36c64f+':',_0x304042[_0x1ddbab(0x197)]);})));}export function getSettingsPath(_0x518a38){const _0x3de679=_0x1a05,_0x2abe5d={'diqDV':function(_0x2beea1,_0x293672,_0x274e6e){return _0x2beea1(_0x293672,_0x274e6e);},'CaNws':'settings.json'};return _0x2abe5d[_0x3de679(0x1a4)](join,getEnvDir(_0x518a38),_0x2abe5d['CaNws']);}export async function loadSettings(_0x4fc583){const _0x424659=_0x1a05,_0x52df72={'PJHuN':function(_0x1e0805,_0x52d075){return _0x1e0805(_0x52d075);},'lflcx':function(_0x24ff29,_0x143e37,_0xa7d8b9){return _0x24ff29(_0x143e37,_0xa7d8b9);},'fmiMc':_0x424659(0x1ef)},_0x5b6d15=getSettingsPath(_0x4fc583);if(!_0x52df72[_0x424659(0x1c9)](existsSync,_0x5b6d15))return{};try{const _0x28ffc1=await _0x52df72[_0x424659(0x1d1)](readFile,_0x5b6d15,_0x52df72[_0x424659(0x1b7)]);return JSON['parse'](_0x28ffc1);}catch{return{};}}export async function saveSettings(_0x50207c,_0x318650){const _0x5edbfd={'bZRxy':function(_0x2b517a,_0x1a3b9b){return _0x2b517a(_0x1a3b9b);},'EMPjN':function(_0x3def82,_0x38794b,_0x400aa6){return _0x3def82(_0x38794b,_0x400aa6);}},_0x36ca40=_0x5edbfd['bZRxy'](getSettingsPath,_0x50207c),_0x15162c=_0x5edbfd['bZRxy'](dirname,_0x36ca40);!existsSync(_0x15162c)&&await mkdir(_0x15162c,{'recursive':!![]}),await _0x5edbfd['EMPjN'](writeFile,_0x36ca40,JSON['stringify'](_0x318650,null,0x2));}export function resolveEnvVars(_0xe3943f){const _0x2ca684=_0x1a05,_0xe6dbe8={'SOana':_0x2ca684(0x1cf)};if(typeof _0xe3943f===_0xe6dbe8[_0x2ca684(0x1a6)])return _0xe3943f['replace'](/\$\{(\w+)\}/g,(_0x293aa1,_0x120929)=>{const _0xa90488=_0x2ca684,_0x1ac6e7=process[_0xa90488(0x1da)][_0x120929];if(_0x1ac6e7===undefined)throw new Error('Environment\x20variable\x20'+_0x120929+'\x20is\x20not\x20set');return _0x1ac6e7;});if(Array['isArray'](_0xe3943f))return _0xe3943f['map'](resolveEnvVars);if(_0xe3943f&&typeof _0xe3943f==='object')return Object[_0x2ca684(0x1c7)](Object[_0x2ca684(0x1b6)](_0xe3943f)['map'](([_0x442cc8,_0x47094b])=>[_0x442cc8,resolveEnvVars(_0x47094b)]));return _0xe3943f;}const isRecord=_0x273f03=>typeof _0x273f03==='object'&&_0x273f03!==null&&!Array[_0x39b7ee(0x1e9)](_0x273f03),asRecord=_0x429c96=>isRecord(_0x429c96)?_0x429c96:undefined,mergeHeaders=(_0x39b114,_0x3d87cd)=>{const _0x5e111d={'oApcJ':function(_0x34ffea,_0x5d8a03){return _0x34ffea??_0x5d8a03;}},_0x40ea79={..._0x5e111d['oApcJ'](_0x39b114,{}),..._0x3d87cd??{}};return Object['keys'](_0x40ea79)['length']?_0x40ea79:undefined;},SAFE_MODE_ARGS=[_0x39b7ee(0x1e4)],ALLOW_LOCALHOST_ARGS=['--disable-web-security',_0x39b7ee(0x1c3),_0x39b7ee(0x1bc),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x1192ee,_0x44064f={}){const _0x480f0c=_0x39b7ee,_0x1f9ea2={'CwUXB':function(_0x620c33,_0x5c4c0a){return _0x620c33(_0x5c4c0a);},'EbbUr':function(_0x253459,_0x3c407e){return _0x253459===_0x3c407e;},'xjofJ':'boolean','BuJbK':function(_0x214139,_0xbd8d05,_0x56ccdf){return _0x214139(_0xbd8d05,_0x56ccdf);}},_0x23a2e5=_0x1f9ea2['CwUXB'](asRecord,_0x1192ee[_0x480f0c(0x1d8)]),_0x4a6de3={...asRecord(_0x23a2e5?.[_0x480f0c(0x1c1)])??{}};_0x1f9ea2[_0x480f0c(0x1c2)](typeof _0x44064f[_0x480f0c(0x199)],_0x1f9ea2['xjofJ'])&&(_0x4a6de3[_0x480f0c(0x199)]=_0x44064f[_0x480f0c(0x199)]);if(_0x1192ee[_0x480f0c(0x1d7)]){const _0x517d1e=_0x4a6de3['args']??[],_0x4fdc08=SAFE_MODE_ARGS['filter'](_0x543055=>!_0x517d1e['includes'](_0x543055));_0x4a6de3['args']=[..._0x517d1e,..._0x4fdc08];}if(_0x1192ee['allowInsecureLocalhost']){const _0x48cfc9=_0x4a6de3['args']??[],_0x44d9a0=ALLOW_LOCALHOST_ARGS[_0x480f0c(0x196)](_0x206035=>!_0x48cfc9[_0x480f0c(0x1a9)](_0x206035));_0x4a6de3[_0x480f0c(0x1c5)]=[..._0x48cfc9,..._0x44d9a0];}const _0x405fc9={...asRecord(_0x23a2e5?.['contextOptions'])??{}};_0x405fc9['ignoreHTTPSErrors']=!![];_0x1f9ea2[_0x480f0c(0x1c2)](typeof _0x1192ee['userAgent'],_0x480f0c(0x1cf))&&(_0x405fc9['userAgent']=_0x1192ee[_0x480f0c(0x1e8)]);const _0x2da887=_0x1f9ea2['BuJbK'](mergeHeaders,asRecord(_0x405fc9['extraHTTPHeaders']),asRecord(_0x1192ee['headers']));return _0x2da887?_0x405fc9['extraHTTPHeaders']=_0x2da887:delete _0x405fc9['extraHTTPHeaders'],_0x44064f[_0x480f0c(0x190)]&&(_0x405fc9[_0x480f0c(0x1cb)]=_0x44064f['storageStatePath']),{'launchOptions':_0x4a6de3,'contextOptions':_0x405fc9};}async function resolveLocalAuthPath(_0x1b9e4c){const _0x3f61a6=_0x39b7ee,_0x408902={'GQvvM':function(_0x360ff1,_0x5a2cc0,_0x1f2a2f){return _0x360ff1(_0x5a2cc0,_0x1f2a2f);},'LDeMV':function(_0xfca42a,_0x5c164f,_0x5d670b){return _0xfca42a(_0x5c164f,_0x5d670b);},'Qbird':_0x3f61a6(0x19d),'eEIHX':function(_0x420d67,_0x288e50){return _0x420d67(_0x288e50);},'jpIty':function(_0x341733,_0x26c191,_0x38ae86){return _0x341733(_0x26c191,_0x38ae86);},'Rjhvw':function(_0x3cb191,_0x25d899){return _0x3cb191(_0x25d899);}},_0x5c7e85=_0x408902[_0x3f61a6(0x1eb)](join,_0x1b9e4c,_0x3f61a6(0x1f4)),_0x39a9ee=_0x408902['LDeMV'](join,_0x1b9e4c,_0x408902['Qbird']);if(_0x408902[_0x3f61a6(0x1ca)](existsSync,_0x5c7e85))try{const _0x35dc51=await getToken();if(!_0x35dc51)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x2467b9=await _0x408902['eEIHX'](readFile,_0x5c7e85),_0x383439=_0x408902[_0x3f61a6(0x198)](decrypt,_0x2467b9,_0x35dc51),_0x12a7c0=_0x408902['LDeMV'](join,tmpdir(),'ranger-auth-'+Date[_0x3f61a6(0x1c4)]()+_0x3f61a6(0x1f1));return await writeFile(_0x12a7c0,_0x383439),{'storageStatePath':_0x12a7c0,'tempAuthPath':_0x12a7c0};}catch(_0x15b923){const _0x2d469f=_0x15b923 instanceof Error?_0x15b923[_0x3f61a6(0x197)]:_0x408902[_0x3f61a6(0x194)](String,_0x15b923);throw new Error(_0x3f61a6(0x1ac)+_0x2d469f);}if(existsSync(_0x39a9ee))return{'storageStatePath':_0x39a9ee};return{};}export async function buildPlaywrightConfig(_0x49ee7f,_0x4a4d15,_0x24a9cd,_0x52351f,_0x141e0d){const _0x5ed78f=_0x39b7ee,_0x26bab6={'Jkvzx':function(_0x8cf906,_0xca0a5){return _0x8cf906(_0xca0a5);},'cIHQR':function(_0x516fc2,_0x21987e,_0x3a1c5a,_0x468ab5,_0xa7d57b,_0x4c3e97,_0x462f2b){return _0x516fc2(_0x21987e,_0x3a1c5a,_0x468ab5,_0xa7d57b,_0x4c3e97,_0x462f2b);},'tsgpV':'stagehand'};if(_0x141e0d)return buildPlaywrightConfigCore(_0x49ee7f,_0x141e0d,_0x4a4d15,_0x24a9cd,_0x52351f,_0x5ed78f(0x1b0));const {storageStatePath:_0x53c8c8,tempAuthPath:_0x59d178}=await resolveLocalAuthPath(_0x26bab6['Jkvzx'](getEnvDir,_0x4a4d15));try{const _0x5547a5=await _0x26bab6['cIHQR'](buildPlaywrightConfigCore,_0x49ee7f,_0x53c8c8,_0x4a4d15,_0x24a9cd,_0x52351f,_0x26bab6['tsgpV']);return{..._0x5547a5,'tempAuthPath':_0x59d178};}catch(_0xec0891){_0x59d178&&await unlink(_0x59d178)[_0x5ed78f(0x1d0)](()=>{});throw _0xec0891;}}export async function buildPlaywrightConfigCore(_0x11e57e,_0x273558,_0x27f6c1,_0x46a56e,_0x57927e,_0x399f6a=_0x39b7ee(0x1b0)){const _0x48bb85=_0x39b7ee,_0x4ba3a9={'yePwN':function(_0x19dd48,_0x66281e,_0x357e52){return _0x19dd48(_0x66281e,_0x357e52);},'PraPl':'clipboard-write','mstiT':function(_0x149504){return _0x149504();},'RYkZj':function(_0xd4be07){return _0xd4be07();},'dYMMr':function(_0x174eea,_0x7d9cb){return _0x174eea(_0x7d9cb);},'CQJfE':_0x48bb85(0x1e5),'pLtHK':_0x48bb85(0x1aa),'CNqdh':'core','QVwmL':'tabs','jSkrn':_0x48bb85(0x1cd),'YstGW':'pdf','QGkhw':function(_0x319d61,_0x11e6fa){return _0x319d61===_0x11e6fa;},'tyNLR':function(_0x5c1ade,_0x172c83,_0x5af28d){return _0x5c1ade(_0x172c83,_0x5af28d);},'tadgf':function(_0x58ac00,_0x27fb4f){return _0x58ac00===_0x27fb4f;},'yPBOc':_0x48bb85(0x1ab),'isiFA':function(_0x2f5633,_0x3db20e,_0x534508){return _0x2f5633(_0x3db20e,_0x534508);},'GAutM':function(_0x16a271,_0x1848c1,_0x5ec978){return _0x16a271(_0x1848c1,_0x5ec978);}},_0x2344e6=_0x46a56e||_0x4ba3a9['mstiT'](randomUUID),_0x3890c4=join(_0x4ba3a9['RYkZj'](getRangerDir),'sessions',_0x2344e6),_0x4d9658=_0x4ba3a9['dYMMr'](Boolean,_0x11e57e['cdpEndpoint']),_0x331f1b=_0x4d9658?{'browserName':'chromium','cdpEndpoint':_0x11e57e[_0x48bb85(0x1e0)]}:((()=>{const _0x52739f=_0x48bb85,{launchOptions:_0x5e04cd,contextOptions:_0x4f10d9}=_0x4ba3a9[_0x52739f(0x1b2)](buildBrowserOptionsFromSettings,_0x11e57e,{'headless':_0x57927e?![]:_0x11e57e[_0x52739f(0x199)]??!![],'storageStatePath':_0x273558});if(process[_0x52739f(0x1ea)]?.()===0x0){const _0x3d9061=['--no-sandbox','--disable-setuid-sandbox'],_0x5aea53=_0x5e04cd['args']??[],_0x5c3296=_0x3d9061['filter'](_0x4119f1=>!_0x5aea53['includes'](_0x4119f1));_0x5e04cd[_0x52739f(0x1c5)]=[..._0x5aea53,..._0x5c3296];}return{'isolated':!![],'browserName':_0x52739f(0x1ec),'launchOptions':_0x5e04cd,'contextOptions':{..._0x4f10d9,'permissions':['clipboard-read',_0x4ba3a9['PraPl']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x3cac7c=_0x399f6a===_0x4ba3a9['CQJfE']?{'browser':_0x331f1b,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x3890c4,'outputMode':_0x4ba3a9[_0x48bb85(0x1a1)],'codegen':_0x48bb85(0x1e3)}:{'name':_0x27f6c1,'browser':_0x331f1b,'capabilities':[_0x4ba3a9['CNqdh'],_0x4ba3a9[_0x48bb85(0x1ba)],_0x4ba3a9[_0x48bb85(0x1a2)],_0x4ba3a9['YstGW'],_0x48bb85(0x1de)],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x3890c4};if(!_0x4d9658){const _0x2a8bd3=_0x3cac7c['browser'],_0x52b39d=_0x2a8bd3[_0x48bb85(0x1b1)];if(_0x52b39d[_0x48bb85(0x1e8)]===undefined)delete _0x52b39d[_0x48bb85(0x1e8)];if(_0x4ba3a9[_0x48bb85(0x1d5)](_0x52b39d[_0x48bb85(0x1cb)],undefined))delete _0x52b39d['storageState'];}const _0x3ccc09=_0x4ba3a9['tyNLR'](join,tmpdir(),_0x48bb85(0x1e6));!existsSync(_0x3ccc09)&&await mkdir(_0x3ccc09,{'recursive':!![]});const _0x1d2db8=_0x4ba3a9['tadgf'](_0x399f6a,_0x48bb85(0x1e5))?_0x4ba3a9[_0x48bb85(0x1db)]:'',_0x387c8f=_0x4ba3a9['isiFA'](join,_0x3ccc09,_0x27f6c1+'-'+Date['now']()+_0x1d2db8+'.json');return await _0x4ba3a9['GAutM'](writeFile,_0x387c8f,JSON[_0x48bb85(0x1a8)](_0x3cac7c,null,0x2)),{'configPath':_0x387c8f};}export async function buildPlaywrightCliConfig(_0x328074,_0x2fcc10,_0x18caf8,_0x4207ca,_0x47dcfa){const _0x491669=_0x39b7ee,_0x58d4a9={'NTwNS':_0x491669(0x1e5),'jeIiv':function(_0x2aaa3c,_0x4dce98){return _0x2aaa3c(_0x4dce98);},'axqkP':function(_0x36a681,_0x48dbb8,_0x33d730,_0x57e281,_0x10bad4,_0x4926cb,_0x5e67ed){return _0x36a681(_0x48dbb8,_0x33d730,_0x57e281,_0x10bad4,_0x4926cb,_0x5e67ed);}};if(_0x47dcfa)return buildPlaywrightConfigCore(_0x328074,_0x47dcfa,_0x2fcc10,_0x18caf8,_0x4207ca,_0x58d4a9[_0x491669(0x19f)]);const {storageStatePath:_0x3abef4,tempAuthPath:_0x1e7595}=await _0x58d4a9['jeIiv'](resolveLocalAuthPath,getEnvDir(_0x2fcc10));try{const _0x35d5e3=await _0x58d4a9['axqkP'](buildPlaywrightConfigCore,_0x328074,_0x3abef4,_0x2fcc10,_0x18caf8,_0x4207ca,_0x58d4a9['NTwNS']);return{..._0x35d5e3,'tempAuthPath':_0x1e7595};}catch(_0x50b350){_0x1e7595&&await unlink(_0x1e7595)['catch'](()=>{});throw _0x50b350;}}export function getNestedValue(_0x177620,_0x5c2917){const _0x29775e=_0x39b7ee,_0xb66301={'XEAff':function(_0x2c46d8,_0xd5e021){return _0x2c46d8===_0xd5e021;},'PDgYj':_0x29775e(0x1c0)},_0x836e08=parseKeyPath(_0x5c2917);let _0x1d5949=_0x177620;for(const _0x2a702c of _0x836e08){if(_0xb66301['XEAff'](_0x1d5949,null)||_0x1d5949===undefined||typeof _0x1d5949!==_0xb66301['PDgYj'])return undefined;_0x1d5949=_0x1d5949[_0x2a702c];}return _0x1d5949;}export function setNestedValue(_0x2e4faa,_0x4d0537,_0x16025a){const _0x1bcbca=_0x39b7ee,_0x4ada84={'JPwIr':function(_0x535308,_0x3e8e79){return _0x535308-_0x3e8e79;},'qClTi':function(_0x2163b0,_0x21b3c8){return _0x2163b0 in _0x21b3c8;}},_0x15b669=parseKeyPath(_0x4d0537);let _0xeb6ffd=_0x2e4faa;for(let _0xf35c96=0x0;_0xf35c96<_0x4ada84[_0x1bcbca(0x1b8)](_0x15b669['length'],0x1);_0xf35c96++){const _0x48ced0=_0x15b669[_0xf35c96];(!_0x4ada84['qClTi'](_0x48ced0,_0xeb6ffd)||typeof _0xeb6ffd[_0x48ced0]!==_0x1bcbca(0x1c0))&&(_0xeb6ffd[_0x48ced0]={}),_0xeb6ffd=_0xeb6ffd[_0x48ced0];}_0xeb6ffd[_0x15b669[_0x15b669['length']-0x1]]=_0x16025a;}export function deleteNestedValue(_0x3402ab,_0x197416){const _0x4a406a=_0x39b7ee,_0x7a5956={'WwFEw':function(_0x40573e,_0x50a802){return _0x40573e(_0x50a802);},'oLxYh':function(_0x491cc5,_0x4b500a){return _0x491cc5<_0x4b500a;},'MYGxS':function(_0x798c68,_0xf66a5b){return _0x798c68-_0xf66a5b;},'xbugA':function(_0x228b49,_0x4c640c){return _0x228b49===_0x4c640c;},'HQCbe':_0x4a406a(0x1c0),'PsEzi':function(_0xabf4cc,_0x162a8a){return _0xabf4cc!==_0x162a8a;},'Spbge':function(_0x177e70,_0x12c3d9){return _0x177e70-_0x12c3d9;}},_0x1e7a29=_0x7a5956['WwFEw'](parseKeyPath,_0x197416);let _0x9bf7fc=_0x3402ab;for(let _0x1fc850=0x0;_0x7a5956['oLxYh'](_0x1fc850,_0x7a5956['MYGxS'](_0x1e7a29[_0x4a406a(0x1cc)],0x1));_0x1fc850++){if(_0x7a5956[_0x4a406a(0x1d2)](_0x9bf7fc,null)||_0x7a5956['xbugA'](_0x9bf7fc,undefined)||typeof _0x9bf7fc!==_0x7a5956['HQCbe'])return![];_0x9bf7fc=_0x9bf7fc[_0x1e7a29[_0x1fc850]];}if(_0x7a5956[_0x4a406a(0x1d2)](_0x9bf7fc,null)||_0x9bf7fc===undefined||_0x7a5956['PsEzi'](typeof _0x9bf7fc,_0x7a5956['HQCbe']))return![];const _0x3694d4=_0x1e7a29[_0x7a5956['Spbge'](_0x1e7a29['length'],0x1)];if(_0x3694d4 in _0x9bf7fc)return delete _0x9bf7fc[_0x3694d4],!![];return![];}function parseKeyPath(_0x206b80){const _0x39709d=_0x39b7ee,_0x50bde8={'xJkHc':function(_0xad891f,_0x6eca7c){return _0xad891f===_0x6eca7c;},'JfDCL':'headers','Cazdf':_0x39709d(0x1af)},_0x2912bf=_0x206b80[_0x39709d(0x19e)]('.');return _0x50bde8['xJkHc'](_0x2912bf[0x0],'header')&&(_0x2912bf[0x0]=_0x50bde8['JfDCL']),_0x2912bf[0x0]===_0x50bde8['Cazdf']&&(_0x2912bf[0x0]=_0x39709d(0x1bb)),_0x2912bf;}export function formatSettings(_0x3b2973,_0x5bb5d5=0x0){const _0x1d8d1b=_0x39b7ee,_0x4c825b={'bQBMV':function(_0x208bc4,_0xbb883d){return _0x208bc4===_0xbb883d;}},_0x54b976=[],_0x19fa1c='\x20\x20'[_0x1d8d1b(0x1e1)](_0x5bb5d5);for(const [_0x3f6205,_0x1d141e]of Object[_0x1d8d1b(0x1b6)](_0x3b2973)){if(_0x4c825b[_0x1d8d1b(0x1d4)](_0x1d141e,undefined))continue;if(_0x4c825b['bQBMV'](typeof _0x1d141e,_0x1d8d1b(0x1c0))&&_0x1d141e!==null){_0x54b976[_0x1d8d1b(0x18f)](''+_0x19fa1c+_0x3f6205+':');for(const [_0x2233ba,_0x320a64]of Object[_0x1d8d1b(0x1b6)](_0x1d141e)){_0x54b976[_0x1d8d1b(0x18f)](_0x19fa1c+'\x20\x20'+_0x2233ba+':\x20'+_0x320a64);}}else _0x54b976[_0x1d8d1b(0x18f)](''+_0x19fa1c+_0x3f6205+':\x20'+_0x1d141e);}return _0x54b976[_0x1d8d1b(0x1ad)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x1adfef,_0x123b36){const _0xbe357=_0x3aaa,_0x5e0149=_0x1adfef();while(!![]){try{const _0x5235a6=-parseInt(_0xbe357(0x18b))/0x1+parseInt(_0xbe357(0x18e))/0x2+-parseInt(_0xbe357(0x187))/0x3*(-parseInt(_0xbe357(0x193))/0x4)+parseInt(_0xbe357(0x191))/0x5+parseInt(_0xbe357(0x18f))/0x6+-parseInt(_0xbe357(0x188))/0x7+-parseInt(_0xbe357(0x186))/0x8*(parseInt(_0xbe357(0x189))/0x9);if(_0x5235a6===_0x123b36)break;else _0x5e0149['push'](_0x5e0149['shift']());}catch(_0x2bcfbc){_0x5e0149['push'](_0x5e0149['shift']());}}}(_0x2eb9,0xcb6db));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function _0x2eb9(){const _0xf8df22=['dqBTA','ranger/SKILL.md','1357102ZKItzd','2731062oQlHNk','utf-8','5942680TXkdJB','gYkpk','70880ALKPSY','696yHFPoy','153shbbfY','10148789eTLZpU','56862ljaBGt','HxSoG','393248albJVO'];_0x2eb9=function(){return _0xf8df22;};return _0x2eb9();}export function readSkillContent(_0x5e669a){const _0x3c5052=_0x3aaa,_0x2b8969={'drMCH':'skills','gYkpk':function(_0x24a3bd,_0x53df37,_0x490164){return _0x24a3bd(_0x53df37,_0x490164);},'oQZOP':function(_0x22eefe,_0x9de34,_0x360f40){return _0x22eefe(_0x9de34,_0x360f40);},'TMNth':_0x3c5052(0x190)},_0x221e8e=join(__dirname,'..','..',_0x2b8969['drMCH']),_0x2dfd50=_0x2b8969[_0x3c5052(0x192)](join,_0x221e8e,_0x5e669a);try{return _0x2b8969['oQZOP'](readFileSync,_0x2dfd50,_0x2b8969['TMNth']);}catch{return'';}}function _0x3aaa(_0x6a8772,_0x1ccdd5){_0x6a8772=_0x6a8772-0x186;const _0x2eb910=_0x2eb9();let _0x3aaac5=_0x2eb910[_0x6a8772];return _0x3aaac5;}export function getRangerSkillContent(){const _0x393913=_0x3aaa,_0x3dc1b5={'dqBTA':function(_0x4f0b51,_0x450b85){return _0x4f0b51(_0x450b85);},'HxSoG':_0x393913(0x18d)};return _0x3dc1b5[_0x393913(0x18c)](readSkillContent,_0x3dc1b5[_0x393913(0x18a)]);}
1
+ function _0x31ae(){const _0x11164e=['508596kJpgSZ','27NxjVJk','567496CNgDcT','1846Fiqicy','HhrJu','580371Mapewy','FyWxI','1021850EtGDqg','935416KBFPVY','7aHvHvq','63Orsqpb','195ZrCGgK','204LRnqjq','13476rIDkIe'];_0x31ae=function(){return _0x11164e;};return _0x31ae();}(function(_0x1edc6b,_0x3eeecd){const _0x2a7079=_0x2360,_0x19f8b3=_0x1edc6b();while(!![]){try{const _0x5099da=parseInt(_0x2a7079(0x1ad))/0x1*(parseInt(_0x2a7079(0x1b4))/0x2)+-parseInt(_0x2a7079(0x1b6))/0x3+-parseInt(_0x2a7079(0x1b3))/0x4+-parseInt(_0x2a7079(0x1ae))/0x5*(-parseInt(_0x2a7079(0x1b0))/0x6)+-parseInt(_0x2a7079(0x1ac))/0x7*(parseInt(_0x2a7079(0x1ab))/0x8)+parseInt(_0x2a7079(0x1b2))/0x9*(-parseInt(_0x2a7079(0x1aa))/0xa)+parseInt(_0x2a7079(0x1b1))/0xb*(parseInt(_0x2a7079(0x1af))/0xc);if(_0x5099da===_0x3eeecd)break;else _0x19f8b3['push'](_0x19f8b3['shift']());}catch(_0x16926f){_0x19f8b3['push'](_0x19f8b3['shift']());}}}(_0x31ae,0x2a38e));import{readFileSync}from'fs';function _0x2360(_0x53f85e,_0x542535){_0x53f85e=_0x53f85e-0x1a9;const _0x31ae75=_0x31ae();let _0x236053=_0x31ae75[_0x53f85e];return _0x236053;}import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x72df27){const _0xa1d399=_0x2360,_0x2b1267={'HhrJu':'skills','yVBvP':function(_0x578c8f,_0x5d4a8c,_0x544604){return _0x578c8f(_0x5d4a8c,_0x544604);}},_0x2988e9=join(__dirname,'..','..',_0x2b1267[_0xa1d399(0x1b5)]),_0x4e7b1f=join(_0x2988e9,_0x72df27);try{return _0x2b1267['yVBvP'](readFileSync,_0x4e7b1f,'utf-8');}catch{return'';}}export function getRangerSkillContent(){const _0x1af3ab=_0x2360,_0x493949={'hlpLz':function(_0x5658af,_0x26a794){return _0x5658af(_0x26a794);},'FyWxI':'ranger/SKILL.md'};return _0x493949['hlpLz'](readSkillContent,_0x493949[_0x1af3ab(0x1a9)]);}
@@ -1 +1 @@
1
- const _0x592f1d=_0x1c90;(function(_0x551883,_0x8e59ff){const _0x5d8959=_0x1c90,_0x1f7324=_0x551883();while(!![]){try{const _0x2ec678=-parseInt(_0x5d8959(0x11a))/0x1*(parseInt(_0x5d8959(0x131))/0x2)+parseInt(_0x5d8959(0x12d))/0x3*(parseInt(_0x5d8959(0x114))/0x4)+parseInt(_0x5d8959(0x11b))/0x5*(-parseInt(_0x5d8959(0x119))/0x6)+parseInt(_0x5d8959(0x116))/0x7+-parseInt(_0x5d8959(0x11c))/0x8+-parseInt(_0x5d8959(0x134))/0x9+-parseInt(_0x5d8959(0x111))/0xa*(-parseInt(_0x5d8959(0x11d))/0xb);if(_0x2ec678===_0x8e59ff)break;else _0x1f7324['push'](_0x1f7324['shift']());}catch(_0x171492){_0x1f7324['push'](_0x1f7324['shift']());}}}(_0x2624,0xdb081));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';function _0x2624(){const _0x409c52=['\x20\x20Installed\x20skill:\x20','trim','nrfiP','feature-tracker','6tgMKRl','warn','log','\x20\x20Location:\x20','2ILbtWv','claude','IyPlo','1251630bOTrCP','10lIueNA','oPQHN','skills','1768028CYwmOf','\x20\x20Skill\x20not\x20found:\x20','7646982kDmLCA','join','SdNuq','729996qdmeGQ','1423222wUbjjJ','20WMckbD','3456864fONVzw','15419547bxCJnC','length','\x20\x20Files:\x20','push','tPZGA','Jbsvz','akQSw','FTljp','dEKKp','OKmtz','SKILL.md','\x20\x20Removed\x20deprecated\x20skill:\x20'];_0x2624=function(){return _0x409c52;};return _0x2624();}import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function _0x1c90(_0x3ccdf0,_0xf0ef99){_0x3ccdf0=_0x3ccdf0-0x111;const _0x262441=_0x2624();let _0x1c9056=_0x262441[_0x3ccdf0];return _0x1c9056;}export const RANGER_MANAGED_SKILLS=['ranger'];export const DEPRECATED_SKILLS=['e2e-test-recommender','bug-bash',_0x592f1d(0x12c)];export async function installSkill(_0xf1c54,_0x20d86a={}){const _0xc0db6e=_0x592f1d,_0x2e3472={'Nsbep':function(_0x4d1be5){return _0x4d1be5();},'tPZGA':function(_0x96e75c,_0x2ae551,_0x24f9b4){return _0x96e75c(_0x2ae551,_0x24f9b4);},'HQtWD':function(_0x2b3e02,_0x49566b){return _0x2b3e02(_0x49566b);},'GHoOy':function(_0x4fd161,_0xf17158,_0xcac82f){return _0x4fd161(_0xf17158,_0xcac82f);},'SdNuq':'SKILL.md','FTljp':function(_0x159fcf,_0x33417e){return _0x159fcf&&_0x33417e;},'OKmtz':function(_0x177b8a,_0x422cb2){return _0x177b8a===_0x422cb2;},'SWbDP':function(_0x4d5da1,_0x3d9dbd){return _0x4d5da1(_0x3d9dbd);},'IyPlo':function(_0x495f88,_0x2764df){return _0x495f88(_0x2764df);},'Poszb':function(_0x3cb115,_0x58e8e9,_0x3b28c5){return _0x3cb115(_0x58e8e9,_0x3b28c5);},'oPQHN':'utf-8','maWCU':function(_0x7cc018,_0x216366){return _0x7cc018(_0x216366);},'dEKKp':function(_0x1127b8,_0x166b4d,_0x104ed3,_0x12f73a){return _0x1127b8(_0x166b4d,_0x104ed3,_0x12f73a);}},{level:level='project',cliVersion:_0x2c2681,platform:platform=_0xc0db6e(0x132)}=_0x20d86a,_0xce5120=_0x2e3472['Nsbep'](getSourceSkillsDir),_0x17f738=_0x2e3472['tPZGA'](join,_0xce5120,_0xf1c54),_0x4846dd=_0x2e3472[_0xc0db6e(0x121)](join,_0xce5120,_0xf1c54+'.md'),_0x5f4f13=existsSync(_0x17f738)&&_0x2e3472['HQtWD'](statSync,_0x17f738)['isDirectory']()&&existsSync(_0x2e3472['GHoOy'](join,_0x17f738,_0x2e3472[_0xc0db6e(0x118)])),_0x33c01f=existsSync(_0x4846dd);if(_0x2e3472[_0xc0db6e(0x124)](!_0x5f4f13,!_0x33c01f))return console['warn'](_0xc0db6e(0x115)+_0xf1c54),![];const _0x45f9d7=_0x2e3472[_0xc0db6e(0x126)](platform,'opencode')?_0x2e3472['SWbDP'](getOpencodeSkillsDir,level):_0x2e3472[_0xc0db6e(0x133)](getSkillsDir,level),_0x35cdc8=_0x2e3472['tPZGA'](join,_0x45f9d7,_0xf1c54);await mkdir(_0x35cdc8,{'recursive':!![]});let _0x482b81,_0x510e51=[];if(_0x5f4f13){const _0x1097ad=await readdir(_0x17f738),_0x43f4b5=_0x1097ad['filter'](_0x439aeb=>_0x439aeb['endsWith']('.md'));for(const _0x3470a1 of _0x43f4b5){const _0x589b64=join(_0x17f738,_0x3470a1),_0xddf7af=_0x2e3472[_0xc0db6e(0x121)](join,_0x35cdc8,_0x3470a1);await _0x2e3472['Poszb'](copyFile,_0x589b64,_0xddf7af),_0x510e51[_0xc0db6e(0x120)](_0x3470a1);}_0x482b81=await _0x2e3472['Poszb'](readFile,_0x2e3472['tPZGA'](join,_0x17f738,_0x2e3472['SdNuq']),_0x2e3472[_0xc0db6e(0x112)]);}else{_0x482b81=await readFile(_0x4846dd,_0x2e3472['oPQHN']);const _0x7539ad=join(_0x35cdc8,_0xc0db6e(0x127));await writeFile(_0x7539ad,_0x482b81,'utf-8'),_0x510e51['push']('SKILL.md');}const {name:_0x1ebe55}=_0x2e3472['maWCU'](parseFrontmatter,_0x482b81);return console['log'](_0xc0db6e(0x129)+_0x1ebe55),console[_0xc0db6e(0x12f)](_0xc0db6e(0x130)+_0x35cdc8),_0x510e51[_0xc0db6e(0x11e)]>0x1&&console['log'](_0xc0db6e(0x11f)+_0x510e51[_0xc0db6e(0x117)](',\x20')),_0x2e3472[_0xc0db6e(0x125)](logLocalAgentInstallation,_0xf1c54,{'skillDisplayName':_0x1ebe55,'installLevel':level},_0x2c2681)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x149534=_0x592f1d,_0x2338c3={'WqXFe':function(_0x5b940a,_0x49c1bc,_0x1f3ae7,_0x164897,_0x1eb540){return _0x5b940a(_0x49c1bc,_0x1f3ae7,_0x164897,_0x1eb540);},'akQSw':_0x149534(0x113)},_0x5e67c1=[_0x2338c3['WqXFe'](join,__dirname,'..','..',_0x149534(0x113)),join(__dirname,'..','..','..',_0x2338c3[_0x149534(0x123)])];for(const _0x1c2293 of _0x5e67c1){if(existsSync(_0x1c2293))return _0x1c2293;}return _0x5e67c1[0x0];}function parseFrontmatter(_0x450f20){const _0x2621f2=_0x592f1d,_0x321555={'nrfiP':'Invalid\x20skill\x20frontmatter'},_0x266d6d=_0x450f20['match'](/^---\n([\s\S]+?)\n---/);if(!_0x266d6d)throw new Error(_0x321555[_0x2621f2(0x12b)]);const _0x5a2a60=_0x266d6d[0x1],_0x4259ba=_0x5a2a60['match'](/name:\s*(.+)/),_0x3d23d7=_0x5a2a60['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0x4259ba?.[0x1][_0x2621f2(0x12a)]()||'','description':_0x3d23d7?.[0x1]['trim']()||''};}export async function removeSkill(_0x5a407e,_0x213d5a){const _0x267931=_0x592f1d,_0x10f597={'Jbsvz':function(_0x148948,_0x1a6c14){return _0x148948(_0x1a6c14);}},_0x5371fe=getSkillsDir(_0x213d5a),_0x375759=join(_0x5371fe,_0x5a407e);if(!_0x10f597[_0x267931(0x122)](existsSync,_0x375759))return![];try{return await rm(_0x375759,{'recursive':!![]}),console['log'](_0x267931(0x128)+_0x5a407e),!![];}catch{return console[_0x267931(0x12e)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x5a407e),![];}}
1
+ const _0x3acb7d=_0x92d5;(function(_0x4d2536,_0x4cf798){const _0x3dffc6=_0x92d5,_0x5d46c5=_0x4d2536();while(!![]){try{const _0xdcdb6e=parseInt(_0x3dffc6(0x1ae))/0x1+-parseInt(_0x3dffc6(0x1bb))/0x2*(-parseInt(_0x3dffc6(0x1a7))/0x3)+parseInt(_0x3dffc6(0x1c1))/0x4*(-parseInt(_0x3dffc6(0x1c9))/0x5)+parseInt(_0x3dffc6(0x1a8))/0x6*(-parseInt(_0x3dffc6(0x1c4))/0x7)+-parseInt(_0x3dffc6(0x1cc))/0x8*(-parseInt(_0x3dffc6(0x1be))/0x9)+-parseInt(_0x3dffc6(0x1b4))/0xa+-parseInt(_0x3dffc6(0x1ad))/0xb*(-parseInt(_0x3dffc6(0x1b9))/0xc);if(_0xdcdb6e===_0x4cf798)break;else _0x5d46c5['push'](_0x5d46c5['shift']());}catch(_0x2868e8){_0x5d46c5['push'](_0x5d46c5['shift']());}}}(_0x1dfb,0x7161c));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 _0x1dfb(){const _0x853f44=['SKILL.md','feature-tracker','NaaEX','9202300AnSmGn','log','Qjyps','bug-bash','ranger','2725980hvRsyg','JUFSJ','4IqycJP','skills','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','9WrHaGG','trim','isDirectory','2137924TQWEHC','zfyEF','socAv','202937BVmHyM','jBdRB','PLVKJ','SSwKV','push','5bUipAX','.md','utf-8','4325576btCWYM','match','KVXKN','claude','1084623dFzRRH','66EOCMvO','Invalid\x20skill\x20frontmatter','\x20\x20Installed\x20skill:\x20','WvboZ','project','33IXYqTr','292750JgkpPy','endsWith','length'];_0x1dfb=function(){return _0x853f44;};return _0x1dfb();}import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x3acb7d(0x1b8)];export const DEPRECATED_SKILLS=['e2e-test-recommender',_0x3acb7d(0x1b7),_0x3acb7d(0x1b2)];export async function installSkill(_0x263c3c,_0x2473e0={}){const _0x13a8c7=_0x3acb7d,_0x4e335a={'Qjyps':_0x13a8c7(0x1ac),'qSlLk':function(_0x3939c6){return _0x3939c6();},'UKQAy':function(_0x21679b,_0x11e08f,_0x443be3){return _0x21679b(_0x11e08f,_0x443be3);},'OGhSS':function(_0x28c5ad,_0x5ca6ec,_0x476a3d){return _0x28c5ad(_0x5ca6ec,_0x476a3d);},'zfyEF':function(_0x2f22a2,_0x1bd12d,_0xc0f74e){return _0x2f22a2(_0x1bd12d,_0xc0f74e);},'SSwKV':function(_0x5bc117,_0x1414af){return _0x5bc117(_0x1414af);},'socAv':function(_0x3aa75e,_0x1ec613){return _0x3aa75e&&_0x1ec613;},'KVXKN':function(_0xfe1a84,_0xc6cced){return _0xfe1a84(_0xc6cced);},'NaaEX':function(_0x486147,_0x3bf138,_0x505b89){return _0x486147(_0x3bf138,_0x505b89);},'WvboZ':function(_0x2ba2fe,_0x3bd792,_0x257be6){return _0x2ba2fe(_0x3bd792,_0x257be6);},'sPobz':'SKILL.md','eXcvD':function(_0x1d34af,_0x518eb9,_0x59b7bf){return _0x1d34af(_0x518eb9,_0x59b7bf);},'JUFSJ':'utf-8','lkfOG':function(_0x166b91,_0x7db148,_0x4392b1,_0xf8c882){return _0x166b91(_0x7db148,_0x4392b1,_0xf8c882);}},{level:level=_0x4e335a[_0x13a8c7(0x1b6)],cliVersion:_0x4bd2ad,platform:platform=_0x13a8c7(0x1a6)}=_0x2473e0,_0x460492=_0x4e335a['qSlLk'](getSourceSkillsDir),_0x84f20d=_0x4e335a['UKQAy'](join,_0x460492,_0x263c3c),_0x372119=_0x4e335a['OGhSS'](join,_0x460492,_0x263c3c+'.md'),_0x414c38=existsSync(_0x84f20d)&&statSync(_0x84f20d)[_0x13a8c7(0x1c0)]()&&existsSync(_0x4e335a[_0x13a8c7(0x1c2)](join,_0x84f20d,'SKILL.md')),_0x4ae4a9=_0x4e335a[_0x13a8c7(0x1c7)](existsSync,_0x372119);if(_0x4e335a[_0x13a8c7(0x1c3)](!_0x414c38,!_0x4ae4a9))return console['warn']('\x20\x20Skill\x20not\x20found:\x20'+_0x263c3c),![];const _0x1a6923=platform==='opencode'?_0x4e335a['SSwKV'](getOpencodeSkillsDir,level):getSkillsDir(level),_0x206877=join(_0x1a6923,_0x263c3c);await mkdir(_0x206877,{'recursive':!![]});let _0x4a41f9,_0x395674=[];if(_0x414c38){const _0x1cf5aa=await _0x4e335a[_0x13a8c7(0x1a5)](readdir,_0x84f20d),_0xfd28a4=_0x1cf5aa['filter'](_0x992043=>_0x992043[_0x13a8c7(0x1af)](_0x13a8c7(0x1ca)));for(const _0x33f3f5 of _0xfd28a4){const _0x19ac87=_0x4e335a['NaaEX'](join,_0x84f20d,_0x33f3f5),_0x20d6b3=_0x4e335a[_0x13a8c7(0x1b3)](join,_0x206877,_0x33f3f5);await copyFile(_0x19ac87,_0x20d6b3),_0x395674[_0x13a8c7(0x1c8)](_0x33f3f5);}_0x4a41f9=await _0x4e335a[_0x13a8c7(0x1ab)](readFile,join(_0x84f20d,_0x4e335a['sPobz']),_0x13a8c7(0x1cb));}else{_0x4a41f9=await _0x4e335a['eXcvD'](readFile,_0x372119,_0x4e335a[_0x13a8c7(0x1ba)]);const _0x5baa03=_0x4e335a['NaaEX'](join,_0x206877,_0x13a8c7(0x1b1));await _0x4e335a['lkfOG'](writeFile,_0x5baa03,_0x4a41f9,_0x4e335a['JUFSJ']),_0x395674[_0x13a8c7(0x1c8)]('SKILL.md');}const {name:_0x5f30f3}=parseFrontmatter(_0x4a41f9);return console['log'](_0x13a8c7(0x1aa)+_0x5f30f3),console[_0x13a8c7(0x1b5)]('\x20\x20Location:\x20'+_0x206877),_0x395674[_0x13a8c7(0x1b0)]>0x1&&console['log']('\x20\x20Files:\x20'+_0x395674['join'](',\x20')),_0x4e335a['lkfOG'](logLocalAgentInstallation,_0x263c3c,{'skillDisplayName':_0x5f30f3,'installLevel':level},_0x4bd2ad)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x45c480=_0x3acb7d,_0x3e679e={'ZerSe':function(_0x423d6e,_0x2e3115,_0x188b3d,_0x2b9204,_0x37aaf9){return _0x423d6e(_0x2e3115,_0x188b3d,_0x2b9204,_0x37aaf9);},'PLVKJ':_0x45c480(0x1bc)},_0x306a8d=[_0x3e679e['ZerSe'](join,__dirname,'..','..',_0x3e679e['PLVKJ']),join(__dirname,'..','..','..',_0x3e679e[_0x45c480(0x1c6)])];for(const _0x2a6cc2 of _0x306a8d){if(existsSync(_0x2a6cc2))return _0x2a6cc2;}return _0x306a8d[0x0];}function parseFrontmatter(_0x1ca8fc){const _0x1e0e1b=_0x3acb7d,_0x2d6feb=_0x1ca8fc['match'](/^---\n([\s\S]+?)\n---/);if(!_0x2d6feb)throw new Error(_0x1e0e1b(0x1a9));const _0x127e9f=_0x2d6feb[0x1],_0x35f52e=_0x127e9f[_0x1e0e1b(0x1cd)](/name:\s*(.+)/),_0x3bde2e=_0x127e9f[_0x1e0e1b(0x1cd)](/description:\s*"?(.+?)"?\n/);return{'name':_0x35f52e?.[0x1][_0x1e0e1b(0x1bf)]()||'','description':_0x3bde2e?.[0x1][_0x1e0e1b(0x1bf)]()||''};}function _0x92d5(_0x210aee,_0xfd3dee){_0x210aee=_0x210aee-0x1a5;const _0x1dfbe3=_0x1dfb();let _0x92d521=_0x1dfbe3[_0x210aee];return _0x92d521;}export async function removeSkill(_0x1b2f25,_0xb14e95){const _0x13e80f=_0x3acb7d,_0x28db85={'MCjtx':function(_0x25c183,_0x10e9fa){return _0x25c183(_0x10e9fa);},'jBdRB':function(_0x28b3c2,_0x5f05e4,_0x337505){return _0x28b3c2(_0x5f05e4,_0x337505);}},_0x3d844a=_0x28db85['MCjtx'](getSkillsDir,_0xb14e95),_0x92509c=join(_0x3d844a,_0x1b2f25);if(!existsSync(_0x92509c))return![];try{return await _0x28db85[_0x13e80f(0x1c5)](rm,_0x92509c,{'recursive':!![]}),console['log']('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x1b2f25),!![];}catch{return console['warn'](_0x13e80f(0x1bd)+_0x1b2f25),![];}}
@@ -1 +1 @@
1
- const _0x162add=_0xd240;(function(_0x47a6dc,_0xf88daf){const _0x426607=_0xd240,_0x2d9933=_0x47a6dc();while(!![]){try{const _0x4d044b=-parseInt(_0x426607(0x1de))/0x1+-parseInt(_0x426607(0x1f1))/0x2*(parseInt(_0x426607(0x1fb))/0x3)+parseInt(_0x426607(0x1cb))/0x4*(-parseInt(_0x426607(0x1d5))/0x5)+parseInt(_0x426607(0x1c6))/0x6*(parseInt(_0x426607(0x1fe))/0x7)+-parseInt(_0x426607(0x1f2))/0x8*(-parseInt(_0x426607(0x1d1))/0x9)+-parseInt(_0x426607(0x1f5))/0xa+parseInt(_0x426607(0x1cf))/0xb;if(_0x4d044b===_0xf88daf)break;else _0x2d9933['push'](_0x2d9933['shift']());}catch(_0x319345){_0x2d9933['push'](_0x2d9933['shift']());}}}(_0x32df,0x55786));function _0xd240(_0x35d04c,_0x635de4){_0x35d04c=_0x35d04c-0x1c0;const _0x32df05=_0x32df();let _0xd240c1=_0x32df05[_0x35d04c];return _0xd240c1;}import{readFileSync,writeFileSync}from'fs';function _0x32df(){const _0x291b11=['max','9qkURIw','jDEjG','argv','vwdUU','27865AvnbOE','from','uEzTX','\x20files\x20->\x20','header','pow','maxTimestampTicks','lPbbJ','sMQqv','527416KGYngf','log','clusters','nByKm','pJDSC','slice','YAaxl','bodyAfterTimestamp','dDmSR','tkycq','concat','qTGCO','oGHox','kIcqz','fbkMK','CNBaO','floor','endsWith','VpuVh','14VPgmWT','3545264OznIay','xQbre','stitchWebmFiles.js','977800tQNPNY','maxTicks','TPiNB','MZBag','readInt16BE','IGbUK','260610spgfIR','YpOKi','rzdnT','7QQNgRR','indexOf','Stitched\x20','fLCZp','length','OBpdF','aaQyq','exit','GFyIP','bodyBeforeTimestamp','gMLKR','gtwgT','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','BTdod','AAhzq','VKCfs','GvfZn','MNaxq','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','oRYrC','1008822BsDquu','TiVpQ','etfOJ','kdGrC','zDtIn','496OAtFqG','SxMFc','push','alloc','18294419DEhTDX'];_0x32df=function(){return _0x291b11;};return _0x32df();}const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x3fbf78,_0x430206){const _0xb42770=_0xd240,_0x32976f={'FxciC':function(_0x15eb5c,_0x46fd9c){return _0x15eb5c&_0x46fd9c;},'luVFM':function(_0x392070,_0x3de667){return _0x392070-_0x3de667;},'aaQyq':function(_0x30b460,_0x1a0ef3){return _0x30b460<_0x1a0ef3;},'ljBgS':function(_0x43d7ef,_0x1a8d85){return _0x43d7ef+_0x1a8d85;},'gWBPX':function(_0x19146c,_0x3b1c5e){return _0x19146c*_0x3b1c5e;}};if(_0x430206>=_0x3fbf78[_0xb42770(0x202)])return[0x0,0x0];const _0x6b798b=_0x3fbf78[_0x430206];let _0x502b39=0x1,_0x1bdf20=0x80;while(_0x502b39<=0x8&&!_0x32976f['FxciC'](_0x6b798b,_0x1bdf20)){_0x502b39++,_0x1bdf20>>=0x1;}if(_0x430206+_0x502b39>_0x3fbf78['length'])return[0x0,0x0];let _0x294926=_0x32976f['FxciC'](_0x6b798b,_0x32976f['luVFM'](_0x1bdf20,0x1));for(let _0x35bc5b=0x1;_0x32976f[_0xb42770(0x204)](_0x35bc5b,_0x502b39);_0x35bc5b++){_0x294926=_0x32976f['ljBgS'](_0x32976f['gWBPX'](_0x294926,0x100),_0x3fbf78[_0x32976f['ljBgS'](_0x430206,_0x35bc5b)]);}return[_0x294926,_0x502b39];}function readId(_0x3798f5,_0x1db96c){const _0x55e6f5=_0xd240,_0xf7524e={'MNaxq':function(_0x1beb45,_0xae0685){return _0x1beb45>=_0xae0685;},'hKZBj':function(_0x2dd7a6,_0x47d844){return _0x2dd7a6>=_0x47d844;},'plYgt':function(_0x2aa4dd,_0x2fa54a){return _0x2aa4dd>_0x2fa54a;},'VpuVh':function(_0x1d9d32,_0x4bb72a){return _0x1d9d32+_0x4bb72a;},'qTGCO':function(_0x41ff32,_0x204e79){return _0x41ff32+_0x204e79;}};if(_0xf7524e['MNaxq'](_0x1db96c,_0x3798f5['length']))return[0x0,0x0];const _0x949af5=_0x3798f5[_0x1db96c];let _0x4c452c;if(_0xf7524e[_0x55e6f5(0x1c3)](_0x949af5,0x80))_0x4c452c=0x1;else{if(_0xf7524e['hKZBj'](_0x949af5,0x40))_0x4c452c=0x2;else{if(_0x949af5>=0x20)_0x4c452c=0x3;else{if(_0x949af5>=0x10)_0x4c452c=0x4;else return[_0x949af5,0x1];}}}if(_0xf7524e['plYgt'](_0x1db96c+_0x4c452c,_0x3798f5[_0x55e6f5(0x202)]))return[0x0,0x0];let _0x227d26=0x0;for(let _0x1d5e9a=0x0;_0x1d5e9a<_0x4c452c;_0x1d5e9a++){_0x227d26=_0xf7524e[_0x55e6f5(0x1f0)](_0x227d26*0x100,_0x3798f5[_0xf7524e[_0x55e6f5(0x1e9)](_0x1db96c,_0x1d5e9a)]);}return[_0x227d26,_0x4c452c];}function readUint(_0x4f1766,_0x327a2f,_0x5eaf99){const _0x5ec647={'tLWZk':function(_0xbcccfe,_0x1fe91c){return _0xbcccfe+_0x1fe91c;}};let _0x2461fe=0x0;for(let _0x4fe0c4=0x0;_0x4fe0c4<_0x5eaf99;_0x4fe0c4++){_0x2461fe=_0x2461fe*0x100+_0x4f1766[_0x5ec647['tLWZk'](_0x327a2f,_0x4fe0c4)];}return _0x2461fe;}function isUnknownSize(_0x15843f,_0x5419e1){const _0x59ff55=_0xd240,_0x498fba={'LmwgN':function(_0x30275f,_0x707606){return _0x30275f===_0x707606;},'TPiNB':function(_0x182bf1,_0x388f1b){return _0x182bf1-_0x388f1b;},'qYxna':function(_0x11bae6,_0x449b36){return _0x11bae6*_0x449b36;}};return _0x498fba['LmwgN'](_0x15843f,_0x498fba[_0x59ff55(0x1f7)](Math[_0x59ff55(0x1da)](0x2,_0x498fba['qYxna'](0x7,_0x5419e1)),0x1));}function writeVint(_0x15e317,_0x19638c){const _0x37cb8d=_0xd240,_0x293923={'FVNsG':function(_0x1645f9,_0x9eece3){return _0x1645f9||_0x9eece3;},'mHKes':function(_0x1cdce5,_0x47d7b3){return _0x1cdce5-_0x47d7b3;},'IyiZa':function(_0x2de618,_0x39ec44){return _0x2de618>=_0x39ec44;},'kIcqz':function(_0x2a58d4,_0x5f1032){return _0x2a58d4/_0x5f1032;},'UNamK':function(_0x3bf096,_0x563d85){return _0x3bf096<<_0x563d85;}};let _0x1fe9be=_0x293923['FVNsG'](_0x19638c,0x1);while(_0x293923['mHKes'](Math[_0x37cb8d(0x1da)](0x2,0x7*_0x1fe9be),0x2)<_0x15e317)_0x1fe9be++;const _0x7bb35f=Buffer['alloc'](_0x1fe9be);for(let _0x6a3d2c=_0x1fe9be-0x1;_0x293923['IyiZa'](_0x6a3d2c,0x0);_0x6a3d2c--){_0x7bb35f[_0x6a3d2c]=_0x15e317&0xff,_0x15e317=Math['floor'](_0x293923[_0x37cb8d(0x1eb)](_0x15e317,0x100));}return _0x7bb35f[0x0]|=_0x293923['UNamK'](0x1,_0x293923['mHKes'](0x8,_0x1fe9be)),_0x7bb35f;}function writeUint(_0xa1edf6,_0x448457){const _0x1ccf9e=_0xd240,_0x5d3333={'dDmSR':function(_0x26d678,_0x579050){return _0x26d678&_0x579050;},'XtJTu':function(_0x15b250,_0x441abb){return _0x15b250/_0x441abb;}},_0x48efa5=Buffer['alloc'](_0x448457);for(let _0x407ffc=_0x448457-0x1;_0x407ffc>=0x0;_0x407ffc--){_0x48efa5[_0x407ffc]=_0x5d3333[_0x1ccf9e(0x1e6)](_0xa1edf6,0xff),_0xa1edf6=Math[_0x1ccf9e(0x1ee)](_0x5d3333['XtJTu'](_0xa1edf6,0x100));}return _0x48efa5;}function writeUnknownSizeVint(_0x35e988){const _0x4f979d={'OyErH':function(_0x193fc9,_0x2fb0a2){return _0x193fc9>>_0x2fb0a2;}},_0x41109d=Buffer['alloc'](_0x35e988,0xff);return _0x41109d[0x0]=_0x4f979d['OyErH'](0xff,_0x35e988-0x1),_0x41109d;}function uintSize(_0x53e37c){const _0x549312=_0xd240;if(_0x53e37c===0x0)return 0x1;let _0x35929a=0x0,_0x4c4d6b=_0x53e37c;while(_0x4c4d6b>0x0){_0x35929a++,_0x4c4d6b=Math[_0x549312(0x1ee)](_0x4c4d6b/0x100);}return _0x35929a;}function findTimestampScale(_0x2256c3,_0x53c575){const _0x31da4c=_0xd240,_0x93f04={'IGbUK':function(_0x1f746f,_0xaadf71){return _0x1f746f+_0xaadf71;},'vwdUU':function(_0xe4a973,_0x477a31){return _0xe4a973<_0x477a31;},'GFyIP':function(_0x3c8d8f,_0x524e93,_0x3d1ec4){return _0x3c8d8f(_0x524e93,_0x3d1ec4);},'jYqbz':function(_0x4c360b,_0x536fe5,_0x2e6fed,_0x41bea2){return _0x4c360b(_0x536fe5,_0x2e6fed,_0x41bea2);},'oRYrC':function(_0x3c62d7,_0x332cbe){return _0x3c62d7+_0x332cbe;},'etfOJ':function(_0x499d5b,_0x55336f){return _0x499d5b+_0x55336f;},'CNBaO':function(_0x464766,_0x44e4cd,_0x37df81){return _0x464766(_0x44e4cd,_0x37df81);}};let _0x379c02=_0x53c575;const _0xc8c16=Math['min'](_0x2256c3['length'],_0x93f04[_0x31da4c(0x1fa)](_0x53c575,0x2710));while(_0x93f04[_0x31da4c(0x1d4)](_0x379c02,_0xc8c16)){const [_0x29f665,_0xa33177]=_0x93f04[_0x31da4c(0x206)](readId,_0x2256c3,_0x379c02),[_0x460655,_0x3c2aeb]=readVint(_0x2256c3,_0x93f04[_0x31da4c(0x1fa)](_0x379c02,_0xa33177));if(_0x29f665===ID_INFO){let _0x2a9f0e=_0x93f04[_0x31da4c(0x1fa)](_0x93f04['IGbUK'](_0x379c02,_0xa33177),_0x3c2aeb);const _0x332cac=_0x93f04[_0x31da4c(0x1fa)](_0x2a9f0e,_0x460655);while(_0x2a9f0e<_0x332cac){const [_0x595b81,_0x5c2397]=readId(_0x2256c3,_0x2a9f0e),[_0x46a074,_0x5f1d2f]=_0x93f04['GFyIP'](readVint,_0x2256c3,_0x2a9f0e+_0x5c2397);if(_0x595b81===ID_TIMESTAMP_SCALE)return _0x93f04['jYqbz'](readUint,_0x2256c3,_0x93f04[_0x31da4c(0x1c5)](_0x93f04[_0x31da4c(0x1fa)](_0x2a9f0e,_0x5c2397),_0x5f1d2f),_0x46a074);_0x2a9f0e+=_0x93f04[_0x31da4c(0x1c8)](_0x5c2397,_0x5f1d2f)+_0x46a074;}break;}if(_0x29f665===ID_CLUSTER)break;if(_0x93f04[_0x31da4c(0x1ed)](isUnknownSize,_0x460655,_0x3c2aeb))break;_0x379c02+=_0x93f04[_0x31da4c(0x1c8)](_0xa33177+_0x3c2aeb,_0x460655);}return 0xf4240;}function findFirstClusterOffset(_0x28c43f,_0x955a63){const _0x9fd6ba=_0xd240,_0x4e588e={'YAaxl':function(_0x41fe8a,_0x3c74d1,_0x25a834){return _0x41fe8a(_0x3c74d1,_0x25a834);},'rzdnT':function(_0x486bf7,_0x5ffa1e){return _0x486bf7===_0x5ffa1e;},'SxMFc':function(_0x151fd5,_0x410f56){return _0x151fd5+_0x410f56;}};let _0x57651f=_0x955a63;while(_0x57651f<_0x28c43f[_0x9fd6ba(0x202)]){const [_0x46447d,_0x1d2970]=_0x4e588e[_0x9fd6ba(0x1e4)](readId,_0x28c43f,_0x57651f);if(_0x4e588e[_0x9fd6ba(0x1fd)](_0x46447d,ID_CLUSTER))return _0x57651f;const [_0x3ab9b0,_0x5a8d2e]=_0x4e588e[_0x9fd6ba(0x1e4)](readVint,_0x28c43f,_0x4e588e[_0x9fd6ba(0x1cc)](_0x57651f,_0x1d2970));if(isUnknownSize(_0x3ab9b0,_0x5a8d2e))return _0x57651f;_0x57651f+=_0x1d2970+_0x5a8d2e+_0x3ab9b0;}return _0x28c43f['length'];}function findClusterEnd(_0x13b52e,_0x514284,_0x109fa8,_0x54fe94){const _0x3673de=_0xd240,_0x38f58d={'VKCfs':function(_0x746607,_0x173192,_0x28ce83){return _0x746607(_0x173192,_0x28ce83);},'YpOKi':function(_0x324454,_0x32105d){return _0x324454<_0x32105d;},'oGHox':function(_0x4affc8,_0x3a7cdc){return _0x4affc8-_0x3a7cdc;},'zDtIn':function(_0x20dabb,_0x5bf22d){return _0x20dabb+_0x5bf22d;},'tkycq':function(_0x390b4a,_0x1c0404,_0x462cac){return _0x390b4a(_0x1c0404,_0x462cac);},'xQbre':function(_0x457e36,_0x32153e){return _0x457e36+_0x32153e;}};if(!_0x38f58d['VKCfs'](isUnknownSize,_0x109fa8,_0x54fe94))return _0x514284+_0x109fa8;const _0xfcc2d9=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x283177=_0x514284;while(_0x38f58d[_0x3673de(0x1fc)](_0x283177,_0x38f58d[_0x3673de(0x1ea)](_0x13b52e['length'],0x4))){const [_0x80321a,_0x3f7215]=readId(_0x13b52e,_0x283177);if(_0xfcc2d9['has'](_0x80321a))return _0x283177;const [_0x284f23,_0x5e04be]=_0x38f58d[_0x3673de(0x1c1)](readVint,_0x13b52e,_0x38f58d['zDtIn'](_0x283177,_0x3f7215));if(_0x38f58d[_0x3673de(0x1e7)](isUnknownSize,_0x284f23,_0x5e04be))return _0x13b52e[_0x3673de(0x202)];_0x283177+=_0x38f58d[_0x3673de(0x1ca)](_0x38f58d[_0x3673de(0x1f3)](_0x3f7215,_0x5e04be),_0x284f23);}return _0x13b52e[_0x3673de(0x202)];}function extractClusters(_0x608929,_0x2d5a23){const _0x57707c=_0xd240,_0x552e7f={'IUWbJ':function(_0x5f50d0,_0x3e0cff){return _0x5f50d0<_0x3e0cff;},'kdGrC':function(_0x818ac3,_0x126092,_0x36fbc2){return _0x818ac3(_0x126092,_0x36fbc2);},'lPbbJ':function(_0x438210,_0x2fd3bd){return _0x438210!==_0x2fd3bd;},'nByKm':function(_0x5761b9,_0x4f77e8){return _0x5761b9+_0x4f77e8;},'xwrvg':function(_0x4cae32,_0x2fef2a,_0x1c224b,_0x307ec5,_0x1d517f){return _0x4cae32(_0x2fef2a,_0x1c224b,_0x307ec5,_0x1d517f);},'brLJz':function(_0x400d85,_0x53924b){return _0x400d85<_0x53924b;},'gMLKR':function(_0x56f411,_0x5004b5,_0x52231f){return _0x56f411(_0x5004b5,_0x52231f);},'TntcY':function(_0xa4b7be,_0x36a50a){return _0xa4b7be+_0x36a50a;},'OBpdF':function(_0x4e9306,_0x1c6ffb,_0x4df9fb){return _0x4e9306(_0x1c6ffb,_0x4df9fb);},'sPmpJ':function(_0x248215,_0x5ee05f){return _0x248215+_0x5ee05f;},'CywTs':function(_0x3b3653,_0xbb8de4,_0x3209ce){return _0x3b3653(_0xbb8de4,_0x3209ce);},'MZBag':function(_0x268926,_0x9e6702){return _0x268926+_0x9e6702;},'LiQPF':function(_0x1d2b2a,_0x1e167e){return _0x1d2b2a+_0x1e167e;},'TiVpQ':function(_0x1ed22a,_0x594b33){return _0x1ed22a>_0x594b33;}},_0x542965=[],_0x129480=Buffer[_0x57707c(0x1d6)]([0x1f,0x43,0xb6,0x75]);let _0x223b26=0x0;while(_0x552e7f['IUWbJ'](_0x223b26,_0x608929['length'])){const _0x145f41=_0x608929[_0x57707c(0x1ff)](_0x129480,_0x223b26);if(_0x145f41===-0x1)break;const [_0x444bca,_0x418bea]=_0x552e7f[_0x57707c(0x1c9)](readId,_0x608929,_0x145f41);if(_0x552e7f[_0x57707c(0x1dc)](_0x444bca,ID_CLUSTER)){_0x223b26=_0x552e7f['nByKm'](_0x145f41,0x1);continue;}const [_0x3c2c49,_0x23dd54]=readVint(_0x608929,_0x145f41+_0x418bea),_0x242748=_0x145f41+_0x418bea+_0x23dd54,_0x2a975b=_0x552e7f['xwrvg'](findClusterEnd,_0x608929,_0x242748,_0x3c2c49,_0x23dd54);let _0x140c55=_0x242748,_0x330def=0x0,_0x2f8b0d=0x2,_0x1c3007=![],_0x331b99=Buffer['alloc'](0x0),_0x2a0e20=Buffer[_0x57707c(0x1ce)](0x0);while(_0x552e7f['brLJz'](_0x140c55,_0x2a975b)){const [_0x2552f1,_0x1c1fc9]=_0x552e7f[_0x57707c(0x208)](readId,_0x608929,_0x140c55),[_0x2f908e,_0x584f88]=_0x552e7f[_0x57707c(0x208)](readVint,_0x608929,_0x552e7f['nByKm'](_0x140c55,_0x1c1fc9));if(_0x2552f1===ID_TIMESTAMP){_0x330def=readUint(_0x608929,_0x552e7f[_0x57707c(0x1e1)](_0x140c55+_0x1c1fc9,_0x584f88),_0x2f908e),_0x2f8b0d=_0x2f908e,_0x1c3007=!![],_0x331b99=_0x608929[_0x57707c(0x1e3)](_0x242748,_0x140c55);const _0xcdd01b=_0x552e7f['TntcY'](_0x552e7f['TntcY'](_0x140c55,_0x1c1fc9)+_0x584f88,_0x2f908e);_0x2a0e20=_0x608929['slice'](_0xcdd01b,_0x2a975b);break;}if(_0x2552f1===ID_CLUSTER)break;if(_0x552e7f[_0x57707c(0x203)](isUnknownSize,_0x2f908e,_0x584f88))break;_0x140c55+=_0x552e7f[_0x57707c(0x1e1)](_0x552e7f['sPmpJ'](_0x1c1fc9,_0x584f88),_0x2f908e);}!_0x1c3007&&(_0x2a0e20=_0x608929['slice'](_0x242748,_0x2a975b));let _0x13c5ab=_0x330def;_0x140c55=_0x242748;while(_0x140c55<_0x2a975b){const [_0x3a78d1,_0xaae479]=_0x552e7f['CywTs'](readId,_0x608929,_0x140c55),[_0x43d810,_0xa4c3c9]=_0x552e7f[_0x57707c(0x208)](readVint,_0x608929,_0x552e7f['nByKm'](_0x140c55,_0xaae479));if(_0x3a78d1===ID_SIMPLE_BLOCK&&_0x43d810>=0x4){const _0x597e97=_0x552e7f[_0x57707c(0x1f8)](_0x140c55,_0xaae479)+_0xa4c3c9,[,_0x143b06]=_0x552e7f['OBpdF'](readVint,_0x608929,_0x597e97),_0x2b7b28=_0x608929[_0x57707c(0x1f9)](_0x552e7f['LiQPF'](_0x597e97,_0x143b06)),_0x22945e=_0x330def+_0x2b7b28;if(_0x552e7f[_0x57707c(0x1c7)](_0x22945e,_0x13c5ab))_0x13c5ab=_0x22945e;}if(_0x3a78d1===ID_CLUSTER)break;if(_0x552e7f[_0x57707c(0x208)](isUnknownSize,_0x43d810,_0xa4c3c9))break;_0x140c55+=_0xaae479+_0xa4c3c9+_0x43d810;}_0x542965[_0x57707c(0x1cd)]({'timestamp':_0x330def,'maxTicks':_0x13c5ab,'bodyBeforeTimestamp':_0x331b99,'bodyAfterTimestamp':_0x2a0e20,'timestampElementSize':_0x2f8b0d}),_0x223b26=_0x2a975b;}return _0x542965;}function parseWebm(_0x13040c){const _0x30f842=_0xd240,_0x495e85={'GvfZn':function(_0x5d9f67,_0x399300,_0x1e192e){return _0x5d9f67(_0x399300,_0x1e192e);},'sMQqv':function(_0x41cf05,_0x5ba10e){return _0x41cf05+_0x5ba10e;},'Powwn':function(_0x160439,_0x3b814d){return _0x160439+_0x3b814d;},'fbkMK':function(_0x11d0d0,_0x25bd88){return _0x11d0d0!==_0x25bd88;},'gDSMB':function(_0x54c2b2,_0x34c327,_0x5d3e07){return _0x54c2b2(_0x34c327,_0x5d3e07);},'UPvOF':function(_0x5c4cdc,_0x12e5d4,_0x59f1b6){return _0x5c4cdc(_0x12e5d4,_0x59f1b6);}};let _0x332951=0x0;const [,_0x2c9ba5]=readId(_0x13040c,_0x332951),[_0x4cbcca,_0x24bbd6]=_0x495e85[_0x30f842(0x1c2)](readVint,_0x13040c,_0x332951+_0x2c9ba5);_0x332951+=_0x495e85[_0x30f842(0x1dd)](_0x495e85['Powwn'](_0x2c9ba5,_0x24bbd6),_0x4cbcca);const [_0xddda42,_0x12253b]=readId(_0x13040c,_0x332951);if(_0x495e85[_0x30f842(0x1ec)](_0xddda42,ID_SEGMENT))return null;const [,_0x53195f]=_0x495e85['gDSMB'](readVint,_0x13040c,_0x332951+_0x12253b),_0x47e163=_0x332951+_0x12253b+_0x53195f,_0x591408=_0x495e85['UPvOF'](findTimestampScale,_0x13040c,_0x47e163),_0x3d008b=findFirstClusterOffset(_0x13040c,_0x47e163),_0x1f4eab=_0x13040c[_0x30f842(0x1e3)](0x0,_0x3d008b),_0x49e747=_0x495e85['GvfZn'](extractClusters,_0x13040c,_0x591408);let _0x3fd351=0x0;for(const _0x2a411b of _0x49e747){if(_0x2a411b['maxTicks']>_0x3fd351)_0x3fd351=_0x2a411b[_0x30f842(0x1f6)];}return{'header':_0x1f4eab,'clusters':_0x49e747,'timestampScale':_0x591408,'maxTimestampTicks':_0x3fd351};}function buildCluster(_0xc7c3f9,_0x1bf448,_0x400da0){const _0x23a8df=_0xd240,_0x105526={'BTdod':function(_0x55694c,_0x4007d9){return _0x55694c(_0x4007d9);},'itWoB':function(_0x4de6fc,_0x1ee1e2){return _0x4de6fc(_0x1ee1e2);},'LGnca':function(_0x1fdd2c,_0x3435a,_0x595507){return _0x1fdd2c(_0x3435a,_0x595507);},'mysJy':function(_0x406543,_0x4baf65){return _0x406543(_0x4baf65);}},_0x1eb449=Buffer['from']([0x1f,0x43,0xb6,0x75]),_0x29bffa=Math[_0x23a8df(0x1d0)](0x4,_0x105526[_0x23a8df(0x20b)](uintSize,_0xc7c3f9)),_0x85dce0=Buffer[_0x23a8df(0x1e8)]([Buffer['from']([ID_TIMESTAMP]),_0x105526['itWoB'](writeVint,_0x29bffa),_0x105526['LGnca'](writeUint,_0xc7c3f9,_0x29bffa)]),_0x4ca6ed=Buffer[_0x23a8df(0x1e8)]([_0x1bf448,_0x85dce0,_0x400da0]),_0x5c29f1=_0x105526['mysJy'](writeVint,_0x4ca6ed[_0x23a8df(0x202)]);return Buffer['concat']([_0x1eb449,_0x5c29f1,_0x4ca6ed]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x3af550){const _0x61cd2c=_0xd240,_0x14ab48={'fYbUV':function(_0x466d14,_0x3ab614,_0x539fe2){return _0x466d14(_0x3ab614,_0x539fe2);},'jDEjG':function(_0x4fee76,_0x1a7625){return _0x4fee76+_0x1a7625;},'hcEpt':function(_0xfc2800,_0x3e18d9,_0x55278a){return _0xfc2800(_0x3e18d9,_0x55278a);},'AAhzq':function(_0x46d069,_0x21c9b2){return _0x46d069+_0x21c9b2;},'uEzTX':function(_0x4a7ad3,_0x57d99b){return _0x4a7ad3(_0x57d99b);},'gdBVp':function(_0x216c0d,_0x11f3f8){return _0x216c0d<_0x11f3f8;},'pJDSC':function(_0x1a4e94,_0xfa9078,_0x362f86){return _0x1a4e94(_0xfa9078,_0x362f86);},'VSCYa':function(_0x33e5f1,_0x2660cd){return _0x33e5f1===_0x2660cd;},'thyHp':function(_0xfd2ec9,_0x2fe0c7){return _0xfd2ec9<_0x2fe0c7;},'gtwgT':function(_0x434947,_0x41d7f5){return _0x434947+_0x41d7f5;}},_0x43c57e=Buffer['from'](_0x3af550);let _0x4f017c=0x0;const [,_0x3a9c56]=_0x14ab48['fYbUV'](readId,_0x43c57e,_0x4f017c),[_0x24d6fb,_0x3029ae]=readVint(_0x43c57e,_0x4f017c+_0x3a9c56),_0x1b4db1=_0x14ab48['jDEjG'](_0x14ab48['jDEjG'](_0x4f017c+_0x3a9c56,_0x3029ae),_0x24d6fb),[,_0xc64f4]=_0x14ab48['hcEpt'](readId,_0x43c57e,_0x1b4db1),[,_0x42916f]=_0x14ab48['fYbUV'](readVint,_0x43c57e,_0x1b4db1+_0xc64f4),_0x13f5b4=_0x14ab48['AAhzq'](_0x1b4db1+_0xc64f4,_0x42916f),_0xd9c4cf=_0x14ab48[_0x61cd2c(0x1d7)](writeUnknownSizeVint,_0x42916f);_0xd9c4cf['copy'](_0x43c57e,_0x1b4db1+_0xc64f4);let _0x3f6fe1=_0x13f5b4;const _0x4d2467=Math['min'](_0x43c57e[_0x61cd2c(0x202)],_0x13f5b4+0x2710);while(_0x14ab48['gdBVp'](_0x3f6fe1,_0x4d2467)){const [_0x2e18db,_0x1142a7]=_0x14ab48['hcEpt'](readId,_0x43c57e,_0x3f6fe1),[_0x4718f9,_0x3f530c]=readVint(_0x43c57e,_0x14ab48['AAhzq'](_0x3f6fe1,_0x1142a7));if(_0x2e18db===ID_CLUSTER)break;if(_0x14ab48[_0x61cd2c(0x1e2)](isUnknownSize,_0x4718f9,_0x3f530c))break;if(_0x14ab48['VSCYa'](_0x2e18db,ID_INFO)){const _0x3bb3dd=_0x14ab48['jDEjG'](_0x14ab48[_0x61cd2c(0x1c0)](_0x3f6fe1,_0x1142a7),_0x3f530c),_0x722bd1=_0x14ab48['AAhzq'](_0x3bb3dd,_0x4718f9),_0x3495b9=[];let _0x463ac2=_0x3bb3dd;while(_0x14ab48['thyHp'](_0x463ac2,_0x722bd1)){const [_0x312514,_0x58fd71]=readId(_0x43c57e,_0x463ac2),[_0x393ad3,_0x2e4606]=readVint(_0x43c57e,_0x463ac2+_0x58fd71),_0x8fd38e=_0x14ab48[_0x61cd2c(0x209)](_0x58fd71,_0x2e4606)+_0x393ad3;_0x312514!==ID_DURATION&&_0x3495b9['push'](_0x43c57e['slice'](_0x463ac2,_0x14ab48[_0x61cd2c(0x1d2)](_0x463ac2,_0x8fd38e))),_0x463ac2+=_0x8fd38e;}const _0xf38e52=Buffer[_0x61cd2c(0x1e8)](_0x3495b9),_0xb42212=Buffer[_0x61cd2c(0x1e8)]([_0x43c57e[_0x61cd2c(0x1e3)](_0x3f6fe1,_0x3f6fe1+_0x1142a7),writeVint(_0xf38e52['length'],_0x3f530c)]);return Buffer[_0x61cd2c(0x1e8)]([_0x43c57e['slice'](0x0,_0x3f6fe1),_0xb42212,_0xf38e52,_0x43c57e[_0x61cd2c(0x1e3)](_0x722bd1)]);}_0x3f6fe1+=_0x14ab48['jDEjG'](_0x1142a7,_0x3f530c)+_0x4718f9;}return _0x43c57e;}export function stitchWebmFiles(_0x3ead00,_0x30bd06){const _0x4f55de=_0xd240,_0x2973a9={'pMFta':function(_0x485252,_0x1733ec){return _0x485252(_0x1733ec);},'xEwkk':function(_0x491277,_0x326ffa){return _0x491277+_0x326ffa;},'fLCZp':function(_0x266649,_0x51dfc7,_0x55f5b5,_0xb2f262){return _0x266649(_0x51dfc7,_0x55f5b5,_0xb2f262);}};if(_0x3ead00['length']<=0x1)return![];const _0x470c2c=[];for(const _0x36c0bf of _0x3ead00){const _0x52bd94=_0x2973a9['pMFta'](readFileSync,_0x36c0bf),_0x373355=parseWebm(_0x52bd94);if(!_0x373355||_0x373355[_0x4f55de(0x1e0)]['length']===0x0)return![];_0x470c2c['push'](_0x373355);}const _0x46fe62=_0x470c2c[0x0],_0x34f675=_0x2973a9['pMFta'](rebuildHeaderWithoutDuration,_0x46fe62[_0x4f55de(0x1d9)]),_0x3848c7=[_0x34f675];let _0x358145=0x0;for(let _0x311fcc=0x0;_0x311fcc<_0x470c2c[_0x4f55de(0x202)];_0x311fcc++){const _0x56fe9d=_0x470c2c[_0x311fcc];for(const _0x1b21a7 of _0x56fe9d['clusters']){const _0x58da61=_0x2973a9['xEwkk'](_0x1b21a7['timestamp'],_0x358145);_0x3848c7['push'](_0x2973a9[_0x4f55de(0x201)](buildCluster,_0x58da61,_0x1b21a7[_0x4f55de(0x207)],_0x1b21a7[_0x4f55de(0x1e5)]));}const _0x3d23e9=0x1e;_0x358145+=_0x2973a9['xEwkk'](_0x56fe9d[_0x4f55de(0x1db)],_0x3d23e9);}return writeFileSync(_0x30bd06,Buffer[_0x4f55de(0x1e8)](_0x3848c7)),!![];}if(process['argv'][0x1]?.['endsWith']('stitchWebmFiles.ts')||process[_0x162add(0x1d3)][0x1]?.[_0x162add(0x1ef)](_0x162add(0x1f4))){const args=process['argv']['slice'](0x2);args[_0x162add(0x202)]<0x3&&(console['error'](_0x162add(0x20a)),process[_0x162add(0x205)](0x1));const output=args[args['length']-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x162add(0x1df)](_0x162add(0x200)+inputs['length']+_0x162add(0x1d8)+output):console[_0x162add(0x1df)](_0x162add(0x1c4));}
1
+ const _0x17e4c8=_0x18b4;function _0x18b4(_0x1114e9,_0x570a83){_0x1114e9=_0x1114e9-0xe7;const _0x5e9af8=_0x5e9a();let _0x18b4eb=_0x5e9af8[_0x1114e9];return _0x18b4eb;}(function(_0x885b96,_0x425b1b){const _0x14ad40=_0x18b4,_0x506769=_0x885b96();while(!![]){try{const _0x4eaf26=-parseInt(_0x14ad40(0x104))/0x1*(-parseInt(_0x14ad40(0x122))/0x2)+-parseInt(_0x14ad40(0x101))/0x3*(parseInt(_0x14ad40(0xee))/0x4)+-parseInt(_0x14ad40(0x100))/0x5+-parseInt(_0x14ad40(0xf4))/0x6*(parseInt(_0x14ad40(0x114))/0x7)+parseInt(_0x14ad40(0x111))/0x8+-parseInt(_0x14ad40(0x112))/0x9+parseInt(_0x14ad40(0xfd))/0xa;if(_0x4eaf26===_0x425b1b)break;else _0x506769['push'](_0x506769['shift']());}catch(_0x5531a9){_0x506769['push'](_0x506769['shift']());}}}(_0x5e9a,0x7108c));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(_0x120ec6,_0x4d57e0){const _0x5de613=_0x18b4,_0x1f9d82={'wLjgO':function(_0xfa7908,_0x5debf1){return _0xfa7908>=_0x5debf1;},'UHDls':function(_0x2492e1,_0x18c8e1){return _0x2492e1<=_0x18c8e1;},'YKGDk':function(_0x1eb2e0,_0x2cea5c){return _0x1eb2e0&_0x2cea5c;},'ELjRz':function(_0x403041,_0x53486a){return _0x403041>_0x53486a;},'TdVTL':function(_0x50e61b,_0x3daf64){return _0x50e61b&_0x3daf64;},'uEIfR':function(_0x2a4823,_0x3beaf0){return _0x2a4823-_0x3beaf0;},'UnMKh':function(_0xb8b950,_0x14e3bb){return _0xb8b950<_0x14e3bb;},'PNeiU':function(_0x1aa941,_0x3f5988){return _0x1aa941*_0x3f5988;},'xbvcz':function(_0x659e55,_0x397237){return _0x659e55+_0x397237;}};if(_0x1f9d82['wLjgO'](_0x4d57e0,_0x120ec6['length']))return[0x0,0x0];const _0x4ba5a2=_0x120ec6[_0x4d57e0];let _0x106d6b=0x1,_0x977e03=0x80;while(_0x1f9d82[_0x5de613(0xe9)](_0x106d6b,0x8)&&!_0x1f9d82['YKGDk'](_0x4ba5a2,_0x977e03)){_0x106d6b++,_0x977e03>>=0x1;}if(_0x1f9d82[_0x5de613(0x10c)](_0x4d57e0+_0x106d6b,_0x120ec6[_0x5de613(0x12c)]))return[0x0,0x0];let _0x50d4e6=_0x1f9d82[_0x5de613(0xf0)](_0x4ba5a2,_0x1f9d82[_0x5de613(0xfe)](_0x977e03,0x1));for(let _0x57b417=0x1;_0x1f9d82['UnMKh'](_0x57b417,_0x106d6b);_0x57b417++){_0x50d4e6=_0x1f9d82['PNeiU'](_0x50d4e6,0x100)+_0x120ec6[_0x1f9d82[_0x5de613(0xfb)](_0x4d57e0,_0x57b417)];}return[_0x50d4e6,_0x106d6b];}function readId(_0x7682c5,_0x3cc641){const _0x4397ac=_0x18b4,_0x4d40f0={'qptuV':function(_0x5b5806,_0x46282a){return _0x5b5806>=_0x46282a;},'RjwTI':function(_0x526a5d,_0x33c4e2){return _0x526a5d>_0x33c4e2;},'IUpAL':function(_0x304bd7,_0x2f5253){return _0x304bd7+_0x2f5253;},'AoAMm':function(_0x37d2b5,_0x5a79e4){return _0x37d2b5<_0x5a79e4;},'pvmMt':function(_0x5d8958,_0x51b432){return _0x5d8958+_0x51b432;}};if(_0x3cc641>=_0x7682c5['length'])return[0x0,0x0];const _0x3a9bfe=_0x7682c5[_0x3cc641];let _0x53696b;if(_0x3a9bfe>=0x80)_0x53696b=0x1;else{if(_0x4d40f0[_0x4397ac(0x115)](_0x3a9bfe,0x40))_0x53696b=0x2;else{if(_0x3a9bfe>=0x20)_0x53696b=0x3;else{if(_0x3a9bfe>=0x10)_0x53696b=0x4;else return[_0x3a9bfe,0x1];}}}if(_0x4d40f0['RjwTI'](_0x4d40f0[_0x4397ac(0x126)](_0x3cc641,_0x53696b),_0x7682c5[_0x4397ac(0x12c)]))return[0x0,0x0];let _0x445532=0x0;for(let _0x3ab8df=0x0;_0x4d40f0['AoAMm'](_0x3ab8df,_0x53696b);_0x3ab8df++){_0x445532=_0x4d40f0[_0x4397ac(0x10e)](_0x445532*0x100,_0x7682c5[_0x4d40f0['IUpAL'](_0x3cc641,_0x3ab8df)]);}return[_0x445532,_0x53696b];}function readUint(_0x4d2496,_0x1d0bc5,_0xeb0d33){const _0x76a36d=_0x18b4,_0x458513={'LGaiH':function(_0x1410cd,_0x3fb2ae){return _0x1410cd<_0x3fb2ae;},'ZhOTU':function(_0x2718f4,_0x515b8a){return _0x2718f4+_0x515b8a;},'MBGZn':function(_0xbe03ab,_0x15ff62){return _0xbe03ab*_0x15ff62;}};let _0x7fbcdf=0x0;for(let _0x3c7199=0x0;_0x458513[_0x76a36d(0x10b)](_0x3c7199,_0xeb0d33);_0x3c7199++){_0x7fbcdf=_0x458513[_0x76a36d(0x119)](_0x458513['MBGZn'](_0x7fbcdf,0x100),_0x4d2496[_0x1d0bc5+_0x3c7199]);}return _0x7fbcdf;}function isUnknownSize(_0x2e45f1,_0x23c8ca){const _0x5e882e=_0x18b4,_0x4447dd={'eNHat':function(_0x1beba6,_0x37023e){return _0x1beba6*_0x37023e;}};return _0x2e45f1===Math[_0x5e882e(0xea)](0x2,_0x4447dd['eNHat'](0x7,_0x23c8ca))-0x1;}function writeVint(_0x3b6b54,_0x57bf53){const _0x1fec79=_0x18b4,_0x2c6ace={'FXfeB':function(_0x5474e1,_0x40b343){return _0x5474e1||_0x40b343;},'UHQwB':function(_0x38b06c,_0x329cd1){return _0x38b06c<_0x329cd1;},'TPmRl':function(_0x1e2260,_0x11f720){return _0x1e2260-_0x11f720;},'SPvXn':function(_0x21690b,_0x287545){return _0x21690b*_0x287545;},'ADDBR':function(_0x3a247b,_0x3afb47){return _0x3a247b-_0x3afb47;},'fiUTr':function(_0x3f09f7,_0x2db6c6){return _0x3f09f7&_0x2db6c6;},'LkTou':function(_0x1dee12,_0x1b72c1){return _0x1dee12<<_0x1b72c1;}};let _0x45d27d=_0x2c6ace['FXfeB'](_0x57bf53,0x1);while(_0x2c6ace[_0x1fec79(0x124)](_0x2c6ace['TPmRl'](Math[_0x1fec79(0xea)](0x2,_0x2c6ace[_0x1fec79(0x107)](0x7,_0x45d27d)),0x2),_0x3b6b54))_0x45d27d++;const _0x5ec5fd=Buffer[_0x1fec79(0x11b)](_0x45d27d);for(let _0x542e27=_0x2c6ace[_0x1fec79(0x12d)](_0x45d27d,0x1);_0x542e27>=0x0;_0x542e27--){_0x5ec5fd[_0x542e27]=_0x2c6ace['fiUTr'](_0x3b6b54,0xff),_0x3b6b54=Math[_0x1fec79(0xfc)](_0x3b6b54/0x100);}return _0x5ec5fd[0x0]|=_0x2c6ace['LkTou'](0x1,0x8-_0x45d27d),_0x5ec5fd;}function _0x5e9a(){const _0x57d117=['UHDls','pow','cUpxT','Stitched\x20','argv','4unJemA','CJfNZ','TdVTL','copy','header','MPzxV','329790aOPuHw','log','from','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','USOZM','jJZri','concat','xbvcz','floor','11799510PttvOh','uEIfR','readInt16BE','4063200LyilDO','517383HSXugE','\x20files\x20->\x20','clusters','2PnPtDp','FWZes','jgAfk','SPvXn','vFnDz','exit','wfMWM','LGaiH','ELjRz','KnGxn','pvmMt','slice','VdExO','4400504RlheHz','2484162huyKuN','BIiKC','49xMsfdW','qptuV','wjtOR','FqKeQ','Evsxp','ZhOTU','max','alloc','xDHZt','push','endsWith','mkMhm','min','DZjno','378848hgPeif','PeGkQ','UHQwB','xZLpR','IUpAL','lrcyg','nnzzi','error','bodyAfterTimestamp','VuiRb','length','ADDBR','maxTimestampTicks','IjmVu'];_0x5e9a=function(){return _0x57d117;};return _0x5e9a();}function writeUint(_0x54fa3d,_0x4618ad){const _0x1f8281=_0x18b4,_0x59876c={'OsuJV':function(_0x1f9f3c,_0x56e710){return _0x1f9f3c-_0x56e710;}},_0x178b5d=Buffer['alloc'](_0x4618ad);for(let _0x559aed=_0x59876c['OsuJV'](_0x4618ad,0x1);_0x559aed>=0x0;_0x559aed--){_0x178b5d[_0x559aed]=_0x54fa3d&0xff,_0x54fa3d=Math[_0x1f8281(0xfc)](_0x54fa3d/0x100);}return _0x178b5d;}function writeUnknownSizeVint(_0x13e324){const _0x2326fb={'PjGWt':function(_0x3abaa4,_0x2794ec){return _0x3abaa4-_0x2794ec;}},_0x36219c=Buffer['alloc'](_0x13e324,0xff);return _0x36219c[0x0]=0xff>>_0x2326fb['PjGWt'](_0x13e324,0x1),_0x36219c;}function uintSize(_0x7d7740){const _0x50a338=_0x18b4,_0x521ecf={'cUpxT':function(_0x50cc96,_0x1a222c){return _0x50cc96===_0x1a222c;}};if(_0x521ecf[_0x50a338(0xeb)](_0x7d7740,0x0))return 0x1;let _0x4bf6b4=0x0,_0x498666=_0x7d7740;while(_0x498666>0x0){_0x4bf6b4++,_0x498666=Math['floor'](_0x498666/0x100);}return _0x4bf6b4;}function findTimestampScale(_0xb39c7b,_0x4a58bf){const _0x153d5e=_0x18b4,_0x25ee05={'FWZes':function(_0x4b9173,_0x4820c8){return _0x4b9173<_0x4820c8;},'mkMhm':function(_0x2e263b,_0x349f8a,_0x22d669){return _0x2e263b(_0x349f8a,_0x22d669);},'nnzzi':function(_0x2c9677,_0x5c2946){return _0x2c9677+_0x5c2946;},'YuOiD':function(_0x3875b3,_0x1f6419,_0x4fcabc,_0x286d03){return _0x3875b3(_0x1f6419,_0x4fcabc,_0x286d03);},'xDHZt':function(_0x22f766,_0x139462){return _0x22f766===_0x139462;}};let _0x4ea35a=_0x4a58bf;const _0x3fa236=Math['min'](_0xb39c7b['length'],_0x4a58bf+0x2710);while(_0x25ee05['FWZes'](_0x4ea35a,_0x3fa236)){const [_0x1c2db4,_0x46c9e2]=_0x25ee05['mkMhm'](readId,_0xb39c7b,_0x4ea35a),[_0x41e705,_0x2a3cae]=readVint(_0xb39c7b,_0x4ea35a+_0x46c9e2);if(_0x1c2db4===ID_INFO){let _0x5cc5d4=_0x4ea35a+_0x46c9e2+_0x2a3cae;const _0xfc1ec5=_0x5cc5d4+_0x41e705;while(_0x25ee05[_0x153d5e(0x105)](_0x5cc5d4,_0xfc1ec5)){const [_0x4f5535,_0x108fe7]=readId(_0xb39c7b,_0x5cc5d4),[_0x2863f2,_0x597014]=_0x25ee05[_0x153d5e(0x11f)](readVint,_0xb39c7b,_0x25ee05['nnzzi'](_0x5cc5d4,_0x108fe7));if(_0x4f5535===ID_TIMESTAMP_SCALE)return _0x25ee05['YuOiD'](readUint,_0xb39c7b,_0x25ee05['nnzzi'](_0x5cc5d4+_0x108fe7,_0x597014),_0x2863f2);_0x5cc5d4+=_0x25ee05['nnzzi'](_0x108fe7,_0x597014)+_0x2863f2;}break;}if(_0x25ee05[_0x153d5e(0x11c)](_0x1c2db4,ID_CLUSTER))break;if(isUnknownSize(_0x41e705,_0x2a3cae))break;_0x4ea35a+=_0x25ee05[_0x153d5e(0x128)](_0x46c9e2,_0x2a3cae)+_0x41e705;}return 0xf4240;}function findFirstClusterOffset(_0x227dad,_0x37c255){const _0x35b366=_0x18b4,_0x56e62e={'VdExO':function(_0x8c2139,_0x4585e5){return _0x8c2139===_0x4585e5;},'ZKFVV':function(_0x535dcb,_0x490ca6,_0x205128){return _0x535dcb(_0x490ca6,_0x205128);},'PeGkQ':function(_0x39e644,_0x29c700){return _0x39e644+_0x29c700;}};let _0x42673e=_0x37c255;while(_0x42673e<_0x227dad[_0x35b366(0x12c)]){const [_0x3ad23a,_0x110c2e]=readId(_0x227dad,_0x42673e);if(_0x56e62e[_0x35b366(0x110)](_0x3ad23a,ID_CLUSTER))return _0x42673e;const [_0xe6b34f,_0xfb1528]=_0x56e62e['ZKFVV'](readVint,_0x227dad,_0x56e62e['PeGkQ'](_0x42673e,_0x110c2e));if(isUnknownSize(_0xe6b34f,_0xfb1528))return _0x42673e;_0x42673e+=_0x56e62e[_0x35b366(0x123)](_0x110c2e,_0xfb1528)+_0xe6b34f;}return _0x227dad[_0x35b366(0x12c)];}function findClusterEnd(_0x1bfc33,_0xb73b90,_0x41838d,_0x4c0f5d){const _0x5a53c4=_0x18b4,_0xd16659={'BIiKC':function(_0x99b636,_0x3944f6,_0x14c589){return _0x99b636(_0x3944f6,_0x14c589);},'KnGxn':function(_0x4b414c,_0xc75db0){return _0x4b414c+_0xc75db0;},'BKoaq':function(_0x42ed3f,_0x36515a){return _0x42ed3f+_0x36515a;}};if(!_0xd16659[_0x5a53c4(0x113)](isUnknownSize,_0x41838d,_0x4c0f5d))return _0xb73b90+_0x41838d;const _0x55fd84=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0xe243ec=_0xb73b90;while(_0xe243ec<_0x1bfc33['length']-0x4){const [_0x28255c,_0x1fab03]=_0xd16659[_0x5a53c4(0x113)](readId,_0x1bfc33,_0xe243ec);if(_0x55fd84['has'](_0x28255c))return _0xe243ec;const [_0x10c5ac,_0x33e219]=readVint(_0x1bfc33,_0xd16659[_0x5a53c4(0x10d)](_0xe243ec,_0x1fab03));if(isUnknownSize(_0x10c5ac,_0x33e219))return _0x1bfc33[_0x5a53c4(0x12c)];_0xe243ec+=_0xd16659['BKoaq'](_0x1fab03+_0x33e219,_0x10c5ac);}return _0x1bfc33[_0x5a53c4(0x12c)];}function extractClusters(_0x54a3a0,_0xfb37df){const _0x106556=_0x18b4,_0x55aa2f={'PfQEq':function(_0x51196f,_0x3a24d5){return _0x51196f===_0x3a24d5;},'BIIui':function(_0x53d12a,_0x5e1bfc,_0x4bb600){return _0x53d12a(_0x5e1bfc,_0x4bb600);},'CJfNZ':function(_0x11c956,_0x15d970,_0x819e81){return _0x11c956(_0x15d970,_0x819e81);},'MPzxV':function(_0x488e6a,_0x52c787){return _0x488e6a+_0x52c787;},'HDaCn':function(_0x42d062,_0x3887eb,_0x339529,_0x2b2416,_0x52e1ca){return _0x42d062(_0x3887eb,_0x339529,_0x2b2416,_0x52e1ca);},'VuiRb':function(_0x4cb10f,_0x141948,_0x2b9a0a,_0x37568e){return _0x4cb10f(_0x141948,_0x2b9a0a,_0x37568e);},'OCllj':function(_0x450433,_0x2acced){return _0x450433>=_0x2acced;},'wjtOR':function(_0x5417ce,_0x226145){return _0x5417ce+_0x226145;},'nWKxT':function(_0x1b855e,_0x4ca401){return _0x1b855e+_0x4ca401;}},_0x285be6=[],_0x8d3427=Buffer[_0x106556(0xf6)]([0x1f,0x43,0xb6,0x75]);let _0x3e904a=0x0;while(_0x3e904a<_0x54a3a0['length']){const _0x13c93d=_0x54a3a0['indexOf'](_0x8d3427,_0x3e904a);if(_0x55aa2f['PfQEq'](_0x13c93d,-0x1))break;const [_0x45a60f,_0x793a40]=_0x55aa2f['BIIui'](readId,_0x54a3a0,_0x13c93d);if(_0x45a60f!==ID_CLUSTER){_0x3e904a=_0x13c93d+0x1;continue;}const [_0x8ee632,_0xbe5622]=_0x55aa2f['CJfNZ'](readVint,_0x54a3a0,_0x13c93d+_0x793a40),_0x5d7851=_0x55aa2f['MPzxV'](_0x13c93d+_0x793a40,_0xbe5622),_0xab57be=_0x55aa2f['HDaCn'](findClusterEnd,_0x54a3a0,_0x5d7851,_0x8ee632,_0xbe5622);let _0x428759=_0x5d7851,_0x25d0c3=0x0,_0x46e2a1=0x2,_0x4f0efc=![],_0x3ef667=Buffer['alloc'](0x0),_0x485fb2=Buffer['alloc'](0x0);while(_0x428759<_0xab57be){const [_0x348e62,_0x4d41a7]=readId(_0x54a3a0,_0x428759),[_0x21bdb9,_0x284d08]=readVint(_0x54a3a0,_0x55aa2f['MPzxV'](_0x428759,_0x4d41a7));if(_0x348e62===ID_TIMESTAMP){_0x25d0c3=_0x55aa2f[_0x106556(0x12b)](readUint,_0x54a3a0,_0x428759+_0x4d41a7+_0x284d08,_0x21bdb9),_0x46e2a1=_0x21bdb9,_0x4f0efc=!![],_0x3ef667=_0x54a3a0['slice'](_0x5d7851,_0x428759);const _0x3ebf1e=_0x428759+_0x4d41a7+_0x284d08+_0x21bdb9;_0x485fb2=_0x54a3a0['slice'](_0x3ebf1e,_0xab57be);break;}if(_0x348e62===ID_CLUSTER)break;if(_0x55aa2f['CJfNZ'](isUnknownSize,_0x21bdb9,_0x284d08))break;_0x428759+=_0x55aa2f[_0x106556(0xf3)](_0x4d41a7,_0x284d08)+_0x21bdb9;}!_0x4f0efc&&(_0x485fb2=_0x54a3a0[_0x106556(0x10f)](_0x5d7851,_0xab57be));let _0x3c88ee=_0x25d0c3;_0x428759=_0x5d7851;while(_0x428759<_0xab57be){const [_0x14f4f2,_0x1a5de8]=readId(_0x54a3a0,_0x428759),[_0x421c0c,_0x1aea39]=_0x55aa2f[_0x106556(0xef)](readVint,_0x54a3a0,_0x428759+_0x1a5de8);if(_0x55aa2f['PfQEq'](_0x14f4f2,ID_SIMPLE_BLOCK)&&_0x55aa2f['OCllj'](_0x421c0c,0x4)){const _0x16a2f8=_0x55aa2f[_0x106556(0x116)](_0x428759+_0x1a5de8,_0x1aea39),[,_0x5a9d42]=readVint(_0x54a3a0,_0x16a2f8),_0x43e006=_0x54a3a0[_0x106556(0xff)](_0x55aa2f['nWKxT'](_0x16a2f8,_0x5a9d42)),_0x51334e=_0x25d0c3+_0x43e006;if(_0x51334e>_0x3c88ee)_0x3c88ee=_0x51334e;}if(_0x14f4f2===ID_CLUSTER)break;if(isUnknownSize(_0x421c0c,_0x1aea39))break;_0x428759+=_0x1a5de8+_0x1aea39+_0x421c0c;}_0x285be6['push']({'timestamp':_0x25d0c3,'maxTicks':_0x3c88ee,'bodyBeforeTimestamp':_0x3ef667,'bodyAfterTimestamp':_0x485fb2,'timestampElementSize':_0x46e2a1}),_0x3e904a=_0xab57be;}return _0x285be6;}function parseWebm(_0xa196a9){const _0x7070ec=_0x18b4,_0x494b2c={'XBfIg':function(_0x38daf9,_0x8927a4,_0x4dd6ac){return _0x38daf9(_0x8927a4,_0x4dd6ac);},'cWuZt':function(_0x4b7d0a,_0x5bace1,_0x13e517){return _0x4b7d0a(_0x5bace1,_0x13e517);},'DZjno':function(_0x37a7cb,_0x3d74a7){return _0x37a7cb+_0x3d74a7;},'Hkdgl':function(_0x2a6738,_0x20cb68,_0xe1ebec){return _0x2a6738(_0x20cb68,_0xe1ebec);},'xZLpR':function(_0x319add,_0x28a143){return _0x319add!==_0x28a143;},'FqKeQ':function(_0x1705a5,_0x597fbd){return _0x1705a5+_0x597fbd;}};let _0x39bf4d=0x0;const [,_0xc3c5b6]=_0x494b2c['XBfIg'](readId,_0xa196a9,_0x39bf4d),[_0x3a0e39,_0xa662a0]=_0x494b2c['cWuZt'](readVint,_0xa196a9,_0x39bf4d+_0xc3c5b6);_0x39bf4d+=_0x494b2c[_0x7070ec(0x121)](_0xc3c5b6,_0xa662a0)+_0x3a0e39;const [_0xbd183c,_0x365c3e]=_0x494b2c['Hkdgl'](readId,_0xa196a9,_0x39bf4d);if(_0x494b2c[_0x7070ec(0x125)](_0xbd183c,ID_SEGMENT))return null;const [,_0x23173a]=readVint(_0xa196a9,_0x494b2c[_0x7070ec(0x117)](_0x39bf4d,_0x365c3e)),_0x3ddc83=_0x494b2c['DZjno'](_0x494b2c[_0x7070ec(0x121)](_0x39bf4d,_0x365c3e),_0x23173a),_0x4c9080=findTimestampScale(_0xa196a9,_0x3ddc83),_0x1df71a=findFirstClusterOffset(_0xa196a9,_0x3ddc83),_0xc9696e=_0xa196a9['slice'](0x0,_0x1df71a),_0x467f86=extractClusters(_0xa196a9,_0x4c9080);let _0x3dde0d=0x0;for(const _0x3877aa of _0x467f86){if(_0x3877aa['maxTicks']>_0x3dde0d)_0x3dde0d=_0x3877aa['maxTicks'];}return{'header':_0xc9696e,'clusters':_0x467f86,'timestampScale':_0x4c9080,'maxTimestampTicks':_0x3dde0d};}function buildCluster(_0x45f3e5,_0x38c7ab,_0x22c3d4){const _0x2e327e=_0x18b4,_0x3adc9b=Buffer[_0x2e327e(0xf6)]([0x1f,0x43,0xb6,0x75]),_0x48d8d8=Math[_0x2e327e(0x11a)](0x4,uintSize(_0x45f3e5)),_0x686f83=Buffer['concat']([Buffer['from']([ID_TIMESTAMP]),writeVint(_0x48d8d8),writeUint(_0x45f3e5,_0x48d8d8)]),_0x54cf4a=Buffer[_0x2e327e(0xfa)]([_0x38c7ab,_0x686f83,_0x22c3d4]),_0x3c1b2d=writeVint(_0x54cf4a[_0x2e327e(0x12c)]);return Buffer['concat']([_0x3adc9b,_0x3c1b2d,_0x54cf4a]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x3b4472){const _0x4110ac=_0x18b4,_0x3c87fe={'wfMWM':function(_0x32973a,_0xbbced0){return _0x32973a+_0xbbced0;},'Evsxp':function(_0x24f089,_0x40947b){return _0x24f089+_0x40947b;},'jJZri':function(_0x58319e,_0x337b90,_0x1e631f){return _0x58319e(_0x337b90,_0x1e631f);},'USOZM':function(_0x7cc929,_0x19fcc5,_0x52ef9a){return _0x7cc929(_0x19fcc5,_0x52ef9a);},'XUkXf':function(_0x1ce816,_0x138a20){return _0x1ce816===_0x138a20;},'lrcyg':function(_0x3dc46d,_0x1a47c4){return _0x3dc46d===_0x1a47c4;},'vFnDz':function(_0x4cd7f8,_0x1d6e58){return _0x4cd7f8+_0x1d6e58;}},_0x2ef201=Buffer[_0x4110ac(0xf6)](_0x3b4472);let _0x3f4b3d=0x0;const [,_0x4ab453]=readId(_0x2ef201,_0x3f4b3d),[_0x147cdc,_0xd30f07]=readVint(_0x2ef201,_0x3f4b3d+_0x4ab453),_0x53bbe2=_0x3c87fe['wfMWM'](_0x3c87fe[_0x4110ac(0x10a)](_0x3f4b3d+_0x4ab453,_0xd30f07),_0x147cdc),[,_0x2d5087]=readId(_0x2ef201,_0x53bbe2),[,_0x2d0de7]=readVint(_0x2ef201,_0x53bbe2+_0x2d5087),_0x28fd4a=_0x3c87fe['Evsxp'](_0x53bbe2+_0x2d5087,_0x2d0de7),_0xca6005=writeUnknownSizeVint(_0x2d0de7);_0xca6005[_0x4110ac(0xf1)](_0x2ef201,_0x3c87fe['wfMWM'](_0x53bbe2,_0x2d5087));let _0x162f93=_0x28fd4a;const _0x5a76e8=Math[_0x4110ac(0x120)](_0x2ef201['length'],_0x28fd4a+0x2710);while(_0x162f93<_0x5a76e8){const [_0x48a959,_0x12b99b]=_0x3c87fe[_0x4110ac(0xf9)](readId,_0x2ef201,_0x162f93),[_0x22f3a2,_0x2e944f]=_0x3c87fe[_0x4110ac(0xf8)](readVint,_0x2ef201,_0x162f93+_0x12b99b);if(_0x3c87fe['XUkXf'](_0x48a959,ID_CLUSTER))break;if(isUnknownSize(_0x22f3a2,_0x2e944f))break;if(_0x3c87fe[_0x4110ac(0x127)](_0x48a959,ID_INFO)){const _0x4224e7=_0x162f93+_0x12b99b+_0x2e944f,_0x440ca9=_0x4224e7+_0x22f3a2,_0x13c6e3=[];let _0x220500=_0x4224e7;while(_0x220500<_0x440ca9){const [_0xf010de,_0x4e7406]=readId(_0x2ef201,_0x220500),[_0x1faa12,_0xd97a7c]=readVint(_0x2ef201,_0x3c87fe['Evsxp'](_0x220500,_0x4e7406)),_0x273880=_0x3c87fe[_0x4110ac(0x108)](_0x4e7406+_0xd97a7c,_0x1faa12);_0xf010de!==ID_DURATION&&_0x13c6e3['push'](_0x2ef201[_0x4110ac(0x10f)](_0x220500,_0x3c87fe['Evsxp'](_0x220500,_0x273880))),_0x220500+=_0x273880;}const _0xe099bf=Buffer[_0x4110ac(0xfa)](_0x13c6e3),_0x228c00=Buffer[_0x4110ac(0xfa)]([_0x2ef201['slice'](_0x162f93,_0x3c87fe['Evsxp'](_0x162f93,_0x12b99b)),_0x3c87fe[_0x4110ac(0xf8)](writeVint,_0xe099bf[_0x4110ac(0x12c)],_0x2e944f)]);return Buffer['concat']([_0x2ef201[_0x4110ac(0x10f)](0x0,_0x162f93),_0x228c00,_0xe099bf,_0x2ef201[_0x4110ac(0x10f)](_0x440ca9)]);}_0x162f93+=_0x3c87fe[_0x4110ac(0x118)](_0x12b99b,_0x2e944f)+_0x22f3a2;}return _0x2ef201;}export function stitchWebmFiles(_0x65d5d,_0x2b6f6b){const _0x14255b=_0x18b4,_0x34c239={'IjmVu':function(_0x5563bc,_0x51463f){return _0x5563bc(_0x51463f);},'jgAfk':function(_0x4d6c6d,_0x5921f5){return _0x4d6c6d===_0x5921f5;},'hgPUf':function(_0x280b7f,_0x22da8f){return _0x280b7f(_0x22da8f);},'aSDTS':function(_0x54c24a,_0xabcc6f){return _0x54c24a<_0xabcc6f;},'bdKUR':function(_0x19097a,_0x46542f,_0x48fb0e){return _0x19097a(_0x46542f,_0x48fb0e);}};if(_0x65d5d['length']<=0x1)return![];const _0x326f33=[];for(const _0x425b9b of _0x65d5d){const _0x12e1e3=readFileSync(_0x425b9b),_0x562571=_0x34c239[_0x14255b(0xe8)](parseWebm,_0x12e1e3);if(!_0x562571||_0x34c239[_0x14255b(0x106)](_0x562571[_0x14255b(0x103)]['length'],0x0))return![];_0x326f33['push'](_0x562571);}const _0x3b5fae=_0x326f33[0x0],_0xd3f772=_0x34c239['hgPUf'](rebuildHeaderWithoutDuration,_0x3b5fae[_0x14255b(0xf2)]),_0x13bb53=[_0xd3f772];let _0x11b980=0x0;for(let _0x513625=0x0;_0x34c239['aSDTS'](_0x513625,_0x326f33[_0x14255b(0x12c)]);_0x513625++){const _0x10b350=_0x326f33[_0x513625];for(const _0x5321fb of _0x10b350['clusters']){const _0xed6fe3=_0x5321fb['timestamp']+_0x11b980;_0x13bb53[_0x14255b(0x11d)](buildCluster(_0xed6fe3,_0x5321fb['bodyBeforeTimestamp'],_0x5321fb[_0x14255b(0x12a)]));}const _0x1f2747=0x1e;_0x11b980+=_0x10b350[_0x14255b(0xe7)]+_0x1f2747;}return _0x34c239['bdKUR'](writeFileSync,_0x2b6f6b,Buffer[_0x14255b(0xfa)](_0x13bb53)),!![];}if(process['argv'][0x1]?.[_0x17e4c8(0x11e)]('stitchWebmFiles.ts')||process[_0x17e4c8(0xed)][0x1]?.[_0x17e4c8(0x11e)]('stitchWebmFiles.js')){const args=process[_0x17e4c8(0xed)]['slice'](0x2);args['length']<0x3&&(console[_0x17e4c8(0x129)]('Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>'),process[_0x17e4c8(0x109)](0x1));const output=args[args['length']-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x17e4c8(0xf5)](_0x17e4c8(0xec)+inputs['length']+_0x17e4c8(0x102)+output):console[_0x17e4c8(0xf5)](_0x17e4c8(0xf7));}
@@ -1 +1 @@
1
- const _0x149399=_0x150c;(function(_0x5d3d5c,_0x3e42b8){const _0x579240=_0x150c,_0x18beca=_0x5d3d5c();while(!![]){try{const _0x2939c8=-parseInt(_0x579240(0x1a4))/0x1*(parseInt(_0x579240(0x198))/0x2)+parseInt(_0x579240(0x1a0))/0x3+-parseInt(_0x579240(0x1a3))/0x4+-parseInt(_0x579240(0x18e))/0x5*(parseInt(_0x579240(0x1a7))/0x6)+-parseInt(_0x579240(0x17d))/0x7+parseInt(_0x579240(0x187))/0x8+parseInt(_0x579240(0x172))/0x9;if(_0x2939c8===_0x3e42b8)break;else _0x18beca['push'](_0x18beca['shift']());}catch(_0x1963da){_0x18beca['push'](_0x18beca['shift']());}}}(_0x369f,0x7a6a1));import{randomUUID}from'crypto';import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';import{homedir}from'os';import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';function _0x369f(){const _0x525abe=['flushAsync','commandStartTime','now','POST','version','2722748YIOqIT','phase','outcome','metadata','durationMs','gNCqc','command','DEBUG','platform','setContext','7922216cwxhsY','NaRMC','stdout','buffer','splice','checklistItemId','/api/v1/mcp/cli-telemetry','245oDfoFe','phaseCounter','sendBatch','env','[telemetry]\x20Sending\x20','constructor','message','isCI','nFjPg','phase_start','1154dJUkaX','push','zGtLX','trackCommandError','trackCommandEnd','HHroP','phaseStartTimes','mzbuc','189378usreya','slice','errorMessage','1355352KsyxfS','1633kIHLFu','UnGUr','cliVersion','106734TNByUu','MxFXL','cRwBR','stringify','sendImmediate','Unknown','LbRfE','flush','commandId','nodeVersion','command_error','transport','name','buildEvent','trackPhaseEnd','abort','WsBIl','success','.session','.ranger','NvJOd','trim','length','Bearer\x20','errorType','\x20event(s)\x20to\x20','utf-8','flushing','browserSessionId','delete','phase_error','isTty','loCjf','17907390RDlDgR','trackPhaseStart','split','featureId','catch','finally'];_0x369f=function(){return _0x525abe;};return _0x369f();}import{getCurrentVersion}from'./version.js';let cachedDeviceId=null;function getDeviceId(){const _0x2af51d=_0x150c,_0x37e01a={'LbRfE':function(_0xfca602,_0x402133,_0x2272c4){return _0xfca602(_0x402133,_0x2272c4);},'UnGUr':_0x2af51d(0x1b9),'loCjf':function(_0x18ee9f){return _0x18ee9f();}};if(cachedDeviceId)return cachedDeviceId;try{const _0x56ee16=join(homedir(),_0x2af51d(0x1ba)),_0x167989=_0x37e01a[_0x2af51d(0x1ad)](join,_0x56ee16,_0x37e01a[_0x2af51d(0x1a5)]);if(existsSync(_0x167989)){cachedDeviceId=readFileSync(_0x167989,_0x2af51d(0x16b))[_0x2af51d(0x166)]();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=randomUUID(),mkdirSync(_0x56ee16,{'recursive':!![]}),_0x37e01a[_0x2af51d(0x1ad)](writeFileSync,_0x167989,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=_0x37e01a[_0x2af51d(0x171)](randomUUID),cachedDeviceId;}}export class TelemetryCollector{[_0x149399(0x18a)]=[];['commandId'];[_0x149399(0x183)];['commandStartTime'];[_0x149399(0x18f)]=0x0;['phaseStartTimes']=new Map();[_0x149399(0x16c)]=null;['deviceId'];[_0x149399(0x1a6)];['nodeVersion'];[_0x149399(0x185)];[_0x149399(0x170)];[_0x149399(0x195)];['featureId'];[_0x149399(0x18c)];[_0x149399(0x16d)];['transport'];constructor(_0x46c66a){const _0x1668d0=_0x149399,_0x19b2c2={'rfAGy':function(_0x13e28c){return _0x13e28c();}},_0x3abdc6='4|1|8|2|7|6|5|0|3'[_0x1668d0(0x174)]('|');let _0x3d7e60=0x0;while(!![]){switch(_0x3abdc6[_0x3d7e60++]){case'0':this['isTty']=process[_0x1668d0(0x189)]['isTTY']??![];continue;case'1':this['command']=_0x46c66a;continue;case'2':this['deviceId']=_0x19b2c2['rfAGy'](getDeviceId);continue;case'3':this['isCI']=!!(process['env']['CI']||process['env']['GITHUB_ACTIONS']);continue;case'4':this[_0x1668d0(0x1af)]=randomUUID();continue;case'5':this[_0x1668d0(0x185)]=process['platform'];continue;case'6':this[_0x1668d0(0x1b0)]=process[_0x1668d0(0x17c)];continue;case'7':this[_0x1668d0(0x1a6)]=_0x19b2c2['rfAGy'](getCurrentVersion);continue;case'8':this[_0x1668d0(0x179)]=Date[_0x1668d0(0x17a)]();continue;}break;}}[_0x149399(0x186)](_0x1dbc5d){const _0x4a95bc=_0x149399;if(_0x1dbc5d['featureId'])this[_0x4a95bc(0x175)]=_0x1dbc5d['featureId'];if(_0x1dbc5d['checklistItemId'])this['checklistItemId']=_0x1dbc5d[_0x4a95bc(0x18c)];if(_0x1dbc5d[_0x4a95bc(0x16d)])this[_0x4a95bc(0x16d)]=_0x1dbc5d['browserSessionId'];if(_0x1dbc5d['transport'])this['transport']=_0x1dbc5d['transport'];}async['trackCommandStart'](_0x509d0a){const _0x445b07=_0x149399,_0x124447=this['buildEvent']({'eventType':'command_start','metadata':_0x509d0a});await this[_0x445b07(0x1ab)](_0x124447);}async[_0x149399(0x19c)](_0x24bb3b,_0x417e64){const _0x354682=_0x149399,_0x5109f5={'HHroP':'command_end'},_0x175910=this['buildEvent']({'eventType':_0x5109f5[_0x354682(0x19d)],'outcome':_0x24bb3b,'durationMs':Date['now']()-this[_0x354682(0x179)],'metadata':_0x417e64});await this[_0x354682(0x1ab)](_0x175910),await this[_0x354682(0x1ae)]();}async['trackCommandError'](_0x33de17,_0x441b6d){const _0x1f5c59=_0x149399,_0x2d34a2={'fSjAm':_0x1f5c59(0x1b1),'TjBDk':function(_0x43f9d9,_0x1e7bd0,_0xff3b09){return _0x43f9d9(_0x1e7bd0,_0xff3b09);},'LmRyz':function(_0x10ba5d,_0x10567a){return _0x10ba5d instanceof _0x10567a;},'TXJis':function(_0x4de3b3,_0x567953){return _0x4de3b3(_0x567953);},'nFjPg':function(_0x4834bd,_0x53d241){return _0x4834bd instanceof _0x53d241;}},_0x3d5e28=this['buildEvent']({'eventType':_0x2d34a2['fSjAm'],'errorMessage':_0x2d34a2['TjBDk'](truncate,_0x2d34a2['LmRyz'](_0x33de17,Error)?_0x33de17[_0x1f5c59(0x194)]:_0x2d34a2['TXJis'](String,_0x33de17),0x1f4),'errorType':_0x2d34a2[_0x1f5c59(0x196)](_0x33de17,Error)?_0x33de17[_0x1f5c59(0x193)][_0x1f5c59(0x1b3)]:'Unknown','durationMs':Date[_0x1f5c59(0x17a)]()-this['commandStartTime'],'metadata':_0x441b6d});await this[_0x1f5c59(0x1ab)](_0x3d5e28),await this[_0x1f5c59(0x1ae)]();}[_0x149399(0x173)](_0x1302b1,_0x25c68d){const _0x1fd279=_0x149399,_0x4bdffb={'SeWSP':_0x1fd279(0x197)};this[_0x1fd279(0x18f)]++,this['phaseStartTimes']['set'](_0x1302b1,Date['now']());const _0x4270e3=this['buildEvent']({'eventType':_0x4bdffb['SeWSP'],'phase':_0x1302b1,'phaseIndex':this['phaseCounter'],'metadata':_0x25c68d});this[_0x1fd279(0x18a)][_0x1fd279(0x199)](_0x4270e3);}[_0x149399(0x1b5)](_0x3206db,_0x3599fd){const _0x5dd733=_0x149399,_0x474fa0={'MxFXL':'phase_end'},_0x83d281=this[_0x5dd733(0x19e)]['get'](_0x3206db),_0x22c294=_0x83d281?Date[_0x5dd733(0x17a)]()-_0x83d281:undefined;this[_0x5dd733(0x19e)]['delete'](_0x3206db);const _0x5e9807=this[_0x5dd733(0x1b4)]({'eventType':_0x474fa0[_0x5dd733(0x1a8)],'phase':_0x3206db,'durationMs':_0x22c294,'metadata':_0x3599fd});this[_0x5dd733(0x18a)][_0x5dd733(0x199)](_0x5e9807),this[_0x5dd733(0x18a)][_0x5dd733(0x167)]>=0xa&&this[_0x5dd733(0x178)]();}async['trackPhaseError'](_0x6e4510,_0x3557ac,_0x2a2941){const _0x33cbd1=_0x149399,_0x23e017={'DUDTR':_0x33cbd1(0x16f),'NvJOd':function(_0x24e801,_0x126f03){return _0x24e801 instanceof _0x126f03;}},_0x3e7ece=this[_0x33cbd1(0x19e)]['get'](_0x6e4510),_0x543bfb=_0x3e7ece?Date[_0x33cbd1(0x17a)]()-_0x3e7ece:undefined;this[_0x33cbd1(0x19e)][_0x33cbd1(0x16e)](_0x6e4510);const _0x4a9289=this['buildEvent']({'eventType':_0x23e017['DUDTR'],'phase':_0x6e4510,'durationMs':_0x543bfb,'errorMessage':truncate(_0x23e017[_0x33cbd1(0x165)](_0x3557ac,Error)?_0x3557ac[_0x33cbd1(0x194)]:String(_0x3557ac),0x1f4),'errorType':_0x23e017[_0x33cbd1(0x165)](_0x3557ac,Error)?_0x3557ac[_0x33cbd1(0x193)]['name']:_0x33cbd1(0x1ac),'metadata':_0x2a2941});await this[_0x33cbd1(0x1ab)](_0x4a9289);}async['flush'](){const _0x25221b=_0x149399,_0x4bda7a={'gNCqc':function(_0x5a404e,_0x8be3ff){return _0x5a404e===_0x8be3ff;}};if(_0x4bda7a[_0x25221b(0x182)](this['buffer']['length'],0x0))return;const _0x25b475=this['buffer'][_0x25221b(0x18b)](0x0);try{await this['sendBatch'](_0x25b475);}catch{}}[_0x149399(0x1b4)](_0x130bee){const _0x1734be=_0x149399;return{'eventType':_0x130bee['eventType'],'command':this[_0x1734be(0x183)],'commandId':this[_0x1734be(0x1af)],'deviceId':this['deviceId'],'timestamp':new Date()['toISOString'](),'durationMs':_0x130bee[_0x1734be(0x181)],'phase':_0x130bee[_0x1734be(0x17e)],'phaseIndex':_0x130bee['phaseIndex'],'outcome':_0x130bee[_0x1734be(0x17f)],'errorMessage':_0x130bee[_0x1734be(0x1a2)],'errorType':_0x130bee[_0x1734be(0x169)],'featureId':this['featureId'],'checklistItemId':this['checklistItemId'],'browserSessionId':this['browserSessionId'],'transport':this[_0x1734be(0x1b2)],'evaluation':_0x130bee['evaluation'],'cliVersion':this['cliVersion'],'nodeVersion':this['nodeVersion'],'platform':this[_0x1734be(0x185)],'cwd':process['cwd'](),'isTty':this[_0x1734be(0x170)],'isCI':this[_0x1734be(0x195)],'metadata':_0x130bee[_0x1734be(0x180)]};}async['sendImmediate'](_0x2c9645){const _0x187ee8=_0x149399;try{await this[_0x187ee8(0x190)]([_0x2c9645]);}catch{}}[_0x149399(0x178)](){const _0x427078=_0x149399;if(this['flushing'])return;this['flushing']=this['flush']()[_0x427078(0x177)](()=>{this['flushing']=null;});}async[_0x149399(0x190)](_0x48380c){const _0x2d1328=_0x149399,_0x1da0a4={'mzbuc':function(_0x2e57b2,_0x40eeb0,_0x1d6a77){return _0x2e57b2(_0x40eeb0,_0x1d6a77);},'zGtLX':_0x2d1328(0x17b),'NaRMC':function(_0x4ae73c,_0x6f8ebd){return _0x4ae73c(_0x6f8ebd);}},_0x101ad5=await getToken()[_0x2d1328(0x176)](()=>null),_0x11b326=getApiBaseUrl(),_0x312d85={'Content-Type':'application/json'};_0x101ad5&&(_0x312d85['Authorization']=_0x2d1328(0x168)+_0x101ad5);const _0x48305b={'events':_0x48380c};process[_0x2d1328(0x191)][_0x2d1328(0x184)]&&console['error'](_0x2d1328(0x192)+_0x48380c[_0x2d1328(0x167)]+_0x2d1328(0x16a)+_0x11b326+_0x2d1328(0x18d));const _0x56122b=new AbortController(),_0x3be6ad=_0x1da0a4[_0x2d1328(0x19f)](setTimeout,()=>_0x56122b[_0x2d1328(0x1b6)](),0x1388);try{await _0x1da0a4[_0x2d1328(0x19f)](fetch,_0x11b326+'/api/v1/mcp/cli-telemetry',{'method':_0x1da0a4[_0x2d1328(0x19a)],'headers':_0x312d85,'body':JSON[_0x2d1328(0x1aa)](_0x48305b),'signal':_0x56122b['signal']});}finally{_0x1da0a4[_0x2d1328(0x188)](clearTimeout,_0x3be6ad);}}}function _0x150c(_0x233496,_0x17fa07){_0x233496=_0x233496-0x165;const _0x369f2e=_0x369f();let _0x150cfe=_0x369f2e[_0x233496];return _0x150cfe;}let currentCollector=null;export function createTelemetryCollector(_0x251948){return currentCollector=new TelemetryCollector(_0x251948),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0x175968,_0x57f29f,_0x3bba14){const _0x4a6d96=_0x149399,_0x5a8702={'TLoEp':function(_0x50923b,_0x373db6){return _0x50923b(_0x373db6);},'WsBIl':_0x4a6d96(0x1b8)},_0x53ef09=_0x5a8702['TLoEp'](createTelemetryCollector,_0x175968);await _0x53ef09['trackCommandStart'](_0x3bba14);try{const _0x590ffe=await _0x57f29f(_0x53ef09);return await _0x53ef09['trackCommandEnd'](_0x5a8702[_0x4a6d96(0x1b7)]),_0x590ffe;}catch(_0x383b16){await _0x53ef09[_0x4a6d96(0x19b)](_0x383b16);throw _0x383b16;}finally{await _0x53ef09[_0x4a6d96(0x1ae)]();}}function truncate(_0x1f6379,_0x30faab){const _0x48c70c=_0x149399,_0x77a6f9={'UYHFn':function(_0x3d7a48,_0x3b34fc){return _0x3d7a48>_0x3b34fc;},'cjSBA':function(_0x11f44d,_0x484ace){return _0x11f44d+_0x484ace;},'cRwBR':'...'};return _0x77a6f9['UYHFn'](_0x1f6379[_0x48c70c(0x167)],_0x30faab)?_0x77a6f9['cjSBA'](_0x1f6379[_0x48c70c(0x1a1)](0x0,_0x30faab),_0x77a6f9[_0x48c70c(0x1a9)]):_0x1f6379;}
1
+ const _0x513a19=_0x1801;(function(_0x305af5,_0x53d2b4){const _0x5d02e3=_0x1801,_0x5a7e8e=_0x305af5();while(!![]){try{const _0x308c0c=parseInt(_0x5d02e3(0x125))/0x1+-parseInt(_0x5d02e3(0x109))/0x2+parseInt(_0x5d02e3(0x133))/0x3+parseInt(_0x5d02e3(0x14d))/0x4*(parseInt(_0x5d02e3(0x14f))/0x5)+parseInt(_0x5d02e3(0x121))/0x6+-parseInt(_0x5d02e3(0x146))/0x7+-parseInt(_0x5d02e3(0x10e))/0x8*(parseInt(_0x5d02e3(0x10b))/0x9);if(_0x308c0c===_0x53d2b4)break;else _0x5a7e8e['push'](_0x5a7e8e['shift']());}catch(_0x3d3c51){_0x5a7e8e['push'](_0x5a7e8e['shift']());}}}(_0x5ea8,0x80bbb));import{randomUUID}from'crypto';import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';import{homedir}from'os';function _0x1801(_0xa7ddec,_0x1901b8){_0xa7ddec=_0xa7ddec-0x105;const _0x5ea80a=_0x5ea8();let _0x180162=_0x5ea80a[_0xa7ddec];return _0x180162;}import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{getCurrentVersion}from'./version.js';let cachedDeviceId=null;function _0x5ea8(){const _0x111f20=['commandId','isTty','maUjp','phaseCounter','928320DPlzbO','delete','platform','application/json','trackCommandError','dzkvH','cliVersion','Bearer\x20','isCI','xMVPK','env','deviceId','commandStartTime','slice','splice','push','outcome','phase_end','length','4394306dNjVWE','name','NKQAP','finally','sendBatch','Authorization','featureId','751152XDjiAm','pnesM','25hzNpgK','version','now','\x20event(s)\x20to\x20','/api/v1/mcp/cli-telemetry','542086PxtWfQ','setContext','54cPWMhv','phase_error','command_end','1463848LSBDvO','3|8|0|6|2|1|5|4|7','zIFny','VVCXi','cwd','signal','trackCommandStart','buildEvent','POST','buffer','message','get','checklistItemId','sendImmediate','evaluation','constructor','browserSessionId','phaseIndex','phaseStartTimes','3398088gIjfeA','trackCommandEnd','yZKcO','transport','709250KRzHyz','flushing','flush','PUAtC','nodeVersion','set','GbMMZ','YVRFv','phase_start','wsKzQ'];_0x5ea8=function(){return _0x111f20;};return _0x5ea8();}function getDeviceId(){const _0xc3ed0e=_0x1801,_0x370e48={'ZYXIx':function(_0x35bbff){return _0x35bbff();},'YVRFv':'.ranger','yZKcO':function(_0x34d805,_0x41c8e1){return _0x34d805(_0x41c8e1);}};if(cachedDeviceId)return cachedDeviceId;try{const _0x160212=join(_0x370e48['ZYXIx'](homedir),_0x370e48[_0xc3ed0e(0x12c)]),_0x40afc2=join(_0x160212,'.session');if(_0x370e48[_0xc3ed0e(0x123)](existsSync,_0x40afc2)){cachedDeviceId=readFileSync(_0x40afc2,'utf-8')['trim']();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=randomUUID(),mkdirSync(_0x160212,{'recursive':!![]}),writeFileSync(_0x40afc2,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=randomUUID(),cachedDeviceId;}}export class TelemetryCollector{['buffer']=[];[_0x513a19(0x12f)];['command'];[_0x513a19(0x13f)];['phaseCounter']=0x0;[_0x513a19(0x120)]=new Map();['flushing']=null;[_0x513a19(0x13e)];[_0x513a19(0x139)];[_0x513a19(0x129)];['platform'];['isTty'];['isCI'];[_0x513a19(0x14c)];['checklistItemId'];['browserSessionId'];[_0x513a19(0x124)];constructor(_0x3a00b4){const _0x21b3ca=_0x513a19,_0x3bbe79={'QSDnv':function(_0x52492d){return _0x52492d();},'zIFny':function(_0xf98f8f){return _0xf98f8f();}},_0x1ad730=_0x21b3ca(0x10f)['split']('|');let _0x517432=0x0;while(!![]){switch(_0x1ad730[_0x517432++]){case'0':this['commandStartTime']=Date['now']();continue;case'1':this[_0x21b3ca(0x129)]=process[_0x21b3ca(0x105)];continue;case'2':this['cliVersion']=_0x3bbe79['QSDnv'](getCurrentVersion);continue;case'3':this[_0x21b3ca(0x12f)]=randomUUID();continue;case'4':this[_0x21b3ca(0x130)]=process['stdout']['isTTY']??![];continue;case'5':this['platform']=process[_0x21b3ca(0x135)];continue;case'6':this['deviceId']=_0x3bbe79[_0x21b3ca(0x110)](getDeviceId);continue;case'7':this['isCI']=!!(process[_0x21b3ca(0x13d)]['CI']||process['env']['GITHUB_ACTIONS']);continue;case'8':this['command']=_0x3a00b4;continue;}break;}}[_0x513a19(0x10a)](_0x4140b1){const _0xe31cd2=_0x513a19;if(_0x4140b1['featureId'])this['featureId']=_0x4140b1['featureId'];if(_0x4140b1['checklistItemId'])this['checklistItemId']=_0x4140b1[_0xe31cd2(0x11a)];if(_0x4140b1['browserSessionId'])this[_0xe31cd2(0x11e)]=_0x4140b1[_0xe31cd2(0x11e)];if(_0x4140b1[_0xe31cd2(0x124)])this['transport']=_0x4140b1['transport'];}async[_0x513a19(0x114)](_0x4de2b7){const _0x46c3b4=_0x513a19,_0x295bfc=this[_0x46c3b4(0x115)]({'eventType':'command_start','metadata':_0x4de2b7});await this[_0x46c3b4(0x11b)](_0x295bfc);}async[_0x513a19(0x122)](_0x28ce99,_0x4a19ab){const _0x891b9c=_0x513a19,_0x1bb50b={'ilsAm':_0x891b9c(0x10d)},_0x57ed21=this['buildEvent']({'eventType':_0x1bb50b['ilsAm'],'outcome':_0x28ce99,'durationMs':Date['now']()-this['commandStartTime'],'metadata':_0x4a19ab});await this[_0x891b9c(0x11b)](_0x57ed21),await this[_0x891b9c(0x127)]();}async['trackCommandError'](_0x58c254,_0xab551){const _0x4694a6=_0x513a19,_0x19cfbf={'maUjp':function(_0x5a1542,_0x452cba,_0x1cccfa){return _0x5a1542(_0x452cba,_0x1cccfa);},'uyaMe':function(_0x51f4b9,_0x38abbf){return _0x51f4b9(_0x38abbf);},'uPVUg':'Unknown'},_0x556f8f=this[_0x4694a6(0x115)]({'eventType':'command_error','errorMessage':_0x19cfbf[_0x4694a6(0x131)](truncate,_0x58c254 instanceof Error?_0x58c254[_0x4694a6(0x118)]:_0x19cfbf['uyaMe'](String,_0x58c254),0x1f4),'errorType':_0x58c254 instanceof Error?_0x58c254[_0x4694a6(0x11d)][_0x4694a6(0x147)]:_0x19cfbf['uPVUg'],'durationMs':Date[_0x4694a6(0x106)]()-this['commandStartTime'],'metadata':_0xab551});await this['sendImmediate'](_0x556f8f),await this[_0x4694a6(0x127)]();}['trackPhaseStart'](_0x18c0c8,_0x303d88){const _0x8f1c15=_0x513a19;this[_0x8f1c15(0x132)]++,this['phaseStartTimes'][_0x8f1c15(0x12a)](_0x18c0c8,Date['now']());const _0x341bf8=this[_0x8f1c15(0x115)]({'eventType':_0x8f1c15(0x12d),'phase':_0x18c0c8,'phaseIndex':this['phaseCounter'],'metadata':_0x303d88});this['buffer'][_0x8f1c15(0x142)](_0x341bf8);}['trackPhaseEnd'](_0x148286,_0x2831f2){const _0x460655=_0x513a19,_0x3eebdc={'NKQAP':_0x460655(0x144),'xMVPK':function(_0x37cec9,_0x1c392e){return _0x37cec9>=_0x1c392e;}},_0x396333=this['phaseStartTimes']['get'](_0x148286),_0xe00d1f=_0x396333?Date[_0x460655(0x106)]()-_0x396333:undefined;this[_0x460655(0x120)]['delete'](_0x148286);const _0x4bf844=this['buildEvent']({'eventType':_0x3eebdc[_0x460655(0x148)],'phase':_0x148286,'durationMs':_0xe00d1f,'metadata':_0x2831f2});this[_0x460655(0x117)][_0x460655(0x142)](_0x4bf844),_0x3eebdc[_0x460655(0x13c)](this[_0x460655(0x117)][_0x460655(0x145)],0xa)&&this['flushAsync']();}async['trackPhaseError'](_0x194e75,_0x5bf0a8,_0x1e56a2){const _0x418040=_0x513a19,_0x2246e3={'VVCXi':function(_0x253e52,_0x83bc37,_0x4f5461){return _0x253e52(_0x83bc37,_0x4f5461);},'GbMMZ':function(_0x57c724,_0x2013fa){return _0x57c724 instanceof _0x2013fa;},'pnesM':function(_0x4a9981,_0xed2df7){return _0x4a9981(_0xed2df7);}},_0x27077c=this['phaseStartTimes'][_0x418040(0x119)](_0x194e75),_0x5bdb9e=_0x27077c?Date[_0x418040(0x106)]()-_0x27077c:undefined;this[_0x418040(0x120)][_0x418040(0x134)](_0x194e75);const _0x350353=this[_0x418040(0x115)]({'eventType':_0x418040(0x10c),'phase':_0x194e75,'durationMs':_0x5bdb9e,'errorMessage':_0x2246e3[_0x418040(0x111)](truncate,_0x2246e3[_0x418040(0x12b)](_0x5bf0a8,Error)?_0x5bf0a8['message']:_0x2246e3[_0x418040(0x14e)](String,_0x5bf0a8),0x1f4),'errorType':_0x2246e3[_0x418040(0x12b)](_0x5bf0a8,Error)?_0x5bf0a8['constructor']['name']:'Unknown','metadata':_0x1e56a2});await this['sendImmediate'](_0x350353);}async[_0x513a19(0x127)](){const _0x2b3ccf=_0x513a19,_0x28dd54={'dzkvH':function(_0x3e91a0,_0x415f20){return _0x3e91a0===_0x415f20;}};if(_0x28dd54[_0x2b3ccf(0x138)](this[_0x2b3ccf(0x117)][_0x2b3ccf(0x145)],0x0))return;const _0x2fb0c2=this['buffer'][_0x2b3ccf(0x141)](0x0);try{await this[_0x2b3ccf(0x14a)](_0x2fb0c2);}catch{}}['buildEvent'](_0x2e03da){const _0x6ec013=_0x513a19;return{'eventType':_0x2e03da['eventType'],'command':this['command'],'commandId':this[_0x6ec013(0x12f)],'deviceId':this[_0x6ec013(0x13e)],'timestamp':new Date()['toISOString'](),'durationMs':_0x2e03da['durationMs'],'phase':_0x2e03da['phase'],'phaseIndex':_0x2e03da[_0x6ec013(0x11f)],'outcome':_0x2e03da[_0x6ec013(0x143)],'errorMessage':_0x2e03da['errorMessage'],'errorType':_0x2e03da['errorType'],'featureId':this['featureId'],'checklistItemId':this[_0x6ec013(0x11a)],'browserSessionId':this['browserSessionId'],'transport':this['transport'],'evaluation':_0x2e03da[_0x6ec013(0x11c)],'cliVersion':this['cliVersion'],'nodeVersion':this[_0x6ec013(0x129)],'platform':this['platform'],'cwd':process[_0x6ec013(0x112)](),'isTty':this['isTty'],'isCI':this[_0x6ec013(0x13b)],'metadata':_0x2e03da['metadata']};}async['sendImmediate'](_0x5538b3){try{await this['sendBatch']([_0x5538b3]);}catch{}}['flushAsync'](){const _0x2c4ffc=_0x513a19;if(this['flushing'])return;this[_0x2c4ffc(0x126)]=this[_0x2c4ffc(0x127)]()[_0x2c4ffc(0x149)](()=>{const _0xb3e138=_0x2c4ffc;this[_0xb3e138(0x126)]=null;});}async[_0x513a19(0x14a)](_0x32ce5d){const _0x14fc67=_0x513a19,_0xbfc19e={'hxkTE':function(_0x238a5b){return _0x238a5b();},'vAejG':function(_0x31418c,_0x4cf9ca,_0x291272){return _0x31418c(_0x4cf9ca,_0x291272);},'wsKzQ':_0x14fc67(0x116),'TDmbJ':function(_0x198453,_0x2908a1){return _0x198453(_0x2908a1);}},_0x162bae=await _0xbfc19e['hxkTE'](getToken)['catch'](()=>null),_0x38f050=getApiBaseUrl(),_0x52808e={'Content-Type':_0x14fc67(0x136)};_0x162bae&&(_0x52808e[_0x14fc67(0x14b)]=_0x14fc67(0x13a)+_0x162bae);const _0x4e01d5={'events':_0x32ce5d};process['env']['DEBUG']&&console['error']('[telemetry]\x20Sending\x20'+_0x32ce5d['length']+_0x14fc67(0x107)+_0x38f050+_0x14fc67(0x108));const _0x3b9f64=new AbortController(),_0x4415e3=_0xbfc19e['vAejG'](setTimeout,()=>_0x3b9f64['abort'](),0x1388);try{await fetch(_0x38f050+'/api/v1/mcp/cli-telemetry',{'method':_0xbfc19e[_0x14fc67(0x12e)],'headers':_0x52808e,'body':JSON['stringify'](_0x4e01d5),'signal':_0x3b9f64[_0x14fc67(0x113)]});}finally{_0xbfc19e['TDmbJ'](clearTimeout,_0x4415e3);}}}let currentCollector=null;export function createTelemetryCollector(_0x56efce){return currentCollector=new TelemetryCollector(_0x56efce),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0x5a67ba,_0x2f03ad,_0x4d7470){const _0x5d49dc=_0x513a19,_0x5d33d6={'uIaPW':function(_0x146237,_0x4f215d){return _0x146237(_0x4f215d);},'ljnFZ':'success'},_0x5bcdd3=createTelemetryCollector(_0x5a67ba);await _0x5bcdd3[_0x5d49dc(0x114)](_0x4d7470);try{const _0x557d8c=await _0x5d33d6['uIaPW'](_0x2f03ad,_0x5bcdd3);return await _0x5bcdd3['trackCommandEnd'](_0x5d33d6['ljnFZ']),_0x557d8c;}catch(_0x5b825d){await _0x5bcdd3[_0x5d49dc(0x137)](_0x5b825d);throw _0x5b825d;}finally{await _0x5bcdd3[_0x5d49dc(0x127)]();}}function truncate(_0x303db4,_0x4aa866){const _0x5e8d85=_0x513a19,_0x2daf80={'PFNiv':function(_0x335cef,_0x4b2665){return _0x335cef+_0x4b2665;},'PUAtC':'...'};return _0x303db4['length']>_0x4aa866?_0x2daf80['PFNiv'](_0x303db4[_0x5e8d85(0x140)](0x0,_0x4aa866),_0x2daf80[_0x5e8d85(0x128)]):_0x303db4;}
@@ -1 +1 @@
1
- (function(_0x1e2a4e,_0x1ce848){const _0x10ca71=_0x29e5,_0x3462c4=_0x1e2a4e();while(!![]){try{const _0x20e40b=parseInt(_0x10ca71(0x190))/0x1+-parseInt(_0x10ca71(0x19b))/0x2+parseInt(_0x10ca71(0x194))/0x3+-parseInt(_0x10ca71(0x197))/0x4*(-parseInt(_0x10ca71(0x18c))/0x5)+-parseInt(_0x10ca71(0x196))/0x6+-parseInt(_0x10ca71(0x193))/0x7+parseInt(_0x10ca71(0x18a))/0x8*(parseInt(_0x10ca71(0x18e))/0x9);if(_0x20e40b===_0x1ce848)break;else _0x3462c4['push'](_0x3462c4['shift']());}catch(_0x16f4d2){_0x3462c4['push'](_0x3462c4['shift']());}}}(_0x59a2,0x1d65a));import{getApiBaseUrl}from'./environment.js';import{getRefreshToken,storeToken,storeRefreshToken}from'./keychain.js';export async function refreshCliToken(){const _0x459e21=_0x29e5,_0x252837={'svkvx':function(_0x29a5db){return _0x29a5db();}},_0x17a6b1=await _0x252837[_0x459e21(0x18f)](getRefreshToken);if(!_0x17a6b1)return null;const _0x30409e=await tryPartnerRefresh(_0x17a6b1);if(_0x30409e)return _0x30409e;return tryWorkosRefresh(_0x17a6b1);}export async function refreshPartnerCliToken(_0x95c2fa,_0x391256={}){const _0x37678b={'aBLps':function(_0x5e76f4,_0x417cce){return _0x5e76f4(_0x417cce);}},_0x396adf=await _0x37678b['aBLps'](tryPartnerRefresh,_0x95c2fa);return _0x396adf&&_0x391256['persistRefreshToken']&&await storeRefreshToken(_0x95c2fa),_0x396adf;}function _0x59a2(){const _0x3178b2=['timeout','379132mIAudH','refreshToken','/cli-auth/partner-refresh','tFpCf','2169184OtvBZs','json','185HSMtra','POST','9AYdFhr','svkvx','54491deuKdw','stringify','application/json','469623aWfxGz','46836QZUYGS','TtesF','301266HwttrZ','9300usziuO','ZNcLz','token'];_0x59a2=function(){return _0x3178b2;};return _0x59a2();}async function tryPartnerRefresh(_0x3993a1){const _0x24da05=_0x29e5,_0x4b6d1c={'TtesF':function(_0x53d9d6){return _0x53d9d6();},'ZTdvr':_0x24da05(0x18d),'ZNcLz':'application/json'},_0x1fd795=_0x4b6d1c[_0x24da05(0x195)](getApiBaseUrl);try{const _0x169a1f=await fetch(_0x1fd795+_0x24da05(0x188),{'method':_0x4b6d1c['ZTdvr'],'headers':{'Content-Type':_0x4b6d1c[_0x24da05(0x198)]},'body':JSON['stringify']({'refreshToken':_0x3993a1}),'signal':AbortSignal[_0x24da05(0x19a)](0x2710)});if(!_0x169a1f['ok'])return null;const _0x45bc4e=await _0x169a1f[_0x24da05(0x18b)]();return await storeToken(_0x45bc4e[_0x24da05(0x199)]),_0x45bc4e[_0x24da05(0x199)];}catch{return null;}}function _0x29e5(_0x363200,_0x57813a){_0x363200=_0x363200-0x187;const _0x59a2f8=_0x59a2();let _0x29e58d=_0x59a2f8[_0x363200];return _0x29e58d;}async function tryWorkosRefresh(_0x4f948f){const _0x4e7a3e=_0x29e5,_0x242d4a={'tFpCf':_0x4e7a3e(0x18d)},_0x1528df=getApiBaseUrl();try{const _0x5f460f=await fetch(_0x1528df+'/cli-auth/refresh',{'method':_0x242d4a[_0x4e7a3e(0x189)],'headers':{'Content-Type':_0x4e7a3e(0x192)},'body':JSON[_0x4e7a3e(0x191)]({'refreshToken':_0x4f948f}),'signal':AbortSignal['timeout'](0x2710)});if(!_0x5f460f['ok'])return null;const _0x30be0f=await _0x5f460f[_0x4e7a3e(0x18b)]();return await storeToken(_0x30be0f['token']),await storeRefreshToken(_0x30be0f[_0x4e7a3e(0x187)]),_0x30be0f[_0x4e7a3e(0x199)];}catch{return null;}}
1
+ (function(_0xe702c1,_0x1a67a2){const _0x95ea04=_0xfb98,_0x4b4318=_0xe702c1();while(!![]){try{const _0x469450=parseInt(_0x95ea04(0xbf))/0x1*(-parseInt(_0x95ea04(0xc3))/0x2)+parseInt(_0x95ea04(0xba))/0x3*(parseInt(_0x95ea04(0xc4))/0x4)+-parseInt(_0x95ea04(0xb2))/0x5*(-parseInt(_0x95ea04(0xb6))/0x6)+-parseInt(_0x95ea04(0xbb))/0x7+-parseInt(_0x95ea04(0xb9))/0x8+parseInt(_0x95ea04(0xbd))/0x9*(-parseInt(_0x95ea04(0xbc))/0xa)+parseInt(_0x95ea04(0xc2))/0xb;if(_0x469450===_0x1a67a2)break;else _0x4b4318['push'](_0x4b4318['shift']());}catch(_0xe0959f){_0x4b4318['push'](_0x4b4318['shift']());}}}(_0x1bdd,0x8b792));import{getApiBaseUrl}from'./environment.js';import{getRefreshToken,storeToken,storeRefreshToken}from'./keychain.js';function _0x1bdd(){const _0x1efc24=['POST','/cli-auth/refresh','765BOHIWn','refreshToken','token','xpIas','41970KnWEgc','stringify','timeout','9049240jiydaE','57OEdnWW','4196654WIvomZ','10ClJXIR','4034736CshIUg','json','5WzjFSc','ZbtlQ','vgWNS','18393056rjkzwG','177008YQFHKF','94832wHfLTP','persistRefreshToken','DNFGS'];_0x1bdd=function(){return _0x1efc24;};return _0x1bdd();}function _0xfb98(_0x5b92a1,_0x549a8f){_0x5b92a1=_0x5b92a1-0xae;const _0x1bdda5=_0x1bdd();let _0xfb98b1=_0x1bdda5[_0x5b92a1];return _0xfb98b1;}export async function refreshCliToken(){const _0x5be74b=_0xfb98,_0x2e2db4={'ZbtlQ':function(_0x35d887){return _0x35d887();}},_0x88194f=await _0x2e2db4[_0x5be74b(0xc0)](getRefreshToken);if(!_0x88194f)return null;const _0x48454c=await tryPartnerRefresh(_0x88194f);if(_0x48454c)return _0x48454c;return tryWorkosRefresh(_0x88194f);}export async function refreshPartnerCliToken(_0x1d9a3f,_0x598877={}){const _0x184099=_0xfb98,_0x2d7721={'xpIas':function(_0x2b97d3,_0x24429c){return _0x2b97d3(_0x24429c);}},_0x2ae4cd=await tryPartnerRefresh(_0x1d9a3f);return _0x2ae4cd&&_0x598877[_0x184099(0xae)]&&await _0x2d7721[_0x184099(0xb5)](storeRefreshToken,_0x1d9a3f),_0x2ae4cd;}async function tryPartnerRefresh(_0x4f8920){const _0x1e5b98=_0xfb98,_0x53255a={'vgWNS':function(_0x3a3516,_0x3c0ba1,_0x3e132e){return _0x3a3516(_0x3c0ba1,_0x3e132e);},'DNFGS':'POST','YHaWG':'application/json'},_0x5322ea=getApiBaseUrl();try{const _0x5f0fac=await _0x53255a[_0x1e5b98(0xc1)](fetch,_0x5322ea+'/cli-auth/partner-refresh',{'method':_0x53255a[_0x1e5b98(0xaf)],'headers':{'Content-Type':_0x53255a['YHaWG']},'body':JSON[_0x1e5b98(0xb7)]({'refreshToken':_0x4f8920}),'signal':AbortSignal[_0x1e5b98(0xb8)](0x2710)});if(!_0x5f0fac['ok'])return null;const _0x1ff927=await _0x5f0fac[_0x1e5b98(0xbe)]();return await storeToken(_0x1ff927[_0x1e5b98(0xb4)]),_0x1ff927[_0x1e5b98(0xb4)];}catch{return null;}}async function tryWorkosRefresh(_0x294fc9){const _0x387557=_0xfb98,_0x505ef2={'lAihY':function(_0x1a1d4f){return _0x1a1d4f();},'EQqPe':function(_0x3f8a8e,_0x753473,_0x234a09){return _0x3f8a8e(_0x753473,_0x234a09);},'iheFe':_0x387557(0xb0),'oTXbH':function(_0x5008c6,_0x54ead7){return _0x5008c6(_0x54ead7);}},_0x175f8f=_0x505ef2['lAihY'](getApiBaseUrl);try{const _0x5c6f4e=await _0x505ef2['EQqPe'](fetch,_0x175f8f+_0x387557(0xb1),{'method':_0x505ef2['iheFe'],'headers':{'Content-Type':'application/json'},'body':JSON[_0x387557(0xb7)]({'refreshToken':_0x294fc9}),'signal':AbortSignal[_0x387557(0xb8)](0x2710)});if(!_0x5c6f4e['ok'])return null;const _0xb61ffa=await _0x5c6f4e[_0x387557(0xbe)]();return await storeToken(_0xb61ffa[_0x387557(0xb4)]),await _0x505ef2['oTXbH'](storeRefreshToken,_0xb61ffa[_0x387557(0xb3)]),_0xb61ffa[_0x387557(0xb4)];}catch{return null;}}