@ranger-testing/ranger-cli 2.4.3 → 2.4.5

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 (72) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/setup/claude.js +1 -1
  25. package/build/commands/setup/opencode.js +1 -1
  26. package/build/commands/setupCi.js +1 -1
  27. package/build/commands/skillup.js +1 -1
  28. package/build/commands/start.js +1 -1
  29. package/build/commands/status.js +1 -1
  30. package/build/commands/update.js +1 -1
  31. package/build/commands/updateEnv.js +1 -1
  32. package/build/commands/useEnv.js +1 -1
  33. package/build/commands/utils/activeProfile.js +1 -1
  34. package/build/commands/utils/agentEnv.js +1 -1
  35. package/build/commands/utils/browserSessionsApi.js +1 -1
  36. package/build/commands/utils/claudeConfig.js +1 -1
  37. package/build/commands/utils/claudeOverrideSettings.js +1 -0
  38. package/build/commands/utils/claudePlugin.js +1 -1
  39. package/build/commands/utils/crypto.js +1 -1
  40. package/build/commands/utils/desirePathLog.js +1 -1
  41. package/build/commands/utils/deviceAuth.js +1 -1
  42. package/build/commands/utils/environment.js +1 -1
  43. package/build/commands/utils/featureApi.js +1 -1
  44. package/build/commands/utils/featureReportGenerator.js +1 -1
  45. package/build/commands/utils/fixWebmDuration.js +1 -1
  46. package/build/commands/utils/git.js +1 -1
  47. package/build/commands/utils/keychain.js +1 -1
  48. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  49. package/build/commands/utils/mcpImageBase64.js +1 -1
  50. package/build/commands/utils/model.js +1 -1
  51. package/build/commands/utils/opencodeConfig.js +1 -1
  52. package/build/commands/utils/playwrightCli.js +1 -1
  53. package/build/commands/utils/profileMessages.js +1 -1
  54. package/build/commands/utils/profileSetupBanner.js +1 -1
  55. package/build/commands/utils/rangerConfig.js +1 -1
  56. package/build/commands/utils/rangerRoot.js +1 -1
  57. package/build/commands/utils/reportGenerator.js +1 -1
  58. package/build/commands/utils/retry.js +1 -1
  59. package/build/commands/utils/sessionCache.js +1 -1
  60. package/build/commands/utils/settings.js +1 -1
  61. package/build/commands/utils/skillContent.js +1 -1
  62. package/build/commands/utils/skills.js +1 -1
  63. package/build/commands/utils/stitchWebmFiles.js +1 -1
  64. package/build/commands/utils/telemetry.js +1 -1
  65. package/build/commands/utils/tokenRefresh.js +1 -0
  66. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  67. package/build/commands/utils/userApi.js +1 -1
  68. package/build/commands/utils/version.js +1 -1
  69. package/build/commands/verifyFeature.js +1 -1
  70. package/build/commands/verifyFeatureCli.js +1 -1
  71. package/build/commands/verifyInBrowser.js +1 -1
  72. package/package.json +1 -1
