@ranger-testing/ranger-cli 2.5.4-alpha.0e8b82c-9 → 2.5.4-alpha.1b80607-25

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 (85) hide show
  1. package/README.md +36 -14
  2. package/build/cli.js +1 -1
  3. package/build/commands/addEnv.js +1 -1
  4. package/build/commands/authEncrypt.js +1 -1
  5. package/build/commands/clean.js +1 -1
  6. package/build/commands/config.js +1 -1
  7. package/build/commands/deleteProfile.js +1 -0
  8. package/build/commands/env.js +1 -1
  9. package/build/commands/feature.js +1 -1
  10. package/build/commands/hook.js +1 -1
  11. package/build/commands/hooks/autoPrompt.js +1 -1
  12. package/build/commands/hooks/disable.js +1 -1
  13. package/build/commands/hooks/enable.js +1 -1
  14. package/build/commands/hooks/exitPlanMode.js +1 -1
  15. package/build/commands/hooks/index.js +1 -1
  16. package/build/commands/hooks/output.js +1 -1
  17. package/build/commands/hooks/planReminder.js +1 -1
  18. package/build/commands/hooks/planStart.js +1 -1
  19. package/build/commands/hooks/postEdit.js +1 -1
  20. package/build/commands/hooks/preCompact.js +1 -1
  21. package/build/commands/hooks/sessionEnd.js +1 -1
  22. package/build/commands/hooks/sessionStart.js +1 -1
  23. package/build/commands/hooks/stopHook.js +1 -1
  24. package/build/commands/index.js +1 -1
  25. package/build/commands/login.js +1 -1
  26. package/build/commands/mcpBootstrap.js +1 -1
  27. package/build/commands/migrateProfile.js +1 -1
  28. package/build/commands/setup/claude.js +1 -1
  29. package/build/commands/setup/opencode.js +1 -1
  30. package/build/commands/setupCi.js +1 -1
  31. package/build/commands/skillup.js +1 -1
  32. package/build/commands/start.js +1 -1
  33. package/build/commands/status.js +1 -1
  34. package/build/commands/update.js +1 -1
  35. package/build/commands/updateEnv.js +1 -1
  36. package/build/commands/useEnv.js +1 -1
  37. package/build/commands/utils/activeProfile.js +1 -1
  38. package/build/commands/utils/agentEnv.js +1 -1
  39. package/build/commands/utils/browserSessionsApi.js +1 -1
  40. package/build/commands/utils/claudeConfig.js +1 -1
  41. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  42. package/build/commands/utils/claudePlugin.js +1 -1
  43. package/build/commands/utils/cloudProfile.js +1 -1
  44. package/build/commands/utils/cloudProfileSession.js +1 -1
  45. package/build/commands/utils/crypto.js +1 -1
  46. package/build/commands/utils/desirePathLog.js +1 -1
  47. package/build/commands/utils/deviceAuth.js +1 -1
  48. package/build/commands/utils/environment.js +1 -1
  49. package/build/commands/utils/featureApi.js +1 -1
  50. package/build/commands/utils/fixWebmDuration.js +1 -1
  51. package/build/commands/utils/gitTracked.js +1 -1
  52. package/build/commands/utils/keychain.js +1 -1
  53. package/build/commands/utils/legacyWarning.js +1 -0
  54. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  55. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  56. package/build/commands/utils/mcpImageBase64.js +1 -1
  57. package/build/commands/utils/model.js +1 -1
  58. package/build/commands/utils/novaActCli.js +1 -0
  59. package/build/commands/utils/opencodeConfig.js +1 -1
  60. package/build/commands/utils/playwrightCli.js +1 -1
  61. package/build/commands/utils/profileMessages.js +1 -1
  62. package/build/commands/utils/profileSetupBanner.js +1 -1
  63. package/build/commands/utils/projectsConfig.js +1 -1
  64. package/build/commands/utils/rangerConfig.js +1 -1
  65. package/build/commands/utils/rangerRoot.js +1 -1
  66. package/build/commands/utils/resolveProfileContext.js +1 -1
  67. package/build/commands/utils/resolveProfileUrl.js +1 -1
  68. package/build/commands/utils/retry.js +1 -1
  69. package/build/commands/utils/sessionCache.js +1 -1
  70. package/build/commands/utils/settings.js +1 -1
  71. package/build/commands/utils/skillContent.js +1 -1
  72. package/build/commands/utils/skills.js +1 -1
  73. package/build/commands/utils/stitchWebmFiles.js +1 -1
  74. package/build/commands/utils/telemetry.js +1 -1
  75. package/build/commands/utils/tokenRefresh.js +1 -1
  76. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  77. package/build/commands/utils/userApi.js +1 -1
  78. package/build/commands/utils/version.js +1 -1
  79. package/build/commands/verifyFeature.js +1 -1
  80. package/build/commands/verifyFeatureCli.js +1 -1
  81. package/build/commands/verifyFeatureNovaCli.js +1 -0
  82. package/build/skills/ranger/SKILL.md +24 -8
  83. package/build/skills/ranger/create.md +16 -3
  84. package/build/skills/ranger/verify.md +35 -10
  85. package/package.json +3 -2
