@ranger-testing/ranger-cli 2.5.4-alpha.78800d3-3 → 2.5.4-alpha.a98f848-6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/mcpBootstrap.js +1 -1
  25. package/build/commands/migrateProfile.js +1 -1
  26. package/build/commands/setup/claude.js +1 -1
  27. package/build/commands/setup/opencode.js +1 -1
  28. package/build/commands/setupCi.js +1 -1
  29. package/build/commands/skillup.js +1 -1
  30. package/build/commands/start.js +1 -1
  31. package/build/commands/status.js +1 -1
  32. package/build/commands/update.js +1 -1
  33. package/build/commands/updateEnv.js +1 -1
  34. package/build/commands/useEnv.js +1 -1
  35. package/build/commands/utils/activeProfile.js +1 -1
  36. package/build/commands/utils/agentEnv.js +1 -1
  37. package/build/commands/utils/browserSessionsApi.js +1 -1
  38. package/build/commands/utils/claudeConfig.js +1 -1
  39. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  40. package/build/commands/utils/claudePlugin.js +1 -1
  41. package/build/commands/utils/cloudProfile.js +1 -1
  42. package/build/commands/utils/cloudProfileSession.js +1 -1
  43. package/build/commands/utils/crypto.js +1 -1
  44. package/build/commands/utils/desirePathLog.js +1 -1
  45. package/build/commands/utils/deviceAuth.js +1 -1
  46. package/build/commands/utils/environment.js +1 -1
  47. package/build/commands/utils/featureApi.js +1 -1
  48. package/build/commands/utils/fixWebmDuration.js +1 -1
  49. package/build/commands/utils/gitTracked.js +1 -1
  50. package/build/commands/utils/keychain.js +1 -1
  51. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  52. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  53. package/build/commands/utils/mcpImageBase64.js +1 -1
  54. package/build/commands/utils/model.js +1 -1
  55. package/build/commands/utils/opencodeConfig.js +1 -1
  56. package/build/commands/utils/playwrightCli.js +1 -1
  57. package/build/commands/utils/profileMessages.js +1 -1
  58. package/build/commands/utils/profileSetupBanner.js +1 -1
  59. package/build/commands/utils/projectsConfig.js +1 -1
  60. package/build/commands/utils/rangerConfig.js +1 -1
  61. package/build/commands/utils/rangerRoot.js +1 -1
  62. package/build/commands/utils/resolveProfileContext.js +1 -1
  63. package/build/commands/utils/resolveProfileUrl.js +1 -1
  64. package/build/commands/utils/retry.js +1 -1
  65. package/build/commands/utils/sessionCache.js +1 -1
  66. package/build/commands/utils/settings.js +1 -1
  67. package/build/commands/utils/skillContent.js +1 -1
  68. package/build/commands/utils/skills.js +1 -1
  69. package/build/commands/utils/stitchWebmFiles.js +1 -1
  70. package/build/commands/utils/telemetry.js +1 -1
  71. package/build/commands/utils/tokenRefresh.js +1 -1
  72. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  73. package/build/commands/utils/userApi.js +1 -1
  74. package/build/commands/utils/version.js +1 -1
  75. package/build/commands/verifyFeature.js +1 -1
  76. package/build/commands/verifyFeatureCli.js +1 -1
  77. package/build/skills/ranger/SKILL.md +18 -4
  78. package/build/skills/ranger/create.md +6 -0
  79. package/build/skills/ranger/verify.md +23 -3
  80. package/package.json +1 -1
