@ranger-testing/ranger-cli 3.1.7-alpha.62f152a-54 → 3.1.7-alpha.a5be4ca-60
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/package.json +15 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3f7182=_0x4a2e;(function(_0x5cfe74,_0xcae1ac){const _0x308a3b=_0x4a2e,_0x2ab572=_0x5cfe74();while(!![]){try{const _0x5900cf=parseInt(_0x308a3b(0x1b7))/0x1+parseInt(_0x308a3b(0x1b2))/0x2*(parseInt(_0x308a3b(0x197))/0x3)+parseInt(_0x308a3b(0x1a0))/0x4+-parseInt(_0x308a3b(0x1d1))/0x5*(-parseInt(_0x308a3b(0x191))/0x6)+parseInt(_0x308a3b(0x19e))/0x7+parseInt(_0x308a3b(0x1a8))/0x8+-parseInt(_0x308a3b(0x1a4))/0x9;if(_0x5900cf===_0xcae1ac)break;else _0x2ab572['push'](_0x2ab572['shift']());}catch(_0x2e14f6){_0x2ab572['push'](_0x2ab572['shift']());}}}(_0x1a3b,0x19202));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(_0x176e90,_0x18b6d8){const _0x27df0c=_0x4a2e,_0x10e124={'zhLym':function(_0x2086e3,_0x469ad9){return _0x2086e3>=_0x469ad9;},'uVIPI':function(_0x25c845,_0x181134){return _0x25c845<=_0x181134;},'TFOyE':function(_0x56f5f1,_0x6eb63c){return _0x56f5f1+_0x6eb63c;},'Lzpim':function(_0x29c624,_0x25a0de){return _0x29c624&_0x25a0de;},'cPOAH':function(_0x57a9f0,_0x28a508){return _0x57a9f0-_0x28a508;},'TweTr':function(_0x1b9e56,_0xf75fff){return _0x1b9e56<_0xf75fff;},'SxLCx':function(_0x217941,_0x381094){return _0x217941+_0x381094;}};if(_0x10e124[_0x27df0c(0x1b9)](_0x18b6d8,_0x176e90['length']))return[0x0,0x0];const _0x3f5d8d=_0x176e90[_0x18b6d8];let _0x4f01f5=0x1,_0xfe04af=0x80;while(_0x10e124['uVIPI'](_0x4f01f5,0x8)&&!(_0x3f5d8d&_0xfe04af)){_0x4f01f5++,_0xfe04af>>=0x1;}if(_0x10e124['TFOyE'](_0x18b6d8,_0x4f01f5)>_0x176e90[_0x27df0c(0x1be)])return[0x0,0x0];let _0x57b7bc=_0x10e124[_0x27df0c(0x1ab)](_0x3f5d8d,_0x10e124['cPOAH'](_0xfe04af,0x1));for(let _0x592bbe=0x1;_0x10e124[_0x27df0c(0x1ac)](_0x592bbe,_0x4f01f5);_0x592bbe++){_0x57b7bc=_0x10e124[_0x27df0c(0x1ca)](_0x57b7bc*0x100,_0x176e90[_0x18b6d8+_0x592bbe]);}return[_0x57b7bc,_0x4f01f5];}function _0x1a3b(){const _0x1724b5=['BSGpb','CsAeh','Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','slice','concat','BzTKW','493486HPYrBE','golhY','273640VUyBkV','alloc','readInt16BE','idLen','5686641fhDLcx','rltkr','CKMRs','Fixed:\x20','1176728NUoHEj','dataSize','xYCRV','Lzpim','TweTr','qsOqS','JccqW','XuLKx','JEgku','from','71642uVjzVR','WfOxh','hdnOR','writeDoubleBE','TvMuu','151352WbroJJ','FYQqV','zhLym','sizeLen','UUGYC','NEMXc','VILcN','length','jxnqM','IASjt','VCNJf','LHBns','hCiLy','endsWith','pow','JyMTw','ygFko','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','fixWebmDuration.ts','SxLCx','argv','SrliZ','WJDsB','jfdFP','error','offset','5iCRLpQ','Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>','FxlWV','ShuNK','min','1139694soEVvP','fHfUU','jomgy','USGTr','dataOffset','kmJxH','9tQQjQb'];_0x1a3b=function(){return _0x1724b5;};return _0x1a3b();}function readId(_0x3aac99,_0x5a5904){const _0xb04394=_0x4a2e,_0x579ea9={'NEMXc':function(_0x126096,_0x58e3ae){return _0x126096>=_0x58e3ae;},'JTKQf':function(_0x517fe2,_0x304a6a){return _0x517fe2>=_0x304a6a;},'jomgy':function(_0x386903,_0x45c693){return _0x386903+_0x45c693;},'XzVyA':function(_0xccdf73,_0x3836db){return _0xccdf73<_0x3836db;},'golhY':function(_0x2230b9,_0xf472cb){return _0x2230b9*_0xf472cb;}};if(_0x5a5904>=_0x3aac99[_0xb04394(0x1be)])return[0x0,0x0];const _0x61a0a0=_0x3aac99[_0x5a5904];let _0x52632f;if(_0x579ea9[_0xb04394(0x1bc)](_0x61a0a0,0x80))_0x52632f=0x1;else{if(_0x61a0a0>=0x40)_0x52632f=0x2;else{if(_0x579ea9['NEMXc'](_0x61a0a0,0x20))_0x52632f=0x3;else{if(_0x579ea9['JTKQf'](_0x61a0a0,0x10))_0x52632f=0x4;else return[_0x61a0a0,0x1];}}}if(_0x579ea9[_0xb04394(0x193)](_0x5a5904,_0x52632f)>_0x3aac99['length'])return[0x0,0x0];let _0x1c9540=0x0;for(let _0x46c84d=0x0;_0x579ea9['XzVyA'](_0x46c84d,_0x52632f);_0x46c84d++){_0x1c9540=_0x579ea9[_0xb04394(0x193)](_0x579ea9[_0xb04394(0x19f)](_0x1c9540,0x100),_0x3aac99[_0x579ea9['jomgy'](_0x5a5904,_0x46c84d)]);}return[_0x1c9540,_0x52632f];}function readUint(_0x3a980d,_0x2d7d97,_0x2c8116){const _0x58d688=_0x4a2e,_0x10fcd4={'JccqW':function(_0x54c8fd,_0x10d98f){return _0x54c8fd<_0x10d98f;},'WfOxh':function(_0x1f5d88,_0x44c2c4){return _0x1f5d88+_0x44c2c4;}};let _0x359ad4=0x0;for(let _0x84970a=0x0;_0x10fcd4[_0x58d688(0x1ae)](_0x84970a,_0x2c8116);_0x84970a++){_0x359ad4=_0x10fcd4[_0x58d688(0x1b3)](_0x359ad4*0x100,_0x3a980d[_0x2d7d97+_0x84970a]);}return _0x359ad4;}function isUnknownSize(_0x220cfd,_0x5cbebb){const _0x909d4d=_0x4a2e,_0x27df62={'hCiLy':function(_0x3afed6,_0x2388db){return _0x3afed6===_0x2388db;},'FYQqV':function(_0x4530b2,_0x1c796b){return _0x4530b2*_0x1c796b;}};return _0x27df62[_0x909d4d(0x1c3)](_0x220cfd,Math['pow'](0x2,_0x27df62[_0x909d4d(0x1b8)](0x7,_0x5cbebb))-0x1);}function writeId(_0x5ea342){const _0x3b2115=_0x4a2e,_0x5219b8={'mDsEi':function(_0x4dec30,_0x42578e){return _0x4dec30<=_0x42578e;},'VCNJf':function(_0x5c8f4c,_0x4cbafd){return _0x5c8f4c>>_0x4cbafd;},'CsAeh':function(_0x6fd5bc,_0x2bfd40){return _0x6fd5bc&_0x2bfd40;},'hdnOR':function(_0x1eaaf6,_0x11fd4a){return _0x1eaaf6>>_0x11fd4a;},'vsTeH':function(_0x5c8b93,_0x70fa52){return _0x5c8b93>>_0x70fa52;}};if(_0x5ea342<=0xff)return Buffer['from']([_0x5ea342]);if(_0x5219b8['mDsEi'](_0x5ea342,0xffff))return Buffer['from']([_0x5219b8[_0x3b2115(0x1c1)](_0x5ea342,0x8)&0xff,_0x5ea342&0xff]);if(_0x5ea342<=0xffffff)return Buffer[_0x3b2115(0x1b1)]([_0x5ea342>>0x10&0xff,_0x5219b8[_0x3b2115(0x199)](_0x5219b8[_0x3b2115(0x1b4)](_0x5ea342,0x8),0xff),_0x5ea342&0xff]);return Buffer['from']([_0x5219b8[_0x3b2115(0x199)](_0x5219b8['vsTeH'](_0x5ea342,0x18),0xff),_0x5ea342>>0x10&0xff,_0x5219b8['CsAeh'](_0x5ea342>>0x8,0xff),_0x5219b8['CsAeh'](_0x5ea342,0xff)]);}function writeVint(_0x3d81ac,_0x51237a){const _0x3763aa=_0x4a2e,_0x541e0a={'ygFko':function(_0x5403e3,_0x22a309){return _0x5403e3-_0x22a309;},'LHBns':function(_0x4ea9b7,_0x471170){return _0x4ea9b7-_0x471170;},'TAkEp':function(_0x542b46,_0x4035fd){return _0x542b46>=_0x4035fd;}};let _0x1183f0=_0x51237a||0x1;while(_0x541e0a[_0x3763aa(0x1c7)](Math[_0x3763aa(0x1c5)](0x2,0x7*_0x1183f0),0x2)<_0x3d81ac)_0x1183f0++;const _0x529687=Buffer[_0x3763aa(0x1a1)](_0x1183f0);for(let _0x473839=_0x541e0a[_0x3763aa(0x1c2)](_0x1183f0,0x1);_0x541e0a['TAkEp'](_0x473839,0x0);_0x473839--){_0x529687[_0x473839]=_0x3d81ac&0xff,_0x3d81ac=Math['floor'](_0x3d81ac/0x100);}return _0x529687[0x0]|=0x1<<0x8-_0x1183f0,_0x529687;}function writeFloat64(_0xe8450e){const _0x2ceb88=_0x4a2e,_0x3ddd9b=Buffer['alloc'](0x8);return _0x3ddd9b[_0x2ceb88(0x1b5)](_0xe8450e,0x0),_0x3ddd9b;}function writeVoid(_0x33dd28){const _0x56565d=_0x4a2e,_0x21c1cb={'nWPds':function(_0x46f17d,_0x25bc98){return _0x46f17d-_0x25bc98;},'Ufcph':function(_0x1653dc,_0x3b92bc){return _0x1653dc>=_0x3b92bc;},'echaT':function(_0xc796f6,_0x1e36d9){return _0xc796f6<=_0x1e36d9;},'jxnqM':function(_0x4b16f2,_0x3afa7c){return _0x4b16f2-_0x3afa7c;}};for(let _0x41502e=0x1;_0x41502e<=0x8;_0x41502e++){const _0x7cbb63=_0x21c1cb['nWPds'](_0x33dd28,0x1)-_0x41502e;if(_0x21c1cb['Ufcph'](_0x7cbb63,0x0)&&_0x21c1cb['echaT'](_0x7cbb63,_0x21c1cb[_0x56565d(0x1bf)](Math['pow'](0x2,0x7*_0x41502e),0x2)))return Buffer['concat']([Buffer['from']([ID_VOID]),writeVint(_0x7cbb63,_0x41502e),Buffer[_0x56565d(0x1a1)](_0x7cbb63)]);}return Buffer[_0x56565d(0x1a1)](0x0);}function findElement(_0xfcf201,_0x2aa2b7,_0x439527,_0xe99276){const _0x40583c=_0x4a2e,_0x2b228b={'VILcN':function(_0x1ff882,_0x1d97ce,_0x25badd){return _0x1ff882(_0x1d97ce,_0x25badd);},'omECt':function(_0x504cfe,_0x267f64){return _0x504cfe+_0x267f64;},'USGTr':function(_0x3514b0,_0x40eb3a){return _0x3514b0+_0x40eb3a;},'AxyFE':function(_0x3e997d,_0x2e7857){return _0x3e997d+_0x2e7857;}};let _0x3623dd=_0x2aa2b7;while(_0x3623dd<_0x439527){const [_0x477d9c,_0x11fbe0]=readId(_0xfcf201,_0x3623dd),[_0x2e493b,_0x31f220]=_0x2b228b[_0x40583c(0x1bd)](readVint,_0xfcf201,_0x2b228b['omECt'](_0x3623dd,_0x11fbe0));if(_0x477d9c===_0xe99276)return{'offset':_0x3623dd,'idLen':_0x11fbe0,'sizeLen':_0x31f220,'dataSize':_0x2e493b,'dataOffset':_0x2b228b[_0x40583c(0x194)](_0x3623dd+_0x11fbe0,_0x31f220)};if(_0x2b228b[_0x40583c(0x1bd)](isUnknownSize,_0x2e493b,_0x31f220))break;_0x3623dd+=_0x2b228b['AxyFE'](_0x11fbe0,_0x31f220)+_0x2e493b;}return null;}function computeDurationMs(_0x5b00b5,_0x600c1c){const _0x6b3fec=_0x4a2e,_0x22c466={'XuLKx':function(_0x206570,_0x1fbb7a,_0x4329cb){return _0x206570(_0x1fbb7a,_0x4329cb);},'kEcfl':function(_0x2fca8c,_0x346265){return _0x2fca8c+_0x346265;},'fjeTg':function(_0x5f174e,_0x64c380){return _0x5f174e<_0x64c380;},'TvMuu':function(_0x38446b,_0x592cea,_0x16a804){return _0x38446b(_0x592cea,_0x16a804);},'DxfuK':function(_0x25c863,_0x273c4b){return _0x25c863+_0x273c4b;},'FxlWV':function(_0x509e5c,_0x18a530){return _0x509e5c+_0x18a530;},'BSGpb':function(_0x427e52,_0x2e4c30){return _0x427e52===_0x2e4c30;},'fHfUU':function(_0x5c4ea2,_0xabd62e,_0x36ab27,_0x269303){return _0x5c4ea2(_0xabd62e,_0x36ab27,_0x269303);},'XVZYM':function(_0xba301e,_0x23e29f){return _0xba301e*_0x23e29f;},'BzTKW':function(_0xbc3e32,_0x4713e6){return _0xbc3e32+_0x4713e6;},'SrliZ':function(_0x574c34,_0x4a7b3a){return _0x574c34>_0x4a7b3a;},'WclKw':function(_0x46b9c7,_0x296ef2){return _0x46b9c7===_0x296ef2;},'ahauo':function(_0x26d695,_0x4b7c33,_0x2bd8ab){return _0x26d695(_0x4b7c33,_0x2bd8ab);}};let _0x23712a=0x0;const _0x53aa6a=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0xf60641=_0x5b00b5['indexOf'](_0x53aa6a);if(_0xf60641===-0x1)return 0x0;while(_0xf60641<_0x5b00b5['length']){const [_0x14b677,_0x30a97d]=readId(_0x5b00b5,_0xf60641);if(_0x14b677!==ID_CLUSTER)break;const [_0x421669,_0x1fb5cc]=_0x22c466[_0x6b3fec(0x1af)](readVint,_0x5b00b5,_0xf60641+_0x30a97d),_0x5a9431=_0x22c466['kEcfl'](_0xf60641+_0x30a97d,_0x1fb5cc),_0x3e496f=isUnknownSize(_0x421669,_0x1fb5cc);let _0x597e36;if(_0x3e496f){let _0x4a64ff=_0x5a9431;while(_0x22c466['fjeTg'](_0x4a64ff,_0x5b00b5[_0x6b3fec(0x1be)]-0x4)){const [_0x23ad69,_0x462b6a]=_0x22c466[_0x6b3fec(0x1b6)](readId,_0x5b00b5,_0x4a64ff);if(_0x23ad69===ID_CLUSTER){_0x597e36=_0x4a64ff;break;}const [_0x116c1d,_0xd4b136]=readVint(_0x5b00b5,_0x22c466['DxfuK'](_0x4a64ff,_0x462b6a));if(isUnknownSize(_0x116c1d,_0xd4b136)){_0x597e36=_0x5b00b5[_0x6b3fec(0x1be)];break;}_0x4a64ff+=_0x22c466[_0x6b3fec(0x18e)](_0x462b6a,_0xd4b136)+_0x116c1d;}_0x597e36??=_0x5b00b5['length'];}else _0x597e36=_0x5a9431+_0x421669;let _0x3421a6=0x0,_0xbe977c=_0x5a9431;while(_0xbe977c<_0x597e36){const [_0xbd1f7d,_0x5c71bf]=readId(_0x5b00b5,_0xbe977c),[_0x47f42f,_0x1ec753]=readVint(_0x5b00b5,_0xbe977c+_0x5c71bf);if(_0x22c466[_0x6b3fec(0x198)](_0xbd1f7d,ID_TIMESTAMP))_0x3421a6=_0x22c466[_0x6b3fec(0x192)](readUint,_0x5b00b5,_0x22c466['kEcfl'](_0xbe977c+_0x5c71bf,_0x1ec753),_0x47f42f);else{if(_0xbd1f7d===ID_SIMPLE_BLOCK&&_0x47f42f>=0x4){const _0x4b298c=_0x22c466['kEcfl'](_0xbe977c,_0x5c71bf)+_0x1ec753,[,_0x37645c]=_0x22c466['XuLKx'](readVint,_0x5b00b5,_0x4b298c),_0x2b48f4=_0x5b00b5[_0x6b3fec(0x1a2)](_0x4b298c+_0x37645c),_0x3ded20=_0x22c466['XVZYM'](_0x22c466[_0x6b3fec(0x19d)](_0x3421a6,_0x2b48f4),_0x600c1c)/0xf4240;_0x22c466[_0x6b3fec(0x1cc)](_0x3ded20,_0x23712a)&&(_0x23712a=_0x3ded20);}else{if(_0x22c466['WclKw'](_0xbd1f7d,ID_CLUSTER))break;}}if(_0x22c466['ahauo'](isUnknownSize,_0x47f42f,_0x1ec753))break;_0xbe977c+=_0x5c71bf+_0x1ec753+_0x47f42f;}_0xf60641=_0x597e36;}return _0x23712a;}export function fixWebmDuration(_0x4f516b,_0x59189d){const _0x4791ec=_0x4a2e,_0x4820b5={'XjCek':function(_0x2edade,_0x391b56,_0x4f649d){return _0x2edade(_0x391b56,_0x4f649d);},'kmJxH':function(_0x482f44,_0x2b245b){return _0x482f44+_0x2b245b;},'ddJHg':function(_0x16d923,_0x46669e){return _0x16d923+_0x46669e;},'WJDsB':function(_0x3e2772,_0x381178,_0x363b0c){return _0x3e2772(_0x381178,_0x363b0c);},'jfdFP':function(_0x3f869f,_0x1dfa4f){return _0x3f869f<_0x1dfa4f;},'fJofG':function(_0x39341d,_0x330734,_0x54a9e1){return _0x39341d(_0x330734,_0x54a9e1);},'lhRzx':function(_0x43726b,_0x370fd3){return _0x43726b+_0x370fd3;},'orJob':function(_0x3d271f,_0x3ab7e9){return _0x3d271f+_0x3ab7e9;},'JEgku':function(_0x42e47d,_0x46a832){return _0x42e47d===_0x46a832;},'IASjt':function(_0x5364f3,_0x2ba986){return _0x5364f3+_0x2ba986;},'CKMRs':function(_0x244595,_0x5ae255){return _0x244595+_0x5ae255;},'JyMTw':'Could\x20not\x20compute\x20duration','ywrRO':function(_0x5d5394,_0x20f2b0){return _0x5d5394(_0x20f2b0);},'qsOqS':function(_0x794d53,_0x1a4a09){return _0x794d53+_0x1a4a09;},'mYjaY':function(_0x2fdda0,_0x5437a4){return _0x2fdda0-_0x5437a4;},'UUGYC':function(_0x239e77,_0x3fb45c,_0x37cace,_0xaed578,_0x26a771,_0xac117c,_0x2acab5){return _0x239e77(_0x3fb45c,_0x37cace,_0xaed578,_0x26a771,_0xac117c,_0x2acab5);},'ShuNK':function(_0x5b8f44,_0x56aad0){return _0x5b8f44(_0x56aad0);},'DxVSz':function(_0x266cfc,_0x2cd50d,_0x36dd6f){return _0x266cfc(_0x2cd50d,_0x36dd6f);}},_0x4e8008=readFileSync(_0x4f516b);let _0x216473=0x0;const [_0x2f550a,_0x251af8]=readId(_0x4e8008,_0x216473),[_0x27332f,_0x5c63a6]=_0x4820b5['XjCek'](readVint,_0x4e8008,_0x4820b5['kmJxH'](_0x216473,_0x251af8));_0x216473+=_0x4820b5['ddJHg'](_0x251af8,_0x5c63a6)+_0x27332f;const [_0x4ce91b,_0x1e8c16]=_0x4820b5['WJDsB'](readId,_0x4e8008,_0x216473);if(_0x4ce91b!==ID_SEGMENT)return console['error'](_0x4791ec(0x19a)),![];const [,_0x2c84f0]=readVint(_0x4e8008,_0x216473+_0x1e8c16),_0x137ce8=_0x216473+_0x1e8c16+_0x2c84f0;let _0x32fc5a=_0x137ce8;const _0x3d4937=Math[_0x4791ec(0x190)](_0x4e8008[_0x4791ec(0x1be)],_0x137ce8+0x2710);let _0x425136=null,_0x1e2f16=null;while(_0x4820b5['jfdFP'](_0x32fc5a,_0x3d4937)){const [_0xc6cd8a,_0x3b6c5a]=_0x4820b5['fJofG'](readId,_0x4e8008,_0x32fc5a),[_0x848da6,_0x11f7cc]=readVint(_0x4e8008,_0x4820b5['lhRzx'](_0x32fc5a,_0x3b6c5a));_0xc6cd8a===ID_VOID&&!_0x425136&&(_0x425136={'offset':_0x32fc5a,'idLen':_0x3b6c5a,'sizeLen':_0x11f7cc,'dataSize':_0x848da6,'dataOffset':_0x4820b5['orJob'](_0x32fc5a,_0x3b6c5a)+_0x11f7cc});if(_0x4820b5[_0x4791ec(0x1b0)](_0xc6cd8a,ID_INFO)){_0x1e2f16={'offset':_0x32fc5a,'idLen':_0x3b6c5a,'sizeLen':_0x11f7cc,'dataSize':_0x848da6,'dataOffset':_0x4820b5[_0x4791ec(0x1c0)](_0x32fc5a+_0x3b6c5a,_0x11f7cc)};break;}if(_0xc6cd8a===ID_CLUSTER)break;if(_0x4820b5[_0x4791ec(0x1cd)](isUnknownSize,_0x848da6,_0x11f7cc))break;_0x32fc5a+=_0x4820b5['orJob'](_0x3b6c5a+_0x11f7cc,_0x848da6);}if(!_0x1e2f16)return console['error']('Could\x20not\x20find\x20Info\x20element'),![];const _0x5132ff=findElement(_0x4e8008,_0x1e2f16['dataOffset'],_0x4820b5[_0x4791ec(0x196)](_0x1e2f16[_0x4791ec(0x195)],_0x1e2f16[_0x4791ec(0x1a9)]),ID_DURATION);if(_0x5132ff)return![];const _0x381a8b=findElement(_0x4e8008,_0x1e2f16[_0x4791ec(0x195)],_0x4820b5[_0x4791ec(0x1a6)](_0x1e2f16['dataOffset'],_0x1e2f16['dataSize']),ID_TIMESTAMP_SCALE);let _0x3fa7a9=0xf4240;_0x381a8b&&(_0x3fa7a9=readUint(_0x4e8008,_0x381a8b['dataOffset'],_0x381a8b['dataSize']));const _0x19d5f7=_0x4820b5[_0x4791ec(0x1cd)](computeDurationMs,_0x4e8008,_0x3fa7a9);if(_0x19d5f7<=0x0)return console[_0x4791ec(0x1cf)](_0x4820b5[_0x4791ec(0x1c6)]),![];const _0x193c45=_0x19d5f7*0xf4240/_0x3fa7a9,_0x173a5c=Buffer['concat']([writeId(ID_DURATION),_0x4820b5['ywrRO'](writeVint,0x8),writeFloat64(_0x193c45)]),_0x2f75fd=_0x173a5c[_0x4791ec(0x1be)];if(!_0x425136||_0x4820b5[_0x4791ec(0x1ce)](_0x425136[_0x4791ec(0x1d0)],_0x1e2f16['offset'])){if(_0x425136){const _0x4fcc0c=_0x4820b5[_0x4791ec(0x1ad)](_0x425136[_0x4791ec(0x1a3)],_0x425136['sizeLen'])+_0x425136[_0x4791ec(0x1a9)],_0x59acf9=_0x4820b5['mYjaY'](_0x4fcc0c,_0x2f75fd);if(_0x59acf9<0x2)return _0x4820b5[_0x4791ec(0x1bb)](rewriteFile,_0x4e8008,_0x1e2f16,_0x173a5c,_0x3fa7a9,_0x19d5f7,_0x59189d);const _0x4d4f53=_0x1e2f16[_0x4791ec(0x1a9)]+_0x2f75fd,_0x5d5e96=Buffer['concat']([writeId(ID_INFO),writeVint(_0x4d4f53,_0x1e2f16[_0x4791ec(0x1ba)])]),_0x40a653=_0x4e8008['slice'](_0x1e2f16[_0x4791ec(0x195)],_0x1e2f16['dataOffset']+_0x1e2f16[_0x4791ec(0x1a9)]),_0x1ef89a=_0x4820b5[_0x4791ec(0x18f)](writeVoid,_0x59acf9),_0x7386c9=_0x4e8008['slice'](0x0,_0x425136[_0x4791ec(0x1d0)]),_0x18472c=_0x4e8008[_0x4791ec(0x19b)](_0x4820b5['CKMRs'](_0x1e2f16['dataOffset'],_0x1e2f16[_0x4791ec(0x1a9)]));return _0x4820b5['DxVSz'](writeFileSync,_0x59189d,Buffer['concat']([_0x7386c9,_0x1ef89a,_0x5d5e96,_0x40a653,_0x173a5c,_0x18472c])),!![];}}return rewriteFile(_0x4e8008,_0x1e2f16,_0x173a5c,_0x3fa7a9,_0x19d5f7,_0x59189d);}function rewriteFile(_0x41a9e7,_0x47b117,_0x3e7b19,_0x5d6f24,_0x3b085f,_0x17231c){const _0x2e2b71=_0x4a2e,_0xe81bf3={'rltkr':function(_0x2eb150,_0x3c2ec3){return _0x2eb150+_0x3c2ec3;},'acDkW':function(_0x5580e8,_0x47632a){return _0x5580e8(_0x47632a);},'mJstc':function(_0x5a787d,_0x5df5ff){return _0x5a787d+_0x5df5ff;},'MIZGx':function(_0x3de412,_0x5e8b39){return _0x3de412+_0x5e8b39;},'xYCRV':function(_0x2e285e,_0xbfed59,_0x5839a8){return _0x2e285e(_0xbfed59,_0x5839a8);}},_0x43899e=_0xe81bf3[_0x2e2b71(0x1a5)](_0x47b117['dataSize'],_0x3e7b19['length']),_0x363b43=Buffer['concat']([_0xe81bf3['acDkW'](writeId,ID_INFO),writeVint(_0x43899e)]),_0x20fae8=_0xe81bf3['rltkr'](_0x47b117[_0x2e2b71(0x1a3)],_0x47b117[_0x2e2b71(0x1ba)]),_0x2b26fb=_0x41a9e7['slice'](0x0,_0x47b117[_0x2e2b71(0x1d0)]),_0x5f2821=_0x41a9e7[_0x2e2b71(0x19b)](_0x47b117[_0x2e2b71(0x195)],_0x47b117[_0x2e2b71(0x195)]+_0x47b117['dataSize']),_0x228bb0=_0x41a9e7['slice'](_0xe81bf3['mJstc'](_0xe81bf3['MIZGx'](_0x47b117['offset'],_0x20fae8),_0x47b117[_0x2e2b71(0x1a9)]));return _0xe81bf3[_0x2e2b71(0x1aa)](writeFileSync,_0x17231c,Buffer[_0x2e2b71(0x19c)]([_0x2b26fb,_0x363b43,_0x5f2821,_0x3e7b19,_0x228bb0])),!![];}function _0x4a2e(_0x5a39f5,_0xabd192){_0x5a39f5=_0x5a39f5-0x18d;const _0x1a3b6c=_0x1a3b();let _0x4a2ead=_0x1a3b6c[_0x5a39f5];return _0x4a2ead;}if(process[_0x3f7182(0x1cb)][0x1]?.[_0x3f7182(0x1c4)](_0x3f7182(0x1c9))||process[_0x3f7182(0x1cb)][0x1]?.[_0x3f7182(0x1c4)]('fixWebmDuration.js')){const input=process['argv'][0x2],output=process['argv'][0x3];(!input||!output)&&(console[_0x3f7182(0x1cf)](_0x3f7182(0x18d)),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console['log'](_0x3f7182(0x1a7)+output):console['log'](_0x3f7182(0x1c8));}
|
|
1
|
+
const _0x4326b2=_0xd7d7;(function(_0x28e1d6,_0x5e510c){const _0x594d6d=_0xd7d7,_0x2e7c18=_0x28e1d6();while(!![]){try{const _0x46520a=-parseInt(_0x594d6d(0x1c9))/0x1+parseInt(_0x594d6d(0x19e))/0x2*(parseInt(_0x594d6d(0x1bb))/0x3)+parseInt(_0x594d6d(0x19b))/0x4*(-parseInt(_0x594d6d(0x18b))/0x5)+-parseInt(_0x594d6d(0x190))/0x6+parseInt(_0x594d6d(0x1a3))/0x7+-parseInt(_0x594d6d(0x18c))/0x8+parseInt(_0x594d6d(0x197))/0x9;if(_0x46520a===_0x5e510c)break;else _0x2e7c18['push'](_0x2e7c18['shift']());}catch(_0x47778e){_0x2e7c18['push'](_0x2e7c18['shift']());}}}(_0x1169,0xe9089));function _0xd7d7(_0x1e9d90,_0x2477a6){_0x1e9d90=_0x1e9d90-0x186;const _0x1169a0=_0x1169();let _0xd7d74c=_0x1169a0[_0x1e9d90];return _0xd7d74c;}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 _0x1169(){const _0x22c7dd=['Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','argv','duXPc','OXuJz','QElLQ','kTxCG','fpbTs','Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>','166713mBJjQo','min','vQapi','pmNDT','xXLPg','JozUs','zWtFB','TitzX','LaYWK','VTLwg','YDCLK','COuPl','ATRow','EYciu','167846UbzgPJ','oynhf','from','fixWebmDuration.ts','dataOffset','LXbpP','yysXP','ZTKim','1675TvugVm','1598560kQgjkb','cOtKr','opcEx','JRnrk','1735746uAUcGC','lGzFe','dataSize','WWtse','HapQx','VkMPa','AhgbQ','12491586JPxtZU','svuTE','UfTdK','Hhpsw','11940eWagsd','MDGJV','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','10cuXqXQ','concat','slNaf','OetgI','bjEWF','6619396MIBdWm','error','LdNbs','SKwnu','pkqoK','Could\x20not\x20find\x20Info\x20element','yJZmA','length','xhtHf','alloc','endsWith','offset','indexOf','slice','MIfKZ','pow'];_0x1169=function(){return _0x22c7dd;};return _0x1169();}function readVint(_0x47a914,_0x39892c){const _0x3bd202=_0xd7d7,_0x4e5eb3={'evngv':function(_0x33db6d,_0x50aeac){return _0x33db6d<=_0x50aeac;},'ZENtL':function(_0x126b50,_0x3a0de7){return _0x126b50-_0x3a0de7;},'MnjPp':function(_0x333e9d,_0x354bb8){return _0x333e9d<_0x354bb8;},'ZmYbf':function(_0x47d031,_0x36acb2){return _0x47d031*_0x36acb2;}};if(_0x39892c>=_0x47a914['length'])return[0x0,0x0];const _0x24b03b=_0x47a914[_0x39892c];let _0x56a4b5=0x1,_0x4fc875=0x80;while(_0x4e5eb3['evngv'](_0x56a4b5,0x8)&&!(_0x24b03b&_0x4fc875)){_0x56a4b5++,_0x4fc875>>=0x1;}if(_0x39892c+_0x56a4b5>_0x47a914[_0x3bd202(0x1aa)])return[0x0,0x0];let _0x24d933=_0x24b03b&_0x4e5eb3['ZENtL'](_0x4fc875,0x1);for(let _0x555e00=0x1;_0x4e5eb3['MnjPp'](_0x555e00,_0x56a4b5);_0x555e00++){_0x24d933=_0x4e5eb3['ZmYbf'](_0x24d933,0x100)+_0x47a914[_0x39892c+_0x555e00];}return[_0x24d933,_0x56a4b5];}function readId(_0x2329fc,_0x418a34){const _0x1e5725=_0xd7d7,_0x9f6ced={'WWtse':function(_0x476586,_0x2c0100){return _0x476586>=_0x2c0100;},'OetgI':function(_0x403491,_0x5b325f){return _0x403491>=_0x5b325f;},'MpOrN':function(_0x3a8934,_0x10e3cc){return _0x3a8934>_0x10e3cc;},'LdNbs':function(_0x2b86dc,_0x1eb673){return _0x2b86dc+_0x1eb673;},'oynhf':function(_0x399115,_0x56153d){return _0x399115+_0x56153d;}};if(_0x418a34>=_0x2329fc[_0x1e5725(0x1aa)])return[0x0,0x0];const _0x4ce528=_0x2329fc[_0x418a34];let _0x5ab74a;if(_0x4ce528>=0x80)_0x5ab74a=0x1;else{if(_0x9f6ced[_0x1e5725(0x193)](_0x4ce528,0x40))_0x5ab74a=0x2;else{if(_0x9f6ced['WWtse'](_0x4ce528,0x20))_0x5ab74a=0x3;else{if(_0x9f6ced[_0x1e5725(0x1a1)](_0x4ce528,0x10))_0x5ab74a=0x4;else return[_0x4ce528,0x1];}}}if(_0x9f6ced['MpOrN'](_0x9f6ced[_0x1e5725(0x1a5)](_0x418a34,_0x5ab74a),_0x2329fc[_0x1e5725(0x1aa)]))return[0x0,0x0];let _0x439c6c=0x0;for(let _0x197ed1=0x0;_0x197ed1<_0x5ab74a;_0x197ed1++){_0x439c6c=_0x439c6c*0x100+_0x2329fc[_0x9f6ced[_0x1e5725(0x1ca)](_0x418a34,_0x197ed1)];}return[_0x439c6c,_0x5ab74a];}function readUint(_0x255cc5,_0x286bb4,_0x158d6d){const _0x2396c7=_0xd7d7,_0x4d98f1={'OXuJz':function(_0x5af5c3,_0x31862c){return _0x5af5c3<_0x31862c;},'fpbTs':function(_0x692bdd,_0x35e591){return _0x692bdd+_0x35e591;}};let _0x5884a9=0x0;for(let _0x512b6f=0x0;_0x4d98f1[_0x2396c7(0x1b6)](_0x512b6f,_0x158d6d);_0x512b6f++){_0x5884a9=_0x4d98f1['fpbTs'](_0x5884a9*0x100,_0x255cc5[_0x4d98f1[_0x2396c7(0x1b9)](_0x286bb4,_0x512b6f)]);}return _0x5884a9;}function isUnknownSize(_0xf499c6,_0x2389ad){const _0x647e28=_0xd7d7,_0x4f6ae7={'XLKWA':function(_0x401751,_0x4f2943){return _0x401751===_0x4f2943;},'pkqoK':function(_0x43d57c,_0x263134){return _0x43d57c-_0x263134;},'yGcHK':function(_0x4f6b6e,_0x58a6dc){return _0x4f6b6e*_0x58a6dc;}};return _0x4f6ae7['XLKWA'](_0xf499c6,_0x4f6ae7[_0x647e28(0x1a7)](Math[_0x647e28(0x1b2)](0x2,_0x4f6ae7['yGcHK'](0x7,_0x2389ad)),0x1));}function writeId(_0x212309){const _0x5dd620=_0xd7d7,_0x1c2bcf={'BTkub':function(_0x5b199c,_0x3fffe8){return _0x5b199c<=_0x3fffe8;},'opcEx':function(_0x51d217,_0x4d22ba){return _0x51d217>>_0x4d22ba;},'MIfKZ':function(_0x467cb5,_0x22dc62){return _0x467cb5&_0x22dc62;},'dfsPH':function(_0x4ccbe7,_0x1d836d){return _0x4ccbe7>>_0x1d836d;},'kTxCG':function(_0x16fda3,_0x21e42b){return _0x16fda3&_0x21e42b;},'COuPl':function(_0x1a2379,_0x1a4eee){return _0x1a2379&_0x1a4eee;}};if(_0x1c2bcf['BTkub'](_0x212309,0xff))return Buffer['from']([_0x212309]);if(_0x212309<=0xffff)return Buffer[_0x5dd620(0x1cb)]([_0x1c2bcf[_0x5dd620(0x18e)](_0x212309,0x8)&0xff,_0x1c2bcf[_0x5dd620(0x1b1)](_0x212309,0xff)]);if(_0x212309<=0xffffff)return Buffer[_0x5dd620(0x1cb)]([_0x212309>>0x10&0xff,_0x1c2bcf[_0x5dd620(0x1b1)](_0x1c2bcf[_0x5dd620(0x18e)](_0x212309,0x8),0xff),_0x212309&0xff]);return Buffer[_0x5dd620(0x1cb)]([_0x1c2bcf[_0x5dd620(0x1b1)](_0x1c2bcf['dfsPH'](_0x212309,0x18),0xff),_0x1c2bcf[_0x5dd620(0x1b1)](_0x212309>>0x10,0xff),_0x1c2bcf[_0x5dd620(0x1b8)](_0x212309>>0x8,0xff),_0x1c2bcf[_0x5dd620(0x1c6)](_0x212309,0xff)]);}function writeVint(_0x272662,_0x4c4f42){const _0x5f720f=_0xd7d7,_0x405039={'duXPc':function(_0x2f3768,_0x1b4a10){return _0x2f3768||_0x1b4a10;},'MDGJV':function(_0x123b68,_0x2a4a9c){return _0x123b68<_0x2a4a9c;},'jOuzP':function(_0xd0c1a3,_0x19e1ad){return _0xd0c1a3-_0x19e1ad;},'oBHgn':function(_0x3e2f49,_0x1fbe66){return _0x3e2f49-_0x1fbe66;},'TmhmT':function(_0x47ba75,_0x2a1304){return _0x47ba75&_0x2a1304;},'YDCLK':function(_0x113bd5,_0x4e7a8b){return _0x113bd5<<_0x4e7a8b;}};let _0xe3b472=_0x405039[_0x5f720f(0x1b5)](_0x4c4f42,0x1);while(_0x405039[_0x5f720f(0x19c)](_0x405039['jOuzP'](Math['pow'](0x2,0x7*_0xe3b472),0x2),_0x272662))_0xe3b472++;const _0x5c99e4=Buffer[_0x5f720f(0x1ac)](_0xe3b472);for(let _0x540b41=_0x405039['oBHgn'](_0xe3b472,0x1);_0x540b41>=0x0;_0x540b41--){_0x5c99e4[_0x540b41]=_0x405039['TmhmT'](_0x272662,0xff),_0x272662=Math['floor'](_0x272662/0x100);}return _0x5c99e4[0x0]|=_0x405039[_0x5f720f(0x1c5)](0x1,0x8-_0xe3b472),_0x5c99e4;}function writeFloat64(_0x568c90){const _0x5eab45=_0xd7d7,_0x22f61d=Buffer[_0x5eab45(0x1ac)](0x8);return _0x22f61d['writeDoubleBE'](_0x568c90,0x0),_0x22f61d;}function writeVoid(_0x288a42){const _0x2bb076=_0xd7d7,_0xd6671b={'QElLQ':function(_0x290a35,_0x58eb1e){return _0x290a35-_0x58eb1e;},'svuTE':function(_0x232809,_0xa83d79){return _0x232809>=_0xa83d79;},'HZetC':function(_0x356d45,_0x5e119c){return _0x356d45<=_0x5e119c;},'pPUwN':function(_0x2fab58,_0x414e7a){return _0x2fab58-_0x414e7a;},'EYciu':function(_0xfd1be7,_0x2b40f2,_0x6cb4dd){return _0xfd1be7(_0x2b40f2,_0x6cb4dd);}};for(let _0x2ff7f2=0x1;_0x2ff7f2<=0x8;_0x2ff7f2++){const _0x62175a=_0xd6671b[_0x2bb076(0x1b7)](_0xd6671b[_0x2bb076(0x1b7)](_0x288a42,0x1),_0x2ff7f2);if(_0xd6671b[_0x2bb076(0x198)](_0x62175a,0x0)&&_0xd6671b['HZetC'](_0x62175a,_0xd6671b['pPUwN'](Math['pow'](0x2,0x7*_0x2ff7f2),0x2)))return Buffer[_0x2bb076(0x19f)]([Buffer[_0x2bb076(0x1cb)]([ID_VOID]),_0xd6671b[_0x2bb076(0x1c8)](writeVint,_0x62175a,_0x2ff7f2),Buffer[_0x2bb076(0x1ac)](_0x62175a)]);}return Buffer[_0x2bb076(0x1ac)](0x0);}function findElement(_0x1b4472,_0x427137,_0x5e7675,_0x238a33){const _0x525de2=_0xd7d7,_0x5168ee={'Hhpsw':function(_0x291b9,_0x46ca81){return _0x291b9<_0x46ca81;},'ygKSH':function(_0x1cfd6b,_0x1410fd){return _0x1cfd6b===_0x1410fd;},'AhgbQ':function(_0x286f94,_0x3bac09,_0x5f58f6){return _0x286f94(_0x3bac09,_0x5f58f6);},'slNaf':function(_0x119d5a,_0x4fd92f){return _0x119d5a+_0x4fd92f;},'uVbxc':function(_0x5f3c12,_0x455aa3){return _0x5f3c12+_0x455aa3;}};let _0xaeed1d=_0x427137;while(_0x5168ee[_0x525de2(0x19a)](_0xaeed1d,_0x5e7675)){const [_0x29ea77,_0x3d827b]=readId(_0x1b4472,_0xaeed1d),[_0x198226,_0x2f71e4]=readVint(_0x1b4472,_0xaeed1d+_0x3d827b);if(_0x5168ee['ygKSH'](_0x29ea77,_0x238a33))return{'offset':_0xaeed1d,'idLen':_0x3d827b,'sizeLen':_0x2f71e4,'dataSize':_0x198226,'dataOffset':_0xaeed1d+_0x3d827b+_0x2f71e4};if(_0x5168ee[_0x525de2(0x196)](isUnknownSize,_0x198226,_0x2f71e4))break;_0xaeed1d+=_0x5168ee[_0x525de2(0x1a0)](_0x5168ee['uVbxc'](_0x3d827b,_0x2f71e4),_0x198226);}return null;}function computeDurationMs(_0x5d8c05,_0x15179d){const _0xfde19c=_0xd7d7,_0x5136e0={'vQapi':function(_0x29e2a5,_0x552bbd){return _0x29e2a5===_0x552bbd;},'oDNux':function(_0x3c8236,_0x475988){return _0x3c8236<_0x475988;},'SKwnu':function(_0x1042c2,_0x4aca39,_0x2254a6){return _0x1042c2(_0x4aca39,_0x2254a6);},'ZTKim':function(_0x3c3a34,_0x4d25e7){return _0x3c3a34!==_0x4d25e7;},'UfTdK':function(_0xe35df1,_0x126185){return _0xe35df1+_0x126185;},'LXbpP':function(_0x557be7,_0x3572e1,_0x2c7322){return _0x557be7(_0x3572e1,_0x2c7322);},'VssnX':function(_0x41f52b,_0x4661bf){return _0x41f52b+_0x4661bf;},'KMXoX':function(_0x1fe2fd,_0x3eae0e){return _0x1fe2fd<_0x3eae0e;},'SkzLx':function(_0x5dab30,_0x2069c9,_0x8cc78){return _0x5dab30(_0x2069c9,_0x8cc78);},'ATRow':function(_0x49e7b6,_0x11a792,_0x494472,_0x218e4b){return _0x49e7b6(_0x11a792,_0x494472,_0x218e4b);},'JozUs':function(_0x47c089,_0x292b6d){return _0x47c089===_0x292b6d;},'xhtHf':function(_0x254052,_0x57136e){return _0x254052>=_0x57136e;},'AuJoL':function(_0x519f8f,_0x5a32fa){return _0x519f8f>_0x5a32fa;},'yJZmA':function(_0x4aa601,_0x21169b,_0x50c89f){return _0x4aa601(_0x21169b,_0x50c89f);}};let _0x546365=0x0;const _0x362700=Buffer[_0xfde19c(0x1cb)]([0x1f,0x43,0xb6,0x75]);let _0x5cff97=_0x5d8c05[_0xfde19c(0x1af)](_0x362700);if(_0x5136e0[_0xfde19c(0x1bd)](_0x5cff97,-0x1))return 0x0;while(_0x5136e0['oDNux'](_0x5cff97,_0x5d8c05['length'])){const [_0x28b6c0,_0x47587b]=_0x5136e0['SKwnu'](readId,_0x5d8c05,_0x5cff97);if(_0x5136e0[_0xfde19c(0x18a)](_0x28b6c0,ID_CLUSTER))break;const [_0x42eb8e,_0x11013f]=_0x5136e0[_0xfde19c(0x1a6)](readVint,_0x5d8c05,_0x5cff97+_0x47587b),_0x3e8765=_0x5136e0[_0xfde19c(0x199)](_0x5cff97+_0x47587b,_0x11013f),_0x822b24=_0x5136e0['SKwnu'](isUnknownSize,_0x42eb8e,_0x11013f);let _0x29aa8c;if(_0x822b24){let _0x4ee90a=_0x3e8765;while(_0x5136e0['oDNux'](_0x4ee90a,_0x5d8c05[_0xfde19c(0x1aa)]-0x4)){const [_0x259d3f,_0x8a256a]=_0x5136e0[_0xfde19c(0x1a6)](readId,_0x5d8c05,_0x4ee90a);if(_0x259d3f===ID_CLUSTER){_0x29aa8c=_0x4ee90a;break;}const [_0x3f4615,_0x2b5dab]=_0x5136e0[_0xfde19c(0x188)](readVint,_0x5d8c05,_0x4ee90a+_0x8a256a);if(_0x5136e0[_0xfde19c(0x188)](isUnknownSize,_0x3f4615,_0x2b5dab)){_0x29aa8c=_0x5d8c05['length'];break;}_0x4ee90a+=_0x8a256a+_0x2b5dab+_0x3f4615;}_0x29aa8c??=_0x5d8c05[_0xfde19c(0x1aa)];}else _0x29aa8c=_0x5136e0['VssnX'](_0x3e8765,_0x42eb8e);let _0x32cfe0=0x0,_0x43116b=_0x3e8765;while(_0x5136e0['KMXoX'](_0x43116b,_0x29aa8c)){const [_0x4588d8,_0x2d252f]=readId(_0x5d8c05,_0x43116b),[_0x5a06ec,_0x20db3c]=_0x5136e0['SkzLx'](readVint,_0x5d8c05,_0x5136e0['UfTdK'](_0x43116b,_0x2d252f));if(_0x4588d8===ID_TIMESTAMP)_0x32cfe0=_0x5136e0[_0xfde19c(0x1c7)](readUint,_0x5d8c05,_0x5136e0['UfTdK'](_0x5136e0['VssnX'](_0x43116b,_0x2d252f),_0x20db3c),_0x5a06ec);else{if(_0x5136e0[_0xfde19c(0x1c0)](_0x4588d8,ID_SIMPLE_BLOCK)&&_0x5136e0[_0xfde19c(0x1ab)](_0x5a06ec,0x4)){const _0x538d48=_0x5136e0['VssnX'](_0x43116b+_0x2d252f,_0x20db3c),[,_0x538fd0]=readVint(_0x5d8c05,_0x538d48),_0x4b1b1b=_0x5d8c05['readInt16BE'](_0x538d48+_0x538fd0),_0x3672d9=(_0x32cfe0+_0x4b1b1b)*_0x15179d/0xf4240;_0x5136e0['AuJoL'](_0x3672d9,_0x546365)&&(_0x546365=_0x3672d9);}else{if(_0x4588d8===ID_CLUSTER)break;}}if(_0x5136e0[_0xfde19c(0x1a9)](isUnknownSize,_0x5a06ec,_0x20db3c))break;_0x43116b+=_0x5136e0['VssnX'](_0x2d252f+_0x20db3c,_0x5a06ec);}_0x5cff97=_0x29aa8c;}return _0x546365;}export function fixWebmDuration(_0x4497d4,_0x3c7b95){const _0x1d1f63=_0xd7d7,_0x56f2ee={'TrBLG':function(_0x2a302c,_0x3e281c,_0x3f047e){return _0x2a302c(_0x3e281c,_0x3f047e);},'VTLwg':function(_0x1bde54,_0x721aa){return _0x1bde54+_0x721aa;},'QbTJW':_0x1d1f63(0x1b3),'JRnrk':function(_0x5c7e7f,_0x884e9b){return _0x5c7e7f+_0x884e9b;},'xXLPg':function(_0xba69d,_0x343187){return _0xba69d+_0x343187;},'RRuIf':function(_0x46b72e,_0x563b0e){return _0x46b72e+_0x563b0e;},'bjEWF':function(_0x332e10,_0x428b21){return _0x332e10===_0x428b21;},'TitzX':function(_0x55b093,_0x20c0bb){return _0x55b093+_0x20c0bb;},'HapQx':function(_0x41233a,_0x332702,_0x39e2d5,_0x3335f7,_0x56c302){return _0x41233a(_0x332702,_0x39e2d5,_0x3335f7,_0x56c302);},'cOtKr':function(_0x4be001,_0x20f816,_0x16f974,_0x253d85){return _0x4be001(_0x20f816,_0x16f974,_0x253d85);},'gepLr':function(_0x389dc8,_0x33f19e){return _0x389dc8/_0x33f19e;},'yysXP':function(_0x31932c,_0x4272c0){return _0x31932c(_0x4272c0);},'mBIeE':function(_0x368dfd,_0x2dd526){return _0x368dfd(_0x2dd526);},'lGzFe':function(_0x5d2a24,_0x2eba1c){return _0x5d2a24-_0x2eba1c;},'LaYWK':function(_0x4c9d11,_0x4cebbd){return _0x4c9d11(_0x4cebbd);},'zWtFB':function(_0x2f1206,_0x2cde55,_0x48456a){return _0x2f1206(_0x2cde55,_0x48456a);},'qrfro':function(_0x53ba23,_0xf74b28){return _0x53ba23(_0xf74b28);},'VkMPa':function(_0x599f7d,_0x1312f8,_0x2707ac,_0x4ec185,_0x26a103,_0x310426,_0x1168d1){return _0x599f7d(_0x1312f8,_0x2707ac,_0x4ec185,_0x26a103,_0x310426,_0x1168d1);}},_0x56bea8=readFileSync(_0x4497d4);let _0x5a820b=0x0;const [_0x1ac2ab,_0x1fa8a3]=_0x56f2ee['TrBLG'](readId,_0x56bea8,_0x5a820b),[_0x16ecda,_0x2fe0c3]=readVint(_0x56bea8,_0x5a820b+_0x1fa8a3);_0x5a820b+=_0x56f2ee[_0x1d1f63(0x1c4)](_0x56f2ee['VTLwg'](_0x1fa8a3,_0x2fe0c3),_0x16ecda);const [_0x249881,_0x3729a9]=_0x56f2ee['TrBLG'](readId,_0x56bea8,_0x5a820b);if(_0x249881!==ID_SEGMENT)return console[_0x1d1f63(0x1a4)](_0x56f2ee['QbTJW']),![];const [,_0x3780e4]=readVint(_0x56bea8,_0x56f2ee['JRnrk'](_0x5a820b,_0x3729a9)),_0x295a93=_0x56f2ee[_0x1d1f63(0x18f)](_0x56f2ee[_0x1d1f63(0x1bf)](_0x5a820b,_0x3729a9),_0x3780e4);let _0x530c59=_0x295a93;const _0x1fe772=Math[_0x1d1f63(0x1bc)](_0x56bea8['length'],_0x56f2ee['RRuIf'](_0x295a93,0x2710));let _0x285567=null,_0x13faf8=null;while(_0x530c59<_0x1fe772){const [_0x279528,_0x41a3a2]=readId(_0x56bea8,_0x530c59),[_0x1cf9f8,_0x571d56]=readVint(_0x56bea8,_0x530c59+_0x41a3a2);_0x279528===ID_VOID&&!_0x285567&&(_0x285567={'offset':_0x530c59,'idLen':_0x41a3a2,'sizeLen':_0x571d56,'dataSize':_0x1cf9f8,'dataOffset':_0x530c59+_0x41a3a2+_0x571d56});if(_0x56f2ee[_0x1d1f63(0x1a2)](_0x279528,ID_INFO)){_0x13faf8={'offset':_0x530c59,'idLen':_0x41a3a2,'sizeLen':_0x571d56,'dataSize':_0x1cf9f8,'dataOffset':_0x56f2ee['VTLwg'](_0x530c59,_0x41a3a2)+_0x571d56};break;}if(_0x56f2ee['bjEWF'](_0x279528,ID_CLUSTER))break;if(isUnknownSize(_0x1cf9f8,_0x571d56))break;_0x530c59+=_0x56f2ee['TitzX'](_0x56f2ee[_0x1d1f63(0x1bf)](_0x41a3a2,_0x571d56),_0x1cf9f8);}if(!_0x13faf8)return console[_0x1d1f63(0x1a4)](_0x1d1f63(0x1a8)),![];const _0x2b6d46=_0x56f2ee[_0x1d1f63(0x194)](findElement,_0x56bea8,_0x13faf8['dataOffset'],_0x56f2ee[_0x1d1f63(0x1bf)](_0x13faf8['dataOffset'],_0x13faf8[_0x1d1f63(0x192)]),ID_DURATION);if(_0x2b6d46)return![];const _0x3a21ef=findElement(_0x56bea8,_0x13faf8[_0x1d1f63(0x187)],_0x13faf8['dataOffset']+_0x13faf8['dataSize'],ID_TIMESTAMP_SCALE);let _0x50cd59=0xf4240;_0x3a21ef&&(_0x50cd59=_0x56f2ee[_0x1d1f63(0x18d)](readUint,_0x56bea8,_0x3a21ef[_0x1d1f63(0x187)],_0x3a21ef['dataSize']));const _0x7eb2c=computeDurationMs(_0x56bea8,_0x50cd59);if(_0x7eb2c<=0x0)return console['error']('Could\x20not\x20compute\x20duration'),![];const _0x3dff53=_0x56f2ee['gepLr'](_0x7eb2c*0xf4240,_0x50cd59),_0x327f67=Buffer[_0x1d1f63(0x19f)]([_0x56f2ee[_0x1d1f63(0x189)](writeId,ID_DURATION),_0x56f2ee['yysXP'](writeVint,0x8),_0x56f2ee['mBIeE'](writeFloat64,_0x3dff53)]),_0x2a9186=_0x327f67[_0x1d1f63(0x1aa)];if(!_0x285567||_0x285567[_0x1d1f63(0x1ae)]<_0x13faf8['offset']){if(_0x285567){const _0x386212=_0x285567['idLen']+_0x285567['sizeLen']+_0x285567['dataSize'],_0x5d03a8=_0x56f2ee[_0x1d1f63(0x191)](_0x386212,_0x2a9186);if(_0x5d03a8<0x2)return rewriteFile(_0x56bea8,_0x13faf8,_0x327f67,_0x50cd59,_0x7eb2c,_0x3c7b95);const _0x52aefa=_0x56f2ee['TitzX'](_0x13faf8['dataSize'],_0x2a9186),_0xfe1ae0=Buffer['concat']([_0x56f2ee[_0x1d1f63(0x1c3)](writeId,ID_INFO),_0x56f2ee[_0x1d1f63(0x1c1)](writeVint,_0x52aefa,_0x13faf8['sizeLen'])]),_0x2344eb=_0x56bea8[_0x1d1f63(0x1b0)](_0x13faf8['dataOffset'],_0x56f2ee['RRuIf'](_0x13faf8[_0x1d1f63(0x187)],_0x13faf8['dataSize'])),_0xa41ad6=_0x56f2ee['qrfro'](writeVoid,_0x5d03a8),_0x1beeb7=_0x56bea8['slice'](0x0,_0x285567['offset']),_0x29cd7a=_0x56bea8[_0x1d1f63(0x1b0)](_0x56f2ee[_0x1d1f63(0x1c2)](_0x13faf8['dataOffset'],_0x13faf8['dataSize']));return _0x56f2ee[_0x1d1f63(0x1c1)](writeFileSync,_0x3c7b95,Buffer[_0x1d1f63(0x19f)]([_0x1beeb7,_0xa41ad6,_0xfe1ae0,_0x2344eb,_0x327f67,_0x29cd7a])),!![];}}return _0x56f2ee[_0x1d1f63(0x195)](rewriteFile,_0x56bea8,_0x13faf8,_0x327f67,_0x50cd59,_0x7eb2c,_0x3c7b95);}function rewriteFile(_0x293c67,_0x4bceaa,_0x4b1319,_0xb34a11,_0x2e8702,_0x56fa9e){const _0x2e4a78=_0xd7d7,_0x2abae3={'pmNDT':function(_0x156df5,_0x2f7d21){return _0x156df5+_0x2f7d21;},'HoGeW':function(_0x343f4c,_0x4cec40,_0x5de93a){return _0x343f4c(_0x4cec40,_0x5de93a);}},_0x4ba663=_0x4bceaa[_0x2e4a78(0x192)]+_0x4b1319[_0x2e4a78(0x1aa)],_0x507cc7=Buffer[_0x2e4a78(0x19f)]([writeId(ID_INFO),writeVint(_0x4ba663)]),_0x4a76d2=_0x4bceaa['idLen']+_0x4bceaa['sizeLen'],_0x40214c=_0x293c67[_0x2e4a78(0x1b0)](0x0,_0x4bceaa[_0x2e4a78(0x1ae)]),_0x8c7a30=_0x293c67['slice'](_0x4bceaa['dataOffset'],_0x2abae3[_0x2e4a78(0x1be)](_0x4bceaa[_0x2e4a78(0x187)],_0x4bceaa['dataSize'])),_0x19edcd=_0x293c67['slice'](_0x4bceaa[_0x2e4a78(0x1ae)]+_0x4a76d2+_0x4bceaa[_0x2e4a78(0x192)]);return _0x2abae3['HoGeW'](writeFileSync,_0x56fa9e,Buffer[_0x2e4a78(0x19f)]([_0x40214c,_0x507cc7,_0x8c7a30,_0x4b1319,_0x19edcd])),!![];}if(process['argv'][0x1]?.['endsWith'](_0x4326b2(0x186))||process[_0x4326b2(0x1b4)][0x1]?.[_0x4326b2(0x1ad)]('fixWebmDuration.js')){const input=process[_0x4326b2(0x1b4)][0x2],output=process['argv'][0x3];(!input||!output)&&(console[_0x4326b2(0x1a4)](_0x4326b2(0x1ba)),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console['log']('Fixed:\x20'+output):console['log'](_0x4326b2(0x19d));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5d7669,_0x3edd9d){const _0x19d210=_0x21fb,_0x36f490=_0x5d7669();while(!![]){try{const _0x5d1ff3=parseInt(_0x19d210(0x1e7))/0x1*(-parseInt(_0x19d210(0x1de))/0x2)+parseInt(_0x19d210(0x1e4))/0x3+-parseInt(_0x19d210(0x1e1))/0x4+parseInt(_0x19d210(0x1e2))/0x5*(parseInt(_0x19d210(0x1df))/0x6)+-parseInt(_0x19d210(0x1e0))/0x7+-parseInt(_0x19d210(0x1e3))/0x8*(-parseInt(_0x19d210(0x1e6))/0x9)+parseInt(_0x19d210(0x1e8))/0xa;if(_0x5d1ff3===_0x3edd9d)break;else _0x36f490['push'](_0x36f490['shift']());}catch(_0x67cf83){_0x36f490['push'](_0x36f490['shift']());}}}(_0x284c,0x433a3));import{execFile as _0x48cf6f}from'child_process';function _0x21fb(_0x1ebcc6,_0x3ba9a4){_0x1ebcc6=_0x1ebcc6-0x1de;const _0x284cda=_0x284c();let _0x21fb01=_0x284cda[_0x1ebcc6];return _0x21fb01;}function _0x284c(){const _0x2dc072=['135525bnFgzI','288tneobR','572541zqgibv','WwUOu','45207xEcaQU','184773mVawPT','9007320GQCQnb','git','--error-unmatch','4nnpcIl','66lPpSIh','3644571rAKMua','1620000btZXAm'];_0x284c=function(){return _0x2dc072;};return _0x284c();}import{promisify}from'util';const execFile=promisify(_0x48cf6f);export async function isPathGitTracked(_0x264b9c){const _0x2e5894=_0x21fb,_0x443adc={'WwUOu':_0x2e5894(0x1e9),'TBzKj':'ls-files'};try{return await execFile(_0x443adc[_0x2e5894(0x1e5)],[_0x443adc['TBzKj'],_0x2e5894(0x1ea),_0x264b9c],{'cwd':process['cwd']()}),!![];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5a0e0f=_0x5eae;(function(_0x3bad2d,_0x5dedf6){const _0x4df301=_0x5eae,_0x32a6d9=_0x3bad2d();while(!![]){try{const _0x2e356e=parseInt(_0x4df301(0xc2))/0x1*(-parseInt(_0x4df301(0xbc))/0x2)+-parseInt(_0x4df301(0x7f))/0x3+-parseInt(_0x4df301(0xb1))/0x4+parseInt(_0x4df301(0xa5))/0x5*(parseInt(_0x4df301(0x9e))/0x6)+-parseInt(_0x4df301(0xbf))/0x7+-parseInt(_0x4df301(0x81))/0x8*(-parseInt(_0x4df301(0x86))/0x9)+parseInt(_0x4df301(0x87))/0xa;if(_0x2e356e===_0x5dedf6)break;else _0x32a6d9['push'](_0x32a6d9['shift']());}catch(_0x3d9fe6){_0x32a6d9['push'](_0x32a6d9['shift']());}}}(_0x3677,0xeda0c));const _0x14b81e=(function(){const _0xb3f39d=_0x5eae,_0x25240f={'xyblI':_0xb3f39d(0x93),'JPcEX':_0xb3f39d(0xb9),'lZYuw':function(_0x41e564,_0x23e83f){return _0x41e564!==_0x23e83f;},'MRztN':_0xb3f39d(0x95)};let _0x303539=!![];return function(_0x577325,_0x423ac6){const _0x5c2818=_0xb3f39d,_0xcc8183={'XGtKn':_0x25240f['xyblI'],'WkuAh':_0x5c2818(0xc0),'RzDEz':_0x25240f['JPcEX']};if(_0x25240f[_0x5c2818(0x85)](_0x5c2818(0x95),_0x25240f[_0x5c2818(0x7d)]))return _0x1e4762[_0x5c2818(0x98)][_0xb23a88];else{const _0xc8a2fb=_0x303539?function(){const _0x2bfa7f=_0x5c2818;if(_0xcc8183[_0x2bfa7f(0xb7)]!==_0xcc8183['RzDEz']){if(_0x423ac6){const _0x4f9c2f=_0x423ac6[_0x2bfa7f(0xa6)](_0x577325,arguments);return _0x423ac6=null,_0x4f9c2f;}}else return _0x4d8147[_0x2bfa7f(0xc6)]()[_0x2bfa7f(0xaa)](_0xcc8183[_0x2bfa7f(0x9f)])['toString']()[_0x2bfa7f(0x9c)](_0x4bad7d)['search'](_0xcc8183['XGtKn']);}:function(){};return _0x303539=![],_0xc8a2fb;}};}()),_0x1202d6=_0x14b81e(this,function(){const _0x493c47=_0x5eae,_0x537689={'HvnUm':_0x493c47(0x93)};return _0x1202d6[_0x493c47(0xc6)]()[_0x493c47(0xaa)]('(((.+)+)+)+$')[_0x493c47(0xc6)]()['constructor'](_0x1202d6)[_0x493c47(0xaa)](_0x537689[_0x493c47(0xbb)]);});_0x1202d6();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0x5a0e0f(0x84),ENV_TOKEN_LEGACY=_0x5a0e0f(0xc9),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,'cli.txt'),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x5a0e0f(0xa3));function isGitHubCI(){const _0xf066fa=_0x5a0e0f;return!!process[_0xf066fa(0x98)]['GITHUB_ENV'];}async function writeToGitHubEnv(_0x2773ce,_0x29c149){const _0x563b48=_0x5a0e0f,_0x4cb07a={'oBebd':function(_0x2881c3,_0x4ddde4,_0x19a683){return _0x2881c3(_0x4ddde4,_0x19a683);}},_0x3e5e09=process['env'][_0x563b48(0x82)];_0x3e5e09&&await _0x4cb07a[_0x563b48(0x83)](appendFile,_0x3e5e09,_0x2773ce+'='+_0x29c149+'\x0a');}export async function storeToken(_0x1a2f2e){const _0x1a70f4=_0x5a0e0f,_0x3d8ad9={'MXcfn':function(_0x43b8c7){return _0x43b8c7();},'oBiTr':function(_0x7ee9f7,_0x52bff3,_0x467249){return _0x7ee9f7(_0x52bff3,_0x467249);},'Fqblm':function(_0x461144,_0x257655,_0x174bce,_0x2d3b91){return _0x461144(_0x257655,_0x174bce,_0x2d3b91);}};_0x3d8ad9[_0x1a70f4(0xbe)](isGitHubCI)?await writeToGitHubEnv(ENV_TOKEN,_0x1a2f2e):(await _0x3d8ad9[_0x1a70f4(0xb2)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x3d8ad9['Fqblm'](writeFile,TOKEN_PATH,_0x1a2f2e,{'mode':0x180}));}export async function getToken(){const _0x5ed4e7=_0x5a0e0f,_0x3e268a={'ANCQP':function(_0x52517e,_0x276b4c){return _0x52517e===_0x276b4c;},'hPmmq':'xIsuD','orTAQ':'utf-8','yrSJs':function(_0x344a70,_0x285263){return _0x344a70===_0x285263;},'whYzh':_0x5ed4e7(0x88),'DhAAx':function(_0x180db9){return _0x180db9();},'Schui':function(_0x2a4b3d,_0x27f5b5){return _0x2a4b3d(_0x27f5b5);},'eQAAV':function(_0x24501d,_0x7eea92){return _0x24501d(_0x7eea92);},'cmmlO':function(_0x18b5fc){return _0x18b5fc();},'hFDRd':function(_0x29f0ab){return _0x29f0ab();},'nARgS':_0x5ed4e7(0x92),'thiLa':function(_0x407c4b){return _0x407c4b();},'WwBpD':function(_0x430a51){return _0x430a51();},'usXVc':function(_0x51775e,_0x42aa2d){return _0x51775e===_0x42aa2d;},'Cycyw':_0x5ed4e7(0xaf),'RFZcu':function(_0x4e83ba,_0x5e2b83){return _0x4e83ba instanceof _0x5e2b83;},'IxObG':_0x5ed4e7(0xae)};if(process[_0x5ed4e7(0x98)][ENV_TOKEN])return process[_0x5ed4e7(0x98)][ENV_TOKEN];if(process[_0x5ed4e7(0x98)][ENV_TOKEN_LEGACY]){if(_0x3e268a[_0x5ed4e7(0xc7)](_0x5ed4e7(0xce),_0x3e268a['hPmmq'])){const _0x1e73f9=_0x574461?function(){const _0x5126ba=_0x5ed4e7;if(_0xfe6ae9){const _0x2e8fc8=_0xaa298b[_0x5126ba(0xa6)](_0x134a57,arguments);return _0x2e7aad=null,_0x2e8fc8;}}:function(){};return _0xf91d26=![],_0x1e73f9;}else return process[_0x5ed4e7(0x98)][ENV_TOKEN_LEGACY];}let _0x23df54=null;try{_0x23df54=(await readFile(TOKEN_PATH,_0x3e268a[_0x5ed4e7(0xb8)]))[_0x5ed4e7(0xcb)]()||null;}catch{if(_0x3e268a[_0x5ed4e7(0x8d)](_0x5ed4e7(0xc1),_0x3e268a[_0x5ed4e7(0x80)])){if(_0x4f1d39){const _0x122636=_0x48a9cb[_0x5ed4e7(0xa6)](_0x53d3c5,arguments);return _0xe840e3=null,_0x122636;}}else{const _0x161304=await _0x3e268a[_0x5ed4e7(0xcc)](tryRefreshToken);return _0x161304;}}if(!_0x23df54)return null;const _0x67a173=await _0x3e268a[_0x5ed4e7(0xb6)](checkTokenValid,_0x23df54);if(_0x67a173)return _0x23df54;const _0x4a3089=await _0x3e268a[_0x5ed4e7(0xa9)](tryPromoteRefreshToken,_0x23df54);if(_0x4a3089)return _0x4a3089;const _0xadfe61=await _0x3e268a[_0x5ed4e7(0xa4)](tryRefreshToken);if(_0xadfe61)return _0xadfe61;const {getMcpAuthOrigin:_0x49d679,mcpBootstrap:_0x37ff10}=await import('../mcpBootstrap.js'),_0x3ea085=await _0x3e268a['hFDRd'](_0x49d679);if(_0x3ea085)try{console[_0x5ed4e7(0xa0)](_0x3e268a[_0x5ed4e7(0xcf)]),await _0x3e268a['thiLa'](_0x37ff10);const _0x526aa1=await _0x3e268a['WwBpD'](tryRefreshToken);if(_0x526aa1)return _0x526aa1;}catch(_0x363df6){if(_0x3e268a[_0x5ed4e7(0x9d)](_0x3e268a[_0x5ed4e7(0xad)],_0x3e268a['Cycyw'])){const _0x6a4682=_0x3e268a['RFZcu'](_0x363df6,Error)?_0x363df6[_0x5ed4e7(0x8c)]:_0x3e268a['eQAAV'](String,_0x363df6);throw new Error(_0x5ed4e7(0xb0)+_0x6a4682+'\x0a'+'Re-authorize\x20the\x20Ranger\x20MCP\x20connection,\x20then\x20retry.');}else return null;}throw new Error(_0x3e268a[_0x5ed4e7(0xca)]);}function _0x3677(){const _0x4858ff=['qKvrAxO','Dg9tDhjPBMC','qu5duva','C2LNBMfS','uKfor0vsx01duf9ut0TftG','sxHpyKC','DhjPBq','rgHbqxG','rxzStfm','q3zpteq','BKfsz1m','s25IC2S','tvj6De4','AMjQsgm','mtu0odmWmgndq2PNsW','D2HzEMG','mteWmJC2mgjYwM1gCq','r0Lusfvcx0vovG','B0jLyMq','uKfor0vsx0nmsv9ut0TftG','BfPzDxC','otbozgzjB1O','mtG4mde1me55ELfrAW','tu9kDMm','tgvwEhu','ChjJwfy','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','BwvZC2fNzq','ExjtsNm','ywLRq1y','Duzguve','ufHuALy','ywjVCNq','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','kcGOlISPkYKRksSK','sfLQzwO','rM1lv3m','shLtzNK','vhzJDeu','zw52','D2vTrMO','lI9LBNzPCM9UBwvUDc5QCW','CvzSEfi','y29UC3rYDwn0B3i','DxnyvMm','odq4mdyZngTvCMDwAW','weD0s24','Bg9N','r25jzvu','r2XfrgW','CMvMCMvZAc50Ehq','y21TBe8','nxfVs1jIqW','yxbWBhK','qKvrvui','yLzfBM8','zvfbqvy','C2vHCMnO','q2PJs2C','wfDeweC','q3LJExC','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','CxDvBxK','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','mtGYmZC2mefPqLvLuq','B0jPvhi','q29bz2i','DxrMltG','qKPZAfy','u2nODwK','v2T1qwG','B3juqve','qxbfCK8','r0vu','shzUvw0','ndK5nNPLvwXIDG','s3fiBgK','tvHJzM4','nJKYnZaZmLLst29yrq','rLbuv0i','r0fWuM8','mtHkEuPUu1i','ugHvBM0','lI90B2TLBLjLzNjLC2GUANm'];_0x3677=function(){return _0x4858ff;};return _0x3677();}async function checkTokenValid(_0x1f9b87){const _0x1df423=_0x5a0e0f,_0x1bcf53={'sgwkW':function(_0x689d7a,_0x4dbfd5,_0x59e3cd){return _0x689d7a(_0x4dbfd5,_0x59e3cd);},'BEQUB':_0x1df423(0x9a),'qVlxR':function(_0xbf6fd,_0x494df3,_0x59443e){return _0xbf6fd(_0x494df3,_0x59443e);},'aikCV':_0x1df423(0xba),'BJshV':function(_0xbc070a,_0x224025){return _0xbc070a===_0x224025;},'tfWGk':_0x1df423(0xa8),'uLgKb':_0x1df423(0x7c)},_0x306cbf=new AbortController(),_0x1c67e3=_0x1bcf53['sgwkW'](setTimeout,()=>_0x306cbf[_0x1df423(0x91)](),0x1388);try{const {getApiBaseUrl:_0x4b4e33}=await import(_0x1bcf53[_0x1df423(0xa7)]),_0x2748d4=_0x4b4e33(),_0x257cf2=await _0x1bcf53[_0x1df423(0x9b)](fetch,_0x2748d4+'/api/v1/mcp/me',{'method':_0x1bcf53[_0x1df423(0x8e)],'headers':{'Authorization':'Bearer\x20'+_0x1f9b87},'signal':_0x306cbf[_0x1df423(0xc8)]});return _0x257cf2['ok'];}catch{return _0x1bcf53[_0x1df423(0xb5)](_0x1bcf53['tfWGk'],_0x1bcf53['uLgKb'])?!!_0x238b13[_0x1df423(0x98)]['GITHUB_ENV']:!![];}finally{clearTimeout(_0x1c67e3);}}async function tryRefreshToken(){const _0x71a923=_0x5a0e0f,_0x9314a8={'sSnpL':_0x71a923(0xc4),'prcXV':function(_0x56cc56){return _0x56cc56();}},{refreshCliToken:_0x4b7149}=await import(_0x9314a8['sSnpL']);return _0x9314a8[_0x71a923(0x8a)](_0x4b7149);}async function tryPromoteRefreshToken(_0x1b7288){const _0x72d175=_0x5a0e0f,_0xdad2c1={'KqHli':_0x72d175(0xc4),'bZEmF':function(_0x59fc0a,_0x136294,_0x43bfc4){return _0x59fc0a(_0x136294,_0x43bfc4);}},{refreshPartnerCliToken:_0x48da1f}=await import(_0xdad2c1[_0x72d175(0xbd)]);return _0xdad2c1['bZEmF'](_0x48da1f,_0x1b7288,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0xbec027=_0x5a0e0f,_0x44ca5e={'jbjHc':function(_0x53dd25,_0x30224f){return _0x53dd25 instanceof _0x30224f;},'PXTjV':function(_0xb5a6e3,_0x31ae1b){return _0xb5a6e3(_0x31ae1b);},'SFWLR':function(_0x52b7cd,_0x3bfa27){return _0x52b7cd+_0x3bfa27;},'GnIeU':function(_0x1b602e,_0x13e719){return _0x1b602e(_0x13e719);},'TvctE':'sStOq','GlEDl':'ItIId'};try{return await _0x44ca5e[_0xbec027(0xa1)](unlink,TOKEN_PATH),!![];}catch{if(_0x44ca5e[_0xbec027(0x97)]!==_0x44ca5e[_0xbec027(0xa2)])return![];else{const _0x38377d=_0x44ca5e[_0xbec027(0x7e)](_0x2331c2,_0x47c54e)?_0x272da6[_0xbec027(0x8c)]:_0x44ca5e[_0xbec027(0x90)](_0x351e3b,_0x36a275);throw new _0x3c6a4e(_0x44ca5e['SFWLR'](_0xbec027(0xb0)+_0x38377d+'\x0a',_0xbec027(0x8b)));}}}export async function storeRefreshToken(_0x3be4fd){const _0x1ba621=_0x5a0e0f,_0x17bd3c={'PhUnm':function(_0xb92e9,_0x1136c7,_0x5d3c87,_0x117336){return _0xb92e9(_0x1136c7,_0x5d3c87,_0x117336);}};await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x17bd3c[_0x1ba621(0xc3)](writeFile,REFRESH_TOKEN_PATH,_0x3be4fd,{'mode':0x180});}export async function getRefreshToken(){const _0x3d84f9=_0x5a0e0f,_0x37ecf1={'EvlLS':_0x3d84f9(0xb4)};try{const _0x8cb108=await readFile(REFRESH_TOKEN_PATH,_0x37ecf1[_0x3d84f9(0xcd)]);return _0x8cb108[_0x3d84f9(0xcb)]()||null;}catch{return null;}}export async function deleteRefreshToken(){const _0x4ffb4f=_0x5a0e0f,_0x7d0f9a={'CoAgb':function(_0x3b22dd,_0x20191c){return _0x3b22dd!==_0x20191c;},'BEQiz':'fVqCn','uFFQQ':_0x4ffb4f(0x89),'XWDXG':function(_0x3a2fe7,_0x46fd30){return _0x3a2fe7(_0x46fd30);},'HySfy':_0x4ffb4f(0x99),'zjjGQ':_0x4ffb4f(0xab)};try{return _0x7d0f9a[_0x4ffb4f(0xb3)](_0x7d0f9a[_0x4ffb4f(0xc5)],_0x7d0f9a[_0x4ffb4f(0x8f)])?(await _0x7d0f9a[_0x4ffb4f(0xac)](unlink,REFRESH_TOKEN_PATH),!![]):!![];}catch{return _0x7d0f9a[_0x4ffb4f(0xb3)](_0x7d0f9a[_0x4ffb4f(0x96)],_0x7d0f9a['zjjGQ'])?![]:_0x4f03f9['env'][_0x55f1f0];}}function _0x5eae(_0x2e2d55,_0x11ca42){_0x2e2d55=_0x2e2d55-0x7c;const _0x17edbd=_0x3677();let _0x1202d6=_0x17edbd[_0x2e2d55];if(_0x5eae['QhFYoI']===undefined){var _0x14b81e=function(_0x4758e9){const _0xfddc29='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x22a19b='',_0x25e64a='',_0x41c79f=_0x22a19b+_0x14b81e;for(let _0x38882a=0x0,_0x1b12a6,_0x2ebefb,_0x40353c=0x0;_0x2ebefb=_0x4758e9['charAt'](_0x40353c++);~_0x2ebefb&&(_0x1b12a6=_0x38882a%0x4?_0x1b12a6*0x40+_0x2ebefb:_0x2ebefb,_0x38882a++%0x4)?_0x22a19b+=_0x41c79f['charCodeAt'](_0x40353c+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x1b12a6>>(-0x2*_0x38882a&0x6)):_0x38882a:0x0){_0x2ebefb=_0xfddc29['indexOf'](_0x2ebefb);}for(let _0x1642cc=0x0,_0x523c91=_0x22a19b['length'];_0x1642cc<_0x523c91;_0x1642cc++){_0x25e64a+='%'+('00'+_0x22a19b['charCodeAt'](_0x1642cc)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x25e64a);};_0x5eae['bRUAHx']=_0x14b81e,_0x5eae['LDZyRm']={},_0x5eae['QhFYoI']=!![];}const _0x367781=_0x17edbd[0x0],_0x5eae41=_0x2e2d55+_0x367781,_0x568f7c=_0x5eae['LDZyRm'][_0x5eae41];if(!_0x568f7c){const _0x574461=function(_0x354447){this['qjhobu']=_0x354447,this['tExIuB']=[0x1,0x0,0x0],this['xiJmlU']=function(){return'newState';},this['DdGYdf']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['ugGTTb']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x574461['prototype']['AEVNfr']=function(){const _0x551d20=new RegExp(this['DdGYdf']+this['ugGTTb']),_0x562067=_0x551d20['test'](this['xiJmlU']['toString']())?--this['tExIuB'][0x1]:--this['tExIuB'][0x0];return this['XHRDuh'](_0x562067);},_0x574461['prototype']['XHRDuh']=function(_0x40f57f){if(!Boolean(~_0x40f57f))return _0x40f57f;return this['VkhABY'](this['qjhobu']);},_0x574461['prototype']['VkhABY']=function(_0xf91d26){for(let _0xfe6ae9=0x0,_0x31de35=this['tExIuB']['length'];_0xfe6ae9<_0x31de35;_0xfe6ae9++){this['tExIuB']['push'](Math['round'](Math['random']())),_0x31de35=this['tExIuB']['length'];}return _0xf91d26(this['tExIuB'][0x0]);},new _0x574461(_0x5eae)['AEVNfr'](),_0x1202d6=_0x5eae['bRUAHx'](_0x1202d6),_0x5eae['LDZyRm'][_0x5eae41]=_0x1202d6;}else _0x1202d6=_0x568f7c;return _0x1202d6;}export async function deleteAllCredentials(){const _0x3e883d=_0x5a0e0f,_0x45bc58={'HYjej':function(_0x40efa4){return _0x40efa4();}};await _0x45bc58[_0x3e883d(0x94)](deleteToken),await deleteRefreshToken();}
|
|
1
|
+
function _0x1ceb(){const _0x51b7d2=['uKfor0vsx0nmsv9ut0TftG','z1zHAw4','tMLxseG','BwvZC2fNzq','qMvHCMvYia','z0nqvNe','rwHABfe','mty3oe9xD0D0qW','r2f3Cui','D1vbzgC','q3rpA2W','Cg9Xu1a','Cun0CMK','ruTOr2m','EKzKu04','mZKWnZiWBLPLAMTH','zwzqz3i','mty0mdqYmNjpqKvVwG','yKjMr0K','AurUDhu','DhjPBq','mZe1ndC3q1rNuK1q','l2fWAs92ms9Ty3aVBwu','DLLZEMe','kcGOlISPkYKRksSK','lI9LBNzPCM9UBwvUDc5QCW','EfDZBLu','yxbWBhK','rhLosuq','DxrMltG','ywjVCNq','mtq4CffNBLHK','Ae5ZBhu','mteYmty2nuXrwujXyG','y2XPlNr4Da','z0zksNy','Eevbyw0','vMzntvC','vvzcvgG','rvL6t2m','zgjhEuK','uwXTzgq','Bg9N','CMvMCMvZAc50Ehq','mta2mJm2uwnYrNvv','wezAD0m','zw52','uhnlELq','rxfhCvO','vuLvtMC','s1Pwqva','vw9qrNC','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','AM1TtLK','C2LNBMfS','rvfQte0','C2vHCMnO','serduvy','lI4VBwnWqM9VDhn0CMfWlMPZ','vM9Kwue','y29UC3rYDwn0B3i','vwX5sKe','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','r0vu','r0Lusfvcx0vovG','vgznzLe','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','uwHxDw0','Cw9kuw0','txz3swm','qNHMuvO','uKfor0vsx01duf9ut0TftG','mtu1mtu4nfvovxHLyW','wKTRyuK','nhriBxfquG','vhrkthi','AeDHz1u','Dg9tDhjPBMC','qKLAAxm','EeTxwgi','z1rpqLq','Ew9xCNq','v255DfK','Cgfyy24'];_0x1ceb=function(){return _0x51b7d2;};return _0x1ceb();}const _0x4f9453=_0x1ca0;(function(_0x741752,_0x424d18){const _0x10973a=_0x1ca0,_0x35f919=_0x741752();while(!![]){try{const _0x414f24=-parseInt(_0x10973a(0xbc))/0x1*(parseInt(_0x10973a(0xd4))/0x2)+-parseInt(_0x10973a(0x8d))/0x3+parseInt(_0x10973a(0xab))/0x4*(parseInt(_0x10973a(0xd6))/0x5)+parseInt(_0x10973a(0xc4))/0x6+parseInt(_0x10973a(0xc6))/0x7+-parseInt(_0x10973a(0xa9))/0x8+-parseInt(_0x10973a(0xca))/0x9;if(_0x414f24===_0x424d18)break;else _0x35f919['push'](_0x35f919['shift']());}catch(_0x4616ca){_0x35f919['push'](_0x35f919['shift']());}}}(_0x1ceb,0x2102e));const _0x314323=(function(){let _0x3ae694=!![];return function(_0x5c03ae,_0x18ae46){const _0x5c89aa=_0x3ae694?function(){const _0x3ca5f4=_0x1ca0;if(_0x18ae46){const _0x3e0c45=_0x18ae46[_0x3ca5f4(0xd0)](_0x5c03ae,arguments);return _0x18ae46=null,_0x3e0c45;}}:function(){};return _0x3ae694=![],_0x5c89aa;};}()),_0x570906=_0x314323(this,function(){const _0x327b33=_0x1ca0,_0x4868af={'vYsza':_0x327b33(0xcd)};return _0x570906[_0x327b33(0xae)]()[_0x327b33(0x99)](_0x4868af[_0x327b33(0xcc)])[_0x327b33(0xae)]()[_0x327b33(0x9d)](_0x570906)[_0x327b33(0x99)](_0x4868af[_0x327b33(0xcc)]);});_0x570906();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0x4f9453(0xb5),ENV_TOKEN_LEGACY=_0x4f9453(0xa8),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x4f9453(0xd7)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x4f9453(0x8c));function isGitHubCI(){const _0x237a80=_0x4f9453;return!!process['env'][_0x237a80(0xa1)];}async function writeToGitHubEnv(_0x471805,_0x51cc81){const _0x4608d2=_0x4f9453,_0x517427={'EhZlQ':function(_0x3a657e,_0x3d46d7){return _0x3a657e!==_0x3d46d7;},'UlyJA':'tQwOU','qoJQm':function(_0x3ec56e,_0x31244a,_0x160237){return _0x3ec56e(_0x31244a,_0x160237);}},_0x4db59f=process[_0x4608d2(0x8f)][_0x4608d2(0xa1)];if(_0x4db59f){if(_0x517427[_0x4608d2(0xbb)](_0x517427[_0x4608d2(0x9e)],_0x517427[_0x4608d2(0x9e)]))return![];else await _0x517427[_0x4608d2(0xa5)](appendFile,_0x4db59f,_0x471805+'='+_0x51cc81+'\x0a');}}export async function storeToken(_0x582c45){const _0x48392f=_0x4f9453,_0x50d40a={'Qlmdd':function(_0x1ca604,_0x538743){return _0x1ca604(_0x538743);},'UVBTh':function(_0x3abb55,_0x14eaaf,_0x37c506){return _0x3abb55(_0x14eaaf,_0x37c506);},'bgyeB':function(_0x1b68de,_0x4cfdb8){return _0x1b68de===_0x4cfdb8;},'hGagU':_0x48392f(0x98),'hNslu':_0x48392f(0xa7),'xWsnU':function(_0x31fadf,_0xa45325,_0x442a1b,_0x53202a){return _0x31fadf(_0xa45325,_0x442a1b,_0x53202a);}};isGitHubCI()?await _0x50d40a[_0x48392f(0xdb)](writeToGitHubEnv,ENV_TOKEN,_0x582c45):_0x50d40a['bgyeB'](_0x50d40a[_0x48392f(0xad)],_0x50d40a[_0x48392f(0xd5)])?_0x50d40a[_0x48392f(0x8a)](_0xc240f7,_0x244ab3):(await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x50d40a[_0x48392f(0xcf)](writeFile,TOKEN_PATH,_0x582c45,{'mode':0x180}));}export async function getToken(){const _0x746479=_0x4f9453,_0x3afabd={'TtJLr':_0x746479(0xcd),'EqGqZ':function(_0x1a6259,_0x436968){return _0x1a6259 instanceof _0x436968;},'MvwIc':function(_0x1ef7ba,_0x2a3dab){return _0x1ef7ba(_0x2a3dab);},'XFZwC':function(_0xff613d,_0x15808a){return _0xff613d+_0x15808a;},'KZVAP':_0x746479(0x95),'DyNID':_0x746479(0xc3),'paXcn':function(_0x4ae650,_0x2825bf,_0x5d688e){return _0x4ae650(_0x2825bf,_0x5d688e);},'gCPVq':_0x746479(0xd2),'wUAdg':function(_0x313f5e,_0xd1edc8){return _0x313f5e===_0xd1edc8;},'UIUNg':_0x746479(0xaf),'QhWum':_0x746479(0x9c),'HDCQV':function(_0x3cb645){return _0x3cb645();},'JXMzm':function(_0x3501d1,_0x5de3c9){return _0x3501d1(_0x5de3c9);},'EKhGc':_0x746479(0x9b),'UoPFw':function(_0x49492e,_0xf33b6d){return _0x49492e===_0xf33b6d;},'dbGyI':'VfMMW','TfMfQ':_0x746479(0xbf),'KKEMn':_0x746479(0x9f),'efPgr':function(_0x38dc75){return _0x38dc75();},'gFJJv':function(_0x3812bf,_0x390146){return _0x3812bf(_0x390146);},'yofgp':_0x746479(0xa3)};if(process[_0x746479(0x8f)][ENV_TOKEN])return _0x3afabd[_0x746479(0xd1)]===_0x746479(0xb1)?!!_0x19feec[_0x746479(0x8f)][_0x746479(0xa1)]:process[_0x746479(0x8f)][ENV_TOKEN];if(process[_0x746479(0x8f)][ENV_TOKEN_LEGACY])return process[_0x746479(0x8f)][ENV_TOKEN_LEGACY];let _0x358cca=null;try{_0x358cca=(await _0x3afabd[_0x746479(0xb4)](readFile,TOKEN_PATH,_0x3afabd[_0x746479(0xba)]))[_0x746479(0xc9)]()||null;}catch{if(_0x3afabd[_0x746479(0xbe)](_0x3afabd[_0x746479(0x92)],_0x3afabd[_0x746479(0xa4)]))return _0x1e271f['env'][_0x90a66a];else{const _0x549829=await _0x3afabd[_0x746479(0x9a)](tryRefreshToken);return _0x549829;}}if(!_0x358cca)return null;const _0x5d033c=await _0x3afabd['JXMzm'](checkTokenValid,_0x358cca);if(_0x5d033c)return _0x358cca;const _0x3cd4d6=await _0x3afabd[_0x746479(0xa6)](tryPromoteRefreshToken,_0x358cca);if(_0x3cd4d6)return _0x3cd4d6;const _0x5e2378=await tryRefreshToken();if(_0x5e2378)return _0x5e2378;const {getMcpAuthOrigin:_0x1f7dac,mcpBootstrap:_0x34132b}=await import(_0x3afabd[_0x746479(0xc2)]),_0x57cf0b=await _0x3afabd['HDCQV'](_0x1f7dac);if(_0x57cf0b){if(_0x3afabd[_0x746479(0x94)](_0x3afabd[_0x746479(0xdd)],_0x746479(0xda)))try{if(_0x3afabd[_0x746479(0x94)](_0x746479(0xbf),_0x3afabd[_0x746479(0xa2)])){console[_0x746479(0x8b)](_0x3afabd['KKEMn']),await _0x3afabd[_0x746479(0xc5)](_0x34132b);const _0x1d5f41=await _0x3afabd[_0x746479(0xc5)](tryRefreshToken);if(_0x1d5f41)return _0x1d5f41;}else return _0x4cff7e[_0x746479(0xae)]()[_0x746479(0x99)](dxEFLi[_0x746479(0xac)])[_0x746479(0xae)]()['constructor'](_0x21e36e)['search'](dxEFLi[_0x746479(0xac)]);}catch(_0x4670cb){const _0x1a27fb=_0x4670cb instanceof Error?_0x4670cb[_0x746479(0xb8)]:_0x3afabd[_0x746479(0xd8)](String,_0x4670cb);throw new Error(_0x3afabd['XFZwC']('MCP\x20re-authentication\x20failed:\x20'+_0x1a27fb+'\x0a',_0x3afabd['KZVAP']));}else{const _0x53f7c9=_0x3afabd[_0x746479(0x91)](_0xe10724,_0x7d62c8)?_0x31e6db[_0x746479(0xb8)]:_0x3afabd[_0x746479(0xa6)](_0x37d173,_0x1b5c57);throw new _0x513cbe(_0x3afabd[_0x746479(0x8e)]('MCP\x20re-authentication\x20failed:\x20'+_0x53f7c9+'\x0a',_0x3afabd[_0x746479(0x93)]));}}throw new Error(_0x3afabd['yofgp']);}async function checkTokenValid(_0x2c848a){const _0x198f5d=_0x4f9453,_0x300daa={'yoWrt':function(_0x4f2c0d,_0x4f0323,_0x1e50da){return _0x4f2c0d(_0x4f0323,_0x1e50da);},'EYzOc':function(_0x563eec,_0x13ba77){return _0x563eec===_0x13ba77;},'tZBxa':_0x198f5d(0x90),'poqSP':_0x198f5d(0xbd),'xEAam':_0x198f5d(0xce),'xKWXb':_0x198f5d(0xa0),'iDntu':function(_0x51e43c,_0x19699f){return _0x51e43c(_0x19699f);}},_0x500af7=new AbortController(),_0x285de2=_0x300daa[_0x198f5d(0xb2)](setTimeout,()=>_0x500af7[_0x198f5d(0xd3)](),0x1388);try{if(_0x300daa[_0x198f5d(0xdc)](_0x300daa['tZBxa'],_0x300daa[_0x198f5d(0xc0)]))return _0x49ca3d[_0x198f5d(0x8f)][_0x556fa3];else{const {getApiBaseUrl:_0x683067}=await import(_0x300daa[_0x198f5d(0xd9)]),_0x41eccb=_0x683067(),_0x1663b7=await _0x300daa['yoWrt'](fetch,_0x41eccb+_0x198f5d(0xcb),{'method':_0x300daa[_0x198f5d(0xb0)],'headers':{'Authorization':_0x198f5d(0xb9)+_0x2c848a},'signal':_0x500af7[_0x198f5d(0x97)]});return _0x1663b7['ok'];}}catch{return!![];}finally{_0x300daa[_0x198f5d(0xc8)](clearTimeout,_0x285de2);}}async function tryRefreshToken(){const {refreshCliToken:_0x3a5543}=await import('./tokenRefresh.js');return _0x3a5543();}async function tryPromoteRefreshToken(_0xea554c){const _0x9a558b=_0x4f9453,_0x4189bf={'bBfGI':'./tokenRefresh.js','gVain':function(_0xc1b178,_0x320919,_0x29550c){return _0xc1b178(_0x320919,_0x29550c);}},{refreshPartnerCliToken:_0x10993b}=await import(_0x4189bf[_0x9a558b(0xc7)]);return _0x4189bf[_0x9a558b(0xb6)](_0x10993b,_0xea554c,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0x190e67=_0x4f9453,_0x5c27dd={'NiWHH':function(_0x32ebc1,_0x1a9041){return _0x32ebc1!==_0x1a9041;}};try{return await unlink(TOKEN_PATH),!![];}catch{if(_0x5c27dd[_0x190e67(0xb7)](_0x190e67(0x96),_0x190e67(0x96))){const _0x229440=_0x12d074?function(){const _0x39c009=_0x190e67;if(_0x2f1c79){const _0x106c7b=_0x4cb70a[_0x39c009(0xd0)](_0x1b822b,arguments);return _0x502ea0=null,_0x106c7b;}}:function(){};return _0x3bf746=![],_0x229440;}else return![];}}export async function storeRefreshToken(_0x9bd8ca){const _0x24ac49=_0x4f9453,_0x3b7321={'ZKkaI':function(_0x2d9bc7,_0x2054b4,_0x5cc1fc,_0x567029){return _0x2d9bc7(_0x2054b4,_0x5cc1fc,_0x567029);}};await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x3b7321[_0x24ac49(0xaa)](writeFile,REFRESH_TOKEN_PATH,_0x9bd8ca,{'mode':0x180});}export async function getRefreshToken(){const _0x5af7ba=_0x4f9453,_0x247317={'qCtri':_0x5af7ba(0xd2)};try{const _0x2cc62c=await readFile(REFRESH_TOKEN_PATH,_0x247317[_0x5af7ba(0xc1)]);return _0x2cc62c['trim']()||null;}catch{return null;}}function _0x1ca0(_0x262a03,_0x5db5c5){_0x262a03=_0x262a03-0x8a;const _0x44fa77=_0x1ceb();let _0x570906=_0x44fa77[_0x262a03];if(_0x1ca0['DasTEn']===undefined){var _0x314323=function(_0x1b186b){const _0x4be82f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3575bf='',_0x3249d3='',_0x2f54ff=_0x3575bf+_0x314323;for(let _0x36fc3f=0x0,_0xc9004d,_0x529b9a,_0x4bb568=0x0;_0x529b9a=_0x1b186b['charAt'](_0x4bb568++);~_0x529b9a&&(_0xc9004d=_0x36fc3f%0x4?_0xc9004d*0x40+_0x529b9a:_0x529b9a,_0x36fc3f++%0x4)?_0x3575bf+=_0x2f54ff['charCodeAt'](_0x4bb568+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0xc9004d>>(-0x2*_0x36fc3f&0x6)):_0x36fc3f:0x0){_0x529b9a=_0x4be82f['indexOf'](_0x529b9a);}for(let _0x4e85b8=0x0,_0x126fac=_0x3575bf['length'];_0x4e85b8<_0x126fac;_0x4e85b8++){_0x3249d3+='%'+('00'+_0x3575bf['charCodeAt'](_0x4e85b8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3249d3);};_0x1ca0['OEyNCG']=_0x314323,_0x1ca0['PawQfC']={},_0x1ca0['DasTEn']=!![];}const _0x1cebb2=_0x44fa77[0x0],_0x1ca048=_0x262a03+_0x1cebb2,_0x55de47=_0x1ca0['PawQfC'][_0x1ca048];if(!_0x55de47){const _0x12d074=function(_0x58f07f){this['UYibsf']=_0x58f07f,this['mGIfXY']=[0x1,0x0,0x0],this['lAsCJp']=function(){return'newState';},this['cuKnFN']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['OuoAtj']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x12d074['prototype']['RsSYCR']=function(){const _0x570f80=new RegExp(this['cuKnFN']+this['OuoAtj']),_0x551f3d=_0x570f80['test'](this['lAsCJp']['toString']())?--this['mGIfXY'][0x1]:--this['mGIfXY'][0x0];return this['vFSdqo'](_0x551f3d);},_0x12d074['prototype']['vFSdqo']=function(_0x57705d){if(!Boolean(~_0x57705d))return _0x57705d;return this['LjTwOk'](this['UYibsf']);},_0x12d074['prototype']['LjTwOk']=function(_0x3bf746){for(let _0x2f1c79=0x0,_0x3d9709=this['mGIfXY']['length'];_0x2f1c79<_0x3d9709;_0x2f1c79++){this['mGIfXY']['push'](Math['round'](Math['random']())),_0x3d9709=this['mGIfXY']['length'];}return _0x3bf746(this['mGIfXY'][0x0]);},new _0x12d074(_0x1ca0)['RsSYCR'](),_0x570906=_0x1ca0['OEyNCG'](_0x570906),_0x1ca0['PawQfC'][_0x1ca048]=_0x570906;}else _0x570906=_0x55de47;return _0x570906;}export async function deleteRefreshToken(){const _0x518af2=_0x4f9453,_0x461b7c={'WnytY':function(_0x49e427,_0x372d4d){return _0x49e427(_0x372d4d);}};try{return await _0x461b7c[_0x518af2(0xb3)](unlink,REFRESH_TOKEN_PATH),!![];}catch{return![];}}export async function deleteAllCredentials(){await deleteToken(),await deleteRefreshToken();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1cef3c=_0x4a1f;(function(_0x18d7cc,_0x3be004){const _0x30441b=_0x4a1f,_0x175877=_0x18d7cc();while(!![]){try{const _0x4a7789=parseInt(_0x30441b(0xaa))/0x1*(-parseInt(_0x30441b(0xac))/0x2)+parseInt(_0x30441b(0xc1))/0x3*(-parseInt(_0x30441b(0xc3))/0x4)+-parseInt(_0x30441b(0xbb))/0x5+-parseInt(_0x30441b(0xc4))/0x6*(parseInt(_0x30441b(0xb6))/0x7)+-parseInt(_0x30441b(0xbd))/0x8+-parseInt(_0x30441b(0xb3))/0x9+parseInt(_0x30441b(0xc0))/0xa;if(_0x4a7789===_0x3be004)break;else _0x175877['push'](_0x175877['shift']());}catch(_0x318b36){_0x175877['push'](_0x175877['shift']());}}}(_0x49c5,0x429b2));import{existsSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function _0x4a1f(_0x2ce00a,_0x45cdb0){_0x2ce00a=_0x2ce00a-0xaa;const _0x49c501=_0x49c5();let _0x4a1f3e=_0x49c501[_0x2ce00a];return _0x4a1f3e;}function detectLegacyPaths(){const _0x1647b1=_0x4a1f,_0x33970e={'ztwBB':function(_0x59cd37){return _0x59cd37();},'lKQXO':function(_0x54f80e,_0x279dda,_0x50902e){return _0x54f80e(_0x279dda,_0x50902e);},'kOkqE':'local','cwHES':'active-profile.txt'},_0xe3222a=_0x33970e['ztwBB'](getRangerDir),_0x22eeb1=getRangerHomeDir();return[_0x33970e['lKQXO'](join,_0xe3222a,_0x33970e[_0x1647b1(0xc2)]),join(_0xe3222a,'ci'),_0x33970e[_0x1647b1(0xb2)](join,_0x22eeb1,_0x33970e[_0x1647b1(0xc2)]),join(_0xe3222a,_0x33970e['cwHES'])]['filter'](_0x2f0e23=>existsSync(_0x2f0e23));}function _0x49c5(){const _0x3a0c88=['91272nJCKVJ','stderr','length','17569460juobSA','1547574ufnPmc','kOkqE','4eQiGWC','6OSGAig','\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20<name>','setup','GawlI','3xdsjNS','verify-feature','302558LHbyJp','slice','join','.legacy-warning-','\x20\x20\x20For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:','\x20\x20\x20Ranger\x20no\x20longer\x20writes\x20to\x20these\x20paths.\x20Existing\x20sessions\x20there\x20still\x20work','lKQXO','4050225AcHIFC','yspQp','\x20\x20\x20\x20\x20https://docs.ranger.net/main/concepts/profiles','344309IVKdZl','verify','\x20\x20\x20\x20\x20','has','TvzuP','19060zLPeNj','\x20\x20\x20Delete\x20these\x20paths\x20after\x20you\x20have\x20re-auth-ed.'];_0x49c5=function(){return _0x3a0c88;};return _0x49c5();}function flagFilePath(){const _0x4dbd31=_0x4a1f,_0xe83083={'ThHxw':function(_0x4b4579){return _0x4b4579();}},_0x357ad1=new Date()['toISOString']()[_0x4dbd31(0xad)](0x0,0xa);return join(_0xe83083['ThHxw'](getRangerHomeDir),_0x4dbd31(0xaf)+_0x357ad1);}export function showLegacyDeprecationWarning(){const _0x45e325=_0x4a1f,_0xb971b6={'ZGrHA':function(_0x4a8439,_0x56b8b0){return _0x4a8439===_0x56b8b0;},'TvzuP':'⚠\x20\x20Legacy\x20Ranger\x20paths\x20detected\x20(read-only):','GawlI':_0x45e325(0xb0),'stiBK':_0x45e325(0xb5),'ATgXO':function(_0x4beaec,_0x5e417d){return _0x4beaec+_0x5e417d;},'CnciS':function(_0x29f3ab){return _0x29f3ab();}},_0x58e6e7=detectLegacyPaths();if(_0xb971b6['ZGrHA'](_0x58e6e7[_0x45e325(0xbf)],0x0))return;const _0x3f8a5d=flagFilePath();if(existsSync(_0x3f8a5d))return;const _0x3cca2e=['',_0xb971b6[_0x45e325(0xba)],..._0x58e6e7['map'](_0x13c8f2=>_0x45e325(0xb8)+_0x13c8f2),'',_0x45e325(0xb1),'\x20\x20\x20as\x20a\x20fallback.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:','',_0x45e325(0xc5),'',_0xb971b6[_0x45e325(0xc7)],_0xb971b6['stiBK'],'',_0x45e325(0xbc),''];process[_0x45e325(0xbe)]['write'](_0xb971b6['ATgXO'](_0x3cca2e[_0x45e325(0xae)]('\x0a'),'\x0a'));try{mkdirSync(_0xb971b6['CnciS'](getRangerHomeDir),{'recursive':!![]}),writeFileSync(_0x3f8a5d,'',{'mode':0x180});}catch{}}const PROFILE_TOUCHING_COMMANDS=new Set(['go',_0x1cef3c(0xb7),_0x1cef3c(0xab),'profile','profiles',_0x1cef3c(0xc6),'setup-ci','start','use']);export function shouldShowLegacyWarning(_0x2d9ac0){const _0x5afedc=_0x1cef3c,_0x1082bf={'yspQp':function(_0x1fbdc7,_0x941515){return _0x1fbdc7===_0x941515;}},_0x4df392=_0x2d9ac0[0x2];if(!_0x4df392)return![];if(_0x4df392['startsWith']('-'))return![];if(!PROFILE_TOUCHING_COMMANDS[_0x5afedc(0xb9)](_0x4df392))return![];for(let _0x1f510a=0x3;_0x1f510a<_0x2d9ac0['length'];_0x1f510a++){if(_0x2d9ac0[_0x1f510a]==='--help'||_0x1082bf[_0x5afedc(0xb4)](_0x2d9ac0[_0x1f510a],'-h'))return![];}return!![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1dc5bd,_0x2f4d3a){const _0x232789=_0x46a6,_0x2c868a=_0x1dc5bd();while(!![]){try{const _0x4b7144=parseInt(_0x232789(0xf5))/0x1+parseInt(_0x232789(0x110))/0x2*(parseInt(_0x232789(0x100))/0x3)+parseInt(_0x232789(0xf7))/0x4*(parseInt(_0x232789(0xf8))/0x5)+parseInt(_0x232789(0x105))/0x6+-parseInt(_0x232789(0x107))/0x7+parseInt(_0x232789(0xfc))/0x8*(-parseInt(_0x232789(0x101))/0x9)+-parseInt(_0x232789(0xfe))/0xa;if(_0x4b7144===_0x2f4d3a)break;else _0x2c868a['push'](_0x2c868a['shift']());}catch(_0x3b5c6f){_0x2c868a['push'](_0x2c868a['shift']());}}}(_0x2441,0x18b10));const _0x296dbd=(function(){const _0x2344e6={'mdZlX':function(_0xd3cad9,_0x2ec465){return _0xd3cad9===_0x2ec465;},'SDRHk':'hfLtx'};let _0x5b593d=!![];return function(_0x273967,_0x205677){const _0x5b7f53=_0x5b593d?function(){const _0x5090af=_0x46a6;if(_0x205677){if(_0x2344e6[_0x5090af(0xff)](_0x2344e6[_0x5090af(0x10f)],_0x2344e6[_0x5090af(0x10f)])){const _0x1a15bd=_0x205677[_0x5090af(0x10b)](_0x273967,arguments);return _0x205677=null,_0x1a15bd;}else return;}}:function(){};return _0x5b593d=![],_0x5b7f53;};}()),_0x5df6ab=_0x296dbd(this,function(){const _0x3bf5fe=_0x46a6,_0x53a451={'fpqgz':_0x3bf5fe(0xf1)};return _0x5df6ab[_0x3bf5fe(0x111)]()[_0x3bf5fe(0xfd)](_0x53a451[_0x3bf5fe(0x103)])[_0x3bf5fe(0x111)]()[_0x3bf5fe(0x10e)](_0x5df6ab)[_0x3bf5fe(0xfd)](_0x53a451[_0x3bf5fe(0x103)]);});_0x5df6ab();function _0x46a6(_0x400a35,_0x5bb4b2){_0x400a35=_0x400a35-0xf1;const _0x2e4a33=_0x2441();let _0x5df6ab=_0x2e4a33[_0x400a35];if(_0x46a6['bFrYRe']===undefined){var _0x296dbd=function(_0x139150){const _0x5a95fb='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x37c917='',_0x312e35='',_0xcbecd5=_0x37c917+_0x296dbd;for(let _0x111917=0x0,_0x46190b,_0x5bbba3,_0x488b19=0x0;_0x5bbba3=_0x139150['charAt'](_0x488b19++);~_0x5bbba3&&(_0x46190b=_0x111917%0x4?_0x46190b*0x40+_0x5bbba3:_0x5bbba3,_0x111917++%0x4)?_0x37c917+=_0xcbecd5['charCodeAt'](_0x488b19+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x46190b>>(-0x2*_0x111917&0x6)):_0x111917:0x0){_0x5bbba3=_0x5a95fb['indexOf'](_0x5bbba3);}for(let _0x576501=0x0,_0x1ae8b3=_0x37c917['length'];_0x576501<_0x1ae8b3;_0x576501++){_0x312e35+='%'+('00'+_0x37c917['charCodeAt'](_0x576501)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x312e35);};_0x46a6['zGfIef']=_0x296dbd,_0x46a6['iawLfE']={},_0x46a6['bFrYRe']=!![];}const _0x2441b9=_0x2e4a33[0x0],_0x46a626=_0x400a35+_0x2441b9,_0x321b23=_0x46a6['iawLfE'][_0x46a626];if(!_0x321b23){const _0x11456e=function(_0x54ce83){this['BqhzOf']=_0x54ce83,this['zqxchC']=[0x1,0x0,0x0],this['ykBRKg']=function(){return'newState';},this['utLnye']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['UIAGRb']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x11456e['prototype']['yxidvE']=function(){const _0x14dfd2=new RegExp(this['utLnye']+this['UIAGRb']),_0x31a605=_0x14dfd2['test'](this['ykBRKg']['toString']())?--this['zqxchC'][0x1]:--this['zqxchC'][0x0];return this['lHAHZo'](_0x31a605);},_0x11456e['prototype']['lHAHZo']=function(_0xc6a9ef){if(!Boolean(~_0xc6a9ef))return _0xc6a9ef;return this['DXZvEn'](this['BqhzOf']);},_0x11456e['prototype']['DXZvEn']=function(_0x839613){for(let _0x364d34=0x0,_0x39a558=this['zqxchC']['length'];_0x364d34<_0x39a558;_0x364d34++){this['zqxchC']['push'](Math['round'](Math['random']())),_0x39a558=this['zqxchC']['length'];}return _0x839613(this['zqxchC'][0x0]);},new _0x11456e(_0x46a6)['yxidvE'](),_0x5df6ab=_0x46a6['zGfIef'](_0x5df6ab),_0x46a6['iawLfE'][_0x46a626]=_0x5df6ab;}else _0x5df6ab=_0x321b23;return _0x5df6ab;}import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';function _0x2441(){const _0x35190b=['C2LNBMfS','mte0mZKZmfzJq3DAAq','qKDxwge','nduYmZK2q0zmEhjo','q3vTywy','vvn4u0u','yxbWBgLJyxrPB24VANnVBG','yxbWBhK','ywjVCNq','Dgv4Da','y29UC3rYDwn0B3i','u0rssgS','ndeYD0THyNnf','Dg9tDhjPBMC','kcGOlISPkYKRksSK','qMvHCMvYia','D0rMC0m','DKHizva','mti0nJiZCffjz0ff','ue9tva','mJy3mJi4sg5Oq1rM','mtbdtxPVwM8','DLjmrhe','rMfPBgvKihrVigXVzYbZA2LSBcbPBNn0ywXSyxrPB246ia','C3rYAw5NAwz5','mJrZwgjYwuK','C2vHCMnO','mtC3mta3mfn6wLf4wG','BwrABfG','odmXr3DNsM92','ndG5mJq5BhzKA1rl','wevywMC','zNbXz3O'];_0x2441=function(){return _0x35190b;};return _0x2441();}export async function logLocalAgentInstallation(_0x1d0e40,_0x3f9a07,_0x125fba){const _0x2d9ffb=_0x46a6,_0x1c7484={'XEXZg':function(_0x5cf5e2,_0x1f731f,_0x47bdb7){return _0x5cf5e2(_0x1f731f,_0x47bdb7);},'USxSE':function(_0x1d1a66,_0x9452bd){return _0x1d1a66!==_0x9452bd;},'wDfsC':_0x2d9ffb(0x108),'tEEss':function(_0x21ec24,_0x3a9fdc){return _0x21ec24(_0x3a9fdc);},'BGWXa':function(_0x52eddd,_0x4c22af){return _0x52eddd===_0x4c22af;},'dDRQr':_0x2d9ffb(0xf9)},_0x264e8e=await getToken();if(!_0x264e8e)return;const _0x698a0f=getApiBaseUrl(),_0x94da1f=new AbortController(),_0x96ddb7=_0x1c7484[_0x2d9ffb(0x102)](setTimeout,()=>_0x94da1f[_0x2d9ffb(0x10c)](),0x1388);let _0x39d835;try{_0x1c7484[_0x2d9ffb(0x109)](_0x1c7484[_0x2d9ffb(0xf3)],_0x2d9ffb(0x108))?_0x12da50(_0x14f15c):_0x39d835=await fetch(_0x698a0f+'/api/v1/mcp/local-agent-installations',{'method':_0x2d9ffb(0xf6),'headers':{'Authorization':_0x2d9ffb(0xf2)+_0x264e8e,'Content-Type':_0x2d9ffb(0x10a)},'body':JSON[_0x2d9ffb(0xfb)]({'skillName':_0x1d0e40,'cliVersion':_0x125fba,'metadata':_0x3f9a07}),'signal':_0x94da1f[_0x2d9ffb(0x104)]});}finally{_0x1c7484['tEEss'](clearTimeout,_0x96ddb7);}if(!_0x39d835['ok']){if(_0x1c7484[_0x2d9ffb(0x106)](_0x2d9ffb(0xf4),_0x1c7484['dDRQr'])){const _0x2fd56e=_0xa7ffed[_0x2d9ffb(0x10b)](_0xcd96af,arguments);return _0x4c9413=null,_0x2fd56e;}else{const _0x3e7149=await _0x39d835[_0x2d9ffb(0x10d)]();console['error'](_0x2d9ffb(0xfa)+_0x3e7149);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2b75c9,_0x34bc68){const _0x58e102=_0x3d43,_0x54f469=_0x2b75c9();while(!![]){try{const _0x4b535d=-parseInt(_0x58e102(0xa1))/0x1+parseInt(_0x58e102(0x95))/0x2+-parseInt(_0x58e102(0xa2))/0x3+-parseInt(_0x58e102(0xa5))/0x4*(parseInt(_0x58e102(0x9a))/0x5)+-parseInt(_0x58e102(0x9e))/0x6*(parseInt(_0x58e102(0x96))/0x7)+parseInt(_0x58e102(0xa3))/0x8*(parseInt(_0x58e102(0x9b))/0x9)+parseInt(_0x58e102(0x98))/0xa;if(_0x4b535d===_0x34bc68)break;else _0x54f469['push'](_0x54f469['shift']());}catch(_0x4c956c){_0x54f469['push'](_0x54f469['shift']());}}}(_0x41d8,0xdf74e));import{needsTunnel}from'./cloudProfileSession.js';function originIdentity(_0x2ecd22){try{const _0x541538=new URL(_0x2ecd22);return _0x541538['protocol']+'//'+_0x541538['host'];}catch{return undefined;}}function _0x41d8(){const _0xeaeaef=['environments','745495UfksVg','116577ymvIdo','defaultEnvironmentKey','key','6fXYIwL','length','push','458811oGFHMb','3690813aatGIt','1048AYFdCA','yXQSq','20MlVFQx','hlQsq','localhost','entries','342206klKGpl','10802897kMeUqi','ambiguous','30251800rjFhWi'];_0x41d8=function(){return _0xeaeaef;};return _0x41d8();}export function matchAuthEnvironmentExact(_0x315512,_0x12746d){const _0x30c191=_0x3d43,_0x53f34a={'hlQsq':function(_0x1c66cd,_0x4cb250){return _0x1c66cd(_0x4cb250);},'CnFxv':function(_0x15e57a,_0x3ae389){return _0x15e57a===_0x3ae389;}};if(!_0x12746d||!_0x12746d[_0x30c191(0x99)])return undefined;const _0x436c66=originIdentity(_0x315512);if(!_0x436c66)return undefined;for(const [_0x65975,_0x327511]of Object['entries'](_0x12746d[_0x30c191(0x99)])){for(const _0x3c6873 of _0x327511['domains']??[]){const _0xfd91fb=_0x53f34a[_0x30c191(0xa6)](originIdentity,_0x3c6873);if(_0xfd91fb&&_0x53f34a['CnFxv'](_0xfd91fb,_0x436c66))return _0x65975;}}return undefined;}export function matchAuthEnvironmentByHost(_0x16b320,_0x4faf4d){const _0x34aaad=_0x3d43,_0x21aecb={'pqHeF':function(_0x3cf993,_0xf16d2f){return _0x3cf993===_0xf16d2f;}};if(!_0x4faf4d||!_0x4faf4d[_0x34aaad(0x99)])return undefined;let _0x1409be,_0x104fae;try{const _0x40837d=new URL(_0x16b320);_0x1409be=_0x40837d['protocol']+'//'+_0x40837d['hostname'],_0x104fae=_0x40837d['hostname'];}catch{return undefined;}if(_0x21aecb['pqHeF'](_0x104fae,_0x34aaad(0x93))||_0x104fae==='127.0.0.1')return undefined;const _0x1de5cb=[];for(const [_0xab2d8e,_0x58f002]of Object[_0x34aaad(0x94)](_0x4faf4d[_0x34aaad(0x99)])){const _0x9d5d32=(_0x58f002['domains']??[])['some'](_0x51baf3=>{try{const _0x28b806=new URL(_0x51baf3);return _0x28b806['protocol']+'//'+_0x28b806['hostname']===_0x1409be;}catch{return![];}});if(_0x9d5d32)_0x1de5cb[_0x34aaad(0xa0)](_0xab2d8e);}if(_0x1de5cb[_0x34aaad(0x9f)]===0x1)return{'key':_0x1de5cb[0x0]};if(_0x1de5cb['length']>0x1)return{'ambiguous':_0x1de5cb};return undefined;}function _0x3d43(_0x5c6b9f,_0x1eb405){_0x5c6b9f=_0x5c6b9f-0x93;const _0x41d8ca=_0x41d8();let _0x3d438e=_0x41d8ca[_0x5c6b9f];return _0x3d438e;}export function matchAuthEnvironment(_0x35cb89,_0x21bc22){const _0x440b1b=_0x3d43,_0x29877e={'yXQSq':function(_0x10f856,_0x3b7d29,_0x27ed30){return _0x10f856(_0x3b7d29,_0x27ed30);},'bQnJP':_0x440b1b(0x97)};if(!_0x21bc22||!_0x21bc22[_0x440b1b(0x99)])return undefined;const _0x5f486c=_0x29877e['yXQSq'](matchAuthEnvironmentExact,_0x35cb89,_0x21bc22);if(_0x5f486c)return _0x5f486c;const _0x17c573=_0x29877e[_0x440b1b(0xa4)](matchAuthEnvironmentByHost,_0x35cb89,_0x21bc22);if(_0x17c573&&_0x440b1b(0x9d)in _0x17c573)return _0x17c573['key'];if(_0x17c573&&_0x29877e['bQnJP']in _0x17c573)return undefined;if(needsTunnel(_0x35cb89))return undefined;if(_0x21bc22['defaultEnvironmentKey']&&_0x21bc22['environments'][_0x21bc22[_0x440b1b(0x9c)]])return _0x21bc22['defaultEnvironmentKey'];return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x38d5e3,_0x17c50c){const _0x41f4f0=_0x58fd,_0x5132b9=_0x38d5e3();while(!![]){try{const _0x2201b8=-parseInt(_0x41f4f0(0x1fa))/0x1*(parseInt(_0x41f4f0(0x202))/0x2)+-parseInt(_0x41f4f0(0x1fc))/0x3*(-parseInt(_0x41f4f0(0x1c0))/0x4)+parseInt(_0x41f4f0(0x1d7))/0x5+parseInt(_0x41f4f0(0x1c7))/0x6*(parseInt(_0x41f4f0(0x1cf))/0x7)+parseInt(_0x41f4f0(0x1f1))/0x8+-parseInt(_0x41f4f0(0x1f0))/0x9*(parseInt(_0x41f4f0(0x1db))/0xa)+-parseInt(_0x41f4f0(0x1ec))/0xb*(parseInt(_0x41f4f0(0x1d9))/0xc);if(_0x2201b8===_0x17c50c)break;else _0x5132b9['push'](_0x5132b9['shift']());}catch(_0x545c51){_0x5132b9['push'](_0x5132b9['shift']());}}}(_0x1471,0xbc074));import{readFile,stat}from'fs/promises';import{extname}from'path';import{fileURLToPath}from'url';const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x3462d8){const _0x3e42fe=_0x58fd,_0x2fd5b1={'twXdL':function(_0x15e8ed,_0x658322){return _0x15e8ed===_0x658322;}};return _0x2fd5b1['twXdL'](typeof _0x3462d8,_0x3e42fe(0x1c4))&&_0x3462d8!==null;}function isImageBlock(_0x919eaf){const _0x58085a=_0x58fd,_0x5a1824={'WoEKz':function(_0x8f5e5f,_0x1bfbf4){return _0x8f5e5f===_0x1bfbf4;},'XYtBM':_0x58085a(0x1e8)};return isRecord(_0x919eaf)&&_0x5a1824['WoEKz'](_0x919eaf['type'],_0x5a1824[_0x58085a(0x1d5)]);}function isDataUrl(_0x3337ea){const _0xd749f4=_0x58fd;return _0x3337ea['startsWith'](_0xd749f4(0x1c6));}function parseDataUrl(_0x48df8d){const _0x377788=_0x58fd,_0x19e574={'atBDJ':function(_0x517653,_0x964ed9){return _0x517653(_0x964ed9);}},_0x57374b=/^data:([^;]+);base64,(.+)$/[_0x377788(0x1da)](_0x48df8d);if(!_0x57374b)return null;const _0x5e6a92=_0x57374b[0x1]['toLowerCase']();if(!_0x19e574[_0x377788(0x1d8)](isValidMediaType,_0x5e6a92))return null;return{'data':_0x57374b[0x2],'mediaType':_0x5e6a92};}function _0x1471(){const _0x3c7727=['block','updated','25468817SCUkvc','url','image/jpeg','startsWith','36sYmhtq','5647032KYQppU','source','string','VSYMm','HgXgu','charCodeAt','base64','NBODZ','jpeg','5MeocMr','content-length','5442YqtxBn','value','map','nxuHo','isArray','headers','98164UmOcJr','length','WJbsV','toLowerCase','2460ATVHUQ','Image\x20exceeds\x20size\x20limit\x20(','data','bDXWP','object','yOJkQ','data:','4308384crpeTv','jpg','arrayBuffer','fBloz','mimeType','byteLength','dKCLi','rJCpG','14UAylcA','image/webp','image/gif','type','STZWm','image/png','XYtBM','WqKUF','7042380GPpGQu','atBDJ','12pOrcCz','exec','3337930PWDboH','pmBiE','trim','RVJFR','tool_response','Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','content-type','split','get','yJJVI','status','replace','entries','image','ccBtE'];_0x1471=function(){return _0x3c7727;};return _0x1471();}function isValidMediaType(_0x531ca6){const _0x15f87a=_0x58fd,_0x494546={'TsaHJ':'image/jpeg','KEKnr':_0x15f87a(0x1d4),'nxuHo':_0x15f87a(0x1d1),'IYTjp':'image/webp'};return[_0x494546['TsaHJ'],_0x494546['KEKnr'],_0x494546[_0x15f87a(0x1ff)],_0x494546['IYTjp']]['includes'](_0x531ca6);}function inferMediaType(_0x573f58,_0x109681){const _0x36ee32=_0x58fd,_0x3da1c7={'bDXWP':function(_0x436529,_0x49bf57){return _0x436529(_0x49bf57);},'dbIgL':_0x36ee32(0x1c8),'JTwiJ':_0x36ee32(0x1ee),'wjGuv':_0x36ee32(0x1d4),'NBODZ':'gif','dKCLi':'image/gif'};if(_0x573f58){const _0x28d42d=_0x573f58[_0x36ee32(0x1bf)]()[_0x36ee32(0x1e2)](';')[0x0][_0x36ee32(0x1dd)]();if(isValidMediaType(_0x28d42d))return _0x28d42d;}const _0x4fa012=_0x3da1c7[_0x36ee32(0x1c3)](extname,_0x109681)[_0x36ee32(0x1bf)]()[_0x36ee32(0x1e6)]('.','');switch(_0x4fa012){case _0x3da1c7['dbIgL']:case _0x36ee32(0x1f9):return _0x3da1c7['JTwiJ'];case'png':return _0x3da1c7['wjGuv'];case _0x3da1c7[_0x36ee32(0x1f8)]:return _0x3da1c7[_0x36ee32(0x1cd)];case'webp':return _0x36ee32(0x1d0);default:return _0x3da1c7['wjGuv'];}}async function readImageFromUrl(_0x486f3d){const _0x2a6c22=_0x58fd,_0x551c01={'rJCpG':function(_0x5c6edd,_0x7c7c6a){return _0x5c6edd(_0x7c7c6a);},'WJbsV':function(_0x4f828c,_0x1fc01b){return _0x4f828c(_0x1fc01b);},'CSAHd':_0x2a6c22(0x1e0),'yOJkQ':_0x2a6c22(0x1f7),'sVyTX':function(_0x5cf3a9,_0x451fd9,_0x196411){return _0x5cf3a9(_0x451fd9,_0x196411);},'sBPqQ':'http://','aOwHR':'https://','yJJVI':function(_0x2ef8a1,_0x208392){return _0x2ef8a1>_0x208392;},'pmBiE':function(_0x1bf939,_0x40f0ee){return _0x1bf939(_0x40f0ee);}};if(_0x551c01[_0x2a6c22(0x1ce)](isDataUrl,_0x486f3d)){const _0x2d54ed=_0x551c01[_0x2a6c22(0x1be)](parseDataUrl,_0x486f3d);if(_0x2d54ed)return _0x2d54ed;throw new Error(_0x551c01['CSAHd']);}if(_0x486f3d[_0x2a6c22(0x1ef)]('file://')){const _0x40907c=fileURLToPath(_0x486f3d),_0x29ac85=await stat(_0x40907c);if(_0x29ac85['size']>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x2b8da0=await readFile(_0x40907c);return{'data':_0x2b8da0['toString'](_0x551c01['yOJkQ']),'mediaType':_0x551c01['sVyTX'](inferMediaType,null,_0x40907c)};}if(_0x486f3d['startsWith'](_0x551c01['sBPqQ'])||_0x486f3d[_0x2a6c22(0x1ef)](_0x551c01['aOwHR'])){const _0x4fbbaa=await _0x551c01['sVyTX'](fetch,_0x486f3d,{'signal':AbortSignal['timeout'](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x4fbbaa['ok'])throw new Error('Failed\x20to\x20fetch\x20image:\x20'+_0x4fbbaa[_0x2a6c22(0x1e5)]);const _0x30b403=_0x4fbbaa['headers'][_0x2a6c22(0x1e3)](_0x2a6c22(0x1fb));if(_0x30b403){const _0x3b7630=Number(_0x30b403);if(!Number['isNaN'](_0x3b7630)&&_0x551c01[_0x2a6c22(0x1e4)](_0x3b7630,MAX_IMAGE_SIZE_BYTES))throw new Error(_0x2a6c22(0x1c1)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0xeb924f=await _0x4fbbaa[_0x2a6c22(0x1c9)]();if(_0xeb924f[_0x2a6c22(0x1cc)]>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');return{'data':Buffer['from'](_0xeb924f)['toString'](_0x551c01['yOJkQ']),'mediaType':inferMediaType(_0x4fbbaa[_0x2a6c22(0x201)]['get'](_0x2a6c22(0x1e1)),_0x486f3d)};}const _0x20fda1=await _0x551c01[_0x2a6c22(0x1dc)](stat,_0x486f3d);if(_0x551c01['yJJVI'](_0x20fda1['size'],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x47f1c4=await _0x551c01[_0x2a6c22(0x1ce)](readFile,_0x486f3d);return{'data':_0x47f1c4['toString'](_0x551c01[_0x2a6c22(0x1c5)]),'mediaType':inferMediaType(null,_0x486f3d)};}function _0x58fd(_0x3b157d,_0x8ca977){_0x3b157d=_0x3b157d-0x1bd;const _0x14717b=_0x1471();let _0x58fd95=_0x14717b[_0x3b157d];return _0x58fd95;}async function convertImageBlockToBase64(_0xe2e512){const _0x410536=_0x58fd,_0x28ef62={'qwokD':function(_0x7907f6,_0x1cb88d){return _0x7907f6===_0x1cb88d;},'ccBtE':function(_0x1c3da8,_0x1a093c){return _0x1c3da8(_0x1a093c);}};if(_0x28ef62['qwokD'](_0xe2e512['source']?.[_0x410536(0x1d2)],'base64'))return{'updated':![],'block':_0xe2e512};if(_0xe2e512[_0x410536(0x1c2)]&&_0xe2e512[_0x410536(0x1cb)])return{'updated':![],'block':_0xe2e512};const _0x28d59d=_0xe2e512[_0x410536(0x1f2)]?.['url']??_0xe2e512[_0x410536(0x1ed)];if(!_0x28d59d)return{'updated':![],'block':_0xe2e512};const _0x5d36bd=await _0x28ef62[_0x410536(0x1e9)](readImageFromUrl,_0x28d59d);return{'updated':!![],'block':{..._0xe2e512,'source':{'type':_0x410536(0x1f7),'media_type':_0x5d36bd['mediaType'],'data':_0x5d36bd[_0x410536(0x1c2)]},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x5990fc){const _0x4c9b2c=_0x58fd,_0x4e442d={'RVJFR':function(_0x26b763,_0x4db2b3){return _0x26b763(_0x4db2b3);}};if(!_0x4e442d[_0x4c9b2c(0x1de)](isRecord,_0x5990fc))return{'updated':![],'output':_0x5990fc};const _0x262ae4=_0x5990fc['content'];if(!Array[_0x4c9b2c(0x200)](_0x262ae4))return{'updated':![],'output':_0x5990fc};let _0x449abd=![];const _0xc60492=await Promise['all'](_0x262ae4[_0x4c9b2c(0x1fe)](async _0x37bd4d=>{const _0xfa388f=_0x4c9b2c;if(!isImageBlock(_0x37bd4d))return _0x37bd4d;try{const _0x337b14=await convertImageBlockToBase64(_0x37bd4d);if(_0x337b14[_0xfa388f(0x1eb)])_0x449abd=!![];return _0x337b14[_0xfa388f(0x1ea)];}catch{return _0x37bd4d;}}));if(!_0x449abd)return{'updated':![],'output':_0x5990fc};return{'updated':!![],'output':{..._0x5990fc,'content':_0xc60492}};}function sanitizeLoneSurrogates(_0x1a8e4c){const _0x1ed4b0=_0x58fd,_0x1a9dcb={'fBloz':function(_0xe4ed90,_0x1b7d5c){return _0xe4ed90<_0x1b7d5c;},'STZWm':function(_0x17470b,_0x5c47d0){return _0x17470b>=_0x5c47d0;},'WqKUF':function(_0x432685,_0xe4021a){return _0x432685<=_0xe4021a;}};let _0x46e3ce=![],_0x424a93='';for(let _0x6b3ac5=0x0;_0x1a9dcb[_0x1ed4b0(0x1ca)](_0x6b3ac5,_0x1a8e4c[_0x1ed4b0(0x1bd)]);_0x6b3ac5+=0x1){const _0x3803ff=_0x1a8e4c[_0x1ed4b0(0x1f6)](_0x6b3ac5);if(_0x3803ff>=0xd800&&_0x3803ff<=0xdbff){const _0x2f0b13=_0x1a8e4c[_0x1ed4b0(0x1f6)](_0x6b3ac5+0x1);if(_0x1a9dcb[_0x1ed4b0(0x1d3)](_0x2f0b13,0xdc00)&&_0x1a9dcb[_0x1ed4b0(0x1d6)](_0x2f0b13,0xdfff)){_0x424a93+=_0x1a8e4c[_0x6b3ac5]+_0x1a8e4c[_0x6b3ac5+0x1],_0x6b3ac5+=0x1;continue;}_0x46e3ce=!![],_0x424a93+='�';continue;}if(_0x3803ff>=0xdc00&&_0x3803ff<=0xdfff){_0x46e3ce=!![],_0x424a93+='�';continue;}_0x424a93+=_0x1a8e4c[_0x6b3ac5];}return _0x46e3ce?{'updated':_0x46e3ce,'value':_0x424a93}:{'updated':_0x46e3ce,'value':_0x1a8e4c};}function sanitizeLoneSurrogatesDeep(_0x6238e5){const _0x504b7d=_0x58fd,_0x1acd7e={'FQRUz':function(_0x10aa73,_0x5ced1b){return _0x10aa73(_0x5ced1b);},'CWKDl':function(_0x14f783,_0x5c2454){return _0x14f783===_0x5c2454;},'Wgnul':_0x504b7d(0x1f3),'VSYMm':function(_0x4b1bb5,_0x7c675c){return _0x4b1bb5(_0x7c675c);}};if(_0x1acd7e['CWKDl'](typeof _0x6238e5,_0x1acd7e['Wgnul']))return _0x1acd7e[_0x504b7d(0x1f4)](sanitizeLoneSurrogates,_0x6238e5);if(Array[_0x504b7d(0x200)](_0x6238e5)){let _0x3990b8=![];const _0x3d4c54=_0x6238e5['map'](_0x52f979=>{const _0x442cf0=_0x504b7d,_0x1318b3=sanitizeLoneSurrogatesDeep(_0x52f979);return _0x1318b3[_0x442cf0(0x1eb)]&&(_0x3990b8=!![]),_0x1318b3[_0x442cf0(0x1fd)];});return _0x3990b8?{'updated':!![],'value':_0x3d4c54}:{'updated':![],'value':_0x6238e5};}if(!isRecord(_0x6238e5))return{'updated':![],'value':_0x6238e5};let _0x10db65=![];const _0x1cfdf6=Object[_0x504b7d(0x1e7)](_0x6238e5)['map'](([_0x59f598,_0x2e6b74])=>{const _0x1a4196=_0x1acd7e['FQRUz'](sanitizeLoneSurrogatesDeep,_0x2e6b74);return _0x1a4196['updated']&&(_0x10db65=!![]),[_0x59f598,_0x1a4196['value']];});return _0x10db65?{'updated':!![],'value':Object['fromEntries'](_0x1cfdf6)}:{'updated':![],'value':_0x6238e5};}export function createMcpImageBase64Hook(){const _0x3ec328={'LOjki':function(_0x4b1d84,_0x1099b7){return _0x4b1d84!==_0x1099b7;},'HgXgu':function(_0x3daf06,_0x19a471){return _0x3daf06(_0x19a471);}};return async _0x41b71c=>{const _0x1581da=_0x58fd;if(_0x3ec328['LOjki'](_0x41b71c['hook_event_name'],'PostToolUse'))return{};const _0x3d2663=_0x41b71c,_0x2251c3=await _0x3ec328['HgXgu'](convertToolOutputImagesToBase64,_0x3d2663[_0x1581da(0x1df)]),_0xffcfd3=_0x3ec328[_0x1581da(0x1f5)](sanitizeLoneSurrogatesDeep,_0x2251c3['output']),_0x502f97=_0x2251c3['updated']||_0xffcfd3['updated'];if(!_0x502f97)return{};return{'hookSpecificOutput':{'hookEventName':'PostToolUse','updatedMCPToolOutput':_0xffcfd3[_0x1581da(0x1fd)]}};};}
|
|
1
|
+
(function(_0x273cd,_0x359788){const _0x13aaca=_0x4c5b,_0x16c4c0=_0x273cd();while(!![]){try{const _0x54e92f=-parseInt(_0x13aaca(0x1af))/0x1+parseInt(_0x13aaca(0x1a1))/0x2+parseInt(_0x13aaca(0x19b))/0x3+-parseInt(_0x13aaca(0x199))/0x4+-parseInt(_0x13aaca(0x1a2))/0x5*(-parseInt(_0x13aaca(0x1a7))/0x6)+parseInt(_0x13aaca(0x176))/0x7*(-parseInt(_0x13aaca(0x191))/0x8)+parseInt(_0x13aaca(0x1a5))/0x9*(parseInt(_0x13aaca(0x1b0))/0xa);if(_0x54e92f===_0x359788)break;else _0x16c4c0['push'](_0x16c4c0['shift']());}catch(_0x19bc78){_0x16c4c0['push'](_0x16c4c0['shift']());}}}(_0x3213,0x60536));import{readFile,stat}from'fs/promises';import{extname}from'path';import{fileURLToPath}from'url';const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x4792f4){const _0x4e5c7a=_0x4c5b,_0xc8f91e={'nwBXn':'object'};return typeof _0x4792f4===_0xc8f91e[_0x4e5c7a(0x188)]&&_0x4792f4!==null;}function isImageBlock(_0x1f1a97){const _0x291ce3=_0x4c5b,_0x20231a={'EcYCf':function(_0x4e6de2,_0x49f1bd){return _0x4e6de2(_0x49f1bd);},'RSeOt':function(_0x49439d,_0x130072){return _0x49439d===_0x130072;}};return _0x20231a[_0x291ce3(0x1b6)](isRecord,_0x1f1a97)&&_0x20231a['RSeOt'](_0x1f1a97[_0x291ce3(0x1ac)],'image');}function isDataUrl(_0x25cd70){const _0x1f78db=_0x4c5b;return _0x25cd70[_0x1f78db(0x193)]('data:');}function parseDataUrl(_0x52f594){const _0x5921f7=_0x4c5b,_0x220a92={'mCeHa':function(_0x56929d,_0x1b111a){return _0x56929d(_0x1b111a);}},_0x1373cd=/^data:([^;]+);base64,(.+)$/['exec'](_0x52f594);if(!_0x1373cd)return null;const _0x32693b=_0x1373cd[0x1][_0x5921f7(0x17a)]();if(!_0x220a92['mCeHa'](isValidMediaType,_0x32693b))return null;return{'data':_0x1373cd[0x2],'mediaType':_0x32693b};}function isValidMediaType(_0x56c1d4){const _0x23b2ac=_0x4c5b;return[_0x23b2ac(0x195),_0x23b2ac(0x1a6),'image/gif','image/webp']['includes'](_0x56c1d4);}function inferMediaType(_0x1353da,_0x51f595){const _0x3e8fe4=_0x4c5b,_0x57f207={'FGnnp':function(_0x58c642,_0x238bcb){return _0x58c642(_0x238bcb);},'FYYYt':_0x3e8fe4(0x1ab),'ZVnpw':_0x3e8fe4(0x186),'uFhXQ':_0x3e8fe4(0x181),'WQiFj':_0x3e8fe4(0x177),'yxpAo':'image/png'};if(_0x1353da){const _0x7737e6=_0x1353da[_0x3e8fe4(0x17a)]()[_0x3e8fe4(0x1a8)](';')[0x0][_0x3e8fe4(0x174)]();if(_0x57f207[_0x3e8fe4(0x18b)](isValidMediaType,_0x7737e6))return _0x7737e6;}const _0x581ac1=_0x57f207['FGnnp'](extname,_0x51f595)[_0x3e8fe4(0x17a)]()['replace']('.','');switch(_0x581ac1){case _0x57f207[_0x3e8fe4(0x19f)]:case'jpeg':return _0x3e8fe4(0x195);case _0x57f207['ZVnpw']:return'image/png';case _0x3e8fe4(0x18a):return _0x57f207[_0x3e8fe4(0x184)];case _0x3e8fe4(0x179):return _0x57f207[_0x3e8fe4(0x1b2)];default:return _0x57f207[_0x3e8fe4(0x1a4)];}}async function readImageFromUrl(_0x1cdef2){const _0x167c36=_0x4c5b,_0x13e667={'keKzZ':'Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','GgWnl':function(_0x1478ef,_0x25d4e9){return _0x1478ef(_0x25d4e9);},'Knort':'base64','ccnln':_0x167c36(0x18d),'zfiJw':'https://','QfrDO':'content-length','NMGJi':function(_0x3ec0f8,_0x24c0c0){return _0x3ec0f8>_0x24c0c0;},'XIOPh':'content-type','tWfGV':function(_0x3b9073,_0x48ff2f,_0x3fa078){return _0x3b9073(_0x48ff2f,_0x3fa078);}};if(isDataUrl(_0x1cdef2)){const _0x5849a6=parseDataUrl(_0x1cdef2);if(_0x5849a6)return _0x5849a6;throw new Error(_0x13e667[_0x167c36(0x17f)]);}if(_0x1cdef2[_0x167c36(0x193)](_0x167c36(0x187))){const _0x4d22be=fileURLToPath(_0x1cdef2),_0x49ccf6=await _0x13e667['GgWnl'](stat,_0x4d22be);if(_0x49ccf6[_0x167c36(0x18e)]>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x167c36(0x183));const _0x46dc47=await _0x13e667['GgWnl'](readFile,_0x4d22be);return{'data':_0x46dc47['toString'](_0x13e667['Knort']),'mediaType':inferMediaType(null,_0x4d22be)};}if(_0x1cdef2[_0x167c36(0x193)](_0x13e667[_0x167c36(0x1a9)])||_0x1cdef2[_0x167c36(0x193)](_0x13e667[_0x167c36(0x1b4)])){const _0x3537f1=await fetch(_0x1cdef2,{'signal':AbortSignal[_0x167c36(0x17e)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x3537f1['ok'])throw new Error(_0x167c36(0x190)+_0x3537f1['status']);const _0xfe1c1c=_0x3537f1['headers'][_0x167c36(0x19d)](_0x13e667['QfrDO']);if(_0xfe1c1c){const _0x17cce2=Number(_0xfe1c1c);if(!Number[_0x167c36(0x1b3)](_0x17cce2)&&_0x13e667[_0x167c36(0x19a)](_0x17cce2,MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x167c36(0x183));}const _0x5e5b96=await _0x3537f1['arrayBuffer']();if(_0x13e667[_0x167c36(0x19a)](_0x5e5b96['byteLength'],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x167c36(0x198)+MAX_IMAGE_SIZE_BYTES+_0x167c36(0x183));return{'data':Buffer['from'](_0x5e5b96)['toString'](_0x13e667['Knort']),'mediaType':inferMediaType(_0x3537f1[_0x167c36(0x1ae)]['get'](_0x13e667['XIOPh']),_0x1cdef2)};}const _0x2db49f=await stat(_0x1cdef2);if(_0x2db49f[_0x167c36(0x18e)]>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x167c36(0x183));const _0x1ad32a=await readFile(_0x1cdef2);return{'data':_0x1ad32a['toString'](_0x167c36(0x196)),'mediaType':_0x13e667['tWfGV'](inferMediaType,null,_0x1cdef2)};}async function convertImageBlockToBase64(_0x32944e){const _0x16e1ef=_0x4c5b,_0x3c83c8={'APzFQ':function(_0x3d8c65,_0x4387c4){return _0x3d8c65===_0x4387c4;},'KjHNg':'base64'};if(_0x3c83c8['APzFQ'](_0x32944e[_0x16e1ef(0x19c)]?.['type'],'base64'))return{'updated':![],'block':_0x32944e};if(_0x32944e[_0x16e1ef(0x1aa)]&&_0x32944e[_0x16e1ef(0x1a0)])return{'updated':![],'block':_0x32944e};const _0x594f39=_0x32944e['source']?.['url']??_0x32944e['url'];if(!_0x594f39)return{'updated':![],'block':_0x32944e};const _0x3356c2=await readImageFromUrl(_0x594f39);return{'updated':!![],'block':{..._0x32944e,'source':{'type':_0x3c83c8[_0x16e1ef(0x194)],'media_type':_0x3356c2[_0x16e1ef(0x18c)],'data':_0x3356c2[_0x16e1ef(0x1aa)]},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x35323d){const _0x1e0a0a=_0x4c5b,_0x4fe69e={'qRrmR':function(_0x468396,_0x3d8052){return _0x468396(_0x3d8052);},'nTLPD':function(_0x3e1683,_0x3769b3){return _0x3e1683(_0x3769b3);},'HhESL':function(_0xf59a3e,_0x3d5b7a){return _0xf59a3e(_0x3d5b7a);}};if(!_0x4fe69e[_0x1e0a0a(0x17c)](isRecord,_0x35323d))return{'updated':![],'output':_0x35323d};const _0x57c008=_0x35323d[_0x1e0a0a(0x1a3)];if(!Array['isArray'](_0x57c008))return{'updated':![],'output':_0x35323d};let _0x3b02c4=![];const _0x3def60=await Promise[_0x1e0a0a(0x1b5)](_0x57c008['map'](async _0x856e8d=>{const _0x3f6457=_0x1e0a0a;if(!_0x4fe69e[_0x3f6457(0x197)](isImageBlock,_0x856e8d))return _0x856e8d;try{const _0x50620e=await _0x4fe69e['nTLPD'](convertImageBlockToBase64,_0x856e8d);if(_0x50620e['updated'])_0x3b02c4=!![];return _0x50620e[_0x3f6457(0x178)];}catch{return _0x856e8d;}}));if(!_0x3b02c4)return{'updated':![],'output':_0x35323d};return{'updated':!![],'output':{..._0x35323d,'content':_0x3def60}};}function _0x3213(){const _0x26d16f=['ccnln','data','jpg','type','updated','headers','524830HOfTvz','195340UYcWZV','NhpxH','WQiFj','isNaN','zfiJw','all','EcYCf','trim','map','49xNZUtV','image/webp','block','webp','toLowerCase','charCodeAt','HhESL','string','timeout','keKzZ','CXVeG','image/gif','value','\x20bytes)','uFhXQ','isArray','png','file://','nwBXn','hook_event_name','gif','FGnnp','mediaType','http://','size','hpWyg','Failed\x20to\x20fetch\x20image:\x20','33128hzwOgx','Yweel','startsWith','KjHNg','image/jpeg','base64','qRrmR','Image\x20exceeds\x20size\x20limit\x20(','2462192FNLMne','NMGJi','2107500phoWaI','source','get','length','FYYYt','mimeType','131868uySdCf','121205CjEyck','content','yxpAo','333srMmCR','image/png','18DUTyKG','split'];_0x3213=function(){return _0x26d16f;};return _0x3213();}function _0x4c5b(_0x5b7cfb,_0x2d6211){_0x5b7cfb=_0x5b7cfb-0x174;const _0x321365=_0x3213();let _0x4c5b43=_0x321365[_0x5b7cfb];return _0x4c5b43;}function sanitizeLoneSurrogates(_0x12251c){const _0x5131a0=_0x4c5b,_0x45f7a6={'ITkPo':function(_0x2570f0,_0x432bb8){return _0x2570f0<_0x432bb8;},'aYYGm':function(_0x4d2340,_0x591f0a){return _0x4d2340<=_0x591f0a;},'hpWyg':function(_0xdb0b71,_0x1395f2){return _0xdb0b71+_0x1395f2;},'yUKnI':function(_0x44dad7,_0x5239bd){return _0x44dad7>=_0x5239bd;},'ISlaD':function(_0x4fc665,_0x4548d6){return _0x4fc665>=_0x4548d6;}};let _0x54b80e=![],_0x15e46e='';for(let _0x3f718c=0x0;_0x45f7a6['ITkPo'](_0x3f718c,_0x12251c[_0x5131a0(0x19e)]);_0x3f718c+=0x1){const _0x3c4db9=_0x12251c[_0x5131a0(0x17b)](_0x3f718c);if(_0x3c4db9>=0xd800&&_0x45f7a6['aYYGm'](_0x3c4db9,0xdbff)){const _0x11ada2=_0x12251c['charCodeAt'](_0x45f7a6['hpWyg'](_0x3f718c,0x1));if(_0x45f7a6['yUKnI'](_0x11ada2,0xdc00)&&_0x11ada2<=0xdfff){_0x15e46e+=_0x12251c[_0x3f718c]+_0x12251c[_0x45f7a6[_0x5131a0(0x18f)](_0x3f718c,0x1)],_0x3f718c+=0x1;continue;}_0x54b80e=!![],_0x15e46e+='�';continue;}if(_0x45f7a6['ISlaD'](_0x3c4db9,0xdc00)&&_0x3c4db9<=0xdfff){_0x54b80e=!![],_0x15e46e+='�';continue;}_0x15e46e+=_0x12251c[_0x3f718c];}return _0x54b80e?{'updated':_0x54b80e,'value':_0x15e46e}:{'updated':_0x54b80e,'value':_0x12251c};}function sanitizeLoneSurrogatesDeep(_0x465438){const _0x1923ae=_0x4c5b,_0x33df4f={'NhpxH':function(_0x500e13,_0x3c9878){return _0x500e13===_0x3c9878;},'Yweel':function(_0x41079d,_0x58f202){return _0x41079d(_0x58f202);},'jLPsT':function(_0x51c25d,_0x26f4c3){return _0x51c25d(_0x26f4c3);}};if(_0x33df4f[_0x1923ae(0x1b1)](typeof _0x465438,_0x1923ae(0x17d)))return _0x33df4f[_0x1923ae(0x192)](sanitizeLoneSurrogates,_0x465438);if(Array[_0x1923ae(0x185)](_0x465438)){let _0x32a3c9=![];const _0xe779bc=_0x465438[_0x1923ae(0x175)](_0x2e96a1=>{const _0x273368=sanitizeLoneSurrogatesDeep(_0x2e96a1);return _0x273368['updated']&&(_0x32a3c9=!![]),_0x273368['value'];});return _0x32a3c9?{'updated':!![],'value':_0xe779bc}:{'updated':![],'value':_0x465438};}if(!_0x33df4f['jLPsT'](isRecord,_0x465438))return{'updated':![],'value':_0x465438};let _0x5761cd=![];const _0xe31b41=Object['entries'](_0x465438)[_0x1923ae(0x175)](([_0x41fbf4,_0x5bbde3])=>{const _0x516987=_0x1923ae,_0x5104af=sanitizeLoneSurrogatesDeep(_0x5bbde3);return _0x5104af[_0x516987(0x1ad)]&&(_0x5761cd=!![]),[_0x41fbf4,_0x5104af[_0x516987(0x182)]];});return _0x5761cd?{'updated':!![],'value':Object['fromEntries'](_0xe31b41)}:{'updated':![],'value':_0x465438};}export function createMcpImageBase64Hook(){const _0x521042={'RjSDJ':function(_0x4c1858,_0x4b6de9){return _0x4c1858!==_0x4b6de9;},'CXVeG':function(_0x57f305,_0x5b6312){return _0x57f305(_0x5b6312);}};return async _0x3ba705=>{const _0x3ddb90=_0x4c5b;if(_0x521042['RjSDJ'](_0x3ba705[_0x3ddb90(0x189)],'PostToolUse'))return{};const _0x26fd5c=_0x3ba705,_0x148edd=await _0x521042[_0x3ddb90(0x180)](convertToolOutputImagesToBase64,_0x26fd5c['tool_response']),_0x338952=_0x521042[_0x3ddb90(0x180)](sanitizeLoneSurrogatesDeep,_0x148edd['output']),_0x10f456=_0x148edd['updated']||_0x338952[_0x3ddb90(0x1ad)];if(!_0x10f456)return{};return{'hookSpecificOutput':{'hookEventName':'PostToolUse','updatedMCPToolOutput':_0x338952['value']}};};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x16ea71=_0x4e33;function _0x4e33(_0x4f2a6d,_0x78a847){_0x4f2a6d=_0x4f2a6d-0x19a;const _0x3c0d4c=_0x3c0d();let _0x4e33c8=_0x3c0d4c[_0x4f2a6d];return _0x4e33c8;}(function(_0x2a9445,_0x55574b){const _0x9f7430=_0x4e33,_0x97f9ad=_0x2a9445();while(!![]){try{const _0x440df4=-parseInt(_0x9f7430(0x19e))/0x1+-parseInt(_0x9f7430(0x1a3))/0x2+-parseInt(_0x9f7430(0x1a4))/0x3+-parseInt(_0x9f7430(0x1a2))/0x4+-parseInt(_0x9f7430(0x1a1))/0x5*(parseInt(_0x9f7430(0x19c))/0x6)+parseInt(_0x9f7430(0x19f))/0x7*(parseInt(_0x9f7430(0x19d))/0x8)+parseInt(_0x9f7430(0x1a0))/0x9;if(_0x440df4===_0x55574b)break;else _0x97f9ad['push'](_0x97f9ad['shift']());}catch(_0x498dca){_0x97f9ad['push'](_0x97f9ad['shift']());}}}(_0x3c0d,0x8edcb));const VERIFY_MODEL_ALIASES={'opus':_0x16ea71(0x19a),'sonnet':'claude-sonnet-4-6'};export const DEFAULT_VERIFY_MODEL=_0x16ea71(0x1a6);export function resolveVerifyModel(_0x3e31e8){const _0x1151c5=_0x16ea71,_0x4b4367={'HvhvU':function(_0x21bbdb,_0x44d11c){return _0x21bbdb??_0x44d11c;}};if(!_0x3e31e8)return undefined;const _0x3e0130=_0x3e31e8[_0x1151c5(0x1a7)]();if(!_0x3e0130)return undefined;const _0x2cf4c2=VERIFY_MODEL_ALIASES[_0x3e0130[_0x1151c5(0x1a5)]()];return _0x4b4367[_0x1151c5(0x19b)](_0x2cf4c2,_0x3e0130);}function _0x3c0d(){const _0x32f3dd=['1041851RRpyqc','28offnSc','47226879MOKoiX','157685nbtkxM','4036328PFrbCh','1814488EIGptM','2509098DPwbTh','toLowerCase','claude-sonnet-4-6','trim','claude-opus-4-6','HvhvU','222eCQnzr','598288IiRMvF'];_0x3c0d=function(){return _0x32f3dd;};return _0x3c0d();}
|