@ranger-testing/ranger-cli 3.1.7-alpha.387730d-58 → 3.1.7-alpha.9ed0a8d-59

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 (86) 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/deleteProfile.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/novaActCli.js +1 -1
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/organizationEnvApi.js +1 -1
  60. package/build/commands/utils/playwrightCli.js +1 -1
  61. package/build/commands/utils/profileMessages.js +1 -1
  62. package/build/commands/utils/profileSetupBanner.js +1 -1
  63. package/build/commands/utils/projectsConfig.js +1 -1
  64. package/build/commands/utils/rangerConfig.js +1 -1
  65. package/build/commands/utils/rangerRoot.js +1 -1
  66. package/build/commands/utils/rangerwrightCli.js +1 -1
  67. package/build/commands/utils/resolveProfileContext.js +1 -1
  68. package/build/commands/utils/resolveProfileUrl.js +1 -1
  69. package/build/commands/utils/retry.js +1 -1
  70. package/build/commands/utils/scenarioOriginCheck.js +1 -1
  71. package/build/commands/utils/sessionCache.js +1 -1
  72. package/build/commands/utils/settings.js +1 -1
  73. package/build/commands/utils/skillContent.js +1 -1
  74. package/build/commands/utils/skills.js +1 -1
  75. package/build/commands/utils/stitchWebmFiles.js +1 -1
  76. package/build/commands/utils/telemetry.js +1 -1
  77. package/build/commands/utils/tokenRefresh.js +1 -1
  78. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  79. package/build/commands/utils/tunnelClient.js +1 -1
  80. package/build/commands/utils/userApi.js +1 -1
  81. package/build/commands/utils/version.js +1 -1
  82. package/build/commands/verifyFeature.js +1 -1
  83. package/build/commands/verifyFeatureCli.js +1 -1
  84. package/build/commands/verifyFeatureNovaCli.js +1 -1
  85. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  86. package/package.json +1 -1