@@ -1 +1 @@
1
- function _0x5822(_0x214fef,_0xb9175f){_0x214fef=_0x214fef-0x1bb;const _0x145c0e=_0x145c();let _0x582271=_0x145c0e[_0x214fef];return _0x582271;}(function(_0xc4d28e,_0x2d5f60){const _0x48b056=_0x5822,_0x44c56d=_0xc4d28e();while(!![]){try{const _0x39e4ef=-parseInt(_0x48b056(0x1c8))/0x1+-parseInt(_0x48b056(0x1c5))/0x2*(parseInt(_0x48b056(0x1e0))/0x3)+parseInt(_0x48b056(0x1c6))/0x4+parseInt(_0x48b056(0x1d5))/0x5*(parseInt(_0x48b056(0x1d0))/0x6)+parseInt(_0x48b056(0x205))/0x7*(parseInt(_0x48b056(0x1d4))/0x8)+parseInt(_0x48b056(0x207))/0x9*(-parseInt(_0x48b056(0x1ec))/0xa)+parseInt(_0x48b056(0x20f))/0xb*(parseInt(_0x48b056(0x1ea))/0xc);if(_0x39e4ef===_0x2d5f60)break;else _0x44c56d['push'](_0x44c56d['shift']());}catch(_0x597441){_0x44c56d['push'](_0x44c56d['shift']());}}}(_0x145c,0x265d3));import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{withRetry}from'./retry.js';export async function createFeature(_0x1ed306){const _0x226219=_0x5822,_0x586406={'GchFG':function(_0x455384){return _0x455384();},'AuXPs':_0x226219(0x1f2),'CwnXE':_0x226219(0x1fc),'tAEsD':function(_0x4afa5d,_0x4fc9be){return _0x4afa5d===_0x4fc9be;},'OmGGg':_0x226219(0x1dc)},_0x67dab6=await _0x586406['GchFG'](getToken);if(!_0x67dab6)throw new Error(_0x586406[_0x226219(0x1ed)]);const _0x5b1f7c=_0x586406['GchFG'](getApiBaseUrl),_0x2a5951=await fetch(_0x5b1f7c+_0x226219(0x1be),{'method':_0x586406[_0x226219(0x1ef)],'headers':{'Authorization':_0x226219(0x209)+_0x67dab6,'Content-Type':_0x226219(0x204)},'body':JSON['stringify'](_0x1ed306)});if(!_0x2a5951['ok']){if(_0x586406['tAEsD'](_0x2a5951[_0x226219(0x201)],0x192)){const _0x5aee35=await _0x2a5951[_0x226219(0x1ca)](),_0x1bd268=_0x5aee35['billingUrl']||_0x586406[_0x226219(0x1ee)];throw new Error((_0x5aee35['message']||'Feature\x20limit\x20exceeded')+_0x226219(0x1d9)+_0x1bd268);}const _0x488106=await _0x2a5951['text']();throw new Error(_0x226219(0x1df)+_0x488106);}return _0x2a5951['json']();}export async function listFeatures(_0x582bb0){const _0x2a7cc8=_0x5822,_0x1d21dc={'QzyIC':function(_0x356ec5){return _0x356ec5();},'QMMVx':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','NHXAi':_0x2a7cc8(0x1bb),'suzFd':_0x2a7cc8(0x1cd),'IfbGV':'includeDeleted'},_0x1202a7=await _0x1d21dc[_0x2a7cc8(0x1c2)](getToken);if(!_0x1202a7)throw new Error(_0x1d21dc[_0x2a7cc8(0x1c1)]);const _0x2ee03a=getApiBaseUrl(),_0x15abef=new URLSearchParams();if(_0x582bb0?.['gitRepoUrl'])_0x15abef['set'](_0x1d21dc[_0x2a7cc8(0x210)],_0x582bb0['gitRepoUrl']);if(_0x582bb0?.[_0x2a7cc8(0x1cd)])_0x15abef[_0x2a7cc8(0x1e9)](_0x1d21dc[_0x2a7cc8(0x1f9)],_0x582bb0['gitBranch']);if(_0x582bb0?.['limit'])_0x15abef[_0x2a7cc8(0x1e9)](_0x2a7cc8(0x1e4),_0x582bb0['limit'][_0x2a7cc8(0x1e6)]());if(_0x582bb0?.[_0x2a7cc8(0x1fb)])_0x15abef[_0x2a7cc8(0x1e9)]('offset',_0x582bb0['offset'][_0x2a7cc8(0x1e6)]());if(_0x582bb0?.['includeDeleted'])_0x15abef[_0x2a7cc8(0x1e9)](_0x1d21dc[_0x2a7cc8(0x1f8)],'true');const _0x11c434=_0x2ee03a+_0x2a7cc8(0x1be)+(_0x15abef[_0x2a7cc8(0x1e6)]()?'?'+_0x15abef['toString']():''),_0x2f7981=await fetch(_0x11c434,{'method':_0x2a7cc8(0x20c),'headers':{'Authorization':'Bearer\x20'+_0x1202a7}});if(!_0x2f7981['ok']){const _0x205b6c=await _0x2f7981['text']();throw new Error('Failed\x20to\x20list\x20feature\x20reviews:\x20'+_0x205b6c);}return _0x2f7981[_0x2a7cc8(0x1ca)]();}export async function getFeature(_0xf16c80){const _0x3ea9e6=_0x5822,_0x1a16e3={'IJZhc':function(_0x1c734d,_0x279ae4,_0x1dd0f4){return _0x1c734d(_0x279ae4,_0x1dd0f4);}},_0xbb8b46=await getToken();if(!_0xbb8b46)throw new Error(_0x3ea9e6(0x1f2));const _0x2497ed=getApiBaseUrl(),_0xd25bee=await _0x1a16e3[_0x3ea9e6(0x1cf)](fetch,_0x2497ed+_0x3ea9e6(0x1ff)+_0xf16c80,{'method':_0x3ea9e6(0x20c),'headers':{'Authorization':'Bearer\x20'+_0xbb8b46}});if(!_0xd25bee['ok']){const _0xfef4ae=await _0xd25bee['text']();throw new Error('Failed\x20to\x20get\x20feature\x20review:\x20'+_0xfef4ae);}return _0xd25bee[_0x3ea9e6(0x1ca)]();}export async function updateFeature(_0x32541a,_0x4ab603){const _0x174f16=_0x5822,_0x271357={'Bnlbt':function(_0x4a6b49){return _0x4a6b49();},'JATlW':function(_0x23da7a,_0x2f7bcb,_0x15ae6f){return _0x23da7a(_0x2f7bcb,_0x15ae6f);},'IcQsi':'PATCH'},_0x5e579a=await _0x271357[_0x174f16(0x1f1)](getToken);if(!_0x5e579a)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x27def8=getApiBaseUrl(),_0x352e32=await _0x271357[_0x174f16(0x200)](fetch,_0x27def8+_0x174f16(0x1ff)+_0x32541a,{'method':_0x271357['IcQsi'],'headers':{'Authorization':'Bearer\x20'+_0x5e579a,'Content-Type':_0x174f16(0x204)},'body':JSON['stringify'](_0x4ab603)});if(!_0x352e32['ok']){const _0x3663dc=await _0x352e32['text']();throw new Error(_0x174f16(0x1f0)+_0x3663dc);}return _0x352e32[_0x174f16(0x1ca)]();}export async function createChecklistItem(_0x214e0c,_0x36c479,_0x48e30a){const _0x2bdc67=_0x5822,_0x11a256={'hYyUl':function(_0x2ed4d9){return _0x2ed4d9();},'AfjFi':_0x2bdc67(0x1fc),'DYtuX':_0x2bdc67(0x204)},_0xcf964a=await _0x11a256[_0x2bdc67(0x1e2)](getToken);if(!_0xcf964a)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x4e51af=getApiBaseUrl(),_0x574880=await fetch(_0x4e51af+_0x2bdc67(0x1ff)+_0x214e0c+_0x2bdc67(0x1c7),{'method':_0x11a256['AfjFi'],'headers':{'Authorization':_0x2bdc67(0x209)+_0xcf964a,'Content-Type':_0x11a256[_0x2bdc67(0x1e1)]},'body':JSON['stringify']({'description':_0x36c479,'position':_0x48e30a})});if(!_0x574880['ok']){const _0x44ab03=await _0x574880[_0x2bdc67(0x1c3)]();throw new Error(_0x2bdc67(0x1d8)+_0x44ab03);}return _0x574880[_0x2bdc67(0x1ca)]();}export async function updateChecklistItem(_0x1a7e92,_0x3d3776,_0x40d8e8){const _0x4e54ae=_0x5822,_0x248624={'ADvIy':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','ghcbJ':function(_0xc3ef0,_0x376ca9,_0x2348be){return _0xc3ef0(_0x376ca9,_0x2348be);},'GHsrg':'application/json','rRBOX':_0x4e54ae(0x1cb)};return withRetry(async()=>{const _0x3f42d5=_0x4e54ae,_0x443597=await getToken();if(!_0x443597)throw new Error(_0x248624['ADvIy']);const _0x1c7949=getApiBaseUrl(),_0x2b8062=await _0x248624[_0x3f42d5(0x1db)](fetch,_0x1c7949+'/api/v1/mcp/features/'+_0x1a7e92+'/checklist/'+_0x3d3776,{'method':_0x3f42d5(0x1c0),'headers':{'Authorization':_0x3f42d5(0x209)+_0x443597,'Content-Type':_0x248624[_0x3f42d5(0x20b)]},'body':JSON['stringify'](_0x40d8e8)});if(!_0x2b8062['ok']){const _0x79b092=await _0x2b8062[_0x3f42d5(0x1c3)]();throw new Error('Failed\x20to\x20update\x20scenario:\x20'+_0x79b092);}return _0x2b8062[_0x3f42d5(0x1ca)]();},{'label':_0x248624['rRBOX']});}export async function getFeatureReport(_0x166b6d){const _0x398a8=_0x5822,_0x25f0ce={'TlAnm':function(_0x4753a2){return _0x4753a2();},'EFuQS':function(_0x28813c,_0x879c51,_0x10bbd2){return _0x28813c(_0x879c51,_0x10bbd2);},'TyHym':_0x398a8(0x20c)},_0xbc18ac=await getToken();if(!_0xbc18ac)throw new Error(_0x398a8(0x1f2));const _0x41d039=_0x25f0ce['TlAnm'](getApiBaseUrl),_0xf06a8f=await _0x25f0ce[_0x398a8(0x1e8)](fetch,_0x41d039+_0x398a8(0x1ff)+_0x166b6d+_0x398a8(0x1fa),{'method':_0x25f0ce[_0x398a8(0x1cc)],'headers':{'Authorization':'Bearer\x20'+_0xbc18ac}});if(!_0xf06a8f['ok']){const _0x137d96=await _0xf06a8f[_0x398a8(0x1c3)]();throw new Error('Failed\x20to\x20get\x20feature\x20review\x20report:\x20'+_0x137d96);}return _0xf06a8f[_0x398a8(0x1ca)]();}export async function getFeatureReportMarkdown(_0x173b89,_0x56fc94){const _0xef6b19=_0x5822,_0x3f0e39={'ajRsO':function(_0x1822d7){return _0x1822d7();},'VUAhg':function(_0x5ce1e4,_0x90eb7e){return _0x5ce1e4>_0x90eb7e;},'RJRtH':_0xef6b19(0x20d),'fxabH':'sessionId','Naalc':_0xef6b19(0x208),'kmupj':_0xef6b19(0x20c)},_0x5e9fca=await getToken();if(!_0x5e9fca)throw new Error(_0xef6b19(0x1f2));const _0x225e7d=_0x3f0e39[_0xef6b19(0x212)](getApiBaseUrl),_0x4eddcb=new URLSearchParams(),_0x370c23=_0x3f0e39[_0xef6b19(0x1dd)](_0x56fc94?.[_0xef6b19(0x20d)]?.[_0xef6b19(0x1ce)]??0x0,0x0),_0xd28e1d=Boolean(_0x56fc94?.['sessionId']);_0x370c23&&_0x56fc94?.[_0xef6b19(0x20d)]&&_0x4eddcb[_0xef6b19(0x1e9)](_0x3f0e39['RJRtH'],_0x56fc94[_0xef6b19(0x20d)][_0xef6b19(0x202)](','));_0xd28e1d&&_0x56fc94?.[_0xef6b19(0x1c9)]&&_0x4eddcb['set'](_0x3f0e39[_0xef6b19(0x1eb)],_0x56fc94['sessionId']);!_0x370c23&&!_0xd28e1d&&_0x56fc94?.['style']&&_0x4eddcb[_0xef6b19(0x1e9)](_0x3f0e39['Naalc'],_0x56fc94[_0xef6b19(0x208)]);const _0x54068c=_0x225e7d+_0xef6b19(0x1ff)+_0x173b89+_0xef6b19(0x20e),_0x5a07d2=''+_0x54068c+(_0x4eddcb['toString']()?'?'+_0x4eddcb['toString']():''),_0x540878=await fetch(_0x5a07d2,{'method':_0x3f0e39['kmupj'],'headers':{'Authorization':'Bearer\x20'+_0x5e9fca}});if(!_0x540878['ok']){const _0x25ef6b=await _0x540878['text']();throw new Error(_0xef6b19(0x1d1)+_0x25ef6b);}return _0x540878[_0xef6b19(0x1c3)]();}function _0x145c(){const _0x4db254=['7cDGHlF','Failed\x20to\x20conclude\x20session:\x20','99utfiFE','style','Bearer\x20','pShxg','GHsrg','GET','itemIds','/report/markdown','11TmwEiQ','NHXAi','/start','ajRsO','gitRepoUrl','Wzity','ymRNV','/api/v1/mcp/features','aDeyW','PATCH','QMMVx','QzyIC','text','orZdu','382tGDRJP','344964SeloOn','/checklist','250954AemKeZ','sessionId','json','updateChecklistItem','TyHym','gitBranch','length','IJZhc','6JOZUTI','Failed\x20to\x20get\x20feature\x20review\x20report\x20markdown:\x20','/sessions/','PBXFX','1982488wdIbxw','895285hePJGz','gCfqT','Failed\x20to\x20restore\x20feature\x20review:\x20','Failed\x20to\x20create\x20scenario:\x20','\x0a\x0aUpgrade\x20your\x20plan:\x20','fkQLO','ghcbJ','https://dashboard.ranger.net/billing','VUAhg','VRtDs','Failed\x20to\x20create\x20feature\x20review:\x20','3225qbUJLL','DYtuX','hYyUl','Failed\x20to\x20start\x20session:\x20','limit','krlgs','toString','DELETE','EFuQS','set','4239576gudLVf','fxabH','229990XgZptG','AuXPs','OmGGg','CwnXE','Failed\x20to\x20update\x20feature\x20review:\x20','Bnlbt','No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','Failed\x20to\x20mark\x20comments\x20as\x20addressed:\x20','mddoB','/action-items','plFGR','Failed\x20to\x20get\x20action\x20items:\x20','IfbGV','suzFd','/report','offset','POST','wFRfv','/feedback','/api/v1/mcp/features/','JATlW','status','join','/checklist-items/','application/json'];_0x145c=function(){return _0x4db254;};return _0x145c();}export async function listFeatureSessions(_0x5d2294){const _0x39397c=_0x5822,_0x52193e={'gCfqT':function(_0x1e6c0a){return _0x1e6c0a();},'jYKmb':function(_0x3f4801,_0x3e8c44,_0x39614b){return _0x3f4801(_0x3e8c44,_0x39614b);},'wMeTk':'GET'},_0x1a3c2a=await getToken();if(!_0x1a3c2a)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x39c70b=_0x52193e[_0x39397c(0x1d6)](getApiBaseUrl),_0x5aaa12=await _0x52193e['jYKmb'](fetch,_0x39c70b+'/api/v1/mcp/features/'+_0x5d2294+'/sessions',{'method':_0x52193e['wMeTk'],'headers':{'Authorization':_0x39397c(0x209)+_0x1a3c2a}});if(!_0x5aaa12['ok']){const _0x422a59=await _0x5aaa12[_0x39397c(0x1c3)]();throw new Error('Failed\x20to\x20list\x20sessions:\x20'+_0x422a59);}return _0x5aaa12[_0x39397c(0x1ca)]();}export async function startSession(_0x438e79,_0x339b18){const _0x511996=_0x5822,_0x5571da=await getToken();if(!_0x5571da)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0xf59f9b=getApiBaseUrl(),_0x11c28c=await fetch(_0xf59f9b+_0x511996(0x1ff)+_0x438e79+_0x511996(0x1d2)+_0x339b18+_0x511996(0x211),{'method':'POST','headers':{'Authorization':'Bearer\x20'+_0x5571da}});if(!_0x11c28c['ok']){const _0x5a29e9=await _0x11c28c['text']();throw new Error(_0x511996(0x1e3)+_0x5a29e9);}return _0x11c28c[_0x511996(0x1ca)]();}export async function concludeSession(_0x566f7a,_0x1e4f4a){const _0x516303=_0x5822,_0x305674={'pShxg':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','SDmTf':function(_0x17d58f){return _0x17d58f();},'Wzity':function(_0x427ad2,_0x46e54a,_0x56d3c8){return _0x427ad2(_0x46e54a,_0x56d3c8);},'krlgs':'POST'},_0x18b34e=await getToken();if(!_0x18b34e)throw new Error(_0x305674[_0x516303(0x20a)]);const _0x357406=_0x305674['SDmTf'](getApiBaseUrl),_0x48fbf2=await _0x305674[_0x516303(0x1bc)](fetch,_0x357406+_0x516303(0x1ff)+_0x566f7a+_0x516303(0x1d2)+_0x1e4f4a+'/conclude',{'method':_0x305674[_0x516303(0x1e5)],'headers':{'Authorization':'Bearer\x20'+_0x18b34e}});if(!_0x48fbf2['ok']){const _0x347c81=await _0x48fbf2['text']();throw new Error(_0x516303(0x206)+_0x347c81);}return _0x48fbf2['json']();}export async function getActionItems(_0x458f0a){const _0x27998b=_0x5822,_0x1544df={'aDeyW':function(_0x3f58c8){return _0x3f58c8();},'mddoB':_0x27998b(0x1f2),'PfeRS':function(_0x1d9fc7,_0x22d210,_0x49afdc){return _0x1d9fc7(_0x22d210,_0x49afdc);}},_0x332fe1=await _0x1544df[_0x27998b(0x1bf)](getToken);if(!_0x332fe1)throw new Error(_0x1544df[_0x27998b(0x1f4)]);const _0x317875=getApiBaseUrl(),_0x214ced=await _0x1544df['PfeRS'](fetch,_0x317875+'/api/v1/mcp/features/'+_0x458f0a+_0x27998b(0x1f5),{'method':_0x27998b(0x20c),'headers':{'Authorization':'Bearer\x20'+_0x332fe1}});if(!_0x214ced['ok']){const _0x1d72bd=await _0x214ced['text']();throw new Error(_0x27998b(0x1f7)+_0x1d72bd);}return _0x214ced['json']();}export async function getItemFeedback(_0x2f65ed,_0x4df11d){const _0xea67bd=_0x5822,_0x3ab88a={'ymRNV':function(_0x4b032a){return _0x4b032a();},'vJFif':_0xea67bd(0x1f2),'VRtDs':_0xea67bd(0x20c)},_0x40bc47=await _0x3ab88a[_0xea67bd(0x1bd)](getToken);if(!_0x40bc47)throw new Error(_0x3ab88a['vJFif']);const _0x280101=_0x3ab88a['ymRNV'](getApiBaseUrl),_0x458109=await fetch(_0x280101+_0xea67bd(0x1ff)+_0x2f65ed+_0xea67bd(0x203)+_0x4df11d+_0xea67bd(0x1fe),{'method':_0x3ab88a[_0xea67bd(0x1de)],'headers':{'Authorization':'Bearer\x20'+_0x40bc47}});if(!_0x458109['ok']){const _0xd6288a=await _0x458109['text']();throw new Error('Failed\x20to\x20get\x20item\x20feedback:\x20'+_0xd6288a);}return _0x458109[_0xea67bd(0x1ca)]();}export async function markCommentsAddressed(_0x21b749,_0x1fde36,_0x131587){const _0x21e3a2=_0x5822,_0x14c121={'plFGR':function(_0x3e34c2){return _0x3e34c2();},'orZdu':_0x21e3a2(0x1f2),'VZjWA':function(_0x25a0cc){return _0x25a0cc();},'hJaSB':function(_0xdfd0e0,_0x3f12b4,_0x2952d2){return _0xdfd0e0(_0x3f12b4,_0x2952d2);},'YWKqx':_0x21e3a2(0x1fc),'wFRfv':'application/json'},_0x131fd3=await _0x14c121[_0x21e3a2(0x1f6)](getToken);if(!_0x131fd3)throw new Error(_0x14c121[_0x21e3a2(0x1c4)]);const _0x2b4ef7=_0x14c121['VZjWA'](getApiBaseUrl),_0x28b2fb=await _0x14c121['hJaSB'](fetch,_0x2b4ef7+'/api/v1/mcp/features/'+_0x21b749+'/comments/address',{'method':_0x14c121['YWKqx'],'headers':{'Authorization':_0x21e3a2(0x209)+_0x131fd3,'Content-Type':_0x14c121[_0x21e3a2(0x1fd)]},'body':JSON['stringify']({'checklistItemId':_0x1fde36,'commentIds':_0x131587})});if(!_0x28b2fb['ok']){const _0x3655d2=await _0x28b2fb['text']();throw new Error(_0x21e3a2(0x1f3)+_0x3655d2);}}export async function softDeleteFeature(_0x22493d){const _0xe3fc29=_0x5822,_0x16cd5c={'DJZzD':function(_0x2f8695){return _0x2f8695();},'fkQLO':function(_0x35c33a,_0x2382c2,_0x19d9ce){return _0x35c33a(_0x2382c2,_0x19d9ce);}},_0x35846e=await _0x16cd5c['DJZzD'](getToken);if(!_0x35846e)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x4a873f=getApiBaseUrl(),_0x39020b=await _0x16cd5c[_0xe3fc29(0x1da)](fetch,_0x4a873f+'/api/v1/mcp/features/'+_0x22493d,{'method':_0xe3fc29(0x1e7),'headers':{'Authorization':'Bearer\x20'+_0x35846e}});if(!_0x39020b['ok']){const _0xba5f01=await _0x39020b['text']();throw new Error('Failed\x20to\x20delete\x20feature\x20review:\x20'+_0xba5f01);}}export async function restoreFeature(_0x10311f){const _0x5d4b0e=_0x5822,_0x385604={'LohSk':function(_0x17b235){return _0x17b235();},'PBXFX':_0x5d4b0e(0x1f2),'dxNjk':'POST'},_0x988912=await _0x385604['LohSk'](getToken);if(!_0x988912)throw new Error(_0x385604[_0x5d4b0e(0x1d3)]);const _0x167fe4=getApiBaseUrl(),_0x1b4bbe=await fetch(_0x167fe4+'/api/v1/mcp/features/'+_0x10311f+'/restore',{'method':_0x385604['dxNjk'],'headers':{'Authorization':_0x5d4b0e(0x209)+_0x988912}});if(!_0x1b4bbe['ok']){const _0x247aac=await _0x1b4bbe[_0x5d4b0e(0x1c3)]();throw new Error(_0x5d4b0e(0x1d7)+_0x247aac);}}
1
+ (function(_0x36bc3e,_0x601930){const _0x5dc0f4=_0x5cae,_0x447815=_0x36bc3e();while(!![]){try{const _0x47f8c7=parseInt(_0x5dc0f4(0xa9))/0x1*(-parseInt(_0x5dc0f4(0xa0))/0x2)+-parseInt(_0x5dc0f4(0x8e))/0x3+parseInt(_0x5dc0f4(0x86))/0x4+-parseInt(_0x5dc0f4(0x84))/0x5*(-parseInt(_0x5dc0f4(0x7e))/0x6)+parseInt(_0x5dc0f4(0x7f))/0x7+parseInt(_0x5dc0f4(0x72))/0x8*(parseInt(_0x5dc0f4(0xac))/0x9)+parseInt(_0x5dc0f4(0xb9))/0xa*(-parseInt(_0x5dc0f4(0x9d))/0xb);if(_0x47f8c7===_0x601930)break;else _0x447815['push'](_0x447815['shift']());}catch(_0x141d53){_0x447815['push'](_0x447815['shift']());}}}(_0x4e60,0xc24ae));import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{withRetry}from'./retry.js';export async function createFeature(_0x18c3cb){const _0x4e2470=_0x5cae,_0x10522d={'AYPdh':_0x4e2470(0x82),'TAGdb':function(_0x217c1f){return _0x217c1f();},'DbksO':function(_0x3c647c,_0x476b0d,_0x507f18){return _0x3c647c(_0x476b0d,_0x507f18);},'irmwk':_0x4e2470(0x92)},_0x42edd2=await getToken();if(!_0x42edd2)throw new Error(_0x10522d['AYPdh']);const _0x3def5b=_0x10522d['TAGdb'](getApiBaseUrl),_0x4da9da=await _0x10522d[_0x4e2470(0xa4)](fetch,_0x3def5b+_0x4e2470(0xaa),{'method':_0x10522d['irmwk'],'headers':{'Authorization':'Bearer\x20'+_0x42edd2,'Content-Type':'application/json'},'body':JSON['stringify'](_0x18c3cb)});if(!_0x4da9da['ok']){if(_0x4da9da['status']===0x192){const _0x395a35=await _0x4da9da[_0x4e2470(0x96)](),_0xb4911b=_0x395a35[_0x4e2470(0x71)]||'https://dashboard.ranger.net/billing';throw new Error((_0x395a35['message']||'Feature\x20limit\x20exceeded')+_0x4e2470(0xa5)+_0xb4911b);}const _0xa6fbb=await _0x4da9da['text']();throw new Error('Failed\x20to\x20create\x20feature\x20review:\x20'+_0xa6fbb);}return _0x4da9da[_0x4e2470(0x96)]();}export async function listFeatures(_0x591054){const _0x2c597c=_0x5cae,_0x304de0={'Uxcsb':_0x2c597c(0x82),'rnweV':_0x2c597c(0x7c),'IyTkD':_0x2c597c(0x7b),'cbKka':'GET'},_0x4d442e=await getToken();if(!_0x4d442e)throw new Error(_0x304de0[_0x2c597c(0x95)]);const _0x1e578d=getApiBaseUrl(),_0x3e2d0f=new URLSearchParams();if(_0x591054?.[_0x2c597c(0x81)])_0x3e2d0f['set'](_0x2c597c(0x81),_0x591054['gitRepoUrl']);if(_0x591054?.['gitBranch'])_0x3e2d0f[_0x2c597c(0x99)](_0x304de0[_0x2c597c(0xb1)],_0x591054['gitBranch']);if(_0x591054?.['limit'])_0x3e2d0f[_0x2c597c(0x99)](_0x304de0[_0x2c597c(0x75)],_0x591054[_0x2c597c(0x7b)]['toString']());if(_0x591054?.[_0x2c597c(0xa8)])_0x3e2d0f['set']('offset',_0x591054['offset'][_0x2c597c(0xa7)]());if(_0x591054?.['includeDeleted'])_0x3e2d0f['set']('includeDeleted','true');const _0xa7b966=_0x1e578d+'/api/v1/mcp/features'+(_0x3e2d0f[_0x2c597c(0xa7)]()?'?'+_0x3e2d0f['toString']():''),_0x30a01a=await fetch(_0xa7b966,{'method':_0x304de0['cbKka'],'headers':{'Authorization':'Bearer\x20'+_0x4d442e}});if(!_0x30a01a['ok']){const _0x4a88cd=await _0x30a01a[_0x2c597c(0x89)]();throw new Error('Failed\x20to\x20list\x20feature\x20reviews:\x20'+_0x4a88cd);}return _0x30a01a['json']();}export async function getFeature(_0x4a73ec){const _0x5ab0a6=_0x5cae,_0x5c4f6f={'rvTXE':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]'},_0x110fd4=await getToken();if(!_0x110fd4)throw new Error(_0x5c4f6f['rvTXE']);const _0x4605a8=getApiBaseUrl(),_0x14c914=await fetch(_0x4605a8+_0x5ab0a6(0x91)+_0x4a73ec,{'method':'GET','headers':{'Authorization':_0x5ab0a6(0x77)+_0x110fd4}});if(!_0x14c914['ok']){const _0x38efc4=await _0x14c914[_0x5ab0a6(0x89)]();throw new Error(_0x5ab0a6(0xa2)+_0x38efc4);}return _0x14c914['json']();}export async function updateFeature(_0x100136,_0x53b097){const _0x39dacd=_0x5cae,_0x177b99={'FxPJG':_0x39dacd(0x82),'yVwtS':function(_0x3714fe,_0x713c61,_0x449cc5){return _0x3714fe(_0x713c61,_0x449cc5);}},_0x5e8cab=await getToken();if(!_0x5e8cab)throw new Error(_0x177b99[_0x39dacd(0x74)]);const _0xfbe398=getApiBaseUrl(),_0x19f6f6=await _0x177b99[_0x39dacd(0x6d)](fetch,_0xfbe398+_0x39dacd(0x91)+_0x100136,{'method':_0x39dacd(0x8a),'headers':{'Authorization':'Bearer\x20'+_0x5e8cab,'Content-Type':'application/json'},'body':JSON[_0x39dacd(0x98)](_0x53b097)});if(!_0x19f6f6['ok']){const _0x1532a1=await _0x19f6f6[_0x39dacd(0x89)]();throw new Error(_0x39dacd(0x76)+_0x1532a1);}return _0x19f6f6[_0x39dacd(0x96)]();}function _0x4e60(){const _0x451c88=['gAAIG','DbksO','\x0a\x0aUpgrade\x20your\x20plan:\x20','hQupy','toString','offset','167JRSkBQ','/api/v1/mcp/features','Failed\x20to\x20get\x20feature\x20review\x20report\x20markdown:\x20','3897WmQwcE','nXbcG','GORkW','Failed\x20to\x20start\x20session:\x20','updateChecklistItem','rnweV','CKxAB','vwCzZ','sessionId','MPMtI','XgKSO','BUkSE','iNWnq','29439010TFPuzs','sNMzL','yVwtS','style','LgAax','/report/markdown','billingUrl','22912xVvuHB','Failed\x20to\x20mark\x20comments\x20as\x20addressed:\x20','FxPJG','IyTkD','Failed\x20to\x20update\x20feature\x20review:\x20','Bearer\x20','fQNOs','Failed\x20to\x20get\x20feature\x20review\x20report:\x20','nriQx','limit','gitBranch','Failed\x20to\x20delete\x20feature\x20review:\x20','85818tGsgKY','4853604ncWffL','bPVLB','gitRepoUrl','No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','/report','395vNPwGA','Failed\x20to\x20list\x20sessions:\x20','5811056CKcnFW','Failed\x20to\x20get\x20item\x20feedback:\x20','ilNqC','text','PATCH','jSqot','jHNuU','XzGdf','40317fjBSjR','JbCnN','hQvxz','/api/v1/mcp/features/','POST','Failed\x20to\x20update\x20scenario:\x20','bVEkQ','Uxcsb','json','XKOsJ','stringify','set','itemIds','YsQFK','Kweut','11DKNCFU','GET','length','9138JDLFpH','vWpsN','Failed\x20to\x20get\x20feature\x20review:\x20'];_0x4e60=function(){return _0x451c88;};return _0x4e60();}export async function createChecklistItem(_0x43865c,_0x5f1871,_0x555894){const _0x3eb9dd=_0x5cae,_0x10f682={'beGEw':function(_0x50936b,_0x5cabf4,_0x1c2443){return _0x50936b(_0x5cabf4,_0x1c2443);},'EQEoc':_0x3eb9dd(0x92),'vWpsN':'application/json'},_0x6334b9=await getToken();if(!_0x6334b9)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x19191f=getApiBaseUrl(),_0x55d853=await _0x10f682['beGEw'](fetch,_0x19191f+'/api/v1/mcp/features/'+_0x43865c+'/checklist',{'method':_0x10f682['EQEoc'],'headers':{'Authorization':_0x3eb9dd(0x77)+_0x6334b9,'Content-Type':_0x10f682[_0x3eb9dd(0xa1)]},'body':JSON[_0x3eb9dd(0x98)]({'description':_0x5f1871,'position':_0x555894})});if(!_0x55d853['ok']){const _0x1cc2fc=await _0x55d853['text']();throw new Error('Failed\x20to\x20create\x20scenario:\x20'+_0x1cc2fc);}return _0x55d853['json']();}export async function updateChecklistItem(_0x55c1af,_0x172610,_0x44066e){const _0x33adc6=_0x5cae,_0xb25588={'XzGdf':function(_0x4b27fb){return _0x4b27fb();},'GORkW':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','JbCnN':_0x33adc6(0x8a),'ilNqC':'application/json','mhBGt':function(_0x1d38a6,_0x5724b6,_0x4bd4a1){return _0x1d38a6(_0x5724b6,_0x4bd4a1);},'nXbcG':_0x33adc6(0xb0)};return _0xb25588['mhBGt'](withRetry,async()=>{const _0x12bfa9=_0x33adc6,_0x142fd3=await _0xb25588[_0x12bfa9(0x8d)](getToken);if(!_0x142fd3)throw new Error(_0xb25588[_0x12bfa9(0xae)]);const _0xf7ffe7=getApiBaseUrl(),_0x4c5dd6=await fetch(_0xf7ffe7+'/api/v1/mcp/features/'+_0x55c1af+'/checklist/'+_0x172610,{'method':_0xb25588[_0x12bfa9(0x8f)],'headers':{'Authorization':'Bearer\x20'+_0x142fd3,'Content-Type':_0xb25588[_0x12bfa9(0x88)]},'body':JSON['stringify'](_0x44066e)});if(!_0x4c5dd6['ok']){const _0x5ad255=await _0x4c5dd6['text']();throw new Error(_0x12bfa9(0x93)+_0x5ad255);}return _0x4c5dd6['json']();},{'label':_0xb25588[_0x33adc6(0xad)]});}export async function getFeatureReport(_0x5e466e){const _0x18a837=_0x5cae,_0x152e22={'NiEnj':_0x18a837(0x82),'mYxzZ':function(_0x2174c6,_0x40d755,_0x3df022){return _0x2174c6(_0x40d755,_0x3df022);},'bVEkQ':'GET'},_0x5b16d2=await getToken();if(!_0x5b16d2)throw new Error(_0x152e22['NiEnj']);const _0x3baaf5=getApiBaseUrl(),_0x542b2d=await _0x152e22['mYxzZ'](fetch,_0x3baaf5+'/api/v1/mcp/features/'+_0x5e466e+_0x18a837(0x83),{'method':_0x152e22[_0x18a837(0x94)],'headers':{'Authorization':_0x18a837(0x77)+_0x5b16d2}});if(!_0x542b2d['ok']){const _0x47e295=await _0x542b2d[_0x18a837(0x89)]();throw new Error(_0x18a837(0x79)+_0x47e295);}return _0x542b2d[_0x18a837(0x96)]();}export async function getFeatureReportMarkdown(_0xc51ea2,_0x51d65f){const _0x1976fc=_0x5cae,_0x591c14={'NoRTt':function(_0x3837c0,_0x2dc276){return _0x3837c0>_0x2dc276;},'nriQx':'itemIds','LIzbX':'sessionId','MYYue':function(_0xb7d38d,_0x1d8a2a){return _0xb7d38d&&_0x1d8a2a;},'YsQFK':function(_0x22cc6d,_0x5356a7,_0x4ec50a){return _0x22cc6d(_0x5356a7,_0x4ec50a);},'jHNuU':'GET'},_0x2a46c3=await getToken();if(!_0x2a46c3)throw new Error(_0x1976fc(0x82));const _0x44e954=getApiBaseUrl(),_0x2d7a23=new URLSearchParams(),_0x5144e1=_0x591c14['NoRTt'](_0x51d65f?.[_0x1976fc(0x9a)]?.[_0x1976fc(0x9f)]??0x0,0x0),_0x481d8f=Boolean(_0x51d65f?.['sessionId']);_0x5144e1&&_0x51d65f?.['itemIds']&&_0x2d7a23[_0x1976fc(0x99)](_0x591c14[_0x1976fc(0x7a)],_0x51d65f['itemIds']['join'](','));_0x481d8f&&_0x51d65f?.[_0x1976fc(0xb4)]&&_0x2d7a23['set'](_0x591c14['LIzbX'],_0x51d65f['sessionId']);_0x591c14['MYYue'](!_0x5144e1,!_0x481d8f)&&_0x51d65f?.[_0x1976fc(0x6e)]&&_0x2d7a23[_0x1976fc(0x99)](_0x1976fc(0x6e),_0x51d65f[_0x1976fc(0x6e)]);const _0x1438d4=_0x44e954+_0x1976fc(0x91)+_0xc51ea2+_0x1976fc(0x70),_0x474128=''+_0x1438d4+(_0x2d7a23[_0x1976fc(0xa7)]()?'?'+_0x2d7a23['toString']():''),_0x5d3c23=await _0x591c14[_0x1976fc(0x9b)](fetch,_0x474128,{'method':_0x591c14[_0x1976fc(0x8c)],'headers':{'Authorization':'Bearer\x20'+_0x2a46c3}});if(!_0x5d3c23['ok']){const _0xf97ed2=await _0x5d3c23[_0x1976fc(0x89)]();throw new Error(_0x1976fc(0xab)+_0xf97ed2);}return _0x5d3c23['text']();}export async function listFeatureSessions(_0x6421b0){const _0x1f3963=_0x5cae,_0x712537={'qSnph':function(_0x1945df){return _0x1945df();},'ztJsH':function(_0x139811,_0x34572e,_0x2484f){return _0x139811(_0x34572e,_0x2484f);},'MPMtI':'GET'},_0x19960a=await _0x712537['qSnph'](getToken);if(!_0x19960a)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x3a272b=getApiBaseUrl(),_0x185a16=await _0x712537['ztJsH'](fetch,_0x3a272b+_0x1f3963(0x91)+_0x6421b0+'/sessions',{'method':_0x712537[_0x1f3963(0xb5)],'headers':{'Authorization':'Bearer\x20'+_0x19960a}});if(!_0x185a16['ok']){const _0x590dd0=await _0x185a16[_0x1f3963(0x89)]();throw new Error(_0x1f3963(0x85)+_0x590dd0);}return _0x185a16[_0x1f3963(0x96)]();}export async function startSession(_0x12cb4b,_0x4f74c7){const _0x31536f=_0x5cae,_0x170bd9={'sNMzL':function(_0x2c2914){return _0x2c2914();},'gAAIG':_0x31536f(0x82),'XlWkQ':function(_0x3d9457){return _0x3d9457();}},_0x4250da=await _0x170bd9[_0x31536f(0xba)](getToken);if(!_0x4250da)throw new Error(_0x170bd9[_0x31536f(0xa3)]);const _0x28b115=_0x170bd9['XlWkQ'](getApiBaseUrl),_0x22d1cf=await fetch(_0x28b115+'/api/v1/mcp/features/'+_0x12cb4b+'/sessions/'+_0x4f74c7+'/start',{'method':_0x31536f(0x92),'headers':{'Authorization':_0x31536f(0x77)+_0x4250da}});if(!_0x22d1cf['ok']){const _0x3c8ce5=await _0x22d1cf[_0x31536f(0x89)]();throw new Error(_0x31536f(0xaf)+_0x3c8ce5);}return _0x22d1cf[_0x31536f(0x96)]();}export async function concludeSession(_0xee14a9,_0x2879a4){const _0x374b2e=_0x5cae,_0x533db8={'XgKSO':function(_0x2bf8dc){return _0x2bf8dc();},'hQupy':function(_0x195635,_0x4557ed,_0x41e9a9){return _0x195635(_0x4557ed,_0x41e9a9);},'fQNOs':'POST'},_0x53e8aa=await _0x533db8[_0x374b2e(0xb6)](getToken);if(!_0x53e8aa)throw new Error(_0x374b2e(0x82));const _0x4178c2=getApiBaseUrl(),_0x2d2f1c=await _0x533db8[_0x374b2e(0xa6)](fetch,_0x4178c2+'/api/v1/mcp/features/'+_0xee14a9+'/sessions/'+_0x2879a4+'/conclude',{'method':_0x533db8[_0x374b2e(0x78)],'headers':{'Authorization':'Bearer\x20'+_0x53e8aa}});if(!_0x2d2f1c['ok']){const _0x1dcb5b=await _0x2d2f1c['text']();throw new Error('Failed\x20to\x20conclude\x20session:\x20'+_0x1dcb5b);}return _0x2d2f1c['json']();}export async function getActionItems(_0x38a3e4){const _0x29e600=_0x5cae,_0x1d5d78={'iDNwc':function(_0x41ac9f){return _0x41ac9f();},'XKOsJ':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','ENVRv':_0x29e600(0x9e)},_0x9b09f=await _0x1d5d78['iDNwc'](getToken);if(!_0x9b09f)throw new Error(_0x1d5d78[_0x29e600(0x97)]);const _0x4a1452=_0x1d5d78['iDNwc'](getApiBaseUrl),_0x1b7c13=await fetch(_0x4a1452+_0x29e600(0x91)+_0x38a3e4+'/action-items',{'method':_0x1d5d78['ENVRv'],'headers':{'Authorization':_0x29e600(0x77)+_0x9b09f}});if(!_0x1b7c13['ok']){const _0x5bae90=await _0x1b7c13['text']();throw new Error('Failed\x20to\x20get\x20action\x20items:\x20'+_0x5bae90);}return _0x1b7c13[_0x29e600(0x96)]();}export async function getItemFeedback(_0x5d7223,_0x5803bb){const _0x14c4e5=_0x5cae,_0x48206d={'LgAax':function(_0x2724f0){return _0x2724f0();},'ZHEqs':_0x14c4e5(0x82),'Kweut':function(_0xd02787,_0xf91800,_0x277155){return _0xd02787(_0xf91800,_0x277155);},'CKxAB':'GET'},_0x3f5b65=await _0x48206d[_0x14c4e5(0x6f)](getToken);if(!_0x3f5b65)throw new Error(_0x48206d['ZHEqs']);const _0x1537a5=_0x48206d[_0x14c4e5(0x6f)](getApiBaseUrl),_0x1ed263=await _0x48206d[_0x14c4e5(0x9c)](fetch,_0x1537a5+'/api/v1/mcp/features/'+_0x5d7223+'/checklist-items/'+_0x5803bb+'/feedback',{'method':_0x48206d[_0x14c4e5(0xb2)],'headers':{'Authorization':'Bearer\x20'+_0x3f5b65}});if(!_0x1ed263['ok']){const _0x293c4c=await _0x1ed263[_0x14c4e5(0x89)]();throw new Error(_0x14c4e5(0x87)+_0x293c4c);}return _0x1ed263[_0x14c4e5(0x96)]();}export async function markCommentsAddressed(_0x5da9cc,_0x3dca0b,_0x503460){const _0x1d0157=_0x5cae,_0x46a967={'jSqot':function(_0x5158a4){return _0x5158a4();},'bPVLB':function(_0x3902ff,_0x52c3a1,_0x3207a9){return _0x3902ff(_0x52c3a1,_0x3207a9);}},_0x1539b2=await _0x46a967[_0x1d0157(0x8b)](getToken);if(!_0x1539b2)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x2cdb9b=getApiBaseUrl(),_0x886d71=await _0x46a967[_0x1d0157(0x80)](fetch,_0x2cdb9b+_0x1d0157(0x91)+_0x5da9cc+'/comments/address',{'method':_0x1d0157(0x92),'headers':{'Authorization':'Bearer\x20'+_0x1539b2,'Content-Type':'application/json'},'body':JSON['stringify']({'checklistItemId':_0x3dca0b,'commentIds':_0x503460})});if(!_0x886d71['ok']){const _0x508264=await _0x886d71[_0x1d0157(0x89)]();throw new Error(_0x1d0157(0x73)+_0x508264);}}export async function softDeleteFeature(_0x167644){const _0x3d242f=_0x5cae,_0x4985a1={'ZLTpD':function(_0xe2a867){return _0xe2a867();},'hQvxz':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','BUkSE':function(_0x2fdf0c,_0xa5e992,_0x59cd75){return _0x2fdf0c(_0xa5e992,_0x59cd75);},'vwCzZ':'DELETE'},_0x19dae7=await _0x4985a1['ZLTpD'](getToken);if(!_0x19dae7)throw new Error(_0x4985a1[_0x3d242f(0x90)]);const _0x5de64a=getApiBaseUrl(),_0x5d7fcb=await _0x4985a1[_0x3d242f(0xb7)](fetch,_0x5de64a+_0x3d242f(0x91)+_0x167644,{'method':_0x4985a1[_0x3d242f(0xb3)],'headers':{'Authorization':'Bearer\x20'+_0x19dae7}});if(!_0x5d7fcb['ok']){const _0x3785b9=await _0x5d7fcb[_0x3d242f(0x89)]();throw new Error(_0x3d242f(0x7d)+_0x3785b9);}}function _0x5cae(_0x256846,_0x406343){_0x256846=_0x256846-0x6d;const _0x4e60c1=_0x4e60();let _0x5cae48=_0x4e60c1[_0x256846];return _0x5cae48;}export async function restoreFeature(_0xcd74d3){const _0x21da3a=_0x5cae,_0x3bcf2c={'zEykq':function(_0x3ef044){return _0x3ef044();},'iNWnq':_0x21da3a(0x82),'KWXCy':function(_0x397c23,_0x5ba2cc,_0x483f38){return _0x397c23(_0x5ba2cc,_0x483f38);},'VtDpB':'POST'},_0xb3edc1=await _0x3bcf2c['zEykq'](getToken);if(!_0xb3edc1)throw new Error(_0x3bcf2c[_0x21da3a(0xb8)]);const _0x17cede=getApiBaseUrl(),_0x446cab=await _0x3bcf2c['KWXCy'](fetch,_0x17cede+'/api/v1/mcp/features/'+_0xcd74d3+'/restore',{'method':_0x3bcf2c['VtDpB'],'headers':{'Authorization':'Bearer\x20'+_0xb3edc1}});if(!_0x446cab['ok']){const _0x3c74f7=await _0x446cab['text']();throw new Error('Failed\x20to\x20restore\x20feature\x20review:\x20'+_0x3c74f7);}}
@@ -1 +1 @@
1
- const _0x43746e=_0x1f0d;function _0x1f0d(_0x5c43cb,_0x43c8b6){_0x5c43cb=_0x5c43cb-0xf0;const _0x9856fe=_0x9856();let _0x1f0d6c=_0x9856fe[_0x5c43cb];return _0x1f0d6c;}(function(_0x2c009e,_0x20c1e6){const _0xe8a95=_0x1f0d,_0xd23a77=_0x2c009e();while(!![]){try{const _0x5ddbce=-parseInt(_0xe8a95(0xf1))/0x1*(parseInt(_0xe8a95(0x127))/0x2)+-parseInt(_0xe8a95(0x10a))/0x3+parseInt(_0xe8a95(0x119))/0x4+-parseInt(_0xe8a95(0x11e))/0x5+parseInt(_0xe8a95(0x132))/0x6+-parseInt(_0xe8a95(0x12a))/0x7*(-parseInt(_0xe8a95(0x121))/0x8)+-parseInt(_0xe8a95(0xfc))/0x9;if(_0x5ddbce===_0x20c1e6)break;else _0xd23a77['push'](_0xd23a77['shift']());}catch(_0x1aa322){_0xd23a77['push'](_0xd23a77['shift']());}}}(_0x9856,0x68531));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(_0x1e8229,_0x220133){const _0xe9de1e=_0x1f0d,_0x91a891={'SqIZz':function(_0x348e6e,_0x171bf0){return _0x348e6e<=_0x171bf0;},'JUPam':function(_0x14f913,_0x44c638){return _0x14f913&_0x44c638;},'AbGdK':function(_0x20447f,_0x589a07){return _0x20447f>_0x589a07;},'QWIoT':function(_0xe46a68,_0x186741){return _0xe46a68&_0x186741;},'cOrgB':function(_0x2497fc,_0xb027ed){return _0x2497fc-_0xb027ed;},'jhVoz':function(_0x910b51,_0x2432f3){return _0x910b51<_0x2432f3;},'oUMwe':function(_0x538ff0,_0x1ec533){return _0x538ff0+_0x1ec533;},'gVrgB':function(_0x140c98,_0x4f111c){return _0x140c98*_0x4f111c;}};if(_0x220133>=_0x1e8229['length'])return[0x0,0x0];const _0x2368a3=_0x1e8229[_0x220133];let _0x2df2d4=0x1,_0x1da8e1=0x80;while(_0x91a891['SqIZz'](_0x2df2d4,0x8)&&!_0x91a891['JUPam'](_0x2368a3,_0x1da8e1)){_0x2df2d4++,_0x1da8e1>>=0x1;}if(_0x91a891['AbGdK'](_0x220133+_0x2df2d4,_0x1e8229[_0xe9de1e(0x11b)]))return[0x0,0x0];let _0x15ad54=_0x91a891[_0xe9de1e(0x12c)](_0x2368a3,_0x91a891[_0xe9de1e(0x11d)](_0x1da8e1,0x1));for(let _0x2358be=0x1;_0x91a891['jhVoz'](_0x2358be,_0x2df2d4);_0x2358be++){_0x15ad54=_0x91a891[_0xe9de1e(0x103)](_0x91a891['gVrgB'](_0x15ad54,0x100),_0x1e8229[_0x220133+_0x2358be]);}return[_0x15ad54,_0x2df2d4];}function readId(_0x256bf1,_0x436e5f){const _0x1c5ee9=_0x1f0d,_0x5be277={'GqAmS':function(_0xdb91be,_0x126555){return _0xdb91be>=_0x126555;},'uMfGd':function(_0x1d8a55,_0x143148){return _0x1d8a55+_0x143148;},'FUSNS':function(_0x445b89,_0xa7f078){return _0x445b89<_0xa7f078;},'kDaXx':function(_0x2c3c21,_0x9f0dbb){return _0x2c3c21*_0x9f0dbb;}};if(_0x436e5f>=_0x256bf1['length'])return[0x0,0x0];const _0x198a54=_0x256bf1[_0x436e5f];let _0x5816ee;if(_0x5be277['GqAmS'](_0x198a54,0x80))_0x5816ee=0x1;else{if(_0x198a54>=0x40)_0x5816ee=0x2;else{if(_0x198a54>=0x20)_0x5816ee=0x3;else{if(_0x198a54>=0x10)_0x5816ee=0x4;else return[_0x198a54,0x1];}}}if(_0x5be277['uMfGd'](_0x436e5f,_0x5816ee)>_0x256bf1['length'])return[0x0,0x0];let _0x379304=0x0;for(let _0x1e81f4=0x0;_0x5be277[_0x1c5ee9(0x12e)](_0x1e81f4,_0x5816ee);_0x1e81f4++){_0x379304=_0x5be277[_0x1c5ee9(0x129)](_0x5be277['kDaXx'](_0x379304,0x100),_0x256bf1[_0x436e5f+_0x1e81f4]);}return[_0x379304,_0x5816ee];}function readUint(_0x2353a1,_0x12ad38,_0x4bc90c){const _0x1101a3=_0x1f0d,_0x2051c8={'QuVyq':function(_0x39dcb7,_0x1fefab){return _0x39dcb7*_0x1fefab;},'NjXer':function(_0x27d45e,_0x1eabf1){return _0x27d45e+_0x1eabf1;}};let _0x51fd2f=0x0;for(let _0x1be1d4=0x0;_0x1be1d4<_0x4bc90c;_0x1be1d4++){_0x51fd2f=_0x2051c8[_0x1101a3(0x108)](_0x51fd2f,0x100)+_0x2353a1[_0x2051c8[_0x1101a3(0x130)](_0x12ad38,_0x1be1d4)];}return _0x51fd2f;}function isUnknownSize(_0x1294ed,_0x43dbd8){const _0x308924=_0x1f0d,_0x570103={'MEgtb':function(_0x4fe19a,_0x4ab83f){return _0x4fe19a-_0x4ab83f;}};return _0x1294ed===_0x570103['MEgtb'](Math[_0x308924(0x10c)](0x2,0x7*_0x43dbd8),0x1);}function writeId(_0x54dbbe){const _0x56e015=_0x1f0d,_0x2a1c5e={'FLOmu':function(_0x93fc07,_0x439366){return _0x93fc07&_0x439366;},'uGpSC':function(_0x2b478e,_0x2c341b){return _0x2b478e&_0x2c341b;},'PKtdR':function(_0x362a35,_0xc6c69b){return _0x362a35>>_0xc6c69b;},'duVEw':function(_0x135173,_0x53e903){return _0x135173&_0x53e903;},'DyMsH':function(_0x456bd9,_0x14e7b6){return _0x456bd9>>_0x14e7b6;},'sWOFs':function(_0x2f2001,_0x1f3a38){return _0x2f2001&_0x1f3a38;}};if(_0x54dbbe<=0xff)return Buffer[_0x56e015(0x12f)]([_0x54dbbe]);if(_0x54dbbe<=0xffff)return Buffer[_0x56e015(0x12f)]([_0x2a1c5e[_0x56e015(0xf2)](_0x54dbbe>>0x8,0xff),_0x2a1c5e[_0x56e015(0xfb)](_0x54dbbe,0xff)]);if(_0x54dbbe<=0xffffff)return Buffer[_0x56e015(0x12f)]([_0x2a1c5e[_0x56e015(0x110)](_0x54dbbe,0x10)&0xff,_0x2a1c5e['duVEw'](_0x2a1c5e['DyMsH'](_0x54dbbe,0x8),0xff),_0x2a1c5e[_0x56e015(0x105)](_0x54dbbe,0xff)]);return Buffer['from']([_0x2a1c5e['PKtdR'](_0x54dbbe,0x18)&0xff,_0x54dbbe>>0x10&0xff,_0x54dbbe>>0x8&0xff,_0x54dbbe&0xff]);}function writeVint(_0x402eaf,_0xc45d45){const _0x41f423=_0x1f0d,_0x25ea03={'FRZuf':function(_0xedaf99,_0x1ee0d8){return _0xedaf99<_0x1ee0d8;},'PqwGf':function(_0x366dec,_0x2d7f3a){return _0x366dec-_0x2d7f3a;},'dsmvc':function(_0x3f9ca2,_0x497402){return _0x3f9ca2*_0x497402;},'jwZtc':function(_0x4cc0c4,_0xa2e3de){return _0x4cc0c4>=_0xa2e3de;},'UrZSw':function(_0x4740e0,_0x1fccbd){return _0x4740e0&_0x1fccbd;},'GHRdO':function(_0xc8eca0,_0x542bb4){return _0xc8eca0/_0x542bb4;},'isNKC':function(_0x3a9c92,_0x2dfde6){return _0x3a9c92<<_0x2dfde6;}};let _0x1380a0=_0xc45d45||0x1;while(_0x25ea03[_0x41f423(0x111)](_0x25ea03[_0x41f423(0x112)](Math[_0x41f423(0x10c)](0x2,_0x25ea03[_0x41f423(0xf5)](0x7,_0x1380a0)),0x2),_0x402eaf))_0x1380a0++;const _0xcb5411=Buffer['alloc'](_0x1380a0);for(let _0x5592e8=_0x25ea03[_0x41f423(0x112)](_0x1380a0,0x1);_0x25ea03[_0x41f423(0xf4)](_0x5592e8,0x0);_0x5592e8--){_0xcb5411[_0x5592e8]=_0x25ea03['UrZSw'](_0x402eaf,0xff),_0x402eaf=Math[_0x41f423(0x122)](_0x25ea03[_0x41f423(0x114)](_0x402eaf,0x100));}return _0xcb5411[0x0]|=_0x25ea03[_0x41f423(0xfd)](0x1,_0x25ea03[_0x41f423(0x112)](0x8,_0x1380a0)),_0xcb5411;}function writeFloat64(_0x5703a4){const _0x2a16b2=_0x1f0d,_0xe8a19e=Buffer['alloc'](0x8);return _0xe8a19e[_0x2a16b2(0x128)](_0x5703a4,0x0),_0xe8a19e;}function writeVoid(_0x253168){const _0x51c406=_0x1f0d,_0x1306b8={'CHITm':function(_0x1b0c3b,_0x5dee14){return _0x1b0c3b-_0x5dee14;},'NkBoM':function(_0x5c7b53,_0xb5a1a4){return _0x5c7b53>=_0xb5a1a4;},'wIoeL':function(_0x228d4b,_0x453ac9){return _0x228d4b<=_0x453ac9;}};for(let _0x4103e1=0x1;_0x4103e1<=0x8;_0x4103e1++){const _0x5405ba=_0x1306b8['CHITm'](_0x253168-0x1,_0x4103e1);if(_0x1306b8[_0x51c406(0x10f)](_0x5405ba,0x0)&&_0x1306b8[_0x51c406(0xf7)](_0x5405ba,Math['pow'](0x2,0x7*_0x4103e1)-0x2))return Buffer['concat']([Buffer[_0x51c406(0x12f)]([ID_VOID]),writeVint(_0x5405ba,_0x4103e1),Buffer[_0x51c406(0x120)](_0x5405ba)]);}return Buffer[_0x51c406(0x120)](0x0);}function findElement(_0x5c442c,_0x3c5e73,_0x4d5b9c,_0xa54274){const _0x352a28=_0x1f0d,_0x4448f9={'aTOVm':function(_0x4bb4a2,_0xe29e15){return _0x4bb4a2<_0xe29e15;},'ddCAK':function(_0x530dcd,_0x100069,_0x349945){return _0x530dcd(_0x100069,_0x349945);},'wDucO':function(_0x392802,_0x361368){return _0x392802+_0x361368;},'cOypn':function(_0x25eb25,_0x2a493e){return _0x25eb25===_0x2a493e;},'lNqLH':function(_0x538128,_0x2d6ade){return _0x538128+_0x2d6ade;}};let _0x3a9876=_0x3c5e73;while(_0x4448f9[_0x352a28(0x10d)](_0x3a9876,_0x4d5b9c)){const [_0x3cb85d,_0x584853]=readId(_0x5c442c,_0x3a9876),[_0x33280f,_0x527a00]=_0x4448f9['ddCAK'](readVint,_0x5c442c,_0x4448f9['wDucO'](_0x3a9876,_0x584853));if(_0x4448f9[_0x352a28(0x104)](_0x3cb85d,_0xa54274))return{'offset':_0x3a9876,'idLen':_0x584853,'sizeLen':_0x527a00,'dataSize':_0x33280f,'dataOffset':_0x4448f9[_0x352a28(0x102)](_0x3a9876,_0x584853)+_0x527a00};if(isUnknownSize(_0x33280f,_0x527a00))break;_0x3a9876+=_0x584853+_0x527a00+_0x33280f;}return null;}function computeDurationMs(_0x39b52a,_0x320374){const _0x449938=_0x1f0d,_0x327bb3={'JgKFR':function(_0x36dd8e,_0x3e100e){return _0x36dd8e<_0x3e100e;},'ukANT':function(_0x13a2cc,_0x31ece0,_0x54d43f){return _0x13a2cc(_0x31ece0,_0x54d43f);},'NhMOZ':function(_0x5541be,_0x5bab63,_0xc5cbf4){return _0x5541be(_0x5bab63,_0xc5cbf4);},'HcZCv':function(_0x1faf44,_0x559f2f){return _0x1faf44+_0x559f2f;},'mHxGq':function(_0xbe35f2,_0x3a26aa,_0x41856e){return _0xbe35f2(_0x3a26aa,_0x41856e);},'fkKYH':function(_0x45a024,_0x40b32f){return _0x45a024===_0x40b32f;},'xWzVA':function(_0x47c7ea,_0xfd026b){return _0x47c7ea+_0xfd026b;},'cCFLC':function(_0x4aa991,_0x2a8356){return _0x4aa991<_0x2a8356;},'GARZI':function(_0x481e8c,_0x529dd3){return _0x481e8c===_0x529dd3;},'didZP':function(_0x5820e5,_0x4c26df){return _0x5820e5+_0x4c26df;},'vCMGi':function(_0x5de47f,_0x4fbcde){return _0x5de47f+_0x4fbcde;},'uzvzW':function(_0x42aee9,_0x8735ac){return _0x42aee9*_0x8735ac;},'mLAxa':function(_0x11e7bd,_0x4ca62d){return _0x11e7bd>_0x4ca62d;},'MgWcu':function(_0x183485,_0x4510ed){return _0x183485===_0x4510ed;},'CTJEU':function(_0x1a631e,_0x56e98c){return _0x1a631e+_0x56e98c;}};let _0x35b885=0x0;const _0xb9f9b5=Buffer[_0x449938(0x12f)]([0x1f,0x43,0xb6,0x75]);let _0x4edbc5=_0x39b52a[_0x449938(0x125)](_0xb9f9b5);if(_0x4edbc5===-0x1)return 0x0;while(_0x327bb3['JgKFR'](_0x4edbc5,_0x39b52a['length'])){const [_0x1ca5ea,_0x3068c6]=_0x327bb3[_0x449938(0x12b)](readId,_0x39b52a,_0x4edbc5);if(_0x1ca5ea!==ID_CLUSTER)break;const [_0x2ff878,_0x5c31f9]=_0x327bb3['NhMOZ'](readVint,_0x39b52a,_0x327bb3['HcZCv'](_0x4edbc5,_0x3068c6)),_0x44e2d6=_0x327bb3['HcZCv'](_0x4edbc5+_0x3068c6,_0x5c31f9),_0x33db6d=isUnknownSize(_0x2ff878,_0x5c31f9);let _0x572e58;if(_0x33db6d){let _0x1db40f=_0x44e2d6;while(_0x1db40f<_0x39b52a['length']-0x4){const [_0x3b2827,_0x1f2106]=_0x327bb3['mHxGq'](readId,_0x39b52a,_0x1db40f);if(_0x327bb3[_0x449938(0x118)](_0x3b2827,ID_CLUSTER)){_0x572e58=_0x1db40f;break;}const [_0x5dc694,_0x324a7a]=readVint(_0x39b52a,_0x1db40f+_0x1f2106);if(isUnknownSize(_0x5dc694,_0x324a7a)){_0x572e58=_0x39b52a[_0x449938(0x11b)];break;}_0x1db40f+=_0x327bb3[_0x449938(0xf9)](_0x1f2106,_0x324a7a)+_0x5dc694;}_0x572e58??=_0x39b52a[_0x449938(0x11b)];}else _0x572e58=_0x44e2d6+_0x2ff878;let _0x2acdfe=0x0,_0x279b0e=_0x44e2d6;while(_0x327bb3[_0x449938(0x107)](_0x279b0e,_0x572e58)){const [_0x35080d,_0x2eaf00]=readId(_0x39b52a,_0x279b0e),[_0x5ca864,_0x197724]=readVint(_0x39b52a,_0x327bb3[_0x449938(0xf9)](_0x279b0e,_0x2eaf00));if(_0x327bb3['GARZI'](_0x35080d,ID_TIMESTAMP))_0x2acdfe=readUint(_0x39b52a,_0x327bb3[_0x449938(0xf6)](_0x279b0e,_0x2eaf00)+_0x197724,_0x5ca864);else{if(_0x35080d===ID_SIMPLE_BLOCK&&_0x5ca864>=0x4){const _0x4f56e8=_0x327bb3['vCMGi'](_0x279b0e+_0x2eaf00,_0x197724),[,_0x3521d7]=_0x327bb3['ukANT'](readVint,_0x39b52a,_0x4f56e8),_0x156bb=_0x39b52a['readInt16BE'](_0x327bb3[_0x449938(0x106)](_0x4f56e8,_0x3521d7)),_0x4b81f3=_0x327bb3['uzvzW'](_0x2acdfe+_0x156bb,_0x320374)/0xf4240;_0x327bb3[_0x449938(0x11f)](_0x4b81f3,_0x35b885)&&(_0x35b885=_0x4b81f3);}else{if(_0x327bb3[_0x449938(0x10b)](_0x35080d,ID_CLUSTER))break;}}if(_0x327bb3[_0x449938(0xf0)](isUnknownSize,_0x5ca864,_0x197724))break;_0x279b0e+=_0x327bb3['CTJEU'](_0x2eaf00+_0x197724,_0x5ca864);}_0x4edbc5=_0x572e58;}return _0x35b885;}function _0x9856(){const _0x3c6f97=['QuVyq','VBGrd','84732XNQdDo','MgWcu','pow','aTOVm','EoVMd','NkBoM','PKtdR','FRZuf','PqwGf','slice','GHRdO','dataOffset','TtulA','sizeLen','fkKYH','2094128xHkvcZ','LVirF','length','endsWith','cOrgB','425180wYgotn','mLAxa','alloc','1248NuucNG','floor','error','nmTck','indexOf','argv','87502GUprJY','writeDoubleBE','uMfGd','3598hRwEue','ukANT','QWIoT','log','FUSNS','from','NjXer','gWYpb','2394282mQGSiv','mHxGq','1eCTSJp','FLOmu','klizm','jwZtc','dsmvc','didZP','wIoeL','Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>','xWzVA','PSqiu','uGpSC','3765771MvJOOp','isNKC','offset','jIZwf','dataSize','concat','lNqLH','oUMwe','cOypn','sWOFs','HcZCv','cCFLC'];_0x9856=function(){return _0x3c6f97;};return _0x9856();}export function fixWebmDuration(_0x4b9763,_0x154792){const _0x2f865f=_0x1f0d,_0x31e6e6={'TtulA':function(_0xd3aef9,_0x3d1e52,_0x81819){return _0xd3aef9(_0x3d1e52,_0x81819);},'VBGrd':function(_0x36b5b2,_0x164744){return _0x36b5b2+_0x164744;},'NHZBT':function(_0x483157,_0x316bc1){return _0x483157!==_0x316bc1;},'PSqiu':'Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','guwJq':function(_0x52fc0b,_0xba2a64,_0x34e9a2){return _0x52fc0b(_0xba2a64,_0x34e9a2);},'jIZwf':function(_0x53d14e,_0x42420e){return _0x53d14e+_0x42420e;},'klizm':function(_0x53014f,_0x29e2da){return _0x53014f+_0x29e2da;},'gWYpb':function(_0x35a8e4,_0x148a83){return _0x35a8e4===_0x148a83;},'SJxrw':function(_0x27faa5,_0x2531de,_0x2f3246,_0x1bff35,_0x2ca0a9){return _0x27faa5(_0x2531de,_0x2f3246,_0x1bff35,_0x2ca0a9);},'LVirF':function(_0x53a584,_0x5541ee,_0x245102,_0x419e91){return _0x53a584(_0x5541ee,_0x245102,_0x419e91);},'EoVMd':function(_0x396a61,_0xa2804a){return _0x396a61<=_0xa2804a;},'mqUuF':'Could\x20not\x20compute\x20duration','Xvsqk':function(_0x53f493,_0x1df1b4){return _0x53f493/_0x1df1b4;},'Celtv':function(_0x191b79,_0x1c95a9){return _0x191b79*_0x1c95a9;},'EPBFJ':function(_0x1fbc94,_0x4b4a21){return _0x1fbc94(_0x4b4a21);}},_0x46e1a4=readFileSync(_0x4b9763);let _0x4f152e=0x0;const [_0x251183,_0x3bb243]=readId(_0x46e1a4,_0x4f152e),[_0x365353,_0x5a2b90]=_0x31e6e6[_0x2f865f(0x116)](readVint,_0x46e1a4,_0x4f152e+_0x3bb243);_0x4f152e+=_0x31e6e6['VBGrd'](_0x3bb243+_0x5a2b90,_0x365353);const [_0x11303b,_0x1800cd]=readId(_0x46e1a4,_0x4f152e);if(_0x31e6e6['NHZBT'](_0x11303b,ID_SEGMENT))return console[_0x2f865f(0x123)](_0x31e6e6[_0x2f865f(0xfa)]),![];const [,_0x3c1fdc]=_0x31e6e6['guwJq'](readVint,_0x46e1a4,_0x31e6e6['VBGrd'](_0x4f152e,_0x1800cd)),_0x1e3c44=_0x31e6e6[_0x2f865f(0xff)](_0x4f152e,_0x1800cd)+_0x3c1fdc;let _0x198d7b=_0x1e3c44;const _0x4ef1f2=Math['min'](_0x46e1a4['length'],_0x31e6e6['jIZwf'](_0x1e3c44,0x2710));let _0x13e6e2=null,_0x507f32=null;while(_0x198d7b<_0x4ef1f2){const [_0x1e20bd,_0x184490]=readId(_0x46e1a4,_0x198d7b),[_0x268007,_0x7b0a46]=readVint(_0x46e1a4,_0x31e6e6[_0x2f865f(0xf3)](_0x198d7b,_0x184490));_0x1e20bd===ID_VOID&&!_0x13e6e2&&(_0x13e6e2={'offset':_0x198d7b,'idLen':_0x184490,'sizeLen':_0x7b0a46,'dataSize':_0x268007,'dataOffset':_0x198d7b+_0x184490+_0x7b0a46});if(_0x31e6e6[_0x2f865f(0x131)](_0x1e20bd,ID_INFO)){_0x507f32={'offset':_0x198d7b,'idLen':_0x184490,'sizeLen':_0x7b0a46,'dataSize':_0x268007,'dataOffset':_0x31e6e6[_0x2f865f(0xf3)](_0x31e6e6[_0x2f865f(0x109)](_0x198d7b,_0x184490),_0x7b0a46)};break;}if(_0x1e20bd===ID_CLUSTER)break;if(isUnknownSize(_0x268007,_0x7b0a46))break;_0x198d7b+=_0x31e6e6['klizm'](_0x31e6e6[_0x2f865f(0xf3)](_0x184490,_0x7b0a46),_0x268007);}if(!_0x507f32)return console['error']('Could\x20not\x20find\x20Info\x20element'),![];const _0x3cacc2=_0x31e6e6['SJxrw'](findElement,_0x46e1a4,_0x507f32[_0x2f865f(0x115)],_0x507f32['dataOffset']+_0x507f32['dataSize'],ID_DURATION);if(_0x3cacc2)return![];const _0xd9b023=findElement(_0x46e1a4,_0x507f32[_0x2f865f(0x115)],_0x507f32[_0x2f865f(0x115)]+_0x507f32[_0x2f865f(0x100)],ID_TIMESTAMP_SCALE);let _0x3ff920=0xf4240;_0xd9b023&&(_0x3ff920=_0x31e6e6[_0x2f865f(0x11a)](readUint,_0x46e1a4,_0xd9b023['dataOffset'],_0xd9b023['dataSize']));const _0x5672a1=computeDurationMs(_0x46e1a4,_0x3ff920);if(_0x31e6e6[_0x2f865f(0x10e)](_0x5672a1,0x0))return console[_0x2f865f(0x123)](_0x31e6e6['mqUuF']),![];const _0xb3a546=_0x31e6e6['Xvsqk'](_0x31e6e6['Celtv'](_0x5672a1,0xf4240),_0x3ff920),_0xba3102=Buffer[_0x2f865f(0x101)]([writeId(ID_DURATION),_0x31e6e6['EPBFJ'](writeVint,0x8),_0x31e6e6['EPBFJ'](writeFloat64,_0xb3a546)]),_0x2d97c2=_0xba3102['length'];if(!_0x13e6e2||_0x13e6e2['offset']<_0x507f32[_0x2f865f(0xfe)]){if(_0x13e6e2){const _0x142b57=_0x13e6e2['idLen']+_0x13e6e2[_0x2f865f(0x117)]+_0x13e6e2[_0x2f865f(0x100)],_0x3077ff=_0x142b57-_0x2d97c2;if(_0x3077ff<0x2)return rewriteFile(_0x46e1a4,_0x507f32,_0xba3102,_0x3ff920,_0x5672a1,_0x154792);const _0x17e2a2=_0x31e6e6['VBGrd'](_0x507f32[_0x2f865f(0x100)],_0x2d97c2),_0x24426d=Buffer['concat']([_0x31e6e6['EPBFJ'](writeId,ID_INFO),writeVint(_0x17e2a2,_0x507f32['sizeLen'])]),_0x84cc20=_0x46e1a4[_0x2f865f(0x113)](_0x507f32[_0x2f865f(0x115)],_0x507f32[_0x2f865f(0x115)]+_0x507f32[_0x2f865f(0x100)]),_0x250070=writeVoid(_0x3077ff),_0x497ea4=_0x46e1a4[_0x2f865f(0x113)](0x0,_0x13e6e2[_0x2f865f(0xfe)]),_0x33d81e=_0x46e1a4[_0x2f865f(0x113)](_0x31e6e6[_0x2f865f(0xff)](_0x507f32['dataOffset'],_0x507f32[_0x2f865f(0x100)]));return writeFileSync(_0x154792,Buffer['concat']([_0x497ea4,_0x250070,_0x24426d,_0x84cc20,_0xba3102,_0x33d81e])),!![];}}return rewriteFile(_0x46e1a4,_0x507f32,_0xba3102,_0x3ff920,_0x5672a1,_0x154792);}function rewriteFile(_0x44f4d3,_0x5b304d,_0x87a8a,_0x4f9b2c,_0x620de6,_0x2b1754){const _0x480863=_0x1f0d,_0x3c2b2e={'HRNoZ':function(_0x1ae186,_0x452b59){return _0x1ae186+_0x452b59;},'nmTck':function(_0x1e24ed,_0x425de2){return _0x1e24ed(_0x425de2);},'PjBpH':function(_0x3f68c5,_0x504ae5){return _0x3f68c5+_0x504ae5;}},_0x69861e=_0x3c2b2e['HRNoZ'](_0x5b304d[_0x480863(0x100)],_0x87a8a[_0x480863(0x11b)]),_0x10b76b=Buffer['concat']([writeId(ID_INFO),_0x3c2b2e[_0x480863(0x124)](writeVint,_0x69861e)]),_0x39393b=_0x3c2b2e['HRNoZ'](_0x5b304d['idLen'],_0x5b304d[_0x480863(0x117)]),_0x1232de=_0x44f4d3[_0x480863(0x113)](0x0,_0x5b304d[_0x480863(0xfe)]),_0x4840c8=_0x44f4d3['slice'](_0x5b304d[_0x480863(0x115)],_0x5b304d['dataOffset']+_0x5b304d['dataSize']),_0x15812e=_0x44f4d3[_0x480863(0x113)](_0x3c2b2e['PjBpH'](_0x5b304d['offset']+_0x39393b,_0x5b304d['dataSize']));return writeFileSync(_0x2b1754,Buffer['concat']([_0x1232de,_0x10b76b,_0x4840c8,_0x87a8a,_0x15812e])),!![];}if(process['argv'][0x1]?.[_0x43746e(0x11c)]('fixWebmDuration.ts')||process[_0x43746e(0x126)][0x1]?.[_0x43746e(0x11c)]('fixWebmDuration.js')){const input=process['argv'][0x2],output=process[_0x43746e(0x126)][0x3];(!input||!output)&&(console[_0x43746e(0x123)](_0x43746e(0xf8)),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0x43746e(0x12d)]('Fixed:\x20'+output):console[_0x43746e(0x12d)]('File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.');}
1
+ const _0x20ca6a=_0x5345;(function(_0x5b519b,_0x4440f5){const _0x2ca36c=_0x5345,_0x48cfa4=_0x5b519b();while(!![]){try{const _0x37ce4a=-parseInt(_0x2ca36c(0x203))/0x1+parseInt(_0x2ca36c(0x1fb))/0x2+parseInt(_0x2ca36c(0x1e7))/0x3*(parseInt(_0x2ca36c(0x1fd))/0x4)+parseInt(_0x2ca36c(0x21d))/0x5+parseInt(_0x2ca36c(0x1f5))/0x6*(parseInt(_0x2ca36c(0x1f9))/0x7)+parseInt(_0x2ca36c(0x210))/0x8+-parseInt(_0x2ca36c(0x201))/0x9*(parseInt(_0x2ca36c(0x1e4))/0xa);if(_0x37ce4a===_0x4440f5)break;else _0x48cfa4['push'](_0x48cfa4['shift']());}catch(_0x10235c){_0x48cfa4['push'](_0x48cfa4['shift']());}}}(_0x17b8,0xabbe6));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(_0x198e50,_0x5a34f4){const _0x27998c=_0x5345,_0x21259a={'eYNdX':function(_0x34ac51,_0xaee2f1){return _0x34ac51>=_0xaee2f1;},'JUTyl':function(_0x5bb643,_0x2a00ff){return _0x5bb643&_0x2a00ff;},'jUGTr':function(_0x20f552,_0x21befd){return _0x20f552>_0x21befd;},'wXolD':function(_0x4c79f3,_0x3c1be0){return _0x4c79f3+_0x3c1be0;},'nYazP':function(_0x4cd406,_0x102457){return _0x4cd406-_0x102457;},'sjfJQ':function(_0x2c7e6f,_0x1fc7ad){return _0x2c7e6f*_0x1fc7ad;}};if(_0x21259a[_0x27998c(0x225)](_0x5a34f4,_0x198e50['length']))return[0x0,0x0];const _0x4c9dbc=_0x198e50[_0x5a34f4];let _0x5437e9=0x1,_0x2d3570=0x80;while(_0x5437e9<=0x8&&!_0x21259a['JUTyl'](_0x4c9dbc,_0x2d3570)){_0x5437e9++,_0x2d3570>>=0x1;}if(_0x21259a[_0x27998c(0x1fa)](_0x21259a['wXolD'](_0x5a34f4,_0x5437e9),_0x198e50['length']))return[0x0,0x0];let _0x2fbaa0=_0x4c9dbc&_0x21259a['nYazP'](_0x2d3570,0x1);for(let _0x5d0d9d=0x1;_0x5d0d9d<_0x5437e9;_0x5d0d9d++){_0x2fbaa0=_0x21259a[_0x27998c(0x214)](_0x2fbaa0,0x100)+_0x198e50[_0x21259a[_0x27998c(0x1ed)](_0x5a34f4,_0x5d0d9d)];}return[_0x2fbaa0,_0x5437e9];}function readId(_0x513421,_0xdfb70c){const _0x1a904c={'bWGDr':function(_0x50a311,_0x2d255e){return _0x50a311+_0x2d255e;}};if(_0xdfb70c>=_0x513421['length'])return[0x0,0x0];const _0x4d0ef6=_0x513421[_0xdfb70c];let _0x5370c9;if(_0x4d0ef6>=0x80)_0x5370c9=0x1;else{if(_0x4d0ef6>=0x40)_0x5370c9=0x2;else{if(_0x4d0ef6>=0x20)_0x5370c9=0x3;else{if(_0x4d0ef6>=0x10)_0x5370c9=0x4;else return[_0x4d0ef6,0x1];}}}if(_0x1a904c['bWGDr'](_0xdfb70c,_0x5370c9)>_0x513421['length'])return[0x0,0x0];let _0x3a6b45=0x0;for(let _0x5e7e2f=0x0;_0x5e7e2f<_0x5370c9;_0x5e7e2f++){_0x3a6b45=_0x3a6b45*0x100+_0x513421[_0xdfb70c+_0x5e7e2f];}return[_0x3a6b45,_0x5370c9];}function readUint(_0x454f90,_0x674684,_0x4bfeff){const _0x176f47=_0x5345,_0x3ec867={'OkeyE':function(_0x474ec6,_0x54f569){return _0x474ec6+_0x54f569;}};let _0x32e74e=0x0;for(let _0x374d08=0x0;_0x374d08<_0x4bfeff;_0x374d08++){_0x32e74e=_0x32e74e*0x100+_0x454f90[_0x3ec867[_0x176f47(0x211)](_0x674684,_0x374d08)];}return _0x32e74e;}function isUnknownSize(_0x4585de,_0xaf2d51){const _0x3c27c1=_0x5345,_0x48a379={'ISaet':function(_0x2da96c,_0x36cbed){return _0x2da96c*_0x36cbed;}};return _0x4585de===Math['pow'](0x2,_0x48a379[_0x3c27c1(0x1ec)](0x7,_0xaf2d51))-0x1;}function writeId(_0x36197d){const _0x5b8f0e=_0x5345,_0x41e2f9={'XecSW':function(_0x5842f1,_0x496025){return _0x5842f1<=_0x496025;},'lcVGO':function(_0x302338,_0x4cf463){return _0x302338>>_0x4cf463;},'SIbSf':function(_0x4daf19,_0x49ceab){return _0x4daf19<=_0x49ceab;},'DmDPH':function(_0x2054e6,_0x454e2f){return _0x2054e6&_0x454e2f;},'OYNwt':function(_0x2371e0,_0x55bc14){return _0x2371e0&_0x55bc14;},'xuXDt':function(_0x135e36,_0x55a90a){return _0x135e36&_0x55a90a;},'qFjzh':function(_0x13b78d,_0x19041e){return _0x13b78d>>_0x19041e;}};if(_0x41e2f9[_0x5b8f0e(0x208)](_0x36197d,0xff))return Buffer[_0x5b8f0e(0x20f)]([_0x36197d]);if(_0x41e2f9[_0x5b8f0e(0x208)](_0x36197d,0xffff))return Buffer['from']([_0x41e2f9['lcVGO'](_0x36197d,0x8)&0xff,_0x36197d&0xff]);if(_0x41e2f9[_0x5b8f0e(0x1ef)](_0x36197d,0xffffff))return Buffer['from']([_0x41e2f9['DmDPH'](_0x36197d>>0x10,0xff),_0x41e2f9[_0x5b8f0e(0x1eb)](_0x36197d>>0x8,0xff),_0x36197d&0xff]);return Buffer[_0x5b8f0e(0x20f)]([_0x41e2f9['lcVGO'](_0x36197d,0x18)&0xff,_0x41e2f9['DmDPH'](_0x36197d>>0x10,0xff),_0x41e2f9[_0x5b8f0e(0x1f6)](_0x41e2f9['qFjzh'](_0x36197d,0x8),0xff),_0x36197d&0xff]);}function writeVint(_0x1e9297,_0x46a9e1){const _0x3369de=_0x5345,_0x2dd1c5={'KGjWg':function(_0x5ec1c8,_0x47e052){return _0x5ec1c8<_0x47e052;},'vvbmP':function(_0x3abc57,_0x3c24a0){return _0x3abc57-_0x3c24a0;},'AwyLG':function(_0x509c32,_0xd74207){return _0x509c32*_0xd74207;},'KiyFw':function(_0xa1ad46,_0x26bde1){return _0xa1ad46&_0x26bde1;},'ufTRa':function(_0x1375cc,_0x4093ae){return _0x1375cc/_0x4093ae;},'UEjgH':function(_0x237e95,_0x5ef906){return _0x237e95<<_0x5ef906;}};let _0x3959e4=_0x46a9e1||0x1;while(_0x2dd1c5['KGjWg'](_0x2dd1c5[_0x3369de(0x205)](Math['pow'](0x2,_0x2dd1c5['AwyLG'](0x7,_0x3959e4)),0x2),_0x1e9297))_0x3959e4++;const _0x28f00e=Buffer[_0x3369de(0x1ea)](_0x3959e4);for(let _0x537529=_0x3959e4-0x1;_0x537529>=0x0;_0x537529--){_0x28f00e[_0x537529]=_0x2dd1c5['KiyFw'](_0x1e9297,0xff),_0x1e9297=Math['floor'](_0x2dd1c5['ufTRa'](_0x1e9297,0x100));}return _0x28f00e[0x0]|=_0x2dd1c5[_0x3369de(0x216)](0x1,0x8-_0x3959e4),_0x28f00e;}function _0x17b8(){const _0x24875a=['tLYVn','isbhK','length','from','7327896qKYLbA','OkeyE','Could\x20not\x20find\x20Info\x20element','eUUMP','sjfJQ','sQlKt','UEjgH','ZJDly','lBZPf','GzryQ','readInt16BE','exit','SzsOa','68555bmVVFl','idLen','PoGwL','sizeLen','SxcCu','argv','tbPaF','Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','eYNdX','19350TEZBOF','fixWebmDuration.js','ZWVMa','5703RumUcx','Could\x20not\x20compute\x20duration','dataOffset','alloc','OYNwt','ISaet','wXolD','BVfrR','SIbSf','dataSize','kFhZg','endsWith','log','giUqz','987942uAJPIJ','xuXDt','Fixed:\x20','min','56DmhFlo','jUGTr','2017798CuvVnX','hveCy','1296ntmIeI','slice','FDFGW','YQouY','13887OcxutO','jCaeJ','182610eoIYAP','offset','vvbmP','ydyRX','error','XecSW','concat','iCZQW','TsTdz'];_0x17b8=function(){return _0x24875a;};return _0x17b8();}function writeFloat64(_0x579292){const _0x25cbeb=_0x5345,_0x3d0739=Buffer[_0x25cbeb(0x1ea)](0x8);return _0x3d0739['writeDoubleBE'](_0x579292,0x0),_0x3d0739;}function writeVoid(_0x77cb74){const _0x5dff27=_0x5345,_0x21c166={'lKpta':function(_0x47b6b7,_0x5882dc){return _0x47b6b7<=_0x5882dc;},'nxDmR':function(_0x4d97c6,_0x184492){return _0x4d97c6>=_0x184492;},'tLYVn':function(_0x41af7c,_0x2abf39){return _0x41af7c<=_0x2abf39;}};for(let _0x41e130=0x1;_0x21c166['lKpta'](_0x41e130,0x8);_0x41e130++){const _0x55e257=_0x77cb74-0x1-_0x41e130;if(_0x21c166['nxDmR'](_0x55e257,0x0)&&_0x21c166[_0x5dff27(0x20c)](_0x55e257,Math['pow'](0x2,0x7*_0x41e130)-0x2))return Buffer[_0x5dff27(0x209)]([Buffer['from']([ID_VOID]),writeVint(_0x55e257,_0x41e130),Buffer[_0x5dff27(0x1ea)](_0x55e257)]);}return Buffer['alloc'](0x0);}function findElement(_0x906dc9,_0x17a928,_0x32486c,_0x2e669a){const _0x574b4c=_0x5345,_0x2563c5={'ydyRX':function(_0x4c2a09,_0x1bb706){return _0x4c2a09+_0x1bb706;},'tbPaF':function(_0x360e80,_0x52c3f4){return _0x360e80===_0x52c3f4;}};let _0x2dc3b1=_0x17a928;while(_0x2dc3b1<_0x32486c){const [_0x5dd4ef,_0x347b85]=readId(_0x906dc9,_0x2dc3b1),[_0x4e0ae2,_0x431421]=readVint(_0x906dc9,_0x2563c5[_0x574b4c(0x206)](_0x2dc3b1,_0x347b85));if(_0x2563c5[_0x574b4c(0x223)](_0x5dd4ef,_0x2e669a))return{'offset':_0x2dc3b1,'idLen':_0x347b85,'sizeLen':_0x431421,'dataSize':_0x4e0ae2,'dataOffset':_0x2563c5[_0x574b4c(0x206)](_0x2dc3b1+_0x347b85,_0x431421)};if(isUnknownSize(_0x4e0ae2,_0x431421))break;_0x2dc3b1+=_0x2563c5['ydyRX'](_0x347b85,_0x431421)+_0x4e0ae2;}return null;}function computeDurationMs(_0x4d5265,_0x275ed7){const _0x485c3d=_0x5345,_0x1bde88={'iLmQU':function(_0x238b7f,_0x1dac26,_0x1020df){return _0x238b7f(_0x1dac26,_0x1020df);},'XqRIl':function(_0x367324,_0x142a46){return _0x367324!==_0x142a46;},'hiHNb':function(_0x432a72,_0x557062){return _0x432a72+_0x557062;},'ZJDly':function(_0x4446cd,_0x183498){return _0x4446cd+_0x183498;},'BVfrR':function(_0x2ec71e,_0x4f4627){return _0x2ec71e-_0x4f4627;},'eUUMP':function(_0x4bc161,_0x562e30,_0x1f5b3c){return _0x4bc161(_0x562e30,_0x1f5b3c);},'FvVjN':function(_0x17ae93,_0x75f000,_0x22a395){return _0x17ae93(_0x75f000,_0x22a395);},'HvXgK':function(_0x66c34d,_0x409fcc){return _0x66c34d+_0x409fcc;},'WGFIg':function(_0x255e54,_0x2b8c21,_0x153ff1){return _0x255e54(_0x2b8c21,_0x153ff1);},'SxcCu':function(_0x1f35a0,_0x127f5c){return _0x1f35a0+_0x127f5c;},'PoGwL':function(_0x58aa46,_0x35d290){return _0x58aa46===_0x35d290;},'YQouY':function(_0x5d3d3b,_0x2fd53b){return _0x5d3d3b+_0x2fd53b;},'rPzaJ':function(_0x3062a9,_0x12ea21){return _0x3062a9>=_0x12ea21;},'hveCy':function(_0x6fdc3c,_0x236e72){return _0x6fdc3c+_0x236e72;}};let _0x1ddccf=0x0;const _0x31eb8e=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x5e63f5=_0x4d5265['indexOf'](_0x31eb8e);if(_0x5e63f5===-0x1)return 0x0;while(_0x5e63f5<_0x4d5265['length']){const [_0x58d99e,_0x23dc91]=_0x1bde88['iLmQU'](readId,_0x4d5265,_0x5e63f5);if(_0x1bde88['XqRIl'](_0x58d99e,ID_CLUSTER))break;const [_0x20d498,_0x55b8a9]=readVint(_0x4d5265,_0x1bde88['hiHNb'](_0x5e63f5,_0x23dc91)),_0x430947=_0x1bde88['ZJDly'](_0x5e63f5+_0x23dc91,_0x55b8a9),_0xe4dbe3=isUnknownSize(_0x20d498,_0x55b8a9);let _0x132914;if(_0xe4dbe3){let _0x5c62f0=_0x430947;while(_0x5c62f0<_0x1bde88[_0x485c3d(0x1ee)](_0x4d5265['length'],0x4)){const [_0x449471,_0x4c7611]=_0x1bde88['eUUMP'](readId,_0x4d5265,_0x5c62f0);if(_0x449471===ID_CLUSTER){_0x132914=_0x5c62f0;break;}const [_0x58a8b5,_0x140857]=_0x1bde88['FvVjN'](readVint,_0x4d5265,_0x1bde88['HvXgK'](_0x5c62f0,_0x4c7611));if(isUnknownSize(_0x58a8b5,_0x140857)){_0x132914=_0x4d5265['length'];break;}_0x5c62f0+=_0x4c7611+_0x140857+_0x58a8b5;}_0x132914??=_0x4d5265['length'];}else _0x132914=_0x430947+_0x20d498;let _0x5db741=0x0,_0x26cf14=_0x430947;while(_0x26cf14<_0x132914){const [_0x21b216,_0x1bcd8e]=_0x1bde88['WGFIg'](readId,_0x4d5265,_0x26cf14),[_0x51bce6,_0x3a7aa6]=_0x1bde88[_0x485c3d(0x213)](readVint,_0x4d5265,_0x1bde88[_0x485c3d(0x221)](_0x26cf14,_0x1bcd8e));if(_0x1bde88[_0x485c3d(0x21f)](_0x21b216,ID_TIMESTAMP))_0x5db741=readUint(_0x4d5265,_0x1bde88[_0x485c3d(0x200)](_0x26cf14,_0x1bcd8e)+_0x3a7aa6,_0x51bce6);else{if(_0x21b216===ID_SIMPLE_BLOCK&&_0x1bde88['rPzaJ'](_0x51bce6,0x4)){const _0x4fc92e=_0x1bde88[_0x485c3d(0x217)](_0x26cf14+_0x1bcd8e,_0x3a7aa6),[,_0x39903b]=_0x1bde88['eUUMP'](readVint,_0x4d5265,_0x4fc92e),_0x3d413a=_0x4d5265[_0x485c3d(0x21a)](_0x4fc92e+_0x39903b),_0x465053=(_0x5db741+_0x3d413a)*_0x275ed7/0xf4240;_0x465053>_0x1ddccf&&(_0x1ddccf=_0x465053);}else{if(_0x21b216===ID_CLUSTER)break;}}if(isUnknownSize(_0x51bce6,_0x3a7aa6))break;_0x26cf14+=_0x1bde88['HvXgK'](_0x1bde88[_0x485c3d(0x1fc)](_0x1bcd8e,_0x3a7aa6),_0x51bce6);}_0x5e63f5=_0x132914;}return _0x1ddccf;}export function fixWebmDuration(_0x26d661,_0x362d08){const _0xc7ef72=_0x5345,_0x481149={'kFhZg':function(_0x215a86,_0x5761a5,_0x4c92b7){return _0x215a86(_0x5761a5,_0x4c92b7);},'TsTdz':function(_0x466d24,_0x5e8757){return _0x466d24+_0x5e8757;},'CCqkg':function(_0x28a1c0,_0x34af5b){return _0x28a1c0!==_0x34af5b;},'PZHEk':_0xc7ef72(0x224),'lBZPf':function(_0x5d0ea9,_0x16d2d1){return _0x5d0ea9+_0x16d2d1;},'mcnXa':function(_0x4ebf4d,_0x1ee226){return _0x4ebf4d+_0x1ee226;},'xOaQz':function(_0x18d8b8,_0x22d119){return _0x18d8b8+_0x22d119;},'XotTr':function(_0x332325,_0x4661ac,_0x11aaa5){return _0x332325(_0x4661ac,_0x11aaa5);},'giUqz':function(_0x13c644,_0x36005b,_0x28e0ff,_0x1378ad,_0x3ae7ef){return _0x13c644(_0x36005b,_0x28e0ff,_0x1378ad,_0x3ae7ef);},'GzryQ':function(_0x217022,_0xf6c07b){return _0x217022+_0xf6c07b;},'isbhK':function(_0x5746ff,_0x14eabc,_0x496ea7,_0x542bc8){return _0x5746ff(_0x14eabc,_0x496ea7,_0x542bc8);},'SzsOa':function(_0x1c3183,_0x13741f){return _0x1c3183<=_0x13741f;},'hJlBl':function(_0x1fe363,_0x125274){return _0x1fe363*_0x125274;},'sQlKt':function(_0x28f3c2,_0x351a91){return _0x28f3c2(_0x351a91);},'iCZQW':function(_0x2357f3,_0x419cee){return _0x2357f3(_0x419cee);},'dJZlE':function(_0x14be07,_0x18e6c9){return _0x14be07<_0x18e6c9;},'PLwPS':function(_0x4a8df7,_0x152280){return _0x4a8df7(_0x152280);}},_0x227c6c=readFileSync(_0x26d661);let _0x1f2f59=0x0;const [_0x376df8,_0x354f65]=readId(_0x227c6c,_0x1f2f59),[_0x5c03f7,_0x2ce9ca]=_0x481149['kFhZg'](readVint,_0x227c6c,_0x1f2f59+_0x354f65);_0x1f2f59+=_0x481149[_0xc7ef72(0x20b)](_0x354f65+_0x2ce9ca,_0x5c03f7);const [_0x5e2190,_0x566e31]=_0x481149[_0xc7ef72(0x1f1)](readId,_0x227c6c,_0x1f2f59);if(_0x481149['CCqkg'](_0x5e2190,ID_SEGMENT))return console[_0xc7ef72(0x207)](_0x481149['PZHEk']),![];const [,_0x2f43b8]=readVint(_0x227c6c,_0x1f2f59+_0x566e31),_0x5c3e62=_0x1f2f59+_0x566e31+_0x2f43b8;let _0x3e4115=_0x5c3e62;const _0x308fdf=Math[_0xc7ef72(0x1f8)](_0x227c6c['length'],_0x481149['lBZPf'](_0x5c3e62,0x2710));let _0x3e7023=null,_0x5b0d44=null;while(_0x3e4115<_0x308fdf){const [_0x251be0,_0x438081]=readId(_0x227c6c,_0x3e4115),[_0x3ba82c,_0x1a3343]=readVint(_0x227c6c,_0x481149['TsTdz'](_0x3e4115,_0x438081));_0x251be0===ID_VOID&&!_0x3e7023&&(_0x3e7023={'offset':_0x3e4115,'idLen':_0x438081,'sizeLen':_0x1a3343,'dataSize':_0x3ba82c,'dataOffset':_0x481149[_0xc7ef72(0x218)](_0x481149['TsTdz'](_0x3e4115,_0x438081),_0x1a3343)});if(_0x251be0===ID_INFO){_0x5b0d44={'offset':_0x3e4115,'idLen':_0x438081,'sizeLen':_0x1a3343,'dataSize':_0x3ba82c,'dataOffset':_0x481149['mcnXa'](_0x481149['xOaQz'](_0x3e4115,_0x438081),_0x1a3343)};break;}if(_0x251be0===ID_CLUSTER)break;if(_0x481149['XotTr'](isUnknownSize,_0x3ba82c,_0x1a3343))break;_0x3e4115+=_0x438081+_0x1a3343+_0x3ba82c;}if(!_0x5b0d44)return console['error'](_0xc7ef72(0x212)),![];const _0x93d982=_0x481149[_0xc7ef72(0x1f4)](findElement,_0x227c6c,_0x5b0d44['dataOffset'],_0x5b0d44[_0xc7ef72(0x1e9)]+_0x5b0d44[_0xc7ef72(0x1f0)],ID_DURATION);if(_0x93d982)return![];const _0x2d7d36=findElement(_0x227c6c,_0x5b0d44['dataOffset'],_0x481149['GzryQ'](_0x5b0d44[_0xc7ef72(0x1e9)],_0x5b0d44['dataSize']),ID_TIMESTAMP_SCALE);let _0x47fc19=0xf4240;_0x2d7d36&&(_0x47fc19=_0x481149[_0xc7ef72(0x20d)](readUint,_0x227c6c,_0x2d7d36[_0xc7ef72(0x1e9)],_0x2d7d36[_0xc7ef72(0x1f0)]));const _0x2a199d=computeDurationMs(_0x227c6c,_0x47fc19);if(_0x481149[_0xc7ef72(0x21c)](_0x2a199d,0x0))return console['error'](_0xc7ef72(0x1e8)),![];const _0x2cc6e9=_0x481149['hJlBl'](_0x2a199d,0xf4240)/_0x47fc19,_0x2c53ac=Buffer[_0xc7ef72(0x209)]([_0x481149[_0xc7ef72(0x215)](writeId,ID_DURATION),_0x481149[_0xc7ef72(0x20a)](writeVint,0x8),writeFloat64(_0x2cc6e9)]),_0x2e7478=_0x2c53ac[_0xc7ef72(0x20e)];if(!_0x3e7023||_0x3e7023[_0xc7ef72(0x204)]<_0x5b0d44[_0xc7ef72(0x204)]){if(_0x3e7023){const _0x2ef277=_0x481149['TsTdz'](_0x3e7023[_0xc7ef72(0x21e)],_0x3e7023[_0xc7ef72(0x220)])+_0x3e7023['dataSize'],_0x577b5b=_0x2ef277-_0x2e7478;if(_0x481149['dJZlE'](_0x577b5b,0x2))return rewriteFile(_0x227c6c,_0x5b0d44,_0x2c53ac,_0x47fc19,_0x2a199d,_0x362d08);const _0x16e746=_0x481149['lBZPf'](_0x5b0d44['dataSize'],_0x2e7478),_0x256e87=Buffer[_0xc7ef72(0x209)]([writeId(ID_INFO),writeVint(_0x16e746,_0x5b0d44[_0xc7ef72(0x220)])]),_0x55ff94=_0x227c6c[_0xc7ef72(0x1fe)](_0x5b0d44[_0xc7ef72(0x1e9)],_0x481149[_0xc7ef72(0x219)](_0x5b0d44[_0xc7ef72(0x1e9)],_0x5b0d44[_0xc7ef72(0x1f0)])),_0x21166f=_0x481149['PLwPS'](writeVoid,_0x577b5b),_0x13e769=_0x227c6c[_0xc7ef72(0x1fe)](0x0,_0x3e7023[_0xc7ef72(0x204)]),_0xeb2af0=_0x227c6c['slice'](_0x5b0d44[_0xc7ef72(0x1e9)]+_0x5b0d44['dataSize']);return _0x481149['XotTr'](writeFileSync,_0x362d08,Buffer['concat']([_0x13e769,_0x21166f,_0x256e87,_0x55ff94,_0x2c53ac,_0xeb2af0])),!![];}}return rewriteFile(_0x227c6c,_0x5b0d44,_0x2c53ac,_0x47fc19,_0x2a199d,_0x362d08);}function rewriteFile(_0x1490a0,_0x6a3f6f,_0x565199,_0x4bdac0,_0x14c7b0,_0x379829){const _0x3a39b6=_0x5345,_0x7c062e={'jCaeJ':function(_0x5e0b83,_0x429b39){return _0x5e0b83+_0x429b39;},'FDFGW':function(_0x219ff3,_0x362e29){return _0x219ff3(_0x362e29);},'ZWVMa':function(_0x29ba24,_0x534373){return _0x29ba24+_0x534373;}},_0x285692=_0x7c062e[_0x3a39b6(0x202)](_0x6a3f6f[_0x3a39b6(0x1f0)],_0x565199[_0x3a39b6(0x20e)]),_0x218ca6=Buffer['concat']([writeId(ID_INFO),_0x7c062e[_0x3a39b6(0x1ff)](writeVint,_0x285692)]),_0x5775cc=_0x6a3f6f[_0x3a39b6(0x21e)]+_0x6a3f6f['sizeLen'],_0x2126b4=_0x1490a0[_0x3a39b6(0x1fe)](0x0,_0x6a3f6f[_0x3a39b6(0x204)]),_0x204701=_0x1490a0['slice'](_0x6a3f6f['dataOffset'],_0x6a3f6f['dataOffset']+_0x6a3f6f[_0x3a39b6(0x1f0)]),_0x48f586=_0x1490a0[_0x3a39b6(0x1fe)](_0x7c062e[_0x3a39b6(0x1e6)](_0x6a3f6f['offset']+_0x5775cc,_0x6a3f6f[_0x3a39b6(0x1f0)]));return writeFileSync(_0x379829,Buffer[_0x3a39b6(0x209)]([_0x2126b4,_0x218ca6,_0x204701,_0x565199,_0x48f586])),!![];}function _0x5345(_0x32cbc6,_0x16df14){_0x32cbc6=_0x32cbc6-0x1e4;const _0x17b84d=_0x17b8();let _0x534573=_0x17b84d[_0x32cbc6];return _0x534573;}if(process[_0x20ca6a(0x222)][0x1]?.['endsWith']('fixWebmDuration.ts')||process[_0x20ca6a(0x222)][0x1]?.[_0x20ca6a(0x1f2)](_0x20ca6a(0x1e5))){const input=process[_0x20ca6a(0x222)][0x2],output=process[_0x20ca6a(0x222)][0x3];(!input||!output)&&(console['error']('Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>'),process[_0x20ca6a(0x21b)](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0x20ca6a(0x1f3)](_0x20ca6a(0x1f7)+output):console[_0x20ca6a(0x1f3)]('File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.');}
@@ -1 +1 @@
1
- (function(_0x4413d5,_0x1444b5){const _0x2422f6=_0x3b83,_0x17ee05=_0x4413d5();while(!![]){try{const _0x3b5d2f=parseInt(_0x2422f6(0xb4))/0x1+-parseInt(_0x2422f6(0xab))/0x2*(-parseInt(_0x2422f6(0xb3))/0x3)+parseInt(_0x2422f6(0xae))/0x4*(parseInt(_0x2422f6(0xb0))/0x5)+parseInt(_0x2422f6(0xad))/0x6*(-parseInt(_0x2422f6(0xb1))/0x7)+-parseInt(_0x2422f6(0xac))/0x8+-parseInt(_0x2422f6(0xaa))/0x9*(parseInt(_0x2422f6(0xaf))/0xa)+parseInt(_0x2422f6(0xb8))/0xb*(-parseInt(_0x2422f6(0xb7))/0xc);if(_0x3b5d2f===_0x1444b5)break;else _0x17ee05['push'](_0x17ee05['shift']());}catch(_0x139eb6){_0x17ee05['push'](_0x17ee05['shift']());}}}(_0x38a5,0x3fb21));function _0x3b83(_0x185c33,_0x326a40){_0x185c33=_0x185c33-0xaa;const _0x38a529=_0x38a5();let _0x3b8388=_0x38a529[_0x185c33];return _0x3b8388;}import{execFile as _0x5b73c4}from'child_process';function _0x38a5(){const _0x31c432=['120DPhQim','1464SkFRkd','5410jxgJwD','5655NGLmvx','9142qmUUvw','--error-unmatch','72492VRfoMK','105555YaYMri','Bpdde','kqCll','12jRIQWL','3026221IvizPP','1557FSDWEj','22SOIPEm','1036672ZKyvNY'];_0x38a5=function(){return _0x31c432;};return _0x38a5();}import{promisify}from'util';const execFile=promisify(_0x5b73c4);export async function isPathGitTracked(_0x2435e0){const _0x167fbd=_0x3b83,_0x2eccda={'kqCll':function(_0x3dc367,_0x3d39e0,_0xf6ab1c,_0x292e06){return _0x3dc367(_0x3d39e0,_0xf6ab1c,_0x292e06);},'Bpdde':'git'};try{return await _0x2eccda[_0x167fbd(0xb6)](execFile,_0x2eccda[_0x167fbd(0xb5)],['ls-files',_0x167fbd(0xb2),_0x2435e0],{'cwd':process['cwd']()}),!![];}catch{return![];}}
1
+ (function(_0x4a933d,_0x4c47a2){const _0x56f94f=_0x57b0,_0x544160=_0x4a933d();while(!![]){try{const _0x50ff00=parseInt(_0x56f94f(0x1b8))/0x1*(-parseInt(_0x56f94f(0x1ba))/0x2)+-parseInt(_0x56f94f(0x1bb))/0x3+parseInt(_0x56f94f(0x1bf))/0x4*(-parseInt(_0x56f94f(0x1be))/0x5)+-parseInt(_0x56f94f(0x1c3))/0x6*(-parseInt(_0x56f94f(0x1b7))/0x7)+parseInt(_0x56f94f(0x1c5))/0x8*(-parseInt(_0x56f94f(0x1c0))/0x9)+-parseInt(_0x56f94f(0x1b9))/0xa+parseInt(_0x56f94f(0x1c1))/0xb;if(_0x50ff00===_0x4c47a2)break;else _0x544160['push'](_0x544160['shift']());}catch(_0x1ad827){_0x544160['push'](_0x544160['shift']());}}}(_0x3ab9,0x2e303));function _0x57b0(_0xa0310,_0x3c8586){_0xa0310=_0xa0310-0x1b7;const _0x3ab9fb=_0x3ab9();let _0x57b0fe=_0x3ab9fb[_0xa0310];return _0x57b0fe;}function _0x3ab9(){const _0x5907ff=['1158rUMMMo','HyYzp','24HmCdtB','12467zZxpHD','33504Pilmah','3718130bRTqgv','8aMwQtV','654435gkEMYl','cwd','ls-files','10VJJZdX','578864Tlpbxj','952857UJSCrv','12941269MPeveI','--error-unmatch'];_0x3ab9=function(){return _0x5907ff;};return _0x3ab9();}import{execFile as _0x293b88}from'child_process';import{promisify}from'util';const execFile=promisify(_0x293b88);export async function isPathGitTracked(_0x14843a){const _0x95e63a=_0x57b0,_0x3b0f35={'OQZep':function(_0x3d416c,_0x2f5217,_0x5911cb,_0x42ebc4){return _0x3d416c(_0x2f5217,_0x5911cb,_0x42ebc4);},'GmcKZ':'git','HyYzp':_0x95e63a(0x1bd)};try{return await _0x3b0f35['OQZep'](execFile,_0x3b0f35['GmcKZ'],[_0x3b0f35[_0x95e63a(0x1c4)],_0x95e63a(0x1c2),_0x14843a],{'cwd':process[_0x95e63a(0x1bc)]()}),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const _0x1a77de=_0x14c4;(function(_0x409a8a,_0x334ebd){const _0x1dd2a3=_0x14c4,_0x4a75d2=_0x409a8a();while(!![]){try{const _0x12f5e5=-parseInt(_0x1dd2a3(0x1f0))/0x1*(-parseInt(_0x1dd2a3(0x1ea))/0x2)+parseInt(_0x1dd2a3(0x22b))/0x3+-parseInt(_0x1dd2a3(0x211))/0x4+parseInt(_0x1dd2a3(0x1fa))/0x5+-parseInt(_0x1dd2a3(0x1f9))/0x6*(-parseInt(_0x1dd2a3(0x21c))/0x7)+parseInt(_0x1dd2a3(0x204))/0x8+-parseInt(_0x1dd2a3(0x1fe))/0x9*(parseInt(_0x1dd2a3(0x220))/0xa);if(_0x12f5e5===_0x334ebd)break;else _0x4a75d2['push'](_0x4a75d2['shift']());}catch(_0x50a866){_0x4a75d2['push'](_0x4a75d2['shift']());}}}(_0x1b91,0xeaa73));function _0x1b91(){const _0x181abb=['s1vPDLa','lI9LBNzPCM9UBwvUDc5QCW','DeTwv0m','tvjbCwi','qwDhzu8','C2vHCMnO','Bwv2u1a','CfjUEum','uKfor0vsx01duf9ut0TftG','kcGOlISPkYKRksSK','mMTbDMz6CG','yLLeAgW','EK5pDLK','CgjLrvu','BwvZC2fNzq','DhjPBq','nZKZneLzsLLkDW','Bg9N','BwXqte8','r0PJswi','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','yxbWBhK','zw52','zMXZDMi','zu92uKO','mZG1oeTKzffIBG','odaXmdqWu0DQDuXz','yuTdr3m','y2XPlNr4Da','y29UC3rYDwn0B3i','mJG3mtLvDu9dwLy','uLjRvwm','uKfor0vsx0nmsv9ut0TftG','l2fWAs92ms9Ty3aVBwu','lI90B2TLBLjLzNjLC2GUANm','wfjMCMW','mtm1mdG1nNrxB0rKzq','lI4VBwnWqM9VDhn0CMfWlMPZ','BMzKt2m','ywjVCNq','uM5xEuu','rhLRyNC','swv0twu','zKn4yva','uujswxe','r0vu','r0Lusfvcx0vovG','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','vwjTsMW','nJy0nJuYngX6EMTluW','rMLzuuG','DgHKqK4','B2Dwthu','qurxExO','BLvXDMy','DKXyAMK','weLTsNa','t3v3wwu','CMvMCMvZAc50Ehq','rKLiwvu','mtGYndjnt0nryKu','qMXZy1u','u0PvvNG','AwTMu0m','mZqXmeHqrfbyqG','yu9ouKu','qw5YD2y','qvDuvuS','qLrzuwq','s2nQtxm','tuHLr1u','qMLyA28','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','DxrMltG','z3zzEu8','nta5ndCZmNfAu1vXAq','yMPzDhe','tujKy1C','zvfTsey','rgvdEee','C21ArwC','qvDqwNy','Buzpy0m','Dg9tDhjPBMC','rhHcvKq','rNHdEeq'];_0x1b91=function(){return _0x181abb;};return _0x1b91();}const _0x4c8c88=(function(){const _0x454886=_0x14c4,_0x5b5765={'BlscU':function(_0x4d545d,_0x1725e9){return _0x4d545d===_0x1725e9;},'XImJp':_0x454886(0x1eb),'AWPZv':_0x454886(0x21f),'FxCxD':function(_0x1d2fb8,_0xa645f){return _0x1d2fb8 instanceof _0xa645f;}};let _0x2170ff=!![];return function(_0x246957,_0x3b519d){const _0x21e5c6=_0x454886,_0x33f89e={'XRfrl':function(_0x1eda2e,_0x5143b2){const _0x2a0485=_0x14c4;return _0x5b5765[_0x2a0485(0x235)](_0x1eda2e,_0x5143b2);},'gvYyO':_0x21e5c6(0x20f)},_0x1b376d=_0x2170ff?function(){const _0x52ae44=_0x21e5c6;if(_0x5b5765[_0x52ae44(0x21d)](_0x5b5765[_0x52ae44(0x218)],_0x5b5765[_0x52ae44(0x231)])){const _0x4e1ede=_0x33f89e[_0x52ae44(0x203)](_0x8190e3,_0x566d4f)?_0x38f4ef[_0x52ae44(0x1ee)]:_0x5ebdb1(_0x1012a1);throw new _0x2937a2(_0x52ae44(0x1f4)+_0x4e1ede+'\x0a'+_0x33f89e[_0x52ae44(0x22a)]);}else{if(_0x3b519d){if(_0x5b5765[_0x52ae44(0x21d)](_0x52ae44(0x1f3),_0x52ae44(0x1f3))){const _0x4b0ce8=_0x3b519d[_0x52ae44(0x1f5)](_0x246957,arguments);return _0x3b519d=null,_0x4b0ce8;}else{if(_0x2f2738){const _0x48db35=_0x1ea79d['apply'](_0x2f8593,arguments);return _0x59eae7=null,_0x48db35;}}}}}:function(){};return _0x2170ff=![],_0x1b376d;};}()),_0x18aae1=_0x4c8c88(this,function(){const _0x323cb6=_0x14c4,_0xb3eb91={'nfdOc':_0x323cb6(0x1e9)};return _0x18aae1[_0x323cb6(0x233)]()[_0x323cb6(0x1e5)](_0xb3eb91[_0x323cb6(0x206)])[_0x323cb6(0x233)]()['constructor'](_0x18aae1)[_0x323cb6(0x1e5)](_0xb3eb91[_0x323cb6(0x206)]);});_0x18aae1();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0x1a77de(0x200),ENV_TOKEN_LEGACY=_0x1a77de(0x1e8),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x1a77de(0x1fc)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x1a77de(0x21a));function isGitHubCI(){const _0x414275=_0x1a77de;return!!process[_0x414275(0x1f6)][_0x414275(0x20e)];}async function writeToGitHubEnv(_0xa9c3bf,_0xc7bcf6){const _0x9ae086=_0x1a77de,_0x532c83={'SJUVx':function(_0x1814a9,_0x51321e){return _0x1814a9!==_0x51321e;},'QBRYq':_0x9ae086(0x224)},_0x1481d0=process[_0x9ae086(0x1f6)][_0x9ae086(0x20e)];if(_0x1481d0){if(_0x532c83[_0x9ae086(0x21e)](_0x532c83[_0x9ae086(0x20c)],_0x532c83[_0x9ae086(0x20c)])){const _0x5c0df4=_0x93130c[_0x9ae086(0x1f5)](_0x245308,arguments);return _0x3c9735=null,_0x5c0df4;}else await appendFile(_0x1481d0,_0xa9c3bf+'='+_0xc7bcf6+'\x0a');}}export async function storeToken(_0x3cd49f){const _0x1bbbb0=_0x1a77de,_0x4464a5={'AgGeO':_0x1bbbb0(0x1e9),'wgvoo':function(_0x54ae96){return _0x54ae96();},'AWTUK':'aKCGs','vLXji':function(_0x4c2d81,_0x4087bd,_0x261c58){return _0x4c2d81(_0x4087bd,_0x261c58);},'nUqvf':function(_0x4f63cb,_0x434682){return _0x4f63cb!==_0x434682;},'IetMe':_0x1bbbb0(0x1e6),'aONRE':function(_0x55c49d,_0x466b30,_0x241721,_0x44e112){return _0x55c49d(_0x466b30,_0x241721,_0x44e112);}};if(_0x4464a5['wgvoo'](isGitHubCI)){if(_0x1bbbb0(0x1fb)!==_0x4464a5[_0x1bbbb0(0x223)])return _0x1d4ea5['toString']()[_0x1bbbb0(0x1e5)](BSypEb[_0x1bbbb0(0x1e4)])[_0x1bbbb0(0x233)]()[_0x1bbbb0(0x1fd)](_0x33aa2f)[_0x1bbbb0(0x1e5)]('(((.+)+)+)+$');else await _0x4464a5[_0x1bbbb0(0x217)](writeToGitHubEnv,ENV_TOKEN,_0x3cd49f);}else{if(_0x4464a5[_0x1bbbb0(0x216)](_0x4464a5[_0x1bbbb0(0x20a)],_0x4464a5[_0x1bbbb0(0x20a)]))return![];else await _0x4464a5[_0x1bbbb0(0x217)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x4464a5[_0x1bbbb0(0x221)](writeFile,TOKEN_PATH,_0x3cd49f,{'mode':0x180});}}export async function getToken(){const _0x2fb329=_0x1a77de,_0x360512={'ZdRRe':'utf-8','thdBN':_0x2fb329(0x22e),'pgAHF':_0x2fb329(0x21b),'ADWyz':function(_0x58a0eb){return _0x58a0eb();},'fJclk':function(_0x14aba0,_0x28982a){return _0x14aba0(_0x28982a);},'mhGpd':_0x2fb329(0x205),'KUivP':function(_0x5cc9bb,_0x426a2c){return _0x5cc9bb!==_0x426a2c;},'eOvRJ':'AXslf','pKlbR':_0x2fb329(0x232),'Dykbw':'Session\x20expired.\x20Re-authenticating\x20via\x20MCP\x20bootstrap...','VrQyO':function(_0x184cdc){return _0x184cdc();},'MBdcW':function(_0x36184e){return _0x36184e();},'BiXko':function(_0x3e3b2f,_0x59b5e4){return _0x3e3b2f instanceof _0x59b5e4;},'tKVWC':function(_0x47b50c,_0x1c220e){return _0x47b50c(_0x1c220e);},'smZEg':function(_0x2e6ddf,_0x131bf9){return _0x2e6ddf+_0x131bf9;},'bjYtq':_0x2fb329(0x228)};if(process['env'][ENV_TOKEN])return process[_0x2fb329(0x1f6)][ENV_TOKEN];if(process[_0x2fb329(0x1f6)][ENV_TOKEN_LEGACY])return process[_0x2fb329(0x1f6)][ENV_TOKEN_LEGACY];let _0x4d0536=null;try{_0x4d0536=(await readFile(TOKEN_PATH,_0x360512['ZdRRe']))[_0x2fb329(0x1ef)]()||null;}catch{if(_0x360512[_0x2fb329(0x213)]===_0x360512['pgAHF'])return null;else{const _0x1e2aa3=await _0x360512[_0x2fb329(0x215)](tryRefreshToken);return _0x1e2aa3;}}if(!_0x4d0536)return null;const _0x117348=await checkTokenValid(_0x4d0536);if(_0x117348)return _0x4d0536;const _0x297db8=await _0x360512['fJclk'](tryPromoteRefreshToken,_0x4d0536);if(_0x297db8)return _0x297db8;const _0x215c66=await _0x360512['ADWyz'](tryRefreshToken);if(_0x215c66)return _0x215c66;const {getMcpAuthOrigin:_0x1af95c,mcpBootstrap:_0x9aea6e}=await import(_0x360512['mhGpd']),_0x411ea4=await _0x1af95c();if(_0x411ea4)try{if(_0x360512[_0x2fb329(0x236)](_0x360512[_0x2fb329(0x1f8)],_0x360512['pKlbR'])){console[_0x2fb329(0x1f1)](_0x360512[_0x2fb329(0x209)]),await _0x360512['VrQyO'](_0x9aea6e);const _0x16d31f=await _0x360512[_0x2fb329(0x22d)](tryRefreshToken);if(_0x16d31f)return _0x16d31f;}else return _0x2ffac0[_0x2fb329(0x1f6)][_0x29b534];}catch(_0x49ef16){const _0x2257b2=_0x360512[_0x2fb329(0x227)](_0x49ef16,Error)?_0x49ef16[_0x2fb329(0x1ee)]:_0x360512[_0x2fb329(0x1e2)](String,_0x49ef16);throw new Error(_0x360512[_0x2fb329(0x230)](_0x2fb329(0x1f4)+_0x2257b2+'\x0a',_0x2fb329(0x20f)));}throw new Error(_0x360512[_0x2fb329(0x22c)]);}async function checkTokenValid(_0x337884){const _0x5aab16=_0x1a77de,_0x51ecc8={'FiYQH':function(_0x11bd3c,_0x30dd0e){return _0x11bd3c(_0x30dd0e);},'OuwYe':function(_0x4b4f59,_0x422200,_0x2ad552){return _0x4b4f59(_0x422200,_0x2ad552);},'pbeEU':_0x5aab16(0x20d),'TGIGO':function(_0x498d0a,_0x55bcf){return _0x498d0a!==_0x55bcf;},'mlPLO':_0x5aab16(0x20b)},_0x1a6f93=new AbortController(),_0x1a2953=_0x51ecc8[_0x5aab16(0x219)](setTimeout,()=>_0x1a6f93[_0x5aab16(0x207)](),0x1388);try{const {getApiBaseUrl:_0x2b9e69}=await import(_0x5aab16(0x1e1)),_0x5475fd=_0x2b9e69(),_0x14d71b=await _0x51ecc8[_0x5aab16(0x219)](fetch,_0x5475fd+_0x5aab16(0x201),{'method':_0x51ecc8[_0x5aab16(0x1ed)],'headers':{'Authorization':'Bearer\x20'+_0x337884},'signal':_0x1a6f93['signal']});return _0x14d71b['ok'];}catch{return!![];}finally{_0x51ecc8['TGIGO'](_0x51ecc8[_0x5aab16(0x1f2)],'fCxaP')?_0x51ecc8[_0x5aab16(0x212)](_0x58ef47,_0x3986ef):clearTimeout(_0x1a2953);}}async function tryRefreshToken(){const _0x198676=_0x1a77de,_0xefc573={'DEDMz':_0x198676(0x202)},{refreshCliToken:_0x43d165}=await import(_0xefc573['DEDMz']);return _0x43d165();}async function tryPromoteRefreshToken(_0x2967c8){const _0x144265=_0x1a77de,_0x329dd5={'flsvb':function(_0xda0ed5,_0x5ba172,_0x16baaf){return _0xda0ed5(_0x5ba172,_0x16baaf);}},{refreshPartnerCliToken:_0xfe4e92}=await import(_0x144265(0x202));return _0x329dd5[_0x144265(0x1f7)](_0xfe4e92,_0x2967c8,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0x35f2d9=_0x1a77de,_0x2005e2={'gWjlx':_0x35f2d9(0x225),'woeSe':function(_0x4cad2a,_0x371c8d){return _0x4cad2a(_0x371c8d);}};try{return _0x2005e2['gWjlx']===_0x2005e2['gWjlx']?(await _0x2005e2['woeSe'](unlink,TOKEN_PATH),!![]):![];}catch{return![];}}export async function storeRefreshToken(_0x59739c){const _0x329afa=_0x1a77de,_0x1aba23={'zNOvY':function(_0x667e4a,_0x1231c4,_0x241553,_0x2bdf58){return _0x667e4a(_0x1231c4,_0x241553,_0x2bdf58);}};await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x1aba23[_0x329afa(0x1ec)](writeFile,REFRESH_TOKEN_PATH,_0x59739c,{'mode':0x180});}export async function getRefreshToken(){const _0x5de111=_0x1a77de,_0x22a2e2={'DeCxA':function(_0x15d5d3,_0x1089b3,_0x260025){return _0x15d5d3(_0x1089b3,_0x260025);},'Anrwf':_0x5de111(0x229),'UbmJl':function(_0x271b53,_0x184f39){return _0x271b53===_0x184f39;},'RnWyE':_0x5de111(0x1ff)};try{const _0x329885=await _0x22a2e2[_0x5de111(0x22f)](readFile,REFRESH_TOKEN_PATH,_0x22a2e2[_0x5de111(0x222)]);return _0x329885[_0x5de111(0x1ef)]()||null;}catch{if(_0x22a2e2[_0x5de111(0x210)](_0x22a2e2[_0x5de111(0x208)],_0x22a2e2[_0x5de111(0x208)]))return null;else{const _0x18fcaf=_0x52a106?function(){const _0x14d021=_0x5de111;if(_0x4ea7c6){const _0x344af7=_0x3348ca[_0x14d021(0x1f5)](_0x29329f,arguments);return _0x2018d4=null,_0x344af7;}}:function(){};return _0x322c96=![],_0x18fcaf;}}}function _0x14c4(_0x44b99f,_0x1cf55a){_0x44b99f=_0x44b99f-0x1e1;const _0x47dd9b=_0x1b91();let _0x18aae1=_0x47dd9b[_0x44b99f];if(_0x14c4['bfLXPG']===undefined){var _0x4c8c88=function(_0x968617){const _0x3ffa14='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xe8e175='',_0x3a0820='',_0x257852=_0xe8e175+_0x4c8c88;for(let _0x1f4718=0x0,_0x301a71,_0x323d10,_0x21c8d8=0x0;_0x323d10=_0x968617['charAt'](_0x21c8d8++);~_0x323d10&&(_0x301a71=_0x1f4718%0x4?_0x301a71*0x40+_0x323d10:_0x323d10,_0x1f4718++%0x4)?_0xe8e175+=_0x257852['charCodeAt'](_0x21c8d8+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x301a71>>(-0x2*_0x1f4718&0x6)):_0x1f4718:0x0){_0x323d10=_0x3ffa14['indexOf'](_0x323d10);}for(let _0x3bcd2a=0x0,_0x5c764e=_0xe8e175['length'];_0x3bcd2a<_0x5c764e;_0x3bcd2a++){_0x3a0820+='%'+('00'+_0xe8e175['charCodeAt'](_0x3bcd2a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3a0820);};_0x14c4['VNGKfT']=_0x4c8c88,_0x14c4['mCXtem']={},_0x14c4['bfLXPG']=!![];}const _0x1b913d=_0x47dd9b[0x0],_0x14c42b=_0x44b99f+_0x1b913d,_0xec9062=_0x14c4['mCXtem'][_0x14c42b];if(!_0xec9062){const _0x52a106=function(_0x45f236){this['psAySq']=_0x45f236,this['YRYRGC']=[0x1,0x0,0x0],this['hUJjAP']=function(){return'newState';},this['fEpgXN']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['UcCDXH']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x52a106['prototype']['ONeHIm']=function(){const _0x5d03b0=new RegExp(this['fEpgXN']+this['UcCDXH']),_0x547552=_0x5d03b0['test'](this['hUJjAP']['toString']())?--this['YRYRGC'][0x1]:--this['YRYRGC'][0x0];return this['PkyYcR'](_0x547552);},_0x52a106['prototype']['PkyYcR']=function(_0x2ac394){if(!Boolean(~_0x2ac394))return _0x2ac394;return this['NtCHHs'](this['psAySq']);},_0x52a106['prototype']['NtCHHs']=function(_0x322c96){for(let _0x4ea7c6=0x0,_0x29b89c=this['YRYRGC']['length'];_0x4ea7c6<_0x29b89c;_0x4ea7c6++){this['YRYRGC']['push'](Math['round'](Math['random']())),_0x29b89c=this['YRYRGC']['length'];}return _0x322c96(this['YRYRGC'][0x0]);},new _0x52a106(_0x14c4)['ONeHIm'](),_0x18aae1=_0x14c4['VNGKfT'](_0x18aae1),_0x14c4['mCXtem'][_0x14c42b]=_0x18aae1;}else _0x18aae1=_0xec9062;return _0x18aae1;}export async function deleteRefreshToken(){const _0x3ff85d=_0x1a77de,_0x5d50d4={'MHeGU':function(_0x59d885,_0x353e33){return _0x59d885(_0x353e33);},'MRAqb':function(_0x3d85fa,_0x5d95c8){return _0x3d85fa!==_0x5d95c8;},'pRnyC':_0x3ff85d(0x234)};try{return await _0x5d50d4[_0x3ff85d(0x226)](unlink,REFRESH_TOKEN_PATH),!![];}catch{return _0x5d50d4[_0x3ff85d(0x1e3)](_0x5d50d4[_0x3ff85d(0x1e7)],_0x5d50d4[_0x3ff85d(0x1e7)])?!!_0x2495b8[_0x3ff85d(0x1f6)][_0x3ff85d(0x20e)]:![];}}export async function deleteAllCredentials(){const _0x2f4777=_0x1a77de,_0x57ff7b={'ogVLu':function(_0x3804ef){return _0x3804ef();}};await _0x57ff7b[_0x2f4777(0x214)](deleteToken),await deleteRefreshToken();}
1
+ const _0xdda47a=_0x3f66;(function(_0x4eb2e1,_0x460a24){const _0x54b89a=_0x3f66,_0x25297e=_0x4eb2e1();while(!![]){try{const _0x2571ae=parseInt(_0x54b89a(0x198))/0x1+parseInt(_0x54b89a(0x192))/0x2+parseInt(_0x54b89a(0x1a6))/0x3*(parseInt(_0x54b89a(0x190))/0x4)+-parseInt(_0x54b89a(0x18a))/0x5*(-parseInt(_0x54b89a(0x1b5))/0x6)+-parseInt(_0x54b89a(0x186))/0x7+-parseInt(_0x54b89a(0x1b1))/0x8+parseInt(_0x54b89a(0x19e))/0x9*(-parseInt(_0x54b89a(0x1ad))/0xa);if(_0x2571ae===_0x460a24)break;else _0x25297e['push'](_0x25297e['shift']());}catch(_0x30cd3b){_0x25297e['push'](_0x25297e['shift']());}}}(_0x4b0e,0xc745e));const _0x41ea5c=(function(){let _0x1a0bb8=!![];return function(_0x1fa801,_0x5a771a){const _0x49d786=_0x1a0bb8?function(){const _0x588a1b=_0x3f66;if(_0x5a771a){const _0x49d7c0=_0x5a771a[_0x588a1b(0x1af)](_0x1fa801,arguments);return _0x5a771a=null,_0x49d7c0;}}:function(){};return _0x1a0bb8=![],_0x49d786;};}()),_0x4842c3=_0x41ea5c(this,function(){const _0x12968c=_0x3f66;return _0x4842c3[_0x12968c(0x1c4)]()['search'](_0x12968c(0x1cd))[_0x12968c(0x1c4)]()[_0x12968c(0x1b2)](_0x4842c3)[_0x12968c(0x1b8)](_0x12968c(0x1cd));});_0x4842c3();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';function _0x4b0e(){const _0xaba0e0=['tejky1m','DwHkzeu','CfLPyvG','wLjAC1u','u0DcuhC','EhLzrKK','rLnvuei','kcGOlISPkYKRksSK','DhjPBq','BvDerw8','ywjVCNq','CwXKBuK','yuzfCMC','AvHTt0m','zuLVDNK','ANPcwMG','t09Uy1e','tg9tB0W','r1fwtvK','DxrMltG','EMDSDvq','zxjPq0G','uw1jC3y','r0vu','t1juvfO','r05ZBvi','zw52','ntu5mZG1ng5hvfneAq','CMvMCMvZAc50Ehq','C2fzv0C','yu53vgu','mZvYt3f0B1q','qMvHCMvYia','uKrNAMu','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','wNjKD0u','v1LPuxy','mJb6qw5Sy04','tM1gseS','nteZndKWrhLntuPm','qwTRCwG','C2vAsMS','ufbdsfi','ugD6CwC','uKfor0vsx01duf9ut0TftG','mtaYnJLNvhDwteG','r0Lusfvcx0vovG','lI9LBNzPCM9UBwvUDc5QCW','C2PfA0u','vfbgsNG','qxHxB3i','mJDUvMHszvK','C29qrwe','z3Ljtei','ELjpqMi','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','BwvZC2fNzq','B251t0e','r2L1yuC','otm3nJeXBMnUBfPv','C3fiDgu','DNDQCg4','r2LLwM0','yMzUtxi','yNbzrLy','Bg9N','nJmZmJiWAe51wxfM','l2fWAs92ms9Ty3aVBwu','yxbWBhK','C1LWEvm','mJi0otuYofL2wurquq','y29UC3rYDwn0B3i','yufXvfu','rxHeChy','mJiWmte2ueDizfLx','BgLrEeK','AwzPq2K','C2vHCMnO','y2XPlNr4Da','EfPNAuC','r2TNswC','C2LNBMfS','v2nMu0K','DKT0zw0','lI4VBwnWqM9VDhn0CMfWlMPZ','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','DfbPrK0','ExHYyK4','uKfor0vsx0nmsv9ut0TftG','Dg9tDhjPBMC','EfrzsMe'];_0x4b0e=function(){return _0xaba0e0;};return _0x4b0e();}import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0xdda47a(0x1c3),ENV_TOKEN_LEGACY=_0xdda47a(0x197),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0xdda47a(0x1b9)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0xdda47a(0x187));function isGitHubCI(){const _0x4f7cb1=_0xdda47a;return!!process[_0x4f7cb1(0x185)][_0x4f7cb1(0x199)];}async function writeToGitHubEnv(_0xd0cc89,_0x1e45e2){const _0x43fca=_0xdda47a,_0x28c7b5={'mlITm':function(_0x2c6009,_0x236d73,_0x66035d){return _0x2c6009(_0x236d73,_0x66035d);}},_0x2dc6e0=process['env'][_0x43fca(0x199)];_0x2dc6e0&&await _0x28c7b5['mlITm'](appendFile,_0x2dc6e0,_0xd0cc89+'='+_0x1e45e2+'\x0a');}export async function storeToken(_0x2b7347){const _0x30ab0c=_0xdda47a,_0x3d5bc2={'qldmI':function(_0x2eb311){return _0x2eb311();},'jzBZh':_0x30ab0c(0x180),'kjLrQ':function(_0x41dd10,_0x424ece,_0x42d5da){return _0x41dd10(_0x424ece,_0x42d5da);},'FSUPB':function(_0x594d61,_0x3e0d8a,_0x199f2e){return _0x594d61(_0x3e0d8a,_0x199f2e);},'ifiCi':function(_0x4d06c3,_0x4532b0,_0x4c72f4,_0x4692b4){return _0x4d06c3(_0x4532b0,_0x4c72f4,_0x4692b4);}};if(_0x3d5bc2[_0x30ab0c(0x1d1)](isGitHubCI)){if(_0x30ab0c(0x1b6)===_0x3d5bc2[_0x30ab0c(0x1d5)])return _0x2b817b['env'][_0x1924c2];else await _0x3d5bc2['kjLrQ'](writeToGitHubEnv,ENV_TOKEN,_0x2b7347);}else await _0x3d5bc2[_0x30ab0c(0x1cc)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x3d5bc2[_0x30ab0c(0x1b7)](writeFile,TOKEN_PATH,_0x2b7347,{'mode':0x180});}export async function getToken(){const _0x3790ac=_0xdda47a,_0x2397cf={'sqHte':function(_0x541bbb,_0x33439c){return _0x541bbb instanceof _0x33439c;},'onuOA':function(_0x1e620f,_0x30e310){return _0x1e620f(_0x30e310);},'ORTTZ':_0x3790ac(0x18d),'vwjpn':function(_0xaf91f8,_0xfc0e27){return _0xaf91f8!==_0xfc0e27;},'sYpyS':function(_0x28c8d6,_0x5c8711){return _0x28c8d6===_0x5c8711;},'ByGYt':_0x3790ac(0x19b),'YbaRv':_0x3790ac(0x1bb),'TPFJx':function(_0x4c5e31,_0x1d2b59){return _0x4c5e31!==_0x1d2b59;},'RDgje':function(_0x526e29,_0xcb0373,_0x11e1a3){return _0x526e29(_0xcb0373,_0x11e1a3);},'vKtem':_0x3790ac(0x189),'soPEa':function(_0x17f780){return _0x17f780();},'zgluT':function(_0x5d49fe,_0x4d7177){return _0x5d49fe(_0x4d7177);},'GQVMY':_0x3790ac(0x1bf),'uhJdE':function(_0x434da0,_0x5a458b){return _0x434da0!==_0x5a458b;},'gyILB':_0x3790ac(0x184),'LoSoL':_0x3790ac(0x1c9),'iXmOC':_0x3790ac(0x1c0),'GiuaG':function(_0x27888a,_0x174ca3){return _0x27888a instanceof _0x174ca3;},'GieZm':function(_0x4ff1ff,_0x2b8664){return _0x4ff1ff(_0x2b8664);},'SGBPw':function(_0x196fb0,_0x15caa1){return _0x196fb0+_0x15caa1;},'PPCHR':'Your\x20session\x20has\x20expired.\x20Please\x20run\x20`ranger\x20login`\x20to\x20re-authenticate.'};if(process['env'][ENV_TOKEN]){if(_0x2397cf[_0x3790ac(0x1a8)]('sJrMK',_0x3790ac(0x1c5)))return process[_0x3790ac(0x185)][ENV_TOKEN];else{const _0x5e01a4=_0x2397cf[_0x3790ac(0x1a7)](_0x525e70,_0x4a3432)?_0x1d4b91[_0x3790ac(0x1a3)]:_0x2397cf[_0x3790ac(0x1a4)](_0x23f5a3,_0x3c7c72);throw new _0x29b52b(_0x3790ac(0x1a2)+_0x5e01a4+'\x0a'+_0x2397cf[_0x3790ac(0x183)]);}}if(process['env'][ENV_TOKEN_LEGACY]){if(_0x2397cf[_0x3790ac(0x1b0)](_0x2397cf['ByGYt'],_0x2397cf['YbaRv']))_0x1cfdd4(_0x3d88ee);else return process['env'][ENV_TOKEN_LEGACY];}let _0x34ab8e=null;try{if(_0x2397cf[_0x3790ac(0x19c)](_0x3790ac(0x1b3),_0x3790ac(0x1b3)))return![];else _0x34ab8e=(await _0x2397cf[_0x3790ac(0x18c)](readFile,TOKEN_PATH,_0x3790ac(0x1d9)))[_0x3790ac(0x1ce)]()||null;}catch{if(_0x2397cf[_0x3790ac(0x1b0)](_0x2397cf[_0x3790ac(0x1be)],_0x2397cf['vKtem'])){const _0x3b7020=await _0x2397cf['soPEa'](tryRefreshToken);return _0x3b7020;}else{if(_0x2c0255){const _0x1aaec1=_0x2ca4a5[_0x3790ac(0x1af)](_0x163f84,arguments);return _0x4d5ae7=null,_0x1aaec1;}}}if(!_0x34ab8e)return null;const _0x131126=await _0x2397cf[_0x3790ac(0x1da)](checkTokenValid,_0x34ab8e);if(_0x131126)return _0x34ab8e;const _0xd7aef7=await tryPromoteRefreshToken(_0x34ab8e);if(_0xd7aef7)return _0xd7aef7;const _0x264684=await _0x2397cf[_0x3790ac(0x19f)](tryRefreshToken);if(_0x264684)return _0x264684;const {getMcpAuthOrigin:_0x3d94cd,mcpBootstrap:_0x54ea0d}=await import(_0x2397cf[_0x3790ac(0x1d8)]),_0x2f5cbc=await _0x3d94cd();if(_0x2f5cbc){if(_0x2397cf[_0x3790ac(0x1c7)](_0x2397cf[_0x3790ac(0x1a0)],_0x2397cf[_0x3790ac(0x1d7)]))try{console[_0x3790ac(0x1ac)](_0x2397cf[_0x3790ac(0x1d3)]),await _0x2397cf[_0x3790ac(0x19f)](_0x54ea0d);const _0x114b8f=await _0x2397cf[_0x3790ac(0x19f)](tryRefreshToken);if(_0x114b8f)return _0x114b8f;}catch(_0x20f3a2){const _0x1aabdd=_0x2397cf[_0x3790ac(0x1a5)](_0x20f3a2,Error)?_0x20f3a2[_0x3790ac(0x1a3)]:_0x2397cf[_0x3790ac(0x1a9)](String,_0x20f3a2);throw new Error(_0x2397cf[_0x3790ac(0x1ca)](_0x3790ac(0x1a2)+_0x1aabdd+'\x0a',_0x2397cf[_0x3790ac(0x183)]));}else{const _0x420b35=_0x2cfbe8?function(){const _0x51e153=_0x3790ac;if(_0x409afd){const _0x309e31=_0x4bdf6b[_0x51e153(0x1af)](_0x2bbf88,arguments);return _0x5c6cdc=null,_0x309e31;}}:function(){};return _0x1e3060=![],_0x420b35;}}throw new Error(_0x2397cf[_0x3790ac(0x195)]);}async function checkTokenValid(_0x5d0c72){const _0x1e63e8=_0xdda47a,_0x287db2={'pYiaX':'(((.+)+)+)+$','mWDEo':function(_0x445630,_0xc6be2a){return _0x445630!==_0xc6be2a;},'eIovy':_0x1e63e8(0x19a),'Yeiyt':function(_0x332cac){return _0x332cac();},'NmFHK':_0x1e63e8(0x182),'Pgzqg':_0x1e63e8(0x19d),'QmIsv':function(_0x25a823,_0x578839){return _0x25a823===_0x578839;},'ZrdwE':'FdvOp','aFErg':_0x1e63e8(0x1a1),'xyYFI':function(_0x5b388f,_0x43f979){return _0x5b388f(_0x43f979);}},_0x2ff175=new AbortController(),_0x22180c=setTimeout(()=>_0x2ff175[_0x1e63e8(0x1d0)](),0x1388);try{if(_0x287db2[_0x1e63e8(0x1cf)]('pOpOx',_0x1e63e8(0x1c6))){const {getApiBaseUrl:_0xc73bd3}=await import(_0x287db2[_0x1e63e8(0x1d4)]),_0x4498ff=_0x287db2['Yeiyt'](_0xc73bd3),_0x173e4a=await fetch(_0x4498ff+_0x1e63e8(0x1ae),{'method':_0x287db2[_0x1e63e8(0x191)],'headers':{'Authorization':_0x1e63e8(0x18b)+_0x5d0c72},'signal':_0x2ff175[_0x1e63e8(0x1bc)]});return _0x173e4a['ok'];}else return![];}catch{return'AxWor'!==_0x287db2[_0x1e63e8(0x196)]?_0x590d9d[_0x1e63e8(0x1c4)]()[_0x1e63e8(0x1b8)]('(((.+)+)+)+$')['toString']()[_0x1e63e8(0x1b2)](_0x166db4)['search'](vhddht[_0x1e63e8(0x1c8)]):!![];}finally{if(_0x287db2[_0x1e63e8(0x181)](_0x287db2[_0x1e63e8(0x18e)],_0x287db2[_0x1e63e8(0x1d2)]))return null;else _0x287db2[_0x1e63e8(0x1cb)](clearTimeout,_0x22180c);}}async function tryRefreshToken(){const _0x5567c1={'vtSLW':function(_0x41a124){return _0x41a124();}},{refreshCliToken:_0x3e6062}=await import('./tokenRefresh.js');return _0x5567c1['vtSLW'](_0x3e6062);}async function tryPromoteRefreshToken(_0x3949bd){const _0x2b9bf0=_0xdda47a,_0x38486f={'OKQES':'./tokenRefresh.js','Akkqh':function(_0x52aa03,_0x4e9179,_0xf7b3f6){return _0x52aa03(_0x4e9179,_0xf7b3f6);}},{refreshPartnerCliToken:_0x965341}=await import(_0x38486f['OKQES']);return _0x38486f[_0x2b9bf0(0x193)](_0x965341,_0x3949bd,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0x2f8ba6=_0xdda47a,_0x4a8bb5={'rhmes':function(_0x4966eb,_0x30ad69){return _0x4966eb!==_0x30ad69;},'bpYFV':'GZiXg','bfnMr':_0x2f8ba6(0x1b4),'wmAXG':function(_0x4efe82,_0x284ba4){return _0x4efe82(_0x284ba4);},'WYiQv':_0x2f8ba6(0x1ba),'saYWG':_0x2f8ba6(0x1c1)};try{return _0x4a8bb5['rhmes'](_0x4a8bb5[_0x2f8ba6(0x1ab)],_0x4a8bb5[_0x2f8ba6(0x1aa)])?(await _0x4a8bb5['wmAXG'](unlink,TOKEN_PATH),!![]):!![];}catch{return _0x4a8bb5[_0x2f8ba6(0x18f)]!==_0x4a8bb5[_0x2f8ba6(0x188)]?![]:_0x5ccd0d[_0x2f8ba6(0x185)][_0x96ac8f];}}function _0x3f66(_0x49f742,_0x51a44b){_0x49f742=_0x49f742-0x180;const _0x18b97e=_0x4b0e();let _0x4842c3=_0x18b97e[_0x49f742];if(_0x3f66['VopOEA']===undefined){var _0x41ea5c=function(_0x4c84ba){const _0x3543b6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2d5daf='',_0x49e17c='',_0x19fe19=_0x2d5daf+_0x41ea5c;for(let _0x21f109=0x0,_0x4a5cc2,_0x4d444c,_0x579d5b=0x0;_0x4d444c=_0x4c84ba['charAt'](_0x579d5b++);~_0x4d444c&&(_0x4a5cc2=_0x21f109%0x4?_0x4a5cc2*0x40+_0x4d444c:_0x4d444c,_0x21f109++%0x4)?_0x2d5daf+=_0x19fe19['charCodeAt'](_0x579d5b+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x4a5cc2>>(-0x2*_0x21f109&0x6)):_0x21f109:0x0){_0x4d444c=_0x3543b6['indexOf'](_0x4d444c);}for(let _0x15282b=0x0,_0x54a2e4=_0x2d5daf['length'];_0x15282b<_0x54a2e4;_0x15282b++){_0x49e17c+='%'+('00'+_0x2d5daf['charCodeAt'](_0x15282b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x49e17c);};_0x3f66['RYoLKV']=_0x41ea5c,_0x3f66['tiFnhD']={},_0x3f66['VopOEA']=!![];}const _0x4b0e58=_0x18b97e[0x0],_0x3f6611=_0x49f742+_0x4b0e58,_0x5c8d96=_0x3f66['tiFnhD'][_0x3f6611];if(!_0x5c8d96){const _0x2cfbe8=function(_0x200afa){this['xTHXaJ']=_0x200afa,this['ETJNhr']=[0x1,0x0,0x0],this['UwIMrc']=function(){return'newState';},this['JtYPkl']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['vBqKFG']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x2cfbe8['prototype']['xkwWAF']=function(){const _0x4d2ca7=new RegExp(this['JtYPkl']+this['vBqKFG']),_0x1ae01a=_0x4d2ca7['test'](this['UwIMrc']['toString']())?--this['ETJNhr'][0x1]:--this['ETJNhr'][0x0];return this['CyOMqD'](_0x1ae01a);},_0x2cfbe8['prototype']['CyOMqD']=function(_0x1c48cd){if(!Boolean(~_0x1c48cd))return _0x1c48cd;return this['yNPokV'](this['xTHXaJ']);},_0x2cfbe8['prototype']['yNPokV']=function(_0x1e3060){for(let _0x409afd=0x0,_0x436f1d=this['ETJNhr']['length'];_0x409afd<_0x436f1d;_0x409afd++){this['ETJNhr']['push'](Math['round'](Math['random']())),_0x436f1d=this['ETJNhr']['length'];}return _0x1e3060(this['ETJNhr'][0x0]);},new _0x2cfbe8(_0x3f66)['xkwWAF'](),_0x4842c3=_0x3f66['RYoLKV'](_0x4842c3),_0x3f66['tiFnhD'][_0x3f6611]=_0x4842c3;}else _0x4842c3=_0x5c8d96;return _0x4842c3;}export async function storeRefreshToken(_0x3dc93a){const _0x29a036={'Jzqcf':function(_0x556fa5,_0x141d8c,_0x9968d4,_0x3ab4ad){return _0x556fa5(_0x141d8c,_0x9968d4,_0x3ab4ad);}};await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x29a036['Jzqcf'](writeFile,REFRESH_TOKEN_PATH,_0x3dc93a,{'mode':0x180});}export async function getRefreshToken(){const _0x5c5cea=_0xdda47a,_0x52cf00={'OOncQ':function(_0x8967c1,_0x484e4f,_0x48f2b3){return _0x8967c1(_0x484e4f,_0x48f2b3);},'OduZD':_0x5c5cea(0x1d9),'YbcTO':_0x5c5cea(0x1c2)};try{const _0xed3d1b=await _0x52cf00[_0x5c5cea(0x1d6)](readFile,REFRESH_TOKEN_PATH,_0x52cf00['OduZD']);return _0xed3d1b[_0x5c5cea(0x1ce)]()||null;}catch{return _0x5c5cea(0x1c2)===_0x52cf00['YbcTO']?null:!!_0x5e5e07[_0x5c5cea(0x185)][_0x5c5cea(0x199)];}}export async function deleteRefreshToken(){const _0x48614a=_0xdda47a,_0x5d1499={'seZJk':function(_0x2243ef,_0x1a7b05){return _0x2243ef(_0x1a7b05);}};try{return await _0x5d1499[_0x48614a(0x194)](unlink,REFRESH_TOKEN_PATH),!![];}catch{return![];}}export async function deleteAllCredentials(){const _0x160346=_0xdda47a,_0x2c3d73={'WcfSI':function(_0x53ea1e){return _0x53ea1e();}};await _0x2c3d73['WcfSI'](deleteToken),await _0x2c3d73[_0x160346(0x1bd)](deleteRefreshToken);}
@@ -1 +1 @@
1
- function _0x5b86(_0x57c248,_0x3c06ac){_0x57c248=_0x57c248-0x15c;const _0x587bb4=_0x5d6c();let _0x511ed4=_0x587bb4[_0x57c248];if(_0x5b86['vRkgts']===undefined){var _0x1fa6ad=function(_0x555661){const _0x4d4956='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5a8373='',_0x2e4520='',_0x587ef8=_0x5a8373+_0x1fa6ad;for(let _0x239da5=0x0,_0x1610fe,_0x4066a6,_0xb4d495=0x0;_0x4066a6=_0x555661['charAt'](_0xb4d495++);~_0x4066a6&&(_0x1610fe=_0x239da5%0x4?_0x1610fe*0x40+_0x4066a6:_0x4066a6,_0x239da5++%0x4)?_0x5a8373+=_0x587ef8['charCodeAt'](_0xb4d495+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x1610fe>>(-0x2*_0x239da5&0x6)):_0x239da5:0x0){_0x4066a6=_0x4d4956['indexOf'](_0x4066a6);}for(let _0x2ec4ab=0x0,_0x66c71e=_0x5a8373['length'];_0x2ec4ab<_0x66c71e;_0x2ec4ab++){_0x2e4520+='%'+('00'+_0x5a8373['charCodeAt'](_0x2ec4ab)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2e4520);};_0x5b86['dXoJeL']=_0x1fa6ad,_0x5b86['kiEdZy']={},_0x5b86['vRkgts']=!![];}const _0x5d6cbb=_0x587bb4[0x0],_0x5b8628=_0x57c248+_0x5d6cbb,_0x3da132=_0x5b86['kiEdZy'][_0x5b8628];if(!_0x3da132){const _0x458970=function(_0x859798){this['JITzGt']=_0x859798,this['eLmJjR']=[0x1,0x0,0x0],this['fSvyBY']=function(){return'newState';},this['jDhOuJ']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['CClxDE']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x458970['prototype']['TKjbNt']=function(){const _0x2462cb=new RegExp(this['jDhOuJ']+this['CClxDE']),_0x21c4b1=_0x2462cb['test'](this['fSvyBY']['toString']())?--this['eLmJjR'][0x1]:--this['eLmJjR'][0x0];return this['jBUABh'](_0x21c4b1);},_0x458970['prototype']['jBUABh']=function(_0x175151){if(!Boolean(~_0x175151))return _0x175151;return this['AINQTl'](this['JITzGt']);},_0x458970['prototype']['AINQTl']=function(_0x56a0df){for(let _0x5a6073=0x0,_0x43f196=this['eLmJjR']['length'];_0x5a6073<_0x43f196;_0x5a6073++){this['eLmJjR']['push'](Math['round'](Math['random']())),_0x43f196=this['eLmJjR']['length'];}return _0x56a0df(this['eLmJjR'][0x0]);},new _0x458970(_0x5b86)['TKjbNt'](),_0x511ed4=_0x5b86['dXoJeL'](_0x511ed4),_0x5b86['kiEdZy'][_0x5b8628]=_0x511ed4;}else _0x511ed4=_0x3da132;return _0x511ed4;}(function(_0x3c6ddc,_0x537839){const _0x588070=_0x5b86,_0x3d2455=_0x3c6ddc();while(!![]){try{const _0x5e0153=parseInt(_0x588070(0x170))/0x1+-parseInt(_0x588070(0x162))/0x2+-parseInt(_0x588070(0x16d))/0x3*(parseInt(_0x588070(0x171))/0x4)+parseInt(_0x588070(0x15c))/0x5+parseInt(_0x588070(0x167))/0x6+parseInt(_0x588070(0x16f))/0x7+parseInt(_0x588070(0x160))/0x8*(-parseInt(_0x588070(0x172))/0x9);if(_0x5e0153===_0x537839)break;else _0x3d2455['push'](_0x3d2455['shift']());}catch(_0x19c982){_0x3d2455['push'](_0x3d2455['shift']());}}}(_0x5d6c,0xb8d1c));const _0x1fa6ad=(function(){const _0x53a1b5={'lDCkj':function(_0x9a023,_0x362098){return _0x9a023!==_0x362098;},'CVOdu':'kENJd'};let _0xbacc80=!![];return function(_0x448240,_0x11c4a3){const _0xfefe7=_0xbacc80?function(){const _0x303d6b=_0x5b86;if(_0x11c4a3){if(_0x53a1b5[_0x303d6b(0x168)](_0x53a1b5['CVOdu'],_0x53a1b5[_0x303d6b(0x16b)])){const _0x54a411=_0x411aae[_0x303d6b(0x161)](_0x2f004c,arguments);return _0x22785e=null,_0x54a411;}else{const _0x158e08=_0x11c4a3[_0x303d6b(0x161)](_0x448240,arguments);return _0x11c4a3=null,_0x158e08;}}}:function(){};return _0xbacc80=![],_0xfefe7;};}()),_0x511ed4=_0x1fa6ad(this,function(){const _0x774705=_0x5b86,_0x2f5e09={'WpLox':'(((.+)+)+)+$'};return _0x511ed4['toString']()[_0x774705(0x173)](_0x2f5e09[_0x774705(0x175)])['toString']()[_0x774705(0x166)](_0x511ed4)[_0x774705(0x173)](_0x2f5e09[_0x774705(0x175)]);});_0x511ed4();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';export async function logLocalAgentInstallation(_0x5b1d19,_0x5a6632,_0x55b0e3){const _0x574a5e=_0x5b86,_0x397b41={'EDGvw':function(_0x1b16f8){return _0x1b16f8();},'wAwem':function(_0x372b6a,_0x37b44d){return _0x372b6a===_0x37b44d;},'FFfrp':_0x574a5e(0x15e),'RyLAo':_0x574a5e(0x176),'FlWfg':function(_0x5ce07d){return _0x5ce07d();},'YMwJc':function(_0x3d91f7,_0x26a9d6,_0x4297c1){return _0x3d91f7(_0x26a9d6,_0x4297c1);},'jvAMp':function(_0x8e8e5b,_0x31579d,_0x2b1e4c){return _0x8e8e5b(_0x31579d,_0x2b1e4c);},'lfOwL':'POST','ZssWx':'application/json','OlJAR':function(_0x7addd2,_0x203cf5){return _0x7addd2(_0x203cf5);}},_0x2673e9=await _0x397b41['EDGvw'](getToken);if(!_0x2673e9){if(_0x397b41[_0x574a5e(0x164)](_0x397b41[_0x574a5e(0x174)],_0x397b41['RyLAo'])){const _0x7507f3=_0x458970?function(){const _0x721cad=_0x574a5e;if(_0x5a6073){const _0x4c09d2=_0x582d7f[_0x721cad(0x161)](_0x5eab72,arguments);return _0x3b82ff=null,_0x4c09d2;}}:function(){};return _0x56a0df=![],_0x7507f3;}else return;}const _0x396ee3=_0x397b41[_0x574a5e(0x177)](getApiBaseUrl),_0x231577=new AbortController(),_0x29981d=_0x397b41['YMwJc'](setTimeout,()=>_0x231577[_0x574a5e(0x178)](),0x1388);let _0x8dba0;try{_0x8dba0=await _0x397b41[_0x574a5e(0x16e)](fetch,_0x396ee3+'/api/v1/mcp/local-agent-installations',{'method':_0x397b41[_0x574a5e(0x163)],'headers':{'Authorization':'Bearer\x20'+_0x2673e9,'Content-Type':_0x397b41[_0x574a5e(0x165)]},'body':JSON[_0x574a5e(0x15d)]({'skillName':_0x5b1d19,'cliVersion':_0x55b0e3,'metadata':_0x5a6632}),'signal':_0x231577[_0x574a5e(0x169)]});}finally{_0x397b41[_0x574a5e(0x16a)](clearTimeout,_0x29981d);}if(!_0x8dba0['ok']){const _0x3c39fd=await _0x8dba0['text']();console[_0x574a5e(0x16c)](_0x574a5e(0x15f)+_0x3c39fd);}}function _0x5d6c(){const _0x471318=['ExvnEfK','rMfPBgvKihrVigXVzYbZA2LSBcbPBNn0ywXSyxrPB246ia','mtKXode4nhzSD2Hqsa','yxbWBhK','mJy1mdG4oe5Ms3Hrwq','BgzpD0W','D0f3zw0','wNnZv3G','y29UC3rYDwn0B3i','mJG0otaWne9ewNLswq','BerdA2O','C2LNBMfS','t2Xkqvi','q1zpzhu','zxjYB3i','odiWnuP6zgzlrW','ANzbtxa','mJq5mZuXouLgBhHuCq','mtuXmJm5ogDXq3bpDG','mJm2te1oCKvb','ouHcru1tAW','C2vHCMnO','rKzMCNa','v3bmB3G','vvvwvha','rMXxzMC','ywjVCNq','nZaWnZy1rM1kBw1O','C3rYAw5NAwz5'];_0x5d6c=function(){return _0x471318;};return _0x5d6c();}
1
+ (function(_0x3c9b72,_0x4fd908){const _0x3275c3=_0x4b04,_0x27792e=_0x3c9b72();while(!![]){try{const _0x17a02b=-parseInt(_0x3275c3(0x1ca))/0x1*(parseInt(_0x3275c3(0x1cf))/0x2)+-parseInt(_0x3275c3(0x1d1))/0x3*(parseInt(_0x3275c3(0x1c2))/0x4)+-parseInt(_0x3275c3(0x1d7))/0x5+-parseInt(_0x3275c3(0x1bc))/0x6+parseInt(_0x3275c3(0x1bd))/0x7+-parseInt(_0x3275c3(0x1c8))/0x8*(-parseInt(_0x3275c3(0x1d2))/0x9)+parseInt(_0x3275c3(0x1c4))/0xa;if(_0x17a02b===_0x4fd908)break;else _0x27792e['push'](_0x27792e['shift']());}catch(_0x5c837e){_0x27792e['push'](_0x27792e['shift']());}}}(_0x7f98,0x43bd2));const _0x54ece9=(function(){const _0x2f5b18={'DxZaK':function(_0x31d395,_0x2d15de){return _0x31d395===_0x2d15de;},'hbHrU':'hGvnB'};let _0x23c4c4=!![];return function(_0x2c93c4,_0x74a912){const _0x3538d0=_0x23c4c4?function(){const _0x3822d6=_0x4b04;if(_0x2f5b18[_0x3822d6(0x1d6)](_0x2f5b18[_0x3822d6(0x1d5)],_0x3822d6(0x1d3))){if(_0x74a912){const _0x18659c=_0x74a912[_0x3822d6(0x1cd)](_0x2c93c4,arguments);return _0x74a912=null,_0x18659c;}}else{const _0x39a6d9=_0x3a90aa?function(){if(_0x3ecf01){const _0x4abf4f=_0x3bc43d['apply'](_0x47294f,arguments);return _0x2e4e5d=null,_0x4abf4f;}}:function(){};return _0x3645a7=![],_0x39a6d9;}}:function(){};return _0x23c4c4=![],_0x3538d0;};}()),_0x478425=_0x54ece9(this,function(){const _0x66c24c=_0x4b04,_0xdb6f5e={'CPKOg':'(((.+)+)+)+$'};return _0x478425[_0x66c24c(0x1bf)]()[_0x66c24c(0x1c9)](_0xdb6f5e[_0x66c24c(0x1da)])['toString']()[_0x66c24c(0x1d4)](_0x478425)['search'](_0xdb6f5e[_0x66c24c(0x1da)]);});_0x478425();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';export async function logLocalAgentInstallation(_0x573056,_0x40908f,_0x2244a6){const _0x148d9c=_0x4b04,_0x48342a={'gDSxt':_0x148d9c(0x1d0),'qRJjR':_0x148d9c(0x1cb),'xsyfI':function(_0x199e58,_0x18c2b9,_0x7394a6){return _0x199e58(_0x18c2b9,_0x7394a6);},'iXaGY':'POST','vJkQD':_0x148d9c(0x1d8),'FNerV':function(_0x24f811,_0x42f3c0){return _0x24f811(_0x42f3c0);}},_0x4db9bd=await getToken();if(!_0x4db9bd){if(_0x48342a[_0x148d9c(0x1c5)]===_0x48342a[_0x148d9c(0x1cc)])return;else return;}const _0x118962=getApiBaseUrl(),_0x416b62=new AbortController(),_0x2abffa=_0x48342a[_0x148d9c(0x1c1)](setTimeout,()=>_0x416b62[_0x148d9c(0x1c0)](),0x1388);let _0x589173;try{_0x589173=await _0x48342a['xsyfI'](fetch,_0x118962+_0x148d9c(0x1c3),{'method':_0x48342a[_0x148d9c(0x1be)],'headers':{'Authorization':'Bearer\x20'+_0x4db9bd,'Content-Type':_0x48342a[_0x148d9c(0x1c6)]},'body':JSON[_0x148d9c(0x1c7)]({'skillName':_0x573056,'cliVersion':_0x2244a6,'metadata':_0x40908f}),'signal':_0x416b62['signal']});}finally{_0x48342a[_0x148d9c(0x1ce)](clearTimeout,_0x2abffa);}if(!_0x589173['ok']){const _0x1804fe=await _0x589173['text']();console['error'](_0x148d9c(0x1d9)+_0x1804fe);}}function _0x4b04(_0x2946bf,_0x493cbc){_0x2946bf=_0x2946bf-0x1bc;const _0x36e2bb=_0x7f98();let _0x478425=_0x36e2bb[_0x2946bf];if(_0x4b04['AopqhA']===undefined){var _0x54ece9=function(_0x4c9c17){const _0x3302e1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x509fdc='',_0x45867e='',_0xa520f3=_0x509fdc+_0x54ece9;for(let _0x56ac6d=0x0,_0x5043ca,_0x4cddc9,_0x3e4ea6=0x0;_0x4cddc9=_0x4c9c17['charAt'](_0x3e4ea6++);~_0x4cddc9&&(_0x5043ca=_0x56ac6d%0x4?_0x5043ca*0x40+_0x4cddc9:_0x4cddc9,_0x56ac6d++%0x4)?_0x509fdc+=_0xa520f3['charCodeAt'](_0x3e4ea6+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x5043ca>>(-0x2*_0x56ac6d&0x6)):_0x56ac6d:0x0){_0x4cddc9=_0x3302e1['indexOf'](_0x4cddc9);}for(let _0x127141=0x0,_0x320584=_0x509fdc['length'];_0x127141<_0x320584;_0x127141++){_0x45867e+='%'+('00'+_0x509fdc['charCodeAt'](_0x127141)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x45867e);};_0x4b04['WDBffd']=_0x54ece9,_0x4b04['nwIodI']={},_0x4b04['AopqhA']=!![];}const _0x7f9887=_0x36e2bb[0x0],_0x4b046a=_0x2946bf+_0x7f9887,_0x5618f7=_0x4b04['nwIodI'][_0x4b046a];if(!_0x5618f7){const _0x3a90aa=function(_0x6885ac){this['DFuVsr']=_0x6885ac,this['fLirUg']=[0x1,0x0,0x0],this['obHLFJ']=function(){return'newState';},this['KTCDyH']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['mrnKLk']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x3a90aa['prototype']['yMrMBc']=function(){const _0x1aae89=new RegExp(this['KTCDyH']+this['mrnKLk']),_0x304c6c=_0x1aae89['test'](this['obHLFJ']['toString']())?--this['fLirUg'][0x1]:--this['fLirUg'][0x0];return this['hRycCT'](_0x304c6c);},_0x3a90aa['prototype']['hRycCT']=function(_0xda9f3c){if(!Boolean(~_0xda9f3c))return _0xda9f3c;return this['xkQutl'](this['DFuVsr']);},_0x3a90aa['prototype']['xkQutl']=function(_0x3645a7){for(let _0x3ecf01=0x0,_0x27142=this['fLirUg']['length'];_0x3ecf01<_0x27142;_0x3ecf01++){this['fLirUg']['push'](Math['round'](Math['random']())),_0x27142=this['fLirUg']['length'];}return _0x3645a7(this['fLirUg'][0x0]);},new _0x3a90aa(_0x4b04)['yMrMBc'](),_0x478425=_0x4b04['WDBffd'](_0x478425),_0x4b04['nwIodI'][_0x4b046a]=_0x478425;}else _0x478425=_0x5618f7;return _0x478425;}function _0x7f98(){const _0x513c08=['nMHSsKzquW','mtaXn2jkv0LjAW','AeD2BKi','y29UC3rYDwn0B3i','AgjiCLu','rhHAyuS','nZKXnJyWwuzeveLA','yxbWBgLJyxrPB24VANnVBG','rMfPBgvKihrVigXVzYbZA2LSBcbPBNn0ywXSyxrPB246ia','q1blt2C','mJu5otaXnfvJuM5rrW','mtu4nZaYnMzWANH5za','AvHHr1K','Dg9tDhjPBMC','ywjVCNq','Ehn5zKK','nJi0nZzWsxLfuMq','l2fWAs92ms9Ty3aVBg9JywWTywDLBNqTAw5ZDgfSBgf0Aw9UCW','mtaYmJa3mJbet3vTuLC','z0rtEhq','DKPRuuq','C3rYAw5NAwz5','ntm2ofDnD3bjtG','C2vHCMnO','ndqYmxffr0vfCW','yuTkvKq','CvjkALi','yxbWBhK','rK5LCLy','mtKYChnKDMf6','EvH5vLG'];_0x7f98=function(){return _0x513c08;};return _0x7f98();}
@@ -1 +1 @@
1
- (function(_0x454944,_0x42656a){const _0x38f11b=_0x3228,_0x4b85f4=_0x454944();while(!![]){try{const _0x373eb1=parseInt(_0x38f11b(0x89))/0x1*(parseInt(_0x38f11b(0x91))/0x2)+parseInt(_0x38f11b(0x8e))/0x3*(parseInt(_0x38f11b(0x92))/0x4)+-parseInt(_0x38f11b(0x8d))/0x5+-parseInt(_0x38f11b(0x90))/0x6*(-parseInt(_0x38f11b(0x8b))/0x7)+parseInt(_0x38f11b(0x88))/0x8+parseInt(_0x38f11b(0x96))/0x9+-parseInt(_0x38f11b(0x87))/0xa*(parseInt(_0x38f11b(0x94))/0xb);if(_0x373eb1===_0x42656a)break;else _0x4b85f4['push'](_0x4b85f4['shift']());}catch(_0x3fa63a){_0x4b85f4['push'](_0x4b85f4['shift']());}}}(_0xe5c2,0x24e58));function originIdentity(_0x12d24e){const _0x3f6b82=_0x3228;try{const _0x5c8769=new URL(_0x12d24e);return _0x5c8769[_0x3f6b82(0x8c)]+'//'+_0x5c8769[_0x3f6b82(0x95)];}catch{return undefined;}}function _0x3228(_0x210afd,_0x329a6a){_0x210afd=_0x210afd-0x87;const _0xe5c267=_0xe5c2();let _0x322820=_0xe5c267[_0x210afd];return _0x322820;}function _0xe5c2(){const _0x1894ca=['1320672XDhXZf','284957ynajPv','BELjO','165291DnikJP','protocol','829895YwqZOC','3bELecT','entries','66YssKKK','2QpJJhq','330324vOMqzY','defaultEnvironmentKey','11gBebUb','host','1613961MYTFHX','6545870uzaFlt'];_0xe5c2=function(){return _0x1894ca;};return _0xe5c2();}export function matchAuthEnvironment(_0x29e814,_0x1cb376){const _0x1fbe3c=_0x3228,_0x3c09f2={'BELjO':function(_0x2079ae,_0x544572){return _0x2079ae(_0x544572);}};if(!_0x1cb376||!_0x1cb376['environments'])return undefined;const _0x4b3581=_0x3c09f2[_0x1fbe3c(0x8a)](originIdentity,_0x29e814);if(!_0x4b3581){if(_0x1cb376['defaultEnvironmentKey']&&_0x1cb376['environments'][_0x1cb376['defaultEnvironmentKey']])return _0x1cb376['defaultEnvironmentKey'];return undefined;}for(const [_0x1e5a7f,_0x27c1f5]of Object[_0x1fbe3c(0x8f)](_0x1cb376['environments'])){for(const _0x189e4d of _0x27c1f5['domains']??[]){const _0x572c5d=_0x3c09f2['BELjO'](originIdentity,_0x189e4d);if(_0x572c5d&&_0x572c5d===_0x4b3581)return _0x1e5a7f;}}if(_0x1cb376['defaultEnvironmentKey']&&_0x1cb376['environments'][_0x1cb376[_0x1fbe3c(0x93)]])return _0x1cb376[_0x1fbe3c(0x93)];return undefined;}
1
+ (function(_0x49c69e,_0x6b2625){const _0x295d1d=_0x4f7f,_0xf7b6cf=_0x49c69e();while(!![]){try{const _0x10aa45=-parseInt(_0x295d1d(0x126))/0x1+parseInt(_0x295d1d(0x12c))/0x2+-parseInt(_0x295d1d(0x12d))/0x3+parseInt(_0x295d1d(0x12a))/0x4*(parseInt(_0x295d1d(0x129))/0x5)+-parseInt(_0x295d1d(0x127))/0x6+-parseInt(_0x295d1d(0x128))/0x7+parseInt(_0x295d1d(0x12e))/0x8;if(_0x10aa45===_0x6b2625)break;else _0xf7b6cf['push'](_0xf7b6cf['shift']());}catch(_0x58b9cf){_0xf7b6cf['push'](_0xf7b6cf['shift']());}}}(_0x4d92,0x68219));function originIdentity(_0xa269b4){try{const _0x2471b=new URL(_0xa269b4);return _0x2471b['protocol']+'//'+_0x2471b['host'];}catch{return undefined;}}function _0x4f7f(_0x5bec01,_0x203da6){_0x5bec01=_0x5bec01-0x126;const _0x4d9285=_0x4d92();let _0x4f7f8e=_0x4d9285[_0x5bec01];return _0x4f7f8e;}function _0x4d92(){const _0xb68972=['799178PWbZvV','2726694qfQOUV','425971BcehbW','26330VjcRgV','356IBEYQI','environments','362214KiUUeG','349593osuUWb','9662008sleSbd','defaultEnvironmentKey'];_0x4d92=function(){return _0xb68972;};return _0x4d92();}export function matchAuthEnvironment(_0x56c7a9,_0x4cf63f){const _0x3c7514=_0x4f7f,_0x114886={'UMfst':function(_0x541d00,_0x684d0e){return _0x541d00(_0x684d0e);},'OOeHi':function(_0x1295df,_0x6c9a01){return _0x1295df===_0x6c9a01;}};if(!_0x4cf63f||!_0x4cf63f['environments'])return undefined;const _0x49b871=originIdentity(_0x56c7a9);if(!_0x49b871){if(_0x4cf63f['defaultEnvironmentKey']&&_0x4cf63f[_0x3c7514(0x12b)][_0x4cf63f['defaultEnvironmentKey']])return _0x4cf63f[_0x3c7514(0x12f)];return undefined;}for(const [_0x1c15b9,_0x44f1b8]of Object['entries'](_0x4cf63f['environments'])){for(const _0x56f69e of _0x44f1b8['domains']??[]){const _0x285bbf=_0x114886['UMfst'](originIdentity,_0x56f69e);if(_0x285bbf&&_0x114886['OOeHi'](_0x285bbf,_0x49b871))return _0x1c15b9;}}if(_0x4cf63f[_0x3c7514(0x12f)]&&_0x4cf63f['environments'][_0x4cf63f[_0x3c7514(0x12f)]])return _0x4cf63f[_0x3c7514(0x12f)];return undefined;}
@@ -1 +1 @@
1
- (function(_0x5c39ee,_0xa45500){const _0xb2d4fe=_0x41d3,_0x55ece2=_0x5c39ee();while(!![]){try{const _0x20e446=-parseInt(_0xb2d4fe(0x163))/0x1*(-parseInt(_0xb2d4fe(0x124))/0x2)+parseInt(_0xb2d4fe(0x149))/0x3*(-parseInt(_0xb2d4fe(0x132))/0x4)+-parseInt(_0xb2d4fe(0x151))/0x5+-parseInt(_0xb2d4fe(0x135))/0x6+parseInt(_0xb2d4fe(0x157))/0x7*(parseInt(_0xb2d4fe(0x147))/0x8)+-parseInt(_0xb2d4fe(0x165))/0x9+parseInt(_0xb2d4fe(0x13c))/0xa*(parseInt(_0xb2d4fe(0x134))/0xb);if(_0x20e446===_0xa45500)break;else _0x55ece2['push'](_0x55ece2['shift']());}catch(_0x51d110){_0x55ece2['push'](_0x55ece2['shift']());}}}(_0x5745,0x35a5e));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 isRecord(_0x1ad571){const _0x3afdcf=_0x41d3,_0x248728={'wInHs':function(_0x23212a,_0x36d9c8){return _0x23212a===_0x36d9c8;},'mDNuz':_0x3afdcf(0x15b)};return _0x248728[_0x3afdcf(0x155)](typeof _0x1ad571,_0x248728[_0x3afdcf(0x13a)])&&_0x1ad571!==null;}function isImageBlock(_0x10c5bc){const _0xb5b221=_0x41d3,_0x160f20={'mrhRv':function(_0x2645c5,_0x139048){return _0x2645c5(_0x139048);}};return _0x160f20[_0xb5b221(0x144)](isRecord,_0x10c5bc)&&_0x10c5bc[_0xb5b221(0x13d)]==='image';}function isDataUrl(_0x24bdfa){const _0x253b1e=_0x41d3;return _0x24bdfa['startsWith'](_0x253b1e(0x15a));}function _0x41d3(_0x3b25c9,_0x59cc59){_0x3b25c9=_0x3b25c9-0x121;const _0x574501=_0x5745();let _0x41d30f=_0x574501[_0x3b25c9];return _0x41d30f;}function parseDataUrl(_0x452b8d){const _0x20ba5c=_0x41d3,_0x4bd893=/^data:([^;]+);base64,(.+)$/[_0x20ba5c(0x14d)](_0x452b8d);if(!_0x4bd893)return null;const _0x19f7aa=_0x4bd893[0x1][_0x20ba5c(0x133)]();if(!isValidMediaType(_0x19f7aa))return null;return{'data':_0x4bd893[0x2],'mediaType':_0x19f7aa};}function isValidMediaType(_0x3920be){const _0x8bd4ac=_0x41d3,_0x2b0cee={'SDYJL':'image/jpeg','mfAay':_0x8bd4ac(0x156)};return[_0x2b0cee['SDYJL'],_0x2b0cee[_0x8bd4ac(0x14e)],_0x8bd4ac(0x127),_0x8bd4ac(0x145)]['includes'](_0x3920be);}function _0x5745(){const _0x42dc6c=['image/png','5026sWGAGL','data','qtcIn','data:','object','NXAUx','DaatH','SnAdx','EQZDj','IMCaV','content','replace','909yftidm','map','2726802UDZRXq','string','kMFaS','content-type','86yZJdPS','charCodeAt','zBtTW','image/gif','Image\x20exceeds\x20size\x20limit\x20(','boNVz','content-length','timeout','image/jpeg','DOXdY','headers','Zuewt','https://','ZbrrY','56996GbIUll','toLowerCase','1258169LNYMEs','2153634rtAXWK','size','source','mimeType','png','mDNuz','EViYm','110eVPhFv','type','byteLength','toString','startsWith','url','output','PostToolUse','mrhRv','image/webp','status','152haEWlI','value','33DdbiLC','gif','file://','Mhhns','exec','mfAay','updated','mqrxG','1362500GGjieA','fdYnZ','\x20bytes)','get','wInHs'];_0x5745=function(){return _0x42dc6c;};return _0x5745();}function inferMediaType(_0x571502,_0x24024e){const _0x101e82=_0x41d3,_0x36f110={'ZzSZu':function(_0x53d85b,_0x1982bf){return _0x53d85b(_0x1982bf);},'UVwdV':'jpeg','DaatH':_0x101e82(0x12c),'wFnRK':_0x101e82(0x156),'dWcIE':_0x101e82(0x14a),'uEIuH':'image/gif'};if(_0x571502){const _0x2b8c43=_0x571502[_0x101e82(0x133)]()['split'](';')[0x0]['trim']();if(isValidMediaType(_0x2b8c43))return _0x2b8c43;}const _0x3c0471=_0x36f110['ZzSZu'](extname,_0x24024e)['toLowerCase']()[_0x101e82(0x162)]('.','');switch(_0x3c0471){case'jpg':case _0x36f110['UVwdV']:return _0x36f110[_0x101e82(0x15d)];case _0x101e82(0x139):return _0x36f110['wFnRK'];case _0x36f110['dWcIE']:return _0x36f110['uEIuH'];case'webp':return'image/webp';default:return _0x101e82(0x156);}}async function readImageFromUrl(_0x24b930){const _0x2a179f=_0x41d3,_0x3ef67c={'Mhhns':function(_0x535f9e,_0x320a22){return _0x535f9e(_0x320a22);},'KxIJh':'Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','zKDDR':function(_0x754cae,_0x514254){return _0x754cae(_0x514254);},'fdYnZ':function(_0x55bd4f,_0x25d3c5){return _0x55bd4f>_0x25d3c5;},'EQZDj':'http://','qtcIn':'base64','bijwK':function(_0x4d99c5,_0x276690,_0x4795bc){return _0x4d99c5(_0x276690,_0x4795bc);},'NXAUx':function(_0x280125,_0x5ae11d){return _0x280125(_0x5ae11d);},'EViYm':function(_0x5e7bcf,_0x3ec8ea,_0x1a82f7){return _0x5e7bcf(_0x3ec8ea,_0x1a82f7);}};if(_0x3ef67c[_0x2a179f(0x14c)](isDataUrl,_0x24b930)){const _0x8e632c=parseDataUrl(_0x24b930);if(_0x8e632c)return _0x8e632c;throw new Error(_0x3ef67c['KxIJh']);}if(_0x24b930['startsWith'](_0x2a179f(0x14b))){const _0x5de449=_0x3ef67c['zKDDR'](fileURLToPath,_0x24b930),_0x163635=await _0x3ef67c['Mhhns'](stat,_0x5de449);if(_0x3ef67c[_0x2a179f(0x152)](_0x163635[_0x2a179f(0x136)],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x2a179f(0x153));const _0x5ad97a=await _0x3ef67c['zKDDR'](readFile,_0x5de449);return{'data':_0x5ad97a[_0x2a179f(0x13f)]('base64'),'mediaType':inferMediaType(null,_0x5de449)};}if(_0x24b930[_0x2a179f(0x140)](_0x3ef67c[_0x2a179f(0x15f)])||_0x24b930[_0x2a179f(0x140)](_0x2a179f(0x130))){const _0x1b1863=await fetch(_0x24b930,{'signal':AbortSignal[_0x2a179f(0x12b)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x1b1863['ok'])throw new Error('Failed\x20to\x20fetch\x20image:\x20'+_0x1b1863[_0x2a179f(0x146)]);const _0x1dc331=_0x1b1863[_0x2a179f(0x12e)]['get'](_0x2a179f(0x12a));if(_0x1dc331){const _0x381598=_0x3ef67c[_0x2a179f(0x14c)](Number,_0x1dc331);if(!Number['isNaN'](_0x381598)&&_0x381598>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x2a179f(0x128)+MAX_IMAGE_SIZE_BYTES+_0x2a179f(0x153));}const _0x2f77af=await _0x1b1863['arrayBuffer']();if(_0x3ef67c['fdYnZ'](_0x2f77af[_0x2a179f(0x13e)],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x2a179f(0x153));return{'data':Buffer['from'](_0x2f77af)[_0x2a179f(0x13f)](_0x3ef67c[_0x2a179f(0x159)]),'mediaType':_0x3ef67c['bijwK'](inferMediaType,_0x1b1863[_0x2a179f(0x12e)][_0x2a179f(0x154)](_0x2a179f(0x123)),_0x24b930)};}const _0xe56c2b=await _0x3ef67c['Mhhns'](stat,_0x24b930);if(_0x3ef67c['fdYnZ'](_0xe56c2b[_0x2a179f(0x136)],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x2a179f(0x128)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x58f986=await _0x3ef67c[_0x2a179f(0x15c)](readFile,_0x24b930);return{'data':_0x58f986['toString'](_0x3ef67c[_0x2a179f(0x159)]),'mediaType':_0x3ef67c[_0x2a179f(0x13b)](inferMediaType,null,_0x24b930)};}async function convertImageBlockToBase64(_0xa0e0db){const _0x5d2c61=_0x41d3,_0x5c8815={'mqrxG':function(_0x2685d0,_0x5638ee){return _0x2685d0===_0x5638ee;},'Zuewt':'base64'};if(_0x5c8815[_0x5d2c61(0x150)](_0xa0e0db[_0x5d2c61(0x137)]?.['type'],_0x5c8815[_0x5d2c61(0x12f)]))return{'updated':![],'block':_0xa0e0db};if(_0xa0e0db['data']&&_0xa0e0db[_0x5d2c61(0x138)])return{'updated':![],'block':_0xa0e0db};const _0x42b724=_0xa0e0db[_0x5d2c61(0x137)]?.[_0x5d2c61(0x141)]??_0xa0e0db['url'];if(!_0x42b724)return{'updated':![],'block':_0xa0e0db};const _0x5dcae1=await readImageFromUrl(_0x42b724);return{'updated':!![],'block':{..._0xa0e0db,'source':{'type':'base64','media_type':_0x5dcae1['mediaType'],'data':_0x5dcae1[_0x5d2c61(0x158)]},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x421d3b){const _0x4b570d=_0x41d3,_0x235674={'SnAdx':function(_0x3524e5,_0x44e03e){return _0x3524e5(_0x44e03e);},'kMFaS':function(_0x499169,_0x535395){return _0x499169(_0x535395);}};if(!_0x235674[_0x4b570d(0x122)](isRecord,_0x421d3b))return{'updated':![],'output':_0x421d3b};const _0x553d7b=_0x421d3b[_0x4b570d(0x161)];if(!Array['isArray'](_0x553d7b))return{'updated':![],'output':_0x421d3b};let _0x4f9a00=![];const _0x424588=await Promise['all'](_0x553d7b[_0x4b570d(0x164)](async _0x2d8fdb=>{const _0x593f0c=_0x4b570d;if(!_0x235674[_0x593f0c(0x15e)](isImageBlock,_0x2d8fdb))return _0x2d8fdb;try{const _0x48e370=await _0x235674['kMFaS'](convertImageBlockToBase64,_0x2d8fdb);if(_0x48e370[_0x593f0c(0x14f)])_0x4f9a00=!![];return _0x48e370['block'];}catch{return _0x2d8fdb;}}));if(!_0x4f9a00)return{'updated':![],'output':_0x421d3b};return{'updated':!![],'output':{..._0x421d3b,'content':_0x424588}};}function sanitizeLoneSurrogates(_0x217cb7){const _0x410ddd=_0x41d3,_0x30ec1a={'boNVz':function(_0x8c9d4,_0x58555d){return _0x8c9d4>=_0x58555d;},'zBtTW':function(_0xd03f1a,_0x1e79dc){return _0xd03f1a+_0x1e79dc;},'IMCaV':function(_0x5f2b13,_0x2467a8){return _0x5f2b13+_0x2467a8;},'pmzzy':function(_0x527152,_0x49d7f8){return _0x527152+_0x49d7f8;},'wikdL':function(_0x205ef6,_0x385446){return _0x205ef6<=_0x385446;}};let _0x2d3bea=![],_0x555510='';for(let _0x2b7e4c=0x0;_0x2b7e4c<_0x217cb7['length'];_0x2b7e4c+=0x1){const _0x187584=_0x217cb7['charCodeAt'](_0x2b7e4c);if(_0x30ec1a['boNVz'](_0x187584,0xd800)&&_0x187584<=0xdbff){const _0x368549=_0x217cb7[_0x410ddd(0x125)](_0x30ec1a[_0x410ddd(0x126)](_0x2b7e4c,0x1));if(_0x30ec1a[_0x410ddd(0x129)](_0x368549,0xdc00)&&_0x368549<=0xdfff){_0x555510+=_0x30ec1a[_0x410ddd(0x160)](_0x217cb7[_0x2b7e4c],_0x217cb7[_0x30ec1a['pmzzy'](_0x2b7e4c,0x1)]),_0x2b7e4c+=0x1;continue;}_0x2d3bea=!![],_0x555510+='�';continue;}if(_0x187584>=0xdc00&&_0x30ec1a['wikdL'](_0x187584,0xdfff)){_0x2d3bea=!![],_0x555510+='�';continue;}_0x555510+=_0x217cb7[_0x2b7e4c];}return _0x2d3bea?{'updated':_0x2d3bea,'value':_0x555510}:{'updated':_0x2d3bea,'value':_0x217cb7};}function sanitizeLoneSurrogatesDeep(_0xe8cb50){const _0x17837d=_0x41d3,_0x433f8a={'ZbrrY':function(_0x3ddcde,_0x4c298a){return _0x3ddcde(_0x4c298a);},'DsZtG':_0x17837d(0x121)};if(typeof _0xe8cb50===_0x433f8a['DsZtG'])return sanitizeLoneSurrogates(_0xe8cb50);if(Array['isArray'](_0xe8cb50)){let _0x145b20=![];const _0xd63fd4=_0xe8cb50[_0x17837d(0x164)](_0x234fed=>{const _0x16dcab=_0x17837d,_0x4b5bef=sanitizeLoneSurrogatesDeep(_0x234fed);return _0x4b5bef[_0x16dcab(0x14f)]&&(_0x145b20=!![]),_0x4b5bef[_0x16dcab(0x148)];});return _0x145b20?{'updated':!![],'value':_0xd63fd4}:{'updated':![],'value':_0xe8cb50};}if(!_0x433f8a[_0x17837d(0x131)](isRecord,_0xe8cb50))return{'updated':![],'value':_0xe8cb50};let _0x29cbcc=![];const _0x3474c4=Object['entries'](_0xe8cb50)['map'](([_0x3defe0,_0x5b55b1])=>{const _0x477d0e=_0x17837d,_0x9e7523=_0x433f8a['ZbrrY'](sanitizeLoneSurrogatesDeep,_0x5b55b1);return _0x9e7523[_0x477d0e(0x14f)]&&(_0x29cbcc=!![]),[_0x3defe0,_0x9e7523['value']];});return _0x29cbcc?{'updated':!![],'value':Object['fromEntries'](_0x3474c4)}:{'updated':![],'value':_0xe8cb50};}export function createMcpImageBase64Hook(){const _0x5ad679={'fheIo':function(_0x5bd455,_0x3e061d){return _0x5bd455!==_0x3e061d;},'DOXdY':'PostToolUse'};return async _0x3e8160=>{const _0x1a8c2e=_0x41d3;if(_0x5ad679['fheIo'](_0x3e8160['hook_event_name'],_0x1a8c2e(0x143)))return{};const _0x4214a8=_0x3e8160,_0x51b7d3=await convertToolOutputImagesToBase64(_0x4214a8['tool_response']),_0x421670=sanitizeLoneSurrogatesDeep(_0x51b7d3[_0x1a8c2e(0x142)]),_0x552892=_0x51b7d3[_0x1a8c2e(0x14f)]||_0x421670['updated'];if(!_0x552892)return{};return{'hookSpecificOutput':{'hookEventName':_0x5ad679[_0x1a8c2e(0x12d)],'updatedMCPToolOutput':_0x421670[_0x1a8c2e(0x148)]}};};}
1
+ (function(_0x2f4592,_0x3b644b){const _0x3e9943=_0x2fea,_0x21f6be=_0x2f4592();while(!![]){try{const _0x3a51be=parseInt(_0x3e9943(0x1d4))/0x1*(-parseInt(_0x3e9943(0x1ad))/0x2)+-parseInt(_0x3e9943(0x1da))/0x3*(parseInt(_0x3e9943(0x1b2))/0x4)+parseInt(_0x3e9943(0x1a7))/0x5*(-parseInt(_0x3e9943(0x1af))/0x6)+parseInt(_0x3e9943(0x1bd))/0x7*(parseInt(_0x3e9943(0x1bb))/0x8)+parseInt(_0x3e9943(0x1c3))/0x9+parseInt(_0x3e9943(0x1dc))/0xa+-parseInt(_0x3e9943(0x1cd))/0xb*(-parseInt(_0x3e9943(0x1ca))/0xc);if(_0x3a51be===_0x3b644b)break;else _0x21f6be['push'](_0x21f6be['shift']());}catch(_0x172ccd){_0x21f6be['push'](_0x21f6be['shift']());}}}(_0x2c89,0xb2af4));function _0x2fea(_0x2f8771,_0x23adef){_0x2f8771=_0x2f8771-0x1a4;const _0x2c8970=_0x2c89();let _0x2fea2c=_0x2c8970[_0x2f8771];return _0x2fea2c;}import{readFile,stat}from'fs/promises';import{extname}from'path';function _0x2c89(){const _0x2b0cda=['url','image/png','PostToolUse','headers','Failed\x20to\x20fetch\x20image:\x20','TRRoe','pQXyu','FOIak','84968dVnVGH','get','245QHixFw','isArray','toString','DnlDT','startsWith','file://','5726538IOTaHy','QzNbl','jpeg','value','replace','EpReF','block','5644860vtNIGZ','data','mimeType','55zBSlmu','http://','MFjkj','aaTGd','image/jpeg','https://','mediaType','1SvWkBf','png','size','PFRxB','Image\x20exceeds\x20size\x20limit\x20(','hook_event_name','10872qlhkWL','NvxrE','6088760fsrlgV','type','updated','\x20bytes)','base64','fromEntries','map','GLAqC','115eVqaUH','faSAt','toLowerCase','content-type','content','LzGTF','1973586wmBVyg','ZHbJW','315690wiFHQZ','NuxqT','UCaMg','1148mdsVOa'];_0x2c89=function(){return _0x2b0cda;};return _0x2c89();}import{fileURLToPath}from'url';const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x249d44){const _0x309634={'TQHyz':'object'};return typeof _0x249d44===_0x309634['TQHyz']&&_0x249d44!==null;}function isImageBlock(_0x4a43c5){const _0x4b8a96=_0x2fea,_0x2af3a3={'PFRxB':function(_0x49d0e9,_0x41a6bf){return _0x49d0e9(_0x41a6bf);}};return _0x2af3a3[_0x4b8a96(0x1d7)](isRecord,_0x4a43c5)&&_0x4a43c5[_0x4b8a96(0x1dd)]==='image';}function isDataUrl(_0xb15e83){return _0xb15e83['startsWith']('data:');}function parseDataUrl(_0x52cb3e){const _0x5a33d9=_0x2fea,_0x52ef6a={'YHaIl':function(_0x37e18b,_0x3965d0){return _0x37e18b(_0x3965d0);}},_0x59cf82=/^data:([^;]+);base64,(.+)$/['exec'](_0x52cb3e);if(!_0x59cf82)return null;const _0x481714=_0x59cf82[0x1][_0x5a33d9(0x1a9)]();if(!_0x52ef6a['YHaIl'](isValidMediaType,_0x481714))return null;return{'data':_0x59cf82[0x2],'mediaType':_0x481714};}function isValidMediaType(_0x449136){const _0x254fbb=_0x2fea,_0x1fc2f2={'FOIak':'image/webp'};return['image/jpeg',_0x254fbb(0x1b4),'image/gif',_0x1fc2f2[_0x254fbb(0x1ba)]]['includes'](_0x449136);}function inferMediaType(_0x392953,_0x40f2){const _0x14d340=_0x2fea,_0x3eea6f={'wNaru':_0x14d340(0x1c5),'rNDeJ':'gif','pQXyu':'image/gif'};if(_0x392953){const _0x5055c8=_0x392953['toLowerCase']()['split'](';')[0x0]['trim']();if(isValidMediaType(_0x5055c8))return _0x5055c8;}const _0x11a2d6=extname(_0x40f2)['toLowerCase']()[_0x14d340(0x1c7)]('.','');switch(_0x11a2d6){case'jpg':case _0x3eea6f['wNaru']:return _0x14d340(0x1d1);case _0x14d340(0x1d5):return _0x14d340(0x1b4);case _0x3eea6f['rNDeJ']:return _0x3eea6f[_0x14d340(0x1b9)];case'webp':return'image/webp';default:return _0x14d340(0x1b4);}}async function readImageFromUrl(_0x4b29e9){const _0x240f2f=_0x2fea,_0x1f23a1={'aaTGd':function(_0x201485,_0x30cec2){return _0x201485(_0x30cec2);},'ZHbJW':_0x240f2f(0x1c2),'zqQgA':'base64','NuxqT':function(_0x1edfb5,_0x47cb12,_0x5e013d){return _0x1edfb5(_0x47cb12,_0x5e013d);},'CwVnN':'content-length','sNklk':function(_0x226f62,_0x259407){return _0x226f62>_0x259407;},'qiFxv':_0x240f2f(0x1aa),'QzNbl':function(_0x387d90,_0x15e09a){return _0x387d90(_0x15e09a);}};if(_0x1f23a1['aaTGd'](isDataUrl,_0x4b29e9)){const _0x7139fc=parseDataUrl(_0x4b29e9);if(_0x7139fc)return _0x7139fc;throw new Error('Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content');}if(_0x4b29e9[_0x240f2f(0x1c1)](_0x1f23a1[_0x240f2f(0x1ae)])){const _0x71b44c=_0x1f23a1[_0x240f2f(0x1d0)](fileURLToPath,_0x4b29e9),_0xd1c18d=await stat(_0x71b44c);if(_0xd1c18d[_0x240f2f(0x1d6)]>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x240f2f(0x1df));const _0x43f40e=await readFile(_0x71b44c);return{'data':_0x43f40e[_0x240f2f(0x1bf)](_0x1f23a1['zqQgA']),'mediaType':inferMediaType(null,_0x71b44c)};}if(_0x4b29e9['startsWith'](_0x240f2f(0x1ce))||_0x4b29e9[_0x240f2f(0x1c1)](_0x240f2f(0x1d2))){const _0x14f6f1=await _0x1f23a1[_0x240f2f(0x1b0)](fetch,_0x4b29e9,{'signal':AbortSignal['timeout'](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x14f6f1['ok'])throw new Error(_0x240f2f(0x1b7)+_0x14f6f1['status']);const _0x1b04f9=_0x14f6f1[_0x240f2f(0x1b6)][_0x240f2f(0x1bc)](_0x1f23a1['CwVnN']);if(_0x1b04f9){const _0x29b99e=_0x1f23a1[_0x240f2f(0x1d0)](Number,_0x1b04f9);if(!Number['isNaN'](_0x29b99e)&&_0x1f23a1['sNklk'](_0x29b99e,MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x2c9acf=await _0x14f6f1['arrayBuffer']();if(_0x2c9acf['byteLength']>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x240f2f(0x1d8)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');return{'data':Buffer['from'](_0x2c9acf)['toString']('base64'),'mediaType':_0x1f23a1['NuxqT'](inferMediaType,_0x14f6f1['headers']['get'](_0x1f23a1['qiFxv']),_0x4b29e9)};}const _0x27e547=await _0x1f23a1['QzNbl'](stat,_0x4b29e9);if(_0x27e547[_0x240f2f(0x1d6)]>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x240f2f(0x1d8)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x40674d=await _0x1f23a1[_0x240f2f(0x1c4)](readFile,_0x4b29e9);return{'data':_0x40674d[_0x240f2f(0x1bf)](_0x240f2f(0x1e0)),'mediaType':inferMediaType(null,_0x4b29e9)};}async function convertImageBlockToBase64(_0x4941f1){const _0x3451f8=_0x2fea,_0x159db7={'DhroI':'base64','Wlyig':function(_0x211508,_0x297347){return _0x211508(_0x297347);}};if(_0x4941f1['source']?.[_0x3451f8(0x1dd)]===_0x159db7['DhroI'])return{'updated':![],'block':_0x4941f1};if(_0x4941f1['data']&&_0x4941f1[_0x3451f8(0x1cc)])return{'updated':![],'block':_0x4941f1};const _0x8364f2=_0x4941f1['source']?.['url']??_0x4941f1[_0x3451f8(0x1b3)];if(!_0x8364f2)return{'updated':![],'block':_0x4941f1};const _0x34e73=await _0x159db7['Wlyig'](readImageFromUrl,_0x8364f2);return{'updated':!![],'block':{..._0x4941f1,'source':{'type':_0x159db7['DhroI'],'media_type':_0x34e73[_0x3451f8(0x1d3)],'data':_0x34e73[_0x3451f8(0x1cb)]},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x530698){const _0x2c15a4=_0x2fea,_0x1369cd={'EpReF':function(_0x15b8f2,_0x27b6d0){return _0x15b8f2(_0x27b6d0);}};if(!_0x1369cd[_0x2c15a4(0x1c8)](isRecord,_0x530698))return{'updated':![],'output':_0x530698};const _0x21e392=_0x530698[_0x2c15a4(0x1ab)];if(!Array[_0x2c15a4(0x1be)](_0x21e392))return{'updated':![],'output':_0x530698};let _0x1bc0b5=![];const _0x213609=await Promise['all'](_0x21e392[_0x2c15a4(0x1a5)](async _0xed899c=>{const _0x4b96a8=_0x2c15a4;if(!isImageBlock(_0xed899c))return _0xed899c;try{const _0x39b873=await convertImageBlockToBase64(_0xed899c);if(_0x39b873[_0x4b96a8(0x1de)])_0x1bc0b5=!![];return _0x39b873[_0x4b96a8(0x1c9)];}catch{return _0xed899c;}}));if(!_0x1bc0b5)return{'updated':![],'output':_0x530698};return{'updated':!![],'output':{..._0x530698,'content':_0x213609}};}function sanitizeLoneSurrogates(_0x425c65){const _0xd0cfe0=_0x2fea,_0x157d46={'GLAqC':function(_0x4abd1b,_0x2258af){return _0x4abd1b<_0x2258af;},'MFjkj':function(_0x59a476,_0x2c9a50){return _0x59a476<=_0x2c9a50;},'UCaMg':function(_0x186c66,_0xd4c81d){return _0x186c66>=_0xd4c81d;},'PwuNi':function(_0x1ce32a,_0x55997b){return _0x1ce32a<=_0x55997b;},'DnlDT':function(_0x22bb27,_0x415f79){return _0x22bb27+_0x415f79;}};let _0x5a0f73=![],_0x120951='';for(let _0x18507b=0x0;_0x157d46[_0xd0cfe0(0x1a6)](_0x18507b,_0x425c65['length']);_0x18507b+=0x1){const _0x4bcce2=_0x425c65['charCodeAt'](_0x18507b);if(_0x4bcce2>=0xd800&&_0x157d46[_0xd0cfe0(0x1cf)](_0x4bcce2,0xdbff)){const _0x2c8cd6=_0x425c65['charCodeAt'](_0x18507b+0x1);if(_0x157d46[_0xd0cfe0(0x1b1)](_0x2c8cd6,0xdc00)&&_0x157d46['PwuNi'](_0x2c8cd6,0xdfff)){_0x120951+=_0x157d46[_0xd0cfe0(0x1c0)](_0x425c65[_0x18507b],_0x425c65[_0x157d46['DnlDT'](_0x18507b,0x1)]),_0x18507b+=0x1;continue;}_0x5a0f73=!![],_0x120951+='�';continue;}if(_0x157d46['UCaMg'](_0x4bcce2,0xdc00)&&_0x4bcce2<=0xdfff){_0x5a0f73=!![],_0x120951+='�';continue;}_0x120951+=_0x425c65[_0x18507b];}return _0x5a0f73?{'updated':_0x5a0f73,'value':_0x120951}:{'updated':_0x5a0f73,'value':_0x425c65};}function sanitizeLoneSurrogatesDeep(_0x160dae){const _0x4e1d17=_0x2fea,_0x4e2d8f={'TRRoe':function(_0x28c42e,_0x970c9){return _0x28c42e(_0x970c9);},'KWlnK':function(_0x5c51f5,_0x385583){return _0x5c51f5===_0x385583;},'LzGTF':'string'};if(_0x4e2d8f['KWlnK'](typeof _0x160dae,_0x4e2d8f[_0x4e1d17(0x1ac)]))return _0x4e2d8f[_0x4e1d17(0x1b8)](sanitizeLoneSurrogates,_0x160dae);if(Array[_0x4e1d17(0x1be)](_0x160dae)){let _0x4740be=![];const _0xa7e0e2=_0x160dae['map'](_0x103b42=>{const _0x3edbfc=_0x4e1d17,_0x42dd6c=_0x4e2d8f['TRRoe'](sanitizeLoneSurrogatesDeep,_0x103b42);return _0x42dd6c[_0x3edbfc(0x1de)]&&(_0x4740be=!![]),_0x42dd6c[_0x3edbfc(0x1c6)];});return _0x4740be?{'updated':!![],'value':_0xa7e0e2}:{'updated':![],'value':_0x160dae};}if(!_0x4e2d8f[_0x4e1d17(0x1b8)](isRecord,_0x160dae))return{'updated':![],'value':_0x160dae};let _0x3abda7=![];const _0x1e80b4=Object['entries'](_0x160dae)['map'](([_0x23ec3e,_0xe6e8d6])=>{const _0x3886f9=_0x4e1d17,_0x35dee5=sanitizeLoneSurrogatesDeep(_0xe6e8d6);return _0x35dee5[_0x3886f9(0x1de)]&&(_0x3abda7=!![]),[_0x23ec3e,_0x35dee5[_0x3886f9(0x1c6)]];});return _0x3abda7?{'updated':!![],'value':Object[_0x4e1d17(0x1a4)](_0x1e80b4)}:{'updated':![],'value':_0x160dae};}export function createMcpImageBase64Hook(){const _0x1d2daf=_0x2fea,_0x1c9a0c={'faSAt':function(_0x263f2e,_0x43b8c0){return _0x263f2e!==_0x43b8c0;},'NvxrE':_0x1d2daf(0x1b5)};return async _0x261e36=>{const _0x8ec1f3=_0x1d2daf;if(_0x1c9a0c[_0x8ec1f3(0x1a8)](_0x261e36[_0x8ec1f3(0x1d9)],_0x1c9a0c[_0x8ec1f3(0x1db)]))return{};const _0x2017c1=_0x261e36,_0x597c80=await convertToolOutputImagesToBase64(_0x2017c1['tool_response']),_0x4e0f56=sanitizeLoneSurrogatesDeep(_0x597c80['output']),_0x3ed7e9=_0x597c80['updated']||_0x4e0f56['updated'];if(!_0x3ed7e9)return{};return{'hookSpecificOutput':{'hookEventName':_0x1c9a0c[_0x8ec1f3(0x1db)],'updatedMCPToolOutput':_0x4e0f56[_0x8ec1f3(0x1c6)]}};};}
@@ -1 +1 @@
1
- function _0x2b79(_0x492d6c,_0x3f4cd9){_0x492d6c=_0x492d6c-0xd0;const _0xb9b6ee=_0xb9b6();let _0x2b796c=_0xb9b6ee[_0x492d6c];return _0x2b796c;}const _0x39bfc8=_0x2b79;(function(_0x534e77,_0x31dc1e){const _0x89e890=_0x2b79,_0x2c18ef=_0x534e77();while(!![]){try{const _0x3cecc7=parseInt(_0x89e890(0xd6))/0x1+parseInt(_0x89e890(0xd4))/0x2*(-parseInt(_0x89e890(0xda))/0x3)+parseInt(_0x89e890(0xd1))/0x4+-parseInt(_0x89e890(0xd2))/0x5+-parseInt(_0x89e890(0xd9))/0x6*(parseInt(_0x89e890(0xd5))/0x7)+-parseInt(_0x89e890(0xd8))/0x8+parseInt(_0x89e890(0xd7))/0x9*(parseInt(_0x89e890(0xd3))/0xa);if(_0x3cecc7===_0x31dc1e)break;else _0x2c18ef['push'](_0x2c18ef['shift']());}catch(_0x2f3542){_0x2c18ef['push'](_0x2c18ef['shift']());}}}(_0xb9b6,0x94f34));const VERIFY_MODEL_ALIASES={'opus':'claude-opus-4-6','sonnet':_0x39bfc8(0xd0)};export const DEFAULT_VERIFY_MODEL=_0x39bfc8(0xd0);function _0xb9b6(){const _0x5d2317=['3629820HMlRZs','24761390MPZJpb','326mONIEU','7HdLLdn','368610DVvVLx','9EArvqg','3669024tAhIHc','7300530pqXOQF','12741KusEsB','claude-sonnet-4-6','3435836dSTCMH'];_0xb9b6=function(){return _0x5d2317;};return _0xb9b6();}export function resolveVerifyModel(_0x485179){if(!_0x485179)return undefined;const _0xd62207=_0x485179['trim']();if(!_0xd62207)return undefined;const _0x54d3c4=VERIFY_MODEL_ALIASES[_0xd62207['toLowerCase']()];return _0x54d3c4??_0xd62207;}
1
+ const _0x52cbab=_0x7a2c;(function(_0x228d45,_0x5b5440){const _0x468be9=_0x7a2c,_0x21d4b2=_0x228d45();while(!![]){try{const _0x70f472=-parseInt(_0x468be9(0x109))/0x1+-parseInt(_0x468be9(0x10a))/0x2*(parseInt(_0x468be9(0x110))/0x3)+-parseInt(_0x468be9(0x10d))/0x4+parseInt(_0x468be9(0x10e))/0x5+-parseInt(_0x468be9(0x107))/0x6*(parseInt(_0x468be9(0x10c))/0x7)+parseInt(_0x468be9(0x106))/0x8+parseInt(_0x468be9(0x108))/0x9*(parseInt(_0x468be9(0x10f))/0xa);if(_0x70f472===_0x5b5440)break;else _0x21d4b2['push'](_0x21d4b2['shift']());}catch(_0x6be843){_0x21d4b2['push'](_0x21d4b2['shift']());}}}(_0x4dbf,0x7c01f));function _0x4dbf(){const _0x3b0d2d=['990ohAnUg','874336hzZLuy','106226imQjVv','claude-sonnet-4-6','7iBrUSi','1237156UDqWSS','2711795vokokX','192170rnBPzE','39rWTsMj','toLowerCase','5504664ZaGOCz','5773698nVkYtj'];_0x4dbf=function(){return _0x3b0d2d;};return _0x4dbf();}const VERIFY_MODEL_ALIASES={'opus':'claude-opus-4-6','sonnet':_0x52cbab(0x10b)};export const DEFAULT_VERIFY_MODEL=_0x52cbab(0x10b);function _0x7a2c(_0x25273c,_0x2e4aec){_0x25273c=_0x25273c-0x106;const _0x4dbf64=_0x4dbf();let _0x7a2c63=_0x4dbf64[_0x25273c];return _0x7a2c63;}export function resolveVerifyModel(_0x580993){const _0x1d2557=_0x52cbab;if(!_0x580993)return undefined;const _0x53f649=_0x580993['trim']();if(!_0x53f649)return undefined;const _0x59db27=VERIFY_MODEL_ALIASES[_0x53f649[_0x1d2557(0x111)]()];return _0x59db27??_0x53f649;}
@@ -1 +1 @@
1
- (function(_0x38ebf7,_0x1cd976){var _0x423822=_0x1343,_0x1b71e6=_0x38ebf7();while(!![]){try{var _0x466476=parseInt(_0x423822(0x1b8))/0x1+-parseInt(_0x423822(0x1b9))/0x2+-parseInt(_0x423822(0x1b7))/0x3*(-parseInt(_0x423822(0x1b1))/0x4)+-parseInt(_0x423822(0x1ac))/0x5*(parseInt(_0x423822(0x1af))/0x6)+parseInt(_0x423822(0x1aa))/0x7+parseInt(_0x423822(0x1b5))/0x8+-parseInt(_0x423822(0x1ab))/0x9;if(_0x466476===_0x1cd976)break;else _0x1b71e6['push'](_0x1b71e6['shift']());}catch(_0x2f3694){_0x1b71e6['push'](_0x1b71e6['shift']());}}}(_0x3655,0xad0fd));import{homedir}from'os';import{join}from'path';function _0x3655(){var _0xaa4513=['.opencode','opencode','1779336xRqVye','.config','27NPjkiy','1296153uKwYKK','1173870DGyQmP','xTUFz','env','OPENCODE_CONFIG_DIR','1924223mlbegl','3290571yOSAPq','3935yzLfQc','XDG_CONFIG_HOME','qwGDW','9930lzSrYc','user','520196ivinEB','svZYf'];_0x3655=function(){return _0xaa4513;};return _0x3655();}import{getProjectRoot}from'./claudeConfig.js';function _0x1343(_0x23795b,_0x33e67c){_0x23795b=_0x23795b-0x1a9;var _0x3655ee=_0x3655();var _0x1343ae=_0x3655ee[_0x23795b];return _0x1343ae;}export function getOpencodeConfigDir(_0x1f1a26){var _0x5397ba=_0x1343,_0x50a46d={'KiMkF':function(_0x22c98d,_0x1545b6){return _0x22c98d===_0x1545b6;},'maeYc':_0x5397ba(0x1b0),'xTUFz':function(_0x529134,_0x43b6f8,_0x44740f){return _0x529134(_0x43b6f8,_0x44740f);},'wneGc':_0x5397ba(0x1b4),'IjnZe':function(_0x568d2c){return _0x568d2c();},'FbzkR':_0x5397ba(0x1b3)};if(process['env']['OPENCODE_CONFIG_DIR'])return process['env'][_0x5397ba(0x1a9)];if(_0x50a46d['KiMkF'](_0x1f1a26,_0x50a46d['maeYc'])){if(process[_0x5397ba(0x1bb)]['XDG_CONFIG_HOME'])return _0x50a46d[_0x5397ba(0x1ba)](join,process['env'][_0x5397ba(0x1ad)],_0x50a46d['wneGc']);return join(_0x50a46d['IjnZe'](homedir),_0x5397ba(0x1b6),_0x50a46d['wneGc']);}return join(getProjectRoot(),_0x50a46d['FbzkR']);}export function getOpencodeSkillsDir(_0x4ba84c){var _0x21b1f0=_0x1343,_0x17b956={'svZYf':function(_0x1cc18f,_0x3950e8){return _0x1cc18f(_0x3950e8);},'qwGDW':'skills'};return join(_0x17b956[_0x21b1f0(0x1b2)](getOpencodeConfigDir,_0x4ba84c),_0x17b956[_0x21b1f0(0x1ae)]);}
1
+ (function(_0x318397,_0x5098f6){var _0x46bb55=_0xcd7e,_0x2bd958=_0x318397();while(!![]){try{var _0x228b39=parseInt(_0x46bb55(0x16e))/0x1*(-parseInt(_0x46bb55(0x163))/0x2)+-parseInt(_0x46bb55(0x16b))/0x3+-parseInt(_0x46bb55(0x164))/0x4*(parseInt(_0x46bb55(0x169))/0x5)+-parseInt(_0x46bb55(0x16a))/0x6+-parseInt(_0x46bb55(0x15f))/0x7+parseInt(_0x46bb55(0x166))/0x8+parseInt(_0x46bb55(0x161))/0x9;if(_0x228b39===_0x5098f6)break;else _0x2bd958['push'](_0x2bd958['shift']());}catch(_0x20789b){_0x2bd958['push'](_0x2bd958['shift']());}}}(_0x30e0,0xee566));function _0xcd7e(_0x300aa2,_0x53e2a5){_0x300aa2=_0x300aa2-0x15f;var _0x30e0c5=_0x30e0();var _0xcd7ea9=_0x30e0c5[_0x300aa2];return _0xcd7ea9;}import{homedir}from'os';import{join}from'path';import{getProjectRoot}from'./claudeConfig.js';export function getOpencodeConfigDir(_0x4439b4){var _0x365325=_0xcd7e,_0x2c51b4={'YWrOR':function(_0x19d164,_0x46b55f){return _0x19d164===_0x46b55f;},'GpJSq':function(_0xfb1066){return _0xfb1066();},'bWhde':_0x365325(0x16c),'fLNHU':function(_0x2fac3b,_0x479d50,_0x416580){return _0x2fac3b(_0x479d50,_0x416580);},'VdquA':function(_0x13845a){return _0x13845a();}};if(process[_0x365325(0x16d)]['OPENCODE_CONFIG_DIR'])return process['env']['OPENCODE_CONFIG_DIR'];if(_0x2c51b4['YWrOR'](_0x4439b4,'user')){if(process['env']['XDG_CONFIG_HOME'])return join(process['env']['XDG_CONFIG_HOME'],'opencode');return join(_0x2c51b4['GpJSq'](homedir),'.config',_0x2c51b4['bWhde']);}return _0x2c51b4['fLNHU'](join,_0x2c51b4[_0x365325(0x165)](getProjectRoot),_0x365325(0x168));}function _0x30e0(){var _0xb929da=['6351456dplAIv','FDUfR','.opencode','74950ObaHFQ','432900jwRzth','3449823UuTaPP','opencode','env','8803JjDZyU','11433296RMISiW','xuBXR','47294190IGaEPc','YQzKw','422BRBwFN','96uQtUYj','VdquA'];_0x30e0=function(){return _0xb929da;};return _0x30e0();}export function getOpencodeSkillsDir(_0x1249a6){var _0x37cdbf=_0xcd7e,_0x2fb004={'xuBXR':function(_0xf7449c,_0x57b71a,_0x2af30e){return _0xf7449c(_0x57b71a,_0x2af30e);},'YQzKw':function(_0x31e684,_0x24c4e7){return _0x31e684(_0x24c4e7);},'FDUfR':'skills'};return _0x2fb004[_0x37cdbf(0x160)](join,_0x2fb004[_0x37cdbf(0x162)](getOpencodeConfigDir,_0x1249a6),_0x2fb004[_0x37cdbf(0x167)]);}
@@ -1 +1 @@
1
- const _0x2b8638=_0x5747;(function(_0x22e9eb,_0x150ce9){const _0x693f52=_0x5747,_0x24c045=_0x22e9eb();while(!![]){try{const _0x45007e=parseInt(_0x693f52(0x6f))/0x1*(parseInt(_0x693f52(0x7d))/0x2)+parseInt(_0x693f52(0x7e))/0x3+parseInt(_0x693f52(0x6a))/0x4+-parseInt(_0x693f52(0x91))/0x5+parseInt(_0x693f52(0x88))/0x6*(parseInt(_0x693f52(0x97))/0x7)+parseInt(_0x693f52(0x80))/0x8+-parseInt(_0x693f52(0x6c))/0x9*(parseInt(_0x693f52(0x6b))/0xa);if(_0x45007e===_0x150ce9)break;else _0x24c045['push'](_0x24c045['shift']());}catch(_0x14af26){_0x24c045['push'](_0x24c045['shift']());}}}(_0x2bbc,0xe6f62));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0x2b8638(0xa0);function toPlaywrightCliSessionKey(_0x2dd536){const _0x27c227=_0x2b8638,_0x131c88=createHash(_0x27c227(0x75))[_0x27c227(0x6d)](_0x2dd536)[_0x27c227(0x9b)](_0x27c227(0x8d))[_0x27c227(0x8f)](0x0,0xc);return'rg-'+_0x131c88;}function shellQuote(_0x1a36ad){const _0x3df4b3=_0x2b8638;return'\x27'+_0x1a36ad[_0x3df4b3(0x7c)](/'/g,_0x3df4b3(0x7a))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x20838c){const _0x19fac8=_0x2b8638,_0xcc673c={'VMJwJ':function(_0x3f4433,_0x655387){return _0x3f4433(_0x655387);}};return SAFE_SHELL_TOKEN[_0x19fac8(0x82)](_0x20838c)?_0x20838c:_0xcc673c[_0x19fac8(0x84)](shellQuote,_0x20838c);}export function buildPlaywrightCliInvocation(_0x50bf79,_0x5b3343,_0x3cdb02){const _0x2ecd58=_0x2b8638,_0x24fb8a={'blyaN':function(_0x2ef510,_0xd12cc6){return _0x2ef510(_0xd12cc6);},'HsaoN':_0x2ecd58(0x9c),'NEsPE':'npx'},_0x185572=_0x24fb8a[_0x2ecd58(0x78)](toPlaywrightCliSessionKey,_0x50bf79),[_0x21653a=_0x2ecd58(0x89)]=_0x3cdb02,_0x4fda19=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x185572,_0x24fb8a[_0x2ecd58(0x70)],_0x5b3343,..._0x3cdb02];return{'command':'npx','args':_0x4fda19,'shellCommand':[_0x24fb8a['NEsPE'],PLAYWRIGHT_CLI_BINARY,_0x2ecd58(0x9f)+quoteShellArg(_0x185572),'--config',quoteShellArg(_0x5b3343),..._0x3cdb02[_0x2ecd58(0x94)](quoteShellArg)][_0x2ecd58(0x86)]('\x20'),'subcommand':_0x21653a};}function _0x2bbc(){const _0x277d1b=['2behHtM','5264052ZOJOMJ','bash_command','2071272NtlLTJ','kill','test','ReKJV','VMJwJ','nkmZe','join','configPath','60dmDfoP','unknown','close','hpfYf','cmd','hex','DleDw','slice','subcommand','7610615NyPIsL','data','trim','map','DeKIM','aNaVa','248934rPEDij','script','yPbLo','EJani','digest','--config','command','args','-s=','@playwright/cli','string','kEKRO','commandArgs','toString','\x0astderr:\x20','error','pipe','SIGKILL','ENUNb','mWFHF','2263420cfndjq','2180UsfOHT','29142IOOhiw','update','cwd','238957EBqchT','HsaoN','length','timed\x20out\x20after\x20','stdout','env','sha256','\x20signal=','null','blyaN','JaNpJ','\x27\x5c\x27\x27','timeoutMs','replace'];_0x2bbc=function(){return _0x277d1b;};return _0x2bbc();}export function buildPlaywrightCliCommandPrefix(_0x25f3ea,_0x1408ec){const _0x1901fe=_0x2b8638,_0x4e57ce={'ezWww':function(_0x2a5bf8,_0x5bf700){return _0x2a5bf8(_0x5bf700);},'aNaVa':'--config','ReKJV':function(_0x13fb5a,_0x4f9fd0){return _0x13fb5a(_0x4f9fd0);}},_0x573583=_0x4e57ce['ezWww'](toPlaywrightCliSessionKey,_0x25f3ea);return['npx',PLAYWRIGHT_CLI_BINARY,_0x1901fe(0x9f)+quoteShellArg(_0x573583),_0x4e57ce[_0x1901fe(0x96)],_0x4e57ce[_0x1901fe(0x83)](quoteShellArg,_0x1408ec)]['join']('\x20');}function truncateOutput(_0x14067d,_0xcfafef=0x7d0){const _0x5a609b=_0x2b8638,_0x3f11f4={'cQxFe':'...'};return _0x14067d[_0x5a609b(0x71)]>_0xcfafef?_0x14067d[_0x5a609b(0x8f)](0x0,_0xcfafef)+_0x3f11f4['cQxFe']:_0x14067d;}export async function runPlaywrightCliCommand(_0x2ef019){const _0xee42e6=_0x2b8638,_0x2c99d9={'fTiLO':function(_0x28db30,_0x4e6591){return _0x28db30(_0x4e6591);},'DeKIM':function(_0x276535,_0x582352){return _0x276535(_0x582352);},'OOayw':_0xee42e6(0x67),'RFmda':function(_0x4e5ecc,_0x53350a){return _0x4e5ecc(_0x53350a);},'XQxkU':function(_0x420d6c,_0xa50cb1){return _0x420d6c(_0xa50cb1);},'kEKRO':_0xee42e6(0x77),'nkmZe':function(_0x126021,_0x4917fb,_0x531c3c,_0x448b5c){return _0x126021(_0x4917fb,_0x531c3c,_0x448b5c);},'yPbLo':_0xee42e6(0x92),'QpjGo':_0xee42e6(0xa6),'ENUNb':_0xee42e6(0x8a)},_0x3d9cbe=buildPlaywrightCliInvocation(_0x2ef019['sessionId'],_0x2ef019[_0xee42e6(0x87)],_0x2ef019[_0xee42e6(0xa3)]);return new Promise((_0x19711e,_0x2d9f96)=>{const _0x4a2208=_0xee42e6,_0x29a7af={'JaNpJ':_0x2c99d9['OOayw'],'XsVBA':'SIGTERM','hpfYf':function(_0xf69a79,_0x2a04d3,_0x7cbe43){return _0xf69a79(_0x2a04d3,_0x7cbe43);},'oPIGd':function(_0x2eb2d0,_0xe18750){return _0x2c99d9['RFmda'](_0x2eb2d0,_0xe18750);},'lMnCf':function(_0xfbad03,_0x158165){return _0x2c99d9['XQxkU'](_0xfbad03,_0x158165);},'EJani':function(_0x459d73,_0x33cee5){return _0x459d73??_0x33cee5;},'IiSca':function(_0x291cf2,_0x563a99){return _0x291cf2??_0x563a99;},'wVCOj':_0x2c99d9[_0x4a2208(0xa2)],'mWFHF':function(_0x49d6fc,_0x121f3f){return _0x49d6fc(_0x121f3f);}},_0x463c0f=_0x2c99d9[_0x4a2208(0x85)](spawn,_0x3d9cbe['command'],_0x3d9cbe[_0x4a2208(0x9e)],{'cwd':_0x2ef019[_0x4a2208(0x6e)],'env':_0x2ef019[_0x4a2208(0x74)],'stdio':['ignore','pipe',_0x4a2208(0x66)]});let _0x579c17='',_0x1f80c9='',_0x440a69=![];const _0x46ac15=_0x2ef019['timeoutMs']&&_0x2ef019[_0x4a2208(0x7b)]>0x0?setTimeout(()=>{const _0x3ae2af=_0x4a2208;_0x440a69=!![],_0x463c0f[_0x3ae2af(0x81)](_0x29a7af['XsVBA']),_0x29a7af[_0x3ae2af(0x8b)](setTimeout,()=>{const _0x516871=_0x3ae2af;try{_0x463c0f['kill'](_0x29a7af[_0x516871(0x79)]);}catch{}},0x3e8);},_0x2ef019[_0x4a2208(0x7b)]):null;_0x463c0f[_0x4a2208(0x73)]?.['on'](_0x2c99d9[_0x4a2208(0x99)],_0xa0b179=>{const _0x2d1d77=_0x4a2208;_0x579c17+=_0xa0b179[_0x2d1d77(0xa4)]();}),_0x463c0f['stderr']?.['on'](_0x2c99d9[_0x4a2208(0x99)],_0x5ad659=>{_0x1f80c9+=_0x5ad659['toString']();}),_0x463c0f['on'](_0x2c99d9['QpjGo'],_0x503a24=>{const _0x3c4afc=_0x4a2208;if(_0x46ac15)_0x2c99d9['fTiLO'](clearTimeout,_0x46ac15);_0x2c99d9[_0x3c4afc(0x95)](_0x2d9f96,_0x503a24);}),_0x463c0f['on'](_0x2c99d9[_0x4a2208(0x68)],(_0x8edb1d,_0x122c9c)=>{const _0x106b4e=_0x4a2208;if(_0x46ac15)_0x29a7af['oPIGd'](clearTimeout,_0x46ac15);if(_0x8edb1d===0x0){_0x29a7af['lMnCf'](_0x19711e,{'stdout':_0x579c17,'stderr':_0x1f80c9,'invocation':_0x3d9cbe});return;}const _0x3c1bda=_0x440a69?_0x106b4e(0x72)+_0x2ef019['timeoutMs']+'ms':'exited\x20with\x20code='+_0x29a7af[_0x106b4e(0x9a)](_0x8edb1d,_0x106b4e(0x77))+_0x106b4e(0x76)+_0x29a7af['IiSca'](_0x122c9c,_0x29a7af['wVCOj']);_0x2d9f96(new Error('playwright-cli\x20'+_0x3d9cbe[_0x106b4e(0x90)]+'\x20'+_0x3c1bda+'\x0astdout:\x20'+_0x29a7af[_0x106b4e(0x69)](truncateOutput,_0x579c17)+_0x106b4e(0xa5)+_0x29a7af[_0x106b4e(0x69)](truncateOutput,_0x1f80c9)));});});}export function extractBashCommand(_0x419ead){const _0x5919aa=_0x2b8638,_0x348892={'DleDw':_0x5919aa(0x8c),'CAkRS':function(_0x4492a1,_0x26e395){return _0x4492a1===_0x26e395;},'BBdPd':function(_0x2feb7a,_0x276cb9){return _0x2feb7a??_0x276cb9;}},_0x10a768=[_0x5919aa(0x9d),_0x348892[_0x5919aa(0x8e)],_0x5919aa(0x98),_0x5919aa(0x7f)];for(const _0x15f720 of _0x10a768){const _0x62f97c=_0x419ead[_0x15f720];if(_0x348892['CAkRS'](typeof _0x62f97c,_0x5919aa(0xa1))&&_0x62f97c[_0x5919aa(0x93)]())return _0x62f97c;}const _0xb0e827=Object['values'](_0x419ead)['find'](_0x538eef=>typeof _0x538eef===_0x5919aa(0xa1)&&_0x538eef['trim']()[_0x5919aa(0x71)]>0x0);return _0x348892['BBdPd'](_0xb0e827,null);}function _0x5747(_0x34ba35,_0x530fa7){_0x34ba35=_0x34ba35-0x66;const _0x2bbc99=_0x2bbc();let _0x574741=_0x2bbc99[_0x34ba35];return _0x574741;}export function parsePlaywrightCliCommand(_0x5d572){const _0x92fc03=_0x5d572['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x92fc03?.[0x1]??null;}
1
+ (function(_0x3dcbb4,_0x4f95d9){const _0x495749=_0x2405,_0x145ee4=_0x3dcbb4();while(!![]){try{const _0x1f5503=-parseInt(_0x495749(0x1ff))/0x1*(-parseInt(_0x495749(0x206))/0x2)+-parseInt(_0x495749(0x1ec))/0x3+parseInt(_0x495749(0x1f6))/0x4*(-parseInt(_0x495749(0x1f8))/0x5)+parseInt(_0x495749(0x1ed))/0x6*(-parseInt(_0x495749(0x218))/0x7)+-parseInt(_0x495749(0x20b))/0x8*(parseInt(_0x495749(0x200))/0x9)+-parseInt(_0x495749(0x1f3))/0xa+parseInt(_0x495749(0x219))/0xb;if(_0x1f5503===_0x4f95d9)break;else _0x145ee4['push'](_0x145ee4['shift']());}catch(_0x2aa812){_0x145ee4['push'](_0x145ee4['shift']());}}}(_0x29b6,0x94da4));import{spawn}from'child_process';function _0x2405(_0x2a5fa9,_0x252777){_0x2a5fa9=_0x2a5fa9-0x1ea;const _0x29b6b9=_0x29b6();let _0x240547=_0x29b6b9[_0x2a5fa9];return _0x240547;}import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function toPlaywrightCliSessionKey(_0x398c7d){const _0x55ea5a=_0x2405,_0x46982f={'NbSAZ':function(_0x131253,_0x1ac38f){return _0x131253(_0x1ac38f);},'InSBw':_0x55ea5a(0x209)},_0x5c47d9=_0x46982f['NbSAZ'](createHash,_0x46982f[_0x55ea5a(0x212)])['update'](_0x398c7d)[_0x55ea5a(0x21b)]('hex')['slice'](0x0,0xc);return'rg-'+_0x5c47d9;}function shellQuote(_0x40ad68){return'\x27'+_0x40ad68['replace'](/'/g,'\x27\x5c\x27\x27')+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x38f105){const _0xaf8fbc=_0x2405,_0x506c1c={'lptov':function(_0x4c2b26,_0x145e50){return _0x4c2b26(_0x145e50);}};return SAFE_SHELL_TOKEN[_0xaf8fbc(0x21c)](_0x38f105)?_0x38f105:_0x506c1c['lptov'](shellQuote,_0x38f105);}function _0x29b6(){const _0x5995e1=['env','unknown','JXYNT','\x20signal=','KGtGD','2hecWwO','stderr','string','sha256','iZUwb','880JbdzHk','find','UymdZ','null','cmd','npx','vEwws','InSBw','-s=','slice','\x0astdout:\x20','subcommand','configPath','7GEadMR','30306958TkHSHY','map','digest','test','args','CslJW','SeEJz','--config','uXiLw','2706723jYNtFk','259932pqUtDJ','command','close','data','SIGTERM','length','4992240RclWMP','join','timeoutMs','36192PgjSZH','DKTBI','345RLykKQ','trim','playwright-cli\x20','error','KIrij','stdout','SIGKILL','691421nqwxco','62820qbkMpC'];_0x29b6=function(){return _0x5995e1;};return _0x29b6();}export function buildPlaywrightCliInvocation(_0x29e109,_0x7d4aff,_0x435e34){const _0x55b967=_0x2405,_0x42f35f={'SExHo':function(_0x153ad8,_0x347520){return _0x153ad8(_0x347520);},'WgXLS':_0x55b967(0x1ea),'vEwws':'npx','KIrij':function(_0x47f84d,_0x65bb8f){return _0x47f84d(_0x65bb8f);}},_0x3d6462=_0x42f35f['SExHo'](toPlaywrightCliSessionKey,_0x29e109),[_0x4578c4=_0x55b967(0x202)]=_0x435e34,_0x38de3f=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x3d6462,_0x42f35f['WgXLS'],_0x7d4aff,..._0x435e34];return{'command':'npx','args':_0x38de3f,'shellCommand':[_0x42f35f[_0x55b967(0x211)],PLAYWRIGHT_CLI_BINARY,_0x55b967(0x213)+_0x42f35f[_0x55b967(0x1fc)](quoteShellArg,_0x3d6462),'--config',_0x42f35f['KIrij'](quoteShellArg,_0x7d4aff),..._0x435e34[_0x55b967(0x21a)](quoteShellArg)]['join']('\x20'),'subcommand':_0x4578c4};}export function buildPlaywrightCliCommandPrefix(_0x53ba5e,_0x3126bb){const _0x79b6df=_0x2405,_0x2c7f15={'xtlZB':function(_0x559df4,_0x16f628){return _0x559df4(_0x16f628);},'labYS':_0x79b6df(0x210)},_0x190d08=_0x2c7f15['xtlZB'](toPlaywrightCliSessionKey,_0x53ba5e);return[_0x2c7f15['labYS'],PLAYWRIGHT_CLI_BINARY,'-s='+_0x2c7f15['xtlZB'](quoteShellArg,_0x190d08),'--config',quoteShellArg(_0x3126bb)][_0x79b6df(0x1f4)]('\x20');}function truncateOutput(_0x4cfe8f,_0x2e941c=0x7d0){const _0x5628b8=_0x2405,_0x44b746={'NZaXG':function(_0x255e28,_0x596e00){return _0x255e28>_0x596e00;}};return _0x44b746['NZaXG'](_0x4cfe8f[_0x5628b8(0x1f2)],_0x2e941c)?_0x4cfe8f[_0x5628b8(0x214)](0x0,_0x2e941c)+'...':_0x4cfe8f;}export async function runPlaywrightCliCommand(_0x1729ff){const _0x463a27=_0x2405,_0x337ed2={'JXYNT':function(_0x200b47,_0x587a47){return _0x200b47(_0x587a47);},'KGtGD':function(_0x2d1c94,_0x3e38c2){return _0x2d1c94(_0x3e38c2);},'UymdZ':function(_0x3bd090,_0x3e21e0){return _0x3bd090(_0x3e21e0);},'MYBba':function(_0xda525b,_0x11b1cb){return _0xda525b??_0x11b1cb;},'CslJW':_0x463a27(0x20e),'lJYTs':function(_0x814803,_0x2651e9){return _0x814803(_0x2651e9);},'DKTBI':function(_0x5998eb,_0x4c31af,_0x59e61a,_0x3ae87e){return _0x5998eb(_0x4c31af,_0x59e61a,_0x3ae87e);},'WLttx':'ignore','VXOGR':'pipe','uXiLw':'data','YvglF':_0x463a27(0x1fb)},_0x4d6aa7=buildPlaywrightCliInvocation(_0x1729ff['sessionId'],_0x1729ff[_0x463a27(0x217)],_0x1729ff['commandArgs']);return new Promise((_0x2618a8,_0x3c111e)=>{const _0x5b09aa=_0x463a27,_0x3a10dc={'SeEJz':_0x5b09aa(0x1fe)},_0x12bcb4=_0x337ed2[_0x5b09aa(0x1f7)](spawn,_0x4d6aa7[_0x5b09aa(0x1ee)],_0x4d6aa7[_0x5b09aa(0x21d)],{'cwd':_0x1729ff['cwd'],'env':_0x1729ff[_0x5b09aa(0x201)],'stdio':[_0x337ed2['WLttx'],'pipe',_0x337ed2['VXOGR']]});let _0x1c535e='',_0x316dad='',_0x1d5bf2=![];const _0x2bbebe=_0x1729ff['timeoutMs']&&_0x1729ff['timeoutMs']>0x0?setTimeout(()=>{const _0x10480f=_0x5b09aa;_0x1d5bf2=!![],_0x12bcb4['kill'](_0x10480f(0x1f1)),setTimeout(()=>{const _0x4fcda4=_0x10480f;try{_0x12bcb4['kill'](_0x3a10dc[_0x4fcda4(0x21f)]);}catch{}},0x3e8);},_0x1729ff['timeoutMs']):null;_0x12bcb4[_0x5b09aa(0x1fd)]?.['on'](_0x5b09aa(0x1f0),_0x48c711=>{_0x1c535e+=_0x48c711['toString']();}),_0x12bcb4[_0x5b09aa(0x207)]?.['on'](_0x337ed2[_0x5b09aa(0x1eb)],_0x370dd6=>{_0x316dad+=_0x370dd6['toString']();}),_0x12bcb4['on'](_0x337ed2['YvglF'],_0x2c0897=>{const _0x3f8514=_0x5b09aa;if(_0x2bbebe)_0x337ed2[_0x3f8514(0x203)](clearTimeout,_0x2bbebe);_0x337ed2[_0x3f8514(0x205)](_0x3c111e,_0x2c0897);}),_0x12bcb4['on'](_0x5b09aa(0x1ef),(_0x5083e0,_0x35dbef)=>{const _0x25f0a5=_0x5b09aa;if(_0x2bbebe)_0x337ed2[_0x25f0a5(0x20d)](clearTimeout,_0x2bbebe);if(_0x5083e0===0x0){_0x2618a8({'stdout':_0x1c535e,'stderr':_0x316dad,'invocation':_0x4d6aa7});return;}const _0x27ec7e=_0x1d5bf2?'timed\x20out\x20after\x20'+_0x1729ff[_0x25f0a5(0x1f5)]+'ms':'exited\x20with\x20code='+(_0x5083e0??_0x25f0a5(0x20e))+_0x25f0a5(0x204)+_0x337ed2['MYBba'](_0x35dbef,_0x337ed2[_0x25f0a5(0x21e)]);_0x3c111e(new Error(_0x25f0a5(0x1fa)+_0x4d6aa7[_0x25f0a5(0x216)]+'\x20'+_0x27ec7e+_0x25f0a5(0x215)+truncateOutput(_0x1c535e)+'\x0astderr:\x20'+_0x337ed2['lJYTs'](truncateOutput,_0x316dad)));});});}export function extractBashCommand(_0x380554){const _0x3d638e=_0x2405,_0x31f393={'zrCco':'command','fNmFC':_0x3d638e(0x20f),'iZUwb':_0x3d638e(0x208),'lsqtP':function(_0x1708d3,_0x55968b){return _0x1708d3??_0x55968b;}},_0x3bb766=[_0x31f393['zrCco'],_0x31f393['fNmFC'],'script','bash_command'];for(const _0x3971ba of _0x3bb766){const _0x512f6e=_0x380554[_0x3971ba];if(typeof _0x512f6e===_0x31f393[_0x3d638e(0x20a)]&&_0x512f6e[_0x3d638e(0x1f9)]())return _0x512f6e;}const _0x527b4c=Object['values'](_0x380554)[_0x3d638e(0x20c)](_0x47a601=>typeof _0x47a601===_0x3d638e(0x208)&&_0x47a601['trim']()[_0x3d638e(0x1f2)]>0x0);return _0x31f393['lsqtP'](_0x527b4c,null);}export function parsePlaywrightCliCommand(_0x549621){const _0x4450e6=_0x549621['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x4450e6?.[0x1]??null;}
@@ -1 +1 @@
1
- (function(_0x129649,_0x380ff8){const _0x2ed077=_0x5408,_0x50a000=_0x129649();while(!![]){try{const _0xca82df=parseInt(_0x2ed077(0xf7))/0x1+parseInt(_0x2ed077(0xfa))/0x2+-parseInt(_0x2ed077(0xff))/0x3*(parseInt(_0x2ed077(0xf9))/0x4)+parseInt(_0x2ed077(0x101))/0x5+-parseInt(_0x2ed077(0xf8))/0x6*(parseInt(_0x2ed077(0xfb))/0x7)+-parseInt(_0x2ed077(0xfe))/0x8+parseInt(_0x2ed077(0xfc))/0x9*(parseInt(_0x2ed077(0xfd))/0xa);if(_0xca82df===_0x380ff8)break;else _0x50a000['push'](_0x50a000['shift']());}catch(_0xadac15){_0x50a000['push'](_0x50a000['shift']());}}}(_0x3403,0xaf982));const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';export function formatProfileRequiredMessage(_0x49af84){const _0x52998e=_0x5408,_0x5b921b={'mbgBR':function(_0x252d22,_0x187c0d){return _0x252d22(_0x187c0d);}},_0x428aff=_0x49af84?_0x5b921b[_0x52998e(0x100)](_0x49af84,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20'+_0x428aff+'.';}function _0x5408(_0x4bf048,_0x10a981){_0x4bf048=_0x4bf048-0xf7;const _0x34036b=_0x3403();let _0x54089d=_0x34036b[_0x4bf048];return _0x54089d;}function _0x3403(){const _0xc3e50=['8041239okEXpp','20FMirrt','8810080sHflVS','3860694XbQycL','mbgBR','1367465WXmdqP','1008365yfhIhu','7386702OYbsgy','4oLKwfd','2539418OOSIRC','7GJHGEh'];_0x3403=function(){return _0xc3e50;};return _0x3403();}
1
+ const _0x2f8577=_0x2a9f;(function(_0xb311a5,_0x51692d){const _0xb1dd9e=_0x2a9f,_0x472463=_0xb311a5();while(!![]){try{const _0x4f4077=parseInt(_0xb1dd9e(0x1e6))/0x1*(-parseInt(_0xb1dd9e(0x1e4))/0x2)+parseInt(_0xb1dd9e(0x1e3))/0x3+-parseInt(_0xb1dd9e(0x1dd))/0x4+-parseInt(_0xb1dd9e(0x1df))/0x5*(parseInt(_0xb1dd9e(0x1e1))/0x6)+-parseInt(_0xb1dd9e(0x1e2))/0x7*(parseInt(_0xb1dd9e(0x1de))/0x8)+parseInt(_0xb1dd9e(0x1db))/0x9*(-parseInt(_0xb1dd9e(0x1dc))/0xa)+parseInt(_0xb1dd9e(0x1da))/0xb;if(_0x4f4077===_0x51692d)break;else _0x472463['push'](_0x472463['shift']());}catch(_0x27b143){_0x472463['push'](_0x472463['shift']());}}}(_0x4f6d,0xd4ff6));function _0x4f6d(){const _0x978320=['25069GXIoQC','65629201MDVRMw','47358ocxuBL','1100LIaaig','5990116gARnvi','7936NxPVlk','25805Uceglw','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20','1920eolDRx','7448viJhvx','497445KURais','38jdzaKM','ranger\x20profile\x20add\x20local'];_0x4f6d=function(){return _0x978320;};return _0x4f6d();}const DEFAULT_PROFILE_COMMAND=_0x2f8577(0x1e5);function _0x2a9f(_0x11b04e,_0x1cf090){_0x11b04e=_0x11b04e-0x1da;const _0x4f6ded=_0x4f6d();let _0x2a9fb3=_0x4f6ded[_0x11b04e];return _0x2a9fb3;}export function formatProfileRequiredMessage(_0x35874c){const _0x3fab4a=_0x2f8577,_0x4a092c={'aKzHq':function(_0x833196,_0x416231){return _0x833196(_0x416231);}},_0x5d3855=_0x35874c?_0x4a092c['aKzHq'](_0x35874c,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x3fab4a(0x1e0)+_0x5d3855+'.';}
@@ -1 +1 @@
1
- (function(_0x58e4cf,_0x32dd32){const _0x3a0222=_0x421e,_0x1374d9=_0x58e4cf();while(!![]){try{const _0x16a61d=parseInt(_0x3a0222(0x69))/0x1*(parseInt(_0x3a0222(0x72))/0x2)+parseInt(_0x3a0222(0x67))/0x3+-parseInt(_0x3a0222(0x6e))/0x4*(parseInt(_0x3a0222(0x75))/0x5)+-parseInt(_0x3a0222(0x7a))/0x6*(parseInt(_0x3a0222(0x77))/0x7)+-parseInt(_0x3a0222(0x71))/0x8*(-parseInt(_0x3a0222(0x7c))/0x9)+-parseInt(_0x3a0222(0x70))/0xa*(parseInt(_0x3a0222(0x66))/0xb)+-parseInt(_0x3a0222(0x6d))/0xc;if(_0x16a61d===_0x32dd32)break;else _0x1374d9['push'](_0x1374d9['shift']());}catch(_0x3bfcb4){_0x1374d9['push'](_0x1374d9['shift']());}}}(_0x1825,0x4b197));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x315d89=_0x421e,_0x3fb9bb={'gKElQ':function(_0x5b0bfc,_0x622ced){return _0x5b0bfc+_0x622ced;},'DHpdm':'<div\x20class=\x22ranger-banner__content\x22>','PTqgQ':_0x315d89(0x6c),'CYBrl':'<div\x20class=\x22ranger-banner__message\x22>','MnLmo':_0x315d89(0x6b),'gQphh':_0x315d89(0x68)},_0x249231=_0x3fb9bb[_0x315d89(0x74)](_0x3fb9bb[_0x315d89(0x74)](_0x3fb9bb['gKElQ'](_0x3fb9bb['DHpdm']+_0x3fb9bb['PTqgQ']+_0x3fb9bb[_0x315d89(0x6f)]+_0x315d89(0x76),_0x315d89(0x7b)),_0x3fb9bb[_0x315d89(0x79)])+_0x315d89(0x6b),_0x3fb9bb['gQphh']),_0x4ff100='\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a';return'\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20'+JSON[_0x315d89(0x78)](_0x249231)+';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20'+JSON[_0x315d89(0x78)](_0x4ff100)+_0x315d89(0x73);})());function _0x1825(){const _0x5cbbee=['75304pjJQxJ','CYBrl','477240FQByRC','167480awNHrj','2uUeXAC',';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a','gKElQ','60xuTTvc','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','168Fdqodu','stringify','MnLmo','108048MiOMvP','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','261ySvOzx','22YbOXOp','1110252eRpXWK','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','137519eIsXgs','addInitScript','</div>','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','642708tDblhS'];_0x1825=function(){return _0x5cbbee;};return _0x1825();}function _0x421e(_0x4950da,_0x53c886){_0x4950da=_0x4950da-0x66;const _0x18250e=_0x1825();let _0x421ef3=_0x18250e[_0x4950da];return _0x421ef3;}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x26b326){const _0x885e52=_0x421e;await _0x26b326[_0x885e52(0x6a)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
1
+ (function(_0x10ebde,_0x1b28d4){const _0xee546d=_0x2739,_0x41dd7e=_0x10ebde();while(!![]){try{const _0x501cdd=parseInt(_0xee546d(0x1ac))/0x1+parseInt(_0xee546d(0x1a5))/0x2+-parseInt(_0xee546d(0x19f))/0x3*(-parseInt(_0xee546d(0x1a2))/0x4)+-parseInt(_0xee546d(0x1ad))/0x5+parseInt(_0xee546d(0x19c))/0x6+parseInt(_0xee546d(0x1aa))/0x7*(-parseInt(_0xee546d(0x1a8))/0x8)+parseInt(_0xee546d(0x19d))/0x9;if(_0x501cdd===_0x1b28d4)break;else _0x41dd7e['push'](_0x41dd7e['shift']());}catch(_0xde0b6c){_0x41dd7e['push'](_0x41dd7e['shift']());}}}(_0x5f15,0x5f615));function _0x5f15(){const _0xc1fe2e=['<div\x20class=\x22ranger-banner__message\x22>','959azngot','ginbV','359859ROabGD','3003685ShklEm','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','3097710gojHPL','756477egnkGj','stringify','237crVNVX','wTCPU','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','28748guqpPR','</div>','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','455534IqXCUV','<div\x20class=\x22ranger-banner__content\x22>','\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20','44632QTMjSI'];_0x5f15=function(){return _0xc1fe2e;};return _0x5f15();}const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x2f3e95=_0x2739,_0x23da42={'wTCPU':function(_0x46b435,_0x593725){return _0x46b435+_0x593725;},'ginbV':_0x2f3e95(0x1ae),'fWPoJ':_0x2f3e95(0x1a3)},_0x512462=_0x23da42[_0x2f3e95(0x1a0)](_0x2f3e95(0x1a6)+_0x23da42[_0x2f3e95(0x1ab)]+_0x2f3e95(0x1a9),'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>')+_0x2f3e95(0x1a4)+_0x23da42['fWPoJ']+_0x2f3e95(0x1a3)+_0x2f3e95(0x1a1),_0x5c608c='\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a';return _0x2f3e95(0x1a7)+JSON['stringify'](_0x512462)+';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20'+JSON[_0x2f3e95(0x19e)](_0x5c608c)+';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a';})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}function _0x2739(_0x3e64d5,_0x4b856c){_0x3e64d5=_0x3e64d5-0x19c;const _0x5f1564=_0x5f15();let _0x27396b=_0x5f1564[_0x3e64d5];return _0x27396b;}export async function addProfileSetupBanner(_0x3655a8){await _0x3655a8['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}