@ranger-testing/ranger-cli 2.5.4-alpha.071b7bd-1 → 2.5.4-alpha.1f7a251-7
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/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 -0
- 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 -0
- package/build/commands/utils/cloudProfileSession.js +1 -0
- 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 -0
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -0
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/opencodeConfig.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 -0
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -0
- package/build/commands/utils/resolveProfileUrl.js +1 -0
- package/build/commands/utils/retry.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/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/skills/ranger/SKILL.md +18 -4
- package/build/skills/ranger/create.md +6 -0
- package/build/skills/ranger/verify.md +23 -3
- package/package.json +6 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x331feb=_0x1169;(function(_0x58db5e,_0x28ec7e){const _0x241e80=_0x1169,_0x3e9a7f=_0x58db5e();while(!![]){try{const _0x9ca50c=-parseInt(_0x241e80(0x1f4))/0x1*(-parseInt(_0x241e80(0x228))/0x2)+parseInt(_0x241e80(0x214))/0x3*(-parseInt(_0x241e80(0x211))/0x4)+parseInt(_0x241e80(0x215))/0x5*(parseInt(_0x241e80(0x21d))/0x6)+-parseInt(_0x241e80(0x229))/0x7*(parseInt(_0x241e80(0x21a))/0x8)+-parseInt(_0x241e80(0x20f))/0x9*(-parseInt(_0x241e80(0x1fe))/0xa)+parseInt(_0x241e80(0x21c))/0xb+parseInt(_0x241e80(0x21b))/0xc*(-parseInt(_0x241e80(0x20e))/0xd);if(_0x9ca50c===_0x28ec7e)break;else _0x3e9a7f['push'](_0x3e9a7f['shift']());}catch(_0x50192c){_0x3e9a7f['push'](_0x3e9a7f['shift']());}}}(_0x1374,0xb15dd));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(_0x22a29b,_0x5d0494){const _0x43527d=_0x1169,_0x2bd782={'BHdDH':function(_0x110ba3,_0x52a877){return _0x110ba3>=_0x52a877;},'GAXZy':function(_0x346c63,_0xe99c91){return _0x346c63+_0xe99c91;},'adtqr':function(_0x4c0995,_0x12989f){return _0x4c0995-_0x12989f;}};if(_0x2bd782[_0x43527d(0x20c)](_0x5d0494,_0x22a29b['length']))return[0x0,0x0];const _0x5dbd7e=_0x22a29b[_0x5d0494];let _0x2a3741=0x1,_0x2c4d01=0x80;while(_0x2a3741<=0x8&&!(_0x5dbd7e&_0x2c4d01)){_0x2a3741++,_0x2c4d01>>=0x1;}if(_0x2bd782[_0x43527d(0x239)](_0x5d0494,_0x2a3741)>_0x22a29b['length'])return[0x0,0x0];let _0x327964=_0x5dbd7e&_0x2bd782['adtqr'](_0x2c4d01,0x1);for(let _0x1222e8=0x1;_0x1222e8<_0x2a3741;_0x1222e8++){_0x327964=_0x327964*0x100+_0x22a29b[_0x5d0494+_0x1222e8];}return[_0x327964,_0x2a3741];}function readId(_0x71bfdf,_0x253125){const _0x9cd7ba=_0x1169,_0x5f5170={'YKpgV':function(_0x1b4249,_0x2f4dd0){return _0x1b4249>=_0x2f4dd0;},'VgAuw':function(_0x2e844c,_0x314290){return _0x2e844c>=_0x314290;},'pUTfT':function(_0x9947b8,_0x509a36){return _0x9947b8>_0x509a36;},'bbmgY':function(_0x49a1e6,_0x4ad1e7){return _0x49a1e6+_0x4ad1e7;}};if(_0x5f5170['YKpgV'](_0x253125,_0x71bfdf['length']))return[0x0,0x0];const _0x4737e2=_0x71bfdf[_0x253125];let _0x31ae3a;if(_0x4737e2>=0x80)_0x31ae3a=0x1;else{if(_0x5f5170[_0x9cd7ba(0x20b)](_0x4737e2,0x40))_0x31ae3a=0x2;else{if(_0x5f5170[_0x9cd7ba(0x203)](_0x4737e2,0x20))_0x31ae3a=0x3;else{if(_0x4737e2>=0x10)_0x31ae3a=0x4;else return[_0x4737e2,0x1];}}}if(_0x5f5170[_0x9cd7ba(0x219)](_0x253125+_0x31ae3a,_0x71bfdf['length']))return[0x0,0x0];let _0x5909ef=0x0;for(let _0x1bd340=0x0;_0x1bd340<_0x31ae3a;_0x1bd340++){_0x5909ef=_0x5f5170['bbmgY'](_0x5909ef*0x100,_0x71bfdf[_0x5f5170['bbmgY'](_0x253125,_0x1bd340)]);}return[_0x5909ef,_0x31ae3a];}function readUint(_0xab3bd0,_0x20ae41,_0x3c3114){const _0x891c10=_0x1169,_0x58d6ac={'mXgbh':function(_0x56ec97,_0x393587){return _0x56ec97<_0x393587;},'jkjTl':function(_0x56c4a0,_0x98ca3e){return _0x56c4a0+_0x98ca3e;}};let _0x1c94f3=0x0;for(let _0x1181af=0x0;_0x58d6ac[_0x891c10(0x216)](_0x1181af,_0x3c3114);_0x1181af++){_0x1c94f3=_0x58d6ac['jkjTl'](_0x1c94f3*0x100,_0xab3bd0[_0x58d6ac['jkjTl'](_0x20ae41,_0x1181af)]);}return _0x1c94f3;}function isUnknownSize(_0x42dd82,_0x25cfff){const _0x550267={'AUGXk':function(_0x27c671,_0x51fc2a){return _0x27c671===_0x51fc2a;}};return _0x550267['AUGXk'](_0x42dd82,Math['pow'](0x2,0x7*_0x25cfff)-0x1);}function writeId(_0x51433f){const _0x13bc59=_0x1169,_0x5c8052={'TNpoO':function(_0x5939fd,_0x2765a5){return _0x5939fd<=_0x2765a5;},'XpJkX':function(_0x2ef5ce,_0x14cdb5){return _0x2ef5ce&_0x14cdb5;},'sraSx':function(_0x423edb,_0x3b2d5b){return _0x423edb>>_0x3b2d5b;},'WMxPl':function(_0xa71654,_0x4fcacd){return _0xa71654&_0x4fcacd;},'bQCoO':function(_0x39ef5e,_0x16bf53){return _0x39ef5e>>_0x16bf53;}};if(_0x51433f<=0xff)return Buffer['from']([_0x51433f]);if(_0x5c8052['TNpoO'](_0x51433f,0xffff))return Buffer[_0x13bc59(0x1f6)]([_0x5c8052[_0x13bc59(0x224)](_0x5c8052['sraSx'](_0x51433f,0x8),0xff),_0x51433f&0xff]);if(_0x5c8052[_0x13bc59(0x20d)](_0x51433f,0xffffff))return Buffer['from']([_0x5c8052['WMxPl'](_0x5c8052[_0x13bc59(0x204)](_0x51433f,0x10),0xff),_0x51433f>>0x8&0xff,_0x51433f&0xff]);return Buffer['from']([_0x5c8052[_0x13bc59(0x224)](_0x5c8052['sraSx'](_0x51433f,0x18),0xff),_0x5c8052['bQCoO'](_0x51433f,0x10)&0xff,_0x51433f>>0x8&0xff,_0x51433f&0xff]);}function writeVint(_0x1b4af5,_0x47b4a1){const _0xb4b31b=_0x1169,_0x38fab7={'qOWEC':function(_0x1ec6b2,_0x1d7245){return _0x1ec6b2<_0x1d7245;},'IdsWC':function(_0x3f4848,_0xbdd71c){return _0x3f4848*_0xbdd71c;},'MMtzZ':function(_0x4641bc,_0x2bf8af){return _0x4641bc-_0x2bf8af;},'OxiHl':function(_0x2b9c61,_0x4fb281){return _0x2b9c61>=_0x4fb281;},'weEPE':function(_0x4aae58,_0x26febe){return _0x4aae58&_0x26febe;},'LWYdh':function(_0x2ac22b,_0x2945cc){return _0x2ac22b<<_0x2945cc;}};let _0x176edf=_0x47b4a1||0x1;while(_0x38fab7[_0xb4b31b(0x21f)](Math[_0xb4b31b(0x1f3)](0x2,_0x38fab7['IdsWC'](0x7,_0x176edf))-0x2,_0x1b4af5))_0x176edf++;const _0x2f9127=Buffer[_0xb4b31b(0x22f)](_0x176edf);for(let _0x15c10e=_0x38fab7['MMtzZ'](_0x176edf,0x1);_0x38fab7['OxiHl'](_0x15c10e,0x0);_0x15c10e--){_0x2f9127[_0x15c10e]=_0x38fab7[_0xb4b31b(0x1f1)](_0x1b4af5,0xff),_0x1b4af5=Math[_0xb4b31b(0x220)](_0x1b4af5/0x100);}return _0x2f9127[0x0]|=_0x38fab7['LWYdh'](0x1,0x8-_0x176edf),_0x2f9127;}function writeFloat64(_0x42d775){const _0x266c80=Buffer['alloc'](0x8);return _0x266c80['writeDoubleBE'](_0x42d775,0x0),_0x266c80;}function writeVoid(_0x2db02e){const _0x23d8b2=_0x1169,_0x271f53={'ozydC':function(_0x59d999,_0x336e31){return _0x59d999<=_0x336e31;},'weuoN':function(_0x551c5d,_0x2ed738){return _0x551c5d>=_0x2ed738;},'rTXkI':function(_0x2082dd,_0x12f0e2){return _0x2082dd-_0x12f0e2;},'hKdID':function(_0x327aa6,_0x32760d){return _0x327aa6*_0x32760d;},'FJSXn':function(_0x360c76,_0x416588,_0x592ec4){return _0x360c76(_0x416588,_0x592ec4);}};for(let _0x4c5932=0x1;_0x271f53[_0x23d8b2(0x206)](_0x4c5932,0x8);_0x4c5932++){const _0x2e899c=_0x2db02e-0x1-_0x4c5932;if(_0x271f53['weuoN'](_0x2e899c,0x0)&&_0x271f53['ozydC'](_0x2e899c,_0x271f53[_0x23d8b2(0x234)](Math[_0x23d8b2(0x1f3)](0x2,_0x271f53['hKdID'](0x7,_0x4c5932)),0x2)))return Buffer[_0x23d8b2(0x205)]([Buffer['from']([ID_VOID]),_0x271f53['FJSXn'](writeVint,_0x2e899c,_0x4c5932),Buffer['alloc'](_0x2e899c)]);}return Buffer['alloc'](0x0);}function findElement(_0x254777,_0x44a64f,_0x1a97fb,_0x59b45a){const _0x211913=_0x1169,_0x20f865={'iPMqk':function(_0x15f297,_0x5b059e){return _0x15f297<_0x5b059e;},'gIAft':function(_0x28cae8,_0x1e8d2e,_0x389862){return _0x28cae8(_0x1e8d2e,_0x389862);},'FsFTs':function(_0x221476,_0xf9a8d){return _0x221476+_0xf9a8d;}};let _0x5aabf2=_0x44a64f;while(_0x20f865[_0x211913(0x22d)](_0x5aabf2,_0x1a97fb)){const [_0x5ddbda,_0x56a029]=_0x20f865['gIAft'](readId,_0x254777,_0x5aabf2),[_0x5bae14,_0x22630b]=readVint(_0x254777,_0x5aabf2+_0x56a029);if(_0x5ddbda===_0x59b45a)return{'offset':_0x5aabf2,'idLen':_0x56a029,'sizeLen':_0x22630b,'dataSize':_0x5bae14,'dataOffset':_0x20f865['FsFTs'](_0x5aabf2,_0x56a029)+_0x22630b};if(isUnknownSize(_0x5bae14,_0x22630b))break;_0x5aabf2+=_0x20f865['FsFTs'](_0x20f865['FsFTs'](_0x56a029,_0x22630b),_0x5bae14);}return null;}function _0x1169(_0x3a2b66,_0x16aa36){_0x3a2b66=_0x3a2b66-0x1ef;const _0x13743c=_0x1374();let _0x116963=_0x13743c[_0x3a2b66];return _0x116963;}function computeDurationMs(_0x110968,_0x349a7a){const _0x3bb6dd=_0x1169,_0x31b314={'XyQBC':function(_0x476c6d,_0x3712ca){return _0x476c6d===_0x3712ca;},'KHxEh':function(_0x38abea,_0x46f920){return _0x38abea<_0x46f920;},'pqHzx':function(_0x29cb62,_0x587f1a){return _0x29cb62+_0x587f1a;},'CisVO':function(_0x3e2b77,_0x579f99,_0x549361){return _0x3e2b77(_0x579f99,_0x549361);},'kRtMy':function(_0x1b5a06,_0x5183b8){return _0x1b5a06<_0x5183b8;},'pULFj':function(_0x3ccf7a,_0x4930c7,_0x326593){return _0x3ccf7a(_0x4930c7,_0x326593);},'siPiB':function(_0x40c5ce,_0x2f72e3){return _0x40c5ce===_0x2f72e3;},'cHpsH':function(_0x13d13c,_0x364d0a,_0x57f3fc){return _0x13d13c(_0x364d0a,_0x57f3fc);},'VyFTp':function(_0x5a3f98,_0x4a49bc){return _0x5a3f98+_0x4a49bc;},'mSipV':function(_0xc9b505,_0x1ad21c){return _0xc9b505+_0x1ad21c;},'CiZvQ':function(_0xacc2a5,_0x5c0136){return _0xacc2a5<_0x5c0136;},'jmddL':function(_0xbae92f,_0x1429f4,_0x37ff21){return _0xbae92f(_0x1429f4,_0x37ff21);},'HqTwN':function(_0x2b189b,_0x3deb58){return _0x2b189b===_0x3deb58;},'qJHnd':function(_0x45f998,_0x4d7723){return _0x45f998+_0x4d7723;},'xCumQ':function(_0x57870e,_0x27db95){return _0x57870e/_0x27db95;},'yiCGk':function(_0x45fcba,_0x6a8335){return _0x45fcba*_0x6a8335;},'hLALB':function(_0x2f07ae,_0x106191){return _0x2f07ae+_0x106191;},'uWAbg':function(_0x4efa5a,_0x434b7a){return _0x4efa5a>_0x434b7a;},'hjFTx':function(_0x1be8a8,_0x395a30,_0x4c5367){return _0x1be8a8(_0x395a30,_0x4c5367);}};let _0x5af262=0x0;const _0x2e9dd3=Buffer[_0x3bb6dd(0x1f6)]([0x1f,0x43,0xb6,0x75]);let _0x56ff8e=_0x110968['indexOf'](_0x2e9dd3);if(_0x31b314[_0x3bb6dd(0x22e)](_0x56ff8e,-0x1))return 0x0;while(_0x31b314['KHxEh'](_0x56ff8e,_0x110968[_0x3bb6dd(0x1ef)])){const [_0x24e87d,_0x24dc33]=readId(_0x110968,_0x56ff8e);if(_0x24e87d!==ID_CLUSTER)break;const [_0x2157c3,_0x2cb89f]=readVint(_0x110968,_0x31b314[_0x3bb6dd(0x235)](_0x56ff8e,_0x24dc33)),_0xeddd56=_0x31b314['pqHzx'](_0x56ff8e+_0x24dc33,_0x2cb89f),_0x2a0f38=_0x31b314['CisVO'](isUnknownSize,_0x2157c3,_0x2cb89f);let _0x580438;if(_0x2a0f38){let _0x23b0bc=_0xeddd56;while(_0x31b314['kRtMy'](_0x23b0bc,_0x110968['length']-0x4)){const [_0x1d3a55,_0x1ace1a]=_0x31b314['pULFj'](readId,_0x110968,_0x23b0bc);if(_0x31b314[_0x3bb6dd(0x1ff)](_0x1d3a55,ID_CLUSTER)){_0x580438=_0x23b0bc;break;}const [_0x4a0764,_0x5ca6a1]=_0x31b314[_0x3bb6dd(0x218)](readVint,_0x110968,_0x23b0bc+_0x1ace1a);if(_0x31b314['cHpsH'](isUnknownSize,_0x4a0764,_0x5ca6a1)){_0x580438=_0x110968[_0x3bb6dd(0x1ef)];break;}_0x23b0bc+=_0x31b314[_0x3bb6dd(0x231)](_0x31b314[_0x3bb6dd(0x231)](_0x1ace1a,_0x5ca6a1),_0x4a0764);}_0x580438??=_0x110968['length'];}else _0x580438=_0x31b314[_0x3bb6dd(0x1f0)](_0xeddd56,_0x2157c3);let _0x480eca=0x0,_0x3cfc59=_0xeddd56;while(_0x31b314[_0x3bb6dd(0x1fa)](_0x3cfc59,_0x580438)){const [_0x4aea69,_0x3fa0eb]=_0x31b314['pULFj'](readId,_0x110968,_0x3cfc59),[_0x5cc603,_0x1b52d4]=_0x31b314['jmddL'](readVint,_0x110968,_0x3cfc59+_0x3fa0eb);if(_0x31b314[_0x3bb6dd(0x22b)](_0x4aea69,ID_TIMESTAMP))_0x480eca=readUint(_0x110968,_0x31b314[_0x3bb6dd(0x1fb)](_0x3cfc59+_0x3fa0eb,_0x1b52d4),_0x5cc603);else{if(_0x4aea69===ID_SIMPLE_BLOCK&&_0x5cc603>=0x4){const _0x5b9d91=_0x31b314[_0x3bb6dd(0x1fb)](_0x31b314[_0x3bb6dd(0x1fb)](_0x3cfc59,_0x3fa0eb),_0x1b52d4),[,_0x4bc188]=_0x31b314['cHpsH'](readVint,_0x110968,_0x5b9d91),_0x38bac2=_0x110968['readInt16BE'](_0x5b9d91+_0x4bc188),_0x342e4b=_0x31b314[_0x3bb6dd(0x1f2)](_0x31b314[_0x3bb6dd(0x221)](_0x31b314[_0x3bb6dd(0x1fc)](_0x480eca,_0x38bac2),_0x349a7a),0xf4240);_0x31b314['uWAbg'](_0x342e4b,_0x5af262)&&(_0x5af262=_0x342e4b);}else{if(_0x4aea69===ID_CLUSTER)break;}}if(_0x31b314[_0x3bb6dd(0x202)](isUnknownSize,_0x5cc603,_0x1b52d4))break;_0x3cfc59+=_0x31b314[_0x3bb6dd(0x1fc)](_0x3fa0eb+_0x1b52d4,_0x5cc603);}_0x56ff8e=_0x580438;}return _0x5af262;}export function fixWebmDuration(_0x40c406,_0xad49e8){const _0x1daef1=_0x1169,_0x93c1ea={'MPSqY':function(_0xb445d1,_0xe9f231){return _0xb445d1!==_0xe9f231;},'cABFC':'Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','WmIjB':function(_0x5a4e38,_0x59a74d,_0x5ad65b){return _0x5a4e38(_0x59a74d,_0x5ad65b);},'afUtU':function(_0x10b70c,_0x11f806){return _0x10b70c+_0x11f806;},'vaoFv':function(_0x429eea,_0x5caebe){return _0x429eea+_0x5caebe;},'Klcqj':function(_0x598d74,_0x3dbfaa){return _0x598d74<_0x3dbfaa;},'NazQn':function(_0x57d46f,_0x3c7e1c){return _0x57d46f+_0x3c7e1c;},'edIWU':function(_0x28cf72,_0x54935c){return _0x28cf72+_0x54935c;},'opzhI':function(_0x5e0b31,_0x5e5608){return _0x5e0b31+_0x5e5608;},'ykCrY':function(_0x24d258,_0x29c3c8,_0xa5722a){return _0x24d258(_0x29c3c8,_0xa5722a);},'eEqAU':_0x1daef1(0x236),'UutaV':function(_0x546fc2,_0x431e99,_0x4f64e0,_0x1779ff,_0x53a2bb){return _0x546fc2(_0x431e99,_0x4f64e0,_0x1779ff,_0x53a2bb);},'jwdYE':_0x1daef1(0x222),'UMJik':function(_0x1901c1,_0x469610){return _0x1901c1/_0x469610;},'YNMnU':function(_0x30e5e8,_0x19fe81){return _0x30e5e8(_0x19fe81);},'IAUGV':function(_0x224e9a,_0x11b760){return _0x224e9a<_0x11b760;},'llhpw':function(_0x52ce17,_0x152a63){return _0x52ce17+_0x152a63;},'nDRdL':function(_0x42cc91,_0x383000){return _0x42cc91(_0x383000);},'uKtTR':function(_0x53e118,_0x501e0c,_0x594678){return _0x53e118(_0x501e0c,_0x594678);},'xsoFi':function(_0x102908,_0x526778){return _0x102908+_0x526778;},'jhdNq':function(_0x423e04,_0x250c7f,_0x551fd8){return _0x423e04(_0x250c7f,_0x551fd8);},'tJJhH':function(_0x445f11,_0x938f64,_0x590a47,_0x44848e,_0x2b973a,_0x44f793,_0x1f316a){return _0x445f11(_0x938f64,_0x590a47,_0x44848e,_0x2b973a,_0x44f793,_0x1f316a);}},_0x5268f4=readFileSync(_0x40c406);let _0x532655=0x0;const [_0x4e4824,_0x115fa8]=readId(_0x5268f4,_0x532655),[_0xe2494,_0x509846]=readVint(_0x5268f4,_0x532655+_0x115fa8);_0x532655+=_0x115fa8+_0x509846+_0xe2494;const [_0x240a87,_0x4ac12d]=readId(_0x5268f4,_0x532655);if(_0x93c1ea['MPSqY'](_0x240a87,ID_SEGMENT))return console['error'](_0x93c1ea[_0x1daef1(0x225)]),![];const [,_0x51323a]=_0x93c1ea[_0x1daef1(0x210)](readVint,_0x5268f4,_0x532655+_0x4ac12d),_0x30d067=_0x93c1ea[_0x1daef1(0x1fd)](_0x93c1ea[_0x1daef1(0x1f5)](_0x532655,_0x4ac12d),_0x51323a);let _0x157d49=_0x30d067;const _0x51f181=Math['min'](_0x5268f4['length'],_0x93c1ea['afUtU'](_0x30d067,0x2710));let _0xb015fc=null,_0x1c6db6=null;while(_0x93c1ea[_0x1daef1(0x223)](_0x157d49,_0x51f181)){const [_0x50454d,_0x4c5222]=_0x93c1ea['WmIjB'](readId,_0x5268f4,_0x157d49),[_0x4e079c,_0x1a0816]=readVint(_0x5268f4,_0x93c1ea[_0x1daef1(0x22c)](_0x157d49,_0x4c5222));_0x50454d===ID_VOID&&!_0xb015fc&&(_0xb015fc={'offset':_0x157d49,'idLen':_0x4c5222,'sizeLen':_0x1a0816,'dataSize':_0x4e079c,'dataOffset':_0x93c1ea[_0x1daef1(0x213)](_0x157d49+_0x4c5222,_0x1a0816)});if(_0x50454d===ID_INFO){_0x1c6db6={'offset':_0x157d49,'idLen':_0x4c5222,'sizeLen':_0x1a0816,'dataSize':_0x4e079c,'dataOffset':_0x93c1ea[_0x1daef1(0x1f7)](_0x157d49,_0x4c5222)+_0x1a0816};break;}if(_0x50454d===ID_CLUSTER)break;if(_0x93c1ea[_0x1daef1(0x209)](isUnknownSize,_0x4e079c,_0x1a0816))break;_0x157d49+=_0x4c5222+_0x1a0816+_0x4e079c;}if(!_0x1c6db6)return console['error'](_0x93c1ea['eEqAU']),![];const _0x41ddbe=findElement(_0x5268f4,_0x1c6db6[_0x1daef1(0x217)],_0x93c1ea['afUtU'](_0x1c6db6['dataOffset'],_0x1c6db6['dataSize']),ID_DURATION);if(_0x41ddbe)return![];const _0x443d4f=_0x93c1ea[_0x1daef1(0x21e)](findElement,_0x5268f4,_0x1c6db6[_0x1daef1(0x217)],_0x93c1ea['NazQn'](_0x1c6db6['dataOffset'],_0x1c6db6['dataSize']),ID_TIMESTAMP_SCALE);let _0x29eba4=0xf4240;_0x443d4f&&(_0x29eba4=readUint(_0x5268f4,_0x443d4f[_0x1daef1(0x217)],_0x443d4f[_0x1daef1(0x230)]));const _0x10b77d=computeDurationMs(_0x5268f4,_0x29eba4);if(_0x10b77d<=0x0)return console['error'](_0x93c1ea[_0x1daef1(0x23a)]),![];const _0x199a7c=_0x93c1ea[_0x1daef1(0x1f8)](_0x10b77d*0xf4240,_0x29eba4),_0x4ab648=Buffer[_0x1daef1(0x205)]([writeId(ID_DURATION),_0x93c1ea['YNMnU'](writeVint,0x8),writeFloat64(_0x199a7c)]),_0x4be175=_0x4ab648[_0x1daef1(0x1ef)];if(!_0xb015fc||_0x93c1ea['IAUGV'](_0xb015fc['offset'],_0x1c6db6[_0x1daef1(0x1f9)])){if(_0xb015fc){const _0x53101b=_0x93c1ea['llhpw'](_0xb015fc[_0x1daef1(0x238)]+_0xb015fc['sizeLen'],_0xb015fc[_0x1daef1(0x230)]),_0x38b936=_0x53101b-_0x4be175;if(_0x38b936<0x2)return rewriteFile(_0x5268f4,_0x1c6db6,_0x4ab648,_0x29eba4,_0x10b77d,_0xad49e8);const _0x283d59=_0x1c6db6['dataSize']+_0x4be175,_0x5f4cd9=Buffer[_0x1daef1(0x205)]([_0x93c1ea['nDRdL'](writeId,ID_INFO),_0x93c1ea[_0x1daef1(0x201)](writeVint,_0x283d59,_0x1c6db6['sizeLen'])]),_0x231019=_0x5268f4[_0x1daef1(0x207)](_0x1c6db6['dataOffset'],_0x93c1ea[_0x1daef1(0x1fd)](_0x1c6db6[_0x1daef1(0x217)],_0x1c6db6['dataSize'])),_0x53ecd3=writeVoid(_0x38b936),_0x2ace5b=_0x5268f4[_0x1daef1(0x207)](0x0,_0xb015fc[_0x1daef1(0x1f9)]),_0x22fd19=_0x5268f4['slice'](_0x93c1ea[_0x1daef1(0x233)](_0x1c6db6[_0x1daef1(0x217)],_0x1c6db6[_0x1daef1(0x230)]));return _0x93c1ea[_0x1daef1(0x200)](writeFileSync,_0xad49e8,Buffer['concat']([_0x2ace5b,_0x53ecd3,_0x5f4cd9,_0x231019,_0x4ab648,_0x22fd19])),!![];}}return _0x93c1ea['tJJhH'](rewriteFile,_0x5268f4,_0x1c6db6,_0x4ab648,_0x29eba4,_0x10b77d,_0xad49e8);}function rewriteFile(_0x4769b8,_0x1a027b,_0x3be789,_0x55712d,_0x51146b,_0x18ccb4){const _0x1b5501=_0x1169,_0x484b21={'hqqVV':function(_0x1ade6a,_0x4c0f45){return _0x1ade6a+_0x4c0f45;},'myXpA':function(_0x1bc68c,_0x1557ae){return _0x1bc68c+_0x1557ae;},'cxacr':function(_0x5a85b7,_0x5ee2ff,_0x3093bc){return _0x5a85b7(_0x5ee2ff,_0x3093bc);}},_0x179061=_0x1a027b[_0x1b5501(0x230)]+_0x3be789[_0x1b5501(0x1ef)],_0x330d8f=Buffer['concat']([writeId(ID_INFO),writeVint(_0x179061)]),_0x5e0310=_0x1a027b[_0x1b5501(0x238)]+_0x1a027b['sizeLen'],_0x16a1f3=_0x4769b8[_0x1b5501(0x207)](0x0,_0x1a027b[_0x1b5501(0x1f9)]),_0x1421d9=_0x4769b8[_0x1b5501(0x207)](_0x1a027b['dataOffset'],_0x484b21['hqqVV'](_0x1a027b[_0x1b5501(0x217)],_0x1a027b['dataSize'])),_0x15bf10=_0x4769b8['slice'](_0x484b21['myXpA'](_0x1a027b['offset']+_0x5e0310,_0x1a027b[_0x1b5501(0x230)]));return _0x484b21['cxacr'](writeFileSync,_0x18ccb4,Buffer['concat']([_0x16a1f3,_0x330d8f,_0x1421d9,_0x3be789,_0x15bf10])),!![];}function _0x1374(){const _0x28943b=['qJHnd','hLALB','afUtU','1066390KBZbtS','siPiB','jhdNq','uKtTR','hjFTx','VgAuw','sraSx','concat','ozydC','slice','log','ykCrY','endsWith','YKpgV','BHdDH','TNpoO','2327NbNweZ','117mtBOFY','WmIjB','3029828YOOAom','error','edIWU','3uyQvPG','5388375HZeQwV','mXgbh','dataOffset','cHpsH','pUTfT','776jdrfsp','112956GuIMHW','8274827ojhIcK','6STqQKE','UutaV','qOWEC','floor','yiCGk','Could\x20not\x20compute\x20duration','Klcqj','XpJkX','cABFC','argv','exit','320shNflP','56462VnTxjd','Fixed:\x20','HqTwN','NazQn','iPMqk','XyQBC','alloc','dataSize','VyFTp','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','xsoFi','rTXkI','pqHzx','Could\x20not\x20find\x20Info\x20element','Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>','idLen','GAXZy','jwdYE','length','mSipV','weEPE','xCumQ','pow','4594JfrXFd','vaoFv','from','opzhI','UMJik','offset','CiZvQ'];_0x1374=function(){return _0x28943b;};return _0x1374();}if(process[_0x331feb(0x226)][0x1]?.[_0x331feb(0x20a)]('fixWebmDuration.ts')||process[_0x331feb(0x226)][0x1]?.['endsWith']('fixWebmDuration.js')){const input=process[_0x331feb(0x226)][0x2],output=process['argv'][0x3];(!input||!output)&&(console[_0x331feb(0x212)](_0x331feb(0x237)),process[_0x331feb(0x227)](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0x331feb(0x208)](_0x331feb(0x22a)+output):console['log'](_0x331feb(0x232));}
|
|
1
|
+
const _0x27a57d=_0x2473;(function(_0xfeb088,_0xec0907){const _0x3d6fa4=_0x2473,_0x3f9e5f=_0xfeb088();while(!![]){try{const _0x1f3f37=-parseInt(_0x3d6fa4(0xf2))/0x1*(-parseInt(_0x3d6fa4(0xee))/0x2)+parseInt(_0x3d6fa4(0xfc))/0x3*(-parseInt(_0x3d6fa4(0x105))/0x4)+-parseInt(_0x3d6fa4(0x117))/0x5*(-parseInt(_0x3d6fa4(0x10f))/0x6)+-parseInt(_0x3d6fa4(0x113))/0x7+parseInt(_0x3d6fa4(0x10c))/0x8+parseInt(_0x3d6fa4(0xef))/0x9+parseInt(_0x3d6fa4(0xed))/0xa*(-parseInt(_0x3d6fa4(0x109))/0xb);if(_0x1f3f37===_0xec0907)break;else _0x3f9e5f['push'](_0x3f9e5f['shift']());}catch(_0x46bc58){_0x3f9e5f['push'](_0x3f9e5f['shift']());}}}(_0x30e4,0xdbfda));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 _0x2473(_0x14d277,_0x20995b){_0x14d277=_0x14d277-0xd8;const _0x30e4b2=_0x30e4();let _0x2473c1=_0x30e4b2[_0x14d277];return _0x2473c1;}function readVint(_0x131847,_0x300970){const _0x1dc23a=_0x2473,_0x121680={'eHdMZ':function(_0x49dd35,_0x4ff762){return _0x49dd35&_0x4ff762;},'gCwnA':function(_0x1b83c1,_0x2f5619){return _0x1b83c1-_0x2f5619;},'dVpbF':function(_0x3940e1,_0x32c1e3){return _0x3940e1<_0x32c1e3;},'KnEyO':function(_0x4b1a74,_0x2ada7e){return _0x4b1a74+_0x2ada7e;}};if(_0x300970>=_0x131847['length'])return[0x0,0x0];const _0x18b3e2=_0x131847[_0x300970];let _0x3812af=0x1,_0x4bdfc2=0x80;while(_0x3812af<=0x8&&!(_0x18b3e2&_0x4bdfc2)){_0x3812af++,_0x4bdfc2>>=0x1;}if(_0x300970+_0x3812af>_0x131847['length'])return[0x0,0x0];let _0x435696=_0x121680[_0x1dc23a(0xe7)](_0x18b3e2,_0x121680[_0x1dc23a(0x100)](_0x4bdfc2,0x1));for(let _0x4a9293=0x1;_0x121680['dVpbF'](_0x4a9293,_0x3812af);_0x4a9293++){_0x435696=_0x121680['KnEyO'](_0x435696*0x100,_0x131847[_0x121680[_0x1dc23a(0xfd)](_0x300970,_0x4a9293)]);}return[_0x435696,_0x3812af];}function readId(_0xde6bd7,_0x5135bf){const _0x5818ec=_0x2473,_0x54ba33={'qcIAW':function(_0x231874,_0x306d73){return _0x231874>=_0x306d73;},'vNHCL':function(_0x59a8ae,_0x43aadf){return _0x59a8ae>=_0x43aadf;},'HWWJZ':function(_0x4408fd,_0x5ddaab){return _0x4408fd>_0x5ddaab;},'UXBQw':function(_0x3d56ba,_0x3a853a){return _0x3d56ba<_0x3a853a;}};if(_0x54ba33['qcIAW'](_0x5135bf,_0xde6bd7[_0x5818ec(0xf1)]))return[0x0,0x0];const _0x5aa1dd=_0xde6bd7[_0x5135bf];let _0x297d8a;if(_0x54ba33['vNHCL'](_0x5aa1dd,0x80))_0x297d8a=0x1;else{if(_0x5aa1dd>=0x40)_0x297d8a=0x2;else{if(_0x5aa1dd>=0x20)_0x297d8a=0x3;else{if(_0x54ba33['qcIAW'](_0x5aa1dd,0x10))_0x297d8a=0x4;else return[_0x5aa1dd,0x1];}}}if(_0x54ba33[_0x5818ec(0xe6)](_0x5135bf+_0x297d8a,_0xde6bd7[_0x5818ec(0xf1)]))return[0x0,0x0];let _0x5e9ede=0x0;for(let _0xce8e3e=0x0;_0x54ba33[_0x5818ec(0x107)](_0xce8e3e,_0x297d8a);_0xce8e3e++){_0x5e9ede=_0x5e9ede*0x100+_0xde6bd7[_0x5135bf+_0xce8e3e];}return[_0x5e9ede,_0x297d8a];}function readUint(_0x249dab,_0x55f6e3,_0x2ae9ac){const _0xf83cab=_0x2473,_0x5717ea={'ozsuE':function(_0x21e083,_0x30552b){return _0x21e083<_0x30552b;},'DsCsc':function(_0x5743ef,_0x46825f){return _0x5743ef+_0x46825f;},'eGzgo':function(_0x2ddf57,_0x3d6a37){return _0x2ddf57*_0x3d6a37;}};let _0x10c7b6=0x0;for(let _0x17659d=0x0;_0x5717ea[_0xf83cab(0xea)](_0x17659d,_0x2ae9ac);_0x17659d++){_0x10c7b6=_0x5717ea[_0xf83cab(0xe3)](_0x5717ea['eGzgo'](_0x10c7b6,0x100),_0x249dab[_0x55f6e3+_0x17659d]);}return _0x10c7b6;}function _0x30e4(){const _0xbdb3b4=['ozsuE','xFnMN','dataSize','129070PNfRZE','34gLWFuX','13054842fsqqyg','OQBFx','length','102147zTpCNz','dataOffset','Usvod','argv','qAyMy','xpjtN','IeOQy','tfwxg','TOwdk','jmRtC','4647IFVTwk','KnEyO','mqlIF','concat','gCwnA','exit','readInt16BE','rGBxI','from','1336BFczkZ','fmhTK','UXBQw','log','2299saVYwr','EPXPg','hLJml','815624WPpagc','ytQNJ','slice','1284636lLtFwP','HVvZk','fsLWm','pow','4702047JQFliZ','eHiSW','fixWebmDuration.ts','Ncxsh','35oYtACO','dNkZK','HxnLs','Kczpd','hSNqs','KyPfN','iHhsj','floor','AguKF','alloc','Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','TBCTm','yRxGw','offset','endsWith','qVLPr','JEPme','kVysK','quPMS','DsCsc','YXLEL','idLen','HWWJZ','eHdMZ','sizeLen','Fixed:\x20'];_0x30e4=function(){return _0xbdb3b4;};return _0x30e4();}function isUnknownSize(_0x4a854b,_0x5008ca){const _0x56426f=_0x2473,_0x5517af={'iHhsj':function(_0x22e8dd,_0x5dd5a7){return _0x22e8dd*_0x5dd5a7;}};return _0x4a854b===Math['pow'](0x2,_0x5517af[_0x56426f(0x11d)](0x7,_0x5008ca))-0x1;}function writeId(_0x524c13){const _0x470bd2=_0x2473,_0xe63e8={'OQBFx':function(_0x832da8,_0x4745fe){return _0x832da8>>_0x4745fe;},'zwiJI':function(_0x41f762,_0x386389){return _0x41f762&_0x386389;},'AguKF':function(_0xe40d6,_0xec9bc6){return _0xe40d6>>_0xec9bc6;},'HVvZk':function(_0x32cfa0,_0x1f6e41){return _0x32cfa0&_0x1f6e41;}};if(_0x524c13<=0xff)return Buffer['from']([_0x524c13]);if(_0x524c13<=0xffff)return Buffer['from']([_0xe63e8[_0x470bd2(0xf0)](_0x524c13,0x8)&0xff,_0x524c13&0xff]);if(_0x524c13<=0xffffff)return Buffer[_0x470bd2(0x104)]([_0xe63e8[_0x470bd2(0xf0)](_0x524c13,0x10)&0xff,_0xe63e8['zwiJI'](_0xe63e8[_0x470bd2(0xd8)](_0x524c13,0x8),0xff),_0x524c13&0xff]);return Buffer['from']([_0xe63e8['zwiJI'](_0x524c13>>0x18,0xff),_0x524c13>>0x10&0xff,_0xe63e8['zwiJI'](_0xe63e8[_0x470bd2(0xf0)](_0x524c13,0x8),0xff),_0xe63e8[_0x470bd2(0x110)](_0x524c13,0xff)]);}function writeVint(_0x3171f2,_0x1e45bb){const _0xa483c4=_0x2473,_0x1873ee={'sEaLj':function(_0x5e078e,_0x4ded2f){return _0x5e078e-_0x4ded2f;},'Ncxsh':function(_0x1adf09,_0x190772){return _0x1adf09*_0x190772;},'eHiSW':function(_0x41ac9a,_0x4ac69a){return _0x41ac9a>=_0x4ac69a;}};let _0x4fcc3e=_0x1e45bb||0x1;while(_0x1873ee['sEaLj'](Math[_0xa483c4(0x112)](0x2,_0x1873ee[_0xa483c4(0x116)](0x7,_0x4fcc3e)),0x2)<_0x3171f2)_0x4fcc3e++;const _0x421ad0=Buffer['alloc'](_0x4fcc3e);for(let _0x45db6c=_0x4fcc3e-0x1;_0x1873ee[_0xa483c4(0x114)](_0x45db6c,0x0);_0x45db6c--){_0x421ad0[_0x45db6c]=_0x3171f2&0xff,_0x3171f2=Math[_0xa483c4(0x11e)](_0x3171f2/0x100);}return _0x421ad0[0x0]|=0x1<<_0x1873ee['sEaLj'](0x8,_0x4fcc3e),_0x421ad0;}function writeFloat64(_0x39e6c9){const _0x38cd8c=_0x2473,_0x2aec60=Buffer[_0x38cd8c(0xd9)](0x8);return _0x2aec60['writeDoubleBE'](_0x39e6c9,0x0),_0x2aec60;}function writeVoid(_0x15279d){const _0x1b3d0e=_0x2473,_0x156ae7={'gAKja':function(_0x2e3bb8,_0xe09fb3){return _0x2e3bb8-_0xe09fb3;},'KyPfN':function(_0x160ce7,_0x1c4c79){return _0x160ce7-_0x1c4c79;},'TBCTm':function(_0x430539,_0x1ee928){return _0x430539-_0x1ee928;},'txdgO':function(_0x54e432,_0x5ec5e4,_0x959ae1){return _0x54e432(_0x5ec5e4,_0x959ae1);}};for(let _0x3793db=0x1;_0x3793db<=0x8;_0x3793db++){const _0x13c604=_0x156ae7['gAKja'](_0x156ae7[_0x1b3d0e(0x11c)](_0x15279d,0x1),_0x3793db);if(_0x13c604>=0x0&&_0x13c604<=_0x156ae7[_0x1b3d0e(0xdb)](Math['pow'](0x2,0x7*_0x3793db),0x2))return Buffer['concat']([Buffer[_0x1b3d0e(0x104)]([ID_VOID]),_0x156ae7['txdgO'](writeVint,_0x13c604,_0x3793db),Buffer[_0x1b3d0e(0xd9)](_0x13c604)]);}return Buffer[_0x1b3d0e(0xd9)](0x0);}function findElement(_0x4de9f9,_0x327fa8,_0x253339,_0x5dea40){const _0x278ff2=_0x2473,_0x3bd09e={'IeOQy':function(_0x409b11,_0x5a4f7c,_0x220622){return _0x409b11(_0x5a4f7c,_0x220622);},'HpXyh':function(_0x963f86,_0x173f25,_0x130029){return _0x963f86(_0x173f25,_0x130029);},'fmhTK':function(_0x2fac0e,_0x2f7ba9){return _0x2fac0e+_0x2f7ba9;},'tfwxg':function(_0x2548b1,_0x516f5f){return _0x2548b1===_0x516f5f;},'mqlIF':function(_0x4ddf5a,_0x3e2e3c){return _0x4ddf5a+_0x3e2e3c;}};let _0x86eadc=_0x327fa8;while(_0x86eadc<_0x253339){const [_0x237047,_0x159ebf]=_0x3bd09e[_0x278ff2(0xf8)](readId,_0x4de9f9,_0x86eadc),[_0x24d060,_0x56094d]=_0x3bd09e['HpXyh'](readVint,_0x4de9f9,_0x3bd09e[_0x278ff2(0x106)](_0x86eadc,_0x159ebf));if(_0x3bd09e[_0x278ff2(0xf9)](_0x237047,_0x5dea40))return{'offset':_0x86eadc,'idLen':_0x159ebf,'sizeLen':_0x56094d,'dataSize':_0x24d060,'dataOffset':_0x3bd09e[_0x278ff2(0xfe)](_0x86eadc,_0x159ebf)+_0x56094d};if(_0x3bd09e[_0x278ff2(0xf8)](isUnknownSize,_0x24d060,_0x56094d))break;_0x86eadc+=_0x159ebf+_0x56094d+_0x24d060;}return null;}function computeDurationMs(_0xf17248,_0x52c57a){const _0x3225ce=_0x2473,_0x578947={'TOwdk':function(_0x5a9446,_0x282e13){return _0x5a9446<_0x282e13;},'EPXPg':function(_0x501c73,_0xe60bb3,_0x3918c8){return _0x501c73(_0xe60bb3,_0x3918c8);},'dNkZK':function(_0x18cbd2,_0x327764){return _0x18cbd2!==_0x327764;},'qAyMy':function(_0x364b08,_0x50aa1d){return _0x364b08+_0x50aa1d;},'Kczpd':function(_0x14182c,_0x3dacba,_0x798db6){return _0x14182c(_0x3dacba,_0x798db6);},'MQldJ':function(_0x28d8c6,_0xdf9de3){return _0x28d8c6-_0xdf9de3;},'Usvod':function(_0x4c2fee,_0x12f689,_0x2a8f50){return _0x4c2fee(_0x12f689,_0x2a8f50);},'quPMS':function(_0x108b30,_0x102a02){return _0x108b30===_0x102a02;},'Rktjg':function(_0x1dd271,_0x3e2c7e,_0x140ed6){return _0x1dd271(_0x3e2c7e,_0x140ed6);},'xpjtN':function(_0x206957,_0xb04f6d,_0x3d66a2){return _0x206957(_0xb04f6d,_0x3d66a2);},'oRYXj':function(_0x22d766,_0x331a1b){return _0x22d766===_0x331a1b;},'hSNqs':function(_0x2c90e5,_0x5732a9){return _0x2c90e5+_0x5732a9;},'jmRtC':function(_0x43435e,_0x369835){return _0x43435e>=_0x369835;},'DiFDS':function(_0x5e755d,_0x40387a){return _0x5e755d+_0x40387a;},'gnNwV':function(_0x2ad567,_0x31ae82){return _0x2ad567/_0x31ae82;},'LIcmM':function(_0x5c88a5,_0x58ebda){return _0x5c88a5*_0x58ebda;},'UhmXs':function(_0x5ec5c5,_0x41a5e0){return _0x5ec5c5>_0x41a5e0;}};let _0x1b1d7a=0x0;const _0x2b65e7=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x2648ae=_0xf17248['indexOf'](_0x2b65e7);if(_0x2648ae===-0x1)return 0x0;while(_0x578947['TOwdk'](_0x2648ae,_0xf17248[_0x3225ce(0xf1)])){const [_0x5438eb,_0xdce821]=_0x578947[_0x3225ce(0x10a)](readId,_0xf17248,_0x2648ae);if(_0x578947[_0x3225ce(0x118)](_0x5438eb,ID_CLUSTER))break;const [_0x57e164,_0x8d1e7]=_0x578947[_0x3225ce(0x10a)](readVint,_0xf17248,_0x2648ae+_0xdce821),_0x3482b5=_0x578947['qAyMy'](_0x578947['qAyMy'](_0x2648ae,_0xdce821),_0x8d1e7),_0x28c59d=_0x578947['Kczpd'](isUnknownSize,_0x57e164,_0x8d1e7);let _0x1e690e;if(_0x28c59d){let _0x14a158=_0x3482b5;while(_0x578947['TOwdk'](_0x14a158,_0x578947['MQldJ'](_0xf17248[_0x3225ce(0xf1)],0x4))){const [_0x5d42d2,_0x15c144]=_0x578947[_0x3225ce(0xf4)](readId,_0xf17248,_0x14a158);if(_0x578947[_0x3225ce(0xe2)](_0x5d42d2,ID_CLUSTER)){_0x1e690e=_0x14a158;break;}const [_0x3980e9,_0x38c01d]=_0x578947[_0x3225ce(0x11a)](readVint,_0xf17248,_0x578947[_0x3225ce(0xf6)](_0x14a158,_0x15c144));if(_0x578947['Rktjg'](isUnknownSize,_0x3980e9,_0x38c01d)){_0x1e690e=_0xf17248['length'];break;}_0x14a158+=_0x15c144+_0x38c01d+_0x3980e9;}_0x1e690e??=_0xf17248[_0x3225ce(0xf1)];}else _0x1e690e=_0x3482b5+_0x57e164;let _0x13e389=0x0,_0x5d05c9=_0x3482b5;while(_0x578947[_0x3225ce(0xfa)](_0x5d05c9,_0x1e690e)){const [_0x4ee6d5,_0x13e81f]=_0x578947['xpjtN'](readId,_0xf17248,_0x5d05c9),[_0x45a2ad,_0x18c79a]=readVint(_0xf17248,_0x578947['qAyMy'](_0x5d05c9,_0x13e81f));if(_0x578947['oRYXj'](_0x4ee6d5,ID_TIMESTAMP))_0x13e389=readUint(_0xf17248,_0x578947[_0x3225ce(0x11b)](_0x5d05c9,_0x13e81f)+_0x18c79a,_0x45a2ad);else{if(_0x4ee6d5===ID_SIMPLE_BLOCK&&_0x578947[_0x3225ce(0xfb)](_0x45a2ad,0x4)){const _0x3f71b5=_0x5d05c9+_0x13e81f+_0x18c79a,[,_0x4fa814]=_0x578947[_0x3225ce(0xf7)](readVint,_0xf17248,_0x3f71b5),_0x3bbdda=_0xf17248[_0x3225ce(0x102)](_0x578947['DiFDS'](_0x3f71b5,_0x4fa814)),_0x328b16=_0x578947['gnNwV'](_0x578947['LIcmM'](_0x13e389+_0x3bbdda,_0x52c57a),0xf4240);_0x578947['UhmXs'](_0x328b16,_0x1b1d7a)&&(_0x1b1d7a=_0x328b16);}else{if(_0x4ee6d5===ID_CLUSTER)break;}}if(isUnknownSize(_0x45a2ad,_0x18c79a))break;_0x5d05c9+=_0x578947['DiFDS'](_0x578947['qAyMy'](_0x13e81f,_0x18c79a),_0x45a2ad);}_0x2648ae=_0x1e690e;}return _0x1b1d7a;}export function fixWebmDuration(_0x38b757,_0x15719c){const _0x4301ec=_0x2473,_0x128b6e={'rGBxI':function(_0xd48ac7,_0x11d7df,_0xe09a25){return _0xd48ac7(_0x11d7df,_0xe09a25);},'aMXvb':function(_0x547a09,_0x423e28,_0x57c37a){return _0x547a09(_0x423e28,_0x57c37a);},'HxnLs':function(_0x521400,_0x34af76){return _0x521400+_0x34af76;},'ZVpgU':function(_0x31b7ff,_0x13f85e){return _0x31b7ff!==_0x13f85e;},'xFnMN':function(_0x5baf22,_0x3f53fd){return _0x5baf22+_0x3f53fd;},'JOpGr':function(_0x1c7282,_0x4c3c39){return _0x1c7282+_0x4c3c39;},'fsLWm':function(_0x2f14e6,_0x300438,_0xccf362){return _0x2f14e6(_0x300438,_0xccf362);},'YXLEL':function(_0x1f7141,_0x3d8936){return _0x1f7141===_0x3d8936;},'HGPKN':function(_0x3affc4,_0x2caedd){return _0x3affc4+_0x2caedd;},'kVysK':function(_0x111733,_0x13e0c2){return _0x111733+_0x13e0c2;},'yRxGw':function(_0x261bfa,_0x549df5,_0x1976f8,_0x46cd0e,_0xdd7c4e){return _0x261bfa(_0x549df5,_0x1976f8,_0x46cd0e,_0xdd7c4e);},'bKOcR':function(_0x2a26f9,_0x2d0046){return _0x2a26f9+_0x2d0046;},'JEPme':function(_0x47d08c,_0x1c0a1d,_0x115cb0,_0x3b702d){return _0x47d08c(_0x1c0a1d,_0x115cb0,_0x3b702d);},'pVexz':function(_0x2698dc,_0x3bcece){return _0x2698dc<=_0x3bcece;},'QqLHO':function(_0x158ecb,_0x16b022){return _0x158ecb/_0x16b022;},'imtTL':function(_0x2d5756,_0x1a6e1d){return _0x2d5756*_0x1a6e1d;},'ytQNJ':function(_0x489b8c,_0x54544a){return _0x489b8c(_0x54544a);},'cEdpH':function(_0x4b4d6f,_0x3a7da1){return _0x4b4d6f+_0x3a7da1;},'bcRTc':function(_0x1b1b88,_0x559294){return _0x1b1b88+_0x559294;},'KOuHF':function(_0x6f8f6d,_0x40ab2f){return _0x6f8f6d-_0x40ab2f;},'rtRpc':function(_0x23e504,_0x630e22,_0x48977c,_0x4f40ae,_0x181e1c,_0x10cd77,_0x3b9390){return _0x23e504(_0x630e22,_0x48977c,_0x4f40ae,_0x181e1c,_0x10cd77,_0x3b9390);},'CKbPr':function(_0x486eec,_0x5d3ef7){return _0x486eec+_0x5d3ef7;}},_0x17cf5a=readFileSync(_0x38b757);let _0x365d71=0x0;const [_0x10606f,_0x35919f]=_0x128b6e[_0x4301ec(0x103)](readId,_0x17cf5a,_0x365d71),[_0x27dc46,_0x530f81]=_0x128b6e['aMXvb'](readVint,_0x17cf5a,_0x365d71+_0x35919f);_0x365d71+=_0x128b6e['HxnLs'](_0x35919f,_0x530f81)+_0x27dc46;const [_0x4c9a1a,_0x5958c2]=readId(_0x17cf5a,_0x365d71);if(_0x128b6e['ZVpgU'](_0x4c9a1a,ID_SEGMENT))return console['error'](_0x4301ec(0xda)),![];const [,_0x261443]=readVint(_0x17cf5a,_0x128b6e[_0x4301ec(0xeb)](_0x365d71,_0x5958c2)),_0x124609=_0x128b6e['JOpGr'](_0x365d71+_0x5958c2,_0x261443);let _0x19c636=_0x124609;const _0x4dadbe=Math['min'](_0x17cf5a['length'],_0x128b6e[_0x4301ec(0x119)](_0x124609,0x2710));let _0xdb3efe=null,_0x53f8e2=null;while(_0x19c636<_0x4dadbe){const [_0x5b6465,_0x107c11]=_0x128b6e[_0x4301ec(0x111)](readId,_0x17cf5a,_0x19c636),[_0x137f6e,_0x326643]=readVint(_0x17cf5a,_0x19c636+_0x107c11);_0x128b6e[_0x4301ec(0xe4)](_0x5b6465,ID_VOID)&&!_0xdb3efe&&(_0xdb3efe={'offset':_0x19c636,'idLen':_0x107c11,'sizeLen':_0x326643,'dataSize':_0x137f6e,'dataOffset':_0x128b6e['HGPKN'](_0x128b6e[_0x4301ec(0xe1)](_0x19c636,_0x107c11),_0x326643)});if(_0x5b6465===ID_INFO){_0x53f8e2={'offset':_0x19c636,'idLen':_0x107c11,'sizeLen':_0x326643,'dataSize':_0x137f6e,'dataOffset':_0x128b6e['xFnMN'](_0x19c636,_0x107c11)+_0x326643};break;}if(_0x5b6465===ID_CLUSTER)break;if(_0x128b6e['rGBxI'](isUnknownSize,_0x137f6e,_0x326643))break;_0x19c636+=_0x107c11+_0x326643+_0x137f6e;}if(!_0x53f8e2)return console['error']('Could\x20not\x20find\x20Info\x20element'),![];const _0x2bbd04=findElement(_0x17cf5a,_0x53f8e2[_0x4301ec(0xf3)],_0x128b6e[_0x4301ec(0xe1)](_0x53f8e2['dataOffset'],_0x53f8e2['dataSize']),ID_DURATION);if(_0x2bbd04)return![];const _0x84dfc4=_0x128b6e[_0x4301ec(0xdc)](findElement,_0x17cf5a,_0x53f8e2['dataOffset'],_0x128b6e['bKOcR'](_0x53f8e2['dataOffset'],_0x53f8e2[_0x4301ec(0xec)]),ID_TIMESTAMP_SCALE);let _0x11cf5f=0xf4240;_0x84dfc4&&(_0x11cf5f=_0x128b6e[_0x4301ec(0xe0)](readUint,_0x17cf5a,_0x84dfc4[_0x4301ec(0xf3)],_0x84dfc4[_0x4301ec(0xec)]));const _0x32054b=computeDurationMs(_0x17cf5a,_0x11cf5f);if(_0x128b6e['pVexz'](_0x32054b,0x0))return console['error']('Could\x20not\x20compute\x20duration'),![];const _0x59a4bb=_0x128b6e['QqLHO'](_0x128b6e['imtTL'](_0x32054b,0xf4240),_0x11cf5f),_0x5a1e45=Buffer['concat']([writeId(ID_DURATION),writeVint(0x8),_0x128b6e[_0x4301ec(0x10d)](writeFloat64,_0x59a4bb)]),_0x47acd8=_0x5a1e45[_0x4301ec(0xf1)];if(!_0xdb3efe||_0xdb3efe['offset']<_0x53f8e2[_0x4301ec(0xdd)]){if(_0xdb3efe){const _0x2348d5=_0x128b6e['cEdpH'](_0x128b6e['bcRTc'](_0xdb3efe[_0x4301ec(0xe5)],_0xdb3efe['sizeLen']),_0xdb3efe['dataSize']),_0x313b8d=_0x128b6e['KOuHF'](_0x2348d5,_0x47acd8);if(_0x313b8d<0x2)return _0x128b6e['rtRpc'](rewriteFile,_0x17cf5a,_0x53f8e2,_0x5a1e45,_0x11cf5f,_0x32054b,_0x15719c);const _0x4206ee=_0x128b6e['CKbPr'](_0x53f8e2['dataSize'],_0x47acd8),_0x44d4ba=Buffer[_0x4301ec(0xff)]([writeId(ID_INFO),writeVint(_0x4206ee,_0x53f8e2['sizeLen'])]),_0x52fcdf=_0x17cf5a['slice'](_0x53f8e2['dataOffset'],_0x53f8e2[_0x4301ec(0xf3)]+_0x53f8e2[_0x4301ec(0xec)]),_0x45e198=writeVoid(_0x313b8d),_0x40666e=_0x17cf5a['slice'](0x0,_0xdb3efe[_0x4301ec(0xdd)]),_0x2fc4b3=_0x17cf5a['slice'](_0x128b6e['HxnLs'](_0x53f8e2['dataOffset'],_0x53f8e2['dataSize']));return writeFileSync(_0x15719c,Buffer[_0x4301ec(0xff)]([_0x40666e,_0x45e198,_0x44d4ba,_0x52fcdf,_0x5a1e45,_0x2fc4b3])),!![];}}return rewriteFile(_0x17cf5a,_0x53f8e2,_0x5a1e45,_0x11cf5f,_0x32054b,_0x15719c);}function rewriteFile(_0x4eb4cd,_0x344714,_0x19bb64,_0x56a61f,_0x2f81d4,_0x6d0dce){const _0x49c665=_0x2473,_0x536792={'hLJml':function(_0x46a178,_0x37ba62){return _0x46a178+_0x37ba62;},'qVLPr':function(_0x180780,_0x3cfa9d){return _0x180780(_0x3cfa9d);}},_0x45b33f=_0x536792[_0x49c665(0x10b)](_0x344714[_0x49c665(0xec)],_0x19bb64['length']),_0xe96a74=Buffer['concat']([_0x536792[_0x49c665(0xdf)](writeId,ID_INFO),_0x536792['qVLPr'](writeVint,_0x45b33f)]),_0xe7f737=_0x536792[_0x49c665(0x10b)](_0x344714['idLen'],_0x344714[_0x49c665(0xe8)]),_0x47ec9f=_0x4eb4cd['slice'](0x0,_0x344714['offset']),_0x3278a5=_0x4eb4cd[_0x49c665(0x10e)](_0x344714['dataOffset'],_0x344714[_0x49c665(0xf3)]+_0x344714[_0x49c665(0xec)]),_0x1a27ab=_0x4eb4cd['slice'](_0x536792['hLJml'](_0x344714[_0x49c665(0xdd)]+_0xe7f737,_0x344714['dataSize']));return writeFileSync(_0x6d0dce,Buffer['concat']([_0x47ec9f,_0xe96a74,_0x3278a5,_0x19bb64,_0x1a27ab])),!![];}if(process[_0x27a57d(0xf5)][0x1]?.[_0x27a57d(0xde)](_0x27a57d(0x115))||process['argv'][0x1]?.['endsWith']('fixWebmDuration.js')){const input=process[_0x27a57d(0xf5)][0x2],output=process[_0x27a57d(0xf5)][0x3];(!input||!output)&&(console['error']('Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>'),process[_0x27a57d(0x101)](0x1));const fixed=fixWebmDuration(input,output);fixed?console['log'](_0x27a57d(0xe9)+output):console[_0x27a57d(0x108)]('File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.');}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x22d030,_0x5d3dfd){const _0x13c178=_0x33cc,_0x5ee21f=_0x22d030();while(!![]){try{const _0x1ec005=parseInt(_0x13c178(0xd1))/0x1+-parseInt(_0x13c178(0xcb))/0x2*(parseInt(_0x13c178(0xd0))/0x3)+parseInt(_0x13c178(0xcd))/0x4*(parseInt(_0x13c178(0xd8))/0x5)+parseInt(_0x13c178(0xce))/0x6*(parseInt(_0x13c178(0xca))/0x7)+-parseInt(_0x13c178(0xd2))/0x8+-parseInt(_0x13c178(0xd6))/0x9*(-parseInt(_0x13c178(0xcf))/0xa)+parseInt(_0x13c178(0xcc))/0xb*(parseInt(_0x13c178(0xd7))/0xc);if(_0x1ec005===_0x5d3dfd)break;else _0x5ee21f['push'](_0x5ee21f['shift']());}catch(_0x5f5c5f){_0x5ee21f['push'](_0x5ee21f['shift']());}}}(_0x3eec,0xcce94));import{execFile as _0x52e4df}from'child_process';import{promisify}from'util';const execFile=promisify(_0x52e4df);export async function isPathGitTracked(_0x5367d5){const _0x179148=_0x33cc,_0x119d32={'QoSWS':_0x179148(0xd4),'lKVRY':'ls-files','cqbkS':_0x179148(0xd3)};try{return await execFile(_0x119d32['QoSWS'],[_0x119d32[_0x179148(0xd5)],_0x119d32['cqbkS'],_0x5367d5],{'cwd':process['cwd']()}),!![];}catch{return![];}}function _0x33cc(_0x1d36ba,_0x8a60){_0x1d36ba=_0x1d36ba-0xca;const _0x3eec15=_0x3eec();let _0x33cc7c=_0x3eec15[_0x1d36ba];return _0x33cc7c;}function _0x3eec(){const _0x37ef40=['git','lKVRY','45iYLDng','11244GQCTfc','1433710mWANSA','7538587eUVCKz','38jnKWOg','7997lfjZVg','4PdFBlK','6SUssHd','214610wJJyFZ','173901IaNOTn','595447cceEzS','6455560vrPxND','--error-unmatch'];_0x3eec=function(){return _0x37ef40;};return _0x3eec();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x3958(_0x541611,_0x46ece0){_0x541611=_0x541611-0x1a5;const _0x4c0626=_0xb352();let _0x5231c8=_0x4c0626[_0x541611];if(_0x3958['OzwiJr']===undefined){var _0x5ae329=function(_0x232bf1){const _0x4a867c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5aca48='',_0x976647='',_0x3dd0b0=_0x5aca48+_0x5ae329;for(let _0x3445b7=0x0,_0x1333ef,_0x474670,_0x1830a5=0x0;_0x474670=_0x232bf1['charAt'](_0x1830a5++);~_0x474670&&(_0x1333ef=_0x3445b7%0x4?_0x1333ef*0x40+_0x474670:_0x474670,_0x3445b7++%0x4)?_0x5aca48+=_0x3dd0b0['charCodeAt'](_0x1830a5+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x1333ef>>(-0x2*_0x3445b7&0x6)):_0x3445b7:0x0){_0x474670=_0x4a867c['indexOf'](_0x474670);}for(let _0x4a02a3=0x0,_0x176609=_0x5aca48['length'];_0x4a02a3<_0x176609;_0x4a02a3++){_0x976647+='%'+('00'+_0x5aca48['charCodeAt'](_0x4a02a3)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x976647);};_0x3958['FlMjhZ']=_0x5ae329,_0x3958['TaUTFR']={},_0x3958['OzwiJr']=!![];}const _0xb35206=_0x4c0626[0x0],_0x3958b9=_0x541611+_0xb35206,_0x13bad4=_0x3958['TaUTFR'][_0x3958b9];if(!_0x13bad4){const _0x3e1c2e=function(_0x132068){this['zLeddh']=_0x132068,this['GZSpJJ']=[0x1,0x0,0x0],this['IvShpJ']=function(){return'newState';},this['RuqdNf']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['RpiCHq']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x3e1c2e['prototype']['zZLxtX']=function(){const _0x3fa535=new RegExp(this['RuqdNf']+this['RpiCHq']),_0x3001fc=_0x3fa535['test'](this['IvShpJ']['toString']())?--this['GZSpJJ'][0x1]:--this['GZSpJJ'][0x0];return this['CdaITI'](_0x3001fc);},_0x3e1c2e['prototype']['CdaITI']=function(_0x80e83){if(!Boolean(~_0x80e83))return _0x80e83;return this['KbmmTe'](this['zLeddh']);},_0x3e1c2e['prototype']['KbmmTe']=function(_0x17cd97){for(let _0x4f3dd5=0x0,_0x2c3714=this['GZSpJJ']['length'];_0x4f3dd5<_0x2c3714;_0x4f3dd5++){this['GZSpJJ']['push'](Math['round'](Math['random']())),_0x2c3714=this['GZSpJJ']['length'];}return _0x17cd97(this['GZSpJJ'][0x0]);},new _0x3e1c2e(_0x3958)['zZLxtX'](),_0x5231c8=_0x3958['FlMjhZ'](_0x5231c8),_0x3958['TaUTFR'][_0x3958b9]=_0x5231c8;}else _0x5231c8=_0x13bad4;return _0x5231c8;}const _0x297e26=_0x3958;(function(_0x33e0e3,_0x38efe1){const _0x1def76=_0x3958,_0x1cc473=_0x33e0e3();while(!![]){try{const _0x4cc190=parseInt(_0x1def76(0x1b5))/0x1+-parseInt(_0x1def76(0x1ab))/0x2+-parseInt(_0x1def76(0x1d0))/0x3*(-parseInt(_0x1def76(0x1a5))/0x4)+parseInt(_0x1def76(0x1b2))/0x5+parseInt(_0x1def76(0x1b9))/0x6+-parseInt(_0x1def76(0x1e6))/0x7*(-parseInt(_0x1def76(0x1de))/0x8)+parseInt(_0x1def76(0x1c0))/0x9*(-parseInt(_0x1def76(0x1a9))/0xa);if(_0x4cc190===_0x38efe1)break;else _0x1cc473['push'](_0x1cc473['shift']());}catch(_0x3b3da8){_0x1cc473['push'](_0x1cc473['shift']());}}}(_0xb352,0x45681));const _0x5ae329=(function(){const _0xd79575={'uILhP':function(_0x431a29,_0x5c07e5){return _0x431a29===_0x5c07e5;}};let _0x2eaa44=!![];return function(_0x210d32,_0x143911){const _0x39e4ac={'iteDH':function(_0x20d157,_0x2b6cb5){return _0xd79575['uILhP'](_0x20d157,_0x2b6cb5);}},_0x1ef076=_0x2eaa44?function(){const _0xa8e777=_0x3958;if(_0x143911){if(_0x39e4ac['iteDH']('zLeNo','zLeNo')){const _0x4dde99=_0x143911[_0xa8e777(0x1bf)](_0x210d32,arguments);return _0x143911=null,_0x4dde99;}else return![];}}:function(){};return _0x2eaa44=![],_0x1ef076;};}()),_0x5231c8=_0x5ae329(this,function(){const _0x1c8ddd=_0x3958,_0x595a35={'BydHj':_0x1c8ddd(0x1c1)};return _0x5231c8[_0x1c8ddd(0x1c7)]()[_0x1c8ddd(0x1e8)]('(((.+)+)+)+$')[_0x1c8ddd(0x1c7)]()['constructor'](_0x5231c8)['search'](_0x595a35[_0x1c8ddd(0x1ca)]);});_0x5231c8();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0x297e26(0x1b6),ENV_TOKEN_LEGACY=_0x297e26(0x1c3),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x297e26(0x1c9)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x297e26(0x1cd));function isGitHubCI(){const _0x3b765b=_0x297e26;return!!process[_0x3b765b(0x1b0)][_0x3b765b(0x1e7)];}async function writeToGitHubEnv(_0x222c48,_0x2723af){const _0x117701=_0x297e26,_0x469d58={'RQhMs':function(_0x50c6fd,_0x5a895d,_0x367b2d){return _0x50c6fd(_0x5a895d,_0x367b2d);}},_0x528c10=process[_0x117701(0x1b0)][_0x117701(0x1e7)];_0x528c10&&await _0x469d58[_0x117701(0x1d6)](appendFile,_0x528c10,_0x222c48+'='+_0x2723af+'\x0a');}export async function storeToken(_0x1a281a){const _0x134324=_0x297e26,_0x14a107={'YqBTJ':function(_0x166dcf){return _0x166dcf();},'iaGIN':function(_0x5cfb56,_0x44b583,_0x5d5d43){return _0x5cfb56(_0x44b583,_0x5d5d43);},'eerQC':function(_0x35f7cd,_0x114b91,_0x2e4853,_0x55f908){return _0x35f7cd(_0x114b91,_0x2e4853,_0x55f908);}};_0x14a107[_0x134324(0x1d2)](isGitHubCI)?await _0x14a107[_0x134324(0x1cc)](writeToGitHubEnv,ENV_TOKEN,_0x1a281a):(await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x14a107[_0x134324(0x1a7)](writeFile,TOKEN_PATH,_0x1a281a,{'mode':0x180}));}export async function getToken(){const _0x51c450=_0x297e26,_0x23e0d8={'wassC':function(_0x239174,_0x766ad7){return _0x239174(_0x766ad7);},'tLQJh':function(_0x546eab,_0x5e0e20,_0x525a85){return _0x546eab(_0x5e0e20,_0x525a85);},'qUuDr':'utf-8','BJdOy':function(_0xd0c640){return _0xd0c640();},'OrfhZ':function(_0x2aa94e,_0x1c1aef){return _0x2aa94e(_0x1c1aef);},'akuDO':function(_0x2d1dd5,_0x4db340){return _0x2d1dd5(_0x4db340);},'mqKhJ':function(_0x105cfa){return _0x105cfa();},'MHPVw':function(_0x49348f){return _0x49348f();},'ldAaw':'Session\x20expired.\x20Re-authenticating\x20via\x20MCP\x20bootstrap...','PpWnC':_0x51c450(0x1aa),'FlNDp':_0x51c450(0x1cf),'aurpX':function(_0x5b8332,_0x241a0a){return _0x5b8332 instanceof _0x241a0a;},'bZNVd':function(_0x2390ce,_0x568476){return _0x2390ce+_0x568476;},'SoRda':_0x51c450(0x1c8),'chthc':_0x51c450(0x1da)};if(process[_0x51c450(0x1b0)][ENV_TOKEN])return process['env'][ENV_TOKEN];if(process[_0x51c450(0x1b0)][ENV_TOKEN_LEGACY])return process['env'][ENV_TOKEN_LEGACY];let _0x1cce17=null;try{_0x1cce17=(await _0x23e0d8[_0x51c450(0x1e1)](readFile,TOKEN_PATH,_0x23e0d8[_0x51c450(0x1a6)]))[_0x51c450(0x1b1)]()||null;}catch{const _0x44811b=await _0x23e0d8['BJdOy'](tryRefreshToken);return _0x44811b;}if(!_0x1cce17)return null;const _0x5f07a1=await _0x23e0d8[_0x51c450(0x1b4)](checkTokenValid,_0x1cce17);if(_0x5f07a1)return _0x1cce17;const _0x34d86b=await _0x23e0d8[_0x51c450(0x1db)](tryPromoteRefreshToken,_0x1cce17);if(_0x34d86b)return _0x34d86b;const _0x102a69=await _0x23e0d8[_0x51c450(0x1d8)](tryRefreshToken);if(_0x102a69)return _0x102a69;const {getMcpAuthOrigin:_0x1b4754,mcpBootstrap:_0x4c1e52}=await import(_0x51c450(0x1e3)),_0x13360a=await _0x23e0d8['MHPVw'](_0x1b4754);if(_0x13360a)try{console[_0x51c450(0x1bd)](_0x23e0d8['ldAaw']),await _0x4c1e52();const _0x621ed5=await tryRefreshToken();if(_0x621ed5)return _0x621ed5;}catch(_0x576055){if(_0x23e0d8[_0x51c450(0x1d1)]!==_0x23e0d8[_0x51c450(0x1e2)]){const _0x56e6fd=_0x23e0d8[_0x51c450(0x1a8)](_0x576055,Error)?_0x576055[_0x51c450(0x1b3)]:_0x23e0d8['wassC'](String,_0x576055);throw new Error(_0x23e0d8['bZNVd'](_0x51c450(0x1b7)+_0x56e6fd+'\x0a',_0x23e0d8[_0x51c450(0x1df)]));}else _0x23e0d8['wassC'](_0x2c5917,_0x4fc65e);}throw new Error(_0x23e0d8['chthc']);}async function checkTokenValid(_0x20d98a){const _0x3090a6=_0x297e26,_0x32e6ea={'kwzQC':_0x3090a6(0x1d3),'AFUaT':'./environment.js','JUOzy':function(_0x44b064){return _0x44b064();},'KteGi':function(_0x5cf1f2,_0xb5174c,_0x14ff84){return _0x5cf1f2(_0xb5174c,_0x14ff84);}},_0x2076b6=new AbortController(),_0x3493a8=setTimeout(()=>_0x2076b6['abort'](),0x1388);try{if(_0x32e6ea[_0x3090a6(0x1b8)]!==_0x32e6ea[_0x3090a6(0x1b8)])return null;else{const {getApiBaseUrl:_0x50567a}=await import(_0x32e6ea[_0x3090a6(0x1ae)]),_0x5bdaaa=_0x32e6ea[_0x3090a6(0x1c6)](_0x50567a),_0x57e3a1=await _0x32e6ea[_0x3090a6(0x1e0)](fetch,_0x5bdaaa+_0x3090a6(0x1d9),{'method':_0x3090a6(0x1dc),'headers':{'Authorization':'Bearer\x20'+_0x20d98a},'signal':_0x2076b6['signal']});return _0x57e3a1['ok'];}}catch{return!![];}finally{clearTimeout(_0x3493a8);}}async function tryRefreshToken(){const _0x1cfe78=_0x297e26,_0x42094f={'VzsWz':_0x1cfe78(0x1ad)},{refreshCliToken:_0x5de372}=await import(_0x42094f[_0x1cfe78(0x1dd)]);return _0x5de372();}async function tryPromoteRefreshToken(_0x24962e){const _0x2d6718=_0x297e26,_0x47d397={'UzmAk':_0x2d6718(0x1ad),'yClcu':function(_0xe6f9d4,_0x8b3252,_0x2d8ea3){return _0xe6f9d4(_0x8b3252,_0x2d8ea3);}},{refreshPartnerCliToken:_0x4195f2}=await import(_0x47d397['UzmAk']);return _0x47d397[_0x2d6718(0x1cb)](_0x4195f2,_0x24962e,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0x28ad78=_0x297e26,_0x56f294={'RxdpA':function(_0x2643ec,_0x2f4996){return _0x2643ec(_0x2f4996);}};try{return await _0x56f294[_0x28ad78(0x1c5)](unlink,TOKEN_PATH),!![];}catch{return![];}}export async function storeRefreshToken(_0x59844f){const _0x582bee=_0x297e26,_0x2ea878={'vXvKv':function(_0x26af24,_0x468463,_0x58ce64){return _0x26af24(_0x468463,_0x58ce64);},'NjKgx':function(_0x19cad2,_0x2cdf85,_0x27a680,_0xe5a91b){return _0x19cad2(_0x2cdf85,_0x27a680,_0xe5a91b);}};await _0x2ea878[_0x582bee(0x1af)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x2ea878[_0x582bee(0x1d7)](writeFile,REFRESH_TOKEN_PATH,_0x59844f,{'mode':0x180});}export async function getRefreshToken(){const _0x298d2d=_0x297e26,_0x43ad92={'jQQTc':function(_0x1f1f18,_0x539f35){return _0x1f1f18!==_0x539f35;},'GPbgt':_0x298d2d(0x1bc),'XbgSO':_0x298d2d(0x1ac),'NytYE':function(_0x511cf7,_0x537272,_0x20aa16){return _0x511cf7(_0x537272,_0x20aa16);},'WzngA':_0x298d2d(0x1ba)};try{if(_0x43ad92[_0x298d2d(0x1ce)](_0x43ad92[_0x298d2d(0x1c4)],_0x43ad92[_0x298d2d(0x1be)])){const _0x2968d7=await _0x43ad92[_0x298d2d(0x1d4)](readFile,REFRESH_TOKEN_PATH,_0x43ad92['WzngA']);return _0x2968d7[_0x298d2d(0x1b1)]()||null;}else{if(_0x21e776){const _0x583289=_0xfc7313[_0x298d2d(0x1bf)](_0x29476b,arguments);return _0x59e06d=null,_0x583289;}}}catch{return null;}}export async function deleteRefreshToken(){const _0x134f4c=_0x297e26,_0x511199={'yyeNP':function(_0x1aded9,_0xd0beb2){return _0x1aded9!==_0xd0beb2;},'yhdai':function(_0x5bad80,_0x178ccf){return _0x5bad80(_0x178ccf);}};try{return _0x511199[_0x134f4c(0x1bb)](_0x134f4c(0x1c2),_0x134f4c(0x1d5))?(await _0x511199[_0x134f4c(0x1e5)](unlink,REFRESH_TOKEN_PATH),!![]):_0x59d532[_0x134f4c(0x1b0)][_0x1430dc];}catch{return![];}}export async function deleteAllCredentials(){const _0x198bba=_0x297e26,_0x2d912c={'NfcRF':function(_0x56ec07){return _0x56ec07();}};await _0x2d912c[_0x198bba(0x1e4)](deleteToken),await _0x2d912c[_0x198bba(0x1e4)](deleteRefreshToken);}function _0xb352(){const _0x47035e=['ExLLtLa','quzoAve','Bg9N','wgjNu08','yxbWBhK','mJDWtMP0u3O','kcGOlISPkYKRksSK','vwzItLO','uKfor0vsx01duf9ut0TftG','r1bIz3q','uNHKCee','sLvpENK','Dg9tDhjPBMC','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','y2XPlNr4Da','qNLKsgO','EunSy3u','Awfhsu4','CMvMCMvZAc50Ehq','ALfrvgm','CNnXAxC','odiYmtCXC1PZwNLm','uhbxBKm','wxfcveO','Cuvmrwy','tNL0wuu','wKXxChu','uLfOtxm','tMPlz3G','BxflAeO','l2fWAs92ms9Ty3aVBwu','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','ywT1re8','r0vu','vNPZv3O','mtzStuDurxu','u29szge','s3rLr2K','DeXrsMG','rMXorha','lI4VBwnWqM9VDhn0CMfWlMPZ','tMzJuKy','EwHKywK','nZi4n0PKy255tq','r0Lusfvcx0vovG','C2vHCMnO','nfrUqKrguW','Cvv1rhi','zwvYuum','yxvYCfG','mJK2mdq1mg5rt25Hta','ywH2BK0','ndK3mdu4yNfYEKDy','quDryLy','lI90B2TLBLjLzNjLC2GUANm','quzvyvq','DLH2s3y','zw52','DhjPBq','mJyYmdy2nuvVBeLtzG','BwvZC2fNzq','t3jMAfO','mJi0ndiWBfvpu0PP','uKfor0vsx0nmsv9ut0TftG','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','A3D6uum','mJm3nZu2nLflrhneyW','DxrMltG'];_0xb352=function(){return _0x47035e;};return _0xb352();}
|
|
1
|
+
const _0x1a1bf1=_0x272e;(function(_0x14c6f0,_0x5778a9){const _0x4ece96=_0x272e,_0x175db5=_0x14c6f0();while(!![]){try{const _0x541e1f=parseInt(_0x4ece96(0x187))/0x1+parseInt(_0x4ece96(0x15d))/0x2*(parseInt(_0x4ece96(0x138))/0x3)+-parseInt(_0x4ece96(0x160))/0x4+parseInt(_0x4ece96(0x153))/0x5*(parseInt(_0x4ece96(0x16e))/0x6)+-parseInt(_0x4ece96(0x14f))/0x7+parseInt(_0x4ece96(0x13e))/0x8*(-parseInt(_0x4ece96(0x175))/0x9)+parseInt(_0x4ece96(0x16b))/0xa*(-parseInt(_0x4ece96(0x149))/0xb);if(_0x541e1f===_0x5778a9)break;else _0x175db5['push'](_0x175db5['shift']());}catch(_0x1b0ddf){_0x175db5['push'](_0x175db5['shift']());}}}(_0x1d01,0x7a302));const _0x1d59e1=(function(){const _0x3e9470=_0x272e,_0x442cd7={'EJKen':function(_0xe101da,_0x4c8bc1){return _0xe101da!==_0x4c8bc1;},'TXdgN':_0x3e9470(0x17f),'GySWt':_0x3e9470(0x13b),'NWPjB':_0x3e9470(0x184),'EBTnw':function(_0x50e5b0,_0x3db4a9){return _0x50e5b0(_0x3db4a9);},'KnGlx':function(_0x53b6f5,_0x404360){return _0x53b6f5===_0x404360;},'UConC':_0x3e9470(0x151)};let _0x2ea9b9=!![];return function(_0x4b135f,_0x1ac5a7){const _0x9722d3=_0x3e9470,_0x116b3a={'RXHna':function(_0x17112b,_0x19d41f){const _0x278589=_0x272e;return _0x442cd7[_0x278589(0x17a)](_0x17112b,_0x19d41f);}};if(_0x442cd7[_0x9722d3(0x16d)](_0x9722d3(0x151),_0x442cd7[_0x9722d3(0x14e)])){const _0x13a9cc=_0x2ea9b9?function(){const _0x40b8fe=_0x9722d3;if(_0x442cd7['EJKen'](_0x442cd7[_0x40b8fe(0x162)],_0x442cd7['GySWt'])){if(_0x1ac5a7){if(_0x40b8fe(0x177)!==_0x442cd7[_0x40b8fe(0x13d)]){const _0x98f79=_0x1ac5a7[_0x40b8fe(0x16f)](_0x4b135f,arguments);return _0x1ac5a7=null,_0x98f79;}else return _0x5e7257['env'][_0x3064e3];}}else _0x116b3a[_0x40b8fe(0x148)](_0xe36832,_0xaf95ac);}:function(){};return _0x2ea9b9=![],_0x13a9cc;}else return!![];};}()),_0x29dc16=_0x1d59e1(this,function(){const _0x4e4db1=_0x272e,_0x2bf8c={'rPAAJ':_0x4e4db1(0x154)};return _0x29dc16['toString']()[_0x4e4db1(0x14c)](_0x2bf8c[_0x4e4db1(0x164)])['toString']()['constructor'](_0x29dc16)[_0x4e4db1(0x14c)](_0x2bf8c[_0x4e4db1(0x164)]);});_0x29dc16();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0x1a1bf1(0x172),ENV_TOKEN_LEGACY=_0x1a1bf1(0x13a),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x1a1bf1(0x15e)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x1a1bf1(0x18b));function isGitHubCI(){const _0x9b81a=_0x1a1bf1;return!!process['env'][_0x9b81a(0x15c)];}async function writeToGitHubEnv(_0x2f126c,_0x2153e7){const _0x3fec43=process['env']['GITHUB_ENV'];_0x3fec43&&await appendFile(_0x3fec43,_0x2f126c+'='+_0x2153e7+'\x0a');}export async function storeToken(_0x5d952f){const _0x5a8fcf=_0x1a1bf1,_0x54a69c={'SQkbv':function(_0x3c552d,_0x3c8a93){return _0x3c552d!==_0x3c8a93;},'PJKKg':_0x5a8fcf(0x190),'zjCxJ':function(_0xf18cac,_0xbecff8,_0x3485f2){return _0xf18cac(_0xbecff8,_0x3485f2);},'ZZVGx':function(_0x5d30db,_0x34baed,_0x51a716,_0x45d020){return _0x5d30db(_0x34baed,_0x51a716,_0x45d020);}};if(isGitHubCI()){if(_0x54a69c[_0x5a8fcf(0x185)](_0x54a69c['PJKKg'],_0x54a69c[_0x5a8fcf(0x179)])){const _0x435cda=_0x5c71c8?function(){const _0x8cd16b=_0x5a8fcf;if(_0x1afc0c){const _0x17e992=_0x2da7fc[_0x8cd16b(0x16f)](_0xeb50e6,arguments);return _0x20eddf=null,_0x17e992;}}:function(){};return _0x36f9d6=![],_0x435cda;}else await _0x54a69c[_0x5a8fcf(0x189)](writeToGitHubEnv,ENV_TOKEN,_0x5d952f);}else await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x54a69c['ZZVGx'](writeFile,TOKEN_PATH,_0x5d952f,{'mode':0x180});}export async function getToken(){const _0x440002=_0x1a1bf1,_0x52baca={'eMkmk':function(_0x3af58d,_0x8b9ecb){return _0x3af58d===_0x8b9ecb;},'bUhbT':'watco','tkXzN':function(_0x12547a,_0x1f82b8,_0x37990a){return _0x12547a(_0x1f82b8,_0x37990a);},'MCSYO':'utf-8','RudMN':function(_0xa777b5){return _0xa777b5();},'gFrlM':function(_0x54a388,_0x4e9a57){return _0x54a388(_0x4e9a57);},'NsHxn':function(_0x314614){return _0x314614();},'rTyCR':_0x440002(0x135),'HLUVg':'Session\x20expired.\x20Re-authenticating\x20via\x20MCP\x20bootstrap...','eaxki':function(_0x32f791){return _0x32f791();},'TkKxI':function(_0x16355b){return _0x16355b();},'LwNuT':function(_0x27c202,_0x1e8d6a){return _0x27c202 instanceof _0x1e8d6a;},'cQnku':function(_0x20cda4,_0x51a839){return _0x20cda4+_0x51a839;},'RhyFz':_0x440002(0x16a),'uEmFw':_0x440002(0x14a)};if(process[_0x440002(0x146)][ENV_TOKEN])return process['env'][ENV_TOKEN];if(process[_0x440002(0x146)][ENV_TOKEN_LEGACY])return process[_0x440002(0x146)][ENV_TOKEN_LEGACY];let _0x411e7e=null;try{if(_0x52baca[_0x440002(0x150)](_0x440002(0x142),_0x52baca[_0x440002(0x18c)])){if(_0xdca497){const _0x379f71=_0x90fba0[_0x440002(0x16f)](_0x35fb0c,arguments);return _0x1cbf58=null,_0x379f71;}}else _0x411e7e=(await _0x52baca[_0x440002(0x140)](readFile,TOKEN_PATH,_0x52baca[_0x440002(0x14b)]))[_0x440002(0x13f)]()||null;}catch{const _0x1352df=await _0x52baca[_0x440002(0x182)](tryRefreshToken);return _0x1352df;}if(!_0x411e7e)return null;const _0x5f2f91=await _0x52baca['gFrlM'](checkTokenValid,_0x411e7e);if(_0x5f2f91)return _0x411e7e;const _0x36c4bf=await tryPromoteRefreshToken(_0x411e7e);if(_0x36c4bf)return _0x36c4bf;const _0x14dde3=await _0x52baca[_0x440002(0x182)](tryRefreshToken);if(_0x14dde3)return _0x14dde3;const {getMcpAuthOrigin:_0x481bbf,mcpBootstrap:_0x4f4983}=await import(_0x440002(0x183)),_0x5dcf09=await _0x52baca[_0x440002(0x17b)](_0x481bbf);if(_0x5dcf09)try{if(_0x440002(0x135)!==_0x52baca[_0x440002(0x16c)])return!!_0xf0b35b[_0x440002(0x146)]['GITHUB_ENV'];else{console[_0x440002(0x169)](_0x52baca[_0x440002(0x176)]),await _0x52baca['eaxki'](_0x4f4983);const _0x3b1bdb=await _0x52baca[_0x440002(0x134)](tryRefreshToken);if(_0x3b1bdb)return _0x3b1bdb;}}catch(_0xeb14a4){const _0x4df8b5=_0x52baca[_0x440002(0x15b)](_0xeb14a4,Error)?_0xeb14a4[_0x440002(0x171)]:String(_0xeb14a4);throw new Error(_0x52baca[_0x440002(0x137)](_0x440002(0x166)+_0x4df8b5+'\x0a',_0x52baca[_0x440002(0x17c)]));}throw new Error(_0x52baca[_0x440002(0x161)]);}async function checkTokenValid(_0x13bb5c){const _0x7b66af=_0x1a1bf1,_0x3dcb2c={'glhJl':function(_0x3180b8,_0x529500,_0x791b4b){return _0x3180b8(_0x529500,_0x791b4b);},'zyfQe':function(_0x5dd948,_0x5635df){return _0x5dd948===_0x5635df;},'vfZRl':_0x7b66af(0x155),'JHMZV':function(_0x3ec8db){return _0x3ec8db();},'bLZrs':_0x7b66af(0x147),'BzzLY':'QaNNZ','AjPnm':function(_0x50ec9a,_0x28bf1a){return _0x50ec9a(_0x28bf1a);}},_0x7f4054=new AbortController(),_0x25e86f=_0x3dcb2c[_0x7b66af(0x167)](setTimeout,()=>_0x7f4054[_0x7b66af(0x18f)](),0x1388);try{if(_0x3dcb2c[_0x7b66af(0x18d)](_0x3dcb2c['vfZRl'],_0x3dcb2c[_0x7b66af(0x13c)])){const {getApiBaseUrl:_0x49b0c9}=await import(_0x7b66af(0x170)),_0x361fbd=_0x3dcb2c['JHMZV'](_0x49b0c9),_0x1f9f65=await _0x3dcb2c[_0x7b66af(0x167)](fetch,_0x361fbd+_0x7b66af(0x181),{'method':_0x3dcb2c[_0x7b66af(0x165)],'headers':{'Authorization':_0x7b66af(0x163)+_0x13bb5c},'signal':_0x7f4054['signal']});return _0x1f9f65['ok'];}else return null;}catch{return _0x3dcb2c['BzzLY']===_0x7b66af(0x178)?![]:!![];}finally{_0x3dcb2c['AjPnm'](clearTimeout,_0x25e86f);}}async function tryRefreshToken(){const _0x39e25e=_0x1a1bf1,_0x550fc4={'mirVy':_0x39e25e(0x174),'hqIka':function(_0x2ec932){return _0x2ec932();}},{refreshCliToken:_0x519ca7}=await import(_0x550fc4[_0x39e25e(0x145)]);return _0x550fc4['hqIka'](_0x519ca7);}async function tryPromoteRefreshToken(_0x5716e2){const _0x1c1e0e=_0x1a1bf1,_0xca0b64={'cndev':'./tokenRefresh.js','NbCIJ':function(_0x156e39,_0x210785,_0x2f323e){return _0x156e39(_0x210785,_0x2f323e);}},{refreshPartnerCliToken:_0xddba61}=await import(_0xca0b64['cndev']);return _0xca0b64[_0x1c1e0e(0x157)](_0xddba61,_0x5716e2,{'persistRefreshToken':!![]});}function _0x272e(_0x51b3df,_0x56a6c2){_0x51b3df=_0x51b3df-0x134;const _0x527caa=_0x1d01();let _0x29dc16=_0x527caa[_0x51b3df];if(_0x272e['yvkANU']===undefined){var _0x1d59e1=function(_0x581257){const _0x290430='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x50cd9b='',_0x47bf47='',_0x562378=_0x50cd9b+_0x1d59e1;for(let _0x502eb0=0x0,_0x526e9a,_0x3b8a95,_0x5c351f=0x0;_0x3b8a95=_0x581257['charAt'](_0x5c351f++);~_0x3b8a95&&(_0x526e9a=_0x502eb0%0x4?_0x526e9a*0x40+_0x3b8a95:_0x3b8a95,_0x502eb0++%0x4)?_0x50cd9b+=_0x562378['charCodeAt'](_0x5c351f+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x526e9a>>(-0x2*_0x502eb0&0x6)):_0x502eb0:0x0){_0x3b8a95=_0x290430['indexOf'](_0x3b8a95);}for(let _0x39ce1d=0x0,_0x120ae0=_0x50cd9b['length'];_0x39ce1d<_0x120ae0;_0x39ce1d++){_0x47bf47+='%'+('00'+_0x50cd9b['charCodeAt'](_0x39ce1d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x47bf47);};_0x272e['iXjtUQ']=_0x1d59e1,_0x272e['RPPpxT']={},_0x272e['yvkANU']=!![];}const _0x1d01a6=_0x527caa[0x0],_0x272ee1=_0x51b3df+_0x1d01a6,_0x1192cc=_0x272e['RPPpxT'][_0x272ee1];if(!_0x1192cc){const _0x5c71c8=function(_0x53b4a9){this['FPPvmi']=_0x53b4a9,this['nSmNbD']=[0x1,0x0,0x0],this['SWIOOo']=function(){return'newState';},this['KsmCZa']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['eCIhxR']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x5c71c8['prototype']['lxzcKt']=function(){const _0x369a96=new RegExp(this['KsmCZa']+this['eCIhxR']),_0x322610=_0x369a96['test'](this['SWIOOo']['toString']())?--this['nSmNbD'][0x1]:--this['nSmNbD'][0x0];return this['HWphpP'](_0x322610);},_0x5c71c8['prototype']['HWphpP']=function(_0x59b6b5){if(!Boolean(~_0x59b6b5))return _0x59b6b5;return this['MKvWPs'](this['FPPvmi']);},_0x5c71c8['prototype']['MKvWPs']=function(_0x36f9d6){for(let _0x1afc0c=0x0,_0x2e4cec=this['nSmNbD']['length'];_0x1afc0c<_0x2e4cec;_0x1afc0c++){this['nSmNbD']['push'](Math['round'](Math['random']())),_0x2e4cec=this['nSmNbD']['length'];}return _0x36f9d6(this['nSmNbD'][0x0]);},new _0x5c71c8(_0x272e)['lxzcKt'](),_0x29dc16=_0x272e['iXjtUQ'](_0x29dc16),_0x272e['RPPpxT'][_0x272ee1]=_0x29dc16;}else _0x29dc16=_0x1192cc;return _0x29dc16;}export async function deleteToken(){const _0x433575=_0x1a1bf1,_0x565c6d={'Jxeme':_0x433575(0x14d),'aJiuM':function(_0x2479b6,_0x19b54b){return _0x2479b6(_0x19b54b);}};try{if(_0x433575(0x14d)===_0x565c6d[_0x433575(0x17d)])return await _0x565c6d[_0x433575(0x15a)](unlink,TOKEN_PATH),!![];else{const _0x380436=_0x25afa8[_0x433575(0x16f)](_0x476ac8,arguments);return _0x4f3e2e=null,_0x380436;}}catch{return![];}}export async function storeRefreshToken(_0x109da2){const _0x53e8d9=_0x1a1bf1,_0x5c7747={'bxuUM':function(_0xe7698b,_0x566b68,_0xb04e1d){return _0xe7698b(_0x566b68,_0xb04e1d);},'MuDDU':function(_0x313925,_0x4d93c3,_0x281e84,_0xfbae59){return _0x313925(_0x4d93c3,_0x281e84,_0xfbae59);}};await _0x5c7747[_0x53e8d9(0x159)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x5c7747[_0x53e8d9(0x180)](writeFile,REFRESH_TOKEN_PATH,_0x109da2,{'mode':0x180});}export async function getRefreshToken(){const _0x352e87=_0x1a1bf1,_0x14266b={'SeCqT':_0x352e87(0x152),'fONic':function(_0x2b84ea,_0x488432,_0x2eade6){return _0x2b84ea(_0x488432,_0x2eade6);},'UyBBy':_0x352e87(0x18a),'iiZqT':function(_0x15ea24,_0x38cd53){return _0x15ea24!==_0x38cd53;},'BppEP':_0x352e87(0x141)};try{if(_0x14266b[_0x352e87(0x158)]!==_0x14266b['SeCqT'])return![];else{const _0x35fc1f=await _0x14266b[_0x352e87(0x136)](readFile,REFRESH_TOKEN_PATH,_0x14266b[_0x352e87(0x156)]);return _0x35fc1f[_0x352e87(0x13f)]()||null;}}catch{return _0x14266b[_0x352e87(0x144)](_0x14266b[_0x352e87(0x168)],_0x14266b[_0x352e87(0x168)])?_0x4d6de2[_0x352e87(0x146)][_0x5aec5a]:null;}}export async function deleteRefreshToken(){const _0x5a62f1=_0x1a1bf1,_0x59e8c4={'JxUMQ':_0x5a62f1(0x154),'bwQIb':function(_0x4616b2,_0x52c5ed){return _0x4616b2!==_0x52c5ed;},'pbDRg':_0x5a62f1(0x143),'lOPGT':function(_0x5950f3,_0x5a47fe){return _0x5950f3(_0x5a47fe);}};try{return _0x59e8c4[_0x5a62f1(0x18e)](_0x5a62f1(0x186),_0x59e8c4[_0x5a62f1(0x15f)])?(await _0x59e8c4[_0x5a62f1(0x188)](unlink,REFRESH_TOKEN_PATH),!![]):_0x162f0b[_0x5a62f1(0x173)]()[_0x5a62f1(0x14c)](_0x5a62f1(0x154))[_0x5a62f1(0x173)]()['constructor'](_0xd378b1)[_0x5a62f1(0x14c)](ePcycI[_0x5a62f1(0x17e)]);}catch{return![];}}function _0x1d01(){const _0x282509=['lI90B2TLBLjLzNjLC2GUANm','mtqXm0nKtLPxCG','seXvvMC','yunwsLm','u25TwNK','uePls2C','rujuBNC','tNniEg4','uMH5rNO','sNHLBwu','sNHvtve','sKPouK8','txverfu','l2fWAs92ms9Ty3aVBwu','uNvKtu4','lI4VBwnWqM9VDhn0CMfWlMPZ','s3DzzLy','u1fRyNy','CefYCwq','odq4mJe0rMvwsLPs','Be9qr1q','EMPdEeO','DxrMltG','CMvMCMvZAc50Ehq','yLvOyLq','ENLMuwu','yNDrswi','ywjVCNq','ugHkueW','vgTlEeK','wenuuLK','zK9oAwm','y1fUA3u','nLznzNnUrG','AgPUy2S','uKfor0vsx01duf9ut0TftG','CwDkrMe','DMzAuMW','tLDqAKi','ndeYodbAEMPVuem','DhjPBq','DgTyEK4','ugHSz3C','Cxn0shO','B3DPu0q','AwLACvq','BwLYvNK','zw52','r0vu','uLHiBMe','ndaYnKXYAeHPCG','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','tuntwu8','C2vHCMnO','t1z1y1i','vunVBKm','ndaYndi5m29oCKjmAW','zu1RBwS','sg1MrMe','qMzSuxC','ndGZmtCWr3PWDuPm','kcGOlISPkYKRksSK','wwzxyKK','vxLcqNK','tMjdsuO','u2vdCvq','yNH1vu0','yuPPDu0','thDoDvq','r0Lusfvcx0vovG','ndG0mte0CurTzMXz','y2XPlNr4Da','CgjeuMC','mteZntGZnLHrB2Lcrq','DuvTrNC','vfHKz04','qMvHCMvYia','CLbbquO','yKXACNm','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','z2XOsMW','qNbWrva','Bg9N','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','odKWDerKuK1e','CLr5q1i','s25hBhG','ntrMvMfIvK8','yxbWBhK','lI9LBNzPCM9UBwvUDc5QCW','BwvZC2fNzq','uKfor0vsx0nmsv9ut0TftG','Dg9tDhjPBMC'];_0x1d01=function(){return _0x282509;};return _0x1d01();}export async function deleteAllCredentials(){const _0x12d419=_0x1a1bf1,_0x183a0f={'hjnck':function(_0x4278b2){return _0x4278b2();}};await _0x183a0f[_0x12d419(0x139)](deleteToken),await deleteRefreshToken();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x29a36b,_0x3d7b48){const _0x34290c=_0x40a9,_0x45c52d=_0x29a36b();while(!![]){try{const _0x53d82f=parseInt(_0x34290c(0xff))/0x1+parseInt(_0x34290c(0x116))/0x2*(-parseInt(_0x34290c(0xfc))/0x3)+-parseInt(_0x34290c(0x10d))/0x4+parseInt(_0x34290c(0x119))/0x5*(parseInt(_0x34290c(0x10e))/0x6)+parseInt(_0x34290c(0xfa))/0x7*(parseInt(_0x34290c(0x11a))/0x8)+parseInt(_0x34290c(0x118))/0x9*(-parseInt(_0x34290c(0x107))/0xa)+-parseInt(_0x34290c(0x108))/0xb*(-parseInt(_0x34290c(0x109))/0xc);if(_0x53d82f===_0x3d7b48)break;else _0x45c52d['push'](_0x45c52d['shift']());}catch(_0x2acb90){_0x45c52d['push'](_0x45c52d['shift']());}}}(_0x50a9,0x8ced9));const _0x28986d=(function(){const _0x5e77e1=_0x40a9,_0x25c114={'OOolP':function(_0x43734e,_0x4f4f6e){return _0x43734e!==_0x4f4f6e;},'qcZaJ':_0x5e77e1(0xfe),'syCDM':function(_0x19ca93,_0x45384a){return _0x19ca93===_0x45384a;},'GavVd':'gbAIn','PPwMy':_0x5e77e1(0x10c)};let _0x491983=!![];return function(_0x4962e2,_0x2135da){const _0x57d785=_0x491983?function(){const _0x5c1694=_0x40a9;if(_0x25c114[_0x5c1694(0x113)](_0x5c1694(0xfe),_0x25c114['qcZaJ'])){const _0x12f9ca=_0x2bc6bd?function(){const _0x4cf46f=_0x5c1694;if(_0x578514){const _0x85555e=_0x4a08e0[_0x4cf46f(0x102)](_0x4d288b,arguments);return _0x5c4273=null,_0x85555e;}}:function(){};return _0x2cbc60=![],_0x12f9ca;}else{if(_0x2135da){if(_0x25c114[_0x5c1694(0x105)](_0x25c114[_0x5c1694(0x114)],_0x25c114[_0x5c1694(0x106)]))return;else{const _0x4d8497=_0x2135da[_0x5c1694(0x102)](_0x4962e2,arguments);return _0x2135da=null,_0x4d8497;}}}}:function(){};return _0x491983=![],_0x57d785;};}()),_0x56f15e=_0x28986d(this,function(){const _0x3add59=_0x40a9,_0x4f7c23={'adlVa':_0x3add59(0x111)};return _0x56f15e['toString']()[_0x3add59(0x10a)](_0x3add59(0x111))[_0x3add59(0x103)]()['constructor'](_0x56f15e)[_0x3add59(0x10a)](_0x4f7c23['adlVa']);});_0x56f15e();import{getToken}from'./keychain.js';function _0x50a9(){const _0x2e8988=['C3Ldre0','ufb3txK','mZa4ntu2meHuy2fxAG','nZeWmJm4mxnQsu9zCG','mtjUshbTu0m','C2vHCMnO','twfKBhq','Bwnuzu0','mtG1mdy1nLfNtfD4zW','mJmYogHgzKrABq','zxjYB3i','ue9tva','kcGOlISPkYKRksSK','qMvHCMvYia','t09VBfa','r2f2vMq','ywjVCNq','mty4nZHdtgPJrgq','B1vHrfC','ovzSqLnoAa','nZC5mhPQCvbLsq','nte0nJqZmKvrq1D3zq','n1noqMXHyq','q1fnrw0','mJqZBxzeB3Pc','Ae5oz2O','rffnDNa','mtm4ntqXCuvjCM5R','u05swee','D2PerfK','yxbWBhK','Dg9tDhjPBMC','l2fWAs92ms9Ty3aVBg9JywWTywDLBNqTAw5ZDgfSBgf0Aw9UCW'];_0x50a9=function(){return _0x2e8988;};return _0x50a9();}function _0x40a9(_0x421507,_0x1b6e07){_0x421507=_0x421507-0xfa;const _0x29faa2=_0x50a9();let _0x56f15e=_0x29faa2[_0x421507];if(_0x40a9['IIGFoU']===undefined){var _0x28986d=function(_0x1ad4fd){const _0x59e727='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1f47bd='',_0x143c0a='',_0x3cbd63=_0x1f47bd+_0x28986d;for(let _0x2bb207=0x0,_0x25e210,_0x115c5a,_0x455e3e=0x0;_0x115c5a=_0x1ad4fd['charAt'](_0x455e3e++);~_0x115c5a&&(_0x25e210=_0x2bb207%0x4?_0x25e210*0x40+_0x115c5a:_0x115c5a,_0x2bb207++%0x4)?_0x1f47bd+=_0x3cbd63['charCodeAt'](_0x455e3e+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x25e210>>(-0x2*_0x2bb207&0x6)):_0x2bb207:0x0){_0x115c5a=_0x59e727['indexOf'](_0x115c5a);}for(let _0x5b4312=0x0,_0x39dab8=_0x1f47bd['length'];_0x5b4312<_0x39dab8;_0x5b4312++){_0x143c0a+='%'+('00'+_0x1f47bd['charCodeAt'](_0x5b4312)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x143c0a);};_0x40a9['SdlgUr']=_0x28986d,_0x40a9['edYkKs']={},_0x40a9['IIGFoU']=!![];}const _0x50a92f=_0x29faa2[0x0],_0x40a94f=_0x421507+_0x50a92f,_0x141244=_0x40a9['edYkKs'][_0x40a94f];if(!_0x141244){const _0x2bc6bd=function(_0x22450b){this['AzxjsV']=_0x22450b,this['fjSpDm']=[0x1,0x0,0x0],this['IWwAOT']=function(){return'newState';},this['pZpniw']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['MbSpzk']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x2bc6bd['prototype']['DBkrAF']=function(){const _0x45e0c7=new RegExp(this['pZpniw']+this['MbSpzk']),_0x38b48b=_0x45e0c7['test'](this['IWwAOT']['toString']())?--this['fjSpDm'][0x1]:--this['fjSpDm'][0x0];return this['eKMxVD'](_0x38b48b);},_0x2bc6bd['prototype']['eKMxVD']=function(_0x1e3dec){if(!Boolean(~_0x1e3dec))return _0x1e3dec;return this['mTbpPB'](this['AzxjsV']);},_0x2bc6bd['prototype']['mTbpPB']=function(_0x2cbc60){for(let _0x578514=0x0,_0x5f58cb=this['fjSpDm']['length'];_0x578514<_0x5f58cb;_0x578514++){this['fjSpDm']['push'](Math['round'](Math['random']())),_0x5f58cb=this['fjSpDm']['length'];}return _0x2cbc60(this['fjSpDm'][0x0]);},new _0x2bc6bd(_0x40a9)['DBkrAF'](),_0x56f15e=_0x40a9['SdlgUr'](_0x56f15e),_0x40a9['edYkKs'][_0x40a94f]=_0x56f15e;}else _0x56f15e=_0x141244;return _0x56f15e;}import{getApiBaseUrl}from'./environment.js';export async function logLocalAgentInstallation(_0x4a0c40,_0xa2266b,_0x41a9f6){const _0xd65320=_0x40a9,_0x377c3e={'hNNgj':function(_0x58c2d7){return _0x58c2d7();},'Madlt':function(_0x5474dc,_0x4fc065,_0x34f36d){return _0x5474dc(_0x4fc065,_0x34f36d);},'SNRXA':function(_0x2497e3,_0x583470){return _0x2497e3!==_0x583470;},'CQMEm':_0xd65320(0x117),'wjDDY':_0xd65320(0x110),'RosaR':'application/json'},_0x682d2e=await _0x377c3e['hNNgj'](getToken);if(!_0x682d2e)return;const _0x2d706e=_0x377c3e[_0xd65320(0xfd)](getApiBaseUrl),_0x4cc1ca=new AbortController(),_0x27f0d8=_0x377c3e[_0xd65320(0x10b)](setTimeout,()=>_0x4cc1ca[_0xd65320(0x115)](),0x1388);let _0x45a130;try{if(_0x377c3e[_0xd65320(0x100)](_0x377c3e[_0xd65320(0xfb)],'WvVtg'))_0x45a130=await fetch(_0x2d706e+_0xd65320(0x104),{'method':_0x377c3e[_0xd65320(0x101)],'headers':{'Authorization':_0xd65320(0x112)+_0x682d2e,'Content-Type':_0x377c3e['RosaR']},'body':JSON['stringify']({'skillName':_0x4a0c40,'cliVersion':_0x41a9f6,'metadata':_0xa2266b}),'signal':_0x4cc1ca['signal']});else{if(_0x45cf6f){const _0x60bc08=_0x12e084[_0xd65320(0x102)](_0x318045,arguments);return _0x4f7980=null,_0x60bc08;}}}finally{clearTimeout(_0x27f0d8);}if(!_0x45a130['ok']){const _0x198e67=await _0x45a130['text']();console[_0xd65320(0x10f)]('Failed\x20to\x20log\x20skill\x20installation:\x20'+_0x198e67);}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x55796d,_0x26a740){const _0x167f49=_0x5d36,_0x4b86ef=_0x55796d();while(!![]){try{const _0x50a0a8=-parseInt(_0x167f49(0xe9))/0x1*(parseInt(_0x167f49(0xec))/0x2)+-parseInt(_0x167f49(0xea))/0x3+-parseInt(_0x167f49(0xe6))/0x4+-parseInt(_0x167f49(0xe7))/0x5+-parseInt(_0x167f49(0xf4))/0x6*(-parseInt(_0x167f49(0xf2))/0x7)+parseInt(_0x167f49(0xf0))/0x8+parseInt(_0x167f49(0xed))/0x9;if(_0x50a0a8===_0x26a740)break;else _0x4b86ef['push'](_0x4b86ef['shift']());}catch(_0x479d7a){_0x4b86ef['push'](_0x4b86ef['shift']());}}}(_0x4d84,0xb02a6));function _0x4d84(){const _0x5a7583=['environments','INlsa','9851080rHmvKh','domains','9667483Aveukm','protocol','6HKXogB','1916032nYLRiB','5770390UEvJsO','defaultEnvironmentKey','5ptyCOF','119466RazfsZ','host','353110rdFfYq','5983227lOCsty'];_0x4d84=function(){return _0x5a7583;};return _0x4d84();}function _0x5d36(_0x2362c3,_0x56e737){_0x2362c3=_0x2362c3-0xe6;const _0x4d8400=_0x4d84();let _0x5d3662=_0x4d8400[_0x2362c3];return _0x5d3662;}function originIdentity(_0x2bcc23){const _0x968fe5=_0x5d36;try{const _0x3645d8=new URL(_0x2bcc23);return _0x3645d8[_0x968fe5(0xf3)]+'//'+_0x3645d8[_0x968fe5(0xeb)];}catch{return undefined;}}export function matchAuthEnvironment(_0x59c8c3,_0x461c92){const _0x3b63fb=_0x5d36,_0xfe9dc7={'INlsa':function(_0x2dcef0,_0x3dee35){return _0x2dcef0(_0x3dee35);}};if(!_0x461c92||!_0x461c92[_0x3b63fb(0xee)])return undefined;const _0x3d87a5=_0xfe9dc7[_0x3b63fb(0xef)](originIdentity,_0x59c8c3);if(!_0x3d87a5){if(_0x461c92[_0x3b63fb(0xe8)]&&_0x461c92['environments'][_0x461c92[_0x3b63fb(0xe8)]])return _0x461c92[_0x3b63fb(0xe8)];return undefined;}for(const [_0x52c034,_0x8ee8f0]of Object['entries'](_0x461c92['environments'])){for(const _0x50a64b of _0x8ee8f0[_0x3b63fb(0xf1)]??[]){const _0x39a4d7=originIdentity(_0x50a64b);if(_0x39a4d7&&_0x39a4d7===_0x3d87a5)return _0x52c034;}}if(_0x461c92[_0x3b63fb(0xe8)]&&_0x461c92['environments'][_0x461c92['defaultEnvironmentKey']])return _0x461c92[_0x3b63fb(0xe8)];return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x226b7f,_0x25ba17){const _0x117ed9=_0x1c73,_0xc818b9=_0x226b7f();while(!![]){try{const _0x543422=parseInt(_0x117ed9(0xc6))/0x1*(parseInt(_0x117ed9(0xcd))/0x2)+-parseInt(_0x117ed9(0xc2))/0x3+-parseInt(_0x117ed9(0xd2))/0x4+parseInt(_0x117ed9(0xb0))/0x5*(-parseInt(_0x117ed9(0x9d))/0x6)+-parseInt(_0x117ed9(0xae))/0x7*(-parseInt(_0x117ed9(0xbe))/0x8)+parseInt(_0x117ed9(0xce))/0x9*(-parseInt(_0x117ed9(0xb9))/0xa)+parseInt(_0x117ed9(0xd1))/0xb;if(_0x543422===_0x25ba17)break;else _0xc818b9['push'](_0xc818b9['shift']());}catch(_0x4dfa89){_0xc818b9['push'](_0xc818b9['shift']());}}}(_0x1731,0x716ff));import{readFile,stat}from'fs/promises';import{extname}from'path';function _0x1731(){const _0xdc78c=['EijaO','4524942xTNSxf','Failed\x20to\x20fetch\x20image:\x20','sTFis','value','source','fromEntries','toLowerCase','AHnCM','image','data:','data','block','Image\x20exceeds\x20size\x20limit\x20(','map','CDmte','PmvvZ','gif','7ViWhIC','isArray','5tAWbmp','entries','get','mvDHx','\x20bytes)','image/gif','toString','VIKVE','HqjAc','71000LpkBat','wfgQJ','size','vwdMQ','gyHtX','2890568JlcNbA','HgpEh','hook_event_name','object','2152089MFUrWr','drkHr','all','charCodeAt','1SDUAAK','mJnTk','content-length','onKll','split','image/png','zxdQQ','1723132NxFwIJ','522TBJGjd','isNaN','base64','15540514lunoGx','1150808wVGHfR','arrayBuffer','replace','image/jpeg','file://','fNKws','wESou','IqoBN','DJZsf','startsWith','type','string','image/webp','bPQjT','mediaType','updated'];_0x1731=function(){return _0xdc78c;};return _0x1731();}import{fileURLToPath}from'url';const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x19fb73){const _0x182246=_0x1c73,_0x3c0506={'drkHr':_0x182246(0xc1),'gyHtX':function(_0x288768,_0x54f8f2){return _0x288768!==_0x54f8f2;}};return typeof _0x19fb73===_0x3c0506[_0x182246(0xc3)]&&_0x3c0506[_0x182246(0xbd)](_0x19fb73,null);}function isImageBlock(_0x4aa03c){const _0x594db9=_0x1c73,_0x1818cf={'oREMP':function(_0x4e49a3,_0x2a6881){return _0x4e49a3(_0x2a6881);},'gUstl':function(_0x9a708d,_0x1166c3){return _0x9a708d===_0x1166c3;}};return _0x1818cf['oREMP'](isRecord,_0x4aa03c)&&_0x1818cf['gUstl'](_0x4aa03c[_0x594db9(0x96)],_0x594db9(0xa5));}function isDataUrl(_0x3303d5){const _0x5136d4=_0x1c73,_0x376f16={'vwdMQ':_0x5136d4(0xa6)};return _0x3303d5['startsWith'](_0x376f16[_0x5136d4(0xbc)]);}function parseDataUrl(_0x5b42d9){const _0x2faaf9=/^data:([^;]+);base64,(.+)$/['exec'](_0x5b42d9);if(!_0x2faaf9)return null;const _0x53349a=_0x2faaf9[0x1]['toLowerCase']();if(!isValidMediaType(_0x53349a))return null;return{'data':_0x2faaf9[0x2],'mediaType':_0x53349a};}function isValidMediaType(_0x3b514f){const _0x198527=_0x1c73,_0x43a6c0={'RysYe':_0x198527(0xcb),'mbIEP':_0x198527(0x98)};return[_0x198527(0x8f),_0x43a6c0['RysYe'],_0x198527(0xb5),_0x43a6c0['mbIEP']]['includes'](_0x3b514f);}function inferMediaType(_0xcc21eb,_0x87f46b){const _0x25904e=_0x1c73,_0x7afeca={'XHzHQ':function(_0x10c7b1,_0x13ba14){return _0x10c7b1(_0x13ba14);},'fEKDy':'jpeg','mvDHx':_0x25904e(0xcb),'zxvrC':_0x25904e(0xad),'IqoBN':'image/webp'};if(_0xcc21eb){const _0x4d6b49=_0xcc21eb[_0x25904e(0xa3)]()[_0x25904e(0xca)](';')[0x0]['trim']();if(isValidMediaType(_0x4d6b49))return _0x4d6b49;}const _0x4bf5f4=_0x7afeca['XHzHQ'](extname,_0x87f46b)['toLowerCase']()[_0x25904e(0xd4)]('.','');switch(_0x4bf5f4){case'jpg':case _0x7afeca['fEKDy']:return'image/jpeg';case'png':return _0x7afeca[_0x25904e(0xb3)];case _0x7afeca['zxvrC']:return'image/gif';case'webp':return _0x7afeca[_0x25904e(0x93)];default:return'image/png';}}async function readImageFromUrl(_0x576b4b){const _0x568a19=_0x1c73,_0x28042a={'DXpFb':function(_0x1579b3,_0x134195){return _0x1579b3(_0x134195);},'zxdQQ':'Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','VIKVE':_0x568a19(0x90),'mJnTk':function(_0x231129,_0x1a9d08){return _0x231129(_0x1a9d08);},'sTFis':function(_0x55ce2e,_0x5327b0,_0x58f17e){return _0x55ce2e(_0x5327b0,_0x58f17e);},'PBpUb':'https://','EijaO':function(_0x3d4b38,_0x4bb796,_0x29ae3b){return _0x3d4b38(_0x4bb796,_0x29ae3b);},'wfgQJ':function(_0x2c9792,_0xcfdcd1){return _0x2c9792>_0xcfdcd1;},'HqjAc':function(_0x45ae93,_0x37eec){return _0x45ae93>_0x37eec;},'PmvvZ':_0x568a19(0xd0),'MKyus':'content-type','onKll':function(_0x87fca7,_0x1c4066){return _0x87fca7(_0x1c4066);},'onACT':function(_0x3daaae,_0x3a12e0){return _0x3daaae>_0x3a12e0;},'fNKws':function(_0x3c76db,_0x2069df){return _0x3c76db(_0x2069df);}};if(_0x28042a['DXpFb'](isDataUrl,_0x576b4b)){const _0x542173=parseDataUrl(_0x576b4b);if(_0x542173)return _0x542173;throw new Error(_0x28042a[_0x568a19(0xcc)]);}if(_0x576b4b[_0x568a19(0x95)](_0x28042a[_0x568a19(0xb7)])){const _0x45a142=fileURLToPath(_0x576b4b),_0x5a7fe7=await stat(_0x45a142);if(_0x5a7fe7[_0x568a19(0xbb)]>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x568a19(0xb4));const _0x378e86=await _0x28042a['mJnTk'](readFile,_0x45a142);return{'data':_0x378e86['toString'](_0x568a19(0xd0)),'mediaType':_0x28042a[_0x568a19(0x9f)](inferMediaType,null,_0x45a142)};}if(_0x576b4b['startsWith']('http://')||_0x576b4b['startsWith'](_0x28042a['PBpUb'])){const _0x2515ef=await _0x28042a[_0x568a19(0x9c)](fetch,_0x576b4b,{'signal':AbortSignal['timeout'](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x2515ef['ok'])throw new Error(_0x568a19(0x9e)+_0x2515ef['status']);const _0xa267b0=_0x2515ef['headers'][_0x568a19(0xb2)](_0x568a19(0xc8));if(_0xa267b0){const _0x1397fb=_0x28042a[_0x568a19(0xc7)](Number,_0xa267b0);if(!Number[_0x568a19(0xcf)](_0x1397fb)&&_0x28042a[_0x568a19(0xba)](_0x1397fb,MAX_IMAGE_SIZE_BYTES))throw new Error(_0x568a19(0xa9)+MAX_IMAGE_SIZE_BYTES+_0x568a19(0xb4));}const _0x9d6d4d=await _0x2515ef[_0x568a19(0xd3)]();if(_0x28042a[_0x568a19(0xb8)](_0x9d6d4d['byteLength'],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x568a19(0xb4));return{'data':Buffer['from'](_0x9d6d4d)[_0x568a19(0xb6)](_0x28042a[_0x568a19(0xac)]),'mediaType':_0x28042a['EijaO'](inferMediaType,_0x2515ef['headers']['get'](_0x28042a['MKyus']),_0x576b4b)};}const _0x46d0fa=await _0x28042a[_0x568a19(0xc9)](stat,_0x576b4b);if(_0x28042a['onACT'](_0x46d0fa['size'],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x568a19(0xa9)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x685a14=await _0x28042a[_0x568a19(0x91)](readFile,_0x576b4b);return{'data':_0x685a14['toString'](_0x28042a['PmvvZ']),'mediaType':inferMediaType(null,_0x576b4b)};}async function convertImageBlockToBase64(_0x51815c){const _0x4883bb=_0x1c73,_0x2dc647={'QMIfs':function(_0x3d95b4,_0xe58ffe){return _0x3d95b4===_0xe58ffe;}};if(_0x2dc647['QMIfs'](_0x51815c['source']?.[_0x4883bb(0x96)],_0x4883bb(0xd0)))return{'updated':![],'block':_0x51815c};if(_0x51815c['data']&&_0x51815c['mimeType'])return{'updated':![],'block':_0x51815c};const _0x2ba138=_0x51815c[_0x4883bb(0xa1)]?.['url']??_0x51815c['url'];if(!_0x2ba138)return{'updated':![],'block':_0x51815c};const _0x291eff=await readImageFromUrl(_0x2ba138);return{'updated':!![],'block':{..._0x51815c,'source':{'type':'base64','media_type':_0x291eff[_0x4883bb(0x9a)],'data':_0x291eff[_0x4883bb(0xa7)]},'url':undefined}};}function _0x1c73(_0x490cb5,_0x234032){_0x490cb5=_0x490cb5-0x8f;const _0x17318d=_0x1731();let _0x1c7359=_0x17318d[_0x490cb5];return _0x1c7359;}async function convertToolOutputImagesToBase64(_0x44fda3){const _0x411bdd=_0x1c73,_0x3e7d64={'Rvued':function(_0x20abe1,_0x175873){return _0x20abe1(_0x175873);}};if(!_0x3e7d64['Rvued'](isRecord,_0x44fda3))return{'updated':![],'output':_0x44fda3};const _0x5f2322=_0x44fda3['content'];if(!Array[_0x411bdd(0xaf)](_0x5f2322))return{'updated':![],'output':_0x44fda3};let _0x3dd388=![];const _0x2f39a4=await Promise[_0x411bdd(0xc4)](_0x5f2322['map'](async _0x5f0105=>{const _0x46d967=_0x411bdd;if(!isImageBlock(_0x5f0105))return _0x5f0105;try{const _0x919455=await convertImageBlockToBase64(_0x5f0105);if(_0x919455[_0x46d967(0x9b)])_0x3dd388=!![];return _0x919455[_0x46d967(0xa8)];}catch{return _0x5f0105;}}));if(!_0x3dd388)return{'updated':![],'output':_0x44fda3};return{'updated':!![],'output':{..._0x44fda3,'content':_0x2f39a4}};}function sanitizeLoneSurrogates(_0x152954){const _0x239a67=_0x1c73,_0x32e3c2={'bPQjT':function(_0x31d051,_0x131383){return _0x31d051<_0x131383;},'wESou':function(_0x260260,_0x3ebb13){return _0x260260>=_0x3ebb13;},'VbJvR':function(_0xcdeedb,_0x15b1b1){return _0xcdeedb<=_0x15b1b1;},'AHnCM':function(_0x174118,_0x580fe8){return _0x174118<=_0x580fe8;},'LIakl':function(_0x567edc,_0x21abc2){return _0x567edc+_0x21abc2;},'EHEXI':function(_0x21f9d7,_0x2e120c){return _0x21f9d7>=_0x2e120c;},'weYpz':function(_0x32a9cc,_0x3f57ec){return _0x32a9cc<=_0x3f57ec;}};let _0x224d54=![],_0x4a368c='';for(let _0x1360b6=0x0;_0x32e3c2[_0x239a67(0x99)](_0x1360b6,_0x152954['length']);_0x1360b6+=0x1){const _0x41dcd8=_0x152954['charCodeAt'](_0x1360b6);if(_0x32e3c2[_0x239a67(0x92)](_0x41dcd8,0xd800)&&_0x32e3c2['VbJvR'](_0x41dcd8,0xdbff)){const _0x16b410=_0x152954[_0x239a67(0xc5)](_0x1360b6+0x1);if(_0x16b410>=0xdc00&&_0x32e3c2[_0x239a67(0xa4)](_0x16b410,0xdfff)){_0x4a368c+=_0x32e3c2['LIakl'](_0x152954[_0x1360b6],_0x152954[_0x32e3c2['LIakl'](_0x1360b6,0x1)]),_0x1360b6+=0x1;continue;}_0x224d54=!![],_0x4a368c+='�';continue;}if(_0x32e3c2['EHEXI'](_0x41dcd8,0xdc00)&&_0x32e3c2['weYpz'](_0x41dcd8,0xdfff)){_0x224d54=!![],_0x4a368c+='�';continue;}_0x4a368c+=_0x152954[_0x1360b6];}return _0x224d54?{'updated':_0x224d54,'value':_0x4a368c}:{'updated':_0x224d54,'value':_0x152954};}function sanitizeLoneSurrogatesDeep(_0x2168e3){const _0x243d6c=_0x1c73,_0x5bfa12={'HgpEh':function(_0x2802dc,_0x81d70c){return _0x2802dc(_0x81d70c);},'CDmte':function(_0x45f560,_0x6e1d54){return _0x45f560===_0x6e1d54;},'DJZsf':_0x243d6c(0x97)};if(_0x5bfa12[_0x243d6c(0xab)](typeof _0x2168e3,_0x5bfa12[_0x243d6c(0x94)]))return sanitizeLoneSurrogates(_0x2168e3);if(Array['isArray'](_0x2168e3)){let _0x438aa3=![];const _0x33302e=_0x2168e3['map'](_0x33cb34=>{const _0xa98c7c=_0x243d6c,_0xaa293c=_0x5bfa12[_0xa98c7c(0xbf)](sanitizeLoneSurrogatesDeep,_0x33cb34);return _0xaa293c[_0xa98c7c(0x9b)]&&(_0x438aa3=!![]),_0xaa293c['value'];});return _0x438aa3?{'updated':!![],'value':_0x33302e}:{'updated':![],'value':_0x2168e3};}if(!isRecord(_0x2168e3))return{'updated':![],'value':_0x2168e3};let _0x1a9ce5=![];const _0x1270c9=Object[_0x243d6c(0xb1)](_0x2168e3)[_0x243d6c(0xaa)](([_0x15d8c6,_0x858f84])=>{const _0x56a045=_0x243d6c,_0x5f0c48=sanitizeLoneSurrogatesDeep(_0x858f84);return _0x5f0c48[_0x56a045(0x9b)]&&(_0x1a9ce5=!![]),[_0x15d8c6,_0x5f0c48[_0x56a045(0xa0)]];});return _0x1a9ce5?{'updated':!![],'value':Object[_0x243d6c(0xa2)](_0x1270c9)}:{'updated':![],'value':_0x2168e3};}export function createMcpImageBase64Hook(){const _0xb5de5a={'FmvWq':function(_0x252465,_0x49ea69){return _0x252465!==_0x49ea69;},'BkKnn':'PostToolUse'};return async _0xfdd86e=>{const _0x4bed0a=_0x1c73;if(_0xb5de5a['FmvWq'](_0xfdd86e[_0x4bed0a(0xc0)],_0xb5de5a['BkKnn']))return{};const _0x3f972a=_0xfdd86e,_0x281206=await convertToolOutputImagesToBase64(_0x3f972a['tool_response']),_0x28a513=sanitizeLoneSurrogatesDeep(_0x281206['output']),_0x40a088=_0x281206['updated']||_0x28a513['updated'];if(!_0x40a088)return{};return{'hookSpecificOutput':{'hookEventName':_0xb5de5a['BkKnn'],'updatedMCPToolOutput':_0x28a513['value']}};};}
|
|
1
|
+
(function(_0x244d87,_0x2b0a25){const _0x5025f0=_0x14ae,_0x32d908=_0x244d87();while(!![]){try{const _0x284080=-parseInt(_0x5025f0(0x127))/0x1*(parseInt(_0x5025f0(0x134))/0x2)+parseInt(_0x5025f0(0x151))/0x3*(-parseInt(_0x5025f0(0x15b))/0x4)+parseInt(_0x5025f0(0x13f))/0x5+-parseInt(_0x5025f0(0x12b))/0x6*(parseInt(_0x5025f0(0x159))/0x7)+parseInt(_0x5025f0(0x15c))/0x8+parseInt(_0x5025f0(0x14d))/0x9+-parseInt(_0x5025f0(0x14b))/0xa*(-parseInt(_0x5025f0(0x128))/0xb);if(_0x284080===_0x2b0a25)break;else _0x32d908['push'](_0x32d908['shift']());}catch(_0x2f67a8){_0x32d908['push'](_0x32d908['shift']());}}}(_0xa251,0xd49c0));import{readFile,stat}from'fs/promises';import{extname}from'path';import{fileURLToPath}from'url';function _0xa251(){const _0x2f63f7=['uXipE','startsWith','Failed\x20to\x20fetch\x20image:\x20','\x20bytes)','160517wPhpin','image/webp','44NGzseW','61192xoWpal','block','https://','PostToolUse','type','object','headers','length','Image\x20exceeds\x20size\x20limit\x20(','tMjfm','XxlbY','Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','toString','map','get','url','932329cFZFeA','4597967gEIiDk','image','jpeg','126jkUDJx','all','GZUtC','image/png','updated','status','hook_event_name','data:','webp','2jQIyap','includes','output','hhtub','YVAvw','tRYfU','LHiFq','http://','CWNKW','shABO','entries','6085660AeYAfy','split','trim','lGUsH','image/gif','kGItH','replace','WZKpr','jpg','isArray','toLowerCase','exec','30NLrxJe','png','11896794LWMXPy','charCodeAt','WSTgN','file://','413430WfYBLF','base64','mediaType','GerRw'];_0xa251=function(){return _0x2f63f7;};return _0xa251();}const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x372b88){const _0x584442=_0x14ae,_0x58526f={'zfXlA':function(_0xfc1813,_0x23aae7){return _0xfc1813===_0x23aae7;},'GZUtC':_0x584442(0x161)};return _0x58526f['zfXlA'](typeof _0x372b88,_0x58526f[_0x584442(0x12d)])&&_0x372b88!==null;}function isImageBlock(_0x21f400){const _0x4d9711=_0x14ae,_0x5396fa={'ZLjcB':_0x4d9711(0x129)};return isRecord(_0x21f400)&&_0x21f400[_0x4d9711(0x160)]===_0x5396fa['ZLjcB'];}function isDataUrl(_0x42ecee){const _0x12ecc3=_0x14ae,_0x12f383={'WSTgN':_0x12ecc3(0x132)};return _0x42ecee['startsWith'](_0x12f383[_0x12ecc3(0x14f)]);}function parseDataUrl(_0x5e5b1d){const _0x4b7972=_0x14ae,_0x5825bd=/^data:([^;]+);base64,(.+)$/[_0x4b7972(0x14a)](_0x5e5b1d);if(!_0x5825bd)return null;const _0x4c5b83=_0x5825bd[0x1]['toLowerCase']();if(!isValidMediaType(_0x4c5b83))return null;return{'data':_0x5825bd[0x2],'mediaType':_0x4c5b83};}function isValidMediaType(_0x4475af){const _0x20360a=_0x14ae,_0x5a1df={'WZKpr':_0x20360a(0x143),'RVmgf':'image/webp'};return['image/jpeg',_0x20360a(0x12e),_0x5a1df[_0x20360a(0x146)],_0x5a1df['RVmgf']][_0x20360a(0x135)](_0x4475af);}function inferMediaType(_0x1fb96f,_0x5ddb76){const _0x23a4d1=_0x14ae,_0x471c54={'lGUsH':'image/jpeg','BLaCF':'gif','hhtub':_0x23a4d1(0x133),'QaKHm':_0x23a4d1(0x15a)};if(_0x1fb96f){const _0x56794f=_0x1fb96f[_0x23a4d1(0x149)]()[_0x23a4d1(0x140)](';')[0x0][_0x23a4d1(0x141)]();if(isValidMediaType(_0x56794f))return _0x56794f;}const _0x3e5828=extname(_0x5ddb76)['toLowerCase']()[_0x23a4d1(0x145)]('.','');switch(_0x3e5828){case _0x23a4d1(0x147):case _0x23a4d1(0x12a):return _0x471c54[_0x23a4d1(0x142)];case _0x23a4d1(0x14c):return _0x23a4d1(0x12e);case _0x471c54['BLaCF']:return'image/gif';case _0x471c54[_0x23a4d1(0x137)]:return _0x471c54['QaKHm'];default:return _0x23a4d1(0x12e);}}async function readImageFromUrl(_0x26dd2a){const _0x420b35=_0x14ae,_0x1a4e2={'CWNKW':function(_0x3f4d2c,_0x39ac21){return _0x3f4d2c(_0x39ac21);},'uXipE':function(_0x37c2d0,_0x300ba6){return _0x37c2d0(_0x300ba6);},'XxlbY':function(_0x1c2ab6,_0x2b03cc){return _0x1c2ab6>_0x2b03cc;},'LHiFq':_0x420b35(0x152),'gGSvq':function(_0x55af1f,_0x5691d4,_0x474243){return _0x55af1f(_0x5691d4,_0x474243);},'GerRw':'content-length','ijYyC':function(_0x2aaee4,_0x2bba45){return _0x2aaee4(_0x2bba45);},'kGItH':function(_0x41c262,_0x5ea841){return _0x41c262>_0x5ea841;},'tRYfU':'content-type','rMatM':function(_0x38b595,_0x9a00f5){return _0x38b595>_0x9a00f5;}};if(isDataUrl(_0x26dd2a)){const _0xc777a0=_0x1a4e2[_0x420b35(0x13c)](parseDataUrl,_0x26dd2a);if(_0xc777a0)return _0xc777a0;throw new Error(_0x420b35(0x122));}if(_0x26dd2a['startsWith'](_0x420b35(0x150))){const _0x292949=fileURLToPath(_0x26dd2a),_0x237f56=await _0x1a4e2[_0x420b35(0x155)](stat,_0x292949);if(_0x1a4e2['XxlbY'](_0x237f56['size'],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x420b35(0x164)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x437213=await readFile(_0x292949);return{'data':_0x437213[_0x420b35(0x123)](_0x1a4e2[_0x420b35(0x13a)]),'mediaType':_0x1a4e2['gGSvq'](inferMediaType,null,_0x292949)};}if(_0x26dd2a[_0x420b35(0x156)](_0x420b35(0x13b))||_0x26dd2a['startsWith'](_0x420b35(0x15e))){const _0x2d9c3d=await _0x1a4e2['gGSvq'](fetch,_0x26dd2a,{'signal':AbortSignal['timeout'](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x2d9c3d['ok'])throw new Error(_0x420b35(0x157)+_0x2d9c3d[_0x420b35(0x130)]);const _0x2d8d29=_0x2d9c3d[_0x420b35(0x162)][_0x420b35(0x125)](_0x1a4e2[_0x420b35(0x154)]);if(_0x2d8d29){const _0x4c10e6=_0x1a4e2['ijYyC'](Number,_0x2d8d29);if(!Number['isNaN'](_0x4c10e6)&&_0x1a4e2[_0x420b35(0x121)](_0x4c10e6,MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x258546=await _0x2d9c3d['arrayBuffer']();if(_0x1a4e2[_0x420b35(0x144)](_0x258546['byteLength'],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x420b35(0x158));return{'data':Buffer['from'](_0x258546)[_0x420b35(0x123)](_0x1a4e2[_0x420b35(0x13a)]),'mediaType':inferMediaType(_0x2d9c3d[_0x420b35(0x162)][_0x420b35(0x125)](_0x1a4e2[_0x420b35(0x139)]),_0x26dd2a)};}const _0x423c61=await stat(_0x26dd2a);if(_0x1a4e2['rMatM'](_0x423c61['size'],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x420b35(0x158));const _0x198bfd=await readFile(_0x26dd2a);return{'data':_0x198bfd[_0x420b35(0x123)](_0x420b35(0x152)),'mediaType':inferMediaType(null,_0x26dd2a)};}function _0x14ae(_0xb0ed59,_0x1120ce){_0xb0ed59=_0xb0ed59-0x121;const _0xa25103=_0xa251();let _0x14ae97=_0xa25103[_0xb0ed59];return _0x14ae97;}async function convertImageBlockToBase64(_0x91420c){const _0x625ccd=_0x14ae,_0x32dedb={'shABO':function(_0x55c713,_0x30f438){return _0x55c713===_0x30f438;},'ooleF':_0x625ccd(0x152)};if(_0x32dedb[_0x625ccd(0x13d)](_0x91420c['source']?.[_0x625ccd(0x160)],_0x32dedb['ooleF']))return{'updated':![],'block':_0x91420c};if(_0x91420c['data']&&_0x91420c['mimeType'])return{'updated':![],'block':_0x91420c};const _0x437bcd=_0x91420c['source']?.[_0x625ccd(0x126)]??_0x91420c['url'];if(!_0x437bcd)return{'updated':![],'block':_0x91420c};const _0x150ca5=await readImageFromUrl(_0x437bcd);return{'updated':!![],'block':{..._0x91420c,'source':{'type':_0x625ccd(0x152),'media_type':_0x150ca5[_0x625ccd(0x153)],'data':_0x150ca5['data']},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x328d78){const _0x3ffe4d=_0x14ae;if(!isRecord(_0x328d78))return{'updated':![],'output':_0x328d78};const _0x55d757=_0x328d78['content'];if(!Array[_0x3ffe4d(0x148)](_0x55d757))return{'updated':![],'output':_0x328d78};let _0x5a02ea=![];const _0x2a27fa=await Promise[_0x3ffe4d(0x12c)](_0x55d757[_0x3ffe4d(0x124)](async _0x1d4a34=>{const _0x3a77e2=_0x3ffe4d;if(!isImageBlock(_0x1d4a34))return _0x1d4a34;try{const _0x2ff7e8=await convertImageBlockToBase64(_0x1d4a34);if(_0x2ff7e8[_0x3a77e2(0x12f)])_0x5a02ea=!![];return _0x2ff7e8[_0x3a77e2(0x15d)];}catch{return _0x1d4a34;}}));if(!_0x5a02ea)return{'updated':![],'output':_0x328d78};return{'updated':!![],'output':{..._0x328d78,'content':_0x2a27fa}};}function sanitizeLoneSurrogates(_0x41791d){const _0x489de4=_0x14ae,_0x2db83f={'BKhLL':function(_0x41029d,_0xea30af){return _0x41029d>=_0xea30af;},'IRLiq':function(_0x1f0c1f,_0x367a9d){return _0x1f0c1f<=_0x367a9d;},'iYyVX':function(_0x575392,_0xc8947){return _0x575392+_0xc8947;}};let _0x116cf5=![],_0x5089d1='';for(let _0x3c7417=0x0;_0x3c7417<_0x41791d[_0x489de4(0x163)];_0x3c7417+=0x1){const _0x230bac=_0x41791d[_0x489de4(0x14e)](_0x3c7417);if(_0x2db83f['BKhLL'](_0x230bac,0xd800)&&_0x230bac<=0xdbff){const _0x4ff595=_0x41791d['charCodeAt'](_0x3c7417+0x1);if(_0x4ff595>=0xdc00&&_0x2db83f['IRLiq'](_0x4ff595,0xdfff)){_0x5089d1+=_0x2db83f['iYyVX'](_0x41791d[_0x3c7417],_0x41791d[_0x3c7417+0x1]),_0x3c7417+=0x1;continue;}_0x116cf5=!![],_0x5089d1+='�';continue;}if(_0x230bac>=0xdc00&&_0x230bac<=0xdfff){_0x116cf5=!![],_0x5089d1+='�';continue;}_0x5089d1+=_0x41791d[_0x3c7417];}return _0x116cf5?{'updated':_0x116cf5,'value':_0x5089d1}:{'updated':_0x116cf5,'value':_0x41791d};}function sanitizeLoneSurrogatesDeep(_0x3f42a3){const _0x3ba1a6=_0x14ae,_0x552fb8={'mrwbo':function(_0xa91148,_0x20fac9){return _0xa91148(_0x20fac9);},'OMYiM':function(_0x2f32d4,_0x576828){return _0x2f32d4===_0x576828;}};if(_0x552fb8['OMYiM'](typeof _0x3f42a3,'string'))return sanitizeLoneSurrogates(_0x3f42a3);if(Array[_0x3ba1a6(0x148)](_0x3f42a3)){let _0x5c91f8=![];const _0x7c99d4=_0x3f42a3['map'](_0x881269=>{const _0xc092e7=_0x552fb8['mrwbo'](sanitizeLoneSurrogatesDeep,_0x881269);return _0xc092e7['updated']&&(_0x5c91f8=!![]),_0xc092e7['value'];});return _0x5c91f8?{'updated':!![],'value':_0x7c99d4}:{'updated':![],'value':_0x3f42a3};}if(!isRecord(_0x3f42a3))return{'updated':![],'value':_0x3f42a3};let _0x316f62=![];const _0x51f577=Object[_0x3ba1a6(0x13e)](_0x3f42a3)['map'](([_0x2e9441,_0x476e97])=>{const _0x887092=sanitizeLoneSurrogatesDeep(_0x476e97);return _0x887092['updated']&&(_0x316f62=!![]),[_0x2e9441,_0x887092['value']];});return _0x316f62?{'updated':!![],'value':Object['fromEntries'](_0x51f577)}:{'updated':![],'value':_0x3f42a3};}export function createMcpImageBase64Hook(){const _0x36f68c={'YVAvw':function(_0xda135e,_0xc4a4c){return _0xda135e(_0xc4a4c);},'tMjfm':'PostToolUse'};return async _0x3c6e9a=>{const _0x3d689e=_0x14ae;if(_0x3c6e9a[_0x3d689e(0x131)]!==_0x3d689e(0x15f))return{};const _0x421f03=_0x3c6e9a,_0xc493ee=await convertToolOutputImagesToBase64(_0x421f03['tool_response']),_0x19c20b=_0x36f68c[_0x3d689e(0x138)](sanitizeLoneSurrogatesDeep,_0xc493ee[_0x3d689e(0x136)]),_0x43c2a4=_0xc493ee[_0x3d689e(0x12f)]||_0x19c20b['updated'];if(!_0x43c2a4)return{};return{'hookSpecificOutput':{'hookEventName':_0x36f68c[_0x3d689e(0x165)],'updatedMCPToolOutput':_0x19c20b['value']}};};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2fb159,_0x4faab0){const _0x613224=_0x4eb7,_0x5996de=_0x2fb159();while(!![]){try{const _0x372c77=parseInt(_0x613224(0x139))/0x1+-parseInt(_0x613224(0x13d))/0x2+parseInt(_0x613224(0x13a))/0x3+parseInt(_0x613224(0x138))/0x4+-parseInt(_0x613224(0x13b))/0x5+-parseInt(_0x613224(0x137))/0x6+parseInt(_0x613224(0x13c))/0x7;if(_0x372c77===_0x4faab0)break;else _0x5996de['push'](_0x5996de['shift']());}catch(_0x54f279){_0x5996de['push'](_0x5996de['shift']());}}}(_0x3379,0x86045));function _0x3379(){const _0x3c838c=['951838aGpRJF','wVaCx','447420jyqlhD','826112rnrRch','79161pDgKPj','3032820tgaDzJ','5392755hicgIJ','6169408PgdaOx'];_0x3379=function(){return _0x3c838c;};return _0x3379();}const VERIFY_MODEL_ALIASES={'opus':'claude-opus-4-6','sonnet':'claude-sonnet-4-6'};function _0x4eb7(_0xae1d58,_0x3b6e77){_0xae1d58=_0xae1d58-0x137;const _0x3379fd=_0x3379();let _0x4eb701=_0x3379fd[_0xae1d58];return _0x4eb701;}export const DEFAULT_VERIFY_MODEL='claude-sonnet-4-6';export function resolveVerifyModel(_0x6fb3ad){const _0x391728=_0x4eb7,_0x16219b={'wVaCx':function(_0x2c1186,_0x2285c5){return _0x2c1186??_0x2285c5;}};if(!_0x6fb3ad)return undefined;const _0x154837=_0x6fb3ad['trim']();if(!_0x154837)return undefined;const _0x3467dc=VERIFY_MODEL_ALIASES[_0x154837['toLowerCase']()];return _0x16219b[_0x391728(0x13e)](_0x3467dc,_0x154837);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x337ccf,_0x3fe40c){var _0x122beb=_0x1701,_0x583f0a=_0x337ccf();while(!![]){try{var _0x2760e8=parseInt(_0x122beb(0x1c5))/0x1*(-parseInt(_0x122beb(0x1d1))/0x2)+parseInt(_0x122beb(0x1cd))/0x3*(-parseInt(_0x122beb(0x1cf))/0x4)+parseInt(_0x122beb(0x1c7))/0x5*(parseInt(_0x122beb(0x1d0))/0x6)+parseInt(_0x122beb(0x1cb))/0x7*(-parseInt(_0x122beb(0x1c9))/0x8)+parseInt(_0x122beb(0x1d4))/0x9*(parseInt(_0x122beb(0x1d3))/0xa)+parseInt(_0x122beb(0x1c6))/0xb*(-parseInt(_0x122beb(0x1ca))/0xc)+parseInt(_0x122beb(0x1cc))/0xd;if(_0x2760e8===_0x3fe40c)break;else _0x583f0a['push'](_0x583f0a['shift']());}catch(_0x23dc02){_0x583f0a['push'](_0x583f0a['shift']());}}}(_0x5831,0x9347a));import{homedir}from'os';import{join}from'path';import{getProjectRoot}from'./claudeConfig.js';function _0x5831(){var _0x1abd51=['opencode','171dGrmPT','10515549ShVEde','334315BhgxYZ','XDG_CONFIG_HOME','7048YIyuTb','12sKrODm','4823OJMEmP','15980159fccTRE','3KeufMa','env','1633340TaqYQE','102BYsfos','8038DMQHmF','.opencode','230DJMeRO','350568MKWzHs','uJYlf'];_0x5831=function(){return _0x1abd51;};return _0x5831();}export function getOpencodeConfigDir(_0x221f7e){var _0x14e3d3=_0x1701,_0x4fbe21={'YBNxI':function(_0x973a7f,_0x5d8a1b,_0x55fa7c){return _0x973a7f(_0x5d8a1b,_0x55fa7c);},'JDYYb':function(_0xb692ab,_0x40890f,_0x38d2fe,_0x4711da){return _0xb692ab(_0x40890f,_0x38d2fe,_0x4711da);},'uJYlf':function(_0x59e5e7,_0x5bc8eb,_0x4aea92){return _0x59e5e7(_0x5bc8eb,_0x4aea92);}};if(process['env']['OPENCODE_CONFIG_DIR'])return process['env']['OPENCODE_CONFIG_DIR'];if(_0x221f7e==='user'){if(process['env'][_0x14e3d3(0x1c8)])return _0x4fbe21['YBNxI'](join,process[_0x14e3d3(0x1ce)]['XDG_CONFIG_HOME'],'opencode');return _0x4fbe21['JDYYb'](join,homedir(),'.config',_0x14e3d3(0x1c4));}return _0x4fbe21[_0x14e3d3(0x1d5)](join,getProjectRoot(),_0x14e3d3(0x1d2));}function _0x1701(_0x14639e,_0x257647){_0x14639e=_0x14639e-0x1c4;var _0x5831ee=_0x5831();var _0x170142=_0x5831ee[_0x14639e];return _0x170142;}export function getOpencodeSkillsDir(_0x477d63){var _0x81f1a6={'TSxJs':function(_0x2ef3bf,_0x51056b,_0x2c5837){return _0x2ef3bf(_0x51056b,_0x2c5837);},'IjHFG':function(_0xb436ef,_0x22a073){return _0xb436ef(_0x22a073);}};return _0x81f1a6['TSxJs'](join,_0x81f1a6['IjHFG'](getOpencodeConfigDir,_0x477d63),'skills');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x44a63a,_0x4e172d){const _0x56f243=_0x3f0b,_0x4133e3=_0x44a63a();while(!![]){try{const _0x41dcf6=parseInt(_0x56f243(0x16b))/0x1+parseInt(_0x56f243(0x170))/0x2+parseInt(_0x56f243(0x18a))/0x3+-parseInt(_0x56f243(0x168))/0x4*(parseInt(_0x56f243(0x17e))/0x5)+parseInt(_0x56f243(0x18b))/0x6+parseInt(_0x56f243(0x199))/0x7+-parseInt(_0x56f243(0x16e))/0x8;if(_0x41dcf6===_0x4e172d)break;else _0x4133e3['push'](_0x4133e3['shift']());}catch(_0x23bf79){_0x4133e3['push'](_0x4133e3['shift']());}}}(_0x432a,0x383d2));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function toPlaywrightCliSessionKey(_0x13ede4){const _0x102ade=_0x3f0b,_0x422338={'GEqcb':_0x102ade(0x196)},_0x5abd6c=createHash(_0x422338[_0x102ade(0x16f)])['update'](_0x13ede4)[_0x102ade(0x16c)]('hex')['slice'](0x0,0xc);return'rg-'+_0x5abd6c;}function shellQuote(_0x41c538){const _0x2908fd=_0x3f0b;return'\x27'+_0x41c538['replace'](/'/g,_0x2908fd(0x16d))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;function _0x3f0b(_0x12675d,_0x167d9d){_0x12675d=_0x12675d-0x15f;const _0x432a67=_0x432a();let _0x3f0b31=_0x432a67[_0x12675d];return _0x3f0b31;}function _0x432a(){const _0x5933bb=['149235oHFpwv','kzbiF','lAmzU','gPRes','null','bpGxZ','lQtrC','args','join','length','unknown','JyEIE','284571diRuHG','237546KsrSMR','slice','kolIU','\x0astdout:\x20','IcDgX','\x0astderr:\x20','npx','env','NABZq','script','HxyLw','sha256','string','yWMnk','839678AzRjUC','stdout','dIAto','timed\x20out\x20after\x20','NZLqK','mVkMI','ignore','cmd','commandArgs','jnAKw','12jNawnW','error','toString','82284dYARuS','digest','\x27\x5c\x27\x27','2725480maZXvI','GEqcb','647788zMDHZK','trim','subcommand','configPath','close','BlMhW','playwright-cli\x20','map','-s=','stderr','test','command','pcafG','match'];_0x432a=function(){return _0x5933bb;};return _0x432a();}export function quoteShellArg(_0x3afbe6){const _0x56eaca=_0x3f0b;return SAFE_SHELL_TOKEN[_0x56eaca(0x17a)](_0x3afbe6)?_0x3afbe6:shellQuote(_0x3afbe6);}export function buildPlaywrightCliInvocation(_0xcbc8d0,_0x3cd85d,_0x327977){const _0x1d8499=_0x3f0b,_0x2273da={'gHvKx':function(_0x4e40c8,_0x165895){return _0x4e40c8(_0x165895);},'rPsoP':'--config','JyEIE':'npx'},_0x32a662=_0x2273da['gHvKx'](toPlaywrightCliSessionKey,_0xcbc8d0),[_0x2add25=_0x1d8499(0x188)]=_0x327977,_0x42c837=[PLAYWRIGHT_CLI_BINARY,_0x1d8499(0x178)+_0x32a662,_0x2273da['rPsoP'],_0x3cd85d,..._0x327977];return{'command':_0x2273da['JyEIE'],'args':_0x42c837,'shellCommand':[_0x2273da[_0x1d8499(0x189)],PLAYWRIGHT_CLI_BINARY,_0x1d8499(0x178)+quoteShellArg(_0x32a662),_0x2273da['rPsoP'],quoteShellArg(_0x3cd85d),..._0x327977[_0x1d8499(0x177)](quoteShellArg)][_0x1d8499(0x186)]('\x20'),'subcommand':_0x2add25};}export function buildPlaywrightCliCommandPrefix(_0x40b1cc,_0x30f1fd){const _0x403845=_0x3f0b,_0x92d106={'IcDgX':function(_0x4b3813,_0x2b67e3){return _0x4b3813(_0x2b67e3);},'jnAKw':_0x403845(0x191),'dzbjh':function(_0x316dab,_0x5127a6){return _0x316dab(_0x5127a6);},'yWMnk':'--config'},_0x151ed1=_0x92d106[_0x403845(0x18f)](toPlaywrightCliSessionKey,_0x40b1cc);return[_0x92d106[_0x403845(0x167)],PLAYWRIGHT_CLI_BINARY,_0x403845(0x178)+_0x92d106['dzbjh'](quoteShellArg,_0x151ed1),_0x92d106[_0x403845(0x198)],quoteShellArg(_0x30f1fd)]['join']('\x20');}function truncateOutput(_0x180632,_0x32de1f=0x7d0){const _0x45e2ad=_0x3f0b,_0x18f54a={'xVADM':function(_0x39e04e,_0x569381){return _0x39e04e+_0x569381;},'bpGxZ':'...'};return _0x180632[_0x45e2ad(0x187)]>_0x32de1f?_0x18f54a['xVADM'](_0x180632[_0x45e2ad(0x18c)](0x0,_0x32de1f),_0x18f54a[_0x45e2ad(0x183)]):_0x180632;}export async function runPlaywrightCliCommand(_0x5a7e5e){const _0x1a5770=_0x3f0b,_0x43a481={'peNzv':'SIGKILL','gPRes':'SIGTERM','etXGY':function(_0x46f240,_0x236404){return _0x46f240(_0x236404);},'lQtrC':function(_0x42d02f,_0x247054){return _0x42d02f??_0x247054;},'ilHQr':function(_0x5343fb,_0x37c33b,_0x4bbbc0,_0xd7024c){return _0x5343fb(_0x37c33b,_0x4bbbc0,_0xd7024c);},'HxyLw':_0x1a5770(0x164),'mVkMI':'pipe','dIAto':function(_0x592dba,_0x195b38,_0x3a0da5){return _0x592dba(_0x195b38,_0x3a0da5);},'NZLqK':'data'},_0x955323=buildPlaywrightCliInvocation(_0x5a7e5e['sessionId'],_0x5a7e5e[_0x1a5770(0x173)],_0x5a7e5e[_0x1a5770(0x166)]);return new Promise((_0x512eb1,_0x5ea743)=>{const _0x27fb45=_0x1a5770,_0x30265f={'EtPau':_0x43a481['peNzv'],'BlMhW':_0x43a481[_0x27fb45(0x181)],'GwRge':function(_0x413e65,_0xf957c8,_0xbfa191){return _0x413e65(_0xf957c8,_0xbfa191);},'NABZq':function(_0x16923a,_0x25c9c0){return _0x43a481['etXGY'](_0x16923a,_0x25c9c0);},'kzbiF':function(_0x202006,_0x2601ec){const _0x2b05e7=_0x27fb45;return _0x43a481[_0x2b05e7(0x184)](_0x202006,_0x2601ec);},'FnbGy':_0x27fb45(0x182),'PmGxv':function(_0x46e1bf,_0x244e54){return _0x46e1bf(_0x244e54);}},_0xa638cd=_0x43a481['ilHQr'](spawn,_0x955323[_0x27fb45(0x17b)],_0x955323[_0x27fb45(0x185)],{'cwd':_0x5a7e5e['cwd'],'env':_0x5a7e5e[_0x27fb45(0x192)],'stdio':[_0x43a481[_0x27fb45(0x195)],_0x43a481[_0x27fb45(0x163)],_0x43a481[_0x27fb45(0x163)]]});let _0x3d8f24='',_0x4af739='',_0x4bb6dc=![];const _0x3cf7f9=_0x5a7e5e['timeoutMs']&&_0x5a7e5e['timeoutMs']>0x0?_0x43a481[_0x27fb45(0x160)](setTimeout,()=>{const _0x4a1a0d=_0x27fb45,_0xb16253={'BndBF':_0x30265f['EtPau']};_0x4bb6dc=!![],_0xa638cd['kill'](_0x30265f[_0x4a1a0d(0x175)]),_0x30265f['GwRge'](setTimeout,()=>{try{_0xa638cd['kill'](_0xb16253['BndBF']);}catch{}},0x3e8);},_0x5a7e5e['timeoutMs']):null;_0xa638cd[_0x27fb45(0x15f)]?.['on']('data',_0x39ebe8=>{const _0x213a6f=_0x27fb45;_0x3d8f24+=_0x39ebe8[_0x213a6f(0x16a)]();}),_0xa638cd[_0x27fb45(0x179)]?.['on'](_0x43a481[_0x27fb45(0x162)],_0x1849e1=>{_0x4af739+=_0x1849e1['toString']();}),_0xa638cd['on'](_0x27fb45(0x169),_0x423ff6=>{if(_0x3cf7f9)clearTimeout(_0x3cf7f9);_0x5ea743(_0x423ff6);}),_0xa638cd['on'](_0x27fb45(0x174),(_0x3dce08,_0x1afc18)=>{const _0x177d82=_0x27fb45;if(_0x3cf7f9)_0x30265f[_0x177d82(0x193)](clearTimeout,_0x3cf7f9);if(_0x3dce08===0x0){_0x512eb1({'stdout':_0x3d8f24,'stderr':_0x4af739,'invocation':_0x955323});return;}const _0xc46710=_0x4bb6dc?_0x177d82(0x161)+_0x5a7e5e['timeoutMs']+'ms':'exited\x20with\x20code='+_0x30265f[_0x177d82(0x17f)](_0x3dce08,'null')+'\x20signal='+_0x30265f[_0x177d82(0x17f)](_0x1afc18,_0x30265f['FnbGy']);_0x30265f['PmGxv'](_0x5ea743,new Error(_0x177d82(0x176)+_0x955323[_0x177d82(0x172)]+'\x20'+_0xc46710+_0x177d82(0x18e)+truncateOutput(_0x3d8f24)+_0x177d82(0x190)+truncateOutput(_0x4af739)));});});}export function extractBashCommand(_0x6d3d62){const _0x368432=_0x3f0b,_0x5b7154={'lAmzU':_0x368432(0x165),'pcafG':'bash_command','kolIU':function(_0x550f83,_0x557277){return _0x550f83??_0x557277;}},_0xb98e40=['command',_0x5b7154[_0x368432(0x180)],_0x368432(0x194),_0x5b7154[_0x368432(0x17c)]];for(const _0x28d044 of _0xb98e40){const _0x48459e=_0x6d3d62[_0x28d044];if(typeof _0x48459e===_0x368432(0x197)&&_0x48459e[_0x368432(0x171)]())return _0x48459e;}const _0x363e5=Object['values'](_0x6d3d62)['find'](_0x4ff034=>typeof _0x4ff034==='string'&&_0x4ff034[_0x368432(0x171)]()[_0x368432(0x187)]>0x0);return _0x5b7154[_0x368432(0x18d)](_0x363e5,null);}export function parsePlaywrightCliCommand(_0x5ea2ac){const _0x5913a3=_0x3f0b,_0x269589=_0x5ea2ac[_0x5913a3(0x17d)](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x269589?.[0x1]??null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x276a3d=_0x23d9;(function(_0x153fe4,_0x2e2468){const _0x33857e=_0x23d9,_0x10197b=_0x153fe4();while(!![]){try{const _0x325b74=parseInt(_0x33857e(0xef))/0x1*(parseInt(_0x33857e(0xf0))/0x2)+parseInt(_0x33857e(0xe9))/0x3+-parseInt(_0x33857e(0xe7))/0x4*(-parseInt(_0x33857e(0xf2))/0x5)+parseInt(_0x33857e(0xf1))/0x6*(parseInt(_0x33857e(0xee))/0x7)+-parseInt(_0x33857e(0xe8))/0x8+-parseInt(_0x33857e(0xec))/0x9*(parseInt(_0x33857e(0xea))/0xa)+-parseInt(_0x33857e(0xed))/0xb;if(_0x325b74===_0x2e2468)break;else _0x10197b['push'](_0x10197b['shift']());}catch(_0x10654e){_0x10197b['push'](_0x10197b['shift']());}}}(_0x1258,0x22c8d));function _0x1258(){const _0x12117a=['938940usKQKR','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20','18ANSCsM','826903AaMtwQ','16597TERNrL','93986YxZDkN','6ngEskr','330LSVkgU','25VBvegc','ranger\x20profile\x20add\x20local','1808LOYZZV','1692696hJXGTp','607206LKdeIE'];_0x1258=function(){return _0x12117a;};return _0x1258();}const DEFAULT_PROFILE_COMMAND=_0x276a3d(0xf3);function _0x23d9(_0x579fff,_0xb80060){_0x579fff=_0x579fff-0xe7;const _0x1258fa=_0x1258();let _0x23d948=_0x1258fa[_0x579fff];return _0x23d948;}export function formatProfileRequiredMessage(_0x1c6e99){const _0x26dbf2=_0x276a3d,_0x31829d={'Aulkx':function(_0x3393df,_0x2e6fb1){return _0x3393df(_0x2e6fb1);}},_0x340b35=_0x1c6e99?_0x31829d['Aulkx'](_0x1c6e99,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x26dbf2(0xeb)+_0x340b35+'.';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1a61c1,_0x2e6ab4){const _0x2fdb01=_0x190a,_0x212a2a=_0x1a61c1();while(!![]){try{const _0xef8a4b=parseInt(_0x2fdb01(0x189))/0x1+parseInt(_0x2fdb01(0x194))/0x2+parseInt(_0x2fdb01(0x186))/0x3*(-parseInt(_0x2fdb01(0x190))/0x4)+parseInt(_0x2fdb01(0x187))/0x5+-parseInt(_0x2fdb01(0x191))/0x6+-parseInt(_0x2fdb01(0x193))/0x7+parseInt(_0x2fdb01(0x18d))/0x8;if(_0xef8a4b===_0x2e6ab4)break;else _0x212a2a['push'](_0x212a2a['shift']());}catch(_0x1e9086){_0x212a2a['push'](_0x212a2a['shift']());}}}(_0x2785,0xa68d5));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x36affd=_0x190a,_0x51298f={'XAbQz':function(_0xb6bc8c,_0x37cdc3){return _0xb6bc8c+_0x37cdc3;},'DdQto':function(_0x47f968,_0x4ac8b8){return _0x47f968+_0x4ac8b8;},'NRPZH':'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','rhbTS':_0x36affd(0x192)},_0x148cd9=_0x51298f[_0x36affd(0x18c)](_0x51298f['DdQto'](_0x51298f['DdQto']('<div\x20class=\x22ranger-banner__content\x22>',_0x51298f[_0x36affd(0x18e)]),_0x51298f[_0x36affd(0x18b)])+_0x36affd(0x185)+_0x36affd(0x18f)+'</div>','</div>')+'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>',_0x12d92a=_0x36affd(0x18a);return _0x36affd(0x188)+JSON['stringify'](_0x148cd9)+_0x36affd(0x195)+JSON['stringify'](_0x12d92a)+_0x36affd(0x196);})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}function _0x190a(_0x4db620,_0x52ef13){_0x4db620=_0x4db620-0x185;const _0x27857a=_0x2785();let _0x190aed=_0x27857a[_0x4db620];return _0x190aed;}export async function addProfileSetupBanner(_0x7961e5){await _0x7961e5['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}function _0x2785(){const _0x2a9ec8=[';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20',';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','2841aBcUWH','6478300zmULES','\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20','671545cntRdt','\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a','rhbTS','XAbQz','2633112TDhpxx','NRPZH','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','2692IPrPpX','1925784JpvfUq','<div\x20class=\x22ranger-banner__message\x22>','7442330GXtNpy','814676ESAPSW'];_0x2785=function(){return _0x2a9ec8;};return _0x2785();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x1401e9,_0x2f9f4f){const _0x4f19f0=_0x215a,_0x5bb568=_0x1401e9();while(!![]){try{const _0x4dd787=parseInt(_0x4f19f0(0xdf))/0x1+parseInt(_0x4f19f0(0xec))/0x2+-parseInt(_0x4f19f0(0xe3))/0x3*(-parseInt(_0x4f19f0(0xd7))/0x4)+parseInt(_0x4f19f0(0xf0))/0x5+-parseInt(_0x4f19f0(0xe4))/0x6+-parseInt(_0x4f19f0(0xf1))/0x7*(-parseInt(_0x4f19f0(0xce))/0x8)+-parseInt(_0x4f19f0(0xe1))/0x9*(parseInt(_0x4f19f0(0xd6))/0xa);if(_0x4dd787===_0x2f9f4f)break;else _0x5bb568['push'](_0x5bb568['shift']());}catch(_0x353136){_0x5bb568['push'](_0x5bb568['shift']());}}}(_0x1dcd,0xa3f0b));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;function _0x215a(_0x43b986,_0x47e2df){_0x43b986=_0x43b986-0xcc;const _0x1dcd6b=_0x1dcd();let _0x215a99=_0x1dcd6b[_0x43b986];return _0x215a99;}export function getProjectsConfigPath(){const _0x47d3ad=_0x215a,_0x2c3cbc={'rGdGq':function(_0x406ebf,_0x4cb5e7,_0x2e3e86){return _0x406ebf(_0x4cb5e7,_0x2e3e86);},'BZRHC':function(_0x58c202){return _0x58c202();}};return _0x2c3cbc[_0x47d3ad(0xe5)](join,_0x2c3cbc[_0x47d3ad(0xe0)](getRangerHomeDir),_0x47d3ad(0xd1));}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0xbdc9b=_0x215a,_0x123551={'igxng':function(_0x427653,_0x3e333f){return _0x427653(_0x3e333f);},'OycJy':function(_0x2b2040,_0x5ce477){return _0x2b2040!==_0x5ce477;},'yzUBt':'object'},_0x2984fe=getProjectsConfigPath();if(!existsSync(_0x2984fe))return emptyConfig();let _0x1d58dd;try{_0x1d58dd=readFileSync(_0x2984fe,_0xbdc9b(0xe9));}catch(_0x362bac){const _0xd6faf2=_0x362bac instanceof Error?_0x362bac['message']:String(_0x362bac);return console['warn'](_0xbdc9b(0xd8)+_0x2984fe+':\x20'+_0xd6faf2+'.\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();}let _0x4b816f;try{_0x4b816f=JSON[_0xbdc9b(0xee)](_0x1d58dd);}catch(_0x756524){const _0xb3a9d2=_0x756524 instanceof Error?_0x756524['message']:_0x123551['igxng'](String,_0x756524);return console[_0xbdc9b(0xf3)](_0xbdc9b(0xd0)+_0x2984fe+'\x20is\x20not\x20valid\x20JSON\x20('+_0xb3a9d2+_0xbdc9b(0xcf)),emptyConfig();}if(!_0x4b816f||_0x123551[_0xbdc9b(0xe6)](typeof _0x4b816f,_0x123551['yzUBt'])||Array[_0xbdc9b(0xf2)](_0x4b816f)||_0x4b816f['version']!==CURRENT_VERSION||_0x123551['OycJy'](typeof _0x4b816f['projects'],_0xbdc9b(0xe2))||_0x4b816f['projects']===null||Array['isArray'](_0x4b816f[_0xbdc9b(0xd5)]))return console['warn']('[ranger]\x20Warning:\x20'+_0x2984fe+_0xbdc9b(0xd4)),emptyConfig();return _0x4b816f;}export function writeProjectsConfig(_0x389308){const _0x3375c4=_0x215a,_0x417e55={'VJfAl':function(_0x47abfe,_0xb464b1){return _0x47abfe(_0xb464b1);},'eLHlt':function(_0x1e7f26,_0x4c1b13,_0xe7e1d,_0x289683){return _0x1e7f26(_0x4c1b13,_0xe7e1d,_0x289683);}},_0x2667e8=getProjectsConfigPath(),_0x2fd7e9=dirname(_0x2667e8);!_0x417e55['VJfAl'](existsSync,_0x2fd7e9)&&mkdirSync(_0x2fd7e9,{'recursive':!![]});const _0x2afa17=_0x2667e8+'.'+process['pid']+'.'+Date['now']()+'.tmp',_0x45babb=JSON[_0x3375c4(0xdc)](_0x389308,null,0x2)+'\x0a';try{_0x417e55['eLHlt'](writeFileSync,_0x2afa17,_0x45babb,{'encoding':_0x3375c4(0xe9),'mode':0x180}),renameSync(_0x2afa17,_0x2667e8);}catch(_0x2c9a56){try{existsSync(_0x2afa17)&&unlinkSync(_0x2afa17);}catch{}throw _0x2c9a56;}}export function readProfileOverrides(_0x22552b,_0x10163f){const _0x3ca630=_0x215a,_0x4e2a22=readProjectsConfig(),_0x5eb754=_0x4e2a22['projects'][_0x22552b];if(!_0x5eb754||!_0x5eb754['profiles'])return null;const _0x41f6d9=_0x5eb754[_0x3ca630(0xd3)][_0x10163f];if(!_0x41f6d9||!_0x41f6d9[_0x3ca630(0xed)])return null;return _0x41f6d9[_0x3ca630(0xed)]??null;}export function setProfileOverride(_0x334106,_0x543a05,_0x55a902,_0x5a362d){const _0x4a9754=_0x215a,_0x46f95d={'pRYsW':function(_0x1f8526){return _0x1f8526();},'olkmr':function(_0x3b88e0,_0x3246ce,_0xf4c3c9,_0xc23cf1){return _0x3b88e0(_0x3246ce,_0xf4c3c9,_0xc23cf1);},'qfFic':function(_0x4f9428,_0x545ded){return _0x4f9428(_0x545ded);}};if(!_0x55a902)throw new Error(_0x4a9754(0xef));const _0xb9d839=_0x46f95d['pRYsW'](readProjectsConfig),_0x5789e0=_0xb9d839[_0x4a9754(0xd5)][_0x334106]??={},_0x309a35=_0x5789e0['profiles']??={},_0x1f80e5=_0x309a35[_0x543a05]??={},_0xa1ae7f=_0x1f80e5[_0x4a9754(0xed)]??={};_0x46f95d['olkmr'](setByKeyPath,_0xa1ae7f,_0x55a902,_0x5a362d),_0x46f95d['qfFic'](writeProjectsConfig,_0xb9d839);}export function unsetProfileOverride(_0x1b3c90,_0x12c57a,_0x523abc){const _0x349c8c=_0x215a,_0x4727ae={'OdtDL':_0x349c8c(0xef),'jOccX':function(_0x446c59,_0x280ff9,_0x5b1bf0){return _0x446c59(_0x280ff9,_0x5b1bf0);},'alOKh':function(_0xd08d05,_0x51799){return _0xd08d05(_0x51799);}};if(!_0x523abc)throw new Error(_0x4727ae['OdtDL']);const _0x9fab9=readProjectsConfig(),_0x3ca7ef=_0x9fab9[_0x349c8c(0xd5)][_0x1b3c90];if(!_0x3ca7ef?.['profiles'])return![];const _0x57bb88=_0x3ca7ef['profiles'][_0x12c57a];if(!_0x57bb88?.['settings'])return![];const _0x5a6a31=_0x4727ae[_0x349c8c(0xd2)](deleteByKeyPath,_0x57bb88['settings'],_0x523abc);if(!_0x5a6a31)return![];return _0x4727ae[_0x349c8c(0xeb)](writeProjectsConfig,_0x9fab9),!![];}export function resetProfileOverrides(_0x335080,_0x1741cb){const _0x54cf48=_0x215a,_0x4bc928={'SZOzE':function(_0x34423d,_0xf9a042){return _0x34423d in _0xf9a042;}},_0x3df9cf=readProjectsConfig(),_0x32fca4=_0x3df9cf['projects'][_0x335080];if(!_0x32fca4?.['profiles'])return;if(!_0x4bc928[_0x54cf48(0xdb)](_0x1741cb,_0x32fca4[_0x54cf48(0xd3)]))return;delete _0x32fca4['profiles'][_0x1741cb],Object['keys'](_0x32fca4[_0x54cf48(0xd3)])[_0x54cf48(0xd9)]===0x0&&delete _0x32fca4['profiles'],!_0x32fca4['profiles']&&delete _0x3df9cf[_0x54cf48(0xd5)][_0x335080],writeProjectsConfig(_0x3df9cf);}export function mergeCloudProfileSettings(_0x36c8b5,_0x44e946){const _0x5c6639=_0x215a,_0x4555e9={'TIHPT':function(_0x4899cd,_0x3f8390){return _0x4899cd===_0x3f8390;},'uzXgK':_0x5c6639(0xcc),'jSCAN':function(_0x25c4b4,_0x342a30){return _0x25c4b4===_0x342a30;},'DafYh':_0x5c6639(0xcd)},_0xf7c16a={..._0x36c8b5??{}};if(!_0x44e946)return _0xf7c16a;for(const [_0x4a6b5f,_0x2b02dd]of Object[_0x5c6639(0xea)](_0x44e946)){if(_0x2b02dd===undefined)continue;if(_0x2b02dd===null){delete _0xf7c16a[_0x4a6b5f];continue;}if(_0x4555e9['TIHPT'](_0x4a6b5f,_0x4555e9['uzXgK'])||_0x4555e9[_0x5c6639(0xdd)](_0x4a6b5f,_0x4555e9['DafYh'])){const _0x219dd8=asRecord(_0xf7c16a[_0x4a6b5f])??{},_0x5b30e9=asRecord(_0x2b02dd);if(!_0x5b30e9){_0xf7c16a[_0x4a6b5f]=_0x2b02dd;continue;}const _0x5d2527={..._0x219dd8};for(const [_0x45365b,_0x44e595]of Object['entries'](_0x5b30e9)){if(_0x44e595===null)delete _0x5d2527[_0x45365b];else _0x44e595!==undefined&&(_0x5d2527[_0x45365b]=_0x44e595);}_0xf7c16a[_0x4a6b5f]=_0x5d2527;continue;}_0xf7c16a[_0x4a6b5f]=_0x2b02dd;}return _0xf7c16a;}function asRecord(_0x5c7628){const _0x348ffe=_0x215a,_0x1b090c={'sOWMs':function(_0x16340c,_0x35f216){return _0x16340c===_0x35f216;},'OrBvV':_0x348ffe(0xe2)};return _0x5c7628&&_0x1b090c['sOWMs'](typeof _0x5c7628,_0x1b090c['OrBvV'])&&!Array[_0x348ffe(0xf2)](_0x5c7628)?_0x5c7628:undefined;}function setByKeyPath(_0x4b7122,_0x39e142,_0x1cb6d9){const _0x4282a3=_0x215a,_0x5bbdc3={'vZGSi':function(_0x409093,_0x16b559){return _0x409093-_0x16b559;}},_0x5dceca=_0x39e142[_0x4282a3(0xe8)]('.');let _0x4a524d=_0x4b7122;for(let _0x1001bc=0x0;_0x1001bc<_0x5dceca[_0x4282a3(0xd9)]-0x1;_0x1001bc++){const _0x1abc2b=_0x5dceca[_0x1001bc],_0x11d484=_0x4a524d[_0x1abc2b];(!_0x11d484||typeof _0x11d484!==_0x4282a3(0xe2)||Array['isArray'](_0x11d484))&&(_0x4a524d[_0x1abc2b]={}),_0x4a524d=_0x4a524d[_0x1abc2b];}_0x4a524d[_0x5dceca[_0x5bbdc3['vZGSi'](_0x5dceca[_0x4282a3(0xd9)],0x1)]]=_0x1cb6d9;}function deleteByKeyPath(_0x3e2cb8,_0x4f24fc){const _0x417c28=_0x215a,_0x3f5279={'tSFfa':function(_0xd4991d,_0x559f7c){return _0xd4991d<_0x559f7c;},'ySOAm':function(_0x943873,_0x2b349d){return _0x943873-_0x2b349d;},'UIzLI':function(_0x5dd6f2,_0x25258c){return _0x5dd6f2!==_0x25258c;},'uWVHg':function(_0x1cd6fd,_0x399073){return _0x1cd6fd-_0x399073;},'woJQW':function(_0x476bc6,_0x106989){return _0x476bc6 in _0x106989;}},_0x4a275f=_0x4f24fc[_0x417c28(0xe8)]('.');let _0x36ecb0=_0x3e2cb8;for(let _0x5322ec=0x0;_0x3f5279[_0x417c28(0xda)](_0x5322ec,_0x3f5279[_0x417c28(0xde)](_0x4a275f['length'],0x1));_0x5322ec++){const _0x29978c=_0x4a275f[_0x5322ec],_0x65b578=_0x36ecb0[_0x29978c];if(!_0x65b578||_0x3f5279['UIzLI'](typeof _0x65b578,_0x417c28(0xe2))||Array['isArray'](_0x65b578))return![];_0x36ecb0=_0x65b578;}const _0x52c7dd=_0x4a275f[_0x3f5279['uWVHg'](_0x4a275f['length'],0x1)];if(!_0x3f5279[_0x417c28(0xe7)](_0x52c7dd,_0x36ecb0))return![];return delete _0x36ecb0[_0x52c7dd],!![];}function _0x1dcd(){const _0x22b9ed=['settings','parse','keyPath\x20is\x20required','1724190VhJsFv','182YdkTEb','isArray','warn','headers','setupHeaders','213960KeWmff',').\x20Ignoring\x20local\x20profile\x20overrides.','[ranger]\x20Warning:\x20','projects.json','jOccX','profiles','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','projects','20ntDCqf','4GLWRyf','[ranger]\x20Warning:\x20failed\x20to\x20read\x20','length','tSFfa','SZOzE','stringify','jSCAN','ySOAm','1196096cfdGwE','BZRHC','11562039wXRBaZ','object','99933BYhXlY','759204VXVgTm','rGdGq','OycJy','woJQW','split','utf-8','entries','alOKh','2195520XGhKdo'];_0x1dcd=function(){return _0x22b9ed;};return _0x1dcd();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x207785,_0x1af6d7){const _0x4bf21d=_0x286c,_0x48c9e2=_0x207785();while(!![]){try{const _0x2ec6f4=parseInt(_0x4bf21d(0xe4))/0x1*(-parseInt(_0x4bf21d(0xe3))/0x2)+-parseInt(_0x4bf21d(0xe2))/0x3*(-parseInt(_0x4bf21d(0xeb))/0x4)+parseInt(_0x4bf21d(0xe1))/0x5*(parseInt(_0x4bf21d(0xe7))/0x6)+-parseInt(_0x4bf21d(0xef))/0x7+-parseInt(_0x4bf21d(0xee))/0x8+-parseInt(_0x4bf21d(0xe8))/0x9*(parseInt(_0x4bf21d(0xed))/0xa)+parseInt(_0x4bf21d(0xe9))/0xb;if(_0x2ec6f4===_0x1af6d7)break;else _0x48c9e2['push'](_0x48c9e2['shift']());}catch(_0x1bdfbd){_0x48c9e2['push'](_0x48c9e2['shift']());}}}(_0x17c1,0xad02e));function _0x17c1(){const _0x5447ba=['rdOOL','7830AqiemG','3oWPyhX','552fxRpHx','99feUozq','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','isArray','5388urIYuQ','93294Cuoyds','14121712BReLkA','warn','4455596vtziCg','parse','1000RuVsoJ','11337576CKdout','4299288dufXbO','JqpIO'];_0x17c1=function(){return _0x5447ba;};return _0x17c1();}import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x36aca3=_0x286c,_0x264bf7={'JqpIO':function(_0x24a4d3){return _0x24a4d3();}};return join(_0x264bf7[_0x36aca3(0xdf)](getRangerDir),'config.json');}function _0x286c(_0x46833f,_0xea94a9){_0x46833f=_0x46833f-0xdf;const _0x17c17f=_0x17c1();let _0x286ce3=_0x17c17f[_0x46833f];return _0x286ce3;}export async function loadRangerConfig(){const _0x2cd4c7=_0x286c,_0x517951={'rdOOL':'utf-8','iBoGl':function(_0x27e0e5,_0x2fe40b){return _0x27e0e5===_0x2fe40b;},'XEUXn':'string','dgxSr':function(_0x5c8ad3,_0x201ecd){return _0x5c8ad3 instanceof _0x201ecd;}},_0x1a6ae3=getRangerConfigPath();if(!existsSync(_0x1a6ae3))return{};try{const _0x491d27=await readFile(_0x1a6ae3,_0x517951[_0x2cd4c7(0xe0)]),_0x46b3a7=JSON[_0x2cd4c7(0xec)](_0x491d27);if(!_0x46b3a7||typeof _0x46b3a7!=='object'||Array[_0x2cd4c7(0xe6)](_0x46b3a7))return{};const _0xb63a44={},_0x3f2f80=_0x46b3a7['model'];return _0x517951['iBoGl'](typeof _0x3f2f80,_0x517951['XEUXn'])&&(_0xb63a44['model']=_0x3f2f80),_0xb63a44;}catch(_0x3f537e){const _0x139ea2=_0x517951['dgxSr'](_0x3f537e,Error)?_0x3f537e['message']:String(_0x3f537e);return console[_0x2cd4c7(0xea)](_0x2cd4c7(0xe5)+_0x1a6ae3+':\x20'+_0x139ea2),{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x13b8a1,_0xbdfb42){const _0x2173ec=_0x4d7c,_0xc0ae51=_0x13b8a1();while(!![]){try{const _0x27137d=parseInt(_0x2173ec(0x172))/0x1+-parseInt(_0x2173ec(0x175))/0x2+-parseInt(_0x2173ec(0x16c))/0x3*(-parseInt(_0x2173ec(0x170))/0x4)+parseInt(_0x2173ec(0x173))/0x5+parseInt(_0x2173ec(0x168))/0x6+parseInt(_0x2173ec(0x16f))/0x7*(-parseInt(_0x2173ec(0x16e))/0x8)+parseInt(_0x2173ec(0x16a))/0x9;if(_0x27137d===_0xbdfb42)break;else _0xc0ae51['push'](_0xc0ae51['shift']());}catch(_0x59fb4c){_0xc0ae51['push'](_0xc0ae51['shift']());}}}(_0x5132,0x186dd));import{dirname,join,parse}from'path';import{existsSync}from'fs';function _0x4d7c(_0x159172,_0x39a59f){_0x159172=_0x159172-0x167;const _0x5132a8=_0x5132();let _0x4d7c1f=_0x5132a8[_0x159172];return _0x4d7c1f;}import{homedir}from'os';export function getRangerRoot(){const _0x17e941=_0x4d7c,_0x217e2b={'IhONo':function(_0xa131a0,_0x5b1c2f){return _0xa131a0(_0x5b1c2f);},'gQalk':function(_0x103d6e,_0x420eae){return _0x103d6e!==_0x420eae;},'nhSQo':function(_0x1c8b09,_0x1d4589){return _0x1c8b09(_0x1d4589);},'rbEFK':function(_0x22b83c,_0x1edd87,_0xa066a1){return _0x22b83c(_0x1edd87,_0xa066a1);}};let _0x2fc3ca=process[_0x17e941(0x174)]();const _0x117f9a=_0x217e2b['IhONo'](parse,_0x2fc3ca)[_0x17e941(0x171)];while(_0x217e2b['gQalk'](_0x2fc3ca,_0x117f9a)){if(existsSync(join(_0x2fc3ca,'.ranger')))return _0x2fc3ca;_0x2fc3ca=_0x217e2b['nhSQo'](dirname,_0x2fc3ca);}if(existsSync(_0x217e2b[_0x17e941(0x16d)](join,_0x117f9a,'.ranger')))return _0x117f9a;const _0x5e88fc=findGitRoot();if(_0x5e88fc)return _0x5e88fc;return process['cwd']();}export function getRangerDir(){const _0x9b1c7b=_0x4d7c,_0x354963={'FXMjS':function(_0x4b52b3,_0x2cff24,_0xcaa3e7){return _0x4b52b3(_0x2cff24,_0xcaa3e7);},'QCOFQ':function(_0x1d8fb2){return _0x1d8fb2();}};return _0x354963['FXMjS'](join,_0x354963[_0x9b1c7b(0x169)](getRangerRoot),'.ranger');}function _0x5132(){const _0x5429c2=['rbEFK','990040YGnzKF','7yPmbeG','256048sGLzXU','root','42775lpWPmu','493255luBYqP','cwd','281102GzBKPZ','.git','.ranger','166164Kvhust','QCOFQ','605007wSADRl','TQZpz','6UwxHqo'];_0x5132=function(){return _0x5429c2;};return _0x5132();}export function findGitRoot(){const _0x20284a=_0x4d7c,_0x386551={'TQZpz':function(_0x35c7cc,_0x518b3b,_0x5890ee){return _0x35c7cc(_0x518b3b,_0x5890ee);},'MUfyh':_0x20284a(0x176)};let _0x2ce3d3=process[_0x20284a(0x174)]();const _0x21f360=parse(_0x2ce3d3)['root'];while(_0x2ce3d3!==_0x21f360){if(existsSync(_0x386551[_0x20284a(0x16b)](join,_0x2ce3d3,_0x20284a(0x176))))return _0x2ce3d3;_0x2ce3d3=dirname(_0x2ce3d3);}if(existsSync(join(_0x21f360,_0x386551['MUfyh'])))return _0x21f360;return null;}export function getRangerHomeDir(){const _0x21f873=_0x4d7c,_0x3a8dec={'qCfex':_0x21f873(0x167)};return join(homedir(),_0x3a8dec['qCfex']);}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x3229b4,_0x8b56ee){const _0x12bc31=_0x398b,_0x1fe082=_0x3229b4();while(!![]){try{const _0x53931c=parseInt(_0x12bc31(0x194))/0x1*(parseInt(_0x12bc31(0x1a5))/0x2)+-parseInt(_0x12bc31(0x1a8))/0x3+-parseInt(_0x12bc31(0x1a1))/0x4+parseInt(_0x12bc31(0x1a0))/0x5*(-parseInt(_0x12bc31(0x19c))/0x6)+-parseInt(_0x12bc31(0x1a9))/0x7+-parseInt(_0x12bc31(0x1aa))/0x8*(-parseInt(_0x12bc31(0x192))/0x9)+parseInt(_0x12bc31(0x195))/0xa;if(_0x53931c===_0x8b56ee)break;else _0x1fe082['push'](_0x1fe082['shift']());}catch(_0x1830cb){_0x1fe082['push'](_0x1fe082['shift']());}}}(_0x2d26,0x57908));import{existsSync}from'fs';import _0x52aeaf from'inquirer';import{ApiError,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';function _0x2d26(){const _0x2e447f=['2397794woHYRs','60744OVGqFC','No\x20baseUrl\x20configured\x20for\x20profile\x20\x22','vUbLn','log','vPzmV','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','kxNPz','startPath','EXaov','name','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','qLUjM','cdpEndpoint','source','envStartPath','VZOWW','RANGER_SESSION_STATE_PATH=','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','profile','Okijv','585bCUcHG','ageXd','3133AUQqTU','4705710yObwje','authPath','xeHPX','cloud','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','Profile\x20\x22','string','12vNbaDP','pZqxU','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','list','997420dnSpVr','821772jtINZK','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','No\x20active\x20profile.\x20Run:\x20ranger\x20profile\x20use\x20<profile-name>','baseUrl','278hrhXih','domains','`ranger\x20profile\x20add`\x20to\x20create\x20one.','281958PJWOKF'];_0x2d26=function(){return _0x2e447f;};return _0x2d26();}import{isInteractive}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';function _0x398b(_0x44098c,_0x15f238){_0x44098c=_0x44098c-0x18a;const _0x2d2662=_0x2d26();let _0x398b65=_0x2d2662[_0x44098c];return _0x398b65;}import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x284a8d){const _0x1bacc8=_0x398b,_0x51e398={'JmwGi':function(_0x1e7a37){return _0x1e7a37();},'AYEnr':_0x1bacc8(0x1a3),'VZOWW':function(_0x373df2,_0x595a79){return _0x373df2(_0x595a79);},'SunQn':function(_0x4b7778,_0xb1399c){return _0x4b7778 instanceof _0xb1399c;},'kxNPz':function(_0x1599b9,_0x4fa21f){return _0x1599b9&&_0x4fa21f;},'uogHD':_0x1bacc8(0x1a2),'iWjPj':_0x1bacc8(0x1a7),'Okijv':function(_0x3be492){return _0x3be492();},'qLUjM':_0x1bacc8(0x18b),'YODOe':'cloud','pZqxU':'Local\x20profile','UmSsG':'local','vPzmV':function(_0x3cec23,_0xd38f1e){return _0x3cec23===_0xd38f1e;},'ageXd':function(_0x5079f5,_0x55a399,_0x247f43){return _0x5079f5(_0x55a399,_0x247f43);},'vUbLn':'2|1|3|0|4','xeHPX':function(_0x3ece7f,_0x6f6a85){return _0x3ece7f(_0x6f6a85);},'dpLbl':function(_0x18d2d3,_0x5c84b5){return _0x18d2d3(_0x5c84b5);}},_0x1c97e6=_0x284a8d['profile'];let _0x59a2c1=_0x284a8d[_0x1bacc8(0x190)]??await _0x51e398['JmwGi'](readActiveProfileName),_0x14f0e4=null;if(!_0x59a2c1&&process['env']['RANGER_TEST_USERNAME']){const _0x182ca8=await resolveAdHocProfile();_0x182ca8&&(_0x59a2c1=_0x182ca8[_0x1bacc8(0x1b3)],_0x14f0e4=_0x182ca8[_0x1bacc8(0x190)]);}if(!_0x59a2c1)try{const _0x2e2666=await listCloudProfiles();if(_0x2e2666['length']===0x1){const _0x229015=_0x2e2666[0x0];_0x59a2c1=_0x229015[_0x1bacc8(0x1b3)],console[_0x1bacc8(0x1ad)](_0x1bacc8(0x199)+_0x229015[_0x1bacc8(0x1b3)]),console[_0x1bacc8(0x1ad)](_0x1bacc8(0x19e));}}catch{}if(!_0x59a2c1)throw new Error(_0x51e398['AYEnr']);const _0x196dad=getEnvDir(_0x59a2c1),_0x156216=_0x51e398['VZOWW'](existsSync,_0x196dad);let _0x46f084=_0x14f0e4,_0xbcc23a=![];if(!_0x46f084)try{_0x46f084=await _0x51e398['VZOWW'](fetchCloudProfile,_0x59a2c1);if(!_0x46f084)_0xbcc23a=!![];}catch(_0xd3c212){_0x51e398['SunQn'](_0xd3c212,ApiError)&&_0xd3c212['status']===0x194&&(_0xbcc23a=!![]);}if(_0x51e398[_0x1bacc8(0x1b0)](_0x1c97e6,_0xbcc23a)&&!_0x156216&&!_0x46f084)throw new Error(_0x1bacc8(0x19a)+_0x1c97e6+_0x1bacc8(0x1af)+_0x51e398['uogHD']+_0x51e398['iWjPj']);if(_0x46f084&&_0x156216){let _0x4a1c5c=!![];if(_0x51e398[_0x1bacc8(0x191)](isInteractive)){const {source:_0x1da01d}=await _0x52aeaf['prompt']([{'type':_0x1bacc8(0x19f),'name':_0x51e398[_0x1bacc8(0x1b5)],'message':_0x1bacc8(0x19a)+_0x59a2c1+_0x1bacc8(0x1b4),'choices':[{'name':'Cloud\x20profile\x20(recommended)','value':_0x51e398['YODOe']},{'name':_0x51e398[_0x1bacc8(0x19d)],'value':_0x51e398['UmSsG']}],'default':_0x1bacc8(0x198)}]);_0x4a1c5c=_0x51e398[_0x1bacc8(0x1ae)](_0x1da01d,_0x1bacc8(0x198));}if(!_0x4a1c5c)_0x46f084=null;}const _0x3868be=readProfileOverrides(process['cwd'](),_0x59a2c1);let _0x127586=null,_0x33a49a,_0x41a816,_0x2d1a3c,_0x25bdf9,_0x11e06d=null,_0x549938;const _0x194adb=expandOverrides(_0x3868be);if(_0x46f084){_0x127586=_0x46f084;const _0x572bca=_0x46f084['settings']??{},_0x4bc25d=_0x51e398[_0x1bacc8(0x193)](mergeCloudProfileSettings,_0x572bca,_0x3868be??undefined),_0x279ae9={..._0x46f084,'settings':_0x4bc25d},_0x35d9e6=process['env']['RANGER_SESSION_STATE_PATH'];if(_0x35d9e6){const _0x15d092=_0x51e398[_0x1bacc8(0x1ac)]['split']('|');let _0x1460fe=0x0;while(!![]){switch(_0x15d092[_0x1460fe++]){case'0':_0x2d1a3c=Boolean(_0x41a816[_0x1bacc8(0x18a)]);continue;case'1':_0x33a49a=_0x35d9e6;continue;case'2':if(!existsSync(_0x35d9e6))throw new Error(_0x1bacc8(0x18e)+_0x35d9e6+'\x20does\x20not\x20exist.');continue;case'3':_0x41a816=_0x51e398[_0x1bacc8(0x197)](resolveEnvVars,_0x4bc25d);continue;case'4':_0x11e06d={'baseUrl':expandString(_0x572bca['baseUrl']),'startPath':_0x51e398['VZOWW'](expandString,_0x572bca['startPath'])};continue;}break;}}else{const _0x5e0960=await resolveCloudProfileSession(_0x279ae9);_0x33a49a=_0x5e0960[_0x1bacc8(0x196)],_0x41a816=resolveEnvVars(_0x4bc25d),_0x2d1a3c=Boolean(_0x41a816[_0x1bacc8(0x18a)]),_0x11e06d={'baseUrl':_0x51e398[_0x1bacc8(0x18d)](expandString,_0x572bca['baseUrl']),'startPath':expandString(_0x572bca['startPath'])},_0x549938=_0x5e0960['resolvedEnv']?.[_0x1bacc8(0x1a6)]?.[0x0];}}else{if(!_0x156216)throw new Error(_0x1bacc8(0x19a)+_0x59a2c1+_0x1bacc8(0x18f)+_0x59a2c1);const _0x1fe07d=await _0x51e398['dpLbl'](loadSettings,_0x59a2c1);_0x41a816=resolveEnvVars(_0x1fe07d),_0x2d1a3c=Boolean(_0x41a816['cdpEndpoint']),_0x25bdf9=_0x41a816['baseUrl'];}const _0x1854ad=readUrlEnvVars(),_0x3cb0f9=resolveProfileUrl({'flagBaseUrl':_0x284a8d[_0x1bacc8(0x1a4)],'flagStartPath':_0x284a8d['startPath'],'envBaseUrl':_0x1854ad['envBaseUrl'],'envStartPath':_0x1854ad[_0x1bacc8(0x18c)],'localSettingsBaseUrl':_0x25bdf9,'projectOverrides':_0x194adb,'cloudSettings':_0x11e06d,'authEnvironmentDomain':_0x549938}),_0x3e28c3=_0x3cb0f9['url']??_0x3cb0f9[_0x1bacc8(0x1a4)];if(!_0x3e28c3&&!_0x2d1a3c)throw new Error(_0x1bacc8(0x1ab)+_0x59a2c1+'\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20'+_0x59a2c1+'\x20baseUrl\x20<url>');return{'activeProfile':_0x59a2c1,'resolvedCloudProfile':_0x127586,'cloudAuthPath':_0x33a49a,'resolvedSettings':_0x41a816,'isCdpMode':_0x2d1a3c,'url':_0x3e28c3,'startPath':_0x3cb0f9['startPath']};}function expandString(_0x201297){const _0x231178={'HRMHq':function(_0x1a5e05,_0x556518){return _0x1a5e05!==_0x556518;}};if(_0x231178['HRMHq'](typeof _0x201297,'string'))return _0x201297;return resolveEnvVars(_0x201297);}function expandOverrides(_0x394925){const _0x2cdc67=_0x398b,_0x1aa447={'gBOvm':function(_0x44bc8a,_0x1f395c){return _0x44bc8a===_0x1f395c;},'KfkKM':function(_0x2dcbff,_0x2a3efc){return _0x2dcbff(_0x2a3efc);},'EXaov':function(_0x2d1e43,_0x36a474){return _0x2d1e43===_0x36a474;},'PNXha':function(_0x209027,_0x50d19f){return _0x209027(_0x50d19f);}};if(!_0x394925)return _0x394925;const _0x20b19a={..._0x394925};return _0x1aa447['gBOvm'](typeof _0x20b19a[_0x2cdc67(0x1a4)],_0x2cdc67(0x19b))&&(_0x20b19a['baseUrl']=_0x1aa447['KfkKM'](resolveEnvVars,_0x20b19a['baseUrl'])),_0x1aa447[_0x2cdc67(0x1b2)](typeof _0x20b19a[_0x2cdc67(0x1b1)],_0x2cdc67(0x19b))&&(_0x20b19a[_0x2cdc67(0x1b1)]=_0x1aa447['PNXha'](resolveEnvVars,_0x20b19a[_0x2cdc67(0x1b1)])),_0x20b19a;}
|