@ranger-testing/ranger-cli 2.5.4-alpha.57338f5-12 → 2.5.4-alpha.8c24bb2-15

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 (81) hide show
  1. package/README.md +36 -14
  2. package/build/cli.js +1 -1
  3. package/build/commands/addEnv.js +1 -1
  4. package/build/commands/authEncrypt.js +1 -1
  5. package/build/commands/clean.js +1 -1
  6. package/build/commands/config.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/opencodeConfig.js +1 -1
  58. package/build/commands/utils/playwrightCli.js +1 -1
  59. package/build/commands/utils/profileMessages.js +1 -1
  60. package/build/commands/utils/profileSetupBanner.js +1 -1
  61. package/build/commands/utils/projectsConfig.js +1 -1
  62. package/build/commands/utils/rangerConfig.js +1 -1
  63. package/build/commands/utils/rangerRoot.js +1 -1
  64. package/build/commands/utils/resolveProfileContext.js +1 -1
  65. package/build/commands/utils/resolveProfileUrl.js +1 -1
  66. package/build/commands/utils/retry.js +1 -1
  67. package/build/commands/utils/sessionCache.js +1 -1
  68. package/build/commands/utils/settings.js +1 -1
  69. package/build/commands/utils/skillContent.js +1 -1
  70. package/build/commands/utils/skills.js +1 -1
  71. package/build/commands/utils/stitchWebmFiles.js +1 -1
  72. package/build/commands/utils/telemetry.js +1 -1
  73. package/build/commands/utils/tokenRefresh.js +1 -1
  74. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  75. package/build/commands/utils/userApi.js +1 -1
  76. package/build/commands/utils/version.js +1 -1
  77. package/build/commands/verifyFeature.js +1 -1
  78. package/build/commands/verifyFeatureCli.js +1 -1
  79. package/build/skills/ranger/SKILL.md +15 -5
  80. package/build/skills/ranger/verify.md +15 -3
  81. package/package.json +1 -1
