@ranger-testing/ranger-cli 3.1.6-alpha.4de822b-51 → 3.1.6-alpha.aca5f9c-53
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.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/deleteProfile.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/mcpBootstrap.js +1 -1
- package/build/commands/migrateProfile.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/cloudProfile.js +1 -1
- package/build/commands/utils/cloudProfileSession.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/legacyWarning.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/novaActCli.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/organizationEnvApi.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/projectsConfig.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/rangerwrightCli.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/scenarioOriginCheck.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/tunnelClient.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyFeatureNovaCli.js +1 -1
- package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
- package/build/skills/ranger/SKILL.md +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2da988=_0x2731;(function(_0x32d8e1,_0x31f910){const _0x518d73=_0x2731,_0x4fd285=_0x32d8e1();while(!![]){try{const _0x293810=parseInt(_0x518d73(0xc9))/0x1+-parseInt(_0x518d73(0xa5))/0x2*(parseInt(_0x518d73(0xe7))/0x3)+parseInt(_0x518d73(0xaf))/0x4+-parseInt(_0x518d73(0xc1))/0x5*(-parseInt(_0x518d73(0xe2))/0x6)+-parseInt(_0x518d73(0xad))/0x7+parseInt(_0x518d73(0xbd))/0x8*(-parseInt(_0x518d73(0xd6))/0x9)+parseInt(_0x518d73(0xac))/0xa*(-parseInt(_0x518d73(0xec))/0xb);if(_0x293810===_0x31f910)break;else _0x4fd285['push'](_0x4fd285['shift']());}catch(_0x1658d9){_0x4fd285['push'](_0x4fd285['shift']());}}}(_0x5781,0x3bfb1));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(_0x35b084,_0x2966e5){const _0x19e927=_0x2731,_0x27c7c6={'GYiWc':function(_0x3fb9be,_0x50c867){return _0x3fb9be>=_0x50c867;},'hhfEv':function(_0xf3a27b,_0x22250e){return _0xf3a27b<=_0x22250e;},'ZthGX':function(_0x39f1c9,_0x4234be){return _0x39f1c9&_0x4234be;},'tQeGn':function(_0xcf9d45,_0x4620d4){return _0xcf9d45+_0x4620d4;},'DzweO':function(_0x3c9925,_0x1384da){return _0x3c9925-_0x1384da;},'TbsUw':function(_0x4bdaf5,_0x25ad53){return _0x4bdaf5+_0x25ad53;}};if(_0x27c7c6['GYiWc'](_0x2966e5,_0x35b084[_0x19e927(0xa0)]))return[0x0,0x0];const _0x470754=_0x35b084[_0x2966e5];let _0x560566=0x1,_0x58058a=0x80;while(_0x27c7c6['hhfEv'](_0x560566,0x8)&&!_0x27c7c6['ZthGX'](_0x470754,_0x58058a)){_0x560566++,_0x58058a>>=0x1;}if(_0x27c7c6[_0x19e927(0xe8)](_0x2966e5,_0x560566)>_0x35b084[_0x19e927(0xa0)])return[0x0,0x0];let _0x143573=_0x470754&_0x27c7c6[_0x19e927(0xdd)](_0x58058a,0x1);for(let _0x2ab633=0x1;_0x2ab633<_0x560566;_0x2ab633++){_0x143573=_0x27c7c6[_0x19e927(0xe1)](_0x143573*0x100,_0x35b084[_0x27c7c6['tQeGn'](_0x2966e5,_0x2ab633)]);}return[_0x143573,_0x560566];}function readId(_0x1c7cde,_0x4c20c6){const _0x31c8e2=_0x2731,_0x21b276={'dcThX':function(_0x206629,_0x4439f2){return _0x206629>=_0x4439f2;},'dkdtM':function(_0x173465,_0x335438){return _0x173465>=_0x335438;},'bhqqL':function(_0x50a447,_0x397a4e){return _0x50a447>=_0x397a4e;},'iazOU':function(_0x527fb7,_0x57c09d){return _0x527fb7>=_0x57c09d;},'ZLSyg':function(_0x28315a,_0x275a23){return _0x28315a+_0x275a23;},'IBstL':function(_0x626c3d,_0x55fb6f){return _0x626c3d<_0x55fb6f;},'NQWxM':function(_0x4d3131,_0x4cd9af){return _0x4d3131+_0x4cd9af;}};if(_0x21b276['dcThX'](_0x4c20c6,_0x1c7cde[_0x31c8e2(0xa0)]))return[0x0,0x0];const _0x2a546b=_0x1c7cde[_0x4c20c6];let _0x5c1a23;if(_0x21b276[_0x31c8e2(0xba)](_0x2a546b,0x80))_0x5c1a23=0x1;else{if(_0x21b276[_0x31c8e2(0xe0)](_0x2a546b,0x40))_0x5c1a23=0x2;else{if(_0x2a546b>=0x20)_0x5c1a23=0x3;else{if(_0x21b276[_0x31c8e2(0xd8)](_0x2a546b,0x10))_0x5c1a23=0x4;else return[_0x2a546b,0x1];}}}if(_0x21b276[_0x31c8e2(0xcd)](_0x4c20c6,_0x5c1a23)>_0x1c7cde[_0x31c8e2(0xa0)])return[0x0,0x0];let _0x373453=0x0;for(let _0xed73c3=0x0;_0x21b276['IBstL'](_0xed73c3,_0x5c1a23);_0xed73c3++){_0x373453=_0x21b276['NQWxM'](_0x373453*0x100,_0x1c7cde[_0x4c20c6+_0xed73c3]);}return[_0x373453,_0x5c1a23];}function readUint(_0x494b4d,_0x1c3250,_0x65fcaa){const _0x4d1828=_0x2731,_0x4e3382={'OVZoy':function(_0x10689c,_0x5b8a89){return _0x10689c<_0x5b8a89;},'xqmHW':function(_0x438b35,_0x395d32){return _0x438b35+_0x395d32;},'meLoy':function(_0x4a7855,_0x493ee8){return _0x4a7855*_0x493ee8;}};let _0x1cfb9d=0x0;for(let _0x2c6940=0x0;_0x4e3382[_0x4d1828(0xeb)](_0x2c6940,_0x65fcaa);_0x2c6940++){_0x1cfb9d=_0x4e3382['xqmHW'](_0x4e3382[_0x4d1828(0xd0)](_0x1cfb9d,0x100),_0x494b4d[_0x1c3250+_0x2c6940]);}return _0x1cfb9d;}function isUnknownSize(_0x372197,_0x3361f1){const _0x1039fc=_0x2731,_0x44e5bb={'ENsKi':function(_0x2c3b66,_0x5d0aed){return _0x2c3b66-_0x5d0aed;}};return _0x372197===_0x44e5bb[_0x1039fc(0xc8)](Math[_0x1039fc(0xed)](0x2,0x7*_0x3361f1),0x1);}function writeId(_0x2c324a){const _0x1959d3=_0x2731,_0x147e94={'fJkSX':function(_0x1b5107,_0x7fb021){return _0x1b5107<=_0x7fb021;},'UilBt':function(_0x3e16cc,_0x23e788){return _0x3e16cc<=_0x23e788;},'wokak':function(_0x454781,_0x1d7bea){return _0x454781&_0x1d7bea;},'YYNgI':function(_0x120b29,_0x27e0bc){return _0x120b29>>_0x27e0bc;},'qmmzp':function(_0x412921,_0x23b8ff){return _0x412921>>_0x23b8ff;},'wXjyk':function(_0x83f7f9,_0x5d3fb8){return _0x83f7f9&_0x5d3fb8;},'qLeON':function(_0x1f4fe8,_0x20175b){return _0x1f4fe8>>_0x20175b;}};if(_0x147e94[_0x1959d3(0xda)](_0x2c324a,0xff))return Buffer['from']([_0x2c324a]);if(_0x147e94[_0x1959d3(0xd9)](_0x2c324a,0xffff))return Buffer[_0x1959d3(0xb3)]([_0x2c324a>>0x8&0xff,_0x147e94[_0x1959d3(0xa2)](_0x2c324a,0xff)]);if(_0x2c324a<=0xffffff)return Buffer['from']([_0x2c324a>>0x10&0xff,_0x147e94['wokak'](_0x147e94['YYNgI'](_0x2c324a,0x8),0xff),_0x147e94['wokak'](_0x2c324a,0xff)]);return Buffer[_0x1959d3(0xb3)]([_0x147e94[_0x1959d3(0xef)](_0x2c324a,0x18)&0xff,_0x2c324a>>0x10&0xff,_0x147e94[_0x1959d3(0xb5)](_0x147e94['qLeON'](_0x2c324a,0x8),0xff),_0x2c324a&0xff]);}function _0x2731(_0x18b459,_0x24be5a){_0x18b459=_0x18b459-0xa0;const _0x578109=_0x5781();let _0x2731b8=_0x578109[_0x18b459];return _0x2731b8;}function writeVint(_0x5e3c60,_0x403b75){const _0xbad81f=_0x2731,_0x3d3eae={'MxrOE':function(_0x32e90,_0x5be3dc){return _0x32e90<_0x5be3dc;},'VDfrV':function(_0xc1fa77,_0xa4c680){return _0xc1fa77*_0xa4c680;},'feDgL':function(_0x2b951f,_0x542420){return _0x2b951f>=_0x542420;}};let _0x3d2d9d=_0x403b75||0x1;while(_0x3d3eae['MxrOE'](Math[_0xbad81f(0xed)](0x2,_0x3d3eae[_0xbad81f(0xb8)](0x7,_0x3d2d9d))-0x2,_0x5e3c60))_0x3d2d9d++;const _0x39036a=Buffer['alloc'](_0x3d2d9d);for(let _0x2b7eaf=_0x3d2d9d-0x1;_0x3d3eae['feDgL'](_0x2b7eaf,0x0);_0x2b7eaf--){_0x39036a[_0x2b7eaf]=_0x5e3c60&0xff,_0x5e3c60=Math[_0xbad81f(0xab)](_0x5e3c60/0x100);}return _0x39036a[0x0]|=0x1<<0x8-_0x3d2d9d,_0x39036a;}function writeFloat64(_0x2911bd){const _0x3a3c62=Buffer['alloc'](0x8);return _0x3a3c62['writeDoubleBE'](_0x2911bd,0x0),_0x3a3c62;}function writeVoid(_0x474be0){const _0x26101c=_0x2731,_0x64adee={'tOdVV':function(_0x5c6319,_0x2c9d7f){return _0x5c6319<=_0x2c9d7f;},'GbcCY':function(_0x19fd9c,_0x44883f){return _0x19fd9c-_0x44883f;},'CPFOg':function(_0x1e6e3e,_0x17765c){return _0x1e6e3e-_0x17765c;}};for(let _0x2e3e0b=0x1;_0x64adee[_0x26101c(0xc5)](_0x2e3e0b,0x8);_0x2e3e0b++){const _0x348520=_0x64adee[_0x26101c(0xa6)](_0x64adee[_0x26101c(0xc0)](_0x474be0,0x1),_0x2e3e0b);if(_0x348520>=0x0&&_0x64adee[_0x26101c(0xc5)](_0x348520,Math[_0x26101c(0xed)](0x2,0x7*_0x2e3e0b)-0x2))return Buffer[_0x26101c(0xd1)]([Buffer['from']([ID_VOID]),writeVint(_0x348520,_0x2e3e0b),Buffer['alloc'](_0x348520)]);}return Buffer[_0x26101c(0xb9)](0x0);}function findElement(_0x3f6a79,_0x62c6d6,_0x53c971,_0x4898de){const _0x3ece12=_0x2731,_0x2f5604={'dELpC':function(_0x41b560,_0x4683b8){return _0x41b560<_0x4683b8;},'lbCsp':function(_0x1e8500,_0x5d9787,_0x373d84){return _0x1e8500(_0x5d9787,_0x373d84);},'agRtS':function(_0x49d4a4,_0x45847d){return _0x49d4a4+_0x45847d;},'zNVep':function(_0x18b7f9,_0x1c83fb){return _0x18b7f9+_0x1c83fb;}};let _0x425f76=_0x62c6d6;while(_0x2f5604[_0x3ece12(0xde)](_0x425f76,_0x53c971)){const [_0x36add7,_0x17a7fc]=_0x2f5604['lbCsp'](readId,_0x3f6a79,_0x425f76),[_0x3545af,_0x37841f]=readVint(_0x3f6a79,_0x2f5604[_0x3ece12(0xb2)](_0x425f76,_0x17a7fc));if(_0x36add7===_0x4898de)return{'offset':_0x425f76,'idLen':_0x17a7fc,'sizeLen':_0x37841f,'dataSize':_0x3545af,'dataOffset':_0x425f76+_0x17a7fc+_0x37841f};if(isUnknownSize(_0x3545af,_0x37841f))break;_0x425f76+=_0x2f5604['zNVep'](_0x2f5604['zNVep'](_0x17a7fc,_0x37841f),_0x3545af);}return null;}function computeDurationMs(_0x548ed6,_0x725113){const _0x11c7c4=_0x2731,_0x17ed5d={'mYzCm':function(_0x1b47e2,_0x23b8c1){return _0x1b47e2<_0x23b8c1;},'vkPcd':function(_0x30a8ac,_0x580436,_0x459934){return _0x30a8ac(_0x580436,_0x459934);},'MVjzZ':function(_0x37d5d7,_0x5a735a){return _0x37d5d7+_0x5a735a;},'cVSLo':function(_0x286ef0,_0x15d975){return _0x286ef0+_0x15d975;},'jnISe':function(_0x1626db,_0x10488e,_0x442d0f){return _0x1626db(_0x10488e,_0x442d0f);},'BWCHx':function(_0x25004c,_0x252a7a){return _0x25004c-_0x252a7a;},'OkVMX':function(_0x2b9de7,_0x17cb28){return _0x2b9de7===_0x17cb28;},'LuimS':function(_0x350de2,_0x4ddd91,_0x1a8700){return _0x350de2(_0x4ddd91,_0x1a8700);},'tVJbg':function(_0x52fd2b,_0x483279,_0x11736c,_0x43e768){return _0x52fd2b(_0x483279,_0x11736c,_0x43e768);},'SqvHU':function(_0x1227a6,_0x1458e5){return _0x1227a6===_0x1458e5;},'fwZaO':function(_0x31afb9,_0x2e1841){return _0x31afb9>=_0x2e1841;},'RoebA':function(_0x526eed,_0x16fefb){return _0x526eed/_0x16fefb;},'Tilow':function(_0x3d0fb3,_0x12e699){return _0x3d0fb3>_0x12e699;},'UXyga':function(_0x3b8869,_0x4f852c){return _0x3b8869+_0x4f852c;}};let _0x1dd5a5=0x0;const _0x51aab3=Buffer[_0x11c7c4(0xb3)]([0x1f,0x43,0xb6,0x75]);let _0x317e67=_0x548ed6[_0x11c7c4(0xbc)](_0x51aab3);if(_0x317e67===-0x1)return 0x0;while(_0x17ed5d['mYzCm'](_0x317e67,_0x548ed6[_0x11c7c4(0xa0)])){const [_0x3728c9,_0x3b98e2]=readId(_0x548ed6,_0x317e67);if(_0x3728c9!==ID_CLUSTER)break;const [_0x1bda21,_0x517f4f]=_0x17ed5d['vkPcd'](readVint,_0x548ed6,_0x17ed5d[_0x11c7c4(0xa8)](_0x317e67,_0x3b98e2)),_0x3715bb=_0x17ed5d['cVSLo'](_0x317e67,_0x3b98e2)+_0x517f4f,_0x1891dc=_0x17ed5d[_0x11c7c4(0xcf)](isUnknownSize,_0x1bda21,_0x517f4f);let _0x339d64;if(_0x1891dc){let _0x62915c=_0x3715bb;while(_0x62915c<_0x17ed5d[_0x11c7c4(0xdc)](_0x548ed6['length'],0x4)){const [_0x54ab0c,_0x424417]=readId(_0x548ed6,_0x62915c);if(_0x17ed5d[_0x11c7c4(0xa3)](_0x54ab0c,ID_CLUSTER)){_0x339d64=_0x62915c;break;}const [_0x2d5df3,_0xb459fa]=_0x17ed5d[_0x11c7c4(0xbf)](readVint,_0x548ed6,_0x62915c+_0x424417);if(isUnknownSize(_0x2d5df3,_0xb459fa)){_0x339d64=_0x548ed6['length'];break;}_0x62915c+=_0x17ed5d[_0x11c7c4(0xa8)](_0x17ed5d['MVjzZ'](_0x424417,_0xb459fa),_0x2d5df3);}_0x339d64??=_0x548ed6[_0x11c7c4(0xa0)];}else _0x339d64=_0x3715bb+_0x1bda21;let _0x26d622=0x0,_0x106d7e=_0x3715bb;while(_0x106d7e<_0x339d64){const [_0x4c8a1a,_0x440b5c]=readId(_0x548ed6,_0x106d7e),[_0x50d352,_0x2a419c]=readVint(_0x548ed6,_0x106d7e+_0x440b5c);if(_0x4c8a1a===ID_TIMESTAMP)_0x26d622=_0x17ed5d[_0x11c7c4(0xca)](readUint,_0x548ed6,_0x17ed5d['cVSLo'](_0x106d7e,_0x440b5c)+_0x2a419c,_0x50d352);else{if(_0x17ed5d[_0x11c7c4(0xce)](_0x4c8a1a,ID_SIMPLE_BLOCK)&&_0x17ed5d['fwZaO'](_0x50d352,0x4)){const _0x38f2b2=_0x17ed5d[_0x11c7c4(0xdf)](_0x106d7e,_0x440b5c)+_0x2a419c,[,_0x5ad280]=readVint(_0x548ed6,_0x38f2b2),_0x1e0253=_0x548ed6['readInt16BE'](_0x38f2b2+_0x5ad280),_0x263449=_0x17ed5d['RoebA']((_0x26d622+_0x1e0253)*_0x725113,0xf4240);_0x17ed5d[_0x11c7c4(0xae)](_0x263449,_0x1dd5a5)&&(_0x1dd5a5=_0x263449);}else{if(_0x4c8a1a===ID_CLUSTER)break;}}if(isUnknownSize(_0x50d352,_0x2a419c))break;_0x106d7e+=_0x17ed5d[_0x11c7c4(0xbb)](_0x440b5c+_0x2a419c,_0x50d352);}_0x317e67=_0x339d64;}return _0x1dd5a5;}export function fixWebmDuration(_0x1383be,_0x4d4672){const _0x4b8f66=_0x2731,_0xfcdbb0={'jWfjS':function(_0xd7382,_0x2602d1,_0x291cb5){return _0xd7382(_0x2602d1,_0x291cb5);},'uQamf':function(_0x42c3c3,_0x4ab364){return _0x42c3c3+_0x4ab364;},'nEiek':function(_0x35915d,_0x243bb5,_0x289f69){return _0x35915d(_0x243bb5,_0x289f69);},'IQxom':function(_0x180a28,_0x1a3299){return _0x180a28!==_0x1a3299;},'ncrue':'Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','JWznJ':function(_0x458230,_0x10719a){return _0x458230+_0x10719a;},'EEvqT':function(_0x3ff1ea,_0x26d874){return _0x3ff1ea<_0x26d874;},'MXFGq':function(_0xb51a9f,_0x391b1f,_0x1f94b7){return _0xb51a9f(_0x391b1f,_0x1f94b7);},'bpDQm':function(_0x3251be,_0x31836d){return _0x3251be+_0x31836d;},'SnnPu':function(_0x5f2b57,_0x760c0b){return _0x5f2b57===_0x760c0b;},'yuDPJ':function(_0x2dc4da,_0x5610c0){return _0x2dc4da===_0x5610c0;},'BXkrc':function(_0x379634,_0x77e21a){return _0x379634+_0x77e21a;},'zeTRK':function(_0x5f1233,_0x3af6a5){return _0x5f1233+_0x3af6a5;},'lhiEv':function(_0x1b0e94,_0x5c1810,_0x1b2146,_0x75b680,_0x239352){return _0x1b0e94(_0x5c1810,_0x1b2146,_0x75b680,_0x239352);},'anOAg':function(_0x379b38,_0x28a46f){return _0x379b38+_0x28a46f;},'YoLuD':function(_0x5e02db,_0x12ca17){return _0x5e02db+_0x12ca17;},'FAEVV':function(_0x5b704c,_0x425de7,_0x248d35,_0x1b42db){return _0x5b704c(_0x425de7,_0x248d35,_0x1b42db);},'UaoNp':function(_0x42be63,_0x5d0f0b,_0x2e148b){return _0x42be63(_0x5d0f0b,_0x2e148b);},'Zyzpw':function(_0x1cb43c,_0x2fe1a4){return _0x1cb43c<=_0x2fe1a4;},'bjjaX':function(_0x584b91,_0x330ba1){return _0x584b91*_0x330ba1;},'bUGvT':function(_0x1daa56,_0x4549ec){return _0x1daa56<_0x4549ec;},'acmQL':function(_0x443429,_0x4555e4,_0x56e704){return _0x443429(_0x4555e4,_0x56e704);},'sSNOB':function(_0x114862,_0x22949d){return _0x114862+_0x22949d;},'lLeIv':function(_0x4b8cf6,_0x3d880b){return _0x4b8cf6(_0x3d880b);},'fxGvd':function(_0x1cdfdb,_0x3c5b15,_0x7c1e62){return _0x1cdfdb(_0x3c5b15,_0x7c1e62);},'mNpiA':function(_0x145265,_0x2ff7d1,_0x1451a7,_0x3b3929,_0x3c0d96,_0x4a21e8,_0x1f8d80){return _0x145265(_0x2ff7d1,_0x1451a7,_0x3b3929,_0x3c0d96,_0x4a21e8,_0x1f8d80);}},_0x4dce1e=readFileSync(_0x1383be);let _0x1baac5=0x0;const [_0x5c92d7,_0x11c5d7]=readId(_0x4dce1e,_0x1baac5),[_0x1ce48f,_0x4f426a]=_0xfcdbb0['jWfjS'](readVint,_0x4dce1e,_0xfcdbb0['uQamf'](_0x1baac5,_0x11c5d7));_0x1baac5+=_0x11c5d7+_0x4f426a+_0x1ce48f;const [_0x1c7371,_0x353809]=_0xfcdbb0[_0x4b8f66(0xbe)](readId,_0x4dce1e,_0x1baac5);if(_0xfcdbb0[_0x4b8f66(0xe9)](_0x1c7371,ID_SEGMENT))return console[_0x4b8f66(0xe6)](_0xfcdbb0['ncrue']),![];const [,_0x16f84f]=_0xfcdbb0['jWfjS'](readVint,_0x4dce1e,_0x1baac5+_0x353809),_0x352ddd=_0xfcdbb0[_0x4b8f66(0xa7)](_0x1baac5+_0x353809,_0x16f84f);let _0xf11b0a=_0x352ddd;const _0x55a70c=Math[_0x4b8f66(0xaa)](_0x4dce1e['length'],_0x352ddd+0x2710);let _0x119a6c=null,_0x4e4401=null;while(_0xfcdbb0[_0x4b8f66(0xee)](_0xf11b0a,_0x55a70c)){const [_0x4b327c,_0x5cfbec]=readId(_0x4dce1e,_0xf11b0a),[_0x3417ef,_0x48ad8a]=_0xfcdbb0['MXFGq'](readVint,_0x4dce1e,_0xfcdbb0[_0x4b8f66(0xa4)](_0xf11b0a,_0x5cfbec));_0xfcdbb0['SnnPu'](_0x4b327c,ID_VOID)&&!_0x119a6c&&(_0x119a6c={'offset':_0xf11b0a,'idLen':_0x5cfbec,'sizeLen':_0x48ad8a,'dataSize':_0x3417ef,'dataOffset':_0xf11b0a+_0x5cfbec+_0x48ad8a});if(_0xfcdbb0[_0x4b8f66(0xb1)](_0x4b327c,ID_INFO)){_0x4e4401={'offset':_0xf11b0a,'idLen':_0x5cfbec,'sizeLen':_0x48ad8a,'dataSize':_0x3417ef,'dataOffset':_0xfcdbb0[_0x4b8f66(0xe4)](_0xfcdbb0[_0x4b8f66(0xd2)](_0xf11b0a,_0x5cfbec),_0x48ad8a)};break;}if(_0x4b327c===ID_CLUSTER)break;if(isUnknownSize(_0x3417ef,_0x48ad8a))break;_0xf11b0a+=_0xfcdbb0['zeTRK'](_0x5cfbec,_0x48ad8a)+_0x3417ef;}if(!_0x4e4401)return console['error']('Could\x20not\x20find\x20Info\x20element'),![];const _0xcc022b=_0xfcdbb0[_0x4b8f66(0xd3)](findElement,_0x4dce1e,_0x4e4401[_0x4b8f66(0xdb)],_0xfcdbb0['anOAg'](_0x4e4401[_0x4b8f66(0xdb)],_0x4e4401[_0x4b8f66(0xc2)]),ID_DURATION);if(_0xcc022b)return![];const _0xdfd70f=findElement(_0x4dce1e,_0x4e4401['dataOffset'],_0xfcdbb0[_0x4b8f66(0xb0)](_0x4e4401[_0x4b8f66(0xdb)],_0x4e4401[_0x4b8f66(0xc2)]),ID_TIMESTAMP_SCALE);let _0x32490f=0xf4240;_0xdfd70f&&(_0x32490f=_0xfcdbb0[_0x4b8f66(0xc7)](readUint,_0x4dce1e,_0xdfd70f['dataOffset'],_0xdfd70f['dataSize']));const _0x34c286=_0xfcdbb0[_0x4b8f66(0xc4)](computeDurationMs,_0x4dce1e,_0x32490f);if(_0xfcdbb0[_0x4b8f66(0xc6)](_0x34c286,0x0))return console['error']('Could\x20not\x20compute\x20duration'),![];const _0x33b2db=_0xfcdbb0['bjjaX'](_0x34c286,0xf4240)/_0x32490f,_0x3709b2=Buffer[_0x4b8f66(0xd1)]([writeId(ID_DURATION),writeVint(0x8),writeFloat64(_0x33b2db)]),_0x35e72c=_0x3709b2[_0x4b8f66(0xa0)];if(!_0x119a6c||_0x119a6c['offset']<_0x4e4401['offset']){if(_0x119a6c){const _0x48fe43=_0xfcdbb0[_0x4b8f66(0xb0)](_0x119a6c['idLen'],_0x119a6c[_0x4b8f66(0xd5)])+_0x119a6c['dataSize'],_0x23ff55=_0x48fe43-_0x35e72c;if(_0xfcdbb0[_0x4b8f66(0xa1)](_0x23ff55,0x2))return rewriteFile(_0x4dce1e,_0x4e4401,_0x3709b2,_0x32490f,_0x34c286,_0x4d4672);const _0x23247b=_0xfcdbb0[_0x4b8f66(0xd2)](_0x4e4401[_0x4b8f66(0xc2)],_0x35e72c),_0x8eaae2=Buffer['concat']([writeId(ID_INFO),_0xfcdbb0[_0x4b8f66(0xe5)](writeVint,_0x23247b,_0x4e4401['sizeLen'])]),_0x5b291f=_0x4dce1e['slice'](_0x4e4401[_0x4b8f66(0xdb)],_0xfcdbb0['sSNOB'](_0x4e4401[_0x4b8f66(0xdb)],_0x4e4401['dataSize'])),_0x5c6d73=_0xfcdbb0['lLeIv'](writeVoid,_0x23ff55),_0x505b1b=_0x4dce1e[_0x4b8f66(0xb6)](0x0,_0x119a6c['offset']),_0x4f13af=_0x4dce1e[_0x4b8f66(0xb6)](_0x4e4401[_0x4b8f66(0xdb)]+_0x4e4401[_0x4b8f66(0xc2)]);return _0xfcdbb0[_0x4b8f66(0xcc)](writeFileSync,_0x4d4672,Buffer[_0x4b8f66(0xd1)]([_0x505b1b,_0x5c6d73,_0x8eaae2,_0x5b291f,_0x3709b2,_0x4f13af])),!![];}}return _0xfcdbb0[_0x4b8f66(0xd7)](rewriteFile,_0x4dce1e,_0x4e4401,_0x3709b2,_0x32490f,_0x34c286,_0x4d4672);}function rewriteFile(_0x552f40,_0x4ae47c,_0x59be61,_0x2a7e9c,_0x13ffbf,_0x5574dc){const _0x694655=_0x2731,_0x5697d5={'QchBE':function(_0x9bd194,_0x27f4be){return _0x9bd194+_0x27f4be;},'GuElV':function(_0x5420f8,_0xe95d54){return _0x5420f8+_0xe95d54;}},_0x52c172=_0x5697d5['QchBE'](_0x4ae47c['dataSize'],_0x59be61['length']),_0x6c0b26=Buffer[_0x694655(0xd1)]([writeId(ID_INFO),writeVint(_0x52c172)]),_0xfd67fb=_0x5697d5['QchBE'](_0x4ae47c[_0x694655(0xcb)],_0x4ae47c[_0x694655(0xd5)]),_0x384377=_0x552f40[_0x694655(0xb6)](0x0,_0x4ae47c['offset']),_0x226fa1=_0x552f40['slice'](_0x4ae47c['dataOffset'],_0x5697d5['GuElV'](_0x4ae47c['dataOffset'],_0x4ae47c['dataSize'])),_0xd28d7f=_0x552f40[_0x694655(0xb6)](_0x5697d5['GuElV'](_0x5697d5['QchBE'](_0x4ae47c['offset'],_0xfd67fb),_0x4ae47c['dataSize']));return writeFileSync(_0x5574dc,Buffer[_0x694655(0xd1)]([_0x384377,_0x6c0b26,_0x226fa1,_0x59be61,_0xd28d7f])),!![];}function _0x5781(){const _0x2c7734=['1579977KNLjpg','Tilow','1145500cUHwPc','YoLuD','yuDPJ','agRtS','from','log','wXjyk','slice','exit','VDfrV','alloc','dkdtM','UXyga','indexOf','8mkKeGm','nEiek','LuimS','CPFOg','15SZHFyd','dataSize','endsWith','UaoNp','tOdVV','Zyzpw','FAEVV','ENsKi','369037SrQZGM','tVJbg','idLen','fxGvd','ZLSyg','SqvHU','jnISe','meLoy','concat','BXkrc','lhiEv','argv','sizeLen','864477IDWgEb','mNpiA','iazOU','UilBt','fJkSX','dataOffset','BWCHx','DzweO','dELpC','cVSLo','bhqqL','TbsUw','661806oQbstD','Fixed:\x20','uQamf','acmQL','error','456867fLvcHo','tQeGn','IQxom','fixWebmDuration.ts','OVZoy','77YVNesO','pow','EEvqT','qmmzp','length','bUGvT','wokak','OkVMX','bpDQm','2WhmlJg','GbcCY','JWznJ','MVjzZ','fixWebmDuration.js','min','floor','380830hCIRRj'];_0x5781=function(){return _0x2c7734;};return _0x5781();}if(process['argv'][0x1]?.[_0x2da988(0xc3)](_0x2da988(0xea))||process[_0x2da988(0xd4)][0x1]?.[_0x2da988(0xc3)](_0x2da988(0xa9))){const input=process[_0x2da988(0xd4)][0x2],output=process['argv'][0x3];(!input||!output)&&(console['error']('Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>'),process[_0x2da988(0xb7)](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0x2da988(0xb4)](_0x2da988(0xe3)+output):console['log']('File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.');}
|
|
1
|
+
const _0x1cad9f=_0x18dd;(function(_0x52e604,_0x528122){const _0x21097b=_0x18dd,_0x2c9ee1=_0x52e604();while(!![]){try{const _0x4ebae6=-parseInt(_0x21097b(0x225))/0x1+parseInt(_0x21097b(0x21c))/0x2*(-parseInt(_0x21097b(0x21a))/0x3)+parseInt(_0x21097b(0x22d))/0x4+-parseInt(_0x21097b(0x206))/0x5+-parseInt(_0x21097b(0x227))/0x6+-parseInt(_0x21097b(0x22e))/0x7*(-parseInt(_0x21097b(0x1fc))/0x8)+-parseInt(_0x21097b(0x21e))/0x9*(-parseInt(_0x21097b(0x218))/0xa);if(_0x4ebae6===_0x528122)break;else _0x2c9ee1['push'](_0x2c9ee1['shift']());}catch(_0x84013){_0x2c9ee1['push'](_0x2c9ee1['shift']());}}}(_0x4061,0x410c1));function _0x18dd(_0x51db1f,_0x4974a9){_0x51db1f=_0x51db1f-0x1ef;const _0x406143=_0x4061();let _0x18dd8b=_0x406143[_0x51db1f];return _0x18dd8b;}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(_0x3c8773,_0x8babdf){const _0x1fe175=_0x18dd,_0x32cbe5={'uYVYh':function(_0x572322,_0x5b4e3c){return _0x572322>=_0x5b4e3c;},'JcJpa':function(_0x280d00,_0x8d891f){return _0x280d00>_0x8d891f;},'gnDbL':function(_0x5211cb,_0x16102c){return _0x5211cb<_0x16102c;},'UsTKy':function(_0x3afd57,_0xb8e4da){return _0x3afd57*_0xb8e4da;}};if(_0x32cbe5[_0x1fe175(0x234)](_0x8babdf,_0x3c8773['length']))return[0x0,0x0];const _0x4651c0=_0x3c8773[_0x8babdf];let _0xa3752d=0x1,_0x2d359e=0x80;while(_0xa3752d<=0x8&&!(_0x4651c0&_0x2d359e)){_0xa3752d++,_0x2d359e>>=0x1;}if(_0x32cbe5[_0x1fe175(0x238)](_0x8babdf+_0xa3752d,_0x3c8773['length']))return[0x0,0x0];let _0x5e0feb=_0x4651c0&_0x2d359e-0x1;for(let _0x60a474=0x1;_0x32cbe5[_0x1fe175(0x239)](_0x60a474,_0xa3752d);_0x60a474++){_0x5e0feb=_0x32cbe5[_0x1fe175(0x1f8)](_0x5e0feb,0x100)+_0x3c8773[_0x8babdf+_0x60a474];}return[_0x5e0feb,_0xa3752d];}function readId(_0x1ff09a,_0x398567){const _0x2fe6ad=_0x18dd,_0x284497={'tGQqe':function(_0x223e31,_0x13f0dd){return _0x223e31>=_0x13f0dd;},'hYyAY':function(_0x1f780f,_0x5a9d66){return _0x1f780f>=_0x5a9d66;},'dnidq':function(_0x33b4b8,_0x28e0db){return _0x33b4b8>_0x28e0db;},'OeFDh':function(_0x15e289,_0x3573f9){return _0x15e289+_0x3573f9;},'rIpsr':function(_0x179f9f,_0x36728c){return _0x179f9f<_0x36728c;},'iLwfb':function(_0x565de5,_0x2613cf){return _0x565de5+_0x2613cf;}};if(_0x284497['tGQqe'](_0x398567,_0x1ff09a[_0x2fe6ad(0x1f3)]))return[0x0,0x0];const _0x16a40a=_0x1ff09a[_0x398567];let _0xd70bd2;if(_0x16a40a>=0x80)_0xd70bd2=0x1;else{if(_0x284497[_0x2fe6ad(0x21f)](_0x16a40a,0x40))_0xd70bd2=0x2;else{if(_0x16a40a>=0x20)_0xd70bd2=0x3;else{if(_0x16a40a>=0x10)_0xd70bd2=0x4;else return[_0x16a40a,0x1];}}}if(_0x284497['dnidq'](_0x284497[_0x2fe6ad(0x228)](_0x398567,_0xd70bd2),_0x1ff09a[_0x2fe6ad(0x1f3)]))return[0x0,0x0];let _0x5c0dea=0x0;for(let _0x48e687=0x0;_0x284497['rIpsr'](_0x48e687,_0xd70bd2);_0x48e687++){_0x5c0dea=_0x284497[_0x2fe6ad(0x233)](_0x5c0dea*0x100,_0x1ff09a[_0x398567+_0x48e687]);}return[_0x5c0dea,_0xd70bd2];}function readUint(_0x468cda,_0x5ad5b5,_0x2fdf4e){const _0xb34bef=_0x18dd,_0x5e2315={'WJgsy':function(_0x63a193,_0x395152){return _0x63a193+_0x395152;},'LRCXV':function(_0x553d43,_0x361bfb){return _0x553d43*_0x361bfb;},'QfENO':function(_0x135f9b,_0x2619fe){return _0x135f9b+_0x2619fe;}};let _0x1f7338=0x0;for(let _0x45a887=0x0;_0x45a887<_0x2fdf4e;_0x45a887++){_0x1f7338=_0x5e2315['WJgsy'](_0x5e2315[_0xb34bef(0x207)](_0x1f7338,0x100),_0x468cda[_0x5e2315['QfENO'](_0x5ad5b5,_0x45a887)]);}return _0x1f7338;}function isUnknownSize(_0x95a52,_0x726fa0){const _0x590a18=_0x18dd,_0x3c6392={'DVgIB':function(_0x8d23f0,_0x3a1b6e){return _0x8d23f0-_0x3a1b6e;},'PatoJ':function(_0x3ae555,_0x3d84f8){return _0x3ae555*_0x3d84f8;}};return _0x95a52===_0x3c6392[_0x590a18(0x23a)](Math[_0x590a18(0x1f5)](0x2,_0x3c6392['PatoJ'](0x7,_0x726fa0)),0x1);}function writeId(_0x5d2975){const _0x42f04b=_0x18dd,_0x4e115a={'CZWtH':function(_0x10e187,_0x17fc81){return _0x10e187<=_0x17fc81;},'oywYh':function(_0x2c49b1,_0x2c3cc3){return _0x2c49b1&_0x2c3cc3;},'ilZYs':function(_0x453fc6,_0x5f14c4){return _0x453fc6&_0x5f14c4;},'csJbE':function(_0xd7f8fa,_0x2e4e9c){return _0xd7f8fa&_0x2e4e9c;},'uCCQJ':function(_0x23cf0c,_0x400484){return _0x23cf0c>>_0x400484;},'ibAem':function(_0x26d9e1,_0x130cd0){return _0x26d9e1&_0x130cd0;},'EgaCZ':function(_0x4a05c2,_0x1e4dee){return _0x4a05c2&_0x1e4dee;}};if(_0x5d2975<=0xff)return Buffer['from']([_0x5d2975]);if(_0x4e115a[_0x42f04b(0x23b)](_0x5d2975,0xffff))return Buffer[_0x42f04b(0x23c)]([_0x4e115a[_0x42f04b(0x204)](_0x5d2975>>0x8,0xff),_0x4e115a['ilZYs'](_0x5d2975,0xff)]);if(_0x4e115a['CZWtH'](_0x5d2975,0xffffff))return Buffer['from']([_0x4e115a[_0x42f04b(0x204)](_0x5d2975>>0x10,0xff),_0x5d2975>>0x8&0xff,_0x4e115a['oywYh'](_0x5d2975,0xff)]);return Buffer['from']([_0x4e115a['csJbE'](_0x4e115a[_0x42f04b(0x201)](_0x5d2975,0x18),0xff),_0x5d2975>>0x10&0xff,_0x4e115a['ibAem'](_0x4e115a[_0x42f04b(0x201)](_0x5d2975,0x8),0xff),_0x4e115a['EgaCZ'](_0x5d2975,0xff)]);}function writeVint(_0x40b056,_0xb1a92a){const _0x1390b2=_0x18dd,_0x680c8d={'jHjKV':function(_0x205e35,_0x11b58c){return _0x205e35||_0x11b58c;},'SGcKr':function(_0x1b19f1,_0xfc523a){return _0x1b19f1*_0xfc523a;},'westI':function(_0x2e7ae3,_0x98c18a){return _0x2e7ae3>=_0x98c18a;},'bgHOa':function(_0x55986c,_0x41791b){return _0x55986c&_0x41791b;},'eBVKk':function(_0x34cf2f,_0x572f5a){return _0x34cf2f<<_0x572f5a;}};let _0x23113d=_0x680c8d['jHjKV'](_0xb1a92a,0x1);while(Math['pow'](0x2,_0x680c8d['SGcKr'](0x7,_0x23113d))-0x2<_0x40b056)_0x23113d++;const _0x567a87=Buffer[_0x1390b2(0x20f)](_0x23113d);for(let _0x59ad51=_0x23113d-0x1;_0x680c8d[_0x1390b2(0x22f)](_0x59ad51,0x0);_0x59ad51--){_0x567a87[_0x59ad51]=_0x680c8d['bgHOa'](_0x40b056,0xff),_0x40b056=Math['floor'](_0x40b056/0x100);}return _0x567a87[0x0]|=_0x680c8d[_0x1390b2(0x200)](0x1,0x8-_0x23113d),_0x567a87;}function writeFloat64(_0x3c99da){const _0x4ffd0b=_0x18dd,_0x3ede59=Buffer['alloc'](0x8);return _0x3ede59[_0x4ffd0b(0x1f9)](_0x3c99da,0x0),_0x3ede59;}function writeVoid(_0x1a96fe){const _0x1b5e89=_0x18dd,_0x23e7da={'ynkpM':function(_0x4f8709,_0x4f2062){return _0x4f8709<=_0x4f2062;},'zmzNa':function(_0x88eaf4,_0xf3aa90){return _0x88eaf4-_0xf3aa90;},'UVmbH':function(_0x10acbb,_0x20b5a1){return _0x10acbb>=_0x20b5a1;},'PiyyP':function(_0x2be9d8,_0x300680){return _0x2be9d8*_0x300680;}};for(let _0x5b781d=0x1;_0x23e7da[_0x1b5e89(0x1f2)](_0x5b781d,0x8);_0x5b781d++){const _0x7ec653=_0x23e7da[_0x1b5e89(0x219)](_0x1a96fe-0x1,_0x5b781d);if(_0x23e7da[_0x1b5e89(0x229)](_0x7ec653,0x0)&&_0x7ec653<=Math['pow'](0x2,_0x23e7da['PiyyP'](0x7,_0x5b781d))-0x2)return Buffer[_0x1b5e89(0x213)]([Buffer['from']([ID_VOID]),writeVint(_0x7ec653,_0x5b781d),Buffer['alloc'](_0x7ec653)]);}return Buffer['alloc'](0x0);}function findElement(_0x3e5774,_0xdaf244,_0x4b07c6,_0x1cf0dc){const _0x2bfa7e=_0x18dd,_0x51ae32={'FZUMI':function(_0x257aaf,_0x4c0743,_0x8e378b){return _0x257aaf(_0x4c0743,_0x8e378b);},'rOqrr':function(_0x1def47,_0x27fc5b,_0x12dd27){return _0x1def47(_0x27fc5b,_0x12dd27);},'iBFSn':function(_0x3becac,_0x4d2b81){return _0x3becac===_0x4d2b81;},'wruxO':function(_0x1b58ab,_0x2e0af4,_0x5d18f5){return _0x1b58ab(_0x2e0af4,_0x5d18f5);},'yLkFN':function(_0x2e7302,_0x4dab8d){return _0x2e7302+_0x4dab8d;}};let _0x42c8c3=_0xdaf244;while(_0x42c8c3<_0x4b07c6){const [_0x19415c,_0xcc027e]=_0x51ae32[_0x2bfa7e(0x236)](readId,_0x3e5774,_0x42c8c3),[_0x515495,_0x36fd5e]=_0x51ae32[_0x2bfa7e(0x1fe)](readVint,_0x3e5774,_0x42c8c3+_0xcc027e);if(_0x51ae32[_0x2bfa7e(0x222)](_0x19415c,_0x1cf0dc))return{'offset':_0x42c8c3,'idLen':_0xcc027e,'sizeLen':_0x36fd5e,'dataSize':_0x515495,'dataOffset':_0x42c8c3+_0xcc027e+_0x36fd5e};if(_0x51ae32['wruxO'](isUnknownSize,_0x515495,_0x36fd5e))break;_0x42c8c3+=_0x51ae32['yLkFN'](_0x51ae32[_0x2bfa7e(0x22a)](_0xcc027e,_0x36fd5e),_0x515495);}return null;}function computeDurationMs(_0x49e0c1,_0x16a8d7){const _0x5e2376=_0x18dd,_0x583ecf={'rGnts':function(_0x2fc3e2,_0x5dfafa){return _0x2fc3e2===_0x5dfafa;},'AEQpc':function(_0x323cb4,_0x768e3){return _0x323cb4<_0x768e3;},'aePlv':function(_0x4c0b7f,_0x5f5bd7){return _0x4c0b7f!==_0x5f5bd7;},'oywQb':function(_0x5aa297,_0x466b74){return _0x5aa297+_0x466b74;},'GrwpC':function(_0x2f9110,_0x23c4bf,_0x528083){return _0x2f9110(_0x23c4bf,_0x528083);},'Yabag':function(_0xb62b1a,_0x260393){return _0xb62b1a-_0x260393;},'MoOgG':function(_0x3015eb,_0x54b822){return _0x3015eb+_0x54b822;},'EspjX':function(_0x57e486,_0x418c77){return _0x57e486<_0x418c77;},'jzFVT':function(_0x178df7,_0x552e5d,_0x2cd82a){return _0x178df7(_0x552e5d,_0x2cd82a);},'wahiC':function(_0x4311d6,_0x301480){return _0x4311d6+_0x301480;},'QvNJv':function(_0x16af24,_0x528f27,_0x326288,_0x16a786){return _0x16af24(_0x528f27,_0x326288,_0x16a786);},'lKfhD':function(_0x3f71e9,_0xa9ce0b){return _0x3f71e9*_0xa9ce0b;},'UAzbq':function(_0x5b3041,_0x1bfc70){return _0x5b3041>_0x1bfc70;},'fIeKF':function(_0x535b6a,_0xa5ccea){return _0x535b6a+_0xa5ccea;}};let _0x2cb89d=0x0;const _0x43faf3=Buffer[_0x5e2376(0x23c)]([0x1f,0x43,0xb6,0x75]);let _0x3fc65b=_0x49e0c1[_0x5e2376(0x205)](_0x43faf3);if(_0x583ecf['rGnts'](_0x3fc65b,-0x1))return 0x0;while(_0x583ecf[_0x5e2376(0x22c)](_0x3fc65b,_0x49e0c1['length'])){const [_0x55da7d,_0x165c5e]=readId(_0x49e0c1,_0x3fc65b);if(_0x583ecf[_0x5e2376(0x1f4)](_0x55da7d,ID_CLUSTER))break;const [_0x4f907b,_0x1870f4]=readVint(_0x49e0c1,_0x583ecf['oywQb'](_0x3fc65b,_0x165c5e)),_0xcbc844=_0x3fc65b+_0x165c5e+_0x1870f4,_0x2111e8=_0x583ecf['GrwpC'](isUnknownSize,_0x4f907b,_0x1870f4);let _0x159149;if(_0x2111e8){let _0x4a57d6=_0xcbc844;while(_0x583ecf[_0x5e2376(0x22c)](_0x4a57d6,_0x583ecf[_0x5e2376(0x212)](_0x49e0c1[_0x5e2376(0x1f3)],0x4))){const [_0x2179e1,_0x181ca1]=readId(_0x49e0c1,_0x4a57d6);if(_0x583ecf['rGnts'](_0x2179e1,ID_CLUSTER)){_0x159149=_0x4a57d6;break;}const [_0x5a0d70,_0x5cbdc7]=_0x583ecf[_0x5e2376(0x1ff)](readVint,_0x49e0c1,_0x583ecf[_0x5e2376(0x217)](_0x4a57d6,_0x181ca1));if(isUnknownSize(_0x5a0d70,_0x5cbdc7)){_0x159149=_0x49e0c1[_0x5e2376(0x1f3)];break;}_0x4a57d6+=_0x583ecf['oywQb'](_0x181ca1+_0x5cbdc7,_0x5a0d70);}_0x159149??=_0x49e0c1[_0x5e2376(0x1f3)];}else _0x159149=_0x583ecf[_0x5e2376(0x217)](_0xcbc844,_0x4f907b);let _0x38cfdd=0x0,_0x1c0dd4=_0xcbc844;while(_0x583ecf[_0x5e2376(0x20c)](_0x1c0dd4,_0x159149)){const [_0x1b5a41,_0x569f55]=_0x583ecf[_0x5e2376(0x22b)](readId,_0x49e0c1,_0x1c0dd4),[_0x39436e,_0x500250]=readVint(_0x49e0c1,_0x583ecf['wahiC'](_0x1c0dd4,_0x569f55));if(_0x1b5a41===ID_TIMESTAMP)_0x38cfdd=_0x583ecf[_0x5e2376(0x221)](readUint,_0x49e0c1,_0x583ecf[_0x5e2376(0x217)](_0x583ecf['oywQb'](_0x1c0dd4,_0x569f55),_0x500250),_0x39436e);else{if(_0x1b5a41===ID_SIMPLE_BLOCK&&_0x39436e>=0x4){const _0xd0abd5=_0x1c0dd4+_0x569f55+_0x500250,[,_0x392e01]=readVint(_0x49e0c1,_0xd0abd5),_0x88d838=_0x49e0c1['readInt16BE'](_0xd0abd5+_0x392e01),_0x34426b=_0x583ecf['lKfhD'](_0x38cfdd+_0x88d838,_0x16a8d7)/0xf4240;_0x583ecf[_0x5e2376(0x231)](_0x34426b,_0x2cb89d)&&(_0x2cb89d=_0x34426b);}else{if(_0x1b5a41===ID_CLUSTER)break;}}if(isUnknownSize(_0x39436e,_0x500250))break;_0x1c0dd4+=_0x583ecf[_0x5e2376(0x1fd)](_0x569f55+_0x500250,_0x39436e);}_0x3fc65b=_0x159149;}return _0x2cb89d;}function _0x4061(){const _0x35f0be=['QvNJv','iBFSn','TsGmc','Could\x20not\x20find\x20Info\x20element','456512QbZjgm','MCtgv','2395782LYGsXn','OeFDh','UVmbH','yLkFN','jzFVT','AEQpc','901728VMTlao','827428WSWCxf','westI','VjmpG','UAzbq','dataOffset','iLwfb','uYVYh','QoJAf','FZUMI','QBWOC','JcJpa','gnDbL','DVgIB','CZWtH','from','edUgA','oRPhO','min','ynkpM','length','aePlv','pow','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','ClJlF','UsTKy','writeDoubleBE','error','AtQCG','16IgOsEY','fIeKF','rOqrr','GrwpC','eBVKk','uCCQJ','wjZrR','QaICS','oywYh','indexOf','1163460FACOWp','LRCXV','HxhBX','RlpFE','dataSize','LikBE','EspjX','fixWebmDuration.ts','Could\x20not\x20compute\x20duration','alloc','argv','Fixed:\x20','Yabag','concat','UdzHh','offset','uSPUz','MoOgG','100QYiAGj','zmzNa','295149JFnnEU','slice','4xeIRNU','log','980874nzUnRq','hYyAY','endsWith'];_0x4061=function(){return _0x35f0be;};return _0x4061();}export function fixWebmDuration(_0x44e8fc,_0x188381){const _0x383e10=_0x18dd,_0x57e00e={'UdzHh':function(_0x2fc1c3,_0x15f3c5,_0x5340d0){return _0x2fc1c3(_0x15f3c5,_0x5340d0);},'QBWOC':function(_0xb8876b,_0x550c2d){return _0xb8876b+_0x550c2d;},'HxhBX':function(_0x8d9c9c,_0x4d529f){return _0x8d9c9c+_0x4d529f;},'aBFEB':function(_0x3d5554,_0x46daa2,_0xf47b5c){return _0x3d5554(_0x46daa2,_0xf47b5c);},'MCtgv':function(_0x14c8a5,_0x2ef4a5){return _0x14c8a5+_0x2ef4a5;},'TsGmc':function(_0xbb9264,_0xc12f3b){return _0xbb9264<_0xc12f3b;},'BxJuW':function(_0x140211,_0x563f07,_0x2ba8b3){return _0x140211(_0x563f07,_0x2ba8b3);},'AXrhK':function(_0x4fb7e9,_0x1f4d89,_0x4b6132){return _0x4fb7e9(_0x1f4d89,_0x4b6132);},'QoJAf':function(_0x56f5fd,_0x2a2782){return _0x56f5fd===_0x2a2782;},'RlpFE':_0x383e10(0x224),'LikBE':function(_0x36f09f,_0xf3c2c8,_0x45f6ff,_0x295217,_0x1f0419){return _0x36f09f(_0xf3c2c8,_0x45f6ff,_0x295217,_0x1f0419);},'AtQCG':function(_0x2c1737,_0x35a9dd){return _0x2c1737+_0x35a9dd;},'wjZrR':function(_0x3eeb94,_0x2bcecc,_0xd31dee,_0x4f8365){return _0x3eeb94(_0x2bcecc,_0xd31dee,_0x4f8365);},'uSPUz':function(_0x1bdf86,_0xe73e97){return _0x1bdf86<=_0xe73e97;},'oRPhO':_0x383e10(0x20e),'BYLJK':function(_0x50bd95,_0x1ea436){return _0x50bd95/_0x1ea436;},'fNumF':function(_0x480d5d,_0x27b5d7){return _0x480d5d(_0x27b5d7);},'ClJlF':function(_0x1b7221,_0x27ded5){return _0x1b7221(_0x27ded5);},'VjmpG':function(_0x256a29,_0x570aac){return _0x256a29(_0x570aac);},'YOUfc':function(_0x150e6d,_0x48f59a){return _0x150e6d<_0x48f59a;},'OICRd':function(_0x4add1e,_0x2b58e2,_0x55fa8e){return _0x4add1e(_0x2b58e2,_0x55fa8e);},'QaICS':function(_0x15e74d,_0x549615,_0x37be24,_0x4e3aa1,_0x46a0c5,_0x2478d1,_0x2beabe){return _0x15e74d(_0x549615,_0x37be24,_0x4e3aa1,_0x46a0c5,_0x2478d1,_0x2beabe);}},_0x3d7b2a=readFileSync(_0x44e8fc);let _0x282ded=0x0;const [_0x453f2a,_0x4b9ae2]=readId(_0x3d7b2a,_0x282ded),[_0x998fdb,_0x122aee]=_0x57e00e[_0x383e10(0x214)](readVint,_0x3d7b2a,_0x57e00e[_0x383e10(0x237)](_0x282ded,_0x4b9ae2));_0x282ded+=_0x57e00e['HxhBX'](_0x57e00e['QBWOC'](_0x4b9ae2,_0x122aee),_0x998fdb);const [_0x22aebf,_0x19b348]=_0x57e00e['aBFEB'](readId,_0x3d7b2a,_0x282ded);if(_0x22aebf!==ID_SEGMENT)return console[_0x383e10(0x1fa)]('Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment'),![];const [,_0x1570d2]=readVint(_0x3d7b2a,_0x282ded+_0x19b348),_0x420769=_0x57e00e['QBWOC'](_0x282ded+_0x19b348,_0x1570d2);let _0x293365=_0x420769;const _0x5a6c07=Math[_0x383e10(0x1f1)](_0x3d7b2a['length'],_0x57e00e[_0x383e10(0x226)](_0x420769,0x2710));let _0x221602=null,_0x8bf177=null;while(_0x57e00e[_0x383e10(0x223)](_0x293365,_0x5a6c07)){const [_0x41e70b,_0x5cd8db]=_0x57e00e['BxJuW'](readId,_0x3d7b2a,_0x293365),[_0x337347,_0x4a7a0c]=_0x57e00e['AXrhK'](readVint,_0x3d7b2a,_0x293365+_0x5cd8db);_0x57e00e['QoJAf'](_0x41e70b,ID_VOID)&&!_0x221602&&(_0x221602={'offset':_0x293365,'idLen':_0x5cd8db,'sizeLen':_0x4a7a0c,'dataSize':_0x337347,'dataOffset':_0x293365+_0x5cd8db+_0x4a7a0c});if(_0x41e70b===ID_INFO){_0x8bf177={'offset':_0x293365,'idLen':_0x5cd8db,'sizeLen':_0x4a7a0c,'dataSize':_0x337347,'dataOffset':_0x57e00e['HxhBX'](_0x293365,_0x5cd8db)+_0x4a7a0c};break;}if(_0x57e00e[_0x383e10(0x235)](_0x41e70b,ID_CLUSTER))break;if(isUnknownSize(_0x337347,_0x4a7a0c))break;_0x293365+=_0x5cd8db+_0x4a7a0c+_0x337347;}if(!_0x8bf177)return console['error'](_0x57e00e[_0x383e10(0x209)]),![];const _0x58b278=_0x57e00e[_0x383e10(0x20b)](findElement,_0x3d7b2a,_0x8bf177[_0x383e10(0x232)],_0x8bf177['dataOffset']+_0x8bf177['dataSize'],ID_DURATION);if(_0x58b278)return![];const _0x59838d=findElement(_0x3d7b2a,_0x8bf177[_0x383e10(0x232)],_0x57e00e[_0x383e10(0x1fb)](_0x8bf177['dataOffset'],_0x8bf177['dataSize']),ID_TIMESTAMP_SCALE);let _0x4a4847=0xf4240;_0x59838d&&(_0x4a4847=_0x57e00e[_0x383e10(0x202)](readUint,_0x3d7b2a,_0x59838d['dataOffset'],_0x59838d[_0x383e10(0x20a)]));const _0x1d4c78=computeDurationMs(_0x3d7b2a,_0x4a4847);if(_0x57e00e[_0x383e10(0x216)](_0x1d4c78,0x0))return console['error'](_0x57e00e[_0x383e10(0x1f0)]),![];const _0xf64683=_0x57e00e['BYLJK'](_0x1d4c78*0xf4240,_0x4a4847),_0x480793=Buffer['concat']([_0x57e00e['fNumF'](writeId,ID_DURATION),_0x57e00e[_0x383e10(0x1f7)](writeVint,0x8),_0x57e00e[_0x383e10(0x230)](writeFloat64,_0xf64683)]),_0x94221d=_0x480793[_0x383e10(0x1f3)];if(!_0x221602||_0x221602[_0x383e10(0x215)]<_0x8bf177['offset']){if(_0x221602){const _0x5507f=_0x57e00e['AtQCG'](_0x221602['idLen'],_0x221602['sizeLen'])+_0x221602['dataSize'],_0x4e41b7=_0x5507f-_0x94221d;if(_0x57e00e['YOUfc'](_0x4e41b7,0x2))return rewriteFile(_0x3d7b2a,_0x8bf177,_0x480793,_0x4a4847,_0x1d4c78,_0x188381);const _0x278eb1=_0x57e00e['HxhBX'](_0x8bf177[_0x383e10(0x20a)],_0x94221d),_0x382d34=Buffer['concat']([_0x57e00e[_0x383e10(0x1f7)](writeId,ID_INFO),_0x57e00e[_0x383e10(0x214)](writeVint,_0x278eb1,_0x8bf177['sizeLen'])]),_0x5c1376=_0x3d7b2a[_0x383e10(0x21b)](_0x8bf177['dataOffset'],_0x8bf177[_0x383e10(0x232)]+_0x8bf177[_0x383e10(0x20a)]),_0x387d80=_0x57e00e['VjmpG'](writeVoid,_0x4e41b7),_0x535b1e=_0x3d7b2a['slice'](0x0,_0x221602['offset']),_0x359929=_0x3d7b2a['slice'](_0x57e00e[_0x383e10(0x208)](_0x8bf177[_0x383e10(0x232)],_0x8bf177['dataSize']));return _0x57e00e['OICRd'](writeFileSync,_0x188381,Buffer['concat']([_0x535b1e,_0x387d80,_0x382d34,_0x5c1376,_0x480793,_0x359929])),!![];}}return _0x57e00e[_0x383e10(0x203)](rewriteFile,_0x3d7b2a,_0x8bf177,_0x480793,_0x4a4847,_0x1d4c78,_0x188381);}function rewriteFile(_0x4aabe9,_0x45fbee,_0x1279fd,_0x15b40c,_0x5f58b0,_0x539a34){const _0x5f27fd=_0x18dd,_0x325bf7={'NAKoq':function(_0x43a58d,_0x19532b){return _0x43a58d+_0x19532b;},'edUgA':function(_0x5b4f79,_0x1b477c,_0x240778){return _0x5b4f79(_0x1b477c,_0x240778);}},_0x1cb2b3=_0x45fbee['dataSize']+_0x1279fd['length'],_0x3f710c=Buffer['concat']([writeId(ID_INFO),writeVint(_0x1cb2b3)]),_0x29d186=_0x325bf7['NAKoq'](_0x45fbee['idLen'],_0x45fbee['sizeLen']),_0x4943be=_0x4aabe9[_0x5f27fd(0x21b)](0x0,_0x45fbee[_0x5f27fd(0x215)]),_0x283046=_0x4aabe9['slice'](_0x45fbee['dataOffset'],_0x45fbee[_0x5f27fd(0x232)]+_0x45fbee[_0x5f27fd(0x20a)]),_0x302037=_0x4aabe9['slice'](_0x325bf7['NAKoq'](_0x45fbee[_0x5f27fd(0x215)]+_0x29d186,_0x45fbee[_0x5f27fd(0x20a)]));return _0x325bf7[_0x5f27fd(0x1ef)](writeFileSync,_0x539a34,Buffer[_0x5f27fd(0x213)]([_0x4943be,_0x3f710c,_0x283046,_0x1279fd,_0x302037])),!![];}if(process['argv'][0x1]?.[_0x1cad9f(0x220)](_0x1cad9f(0x20d))||process['argv'][0x1]?.[_0x1cad9f(0x220)]('fixWebmDuration.js')){const input=process[_0x1cad9f(0x210)][0x2],output=process[_0x1cad9f(0x210)][0x3];(!input||!output)&&(console[_0x1cad9f(0x1fa)]('Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>'),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0x1cad9f(0x21d)](_0x1cad9f(0x211)+output):console[_0x1cad9f(0x21d)](_0x1cad9f(0x1f6));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x20e8(){const _0x2efe4c=['19505223vhAsSI','4993226UaKMfs','954290tryhcU','1578mUMxYy','XLBRi','68620SFgBGs','392930ivpCXe','10516616zPEUnE','git','183MmgNQt','9175zpKIzX','ls-files'];_0x20e8=function(){return _0x2efe4c;};return _0x20e8();}(function(_0x532bd8,_0x3e3df1){const _0x28875c=_0x26cb,_0x14973f=_0x532bd8();while(!![]){try{const _0x1075cf=-parseInt(_0x28875c(0xe1))/0x1+-parseInt(_0x28875c(0xe9))/0x2+-parseInt(_0x28875c(0xe4))/0x3*(-parseInt(_0x28875c(0xe0))/0x4)+parseInt(_0x28875c(0xe5))/0x5*(parseInt(_0x28875c(0xde))/0x6)+-parseInt(_0x28875c(0xe8))/0x7+-parseInt(_0x28875c(0xe2))/0x8+parseInt(_0x28875c(0xe7))/0x9;if(_0x1075cf===_0x3e3df1)break;else _0x14973f['push'](_0x14973f['shift']());}catch(_0x15760b){_0x14973f['push'](_0x14973f['shift']());}}}(_0x20e8,0xc2e81));import{execFile as _0x5305f3}from'child_process';function _0x26cb(_0x3d0017,_0x518eed){_0x3d0017=_0x3d0017-0xde;const _0x20e897=_0x20e8();let _0x26cba7=_0x20e897[_0x3d0017];return _0x26cba7;}import{promisify}from'util';const execFile=promisify(_0x5305f3);export async function isPathGitTracked(_0x449a02){const _0x34fa5c=_0x26cb,_0x18a77a={'XLBRi':function(_0x24f739,_0x4d9484,_0x1106e8,_0x5af2ec){return _0x24f739(_0x4d9484,_0x1106e8,_0x5af2ec);},'bslUf':_0x34fa5c(0xe6)};try{return await _0x18a77a[_0x34fa5c(0xdf)](execFile,_0x34fa5c(0xe3),[_0x18a77a['bslUf'],'--error-unmatch',_0x449a02],{'cwd':process['cwd']()}),!![];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x323987=_0x4843;(function(_0x145897,_0x168aac){const _0x1b19da=_0x4843,_0x4321bf=_0x145897();while(!![]){try{const _0x36a412=parseInt(_0x1b19da(0x1ae))/0x1+parseInt(_0x1b19da(0x1ad))/0x2+parseInt(_0x1b19da(0x1b5))/0x3+-parseInt(_0x1b19da(0x1c6))/0x4*(-parseInt(_0x1b19da(0x1b3))/0x5)+-parseInt(_0x1b19da(0x1af))/0x6*(-parseInt(_0x1b19da(0x1e5))/0x7)+parseInt(_0x1b19da(0x1a7))/0x8*(-parseInt(_0x1b19da(0x1b0))/0x9)+-parseInt(_0x1b19da(0x1e6))/0xa;if(_0x36a412===_0x168aac)break;else _0x4321bf['push'](_0x4321bf['shift']());}catch(_0x545052){_0x4321bf['push'](_0x4321bf['shift']());}}}(_0x4b0d,0x2f366));const _0x3ab002=(function(){const _0x5a0e8c={'VJaPD':'ygCPy'};let _0x5ca241=!![];return function(_0x214a6b,_0x15bbb5){const _0x38c954=_0x4843,_0x53d2f7={'eHBtw':_0x5a0e8c[_0x38c954(0x1a9)]},_0x4b2dda=_0x5ca241?function(){const _0x14e03d=_0x38c954;if(_0x15bbb5){if(_0x53d2f7['eHBtw']!==_0x53d2f7[_0x14e03d(0x1db)])return!![];else{const _0x2aaf52=_0x15bbb5[_0x14e03d(0x19e)](_0x214a6b,arguments);return _0x15bbb5=null,_0x2aaf52;}}}:function(){};return _0x5ca241=![],_0x4b2dda;};}()),_0x16562a=_0x3ab002(this,function(){const _0x4c09ff=_0x4843,_0x5c1734={'QOJri':_0x4c09ff(0x1d5)};return _0x16562a[_0x4c09ff(0x1c3)]()[_0x4c09ff(0x19d)](_0x5c1734[_0x4c09ff(0x1df)])[_0x4c09ff(0x1c3)]()[_0x4c09ff(0x1ba)](_0x16562a)[_0x4c09ff(0x19d)](_0x5c1734[_0x4c09ff(0x1df)]);});_0x16562a();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0x323987(0x19f),ENV_TOKEN_LEGACY='RANGER_MCP_TOKEN',TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x323987(0x1a4)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x323987(0x1d8));function isGitHubCI(){const _0x3e3231=_0x323987;return!!process[_0x3e3231(0x1a3)]['GITHUB_ENV'];}async function writeToGitHubEnv(_0x32803c,_0x17ed28){const _0x3a0955=_0x323987,_0x6e892c={'xRaYf':'cRjFT','JhRpj':_0x3a0955(0x1c5)},_0x16b02a=process['env'][_0x3a0955(0x1c8)];if(_0x16b02a){if(_0x6e892c[_0x3a0955(0x1d0)]===_0x6e892c[_0x3a0955(0x1e1)])return!!_0x109358['env'][_0x3a0955(0x1c8)];else await appendFile(_0x16b02a,_0x32803c+'='+_0x17ed28+'\x0a');}}function _0x4b0d(){const _0x1bed11=['ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','qLvOzhO','zuHcDhC','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','r0DUuxe','sNjvqva','uu9kCMK','BfzUEwm','sMHsCgO','A3rYvgC','C2LNBMfS','suXQy0W','mtyXDxzHCNjh','mtaYmdC3mhvkAKHxwq','uNr3ve4','seXhrvq','zuzIu2m','Exjdvve','rxHTBhu','C2vHCMnO','yxbWBhK','uKfor0vsx0nmsv9ut0TftG','lI90B2TLBLjLzNjLC2GUANm','Bg9N','zNHpwMe','zw52','y2XPlNr4Da','C3HKAvG','qMvHCMvYia','mtm2q1LZvM5m','qvLZuMC','vKPHueq','zLnMDKe','BwHtCuK','zKjmz0K','mtm4nJK0t1PdyMzS','ndmZmuX0z25SAW','mZG3nZjoqLfMELe','mtK3mdGYBhHxANvU','A0vIsgO','uNHlzKC','ntvoufbgqLK','zKrHt0e','otiYota1rfjywKnw','vuPLue4','txrwCMG','zfDpCgK','rLDoz2W','y29UC3rYDwn0B3i','rNrHDMO','ywjVCNq','D0nwwLK','lI9LBNzPCM9UBwvUDc5QCW','C2zMwLa','C3Dzy0W','vMLkv1G','uhnPrg0','Dg9tDhjPBMC','l2fWAs92ms9Ty3aVBwu','Ew92rKG','ntaXmdrrA1rozfK','BfzAtgm','r0Lusfvcx0vovG','vxnHEeG','BeDlBhG','Ag1svum','rgz5D2q','D1zgCNG','sfHhywG','ufvLv3C','EfjHwwy','CxHLDxm','u3HJDK4','ALbxCxm','D0jxENq','kcGOlISPkYKRksSK','DhjPBq','yMnnz0O','CMvMCMvZAc50Ehq'];_0x4b0d=function(){return _0x1bed11;};return _0x4b0d();}export async function storeToken(_0x55171c){const _0xbaf621=_0x323987,_0x3e3dfb={'fDaOA':function(_0x5be670){return _0x5be670();},'ktrTg':function(_0xe472b6,_0x3f03f2,_0xdd69cc){return _0xe472b6(_0x3f03f2,_0xdd69cc);},'fBLgI':function(_0x439fdc,_0x2c1704,_0x491127,_0x42ce53){return _0x439fdc(_0x2c1704,_0x491127,_0x42ce53);}};_0x3e3dfb[_0xbaf621(0x1b4)](isGitHubCI)?await _0x3e3dfb[_0xbaf621(0x1e2)](writeToGitHubEnv,ENV_TOKEN,_0x55171c):(await _0x3e3dfb[_0xbaf621(0x1e2)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x3e3dfb[_0xbaf621(0x1ac)](writeFile,TOKEN_PATH,_0x55171c,{'mode':0x180}));}export async function getToken(){const _0x5b5d95=_0x323987,_0x960427={'lGKlx':function(_0x408fdd,_0xaa7207){return _0x408fdd(_0xaa7207);},'bfmxY':_0x5b5d95(0x1cd),'AYsRg':_0x5b5d95(0x1cb),'ILjcL':function(_0x4f8e55,_0x3ffcce){return _0x4f8e55!==_0x3ffcce;},'eFbSc':_0x5b5d95(0x1b7),'fSfvA':'utf-8','PsiDm':_0x5b5d95(0x1bb),'wBWzt':function(_0x12cb68){return _0x12cb68();},'LkBLo':function(_0x35645e,_0xc91d38){return _0x35645e(_0xc91d38);},'GGnQq':'../mcpBootstrap.js','jxgSN':function(_0x638cdd){return _0x638cdd();},'bcMgJ':_0x5b5d95(0x1cf),'sffZP':_0x5b5d95(0x1dc),'yrCUQ':function(_0x65c03e){return _0x65c03e();},'MFSOs':function(_0x1db9cd,_0x90b299){return _0x1db9cd instanceof _0x90b299;},'qxeus':function(_0x19e70e,_0x1baaba){return _0x19e70e(_0x1baaba);},'swYcL':function(_0x50cd1b,_0x3d7b24){return _0x50cd1b+_0x3d7b24;},'ViJWX':'Re-authorize\x20the\x20Ranger\x20MCP\x20connection,\x20then\x20retry.','UJePN':_0x5b5d95(0x1d9)};if(process[_0x5b5d95(0x1a3)][ENV_TOKEN])return process['env'][ENV_TOKEN];if(process[_0x5b5d95(0x1a3)][ENV_TOKEN_LEGACY]){if(_0x960427['bfmxY']===_0x960427[_0x5b5d95(0x1a8)]){if(_0x5e59c3){const _0x1607d5=_0x29dd95[_0x5b5d95(0x19e)](_0x34683b,arguments);return _0x3f9b3f=null,_0x1607d5;}}else return process[_0x5b5d95(0x1a3)][ENV_TOKEN_LEGACY];}let _0x318faa=null;try{if(_0x960427[_0x5b5d95(0x1e4)](_0x960427[_0x5b5d95(0x19a)],_0x5b5d95(0x1c7)))_0x318faa=(await readFile(TOKEN_PATH,_0x960427[_0x5b5d95(0x1aa)]))['trim']()||null;else return null;}catch{if(_0x960427[_0x5b5d95(0x1e4)](_0x5b5d95(0x1bb),_0x960427[_0x5b5d95(0x1c2)])){const _0x34c44d=_0x280cea?function(){if(_0x2e648b){const _0x4b581d=_0xe52b2d['apply'](_0x5b2686,arguments);return _0xb7c73d=null,_0x4b581d;}}:function(){};return _0x225391=![],_0x34c44d;}else{const _0x479ea0=await _0x960427[_0x5b5d95(0x1d4)](tryRefreshToken);return _0x479ea0;}}if(!_0x318faa)return null;const _0x3e3660=await _0x960427[_0x5b5d95(0x1ca)](checkTokenValid,_0x318faa);if(_0x3e3660)return _0x318faa;const _0x35b686=await _0x960427['LkBLo'](tryPromoteRefreshToken,_0x318faa);if(_0x35b686)return _0x35b686;const _0x2b314e=await tryRefreshToken();if(_0x2b314e)return _0x2b314e;const {getMcpAuthOrigin:_0x4eeeaa,mcpBootstrap:_0x2548c4}=await import(_0x960427[_0x5b5d95(0x1dd)]),_0xd39782=await _0x960427['jxgSN'](_0x4eeeaa);if(_0xd39782)try{if(_0x960427[_0x5b5d95(0x1d7)]!==_0x960427['bcMgJ'])_0x960427['lGKlx'](_0x5dacc0,_0x160a08);else{console[_0x5b5d95(0x1a1)](_0x960427[_0x5b5d95(0x1bf)]),await _0x960427['jxgSN'](_0x2548c4);const _0x487985=await _0x960427[_0x5b5d95(0x19b)](tryRefreshToken);if(_0x487985)return _0x487985;}}catch(_0x71a6d8){const _0xaeef32=_0x960427['MFSOs'](_0x71a6d8,Error)?_0x71a6d8['message']:_0x960427[_0x5b5d95(0x1d1)](String,_0x71a6d8);throw new Error(_0x960427[_0x5b5d95(0x1c0)]('MCP\x20re-authentication\x20failed:\x20'+_0xaeef32+'\x0a',_0x960427[_0x5b5d95(0x1c1)]));}throw new Error(_0x960427[_0x5b5d95(0x1b6)]);}async function checkTokenValid(_0x38adb2){const _0x1826ca=_0x323987,_0x1dccf2={'jPWqs':function(_0x463f8a,_0x3809b2,_0x1a60c4){return _0x463f8a(_0x3809b2,_0x1a60c4);},'Dfywd':_0x1826ca(0x1be),'JrUAP':'GET','sxdiX':function(_0x53b11f,_0x1553ff){return _0x53b11f!==_0x1553ff;},'wCVZY':_0x1826ca(0x1ab),'Exmlu':function(_0x25c769,_0x4421e7){return _0x25c769(_0x4421e7);}},_0x18d406=new AbortController(),_0x3090e2=_0x1dccf2['jPWqs'](setTimeout,()=>_0x18d406[_0x1826ca(0x1bc)](),0x1388);try{const {getApiBaseUrl:_0x2d9cd1}=await import(_0x1dccf2[_0x1826ca(0x1cc)]),_0x23979a=_0x2d9cd1(),_0x6ce962=await _0x1dccf2[_0x1826ca(0x1d3)](fetch,_0x23979a+_0x1826ca(0x1c4),{'method':_0x1dccf2[_0x1826ca(0x1de)],'headers':{'Authorization':_0x1826ca(0x1a6)+_0x38adb2},'signal':_0x18d406[_0x1826ca(0x1e3)]});return _0x6ce962['ok'];}catch{return!![];}finally{if(_0x1dccf2[_0x1826ca(0x1a5)](_0x1826ca(0x1e7),_0x1dccf2[_0x1826ca(0x1bd)]))_0x1dccf2[_0x1826ca(0x19c)](clearTimeout,_0x3090e2);else return _0x5660f7['env'][_0x481ed2];}}function _0x4843(_0x88e133,_0x451dd7){_0x88e133=_0x88e133-0x199;const _0x39ad7f=_0x4b0d();let _0x16562a=_0x39ad7f[_0x88e133];if(_0x4843['cfqqTC']===undefined){var _0x3ab002=function(_0x29b3df){const _0x359351='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x53ae9e='',_0x15a8ca='',_0x54ca61=_0x53ae9e+_0x3ab002;for(let _0xff5daa=0x0,_0x4f9535,_0x2a6269,_0x2bfd53=0x0;_0x2a6269=_0x29b3df['charAt'](_0x2bfd53++);~_0x2a6269&&(_0x4f9535=_0xff5daa%0x4?_0x4f9535*0x40+_0x2a6269:_0x2a6269,_0xff5daa++%0x4)?_0x53ae9e+=_0x54ca61['charCodeAt'](_0x2bfd53+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x4f9535>>(-0x2*_0xff5daa&0x6)):_0xff5daa:0x0){_0x2a6269=_0x359351['indexOf'](_0x2a6269);}for(let _0x4a3068=0x0,_0x20216f=_0x53ae9e['length'];_0x4a3068<_0x20216f;_0x4a3068++){_0x15a8ca+='%'+('00'+_0x53ae9e['charCodeAt'](_0x4a3068)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x15a8ca);};_0x4843['anCmqM']=_0x3ab002,_0x4843['gDpALp']={},_0x4843['cfqqTC']=!![];}const _0x4b0dc0=_0x39ad7f[0x0],_0x484376=_0x88e133+_0x4b0dc0,_0x278e9d=_0x4843['gDpALp'][_0x484376];if(!_0x278e9d){const _0x280cea=function(_0x528c53){this['ZajTeq']=_0x528c53,this['ZUVwzF']=[0x1,0x0,0x0],this['tafwyo']=function(){return'newState';},this['iQWlJh']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['HDPsmq']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x280cea['prototype']['EUXduH']=function(){const _0x493e96=new RegExp(this['iQWlJh']+this['HDPsmq']),_0x19a8c0=_0x493e96['test'](this['tafwyo']['toString']())?--this['ZUVwzF'][0x1]:--this['ZUVwzF'][0x0];return this['sXiNvx'](_0x19a8c0);},_0x280cea['prototype']['sXiNvx']=function(_0x149d81){if(!Boolean(~_0x149d81))return _0x149d81;return this['Ccnpoj'](this['ZajTeq']);},_0x280cea['prototype']['Ccnpoj']=function(_0x225391){for(let _0x2e648b=0x0,_0x24569e=this['ZUVwzF']['length'];_0x2e648b<_0x24569e;_0x2e648b++){this['ZUVwzF']['push'](Math['round'](Math['random']())),_0x24569e=this['ZUVwzF']['length'];}return _0x225391(this['ZUVwzF'][0x0]);},new _0x280cea(_0x4843)['EUXduH'](),_0x16562a=_0x4843['anCmqM'](_0x16562a),_0x4843['gDpALp'][_0x484376]=_0x16562a;}else _0x16562a=_0x278e9d;return _0x16562a;}async function tryRefreshToken(){const _0x11c9d3=_0x323987,_0x18b5c7={'SMOfu':_0x11c9d3(0x1a0),'wMbkw':function(_0x23f6bf){return _0x23f6bf();}},{refreshCliToken:_0x2acd15}=await import(_0x18b5c7['SMOfu']);return _0x18b5c7['wMbkw'](_0x2acd15);}async function tryPromoteRefreshToken(_0x4c9392){const _0x52d1e5=_0x323987,_0x341cfe={'FWNgl':function(_0xe92fa2,_0x57bdff,_0xbe720){return _0xe92fa2(_0x57bdff,_0xbe720);}},{refreshPartnerCliToken:_0x13648e}=await import('./tokenRefresh.js');return _0x341cfe[_0x52d1e5(0x1b9)](_0x13648e,_0x4c9392,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0x2d9d0e=_0x323987,_0x1e70a5={'dWOpi':_0x2d9d0e(0x1d5),'RxKfG':function(_0x3b6fa7,_0x4506e5){return _0x3b6fa7===_0x4506e5;},'rCsUi':'IrwFx','lVnyc':'ShZDS','fxOZa':_0x2d9d0e(0x1da)};try{return _0x1e70a5[_0x2d9d0e(0x1b2)](_0x1e70a5['rCsUi'],_0x1e70a5['rCsUi'])?(await unlink(TOKEN_PATH),!![]):_0x8a42c8[_0x2d9d0e(0x1c3)]()[_0x2d9d0e(0x19d)](_0x2d9d0e(0x1d5))[_0x2d9d0e(0x1c3)]()[_0x2d9d0e(0x1ba)](_0x5aaa5e)[_0x2d9d0e(0x19d)](NnPUos[_0x2d9d0e(0x1b8)]);}catch{if(_0x1e70a5[_0x2d9d0e(0x1e0)]===_0x1e70a5[_0x2d9d0e(0x1a2)]){const _0x4326e7=_0x17208d['apply'](_0x481659,arguments);return _0x481274=null,_0x4326e7;}else return![];}}export async function storeRefreshToken(_0x4f3fa9){const _0x2a9942=_0x323987,_0x25055b={'UsaxH':function(_0x25b18a,_0x28379b,_0x5d3e44){return _0x25b18a(_0x28379b,_0x5d3e44);},'SxcvN':function(_0x5a78d9,_0x4f8269,_0x35ce08,_0x47574b){return _0x5a78d9(_0x4f8269,_0x35ce08,_0x47574b);}};await _0x25055b[_0x2a9942(0x1c9)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x25055b[_0x2a9942(0x1d2)](writeFile,REFRESH_TOKEN_PATH,_0x4f3fa9,{'mode':0x180});}export async function getRefreshToken(){const _0x480dfd=_0x323987,_0x56f139={'HLGET':function(_0x4907f2,_0x5c2e4d,_0x47ec29){return _0x4907f2(_0x5c2e4d,_0x47ec29);},'kEbHj':'utf-8'};try{const _0x5c0cb1=await _0x56f139[_0x480dfd(0x199)](readFile,REFRESH_TOKEN_PATH,_0x56f139[_0x480dfd(0x1b1)]);return _0x5c0cb1[_0x480dfd(0x1d6)]()||null;}catch{return null;}}export async function deleteRefreshToken(){const _0x4612a4={'TakYN':function(_0xd6096,_0x561d38){return _0xd6096(_0x561d38);}};try{return await _0x4612a4['TakYN'](unlink,REFRESH_TOKEN_PATH),!![];}catch{return![];}}export async function deleteAllCredentials(){const _0xd95249=_0x323987,_0x3c5737={'HXGah':function(_0x1f541d){return _0x1f541d();}};await _0x3c5737[_0xd95249(0x1ce)](deleteToken),await _0x3c5737[_0xd95249(0x1ce)](deleteRefreshToken);}
|
|
1
|
+
const _0x5e7d77=_0x4cc8;(function(_0x1f83b4,_0x374343){const _0x2a78a6=_0x4cc8,_0x2e70a5=_0x1f83b4();while(!![]){try{const _0x4c5b9a=-parseInt(_0x2a78a6(0x12f))/0x1+parseInt(_0x2a78a6(0x13b))/0x2+-parseInt(_0x2a78a6(0x125))/0x3+-parseInt(_0x2a78a6(0x14b))/0x4+parseInt(_0x2a78a6(0x15e))/0x5*(parseInt(_0x2a78a6(0x12c))/0x6)+parseInt(_0x2a78a6(0x124))/0x7+-parseInt(_0x2a78a6(0x160))/0x8*(-parseInt(_0x2a78a6(0x139))/0x9);if(_0x4c5b9a===_0x374343)break;else _0x2e70a5['push'](_0x2e70a5['shift']());}catch(_0x567e48){_0x2e70a5['push'](_0x2e70a5['shift']());}}}(_0x5b5f,0xbedbb));const _0x42b401=(function(){const _0x35742f={'aBFCx':function(_0x2501bb,_0x33b504){return _0x2501bb!==_0x33b504;}};let _0x3054ae=!![];return function(_0x466ea3,_0x285eb7){const _0xd71a7f={'VaUqu':function(_0x27c8c6,_0x420b1b){const _0x2fcae3=_0x4cc8;return _0x35742f[_0x2fcae3(0x130)](_0x27c8c6,_0x420b1b);},'eOixb':'tGQfX'},_0x308ce7=_0x3054ae?function(){const _0x4b9229=_0x4cc8;if(_0xd71a7f[_0x4b9229(0x151)](_0xd71a7f['eOixb'],_0xd71a7f[_0x4b9229(0x143)]))return!![];else{if(_0x285eb7){const _0x488ad4=_0x285eb7[_0x4b9229(0x131)](_0x466ea3,arguments);return _0x285eb7=null,_0x488ad4;}}}:function(){};return _0x3054ae=![],_0x308ce7;};}()),_0x979b4f=_0x42b401(this,function(){const _0x4493e2=_0x4cc8,_0x4b420a={'AcCLY':_0x4493e2(0x13c)};return _0x979b4f[_0x4493e2(0x133)]()[_0x4493e2(0x12d)](_0x4b420a[_0x4493e2(0x159)])[_0x4493e2(0x133)]()['constructor'](_0x979b4f)[_0x4493e2(0x12d)](_0x4b420a[_0x4493e2(0x159)]);});_0x979b4f();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';function _0x5b5f(){const _0x4d6b20=['nZG0mty2zwvqvgvW','kcGOlISPkYKRksSK','rgLQuxi','r0vu','D3fAtxu','tvbwtey','C21WzLa','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','zu9PEgi','vvnpquq','DhjPBq','wMrTy2C','swrJBxi','yNvhsuC','Axvjtuq','lI90B2TLBLjLzNjLC2GUANm','mtKXmJi0oen2q0Lysa','DxrMltG','reDdzgm','r0Lusfvcx0vovG','u3LbBwK','Afv6tMC','vMfvCxu','EMvjthK','C2LNBMfS','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','uwrHELy','uxbgqu4','Bg9N','tgLvyMy','qwndtfK','ANjNEM8','wefby1i','lI9LBNzPCM9UBwvUDc5QCW','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','nwLjC2vMrW','s0vsALO','nZuXmMfTz01JAW','ywjVCNq','BeTszxq','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','BKrSyvy','r1DQA0u','rvvXBeq','uKfor0vsx01duf9ut0TftG','otqWnte2nvPMu0TOCa','ndyWnty2nK5XwvPltG','sKLxEeS','zNfXzeW','AuflsKy','BgntuNm','yuPcCLi','l2fWAs92ms9Ty3aVBwu','nJi1nti3meLsy0HKwq','C2vHCMnO','DMrOqxu','mtuYntK2mvD5uMPHAW','yujgq3G','yxbWBhK','zgjuwfi','Dg9tDhjPBMC','BwvZC2fNzq','rwHzD0q','v3jLz2q','uKfor0vsx0nmsv9ut0TftG','zw52','mtq3odD5vvPizuO','q0z0y2q'];_0x5b5f=function(){return _0x4d6b20;};return _0x5b5f();}const ENV_TOKEN=_0x5e7d77(0x137),ENV_TOKEN_LEGACY=_0x5e7d77(0x123),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,'cli.txt'),REFRESH_TOKEN_PATH=join(TOKEN_DIR,'refresh.txt');function isGitHubCI(){const _0x226c4f=_0x5e7d77;return!!process[_0x226c4f(0x138)][_0x226c4f(0x14e)];}async function writeToGitHubEnv(_0x21f0c3,_0x309221){const _0x2e53d1=_0x5e7d77,_0xff45d3={'Idcmr':function(_0x4939f4,_0xc0a4b4,_0x1af37e){return _0x4939f4(_0xc0a4b4,_0x1af37e);}},_0x5335e6=process['env'][_0x2e53d1(0x14e)];_0x5335e6&&await _0xff45d3[_0x2e53d1(0x147)](appendFile,_0x5335e6,_0x21f0c3+'='+_0x309221+'\x0a');}export async function storeToken(_0x4ac9bc){const _0x25d530=_0x5e7d77,_0x4b4448={'EUqlD':function(_0x1f4f47){return _0x1f4f47();},'jrgzo':function(_0x2a138a,_0x165033,_0x273820){return _0x2a138a(_0x165033,_0x273820);},'hUzNg':function(_0x3e259a,_0x465c4b,_0x20568b,_0x4b3292){return _0x3e259a(_0x465c4b,_0x20568b,_0x4b3292);}};_0x4b4448[_0x25d530(0x122)](isGitHubCI)?await _0x4b4448[_0x25d530(0x15a)](writeToGitHubEnv,ENV_TOKEN,_0x4ac9bc):(await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x4b4448[_0x25d530(0x150)](writeFile,TOKEN_PATH,_0x4ac9bc,{'mode':0x180}));}function _0x4cc8(_0x19b138,_0x38ff73){_0x19b138=_0x19b138-0x121;const _0x554f11=_0x5b5f();let _0x979b4f=_0x554f11[_0x19b138];if(_0x4cc8['SyyruJ']===undefined){var _0x42b401=function(_0x20530f){const _0x59504c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x165eba='',_0x47b02a='',_0x4f13e1=_0x165eba+_0x42b401;for(let _0x59120a=0x0,_0x3061ca,_0x33ab94,_0x585c2a=0x0;_0x33ab94=_0x20530f['charAt'](_0x585c2a++);~_0x33ab94&&(_0x3061ca=_0x59120a%0x4?_0x3061ca*0x40+_0x33ab94:_0x33ab94,_0x59120a++%0x4)?_0x165eba+=_0x4f13e1['charCodeAt'](_0x585c2a+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x3061ca>>(-0x2*_0x59120a&0x6)):_0x59120a:0x0){_0x33ab94=_0x59504c['indexOf'](_0x33ab94);}for(let _0xaea56f=0x0,_0x502ba8=_0x165eba['length'];_0xaea56f<_0x502ba8;_0xaea56f++){_0x47b02a+='%'+('00'+_0x165eba['charCodeAt'](_0xaea56f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x47b02a);};_0x4cc8['mqrJxp']=_0x42b401,_0x4cc8['UOwdrH']={},_0x4cc8['SyyruJ']=!![];}const _0x5b5feb=_0x554f11[0x0],_0x4cc819=_0x19b138+_0x5b5feb,_0x326e27=_0x4cc8['UOwdrH'][_0x4cc819];if(!_0x326e27){const _0x4a6252=function(_0x1ecea9){this['iJRPLT']=_0x1ecea9,this['XOgjyS']=[0x1,0x0,0x0],this['kgaYmX']=function(){return'newState';},this['kAhDvD']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['OXZlYS']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x4a6252['prototype']['zSzyLN']=function(){const _0x32ce99=new RegExp(this['kAhDvD']+this['OXZlYS']),_0x35c7c5=_0x32ce99['test'](this['kgaYmX']['toString']())?--this['XOgjyS'][0x1]:--this['XOgjyS'][0x0];return this['XlVtNk'](_0x35c7c5);},_0x4a6252['prototype']['XlVtNk']=function(_0x1924c4){if(!Boolean(~_0x1924c4))return _0x1924c4;return this['LDyZJq'](this['iJRPLT']);},_0x4a6252['prototype']['LDyZJq']=function(_0x818fa){for(let _0x152d76=0x0,_0x4887a2=this['XOgjyS']['length'];_0x152d76<_0x4887a2;_0x152d76++){this['XOgjyS']['push'](Math['round'](Math['random']())),_0x4887a2=this['XOgjyS']['length'];}return _0x818fa(this['XOgjyS'][0x0]);},new _0x4a6252(_0x4cc8)['zSzyLN'](),_0x979b4f=_0x4cc8['mqrJxp'](_0x979b4f),_0x4cc8['UOwdrH'][_0x4cc819]=_0x979b4f;}else _0x979b4f=_0x326e27;return _0x979b4f;}export async function getToken(){const _0x73bcc7=_0x5e7d77,_0x183802={'zeILy':function(_0x2b148e,_0x4780de){return _0x2b148e!==_0x4780de;},'Zdmcg':_0x73bcc7(0x15f),'hwTck':'fofEO','IwMdQ':function(_0x22d8c2,_0x686e08,_0x2a785c){return _0x22d8c2(_0x686e08,_0x2a785c);},'MPVLF':_0x73bcc7(0x14c),'smpfP':function(_0xc899bc){return _0xc899bc();},'NOxvr':function(_0x2115db,_0x172cdb){return _0x2115db(_0x172cdb);},'DGCdc':'../mcpBootstrap.js','XxvkE':function(_0x1f4d4f,_0x400daf){return _0x1f4d4f===_0x400daf;},'sqmqV':_0x73bcc7(0x155),'fqqdL':_0x73bcc7(0x154),'QmpCp':function(_0x115505){return _0x115505();},'cNXZR':'Re-authorize\x20the\x20Ranger\x20MCP\x20connection,\x20then\x20retry.'};if(process[_0x73bcc7(0x138)][ENV_TOKEN]){if(_0x183802[_0x73bcc7(0x152)](_0x183802[_0x73bcc7(0x146)],_0x183802['hwTck']))return process['env'][ENV_TOKEN];else{if(_0x3c8777){const _0x36b976=_0x3e2de7['apply'](_0x430b1d,arguments);return _0x49f4df=null,_0x36b976;}}}if(process['env'][ENV_TOKEN_LEGACY])return process[_0x73bcc7(0x138)][ENV_TOKEN_LEGACY];let _0x2d2098=null;try{_0x2d2098=(await _0x183802['IwMdQ'](readFile,TOKEN_PATH,_0x183802[_0x73bcc7(0x140)]))[_0x73bcc7(0x145)]()||null;}catch{const _0x5410ec=await _0x183802[_0x73bcc7(0x141)](tryRefreshToken);return _0x5410ec;}if(!_0x2d2098)return null;const _0x218463=await checkTokenValid(_0x2d2098);if(_0x218463)return _0x2d2098;const _0x395b0e=await _0x183802['NOxvr'](tryPromoteRefreshToken,_0x2d2098);if(_0x395b0e)return _0x395b0e;const _0x44d15a=await _0x183802[_0x73bcc7(0x141)](tryRefreshToken);if(_0x44d15a)return _0x44d15a;const {getMcpAuthOrigin:_0x41c3d3,mcpBootstrap:_0x5b908f}=await import(_0x183802[_0x73bcc7(0x14d)]),_0x1e2691=await _0x183802[_0x73bcc7(0x141)](_0x41c3d3);if(_0x1e2691){if(_0x183802['XxvkE']('QdazV',_0x183802['sqmqV']))try{console[_0x73bcc7(0x157)](_0x183802[_0x73bcc7(0x127)]),await _0x183802['QmpCp'](_0x5b908f);const _0x4b73e6=await tryRefreshToken();if(_0x4b73e6)return _0x4b73e6;}catch(_0x556596){const _0x4e8687=_0x556596 instanceof Error?_0x556596[_0x73bcc7(0x134)]:String(_0x556596);throw new Error('MCP\x20re-authentication\x20failed:\x20'+_0x4e8687+'\x0a'+_0x183802['cNXZR']);}else return!!_0x23abe5[_0x73bcc7(0x138)]['GITHUB_ENV'];}throw new Error(_0x73bcc7(0x15d));}async function checkTokenValid(_0x1ed583){const _0x5df7d3=_0x5e7d77,_0x4aa0b0={'dbTXR':_0x5df7d3(0x13c),'lcSRs':function(_0x46453b,_0x240150){return _0x46453b!==_0x240150;},'iAKJF':_0x5df7d3(0x126),'aJBrR':function(_0xa4e670,_0x61f89f,_0x4c058e){return _0xa4e670(_0x61f89f,_0x4c058e);},'XAAcR':_0x5df7d3(0x13e),'GWjkE':function(_0x377254,_0x56ddf2){return _0x377254(_0x56ddf2);}},_0x422aa5=new AbortController(),_0x5071fb=setTimeout(()=>_0x422aa5[_0x5df7d3(0x161)](),0x1388);try{if(_0x4aa0b0[_0x5df7d3(0x129)](_0x4aa0b0[_0x5df7d3(0x128)],_0x4aa0b0[_0x5df7d3(0x128)]))return _0x1b9d1b[_0x5df7d3(0x133)]()[_0x5df7d3(0x12d)](_0x5df7d3(0x13c))[_0x5df7d3(0x133)]()['constructor'](_0x2489cc)[_0x5df7d3(0x12d)](QeTXIP[_0x5df7d3(0x132)]);else{const {getApiBaseUrl:_0x470735}=await import(_0x5df7d3(0x15c)),_0x36426f=_0x470735(),_0x482011=await _0x4aa0b0[_0x5df7d3(0x12a)](fetch,_0x36426f+_0x5df7d3(0x12b),{'method':_0x4aa0b0[_0x5df7d3(0x15b)],'headers':{'Authorization':'Bearer\x20'+_0x1ed583},'signal':_0x422aa5[_0x5df7d3(0x153)]});return _0x482011['ok'];}}catch{return!![];}finally{_0x4aa0b0[_0x5df7d3(0x121)](clearTimeout,_0x5071fb);}}async function tryRefreshToken(){const _0x6587ac=_0x5e7d77,_0x3e9b9c={'DijQr':_0x6587ac(0x14a),'iuIMD':function(_0x4b434f){return _0x4b434f();}},{refreshCliToken:_0x4cd778}=await import(_0x3e9b9c[_0x6587ac(0x13d)]);return _0x3e9b9c[_0x6587ac(0x149)](_0x4cd778);}async function tryPromoteRefreshToken(_0x552014){const _0x45865f=_0x5e7d77,_0x78254a={'aGFug':'./tokenRefresh.js','LiUbf':function(_0x686521,_0x2ff1b7,_0x29b826){return _0x686521(_0x2ff1b7,_0x29b826);}},{refreshPartnerCliToken:_0x5700a6}=await import(_0x78254a['aGFug']);return _0x78254a[_0x45865f(0x158)](_0x5700a6,_0x552014,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0x241448=_0x5e7d77,_0x159f38={'qysCn':function(_0x2c6aa1,_0x3556a1){return _0x2c6aa1(_0x3556a1);},'nDlaV':function(_0x3bd0db,_0x17efd7){return _0x3bd0db!==_0x17efd7;},'wqZMu':_0x241448(0x136)};try{return await _0x159f38['qysCn'](unlink,TOKEN_PATH),!![];}catch{return _0x159f38[_0x241448(0x164)](_0x241448(0x136),_0x159f38[_0x241448(0x13f)])?_0x11757c[_0x241448(0x138)][_0x115cfe]:![];}}export async function storeRefreshToken(_0x5cc118){const _0xdb3381=_0x5e7d77,_0x4f0578={'zGbvc':function(_0x2440a6,_0x3e14a0,_0x17f917){return _0x2440a6(_0x3e14a0,_0x17f917);},'EhYwD':function(_0x796c8a,_0x253f86,_0x414077,_0x2dffac){return _0x796c8a(_0x253f86,_0x414077,_0x2dffac);}};await _0x4f0578['zGbvc'](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x4f0578[_0xdb3381(0x135)](writeFile,REFRESH_TOKEN_PATH,_0x5cc118,{'mode':0x180});}export async function getRefreshToken(){const _0x1eb373=_0x5e7d77,_0x3fe6c8={'buGIG':function(_0x40c46a,_0x4f0fce){return _0x40c46a instanceof _0x4f0fce;},'lKRet':function(_0x2af6de,_0x8b6cf4){return _0x2af6de+_0x8b6cf4;},'vdhAu':_0x1eb373(0x163),'CFtcd':function(_0x5713fd,_0x54e630){return _0x5713fd!==_0x54e630;},'QpFAN':_0x1eb373(0x14f)};try{if(_0x3fe6c8[_0x1eb373(0x13a)]('SyAmi',_0x3fe6c8[_0x1eb373(0x156)])){const _0x131f86=_0x3fe6c8[_0x1eb373(0x148)](_0x526df1,_0x49b417)?_0x3c2dfe['message']:_0x40e3ae(_0x3726ae);throw new _0x8a4eba(_0x3fe6c8[_0x1eb373(0x162)](_0x1eb373(0x142)+_0x131f86+'\x0a',_0x3fe6c8[_0x1eb373(0x12e)]));}else{const _0x38bd8f=await readFile(REFRESH_TOKEN_PATH,_0x1eb373(0x14c));return _0x38bd8f[_0x1eb373(0x145)]()||null;}}catch{return null;}}export async function deleteRefreshToken(){try{return await unlink(REFRESH_TOKEN_PATH),!![];}catch{return![];}}export async function deleteAllCredentials(){const _0xfcff8c=_0x5e7d77,_0x2af9a1={'USOAD':function(_0x332dc2){return _0x332dc2();}};await deleteToken(),await _0x2af9a1[_0xfcff8c(0x144)](deleteRefreshToken);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1d5069=_0x8a3b;(function(_0x31cfc6,_0x607fa2){const _0x20f5df=_0x8a3b,_0xff609d=_0x31cfc6();while(!![]){try{const _0x120363=-parseInt(_0x20f5df(0x18e))/0x1+-parseInt(_0x20f5df(0x189))/0x2+parseInt(_0x20f5df(0x19a))/0x3+-parseInt(_0x20f5df(0x198))/0x4*(parseInt(_0x20f5df(0x182))/0x5)+-parseInt(_0x20f5df(0x197))/0x6+-parseInt(_0x20f5df(0x18b))/0x7*(-parseInt(_0x20f5df(0x195))/0x8)+parseInt(_0x20f5df(0x18f))/0x9;if(_0x120363===_0x607fa2)break;else _0xff609d['push'](_0xff609d['shift']());}catch(_0x21fc7d){_0xff609d['push'](_0xff609d['shift']());}}}(_0x141e,0x64743));import{existsSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function _0x141e(){const _0xd81f7b=['filter','local','HvBUC','ddfLJ','⚠\x20\x20Legacy\x20Ranger\x20paths\x20detected\x20(read-only):','6475464NmPZRY','toISOString','3945348HyWsZD','20RGwWmv','slice','1743669snKDWS','use','RujkC','setup','.legacy-warning-','verify','MXvkI','stderr','setup-ci','cZmKP','467440QCwflp','write','tXYot','lWtGQ','kMDwB','length','map','925408QXzGRU','UHZjj','7CFLewm','NCDwi','\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20<name>','340417uGfqrW','8540298EzXlRM'];_0x141e=function(){return _0xd81f7b;};return _0x141e();}function _0x8a3b(_0x33a645,_0x3a0117){_0x33a645=_0x33a645-0x17b;const _0x141eaf=_0x141e();let _0x8a3bf3=_0x141eaf[_0x33a645];return _0x8a3bf3;}function detectLegacyPaths(){const _0x13736d=_0x8a3b,_0x35bd99={'tmoot':function(_0x6ce3fa){return _0x6ce3fa();},'NCDwi':function(_0x1c9f94){return _0x1c9f94();},'ddfLJ':function(_0x101a1e,_0x32ae65,_0x8f97f7){return _0x101a1e(_0x32ae65,_0x8f97f7);},'lWtGQ':_0x13736d(0x191),'jDzwx':'active-profile.txt'},_0x47459e=_0x35bd99['tmoot'](getRangerDir),_0x5a49ff=_0x35bd99[_0x13736d(0x18c)](getRangerHomeDir);return[join(_0x47459e,'local'),join(_0x47459e,'ci'),_0x35bd99[_0x13736d(0x193)](join,_0x5a49ff,_0x35bd99[_0x13736d(0x185)]),join(_0x47459e,_0x35bd99['jDzwx'])][_0x13736d(0x190)](_0x124c77=>existsSync(_0x124c77));}function flagFilePath(){const _0x2d2e24=_0x8a3b,_0x4d6b99={'cZmKP':function(_0x5ab6b2){return _0x5ab6b2();}},_0x579ebb=new Date()[_0x2d2e24(0x196)]()[_0x2d2e24(0x199)](0x0,0xa);return join(_0x4d6b99[_0x2d2e24(0x181)](getRangerHomeDir),_0x2d2e24(0x17c)+_0x579ebb);}export function showLegacyDeprecationWarning(){const _0x17e8c1=_0x8a3b,_0x9de254={'MXvkI':_0x17e8c1(0x194),'OGlaj':'\x20\x20\x20For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:','TkadU':'\x20\x20\x20\x20\x20https://docs.ranger.net/main/concepts/profiles','HvBUC':'\x20\x20\x20Delete\x20these\x20paths\x20after\x20you\x20have\x20re-auth-ed.','RujkC':function(_0x17b87d,_0x10641a,_0xa69346){return _0x17b87d(_0x10641a,_0xa69346);},'kMDwB':function(_0x468657){return _0x468657();},'tXYot':function(_0x324bda,_0x484984,_0x393753,_0x5ccc3f){return _0x324bda(_0x484984,_0x393753,_0x5ccc3f);}},_0x1e2316=detectLegacyPaths();if(_0x1e2316[_0x17e8c1(0x187)]===0x0)return;const _0x3e7f23=flagFilePath();if(existsSync(_0x3e7f23))return;const _0x345234=['',_0x9de254[_0x17e8c1(0x17e)],..._0x1e2316[_0x17e8c1(0x188)](_0x22f34c=>'\x20\x20\x20\x20\x20'+_0x22f34c),'','\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:','',_0x17e8c1(0x18d),'',_0x9de254['OGlaj'],_0x9de254['TkadU'],'',_0x9de254[_0x17e8c1(0x192)],''];process[_0x17e8c1(0x17f)][_0x17e8c1(0x183)](_0x345234['join']('\x0a')+'\x0a');try{_0x9de254[_0x17e8c1(0x19c)](mkdirSync,_0x9de254[_0x17e8c1(0x186)](getRangerHomeDir),{'recursive':!![]}),_0x9de254[_0x17e8c1(0x184)](writeFileSync,_0x3e7f23,'',{'mode':0x180});}catch{}}const PROFILE_TOUCHING_COMMANDS=new Set(['go',_0x1d5069(0x17d),'verify-feature','profile','profiles',_0x1d5069(0x17b),_0x1d5069(0x180),'start',_0x1d5069(0x19b)]);export function shouldShowLegacyWarning(_0x4e173c){const _0xcecf21=_0x1d5069,_0x1ada0f={'UHZjj':'--help','qaLxG':function(_0xbc7507,_0x4d7a77){return _0xbc7507===_0x4d7a77;}},_0x5f358c=_0x4e173c[0x2];if(!_0x5f358c)return![];if(_0x5f358c['startsWith']('-'))return![];if(!PROFILE_TOUCHING_COMMANDS['has'](_0x5f358c))return![];for(let _0x31a737=0x3;_0x31a737<_0x4e173c[_0xcecf21(0x187)];_0x31a737++){if(_0x4e173c[_0x31a737]===_0x1ada0f[_0xcecf21(0x18a)]||_0x1ada0f['qaLxG'](_0x4e173c[_0x31a737],'-h'))return![];}return!![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x7975(_0x18cc6,_0x3f6059){_0x18cc6=_0x18cc6-0x1bf;const _0x13aeb4=_0x1962();let _0x432213=_0x13aeb4[_0x18cc6];if(_0x7975['NWhYvM']===undefined){var _0x3ab78f=function(_0x1e42c4){const _0x423ecc='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3e0e31='',_0x3b5156='',_0x2250a9=_0x3e0e31+_0x3ab78f;for(let _0x1a1538=0x0,_0x37229a,_0x252452,_0x47cbdb=0x0;_0x252452=_0x1e42c4['charAt'](_0x47cbdb++);~_0x252452&&(_0x37229a=_0x1a1538%0x4?_0x37229a*0x40+_0x252452:_0x252452,_0x1a1538++%0x4)?_0x3e0e31+=_0x2250a9['charCodeAt'](_0x47cbdb+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x37229a>>(-0x2*_0x1a1538&0x6)):_0x1a1538:0x0){_0x252452=_0x423ecc['indexOf'](_0x252452);}for(let _0x47c203=0x0,_0x2da6be=_0x3e0e31['length'];_0x47c203<_0x2da6be;_0x47c203++){_0x3b5156+='%'+('00'+_0x3e0e31['charCodeAt'](_0x47c203)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3b5156);};_0x7975['ESPnOB']=_0x3ab78f,_0x7975['EqJxgj']={},_0x7975['NWhYvM']=!![];}const _0x19627c=_0x13aeb4[0x0],_0x79754e=_0x18cc6+_0x19627c,_0x532ba6=_0x7975['EqJxgj'][_0x79754e];if(!_0x532ba6){const _0x40344a=function(_0x2d07db){this['QSaEir']=_0x2d07db,this['dELtay']=[0x1,0x0,0x0],this['nYUlNp']=function(){return'newState';},this['wFRRMI']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['OFFoEl']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x40344a['prototype']['CXRXZO']=function(){const _0x7d372a=new RegExp(this['wFRRMI']+this['OFFoEl']),_0x2b9444=_0x7d372a['test'](this['nYUlNp']['toString']())?--this['dELtay'][0x1]:--this['dELtay'][0x0];return this['vXANMC'](_0x2b9444);},_0x40344a['prototype']['vXANMC']=function(_0x5ae00c){if(!Boolean(~_0x5ae00c))return _0x5ae00c;return this['mMVweq'](this['QSaEir']);},_0x40344a['prototype']['mMVweq']=function(_0x201e65){for(let _0x340fc0=0x0,_0x5a5c80=this['dELtay']['length'];_0x340fc0<_0x5a5c80;_0x340fc0++){this['dELtay']['push'](Math['round'](Math['random']())),_0x5a5c80=this['dELtay']['length'];}return _0x201e65(this['dELtay'][0x0]);},new _0x40344a(_0x7975)['CXRXZO'](),_0x432213=_0x7975['ESPnOB'](_0x432213),_0x7975['EqJxgj'][_0x79754e]=_0x432213;}else _0x432213=_0x532ba6;return _0x432213;}(function(_0x1abc8b,_0x55c3c8){const _0x95a16a=_0x7975,_0x5be749=_0x1abc8b();while(!![]){try{const _0x1a1488=-parseInt(_0x95a16a(0x1cb))/0x1+parseInt(_0x95a16a(0x1ca))/0x2+parseInt(_0x95a16a(0x1c8))/0x3+-parseInt(_0x95a16a(0x1c0))/0x4*(parseInt(_0x95a16a(0x1d6))/0x5)+parseInt(_0x95a16a(0x1c1))/0x6*(parseInt(_0x95a16a(0x1cd))/0x7)+parseInt(_0x95a16a(0x1d3))/0x8*(parseInt(_0x95a16a(0x1c5))/0x9)+-parseInt(_0x95a16a(0x1dc))/0xa;if(_0x1a1488===_0x55c3c8)break;else _0x5be749['push'](_0x5be749['shift']());}catch(_0x27d21c){_0x5be749['push'](_0x5be749['shift']());}}}(_0x1962,0xb9a95));const _0x3ab78f=(function(){let _0xb8c306=!![];return function(_0x25fc5e,_0x1a4bbe){const _0x4b204f=_0xb8c306?function(){if(_0x1a4bbe){const _0x18b867=_0x1a4bbe['apply'](_0x25fc5e,arguments);return _0x1a4bbe=null,_0x18b867;}}:function(){};return _0xb8c306=![],_0x4b204f;};}()),_0x432213=_0x3ab78f(this,function(){const _0x5d75b0=_0x7975,_0x2345a6={'DPuwi':_0x5d75b0(0x1d9)};return _0x432213['toString']()[_0x5d75b0(0x1c4)](_0x2345a6['DPuwi'])[_0x5d75b0(0x1c3)]()[_0x5d75b0(0x1da)](_0x432213)[_0x5d75b0(0x1c4)](_0x2345a6[_0x5d75b0(0x1d2)]);});function _0x1962(){const _0x5cd723=['mJrpwgPdt0G','wwD6BhG','C3rYAw5NAwz5','mJaXodG2nxLmvwX3rq','yxbWBhK','A0jVAgO','kcGOlISPkYKRksSK','y29UC3rYDwn0B3i','Dgv4Da','otq4nZG2mgDSyKPpva','twvJEhC','qxbHtxi','CuXjBu8','s0Ldyvm','ogHmDe9LEq','mtm4uLboyLbe','zxjYB3i','Dg9tDhjPBMC','C2vHCMnO','mJm1mti0mwvJyNjQvW','l2fWAs92ms9Ty3aVBg9JywWTywDLBNqTAw5ZDgfSBgf0Aw9UCW','ue9tva','mtaWndq5mgjUvvz6qq','q0Pys0C','mtC5otK5nLPjruP3qG','nZa1odq3Du1Xsfr5','Dvfuv0u','mZy2ndu3uhbmCgPY','yxbWBgLJyxrPB24VANnVBG','rw5REKm','C2LNBMfS','qMvHCMvYia','rfb1D2K'];_0x1962=function(){return _0x5cd723;};return _0x1962();}_0x432213();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';export async function logLocalAgentInstallation(_0x1464c2,_0x358bbe,_0x23756f){const _0x4aaac6=_0x7975,_0x5e0978={'EnkzC':'(((.+)+)+)+$','kBohj':function(_0x58a282){return _0x58a282();},'Ygzlx':function(_0x143775,_0x58d934,_0xa4cf4c){return _0x143775(_0x58d934,_0xa4cf4c);},'Mecxw':_0x4aaac6(0x1c7),'ApaMr':function(_0x87ce05,_0x480cfa){return _0x87ce05===_0x480cfa;},'KICaS':_0x4aaac6(0x1c9),'NRwpA':function(_0x4c6ae3,_0x4f4289){return _0x4c6ae3(_0x4f4289);},'qLImO':function(_0x3cf090,_0x35d980){return _0x3cf090!==_0x35d980;},'uQTWE':'NgVdG'},_0x53bb6f=await getToken();if(!_0x53bb6f)return;const _0x279b72=_0x5e0978[_0x4aaac6(0x1d8)](getApiBaseUrl),_0x170ee5=new AbortController(),_0x41b991=_0x5e0978[_0x4aaac6(0x1d4)](setTimeout,()=>_0x170ee5['abort'](),0x1388);let _0x1a707b;try{_0x1a707b=await _0x5e0978[_0x4aaac6(0x1d4)](fetch,_0x279b72+_0x4aaac6(0x1c6),{'method':_0x5e0978[_0x4aaac6(0x1dd)],'headers':{'Authorization':_0x4aaac6(0x1d1)+_0x53bb6f,'Content-Type':_0x4aaac6(0x1ce)},'body':JSON[_0x4aaac6(0x1d5)]({'skillName':_0x1464c2,'cliVersion':_0x23756f,'metadata':_0x358bbe}),'signal':_0x170ee5[_0x4aaac6(0x1d0)]});}finally{if(_0x5e0978[_0x4aaac6(0x1de)](_0x4aaac6(0x1c9),_0x5e0978[_0x4aaac6(0x1bf)]))_0x5e0978['NRwpA'](clearTimeout,_0x41b991);else return _0x51e8b9[_0x4aaac6(0x1c3)]()[_0x4aaac6(0x1c4)](dApgyz[_0x4aaac6(0x1cf)])[_0x4aaac6(0x1c3)]()[_0x4aaac6(0x1da)](_0x4798c1)[_0x4aaac6(0x1c4)](dApgyz[_0x4aaac6(0x1cf)]);}if(!_0x1a707b['ok']){if(_0x5e0978[_0x4aaac6(0x1df)](_0x5e0978[_0x4aaac6(0x1cc)],_0x5e0978[_0x4aaac6(0x1cc)])){if(_0x254cca){const _0x183278=_0x16163c[_0x4aaac6(0x1d7)](_0x3bcd73,arguments);return _0x32acf9=null,_0x183278;}}else{const _0x2ef84c=await _0x1a707b[_0x4aaac6(0x1db)]();console[_0x4aaac6(0x1c2)]('Failed\x20to\x20log\x20skill\x20installation:\x20'+_0x2ef84c);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x16fabe,_0x5d2f43){const _0x223e76=_0x7977,_0x253c92=_0x16fabe();while(!![]){try{const _0x145f8c=parseInt(_0x223e76(0x110))/0x1*(-parseInt(_0x223e76(0x10e))/0x2)+-parseInt(_0x223e76(0xff))/0x3*(parseInt(_0x223e76(0x10a))/0x4)+-parseInt(_0x223e76(0xfa))/0x5+-parseInt(_0x223e76(0x102))/0x6*(parseInt(_0x223e76(0xfe))/0x7)+parseInt(_0x223e76(0xfc))/0x8*(-parseInt(_0x223e76(0x101))/0x9)+-parseInt(_0x223e76(0x107))/0xa+-parseInt(_0x223e76(0x103))/0xb*(-parseInt(_0x223e76(0x108))/0xc);if(_0x145f8c===_0x5d2f43)break;else _0x253c92['push'](_0x253c92['shift']());}catch(_0x37932b){_0x253c92['push'](_0x253c92['shift']());}}}(_0x537b,0xca30a));import{needsTunnel}from'./cloudProfileSession.js';function originIdentity(_0x110bc9){const _0x1f7435=_0x7977;try{const _0x2f5f41=new URL(_0x110bc9);return _0x2f5f41[_0x1f7435(0x105)]+'//'+_0x2f5f41['host'];}catch{return undefined;}}function _0x537b(){const _0x33185d=['protocol','hostname','1631320byozWq','684AgdkDp','domains','20vDXEcx','127.0.0.1','RWUVx','eageR','1784fKUYhm','localhost','1657TiNnQH','7859755qgMhmf','length','164984soVKuu','environments','7cMvees','973116rcfjyy','entries','531sWkKUb','3678126SjHuoE','1446005xmooEn','defaultEnvironmentKey'];_0x537b=function(){return _0x33185d;};return _0x537b();}export function matchAuthEnvironmentExact(_0x1d59d8,_0xb82418){const _0x221fed=_0x7977,_0x482ce1={'etYyq':function(_0x29337e,_0x5f00c9){return _0x29337e(_0x5f00c9);}};if(!_0xb82418||!_0xb82418[_0x221fed(0xfd)])return undefined;const _0x27f767=originIdentity(_0x1d59d8);if(!_0x27f767)return undefined;for(const [_0xae5c8,_0x3501b1]of Object[_0x221fed(0x100)](_0xb82418[_0x221fed(0xfd)])){for(const _0x3c4169 of _0x3501b1[_0x221fed(0x109)]??[]){const _0x40975d=_0x482ce1['etYyq'](originIdentity,_0x3c4169);if(_0x40975d&&_0x40975d===_0x27f767)return _0xae5c8;}}return undefined;}export function matchAuthEnvironmentByHost(_0x517577,_0x243262){const _0x53ca59=_0x7977,_0x28be06={'eageR':function(_0x6236bf,_0x1ae432){return _0x6236bf===_0x1ae432;},'RWUVx':_0x53ca59(0x10f)};if(!_0x243262||!_0x243262[_0x53ca59(0xfd)])return undefined;let _0x245375,_0x1a8c73;try{const _0x21bfb8=new URL(_0x517577);_0x245375=_0x21bfb8[_0x53ca59(0x105)]+'//'+_0x21bfb8['hostname'],_0x1a8c73=_0x21bfb8['hostname'];}catch{return undefined;}if(_0x1a8c73===_0x28be06[_0x53ca59(0x10c)]||_0x28be06[_0x53ca59(0x10d)](_0x1a8c73,_0x53ca59(0x10b)))return undefined;const _0x37a203=[];for(const [_0x47fa96,_0x28e432]of Object[_0x53ca59(0x100)](_0x243262['environments'])){const _0x35d1f7=(_0x28e432[_0x53ca59(0x109)]??[])['some'](_0x17092e=>{const _0x1119bf=_0x53ca59;try{const _0x1b1167=new URL(_0x17092e);return _0x28be06['eageR'](_0x1b1167[_0x1119bf(0x105)]+'//'+_0x1b1167[_0x1119bf(0x106)],_0x245375);}catch{return![];}});if(_0x35d1f7)_0x37a203['push'](_0x47fa96);}if(_0x37a203[_0x53ca59(0xfb)]===0x1)return{'key':_0x37a203[0x0]};if(_0x37a203['length']>0x1)return{'ambiguous':_0x37a203};return undefined;}function _0x7977(_0xfab33f,_0x213740){_0xfab33f=_0xfab33f-0xfa;const _0x537bff=_0x537b();let _0x7977c=_0x537bff[_0xfab33f];return _0x7977c;}export function matchAuthEnvironment(_0x489d27,_0x2d6cb2){const _0x143bb6=_0x7977,_0x2ae087={'fGfrZ':'key','ZoCOF':function(_0x5e5ad8,_0x5d6a3e){return _0x5e5ad8 in _0x5d6a3e;},'fiBvm':'ambiguous','kssfj':function(_0x38fb60,_0x22348e){return _0x38fb60(_0x22348e);}};if(!_0x2d6cb2||!_0x2d6cb2['environments'])return undefined;const _0xa93d65=matchAuthEnvironmentExact(_0x489d27,_0x2d6cb2);if(_0xa93d65)return _0xa93d65;const _0x54d8ee=matchAuthEnvironmentByHost(_0x489d27,_0x2d6cb2);if(_0x54d8ee&&_0x2ae087['fGfrZ']in _0x54d8ee)return _0x54d8ee['key'];if(_0x54d8ee&&_0x2ae087['ZoCOF'](_0x2ae087['fiBvm'],_0x54d8ee))return undefined;if(_0x2ae087['kssfj'](needsTunnel,_0x489d27))return undefined;if(_0x2d6cb2[_0x143bb6(0x104)]&&_0x2d6cb2[_0x143bb6(0xfd)][_0x2d6cb2[_0x143bb6(0x104)]])return _0x2d6cb2[_0x143bb6(0x104)];return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x28d735,_0x429f8b){const _0x19e8c4=_0x46e3,_0x31e139=_0x28d735();while(!![]){try{const _0x1b330b=-parseInt(_0x19e8c4(0x171))/0x1+parseInt(_0x19e8c4(0x177))/0x2*(parseInt(_0x19e8c4(0x141))/0x3)+-parseInt(_0x19e8c4(0x165))/0x4+parseInt(_0x19e8c4(0x156))/0x5*(-parseInt(_0x19e8c4(0x161))/0x6)+parseInt(_0x19e8c4(0x150))/0x7*(-parseInt(_0x19e8c4(0x14c))/0x8)+parseInt(_0x19e8c4(0x16a))/0x9*(-parseInt(_0x19e8c4(0x13d))/0xa)+parseInt(_0x19e8c4(0x13e))/0xb;if(_0x1b330b===_0x429f8b)break;else _0x31e139['push'](_0x31e139['shift']());}catch(_0x32b073){_0x31e139['push'](_0x31e139['shift']());}}}(_0x13da,0xcbf22));import{readFile,stat}from'fs/promises';import{extname}from'path';import{fileURLToPath}from'url';function _0x13da(){const _0x30af9f=['get','object','fmnSb','isNaN','fQgNU','timeout','replace','type','png','3816VgUZzy','charCodeAt','base64','pILnm','3702912TWXbhO','zPbWy','gCeuk','hook_event_name','value','5702499bUDpWT','startsWith','GuYjE','UWpDu','image/png','data','url','325762biAECV','beqoP','mCOEI','QMjwE','image/jpeg','PostToolUse','178612GnIaXp','mAoiJ','webp','gif','headers','map','tool_response','Image\x20exceeds\x20size\x20limit\x20(','UqmLt','XWtQO','mAPze','qqJYY','mediaType','toLowerCase','20vgqYkz','38534628bTIKCh','byteLength','image','21WyAdbQ','pakpu','string','image/gif','output','NIyTV','updated','arrayBuffer','XGLEp','kMBSW','\x20bytes)','2136XttNfS','zBHaZ','data:','content','14812kDgLsb','http://','https://','content-length','all','USdSC','1645ldsIPo','image/webp'];_0x13da=function(){return _0x30af9f;};return _0x13da();}const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x16c3b4){const _0x11737e=_0x46e3;return typeof _0x16c3b4===_0x11737e(0x159)&&_0x16c3b4!==null;}function isImageBlock(_0xc74a25){const _0x44ee13=_0x46e3,_0x2f411a={'GuYjE':function(_0x5ea931,_0xe0d9de){return _0x5ea931===_0xe0d9de;},'mAPze':_0x44ee13(0x140)};return isRecord(_0xc74a25)&&_0x2f411a[_0x44ee13(0x16c)](_0xc74a25[_0x44ee13(0x15f)],_0x2f411a[_0x44ee13(0x181)]);}function isDataUrl(_0x3d73cd){const _0xc0498a=_0x46e3;return _0x3d73cd[_0xc0498a(0x16b)](_0xc0498a(0x14e));}function parseDataUrl(_0x6b00c8){const _0xc64b6e=_0x46e3,_0x5627d6={'beqoP':function(_0x25412d,_0xc9826f){return _0x25412d(_0xc9826f);}},_0x94f899=/^data:([^;]+);base64,(.+)$/['exec'](_0x6b00c8);if(!_0x94f899)return null;const _0x3f8c26=_0x94f899[0x1][_0xc64b6e(0x13c)]();if(!_0x5627d6[_0xc64b6e(0x172)](isValidMediaType,_0x3f8c26))return null;return{'data':_0x94f899[0x2],'mediaType':_0x3f8c26};}function isValidMediaType(_0x35af5b){const _0x2986b1=_0x46e3,_0x7b586b={'XWtQO':'image/gif','UqmLt':_0x2986b1(0x157)};return['image/jpeg',_0x2986b1(0x16e),_0x7b586b[_0x2986b1(0x180)],_0x7b586b[_0x2986b1(0x17f)]]['includes'](_0x35af5b);}function _0x46e3(_0x362e5c,_0x59fa7d){_0x362e5c=_0x362e5c-0x13a;const _0x13daf5=_0x13da();let _0x46e378=_0x13daf5[_0x362e5c];return _0x46e378;}function inferMediaType(_0x250bf7,_0xa01876){const _0x1534b=_0x46e3,_0xd9b84c={'gCeuk':'jpeg','zPbWy':_0x1534b(0x160),'NWvud':_0x1534b(0x144),'fQgNU':_0x1534b(0x179),'UWpDu':_0x1534b(0x157),'NIyTV':_0x1534b(0x16e)};if(_0x250bf7){const _0x648cdd=_0x250bf7['toLowerCase']()['split'](';')[0x0]['trim']();if(isValidMediaType(_0x648cdd))return _0x648cdd;}const _0x49c81f=extname(_0xa01876)[_0x1534b(0x13c)]()[_0x1534b(0x15e)]('.','');switch(_0x49c81f){case'jpg':case _0xd9b84c[_0x1534b(0x167)]:return _0x1534b(0x175);case _0xd9b84c[_0x1534b(0x166)]:return'image/png';case _0x1534b(0x17a):return _0xd9b84c['NWvud'];case _0xd9b84c[_0x1534b(0x15c)]:return _0xd9b84c[_0x1534b(0x16d)];default:return _0xd9b84c[_0x1534b(0x146)];}}async function readImageFromUrl(_0xafd64e){const _0x34f465=_0x46e3,_0x113531={'QMjwE':'file://','gumXt':function(_0x54f203,_0x1d1b22){return _0x54f203(_0x1d1b22);},'mCOEI':_0x34f465(0x153),'GquXU':function(_0x52eadd,_0x3ce060){return _0x52eadd(_0x3ce060);},'vWhNz':function(_0x438bd8,_0x279b2d){return _0x438bd8>_0x279b2d;},'dqkvC':'base64','pILnm':'content-type','TAEwU':function(_0x12a0fd,_0x41f90d,_0x385391){return _0x12a0fd(_0x41f90d,_0x385391);}};if(isDataUrl(_0xafd64e)){const _0x2d74cc=parseDataUrl(_0xafd64e);if(_0x2d74cc)return _0x2d74cc;throw new Error('Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content');}if(_0xafd64e[_0x34f465(0x16b)](_0x113531[_0x34f465(0x174)])){const _0x54963d=fileURLToPath(_0xafd64e),_0x39a414=await _0x113531['gumXt'](stat,_0x54963d);if(_0x39a414['size']>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x29ae49=await readFile(_0x54963d);return{'data':_0x29ae49['toString']('base64'),'mediaType':inferMediaType(null,_0x54963d)};}if(_0xafd64e['startsWith'](_0x34f465(0x151))||_0xafd64e[_0x34f465(0x16b)](_0x34f465(0x152))){const _0x48c893=await fetch(_0xafd64e,{'signal':AbortSignal[_0x34f465(0x15d)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x48c893['ok'])throw new Error('Failed\x20to\x20fetch\x20image:\x20'+_0x48c893['status']);const _0xd3c1b6=_0x48c893[_0x34f465(0x17b)][_0x34f465(0x158)](_0x113531[_0x34f465(0x173)]);if(_0xd3c1b6){const _0x164698=_0x113531['GquXU'](Number,_0xd3c1b6);if(!Number[_0x34f465(0x15b)](_0x164698)&&_0x113531['vWhNz'](_0x164698,MAX_IMAGE_SIZE_BYTES))throw new Error(_0x34f465(0x17e)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x46de87=await _0x48c893[_0x34f465(0x148)]();if(_0x113531['vWhNz'](_0x46de87[_0x34f465(0x13f)],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x34f465(0x17e)+MAX_IMAGE_SIZE_BYTES+_0x34f465(0x14b));return{'data':Buffer['from'](_0x46de87)['toString'](_0x113531['dqkvC']),'mediaType':inferMediaType(_0x48c893[_0x34f465(0x17b)]['get'](_0x113531[_0x34f465(0x164)]),_0xafd64e)};}const _0x49494f=await stat(_0xafd64e);if(_0x49494f['size']>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x34f465(0x17e)+MAX_IMAGE_SIZE_BYTES+_0x34f465(0x14b));const _0x1962fe=await _0x113531['GquXU'](readFile,_0xafd64e);return{'data':_0x1962fe['toString'](_0x34f465(0x163)),'mediaType':_0x113531['TAEwU'](inferMediaType,null,_0xafd64e)};}async function convertImageBlockToBase64(_0x18fe21){const _0x5ed8e0=_0x46e3,_0x2283a1={'zBHaZ':function(_0x2a1128,_0x148bc1){return _0x2a1128===_0x148bc1;},'fmnSb':_0x5ed8e0(0x163)};if(_0x2283a1[_0x5ed8e0(0x14d)](_0x18fe21['source']?.[_0x5ed8e0(0x15f)],_0x2283a1[_0x5ed8e0(0x15a)]))return{'updated':![],'block':_0x18fe21};if(_0x18fe21[_0x5ed8e0(0x16f)]&&_0x18fe21['mimeType'])return{'updated':![],'block':_0x18fe21};const _0x38b404=_0x18fe21['source']?.[_0x5ed8e0(0x170)]??_0x18fe21['url'];if(!_0x38b404)return{'updated':![],'block':_0x18fe21};const _0x4edb9e=await readImageFromUrl(_0x38b404);return{'updated':!![],'block':{..._0x18fe21,'source':{'type':_0x5ed8e0(0x163),'media_type':_0x4edb9e[_0x5ed8e0(0x13b)],'data':_0x4edb9e['data']},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x421737){const _0x30ea70=_0x46e3,_0x1990cb={'kMBSW':function(_0xf582f2,_0x48932e){return _0xf582f2(_0x48932e);},'qqJYY':function(_0x557d8,_0x36daf4){return _0x557d8(_0x36daf4);}};if(!_0x1990cb[_0x30ea70(0x13a)](isRecord,_0x421737))return{'updated':![],'output':_0x421737};const _0x352f6f=_0x421737[_0x30ea70(0x14f)];if(!Array['isArray'](_0x352f6f))return{'updated':![],'output':_0x421737};let _0x116c17=![];const _0x137d5b=await Promise[_0x30ea70(0x154)](_0x352f6f[_0x30ea70(0x17c)](async _0x3b1c04=>{const _0x1b0a6e=_0x30ea70;if(!isImageBlock(_0x3b1c04))return _0x3b1c04;try{const _0x464b0b=await _0x1990cb[_0x1b0a6e(0x14a)](convertImageBlockToBase64,_0x3b1c04);if(_0x464b0b[_0x1b0a6e(0x147)])_0x116c17=!![];return _0x464b0b['block'];}catch{return _0x3b1c04;}}));if(!_0x116c17)return{'updated':![],'output':_0x421737};return{'updated':!![],'output':{..._0x421737,'content':_0x137d5b}};}function sanitizeLoneSurrogates(_0x3d9ac3){const _0x364011=_0x46e3,_0x2a6df8={'pakpu':function(_0x54b580,_0x43eb28){return _0x54b580>=_0x43eb28;},'mmOQc':function(_0x63c569,_0x1f185b){return _0x63c569<=_0x1f185b;},'XGLEp':function(_0x1919d2,_0x289c8e){return _0x1919d2<=_0x289c8e;},'xHVMh':function(_0x5e9ce4,_0x69b938){return _0x5e9ce4+_0x69b938;},'eNrSm':function(_0xe7af1b,_0x1dfda4){return _0xe7af1b+_0x1dfda4;}};let _0x91b033=![],_0x48190c='';for(let _0x34b0c9=0x0;_0x34b0c9<_0x3d9ac3['length'];_0x34b0c9+=0x1){const _0x2538c4=_0x3d9ac3[_0x364011(0x162)](_0x34b0c9);if(_0x2a6df8[_0x364011(0x142)](_0x2538c4,0xd800)&&_0x2a6df8['mmOQc'](_0x2538c4,0xdbff)){const _0x37b4a4=_0x3d9ac3[_0x364011(0x162)](_0x34b0c9+0x1);if(_0x37b4a4>=0xdc00&&_0x2a6df8[_0x364011(0x149)](_0x37b4a4,0xdfff)){_0x48190c+=_0x2a6df8['xHVMh'](_0x3d9ac3[_0x34b0c9],_0x3d9ac3[_0x2a6df8['eNrSm'](_0x34b0c9,0x1)]),_0x34b0c9+=0x1;continue;}_0x91b033=!![],_0x48190c+='�';continue;}if(_0x2a6df8[_0x364011(0x142)](_0x2538c4,0xdc00)&&_0x2538c4<=0xdfff){_0x91b033=!![],_0x48190c+='�';continue;}_0x48190c+=_0x3d9ac3[_0x34b0c9];}return _0x91b033?{'updated':_0x91b033,'value':_0x48190c}:{'updated':_0x91b033,'value':_0x3d9ac3};}function sanitizeLoneSurrogatesDeep(_0x5cbc8e){const _0x34ed5c=_0x46e3,_0xd4e0f={'mAoiJ':function(_0x385a33,_0x4261b5){return _0x385a33(_0x4261b5);},'nphsD':function(_0x2a5f24,_0xf284ac){return _0x2a5f24(_0xf284ac);},'xLlyr':_0x34ed5c(0x143)};if(typeof _0x5cbc8e===_0xd4e0f['xLlyr'])return _0xd4e0f['nphsD'](sanitizeLoneSurrogates,_0x5cbc8e);if(Array['isArray'](_0x5cbc8e)){let _0x1c6eb3=![];const _0x391e57=_0x5cbc8e['map'](_0x47b078=>{const _0x164241=_0x34ed5c,_0x286100=_0xd4e0f[_0x164241(0x178)](sanitizeLoneSurrogatesDeep,_0x47b078);return _0x286100[_0x164241(0x147)]&&(_0x1c6eb3=!![]),_0x286100['value'];});return _0x1c6eb3?{'updated':!![],'value':_0x391e57}:{'updated':![],'value':_0x5cbc8e};}if(!isRecord(_0x5cbc8e))return{'updated':![],'value':_0x5cbc8e};let _0x7d6f69=![];const _0x3ea9f2=Object['entries'](_0x5cbc8e)[_0x34ed5c(0x17c)](([_0x19dcdd,_0xf810ab])=>{const _0x59eeaa=_0x34ed5c,_0x89aabd=_0xd4e0f['nphsD'](sanitizeLoneSurrogatesDeep,_0xf810ab);return _0x89aabd[_0x59eeaa(0x147)]&&(_0x7d6f69=!![]),[_0x19dcdd,_0x89aabd[_0x59eeaa(0x169)]];});return _0x7d6f69?{'updated':!![],'value':Object['fromEntries'](_0x3ea9f2)}:{'updated':![],'value':_0x5cbc8e};}export function createMcpImageBase64Hook(){const _0x5da04a={'USdSC':function(_0x2ff003,_0x2125ad){return _0x2ff003!==_0x2125ad;},'VcJJS':function(_0x5ae2af,_0x468cec){return _0x5ae2af(_0x468cec);},'FkGfh':function(_0x5734b3,_0xf5bba9){return _0x5734b3(_0xf5bba9);}};return async _0x9230b9=>{const _0x516b8b=_0x46e3;if(_0x5da04a[_0x516b8b(0x155)](_0x9230b9[_0x516b8b(0x168)],_0x516b8b(0x176)))return{};const _0x63f6a0=_0x9230b9,_0x19f612=await _0x5da04a['VcJJS'](convertToolOutputImagesToBase64,_0x63f6a0[_0x516b8b(0x17d)]),_0x21427b=_0x5da04a['FkGfh'](sanitizeLoneSurrogatesDeep,_0x19f612[_0x516b8b(0x145)]),_0x330158=_0x19f612[_0x516b8b(0x147)]||_0x21427b['updated'];if(!_0x330158)return{};return{'hookSpecificOutput':{'hookEventName':'PostToolUse','updatedMCPToolOutput':_0x21427b['value']}};};}
|
|
1
|
+
(function(_0x1f9abb,_0x4138a1){const _0x3b29cf=_0x3e87,_0x31b253=_0x1f9abb();while(!![]){try{const _0x2aa8d0=parseInt(_0x3b29cf(0x90))/0x1+parseInt(_0x3b29cf(0x94))/0x2*(parseInt(_0x3b29cf(0x97))/0x3)+parseInt(_0x3b29cf(0x74))/0x4+parseInt(_0x3b29cf(0x7d))/0x5+-parseInt(_0x3b29cf(0xa4))/0x6*(parseInt(_0x3b29cf(0x6f))/0x7)+parseInt(_0x3b29cf(0x7b))/0x8*(parseInt(_0x3b29cf(0x70))/0x9)+-parseInt(_0x3b29cf(0x86))/0xa;if(_0x2aa8d0===_0x4138a1)break;else _0x31b253['push'](_0x31b253['shift']());}catch(_0x8c059b){_0x31b253['push'](_0x31b253['shift']());}}}(_0x2902,0x87edb));import{readFile,stat}from'fs/promises';import{extname}from'path';import{fileURLToPath}from'url';function _0x3e87(_0x201beb,_0x8f2eb2){_0x201beb=_0x201beb-0x6c;const _0x290205=_0x2902();let _0x3e8787=_0x290205[_0x201beb];return _0x3e8787;}const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x45a175){const _0x57f233=_0x3e87,_0x3b9c30={'PxXMq':function(_0x50d7fd,_0xbccfa9){return _0x50d7fd===_0xbccfa9;},'gPJBo':function(_0x269d50,_0x32d28c){return _0x269d50!==_0x32d28c;}};return _0x3b9c30['PxXMq'](typeof _0x45a175,_0x57f233(0x9a))&&_0x3b9c30['gPJBo'](_0x45a175,null);}function isImageBlock(_0x210543){const _0x281a7d={'RhwBs':'image'};return isRecord(_0x210543)&&_0x210543['type']===_0x281a7d['RhwBs'];}function isDataUrl(_0x32bd14){const _0x3b89ce=_0x3e87;return _0x32bd14['startsWith'](_0x3b89ce(0x78));}function parseDataUrl(_0x37b075){const _0x1b1f2a=_0x3e87,_0xc3b86={'zgRsl':function(_0xc5b373,_0x17326d){return _0xc5b373(_0x17326d);}},_0x3bc2a1=/^data:([^;]+);base64,(.+)$/['exec'](_0x37b075);if(!_0x3bc2a1)return null;const _0xc4e4cd=_0x3bc2a1[0x1][_0x1b1f2a(0x6d)]();if(!_0xc3b86['zgRsl'](isValidMediaType,_0xc4e4cd))return null;return{'data':_0x3bc2a1[0x2],'mediaType':_0xc4e4cd};}function isValidMediaType(_0x3df6d6){const _0x498fc3=_0x3e87,_0x4aff02={'jbXww':'image/jpeg'};return[_0x4aff02['jbXww'],_0x498fc3(0x9c),_0x498fc3(0x98),_0x498fc3(0x72)][_0x498fc3(0xa2)](_0x3df6d6);}function inferMediaType(_0x1a78e8,_0x2ea5a0){const _0x29facb=_0x3e87,_0x5d6bff={'SSxAm':'jpeg','DKPNP':'image/jpeg','GTWUP':_0x29facb(0x71)};if(_0x1a78e8){const _0x237dd3=_0x1a78e8[_0x29facb(0x6d)]()['split'](';')[0x0][_0x29facb(0x82)]();if(isValidMediaType(_0x237dd3))return _0x237dd3;}const _0x26f5b8=extname(_0x2ea5a0)[_0x29facb(0x6d)]()[_0x29facb(0x96)]('.','');switch(_0x26f5b8){case'jpg':case _0x5d6bff['SSxAm']:return _0x5d6bff[_0x29facb(0xa1)];case _0x29facb(0xaa):return'image/png';case _0x29facb(0x87):return'image/gif';case _0x5d6bff['GTWUP']:return'image/webp';default:return'image/png';}}async function readImageFromUrl(_0x4360de){const _0x54b4ff=_0x3e87,_0x67034d={'hdxvZ':function(_0x28bcc1,_0x417fa7){return _0x28bcc1(_0x417fa7);},'BBlrf':_0x54b4ff(0x77),'JBdrw':_0x54b4ff(0x8d),'bUBxr':function(_0x4092d2,_0x15bdd6){return _0x4092d2(_0x15bdd6);},'vhICg':function(_0x6bc0f6,_0x57b620,_0x26c31b){return _0x6bc0f6(_0x57b620,_0x26c31b);},'fmUWv':_0x54b4ff(0x76),'gdrDe':function(_0x2170a2,_0x3dfdfa){return _0x2170a2>_0x3dfdfa;},'RuJLm':_0x54b4ff(0x7e),'wrMnB':function(_0x41668a,_0x3deca2){return _0x41668a>_0x3deca2;},'QkKCi':'base64'};if(isDataUrl(_0x4360de)){const _0x119581=_0x67034d['hdxvZ'](parseDataUrl,_0x4360de);if(_0x119581)return _0x119581;throw new Error(_0x67034d[_0x54b4ff(0xa3)]);}if(_0x4360de[_0x54b4ff(0x6e)](_0x67034d[_0x54b4ff(0x80)])){const _0x48953b=fileURLToPath(_0x4360de),_0x5f24eb=await stat(_0x48953b);if(_0x5f24eb[_0x54b4ff(0x7c)]>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x54b4ff(0x89)+MAX_IMAGE_SIZE_BYTES+_0x54b4ff(0xab));const _0x1bc601=await _0x67034d[_0x54b4ff(0xa9)](readFile,_0x48953b);return{'data':_0x1bc601[_0x54b4ff(0x6c)]('base64'),'mediaType':_0x67034d[_0x54b4ff(0x81)](inferMediaType,null,_0x48953b)};}if(_0x4360de[_0x54b4ff(0x6e)]('http://')||_0x4360de[_0x54b4ff(0x6e)](_0x54b4ff(0x8e))){const _0x3e39c7=await _0x67034d[_0x54b4ff(0x81)](fetch,_0x4360de,{'signal':AbortSignal['timeout'](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x3e39c7['ok'])throw new Error(_0x54b4ff(0x9b)+_0x3e39c7[_0x54b4ff(0x9e)]);const _0x5a441a=_0x3e39c7[_0x54b4ff(0xa8)][_0x54b4ff(0x93)](_0x67034d['fmUWv']);if(_0x5a441a){const _0x24a9e5=Number(_0x5a441a);if(!Number['isNaN'](_0x24a9e5)&&_0x24a9e5>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x54b4ff(0x89)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x2ef372=await _0x3e39c7['arrayBuffer']();if(_0x67034d['gdrDe'](_0x2ef372[_0x54b4ff(0x79)],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x54b4ff(0x89)+MAX_IMAGE_SIZE_BYTES+_0x54b4ff(0xab));return{'data':Buffer[_0x54b4ff(0x8a)](_0x2ef372)[_0x54b4ff(0x6c)]('base64'),'mediaType':inferMediaType(_0x3e39c7['headers'][_0x54b4ff(0x93)](_0x67034d[_0x54b4ff(0x8f)]),_0x4360de)};}const _0x288940=await stat(_0x4360de);if(_0x67034d[_0x54b4ff(0x8c)](_0x288940['size'],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x54b4ff(0x89)+MAX_IMAGE_SIZE_BYTES+_0x54b4ff(0xab));const _0x247d8c=await _0x67034d[_0x54b4ff(0x83)](readFile,_0x4360de);return{'data':_0x247d8c[_0x54b4ff(0x6c)](_0x67034d[_0x54b4ff(0x84)]),'mediaType':_0x67034d[_0x54b4ff(0x81)](inferMediaType,null,_0x4360de)};}async function convertImageBlockToBase64(_0x53749a){const _0x3c4827=_0x3e87,_0x172c97={'xZUao':_0x3c4827(0xa6)};if(_0x53749a['source']?.[_0x3c4827(0x85)]===_0x172c97[_0x3c4827(0x88)])return{'updated':![],'block':_0x53749a};if(_0x53749a['data']&&_0x53749a[_0x3c4827(0xa5)])return{'updated':![],'block':_0x53749a};const _0x33ec04=_0x53749a[_0x3c4827(0x99)]?.['url']??_0x53749a[_0x3c4827(0x9d)];if(!_0x33ec04)return{'updated':![],'block':_0x53749a};const _0x29d7c=await readImageFromUrl(_0x33ec04);return{'updated':!![],'block':{..._0x53749a,'source':{'type':_0x172c97[_0x3c4827(0x88)],'media_type':_0x29d7c['mediaType'],'data':_0x29d7c['data']},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x2509db){const _0x3525d9={'tVCjr':function(_0x15b7a4,_0x4e2024){return _0x15b7a4(_0x4e2024);},'mPDtV':function(_0x5c7757,_0x5907dd){return _0x5c7757(_0x5907dd);}};if(!_0x3525d9['mPDtV'](isRecord,_0x2509db))return{'updated':![],'output':_0x2509db};const _0x3fac5b=_0x2509db['content'];if(!Array['isArray'](_0x3fac5b))return{'updated':![],'output':_0x2509db};let _0x2f8fd2=![];const _0x2dabc6=await Promise['all'](_0x3fac5b['map'](async _0x31b32c=>{const _0x4bbf1d=_0x3e87;if(!_0x3525d9[_0x4bbf1d(0xa0)](isImageBlock,_0x31b32c))return _0x31b32c;try{const _0x5645c1=await _0x3525d9[_0x4bbf1d(0x92)](convertImageBlockToBase64,_0x31b32c);if(_0x5645c1['updated'])_0x2f8fd2=!![];return _0x5645c1['block'];}catch{return _0x31b32c;}}));if(!_0x2f8fd2)return{'updated':![],'output':_0x2509db};return{'updated':!![],'output':{..._0x2509db,'content':_0x2dabc6}};}function sanitizeLoneSurrogates(_0x35bc11){const _0x274748=_0x3e87,_0x542618={'NQLQx':function(_0x4f6b96,_0x15a4c5){return _0x4f6b96>=_0x15a4c5;},'RziUA':function(_0x213965,_0x180108){return _0x213965>=_0x180108;},'aztTk':function(_0x4c19f2,_0x2a3e60){return _0x4c19f2<=_0x2a3e60;},'AgiPx':function(_0x5f963f,_0x26c412){return _0x5f963f+_0x26c412;},'GFThH':function(_0x2d1e01,_0x4a17f5){return _0x2d1e01<=_0x4a17f5;}};let _0x1c1e8e=![],_0x31da02='';for(let _0x9461bf=0x0;_0x9461bf<_0x35bc11['length'];_0x9461bf+=0x1){const _0x5ddbc2=_0x35bc11['charCodeAt'](_0x9461bf);if(_0x542618['NQLQx'](_0x5ddbc2,0xd800)&&_0x5ddbc2<=0xdbff){const _0x48b9d0=_0x35bc11['charCodeAt'](_0x9461bf+0x1);if(_0x542618['RziUA'](_0x48b9d0,0xdc00)&&_0x542618['aztTk'](_0x48b9d0,0xdfff)){_0x31da02+=_0x542618[_0x274748(0x7a)](_0x35bc11[_0x9461bf],_0x35bc11[_0x9461bf+0x1]),_0x9461bf+=0x1;continue;}_0x1c1e8e=!![],_0x31da02+='�';continue;}if(_0x5ddbc2>=0xdc00&&_0x542618['GFThH'](_0x5ddbc2,0xdfff)){_0x1c1e8e=!![],_0x31da02+='�';continue;}_0x31da02+=_0x35bc11[_0x9461bf];}return _0x1c1e8e?{'updated':_0x1c1e8e,'value':_0x31da02}:{'updated':_0x1c1e8e,'value':_0x35bc11};}function sanitizeLoneSurrogatesDeep(_0x185bcc){const _0x329079=_0x3e87,_0x410de8={'pYznR':function(_0x287e20,_0x3eac08){return _0x287e20(_0x3eac08);},'WXkDw':'string'};if(typeof _0x185bcc===_0x410de8['WXkDw'])return sanitizeLoneSurrogates(_0x185bcc);if(Array['isArray'](_0x185bcc)){let _0x148042=![];const _0x1c96fa=_0x185bcc['map'](_0x51f9b4=>{const _0x37779c=_0x3e87,_0xc0c6c3=_0x410de8[_0x37779c(0xa7)](sanitizeLoneSurrogatesDeep,_0x51f9b4);return _0xc0c6c3['updated']&&(_0x148042=!![]),_0xc0c6c3['value'];});return _0x148042?{'updated':!![],'value':_0x1c96fa}:{'updated':![],'value':_0x185bcc};}if(!isRecord(_0x185bcc))return{'updated':![],'value':_0x185bcc};let _0x4d0354=![];const _0x17da7c=Object[_0x329079(0x95)](_0x185bcc)[_0x329079(0x75)](([_0xbae591,_0x681d81])=>{const _0x452e4b=_0x329079,_0x562ce2=_0x410de8[_0x452e4b(0xa7)](sanitizeLoneSurrogatesDeep,_0x681d81);return _0x562ce2['updated']&&(_0x4d0354=!![]),[_0xbae591,_0x562ce2[_0x452e4b(0x7f)]];});return _0x4d0354?{'updated':!![],'value':Object[_0x329079(0x9f)](_0x17da7c)}:{'updated':![],'value':_0x185bcc};}export function createMcpImageBase64Hook(){const _0x46779d={'qNJJQ':'PostToolUse','QGIsz':function(_0x28cb26,_0x2b897b){return _0x28cb26(_0x2b897b);}};return async _0x314bd3=>{const _0x59fe2d=_0x3e87;if(_0x314bd3['hook_event_name']!==_0x46779d['qNJJQ'])return{};const _0x1cd945=_0x314bd3,_0x286665=await _0x46779d[_0x59fe2d(0x8b)](convertToolOutputImagesToBase64,_0x1cd945['tool_response']),_0x47ce86=_0x46779d['QGIsz'](sanitizeLoneSurrogatesDeep,_0x286665['output']),_0xba15ae=_0x286665[_0x59fe2d(0x91)]||_0x47ce86['updated'];if(!_0xba15ae)return{};return{'hookSpecificOutput':{'hookEventName':_0x59fe2d(0x73),'updatedMCPToolOutput':_0x47ce86[_0x59fe2d(0x7f)]}};};}function _0x2902(){const _0x17ed8a=['toLowerCase','startsWith','63UNjODH','270NCgDQG','webp','image/webp','PostToolUse','2253524jrvoDM','map','content-length','Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','data:','byteLength','AgiPx','168096txwhBG','size','88310fepZhc','content-type','value','JBdrw','vhICg','trim','hdxvZ','QkKCi','type','10199490WBTfom','gif','xZUao','Image\x20exceeds\x20size\x20limit\x20(','from','QGIsz','wrMnB','file://','https://','RuJLm','138747sQVKOx','updated','mPDtV','get','92qNCdkY','entries','replace','41163nlskei','image/gif','source','object','Failed\x20to\x20fetch\x20image:\x20','image/png','url','status','fromEntries','tVCjr','DKPNP','includes','BBlrf','269736kCupZq','mimeType','base64','pYznR','headers','bUBxr','png','\x20bytes)','toString'];_0x2902=function(){return _0x17ed8a;};return _0x2902();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0xd7fc(_0x57673f,_0x163b5d){_0x57673f=_0x57673f-0x1e5;const _0x56cd30=_0x56cd();let _0xd7fc52=_0x56cd30[_0x57673f];return _0xd7fc52;}const _0x374416=_0xd7fc;(function(_0x3f290b,_0x1f3bc2){const _0x5db996=_0xd7fc,_0x3c65b9=_0x3f290b();while(!![]){try{const _0x10f4a0=-parseInt(_0x5db996(0x1ef))/0x1*(parseInt(_0x5db996(0x1f0))/0x2)+-parseInt(_0x5db996(0x1ee))/0x3+parseInt(_0x5db996(0x1e7))/0x4+parseInt(_0x5db996(0x1e8))/0x5+-parseInt(_0x5db996(0x1ea))/0x6+parseInt(_0x5db996(0x1ec))/0x7*(-parseInt(_0x5db996(0x1e5))/0x8)+parseInt(_0x5db996(0x1e9))/0x9*(parseInt(_0x5db996(0x1ed))/0xa);if(_0x10f4a0===_0x1f3bc2)break;else _0x3c65b9['push'](_0x3c65b9['shift']());}catch(_0x57eb55){_0x3c65b9['push'](_0x3c65b9['shift']());}}}(_0x56cd,0xe32e4));function _0x56cd(){const _0x2b5ce2=['trim','2951753CXqxtL','20PniSBv','1252236aBFKAe','4uRsqYg','874254OIkcNG','claude-opus-4-6','8iJKWSZ','toLowerCase','4063032sHnyWD','8050090ztBDhI','9026928rNQzjX','6681774WagXLS'];_0x56cd=function(){return _0x2b5ce2;};return _0x56cd();}const VERIFY_MODEL_ALIASES={'opus':_0x374416(0x1f1),'sonnet':'claude-sonnet-4-6'};export const DEFAULT_VERIFY_MODEL='claude-sonnet-4-6';export function resolveVerifyModel(_0x444b27){const _0x50415f=_0x374416,_0x1c0025={'eGMVW':function(_0x538e7d,_0x13ea67){return _0x538e7d??_0x13ea67;}};if(!_0x444b27)return undefined;const _0x555d42=_0x444b27[_0x50415f(0x1eb)]();if(!_0x555d42)return undefined;const _0x23aca0=VERIFY_MODEL_ALIASES[_0x555d42[_0x50415f(0x1e6)]()];return _0x1c0025['eGMVW'](_0x23aca0,_0x555d42);}
|