@@ -1 +1 @@
1
- (function(_0x52b15f,_0x219a9e){const _0x387ce2=_0x5b62,_0x24e12a=_0x52b15f();while(!![]){try{const _0x3be802=-parseInt(_0x387ce2(0x12c))/0x1+-parseInt(_0x387ce2(0x12a))/0x2*(-parseInt(_0x387ce2(0x12e))/0x3)+-parseInt(_0x387ce2(0x11d))/0x4+-parseInt(_0x387ce2(0x12b))/0x5*(parseInt(_0x387ce2(0x122))/0x6)+-parseInt(_0x387ce2(0x121))/0x7+-parseInt(_0x387ce2(0x130))/0x8*(parseInt(_0x387ce2(0x126))/0x9)+parseInt(_0x387ce2(0x120))/0xa;if(_0x3be802===_0x219a9e)break;else _0x24e12a['push'](_0x24e12a['shift']());}catch(_0xf7fc3f){_0x24e12a['push'](_0x24e12a['shift']());}}}(_0x49b2,0xe3824));function _0x49b2(){const _0x32677f=['message','34477850IOXxVt','10152114mGhsEL','6yoTZes','object','string','config.json','1062ztHIgh','utf-8','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','LJURR','94878kmQWNw','701780LVRLjX','842112saRfha','HJnfW','102sCmDrD','parse','9848fatrxx','6203228JVFrny','model'];_0x49b2=function(){return _0x32677f;};return _0x49b2();}import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';function _0x5b62(_0x26c610,_0x513094){_0x26c610=_0x26c610-0x11d;const _0x49b212=_0x49b2();let _0x5b628c=_0x49b212[_0x26c610];return _0x5b628c;}import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x21b4b0=_0x5b62,_0x11fff3={'HJnfW':_0x21b4b0(0x125)};return join(getRangerDir(),_0x11fff3[_0x21b4b0(0x12d)]);}export async function loadRangerConfig(){const _0x20427c=_0x5b62,_0x572c87={'yDKPr':_0x20427c(0x127),'LJURR':function(_0x5444c4,_0x3b9c73){return _0x5444c4===_0x3b9c73;},'AxQvJ':function(_0x215998,_0x2ca44c){return _0x215998 instanceof _0x2ca44c;}},_0x40ae7d=getRangerConfigPath();if(!existsSync(_0x40ae7d))return{};try{const _0x1adb8d=await readFile(_0x40ae7d,_0x572c87['yDKPr']),_0x149d96=JSON[_0x20427c(0x12f)](_0x1adb8d);if(!_0x149d96||typeof _0x149d96!==_0x20427c(0x123)||Array['isArray'](_0x149d96))return{};const _0x9a7299={},_0x215dce=_0x149d96[_0x20427c(0x11e)];return _0x572c87[_0x20427c(0x129)](typeof _0x215dce,_0x20427c(0x124))&&(_0x9a7299['model']=_0x215dce),_0x9a7299;}catch(_0x38d5d7){const _0x8b312a=_0x572c87['AxQvJ'](_0x38d5d7,Error)?_0x38d5d7[_0x20427c(0x11f)]:String(_0x38d5d7);return console['warn'](_0x20427c(0x128)+_0x40ae7d+':\x20'+_0x8b312a),{};}}
1
+ (function(_0x425c2f,_0x1ead7f){const _0x142cd3=_0x3c4b,_0x4978b3=_0x425c2f();while(!![]){try{const _0x3a9562=-parseInt(_0x142cd3(0xd3))/0x1+-parseInt(_0x142cd3(0xce))/0x2+-parseInt(_0x142cd3(0xdc))/0x3*(-parseInt(_0x142cd3(0xd6))/0x4)+parseInt(_0x142cd3(0xd1))/0x5+parseInt(_0x142cd3(0xd0))/0x6*(-parseInt(_0x142cd3(0xd5))/0x7)+-parseInt(_0x142cd3(0xdb))/0x8+parseInt(_0x142cd3(0xd7))/0x9;if(_0x3a9562===_0x1ead7f)break;else _0x4978b3['push'](_0x4978b3['shift']());}catch(_0x1acf58){_0x4978b3['push'](_0x4978b3['shift']());}}}(_0x15d7,0xd4a32));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';function _0x15d7(){const _0x1a178a=['message','3584105djScXT','4nuBDWa','13163436AOqkVc','wxXCP','string','config.json','117192CMaXuD','4926246QgurFJ','warn','811686qrrBJB','model','18KVPdzZ','3482495xofFbR','object','973686Fvdont'];_0x15d7=function(){return _0x1a178a;};return _0x15d7();}import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x16e6d7=_0x3c4b,_0x4c7323={'WjDZq':_0x16e6d7(0xda)};return join(getRangerDir(),_0x4c7323['WjDZq']);}function _0x3c4b(_0x489506,_0x29664b){_0x489506=_0x489506-0xce;const _0x15d7d5=_0x15d7();let _0x3c4bfc=_0x15d7d5[_0x489506];return _0x3c4bfc;}export async function loadRangerConfig(){const _0x24d33b=_0x3c4b,_0x27a8c3={'SDLEn':function(_0x90d52f){return _0x90d52f();},'vnZxK':function(_0x3b4564,_0x16ea6d){return _0x3b4564(_0x16ea6d);},'hsvSE':function(_0x2924ec,_0x2cff9a,_0x4f8ba4){return _0x2924ec(_0x2cff9a,_0x4f8ba4);},'wxXCP':function(_0x319c47,_0x386e44){return _0x319c47===_0x386e44;},'qPmsN':_0x24d33b(0xd9),'eATDp':function(_0x3d27c7,_0x5a8cd9){return _0x3d27c7 instanceof _0x5a8cd9;}},_0x3093ee=_0x27a8c3['SDLEn'](getRangerConfigPath);if(!_0x27a8c3['vnZxK'](existsSync,_0x3093ee))return{};try{const _0x48f586=await _0x27a8c3['hsvSE'](readFile,_0x3093ee,'utf-8'),_0x5467d9=JSON['parse'](_0x48f586);if(!_0x5467d9||typeof _0x5467d9!==_0x24d33b(0xd2)||Array['isArray'](_0x5467d9))return{};const _0x2515d0={},_0x27a4dd=_0x5467d9['model'];return _0x27a8c3[_0x24d33b(0xd8)](typeof _0x27a4dd,_0x27a8c3['qPmsN'])&&(_0x2515d0[_0x24d33b(0xcf)]=_0x27a4dd),_0x2515d0;}catch(_0x15bf20){const _0x113eb5=_0x27a8c3['eATDp'](_0x15bf20,Error)?_0x15bf20[_0x24d33b(0xd4)]:_0x27a8c3['vnZxK'](String,_0x15bf20);return console[_0x24d33b(0xdd)]('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x3093ee+':\x20'+_0x113eb5),{};}}
@@ -1 +1 @@
1
- (function(_0x228625,_0x3cd5cd){const _0x67cc50=_0x3b27,_0xc31643=_0x228625();while(!![]){try{const _0x3aecdf=parseInt(_0x67cc50(0xaa))/0x1*(-parseInt(_0x67cc50(0xae))/0x2)+parseInt(_0x67cc50(0xb2))/0x3*(-parseInt(_0x67cc50(0xac))/0x4)+-parseInt(_0x67cc50(0xb0))/0x5+parseInt(_0x67cc50(0xa9))/0x6+-parseInt(_0x67cc50(0xb6))/0x7+parseInt(_0x67cc50(0xb1))/0x8*(-parseInt(_0x67cc50(0xa7))/0x9)+parseInt(_0x67cc50(0xab))/0xa;if(_0x3aecdf===_0x3cd5cd)break;else _0xc31643['push'](_0xc31643['shift']());}catch(_0x4cdf5f){_0xc31643['push'](_0xc31643['shift']());}}}(_0x43bd,0x8ef44));function _0x3b27(_0x73d9c6,_0x1168d9){_0x73d9c6=_0x73d9c6-0xa5;const _0x43bd69=_0x43bd();let _0x3b27fb=_0x43bd69[_0x73d9c6];return _0x3b27fb;}import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0xce987e=_0x3b27,_0x1b409a={'mNeHP':function(_0x1eab95,_0x18f8a9){return _0x1eab95(_0x18f8a9);},'qFXWX':function(_0x3146da,_0x229845){return _0x3146da!==_0x229845;},'MBTgX':function(_0x3170a6,_0xb6db4a,_0x5f2dbe){return _0x3170a6(_0xb6db4a,_0x5f2dbe);},'QaOPO':function(_0x28c58b,_0x48adbf){return _0x28c58b(_0x48adbf);},'gLUTQ':function(_0x187583,_0x42943e,_0x40c7f1){return _0x187583(_0x42943e,_0x40c7f1);},'JoiJy':function(_0x215c43){return _0x215c43();}};let _0x14836c=process['cwd']();const _0x1e4bbd=_0x1b409a['mNeHP'](parse,_0x14836c)[_0xce987e(0xa8)];while(_0x1b409a[_0xce987e(0xa6)](_0x14836c,_0x1e4bbd)){if(existsSync(_0x1b409a[_0xce987e(0xb8)](join,_0x14836c,'.ranger')))return _0x14836c;_0x14836c=dirname(_0x14836c);}if(_0x1b409a['QaOPO'](existsSync,_0x1b409a[_0xce987e(0xaf)](join,_0x1e4bbd,'.ranger')))return _0x1e4bbd;const _0x1d71e1=_0x1b409a['JoiJy'](findGitRoot);if(_0x1d71e1)return _0x1d71e1;return process[_0xce987e(0xad)]();}function _0x43bd(){const _0x3171a5=['gLUTQ','3452330dKwuyG','24pUaVwB','3PwAMNK','.ranger','RtLqS','.git','308035FuyFtt','FOQAQ','MBTgX','ZmzZF','qFXWX','1190142fHbZyO','root','6607836RbUTJO','8jdErsh','16970100qhaCMB','1705532DeEFTF','cwd','163802zsOUtm'];_0x43bd=function(){return _0x3171a5;};return _0x43bd();}export function getRangerDir(){return join(getRangerRoot(),'.ranger');}export function findGitRoot(){const _0x11bac0=_0x3b27,_0x2eccd3={'FOQAQ':function(_0x1ffb7e,_0x74f1db){return _0x1ffb7e!==_0x74f1db;},'RtLqS':function(_0x4a6c2d,_0x171daa){return _0x4a6c2d(_0x171daa);},'GhAuj':'.git','ZmzZF':function(_0x4a77e8,_0x37de7a){return _0x4a77e8(_0x37de7a);}};let _0x3ed820=process['cwd']();const _0x3c41c6=parse(_0x3ed820)['root'];while(_0x2eccd3[_0x11bac0(0xb7)](_0x3ed820,_0x3c41c6)){if(_0x2eccd3[_0x11bac0(0xb4)](existsSync,join(_0x3ed820,_0x2eccd3['GhAuj'])))return _0x3ed820;_0x3ed820=_0x2eccd3[_0x11bac0(0xa5)](dirname,_0x3ed820);}if(_0x2eccd3['ZmzZF'](existsSync,join(_0x3c41c6,_0x11bac0(0xb5))))return _0x3c41c6;return null;}export function getRangerHomeDir(){const _0x646d71=_0x3b27,_0x17850e={'HCkdf':function(_0x1ed088){return _0x1ed088();}};return join(_0x17850e['HCkdf'](homedir),_0x646d71(0xb3));}
1
+ (function(_0x27cf3f,_0x541d56){const _0x406cac=_0x4c87,_0x59da09=_0x27cf3f();while(!![]){try{const _0xdca87d=parseInt(_0x406cac(0x15a))/0x1*(parseInt(_0x406cac(0x159))/0x2)+parseInt(_0x406cac(0x157))/0x3*(-parseInt(_0x406cac(0x150))/0x4)+-parseInt(_0x406cac(0x156))/0x5+parseInt(_0x406cac(0x14d))/0x6+parseInt(_0x406cac(0x151))/0x7+parseInt(_0x406cac(0x155))/0x8*(-parseInt(_0x406cac(0x14e))/0x9)+-parseInt(_0x406cac(0x14f))/0xa*(parseInt(_0x406cac(0x152))/0xb);if(_0xdca87d===_0x541d56)break;else _0x59da09['push'](_0x59da09['shift']());}catch(_0x47991a){_0x59da09['push'](_0x59da09['shift']());}}}(_0x3adc,0xd555a));function _0x3adc(){const _0x3969f5=['root','6026224gTCWTq','224205zqohBR','13422Zpdclp','.ranger','166274rovlxc','12DHDptr','CNWBF','.git','GwoPG','ZgccC','7049400IETMuc','9Eeqsfm','850UcdZUd','12iuJNTX','5821130uxFAgy','170665SaqEYT','cwd'];_0x3adc=function(){return _0x3969f5;};return _0x3adc();}import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';function _0x4c87(_0x3838bf,_0xac84eb){_0x3838bf=_0x3838bf-0x14b;const _0x3adc07=_0x3adc();let _0x4c8738=_0x3adc07[_0x3838bf];return _0x4c8738;}export function getRangerRoot(){const _0x5314e3=_0x4c87,_0x9f070e={'YlSxG':function(_0x274e85,_0x70809c){return _0x274e85(_0x70809c);},'ZgccC':function(_0x41702c,_0x3120b0){return _0x41702c!==_0x3120b0;}};let _0x345126=process[_0x5314e3(0x153)]();const _0x353e64=_0x9f070e['YlSxG'](parse,_0x345126)[_0x5314e3(0x154)];while(_0x9f070e[_0x5314e3(0x14c)](_0x345126,_0x353e64)){if(existsSync(join(_0x345126,_0x5314e3(0x158))))return _0x345126;_0x345126=_0x9f070e['YlSxG'](dirname,_0x345126);}if(existsSync(join(_0x353e64,'.ranger')))return _0x353e64;const _0x3d85a4=findGitRoot();if(_0x3d85a4)return _0x3d85a4;return process[_0x5314e3(0x153)]();}export function getRangerDir(){const _0xa2c102=_0x4c87,_0x507f6b={'NDUst':function(_0x7d9835,_0x33f2aa,_0x1f9d0b){return _0x7d9835(_0x33f2aa,_0x1f9d0b);},'GwoPG':_0xa2c102(0x158)};return _0x507f6b['NDUst'](join,getRangerRoot(),_0x507f6b[_0xa2c102(0x14b)]);}export function findGitRoot(){const _0xfb9a62=_0x4c87,_0x3ca8ab={'CNWBF':function(_0x2bea15,_0x17f787){return _0x2bea15(_0x17f787);},'JUksZ':function(_0x5404f0,_0x109a4a,_0x32a451){return _0x5404f0(_0x109a4a,_0x32a451);}};let _0x6388d8=process['cwd']();const _0xa1d323=_0x3ca8ab[_0xfb9a62(0x15b)](parse,_0x6388d8)[_0xfb9a62(0x154)];while(_0x6388d8!==_0xa1d323){if(existsSync(join(_0x6388d8,'.git')))return _0x6388d8;_0x6388d8=dirname(_0x6388d8);}if(_0x3ca8ab[_0xfb9a62(0x15b)](existsSync,_0x3ca8ab['JUksZ'](join,_0xa1d323,_0xfb9a62(0x15c))))return _0xa1d323;return null;}export function getRangerHomeDir(){const _0x375f2a={'Glqhs':function(_0x42a9ef,_0x104f2b,_0x1ff769){return _0x42a9ef(_0x104f2b,_0x1ff769);},'XgDRK':function(_0x11fed6){return _0x11fed6();}};return _0x375f2a['Glqhs'](join,_0x375f2a['XgDRK'](homedir),'.ranger');}
@@ -1 +1 @@
1
- (function(_0x34fc70,_0x4681c1){const _0xada90f=_0x117f,_0x124a64=_0x34fc70();while(!![]){try{const _0x5947c9=-parseInt(_0xada90f(0x182))/0x1*(parseInt(_0xada90f(0x17c))/0x2)+-parseInt(_0xada90f(0x171))/0x3*(parseInt(_0xada90f(0x173))/0x4)+-parseInt(_0xada90f(0x199))/0x5*(parseInt(_0xada90f(0x177))/0x6)+-parseInt(_0xada90f(0x179))/0x7+-parseInt(_0xada90f(0x1a5))/0x8*(-parseInt(_0xada90f(0x1a3))/0x9)+-parseInt(_0xada90f(0x19e))/0xa*(parseInt(_0xada90f(0x19b))/0xb)+-parseInt(_0xada90f(0x18c))/0xc*(-parseInt(_0xada90f(0x187))/0xd);if(_0x5947c9===_0x4681c1)break;else _0x124a64['push'](_0x124a64['shift']());}catch(_0x33e0b7){_0x124a64['push'](_0x124a64['shift']());}}}(_0x4933,0x57f8f));import{existsSync}from'fs';import _0x245e38 from'inquirer';import{ApiError,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';function _0x117f(_0x17f7d2,_0x270d3d){_0x17f7d2=_0x17f7d2-0x16e;const _0x4933fd=_0x4933();let _0x117fe9=_0x4933fd[_0x17f7d2];return _0x117fe9;}export async function resolveProfileContext(_0x17e9b5){const _0x506cc2=_0x117f,_0x1b03b8={'jDyIv':function(_0xd3ebd2){return _0xd3ebd2();},'KLNzm':function(_0x2c3b6e,_0x4d5819){return _0x2c3b6e+_0x4d5819;},'pLyCk':_0x506cc2(0x196),'AaoXm':_0x506cc2(0x18b),'WeUrm':'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','jSaFZ':'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','TBPLj':function(_0x20a232,_0x1e53e5){return _0x20a232(_0x1e53e5);},'TbSKG':function(_0x42052a,_0x238299){return _0x42052a instanceof _0x238299;},'xfgXI':'`ranger\x20profile\x20add`\x20to\x20create\x20one.','islUx':function(_0x1cc15b){return _0x1cc15b();},'ZDWeE':'list','ZpmsU':_0x506cc2(0x192),'IASAw':_0x506cc2(0x198),'ApPCh':'cloud','tCHRi':function(_0x3cecd2,_0x55b36e){return _0x3cecd2(_0x55b36e);},'YLLuV':function(_0xb4011d,_0x189d21,_0x19eda4){return _0xb4011d(_0x189d21,_0x19eda4);},'ySKzx':function(_0x558a4f,_0x3dc79e){return _0x558a4f??_0x3dc79e;},'bUPjx':function(_0x234a21,_0x5ac22b){return _0x234a21(_0x5ac22b);},'TgtKq':function(_0x12e7f1,_0x5c1c7b){return _0x12e7f1(_0x5c1c7b);},'PBlrb':function(_0x5e12d4,_0x160acf){return _0x5e12d4(_0x160acf);}},_0x30af40=_0x17e9b5['profile'];let _0x43cb5c=_0x17e9b5['profile']??await readActiveProfileName(),_0xbcaeca=null;if(!_0x43cb5c&&process['env'][_0x506cc2(0x17e)]){const _0x26fe9f=await resolveAdHocProfile();_0x26fe9f&&(_0x43cb5c=_0x26fe9f['name'],_0xbcaeca=_0x26fe9f[_0x506cc2(0x18d)]);}if(!_0x43cb5c)try{const _0x1ea39d=await _0x1b03b8['jDyIv'](listCloudProfiles);if(_0x1ea39d['length']===0x1){const _0xb73b14=_0x1ea39d[0x0];_0x43cb5c=_0xb73b14[_0x506cc2(0x174)],console[_0x506cc2(0x190)]('\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20'+_0xb73b14['name']),console[_0x506cc2(0x190)]('\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)');}}catch{}if(!_0x43cb5c)throw new Error(_0x1b03b8[_0x506cc2(0x181)]('Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a',_0x1b03b8[_0x506cc2(0x1a4)])+_0x1b03b8['AaoXm']+_0x1b03b8['WeUrm']+_0x1b03b8[_0x506cc2(0x183)]);const _0x10e857=_0x1b03b8[_0x506cc2(0x16e)](getEnvDir,_0x43cb5c),_0x593b9a=existsSync(_0x10e857);let _0x11290a=_0xbcaeca,_0x22ca8b=![];if(!_0x11290a)try{_0x11290a=await _0x1b03b8['TBPLj'](fetchCloudProfile,_0x43cb5c);if(!_0x11290a)_0x22ca8b=!![];}catch(_0x54d6f8){_0x1b03b8['TbSKG'](_0x54d6f8,ApiError)&&_0x54d6f8['status']===0x194&&(_0x22ca8b=!![]);}if(_0x30af40&&_0x22ca8b&&!_0x593b9a&&!_0x11290a)throw new Error(_0x1b03b8[_0x506cc2(0x181)](_0x506cc2(0x170)+_0x30af40+_0x506cc2(0x1a0)+'\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20',_0x1b03b8[_0x506cc2(0x19d)]));if(_0x11290a&&_0x593b9a){let _0x1929ce=!![];if(_0x1b03b8[_0x506cc2(0x18f)](isInteractive)){const {source:_0x5be54a}=await _0x245e38[_0x506cc2(0x19a)]([{'type':_0x1b03b8[_0x506cc2(0x186)],'name':_0x1b03b8['ZpmsU'],'message':_0x506cc2(0x170)+_0x43cb5c+'\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','choices':[{'name':_0x506cc2(0x189),'value':_0x506cc2(0x17a)},{'name':_0x1b03b8['IASAw'],'value':_0x506cc2(0x17b)}],'default':_0x1b03b8[_0x506cc2(0x197)]}]);_0x1929ce=_0x5be54a===_0x1b03b8[_0x506cc2(0x197)];}if(!_0x1929ce)_0x11290a=null;}const _0x55a39f=readProfileOverrides(process['cwd'](),_0x43cb5c);let _0x4a14a4=null,_0x59f96d,_0x59348d,_0x3cfa7c,_0xfd9b1,_0x45ae6f=null,_0x5ae28d;const _0xab24a5=_0x1b03b8[_0x506cc2(0x178)](expandOverrides,_0x55a39f);if(_0x11290a){_0x4a14a4=_0x11290a;const _0x23d64f=_0x11290a['settings']??{},_0x5f0c39=_0x1b03b8[_0x506cc2(0x1a2)](mergeCloudProfileSettings,_0x23d64f,_0x1b03b8[_0x506cc2(0x1a1)](_0x55a39f,undefined)),_0x5420ec={..._0x11290a,'settings':_0x5f0c39},_0x224da0=process[_0x506cc2(0x18e)][_0x506cc2(0x180)];if(_0x224da0){if(!existsSync(_0x224da0))throw new Error(_0x506cc2(0x175)+_0x224da0+_0x506cc2(0x19c));_0x59f96d=_0x224da0,_0x59348d=resolveEnvVars(_0x5f0c39),_0x3cfa7c=_0x1b03b8[_0x506cc2(0x185)](Boolean,_0x59348d['cdpEndpoint']),_0x45ae6f={'baseUrl':expandString(_0x23d64f[_0x506cc2(0x172)]),'startPath':_0x1b03b8[_0x506cc2(0x185)](expandString,_0x23d64f['startPath'])};}else{const _0x1915e3=await resolveCloudProfileSession(_0x5420ec);_0x59f96d=_0x1915e3[_0x506cc2(0x176)],_0x59348d=_0x1b03b8[_0x506cc2(0x191)](resolveEnvVars,_0x5f0c39),_0x3cfa7c=_0x1b03b8[_0x506cc2(0x188)](Boolean,_0x59348d['cdpEndpoint']),_0x45ae6f={'baseUrl':_0x1b03b8['bUPjx'](expandString,_0x23d64f[_0x506cc2(0x172)]),'startPath':expandString(_0x23d64f['startPath'])},_0x5ae28d=_0x1915e3[_0x506cc2(0x17d)]?.[_0x506cc2(0x19f)]?.[0x0];}}else{if(!_0x593b9a)throw new Error(_0x506cc2(0x170)+_0x43cb5c+'\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x43cb5c);const _0x33b777=await _0x1b03b8[_0x506cc2(0x191)](loadSettings,_0x43cb5c);_0x59348d=resolveEnvVars(_0x33b777),_0x3cfa7c=_0x1b03b8['TBPLj'](Boolean,_0x59348d['cdpEndpoint']),_0xfd9b1=_0x59348d[_0x506cc2(0x172)];}const _0x2759bd=_0x1b03b8['jDyIv'](readUrlEnvVars),_0x53c544=_0x1b03b8['TBPLj'](resolveProfileUrl,{'flagBaseUrl':_0x17e9b5[_0x506cc2(0x172)],'flagStartPath':_0x17e9b5[_0x506cc2(0x195)],'envBaseUrl':_0x2759bd['envBaseUrl'],'envStartPath':_0x2759bd[_0x506cc2(0x194)],'localSettingsBaseUrl':_0xfd9b1,'projectOverrides':_0xab24a5,'cloudSettings':_0x45ae6f,'authEnvironmentDomain':_0x5ae28d}),_0x95086=_0x53c544['url']??_0x53c544['baseUrl'];if(!_0x95086&&!_0x3cfa7c)throw new Error(_0x506cc2(0x193)+_0x43cb5c+'\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20'+_0x43cb5c+'\x20baseUrl\x20<url>');return{'activeProfile':_0x43cb5c,'resolvedCloudProfile':_0x4a14a4,'cloudAuthPath':_0x59f96d,'resolvedSettings':_0x59348d,'isCdpMode':_0x3cfa7c,'url':_0x95086,'startPath':_0x53c544['startPath']};}function expandString(_0x376a8d){const _0x2834e0=_0x117f,_0x592a4e={'PrXuE':function(_0x5ad144,_0x35b039){return _0x5ad144!==_0x35b039;}};if(_0x592a4e[_0x2834e0(0x16f)](typeof _0x376a8d,_0x2834e0(0x17f)))return _0x376a8d;return resolveEnvVars(_0x376a8d);}function expandOverrides(_0x157a6c){const _0x12d974=_0x117f,_0x3b8108={'eBwhq':_0x12d974(0x17f),'KTvzi':function(_0x42a65d,_0x3b3870){return _0x42a65d(_0x3b3870);}};if(!_0x157a6c)return _0x157a6c;const _0x3a895b={..._0x157a6c};return typeof _0x3a895b['baseUrl']===_0x3b8108[_0x12d974(0x184)]&&(_0x3a895b['baseUrl']=_0x3b8108[_0x12d974(0x18a)](resolveEnvVars,_0x3a895b['baseUrl'])),typeof _0x3a895b['startPath']===_0x3b8108['eBwhq']&&(_0x3a895b['startPath']=resolveEnvVars(_0x3a895b[_0x12d974(0x195)])),_0x3a895b;}function _0x4933(){const _0x19650f=['local','22oxfeFP','resolvedEnv','RANGER_TEST_USERNAME','string','RANGER_SESSION_STATE_PATH','KLNzm','55623SIFIJz','jSaFZ','eBwhq','bUPjx','ZDWeE','262444mrepvm','PBlrb','Cloud\x20profile\x20(recommended)','KTvzi','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','1548xsthAa','profile','env','islUx','log','TgtKq','source','No\x20baseUrl\x20configured\x20for\x20profile\x20\x22','envStartPath','startPath','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','ApPCh','Local\x20profile','2722860VUkIpZ','prompt','2695QAKxnX','\x20does\x20not\x20exist.','xfgXI','18930RsCEWi','domains','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','ySKzx','YLLuV','1278XqftSx','pLyCk','8696dqvejJ','TBPLj','PrXuE','Profile\x20\x22','3BXhHMf','baseUrl','1988500QJzRDy','name','RANGER_SESSION_STATE_PATH=','authPath','6EMpEuV','tCHRi','1966552NFtMrg','cloud'];_0x4933=function(){return _0x19650f;};return _0x4933();}
1
+ (function(_0x266510,_0x2166e4){const _0x368653=_0x15d6,_0x1f2cf2=_0x266510();while(!![]){try{const _0x465a89=parseInt(_0x368653(0xf2))/0x1+-parseInt(_0x368653(0xd9))/0x2*(-parseInt(_0x368653(0xfd))/0x3)+parseInt(_0x368653(0xe0))/0x4*(parseInt(_0x368653(0xf9))/0x5)+-parseInt(_0x368653(0xd6))/0x6*(parseInt(_0x368653(0xe8))/0x7)+-parseInt(_0x368653(0xfa))/0x8*(-parseInt(_0x368653(0x101))/0x9)+-parseInt(_0x368653(0xed))/0xa+-parseInt(_0x368653(0xea))/0xb;if(_0x465a89===_0x2166e4)break;else _0x1f2cf2['push'](_0x1f2cf2['shift']());}catch(_0xc0b1eb){_0x1f2cf2['push'](_0x1f2cf2['shift']());}}}(_0x1505,0x360e7));function _0x1505(){const _0x129512=['\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','status','JAKvf','\x20baseUrl\x20<url>','99165dxVCfz','profile','dTyap','wRrty','MVeHq','RANGER_SESSION_STATE_PATH','Bmcde','61735xdpFUE','89288NJhwTw','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','87495jibOWe','cdpEndpoint','Local\x20profile','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','288LGIEAd','cwd','JnwAz','xVWAg','6RWauxe','OUZiY','aNoyr','10asrnKI','domains','HOBir','baseUrl','\x20does\x20not\x20exist.','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','rXccc','52yXqIHX','Fwbwp','RANGER_TEST_USERNAME','eJPrp','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','startPath','resolvedEnv','string','2700649iWJrcY','`ranger\x20profile\x20add`\x20to\x20create\x20one.','691768qkGZOO','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','local','925430FKEuiF'];_0x1505=function(){return _0x129512;};return _0x1505();}import{existsSync}from'fs';import _0x4f37b9 from'inquirer';import{ApiError,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x38ca91){const _0x4476ea=_0x15d6,_0x29125d={'iDDqP':function(_0x1cd9b){return _0x1cd9b();},'aNoyr':function(_0x1aed59){return _0x1aed59();},'IhiqJ':function(_0x1a6fb6,_0x2d2741){return _0x1a6fb6===_0x2d2741;},'GnDPe':function(_0x3d41a1,_0x1fbc81){return _0x3d41a1+_0x1fbc81;},'IRSMe':function(_0x48fb1c,_0x53c955){return _0x48fb1c+_0x53c955;},'ggOeG':_0x4476ea(0xe4),'Bmcde':_0x4476ea(0xee),'OUZiY':'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','wRrty':function(_0xbf84d6,_0x627484){return _0xbf84d6(_0x627484);},'JnwAz':function(_0x421fc5,_0x419b1c){return _0x421fc5 instanceof _0x419b1c;},'GIZGE':function(_0x436e7f,_0x1ee409){return _0x436e7f&&_0x1ee409;},'WoRtt':function(_0xbaf807,_0x3ba54e){return _0xbaf807&&_0x3ba54e;},'oOsXf':'list','MPvXD':'source','vrxlh':'Cloud\x20profile\x20(recommended)','xVWAg':_0x4476ea(0xec),'HOBir':'cloud','fcVvP':function(_0x3c273b,_0x29befd){return _0x3c273b??_0x29befd;},'Fwbwp':function(_0x2004e3,_0x4eecf9){return _0x2004e3(_0x4eecf9);},'rXccc':function(_0xaa99bd,_0x5d4dcc){return _0xaa99bd(_0x5d4dcc);},'MVeHq':function(_0x4f273d,_0x51485e){return _0x4f273d(_0x51485e);},'dTyap':function(_0x5d8ebf){return _0x5d8ebf();}},_0x2dc565=_0x38ca91[_0x4476ea(0xf3)];let _0x130534=_0x38ca91['profile']??await readActiveProfileName(),_0x2e3dc5=null;if(!_0x130534&&process['env'][_0x4476ea(0xe2)]){const _0xac26b6=await _0x29125d['iDDqP'](resolveAdHocProfile);_0xac26b6&&(_0x130534=_0xac26b6['name'],_0x2e3dc5=_0xac26b6[_0x4476ea(0xf3)]);}if(!_0x130534)try{const _0x23cbff=await _0x29125d[_0x4476ea(0xd8)](listCloudProfiles);if(_0x29125d['IhiqJ'](_0x23cbff['length'],0x1)){const _0x534c1a=_0x23cbff[0x0];_0x130534=_0x534c1a['name'],console['log'](_0x4476ea(0xeb)+_0x534c1a['name']),console['log'](_0x4476ea(0x100));}}catch{}if(!_0x130534)throw new Error(_0x29125d['GnDPe'](_0x29125d['GnDPe'](_0x29125d['IRSMe'](_0x4476ea(0xfb),'\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a'),_0x29125d['ggOeG']),_0x29125d[_0x4476ea(0xf8)])+_0x29125d[_0x4476ea(0xd7)]);const _0x5e80a6=getEnvDir(_0x130534),_0x24c81f=existsSync(_0x5e80a6);let _0x5546b8=_0x2e3dc5,_0x14e97f=![];if(!_0x5546b8)try{_0x5546b8=await _0x29125d['wRrty'](fetchCloudProfile,_0x130534);if(!_0x5546b8)_0x14e97f=!![];}catch(_0x9c6fcc){_0x29125d[_0x4476ea(0x103)](_0x9c6fcc,ApiError)&&_0x9c6fcc[_0x4476ea(0xef)]===0x194&&(_0x14e97f=!![]);}if(_0x29125d['GIZGE'](_0x2dc565,_0x14e97f)&&!_0x24c81f&&!_0x5546b8)throw new Error('Profile\x20\x22'+_0x2dc565+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a'+_0x4476ea(0xde)+_0x4476ea(0xe9));if(_0x29125d['WoRtt'](_0x5546b8,_0x24c81f)){let _0xa88eb4=!![];if(_0x29125d['iDDqP'](isInteractive)){const {source:_0x242120}=await _0x4f37b9['prompt']([{'type':_0x29125d['oOsXf'],'name':_0x29125d['MPvXD'],'message':'Profile\x20\x22'+_0x130534+_0x4476ea(0xfc),'choices':[{'name':_0x29125d['vrxlh'],'value':'cloud'},{'name':_0x4476ea(0xff),'value':_0x29125d[_0x4476ea(0xd5)]}],'default':_0x29125d['HOBir']}]);_0xa88eb4=_0x242120===_0x29125d[_0x4476ea(0xdb)];}if(!_0xa88eb4)_0x5546b8=null;}const _0x571090=readProfileOverrides(process[_0x4476ea(0x102)](),_0x130534);let _0x342095=null,_0x4428bb,_0x14ee8e,_0x2d1d0a,_0x25e745,_0x12586b=null,_0x51ee67;const _0x56dbb2=expandOverrides(_0x571090);if(_0x5546b8){_0x342095=_0x5546b8;const _0x112af0=_0x5546b8['settings']??{},_0x3e8658=mergeCloudProfileSettings(_0x112af0,_0x29125d['fcVvP'](_0x571090,undefined)),_0x4e6f0d={..._0x5546b8,'settings':_0x3e8658},_0x1f2adc=process['env'][_0x4476ea(0xf7)];if(_0x1f2adc){if(!existsSync(_0x1f2adc))throw new Error('RANGER_SESSION_STATE_PATH='+_0x1f2adc+_0x4476ea(0xdd));_0x4428bb=_0x1f2adc,_0x14ee8e=_0x29125d[_0x4476ea(0xf5)](resolveEnvVars,_0x3e8658),_0x2d1d0a=Boolean(_0x14ee8e['cdpEndpoint']),_0x12586b={'baseUrl':expandString(_0x112af0['baseUrl']),'startPath':expandString(_0x112af0[_0x4476ea(0xe5)])};}else{const _0x2abaf6=await resolveCloudProfileSession(_0x4e6f0d);_0x4428bb=_0x2abaf6['authPath'],_0x14ee8e=_0x29125d['Fwbwp'](resolveEnvVars,_0x3e8658),_0x2d1d0a=_0x29125d['rXccc'](Boolean,_0x14ee8e['cdpEndpoint']),_0x12586b={'baseUrl':expandString(_0x112af0['baseUrl']),'startPath':_0x29125d[_0x4476ea(0xdf)](expandString,_0x112af0[_0x4476ea(0xe5)])},_0x51ee67=_0x2abaf6[_0x4476ea(0xe6)]?.[_0x4476ea(0xda)]?.[0x0];}}else{if(!_0x24c81f)throw new Error('Profile\x20\x22'+_0x130534+'\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x130534);const _0x2c10c3=await loadSettings(_0x130534);_0x14ee8e=_0x29125d[_0x4476ea(0xf6)](resolveEnvVars,_0x2c10c3),_0x2d1d0a=_0x29125d[_0x4476ea(0xe1)](Boolean,_0x14ee8e[_0x4476ea(0xfe)]),_0x25e745=_0x14ee8e['baseUrl'];}const _0x20afe8=_0x29125d[_0x4476ea(0xf4)](readUrlEnvVars),_0x1f7d3e=resolveProfileUrl({'flagBaseUrl':_0x38ca91[_0x4476ea(0xdc)],'flagStartPath':_0x38ca91[_0x4476ea(0xe5)],'envBaseUrl':_0x20afe8['envBaseUrl'],'envStartPath':_0x20afe8['envStartPath'],'localSettingsBaseUrl':_0x25e745,'projectOverrides':_0x56dbb2,'cloudSettings':_0x12586b,'authEnvironmentDomain':_0x51ee67}),_0x3a7398=_0x1f7d3e['url']??_0x1f7d3e['baseUrl'];if(_0x29125d['GIZGE'](!_0x3a7398,!_0x2d1d0a))throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0x130534+'\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20'+_0x130534+_0x4476ea(0xf1));return{'activeProfile':_0x130534,'resolvedCloudProfile':_0x342095,'cloudAuthPath':_0x4428bb,'resolvedSettings':_0x14ee8e,'isCdpMode':_0x2d1d0a,'url':_0x3a7398,'startPath':_0x1f7d3e['startPath']};}function _0x15d6(_0x202ac3,_0x32e979){_0x202ac3=_0x202ac3-0xd5;const _0x15057c=_0x1505();let _0x15d6ef=_0x15057c[_0x202ac3];return _0x15d6ef;}function expandString(_0x49d3e7){const _0x3ffb03=_0x15d6,_0x1724a4={'oNfsI':function(_0x5b55fd,_0x10751d){return _0x5b55fd!==_0x10751d;},'eJPrp':'string','JAKvf':function(_0x4ebb2b,_0x3021e2){return _0x4ebb2b(_0x3021e2);}};if(_0x1724a4['oNfsI'](typeof _0x49d3e7,_0x1724a4[_0x3ffb03(0xe3)]))return _0x49d3e7;return _0x1724a4[_0x3ffb03(0xf0)](resolveEnvVars,_0x49d3e7);}function expandOverrides(_0x2bcafe){const _0x48595e=_0x15d6,_0x4b9ce9={'NNZrH':_0x48595e(0xe7),'SonET':function(_0x5051a7,_0x24a8c6){return _0x5051a7===_0x24a8c6;}};if(!_0x2bcafe)return _0x2bcafe;const _0x1ba811={..._0x2bcafe};return typeof _0x1ba811['baseUrl']===_0x4b9ce9['NNZrH']&&(_0x1ba811['baseUrl']=resolveEnvVars(_0x1ba811['baseUrl'])),_0x4b9ce9['SonET'](typeof _0x1ba811[_0x48595e(0xe5)],_0x48595e(0xe7))&&(_0x1ba811[_0x48595e(0xe5)]=resolveEnvVars(_0x1ba811['startPath'])),_0x1ba811;}
@@ -1 +1 @@
1
- const _0x5d2182=_0x142a;(function(_0x817a0f,_0xeaf3a5){const _0x33e0c1=_0x142a,_0x2d4c2b=_0x817a0f();while(!![]){try{const _0x4ebfa2=parseInt(_0x33e0c1(0x16b))/0x1*(-parseInt(_0x33e0c1(0x168))/0x2)+parseInt(_0x33e0c1(0x16c))/0x3+parseInt(_0x33e0c1(0x16d))/0x4*(-parseInt(_0x33e0c1(0x16a))/0x5)+parseInt(_0x33e0c1(0x165))/0x6+parseInt(_0x33e0c1(0x162))/0x7+parseInt(_0x33e0c1(0x170))/0x8*(-parseInt(_0x33e0c1(0x16e))/0x9)+-parseInt(_0x33e0c1(0x15c))/0xa;if(_0x4ebfa2===_0xeaf3a5)break;else _0x2d4c2b['push'](_0x2d4c2b['shift']());}catch(_0x5ddd8c){_0x2d4c2b['push'](_0x2d4c2b['shift']());}}}(_0x242f,0xb3ae8));function firstDefined(..._0x580372){const _0x3c8bab=_0x142a,_0x5c71a7={'ynUoM':function(_0x4758f0,_0x1f280a){return _0x4758f0!==_0x1f280a;}};for(const _0x252085 of _0x580372){if(_0x5c71a7[_0x3c8bab(0x163)](_0x252085,undefined)&&_0x252085!==null&&_0x252085!=='')return _0x252085;}return undefined;}function normalizeAuthEnvironmentDomain(_0x38cf05){const _0x4aabcd=_0x142a;if(!_0x38cf05)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i['test'](_0x38cf05))return _0x38cf05;return _0x4aabcd(0x173)+_0x38cf05;}export function resolveBaseUrl(_0x1edb29){const _0xdf7cc2=_0x142a,_0x50fde9={'LpjDq':'baseUrl','mPPSp':function(_0x5eef6b,_0x59d83b){return _0x5eef6b===_0x59d83b;},'juuNf':function(_0x234ac1,_0x58e6d2,_0x31d80a,_0x1e0d75,_0x4beb62,_0x11a452,_0x16a967){return _0x234ac1(_0x58e6d2,_0x31d80a,_0x1e0d75,_0x4beb62,_0x11a452,_0x16a967);},'aRSUu':function(_0x12b9cf,_0x31cf12){return _0x12b9cf(_0x31cf12);}},_0x3627a1=_0x1edb29['projectOverrides'],_0x163cb0=!!_0x3627a1&&_0x50fde9['LpjDq']in _0x3627a1,_0x531582=_0x3627a1?.['baseUrl'],_0x5eb8c1=!(_0x163cb0&&_0x50fde9[_0xdf7cc2(0x171)](_0x531582,null));return _0x50fde9['juuNf'](firstDefined,_0x1edb29['flagBaseUrl'],_0x1edb29[_0xdf7cc2(0x15f)],_0x1edb29['localSettingsBaseUrl'],_0x50fde9[_0xdf7cc2(0x171)](typeof _0x531582,'string')?_0x531582:undefined,_0x5eb8c1?_0x1edb29[_0xdf7cc2(0x15d)]?.['baseUrl']:undefined,_0x5eb8c1?_0x50fde9['aRSUu'](normalizeAuthEnvironmentDomain,_0x1edb29[_0xdf7cc2(0x16f)]):undefined);}export function resolveStartPath(_0x49490a){const _0x46612f=_0x142a,_0x410092=_0x49490a[_0x46612f(0x166)],_0x22a387=!!_0x410092&&'startPath'in _0x410092,_0x45ad3c=_0x410092?.[_0x46612f(0x160)],_0x336a24=!(_0x22a387&&_0x45ad3c===null);return firstDefined(_0x49490a[_0x46612f(0x175)],_0x49490a[_0x46612f(0x164)],typeof _0x45ad3c===_0x46612f(0x167)?_0x45ad3c:undefined,_0x336a24?_0x49490a['cloudSettings']?.[_0x46612f(0x160)]:undefined);}export function joinBaseAndPath(_0x2a83a5,_0x3af857){const _0x2bac97=_0x142a,_0x3b1c5d={'UFBVL':function(_0xa6c0c6,_0xbba5f5){return _0xa6c0c6+_0xbba5f5;}};if(!_0x2a83a5)return undefined;if(!_0x3af857)return _0x2a83a5;const _0x2ea803=_0x2a83a5['endsWith']('/')?_0x2a83a5['slice'](0x0,-0x1):_0x2a83a5,_0x13c967=_0x3af857[_0x2bac97(0x174)]('/')?_0x3af857:_0x3b1c5d[_0x2bac97(0x15e)]('/',_0x3af857);return _0x3b1c5d['UFBVL'](_0x2ea803,_0x13c967);}function _0x242f(){const _0x495880=['136556LuAKVd','45KcbMAO','authEnvironmentDomain','1997616ybqrfz','mPPSp','env','https://','startsWith','flagStartPath','2671490bPLQJK','cloudSettings','UFBVL','envBaseUrl','startPath','RANGER_START_PATH','9119019IUkQtv','ynUoM','envStartPath','6276288PIVRKz','projectOverrides','string','48XNkcfv','RANGER_BASE_URL','70YZiimN','12085wDwSfx','2012568MMCisE'];_0x242f=function(){return _0x495880;};return _0x242f();}function _0x142a(_0x4a0234,_0x2e855c){_0x4a0234=_0x4a0234-0x15c;const _0x242fd6=_0x242f();let _0x142a7a=_0x242fd6[_0x4a0234];return _0x142a7a;}export function resolveProfileUrl(_0x2903ef){const _0x3f8002=resolveBaseUrl(_0x2903ef),_0x4c9b21=resolveStartPath(_0x2903ef);return{'baseUrl':_0x3f8002,'startPath':_0x4c9b21,'url':joinBaseAndPath(_0x3f8002,_0x4c9b21)};}export function readUrlEnvVars(_0x156a26=process[_0x5d2182(0x172)]){const _0xf0f0a8=_0x5d2182;return{'envBaseUrl':_0x156a26[_0xf0f0a8(0x169)],'envStartPath':_0x156a26[_0xf0f0a8(0x161)]};}
1
+ (function(_0x5a41b4,_0xf7517f){const _0x41c5e7=_0x10ab,_0x90527c=_0x5a41b4();while(!![]){try{const _0x306ea4=parseInt(_0x41c5e7(0x95))/0x1+parseInt(_0x41c5e7(0xa5))/0x2+parseInt(_0x41c5e7(0x97))/0x3+-parseInt(_0x41c5e7(0xa1))/0x4*(parseInt(_0x41c5e7(0xa4))/0x5)+parseInt(_0x41c5e7(0x9e))/0x6+-parseInt(_0x41c5e7(0x94))/0x7*(-parseInt(_0x41c5e7(0x9c))/0x8)+-parseInt(_0x41c5e7(0x9b))/0x9;if(_0x306ea4===_0xf7517f)break;else _0x90527c['push'](_0x90527c['shift']());}catch(_0x2b7028){_0x90527c['push'](_0x90527c['shift']());}}}(_0x4bce,0x846eb));function firstDefined(..._0x341ede){const _0x8b74e1={'PwfZY':function(_0x3d7bc,_0x1d8fca){return _0x3d7bc!==_0x1d8fca;}};for(const _0x45c09d of _0x341ede){if(_0x8b74e1['PwfZY'](_0x45c09d,undefined)&&_0x45c09d!==null&&_0x45c09d!=='')return _0x45c09d;}return undefined;}function normalizeAuthEnvironmentDomain(_0x141b52){if(!_0x141b52)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i['test'](_0x141b52))return _0x141b52;return'https://'+_0x141b52;}export function resolveBaseUrl(_0x124dd4){const _0x219fca=_0x10ab,_0x21d265={'hBSIG':function(_0x1e9f0f,_0x1887ea){return _0x1e9f0f in _0x1887ea;},'fQJth':_0x219fca(0x99),'WQFCo':'string','aIWtt':function(_0x3a8c59,_0x3ba5e1){return _0x3a8c59(_0x3ba5e1);}},_0x145a34=_0x124dd4['projectOverrides'],_0x550b3b=!!_0x145a34&&_0x21d265['hBSIG'](_0x21d265['fQJth'],_0x145a34),_0x59a7f8=_0x145a34?.['baseUrl'],_0x118646=!(_0x550b3b&&_0x59a7f8===null);return firstDefined(_0x124dd4['flagBaseUrl'],_0x124dd4['envBaseUrl'],_0x124dd4['localSettingsBaseUrl'],typeof _0x59a7f8===_0x21d265[_0x219fca(0xa0)]?_0x59a7f8:undefined,_0x118646?_0x124dd4['cloudSettings']?.[_0x219fca(0x99)]:undefined,_0x118646?_0x21d265['aIWtt'](normalizeAuthEnvironmentDomain,_0x124dd4[_0x219fca(0x93)]):undefined);}export function resolveStartPath(_0x272a6e){const _0x4b881c=_0x10ab,_0x5e347a={'pYNzz':_0x4b881c(0x9d),'CQdkq':function(_0xc44db1,_0x5416ee){return _0xc44db1===_0x5416ee;},'GOAdJ':function(_0x43eb4e,_0x36b2f,_0x357a99,_0x5d292c,_0x283951){return _0x43eb4e(_0x36b2f,_0x357a99,_0x5d292c,_0x283951);},'UkIUZ':function(_0x2e5ea9,_0x1ec195){return _0x2e5ea9===_0x1ec195;}},_0x59cfd7=_0x272a6e['projectOverrides'],_0x4b9d6a=!!_0x59cfd7&&_0x5e347a['pYNzz']in _0x59cfd7,_0x38bea6=_0x59cfd7?.[_0x4b881c(0x9d)],_0x1ef9e8=!(_0x4b9d6a&&_0x5e347a[_0x4b881c(0xa2)](_0x38bea6,null));return _0x5e347a['GOAdJ'](firstDefined,_0x272a6e['flagStartPath'],_0x272a6e['envStartPath'],_0x5e347a[_0x4b881c(0x9a)](typeof _0x38bea6,_0x4b881c(0x96))?_0x38bea6:undefined,_0x1ef9e8?_0x272a6e['cloudSettings']?.['startPath']:undefined);}function _0x10ab(_0x585ecf,_0x4cb6a3){_0x585ecf=_0x585ecf-0x93;const _0x4bcee2=_0x4bce();let _0x10ab3d=_0x4bcee2[_0x585ecf];return _0x10ab3d;}export function joinBaseAndPath(_0x3c2fae,_0x1e87cf){if(!_0x3c2fae)return undefined;if(!_0x1e87cf)return _0x3c2fae;const _0x2efd08=_0x3c2fae['endsWith']('/')?_0x3c2fae['slice'](0x0,-0x1):_0x3c2fae,_0x4aadc8=_0x1e87cf['startsWith']('/')?_0x1e87cf:'/'+_0x1e87cf;return _0x2efd08+_0x4aadc8;}function _0x4bce(){const _0x4ebe68=['864320WMxKNa','string','2066979CFJScR','ShGQr','baseUrl','UkIUZ','17594541jIPwyn','8bEOiAg','startPath','683688zCPoIz','RANGER_START_PATH','WQFCo','2164zjOZJe','CQdkq','RANGER_BASE_URL','775sCdvmo','1081820QGhpWD','authEnvironmentDomain','2611532cimDjl'];_0x4bce=function(){return _0x4ebe68;};return _0x4bce();}export function resolveProfileUrl(_0x2264d8){const _0x4a5872=_0x10ab,_0x1cac7b={'ShGQr':function(_0x504267,_0x3c964b){return _0x504267(_0x3c964b);}},_0x152050=_0x1cac7b[_0x4a5872(0x98)](resolveBaseUrl,_0x2264d8),_0x86fb8c=_0x1cac7b['ShGQr'](resolveStartPath,_0x2264d8);return{'baseUrl':_0x152050,'startPath':_0x86fb8c,'url':joinBaseAndPath(_0x152050,_0x86fb8c)};}export function readUrlEnvVars(_0x3b9e26=process['env']){const _0xc5573e=_0x10ab;return{'envBaseUrl':_0x3b9e26[_0xc5573e(0xa3)],'envStartPath':_0x3b9e26[_0xc5573e(0x9f)]};}
@@ -1 +1 @@
1
- function _0x3211(_0x508bb7,_0x3bdc4f){_0x508bb7=_0x508bb7-0x1d1;const _0x2ed4c3=_0x2ed4();let _0x3211a7=_0x2ed4c3[_0x508bb7];return _0x3211a7;}(function(_0x9c9e34,_0x5b9410){const _0x5c4c09=_0x3211,_0x154b0d=_0x9c9e34();while(!![]){try{const _0x32ced7=-parseInt(_0x5c4c09(0x1d3))/0x1*(-parseInt(_0x5c4c09(0x1e1))/0x2)+-parseInt(_0x5c4c09(0x1dc))/0x3+parseInt(_0x5c4c09(0x1d7))/0x4+-parseInt(_0x5c4c09(0x1e3))/0x5*(parseInt(_0x5c4c09(0x1db))/0x6)+parseInt(_0x5c4c09(0x1de))/0x7*(-parseInt(_0x5c4c09(0x1d2))/0x8)+parseInt(_0x5c4c09(0x1d6))/0x9*(parseInt(_0x5c4c09(0x1df))/0xa)+parseInt(_0x5c4c09(0x1e4))/0xb;if(_0x32ced7===_0x5b9410)break;else _0x154b0d['push'](_0x154b0d['shift']());}catch(_0x4cef01){_0x154b0d['push'](_0x154b0d['shift']());}}}(_0x2ed4,0xe3361));function _0x2ed4(){const _0x171804=['5864phCKcI','10669TwAMaV','RRpWQ','tOYXH','99TMgqVH','1819848nqceLC','label','maxRetries','pow','767310dNBLcN','3700167YsOFEc','baseDelayMs','15505qZazpq','696830YArzrN','CdTuw','262oKTWLt','),\x20retrying\x20in\x20','5sqkKwY','14260532QssEeP','lamvy'];_0x2ed4=function(){return _0x171804;};return _0x2ed4();}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x25f2f6,_0x4d1cf9){const _0x1be7a4=_0x3211,_0xfd54d8={'RRpWQ':function(_0x5b5bc5,_0x81c44e){return _0x5b5bc5<=_0x81c44e;},'tOYXH':function(_0xf90eae,_0x3d3e46){return _0xf90eae(_0x3d3e46);},'lamvy':function(_0x29fec5,_0x5b8eba){return _0x29fec5<_0x5b8eba;},'CdTuw':function(_0x1839b4,_0xc63c84){return _0x1839b4*_0xc63c84;}},_0x21e9f0=_0x4d1cf9?.[_0x1be7a4(0x1d9)]??DEFAULT_MAX_RETRIES,_0xeb448c=_0x4d1cf9?.[_0x1be7a4(0x1dd)]??DEFAULT_BASE_DELAY_MS;let _0x37426d;for(let _0x118830=0x0;_0xfd54d8[_0x1be7a4(0x1d4)](_0x118830,_0x21e9f0);_0x118830++){try{return await _0x25f2f6();}catch(_0xf0bd3d){_0x37426d=_0xf0bd3d instanceof Error?_0xf0bd3d:new Error(_0xfd54d8[_0x1be7a4(0x1d5)](String,_0xf0bd3d));if(_0xfd54d8[_0x1be7a4(0x1d1)](_0x118830,_0x21e9f0)){const _0xe8533=_0xfd54d8[_0x1be7a4(0x1e0)](_0xeb448c,Math[_0x1be7a4(0x1da)](0x2,_0x118830));_0x4d1cf9?.['label']&&console['error'](_0x4d1cf9[_0x1be7a4(0x1d8)]+'\x20failed\x20(attempt\x20'+(_0x118830+0x1)+'/'+(_0x21e9f0+0x1)+_0x1be7a4(0x1e2)+_0xe8533+'ms...'),await new Promise(_0x2ef78f=>setTimeout(_0x2ef78f,_0xe8533));}}}throw _0x37426d;}
1
+ function _0x2d98(_0x3771b1,_0x5636f7){_0x3771b1=_0x3771b1-0x19e;const _0x1770e6=_0x1770();let _0x2d9813=_0x1770e6[_0x3771b1];return _0x2d9813;}(function(_0x3a2897,_0x44c439){const _0x330a1b=_0x2d98,_0xb90556=_0x3a2897();while(!![]){try{const _0x28ff30=parseInt(_0x330a1b(0x1a1))/0x1*(-parseInt(_0x330a1b(0x1a8))/0x2)+-parseInt(_0x330a1b(0x1a9))/0x3*(-parseInt(_0x330a1b(0x1ab))/0x4)+-parseInt(_0x330a1b(0x1a4))/0x5+parseInt(_0x330a1b(0x1ad))/0x6+-parseInt(_0x330a1b(0x19e))/0x7*(-parseInt(_0x330a1b(0x1a5))/0x8)+parseInt(_0x330a1b(0x1a2))/0x9+-parseInt(_0x330a1b(0x1a6))/0xa;if(_0x28ff30===_0x44c439)break;else _0xb90556['push'](_0xb90556['shift']());}catch(_0x46b398){_0xb90556['push'](_0xb90556['shift']());}}}(_0x1770,0x5045a));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x44df6e,_0x1b3b36){const _0x16b4a5=_0x2d98,_0x58dd3d={'QgHOW':function(_0x176add,_0x20a972){return _0x176add<_0x20a972;},'OkbhQ':function(_0x3cbe6a,_0x2b6132){return _0x3cbe6a*_0x2b6132;}},_0x5615cf=_0x1b3b36?.[_0x16b4a5(0x1ae)]??DEFAULT_MAX_RETRIES,_0x20e031=_0x1b3b36?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x2e5add;for(let _0x33b38f=0x0;_0x33b38f<=_0x5615cf;_0x33b38f++){try{return await _0x44df6e();}catch(_0x22f541){_0x2e5add=_0x22f541 instanceof Error?_0x22f541:new Error(String(_0x22f541));if(_0x58dd3d[_0x16b4a5(0x1a0)](_0x33b38f,_0x5615cf)){const _0x37f940=_0x58dd3d[_0x16b4a5(0x1a7)](_0x20e031,Math[_0x16b4a5(0x1a3)](0x2,_0x33b38f));_0x1b3b36?.[_0x16b4a5(0x1aa)]&&console[_0x16b4a5(0x19f)](_0x1b3b36['label']+_0x16b4a5(0x1ac)+(_0x33b38f+0x1)+'/'+(_0x5615cf+0x1)+'),\x20retrying\x20in\x20'+_0x37f940+'ms...'),await new Promise(_0x3a4ef3=>setTimeout(_0x3a4ef3,_0x37f940));}}}throw _0x2e5add;}function _0x1770(){const _0x1ff2b7=['maxRetries','28zJiWkj','error','QgHOW','6eLHeUy','3518694ImjXvo','pow','478730umhBqV','70072CnTXTn','1730570fXiKfu','OkbhQ','211906FGsAVy','64197KLpEdm','label','100EjMxYC','\x20failed\x20(attempt\x20','1634028hlyfoz'];_0x1770=function(){return _0x1ff2b7;};return _0x1770();}
@@ -1 +1 @@
1
- const _0x40c551=_0x19da;(function(_0x48b214,_0x24eb0f){const _0xada056=_0x19da,_0x1c69b6=_0x48b214();while(!![]){try{const _0x30b7a9=parseInt(_0xada056(0x164))/0x1*(parseInt(_0xada056(0x183))/0x2)+-parseInt(_0xada056(0x17c))/0x3+-parseInt(_0xada056(0x18a))/0x4*(parseInt(_0xada056(0x196))/0x5)+-parseInt(_0xada056(0x17d))/0x6*(-parseInt(_0xada056(0x186))/0x7)+parseInt(_0xada056(0x189))/0x8+-parseInt(_0xada056(0x162))/0x9+-parseInt(_0xada056(0x184))/0xa*(-parseInt(_0xada056(0x188))/0xb);if(_0x30b7a9===_0x24eb0f)break;else _0x1c69b6['push'](_0x1c69b6['shift']());}catch(_0x3f5cd9){_0x1c69b6['push'](_0x1c69b6['shift']());}}}(_0x30cc,0x8bb9f));import*as _0x2a537d from'fs';import*as _0x129d11 from'path';function _0x19da(_0x4c9933,_0x1a69c0){_0x4c9933=_0x4c9933-0x162;const _0x30cc02=_0x30cc();let _0x19da3d=_0x30cc02[_0x4c9933];return _0x19da3d;}import*as _0x5ac8e3 from'os';import{execSync}from'child_process';function _0x30cc(){const _0x62eaa1=['pipe','bltLI','stringify','Brfxa','currentBranch','lastPlanReminderAt','sessions','writeFileSync','featureId','pxKHn','RXFfl','817029KcJxvz','2998524JPAbbO','parse','ASWAg','enabled','existsSync','ukDYZ','2157422SLSGYf','22730fsdxHT','main','7NXyJuF','clear','4499YdzCJT','1539352CCVCdb','12148ghVFoi','bNHvP','AEHHA','HEAD','.ranger_cache.json','master','tRLFU','GCSbK','doEjc','utf-8','VMsif','CKPfu','1385PBHiXH','NnlbA','hozRo','BGFNA','now','9131670uCXvcU','kUTHH','1GcMZhN','readFileSync','toISOString','EbTdh','mkdirSync','lastEnabledSessionClearedAt','registeredAt','homedir','prompted','bvONr','branches','uDwjw','.claude'];_0x30cc=function(){return _0x62eaa1;};return _0x30cc();}const CACHE_FILE=_0x129d11['join'](_0x5ac8e3[_0x40c551(0x16b)](),_0x40c551(0x170),_0x40c551(0x18e));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x523db6=_0x40c551;try{if(_0x2a537d['existsSync'](CACHE_FILE)){const _0x28da11=JSON[_0x523db6(0x17e)](_0x2a537d[_0x523db6(0x165)](CACHE_FILE,_0x523db6(0x193)));return{'version':0x3,'sessions':_0x28da11['sessions']||{},'branches':_0x28da11[_0x523db6(0x16e)]||{},'lastEnabledSessionClearedAt':_0x28da11['lastEnabledSessionClearedAt']};}}catch{}return createEmptyCache();}function saveCache(_0x45e4c8){const _0x371346=_0x40c551;try{const _0x1f3f42=_0x129d11['dirname'](CACHE_FILE);!_0x2a537d[_0x371346(0x181)](_0x1f3f42)&&_0x2a537d[_0x371346(0x168)](_0x1f3f42,{'recursive':!![]}),_0x2a537d[_0x371346(0x178)](CACHE_FILE,JSON[_0x371346(0x173)](_0x45e4c8,null,0x2));}catch{}}export function getCurrentBranch(){const _0x736b50=_0x40c551,_0x51d881={'JmYvH':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','CrquX':_0x736b50(0x193),'tRLFU':function(_0xc442cd,_0x1be534){return _0xc442cd===_0x1be534;},'RqXNe':_0x736b50(0x18d)};try{const _0x593e2e=execSync(_0x51d881['JmYvH'],{'encoding':_0x51d881['CrquX'],'stdio':['pipe',_0x736b50(0x171),_0x736b50(0x171)]})['trim']();if(!_0x593e2e||_0x51d881[_0x736b50(0x190)](_0x593e2e,_0x51d881['RqXNe']))return null;return _0x593e2e;}catch{return null;}}export function enableBranch(_0x6bd583){const _0x9ab05={'LSlnW':function(_0x2d674e,_0x4e4bab){return _0x2d674e(_0x4e4bab);}},_0x4d7620=loadCache();_0x4d7620['branches'][_0x6bd583]=!![],_0x9ab05['LSlnW'](saveCache,_0x4d7620);}export function disableBranch(_0x2b6f6a){const _0xa8b6e9=loadCache();delete _0xa8b6e9['branches'][_0x2b6f6a],saveCache(_0xa8b6e9);}export function isBranchEnabled(_0x3ba874){const _0x350267=_0x40c551,_0x194c00={'QPABx':function(_0x4ba1f1){return _0x4ba1f1();},'NnlbA':function(_0x4d020e,_0x4f1d25){return _0x4d020e===_0x4f1d25;}},_0x4e379a=_0x194c00['QPABx'](loadCache);return _0x194c00[_0x350267(0x197)](_0x4e379a['branches'][_0x3ba874],!![]);}function getOrCreateSession(_0x27d565,_0x2c10fb){const _0x5925f7=_0x40c551;return!_0x27d565[_0x5925f7(0x177)][_0x2c10fb]&&(_0x27d565['sessions'][_0x2c10fb]={}),_0x27d565[_0x5925f7(0x177)][_0x2c10fb];}export function enableSession(_0x19ef2c){const _0x34f539=_0x40c551,_0x4d4a80={'bNHvP':function(_0x29a864){return _0x29a864();},'aaUQH':_0x34f539(0x185)},_0xe1f1ba=loadCache(),_0x293876=getOrCreateSession(_0xe1f1ba,_0x19ef2c);_0x293876[_0x34f539(0x180)]=!![];const _0x3b1f30=_0x4d4a80[_0x34f539(0x18b)](getCurrentBranch);_0x3b1f30&&_0x3b1f30!==_0x4d4a80['aaUQH']&&_0x3b1f30!=='master'&&(_0xe1f1ba[_0x34f539(0x16e)][_0x3b1f30]=!![],_0x293876[_0x34f539(0x175)]=_0x3b1f30),saveCache(_0xe1f1ba);}export function isSessionEnabled(_0x263a67){const _0x2e616a=_0x40c551,_0x1976a9={'doEjc':function(_0x302956,_0x28d236){return _0x302956===_0x28d236;},'aRdoT':'main','DyFMY':'master'},_0x55380b=loadCache(),_0x3939f5=getCurrentBranch();if(!_0x3939f5||_0x1976a9[_0x2e616a(0x192)](_0x3939f5,_0x1976a9['aRdoT'])||_0x3939f5===_0x1976a9['DyFMY'])return _0x1976a9['doEjc'](_0x55380b['sessions'][_0x263a67]?.['enabled'],!![]);const _0xfe707b=_0x55380b['branches'][_0x3939f5]===!![],_0x5a929d=_0x1976a9['doEjc'](_0x55380b[_0x2e616a(0x177)][_0x263a67]?.['enabled'],!![]);return _0xfe707b||_0x5a929d;}export function disableSession(_0x578e64){const _0x4cb430=_0x40c551,_0xeeb634={'bvONr':function(_0x504443){return _0x504443();}},_0x56117e=_0xeeb634[_0x4cb430(0x16d)](loadCache),_0x54abf2=getOrCreateSession(_0x56117e,_0x578e64);_0x54abf2[_0x4cb430(0x180)]=![],saveCache(_0x56117e);}export function updateBranchTracking(_0x494b4d){const _0x26f775=_0x40c551,_0x57a53a={'HUzNL':function(_0x419c3b,_0x51aaba){return _0x419c3b===_0x51aaba;},'BGFNA':_0x26f775(0x185),'hozRo':function(_0x4310c3,_0x4a9fe2){return _0x4310c3!==_0x4a9fe2;}},_0x267df8=loadCache(),_0x10f9ae=_0x267df8['sessions'][_0x494b4d];if(!_0x10f9ae?.['enabled'])return;const _0x20cc5e=getCurrentBranch();if(!_0x20cc5e||_0x57a53a['HUzNL'](_0x20cc5e,_0x57a53a[_0x26f775(0x199)])||_0x20cc5e==='master')return;_0x57a53a[_0x26f775(0x198)](_0x10f9ae[_0x26f775(0x175)],_0x20cc5e)&&(_0x267df8['branches'][_0x20cc5e]=!![],_0x10f9ae['currentBranch']=_0x20cc5e,saveCache(_0x267df8));}export function initBranchTracking(_0xbd946a){const _0x1b219e=_0x40c551,_0x104570={'xrXAS':function(_0x4d83cb){return _0x4d83cb();},'RXFfl':function(_0x404566,_0x43c9e5){return _0x404566===_0x43c9e5;},'ZyRxQ':_0x1b219e(0x185),'AEHHA':_0x1b219e(0x18f),'Ffytw':function(_0x515af0,_0x15337c){return _0x515af0===_0x15337c;},'YLiwG':function(_0x28f3b3,_0x2c41bb,_0x3ed9cf){return _0x28f3b3(_0x2c41bb,_0x3ed9cf);}},_0x5320c7=_0x104570['xrXAS'](loadCache),_0x196e77=getCurrentBranch();if(!_0x196e77||_0x104570[_0x1b219e(0x17b)](_0x196e77,_0x104570['ZyRxQ'])||_0x196e77===_0x104570[_0x1b219e(0x18c)])return;if(_0x104570['Ffytw'](_0x5320c7[_0x1b219e(0x16e)][_0x196e77],!![])){const _0x39b1bd=_0x104570['YLiwG'](getOrCreateSession,_0x5320c7,_0xbd946a);_0x39b1bd['enabled']=!![],_0x39b1bd[_0x1b219e(0x175)]=_0x196e77,saveCache(_0x5320c7);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0xb8b9fb){const _0x42264b=_0x40c551,_0x292684=loadCache(),_0x2345c5=_0x292684[_0x42264b(0x177)][_0xb8b9fb];_0x2345c5?.['enabled']&&(_0x292684['lastEnabledSessionClearedAt']=Date[_0x42264b(0x19a)](),saveCache(_0x292684));}export function shouldAutoEnableAfterClear(_0x3fb6d5){const _0x417e18=_0x40c551,_0x3c3e2a={'hKUuG':function(_0x10cd9f,_0x1e8007){return _0x10cd9f!==_0x1e8007;},'EbTdh':_0x417e18(0x187),'LDVTI':function(_0x2a96a7){return _0x2a96a7();},'Opzcv':function(_0x57ed1c,_0x128e6f){return _0x57ed1c-_0x128e6f;}};if(_0x3c3e2a['hKUuG'](_0x3fb6d5,_0x3c3e2a[_0x417e18(0x167)]))return![];const _0x35c087=_0x3c3e2a['LDVTI'](loadCache),_0x5aea61=_0x35c087[_0x417e18(0x169)];if(!_0x5aea61)return![];const _0x1852ee=_0x3c3e2a['Opzcv'](Date[_0x417e18(0x19a)](),_0x5aea61);return _0x1852ee<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x51c1ce){const _0x1f28dc=_0x40c551,_0x440e1e={'Brfxa':function(_0x41c95e){return _0x41c95e();},'CKPfu':function(_0x1c207c,_0x2a57f0,_0x1109c2){return _0x1c207c(_0x2a57f0,_0x1109c2);},'VMsif':function(_0x24845d){return _0x24845d();},'wHgcE':function(_0x1f08c0,_0x1c4a86){return _0x1f08c0!==_0x1c4a86;},'tYUYy':function(_0x3140d6,_0x159e95){return _0x3140d6(_0x159e95);}},_0x449f3e=_0x440e1e[_0x1f28dc(0x174)](loadCache),_0x26c217=_0x440e1e[_0x1f28dc(0x195)](getOrCreateSession,_0x449f3e,_0x51c1ce);_0x26c217[_0x1f28dc(0x180)]=!![];const _0x144c23=_0x440e1e[_0x1f28dc(0x194)](getCurrentBranch);_0x144c23&&_0x440e1e['wHgcE'](_0x144c23,_0x1f28dc(0x185))&&_0x440e1e['wHgcE'](_0x144c23,_0x1f28dc(0x18f))&&(_0x26c217[_0x1f28dc(0x175)]=_0x144c23),delete _0x449f3e['lastEnabledSessionClearedAt'],_0x440e1e['tYUYy'](saveCache,_0x449f3e);}export function registerSession(_0x3f1c56,_0xef8fd){const _0x2606ce=_0x40c551,_0x63d525={'ukDYZ':function(_0x4a820d){return _0x4a820d();},'PNVaX':function(_0xd64987,_0x4d1a73){return _0xd64987(_0x4d1a73);}},_0x371bc1=_0x63d525[_0x2606ce(0x182)](loadCache),_0x1b9861=getOrCreateSession(_0x371bc1,_0x3f1c56);_0x1b9861['featureId']=_0xef8fd,_0x1b9861['registeredAt']=new Date()[_0x2606ce(0x166)](),_0x63d525['PNVaX'](saveCache,_0x371bc1);}export function getSessionEntry(_0x1d6a74){const _0x5e513b=_0x40c551,_0x233971=loadCache(),_0x1cca04=_0x233971['sessions'][_0x1d6a74];if(_0x1cca04?.[_0x5e513b(0x179)]&&_0x1cca04?.[_0x5e513b(0x16a)])return{'featureId':_0x1cca04['featureId'],'registeredAt':_0x1cca04[_0x5e513b(0x16a)]};return null;}export function unregisterSession(_0x1237b7){const _0x86b182=_0x40c551,_0xac4954={'ASWAg':function(_0x2d4a8d){return _0x2d4a8d();}},_0x237871=_0xac4954[_0x86b182(0x17f)](loadCache),_0x483397=_0x237871['sessions'][_0x1237b7];_0x483397&&(delete _0x483397['featureId'],delete _0x483397[_0x86b182(0x16a)],saveCache(_0x237871));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0xb3497b){const _0x577c4e=_0x40c551,_0x200aa1={'sQXje':function(_0x1b1646){return _0x1b1646();},'pxKHn':function(_0x23d825,_0x2e6f06,_0x56f3cb){return _0x23d825(_0x2e6f06,_0x56f3cb);},'IPQrv':function(_0x5cb4aa,_0xfe609e){return _0x5cb4aa>=_0xfe609e;},'APREy':function(_0x251c7f,_0x55f358){return _0x251c7f(_0x55f358);}},_0xb1feda=_0x200aa1['sQXje'](loadCache),_0x54d0ce=_0x200aa1[_0x577c4e(0x17a)](getOrCreateSession,_0xb1feda,_0xb3497b),_0x57e926=_0x54d0ce[_0x577c4e(0x176)]||0x0,_0x1426f8=Date[_0x577c4e(0x19a)]();if(_0x200aa1['IPQrv'](_0x1426f8-_0x57e926,PLAN_REMINDER_INTERVAL_MS))return _0x54d0ce['lastPlanReminderAt']=_0x1426f8,_0x200aa1['APREy'](saveCache,_0xb1feda),!![];return![];}export function shouldShowStopReminder(_0x165477){const _0x187bd8=_0x40c551,_0x5063eb={'YWNDu':function(_0xe61a75,_0x195357,_0x11d3d3){return _0xe61a75(_0x195357,_0x11d3d3);},'bltLI':function(_0x258e8e,_0xe3e4c8){return _0x258e8e-_0xe3e4c8;},'uDwjw':function(_0x32265b,_0x3177fd){return _0x32265b(_0x3177fd);}},_0x434be2=loadCache(),_0x59fa2b=_0x5063eb['YWNDu'](getOrCreateSession,_0x434be2,_0x165477),_0x4f573c=_0x59fa2b['lastStopReminderAt']||0x0,_0x327e44=Date[_0x187bd8(0x19a)]();if(_0x5063eb[_0x187bd8(0x172)](_0x327e44,_0x4f573c)>=STOP_REMINDER_INTERVAL_MS)return _0x59fa2b['lastStopReminderAt']=_0x327e44,_0x5063eb[_0x187bd8(0x16f)](saveCache,_0x434be2),!![];return![];}export function hasSessionBeenPrompted(_0x586911){const _0x770d38=_0x40c551,_0x4f5e50=loadCache();return _0x4f5e50['sessions'][_0x586911]?.[_0x770d38(0x16c)]===!![];}export function markSessionPrompted(_0x1106b9){const _0x3fafdb=_0x40c551,_0x430e9f={'kUTHH':function(_0xc4638,_0xa8b6b1,_0x1775c2){return _0xc4638(_0xa8b6b1,_0x1775c2);},'GCSbK':function(_0x366c3f,_0x411d58){return _0x366c3f(_0x411d58);}},_0x52e1cd=loadCache(),_0x51f601=_0x430e9f[_0x3fafdb(0x163)](getOrCreateSession,_0x52e1cd,_0x1106b9);_0x51f601[_0x3fafdb(0x16c)]=!![],_0x430e9f[_0x3fafdb(0x191)](saveCache,_0x52e1cd);}export function getCacheFile(){return CACHE_FILE;}
1
+ const _0x25e722=_0x4f80;(function(_0xaa05ca,_0x421aaa){const _0x1229db=_0x4f80,_0x40511d=_0xaa05ca();while(!![]){try{const _0x3548e6=parseInt(_0x1229db(0x19f))/0x1+parseInt(_0x1229db(0x1af))/0x2+-parseInt(_0x1229db(0x189))/0x3*(parseInt(_0x1229db(0x196))/0x4)+parseInt(_0x1229db(0x19b))/0x5+parseInt(_0x1229db(0x1a4))/0x6*(-parseInt(_0x1229db(0x191))/0x7)+-parseInt(_0x1229db(0x1a9))/0x8*(-parseInt(_0x1229db(0x1a8))/0x9)+parseInt(_0x1229db(0x185))/0xa;if(_0x3548e6===_0x421aaa)break;else _0x40511d['push'](_0x40511d['shift']());}catch(_0x57a4e4){_0x40511d['push'](_0x40511d['shift']());}}}(_0x63fd,0xc4c27));import*as _0x467c76 from'fs';import*as _0x4bdef7 from'path';import*as _0x385393 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x4bdef7['join'](_0x385393[_0x25e722(0x190)](),'.claude',_0x25e722(0x18f));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x4cfaf9=_0x25e722;try{if(_0x467c76['existsSync'](CACHE_FILE)){const _0x1c6305=JSON[_0x4cfaf9(0x19a)](_0x467c76['readFileSync'](CACHE_FILE,_0x4cfaf9(0x19d)));return{'version':0x3,'sessions':_0x1c6305[_0x4cfaf9(0x197)]||{},'branches':_0x1c6305['branches']||{},'lastEnabledSessionClearedAt':_0x1c6305['lastEnabledSessionClearedAt']};}}catch{}return createEmptyCache();}function saveCache(_0x52df9d){const _0x1f4d3a=_0x25e722;try{const _0xd66592=_0x4bdef7[_0x1f4d3a(0x187)](CACHE_FILE);!_0x467c76[_0x1f4d3a(0x1aa)](_0xd66592)&&_0x467c76['mkdirSync'](_0xd66592,{'recursive':!![]}),_0x467c76[_0x1f4d3a(0x1ad)](CACHE_FILE,JSON['stringify'](_0x52df9d,null,0x2));}catch{}}export function getCurrentBranch(){const _0xf38737=_0x25e722,_0x8762d4={'eLWLB':_0xf38737(0x192),'KbsTL':_0xf38737(0x19d),'BxLtc':'pipe','gHuFF':function(_0x43c122,_0x573da8){return _0x43c122===_0x573da8;},'OTUFa':'HEAD'};try{const _0x48ea75=execSync(_0x8762d4[_0xf38737(0x19c)],{'encoding':_0x8762d4['KbsTL'],'stdio':[_0x8762d4['BxLtc'],_0x8762d4[_0xf38737(0x1a2)],_0x8762d4[_0xf38737(0x1a2)]]})[_0xf38737(0x1b4)]();if(!_0x48ea75||_0x8762d4[_0xf38737(0x1b1)](_0x48ea75,_0x8762d4[_0xf38737(0x18b)]))return null;return _0x48ea75;}catch{return null;}}export function enableBranch(_0x3e2877){const _0x5a18ad=loadCache();_0x5a18ad['branches'][_0x3e2877]=!![],saveCache(_0x5a18ad);}export function disableBranch(_0x140504){const _0x1d5387=_0x25e722,_0x17f54b={'ozGdu':function(_0x3b3ac1){return _0x3b3ac1();}},_0x429181=_0x17f54b[_0x1d5387(0x194)](loadCache);delete _0x429181[_0x1d5387(0x18c)][_0x140504],saveCache(_0x429181);}export function isBranchEnabled(_0x315ff7){const _0x59d2ae=_0x25e722,_0x597c73={'CicQX':function(_0x3b453d,_0x347da0){return _0x3b453d===_0x347da0;}},_0x5ed3bc=loadCache();return _0x597c73['CicQX'](_0x5ed3bc[_0x59d2ae(0x18c)][_0x315ff7],!![]);}function getOrCreateSession(_0x3c37a1,_0x1a305b){const _0x470f9e=_0x25e722;return!_0x3c37a1[_0x470f9e(0x197)][_0x1a305b]&&(_0x3c37a1['sessions'][_0x1a305b]={}),_0x3c37a1[_0x470f9e(0x197)][_0x1a305b];}export function enableSession(_0x5c2d98){const _0x1d3bed=_0x25e722,_0x2cd6bf={'kvsTF':function(_0x314b65){return _0x314b65();},'FnOSs':function(_0x524074,_0x3fbaf0){return _0x524074!==_0x3fbaf0;},'WzkkR':_0x1d3bed(0x186)},_0x1c2041=loadCache(),_0x4646ca=getOrCreateSession(_0x1c2041,_0x5c2d98);_0x4646ca['enabled']=!![];const _0x50a16a=_0x2cd6bf['kvsTF'](getCurrentBranch);_0x50a16a&&_0x2cd6bf[_0x1d3bed(0x1a0)](_0x50a16a,_0x2cd6bf[_0x1d3bed(0x1b3)])&&_0x50a16a!==_0x1d3bed(0x1a7)&&(_0x1c2041[_0x1d3bed(0x18c)][_0x50a16a]=!![],_0x4646ca['currentBranch']=_0x50a16a),saveCache(_0x1c2041);}export function isSessionEnabled(_0x1079ce){const _0x8c3932=_0x25e722,_0x3048a9={'ojTcd':function(_0x2a8a4f){return _0x2a8a4f();},'wJXQe':function(_0x5a697e,_0x54f8f0){return _0x5a697e===_0x54f8f0;},'DCCzu':_0x8c3932(0x186),'UVTEw':'master','MoLWe':function(_0x1440cc,_0x47106a){return _0x1440cc===_0x47106a;},'AOZIF':function(_0x505278,_0x337016){return _0x505278===_0x337016;},'epCSK':function(_0x1ce6f1,_0x50ccc9){return _0x1ce6f1||_0x50ccc9;}},_0x295858=_0x3048a9[_0x8c3932(0x1a3)](loadCache),_0x5f21fa=getCurrentBranch();if(!_0x5f21fa||_0x3048a9['wJXQe'](_0x5f21fa,_0x3048a9[_0x8c3932(0x182)])||_0x5f21fa===_0x3048a9['UVTEw'])return _0x295858[_0x8c3932(0x197)][_0x1079ce]?.['enabled']===!![];const _0x3ba703=_0x3048a9[_0x8c3932(0x188)](_0x295858['branches'][_0x5f21fa],!![]),_0x24eee9=_0x3048a9['AOZIF'](_0x295858[_0x8c3932(0x197)][_0x1079ce]?.['enabled'],!![]);return _0x3048a9['epCSK'](_0x3ba703,_0x24eee9);}export function disableSession(_0x500bf6){const _0x3ce292=_0x25e722,_0x4ac9d2={'QGNil':function(_0x44dfcf){return _0x44dfcf();}},_0x3f35ae=_0x4ac9d2[_0x3ce292(0x1a6)](loadCache),_0x12894f=getOrCreateSession(_0x3f35ae,_0x500bf6);_0x12894f['enabled']=![],saveCache(_0x3f35ae);}export function updateBranchTracking(_0x53d8fb){const _0xb6720f=_0x25e722,_0x3863c8={'gicRg':function(_0x5eb7dd){return _0x5eb7dd();},'eJLAy':function(_0xb3d5fd,_0x1fe2f8){return _0xb3d5fd===_0x1fe2f8;},'oBmlG':function(_0x765b8b,_0x5da078){return _0x765b8b!==_0x5da078;},'Odpap':function(_0x2866da,_0x68e833){return _0x2866da(_0x68e833);}},_0x2fbae8=_0x3863c8['gicRg'](loadCache),_0x2229c3=_0x2fbae8['sessions'][_0x53d8fb];if(!_0x2229c3?.['enabled'])return;const _0x2a6743=getCurrentBranch();if(!_0x2a6743||_0x2a6743===_0xb6720f(0x186)||_0x3863c8[_0xb6720f(0x1ab)](_0x2a6743,_0xb6720f(0x1a7)))return;_0x3863c8['oBmlG'](_0x2229c3['currentBranch'],_0x2a6743)&&(_0x2fbae8['branches'][_0x2a6743]=!![],_0x2229c3['currentBranch']=_0x2a6743,_0x3863c8['Odpap'](saveCache,_0x2fbae8));}export function initBranchTracking(_0x5216ee){const _0x253d51=_0x25e722,_0x18886a={'eZEmy':function(_0x2350ec){return _0x2350ec();},'CYrSn':_0x253d51(0x186),'oZMQA':function(_0x467af1,_0x19d5fd){return _0x467af1===_0x19d5fd;},'mrKsL':'master','EOXxV':function(_0x1a8c0e,_0x2239bb){return _0x1a8c0e(_0x2239bb);}},_0xbbb600=loadCache(),_0x46db19=_0x18886a['eZEmy'](getCurrentBranch);if(!_0x46db19||_0x46db19===_0x18886a['CYrSn']||_0x18886a['oZMQA'](_0x46db19,_0x18886a['mrKsL']))return;if(_0x18886a[_0x253d51(0x199)](_0xbbb600['branches'][_0x46db19],!![])){const _0x573231=getOrCreateSession(_0xbbb600,_0x5216ee);_0x573231['enabled']=!![],_0x573231[_0x253d51(0x183)]=_0x46db19,_0x18886a['EOXxV'](saveCache,_0xbbb600);}}function _0x63fd(){const _0x273fed=['sessions','kcGpF','oZMQA','parse','490605ZgzynC','eLWLB','utf-8','iAQgx','1332954UzvakD','FnOSs','featureId','BxLtc','ojTcd','2860584RjqZUw','bLKfA','QGNil','master','18MJDyfG','3299112CPjVty','existsSync','eJLAy','WfbOL','writeFileSync','EbBMs','1928328GxVBwL','registeredAt','gHuFF','rQCcd','WzkkR','trim','YJyvB','vcjPq','DCCzu','currentBranch','toISOString','5219130cQIFOJ','main','dirname','MoLWe','4517133WdgiMz','enabled','OTUFa','branches','lastEnabledSessionClearedAt','now','.ranger_cache.json','homedir','21KhJSLV','git\x20rev-parse\x20--abbrev-ref\x20HEAD','xtdZJ','ozGdu','FhwgM','4vQcaKb'];_0x63fd=function(){return _0x273fed;};return _0x63fd();}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x1c2b27){const _0x4004dd=_0x25e722,_0x4eec07={'UljZk':function(_0x45ec99){return _0x45ec99();}},_0x545b4c=_0x4eec07['UljZk'](loadCache),_0x919187=_0x545b4c['sessions'][_0x1c2b27];_0x919187?.[_0x4004dd(0x18a)]&&(_0x545b4c['lastEnabledSessionClearedAt']=Date[_0x4004dd(0x18e)](),saveCache(_0x545b4c));}export function shouldAutoEnableAfterClear(_0x449648){const _0x24d583=_0x25e722,_0x243c25={'kcGpF':'clear','rQCcd':function(_0x1c4508){return _0x1c4508();},'bLKfA':function(_0x32c559,_0x4a9843){return _0x32c559<=_0x4a9843;}};if(_0x449648!==_0x243c25[_0x24d583(0x198)])return![];const _0x39c021=_0x243c25[_0x24d583(0x1b2)](loadCache),_0x1f6c7b=_0x39c021[_0x24d583(0x18d)];if(!_0x1f6c7b)return![];const _0x593c47=Date[_0x24d583(0x18e)]()-_0x1f6c7b;return _0x243c25[_0x24d583(0x1a5)](_0x593c47,CLEAR_AUTO_ENABLE_WINDOW_MS);}function _0x4f80(_0x346a41,_0xad50fb){_0x346a41=_0x346a41-0x182;const _0x63fd5c=_0x63fd();let _0x4f8022=_0x63fd5c[_0x346a41];return _0x4f8022;}export function autoEnableAfterClear(_0x212f77){const _0x1c2353=_0x25e722,_0x17eb7f={'WfbOL':function(_0x2eb36d,_0x3de6cb,_0x4f83e5){return _0x2eb36d(_0x3de6cb,_0x4f83e5);},'YJyvB':function(_0x5e2169,_0x27bb3d){return _0x5e2169!==_0x27bb3d;},'jtTkM':_0x1c2353(0x186),'TVkHh':function(_0xf8a66b,_0x159618){return _0xf8a66b!==_0x159618;},'EbBMs':function(_0x4e016d,_0x658a87){return _0x4e016d(_0x658a87);}},_0x196e25=loadCache(),_0x5e1065=_0x17eb7f[_0x1c2353(0x1ac)](getOrCreateSession,_0x196e25,_0x212f77);_0x5e1065[_0x1c2353(0x18a)]=!![];const _0x42e371=getCurrentBranch();_0x42e371&&_0x17eb7f[_0x1c2353(0x1b5)](_0x42e371,_0x17eb7f['jtTkM'])&&_0x17eb7f['TVkHh'](_0x42e371,'master')&&(_0x5e1065['currentBranch']=_0x42e371),delete _0x196e25[_0x1c2353(0x18d)],_0x17eb7f[_0x1c2353(0x1ae)](saveCache,_0x196e25);}export function registerSession(_0x38e1ee,_0x3d56fa){const _0x2a5d47=_0x25e722,_0x332f7a={'iAQgx':function(_0x4ace8c){return _0x4ace8c();},'LNWLs':function(_0x332514,_0x34ea4b,_0x1450f6){return _0x332514(_0x34ea4b,_0x1450f6);}},_0x47f99b=_0x332f7a[_0x2a5d47(0x19e)](loadCache),_0x7e881=_0x332f7a['LNWLs'](getOrCreateSession,_0x47f99b,_0x38e1ee);_0x7e881['featureId']=_0x3d56fa,_0x7e881[_0x2a5d47(0x1b0)]=new Date()[_0x2a5d47(0x184)](),saveCache(_0x47f99b);}export function getSessionEntry(_0x307392){const _0x28e574=_0x25e722,_0x47fa38=loadCache(),_0x3e5e25=_0x47fa38['sessions'][_0x307392];if(_0x3e5e25?.['featureId']&&_0x3e5e25?.[_0x28e574(0x1b0)])return{'featureId':_0x3e5e25['featureId'],'registeredAt':_0x3e5e25[_0x28e574(0x1b0)]};return null;}export function unregisterSession(_0x5e430b){const _0xdb97c0=_0x25e722,_0xa4356d={'vcjPq':function(_0x51084d){return _0x51084d();}},_0x3e555b=_0xa4356d[_0xdb97c0(0x1b6)](loadCache),_0x3d889e=_0x3e555b[_0xdb97c0(0x197)][_0x5e430b];_0x3d889e&&(delete _0x3d889e[_0xdb97c0(0x1a1)],delete _0x3d889e['registeredAt'],saveCache(_0x3e555b));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x48f236){const _0x58b5c4=_0x25e722,_0x2521f3={'hMoIH':function(_0x22ad08){return _0x22ad08();},'Saytz':function(_0x5b29ea,_0x5b5015,_0x4bcbe3){return _0x5b29ea(_0x5b5015,_0x4bcbe3);},'kGkaX':function(_0x411a06,_0x1e2087){return _0x411a06>=_0x1e2087;},'FhwgM':function(_0x4b526e,_0x1d8539){return _0x4b526e-_0x1d8539;}},_0x4916ea=_0x2521f3['hMoIH'](loadCache),_0x24be36=_0x2521f3['Saytz'](getOrCreateSession,_0x4916ea,_0x48f236),_0x53500f=_0x24be36['lastPlanReminderAt']||0x0,_0x4dc55c=Date['now']();if(_0x2521f3['kGkaX'](_0x2521f3[_0x58b5c4(0x195)](_0x4dc55c,_0x53500f),PLAN_REMINDER_INTERVAL_MS))return _0x24be36['lastPlanReminderAt']=_0x4dc55c,saveCache(_0x4916ea),!![];return![];}export function shouldShowStopReminder(_0x1b4b86){const _0x6ac4b9=_0x25e722,_0x286170={'avWBp':function(_0x13e834,_0x5ea16f){return _0x13e834-_0x5ea16f;}},_0x3182c5=loadCache(),_0x1de785=getOrCreateSession(_0x3182c5,_0x1b4b86),_0x447618=_0x1de785['lastStopReminderAt']||0x0,_0x18208f=Date[_0x6ac4b9(0x18e)]();if(_0x286170['avWBp'](_0x18208f,_0x447618)>=STOP_REMINDER_INTERVAL_MS)return _0x1de785['lastStopReminderAt']=_0x18208f,saveCache(_0x3182c5),!![];return![];}export function hasSessionBeenPrompted(_0x3a341d){const _0x57c18c=_0x25e722,_0x57d674={'AVPne':function(_0x220f3b,_0x3367f0){return _0x220f3b===_0x3367f0;}},_0xeac66=loadCache();return _0x57d674['AVPne'](_0xeac66[_0x57c18c(0x197)][_0x3a341d]?.['prompted'],!![]);}export function markSessionPrompted(_0x40c260){const _0x175c78=_0x25e722,_0x4454bc={'Bfyee':function(_0x4889e1){return _0x4889e1();},'xtdZJ':function(_0x256941,_0x456de3,_0x372892){return _0x256941(_0x456de3,_0x372892);}},_0x4b184f=_0x4454bc['Bfyee'](loadCache),_0x532b99=_0x4454bc[_0x175c78(0x193)](getOrCreateSession,_0x4b184f,_0x40c260);_0x532b99['prompted']=!![],saveCache(_0x4b184f);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x8c91a=_0x2d38;(function(_0x37b754,_0x33a05e){const _0x27683a=_0x2d38,_0x2ab3f3=_0x37b754();while(!![]){try{const _0x28fa17=parseInt(_0x27683a(0x1c1))/0x1+parseInt(_0x27683a(0x1a9))/0x2*(parseInt(_0x27683a(0x1ce))/0x3)+-parseInt(_0x27683a(0x1e5))/0x4+-parseInt(_0x27683a(0x1f7))/0x5*(parseInt(_0x27683a(0x1be))/0x6)+-parseInt(_0x27683a(0x1c7))/0x7*(parseInt(_0x27683a(0x1aa))/0x8)+parseInt(_0x27683a(0x1c5))/0x9*(parseInt(_0x27683a(0x1e9))/0xa)+-parseInt(_0x27683a(0x1dd))/0xb;if(_0x28fa17===_0x33a05e)break;else _0x2ab3f3['push'](_0x2ab3f3['shift']());}catch(_0x3efa24){_0x2ab3f3['push'](_0x2ab3f3['shift']());}}}(_0xba7c,0xd8bb8));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';function _0x2d38(_0x10a43c,_0x4a9ff8){_0x10a43c=_0x10a43c-0x1a9;const _0xba7c1b=_0xba7c();let _0x2d3854=_0xba7c1b[_0x10a43c];return _0x2d3854;}import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x29db7b,_0x1fe772){const _0x539c7a=_0x2d38,_0x21fc9c={'bLrDA':function(_0x4d1eb7,_0x43f8f2,_0x5bd2ab,_0x2090c4){return _0x4d1eb7(_0x43f8f2,_0x5bd2ab,_0x2090c4);},'EXLgZ':function(_0x3a4aa1,_0x1aace2){return _0x3a4aa1(_0x1aace2);},'gutax':function(_0x5993e2,_0x3988f8){return _0x5993e2!==_0x3988f8;},'sCHXm':function(_0x32a7ad,_0x449258){return _0x32a7ad(_0x449258);}},_0x22a8fb=_0x21fc9c['bLrDA'](join,_0x1fe772,'ci',_0x29db7b),_0x57ff39=join(_0x1fe772,'local',_0x29db7b),_0x5b8fed=join(_0x1fe772,_0x29db7b),_0x25149b=join(_0x1fe772,'local'),_0x524997=join(_0x1fe772,'ci');if(existsSync(_0x22a8fb))return _0x22a8fb;if(existsSync(_0x57ff39))return _0x57ff39;if(_0x21fc9c[_0x539c7a(0x209)](existsSync,_0x5b8fed)&&(_0x5b8fed!==_0x25149b&&_0x21fc9c[_0x539c7a(0x1da)](_0x5b8fed,_0x524997)?!![]:_0x21fc9c['sCHXm'](hasLegacyProfileFiles,_0x5b8fed)))return _0x5b8fed;return null;}export function getEnvDir(_0x497633){const _0x3de6bd=_0x2d38,_0x1e74aa={'LXIlX':function(_0x564f1e){return _0x564f1e();},'uHGuE':function(_0x395be5,_0x4a584b,_0x3bbc9e){return _0x395be5(_0x4a584b,_0x3bbc9e);},'SPtVi':function(_0x170552,_0x4ba647){return _0x170552!==_0x4ba647;},'zHwoB':function(_0x5a369e,_0x18fe0f,_0x48a3d0,_0x5554bc){return _0x5a369e(_0x18fe0f,_0x48a3d0,_0x5554bc);},'heWMQ':'local'},_0x436147=_0x1e74aa[_0x3de6bd(0x1b8)](getRangerDir),_0x4c6310=_0x1e74aa[_0x3de6bd(0x1b0)](findEnvInRoot,_0x497633,_0x436147);if(_0x4c6310)return _0x4c6310;const _0x5f4112=getRangerHomeDir();if(_0x1e74aa['SPtVi'](_0x5f4112,_0x436147)){const _0x171a82=findEnvInRoot(_0x497633,_0x5f4112);if(_0x171a82)return _0x171a82;}return _0x1e74aa[_0x3de6bd(0x1e1)](join,_0x436147,_0x1e74aa['heWMQ'],_0x497633);}export function findExistingEnv(_0x2677d4,_0x14929e){const _0x5602f6=_0x2d38,_0x39d2d4={'rYumT':'legacy','HRxDH':function(_0x4ab501,_0x5360d5,_0x2565bd,_0x2d325a){return _0x4ab501(_0x5360d5,_0x2565bd,_0x2d325a);},'gegah':'local','lhLuJ':function(_0x35fdf7,_0x37ab09){return _0x35fdf7===_0x37ab09;}},_0x168985=_0x14929e?.['rangerDir'],_0x4e3ee2=_0x168985?[_0x168985]:[getRangerDir(),getRangerHomeDir()][_0x5602f6(0x1f6)]((_0xe33437,_0x54e140,_0x37327c)=>_0x37327c['indexOf'](_0xe33437)===_0x54e140),_0x37e09d=_0x14929e?.['locations']??['ci','local',_0x39d2d4['rYumT']];for(const _0x3feb87 of _0x4e3ee2){const _0x1be8a0=join(_0x3feb87,'local'),_0x492be5=join(_0x3feb87,'ci'),_0x7645b2=[{'location':'ci','path':_0x39d2d4['HRxDH'](join,_0x3feb87,'ci',_0x2677d4)},{'location':'local','path':join(_0x3feb87,_0x39d2d4[_0x5602f6(0x1bc)],_0x2677d4)},{'location':'legacy','path':join(_0x3feb87,_0x2677d4)}];for(const _0x459b56 of _0x7645b2){if(_0x37e09d['includes'](_0x459b56['location'])&&existsSync(_0x459b56['path'])){if(_0x39d2d4['lhLuJ'](_0x459b56[_0x5602f6(0x1cc)],'legacy')&&(_0x39d2d4['lhLuJ'](_0x459b56[_0x5602f6(0x1ed)],_0x1be8a0)||_0x459b56[_0x5602f6(0x1ed)]===_0x492be5)&&!hasLegacyProfileFiles(_0x459b56['path']))continue;return{'path':_0x459b56[_0x5602f6(0x1ed)],'location':_0x459b56[_0x5602f6(0x1cc)]};}}}return null;}function hasLegacyProfileFiles(_0x38c456){const _0x15e17b=_0x2d38,_0x3fbb74={'xtgQq':function(_0x388ec7,_0x5b9071,_0x539159){return _0x388ec7(_0x5b9071,_0x539159);},'mLkUA':function(_0x1f1b36,_0x19e03f,_0x309241){return _0x1f1b36(_0x19e03f,_0x309241);}};return existsSync(_0x3fbb74[_0x15e17b(0x202)](join,_0x38c456,'settings.json'))||existsSync(_0x3fbb74[_0x15e17b(0x1e3)](join,_0x38c456,_0x15e17b(0x20e)))||existsSync(join(_0x38c456,_0x15e17b(0x21a)));}export function isEnvCi(_0x33419b){const _0x14725d=_0x2d38,_0x1345c4={'GRTfR':function(_0x79fed,_0x14a60c){return _0x79fed(_0x14a60c);},'NcsYi':function(_0x20ace9,_0x327959,_0x2f29e7,_0x9eff1){return _0x20ace9(_0x327959,_0x2f29e7,_0x9eff1);},'Ydhvg':function(_0x2a6661){return _0x2a6661();},'akilP':function(_0x11bf51,_0x19604c){return _0x11bf51!==_0x19604c;},'KkhDR':function(_0x4db2c4){return _0x4db2c4();}};if(_0x1345c4[_0x14725d(0x1d1)](existsSync,_0x1345c4[_0x14725d(0x1c9)](join,_0x1345c4['Ydhvg'](getRangerDir),'ci',_0x33419b)))return!![];const _0x3abd2e=getRangerHomeDir();if(_0x1345c4['akilP'](_0x3abd2e,_0x1345c4[_0x14725d(0x1ac)](getRangerDir))&&_0x1345c4[_0x14725d(0x1d1)](existsSync,_0x1345c4[_0x14725d(0x1c9)](join,_0x3abd2e,'ci',_0x33419b)))return!![];return![];}export async function cleanupTempFiles(_0x36efcd){const _0x52dbc9=_0x2d38,_0xf80741={'UjRaB':function(_0x22b5d1,_0x54697b){return _0x22b5d1!==_0x54697b;},'dBulr':'ENOENT'},_0x2e50dc=[_0x36efcd[_0x52dbc9(0x1ae)],_0x36efcd[_0x52dbc9(0x210)]]['filter'](Boolean);await Promise[_0x52dbc9(0x1b6)](_0x2e50dc['map'](_0x48f78b=>unlink(_0x48f78b)['catch'](_0x18a650=>{const _0x3d33ef=_0x52dbc9;_0xf80741[_0x3d33ef(0x1bb)](_0x18a650['code'],_0xf80741[_0x3d33ef(0x1d5)])&&console['warn'](_0x3d33ef(0x1f5)+_0x48f78b+':',_0x18a650['message']);})));}export function getSettingsPath(_0x267d2a){const _0xad53d=_0x2d38,_0x3b9bda={'MaDtA':function(_0x331b2d,_0x361818,_0xfb057){return _0x331b2d(_0x361818,_0xfb057);},'HCKHA':function(_0x5aa471,_0x54b770){return _0x5aa471(_0x54b770);},'adnuJ':'settings.json'};return _0x3b9bda['MaDtA'](join,_0x3b9bda[_0xad53d(0x1e4)](getEnvDir,_0x267d2a),_0x3b9bda[_0xad53d(0x219)]);}export async function loadSettings(_0x4e4542){const _0xa189bf=_0x2d38,_0x4bc1f7={'YGvdp':function(_0x200f30,_0x26e885,_0xf15ddd){return _0x200f30(_0x26e885,_0xf15ddd);},'CVWAO':_0xa189bf(0x1d9)},_0xf47251=getSettingsPath(_0x4e4542);if(!existsSync(_0xf47251))return{};try{const _0x8eb7bb=await _0x4bc1f7[_0xa189bf(0x212)](readFile,_0xf47251,_0x4bc1f7[_0xa189bf(0x1c6)]);return JSON['parse'](_0x8eb7bb);}catch{return{};}}export async function saveSettings(_0x2562ae,_0x987f33){const _0x4b8780=_0x2d38,_0xd929e0={'DxmBU':function(_0x42b148,_0x34d0d2){return _0x42b148(_0x34d0d2);},'BmJVs':function(_0x20c175,_0x533f60){return _0x20c175(_0x533f60);},'SrkyR':function(_0x2986a8,_0x199068,_0x267fd9){return _0x2986a8(_0x199068,_0x267fd9);}},_0x23c8e3=_0xd929e0[_0x4b8780(0x213)](getSettingsPath,_0x2562ae),_0xb23643=_0xd929e0[_0x4b8780(0x215)](dirname,_0x23c8e3);!_0xd929e0['DxmBU'](existsSync,_0xb23643)&&await _0xd929e0['SrkyR'](mkdir,_0xb23643,{'recursive':!![]}),await _0xd929e0[_0x4b8780(0x1db)](writeFile,_0x23c8e3,JSON['stringify'](_0x987f33,null,0x2));}export function resolveEnvVars(_0x52aee1){const _0x1988f3=_0x2d38,_0x50ba82={'XORrd':function(_0x228b33,_0xfe9c86){return _0x228b33===_0xfe9c86;},'pHOmf':_0x1988f3(0x1b5),'NLBZC':_0x1988f3(0x1df)};if(_0x50ba82[_0x1988f3(0x211)](typeof _0x52aee1,_0x50ba82[_0x1988f3(0x1d4)]))return _0x52aee1['replace'](/\$\{(\w+)\}/g,(_0x11a786,_0x297679)=>{const _0x758ea6=_0x1988f3,_0x559fc3=process['env'][_0x297679];if(_0x50ba82[_0x758ea6(0x211)](_0x559fc3,undefined))throw new Error(_0x758ea6(0x214)+_0x297679+'\x20is\x20not\x20set');return _0x559fc3;});if(Array[_0x1988f3(0x1b2)](_0x52aee1))return _0x52aee1['map'](resolveEnvVars);if(_0x52aee1&&typeof _0x52aee1===_0x50ba82[_0x1988f3(0x207)])return Object[_0x1988f3(0x216)](Object['entries'](_0x52aee1)['map'](([_0x442557,_0x57c4e2])=>[_0x442557,resolveEnvVars(_0x57c4e2)]));return _0x52aee1;}const isRecord=_0x2ff47d=>typeof _0x2ff47d===_0x8c91a(0x1df)&&_0x2ff47d!==null&&!Array['isArray'](_0x2ff47d),asRecord=_0x1b4109=>isRecord(_0x1b4109)?_0x1b4109:undefined,mergeHeaders=(_0x1667e0,_0x52efec)=>{const _0x1d5a76=_0x8c91a,_0x335de9={'xrQdm':function(_0x23099c,_0x39165c){return _0x23099c??_0x39165c;}},_0x4da84a={..._0x335de9['xrQdm'](_0x1667e0,{}),..._0x52efec??{}};return Object[_0x1d5a76(0x1ec)](_0x4da84a)[_0x1d5a76(0x1e2)]?_0x4da84a:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=['--disable-web-security',_0x8c91a(0x1bd),_0x8c91a(0x1e0),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x612f03,_0x5e8b38={}){const _0x5413ff=_0x8c91a,_0x16fb4e={'XeBHX':function(_0x21ae90,_0x5632f5){return _0x21ae90(_0x5632f5);},'aLRaE':_0x5413ff(0x1b5),'sdAdP':function(_0x4fb10d,_0x2217e4,_0x705c57){return _0x4fb10d(_0x2217e4,_0x705c57);}},_0x22a12b=_0x16fb4e['XeBHX'](asRecord,_0x612f03['browser']),_0x7afef9={...asRecord(_0x22a12b?.['launchOptions'])??{}};typeof _0x5e8b38['headless']===_0x5413ff(0x1fb)&&(_0x7afef9[_0x5413ff(0x1d8)]=_0x5e8b38['headless']);if(_0x612f03[_0x5413ff(0x204)]){const _0x31626c=_0x7afef9['args']??[],_0x2ed3da=SAFE_MODE_ARGS['filter'](_0x17f17a=>!_0x31626c[_0x5413ff(0x1de)](_0x17f17a));_0x7afef9[_0x5413ff(0x1d7)]=[..._0x31626c,..._0x2ed3da];}if(_0x612f03['allowInsecureLocalhost']){const _0x189edd=_0x7afef9[_0x5413ff(0x1d7)]??[],_0x3a9e12=ALLOW_LOCALHOST_ARGS['filter'](_0x10200d=>!_0x189edd['includes'](_0x10200d));_0x7afef9[_0x5413ff(0x1d7)]=[..._0x189edd,..._0x3a9e12];}const _0x5619b2={...asRecord(_0x22a12b?.['contextOptions'])??{}};_0x5619b2['ignoreHTTPSErrors']=!![];typeof _0x612f03['userAgent']===_0x16fb4e['aLRaE']&&(_0x5619b2[_0x5413ff(0x1cf)]=_0x612f03['userAgent']);const _0x42ed10=_0x16fb4e['sdAdP'](mergeHeaders,asRecord(_0x5619b2[_0x5413ff(0x1fc)]),asRecord(_0x612f03[_0x5413ff(0x1fa)]));return _0x42ed10?_0x5619b2['extraHTTPHeaders']=_0x42ed10:delete _0x5619b2['extraHTTPHeaders'],_0x5e8b38[_0x5413ff(0x20a)]&&(_0x5619b2[_0x5413ff(0x201)]=_0x5e8b38[_0x5413ff(0x20a)]),{'launchOptions':_0x7afef9,'contextOptions':_0x5619b2};}async function resolveLocalAuthPath(_0x292043){const _0x2c84dc=_0x8c91a,_0xce7eb6={'yJGmi':function(_0x5d70c6,_0x3935de,_0x5b365d){return _0x5d70c6(_0x3935de,_0x5b365d);},'lXSHw':'auth.json','kVfRs':function(_0x4e0439){return _0x4e0439();},'ghpJF':function(_0x3a5223,_0x15bd9c){return _0x3a5223 instanceof _0x15bd9c;},'uMvcA':function(_0x3041b5,_0x242446){return _0x3041b5(_0x242446);},'YAPog':function(_0x49b002,_0x1be10f){return _0x49b002(_0x1be10f);}},_0x4108fe=_0xce7eb6[_0x2c84dc(0x1c2)](join,_0x292043,'auth.json.enc'),_0x520aa5=join(_0x292043,_0xce7eb6['lXSHw']);if(existsSync(_0x4108fe))try{const _0x47efef=await getToken();if(!_0x47efef)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x3efca2=await readFile(_0x4108fe),_0x225f2b=decrypt(_0x3efca2,_0x47efef),_0x2c21dc=join(_0xce7eb6[_0x2c84dc(0x1cb)](tmpdir),'ranger-auth-'+Date['now']()+'.json');return await writeFile(_0x2c21dc,_0x225f2b),{'storageStatePath':_0x2c21dc,'tempAuthPath':_0x2c21dc};}catch(_0x22ac26){const _0x28b7e3=_0xce7eb6[_0x2c84dc(0x1fe)](_0x22ac26,Error)?_0x22ac26['message']:_0xce7eb6[_0x2c84dc(0x1f3)](String,_0x22ac26);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x28b7e3);}if(_0xce7eb6[_0x2c84dc(0x1b1)](existsSync,_0x520aa5))return{'storageStatePath':_0x520aa5};return{};}export async function buildPlaywrightConfig(_0x557b2a,_0x1505e7,_0x32f31a,_0x4ca00d,_0x25def5){const _0x689960=_0x8c91a,_0x5caa89={'EJPsE':function(_0x4b2c85,_0x532216,_0x5f2a51,_0x331346,_0x5921e2,_0x221b27,_0x539740){return _0x4b2c85(_0x532216,_0x5f2a51,_0x331346,_0x5921e2,_0x221b27,_0x539740);},'uCDJk':'stagehand','WxmIB':function(_0x1b2685,_0x1f3dab){return _0x1b2685(_0x1f3dab);}};if(_0x25def5)return _0x5caa89['EJPsE'](buildPlaywrightConfigCore,_0x557b2a,_0x25def5,_0x1505e7,_0x32f31a,_0x4ca00d,_0x5caa89['uCDJk']);const {storageStatePath:_0x4accc5,tempAuthPath:_0x39cfa7}=await resolveLocalAuthPath(getEnvDir(_0x1505e7));try{const _0x567bb0=await buildPlaywrightConfigCore(_0x557b2a,_0x4accc5,_0x1505e7,_0x32f31a,_0x4ca00d,_0x5caa89[_0x689960(0x1e8)]);return{..._0x567bb0,'tempAuthPath':_0x39cfa7};}catch(_0x5ac894){_0x39cfa7&&await _0x5caa89['WxmIB'](unlink,_0x39cfa7)['catch'](()=>{});throw _0x5ac894;}}export async function buildPlaywrightConfigCore(_0x3359d3,_0x47b320,_0x171cab,_0x4e046b,_0x185b80,_0xb7d947=_0x8c91a(0x1fd)){const _0x209df0=_0x8c91a,_0x36f5ce={'ZFtMm':function(_0x4d6b19,_0x21369c,_0x46b1e5){return _0x4d6b19(_0x21369c,_0x46b1e5);},'IaNDv':function(_0x37a623,_0x10915a){return _0x37a623===_0x10915a;},'IXPNW':'--no-sandbox','FfAsY':'--disable-setuid-sandbox','cswpy':function(_0x1550c3){return _0x1550c3();},'GavmU':function(_0x146c39,_0x495856,_0x3be911,_0x13752f){return _0x146c39(_0x495856,_0x3be911,_0x13752f);},'CCVKH':function(_0x4bccdf){return _0x4bccdf();},'pooSU':'sessions','wIKpg':function(_0x41ec24,_0x40a756){return _0x41ec24(_0x40a756);},'cQTqV':'chromium','gZeSn':_0x209df0(0x200),'aJcFS':_0x209df0(0x1ef),'ltNUx':'tabs','HlUIG':'pdf','jvtgW':function(_0x5a661e,_0x362af7){return _0x5a661e===_0x362af7;},'StUvf':_0x209df0(0x1b7)},_0x5975f3=_0x4e046b||_0x36f5ce[_0x209df0(0x1af)](randomUUID),_0x56fd6d=_0x36f5ce[_0x209df0(0x1ea)](join,_0x36f5ce['CCVKH'](getRangerDir),_0x36f5ce[_0x209df0(0x1ad)],_0x5975f3),_0xad26db=_0x36f5ce['wIKpg'](Boolean,_0x3359d3[_0x209df0(0x1b9)]),_0x3f8ada=_0xad26db?{'browserName':_0x36f5ce['cQTqV'],'cdpEndpoint':_0x3359d3[_0x209df0(0x1b9)]}:((()=>{const _0x416e3c=_0x209df0,{launchOptions:_0x2505bc,contextOptions:_0x4c7675}=_0x36f5ce['ZFtMm'](buildBrowserOptionsFromSettings,_0x3359d3,{'headless':_0x185b80?![]:_0x3359d3['headless']??!![],'storageStatePath':_0x47b320});if(_0x36f5ce[_0x416e3c(0x1ab)](process[_0x416e3c(0x1dc)]?.(),0x0)){const _0x556701=[_0x36f5ce['IXPNW'],_0x36f5ce[_0x416e3c(0x1bf)]],_0x2c454e=_0x2505bc['args']??[],_0x4308ea=_0x556701[_0x416e3c(0x1f6)](_0x4d7885=>!_0x2c454e['includes'](_0x4d7885));_0x2505bc['args']=[..._0x2c454e,..._0x4308ea];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x2505bc,'contextOptions':{..._0x4c7675,'permissions':[_0x416e3c(0x203),'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x3d8a6c=_0x36f5ce['IaNDv'](_0xb7d947,'playwright-cli')?{'browser':_0x3f8ada,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x56fd6d,'outputMode':_0x209df0(0x1ba),'codegen':_0x36f5ce[_0x209df0(0x1eb)]}:{'name':_0x171cab,'browser':_0x3f8ada,'capabilities':[_0x36f5ce['aJcFS'],_0x36f5ce['ltNUx'],_0x209df0(0x1cd),_0x36f5ce[_0x209df0(0x1d2)],'vision'],'imageResponses':_0x209df0(0x208),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x56fd6d};if(!_0xad26db){const _0x32be9a=_0x3d8a6c[_0x209df0(0x1c8)],_0x336125=_0x32be9a[_0x209df0(0x1b4)];if(_0x36f5ce['jvtgW'](_0x336125['userAgent'],undefined))delete _0x336125['userAgent'];if(_0x336125[_0x209df0(0x201)]===undefined)delete _0x336125['storageState'];}const _0x3e701a=join(_0x36f5ce[_0x209df0(0x1af)](tmpdir),'ranger-config');!existsSync(_0x3e701a)&&await mkdir(_0x3e701a,{'recursive':!![]});const _0x3a9360=_0xb7d947==='playwright-cli'?_0x36f5ce['StUvf']:'',_0x3bf805=_0x36f5ce[_0x209df0(0x1ff)](join,_0x3e701a,_0x171cab+'-'+Date['now']()+_0x3a9360+_0x209df0(0x20c));return await _0x36f5ce[_0x209df0(0x1ff)](writeFile,_0x3bf805,JSON[_0x209df0(0x1f0)](_0x3d8a6c,null,0x2)),{'configPath':_0x3bf805};}export async function buildPlaywrightCliConfig(_0x1fd4c3,_0x57e0bc,_0x350e60,_0x28ce9f,_0x16c70c){const _0x459d2d=_0x8c91a,_0x59b338={'HZbNl':function(_0x13b326,_0x368915){return _0x13b326(_0x368915);},'unpey':function(_0x411759,_0x4d0a84,_0x8e3e,_0x1a4063,_0x4faec1,_0x2750f1,_0x3c00cf){return _0x411759(_0x4d0a84,_0x8e3e,_0x1a4063,_0x4faec1,_0x2750f1,_0x3c00cf);},'bvTML':_0x459d2d(0x1c4)};if(_0x16c70c)return buildPlaywrightConfigCore(_0x1fd4c3,_0x16c70c,_0x57e0bc,_0x350e60,_0x28ce9f,'playwright-cli');const {storageStatePath:_0x299a1a,tempAuthPath:_0x5b8837}=await _0x59b338[_0x459d2d(0x1ee)](resolveLocalAuthPath,getEnvDir(_0x57e0bc));try{const _0x244acf=await _0x59b338[_0x459d2d(0x21b)](buildPlaywrightConfigCore,_0x1fd4c3,_0x299a1a,_0x57e0bc,_0x350e60,_0x28ce9f,_0x59b338['bvTML']);return{..._0x244acf,'tempAuthPath':_0x5b8837};}catch(_0x35045b){_0x5b8837&&await unlink(_0x5b8837)['catch'](()=>{});throw _0x35045b;}}export function getNestedValue(_0x1c6480,_0x46b02e){const _0x8ca29=_0x8c91a,_0x26eef7={'kZetn':function(_0xeeff9,_0x4fc772){return _0xeeff9!==_0x4fc772;},'mVMNj':_0x8ca29(0x1df)},_0x176d21=parseKeyPath(_0x46b02e);let _0x4823f6=_0x1c6480;for(const _0x492c1e of _0x176d21){if(_0x4823f6===null||_0x4823f6===undefined||_0x26eef7['kZetn'](typeof _0x4823f6,_0x26eef7[_0x8ca29(0x1f2)]))return undefined;_0x4823f6=_0x4823f6[_0x492c1e];}return _0x4823f6;}export function setNestedValue(_0x145a01,_0x840b6f,_0x4674dd){const _0x1f12a7=_0x8c91a,_0x581906={'Jwiqg':function(_0x369e6a,_0x38d369){return _0x369e6a(_0x38d369);},'EVaMj':function(_0x251762,_0x3c5919){return _0x251762-_0x3c5919;},'oTLYX':function(_0x5cd430,_0x8da013){return _0x5cd430!==_0x8da013;}},_0x151f16=_0x581906['Jwiqg'](parseKeyPath,_0x840b6f);let _0x43ef5a=_0x145a01;for(let _0x17fb4c=0x0;_0x17fb4c<_0x581906[_0x1f12a7(0x205)](_0x151f16[_0x1f12a7(0x1e2)],0x1);_0x17fb4c++){const _0x243f46=_0x151f16[_0x17fb4c];(!(_0x243f46 in _0x43ef5a)||_0x581906[_0x1f12a7(0x1f4)](typeof _0x43ef5a[_0x243f46],'object'))&&(_0x43ef5a[_0x243f46]={}),_0x43ef5a=_0x43ef5a[_0x243f46];}_0x43ef5a[_0x151f16[_0x151f16[_0x1f12a7(0x1e2)]-0x1]]=_0x4674dd;}export function deleteNestedValue(_0x431deb,_0x9e50c9){const _0x172dce=_0x8c91a,_0x2298ad={'fvSVF':function(_0x31e511,_0x298930){return _0x31e511(_0x298930);},'tslmQ':function(_0x62913e,_0x56c087){return _0x62913e<_0x56c087;},'doiOZ':function(_0x18ed0e,_0x30f68e){return _0x18ed0e-_0x30f68e;},'ZNOfU':function(_0x5ef35c,_0x2cc907){return _0x5ef35c===_0x2cc907;},'wUVra':function(_0x42dd09,_0xee821a){return _0x42dd09!==_0xee821a;},'HHnhj':'object','WVmQb':function(_0x36ecc5,_0x5a8b4b){return _0x36ecc5===_0x5a8b4b;},'gQoWu':function(_0x3e6328,_0x4797a1){return _0x3e6328!==_0x4797a1;},'BKycJ':function(_0x2928f4,_0x23f408){return _0x2928f4 in _0x23f408;}},_0xcfbeee=_0x2298ad['fvSVF'](parseKeyPath,_0x9e50c9);let _0x1f90e1=_0x431deb;for(let _0x27cda9=0x0;_0x2298ad[_0x172dce(0x1d3)](_0x27cda9,_0x2298ad[_0x172dce(0x1f9)](_0xcfbeee[_0x172dce(0x1e2)],0x1));_0x27cda9++){if(_0x1f90e1===null||_0x2298ad['ZNOfU'](_0x1f90e1,undefined)||_0x2298ad[_0x172dce(0x20b)](typeof _0x1f90e1,_0x2298ad[_0x172dce(0x218)]))return![];_0x1f90e1=_0x1f90e1[_0xcfbeee[_0x27cda9]];}if(_0x2298ad[_0x172dce(0x1d6)](_0x1f90e1,null)||_0x2298ad[_0x172dce(0x1e6)](_0x1f90e1,undefined)||_0x2298ad[_0x172dce(0x20d)](typeof _0x1f90e1,_0x2298ad['HHnhj']))return![];const _0x569289=_0xcfbeee[_0x2298ad[_0x172dce(0x1f9)](_0xcfbeee[_0x172dce(0x1e2)],0x1)];if(_0x2298ad[_0x172dce(0x1e7)](_0x569289,_0x1f90e1))return delete _0x1f90e1[_0x569289],!![];return![];}function parseKeyPath(_0xcae4da){const _0x37a4ac=_0x8c91a,_0xab8f09={'gKcJN':'headers','TJdxW':function(_0x4d5d1d,_0x791a1e){return _0x4d5d1d===_0x791a1e;},'axRmg':_0x37a4ac(0x1c3)},_0x2db596=_0xcae4da[_0x37a4ac(0x1c0)]('.');return _0x2db596[0x0]===_0x37a4ac(0x1d0)&&(_0x2db596[0x0]=_0xab8f09[_0x37a4ac(0x217)]),_0xab8f09[_0x37a4ac(0x20f)](_0x2db596[0x0],_0xab8f09['axRmg'])&&(_0x2db596[0x0]=_0x37a4ac(0x1b3)),_0x2db596;}function _0xba7c(){const _0x2e7169=['configPath','XORrd','YGvdp','DxmBU','Environment\x20variable\x20','BmJVs','fromEntries','gKcJN','HHnhj','adnuJ','auth.json.enc','unpey','24664CFXojj','3184NsMjuM','IaNDv','KkhDR','pooSU','tempAuthPath','cswpy','uHGuE','YAPog','isArray','setupHeaders','contextOptions','string','all','-cli','LXIlX','cdpEndpoint','file','UjRaB','gegah','--allow-running-insecure-content','174XmoXOB','FfAsY','split','1205575uoBWNP','yJGmi','setupHeader','playwright-cli','756UVTekB','CVWAO','11683lFUGsm','browser','NcsYi','join','kVfRs','location','install','327PlsQUg','userAgent','header','GRTfR','HlUIG','tslmQ','pHOmf','dBulr','ZNOfU','args','headless','utf-8','gutax','SrkyR','getuid','2613721wcDojA','includes','object','--unsafely-treat-insecure-origin-as-secure=http://localhost','zHwoB','length','mLkUA','HCKHA','3883992CJvECc','WVmQb','BKycJ','uCDJk','63270TcaYxT','GavmU','gZeSn','keys','path','HZbNl','core','stringify','entries','mVMNj','uMvcA','oTLYX','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','filter','55280oQmncL','repeat','doiOZ','headers','boolean','extraHTTPHeaders','stagehand','ghpJF','ZFtMm','none','storageState','xtgQq','clipboard-read','safeMode','EVaMj','push','NLBZC','allow','EXLgZ','storageStatePath','wUVra','.json','gQoWu','auth.json','TJdxW'];_0xba7c=function(){return _0x2e7169;};return _0xba7c();}export function formatSettings(_0x2176c7,_0x578fe8=0x0){const _0x514918=_0x8c91a,_0x6a61f8={'grAlL':'object','zHqtb':function(_0x274478,_0x29d796){return _0x274478!==_0x29d796;}},_0x220c96=[],_0x28172f='\x20\x20'[_0x514918(0x1f8)](_0x578fe8);for(const [_0x4a6e49,_0x460fac]of Object[_0x514918(0x1f1)](_0x2176c7)){if(_0x460fac===undefined)continue;if(typeof _0x460fac===_0x6a61f8['grAlL']&&_0x6a61f8['zHqtb'](_0x460fac,null)){_0x220c96[_0x514918(0x206)](''+_0x28172f+_0x4a6e49+':');for(const [_0x384786,_0x5a31f2]of Object['entries'](_0x460fac)){_0x220c96[_0x514918(0x206)](_0x28172f+'\x20\x20'+_0x384786+':\x20'+_0x5a31f2);}}else _0x220c96[_0x514918(0x206)](''+_0x28172f+_0x4a6e49+':\x20'+_0x460fac);}return _0x220c96[_0x514918(0x1ca)]('\x0a');}
1
+ const _0x34632f=_0x289a;function _0x289a(_0x2b2f58,_0x44c069){_0x2b2f58=_0x2b2f58-0x1a3;const _0x2f0442=_0x2f04();let _0x289a8f=_0x2f0442[_0x2b2f58];return _0x289a8f;}(function(_0x41321e,_0x1675e0){const _0x2d6e49=_0x289a,_0x48f53e=_0x41321e();while(!![]){try{const _0x585cc3=parseInt(_0x2d6e49(0x200))/0x1*(parseInt(_0x2d6e49(0x1bb))/0x2)+parseInt(_0x2d6e49(0x1a7))/0x3*(parseInt(_0x2d6e49(0x1ce))/0x4)+-parseInt(_0x2d6e49(0x213))/0x5+parseInt(_0x2d6e49(0x1e0))/0x6+-parseInt(_0x2d6e49(0x210))/0x7*(-parseInt(_0x2d6e49(0x1c0))/0x8)+parseInt(_0x2d6e49(0x206))/0x9*(-parseInt(_0x2d6e49(0x1d3))/0xa)+parseInt(_0x2d6e49(0x1b8))/0xb*(-parseInt(_0x2d6e49(0x1e3))/0xc);if(_0x585cc3===_0x1675e0)break;else _0x48f53e['push'](_0x48f53e['shift']());}catch(_0x7572af){_0x48f53e['push'](_0x48f53e['shift']());}}}(_0x2f04,0xb601a));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{chromium}from'playwright';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function _0x2f04(){const _0x345e04=['rRJyK','extraHTTPHeaders','16970IzdLyG','catch','--disable-setuid-sandbox','sessions','ZxIaF','boolean','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','auth.json.enc','UmZTH','header','auth.json','warn','Default','7951410qmEDJn','none','headless','48456LTJtBT','replace','--disable-web-security','BKhaG','playwright-cli','yZxrx','aXPhS','forWrite','JZfWM','getuid','baseUrl','core','legacy','chromium','MLHNy','LeGtP','setupHeaders','fromEntries','PEvUc','push','stagehand','location','configPath','xwFIt','clipboard-write','--unsafely-treat-insecure-origin-as-secure=http://localhost','includes','executablePath','GhLPL','795559eayCPe','Crtes','qPPee','onAWN','DtZaw','code','495BkuBwQ','cBVsf','eitiL','filter','JxauN','message','userAgent','nlBof','wQpXm','string','917FmkQwr','env','pQIio','3676815Hdxhfs','ECACs','zVeHJ','BImJD','browser','cdpEndpoint','lbuBH','install','rangerDir','storageState','storageStatePath','wiRWw','XgvQI','length','settings.json','uvMLb','gfWvo','Environment\x20variable\x20','jbQNT','33wlFbpX','LFbgg','sXJst','entries','VPjmX','fwfmi','--disable-features=WebBluetooth','QjUyF','safeMode','pdbUi','mBeNK','RFkod','HPWuZ','GNwfU','VetLr','parse','ALqqM','4334ivgueL','now','REvoo','2cTOZij','map','tabs','zntfG','args','45928NIlxwh','ranger-config','nova-user-data','xMbHw','sXwZo','path','kQoUp','launchOptions','Hnllh','EEion','vYIvx','isArray','ignoreHTTPSErrors','object','106292JtPBOy','vDfGj','ODOnl'];_0x2f04=function(){return _0x345e04;};return _0x2f04();}function findEnvInRoot(_0x101ebc,_0x5c9513){const _0x352662=_0x289a,_0x38dd24={'xwFIt':'local','NIShp':function(_0x47b724,_0x2707d6,_0xf29dd0){return _0x47b724(_0x2707d6,_0xf29dd0);},'XgvQI':function(_0x1f9851,_0x558652){return _0x1f9851(_0x558652);},'DtZaw':function(_0x29ce47,_0x33ca30){return _0x29ce47(_0x33ca30);},'mBeNK':function(_0xaac68b,_0x57fc07){return _0xaac68b!==_0x57fc07;}},_0x5d9395=join(_0x5c9513,'ci',_0x101ebc),_0x1c065d=join(_0x5c9513,_0x38dd24[_0x352662(0x1fa)],_0x101ebc),_0x23588f=join(_0x5c9513,_0x101ebc),_0x240af8=join(_0x5c9513,_0x38dd24['xwFIt']),_0x29b0d5=_0x38dd24['NIShp'](join,_0x5c9513,'ci');if(_0x38dd24[_0x352662(0x21f)](existsSync,_0x5d9395))return _0x5d9395;if(existsSync(_0x1c065d))return _0x1c065d;if(_0x38dd24[_0x352662(0x204)](existsSync,_0x23588f)&&(_0x38dd24[_0x352662(0x1b1)](_0x23588f,_0x240af8)&&_0x23588f!==_0x29b0d5?!![]:hasLegacyProfileFiles(_0x23588f)))return _0x23588f;return null;}export function getEnvDir(_0x5dd19e,_0x474c4b={}){const _0x2a8846=_0x289a,_0x378ec4={'JZfWM':function(_0x483e34){return _0x483e34();},'eitiL':function(_0x332130,_0x535abc,_0x1615fe){return _0x332130(_0x535abc,_0x1615fe);},'KmsZH':function(_0x1af729,_0x48a1ab){return _0x1af729(_0x48a1ab);},'OHtRQ':function(_0x3c4039,_0x309783,_0x45f71c){return _0x3c4039(_0x309783,_0x45f71c);},'fwfmi':function(_0x147c4a,_0x5ca595){return _0x147c4a!==_0x5ca595;},'ZVvro':function(_0x5b8d79,_0x5495a3){return _0x5b8d79(_0x5495a3);},'DFMjm':function(_0x3eb4c5,_0x445f58,_0x22045d){return _0x3eb4c5(_0x445f58,_0x22045d);},'UmZTH':function(_0x381563,_0x5b875d,_0x35a417,_0x427d89){return _0x381563(_0x5b875d,_0x35a417,_0x427d89);},'yMXOA':'local'},_0x5b97bf=_0x378ec4[_0x2a8846(0x1eb)](getRangerDir),_0x374c09=_0x378ec4[_0x2a8846(0x208)](findEnvInRoot,_0x5dd19e,_0x5b97bf);if(_0x374c09){if(_0x474c4b['forWrite']&&_0x378ec4['KmsZH'](isLegacyEnvPath,_0x374c09))throw _0x378ec4['OHtRQ'](legacyWriteError,_0x5dd19e,_0x374c09);return _0x374c09;}const _0x16dcb8=_0x378ec4['JZfWM'](getRangerHomeDir);if(_0x378ec4[_0x2a8846(0x1ac)](_0x16dcb8,_0x5b97bf)){const _0x47d4d6=_0x378ec4['eitiL'](findEnvInRoot,_0x5dd19e,_0x16dcb8);if(_0x47d4d6){if(_0x474c4b[_0x2a8846(0x1ea)]&&_0x378ec4['ZVvro'](isLegacyEnvPath,_0x47d4d6))throw _0x378ec4['DFMjm'](legacyWriteError,_0x5dd19e,_0x47d4d6);return _0x47d4d6;}}const _0x2726f6=_0x378ec4[_0x2a8846(0x1db)](join,_0x16dcb8,_0x378ec4['yMXOA'],_0x5dd19e);if(_0x474c4b[_0x2a8846(0x1ea)])throw legacyWriteError(_0x5dd19e,_0x2726f6);return _0x2726f6;}function isLegacyEnvPath(_0x3dd36f){const _0x45c81c={'XYedy':function(_0x16f876){return _0x16f876();}},_0x6953fc=getRangerDir(),_0x2ca706=_0x45c81c['XYedy'](getRangerHomeDir);for(const _0x2f0698 of new Set([_0x6953fc,_0x2ca706])){const _0x4659e8=_0x2f0698['endsWith']('/')?_0x2f0698:_0x2f0698+'/';if(_0x3dd36f===_0x2f0698||_0x3dd36f['startsWith'](_0x4659e8))return!![];}return![];}function legacyWriteError(_0x4dbc5a,_0x1fc43d){const _0x32ab01=_0x289a,_0x3e85ba={'BKhaG':function(_0x120cc7,_0x4fb99b){return _0x120cc7+_0x4fb99b;}};return new Error(_0x3e85ba[_0x32ab01(0x1e6)]('Refusing\x20to\x20write\x20profile\x20\x22'+_0x4dbc5a+'\x22\x20to\x20legacy\x20path\x20'+_0x1fc43d+'.\x0a'+_0x32ab01(0x1d9),'\x20\x20ranger\x20profile\x20add\x20<name>\x0a')+'See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.');}export function findExistingEnv(_0x8a9fa9,_0x2920df){const _0x3ac60a=_0x289a,_0x28f086={'Hnllh':_0x3ac60a(0x1ef),'gfWvo':function(_0x5e9fff,_0x52752c,_0xcac19e){return _0x5e9fff(_0x52752c,_0xcac19e);},'ojvzu':'local','lukyE':function(_0x3d8aa6,_0x3a2dec,_0x2858d8,_0xb9712c){return _0x3d8aa6(_0x3a2dec,_0x2858d8,_0xb9712c);},'eGgbi':function(_0x297786,_0x215840,_0x5bcada,_0x5ddd05){return _0x297786(_0x215840,_0x5bcada,_0x5ddd05);},'kQoUp':function(_0x20f235,_0x2fadc3){return _0x20f235(_0x2fadc3);},'uvMLb':function(_0x4b6150,_0x5a9ae2){return _0x4b6150===_0x5a9ae2;},'JxauN':function(_0x5dcbd0,_0x1601e9){return _0x5dcbd0===_0x1601e9;}},_0x42ef32=_0x2920df?.[_0x3ac60a(0x21b)],_0x25cf81=_0x42ef32?[_0x42ef32]:[getRangerDir(),getRangerHomeDir()]['filter']((_0x71dcce,_0x30baeb,_0x260c07)=>_0x260c07['indexOf'](_0x71dcce)===_0x30baeb),_0x156c75=_0x2920df?.['locations']??['ci','local',_0x28f086[_0x3ac60a(0x1c8)]];for(const _0x1b5e64 of _0x25cf81){const _0x5d277c=_0x28f086['gfWvo'](join,_0x1b5e64,_0x28f086['ojvzu']),_0x304fbf=_0x28f086[_0x3ac60a(0x1a4)](join,_0x1b5e64,'ci'),_0x40ca39=[{'location':'ci','path':_0x28f086['lukyE'](join,_0x1b5e64,'ci',_0x8a9fa9)},{'location':_0x28f086['ojvzu'],'path':_0x28f086['eGgbi'](join,_0x1b5e64,'local',_0x8a9fa9)},{'location':_0x28f086[_0x3ac60a(0x1c8)],'path':_0x28f086['gfWvo'](join,_0x1b5e64,_0x8a9fa9)}];for(const _0x4d0c77 of _0x40ca39){if(_0x156c75[_0x3ac60a(0x1fd)](_0x4d0c77[_0x3ac60a(0x1f8)])&&_0x28f086[_0x3ac60a(0x1c6)](existsSync,_0x4d0c77[_0x3ac60a(0x1c5)])){if(_0x28f086[_0x3ac60a(0x1a3)](_0x4d0c77['location'],'legacy')&&(_0x28f086[_0x3ac60a(0x1a3)](_0x4d0c77[_0x3ac60a(0x1c5)],_0x5d277c)||_0x28f086[_0x3ac60a(0x20a)](_0x4d0c77['path'],_0x304fbf))&&!_0x28f086[_0x3ac60a(0x1c6)](hasLegacyProfileFiles,_0x4d0c77['path']))continue;return{'path':_0x4d0c77[_0x3ac60a(0x1c5)],'location':_0x4d0c77['location']};}}}return null;}function hasLegacyProfileFiles(_0x3990db){const _0x32793a=_0x289a,_0x4a9ca3={'HOuBy':function(_0x54d91b,_0x2470c3){return _0x54d91b(_0x2470c3);},'yZxrx':'settings.json','IXURe':_0x32793a(0x1dd),'mtGRy':function(_0x39145a,_0x3c31d2,_0x2fcb70){return _0x39145a(_0x3c31d2,_0x2fcb70);},'pQIio':'auth.json.enc'};return _0x4a9ca3['HOuBy'](existsSync,join(_0x3990db,_0x4a9ca3[_0x32793a(0x1e8)]))||existsSync(join(_0x3990db,_0x4a9ca3['IXURe']))||existsSync(_0x4a9ca3['mtGRy'](join,_0x3990db,_0x4a9ca3[_0x32793a(0x212)]));}export function isEnvCi(_0x112a14){const _0x2f442f=_0x289a,_0x1e8923={'pdbUi':function(_0x13baf8,_0x226bdc,_0x20301c,_0x5753e6){return _0x13baf8(_0x226bdc,_0x20301c,_0x5753e6);},'HPWuZ':function(_0x108dd1){return _0x108dd1();},'GNwfU':function(_0x5e12d4){return _0x5e12d4();},'rRJyK':function(_0x9e9030,_0x258e87){return _0x9e9030(_0x258e87);}};if(existsSync(_0x1e8923[_0x2f442f(0x1b0)](join,_0x1e8923['HPWuZ'](getRangerDir),'ci',_0x112a14)))return!![];const _0x45f655=_0x1e8923[_0x2f442f(0x1b4)](getRangerHomeDir);if(_0x45f655!==_0x1e8923[_0x2f442f(0x1b3)](getRangerDir)&&_0x1e8923[_0x2f442f(0x1d1)](existsSync,_0x1e8923['pdbUi'](join,_0x45f655,'ci',_0x112a14)))return!![];return![];}export async function cleanupTempFiles(_0x170d08){const _0xf03c09=_0x289a,_0x5a5406={'etpXd':'ENOENT'},_0x2ace40=[_0x170d08['tempAuthPath'],_0x170d08[_0xf03c09(0x1f9)]]['filter'](Boolean);await Promise['all'](_0x2ace40['map'](_0xb5524d=>unlink(_0xb5524d)['catch'](_0x137899=>{const _0x58f5a6=_0xf03c09;_0x137899[_0x58f5a6(0x205)]!==_0x5a5406['etpXd']&&console[_0x58f5a6(0x1de)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0xb5524d+':',_0x137899[_0x58f5a6(0x20b)]);})));}export function getSettingsPath(_0x13b8a3){const _0x2c7e6b=_0x289a,_0x40c659={'ALqqM':function(_0x55bff3,_0x160f7c,_0x448e95){return _0x55bff3(_0x160f7c,_0x448e95);},'zntfG':function(_0x1489c6,_0xff6b3c){return _0x1489c6(_0xff6b3c);},'pRjXo':_0x2c7e6b(0x221)};return _0x40c659[_0x2c7e6b(0x1b7)](join,_0x40c659[_0x2c7e6b(0x1be)](getEnvDir,_0x13b8a3),_0x40c659['pRjXo']);}export async function loadSettings(_0x22804d){const _0x42b3b0=_0x289a,_0x126303={'tctFH':function(_0x1f626b,_0x9f1773){return _0x1f626b(_0x9f1773);},'jbQNT':'utf-8'},_0x1a10dd=_0x126303['tctFH'](getSettingsPath,_0x22804d);if(!existsSync(_0x1a10dd))return{};try{const _0x2ce6e0=await readFile(_0x1a10dd,_0x126303[_0x42b3b0(0x1a6)]);return JSON[_0x42b3b0(0x1b6)](_0x2ce6e0);}catch{return{};}}export async function saveSettings(_0x3ac1cb,_0x80fd89){const _0xade634=_0x289a,_0xda342f={'hefOg':function(_0x1161eb,_0x5e87b6){return _0x1161eb(_0x5e87b6);},'VPjmX':function(_0x1fe397,_0x422a26){return _0x1fe397(_0x422a26);}},_0x5d9b11=getSettingsPath(_0x3ac1cb),_0x53e816=_0xda342f['hefOg'](dirname,_0x5d9b11);!_0xda342f[_0xade634(0x1ab)](existsSync,_0x53e816)&&await mkdir(_0x53e816,{'recursive':!![]}),await writeFile(_0x5d9b11,JSON['stringify'](_0x80fd89,null,0x2));}export function resolveEnvVars(_0x4e911e){const _0x35cb83=_0x289a,_0x2f529d={'MLHNy':function(_0x45ef8b,_0x3a5cb5){return _0x45ef8b===_0x3a5cb5;},'zPjfc':_0x35cb83(0x20f),'cQoCp':_0x35cb83(0x1cd)};if(_0x2f529d[_0x35cb83(0x1f1)](typeof _0x4e911e,_0x2f529d['zPjfc']))return _0x4e911e[_0x35cb83(0x1e4)](/\$\{(\w+)\}/g,(_0x2db46a,_0xc2e4fc)=>{const _0x4cd000=_0x35cb83,_0x104ba3=process[_0x4cd000(0x211)][_0xc2e4fc];if(_0x2f529d[_0x4cd000(0x1f1)](_0x104ba3,undefined))throw new Error(_0x4cd000(0x1a5)+_0xc2e4fc+'\x20is\x20not\x20set');return _0x104ba3;});if(Array[_0x35cb83(0x1cb)](_0x4e911e))return _0x4e911e['map'](resolveEnvVars);if(_0x4e911e&&typeof _0x4e911e===_0x2f529d['cQoCp'])return Object[_0x35cb83(0x1f4)](Object[_0x35cb83(0x1aa)](_0x4e911e)[_0x35cb83(0x1bc)](([_0x4e637a,_0x40a613])=>[_0x4e637a,resolveEnvVars(_0x40a613)]));return _0x4e911e;}const isRecord=_0x4c49fd=>typeof _0x4c49fd===_0x34632f(0x1cd)&&_0x4c49fd!==null&&!Array[_0x34632f(0x1cb)](_0x4c49fd),asRecord=_0x11bf88=>isRecord(_0x11bf88)?_0x11bf88:undefined,mergeHeaders=(_0x41dc79,_0x45c474)=>{const _0x15dd33=_0x34632f,_0x4cac31={'KAQpL':function(_0x3bce8c,_0x3b89e8){return _0x3bce8c??_0x3b89e8;}},_0xb72bb2={..._0x4cac31['KAQpL'](_0x41dc79,{}),..._0x4cac31['KAQpL'](_0x45c474,{})};return Object['keys'](_0xb72bb2)[_0x15dd33(0x220)]?_0xb72bb2:undefined;},SAFE_MODE_ARGS=[_0x34632f(0x1ad)],ALLOW_LOCALHOST_ARGS=[_0x34632f(0x1e5),'--allow-running-insecure-content',_0x34632f(0x1fc),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x2fb29c,_0x82a2df={}){const _0x4ef969=_0x34632f,_0x5524ba={'wiRWw':function(_0x410c70,_0x260ce5){return _0x410c70(_0x260ce5);},'JUcnq':function(_0x448942,_0x11bade){return _0x448942===_0x11bade;},'MnSnS':'string','ECACs':function(_0x137fb4,_0x5aaca8,_0x2f9619){return _0x137fb4(_0x5aaca8,_0x2f9619);}},_0x4cae35=asRecord(_0x2fb29c[_0x4ef969(0x217)]),_0xe9d586={..._0x5524ba['wiRWw'](asRecord,_0x4cae35?.[_0x4ef969(0x1c7)])??{}};_0x5524ba['JUcnq'](typeof _0x82a2df['headless'],_0x4ef969(0x1d8))&&(_0xe9d586[_0x4ef969(0x1e2)]=_0x82a2df['headless']);if(_0x2fb29c[_0x4ef969(0x1af)]){const _0x7f41b8=_0xe9d586['args']??[],_0x25cf99=SAFE_MODE_ARGS[_0x4ef969(0x209)](_0x525119=>!_0x7f41b8[_0x4ef969(0x1fd)](_0x525119));_0xe9d586['args']=[..._0x7f41b8,..._0x25cf99];}if(_0x2fb29c['allowInsecureLocalhost']){const _0x36e112=_0xe9d586['args']??[],_0x3354df=ALLOW_LOCALHOST_ARGS[_0x4ef969(0x209)](_0x5d04dc=>!_0x36e112[_0x4ef969(0x1fd)](_0x5d04dc));_0xe9d586['args']=[..._0x36e112,..._0x3354df];}const _0xa28ebe={...asRecord(_0x4cae35?.['contextOptions'])??{}};_0xa28ebe[_0x4ef969(0x1cc)]=!![];typeof _0x2fb29c['userAgent']===_0x5524ba['MnSnS']&&(_0xa28ebe['userAgent']=_0x2fb29c['userAgent']);const _0x17d3ee=_0x5524ba[_0x4ef969(0x214)](mergeHeaders,asRecord(_0xa28ebe[_0x4ef969(0x1d2)]),_0x5524ba[_0x4ef969(0x21e)](asRecord,_0x2fb29c['headers']));return _0x17d3ee?_0xa28ebe['extraHTTPHeaders']=_0x17d3ee:delete _0xa28ebe[_0x4ef969(0x1d2)],_0x82a2df[_0x4ef969(0x21d)]&&(_0xa28ebe[_0x4ef969(0x21c)]=_0x82a2df['storageStatePath']),{'launchOptions':_0xe9d586,'contextOptions':_0xa28ebe};}export async function resolveProfileStorageState(_0x4b47af){const _0x37d50f={'KOLfU':function(_0x8a009,_0xfe664e){return _0x8a009(_0xfe664e);}};return _0x37d50f['KOLfU'](resolveLocalAuthPath,getEnvDir(_0x4b47af));}async function resolveLocalAuthPath(_0x32f936){const _0x5da6fc=_0x34632f,_0x431960={'sXwZo':_0x5da6fc(0x1dd),'VPgSj':function(_0x391eff,_0x219ea2){return _0x391eff(_0x219ea2);},'TtfmZ':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','vzXFg':function(_0x38b680,_0x407bb0,_0x16baa2){return _0x38b680(_0x407bb0,_0x16baa2);},'lmWdx':function(_0x364df2,_0x218149){return _0x364df2(_0x218149);}},_0x277fd0=join(_0x32f936,_0x5da6fc(0x1da)),_0x1f50e3=join(_0x32f936,_0x431960[_0x5da6fc(0x1c4)]);if(_0x431960['VPgSj'](existsSync,_0x277fd0))try{const _0x102c3e=await getToken();if(!_0x102c3e)throw new Error(_0x431960['TtfmZ']);const _0x157a09=await _0x431960['VPgSj'](readFile,_0x277fd0),_0x5280b8=decrypt(_0x157a09,_0x102c3e),_0x26fc55=_0x431960['vzXFg'](join,tmpdir(),'ranger-auth-'+Date[_0x5da6fc(0x1b9)]()+'.json');return await _0x431960['vzXFg'](writeFile,_0x26fc55,_0x5280b8),{'storageStatePath':_0x26fc55,'tempAuthPath':_0x26fc55};}catch(_0x264144){const _0x167978=_0x264144 instanceof Error?_0x264144[_0x5da6fc(0x20b)]:String(_0x264144);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x167978);}if(_0x431960['lmWdx'](existsSync,_0x1f50e3))return{'storageStatePath':_0x1f50e3};return{};}export async function buildPlaywrightConfig(_0x2ceb9c,_0x308ebf,_0x33c659,_0x1b41ea,_0x2ca481){const _0x2eda33=_0x34632f,_0x5c5719={'GhLPL':function(_0x523110,_0x55c27b){return _0x523110(_0x55c27b);},'BImJD':function(_0x5dd028,_0x2a5bf4,_0x3a2159,_0x419dd0,_0xf3586f,_0x53f764,_0x4d48ed){return _0x5dd028(_0x2a5bf4,_0x3a2159,_0x419dd0,_0xf3586f,_0x53f764,_0x4d48ed);},'yIZcG':_0x2eda33(0x1f7)};if(_0x2ca481)return buildPlaywrightConfigCore(_0x2ceb9c,_0x2ca481,_0x308ebf,_0x33c659,_0x1b41ea,_0x2eda33(0x1f7));const {storageStatePath:_0x1ae2fc,tempAuthPath:_0x30c640}=await resolveLocalAuthPath(_0x5c5719[_0x2eda33(0x1ff)](getEnvDir,_0x308ebf));try{const _0x222780=await _0x5c5719[_0x2eda33(0x216)](buildPlaywrightConfigCore,_0x2ceb9c,_0x1ae2fc,_0x308ebf,_0x33c659,_0x1b41ea,_0x5c5719['yIZcG']);return{..._0x222780,'tempAuthPath':_0x30c640};}catch(_0xb109f3){_0x30c640&&await _0x5c5719[_0x2eda33(0x1ff)](unlink,_0x30c640)[_0x2eda33(0x1d4)](()=>{});throw _0xb109f3;}}export async function buildPlaywrightConfigCore(_0xe64964,_0x525fb2,_0x307416,_0x3e0292,_0xdde83b,_0x3a6b71='stagehand'){const _0x401662=_0x34632f,_0x2e810c={'CEHQb':function(_0x3d8207,_0x42c9be){return _0x3d8207===_0x42c9be;},'WebdJ':'--no-sandbox','wQpXm':_0x401662(0x1f0),'yCuHr':'clipboard-read','sXJst':_0x401662(0x1fb),'vYIvx':function(_0xfd6ad0,_0x7fe29f,_0xe03882,_0x5d2e2a){return _0xfd6ad0(_0x7fe29f,_0xe03882,_0x5d2e2a);},'vDfGj':function(_0x18a332){return _0x18a332();},'zVeHJ':'sessions','RBdPf':function(_0x4ba87d,_0x46b3e5){return _0x4ba87d(_0x46b3e5);},'RABjo':function(_0x57c581,_0x124962){return _0x57c581===_0x124962;},'Crtes':_0x401662(0x1e7),'AiDjD':_0x401662(0x1ee),'REvoo':_0x401662(0x21a),'zssFq':'pdf','qPPee':'allow','fnKLi':function(_0x1fdf34,_0x3d8caf,_0x5bb950){return _0x1fdf34(_0x3d8caf,_0x5bb950);},'cBVsf':_0x401662(0x1c1),'nlBof':function(_0xe26ba8,_0x4a0f27){return _0xe26ba8(_0x4a0f27);},'LeGtP':function(_0x8babf,_0x56ec71){return _0x8babf===_0x56ec71;},'aXPhS':'-cli','ODOnl':function(_0x448e43,_0x59c0c0,_0x192a79){return _0x448e43(_0x59c0c0,_0x192a79);},'YWQJj':function(_0x31ccb8,_0x1d509e,_0x2aa15c){return _0x31ccb8(_0x1d509e,_0x2aa15c);}},_0x82e74b=_0x3e0292||randomUUID(),_0x172f4b=_0x2e810c[_0x401662(0x1ca)](join,_0x2e810c[_0x401662(0x1cf)](getRangerDir),_0x2e810c[_0x401662(0x215)],_0x82e74b),_0x308424=_0x2e810c['RBdPf'](Boolean,_0xe64964['cdpEndpoint']),_0x1682b1=_0x308424?{'browserName':_0x2e810c[_0x401662(0x20e)],'cdpEndpoint':_0xe64964[_0x401662(0x218)]}:((()=>{const _0x2a7071=_0x401662,{launchOptions:_0x537d8d,contextOptions:_0x4a2b59}=buildBrowserOptionsFromSettings(_0xe64964,{'headless':_0xdde83b?![]:_0xe64964[_0x2a7071(0x1e2)]??!![],'storageStatePath':_0x525fb2});if(_0x2e810c['CEHQb'](process[_0x2a7071(0x1ec)]?.(),0x0)){const _0x2aeec1=[_0x2e810c['WebdJ'],'--disable-setuid-sandbox'],_0x3ffa1f=_0x537d8d['args']??[],_0x23fe47=_0x2aeec1[_0x2a7071(0x209)](_0x5834cf=>!_0x3ffa1f[_0x2a7071(0x1fd)](_0x5834cf));_0x537d8d[_0x2a7071(0x1bf)]=[..._0x3ffa1f,..._0x23fe47];}return{'isolated':!![],'browserName':_0x2e810c['wQpXm'],'launchOptions':_0x537d8d,'contextOptions':{..._0x4a2b59,'permissions':[_0x2e810c['yCuHr'],_0x2e810c[_0x2a7071(0x1a9)]],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x8158aa=_0x2e810c['RABjo'](_0x3a6b71,_0x2e810c[_0x401662(0x201)])?{'browser':_0x1682b1,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x172f4b,'outputMode':'file','codegen':_0x401662(0x1e1)}:{'name':_0x307416,'browser':_0x1682b1,'capabilities':[_0x2e810c['AiDjD'],_0x401662(0x1bd),_0x2e810c[_0x401662(0x1ba)],_0x2e810c['zssFq'],'vision'],'imageResponses':_0x2e810c[_0x401662(0x202)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x172f4b};if(!_0x308424){const _0x2fad4f=_0x8158aa[_0x401662(0x217)],_0x30a116=_0x2fad4f['contextOptions'];if(_0x2e810c['CEHQb'](_0x30a116[_0x401662(0x20c)],undefined))delete _0x30a116['userAgent'];if(_0x30a116['storageState']===undefined)delete _0x30a116[_0x401662(0x21c)];}const _0x5be462=_0x2e810c['fnKLi'](join,tmpdir(),_0x2e810c[_0x401662(0x207)]);!_0x2e810c[_0x401662(0x20d)](existsSync,_0x5be462)&&await mkdir(_0x5be462,{'recursive':!![]});const _0x332226=_0x2e810c[_0x401662(0x1f2)](_0x3a6b71,_0x401662(0x1e7))?_0x2e810c[_0x401662(0x1e9)]:'',_0x5e57a3=_0x2e810c[_0x401662(0x1d0)](join,_0x5be462,_0x307416+'-'+Date[_0x401662(0x1b9)]()+_0x332226+'.json');return await _0x2e810c['YWQJj'](writeFile,_0x5e57a3,JSON['stringify'](_0x8158aa,null,0x2)),{'configPath':_0x5e57a3,'storageStatePath':_0x525fb2};}export async function buildPlaywrightCliConfig(_0x41d66c,_0x3fb49b,_0x1a2e67,_0x4986c1,_0xf2b8cf){const _0x334189=_0x34632f,_0x4d7c9b={'LQQfz':function(_0x5ca09d,_0x164420){return _0x5ca09d(_0x164420);}};if(_0xf2b8cf)return buildPlaywrightConfigCore(_0x41d66c,_0xf2b8cf,_0x3fb49b,_0x1a2e67,_0x4986c1,_0x334189(0x1e7));const {storageStatePath:_0x8171d4,tempAuthPath:_0x107bb4}=await resolveLocalAuthPath(getEnvDir(_0x3fb49b));try{const _0xb83700=await buildPlaywrightConfigCore(_0x41d66c,_0x8171d4,_0x3fb49b,_0x1a2e67,_0x4986c1,'playwright-cli');return{..._0xb83700,'tempAuthPath':_0x107bb4};}catch(_0x26e908){_0x107bb4&&await _0x4d7c9b['LQQfz'](unlink,_0x107bb4)['catch'](()=>{});throw _0x26e908;}}export async function buildNovaActCliConfig(_0x42fd80,_0x5ae1c6,_0x18f5fb,_0x438801,_0x1a85da){const _0x48a14a=_0x34632f,_0x521e74={'uDLwO':function(_0x192aac,_0x16b079){return _0x192aac(_0x16b079);},'KqsUs':function(_0x2ee752){return _0x2ee752();},'LFbgg':_0x48a14a(0x1d6),'ROaEj':function(_0x582022,_0x18b6bc,_0x264e41){return _0x582022(_0x18b6bc,_0x264e41);},'VetLr':_0x48a14a(0x1c2),'vGvxf':function(_0x2945c1,_0x24ab9b,_0x4c2a2b){return _0x2945c1(_0x24ab9b,_0x4c2a2b);},'Cotve':function(_0x52e9cb,_0x13122e){return _0x52e9cb===_0x13122e;},'mbuoX':function(_0x2729aa,_0x3694d4){return _0x2729aa(_0x3694d4);}},{storageStatePath:_0x409b0b,tempAuthPath:_0x5eb241}=_0x1a85da?{'storageStatePath':_0x1a85da,'tempAuthPath':undefined}:await _0x521e74['uDLwO'](resolveLocalAuthPath,getEnvDir(_0x5ae1c6)),_0x6a67be=_0x18f5fb||randomUUID(),_0x4d8b5f=join(_0x521e74['KqsUs'](getRangerDir),_0x521e74[_0x48a14a(0x1a8)],_0x6a67be),_0x4b3a4c=_0x521e74['ROaEj'](join,_0x4d8b5f,_0x521e74[_0x48a14a(0x1b5)]),_0x4ea63c=_0x409b0b?_0x521e74['ROaEj'](join,_0x4b3a4c,_0x48a14a(0x1df)):undefined,{launchOptions:_0xdde62b,contextOptions:_0x15a18f}=_0x521e74['vGvxf'](buildBrowserOptionsFromSettings,_0x42fd80,{'headless':_0x438801?![]:_0x42fd80['headless']??!![],'storageStatePath':_0x409b0b});if(_0x521e74['Cotve'](process['getuid']?.(),0x0)){const _0x474c5e=['--no-sandbox',_0x48a14a(0x1d5)],_0x45aed6=_0xdde62b['args']??[],_0x299a9e=_0x474c5e[_0x48a14a(0x209)](_0x85ddd7=>!_0x45aed6[_0x48a14a(0x1fd)](_0x85ddd7));_0xdde62b['args']=[..._0x45aed6,..._0x299a9e];}const _0x42f18e=_0x521e74['Cotve'](typeof _0xdde62b[_0x48a14a(0x1fe)],_0x48a14a(0x20f))?_0xdde62b[_0x48a14a(0x1fe)]:_0x409b0b?chromium[_0x48a14a(0x1fe)]():undefined;return{'storageStatePath':_0x409b0b,'tempAuthPath':_0x5eb241,'baseUrl':_0x42fd80[_0x48a14a(0x1ed)],'headless':Boolean(_0xdde62b['headless']),'userDataDir':_0x4b3a4c,'browserProfilePath':_0x4ea63c,'executablePath':_0x42f18e,'launchArgs':Array[_0x48a14a(0x1cb)](_0xdde62b[_0x48a14a(0x1bf)])?_0xdde62b['args'][_0x48a14a(0x209)](_0x596cac=>typeof _0x596cac===_0x48a14a(0x20f)):[],'userAgent':_0x521e74['Cotve'](typeof _0x15a18f[_0x48a14a(0x20c)],_0x48a14a(0x20f))?_0x15a18f[_0x48a14a(0x20c)]:undefined,'extraHTTPHeaders':_0x15a18f['extraHTTPHeaders'],'allowInsecureLocalhost':Boolean(_0x42fd80['allowInsecureLocalhost']),'safeMode':Boolean(_0x42fd80[_0x48a14a(0x1af)]),'cdpEndpoint':_0x42fd80[_0x48a14a(0x218)],'isCdpMode':_0x521e74['mbuoX'](Boolean,_0x42fd80[_0x48a14a(0x218)])};}export function getNestedValue(_0xfe16d3,_0x387c64){const _0x1fdfd2={'xhUYn':function(_0x15ff1f,_0x28bb1a){return _0x15ff1f===_0x28bb1a;},'kIupK':function(_0x18155b,_0x110d76){return _0x18155b!==_0x110d76;}},_0x5a6c92=parseKeyPath(_0x387c64);let _0x416d50=_0xfe16d3;for(const _0x116d63 of _0x5a6c92){if(_0x416d50===null||_0x1fdfd2['xhUYn'](_0x416d50,undefined)||_0x1fdfd2['kIupK'](typeof _0x416d50,'object'))return undefined;_0x416d50=_0x416d50[_0x116d63];}return _0x416d50;}export function setNestedValue(_0x540045,_0x2d9fb3,_0x5ad80a){const _0x543cd0=_0x34632f,_0x241f7c={'HeTSH':function(_0x46c129,_0x31c834){return _0x46c129(_0x31c834);},'RFkod':function(_0x223e3f,_0x78d847){return _0x223e3f<_0x78d847;},'ZxIaF':function(_0x289652,_0x5d45a4){return _0x289652-_0x5d45a4;},'QjUyF':'object'},_0x4a2e92=_0x241f7c['HeTSH'](parseKeyPath,_0x2d9fb3);let _0x4a2f63=_0x540045;for(let _0xe346fc=0x0;_0x241f7c[_0x543cd0(0x1b2)](_0xe346fc,_0x241f7c[_0x543cd0(0x1d7)](_0x4a2e92[_0x543cd0(0x220)],0x1));_0xe346fc++){const _0x18a8f5=_0x4a2e92[_0xe346fc];(!(_0x18a8f5 in _0x4a2f63)||typeof _0x4a2f63[_0x18a8f5]!==_0x241f7c[_0x543cd0(0x1ae)])&&(_0x4a2f63[_0x18a8f5]={}),_0x4a2f63=_0x4a2f63[_0x18a8f5];}_0x4a2f63[_0x4a2e92[_0x4a2e92[_0x543cd0(0x220)]-0x1]]=_0x5ad80a;}export function deleteNestedValue(_0x5f351d,_0x3123e9){const _0x373475=_0x34632f,_0x435e32={'lbuBH':function(_0x23ed2f,_0x394799){return _0x23ed2f<_0x394799;},'onAWN':function(_0x477c48,_0x1daf16){return _0x477c48===_0x1daf16;},'EEion':function(_0x31aafb,_0x621ca3){return _0x31aafb!==_0x621ca3;},'BikmM':function(_0x3164b3,_0x5af8ef){return _0x3164b3===_0x5af8ef;},'Lbwrm':function(_0x4bd545,_0x2c3c16){return _0x4bd545-_0x2c3c16;},'WrRWA':function(_0x103865,_0x2b8150){return _0x103865 in _0x2b8150;}},_0x5a1fb4=parseKeyPath(_0x3123e9);let _0x227c2e=_0x5f351d;for(let _0x443492=0x0;_0x435e32[_0x373475(0x219)](_0x443492,_0x5a1fb4['length']-0x1);_0x443492++){if(_0x435e32[_0x373475(0x203)](_0x227c2e,null)||_0x227c2e===undefined||_0x435e32[_0x373475(0x1c9)](typeof _0x227c2e,'object'))return![];_0x227c2e=_0x227c2e[_0x5a1fb4[_0x443492]];}if(_0x227c2e===null||_0x435e32['BikmM'](_0x227c2e,undefined)||typeof _0x227c2e!==_0x373475(0x1cd))return![];const _0x54820a=_0x5a1fb4[_0x435e32['Lbwrm'](_0x5a1fb4['length'],0x1)];if(_0x435e32['WrRWA'](_0x54820a,_0x227c2e))return delete _0x227c2e[_0x54820a],!![];return![];}function parseKeyPath(_0xfd792e){const _0x235a9f=_0x34632f,_0x50da82={'PEvUc':function(_0x24b059,_0x15f2c2){return _0x24b059===_0x15f2c2;},'xMbHw':'headers','kixUc':_0x235a9f(0x1f3)},_0x30e4b0=_0xfd792e['split']('.');return _0x50da82[_0x235a9f(0x1f5)](_0x30e4b0[0x0],_0x235a9f(0x1dc))&&(_0x30e4b0[0x0]=_0x50da82[_0x235a9f(0x1c3)]),_0x30e4b0[0x0]==='setupHeader'&&(_0x30e4b0[0x0]=_0x50da82['kixUc']),_0x30e4b0;}export function formatSettings(_0x4c9d6b,_0x28bb01=0x0){const _0x2c49e8=_0x34632f,_0x309554={'SxvTJ':function(_0x126650,_0x43daf3){return _0x126650===_0x43daf3;}},_0x372bf0=[],_0xb7ed9b='\x20\x20'['repeat'](_0x28bb01);for(const [_0x5c6a64,_0x4046f0]of Object['entries'](_0x4c9d6b)){if(_0x4046f0===undefined)continue;if(_0x309554['SxvTJ'](typeof _0x4046f0,_0x2c49e8(0x1cd))&&_0x4046f0!==null){_0x372bf0[_0x2c49e8(0x1f6)](''+_0xb7ed9b+_0x5c6a64+':');for(const [_0x289047,_0x2296ff]of Object['entries'](_0x4046f0)){_0x372bf0['push'](_0xb7ed9b+'\x20\x20'+_0x289047+':\x20'+_0x2296ff);}}else _0x372bf0[_0x2c49e8(0x1f6)](''+_0xb7ed9b+_0x5c6a64+':\x20'+_0x4046f0);}return _0x372bf0['join']('\x0a');}
@@ -1 +1 @@
1
- (function(_0x4e83e8,_0x1bf68a){const _0x2648ff=_0x3fa4,_0x46a6b2=_0x4e83e8();while(!![]){try{const _0x4a14f6=parseInt(_0x2648ff(0x1eb))/0x1+-parseInt(_0x2648ff(0x1de))/0x2+-parseInt(_0x2648ff(0x1e8))/0x3+parseInt(_0x2648ff(0x1e0))/0x4*(parseInt(_0x2648ff(0x1ea))/0x5)+-parseInt(_0x2648ff(0x1e9))/0x6*(parseInt(_0x2648ff(0x1e5))/0x7)+-parseInt(_0x2648ff(0x1dd))/0x8*(-parseInt(_0x2648ff(0x1e7))/0x9)+-parseInt(_0x2648ff(0x1e4))/0xa*(-parseInt(_0x2648ff(0x1dc))/0xb);if(_0x4a14f6===_0x1bf68a)break;else _0x46a6b2['push'](_0x46a6b2['shift']());}catch(_0x475949){_0x46a6b2['push'](_0x46a6b2['shift']());}}}(_0x42c3,0x36444));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';function _0x3fa4(_0x4a9bea,_0x48c945){_0x4a9bea=_0x4a9bea-0x1db;const _0x42c386=_0x42c3();let _0x3fa4c9=_0x42c386[_0x4a9bea];return _0x3fa4c9;}function _0x42c3(){const _0x12c52b=['vQoEj','11uwYWrk','8gWtPPW','395624zQQLRQ','utf-8','21572sBxmnx','gjXcj','ksxbW','skills','2015810JNsVvF','293825fUGDdR','WSFIS','2679444KiXUmb','117546gDYwaG','60qLqxTy','40MGYnCe','336579xyiDJh'];_0x42c3=function(){return _0x12c52b;};return _0x42c3();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x3c09ee){const _0x4581=_0x3fa4,_0x2fe973={'ksxbW':function(_0x4e3fcc,_0x1d25c1,_0x3c76f1){return _0x4e3fcc(_0x1d25c1,_0x3c76f1);},'gjXcj':_0x4581(0x1df)},_0x817333=join(__dirname,'..','..',_0x4581(0x1e3)),_0xfa3f76=join(_0x817333,_0x3c09ee);try{return _0x2fe973[_0x4581(0x1e2)](readFileSync,_0xfa3f76,_0x2fe973[_0x4581(0x1e1)]);}catch{return'';}}export function getRangerSkillContent(){const _0x32e2d0=_0x3fa4,_0x180e76={'WSFIS':function(_0x8c3d9c,_0x186855){return _0x8c3d9c(_0x186855);},'vQoEj':'ranger/SKILL.md'};return _0x180e76[_0x32e2d0(0x1e6)](readSkillContent,_0x180e76[_0x32e2d0(0x1db)]);}
1
+ (function(_0x113897,_0x46e2e2){const _0x3015a8=_0x5f3e,_0x31a598=_0x113897();while(!![]){try{const _0x2048c9=parseInt(_0x3015a8(0xde))/0x1*(-parseInt(_0x3015a8(0xd7))/0x2)+parseInt(_0x3015a8(0xd9))/0x3*(-parseInt(_0x3015a8(0xd8))/0x4)+-parseInt(_0x3015a8(0xdc))/0x5+parseInt(_0x3015a8(0xdb))/0x6+parseInt(_0x3015a8(0xd4))/0x7*(parseInt(_0x3015a8(0xdd))/0x8)+-parseInt(_0x3015a8(0xdf))/0x9*(-parseInt(_0x3015a8(0xda))/0xa)+parseInt(_0x3015a8(0xd6))/0xb;if(_0x2048c9===_0x46e2e2)break;else _0x31a598['push'](_0x31a598['shift']());}catch(_0x331fc9){_0x31a598['push'](_0x31a598['shift']());}}}(_0xb86f,0x9ed35));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x3ab2c9){const _0xe41821=_0x5f3e,_0x474245=join(__dirname,'..','..','skills'),_0xb15154=join(_0x474245,_0x3ab2c9);try{return readFileSync(_0xb15154,_0xe41821(0xe0));}catch{return'';}}function _0xb86f(){const _0xfb7216=['567UiwdFi','utf-8','2336586OZgETI','ranger/SKILL.md','28020245XUrUYJ','6896zExQTn','636TTyqpu','18915QelkBm','5710rLoAcy','561882aISanS','5371375fOBWIu','16RKakHu','179ynpIiT'];_0xb86f=function(){return _0xfb7216;};return _0xb86f();}function _0x5f3e(_0x366c5c,_0x1b80fa){_0x366c5c=_0x366c5c-0xd4;const _0xb86fee=_0xb86f();let _0x5f3e6a=_0xb86fee[_0x366c5c];return _0x5f3e6a;}export function getRangerSkillContent(){const _0xff4109=_0x5f3e;return readSkillContent(_0xff4109(0xd5));}
@@ -1 +1 @@
1
- (function(_0x42c822,_0x3eb9ef){const _0x40354b=_0x1b41,_0x339ab3=_0x42c822();while(!![]){try{const _0x55a557=-parseInt(_0x40354b(0x86))/0x1+-parseInt(_0x40354b(0x7d))/0x2*(parseInt(_0x40354b(0x95))/0x3)+-parseInt(_0x40354b(0x8e))/0x4+parseInt(_0x40354b(0x80))/0x5+-parseInt(_0x40354b(0x81))/0x6+-parseInt(_0x40354b(0x83))/0x7*(parseInt(_0x40354b(0x91))/0x8)+parseInt(_0x40354b(0x8a))/0x9;if(_0x55a557===_0x3eb9ef)break;else _0x339ab3['push'](_0x339ab3['shift']());}catch(_0xa00d65){_0x339ab3['push'](_0x339ab3['shift']());}}}(_0x4861,0xe4cf1));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';function _0x1b41(_0x34ffcc,_0x98b9d2){_0x34ffcc=_0x34ffcc-0x7c;const _0x48616b=_0x4861();let _0x1b4133=_0x48616b[_0x34ffcc];return _0x1b4133;}import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';function _0x4861(){const _0x1f5c76=['length','MSIhb','kclcv','621TqynBE','Invalid\x20skill\x20frontmatter','fSNGS','project','htnRT','warn','gyaFm','match','11346LbUmqw','LGYzH','utf-8','4959600aXiSfx','9173376kudsyr','SKILL.md','35021SpDeoK','piksq','\x20\x20Files:\x20','436475aVXRJH','\x20\x20Location:\x20','\x20\x20Removed\x20deprecated\x20skill:\x20','gzlGS','54065970wSOoBG','.md','log','opencode','5085508lYxAvd','VKbFH','VrfwT','2640esOByV'];_0x4861=function(){return _0x1f5c76;};return _0x4861();}import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=['ranger'];export const DEPRECATED_SKILLS=['e2e-test-recommender','bug-bash','feature-tracker'];export async function installSkill(_0x528384,_0x1706e7={}){const _0x5751f9=_0x1b41,_0x47b7af={'gyaFm':_0x5751f9(0x98),'MSIhb':function(_0x146dde,_0x22b339,_0x23dfa7){return _0x146dde(_0x22b339,_0x23dfa7);},'LGYzH':function(_0x593639,_0x3660ae){return _0x593639(_0x3660ae);},'VrfwT':_0x5751f9(0x82),'NIzBV':function(_0x1dc6d2,_0x30b75e){return _0x1dc6d2===_0x30b75e;},'htnRT':function(_0x184a2b,_0x32551c){return _0x184a2b(_0x32551c);},'kclcv':'utf-8','PwXpM':function(_0x3de36d,_0x251f5a,_0x19e849){return _0x3de36d(_0x251f5a,_0x19e849);},'fSNGS':function(_0xad8677,_0x681003,_0x1a9a30){return _0xad8677(_0x681003,_0x1a9a30);},'dsBJO':function(_0x59a8e8,_0x235cb5,_0xc80aa5,_0x178916){return _0x59a8e8(_0x235cb5,_0xc80aa5,_0x178916);},'gzlGS':function(_0x4c789d,_0x440c34,_0x310c02,_0x1e58e1){return _0x4c789d(_0x440c34,_0x310c02,_0x1e58e1);}},{level:level=_0x47b7af[_0x5751f9(0x9b)],cliVersion:_0x329300,platform:platform='claude'}=_0x1706e7,_0xfbe26b=getSourceSkillsDir(),_0x153c50=_0x47b7af['MSIhb'](join,_0xfbe26b,_0x528384),_0x150bb1=join(_0xfbe26b,_0x528384+_0x5751f9(0x8b)),_0x385620=existsSync(_0x153c50)&&statSync(_0x153c50)['isDirectory']()&&_0x47b7af[_0x5751f9(0x7e)](existsSync,_0x47b7af[_0x5751f9(0x93)](join,_0x153c50,_0x47b7af[_0x5751f9(0x90)])),_0x213d1e=existsSync(_0x150bb1);if(!_0x385620&&!_0x213d1e)return console[_0x5751f9(0x9a)]('\x20\x20Skill\x20not\x20found:\x20'+_0x528384),![];const _0x12c11c=_0x47b7af['NIzBV'](platform,_0x5751f9(0x8d))?getOpencodeSkillsDir(level):getSkillsDir(level),_0x4f1b8c=_0x47b7af[_0x5751f9(0x93)](join,_0x12c11c,_0x528384);await _0x47b7af['MSIhb'](mkdir,_0x4f1b8c,{'recursive':!![]});let _0x41fc09,_0x44870c=[];if(_0x385620){const _0x4dc956=await _0x47b7af[_0x5751f9(0x99)](readdir,_0x153c50),_0x2efa4c=_0x4dc956['filter'](_0x4a939d=>_0x4a939d['endsWith']('.md'));for(const _0x2627ee of _0x2efa4c){const _0xd281a7=_0x47b7af[_0x5751f9(0x93)](join,_0x153c50,_0x2627ee),_0x24aaa7=_0x47b7af[_0x5751f9(0x93)](join,_0x4f1b8c,_0x2627ee);await copyFile(_0xd281a7,_0x24aaa7),_0x44870c['push'](_0x2627ee);}_0x41fc09=await _0x47b7af[_0x5751f9(0x93)](readFile,join(_0x153c50,_0x5751f9(0x82)),_0x47b7af['kclcv']);}else{_0x41fc09=await _0x47b7af['PwXpM'](readFile,_0x150bb1,_0x47b7af[_0x5751f9(0x94)]);const _0x26f559=_0x47b7af[_0x5751f9(0x97)](join,_0x4f1b8c,_0x5751f9(0x82));await _0x47b7af['dsBJO'](writeFile,_0x26f559,_0x41fc09,_0x5751f9(0x7f)),_0x44870c['push'](_0x5751f9(0x82));}const {name:_0x2b855c}=parseFrontmatter(_0x41fc09);return console[_0x5751f9(0x8c)]('\x20\x20Installed\x20skill:\x20'+_0x2b855c),console['log'](_0x5751f9(0x87)+_0x4f1b8c),_0x44870c[_0x5751f9(0x92)]>0x1&&console['log'](_0x5751f9(0x85)+_0x44870c['join'](',\x20')),_0x47b7af[_0x5751f9(0x89)](logLocalAgentInstallation,_0x528384,{'skillDisplayName':_0x2b855c,'installLevel':level},_0x329300)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x28ac18=_0x1b41,_0x1fd531={'bcyDy':'skills','piksq':function(_0x59a727,_0x37386c,_0x446a87,_0x2c680d,_0x49f01e,_0x1de50c){return _0x59a727(_0x37386c,_0x446a87,_0x2c680d,_0x49f01e,_0x1de50c);}},_0x13d2d1=[join(__dirname,'..','..',_0x1fd531['bcyDy']),_0x1fd531[_0x28ac18(0x84)](join,__dirname,'..','..','..','skills')];for(const _0x24f0d7 of _0x13d2d1){if(existsSync(_0x24f0d7))return _0x24f0d7;}return _0x13d2d1[0x0];}function parseFrontmatter(_0x50b62f){const _0x5369dd=_0x1b41,_0x2fd023={'xljkF':_0x5369dd(0x96)},_0x5e48f1=_0x50b62f['match'](/^---\n([\s\S]+?)\n---/);if(!_0x5e48f1)throw new Error(_0x2fd023['xljkF']);const _0x10942b=_0x5e48f1[0x1],_0x4fd2b3=_0x10942b[_0x5369dd(0x7c)](/name:\s*(.+)/),_0x52b98e=_0x10942b['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0x4fd2b3?.[0x1]['trim']()||'','description':_0x52b98e?.[0x1]['trim']()||''};}export async function removeSkill(_0x48baa1,_0x42dc28){const _0x5aa3c0=_0x1b41,_0x3805a5={'VKbFH':function(_0x1ee03e,_0x2ed866,_0x3f5fc6){return _0x1ee03e(_0x2ed866,_0x3f5fc6);}},_0x1793ae=getSkillsDir(_0x42dc28),_0x52a6dc=_0x3805a5['VKbFH'](join,_0x1793ae,_0x48baa1);if(!existsSync(_0x52a6dc))return![];try{return await _0x3805a5[_0x5aa3c0(0x8f)](rm,_0x52a6dc,{'recursive':!![]}),console[_0x5aa3c0(0x8c)](_0x5aa3c0(0x88)+_0x48baa1),!![];}catch{return console['warn']('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x48baa1),![];}}
1
+ const _0x57efd0=_0x1921;(function(_0x28da25,_0xc5d6fb){const _0x1d142b=_0x1921,_0x16ebb7=_0x28da25();while(!![]){try{const _0x5bab58=parseInt(_0x1d142b(0x187))/0x1*(-parseInt(_0x1d142b(0x17e))/0x2)+parseInt(_0x1d142b(0x17c))/0x3+-parseInt(_0x1d142b(0x16d))/0x4+-parseInt(_0x1d142b(0x183))/0x5*(-parseInt(_0x1d142b(0x17a))/0x6)+parseInt(_0x1d142b(0x180))/0x7+-parseInt(_0x1d142b(0x169))/0x8*(parseInt(_0x1d142b(0x172))/0x9)+parseInt(_0x1d142b(0x16f))/0xa;if(_0x5bab58===_0xc5d6fb)break;else _0x16ebb7['push'](_0x16ebb7['shift']());}catch(_0x5cecf8){_0x16ebb7['push'](_0x16ebb7['shift']());}}}(_0x1e1d,0x2786c));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';function _0x1921(_0x104704,_0x1a09fe){_0x104704=_0x104704-0x169;const _0x1e1d40=_0x1e1d();let _0x19213c=_0x1e1d40[_0x104704];return _0x19213c;}import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=['ranger'];export const DEPRECATED_SKILLS=[_0x57efd0(0x177),_0x57efd0(0x16a),_0x57efd0(0x18a)];function _0x1e1d(){const _0xe9f937=['EMzJL','skills','12141tmBDyL','qvBrT','claude','project','utf-8','e2e-test-recommender','NEMkv','trim','6ajTeYK','match','427074uvCCyh','sthKB','522490sbFQTr','fiBDU','1640926XihtnY','\x20\x20Installed\x20skill:\x20','log','554545abZDcM','JqmiS','join','warn','1rvzHdq','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','\x20\x20Location:\x20','feature-tracker','isDirectory','1136Eehwiy','bug-bash','saQlQ','SKILL.md','444688pavUxW','.md','2381900FUPhBj'];_0x1e1d=function(){return _0xe9f937;};return _0x1e1d();}export async function installSkill(_0x1a6e05,_0x5a7ff0={}){const _0x5dd145=_0x57efd0,_0x494363={'qvBrT':function(_0x4177f1){return _0x4177f1();},'EMzJL':function(_0x1f8755,_0x37539f){return _0x1f8755(_0x37539f);},'mEuat':'opencode','JqmiS':function(_0x2e02a3,_0x24c592,_0x7c8670){return _0x2e02a3(_0x24c592,_0x7c8670);},'iJISK':function(_0x28ac46,_0x15287a,_0x12df1e){return _0x28ac46(_0x15287a,_0x12df1e);},'QSWEV':_0x5dd145(0x16c),'lXDta':_0x5dd145(0x176),'sthKB':function(_0x4c2c29,_0x421772,_0x463883,_0x37fb1a){return _0x4c2c29(_0x421772,_0x463883,_0x37fb1a);},'fiBDU':function(_0x4df503,_0x220448){return _0x4df503>_0x220448;}},{level:level=_0x5dd145(0x175),cliVersion:_0x3ba088,platform:platform=_0x5dd145(0x174)}=_0x5a7ff0,_0x16ed03=_0x494363[_0x5dd145(0x173)](getSourceSkillsDir),_0xc45bfb=join(_0x16ed03,_0x1a6e05),_0x1aa482=join(_0x16ed03,_0x1a6e05+_0x5dd145(0x16e)),_0x14cb62=_0x494363[_0x5dd145(0x170)](existsSync,_0xc45bfb)&&statSync(_0xc45bfb)[_0x5dd145(0x18b)]()&&existsSync(join(_0xc45bfb,_0x5dd145(0x16c))),_0xc4b3a8=_0x494363['EMzJL'](existsSync,_0x1aa482);if(!_0x14cb62&&!_0xc4b3a8)return console[_0x5dd145(0x186)]('\x20\x20Skill\x20not\x20found:\x20'+_0x1a6e05),![];const _0x8d258c=platform===_0x494363['mEuat']?getOpencodeSkillsDir(level):getSkillsDir(level),_0x3770c7=join(_0x8d258c,_0x1a6e05);await _0x494363[_0x5dd145(0x184)](mkdir,_0x3770c7,{'recursive':!![]});let _0xb7336e,_0xff0b4e=[];if(_0x14cb62){const _0xef6f22=await _0x494363['EMzJL'](readdir,_0xc45bfb),_0x52bd6c=_0xef6f22['filter'](_0x12385e=>_0x12385e['endsWith']('.md'));for(const _0x5a4e42 of _0x52bd6c){const _0x3a1fde=_0x494363[_0x5dd145(0x184)](join,_0xc45bfb,_0x5a4e42),_0x332182=join(_0x3770c7,_0x5a4e42);await copyFile(_0x3a1fde,_0x332182),_0xff0b4e['push'](_0x5a4e42);}_0xb7336e=await _0x494363['iJISK'](readFile,join(_0xc45bfb,_0x494363['QSWEV']),_0x494363['lXDta']);}else{_0xb7336e=await readFile(_0x1aa482,_0x5dd145(0x176));const _0x484aec=join(_0x3770c7,_0x5dd145(0x16c));await _0x494363[_0x5dd145(0x17d)](writeFile,_0x484aec,_0xb7336e,_0x5dd145(0x176)),_0xff0b4e['push'](_0x494363['QSWEV']);}const {name:_0x2531e5}=parseFrontmatter(_0xb7336e);return console['log'](_0x5dd145(0x181)+_0x2531e5),console[_0x5dd145(0x182)](_0x5dd145(0x189)+_0x3770c7),_0x494363[_0x5dd145(0x17f)](_0xff0b4e['length'],0x1)&&console['log']('\x20\x20Files:\x20'+_0xff0b4e[_0x5dd145(0x185)](',\x20')),logLocalAgentInstallation(_0x1a6e05,{'skillDisplayName':_0x2531e5,'installLevel':level},_0x3ba088)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x36e34c=_0x57efd0,_0x501e75={'lTyIo':function(_0x6f607,_0x36645d,_0xa03218,_0x41512b,_0xf8b53d){return _0x6f607(_0x36645d,_0xa03218,_0x41512b,_0xf8b53d);},'rZFZd':'skills','NEMkv':function(_0x485862,_0x2328a7,_0x3ace15,_0x12ff02,_0x1706d1,_0x234e7e){return _0x485862(_0x2328a7,_0x3ace15,_0x12ff02,_0x1706d1,_0x234e7e);},'VTUoi':function(_0x8cb837,_0x330d59){return _0x8cb837(_0x330d59);}},_0x568527=[_0x501e75['lTyIo'](join,__dirname,'..','..',_0x501e75['rZFZd']),_0x501e75[_0x36e34c(0x178)](join,__dirname,'..','..','..',_0x36e34c(0x171))];for(const _0x2a29dc of _0x568527){if(_0x501e75['VTUoi'](existsSync,_0x2a29dc))return _0x2a29dc;}return _0x568527[0x0];}function parseFrontmatter(_0x3f9543){const _0x2c7022=_0x57efd0,_0x1baf5e={'hMNLX':'Invalid\x20skill\x20frontmatter'},_0x530f44=_0x3f9543['match'](/^---\n([\s\S]+?)\n---/);if(!_0x530f44)throw new Error(_0x1baf5e['hMNLX']);const _0x3e70ff=_0x530f44[0x1],_0x19736c=_0x3e70ff[_0x2c7022(0x17b)](/name:\s*(.+)/),_0x13c5c7=_0x3e70ff[_0x2c7022(0x17b)](/description:\s*"?(.+?)"?\n/);return{'name':_0x19736c?.[0x1]['trim']()||'','description':_0x13c5c7?.[0x1][_0x2c7022(0x179)]()||''};}export async function removeSkill(_0x3cc563,_0x657840){const _0x433b67=_0x57efd0,_0x2033a8={'MRIMc':function(_0x3b571d,_0x3ae6a2,_0x1ba252){return _0x3b571d(_0x3ae6a2,_0x1ba252);},'saQlQ':function(_0x571e5a,_0x114cac){return _0x571e5a(_0x114cac);}},_0x285527=getSkillsDir(_0x657840),_0x487405=_0x2033a8['MRIMc'](join,_0x285527,_0x3cc563);if(!_0x2033a8[_0x433b67(0x16b)](existsSync,_0x487405))return![];try{return await rm(_0x487405,{'recursive':!![]}),console[_0x433b67(0x182)]('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x3cc563),!![];}catch{return console['warn'](_0x433b67(0x188)+_0x3cc563),![];}}
@@ -1 +1 @@
1
- const _0x3d9620=_0x3359;(function(_0x380f7b,_0x212b8f){const _0x218b6c=_0x3359,_0x1d4865=_0x380f7b();while(!![]){try{const _0x107659=-parseInt(_0x218b6c(0x19b))/0x1+-parseInt(_0x218b6c(0x194))/0x2*(-parseInt(_0x218b6c(0x190))/0x3)+parseInt(_0x218b6c(0x18d))/0x4+parseInt(_0x218b6c(0x161))/0x5+-parseInt(_0x218b6c(0x18f))/0x6*(parseInt(_0x218b6c(0x191))/0x7)+parseInt(_0x218b6c(0x18b))/0x8+parseInt(_0x218b6c(0x16d))/0x9;if(_0x107659===_0x212b8f)break;else _0x1d4865['push'](_0x1d4865['shift']());}catch(_0x640cdb){_0x1d4865['push'](_0x1d4865['shift']());}}}(_0x24f2,0xdf45c));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x32ccfc,_0x2f964){const _0x3f0959=_0x3359,_0x19aaf1={'RKCJV':function(_0x342baa,_0x4680bd){return _0x342baa<=_0x4680bd;},'hDvBt':function(_0x22b3d3,_0x226fca){return _0x22b3d3&_0x226fca;},'BssOH':function(_0x7f656,_0x5b381f){return _0x7f656>_0x5b381f;},'GLojL':function(_0x311854,_0x381025){return _0x311854<_0x381025;}};if(_0x2f964>=_0x32ccfc['length'])return[0x0,0x0];const _0x113faa=_0x32ccfc[_0x2f964];let _0x56dbdb=0x1,_0x24d3bf=0x80;while(_0x19aaf1['RKCJV'](_0x56dbdb,0x8)&&!_0x19aaf1[_0x3f0959(0x173)](_0x113faa,_0x24d3bf)){_0x56dbdb++,_0x24d3bf>>=0x1;}if(_0x19aaf1[_0x3f0959(0x17e)](_0x2f964+_0x56dbdb,_0x32ccfc['length']))return[0x0,0x0];let _0x11734c=_0x113faa&_0x24d3bf-0x1;for(let _0x7dcb70=0x1;_0x19aaf1[_0x3f0959(0x180)](_0x7dcb70,_0x56dbdb);_0x7dcb70++){_0x11734c=_0x11734c*0x100+_0x32ccfc[_0x2f964+_0x7dcb70];}return[_0x11734c,_0x56dbdb];}function readId(_0x5e65a8,_0x4fee58){const _0xd9891a=_0x3359,_0x565dfb={'OIrXt':function(_0x115419,_0x592f79){return _0x115419>=_0x592f79;},'XtdbR':function(_0x4f636a,_0x542b06){return _0x4f636a>=_0x542b06;},'oFIRj':function(_0x2beea4,_0x24847){return _0x2beea4>_0x24847;},'rKxYA':function(_0x7f6e18,_0x30e40f){return _0x7f6e18+_0x30e40f;},'LdQGC':function(_0x3cecab,_0xe28a72){return _0x3cecab<_0xe28a72;},'GkPXl':function(_0x50ad08,_0x103803){return _0x50ad08+_0x103803;},'rrRuU':function(_0x44f87f,_0x2aaf43){return _0x44f87f*_0x2aaf43;},'sIJVw':function(_0x1849b2,_0x4ba796){return _0x1849b2+_0x4ba796;}};if(_0x565dfb[_0xd9891a(0x16c)](_0x4fee58,_0x5e65a8['length']))return[0x0,0x0];const _0x503dda=_0x5e65a8[_0x4fee58];let _0x2e3aee;if(_0x565dfb['XtdbR'](_0x503dda,0x80))_0x2e3aee=0x1;else{if(_0x503dda>=0x40)_0x2e3aee=0x2;else{if(_0x503dda>=0x20)_0x2e3aee=0x3;else{if(_0x503dda>=0x10)_0x2e3aee=0x4;else return[_0x503dda,0x1];}}}if(_0x565dfb['oFIRj'](_0x565dfb['rKxYA'](_0x4fee58,_0x2e3aee),_0x5e65a8[_0xd9891a(0x18c)]))return[0x0,0x0];let _0x5dce4d=0x0;for(let _0x2fec37=0x0;_0x565dfb['LdQGC'](_0x2fec37,_0x2e3aee);_0x2fec37++){_0x5dce4d=_0x565dfb['GkPXl'](_0x565dfb['rrRuU'](_0x5dce4d,0x100),_0x5e65a8[_0x565dfb[_0xd9891a(0x17d)](_0x4fee58,_0x2fec37)]);}return[_0x5dce4d,_0x2e3aee];}function _0x3359(_0x4bfb34,_0x450d36){_0x4bfb34=_0x4bfb34-0x15b;const _0x24f2cd=_0x24f2();let _0x3359dc=_0x24f2cd[_0x4bfb34];return _0x3359dc;}function readUint(_0x881ba9,_0x102d89,_0x53772e){const _0x440aa8=_0x3359,_0x52bc9c={'aIRcA':function(_0x59db1c,_0x197669){return _0x59db1c<_0x197669;},'qzeUa':function(_0x3461ba,_0x49b132){return _0x3461ba*_0x49b132;}};let _0x4c61b9=0x0;for(let _0x172946=0x0;_0x52bc9c[_0x440aa8(0x195)](_0x172946,_0x53772e);_0x172946++){_0x4c61b9=_0x52bc9c[_0x440aa8(0x17a)](_0x4c61b9,0x100)+_0x881ba9[_0x102d89+_0x172946];}return _0x4c61b9;}function isUnknownSize(_0x3ec849,_0x3abc87){const _0x5e6d47=_0x3359,_0x162473={'fDPcy':function(_0x4e8ae6,_0x1bea67){return _0x4e8ae6*_0x1bea67;}};return _0x3ec849===Math[_0x5e6d47(0x15b)](0x2,_0x162473['fDPcy'](0x7,_0x3abc87))-0x1;}function writeVint(_0x50e4a4,_0x2e5e87){const _0x36b762=_0x3359,_0x57d5cc={'rybDk':function(_0x42f3e6,_0x83745b){return _0x42f3e6<_0x83745b;},'zqiXv':function(_0x3b95f9,_0x4c347d){return _0x3b95f9&_0x4c347d;},'LknCX':function(_0x22a956,_0x2b9878){return _0x22a956<<_0x2b9878;},'gJYCP':function(_0x3f0708,_0x390a77){return _0x3f0708-_0x390a77;}};let _0x28e568=_0x2e5e87||0x1;while(_0x57d5cc['rybDk'](Math[_0x36b762(0x15b)](0x2,0x7*_0x28e568)-0x2,_0x50e4a4))_0x28e568++;const _0x2704a7=Buffer[_0x36b762(0x188)](_0x28e568);for(let _0x5bbf05=_0x28e568-0x1;_0x5bbf05>=0x0;_0x5bbf05--){_0x2704a7[_0x5bbf05]=_0x57d5cc[_0x36b762(0x15c)](_0x50e4a4,0xff),_0x50e4a4=Math[_0x36b762(0x1a0)](_0x50e4a4/0x100);}return _0x2704a7[0x0]|=_0x57d5cc['LknCX'](0x1,_0x57d5cc['gJYCP'](0x8,_0x28e568)),_0x2704a7;}function writeUint(_0x30e05e,_0x50baf3){const _0x3995a7=_0x3359,_0x2ec157={'IYHSH':function(_0x4c6a15,_0x120803){return _0x4c6a15&_0x120803;},'NTHnR':function(_0x790c54,_0x50d794){return _0x790c54/_0x50d794;}},_0x2528fd=Buffer[_0x3995a7(0x188)](_0x50baf3);for(let _0x374e2d=_0x50baf3-0x1;_0x374e2d>=0x0;_0x374e2d--){_0x2528fd[_0x374e2d]=_0x2ec157[_0x3995a7(0x19f)](_0x30e05e,0xff),_0x30e05e=Math['floor'](_0x2ec157['NTHnR'](_0x30e05e,0x100));}return _0x2528fd;}function writeUnknownSizeVint(_0x50fa11){const _0x3243af=_0x3359,_0x18055c={'YQLPV':function(_0x1f7117,_0x4633e8){return _0x1f7117-_0x4633e8;}},_0x5f5736=Buffer['alloc'](_0x50fa11,0xff);return _0x5f5736[0x0]=0xff>>_0x18055c[_0x3243af(0x1a1)](_0x50fa11,0x1),_0x5f5736;}function uintSize(_0x24c2f0){const _0x1872de=_0x3359,_0x508ebb={'nWEEy':function(_0x5c3866,_0x320731){return _0x5c3866/_0x320731;}};if(_0x24c2f0===0x0)return 0x1;let _0x460dec=0x0,_0x10f9f2=_0x24c2f0;while(_0x10f9f2>0x0){_0x460dec++,_0x10f9f2=Math['floor'](_0x508ebb[_0x1872de(0x198)](_0x10f9f2,0x100));}return _0x460dec;}function findTimestampScale(_0x4bb20e,_0xa983aa){const _0x5bff61=_0x3359,_0x2b3ddd={'FoRCi':function(_0x34968b,_0xd0bcbf){return _0x34968b+_0xd0bcbf;},'SNUfH':function(_0xf39b9b,_0x5d915c){return _0xf39b9b<_0x5d915c;},'OtKRr':function(_0x2cc902,_0x48d6f8,_0x1e8222){return _0x2cc902(_0x48d6f8,_0x1e8222);},'zJPsR':function(_0x2c0c01,_0xa457fb){return _0x2c0c01===_0xa457fb;},'KpBBE':function(_0xd1206b,_0x500088){return _0xd1206b+_0x500088;},'xmTiS':function(_0x7e4963,_0x139d3a,_0x1583bb,_0x13126b){return _0x7e4963(_0x139d3a,_0x1583bb,_0x13126b);},'LIyWC':function(_0x29edfb,_0x18d103){return _0x29edfb+_0x18d103;},'MDaxF':function(_0x541b2b,_0x16ef45){return _0x541b2b+_0x16ef45;}};let _0x5d56c9=_0xa983aa;const _0xa7ccf7=Math[_0x5bff61(0x169)](_0x4bb20e['length'],_0x2b3ddd['FoRCi'](_0xa983aa,0x2710));while(_0x2b3ddd[_0x5bff61(0x15f)](_0x5d56c9,_0xa7ccf7)){const [_0x5da076,_0x4504cb]=readId(_0x4bb20e,_0x5d56c9),[_0x805fae,_0x6246a7]=_0x2b3ddd[_0x5bff61(0x19c)](readVint,_0x4bb20e,_0x2b3ddd['FoRCi'](_0x5d56c9,_0x4504cb));if(_0x2b3ddd['zJPsR'](_0x5da076,ID_INFO)){let _0x5ad405=_0x2b3ddd['FoRCi'](_0x2b3ddd['KpBBE'](_0x5d56c9,_0x4504cb),_0x6246a7);const _0x25b9a7=_0x5ad405+_0x805fae;while(_0x5ad405<_0x25b9a7){const [_0x35af89,_0x139837]=readId(_0x4bb20e,_0x5ad405),[_0x502ab6,_0x1248c3]=readVint(_0x4bb20e,_0x2b3ddd[_0x5bff61(0x16f)](_0x5ad405,_0x139837));if(_0x35af89===ID_TIMESTAMP_SCALE)return _0x2b3ddd['xmTiS'](readUint,_0x4bb20e,_0x2b3ddd[_0x5bff61(0x186)](_0x5ad405,_0x139837)+_0x1248c3,_0x502ab6);_0x5ad405+=_0x2b3ddd[_0x5bff61(0x17b)](_0x139837,_0x1248c3)+_0x502ab6;}break;}if(_0x5da076===ID_CLUSTER)break;if(isUnknownSize(_0x805fae,_0x6246a7))break;_0x5d56c9+=_0x2b3ddd['LIyWC'](_0x2b3ddd['MDaxF'](_0x4504cb,_0x6246a7),_0x805fae);}return 0xf4240;}function findFirstClusterOffset(_0x5be775,_0x3dc296){const _0x247881=_0x3359,_0x319d70={'lrJmN':function(_0x4ff176,_0x535d89,_0xa8cfd){return _0x4ff176(_0x535d89,_0xa8cfd);},'bkomA':function(_0x2c2a3d,_0x52a3bc){return _0x2c2a3d+_0x52a3bc;},'gZaWF':function(_0x2eb57b,_0x133950){return _0x2eb57b+_0x133950;}};let _0x25a3ba=_0x3dc296;while(_0x25a3ba<_0x5be775[_0x247881(0x18c)]){const [_0x396240,_0x49ba62]=_0x319d70['lrJmN'](readId,_0x5be775,_0x25a3ba);if(_0x396240===ID_CLUSTER)return _0x25a3ba;const [_0x324cb6,_0x5a50ff]=readVint(_0x5be775,_0x25a3ba+_0x49ba62);if(_0x319d70['lrJmN'](isUnknownSize,_0x324cb6,_0x5a50ff))return _0x25a3ba;_0x25a3ba+=_0x319d70['bkomA'](_0x319d70[_0x247881(0x18e)](_0x49ba62,_0x5a50ff),_0x324cb6);}return _0x5be775['length'];}function findClusterEnd(_0xc175c7,_0x329923,_0x33aaef,_0x54b816){const _0x5b2e93=_0x3359,_0x49b077={'KbhlX':function(_0x51f748,_0x50ca80,_0x2d51a4){return _0x51f748(_0x50ca80,_0x2d51a4);},'mvvXP':function(_0x4de6c7,_0xaeec26){return _0x4de6c7+_0xaeec26;},'cwDpO':function(_0x3b5485,_0xe30e90){return _0x3b5485<_0xe30e90;},'LrcIC':function(_0x8c9107,_0x29420f,_0x289863){return _0x8c9107(_0x29420f,_0x289863);},'BFuxB':function(_0x887408,_0x29273d,_0x32ed71){return _0x887408(_0x29273d,_0x32ed71);},'mUQUf':function(_0x150576,_0x5343d1){return _0x150576+_0x5343d1;}};if(!_0x49b077[_0x5b2e93(0x17c)](isUnknownSize,_0x33aaef,_0x54b816))return _0x49b077[_0x5b2e93(0x160)](_0x329923,_0x33aaef);const _0x58bd4e=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x2c2b9b=_0x329923;while(_0x49b077[_0x5b2e93(0x174)](_0x2c2b9b,_0xc175c7[_0x5b2e93(0x18c)]-0x4)){const [_0x2b2330,_0x36b8b9]=_0x49b077['LrcIC'](readId,_0xc175c7,_0x2c2b9b);if(_0x58bd4e[_0x5b2e93(0x179)](_0x2b2330))return _0x2c2b9b;const [_0xeaa6d8,_0x311b55]=_0x49b077[_0x5b2e93(0x17f)](readVint,_0xc175c7,_0x49b077['mUQUf'](_0x2c2b9b,_0x36b8b9));if(isUnknownSize(_0xeaa6d8,_0x311b55))return _0xc175c7['length'];_0x2c2b9b+=_0x49b077[_0x5b2e93(0x168)](_0x36b8b9,_0x311b55)+_0xeaa6d8;}return _0xc175c7[_0x5b2e93(0x18c)];}function extractClusters(_0x952387,_0x405059){const _0x2074a0=_0x3359,_0x4ed268={'NzxRS':function(_0x1f9f92,_0x7523c8){return _0x1f9f92===_0x7523c8;},'bEBTa':function(_0x5250ea,_0x4652df,_0x14269a){return _0x5250ea(_0x4652df,_0x14269a);},'doQYr':function(_0x52f268,_0x358fbc){return _0x52f268+_0x358fbc;},'rKKPy':function(_0x28ddab,_0x47eee9){return _0x28ddab<_0x47eee9;},'PqcsF':function(_0x1d7968,_0x1c8480){return _0x1d7968===_0x1c8480;},'ckHks':function(_0x3ee25d,_0x10c96b,_0x4ab819,_0x4adbd0){return _0x3ee25d(_0x10c96b,_0x4ab819,_0x4adbd0);},'YRTEH':function(_0x5876be,_0x53711f){return _0x5876be+_0x53711f;},'monjg':function(_0x33007e,_0x147e44){return _0x33007e+_0x147e44;},'UwEAx':function(_0x2b45b6,_0x57ad42,_0x12b918){return _0x2b45b6(_0x57ad42,_0x12b918);},'GdTQs':function(_0x1d8e79,_0x2f1e4a){return _0x1d8e79+_0x2f1e4a;},'GITcD':function(_0x11c7a8,_0x38116c){return _0x11c7a8>=_0x38116c;},'lewTW':function(_0x284a67,_0x3f9b53){return _0x284a67>_0x3f9b53;},'XDHfq':function(_0x592604,_0x1dedf8,_0x56052f){return _0x592604(_0x1dedf8,_0x56052f);},'cDXJO':function(_0x3ffec5,_0x31d42b){return _0x3ffec5+_0x31d42b;}},_0x42f794=[],_0x5738b8=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x2ad3bc=0x0;while(_0x2ad3bc<_0x952387[_0x2074a0(0x18c)]){const _0x25c8d6=_0x952387['indexOf'](_0x5738b8,_0x2ad3bc);if(_0x4ed268[_0x2074a0(0x185)](_0x25c8d6,-0x1))break;const [_0x5f7639,_0x55ac68]=_0x4ed268['bEBTa'](readId,_0x952387,_0x25c8d6);if(_0x5f7639!==ID_CLUSTER){_0x2ad3bc=_0x25c8d6+0x1;continue;}const [_0x40e817,_0x4c63dd]=readVint(_0x952387,_0x4ed268['doQYr'](_0x25c8d6,_0x55ac68)),_0x428b46=_0x4ed268['doQYr'](_0x4ed268['doQYr'](_0x25c8d6,_0x55ac68),_0x4c63dd),_0x4b6dea=findClusterEnd(_0x952387,_0x428b46,_0x40e817,_0x4c63dd);let _0x1553ae=_0x428b46,_0x541b90=0x0,_0x4c699f=0x2,_0x501b28=![],_0x574295=Buffer[_0x2074a0(0x188)](0x0),_0x202b4b=Buffer['alloc'](0x0);while(_0x4ed268[_0x2074a0(0x165)](_0x1553ae,_0x4b6dea)){const [_0x5833d3,_0x83171d]=readId(_0x952387,_0x1553ae),[_0x5c8636,_0x778130]=_0x4ed268['bEBTa'](readVint,_0x952387,_0x1553ae+_0x83171d);if(_0x4ed268[_0x2074a0(0x18a)](_0x5833d3,ID_TIMESTAMP)){_0x541b90=_0x4ed268[_0x2074a0(0x193)](readUint,_0x952387,_0x4ed268[_0x2074a0(0x171)](_0x4ed268['monjg'](_0x1553ae,_0x83171d),_0x778130),_0x5c8636),_0x4c699f=_0x5c8636,_0x501b28=!![],_0x574295=_0x952387['slice'](_0x428b46,_0x1553ae);const _0x537498=_0x1553ae+_0x83171d+_0x778130+_0x5c8636;_0x202b4b=_0x952387[_0x2074a0(0x183)](_0x537498,_0x4b6dea);break;}if(_0x5833d3===ID_CLUSTER)break;if(_0x4ed268['bEBTa'](isUnknownSize,_0x5c8636,_0x778130))break;_0x1553ae+=_0x83171d+_0x778130+_0x5c8636;}!_0x501b28&&(_0x202b4b=_0x952387[_0x2074a0(0x183)](_0x428b46,_0x4b6dea));let _0x24a8af=_0x541b90;_0x1553ae=_0x428b46;while(_0x1553ae<_0x4b6dea){const [_0x3d1505,_0x342a26]=_0x4ed268['UwEAx'](readId,_0x952387,_0x1553ae),[_0xf1ace2,_0x36fc41]=_0x4ed268['UwEAx'](readVint,_0x952387,_0x4ed268['GdTQs'](_0x1553ae,_0x342a26));if(_0x3d1505===ID_SIMPLE_BLOCK&&_0x4ed268['GITcD'](_0xf1ace2,0x4)){const _0x25f0e1=_0x1553ae+_0x342a26+_0x36fc41,[,_0x18bc8e]=readVint(_0x952387,_0x25f0e1),_0x1a29b2=_0x952387['readInt16BE'](_0x25f0e1+_0x18bc8e),_0x1fff63=_0x4ed268[_0x2074a0(0x15e)](_0x541b90,_0x1a29b2);if(_0x4ed268[_0x2074a0(0x163)](_0x1fff63,_0x24a8af))_0x24a8af=_0x1fff63;}if(_0x3d1505===ID_CLUSTER)break;if(_0x4ed268['XDHfq'](isUnknownSize,_0xf1ace2,_0x36fc41))break;_0x1553ae+=_0x4ed268[_0x2074a0(0x171)](_0x4ed268[_0x2074a0(0x182)](_0x342a26,_0x36fc41),_0xf1ace2);}_0x42f794['push']({'timestamp':_0x541b90,'maxTicks':_0x24a8af,'bodyBeforeTimestamp':_0x574295,'bodyAfterTimestamp':_0x202b4b,'timestampElementSize':_0x4c699f}),_0x2ad3bc=_0x4b6dea;}return _0x42f794;}function parseWebm(_0x37c927){const _0x51a8f3=_0x3359,_0x227dd9={'hBUTO':function(_0x3d6e2a,_0x3ced17,_0x455cb8){return _0x3d6e2a(_0x3ced17,_0x455cb8);},'XoTef':function(_0x236dad,_0x201465){return _0x236dad+_0x201465;},'QqvqA':function(_0x45e8ed,_0x664bd4){return _0x45e8ed!==_0x664bd4;},'ZpLrj':function(_0xb764b9,_0x5b429c,_0x453d8b){return _0xb764b9(_0x5b429c,_0x453d8b);},'lymEa':function(_0x4b9b92,_0x43d1dd){return _0x4b9b92>_0x43d1dd;}};let _0x1840e6=0x0;const [,_0x117fc5]=_0x227dd9['hBUTO'](readId,_0x37c927,_0x1840e6),[_0x15719f,_0x40c5de]=_0x227dd9[_0x51a8f3(0x181)](readVint,_0x37c927,_0x227dd9[_0x51a8f3(0x189)](_0x1840e6,_0x117fc5));_0x1840e6+=_0x117fc5+_0x40c5de+_0x15719f;const [_0x10c87b,_0xa14221]=readId(_0x37c927,_0x1840e6);if(_0x227dd9['QqvqA'](_0x10c87b,ID_SEGMENT))return null;const [,_0x12aa10]=readVint(_0x37c927,_0x1840e6+_0xa14221),_0x327e5f=_0x1840e6+_0xa14221+_0x12aa10,_0x2f7446=_0x227dd9['ZpLrj'](findTimestampScale,_0x37c927,_0x327e5f),_0x62eb59=_0x227dd9[_0x51a8f3(0x19a)](findFirstClusterOffset,_0x37c927,_0x327e5f),_0x34c15e=_0x37c927[_0x51a8f3(0x183)](0x0,_0x62eb59),_0x11c005=extractClusters(_0x37c927,_0x2f7446);let _0x45ffba=0x0;for(const _0x208813 of _0x11c005){if(_0x227dd9['lymEa'](_0x208813[_0x51a8f3(0x172)],_0x45ffba))_0x45ffba=_0x208813[_0x51a8f3(0x172)];}return{'header':_0x34c15e,'clusters':_0x11c005,'timestampScale':_0x2f7446,'maxTimestampTicks':_0x45ffba};}function buildCluster(_0x5abf20,_0x1272ef,_0x1bc73d){const _0x47e57b=_0x3359,_0x59bae4={'jXyaj':function(_0x284c5e,_0x94fca4,_0x511e90){return _0x284c5e(_0x94fca4,_0x511e90);},'yJTuu':function(_0x12f811,_0x47279b){return _0x12f811(_0x47279b);}},_0x197fc6=Buffer[_0x47e57b(0x196)]([0x1f,0x43,0xb6,0x75]),_0x3655fc=Math[_0x47e57b(0x164)](0x4,uintSize(_0x5abf20)),_0x4aa878=Buffer[_0x47e57b(0x16b)]([Buffer['from']([ID_TIMESTAMP]),writeVint(_0x3655fc),_0x59bae4[_0x47e57b(0x162)](writeUint,_0x5abf20,_0x3655fc)]),_0x5eb4b0=Buffer['concat']([_0x1272ef,_0x4aa878,_0x1bc73d]),_0x26fdfd=_0x59bae4[_0x47e57b(0x16a)](writeVint,_0x5eb4b0['length']);return Buffer['concat']([_0x197fc6,_0x26fdfd,_0x5eb4b0]);}const ID_DURATION=0x4489;function _0x24f2(){const _0x3c23ae=['ckHks','4VxyciW','aIRcA','from','KGSZJ','nWEEy','QSukb','ZpLrj','1760575JMmiAD','OtKRr','endsWith','push','IYHSH','floor','YQLPV','pow','zqiXv','pirLY','doQYr','SNUfH','mvvXP','7252400MncqtV','jXyaj','lewTW','max','rKKPy','sbdBL','\x20files\x20->\x20','mUQUf','min','yJTuu','concat','OIrXt','2533158jsvYhv','timestamp','FoRCi','log','YRTEH','maxTicks','hDvBt','cwDpO','argv','WKQwo','clusters','stitchWebmFiles.js','has','qzeUa','LIyWC','KbhlX','sIJVw','BssOH','BFuxB','GLojL','hBUTO','cDXJO','slice','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','NzxRS','KpBBE','stitchWebmFiles.ts','alloc','XoTef','PqcsF','6259816sLyLdb','length','3209320oYIMPU','gZaWF','9602784LYRRDF','1438221iEfytD','7CglWlS','error'];_0x24f2=function(){return _0x3c23ae;};return _0x24f2();}function rebuildHeaderWithoutDuration(_0x56bea5){const _0x3a8c2e=_0x3359,_0x36eb21={'sbdBL':function(_0x34a226,_0x11eeb7,_0x980c5c){return _0x34a226(_0x11eeb7,_0x980c5c);},'jfFcw':function(_0x4ee270,_0x3cfd60){return _0x4ee270+_0x3cfd60;},'QSukb':function(_0x42362c,_0x590c14){return _0x42362c+_0x590c14;},'ouVmv':function(_0x3294aa,_0x289693){return _0x3294aa(_0x289693);},'pirLY':function(_0x15fe7c,_0x42eb3d){return _0x15fe7c+_0x42eb3d;},'KGSZJ':function(_0x276e51,_0x442821){return _0x276e51<_0x442821;},'xrkFg':function(_0x214128,_0x5bcbb3,_0x52449e){return _0x214128(_0x5bcbb3,_0x52449e);}},_0xe0f1cb=Buffer[_0x3a8c2e(0x196)](_0x56bea5);let _0x2b99e4=0x0;const [,_0x52d28b]=_0x36eb21['sbdBL'](readId,_0xe0f1cb,_0x2b99e4),[_0x235378,_0x29b71a]=readVint(_0xe0f1cb,_0x36eb21['jfFcw'](_0x2b99e4,_0x52d28b)),_0x166d11=_0x36eb21['jfFcw'](_0x36eb21[_0x3a8c2e(0x199)](_0x2b99e4,_0x52d28b)+_0x29b71a,_0x235378),[,_0x14d96d]=readId(_0xe0f1cb,_0x166d11),[,_0x157a45]=readVint(_0xe0f1cb,_0x166d11+_0x14d96d),_0x56431b=_0x166d11+_0x14d96d+_0x157a45,_0x1a0eb9=_0x36eb21['ouVmv'](writeUnknownSizeVint,_0x157a45);_0x1a0eb9['copy'](_0xe0f1cb,_0x36eb21[_0x3a8c2e(0x15d)](_0x166d11,_0x14d96d));let _0x1f9646=_0x56431b;const _0x2b79ec=Math['min'](_0xe0f1cb[_0x3a8c2e(0x18c)],_0x56431b+0x2710);while(_0x1f9646<_0x2b79ec){const [_0x219c11,_0x172c41]=_0x36eb21[_0x3a8c2e(0x166)](readId,_0xe0f1cb,_0x1f9646),[_0x288119,_0x4fd81d]=readVint(_0xe0f1cb,_0x1f9646+_0x172c41);if(_0x219c11===ID_CLUSTER)break;if(isUnknownSize(_0x288119,_0x4fd81d))break;if(_0x219c11===ID_INFO){const _0x3bceb2=_0x1f9646+_0x172c41+_0x4fd81d,_0x2f9a9a=_0x3bceb2+_0x288119,_0xc8339e=[];let _0x508c1b=_0x3bceb2;while(_0x36eb21[_0x3a8c2e(0x197)](_0x508c1b,_0x2f9a9a)){const [_0x407848,_0xea7521]=_0x36eb21['xrkFg'](readId,_0xe0f1cb,_0x508c1b),[_0x35b9f8,_0x2ae824]=readVint(_0xe0f1cb,_0x508c1b+_0xea7521),_0x10d6d9=_0xea7521+_0x2ae824+_0x35b9f8;_0x407848!==ID_DURATION&&_0xc8339e[_0x3a8c2e(0x19e)](_0xe0f1cb[_0x3a8c2e(0x183)](_0x508c1b,_0x508c1b+_0x10d6d9)),_0x508c1b+=_0x10d6d9;}const _0x11a280=Buffer[_0x3a8c2e(0x16b)](_0xc8339e),_0x2e095d=Buffer[_0x3a8c2e(0x16b)]([_0xe0f1cb[_0x3a8c2e(0x183)](_0x1f9646,_0x36eb21['pirLY'](_0x1f9646,_0x172c41)),writeVint(_0x11a280[_0x3a8c2e(0x18c)],_0x4fd81d)]);return Buffer[_0x3a8c2e(0x16b)]([_0xe0f1cb['slice'](0x0,_0x1f9646),_0x2e095d,_0x11a280,_0xe0f1cb[_0x3a8c2e(0x183)](_0x2f9a9a)]);}_0x1f9646+=_0x172c41+_0x4fd81d+_0x288119;}return _0xe0f1cb;}export function stitchWebmFiles(_0xe09877,_0x7365e7){const _0x38f5aa=_0x3359,_0xf5184f={'WKQwo':function(_0x2826bb,_0x4d5e06,_0x14200f){return _0x2826bb(_0x4d5e06,_0x14200f);}};if(_0xe09877['length']<=0x1)return![];const _0x30dfac=[];for(const _0x4c7552 of _0xe09877){const _0x5b9d9e=readFileSync(_0x4c7552),_0x4ed3b2=parseWebm(_0x5b9d9e);if(!_0x4ed3b2||_0x4ed3b2[_0x38f5aa(0x177)]['length']===0x0)return![];_0x30dfac[_0x38f5aa(0x19e)](_0x4ed3b2);}const _0x17cfcb=_0x30dfac[0x0],_0x44a7c6=rebuildHeaderWithoutDuration(_0x17cfcb['header']),_0x1ddd16=[_0x44a7c6];let _0x4ad6b9=0x0;for(let _0x2fc192=0x0;_0x2fc192<_0x30dfac[_0x38f5aa(0x18c)];_0x2fc192++){const _0x1d114e=_0x30dfac[_0x2fc192];for(const _0x54bb93 of _0x1d114e['clusters']){const _0x2661dd=_0x54bb93[_0x38f5aa(0x16e)]+_0x4ad6b9;_0x1ddd16[_0x38f5aa(0x19e)](buildCluster(_0x2661dd,_0x54bb93['bodyBeforeTimestamp'],_0x54bb93['bodyAfterTimestamp']));}const _0x50b41f=0x1e;_0x4ad6b9+=_0x1d114e['maxTimestampTicks']+_0x50b41f;}return _0xf5184f[_0x38f5aa(0x176)](writeFileSync,_0x7365e7,Buffer['concat'](_0x1ddd16)),!![];}if(process[_0x3d9620(0x175)][0x1]?.['endsWith'](_0x3d9620(0x187))||process[_0x3d9620(0x175)][0x1]?.[_0x3d9620(0x19d)](_0x3d9620(0x178))){const args=process[_0x3d9620(0x175)]['slice'](0x2);args['length']<0x3&&(console[_0x3d9620(0x192)]('Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>'),process['exit'](0x1));const output=args[args[_0x3d9620(0x18c)]-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x3d9620(0x170)]('Stitched\x20'+inputs['length']+_0x3d9620(0x167)+output):console['log'](_0x3d9620(0x184));}
1
+ const _0x244eb6=_0x17ab;(function(_0x189426,_0x23d9ab){const _0x18f44c=_0x17ab,_0x248e6f=_0x189426();while(!![]){try{const _0x4e5eee=parseInt(_0x18f44c(0x1d4))/0x1*(-parseInt(_0x18f44c(0x1ce))/0x2)+-parseInt(_0x18f44c(0x1b2))/0x3+parseInt(_0x18f44c(0x1d1))/0x4*(-parseInt(_0x18f44c(0x1e5))/0x5)+parseInt(_0x18f44c(0x1b9))/0x6*(-parseInt(_0x18f44c(0x1ef))/0x7)+parseInt(_0x18f44c(0x1a2))/0x8*(-parseInt(_0x18f44c(0x1cb))/0x9)+parseInt(_0x18f44c(0x1db))/0xa*(parseInt(_0x18f44c(0x1c1))/0xb)+-parseInt(_0x18f44c(0x1d0))/0xc*(-parseInt(_0x18f44c(0x1cc))/0xd);if(_0x4e5eee===_0x23d9ab)break;else _0x248e6f['push'](_0x248e6f['shift']());}catch(_0x581665){_0x248e6f['push'](_0x248e6f['shift']());}}}(_0x5b53,0xab8e6));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_SIMPLE_BLOCK=0xa3;function _0x17ab(_0x1c8a11,_0x554578){_0x1c8a11=_0x1c8a11-0x1a0;const _0x5b53d8=_0x5b53();let _0x17abc7=_0x5b53d8[_0x1c8a11];return _0x17abc7;}function readVint(_0x393554,_0x2b4e9a){const _0x2baa56=_0x17ab,_0x463925={'pCsbu':function(_0x5ace80,_0x2363ba){return _0x5ace80>=_0x2363ba;},'pPDOc':function(_0x1fe535,_0x59a93a){return _0x1fe535&_0x59a93a;},'sxlGD':function(_0x23b52c,_0x3855b4){return _0x23b52c>_0x3855b4;},'oJwfG':function(_0x5b43ce,_0x571e45){return _0x5b43ce+_0x571e45;},'EtGkl':function(_0x3c587d,_0x22c373){return _0x3c587d+_0x22c373;},'eWadh':function(_0x4d22c1,_0x167216){return _0x4d22c1*_0x167216;}};if(_0x463925['pCsbu'](_0x2b4e9a,_0x393554['length']))return[0x0,0x0];const _0x335d85=_0x393554[_0x2b4e9a];let _0x56aaa4=0x1,_0x28b8b9=0x80;while(_0x56aaa4<=0x8&&!_0x463925['pPDOc'](_0x335d85,_0x28b8b9)){_0x56aaa4++,_0x28b8b9>>=0x1;}if(_0x463925['sxlGD'](_0x463925['oJwfG'](_0x2b4e9a,_0x56aaa4),_0x393554[_0x2baa56(0x1e2)]))return[0x0,0x0];let _0x2d2b3d=_0x463925[_0x2baa56(0x1a6)](_0x335d85,_0x28b8b9-0x1);for(let _0x3790d1=0x1;_0x3790d1<_0x56aaa4;_0x3790d1++){_0x2d2b3d=_0x463925['EtGkl'](_0x463925['eWadh'](_0x2d2b3d,0x100),_0x393554[_0x463925[_0x2baa56(0x1b4)](_0x2b4e9a,_0x3790d1)]);}return[_0x2d2b3d,_0x56aaa4];}function readId(_0x89a11a,_0x95567c){const _0x146fab=_0x17ab,_0x2d7bfc={'CQiYV':function(_0xdb6156,_0x4f504c){return _0xdb6156>=_0x4f504c;},'wflMC':function(_0x43b477,_0x3505b1){return _0x43b477>=_0x3505b1;},'kbKvs':function(_0x33f274,_0x13c984){return _0x33f274>_0x13c984;},'waJcS':function(_0x2d7528,_0xd82fc){return _0x2d7528+_0xd82fc;}};if(_0x2d7bfc['CQiYV'](_0x95567c,_0x89a11a['length']))return[0x0,0x0];const _0x5a8f35=_0x89a11a[_0x95567c];let _0x4cc3e0;if(_0x5a8f35>=0x80)_0x4cc3e0=0x1;else{if(_0x5a8f35>=0x40)_0x4cc3e0=0x2;else{if(_0x5a8f35>=0x20)_0x4cc3e0=0x3;else{if(_0x2d7bfc[_0x146fab(0x1c7)](_0x5a8f35,0x10))_0x4cc3e0=0x4;else return[_0x5a8f35,0x1];}}}if(_0x2d7bfc['kbKvs'](_0x2d7bfc['waJcS'](_0x95567c,_0x4cc3e0),_0x89a11a['length']))return[0x0,0x0];let _0xc0080f=0x0;for(let _0x7ae0c8=0x0;_0x7ae0c8<_0x4cc3e0;_0x7ae0c8++){_0xc0080f=_0xc0080f*0x100+_0x89a11a[_0x95567c+_0x7ae0c8];}return[_0xc0080f,_0x4cc3e0];}function readUint(_0xfd9097,_0x32c45d,_0x2c7dc5){const _0xa9642b=_0x17ab,_0x3c399e={'bIaJJ':function(_0x3f09b2,_0x3d9d65){return _0x3f09b2+_0x3d9d65;},'zRAdU':function(_0x7cc60,_0x3e3911){return _0x7cc60*_0x3e3911;},'HRDcN':function(_0x590205,_0x191c69){return _0x590205+_0x191c69;}};let _0x3de9dc=0x0;for(let _0x1002d4=0x0;_0x1002d4<_0x2c7dc5;_0x1002d4++){_0x3de9dc=_0x3c399e[_0xa9642b(0x1ae)](_0x3c399e[_0xa9642b(0x1dd)](_0x3de9dc,0x100),_0xfd9097[_0x3c399e[_0xa9642b(0x1b8)](_0x32c45d,_0x1002d4)]);}return _0x3de9dc;}function isUnknownSize(_0x2edc91,_0x5bcd42){const _0x47cd81=_0x17ab,_0x2076a7={'GfArb':function(_0x49929f,_0x24a6f3){return _0x49929f-_0x24a6f3;},'aKsxZ':function(_0x4d510f,_0x592821){return _0x4d510f*_0x592821;}};return _0x2edc91===_0x2076a7['GfArb'](Math['pow'](0x2,_0x2076a7[_0x47cd81(0x1c5)](0x7,_0x5bcd42)),0x1);}function _0x5b53(){const _0x551f66=['slice','FSAyE','\x20files\x20->\x20','argv','jpeDs','XdWOZ','bIaJJ','vrBco','XBmsX','fJHGN','2654604bnfwCD','GaSyY','EtGkl','yZbNd','ZIjsJ','yTsUV','HRDcN','1360410CfRwgd','header','zmIJq','HLKCM','concat','sSMRe','ppBrD','zRLDm','11kJOcdO','fDDUz','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','CmyLI','aKsxZ','npqzn','wflMC','lsEoA','bodyBeforeTimestamp','TlwFe','9viStpK','175916htdiDc','EMnPv','22vTwzFP','SstJc','3132bdgAVa','4NvFoGf','kstvv','from','48302LNLJUC','GnuHc','qKdOY','log','min','ogIhy','pglVn','13888730UOqeMn','hyrAQ','zRAdU','maxTicks','alloc','lStsb','Riggq','length','jppzt','ZHKDZ','2726395CFsiYq','clusters','xDUBH','readInt16BE','BmKAD','mygmI','YdFiN','QXKXX','maxTimestampTicks','stitchWebmFiles.js','35XGfQFj','max','push','8983096jTpKpA','KoXNI','ppDxU','Stitched\x20','pPDOc','copy'];_0x5b53=function(){return _0x551f66;};return _0x5b53();}function writeVint(_0x1c28a6,_0x56554e){const _0x3c600e=_0x17ab,_0x317405={'fvVGT':function(_0x1a8d04,_0x8d5ce7){return _0x1a8d04||_0x8d5ce7;},'HLKCM':function(_0x2d3f45,_0x23a3b7){return _0x2d3f45*_0x23a3b7;},'qzKoK':function(_0x3872bc,_0x368a30){return _0x3872bc>=_0x368a30;},'ldhmQ':function(_0x3ee394,_0x50cd3a){return _0x3ee394<<_0x50cd3a;},'mWcqV':function(_0x26af60,_0x5ce97f){return _0x26af60-_0x5ce97f;}};let _0x2b295d=_0x317405['fvVGT'](_0x56554e,0x1);while(Math['pow'](0x2,_0x317405[_0x3c600e(0x1bc)](0x7,_0x2b295d))-0x2<_0x1c28a6)_0x2b295d++;const _0x2a886a=Buffer['alloc'](_0x2b295d);for(let _0x1c2609=_0x2b295d-0x1;_0x317405['qzKoK'](_0x1c2609,0x0);_0x1c2609--){_0x2a886a[_0x1c2609]=_0x1c28a6&0xff,_0x1c28a6=Math['floor'](_0x1c28a6/0x100);}return _0x2a886a[0x0]|=_0x317405['ldhmQ'](0x1,_0x317405['mWcqV'](0x8,_0x2b295d)),_0x2a886a;}function writeUint(_0x3a9473,_0x10bda3){const _0x2791e0=_0x17ab,_0xaa9daf={'pglVn':function(_0x3fb992,_0xa5eebf){return _0x3fb992-_0xa5eebf;},'vrBco':function(_0x242019,_0x4721b7){return _0x242019/_0x4721b7;}},_0x4b6b99=Buffer[_0x2791e0(0x1df)](_0x10bda3);for(let _0x896c89=_0xaa9daf[_0x2791e0(0x1da)](_0x10bda3,0x1);_0x896c89>=0x0;_0x896c89--){_0x4b6b99[_0x896c89]=_0x3a9473&0xff,_0x3a9473=Math['floor'](_0xaa9daf[_0x2791e0(0x1af)](_0x3a9473,0x100));}return _0x4b6b99;}function writeUnknownSizeVint(_0x4effdd){const _0x11e6c4=Buffer['alloc'](_0x4effdd,0xff);return _0x11e6c4[0x0]=0xff>>_0x4effdd-0x1,_0x11e6c4;}function uintSize(_0x31d9bd){const _0xfa1f3a=_0x17ab,_0xbf3d9d={'jpeDs':function(_0x2d386f,_0x5610e7){return _0x2d386f===_0x5610e7;},'lmcTt':function(_0x290645,_0x370bf0){return _0x290645>_0x370bf0;},'mygmI':function(_0x10a280,_0x529575){return _0x10a280/_0x529575;}};if(_0xbf3d9d[_0xfa1f3a(0x1ac)](_0x31d9bd,0x0))return 0x1;let _0xeec9ad=0x0,_0xfa7dd7=_0x31d9bd;while(_0xbf3d9d['lmcTt'](_0xfa7dd7,0x0)){_0xeec9ad++,_0xfa7dd7=Math['floor'](_0xbf3d9d[_0xfa1f3a(0x1ea)](_0xfa7dd7,0x100));}return _0xeec9ad;}function findTimestampScale(_0x544753,_0x263db4){const _0x2df675=_0x17ab,_0x31bab5={'lsEoA':function(_0x210bd0,_0xf7c48b){return _0x210bd0<_0xf7c48b;},'npqzn':function(_0x4eefc8,_0x1685e8){return _0x4eefc8+_0x1685e8;},'qKdOY':function(_0x250db9,_0x64e9ce,_0xd77df){return _0x250db9(_0x64e9ce,_0xd77df);},'KoXNI':function(_0x1e657b,_0x59c1a0,_0x441328,_0x8734a3){return _0x1e657b(_0x59c1a0,_0x441328,_0x8734a3);},'nRRLu':function(_0x220616,_0x808d,_0x536fc6){return _0x220616(_0x808d,_0x536fc6);}};let _0x685fd=_0x263db4;const _0x66a7bb=Math['min'](_0x544753[_0x2df675(0x1e2)],_0x263db4+0x2710);while(_0x31bab5[_0x2df675(0x1c8)](_0x685fd,_0x66a7bb)){const [_0x1f4299,_0x3d3cf5]=readId(_0x544753,_0x685fd),[_0x17d038,_0x4771b3]=readVint(_0x544753,_0x685fd+_0x3d3cf5);if(_0x1f4299===ID_INFO){let _0x2f0886=_0x31bab5[_0x2df675(0x1c6)](_0x31bab5[_0x2df675(0x1c6)](_0x685fd,_0x3d3cf5),_0x4771b3);const _0x3dc250=_0x31bab5['npqzn'](_0x2f0886,_0x17d038);while(_0x2f0886<_0x3dc250){const [_0x1550d8,_0x4b0bbb]=_0x31bab5[_0x2df675(0x1d6)](readId,_0x544753,_0x2f0886),[_0x3d7e1e,_0x1a355a]=_0x31bab5['qKdOY'](readVint,_0x544753,_0x31bab5['npqzn'](_0x2f0886,_0x4b0bbb));if(_0x1550d8===ID_TIMESTAMP_SCALE)return _0x31bab5[_0x2df675(0x1a3)](readUint,_0x544753,_0x2f0886+_0x4b0bbb+_0x1a355a,_0x3d7e1e);_0x2f0886+=_0x31bab5['npqzn'](_0x4b0bbb+_0x1a355a,_0x3d7e1e);}break;}if(_0x1f4299===ID_CLUSTER)break;if(_0x31bab5['nRRLu'](isUnknownSize,_0x17d038,_0x4771b3))break;_0x685fd+=_0x3d3cf5+_0x4771b3+_0x17d038;}return 0xf4240;}function findFirstClusterOffset(_0x564e75,_0x301e5f){const _0x2b6b74=_0x17ab,_0x3ffc19={'yZbNd':function(_0x2f789b,_0x2fc5c7){return _0x2f789b<_0x2fc5c7;},'yTsUV':function(_0x2e96bf,_0x3708dc,_0x377940){return _0x2e96bf(_0x3708dc,_0x377940);},'BmKAD':function(_0x155990,_0x296de2){return _0x155990+_0x296de2;},'zRLDm':function(_0x54765a,_0x1b4b47,_0x269fee){return _0x54765a(_0x1b4b47,_0x269fee);},'gHzej':function(_0x595b6f,_0x347c4d){return _0x595b6f+_0x347c4d;}};let _0x394e9e=_0x301e5f;while(_0x3ffc19[_0x2b6b74(0x1b5)](_0x394e9e,_0x564e75[_0x2b6b74(0x1e2)])){const [_0x267de7,_0x35f01f]=readId(_0x564e75,_0x394e9e);if(_0x267de7===ID_CLUSTER)return _0x394e9e;const [_0x12a3f9,_0x246aea]=_0x3ffc19[_0x2b6b74(0x1b7)](readVint,_0x564e75,_0x3ffc19[_0x2b6b74(0x1e9)](_0x394e9e,_0x35f01f));if(_0x3ffc19[_0x2b6b74(0x1c0)](isUnknownSize,_0x12a3f9,_0x246aea))return _0x394e9e;_0x394e9e+=_0x3ffc19['gHzej'](_0x35f01f+_0x246aea,_0x12a3f9);}return _0x564e75[_0x2b6b74(0x1e2)];}function findClusterEnd(_0x3a9cd5,_0x532eb0,_0x40f848,_0x1a5be8){const _0x22be4b=_0x17ab,_0x539aa8={'fDDUz':function(_0x25e381,_0xa6ca0,_0x5624c1){return _0x25e381(_0xa6ca0,_0x5624c1);},'jppzt':function(_0x3d84aa,_0x4e460c){return _0x3d84aa+_0x4e460c;},'FSAyE':function(_0xe465b4,_0xb20682,_0x53b81c){return _0xe465b4(_0xb20682,_0x53b81c);},'stDzz':function(_0x4e7234,_0xddc1){return _0x4e7234+_0xddc1;}};if(!_0x539aa8[_0x22be4b(0x1c2)](isUnknownSize,_0x40f848,_0x1a5be8))return _0x539aa8[_0x22be4b(0x1e3)](_0x532eb0,_0x40f848);const _0x4fe24a=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x58bcb0=_0x532eb0;while(_0x58bcb0<_0x3a9cd5[_0x22be4b(0x1e2)]-0x4){const [_0x24aa41,_0x39e667]=_0x539aa8['fDDUz'](readId,_0x3a9cd5,_0x58bcb0);if(_0x4fe24a['has'](_0x24aa41))return _0x58bcb0;const [_0x197bf7,_0x37d593]=_0x539aa8[_0x22be4b(0x1c2)](readVint,_0x3a9cd5,_0x539aa8['jppzt'](_0x58bcb0,_0x39e667));if(_0x539aa8[_0x22be4b(0x1a9)](isUnknownSize,_0x197bf7,_0x37d593))return _0x3a9cd5['length'];_0x58bcb0+=_0x539aa8['stDzz'](_0x39e667+_0x37d593,_0x197bf7);}return _0x3a9cd5[_0x22be4b(0x1e2)];}function extractClusters(_0x3f3d43,_0x3c5af3){const _0x439344=_0x17ab,_0x6c580d={'CmyLI':function(_0x85e791,_0x14f9de){return _0x85e791===_0x14f9de;},'Riggq':function(_0x2ff019,_0x1501b1,_0x2ff1b9){return _0x2ff019(_0x1501b1,_0x2ff1b9);},'ZIjsJ':function(_0x5b09c1,_0x1233ee){return _0x5b09c1!==_0x1233ee;},'lStsb':function(_0x3015a1,_0x20befa){return _0x3015a1+_0x20befa;},'TlwFe':function(_0x251781,_0x1cd4c8){return _0x251781+_0x1cd4c8;},'fJHGN':function(_0xaba2c1,_0x8b8e16){return _0xaba2c1<_0x8b8e16;},'WtvJr':function(_0x50b773,_0x2b669b,_0xae3bc4){return _0x50b773(_0x2b669b,_0xae3bc4);},'fkJZp':function(_0x302359,_0x228a69,_0x36bbcb,_0x2c1ff9){return _0x302359(_0x228a69,_0x36bbcb,_0x2c1ff9);},'ppBrD':function(_0x4bd720,_0x3e7bb9){return _0x4bd720+_0x3e7bb9;},'hyrAQ':function(_0x236056,_0x43fd2d){return _0x236056+_0x43fd2d;},'zmIJq':function(_0x49d13b,_0x27c089){return _0x49d13b===_0x27c089;},'KrtTT':function(_0xbc865d,_0x4dc822){return _0xbc865d+_0x4dc822;},'cUIeI':function(_0x25f9dc,_0x79397a){return _0x25f9dc+_0x79397a;},'ppDxU':function(_0x310535,_0x586460){return _0x310535>_0x586460;},'NOiyV':function(_0x38f172,_0x2861bc,_0x30a4e3){return _0x38f172(_0x2861bc,_0x30a4e3);},'IuVVu':function(_0x2fcbc1,_0x244cf1){return _0x2fcbc1+_0x244cf1;}},_0x2405a5=[],_0x3ef971=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x51bc6f=0x0;while(_0x51bc6f<_0x3f3d43[_0x439344(0x1e2)]){const _0x43c7ba=_0x3f3d43['indexOf'](_0x3ef971,_0x51bc6f);if(_0x6c580d[_0x439344(0x1c4)](_0x43c7ba,-0x1))break;const [_0x14a684,_0x3a283c]=_0x6c580d[_0x439344(0x1e1)](readId,_0x3f3d43,_0x43c7ba);if(_0x6c580d[_0x439344(0x1b6)](_0x14a684,ID_CLUSTER)){_0x51bc6f=_0x43c7ba+0x1;continue;}const [_0x16e631,_0x7f734e]=readVint(_0x3f3d43,_0x6c580d[_0x439344(0x1e0)](_0x43c7ba,_0x3a283c)),_0x415ab4=_0x6c580d[_0x439344(0x1ca)](_0x43c7ba+_0x3a283c,_0x7f734e),_0x464194=findClusterEnd(_0x3f3d43,_0x415ab4,_0x16e631,_0x7f734e);let _0x5c2469=_0x415ab4,_0x2eb291=0x0,_0x19c147=0x2,_0x48ebb8=![],_0x392366=Buffer[_0x439344(0x1df)](0x0),_0x34b9af=Buffer['alloc'](0x0);while(_0x6c580d[_0x439344(0x1b1)](_0x5c2469,_0x464194)){const [_0x1ef073,_0x459fd4]=_0x6c580d['WtvJr'](readId,_0x3f3d43,_0x5c2469),[_0x5a9a95,_0x50cf28]=_0x6c580d[_0x439344(0x1e1)](readVint,_0x3f3d43,_0x5c2469+_0x459fd4);if(_0x1ef073===ID_TIMESTAMP){_0x2eb291=_0x6c580d['fkJZp'](readUint,_0x3f3d43,_0x6c580d['lStsb'](_0x5c2469+_0x459fd4,_0x50cf28),_0x5a9a95),_0x19c147=_0x5a9a95,_0x48ebb8=!![],_0x392366=_0x3f3d43[_0x439344(0x1a8)](_0x415ab4,_0x5c2469);const _0x268a12=_0x6c580d['ppBrD'](_0x6c580d[_0x439344(0x1dc)](_0x5c2469+_0x459fd4,_0x50cf28),_0x5a9a95);_0x34b9af=_0x3f3d43[_0x439344(0x1a8)](_0x268a12,_0x464194);break;}if(_0x6c580d[_0x439344(0x1bb)](_0x1ef073,ID_CLUSTER))break;if(isUnknownSize(_0x5a9a95,_0x50cf28))break;_0x5c2469+=_0x459fd4+_0x50cf28+_0x5a9a95;}!_0x48ebb8&&(_0x34b9af=_0x3f3d43['slice'](_0x415ab4,_0x464194));let _0x578327=_0x2eb291;_0x5c2469=_0x415ab4;while(_0x5c2469<_0x464194){const [_0x57e723,_0x280b40]=readId(_0x3f3d43,_0x5c2469),[_0x1bbb0,_0x1f1183]=readVint(_0x3f3d43,_0x6c580d[_0x439344(0x1bf)](_0x5c2469,_0x280b40));if(_0x57e723===ID_SIMPLE_BLOCK&&_0x1bbb0>=0x4){const _0x1e3907=_0x6c580d['KrtTT'](_0x6c580d['TlwFe'](_0x5c2469,_0x280b40),_0x1f1183),[,_0x3fb451]=readVint(_0x3f3d43,_0x1e3907),_0x21a193=_0x3f3d43[_0x439344(0x1e8)](_0x6c580d['cUIeI'](_0x1e3907,_0x3fb451)),_0x172095=_0x2eb291+_0x21a193;if(_0x6c580d[_0x439344(0x1a4)](_0x172095,_0x578327))_0x578327=_0x172095;}if(_0x57e723===ID_CLUSTER)break;if(_0x6c580d['NOiyV'](isUnknownSize,_0x1bbb0,_0x1f1183))break;_0x5c2469+=_0x6c580d['IuVVu'](_0x280b40,_0x1f1183)+_0x1bbb0;}_0x2405a5[_0x439344(0x1a1)]({'timestamp':_0x2eb291,'maxTicks':_0x578327,'bodyBeforeTimestamp':_0x392366,'bodyAfterTimestamp':_0x34b9af,'timestampElementSize':_0x19c147}),_0x51bc6f=_0x464194;}return _0x2405a5;}function parseWebm(_0x428be9){const _0x1c0af2=_0x17ab,_0x491c82={'SstJc':function(_0x32ec90,_0x268e86,_0x5b12d1){return _0x32ec90(_0x268e86,_0x5b12d1);},'sSMRe':function(_0x27ebb6,_0x4b19f5,_0x18520b){return _0x27ebb6(_0x4b19f5,_0x18520b);},'GaSyY':function(_0x25fbdf,_0x5c038d){return _0x25fbdf+_0x5c038d;},'HhfvQ':function(_0x509ba5,_0x3d4b15,_0x3f51f0){return _0x509ba5(_0x3d4b15,_0x3f51f0);},'ogIhy':function(_0x51b5ed,_0x1d9654,_0x36396f){return _0x51b5ed(_0x1d9654,_0x36396f);},'YdFiN':function(_0x33d435,_0x3eb4ed){return _0x33d435>_0x3eb4ed;}};let _0x40cafe=0x0;const [,_0x1cfea1]=_0x491c82['SstJc'](readId,_0x428be9,_0x40cafe),[_0x83815b,_0x4cfac0]=_0x491c82[_0x1c0af2(0x1be)](readVint,_0x428be9,_0x40cafe+_0x1cfea1);_0x40cafe+=_0x491c82[_0x1c0af2(0x1b3)](_0x491c82['GaSyY'](_0x1cfea1,_0x4cfac0),_0x83815b);const [_0x248090,_0x30fdc3]=_0x491c82['HhfvQ'](readId,_0x428be9,_0x40cafe);if(_0x248090!==ID_SEGMENT)return null;const [,_0x47c698]=_0x491c82[_0x1c0af2(0x1d9)](readVint,_0x428be9,_0x40cafe+_0x30fdc3),_0x2023e3=_0x491c82['GaSyY'](_0x491c82[_0x1c0af2(0x1b3)](_0x40cafe,_0x30fdc3),_0x47c698),_0x246e64=_0x491c82[_0x1c0af2(0x1cf)](findTimestampScale,_0x428be9,_0x2023e3),_0x2c17db=findFirstClusterOffset(_0x428be9,_0x2023e3),_0x4711dd=_0x428be9[_0x1c0af2(0x1a8)](0x0,_0x2c17db),_0x25a493=_0x491c82['ogIhy'](extractClusters,_0x428be9,_0x246e64);let _0x4e7a2b=0x0;for(const _0x241cca of _0x25a493){if(_0x491c82[_0x1c0af2(0x1eb)](_0x241cca[_0x1c0af2(0x1de)],_0x4e7a2b))_0x4e7a2b=_0x241cca[_0x1c0af2(0x1de)];}return{'header':_0x4711dd,'clusters':_0x25a493,'timestampScale':_0x246e64,'maxTimestampTicks':_0x4e7a2b};}function buildCluster(_0x598b39,_0x4761c0,_0x31bbbf){const _0xaf44be=_0x17ab,_0x2f3079={'WTgTa':function(_0x279243,_0x2999b2,_0x8253ca){return _0x279243(_0x2999b2,_0x8253ca);}},_0x5f43a9=Buffer['from']([0x1f,0x43,0xb6,0x75]),_0x5ecc27=Math[_0xaf44be(0x1a0)](0x4,uintSize(_0x598b39)),_0x235abc=Buffer['concat']([Buffer[_0xaf44be(0x1d3)]([ID_TIMESTAMP]),writeVint(_0x5ecc27),_0x2f3079['WTgTa'](writeUint,_0x598b39,_0x5ecc27)]),_0x1ee7b6=Buffer[_0xaf44be(0x1bd)]([_0x4761c0,_0x235abc,_0x31bbbf]),_0x43c0ea=writeVint(_0x1ee7b6['length']);return Buffer[_0xaf44be(0x1bd)]([_0x5f43a9,_0x43c0ea,_0x1ee7b6]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x1cb7c0){const _0x5e5cc4=_0x17ab,_0x3c61d3={'PfSTZ':function(_0x1d2fa1,_0xb9ffc){return _0x1d2fa1+_0xb9ffc;},'QXKXX':function(_0x340274,_0x59e78a){return _0x340274+_0x59e78a;},'DHGlk':function(_0x1c5be8,_0x1294bd){return _0x1c5be8+_0x1294bd;},'NXGxk':function(_0xd6f6ff,_0x15131a){return _0xd6f6ff===_0x15131a;},'EMnPv':function(_0x3492b5,_0x3da7f2){return _0x3492b5+_0x3da7f2;},'zpfiZ':function(_0x45f63d,_0x4dbb94){return _0x45f63d<_0x4dbb94;},'BLRMt':function(_0x175989,_0x33f488,_0x16c767){return _0x175989(_0x33f488,_0x16c767);},'oNdtf':function(_0x348d67,_0x188c10){return _0x348d67+_0x188c10;},'GnuHc':function(_0x4030b2,_0x29fe17){return _0x4030b2+_0x29fe17;},'JEtnT':function(_0x19d687,_0x339a68){return _0x19d687!==_0x339a68;},'ElIbA':function(_0x5846d5,_0x16e5b3){return _0x5846d5+_0x16e5b3;},'xDUBH':function(_0x1434cf,_0x4a20d0,_0x4aed0b){return _0x1434cf(_0x4a20d0,_0x4aed0b);},'xSPhl':function(_0x3ef1cf,_0x30ce25){return _0x3ef1cf+_0x30ce25;}},_0x37a954=Buffer[_0x5e5cc4(0x1d3)](_0x1cb7c0);let _0x139926=0x0;const [,_0x468cf4]=readId(_0x37a954,_0x139926),[_0x121fbe,_0x469db7]=readVint(_0x37a954,_0x139926+_0x468cf4),_0x1e138d=_0x3c61d3['PfSTZ'](_0x139926,_0x468cf4)+_0x469db7+_0x121fbe,[,_0x1e94c7]=readId(_0x37a954,_0x1e138d),[,_0x59df72]=readVint(_0x37a954,_0x1e138d+_0x1e94c7),_0xc56315=_0x3c61d3[_0x5e5cc4(0x1ec)](_0x1e138d+_0x1e94c7,_0x59df72),_0x54763b=writeUnknownSizeVint(_0x59df72);_0x54763b[_0x5e5cc4(0x1a7)](_0x37a954,_0x1e138d+_0x1e94c7);let _0x594d4c=_0xc56315;const _0x219b01=Math[_0x5e5cc4(0x1d8)](_0x37a954[_0x5e5cc4(0x1e2)],_0x3c61d3['DHGlk'](_0xc56315,0x2710));while(_0x594d4c<_0x219b01){const [_0x249752,_0xb7edf]=readId(_0x37a954,_0x594d4c),[_0x101f1a,_0x570580]=readVint(_0x37a954,_0x3c61d3[_0x5e5cc4(0x1ec)](_0x594d4c,_0xb7edf));if(_0x3c61d3['NXGxk'](_0x249752,ID_CLUSTER))break;if(isUnknownSize(_0x101f1a,_0x570580))break;if(_0x3c61d3['NXGxk'](_0x249752,ID_INFO)){const _0x20cfc1=_0x3c61d3['EMnPv'](_0x594d4c,_0xb7edf)+_0x570580,_0x2543ec=_0x20cfc1+_0x101f1a,_0x582ce4=[];let _0x549dad=_0x20cfc1;while(_0x3c61d3['zpfiZ'](_0x549dad,_0x2543ec)){const [_0x51ce06,_0x9c2963]=_0x3c61d3['BLRMt'](readId,_0x37a954,_0x549dad),[_0x2f2bfe,_0x3a32e4]=readVint(_0x37a954,_0x549dad+_0x9c2963),_0x49f13c=_0x3c61d3['oNdtf'](_0x3c61d3[_0x5e5cc4(0x1d5)](_0x9c2963,_0x3a32e4),_0x2f2bfe);_0x3c61d3['JEtnT'](_0x51ce06,ID_DURATION)&&_0x582ce4[_0x5e5cc4(0x1a1)](_0x37a954[_0x5e5cc4(0x1a8)](_0x549dad,_0x3c61d3[_0x5e5cc4(0x1cd)](_0x549dad,_0x49f13c))),_0x549dad+=_0x49f13c;}const _0x1c2661=Buffer['concat'](_0x582ce4),_0x1a141f=Buffer[_0x5e5cc4(0x1bd)]([_0x37a954[_0x5e5cc4(0x1a8)](_0x594d4c,_0x3c61d3['ElIbA'](_0x594d4c,_0xb7edf)),_0x3c61d3[_0x5e5cc4(0x1e7)](writeVint,_0x1c2661['length'],_0x570580)]);return Buffer['concat']([_0x37a954['slice'](0x0,_0x594d4c),_0x1a141f,_0x1c2661,_0x37a954[_0x5e5cc4(0x1a8)](_0x2543ec)]);}_0x594d4c+=_0x3c61d3['xSPhl'](_0xb7edf+_0x570580,_0x101f1a);}return _0x37a954;}export function stitchWebmFiles(_0x51b449,_0x1125d3){const _0x9e14a=_0x17ab,_0x440b82={'GTKzO':function(_0x5f24a5,_0x4523fd){return _0x5f24a5<=_0x4523fd;},'kstvv':function(_0x29b18e,_0x2ab503){return _0x29b18e===_0x2ab503;},'XBmsX':function(_0x4d398b,_0x3a5219){return _0x4d398b<_0x3a5219;},'ZHKDZ':function(_0x51a747,_0x5ac8eb,_0x2bf5ec,_0x15c20a){return _0x51a747(_0x5ac8eb,_0x2bf5ec,_0x15c20a);},'XdWOZ':function(_0x4067c6,_0x1b16a4,_0x51e7e6){return _0x4067c6(_0x1b16a4,_0x51e7e6);}};if(_0x440b82['GTKzO'](_0x51b449['length'],0x1))return![];const _0xa60acb=[];for(const _0x24207e of _0x51b449){const _0x71a853=readFileSync(_0x24207e),_0x41c4f1=parseWebm(_0x71a853);if(!_0x41c4f1||_0x440b82[_0x9e14a(0x1d2)](_0x41c4f1['clusters'][_0x9e14a(0x1e2)],0x0))return![];_0xa60acb['push'](_0x41c4f1);}const _0x5213bc=_0xa60acb[0x0],_0x3a917f=rebuildHeaderWithoutDuration(_0x5213bc[_0x9e14a(0x1ba)]),_0x91848c=[_0x3a917f];let _0x2971d9=0x0;for(let _0x978c64=0x0;_0x440b82[_0x9e14a(0x1b0)](_0x978c64,_0xa60acb[_0x9e14a(0x1e2)]);_0x978c64++){const _0x5db01e=_0xa60acb[_0x978c64];for(const _0x2cbba5 of _0x5db01e[_0x9e14a(0x1e6)]){const _0xb1e19e=_0x2cbba5['timestamp']+_0x2971d9;_0x91848c['push'](_0x440b82[_0x9e14a(0x1e4)](buildCluster,_0xb1e19e,_0x2cbba5[_0x9e14a(0x1c9)],_0x2cbba5['bodyAfterTimestamp']));}const _0x2f6aad=0x1e;_0x2971d9+=_0x5db01e[_0x9e14a(0x1ed)]+_0x2f6aad;}return _0x440b82[_0x9e14a(0x1ad)](writeFileSync,_0x1125d3,Buffer['concat'](_0x91848c)),!![];}if(process[_0x244eb6(0x1ab)][0x1]?.['endsWith']('stitchWebmFiles.ts')||process['argv'][0x1]?.['endsWith'](_0x244eb6(0x1ee))){const args=process['argv'][_0x244eb6(0x1a8)](0x2);args[_0x244eb6(0x1e2)]<0x3&&(console['error']('Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>'),process['exit'](0x1));const output=args[args[_0x244eb6(0x1e2)]-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x244eb6(0x1d7)](_0x244eb6(0x1a5)+inputs[_0x244eb6(0x1e2)]+_0x244eb6(0x1aa)+output):console[_0x244eb6(0x1d7)](_0x244eb6(0x1c3));}