@@ -1 +1 @@
1
- const _0xa0c8a9=_0x32c0;(function(_0x27f144,_0x585ed4){const _0x357372=_0x32c0,_0x59e160=_0x27f144();while(!![]){try{const _0x441ee3=parseInt(_0x357372(0x10f))/0x1*(-parseInt(_0x357372(0x117))/0x2)+parseInt(_0x357372(0x110))/0x3*(parseInt(_0x357372(0x113))/0x4)+parseInt(_0x357372(0x11b))/0x5+parseInt(_0x357372(0x116))/0x6+-parseInt(_0x357372(0x11a))/0x7*(parseInt(_0x357372(0x10d))/0x8)+parseInt(_0x357372(0x118))/0x9*(parseInt(_0x357372(0x103))/0xa)+parseInt(_0x357372(0x10b))/0xb*(-parseInt(_0x357372(0x114))/0xc);if(_0x441ee3===_0x585ed4)break;else _0x59e160['push'](_0x59e160['shift']());}catch(_0x2bdcc8){_0x59e160['push'](_0x59e160['shift']());}}}(_0x5c3f,0x57cff));export const ENVIRONMENT_CONFIGS={'prod':{'apiBaseUrl':_0xa0c8a9(0x101),'workosClientId':'client_01J9CBYM7M5ZETCF7G6614DXR2','aiProxyUrl':_0xa0c8a9(0x10e),'mcpAuthUrl':_0xa0c8a9(0x104)},'staging':{'apiBaseUrl':'https://api.staging.ranger.net','workosClientId':_0xa0c8a9(0x105),'aiProxyUrl':'https://ai-proxy-301751771437.us-central1.run.app','mcpAuthUrl':_0xa0c8a9(0x115)},'local':{'apiBaseUrl':'http://localhost:8080','workosClientId':_0xa0c8a9(0x105),'aiProxyUrl':'http://localhost:8090','mcpAuthUrl':_0xa0c8a9(0x111)}};export const DEFAULT_ENVIRONMENT='prod';export function isValidEnvironment(_0x46d051){const _0x257193=_0xa0c8a9,_0xdfbb6b={'OWSVP':function(_0xc725ca,_0x139361){return _0xc725ca===_0x139361;},'oZgeB':_0x257193(0x109),'dGUhp':'local'};return _0xdfbb6b[_0x257193(0x108)](_0x46d051,_0xdfbb6b[_0x257193(0x10c)])||_0xdfbb6b[_0x257193(0x108)](_0x46d051,'staging')||_0xdfbb6b['OWSVP'](_0x46d051,_0xdfbb6b[_0x257193(0x119)]);}function _0x32c0(_0x4896a7,_0x5630bb){_0x4896a7=_0x4896a7-0x101;const _0x5c3f60=_0x5c3f();let _0x32c044=_0x5c3f60[_0x4896a7];return _0x32c044;}export function getCurrentEnvironment(){const _0x16d1c8={'vyezk':function(_0x304e80,_0x2beb69){return _0x304e80(_0x2beb69);}},_0x4b251e=process['env']['RANGER_CLI_ENV'];if(_0x4b251e&&_0x16d1c8['vyezk'](isValidEnvironment,_0x4b251e))return _0x4b251e;return DEFAULT_ENVIRONMENT;}export function getApiBaseUrl(){const _0x4b4a1e=_0xa0c8a9;return ENVIRONMENT_CONFIGS[getCurrentEnvironment()][_0x4b4a1e(0x11e)];}export function getAiProxyUrl(){const _0xf5e3c8=_0xa0c8a9;return ENVIRONMENT_CONFIGS[getCurrentEnvironment()][_0xf5e3c8(0x11c)];}export function getMcpAuthUrl(){const _0x37c4fa=_0xa0c8a9;return process['env'][_0x37c4fa(0x102)]??ENVIRONMENT_CONFIGS[getCurrentEnvironment()]['mcpAuthUrl'];}export function isByokEnabled(){const _0x5d1933=_0xa0c8a9,_0x38b1b5={'rtDfN':'true'};return process['env']['RANGER_BYOK']===_0x38b1b5[_0x5d1933(0x10a)];}export function isMcpDisabled(){const _0x5d0c97=_0xa0c8a9,_0x504aed={'WCsiW':function(_0x5b176b,_0x34c7b0){return _0x5b176b===_0x34c7b0;},'cyqtH':'true'};return _0x504aed['WCsiW'](process['env'][_0x5d0c97(0x112)],_0x504aed['cyqtH']);}export function getVerificationTransport(){const _0x48f2d1=_0xa0c8a9,_0x2cc045={'IbOOB':function(_0x29084f){return _0x29084f();}};return _0x2cc045[_0x48f2d1(0x11d)](isMcpDisabled)?_0x48f2d1(0x106):_0x48f2d1(0x107);}function _0x5c3f(){const _0x2cd8a9=['rtDfN','2592832cpLlHJ','oZgeB','16IMAARS','https://ai-proxy-716115358910.us-central1.run.app','6dyTPru','291gXWLek','http://localhost:8080/mcp','RANGER_DISABLE_MCP','23900YsQEtZ','24dTWHGK','https://mcp-auth.staging.ranger.net/mcp','1807350SVzXXi','147044nydWHa','2250DLhoJC','dGUhp','229551NCSrMH','1348855ehjyvP','aiProxyUrl','IbOOB','apiBaseUrl','https://api.ranger.net','RANGER_MCP_AUTH_URL','7490jUmpSd','https://mcp-auth.ranger.net/mcp','client_01J9CBYM2DKWV9HM17D95Z540K','playwright-cli','mcp','OWSVP','prod'];_0x5c3f=function(){return _0x2cd8a9;};return _0x5c3f();}
1
+ const _0x1ef4f5=_0x2406;(function(_0x270f12,_0x15d8b3){const _0x5ce634=_0x2406,_0x4efa50=_0x270f12();while(!![]){try{const _0x564912=parseInt(_0x5ce634(0x1cd))/0x1+parseInt(_0x5ce634(0x1cc))/0x2*(parseInt(_0x5ce634(0x1ca))/0x3)+-parseInt(_0x5ce634(0x1db))/0x4*(-parseInt(_0x5ce634(0x1d0))/0x5)+parseInt(_0x5ce634(0x1d6))/0x6*(-parseInt(_0x5ce634(0x1d1))/0x7)+-parseInt(_0x5ce634(0x1de))/0x8+-parseInt(_0x5ce634(0x1c8))/0x9+-parseInt(_0x5ce634(0x1d7))/0xa*(-parseInt(_0x5ce634(0x1d4))/0xb);if(_0x564912===_0x15d8b3)break;else _0x4efa50['push'](_0x4efa50['shift']());}catch(_0x10d47f){_0x4efa50['push'](_0x4efa50['shift']());}}}(_0x3672,0xb385b));export const ENVIRONMENT_CONFIGS={'prod':{'apiBaseUrl':'https://api.ranger.net','workosClientId':_0x1ef4f5(0x1e0),'aiProxyUrl':_0x1ef4f5(0x1d5),'mcpAuthUrl':'https://mcp-auth.ranger.net/mcp'},'staging':{'apiBaseUrl':_0x1ef4f5(0x1d2),'workosClientId':_0x1ef4f5(0x1c6),'aiProxyUrl':'https://ai-proxy-301751771437.us-central1.run.app','mcpAuthUrl':'https://mcp-auth.staging.ranger.net/mcp'},'local':{'apiBaseUrl':'http://localhost:8080','workosClientId':_0x1ef4f5(0x1c6),'aiProxyUrl':'http://localhost:8090','mcpAuthUrl':'http://localhost:8080/mcp'}};function _0x2406(_0x3037d7,_0x4bd18a){_0x3037d7=_0x3037d7-0x1c3;const _0x3672ad=_0x3672();let _0x24068b=_0x3672ad[_0x3037d7];return _0x24068b;}export const DEFAULT_ENVIRONMENT=_0x1ef4f5(0x1d3);export function isValidEnvironment(_0x4f9f3d){const _0x121cff=_0x1ef4f5,_0x2a4dc4={'AUiqi':'prod','QLspM':function(_0x5d5551,_0x2c741a){return _0x5d5551===_0x2c741a;},'jogvd':_0x121cff(0x1cb)};return _0x4f9f3d===_0x2a4dc4[_0x121cff(0x1c3)]||_0x2a4dc4['QLspM'](_0x4f9f3d,_0x121cff(0x1d8))||_0x2a4dc4[_0x121cff(0x1c4)](_0x4f9f3d,_0x2a4dc4[_0x121cff(0x1c7)]);}function _0x3672(){const _0x5ef2e7=['30CkFLZu','staging','sYFAf','cDbQe','428ZoIXlG','RANGER_CLI_ENV','XqqVp','1679400rArbPH','true','client_01J9CBYM7M5ZETCF7G6614DXR2','AUiqi','QLspM','aiProxyUrl','client_01J9CBYM2DKWV9HM17D95Z540K','jogvd','7518411tCOwUr','YLcEi','4191MGtpyN','local','1642FBukur','38001cIgrFq','RANGER_BYOK','RANGER_MCP_AUTH_URL','30505HcPwQH','3346NEXsjn','https://api.staging.ranger.net','prod','391732DJvltG','https://ai-proxy-716115358910.us-central1.run.app','2058ZksTDM'];_0x3672=function(){return _0x5ef2e7;};return _0x3672();}export function getCurrentEnvironment(){const _0x57421d=_0x1ef4f5,_0x36e980=process['env'][_0x57421d(0x1dc)];if(_0x36e980&&isValidEnvironment(_0x36e980))return _0x36e980;return DEFAULT_ENVIRONMENT;}export function getApiBaseUrl(){return ENVIRONMENT_CONFIGS[getCurrentEnvironment()]['apiBaseUrl'];}export function getAiProxyUrl(){const _0x4558cf=_0x1ef4f5,_0x3ff6ed={'iNhAm':function(_0x4cf99a){return _0x4cf99a();}};return ENVIRONMENT_CONFIGS[_0x3ff6ed['iNhAm'](getCurrentEnvironment)][_0x4558cf(0x1c5)];}export function getMcpAuthUrl(){const _0x49332d=_0x1ef4f5,_0x4f30e2={'HyRcc':function(_0x5e5b14){return _0x5e5b14();}};return process['env'][_0x49332d(0x1cf)]??ENVIRONMENT_CONFIGS[_0x4f30e2['HyRcc'](getCurrentEnvironment)]['mcpAuthUrl'];}export function isByokEnabled(){const _0x595538=_0x1ef4f5,_0x1130c8={'sykhD':function(_0x45166f,_0x2d7bd){return _0x45166f===_0x2d7bd;},'XqqVp':_0x595538(0x1df)};return _0x1130c8['sykhD'](process['env'][_0x595538(0x1ce)],_0x1130c8[_0x595538(0x1dd)]);}export function isMcpDisabled(){const _0x469230=_0x1ef4f5,_0x393986={'cDbQe':_0x469230(0x1df)};return process['env']['RANGER_DISABLE_MCP']===_0x393986[_0x469230(0x1da)];}export function getVerificationTransport(){const _0x367830=_0x1ef4f5,_0x53a3ca={'YLcEi':function(_0x109e7b){return _0x109e7b();},'sYFAf':'playwright-cli','TFXvC':'mcp'};return _0x53a3ca[_0x367830(0x1c9)](isMcpDisabled)?_0x53a3ca[_0x367830(0x1d9)]:_0x53a3ca['TFXvC'];}
@@ -1 +1 @@
1
- (function(_0x25657e,_0x3dd3dd){const _0xe1dabf=_0x5cb8,_0x4c9335=_0x25657e();while(!![]){try{const _0x448930=-parseInt(_0xe1dabf(0x10f))/0x1*(-parseInt(_0xe1dabf(0x115))/0x2)+parseInt(_0xe1dabf(0x12c))/0x3+parseInt(_0xe1dabf(0x10b))/0x4*(parseInt(_0xe1dabf(0x12f))/0x5)+parseInt(_0xe1dabf(0x12d))/0x6+-parseInt(_0xe1dabf(0x101))/0x7*(-parseInt(_0xe1dabf(0xf7))/0x8)+parseInt(_0xe1dabf(0x116))/0x9*(-parseInt(_0xe1dabf(0xf8))/0xa)+-parseInt(_0xe1dabf(0x10c))/0xb;if(_0x448930===_0x3dd3dd)break;else _0x4c9335['push'](_0x4c9335['shift']());}catch(_0x1310ba){_0x4c9335['push'](_0x4c9335['shift']());}}}(_0x8ac6,0x9ec25));import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{withRetry}from'./retry.js';export async function createFeature(_0x257aec){const _0x3d4e59=_0x5cb8,_0x1fae90={'xSwii':function(_0x29b814){return _0x29b814();},'Jfvux':_0x3d4e59(0x100),'aqaid':function(_0x350fc6,_0x39ffbf){return _0x350fc6===_0x39ffbf;},'tAKFo':_0x3d4e59(0x111)},_0x3dbd28=await getToken();if(!_0x3dbd28)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x3c65c0=_0x1fae90['xSwii'](getApiBaseUrl),_0x437111=await fetch(_0x3c65c0+_0x3d4e59(0x137),{'method':'POST','headers':{'Authorization':_0x3d4e59(0x121)+_0x3dbd28,'Content-Type':_0x1fae90['Jfvux']},'body':JSON['stringify'](_0x257aec)});if(!_0x437111['ok']){if(_0x1fae90['aqaid'](_0x437111[_0x3d4e59(0x13c)],0x192)){const _0x384507=await _0x437111[_0x3d4e59(0x136)](),_0x444850=_0x384507['billingUrl']||_0x1fae90['tAKFo'];throw new Error((_0x384507['message']||'Feature\x20limit\x20exceeded')+'\x0a\x0aUpgrade\x20your\x20plan:\x20'+_0x444850);}const _0x33abc4=await _0x437111[_0x3d4e59(0x12b)]();throw new Error('Failed\x20to\x20create\x20feature\x20review:\x20'+_0x33abc4);}return _0x437111['json']();}export async function listFeatures(_0x27a2f7){const _0xe4cd4c=_0x5cb8,_0x4bdaca={'IQezD':'gitBranch','Xonnw':_0xe4cd4c(0x114),'IDsjx':'true'},_0x55e29e=await getToken();if(!_0x55e29e)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x3b4e73=getApiBaseUrl(),_0x30f959=new URLSearchParams();if(_0x27a2f7?.['gitRepoUrl'])_0x30f959['set']('gitRepoUrl',_0x27a2f7['gitRepoUrl']);if(_0x27a2f7?.[_0xe4cd4c(0x132)])_0x30f959[_0xe4cd4c(0x138)](_0x4bdaca['IQezD'],_0x27a2f7['gitBranch']);if(_0x27a2f7?.['limit'])_0x30f959['set'](_0x4bdaca[_0xe4cd4c(0x117)],_0x27a2f7['limit']['toString']());if(_0x27a2f7?.['offset'])_0x30f959[_0xe4cd4c(0x138)]('offset',_0x27a2f7[_0xe4cd4c(0x13e)][_0xe4cd4c(0x123)]());if(_0x27a2f7?.['includeDeleted'])_0x30f959[_0xe4cd4c(0x138)](_0xe4cd4c(0x129),_0x4bdaca[_0xe4cd4c(0x105)]);const _0xf0893=_0x3b4e73+_0xe4cd4c(0x137)+(_0x30f959['toString']()?'?'+_0x30f959['toString']():''),_0xea91c7=await fetch(_0xf0893,{'method':'GET','headers':{'Authorization':_0xe4cd4c(0x121)+_0x55e29e}});if(!_0xea91c7['ok']){const _0x4305be=await _0xea91c7['text']();throw new Error('Failed\x20to\x20list\x20feature\x20reviews:\x20'+_0x4305be);}return _0xea91c7[_0xe4cd4c(0x136)]();}function _0x5cb8(_0x125345,_0x54d38f){_0x125345=_0x125345-0xf7;const _0x8ac668=_0x8ac6();let _0x5cb8c2=_0x8ac668[_0x125345];return _0x5cb8c2;}export async function getFeature(_0x321ef9){const _0x16070b=_0x5cb8,_0x3e3af0={'sotRt':function(_0x5c1d7f){return _0x5c1d7f();},'pzMJX':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','pNyCT':function(_0x28ab70,_0x37c77a,_0x403da8){return _0x28ab70(_0x37c77a,_0x403da8);}},_0x122f33=await _0x3e3af0['sotRt'](getToken);if(!_0x122f33)throw new Error(_0x3e3af0['pzMJX']);const _0x1f581c=_0x3e3af0['sotRt'](getApiBaseUrl),_0x289995=await _0x3e3af0[_0x16070b(0x10e)](fetch,_0x1f581c+_0x16070b(0x11b)+_0x321ef9,{'method':_0x16070b(0x110),'headers':{'Authorization':'Bearer\x20'+_0x122f33}});if(!_0x289995['ok']){const _0x37a0f6=await _0x289995['text']();throw new Error('Failed\x20to\x20get\x20feature\x20review:\x20'+_0x37a0f6);}return _0x289995['json']();}export async function updateFeature(_0x10bb71,_0x336a9e){const _0x2647b3=_0x5cb8,_0xc88977={'ShCTp':_0x2647b3(0xfe),'glMPK':_0x2647b3(0x100)},_0x5beab5=await getToken();if(!_0x5beab5)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x3bb018=getApiBaseUrl(),_0x110533=await fetch(_0x3bb018+'/api/v1/mcp/features/'+_0x10bb71,{'method':_0xc88977['ShCTp'],'headers':{'Authorization':_0x2647b3(0x121)+_0x5beab5,'Content-Type':_0xc88977[_0x2647b3(0x131)]},'body':JSON['stringify'](_0x336a9e)});if(!_0x110533['ok']){const _0xb55f4b=await _0x110533['text']();throw new Error(_0x2647b3(0x106)+_0xb55f4b);}return _0x110533[_0x2647b3(0x136)]();}export async function createChecklistItem(_0x312eac,_0x5133e0,_0x2076d6){const _0x3266fa=_0x5cb8,_0x402293={'EheRC':function(_0x5426f0){return _0x5426f0();},'uumPI':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','uelEz':function(_0x3ade50){return _0x3ade50();},'dbfvS':'POST','DSvxu':'application/json'},_0x17cf0f=await _0x402293['EheRC'](getToken);if(!_0x17cf0f)throw new Error(_0x402293[_0x3266fa(0x13b)]);const _0xb55eae=_0x402293['uelEz'](getApiBaseUrl),_0xd8f08a=await fetch(_0xb55eae+_0x3266fa(0x11b)+_0x312eac+'/checklist',{'method':_0x402293[_0x3266fa(0x127)],'headers':{'Authorization':_0x3266fa(0x121)+_0x17cf0f,'Content-Type':_0x402293[_0x3266fa(0x12a)]},'body':JSON['stringify']({'description':_0x5133e0,'position':_0x2076d6})});if(!_0xd8f08a['ok']){const _0x55e0bb=await _0xd8f08a['text']();throw new Error(_0x3266fa(0x130)+_0x55e0bb);}return _0xd8f08a[_0x3266fa(0x136)]();}export async function updateChecklistItem(_0x49f166,_0x4c072e,_0x414a97){const _0x52f060=_0x5cb8,_0x205dec={'vuAPV':function(_0x570044,_0x5dea41,_0x41d2fb){return _0x570044(_0x5dea41,_0x41d2fb);},'GpDBQ':_0x52f060(0xfe),'zDdXc':'updateChecklistItem'};return withRetry(async()=>{const _0x32d20d=_0x52f060,_0x51f653=await getToken();if(!_0x51f653)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x3a2588=getApiBaseUrl(),_0x4fb68a=await _0x205dec[_0x32d20d(0x119)](fetch,_0x3a2588+'/api/v1/mcp/features/'+_0x49f166+_0x32d20d(0x118)+_0x4c072e,{'method':_0x205dec[_0x32d20d(0xfb)],'headers':{'Authorization':'Bearer\x20'+_0x51f653,'Content-Type':_0x32d20d(0x100)},'body':JSON['stringify'](_0x414a97)});if(!_0x4fb68a['ok']){const _0x75bdbe=await _0x4fb68a['text']();throw new Error(_0x32d20d(0x11f)+_0x75bdbe);}return _0x4fb68a[_0x32d20d(0x136)]();},{'label':_0x205dec[_0x52f060(0x11a)]});}export async function getFeatureReport(_0x2dd9e8){const _0x42eaff=_0x5cb8,_0x20c7a6={'kUmgc':function(_0x4722c9){return _0x4722c9();},'PaDbL':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','rwCFH':function(_0x310e67){return _0x310e67();},'ssiXB':function(_0x5cd8fe,_0x5d4eb9,_0xfc97d8){return _0x5cd8fe(_0x5d4eb9,_0xfc97d8);}},_0x6fc296=await _0x20c7a6['kUmgc'](getToken);if(!_0x6fc296)throw new Error(_0x20c7a6['PaDbL']);const _0x2ca354=_0x20c7a6[_0x42eaff(0x10d)](getApiBaseUrl),_0x1d57bd=await _0x20c7a6[_0x42eaff(0xff)](fetch,_0x2ca354+'/api/v1/mcp/features/'+_0x2dd9e8+'/report',{'method':_0x42eaff(0x110),'headers':{'Authorization':_0x42eaff(0x121)+_0x6fc296}});if(!_0x1d57bd['ok']){const _0x1a647c=await _0x1d57bd['text']();throw new Error('Failed\x20to\x20get\x20feature\x20review\x20report:\x20'+_0x1a647c);}return _0x1d57bd[_0x42eaff(0x136)]();}export async function getFeatureReportMarkdown(_0x2af4fe,_0x5c9e4a){const _0xb596c8=_0x5cb8,_0x391e45={'mwujm':function(_0xdbf0,_0x3fb87b){return _0xdbf0>_0x3fb87b;},'GQeqn':function(_0x580bcb,_0x3e9087){return _0x580bcb(_0x3e9087);},'veLSw':'sessionId','BpZFd':function(_0x333643,_0x4eddcd){return _0x333643&&_0x4eddcd;},'rGarv':function(_0x5b2636,_0x3d9803,_0x5dc52d){return _0x5b2636(_0x3d9803,_0x5dc52d);}},_0xa3627b=await getToken();if(!_0xa3627b)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x2510b9=getApiBaseUrl(),_0x314833=new URLSearchParams(),_0x230f9c=_0x391e45[_0xb596c8(0x120)](_0x5c9e4a?.['itemIds']?.['length']??0x0,0x0),_0x1709d9=_0x391e45[_0xb596c8(0x134)](Boolean,_0x5c9e4a?.['sessionId']);_0x230f9c&&_0x5c9e4a?.[_0xb596c8(0x126)]&&_0x314833['set'](_0xb596c8(0x126),_0x5c9e4a['itemIds']['join'](','));_0x1709d9&&_0x5c9e4a?.['sessionId']&&_0x314833['set'](_0x391e45['veLSw'],_0x5c9e4a[_0xb596c8(0x113)]);_0x391e45[_0xb596c8(0x10a)](!_0x230f9c,!_0x1709d9)&&_0x5c9e4a?.[_0xb596c8(0x139)]&&_0x314833[_0xb596c8(0x138)]('style',_0x5c9e4a[_0xb596c8(0x139)]);const _0x3c7527=_0x2510b9+_0xb596c8(0x11b)+_0x2af4fe+_0xb596c8(0xfc),_0x1aee3a=''+_0x3c7527+(_0x314833['toString']()?'?'+_0x314833[_0xb596c8(0x123)]():''),_0x403c18=await _0x391e45[_0xb596c8(0x12e)](fetch,_0x1aee3a,{'method':'GET','headers':{'Authorization':_0xb596c8(0x121)+_0xa3627b}});if(!_0x403c18['ok']){const _0x5e2e65=await _0x403c18[_0xb596c8(0x12b)]();throw new Error(_0xb596c8(0x11d)+_0x5e2e65);}return _0x403c18[_0xb596c8(0x12b)]();}export async function listFeatureSessions(_0x6f8337){const _0x3748f0=_0x5cb8,_0x3372f2={'PUfAm':function(_0x459c77){return _0x459c77();},'gZxYl':function(_0x36e90c,_0x33ee88,_0x31039a){return _0x36e90c(_0x33ee88,_0x31039a);},'QHAEa':_0x3748f0(0x110)},_0x42611f=await getToken();if(!_0x42611f)throw new Error(_0x3748f0(0x11e));const _0x49f0fa=_0x3372f2[_0x3748f0(0x108)](getApiBaseUrl),_0x2a8ac6=await _0x3372f2[_0x3748f0(0xf9)](fetch,_0x49f0fa+'/api/v1/mcp/features/'+_0x6f8337+'/sessions',{'method':_0x3372f2['QHAEa'],'headers':{'Authorization':'Bearer\x20'+_0x42611f}});if(!_0x2a8ac6['ok']){const _0x4651b9=await _0x2a8ac6['text']();throw new Error(_0x3748f0(0x124)+_0x4651b9);}return _0x2a8ac6[_0x3748f0(0x136)]();}export async function startSession(_0x51ca18,_0x3dd912){const _0x5c338a=_0x5cb8,_0x54fe71={'DfjrC':function(_0x1d80e9){return _0x1d80e9();},'yHudJ':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','HTJRI':function(_0x40e903,_0x443c77,_0x33c432){return _0x40e903(_0x443c77,_0x33c432);}},_0x4377d3=await _0x54fe71['DfjrC'](getToken);if(!_0x4377d3)throw new Error(_0x54fe71[_0x5c338a(0x107)]);const _0x4cba1b=getApiBaseUrl(),_0x2a8dcd=await _0x54fe71[_0x5c338a(0x13a)](fetch,_0x4cba1b+'/api/v1/mcp/features/'+_0x51ca18+_0x5c338a(0x103)+_0x3dd912+_0x5c338a(0x128),{'method':_0x5c338a(0xfa),'headers':{'Authorization':_0x5c338a(0x121)+_0x4377d3}});if(!_0x2a8dcd['ok']){const _0x460510=await _0x2a8dcd['text']();throw new Error('Failed\x20to\x20start\x20session:\x20'+_0x460510);}return _0x2a8dcd[_0x5c338a(0x136)]();}export async function concludeSession(_0x470f9b,_0x10babd){const _0x54616b=_0x5cb8,_0x4cb6c2={'PnAyq':function(_0x38eea2){return _0x38eea2();}},_0x2a78f5=await _0x4cb6c2[_0x54616b(0x13d)](getToken);if(!_0x2a78f5)throw new Error(_0x54616b(0x11e));const _0x2683f0=getApiBaseUrl(),_0x3dd69a=await fetch(_0x2683f0+'/api/v1/mcp/features/'+_0x470f9b+_0x54616b(0x103)+_0x10babd+'/conclude',{'method':'POST','headers':{'Authorization':_0x54616b(0x121)+_0x2a78f5}});if(!_0x3dd69a['ok']){const _0x5241f5=await _0x3dd69a['text']();throw new Error(_0x54616b(0x109)+_0x5241f5);}return _0x3dd69a['json']();}export async function getActionItems(_0x4a8965){const _0x19e99a=_0x5cb8,_0x3c3792={'iftpG':function(_0x28569a){return _0x28569a();},'TaNlf':function(_0x399342){return _0x399342();},'kkQxw':function(_0x34c5c,_0x5a00a3,_0x5d3d41){return _0x34c5c(_0x5a00a3,_0x5d3d41);},'HXoFT':_0x19e99a(0x110)},_0x4b3848=await _0x3c3792['iftpG'](getToken);if(!_0x4b3848)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x19f791=_0x3c3792[_0x19e99a(0x125)](getApiBaseUrl),_0x392694=await _0x3c3792['kkQxw'](fetch,_0x19f791+'/api/v1/mcp/features/'+_0x4a8965+'/action-items',{'method':_0x3c3792['HXoFT'],'headers':{'Authorization':_0x19e99a(0x121)+_0x4b3848}});if(!_0x392694['ok']){const _0x36dffd=await _0x392694[_0x19e99a(0x12b)]();throw new Error(_0x19e99a(0x135)+_0x36dffd);}return _0x392694[_0x19e99a(0x136)]();}export async function getItemFeedback(_0x2d7599,_0x41f1b4){const _0x226a9b=_0x5cb8,_0x883b52={'VSzSY':function(_0x546b80){return _0x546b80();},'GwXSB':_0x226a9b(0x11e),'PJlRE':_0x226a9b(0x110)},_0xb24d27=await _0x883b52[_0x226a9b(0x13f)](getToken);if(!_0xb24d27)throw new Error(_0x883b52['GwXSB']);const _0x454849=getApiBaseUrl(),_0x124100=await fetch(_0x454849+_0x226a9b(0x11b)+_0x2d7599+_0x226a9b(0x140)+_0x41f1b4+_0x226a9b(0x122),{'method':_0x883b52[_0x226a9b(0x102)],'headers':{'Authorization':'Bearer\x20'+_0xb24d27}});if(!_0x124100['ok']){const _0x409609=await _0x124100['text']();throw new Error('Failed\x20to\x20get\x20item\x20feedback:\x20'+_0x409609);}return _0x124100['json']();}export async function markCommentsAddressed(_0x4a7c19,_0x7b520b,_0x2b4cf6){const _0x2e0fe7=_0x5cb8,_0x1b4a2c={'IEnMI':function(_0x23805e){return _0x23805e();},'aXvXT':function(_0x46bb87,_0x53a3cb,_0x394cec){return _0x46bb87(_0x53a3cb,_0x394cec);},'OzGsf':'POST'},_0x31db46=await _0x1b4a2c['IEnMI'](getToken);if(!_0x31db46)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x1cd030=getApiBaseUrl(),_0x15c920=await _0x1b4a2c['aXvXT'](fetch,_0x1cd030+'/api/v1/mcp/features/'+_0x4a7c19+'/comments/address',{'method':_0x1b4a2c['OzGsf'],'headers':{'Authorization':_0x2e0fe7(0x121)+_0x31db46,'Content-Type':'application/json'},'body':JSON[_0x2e0fe7(0x133)]({'checklistItemId':_0x7b520b,'commentIds':_0x2b4cf6})});if(!_0x15c920['ok']){const _0x3d64d8=await _0x15c920[_0x2e0fe7(0x12b)]();throw new Error(_0x2e0fe7(0x11c)+_0x3d64d8);}}export async function softDeleteFeature(_0x1bd2ae){const _0x384c00=_0x5cb8,_0x7cd951={'Fdzxz':function(_0xbda7e3){return _0xbda7e3();},'amyob':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','VXlGx':'DELETE'},_0x5692c5=await _0x7cd951[_0x384c00(0xfd)](getToken);if(!_0x5692c5)throw new Error(_0x7cd951['amyob']);const _0x33902c=getApiBaseUrl(),_0xea564e=await fetch(_0x33902c+'/api/v1/mcp/features/'+_0x1bd2ae,{'method':_0x7cd951['VXlGx'],'headers':{'Authorization':_0x384c00(0x121)+_0x5692c5}});if(!_0xea564e['ok']){const _0x3d475f=await _0xea564e['text']();throw new Error('Failed\x20to\x20delete\x20feature\x20review:\x20'+_0x3d475f);}}export async function restoreFeature(_0x5d680d){const _0x1cace6=_0x5cb8,_0xcd1a77={'hUhdC':_0x1cace6(0x11e),'vIEvl':function(_0x499735){return _0x499735();},'yMMsT':function(_0x184418,_0x1ad774,_0x300674){return _0x184418(_0x1ad774,_0x300674);}},_0x4b2bd9=await getToken();if(!_0x4b2bd9)throw new Error(_0xcd1a77['hUhdC']);const _0x3e3cff=_0xcd1a77['vIEvl'](getApiBaseUrl),_0x1c9ff8=await _0xcd1a77[_0x1cace6(0x112)](fetch,_0x3e3cff+_0x1cace6(0x11b)+_0x5d680d+'/restore',{'method':_0x1cace6(0xfa),'headers':{'Authorization':_0x1cace6(0x121)+_0x4b2bd9}});if(!_0x1c9ff8['ok']){const _0x18f291=await _0x1c9ff8['text']();throw new Error(_0x1cace6(0x104)+_0x18f291);}}function _0x8ac6(){const _0x2f26d1=['BpZFd','4EGrbiu','15452767xgqJmy','rwCFH','pNyCT','1pzKWaq','GET','https://dashboard.ranger.net/billing','yMMsT','sessionId','limit','2540654jSbHLW','11135169umkfCm','Xonnw','/checklist/','vuAPV','zDdXc','/api/v1/mcp/features/','Failed\x20to\x20mark\x20comments\x20as\x20addressed:\x20','Failed\x20to\x20get\x20feature\x20review\x20report\x20markdown:\x20','No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','Failed\x20to\x20update\x20scenario:\x20','mwujm','Bearer\x20','/feedback','toString','Failed\x20to\x20list\x20sessions:\x20','TaNlf','itemIds','dbfvS','/start','includeDeleted','DSvxu','text','2014836EfIesZ','1729290PKcVBs','rGarv','4498945TQlTcL','Failed\x20to\x20create\x20scenario:\x20','glMPK','gitBranch','stringify','GQeqn','Failed\x20to\x20get\x20action\x20items:\x20','json','/api/v1/mcp/features','set','style','HTJRI','uumPI','status','PnAyq','offset','VSzSY','/checklist-items/','92784rgtAez','10EECUtg','gZxYl','POST','GpDBQ','/report/markdown','Fdzxz','PATCH','ssiXB','application/json','98CEViPX','PJlRE','/sessions/','Failed\x20to\x20restore\x20feature\x20review:\x20','IDsjx','Failed\x20to\x20update\x20feature\x20review:\x20','yHudJ','PUfAm','Failed\x20to\x20conclude\x20session:\x20'];_0x8ac6=function(){return _0x2f26d1;};return _0x8ac6();}
1
+ (function(_0x5c61cd,_0x307f40){const _0x4ee078=_0x32ce,_0x435bb8=_0x5c61cd();while(!![]){try{const _0xba4eef=parseInt(_0x4ee078(0x18c))/0x1*(-parseInt(_0x4ee078(0x172))/0x2)+parseInt(_0x4ee078(0x1a3))/0x3*(-parseInt(_0x4ee078(0x176))/0x4)+parseInt(_0x4ee078(0x1aa))/0x5+-parseInt(_0x4ee078(0x19e))/0x6+parseInt(_0x4ee078(0x1a4))/0x7+-parseInt(_0x4ee078(0x1a6))/0x8*(-parseInt(_0x4ee078(0x177))/0x9)+-parseInt(_0x4ee078(0x17f))/0xa;if(_0xba4eef===_0x307f40)break;else _0x435bb8['push'](_0x435bb8['shift']());}catch(_0x1f1f01){_0x435bb8['push'](_0x435bb8['shift']());}}}(_0x30d8,0x665a7));import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{withRetry}from'./retry.js';export async function createFeature(_0x2ce80d){const _0x4166a8=_0x32ce,_0x27ff4f={'hCpAo':_0x4166a8(0x1ac),'YgULu':function(_0x5b8cbb,_0x1735b8){return _0x5b8cbb===_0x1735b8;},'jJvVi':_0x4166a8(0x19f)},_0xe50e9d=await getToken();if(!_0xe50e9d)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x2d6f66=getApiBaseUrl(),_0x1bda8b=await fetch(_0x2d6f66+'/api/v1/mcp/features',{'method':_0x27ff4f[_0x4166a8(0x181)],'headers':{'Authorization':_0x4166a8(0x1a5)+_0xe50e9d,'Content-Type':_0x4166a8(0x1b4)},'body':JSON[_0x4166a8(0x190)](_0x2ce80d)});if(!_0x1bda8b['ok']){if(_0x27ff4f[_0x4166a8(0x1b1)](_0x1bda8b[_0x4166a8(0x186)],0x192)){const _0x19589c=await _0x1bda8b['json'](),_0x12727d=_0x19589c[_0x4166a8(0x1ab)]||_0x4166a8(0x19c);throw new Error((_0x19589c['message']||_0x27ff4f[_0x4166a8(0x197)])+'\x0a\x0aUpgrade\x20your\x20plan:\x20'+_0x12727d);}const _0x5e4b26=await _0x1bda8b[_0x4166a8(0x187)]();throw new Error(_0x4166a8(0x173)+_0x5e4b26);}return _0x1bda8b[_0x4166a8(0x1a8)]();}export async function listFeatures(_0x49fb61){const _0x113fb4=_0x32ce,_0x193344={'LqpKS':function(_0x315725){return _0x315725();},'dMHfb':function(_0x26cfe5){return _0x26cfe5();},'Dctmt':_0x113fb4(0x1ae),'gNpUB':_0x113fb4(0x194),'Orxkl':'GET'},_0x49dfc1=await _0x193344['LqpKS'](getToken);if(!_0x49dfc1)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0xd1a85d=_0x193344[_0x113fb4(0x174)](getApiBaseUrl),_0x529600=new URLSearchParams();if(_0x49fb61?.['gitRepoUrl'])_0x529600[_0x113fb4(0x18e)]('gitRepoUrl',_0x49fb61[_0x113fb4(0x17e)]);if(_0x49fb61?.[_0x113fb4(0x1ae)])_0x529600[_0x113fb4(0x18e)](_0x193344[_0x113fb4(0x170)],_0x49fb61['gitBranch']);if(_0x49fb61?.['limit'])_0x529600[_0x113fb4(0x18e)](_0x113fb4(0x1b5),_0x49fb61['limit']['toString']());if(_0x49fb61?.[_0x113fb4(0x194)])_0x529600[_0x113fb4(0x18e)](_0x193344['gNpUB'],_0x49fb61['offset'][_0x113fb4(0x18d)]());if(_0x49fb61?.[_0x113fb4(0x1ad)])_0x529600[_0x113fb4(0x18e)]('includeDeleted','true');const _0x5d18af=_0xd1a85d+'/api/v1/mcp/features'+(_0x529600[_0x113fb4(0x18d)]()?'?'+_0x529600['toString']():''),_0x264a04=await fetch(_0x5d18af,{'method':_0x193344['Orxkl'],'headers':{'Authorization':'Bearer\x20'+_0x49dfc1}});if(!_0x264a04['ok']){const _0x19e90b=await _0x264a04['text']();throw new Error('Failed\x20to\x20list\x20feature\x20reviews:\x20'+_0x19e90b);}return _0x264a04[_0x113fb4(0x1a8)]();}export async function getFeature(_0xcb020d){const _0x272b3b=_0x32ce,_0xc241b5={'hSquw':function(_0x181946){return _0x181946();},'AAKCF':_0x272b3b(0x1b7),'gAKIN':function(_0x473c03){return _0x473c03();}},_0x544445=await _0xc241b5['hSquw'](getToken);if(!_0x544445)throw new Error(_0xc241b5['AAKCF']);const _0x4a1744=_0xc241b5['gAKIN'](getApiBaseUrl),_0x2e8635=await fetch(_0x4a1744+_0x272b3b(0x18a)+_0xcb020d,{'method':_0x272b3b(0x1a7),'headers':{'Authorization':_0x272b3b(0x1a5)+_0x544445}});if(!_0x2e8635['ok']){const _0x525f6f=await _0x2e8635['text']();throw new Error('Failed\x20to\x20get\x20feature\x20review:\x20'+_0x525f6f);}return _0x2e8635['json']();}export async function updateFeature(_0x26d465,_0x4a3879){const _0x5a7f48=_0x32ce,_0x300c77={'wydSh':function(_0x4ff3b8){return _0x4ff3b8();},'dTtVf':function(_0x479f4c,_0x31364b,_0x1b865d){return _0x479f4c(_0x31364b,_0x1b865d);}},_0x38762e=await _0x300c77[_0x5a7f48(0x18b)](getToken);if(!_0x38762e)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x298d97=_0x300c77[_0x5a7f48(0x18b)](getApiBaseUrl),_0x1ab093=await _0x300c77[_0x5a7f48(0x179)](fetch,_0x298d97+'/api/v1/mcp/features/'+_0x26d465,{'method':_0x5a7f48(0x175),'headers':{'Authorization':_0x5a7f48(0x1a5)+_0x38762e,'Content-Type':'application/json'},'body':JSON['stringify'](_0x4a3879)});if(!_0x1ab093['ok']){const _0x43fcd5=await _0x1ab093[_0x5a7f48(0x187)]();throw new Error('Failed\x20to\x20update\x20feature\x20review:\x20'+_0x43fcd5);}return _0x1ab093[_0x5a7f48(0x1a8)]();}export async function createChecklistItem(_0x2e44f7,_0x2d74e4,_0x3e7184){const _0x2e50b0=_0x32ce,_0x1993f7={'ZYoOZ':_0x2e50b0(0x1b7),'lVCIx':function(_0x1781d6,_0x1d6267,_0x565ec9){return _0x1781d6(_0x1d6267,_0x565ec9);},'CYnOH':_0x2e50b0(0x1ac),'uKiYQ':'application/json'},_0xed1f15=await getToken();if(!_0xed1f15)throw new Error(_0x1993f7['ZYoOZ']);const _0x57927d=getApiBaseUrl(),_0xa7b5fd=await _0x1993f7[_0x2e50b0(0x185)](fetch,_0x57927d+'/api/v1/mcp/features/'+_0x2e44f7+'/checklist',{'method':_0x1993f7['CYnOH'],'headers':{'Authorization':_0x2e50b0(0x1a5)+_0xed1f15,'Content-Type':_0x1993f7['uKiYQ']},'body':JSON[_0x2e50b0(0x190)]({'description':_0x2d74e4,'position':_0x3e7184})});if(!_0xa7b5fd['ok']){const _0x38916e=await _0xa7b5fd['text']();throw new Error('Failed\x20to\x20create\x20scenario:\x20'+_0x38916e);}return _0xa7b5fd[_0x2e50b0(0x1a8)]();}export async function updateChecklistItem(_0x3961e2,_0x5e58ec,_0x40fe6e){const _0x303e5c=_0x32ce,_0x562da6={'NSHMS':function(_0x1b7ac8,_0x36f468,_0x67d577){return _0x1b7ac8(_0x36f468,_0x67d577);}};return _0x562da6['NSHMS'](withRetry,async()=>{const _0x3e42c8=_0x32ce,_0x207761=await getToken();if(!_0x207761)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x40baca=getApiBaseUrl(),_0x10983d=await fetch(_0x40baca+_0x3e42c8(0x18a)+_0x3961e2+_0x3e42c8(0x1a1)+_0x5e58ec,{'method':'PATCH','headers':{'Authorization':_0x3e42c8(0x1a5)+_0x207761,'Content-Type':_0x3e42c8(0x1b4)},'body':JSON['stringify'](_0x40fe6e)});if(!_0x10983d['ok']){const _0x396bd2=await _0x10983d['text']();throw new Error('Failed\x20to\x20update\x20scenario:\x20'+_0x396bd2);}return _0x10983d['json']();},{'label':_0x303e5c(0x183)});}export async function getFeatureReport(_0xc13a29){const _0x412956=_0x32ce,_0x161652={'JInov':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','iIAEN':function(_0xa2502e){return _0xa2502e();},'GQSma':function(_0x5de007,_0x8c75eb,_0x6082d9){return _0x5de007(_0x8c75eb,_0x6082d9);},'ToiXz':_0x412956(0x1a7)},_0x3d6509=await getToken();if(!_0x3d6509)throw new Error(_0x161652[_0x412956(0x191)]);const _0x4fb09a=_0x161652['iIAEN'](getApiBaseUrl),_0x383ddc=await _0x161652[_0x412956(0x19d)](fetch,_0x4fb09a+_0x412956(0x18a)+_0xc13a29+'/report',{'method':_0x161652['ToiXz'],'headers':{'Authorization':_0x412956(0x1a5)+_0x3d6509}});if(!_0x383ddc['ok']){const _0x300744=await _0x383ddc[_0x412956(0x187)]();throw new Error('Failed\x20to\x20get\x20feature\x20review\x20report:\x20'+_0x300744);}return _0x383ddc[_0x412956(0x1a8)]();}export async function getFeatureReportMarkdown(_0x3fbd8a,_0x3a5839){const _0x1409cd=_0x32ce,_0x34e075={'UrRKA':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','ODBwk':function(_0x1f9a32,_0x5dc9a1){return _0x1f9a32>_0x5dc9a1;},'Obzlr':function(_0x1f0da4,_0x4d2973){return _0x1f0da4(_0x4d2973);},'GPoAV':'sessionId','kYNoL':function(_0xdbe3b5,_0x15ea6){return _0xdbe3b5&&_0x15ea6;},'PtLcg':'style','KDLlb':function(_0x4b5e32,_0x31edc5,_0x12deee){return _0x4b5e32(_0x31edc5,_0x12deee);}},_0x5e6335=await getToken();if(!_0x5e6335)throw new Error(_0x34e075['UrRKA']);const _0x1550c6=getApiBaseUrl(),_0x375281=new URLSearchParams(),_0xe8ea3c=_0x34e075['ODBwk'](_0x3a5839?.['itemIds']?.['length']??0x0,0x0),_0x4ec2c5=_0x34e075['Obzlr'](Boolean,_0x3a5839?.['sessionId']);_0xe8ea3c&&_0x3a5839?.[_0x1409cd(0x195)]&&_0x375281['set'](_0x1409cd(0x195),_0x3a5839['itemIds'][_0x1409cd(0x18f)](','));_0x4ec2c5&&_0x3a5839?.[_0x1409cd(0x17a)]&&_0x375281[_0x1409cd(0x18e)](_0x34e075[_0x1409cd(0x199)],_0x3a5839['sessionId']);_0x34e075[_0x1409cd(0x184)](!_0xe8ea3c,!_0x4ec2c5)&&_0x3a5839?.[_0x1409cd(0x182)]&&_0x375281['set'](_0x34e075['PtLcg'],_0x3a5839['style']);const _0x513a27=_0x1550c6+'/api/v1/mcp/features/'+_0x3fbd8a+_0x1409cd(0x1b8),_0x182bbf=''+_0x513a27+(_0x375281['toString']()?'?'+_0x375281['toString']():''),_0x365564=await _0x34e075[_0x1409cd(0x1a2)](fetch,_0x182bbf,{'method':_0x1409cd(0x1a7),'headers':{'Authorization':_0x1409cd(0x1a5)+_0x5e6335}});if(!_0x365564['ok']){const _0x24ac85=await _0x365564[_0x1409cd(0x187)]();throw new Error(_0x1409cd(0x1a9)+_0x24ac85);}return _0x365564['text']();}export async function listFeatureSessions(_0x18406a){const _0x2fc1a7=_0x32ce,_0x3ebe2a={'JBMyN':_0x2fc1a7(0x1b7),'dxxQO':function(_0x5100b1){return _0x5100b1();},'Qrwaf':function(_0x53959f,_0x20c9b5,_0x275c3c){return _0x53959f(_0x20c9b5,_0x275c3c);}},_0x38402d=await getToken();if(!_0x38402d)throw new Error(_0x3ebe2a['JBMyN']);const _0x184191=_0x3ebe2a[_0x2fc1a7(0x17d)](getApiBaseUrl),_0x428af5=await _0x3ebe2a['Qrwaf'](fetch,_0x184191+_0x2fc1a7(0x18a)+_0x18406a+_0x2fc1a7(0x171),{'method':'GET','headers':{'Authorization':'Bearer\x20'+_0x38402d}});if(!_0x428af5['ok']){const _0x10395b=await _0x428af5['text']();throw new Error(_0x2fc1a7(0x1b6)+_0x10395b);}return _0x428af5[_0x2fc1a7(0x1a8)]();}function _0x30d8(){const _0x5435b4=['Failed\x20to\x20conclude\x20session:\x20','offset','itemIds','/conclude','jJvVi','Pjifw','GPoAV','yhiLg','RrNLu','https://dashboard.ranger.net/billing','GQSma','2092338BjlMkp','Feature\x20limit\x20exceeded','EZURy','/checklist/','KDLlb','2133PyDtQN','506583zjHVFs','Bearer\x20','48ZiUMvm','GET','json','Failed\x20to\x20get\x20feature\x20review\x20report\x20markdown:\x20','4059060nZXdcK','billingUrl','POST','includeDeleted','gitBranch','jwAgs','/sessions/','YgULu','YViMh','zHFeR','application/json','limit','Failed\x20to\x20list\x20sessions:\x20','No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','/report/markdown','Dctmt','/sessions','379376TflRgf','Failed\x20to\x20create\x20feature\x20review:\x20','dMHfb','PATCH','324hqTJdo','1219905KUDDcx','/feedback','dTtVf','sessionId','Failed\x20to\x20start\x20session:\x20','SLQdB','dxxQO','gitRepoUrl','1131460rMhPmP','YNJVv','hCpAo','style','updateChecklistItem','kYNoL','lVCIx','status','text','/action-items','MwTpO','/api/v1/mcp/features/','wydSh','4NLRcOm','toString','set','join','stringify','JInov','stwFd'];_0x30d8=function(){return _0x5435b4;};return _0x30d8();}export async function startSession(_0x5682d5,_0x3fa1f7){const _0x29cd29=_0x32ce,_0x59e280={'zHFeR':function(_0x1d5005){return _0x1d5005();},'pcPDK':function(_0x323c9e,_0x47196d,_0x4f68e7){return _0x323c9e(_0x47196d,_0x4f68e7);}},_0x2b2cb4=await _0x59e280[_0x29cd29(0x1b3)](getToken);if(!_0x2b2cb4)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x2a9220=getApiBaseUrl(),_0x15fe78=await _0x59e280['pcPDK'](fetch,_0x2a9220+_0x29cd29(0x18a)+_0x5682d5+'/sessions/'+_0x3fa1f7+'/start',{'method':_0x29cd29(0x1ac),'headers':{'Authorization':_0x29cd29(0x1a5)+_0x2b2cb4}});if(!_0x15fe78['ok']){const _0x1afd41=await _0x15fe78['text']();throw new Error(_0x29cd29(0x17b)+_0x1afd41);}return _0x15fe78[_0x29cd29(0x1a8)]();}export async function concludeSession(_0x44f520,_0x104239){const _0x583edb=_0x32ce,_0xdf962={'YViMh':function(_0x40d2c6){return _0x40d2c6();},'Pjifw':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','stwFd':function(_0xa8e1f4){return _0xa8e1f4();},'EbaEo':function(_0x331046,_0x45c41e,_0x311896){return _0x331046(_0x45c41e,_0x311896);},'QwNFN':'POST'},_0x2e5139=await _0xdf962[_0x583edb(0x1b2)](getToken);if(!_0x2e5139)throw new Error(_0xdf962[_0x583edb(0x198)]);const _0x4eff78=_0xdf962[_0x583edb(0x192)](getApiBaseUrl),_0x225a79=await _0xdf962['EbaEo'](fetch,_0x4eff78+_0x583edb(0x18a)+_0x44f520+_0x583edb(0x1b0)+_0x104239+_0x583edb(0x196),{'method':_0xdf962['QwNFN'],'headers':{'Authorization':_0x583edb(0x1a5)+_0x2e5139}});if(!_0x225a79['ok']){const _0x1c6fb8=await _0x225a79['text']();throw new Error(_0x583edb(0x193)+_0x1c6fb8);}return _0x225a79[_0x583edb(0x1a8)]();}export async function getActionItems(_0x51dbf5){const _0x2bc9b3=_0x32ce,_0xb5de41={'KtCOc':function(_0x1817b0){return _0x1817b0();}},_0x32b3b5=await getToken();if(!_0x32b3b5)throw new Error(_0x2bc9b3(0x1b7));const _0x386dcb=_0xb5de41['KtCOc'](getApiBaseUrl),_0x58f007=await fetch(_0x386dcb+'/api/v1/mcp/features/'+_0x51dbf5+_0x2bc9b3(0x188),{'method':_0x2bc9b3(0x1a7),'headers':{'Authorization':_0x2bc9b3(0x1a5)+_0x32b3b5}});if(!_0x58f007['ok']){const _0x76df67=await _0x58f007['text']();throw new Error('Failed\x20to\x20get\x20action\x20items:\x20'+_0x76df67);}return _0x58f007['json']();}function _0x32ce(_0x4702ae,_0x183dc){_0x4702ae=_0x4702ae-0x170;const _0x30d8e1=_0x30d8();let _0x32ce54=_0x30d8e1[_0x4702ae];return _0x32ce54;}export async function getItemFeedback(_0x2d08cc,_0x17b290){const _0x3dff9b=_0x32ce,_0x2cc213={'SLQdB':function(_0x342298){return _0x342298();},'yhiLg':function(_0x5a49f9,_0x10a604,_0x543c9b){return _0x5a49f9(_0x10a604,_0x543c9b);}},_0x3a1e33=await _0x2cc213[_0x3dff9b(0x17c)](getToken);if(!_0x3a1e33)throw new Error(_0x3dff9b(0x1b7));const _0x5d4439=getApiBaseUrl(),_0x2fd13b=await _0x2cc213[_0x3dff9b(0x19a)](fetch,_0x5d4439+_0x3dff9b(0x18a)+_0x2d08cc+'/checklist-items/'+_0x17b290+_0x3dff9b(0x178),{'method':_0x3dff9b(0x1a7),'headers':{'Authorization':_0x3dff9b(0x1a5)+_0x3a1e33}});if(!_0x2fd13b['ok']){const _0xd0a94c=await _0x2fd13b['text']();throw new Error('Failed\x20to\x20get\x20item\x20feedback:\x20'+_0xd0a94c);}return _0x2fd13b[_0x3dff9b(0x1a8)]();}export async function markCommentsAddressed(_0x355b3a,_0x5daff9,_0x471d2b){const _0x1ff429=_0x32ce,_0x8f3979={'jwAgs':function(_0x371c1a){return _0x371c1a();},'RrNLu':'POST','qblPe':_0x1ff429(0x1b4)},_0x184d5b=await _0x8f3979['jwAgs'](getToken);if(!_0x184d5b)throw new Error(_0x1ff429(0x1b7));const _0x8dc4a9=_0x8f3979[_0x1ff429(0x1af)](getApiBaseUrl),_0x5f0ace=await fetch(_0x8dc4a9+_0x1ff429(0x18a)+_0x355b3a+'/comments/address',{'method':_0x8f3979[_0x1ff429(0x19b)],'headers':{'Authorization':'Bearer\x20'+_0x184d5b,'Content-Type':_0x8f3979['qblPe']},'body':JSON[_0x1ff429(0x190)]({'checklistItemId':_0x5daff9,'commentIds':_0x471d2b})});if(!_0x5f0ace['ok']){const _0x29190e=await _0x5f0ace['text']();throw new Error('Failed\x20to\x20mark\x20comments\x20as\x20addressed:\x20'+_0x29190e);}}export async function softDeleteFeature(_0x22ba05){const _0x1cbd18=_0x32ce,_0x2395b2={'CxELu':function(_0x60138){return _0x60138();},'YNJVv':_0x1cbd18(0x1b7),'kyYax':function(_0xb9a175,_0x4510f9,_0x3d10a1){return _0xb9a175(_0x4510f9,_0x3d10a1);}},_0x23470d=await _0x2395b2['CxELu'](getToken);if(!_0x23470d)throw new Error(_0x2395b2[_0x1cbd18(0x180)]);const _0x5065cc=_0x2395b2['CxELu'](getApiBaseUrl),_0x57f5cc=await _0x2395b2['kyYax'](fetch,_0x5065cc+'/api/v1/mcp/features/'+_0x22ba05,{'method':'DELETE','headers':{'Authorization':_0x1cbd18(0x1a5)+_0x23470d}});if(!_0x57f5cc['ok']){const _0x37e5e5=await _0x57f5cc['text']();throw new Error('Failed\x20to\x20delete\x20feature\x20review:\x20'+_0x37e5e5);}}export async function restoreFeature(_0x3a6781){const _0xfb99b0=_0x32ce,_0x4508f1={'MwTpO':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','EZURy':'POST'},_0x3383d2=await getToken();if(!_0x3383d2)throw new Error(_0x4508f1[_0xfb99b0(0x189)]);const _0x482f8f=getApiBaseUrl(),_0x1d07fa=await fetch(_0x482f8f+_0xfb99b0(0x18a)+_0x3a6781+'/restore',{'method':_0x4508f1[_0xfb99b0(0x1a0)],'headers':{'Authorization':'Bearer\x20'+_0x3383d2}});if(!_0x1d07fa['ok']){const _0x429b0e=await _0x1d07fa[_0xfb99b0(0x187)]();throw new Error('Failed\x20to\x20restore\x20feature\x20review:\x20'+_0x429b0e);}}
@@ -1 +1 @@
1
- const _0x50e896=_0x11a4;function _0x11a4(_0x306256,_0x59acee){_0x306256=_0x306256-0x97;const _0xedc2bb=_0xedc2();let _0x11a4eb=_0xedc2bb[_0x306256];return _0x11a4eb;}(function(_0x28b4a3,_0x2b2262){const _0x1fa613=_0x11a4,_0x10dcac=_0x28b4a3();while(!![]){try{const _0x5d139b=-parseInt(_0x1fa613(0xc5))/0x1*(parseInt(_0x1fa613(0xce))/0x2)+-parseInt(_0x1fa613(0xc8))/0x3+-parseInt(_0x1fa613(0xaf))/0x4+parseInt(_0x1fa613(0xd2))/0x5+-parseInt(_0x1fa613(0xd3))/0x6+parseInt(_0x1fa613(0xdd))/0x7*(-parseInt(_0x1fa613(0xb7))/0x8)+parseInt(_0x1fa613(0xa6))/0x9;if(_0x5d139b===_0x2b2262)break;else _0x10dcac['push'](_0x10dcac['shift']());}catch(_0x3a910a){_0x10dcac['push'](_0x10dcac['shift']());}}}(_0xedc2,0x807c7));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_DURATION=0x4489,ID_VOID=0xec,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x1ac679,_0x411ff1){const _0x4ebbae=_0x11a4,_0x397c89={'QDqCT':function(_0x2ef6ec,_0x2931fc){return _0x2ef6ec+_0x2931fc;},'GsYhX':function(_0x147a86,_0x3dfcbb){return _0x147a86-_0x3dfcbb;},'hnNax':function(_0x4bee89,_0x61db41){return _0x4bee89<_0x61db41;},'uGOsN':function(_0x58fa12,_0x3acd1b){return _0x58fa12*_0x3acd1b;}};if(_0x411ff1>=_0x1ac679[_0x4ebbae(0xc2)])return[0x0,0x0];const _0x248cc9=_0x1ac679[_0x411ff1];let _0x3518b1=0x1,_0x259422=0x80;while(_0x3518b1<=0x8&&!(_0x248cc9&_0x259422)){_0x3518b1++,_0x259422>>=0x1;}if(_0x397c89[_0x4ebbae(0xe0)](_0x411ff1,_0x3518b1)>_0x1ac679[_0x4ebbae(0xc2)])return[0x0,0x0];let _0x2577f8=_0x248cc9&_0x397c89['GsYhX'](_0x259422,0x1);for(let _0x5e5f65=0x1;_0x397c89['hnNax'](_0x5e5f65,_0x3518b1);_0x5e5f65++){_0x2577f8=_0x397c89[_0x4ebbae(0xa4)](_0x2577f8,0x100)+_0x1ac679[_0x397c89['QDqCT'](_0x411ff1,_0x5e5f65)];}return[_0x2577f8,_0x3518b1];}function readId(_0x936a41,_0x5d2066){const _0x34b856=_0x11a4,_0x58dde5={'amAVy':function(_0x49a395,_0x5c1746){return _0x49a395>=_0x5c1746;},'sTylz':function(_0x2f2f3a,_0x324cec){return _0x2f2f3a*_0x324cec;}};if(_0x5d2066>=_0x936a41[_0x34b856(0xc2)])return[0x0,0x0];const _0x37ad0e=_0x936a41[_0x5d2066];let _0x59c63f;if(_0x37ad0e>=0x80)_0x59c63f=0x1;else{if(_0x58dde5[_0x34b856(0xa0)](_0x37ad0e,0x40))_0x59c63f=0x2;else{if(_0x37ad0e>=0x20)_0x59c63f=0x3;else{if(_0x37ad0e>=0x10)_0x59c63f=0x4;else return[_0x37ad0e,0x1];}}}if(_0x5d2066+_0x59c63f>_0x936a41['length'])return[0x0,0x0];let _0x46dbe9=0x0;for(let _0x59de02=0x0;_0x59de02<_0x59c63f;_0x59de02++){_0x46dbe9=_0x58dde5['sTylz'](_0x46dbe9,0x100)+_0x936a41[_0x5d2066+_0x59de02];}return[_0x46dbe9,_0x59c63f];}function readUint(_0x3214f9,_0x507693,_0x4f5f26){const _0x3c2eb9={'pQCtC':function(_0x33daaa,_0x4cc99f){return _0x33daaa*_0x4cc99f;}};let _0x29489f=0x0;for(let _0x22259c=0x0;_0x22259c<_0x4f5f26;_0x22259c++){_0x29489f=_0x3c2eb9['pQCtC'](_0x29489f,0x100)+_0x3214f9[_0x507693+_0x22259c];}return _0x29489f;}function isUnknownSize(_0x379c17,_0x1f4494){const _0x203aee=_0x11a4,_0x13ef7b={'nVWiB':function(_0x4c5797,_0x3ea7a6){return _0x4c5797-_0x3ea7a6;},'pXLWE':function(_0x1369f4,_0x585744){return _0x1369f4*_0x585744;}};return _0x379c17===_0x13ef7b[_0x203aee(0x9c)](Math['pow'](0x2,_0x13ef7b[_0x203aee(0xa3)](0x7,_0x1f4494)),0x1);}function writeId(_0x1a15d8){const _0x2c3027=_0x11a4,_0x1fcadd={'Ytdyu':function(_0x4b2646,_0xcb19f5){return _0x4b2646<=_0xcb19f5;},'jZBte':function(_0x59cae5,_0xe0e841){return _0x59cae5&_0xe0e841;},'xFQBv':function(_0x4efd11,_0x2f3682){return _0x4efd11&_0x2f3682;},'rfgfw':function(_0x143192,_0x2a8008){return _0x143192&_0x2a8008;},'pNjYL':function(_0x400276,_0x4344a0){return _0x400276>>_0x4344a0;},'tljCv':function(_0x5a8e24,_0x3244aa){return _0x5a8e24&_0x3244aa;}};if(_0x1fcadd[_0x2c3027(0xc3)](_0x1a15d8,0xff))return Buffer[_0x2c3027(0xcd)]([_0x1a15d8]);if(_0x1a15d8<=0xffff)return Buffer['from']([_0x1fcadd['jZBte'](_0x1a15d8>>0x8,0xff),_0x1fcadd['jZBte'](_0x1a15d8,0xff)]);if(_0x1a15d8<=0xffffff)return Buffer['from']([_0x1fcadd[_0x2c3027(0xdb)](_0x1a15d8>>0x10,0xff),_0x1fcadd[_0x2c3027(0xb1)](_0x1a15d8>>0x8,0xff),_0x1a15d8&0xff]);return Buffer['from']([_0x1a15d8>>0x18&0xff,_0x1fcadd[_0x2c3027(0xa8)](_0x1a15d8,0x10)&0xff,_0x1fcadd[_0x2c3027(0xa8)](_0x1a15d8,0x8)&0xff,_0x1fcadd['tljCv'](_0x1a15d8,0xff)]);}function writeVint(_0x4d4a90,_0x1535ff){const _0x1f0ec1=_0x11a4,_0x23cd68={'oenNM':function(_0x2dd320,_0x3cc026){return _0x2dd320*_0x3cc026;},'nmwkc':function(_0x867836,_0x5d7a60){return _0x867836-_0x5d7a60;}};let _0x538c9b=_0x1535ff||0x1;while(Math['pow'](0x2,_0x23cd68[_0x1f0ec1(0xd1)](0x7,_0x538c9b))-0x2<_0x4d4a90)_0x538c9b++;const _0x3c255b=Buffer['alloc'](_0x538c9b);for(let _0x2fe30f=_0x23cd68['nmwkc'](_0x538c9b,0x1);_0x2fe30f>=0x0;_0x2fe30f--){_0x3c255b[_0x2fe30f]=_0x4d4a90&0xff,_0x4d4a90=Math['floor'](_0x4d4a90/0x100);}return _0x3c255b[0x0]|=0x1<<0x8-_0x538c9b,_0x3c255b;}function writeFloat64(_0x5eaefe){const _0x227a5f=_0x11a4,_0x5967d0=Buffer['alloc'](0x8);return _0x5967d0[_0x227a5f(0xb0)](_0x5eaefe,0x0),_0x5967d0;}function writeVoid(_0x445a97){const _0x1577a0=_0x11a4,_0xe983cf={'xFuSd':function(_0x420108,_0x5531c7){return _0x420108-_0x5531c7;},'Teqsa':function(_0x8e5b61,_0x587a91){return _0x8e5b61>=_0x587a91;},'ZpyYD':function(_0x528827,_0x2d1d52){return _0x528827<=_0x2d1d52;},'LypzY':function(_0x57f2b3,_0xe35ea){return _0x57f2b3-_0xe35ea;},'EusXH':function(_0x4e776d,_0x4353c3,_0x98bc9c){return _0x4e776d(_0x4353c3,_0x98bc9c);}};for(let _0x2d7a19=0x1;_0x2d7a19<=0x8;_0x2d7a19++){const _0x165926=_0xe983cf[_0x1577a0(0xd9)](_0x445a97,0x1)-_0x2d7a19;if(_0xe983cf[_0x1577a0(0xc9)](_0x165926,0x0)&&_0xe983cf['ZpyYD'](_0x165926,_0xe983cf['LypzY'](Math[_0x1577a0(0x9b)](0x2,0x7*_0x2d7a19),0x2)))return Buffer['concat']([Buffer['from']([ID_VOID]),_0xe983cf['EusXH'](writeVint,_0x165926,_0x2d7a19),Buffer['alloc'](_0x165926)]);}return Buffer[_0x1577a0(0xd4)](0x0);}function findElement(_0x20d2ce,_0x4a7639,_0x109c78,_0x26e685){const _0x2fbce1=_0x11a4,_0x5184d4={'gJKqe':function(_0x273323,_0x3f0ffe){return _0x273323<_0x3f0ffe;},'QZNRF':function(_0x4c7765,_0x237c6a,_0x4b2f15){return _0x4c7765(_0x237c6a,_0x4b2f15);},'MOkuT':function(_0x1edf61,_0x3107fa,_0x551e29){return _0x1edf61(_0x3107fa,_0x551e29);},'LqmVi':function(_0x8f0be9,_0x16547f){return _0x8f0be9+_0x16547f;},'IzdAN':function(_0x5cd63b,_0x4572e6,_0x3ec171){return _0x5cd63b(_0x4572e6,_0x3ec171);},'mhyqE':function(_0x4168ad,_0x4e8b96){return _0x4168ad+_0x4e8b96;}};let _0x2dbe2a=_0x4a7639;while(_0x5184d4[_0x2fbce1(0xbd)](_0x2dbe2a,_0x109c78)){const [_0x499944,_0x937d0e]=_0x5184d4[_0x2fbce1(0xd7)](readId,_0x20d2ce,_0x2dbe2a),[_0x418706,_0x221c99]=_0x5184d4[_0x2fbce1(0xcb)](readVint,_0x20d2ce,_0x2dbe2a+_0x937d0e);if(_0x499944===_0x26e685)return{'offset':_0x2dbe2a,'idLen':_0x937d0e,'sizeLen':_0x221c99,'dataSize':_0x418706,'dataOffset':_0x5184d4[_0x2fbce1(0xdf)](_0x2dbe2a+_0x937d0e,_0x221c99)};if(_0x5184d4['IzdAN'](isUnknownSize,_0x418706,_0x221c99))break;_0x2dbe2a+=_0x5184d4['mhyqE'](_0x5184d4['LqmVi'](_0x937d0e,_0x221c99),_0x418706);}return null;}function computeDurationMs(_0x3cdc2c,_0x22efbc){const _0x502f3a=_0x11a4,_0x569ad7={'qbrxc':function(_0x2b617a,_0x3b6dad){return _0x2b617a===_0x3b6dad;},'oLVKu':function(_0x254def,_0x360faf){return _0x254def<_0x360faf;},'BKBfF':function(_0x167494,_0x4f57e7){return _0x167494!==_0x4f57e7;},'rscjU':function(_0x7df004,_0xd0a8f2,_0xb2cf55){return _0x7df004(_0xd0a8f2,_0xb2cf55);},'OJsjV':function(_0x20da23,_0x372a6f){return _0x20da23+_0x372a6f;},'ddpnK':function(_0x131388,_0x358fce){return _0x131388+_0x358fce;},'glxJh':function(_0x2951d4,_0x42a81,_0x199841){return _0x2951d4(_0x42a81,_0x199841);},'XeeQO':function(_0x178e55,_0x4e6d37){return _0x178e55<_0x4e6d37;},'XWpXt':function(_0x198543,_0x18498b,_0x10b51f){return _0x198543(_0x18498b,_0x10b51f);},'lhyky':function(_0x150d41,_0x180346,_0x2dabd3){return _0x150d41(_0x180346,_0x2dabd3);},'GlOLU':function(_0x543746,_0x4ab868){return _0x543746===_0x4ab868;},'ceZZS':function(_0x18b837,_0x37dffe){return _0x18b837+_0x37dffe;},'mpBpn':function(_0x1f1762,_0x3a0835){return _0x1f1762+_0x3a0835;},'InqMy':function(_0x2741b5,_0x2ae42e){return _0x2741b5/_0x2ae42e;},'Iytnd':function(_0x27f727,_0xe5454){return _0x27f727*_0xe5454;},'AxRiw':function(_0x41799d,_0x3a49bb){return _0x41799d+_0x3a49bb;}};let _0xf57cdb=0x0;const _0x8222d3=Buffer[_0x502f3a(0xcd)]([0x1f,0x43,0xb6,0x75]);let _0x50baac=_0x3cdc2c[_0x502f3a(0xad)](_0x8222d3);if(_0x569ad7[_0x502f3a(0xa2)](_0x50baac,-0x1))return 0x0;while(_0x569ad7[_0x502f3a(0x99)](_0x50baac,_0x3cdc2c['length'])){const [_0x2a97da,_0x166cfd]=readId(_0x3cdc2c,_0x50baac);if(_0x569ad7[_0x502f3a(0xca)](_0x2a97da,ID_CLUSTER))break;const [_0x20d178,_0x381c65]=_0x569ad7[_0x502f3a(0xd8)](readVint,_0x3cdc2c,_0x569ad7['OJsjV'](_0x50baac,_0x166cfd)),_0x4ac0f5=_0x569ad7['ddpnK'](_0x50baac+_0x166cfd,_0x381c65),_0x3d2532=_0x569ad7['rscjU'](isUnknownSize,_0x20d178,_0x381c65);let _0x51f65d;if(_0x3d2532){let _0x38bf55=_0x4ac0f5;while(_0x38bf55<_0x3cdc2c['length']-0x4){const [_0xf28f9a,_0xa65342]=readId(_0x3cdc2c,_0x38bf55);if(_0xf28f9a===ID_CLUSTER){_0x51f65d=_0x38bf55;break;}const [_0xa8f032,_0x5529f2]=_0x569ad7['glxJh'](readVint,_0x3cdc2c,_0x38bf55+_0xa65342);if(_0x569ad7['glxJh'](isUnknownSize,_0xa8f032,_0x5529f2)){_0x51f65d=_0x3cdc2c['length'];break;}_0x38bf55+=_0x569ad7[_0x502f3a(0xbe)](_0xa65342+_0x5529f2,_0xa8f032);}_0x51f65d??=_0x3cdc2c['length'];}else _0x51f65d=_0x569ad7['ddpnK'](_0x4ac0f5,_0x20d178);let _0x1213ff=0x0,_0x3f4465=_0x4ac0f5;while(_0x569ad7['XeeQO'](_0x3f4465,_0x51f65d)){const [_0x1d9a70,_0x3a56da]=_0x569ad7[_0x502f3a(0x9f)](readId,_0x3cdc2c,_0x3f4465),[_0x5bea10,_0x11659f]=_0x569ad7[_0x502f3a(0xdc)](readVint,_0x3cdc2c,_0x3f4465+_0x3a56da);if(_0x569ad7[_0x502f3a(0xc7)](_0x1d9a70,ID_TIMESTAMP))_0x1213ff=readUint(_0x3cdc2c,_0x569ad7[_0x502f3a(0xd5)](_0x3f4465,_0x3a56da)+_0x11659f,_0x5bea10);else{if(_0x569ad7[_0x502f3a(0xa2)](_0x1d9a70,ID_SIMPLE_BLOCK)&&_0x5bea10>=0x4){const _0x4a783e=_0x569ad7[_0x502f3a(0xa5)](_0x3f4465+_0x3a56da,_0x11659f),[,_0x1be592]=readVint(_0x3cdc2c,_0x4a783e),_0x4169ae=_0x3cdc2c['readInt16BE'](_0x569ad7[_0x502f3a(0xcc)](_0x4a783e,_0x1be592)),_0x5ca2c0=_0x569ad7['InqMy'](_0x569ad7[_0x502f3a(0xe1)](_0x569ad7['mpBpn'](_0x1213ff,_0x4169ae),_0x22efbc),0xf4240);_0x5ca2c0>_0xf57cdb&&(_0xf57cdb=_0x5ca2c0);}else{if(_0x1d9a70===ID_CLUSTER)break;}}if(_0x569ad7[_0x502f3a(0x9f)](isUnknownSize,_0x5bea10,_0x11659f))break;_0x3f4465+=_0x569ad7['AxRiw'](_0x3a56da,_0x11659f)+_0x5bea10;}_0x50baac=_0x51f65d;}return _0xf57cdb;}export function fixWebmDuration(_0x3d0461,_0x4aa1b4){const _0x1e1b0f=_0x11a4,_0x2b1d17={'BYCxh':function(_0x100fe5,_0x55046b){return _0x100fe5(_0x55046b);},'AoSxs':function(_0x3efb72,_0x4210da,_0x10c317){return _0x3efb72(_0x4210da,_0x10c317);},'XMPfQ':function(_0x5622ed,_0x7ef3e9){return _0x5622ed+_0x7ef3e9;},'zkvQL':function(_0x53897b,_0x3b3a5a){return _0x53897b+_0x3b3a5a;},'hNgQk':function(_0x1ebe65,_0x517441){return _0x1ebe65!==_0x517441;},'JphTk':function(_0x26fa7d,_0x5c94d5){return _0x26fa7d+_0x5c94d5;},'evvGJ':function(_0x500b59,_0x47a487){return _0x500b59+_0x47a487;},'dtmGP':function(_0x586a88,_0x295d86){return _0x586a88<_0x295d86;},'GKcZb':function(_0xc792ba,_0x466e73){return _0xc792ba+_0x466e73;},'bXHCV':function(_0x454858,_0xbbba38){return _0x454858+_0xbbba38;},'BvYgI':function(_0x230457,_0x55c3f1){return _0x230457===_0x55c3f1;},'yTldc':function(_0x324f13,_0x52c0fc,_0x1b885d){return _0x324f13(_0x52c0fc,_0x1b885d);},'MyTny':function(_0x55424e,_0x4960d9){return _0x55424e+_0x4960d9;},'ChyMH':'Could\x20not\x20find\x20Info\x20element','qvStM':function(_0x232a6e,_0x1adc13,_0x21e60d,_0x2429ad,_0x4e5f41){return _0x232a6e(_0x1adc13,_0x21e60d,_0x2429ad,_0x4e5f41);},'PKaeJ':function(_0x358438,_0x369553,_0x5ec99d,_0x330141,_0x3fb2d4){return _0x358438(_0x369553,_0x5ec99d,_0x330141,_0x3fb2d4);},'fhwYQ':function(_0x2ac5e7,_0x40daa5,_0xcb2e98){return _0x2ac5e7(_0x40daa5,_0xcb2e98);},'LtFIk':'Could\x20not\x20compute\x20duration','TzJgg':function(_0x59dcca,_0x3d0169){return _0x59dcca/_0x3d0169;},'uRqDn':function(_0x439efb,_0x2254a5){return _0x439efb*_0x2254a5;},'pkVYL':function(_0x5ed7d0,_0x52d4b9){return _0x5ed7d0<_0x52d4b9;},'DmMFX':function(_0x433b46,_0xd461f8){return _0x433b46+_0xd461f8;},'CfdbP':function(_0x162925,_0x37c46e){return _0x162925-_0x37c46e;},'xvjAE':function(_0x5d0c7a,_0x1df070){return _0x5d0c7a<_0x1df070;},'AwaOa':function(_0x257804,_0x246df4){return _0x257804(_0x246df4);}},_0x41f782=_0x2b1d17[_0x1e1b0f(0xb3)](readFileSync,_0x3d0461);let _0x4cc366=0x0;const [_0x4b0fa0,_0x482b50]=_0x2b1d17['AoSxs'](readId,_0x41f782,_0x4cc366),[_0x3a7a28,_0x570931]=readVint(_0x41f782,_0x2b1d17[_0x1e1b0f(0xbb)](_0x4cc366,_0x482b50));_0x4cc366+=_0x2b1d17['XMPfQ'](_0x2b1d17[_0x1e1b0f(0xb8)](_0x482b50,_0x570931),_0x3a7a28);const [_0x51f5ee,_0x5b41e2]=_0x2b1d17[_0x1e1b0f(0xcf)](readId,_0x41f782,_0x4cc366);if(_0x2b1d17['hNgQk'](_0x51f5ee,ID_SEGMENT))return console['error']('Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment'),![];const [,_0x2c7862]=_0x2b1d17['AoSxs'](readVint,_0x41f782,_0x2b1d17[_0x1e1b0f(0xb4)](_0x4cc366,_0x5b41e2)),_0x32be9d=_0x2b1d17[_0x1e1b0f(0xab)](_0x4cc366,_0x5b41e2)+_0x2c7862;let _0x4d30f7=_0x32be9d;const _0x2a1e64=Math['min'](_0x41f782['length'],_0x32be9d+0x2710);let _0x5a70a2=null,_0x14ecb6=null;while(_0x2b1d17[_0x1e1b0f(0x97)](_0x4d30f7,_0x2a1e64)){const [_0x2c6dff,_0x4da714]=_0x2b1d17[_0x1e1b0f(0xcf)](readId,_0x41f782,_0x4d30f7),[_0x35a964,_0x2be5c4]=_0x2b1d17[_0x1e1b0f(0xcf)](readVint,_0x41f782,_0x4d30f7+_0x4da714);_0x2c6dff===ID_VOID&&!_0x5a70a2&&(_0x5a70a2={'offset':_0x4d30f7,'idLen':_0x4da714,'sizeLen':_0x2be5c4,'dataSize':_0x35a964,'dataOffset':_0x2b1d17['GKcZb'](_0x4d30f7+_0x4da714,_0x2be5c4)});if(_0x2c6dff===ID_INFO){_0x14ecb6={'offset':_0x4d30f7,'idLen':_0x4da714,'sizeLen':_0x2be5c4,'dataSize':_0x35a964,'dataOffset':_0x2b1d17['GKcZb'](_0x2b1d17['bXHCV'](_0x4d30f7,_0x4da714),_0x2be5c4)};break;}if(_0x2b1d17[_0x1e1b0f(0x9d)](_0x2c6dff,ID_CLUSTER))break;if(_0x2b1d17[_0x1e1b0f(0xda)](isUnknownSize,_0x35a964,_0x2be5c4))break;_0x4d30f7+=_0x2b1d17[_0x1e1b0f(0x9a)](_0x4da714,_0x2be5c4)+_0x35a964;}if(!_0x14ecb6)return console[_0x1e1b0f(0xc0)](_0x2b1d17['ChyMH']),![];const _0x576683=_0x2b1d17[_0x1e1b0f(0xb6)](findElement,_0x41f782,_0x14ecb6['dataOffset'],_0x14ecb6[_0x1e1b0f(0xb5)]+_0x14ecb6['dataSize'],ID_DURATION);if(_0x576683)return![];const _0x48b162=_0x2b1d17[_0x1e1b0f(0xc6)](findElement,_0x41f782,_0x14ecb6[_0x1e1b0f(0xb5)],_0x14ecb6[_0x1e1b0f(0xb5)]+_0x14ecb6[_0x1e1b0f(0x98)],ID_TIMESTAMP_SCALE);let _0xb23ca5=0xf4240;_0x48b162&&(_0xb23ca5=readUint(_0x41f782,_0x48b162[_0x1e1b0f(0xb5)],_0x48b162[_0x1e1b0f(0x98)]));const _0x22a867=_0x2b1d17[_0x1e1b0f(0xaa)](computeDurationMs,_0x41f782,_0xb23ca5);if(_0x22a867<=0x0)return console[_0x1e1b0f(0xc0)](_0x2b1d17[_0x1e1b0f(0xc1)]),![];const _0x313e86=_0x2b1d17['TzJgg'](_0x2b1d17['uRqDn'](_0x22a867,0xf4240),_0xb23ca5),_0x700718=Buffer[_0x1e1b0f(0xb9)]([writeId(ID_DURATION),_0x2b1d17['BYCxh'](writeVint,0x8),writeFloat64(_0x313e86)]),_0x5e8b23=_0x700718['length'];if(!_0x5a70a2||_0x2b1d17[_0x1e1b0f(0xba)](_0x5a70a2['offset'],_0x14ecb6['offset'])){if(_0x5a70a2){const _0x53d776=_0x2b1d17['DmMFX'](_0x2b1d17['JphTk'](_0x5a70a2[_0x1e1b0f(0xc4)],_0x5a70a2['sizeLen']),_0x5a70a2[_0x1e1b0f(0x98)]),_0x55c480=_0x2b1d17[_0x1e1b0f(0xd6)](_0x53d776,_0x5e8b23);if(_0x2b1d17['xvjAE'](_0x55c480,0x2))return rewriteFile(_0x41f782,_0x14ecb6,_0x700718,_0xb23ca5,_0x22a867,_0x4aa1b4);const _0x12ce0d=_0x14ecb6['dataSize']+_0x5e8b23,_0x15c111=Buffer['concat']([_0x2b1d17[_0x1e1b0f(0xbc)](writeId,ID_INFO),_0x2b1d17[_0x1e1b0f(0xaa)](writeVint,_0x12ce0d,_0x14ecb6['sizeLen'])]),_0x15aec1=_0x41f782['slice'](_0x14ecb6['dataOffset'],_0x2b1d17['XMPfQ'](_0x14ecb6[_0x1e1b0f(0xb5)],_0x14ecb6['dataSize'])),_0x4fd0ab=writeVoid(_0x55c480),_0x1de493=_0x41f782['slice'](0x0,_0x5a70a2[_0x1e1b0f(0xae)]),_0x102be4=_0x41f782[_0x1e1b0f(0x9e)](_0x2b1d17['DmMFX'](_0x14ecb6['dataOffset'],_0x14ecb6[_0x1e1b0f(0x98)]));return _0x2b1d17[_0x1e1b0f(0xcf)](writeFileSync,_0x4aa1b4,Buffer['concat']([_0x1de493,_0x4fd0ab,_0x15c111,_0x15aec1,_0x700718,_0x102be4])),!![];}}return rewriteFile(_0x41f782,_0x14ecb6,_0x700718,_0xb23ca5,_0x22a867,_0x4aa1b4);}function rewriteFile(_0x488672,_0x43b7a5,_0x19d49c,_0xd09f34,_0x2599f9,_0x5eb356){const _0x9fea07=_0x11a4,_0x2bb3b6={'HfrVX':function(_0x12a617,_0x83f792){return _0x12a617(_0x83f792);},'yeHAq':function(_0x2c9a85,_0x57ac32){return _0x2c9a85(_0x57ac32);},'TXZhK':function(_0x48b4b0,_0x190d8e){return _0x48b4b0+_0x190d8e;},'sTxWT':function(_0x128734,_0x31662c){return _0x128734+_0x31662c;},'FlVuE':function(_0x1ad73e,_0x10ec88,_0x1e6e72){return _0x1ad73e(_0x10ec88,_0x1e6e72);}},_0x2ad233=_0x43b7a5['dataSize']+_0x19d49c['length'],_0x135b5f=Buffer['concat']([_0x2bb3b6[_0x9fea07(0xde)](writeId,ID_INFO),_0x2bb3b6['yeHAq'](writeVint,_0x2ad233)]),_0x5d9170=_0x43b7a5['idLen']+_0x43b7a5[_0x9fea07(0xac)],_0xa1f4ce=_0x488672[_0x9fea07(0x9e)](0x0,_0x43b7a5[_0x9fea07(0xae)]),_0x2dff09=_0x488672['slice'](_0x43b7a5['dataOffset'],_0x2bb3b6['TXZhK'](_0x43b7a5['dataOffset'],_0x43b7a5['dataSize'])),_0x5b9724=_0x488672['slice'](_0x2bb3b6['sTxWT'](_0x43b7a5['offset'],_0x5d9170)+_0x43b7a5['dataSize']);return _0x2bb3b6[_0x9fea07(0xa1)](writeFileSync,_0x5eb356,Buffer[_0x9fea07(0xb9)]([_0xa1f4ce,_0x135b5f,_0x2dff09,_0x19d49c,_0x5b9724])),!![];}if(process[_0x50e896(0xa9)][0x1]?.['endsWith']('fixWebmDuration.ts')||process['argv'][0x1]?.['endsWith'](_0x50e896(0xbf))){const input=process[_0x50e896(0xa9)][0x2],output=process[_0x50e896(0xa9)][0x3];(!input||!output)&&(console['error'](_0x50e896(0xa7)),process[_0x50e896(0xd0)](0x1));const fixed=fixWebmDuration(input,output);fixed?console['log']('Fixed:\x20'+output):console[_0x50e896(0xb2)]('File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.');}function _0xedc2(){const _0x326b0a=['LqmVi','QDqCT','Iytnd','dtmGP','dataSize','oLVKu','MyTny','pow','nVWiB','BvYgI','slice','XWpXt','amAVy','FlVuE','qbrxc','pXLWE','uGOsN','ceZZS','22889826yNfcYw','Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>','pNjYL','argv','fhwYQ','evvGJ','sizeLen','indexOf','offset','4186696rEvgEm','writeDoubleBE','rfgfw','log','BYCxh','JphTk','dataOffset','qvStM','265624vviUfv','zkvQL','concat','pkVYL','XMPfQ','AwaOa','gJKqe','ddpnK','fixWebmDuration.js','error','LtFIk','length','Ytdyu','idLen','37LlZYPK','PKaeJ','GlOLU','1999218PzJvsF','Teqsa','BKBfF','MOkuT','mpBpn','from','10082WlcVGY','AoSxs','exit','oenNM','4575710hUZgTV','1215030nmhgTR','alloc','OJsjV','CfdbP','QZNRF','rscjU','xFuSd','yTldc','xFQBv','lhyky','175dESHSN','HfrVX'];_0xedc2=function(){return _0x326b0a;};return _0xedc2();}
1
+ const _0xae1972=_0x14be;(function(_0x5d87bf,_0x2e615c){const _0x445204=_0x14be,_0x3eb3f3=_0x5d87bf();while(!![]){try{const _0x2851b2=-parseInt(_0x445204(0x1f0))/0x1*(-parseInt(_0x445204(0x1e3))/0x2)+parseInt(_0x445204(0x1d3))/0x3*(parseInt(_0x445204(0x1d9))/0x4)+-parseInt(_0x445204(0x209))/0x5+-parseInt(_0x445204(0x1d6))/0x6+parseInt(_0x445204(0x1d5))/0x7+-parseInt(_0x445204(0x1eb))/0x8*(parseInt(_0x445204(0x205))/0x9)+parseInt(_0x445204(0x1fa))/0xa;if(_0x2851b2===_0x2e615c)break;else _0x3eb3f3['push'](_0x3eb3f3['shift']());}catch(_0x489a1a){_0x3eb3f3['push'](_0x3eb3f3['shift']());}}}(_0x12fd,0x1c713));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_DURATION=0x4489,ID_VOID=0xec,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x41bdc3,_0x1e7a1f){const _0xddbd5c=_0x14be,_0x5ad30e={'osaDS':function(_0x1ed3a1,_0x1713fe){return _0x1ed3a1<=_0x1713fe;},'MhOZF':function(_0x570983,_0x23cf8f){return _0x570983&_0x23cf8f;},'tKnQJ':function(_0x1bba46,_0x1d4a47){return _0x1bba46>_0x1d4a47;},'eMYkX':function(_0x5d0dfa,_0x5edc75){return _0x5d0dfa+_0x5edc75;},'WTMgg':function(_0x2fedc5,_0xf8b058){return _0x2fedc5-_0xf8b058;},'BjlHt':function(_0x3b497b,_0x457a9a){return _0x3b497b<_0x457a9a;}};if(_0x1e7a1f>=_0x41bdc3['length'])return[0x0,0x0];const _0xfb54=_0x41bdc3[_0x1e7a1f];let _0xac5e92=0x1,_0x657e4=0x80;while(_0x5ad30e[_0xddbd5c(0x1f4)](_0xac5e92,0x8)&&!_0x5ad30e[_0xddbd5c(0x1e6)](_0xfb54,_0x657e4)){_0xac5e92++,_0x657e4>>=0x1;}if(_0x5ad30e['tKnQJ'](_0x5ad30e[_0xddbd5c(0x1cb)](_0x1e7a1f,_0xac5e92),_0x41bdc3['length']))return[0x0,0x0];let _0x134ff0=_0x5ad30e['MhOZF'](_0xfb54,_0x5ad30e['WTMgg'](_0x657e4,0x1));for(let _0x232f85=0x1;_0x5ad30e[_0xddbd5c(0x1e1)](_0x232f85,_0xac5e92);_0x232f85++){_0x134ff0=_0x134ff0*0x100+_0x41bdc3[_0x1e7a1f+_0x232f85];}return[_0x134ff0,_0xac5e92];}function readId(_0x294d57,_0x1906a6){const _0x5bc5ab=_0x14be,_0x3d8255={'uiSEO':function(_0x198ac5,_0x165416){return _0x198ac5>=_0x165416;},'DBZfZ':function(_0x4de0ee,_0x176b59){return _0x4de0ee>_0x176b59;},'VBTRY':function(_0x54efde,_0x3baec4){return _0x54efde+_0x3baec4;},'dFdwS':function(_0x23818c,_0xf3956b){return _0x23818c*_0xf3956b;}};if(_0x1906a6>=_0x294d57[_0x5bc5ab(0x1f3)])return[0x0,0x0];const _0x19abe3=_0x294d57[_0x1906a6];let _0x14ad9c;if(_0x3d8255[_0x5bc5ab(0x1c6)](_0x19abe3,0x80))_0x14ad9c=0x1;else{if(_0x19abe3>=0x40)_0x14ad9c=0x2;else{if(_0x3d8255['uiSEO'](_0x19abe3,0x20))_0x14ad9c=0x3;else{if(_0x19abe3>=0x10)_0x14ad9c=0x4;else return[_0x19abe3,0x1];}}}if(_0x3d8255['DBZfZ'](_0x1906a6+_0x14ad9c,_0x294d57[_0x5bc5ab(0x1f3)]))return[0x0,0x0];let _0x40e7c2=0x0;for(let _0x35465e=0x0;_0x35465e<_0x14ad9c;_0x35465e++){_0x40e7c2=_0x3d8255[_0x5bc5ab(0x1da)](_0x3d8255['dFdwS'](_0x40e7c2,0x100),_0x294d57[_0x1906a6+_0x35465e]);}return[_0x40e7c2,_0x14ad9c];}function readUint(_0x5dcc19,_0x498bef,_0x24b19f){const _0x28c2d5=_0x14be,_0x5f14da={'uhHBW':function(_0x5507dc,_0xa542ce){return _0x5507dc<_0xa542ce;},'MmlPy':function(_0x519759,_0x10ff13){return _0x519759+_0x10ff13;},'LKBjI':function(_0x4210c1,_0x159839){return _0x4210c1*_0x159839;}};let _0x500103=0x0;for(let _0x5138dc=0x0;_0x5f14da['uhHBW'](_0x5138dc,_0x24b19f);_0x5138dc++){_0x500103=_0x5f14da[_0x28c2d5(0x1e4)](_0x5f14da[_0x28c2d5(0x1ef)](_0x500103,0x100),_0x5dcc19[_0x5f14da['MmlPy'](_0x498bef,_0x5138dc)]);}return _0x500103;}function isUnknownSize(_0x347bf1,_0x30a797){const _0x24711a=_0x14be,_0x155c47={'AXNkQ':function(_0x3fd36c,_0xf7d9fb){return _0x3fd36c===_0xf7d9fb;},'hPqPs':function(_0x3db74a,_0x113d6a){return _0x3db74a*_0x113d6a;}};return _0x155c47[_0x24711a(0x1d1)](_0x347bf1,Math['pow'](0x2,_0x155c47[_0x24711a(0x1ee)](0x7,_0x30a797))-0x1);}function writeId(_0x40e51e){const _0x1fc4aa=_0x14be,_0x5155a2={'TQcNb':function(_0x187620,_0x5192ab){return _0x187620<=_0x5192ab;},'eZsjT':function(_0x1b4638,_0x144f6f){return _0x1b4638&_0x144f6f;},'IPowd':function(_0x2b5187,_0x1a1afd){return _0x2b5187>>_0x1a1afd;},'eGicx':function(_0x376666,_0x350e57){return _0x376666&_0x350e57;},'Emyda':function(_0x9212f9,_0x36264e){return _0x9212f9<=_0x36264e;},'zuiTA':function(_0xbcc50c,_0x62980e){return _0xbcc50c&_0x62980e;},'bMrOQ':function(_0x39d092,_0x463246){return _0x39d092&_0x463246;},'klySf':function(_0x4d53ee,_0x462e4f){return _0x4d53ee>>_0x462e4f;}};if(_0x40e51e<=0xff)return Buffer['from']([_0x40e51e]);if(_0x5155a2[_0x1fc4aa(0x200)](_0x40e51e,0xffff))return Buffer['from']([_0x5155a2['eZsjT'](_0x5155a2['IPowd'](_0x40e51e,0x8),0xff),_0x5155a2['eGicx'](_0x40e51e,0xff)]);if(_0x5155a2[_0x1fc4aa(0x1fd)](_0x40e51e,0xffffff))return Buffer['from']([_0x40e51e>>0x10&0xff,_0x5155a2['zuiTA'](_0x40e51e>>0x8,0xff),_0x5155a2['zuiTA'](_0x40e51e,0xff)]);return Buffer[_0x1fc4aa(0x1de)]([_0x5155a2[_0x1fc4aa(0x1f9)](_0x40e51e>>0x18,0xff),_0x5155a2['zuiTA'](_0x40e51e>>0x10,0xff),_0x5155a2[_0x1fc4aa(0x1d8)](_0x40e51e,0x8)&0xff,_0x5155a2['eGicx'](_0x40e51e,0xff)]);}function writeVint(_0x5196f6,_0x1cc86e){const _0x5e8385=_0x14be,_0x26e5f3={'aKqVO':function(_0x27ab51,_0x5caf0b){return _0x27ab51<_0x5caf0b;},'ynAFJ':function(_0x4bd4eb,_0x25eb2b){return _0x4bd4eb-_0x25eb2b;},'zfZcT':function(_0x27851e,_0x30e1a5){return _0x27851e>=_0x30e1a5;},'Ttojk':function(_0x14daae,_0x1f1317){return _0x14daae<<_0x1f1317;},'KGaub':function(_0x5a708c,_0x3a43f9){return _0x5a708c-_0x3a43f9;}};let _0x42c5dc=_0x1cc86e||0x1;while(_0x26e5f3['aKqVO'](Math[_0x5e8385(0x1d2)](0x2,0x7*_0x42c5dc)-0x2,_0x5196f6))_0x42c5dc++;const _0x12655d=Buffer['alloc'](_0x42c5dc);for(let _0x158a3c=_0x26e5f3[_0x5e8385(0x1ff)](_0x42c5dc,0x1);_0x26e5f3['zfZcT'](_0x158a3c,0x0);_0x158a3c--){_0x12655d[_0x158a3c]=_0x5196f6&0xff,_0x5196f6=Math['floor'](_0x5196f6/0x100);}return _0x12655d[0x0]|=_0x26e5f3['Ttojk'](0x1,_0x26e5f3['KGaub'](0x8,_0x42c5dc)),_0x12655d;}function writeFloat64(_0x513b48){const _0x35e5ae=_0x14be,_0x1d1d1b=Buffer['alloc'](0x8);return _0x1d1d1b[_0x35e5ae(0x1f5)](_0x513b48,0x0),_0x1d1d1b;}function writeVoid(_0x4a2f74){const _0x33d8a7=_0x14be,_0x578e70={'rsPya':function(_0x249031,_0x335776){return _0x249031-_0x335776;},'nWLJl':function(_0x4bb64e,_0x59f939){return _0x4bb64e>=_0x59f939;},'nyOGo':function(_0x35b07c,_0x127b31,_0x51d129){return _0x35b07c(_0x127b31,_0x51d129);}};for(let _0xc8a8fb=0x1;_0xc8a8fb<=0x8;_0xc8a8fb++){const _0x549cc4=_0x578e70['rsPya'](_0x4a2f74-0x1,_0xc8a8fb);if(_0x578e70[_0x33d8a7(0x1e0)](_0x549cc4,0x0)&&_0x549cc4<=Math['pow'](0x2,0x7*_0xc8a8fb)-0x2)return Buffer['concat']([Buffer['from']([ID_VOID]),_0x578e70['nyOGo'](writeVint,_0x549cc4,_0xc8a8fb),Buffer[_0x33d8a7(0x1e7)](_0x549cc4)]);}return Buffer[_0x33d8a7(0x1e7)](0x0);}function _0x14be(_0x2c89f1,_0x210efa){_0x2c89f1=_0x2c89f1-0x1c4;const _0x12fd72=_0x12fd();let _0x14be8d=_0x12fd72[_0x2c89f1];return _0x14be8d;}function findElement(_0x5765c4,_0x3ec658,_0x2b5b75,_0x34fd78){const _0x15b0a4=_0x14be,_0x2033b0={'kNniW':function(_0x16ea21,_0x31d527,_0x39f34b){return _0x16ea21(_0x31d527,_0x39f34b);},'fPPEi':function(_0xb65d93,_0x5f2be8){return _0xb65d93+_0x5f2be8;},'bgdlq':function(_0x4dc0f0,_0x54c03e){return _0x4dc0f0+_0x54c03e;}};let _0x4ed2c3=_0x3ec658;while(_0x4ed2c3<_0x2b5b75){const [_0x1feaf4,_0x173381]=readId(_0x5765c4,_0x4ed2c3),[_0x49d14e,_0x4ef02a]=_0x2033b0[_0x15b0a4(0x208)](readVint,_0x5765c4,_0x2033b0['fPPEi'](_0x4ed2c3,_0x173381));if(_0x1feaf4===_0x34fd78)return{'offset':_0x4ed2c3,'idLen':_0x173381,'sizeLen':_0x4ef02a,'dataSize':_0x49d14e,'dataOffset':_0x4ed2c3+_0x173381+_0x4ef02a};if(_0x2033b0[_0x15b0a4(0x208)](isUnknownSize,_0x49d14e,_0x4ef02a))break;_0x4ed2c3+=_0x2033b0['bgdlq'](_0x173381,_0x4ef02a)+_0x49d14e;}return null;}function _0x12fd(){const _0x35a411=['MhOZF','alloc','yMDiw','fixWebmDuration.ts','gjaHm','86704sqPUOi','xGolO','Fixed:\x20','hPqPs','LKBjI','26886CIYKyE','fCghA','error','length','osaDS','writeDoubleBE','dataOffset','cyRwl','indexOf','bMrOQ','3879660xEWHou','Spuir','aJTHH','Emyda','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','ynAFJ','TQcNb','ZzIsd','FWIaT','gRXgw','MshVh','117oYwHZj','JtSlR','xKxID','kNniW','933080eQROaL','YzPru','min','endsWith','uiSEO','sizeLen','offset','tSfyY','log','eMYkX','argv','HDdTg','readInt16BE','slice','MZFof','AXNkQ','pow','180651IaCvKJ','cJpJJ','773073NNARWH','1010310UBLxBE','PUipi','klySf','4HTEykB','VBTRY','fixWebmDuration.js','idLen','RqXmh','from','dataSize','nWLJl','BjlHt','Nwhpg','4LIkgIh','MmlPy','concat'];_0x12fd=function(){return _0x35a411;};return _0x12fd();}function computeDurationMs(_0x4c71bc,_0x1c58b4){const _0x3c8e51=_0x14be,_0x138e5b={'MZFof':function(_0xecff62,_0x569e17){return _0xecff62!==_0x569e17;},'PUipi':function(_0x420c5d,_0x2c79df){return _0x420c5d+_0x2c79df;},'gRXgw':function(_0x2da841,_0x427aac,_0x28fb99){return _0x2da841(_0x427aac,_0x28fb99);},'HDdTg':function(_0x3f256e,_0x84f0ec,_0x30b828){return _0x3f256e(_0x84f0ec,_0x30b828);},'fCghA':function(_0x523bbb,_0x377e51,_0x384cbd){return _0x523bbb(_0x377e51,_0x384cbd);},'cJpJJ':function(_0x3848fb,_0x140400){return _0x3848fb===_0x140400;},'UBaww':function(_0x9faa46,_0x342d58,_0x3afc9e,_0xe08ae0){return _0x9faa46(_0x342d58,_0x3afc9e,_0xe08ae0);},'aJTHH':function(_0x22bde3,_0x1f1150){return _0x22bde3+_0x1f1150;},'gjaHm':function(_0x1f9501,_0x273d29){return _0x1f9501/_0x273d29;},'kxLxO':function(_0x12e2b6,_0x1d735f,_0x10ad56){return _0x12e2b6(_0x1d735f,_0x10ad56);}};let _0x359295=0x0;const _0x87e5a=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x12a201=_0x4c71bc[_0x3c8e51(0x1f8)](_0x87e5a);if(_0x12a201===-0x1)return 0x0;while(_0x12a201<_0x4c71bc['length']){const [_0x490f61,_0x5e10e3]=readId(_0x4c71bc,_0x12a201);if(_0x138e5b[_0x3c8e51(0x1d0)](_0x490f61,ID_CLUSTER))break;const [_0x553777,_0xe853df]=readVint(_0x4c71bc,_0x12a201+_0x5e10e3),_0x16068a=_0x138e5b[_0x3c8e51(0x1d7)](_0x12a201+_0x5e10e3,_0xe853df),_0x54df55=isUnknownSize(_0x553777,_0xe853df);let _0xeec9c8;if(_0x54df55){let _0x2f4c51=_0x16068a;while(_0x2f4c51<_0x4c71bc[_0x3c8e51(0x1f3)]-0x4){const [_0x2b2386,_0x493a61]=_0x138e5b['gRXgw'](readId,_0x4c71bc,_0x2f4c51);if(_0x2b2386===ID_CLUSTER){_0xeec9c8=_0x2f4c51;break;}const [_0xe61488,_0x13bab2]=_0x138e5b[_0x3c8e51(0x1cd)](readVint,_0x4c71bc,_0x2f4c51+_0x493a61);if(isUnknownSize(_0xe61488,_0x13bab2)){_0xeec9c8=_0x4c71bc['length'];break;}_0x2f4c51+=_0x138e5b['PUipi'](_0x493a61+_0x13bab2,_0xe61488);}_0xeec9c8??=_0x4c71bc['length'];}else _0xeec9c8=_0x16068a+_0x553777;let _0x3df5ba=0x0,_0x1eaf11=_0x16068a;while(_0x1eaf11<_0xeec9c8){const [_0x5b0eb3,_0x370335]=_0x138e5b[_0x3c8e51(0x1f1)](readId,_0x4c71bc,_0x1eaf11),[_0x3bf9d7,_0x5d085e]=_0x138e5b[_0x3c8e51(0x203)](readVint,_0x4c71bc,_0x1eaf11+_0x370335);if(_0x138e5b[_0x3c8e51(0x1d4)](_0x5b0eb3,ID_TIMESTAMP))_0x3df5ba=_0x138e5b['UBaww'](readUint,_0x4c71bc,_0x138e5b[_0x3c8e51(0x1d7)](_0x1eaf11,_0x370335)+_0x5d085e,_0x3bf9d7);else{if(_0x5b0eb3===ID_SIMPLE_BLOCK&&_0x3bf9d7>=0x4){const _0x2fdf39=_0x138e5b[_0x3c8e51(0x1fc)](_0x138e5b[_0x3c8e51(0x1fc)](_0x1eaf11,_0x370335),_0x5d085e),[,_0x232a73]=readVint(_0x4c71bc,_0x2fdf39),_0x1b3c68=_0x4c71bc[_0x3c8e51(0x1ce)](_0x2fdf39+_0x232a73),_0x1e3c36=_0x138e5b[_0x3c8e51(0x1ea)]((_0x3df5ba+_0x1b3c68)*_0x1c58b4,0xf4240);_0x1e3c36>_0x359295&&(_0x359295=_0x1e3c36);}else{if(_0x5b0eb3===ID_CLUSTER)break;}}if(_0x138e5b['kxLxO'](isUnknownSize,_0x3bf9d7,_0x5d085e))break;_0x1eaf11+=_0x138e5b['aJTHH'](_0x370335,_0x5d085e)+_0x3bf9d7;}_0x12a201=_0xeec9c8;}return _0x359295;}export function fixWebmDuration(_0x45f94d,_0x3c4ebe){const _0x9cab41=_0x14be,_0x5a804e={'jElMd':function(_0x49c747,_0x2e66dd,_0x3ef094){return _0x49c747(_0x2e66dd,_0x3ef094);},'Nwhpg':function(_0x1182b9,_0x3a5dbe){return _0x1182b9+_0x3a5dbe;},'xGolO':function(_0x31319d,_0x4b01a8){return _0x31319d+_0x4b01a8;},'xKxID':function(_0x4d70b4,_0x3bc9cf){return _0x4d70b4!==_0x3bc9cf;},'yXCsf':function(_0x377fd9,_0x3e412a){return _0x377fd9+_0x3e412a;},'YzPru':function(_0x5cd431,_0x4e30bc,_0x48e722){return _0x5cd431(_0x4e30bc,_0x48e722);},'IKjGz':function(_0x1cc1ae,_0x8cd35f){return _0x1cc1ae+_0x8cd35f;},'ouRCk':function(_0x1f0d35,_0x1c0efb){return _0x1f0d35===_0x1c0efb;},'FWIaT':function(_0x30c4c9,_0x22576c){return _0x30c4c9+_0x22576c;},'WNXKq':'Could\x20not\x20find\x20Info\x20element','ISFlD':function(_0x55548d,_0x7bee93){return _0x55548d+_0x7bee93;},'unZOa':function(_0x1213f7,_0x149b10){return _0x1213f7<=_0x149b10;},'MshVh':'Could\x20not\x20compute\x20duration','USuCS':function(_0xc655c1,_0x29c0a9){return _0xc655c1/_0x29c0a9;},'RqXmh':function(_0x37684f,_0x29b65d){return _0x37684f*_0x29b65d;},'Spuir':function(_0x3e85e3,_0x3c1e2d){return _0x3e85e3(_0x3c1e2d);},'Ncnvy':function(_0x3bd33a,_0x50d8d1){return _0x3bd33a<_0x50d8d1;},'JtSlR':function(_0x407a76,_0x64c812){return _0x407a76(_0x64c812);},'ZzIsd':function(_0x13b591,_0x3c1e01){return _0x13b591+_0x3c1e01;}},_0x4c71d3=readFileSync(_0x45f94d);let _0x58cebf=0x0;const [_0x5ec9c3,_0x171f96]=readId(_0x4c71d3,_0x58cebf),[_0xbe4778,_0x185c70]=_0x5a804e['jElMd'](readVint,_0x4c71d3,_0x5a804e[_0x9cab41(0x1e2)](_0x58cebf,_0x171f96));_0x58cebf+=_0x5a804e['Nwhpg'](_0x5a804e[_0x9cab41(0x1ec)](_0x171f96,_0x185c70),_0xbe4778);const [_0x2809a1,_0x1b3913]=readId(_0x4c71d3,_0x58cebf);if(_0x5a804e[_0x9cab41(0x207)](_0x2809a1,ID_SEGMENT))return console[_0x9cab41(0x1f2)]('Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment'),![];const [,_0x25e4a2]=readVint(_0x4c71d3,_0x5a804e['yXCsf'](_0x58cebf,_0x1b3913)),_0x2cbe7a=_0x5a804e['xGolO'](_0x58cebf,_0x1b3913)+_0x25e4a2;let _0x389ee4=_0x2cbe7a;const _0x14ca42=Math[_0x9cab41(0x1c4)](_0x4c71d3[_0x9cab41(0x1f3)],_0x2cbe7a+0x2710);let _0x1f152c=null,_0xaad408=null;while(_0x389ee4<_0x14ca42){const [_0x146649,_0x4e5b82]=readId(_0x4c71d3,_0x389ee4),[_0x1f4622,_0x1aa5c1]=_0x5a804e[_0x9cab41(0x20a)](readVint,_0x4c71d3,_0x389ee4+_0x4e5b82);_0x146649===ID_VOID&&!_0x1f152c&&(_0x1f152c={'offset':_0x389ee4,'idLen':_0x4e5b82,'sizeLen':_0x1aa5c1,'dataSize':_0x1f4622,'dataOffset':_0x5a804e['IKjGz'](_0x389ee4+_0x4e5b82,_0x1aa5c1)});if(_0x146649===ID_INFO){_0xaad408={'offset':_0x389ee4,'idLen':_0x4e5b82,'sizeLen':_0x1aa5c1,'dataSize':_0x1f4622,'dataOffset':_0x5a804e[_0x9cab41(0x1ec)](_0x389ee4+_0x4e5b82,_0x1aa5c1)};break;}if(_0x5a804e['ouRCk'](_0x146649,ID_CLUSTER))break;if(isUnknownSize(_0x1f4622,_0x1aa5c1))break;_0x389ee4+=_0x5a804e[_0x9cab41(0x202)](_0x4e5b82+_0x1aa5c1,_0x1f4622);}if(!_0xaad408)return console[_0x9cab41(0x1f2)](_0x5a804e['WNXKq']),![];const _0x3f26f4=findElement(_0x4c71d3,_0xaad408[_0x9cab41(0x1f6)],_0xaad408[_0x9cab41(0x1f6)]+_0xaad408[_0x9cab41(0x1df)],ID_DURATION);if(_0x3f26f4)return![];const _0x27cbc1=findElement(_0x4c71d3,_0xaad408[_0x9cab41(0x1f6)],_0x5a804e['ISFlD'](_0xaad408['dataOffset'],_0xaad408['dataSize']),ID_TIMESTAMP_SCALE);let _0x4075ec=0xf4240;_0x27cbc1&&(_0x4075ec=readUint(_0x4c71d3,_0x27cbc1['dataOffset'],_0x27cbc1[_0x9cab41(0x1df)]));const _0x511c7f=_0x5a804e['jElMd'](computeDurationMs,_0x4c71d3,_0x4075ec);if(_0x5a804e['unZOa'](_0x511c7f,0x0))return console['error'](_0x5a804e[_0x9cab41(0x204)]),![];const _0x47d203=_0x5a804e['USuCS'](_0x5a804e[_0x9cab41(0x1dd)](_0x511c7f,0xf4240),_0x4075ec),_0x39b70a=Buffer[_0x9cab41(0x1e5)]([_0x5a804e[_0x9cab41(0x1fb)](writeId,ID_DURATION),writeVint(0x8),writeFloat64(_0x47d203)]),_0xdb4ff6=_0x39b70a['length'];if(!_0x1f152c||_0x5a804e['Ncnvy'](_0x1f152c[_0x9cab41(0x1c8)],_0xaad408['offset'])){if(_0x1f152c){const _0x16ea48=_0x1f152c['idLen']+_0x1f152c['sizeLen']+_0x1f152c[_0x9cab41(0x1df)],_0x4e05cb=_0x16ea48-_0xdb4ff6;if(_0x4e05cb<0x2)return rewriteFile(_0x4c71d3,_0xaad408,_0x39b70a,_0x4075ec,_0x511c7f,_0x3c4ebe);const _0x1b527f=_0xaad408['dataSize']+_0xdb4ff6,_0x550252=Buffer[_0x9cab41(0x1e5)]([_0x5a804e[_0x9cab41(0x206)](writeId,ID_INFO),writeVint(_0x1b527f,_0xaad408['sizeLen'])]),_0x8d99f3=_0x4c71d3['slice'](_0xaad408[_0x9cab41(0x1f6)],_0xaad408[_0x9cab41(0x1f6)]+_0xaad408['dataSize']),_0x1657f6=writeVoid(_0x4e05cb),_0x4cf982=_0x4c71d3['slice'](0x0,_0x1f152c[_0x9cab41(0x1c8)]),_0x42b0c3=_0x4c71d3['slice'](_0x5a804e[_0x9cab41(0x201)](_0xaad408['dataOffset'],_0xaad408[_0x9cab41(0x1df)]));return _0x5a804e[_0x9cab41(0x20a)](writeFileSync,_0x3c4ebe,Buffer[_0x9cab41(0x1e5)]([_0x4cf982,_0x1657f6,_0x550252,_0x8d99f3,_0x39b70a,_0x42b0c3])),!![];}}return rewriteFile(_0x4c71d3,_0xaad408,_0x39b70a,_0x4075ec,_0x511c7f,_0x3c4ebe);}function rewriteFile(_0x150081,_0x76f9c5,_0x431cc3,_0x42e138,_0x4067be,_0x45470b){const _0x6a19c5=_0x14be,_0x22c82d={'yMDiw':function(_0x19750a,_0x4a37cb){return _0x19750a+_0x4a37cb;},'tSfyY':function(_0xdace66,_0xa16ebe){return _0xdace66+_0xa16ebe;},'cyRwl':function(_0x2ce629,_0x52dfb2,_0xd8b3f6){return _0x2ce629(_0x52dfb2,_0xd8b3f6);}},_0x5e8c50=_0x22c82d[_0x6a19c5(0x1e8)](_0x76f9c5['dataSize'],_0x431cc3[_0x6a19c5(0x1f3)]),_0x351915=Buffer['concat']([writeId(ID_INFO),writeVint(_0x5e8c50)]),_0x1a2737=_0x76f9c5[_0x6a19c5(0x1dc)]+_0x76f9c5[_0x6a19c5(0x1c7)],_0x1fec80=_0x150081[_0x6a19c5(0x1cf)](0x0,_0x76f9c5['offset']),_0x4a5249=_0x150081['slice'](_0x76f9c5['dataOffset'],_0x22c82d[_0x6a19c5(0x1e8)](_0x76f9c5[_0x6a19c5(0x1f6)],_0x76f9c5['dataSize'])),_0x9a45b3=_0x150081['slice'](_0x22c82d[_0x6a19c5(0x1c9)](_0x76f9c5['offset'],_0x1a2737)+_0x76f9c5[_0x6a19c5(0x1df)]);return _0x22c82d[_0x6a19c5(0x1f7)](writeFileSync,_0x45470b,Buffer['concat']([_0x1fec80,_0x351915,_0x4a5249,_0x431cc3,_0x9a45b3])),!![];}if(process[_0xae1972(0x1cc)][0x1]?.[_0xae1972(0x1c5)](_0xae1972(0x1e9))||process['argv'][0x1]?.['endsWith'](_0xae1972(0x1db))){const input=process[_0xae1972(0x1cc)][0x2],output=process[_0xae1972(0x1cc)][0x3];(!input||!output)&&(console['error']('Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>'),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console['log'](_0xae1972(0x1ed)+output):console[_0xae1972(0x1ca)](_0xae1972(0x1fe));}
@@ -1 +1 @@
1
- (function(_0x48f07,_0x14d5a6){const _0x19b0b6=_0x46ba,_0x5e60aa=_0x48f07();while(!![]){try{const _0x353dda=-parseInt(_0x19b0b6(0x1a4))/0x1+-parseInt(_0x19b0b6(0x1a1))/0x2+parseInt(_0x19b0b6(0x19e))/0x3+parseInt(_0x19b0b6(0x19a))/0x4*(parseInt(_0x19b0b6(0x19f))/0x5)+parseInt(_0x19b0b6(0x19b))/0x6*(-parseInt(_0x19b0b6(0x19d))/0x7)+-parseInt(_0x19b0b6(0x199))/0x8*(parseInt(_0x19b0b6(0x19c))/0x9)+parseInt(_0x19b0b6(0x1a3))/0xa;if(_0x353dda===_0x14d5a6)break;else _0x5e60aa['push'](_0x5e60aa['shift']());}catch(_0x3bfc12){_0x5e60aa['push'](_0x5e60aa['shift']());}}}(_0x1148,0x4bcbe));import{execFile as _0x466409}from'child_process';import{promisify}from'util';function _0x46ba(_0xed3307,_0x57a74e){_0xed3307=_0xed3307-0x199;const _0x114823=_0x1148();let _0x46ba72=_0x114823[_0xed3307];return _0x46ba72;}const execFile=promisify(_0x466409);function _0x1148(){const _0x846978=['16946510saNEeg','543296pthmDS','16ovpaxt','836DOrjlf','2694leUyAk','1246338wTGUZu','7763fSHgMj','530604ZDLQDL','530elzOut','aqKUb','530020npaxTF','eEiwk'];_0x1148=function(){return _0x846978;};return _0x1148();}export async function isPathGitTracked(_0x41f675){const _0x203ace=_0x46ba,_0x2f3b10={'eEiwk':function(_0x1d63f9,_0x5e050d,_0x22e0a8,_0x48533f){return _0x1d63f9(_0x5e050d,_0x22e0a8,_0x48533f);},'aqKUb':'--error-unmatch'};try{return await _0x2f3b10[_0x203ace(0x1a2)](execFile,'git',['ls-files',_0x2f3b10[_0x203ace(0x1a0)],_0x41f675],{'cwd':process['cwd']()}),!![];}catch{return![];}}
1
+ (function(_0x255513,_0x51d12a){const _0x17492a=_0x3230,_0x28e8c2=_0x255513();while(!![]){try{const _0x443279=parseInt(_0x17492a(0x13b))/0x1*(parseInt(_0x17492a(0x138))/0x2)+-parseInt(_0x17492a(0x13a))/0x3+parseInt(_0x17492a(0x136))/0x4*(-parseInt(_0x17492a(0x132))/0x5)+parseInt(_0x17492a(0x135))/0x6*(parseInt(_0x17492a(0x13c))/0x7)+parseInt(_0x17492a(0x137))/0x8+parseInt(_0x17492a(0x133))/0x9+-parseInt(_0x17492a(0x134))/0xa;if(_0x443279===_0x51d12a)break;else _0x28e8c2['push'](_0x28e8c2['shift']());}catch(_0x5b68a2){_0x28e8c2['push'](_0x28e8c2['shift']());}}}(_0x2e50,0x19d26));function _0x2e50(){const _0x2b8f62=['1141696YrUxxW','7988SoOyhk','git','482196XPhkbt','29mAshzQ','456813dqnmRF','775945CGvsDD','1103724FuQZct','900050elYbuR','12tdqBMw','4ZaTZuQ'];_0x2e50=function(){return _0x2b8f62;};return _0x2e50();}import{execFile as _0x390261}from'child_process';import{promisify}from'util';function _0x3230(_0x1abc62,_0x9483a7){_0x1abc62=_0x1abc62-0x132;const _0x2e5084=_0x2e50();let _0x323075=_0x2e5084[_0x1abc62];return _0x323075;}const execFile=promisify(_0x390261);export async function isPathGitTracked(_0x163f5c){const _0xccd9cc=_0x3230,_0x1b7bba={'BWmYn':function(_0xeaf2ed,_0x5445a9,_0x41038b,_0x207727){return _0xeaf2ed(_0x5445a9,_0x41038b,_0x207727);},'uNwXL':'ls-files','vwaAH':'--error-unmatch'};try{return await _0x1b7bba['BWmYn'](execFile,_0xccd9cc(0x139),[_0x1b7bba['uNwXL'],_0x1b7bba['vwaAH'],_0x163f5c],{'cwd':process['cwd']()}),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const _0x127556=_0x2130;(function(_0x5a9ce8,_0xcc31f7){const _0x487941=_0x2130,_0x5a7a8b=_0x5a9ce8();while(!![]){try{const _0x2a350=parseInt(_0x487941(0x21d))/0x1*(parseInt(_0x487941(0x1d4))/0x2)+-parseInt(_0x487941(0x20c))/0x3+-parseInt(_0x487941(0x216))/0x4*(parseInt(_0x487941(0x20a))/0x5)+parseInt(_0x487941(0x1d1))/0x6*(parseInt(_0x487941(0x205))/0x7)+parseInt(_0x487941(0x203))/0x8*(-parseInt(_0x487941(0x222))/0x9)+parseInt(_0x487941(0x1d0))/0xa*(-parseInt(_0x487941(0x1d6))/0xb)+-parseInt(_0x487941(0x1d3))/0xc*(-parseInt(_0x487941(0x220))/0xd);if(_0x2a350===_0xcc31f7)break;else _0x5a7a8b['push'](_0x5a7a8b['shift']());}catch(_0xa44ecd){_0x5a7a8b['push'](_0x5a7a8b['shift']());}}}(_0x9466,0x984d2));const _0xef0db6=(function(){const _0x18fdf7=_0x2130,_0x20b477={'dISBO':_0x18fdf7(0x1df),'qRsmh':_0x18fdf7(0x1e9)};let _0x2d77a6=!![];return function(_0x582f3b,_0x5dc3e2){const _0x46d811=_0x18fdf7;if(_0x20b477[_0x46d811(0x1f3)]===_0x20b477[_0x46d811(0x1d9)])return![];else{const _0x1e6dd0=_0x2d77a6?function(){const _0x5af153=_0x46d811;if(_0x5dc3e2){const _0x455e02=_0x5dc3e2[_0x5af153(0x1ef)](_0x582f3b,arguments);return _0x5dc3e2=null,_0x455e02;}}:function(){};return _0x2d77a6=![],_0x1e6dd0;}};}()),_0x20815d=_0xef0db6(this,function(){const _0xfeff96=_0x2130,_0x419454={'MTCzh':_0xfeff96(0x1eb)};return _0x20815d[_0xfeff96(0x200)]()['search'](_0xfeff96(0x1eb))[_0xfeff96(0x200)]()[_0xfeff96(0x1de)](_0x20815d)['search'](_0x419454[_0xfeff96(0x209)]);});_0x20815d();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN='RANGER_CLI_TOKEN',ENV_TOKEN_LEGACY=_0x127556(0x1d7),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,'cli.txt'),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x127556(0x20d));function isGitHubCI(){return!!process['env']['GITHUB_ENV'];}async function writeToGitHubEnv(_0x4da2e4,_0x247239){const _0x52924a=_0x127556,_0x250880={'xrIyV':function(_0xcd9d77,_0x254753,_0x40861b){return _0xcd9d77(_0x254753,_0x40861b);}},_0x3cbe25=process[_0x52924a(0x21c)][_0x52924a(0x221)];_0x3cbe25&&await _0x250880['xrIyV'](appendFile,_0x3cbe25,_0x4da2e4+'='+_0x247239+'\x0a');}export async function storeToken(_0x54c78e){const _0x1ee2ca=_0x127556,_0x1c35c2={'QjuEc':_0x1ee2ca(0x1eb),'aslEv':function(_0x2a30d7){return _0x2a30d7();},'Uxodg':_0x1ee2ca(0x21a),'caTlH':_0x1ee2ca(0x1f6),'LraDv':function(_0x37fefc,_0xba576a,_0x11b26c,_0x1122c4){return _0x37fefc(_0xba576a,_0x11b26c,_0x1122c4);}};if(_0x1c35c2[_0x1ee2ca(0x1e2)](isGitHubCI)){if(_0x1c35c2[_0x1ee2ca(0x201)]!==_0x1c35c2['caTlH'])await writeToGitHubEnv(ENV_TOKEN,_0x54c78e);else return _0x5506ac[_0x1ee2ca(0x200)]()['search'](hYjKQP[_0x1ee2ca(0x1e7)])[_0x1ee2ca(0x200)]()['constructor'](_0x2eebb4)[_0x1ee2ca(0x212)](_0x1ee2ca(0x1eb));}else await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x1c35c2[_0x1ee2ca(0x1fc)](writeFile,TOKEN_PATH,_0x54c78e,{'mode':0x180});}export async function getToken(){const _0x1781c0=_0x127556,_0x20fb42={'tbKcB':function(_0x36abee,_0x29b0c7){return _0x36abee===_0x29b0c7;},'wmVFp':_0x1781c0(0x1d8),'NAMiN':function(_0x52654b,_0x1199c1){return _0x52654b===_0x1199c1;},'btcEt':_0x1781c0(0x1fe),'VAgZE':function(_0x49197a,_0x297fca,_0x2df596){return _0x49197a(_0x297fca,_0x2df596);},'DsRew':function(_0x45fb3e,_0x3adc2f){return _0x45fb3e(_0x3adc2f);},'EdJQW':function(_0x2efaac){return _0x2efaac();},'XmLgc':'../mcpBootstrap.js','UdgNt':_0x1781c0(0x1f7),'GtKVZ':_0x1781c0(0x1da),'WkkFO':_0x1781c0(0x1d2),'ElGlN':function(_0x3aa24e,_0x6459e4){return _0x3aa24e instanceof _0x6459e4;},'mSCgw':function(_0x25fd35,_0x157b5b){return _0x25fd35+_0x157b5b;},'KOiib':_0x1781c0(0x1fa)};if(process[_0x1781c0(0x21c)][ENV_TOKEN])return process[_0x1781c0(0x21c)][ENV_TOKEN];if(process[_0x1781c0(0x21c)][ENV_TOKEN_LEGACY])return _0x20fb42[_0x1781c0(0x1ed)]('nbduJ',_0x20fb42[_0x1781c0(0x217)])?!![]:process[_0x1781c0(0x21c)][ENV_TOKEN_LEGACY];let _0x517b59=null;try{if(_0x20fb42[_0x1781c0(0x1e4)](_0x20fb42[_0x1781c0(0x1d5)],_0x20fb42[_0x1781c0(0x1d5)]))_0x517b59=(await _0x20fb42['VAgZE'](readFile,TOKEN_PATH,_0x1781c0(0x208)))[_0x1781c0(0x21f)]()||null;else{const _0x33e68d=_0x3c6358[_0x1781c0(0x1ef)](_0xc2c4a3,arguments);return _0x1db3b1=null,_0x33e68d;}}catch{const _0x223ce5=await tryRefreshToken();return _0x223ce5;}if(!_0x517b59)return null;const _0x5ef5e5=await _0x20fb42[_0x1781c0(0x1ec)](checkTokenValid,_0x517b59);if(_0x5ef5e5)return _0x517b59;const _0xf09439=await tryPromoteRefreshToken(_0x517b59);if(_0xf09439)return _0xf09439;const _0x16552a=await _0x20fb42[_0x1781c0(0x1f0)](tryRefreshToken);if(_0x16552a)return _0x16552a;const {getMcpAuthOrigin:_0x42ab58,mcpBootstrap:_0x54a14d}=await import(_0x20fb42[_0x1781c0(0x1fb)]),_0x48b5a4=await _0x20fb42['EdJQW'](_0x42ab58);if(_0x48b5a4){if(_0x20fb42[_0x1781c0(0x1e5)]===_0x20fb42[_0x1781c0(0x1e0)])return _0x3eab22[_0x1781c0(0x21c)][_0x3ca592];else try{console[_0x1781c0(0x1e6)](_0x20fb42[_0x1781c0(0x223)]),await _0x20fb42[_0x1781c0(0x1f0)](_0x54a14d);const _0x502eee=await _0x20fb42[_0x1781c0(0x1f0)](tryRefreshToken);if(_0x502eee)return _0x502eee;}catch(_0x1bab41){const _0x45b15d=_0x20fb42[_0x1781c0(0x211)](_0x1bab41,Error)?_0x1bab41[_0x1781c0(0x1dc)]:_0x20fb42[_0x1781c0(0x1ec)](String,_0x1bab41);throw new Error(_0x20fb42[_0x1781c0(0x1ea)]('MCP\x20re-authentication\x20failed:\x20'+_0x45b15d+'\x0a',_0x20fb42[_0x1781c0(0x1f5)]));}}throw new Error('Your\x20session\x20has\x20expired.\x20Please\x20run\x20`ranger\x20login`\x20to\x20re-authenticate.');}function _0x9466(){const _0xdc688=['mtu3ntK3BvbSCg5y','uKfor0vsx01duf9ut0TftG','CMfRywK','CvjZBwG','Dwz2D00','BevPENy','BwvZC2fNzq','zxfKALy','y29UC3rYDwn0B3i','yvHADMi','r3rlvLO','uuzPrvG','yxnSrxy','z2DLwNy','tKfnAu4','vwrNtNq','Bg9N','uwP1rwm','z2vmAMi','q210A2C','Bvndz3C','kcGOlISPkYKRksSK','rhnszxC','Dgjly0i','vgj3wgu','yxbWBhK','rwrkuvC','ALHZB20','DLDwt04','zeLtqK8','DvHIyuK','s09PAwi','ywDdEeu','t0vtANa','CwvHreW','q0T3thq','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','wg1mz2m','thjHrhy','AM1SuxG','BMTdD0u','ugzItuq','Dg9tDhjPBMC','vxHVzgC','tu5LB1u','nJGZmJG4qLrvv0z3','qxDuuNy','odeZmdCXwe5gy3PL','lI9LBNzPCM9UBwvUDc5QCW','shPpA24','DxrMltG','tvrdEMG','odKXnJvSEwvirKC','C2LNBMfS','mJuWmJG0ExHIsLfZ','CMvMCMvZAc50Ehq','s0XZD0e','rg9IBhK','sw9bte0','rwXhBe4','C2vHCMnO','BhDqu2y','zhreDxm','Du9dChO','mtaWrMnqsxno','D21wrNa','ywjVCNq','r0vu','D3DLCfG','B3rxBMy','zw52','mti4odC4DLDXz1ne','lI90B2TLBLjLzNjLC2GUANm','DhjPBq','mtiYmLPmwNjjyG','r0Lusfvcx0vovG','mJDUEMT1tu0','v2TRrK8','z3vcDu4','CvD2z2u','Bu1rq28','nZmWr01mD2T1','nLHhAujusa','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','mtGZndmYr1rlyKrQ','mtrVEu5mvKy','yNrJrxq'];_0x9466=function(){return _0xdc688;};return _0x9466();}async function checkTokenValid(_0x34a2a9){const _0x1eb7ba=_0x127556,_0xf8bb93={'qeaDL':function(_0x33bd92,_0x5c2b77,_0x16ed22){return _0x33bd92(_0x5c2b77,_0x16ed22);},'Dobly':_0x1eb7ba(0x206),'rNnPO':function(_0x1910c5,_0x5d00c3,_0x7382d8){return _0x1910c5(_0x5d00c3,_0x7382d8);},'uOCpz':function(_0x560804,_0x554c5d){return _0x560804(_0x554c5d);}},_0x165a7a=new AbortController(),_0x5add4e=_0xf8bb93[_0x1eb7ba(0x1f8)](setTimeout,()=>_0x165a7a[_0x1eb7ba(0x218)](),0x1388);try{const {getApiBaseUrl:_0xcc8f31}=await import(_0xf8bb93[_0x1eb7ba(0x20f)]),_0x3483e9=_0xcc8f31(),_0x49f5e1=await _0xf8bb93['rNnPO'](fetch,_0x3483e9+'/api/v1/mcp/me',{'method':_0x1eb7ba(0x219),'headers':{'Authorization':'Bearer\x20'+_0x34a2a9},'signal':_0x165a7a[_0x1eb7ba(0x20b)]});return _0x49f5e1['ok'];}catch{return!![];}finally{_0xf8bb93[_0x1eb7ba(0x215)](clearTimeout,_0x5add4e);}}async function tryRefreshToken(){const _0xa0a2e6=_0x127556,_0x552344={'KLswA':_0xa0a2e6(0x21e),'qHiav':function(_0x55e28c){return _0x55e28c();}},{refreshCliToken:_0x181437}=await import(_0x552344[_0xa0a2e6(0x20e)]);return _0x552344['qHiav'](_0x181437);}function _0x2130(_0x54d416,_0x1eb3af){_0x54d416=_0x54d416-0x1ce;const _0x1dd793=_0x9466();let _0x20815d=_0x1dd793[_0x54d416];if(_0x2130['lYStHD']===undefined){var _0xef0db6=function(_0xfa9752){const _0x450286='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1a6d16='',_0x5d7c40='',_0x16a26b=_0x1a6d16+_0xef0db6;for(let _0x2aa0c0=0x0,_0x490cb9,_0x22ad4e,_0x58d7c3=0x0;_0x22ad4e=_0xfa9752['charAt'](_0x58d7c3++);~_0x22ad4e&&(_0x490cb9=_0x2aa0c0%0x4?_0x490cb9*0x40+_0x22ad4e:_0x22ad4e,_0x2aa0c0++%0x4)?_0x1a6d16+=_0x16a26b['charCodeAt'](_0x58d7c3+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x490cb9>>(-0x2*_0x2aa0c0&0x6)):_0x2aa0c0:0x0){_0x22ad4e=_0x450286['indexOf'](_0x22ad4e);}for(let _0x4be92d=0x0,_0x474517=_0x1a6d16['length'];_0x4be92d<_0x474517;_0x4be92d++){_0x5d7c40+='%'+('00'+_0x1a6d16['charCodeAt'](_0x4be92d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5d7c40);};_0x2130['fhDwPj']=_0xef0db6,_0x2130['YCXaRl']={},_0x2130['lYStHD']=!![];}const _0x9466a1=_0x1dd793[0x0],_0x213011=_0x54d416+_0x9466a1,_0x3431d7=_0x2130['YCXaRl'][_0x213011];if(!_0x3431d7){const _0x7ce4d3=function(_0x289284){this['RvYcjJ']=_0x289284,this['mmakCk']=[0x1,0x0,0x0],this['lZlECy']=function(){return'newState';},this['cRtxBh']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['lyRjoB']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x7ce4d3['prototype']['vchYnd']=function(){const _0x2faddd=new RegExp(this['cRtxBh']+this['lyRjoB']),_0x2ee81c=_0x2faddd['test'](this['lZlECy']['toString']())?--this['mmakCk'][0x1]:--this['mmakCk'][0x0];return this['FjAgjy'](_0x2ee81c);},_0x7ce4d3['prototype']['FjAgjy']=function(_0x3c0156){if(!Boolean(~_0x3c0156))return _0x3c0156;return this['KFQIQy'](this['RvYcjJ']);},_0x7ce4d3['prototype']['KFQIQy']=function(_0x28f63f){for(let _0x4deabe=0x0,_0x4464d8=this['mmakCk']['length'];_0x4deabe<_0x4464d8;_0x4deabe++){this['mmakCk']['push'](Math['round'](Math['random']())),_0x4464d8=this['mmakCk']['length'];}return _0x28f63f(this['mmakCk'][0x0]);},new _0x7ce4d3(_0x2130)['vchYnd'](),_0x20815d=_0x2130['fhDwPj'](_0x20815d),_0x2130['YCXaRl'][_0x213011]=_0x20815d;}else _0x20815d=_0x3431d7;return _0x20815d;}async function tryPromoteRefreshToken(_0x3d0ac3){const _0x7fd070=_0x127556,_0x115331={'uXbaI':_0x7fd070(0x21e)},{refreshPartnerCliToken:_0xaaa169}=await import(_0x115331[_0x7fd070(0x1f4)]);return _0xaaa169(_0x3d0ac3,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0x508ccc=_0x127556,_0x42d054={'SKQkT':function(_0x26a78d,_0x7ceb7e){return _0x26a78d instanceof _0x7ceb7e;},'geLjb':function(_0x2dd301,_0x4c3e6a){return _0x2dd301(_0x4c3e6a);},'SbqQW':function(_0x407542,_0x8f47a2){return _0x407542+_0x8f47a2;},'IoALM':_0x508ccc(0x1fa),'lwPSf':function(_0x200a96,_0x532ad5){return _0x200a96!==_0x532ad5;},'jmlQx':'BRJBd','PfbMD':_0x508ccc(0x21b)};try{return _0x42d054[_0x508ccc(0x213)](_0x42d054[_0x508ccc(0x1fd)],'vkLgE')?(await _0x42d054[_0x508ccc(0x1e8)](unlink,TOKEN_PATH),!![]):!!_0x1789a1['env']['GITHUB_ENV'];}catch{if(_0x508ccc(0x21b)!==_0x42d054[_0x508ccc(0x1ff)]){const _0x13bd0c=_0x42d054['SKQkT'](_0x2039ec,_0x2985c7)?_0x1e1e5e[_0x508ccc(0x1dc)]:_0x42d054[_0x508ccc(0x1e8)](_0x5c72c3,_0x2389ff);throw new _0x4cbe06(_0x42d054['SbqQW']('MCP\x20re-authentication\x20failed:\x20'+_0x13bd0c+'\x0a',_0x42d054[_0x508ccc(0x210)]));}else return![];}}export async function storeRefreshToken(_0x3cf803){const _0x355c79=_0x127556,_0x4f2d39={'jXsom':function(_0x166e21,_0x32521d,_0x2268da){return _0x166e21(_0x32521d,_0x2268da);},'QFiEX':function(_0x17a6f5,_0x5c40e6,_0x5ebc44,_0x301807){return _0x17a6f5(_0x5c40e6,_0x5ebc44,_0x301807);}};await _0x4f2d39[_0x355c79(0x1f1)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x4f2d39[_0x355c79(0x1e1)](writeFile,REFRESH_TOKEN_PATH,_0x3cf803,{'mode':0x180});}export async function getRefreshToken(){const _0x10ccff=_0x127556,_0x1d6257={'CKwLt':'YCkCQ','guBuN':function(_0x52b20a,_0x546b2f,_0x437b88){return _0x52b20a(_0x546b2f,_0x437b88);},'ggeZv':'utf-8','qWvge':_0x10ccff(0x1ee)};try{if(_0x10ccff(0x214)!==_0x1d6257[_0x10ccff(0x1f9)]){const _0x13547c=await _0x1d6257[_0x10ccff(0x224)](readFile,REFRESH_TOKEN_PATH,_0x1d6257[_0x10ccff(0x1e3)]);return _0x13547c[_0x10ccff(0x21f)]()||null;}else return _0x290941['env'][_0x253e79];}catch{if(_0x1d6257['qWvge']!==_0x1d6257[_0x10ccff(0x1ce)]){if(_0x4c9f52){const _0x36e2ef=_0x49890f[_0x10ccff(0x1ef)](_0x364e61,arguments);return _0x3e5c37=null,_0x36e2ef;}}else return null;}}export async function deleteRefreshToken(){const _0x39d614=_0x127556,_0x1f893d={'MNeoU':function(_0x398355,_0x352594){return _0x398355(_0x352594);},'HzOkn':function(_0x5fe05d,_0x3c3f9c){return _0x5fe05d!==_0x3c3f9c;},'eqdjV':'NwyMM','QaqEA':_0x39d614(0x1db),'sLuCl':function(_0x38be9d,_0x544a22){return _0x38be9d===_0x544a22;},'AwTRv':_0x39d614(0x1cf)};try{return _0x1f893d[_0x39d614(0x207)](_0x1f893d[_0x39d614(0x1dd)],_0x1f893d['QaqEA'])?(await _0x1f893d[_0x39d614(0x202)](unlink,REFRESH_TOKEN_PATH),!![]):null;}catch{if(_0x1f893d['sLuCl'](_0x1f893d[_0x39d614(0x204)],_0x1f893d[_0x39d614(0x204)]))return![];else _0x1f893d[_0x39d614(0x202)](_0x21f9d5,_0x405a95);}}export async function deleteAllCredentials(){const _0x372b10=_0x127556,_0x5817fd={'vWVON':function(_0x249077){return _0x249077();}};await deleteToken(),await _0x5817fd[_0x372b10(0x1f2)](deleteRefreshToken);}
1
+ const _0x4f327f=_0x1901;(function(_0x59fe42,_0x9d8a14){const _0x271463=_0x1901,_0x1b1958=_0x59fe42();while(!![]){try{const _0x1fc7cd=-parseInt(_0x271463(0x166))/0x1*(parseInt(_0x271463(0x16c))/0x2)+parseInt(_0x271463(0x16a))/0x3+-parseInt(_0x271463(0x169))/0x4*(parseInt(_0x271463(0x168))/0x5)+-parseInt(_0x271463(0x179))/0x6+parseInt(_0x271463(0x188))/0x7*(parseInt(_0x271463(0x16e))/0x8)+-parseInt(_0x271463(0x160))/0x9*(-parseInt(_0x271463(0x164))/0xa)+parseInt(_0x271463(0x192))/0xb;if(_0x1fc7cd===_0x9d8a14)break;else _0x1b1958['push'](_0x1b1958['shift']());}catch(_0xac2125){_0x1b1958['push'](_0x1b1958['shift']());}}}(_0x1f80,0x38b4d));const _0x1d4747=(function(){const _0x9d23af={'jkrPq':function(_0x1377a9,_0x4a9677){return _0x1377a9(_0x4a9677);},'CFDkE':function(_0x135683,_0x51bb19){return _0x135683!==_0x51bb19;},'GyGJQ':'DLyOc'};let _0x5d6b22=!![];return function(_0x46bed7,_0x5898e4){const _0x276d52=_0x5d6b22?function(){const _0x8830a1=_0x1901,_0x3128d7={'htjbn':function(_0x20b189,_0x270eee){const _0x5d0f0b=_0x1901;return _0x9d23af[_0x5d0f0b(0x190)](_0x20b189,_0x270eee);}};if(_0x5898e4){if(_0x9d23af['CFDkE'](_0x9d23af[_0x8830a1(0x187)],_0x9d23af[_0x8830a1(0x187)]))_0x3128d7['htjbn'](_0x45d853,_0xaa9941);else{const _0x158585=_0x5898e4[_0x8830a1(0x18d)](_0x46bed7,arguments);return _0x5898e4=null,_0x158585;}}}:function(){};return _0x5d6b22=![],_0x276d52;};}()),_0x989e76=_0x1d4747(this,function(){const _0x2fd3c2=_0x1901,_0x5a56da={'WypSr':_0x2fd3c2(0x185)};return _0x989e76['toString']()['search'](_0x2fd3c2(0x185))[_0x2fd3c2(0x17b)]()[_0x2fd3c2(0x178)](_0x989e76)['search'](_0x5a56da[_0x2fd3c2(0x182)]);});_0x989e76();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';function _0x1f80(){const _0x510c72=['BwvZC2fNzq','ywjVCNq','kcGOlISPkYKRksSK','yNPeBMe','r3LhsLe','n1rXBNfmvG','uMroBMS','DhjPBq','DxrMltG','C2LNBMfS','yxbWBhK','verUv3K','CMf1BMe','AMTYuhe','z3DNDuW','mte5mZK2mKT2txDjqW','uKfor0vsx01duf9ut0TftG','qNbQr1G','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','B0Tcs3e','A2XKwuC','uKfor0vsx0nmsv9ut0TftG','D0jlzuq','zw52','vhjzBeq','r0vu','lI4VBwnWqM9VDhn0CMfWlMPZ','AfPSr1C','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','mZe5odqZoerIqMTTDa','q1Dvtvm','zgfcr0C','A3rJyMG','mtbJA2jlDMW','r0Lusfvcx0vovG','mtm0mde0rMrjq05u','vfbzuwu','nty1mtmWv3Lls1PI','ogjSExbfwa','ntaZnJiYB0HuzwXd','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','mNPXBxPNqW','qvHOBwe','nZm0nJy0quPqtMXs','y3nluvO','uuncrgq','y2XPlNr4Da','vw53wKO','sgrXCfG','qMvHCMvYia','uuTHuKq','s1PJv0W','thrltK8','y29UC3rYDwn0B3i','nZG3nZC2vMDuuhDu','yu9Us3G','Dg9tDhjPBMC','l2fWAs92ms9Ty3aVBwu','yK1Oue8','u1bPthy','qxzMs1a','Bg9N','uvLisgm','v3LWu3i'];_0x1f80=function(){return _0x510c72;};return _0x1f80();}const ENV_TOKEN=_0x4f327f(0x198),ENV_TOKEN_LEGACY=_0x4f327f(0x193),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x4f327f(0x171)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,'refresh.txt');function isGitHubCI(){const _0x37e3b2=_0x4f327f;return!!process[_0x37e3b2(0x19a)][_0x37e3b2(0x165)];}async function writeToGitHubEnv(_0x6d6a27,_0x40c445){const _0x1117b8=_0x4f327f,_0x470f97={'gwguL':function(_0x5dd759,_0x170773,_0x35d651){return _0x5dd759(_0x170773,_0x35d651);}},_0x3e752d=process['env'][_0x1117b8(0x165)];_0x3e752d&&await _0x470f97[_0x1117b8(0x191)](appendFile,_0x3e752d,_0x6d6a27+'='+_0x40c445+'\x0a');}export async function storeToken(_0x462790){const _0xd149c1=_0x4f327f,_0x168cb4={'QKaRD':function(_0x1d1b11){return _0x1d1b11();},'SPiLv':'fecVR','UnwZJ':function(_0x3d2729,_0x44ea7f,_0x392a31){return _0x3d2729(_0x44ea7f,_0x392a31);},'yiwcx':function(_0xb1821,_0x38b413){return _0xb1821===_0x38b413;},'UqZDd':_0xd149c1(0x177),'rauna':function(_0xc6f1fc,_0x15f4c4,_0x565adb,_0x38938b){return _0xc6f1fc(_0x15f4c4,_0x565adb,_0x38938b);}};if(_0x168cb4[_0xd149c1(0x175)](isGitHubCI)){if(_0xd149c1(0x196)===_0x168cb4[_0xd149c1(0x17e)])return _0x2fadc3[_0xd149c1(0x19a)][_0x1f1af0];else await _0x168cb4[_0xd149c1(0x172)](writeToGitHubEnv,ENV_TOKEN,_0x462790);}else{if(_0x168cb4['yiwcx'](_0x168cb4['UqZDd'],_0x168cb4['UqZDd']))await _0x168cb4[_0xd149c1(0x172)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x168cb4[_0xd149c1(0x18f)](writeFile,TOKEN_PATH,_0x462790,{'mode':0x180});else return _0x1579da[_0xd149c1(0x19a)][_0x15f312];}}export async function getToken(){const _0x2ae178=_0x4f327f,_0x59b088={'hZlGW':function(_0x588b28,_0x222426,_0x3793ea){return _0x588b28(_0x222426,_0x3793ea);},'iJCKb':'utf-8','csKQZ':function(_0x500b88){return _0x500b88();},'CWUMS':function(_0x483785,_0x1cf356){return _0x483785(_0x1cf356);},'ktcbh':_0x2ae178(0x19d),'TDnWy':function(_0xf333bc){return _0xf333bc();},'RdNnk':'mXXgA','AXhma':_0x2ae178(0x181),'AvfKP':_0x2ae178(0x195),'daBGG':function(_0x15c540,_0x120a6a){return _0x15c540 instanceof _0x120a6a;},'QCBDd':function(_0x419dab,_0x16fe18){return _0x419dab(_0x16fe18);},'HdqpX':function(_0x539153,_0x169d58){return _0x539153+_0x169d58;},'bzDna':_0x2ae178(0x15f),'aOnKx':'Your\x20session\x20has\x20expired.\x20Please\x20run\x20`ranger\x20login`\x20to\x20re-authenticate.'};if(process['env'][ENV_TOKEN])return process[_0x2ae178(0x19a)][ENV_TOKEN];if(process['env'][ENV_TOKEN_LEGACY])return process['env'][ENV_TOKEN_LEGACY];let _0x14c4b3=null;try{_0x14c4b3=(await _0x59b088[_0x2ae178(0x19e)](readFile,TOKEN_PATH,_0x59b088['iJCKb']))[_0x2ae178(0x18a)]()||null;}catch{const _0x4653f3=await _0x59b088['csKQZ'](tryRefreshToken);return _0x4653f3;}if(!_0x14c4b3)return null;const _0x2fbc8c=await _0x59b088[_0x2ae178(0x161)](checkTokenValid,_0x14c4b3);if(_0x2fbc8c)return _0x14c4b3;const _0x33c1eb=await _0x59b088[_0x2ae178(0x161)](tryPromoteRefreshToken,_0x14c4b3);if(_0x33c1eb)return _0x33c1eb;const _0x43d332=await _0x59b088[_0x2ae178(0x16f)](tryRefreshToken);if(_0x43d332)return _0x43d332;const {getMcpAuthOrigin:_0x7ef7e9,mcpBootstrap:_0x55042d}=await import(_0x59b088[_0x2ae178(0x163)]),_0x5d30d8=await _0x59b088['TDnWy'](_0x7ef7e9);if(_0x5d30d8){if(_0x59b088['RdNnk']!==_0x59b088[_0x2ae178(0x189)]){if(_0x401e4c){const _0x13b792=_0x325e46[_0x2ae178(0x18d)](_0x4c206c,arguments);return _0x3b8f24=null,_0x13b792;}}else try{if(_0x59b088[_0x2ae178(0x16d)]===_0x59b088[_0x2ae178(0x16d)]){console[_0x2ae178(0x180)](_0x59b088[_0x2ae178(0x17f)]),await _0x55042d();const _0x1fa47c=await _0x59b088[_0x2ae178(0x18e)](tryRefreshToken);if(_0x1fa47c)return _0x1fa47c;}else{const _0x319f6c=_0x1201f7?function(){if(_0x4058c6){const _0x1c5308=_0x33ad55['apply'](_0xafe88,arguments);return _0x19868d=null,_0x1c5308;}}:function(){};return _0x174b71=![],_0x319f6c;}}catch(_0x2cd9cc){const _0x2ba361=_0x59b088[_0x2ae178(0x162)](_0x2cd9cc,Error)?_0x2cd9cc[_0x2ae178(0x183)]:_0x59b088[_0x2ae178(0x170)](String,_0x2cd9cc);throw new Error(_0x59b088[_0x2ae178(0x173)](_0x2ae178(0x16b)+_0x2ba361+'\x0a',_0x59b088[_0x2ae178(0x186)]));}}throw new Error(_0x59b088[_0x2ae178(0x17a)]);}async function checkTokenValid(_0x5a3a1b){const _0x1b41c4=_0x4f327f,_0x29be8d={'nUqSv':function(_0x43d1db,_0x2a346e,_0x212e28){return _0x43d1db(_0x2a346e,_0x212e28);},'bMhPO':'./environment.js','BpjGX':function(_0x3b1d96){return _0x3b1d96();},'TPYQe':function(_0x2b9bd4,_0x45882b,_0x1ed4d7){return _0x2b9bd4(_0x45882b,_0x1ed4d7);},'LbyWJ':_0x1b41c4(0x19c),'TrYlD':function(_0x19eef0,_0x2f7276){return _0x19eef0(_0x2f7276);}},_0x3f6ce9=new AbortController(),_0x1d2adf=_0x29be8d['nUqSv'](setTimeout,()=>_0x3f6ce9[_0x1b41c4(0x184)](),0x1388);try{const {getApiBaseUrl:_0x5e4812}=await import(_0x29be8d[_0x1b41c4(0x17d)]),_0x6adb57=_0x29be8d[_0x1b41c4(0x194)](_0x5e4812),_0x1dd9df=await _0x29be8d[_0x1b41c4(0x167)](fetch,_0x6adb57+_0x1b41c4(0x17c),{'method':_0x29be8d['LbyWJ'],'headers':{'Authorization':_0x1b41c4(0x174)+_0x5a3a1b},'signal':_0x3f6ce9[_0x1b41c4(0x18c)]});return _0x1dd9df['ok'];}catch{return!![];}finally{_0x29be8d[_0x1b41c4(0x19b)](clearTimeout,_0x1d2adf);}}async function tryRefreshToken(){const _0x3be199={'NTsCU':'./tokenRefresh.js'},{refreshCliToken:_0x117a7c}=await import(_0x3be199['NTsCU']);return _0x117a7c();}async function tryPromoteRefreshToken(_0x4dbeeb){const _0x2116fc={'Hsdro':'./tokenRefresh.js','dDAhl':function(_0x46a240,_0x5986c6,_0x76a6f7){return _0x46a240(_0x5986c6,_0x76a6f7);}},{refreshPartnerCliToken:_0x5e35ac}=await import(_0x2116fc['Hsdro']);return _0x2116fc['dDAhl'](_0x5e35ac,_0x4dbeeb,{'persistRefreshToken':!![]});}function _0x1901(_0xffef59,_0x4665c7){_0xffef59=_0xffef59-0x15f;const _0x155735=_0x1f80();let _0x989e76=_0x155735[_0xffef59];if(_0x1901['fpBddi']===undefined){var _0x1d4747=function(_0x1ab77a){const _0x3d2db3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x53f0da='',_0x10ab2b='',_0x38867b=_0x53f0da+_0x1d4747;for(let _0x47488a=0x0,_0x3d80af,_0x39f6d,_0x49e782=0x0;_0x39f6d=_0x1ab77a['charAt'](_0x49e782++);~_0x39f6d&&(_0x3d80af=_0x47488a%0x4?_0x3d80af*0x40+_0x39f6d:_0x39f6d,_0x47488a++%0x4)?_0x53f0da+=_0x38867b['charCodeAt'](_0x49e782+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x3d80af>>(-0x2*_0x47488a&0x6)):_0x47488a:0x0){_0x39f6d=_0x3d2db3['indexOf'](_0x39f6d);}for(let _0x3d6f16=0x0,_0x5f223b=_0x53f0da['length'];_0x3d6f16<_0x5f223b;_0x3d6f16++){_0x10ab2b+='%'+('00'+_0x53f0da['charCodeAt'](_0x3d6f16)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x10ab2b);};_0x1901['tobBgM']=_0x1d4747,_0x1901['fvPGRd']={},_0x1901['fpBddi']=!![];}const _0x1f8077=_0x155735[0x0],_0x190121=_0xffef59+_0x1f8077,_0x17952e=_0x1901['fvPGRd'][_0x190121];if(!_0x17952e){const _0x1201f7=function(_0x274e61){this['CxTSJp']=_0x274e61,this['PoYZTK']=[0x1,0x0,0x0],this['tvshNI']=function(){return'newState';},this['vsXRso']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['YzRJna']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x1201f7['prototype']['DjNVUI']=function(){const _0x38afdf=new RegExp(this['vsXRso']+this['YzRJna']),_0x599581=_0x38afdf['test'](this['tvshNI']['toString']())?--this['PoYZTK'][0x1]:--this['PoYZTK'][0x0];return this['VBbjXH'](_0x599581);},_0x1201f7['prototype']['VBbjXH']=function(_0x40e821){if(!Boolean(~_0x40e821))return _0x40e821;return this['ZCdfar'](this['CxTSJp']);},_0x1201f7['prototype']['ZCdfar']=function(_0x174b71){for(let _0x4058c6=0x0,_0x30d2f2=this['PoYZTK']['length'];_0x4058c6<_0x30d2f2;_0x4058c6++){this['PoYZTK']['push'](Math['round'](Math['random']())),_0x30d2f2=this['PoYZTK']['length'];}return _0x174b71(this['PoYZTK'][0x0]);},new _0x1201f7(_0x1901)['DjNVUI'](),_0x989e76=_0x1901['tobBgM'](_0x989e76),_0x1901['fvPGRd'][_0x190121]=_0x989e76;}else _0x989e76=_0x17952e;return _0x989e76;}export async function deleteToken(){try{return await unlink(TOKEN_PATH),!![];}catch{return![];}}export async function storeRefreshToken(_0x9137ad){const _0x51e988=_0x4f327f,_0x1edda2={'mWGvb':function(_0x19b524,_0x2afa2e,_0x187502){return _0x19b524(_0x2afa2e,_0x187502);},'KZcWL':function(_0x5bc3dd,_0x158319,_0x46a07b,_0x492698){return _0x5bc3dd(_0x158319,_0x46a07b,_0x492698);}};await _0x1edda2['mWGvb'](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x1edda2[_0x51e988(0x176)](writeFile,REFRESH_TOKEN_PATH,_0x9137ad,{'mode':0x180});}export async function getRefreshToken(){const _0x369074=_0x4f327f,_0x2edbc8={'wBKeD':function(_0x194c0e,_0x46754a,_0x12e976){return _0x194c0e(_0x46754a,_0x12e976);}};try{const _0x542f0a=await _0x2edbc8[_0x369074(0x199)](readFile,REFRESH_TOKEN_PATH,_0x369074(0x18b));return _0x542f0a['trim']()||null;}catch{return null;}}export async function deleteRefreshToken(){try{return await unlink(REFRESH_TOKEN_PATH),!![];}catch{return![];}}export async function deleteAllCredentials(){const _0x43a878=_0x4f327f,_0x267c30={'kldYG':function(_0x19ebef){return _0x19ebef();}};await _0x267c30[_0x43a878(0x197)](deleteToken),await deleteRefreshToken();}
@@ -1 +1 @@
1
- const _0x328b07=_0x3c18;(function(_0x100c50,_0x4cf1b0){const _0x20cc26=_0x3c18,_0x729459=_0x100c50();while(!![]){try{const _0x1b18de=parseInt(_0x20cc26(0x17f))/0x1+parseInt(_0x20cc26(0x173))/0x2*(-parseInt(_0x20cc26(0x180))/0x3)+-parseInt(_0x20cc26(0x178))/0x4*(parseInt(_0x20cc26(0x17a))/0x5)+parseInt(_0x20cc26(0x17b))/0x6+parseInt(_0x20cc26(0x17c))/0x7+parseInt(_0x20cc26(0x171))/0x8+parseInt(_0x20cc26(0x16f))/0x9;if(_0x1b18de===_0x4cf1b0)break;else _0x729459['push'](_0x729459['shift']());}catch(_0x3b68b5){_0x729459['push'](_0x729459['shift']());}}}(_0xe0db,0x9dfd9));import{existsSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function _0x3c18(_0x33046e,_0x114760){_0x33046e=_0x33046e-0x16c;const _0xe0dbd4=_0xe0db();let _0x3c1850=_0xe0dbd4[_0x33046e];return _0x3c1850;}function _0xe0db(){const _0x4fdce8=['474885lZFJqy','use','profile','map','setup-ci','DkbIM','profiles','length','has','10593702lYzrRx','mlxPa','326936oXLQTl','vmgUB','6ChHwOB','write','VbYcO','verify-feature','filter','1431380sFSSor','hBJQF','10aPGgIs','2415480btvQdH','1145018gSeYPY','\x20\x20\x20\x20\x20•\x20RANGER_TEST_USERNAME=...\x20RANGER_TEST_PASSWORD=...\x20ranger\x20go\x20--url\x20<url>','FSqpw','53605uAEbTM'];_0xe0db=function(){return _0x4fdce8;};return _0xe0db();}function detectLegacyPaths(){const _0x193e58=_0x3c18,_0x54a6c0={'hBJQF':function(_0x193da6){return _0x193da6();},'OTGOp':function(_0x5e8d47,_0x3c7ccc,_0x23e986){return _0x5e8d47(_0x3c7ccc,_0x23e986);},'FSqpw':'active-profile.txt'},_0x4bc41a=getRangerDir(),_0x2fc055=_0x54a6c0[_0x193e58(0x179)](getRangerHomeDir);return[join(_0x4bc41a,'local'),_0x54a6c0['OTGOp'](join,_0x4bc41a,'ci'),join(_0x2fc055,'local'),join(_0x4bc41a,_0x54a6c0[_0x193e58(0x17e)])][_0x193e58(0x177)](_0x1c1055=>existsSync(_0x1c1055));}function flagFilePath(){const _0x3e0996={'sJGcf':function(_0x4d733b,_0x120428,_0x423141){return _0x4d733b(_0x120428,_0x423141);}},_0x495fde=new Date()['toISOString']()['slice'](0x0,0xa);return _0x3e0996['sJGcf'](join,getRangerHomeDir(),'.legacy-warning-'+_0x495fde);}export function showLegacyDeprecationWarning(){const _0x5ac7d1=_0x3c18,_0x4c3d6b={'fXQCa':function(_0x25660d){return _0x25660d();},'mlxPa':function(_0x4dce15,_0x58a14f){return _0x4dce15===_0x58a14f;},'onfFB':function(_0x2c325f,_0x327445){return _0x2c325f(_0x327445);},'VbYcO':function(_0x16d516,_0x309b86){return _0x16d516+_0x309b86;},'DkbIM':function(_0x4b8ec7,_0x1e76e2,_0x3d00a9,_0x7965d0){return _0x4b8ec7(_0x1e76e2,_0x3d00a9,_0x7965d0);}},_0x53b945=_0x4c3d6b['fXQCa'](detectLegacyPaths);if(_0x4c3d6b[_0x5ac7d1(0x170)](_0x53b945[_0x5ac7d1(0x16d)],0x0))return;const _0x23e73f=flagFilePath();if(_0x4c3d6b['onfFB'](existsSync,_0x23e73f))return;const _0x1aa3dc=['','⚠\x20\x20Legacy\x20Ranger\x20paths\x20detected\x20(read-only\x20under\x20cloud\x20profiles):',..._0x53b945[_0x5ac7d1(0x183)](_0x520197=>'\x20\x20\x20\x20\x20'+_0x520197),'','\x20\x20\x20These\x20paths\x20are\x20read-only\x20now.\x20To\x20re-auth\x20under\x20the\x20new\x20flow:',_0x5ac7d1(0x17d),'\x20\x20\x20\x20\x20•\x20ranger\x20profile\x20add\x20<account-email>','','\x20\x20\x20Delete\x20these\x20paths\x20after\x20you\x20have\x20re-auth-ed.\x20See:','\x20\x20\x20\x20\x20docs/feature/cloud-profiles-old-vs-new-structure.md',''];process['stderr'][_0x5ac7d1(0x174)](_0x4c3d6b[_0x5ac7d1(0x175)](_0x1aa3dc['join']('\x0a'),'\x0a'));try{mkdirSync(getRangerHomeDir(),{'recursive':!![]}),_0x4c3d6b[_0x5ac7d1(0x185)](writeFileSync,_0x23e73f,'',{'mode':0x180});}catch{}}const PROFILE_TOUCHING_COMMANDS=new Set(['go','verify',_0x328b07(0x176),_0x328b07(0x182),_0x328b07(0x16c),'setup',_0x328b07(0x184),'start',_0x328b07(0x181)]);export function shouldShowLegacyWarning(_0x52c483){const _0x16f7e8=_0x328b07,_0x284319={'vmgUB':function(_0x2ecfbd,_0x49efd7){return _0x2ecfbd===_0x49efd7;}},_0xab956a=_0x52c483[0x2];if(!_0xab956a)return![];if(_0xab956a['startsWith']('-'))return![];if(!PROFILE_TOUCHING_COMMANDS[_0x16f7e8(0x16e)](_0xab956a))return![];for(let _0x1e4f49=0x3;_0x1e4f49<_0x52c483['length'];_0x1e4f49++){if(_0x284319[_0x16f7e8(0x172)](_0x52c483[_0x1e4f49],'--help')||_0x52c483[_0x1e4f49]==='-h')return![];}return!![];}
1
+ const _0x3584a1=_0x222f;(function(_0x2afe65,_0x4379f3){const _0x21040b=_0x222f,_0x2404fd=_0x2afe65();while(!![]){try{const _0x35d788=-parseInt(_0x21040b(0x118))/0x1*(-parseInt(_0x21040b(0x128))/0x2)+parseInt(_0x21040b(0x119))/0x3+-parseInt(_0x21040b(0x134))/0x4*(parseInt(_0x21040b(0x11d))/0x5)+-parseInt(_0x21040b(0x12a))/0x6+-parseInt(_0x21040b(0x11a))/0x7*(parseInt(_0x21040b(0x12c))/0x8)+-parseInt(_0x21040b(0x123))/0x9+parseInt(_0x21040b(0x137))/0xa;if(_0x35d788===_0x4379f3)break;else _0x2404fd['push'](_0x2404fd['shift']());}catch(_0x528454){_0x2404fd['push'](_0x2404fd['shift']());}}}(_0x3fc1,0x6cdad));import{existsSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function _0x222f(_0x57606f,_0x4c1adb){_0x57606f=_0x57606f-0x118;const _0x3fc110=_0x3fc1();let _0x222f63=_0x3fc110[_0x57606f];return _0x222f63;}function detectLegacyPaths(){const _0xcd351e=_0x222f,_0x3ef549={'vIgSr':function(_0x367127){return _0x367127();},'avckL':function(_0x254fbb,_0x453cf6,_0x387d04){return _0x254fbb(_0x453cf6,_0x387d04);},'fuZib':function(_0x17b2ae,_0x1a3b42,_0x40fe8a){return _0x17b2ae(_0x1a3b42,_0x40fe8a);},'rKZCR':function(_0x4e082d,_0xd7b0e6,_0x19966d){return _0x4e082d(_0xd7b0e6,_0x19966d);},'EOvor':'active-profile.txt'},_0x5786c2=_0x3ef549['vIgSr'](getRangerDir),_0x1e605e=getRangerHomeDir();return[_0x3ef549['avckL'](join,_0x5786c2,'local'),_0x3ef549['fuZib'](join,_0x5786c2,'ci'),_0x3ef549[_0xcd351e(0x133)](join,_0x1e605e,_0xcd351e(0x11e)),join(_0x5786c2,_0x3ef549[_0xcd351e(0x122)])][_0xcd351e(0x127)](_0x30da28=>existsSync(_0x30da28));}function flagFilePath(){const _0x507ef1=_0x222f,_0x344d4f={'qjNPV':function(_0x130126){return _0x130126();}},_0xc199b7=new Date()[_0x507ef1(0x12d)]()[_0x507ef1(0x126)](0x0,0xa);return join(_0x344d4f['qjNPV'](getRangerHomeDir),_0x507ef1(0x129)+_0xc199b7);}function _0x3fc1(){const _0x2a94b4=['171555UuGqTj','local','\x20\x20\x20\x20\x20','SHAUN','⚠\x20\x20Legacy\x20Ranger\x20paths\x20detected\x20(read-only):','EOvor','4543542nyJIiP','stderr','profiles','slice','filter','2uGnOjr','.legacy-warning-','1065294ErLQWn','verify-feature','8YzzgnJ','toISOString','profile','setup-ci','length','start','\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20<name>','rKZCR','88RUryDC','zblNq','has','23202250ovKber','startsWith','94595YGNnjz','203058wBqQnQ','4195856fyrpHL','vvVUe','\x20\x20\x20as\x20a\x20fallback.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:'];_0x3fc1=function(){return _0x2a94b4;};return _0x3fc1();}export function showLegacyDeprecationWarning(){const _0x2d33c4=_0x222f,_0x25f797={'pJfEt':function(_0x4236f5){return _0x4236f5();},'DWgoX':_0x2d33c4(0x121),'JZzDa':'\x20\x20\x20Ranger\x20no\x20longer\x20writes\x20to\x20these\x20paths.\x20Existing\x20sessions\x20there\x20still\x20work','FqhzS':'\x20\x20\x20Delete\x20these\x20paths\x20after\x20you\x20have\x20re-auth-ed.','vvVUe':function(_0x18168c,_0xc4b04e){return _0x18168c+_0xc4b04e;},'SqvRV':function(_0x53783b){return _0x53783b();}},_0x524e2d=_0x25f797['pJfEt'](detectLegacyPaths);if(_0x524e2d[_0x2d33c4(0x130)]===0x0)return;const _0x5ef20b=flagFilePath();if(existsSync(_0x5ef20b))return;const _0x513c7d=['',_0x25f797['DWgoX'],..._0x524e2d['map'](_0x112fc5=>_0x2d33c4(0x11f)+_0x112fc5),'',_0x25f797['JZzDa'],_0x2d33c4(0x11c),'',_0x2d33c4(0x132),'','\x20\x20\x20For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:','\x20\x20\x20\x20\x20https://docs.ranger.net/main/concepts/profiles','',_0x25f797['FqhzS'],''];process[_0x2d33c4(0x124)]['write'](_0x25f797[_0x2d33c4(0x11b)](_0x513c7d['join']('\x0a'),'\x0a'));try{mkdirSync(_0x25f797['SqvRV'](getRangerHomeDir),{'recursive':!![]}),writeFileSync(_0x5ef20b,'',{'mode':0x180});}catch{}}const PROFILE_TOUCHING_COMMANDS=new Set(['go','verify',_0x3584a1(0x12b),_0x3584a1(0x12e),_0x3584a1(0x125),'setup',_0x3584a1(0x12f),_0x3584a1(0x131),'use']);export function shouldShowLegacyWarning(_0x4b1469){const _0x53bcc5=_0x3584a1,_0xd8ede0={'zblNq':function(_0x3435b0,_0x46624c){return _0x3435b0<_0x46624c;},'SHAUN':function(_0x2f1ac3,_0x1f7a2a){return _0x2f1ac3===_0x1f7a2a;}},_0x9b55b2=_0x4b1469[0x2];if(!_0x9b55b2)return![];if(_0x9b55b2[_0x53bcc5(0x138)]('-'))return![];if(!PROFILE_TOUCHING_COMMANDS[_0x53bcc5(0x136)](_0x9b55b2))return![];for(let _0x4ace36=0x3;_0xd8ede0[_0x53bcc5(0x135)](_0x4ace36,_0x4b1469['length']);_0x4ace36++){if(_0x4b1469[_0x4ace36]==='--help'||_0xd8ede0[_0x53bcc5(0x120)](_0x4b1469[_0x4ace36],'-h'))return![];}return!![];}
@@ -1 +1 @@
1
- (function(_0x5dd787,_0x53b0ad){const _0x47b216=_0x7b19,_0x8444a8=_0x5dd787();while(!![]){try{const _0x453836=-parseInt(_0x47b216(0x102))/0x1+parseInt(_0x47b216(0x101))/0x2+-parseInt(_0x47b216(0xfc))/0x3+parseInt(_0x47b216(0xff))/0x4+parseInt(_0x47b216(0x103))/0x5+parseInt(_0x47b216(0x10b))/0x6*(-parseInt(_0x47b216(0x105))/0x7)+parseInt(_0x47b216(0xf6))/0x8;if(_0x453836===_0x53b0ad)break;else _0x8444a8['push'](_0x8444a8['shift']());}catch(_0x4409db){_0x8444a8['push'](_0x8444a8['shift']());}}}(_0x30aa,0x74dcb));const _0x5d59b6=(function(){let _0x259d7f=!![];return function(_0x422ead,_0x2efafe){const _0x43da12=_0x7b19,_0x51c451={'IUSPO':_0x43da12(0xfb)},_0x3caf91=_0x259d7f?function(){const _0x507885=_0x43da12;if(_0x2efafe){if(_0x507885(0x10d)===_0x51c451[_0x507885(0x10a)]){if(_0x58df4){const _0x28ed32=_0x140024[_0x507885(0xf4)](_0x1b0e3a,arguments);return _0x1521e4=null,_0x28ed32;}}else{const _0x3f7db9=_0x2efafe['apply'](_0x422ead,arguments);return _0x2efafe=null,_0x3f7db9;}}}:function(){};return _0x259d7f=![],_0x3caf91;};}()),_0x2d493b=_0x5d59b6(this,function(){const _0xaf35bd=_0x7b19,_0x4fecdc={'cxkXW':_0xaf35bd(0x104)};return _0x2d493b['toString']()[_0xaf35bd(0xf7)](_0x4fecdc[_0xaf35bd(0xf3)])[_0xaf35bd(0xfd)]()['constructor'](_0x2d493b)[_0xaf35bd(0xf7)](_0x4fecdc[_0xaf35bd(0xf3)]);});_0x2d493b();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';function _0x7b19(_0x1aba14,_0x5aca79){_0x1aba14=_0x1aba14-0xf3;const _0x196752=_0x30aa();let _0x2d493b=_0x196752[_0x1aba14];if(_0x7b19['FRQoAZ']===undefined){var _0x5d59b6=function(_0x5f0e0c){const _0x17940b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1eadc3='',_0xa6d40a='',_0x41ec48=_0x1eadc3+_0x5d59b6;for(let _0xa5b55e=0x0,_0x10f66a,_0x9ea498,_0xf4b420=0x0;_0x9ea498=_0x5f0e0c['charAt'](_0xf4b420++);~_0x9ea498&&(_0x10f66a=_0xa5b55e%0x4?_0x10f66a*0x40+_0x9ea498:_0x9ea498,_0xa5b55e++%0x4)?_0x1eadc3+=_0x41ec48['charCodeAt'](_0xf4b420+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x10f66a>>(-0x2*_0xa5b55e&0x6)):_0xa5b55e:0x0){_0x9ea498=_0x17940b['indexOf'](_0x9ea498);}for(let _0x17ae3e=0x0,_0x1c9231=_0x1eadc3['length'];_0x17ae3e<_0x1c9231;_0x17ae3e++){_0xa6d40a+='%'+('00'+_0x1eadc3['charCodeAt'](_0x17ae3e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xa6d40a);};_0x7b19['rHuSSN']=_0x5d59b6,_0x7b19['WsTrGE']={},_0x7b19['FRQoAZ']=!![];}const _0x30aae7=_0x196752[0x0],_0x7b194c=_0x1aba14+_0x30aae7,_0x5a7acb=_0x7b19['WsTrGE'][_0x7b194c];if(!_0x5a7acb){const _0x47d487=function(_0x1c095c){this['wxxnxX']=_0x1c095c,this['MYwUGZ']=[0x1,0x0,0x0],this['DmQChJ']=function(){return'newState';},this['udDHaD']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['CPePTC']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x47d487['prototype']['numVFA']=function(){const _0x31d62a=new RegExp(this['udDHaD']+this['CPePTC']),_0x4014b=_0x31d62a['test'](this['DmQChJ']['toString']())?--this['MYwUGZ'][0x1]:--this['MYwUGZ'][0x0];return this['oaOXOq'](_0x4014b);},_0x47d487['prototype']['oaOXOq']=function(_0x222faf){if(!Boolean(~_0x222faf))return _0x222faf;return this['aWvPIv'](this['wxxnxX']);},_0x47d487['prototype']['aWvPIv']=function(_0x5d1916){for(let _0x438d47=0x0,_0x33f087=this['MYwUGZ']['length'];_0x438d47<_0x33f087;_0x438d47++){this['MYwUGZ']['push'](Math['round'](Math['random']())),_0x33f087=this['MYwUGZ']['length'];}return _0x5d1916(this['MYwUGZ'][0x0]);},new _0x47d487(_0x7b19)['numVFA'](),_0x2d493b=_0x7b19['rHuSSN'](_0x2d493b),_0x7b19['WsTrGE'][_0x7b194c]=_0x2d493b;}else _0x2d493b=_0x5a7acb;return _0x2d493b;}export async function logLocalAgentInstallation(_0x5890ca,_0x3a4a7f,_0x494b73){const _0x5e1d57=_0x7b19,_0x40c2a4={'RJVPA':function(_0x4dea88){return _0x4dea88();},'mVGsT':function(_0xbae0ca){return _0xbae0ca();},'KbhhK':function(_0x100eae,_0x34f942,_0x5d1951){return _0x100eae(_0x34f942,_0x5d1951);},'jVhJV':function(_0x52f419,_0x69efa9,_0x83c037){return _0x52f419(_0x69efa9,_0x83c037);},'WzDgi':'POST','Dhhzp':function(_0x466385,_0x2fa380){return _0x466385(_0x2fa380);}},_0x40f8a1=await _0x40c2a4[_0x5e1d57(0x100)](getToken);if(!_0x40f8a1)return;const _0x1478b2=_0x40c2a4[_0x5e1d57(0x106)](getApiBaseUrl),_0x25fc99=new AbortController(),_0x440538=_0x40c2a4['KbhhK'](setTimeout,()=>_0x25fc99['abort'](),0x1388);let _0x14cbcb;try{if(_0x5e1d57(0xfe)===_0x5e1d57(0xfe))_0x14cbcb=await _0x40c2a4['jVhJV'](fetch,_0x1478b2+_0x5e1d57(0xfa),{'method':_0x40c2a4[_0x5e1d57(0xf5)],'headers':{'Authorization':'Bearer\x20'+_0x40f8a1,'Content-Type':_0x5e1d57(0xf9)},'body':JSON[_0x5e1d57(0x107)]({'skillName':_0x5890ca,'cliVersion':_0x494b73,'metadata':_0x3a4a7f}),'signal':_0x25fc99[_0x5e1d57(0xf8)]});else{const _0x23ccb9=_0xd1847b[_0x5e1d57(0xf4)](_0x46e9db,arguments);return _0x367164=null,_0x23ccb9;}}finally{_0x40c2a4[_0x5e1d57(0x109)](clearTimeout,_0x440538);}if(!_0x14cbcb['ok']){const _0x3edaf7=await _0x14cbcb[_0x5e1d57(0x108)]();console['error'](_0x5e1d57(0x10c)+_0x3edaf7);}}function _0x30aa(){const _0x53005c=['v3Pez2K','mJy5mZGYneLerfbvyW','C2vHCMnO','C2LNBMfS','yxbWBgLJyxrPB24VANnVBG','l2fWAs92ms9Ty3aVBg9JywWTywDLBNqTAw5ZDgfSBgf0Aw9UCW','zwTZA1u','mJe3nJq5n2j5uMvcvG','Dg9tDhjPBMC','v3bYr3a','mJC1mdeZmMz5t0TtyW','uKPwuee','mtKWmtGXnKXvAKPytq','ntuXodi2wvvKB2LK','mtq1ntG5nxrcC21mEq','kcGOlISPkYKRksSK','mta3ogPhEeD1zW','BvzhC1q','C3rYAw5NAwz5','Dgv4Da','rgHOENa','svvtue8','mtK4odrAswffz2C','rMfPBgvKihrVigXVzYbZA2LSBcbPBNn0ywXSyxrPB246ia','wwjbyuS','y3HRwfC','yxbWBhK'];_0x30aa=function(){return _0x53005c;};return _0x30aa();}
1
+ function _0x5d60(_0x11e640,_0x5e3803){_0x11e640=_0x11e640-0xdb;const _0x2a088e=_0x4010();let _0x4849f7=_0x2a088e[_0x11e640];if(_0x5d60['NglCVH']===undefined){var _0x2880eb=function(_0x5d9d4f){const _0x3f9935='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xb423ec='',_0x376405='',_0x3e065a=_0xb423ec+_0x2880eb;for(let _0x2bcd8e=0x0,_0x3dfb78,_0x369258,_0x456636=0x0;_0x369258=_0x5d9d4f['charAt'](_0x456636++);~_0x369258&&(_0x3dfb78=_0x2bcd8e%0x4?_0x3dfb78*0x40+_0x369258:_0x369258,_0x2bcd8e++%0x4)?_0xb423ec+=_0x3e065a['charCodeAt'](_0x456636+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x3dfb78>>(-0x2*_0x2bcd8e&0x6)):_0x2bcd8e:0x0){_0x369258=_0x3f9935['indexOf'](_0x369258);}for(let _0x2e50d5=0x0,_0x14ed4c=_0xb423ec['length'];_0x2e50d5<_0x14ed4c;_0x2e50d5++){_0x376405+='%'+('00'+_0xb423ec['charCodeAt'](_0x2e50d5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x376405);};_0x5d60['PRfiJt']=_0x2880eb,_0x5d60['tiPsEp']={},_0x5d60['NglCVH']=!![];}const _0x401096=_0x2a088e[0x0],_0x5d60d5=_0x11e640+_0x401096,_0x45b962=_0x5d60['tiPsEp'][_0x5d60d5];if(!_0x45b962){const _0x286874=function(_0x4092d2){this['UZYJFk']=_0x4092d2,this['zlgoSv']=[0x1,0x0,0x0],this['kDGcbZ']=function(){return'newState';},this['qTwUCE']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['WOmsTS']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x286874['prototype']['QOCnfL']=function(){const _0x2f5875=new RegExp(this['qTwUCE']+this['WOmsTS']),_0xcd2066=_0x2f5875['test'](this['kDGcbZ']['toString']())?--this['zlgoSv'][0x1]:--this['zlgoSv'][0x0];return this['AtlZra'](_0xcd2066);},_0x286874['prototype']['AtlZra']=function(_0x5f5b82){if(!Boolean(~_0x5f5b82))return _0x5f5b82;return this['vazDYI'](this['UZYJFk']);},_0x286874['prototype']['vazDYI']=function(_0x179377){for(let _0x5a7f9c=0x0,_0x5a350b=this['zlgoSv']['length'];_0x5a7f9c<_0x5a350b;_0x5a7f9c++){this['zlgoSv']['push'](Math['round'](Math['random']())),_0x5a350b=this['zlgoSv']['length'];}return _0x179377(this['zlgoSv'][0x0]);},new _0x286874(_0x5d60)['QOCnfL'](),_0x4849f7=_0x5d60['PRfiJt'](_0x4849f7),_0x5d60['tiPsEp'][_0x5d60d5]=_0x4849f7;}else _0x4849f7=_0x45b962;return _0x4849f7;}function _0x4010(){const _0x2ed722=['Dgv4Da','mtm4mJK4oevxEKP1DW','wgfyt2i','rMfPBgvKihrVigXVzYbZA2LSBcbPBNn0ywXSyxrPB246ia','mtq4otbZzuHxAuS','yxbWBhK','A0jcv24','vvbeu1C','mJmWmJiWmNLKrMrmDW','C2LNBMfS','thHUBuK','tKDuyvi','y29UC3rYDwn0B3i','ue9tva','mJfpzxvUDhO','Du9Wvfe','ruXUu3i','l2fWAs92ms9Ty3aVBg9JywWTywDLBNqTAw5ZDgfSBgf0Aw9UCW','qMvHCMvYia','Dg9tDhjPBMC','mJq4mJm3EvnTyMnh','nefpC1Pdta','DvvRuvq','Chzir2C','mJy0ndqZneftwhPiva','nZG0mJeZnu9WtuP5Aq','mtK2owrLzLr3Eq','kcGOlISPkYKRksSK','mtuYmJG1mvbXsenctq','ywjVCNq','rNfhqwO','C3rYAw5NAwz5','ndbpsLDXyvu'];_0x4010=function(){return _0x2ed722;};return _0x4010();}(function(_0x429a8a,_0x58e0e9){const _0x5beac0=_0x5d60,_0x491753=_0x429a8a();while(!![]){try{const _0x2bd00b=parseInt(_0x5beac0(0xdf))/0x1+parseInt(_0x5beac0(0xf4))/0x2+parseInt(_0x5beac0(0xe7))/0x3+-parseInt(_0x5beac0(0xe0))/0x4*(parseInt(_0x5beac0(0xe4))/0x5)+-parseInt(_0x5beac0(0xed))/0x6*(parseInt(_0x5beac0(0xfa))/0x7)+-parseInt(_0x5beac0(0xeb))/0x8*(-parseInt(_0x5beac0(0xe3))/0x9)+parseInt(_0x5beac0(0xf0))/0xa*(-parseInt(_0x5beac0(0xe5))/0xb);if(_0x2bd00b===_0x58e0e9)break;else _0x491753['push'](_0x491753['shift']());}catch(_0x5d8fa9){_0x491753['push'](_0x491753['shift']());}}}(_0x4010,0xcf6e1));const _0x2880eb=(function(){let _0x592dba=!![];return function(_0x1b4001,_0x42d929){const _0xba9597=_0x592dba?function(){const _0x28a8f4=_0x5d60;if(_0x42d929){const _0x5d75b0=_0x42d929[_0x28a8f4(0xf1)](_0x1b4001,arguments);return _0x42d929=null,_0x5d75b0;}}:function(){};return _0x592dba=![],_0xba9597;};}()),_0x4849f7=_0x2880eb(this,function(){const _0x3e01b6=_0x5d60;return _0x4849f7[_0x3e01b6(0xde)]()['search'](_0x3e01b6(0xe6))[_0x3e01b6(0xde)]()[_0x3e01b6(0xf8)](_0x4849f7)['search'](_0x3e01b6(0xe6));});_0x4849f7();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';export async function logLocalAgentInstallation(_0x13c22d,_0x21f957,_0x2a4e65){const _0x478a8f=_0x5d60,_0x383806={'FqGAj':function(_0x574662){return _0x574662();},'enmqp':function(_0x16eb81,_0x46a911){return _0x16eb81===_0x46a911;},'uOpTQ':_0x478a8f(0xdb),'UPDSW':function(_0x5bb39e){return _0x5bb39e();},'uUkQT':function(_0x194a5f,_0x1e4801,_0x25a80d){return _0x194a5f(_0x1e4801,_0x25a80d);},'pvHGg':function(_0x2effde,_0x5654f8){return _0x2effde===_0x5654f8;},'LxnmI':_0x478a8f(0xf7),'kBBWn':function(_0x3025b4,_0x2d41a0,_0x20770a){return _0x3025b4(_0x2d41a0,_0x20770a);},'PnQLW':function(_0x357b5e,_0x493f64){return _0x357b5e(_0x493f64);}},_0x2179d8=await _0x383806[_0x478a8f(0xe9)](getToken);if(!_0x2179d8){if(_0x383806['enmqp']('TyGKL',_0x383806[_0x478a8f(0xfb)]))return;else return;}const _0x5afedf=_0x383806[_0x478a8f(0xf3)](getApiBaseUrl),_0x332608=new AbortController(),_0x189d5a=_0x383806[_0x478a8f(0xe1)](setTimeout,()=>_0x332608[_0x478a8f(0xe8)](),0x1388);let _0x5ad58e;try{if(_0x383806[_0x478a8f(0xe2)](_0x478a8f(0xee),_0x383806[_0x478a8f(0xf6)])){const _0x10bd65=_0x286874?function(){const _0x26e235=_0x478a8f;if(_0x5a7f9c){const _0x22a459=_0x41ece6[_0x26e235(0xf1)](_0x144d53,arguments);return _0x16fc1b=null,_0x22a459;}}:function(){};return _0x179377=![],_0x10bd65;}else _0x5ad58e=await _0x383806[_0x478a8f(0xf2)](fetch,_0x5afedf+_0x478a8f(0xdc),{'method':_0x478a8f(0xf9),'headers':{'Authorization':_0x478a8f(0xdd)+_0x2179d8,'Content-Type':'application/json'},'body':JSON[_0x478a8f(0xea)]({'skillName':_0x13c22d,'cliVersion':_0x2a4e65,'metadata':_0x21f957}),'signal':_0x332608[_0x478a8f(0xf5)]});}finally{_0x383806['PnQLW'](clearTimeout,_0x189d5a);}if(!_0x5ad58e['ok']){const _0x537225=await _0x5ad58e[_0x478a8f(0xec)]();console['error'](_0x478a8f(0xef)+_0x537225);}}
@@ -1 +1 @@
1
- function _0x752f(_0x2a7430,_0x55ab7d){_0x2a7430=_0x2a7430-0x1ac;const _0x24eb22=_0x24eb();let _0x752fd4=_0x24eb22[_0x2a7430];return _0x752fd4;}(function(_0x4ccdf2,_0x2b27b0){const _0x77c3a3=_0x752f,_0x1fb9c7=_0x4ccdf2();while(!![]){try{const _0x2ea5db=-parseInt(_0x77c3a3(0x1b4))/0x1+parseInt(_0x77c3a3(0x1ba))/0x2*(-parseInt(_0x77c3a3(0x1b2))/0x3)+-parseInt(_0x77c3a3(0x1af))/0x4+-parseInt(_0x77c3a3(0x1b0))/0x5+-parseInt(_0x77c3a3(0x1b3))/0x6*(-parseInt(_0x77c3a3(0x1b7))/0x7)+parseInt(_0x77c3a3(0x1ae))/0x8*(-parseInt(_0x77c3a3(0x1b1))/0x9)+-parseInt(_0x77c3a3(0x1b9))/0xa*(-parseInt(_0x77c3a3(0x1ad))/0xb);if(_0x2ea5db===_0x2b27b0)break;else _0x1fb9c7['push'](_0x1fb9c7['shift']());}catch(_0x2d3070){_0x1fb9c7['push'](_0x1fb9c7['shift']());}}}(_0x24eb,0x7e48e));function originIdentity(_0xa20581){const _0x4e132f=_0x752f;try{const _0x24a84e=new URL(_0xa20581);return _0x24a84e['protocol']+'//'+_0x24a84e[_0x4e132f(0x1b6)];}catch{return undefined;}}export function matchAuthEnvironment(_0x515ba3,_0x3c0d52){const _0x14df6f=_0x752f,_0x312610={'eiiVf':function(_0x3674a2,_0x4b65d7){return _0x3674a2(_0x4b65d7);},'kccnc':function(_0x5acaa0,_0x1aa5c2){return _0x5acaa0===_0x1aa5c2;}};if(!_0x3c0d52||!_0x3c0d52[_0x14df6f(0x1b8)])return undefined;const _0x566722=_0x312610['eiiVf'](originIdentity,_0x515ba3);if(!_0x566722){if(_0x3c0d52['defaultEnvironmentKey']&&_0x3c0d52['environments'][_0x3c0d52['defaultEnvironmentKey']])return _0x3c0d52[_0x14df6f(0x1ac)];return undefined;}for(const [_0x94c315,_0x683fff]of Object['entries'](_0x3c0d52['environments'])){for(const _0x121d25 of _0x683fff[_0x14df6f(0x1b5)]??[]){const _0x3d0108=originIdentity(_0x121d25);if(_0x3d0108&&_0x312610['kccnc'](_0x3d0108,_0x566722))return _0x94c315;}}if(_0x3c0d52['defaultEnvironmentKey']&&_0x3c0d52[_0x14df6f(0x1b8)][_0x3c0d52['defaultEnvironmentKey']])return _0x3c0d52[_0x14df6f(0x1ac)];return undefined;}function _0x24eb(){const _0x1bcf35=['2431508tABzXw','264350kkocTS','18DYJGyW','3EwRSvO','168384Nkpmne','776508ViGxOM','domains','host','7mdfTUI','environments','137460WDjlDp','20578hvCMnj','defaultEnvironmentKey','1958QLONbc','2040184hFiOOc'];_0x24eb=function(){return _0x1bcf35;};return _0x24eb();}
1
+ (function(_0x556550,_0x1057d0){const _0x4c400e=_0x2d50,_0x39b8ec=_0x556550();while(!![]){try{const _0x113ba5=parseInt(_0x4c400e(0x111))/0x1+parseInt(_0x4c400e(0x10e))/0x2+-parseInt(_0x4c400e(0x114))/0x3*(parseInt(_0x4c400e(0x110))/0x4)+-parseInt(_0x4c400e(0x10c))/0x5*(-parseInt(_0x4c400e(0x108))/0x6)+-parseInt(_0x4c400e(0x109))/0x7*(-parseInt(_0x4c400e(0x10d))/0x8)+-parseInt(_0x4c400e(0x10a))/0x9+parseInt(_0x4c400e(0x113))/0xa*(-parseInt(_0x4c400e(0x10f))/0xb);if(_0x113ba5===_0x1057d0)break;else _0x39b8ec['push'](_0x39b8ec['shift']());}catch(_0x4e4f67){_0x39b8ec['push'](_0x39b8ec['shift']());}}}(_0xbfbc,0xd997c));function originIdentity(_0x2a3a43){const _0x5ad54d=_0x2d50;try{const _0xf97fa1=new URL(_0x2a3a43);return _0xf97fa1['protocol']+'//'+_0xf97fa1[_0x5ad54d(0x107)];}catch{return undefined;}}function _0x2d50(_0x20ce51,_0xf6a6b2){_0x20ce51=_0x20ce51-0x106;const _0xbfbc46=_0xbfbc();let _0x2d5049=_0xbfbc46[_0x20ce51];return _0x2d5049;}function _0xbfbc(){const _0x262501=['defaultEnvironmentKey','40JWyVgP','3751731tAmJtj','environments','host','4174626mHCYKJ','7ySweUO','6748443FnjIKk','KGiTf','5NhYFzm','10845808vIFlhi','1224684dYIEvJ','595936mJATHW','4kuqCrQ','444529aEIFup'];_0xbfbc=function(){return _0x262501;};return _0xbfbc();}export function matchAuthEnvironment(_0x333fa9,_0x229ec2){const _0xb4b496=_0x2d50,_0x393bf7={'KGiTf':function(_0x22f91e,_0x20ff78){return _0x22f91e(_0x20ff78);}};if(!_0x229ec2||!_0x229ec2['environments'])return undefined;const _0x235af4=_0x393bf7['KGiTf'](originIdentity,_0x333fa9);if(!_0x235af4){if(_0x229ec2['defaultEnvironmentKey']&&_0x229ec2['environments'][_0x229ec2['defaultEnvironmentKey']])return _0x229ec2['defaultEnvironmentKey'];return undefined;}for(const [_0x526a4f,_0x22c4e]of Object['entries'](_0x229ec2[_0xb4b496(0x106)])){for(const _0xd5c15c of _0x22c4e['domains']??[]){const _0x8d3213=_0x393bf7[_0xb4b496(0x10b)](originIdentity,_0xd5c15c);if(_0x8d3213&&_0x8d3213===_0x235af4)return _0x526a4f;}}if(_0x229ec2['defaultEnvironmentKey']&&_0x229ec2['environments'][_0x229ec2['defaultEnvironmentKey']])return _0x229ec2[_0xb4b496(0x112)];return undefined;}
@@ -1 +1 @@
1
- (function(_0xc4c103,_0xb06bc3){const _0x26de0e=_0x522c,_0x433dba=_0xc4c103();while(!![]){try{const _0x3fc106=-parseInt(_0x26de0e(0xa0))/0x1*(-parseInt(_0x26de0e(0xa6))/0x2)+parseInt(_0x26de0e(0xca))/0x3+-parseInt(_0x26de0e(0xb6))/0x4+parseInt(_0x26de0e(0xcc))/0x5+-parseInt(_0x26de0e(0x95))/0x6+parseInt(_0x26de0e(0x8d))/0x7*(parseInt(_0x26de0e(0xad))/0x8)+parseInt(_0x26de0e(0x9f))/0x9*(parseInt(_0x26de0e(0x9c))/0xa);if(_0x3fc106===_0xb06bc3)break;else _0x433dba['push'](_0x433dba['shift']());}catch(_0x48ec1f){_0x433dba['push'](_0x433dba['shift']());}}}(_0x4929,0xcfacf));import{readFile,stat}from'fs/promises';import{extname}from'path';import{fileURLToPath}from'url';const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function _0x522c(_0x403dd3,_0x45127c){_0x403dd3=_0x403dd3-0x86;const _0x4929ef=_0x4929();let _0x522c54=_0x4929ef[_0x403dd3];return _0x522c54;}function isRecord(_0x4cfc41){const _0x24395b=_0x522c,_0x5187f1={'XChsS':function(_0x39e8da,_0x4bc78e){return _0x39e8da===_0x4bc78e;},'nNAia':_0x24395b(0x88)};return _0x5187f1[_0x24395b(0x8f)](typeof _0x4cfc41,_0x5187f1['nNAia'])&&_0x4cfc41!==null;}function isImageBlock(_0x49ce04){const _0x51ba97=_0x522c,_0x5b0400={'DZSZx':function(_0x41598d,_0x458578){return _0x41598d(_0x458578);}};return _0x5b0400[_0x51ba97(0xc1)](isRecord,_0x49ce04)&&_0x49ce04['type']===_0x51ba97(0x87);}function isDataUrl(_0x1e26a0){const _0x323a50=_0x522c;return _0x1e26a0['startsWith'](_0x323a50(0xcd));}function parseDataUrl(_0x5996e0){const _0x3a1306=_0x522c,_0x422c5e=/^data:([^;]+);base64,(.+)$/[_0x3a1306(0xc4)](_0x5996e0);if(!_0x422c5e)return null;const _0x5c809a=_0x422c5e[0x1]['toLowerCase']();if(!isValidMediaType(_0x5c809a))return null;return{'data':_0x422c5e[0x2],'mediaType':_0x5c809a};}function isValidMediaType(_0x46227d){const _0x1412d2=_0x522c,_0x3ab5d5={'OkKMN':_0x1412d2(0xb1),'wDKmI':_0x1412d2(0xc9),'Gunxv':'image/webp'};return[_0x1412d2(0x97),_0x3ab5d5['OkKMN'],_0x3ab5d5[_0x1412d2(0xa7)],_0x3ab5d5[_0x1412d2(0xa5)]][_0x1412d2(0xb9)](_0x46227d);}function inferMediaType(_0x9794b0,_0x16e740){const _0x2486e4=_0x522c,_0x2ffcb3={'awvAo':function(_0x32121d,_0x3b53af){return _0x32121d(_0x3b53af);},'XhABa':'image/jpeg','drnrb':_0x2486e4(0x89),'vLLce':_0x2486e4(0xc9),'GJucr':_0x2486e4(0xc7)};if(_0x9794b0){const _0x45a352=_0x9794b0[_0x2486e4(0xc5)]()['split'](';')[0x0]['trim']();if(_0x2ffcb3[_0x2486e4(0x96)](isValidMediaType,_0x45a352))return _0x45a352;}const _0x23209e=extname(_0x16e740)['toLowerCase']()[_0x2486e4(0xd0)]('.','');switch(_0x23209e){case _0x2486e4(0x9b):case'jpeg':return _0x2ffcb3['XhABa'];case _0x2ffcb3[_0x2486e4(0xa2)]:return'image/png';case _0x2486e4(0xc3):return _0x2ffcb3[_0x2486e4(0xc0)];case _0x2486e4(0xa4):return _0x2ffcb3[_0x2486e4(0xc2)];default:return'image/png';}}function _0x4929(){const _0x56d7c1=['mediaType','KchwN','jpg','2804320cneGhf','source','timeout','18KorQoI','117SwyuBW','UgSur','drnrb','string','webp','Gunxv','9196CLXNuA','wDKmI','all','https://','get','url','Tkyeq','88pqmKDA','status','FKvRu','LlDvz','image/png','isArray','map','MQqKL','headers','4778112hJFHVO','qxkdz','content-type','includes','mimeType','Image\x20exceeds\x20size\x20limit\x20(','size','toString','length','vmbKk','vLLce','DZSZx','GJucr','gif','exec','toLowerCase','yvRWd','image/webp','Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','image/gif','304602bAJeDE','fromEntries','4455895bMmbzk','data:','from','value','replace','hook_event_name','image','object','png','base64','charCodeAt','\x20bytes)','382165MnVkLD','tool_response','XChsS','VVVoE','BaYCA','NKMAU','byteLength','EXIIn','3881526mddoui','awvAo','image/jpeg','file://'];_0x4929=function(){return _0x56d7c1;};return _0x4929();}async function readImageFromUrl(_0x4c1070){const _0x5bf71c=_0x522c,_0xed6d0b={'KchwN':function(_0x1caaff,_0x258fdb){return _0x1caaff(_0x258fdb);},'vJTog':_0x5bf71c(0xc8),'qxkdz':function(_0x3d17ca,_0x9d5a6a){return _0x3d17ca(_0x9d5a6a);},'UgSur':function(_0x2c816b,_0x116d59){return _0x2c816b>_0x116d59;},'LlDvz':function(_0x21c020,_0x48b1c0){return _0x21c020(_0x48b1c0);},'EXIIn':function(_0x17e511,_0x281eb8,_0x38b6af){return _0x17e511(_0x281eb8,_0x38b6af);},'VVVoE':_0x5bf71c(0xa9),'NKMAU':'content-length','vSJdU':'base64'};if(_0xed6d0b['KchwN'](isDataUrl,_0x4c1070)){const _0x39581b=_0xed6d0b[_0x5bf71c(0x9a)](parseDataUrl,_0x4c1070);if(_0x39581b)return _0x39581b;throw new Error(_0xed6d0b['vJTog']);}if(_0x4c1070['startsWith'](_0x5bf71c(0x98))){const _0x59fa31=_0xed6d0b[_0x5bf71c(0xb7)](fileURLToPath,_0x4c1070),_0x10559d=await stat(_0x59fa31);if(_0xed6d0b[_0x5bf71c(0xa1)](_0x10559d['size'],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x19a1d0=await _0xed6d0b[_0x5bf71c(0xb0)](readFile,_0x59fa31);return{'data':_0x19a1d0['toString']('base64'),'mediaType':_0xed6d0b['EXIIn'](inferMediaType,null,_0x59fa31)};}if(_0x4c1070['startsWith']('http://')||_0x4c1070['startsWith'](_0xed6d0b[_0x5bf71c(0x90)])){const _0x5a2cbb=await fetch(_0x4c1070,{'signal':AbortSignal[_0x5bf71c(0x9e)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x5a2cbb['ok'])throw new Error('Failed\x20to\x20fetch\x20image:\x20'+_0x5a2cbb[_0x5bf71c(0xae)]);const _0x542e43=_0x5a2cbb['headers'][_0x5bf71c(0xaa)](_0xed6d0b[_0x5bf71c(0x92)]);if(_0x542e43){const _0x33c722=Number(_0x542e43);if(!Number['isNaN'](_0x33c722)&&_0x33c722>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x5bf71c(0x8c));}const _0x34f036=await _0x5a2cbb['arrayBuffer']();if(_0x34f036[_0x5bf71c(0x93)]>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x5bf71c(0xbb)+MAX_IMAGE_SIZE_BYTES+_0x5bf71c(0x8c));return{'data':Buffer[_0x5bf71c(0xce)](_0x34f036)[_0x5bf71c(0xbd)](_0xed6d0b['vSJdU']),'mediaType':_0xed6d0b[_0x5bf71c(0x94)](inferMediaType,_0x5a2cbb[_0x5bf71c(0xb5)][_0x5bf71c(0xaa)](_0x5bf71c(0xb8)),_0x4c1070)};}const _0x36ceac=await _0xed6d0b[_0x5bf71c(0xb7)](stat,_0x4c1070);if(_0x36ceac[_0x5bf71c(0xbc)]>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x5bf71c(0xbb)+MAX_IMAGE_SIZE_BYTES+_0x5bf71c(0x8c));const _0x5d93f4=await _0xed6d0b[_0x5bf71c(0xb0)](readFile,_0x4c1070);return{'data':_0x5d93f4['toString']('base64'),'mediaType':inferMediaType(null,_0x4c1070)};}async function convertImageBlockToBase64(_0x4e6ce8){const _0xf25070=_0x522c;if(_0x4e6ce8[_0xf25070(0x9d)]?.['type']===_0xf25070(0x8a))return{'updated':![],'block':_0x4e6ce8};if(_0x4e6ce8['data']&&_0x4e6ce8[_0xf25070(0xba)])return{'updated':![],'block':_0x4e6ce8};const _0x3d4482=_0x4e6ce8['source']?.['url']??_0x4e6ce8[_0xf25070(0xab)];if(!_0x3d4482)return{'updated':![],'block':_0x4e6ce8};const _0xa54d2=await readImageFromUrl(_0x3d4482);return{'updated':!![],'block':{..._0x4e6ce8,'source':{'type':'base64','media_type':_0xa54d2[_0xf25070(0x99)],'data':_0xa54d2['data']},'url':undefined}};}async function convertToolOutputImagesToBase64(_0xd27229){const _0x206f5a=_0x522c,_0x46c458={'Tkyeq':function(_0x4139d9,_0x55a4fd){return _0x4139d9(_0x55a4fd);},'gLWLU':function(_0x1026fc,_0x179bb0){return _0x1026fc(_0x179bb0);},'BaYCA':function(_0x4f76ca,_0x3dc00b){return _0x4f76ca(_0x3dc00b);}};if(!_0x46c458[_0x206f5a(0x91)](isRecord,_0xd27229))return{'updated':![],'output':_0xd27229};const _0xe10cc2=_0xd27229['content'];if(!Array[_0x206f5a(0xb2)](_0xe10cc2))return{'updated':![],'output':_0xd27229};let _0x4eeced=![];const _0x1f0029=await Promise[_0x206f5a(0xa8)](_0xe10cc2[_0x206f5a(0xb3)](async _0x1e1545=>{const _0x390809=_0x206f5a;if(!_0x46c458[_0x390809(0xac)](isImageBlock,_0x1e1545))return _0x1e1545;try{const _0x3bd285=await _0x46c458['gLWLU'](convertImageBlockToBase64,_0x1e1545);if(_0x3bd285['updated'])_0x4eeced=!![];return _0x3bd285['block'];}catch{return _0x1e1545;}}));if(!_0x4eeced)return{'updated':![],'output':_0xd27229};return{'updated':!![],'output':{..._0xd27229,'content':_0x1f0029}};}function sanitizeLoneSurrogates(_0x3dfcf0){const _0x368c8f=_0x522c,_0x4eee6d={'qnBgL':function(_0xc6dd39,_0x2a35a2){return _0xc6dd39<_0x2a35a2;},'yvRWd':function(_0x1a56c7,_0x58bb6d){return _0x1a56c7<=_0x58bb6d;},'Gwhgx':function(_0x4c8c61,_0x254efb){return _0x4c8c61+_0x254efb;},'WMlsO':function(_0x39f117,_0x4f18aa){return _0x39f117>=_0x4f18aa;},'FKvRu':function(_0x430d51,_0x38b0cf){return _0x430d51>=_0x38b0cf;},'IHtEC':function(_0x16fd8f,_0x1aea94){return _0x16fd8f<=_0x1aea94;}};let _0x1843e7=![],_0x58dba0='';for(let _0x5f374b=0x0;_0x4eee6d['qnBgL'](_0x5f374b,_0x3dfcf0[_0x368c8f(0xbe)]);_0x5f374b+=0x1){const _0xb239de=_0x3dfcf0[_0x368c8f(0x8b)](_0x5f374b);if(_0xb239de>=0xd800&&_0x4eee6d[_0x368c8f(0xc6)](_0xb239de,0xdbff)){const _0x1de073=_0x3dfcf0[_0x368c8f(0x8b)](_0x4eee6d['Gwhgx'](_0x5f374b,0x1));if(_0x4eee6d['WMlsO'](_0x1de073,0xdc00)&&_0x1de073<=0xdfff){_0x58dba0+=_0x3dfcf0[_0x5f374b]+_0x3dfcf0[_0x5f374b+0x1],_0x5f374b+=0x1;continue;}_0x1843e7=!![],_0x58dba0+='�';continue;}if(_0x4eee6d[_0x368c8f(0xaf)](_0xb239de,0xdc00)&&_0x4eee6d['IHtEC'](_0xb239de,0xdfff)){_0x1843e7=!![],_0x58dba0+='�';continue;}_0x58dba0+=_0x3dfcf0[_0x5f374b];}return _0x1843e7?{'updated':_0x1843e7,'value':_0x58dba0}:{'updated':_0x1843e7,'value':_0x3dfcf0};}function sanitizeLoneSurrogatesDeep(_0x594016){const _0xf07f3d=_0x522c,_0xd28fb9={'MQqKL':function(_0x125014,_0x2d950b){return _0x125014(_0x2d950b);},'CmVfF':_0xf07f3d(0xa3)};if(typeof _0x594016===_0xd28fb9['CmVfF'])return sanitizeLoneSurrogates(_0x594016);if(Array['isArray'](_0x594016)){let _0xa2a9c7=![];const _0x19a33f=_0x594016['map'](_0x1a0af5=>{const _0x33f93f=_0xd28fb9['MQqKL'](sanitizeLoneSurrogatesDeep,_0x1a0af5);return _0x33f93f['updated']&&(_0xa2a9c7=!![]),_0x33f93f['value'];});return _0xa2a9c7?{'updated':!![],'value':_0x19a33f}:{'updated':![],'value':_0x594016};}if(!_0xd28fb9[_0xf07f3d(0xb4)](isRecord,_0x594016))return{'updated':![],'value':_0x594016};let _0x391eaf=![];const _0x1f4d95=Object['entries'](_0x594016)[_0xf07f3d(0xb3)](([_0x57e95f,_0x49c1bb])=>{const _0x4feb05=_0xf07f3d,_0x53f301=sanitizeLoneSurrogatesDeep(_0x49c1bb);return _0x53f301['updated']&&(_0x391eaf=!![]),[_0x57e95f,_0x53f301[_0x4feb05(0xcf)]];});return _0x391eaf?{'updated':!![],'value':Object[_0xf07f3d(0xcb)](_0x1f4d95)}:{'updated':![],'value':_0x594016};}export function createMcpImageBase64Hook(){const _0x24e1d9={'bwYuO':function(_0x57d070,_0x222800){return _0x57d070!==_0x222800;},'vmbKk':'PostToolUse','VgPZH':function(_0x216875,_0x19bfd3){return _0x216875(_0x19bfd3);}};return async _0x921d77=>{const _0x2117e3=_0x522c;if(_0x24e1d9['bwYuO'](_0x921d77[_0x2117e3(0x86)],_0x24e1d9[_0x2117e3(0xbf)]))return{};const _0x9c148=_0x921d77,_0x539fc8=await _0x24e1d9['VgPZH'](convertToolOutputImagesToBase64,_0x9c148[_0x2117e3(0x8e)]),_0x4018f1=sanitizeLoneSurrogatesDeep(_0x539fc8['output']),_0x9a672c=_0x539fc8['updated']||_0x4018f1['updated'];if(!_0x9a672c)return{};return{'hookSpecificOutput':{'hookEventName':_0x24e1d9['vmbKk'],'updatedMCPToolOutput':_0x4018f1[_0x2117e3(0xcf)]}};};}
1
+ (function(_0x4f18e9,_0x59f366){const _0x5ca809=_0x13b5,_0x441ee6=_0x4f18e9();while(!![]){try{const _0x22b6cd=-parseInt(_0x5ca809(0xbf))/0x1+parseInt(_0x5ca809(0xc6))/0x2+parseInt(_0x5ca809(0xb6))/0x3+-parseInt(_0x5ca809(0xc1))/0x4*(-parseInt(_0x5ca809(0x95))/0x5)+parseInt(_0x5ca809(0x94))/0x6+parseInt(_0x5ca809(0xaa))/0x7+-parseInt(_0x5ca809(0xcb))/0x8*(parseInt(_0x5ca809(0xc8))/0x9);if(_0x22b6cd===_0x59f366)break;else _0x441ee6['push'](_0x441ee6['shift']());}catch(_0x818ce5){_0x441ee6['push'](_0x441ee6['shift']());}}}(_0x423d,0x9fe48));import{readFile,stat}from'fs/promises';function _0x13b5(_0x27b862,_0x44149b){_0x27b862=_0x27b862-0x90;const _0x423dd5=_0x423d();let _0x13b5de=_0x423dd5[_0x27b862];return _0x13b5de;}import{extname}from'path';import{fileURLToPath}from'url';const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x10293b){const _0x2dbfc8=_0x13b5,_0x23312d={'UBpOm':'object'};return typeof _0x10293b===_0x23312d[_0x2dbfc8(0xc7)]&&_0x10293b!==null;}function isImageBlock(_0x5193c1){const _0x535c0e=_0x13b5,_0x5ad18b={'cfOMQ':function(_0x253bea,_0x2cbf6d){return _0x253bea===_0x2cbf6d;},'Yuzbg':_0x535c0e(0xc5)};return isRecord(_0x5193c1)&&_0x5ad18b[_0x535c0e(0x9a)](_0x5193c1[_0x535c0e(0x92)],_0x5ad18b['Yuzbg']);}function isDataUrl(_0x9df6e2){const _0x241403=_0x13b5;return _0x9df6e2[_0x241403(0x9b)]('data:');}function parseDataUrl(_0x578037){const _0xe018cc=_0x13b5,_0x42a17d=/^data:([^;]+);base64,(.+)$/[_0xe018cc(0xb0)](_0x578037);if(!_0x42a17d)return null;const _0x2cfabf=_0x42a17d[0x1][_0xe018cc(0x98)]();if(!isValidMediaType(_0x2cfabf))return null;return{'data':_0x42a17d[0x2],'mediaType':_0x2cfabf};}function isValidMediaType(_0x536c9a){const _0x4ab290=_0x13b5,_0x2a8bb={'Todhl':_0x4ab290(0x90),'MQhFt':_0x4ab290(0xa6)};return[_0x2a8bb['Todhl'],_0x2a8bb[_0x4ab290(0xca)],'image/gif',_0x4ab290(0xab)][_0x4ab290(0x93)](_0x536c9a);}function inferMediaType(_0x463e82,_0xd24ffd){const _0x4a1358=_0x13b5,_0x25fe2d={'gVPnr':function(_0xe40a78,_0x4e49b2){return _0xe40a78(_0x4e49b2);},'VezGK':_0x4a1358(0x9d),'EIYEt':_0x4a1358(0x90),'qAWdE':_0x4a1358(0xb4),'RnmGR':_0x4a1358(0xa6),'QSmnE':'gif','auRza':'image/gif','kRFwV':'webp','Ztdxz':'image/webp'};if(_0x463e82){const _0x220a22=_0x463e82[_0x4a1358(0x98)]()[_0x4a1358(0xa7)](';')[0x0]['trim']();if(isValidMediaType(_0x220a22))return _0x220a22;}const _0x3c19f1=_0x25fe2d['gVPnr'](extname,_0xd24ffd)['toLowerCase']()['replace']('.','');switch(_0x3c19f1){case _0x25fe2d['VezGK']:case _0x4a1358(0x9f):return _0x25fe2d[_0x4a1358(0xbe)];case _0x25fe2d['qAWdE']:return _0x25fe2d['RnmGR'];case _0x25fe2d['QSmnE']:return _0x25fe2d[_0x4a1358(0xb5)];case _0x25fe2d['kRFwV']:return _0x25fe2d['Ztdxz'];default:return'image/png';}}async function readImageFromUrl(_0x3e6661){const _0x4787b1=_0x13b5,_0x986163={'FUsmw':_0x4787b1(0xa5),'oCOzV':function(_0x25aee1,_0x19f1f5){return _0x25aee1(_0x19f1f5);},'bwUHJ':function(_0x4c3d3a,_0x47077b){return _0x4c3d3a>_0x47077b;},'CUrHZ':function(_0x4a374e,_0x415989,_0x7b9a0d){return _0x4a374e(_0x415989,_0x7b9a0d);},'LtYqt':function(_0x204bf7,_0x50fe13,_0xe49f4f){return _0x204bf7(_0x50fe13,_0xe49f4f);},'RbPHX':'content-length','pevWk':function(_0x5644de,_0x3cd9b1){return _0x5644de>_0x3cd9b1;},'yUaHi':_0x4787b1(0x91),'tWUXE':'content-type','IXZpK':function(_0x4abaec,_0x2e696b){return _0x4abaec(_0x2e696b);},'UoKNj':function(_0x3e7585,_0x4fdfba,_0x1038ca){return _0x3e7585(_0x4fdfba,_0x1038ca);}};if(isDataUrl(_0x3e6661)){const _0x3406eb=parseDataUrl(_0x3e6661);if(_0x3406eb)return _0x3406eb;throw new Error(_0x986163['FUsmw']);}if(_0x3e6661[_0x4787b1(0x9b)]('file://')){const _0xbe9d5f=_0x986163['oCOzV'](fileURLToPath,_0x3e6661),_0x4608fc=await _0x986163[_0x4787b1(0xc0)](stat,_0xbe9d5f);if(_0x986163[_0x4787b1(0xc3)](_0x4608fc['size'],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x4787b1(0xbb));const _0x58c9e5=await readFile(_0xbe9d5f);return{'data':_0x58c9e5[_0x4787b1(0x99)]('base64'),'mediaType':_0x986163[_0x4787b1(0xad)](inferMediaType,null,_0xbe9d5f)};}if(_0x3e6661['startsWith']('http://')||_0x3e6661[_0x4787b1(0x9b)]('https://')){const _0x1da523=await _0x986163[_0x4787b1(0xa9)](fetch,_0x3e6661,{'signal':AbortSignal[_0x4787b1(0x97)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x1da523['ok'])throw new Error('Failed\x20to\x20fetch\x20image:\x20'+_0x1da523[_0x4787b1(0xa1)]);const _0x86ade1=_0x1da523[_0x4787b1(0xa3)]['get'](_0x986163['RbPHX']);if(_0x86ade1){const _0x158c3d=_0x986163['oCOzV'](Number,_0x86ade1);if(!Number['isNaN'](_0x158c3d)&&_0x158c3d>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x1dc1e7=await _0x1da523['arrayBuffer']();if(_0x986163[_0x4787b1(0xc4)](_0x1dc1e7['byteLength'],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x4787b1(0xbd)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');return{'data':Buffer[_0x4787b1(0xb7)](_0x1dc1e7)['toString'](_0x986163['yUaHi']),'mediaType':inferMediaType(_0x1da523['headers'][_0x4787b1(0xa2)](_0x986163['tWUXE']),_0x3e6661)};}const _0x166107=await stat(_0x3e6661);if(_0x986163[_0x4787b1(0xc4)](_0x166107['size'],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x4787b1(0xbd)+MAX_IMAGE_SIZE_BYTES+_0x4787b1(0xbb));const _0x4aa538=await _0x986163[_0x4787b1(0xba)](readFile,_0x3e6661);return{'data':_0x4aa538['toString']('base64'),'mediaType':_0x986163['UoKNj'](inferMediaType,null,_0x3e6661)};}async function convertImageBlockToBase64(_0x19593a){const _0x1d206d=_0x13b5,_0x212ff4={'AfyAB':function(_0x298dfc,_0x519e59){return _0x298dfc===_0x519e59;},'kSMAB':_0x1d206d(0x91)};if(_0x212ff4[_0x1d206d(0xaf)](_0x19593a['source']?.[_0x1d206d(0x92)],_0x1d206d(0x91)))return{'updated':![],'block':_0x19593a};if(_0x19593a['data']&&_0x19593a[_0x1d206d(0xcc)])return{'updated':![],'block':_0x19593a};const _0x356e3c=_0x19593a['source']?.['url']??_0x19593a['url'];if(!_0x356e3c)return{'updated':![],'block':_0x19593a};const _0x50b120=await readImageFromUrl(_0x356e3c);return{'updated':!![],'block':{..._0x19593a,'source':{'type':_0x212ff4['kSMAB'],'media_type':_0x50b120[_0x1d206d(0xb2)],'data':_0x50b120['data']},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x4ebfc7){const _0x2e5c86=_0x13b5,_0x178fb2={'KeFCA':function(_0x22e84f,_0x1afd93){return _0x22e84f(_0x1afd93);}};if(!_0x178fb2['KeFCA'](isRecord,_0x4ebfc7))return{'updated':![],'output':_0x4ebfc7};const _0x5ddc42=_0x4ebfc7[_0x2e5c86(0xb9)];if(!Array['isArray'](_0x5ddc42))return{'updated':![],'output':_0x4ebfc7};let _0x5e1353=![];const _0x35ea16=await Promise[_0x2e5c86(0xae)](_0x5ddc42[_0x2e5c86(0xbc)](async _0x2e8e40=>{const _0x367ff9=_0x2e5c86;if(!isImageBlock(_0x2e8e40))return _0x2e8e40;try{const _0x44e543=await _0x178fb2['KeFCA'](convertImageBlockToBase64,_0x2e8e40);if(_0x44e543[_0x367ff9(0xb1)])_0x5e1353=!![];return _0x44e543['block'];}catch{return _0x2e8e40;}}));if(!_0x5e1353)return{'updated':![],'output':_0x4ebfc7};return{'updated':!![],'output':{..._0x4ebfc7,'content':_0x35ea16}};}function sanitizeLoneSurrogates(_0x33d588){const _0x4befb8=_0x13b5,_0x401b44={'JixvA':function(_0x2f868e,_0x25079c){return _0x2f868e<_0x25079c;},'JbAPW':function(_0x4469f2,_0x15ba1a){return _0x4469f2>=_0x15ba1a;},'yPhjl':function(_0x2903d1,_0x8c42b1){return _0x2903d1+_0x8c42b1;},'yShta':function(_0x71d9ca,_0x78e906){return _0x71d9ca>=_0x78e906;},'yKILY':function(_0x857ee1,_0x45602f){return _0x857ee1+_0x45602f;},'dYcaS':function(_0x590e43,_0x11b158){return _0x590e43<=_0x11b158;}};let _0x2fd393=![],_0x2b2291='';for(let _0x4ff60e=0x0;_0x401b44['JixvA'](_0x4ff60e,_0x33d588['length']);_0x4ff60e+=0x1){const _0x1d93e3=_0x33d588['charCodeAt'](_0x4ff60e);if(_0x401b44[_0x4befb8(0xa8)](_0x1d93e3,0xd800)&&_0x1d93e3<=0xdbff){const _0x1d1ed2=_0x33d588[_0x4befb8(0x9e)](_0x401b44[_0x4befb8(0x96)](_0x4ff60e,0x1));if(_0x401b44[_0x4befb8(0x9c)](_0x1d1ed2,0xdc00)&&_0x1d1ed2<=0xdfff){_0x2b2291+=_0x401b44[_0x4befb8(0x96)](_0x33d588[_0x4ff60e],_0x33d588[_0x401b44['yKILY'](_0x4ff60e,0x1)]),_0x4ff60e+=0x1;continue;}_0x2fd393=!![],_0x2b2291+='�';continue;}if(_0x401b44[_0x4befb8(0xa8)](_0x1d93e3,0xdc00)&&_0x401b44[_0x4befb8(0xa4)](_0x1d93e3,0xdfff)){_0x2fd393=!![],_0x2b2291+='�';continue;}_0x2b2291+=_0x33d588[_0x4ff60e];}return _0x2fd393?{'updated':_0x2fd393,'value':_0x2b2291}:{'updated':_0x2fd393,'value':_0x33d588};}function _0x423d(){const _0x43ac2e=['entries','status','get','headers','dYcaS','Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','image/png','split','JbAPW','LtYqt','1625904koCTQJ','image/webp','fromEntries','CUrHZ','all','AfyAB','exec','updated','mediaType','isArray','png','auRza','3046284rPcJeK','from','PostToolUse','content','IXZpK','\x20bytes)','map','Image\x20exceeds\x20size\x20limit\x20(','EIYEt','1096891dujfml','oCOzV','192DqVAGC','Qzytp','bwUHJ','pevWk','image','918514ThEJiz','UBpOm','9fGlOMN','value','MQhFt','9306488TrOYmx','mimeType','image/jpeg','base64','type','includes','7184766KifZmQ','1115HUrjZA','yPhjl','timeout','toLowerCase','toString','cfOMQ','startsWith','yShta','jpg','charCodeAt','jpeg'];_0x423d=function(){return _0x43ac2e;};return _0x423d();}function sanitizeLoneSurrogatesDeep(_0x3cfd6e){const _0x2ee205=_0x13b5,_0x1fbecc={'lMBas':function(_0x5a0337,_0x4b9848){return _0x5a0337(_0x4b9848);},'zikSP':function(_0x4a5ded,_0x4081fd){return _0x4a5ded===_0x4081fd;},'ElJFe':'string'};if(_0x1fbecc['zikSP'](typeof _0x3cfd6e,_0x1fbecc['ElJFe']))return sanitizeLoneSurrogates(_0x3cfd6e);if(Array[_0x2ee205(0xb3)](_0x3cfd6e)){let _0x244ffa=![];const _0xa07e8b=_0x3cfd6e['map'](_0x54d810=>{const _0x3623e7=_0x2ee205,_0x50c703=sanitizeLoneSurrogatesDeep(_0x54d810);return _0x50c703[_0x3623e7(0xb1)]&&(_0x244ffa=!![]),_0x50c703[_0x3623e7(0xc9)];});return _0x244ffa?{'updated':!![],'value':_0xa07e8b}:{'updated':![],'value':_0x3cfd6e};}if(!isRecord(_0x3cfd6e))return{'updated':![],'value':_0x3cfd6e};let _0x283658=![];const _0x3c3111=Object[_0x2ee205(0xa0)](_0x3cfd6e)['map'](([_0x66527,_0x5642c7])=>{const _0x46dee9=_0x2ee205,_0x2fed3c=_0x1fbecc['lMBas'](sanitizeLoneSurrogatesDeep,_0x5642c7);return _0x2fed3c[_0x46dee9(0xb1)]&&(_0x283658=!![]),[_0x66527,_0x2fed3c['value']];});return _0x283658?{'updated':!![],'value':Object[_0x2ee205(0xac)](_0x3c3111)}:{'updated':![],'value':_0x3cfd6e};}export function createMcpImageBase64Hook(){const _0x51d6ed={'Qzytp':function(_0x48b35b,_0x5d0d38){return _0x48b35b!==_0x5d0d38;},'UZjKk':'PostToolUse'};return async _0x238724=>{const _0x26c547=_0x13b5;if(_0x51d6ed[_0x26c547(0xc2)](_0x238724['hook_event_name'],_0x26c547(0xb8)))return{};const _0x34b2dd=_0x238724,_0x5dfd7f=await convertToolOutputImagesToBase64(_0x34b2dd['tool_response']),_0x12b2de=sanitizeLoneSurrogatesDeep(_0x5dfd7f['output']),_0x194fc2=_0x5dfd7f['updated']||_0x12b2de['updated'];if(!_0x194fc2)return{};return{'hookSpecificOutput':{'hookEventName':_0x51d6ed['UZjKk'],'updatedMCPToolOutput':_0x12b2de[_0x26c547(0xc9)]}};};}
@@ -1 +1 @@
1
- const _0x315fbd=_0x8e55;(function(_0xd6b9cd,_0xc6592c){const _0x3e868f=_0x8e55,_0x1c8082=_0xd6b9cd();while(!![]){try{const _0x3932ca=-parseInt(_0x3e868f(0x1fc))/0x1*(-parseInt(_0x3e868f(0x1f7))/0x2)+-parseInt(_0x3e868f(0x1f5))/0x3*(-parseInt(_0x3e868f(0x1f3))/0x4)+-parseInt(_0x3e868f(0x1fe))/0x5*(parseInt(_0x3e868f(0x1fd))/0x6)+parseInt(_0x3e868f(0x1f4))/0x7+parseInt(_0x3e868f(0x1fa))/0x8+parseInt(_0x3e868f(0x1f6))/0x9+-parseInt(_0x3e868f(0x1f8))/0xa;if(_0x3932ca===_0xc6592c)break;else _0x1c8082['push'](_0x1c8082['shift']());}catch(_0x3a13b8){_0x1c8082['push'](_0x1c8082['shift']());}}}(_0x7e40,0x428d3));const VERIFY_MODEL_ALIASES={'opus':_0x315fbd(0x1f9),'sonnet':_0x315fbd(0x1fb)};function _0x7e40(){const _0x5b5eca=['claude-sonnet-4-6','710qCZJFz','19566DsSgnt','710ApkhjO','GxlgB','18804PJZahs','1185366CwHIHj','120vqmoog','2916036pmaNVe','1134XMcyZj','5865330OUlUYH','claude-opus-4-6','1905904QgypvI'];_0x7e40=function(){return _0x5b5eca;};return _0x7e40();}export const DEFAULT_VERIFY_MODEL='claude-sonnet-4-6';function _0x8e55(_0x2ec986,_0x3409f7){_0x2ec986=_0x2ec986-0x1f3;const _0x7e4016=_0x7e40();let _0x8e558e=_0x7e4016[_0x2ec986];return _0x8e558e;}export function resolveVerifyModel(_0x51ccb1){const _0x4f6eda=_0x315fbd,_0x31dbfc={'GxlgB':function(_0x4cba20,_0x28f015){return _0x4cba20??_0x28f015;}};if(!_0x51ccb1)return undefined;const _0x344d3d=_0x51ccb1['trim']();if(!_0x344d3d)return undefined;const _0x33cacb=VERIFY_MODEL_ALIASES[_0x344d3d['toLowerCase']()];return _0x31dbfc[_0x4f6eda(0x1ff)](_0x33cacb,_0x344d3d);}
1
+ const _0x1c796b=_0x9bc8;(function(_0x332e8a,_0x13b5cb){const _0x484501=_0x9bc8,_0x43c4b4=_0x332e8a();while(!![]){try{const _0x297316=parseInt(_0x484501(0x18e))/0x1*(parseInt(_0x484501(0x183))/0x2)+-parseInt(_0x484501(0x18c))/0x3+parseInt(_0x484501(0x191))/0x4*(-parseInt(_0x484501(0x186))/0x5)+parseInt(_0x484501(0x185))/0x6*(-parseInt(_0x484501(0x184))/0x7)+parseInt(_0x484501(0x187))/0x8*(-parseInt(_0x484501(0x18a))/0x9)+parseInt(_0x484501(0x18d))/0xa*(-parseInt(_0x484501(0x189))/0xb)+parseInt(_0x484501(0x188))/0xc*(parseInt(_0x484501(0x192))/0xd);if(_0x297316===_0x13b5cb)break;else _0x43c4b4['push'](_0x43c4b4['shift']());}catch(_0x4a8bdf){_0x43c4b4['push'](_0x43c4b4['shift']());}}}(_0x1f31,0xa145f));function _0x9bc8(_0x3306a2,_0x4b4e94){_0x3306a2=_0x3306a2-0x183;const _0x1f3121=_0x1f31();let _0x9bc832=_0x1f3121[_0x3306a2];return _0x9bc832;}const VERIFY_MODEL_ALIASES={'opus':_0x1c796b(0x18f),'sonnet':_0x1c796b(0x193)};export const DEFAULT_VERIFY_MODEL=_0x1c796b(0x193);function _0x1f31(){const _0x322ce8=['164904ludqoo','2221846cbiEoQ','1413idJKTw','toLowerCase','3656007MgPTqd','60kclhvA','18QOLCfa','claude-opus-4-6','trim','9708QDfSBo','4784JJwjCz','claude-sonnet-4-6','3044XPoUAc','679BmNEwG','38382TyYZaU','140ZlnOgj','66488PwIoai'];_0x1f31=function(){return _0x322ce8;};return _0x1f31();}export function resolveVerifyModel(_0x3b4af5){const _0x598a79=_0x1c796b;if(!_0x3b4af5)return undefined;const _0x51b6c5=_0x3b4af5[_0x598a79(0x190)]();if(!_0x51b6c5)return undefined;const _0x3b6d76=VERIFY_MODEL_ALIASES[_0x51b6c5[_0x598a79(0x18b)]()];return _0x3b6d76??_0x51b6c5;}
@@ -1 +1 @@
1
- (function(_0xf0dafb,_0x241aa1){var _0x175989=_0x4a57,_0x1f9444=_0xf0dafb();while(!![]){try{var _0x484715=parseInt(_0x175989(0xc9))/0x1*(-parseInt(_0x175989(0xcd))/0x2)+parseInt(_0x175989(0xc5))/0x3+parseInt(_0x175989(0xcb))/0x4*(-parseInt(_0x175989(0xc6))/0x5)+parseInt(_0x175989(0xd1))/0x6+parseInt(_0x175989(0xce))/0x7*(parseInt(_0x175989(0xcc))/0x8)+parseInt(_0x175989(0xc8))/0x9*(-parseInt(_0x175989(0xd2))/0xa)+parseInt(_0x175989(0xcf))/0xb*(parseInt(_0x175989(0xd5))/0xc);if(_0x484715===_0x241aa1)break;else _0x1f9444['push'](_0x1f9444['shift']());}catch(_0x2f7843){_0x1f9444['push'](_0x1f9444['shift']());}}}(_0xdf8d,0xa45e7));function _0xdf8d(){var _0x333280=['742662FuniWE','40dukGnG','env','4KiYnbN','7179688IilMDz','51826vZFzdY','7LNRvOY','22jLVWKr','UsDkT','2778990eieIJi','20AOpIJy','TbHqF','MVxoC','467076TneGxf','opencode','3028992jcKoUz','2866625jhdQqt','OPENCODE_CONFIG_DIR'];_0xdf8d=function(){return _0x333280;};return _0xdf8d();}import{homedir}from'os';import{join}from'path';import{getProjectRoot}from'./claudeConfig.js';export function getOpencodeConfigDir(_0x46172a){var _0x20dcf2=_0x4a57,_0xf0b307={'UsDkT':'user','DzmqA':function(_0x54a606,_0x136c55,_0x124d37){return _0x54a606(_0x136c55,_0x124d37);},'jkFcA':_0x20dcf2(0xc4),'TbHqF':function(_0x2e94ca){return _0x2e94ca();},'WvPvi':'.config','UGeGt':'.opencode'};if(process['env'][_0x20dcf2(0xc7)])return process['env'][_0x20dcf2(0xc7)];if(_0x46172a===_0xf0b307[_0x20dcf2(0xd0)]){if(process['env']['XDG_CONFIG_HOME'])return _0xf0b307['DzmqA'](join,process[_0x20dcf2(0xca)]['XDG_CONFIG_HOME'],_0xf0b307['jkFcA']);return join(_0xf0b307[_0x20dcf2(0xd3)](homedir),_0xf0b307['WvPvi'],'opencode');}return join(getProjectRoot(),_0xf0b307['UGeGt']);}function _0x4a57(_0x1364f9,_0x5562b1){_0x1364f9=_0x1364f9-0xc4;var _0xdf8d25=_0xdf8d();var _0x4a57fb=_0xdf8d25[_0x1364f9];return _0x4a57fb;}export function getOpencodeSkillsDir(_0xcb3d93){var _0x23a10e=_0x4a57,_0x58f09b={'MVxoC':function(_0x283625,_0x19014a,_0x2bf5da){return _0x283625(_0x19014a,_0x2bf5da);}};return _0x58f09b[_0x23a10e(0xd4)](join,getOpencodeConfigDir(_0xcb3d93),'skills');}
1
+ (function(_0x470f2a,_0x5b2384){var _0x2f69d3=_0x38d9,_0x4d8120=_0x470f2a();while(!![]){try{var _0x2c31f5=-parseInt(_0x2f69d3(0x125))/0x1+-parseInt(_0x2f69d3(0x11e))/0x2*(parseInt(_0x2f69d3(0x129))/0x3)+parseInt(_0x2f69d3(0x12b))/0x4+-parseInt(_0x2f69d3(0x121))/0x5+-parseInt(_0x2f69d3(0x123))/0x6+-parseInt(_0x2f69d3(0x12a))/0x7+-parseInt(_0x2f69d3(0x12c))/0x8*(-parseInt(_0x2f69d3(0x12e))/0x9);if(_0x2c31f5===_0x5b2384)break;else _0x4d8120['push'](_0x4d8120['shift']());}catch(_0x358a50){_0x4d8120['push'](_0x4d8120['shift']());}}}(_0x48e5,0xa45c5));import{homedir}from'os';import{join}from'path';function _0x48e5(){var _0x2f19e6=['7821086LqlHaG','3054076JTlcCn','125848eJCuEZ','env','1818HsBjBU','1218850AQtxns','.opencode','user','790430lFlvKj','XDG_CONFIG_HOME','3951912gKALtc','OFguf','115074yJJVvF','TKGfp','.config','opencode','6eIXjGY'];_0x48e5=function(){return _0x2f19e6;};return _0x48e5();}function _0x38d9(_0x3c0b57,_0x225093){_0x3c0b57=_0x3c0b57-0x11e;var _0x48e531=_0x48e5();var _0x38d9a7=_0x48e531[_0x3c0b57];return _0x38d9a7;}import{getProjectRoot}from'./claudeConfig.js';export function getOpencodeConfigDir(_0x383943){var _0x3d85ce=_0x38d9,_0x4ae1e5={'CHNSX':function(_0x31b71d,_0x60e830,_0x4458ca){return _0x31b71d(_0x60e830,_0x4458ca);},'TKGfp':_0x3d85ce(0x128),'SFlzN':_0x3d85ce(0x127),'OFguf':function(_0x417d26){return _0x417d26();},'RnAFD':_0x3d85ce(0x11f)};if(process[_0x3d85ce(0x12d)]['OPENCODE_CONFIG_DIR'])return process['env']['OPENCODE_CONFIG_DIR'];if(_0x383943===_0x3d85ce(0x120)){if(process[_0x3d85ce(0x12d)]['XDG_CONFIG_HOME'])return _0x4ae1e5['CHNSX'](join,process[_0x3d85ce(0x12d)][_0x3d85ce(0x122)],_0x4ae1e5['TKGfp']);return join(homedir(),_0x4ae1e5['SFlzN'],_0x4ae1e5[_0x3d85ce(0x126)]);}return join(_0x4ae1e5[_0x3d85ce(0x124)](getProjectRoot),_0x4ae1e5['RnAFD']);}export function getOpencodeSkillsDir(_0x81156f){var _0x5d13d2={'vxRsO':function(_0x4378b4,_0x10ae40,_0x206675){return _0x4378b4(_0x10ae40,_0x206675);},'TEOLx':function(_0x45c5f0,_0x35c025){return _0x45c5f0(_0x35c025);},'cNsVM':'skills'};return _0x5d13d2['vxRsO'](join,_0x5d13d2['TEOLx'](getOpencodeConfigDir,_0x81156f),_0x5d13d2['cNsVM']);}