@@ -1 +1 @@
1
- const _0x1e6d20=_0x4e7f;(function(_0x2a9232,_0x352d9b){const _0x524955=_0x4e7f,_0x124783=_0x2a9232();while(!![]){try{const _0x2b48d7=-parseInt(_0x524955(0x1ee))/0x1*(-parseInt(_0x524955(0x201))/0x2)+parseInt(_0x524955(0x204))/0x3+-parseInt(_0x524955(0x1fd))/0x4*(-parseInt(_0x524955(0x209))/0x5)+-parseInt(_0x524955(0x21e))/0x6*(-parseInt(_0x524955(0x20c))/0x7)+-parseInt(_0x524955(0x21b))/0x8+parseInt(_0x524955(0x1e6))/0x9+-parseInt(_0x524955(0x1f9))/0xa;if(_0x2b48d7===_0x352d9b)break;else _0x124783['push'](_0x124783['shift']());}catch(_0x46d106){_0x124783['push'](_0x124783['shift']());}}}(_0x1e6d,0x2db94));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_DURATION=0x4489,ID_VOID=0xec,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x5cdd54,_0x49f4de){const _0x3b6047=_0x4e7f,_0x3b3ca0={'cqWWU':function(_0x1a0f34,_0x477ad8){return _0x1a0f34&_0x477ad8;},'jOpuk':function(_0x1b4df8,_0x1ef759){return _0x1b4df8>_0x1ef759;},'OzXkt':function(_0x225ecb,_0xe6e791){return _0x225ecb+_0xe6e791;},'XqBII':function(_0x28e239,_0x445527){return _0x28e239<_0x445527;}};if(_0x49f4de>=_0x5cdd54[_0x3b6047(0x211)])return[0x0,0x0];const _0x3de868=_0x5cdd54[_0x49f4de];let _0x142a94=0x1,_0x16184f=0x80;while(_0x142a94<=0x8&&!_0x3b3ca0['cqWWU'](_0x3de868,_0x16184f)){_0x142a94++,_0x16184f>>=0x1;}if(_0x3b3ca0[_0x3b6047(0x208)](_0x3b3ca0['OzXkt'](_0x49f4de,_0x142a94),_0x5cdd54['length']))return[0x0,0x0];let _0x314094=_0x3de868&_0x16184f-0x1;for(let _0x27722d=0x1;_0x3b3ca0['XqBII'](_0x27722d,_0x142a94);_0x27722d++){_0x314094=_0x3b3ca0['OzXkt'](_0x314094*0x100,_0x5cdd54[_0x49f4de+_0x27722d]);}return[_0x314094,_0x142a94];}function readId(_0xb1adf1,_0x54ca41){const _0x13433c=_0x4e7f,_0x23b48f={'dQxFI':function(_0x9d9321,_0x9e8fd){return _0x9d9321>=_0x9e8fd;},'vudnQ':function(_0x1f68af,_0x1fea9c){return _0x1f68af>=_0x1fea9c;},'JLoFJ':function(_0x411f30,_0x300ffa){return _0x411f30+_0x300ffa;},'vRHoQ':function(_0x54345f,_0x4868a8){return _0x54345f<_0x4868a8;}};if(_0x23b48f['dQxFI'](_0x54ca41,_0xb1adf1[_0x13433c(0x211)]))return[0x0,0x0];const _0x2852b4=_0xb1adf1[_0x54ca41];let _0x5a30cc;if(_0x23b48f['dQxFI'](_0x2852b4,0x80))_0x5a30cc=0x1;else{if(_0x23b48f['dQxFI'](_0x2852b4,0x40))_0x5a30cc=0x2;else{if(_0x2852b4>=0x20)_0x5a30cc=0x3;else{if(_0x23b48f['vudnQ'](_0x2852b4,0x10))_0x5a30cc=0x4;else return[_0x2852b4,0x1];}}}if(_0x23b48f[_0x13433c(0x1e2)](_0x54ca41,_0x5a30cc)>_0xb1adf1[_0x13433c(0x211)])return[0x0,0x0];let _0x3f912e=0x0;for(let _0x3e966c=0x0;_0x23b48f[_0x13433c(0x1e1)](_0x3e966c,_0x5a30cc);_0x3e966c++){_0x3f912e=_0x3f912e*0x100+_0xb1adf1[_0x54ca41+_0x3e966c];}return[_0x3f912e,_0x5a30cc];}function readUint(_0x3b2d2c,_0x39472b,_0x39b68c){const _0x37a5d1={'ubjeb':function(_0x1d3407,_0x27401d){return _0x1d3407+_0x27401d;},'qLshm':function(_0x22626a,_0x552d68){return _0x22626a+_0x552d68;}};let _0x30c755=0x0;for(let _0x22b64b=0x0;_0x22b64b<_0x39b68c;_0x22b64b++){_0x30c755=_0x37a5d1['ubjeb'](_0x30c755*0x100,_0x3b2d2c[_0x37a5d1['qLshm'](_0x39472b,_0x22b64b)]);}return _0x30c755;}function isUnknownSize(_0x466a2a,_0xc02313){const _0x4d818b=_0x4e7f,_0xbaa1eb={'QkEWM':function(_0x33e8e,_0x5a700b){return _0x33e8e===_0x5a700b;},'YiIIl':function(_0x1a8c4c,_0x1b7d00){return _0x1a8c4c-_0x1b7d00;},'duiQH':function(_0x5838c,_0x1a2619){return _0x5838c*_0x1a2619;}};return _0xbaa1eb['QkEWM'](_0x466a2a,_0xbaa1eb['YiIIl'](Math['pow'](0x2,_0xbaa1eb[_0x4d818b(0x215)](0x7,_0xc02313)),0x1));}function _0x4e7f(_0x4da12b,_0xfe175d){_0x4da12b=_0x4da12b-0x1dd;const _0x1e6d43=_0x1e6d();let _0x4e7fad=_0x1e6d43[_0x4da12b];return _0x4e7fad;}function writeId(_0x3b6b55){const _0x408c23=_0x4e7f,_0x4f039b={'eQFxc':function(_0x360992,_0xd1523){return _0x360992<=_0xd1523;},'meDpm':function(_0x4d87fb,_0x27ad2d){return _0x4d87fb<=_0x27ad2d;},'gLcMh':function(_0x2eae11,_0x27015b){return _0x2eae11&_0x27015b;},'KtLvX':function(_0x5cc01a,_0x23da93){return _0x5cc01a>>_0x23da93;},'ylDUW':function(_0x2381e0,_0x22cba6){return _0x2381e0&_0x22cba6;},'aKDOZ':function(_0x326230,_0x2ba3ed){return _0x326230>>_0x2ba3ed;},'AaNMj':function(_0x38663e,_0x44c3ba){return _0x38663e&_0x44c3ba;}};if(_0x4f039b[_0x408c23(0x1f5)](_0x3b6b55,0xff))return Buffer[_0x408c23(0x1e0)]([_0x3b6b55]);if(_0x4f039b['meDpm'](_0x3b6b55,0xffff))return Buffer[_0x408c23(0x1e0)]([_0x4f039b[_0x408c23(0x1f0)](_0x4f039b['KtLvX'](_0x3b6b55,0x8),0xff),_0x3b6b55&0xff]);if(_0x4f039b['meDpm'](_0x3b6b55,0xffffff))return Buffer[_0x408c23(0x1e0)]([_0x4f039b[_0x408c23(0x202)](_0x3b6b55>>0x10,0xff),_0x4f039b[_0x408c23(0x21a)](_0x3b6b55,0x8)&0xff,_0x3b6b55&0xff]);return Buffer[_0x408c23(0x1e0)]([_0x4f039b[_0x408c23(0x202)](_0x4f039b[_0x408c23(0x21a)](_0x3b6b55,0x18),0xff),_0x3b6b55>>0x10&0xff,_0x4f039b[_0x408c23(0x210)](_0x3b6b55>>0x8,0xff),_0x4f039b[_0x408c23(0x202)](_0x3b6b55,0xff)]);}function writeVint(_0x2b6a39,_0x5f3501){const _0x532184=_0x4e7f,_0x105ae3={'MoaLt':function(_0x103d9e,_0x6c5122){return _0x103d9e||_0x6c5122;},'bLWYT':function(_0xbae152,_0x27a481){return _0xbae152<_0x27a481;},'uNNBY':function(_0x45939e,_0x492757){return _0x45939e-_0x492757;},'JTOTk':function(_0x15200f,_0x1a3754){return _0x15200f*_0x1a3754;},'jtKLx':function(_0x1b75d2,_0x36c621){return _0x1b75d2>=_0x36c621;},'CSXTd':function(_0x1c1c1c,_0x2b029f){return _0x1c1c1c<<_0x2b029f;}};let _0x51e528=_0x105ae3[_0x532184(0x1f4)](_0x5f3501,0x1);while(_0x105ae3['bLWYT'](_0x105ae3[_0x532184(0x1ea)](Math[_0x532184(0x20f)](0x2,_0x105ae3['JTOTk'](0x7,_0x51e528)),0x2),_0x2b6a39))_0x51e528++;const _0x32dde4=Buffer['alloc'](_0x51e528);for(let _0xed880=_0x51e528-0x1;_0x105ae3[_0x532184(0x207)](_0xed880,0x0);_0xed880--){_0x32dde4[_0xed880]=_0x2b6a39&0xff,_0x2b6a39=Math['floor'](_0x2b6a39/0x100);}return _0x32dde4[0x0]|=_0x105ae3['CSXTd'](0x1,0x8-_0x51e528),_0x32dde4;}function writeFloat64(_0x961eea){const _0x3748c0=Buffer['alloc'](0x8);return _0x3748c0['writeDoubleBE'](_0x961eea,0x0),_0x3748c0;}function writeVoid(_0x52f08c){const _0x281a89=_0x4e7f,_0x3bdd7f={'EeEiU':function(_0x515f10,_0x47814c){return _0x515f10<=_0x47814c;},'BxoHn':function(_0xf67e01,_0x1bf45a){return _0xf67e01-_0x1bf45a;},'JxyXo':function(_0x1e38de,_0xa9a1c2){return _0x1e38de-_0xa9a1c2;},'EyCJj':function(_0x4d4d22,_0x3021f1){return _0x4d4d22>=_0x3021f1;}};for(let _0x559618=0x1;_0x3bdd7f[_0x281a89(0x1f8)](_0x559618,0x8);_0x559618++){const _0x373f15=_0x3bdd7f['BxoHn'](_0x3bdd7f[_0x281a89(0x1f2)](_0x52f08c,0x1),_0x559618);if(_0x3bdd7f[_0x281a89(0x20e)](_0x373f15,0x0)&&_0x3bdd7f[_0x281a89(0x1f8)](_0x373f15,Math['pow'](0x2,0x7*_0x559618)-0x2))return Buffer[_0x281a89(0x1e7)]([Buffer[_0x281a89(0x1e0)]([ID_VOID]),writeVint(_0x373f15,_0x559618),Buffer[_0x281a89(0x1e4)](_0x373f15)]);}return Buffer[_0x281a89(0x1e4)](0x0);}function findElement(_0x2ecaa1,_0x16d84a,_0x31e1c2,_0x4148e3){const _0x15b8f6=_0x4e7f,_0x5b05bb={'uhtfA':function(_0x481ec7,_0x19df9f){return _0x481ec7<_0x19df9f;},'wCtrW':function(_0x40c835,_0x2174e2){return _0x40c835===_0x2174e2;},'jMFiR':function(_0x4f3575,_0xc070a7){return _0x4f3575+_0xc070a7;}};let _0x145c95=_0x16d84a;while(_0x5b05bb[_0x15b8f6(0x21d)](_0x145c95,_0x31e1c2)){const [_0x3826e5,_0xd2b08f]=readId(_0x2ecaa1,_0x145c95),[_0x1b1f0b,_0x2784c0]=readVint(_0x2ecaa1,_0x145c95+_0xd2b08f);if(_0x5b05bb['wCtrW'](_0x3826e5,_0x4148e3))return{'offset':_0x145c95,'idLen':_0xd2b08f,'sizeLen':_0x2784c0,'dataSize':_0x1b1f0b,'dataOffset':_0x145c95+_0xd2b08f+_0x2784c0};if(isUnknownSize(_0x1b1f0b,_0x2784c0))break;_0x145c95+=_0x5b05bb['jMFiR'](_0xd2b08f+_0x2784c0,_0x1b1f0b);}return null;}function computeDurationMs(_0x15bf7e,_0x287fa7){const _0x7fa2a4=_0x4e7f,_0xc4e37f={'bFbPs':function(_0x34513d,_0x1e58d5){return _0x34513d===_0x1e58d5;},'gGczi':function(_0x582f9a,_0x566481){return _0x582f9a<_0x566481;},'koyqG':function(_0x16fddc,_0x5121ee,_0x394440){return _0x16fddc(_0x5121ee,_0x394440);},'NhAbD':function(_0x325b68,_0x18e7e9,_0x3d9f46){return _0x325b68(_0x18e7e9,_0x3d9f46);},'BUzFu':function(_0x1c4e8c,_0x3174f0){return _0x1c4e8c+_0x3174f0;},'lKTPC':function(_0x4a2da3,_0x472138){return _0x4a2da3+_0x472138;},'kcWFj':function(_0x40da5e,_0x772bf6){return _0x40da5e===_0x772bf6;},'uzSaX':function(_0x25bb8a,_0x891937,_0x2d7b27){return _0x25bb8a(_0x891937,_0x2d7b27);},'cTsds':function(_0x3a0c04,_0x26216b){return _0x3a0c04<_0x26216b;},'GONIA':function(_0x26198f,_0x3e57f2,_0x2efd99){return _0x26198f(_0x3e57f2,_0x2efd99);},'EfojM':function(_0x4c666c,_0x4167e4){return _0x4c666c===_0x4167e4;},'ZlfJr':function(_0x4c253c,_0x5ea1c5){return _0x4c253c/_0x5ea1c5;},'lgNkJ':function(_0x58399c,_0x12fa33){return _0x58399c*_0x12fa33;}};let _0x5df8ec=0x0;const _0xd189ec=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x58c1e3=_0x15bf7e['indexOf'](_0xd189ec);if(_0xc4e37f['bFbPs'](_0x58c1e3,-0x1))return 0x0;while(_0xc4e37f['gGczi'](_0x58c1e3,_0x15bf7e['length'])){const [_0x38afa5,_0x22e97d]=_0xc4e37f[_0x7fa2a4(0x205)](readId,_0x15bf7e,_0x58c1e3);if(_0x38afa5!==ID_CLUSTER)break;const [_0x53efe9,_0x3a80b5]=_0xc4e37f[_0x7fa2a4(0x1ef)](readVint,_0x15bf7e,_0xc4e37f[_0x7fa2a4(0x1dd)](_0x58c1e3,_0x22e97d)),_0x2df49d=_0xc4e37f['BUzFu'](_0xc4e37f[_0x7fa2a4(0x1fc)](_0x58c1e3,_0x22e97d),_0x3a80b5),_0x1cbf13=isUnknownSize(_0x53efe9,_0x3a80b5);let _0x18061f;if(_0x1cbf13){let _0x3a66be=_0x2df49d;while(_0x3a66be<_0x15bf7e['length']-0x4){const [_0x1f1893,_0x2fa552]=readId(_0x15bf7e,_0x3a66be);if(_0xc4e37f['kcWFj'](_0x1f1893,ID_CLUSTER)){_0x18061f=_0x3a66be;break;}const [_0x2b6030,_0x17517e]=_0xc4e37f['uzSaX'](readVint,_0x15bf7e,_0xc4e37f['lKTPC'](_0x3a66be,_0x2fa552));if(isUnknownSize(_0x2b6030,_0x17517e)){_0x18061f=_0x15bf7e[_0x7fa2a4(0x211)];break;}_0x3a66be+=_0xc4e37f[_0x7fa2a4(0x1dd)](_0x2fa552+_0x17517e,_0x2b6030);}_0x18061f??=_0x15bf7e[_0x7fa2a4(0x211)];}else _0x18061f=_0x2df49d+_0x53efe9;let _0x1ea6d0=0x0,_0x3d3122=_0x2df49d;while(_0xc4e37f[_0x7fa2a4(0x1f3)](_0x3d3122,_0x18061f)){const [_0x40b663,_0x1f3b8e]=_0xc4e37f['NhAbD'](readId,_0x15bf7e,_0x3d3122),[_0x20cadd,_0x3e5375]=_0xc4e37f['GONIA'](readVint,_0x15bf7e,_0x3d3122+_0x1f3b8e);if(_0xc4e37f['EfojM'](_0x40b663,ID_TIMESTAMP))_0x1ea6d0=readUint(_0x15bf7e,_0xc4e37f[_0x7fa2a4(0x1dd)](_0x3d3122,_0x1f3b8e)+_0x3e5375,_0x20cadd);else{if(_0x40b663===ID_SIMPLE_BLOCK&&_0x20cadd>=0x4){const _0x42d1e2=_0xc4e37f[_0x7fa2a4(0x1fc)](_0x3d3122,_0x1f3b8e)+_0x3e5375,[,_0x16a3ca]=readVint(_0x15bf7e,_0x42d1e2),_0x19dd4c=_0x15bf7e['readInt16BE'](_0xc4e37f['BUzFu'](_0x42d1e2,_0x16a3ca)),_0xfaad75=_0xc4e37f['ZlfJr'](_0xc4e37f['lgNkJ'](_0xc4e37f['BUzFu'](_0x1ea6d0,_0x19dd4c),_0x287fa7),0xf4240);_0xfaad75>_0x5df8ec&&(_0x5df8ec=_0xfaad75);}else{if(_0x40b663===ID_CLUSTER)break;}}if(_0xc4e37f['GONIA'](isUnknownSize,_0x20cadd,_0x3e5375))break;_0x3d3122+=_0xc4e37f['BUzFu'](_0x1f3b8e,_0x3e5375)+_0x20cadd;}_0x58c1e3=_0x18061f;}return _0x5df8ec;}export function fixWebmDuration(_0x3a1c84,_0x501477){const _0x23ec46=_0x4e7f,_0x4f9c84={'uKkre':function(_0x5e87a6,_0x2859d8,_0x2bce40){return _0x5e87a6(_0x2859d8,_0x2bce40);},'BBFgq':function(_0x1fd8d6,_0x18ad34,_0x323460){return _0x1fd8d6(_0x18ad34,_0x323460);},'BfqlW':function(_0x2a8e41,_0x10635c){return _0x2a8e41!==_0x10635c;},'NDicq':'Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','tMmQq':function(_0x38597f,_0x1b94ac,_0xd8ca19){return _0x38597f(_0x1b94ac,_0xd8ca19);},'mpOvp':function(_0x2aa098,_0x5a28f8){return _0x2aa098+_0x5a28f8;},'KrCnS':function(_0x2a1ad2,_0x4b2c4b){return _0x2a1ad2+_0x4b2c4b;},'JqUcN':function(_0x4b973b,_0x2e8c38){return _0x4b973b+_0x2e8c38;},'ghafc':function(_0x228f5f,_0x10f37a){return _0x228f5f===_0x10f37a;},'MUgGa':function(_0x1d489a,_0x46e0ad){return _0x1d489a+_0x46e0ad;},'tLTym':function(_0x510c26,_0x554907,_0x56d88d,_0x22e34e,_0x16d9eb){return _0x510c26(_0x554907,_0x56d88d,_0x22e34e,_0x16d9eb);},'cwCXS':function(_0x252e0b,_0x187e4c,_0x5d771c,_0x39fd5b,_0x868eab){return _0x252e0b(_0x187e4c,_0x5d771c,_0x39fd5b,_0x868eab);},'ubrsB':function(_0x37fcca,_0x4a3488){return _0x37fcca+_0x4a3488;},'PICfE':function(_0x56450d,_0x328341){return _0x56450d<=_0x328341;},'SvqjN':'Could\x20not\x20compute\x20duration','qSvkG':function(_0x25b5d7,_0x11667f){return _0x25b5d7*_0x11667f;},'SLzmC':function(_0x591140,_0x5743f1){return _0x591140(_0x5743f1);},'CJOro':function(_0x429491,_0xc3c7ac){return _0x429491(_0xc3c7ac);},'pMnFR':function(_0x2f8f2d,_0x2242c2){return _0x2f8f2d(_0x2242c2);},'gAGgI':function(_0x50a5ec,_0x390f60){return _0x50a5ec<_0x390f60;},'Fenay':function(_0x59ed44,_0x42d927){return _0x59ed44+_0x42d927;},'alOJX':function(_0x477922,_0x408fe4){return _0x477922-_0x408fe4;},'muISg':function(_0x375dd3,_0x392dfd,_0x4321e3){return _0x375dd3(_0x392dfd,_0x4321e3);},'WVrwo':function(_0x10e102,_0x3c53f4,_0x3743f1,_0x1d046b,_0x14017e,_0x274f24,_0x473b4f){return _0x10e102(_0x3c53f4,_0x3743f1,_0x1d046b,_0x14017e,_0x274f24,_0x473b4f);}},_0x18119b=readFileSync(_0x3a1c84);let _0x16822c=0x0;const [_0xde8d61,_0x24ad19]=_0x4f9c84[_0x23ec46(0x213)](readId,_0x18119b,_0x16822c),[_0x3a631a,_0x5ed55b]=_0x4f9c84['uKkre'](readVint,_0x18119b,_0x16822c+_0x24ad19);_0x16822c+=_0x24ad19+_0x5ed55b+_0x3a631a;const [_0x2db22f,_0x593b1e]=_0x4f9c84['BBFgq'](readId,_0x18119b,_0x16822c);if(_0x4f9c84[_0x23ec46(0x214)](_0x2db22f,ID_SEGMENT))return console[_0x23ec46(0x21c)](_0x4f9c84['NDicq']),![];const [,_0x40b480]=_0x4f9c84[_0x23ec46(0x1eb)](readVint,_0x18119b,_0x4f9c84[_0x23ec46(0x1f7)](_0x16822c,_0x593b1e)),_0x294f8c=_0x4f9c84[_0x23ec46(0x1df)](_0x16822c+_0x593b1e,_0x40b480);let _0x2b39eb=_0x294f8c;const _0x2cf527=Math['min'](_0x18119b['length'],_0x294f8c+0x2710);let _0x39010b=null,_0x2fe691=null;while(_0x2b39eb<_0x2cf527){const [_0x1fd77e,_0x431c70]=_0x4f9c84['uKkre'](readId,_0x18119b,_0x2b39eb),[_0x5f4cbd,_0x31db5a]=readVint(_0x18119b,_0x4f9c84[_0x23ec46(0x216)](_0x2b39eb,_0x431c70));_0x4f9c84[_0x23ec46(0x1f6)](_0x1fd77e,ID_VOID)&&!_0x39010b&&(_0x39010b={'offset':_0x2b39eb,'idLen':_0x431c70,'sizeLen':_0x31db5a,'dataSize':_0x5f4cbd,'dataOffset':_0x2b39eb+_0x431c70+_0x31db5a});if(_0x1fd77e===ID_INFO){_0x2fe691={'offset':_0x2b39eb,'idLen':_0x431c70,'sizeLen':_0x31db5a,'dataSize':_0x5f4cbd,'dataOffset':_0x4f9c84[_0x23ec46(0x1df)](_0x2b39eb,_0x431c70)+_0x31db5a};break;}if(_0x1fd77e===ID_CLUSTER)break;if(_0x4f9c84['tMmQq'](isUnknownSize,_0x5f4cbd,_0x31db5a))break;_0x2b39eb+=_0x4f9c84['MUgGa'](_0x431c70,_0x31db5a)+_0x5f4cbd;}if(!_0x2fe691)return console['error']('Could\x20not\x20find\x20Info\x20element'),![];const _0x455f85=_0x4f9c84[_0x23ec46(0x1ec)](findElement,_0x18119b,_0x2fe691[_0x23ec46(0x1e3)],_0x4f9c84[_0x23ec46(0x1e9)](_0x2fe691['dataOffset'],_0x2fe691['dataSize']),ID_DURATION);if(_0x455f85)return![];const _0x3833c5=_0x4f9c84['cwCXS'](findElement,_0x18119b,_0x2fe691[_0x23ec46(0x1e3)],_0x4f9c84['ubrsB'](_0x2fe691['dataOffset'],_0x2fe691['dataSize']),ID_TIMESTAMP_SCALE);let _0x576603=0xf4240;_0x3833c5&&(_0x576603=readUint(_0x18119b,_0x3833c5[_0x23ec46(0x1e3)],_0x3833c5[_0x23ec46(0x20b)]));const _0x131bea=computeDurationMs(_0x18119b,_0x576603);if(_0x4f9c84[_0x23ec46(0x1ed)](_0x131bea,0x0))return console[_0x23ec46(0x21c)](_0x4f9c84['SvqjN']),![];const _0x62869b=_0x4f9c84[_0x23ec46(0x1fb)](_0x131bea,0xf4240)/_0x576603,_0x251f84=Buffer[_0x23ec46(0x1e7)]([_0x4f9c84['SLzmC'](writeId,ID_DURATION),_0x4f9c84['CJOro'](writeVint,0x8),_0x4f9c84[_0x23ec46(0x1fa)](writeFloat64,_0x62869b)]),_0x2fc800=_0x251f84[_0x23ec46(0x211)];if(!_0x39010b||_0x4f9c84[_0x23ec46(0x219)](_0x39010b['offset'],_0x2fe691[_0x23ec46(0x203)])){if(_0x39010b){const _0x44a518=_0x4f9c84[_0x23ec46(0x20d)](_0x39010b[_0x23ec46(0x217)],_0x39010b[_0x23ec46(0x218)])+_0x39010b['dataSize'],_0xa746a3=_0x4f9c84['alOJX'](_0x44a518,_0x2fc800);if(_0x4f9c84[_0x23ec46(0x219)](_0xa746a3,0x2))return rewriteFile(_0x18119b,_0x2fe691,_0x251f84,_0x576603,_0x131bea,_0x501477);const _0x3579be=_0x2fe691[_0x23ec46(0x20b)]+_0x2fc800,_0x106833=Buffer[_0x23ec46(0x1e7)]([writeId(ID_INFO),_0x4f9c84[_0x23ec46(0x20a)](writeVint,_0x3579be,_0x2fe691['sizeLen'])]),_0x539a14=_0x18119b['slice'](_0x2fe691[_0x23ec46(0x1e3)],_0x2fe691['dataOffset']+_0x2fe691[_0x23ec46(0x20b)]),_0x51458d=_0x4f9c84['pMnFR'](writeVoid,_0xa746a3),_0x530dce=_0x18119b[_0x23ec46(0x1de)](0x0,_0x39010b['offset']),_0x91ea2b=_0x18119b['slice'](_0x2fe691['dataOffset']+_0x2fe691[_0x23ec46(0x20b)]);return _0x4f9c84[_0x23ec46(0x213)](writeFileSync,_0x501477,Buffer['concat']([_0x530dce,_0x51458d,_0x106833,_0x539a14,_0x251f84,_0x91ea2b])),!![];}}return _0x4f9c84[_0x23ec46(0x21f)](rewriteFile,_0x18119b,_0x2fe691,_0x251f84,_0x576603,_0x131bea,_0x501477);}function rewriteFile(_0x150d7d,_0x8a72b7,_0x37a28d,_0x409b7a,_0x59656f,_0x3faca1){const _0x218589=_0x4e7f,_0x1b3f77={'wrlgL':function(_0x226836,_0x2d6f57){return _0x226836+_0x2d6f57;},'glJwj':function(_0x21e145,_0x14a364){return _0x21e145(_0x14a364);},'bVykA':function(_0x5e3967,_0x33d0b3){return _0x5e3967+_0x33d0b3;},'SdUaF':function(_0x27aa51,_0x25ce51){return _0x27aa51+_0x25ce51;}},_0x2874ab=_0x1b3f77[_0x218589(0x200)](_0x8a72b7[_0x218589(0x20b)],_0x37a28d['length']),_0x36b4ac=Buffer['concat']([writeId(ID_INFO),_0x1b3f77[_0x218589(0x206)](writeVint,_0x2874ab)]),_0x982690=_0x8a72b7['idLen']+_0x8a72b7[_0x218589(0x218)],_0x181e83=_0x150d7d['slice'](0x0,_0x8a72b7[_0x218589(0x203)]),_0x19c87c=_0x150d7d[_0x218589(0x1de)](_0x8a72b7[_0x218589(0x1e3)],_0x1b3f77[_0x218589(0x200)](_0x8a72b7['dataOffset'],_0x8a72b7['dataSize'])),_0x3703cc=_0x150d7d[_0x218589(0x1de)](_0x1b3f77[_0x218589(0x1e8)](_0x1b3f77[_0x218589(0x1ff)](_0x8a72b7[_0x218589(0x203)],_0x982690),_0x8a72b7[_0x218589(0x20b)]));return writeFileSync(_0x3faca1,Buffer[_0x218589(0x1e7)]([_0x181e83,_0x36b4ac,_0x19c87c,_0x37a28d,_0x3703cc])),!![];}function _0x1e6d(){const _0x7fa280=['2487443eNsycU','Fenay','EyCJj','pow','AaNMj','length','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','uKkre','BfqlW','duiQH','JqUcN','idLen','sizeLen','gAGgI','aKDOZ','1427600fXUczQ','error','uhtfA','6pNoOis','WVrwo','BUzFu','slice','KrCnS','from','vRHoQ','JLoFJ','dataOffset','alloc','argv','1964421vtNaYI','concat','bVykA','MUgGa','uNNBY','tMmQq','tLTym','PICfE','16wCmFCi','NhAbD','gLcMh','endsWith','JxyXo','cTsds','MoaLt','eQFxc','ghafc','mpOvp','EeEiU','9602490LoyWtG','pMnFR','qSvkG','lKTPC','248LkUQtJ','log','SdUaF','wrlgL','15994EjjVSH','ylDUW','offset','788673ePPsdC','koyqG','glJwj','jtKLx','jOpuk','29155ujgPNM','muISg','dataSize'];_0x1e6d=function(){return _0x7fa280;};return _0x1e6d();}if(process['argv'][0x1]?.[_0x1e6d20(0x1f1)]('fixWebmDuration.ts')||process[_0x1e6d20(0x1e5)][0x1]?.['endsWith']('fixWebmDuration.js')){const input=process['argv'][0x2],output=process[_0x1e6d20(0x1e5)][0x3];(!input||!output)&&(console['error']('Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>'),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0x1e6d20(0x1fe)]('Fixed:\x20'+output):console['log'](_0x1e6d20(0x212));}
1
+ const _0x139b39=_0x19aa;(function(_0x3375c6,_0x149393){const _0x18037d=_0x19aa,_0x127a2b=_0x3375c6();while(!![]){try{const _0x2d9d7f=-parseInt(_0x18037d(0x194))/0x1+-parseInt(_0x18037d(0x18d))/0x2+parseInt(_0x18037d(0x197))/0x3+-parseInt(_0x18037d(0x199))/0x4+-parseInt(_0x18037d(0x181))/0x5+parseInt(_0x18037d(0x191))/0x6+-parseInt(_0x18037d(0x193))/0x7*(-parseInt(_0x18037d(0x1b3))/0x8);if(_0x2d9d7f===_0x149393)break;else _0x127a2b['push'](_0x127a2b['shift']());}catch(_0x4763ef){_0x127a2b['push'](_0x127a2b['shift']());}}}(_0x23e3,0xb573d));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_DURATION=0x4489,ID_VOID=0xec,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x576312,_0x36a93b){const _0xe1ef04=_0x19aa,_0x115cb8={'BOoza':function(_0x4e4ef1,_0x4e0a2c){return _0x4e4ef1+_0x4e0a2c;},'BJTXi':function(_0x4ef10c,_0x42b986){return _0x4ef10c&_0x42b986;},'paywa':function(_0x44e8cf,_0x1c9300){return _0x44e8cf<_0x1c9300;},'rrWrM':function(_0x74a3,_0x1166c2){return _0x74a3*_0x1166c2;}};if(_0x36a93b>=_0x576312['length'])return[0x0,0x0];const _0x2af7e6=_0x576312[_0x36a93b];let _0x515738=0x1,_0x1f77e0=0x80;while(_0x515738<=0x8&&!(_0x2af7e6&_0x1f77e0)){_0x515738++,_0x1f77e0>>=0x1;}if(_0x115cb8[_0xe1ef04(0x1a5)](_0x36a93b,_0x515738)>_0x576312['length'])return[0x0,0x0];let _0x18cc15=_0x115cb8[_0xe1ef04(0x1ac)](_0x2af7e6,_0x1f77e0-0x1);for(let _0x20dea1=0x1;_0x115cb8['paywa'](_0x20dea1,_0x515738);_0x20dea1++){_0x18cc15=_0x115cb8['rrWrM'](_0x18cc15,0x100)+_0x576312[_0x115cb8['BOoza'](_0x36a93b,_0x20dea1)];}return[_0x18cc15,_0x515738];}function readId(_0x38683f,_0x3289e7){const _0x5b9601=_0x19aa,_0x112a91={'vwqsq':function(_0x37ce09,_0x3d4f80){return _0x37ce09>=_0x3d4f80;},'ZknOs':function(_0x136725,_0x2318e4){return _0x136725>=_0x2318e4;},'HeUur':function(_0x448de2,_0x41894a){return _0x448de2>_0x41894a;},'oymJX':function(_0x20d3fd,_0x5adf70){return _0x20d3fd<_0x5adf70;},'LTOqK':function(_0x44280a,_0x2566ae){return _0x44280a*_0x2566ae;}};if(_0x112a91[_0x5b9601(0x1a6)](_0x3289e7,_0x38683f['length']))return[0x0,0x0];const _0x550972=_0x38683f[_0x3289e7];let _0x20994a;if(_0x112a91['ZknOs'](_0x550972,0x80))_0x20994a=0x1;else{if(_0x550972>=0x40)_0x20994a=0x2;else{if(_0x550972>=0x20)_0x20994a=0x3;else{if(_0x550972>=0x10)_0x20994a=0x4;else return[_0x550972,0x1];}}}if(_0x112a91['HeUur'](_0x3289e7+_0x20994a,_0x38683f['length']))return[0x0,0x0];let _0x2523f8=0x0;for(let _0x5c189c=0x0;_0x112a91['oymJX'](_0x5c189c,_0x20994a);_0x5c189c++){_0x2523f8=_0x112a91['LTOqK'](_0x2523f8,0x100)+_0x38683f[_0x3289e7+_0x5c189c];}return[_0x2523f8,_0x20994a];}function readUint(_0x1b7f86,_0x2aa0bd,_0x2e75bf){const _0x198367={'ZXISK':function(_0x410433,_0x1d0af6){return _0x410433+_0x1d0af6;}};let _0x2942ac=0x0;for(let _0x43bb9e=0x0;_0x43bb9e<_0x2e75bf;_0x43bb9e++){_0x2942ac=_0x2942ac*0x100+_0x1b7f86[_0x198367['ZXISK'](_0x2aa0bd,_0x43bb9e)];}return _0x2942ac;}function _0x23e3(){const _0xc38c11=['alloc','IEMMg','dPWMr','length','GCDPg','ujZtt','dataSize','BOoza','vwqsq','eluZA','xVHbx','vuYld','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','writeDoubleBE','BJTXi','from','sizeLen','min','xbnuK','Could\x20not\x20compute\x20duration','argv','1282224gavOKW','VPHJC','iegKS','yscNA','slice','hZoqD','error','EBfmR','Ozgsk','IvDqf','Fixed:\x20','aGvOS','2100080daJgxy','floor','wSmPY','ocrPb','offset','PgFyL','zmOHi','pow','readInt16BE','upmej','exit','PvNIp','21530TUbgVJ','EJgTx','BVrJX','concat','4270908uclQzM','MlWms','7vUzNBJ','1065875VnqJGe','nUdLa','bYAcw','4132467hHQKFU','YrrbG','38800sMvXhp','pSYbM','vdIot','dataOffset','Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment'];_0x23e3=function(){return _0xc38c11;};return _0x23e3();}function isUnknownSize(_0x223440,_0xe4bcee){const _0x3e51ef=_0x19aa,_0x31d392={'EJgTx':function(_0x36f264,_0x39a5ea){return _0x36f264===_0x39a5ea;},'aGvOS':function(_0x68b014,_0x298329){return _0x68b014-_0x298329;}};return _0x31d392[_0x3e51ef(0x18e)](_0x223440,_0x31d392[_0x3e51ef(0x180)](Math[_0x3e51ef(0x188)](0x2,0x7*_0xe4bcee),0x1));}function writeId(_0x4bad2a){const _0x26f56f=_0x19aa,_0x1b2b9f={'upmej':function(_0x22e9ae,_0x572dac){return _0x22e9ae<=_0x572dac;},'MlWms':function(_0x123b19,_0xb57f07){return _0x123b19&_0xb57f07;},'iegKS':function(_0x333e2c,_0xf83330){return _0x333e2c&_0xf83330;},'EBfmR':function(_0x1dd0f7,_0x58b041){return _0x1dd0f7>>_0x58b041;},'eqyZQ':function(_0x25ef6a,_0x56ef6b){return _0x25ef6a&_0x56ef6b;},'DdggT':function(_0x32f0b3,_0x36cf74){return _0x32f0b3&_0x36cf74;},'VAglE':function(_0x4160de,_0x32fc3c){return _0x4160de>>_0x32fc3c;}};if(_0x1b2b9f[_0x26f56f(0x18a)](_0x4bad2a,0xff))return Buffer[_0x26f56f(0x1ad)]([_0x4bad2a]);if(_0x4bad2a<=0xffff)return Buffer[_0x26f56f(0x1ad)]([_0x1b2b9f[_0x26f56f(0x192)](_0x4bad2a>>0x8,0xff),_0x1b2b9f[_0x26f56f(0x1b5)](_0x4bad2a,0xff)]);if(_0x4bad2a<=0xffffff)return Buffer['from']([_0x1b2b9f[_0x26f56f(0x1ba)](_0x4bad2a,0x10)&0xff,_0x1b2b9f['eqyZQ'](_0x1b2b9f[_0x26f56f(0x1ba)](_0x4bad2a,0x8),0xff),_0x4bad2a&0xff]);return Buffer[_0x26f56f(0x1ad)]([_0x1b2b9f['EBfmR'](_0x4bad2a,0x18)&0xff,_0x1b2b9f['DdggT'](_0x4bad2a>>0x10,0xff),_0x1b2b9f['VAglE'](_0x4bad2a,0x8)&0xff,_0x4bad2a&0xff]);}function _0x19aa(_0x45d6c4,_0x3a5da4){_0x45d6c4=_0x45d6c4-0x17f;const _0x23e33c=_0x23e3();let _0x19aab0=_0x23e33c[_0x45d6c4];return _0x19aab0;}function writeVint(_0x364e40,_0x2a0a14){const _0x2142eb=_0x19aa,_0x456d82={'rcJXD':function(_0x19464d,_0x2ff69f){return _0x19464d<_0x2ff69f;},'ibEoo':function(_0xab810e,_0x3ed904){return _0xab810e*_0x3ed904;},'zmOHi':function(_0x5a2e0a,_0x3a1bbc){return _0x5a2e0a-_0x3a1bbc;},'nxCyH':function(_0x388d4d,_0x1ceac6){return _0x388d4d&_0x1ceac6;},'pUFkd':function(_0x5da1fb,_0x30638a){return _0x5da1fb/_0x30638a;}};let _0x41f302=_0x2a0a14||0x1;while(_0x456d82['rcJXD'](Math['pow'](0x2,_0x456d82['ibEoo'](0x7,_0x41f302))-0x2,_0x364e40))_0x41f302++;const _0x57421c=Buffer['alloc'](_0x41f302);for(let _0xaef513=_0x456d82[_0x2142eb(0x187)](_0x41f302,0x1);_0xaef513>=0x0;_0xaef513--){_0x57421c[_0xaef513]=_0x456d82['nxCyH'](_0x364e40,0xff),_0x364e40=Math[_0x2142eb(0x182)](_0x456d82['pUFkd'](_0x364e40,0x100));}return _0x57421c[0x0]|=0x1<<0x8-_0x41f302,_0x57421c;}function writeFloat64(_0x5f55e9){const _0x5cc609=_0x19aa,_0x16495c=Buffer[_0x5cc609(0x19e)](0x8);return _0x16495c[_0x5cc609(0x1ab)](_0x5f55e9,0x0),_0x16495c;}function writeVoid(_0x3ceeb8){const _0x168eb9=_0x19aa,_0x3a3e30={'CKgZD':function(_0x289e06,_0x23aedc){return _0x289e06-_0x23aedc;}};for(let _0x141ad7=0x1;_0x141ad7<=0x8;_0x141ad7++){const _0x3f7db8=_0x3a3e30['CKgZD'](_0x3ceeb8,0x1)-_0x141ad7;if(_0x3f7db8>=0x0&&_0x3f7db8<=Math[_0x168eb9(0x188)](0x2,0x7*_0x141ad7)-0x2)return Buffer['concat']([Buffer['from']([ID_VOID]),writeVint(_0x3f7db8,_0x141ad7),Buffer[_0x168eb9(0x19e)](_0x3f7db8)]);}return Buffer[_0x168eb9(0x19e)](0x0);}function findElement(_0x54b7d1,_0x5e4506,_0x28fe1c,_0x31681e){const _0x44b5ef=_0x19aa,_0x17aaa7={'NpjrE':function(_0x27d5d1,_0x167d15){return _0x27d5d1<_0x167d15;},'MbXvD':function(_0x424159,_0x1abcfb,_0x26f0f6){return _0x424159(_0x1abcfb,_0x26f0f6);},'bYAcw':function(_0x3bf20a,_0x1c66d7){return _0x3bf20a===_0x1c66d7;},'YFrlW':function(_0xe23911,_0x1ec385){return _0xe23911+_0x1ec385;}};let _0x5c4e59=_0x5e4506;while(_0x17aaa7['NpjrE'](_0x5c4e59,_0x28fe1c)){const [_0xaf9d99,_0x3b7a89]=_0x17aaa7['MbXvD'](readId,_0x54b7d1,_0x5c4e59),[_0x71bc98,_0x17c9e1]=readVint(_0x54b7d1,_0x5c4e59+_0x3b7a89);if(_0x17aaa7[_0x44b5ef(0x196)](_0xaf9d99,_0x31681e))return{'offset':_0x5c4e59,'idLen':_0x3b7a89,'sizeLen':_0x17c9e1,'dataSize':_0x71bc98,'dataOffset':_0x17aaa7['YFrlW'](_0x5c4e59,_0x3b7a89)+_0x17c9e1};if(isUnknownSize(_0x71bc98,_0x17c9e1))break;_0x5c4e59+=_0x3b7a89+_0x17c9e1+_0x71bc98;}return null;}function computeDurationMs(_0x2c7983,_0x26aea7){const _0x221a81=_0x19aa,_0x13ea4b={'BVrJX':function(_0x290410,_0xb55982){return _0x290410===_0xb55982;},'vdIot':function(_0x3e89ff,_0x3bdea1,_0x1cc30e){return _0x3e89ff(_0x3bdea1,_0x1cc30e);},'YcoZP':function(_0x2ae86d,_0x25d0f4,_0x23ea6d){return _0x2ae86d(_0x25d0f4,_0x23ea6d);},'pSYbM':function(_0x3e1808,_0x17da9d){return _0x3e1808+_0x17da9d;},'omPMS':function(_0x215977,_0x5b6374,_0x186044){return _0x215977(_0x5b6374,_0x186044);},'eISPG':function(_0x3ed163,_0x5818aa,_0x5bc436){return _0x3ed163(_0x5818aa,_0x5bc436);},'IEMMg':function(_0x50c50f,_0x468344){return _0x50c50f+_0x468344;},'GCDPg':function(_0x373277,_0x16696f,_0x82b4e4){return _0x373277(_0x16696f,_0x82b4e4);},'EFzsX':function(_0x1e03f7,_0x57eb9e,_0x2512c7){return _0x1e03f7(_0x57eb9e,_0x2512c7);},'PgFyL':function(_0x665116,_0x115158){return _0x665116/_0x115158;},'YrrbG':function(_0x25666e,_0x186315){return _0x25666e*_0x186315;},'ocrPb':function(_0x79426e,_0x54580f){return _0x79426e+_0x54580f;},'LwtZF':function(_0x553ab7,_0x576147){return _0x553ab7>_0x576147;}};let _0x445d8e=0x0;const _0xd0b71a=Buffer[_0x221a81(0x1ad)]([0x1f,0x43,0xb6,0x75]);let _0x1751d4=_0x2c7983['indexOf'](_0xd0b71a);if(_0x13ea4b['BVrJX'](_0x1751d4,-0x1))return 0x0;while(_0x1751d4<_0x2c7983['length']){const [_0x380521,_0x510882]=_0x13ea4b[_0x221a81(0x19b)](readId,_0x2c7983,_0x1751d4);if(_0x380521!==ID_CLUSTER)break;const [_0x4b0bb6,_0x37bd72]=_0x13ea4b['YcoZP'](readVint,_0x2c7983,_0x13ea4b['pSYbM'](_0x1751d4,_0x510882)),_0x3e5124=_0x1751d4+_0x510882+_0x37bd72,_0x1bf3bc=_0x13ea4b['omPMS'](isUnknownSize,_0x4b0bb6,_0x37bd72);let _0x20f894;if(_0x1bf3bc){let _0x32fa39=_0x3e5124;while(_0x32fa39<_0x2c7983[_0x221a81(0x1a1)]-0x4){const [_0x4c5c34,_0x340180]=readId(_0x2c7983,_0x32fa39);if(_0x4c5c34===ID_CLUSTER){_0x20f894=_0x32fa39;break;}const [_0x847b12,_0x560d8c]=readVint(_0x2c7983,_0x32fa39+_0x340180);if(_0x13ea4b['eISPG'](isUnknownSize,_0x847b12,_0x560d8c)){_0x20f894=_0x2c7983['length'];break;}_0x32fa39+=_0x13ea4b[_0x221a81(0x19f)](_0x340180,_0x560d8c)+_0x847b12;}_0x20f894??=_0x2c7983[_0x221a81(0x1a1)];}else _0x20f894=_0x3e5124+_0x4b0bb6;let _0x2eca0e=0x0,_0x536c05=_0x3e5124;while(_0x536c05<_0x20f894){const [_0x3885a3,_0x3bb060]=readId(_0x2c7983,_0x536c05),[_0xc91a75,_0x5c1401]=_0x13ea4b[_0x221a81(0x1a2)](readVint,_0x2c7983,_0x13ea4b[_0x221a81(0x19f)](_0x536c05,_0x3bb060));if(_0x3885a3===ID_TIMESTAMP)_0x2eca0e=readUint(_0x2c7983,_0x13ea4b[_0x221a81(0x19a)](_0x536c05,_0x3bb060)+_0x5c1401,_0xc91a75);else{if(_0x13ea4b['BVrJX'](_0x3885a3,ID_SIMPLE_BLOCK)&&_0xc91a75>=0x4){const _0x841e59=_0x536c05+_0x3bb060+_0x5c1401,[,_0x204af3]=_0x13ea4b['EFzsX'](readVint,_0x2c7983,_0x841e59),_0x304854=_0x2c7983[_0x221a81(0x189)](_0x841e59+_0x204af3),_0x5d68e4=_0x13ea4b[_0x221a81(0x186)](_0x13ea4b[_0x221a81(0x198)](_0x13ea4b[_0x221a81(0x184)](_0x2eca0e,_0x304854),_0x26aea7),0xf4240);_0x13ea4b['LwtZF'](_0x5d68e4,_0x445d8e)&&(_0x445d8e=_0x5d68e4);}else{if(_0x13ea4b[_0x221a81(0x18f)](_0x3885a3,ID_CLUSTER))break;}}if(isUnknownSize(_0xc91a75,_0x5c1401))break;_0x536c05+=_0x13ea4b['pSYbM'](_0x13ea4b['IEMMg'](_0x3bb060,_0x5c1401),_0xc91a75);}_0x1751d4=_0x20f894;}return _0x445d8e;}export function fixWebmDuration(_0xacc134,_0x5d64b6){const _0x59b546=_0x19aa,_0x31947d={'meTZm':function(_0x52b385,_0x46130b,_0x33c876){return _0x52b385(_0x46130b,_0x33c876);},'IvDqf':function(_0x4dbf2b,_0x48947b){return _0x4dbf2b+_0x48947b;},'yscNA':function(_0x2110b9,_0x1c6eb2,_0x148372){return _0x2110b9(_0x1c6eb2,_0x148372);},'qkQwp':function(_0x53a2b1,_0x2226f0){return _0x53a2b1+_0x2226f0;},'UfyIm':function(_0x209402,_0xde2dfd){return _0x209402+_0xde2dfd;},'xbnuK':function(_0x508ae9,_0xaed57b){return _0x508ae9<_0xaed57b;},'nUdLa':function(_0x31a848,_0xd7bfb9){return _0x31a848===_0xd7bfb9;},'vuYld':function(_0x29a2e2,_0x252c7a){return _0x29a2e2+_0x252c7a;},'VPHJC':function(_0x150fc2,_0x16a7f4){return _0x150fc2+_0x16a7f4;},'puUym':function(_0x47fce0,_0x1e345a,_0x3d3d28){return _0x47fce0(_0x1e345a,_0x3d3d28);},'Ozgsk':function(_0xcea161,_0x453bb2){return _0xcea161+_0x453bb2;},'xVHbx':'Could\x20not\x20find\x20Info\x20element','ujZtt':function(_0x455902,_0xfabb00,_0x538012,_0x50a40b,_0x46f0f8){return _0x455902(_0xfabb00,_0x538012,_0x50a40b,_0x46f0f8);},'eluZA':_0x59b546(0x1b1),'VtPGa':function(_0x1820c6,_0x13c7e8){return _0x1820c6(_0x13c7e8);},'wSmPY':function(_0x509510,_0x107592){return _0x509510+_0x107592;},'hZoqD':function(_0x27da7f,_0x569095){return _0x27da7f-_0x569095;},'siOhQ':function(_0x2a350a,_0x788417){return _0x2a350a(_0x788417);},'PvNIp':function(_0xfac8ba,_0x533123,_0x538f38){return _0xfac8ba(_0x533123,_0x538f38);}},_0x311062=readFileSync(_0xacc134);let _0x4d1ab8=0x0;const [_0x111744,_0x3e94cd]=readId(_0x311062,_0x4d1ab8),[_0x553fd2,_0x36322f]=_0x31947d['meTZm'](readVint,_0x311062,_0x4d1ab8+_0x3e94cd);_0x4d1ab8+=_0x31947d[_0x59b546(0x1bc)](_0x31947d[_0x59b546(0x1bc)](_0x3e94cd,_0x36322f),_0x553fd2);const [_0x8a3dfd,_0x10916f]=_0x31947d['meTZm'](readId,_0x311062,_0x4d1ab8);if(_0x8a3dfd!==ID_SEGMENT)return console[_0x59b546(0x1b9)](_0x59b546(0x19d)),![];const [,_0x3ee116]=_0x31947d[_0x59b546(0x1b6)](readVint,_0x311062,_0x4d1ab8+_0x10916f),_0x33f725=_0x31947d['qkQwp'](_0x31947d['UfyIm'](_0x4d1ab8,_0x10916f),_0x3ee116);let _0x351cf1=_0x33f725;const _0x45003f=Math[_0x59b546(0x1af)](_0x311062[_0x59b546(0x1a1)],_0x31947d['qkQwp'](_0x33f725,0x2710));let _0x192765=null,_0x4e0c16=null;while(_0x31947d[_0x59b546(0x1b0)](_0x351cf1,_0x45003f)){const [_0x1df0ff,_0x20a175]=readId(_0x311062,_0x351cf1),[_0x251059,_0x513c75]=readVint(_0x311062,_0x351cf1+_0x20a175);_0x31947d[_0x59b546(0x195)](_0x1df0ff,ID_VOID)&&!_0x192765&&(_0x192765={'offset':_0x351cf1,'idLen':_0x20a175,'sizeLen':_0x513c75,'dataSize':_0x251059,'dataOffset':_0x31947d[_0x59b546(0x1a9)](_0x351cf1+_0x20a175,_0x513c75)});if(_0x1df0ff===ID_INFO){_0x4e0c16={'offset':_0x351cf1,'idLen':_0x20a175,'sizeLen':_0x513c75,'dataSize':_0x251059,'dataOffset':_0x31947d[_0x59b546(0x1b4)](_0x351cf1+_0x20a175,_0x513c75)};break;}if(_0x31947d['nUdLa'](_0x1df0ff,ID_CLUSTER))break;if(_0x31947d['puUym'](isUnknownSize,_0x251059,_0x513c75))break;_0x351cf1+=_0x31947d[_0x59b546(0x1b4)](_0x31947d[_0x59b546(0x1bb)](_0x20a175,_0x513c75),_0x251059);}if(!_0x4e0c16)return console['error'](_0x31947d[_0x59b546(0x1a8)]),![];const _0x3227c6=_0x31947d[_0x59b546(0x1a3)](findElement,_0x311062,_0x4e0c16['dataOffset'],_0x4e0c16['dataOffset']+_0x4e0c16[_0x59b546(0x1a4)],ID_DURATION);if(_0x3227c6)return![];const _0x37ad33=_0x31947d['ujZtt'](findElement,_0x311062,_0x4e0c16['dataOffset'],_0x31947d[_0x59b546(0x1bb)](_0x4e0c16['dataOffset'],_0x4e0c16[_0x59b546(0x1a4)]),ID_TIMESTAMP_SCALE);let _0x34998d=0xf4240;_0x37ad33&&(_0x34998d=readUint(_0x311062,_0x37ad33['dataOffset'],_0x37ad33[_0x59b546(0x1a4)]));const _0x14fb42=_0x31947d['puUym'](computeDurationMs,_0x311062,_0x34998d);if(_0x14fb42<=0x0)return console['error'](_0x31947d[_0x59b546(0x1a7)]),![];const _0x2f46f2=_0x14fb42*0xf4240/_0x34998d,_0x3f1350=Buffer[_0x59b546(0x190)]([writeId(ID_DURATION),_0x31947d['VtPGa'](writeVint,0x8),writeFloat64(_0x2f46f2)]),_0x181f73=_0x3f1350['length'];if(!_0x192765||_0x31947d['xbnuK'](_0x192765['offset'],_0x4e0c16['offset'])){if(_0x192765){const _0x46e8ba=_0x31947d[_0x59b546(0x183)](_0x192765['idLen'],_0x192765[_0x59b546(0x1ae)])+_0x192765['dataSize'],_0x11c67e=_0x31947d[_0x59b546(0x1b8)](_0x46e8ba,_0x181f73);if(_0x11c67e<0x2)return rewriteFile(_0x311062,_0x4e0c16,_0x3f1350,_0x34998d,_0x14fb42,_0x5d64b6);const _0x43a27d=_0x4e0c16[_0x59b546(0x1a4)]+_0x181f73,_0x15c809=Buffer[_0x59b546(0x190)]([_0x31947d['siOhQ'](writeId,ID_INFO),writeVint(_0x43a27d,_0x4e0c16[_0x59b546(0x1ae)])]),_0xb9207e=_0x311062[_0x59b546(0x1b7)](_0x4e0c16['dataOffset'],_0x4e0c16[_0x59b546(0x19c)]+_0x4e0c16['dataSize']),_0x3baca2=writeVoid(_0x11c67e),_0x2a8467=_0x311062['slice'](0x0,_0x192765['offset']),_0x4390cd=_0x311062['slice'](_0x4e0c16[_0x59b546(0x19c)]+_0x4e0c16[_0x59b546(0x1a4)]);return _0x31947d[_0x59b546(0x18c)](writeFileSync,_0x5d64b6,Buffer['concat']([_0x2a8467,_0x3baca2,_0x15c809,_0xb9207e,_0x3f1350,_0x4390cd])),!![];}}return rewriteFile(_0x311062,_0x4e0c16,_0x3f1350,_0x34998d,_0x14fb42,_0x5d64b6);}function rewriteFile(_0x2106f2,_0x4c1d54,_0x5532b0,_0x10f398,_0x2bf93d,_0x4c076a){const _0x1100c3=_0x19aa,_0x1b5e5b={'dPWMr':function(_0x49eebc,_0x217ce4){return _0x49eebc(_0x217ce4);},'PEHuv':function(_0x239d2f,_0x502091){return _0x239d2f+_0x502091;},'miOrw':function(_0x2045bf,_0x45c949,_0x4f171c){return _0x2045bf(_0x45c949,_0x4f171c);}},_0x3ed0b7=_0x4c1d54['dataSize']+_0x5532b0[_0x1100c3(0x1a1)],_0x3996a2=Buffer['concat']([writeId(ID_INFO),_0x1b5e5b[_0x1100c3(0x1a0)](writeVint,_0x3ed0b7)]),_0x1d383b=_0x1b5e5b['PEHuv'](_0x4c1d54['idLen'],_0x4c1d54['sizeLen']),_0x3bd037=_0x2106f2[_0x1100c3(0x1b7)](0x0,_0x4c1d54[_0x1100c3(0x185)]),_0x5a57f9=_0x2106f2['slice'](_0x4c1d54['dataOffset'],_0x4c1d54[_0x1100c3(0x19c)]+_0x4c1d54[_0x1100c3(0x1a4)]),_0x1293c9=_0x2106f2[_0x1100c3(0x1b7)](_0x1b5e5b['PEHuv'](_0x4c1d54['offset'],_0x1d383b)+_0x4c1d54[_0x1100c3(0x1a4)]);return _0x1b5e5b['miOrw'](writeFileSync,_0x4c076a,Buffer[_0x1100c3(0x190)]([_0x3bd037,_0x3996a2,_0x5a57f9,_0x5532b0,_0x1293c9])),!![];}if(process[_0x139b39(0x1b2)][0x1]?.['endsWith']('fixWebmDuration.ts')||process[_0x139b39(0x1b2)][0x1]?.['endsWith']('fixWebmDuration.js')){const input=process['argv'][0x2],output=process['argv'][0x3];(!input||!output)&&(console['error']('Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>'),process[_0x139b39(0x18b)](0x1));const fixed=fixWebmDuration(input,output);fixed?console['log'](_0x139b39(0x17f)+output):console['log'](_0x139b39(0x1aa));}
@@ -1 +1 @@
1
- function _0x181f(_0x5b6d53,_0x34c41e){_0x5b6d53=_0x5b6d53-0x8f;const _0x1629c1=_0x1629();let _0x181f6c=_0x1629c1[_0x5b6d53];return _0x181f6c;}(function(_0x402ad4,_0x1ebd16){const _0x454e80=_0x181f,_0x4862dd=_0x402ad4();while(!![]){try{const _0x2546e7=parseInt(_0x454e80(0x98))/0x1*(-parseInt(_0x454e80(0x90))/0x2)+-parseInt(_0x454e80(0x91))/0x3+parseInt(_0x454e80(0x92))/0x4+parseInt(_0x454e80(0x8f))/0x5*(parseInt(_0x454e80(0x94))/0x6)+parseInt(_0x454e80(0x95))/0x7+parseInt(_0x454e80(0x99))/0x8+-parseInt(_0x454e80(0x9b))/0x9;if(_0x2546e7===_0x1ebd16)break;else _0x4862dd['push'](_0x4862dd['shift']());}catch(_0x52174a){_0x4862dd['push'](_0x4862dd['shift']());}}}(_0x1629,0x2e3fe));import{execFile as _0x4c96fe}from'child_process';import{promisify}from'util';const execFile=promisify(_0x4c96fe);export async function isPathGitTracked(_0x57640a){const _0x152de7=_0x181f,_0x76e68b={'vvtlr':function(_0x1e4358,_0x9fff8a,_0x1be700,_0x1784e7){return _0x1e4358(_0x9fff8a,_0x1be700,_0x1784e7);},'iQzKW':_0x152de7(0x9a),'bkBuJ':'--error-unmatch'};try{return await _0x76e68b['vvtlr'](execFile,_0x76e68b[_0x152de7(0x96)],['ls-files',_0x76e68b[_0x152de7(0x97)],_0x57640a],{'cwd':process[_0x152de7(0x93)]()}),!![];}catch{return![];}}function _0x1629(){const _0xb47d3=['cwd','6SQbxTF','2063558cBvuwo','iQzKW','bkBuJ','19108kNWxMR','569256fvbRHd','git','2957688XdfNMv','1577850tlrSnM','38JLhxDA','67098BhsxwW','887868Dxvunq'];_0x1629=function(){return _0xb47d3;};return _0x1629();}
1
+ (function(_0x259374,_0x2f3802){const _0x45ca26=_0x1c99,_0x24ced3=_0x259374();while(!![]){try{const _0x296593=parseInt(_0x45ca26(0x92))/0x1*(parseInt(_0x45ca26(0x8e))/0x2)+parseInt(_0x45ca26(0x91))/0x3+-parseInt(_0x45ca26(0x93))/0x4+-parseInt(_0x45ca26(0x95))/0x5*(parseInt(_0x45ca26(0x8b))/0x6)+-parseInt(_0x45ca26(0x89))/0x7+-parseInt(_0x45ca26(0x8d))/0x8+-parseInt(_0x45ca26(0x94))/0x9;if(_0x296593===_0x2f3802)break;else _0x24ced3['push'](_0x24ced3['shift']());}catch(_0x3212e7){_0x24ced3['push'](_0x24ced3['shift']());}}}(_0x48e8,0x403fc));import{execFile as _0x2efa4d}from'child_process';function _0x1c99(_0x1cb8ed,_0x1c3038){_0x1cb8ed=_0x1cb8ed-0x89;const _0x48e8e3=_0x48e8();let _0x1c990d=_0x48e8e3[_0x1cb8ed];return _0x1c990d;}function _0x48e8(){const _0x522d95=['2045925YIFRoV','ls-files','6KXqPam','git','270848wzXXVT','4TviAyk','Ovhzl','--error-unmatch','1064511VKsyJj','190633KcXJuv','201200YAxIMY','773046odOVuj','53070mfjNPj'];_0x48e8=function(){return _0x522d95;};return _0x48e8();}import{promisify}from'util';const execFile=promisify(_0x2efa4d);export async function isPathGitTracked(_0x23c78b){const _0x421b53=_0x1c99,_0xa778bc={'Ovhzl':_0x421b53(0x8c)};try{return await execFile(_0xa778bc[_0x421b53(0x8f)],[_0x421b53(0x8a),_0x421b53(0x90),_0x23c78b],{'cwd':process['cwd']()}),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const _0x56e93f=_0x1179;(function(_0x2bd83c,_0x398450){const _0x447ac9=_0x1179,_0xefade=_0x2bd83c();while(!![]){try{const _0x3b8157=parseInt(_0x447ac9(0x217))/0x1+-parseInt(_0x447ac9(0x1dc))/0x2*(-parseInt(_0x447ac9(0x1f7))/0x3)+parseInt(_0x447ac9(0x1ee))/0x4*(parseInt(_0x447ac9(0x1da))/0x5)+-parseInt(_0x447ac9(0x1ef))/0x6+parseInt(_0x447ac9(0x1f8))/0x7+parseInt(_0x447ac9(0x1f0))/0x8*(parseInt(_0x447ac9(0x22d))/0x9)+parseInt(_0x447ac9(0x229))/0xa*(-parseInt(_0x447ac9(0x21b))/0xb);if(_0x3b8157===_0x398450)break;else _0xefade['push'](_0xefade['shift']());}catch(_0x1ea33b){_0xefade['push'](_0xefade['shift']());}}}(_0x5b4d,0x84187));const _0x28bc99=(function(){const _0x2cdb14=_0x1179,_0x5d6002={'HiFYR':function(_0x53a1ae,_0x2a3be0){return _0x53a1ae===_0x2a3be0;},'uASkp':_0x2cdb14(0x200),'ZBGNz':function(_0x373b43,_0x1ce1f7){return _0x373b43!==_0x1ce1f7;},'JrodR':_0x2cdb14(0x20a),'FWogG':_0x2cdb14(0x1e0)};let _0x20c74a=!![];return function(_0x426659,_0x5d8865){const _0x369900=_0x2cdb14,_0x113793={'LlVJE':function(_0x2a3219,_0x40a4c8){const _0x26b2c4=_0x1179;return _0x5d6002[_0x26b2c4(0x212)](_0x2a3219,_0x40a4c8);},'nmXkT':_0x5d6002[_0x369900(0x224)]};if(_0x5d6002[_0x369900(0x207)](_0x5d6002[_0x369900(0x228)],_0x5d6002[_0x369900(0x1f6)])){const _0x34c3d4=_0x20c74a?function(){const _0x4b4d54=_0x369900;if(_0x5d8865){if(_0x113793['LlVJE'](_0x113793[_0x4b4d54(0x1e5)],_0x4b4d54(0x200))){const _0x13fe31=_0x5d8865[_0x4b4d54(0x1d9)](_0x426659,arguments);return _0x5d8865=null,_0x13fe31;}else{const _0x65afad=_0x24b767?function(){const _0x2cd8e9=_0x4b4d54;if(_0x37ce4a){const _0x377f3b=_0x1fb2a1[_0x2cd8e9(0x1d9)](_0x30f2a6,arguments);return _0x1888e8=null,_0x377f3b;}}:function(){};return _0x5f75b7=![],_0x65afad;}}}:function(){};return _0x20c74a=![],_0x34c3d4;}else return!!_0x38f26d[_0x369900(0x1fe)][_0x369900(0x222)];};}()),_0x3858da=_0x28bc99(this,function(){const _0x386a4a=_0x1179,_0x3436cb={'iKHfm':'(((.+)+)+)+$'};return _0x3858da[_0x386a4a(0x214)]()[_0x386a4a(0x21f)](_0x3436cb[_0x386a4a(0x1e8)])[_0x386a4a(0x214)]()[_0x386a4a(0x1fa)](_0x3858da)[_0x386a4a(0x21f)](_0x3436cb[_0x386a4a(0x1e8)]);});_0x3858da();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0x56e93f(0x21a),ENV_TOKEN_LEGACY='RANGER_MCP_TOKEN',TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,'cli.txt'),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x56e93f(0x223));function isGitHubCI(){const _0x55a36c=_0x56e93f;return!!process[_0x55a36c(0x1fe)]['GITHUB_ENV'];}async function writeToGitHubEnv(_0x40ae52,_0x3e2a71){const _0x70b78f=_0x56e93f,_0x5b8845={'QGnxz':_0x70b78f(0x1e2),'tGbTw':function(_0x52abed,_0x1db2e7,_0x37c594){return _0x52abed(_0x1db2e7,_0x37c594);}},_0x469d44=process[_0x70b78f(0x1fe)][_0x70b78f(0x222)];if(_0x469d44){if(_0x5b8845[_0x70b78f(0x1df)]!==_0x5b8845[_0x70b78f(0x1df)])return![];else await _0x5b8845[_0x70b78f(0x210)](appendFile,_0x469d44,_0x40ae52+'='+_0x3e2a71+'\x0a');}}export async function storeToken(_0x11491a){const _0x1e0cfb=_0x56e93f,_0x34dd6e={'Lqhuf':function(_0x5c1613){return _0x5c1613();},'BKbEB':function(_0x42a576,_0x3f6441,_0x103f08){return _0x42a576(_0x3f6441,_0x103f08);},'IDgow':function(_0x3db110,_0x40c887,_0x299389){return _0x3db110(_0x40c887,_0x299389);}};_0x34dd6e[_0x1e0cfb(0x1f3)](isGitHubCI)?await _0x34dd6e[_0x1e0cfb(0x225)](writeToGitHubEnv,ENV_TOKEN,_0x11491a):(await _0x34dd6e['IDgow'](mkdir,TOKEN_DIR,{'recursive':!![]}),await writeFile(TOKEN_PATH,_0x11491a,{'mode':0x180}));}export async function getToken(){const _0x3b309a=_0x56e93f,_0x51ab47={'vEcwc':function(_0x199775,_0x525563){return _0x199775 instanceof _0x525563;},'jYVpo':function(_0x1fdff9,_0x16585a){return _0x1fdff9(_0x16585a);},'YJzDx':function(_0x4282f9,_0x4e5c10){return _0x4282f9+_0x4e5c10;},'MLeQv':_0x3b309a(0x21e),'mALFk':'(((.+)+)+)+$','DlsQG':function(_0x496108,_0x568f7f){return _0x496108!==_0x568f7f;},'dJems':_0x3b309a(0x1e3),'TnsPQ':function(_0x52fd51,_0x21eb16){return _0x52fd51!==_0x21eb16;},'eOWIB':'QXmqZ','BrzFv':'irrsz','sOfJp':'utf-8','pKkIV':function(_0x5a5b0d,_0x34f9b3){return _0x5a5b0d!==_0x34f9b3;},'sNfRw':'Aiuxw','wSITb':function(_0x2b6f9d){return _0x2b6f9d();},'HdjNW':function(_0x3d6250,_0x5e35d9){return _0x3d6250(_0x5e35d9);},'gQdSb':function(_0x447069,_0x16c1e6){return _0x447069(_0x16c1e6);},'cScfa':'../mcpBootstrap.js','gYXjI':function(_0x285bce){return _0x285bce();},'DTnUz':function(_0x2e6bef){return _0x2e6bef();},'ZlPZW':function(_0x1f7d9e,_0x36b7c4){return _0x1f7d9e===_0x36b7c4;},'pKcjI':'kJgyj','IYheI':function(_0x513556,_0x430ed3){return _0x513556(_0x430ed3);},'fvKfp':_0x3b309a(0x227)};if(process[_0x3b309a(0x1fe)][ENV_TOKEN])return process[_0x3b309a(0x1fe)][ENV_TOKEN];if(process[_0x3b309a(0x1fe)][ENV_TOKEN_LEGACY])return _0x51ab47[_0x3b309a(0x201)](_0x51ab47[_0x3b309a(0x1e1)],_0x3b309a(0x1e3))?![]:process[_0x3b309a(0x1fe)][ENV_TOKEN_LEGACY];let _0x3135b8=null;try{if(_0x51ab47[_0x3b309a(0x1f1)](_0x51ab47[_0x3b309a(0x21c)],_0x51ab47[_0x3b309a(0x1db)]))_0x3135b8=(await readFile(TOKEN_PATH,_0x51ab47[_0x3b309a(0x211)]))[_0x3b309a(0x22a)]()||null;else return null;}catch{if(_0x51ab47[_0x3b309a(0x1f4)](_0x51ab47[_0x3b309a(0x1ff)],_0x3b309a(0x1e6))){const _0x19a147=await _0x51ab47['wSITb'](tryRefreshToken);return _0x19a147;}else{const _0x413c2b=_0x51ab47[_0x3b309a(0x209)](_0x524a3b,_0x4e1e51)?_0x306fec[_0x3b309a(0x20d)]:_0x51ab47[_0x3b309a(0x218)](_0x2d1392,_0x4f5936);throw new _0x15ce43(_0x51ab47[_0x3b309a(0x1d8)](_0x3b309a(0x1dd)+_0x413c2b+'\x0a',_0x51ab47[_0x3b309a(0x20b)]));}}if(!_0x3135b8)return null;const _0x4ec786=await _0x51ab47[_0x3b309a(0x1e4)](checkTokenValid,_0x3135b8);if(_0x4ec786)return _0x3135b8;const _0x1b98d3=await _0x51ab47[_0x3b309a(0x1e9)](tryPromoteRefreshToken,_0x3135b8);if(_0x1b98d3)return _0x1b98d3;const _0xd8b588=await _0x51ab47[_0x3b309a(0x1ea)](tryRefreshToken);if(_0xd8b588)return _0xd8b588;const {getMcpAuthOrigin:_0x58793a,mcpBootstrap:_0x18998a}=await import(_0x51ab47[_0x3b309a(0x213)]),_0x5aaa56=await _0x51ab47[_0x3b309a(0x1ed)](_0x58793a);if(_0x5aaa56)try{console[_0x3b309a(0x1eb)](_0x3b309a(0x20e)),await _0x18998a();const _0x2a4dbe=await _0x51ab47[_0x3b309a(0x220)](tryRefreshToken);if(_0x2a4dbe)return _0x2a4dbe;}catch(_0x5e8eb2){if(_0x51ab47[_0x3b309a(0x1fb)](_0x51ab47['pKcjI'],_0x51ab47['pKcjI'])){const _0x2ee8cb=_0x51ab47[_0x3b309a(0x209)](_0x5e8eb2,Error)?_0x5e8eb2[_0x3b309a(0x20d)]:_0x51ab47['IYheI'](String,_0x5e8eb2);throw new Error(_0x51ab47[_0x3b309a(0x1d8)](_0x3b309a(0x1dd)+_0x2ee8cb+'\x0a',_0x3b309a(0x21e)));}else return _0x1fa9be[_0x3b309a(0x214)]()[_0x3b309a(0x21f)](_0x3b309a(0x20c))[_0x3b309a(0x214)]()[_0x3b309a(0x1fa)](_0x377df6)[_0x3b309a(0x21f)](ScviXI[_0x3b309a(0x22f)]);}throw new Error(_0x51ab47[_0x3b309a(0x226)]);}async function checkTokenValid(_0x4f6739){const _0x261d3d=_0x56e93f,_0x3b21e5={'GDozE':function(_0x29b6a7,_0x4d2a75,_0x46b024){return _0x29b6a7(_0x4d2a75,_0x46b024);},'mWRPi':function(_0x5a229a){return _0x5a229a();},'ACiKZ':function(_0x3b856f,_0x40fe95){return _0x3b856f===_0x40fe95;},'BMDmf':_0x261d3d(0x1ec),'jKMdk':'TqYkY','pioPk':function(_0x41bf43,_0x33a667){return _0x41bf43(_0x33a667);}},_0x41bee5=new AbortController(),_0x365503=_0x3b21e5[_0x261d3d(0x1fc)](setTimeout,()=>_0x41bee5[_0x261d3d(0x1de)](),0x1388);try{const {getApiBaseUrl:_0x52d73c}=await import('./environment.js'),_0x4abf0e=_0x3b21e5[_0x261d3d(0x203)](_0x52d73c),_0x50132f=await _0x3b21e5[_0x261d3d(0x1fc)](fetch,_0x4abf0e+_0x261d3d(0x221),{'method':_0x261d3d(0x1fd),'headers':{'Authorization':_0x261d3d(0x20f)+_0x4f6739},'signal':_0x41bee5['signal']});return _0x50132f['ok'];}catch{return!![];}finally{if(_0x3b21e5['ACiKZ'](_0x3b21e5[_0x261d3d(0x204)],_0x3b21e5[_0x261d3d(0x219)])){if(_0x4ecafb){const _0x2d072f=_0x2e7d98[_0x261d3d(0x1d9)](_0x62d6c8,arguments);return _0xf19871=null,_0x2d072f;}}else _0x3b21e5[_0x261d3d(0x216)](clearTimeout,_0x365503);}}function _0x1179(_0x390ba1,_0x549df5){_0x390ba1=_0x390ba1-0x1d7;const _0x1d7cfe=_0x5b4d();let _0x3858da=_0x1d7cfe[_0x390ba1];if(_0x1179['sMtivu']===undefined){var _0x28bc99=function(_0x5e4d69){const _0x17b072='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xe3f70f='',_0x10d5ff='',_0x27082b=_0xe3f70f+_0x28bc99;for(let _0x53291a=0x0,_0x71a4e4,_0x52e0be,_0x57c751=0x0;_0x52e0be=_0x5e4d69['charAt'](_0x57c751++);~_0x52e0be&&(_0x71a4e4=_0x53291a%0x4?_0x71a4e4*0x40+_0x52e0be:_0x52e0be,_0x53291a++%0x4)?_0xe3f70f+=_0x27082b['charCodeAt'](_0x57c751+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x71a4e4>>(-0x2*_0x53291a&0x6)):_0x53291a:0x0){_0x52e0be=_0x17b072['indexOf'](_0x52e0be);}for(let _0x4ecc79=0x0,_0x5bdc4a=_0xe3f70f['length'];_0x4ecc79<_0x5bdc4a;_0x4ecc79++){_0x10d5ff+='%'+('00'+_0xe3f70f['charCodeAt'](_0x4ecc79)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x10d5ff);};_0x1179['UivYsb']=_0x28bc99,_0x1179['ZlpErp']={},_0x1179['sMtivu']=!![];}const _0x5b4db9=_0x1d7cfe[0x0],_0x11791c=_0x390ba1+_0x5b4db9,_0x1b8ff0=_0x1179['ZlpErp'][_0x11791c];if(!_0x1b8ff0){const _0x24b767=function(_0x53fa20){this['UKeMgH']=_0x53fa20,this['nsLpNH']=[0x1,0x0,0x0],this['HGhTui']=function(){return'newState';},this['GfLTHe']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['VdbIQw']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x24b767['prototype']['SFOmlG']=function(){const _0x59ceaa=new RegExp(this['GfLTHe']+this['VdbIQw']),_0x39ba35=_0x59ceaa['test'](this['HGhTui']['toString']())?--this['nsLpNH'][0x1]:--this['nsLpNH'][0x0];return this['gTprtS'](_0x39ba35);},_0x24b767['prototype']['gTprtS']=function(_0x4818d2){if(!Boolean(~_0x4818d2))return _0x4818d2;return this['YDXrpc'](this['UKeMgH']);},_0x24b767['prototype']['YDXrpc']=function(_0x5f75b7){for(let _0x37ce4a=0x0,_0x190e15=this['nsLpNH']['length'];_0x37ce4a<_0x190e15;_0x37ce4a++){this['nsLpNH']['push'](Math['round'](Math['random']())),_0x190e15=this['nsLpNH']['length'];}return _0x5f75b7(this['nsLpNH'][0x0]);},new _0x24b767(_0x1179)['SFOmlG'](),_0x3858da=_0x1179['UivYsb'](_0x3858da),_0x1179['ZlpErp'][_0x11791c]=_0x3858da;}else _0x3858da=_0x1b8ff0;return _0x3858da;}async function tryRefreshToken(){const _0x16a532=_0x56e93f,_0x2bc964={'CzuYP':_0x16a532(0x215),'YGYHy':function(_0x38ed8f){return _0x38ed8f();}},{refreshCliToken:_0x2d7b3e}=await import(_0x2bc964['CzuYP']);return _0x2bc964[_0x16a532(0x1f9)](_0x2d7b3e);}async function tryPromoteRefreshToken(_0x31b4f4){const _0x2ee0e5=_0x56e93f,_0x28ade5={'sSiUX':function(_0x15ae21,_0xfe1eb3,_0x37304b){return _0x15ae21(_0xfe1eb3,_0x37304b);}},{refreshPartnerCliToken:_0xe912cf}=await import(_0x2ee0e5(0x215));return _0x28ade5[_0x2ee0e5(0x22e)](_0xe912cf,_0x31b4f4,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0xb546=_0x56e93f,_0x2492e5={'mFAte':_0xb546(0x1f2),'GmFGw':function(_0x2aec50,_0x5d695e){return _0x2aec50(_0x5d695e);}};try{return _0x2492e5[_0xb546(0x206)]!==_0x2492e5[_0xb546(0x206)]?_0x59f453[_0xb546(0x1fe)][_0x490722]:(await _0x2492e5[_0xb546(0x1f5)](unlink,TOKEN_PATH),!![]);}catch{return![];}}export async function storeRefreshToken(_0x3cdbdf){const _0x5553cb=_0x56e93f,_0x193941={'zKAIC':function(_0xc7e597,_0x306bb0,_0x3e94ca){return _0xc7e597(_0x306bb0,_0x3e94ca);},'ZhYTO':function(_0xffdd83,_0x4676a2,_0x5f3f90,_0x587824){return _0xffdd83(_0x4676a2,_0x5f3f90,_0x587824);}};await _0x193941['zKAIC'](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x193941[_0x5553cb(0x202)](writeFile,REFRESH_TOKEN_PATH,_0x3cdbdf,{'mode':0x180});}function _0x5b4d(){const _0x2c4eb7=['swrcwLK','zePLBxm','DuHIwfi','s2j0r2i','sgrQtLC','BM1yA1q','t0DXteG','uMHZEwm','AuTizM0','z1fKu2i','D1njvgi','Bg9N','CMTLvNC','z1LyAKK','nez4whHirW','mJG5nJaZofjNBhPqva','ntC4mdi3mLP2v05AAa','vg5Zufe','u3vxtK4','thfODwy','CeTRsvy','r21gr3C','rLDVz0C','nJqYm0HTBhvoyW','nJq4oty2nwnnuwDXtq','wuDzshK','y29UC3rYDwn0B3i','wMXqwLC','r0rVEKu','r0vu','zw52','C05MuNC','AuTytNy','rgXZuuC','wMHzve8','BvDsugK','qK1eBwy','DxrMltG','BuzbDgu','wKjhtNO','wK1RELu','DKvJD2m','s1bTEe8','tuXLuxy','kcGOlISPkYKRksSK','BwvZC2fNzq','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','qMvHCMvYia','DeDIvhC','C09MsNa','sgLgwvi','y1nJzMe','Dg9tDhjPBMC','lI90B2TLBLjLzNjLC2GUANm','CgLVugS','nJKXmtK1t2XnrMP0','ALLwCg8','AKTnzgS','uKfor0vsx0nmsv9ut0TftG','mtqWoersuM1kua','zu9xsui','vMDlC2G','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','C2vHCMnO','rfrUvxO','l2fWAs92ms9Ty3aVBwu','r0Lusfvcx0vovG','CMvMCMvZAc50Ehq','DuftA3a','qKTIrui','zNzlzNa','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','sNjVzfi','mJu5mZiWt3LhEfL6','DhjPBq','EePQzuq','ENDUvem','ouTtqufKsa','C1nPvvG','BufmrMS','Dg9Wq2C','ugvZAvu','wuP6rhG','yxbWBhK','ndK2odK4nw5buNfXsW','qNj6rNy','otqYCMDxy3r0','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','ywjVCNq','uuDUEhO'];_0x5b4d=function(){return _0x2c4eb7;};return _0x5b4d();}export async function getRefreshToken(){const _0x138e75=_0x56e93f,_0x1f7192={'ZMkzU':function(_0x2f174c,_0x4f804b){return _0x2f174c===_0x4f804b;},'hcAoQ':_0x138e75(0x230),'zwnTC':_0x138e75(0x205)};try{if(_0x1f7192[_0x138e75(0x208)](_0x1f7192['hcAoQ'],_0x1f7192['hcAoQ'])){const _0x41425e=await readFile(REFRESH_TOKEN_PATH,_0x1f7192[_0x138e75(0x22c)]);return _0x41425e[_0x138e75(0x22a)]()||null;}else _0x176137(_0x2ded44);}catch{return null;}}export async function deleteRefreshToken(){const _0x596c4a=_0x56e93f,_0x2b1e62={'VgKsh':function(_0x102694,_0x2d7ca1){return _0x102694(_0x2d7ca1);},'PesiU':_0x596c4a(0x1e7),'zLFRn':_0x596c4a(0x22b)};try{return await _0x2b1e62[_0x596c4a(0x21d)](unlink,REFRESH_TOKEN_PATH),!![];}catch{return _0x2b1e62[_0x596c4a(0x1d7)]===_0x2b1e62['zLFRn']?!![]:![];}}export async function deleteAllCredentials(){const _0x4a89c8={'CRksT':function(_0x5ef8a1){return _0x5ef8a1();}};await _0x4a89c8['CRksT'](deleteToken),await deleteRefreshToken();}
1
+ const _0x1b00b1=_0x59d1;(function(_0x20a103,_0x487891){const _0x53458a=_0x59d1,_0x114743=_0x20a103();while(!![]){try{const _0x5a8bf0=parseInt(_0x53458a(0x148))/0x1*(-parseInt(_0x53458a(0xf4))/0x2)+-parseInt(_0x53458a(0xfc))/0x3*(-parseInt(_0x53458a(0x122))/0x4)+-parseInt(_0x53458a(0x145))/0x5+-parseInt(_0x53458a(0xf7))/0x6+-parseInt(_0x53458a(0x11e))/0x7+parseInt(_0x53458a(0x116))/0x8*(-parseInt(_0x53458a(0xf5))/0x9)+parseInt(_0x53458a(0x13a))/0xa*(parseInt(_0x53458a(0x110))/0xb);if(_0x5a8bf0===_0x487891)break;else _0x114743['push'](_0x114743['shift']());}catch(_0xa19875){_0x114743['push'](_0x114743['shift']());}}}(_0xbea8,0xe5e49));const _0x2c8c56=(function(){const _0x4781b4=_0x59d1,_0x2014e4={'INbuz':'htDoL','LCJbA':_0x4781b4(0x115),'mUUCI':'VXwkJ','ojTXy':function(_0x1dfbd0,_0x28e34c){return _0x1dfbd0===_0x28e34c;},'YYNQu':'oGEBj'};let _0x1b6300=!![];return function(_0x2c7986,_0x403484){const _0x1a41a2=_0x4781b4;if(_0x2014e4[_0x1a41a2(0x118)](_0x2014e4[_0x1a41a2(0x13e)],_0x1a41a2(0x13d))){const _0x27ac3d=_0x1b6300?function(){const _0x16a6e4=_0x1a41a2;if(_0x2014e4[_0x16a6e4(0xef)]!==_0x2014e4[_0x16a6e4(0xef)]){const _0x105fe0=_0x4f9f18['apply'](_0x19f9bd,arguments);return _0xad168=null,_0x105fe0;}else{if(_0x403484){if(_0x2014e4[_0x16a6e4(0x139)]!==_0x2014e4[_0x16a6e4(0x11d)]){const _0x4e2dad=_0x403484[_0x16a6e4(0x12a)](_0x2c7986,arguments);return _0x403484=null,_0x4e2dad;}else return null;}}}:function(){};return _0x1b6300=![],_0x27ac3d;}else return!!_0x2dd42b[_0x1a41a2(0x134)][_0x1a41a2(0x137)];};}()),_0x3249a9=_0x2c8c56(this,function(){const _0x11a8b7=_0x59d1,_0x4c4db5={'dVmUk':_0x11a8b7(0x133)};return _0x3249a9[_0x11a8b7(0x11f)]()[_0x11a8b7(0x12d)](_0x4c4db5[_0x11a8b7(0x10a)])[_0x11a8b7(0x11f)]()[_0x11a8b7(0xf2)](_0x3249a9)['search'](_0x4c4db5['dVmUk']);});_0x3249a9();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';function _0x59d1(_0x262ddb,_0x5c6fdb){_0x262ddb=_0x262ddb-0xed;const _0x3b9c81=_0xbea8();let _0x3249a9=_0x3b9c81[_0x262ddb];if(_0x59d1['hdOLRd']===undefined){var _0x2c8c56=function(_0x16e197){const _0x5e1c58='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xf4498d='',_0x1e05ae='',_0x406364=_0xf4498d+_0x2c8c56;for(let _0x280265=0x0,_0x356dbe,_0x3fea80,_0x39a964=0x0;_0x3fea80=_0x16e197['charAt'](_0x39a964++);~_0x3fea80&&(_0x356dbe=_0x280265%0x4?_0x356dbe*0x40+_0x3fea80:_0x3fea80,_0x280265++%0x4)?_0xf4498d+=_0x406364['charCodeAt'](_0x39a964+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x356dbe>>(-0x2*_0x280265&0x6)):_0x280265:0x0){_0x3fea80=_0x5e1c58['indexOf'](_0x3fea80);}for(let _0x37efc0=0x0,_0x350dd6=_0xf4498d['length'];_0x37efc0<_0x350dd6;_0x37efc0++){_0x1e05ae+='%'+('00'+_0xf4498d['charCodeAt'](_0x37efc0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1e05ae);};_0x59d1['FfLrrV']=_0x2c8c56,_0x59d1['YVZOhv']={},_0x59d1['hdOLRd']=!![];}const _0xbea85b=_0x3b9c81[0x0],_0x59d174=_0x262ddb+_0xbea85b,_0xea7c7b=_0x59d1['YVZOhv'][_0x59d174];if(!_0xea7c7b){const _0x52146e=function(_0xeb4369){this['cEaKZo']=_0xeb4369,this['AwZeIL']=[0x1,0x0,0x0],this['ZnUKih']=function(){return'newState';},this['hsJzaJ']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['HqJVIA']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x52146e['prototype']['PaVwaE']=function(){const _0x35265f=new RegExp(this['hsJzaJ']+this['HqJVIA']),_0x29a6f4=_0x35265f['test'](this['ZnUKih']['toString']())?--this['AwZeIL'][0x1]:--this['AwZeIL'][0x0];return this['EBxLvN'](_0x29a6f4);},_0x52146e['prototype']['EBxLvN']=function(_0xfac959){if(!Boolean(~_0xfac959))return _0xfac959;return this['QRKAVF'](this['cEaKZo']);},_0x52146e['prototype']['QRKAVF']=function(_0x452789){for(let _0x3ec8af=0x0,_0x5c105c=this['AwZeIL']['length'];_0x3ec8af<_0x5c105c;_0x3ec8af++){this['AwZeIL']['push'](Math['round'](Math['random']())),_0x5c105c=this['AwZeIL']['length'];}return _0x452789(this['AwZeIL'][0x0]);},new _0x52146e(_0x59d1)['PaVwaE'](),_0x3249a9=_0x59d1['FfLrrV'](_0x3249a9),_0x59d1['YVZOhv'][_0x59d174]=_0x3249a9;}else _0x3249a9=_0xea7c7b;return _0x3249a9;}import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0x1b00b1(0x140),ENV_TOKEN_LEGACY=_0x1b00b1(0x109),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x1b00b1(0x113)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x1b00b1(0xfa));function isGitHubCI(){const _0x3005d7=_0x1b00b1;return!!process[_0x3005d7(0x134)][_0x3005d7(0x137)];}async function writeToGitHubEnv(_0x2b55fc,_0x2583e7){const _0x5bbb7b=process['env']['GITHUB_ENV'];_0x5bbb7b&&await appendFile(_0x5bbb7b,_0x2b55fc+'='+_0x2583e7+'\x0a');}export async function storeToken(_0x357035){const _0x34fd27=_0x1b00b1,_0x5d3f94={'cdCQG':function(_0x1ea5d2){return _0x1ea5d2();},'FDugz':function(_0x47951a,_0xf933b5,_0x460497){return _0x47951a(_0xf933b5,_0x460497);},'rEahl':function(_0x1687ae,_0x3fcb27,_0x40b989,_0x37822d){return _0x1687ae(_0x3fcb27,_0x40b989,_0x37822d);}};_0x5d3f94[_0x34fd27(0xf0)](isGitHubCI)?await _0x5d3f94[_0x34fd27(0x13b)](writeToGitHubEnv,ENV_TOKEN,_0x357035):(await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x5d3f94[_0x34fd27(0x13f)](writeFile,TOKEN_PATH,_0x357035,{'mode':0x180}));}export async function getToken(){const _0x2538cb=_0x1b00b1,_0xf70025={'EKKgu':function(_0x149435,_0x58aed4){return _0x149435!==_0x58aed4;},'gEUON':_0x2538cb(0x12b),'jywVM':_0x2538cb(0x126),'VSXAG':_0x2538cb(0xfb),'IXGHR':_0x2538cb(0x129),'QLTVO':function(_0x304370,_0x4cf4a8){return _0x304370(_0x4cf4a8);},'trkRU':function(_0x6c740a){return _0x6c740a();},'lgSbY':'../mcpBootstrap.js','uFHkK':function(_0x38624e,_0x47a2da){return _0x38624e!==_0x47a2da;},'rVBFU':_0x2538cb(0x130),'XmyoY':function(_0x5aec02,_0x30fab0){return _0x5aec02===_0x30fab0;},'lyxnN':_0x2538cb(0x120),'mdPec':_0x2538cb(0x136),'seziA':function(_0x3c51b1,_0x3aa2dc){return _0x3c51b1 instanceof _0x3aa2dc;},'YCnuC':function(_0x247718,_0x442af9){return _0x247718+_0x442af9;},'NtQMH':'Re-authorize\x20the\x20Ranger\x20MCP\x20connection,\x20then\x20retry.'};if(process['env'][ENV_TOKEN])return _0xf70025[_0x2538cb(0x119)](_0xf70025[_0x2538cb(0xfe)],_0xf70025[_0x2538cb(0xfe)])?_0x34ac83['env'][_0x49734b]:process['env'][ENV_TOKEN];if(process[_0x2538cb(0x134)][ENV_TOKEN_LEGACY])return process[_0x2538cb(0x134)][ENV_TOKEN_LEGACY];let _0x496e03=null;try{_0x496e03=(await readFile(TOKEN_PATH,_0xf70025[_0x2538cb(0xf1)]))[_0x2538cb(0x141)]()||null;}catch{if(_0xf70025['VSXAG']!==_0xf70025[_0x2538cb(0x125)]){const _0x83a782=await tryRefreshToken();return _0x83a782;}else{if(_0x28c496){const _0x2d872d=_0x3e725d['apply'](_0x53d8d5,arguments);return _0x9927dd=null,_0x2d872d;}}}if(!_0x496e03)return null;const _0x4b896e=await _0xf70025[_0x2538cb(0x143)](checkTokenValid,_0x496e03);if(_0x4b896e)return _0x496e03;const _0x46d030=await tryPromoteRefreshToken(_0x496e03);if(_0x46d030)return _0x46d030;const _0x39b2cd=await _0xf70025['trkRU'](tryRefreshToken);if(_0x39b2cd)return _0x39b2cd;const {getMcpAuthOrigin:_0x5ee422,mcpBootstrap:_0x5d7339}=await import(_0xf70025[_0x2538cb(0x138)]),_0x42c792=await _0xf70025[_0x2538cb(0xf3)](_0x5ee422);if(_0x42c792){if(_0xf70025[_0x2538cb(0x123)](_0xf70025[_0x2538cb(0x111)],_0x2538cb(0x130)))return![];else try{if(_0xf70025['XmyoY'](_0xf70025['lyxnN'],_0x2538cb(0x11a))){const _0x44d2ef=_0x52146e?function(){const _0x5c3768=_0x2538cb;if(_0x3ec8af){const _0x57b576=_0x59524a[_0x5c3768(0x12a)](_0x5822bc,arguments);return _0x1f922e=null,_0x57b576;}}:function(){};return _0x452789=![],_0x44d2ef;}else{console[_0x2538cb(0x127)](_0xf70025['mdPec']),await _0xf70025[_0x2538cb(0xf3)](_0x5d7339);const _0x1d89ef=await _0xf70025[_0x2538cb(0xf3)](tryRefreshToken);if(_0x1d89ef)return _0x1d89ef;}}catch(_0x415773){const _0x3563aa=_0xf70025[_0x2538cb(0x106)](_0x415773,Error)?_0x415773[_0x2538cb(0x144)]:_0xf70025[_0x2538cb(0x143)](String,_0x415773);throw new Error(_0xf70025[_0x2538cb(0x132)]('MCP\x20re-authentication\x20failed:\x20'+_0x3563aa+'\x0a',_0xf70025[_0x2538cb(0x121)]));}}throw new Error(_0x2538cb(0x12f));}async function checkTokenValid(_0x23a089){const _0x4d4a9c=_0x1b00b1,_0x58bbfe={'LuGSG':function(_0xb9c46c,_0x1b6a0d,_0x3ab9eb){return _0xb9c46c(_0x1b6a0d,_0x3ab9eb);},'LndiT':_0x4d4a9c(0xff),'fVkBL':function(_0x4c343e){return _0x4c343e();},'QknMy':_0x4d4a9c(0x128),'YNxxL':function(_0x5a1b1a,_0xfd8103){return _0x5a1b1a===_0xfd8103;},'cfDIK':_0x4d4a9c(0x10e),'jOGNz':function(_0x317228,_0x26ea1b){return _0x317228(_0x26ea1b);}},_0x37dec0=new AbortController(),_0x5d4058=_0x58bbfe['LuGSG'](setTimeout,()=>_0x37dec0['abort'](),0x1388);try{const {getApiBaseUrl:_0x36b87d}=await import(_0x58bbfe[_0x4d4a9c(0xed)]),_0x45ab1b=_0x58bbfe[_0x4d4a9c(0x10d)](_0x36b87d),_0x403620=await _0x58bbfe[_0x4d4a9c(0xf6)](fetch,_0x45ab1b+_0x4d4a9c(0x107),{'method':_0x58bbfe[_0x4d4a9c(0x104)],'headers':{'Authorization':_0x4d4a9c(0x12c)+_0x23a089},'signal':_0x37dec0['signal']});return _0x403620['ok'];}catch{return!![];}finally{if(_0x58bbfe['YNxxL'](_0x58bbfe[_0x4d4a9c(0x131)],_0x58bbfe[_0x4d4a9c(0x131)]))_0x58bbfe[_0x4d4a9c(0x10f)](clearTimeout,_0x5d4058);else return![];}}async function tryRefreshToken(){const _0x5008be=_0x1b00b1,_0x4ad4f2={'edrkw':function(_0x585afe){return _0x585afe();}},{refreshCliToken:_0x5f19f8}=await import('./tokenRefresh.js');return _0x4ad4f2[_0x5008be(0x124)](_0x5f19f8);}async function tryPromoteRefreshToken(_0x387955){const _0x3a13a8=_0x1b00b1,_0x552036={'MAMOw':function(_0x448889,_0x4465f4,_0x574a18){return _0x448889(_0x4465f4,_0x574a18);}},{refreshPartnerCliToken:_0x4849d1}=await import(_0x3a13a8(0xee));return _0x552036[_0x3a13a8(0x135)](_0x4849d1,_0x387955,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0x2975ad=_0x1b00b1,_0x20e011={'HqpPO':function(_0x3d4402,_0x499d8b){return _0x3d4402 instanceof _0x499d8b;},'wWFDM':function(_0x15d303,_0x4063d5){return _0x15d303(_0x4063d5);},'pCMqz':_0x2975ad(0x100),'UkoiA':function(_0xe940f6,_0x35e4b6){return _0xe940f6===_0x35e4b6;},'BuNRV':_0x2975ad(0xf8)};try{if(_0x20e011[_0x2975ad(0x117)](_0x20e011['BuNRV'],_0x20e011[_0x2975ad(0xfd)]))return await _0x20e011[_0x2975ad(0xf9)](unlink,TOKEN_PATH),!![];else{const _0x35328a=_0x20e011[_0x2975ad(0x10c)](_0x4a1bc5,_0x4623ba)?_0x310d5e[_0x2975ad(0x144)]:_0x20e011[_0x2975ad(0xf9)](_0x145baf,_0xd91b1f);throw new _0x3ecc56(_0x2975ad(0x101)+_0x35328a+'\x0a'+_0x20e011[_0x2975ad(0x108)]);}}catch{return![];}}export async function storeRefreshToken(_0x5619b5){const _0x11ff0b=_0x1b00b1,_0x2715b4={'sXWwJ':function(_0x51e9cd,_0x233664,_0x1c262b){return _0x51e9cd(_0x233664,_0x1c262b);},'noMMj':function(_0x5ea688,_0x39c7b5,_0x571423,_0x3e3ee0){return _0x5ea688(_0x39c7b5,_0x571423,_0x3e3ee0);}};await _0x2715b4[_0x11ff0b(0x112)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x2715b4['noMMj'](writeFile,REFRESH_TOKEN_PATH,_0x5619b5,{'mode':0x180});}export async function getRefreshToken(){const _0x5581b=_0x1b00b1,_0x101d4a={'qwprF':'(((.+)+)+)+$','ILWef':function(_0x2a1257,_0x52cfb1){return _0x2a1257===_0x52cfb1;},'wQwzh':_0x5581b(0x103)};try{if(_0x101d4a['ILWef'](_0x101d4a[_0x5581b(0x105)],_0x101d4a['wQwzh'])){const _0x1cab57=await readFile(REFRESH_TOKEN_PATH,'utf-8');return _0x1cab57['trim']()||null;}else return _0x5a2afb[_0x5581b(0x11f)]()['search'](JEHBKB[_0x5581b(0x146)])['toString']()[_0x5581b(0xf2)](_0x443000)[_0x5581b(0x12d)](_0x5581b(0x133));}catch{return null;}}function _0xbea8(){const _0x1adc5=['uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','vgXiDw8','sKjxqxe','uwTUtxK','D1f3EMG','C2v6Aue','l2fWAs92ms9Ty3aVBwu','CennCxO','uKfor0vsx01duf9ut0TftG','zfzTvwS','z013vLq','shfWue8','zLzRqKW','venLzK0','AK9htNO','ntGWmJq5mtjtvejNqw4','CLzcrLu','C1HxD0O','y2XPlNr4Da','CNHpDui','t1fezu0','ntm2r0fJzeLk','vwTVAue','B2PuwhK','ruTlz3u','Evb6EKm','EgnbExG','tgfNq1e','Bvvvq0K','nta3ntK2nMTtDfb1za','Dg9tDhjPBMC','DgnxuMS','tNrrtuG','ntu5odK1nNHgAeXrEa','DuziA0S','zwrYA3C','svHhsfi','DxrMltG','Bg9N','r0vu','Aevzs3G','yxbWBhK','CfPkr1O','qMvHCMvYia','C2vHCMnO','uejIuwC','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','quDSCNC','y2zesuS','wunUDum','kcGOlISPkYKRksSK','zw52','tufnt3C','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','r0Lusfvcx0vovG','BgDtyLK','tenkyKe','mtbzBw5vtvC','rKr1z3O','A0DltNy','B0DfqMO','wvLouxu','CKvHAgW','uKfor0vsx0nmsv9ut0TftG','DhjPBq','wLzRDfa','uuXuvK8','BwvZC2fNzq','otmXotGYnwvAz01MDW','CxDWCKy','AenmzMe','nZuZn3L5sNvdzW','tg5KAvq','lI90B2TLBLjLzNjLC2GUANm','su5IDxO','y2rduuC','ANL3vK0','y29UC3rYDwn0B3i','DhjRuLu','nLr6AhjkEq','mtK5mZu5uNLHrxz6','thvhu0C','otGYmZu1ng1wthrhAa','qwztDwG','D1Dgre0','CMvMCMvZAc50Ehq','EgPtBMK','m3HuBwrfwa','qNvouLy','z0vvt04','lI9LBNzPCM9UBwvUDc5QCW'];_0xbea8=function(){return _0x1adc5;};return _0xbea8();}export async function deleteRefreshToken(){const _0x24ae9e=_0x1b00b1,_0x3e8005={'TlHuo':function(_0x18a4b4,_0x4cb8c9){return _0x18a4b4(_0x4cb8c9);},'PBbQg':function(_0x3e28c5,_0x3acd9f){return _0x3e28c5(_0x3acd9f);},'ZVktP':function(_0x1f8817,_0x18288f){return _0x1f8817!==_0x18288f;},'xcAyx':_0x24ae9e(0x13c),'rxOuB':_0x24ae9e(0x11c)};try{return await _0x3e8005[_0x24ae9e(0x12e)](unlink,REFRESH_TOKEN_PATH),!![];}catch{if(_0x3e8005[_0x24ae9e(0x142)](_0x3e8005[_0x24ae9e(0x11b)],_0x3e8005[_0x24ae9e(0x114)]))return![];else _0x3e8005[_0x24ae9e(0x102)](_0x4e6f97,_0x3559c9);}}export async function deleteAllCredentials(){const _0x1e619d=_0x1b00b1,_0x902c77={'gMwVT':function(_0x8ab820){return _0x8ab820();},'hCLfa':function(_0x1e2e07){return _0x1e2e07();}};await _0x902c77[_0x1e619d(0x10b)](deleteToken),await _0x902c77[_0x1e619d(0x147)](deleteRefreshToken);}
@@ -1 +1 @@
1
- const _0x56204a=_0x1d2b;(function(_0x46f90a,_0x5e73e7){const _0x5e368c=_0x1d2b,_0xbd9c22=_0x46f90a();while(!![]){try{const _0x3b74bc=-parseInt(_0x5e368c(0x1b5))/0x1+parseInt(_0x5e368c(0x1b0))/0x2+-parseInt(_0x5e368c(0x1b2))/0x3*(parseInt(_0x5e368c(0x1be))/0x4)+parseInt(_0x5e368c(0x1b1))/0x5+parseInt(_0x5e368c(0x1bd))/0x6+parseInt(_0x5e368c(0x1af))/0x7+-parseInt(_0x5e368c(0x1ad))/0x8;if(_0x3b74bc===_0x5e73e7)break;else _0xbd9c22['push'](_0xbd9c22['shift']());}catch(_0x26a50b){_0xbd9c22['push'](_0xbd9c22['shift']());}}}(_0x5d28,0x8176d));import{existsSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';function _0x5d28(){const _0x222bbf=['baYHZ','QKXbS','AfooR','fDgLb','startsWith','verify-feature','3456426jqttap','52ZrtwqZ','filter','has','gtzxN','write','profiles','\x20\x20\x20\x20\x20https://docs.ranger.net/main/concepts/profiles','nUGzR','\x20\x20\x20as\x20a\x20fallback.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:','setup','start','\x20\x20\x20\x20\x20','trITP','ztSzr','--help','3778048nLmVfV','\x20\x20\x20For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:','554855SluTov','1254496SiIEDA','2357805BkwOhS','13023JyuKVD','btibt','GxatA','695171PfNbbF','slice'];_0x5d28=function(){return _0x222bbf;};return _0x5d28();}import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function detectLegacyPaths(){const _0x120cd0=_0x1d2b,_0x40d90c={'cYjUV':function(_0x139d9a){return _0x139d9a();},'fDgLb':function(_0x54d2ee,_0x35cd38,_0x3c74fd){return _0x54d2ee(_0x35cd38,_0x3c74fd);},'MKAWa':'local','ztSzr':'active-profile.txt'},_0x2c7977=getRangerDir(),_0x4f7b82=_0x40d90c['cYjUV'](getRangerHomeDir);return[join(_0x2c7977,'local'),_0x40d90c[_0x120cd0(0x1ba)](join,_0x2c7977,'ci'),join(_0x4f7b82,_0x40d90c['MKAWa']),_0x40d90c['fDgLb'](join,_0x2c7977,_0x40d90c[_0x120cd0(0x1ab)])][_0x120cd0(0x1bf)](_0x390fe4=>existsSync(_0x390fe4));}function flagFilePath(){const _0x2f3de3=_0x1d2b,_0x12b60c={'AfooR':function(_0x528822){return _0x528822();}},_0x591761=new Date()['toISOString']()[_0x2f3de3(0x1b6)](0x0,0xa);return join(_0x12b60c[_0x2f3de3(0x1b9)](getRangerHomeDir),'.legacy-warning-'+_0x591761);}export function showLegacyDeprecationWarning(){const _0x1fccc8=_0x1d2b,_0x407a5c={'gtzxN':function(_0x3a1fc4){return _0x3a1fc4();},'trITP':function(_0xd016e6,_0x3e88af){return _0xd016e6===_0x3e88af;},'btibt':function(_0x4a0b16){return _0x4a0b16();},'hPiIE':'⚠\x20\x20Legacy\x20Ranger\x20paths\x20detected\x20(read-only):','QKXbS':'\x20\x20\x20Ranger\x20no\x20longer\x20writes\x20to\x20these\x20paths.\x20Existing\x20sessions\x20there\x20still\x20work','nUGzR':_0x1fccc8(0x1a6),'tgLut':_0x1fccc8(0x1c4),'baYHZ':function(_0x5f3342,_0x1fb6a3){return _0x5f3342+_0x1fb6a3;},'wqCWJ':function(_0x2574fa,_0x57984f,_0xd09eb1){return _0x2574fa(_0x57984f,_0xd09eb1);}},_0x1fcacf=_0x407a5c[_0x1fccc8(0x1c1)](detectLegacyPaths);if(_0x407a5c[_0x1fccc8(0x1aa)](_0x1fcacf['length'],0x0))return;const _0x52bbc2=_0x407a5c[_0x1fccc8(0x1b3)](flagFilePath);if(existsSync(_0x52bbc2))return;const _0x3538e0=['',_0x407a5c['hPiIE'],..._0x1fcacf['map'](_0x31da1a=>_0x1fccc8(0x1a9)+_0x31da1a),'',_0x407a5c[_0x1fccc8(0x1b8)],_0x407a5c[_0x1fccc8(0x1c5)],'','\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20<name>','',_0x1fccc8(0x1ae),_0x407a5c['tgLut'],'','\x20\x20\x20Delete\x20these\x20paths\x20after\x20you\x20have\x20re-auth-ed.',''];process['stderr'][_0x1fccc8(0x1c2)](_0x407a5c[_0x1fccc8(0x1b7)](_0x3538e0['join']('\x0a'),'\x0a'));try{_0x407a5c['wqCWJ'](mkdirSync,getRangerHomeDir(),{'recursive':!![]}),writeFileSync(_0x52bbc2,'',{'mode':0x180});}catch{}}const PROFILE_TOUCHING_COMMANDS=new Set(['go','verify',_0x56204a(0x1bc),'profile',_0x56204a(0x1c3),_0x56204a(0x1a7),'setup-ci',_0x56204a(0x1a8),'use']);function _0x1d2b(_0x52c6f9,_0x5c8ec0){_0x52c6f9=_0x52c6f9-0x1a6;const _0x5d2814=_0x5d28();let _0x1d2bc4=_0x5d2814[_0x52c6f9];return _0x1d2bc4;}export function shouldShowLegacyWarning(_0x31ccb3){const _0x12718b=_0x56204a,_0x341d44={'GxatA':function(_0x40788b,_0x375c45){return _0x40788b<_0x375c45;}},_0x2e8fe1=_0x31ccb3[0x2];if(!_0x2e8fe1)return![];if(_0x2e8fe1[_0x12718b(0x1bb)]('-'))return![];if(!PROFILE_TOUCHING_COMMANDS[_0x12718b(0x1c0)](_0x2e8fe1))return![];for(let _0x1b186e=0x3;_0x341d44[_0x12718b(0x1b4)](_0x1b186e,_0x31ccb3['length']);_0x1b186e++){if(_0x31ccb3[_0x1b186e]===_0x12718b(0x1ac)||_0x31ccb3[_0x1b186e]==='-h')return![];}return!![];}
1
+ const _0x1f9de3=_0x5b1a;function _0x5b1a(_0x3f4b8f,_0xd130ab){_0x3f4b8f=_0x3f4b8f-0x1ab;const _0x157000=_0x1570();let _0x5b1a09=_0x157000[_0x3f4b8f];return _0x5b1a09;}(function(_0x3fefb2,_0x3dfe4d){const _0x2efb80=_0x5b1a,_0x3f6a09=_0x3fefb2();while(!![]){try{const _0x50603c=-parseInt(_0x2efb80(0x1c2))/0x1*(-parseInt(_0x2efb80(0x1b9))/0x2)+-parseInt(_0x2efb80(0x1c1))/0x3*(parseInt(_0x2efb80(0x1ba))/0x4)+parseInt(_0x2efb80(0x1b1))/0x5*(-parseInt(_0x2efb80(0x1cf))/0x6)+parseInt(_0x2efb80(0x1b0))/0x7*(parseInt(_0x2efb80(0x1ab))/0x8)+-parseInt(_0x2efb80(0x1ac))/0x9*(parseInt(_0x2efb80(0x1cd))/0xa)+-parseInt(_0x2efb80(0x1bd))/0xb*(parseInt(_0x2efb80(0x1af))/0xc)+parseInt(_0x2efb80(0x1cb))/0xd;if(_0x50603c===_0x3dfe4d)break;else _0x3f6a09['push'](_0x3f6a09['shift']());}catch(_0x1871c3){_0x3f6a09['push'](_0x3f6a09['shift']());}}}(_0x1570,0x80acd));import{existsSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';function _0x1570(){const _0x4550bc=['toISOString','filter','29703960NpwBVx','VXZcC','170iNtfId','--help','6damlhe','8ocdaxN','441270AbLkMz','has','use','110568UpYEiC','106113qNCDWW','851195gSTUeN','write','wJTbk','slice','YPnbj','ZLIiU','profiles','AeWFV','25244hLGPVq','4UAlvlR','⚠\x20\x20Legacy\x20Ranger\x20paths\x20detected\x20(read-only):','DzoRo','979fnVCxM','adcId','.legacy-warning-','verify','907941NZPwcd','28bbjQrb','\x20\x20\x20For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:','map','KsgDy','VFhQv','startsWith','length'];_0x1570=function(){return _0x4550bc;};return _0x1570();}import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function detectLegacyPaths(){const _0x44c035=_0x5b1a,_0x1924dd={'AeWFV':function(_0x2af740){return _0x2af740();},'wJTbk':function(_0x4416cf){return _0x4416cf();},'ZLIiU':function(_0x326550,_0x2c82ad,_0x2158e8){return _0x326550(_0x2c82ad,_0x2158e8);},'nvfzY':'local','VXZcC':function(_0x30dfa5,_0x54c645,_0x4cdefc){return _0x30dfa5(_0x54c645,_0x4cdefc);}},_0x15fbed=_0x1924dd[_0x44c035(0x1b8)](getRangerDir),_0x18bd4c=_0x1924dd[_0x44c035(0x1b3)](getRangerHomeDir);return[_0x1924dd[_0x44c035(0x1b6)](join,_0x15fbed,_0x1924dd['nvfzY']),_0x1924dd[_0x44c035(0x1cc)](join,_0x15fbed,'ci'),join(_0x18bd4c,_0x1924dd['nvfzY']),join(_0x15fbed,'active-profile.txt')][_0x44c035(0x1ca)](_0x3718b9=>existsSync(_0x3718b9));}function flagFilePath(){const _0x1fbbee=_0x5b1a,_0x6ff9e9={'DzoRo':function(_0x1dd713,_0x3ce530,_0x3339d7){return _0x1dd713(_0x3ce530,_0x3339d7);},'YPnbj':function(_0x55ddc8){return _0x55ddc8();}},_0x16a040=new Date()[_0x1fbbee(0x1c9)]()[_0x1fbbee(0x1b4)](0x0,0xa);return _0x6ff9e9[_0x1fbbee(0x1bc)](join,_0x6ff9e9[_0x1fbbee(0x1b5)](getRangerHomeDir),_0x1fbbee(0x1bf)+_0x16a040);}export function showLegacyDeprecationWarning(){const _0x4446b1=_0x5b1a,_0x3f500a={'UASuC':function(_0x331b17,_0x5585bf){return _0x331b17(_0x5585bf);},'BcEZV':_0x4446b1(0x1bb),'LGlpo':'\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20<name>','adcId':'\x20\x20\x20\x20\x20https://docs.ranger.net/main/concepts/profiles','wRRIJ':function(_0xc2f2eb,_0x45e03b){return _0xc2f2eb+_0x45e03b;},'zyJuP':function(_0x49d18b){return _0x49d18b();},'KsgDy':function(_0x400d18,_0x287138,_0x285a1f,_0x2c1982){return _0x400d18(_0x287138,_0x285a1f,_0x2c1982);}},_0x199e7a=detectLegacyPaths();if(_0x199e7a[_0x4446b1(0x1c8)]===0x0)return;const _0x165019=flagFilePath();if(_0x3f500a['UASuC'](existsSync,_0x165019))return;const _0x4e06ff=['',_0x3f500a['BcEZV'],..._0x199e7a[_0x4446b1(0x1c4)](_0x250f9f=>'\x20\x20\x20\x20\x20'+_0x250f9f),'','\x20\x20\x20Ranger\x20no\x20longer\x20writes\x20to\x20these\x20paths.\x20Existing\x20sessions\x20there\x20still\x20work','\x20\x20\x20as\x20a\x20fallback.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:','',_0x3f500a['LGlpo'],'',_0x4446b1(0x1c3),_0x3f500a[_0x4446b1(0x1be)],'','\x20\x20\x20Delete\x20these\x20paths\x20after\x20you\x20have\x20re-auth-ed.',''];process['stderr'][_0x4446b1(0x1b2)](_0x3f500a['wRRIJ'](_0x4e06ff['join']('\x0a'),'\x0a'));try{mkdirSync(_0x3f500a['zyJuP'](getRangerHomeDir),{'recursive':!![]}),_0x3f500a[_0x4446b1(0x1c5)](writeFileSync,_0x165019,'',{'mode':0x180});}catch{}}const PROFILE_TOUCHING_COMMANDS=new Set(['go',_0x1f9de3(0x1c0),'verify-feature','profile',_0x1f9de3(0x1b7),'setup','setup-ci','start',_0x1f9de3(0x1ae)]);export function shouldShowLegacyWarning(_0x438116){const _0x138539=_0x1f9de3,_0x503965={'VFhQv':function(_0x19423c,_0x5691b1){return _0x19423c<_0x5691b1;},'oMUXb':_0x138539(0x1ce),'kZhfV':function(_0x2521ca,_0xdd55f6){return _0x2521ca===_0xdd55f6;}},_0x4cb409=_0x438116[0x2];if(!_0x4cb409)return![];if(_0x4cb409[_0x138539(0x1c7)]('-'))return![];if(!PROFILE_TOUCHING_COMMANDS[_0x138539(0x1ad)](_0x4cb409))return![];for(let _0x85229e=0x3;_0x503965[_0x138539(0x1c6)](_0x85229e,_0x438116[_0x138539(0x1c8)]);_0x85229e++){if(_0x438116[_0x85229e]===_0x503965['oMUXb']||_0x503965['kZhfV'](_0x438116[_0x85229e],'-h'))return![];}return!![];}
@@ -1 +1 @@
1
- (function(_0x13247b,_0x4bc9f5){const _0x4b1ef2=_0x30e8,_0x433120=_0x13247b();while(!![]){try{const _0x49500a=parseInt(_0x4b1ef2(0xcb))/0x1+parseInt(_0x4b1ef2(0xea))/0x2+-parseInt(_0x4b1ef2(0xc6))/0x3+-parseInt(_0x4b1ef2(0xe7))/0x4*(parseInt(_0x4b1ef2(0xe2))/0x5)+-parseInt(_0x4b1ef2(0xca))/0x6+-parseInt(_0x4b1ef2(0xe0))/0x7+parseInt(_0x4b1ef2(0xdd))/0x8*(parseInt(_0x4b1ef2(0xd3))/0x9);if(_0x49500a===_0x4bc9f5)break;else _0x433120['push'](_0x433120['shift']());}catch(_0xca75f6){_0x433120['push'](_0x433120['shift']());}}}(_0x1249,0xc26d6));const _0x870a8f=(function(){const _0x3ee29f=_0x30e8,_0x4a9fd0={'KIQhR':_0x3ee29f(0xd7),'GdvMm':function(_0x5b0c11,_0x4120fe){return _0x5b0c11===_0x4120fe;},'opeIh':_0x3ee29f(0xd2),'wBrVR':_0x3ee29f(0xe1),'jQoNr':_0x3ee29f(0xe5)};let _0x3c931f=!![];return function(_0x8a79ca,_0x59699c){if(_0x4a9fd0['jQoNr']!=='UXkbH')return;else{const _0x809c1=_0x3c931f?function(){const _0x3a9c60=_0x30e8,_0x25d52e={'hsjMU':_0x4a9fd0[_0x3a9c60(0xce)]};if(_0x4a9fd0[_0x3a9c60(0xcd)](_0x3a9c60(0xd2),_0x4a9fd0['opeIh'])){if(_0x59699c){if(_0x4a9fd0[_0x3a9c60(0xdc)]==='MuUvJ'){const _0x1669cc=_0x59699c['apply'](_0x8a79ca,arguments);return _0x59699c=null,_0x1669cc;}else{if(_0x11505e){const _0x23d5f4=_0x1a8f1e[_0x3a9c60(0xe8)](_0x2a9568,arguments);return _0x1ad63d=null,_0x23d5f4;}}}}else return _0x371fd3[_0x3a9c60(0xc9)]()[_0x3a9c60(0xd6)](_0x25d52e[_0x3a9c60(0xd0)])[_0x3a9c60(0xc9)]()[_0x3a9c60(0xcc)](_0x243aa6)['search'](_0x3a9c60(0xd7));}:function(){};return _0x3c931f=![],_0x809c1;}};}()),_0x13d65b=_0x870a8f(this,function(){const _0xd11ab6=_0x30e8,_0x44aff6={'OUxFp':_0xd11ab6(0xd7)};return _0x13d65b[_0xd11ab6(0xc9)]()['search'](_0xd11ab6(0xd7))[_0xd11ab6(0xc9)]()[_0xd11ab6(0xcc)](_0x13d65b)['search'](_0x44aff6[_0xd11ab6(0xe3)]);});_0x13d65b();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';function _0x1249(){const _0x4b317d=['mZe4ndbOtgHct2e','t1v4rNa','ywjVCNq','vvHRyKG','qMvHCMvYia','mta0AMfbt3fp','yxbWBhK','ue9tva','mtCZmta5mfHKBurTAG','zxjYB3i','Dgv4Da','mJaYntq0mxrYBe1xEq','CvDOv08','rurfv0y','Dg9tDhjPBMC','otqZnZuZmMrcsfjqDW','ndqZntGWrLrswKr4','y29UC3rYDwn0B3i','r2r2tw0','s0LrAfi','vgjwBe8','AhnQtvu','y2HpEuG','z3DYvNi','mti2owP3D1rVDG','tKXzuK8','DfHZD3u','C2vHCMnO','kcGOlISPkYKRksSK','C2LNBMfS','C3rYAw5NAwz5','zhvAtMy','yxbWBgLJyxrPB24VANnVBG','D0jYvLi','mtuXmJa4z01tEuHP','l2fWAs92ms9Ty3aVBg9JywWTywDLBNqTAw5ZDgfSBgf0Aw9UCW','Awf5BxC','ntm0ota4nvHovKrvAW','txvvDKO'];_0x1249=function(){return _0x4b317d;};return _0x1249();}function _0x30e8(_0x1e8eff,_0x36319a){_0x1e8eff=_0x1e8eff-0xc5;const _0x50d309=_0x1249();let _0x13d65b=_0x50d309[_0x1e8eff];if(_0x30e8['cEevyO']===undefined){var _0x870a8f=function(_0x446d6e){const _0x8a2558='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x10413a='',_0x15bf0d='',_0x18c8e=_0x10413a+_0x870a8f;for(let _0x16b183=0x0,_0x263225,_0x4c21e7,_0x256a40=0x0;_0x4c21e7=_0x446d6e['charAt'](_0x256a40++);~_0x4c21e7&&(_0x263225=_0x16b183%0x4?_0x263225*0x40+_0x4c21e7:_0x4c21e7,_0x16b183++%0x4)?_0x10413a+=_0x18c8e['charCodeAt'](_0x256a40+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x263225>>(-0x2*_0x16b183&0x6)):_0x16b183:0x0){_0x4c21e7=_0x8a2558['indexOf'](_0x4c21e7);}for(let _0x2d2315=0x0,_0x150da5=_0x10413a['length'];_0x2d2315<_0x150da5;_0x2d2315++){_0x15bf0d+='%'+('00'+_0x10413a['charCodeAt'](_0x2d2315)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x15bf0d);};_0x30e8['tiWbeE']=_0x870a8f,_0x30e8['MPHkiP']={},_0x30e8['cEevyO']=!![];}const _0x1249e3=_0x50d309[0x0],_0x30e8ce=_0x1e8eff+_0x1249e3,_0x3ee8d7=_0x30e8['MPHkiP'][_0x30e8ce];if(!_0x3ee8d7){const _0x3117fc=function(_0xe77745){this['GPiWmp']=_0xe77745,this['YOxORa']=[0x1,0x0,0x0],this['NEFhom']=function(){return'newState';},this['ZXjhAb']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['nzlPKt']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x3117fc['prototype']['DCdiGx']=function(){const _0x39542a=new RegExp(this['ZXjhAb']+this['nzlPKt']),_0x4a5d6d=_0x39542a['test'](this['NEFhom']['toString']())?--this['YOxORa'][0x1]:--this['YOxORa'][0x0];return this['LkENsF'](_0x4a5d6d);},_0x3117fc['prototype']['LkENsF']=function(_0x569f66){if(!Boolean(~_0x569f66))return _0x569f66;return this['wVhZHG'](this['GPiWmp']);},_0x3117fc['prototype']['wVhZHG']=function(_0x57abd8){for(let _0x43941e=0x0,_0x572a2c=this['YOxORa']['length'];_0x43941e<_0x572a2c;_0x43941e++){this['YOxORa']['push'](Math['round'](Math['random']())),_0x572a2c=this['YOxORa']['length'];}return _0x57abd8(this['YOxORa'][0x0]);},new _0x3117fc(_0x30e8)['DCdiGx'](),_0x13d65b=_0x30e8['tiWbeE'](_0x13d65b),_0x30e8['MPHkiP'][_0x30e8ce]=_0x13d65b;}else _0x13d65b=_0x3ee8d7;return _0x13d65b;}export async function logLocalAgentInstallation(_0x455436,_0x35b6f9,_0x32389a){const _0x53c5c1=_0x30e8,_0x52764d={'RQTBn':function(_0x3dc7f7){return _0x3dc7f7();},'duZNf':function(_0x5c64ad){return _0x5c64ad();},'TbVlO':function(_0x498f78,_0x250a31,_0x3135ec){return _0x498f78(_0x250a31,_0x3135ec);},'qWhWO':function(_0x2563d0,_0x23223a){return _0x2563d0!==_0x23223a;},'NLYRO':_0x53c5c1(0xd5),'EDEWF':_0x53c5c1(0xe9),'ATSgC':_0x53c5c1(0xdb),'chOyH':function(_0x4c1303,_0x2e1b9a){return _0x4c1303(_0x2e1b9a);}},_0x1b7681=await _0x52764d['RQTBn'](getToken);if(!_0x1b7681)return;const _0x2f8d0c=_0x52764d[_0x53c5c1(0xda)](getApiBaseUrl),_0x424ba2=new AbortController(),_0x44745c=_0x52764d[_0x53c5c1(0xcf)](setTimeout,()=>_0x424ba2[_0x53c5c1(0xe4)](),0x1388);let _0x233520;try{if(_0x52764d[_0x53c5c1(0xc7)](_0x52764d[_0x53c5c1(0xd4)],_0x53c5c1(0xdf)))_0x233520=await _0x52764d['TbVlO'](fetch,_0x2f8d0c+_0x53c5c1(0xde),{'method':_0x52764d[_0x53c5c1(0xc8)],'headers':{'Authorization':_0x53c5c1(0xe6)+_0x1b7681,'Content-Type':_0x52764d['ATSgC']},'body':JSON[_0x53c5c1(0xd9)]({'skillName':_0x455436,'cliVersion':_0x32389a,'metadata':_0x35b6f9}),'signal':_0x424ba2[_0x53c5c1(0xd8)]});else{const _0x170925=_0x30cbb2['apply'](_0x54e88e,arguments);return _0x313479=null,_0x170925;}}finally{_0x52764d[_0x53c5c1(0xd1)](clearTimeout,_0x44745c);}if(!_0x233520['ok']){const _0x30cb28=await _0x233520[_0x53c5c1(0xc5)]();console[_0x53c5c1(0xeb)]('Failed\x20to\x20log\x20skill\x20installation:\x20'+_0x30cb28);}}
1
+ (function(_0x152111,_0x251083){const _0x394c81=_0xdd43,_0x2ecaa3=_0x152111();while(!![]){try{const _0xd966f6=parseInt(_0x394c81(0x11a))/0x1*(parseInt(_0x394c81(0x12e))/0x2)+-parseInt(_0x394c81(0x121))/0x3*(-parseInt(_0x394c81(0x139))/0x4)+parseInt(_0x394c81(0x126))/0x5*(parseInt(_0x394c81(0x136))/0x6)+parseInt(_0x394c81(0x127))/0x7+parseInt(_0x394c81(0x11b))/0x8*(-parseInt(_0x394c81(0x131))/0x9)+parseInt(_0x394c81(0x11c))/0xa*(-parseInt(_0x394c81(0x11d))/0xb)+parseInt(_0x394c81(0x12a))/0xc*(-parseInt(_0x394c81(0x11e))/0xd);if(_0xd966f6===_0x251083)break;else _0x2ecaa3['push'](_0x2ecaa3['shift']());}catch(_0x42fc5e){_0x2ecaa3['push'](_0x2ecaa3['shift']());}}}(_0x3638,0x71961));function _0xdd43(_0x315dbf,_0x4c0179){_0x315dbf=_0x315dbf-0x11a;const _0x4636a5=_0x3638();let _0x298e7a=_0x4636a5[_0x315dbf];if(_0xdd43['UBnMYa']===undefined){var _0x1b00d5=function(_0x7b8a0d){const _0x347b74='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x162ce0='',_0x585718='',_0x395647=_0x162ce0+_0x1b00d5;for(let _0x38448a=0x0,_0x26fed9,_0x4d9477,_0x469cb7=0x0;_0x4d9477=_0x7b8a0d['charAt'](_0x469cb7++);~_0x4d9477&&(_0x26fed9=_0x38448a%0x4?_0x26fed9*0x40+_0x4d9477:_0x4d9477,_0x38448a++%0x4)?_0x162ce0+=_0x395647['charCodeAt'](_0x469cb7+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x26fed9>>(-0x2*_0x38448a&0x6)):_0x38448a:0x0){_0x4d9477=_0x347b74['indexOf'](_0x4d9477);}for(let _0x1f6488=0x0,_0x35cc05=_0x162ce0['length'];_0x1f6488<_0x35cc05;_0x1f6488++){_0x585718+='%'+('00'+_0x162ce0['charCodeAt'](_0x1f6488)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x585718);};_0xdd43['BtASRR']=_0x1b00d5,_0xdd43['dZfOSr']={},_0xdd43['UBnMYa']=!![];}const _0x3638cb=_0x4636a5[0x0],_0xdd43a3=_0x315dbf+_0x3638cb,_0x38c7e4=_0xdd43['dZfOSr'][_0xdd43a3];if(!_0x38c7e4){const _0x4ae1ba=function(_0x2c723c){this['eeOIJp']=_0x2c723c,this['kwXTpQ']=[0x1,0x0,0x0],this['HQaDSC']=function(){return'newState';},this['EDILAr']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['wHfXUV']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x4ae1ba['prototype']['byyrSd']=function(){const _0x38c6c6=new RegExp(this['EDILAr']+this['wHfXUV']),_0x2f6c1b=_0x38c6c6['test'](this['HQaDSC']['toString']())?--this['kwXTpQ'][0x1]:--this['kwXTpQ'][0x0];return this['MkQNAs'](_0x2f6c1b);},_0x4ae1ba['prototype']['MkQNAs']=function(_0xce7aab){if(!Boolean(~_0xce7aab))return _0xce7aab;return this['rDwkmi'](this['eeOIJp']);},_0x4ae1ba['prototype']['rDwkmi']=function(_0x634d9){for(let _0x1d92ab=0x0,_0x5a68f9=this['kwXTpQ']['length'];_0x1d92ab<_0x5a68f9;_0x1d92ab++){this['kwXTpQ']['push'](Math['round'](Math['random']())),_0x5a68f9=this['kwXTpQ']['length'];}return _0x634d9(this['kwXTpQ'][0x0]);},new _0x4ae1ba(_0xdd43)['byyrSd'](),_0x298e7a=_0xdd43['BtASRR'](_0x298e7a),_0xdd43['dZfOSr'][_0xdd43a3]=_0x298e7a;}else _0x298e7a=_0x38c7e4;return _0x298e7a;}const _0x1b00d5=(function(){let _0x27ec10=!![];return function(_0x545716,_0x2be335){const _0x475251=_0x27ec10?function(){if(_0x2be335){const _0x2d7220=_0x2be335['apply'](_0x545716,arguments);return _0x2be335=null,_0x2d7220;}}:function(){};return _0x27ec10=![],_0x475251;};}()),_0x298e7a=_0x1b00d5(this,function(){const _0x38b8b0=_0xdd43,_0x579012={'ZLqkj':'(((.+)+)+)+$'};return _0x298e7a[_0x38b8b0(0x137)]()[_0x38b8b0(0x12c)](_0x579012[_0x38b8b0(0x125)])[_0x38b8b0(0x137)]()[_0x38b8b0(0x122)](_0x298e7a)[_0x38b8b0(0x12c)](_0x579012[_0x38b8b0(0x125)]);});function _0x3638(){const _0x58c8b3=['rvjzrK4','wKXXA2O','mtu5nZaXnw96ChDhqq','ndi1ntK1ohnnyNfKva','Dgv4Da','yxbWBgLJyxrPB24VANnVBG','nJaWodaWng9Uz0HYvW','l2fWAs92ms9Ty3aVBg9JywWTywDLBNqTAw5ZDgfSBgf0Aw9UCW','C2vHCMnO','qMvHCMvYia','mZq2nMvRrwPlCG','yxbWBhK','zxjYB3i','mti3ndG1EwnuwuvN','C2LNBMfS','qwzfsg8','wKnhueO','ue9tva','nLDVsMH5rG','Dg9tDhjPBMC','yM5zBuW','neH2uK1mAq','rMfPBgvKihrVigXVzYbZA2LSBcbPBNn0ywXSyxrPB246ia','yK56v0m','mJaWDMnuu3LN','ntzOv0ndrhm','mtm2me52wLfTDq','ndm0odn1twnVtu0','mJzZA0XIDui','zwDWz1q','uLLcBgu','mJq4oda0n2n6v0LevW','y29UC3rYDwn0B3i','ywjVCNq'];_0x3638=function(){return _0x58c8b3;};return _0x3638();}_0x298e7a();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';export async function logLocalAgentInstallation(_0x2c9c64,_0x2d2ebb,_0x35c12a){const _0x50f3ad=_0xdd43,_0x1cfe9f={'NpSwI':function(_0x3cdf84,_0xa75c16,_0x5c8919){return _0x3cdf84(_0xa75c16,_0x5c8919);},'xgjTh':function(_0x4502ee,_0x4823ca,_0x20c605){return _0x4502ee(_0x4823ca,_0x20c605);},'ERYFN':_0x50f3ad(0x135),'egpgT':_0x50f3ad(0x129),'bnYmL':function(_0x4a307e,_0x26f65a){return _0x4a307e!==_0x26f65a;},'AfEHo':_0x50f3ad(0x13b),'qgnaC':function(_0x3d3440,_0x14135f){return _0x3d3440(_0x14135f);},'rAOrR':function(_0x18e2f2,_0xf8517e){return _0x18e2f2===_0xf8517e;},'RYBle':_0x50f3ad(0x134)},_0x4e905a=await getToken();if(!_0x4e905a)return;const _0x45d6b5=getApiBaseUrl(),_0x226d20=new AbortController(),_0x59bdcc=_0x1cfe9f['NpSwI'](setTimeout,()=>_0x226d20[_0x50f3ad(0x123)](),0x1388);let _0x474194;try{_0x474194=await _0x1cfe9f['xgjTh'](fetch,_0x45d6b5+_0x50f3ad(0x12b),{'method':_0x1cfe9f[_0x50f3ad(0x124)],'headers':{'Authorization':_0x50f3ad(0x12d)+_0x4e905a,'Content-Type':_0x1cfe9f[_0x50f3ad(0x11f)]},'body':JSON['stringify']({'skillName':_0x2c9c64,'cliVersion':_0x35c12a,'metadata':_0x2d2ebb}),'signal':_0x226d20[_0x50f3ad(0x132)]});}finally{if(_0x1cfe9f[_0x50f3ad(0x138)](_0x1cfe9f[_0x50f3ad(0x133)],_0x1cfe9f['AfEHo'])){const _0x36fd87=_0x522603[_0x50f3ad(0x12f)](_0x280cf7,arguments);return _0x54fab1=null,_0x36fd87;}else _0x1cfe9f['qgnaC'](clearTimeout,_0x59bdcc);}if(!_0x474194['ok']){if(_0x1cfe9f['rAOrR'](_0x1cfe9f[_0x50f3ad(0x120)],_0x1cfe9f[_0x50f3ad(0x120)])){const _0x4887bd=await _0x474194[_0x50f3ad(0x128)]();console[_0x50f3ad(0x130)](_0x50f3ad(0x13a)+_0x4887bd);}else{if(_0x2352fc){const _0x336e64=_0x5f5581[_0x50f3ad(0x12f)](_0x2e0298,arguments);return _0x48368f=null,_0x336e64;}}}}
@@ -1 +1 @@
1
- function _0x3f21(_0x5b81ea,_0x4e3581){_0x5b81ea=_0x5b81ea-0xe0;const _0xf2c287=_0xf2c2();let _0x3f21a4=_0xf2c287[_0x5b81ea];return _0x3f21a4;}(function(_0x25abd7,_0x4c790b){const _0x4a81a4=_0x3f21,_0x296102=_0x25abd7();while(!![]){try{const _0x12d83e=-parseInt(_0x4a81a4(0xe9))/0x1*(-parseInt(_0x4a81a4(0xec))/0x2)+parseInt(_0x4a81a4(0xe2))/0x3+parseInt(_0x4a81a4(0xe4))/0x4*(-parseInt(_0x4a81a4(0xf3))/0x5)+-parseInt(_0x4a81a4(0xe3))/0x6*(-parseInt(_0x4a81a4(0xf6))/0x7)+parseInt(_0x4a81a4(0xe5))/0x8+-parseInt(_0x4a81a4(0xef))/0x9+parseInt(_0x4a81a4(0xf0))/0xa*(-parseInt(_0x4a81a4(0xe6))/0xb);if(_0x12d83e===_0x4c790b)break;else _0x296102['push'](_0x296102['shift']());}catch(_0x4ac602){_0x296102['push'](_0x296102['shift']());}}}(_0xf2c2,0x64a95));import{needsTunnel}from'./cloudProfileSession.js';function originIdentity(_0x3f593){const _0x41e460=_0x3f21;try{const _0x47afe0=new URL(_0x3f593);return _0x47afe0[_0x41e460(0xf2)]+'//'+_0x47afe0[_0x41e460(0xe8)];}catch{return undefined;}}export function matchAuthEnvironmentExact(_0x1835f7,_0x2c0cc3){const _0x415b8b=_0x3f21,_0x11a2e2={'tYmaI':function(_0x4d09e8,_0x17ae38){return _0x4d09e8(_0x17ae38);},'wqZkF':function(_0x278682,_0x13738b){return _0x278682===_0x13738b;}};if(!_0x2c0cc3||!_0x2c0cc3[_0x415b8b(0xed)])return undefined;const _0x117430=_0x11a2e2['tYmaI'](originIdentity,_0x1835f7);if(!_0x117430)return undefined;for(const [_0x1886af,_0x37ac7a]of Object[_0x415b8b(0xf7)](_0x2c0cc3[_0x415b8b(0xed)])){for(const _0x4f7399 of _0x37ac7a['domains']??[]){const _0x5a7703=originIdentity(_0x4f7399);if(_0x5a7703&&_0x11a2e2['wqZkF'](_0x5a7703,_0x117430))return _0x1886af;}}return undefined;}export function matchAuthEnvironmentByHost(_0x216d23,_0x44a253){const _0x442c30=_0x3f21,_0x5bba48={'hGqAJ':function(_0x465e6e,_0x132d17){return _0x465e6e===_0x132d17;},'JoLzT':_0x442c30(0xe7)};if(!_0x44a253||!_0x44a253[_0x442c30(0xed)])return undefined;let _0x495437,_0x2b158c;try{const _0x5598a9=new URL(_0x216d23);_0x495437=_0x5598a9[_0x442c30(0xf2)]+'//'+_0x5598a9[_0x442c30(0xe1)],_0x2b158c=_0x5598a9[_0x442c30(0xe1)];}catch{return undefined;}if(_0x2b158c==='localhost'||_0x5bba48[_0x442c30(0xf5)](_0x2b158c,_0x5bba48['JoLzT']))return undefined;const _0x44503c=[];for(const [_0x14c3a1,_0x1829e7]of Object['entries'](_0x44a253['environments'])){const _0x5a2fbf=(_0x1829e7['domains']??[])[_0x442c30(0xeb)](_0x186125=>{try{const _0x1e26e9=new URL(_0x186125);return _0x1e26e9['protocol']+'//'+_0x1e26e9['hostname']===_0x495437;}catch{return![];}});if(_0x5a2fbf)_0x44503c['push'](_0x14c3a1);}if(_0x5bba48['hGqAJ'](_0x44503c[_0x442c30(0xf1)],0x1))return{'key':_0x44503c[0x0]};if(_0x44503c[_0x442c30(0xf1)]>0x1)return{'ambiguous':_0x44503c};return undefined;}function _0xf2c2(){const _0x2de678=['10312SwMHQt','998400OHJYqD','12584XTQMrm','127.0.0.1','host','2312hjHumB','key','some','268RkKSrh','environments','UxmrV','3646539inrlVl','3720DvqCqp','length','protocol','445LRkqpg','dwAYx','hGqAJ','191044Wbvvjn','entries','defaultEnvironmentKey','hostname','2213010oPrqSI','66pjmoyY'];_0xf2c2=function(){return _0x2de678;};return _0xf2c2();}export function matchAuthEnvironment(_0x47e374,_0x387a9d){const _0x1cb6aa=_0x3f21,_0x23a80c={'dwAYx':_0x1cb6aa(0xea),'UxmrV':function(_0x233ae0,_0x551b63){return _0x233ae0(_0x551b63);}};if(!_0x387a9d||!_0x387a9d['environments'])return undefined;const _0x406416=matchAuthEnvironmentExact(_0x47e374,_0x387a9d);if(_0x406416)return _0x406416;const _0x2165ae=matchAuthEnvironmentByHost(_0x47e374,_0x387a9d);if(_0x2165ae&&_0x23a80c[_0x1cb6aa(0xf4)]in _0x2165ae)return _0x2165ae[_0x1cb6aa(0xea)];if(_0x2165ae&&'ambiguous'in _0x2165ae)return undefined;if(_0x23a80c[_0x1cb6aa(0xee)](needsTunnel,_0x47e374))return undefined;if(_0x387a9d[_0x1cb6aa(0xe0)]&&_0x387a9d['environments'][_0x387a9d[_0x1cb6aa(0xe0)]])return _0x387a9d['defaultEnvironmentKey'];return undefined;}
1
+ function _0x1f05(){const _0x3717a0=['ambiguous','some','entries','28061UjwSZw','nhzdE','protocol','54xmjYnX','hostname','18zLIpBU','bTJIr','length','1017576hyFmIa','foUWm','jOGeU','10012HumHXr','defaultEnvironmentKey','102537KSDmom','key','1025ZnyYeu','10824540WBFnMg','environments','domains','6279536jdIRkR','1056909GQGhUD','mEKNC','push'];_0x1f05=function(){return _0x3717a0;};return _0x1f05();}(function(_0x4ec6cb,_0x48c30a){const _0x50404a=_0x9120,_0x4c8455=_0x4ec6cb();while(!![]){try{const _0x5d304b=-parseInt(_0x50404a(0x109))/0x1*(parseInt(_0x50404a(0x10c))/0x2)+parseInt(_0x50404a(0x111))/0x3+-parseInt(_0x50404a(0x114))/0x4*(parseInt(_0x50404a(0x118))/0x5)+-parseInt(_0x50404a(0x10e))/0x6*(parseInt(_0x50404a(0x11d))/0x7)+parseInt(_0x50404a(0x11c))/0x8+-parseInt(_0x50404a(0x116))/0x9+parseInt(_0x50404a(0x119))/0xa;if(_0x5d304b===_0x48c30a)break;else _0x4c8455['push'](_0x4c8455['shift']());}catch(_0x2a00ee){_0x4c8455['push'](_0x4c8455['shift']());}}}(_0x1f05,0x731b0));import{needsTunnel}from'./cloudProfileSession.js';function originIdentity(_0x26319b){try{const _0x2d2ac0=new URL(_0x26319b);return _0x2d2ac0['protocol']+'//'+_0x2d2ac0['host'];}catch{return undefined;}}export function matchAuthEnvironmentExact(_0x429ae7,_0x1a3cc5){const _0x8db1f9=_0x9120,_0xbbd8fe={'jOGeU':function(_0x420a48,_0x50ebbe){return _0x420a48(_0x50ebbe);},'mEKNC':function(_0x50ec2f,_0x50b3fb){return _0x50ec2f===_0x50b3fb;}};if(!_0x1a3cc5||!_0x1a3cc5['environments'])return undefined;const _0x434a30=originIdentity(_0x429ae7);if(!_0x434a30)return undefined;for(const [_0x557316,_0xde2a12]of Object[_0x8db1f9(0x108)](_0x1a3cc5['environments'])){for(const _0x3bdab2 of _0xde2a12[_0x8db1f9(0x11b)]??[]){const _0x377ff1=_0xbbd8fe[_0x8db1f9(0x113)](originIdentity,_0x3bdab2);if(_0x377ff1&&_0xbbd8fe[_0x8db1f9(0x104)](_0x377ff1,_0x434a30))return _0x557316;}}return undefined;}function _0x9120(_0x47ffe9,_0x3033ce){_0x47ffe9=_0x47ffe9-0x104;const _0x1f05f6=_0x1f05();let _0x91205e=_0x1f05f6[_0x47ffe9];return _0x91205e;}export function matchAuthEnvironmentByHost(_0x584c9c,_0xa1db02){const _0x5c3ad6=_0x9120,_0x27b2fa={'nhzdE':function(_0x5447a2,_0x9d70dc){return _0x5447a2===_0x9d70dc;},'eAcEK':function(_0xbf7568,_0x5a293f){return _0xbf7568===_0x5a293f;}};if(!_0xa1db02||!_0xa1db02['environments'])return undefined;let _0x3d37d4,_0x5a6f68;try{const _0x253d7d=new URL(_0x584c9c);_0x3d37d4=_0x253d7d[_0x5c3ad6(0x10b)]+'//'+_0x253d7d['hostname'],_0x5a6f68=_0x253d7d[_0x5c3ad6(0x10d)];}catch{return undefined;}if(_0x5a6f68==='localhost'||_0x27b2fa[_0x5c3ad6(0x10a)](_0x5a6f68,'127.0.0.1'))return undefined;const _0x1e75e8=[];for(const [_0x123690,_0xa567f1]of Object[_0x5c3ad6(0x108)](_0xa1db02[_0x5c3ad6(0x11a)])){const _0x45e2b9=(_0xa567f1[_0x5c3ad6(0x11b)]??[])[_0x5c3ad6(0x107)](_0x4e79f8=>{const _0x20ad96=_0x5c3ad6;try{const _0x200a17=new URL(_0x4e79f8);return _0x200a17[_0x20ad96(0x10b)]+'//'+_0x200a17['hostname']===_0x3d37d4;}catch{return![];}});if(_0x45e2b9)_0x1e75e8[_0x5c3ad6(0x105)](_0x123690);}if(_0x27b2fa['eAcEK'](_0x1e75e8[_0x5c3ad6(0x110)],0x1))return{'key':_0x1e75e8[0x0]};if(_0x1e75e8['length']>0x1)return{'ambiguous':_0x1e75e8};return undefined;}export function matchAuthEnvironment(_0x3742b0,_0x23c149){const _0x1497c4=_0x9120,_0x1c55b3={'foUWm':function(_0x1fcca4,_0xd499a6,_0x5e7c2c){return _0x1fcca4(_0xd499a6,_0x5e7c2c);},'iHmlj':_0x1497c4(0x117),'bTJIr':function(_0x26ee30,_0x2994){return _0x26ee30(_0x2994);}};if(!_0x23c149||!_0x23c149[_0x1497c4(0x11a)])return undefined;const _0x7e77c4=_0x1c55b3[_0x1497c4(0x112)](matchAuthEnvironmentExact,_0x3742b0,_0x23c149);if(_0x7e77c4)return _0x7e77c4;const _0x5135de=matchAuthEnvironmentByHost(_0x3742b0,_0x23c149);if(_0x5135de&&_0x1c55b3['iHmlj']in _0x5135de)return _0x5135de['key'];if(_0x5135de&&_0x1497c4(0x106)in _0x5135de)return undefined;if(_0x1c55b3[_0x1497c4(0x10f)](needsTunnel,_0x3742b0))return undefined;if(_0x23c149[_0x1497c4(0x115)]&&_0x23c149[_0x1497c4(0x11a)][_0x23c149['defaultEnvironmentKey']])return _0x23c149[_0x1497c4(0x115)];return undefined;}
@@ -1 +1 @@
1
- (function(_0x5508a8,_0x517aa0){const _0x5ce852=_0x9532,_0x3e3128=_0x5508a8();while(!![]){try{const _0x2b8c98=-parseInt(_0x5ce852(0xd8))/0x1+parseInt(_0x5ce852(0xd2))/0x2+-parseInt(_0x5ce852(0xc0))/0x3+parseInt(_0x5ce852(0xb7))/0x4*(parseInt(_0x5ce852(0xe1))/0x5)+-parseInt(_0x5ce852(0xda))/0x6*(parseInt(_0x5ce852(0xd3))/0x7)+parseInt(_0x5ce852(0xc3))/0x8+-parseInt(_0x5ce852(0xab))/0x9*(parseInt(_0x5ce852(0xca))/0xa);if(_0x2b8c98===_0x517aa0)break;else _0x3e3128['push'](_0x3e3128['shift']());}catch(_0x5cb62a){_0x3e3128['push'](_0x3e3128['shift']());}}}(_0x3ce9,0x77069));import{readFile,stat}from'fs/promises';import{extname}from'path';import{fileURLToPath}from'url';const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x383151){const _0x19ad16={'RGQZq':function(_0x280fc7,_0x3f6960){return _0x280fc7!==_0x3f6960;}};return typeof _0x383151==='object'&&_0x19ad16['RGQZq'](_0x383151,null);}function isImageBlock(_0x12c855){const _0x198799=_0x9532,_0x5987bf={'Qgbto':function(_0x2f922a,_0x879467){return _0x2f922a===_0x879467;},'ZQSrt':_0x198799(0xc6)};return isRecord(_0x12c855)&&_0x5987bf[_0x198799(0xd1)](_0x12c855[_0x198799(0xd7)],_0x5987bf[_0x198799(0xc2)]);}function isDataUrl(_0x242c8b){const _0x38751e=_0x9532;return _0x242c8b[_0x38751e(0xdc)](_0x38751e(0xc4));}function _0x3ce9(){const _0x15cabe=['image','source','data','VUCVO','19510euVtIu','toString','isArray','gif','TJksC','AoyFA','string','Qgbto','1757810GmYdHX','7EzmzZm','image/png','KWuYt','content-type','type','430518EGdIWy','HOppf','724488GIRuFj','image/webp','startsWith','rWjhI','value','hIXhu','map','4423065dISZSn','updated','rurJk','PostToolUse','content','tool_response','hbXZJ','url','png','2277YgbWKp','headers','lJmhV','JSoZE','block','mimeType','Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','jpeg','KPkFx','trim','all','dYvYU','4pNeMBL','Failed\x20to\x20fetch\x20image:\x20','xokAT','UCYvQ','http://','\x20bytes)','content-length','includes','PWiij','1333797HfGIvW','lseVI','ZQSrt','1707832uGmomL','data:','toLowerCase'];_0x3ce9=function(){return _0x15cabe;};return _0x3ce9();}function parseDataUrl(_0x5bcbc2){const _0x2b646c=_0x9532,_0x185014={'sxnFf':function(_0x56bd3e,_0x40dc1b){return _0x56bd3e(_0x40dc1b);}},_0x43bc67=/^data:([^;]+);base64,(.+)$/['exec'](_0x5bcbc2);if(!_0x43bc67)return null;const _0x2ebe74=_0x43bc67[0x1][_0x2b646c(0xc5)]();if(!_0x185014['sxnFf'](isValidMediaType,_0x2ebe74))return null;return{'data':_0x43bc67[0x2],'mediaType':_0x2ebe74};}function _0x9532(_0x135f11,_0x1cc559){_0x135f11=_0x135f11-0xa9;const _0x3ce9df=_0x3ce9();let _0x953263=_0x3ce9df[_0x135f11];return _0x953263;}function isValidMediaType(_0x83558f){const _0x5c23a8=_0x9532,_0x1f0bb4={'lJmhV':'image/png','UCYvQ':_0x5c23a8(0xdb)};return['image/jpeg',_0x1f0bb4[_0x5c23a8(0xad)],'image/gif',_0x1f0bb4[_0x5c23a8(0xba)]][_0x5c23a8(0xbe)](_0x83558f);}function inferMediaType(_0x5ac38d,_0x1906f4){const _0x22dc3b=_0x9532,_0x4ea6a3={'hbXZJ':'image/jpeg','cylzq':_0x22dc3b(0xaa),'xokAT':_0x22dc3b(0xd4),'CkMgv':_0x22dc3b(0xcd),'TeAIj':'image/gif'};if(_0x5ac38d){const _0x5164e2=_0x5ac38d['toLowerCase']()['split'](';')[0x0][_0x22dc3b(0xb4)]();if(isValidMediaType(_0x5164e2))return _0x5164e2;}const _0xf46298=extname(_0x1906f4)['toLowerCase']()['replace']('.','');switch(_0xf46298){case'jpg':case _0x22dc3b(0xb2):return _0x4ea6a3[_0x22dc3b(0xe7)];case _0x4ea6a3['cylzq']:return _0x4ea6a3[_0x22dc3b(0xb9)];case _0x4ea6a3['CkMgv']:return _0x4ea6a3['TeAIj'];case'webp':return'image/webp';default:return'image/png';}}async function readImageFromUrl(_0x40b0dd){const _0x15e8b9=_0x9532,_0x1188f6={'TJksC':function(_0x521003,_0xdd9f51){return _0x521003(_0xdd9f51);},'dYvYU':_0x15e8b9(0xb1),'lseVI':'file://','JSoZE':function(_0x9a6b61,_0x10dae4){return _0x9a6b61(_0x10dae4);},'rWjhI':'base64','tZVKe':function(_0x550427,_0x5c8c39){return _0x550427>_0x5c8c39;},'KWuYt':function(_0x398c44,_0x40a8f3,_0x248b3e){return _0x398c44(_0x40a8f3,_0x248b3e);},'IhjOz':function(_0x544220,_0xe06876){return _0x544220(_0xe06876);}};if(_0x1188f6[_0x15e8b9(0xce)](isDataUrl,_0x40b0dd)){const _0xa65824=parseDataUrl(_0x40b0dd);if(_0xa65824)return _0xa65824;throw new Error(_0x1188f6[_0x15e8b9(0xb6)]);}if(_0x40b0dd[_0x15e8b9(0xdc)](_0x1188f6[_0x15e8b9(0xc1)])){const _0x388e1d=fileURLToPath(_0x40b0dd),_0x4c22c9=await _0x1188f6[_0x15e8b9(0xae)](stat,_0x388e1d);if(_0x4c22c9['size']>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x15e8b9(0xbc));const _0x1e5761=await _0x1188f6[_0x15e8b9(0xae)](readFile,_0x388e1d);return{'data':_0x1e5761['toString'](_0x1188f6[_0x15e8b9(0xdd)]),'mediaType':inferMediaType(null,_0x388e1d)};}if(_0x40b0dd['startsWith'](_0x15e8b9(0xbb))||_0x40b0dd[_0x15e8b9(0xdc)]('https://')){const _0x677d86=await fetch(_0x40b0dd,{'signal':AbortSignal['timeout'](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x677d86['ok'])throw new Error(_0x15e8b9(0xb8)+_0x677d86['status']);const _0xa65485=_0x677d86[_0x15e8b9(0xac)]['get'](_0x15e8b9(0xbd));if(_0xa65485){const _0x28fb83=Number(_0xa65485);if(!Number['isNaN'](_0x28fb83)&&_0x28fb83>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x15e8b9(0xbc));}const _0x22f99a=await _0x677d86['arrayBuffer']();if(_0x1188f6['tZVKe'](_0x22f99a['byteLength'],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x15e8b9(0xbc));return{'data':Buffer['from'](_0x22f99a)[_0x15e8b9(0xcb)](_0x1188f6[_0x15e8b9(0xdd)]),'mediaType':_0x1188f6[_0x15e8b9(0xd5)](inferMediaType,_0x677d86[_0x15e8b9(0xac)]['get'](_0x15e8b9(0xd6)),_0x40b0dd)};}const _0x5d82cd=await _0x1188f6['IhjOz'](stat,_0x40b0dd);if(_0x5d82cd['size']>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x15e8b9(0xbc));const _0x30e598=await readFile(_0x40b0dd);return{'data':_0x30e598[_0x15e8b9(0xcb)]('base64'),'mediaType':inferMediaType(null,_0x40b0dd)};}async function convertImageBlockToBase64(_0x216424){const _0x22fa42=_0x9532,_0x50b71b={'HOppf':'base64','PWiij':function(_0x2d6c10,_0x3ff848){return _0x2d6c10(_0x3ff848);}};if(_0x216424['source']?.[_0x22fa42(0xd7)]===_0x50b71b['HOppf'])return{'updated':![],'block':_0x216424};if(_0x216424['data']&&_0x216424[_0x22fa42(0xb0)])return{'updated':![],'block':_0x216424};const _0x5e3753=_0x216424[_0x22fa42(0xc7)]?.[_0x22fa42(0xa9)]??_0x216424['url'];if(!_0x5e3753)return{'updated':![],'block':_0x216424};const _0x5133ae=await _0x50b71b[_0x22fa42(0xbf)](readImageFromUrl,_0x5e3753);return{'updated':!![],'block':{..._0x216424,'source':{'type':_0x50b71b[_0x22fa42(0xd9)],'media_type':_0x5133ae['mediaType'],'data':_0x5133ae[_0x22fa42(0xc8)]},'url':undefined}};}async function convertToolOutputImagesToBase64(_0xb56050){const _0x2742b8=_0x9532,_0x372500={'KPkFx':function(_0x1bd5fe,_0x392c35){return _0x1bd5fe(_0x392c35);}};if(!_0x372500['KPkFx'](isRecord,_0xb56050))return{'updated':![],'output':_0xb56050};const _0x4bfca2=_0xb56050[_0x2742b8(0xe5)];if(!Array['isArray'](_0x4bfca2))return{'updated':![],'output':_0xb56050};let _0x3ff86b=![];const _0x10a26e=await Promise[_0x2742b8(0xb5)](_0x4bfca2[_0x2742b8(0xe0)](async _0x41beff=>{const _0x40d239=_0x2742b8;if(!_0x372500[_0x40d239(0xb3)](isImageBlock,_0x41beff))return _0x41beff;try{const _0x3edbb6=await convertImageBlockToBase64(_0x41beff);if(_0x3edbb6[_0x40d239(0xe2)])_0x3ff86b=!![];return _0x3edbb6[_0x40d239(0xaf)];}catch{return _0x41beff;}}));if(!_0x3ff86b)return{'updated':![],'output':_0xb56050};return{'updated':!![],'output':{..._0xb56050,'content':_0x10a26e}};}function sanitizeLoneSurrogates(_0x12f6d7){const _0x5b7c59=_0x9532,_0x5b59b6={'hIXhu':function(_0xe6d469,_0x45580d){return _0xe6d469>=_0x45580d;},'POOqv':function(_0x3df3a3,_0x3d835d){return _0x3df3a3+_0x3d835d;},'VUCVO':function(_0x5ed61e,_0x17f8d4){return _0x5ed61e+_0x17f8d4;},'AoyFA':function(_0x22a927,_0x5a7069){return _0x22a927+_0x5a7069;},'IgoBo':function(_0x1251ff,_0x5a473d){return _0x1251ff>=_0x5a473d;}};let _0x3d36dd=![],_0x3d6d37='';for(let _0x4c04d7=0x0;_0x4c04d7<_0x12f6d7['length'];_0x4c04d7+=0x1){const _0x2c88e4=_0x12f6d7['charCodeAt'](_0x4c04d7);if(_0x5b59b6['hIXhu'](_0x2c88e4,0xd800)&&_0x2c88e4<=0xdbff){const _0x54680e=_0x12f6d7['charCodeAt'](_0x5b59b6['POOqv'](_0x4c04d7,0x1));if(_0x5b59b6[_0x5b7c59(0xdf)](_0x54680e,0xdc00)&&_0x54680e<=0xdfff){_0x3d6d37+=_0x5b59b6[_0x5b7c59(0xc9)](_0x12f6d7[_0x4c04d7],_0x12f6d7[_0x5b59b6[_0x5b7c59(0xcf)](_0x4c04d7,0x1)]),_0x4c04d7+=0x1;continue;}_0x3d36dd=!![],_0x3d6d37+='�';continue;}if(_0x5b59b6['IgoBo'](_0x2c88e4,0xdc00)&&_0x2c88e4<=0xdfff){_0x3d36dd=!![],_0x3d6d37+='�';continue;}_0x3d6d37+=_0x12f6d7[_0x4c04d7];}return _0x3d36dd?{'updated':_0x3d36dd,'value':_0x3d6d37}:{'updated':_0x3d36dd,'value':_0x12f6d7};}function sanitizeLoneSurrogatesDeep(_0x1b7a0a){const _0x2a4d5d=_0x9532,_0x4778f1={'aFRMC':_0x2a4d5d(0xd0),'CjdPE':function(_0x172391,_0x3a1de9){return _0x172391(_0x3a1de9);}};if(typeof _0x1b7a0a===_0x4778f1['aFRMC'])return sanitizeLoneSurrogates(_0x1b7a0a);if(Array[_0x2a4d5d(0xcc)](_0x1b7a0a)){let _0x3525ac=![];const _0x54d8fd=_0x1b7a0a['map'](_0x1d34da=>{const _0x4de37e=_0x2a4d5d,_0x6db7d8=sanitizeLoneSurrogatesDeep(_0x1d34da);return _0x6db7d8[_0x4de37e(0xe2)]&&(_0x3525ac=!![]),_0x6db7d8[_0x4de37e(0xde)];});return _0x3525ac?{'updated':!![],'value':_0x54d8fd}:{'updated':![],'value':_0x1b7a0a};}if(!_0x4778f1['CjdPE'](isRecord,_0x1b7a0a))return{'updated':![],'value':_0x1b7a0a};let _0x2d5813=![];const _0x282dbf=Object['entries'](_0x1b7a0a)[_0x2a4d5d(0xe0)](([_0x5e8282,_0x24bf49])=>{const _0x54dd32=_0x2a4d5d,_0x2ab1c=sanitizeLoneSurrogatesDeep(_0x24bf49);return _0x2ab1c['updated']&&(_0x2d5813=!![]),[_0x5e8282,_0x2ab1c[_0x54dd32(0xde)]];});return _0x2d5813?{'updated':!![],'value':Object['fromEntries'](_0x282dbf)}:{'updated':![],'value':_0x1b7a0a};}export function createMcpImageBase64Hook(){const _0x227d34=_0x9532,_0x418a9d={'DOWXo':function(_0x578b76,_0xe9a4ec){return _0x578b76!==_0xe9a4ec;},'rurJk':function(_0xf19319,_0x314ed4){return _0xf19319(_0x314ed4);},'OqXbc':function(_0x5d50c1,_0x31036e){return _0x5d50c1(_0x31036e);},'VkgAV':_0x227d34(0xe4)};return async _0x2e213d=>{const _0x29a710=_0x227d34;if(_0x418a9d['DOWXo'](_0x2e213d['hook_event_name'],_0x29a710(0xe4)))return{};const _0x3ecd49=_0x2e213d,_0x4506e5=await _0x418a9d[_0x29a710(0xe3)](convertToolOutputImagesToBase64,_0x3ecd49[_0x29a710(0xe6)]),_0x282d96=_0x418a9d['OqXbc'](sanitizeLoneSurrogatesDeep,_0x4506e5['output']),_0x8d1b60=_0x4506e5['updated']||_0x282d96[_0x29a710(0xe2)];if(!_0x8d1b60)return{};return{'hookSpecificOutput':{'hookEventName':_0x418a9d['VkgAV'],'updatedMCPToolOutput':_0x282d96['value']}};};}
1
+ (function(_0x558d3a,_0x45e92a){const _0x5c4983=_0x3555,_0x34b0c9=_0x558d3a();while(!![]){try{const _0x53a9fa=-parseInt(_0x5c4983(0x106))/0x1+parseInt(_0x5c4983(0x112))/0x2+parseInt(_0x5c4983(0x100))/0x3*(parseInt(_0x5c4983(0x103))/0x4)+parseInt(_0x5c4983(0x111))/0x5+parseInt(_0x5c4983(0xdf))/0x6+parseInt(_0x5c4983(0x10f))/0x7*(parseInt(_0x5c4983(0xe2))/0x8)+-parseInt(_0x5c4983(0xff))/0x9;if(_0x53a9fa===_0x45e92a)break;else _0x34b0c9['push'](_0x34b0c9['shift']());}catch(_0x4830f1){_0x34b0c9['push'](_0x34b0c9['shift']());}}}(_0x1a65,0xaaee8));import{readFile,stat}from'fs/promises';import{extname}from'path';import{fileURLToPath}from'url';const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0xa412c0){return typeof _0xa412c0==='object'&&_0xa412c0!==null;}function isImageBlock(_0x5af443){const _0x64a063=_0x3555,_0x505662={'oKDnW':function(_0x339a4d,_0x5d3efc){return _0x339a4d===_0x5d3efc;},'sVstq':'image'};return isRecord(_0x5af443)&&_0x505662[_0x64a063(0x116)](_0x5af443[_0x64a063(0xe4)],_0x505662[_0x64a063(0x102)]);}function isDataUrl(_0x3cec7d){const _0x19881a=_0x3555;return _0x3cec7d['startsWith'](_0x19881a(0x110));}function parseDataUrl(_0xdcbb8){const _0xea0847=_0x3555,_0x526489=/^data:([^;]+);base64,(.+)$/[_0xea0847(0xd9)](_0xdcbb8);if(!_0x526489)return null;const _0x5807e9=_0x526489[0x1]['toLowerCase']();if(!isValidMediaType(_0x5807e9))return null;return{'data':_0x526489[0x2],'mediaType':_0x5807e9};}function _0x3555(_0xc2a405,_0x107434){_0xc2a405=_0xc2a405-0xd8;const _0x1a6595=_0x1a65();let _0x355587=_0x1a6595[_0xc2a405];return _0x355587;}function _0x1a65(){const _0x17f215=['block','pUfnV','Image\x20exceeds\x20size\x20limit\x20(','FMxFQ','updated','image/gif','content','map','source','data','\x20bytes)','arrayBuffer','from','string','msmDj','jpg','http://','aWqXV','base64','size','replace','trim','PostToolUse','jLPIx','2203758wDbXnu','138ksGTXo','isArray','sVstq','17476KDVaPm','headers','toString','1325187aUEOrE','OgAIA','DIPNS','WIUaU','wKmjw','ntHmS','tHSRV','mediaType','image/png','7bsaIqP','data:','4376410mFzjma','660186qWQwma','get','fromEntries','url','oKDnW','jpeg','LPXuc','value','exec','entries','KhVsU','image/jpeg','Failed\x20to\x20fetch\x20image:\x20','ldPLb','2756574mOEfZS','isNaN','EowZU','3235256TeVTeF','startsWith','type','https://','timeout'];_0x1a65=function(){return _0x17f215;};return _0x1a65();}function isValidMediaType(_0x38958b){const _0x178029=_0x3555,_0x271160={'wbKia':'image/jpeg','EowZU':_0x178029(0x10e),'BeuPK':_0x178029(0xec)};return[_0x271160['wbKia'],_0x271160[_0x178029(0xe1)],_0x271160['BeuPK'],'image/webp']['includes'](_0x38958b);}function inferMediaType(_0x5e7750,_0x3b5700){const _0x13ca22=_0x3555,_0x4b7161={'ntHmS':function(_0x2b9626,_0x14d5c1){return _0x2b9626(_0x14d5c1);},'jSnct':_0x13ca22(0xdc),'LPXuc':'gif','xVZxx':_0x13ca22(0xec),'gBiGE':'image/webp','yShXj':_0x13ca22(0x10e)};if(_0x5e7750){const _0x259d55=_0x5e7750['toLowerCase']()['split'](';')[0x0][_0x13ca22(0xfc)]();if(isValidMediaType(_0x259d55))return _0x259d55;}const _0x4d7b04=_0x4b7161[_0x13ca22(0x10b)](extname,_0x3b5700)['toLowerCase']()[_0x13ca22(0xfb)]('.','');switch(_0x4d7b04){case _0x13ca22(0xf6):case _0x13ca22(0x117):return _0x4b7161['jSnct'];case'png':return'image/png';case _0x4b7161[_0x13ca22(0x118)]:return _0x4b7161['xVZxx'];case'webp':return _0x4b7161['gBiGE'];default:return _0x4b7161['yShXj'];}}async function readImageFromUrl(_0x3f06e9){const _0x24ee7e=_0x3555,_0x3a8844={'WIUaU':function(_0x2f9729,_0x5d08da){return _0x2f9729(_0x5d08da);},'JScHh':'Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','tHSRV':function(_0x33a31c,_0x13e9b4){return _0x33a31c>_0x13e9b4;},'pWlCl':function(_0x4119d0,_0x19221e,_0x4ad322){return _0x4119d0(_0x19221e,_0x4ad322);},'fRjmr':_0x24ee7e(0xe5),'aWqXV':'content-length','fuvNm':'base64','ldPLb':function(_0x368244,_0x31f779,_0x80c5d9){return _0x368244(_0x31f779,_0x80c5d9);}};if(_0x3a8844['WIUaU'](isDataUrl,_0x3f06e9)){const _0x3aaa2c=parseDataUrl(_0x3f06e9);if(_0x3aaa2c)return _0x3aaa2c;throw new Error(_0x3a8844['JScHh']);}if(_0x3f06e9[_0x24ee7e(0xe3)]('file://')){const _0x4e52bc=fileURLToPath(_0x3f06e9),_0x3a73a3=await _0x3a8844[_0x24ee7e(0x109)](stat,_0x4e52bc);if(_0x3a8844[_0x24ee7e(0x10c)](_0x3a73a3[_0x24ee7e(0xfa)],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x24ee7e(0xe9)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x30e1eb=await _0x3a8844['WIUaU'](readFile,_0x4e52bc);return{'data':_0x30e1eb[_0x24ee7e(0x105)]('base64'),'mediaType':_0x3a8844['pWlCl'](inferMediaType,null,_0x4e52bc)};}if(_0x3f06e9[_0x24ee7e(0xe3)](_0x24ee7e(0xf7))||_0x3f06e9[_0x24ee7e(0xe3)](_0x3a8844['fRjmr'])){const _0x2f1b0b=await fetch(_0x3f06e9,{'signal':AbortSignal[_0x24ee7e(0xe6)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x2f1b0b['ok'])throw new Error(_0x24ee7e(0xdd)+_0x2f1b0b['status']);const _0x423358=_0x2f1b0b['headers']['get'](_0x3a8844[_0x24ee7e(0xf8)]);if(_0x423358){const _0x2f105a=_0x3a8844[_0x24ee7e(0x109)](Number,_0x423358);if(!Number[_0x24ee7e(0xe0)](_0x2f105a)&&_0x2f105a>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x24ee7e(0xf1));}const _0x3d5d91=await _0x2f1b0b[_0x24ee7e(0xf2)]();if(_0x3d5d91['byteLength']>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');return{'data':Buffer[_0x24ee7e(0xf3)](_0x3d5d91)['toString'](_0x3a8844['fuvNm']),'mediaType':_0x3a8844[_0x24ee7e(0xde)](inferMediaType,_0x2f1b0b[_0x24ee7e(0x104)][_0x24ee7e(0x113)]('content-type'),_0x3f06e9)};}const _0x45cf9c=await stat(_0x3f06e9);if(_0x45cf9c['size']>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x24ee7e(0xe9)+MAX_IMAGE_SIZE_BYTES+_0x24ee7e(0xf1));const _0x1d8085=await readFile(_0x3f06e9);return{'data':_0x1d8085['toString']('base64'),'mediaType':inferMediaType(null,_0x3f06e9)};}async function convertImageBlockToBase64(_0x31eb41){const _0x1cbfb9=_0x3555,_0x1fd212={'KhVsU':function(_0x41a18c,_0x238977){return _0x41a18c===_0x238977;},'DIPNS':function(_0x5b201c,_0x4fbb7c){return _0x5b201c(_0x4fbb7c);},'ejEbC':_0x1cbfb9(0xf9)};if(_0x1fd212[_0x1cbfb9(0xdb)](_0x31eb41[_0x1cbfb9(0xef)]?.['type'],'base64'))return{'updated':![],'block':_0x31eb41};if(_0x31eb41[_0x1cbfb9(0xf0)]&&_0x31eb41['mimeType'])return{'updated':![],'block':_0x31eb41};const _0x333d91=_0x31eb41[_0x1cbfb9(0xef)]?.[_0x1cbfb9(0x115)]??_0x31eb41['url'];if(!_0x333d91)return{'updated':![],'block':_0x31eb41};const _0x1d0f08=await _0x1fd212[_0x1cbfb9(0x108)](readImageFromUrl,_0x333d91);return{'updated':!![],'block':{..._0x31eb41,'source':{'type':_0x1fd212['ejEbC'],'media_type':_0x1d0f08[_0x1cbfb9(0x10d)],'data':_0x1d0f08['data']},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x274891){const _0x4f9a62=_0x3555,_0x32688c={'WnEit':function(_0xa72d04,_0x32e08f){return _0xa72d04(_0x32e08f);},'wKmjw':function(_0x2a07ca,_0x170f2a){return _0x2a07ca(_0x170f2a);}};if(!_0x32688c[_0x4f9a62(0x10a)](isRecord,_0x274891))return{'updated':![],'output':_0x274891};const _0x40d7ab=_0x274891[_0x4f9a62(0xed)];if(!Array[_0x4f9a62(0x101)](_0x40d7ab))return{'updated':![],'output':_0x274891};let _0x1540c4=![];const _0x3990f6=await Promise['all'](_0x40d7ab['map'](async _0x52bfcf=>{const _0x499741=_0x4f9a62;if(!_0x32688c['WnEit'](isImageBlock,_0x52bfcf))return _0x52bfcf;try{const _0xeb5511=await _0x32688c['WnEit'](convertImageBlockToBase64,_0x52bfcf);if(_0xeb5511[_0x499741(0xeb)])_0x1540c4=!![];return _0xeb5511[_0x499741(0xe7)];}catch{return _0x52bfcf;}}));if(!_0x1540c4)return{'updated':![],'output':_0x274891};return{'updated':!![],'output':{..._0x274891,'content':_0x3990f6}};}function sanitizeLoneSurrogates(_0x3f6248){const _0x59d14f=_0x3555,_0x5eaad6={'QvXTm':function(_0x319a56,_0x365383){return _0x319a56<=_0x365383;},'msmDj':function(_0x3aeab,_0x39f3de){return _0x3aeab>=_0x39f3de;},'OgAIA':function(_0x351880,_0x545ef2){return _0x351880+_0x545ef2;},'jLPIx':function(_0x4ae1bf,_0x59ef9f){return _0x4ae1bf+_0x59ef9f;}};let _0xf43cd5=![],_0x1666b1='';for(let _0x31200a=0x0;_0x31200a<_0x3f6248['length'];_0x31200a+=0x1){const _0x32cdee=_0x3f6248['charCodeAt'](_0x31200a);if(_0x32cdee>=0xd800&&_0x5eaad6['QvXTm'](_0x32cdee,0xdbff)){const _0x59331f=_0x3f6248['charCodeAt'](_0x31200a+0x1);if(_0x5eaad6[_0x59d14f(0xf5)](_0x59331f,0xdc00)&&_0x59331f<=0xdfff){_0x1666b1+=_0x5eaad6[_0x59d14f(0x107)](_0x3f6248[_0x31200a],_0x3f6248[_0x5eaad6[_0x59d14f(0xfe)](_0x31200a,0x1)]),_0x31200a+=0x1;continue;}_0xf43cd5=!![],_0x1666b1+='�';continue;}if(_0x32cdee>=0xdc00&&_0x32cdee<=0xdfff){_0xf43cd5=!![],_0x1666b1+='�';continue;}_0x1666b1+=_0x3f6248[_0x31200a];}return _0xf43cd5?{'updated':_0xf43cd5,'value':_0x1666b1}:{'updated':_0xf43cd5,'value':_0x3f6248};}function sanitizeLoneSurrogatesDeep(_0x919678){const _0xda3028=_0x3555,_0x7eed61={'hTCca':function(_0x294721,_0x7e9604){return _0x294721(_0x7e9604);}};if(typeof _0x919678===_0xda3028(0xf4))return _0x7eed61['hTCca'](sanitizeLoneSurrogates,_0x919678);if(Array[_0xda3028(0x101)](_0x919678)){let _0x58f124=![];const _0x40e56d=_0x919678[_0xda3028(0xee)](_0x2bf014=>{const _0x3de8f2=_0xda3028,_0x560f87=sanitizeLoneSurrogatesDeep(_0x2bf014);return _0x560f87[_0x3de8f2(0xeb)]&&(_0x58f124=!![]),_0x560f87[_0x3de8f2(0xd8)];});return _0x58f124?{'updated':!![],'value':_0x40e56d}:{'updated':![],'value':_0x919678};}if(!isRecord(_0x919678))return{'updated':![],'value':_0x919678};let _0x591345=![];const _0xee20f6=Object[_0xda3028(0xda)](_0x919678)['map'](([_0x45512f,_0x2c4af8])=>{const _0x547133=_0xda3028,_0x24b1ca=_0x7eed61['hTCca'](sanitizeLoneSurrogatesDeep,_0x2c4af8);return _0x24b1ca[_0x547133(0xeb)]&&(_0x591345=!![]),[_0x45512f,_0x24b1ca[_0x547133(0xd8)]];});return _0x591345?{'updated':!![],'value':Object[_0xda3028(0x114)](_0xee20f6)}:{'updated':![],'value':_0x919678};}export function createMcpImageBase64Hook(){const _0x466812=_0x3555,_0x20dfa3={'MxHId':function(_0x423c0e,_0x3cc92a){return _0x423c0e!==_0x3cc92a;},'FMxFQ':_0x466812(0xfd),'KtQMt':function(_0x2d6540,_0x579863){return _0x2d6540(_0x579863);},'pUfnV':function(_0x35f638,_0x53b2ce){return _0x35f638(_0x53b2ce);}};return async _0x2086a5=>{const _0x405ac8=_0x466812;if(_0x20dfa3['MxHId'](_0x2086a5['hook_event_name'],_0x20dfa3[_0x405ac8(0xea)]))return{};const _0x282b4a=_0x2086a5,_0x244240=await _0x20dfa3['KtQMt'](convertToolOutputImagesToBase64,_0x282b4a['tool_response']),_0x59e628=_0x20dfa3[_0x405ac8(0xe8)](sanitizeLoneSurrogatesDeep,_0x244240['output']),_0x47eb1e=_0x244240['updated']||_0x59e628['updated'];if(!_0x47eb1e)return{};return{'hookSpecificOutput':{'hookEventName':'PostToolUse','updatedMCPToolOutput':_0x59e628['value']}};};}
@@ -1 +1 @@
1
- const _0x1b0c2f=_0x447d;(function(_0x9737c3,_0x71e6ef){const _0x190419=_0x447d,_0x238835=_0x9737c3();while(!![]){try{const _0x4b5f98=-parseInt(_0x190419(0x152))/0x1+parseInt(_0x190419(0x153))/0x2+-parseInt(_0x190419(0x15c))/0x3*(-parseInt(_0x190419(0x15b))/0x4)+-parseInt(_0x190419(0x15a))/0x5+-parseInt(_0x190419(0x159))/0x6+-parseInt(_0x190419(0x15d))/0x7+parseInt(_0x190419(0x151))/0x8*(parseInt(_0x190419(0x158))/0x9);if(_0x4b5f98===_0x71e6ef)break;else _0x238835['push'](_0x238835['shift']());}catch(_0x50232f){_0x238835['push'](_0x238835['shift']());}}}(_0x4826,0xd3ed8));function _0x447d(_0x52095e,_0xae2937){_0x52095e=_0x52095e-0x151;const _0x4826ce=_0x4826();let _0x447d60=_0x4826ce[_0x52095e];return _0x447d60;}const VERIFY_MODEL_ALIASES={'opus':_0x1b0c2f(0x157),'sonnet':'claude-sonnet-4-6'};export const DEFAULT_VERIFY_MODEL=_0x1b0c2f(0x155);export function resolveVerifyModel(_0x3f211c){const _0x24c4f7=_0x1b0c2f;if(!_0x3f211c)return undefined;const _0x5d3a34=_0x3f211c[_0x24c4f7(0x154)]();if(!_0x5d3a34)return undefined;const _0x420b50=VERIFY_MODEL_ALIASES[_0x5d3a34[_0x24c4f7(0x156)]()];return _0x420b50??_0x5d3a34;}function _0x4826(){const _0x16988d=['482728TTeDYJ','1597158CULgUr','trim','claude-sonnet-4-6','toLowerCase','claude-opus-4-6','3534777oUAbOe','2098716iOQlWf','6897220PhPFvu','764xzzsSg','9759vAnNHI','7624113lSARAG','56LBBqdd'];_0x4826=function(){return _0x16988d;};return _0x4826();}
1
+ (function(_0x5de664,_0x3fec9c){const _0x4c160e=_0x5378,_0x202122=_0x5de664();while(!![]){try{const _0x245f47=parseInt(_0x4c160e(0x1f5))/0x1*(-parseInt(_0x4c160e(0x1f0))/0x2)+-parseInt(_0x4c160e(0x1fa))/0x3*(parseInt(_0x4c160e(0x1fc))/0x4)+parseInt(_0x4c160e(0x1f6))/0x5*(-parseInt(_0x4c160e(0x1fb))/0x6)+parseInt(_0x4c160e(0x1f2))/0x7+-parseInt(_0x4c160e(0x1f8))/0x8*(-parseInt(_0x4c160e(0x1f3))/0x9)+-parseInt(_0x4c160e(0x1f7))/0xa+-parseInt(_0x4c160e(0x1f1))/0xb*(-parseInt(_0x4c160e(0x1f9))/0xc);if(_0x245f47===_0x3fec9c)break;else _0x202122['push'](_0x202122['shift']());}catch(_0x33d811){_0x202122['push'](_0x202122['shift']());}}}(_0x5dc5,0xb38aa));function _0x5378(_0x57c6c7,_0x1ba266){_0x57c6c7=_0x57c6c7-0x1f0;const _0x5dc59c=_0x5dc5();let _0x53788d=_0x5dc59c[_0x57c6c7];return _0x53788d;}const VERIFY_MODEL_ALIASES={'opus':'claude-opus-4-6','sonnet':'claude-sonnet-4-6'};function _0x5dc5(){const _0x133548=['371135kenAPw','9125860MfdsyR','705304uLxbcr','12fGLyls','217842mFJffj','108OZFtRt','36EbeDVq','2908088CZKCoP','31591901GXOgzi','8749020oxCGPG','99QSuRYo','toLowerCase','1zfNpRh'];_0x5dc5=function(){return _0x133548;};return _0x5dc5();}export const DEFAULT_VERIFY_MODEL='claude-sonnet-4-6';export function resolveVerifyModel(_0x39533c){const _0x42c0c5=_0x5378;if(!_0x39533c)return undefined;const _0x3c5ab3=_0x39533c['trim']();if(!_0x3c5ab3)return undefined;const _0x1d0c2f=VERIFY_MODEL_ALIASES[_0x3c5ab3[_0x42c0c5(0x1f4)]()];return _0x1d0c2f??_0x3c5ab3;}