@ranger-testing/ranger-cli 2.2.5 → 2.3.1
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/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/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/featureReportGenerator.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/git.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- 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 -0
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/reportGenerator.js +1 -1
- 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/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 -0
- package/build/commands/verifyInBrowser.js +1 -1
- package/package.json +3 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1444(){const _0xc32715=['4iLHxRu','#\x20Feature\x20Review\x20Report:\x20','numeric','None','filter','\x20verified)','Mnyse','PMzfq','prUdk','closedAt','813228HVxvPr','iAgWR','No\x20Session','checklistItemId','createdAt','blockedAt','gitBranch','-\x20**Reason:**\x20',':\x20Ready',':\x20Awaiting\x20Review','join','##\x20Description','floor','8515176GrQSAG','**Branch:**\x20','description','210610AokPUs','agentResponse','CmjqG','status','3364360hVyixm','N/A','ShsVY','iteration','closed','WjGRE','durationMs','length','blocked','gitRepoUrl','##\x20Blocking\x20Issues','completedAt','blockedReason','canceledReason','find','incomplete','###\x20','##\x20Scenario\x20Progress\x20(','https://trace.playwright.dev/?trace=','8576688wYXNqY','**:\x20','push','|\x20Session\x20|\x20Scenario\x20|\x20Status\x20|\x20Duration\x20|\x20Date\x20|','browserSessionId','toLocaleDateString','773144fcukjz','Session\x20',':\x20In\x20Progress','UvSUs','UVnlE','\x20|\x20','Completed','9660847pWXRXJ','-\x20**Blocked:**\x20','18JsICOr','currentSession','en-US','5ECbClo','substring','verified','in_progress','vhUlM'];_0x1444=function(){return _0xc32715;};return _0x1444();}(function(_0x52004d,_0x30eca0){const _0x2f2e4f=_0x57a6,_0x406b88=_0x52004d();while(!![]){try{const _0x33ead6=-parseInt(_0x2f2e4f(0x1c9))/0x1*(parseInt(_0x2f2e4f(0x1e3))/0x2)+parseInt(_0x2f2e4f(0x1d3))/0x3+-parseInt(_0x2f2e4f(0x1b8))/0x4+-parseInt(_0x2f2e4f(0x1c4))/0x5*(-parseInt(_0x2f2e4f(0x1e0))/0x6)+parseInt(_0x2f2e4f(0x1bf))/0x7+-parseInt(_0x2f2e4f(0x1b2))/0x8+parseInt(_0x2f2e4f(0x1c1))/0x9*(-parseInt(_0x2f2e4f(0x1e7))/0xa);if(_0x33ead6===_0x30eca0)break;else _0x406b88['push'](_0x406b88['shift']());}catch(_0x854fbf){_0x406b88['push'](_0x406b88['shift']());}}}(_0x1444,0xad911));function _0x57a6(_0x165380,_0x35256c){_0x165380=_0x165380-0x1a7;const _0x144443=_0x1444();let _0x57a689=_0x144443[_0x165380];return _0x57a689;}export function buildTraceViewerUrl(_0x2b9756){const _0x512df9=_0x57a6,_0x1efd68=encodeURIComponent(_0x2b9756);return _0x512df9(0x1b1)+_0x1efd68;}function getStatusEmoji(_0x50b6ff){const _0x5a231c=_0x57a6,_0x297101={'scgye':_0x5a231c(0x1ae),'ShsVY':'closed'};switch(_0x50b6ff){case _0x5a231c(0x1c6):case'completed':return'✅';case'pending':case _0x5a231c(0x1c7):return'🔄';case _0x297101['scgye']:return'🟠';case'blocked':return'🛑';case _0x297101[_0x5a231c(0x1e9)]:return'⛔';default:return'❓';}}function formatDuration(_0x3028d5){const _0x4bcc77=_0x57a6,_0x144d01={'tKQLr':function(_0x584449,_0x359c66){return _0x584449===_0x359c66;},'WjGRE':function(_0x109b2f,_0x3fe727){return _0x109b2f/_0x3fe727;}};if(_0x3028d5===null||_0x144d01['tKQLr'](_0x3028d5,undefined))return _0x4bcc77(0x1e8);if(_0x3028d5<0x3e8)return _0x3028d5+'ms';const _0x31b603=Math[_0x4bcc77(0x1df)](_0x3028d5/0x3e8);if(_0x31b603<0x3c)return _0x31b603+'s';const _0x24a0cd=Math['floor'](_0x144d01[_0x4bcc77(0x1ec)](_0x31b603,0x3c)),_0x20c983=_0x31b603%0x3c;return _0x24a0cd+'m\x20'+_0x20c983+'s';}function formatDate(_0xc976e){const _0x346099=_0x57a6,_0x4682db={'iAgWR':'numeric'};if(!_0xc976e)return _0x346099(0x1e8);return new Date(_0xc976e)[_0x346099(0x1b7)](_0x346099(0x1c3),{'year':_0x4682db[_0x346099(0x1d4)],'month':'short','day':_0x346099(0x1cb)});}export function generateFeatureReport(_0x59451e){const _0x1b4267=_0x57a6,_0x2fc886={'aveOD':'in_progress','nwBvE':_0x1b4267(0x1d5),'Mnyse':function(_0x1f987c,_0x5b23e5){return _0x1f987c(_0x5b23e5);},'MmDSU':_0x1b4267(0x1eb),'wjnXV':function(_0xd80359,_0xb05566){return _0xd80359===_0xb05566;},'UvSUs':function(_0x158c21,_0x3ba702){return _0x158c21===_0x3ba702;},'ZTLIS':_0x1b4267(0x1a7),'vhUlM':function(_0x42fe0d,_0x567720){return _0x42fe0d===_0x567720;},'prUdk':function(_0x39183d,_0x17a7d4){return _0x39183d(_0x17a7d4);},'VOVxr':_0x1b4267(0x1ae),'ErROZ':function(_0x2c6081,_0x2306f2){return _0x2c6081(_0x2306f2);},'CkNcb':function(_0x5ab17c,_0x2a7ec8){return _0x5ab17c>_0x2a7ec8;},'WuxFG':_0x1b4267(0x1a9),'IMsEa':'No\x20reason\x20provided','PMzfq':function(_0x1a1b7f,_0x35ae8c){return _0x1a1b7f>_0x35ae8c;},'UVnlE':'##\x20All\x20Verification\x20Sessions','TJdLW':_0x1b4267(0x1b5),'bYLqZ':_0x1b4267(0x1e8),'JMbte':'completed','CmjqG':'failed'},{feature:_0x15013a,stats:_0x442e80,checklistItems:_0xafccb7,sessions:_0x18d96b}=_0x59451e,_0x456a78=[];_0x456a78['push'](_0x1b4267(0x1ca)+_0x15013a['name']),_0x456a78['push']('');let _0xd07fbb,_0x1d63c3;if(_0x15013a['completedAt'])_0xd07fbb=_0x1b4267(0x1be),_0x1d63c3='✅';else{if(_0x15013a[_0x1b4267(0x1c2)]){const _0x3e500f=_0x15013a[_0x1b4267(0x1c2)]['status'];switch(_0x3e500f){case'ready':_0xd07fbb=_0x1b4267(0x1b9)+_0x15013a[_0x1b4267(0x1c2)][_0x1b4267(0x1ea)]+_0x1b4267(0x1db),_0x1d63c3='▶️';break;case _0x2fc886['aveOD']:_0xd07fbb=_0x1b4267(0x1b9)+_0x15013a['currentSession']['iteration']+_0x1b4267(0x1ba),_0x1d63c3='🔄';break;case'completed':_0xd07fbb='Session\x20'+_0x15013a['currentSession']['iteration']+_0x1b4267(0x1dc),_0x1d63c3='📊';break;default:_0xd07fbb='Unknown',_0x1d63c3='❓';}}else _0xd07fbb=_0x2fc886['nwBvE'],_0x1d63c3='⬜';}_0x456a78[_0x1b4267(0x1b4)]('**Status:**\x20'+_0x1d63c3+'\x20'+_0xd07fbb),_0x456a78[_0x1b4267(0x1b4)]('**Created:**\x20'+_0x2fc886[_0x1b4267(0x1cf)](formatDate,_0x15013a[_0x1b4267(0x1d7)]));_0x15013a['completedAt']&&_0x456a78[_0x1b4267(0x1b4)]('**Completed:**\x20'+formatDate(_0x15013a[_0x1b4267(0x1aa)]));_0x15013a[_0x1b4267(0x1a8)]&&_0x456a78['push']('**Repository:**\x20'+_0x15013a['gitRepoUrl']);_0x15013a['gitBranch']&&_0x456a78[_0x1b4267(0x1b4)](_0x1b4267(0x1e1)+_0x15013a[_0x1b4267(0x1d9)]);_0x456a78[_0x1b4267(0x1b4)]('');_0x15013a['description']&&(_0x456a78['push'](_0x1b4267(0x1de)),_0x456a78['push'](''),_0x456a78[_0x1b4267(0x1b4)](_0x15013a[_0x1b4267(0x1e2)]),_0x456a78['push'](''));const _0x55fc6b=_0xafccb7['filter'](_0x2414d8=>_0x2414d8[_0x1b4267(0x1e6)]!==_0x1b4267(0x1eb)),_0x264244=_0xafccb7['filter'](_0x25ec1e=>_0x25ec1e['status']===_0x1b4267(0x1c6))[_0x1b4267(0x1ee)];_0x456a78['push'](_0x1b4267(0x1b0)+_0x264244+'/'+_0x55fc6b[_0x1b4267(0x1ee)]+_0x1b4267(0x1ce)),_0x456a78['push']('');for(const _0x29634f of _0xafccb7){const _0x4311a7=getStatusEmoji(_0x29634f[_0x1b4267(0x1e6)]),_0x109f0b=_0x29634f['status']===_0x2fc886['MmDSU'],_0x5c04a9=_0x109f0b?'~~':'',_0x18c9ea=_0x109f0b?'~~':'';_0x456a78[_0x1b4267(0x1b4)](_0x1b4267(0x1af)+_0x4311a7+'\x20'+_0x5c04a9+_0x29634f['description']+_0x18c9ea),_0x456a78['push']('');_0x2fc886['wjnXV'](_0x29634f['status'],'verified')&&_0x29634f['verifiedAt']&&_0x456a78[_0x1b4267(0x1b4)]('-\x20**Verified:**\x20'+formatDate(_0x29634f['verifiedAt']));_0x2fc886[_0x1b4267(0x1bb)](_0x29634f['status'],_0x2fc886['ZTLIS'])&&_0x29634f[_0x1b4267(0x1d8)]&&(_0x456a78['push'](_0x1b4267(0x1c0)+formatDate(_0x29634f['blockedAt'])),_0x29634f['blockedReason']&&_0x456a78['push']('-\x20**Reason:**\x20'+_0x29634f[_0x1b4267(0x1ab)]));_0x2fc886[_0x1b4267(0x1c8)](_0x29634f[_0x1b4267(0x1e6)],'closed')&&_0x29634f[_0x1b4267(0x1d2)]&&(_0x456a78[_0x1b4267(0x1b4)]('-\x20**Closed:**\x20'+_0x2fc886[_0x1b4267(0x1d1)](formatDate,_0x29634f['closedAt'])),_0x29634f[_0x1b4267(0x1ac)]&&_0x456a78['push'](_0x1b4267(0x1da)+_0x29634f['canceledReason']));_0x29634f['status']===_0x2fc886['VOVxr']&&_0x456a78[_0x1b4267(0x1b4)]('-\x20**Status:**\x20Incomplete\x20-\x20requires\x20further\x20work');if(_0x29634f[_0x1b4267(0x1b6)]){_0x456a78[_0x1b4267(0x1b4)]('-\x20**Session:**\x20'+_0x29634f[_0x1b4267(0x1b6)]);const _0x123778=_0x18d96b[_0x1b4267(0x1ad)](_0x322c7a=>_0x322c7a['id']===_0x29634f['browserSessionId']);_0x123778&&(_0x123778['agentResponse']&&_0x456a78[_0x1b4267(0x1b4)]('-\x20**Summary:**\x20'+_0x123778[_0x1b4267(0x1e4)]),_0x123778['traceUrl']&&_0x456a78['push']('-\x20**Trace:**\x20[View\x20in\x20Playwright]('+_0x2fc886['ErROZ'](buildTraceViewerUrl,_0x123778['traceUrl'])+')'));}_0x456a78[_0x1b4267(0x1b4)]('');}const _0x2cd48f=_0xafccb7[_0x1b4267(0x1cd)](_0x31e5c1=>_0x31e5c1['status']==='blocked');if(_0x2fc886['CkNcb'](_0x2cd48f[_0x1b4267(0x1ee)],0x0)){_0x456a78['push'](_0x2fc886['WuxFG']),_0x456a78['push']('');for(const _0x38cc41 of _0x2cd48f){_0x456a78[_0x1b4267(0x1b4)]('-\x20**'+_0x38cc41[_0x1b4267(0x1e2)]+_0x1b4267(0x1b3)+(_0x38cc41[_0x1b4267(0x1ab)]||_0x2fc886['IMsEa']));}_0x456a78[_0x1b4267(0x1b4)]('');}else _0x456a78['push']('##\x20Blocking\x20Issues'),_0x456a78[_0x1b4267(0x1b4)](''),_0x456a78['push'](_0x1b4267(0x1cc)),_0x456a78[_0x1b4267(0x1b4)]('');if(_0x2fc886[_0x1b4267(0x1d0)](_0x18d96b[_0x1b4267(0x1ee)],0x0)){_0x456a78['push'](_0x2fc886[_0x1b4267(0x1bc)]),_0x456a78['push'](''),_0x456a78['push'](_0x2fc886['TJdLW']),_0x456a78[_0x1b4267(0x1b4)]('|---------|----------|--------|----------|------|');for(const _0x3fede6 of _0x18d96b){const _0x2110e3=_0x3fede6[_0x1b4267(0x1d6)]?_0xafccb7[_0x1b4267(0x1ad)](_0x10ec85=>_0x10ec85['id']===_0x3fede6['checklistItemId']):null,_0x2bd399=_0x2110e3?_0x2110e3['description'][_0x1b4267(0x1c5)](0x0,0x1e)+(_0x2fc886['CkNcb'](_0x2110e3[_0x1b4267(0x1e2)][_0x1b4267(0x1ee)],0x1e)?'...':''):_0x2fc886['bYLqZ'],_0x16c132=_0x2fc886['vhUlM'](_0x3fede6['status'],_0x2fc886['JMbte'])?'✅':_0x3fede6['status']===_0x2fc886[_0x1b4267(0x1e5)]?'❌':'🔄';_0x456a78[_0x1b4267(0x1b4)]('|\x20'+_0x3fede6['id']+'\x20|\x20'+_0x2bd399+_0x1b4267(0x1bd)+_0x16c132+'\x20'+_0x3fede6[_0x1b4267(0x1e6)]+'\x20|\x20'+formatDuration(_0x3fede6[_0x1b4267(0x1ed)])+_0x1b4267(0x1bd)+formatDate(_0x3fede6[_0x1b4267(0x1d7)])+'\x20|');}_0x456a78['push']('');}return _0x456a78[_0x1b4267(0x1dd)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x429d12=_0x3c92;(function(_0x1446f6,_0x3bd62a){const _0x434d00=_0x3c92,_0x54e218=_0x1446f6();while(!![]){try{const _0x1471ee=-parseInt(_0x434d00(0xd6))/0x1*(parseInt(_0x434d00(0xbd))/0x2)+parseInt(_0x434d00(0xd8))/0x3+-parseInt(_0x434d00(0xba))/0x4+-parseInt(_0x434d00(0xbb))/0x5+parseInt(_0x434d00(0xd7))/0x6+parseInt(_0x434d00(0xab))/0x7+-parseInt(_0x434d00(0xb9))/0x8*(-parseInt(_0x434d00(0xca))/0x9);if(_0x1471ee===_0x3bd62a)break;else _0x54e218['push'](_0x54e218['shift']());}catch(_0x4d4b15){_0x54e218['push'](_0x54e218['shift']());}}}(_0x41b6,0x345b3));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 _0x3c92(_0x1e2501,_0x2890cb){_0x1e2501=_0x1e2501-0xa0;const _0x41b6c0=_0x41b6();let _0x3c9220=_0x41b6c0[_0x1e2501];return _0x3c9220;}function readVint(_0x4f56af,_0x29523c){const _0xc73cd1=_0x3c92,_0x38ffe7={'EPEbm':function(_0x27b5ab,_0x3f0df3){return _0x27b5ab>=_0x3f0df3;},'wKkcK':function(_0x3511a1,_0x49a0db){return _0x3511a1>_0x49a0db;},'IZqck':function(_0x25d1a1,_0x51a58e){return _0x25d1a1+_0x51a58e;},'OulWL':function(_0x1cc213,_0x273a82){return _0x1cc213-_0x273a82;},'YNmQr':function(_0x9f2123,_0x1f58d3){return _0x9f2123+_0x1f58d3;}};if(_0x38ffe7['EPEbm'](_0x29523c,_0x4f56af['length']))return[0x0,0x0];const _0x5a44c3=_0x4f56af[_0x29523c];let _0x5890ae=0x1,_0x17d4b8=0x80;while(_0x5890ae<=0x8&&!(_0x5a44c3&_0x17d4b8)){_0x5890ae++,_0x17d4b8>>=0x1;}if(_0x38ffe7['wKkcK'](_0x38ffe7[_0xc73cd1(0xb7)](_0x29523c,_0x5890ae),_0x4f56af['length']))return[0x0,0x0];let _0x37d766=_0x5a44c3&_0x38ffe7['OulWL'](_0x17d4b8,0x1);for(let _0x1531b9=0x1;_0x1531b9<_0x5890ae;_0x1531b9++){_0x37d766=_0x38ffe7[_0xc73cd1(0xcf)](_0x37d766*0x100,_0x4f56af[_0x38ffe7['IZqck'](_0x29523c,_0x1531b9)]);}return[_0x37d766,_0x5890ae];}function readId(_0x3abf5a,_0xba7b79){const _0x39b5fe=_0x3c92,_0x59e133={'bZxbw':function(_0x964e7c,_0x303862){return _0x964e7c>=_0x303862;},'nCpoD':function(_0x2da4a6,_0x4fc03d){return _0x2da4a6>=_0x4fc03d;},'MyDem':function(_0x2b1d06,_0x1beff9){return _0x2b1d06>_0x1beff9;},'YKAxI':function(_0x5c83e8,_0x55293c){return _0x5c83e8+_0x55293c;},'kmBjE':function(_0x51e04a,_0x339bfa){return _0x51e04a+_0x339bfa;}};if(_0x59e133[_0x39b5fe(0xc8)](_0xba7b79,_0x3abf5a[_0x39b5fe(0xa1)]))return[0x0,0x0];const _0x2c6102=_0x3abf5a[_0xba7b79];let _0x28fc45;if(_0x59e133['nCpoD'](_0x2c6102,0x80))_0x28fc45=0x1;else{if(_0x2c6102>=0x40)_0x28fc45=0x2;else{if(_0x2c6102>=0x20)_0x28fc45=0x3;else{if(_0x2c6102>=0x10)_0x28fc45=0x4;else return[_0x2c6102,0x1];}}}if(_0x59e133[_0x39b5fe(0xb5)](_0x59e133[_0x39b5fe(0xa8)](_0xba7b79,_0x28fc45),_0x3abf5a['length']))return[0x0,0x0];let _0x234975=0x0;for(let _0x4a1a44=0x0;_0x4a1a44<_0x28fc45;_0x4a1a44++){_0x234975=_0x234975*0x100+_0x3abf5a[_0x59e133[_0x39b5fe(0xbf)](_0xba7b79,_0x4a1a44)];}return[_0x234975,_0x28fc45];}function readUint(_0x52f9c8,_0x2c3d27,_0x2974b5){const _0x29372c={'SMJYT':function(_0x3c7ec0,_0x4d4d41){return _0x3c7ec0*_0x4d4d41;}};let _0xcda53c=0x0;for(let _0x36de78=0x0;_0x36de78<_0x2974b5;_0x36de78++){_0xcda53c=_0x29372c['SMJYT'](_0xcda53c,0x100)+_0x52f9c8[_0x2c3d27+_0x36de78];}return _0xcda53c;}function isUnknownSize(_0xa4645e,_0x5230c2){const _0x4fa3e7=_0x3c92,_0x53361a={'TTRSQ':function(_0x2486ae,_0x418e97){return _0x2486ae===_0x418e97;}};return _0x53361a[_0x4fa3e7(0xc1)](_0xa4645e,Math[_0x4fa3e7(0xbe)](0x2,0x7*_0x5230c2)-0x1);}function writeId(_0x946f2c){const _0x3f6d13=_0x3c92,_0x5b7ddd={'KUXdf':function(_0x233ceb,_0x1d31ff){return _0x233ceb<=_0x1d31ff;},'yCyMA':function(_0x3a7c56,_0x57766b){return _0x3a7c56>>_0x57766b;},'bbsIg':function(_0x313215,_0x1316a0){return _0x313215&_0x1316a0;},'YlGcV':function(_0xd0c526,_0x156236){return _0xd0c526&_0x156236;},'GipHi':function(_0x579ab4,_0x3abc35){return _0x579ab4&_0x3abc35;},'zGaGP':function(_0x48c625,_0x44f717){return _0x48c625&_0x44f717;}};if(_0x5b7ddd[_0x3f6d13(0xa6)](_0x946f2c,0xff))return Buffer[_0x3f6d13(0xb0)]([_0x946f2c]);if(_0x946f2c<=0xffff)return Buffer['from']([_0x5b7ddd['yCyMA'](_0x946f2c,0x8)&0xff,_0x5b7ddd['bbsIg'](_0x946f2c,0xff)]);if(_0x946f2c<=0xffffff)return Buffer['from']([_0x5b7ddd[_0x3f6d13(0xd2)](_0x946f2c,0x10)&0xff,_0x5b7ddd['bbsIg'](_0x5b7ddd[_0x3f6d13(0xd2)](_0x946f2c,0x8),0xff),_0x946f2c&0xff]);return Buffer['from']([_0x5b7ddd[_0x3f6d13(0xdb)](_0x946f2c>>0x18,0xff),_0x5b7ddd[_0x3f6d13(0xbc)](_0x5b7ddd['yCyMA'](_0x946f2c,0x10),0xff),_0x946f2c>>0x8&0xff,_0x5b7ddd[_0x3f6d13(0xae)](_0x946f2c,0xff)]);}function writeVint(_0x3c0ab2,_0x30e15e){const _0x44f326=_0x3c92,_0xbf9ae0={'rRfoh':function(_0x3ce1a1,_0x36d4d0){return _0x3ce1a1||_0x36d4d0;},'aFngn':function(_0x1da478,_0x19071c){return _0x1da478-_0x19071c;},'NZKWr':function(_0x29aefe,_0x32a087){return _0x29aefe*_0x32a087;},'UXjhB':function(_0x82d4d3,_0x4f0343){return _0x82d4d3-_0x4f0343;},'oPUHq':function(_0x30bd26,_0x5ce36e){return _0x30bd26&_0x5ce36e;},'lsvoN':function(_0xf03b49,_0x3cd618){return _0xf03b49-_0x3cd618;}};let _0x1d5fcf=_0xbf9ae0['rRfoh'](_0x30e15e,0x1);while(_0xbf9ae0['aFngn'](Math[_0x44f326(0xbe)](0x2,_0xbf9ae0['NZKWr'](0x7,_0x1d5fcf)),0x2)<_0x3c0ab2)_0x1d5fcf++;const _0x3521a5=Buffer['alloc'](_0x1d5fcf);for(let _0x4bf1b2=_0xbf9ae0['UXjhB'](_0x1d5fcf,0x1);_0x4bf1b2>=0x0;_0x4bf1b2--){_0x3521a5[_0x4bf1b2]=_0xbf9ae0['oPUHq'](_0x3c0ab2,0xff),_0x3c0ab2=Math['floor'](_0x3c0ab2/0x100);}return _0x3521a5[0x0]|=0x1<<_0xbf9ae0[_0x44f326(0xb8)](0x8,_0x1d5fcf),_0x3521a5;}function writeFloat64(_0x2c8e5a){const _0xad79a5=Buffer['alloc'](0x8);return _0xad79a5['writeDoubleBE'](_0x2c8e5a,0x0),_0xad79a5;}function _0x41b6(){const _0x403c74=['hkXJy','TTRSQ','fixWebmDuration.js','rGIYD','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','sizeLen','uMces','offset','bZxbw','ipjeI','36juoLNW','min','iVERx','KOWfx','dataOffset','YNmQr','HITIv','exit','yCyMA','InbMx','lJLuv','ImaMZ','144973RZcPxG','1091238YKllMa','882093urvhBt','DVXAq','argv','YlGcV','wJYND','length','log','dataSize','BCDMZ','concat','KUXdf','baNdW','YKAxI','slice','vLNIv','1577002Eycyfu','Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','bZTYK','zGaGP','Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>','from','error','VxBMo','UmNmz','vTtwt','MyDem','HFiOZ','IZqck','lsvoN','573256UQorAX','1563772aqGGkX','1187255CbjiIo','GipHi','2SeuIds','pow','kmBjE'];_0x41b6=function(){return _0x403c74;};return _0x41b6();}function writeVoid(_0x219163){const _0x208534=_0x3c92,_0x376b2f={'siJdN':function(_0x6a38a1,_0x143600){return _0x6a38a1<=_0x143600;},'xNFce':function(_0x4c7d67,_0x5109c0){return _0x4c7d67-_0x5109c0;},'apimZ':function(_0x12ef96,_0x234079){return _0x12ef96>=_0x234079;},'baNdW':function(_0x19c580,_0x50c4e0){return _0x19c580-_0x50c4e0;},'hkXJy':function(_0x4df2ea,_0x283e51){return _0x4df2ea*_0x283e51;},'HFiOZ':function(_0x1d33d3,_0x208fcc,_0x17bc5c){return _0x1d33d3(_0x208fcc,_0x17bc5c);}};for(let _0x2d60ce=0x1;_0x376b2f['siJdN'](_0x2d60ce,0x8);_0x2d60ce++){const _0x38d1c4=_0x376b2f['xNFce'](_0x219163,0x1)-_0x2d60ce;if(_0x376b2f['apimZ'](_0x38d1c4,0x0)&&_0x376b2f['siJdN'](_0x38d1c4,_0x376b2f[_0x208534(0xa7)](Math[_0x208534(0xbe)](0x2,_0x376b2f[_0x208534(0xc0)](0x7,_0x2d60ce)),0x2)))return Buffer['concat']([Buffer[_0x208534(0xb0)]([ID_VOID]),_0x376b2f[_0x208534(0xb6)](writeVint,_0x38d1c4,_0x2d60ce),Buffer['alloc'](_0x38d1c4)]);}return Buffer['alloc'](0x0);}function findElement(_0xc8438d,_0x16010f,_0x2cfbbd,_0x5a1edb){const _0x554b7d={'oQOOO':function(_0x4fd24b,_0x4b88f8,_0x11486e){return _0x4fd24b(_0x4b88f8,_0x11486e);},'hLwXC':function(_0x2713cb,_0x569e31){return _0x2713cb+_0x569e31;},'xKRZC':function(_0x23cc67,_0x44ffb8){return _0x23cc67+_0x44ffb8;},'KMHlL':function(_0xa1d91a,_0x1bae20,_0x43f757){return _0xa1d91a(_0x1bae20,_0x43f757);},'bbRoI':function(_0x1a4397,_0x4af96d){return _0x1a4397+_0x4af96d;},'HRSpk':function(_0x21ea5c,_0x389acb){return _0x21ea5c+_0x389acb;}};let _0x5e268a=_0x16010f;while(_0x5e268a<_0x2cfbbd){const [_0x1090bc,_0x58368a]=_0x554b7d['oQOOO'](readId,_0xc8438d,_0x5e268a),[_0x44d9cb,_0x229a38]=readVint(_0xc8438d,_0x554b7d['hLwXC'](_0x5e268a,_0x58368a));if(_0x1090bc===_0x5a1edb)return{'offset':_0x5e268a,'idLen':_0x58368a,'sizeLen':_0x229a38,'dataSize':_0x44d9cb,'dataOffset':_0x554b7d['xKRZC'](_0x554b7d['hLwXC'](_0x5e268a,_0x58368a),_0x229a38)};if(_0x554b7d['KMHlL'](isUnknownSize,_0x44d9cb,_0x229a38))break;_0x5e268a+=_0x554b7d['bbRoI'](_0x554b7d['HRSpk'](_0x58368a,_0x229a38),_0x44d9cb);}return null;}function computeDurationMs(_0x69289a,_0x132706){const _0x2d1614=_0x3c92,_0x72cdfa={'InbMx':function(_0xfbada3,_0x336578){return _0xfbada3<_0x336578;},'HITIv':function(_0x386687,_0x71f467,_0x1a87ae){return _0x386687(_0x71f467,_0x1a87ae);},'rCIpG':function(_0x20484a,_0x3b8136){return _0x20484a-_0x3b8136;},'wKnvX':function(_0x4f564d,_0x4a8b47,_0x1e397e){return _0x4f564d(_0x4a8b47,_0x1e397e);},'DscjT':function(_0x5baf1a,_0x461c2e){return _0x5baf1a+_0x461c2e;},'TLLsa':function(_0x4683ed,_0x563bf5,_0x735a74){return _0x4683ed(_0x563bf5,_0x735a74);},'vLNIv':function(_0x5c1407,_0x15f9ec){return _0x5c1407+_0x15f9ec;},'BHJQh':function(_0x60efe6,_0x3b84e9){return _0x60efe6+_0x3b84e9;},'oPddm':function(_0x43e347,_0xdfc2c9,_0x51fb04,_0x33938d){return _0x43e347(_0xdfc2c9,_0x51fb04,_0x33938d);},'UirbU':function(_0x28e2ba,_0x5895ba){return _0x28e2ba===_0x5895ba;},'uyKHj':function(_0x38f261,_0x2138a5){return _0x38f261/_0x2138a5;},'Jfelg':function(_0x2ef4ab,_0x1904b4){return _0x2ef4ab+_0x1904b4;},'vTtwt':function(_0x12cd49,_0x4a0b43){return _0x12cd49>_0x4a0b43;}};let _0xf252ff=0x0;const _0x26c421=Buffer[_0x2d1614(0xb0)]([0x1f,0x43,0xb6,0x75]);let _0xbd5f40=_0x69289a['indexOf'](_0x26c421);if(_0xbd5f40===-0x1)return 0x0;while(_0x72cdfa[_0x2d1614(0xd3)](_0xbd5f40,_0x69289a['length'])){const [_0x311f5b,_0x467408]=readId(_0x69289a,_0xbd5f40);if(_0x311f5b!==ID_CLUSTER)break;const [_0x271d87,_0xf1620b]=_0x72cdfa[_0x2d1614(0xd0)](readVint,_0x69289a,_0xbd5f40+_0x467408),_0x219ca4=_0xbd5f40+_0x467408+_0xf1620b,_0x57da00=isUnknownSize(_0x271d87,_0xf1620b);let _0x399860;if(_0x57da00){let _0x417e7e=_0x219ca4;while(_0x417e7e<_0x72cdfa['rCIpG'](_0x69289a['length'],0x4)){const [_0x1b2c9a,_0x299b11]=readId(_0x69289a,_0x417e7e);if(_0x1b2c9a===ID_CLUSTER){_0x399860=_0x417e7e;break;}const [_0x2c936c,_0x358b91]=_0x72cdfa['wKnvX'](readVint,_0x69289a,_0x72cdfa['DscjT'](_0x417e7e,_0x299b11));if(_0x72cdfa['TLLsa'](isUnknownSize,_0x2c936c,_0x358b91)){_0x399860=_0x69289a['length'];break;}_0x417e7e+=_0x72cdfa['vLNIv'](_0x299b11,_0x358b91)+_0x2c936c;}_0x399860??=_0x69289a[_0x2d1614(0xa1)];}else _0x399860=_0x72cdfa['BHJQh'](_0x219ca4,_0x271d87);let _0x29442f=0x0,_0x34d56d=_0x219ca4;while(_0x34d56d<_0x399860){const [_0x4d41bf,_0x3d46c6]=readId(_0x69289a,_0x34d56d),[_0x5597f3,_0x52e90e]=readVint(_0x69289a,_0x72cdfa['vLNIv'](_0x34d56d,_0x3d46c6));if(_0x4d41bf===ID_TIMESTAMP)_0x29442f=_0x72cdfa['oPddm'](readUint,_0x69289a,_0x34d56d+_0x3d46c6+_0x52e90e,_0x5597f3);else{if(_0x72cdfa['UirbU'](_0x4d41bf,ID_SIMPLE_BLOCK)&&_0x5597f3>=0x4){const _0x1ddcbf=_0x72cdfa['DscjT'](_0x34d56d,_0x3d46c6)+_0x52e90e,[,_0x187bc8]=readVint(_0x69289a,_0x1ddcbf),_0x6e3a99=_0x69289a['readInt16BE'](_0x72cdfa[_0x2d1614(0xaa)](_0x1ddcbf,_0x187bc8)),_0x4b7b90=_0x72cdfa['uyKHj'](_0x72cdfa['Jfelg'](_0x29442f,_0x6e3a99)*_0x132706,0xf4240);_0x72cdfa[_0x2d1614(0xb4)](_0x4b7b90,_0xf252ff)&&(_0xf252ff=_0x4b7b90);}else{if(_0x72cdfa['UirbU'](_0x4d41bf,ID_CLUSTER))break;}}if(isUnknownSize(_0x5597f3,_0x52e90e))break;_0x34d56d+=_0x72cdfa['DscjT'](_0x3d46c6,_0x52e90e)+_0x5597f3;}_0xbd5f40=_0x399860;}return _0xf252ff;}export function fixWebmDuration(_0x5b7364,_0x1ded70){const _0x3a3eff=_0x3c92,_0x26c9e4={'BCDMZ':function(_0x14abc2,_0x5b3384){return _0x14abc2(_0x5b3384);},'rGIYD':function(_0x118d26,_0x595777){return _0x118d26+_0x595777;},'rBLhw':function(_0x345d9e,_0xbe8e7,_0x574d8d){return _0x345d9e(_0xbe8e7,_0x574d8d);},'wJYND':function(_0x40967d,_0x5ce633,_0xa409ef){return _0x40967d(_0x5ce633,_0xa409ef);},'KOWfx':function(_0x17dcf4,_0xb70f26){return _0x17dcf4+_0xb70f26;},'XgwOe':function(_0x4f7ed9,_0x2b2dca,_0x255ec1){return _0x4f7ed9(_0x2b2dca,_0x255ec1);},'iVERx':function(_0x3c11c0,_0x2280bb){return _0x3c11c0===_0x2280bb;},'ipjeI':function(_0x4a8fc7,_0x1dc090){return _0x4a8fc7+_0x1dc090;},'DVXAq':function(_0x2affc4,_0x4744dd,_0x4ea140){return _0x2affc4(_0x4744dd,_0x4ea140);},'bZTYK':'Could\x20not\x20find\x20Info\x20element','ImaMZ':function(_0xb3339b,_0x13514c,_0x438ba7,_0x48e90a,_0x24bce7){return _0xb3339b(_0x13514c,_0x438ba7,_0x48e90a,_0x24bce7);},'uMces':function(_0x42e484,_0xfc0bb1,_0x3f289e,_0x1f9e5f){return _0x42e484(_0xfc0bb1,_0x3f289e,_0x1f9e5f);},'ZUeYR':'Could\x20not\x20compute\x20duration','VxBMo':function(_0x51ec56,_0x255772){return _0x51ec56/_0x255772;},'daCiH':function(_0x5a22d0,_0xc6e1ae){return _0x5a22d0<_0xc6e1ae;}},_0x3cd71a=_0x26c9e4[_0x3a3eff(0xa4)](readFileSync,_0x5b7364);let _0x4e2121=0x0;const [_0x4adcbe,_0x5b3a57]=readId(_0x3cd71a,_0x4e2121),[_0x190402,_0x47b005]=readVint(_0x3cd71a,_0x26c9e4[_0x3a3eff(0xc3)](_0x4e2121,_0x5b3a57));_0x4e2121+=_0x26c9e4[_0x3a3eff(0xc3)](_0x5b3a57,_0x47b005)+_0x190402;const [_0x2a54df,_0x37c183]=_0x26c9e4['rBLhw'](readId,_0x3cd71a,_0x4e2121);if(_0x2a54df!==ID_SEGMENT)return console['error'](_0x3a3eff(0xac)),![];const [,_0x25f565]=_0x26c9e4[_0x3a3eff(0xa0)](readVint,_0x3cd71a,_0x4e2121+_0x37c183),_0x32f3af=_0x26c9e4[_0x3a3eff(0xc3)](_0x4e2121+_0x37c183,_0x25f565);let _0x1c00ec=_0x32f3af;const _0x926547=Math[_0x3a3eff(0xcb)](_0x3cd71a['length'],_0x26c9e4['KOWfx'](_0x32f3af,0x2710));let _0x5a52d1=null,_0x4836de=null;while(_0x1c00ec<_0x926547){const [_0x173e28,_0x3832a9]=readId(_0x3cd71a,_0x1c00ec),[_0x384303,_0x3e1a39]=_0x26c9e4['XgwOe'](readVint,_0x3cd71a,_0x1c00ec+_0x3832a9);_0x26c9e4['iVERx'](_0x173e28,ID_VOID)&&!_0x5a52d1&&(_0x5a52d1={'offset':_0x1c00ec,'idLen':_0x3832a9,'sizeLen':_0x3e1a39,'dataSize':_0x384303,'dataOffset':_0x26c9e4['rGIYD'](_0x1c00ec+_0x3832a9,_0x3e1a39)});if(_0x26c9e4[_0x3a3eff(0xcc)](_0x173e28,ID_INFO)){_0x4836de={'offset':_0x1c00ec,'idLen':_0x3832a9,'sizeLen':_0x3e1a39,'dataSize':_0x384303,'dataOffset':_0x26c9e4[_0x3a3eff(0xc9)](_0x26c9e4[_0x3a3eff(0xcd)](_0x1c00ec,_0x3832a9),_0x3e1a39)};break;}if(_0x173e28===ID_CLUSTER)break;if(_0x26c9e4[_0x3a3eff(0xd9)](isUnknownSize,_0x384303,_0x3e1a39))break;_0x1c00ec+=_0x26c9e4['ipjeI'](_0x3832a9+_0x3e1a39,_0x384303);}if(!_0x4836de)return console[_0x3a3eff(0xb1)](_0x26c9e4[_0x3a3eff(0xad)]),![];const _0x1f8da5=_0x26c9e4[_0x3a3eff(0xd5)](findElement,_0x3cd71a,_0x4836de[_0x3a3eff(0xce)],_0x4836de['dataOffset']+_0x4836de[_0x3a3eff(0xa3)],ID_DURATION);if(_0x1f8da5)return![];const _0x130566=_0x26c9e4['ImaMZ'](findElement,_0x3cd71a,_0x4836de[_0x3a3eff(0xce)],_0x4836de['dataOffset']+_0x4836de['dataSize'],ID_TIMESTAMP_SCALE);let _0x316b8e=0xf4240;_0x130566&&(_0x316b8e=_0x26c9e4[_0x3a3eff(0xc6)](readUint,_0x3cd71a,_0x130566['dataOffset'],_0x130566[_0x3a3eff(0xa3)]));const _0x3e0716=computeDurationMs(_0x3cd71a,_0x316b8e);if(_0x3e0716<=0x0)return console['error'](_0x26c9e4['ZUeYR']),![];const _0x4e8193=_0x26c9e4[_0x3a3eff(0xb2)](_0x3e0716*0xf4240,_0x316b8e),_0x343336=Buffer['concat']([_0x26c9e4[_0x3a3eff(0xa4)](writeId,ID_DURATION),writeVint(0x8),writeFloat64(_0x4e8193)]),_0x1e9536=_0x343336['length'];if(!_0x5a52d1||_0x26c9e4['daCiH'](_0x5a52d1['offset'],_0x4836de['offset'])){if(_0x5a52d1){const _0x4d09ce=_0x5a52d1['idLen']+_0x5a52d1['sizeLen']+_0x5a52d1['dataSize'],_0x2c6ef3=_0x4d09ce-_0x1e9536;if(_0x2c6ef3<0x2)return rewriteFile(_0x3cd71a,_0x4836de,_0x343336,_0x316b8e,_0x3e0716,_0x1ded70);const _0x3b72d6=_0x4836de[_0x3a3eff(0xa3)]+_0x1e9536,_0x2f1dab=Buffer[_0x3a3eff(0xa5)]([writeId(ID_INFO),writeVint(_0x3b72d6,_0x4836de[_0x3a3eff(0xc5)])]),_0x22d6b2=_0x3cd71a['slice'](_0x4836de['dataOffset'],_0x4836de[_0x3a3eff(0xce)]+_0x4836de[_0x3a3eff(0xa3)]),_0x6c8517=writeVoid(_0x2c6ef3),_0x4e57d4=_0x3cd71a[_0x3a3eff(0xa9)](0x0,_0x5a52d1[_0x3a3eff(0xc7)]),_0x5d9f1f=_0x3cd71a[_0x3a3eff(0xa9)](_0x4836de['dataOffset']+_0x4836de['dataSize']);return writeFileSync(_0x1ded70,Buffer[_0x3a3eff(0xa5)]([_0x4e57d4,_0x6c8517,_0x2f1dab,_0x22d6b2,_0x343336,_0x5d9f1f])),!![];}}return rewriteFile(_0x3cd71a,_0x4836de,_0x343336,_0x316b8e,_0x3e0716,_0x1ded70);}function rewriteFile(_0x31251d,_0x391903,_0x5e2ada,_0x4b7aa1,_0x1eb4bb,_0xd67c1e){const _0x561df8=_0x3c92,_0x2337b4={'mmaXZ':function(_0x15aae5,_0x587f53){return _0x15aae5+_0x587f53;},'mqGro':function(_0x17c084,_0x438750){return _0x17c084(_0x438750);},'UmNmz':function(_0x32248a,_0x763ad5){return _0x32248a+_0x763ad5;},'lJLuv':function(_0x26dd7c,_0x46a32f,_0x2d3c53){return _0x26dd7c(_0x46a32f,_0x2d3c53);}},_0x5e98da=_0x2337b4['mmaXZ'](_0x391903['dataSize'],_0x5e2ada[_0x561df8(0xa1)]),_0x436320=Buffer['concat']([_0x2337b4['mqGro'](writeId,ID_INFO),writeVint(_0x5e98da)]),_0x2251e1=_0x391903['idLen']+_0x391903['sizeLen'],_0x3aeb98=_0x31251d['slice'](0x0,_0x391903[_0x561df8(0xc7)]),_0x1083cd=_0x31251d[_0x561df8(0xa9)](_0x391903[_0x561df8(0xce)],_0x391903['dataOffset']+_0x391903[_0x561df8(0xa3)]),_0xb20da8=_0x31251d['slice'](_0x2337b4['mmaXZ'](_0x2337b4[_0x561df8(0xb3)](_0x391903[_0x561df8(0xc7)],_0x2251e1),_0x391903['dataSize']));return _0x2337b4[_0x561df8(0xd4)](writeFileSync,_0xd67c1e,Buffer[_0x561df8(0xa5)]([_0x3aeb98,_0x436320,_0x1083cd,_0x5e2ada,_0xb20da8])),!![];}if(process['argv'][0x1]?.['endsWith']('fixWebmDuration.ts')||process['argv'][0x1]?.['endsWith'](_0x429d12(0xc2))){const input=process['argv'][0x2],output=process[_0x429d12(0xda)][0x3];(!input||!output)&&(console[_0x429d12(0xb1)](_0x429d12(0xaf)),process[_0x429d12(0xd1)](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0x429d12(0xa2)]('Fixed:\x20'+output):console[_0x429d12(0xa2)](_0x429d12(0xc4));}
|
|
1
|
+
const _0x41897d=_0x192b;(function(_0x4da687,_0x2f2455){const _0x6c2e1f=_0x192b,_0x3d14aa=_0x4da687();while(!![]){try{const _0x4a85ab=-parseInt(_0x6c2e1f(0xab))/0x1+-parseInt(_0x6c2e1f(0xa6))/0x2+-parseInt(_0x6c2e1f(0xb0))/0x3+-parseInt(_0x6c2e1f(0xa0))/0x4*(-parseInt(_0x6c2e1f(0xa9))/0x5)+-parseInt(_0x6c2e1f(0xb8))/0x6+parseInt(_0x6c2e1f(0x9b))/0x7*(parseInt(_0x6c2e1f(0xa7))/0x8)+-parseInt(_0x6c2e1f(0x87))/0x9*(-parseInt(_0x6c2e1f(0xa3))/0xa);if(_0x4a85ab===_0x2f2455)break;else _0x3d14aa['push'](_0x3d14aa['shift']());}catch(_0x52c980){_0x3d14aa['push'](_0x3d14aa['shift']());}}}(_0x4f36,0x2ca1d));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(_0x5a5015,_0x3f2eba){const _0x416525=_0x192b,_0x32a73d={'IEwJj':function(_0x2b8aa9,_0xf687af){return _0x2b8aa9<=_0xf687af;},'bIaEH':function(_0x3bffd0,_0x508ac7){return _0x3bffd0>_0x508ac7;},'ZlqZS':function(_0x5f3114,_0x513746){return _0x5f3114+_0x513746;},'mylqH':function(_0x3b8a10,_0x288f48){return _0x3b8a10-_0x288f48;},'fVqiL':function(_0x1d301e,_0x4d0911){return _0x1d301e<_0x4d0911;}};if(_0x3f2eba>=_0x5a5015[_0x416525(0xbf)])return[0x0,0x0];const _0xd3c5c3=_0x5a5015[_0x3f2eba];let _0x5042ff=0x1,_0x546fbe=0x80;while(_0x32a73d[_0x416525(0x99)](_0x5042ff,0x8)&&!(_0xd3c5c3&_0x546fbe)){_0x5042ff++,_0x546fbe>>=0x1;}if(_0x32a73d[_0x416525(0xbe)](_0x32a73d['ZlqZS'](_0x3f2eba,_0x5042ff),_0x5a5015['length']))return[0x0,0x0];let _0x535323=_0xd3c5c3&_0x32a73d['mylqH'](_0x546fbe,0x1);for(let _0x36278b=0x1;_0x32a73d[_0x416525(0xb1)](_0x36278b,_0x5042ff);_0x36278b++){_0x535323=_0x535323*0x100+_0x5a5015[_0x3f2eba+_0x36278b];}return[_0x535323,_0x5042ff];}function readId(_0x3f4a71,_0x754155){const _0x2c8aa0=_0x192b,_0x1765d4={'KHqiF':function(_0x4d8bb0,_0x185276){return _0x4d8bb0>=_0x185276;},'GZCnQ':function(_0x4081e9,_0x3e2180){return _0x4081e9>_0x3e2180;},'dCFfU':function(_0x42e4c5,_0x326af){return _0x42e4c5*_0x326af;},'iiuXf':function(_0x21eba2,_0x3cd412){return _0x21eba2+_0x3cd412;}};if(_0x1765d4['KHqiF'](_0x754155,_0x3f4a71[_0x2c8aa0(0xbf)]))return[0x0,0x0];const _0x274eac=_0x3f4a71[_0x754155];let _0xaa3226;if(_0x274eac>=0x80)_0xaa3226=0x1;else{if(_0x1765d4[_0x2c8aa0(0xbd)](_0x274eac,0x40))_0xaa3226=0x2;else{if(_0x274eac>=0x20)_0xaa3226=0x3;else{if(_0x274eac>=0x10)_0xaa3226=0x4;else return[_0x274eac,0x1];}}}if(_0x1765d4['GZCnQ'](_0x754155+_0xaa3226,_0x3f4a71[_0x2c8aa0(0xbf)]))return[0x0,0x0];let _0x4260cf=0x0;for(let _0x31c2b0=0x0;_0x31c2b0<_0xaa3226;_0x31c2b0++){_0x4260cf=_0x1765d4['dCFfU'](_0x4260cf,0x100)+_0x3f4a71[_0x1765d4[_0x2c8aa0(0x88)](_0x754155,_0x31c2b0)];}return[_0x4260cf,_0xaa3226];}function readUint(_0x1a8de8,_0xd539ec,_0x290c55){let _0x32a0ea=0x0;for(let _0x5e8d93=0x0;_0x5e8d93<_0x290c55;_0x5e8d93++){_0x32a0ea=_0x32a0ea*0x100+_0x1a8de8[_0xd539ec+_0x5e8d93];}return _0x32a0ea;}function isUnknownSize(_0x5a72bd,_0x1d9614){const _0x26a454=_0x192b,_0xf21b84={'KSKbZ':function(_0x187a28,_0x455cdf){return _0x187a28===_0x455cdf;},'gJElV':function(_0x2203bf,_0xc431af){return _0x2203bf*_0xc431af;}};return _0xf21b84['KSKbZ'](_0x5a72bd,Math['pow'](0x2,_0xf21b84[_0x26a454(0x85)](0x7,_0x1d9614))-0x1);}function writeId(_0x47faf2){const _0x57a212=_0x192b,_0x1b2e51={'vdmpR':function(_0x4f94ce,_0x3f870e){return _0x4f94ce<=_0x3f870e;},'sWIQk':function(_0x3cdefb,_0x35a6e7){return _0x3cdefb>>_0x35a6e7;},'lvSWq':function(_0x252007,_0x4ea60a){return _0x252007&_0x4ea60a;},'exKHM':function(_0x2d852b,_0x1205b7){return _0x2d852b&_0x1205b7;}};if(_0x47faf2<=0xff)return Buffer[_0x57a212(0x95)]([_0x47faf2]);if(_0x1b2e51[_0x57a212(0xaa)](_0x47faf2,0xffff))return Buffer['from']([_0x1b2e51[_0x57a212(0x94)](_0x47faf2,0x8)&0xff,_0x47faf2&0xff]);if(_0x47faf2<=0xffffff)return Buffer[_0x57a212(0x95)]([_0x47faf2>>0x10&0xff,_0x1b2e51[_0x57a212(0x8a)](_0x1b2e51[_0x57a212(0x94)](_0x47faf2,0x8),0xff),_0x1b2e51[_0x57a212(0xa8)](_0x47faf2,0xff)]);return Buffer[_0x57a212(0x95)]([_0x47faf2>>0x18&0xff,_0x1b2e51['sWIQk'](_0x47faf2,0x10)&0xff,_0x1b2e51[_0x57a212(0x94)](_0x47faf2,0x8)&0xff,_0x47faf2&0xff]);}function _0x4f36(){const _0x168c8b=['idLen','yDOEX','dataSize','kmgYz','852KZedKJ','ubSbQ','pAehN','5641430YCNuZI','gjkeI','alloc','84362jcEvVB','32jTEGOo','exKHM','6190JQxeYg','vdmpR','88658QhjXaG','argv','lmnnS','LLKCy','bKhjJ','581802RrwYYA','fVqiL','HMSGQ','readInt16BE','gdjTD','yqjZz','EzSoo','CtURm','2149290rkWTGX','error','sizeLen','dataOffset','TfdZd','KHqiF','bIaEH','length','hQlym','hvkcl','fixWebmDuration.ts','min','YokyX','KatSU','exit','gJElV','QHaCV','9maiqTT','iiuXf','jLAVb','lvSWq','pow','concat','floor','eIcLJ','obzOC','endsWith','NBtiL','offset','indexOf','sWIQk','from','slice','lyixv','yNFKo','IEwJj','ZfsZx','66437DfXoWs'];_0x4f36=function(){return _0x168c8b;};return _0x4f36();}function writeVint(_0x3fe421,_0x56a82a){const _0x3d6192=_0x192b,_0x2d9acd={'hvkcl':function(_0xa71cd0,_0x3048e2){return _0xa71cd0||_0x3048e2;},'KzSRV':function(_0x55a30e,_0x6e3822){return _0x55a30e<_0x6e3822;}};let _0x47f55d=_0x2d9acd[_0x3d6192(0xc1)](_0x56a82a,0x1);while(_0x2d9acd['KzSRV'](Math[_0x3d6192(0x8b)](0x2,0x7*_0x47f55d)-0x2,_0x3fe421))_0x47f55d++;const _0x4cad8f=Buffer[_0x3d6192(0xa5)](_0x47f55d);for(let _0x1dd6bc=_0x47f55d-0x1;_0x1dd6bc>=0x0;_0x1dd6bc--){_0x4cad8f[_0x1dd6bc]=_0x3fe421&0xff,_0x3fe421=Math[_0x3d6192(0x8d)](_0x3fe421/0x100);}return _0x4cad8f[0x0]|=0x1<<0x8-_0x47f55d,_0x4cad8f;}function writeFloat64(_0x3360fd){const _0x154fd1=Buffer['alloc'](0x8);return _0x154fd1['writeDoubleBE'](_0x3360fd,0x0),_0x154fd1;}function writeVoid(_0x1b8787){const _0x5d9522=_0x192b,_0x4e54f7={'LLKCy':function(_0x302cae,_0x180f6e){return _0x302cae>=_0x180f6e;},'ubSbQ':function(_0x1e5c8f,_0x34fc9e){return _0x1e5c8f<=_0x34fc9e;}};for(let _0x31daa1=0x1;_0x31daa1<=0x8;_0x31daa1++){const _0x4ed091=_0x1b8787-0x1-_0x31daa1;if(_0x4e54f7[_0x5d9522(0xae)](_0x4ed091,0x0)&&_0x4e54f7[_0x5d9522(0xa1)](_0x4ed091,Math['pow'](0x2,0x7*_0x31daa1)-0x2))return Buffer['concat']([Buffer['from']([ID_VOID]),writeVint(_0x4ed091,_0x31daa1),Buffer['alloc'](_0x4ed091)]);}return Buffer['alloc'](0x0);}function findElement(_0x581634,_0x4738ad,_0x2c0cfa,_0x264313){const _0x5ef273=_0x192b,_0x3eeb4e={'gjkeI':function(_0x4cad03,_0x312813,_0x1b2dac){return _0x4cad03(_0x312813,_0x1b2dac);},'HDIpK':function(_0x987b2,_0x2bfaac,_0x3ab5e5){return _0x987b2(_0x2bfaac,_0x3ab5e5);},'yNFKo':function(_0x2f450,_0x565992){return _0x2f450+_0x565992;}};let _0x710792=_0x4738ad;while(_0x710792<_0x2c0cfa){const [_0x59741f,_0x5a1e29]=_0x3eeb4e[_0x5ef273(0xa4)](readId,_0x581634,_0x710792),[_0x4855fc,_0x2d5358]=_0x3eeb4e['HDIpK'](readVint,_0x581634,_0x3eeb4e[_0x5ef273(0x98)](_0x710792,_0x5a1e29));if(_0x59741f===_0x264313)return{'offset':_0x710792,'idLen':_0x5a1e29,'sizeLen':_0x2d5358,'dataSize':_0x4855fc,'dataOffset':_0x3eeb4e[_0x5ef273(0x98)](_0x710792,_0x5a1e29)+_0x2d5358};if(isUnknownSize(_0x4855fc,_0x2d5358))break;_0x710792+=_0x3eeb4e[_0x5ef273(0x98)](_0x5a1e29,_0x2d5358)+_0x4855fc;}return null;}function computeDurationMs(_0x33fd02,_0x4cc812){const _0x3a03fc=_0x192b,_0x2adc13={'jLAVb':function(_0x32fc65,_0x2d6e8d){return _0x32fc65===_0x2d6e8d;},'HMSGQ':function(_0xfec444,_0x1d8868){return _0xfec444<_0x1d8868;},'EzSoo':function(_0x49e80e,_0x49e4d8,_0x623e0c){return _0x49e80e(_0x49e4d8,_0x623e0c);},'IERyW':function(_0x95e7f0,_0xe45b93){return _0x95e7f0!==_0xe45b93;},'pAehN':function(_0x59b76b,_0x37968c){return _0x59b76b+_0x37968c;},'eIcLJ':function(_0x333f6d,_0x49324c){return _0x333f6d<_0x49324c;},'NBtiL':function(_0xbb0b09,_0x32542f){return _0xbb0b09-_0x32542f;},'CNZjJ':function(_0xaff003,_0x4441ad,_0x3b2c43){return _0xaff003(_0x4441ad,_0x3b2c43);},'TfdZd':function(_0x9a1cd8,_0x48d182){return _0x9a1cd8+_0x48d182;},'VytsI':function(_0x2004ca,_0x2dd86f,_0x33aa05,_0x52d95a){return _0x2004ca(_0x2dd86f,_0x33aa05,_0x52d95a);},'VQgJl':function(_0x2a14a0,_0x2032d2){return _0x2a14a0+_0x2032d2;},'bKhjJ':function(_0x22d661,_0x54c6af,_0x4a0359){return _0x22d661(_0x54c6af,_0x4a0359);},'DvDxG':function(_0x4860d8,_0x4eee58){return _0x4860d8/_0x4eee58;},'kmgYz':function(_0xee40e4,_0x3907ee){return _0xee40e4>_0x3907ee;}};let _0x3fea4d=0x0;const _0x2810de=Buffer[_0x3a03fc(0x95)]([0x1f,0x43,0xb6,0x75]);let _0xee2b41=_0x33fd02[_0x3a03fc(0x93)](_0x2810de);if(_0x2adc13[_0x3a03fc(0x89)](_0xee2b41,-0x1))return 0x0;while(_0x2adc13[_0x3a03fc(0xb2)](_0xee2b41,_0x33fd02[_0x3a03fc(0xbf)])){const [_0x3e240a,_0x48a47a]=_0x2adc13[_0x3a03fc(0xb6)](readId,_0x33fd02,_0xee2b41);if(_0x2adc13['IERyW'](_0x3e240a,ID_CLUSTER))break;const [_0x32fca5,_0x163e9f]=readVint(_0x33fd02,_0xee2b41+_0x48a47a),_0x2a57f8=_0x2adc13[_0x3a03fc(0xa2)](_0xee2b41,_0x48a47a)+_0x163e9f,_0x1441fe=isUnknownSize(_0x32fca5,_0x163e9f);let _0x354cbc;if(_0x1441fe){let _0x15b2f7=_0x2a57f8;while(_0x2adc13[_0x3a03fc(0x8e)](_0x15b2f7,_0x2adc13[_0x3a03fc(0x91)](_0x33fd02['length'],0x4))){const [_0x3bd367,_0x33dc38]=_0x2adc13['CNZjJ'](readId,_0x33fd02,_0x15b2f7);if(_0x3bd367===ID_CLUSTER){_0x354cbc=_0x15b2f7;break;}const [_0x3cb042,_0x3d4e4c]=readVint(_0x33fd02,_0x2adc13[_0x3a03fc(0xbc)](_0x15b2f7,_0x33dc38));if(isUnknownSize(_0x3cb042,_0x3d4e4c)){_0x354cbc=_0x33fd02['length'];break;}_0x15b2f7+=_0x33dc38+_0x3d4e4c+_0x3cb042;}_0x354cbc??=_0x33fd02['length'];}else _0x354cbc=_0x2a57f8+_0x32fca5;let _0x192a4a=0x0,_0x17bd8a=_0x2a57f8;while(_0x17bd8a<_0x354cbc){const [_0x10aa5f,_0x111dc7]=_0x2adc13['CNZjJ'](readId,_0x33fd02,_0x17bd8a),[_0x49176a,_0x38bb94]=readVint(_0x33fd02,_0x17bd8a+_0x111dc7);if(_0x2adc13[_0x3a03fc(0x89)](_0x10aa5f,ID_TIMESTAMP))_0x192a4a=_0x2adc13['VytsI'](readUint,_0x33fd02,_0x2adc13['pAehN'](_0x17bd8a+_0x111dc7,_0x38bb94),_0x49176a);else{if(_0x2adc13['jLAVb'](_0x10aa5f,ID_SIMPLE_BLOCK)&&_0x49176a>=0x4){const _0x24cb4a=_0x2adc13[_0x3a03fc(0xa2)](_0x2adc13['VQgJl'](_0x17bd8a,_0x111dc7),_0x38bb94),[,_0x2bfb83]=_0x2adc13[_0x3a03fc(0xaf)](readVint,_0x33fd02,_0x24cb4a),_0x52f113=_0x33fd02[_0x3a03fc(0xb3)](_0x24cb4a+_0x2bfb83),_0x30c45a=_0x2adc13['DvDxG']((_0x192a4a+_0x52f113)*_0x4cc812,0xf4240);_0x2adc13[_0x3a03fc(0x9f)](_0x30c45a,_0x3fea4d)&&(_0x3fea4d=_0x30c45a);}else{if(_0x2adc13['jLAVb'](_0x10aa5f,ID_CLUSTER))break;}}if(isUnknownSize(_0x49176a,_0x38bb94))break;_0x17bd8a+=_0x111dc7+_0x38bb94+_0x49176a;}_0xee2b41=_0x354cbc;}return _0x3fea4d;}export function fixWebmDuration(_0x1934ec,_0x353d42){const _0x21d793=_0x192b,_0x1533bf={'QHaCV':function(_0x1ca1b2,_0x1bb3e2){return _0x1ca1b2+_0x1bb3e2;},'obzOC':function(_0x37f2f7,_0x4e443d,_0x56a6e9){return _0x37f2f7(_0x4e443d,_0x56a6e9);},'GsjGe':function(_0x258878,_0x5525bf,_0x3d3835){return _0x258878(_0x5525bf,_0x3d3835);},'lmnnS':function(_0x3fb9df,_0x4d90f9){return _0x3fb9df===_0x4d90f9;},'Ritli':function(_0x2a09f0,_0xae1d6b){return _0x2a09f0+_0xae1d6b;},'hQlym':function(_0x4e5367,_0x40c6ea){return _0x4e5367+_0x40c6ea;},'ogefI':function(_0x250545,_0x3fe1de,_0x54a067){return _0x250545(_0x3fe1de,_0x54a067);},'CtURm':function(_0x2b69c5,_0x1d47b0){return _0x2b69c5+_0x1d47b0;},'lyixv':function(_0xa3cb5b,_0x54fdd9){return _0xa3cb5b+_0x54fdd9;},'VQVDg':'Could\x20not\x20find\x20Info\x20element','gdjTD':function(_0x2b7f6b,_0x2f5c06,_0x373050,_0x28830d,_0x2f6b16){return _0x2b7f6b(_0x2f5c06,_0x373050,_0x28830d,_0x2f6b16);},'ZfsZx':function(_0x34c205,_0x19ad40,_0x37fc9a,_0x46c8be){return _0x34c205(_0x19ad40,_0x37fc9a,_0x46c8be);},'KatSU':function(_0x312fba,_0x9f2863){return _0x312fba(_0x9f2863);},'YokyX':function(_0x58a378,_0x2fb035){return _0x58a378+_0x2fb035;}},_0x46fc6e=readFileSync(_0x1934ec);let _0x247741=0x0;const [_0x290f0d,_0x5ffc93]=readId(_0x46fc6e,_0x247741),[_0x42b6f4,_0x5733b4]=readVint(_0x46fc6e,_0x1533bf['QHaCV'](_0x247741,_0x5ffc93));_0x247741+=_0x5ffc93+_0x5733b4+_0x42b6f4;const [_0x289a31,_0x213ed3]=_0x1533bf[_0x21d793(0x8f)](readId,_0x46fc6e,_0x247741);if(_0x289a31!==ID_SEGMENT)return console['error']('Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment'),![];const [,_0x1a0d3b]=readVint(_0x46fc6e,_0x247741+_0x213ed3),_0x4b01e0=_0x247741+_0x213ed3+_0x1a0d3b;let _0xe7ece7=_0x4b01e0;const _0x8e95bc=Math[_0x21d793(0x81)](_0x46fc6e['length'],_0x1533bf['QHaCV'](_0x4b01e0,0x2710));let _0x3b7589=null,_0xe462b8=null;while(_0xe7ece7<_0x8e95bc){const [_0x31170a,_0x63c8e8]=readId(_0x46fc6e,_0xe7ece7),[_0x4462b9,_0xd11d60]=_0x1533bf['GsjGe'](readVint,_0x46fc6e,_0xe7ece7+_0x63c8e8);_0x31170a===ID_VOID&&!_0x3b7589&&(_0x3b7589={'offset':_0xe7ece7,'idLen':_0x63c8e8,'sizeLen':_0xd11d60,'dataSize':_0x4462b9,'dataOffset':_0x1533bf[_0x21d793(0x86)](_0xe7ece7+_0x63c8e8,_0xd11d60)});if(_0x1533bf[_0x21d793(0xad)](_0x31170a,ID_INFO)){_0xe462b8={'offset':_0xe7ece7,'idLen':_0x63c8e8,'sizeLen':_0xd11d60,'dataSize':_0x4462b9,'dataOffset':_0x1533bf['Ritli'](_0x1533bf[_0x21d793(0xc0)](_0xe7ece7,_0x63c8e8),_0xd11d60)};break;}if(_0x31170a===ID_CLUSTER)break;if(_0x1533bf['ogefI'](isUnknownSize,_0x4462b9,_0xd11d60))break;_0xe7ece7+=_0x1533bf[_0x21d793(0xb7)](_0x1533bf[_0x21d793(0x97)](_0x63c8e8,_0xd11d60),_0x4462b9);}if(!_0xe462b8)return console['error'](_0x1533bf['VQVDg']),![];const _0x42a2d6=findElement(_0x46fc6e,_0xe462b8[_0x21d793(0xbb)],_0xe462b8[_0x21d793(0xbb)]+_0xe462b8[_0x21d793(0x9e)],ID_DURATION);if(_0x42a2d6)return![];const _0x53b9a4=_0x1533bf[_0x21d793(0xb4)](findElement,_0x46fc6e,_0xe462b8[_0x21d793(0xbb)],_0xe462b8[_0x21d793(0xbb)]+_0xe462b8[_0x21d793(0x9e)],ID_TIMESTAMP_SCALE);let _0x32f6cf=0xf4240;_0x53b9a4&&(_0x32f6cf=_0x1533bf[_0x21d793(0x9a)](readUint,_0x46fc6e,_0x53b9a4[_0x21d793(0xbb)],_0x53b9a4['dataSize']));const _0x126459=_0x1533bf['ogefI'](computeDurationMs,_0x46fc6e,_0x32f6cf);if(_0x126459<=0x0)return console['error']('Could\x20not\x20compute\x20duration'),![];const _0x1d7bea=_0x126459*0xf4240/_0x32f6cf,_0x11931b=Buffer[_0x21d793(0x8c)]([writeId(ID_DURATION),writeVint(0x8),_0x1533bf[_0x21d793(0x83)](writeFloat64,_0x1d7bea)]),_0x29e2fb=_0x11931b['length'];if(!_0x3b7589||_0x3b7589['offset']<_0xe462b8[_0x21d793(0x92)]){if(_0x3b7589){const _0x5c33ff=_0x3b7589['idLen']+_0x3b7589['sizeLen']+_0x3b7589['dataSize'],_0xe97777=_0x5c33ff-_0x29e2fb;if(_0xe97777<0x2)return rewriteFile(_0x46fc6e,_0xe462b8,_0x11931b,_0x32f6cf,_0x126459,_0x353d42);const _0x8cf0b2=_0x1533bf['YokyX'](_0xe462b8['dataSize'],_0x29e2fb),_0xf4244f=Buffer[_0x21d793(0x8c)]([writeId(ID_INFO),writeVint(_0x8cf0b2,_0xe462b8['sizeLen'])]),_0x3a336d=_0x46fc6e[_0x21d793(0x96)](_0xe462b8[_0x21d793(0xbb)],_0x1533bf[_0x21d793(0x82)](_0xe462b8['dataOffset'],_0xe462b8['dataSize'])),_0x246fa9=_0x1533bf['KatSU'](writeVoid,_0xe97777),_0x18d0a8=_0x46fc6e[_0x21d793(0x96)](0x0,_0x3b7589[_0x21d793(0x92)]),_0x1551af=_0x46fc6e['slice'](_0xe462b8['dataOffset']+_0xe462b8[_0x21d793(0x9e)]);return _0x1533bf[_0x21d793(0x8f)](writeFileSync,_0x353d42,Buffer['concat']([_0x18d0a8,_0x246fa9,_0xf4244f,_0x3a336d,_0x11931b,_0x1551af])),!![];}}return rewriteFile(_0x46fc6e,_0xe462b8,_0x11931b,_0x32f6cf,_0x126459,_0x353d42);}function _0x192b(_0x472f2d,_0xbd6946){_0x472f2d=_0x472f2d-0x80;const _0x4f3697=_0x4f36();let _0x192b2e=_0x4f3697[_0x472f2d];return _0x192b2e;}function rewriteFile(_0x275ab9,_0x211623,_0xb7fa6a,_0x620b88,_0x21e2c6,_0x364412){const _0xf8c0e2=_0x192b,_0x210e5c={'yqjZz':function(_0x6769e6,_0x1db6d0){return _0x6769e6(_0x1db6d0);},'ElsMT':function(_0x2a1cdc,_0x5d21b7){return _0x2a1cdc+_0x5d21b7;},'EdtNC':function(_0x2c309c,_0x361e0f){return _0x2c309c+_0x361e0f;},'yDOEX':function(_0x5f281c,_0x4289a7,_0x1c548e){return _0x5f281c(_0x4289a7,_0x1c548e);}},_0x4e89fc=_0x211623[_0xf8c0e2(0x9e)]+_0xb7fa6a['length'],_0x627ae7=Buffer['concat']([writeId(ID_INFO),_0x210e5c[_0xf8c0e2(0xb5)](writeVint,_0x4e89fc)]),_0x5c68c0=_0x211623[_0xf8c0e2(0x9c)]+_0x211623[_0xf8c0e2(0xba)],_0x5d1b5e=_0x275ab9[_0xf8c0e2(0x96)](0x0,_0x211623['offset']),_0x5d58bf=_0x275ab9['slice'](_0x211623['dataOffset'],_0x210e5c['ElsMT'](_0x211623[_0xf8c0e2(0xbb)],_0x211623['dataSize'])),_0x5b3ef9=_0x275ab9['slice'](_0x210e5c['EdtNC'](_0x211623[_0xf8c0e2(0x92)]+_0x5c68c0,_0x211623['dataSize']));return _0x210e5c[_0xf8c0e2(0x9d)](writeFileSync,_0x364412,Buffer[_0xf8c0e2(0x8c)]([_0x5d1b5e,_0x627ae7,_0x5d58bf,_0xb7fa6a,_0x5b3ef9])),!![];}if(process['argv'][0x1]?.[_0x41897d(0x90)](_0x41897d(0x80))||process[_0x41897d(0xac)][0x1]?.['endsWith']('fixWebmDuration.js')){const input=process[_0x41897d(0xac)][0x2],output=process['argv'][0x3];(!input||!output)&&(console[_0x41897d(0xb9)]('Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>'),process[_0x41897d(0x84)](0x1));const fixed=fixWebmDuration(input,output);fixed?console['log']('Fixed:\x20'+output):console['log']('File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2776e7,_0x1db7a2){const _0x5c5a9c=_0x5c73,_0x18deac=_0x2776e7();while(!![]){try{const _0x32c2f2=parseInt(_0x5c5a9c(0x131))/0x1+-parseInt(_0x5c5a9c(0x13b))/0x2+parseInt(_0x5c5a9c(0x135))/0x3+-parseInt(_0x5c5a9c(0x139))/0x4*(parseInt(_0x5c5a9c(0x138))/0x5)+parseInt(_0x5c5a9c(0x134))/0x6+-parseInt(_0x5c5a9c(0x137))/0x7*(-parseInt(_0x5c5a9c(0x132))/0x8)+-parseInt(_0x5c5a9c(0x130))/0x9;if(_0x32c2f2===_0x1db7a2)break;else _0x18deac['push'](_0x18deac['shift']());}catch(_0x82c95a){_0x18deac['push'](_0x18deac['shift']());}}}(_0x23fe,0x6d024));import{execSync}from'child_process';export function getGitBranch(){const _0x3241fd=_0x5c73,_0x1fdca0={'AejPY':function(_0xdda80a,_0x3cbbaf,_0x38c89d){return _0xdda80a(_0x3cbbaf,_0x38c89d);},'LbSUJ':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','GvtsN':_0x3241fd(0x133)};try{return _0x1fdca0[_0x3241fd(0x13a)](execSync,_0x1fdca0['LbSUJ'],{'encoding':_0x3241fd(0x12f),'stdio':[_0x3241fd(0x133),'pipe',_0x1fdca0['GvtsN']]})['trim']();}catch{return undefined;}}function _0x5c73(_0x21a91e,_0x2695d5){_0x21a91e=_0x21a91e-0x12d;const _0x23fe27=_0x23fe();let _0x5c73d2=_0x23fe27[_0x21a91e];return _0x5c73d2;}function _0x23fe(){const _0x5502df=['KVhPc','github.com/','replace','utf-8','3286791bLOzqM','97173wfAtXi','2013112qpkBkw','pipe','3331008FIDsFs','2058501YINwHS','git\x20remote\x20get-url\x20origin','21FtmlXM','5555glwNLd','1984SSRxfD','AejPY','1461340NPecme'];_0x23fe=function(){return _0x5502df;};return _0x23fe();}export function getGitRepoUrl(){const _0xaa484d=_0x5c73,_0x32fb9d={'KVhPc':_0xaa484d(0x136),'UuLsg':'utf-8','WmcYx':_0xaa484d(0x133),'GUlCu':_0xaa484d(0x12d)};try{const _0x4d323f=execSync(_0x32fb9d[_0xaa484d(0x13c)],{'encoding':_0x32fb9d['UuLsg'],'stdio':['pipe','pipe',_0x32fb9d['WmcYx']]})['trim']();return _0x4d323f['replace'](/\.git$/,'')[_0xaa484d(0x12e)](/^git@github\.com:/,_0x32fb9d['GUlCu'])['replace'](/^https?:\/\//,'');}catch{return undefined;}}export function getGitInfo(){const _0x3de2e7={'BEleB':function(_0x49363f){return _0x49363f();}};return{'branch':getGitBranch(),'repoUrl':_0x3de2e7['BEleB'](getGitRepoUrl)};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x982464=_0x523d;(function(_0x4f2ae1,_0x4756d2){const _0x1ce866=_0x523d,_0x230c2d=_0x4f2ae1();while(!![]){try{const _0x2fdfed=parseInt(_0x1ce866(0x75))/0x1+parseInt(_0x1ce866(0x98))/0x2+-parseInt(_0x1ce866(0x76))/0x3*(-parseInt(_0x1ce866(0x70))/0x4)+parseInt(_0x1ce866(0x7d))/0x5*(parseInt(_0x1ce866(0x72))/0x6)+parseInt(_0x1ce866(0x95))/0x7+parseInt(_0x1ce866(0x94))/0x8*(parseInt(_0x1ce866(0x7e))/0x9)+parseInt(_0x1ce866(0x9a))/0xa*(-parseInt(_0x1ce866(0x84))/0xb);if(_0x2fdfed===_0x4756d2)break;else _0x230c2d['push'](_0x230c2d['shift']());}catch(_0x6a5ed){_0x230c2d['push'](_0x230c2d['shift']());}}}(_0x9abc,0xa491f));const _0xd87a2b=(function(){let _0x4454aa=!![];return function(_0x1b510b,_0x9dddd5){const _0x26644c=_0x4454aa?function(){const _0x40885f=_0x523d;if(_0x9dddd5){const _0x4ef2ee=_0x9dddd5[_0x40885f(0x8c)](_0x1b510b,arguments);return _0x9dddd5=null,_0x4ef2ee;}}:function(){};return _0x4454aa=![],_0x26644c;};}()),_0x38c9ca=_0xd87a2b(this,function(){const _0x17deae=_0x523d,_0x2e9502={'YCYtt':_0x17deae(0x9d)};return _0x38c9ca[_0x17deae(0x8d)]()[_0x17deae(0x83)](_0x17deae(0x9d))['toString']()[_0x17deae(0x7b)](_0x38c9ca)[_0x17deae(0x83)](_0x2e9502['YCYtt']);});_0x38c9ca();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0x982464(0x97),ENV_TOKEN_LEGACY='RANGER_MCP_TOKEN',TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x982464(0x7c)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x982464(0x8a));function isGitHubCI(){const _0x55499e=_0x982464;return!!process[_0x55499e(0x91)]['GITHUB_ENV'];}async function writeToGitHubEnv(_0x229bfe,_0x68a415){const _0x45e0cb=_0x982464,_0x44559e={'BWjce':function(_0x44c2af,_0x91e42,_0x308411){return _0x44c2af(_0x91e42,_0x308411);}},_0x306431=process[_0x45e0cb(0x91)][_0x45e0cb(0x99)];_0x306431&&await _0x44559e['BWjce'](appendFile,_0x306431,_0x229bfe+'='+_0x68a415+'\x0a');}export async function storeToken(_0x11f363){const _0x515c0c=_0x982464,_0x22e629={'iODXQ':function(_0x41afa2){return _0x41afa2();},'zoaKM':function(_0x72dc36,_0x149cb4,_0x30886a){return _0x72dc36(_0x149cb4,_0x30886a);},'cRsVt':function(_0x35a4a4,_0x51d6c2,_0x14dff3,_0x41c90d){return _0x35a4a4(_0x51d6c2,_0x14dff3,_0x41c90d);}};_0x22e629[_0x515c0c(0x96)](isGitHubCI)?await _0x22e629[_0x515c0c(0x9b)](writeToGitHubEnv,ENV_TOKEN,_0x11f363):(await _0x22e629[_0x515c0c(0x9b)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x22e629['cRsVt'](writeFile,TOKEN_PATH,_0x11f363,{'mode':0x180}));}function _0x9abc(){const _0x350481=['BLbpze4','nty3mKzgwuDmsG','mZC0oda1ovPfqKzpqG','Au9ewfe','uKfor0vsx0nmsv9ut0TftG','mJm2otG2ngneCgPhuW','r0Lusfvcx0vovG','odK5mgrStwHREG','EM9Hs00','uuDQzwK','kcGOlISPkYKRksSK','mJy0nhrQzMDLuq','Ae9XB2q','mJqXndu1me9xsxfosq','wMr3y0m','vMPAsM8','nti0ntaXBg5hq3vq','ntm0ourhr3jyzq','veXvzK4','DxrMltG','zKHMDvi','s3vvtgO','y29UC3rYDwn0B3i','y2XPlNr4Da','nxnsy3fhDq','mtq4nvjmCuvSra','DhjPBq','zerbBuO','ru5YEwm','r3PkAgS','C2vHCMnO','mZK5otzts2DXwva','z1jwtLu','z2nhAue','yxn6yKW','AxzZBxG','shPeBeG','CMvMCMvZAc50Ehq','sLLbBge','yxbWBhK','Dg9tDhjPBMC','s3PSDxy','CevHDwC','zvLQAhm','zw52','yLPku2W'];_0x9abc=function(){return _0x350481;};return _0x9abc();}export async function getToken(){const _0x4cc071=_0x982464,_0x518cd4={'lsDym':function(_0x489cf6,_0x5b8953){return _0x489cf6===_0x5b8953;},'pEaug':_0x4cc071(0x74),'QGjei':'oTrmB','bZJSl':function(_0x518d3f,_0x2d7a30){return _0x518d3f!==_0x2d7a30;},'hOqod':_0x4cc071(0x82),'TLUfN':'svVQd','nPOdN':function(_0x4111ed,_0x40c202,_0x4defca){return _0x4111ed(_0x40c202,_0x4defca);},'ENryc':_0x4cc071(0x78)};if(process[_0x4cc071(0x91)][ENV_TOKEN]){if(_0x518cd4['lsDym'](_0x518cd4[_0x4cc071(0x8f)],_0x518cd4[_0x4cc071(0x9c)])){if(_0x40e2fe){const _0x10e078=_0x3e350c[_0x4cc071(0x8c)](_0x527483,arguments);return _0x428acb=null,_0x10e078;}}else return process[_0x4cc071(0x91)][ENV_TOKEN];}if(process['env'][ENV_TOKEN_LEGACY])return process[_0x4cc071(0x91)][ENV_TOKEN_LEGACY];try{if(_0x518cd4[_0x4cc071(0x92)](_0x518cd4[_0x4cc071(0x71)],_0x518cd4[_0x4cc071(0x77)])){const _0xa385b=await _0x518cd4[_0x4cc071(0x93)](readFile,TOKEN_PATH,_0x518cd4[_0x4cc071(0x81)]);return _0xa385b['trim']()||null;}else return!!_0xea0dd7['env'][_0x4cc071(0x99)];}catch{return null;}}function _0x523d(_0x4a4c0f,_0x3285b4){_0x4a4c0f=_0x4a4c0f-0x70;const _0x4c7ec3=_0x9abc();let _0x38c9ca=_0x4c7ec3[_0x4a4c0f];if(_0x523d['jksnXE']===undefined){var _0xd87a2b=function(_0x3998be){const _0x5bdbe7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x21c310='',_0x1368cf='',_0x219e59=_0x21c310+_0xd87a2b;for(let _0x45a78b=0x0,_0x363a9b,_0x56e268,_0x3e5ba6=0x0;_0x56e268=_0x3998be['charAt'](_0x3e5ba6++);~_0x56e268&&(_0x363a9b=_0x45a78b%0x4?_0x363a9b*0x40+_0x56e268:_0x56e268,_0x45a78b++%0x4)?_0x21c310+=_0x219e59['charCodeAt'](_0x3e5ba6+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x363a9b>>(-0x2*_0x45a78b&0x6)):_0x45a78b:0x0){_0x56e268=_0x5bdbe7['indexOf'](_0x56e268);}for(let _0x5fce30=0x0,_0x3bf15f=_0x21c310['length'];_0x5fce30<_0x3bf15f;_0x5fce30++){_0x1368cf+='%'+('00'+_0x21c310['charCodeAt'](_0x5fce30)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1368cf);};_0x523d['kwNxnr']=_0xd87a2b,_0x523d['RZGElL']={},_0x523d['jksnXE']=!![];}const _0x9abc0c=_0x4c7ec3[0x0],_0x523d98=_0x4a4c0f+_0x9abc0c,_0x3e9911=_0x523d['RZGElL'][_0x523d98];if(!_0x3e9911){const _0x6c313f=function(_0x171bfa){this['LnYkCG']=_0x171bfa,this['yYfdtk']=[0x1,0x0,0x0],this['kWZAeV']=function(){return'newState';},this['RqsBSW']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['NlRFJz']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x6c313f['prototype']['jIWqtc']=function(){const _0x12cdd2=new RegExp(this['RqsBSW']+this['NlRFJz']),_0x184b81=_0x12cdd2['test'](this['kWZAeV']['toString']())?--this['yYfdtk'][0x1]:--this['yYfdtk'][0x0];return this['TFdAEm'](_0x184b81);},_0x6c313f['prototype']['TFdAEm']=function(_0x108393){if(!Boolean(~_0x108393))return _0x108393;return this['UcpnqA'](this['LnYkCG']);},_0x6c313f['prototype']['UcpnqA']=function(_0x25c24e){for(let _0x2629b5=0x0,_0x3b64fe=this['yYfdtk']['length'];_0x2629b5<_0x3b64fe;_0x2629b5++){this['yYfdtk']['push'](Math['round'](Math['random']())),_0x3b64fe=this['yYfdtk']['length'];}return _0x25c24e(this['yYfdtk'][0x0]);},new _0x6c313f(_0x523d)['jIWqtc'](),_0x38c9ca=_0x523d['kwNxnr'](_0x38c9ca),_0x523d['RZGElL'][_0x523d98]=_0x38c9ca;}else _0x38c9ca=_0x3e9911;return _0x38c9ca;}export async function deleteToken(){const _0x15ea4b=_0x982464,_0x5c6b48={'HzDlH':function(_0x2d6b3f,_0x7fca30){return _0x2d6b3f(_0x7fca30);}};try{return await _0x5c6b48[_0x15ea4b(0x89)](unlink,TOKEN_PATH),!![];}catch{return![];}}export async function storeRefreshToken(_0x5f2a11){const _0x291727=_0x982464,_0x5abb07={'aszbL':function(_0x5d649a,_0x2d9ba7,_0x4af4ed){return _0x5d649a(_0x2d9ba7,_0x4af4ed);},'KuULj':function(_0x5287a2,_0x4eb20c,_0x463ecd,_0x5bd319){return _0x5287a2(_0x4eb20c,_0x463ecd,_0x5bd319);}};await _0x5abb07[_0x291727(0x87)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x5abb07[_0x291727(0x7a)](writeFile,REFRESH_TOKEN_PATH,_0x5f2a11,{'mode':0x180});}export async function getRefreshToken(){const _0x1bf79b=_0x982464,_0x4928a0={'aDWtn':function(_0x4a6d97,_0x14e063){return _0x4a6d97===_0x14e063;},'Kzluv':_0x1bf79b(0x79),'gcGiA':_0x1bf79b(0x78)};try{if(_0x4928a0['aDWtn'](_0x1bf79b(0x80),_0x4928a0[_0x1bf79b(0x8e)]))return _0x1d94b3[_0x1bf79b(0x91)][_0x478560];else{const _0x1c4da1=await readFile(REFRESH_TOKEN_PATH,_0x4928a0[_0x1bf79b(0x86)]);return _0x1c4da1[_0x1bf79b(0x7f)]()||null;}}catch{return null;}}export async function deleteRefreshToken(){const _0x5e4b3e=_0x982464,_0x2aa1f4={'SgrYh':function(_0x7e4b0e,_0x1de63d){return _0x7e4b0e===_0x1de63d;},'ivsmx':_0x5e4b3e(0x85),'ZdwcC':_0x5e4b3e(0x8b),'eYjhs':function(_0x83b75a,_0x2b8956){return _0x83b75a(_0x2b8956);}};try{return _0x2aa1f4['SgrYh'](_0x2aa1f4[_0x5e4b3e(0x88)],_0x2aa1f4[_0x5e4b3e(0x73)])?![]:(await _0x2aa1f4[_0x5e4b3e(0x90)](unlink,REFRESH_TOKEN_PATH),!![]);}catch{return![];}}export async function deleteAllCredentials(){await deleteToken(),await deleteRefreshToken();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x21588e,_0x4a6128){const _0x25be20=_0x4835,_0xd43f27=_0x21588e();while(!![]){try{const _0x44b795=parseInt(_0x25be20(0x13d))/0x1*(-parseInt(_0x25be20(0x14f))/0x2)+parseInt(_0x25be20(0x139))/0x3*(-parseInt(_0x25be20(0x160))/0x4)+parseInt(_0x25be20(0x14e))/0x5+parseInt(_0x25be20(0x156))/0x6*(parseInt(_0x25be20(0x13b))/0x7)+-parseInt(_0x25be20(0x155))/0x8+parseInt(_0x25be20(0x150))/0x9*(-parseInt(_0x25be20(0x138))/0xa)+parseInt(_0x25be20(0x14a))/0xb;if(_0x44b795===_0x4a6128)break;else _0xd43f27['push'](_0xd43f27['shift']());}catch(_0x968618){_0xd43f27['push'](_0xd43f27['shift']());}}}(_0x2c2a,0x947c2));const _0x1cf8c3=(function(){const _0x4b7d5c=_0x4835,_0x17136f={'FVMAt':_0x4b7d5c(0x15e),'RPChV':'nHpes','xoPjp':function(_0x42657a,_0x504935){return _0x42657a!==_0x504935;},'Dckmn':_0x4b7d5c(0x141),'SHiYv':_0x4b7d5c(0x152)};let _0xf0a004=!![];return function(_0xc46152,_0x4824e3){const _0x12074f=_0x4b7d5c,_0xd7d79c={'syQim':function(_0x3b311c,_0x4f7caa){return _0x3b311c===_0x4f7caa;},'UTWWd':_0x17136f['FVMAt'],'UlFTa':_0x17136f[_0x12074f(0x154)],'AbeUO':function(_0x53f7f5,_0x2bcd14){const _0x3c9bd9=_0x12074f;return _0x17136f[_0x3c9bd9(0x14b)](_0x53f7f5,_0x2bcd14);},'SDGis':_0x17136f[_0x12074f(0x144)],'rmhCW':_0x17136f[_0x12074f(0x159)]},_0x22f447=_0xf0a004?function(){const _0x553336=_0x12074f;if(_0xd7d79c[_0x553336(0x15f)](_0xd7d79c['UTWWd'],_0xd7d79c[_0x553336(0x15b)])){const _0x2fe4f5=_0x514f65[_0x553336(0x158)](_0x1cbdfc,arguments);return _0x2dd7ea=null,_0x2fe4f5;}else{if(_0x4824e3){if(_0xd7d79c[_0x553336(0x153)](_0xd7d79c[_0x553336(0x149)],_0xd7d79c[_0x553336(0x15c)])){const _0x571993=_0x4824e3[_0x553336(0x158)](_0xc46152,arguments);return _0x4824e3=null,_0x571993;}else return;}}}:function(){};return _0xf0a004=![],_0x22f447;};}()),_0x5ce2be=_0x1cf8c3(this,function(){const _0x349dae=_0x4835,_0x12e3a8={'tgieJ':_0x349dae(0x14c)};return _0x5ce2be[_0x349dae(0x151)]()['search'](_0x349dae(0x14c))[_0x349dae(0x151)]()[_0x349dae(0x140)](_0x5ce2be)[_0x349dae(0x143)](_0x12e3a8[_0x349dae(0x146)]);});_0x5ce2be();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';function _0x4835(_0x452f0d,_0x3eb594){_0x452f0d=_0x452f0d-0x138;const _0x1d8535=_0x2c2a();let _0x5ce2be=_0x1d8535[_0x452f0d];if(_0x4835['UghDlN']===undefined){var _0x1cf8c3=function(_0x3ca43f){const _0x1534ca='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5a9cce='',_0x3b4db2='',_0x285449=_0x5a9cce+_0x1cf8c3;for(let _0x3e2634=0x0,_0x3f02f0,_0x57ff77,_0x1a5d44=0x0;_0x57ff77=_0x3ca43f['charAt'](_0x1a5d44++);~_0x57ff77&&(_0x3f02f0=_0x3e2634%0x4?_0x3f02f0*0x40+_0x57ff77:_0x57ff77,_0x3e2634++%0x4)?_0x5a9cce+=_0x285449['charCodeAt'](_0x1a5d44+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x3f02f0>>(-0x2*_0x3e2634&0x6)):_0x3e2634:0x0){_0x57ff77=_0x1534ca['indexOf'](_0x57ff77);}for(let _0x2fa04e=0x0,_0x12ad50=_0x5a9cce['length'];_0x2fa04e<_0x12ad50;_0x2fa04e++){_0x3b4db2+='%'+('00'+_0x5a9cce['charCodeAt'](_0x2fa04e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3b4db2);};_0x4835['MEwONO']=_0x1cf8c3,_0x4835['PMpUeE']={},_0x4835['UghDlN']=!![];}const _0x2c2aa0=_0x1d8535[0x0],_0x4835e6=_0x452f0d+_0x2c2aa0,_0xb4452f=_0x4835['PMpUeE'][_0x4835e6];if(!_0xb4452f){const _0x2c27f3=function(_0x50f9e){this['VVCvJG']=_0x50f9e,this['OTZXWU']=[0x1,0x0,0x0],this['ifWAdE']=function(){return'newState';},this['LyWLLV']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['UZLsng']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x2c27f3['prototype']['FmJrjR']=function(){const _0x5782d5=new RegExp(this['LyWLLV']+this['UZLsng']),_0x546740=_0x5782d5['test'](this['ifWAdE']['toString']())?--this['OTZXWU'][0x1]:--this['OTZXWU'][0x0];return this['HPOAwE'](_0x546740);},_0x2c27f3['prototype']['HPOAwE']=function(_0x5a316b){if(!Boolean(~_0x5a316b))return _0x5a316b;return this['Lpaabr'](this['VVCvJG']);},_0x2c27f3['prototype']['Lpaabr']=function(_0x2b1a9b){for(let _0x1b9c5b=0x0,_0x1623e4=this['OTZXWU']['length'];_0x1b9c5b<_0x1623e4;_0x1b9c5b++){this['OTZXWU']['push'](Math['round'](Math['random']())),_0x1623e4=this['OTZXWU']['length'];}return _0x2b1a9b(this['OTZXWU'][0x0]);},new _0x2c27f3(_0x4835)['FmJrjR'](),_0x5ce2be=_0x4835['MEwONO'](_0x5ce2be),_0x4835['PMpUeE'][_0x4835e6]=_0x5ce2be;}else _0x5ce2be=_0xb4452f;return _0x5ce2be;}function _0x2c2a(){const _0x123880=['ndC0meL4zLDxzG','ndqXodDQrfjYvu0','z2PmqM8','nJaYsxLnq1fH','D1fICMO','nJa4s2zdrffr','zxjYB3i','rMfPBgvKihrVigXVzYbZA2LSBcbPBNn0ywXSyxrPB246ia','y29UC3rYDwn0B3i','z2HRq1m','z09SteS','C2vHCMnO','rgnRBw4','qMvHCMvYia','DgDPzuO','C0jKq3q','ChH5tgq','u0rhAxm','mZa4otKXnZztyuzxruS','Eg9qANa','kcGOlISPkYKRksSK','wfvSv0C','mtaWmJe0mg5hvvvpua','mJK2nKrPy1zkqG','mtC1mtrNsgrhC1y','Dg9tDhjPBMC','y1LXvwq','qwjLvu8','uLbdAfy','ndK3ndu4neLpvwD3Da','nZe5nJrgy05zvgi','l2fWAs92ms9Ty3aVBg9JywWTywDLBNqTAw5ZDgfSBgf0Aw9UCW','yxbWBhK','u0HPwxy','vxnwsKC','vwXgvge','CM1Oq1C','Dgv4Da','tfDgzfe','C3LrAw0','mJy4tMDKAKn6'];_0x2c2a=function(){return _0x123880;};return _0x2c2a();}export async function logLocalAgentInstallation(_0x40d84a,_0x40f495,_0x5670cf){const _0x449693=_0x4835,_0x43f910={'XUlWG':_0x449693(0x14c),'RKTKy':function(_0x469dc8){return _0x469dc8();},'pxyLd':function(_0x3420a2){return _0x3420a2();},'gOlLK':'POST','MDnUw':'application/json','gjLBo':function(_0x350841,_0x12b382){return _0x350841===_0x12b382;},'UsVJG':'pmkcx','wQbrj':_0x449693(0x147)},_0x16ac3d=await _0x43f910['RKTKy'](getToken);if(!_0x16ac3d)return;const _0x567e08=_0x43f910[_0x449693(0x148)](getApiBaseUrl),_0x4311af=await fetch(_0x567e08+_0x449693(0x157),{'method':_0x43f910[_0x449693(0x142)],'headers':{'Authorization':_0x449693(0x145)+_0x16ac3d,'Content-Type':_0x43f910['MDnUw']},'body':JSON['stringify']({'skillName':_0x40d84a,'cliVersion':_0x5670cf,'metadata':_0x40f495})});if(!_0x4311af['ok']){if(_0x43f910[_0x449693(0x13a)](_0x43f910[_0x449693(0x15a)],_0x43f910[_0x449693(0x13c)]))return _0x494aa9['toString']()[_0x449693(0x143)](uZMxql[_0x449693(0x14d)])[_0x449693(0x151)]()[_0x449693(0x140)](_0x29016c)['search'](uZMxql[_0x449693(0x14d)]);else{const _0x145143=await _0x4311af[_0x449693(0x15d)]();console[_0x449693(0x13e)](_0x449693(0x13f)+_0x145143);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x39c1dc,_0x2d0863){const _0x2ed256=_0x3273,_0x5c38ee=_0x39c1dc();while(!![]){try{const _0x5c34b7=-parseInt(_0x2ed256(0x11e))/0x1+-parseInt(_0x2ed256(0x136))/0x2*(parseInt(_0x2ed256(0x134))/0x3)+-parseInt(_0x2ed256(0x13c))/0x4*(parseInt(_0x2ed256(0x14b))/0x5)+parseInt(_0x2ed256(0x149))/0x6+-parseInt(_0x2ed256(0x147))/0x7+-parseInt(_0x2ed256(0x142))/0x8+parseInt(_0x2ed256(0x13a))/0x9;if(_0x5c34b7===_0x2d0863)break;else _0x5c38ee['push'](_0x5c38ee['shift']());}catch(_0xbdee77){_0x5c38ee['push'](_0x5c38ee['shift']());}}}(_0x3471,0x4f9cc));import{readFile,stat}from'fs/promises';import{extname}from'path';import{fileURLToPath}from'url';const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x242078){const _0x2f94b2=_0x3273,_0x45a3c9={'vtYlr':_0x2f94b2(0x123)};return typeof _0x242078===_0x45a3c9[_0x2f94b2(0x11d)]&&_0x242078!==null;}function isImageBlock(_0x3abec2){const _0xd71578=_0x3273,_0x4f1297={'sQIHR':function(_0x1b9668,_0x2c35a2){return _0x1b9668(_0x2c35a2);},'teOnH':function(_0x5eda32,_0x5aea35){return _0x5eda32===_0x5aea35;},'BLTvK':'image'};return _0x4f1297[_0xd71578(0x13d)](isRecord,_0x3abec2)&&_0x4f1297['teOnH'](_0x3abec2[_0xd71578(0x14a)],_0x4f1297['BLTvK']);}function isDataUrl(_0x4cdbc4){const _0x83d04b=_0x3273;return _0x4cdbc4[_0x83d04b(0x135)]('data:');}function _0x3273(_0x5e85ec,_0x4dfbd7){_0x5e85ec=_0x5e85ec-0x119;const _0x34718e=_0x3471();let _0x3273ca=_0x34718e[_0x5e85ec];return _0x3273ca;}function parseDataUrl(_0x190f6a){const _0x54296a=_0x3273,_0x5cdb62=/^data:([^;]+);base64,(.+)$/[_0x54296a(0x138)](_0x190f6a);if(!_0x5cdb62)return null;const _0x2acff7=_0x5cdb62[0x1]['toLowerCase']();if(!isValidMediaType(_0x2acff7))return null;return{'data':_0x5cdb62[0x2],'mediaType':_0x2acff7};}function isValidMediaType(_0x5b0fb4){const _0x3f0c6c=_0x3273,_0x2cf705={'PNdLW':'image/jpeg','WPjBj':'image/gif'};return[_0x2cf705[_0x3f0c6c(0x119)],'image/png',_0x2cf705[_0x3f0c6c(0x125)],_0x3f0c6c(0x146)]['includes'](_0x5b0fb4);}function inferMediaType(_0x45ab93,_0x25c0de){const _0x4f324d=_0x3273,_0x7221d9={'flXRZ':function(_0x408bb1,_0x458616){return _0x408bb1(_0x458616);},'UGmHd':_0x4f324d(0x13f),'iSgWt':'image/jpeg','SBSHC':'png','QxLhx':_0x4f324d(0x13e)};if(_0x45ab93){const _0x50a28c=_0x45ab93[_0x4f324d(0x12a)]()[_0x4f324d(0x122)](';')[0x0]['trim']();if(_0x7221d9['flXRZ'](isValidMediaType,_0x50a28c))return _0x50a28c;}const _0x15f419=extname(_0x25c0de)['toLowerCase']()[_0x4f324d(0x143)]('.','');switch(_0x15f419){case'jpg':case _0x7221d9['UGmHd']:return _0x7221d9['iSgWt'];case _0x7221d9[_0x4f324d(0x141)]:return _0x4f324d(0x126);case _0x7221d9['QxLhx']:return'image/gif';case _0x4f324d(0x144):return _0x4f324d(0x146);default:return'image/png';}}async function readImageFromUrl(_0x47e5d2){const _0x52cd75=_0x3273,_0x5366e7={'hzIee':function(_0x8fcc3f,_0x4366c4){return _0x8fcc3f(_0x4366c4);},'TzvSc':'Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','MvfWw':function(_0xb0aad0,_0x159e02,_0x17c4c2){return _0xb0aad0(_0x159e02,_0x17c4c2);},'CkGch':_0x52cd75(0x14e),'JUwPX':_0x52cd75(0x120),'owwHi':_0x52cd75(0x128),'FTIFk':'content-type','PRJTF':function(_0x338f11,_0x22fe94){return _0x338f11(_0x22fe94);},'YTsJL':function(_0x58ac2b,_0x1d75ad,_0x3635e7){return _0x58ac2b(_0x1d75ad,_0x3635e7);}};if(_0x5366e7[_0x52cd75(0x124)](isDataUrl,_0x47e5d2)){const _0x5c6392=_0x5366e7[_0x52cd75(0x124)](parseDataUrl,_0x47e5d2);if(_0x5c6392)return _0x5c6392;throw new Error(_0x5366e7[_0x52cd75(0x14d)]);}if(_0x47e5d2['startsWith']('file://')){const _0x4faaf7=_0x5366e7[_0x52cd75(0x124)](fileURLToPath,_0x47e5d2),_0x12748e=await stat(_0x4faaf7);if(_0x12748e['size']>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x52cd75(0x139)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0xb70bb4=await _0x5366e7['hzIee'](readFile,_0x4faaf7);return{'data':_0xb70bb4[_0x52cd75(0x11b)](_0x52cd75(0x128)),'mediaType':_0x5366e7[_0x52cd75(0x132)](inferMediaType,null,_0x4faaf7)};}if(_0x47e5d2[_0x52cd75(0x135)]('http://')||_0x47e5d2[_0x52cd75(0x135)](_0x5366e7[_0x52cd75(0x13b)])){const _0x538dd7=await fetch(_0x47e5d2,{'signal':AbortSignal[_0x52cd75(0x11f)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x538dd7['ok'])throw new Error(_0x52cd75(0x12f)+_0x538dd7['status']);const _0x11f209=_0x538dd7['headers'][_0x52cd75(0x11a)](_0x5366e7['JUwPX']);if(_0x11f209){const _0x1ee5e8=Number(_0x11f209);if(!Number['isNaN'](_0x1ee5e8)&&_0x1ee5e8>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x4ad7c2=await _0x538dd7[_0x52cd75(0x140)]();if(_0x4ad7c2['byteLength']>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x52cd75(0x139)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');return{'data':Buffer['from'](_0x4ad7c2)[_0x52cd75(0x11b)](_0x5366e7[_0x52cd75(0x145)]),'mediaType':_0x5366e7[_0x52cd75(0x132)](inferMediaType,_0x538dd7[_0x52cd75(0x133)]['get'](_0x5366e7['FTIFk']),_0x47e5d2)};}const _0x216c47=await stat(_0x47e5d2);if(_0x216c47[_0x52cd75(0x127)]>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x52cd75(0x139)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x304dad=await _0x5366e7['PRJTF'](readFile,_0x47e5d2);return{'data':_0x304dad['toString'](_0x5366e7[_0x52cd75(0x145)]),'mediaType':_0x5366e7['YTsJL'](inferMediaType,null,_0x47e5d2)};}async function convertImageBlockToBase64(_0x5ef341){const _0x466fad=_0x3273,_0x5f126b={'cLWoV':function(_0xd833f9,_0x476ccc){return _0xd833f9===_0x476ccc;},'jPYZc':_0x466fad(0x128)};if(_0x5f126b[_0x466fad(0x130)](_0x5ef341['source']?.['type'],'base64'))return{'updated':![],'block':_0x5ef341};if(_0x5ef341[_0x466fad(0x148)]&&_0x5ef341['mimeType'])return{'updated':![],'block':_0x5ef341};const _0x129928=_0x5ef341[_0x466fad(0x12d)]?.['url']??_0x5ef341[_0x466fad(0x12b)];if(!_0x129928)return{'updated':![],'block':_0x5ef341};const _0x1798fc=await readImageFromUrl(_0x129928);return{'updated':!![],'block':{..._0x5ef341,'source':{'type':_0x5f126b[_0x466fad(0x121)],'media_type':_0x1798fc['mediaType'],'data':_0x1798fc['data']},'url':undefined}};}function _0x3471(){const _0x1b4c57=['22565jhPczc','tool_response','TzvSc','https://','PNdLW','get','toString','updated','vtYlr','220523tIINjp','timeout','content-length','jPYZc','split','object','hzIee','WPjBj','image/png','size','base64','PostToolUse','toLowerCase','url','all','source','iKOtL','Failed\x20to\x20fetch\x20image:\x20','cLWoV','map','MvfWw','headers','1071iPXQqB','startsWith','338zERBfG','yHIYR','exec','Image\x20exceeds\x20size\x20limit\x20(','8405262Epjzox','CkGch','96VXWQTn','sQIHR','gif','jpeg','arrayBuffer','SBSHC','4687368ALqmYL','replace','webp','owwHi','image/webp','839643ipmcuN','data','2923272gkTSCY','type'];_0x3471=function(){return _0x1b4c57;};return _0x3471();}async function convertToolOutputImagesToBase64(_0x4710e5){const _0x28a63e=_0x3273,_0x4bb042={'jpQUd':function(_0x6eca89,_0x3143bd){return _0x6eca89(_0x3143bd);},'bhAsU':function(_0x3ebf3a,_0x4680b9){return _0x3ebf3a(_0x4680b9);}};if(!_0x4bb042['bhAsU'](isRecord,_0x4710e5))return{'updated':![],'output':_0x4710e5};const _0x3e48cc=_0x4710e5['content'];if(!Array['isArray'](_0x3e48cc))return{'updated':![],'output':_0x4710e5};let _0x53d847=![];const _0x4670a9=await Promise[_0x28a63e(0x12c)](_0x3e48cc[_0x28a63e(0x131)](async _0x32ac4a=>{const _0x1314d8=_0x28a63e;if(!_0x4bb042['jpQUd'](isImageBlock,_0x32ac4a))return _0x32ac4a;try{const _0x566e7a=await convertImageBlockToBase64(_0x32ac4a);if(_0x566e7a[_0x1314d8(0x11c)])_0x53d847=!![];return _0x566e7a['block'];}catch{return _0x32ac4a;}}));if(!_0x53d847)return{'updated':![],'output':_0x4710e5};return{'updated':!![],'output':{..._0x4710e5,'content':_0x4670a9}};}export function createMcpImageBase64Hook(){const _0x580dbb=_0x3273,_0x3b2cea={'yHIYR':function(_0x411af4,_0x42c09f){return _0x411af4!==_0x42c09f;},'iKOtL':_0x580dbb(0x129)};return async _0x227005=>{const _0x1da81c=_0x580dbb;if(_0x3b2cea[_0x1da81c(0x137)](_0x227005['hook_event_name'],_0x1da81c(0x129)))return{};const _0x447e88=_0x227005,{updated:_0xf6ef00,output:_0x58d69f}=await convertToolOutputImagesToBase64(_0x447e88[_0x1da81c(0x14c)]);if(!_0xf6ef00)return{};return{'hookSpecificOutput':{'hookEventName':_0x3b2cea[_0x1da81c(0x12e)],'updatedMCPToolOutput':_0x58d69f}};};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x40856d=_0x5f39;(function(_0x26ce2e,_0x17c556){const _0x51ac8f=_0x5f39,_0x49e0e8=_0x26ce2e();while(!![]){try{const _0x46de57=-parseInt(_0x51ac8f(0xab))/0x1+-parseInt(_0x51ac8f(0xa7))/0x2+parseInt(_0x51ac8f(0xac))/0x3+parseInt(_0x51ac8f(0xa6))/0x4+-parseInt(_0x51ac8f(0xaa))/0x5+parseInt(_0x51ac8f(0xa9))/0x6+parseInt(_0x51ac8f(0xaf))/0x7;if(_0x46de57===_0x17c556)break;else _0x49e0e8['push'](_0x49e0e8['shift']());}catch(_0x5b652a){_0x49e0e8['push'](_0x49e0e8['shift']());}}}(_0x3047,0xa51c6));function _0x5f39(_0x150f50,_0x5627c4){_0x150f50=_0x150f50-0xa6;const _0x30477=_0x3047();let _0x5f39fe=_0x30477[_0x150f50];return _0x5f39fe;}function _0x3047(){const _0x81ebce=['5351740kOHzHe','536964ofDyKs','trim','1396734RXpwzL','4483125JKRblh','1291309rUEgGV','3962802YXxqLe','toLowerCase','claude-sonnet-4-6','1687364pZWmoN'];_0x3047=function(){return _0x81ebce;};return _0x3047();}const VERIFY_MODEL_ALIASES={'opus':'claude-opus-4-6','sonnet':_0x40856d(0xae)};export const DEFAULT_VERIFY_MODEL=_0x40856d(0xae);export function resolveVerifyModel(_0x1f73fb){const _0x28ff76=_0x40856d,_0x17bf21={'uFLPy':function(_0x5665c8,_0xe012f2){return _0x5665c8??_0xe012f2;}};if(!_0x1f73fb)return undefined;const _0x2b951b=_0x1f73fb[_0x28ff76(0xa8)]();if(!_0x2b951b)return undefined;const _0x59fd50=VERIFY_MODEL_ALIASES[_0x2b951b[_0x28ff76(0xad)]()];return _0x17bf21['uFLPy'](_0x59fd50,_0x2b951b);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5b01f7,_0x4eca2c){var _0x329480=_0x11c3,_0x5bf8a0=_0x5b01f7();while(!![]){try{var _0x500dde=-parseInt(_0x329480(0x17a))/0x1*(parseInt(_0x329480(0x181))/0x2)+-parseInt(_0x329480(0x17d))/0x3*(-parseInt(_0x329480(0x183))/0x4)+parseInt(_0x329480(0x173))/0x5*(parseInt(_0x329480(0x17c))/0x6)+-parseInt(_0x329480(0x17f))/0x7+parseInt(_0x329480(0x185))/0x8*(parseInt(_0x329480(0x186))/0x9)+parseInt(_0x329480(0x177))/0xa+parseInt(_0x329480(0x17e))/0xb;if(_0x500dde===_0x4eca2c)break;else _0x5bf8a0['push'](_0x5bf8a0['shift']());}catch(_0x1d5169){_0x5bf8a0['push'](_0x5bf8a0['shift']());}}}(_0x5c62,0x9f499));import{homedir}from'os';import{join}from'path';function _0x11c3(_0x2b9f43,_0x23647d){_0x2b9f43=_0x2b9f43-0x173;var _0x5c6202=_0x5c62();var _0x11c372=_0x5c6202[_0x2b9f43];return _0x11c372;}import{getProjectRoot}from'./claudeConfig.js';export function getOpencodeConfigDir(_0x36ceb6){var _0x5212f5=_0x11c3,_0x2c491e={'WGilG':function(_0x33e8bf,_0x1d04b1){return _0x33e8bf===_0x1d04b1;},'wnbGF':_0x5212f5(0x175),'RIKSm':function(_0x44208f,_0x15f8b2,_0x2a5f27,_0x56206a){return _0x44208f(_0x15f8b2,_0x2a5f27,_0x56206a);},'ToAxb':function(_0x42773f){return _0x42773f();},'EKgKg':'opencode','WhNCQ':'.opencode'};if(process[_0x5212f5(0x179)]['OPENCODE_CONFIG_DIR'])return process[_0x5212f5(0x179)][_0x5212f5(0x180)];if(_0x2c491e['WGilG'](_0x36ceb6,_0x2c491e[_0x5212f5(0x182)])){if(process[_0x5212f5(0x179)][_0x5212f5(0x176)])return join(process['env']['XDG_CONFIG_HOME'],'opencode');return _0x2c491e['RIKSm'](join,_0x2c491e[_0x5212f5(0x184)](homedir),'.config',_0x2c491e[_0x5212f5(0x174)]);}return join(getProjectRoot(),_0x2c491e['WhNCQ']);}export function getOpencodeSkillsDir(_0x3e3411){var _0x22a61b=_0x11c3,_0x20d5af={'aJzjf':function(_0x55a0f7,_0x36b484,_0x1d5d76){return _0x55a0f7(_0x36b484,_0x1d5d76);}};return _0x20d5af[_0x22a61b(0x17b)](join,getOpencodeConfigDir(_0x3e3411),_0x22a61b(0x178));}function _0x5c62(){var _0x22e622=['6599690kqWJXg','skills','env','2192IVwWud','aJzjf','28620PkZtyX','177MTFOvC','1630112wMDuqh','3024203ZAiHKg','OPENCODE_CONFIG_DIR','214wNpRvd','wnbGF','12548QiUcJL','ToAxb','40632WUetIm','180dGaMcH','235RYqlGw','EKgKg','user','XDG_CONFIG_HOME'];_0x5c62=function(){return _0x22e622;};return _0x5c62();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x47fa86,_0x44ad57){const _0x178584=_0x4285,_0x27a95b=_0x47fa86();while(!![]){try{const _0x22deff=-parseInt(_0x178584(0xfd))/0x1*(-parseInt(_0x178584(0xff))/0x2)+-parseInt(_0x178584(0x111))/0x3+-parseInt(_0x178584(0x106))/0x4*(-parseInt(_0x178584(0xee))/0x5)+parseInt(_0x178584(0x110))/0x6*(parseInt(_0x178584(0x10d))/0x7)+-parseInt(_0x178584(0xf0))/0x8*(-parseInt(_0x178584(0x114))/0x9)+-parseInt(_0x178584(0xfb))/0xa+parseInt(_0x178584(0x117))/0xb*(parseInt(_0x178584(0x108))/0xc);if(_0x22deff===_0x44ad57)break;else _0x27a95b['push'](_0x27a95b['shift']());}catch(_0x51a513){_0x27a95b['push'](_0x27a95b['shift']());}}}(_0x4bf7,0x80baf));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function toPlaywrightCliSessionKey(_0x2c1522){const _0x4a5e50=_0x4285,_0x554866={'AwHLQ':function(_0x18ec63,_0x26618b){return _0x18ec63(_0x26618b);},'Slpvy':'hex'},_0x4b971e=_0x554866[_0x4a5e50(0x104)](createHash,_0x4a5e50(0x115))[_0x4a5e50(0xf5)](_0x2c1522)['digest'](_0x554866[_0x4a5e50(0xe4)])[_0x4a5e50(0xeb)](0x0,0xc);return'rg-'+_0x4b971e;}function shellQuote(_0x1eb108){return'\x27'+_0x1eb108['replace'](/'/g,'\x27\x5c\x27\x27')+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x4f7c0f){const _0xb4a286=_0x4285;return SAFE_SHELL_TOKEN[_0xb4a286(0xf2)](_0x4f7c0f)?_0x4f7c0f:shellQuote(_0x4f7c0f);}function _0x4285(_0x44d03c,_0x4eff82){_0x44d03c=_0x44d03c-0xe2;const _0x4bf726=_0x4bf7();let _0x428562=_0x4bf726[_0x44d03c];return _0x428562;}export function buildPlaywrightCliInvocation(_0x14efdb,_0x38f90d,_0x30dbd3){const _0x31f875=_0x4285,_0x10e537={'MbHup':_0x31f875(0x107),'DWcTX':function(_0x5d9627,_0x2948cc){return _0x5d9627(_0x2948cc);}},_0x5cf7b7=toPlaywrightCliSessionKey(_0x14efdb),[_0x301861=_0x31f875(0xf7)]=_0x30dbd3,_0x549a4c=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x5cf7b7,_0x31f875(0xe8),_0x38f90d,..._0x30dbd3];return{'command':_0x31f875(0x107),'args':_0x549a4c,'shellCommand':[_0x10e537[_0x31f875(0xe7)],PLAYWRIGHT_CLI_BINARY,'-s='+_0x10e537[_0x31f875(0xf4)](quoteShellArg,_0x5cf7b7),_0x31f875(0xe8),_0x10e537['DWcTX'](quoteShellArg,_0x38f90d),..._0x30dbd3[_0x31f875(0xef)](quoteShellArg)][_0x31f875(0xf6)]('\x20'),'subcommand':_0x301861};}export function buildPlaywrightCliCommandPrefix(_0x1d0f77,_0x59f3f4){const _0x46a281=_0x4285,_0x1f6d10={'SUvHt':_0x46a281(0xe8)},_0x310438=toPlaywrightCliSessionKey(_0x1d0f77);return['npx',PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x310438),_0x1f6d10[_0x46a281(0x100)],quoteShellArg(_0x59f3f4)][_0x46a281(0xf6)]('\x20');}function truncateOutput(_0x9b253d,_0x3eb29f=0x7d0){const _0xa1669b=_0x4285,_0x1089c4={'TnuCf':function(_0x4a9187,_0x41ef7f){return _0x4a9187>_0x41ef7f;},'jheRE':function(_0x9c745,_0x4e5ac3){return _0x9c745+_0x4e5ac3;},'YBJcb':'...'};return _0x1089c4['TnuCf'](_0x9b253d['length'],_0x3eb29f)?_0x1089c4['jheRE'](_0x9b253d['slice'](0x0,_0x3eb29f),_0x1089c4[_0xa1669b(0xfa)]):_0x9b253d;}function _0x4bf7(){const _0x2b9fde=['cwd','Slpvy','\x0astdout:\x20','timed\x20out\x20after\x20','MbHup','--config','playwright-cli\x20','CyBBI','slice','toString','string','3432575MMizeV','map','259288GQvkoe','KXLfg','test','env','DWcTX','update','join','unknown','script','aJTXy','YBJcb','6226190mKCneA','trim','91021VSmVAs','OgQKS','10ldYuko','SUvHt','xjpyp','pipe','stderr','AwHLQ','data','4UNlsqn','npx','12ZkdghT','sessionId','null','command','SIGTERM','31787TdtboK','match','timeoutMs','906Fbinxa','2827377EUZkRH','commandArgs','wyHPM','36fRudFp','sha256','args','1489422Cdekkl','length','kill'];_0x4bf7=function(){return _0x2b9fde;};return _0x4bf7();}export async function runPlaywrightCliCommand(_0x1425a0){const _0x53822d=_0x4285,_0x42fbae={'wyHPM':function(_0x123cfe,_0x33013e){return _0x123cfe===_0x33013e;},'KXLfg':function(_0x381e2e,_0x17d761,_0x4f9145,_0x2b60e3){return _0x381e2e(_0x17d761,_0x4f9145,_0x2b60e3);},'aJTXy':_0x53822d(0x102),'xjpyp':_0x53822d(0x105)},_0x4cad0b=buildPlaywrightCliInvocation(_0x1425a0[_0x53822d(0x109)],_0x1425a0['configPath'],_0x1425a0[_0x53822d(0x112)]);return new Promise((_0x14356a,_0x527258)=>{const _0x547563=_0x53822d,_0x24ad1a={'RVhQw':function(_0x4ed977,_0x5f54a7){return _0x4ed977(_0x5f54a7);},'CyBBI':function(_0x17487c,_0x43cb41){const _0x373aec=_0x4285;return _0x42fbae[_0x373aec(0x113)](_0x17487c,_0x43cb41);},'armCn':_0x547563(0x10a),'OgQKS':function(_0x3983c0,_0x5d887b){return _0x3983c0(_0x5d887b);}},_0x1af3cc=_0x42fbae[_0x547563(0xf1)](spawn,_0x4cad0b[_0x547563(0x10b)],_0x4cad0b[_0x547563(0x116)],{'cwd':_0x1425a0[_0x547563(0xe3)],'env':_0x1425a0[_0x547563(0xf3)],'stdio':['ignore',_0x42fbae[_0x547563(0xf9)],_0x42fbae['aJTXy']]});let _0x22bf3d='',_0x6c52e2='',_0x1d7075=![];const _0x4bda0d=_0x1425a0[_0x547563(0x10f)]&&_0x1425a0['timeoutMs']>0x0?setTimeout(()=>{const _0x4f0701=_0x547563;_0x1d7075=!![],_0x1af3cc[_0x4f0701(0xe2)](_0x4f0701(0x10c)),setTimeout(()=>{try{_0x1af3cc['kill']('SIGKILL');}catch{}},0x3e8);},_0x1425a0[_0x547563(0x10f)]):null;_0x1af3cc['stdout']?.['on'](_0x42fbae[_0x547563(0x101)],_0x3e5b7f=>{_0x22bf3d+=_0x3e5b7f['toString']();}),_0x1af3cc[_0x547563(0x103)]?.['on']('data',_0x14f0f7=>{const _0xd904a7=_0x547563;_0x6c52e2+=_0x14f0f7[_0xd904a7(0xec)]();}),_0x1af3cc['on']('error',_0x337c8f=>{if(_0x4bda0d)clearTimeout(_0x4bda0d);_0x527258(_0x337c8f);}),_0x1af3cc['on']('close',(_0x4fae01,_0x212e53)=>{const _0x5b3a44=_0x547563;if(_0x4bda0d)_0x24ad1a['RVhQw'](clearTimeout,_0x4bda0d);if(_0x24ad1a[_0x5b3a44(0xea)](_0x4fae01,0x0)){_0x14356a({'stdout':_0x22bf3d,'stderr':_0x6c52e2,'invocation':_0x4cad0b});return;}const _0x3f2852=_0x1d7075?_0x5b3a44(0xe6)+_0x1425a0[_0x5b3a44(0x10f)]+'ms':'exited\x20with\x20code='+(_0x4fae01??_0x24ad1a['armCn'])+'\x20signal='+(_0x212e53??'null');_0x527258(new Error(_0x5b3a44(0xe9)+_0x4cad0b['subcommand']+'\x20'+_0x3f2852+_0x5b3a44(0xe5)+_0x24ad1a[_0x5b3a44(0xfe)](truncateOutput,_0x22bf3d)+'\x0astderr:\x20'+_0x24ad1a['OgQKS'](truncateOutput,_0x6c52e2)));});});}export function extractBashCommand(_0x5b943c){const _0x467057=_0x4285,_0x119eb6={'KBcIN':_0x467057(0x10b),'ewATc':'cmd','SYWxt':'bash_command','pnTPc':function(_0x5a8dfe,_0x1f1900){return _0x5a8dfe??_0x1f1900;}},_0x330f12=[_0x119eb6['KBcIN'],_0x119eb6['ewATc'],_0x467057(0xf8),_0x119eb6['SYWxt']];for(const _0x5d0d16 of _0x330f12){const _0x4625ba=_0x5b943c[_0x5d0d16];if(typeof _0x4625ba===_0x467057(0xed)&&_0x4625ba[_0x467057(0xfc)]())return _0x4625ba;}const _0x3ba8df=Object['values'](_0x5b943c)['find'](_0x25ab2c=>typeof _0x25ab2c==='string'&&_0x25ab2c['trim']()[_0x467057(0x118)]>0x0);return _0x119eb6['pnTPc'](_0x3ba8df,null);}export function parsePlaywrightCliCommand(_0x1b41a2){const _0x446c55=_0x4285,_0x195c1d=_0x1b41a2[_0x446c55(0x10e)](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x195c1d?.[0x1]??null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x8f37(_0x41abaf,_0x347d87){_0x41abaf=_0x41abaf-0x88;const _0x397c26=_0x397c();let _0x8f379a=_0x397c26[_0x41abaf];return _0x8f379a;}function _0x397c(){const _0x51dceb=['869250AagTXc','255320BrCjPl','9GuVlDH','27MNxWzX','1190634XuYaLc','2750bCyatZ','12ASrFWQ','14cxkrpq','2106490QJNRUc','3232801ckyAIh','658576VXwyna'];_0x397c=function(){return _0x51dceb;};return _0x397c();}(function(_0x4f9fb2,_0x5acbac){const _0x149fe5=_0x8f37,_0x535870=_0x4f9fb2();while(!![]){try{const _0x437163=-parseInt(_0x149fe5(0x92))/0x1*(-parseInt(_0x149fe5(0x89))/0x2)+parseInt(_0x149fe5(0x8a))/0x3*(-parseInt(_0x149fe5(0x90))/0x4)+-parseInt(_0x149fe5(0x8f))/0x5+parseInt(_0x149fe5(0x88))/0x6+parseInt(_0x149fe5(0x8b))/0x7*(-parseInt(_0x149fe5(0x8e))/0x8)+-parseInt(_0x149fe5(0x91))/0x9*(-parseInt(_0x149fe5(0x8c))/0xa)+parseInt(_0x149fe5(0x8d))/0xb;if(_0x437163===_0x5acbac)break;else _0x535870['push'](_0x535870['shift']());}catch(_0x451ba5){_0x535870['push'](_0x535870['shift']());}}}(_0x397c,0x23b72));const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';export function formatProfileRequiredMessage(_0x7910e5){const _0x16f8f8=_0x7910e5?_0x7910e5(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return'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'+_0x16f8f8+'.';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x536e3c,_0x2c500d){const _0x418aa0=_0x5652,_0x440817=_0x536e3c();while(!![]){try{const _0x3baa25=parseInt(_0x418aa0(0x1cd))/0x1*(parseInt(_0x418aa0(0x1d5))/0x2)+parseInt(_0x418aa0(0x1dd))/0x3*(parseInt(_0x418aa0(0x1d0))/0x4)+-parseInt(_0x418aa0(0x1d8))/0x5*(parseInt(_0x418aa0(0x1e0))/0x6)+-parseInt(_0x418aa0(0x1d4))/0x7*(-parseInt(_0x418aa0(0x1db))/0x8)+parseInt(_0x418aa0(0x1cc))/0x9*(-parseInt(_0x418aa0(0x1d7))/0xa)+-parseInt(_0x418aa0(0x1d2))/0xb*(-parseInt(_0x418aa0(0x1ce))/0xc)+-parseInt(_0x418aa0(0x1d3))/0xd;if(_0x3baa25===_0x2c500d)break;else _0x440817['push'](_0x440817['shift']());}catch(_0x33a6e9){_0x440817['push'](_0x440817['shift']());}}}(_0x1d54,0x38768));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x1f8b11=_0x5652,_0x57d960={'VXNjf':function(_0xcde265,_0x198da1){return _0xcde265+_0x198da1;},'wrOfV':'<div\x20class=\x22ranger-banner__content\x22>','EsMAw':'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','ZzfQl':'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','nyZOE':'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','clyUA':'</div>','XfLHi':'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'},_0x43c934=_0x57d960['VXNjf'](_0x57d960[_0x1f8b11(0x1dc)]+_0x57d960['EsMAw']+'<div\x20class=\x22ranger-banner__message\x22>'+_0x57d960['ZzfQl'],_0x57d960[_0x1f8b11(0x1de)])+_0x57d960['clyUA']+_0x57d960[_0x1f8b11(0x1d9)]+_0x57d960['XfLHi'],_0x4d597f='\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';return _0x1f8b11(0x1cf)+JSON[_0x1f8b11(0x1df)](_0x43c934)+_0x1f8b11(0x1d1)+JSON[_0x1f8b11(0x1df)](_0x4d597f)+_0x1f8b11(0x1da);})());function _0x5652(_0x478532,_0x25aab1){_0x478532=_0x478532-0x1cc;const _0x1d54c8=_0x1d54();let _0x565298=_0x1d54c8[_0x478532];return _0x565298;}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}function _0x1d54(){const _0x326620=['clyUA',';\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','352miiJlx','wrOfV','1326057PpVkfP','nyZOE','stringify','6dVLNxU','1422cuYzBr','21biJRgb','34872rIhZYC','\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','4IyHsyH',';\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','1628OPYdvB','5836688YuQFWa','2198eoohWn','28802VjMkxT','addInitScript','15460QdeQYz','1319140CVHUxD'];_0x1d54=function(){return _0x326620;};return _0x1d54();}export async function addProfileSetupBanner(_0x160ffb){const _0x40f100=_0x5652;await _0x160ffb[_0x40f100(0x1d6)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1623cd,_0x3e22cd){const _0x1f74a6=_0x3aaf,_0xd9ec59=_0x1623cd();while(!![]){try{const _0x2ed605=parseInt(_0x1f74a6(0x1c1))/0x1*(-parseInt(_0x1f74a6(0x1c2))/0x2)+parseInt(_0x1f74a6(0x1af))/0x3*(-parseInt(_0x1f74a6(0x1b6))/0x4)+-parseInt(_0x1f74a6(0x1b0))/0x5*(-parseInt(_0x1f74a6(0x1bc))/0x6)+-parseInt(_0x1f74a6(0x1be))/0x7+parseInt(_0x1f74a6(0x1bd))/0x8*(parseInt(_0x1f74a6(0x1b3))/0x9)+-parseInt(_0x1f74a6(0x1bf))/0xa+parseInt(_0x1f74a6(0x1ba))/0xb;if(_0x2ed605===_0x3e22cd)break;else _0xd9ec59['push'](_0xd9ec59['shift']());}catch(_0x4737cb){_0xd9ec59['push'](_0xd9ec59['shift']());}}}(_0x4cec,0x666fe));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';function _0x4cec(){const _0x6b1297=['6087128KVmCNE','4608450KoFKFG','1218400aPyjGa','qBjwh','743803Qmmvss','2MAyLlu','537807nxXsCz','121160BLtgVS','parse','model','9oVpZof','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','warn','4BGZWIz','isArray','string','utf-8','8317683KUgBPg','message','150bcpzuK'];_0x4cec=function(){return _0x6b1297;};return _0x4cec();}function _0x3aaf(_0x4a7441,_0x247f2a){_0x4a7441=_0x4a7441-0x1af;const _0x4cecf4=_0x4cec();let _0x3aafe5=_0x4cecf4[_0x4a7441];return _0x3aafe5;}import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x40b22f={'KPXZl':function(_0x50ef50,_0x10cd7b,_0x3fac1b){return _0x50ef50(_0x10cd7b,_0x3fac1b);},'mSPkp':function(_0x4b2cd4){return _0x4b2cd4();},'AdtXB':'config.json'};return _0x40b22f['KPXZl'](join,_0x40b22f['mSPkp'](getRangerDir),_0x40b22f['AdtXB']);}export async function loadRangerConfig(){const _0x34a994=_0x3aaf,_0x198e29={'XTwTU':function(_0x9bef18){return _0x9bef18();},'SkTwC':function(_0x8636df,_0x3da6a5,_0xcf7e2){return _0x8636df(_0x3da6a5,_0xcf7e2);},'Wwcwq':function(_0x3d79a8,_0x15db9c){return _0x3d79a8!==_0x15db9c;},'qBjwh':'object','Lhwbd':function(_0x2f5100,_0xfe979f){return _0x2f5100===_0xfe979f;},'KQpwg':function(_0x2faed0,_0x278f2b){return _0x2faed0 instanceof _0x278f2b;},'ETYTL':function(_0x5c2d64,_0x2c600f){return _0x5c2d64(_0x2c600f);}},_0x2165f8=_0x198e29['XTwTU'](getRangerConfigPath);if(!existsSync(_0x2165f8))return{};try{const _0x291aca=await _0x198e29['SkTwC'](readFile,_0x2165f8,_0x34a994(0x1b9)),_0x2ae923=JSON[_0x34a994(0x1b1)](_0x291aca);if(!_0x2ae923||_0x198e29['Wwcwq'](typeof _0x2ae923,_0x198e29[_0x34a994(0x1c0)])||Array[_0x34a994(0x1b7)](_0x2ae923))return{};const _0x69d8a8={},_0x3bb46c=_0x2ae923[_0x34a994(0x1b2)];return _0x198e29['Lhwbd'](typeof _0x3bb46c,_0x34a994(0x1b8))&&(_0x69d8a8[_0x34a994(0x1b2)]=_0x3bb46c),_0x69d8a8;}catch(_0x515355){const _0x15b31c=_0x198e29['KQpwg'](_0x515355,Error)?_0x515355[_0x34a994(0x1bb)]:_0x198e29['ETYTL'](String,_0x515355);return console[_0x34a994(0x1b5)](_0x34a994(0x1b4)+_0x2165f8+':\x20'+_0x15b31c),{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x4a30(_0x39fe62,_0x5df138){_0x39fe62=_0x39fe62-0x12e;const _0x26854f=_0x2685();let _0x4a3003=_0x26854f[_0x39fe62];return _0x4a3003;}(function(_0x19077f,_0x33db9a){const _0x39871d=_0x4a30,_0x36a92f=_0x19077f();while(!![]){try{const _0x2a9689=-parseInt(_0x39871d(0x134))/0x1*(-parseInt(_0x39871d(0x137))/0x2)+-parseInt(_0x39871d(0x132))/0x3*(-parseInt(_0x39871d(0x130))/0x4)+parseInt(_0x39871d(0x136))/0x5*(parseInt(_0x39871d(0x133))/0x6)+-parseInt(_0x39871d(0x13e))/0x7*(-parseInt(_0x39871d(0x13d))/0x8)+parseInt(_0x39871d(0x135))/0x9+parseInt(_0x39871d(0x13b))/0xa*(parseInt(_0x39871d(0x140))/0xb)+-parseInt(_0x39871d(0x142))/0xc;if(_0x2a9689===_0x33db9a)break;else _0x36a92f['push'](_0x36a92f['shift']());}catch(_0x4908b3){_0x36a92f['push'](_0x36a92f['shift']());}}}(_0x2685,0xbd7cb));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x23f437=_0x4a30,_0x7554a2={'uQFkl':function(_0x30c673,_0x4d5011){return _0x30c673!==_0x4d5011;},'mxSvp':function(_0x203df5,_0x1a975e,_0x2d2776){return _0x203df5(_0x1a975e,_0x2d2776);},'HLubx':function(_0x2ef004,_0x3e2354){return _0x2ef004(_0x3e2354);},'ICMBF':_0x23f437(0x138),'rcZCB':function(_0x17e255){return _0x17e255();}};let _0x6bfe55=process['cwd']();const _0x20f43b=parse(_0x6bfe55)['root'];while(_0x7554a2[_0x23f437(0x13a)](_0x6bfe55,_0x20f43b)){if(existsSync(_0x7554a2[_0x23f437(0x12e)](join,_0x6bfe55,_0x23f437(0x138))))return _0x6bfe55;_0x6bfe55=_0x7554a2['HLubx'](dirname,_0x6bfe55);}if(existsSync(join(_0x20f43b,_0x7554a2[_0x23f437(0x13f)])))return _0x20f43b;const _0x507ee1=_0x7554a2[_0x23f437(0x131)](findGitRoot);if(_0x507ee1)return _0x507ee1;return process['cwd']();}export function getRangerDir(){const _0x14a7dd={'rnqqu':function(_0x5f27c7,_0x458de4,_0x52868a){return _0x5f27c7(_0x458de4,_0x52868a);}};return _0x14a7dd['rnqqu'](join,getRangerRoot(),'.ranger');}export function findGitRoot(){const _0x1aae7e=_0x4a30,_0x2175c7={'gavvR':function(_0x411f82,_0x330046){return _0x411f82!==_0x330046;},'YstAm':function(_0x14cccd,_0x52bd11){return _0x14cccd(_0x52bd11);},'RoapQ':function(_0x280ad6,_0x28718c,_0x35b236){return _0x280ad6(_0x28718c,_0x35b236);},'YNBZC':function(_0x32ca21,_0x242423){return _0x32ca21(_0x242423);},'jIwqI':function(_0x24a5dc,_0x1ad8c8,_0x275f1a){return _0x24a5dc(_0x1ad8c8,_0x275f1a);},'cHYWL':_0x1aae7e(0x145)};let _0x156475=process['cwd']();const _0x40adf4=parse(_0x156475)[_0x1aae7e(0x12f)];while(_0x2175c7[_0x1aae7e(0x139)](_0x156475,_0x40adf4)){if(_0x2175c7[_0x1aae7e(0x143)](existsSync,_0x2175c7[_0x1aae7e(0x13c)](join,_0x156475,'.git')))return _0x156475;_0x156475=_0x2175c7['YNBZC'](dirname,_0x156475);}if(existsSync(_0x2175c7[_0x1aae7e(0x144)](join,_0x40adf4,_0x2175c7['cHYWL'])))return _0x40adf4;return null;}export function getRangerHomeDir(){const _0x2d3e05=_0x4a30,_0x8e493b={'rgscd':function(_0x3b3918,_0xa1d33b,_0x527e67){return _0x3b3918(_0xa1d33b,_0x527e67);},'ipnTN':'.ranger'};return _0x8e493b['rgscd'](join,homedir(),_0x8e493b[_0x2d3e05(0x141)]);}function _0x2685(){const _0x28d8d7=['gavvR','uQFkl','99790bLCXsZ','RoapQ','13432yRrJIJ','3052BwsYsW','ICMBF','231eCRqYS','ipnTN','45882912gmyLaC','YstAm','jIwqI','.git','mxSvp','root','92eJjkpr','rcZCB','47073AxCOHA','8261454xDFjTs','4645JkpqTe','11179260FtlLOI','5bxmMjm','292RMcReq','.ranger'];_0x2685=function(){return _0x28d8d7;};return _0x2685();}
|