@@ -1 +1 @@
1
- const _0x44e209=_0x2621;(function(_0x14d508,_0x69d67a){const _0x5ad77b=_0x2621,_0x52afda=_0x14d508();while(!![]){try{const _0x318abd=parseInt(_0x5ad77b(0x169))/0x1*(-parseInt(_0x5ad77b(0x158))/0x2)+-parseInt(_0x5ad77b(0x138))/0x3*(parseInt(_0x5ad77b(0x16d))/0x4)+-parseInt(_0x5ad77b(0x155))/0x5*(-parseInt(_0x5ad77b(0x156))/0x6)+-parseInt(_0x5ad77b(0x135))/0x7*(-parseInt(_0x5ad77b(0x157))/0x8)+parseInt(_0x5ad77b(0x152))/0x9*(parseInt(_0x5ad77b(0x150))/0xa)+-parseInt(_0x5ad77b(0x130))/0xb+parseInt(_0x5ad77b(0x13b))/0xc;if(_0x318abd===_0x69d67a)break;else _0x52afda['push'](_0x52afda['shift']());}catch(_0x5cd18d){_0x52afda['push'](_0x52afda['shift']());}}}(_0x5ed0,0xe994a));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(_0x5dc42e,_0x58e8d5){const _0x15d905=_0x2621,_0x37f05d={'hXpUw':function(_0x19b024,_0x41f8b2){return _0x19b024>=_0x41f8b2;},'GcNOp':function(_0x1b4b87,_0x5a4e74){return _0x1b4b87<=_0x5a4e74;},'GFTMi':function(_0x2c4d64,_0x2728c1){return _0x2c4d64+_0x2728c1;},'Cqihx':function(_0x9eaac2,_0x11b987){return _0x9eaac2&_0x11b987;},'HjqAk':function(_0x463bba,_0x14565e){return _0x463bba-_0x14565e;},'MXDmV':function(_0x486d96,_0x1332d3){return _0x486d96<_0x1332d3;}};if(_0x37f05d['hXpUw'](_0x58e8d5,_0x5dc42e[_0x15d905(0x172)]))return[0x0,0x0];const _0xa6cd72=_0x5dc42e[_0x58e8d5];let _0x198541=0x1,_0x2f78d2=0x80;while(_0x37f05d['GcNOp'](_0x198541,0x8)&&!(_0xa6cd72&_0x2f78d2)){_0x198541++,_0x2f78d2>>=0x1;}if(_0x37f05d[_0x15d905(0x143)](_0x58e8d5,_0x198541)>_0x5dc42e['length'])return[0x0,0x0];let _0x51f95b=_0x37f05d['Cqihx'](_0xa6cd72,_0x37f05d[_0x15d905(0x14a)](_0x2f78d2,0x1));for(let _0x104db4=0x1;_0x37f05d['MXDmV'](_0x104db4,_0x198541);_0x104db4++){_0x51f95b=_0x37f05d['GFTMi'](_0x51f95b*0x100,_0x5dc42e[_0x58e8d5+_0x104db4]);}return[_0x51f95b,_0x198541];}function readId(_0x43ab0f,_0x51a3db){const _0x433509=_0x2621,_0xc4214={'WZAIf':function(_0x3f2328,_0x297854){return _0x3f2328>=_0x297854;},'bVPNs':function(_0x5ce8e6,_0x1ae84d){return _0x5ce8e6>=_0x1ae84d;},'SnlHd':function(_0x45aaec,_0x223ab1){return _0x45aaec>_0x223ab1;},'azbJB':function(_0x474785,_0x23cfff){return _0x474785+_0x23cfff;}};if(_0x51a3db>=_0x43ab0f[_0x433509(0x172)])return[0x0,0x0];const _0x33fc44=_0x43ab0f[_0x51a3db];let _0x4162f8;if(_0x33fc44>=0x80)_0x4162f8=0x1;else{if(_0xc4214['WZAIf'](_0x33fc44,0x40))_0x4162f8=0x2;else{if(_0xc4214['WZAIf'](_0x33fc44,0x20))_0x4162f8=0x3;else{if(_0xc4214['bVPNs'](_0x33fc44,0x10))_0x4162f8=0x4;else return[_0x33fc44,0x1];}}}if(_0xc4214[_0x433509(0x147)](_0x51a3db+_0x4162f8,_0x43ab0f[_0x433509(0x172)]))return[0x0,0x0];let _0x3bde61=0x0;for(let _0x1f49b6=0x0;_0x1f49b6<_0x4162f8;_0x1f49b6++){_0x3bde61=_0x3bde61*0x100+_0x43ab0f[_0xc4214['azbJB'](_0x51a3db,_0x1f49b6)];}return[_0x3bde61,_0x4162f8];}function readUint(_0x249acc,_0x5f3883,_0x1fbb68){const _0x1732a9={'bkVfK':function(_0x4501c3,_0x19de5e){return _0x4501c3+_0x19de5e;}};let _0xa9fa98=0x0;for(let _0x57998c=0x0;_0x57998c<_0x1fbb68;_0x57998c++){_0xa9fa98=_0xa9fa98*0x100+_0x249acc[_0x1732a9['bkVfK'](_0x5f3883,_0x57998c)];}return _0xa9fa98;}function isUnknownSize(_0x281878,_0x42cf45){const _0x3101d7=_0x2621;return _0x281878===Math[_0x3101d7(0x14f)](0x2,0x7*_0x42cf45)-0x1;}function writeVint(_0x1c87e4,_0x537f3d){const _0x2132c3=_0x2621,_0x3f3d50={'JCnht':function(_0x4b6767,_0x4b953b){return _0x4b6767||_0x4b953b;},'ifJzQ':function(_0x358e81,_0xc92d4b){return _0x358e81&_0xc92d4b;},'Cpnbm':function(_0x35c608,_0x5aaafa){return _0x35c608<<_0x5aaafa;},'fcSMH':function(_0x465c59,_0x337b95){return _0x465c59-_0x337b95;}};let _0x473e1c=_0x3f3d50[_0x2132c3(0x139)](_0x537f3d,0x1);while(Math[_0x2132c3(0x14f)](0x2,0x7*_0x473e1c)-0x2<_0x1c87e4)_0x473e1c++;const _0x1e296f=Buffer['alloc'](_0x473e1c);for(let _0x5e768e=_0x473e1c-0x1;_0x5e768e>=0x0;_0x5e768e--){_0x1e296f[_0x5e768e]=_0x3f3d50[_0x2132c3(0x15d)](_0x1c87e4,0xff),_0x1c87e4=Math['floor'](_0x1c87e4/0x100);}return _0x1e296f[0x0]|=_0x3f3d50[_0x2132c3(0x14d)](0x1,_0x3f3d50[_0x2132c3(0x167)](0x8,_0x473e1c)),_0x1e296f;}function _0x2621(_0x5ec9e1,_0x557f48){_0x5ec9e1=_0x5ec9e1-0x12d;const _0x5ed043=_0x5ed0();let _0x26210d=_0x5ed043[_0x5ec9e1];return _0x26210d;}function writeUint(_0x3813ba,_0x1c4595){const _0x2ab8cf=_0x2621,_0x393374=Buffer[_0x2ab8cf(0x160)](_0x1c4595);for(let _0xbc09bd=_0x1c4595-0x1;_0xbc09bd>=0x0;_0xbc09bd--){_0x393374[_0xbc09bd]=_0x3813ba&0xff,_0x3813ba=Math[_0x2ab8cf(0x12d)](_0x3813ba/0x100);}return _0x393374;}function writeUnknownSizeVint(_0x3e7ca7){const _0x4c0c58=_0x2621,_0x58629e={'WXhDv':function(_0x940ce9,_0x1afd8d){return _0x940ce9>>_0x1afd8d;},'amylL':function(_0x4868ca,_0x4bcdb6){return _0x4868ca-_0x4bcdb6;}},_0x2a4602=Buffer[_0x4c0c58(0x160)](_0x3e7ca7,0xff);return _0x2a4602[0x0]=_0x58629e[_0x4c0c58(0x142)](0xff,_0x58629e['amylL'](_0x3e7ca7,0x1)),_0x2a4602;}function uintSize(_0x4257d7){const _0x1da4d1=_0x2621,_0x3b3e76={'bdapm':function(_0x354cbe,_0x145b89){return _0x354cbe===_0x145b89;},'dnLli':function(_0x23faa6,_0x2e811b){return _0x23faa6/_0x2e811b;}};if(_0x3b3e76[_0x1da4d1(0x13a)](_0x4257d7,0x0))return 0x1;let _0x30f19d=0x0,_0x3e2fb1=_0x4257d7;while(_0x3e2fb1>0x0){_0x30f19d++,_0x3e2fb1=Math[_0x1da4d1(0x12d)](_0x3b3e76['dnLli'](_0x3e2fb1,0x100));}return _0x30f19d;}function findTimestampScale(_0x4a717f,_0x16a7c1){const _0x58658e=_0x2621,_0x385d18={'CdMCc':function(_0x57a78c,_0x38f62){return _0x57a78c<_0x38f62;},'XhKNO':function(_0x46386b,_0x384af2,_0x30b606){return _0x46386b(_0x384af2,_0x30b606);},'HJswY':function(_0x34cf6b,_0x3aafbc){return _0x34cf6b+_0x3aafbc;},'KMchk':function(_0x9bb5c8,_0x41de72){return _0x9bb5c8===_0x41de72;},'VPOSf':function(_0x51e7c2,_0x3cbb40){return _0x51e7c2+_0x3cbb40;},'uhTkg':function(_0x33c71a,_0x41342a,_0x201691,_0x3de6e8){return _0x33c71a(_0x41342a,_0x201691,_0x3de6e8);},'Cfhyi':function(_0xad4084,_0x5cd26e){return _0xad4084+_0x5cd26e;}};let _0x159224=_0x16a7c1;const _0x9fffd2=Math[_0x58658e(0x145)](_0x4a717f[_0x58658e(0x172)],_0x16a7c1+0x2710);while(_0x385d18[_0x58658e(0x159)](_0x159224,_0x9fffd2)){const [_0x39859e,_0x1d1102]=readId(_0x4a717f,_0x159224),[_0x3a1da9,_0x5bdf9b]=_0x385d18[_0x58658e(0x154)](readVint,_0x4a717f,_0x385d18[_0x58658e(0x170)](_0x159224,_0x1d1102));if(_0x385d18[_0x58658e(0x15b)](_0x39859e,ID_INFO)){let _0x12d95b=_0x385d18[_0x58658e(0x16a)](_0x159224,_0x1d1102)+_0x5bdf9b;const _0x567652=_0x12d95b+_0x3a1da9;while(_0x385d18['CdMCc'](_0x12d95b,_0x567652)){const [_0x56a652,_0x324784]=readId(_0x4a717f,_0x12d95b),[_0xb4a83e,_0x2fac63]=readVint(_0x4a717f,_0x12d95b+_0x324784);if(_0x56a652===ID_TIMESTAMP_SCALE)return _0x385d18['uhTkg'](readUint,_0x4a717f,_0x385d18['HJswY'](_0x385d18['VPOSf'](_0x12d95b,_0x324784),_0x2fac63),_0xb4a83e);_0x12d95b+=_0x385d18['VPOSf'](_0x324784+_0x2fac63,_0xb4a83e);}break;}if(_0x385d18[_0x58658e(0x15b)](_0x39859e,ID_CLUSTER))break;if(isUnknownSize(_0x3a1da9,_0x5bdf9b))break;_0x159224+=_0x385d18['Cfhyi'](_0x1d1102+_0x5bdf9b,_0x3a1da9);}return 0xf4240;}function findFirstClusterOffset(_0xdbe88f,_0x3f971e){const _0x251bba=_0x2621,_0x409b32={'dHYEz':function(_0x4a6752,_0x1dec2b){return _0x4a6752<_0x1dec2b;},'lJeMN':function(_0x4ad726,_0x1e1f21,_0x1d29f0){return _0x4ad726(_0x1e1f21,_0x1d29f0);},'XvVqt':function(_0x497c14,_0x2eb087){return _0x497c14===_0x2eb087;},'ckysW':function(_0x5dd2c7,_0x23d07a,_0x5b680f){return _0x5dd2c7(_0x23d07a,_0x5b680f);},'aCDaS':function(_0x3e8335,_0x4d98e5){return _0x3e8335+_0x4d98e5;}};let _0x46fe69=_0x3f971e;while(_0x409b32[_0x251bba(0x146)](_0x46fe69,_0xdbe88f['length'])){const [_0x43733e,_0x21560c]=_0x409b32['lJeMN'](readId,_0xdbe88f,_0x46fe69);if(_0x409b32[_0x251bba(0x16e)](_0x43733e,ID_CLUSTER))return _0x46fe69;const [_0x305ed7,_0x57ab68]=readVint(_0xdbe88f,_0x46fe69+_0x21560c);if(_0x409b32[_0x251bba(0x16f)](isUnknownSize,_0x305ed7,_0x57ab68))return _0x46fe69;_0x46fe69+=_0x409b32[_0x251bba(0x171)](_0x409b32[_0x251bba(0x171)](_0x21560c,_0x57ab68),_0x305ed7);}return _0xdbe88f['length'];}function findClusterEnd(_0x2e6722,_0x3a416f,_0x398685,_0xa4197a){const _0x1cb02d=_0x2621,_0x397595={'dwgAr':function(_0x52bca9,_0x12f7cb,_0x3051fb){return _0x52bca9(_0x12f7cb,_0x3051fb);},'UYUyQ':function(_0x4add95,_0x3b86b6){return _0x4add95+_0x3b86b6;},'udbAF':function(_0x195f5d,_0x42f4da,_0x3b924a){return _0x195f5d(_0x42f4da,_0x3b924a);}};if(!_0x397595['dwgAr'](isUnknownSize,_0x398685,_0xa4197a))return _0x397595['UYUyQ'](_0x3a416f,_0x398685);const _0x355f15=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x44fda3=_0x3a416f;while(_0x44fda3<_0x2e6722[_0x1cb02d(0x172)]-0x4){const [_0x3d4906,_0x5056a8]=_0x397595[_0x1cb02d(0x13e)](readId,_0x2e6722,_0x44fda3);if(_0x355f15[_0x1cb02d(0x134)](_0x3d4906))return _0x44fda3;const [_0x2b6130,_0x384ef5]=readVint(_0x2e6722,_0x397595['UYUyQ'](_0x44fda3,_0x5056a8));if(isUnknownSize(_0x2b6130,_0x384ef5))return _0x2e6722['length'];_0x44fda3+=_0x5056a8+_0x384ef5+_0x2b6130;}return _0x2e6722['length'];}function _0x5ed0(){const _0x4d59a5=['dHYEz','SnlHd','xkyEM','FruEj','HjqAk','argv','stitchWebmFiles.js','Cpnbm','DqTwG','pow','8286430LxrxXo','CeTra','9qjLCCc','timestamp','XhKNO','70KLMmse','120096DjiQgN','32RgXOCx','612akEXdY','CdMCc','push','KMchk','concat','ifJzQ','qxYja','max','alloc','indexOf','maxTimestampTicks','ZcIpw','endsWith','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','exit','fcSMH','Stitched\x20','2062CVXoIB','VPOSf','EwPYx','slice','3312296JOEvYy','XvVqt','ckysW','HJswY','aCDaS','length','floor','lNejh','BINYG','17713608HMxggM','maxTicks','LhJVP','Cpxri','has','2437449jrCPXk','Ybded','IRlvs','3EPshkt','JCnht','bdapm','18293100aqMHhM','IAvSk','from','udbAF','log','jYdrD','VeJWl','WXhDv','GFTMi','YKQxR','min'];_0x5ed0=function(){return _0x4d59a5;};return _0x5ed0();}function extractClusters(_0x3eb675,_0x5a5ff5){const _0x5b2e4a=_0x2621,_0x306727={'ndDxS':function(_0x1def3d,_0x28fbbd){return _0x1def3d<_0x28fbbd;},'IAvSk':function(_0x30abd8,_0x4ce8cf,_0x15fa40){return _0x30abd8(_0x4ce8cf,_0x15fa40);},'DqTwG':function(_0x254e47,_0x4f10f7,_0x11efac){return _0x254e47(_0x4f10f7,_0x11efac);},'QhBvI':function(_0x1bce3d,_0x4162ad){return _0x1bce3d+_0x4162ad;},'WxhdJ':function(_0x3aa1d8,_0x3cf55e,_0x5db275,_0x55af5a){return _0x3aa1d8(_0x3cf55e,_0x5db275,_0x55af5a);},'VeJWl':function(_0x45d618,_0x2ef840){return _0x45d618+_0x2ef840;},'NcnYB':function(_0x9a426,_0x57c442){return _0x9a426===_0x57c442;},'YKQxR':function(_0xa3bd6b,_0x4e628f){return _0xa3bd6b+_0x4e628f;},'njykr':function(_0x54950e,_0x3c57e0){return _0x54950e<_0x3c57e0;},'EwPYx':function(_0x1e5863,_0x2a7896,_0x3045cb){return _0x1e5863(_0x2a7896,_0x3045cb);},'Cpxri':function(_0x3b2e64,_0x4c2c21,_0x320e9c){return _0x3b2e64(_0x4c2c21,_0x320e9c);},'eKkMD':function(_0x5d9fd9,_0x3bef5e){return _0x5d9fd9===_0x3bef5e;},'ZcIpw':function(_0xc3e448,_0x35c8e5,_0x5f395f){return _0xc3e448(_0x35c8e5,_0x5f395f);}},_0x130d3b=[],_0x2e307a=Buffer[_0x5b2e4a(0x13d)]([0x1f,0x43,0xb6,0x75]);let _0x27b007=0x0;while(_0x306727['ndDxS'](_0x27b007,_0x3eb675[_0x5b2e4a(0x172)])){const _0x29e50e=_0x3eb675[_0x5b2e4a(0x161)](_0x2e307a,_0x27b007);if(_0x29e50e===-0x1)break;const [_0x3ca31e,_0x258b67]=_0x306727[_0x5b2e4a(0x13c)](readId,_0x3eb675,_0x29e50e);if(_0x3ca31e!==ID_CLUSTER){_0x27b007=_0x29e50e+0x1;continue;}const [_0x14694e,_0x5bf9c6]=_0x306727['IAvSk'](readVint,_0x3eb675,_0x29e50e+_0x258b67),_0xeaa9c2=_0x29e50e+_0x258b67+_0x5bf9c6,_0x265377=findClusterEnd(_0x3eb675,_0xeaa9c2,_0x14694e,_0x5bf9c6);let _0x422b81=_0xeaa9c2,_0x2c452f=0x0,_0x6400a0=0x2,_0x8962c4=![],_0x5768f0=Buffer['alloc'](0x0),_0x3c56a8=Buffer['alloc'](0x0);while(_0x422b81<_0x265377){const [_0x3a5d54,_0x5701b1]=readId(_0x3eb675,_0x422b81),[_0x491e73,_0x13f63f]=_0x306727[_0x5b2e4a(0x14e)](readVint,_0x3eb675,_0x306727['QhBvI'](_0x422b81,_0x5701b1));if(_0x3a5d54===ID_TIMESTAMP){_0x2c452f=_0x306727['WxhdJ'](readUint,_0x3eb675,_0x306727['VeJWl'](_0x422b81+_0x5701b1,_0x13f63f),_0x491e73),_0x6400a0=_0x491e73,_0x8962c4=!![],_0x5768f0=_0x3eb675[_0x5b2e4a(0x16c)](_0xeaa9c2,_0x422b81);const _0x1154b5=_0x306727[_0x5b2e4a(0x141)](_0x422b81,_0x5701b1)+_0x13f63f+_0x491e73;_0x3c56a8=_0x3eb675[_0x5b2e4a(0x16c)](_0x1154b5,_0x265377);break;}if(_0x306727['NcnYB'](_0x3a5d54,ID_CLUSTER))break;if(_0x306727[_0x5b2e4a(0x14e)](isUnknownSize,_0x491e73,_0x13f63f))break;_0x422b81+=_0x306727[_0x5b2e4a(0x144)](_0x5701b1+_0x13f63f,_0x491e73);}!_0x8962c4&&(_0x3c56a8=_0x3eb675['slice'](_0xeaa9c2,_0x265377));let _0x405623=_0x2c452f;_0x422b81=_0xeaa9c2;while(_0x306727['njykr'](_0x422b81,_0x265377)){const [_0x3ee061,_0x29e005]=_0x306727[_0x5b2e4a(0x14e)](readId,_0x3eb675,_0x422b81),[_0x2c7dc9,_0x3e6d77]=_0x306727[_0x5b2e4a(0x16b)](readVint,_0x3eb675,_0x422b81+_0x29e005);if(_0x306727['NcnYB'](_0x3ee061,ID_SIMPLE_BLOCK)&&_0x2c7dc9>=0x4){const _0x441d4d=_0x306727['QhBvI'](_0x422b81+_0x29e005,_0x3e6d77),[,_0x1be7d5]=_0x306727[_0x5b2e4a(0x133)](readVint,_0x3eb675,_0x441d4d),_0x56081b=_0x3eb675['readInt16BE'](_0x441d4d+_0x1be7d5),_0x13b0ce=_0x2c452f+_0x56081b;if(_0x13b0ce>_0x405623)_0x405623=_0x13b0ce;}if(_0x306727['eKkMD'](_0x3ee061,ID_CLUSTER))break;if(_0x306727[_0x5b2e4a(0x163)](isUnknownSize,_0x2c7dc9,_0x3e6d77))break;_0x422b81+=_0x306727[_0x5b2e4a(0x144)](_0x29e005,_0x3e6d77)+_0x2c7dc9;}_0x130d3b['push']({'timestamp':_0x2c452f,'maxTicks':_0x405623,'bodyBeforeTimestamp':_0x5768f0,'bodyAfterTimestamp':_0x3c56a8,'timestampElementSize':_0x6400a0}),_0x27b007=_0x265377;}return _0x130d3b;}function parseWebm(_0x4c7a69){const _0x3b8dc6=_0x2621,_0x1fc5b4={'FruEj':function(_0x27fc62,_0x1b4dd2,_0x221fac){return _0x27fc62(_0x1b4dd2,_0x221fac);},'BmDOW':function(_0x58ab30,_0x2f0bf4){return _0x58ab30+_0x2f0bf4;},'bgYgy':function(_0x266e1d,_0x4ae040){return _0x266e1d!==_0x4ae040;},'HJmLa':function(_0x4512c7,_0x2e50d6){return _0x4512c7+_0x2e50d6;},'UlyOh':function(_0x4124f1,_0x1ed238){return _0x4124f1+_0x1ed238;},'gypHf':function(_0x56f318,_0x37e1a0,_0x1fafb5){return _0x56f318(_0x37e1a0,_0x1fafb5);}};let _0x3c2a94=0x0;const [,_0xfae22c]=_0x1fc5b4[_0x3b8dc6(0x149)](readId,_0x4c7a69,_0x3c2a94),[_0x265316,_0x1ab47f]=readVint(_0x4c7a69,_0x3c2a94+_0xfae22c);_0x3c2a94+=_0x1fc5b4['BmDOW'](_0xfae22c,_0x1ab47f)+_0x265316;const [_0x51f29f,_0x478029]=readId(_0x4c7a69,_0x3c2a94);if(_0x1fc5b4['bgYgy'](_0x51f29f,ID_SEGMENT))return null;const [,_0x5258e0]=readVint(_0x4c7a69,_0x1fc5b4['HJmLa'](_0x3c2a94,_0x478029)),_0x2225ac=_0x1fc5b4['UlyOh'](_0x3c2a94+_0x478029,_0x5258e0),_0x47ac58=_0x1fc5b4['gypHf'](findTimestampScale,_0x4c7a69,_0x2225ac),_0x2fbc8a=findFirstClusterOffset(_0x4c7a69,_0x2225ac),_0x502048=_0x4c7a69['slice'](0x0,_0x2fbc8a),_0x3dbe54=extractClusters(_0x4c7a69,_0x47ac58);let _0x1a573e=0x0;for(const _0x5ab685 of _0x3dbe54){if(_0x5ab685[_0x3b8dc6(0x131)]>_0x1a573e)_0x1a573e=_0x5ab685['maxTicks'];}return{'header':_0x502048,'clusters':_0x3dbe54,'timestampScale':_0x47ac58,'maxTimestampTicks':_0x1a573e};}function buildCluster(_0x1e26cc,_0x52c7be,_0x34a52e){const _0x2f7ccb=_0x2621,_0x2e1f68={'ZzeRT':function(_0x3ba961,_0x175786){return _0x3ba961(_0x175786);}},_0x567462=Buffer[_0x2f7ccb(0x13d)]([0x1f,0x43,0xb6,0x75]),_0x191fec=Math[_0x2f7ccb(0x15f)](0x4,_0x2e1f68['ZzeRT'](uintSize,_0x1e26cc)),_0x118eec=Buffer['concat']([Buffer['from']([ID_TIMESTAMP]),writeVint(_0x191fec),writeUint(_0x1e26cc,_0x191fec)]),_0x1af192=Buffer['concat']([_0x52c7be,_0x118eec,_0x34a52e]),_0x5d4903=_0x2e1f68['ZzeRT'](writeVint,_0x1af192['length']);return Buffer[_0x2f7ccb(0x15c)]([_0x567462,_0x5d4903,_0x1af192]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x57a43){const _0x110bfe=_0x2621,_0x2ee4ea={'vnicX':function(_0x1dc111,_0x353d27,_0x5ae08a){return _0x1dc111(_0x353d27,_0x5ae08a);},'Ybded':function(_0x19ded1,_0xd7c092){return _0x19ded1+_0xd7c092;},'LhJVP':function(_0x3afbce,_0x129c47){return _0x3afbce+_0x129c47;},'jYdrD':function(_0x33d9cb,_0x59a821,_0x56459d){return _0x33d9cb(_0x59a821,_0x56459d);},'CNoDo':function(_0x4e3ed6,_0x3732ff){return _0x4e3ed6+_0x3732ff;},'xkyEM':function(_0x37107d,_0x52d439){return _0x37107d(_0x52d439);},'lNejh':function(_0x5f47f0,_0x10682e){return _0x5f47f0+_0x10682e;},'BINYG':function(_0x5d9c61,_0x5b5816,_0x319772){return _0x5d9c61(_0x5b5816,_0x319772);},'AgyXf':function(_0x227987,_0x5b0c66){return _0x227987<_0x5b0c66;},'JabKa':function(_0x4b6de2,_0x1ef977,_0x58bdc2){return _0x4b6de2(_0x1ef977,_0x58bdc2);},'PMubS':function(_0x29d323,_0x95f0b){return _0x29d323!==_0x95f0b;},'unqaq':function(_0x338149,_0x30d563,_0x26fae8){return _0x338149(_0x30d563,_0x26fae8);}},_0x50d768=Buffer['from'](_0x57a43);let _0x18e563=0x0;const [,_0x2d6b2a]=_0x2ee4ea['vnicX'](readId,_0x50d768,_0x18e563),[_0x41b6f1,_0x25c35b]=readVint(_0x50d768,_0x2ee4ea['Ybded'](_0x18e563,_0x2d6b2a)),_0x15416b=_0x2ee4ea['LhJVP'](_0x2ee4ea[_0x110bfe(0x132)](_0x2ee4ea['Ybded'](_0x18e563,_0x2d6b2a),_0x25c35b),_0x41b6f1),[,_0x22725d]=_0x2ee4ea[_0x110bfe(0x140)](readId,_0x50d768,_0x15416b),[,_0x2e5e23]=readVint(_0x50d768,_0x2ee4ea['CNoDo'](_0x15416b,_0x22725d)),_0x4d1ca6=_0x2ee4ea['CNoDo'](_0x15416b+_0x22725d,_0x2e5e23),_0xb77fd0=_0x2ee4ea[_0x110bfe(0x148)](writeUnknownSizeVint,_0x2e5e23);_0xb77fd0['copy'](_0x50d768,_0x2ee4ea[_0x110bfe(0x12e)](_0x15416b,_0x22725d));let _0x1f34c1=_0x4d1ca6;const _0x4a589d=Math['min'](_0x50d768[_0x110bfe(0x172)],_0x2ee4ea[_0x110bfe(0x136)](_0x4d1ca6,0x2710));while(_0x1f34c1<_0x4a589d){const [_0x48cce7,_0x334cd9]=readId(_0x50d768,_0x1f34c1),[_0xf88e45,_0x592223]=_0x2ee4ea[_0x110bfe(0x12f)](readVint,_0x50d768,_0x1f34c1+_0x334cd9);if(_0x48cce7===ID_CLUSTER)break;if(_0x2ee4ea['jYdrD'](isUnknownSize,_0xf88e45,_0x592223))break;if(_0x48cce7===ID_INFO){const _0x4c7efe=_0x2ee4ea['Ybded'](_0x1f34c1,_0x334cd9)+_0x592223,_0x289f3f=_0x2ee4ea[_0x110bfe(0x12e)](_0x4c7efe,_0xf88e45),_0x3aff4c=[];let _0x31196c=_0x4c7efe;while(_0x2ee4ea['AgyXf'](_0x31196c,_0x289f3f)){const [_0x5302f8,_0x55e485]=_0x2ee4ea['JabKa'](readId,_0x50d768,_0x31196c),[_0x16561d,_0x5a2ed2]=readVint(_0x50d768,_0x2ee4ea['lNejh'](_0x31196c,_0x55e485)),_0x2a309b=_0x2ee4ea[_0x110bfe(0x136)](_0x2ee4ea['CNoDo'](_0x55e485,_0x5a2ed2),_0x16561d);_0x2ee4ea['PMubS'](_0x5302f8,ID_DURATION)&&_0x3aff4c[_0x110bfe(0x15a)](_0x50d768[_0x110bfe(0x16c)](_0x31196c,_0x31196c+_0x2a309b)),_0x31196c+=_0x2a309b;}const _0x4923f4=Buffer['concat'](_0x3aff4c),_0x467177=Buffer['concat']([_0x50d768[_0x110bfe(0x16c)](_0x1f34c1,_0x2ee4ea['lNejh'](_0x1f34c1,_0x334cd9)),_0x2ee4ea['unqaq'](writeVint,_0x4923f4['length'],_0x592223)]);return Buffer['concat']([_0x50d768['slice'](0x0,_0x1f34c1),_0x467177,_0x4923f4,_0x50d768['slice'](_0x289f3f)]);}_0x1f34c1+=_0x334cd9+_0x592223+_0xf88e45;}return _0x50d768;}export function stitchWebmFiles(_0x45f0dc,_0x4480c2){const _0xd00b7a=_0x2621,_0x46170f={'IRlvs':function(_0x583c33,_0x22a048){return _0x583c33<=_0x22a048;},'CeTra':function(_0x3e3a92,_0x5dc491){return _0x3e3a92(_0x5dc491);},'eRUdL':function(_0x2bc9d8,_0x475eb6){return _0x2bc9d8===_0x475eb6;},'qxYja':function(_0x4919dd,_0x402581,_0x1bc94b,_0x52bd07){return _0x4919dd(_0x402581,_0x1bc94b,_0x52bd07);}};if(_0x46170f[_0xd00b7a(0x137)](_0x45f0dc['length'],0x1))return![];const _0x1ab0fa=[];for(const _0x47b9e2 of _0x45f0dc){const _0x2b08b2=_0x46170f[_0xd00b7a(0x151)](readFileSync,_0x47b9e2),_0x13dc65=parseWebm(_0x2b08b2);if(!_0x13dc65||_0x46170f['eRUdL'](_0x13dc65['clusters']['length'],0x0))return![];_0x1ab0fa[_0xd00b7a(0x15a)](_0x13dc65);}const _0x1067f9=_0x1ab0fa[0x0],_0x1dac3b=_0x46170f['CeTra'](rebuildHeaderWithoutDuration,_0x1067f9['header']),_0x49ed8f=[_0x1dac3b];let _0x3c10cd=0x0;for(let _0x35110c=0x0;_0x35110c<_0x1ab0fa['length'];_0x35110c++){const _0x283329=_0x1ab0fa[_0x35110c];for(const _0x219628 of _0x283329['clusters']){const _0x405e4f=_0x219628[_0xd00b7a(0x153)]+_0x3c10cd;_0x49ed8f[_0xd00b7a(0x15a)](_0x46170f[_0xd00b7a(0x15e)](buildCluster,_0x405e4f,_0x219628['bodyBeforeTimestamp'],_0x219628['bodyAfterTimestamp']));}const _0x2dfd8c=0x1e;_0x3c10cd+=_0x283329[_0xd00b7a(0x162)]+_0x2dfd8c;}return writeFileSync(_0x4480c2,Buffer['concat'](_0x49ed8f)),!![];}if(process['argv'][0x1]?.[_0x44e209(0x164)]('stitchWebmFiles.ts')||process[_0x44e209(0x14b)][0x1]?.[_0x44e209(0x164)](_0x44e209(0x14c))){const args=process[_0x44e209(0x14b)][_0x44e209(0x16c)](0x2);args['length']<0x3&&(console['error']('Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>'),process[_0x44e209(0x166)](0x1));const output=args[args[_0x44e209(0x172)]-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x44e209(0x13f)](_0x44e209(0x168)+inputs['length']+'\x20files\x20->\x20'+output):console[_0x44e209(0x13f)](_0x44e209(0x165));}
1
+ const _0x2919ab=_0x30e3;(function(_0x355ec2,_0x4e851d){const _0x4b7546=_0x30e3,_0x552cf5=_0x355ec2();while(!![]){try{const _0x14aeb3=-parseInt(_0x4b7546(0x82))/0x1*(parseInt(_0x4b7546(0x94))/0x2)+-parseInt(_0x4b7546(0xa1))/0x3*(parseInt(_0x4b7546(0xb5))/0x4)+-parseInt(_0x4b7546(0x84))/0x5*(parseInt(_0x4b7546(0x8e))/0x6)+-parseInt(_0x4b7546(0x9c))/0x7+parseInt(_0x4b7546(0xb7))/0x8*(parseInt(_0x4b7546(0xa6))/0x9)+parseInt(_0x4b7546(0xaf))/0xa*(parseInt(_0x4b7546(0xa2))/0xb)+parseInt(_0x4b7546(0xad))/0xc;if(_0x14aeb3===_0x4e851d)break;else _0x552cf5['push'](_0x552cf5['shift']());}catch(_0x1f279d){_0x552cf5['push'](_0x552cf5['shift']());}}}(_0x1e2f,0x46d23));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(_0xf80a27,_0x404212){const _0x2b9e06=_0x30e3,_0x245b50={'EpySZ':function(_0x920517,_0x1b6f8b){return _0x920517<=_0x1b6f8b;},'QGQHa':function(_0x3cf0d1,_0xd7e9a){return _0x3cf0d1>_0xd7e9a;},'LUYHA':function(_0x4c1fc1,_0x53515b){return _0x4c1fc1&_0x53515b;}};if(_0x404212>=_0xf80a27['length'])return[0x0,0x0];const _0x4c1476=_0xf80a27[_0x404212];let _0x299d9f=0x1,_0x1fa090=0x80;while(_0x245b50['EpySZ'](_0x299d9f,0x8)&&!(_0x4c1476&_0x1fa090)){_0x299d9f++,_0x1fa090>>=0x1;}if(_0x245b50[_0x2b9e06(0x97)](_0x404212+_0x299d9f,_0xf80a27[_0x2b9e06(0xa3)]))return[0x0,0x0];let _0x859f9a=_0x245b50['LUYHA'](_0x4c1476,_0x1fa090-0x1);for(let _0x257079=0x1;_0x257079<_0x299d9f;_0x257079++){_0x859f9a=_0x859f9a*0x100+_0xf80a27[_0x404212+_0x257079];}return[_0x859f9a,_0x299d9f];}function _0x1e2f(){const _0xde7c8c=['FgPqF','FUTqL','9628116kznUDa','copy','160aJAHfq','gswib','mAqCf','VZCvd','micuj','cqDqA','8628UaMNml','slice','24QHIUAn','hgsko','from','alloc','stitchWebmFiles.js','pow','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','readInt16BE','RkIpC','YwDRi','ckoeo','min','16897oBAZom','floor','10vFhefO','AsBkr','ZARCH','HWQBg','push','gWjYV','qcZVB','bodyBeforeTimestamp','zlEcW','stitchWebmFiles.ts','730098LotiCc','onPoO','Aoumi','bodyAfterTimestamp','NmYTb','YZiFx','46oJkEda','maxTicks','rOZld','QGQHa','header','VeeDi','OHKfg','concat','996506VQRZlf','IwQBn','Rgltl','gvbGk','indexOf','732OZEmVP','330231kNbLWX','length','lgsON','nKfXN','924201SFqubj','SfcVa','ZHNBv','log','nDrmw'];_0x1e2f=function(){return _0xde7c8c;};return _0x1e2f();}function readId(_0x57eba8,_0xe682fa){const _0x2b3cb6=_0x30e3,_0x2e6005={'HWQBg':function(_0x209bb4,_0x82ecf6){return _0x209bb4>=_0x82ecf6;},'FgPqF':function(_0x274748,_0x518107){return _0x274748>=_0x518107;},'VeeDi':function(_0x32b107,_0x4b91c6){return _0x32b107>_0x4b91c6;},'cJjBL':function(_0x493f2d,_0x4ac56d){return _0x493f2d+_0x4ac56d;}};if(_0xe682fa>=_0x57eba8[_0x2b3cb6(0xa3)])return[0x0,0x0];const _0x4e14ee=_0x57eba8[_0xe682fa];let _0x107c03;if(_0x2e6005[_0x2b3cb6(0x87)](_0x4e14ee,0x80))_0x107c03=0x1;else{if(_0x4e14ee>=0x40)_0x107c03=0x2;else{if(_0x4e14ee>=0x20)_0x107c03=0x3;else{if(_0x2e6005[_0x2b3cb6(0xab)](_0x4e14ee,0x10))_0x107c03=0x4;else return[_0x4e14ee,0x1];}}}if(_0x2e6005[_0x2b3cb6(0x99)](_0xe682fa+_0x107c03,_0x57eba8['length']))return[0x0,0x0];let _0x3e6926=0x0;for(let _0x5711a0=0x0;_0x5711a0<_0x107c03;_0x5711a0++){_0x3e6926=_0x3e6926*0x100+_0x57eba8[_0x2e6005['cJjBL'](_0xe682fa,_0x5711a0)];}return[_0x3e6926,_0x107c03];}function readUint(_0x16587b,_0x296a72,_0x5bf1c4){const _0x45aac4={'alKIr':function(_0x2267c7,_0x400300){return _0x2267c7+_0x400300;}};let _0x1b445d=0x0;for(let _0x5cec2d=0x0;_0x5cec2d<_0x5bf1c4;_0x5cec2d++){_0x1b445d=_0x45aac4['alKIr'](_0x1b445d*0x100,_0x16587b[_0x296a72+_0x5cec2d]);}return _0x1b445d;}function isUnknownSize(_0x2c88a1,_0x5a6fe7){const _0x70a6fb=_0x30e3,_0x1d83f9={'vKQNr':function(_0x59d304,_0x2ab01b){return _0x59d304===_0x2ab01b;},'qcZVB':function(_0x8022c3,_0x468da2){return _0x8022c3-_0x468da2;},'RRXca':function(_0xad4070,_0x52e758){return _0xad4070*_0x52e758;}};return _0x1d83f9['vKQNr'](_0x2c88a1,_0x1d83f9[_0x70a6fb(0x8a)](Math[_0x70a6fb(0xbc)](0x2,_0x1d83f9['RRXca'](0x7,_0x5a6fe7)),0x1));}function writeVint(_0x50d7f9,_0x233dc1){const _0x2975ac=_0x30e3,_0x379252={'ABFbY':function(_0x9b2afe,_0x24439d){return _0x9b2afe<_0x24439d;},'hgsko':function(_0x4b65cb,_0x357212){return _0x4b65cb-_0x357212;},'NAaJL':function(_0x1284df,_0x3bd629){return _0x1284df>=_0x3bd629;},'wJjxJ':function(_0x5d14e9,_0x9eb45c){return _0x5d14e9/_0x9eb45c;},'onPoO':function(_0x2cbc89,_0x1ef187){return _0x2cbc89<<_0x1ef187;}};let _0x4e9dd3=_0x233dc1||0x1;while(_0x379252['ABFbY'](_0x379252['hgsko'](Math[_0x2975ac(0xbc)](0x2,0x7*_0x4e9dd3),0x2),_0x50d7f9))_0x4e9dd3++;const _0x5e9994=Buffer['alloc'](_0x4e9dd3);for(let _0xf67b99=_0x379252[_0x2975ac(0xb8)](_0x4e9dd3,0x1);_0x379252['NAaJL'](_0xf67b99,0x0);_0xf67b99--){_0x5e9994[_0xf67b99]=_0x50d7f9&0xff,_0x50d7f9=Math['floor'](_0x379252['wJjxJ'](_0x50d7f9,0x100));}return _0x5e9994[0x0]|=_0x379252[_0x2975ac(0x8f)](0x1,0x8-_0x4e9dd3),_0x5e9994;}function writeUint(_0xc414e3,_0xdc7457){const _0x2ba9cb=_0x30e3,_0x1314ee={'qJucf':function(_0x243753,_0x4cc3cf){return _0x243753>=_0x4cc3cf;},'ckoeo':function(_0x24dd3d,_0x4d2bf9){return _0x24dd3d/_0x4d2bf9;}},_0x39277f=Buffer[_0x2ba9cb(0xba)](_0xdc7457);for(let _0x4aa965=_0xdc7457-0x1;_0x1314ee['qJucf'](_0x4aa965,0x0);_0x4aa965--){_0x39277f[_0x4aa965]=_0xc414e3&0xff,_0xc414e3=Math[_0x2ba9cb(0x83)](_0x1314ee[_0x2ba9cb(0x80)](_0xc414e3,0x100));}return _0x39277f;}function writeUnknownSizeVint(_0x4dc048){const _0x49e152=Buffer['alloc'](_0x4dc048,0xff);return _0x49e152[0x0]=0xff>>_0x4dc048-0x1,_0x49e152;}function uintSize(_0x1ee4c5){const _0x1360ab=_0x30e3,_0x1fe002={'mxmdL':function(_0x33873e,_0xe15b1f){return _0x33873e===_0xe15b1f;},'rOZld':function(_0x4d66f8,_0x3bdad5){return _0x4d66f8>_0x3bdad5;}};if(_0x1fe002['mxmdL'](_0x1ee4c5,0x0))return 0x1;let _0x4972b6=0x0,_0x131e0d=_0x1ee4c5;while(_0x1fe002[_0x1360ab(0x96)](_0x131e0d,0x0)){_0x4972b6++,_0x131e0d=Math['floor'](_0x131e0d/0x100);}return _0x4972b6;}function findTimestampScale(_0x1dc350,_0x5f17c2){const _0x3356f2=_0x30e3,_0x3b5528={'bbDqz':function(_0x593766,_0x878fa){return _0x593766<_0x878fa;},'micuj':function(_0x35a150,_0x363158,_0x101f85){return _0x35a150(_0x363158,_0x101f85);},'AXGsE':function(_0x116a08,_0x4ae13e){return _0x116a08===_0x4ae13e;},'CkWpM':function(_0x2d4251,_0x34424){return _0x2d4251+_0x34424;},'pbzDD':function(_0x44e503,_0x1a2ff6){return _0x44e503===_0x1a2ff6;}};let _0x56f283=_0x5f17c2;const _0x490d32=Math[_0x3356f2(0x81)](_0x1dc350['length'],_0x5f17c2+0x2710);while(_0x3b5528['bbDqz'](_0x56f283,_0x490d32)){const [_0x39a905,_0x2e2f45]=_0x3b5528['micuj'](readId,_0x1dc350,_0x56f283),[_0x1ffb99,_0x4e3a1c]=readVint(_0x1dc350,_0x56f283+_0x2e2f45);if(_0x3b5528['AXGsE'](_0x39a905,ID_INFO)){let _0x535b63=_0x56f283+_0x2e2f45+_0x4e3a1c;const _0x326579=_0x3b5528['CkWpM'](_0x535b63,_0x1ffb99);while(_0x3b5528['bbDqz'](_0x535b63,_0x326579)){const [_0x28f5a1,_0x267aee]=readId(_0x1dc350,_0x535b63),[_0x409973,_0x59c748]=_0x3b5528[_0x3356f2(0xb3)](readVint,_0x1dc350,_0x535b63+_0x267aee);if(_0x28f5a1===ID_TIMESTAMP_SCALE)return readUint(_0x1dc350,_0x3b5528['CkWpM'](_0x535b63+_0x267aee,_0x59c748),_0x409973);_0x535b63+=_0x267aee+_0x59c748+_0x409973;}break;}if(_0x3b5528['pbzDD'](_0x39a905,ID_CLUSTER))break;if(_0x3b5528['micuj'](isUnknownSize,_0x1ffb99,_0x4e3a1c))break;_0x56f283+=_0x2e2f45+_0x4e3a1c+_0x1ffb99;}return 0xf4240;}function findFirstClusterOffset(_0x5f045c,_0x107864){const _0x5f4636=_0x30e3,_0x21b722={'oeSFf':function(_0x55a461,_0x42f07c){return _0x55a461+_0x42f07c;},'nMVQG':function(_0x38ab87,_0x4d239c,_0x135df1){return _0x38ab87(_0x4d239c,_0x135df1);}};let _0xf0a5f3=_0x107864;while(_0xf0a5f3<_0x5f045c['length']){const [_0x1fe99c,_0x148e54]=readId(_0x5f045c,_0xf0a5f3);if(_0x1fe99c===ID_CLUSTER)return _0xf0a5f3;const [_0x599d41,_0x10dfe6]=readVint(_0x5f045c,_0x21b722['oeSFf'](_0xf0a5f3,_0x148e54));if(_0x21b722['nMVQG'](isUnknownSize,_0x599d41,_0x10dfe6))return _0xf0a5f3;_0xf0a5f3+=_0x148e54+_0x10dfe6+_0x599d41;}return _0x5f045c[_0x5f4636(0xa3)];}function findClusterEnd(_0x190a92,_0x2c3441,_0x563698,_0x43ca87){const _0x14ff25=_0x30e3,_0x53e2a2={'Rgltl':function(_0x1be0cd,_0x4745e4,_0x28f91e){return _0x1be0cd(_0x4745e4,_0x28f91e);},'aIHSm':function(_0x120c4a,_0x95a4f2){return _0x120c4a-_0x95a4f2;},'mAqCf':function(_0xc90dc0,_0x3966b5,_0x3d14fc){return _0xc90dc0(_0x3966b5,_0x3d14fc);},'etWce':function(_0xd803d6,_0x5d4162){return _0xd803d6+_0x5d4162;}};if(!_0x53e2a2[_0x14ff25(0x9e)](isUnknownSize,_0x563698,_0x43ca87))return _0x2c3441+_0x563698;const _0x103f40=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x554861=_0x2c3441;while(_0x554861<_0x53e2a2['aIHSm'](_0x190a92['length'],0x4)){const [_0x693924,_0x37c45e]=_0x53e2a2[_0x14ff25(0xb1)](readId,_0x190a92,_0x554861);if(_0x103f40['has'](_0x693924))return _0x554861;const [_0x16c213,_0x2d6675]=readVint(_0x190a92,_0x554861+_0x37c45e);if(_0x53e2a2[_0x14ff25(0x9e)](isUnknownSize,_0x16c213,_0x2d6675))return _0x190a92[_0x14ff25(0xa3)];_0x554861+=_0x53e2a2['etWce'](_0x53e2a2['etWce'](_0x37c45e,_0x2d6675),_0x16c213);}return _0x190a92['length'];}function extractClusters(_0x3b6fc2,_0x17cf40){const _0x14f432=_0x30e3,_0xd87629={'kpdEZ':function(_0x220739,_0x512698){return _0x220739===_0x512698;},'zlEcW':function(_0x1dd9cf,_0x309d12,_0x525159){return _0x1dd9cf(_0x309d12,_0x525159);},'gWjYV':function(_0x52e807,_0x2986e5){return _0x52e807!==_0x2986e5;},'nKfXN':function(_0x49668d,_0x1e4cbe){return _0x49668d+_0x1e4cbe;},'FUTqL':function(_0x5b6597,_0x24d439){return _0x5b6597+_0x24d439;},'gvbGk':function(_0x1d27f7,_0x52b5ec,_0x3faa71,_0x404360,_0x3ae47b){return _0x1d27f7(_0x52b5ec,_0x3faa71,_0x404360,_0x3ae47b);},'eQEbn':function(_0x1fe7d3,_0x1fb049){return _0x1fe7d3+_0x1fb049;},'NCnqo':function(_0x4079a8,_0xcfd656){return _0x4079a8+_0xcfd656;},'xHeli':function(_0x48aa93,_0x1539a2){return _0x48aa93+_0x1539a2;},'FfTbp':function(_0x100a84,_0x3883e4){return _0x100a84<_0x3883e4;},'uPmld':function(_0x5c72fd,_0x3d617d){return _0x5c72fd>_0x3d617d;},'IgNKj':function(_0x16621d,_0x30b365){return _0x16621d===_0x30b365;},'NmYTb':function(_0x2aec64,_0x5053e2){return _0x2aec64+_0x5053e2;}},_0x4687b3=[],_0x590f70=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x329066=0x0;while(_0x329066<_0x3b6fc2[_0x14f432(0xa3)]){const _0x56300a=_0x3b6fc2[_0x14f432(0xa0)](_0x590f70,_0x329066);if(_0xd87629['kpdEZ'](_0x56300a,-0x1))break;const [_0x4a65c2,_0x120a69]=_0xd87629['zlEcW'](readId,_0x3b6fc2,_0x56300a);if(_0xd87629[_0x14f432(0x89)](_0x4a65c2,ID_CLUSTER)){_0x329066=_0x56300a+0x1;continue;}const [_0x5b0bbc,_0x55ce72]=readVint(_0x3b6fc2,_0xd87629[_0x14f432(0xa5)](_0x56300a,_0x120a69)),_0x196a37=_0xd87629[_0x14f432(0xac)](_0x56300a+_0x120a69,_0x55ce72),_0x3ac6c3=_0xd87629[_0x14f432(0x9f)](findClusterEnd,_0x3b6fc2,_0x196a37,_0x5b0bbc,_0x55ce72);let _0x5b4cf3=_0x196a37,_0x129bf3=0x0,_0x27bc3e=0x2,_0x51a34f=![],_0x34876e=Buffer['alloc'](0x0),_0x30c609=Buffer['alloc'](0x0);while(_0x5b4cf3<_0x3ac6c3){const [_0x45d0cb,_0x367ba1]=readId(_0x3b6fc2,_0x5b4cf3),[_0x26d6f5,_0x348772]=_0xd87629[_0x14f432(0x8c)](readVint,_0x3b6fc2,_0xd87629['FUTqL'](_0x5b4cf3,_0x367ba1));if(_0x45d0cb===ID_TIMESTAMP){_0x129bf3=readUint(_0x3b6fc2,_0x5b4cf3+_0x367ba1+_0x348772,_0x26d6f5),_0x27bc3e=_0x26d6f5,_0x51a34f=!![],_0x34876e=_0x3b6fc2[_0x14f432(0xb6)](_0x196a37,_0x5b4cf3);const _0x52e183=_0xd87629['eQEbn'](_0xd87629['NCnqo'](_0x5b4cf3,_0x367ba1)+_0x348772,_0x26d6f5);_0x30c609=_0x3b6fc2[_0x14f432(0xb6)](_0x52e183,_0x3ac6c3);break;}if(_0x45d0cb===ID_CLUSTER)break;if(isUnknownSize(_0x26d6f5,_0x348772))break;_0x5b4cf3+=_0xd87629[_0x14f432(0xac)](_0xd87629['xHeli'](_0x367ba1,_0x348772),_0x26d6f5);}!_0x51a34f&&(_0x30c609=_0x3b6fc2['slice'](_0x196a37,_0x3ac6c3));let _0x3069a9=_0x129bf3;_0x5b4cf3=_0x196a37;while(_0xd87629['FfTbp'](_0x5b4cf3,_0x3ac6c3)){const [_0x431003,_0x572aec]=readId(_0x3b6fc2,_0x5b4cf3),[_0x4d9e02,_0x9a9c56]=readVint(_0x3b6fc2,_0x5b4cf3+_0x572aec);if(_0x431003===ID_SIMPLE_BLOCK&&_0x4d9e02>=0x4){const _0x2fcd40=_0xd87629['xHeli'](_0x5b4cf3+_0x572aec,_0x9a9c56),[,_0x90eb41]=_0xd87629[_0x14f432(0x8c)](readVint,_0x3b6fc2,_0x2fcd40),_0x4a62d9=_0x3b6fc2[_0x14f432(0xbe)](_0xd87629['xHeli'](_0x2fcd40,_0x90eb41)),_0x4dde79=_0x129bf3+_0x4a62d9;if(_0xd87629['uPmld'](_0x4dde79,_0x3069a9))_0x3069a9=_0x4dde79;}if(_0xd87629['IgNKj'](_0x431003,ID_CLUSTER))break;if(isUnknownSize(_0x4d9e02,_0x9a9c56))break;_0x5b4cf3+=_0xd87629[_0x14f432(0x92)](_0x572aec+_0x9a9c56,_0x4d9e02);}_0x4687b3['push']({'timestamp':_0x129bf3,'maxTicks':_0x3069a9,'bodyBeforeTimestamp':_0x34876e,'bodyAfterTimestamp':_0x30c609,'timestampElementSize':_0x27bc3e}),_0x329066=_0x3ac6c3;}return _0x4687b3;}function parseWebm(_0x2273c3){const _0x568b59=_0x30e3,_0x183793={'nDrmw':function(_0x3b9497,_0x36ca1c){return _0x3b9497+_0x36ca1c;},'cqDqA':function(_0x2e849b,_0x159085){return _0x2e849b+_0x159085;},'RkIpC':function(_0x41471c,_0x4e9df8,_0x5909aa){return _0x41471c(_0x4e9df8,_0x5909aa);},'keQPT':function(_0x35d9b6,_0x55d2e4){return _0x35d9b6+_0x55d2e4;},'lgsON':function(_0x1b6d3d,_0x3b8956,_0x65a77d){return _0x1b6d3d(_0x3b8956,_0x65a77d);}};let _0x39709b=0x0;const [,_0x4c56b0]=readId(_0x2273c3,_0x39709b),[_0x2a1d24,_0xb92b7a]=readVint(_0x2273c3,_0x183793[_0x568b59(0xaa)](_0x39709b,_0x4c56b0));_0x39709b+=_0x183793[_0x568b59(0xb4)](_0x183793['nDrmw'](_0x4c56b0,_0xb92b7a),_0x2a1d24);const [_0x26cfe6,_0x1a6388]=_0x183793['RkIpC'](readId,_0x2273c3,_0x39709b);if(_0x26cfe6!==ID_SEGMENT)return null;const [,_0x3a9644]=_0x183793['RkIpC'](readVint,_0x2273c3,_0x183793['keQPT'](_0x39709b,_0x1a6388)),_0x5e506f=_0x39709b+_0x1a6388+_0x3a9644,_0x2b68b8=findTimestampScale(_0x2273c3,_0x5e506f),_0x17bffc=_0x183793[_0x568b59(0xbf)](findFirstClusterOffset,_0x2273c3,_0x5e506f),_0x2ab8c3=_0x2273c3[_0x568b59(0xb6)](0x0,_0x17bffc),_0x4e4011=_0x183793[_0x568b59(0xa4)](extractClusters,_0x2273c3,_0x2b68b8);let _0x3a0178=0x0;for(const _0x803a3f of _0x4e4011){if(_0x803a3f[_0x568b59(0x95)]>_0x3a0178)_0x3a0178=_0x803a3f[_0x568b59(0x95)];}return{'header':_0x2ab8c3,'clusters':_0x4e4011,'timestampScale':_0x2b68b8,'maxTimestampTicks':_0x3a0178};}function buildCluster(_0x3489fc,_0x5293d6,_0x2025f9){const _0x2fc2ae=_0x30e3,_0x31627d={'gswib':function(_0x537e3b,_0x516d17){return _0x537e3b(_0x516d17);}},_0x2fcbe2=Buffer[_0x2fc2ae(0xb9)]([0x1f,0x43,0xb6,0x75]),_0x422f56=Math['max'](0x4,uintSize(_0x3489fc)),_0x523e12=Buffer[_0x2fc2ae(0x9b)]([Buffer[_0x2fc2ae(0xb9)]([ID_TIMESTAMP]),_0x31627d['gswib'](writeVint,_0x422f56),writeUint(_0x3489fc,_0x422f56)]),_0x3e783f=Buffer[_0x2fc2ae(0x9b)]([_0x5293d6,_0x523e12,_0x2025f9]),_0x55b01f=_0x31627d[_0x2fc2ae(0xb0)](writeVint,_0x3e783f['length']);return Buffer['concat']([_0x2fcbe2,_0x55b01f,_0x3e783f]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x1cb362){const _0x270e50=_0x30e3,_0x163f74={'ZARCH':function(_0x2fd238,_0x534b37,_0x542958){return _0x2fd238(_0x534b37,_0x542958);},'AsBkr':function(_0x2ebb46,_0x17752b){return _0x2ebb46+_0x17752b;},'SfcVa':function(_0x43d1f2,_0x1ff8cf){return _0x43d1f2+_0x1ff8cf;},'LjGZl':function(_0x48eec8,_0x91673a,_0x3f0f10){return _0x48eec8(_0x91673a,_0x3f0f10);},'Aoumi':function(_0x27900a,_0x5ab5b7,_0x6b457f){return _0x27900a(_0x5ab5b7,_0x6b457f);},'ZHNBv':function(_0x214c98,_0xeaa0f4){return _0x214c98+_0xeaa0f4;},'YZiFx':function(_0x3305fb,_0x48ad1c){return _0x3305fb(_0x48ad1c);},'OHKfg':function(_0x338662,_0x3a4ebb){return _0x338662<_0x3a4ebb;},'IwQBn':function(_0x248ff5,_0x148f2d){return _0x248ff5+_0x148f2d;},'YwDRi':function(_0x2a3a7e,_0x41527b){return _0x2a3a7e+_0x41527b;}},_0x461c29=Buffer['from'](_0x1cb362);let _0x3d9112=0x0;const [,_0x11ec74]=_0x163f74[_0x270e50(0x86)](readId,_0x461c29,_0x3d9112),[_0x181782,_0x616de1]=readVint(_0x461c29,_0x3d9112+_0x11ec74),_0x56d715=_0x163f74[_0x270e50(0x85)](_0x163f74['SfcVa'](_0x3d9112,_0x11ec74),_0x616de1)+_0x181782,[,_0x1cd91e]=_0x163f74['LjGZl'](readId,_0x461c29,_0x56d715),[,_0x4703e7]=_0x163f74[_0x270e50(0x90)](readVint,_0x461c29,_0x56d715+_0x1cd91e),_0xe74510=_0x163f74[_0x270e50(0xa7)](_0x163f74['ZHNBv'](_0x56d715,_0x1cd91e),_0x4703e7),_0x558eb8=_0x163f74[_0x270e50(0x93)](writeUnknownSizeVint,_0x4703e7);_0x558eb8[_0x270e50(0xae)](_0x461c29,_0x56d715+_0x1cd91e);let _0x5b8017=_0xe74510;const _0x5c71e2=Math[_0x270e50(0x81)](_0x461c29['length'],_0xe74510+0x2710);while(_0x5b8017<_0x5c71e2){const [_0x442f3c,_0x47dbe6]=readId(_0x461c29,_0x5b8017),[_0x4844bd,_0x196485]=readVint(_0x461c29,_0x5b8017+_0x47dbe6);if(_0x442f3c===ID_CLUSTER)break;if(isUnknownSize(_0x4844bd,_0x196485))break;if(_0x442f3c===ID_INFO){const _0x5f236c=_0x163f74['ZHNBv'](_0x5b8017,_0x47dbe6)+_0x196485,_0x2dc63f=_0x163f74[_0x270e50(0xa7)](_0x5f236c,_0x4844bd),_0x26dc98=[];let _0xff8fb9=_0x5f236c;while(_0x163f74[_0x270e50(0x9a)](_0xff8fb9,_0x2dc63f)){const [_0x27c61c,_0x527aa3]=_0x163f74[_0x270e50(0x90)](readId,_0x461c29,_0xff8fb9),[_0x33d50d,_0x434608]=readVint(_0x461c29,_0xff8fb9+_0x527aa3),_0x889393=_0x163f74[_0x270e50(0xa8)](_0x163f74[_0x270e50(0x9d)](_0x527aa3,_0x434608),_0x33d50d);_0x27c61c!==ID_DURATION&&_0x26dc98['push'](_0x461c29['slice'](_0xff8fb9,_0xff8fb9+_0x889393)),_0xff8fb9+=_0x889393;}const _0x5e06a2=Buffer[_0x270e50(0x9b)](_0x26dc98),_0x3879bb=Buffer['concat']([_0x461c29['slice'](_0x5b8017,_0x163f74[_0x270e50(0xc0)](_0x5b8017,_0x47dbe6)),_0x163f74['ZARCH'](writeVint,_0x5e06a2['length'],_0x196485)]);return Buffer['concat']([_0x461c29['slice'](0x0,_0x5b8017),_0x3879bb,_0x5e06a2,_0x461c29['slice'](_0x2dc63f)]);}_0x5b8017+=_0x47dbe6+_0x196485+_0x4844bd;}return _0x461c29;}export function stitchWebmFiles(_0x504eb6,_0x9795b0){const _0x2fa856=_0x30e3,_0x2eac76={'VZCvd':function(_0x1eaad3,_0x2cac8a){return _0x1eaad3<=_0x2cac8a;},'PiVvC':function(_0x4cae21,_0x9c12cf){return _0x4cae21(_0x9c12cf);},'qCVOi':function(_0xada1c5,_0x8aadbf){return _0xada1c5<_0x8aadbf;},'xjwCr':function(_0x2e5250,_0x1765ed,_0x3370b5){return _0x2e5250(_0x1765ed,_0x3370b5);}};if(_0x2eac76[_0x2fa856(0xb2)](_0x504eb6['length'],0x1))return![];const _0x2a2e1e=[];for(const _0x40b2cc of _0x504eb6){const _0x26d955=_0x2eac76['PiVvC'](readFileSync,_0x40b2cc),_0x246136=_0x2eac76['PiVvC'](parseWebm,_0x26d955);if(!_0x246136||_0x246136['clusters'][_0x2fa856(0xa3)]===0x0)return![];_0x2a2e1e[_0x2fa856(0x88)](_0x246136);}const _0x1fefe9=_0x2a2e1e[0x0],_0x146172=rebuildHeaderWithoutDuration(_0x1fefe9[_0x2fa856(0x98)]),_0x36f665=[_0x146172];let _0x5cf1b1=0x0;for(let _0x5b4109=0x0;_0x2eac76['qCVOi'](_0x5b4109,_0x2a2e1e['length']);_0x5b4109++){const _0xbef835=_0x2a2e1e[_0x5b4109];for(const _0x3edb3c of _0xbef835['clusters']){const _0x449efa=_0x3edb3c['timestamp']+_0x5cf1b1;_0x36f665[_0x2fa856(0x88)](buildCluster(_0x449efa,_0x3edb3c[_0x2fa856(0x8b)],_0x3edb3c[_0x2fa856(0x91)]));}const _0x53d154=0x1e;_0x5cf1b1+=_0xbef835['maxTimestampTicks']+_0x53d154;}return _0x2eac76['xjwCr'](writeFileSync,_0x9795b0,Buffer[_0x2fa856(0x9b)](_0x36f665)),!![];}function _0x30e3(_0x36f3fa,_0x4c02ce){_0x36f3fa=_0x36f3fa-0x80;const _0x1e2f1e=_0x1e2f();let _0x30e327=_0x1e2f1e[_0x36f3fa];return _0x30e327;}if(process['argv'][0x1]?.['endsWith'](_0x2919ab(0x8d))||process['argv'][0x1]?.['endsWith'](_0x2919ab(0xbb))){const args=process['argv']['slice'](0x2);args[_0x2919ab(0xa3)]<0x3&&(console['error']('Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>'),process['exit'](0x1));const output=args[args['length']-0x1],inputs=args[_0x2919ab(0xb6)](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x2919ab(0xa9)]('Stitched\x20'+inputs[_0x2919ab(0xa3)]+'\x20files\x20->\x20'+output):console['log'](_0x2919ab(0xbd));}
@@ -1 +1 @@
1
- function _0x4dc6(_0x22ad0c,_0x315e24){_0x22ad0c=_0x22ad0c-0xf0;const _0xe33850=_0xe338();let _0x4dc613=_0xe33850[_0x22ad0c];return _0x4dc613;}const _0x3b18cf=_0x4dc6;(function(_0x2db459,_0x5baf82){const _0x4affe0=_0x4dc6,_0x13915f=_0x2db459();while(!![]){try{const _0xd2ba2b=parseInt(_0x4affe0(0x136))/0x1+parseInt(_0x4affe0(0x10a))/0x2+parseInt(_0x4affe0(0x13b))/0x3*(-parseInt(_0x4affe0(0xfd))/0x4)+-parseInt(_0x4affe0(0x133))/0x5*(-parseInt(_0x4affe0(0x137))/0x6)+parseInt(_0x4affe0(0xf8))/0x7*(-parseInt(_0x4affe0(0xf3))/0x8)+-parseInt(_0x4affe0(0xf1))/0x9*(parseInt(_0x4affe0(0x114))/0xa)+parseInt(_0x4affe0(0x105))/0xb*(parseInt(_0x4affe0(0x101))/0xc);if(_0xd2ba2b===_0x5baf82)break;else _0x13915f['push'](_0x13915f['shift']());}catch(_0x1358f8){_0x13915f['push'](_0x13915f['shift']());}}}(_0xe338,0xefc0f));import{randomUUID}from'crypto';import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';import{homedir}from'os';import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{getCurrentVersion}from'./version.js';let cachedDeviceId=null;function getDeviceId(){const _0x4a2d9d=_0x4dc6,_0x358e11={'mzcfZ':function(_0xcf2061,_0x438246,_0x9c94ea){return _0xcf2061(_0x438246,_0x9c94ea);},'YqVLZ':function(_0x484ed0){return _0x484ed0();},'QqRHO':function(_0x5d72d3,_0x3eaa3a,_0xedc0fd){return _0x5d72d3(_0x3eaa3a,_0xedc0fd);},'vInNg':function(_0x23251c,_0x23ddc8){return _0x23251c(_0x23ddc8);},'MiBid':function(_0x378ce0,_0x3dec08,_0x3f403d){return _0x378ce0(_0x3dec08,_0x3f403d);},'qiUAE':_0x4a2d9d(0x10b),'BjKxt':function(_0x38372c){return _0x38372c();},'hljVH':function(_0x388538,_0x2955ec,_0x53ca64){return _0x388538(_0x2955ec,_0x53ca64);},'hlYiK':function(_0x2ac26a,_0x41786d,_0x17baed){return _0x2ac26a(_0x41786d,_0x17baed);}};if(cachedDeviceId)return cachedDeviceId;try{const _0x5d1e99=_0x358e11[_0x4a2d9d(0x10e)](join,_0x358e11['YqVLZ'](homedir),_0x4a2d9d(0x104)),_0x5b7500=_0x358e11['QqRHO'](join,_0x5d1e99,_0x4a2d9d(0x106));if(_0x358e11['vInNg'](existsSync,_0x5b7500)){cachedDeviceId=_0x358e11['MiBid'](readFileSync,_0x5b7500,_0x358e11[_0x4a2d9d(0x12a)])['trim']();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=_0x358e11[_0x4a2d9d(0x125)](randomUUID),_0x358e11['hljVH'](mkdirSync,_0x5d1e99,{'recursive':!![]}),_0x358e11[_0x4a2d9d(0x11b)](writeFileSync,_0x5b7500,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=randomUUID(),cachedDeviceId;}}function _0xe338(){const _0x3be7c8=['2573058fcKqCe','zZWMT','toISOString','POST','2199228KwUbGw','errorMessage','bpXAv','durationMs','errorType','3009249LCeMZF','splice','8uhkHZD','application/json','cwd','phaseCounter','Bearer\x20','5537329sWJsIV','/api/v1/mcp/cli-telemetry','Unknown','name','Pygnf','8GmnZsN','get','commandStartTime','constructor','18456qYYbtz','nDlbH','flush','.ranger','10604mrfySO','.session','command_end','length','featureId','90876ypXIvG','utf-8','commandId','stdout','mzcfZ','platform','message','isCI','eventType','nodeVersion','10IOxRbg','ylQSv','buffer','signal','sendImmediate','CVtUB','now','hlYiK','set','phaseStartTimes','checklistItemId','slice','buildEvent','command_error','cliVersion','deviceId','browserSessionId','BjKxt','env','success','phaseIndex','stringify','qiUAE','EBEaO','flushing','xfkID','push','flushAsync','sendBatch','trackCommandStart','isTty','5piJunt','transport','trackPhaseStart','1616678fefIYm'];_0xe338=function(){return _0x3be7c8;};return _0xe338();}export class TelemetryCollector{['buffer']=[];['commandId'];['command'];[_0x3b18cf(0xff)];[_0x3b18cf(0xf6)]=0x0;['phaseStartTimes']=new Map();['flushing']=null;['deviceId'];[_0x3b18cf(0x122)];['nodeVersion'];['platform'];['isTty'];['isCI'];[_0x3b18cf(0x109)];['checklistItemId'];[_0x3b18cf(0x124)];[_0x3b18cf(0x134)];constructor(_0x88b290){const _0x26e121=_0x3b18cf,_0x17728d={'QErhz':function(_0x50117a){return _0x50117a();}};this[_0x26e121(0x10c)]=randomUUID(),this['command']=_0x88b290,this['commandStartTime']=Date[_0x26e121(0x11a)](),this['deviceId']=_0x17728d['QErhz'](getDeviceId),this['cliVersion']=_0x17728d['QErhz'](getCurrentVersion),this[_0x26e121(0x113)]=process['version'],this[_0x26e121(0x10f)]=process[_0x26e121(0x10f)],this[_0x26e121(0x132)]=process[_0x26e121(0x10d)]['isTTY']??![],this[_0x26e121(0x111)]=!!(process[_0x26e121(0x126)]['CI']||process['env']['GITHUB_ACTIONS']);}['setContext'](_0x250938){const _0x303ab1=_0x3b18cf;if(_0x250938['featureId'])this[_0x303ab1(0x109)]=_0x250938['featureId'];if(_0x250938[_0x303ab1(0x11e)])this['checklistItemId']=_0x250938['checklistItemId'];if(_0x250938['browserSessionId'])this[_0x303ab1(0x124)]=_0x250938['browserSessionId'];if(_0x250938[_0x303ab1(0x134)])this['transport']=_0x250938[_0x303ab1(0x134)];}async['trackCommandStart'](_0x1d8c0d){const _0x377e00=_0x3b18cf,_0x557403=this[_0x377e00(0x120)]({'eventType':'command_start','metadata':_0x1d8c0d});await this[_0x377e00(0x118)](_0x557403);}async['trackCommandEnd'](_0xcc801c,_0x1b7364){const _0x37ce6d=_0x3b18cf,_0x6adb6b=this[_0x37ce6d(0x120)]({'eventType':_0x37ce6d(0x107),'outcome':_0xcc801c,'durationMs':Date[_0x37ce6d(0x11a)]()-this[_0x37ce6d(0xff)],'metadata':_0x1b7364});await this[_0x37ce6d(0x118)](_0x6adb6b),await this[_0x37ce6d(0x103)]();}async['trackCommandError'](_0x5897b9,_0x1fc464){const _0x130ba8=_0x3b18cf,_0x16d166={'CVtUB':function(_0x4e942f,_0x1b077a,_0x4c71a7){return _0x4e942f(_0x1b077a,_0x4c71a7);},'PORMX':function(_0x1a4fb9,_0x7df379){return _0x1a4fb9(_0x7df379);},'ylQSv':function(_0x45d374,_0x45c9e7){return _0x45d374 instanceof _0x45c9e7;},'xfkID':_0x130ba8(0xfa)},_0x39841e=this['buildEvent']({'eventType':_0x130ba8(0x121),'errorMessage':_0x16d166[_0x130ba8(0x119)](truncate,_0x5897b9 instanceof Error?_0x5897b9[_0x130ba8(0x110)]:_0x16d166['PORMX'](String,_0x5897b9),0x1f4),'errorType':_0x16d166[_0x130ba8(0x115)](_0x5897b9,Error)?_0x5897b9['constructor'][_0x130ba8(0xfb)]:_0x16d166[_0x130ba8(0x12d)],'durationMs':Date[_0x130ba8(0x11a)]()-this[_0x130ba8(0xff)],'metadata':_0x1fc464});await this[_0x130ba8(0x118)](_0x39841e),await this['flush']();}[_0x3b18cf(0x135)](_0x1fce16,_0x253dad){const _0x34c118=_0x3b18cf,_0x2f8192={'DTmEs':'phase_start'};this[_0x34c118(0xf6)]++,this[_0x34c118(0x11d)][_0x34c118(0x11c)](_0x1fce16,Date[_0x34c118(0x11a)]());const _0x524cca=this['buildEvent']({'eventType':_0x2f8192['DTmEs'],'phase':_0x1fce16,'phaseIndex':this['phaseCounter'],'metadata':_0x253dad});this[_0x34c118(0x116)][_0x34c118(0x12e)](_0x524cca);}['trackPhaseEnd'](_0x347849,_0x1d590d){const _0x264996=_0x3b18cf,_0x3b9ddc={'ZUlGV':function(_0x4c63d1,_0x109ef2){return _0x4c63d1-_0x109ef2;},'urJJj':'phase_end'},_0x4065c8=this[_0x264996(0x11d)][_0x264996(0xfe)](_0x347849),_0x20fdd6=_0x4065c8?_0x3b9ddc['ZUlGV'](Date[_0x264996(0x11a)](),_0x4065c8):undefined;this['phaseStartTimes']['delete'](_0x347849);const _0xf00e0a=this[_0x264996(0x120)]({'eventType':_0x3b9ddc['urJJj'],'phase':_0x347849,'durationMs':_0x20fdd6,'metadata':_0x1d590d});this['buffer'][_0x264996(0x12e)](_0xf00e0a),this[_0x264996(0x116)][_0x264996(0x108)]>=0xa&&this['flushAsync']();}async['trackPhaseError'](_0xbe6630,_0x1bd835,_0x2fff1f){const _0x4986db=_0x3b18cf,_0x9579ab={'zZWMT':function(_0x16a096,_0x5b4173){return _0x16a096 instanceof _0x5b4173;},'TDCyJ':function(_0x3c96f0,_0x439a67){return _0x3c96f0(_0x439a67);}},_0x117ec=this['phaseStartTimes']['get'](_0xbe6630),_0x279f0c=_0x117ec?Date['now']()-_0x117ec:undefined;this['phaseStartTimes']['delete'](_0xbe6630);const _0xde8d79=this['buildEvent']({'eventType':'phase_error','phase':_0xbe6630,'durationMs':_0x279f0c,'errorMessage':truncate(_0x9579ab[_0x4986db(0x138)](_0x1bd835,Error)?_0x1bd835[_0x4986db(0x110)]:_0x9579ab['TDCyJ'](String,_0x1bd835),0x1f4),'errorType':_0x9579ab['zZWMT'](_0x1bd835,Error)?_0x1bd835[_0x4986db(0x100)][_0x4986db(0xfb)]:_0x4986db(0xfa),'metadata':_0x2fff1f});await this[_0x4986db(0x118)](_0xde8d79);}async['flush'](){const _0x34774b=_0x3b18cf,_0x2b7f21={'bpXAv':function(_0x3e689c,_0x510d56){return _0x3e689c===_0x510d56;}};if(_0x2b7f21[_0x34774b(0x13d)](this[_0x34774b(0x116)]['length'],0x0))return;const _0x40f4fa=this[_0x34774b(0x116)][_0x34774b(0xf2)](0x0);try{await this['sendBatch'](_0x40f4fa);}catch{}}['buildEvent'](_0x5e31f6){const _0x162b59=_0x3b18cf;return{'eventType':_0x5e31f6[_0x162b59(0x112)],'command':this['command'],'commandId':this['commandId'],'deviceId':this[_0x162b59(0x123)],'timestamp':new Date()[_0x162b59(0x139)](),'durationMs':_0x5e31f6[_0x162b59(0x13e)],'phase':_0x5e31f6['phase'],'phaseIndex':_0x5e31f6[_0x162b59(0x128)],'outcome':_0x5e31f6['outcome'],'errorMessage':_0x5e31f6[_0x162b59(0x13c)],'errorType':_0x5e31f6[_0x162b59(0xf0)],'featureId':this[_0x162b59(0x109)],'checklistItemId':this[_0x162b59(0x11e)],'browserSessionId':this[_0x162b59(0x124)],'transport':this[_0x162b59(0x134)],'evaluation':_0x5e31f6['evaluation'],'cliVersion':this[_0x162b59(0x122)],'nodeVersion':this['nodeVersion'],'platform':this[_0x162b59(0x10f)],'cwd':process[_0x162b59(0xf5)](),'isTty':this[_0x162b59(0x132)],'isCI':this[_0x162b59(0x111)],'metadata':_0x5e31f6['metadata']};}async[_0x3b18cf(0x118)](_0x3b0e77){const _0x2696c8=_0x3b18cf;try{await this[_0x2696c8(0x130)]([_0x3b0e77]);}catch{}}[_0x3b18cf(0x12f)](){const _0x58e68b=_0x3b18cf;if(this[_0x58e68b(0x12c)])return;this['flushing']=this[_0x58e68b(0x103)]()['finally'](()=>{this['flushing']=null;});}async['sendBatch'](_0x56b773){const _0x15d929=_0x3b18cf,_0x3be4c6={'fflzs':_0x15d929(0xf4),'lnRoA':'Authorization','EBEaO':function(_0x58e35e,_0x916774,_0x48b22c){return _0x58e35e(_0x916774,_0x48b22c);},'Pygnf':_0x15d929(0x13a)},_0x396cd4=await getToken()['catch'](()=>null),_0x1963ac=getApiBaseUrl(),_0x13d130={'Content-Type':_0x3be4c6['fflzs']};_0x396cd4&&(_0x13d130[_0x3be4c6['lnRoA']]=_0x15d929(0xf7)+_0x396cd4);const _0x4cd3d8={'events':_0x56b773};process['env']['DEBUG']&&console['error']('[telemetry]\x20Sending\x20'+_0x56b773['length']+'\x20event(s)\x20to\x20'+_0x1963ac+_0x15d929(0xf9));const _0x3c9219=new AbortController(),_0x56a292=_0x3be4c6[_0x15d929(0x12b)](setTimeout,()=>_0x3c9219['abort'](),0x1388);try{await _0x3be4c6[_0x15d929(0x12b)](fetch,_0x1963ac+'/api/v1/mcp/cli-telemetry',{'method':_0x3be4c6[_0x15d929(0xfc)],'headers':_0x13d130,'body':JSON[_0x15d929(0x129)](_0x4cd3d8),'signal':_0x3c9219[_0x15d929(0x117)]});}finally{clearTimeout(_0x56a292);}}}let currentCollector=null;export function createTelemetryCollector(_0x4bb283){return currentCollector=new TelemetryCollector(_0x4bb283),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0x566368,_0x516eb2,_0x397257){const _0x528cb8=_0x3b18cf,_0x40c0ec={'RnfaD':function(_0x19d8ad,_0x3da5c9){return _0x19d8ad(_0x3da5c9);}},_0x3483fa=_0x40c0ec['RnfaD'](createTelemetryCollector,_0x566368);await _0x3483fa[_0x528cb8(0x131)](_0x397257);try{const _0xd31bc5=await _0x516eb2(_0x3483fa);return await _0x3483fa['trackCommandEnd'](_0x528cb8(0x127)),_0xd31bc5;}catch(_0x4ca4c5){await _0x3483fa['trackCommandError'](_0x4ca4c5);throw _0x4ca4c5;}finally{await _0x3483fa[_0x528cb8(0x103)]();}}function truncate(_0x2aff61,_0x740860){const _0x452384=_0x3b18cf,_0x5a859b={'nDlbH':function(_0x597449,_0x19e33e){return _0x597449>_0x19e33e;}};return _0x5a859b[_0x452384(0x102)](_0x2aff61['length'],_0x740860)?_0x2aff61[_0x452384(0x11f)](0x0,_0x740860)+'...':_0x2aff61;}
1
+ const _0x58ace2=_0x58a9;(function(_0x366139,_0x4180b4){const _0x380fe4=_0x58a9,_0xfd92c2=_0x366139();while(!![]){try{const _0x2e838f=-parseInt(_0x380fe4(0x15e))/0x1*(parseInt(_0x380fe4(0x1a2))/0x2)+-parseInt(_0x380fe4(0x17b))/0x3+-parseInt(_0x380fe4(0x187))/0x4+parseInt(_0x380fe4(0x164))/0x5+-parseInt(_0x380fe4(0x186))/0x6+parseInt(_0x380fe4(0x157))/0x7+parseInt(_0x380fe4(0x16d))/0x8*(parseInt(_0x380fe4(0x16e))/0x9);if(_0x2e838f===_0x4180b4)break;else _0xfd92c2['push'](_0xfd92c2['shift']());}catch(_0xf749db){_0xfd92c2['push'](_0xfd92c2['shift']());}}}(_0x2e4b,0x6dc99));function _0x58a9(_0x37a364,_0x1c7c63){_0x37a364=_0x37a364-0x157;const _0x2e4b5d=_0x2e4b();let _0x58a932=_0x2e4b5d[_0x37a364];return _0x58a932;}import{randomUUID}from'crypto';import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';import{homedir}from'os';import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{getCurrentVersion}from'./version.js';let cachedDeviceId=null;function getDeviceId(){const _0xe1536d=_0x58a9,_0x1e03f6={'MATit':function(_0x3c0b32,_0x351128,_0x489b02){return _0x3c0b32(_0x351128,_0x489b02);},'OgGRu':'.session','tPjtX':_0xe1536d(0x16f),'TnLtJ':function(_0x2e9414){return _0x2e9414();},'PoFsy':function(_0x8da087,_0x18fcee,_0x303b86){return _0x8da087(_0x18fcee,_0x303b86);},'viGKo':function(_0x252013,_0x240c32,_0x34054e){return _0x252013(_0x240c32,_0x34054e);}};if(cachedDeviceId)return cachedDeviceId;try{const _0xea117c=_0x1e03f6[_0xe1536d(0x158)](join,homedir(),'.ranger'),_0x146ea5=join(_0xea117c,_0x1e03f6['OgGRu']);if(existsSync(_0x146ea5)){cachedDeviceId=readFileSync(_0x146ea5,_0x1e03f6['tPjtX'])['trim']();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=_0x1e03f6[_0xe1536d(0x1a3)](randomUUID),_0x1e03f6[_0xe1536d(0x18b)](mkdirSync,_0xea117c,{'recursive':!![]}),_0x1e03f6[_0xe1536d(0x174)](writeFileSync,_0x146ea5,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=randomUUID(),cachedDeviceId;}}export class TelemetryCollector{['buffer']=[];[_0x58ace2(0x15f)];['command'];[_0x58ace2(0x173)];['phaseCounter']=0x0;['phaseStartTimes']=new Map();[_0x58ace2(0x15a)]=null;[_0x58ace2(0x197)];['cliVersion'];[_0x58ace2(0x19f)];[_0x58ace2(0x160)];['isTty'];['isCI'];[_0x58ace2(0x170)];['checklistItemId'];[_0x58ace2(0x172)];[_0x58ace2(0x198)];constructor(_0x12a0b0){const _0x479cb7=_0x58ace2,_0x5630b0={'zJtVR':function(_0x53608b){return _0x53608b();}},_0x1e392d='0|1|6|5|4|2|7|8|3'['split']('|');let _0x4d5f80=0x0;while(!![]){switch(_0x1e392d[_0x4d5f80++]){case'0':this[_0x479cb7(0x15f)]=_0x5630b0['zJtVR'](randomUUID);continue;case'1':this[_0x479cb7(0x178)]=_0x12a0b0;continue;case'2':this[_0x479cb7(0x19f)]=process['version'];continue;case'3':this[_0x479cb7(0x185)]=!!(process[_0x479cb7(0x19a)]['CI']||process['env'][_0x479cb7(0x177)]);continue;case'4':this[_0x479cb7(0x16b)]=getCurrentVersion();continue;case'5':this['deviceId']=getDeviceId();continue;case'6':this['commandStartTime']=Date['now']();continue;case'7':this[_0x479cb7(0x160)]=process['platform'];continue;case'8':this['isTty']=process[_0x479cb7(0x1a7)]['isTTY']??![];continue;}break;}}[_0x58ace2(0x15d)](_0x45bf05){const _0x532b6e=_0x58ace2;if(_0x45bf05[_0x532b6e(0x170)])this[_0x532b6e(0x170)]=_0x45bf05['featureId'];if(_0x45bf05['checklistItemId'])this[_0x532b6e(0x194)]=_0x45bf05[_0x532b6e(0x194)];if(_0x45bf05[_0x532b6e(0x172)])this['browserSessionId']=_0x45bf05['browserSessionId'];if(_0x45bf05['transport'])this['transport']=_0x45bf05[_0x532b6e(0x198)];}async['trackCommandStart'](_0x503dfa){const _0x210a71=_0x58ace2,_0x5f43f5=this[_0x210a71(0x165)]({'eventType':'command_start','metadata':_0x503dfa});await this['sendImmediate'](_0x5f43f5);}async[_0x58ace2(0x171)](_0x150512,_0x381cbc){const _0x168f6b=_0x58ace2,_0x75f502={'FCtRR':function(_0x499b5e,_0x58ddd6){return _0x499b5e-_0x58ddd6;}},_0x5def36=this[_0x168f6b(0x165)]({'eventType':'command_end','outcome':_0x150512,'durationMs':_0x75f502['FCtRR'](Date['now'](),this[_0x168f6b(0x173)]),'metadata':_0x381cbc});await this[_0x168f6b(0x15b)](_0x5def36),await this['flush']();}async['trackCommandError'](_0x179320,_0x2577a6){const _0x251cc8=_0x58ace2,_0x5556ef={'sWYKx':function(_0x2d188d,_0x1ab2a7){return _0x2d188d instanceof _0x1ab2a7;},'hlHVC':function(_0x12ccc0,_0x134f46){return _0x12ccc0 instanceof _0x134f46;},'qSuBu':function(_0x20693f,_0xf4b741){return _0x20693f-_0xf4b741;}},_0x1de09c=this['buildEvent']({'eventType':_0x251cc8(0x159),'errorMessage':truncate(_0x5556ef[_0x251cc8(0x191)](_0x179320,Error)?_0x179320['message']:String(_0x179320),0x1f4),'errorType':_0x5556ef[_0x251cc8(0x18f)](_0x179320,Error)?_0x179320['constructor']['name']:'Unknown','durationMs':_0x5556ef[_0x251cc8(0x161)](Date[_0x251cc8(0x193)](),this[_0x251cc8(0x173)]),'metadata':_0x2577a6});await this['sendImmediate'](_0x1de09c),await this['flush']();}['trackPhaseStart'](_0xef4cc3,_0x319c96){const _0x433ce9=_0x58ace2,_0x4b02fd={'LRcMa':'phase_start'};this['phaseCounter']++,this['phaseStartTimes'][_0x433ce9(0x196)](_0xef4cc3,Date['now']());const _0x409f26=this[_0x433ce9(0x165)]({'eventType':_0x4b02fd['LRcMa'],'phase':_0xef4cc3,'phaseIndex':this['phaseCounter'],'metadata':_0x319c96});this[_0x433ce9(0x16c)][_0x433ce9(0x18c)](_0x409f26);}[_0x58ace2(0x17c)](_0x13cc53,_0x1ff24d){const _0x29950f=_0x58ace2,_0xa9f67b={'hLPWN':function(_0xc0bd24,_0x38aa60){return _0xc0bd24-_0x38aa60;},'FUNYy':function(_0x3e750e,_0x2cf5dc){return _0x3e750e>=_0x2cf5dc;}},_0x4a46a5=this[_0x29950f(0x1a5)]['get'](_0x13cc53),_0x2931b9=_0x4a46a5?_0xa9f67b[_0x29950f(0x16a)](Date['now'](),_0x4a46a5):undefined;this[_0x29950f(0x1a5)][_0x29950f(0x18e)](_0x13cc53);const _0x112d07=this['buildEvent']({'eventType':_0x29950f(0x17a),'phase':_0x13cc53,'durationMs':_0x2931b9,'metadata':_0x1ff24d});this[_0x29950f(0x16c)][_0x29950f(0x18c)](_0x112d07),_0xa9f67b['FUNYy'](this['buffer'][_0x29950f(0x199)],0xa)&&this['flushAsync']();}async[_0x58ace2(0x17d)](_0x4d3c39,_0x3ea8c1,_0x1169f0){const _0x4cf928=_0x58ace2,_0xcd9c94=this[_0x4cf928(0x1a5)]['get'](_0x4d3c39),_0x2568e5=_0xcd9c94?Date[_0x4cf928(0x193)]()-_0xcd9c94:undefined;this['phaseStartTimes']['delete'](_0x4d3c39);const _0x13ac79=this[_0x4cf928(0x165)]({'eventType':_0x4cf928(0x19e),'phase':_0x4d3c39,'durationMs':_0x2568e5,'errorMessage':truncate(_0x3ea8c1 instanceof Error?_0x3ea8c1[_0x4cf928(0x19c)]:String(_0x3ea8c1),0x1f4),'errorType':_0x3ea8c1 instanceof Error?_0x3ea8c1['constructor'][_0x4cf928(0x168)]:_0x4cf928(0x1a6),'metadata':_0x1169f0});await this['sendImmediate'](_0x13ac79);}async[_0x58ace2(0x15c)](){const _0x27e1b2=_0x58ace2,_0x24c7b1={'TUuUd':function(_0x547b35,_0x9ae02e){return _0x547b35===_0x9ae02e;}};if(_0x24c7b1[_0x27e1b2(0x175)](this[_0x27e1b2(0x16c)]['length'],0x0))return;const _0x26fac=this['buffer'][_0x27e1b2(0x190)](0x0);try{await this['sendBatch'](_0x26fac);}catch{}}['buildEvent'](_0x84f4d0){const _0x22ee5f=_0x58ace2;return{'eventType':_0x84f4d0[_0x22ee5f(0x17f)],'command':this['command'],'commandId':this[_0x22ee5f(0x15f)],'deviceId':this[_0x22ee5f(0x197)],'timestamp':new Date()[_0x22ee5f(0x195)](),'durationMs':_0x84f4d0[_0x22ee5f(0x1a4)],'phase':_0x84f4d0['phase'],'phaseIndex':_0x84f4d0[_0x22ee5f(0x18a)],'outcome':_0x84f4d0[_0x22ee5f(0x189)],'errorMessage':_0x84f4d0['errorMessage'],'errorType':_0x84f4d0['errorType'],'featureId':this[_0x22ee5f(0x170)],'checklistItemId':this['checklistItemId'],'browserSessionId':this[_0x22ee5f(0x172)],'transport':this['transport'],'evaluation':_0x84f4d0[_0x22ee5f(0x181)],'cliVersion':this['cliVersion'],'nodeVersion':this[_0x22ee5f(0x19f)],'platform':this[_0x22ee5f(0x160)],'cwd':process[_0x22ee5f(0x18d)](),'isTty':this[_0x22ee5f(0x180)],'isCI':this[_0x22ee5f(0x185)],'metadata':_0x84f4d0['metadata']};}async[_0x58ace2(0x15b)](_0x33a955){const _0x47e43d=_0x58ace2;try{await this[_0x47e43d(0x179)]([_0x33a955]);}catch{}}['flushAsync'](){const _0x2a7de8=_0x58ace2;if(this[_0x2a7de8(0x15a)])return;this[_0x2a7de8(0x15a)]=this[_0x2a7de8(0x15c)]()['finally'](()=>{const _0x357674=_0x2a7de8;this[_0x357674(0x15a)]=null;});}async[_0x58ace2(0x179)](_0x5f3f0c){const _0x4119c0=_0x58ace2,_0x47db43={'atnkn':function(_0x400290){return _0x400290();},'zVBhM':function(_0x2bf3fc,_0xeef32b,_0x2b5a1d){return _0x2bf3fc(_0xeef32b,_0x2b5a1d);},'lKaQu':function(_0x344dc2,_0x4cb489){return _0x344dc2(_0x4cb489);}},_0x2d17ab=await _0x47db43[_0x4119c0(0x188)](getToken)['catch'](()=>null),_0x51fdec=_0x47db43['atnkn'](getApiBaseUrl),_0x35e87e={'Content-Type':_0x4119c0(0x182)};_0x2d17ab&&(_0x35e87e['Authorization']=_0x4119c0(0x19b)+_0x2d17ab);const _0x47d6fe={'events':_0x5f3f0c};process[_0x4119c0(0x19a)]['DEBUG']&&console['error'](_0x4119c0(0x19d)+_0x5f3f0c['length']+_0x4119c0(0x176)+_0x51fdec+'/api/v1/mcp/cli-telemetry');const _0x2dabaf=new AbortController(),_0x1fc1f7=_0x47db43[_0x4119c0(0x183)](setTimeout,()=>_0x2dabaf['abort'](),0x1388);try{await fetch(_0x51fdec+_0x4119c0(0x1a1),{'method':_0x4119c0(0x17e),'headers':_0x35e87e,'body':JSON[_0x4119c0(0x169)](_0x47d6fe),'signal':_0x2dabaf['signal']});}finally{_0x47db43['lKaQu'](clearTimeout,_0x1fc1f7);}}}let currentCollector=null;export function createTelemetryCollector(_0x2c154f){return currentCollector=new TelemetryCollector(_0x2c154f),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0xb05710,_0x3ed7c9,_0x53ff92){const _0xfe4859=_0x58ace2,_0x43f791={'nkBXB':function(_0x5c84b2,_0x21f3c9){return _0x5c84b2(_0x21f3c9);},'vUjFm':_0xfe4859(0x184)},_0x3fd695=_0x43f791['nkBXB'](createTelemetryCollector,_0xb05710);await _0x3fd695[_0xfe4859(0x166)](_0x53ff92);try{const _0x91c38c=await _0x3ed7c9(_0x3fd695);return await _0x3fd695[_0xfe4859(0x171)](_0x43f791['vUjFm']),_0x91c38c;}catch(_0x219a1b){await _0x3fd695['trackCommandError'](_0x219a1b);throw _0x219a1b;}finally{await _0x3fd695[_0xfe4859(0x15c)]();}}function truncate(_0x2af803,_0x11b1f7){const _0x39df6e=_0x58ace2,_0x537c1a={'CsngH':function(_0x38fd37,_0x161240){return _0x38fd37>_0x161240;},'ZMqYl':function(_0x1aa51d,_0x3acb6f){return _0x1aa51d+_0x3acb6f;},'djsUw':_0x39df6e(0x162)};return _0x537c1a[_0x39df6e(0x163)](_0x2af803['length'],_0x11b1f7)?_0x537c1a[_0x39df6e(0x167)](_0x2af803[_0x39df6e(0x1a0)](0x0,_0x11b1f7),_0x537c1a[_0x39df6e(0x192)]):_0x2af803;}function _0x2e4b(){const _0xbafca3=['sWYKx','djsUw','now','checklistItemId','toISOString','set','deviceId','transport','length','env','Bearer\x20','message','[telemetry]\x20Sending\x20','phase_error','nodeVersion','slice','/api/v1/mcp/cli-telemetry','2394YYKNrB','TnLtJ','durationMs','phaseStartTimes','Unknown','stdout','5199691ffQecF','MATit','command_error','flushing','sendImmediate','flush','setContext','590DwywQI','commandId','platform','qSuBu','...','CsngH','3131895VjXFCT','buildEvent','trackCommandStart','ZMqYl','name','stringify','hLPWN','cliVersion','buffer','6385584fLfhVj','9cVwnHL','utf-8','featureId','trackCommandEnd','browserSessionId','commandStartTime','viGKo','TUuUd','\x20event(s)\x20to\x20','GITHUB_ACTIONS','command','sendBatch','phase_end','1123788sNzJaL','trackPhaseEnd','trackPhaseError','POST','eventType','isTty','evaluation','application/json','zVBhM','success','isCI','1436472wYGLiJ','1589852OKuqqV','atnkn','outcome','phaseIndex','PoFsy','push','cwd','delete','hlHVC','splice'];_0x2e4b=function(){return _0xbafca3;};return _0x2e4b();}
@@ -0,0 +1 @@
1
+ (function(_0x3d8e09,_0x7f0acd){const _0x3254d2=_0x1e82,_0xab7ff4=_0x3d8e09();while(!![]){try{const _0x8c4fb5=-parseInt(_0x3254d2(0x1a9))/0x1+parseInt(_0x3254d2(0x1a7))/0x2*(parseInt(_0x3254d2(0x19c))/0x3)+parseInt(_0x3254d2(0x199))/0x4*(-parseInt(_0x3254d2(0x1a8))/0x5)+-parseInt(_0x3254d2(0x1aa))/0x6+parseInt(_0x3254d2(0x1a3))/0x7*(-parseInt(_0x3254d2(0x1a1))/0x8)+-parseInt(_0x3254d2(0x19f))/0x9+parseInt(_0x3254d2(0x19e))/0xa;if(_0x8c4fb5===_0x7f0acd)break;else _0xab7ff4['push'](_0xab7ff4['shift']());}catch(_0x6212f9){_0xab7ff4['push'](_0xab7ff4['shift']());}}}(_0x281d,0x428e8));function _0x1e82(_0x1e5f0b,_0x267f04){_0x1e5f0b=_0x1e5f0b-0x199;const _0x281d70=_0x281d();let _0x1e829d=_0x281d70[_0x1e5f0b];return _0x1e829d;}function _0x281d(){const _0x58e20c=['16zpdvCn','DbAVd','166033JASxcV','application/json','token','/cli-auth/refresh','4xxvLra','6425NiiynP','152468SccShy','1130886XhDfeB','888ozoaQm','refreshToken','xBEgN','14199uxodVU','timeout','9409930AAZBhS','37674UbWXca','sHiHU'];_0x281d=function(){return _0x58e20c;};return _0x281d();}import{getApiBaseUrl}from'./environment.js';import{getRefreshToken,storeToken,storeRefreshToken}from'./keychain.js';export async function refreshCliToken(){const _0x110c6b=_0x1e82,_0x28ba56={'sHiHU':function(_0x5f0dd0){return _0x5f0dd0();},'DbAVd':function(_0x393fcd,_0x26a723,_0x5c59e6){return _0x393fcd(_0x26a723,_0x5c59e6);},'hYbBA':_0x110c6b(0x1a4),'xBEgN':function(_0xd734c2,_0x1f7159){return _0xd734c2(_0x1f7159);}},_0x269cbf=await _0x28ba56[_0x110c6b(0x1a0)](getRefreshToken);if(!_0x269cbf)return null;const _0x225736=getApiBaseUrl();try{const _0x32b630=await _0x28ba56[_0x110c6b(0x1a2)](fetch,_0x225736+_0x110c6b(0x1a6),{'method':'POST','headers':{'Content-Type':_0x28ba56['hYbBA']},'body':JSON['stringify']({'refreshToken':_0x269cbf}),'signal':AbortSignal[_0x110c6b(0x19d)](0x2710)});if(!_0x32b630['ok'])return null;const _0x357037=await _0x32b630['json']();return await _0x28ba56[_0x110c6b(0x19b)](storeToken,_0x357037['token']),await storeRefreshToken(_0x357037[_0x110c6b(0x19a)]),_0x357037[_0x110c6b(0x1a5)];}catch{return null;}}
@@ -1 +1 @@
1
- function _0x12e3(){const _0x3fa05e=['parse','length','type','beforeSnapshot','string','set','626112CyPrnv','getTime','stepId','YTonC','indexOf','610023WnKTng','prQOO','YgnGV','QIiuG','4FMiEqu','utf-8','get','wallTime','Pbfyf','after','monotonicTime','startTime','afterSnapshot','ELJMU','ncfCd','JLqIA','navigated','snapshot','goto','BtKeB','params','endTime','nVMxb','Ccace','method','jIeOS','564oTtrEh','callId','149097LdfAoL','.trace','272Ayaqev','sort','6578650OqEQLx','ExIqR','frame-snapshot','url','isDirectory','inputSnapshot','pageId','values','33089HIMmJk','filter','split','capturedAt','GoDNo','19620bFjBUX','340050UhRAas'];_0x12e3=function(){return _0x3fa05e;};return _0x12e3();}(function(_0x173500,_0x1bc82b){const _0x57176b=_0x10a2,_0x3e0205=_0x173500();while(!![]){try{const _0x5eb89d=parseInt(_0x57176b(0x11d))/0x1+parseInt(_0x57176b(0x105))/0x2*(parseInt(_0x57176b(0x101))/0x3)+-parseInt(_0x57176b(0xfc))/0x4+parseInt(_0x57176b(0xf5))/0x5+parseInt(_0x57176b(0x11b))/0x6*(parseInt(_0x57176b(0xef))/0x7)+-parseInt(_0x57176b(0x11f))/0x8*(-parseInt(_0x57176b(0xf4))/0x9)+-parseInt(_0x57176b(0xe7))/0xa;if(_0x5eb89d===_0x1bc82b)break;else _0x3e0205['push'](_0x3e0205['shift']());}catch(_0x47bc48){_0x3e0205['push'](_0x3e0205['shift']());}}}(_0x12e3,0x500ae));function _0x10a2(_0x1cd4c0,_0xd6ac47){_0x1cd4c0=_0x1cd4c0-0xe6;const _0x12e3a2=_0x12e3();let _0x10a215=_0x12e3a2[_0x1cd4c0];return _0x10a215;}import{readdir,readFile}from'fs/promises';import{join}from'path';export async function mapStepsToTraceSnapshots(_0x18aacb,_0x3e318a){const _0x4808b2=_0x10a2,_0xd1087f={'ncfCd':function(_0x3fbdad,_0x11c7a2,_0x3d29ed){return _0x3fbdad(_0x11c7a2,_0x3d29ed);},'Cxojx':function(_0x16b326,_0x53b06f){return _0x16b326(_0x53b06f);},'Pbfyf':_0x4808b2(0x11e),'YTonC':function(_0x5240b9,_0x14e973){return _0x5240b9===_0x14e973;},'YgnGV':'input','BtKeB':function(_0xd0828e,_0x50a4b3){return _0xd0828e===_0x50a4b3;},'jIeOS':_0x4808b2(0xe9),'ELJMU':function(_0x43f91c,_0x574e6b){return _0x43f91c===_0x574e6b;},'ExIqR':function(_0x1c3da9,_0x2dd39a){return _0x1c3da9===_0x2dd39a;},'QIiuG':_0x4808b2(0xfa),'GoDNo':function(_0x8efea7,_0x4f6662){return _0x8efea7<_0x4f6662;},'nVMxb':'page@0','prQOO':function(_0x4fd059,_0x4dc2aa){return _0x4fd059===_0x4dc2aa;},'Ccace':function(_0x494801,_0x493f40){return _0x494801>=_0x493f40;},'JLqIA':function(_0x57687f,_0x1e55ce){return _0x57687f-_0x1e55ce;}},_0x114184=new Map();if(_0x3e318a[_0x4808b2(0xf7)]===0x0)return _0x114184;const _0x4d2a4c=[],_0x181770=async _0x521fe4=>{const _0x1a69b8=_0x4808b2,_0x27aa5f=await readdir(_0x521fe4,{'withFileTypes':!![]});for(const _0x387545 of _0x27aa5f){const _0x5cbc45=_0xd1087f[_0x1a69b8(0x10f)](join,_0x521fe4,_0x387545['name']);if(_0x387545[_0x1a69b8(0xeb)]())await _0xd1087f['Cxojx'](_0x181770,_0x5cbc45);else _0x387545['name']['endsWith'](_0xd1087f[_0x1a69b8(0x109)])&&_0x4d2a4c['push'](_0x5cbc45);}};await _0xd1087f['Cxojx'](_0x181770,_0x18aacb);if(_0x4d2a4c['length']===0x0)return _0x114184;const _0x16f982=[];for(const _0x3629cf of _0x4d2a4c){const _0x452c3f=await _0xd1087f[_0x4808b2(0x10f)](readFile,_0x3629cf,_0x4808b2(0x106)),_0x16ba47=_0x452c3f[_0x4808b2(0xf1)]('\x0a')['filter'](_0x3c0606=>_0x3c0606['trim']());for(const _0x19bdd3 of _0x16ba47){try{_0x16f982['push'](JSON[_0x4808b2(0xf6)](_0x19bdd3));}catch{}}}if(_0xd1087f[_0x4808b2(0xff)](_0x16f982[_0x4808b2(0xf7)],0x0))return _0x114184;const _0x9b3d40=_0x16f982['find'](_0x4b2957=>_0x4b2957[_0x4808b2(0xf8)]==='context-options');if(!_0x9b3d40)return _0x114184;const _0x455274=_0x9b3d40[_0x4808b2(0x108)]-_0x9b3d40[_0x4808b2(0x10b)],_0x46616d=new Map();for(const _0x21eac2 of _0x16f982){switch(_0x21eac2[_0x4808b2(0xf8)]){case'before':{const _0x1023d8=_0x21eac2;_0x46616d[_0x4808b2(0xfb)](_0x1023d8[_0x4808b2(0x11c)],{'callId':_0x1023d8[_0x4808b2(0x11c)],'startTime':_0x1023d8['startTime'],'endTime':0x0,'method':_0x1023d8['method'],'apiName':_0x1023d8['apiName'],'params':_0x1023d8[_0x4808b2(0x115)],'pageId':_0x1023d8[_0x4808b2(0xed)],'beforeSnapshot':_0x1023d8['beforeSnapshot']});break;}case _0xd1087f[_0x4808b2(0x103)]:{const _0x3be32a=_0x21eac2,_0x2eb770=_0x46616d['get'](_0x3be32a['callId']);if(_0x2eb770){if(_0x3be32a[_0x4808b2(0xec)])_0x2eb770[_0x4808b2(0xec)]=_0x3be32a[_0x4808b2(0xec)];if(_0x3be32a['point'])_0x2eb770['point']=_0x3be32a['point'];}break;}case _0x4808b2(0x10a):{const _0x45f589=_0x21eac2,_0x4a3341=_0x46616d[_0x4808b2(0x107)](_0x45f589['callId']);if(_0x4a3341){_0x4a3341[_0x4808b2(0x116)]=_0x45f589[_0x4808b2(0x116)];if(_0x45f589['afterSnapshot'])_0x4a3341[_0x4808b2(0x10d)]=_0x45f589['afterSnapshot'];}break;}}}const _0xd0c136=Array['from'](_0x46616d[_0x4808b2(0xee)]())[_0x4808b2(0xf0)](_0x2d1332=>_0x2d1332['endTime']>0x0&&(_0x2d1332['afterSnapshot']||_0x2d1332['beforeSnapshot']))[_0x4808b2(0xe6)]((_0x48c03f,_0x41f7fa)=>_0x48c03f[_0x4808b2(0x10c)]-_0x41f7fa['startTime']);if(_0xd1087f['BtKeB'](_0xd0c136['length'],0x0))return _0x114184;const _0x29318b=new Map();for(const _0x1a81aa of _0x16f982){if(_0xd1087f[_0x4808b2(0x114)](_0x1a81aa['type'],_0xd1087f[_0x4808b2(0x11a)])){const _0x18cb13=_0x1a81aa[_0x4808b2(0x112)];_0x18cb13?.['snapshotName']&&_0x18cb13?.['frameUrl']&&_0x29318b[_0x4808b2(0xfb)](_0x18cb13['snapshotName'],_0x18cb13['frameUrl']);}}const _0x207d3f=new Map();for(const _0x52ecde of _0xd0c136){const _0x3390ff=_0x52ecde['params']?.[_0x4808b2(0xea)];_0xd1087f[_0x4808b2(0x10e)](_0x52ecde['method'],'goto')&&typeof _0x3390ff==='string'&&_0x52ecde['pageId']&&_0x207d3f[_0x4808b2(0xfb)](_0x52ecde[_0x4808b2(0xed)],_0x3390ff);}for(const _0x2254f4 of _0x16f982){const _0x12feac=_0x2254f4,_0x73f42e=_0x12feac['params'],_0x550071=_0x73f42e?.['url'];_0xd1087f[_0x4808b2(0xe8)](_0x12feac['type'],'event')&&_0x12feac[_0x4808b2(0x119)]===_0x4808b2(0x111)&&_0xd1087f['YTonC'](typeof _0x550071,_0xd1087f[_0x4808b2(0x104)])&&_0xd1087f[_0x4808b2(0xff)](typeof _0x12feac['pageId'],_0x4808b2(0xfa))&&_0x207d3f['set'](_0x12feac[_0x4808b2(0xed)],_0x550071);}for(const _0x1890df of _0x3e318a){const _0x5ede84=new Date(_0x1890df[_0x4808b2(0xf2)])[_0x4808b2(0xfd)](),_0x2fb34f=_0x5ede84-_0x455274;let _0x5661f6=null,_0x3c7619=Infinity;for(const _0x3e2523 of _0xd0c136){const _0x5c8bc5=Math['abs'](_0x3e2523['endTime']-_0x2fb34f);_0xd1087f[_0x4808b2(0xf3)](_0x5c8bc5,_0x3c7619)&&(_0x3c7619=_0x5c8bc5,_0x5661f6=_0x3e2523);}if(!_0x5661f6)continue;const _0xddfbfb=_0x5661f6[_0x4808b2(0x10d)]||_0x5661f6[_0x4808b2(0xf9)];if(!_0xddfbfb)continue;const _0x328ce0=_0x5661f6[_0x4808b2(0xed)]||_0xd1087f[_0x4808b2(0x117)];let _0x25a4d1=_0x29318b['get'](_0xddfbfb)||_0x207d3f[_0x4808b2(0x107)](_0x328ce0)||'';if(!_0x25a4d1)for(let _0x35a1be=_0xd0c136['indexOf'](_0x5661f6);_0x35a1be>=0x0;_0x35a1be--){const _0xedaefd=_0xd0c136[_0x35a1be]['params']?.[_0x4808b2(0xea)];if(_0xd1087f[_0x4808b2(0x102)](_0xd0c136[_0x35a1be]['method'],_0x4808b2(0x113))&&typeof _0xedaefd===_0xd1087f['QIiuG']){_0x25a4d1=_0xedaefd;break;}}let _0x108d23,_0x3f8027;const _0x252eba=_0xd0c136[_0x4808b2(0x100)](_0x5661f6);if(_0xd1087f[_0x4808b2(0x118)](_0x252eba,0x0)&&_0x252eba<_0xd1087f[_0x4808b2(0x110)](_0xd0c136[_0x4808b2(0xf7)],0x1)){const _0x3e378e=_0xd0c136[_0x252eba+0x1];_0x3e378e['point']&&_0x3e378e['inputSnapshot']&&(_0x108d23=_0x3e378e['point'],_0x3f8027=_0x3e378e[_0x4808b2(0xec)]);}_0x114184[_0x4808b2(0xfb)](_0x1890df[_0x4808b2(0xfe)],{'snapshotName':_0xddfbfb,'inputSnapshotName':_0x3f8027,'pageId':_0x328ce0,'pageUrl':_0x25a4d1,'callId':_0x5661f6[_0x4808b2(0x11c)],'point':_0x108d23});}return _0x114184;}
1
+ function _0x5de6(_0x4fc34a,_0x36b845){_0x4fc34a=_0x4fc34a-0x166;const _0x3db872=_0x3db8();let _0x5de6b0=_0x3db872[_0x4fc34a];return _0x5de6b0;}(function(_0x5816eb,_0x5cfb44){const _0x31fdf2=_0x5de6,_0x294216=_0x5816eb();while(!![]){try{const _0x5b3c22=-parseInt(_0x31fdf2(0x167))/0x1*(-parseInt(_0x31fdf2(0x166))/0x2)+-parseInt(_0x31fdf2(0x17f))/0x3*(parseInt(_0x31fdf2(0x16e))/0x4)+-parseInt(_0x31fdf2(0x18d))/0x5*(-parseInt(_0x31fdf2(0x168))/0x6)+-parseInt(_0x31fdf2(0x18a))/0x7*(parseInt(_0x31fdf2(0x186))/0x8)+parseInt(_0x31fdf2(0x17e))/0x9*(-parseInt(_0x31fdf2(0x183))/0xa)+parseInt(_0x31fdf2(0x16c))/0xb*(parseInt(_0x31fdf2(0x185))/0xc)+parseInt(_0x31fdf2(0x17b))/0xd;if(_0x5b3c22===_0x5cfb44)break;else _0x294216['push'](_0x294216['shift']());}catch(_0x1b5014){_0x294216['push'](_0x294216['shift']());}}}(_0x3db8,0xbe093));function _0x3db8(){const _0xdda93d=['8703006LbLMTT','string','push','6651ZMkcKc','468FHkRVk','isDirectory','capturedAt','split','9560GzZlbN','before','12FVzNLc','2161088vXAupV','pageId','xXbbU','hXaYU','14tjpawt','navigated','type','6740DCKFnu','startTime','dkIzf','values','endTime','callId','length','frame-snapshot','indexOf','frameUrl','params','sort','2779934vTzrnB','1LenIcX','1632WDzTyG','goto','DRDXS','afterSnapshot','10028062CxQoTM','get','33656iJCmjI','.trace','find','filter','url','point','beforeSnapshot','kwnSj','GOOeu','method','snapshotName','inputSnapshot','NMgkS'];_0x3db8=function(){return _0xdda93d;};return _0x3db8();}import{readdir,readFile}from'fs/promises';import{join}from'path';export async function mapStepsToTraceSnapshots(_0x5d6718,_0x5e9484){const _0x12bf83=_0x5de6,_0x395f69={'mAOQZ':function(_0x4368eb,_0x229bbc,_0x313edc){return _0x4368eb(_0x229bbc,_0x313edc);},'uMzCj':function(_0x598549,_0x98051f){return _0x598549(_0x98051f);},'nODkU':_0x12bf83(0x16f),'DRDXS':function(_0x27b5dc,_0x45730b){return _0x27b5dc===_0x45730b;},'kwnSj':'utf-8','NMgkS':_0x12bf83(0x184),'MXvem':'after','GOOeu':function(_0x2cc1e0,_0x585f4a){return _0x2cc1e0===_0x585f4a;},'hXaYU':function(_0x52479f,_0x5b1f67){return _0x52479f===_0x5b1f67;},'MIxyA':_0x12bf83(0x18b),'dkIzf':function(_0x37c99f,_0x34946c){return _0x37c99f-_0x34946c;},'xXbbU':function(_0x4c821c,_0x115783){return _0x4c821c>=_0x115783;},'AfMci':function(_0x3b026f,_0x480325){return _0x3b026f+_0x480325;}},_0x1333a8=new Map();if(_0x5e9484[_0x12bf83(0x193)]===0x0)return _0x1333a8;const _0x3c4a62=[],_0x277e7b=async _0x150857=>{const _0x1614d8=_0x12bf83,_0x4d50c2=await _0x395f69['mAOQZ'](readdir,_0x150857,{'withFileTypes':!![]});for(const _0x125f83 of _0x4d50c2){const _0x81e367=join(_0x150857,_0x125f83['name']);if(_0x125f83[_0x1614d8(0x180)]())await _0x395f69['uMzCj'](_0x277e7b,_0x81e367);else _0x125f83['name']['endsWith'](_0x395f69['nODkU'])&&_0x3c4a62['push'](_0x81e367);}};await _0x277e7b(_0x5d6718);if(_0x395f69[_0x12bf83(0x16a)](_0x3c4a62[_0x12bf83(0x193)],0x0))return _0x1333a8;const _0x4f446c=[];for(const _0x1a44bc of _0x3c4a62){const _0x1f7981=await readFile(_0x1a44bc,_0x395f69[_0x12bf83(0x175)]),_0x465d1e=_0x1f7981[_0x12bf83(0x182)]('\x0a')[_0x12bf83(0x171)](_0x34c1a6=>_0x34c1a6['trim']());for(const _0x551aa9 of _0x465d1e){try{_0x4f446c[_0x12bf83(0x17d)](JSON['parse'](_0x551aa9));}catch{}}}if(_0x4f446c[_0x12bf83(0x193)]===0x0)return _0x1333a8;const _0xd742d9=_0x4f446c[_0x12bf83(0x170)](_0x36930a=>_0x36930a[_0x12bf83(0x18c)]==='context-options');if(!_0xd742d9)return _0x1333a8;const _0x169fe1=_0xd742d9['wallTime']-_0xd742d9['monotonicTime'],_0x1a22f3=new Map();for(const _0x437f85 of _0x4f446c){switch(_0x437f85[_0x12bf83(0x18c)]){case _0x395f69[_0x12bf83(0x17a)]:{const _0x5bb210=_0x437f85;_0x1a22f3['set'](_0x5bb210[_0x12bf83(0x192)],{'callId':_0x5bb210['callId'],'startTime':_0x5bb210[_0x12bf83(0x18e)],'endTime':0x0,'method':_0x5bb210[_0x12bf83(0x177)],'apiName':_0x5bb210['apiName'],'params':_0x5bb210[_0x12bf83(0x197)],'pageId':_0x5bb210[_0x12bf83(0x187)],'beforeSnapshot':_0x5bb210['beforeSnapshot']});break;}case'input':{const _0x14b108=_0x437f85,_0xc21fd5=_0x1a22f3['get'](_0x14b108[_0x12bf83(0x192)]);if(_0xc21fd5){if(_0x14b108[_0x12bf83(0x179)])_0xc21fd5[_0x12bf83(0x179)]=_0x14b108[_0x12bf83(0x179)];if(_0x14b108[_0x12bf83(0x173)])_0xc21fd5[_0x12bf83(0x173)]=_0x14b108[_0x12bf83(0x173)];}break;}case _0x395f69['MXvem']:{const _0x1c70e6=_0x437f85,_0x181814=_0x1a22f3['get'](_0x1c70e6[_0x12bf83(0x192)]);if(_0x181814){_0x181814['endTime']=_0x1c70e6[_0x12bf83(0x191)];if(_0x1c70e6[_0x12bf83(0x16b)])_0x181814['afterSnapshot']=_0x1c70e6[_0x12bf83(0x16b)];}break;}}}const _0x2a8673=Array['from'](_0x1a22f3[_0x12bf83(0x190)]())['filter'](_0x40b3f4=>_0x40b3f4['endTime']>0x0&&(_0x40b3f4[_0x12bf83(0x16b)]||_0x40b3f4[_0x12bf83(0x174)]))[_0x12bf83(0x198)]((_0xd5b647,_0xbbff1f)=>_0xd5b647['startTime']-_0xbbff1f['startTime']);if(_0x395f69[_0x12bf83(0x176)](_0x2a8673['length'],0x0))return _0x1333a8;const _0xb3c734=new Map();for(const _0x102cf5 of _0x4f446c){if(_0x102cf5[_0x12bf83(0x18c)]===_0x12bf83(0x194)){const _0x38b070=_0x102cf5['snapshot'];_0x38b070?.[_0x12bf83(0x178)]&&_0x38b070?.['frameUrl']&&_0xb3c734['set'](_0x38b070[_0x12bf83(0x178)],_0x38b070[_0x12bf83(0x196)]);}}const _0x8c6f76=new Map();for(const _0x3c9d5c of _0x2a8673){const _0x4c9b1e=_0x3c9d5c['params']?.['url'];_0x3c9d5c[_0x12bf83(0x177)]===_0x12bf83(0x169)&&typeof _0x4c9b1e==='string'&&_0x3c9d5c[_0x12bf83(0x187)]&&_0x8c6f76['set'](_0x3c9d5c[_0x12bf83(0x187)],_0x4c9b1e);}for(const _0x3c3bb6 of _0x4f446c){const _0x5113ba=_0x3c3bb6,_0x4f2aa9=_0x5113ba['params'],_0x105957=_0x4f2aa9?.[_0x12bf83(0x172)];_0x5113ba['type']==='event'&&_0x395f69['hXaYU'](_0x5113ba['method'],_0x395f69['MIxyA'])&&typeof _0x105957==='string'&&_0x395f69[_0x12bf83(0x16a)](typeof _0x5113ba[_0x12bf83(0x187)],_0x12bf83(0x17c))&&_0x8c6f76['set'](_0x5113ba[_0x12bf83(0x187)],_0x105957);}for(const _0x2242ed of _0x5e9484){const _0x5ed836=new Date(_0x2242ed[_0x12bf83(0x181)])['getTime'](),_0x1319c7=_0x5ed836-_0x169fe1;let _0x1f7eb6=null,_0x3ef126=Infinity;for(const _0x55ebe2 of _0x2a8673){const _0xdc738c=Math['abs'](_0x395f69[_0x12bf83(0x18f)](_0x55ebe2['endTime'],_0x1319c7));_0xdc738c<_0x3ef126&&(_0x3ef126=_0xdc738c,_0x1f7eb6=_0x55ebe2);}if(!_0x1f7eb6)continue;const _0x29f3da=_0x1f7eb6[_0x12bf83(0x16b)]||_0x1f7eb6[_0x12bf83(0x174)];if(!_0x29f3da)continue;const _0x472263=_0x1f7eb6[_0x12bf83(0x187)]||'page@0';let _0x58de8b=_0xb3c734[_0x12bf83(0x16d)](_0x29f3da)||_0x8c6f76['get'](_0x472263)||'';if(!_0x58de8b)for(let _0x346bb3=_0x2a8673[_0x12bf83(0x195)](_0x1f7eb6);_0x395f69['xXbbU'](_0x346bb3,0x0);_0x346bb3--){const _0x59cfb7=_0x2a8673[_0x346bb3][_0x12bf83(0x197)]?.[_0x12bf83(0x172)];if(_0x2a8673[_0x346bb3][_0x12bf83(0x177)]==='goto'&&_0x395f69[_0x12bf83(0x189)](typeof _0x59cfb7,_0x12bf83(0x17c))){_0x58de8b=_0x59cfb7;break;}}let _0x343232,_0x486bb6;const _0x44d5b7=_0x2a8673[_0x12bf83(0x195)](_0x1f7eb6);if(_0x395f69[_0x12bf83(0x188)](_0x44d5b7,0x0)&&_0x44d5b7<_0x2a8673['length']-0x1){const _0x2cf599=_0x2a8673[_0x395f69['AfMci'](_0x44d5b7,0x1)];_0x2cf599[_0x12bf83(0x173)]&&_0x2cf599['inputSnapshot']&&(_0x343232=_0x2cf599[_0x12bf83(0x173)],_0x486bb6=_0x2cf599[_0x12bf83(0x179)]);}_0x1333a8['set'](_0x2242ed['stepId'],{'snapshotName':_0x29f3da,'inputSnapshotName':_0x486bb6,'pageId':_0x472263,'pageUrl':_0x58de8b,'callId':_0x1f7eb6[_0x12bf83(0x192)],'point':_0x343232});}return _0x1333a8;}
@@ -1 +1 @@
1
- function _0x583b(){const _0x360f1a=['rnCKq','3919472vpVFsj','598832UIiBPo','statusText','5343674oLFhbK','status','104778gkEiBy','17730610yWjmtb','TgQJI','694660lSvbdK','18ntfyPb','1898583tSKFaN','4HEKPPC','270ckQQPl','/api/v1/mcp/me'];_0x583b=function(){return _0x360f1a;};return _0x583b();}(function(_0x518d44,_0x307b6e){const _0x49ae86=_0x4de3,_0x53cf27=_0x518d44();while(!![]){try{const _0x2a49bd=-parseInt(_0x49ae86(0x143))/0x1+-parseInt(_0x49ae86(0x13b))/0x2+-parseInt(_0x49ae86(0x13d))/0x3*(-parseInt(_0x49ae86(0x13e))/0x4)+-parseInt(_0x49ae86(0x13f))/0x5*(parseInt(_0x49ae86(0x138))/0x6)+-parseInt(_0x49ae86(0x136))/0x7+-parseInt(_0x49ae86(0x142))/0x8*(-parseInt(_0x49ae86(0x13c))/0x9)+parseInt(_0x49ae86(0x139))/0xa;if(_0x2a49bd===_0x307b6e)break;else _0x53cf27['push'](_0x53cf27['shift']());}catch(_0x9870ea){_0x53cf27['push'](_0x53cf27['shift']());}}}(_0x583b,0xb303c));function _0x4de3(_0x38893c,_0x4d44a4){_0x38893c=_0x38893c-0x135;const _0x583b14=_0x583b();let _0x4de36a=_0x583b14[_0x38893c];return _0x4de36a;}import{getApiBaseUrl}from'./environment.js';export async function getCurrentUser(_0x6f9cb9){const _0x142e9d=_0x4de3,_0x52502e={'rnCKq':function(_0x171667,_0x12a3a5,_0x1ce29f){return _0x171667(_0x12a3a5,_0x1ce29f);},'TgQJI':'GET','ZNaVH':function(_0x5e12eb,_0x1090aa){return _0x5e12eb(_0x1090aa);}},_0x134c01=getApiBaseUrl();try{const _0x160d7d=await _0x52502e[_0x142e9d(0x141)](fetch,_0x134c01+_0x142e9d(0x140),{'method':_0x52502e[_0x142e9d(0x13a)],'headers':{'Authorization':'Bearer\x20'+_0x6f9cb9}});if(!_0x160d7d['ok'])return{'success':![],'error':_0x160d7d[_0x142e9d(0x137)]+'\x20'+_0x160d7d[_0x142e9d(0x135)],'status':_0x160d7d['status']};const _0x41135b=await _0x160d7d['json']();return{'success':!![],'user':_0x41135b};}catch(_0x319115){return{'success':![],'error':_0x319115 instanceof Error?_0x319115['message']:_0x52502e['ZNaVH'](String,_0x319115)};}}
1
+ (function(_0x5d4433,_0x2acc28){const _0x81101f=_0x12f5,_0x2adb32=_0x5d4433();while(!![]){try{const _0x178822=parseInt(_0x81101f(0x90))/0x1*(parseInt(_0x81101f(0x97))/0x2)+-parseInt(_0x81101f(0x92))/0x3*(-parseInt(_0x81101f(0x8c))/0x4)+parseInt(_0x81101f(0x91))/0x5*(parseInt(_0x81101f(0x95))/0x6)+parseInt(_0x81101f(0x8f))/0x7*(parseInt(_0x81101f(0x96))/0x8)+parseInt(_0x81101f(0x8b))/0x9+-parseInt(_0x81101f(0x99))/0xa+parseInt(_0x81101f(0x93))/0xb*(-parseInt(_0x81101f(0x94))/0xc);if(_0x178822===_0x2acc28)break;else _0x2adb32['push'](_0x2adb32['shift']());}catch(_0x57f44a){_0x2adb32['push'](_0x2adb32['shift']());}}}(_0x1cbb,0x425ec));function _0x1cbb(){const _0x119dec=['51963aQgrwf','1645897zEncdk','36wOYFYm','1902UPeKfb','8PNKOLM','88904bhllrh','json','4718630iQXqtK','1505079bqWgCc','104GZxvMC','status','GET','1093736dkepWw','9dmXoOw','295qjdNnM'];_0x1cbb=function(){return _0x119dec;};return _0x1cbb();}function _0x12f5(_0x13bf2a,_0x3d44c8){_0x13bf2a=_0x13bf2a-0x8b;const _0x1cbbd0=_0x1cbb();let _0x12f574=_0x1cbbd0[_0x13bf2a];return _0x12f574;}import{getApiBaseUrl}from'./environment.js';export async function getCurrentUser(_0x1ae4b8){const _0x3eae2e=_0x12f5,_0x4dd005=getApiBaseUrl();try{const _0x5c4df3=await fetch(_0x4dd005+'/api/v1/mcp/me',{'method':_0x3eae2e(0x8e),'headers':{'Authorization':'Bearer\x20'+_0x1ae4b8}});if(!_0x5c4df3['ok'])return{'success':![],'error':_0x5c4df3[_0x3eae2e(0x8d)]+'\x20'+_0x5c4df3['statusText'],'status':_0x5c4df3[_0x3eae2e(0x8d)]};const _0x223268=await _0x5c4df3[_0x3eae2e(0x98)]();return{'success':!![],'user':_0x223268};}catch(_0x16adc6){return{'success':![],'error':_0x16adc6 instanceof Error?_0x16adc6['message']:String(_0x16adc6)};}}
@@ -1 +1 @@
1
- (function(_0x4ecc72,_0x305a0e){const _0xe9a0c=_0x6ada,_0xc7e7e9=_0x4ecc72();while(!![]){try{const _0x954dda=-parseInt(_0xe9a0c(0x7e))/0x1*(parseInt(_0xe9a0c(0x81))/0x2)+parseInt(_0xe9a0c(0x8e))/0x3+parseInt(_0xe9a0c(0x80))/0x4+parseInt(_0xe9a0c(0x8b))/0x5+parseInt(_0xe9a0c(0x8a))/0x6*(parseInt(_0xe9a0c(0x84))/0x7)+parseInt(_0xe9a0c(0x8f))/0x8+-parseInt(_0xe9a0c(0x8d))/0x9;if(_0x954dda===_0x305a0e)break;else _0xc7e7e9['push'](_0xc7e7e9['shift']());}catch(_0x59fd25){_0xc7e7e9['push'](_0xc7e7e9['shift']());}}}(_0x51be,0x9dc81));function _0x6ada(_0x1cbd88,_0x19fa7f){_0x1cbd88=_0x1cbd88-0x7e;const _0x51bebd=_0x51be();let _0x6ada42=_0x51bebd[_0x1cbd88];return _0x6ada42;}import{readFileSync}from'fs';import{existsSync}from'fs';import{execSync}from'child_process';import{fileURLToPath}from'url';import{dirname,join}from'path';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const PACKAGE_NAME='@ranger-testing/ranger-cli';export function getCurrentVersion(){const _0x44cd18=_0x6ada,_0x3d02ec={'iKnNh':_0x44cd18(0x91),'oajvc':function(_0x1fb423,_0x292eff,_0x413ca9,_0x5314be,_0x209eb6,_0x1bbaa9){return _0x1fb423(_0x292eff,_0x413ca9,_0x5314be,_0x209eb6,_0x1bbaa9);},'hXFxw':function(_0x4e6b30,_0xf7fc43,_0x3ee1b2){return _0x4e6b30(_0xf7fc43,_0x3ee1b2);},'HCvGz':'unknown'},_0x287c3b=[join(__dirname,'..','..',_0x3d02ec[_0x44cd18(0x89)]),_0x3d02ec[_0x44cd18(0x7f)](join,__dirname,'..','..','..',_0x3d02ec['iKnNh'])];for(const _0x13c0cd of _0x287c3b){if(existsSync(_0x13c0cd))try{const _0x3c93e2=JSON['parse'](_0x3d02ec['hXFxw'](readFileSync,_0x13c0cd,'utf-8'));return _0x3c93e2['version']||_0x3d02ec[_0x44cd18(0x82)];}catch{continue;}}return'unknown';}export function getLatestVersion(){const _0x53161b=_0x6ada,_0x5441b8={'CZnyE':_0x53161b(0x8c),'UXMHd':_0x53161b(0x86),'MUnti':function(_0x179807,_0x74f9e6){return _0x179807(_0x74f9e6);}};try{const _0x4af468=execSync('npm\x20view\x20'+PACKAGE_NAME+_0x53161b(0x83),{'encoding':_0x5441b8['CZnyE'],'timeout':0x2710,'stdio':[_0x5441b8[_0x53161b(0x90)],'pipe',_0x53161b(0x86)]});return{'version':_0x4af468[_0x53161b(0x85)]()};}catch(_0x5db9d2){const _0x25d752=_0x5db9d2 instanceof Error?_0x5db9d2['message']:_0x5441b8['MUnti'](String,_0x5db9d2);return{'error':_0x25d752};}}function _0x51be(){const _0x59a553=['31fNoeFC','oajvc','4366148ECeHGy','28ySxJPU','HCvGz','\x20version','289387XuSxNV','trim','pipe','map','split','iKnNh','174eIAnNy','1449945mpJeIb','utf-8','27541620IFZOVn','2527509qDVkSm','2271752RslqYv','UXMHd','package.json'];_0x51be=function(){return _0x59a553;};return _0x51be();}export function compareVersions(_0x8b1d2e,_0x316c72){const _0x31ee98=_0x6ada,_0x3a032f={'Nhzsy':function(_0x17f641,_0x4d8254){return _0x17f641<_0x4d8254;}},_0x7cd293=_0x8b1d2e['split']('.')['map'](Number),_0x2dd37b=_0x316c72[_0x31ee98(0x88)]('.')[_0x31ee98(0x87)](Number);for(let _0x30f1ac=0x0;_0x3a032f['Nhzsy'](_0x30f1ac,0x3);_0x30f1ac++){const _0x426aff=_0x7cd293[_0x30f1ac]||0x0,_0x290e13=_0x2dd37b[_0x30f1ac]||0x0;if(_0x290e13>_0x426aff)return 0x1;if(_0x290e13<_0x426aff)return-0x1;}return 0x0;}
1
+ const _0x3e8607=_0x5ce8;(function(_0x1fc2b8,_0x3030da){const _0x441f80=_0x5ce8,_0x2b9146=_0x1fc2b8();while(!![]){try{const _0x2cfcac=parseInt(_0x441f80(0x177))/0x1*(parseInt(_0x441f80(0x171))/0x2)+-parseInt(_0x441f80(0x182))/0x3*(parseInt(_0x441f80(0x180))/0x4)+parseInt(_0x441f80(0x17f))/0x5*(-parseInt(_0x441f80(0x186))/0x6)+-parseInt(_0x441f80(0x179))/0x7+parseInt(_0x441f80(0x172))/0x8*(parseInt(_0x441f80(0x17e))/0x9)+-parseInt(_0x441f80(0x184))/0xa*(-parseInt(_0x441f80(0x175))/0xb)+-parseInt(_0x441f80(0x185))/0xc*(-parseInt(_0x441f80(0x17b))/0xd);if(_0x2cfcac===_0x3030da)break;else _0x2b9146['push'](_0x2b9146['shift']());}catch(_0x72e60a){_0x2b9146['push'](_0x2b9146['shift']());}}}(_0x120a,0xb8381));import{readFileSync}from'fs';import{existsSync}from'fs';import{execSync}from'child_process';import{fileURLToPath}from'url';import{dirname,join}from'path';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function _0x5ce8(_0x2fd0fe,_0x161440){_0x2fd0fe=_0x2fd0fe-0x171;const _0x120a36=_0x120a();let _0x5ce82a=_0x120a36[_0x2fd0fe];return _0x5ce82a;}export const PACKAGE_NAME=_0x3e8607(0x178);export function getCurrentVersion(){const _0x3a963e=_0x3e8607,_0x5b2027={'CTedX':'package.json','XOuIp':_0x3a963e(0x176)},_0x3a34be=[join(__dirname,'..','..',_0x3a963e(0x183)),join(__dirname,'..','..','..',_0x5b2027[_0x3a963e(0x17d)])];for(const _0xb1538c of _0x3a34be){if(existsSync(_0xb1538c))try{const _0x99f4b1=JSON['parse'](readFileSync(_0xb1538c,_0x5b2027['XOuIp']));return _0x99f4b1[_0x3a963e(0x174)]||_0x3a963e(0x181);}catch{continue;}}return'unknown';}export function getLatestVersion(){const _0x14c3dd=_0x3e8607,_0x4491db={'bkedn':function(_0x1b169a,_0x2021d3){return _0x1b169a instanceof _0x2021d3;}};try{const _0x46cd59=execSync(_0x14c3dd(0x187)+PACKAGE_NAME+'\x20version',{'encoding':_0x14c3dd(0x176),'timeout':0x2710,'stdio':[_0x14c3dd(0x17a),_0x14c3dd(0x17a),'pipe']});return{'version':_0x46cd59[_0x14c3dd(0x17c)]()};}catch(_0x9a3c32){const _0x4df5ce=_0x4491db['bkedn'](_0x9a3c32,Error)?_0x9a3c32['message']:String(_0x9a3c32);return{'error':_0x4df5ce};}}export function compareVersions(_0x367687,_0x242576){const _0x23bc1c=_0x3e8607,_0x232f0a=_0x367687['split']('.')[_0x23bc1c(0x173)](Number),_0x404ece=_0x242576['split']('.')[_0x23bc1c(0x173)](Number);for(let _0x517c35=0x0;_0x517c35<0x3;_0x517c35++){const _0x598310=_0x232f0a[_0x517c35]||0x0,_0x21f5b0=_0x404ece[_0x517c35]||0x0;if(_0x21f5b0>_0x598310)return 0x1;if(_0x21f5b0<_0x598310)return-0x1;}return 0x0;}function _0x120a(){const _0x519a93=['1960428XgKcUz','276sURdpa','npm\x20view\x20','560314mzXJdb','152CKawLd','map','version','1222716KSkoSL','utf-8','1ubMTxt','@ranger-testing/ranger-cli','1652882rUDCzi','pipe','91PoTySb','trim','CTedX','616617dkuzOP','117940CQVBWu','4822128SonhSM','unknown','3HrSRKt','package.json','50rQDmor'];_0x120a=function(){return _0x519a93;};return _0x120a();}