@ranger-testing/ranger-cli 2.1.8 → 2.2.0
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/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 -0
- 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/verifyInBrowser.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5e6be6,_0x3eddb3){const _0x237036=_0x1bac,_0x143870=_0x5e6be6();while(!![]){try{const _0x49faec=-parseInt(_0x237036(0x1b7))/0x1*(parseInt(_0x237036(0x1ac))/0x2)+parseInt(_0x237036(0x1c8))/0x3+-parseInt(_0x237036(0x1cf))/0x4+-parseInt(_0x237036(0x1b5))/0x5*(parseInt(_0x237036(0x1e9))/0x6)+parseInt(_0x237036(0x1ec))/0x7*(parseInt(_0x237036(0x1b0))/0x8)+-parseInt(_0x237036(0x1d1))/0x9+-parseInt(_0x237036(0x1e3))/0xa*(-parseInt(_0x237036(0x1ba))/0xb);if(_0x49faec===_0x3eddb3)break;else _0x143870['push'](_0x143870['shift']());}catch(_0x53ec51){_0x143870['push'](_0x143870['shift']());}}}(_0x139e,0xaf18b));function _0x1bac(_0x42ef14,_0x55190a){_0x42ef14=_0x42ef14-0x1ac;const _0x139eeb=_0x139e();let _0x1bacf9=_0x139eeb[_0x42ef14];return _0x1bacf9;}export function buildTraceViewerUrl(_0x24c152){const _0x1cf161=_0x1bac,_0x80b0dd={'HhjfL':function(_0x68f7b6,_0xdb0d1c){return _0x68f7b6(_0xdb0d1c);}},_0x4b200b=_0x80b0dd[_0x1cf161(0x1df)](encodeURIComponent,_0x24c152);return'https://trace.playwright.dev/?trace='+_0x4b200b;}function getStatusEmoji(_0x2d5605){const _0x43a858=_0x1bac,_0x5e1858={'Jkwlg':'in_progress','zCcNH':_0x43a858(0x1c0),'Rhaqn':_0x43a858(0x1bd)};switch(_0x2d5605){case'verified':case _0x43a858(0x1dc):return'✅';case'pending':case _0x5e1858[_0x43a858(0x1b9)]:return'🔄';case _0x5e1858[_0x43a858(0x1d8)]:return'🟠';case _0x43a858(0x1c6):return'🛑';case _0x5e1858[_0x43a858(0x1b6)]:return'⛔';default:return'❓';}}function formatDuration(_0x4a1d2b){const _0x45bd7f=_0x1bac,_0x5116b0={'AMAcX':function(_0x586b68,_0x5574c3){return _0x586b68===_0x5574c3;},'ORSJc':_0x45bd7f(0x1be),'qNrOJ':function(_0x2e3d67,_0x2d321c){return _0x2e3d67/_0x2d321c;},'iffor':function(_0xe80b52,_0x8c60ae){return _0xe80b52/_0x8c60ae;}};if(_0x5116b0[_0x45bd7f(0x1e5)](_0x4a1d2b,null)||_0x4a1d2b===undefined)return _0x5116b0[_0x45bd7f(0x1ce)];if(_0x4a1d2b<0x3e8)return _0x4a1d2b+'ms';const _0x10bbe2=Math[_0x45bd7f(0x1c5)](_0x5116b0[_0x45bd7f(0x1d0)](_0x4a1d2b,0x3e8));if(_0x10bbe2<0x3c)return _0x10bbe2+'s';const _0x4b102b=Math['floor'](_0x5116b0['iffor'](_0x10bbe2,0x3c)),_0x5898f9=_0x10bbe2%0x3c;return _0x4b102b+'m\x20'+_0x5898f9+'s';}function _0x139e(){const _0x275c94=['blockedReason','Session\x20','length','xywNI','find','blockedAt','zCcNH','-\x20**Closed:**\x20','-\x20**Verified:**\x20','completedAt','completed','in_progress','closedAt','HhjfL','traceUrl','rtTbg','LVFyR','21091210QwCbZm','xcHzm','AMAcX','join','verifiedAt','IInaZ','2875020UKqomH','currentSession','gitBranch','7BKLfQy','toLocaleDateString','YzFSR','##\x20Description','browserSessionId','agentResponse','-\x20**Blocked:**\x20','|\x20Session\x20|\x20Scenario\x20|\x20Status\x20|\x20Duration\x20|\x20Date\x20|','rfgnJ','-\x20**Summary:**\x20',':\x20Awaiting\x20Review','26adJOQB','iteration','filter','description','9512264IDfhLT','\x20|\x20','verified','##\x20Blocking\x20Issues','createdAt','10vUDDFf','Rhaqn','107722RTgwQK','-\x20**Reason:**\x20','Jkwlg','11XGerzA','**Status:**\x20','**Created:**\x20','closed','N/A','cCBzj','incomplete','short','GeZgg','push','riHZM','floor','blocked','status','3649119RLzzAp',':\x20In\x20Progress','checklistItemId','numeric','durationMs','|---------|----------|--------|----------|------|','ORSJc','655012FkFvCB','qNrOJ','11473677ARMLHF'];_0x139e=function(){return _0x275c94;};return _0x139e();}function formatDate(_0xd73fb4){const _0x191945=_0x1bac,_0x104b58={'LVFyR':_0x191945(0x1cb),'rfgnJ':_0x191945(0x1c1)};if(!_0xd73fb4)return'N/A';return new Date(_0xd73fb4)[_0x191945(0x1ed)]('en-US',{'year':_0x104b58[_0x191945(0x1e2)],'month':_0x104b58[_0x191945(0x1f4)],'day':'numeric'});}export function generateFeatureReport(_0x240812){const _0x14f224=_0x1bac,_0x1207e1={'YzFSR':'Completed','riHZM':'ready','xywNI':_0x14f224(0x1dd),'zrhVT':'Unknown','cCBzj':_0x14f224(0x1ef),'MLEEZ':'verified','VgiFn':function(_0x364cbe,_0xf36e){return _0x364cbe(_0xf36e);},'xcHzm':function(_0x430cf9,_0x23b91a){return _0x430cf9===_0x23b91a;},'IInaZ':_0x14f224(0x1bd),'xpOxX':_0x14f224(0x1c0),'OPEKc':function(_0x539b09,_0x4d1165){return _0x539b09(_0x4d1165);},'rABxw':function(_0x1493a2,_0x2f5707){return _0x1493a2>_0x2f5707;},'GeZgg':'None','rtTbg':function(_0x346ed9,_0x59ae4d){return _0x346ed9+_0x59ae4d;},'tKQld':function(_0x439b86,_0x43baa8){return _0x439b86===_0x43baa8;}},{feature:_0x76d2fc,stats:_0x4d82a5,checklistItems:_0x449237,sessions:_0x171558}=_0x240812,_0x480d8d=[];_0x480d8d[_0x14f224(0x1c3)]('#\x20Feature\x20Review\x20Report:\x20'+_0x76d2fc['name']),_0x480d8d[_0x14f224(0x1c3)]('');let _0x1d83b9,_0x1a2ce9;if(_0x76d2fc[_0x14f224(0x1db)])_0x1d83b9=_0x1207e1[_0x14f224(0x1ee)],_0x1a2ce9='✅';else{if(_0x76d2fc['currentSession']){const _0x2c34ee=_0x76d2fc[_0x14f224(0x1ea)]['status'];switch(_0x2c34ee){case _0x1207e1[_0x14f224(0x1c4)]:_0x1d83b9=_0x14f224(0x1d3)+_0x76d2fc['currentSession'][_0x14f224(0x1ad)]+':\x20Ready',_0x1a2ce9='▶️';break;case _0x1207e1[_0x14f224(0x1d5)]:_0x1d83b9='Session\x20'+_0x76d2fc[_0x14f224(0x1ea)][_0x14f224(0x1ad)]+_0x14f224(0x1c9),_0x1a2ce9='🔄';break;case _0x14f224(0x1dc):_0x1d83b9=_0x14f224(0x1d3)+_0x76d2fc[_0x14f224(0x1ea)]['iteration']+_0x14f224(0x1f6),_0x1a2ce9='📊';break;default:_0x1d83b9=_0x1207e1['zrhVT'],_0x1a2ce9='❓';}}else _0x1d83b9='No\x20Session',_0x1a2ce9='⬜';}_0x480d8d[_0x14f224(0x1c3)](_0x14f224(0x1bb)+_0x1a2ce9+'\x20'+_0x1d83b9),_0x480d8d['push'](_0x14f224(0x1bc)+formatDate(_0x76d2fc[_0x14f224(0x1b4)]));_0x76d2fc['completedAt']&&_0x480d8d[_0x14f224(0x1c3)]('**Completed:**\x20'+formatDate(_0x76d2fc[_0x14f224(0x1db)]));_0x76d2fc['gitRepoUrl']&&_0x480d8d['push']('**Repository:**\x20'+_0x76d2fc['gitRepoUrl']);_0x76d2fc[_0x14f224(0x1eb)]&&_0x480d8d['push']('**Branch:**\x20'+_0x76d2fc[_0x14f224(0x1eb)]);_0x480d8d[_0x14f224(0x1c3)]('');_0x76d2fc[_0x14f224(0x1af)]&&(_0x480d8d['push'](_0x1207e1[_0x14f224(0x1bf)]),_0x480d8d[_0x14f224(0x1c3)](''),_0x480d8d['push'](_0x76d2fc[_0x14f224(0x1af)]),_0x480d8d['push'](''));const _0x239f4b=_0x449237['filter'](_0x525b16=>_0x525b16[_0x14f224(0x1c7)]!==_0x14f224(0x1bd)),_0x34065b=_0x449237[_0x14f224(0x1ae)](_0x340fd0=>_0x340fd0['status']===_0x14f224(0x1b2))['length'];_0x480d8d['push']('##\x20Scenario\x20Progress\x20('+_0x34065b+'/'+_0x239f4b[_0x14f224(0x1d4)]+'\x20verified)'),_0x480d8d[_0x14f224(0x1c3)]('');for(const _0x1aa9aa of _0x449237){const _0x3efdc5=getStatusEmoji(_0x1aa9aa['status']),_0x16eff5=_0x1aa9aa[_0x14f224(0x1c7)]===_0x14f224(0x1bd),_0x33a359=_0x16eff5?'~~':'',_0x3dcad2=_0x16eff5?'~~':'';_0x480d8d[_0x14f224(0x1c3)]('###\x20'+_0x3efdc5+'\x20'+_0x33a359+_0x1aa9aa[_0x14f224(0x1af)]+_0x3dcad2),_0x480d8d['push']('');_0x1aa9aa[_0x14f224(0x1c7)]===_0x1207e1['MLEEZ']&&_0x1aa9aa['verifiedAt']&&_0x480d8d['push'](_0x14f224(0x1da)+formatDate(_0x1aa9aa[_0x14f224(0x1e7)]));_0x1aa9aa['status']===_0x14f224(0x1c6)&&_0x1aa9aa[_0x14f224(0x1d7)]&&(_0x480d8d[_0x14f224(0x1c3)](_0x14f224(0x1f2)+_0x1207e1['VgiFn'](formatDate,_0x1aa9aa['blockedAt'])),_0x1aa9aa[_0x14f224(0x1d2)]&&_0x480d8d[_0x14f224(0x1c3)](_0x14f224(0x1b8)+_0x1aa9aa['blockedReason']));_0x1207e1[_0x14f224(0x1e4)](_0x1aa9aa[_0x14f224(0x1c7)],_0x1207e1[_0x14f224(0x1e8)])&&_0x1aa9aa[_0x14f224(0x1de)]&&(_0x480d8d['push'](_0x14f224(0x1d9)+formatDate(_0x1aa9aa[_0x14f224(0x1de)])),_0x1aa9aa['canceledReason']&&_0x480d8d[_0x14f224(0x1c3)]('-\x20**Reason:**\x20'+_0x1aa9aa['canceledReason']));_0x1aa9aa['status']===_0x1207e1['xpOxX']&&_0x480d8d[_0x14f224(0x1c3)]('-\x20**Status:**\x20Incomplete\x20-\x20requires\x20further\x20work');if(_0x1aa9aa['browserSessionId']){_0x480d8d[_0x14f224(0x1c3)]('-\x20**Session:**\x20'+_0x1aa9aa[_0x14f224(0x1f0)]);const _0x22f0bf=_0x171558[_0x14f224(0x1d6)](_0x215278=>_0x215278['id']===_0x1aa9aa[_0x14f224(0x1f0)]);_0x22f0bf&&(_0x22f0bf['agentResponse']&&_0x480d8d['push'](_0x14f224(0x1f5)+_0x22f0bf[_0x14f224(0x1f1)]),_0x22f0bf['traceUrl']&&_0x480d8d['push']('-\x20**Trace:**\x20[View\x20in\x20Playwright]('+_0x1207e1['OPEKc'](buildTraceViewerUrl,_0x22f0bf[_0x14f224(0x1e0)])+')'));}_0x480d8d[_0x14f224(0x1c3)]('');}const _0x4ddc13=_0x449237[_0x14f224(0x1ae)](_0x3e2c82=>_0x3e2c82[_0x14f224(0x1c7)]==='blocked');if(_0x1207e1['rABxw'](_0x4ddc13[_0x14f224(0x1d4)],0x0)){_0x480d8d['push'](_0x14f224(0x1b3)),_0x480d8d[_0x14f224(0x1c3)]('');for(const _0x3f0db2 of _0x4ddc13){_0x480d8d['push']('-\x20**'+_0x3f0db2['description']+'**:\x20'+(_0x3f0db2['blockedReason']||'No\x20reason\x20provided'));}_0x480d8d[_0x14f224(0x1c3)]('');}else _0x480d8d[_0x14f224(0x1c3)]('##\x20Blocking\x20Issues'),_0x480d8d[_0x14f224(0x1c3)](''),_0x480d8d[_0x14f224(0x1c3)](_0x1207e1[_0x14f224(0x1c2)]),_0x480d8d['push']('');if(_0x171558['length']>0x0){_0x480d8d['push']('##\x20All\x20Verification\x20Sessions'),_0x480d8d[_0x14f224(0x1c3)](''),_0x480d8d['push'](_0x14f224(0x1f3)),_0x480d8d[_0x14f224(0x1c3)](_0x14f224(0x1cd));for(const _0x40f9fd of _0x171558){const _0x385719=_0x40f9fd[_0x14f224(0x1ca)]?_0x449237[_0x14f224(0x1d6)](_0x2f2d8d=>_0x2f2d8d['id']===_0x40f9fd['checklistItemId']):null,_0x4f5175=_0x385719?_0x1207e1[_0x14f224(0x1e1)](_0x385719[_0x14f224(0x1af)]['substring'](0x0,0x1e),_0x385719[_0x14f224(0x1af)][_0x14f224(0x1d4)]>0x1e?'...':''):_0x14f224(0x1be),_0x3e6a02=_0x1207e1[_0x14f224(0x1e4)](_0x40f9fd['status'],'completed')?'✅':_0x1207e1['tKQld'](_0x40f9fd[_0x14f224(0x1c7)],'failed')?'❌':'🔄';_0x480d8d['push']('|\x20'+_0x40f9fd['id']+'\x20|\x20'+_0x4f5175+_0x14f224(0x1b1)+_0x3e6a02+'\x20'+_0x40f9fd['status']+_0x14f224(0x1b1)+formatDuration(_0x40f9fd[_0x14f224(0x1cc)])+_0x14f224(0x1b1)+formatDate(_0x40f9fd[_0x14f224(0x1b4)])+'\x20|');}_0x480d8d[_0x14f224(0x1c3)]('');}return _0x480d8d[_0x14f224(0x1e6)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x11e1ec=_0x3753;(function(_0x147b40,_0x325b4b){const _0x291315=_0x3753,_0x752173=_0x147b40();while(!![]){try{const _0x1935b1=parseInt(_0x291315(0x170))/0x1+parseInt(_0x291315(0x145))/0x2*(-parseInt(_0x291315(0x16d))/0x3)+-parseInt(_0x291315(0x17d))/0x4*(-parseInt(_0x291315(0x180))/0x5)+parseInt(_0x291315(0x14c))/0x6+-parseInt(_0x291315(0x168))/0x7+-parseInt(_0x291315(0x14f))/0x8*(-parseInt(_0x291315(0x151))/0x9)+-parseInt(_0x291315(0x173))/0xa;if(_0x1935b1===_0x325b4b)break;else _0x752173['push'](_0x752173['shift']());}catch(_0x5e0740){_0x752173['push'](_0x752173['shift']());}}}(_0x4428,0xaf7ed));import{readFileSync,writeFileSync}from'fs';function _0x3753(_0x24a8ac,_0x1d8316){_0x24a8ac=_0x24a8ac-0x145;const _0x44285c=_0x4428();let _0x375341=_0x44285c[_0x24a8ac];return _0x375341;}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(_0x2cb846,_0x10cdeb){const _0x43b1af=_0x3753,_0x17995a={'EZqDx':function(_0xb8513b,_0x42a07a){return _0xb8513b&_0x42a07a;},'yqExo':function(_0x33d5a5,_0x59b4a0){return _0x33d5a5+_0x59b4a0;}};if(_0x10cdeb>=_0x2cb846[_0x43b1af(0x158)])return[0x0,0x0];const _0x429cdd=_0x2cb846[_0x10cdeb];let _0x52b270=0x1,_0x57f433=0x80;while(_0x52b270<=0x8&&!_0x17995a['EZqDx'](_0x429cdd,_0x57f433)){_0x52b270++,_0x57f433>>=0x1;}if(_0x10cdeb+_0x52b270>_0x2cb846['length'])return[0x0,0x0];let _0x1f8410=_0x429cdd&_0x57f433-0x1;for(let _0x439a8d=0x1;_0x439a8d<_0x52b270;_0x439a8d++){_0x1f8410=_0x1f8410*0x100+_0x2cb846[_0x17995a['yqExo'](_0x10cdeb,_0x439a8d)];}return[_0x1f8410,_0x52b270];}function readId(_0x2782bf,_0xe88d24){const _0xab287d=_0x3753,_0x3250a4={'gmDkW':function(_0x2810a6,_0x24784a){return _0x2810a6>=_0x24784a;},'emDFg':function(_0x40772d,_0x482045){return _0x40772d<_0x482045;},'fhVtA':function(_0x4f88f3,_0xee613f){return _0x4f88f3+_0xee613f;}};if(_0xe88d24>=_0x2782bf[_0xab287d(0x158)])return[0x0,0x0];const _0x452349=_0x2782bf[_0xe88d24];let _0x17e794;if(_0x3250a4[_0xab287d(0x16b)](_0x452349,0x80))_0x17e794=0x1;else{if(_0x452349>=0x40)_0x17e794=0x2;else{if(_0x452349>=0x20)_0x17e794=0x3;else{if(_0x452349>=0x10)_0x17e794=0x4;else return[_0x452349,0x1];}}}if(_0xe88d24+_0x17e794>_0x2782bf['length'])return[0x0,0x0];let _0x1cfb27=0x0;for(let _0x58c38c=0x0;_0x3250a4[_0xab287d(0x176)](_0x58c38c,_0x17e794);_0x58c38c++){_0x1cfb27=_0x3250a4[_0xab287d(0x175)](_0x1cfb27*0x100,_0x2782bf[_0x3250a4[_0xab287d(0x175)](_0xe88d24,_0x58c38c)]);}return[_0x1cfb27,_0x17e794];}function readUint(_0x42a4c8,_0x301f3f,_0x3e863c){const _0x29f4a0=_0x3753,_0x3f2f02={'GvTcI':function(_0x5c9c53,_0x384241){return _0x5c9c53+_0x384241;},'NNPdP':function(_0x7ee6e5,_0x3df648){return _0x7ee6e5*_0x3df648;}};let _0x323f93=0x0;for(let _0x30a7a3=0x0;_0x30a7a3<_0x3e863c;_0x30a7a3++){_0x323f93=_0x3f2f02[_0x29f4a0(0x150)](_0x3f2f02['NNPdP'](_0x323f93,0x100),_0x42a4c8[_0x301f3f+_0x30a7a3]);}return _0x323f93;}function isUnknownSize(_0x2ceec5,_0x18d9f0){const _0xb98f1f=_0x3753,_0x29dcc3={'slKHg':function(_0x1af1f6,_0x15241b){return _0x1af1f6*_0x15241b;}};return _0x2ceec5===Math['pow'](0x2,_0x29dcc3[_0xb98f1f(0x147)](0x7,_0x18d9f0))-0x1;}function writeId(_0x533032){const _0xfe1a2d=_0x3753,_0x34baa9={'KMnVd':function(_0x1bcbc3,_0x15cdcc){return _0x1bcbc3<=_0x15cdcc;},'iGzyu':function(_0x109bef,_0x351af5){return _0x109bef>>_0x351af5;},'Srdzq':function(_0x4dd9f1,_0x273224){return _0x4dd9f1>>_0x273224;},'PyEVs':function(_0x552989,_0x5f76a0){return _0x552989&_0x5f76a0;},'thoHN':function(_0x3375aa,_0x1cb00d){return _0x3375aa>>_0x1cb00d;},'cuemC':function(_0x2ff186,_0x556f73){return _0x2ff186&_0x556f73;}};if(_0x34baa9[_0xfe1a2d(0x155)](_0x533032,0xff))return Buffer[_0xfe1a2d(0x152)]([_0x533032]);if(_0x34baa9[_0xfe1a2d(0x155)](_0x533032,0xffff))return Buffer['from']([_0x34baa9[_0xfe1a2d(0x148)](_0x533032,0x8)&0xff,_0x533032&0xff]);if(_0x533032<=0xffffff)return Buffer[_0xfe1a2d(0x152)]([_0x34baa9['Srdzq'](_0x533032,0x10)&0xff,_0x34baa9[_0xfe1a2d(0x15b)](_0x533032>>0x8,0xff),_0x533032&0xff]);return Buffer[_0xfe1a2d(0x152)]([_0x533032>>0x18&0xff,_0x34baa9[_0xfe1a2d(0x15b)](_0x34baa9['thoHN'](_0x533032,0x10),0xff),_0x34baa9['cuemC'](_0x533032>>0x8,0xff),_0x533032&0xff]);}function writeVint(_0x294789,_0x5819c1){const _0xaf8048=_0x3753,_0x5eb583={'JlZxE':function(_0x547280,_0xc552d2){return _0x547280||_0xc552d2;},'SYJxH':function(_0x14f647,_0x447ebd){return _0x14f647-_0x447ebd;},'pdudS':function(_0x5494db,_0x3b1d73){return _0x5494db*_0x3b1d73;},'EAsAz':function(_0x85ef1b,_0x4e49a1){return _0x85ef1b<<_0x4e49a1;}};let _0x250f4b=_0x5eb583[_0xaf8048(0x153)](_0x5819c1,0x1);while(_0x5eb583['SYJxH'](Math['pow'](0x2,_0x5eb583[_0xaf8048(0x15e)](0x7,_0x250f4b)),0x2)<_0x294789)_0x250f4b++;const _0x51efe4=Buffer[_0xaf8048(0x14b)](_0x250f4b);for(let _0x10dd83=_0x250f4b-0x1;_0x10dd83>=0x0;_0x10dd83--){_0x51efe4[_0x10dd83]=_0x294789&0xff,_0x294789=Math['floor'](_0x294789/0x100);}return _0x51efe4[0x0]|=_0x5eb583['EAsAz'](0x1,_0x5eb583['SYJxH'](0x8,_0x250f4b)),_0x51efe4;}function writeFloat64(_0x3ff9a2){const _0x3a3186=Buffer['alloc'](0x8);return _0x3a3186['writeDoubleBE'](_0x3ff9a2,0x0),_0x3a3186;}function writeVoid(_0x7ba46c){const _0x14e447=_0x3753,_0x1aed7f={'skMbb':function(_0x473181,_0x4796bc){return _0x473181<=_0x4796bc;},'HmsOR':function(_0x5e4614,_0x1ecf64){return _0x5e4614>=_0x1ecf64;},'lOZJO':function(_0x6b62b7,_0x617368){return _0x6b62b7<=_0x617368;},'smwOw':function(_0x190947,_0x19b0da){return _0x190947-_0x19b0da;}};for(let _0x52d8e5=0x1;_0x1aed7f['skMbb'](_0x52d8e5,0x8);_0x52d8e5++){const _0x5ce02f=_0x7ba46c-0x1-_0x52d8e5;if(_0x1aed7f['HmsOR'](_0x5ce02f,0x0)&&_0x1aed7f[_0x14e447(0x17b)](_0x5ce02f,_0x1aed7f['smwOw'](Math['pow'](0x2,0x7*_0x52d8e5),0x2)))return Buffer[_0x14e447(0x161)]([Buffer[_0x14e447(0x152)]([ID_VOID]),writeVint(_0x5ce02f,_0x52d8e5),Buffer[_0x14e447(0x14b)](_0x5ce02f)]);}return Buffer['alloc'](0x0);}function findElement(_0x10a62a,_0xbf6e36,_0x5ac7aa,_0x1d2ee7){const _0x5ceb3a=_0x3753,_0x456357={'gatsB':function(_0x2e8c03,_0x5e6ccb){return _0x2e8c03<_0x5e6ccb;},'IXykr':function(_0xfb4e2b,_0x5c9c20,_0x1fa2cd){return _0xfb4e2b(_0x5c9c20,_0x1fa2cd);},'vgcZY':function(_0x2aa4a6,_0x4dd1ce,_0x2f6511){return _0x2aa4a6(_0x4dd1ce,_0x2f6511);},'dwfGT':function(_0x5d2a57,_0x4f2cb5){return _0x5d2a57===_0x4f2cb5;},'tGZas':function(_0x4a9be7,_0x282bd9){return _0x4a9be7+_0x282bd9;},'fnjKL':function(_0x342ba4,_0x96a06e){return _0x342ba4+_0x96a06e;},'TlOrt':function(_0x1da356,_0x3c221f,_0x182de2){return _0x1da356(_0x3c221f,_0x182de2);}};let _0x2d58a2=_0xbf6e36;while(_0x456357['gatsB'](_0x2d58a2,_0x5ac7aa)){const [_0x142cfc,_0x37da06]=_0x456357['IXykr'](readId,_0x10a62a,_0x2d58a2),[_0x2da0e4,_0x3f5a71]=_0x456357[_0x5ceb3a(0x17e)](readVint,_0x10a62a,_0x2d58a2+_0x37da06);if(_0x456357[_0x5ceb3a(0x16f)](_0x142cfc,_0x1d2ee7))return{'offset':_0x2d58a2,'idLen':_0x37da06,'sizeLen':_0x3f5a71,'dataSize':_0x2da0e4,'dataOffset':_0x456357[_0x5ceb3a(0x164)](_0x456357['fnjKL'](_0x2d58a2,_0x37da06),_0x3f5a71)};if(_0x456357[_0x5ceb3a(0x14d)](isUnknownSize,_0x2da0e4,_0x3f5a71))break;_0x2d58a2+=_0x456357[_0x5ceb3a(0x164)](_0x37da06,_0x3f5a71)+_0x2da0e4;}return null;}function computeDurationMs(_0x58b594,_0x129acc){const _0x364739=_0x3753,_0x3734f8={'lGeGE':function(_0x310efa,_0x3646b2,_0x17a30d){return _0x310efa(_0x3646b2,_0x17a30d);},'qIMKt':function(_0x59eebf,_0x181d65){return _0x59eebf!==_0x181d65;},'jtunS':function(_0x353d8a,_0x2b39b0){return _0x353d8a+_0x2b39b0;},'pNUip':function(_0x57d798,_0x2b5a96){return _0x57d798+_0x2b5a96;},'MNLWM':function(_0x198f95,_0x3ba6f8){return _0x198f95===_0x3ba6f8;},'uhAgI':function(_0x39100d,_0x563c6a,_0x186fe9){return _0x39100d(_0x563c6a,_0x186fe9);},'EowSa':function(_0xc52729,_0xbc615){return _0xc52729+_0xbc615;},'jRupQ':function(_0x7f49b3,_0x139ba3,_0x2498b5){return _0x7f49b3(_0x139ba3,_0x2498b5);},'rQFFr':function(_0x19a5d7,_0x4b7ed3){return _0x19a5d7+_0x4b7ed3;},'DhNfg':function(_0x564fc0,_0x1ac362){return _0x564fc0+_0x1ac362;},'JDfOE':function(_0x19ebca,_0x2e9923){return _0x19ebca+_0x2e9923;}};let _0x5e59ec=0x0;const _0x330921=Buffer[_0x364739(0x152)]([0x1f,0x43,0xb6,0x75]);let _0xac4082=_0x58b594['indexOf'](_0x330921);if(_0xac4082===-0x1)return 0x0;while(_0xac4082<_0x58b594['length']){const [_0x507559,_0x27d4a6]=_0x3734f8[_0x364739(0x174)](readId,_0x58b594,_0xac4082);if(_0x3734f8[_0x364739(0x14a)](_0x507559,ID_CLUSTER))break;const [_0x16ff92,_0x16d783]=readVint(_0x58b594,_0x3734f8[_0x364739(0x15c)](_0xac4082,_0x27d4a6)),_0x240e08=_0x3734f8['pNUip'](_0xac4082+_0x27d4a6,_0x16d783),_0x3d46f5=isUnknownSize(_0x16ff92,_0x16d783);let _0x25f6be;if(_0x3d46f5){let _0x52fe92=_0x240e08;while(_0x52fe92<_0x58b594['length']-0x4){const [_0x482306,_0x409c46]=_0x3734f8['lGeGE'](readId,_0x58b594,_0x52fe92);if(_0x3734f8[_0x364739(0x165)](_0x482306,ID_CLUSTER)){_0x25f6be=_0x52fe92;break;}const [_0x698ebb,_0x1549af]=_0x3734f8['uhAgI'](readVint,_0x58b594,_0x52fe92+_0x409c46);if(isUnknownSize(_0x698ebb,_0x1549af)){_0x25f6be=_0x58b594[_0x364739(0x158)];break;}_0x52fe92+=_0x3734f8['jtunS'](_0x3734f8['pNUip'](_0x409c46,_0x1549af),_0x698ebb);}_0x25f6be??=_0x58b594['length'];}else _0x25f6be=_0x3734f8['EowSa'](_0x240e08,_0x16ff92);let _0x29d1e3=0x0,_0x2aef45=_0x240e08;while(_0x2aef45<_0x25f6be){const [_0xe209af,_0x4a2e3c]=readId(_0x58b594,_0x2aef45),[_0x233858,_0x2fae89]=_0x3734f8['jRupQ'](readVint,_0x58b594,_0x3734f8[_0x364739(0x166)](_0x2aef45,_0x4a2e3c));if(_0x3734f8['MNLWM'](_0xe209af,ID_TIMESTAMP))_0x29d1e3=readUint(_0x58b594,_0x3734f8[_0x364739(0x179)](_0x2aef45,_0x4a2e3c)+_0x2fae89,_0x233858);else{if(_0xe209af===ID_SIMPLE_BLOCK&&_0x233858>=0x4){const _0x5d3fd3=_0x3734f8['DhNfg'](_0x3734f8['JDfOE'](_0x2aef45,_0x4a2e3c),_0x2fae89),[,_0x2f2997]=readVint(_0x58b594,_0x5d3fd3),_0x2f3743=_0x58b594[_0x364739(0x167)](_0x3734f8[_0x364739(0x162)](_0x5d3fd3,_0x2f2997)),_0x5023a=(_0x29d1e3+_0x2f3743)*_0x129acc/0xf4240;_0x5023a>_0x5e59ec&&(_0x5e59ec=_0x5023a);}else{if(_0xe209af===ID_CLUSTER)break;}}if(isUnknownSize(_0x233858,_0x2fae89))break;_0x2aef45+=_0x4a2e3c+_0x2fae89+_0x233858;}_0xac4082=_0x25f6be;}return _0x5e59ec;}export function fixWebmDuration(_0x119f0f,_0xe51951){const _0x315d9a=_0x3753,_0xec5169={'rKUzd':function(_0x3bc059,_0x383656){return _0x3bc059(_0x383656);},'VWuaU':function(_0x1e17f5,_0x3491d3,_0x1b927e){return _0x1e17f5(_0x3491d3,_0x1b927e);},'xNffn':'Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','RcyWY':function(_0x21c4a1,_0x2d120a,_0x5c1b02){return _0x21c4a1(_0x2d120a,_0x5c1b02);},'GAndW':function(_0x3eaf75,_0x1a3975){return _0x3eaf75+_0x1a3975;},'drWSq':function(_0x5c7a7d,_0x5cc164){return _0x5c7a7d<_0x5cc164;},'DUUGt':function(_0x291b59,_0x30173e){return _0x291b59<=_0x30173e;},'OLqGh':function(_0x339c64,_0x5dbaec){return _0x339c64/_0x5dbaec;},'nPKtZ':function(_0x35ce75,_0x48526e){return _0x35ce75*_0x48526e;},'IWXkO':function(_0x2d622d,_0x187741){return _0x2d622d+_0x187741;},'duhKG':function(_0x448cd8,_0x28ead8){return _0x448cd8+_0x28ead8;},'eQkOH':function(_0x16ed7a,_0x3f8a61){return _0x16ed7a(_0x3f8a61);},'cGRup':function(_0x280e90,_0x164ba5){return _0x280e90+_0x164ba5;},'GebYV':function(_0x3b3ba6,_0x4f43c2){return _0x3b3ba6+_0x4f43c2;}},_0x3c4236=_0xec5169['rKUzd'](readFileSync,_0x119f0f);let _0x286504=0x0;const [_0x449393,_0x143bc1]=readId(_0x3c4236,_0x286504),[_0xd5bd00,_0x35e9a8]=readVint(_0x3c4236,_0x286504+_0x143bc1);_0x286504+=_0x143bc1+_0x35e9a8+_0xd5bd00;const [_0x28a16e,_0x52a1e2]=_0xec5169[_0x315d9a(0x16e)](readId,_0x3c4236,_0x286504);if(_0x28a16e!==ID_SEGMENT)return console[_0x315d9a(0x181)](_0xec5169[_0x315d9a(0x15f)]),![];const [,_0x3059e4]=_0xec5169['RcyWY'](readVint,_0x3c4236,_0x286504+_0x52a1e2),_0x4244c6=_0xec5169['GAndW'](_0x286504+_0x52a1e2,_0x3059e4);let _0x5c33b5=_0x4244c6;const _0x2fbff7=Math['min'](_0x3c4236[_0x315d9a(0x158)],_0x4244c6+0x2710);let _0x52b9e6=null,_0x3680d5=null;while(_0xec5169['drWSq'](_0x5c33b5,_0x2fbff7)){const [_0x1c2682,_0xa4473d]=_0xec5169[_0x315d9a(0x16a)](readId,_0x3c4236,_0x5c33b5),[_0x369571,_0x11449c]=readVint(_0x3c4236,_0x5c33b5+_0xa4473d);_0x1c2682===ID_VOID&&!_0x52b9e6&&(_0x52b9e6={'offset':_0x5c33b5,'idLen':_0xa4473d,'sizeLen':_0x11449c,'dataSize':_0x369571,'dataOffset':_0x5c33b5+_0xa4473d+_0x11449c});if(_0x1c2682===ID_INFO){_0x3680d5={'offset':_0x5c33b5,'idLen':_0xa4473d,'sizeLen':_0x11449c,'dataSize':_0x369571,'dataOffset':_0xec5169[_0x315d9a(0x178)](_0xec5169['GAndW'](_0x5c33b5,_0xa4473d),_0x11449c)};break;}if(_0x1c2682===ID_CLUSTER)break;if(isUnknownSize(_0x369571,_0x11449c))break;_0x5c33b5+=_0xec5169[_0x315d9a(0x178)](_0xa4473d,_0x11449c)+_0x369571;}if(!_0x3680d5)return console['error']('Could\x20not\x20find\x20Info\x20element'),![];const _0x2d0471=findElement(_0x3c4236,_0x3680d5[_0x315d9a(0x146)],_0x3680d5['dataOffset']+_0x3680d5[_0x315d9a(0x169)],ID_DURATION);if(_0x2d0471)return![];const _0x184f76=findElement(_0x3c4236,_0x3680d5[_0x315d9a(0x146)],_0xec5169[_0x315d9a(0x178)](_0x3680d5['dataOffset'],_0x3680d5[_0x315d9a(0x169)]),ID_TIMESTAMP_SCALE);let _0xdca20b=0xf4240;_0x184f76&&(_0xdca20b=readUint(_0x3c4236,_0x184f76['dataOffset'],_0x184f76[_0x315d9a(0x169)]));const _0x3d0d08=_0xec5169[_0x315d9a(0x16e)](computeDurationMs,_0x3c4236,_0xdca20b);if(_0xec5169[_0x315d9a(0x15d)](_0x3d0d08,0x0))return console[_0x315d9a(0x181)]('Could\x20not\x20compute\x20duration'),![];const _0x4dba79=_0xec5169[_0x315d9a(0x157)](_0xec5169[_0x315d9a(0x17c)](_0x3d0d08,0xf4240),_0xdca20b),_0x3cf596=Buffer[_0x315d9a(0x161)]([writeId(ID_DURATION),_0xec5169[_0x315d9a(0x156)](writeVint,0x8),writeFloat64(_0x4dba79)]),_0x52e5da=_0x3cf596[_0x315d9a(0x158)];if(!_0x52b9e6||_0x52b9e6[_0x315d9a(0x17a)]<_0x3680d5[_0x315d9a(0x17a)]){if(_0x52b9e6){const _0x2f36b2=_0xec5169['IWXkO'](_0x52b9e6[_0x315d9a(0x16c)],_0x52b9e6['sizeLen'])+_0x52b9e6[_0x315d9a(0x169)],_0x50b03a=_0x2f36b2-_0x52e5da;if(_0xec5169[_0x315d9a(0x177)](_0x50b03a,0x2))return rewriteFile(_0x3c4236,_0x3680d5,_0x3cf596,_0xdca20b,_0x3d0d08,_0xe51951);const _0x1dcb1e=_0xec5169[_0x315d9a(0x154)](_0x3680d5[_0x315d9a(0x169)],_0x52e5da),_0x20ae8f=Buffer[_0x315d9a(0x161)]([_0xec5169[_0x315d9a(0x15a)](writeId,ID_INFO),writeVint(_0x1dcb1e,_0x3680d5['sizeLen'])]),_0x30d499=_0x3c4236['slice'](_0x3680d5['dataOffset'],_0xec5169['cGRup'](_0x3680d5['dataOffset'],_0x3680d5[_0x315d9a(0x169)])),_0x269bd9=writeVoid(_0x50b03a),_0x40f9fd=_0x3c4236['slice'](0x0,_0x52b9e6['offset']),_0x346d41=_0x3c4236['slice'](_0xec5169[_0x315d9a(0x163)](_0x3680d5[_0x315d9a(0x146)],_0x3680d5['dataSize']));return _0xec5169['VWuaU'](writeFileSync,_0xe51951,Buffer['concat']([_0x40f9fd,_0x269bd9,_0x20ae8f,_0x30d499,_0x3cf596,_0x346d41])),!![];}}return rewriteFile(_0x3c4236,_0x3680d5,_0x3cf596,_0xdca20b,_0x3d0d08,_0xe51951);}function _0x4428(){const _0x436123=['MNLWM','EowSa','readInt16BE','1100253qdCAtZ','dataSize','RcyWY','gmDkW','idLen','9lUgBVp','VWuaU','dwfGT','1315360Hvmmls','slice','fixWebmDuration.js','23923770FLajVj','lGeGE','fhVtA','emDFg','drWSq','GAndW','rQFFr','offset','lOZJO','nPKtZ','64tgeMOd','vgcZY','joxiB','444790RlxCdz','error','fixWebmDuration.ts','556602yesoaR','dataOffset','slKHg','iGzyu','EdNrm','qIMKt','alloc','2188506xhQTYO','TlOrt','argv','8pWBjdk','GvTcI','8998641LxXvvj','from','JlZxE','duhKG','KMnVd','rKUzd','OLqGh','length','log','eQkOH','PyEVs','jtunS','DUUGt','pdudS','xNffn','gfWKy','concat','DhNfg','GebYV','tGZas'];_0x4428=function(){return _0x436123;};return _0x4428();}function rewriteFile(_0x224428,_0x16d469,_0x196bc4,_0x5c7b94,_0x3ba4c5,_0x16ef1c){const _0x26a5a3=_0x3753,_0x208a55={'joxiB':function(_0x28fbab,_0x16ada6){return _0x28fbab+_0x16ada6;},'dxats':function(_0x45a556,_0x25b615){return _0x45a556(_0x25b615);},'lDIkO':function(_0x519b6f,_0x37ea8a){return _0x519b6f+_0x37ea8a;},'EdNrm':function(_0x38be7a,_0x47cc42){return _0x38be7a+_0x47cc42;},'gfWKy':function(_0x381ad1,_0x114770,_0x469d04){return _0x381ad1(_0x114770,_0x469d04);}},_0x161869=_0x208a55[_0x26a5a3(0x17f)](_0x16d469['dataSize'],_0x196bc4[_0x26a5a3(0x158)]),_0x356d25=Buffer['concat']([_0x208a55['dxats'](writeId,ID_INFO),_0x208a55['dxats'](writeVint,_0x161869)]),_0x32c4d7=_0x16d469['idLen']+_0x16d469['sizeLen'],_0x2b2490=_0x224428[_0x26a5a3(0x171)](0x0,_0x16d469[_0x26a5a3(0x17a)]),_0x2b3333=_0x224428['slice'](_0x16d469['dataOffset'],_0x16d469['dataOffset']+_0x16d469['dataSize']),_0x1784e4=_0x224428[_0x26a5a3(0x171)](_0x208a55['lDIkO'](_0x208a55[_0x26a5a3(0x149)](_0x16d469[_0x26a5a3(0x17a)],_0x32c4d7),_0x16d469[_0x26a5a3(0x169)]));return _0x208a55[_0x26a5a3(0x160)](writeFileSync,_0x16ef1c,Buffer[_0x26a5a3(0x161)]([_0x2b2490,_0x356d25,_0x2b3333,_0x196bc4,_0x1784e4])),!![];}if(process[_0x11e1ec(0x14e)][0x1]?.['endsWith'](_0x11e1ec(0x182))||process[_0x11e1ec(0x14e)][0x1]?.['endsWith'](_0x11e1ec(0x172))){const input=process['argv'][0x2],output=process[_0x11e1ec(0x14e)][0x3];(!input||!output)&&(console[_0x11e1ec(0x181)]('Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>'),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console['log']('Fixed:\x20'+output):console[_0x11e1ec(0x159)]('File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.');}
|
|
1
|
+
function _0x5290(){const _0x565788=['dataOffset','pzgIK','puiSx','UBnUH','aUbVF','yNKeL','NArSR','ggmti','KbRjL','wSxXg','LmsTR','TFost','qeRep','pGTRj','8ahMwAC','7100095xSPHgR','DDMro','writeDoubleBE','thbsK','4IRNjyE','sizeLen','error','ANVYv','uXTwx','idLen','concat','uEXuy','XhrBT','GTWJH','nfISh','9282321PmkOLH','IpGFZ','rdKMH','VcHUw','7188552xUdqOV','VOhlu','HDpQA','indexOf','Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>','afPss','Could\x20not\x20find\x20Info\x20element','zKhSx','873mhdriv','slice','dataSize','iideC','Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','lpyXi','1370293WyYWsf','ELAQG','SGEUp','lsdMA','ymxIQ','IGaAo','NJpDE','LkjeK','Ziaqp','qcLoF','length','EBhvC','fixWebmDuration.js','3310bFzUgu','YPRyH','pow','endsWith','MSufb','xFNjJ','LoAda','yLaaf','vvzfg','yDKTk','min','argv','60269xIOvqr','194fvKwQo','offset','xvdDa','readInt16BE','6057570fhqkMv','Could\x20not\x20compute\x20duration','from'];_0x5290=function(){return _0x565788;};return _0x5290();}const _0x59db9e=_0x1979;(function(_0x2d1204,_0xccb863){const _0x325fd1=_0x1979,_0xd1ad6d=_0x2d1204();while(!![]){try{const _0x375c50=-parseInt(_0x325fd1(0x1c5))/0x1+parseInt(_0x325fd1(0x1df))/0x2*(-parseInt(_0x325fd1(0x1bf))/0x3)+-parseInt(_0x325fd1(0x1a8))/0x4*(-parseInt(_0x325fd1(0x1a4))/0x5)+-parseInt(_0x325fd1(0x192))/0x6+parseInt(_0x325fd1(0x1b7))/0x7+-parseInt(_0x325fd1(0x1a3))/0x8*(parseInt(_0x325fd1(0x1b3))/0x9)+-parseInt(_0x325fd1(0x1d2))/0xa*(-parseInt(_0x325fd1(0x1de))/0xb);if(_0x375c50===_0xccb863)break;else _0xd1ad6d['push'](_0xd1ad6d['shift']());}catch(_0x4529b2){_0xd1ad6d['push'](_0xd1ad6d['shift']());}}}(_0x5290,0xc871c));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 _0x1979(_0x599c34,_0x4cf41e){_0x599c34=_0x599c34-0x191;const _0x5290c9=_0x5290();let _0x19791f=_0x5290c9[_0x599c34];return _0x19791f;}function readVint(_0x11be60,_0x1f3743){const _0x381e9f=_0x1979,_0x27ff82={'Vgjfh':function(_0x5c2611,_0x3cf204){return _0x5c2611>_0x3cf204;},'qcLoF':function(_0x38c4bc,_0x40f7a8){return _0x38c4bc&_0x40f7a8;},'Ziaqp':function(_0x419829,_0x2f18b5){return _0x419829<_0x2f18b5;},'xvdDa':function(_0x374236,_0x5cdf89){return _0x374236+_0x5cdf89;}};if(_0x1f3743>=_0x11be60[_0x381e9f(0x1cf)])return[0x0,0x0];const _0x53287e=_0x11be60[_0x1f3743];let _0x2d89a2=0x1,_0x3639ce=0x80;while(_0x2d89a2<=0x8&&!(_0x53287e&_0x3639ce)){_0x2d89a2++,_0x3639ce>>=0x1;}if(_0x27ff82['Vgjfh'](_0x1f3743+_0x2d89a2,_0x11be60['length']))return[0x0,0x0];let _0x297bd0=_0x27ff82[_0x381e9f(0x1ce)](_0x53287e,_0x3639ce-0x1);for(let _0x3e1671=0x1;_0x27ff82[_0x381e9f(0x1cd)](_0x3e1671,_0x2d89a2);_0x3e1671++){_0x297bd0=_0x297bd0*0x100+_0x11be60[_0x27ff82[_0x381e9f(0x1e1)](_0x1f3743,_0x3e1671)];}return[_0x297bd0,_0x2d89a2];}function readId(_0x3effe1,_0x19d6f3){const _0x167b17=_0x1979,_0x2cd58a={'ANVYv':function(_0x22cdc2,_0x489e0a){return _0x22cdc2>=_0x489e0a;},'vOvmn':function(_0x5cecd8,_0x338c18){return _0x5cecd8>_0x338c18;},'wCsyI':function(_0x541358,_0x28370f){return _0x541358+_0x28370f;},'LmsTR':function(_0x605f9d,_0x117006){return _0x605f9d*_0x117006;}};if(_0x2cd58a[_0x167b17(0x1ab)](_0x19d6f3,_0x3effe1[_0x167b17(0x1cf)]))return[0x0,0x0];const _0x4e06ad=_0x3effe1[_0x19d6f3];let _0x23a383;if(_0x4e06ad>=0x80)_0x23a383=0x1;else{if(_0x2cd58a['ANVYv'](_0x4e06ad,0x40))_0x23a383=0x2;else{if(_0x4e06ad>=0x20)_0x23a383=0x3;else{if(_0x4e06ad>=0x10)_0x23a383=0x4;else return[_0x4e06ad,0x1];}}}if(_0x2cd58a['vOvmn'](_0x2cd58a['wCsyI'](_0x19d6f3,_0x23a383),_0x3effe1['length']))return[0x0,0x0];let _0x3b9e7f=0x0;for(let _0x238fe8=0x0;_0x238fe8<_0x23a383;_0x238fe8++){_0x3b9e7f=_0x2cd58a['wCsyI'](_0x2cd58a[_0x167b17(0x19f)](_0x3b9e7f,0x100),_0x3effe1[_0x19d6f3+_0x238fe8]);}return[_0x3b9e7f,_0x23a383];}function readUint(_0x2d05c5,_0x19103e,_0x5d6634){const _0x52bc62=_0x1979,_0x51ced0={'nfISh':function(_0x3ddc7b,_0x4c149b){return _0x3ddc7b*_0x4c149b;}};let _0xd9158f=0x0;for(let _0x44ad33=0x0;_0x44ad33<_0x5d6634;_0x44ad33++){_0xd9158f=_0x51ced0[_0x52bc62(0x1b2)](_0xd9158f,0x100)+_0x2d05c5[_0x19103e+_0x44ad33];}return _0xd9158f;}function isUnknownSize(_0x571cc5,_0x14ffe4){const _0x40ba90=_0x1979,_0x1d5356={'lWoVF':function(_0x5eb771,_0x121de9){return _0x5eb771===_0x121de9;}};return _0x1d5356['lWoVF'](_0x571cc5,Math[_0x40ba90(0x1d4)](0x2,0x7*_0x14ffe4)-0x1);}function writeId(_0x50b268){const _0x5ecae6=_0x1979,_0x1bf8df={'DeQuD':function(_0x4f2882,_0x1aaf92){return _0x4f2882<=_0x1aaf92;},'RGxps':function(_0xa6de24,_0x3ead35){return _0xa6de24&_0x3ead35;},'wDkEE':function(_0x2057ec,_0x10002b){return _0x2057ec&_0x10002b;},'VcHUw':function(_0x280536,_0x2324ba){return _0x280536<=_0x2324ba;},'afPss':function(_0x385db4,_0x342e9e){return _0x385db4&_0x342e9e;},'hoPsh':function(_0x4dcef8,_0x52421f){return _0x4dcef8>>_0x52421f;},'IGaAo':function(_0x48b072,_0x4d3384){return _0x48b072>>_0x4d3384;},'zKhSx':function(_0x532987,_0x5bd43b){return _0x532987&_0x5bd43b;},'pGTRj':function(_0x4c8d57,_0x48c201){return _0x4c8d57>>_0x48c201;},'pzgIK':function(_0x59a0d0,_0x3278c7){return _0x59a0d0&_0x3278c7;},'Dhncc':function(_0x39133b,_0x1abbba){return _0x39133b>>_0x1abbba;}};if(_0x1bf8df['DeQuD'](_0x50b268,0xff))return Buffer['from']([_0x50b268]);if(_0x50b268<=0xffff)return Buffer[_0x5ecae6(0x194)]([_0x1bf8df['RGxps'](_0x50b268>>0x8,0xff),_0x1bf8df['wDkEE'](_0x50b268,0xff)]);if(_0x1bf8df[_0x5ecae6(0x1b6)](_0x50b268,0xffffff))return Buffer[_0x5ecae6(0x194)]([_0x1bf8df[_0x5ecae6(0x1bc)](_0x1bf8df['hoPsh'](_0x50b268,0x10),0xff),_0x1bf8df['wDkEE'](_0x1bf8df[_0x5ecae6(0x1ca)](_0x50b268,0x8),0xff),_0x50b268&0xff]);return Buffer['from']([_0x1bf8df['wDkEE'](_0x50b268>>0x18,0xff),_0x1bf8df[_0x5ecae6(0x1be)](_0x1bf8df[_0x5ecae6(0x1a2)](_0x50b268,0x10),0xff),_0x1bf8df[_0x5ecae6(0x196)](_0x1bf8df['Dhncc'](_0x50b268,0x8),0xff),_0x50b268&0xff]);}function writeVint(_0x491c91,_0x1f3e9f){const _0x151416=_0x1979,_0x57a4d7={'HDpQA':function(_0x4c22c8,_0x4e94bb){return _0x4c22c8||_0x4e94bb;},'XzBER':function(_0x1960cc,_0xe0afef){return _0x1960cc<_0xe0afef;},'qwIKE':function(_0x36a584,_0x3942ea){return _0x36a584*_0x3942ea;},'ymxIQ':function(_0x167a3a,_0x35efc1){return _0x167a3a&_0x35efc1;},'EBhvC':function(_0x6ef862,_0x14d1f6){return _0x6ef862/_0x14d1f6;},'wSxXg':function(_0x39e10e,_0x54c528){return _0x39e10e<<_0x54c528;},'uEXuy':function(_0x4f950e,_0x1a48ae){return _0x4f950e-_0x1a48ae;}};let _0x1f15f3=_0x57a4d7[_0x151416(0x1b9)](_0x1f3e9f,0x1);while(_0x57a4d7['XzBER'](Math['pow'](0x2,_0x57a4d7['qwIKE'](0x7,_0x1f15f3))-0x2,_0x491c91))_0x1f15f3++;const _0x3f7f57=Buffer['alloc'](_0x1f15f3);for(let _0x336d30=_0x1f15f3-0x1;_0x336d30>=0x0;_0x336d30--){_0x3f7f57[_0x336d30]=_0x57a4d7[_0x151416(0x1c9)](_0x491c91,0xff),_0x491c91=Math['floor'](_0x57a4d7[_0x151416(0x1d0)](_0x491c91,0x100));}return _0x3f7f57[0x0]|=_0x57a4d7[_0x151416(0x19e)](0x1,_0x57a4d7[_0x151416(0x1af)](0x8,_0x1f15f3)),_0x3f7f57;}function writeFloat64(_0x7bd4f7){const _0x35840c=_0x1979,_0x228168=Buffer['alloc'](0x8);return _0x228168[_0x35840c(0x1a6)](_0x7bd4f7,0x0),_0x228168;}function writeVoid(_0x29e4d6){const _0x4c3558=_0x1979,_0x55c402={'puiSx':function(_0x49f361,_0x577c1e){return _0x49f361<=_0x577c1e;},'eFYEI':function(_0x3e4b39,_0x1d7124){return _0x3e4b39>=_0x1d7124;}};for(let _0x57b2d6=0x1;_0x55c402[_0x4c3558(0x197)](_0x57b2d6,0x8);_0x57b2d6++){const _0x48ff7e=_0x29e4d6-0x1-_0x57b2d6;if(_0x55c402['eFYEI'](_0x48ff7e,0x0)&&_0x48ff7e<=Math[_0x4c3558(0x1d4)](0x2,0x7*_0x57b2d6)-0x2)return Buffer['concat']([Buffer['from']([ID_VOID]),writeVint(_0x48ff7e,_0x57b2d6),Buffer['alloc'](_0x48ff7e)]);}return Buffer['alloc'](0x0);}function findElement(_0x4cf42c,_0x59d2ef,_0x1a08e9,_0x46a0d9){const _0x64fd29=_0x1979,_0x84eed={'qONBo':function(_0x34876d,_0x702c69,_0x55e6aa){return _0x34876d(_0x702c69,_0x55e6aa);},'XhrBT':function(_0x3c1895,_0x456eb7,_0x2f098c){return _0x3c1895(_0x456eb7,_0x2f098c);},'thbsK':function(_0x399a93,_0x2d4341){return _0x399a93+_0x2d4341;},'yNKeL':function(_0x3fa5ef,_0x3fe046){return _0x3fa5ef+_0x3fe046;},'tIYvz':function(_0x196b20,_0x13c616){return _0x196b20+_0x13c616;}};let _0x25d1a9=_0x59d2ef;while(_0x25d1a9<_0x1a08e9){const [_0xa543ee,_0x5a9278]=_0x84eed['qONBo'](readId,_0x4cf42c,_0x25d1a9),[_0x39398b,_0x343729]=_0x84eed[_0x64fd29(0x1b0)](readVint,_0x4cf42c,_0x84eed[_0x64fd29(0x1a7)](_0x25d1a9,_0x5a9278));if(_0xa543ee===_0x46a0d9)return{'offset':_0x25d1a9,'idLen':_0x5a9278,'sizeLen':_0x343729,'dataSize':_0x39398b,'dataOffset':_0x84eed[_0x64fd29(0x19a)](_0x25d1a9,_0x5a9278)+_0x343729};if(_0x84eed[_0x64fd29(0x1b0)](isUnknownSize,_0x39398b,_0x343729))break;_0x25d1a9+=_0x84eed['tIYvz'](_0x5a9278,_0x343729)+_0x39398b;}return null;}function computeDurationMs(_0x136022,_0x556b7c){const _0xbe4ae2=_0x1979,_0x2b5024={'LoAda':function(_0xba34a2,_0x4ba001){return _0xba34a2===_0x4ba001;},'GTWJH':function(_0x4b3acf,_0x4cf3f3){return _0x4b3acf<_0x4cf3f3;},'DDMro':function(_0x2f6d51,_0x4a908c,_0x3800b0){return _0x2f6d51(_0x4a908c,_0x3800b0);},'CkTzQ':function(_0x7ff5df,_0xc7fe2d,_0x46fb97){return _0x7ff5df(_0xc7fe2d,_0x46fb97);},'KbRjL':function(_0x3f5faf,_0x50a626){return _0x3f5faf+_0x50a626;},'UBnUH':function(_0x37af53,_0x3f449e){return _0x37af53+_0x3f449e;},'NJpDE':function(_0x58e298,_0x56af93){return _0x58e298<_0x56af93;},'uXTwx':function(_0x98f5cd,_0x161a41,_0x3f5d59,_0x52f2b4){return _0x98f5cd(_0x161a41,_0x3f5d59,_0x52f2b4);},'yLaaf':function(_0x563a69,_0xc781e2){return _0x563a69+_0xc781e2;},'DexsC':function(_0x2b171e,_0x3999b2,_0xc32813){return _0x2b171e(_0x3999b2,_0xc32813);},'rdKMH':function(_0x594290,_0x40c77f){return _0x594290/_0x40c77f;},'yDKTk':function(_0x10da72,_0x5e171c){return _0x10da72*_0x5e171c;}};let _0x3a0288=0x0;const _0x28b8c9=Buffer[_0xbe4ae2(0x194)]([0x1f,0x43,0xb6,0x75]);let _0xe55419=_0x136022[_0xbe4ae2(0x1ba)](_0x28b8c9);if(_0x2b5024['LoAda'](_0xe55419,-0x1))return 0x0;while(_0x2b5024['GTWJH'](_0xe55419,_0x136022['length'])){const [_0x447890,_0x41c9c9]=readId(_0x136022,_0xe55419);if(_0x447890!==ID_CLUSTER)break;const [_0x395c41,_0x1b2fc9]=_0x2b5024['DDMro'](readVint,_0x136022,_0xe55419+_0x41c9c9),_0x49aaaf=_0xe55419+_0x41c9c9+_0x1b2fc9,_0x3a371c=_0x2b5024['CkTzQ'](isUnknownSize,_0x395c41,_0x1b2fc9);let _0x3e7d17;if(_0x3a371c){let _0x45b2a5=_0x49aaaf;while(_0x2b5024[_0xbe4ae2(0x1b1)](_0x45b2a5,_0x136022[_0xbe4ae2(0x1cf)]-0x4)){const [_0x555cff,_0x575148]=readId(_0x136022,_0x45b2a5);if(_0x555cff===ID_CLUSTER){_0x3e7d17=_0x45b2a5;break;}const [_0x23ab3a,_0x58fd8a]=readVint(_0x136022,_0x2b5024[_0xbe4ae2(0x19d)](_0x45b2a5,_0x575148));if(isUnknownSize(_0x23ab3a,_0x58fd8a)){_0x3e7d17=_0x136022[_0xbe4ae2(0x1cf)];break;}_0x45b2a5+=_0x2b5024['UBnUH'](_0x575148+_0x58fd8a,_0x23ab3a);}_0x3e7d17??=_0x136022['length'];}else _0x3e7d17=_0x2b5024[_0xbe4ae2(0x198)](_0x49aaaf,_0x395c41);let _0x401245=0x0,_0x1ef714=_0x49aaaf;while(_0x2b5024[_0xbe4ae2(0x1cb)](_0x1ef714,_0x3e7d17)){const [_0x57880d,_0x4e9d8f]=_0x2b5024[_0xbe4ae2(0x1a5)](readId,_0x136022,_0x1ef714),[_0x4bc9c3,_0x446d09]=readVint(_0x136022,_0x1ef714+_0x4e9d8f);if(_0x2b5024[_0xbe4ae2(0x1d8)](_0x57880d,ID_TIMESTAMP))_0x401245=_0x2b5024[_0xbe4ae2(0x1ac)](readUint,_0x136022,_0x2b5024[_0xbe4ae2(0x19d)](_0x2b5024[_0xbe4ae2(0x1d9)](_0x1ef714,_0x4e9d8f),_0x446d09),_0x4bc9c3);else{if(_0x57880d===ID_SIMPLE_BLOCK&&_0x4bc9c3>=0x4){const _0x250662=_0x2b5024[_0xbe4ae2(0x1d9)](_0x2b5024[_0xbe4ae2(0x198)](_0x1ef714,_0x4e9d8f),_0x446d09),[,_0x43b4e2]=_0x2b5024['DexsC'](readVint,_0x136022,_0x250662),_0x3f6f05=_0x136022[_0xbe4ae2(0x191)](_0x250662+_0x43b4e2),_0x15310c=_0x2b5024[_0xbe4ae2(0x1b5)](_0x2b5024[_0xbe4ae2(0x1db)](_0x401245+_0x3f6f05,_0x556b7c),0xf4240);_0x15310c>_0x3a0288&&(_0x3a0288=_0x15310c);}else{if(_0x57880d===ID_CLUSTER)break;}}if(isUnknownSize(_0x4bc9c3,_0x446d09))break;_0x1ef714+=_0x2b5024['yLaaf'](_0x4e9d8f,_0x446d09)+_0x4bc9c3;}_0xe55419=_0x3e7d17;}return _0x3a0288;}export function fixWebmDuration(_0x78eabb,_0xd64e17){const _0x4ff7d3=_0x1979,_0x3bf141={'YPRyH':function(_0x42024c,_0x4cbcc9){return _0x42024c(_0x4cbcc9);},'IpGFZ':function(_0x1abff6,_0x24da40,_0x25f66f){return _0x1abff6(_0x24da40,_0x25f66f);},'qeRep':function(_0x44607a,_0x12dd4c){return _0x44607a+_0x12dd4c;},'hntyV':function(_0x28fed5,_0x228e90){return _0x28fed5+_0x228e90;},'ljpdT':function(_0x58a771,_0xb09368){return _0x58a771===_0xb09368;},'NArSR':function(_0x1d3774,_0x3caaf){return _0x1d3774===_0x3caaf;},'VOhlu':function(_0x44f11d,_0x305773,_0x468d0d){return _0x44f11d(_0x305773,_0x468d0d);},'ggmti':function(_0xbdcd4a,_0x2dcfbd){return _0xbdcd4a+_0x2dcfbd;},'vvzfg':_0x4ff7d3(0x1bd),'vpdnj':function(_0x36d9bd,_0xf8717b,_0x8b6652,_0x13668b,_0x4cb6bb){return _0x36d9bd(_0xf8717b,_0x8b6652,_0x13668b,_0x4cb6bb);},'BewGu':function(_0x10838c,_0x48ec9d){return _0x10838c+_0x48ec9d;},'iideC':function(_0x1b6ad2,_0x1e0a43,_0x1ee3c7,_0x11c2ba,_0x31ca82){return _0x1b6ad2(_0x1e0a43,_0x1ee3c7,_0x11c2ba,_0x31ca82);},'MSufb':function(_0x380c7a,_0x33c4d9,_0x326f71,_0x36b305){return _0x380c7a(_0x33c4d9,_0x326f71,_0x36b305);},'LkjeK':function(_0x1104f2,_0x10a1d6){return _0x1104f2<=_0x10a1d6;},'SGEUp':_0x4ff7d3(0x193),'aUbVF':function(_0x5d4918,_0x2613b9){return _0x5d4918/_0x2613b9;},'lRMJw':function(_0x7485ea,_0x52fdb1){return _0x7485ea(_0x52fdb1);},'aqUOF':function(_0x260d5f,_0x6d7cda){return _0x260d5f(_0x6d7cda);},'TFost':function(_0x395f22,_0x2eced9){return _0x395f22+_0x2eced9;},'xFNjJ':function(_0x30a3b5,_0xf8e2c9){return _0x30a3b5-_0xf8e2c9;},'CWgxL':function(_0x4d19d1,_0x2cb595){return _0x4d19d1+_0x2cb595;},'ELAQG':function(_0x44433d,_0x49cf6b){return _0x44433d(_0x49cf6b);},'lsdMA':function(_0x3631dd,_0x4630ce){return _0x3631dd+_0x4630ce;}},_0x10c01c=_0x3bf141[_0x4ff7d3(0x1d3)](readFileSync,_0x78eabb);let _0x3bca42=0x0;const [_0x43313d,_0x18ae2e]=_0x3bf141[_0x4ff7d3(0x1b4)](readId,_0x10c01c,_0x3bca42),[_0x1c72d7,_0x442634]=readVint(_0x10c01c,_0x3bca42+_0x18ae2e);_0x3bca42+=_0x3bf141['qeRep'](_0x18ae2e+_0x442634,_0x1c72d7);const [_0x562f09,_0x13e731]=readId(_0x10c01c,_0x3bca42);if(_0x562f09!==ID_SEGMENT)return console['error'](_0x4ff7d3(0x1c3)),![];const [,_0x36acd]=readVint(_0x10c01c,_0x3bf141[_0x4ff7d3(0x1a1)](_0x3bca42,_0x13e731)),_0x56f0f1=_0x3bca42+_0x13e731+_0x36acd;let _0x2fb8ed=_0x56f0f1;const _0x2fd2b2=Math[_0x4ff7d3(0x1dc)](_0x10c01c['length'],_0x56f0f1+0x2710);let _0x55fdd0=null,_0x49c58d=null;while(_0x2fb8ed<_0x2fd2b2){const [_0xa278fe,_0x54c4ec]=readId(_0x10c01c,_0x2fb8ed),[_0x129c92,_0xedd6fb]=readVint(_0x10c01c,_0x3bf141['hntyV'](_0x2fb8ed,_0x54c4ec));_0x3bf141['ljpdT'](_0xa278fe,ID_VOID)&&!_0x55fdd0&&(_0x55fdd0={'offset':_0x2fb8ed,'idLen':_0x54c4ec,'sizeLen':_0xedd6fb,'dataSize':_0x129c92,'dataOffset':_0x3bf141['hntyV'](_0x2fb8ed,_0x54c4ec)+_0xedd6fb});if(_0x3bf141[_0x4ff7d3(0x19b)](_0xa278fe,ID_INFO)){_0x49c58d={'offset':_0x2fb8ed,'idLen':_0x54c4ec,'sizeLen':_0xedd6fb,'dataSize':_0x129c92,'dataOffset':_0x3bf141['hntyV'](_0x2fb8ed+_0x54c4ec,_0xedd6fb)};break;}if(_0xa278fe===ID_CLUSTER)break;if(_0x3bf141[_0x4ff7d3(0x1b8)](isUnknownSize,_0x129c92,_0xedd6fb))break;_0x2fb8ed+=_0x3bf141[_0x4ff7d3(0x19c)](_0x54c4ec+_0xedd6fb,_0x129c92);}if(!_0x49c58d)return console[_0x4ff7d3(0x1aa)](_0x3bf141[_0x4ff7d3(0x1da)]),![];const _0x239ac5=_0x3bf141['vpdnj'](findElement,_0x10c01c,_0x49c58d[_0x4ff7d3(0x195)],_0x3bf141['BewGu'](_0x49c58d[_0x4ff7d3(0x195)],_0x49c58d[_0x4ff7d3(0x1c1)]),ID_DURATION);if(_0x239ac5)return![];const _0xd82cf0=_0x3bf141[_0x4ff7d3(0x1c2)](findElement,_0x10c01c,_0x49c58d[_0x4ff7d3(0x195)],_0x49c58d['dataOffset']+_0x49c58d['dataSize'],ID_TIMESTAMP_SCALE);let _0x56ecd4=0xf4240;_0xd82cf0&&(_0x56ecd4=_0x3bf141[_0x4ff7d3(0x1d6)](readUint,_0x10c01c,_0xd82cf0['dataOffset'],_0xd82cf0['dataSize']));const _0x4db69b=computeDurationMs(_0x10c01c,_0x56ecd4);if(_0x3bf141[_0x4ff7d3(0x1cc)](_0x4db69b,0x0))return console[_0x4ff7d3(0x1aa)](_0x3bf141[_0x4ff7d3(0x1c7)]),![];const _0x4830c7=_0x3bf141[_0x4ff7d3(0x199)](_0x4db69b*0xf4240,_0x56ecd4),_0x48d187=Buffer[_0x4ff7d3(0x1ae)]([writeId(ID_DURATION),_0x3bf141['lRMJw'](writeVint,0x8),_0x3bf141['aqUOF'](writeFloat64,_0x4830c7)]),_0x20966e=_0x48d187['length'];if(!_0x55fdd0||_0x55fdd0['offset']<_0x49c58d['offset']){if(_0x55fdd0){const _0x27818d=_0x3bf141[_0x4ff7d3(0x1a0)](_0x55fdd0[_0x4ff7d3(0x1ad)]+_0x55fdd0['sizeLen'],_0x55fdd0[_0x4ff7d3(0x1c1)]),_0x3ff69c=_0x3bf141[_0x4ff7d3(0x1d7)](_0x27818d,_0x20966e);if(_0x3ff69c<0x2)return rewriteFile(_0x10c01c,_0x49c58d,_0x48d187,_0x56ecd4,_0x4db69b,_0xd64e17);const _0x316bae=_0x3bf141['CWgxL'](_0x49c58d['dataSize'],_0x20966e),_0x1272bc=Buffer['concat']([writeId(ID_INFO),writeVint(_0x316bae,_0x49c58d[_0x4ff7d3(0x1a9)])]),_0x8351a7=_0x10c01c['slice'](_0x49c58d[_0x4ff7d3(0x195)],_0x49c58d[_0x4ff7d3(0x195)]+_0x49c58d[_0x4ff7d3(0x1c1)]),_0x2b60db=_0x3bf141[_0x4ff7d3(0x1c6)](writeVoid,_0x3ff69c),_0x1ca914=_0x10c01c['slice'](0x0,_0x55fdd0[_0x4ff7d3(0x1e0)]),_0x25e1da=_0x10c01c['slice'](_0x3bf141[_0x4ff7d3(0x1c8)](_0x49c58d['dataOffset'],_0x49c58d[_0x4ff7d3(0x1c1)]));return writeFileSync(_0xd64e17,Buffer['concat']([_0x1ca914,_0x2b60db,_0x1272bc,_0x8351a7,_0x48d187,_0x25e1da])),!![];}}return rewriteFile(_0x10c01c,_0x49c58d,_0x48d187,_0x56ecd4,_0x4db69b,_0xd64e17);}function rewriteFile(_0x1649dc,_0x3e44d2,_0x30d934,_0x9fb8f7,_0x11bab6,_0x1a3cb4){const _0x3f0a72=_0x1979,_0xbd8c7c={'lpyXi':function(_0x542b9d,_0x51daf3){return _0x542b9d+_0x51daf3;},'HUzBV':function(_0x45d140,_0x63734d,_0x58e444){return _0x45d140(_0x63734d,_0x58e444);}},_0x3ec9ba=_0x3e44d2[_0x3f0a72(0x1c1)]+_0x30d934[_0x3f0a72(0x1cf)],_0x32431a=Buffer[_0x3f0a72(0x1ae)]([writeId(ID_INFO),writeVint(_0x3ec9ba)]),_0x4fd547=_0x3e44d2['idLen']+_0x3e44d2['sizeLen'],_0x5bbb9a=_0x1649dc[_0x3f0a72(0x1c0)](0x0,_0x3e44d2['offset']),_0x14239d=_0x1649dc['slice'](_0x3e44d2[_0x3f0a72(0x195)],_0x3e44d2[_0x3f0a72(0x195)]+_0x3e44d2[_0x3f0a72(0x1c1)]),_0x5a9f3d=_0x1649dc[_0x3f0a72(0x1c0)](_0xbd8c7c[_0x3f0a72(0x1c4)](_0x3e44d2['offset'],_0x4fd547)+_0x3e44d2['dataSize']);return _0xbd8c7c['HUzBV'](writeFileSync,_0x1a3cb4,Buffer[_0x3f0a72(0x1ae)]([_0x5bbb9a,_0x32431a,_0x14239d,_0x30d934,_0x5a9f3d])),!![];}if(process['argv'][0x1]?.[_0x59db9e(0x1d5)]('fixWebmDuration.ts')||process['argv'][0x1]?.[_0x59db9e(0x1d5)](_0x59db9e(0x1d1))){const input=process[_0x59db9e(0x1dd)][0x2],output=process['argv'][0x3];(!input||!output)&&(console[_0x59db9e(0x1aa)](_0x59db9e(0x1bb)),process['exit'](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
|
-
(function(
|
|
1
|
+
(function(_0x319902,_0x4ce68b){const _0x39d4c7=_0x1fec,_0x57458b=_0x319902();while(!![]){try{const _0x5ca1bf=-parseInt(_0x39d4c7(0x1ec))/0x1*(parseInt(_0x39d4c7(0x1e2))/0x2)+-parseInt(_0x39d4c7(0x1e3))/0x3+-parseInt(_0x39d4c7(0x1dd))/0x4*(-parseInt(_0x39d4c7(0x1e8))/0x5)+-parseInt(_0x39d4c7(0x1eb))/0x6+-parseInt(_0x39d4c7(0x1e4))/0x7*(parseInt(_0x39d4c7(0x1e9))/0x8)+parseInt(_0x39d4c7(0x1ee))/0x9+-parseInt(_0x39d4c7(0x1df))/0xa*(-parseInt(_0x39d4c7(0x1e6))/0xb);if(_0x5ca1bf===_0x4ce68b)break;else _0x57458b['push'](_0x57458b['shift']());}catch(_0x43d3dd){_0x57458b['push'](_0x57458b['shift']());}}}(_0x398f,0x75228));import{execSync}from'child_process';export function getGitBranch(){const _0x1e8742=_0x1fec,_0x1f8368={'LJbdf':function(_0x5db2a8,_0x56f31c,_0x275a0d){return _0x5db2a8(_0x56f31c,_0x275a0d);},'nWTxf':_0x1e8742(0x1ed)};try{return _0x1f8368[_0x1e8742(0x1e0)](execSync,_0x1e8742(0x1ea),{'encoding':_0x1e8742(0x1dc),'stdio':['pipe',_0x1f8368['nWTxf'],_0x1f8368['nWTxf']]})[_0x1e8742(0x1e1)]();}catch{return undefined;}}function _0x1fec(_0xeef6f6,_0x5b3ade){_0xeef6f6=_0xeef6f6-0x1dc;const _0x398fb0=_0x398f();let _0x1fece4=_0x398fb0[_0xeef6f6];return _0x1fece4;}export function getGitRepoUrl(){const _0x551907=_0x1fec,_0x334f22={'UhlNw':'pipe'};try{const _0x5ed955=execSync(_0x551907(0x1e5),{'encoding':'utf-8','stdio':[_0x334f22[_0x551907(0x1e7)],_0x334f22['UhlNw'],_0x551907(0x1ed)]})['trim']();return _0x5ed955[_0x551907(0x1de)](/\.git$/,'')[_0x551907(0x1de)](/^git@github\.com:/,'github.com/')['replace'](/^https?:\/\//,'');}catch{return undefined;}}export function getGitInfo(){return{'branch':getGitBranch(),'repoUrl':getGitRepoUrl()};}function _0x398f(){const _0x32660e=['UhlNw','5ZcKoVw','463640PpitdJ','git\x20rev-parse\x20--abbrev-ref\x20HEAD','5208174usATlj','28037SdIPuD','pipe','7193718VeFBfP','utf-8','1578404mZbNJW','replace','20TFYxDn','LJbdf','trim','4AIBolc','1583487ObEVVb','49bLZmnZ','git\x20remote\x20get-url\x20origin','6289239pWYCEz'];_0x398f=function(){return _0x32660e;};return _0x398f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3538aa=_0x3bfd;(function(_0x160332,_0x2f63c1){const _0x4d22b6=_0x3bfd,_0x363f76=_0x160332();while(!![]){try{const _0x54c718=-parseInt(_0x4d22b6(0x19c))/0x1+parseInt(_0x4d22b6(0x1b9))/0x2+parseInt(_0x4d22b6(0x19a))/0x3*(parseInt(_0x4d22b6(0x1a4))/0x4)+parseInt(_0x4d22b6(0x1b6))/0x5*(-parseInt(_0x4d22b6(0x1b8))/0x6)+parseInt(_0x4d22b6(0x18f))/0x7*(parseInt(_0x4d22b6(0x1ac))/0x8)+-parseInt(_0x4d22b6(0x1b2))/0x9+-parseInt(_0x4d22b6(0x19f))/0xa;if(_0x54c718===_0x2f63c1)break;else _0x363f76['push'](_0x363f76['shift']());}catch(_0x150738){_0x363f76['push'](_0x363f76['shift']());}}}(_0x2b3c,0x495ef));const _0x336ec1=(function(){const _0x5918f3=_0x3bfd,_0x2d42d7={'eynEd':function(_0x28873b,_0x49dde9){return _0x28873b!==_0x49dde9;},'umwuU':_0x5918f3(0x1b7)};let _0x35b5b1=!![];return function(_0x456b25,_0x38f525){const _0x411f32=_0x5918f3,_0x15ca8e={'GNDRS':function(_0x2eebcf,_0x26e4b1){const _0x430480=_0x3bfd;return _0x2d42d7[_0x430480(0x1b1)](_0x2eebcf,_0x26e4b1);},'HSEBy':_0x2d42d7[_0x411f32(0x1a9)]},_0x1c0137=_0x35b5b1?function(){const _0x12d4b6=_0x411f32;if(_0x38f525){if(_0x15ca8e[_0x12d4b6(0x1ab)](_0x12d4b6(0x1a2),_0x15ca8e[_0x12d4b6(0x18e)])){const _0x187d19=_0x38f525['apply'](_0x456b25,arguments);return _0x38f525=null,_0x187d19;}else return _0x413b1e['env'][_0x1752f8];}}:function(){};return _0x35b5b1=![],_0x1c0137;};}()),_0x27335e=_0x336ec1(this,function(){const _0x565b2b=_0x3bfd,_0x4baad2={'ZLWkP':_0x565b2b(0x1b4)};return _0x27335e[_0x565b2b(0x1aa)]()[_0x565b2b(0x1a1)](_0x4baad2[_0x565b2b(0x18d)])['toString']()[_0x565b2b(0x1ba)](_0x27335e)[_0x565b2b(0x1a1)](_0x565b2b(0x1b4));});_0x27335e();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';function _0x3bfd(_0x2d1c10,_0x337d31){_0x2d1c10=_0x2d1c10-0x18b;const _0x1465c0=_0x2b3c();let _0x27335e=_0x1465c0[_0x2d1c10];if(_0x3bfd['hDPvvu']===undefined){var _0x336ec1=function(_0x452abe){const _0x418457='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3a0fc6='',_0x20fe9b='',_0x29baf1=_0x3a0fc6+_0x336ec1;for(let _0x31cab9=0x0,_0x56a3d6,_0x5d8882,_0x54c85f=0x0;_0x5d8882=_0x452abe['charAt'](_0x54c85f++);~_0x5d8882&&(_0x56a3d6=_0x31cab9%0x4?_0x56a3d6*0x40+_0x5d8882:_0x5d8882,_0x31cab9++%0x4)?_0x3a0fc6+=_0x29baf1['charCodeAt'](_0x54c85f+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x56a3d6>>(-0x2*_0x31cab9&0x6)):_0x31cab9:0x0){_0x5d8882=_0x418457['indexOf'](_0x5d8882);}for(let _0x2b433d=0x0,_0x16bf63=_0x3a0fc6['length'];_0x2b433d<_0x16bf63;_0x2b433d++){_0x20fe9b+='%'+('00'+_0x3a0fc6['charCodeAt'](_0x2b433d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x20fe9b);};_0x3bfd['KLVlGs']=_0x336ec1,_0x3bfd['hyzgSM']={},_0x3bfd['hDPvvu']=!![];}const _0x2b3cca=_0x1465c0[0x0],_0x3bfd07=_0x2d1c10+_0x2b3cca,_0x9eeb06=_0x3bfd['hyzgSM'][_0x3bfd07];if(!_0x9eeb06){const _0x21c269=function(_0xe0269d){this['ivZJhY']=_0xe0269d,this['uRGnur']=[0x1,0x0,0x0],this['VWmwbY']=function(){return'newState';},this['GBjcOI']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['FCFfyj']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x21c269['prototype']['XazwWG']=function(){const _0x2b0020=new RegExp(this['GBjcOI']+this['FCFfyj']),_0x1f9d4f=_0x2b0020['test'](this['VWmwbY']['toString']())?--this['uRGnur'][0x1]:--this['uRGnur'][0x0];return this['XoOjDH'](_0x1f9d4f);},_0x21c269['prototype']['XoOjDH']=function(_0x4b107d){if(!Boolean(~_0x4b107d))return _0x4b107d;return this['JddWkz'](this['ivZJhY']);},_0x21c269['prototype']['JddWkz']=function(_0x33debe){for(let _0x1699af=0x0,_0x1c3285=this['uRGnur']['length'];_0x1699af<_0x1c3285;_0x1699af++){this['uRGnur']['push'](Math['round'](Math['random']())),_0x1c3285=this['uRGnur']['length'];}return _0x33debe(this['uRGnur'][0x0]);},new _0x21c269(_0x3bfd)['XazwWG'](),_0x27335e=_0x3bfd['KLVlGs'](_0x27335e),_0x3bfd['hyzgSM'][_0x3bfd07]=_0x27335e;}else _0x27335e=_0x9eeb06;return _0x27335e;}import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN='RANGER_CLI_TOKEN',ENV_TOKEN_LEGACY=_0x3538aa(0x198),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,'cli.txt'),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x3538aa(0x1a3));function isGitHubCI(){const _0x111701=_0x3538aa;return!!process[_0x111701(0x18c)][_0x111701(0x195)];}async function writeToGitHubEnv(_0x35cdae,_0x20ecbd){const _0x1003bf=_0x3538aa,_0x421efd={'YfOPU':function(_0x1fe9f4,_0x4ba951,_0x2e8eb0){return _0x1fe9f4(_0x4ba951,_0x2e8eb0);}},_0x23654a=process[_0x1003bf(0x18c)][_0x1003bf(0x195)];_0x23654a&&await _0x421efd[_0x1003bf(0x18b)](appendFile,_0x23654a,_0x35cdae+'='+_0x20ecbd+'\x0a');}export async function storeToken(_0x434297){const _0x4356d5=_0x3538aa,_0x2a85cc={'pzHDB':function(_0x36b570,_0x18f08a){return _0x36b570!==_0x18f08a;},'HuWuK':'gBqZe','VtiWA':function(_0x516e23,_0x46a4a9,_0x56006f){return _0x516e23(_0x46a4a9,_0x56006f);},'ZCgtA':_0x4356d5(0x193),'Useqr':function(_0x1616f5,_0x5c4898,_0x39f606,_0x5c441e){return _0x1616f5(_0x5c4898,_0x39f606,_0x5c441e);}};if(isGitHubCI()){if(_0x2a85cc[_0x4356d5(0x1b3)](_0x2a85cc[_0x4356d5(0x1a0)],_0x2a85cc[_0x4356d5(0x1a0)]))return!!_0x3b6229[_0x4356d5(0x18c)][_0x4356d5(0x195)];else await _0x2a85cc[_0x4356d5(0x19e)](writeToGitHubEnv,ENV_TOKEN,_0x434297);}else{if(_0x2a85cc[_0x4356d5(0x1af)]===_0x4356d5(0x199))return null;else await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x2a85cc['Useqr'](writeFile,TOKEN_PATH,_0x434297,{'mode':0x180});}}export async function getToken(){const _0x20bf98=_0x3538aa,_0xc8dde7={'Txicw':function(_0x208c0d,_0x51b6fd){return _0x208c0d===_0x51b6fd;},'vlilV':_0x20bf98(0x190),'ixrGk':_0x20bf98(0x1b5),'SeAks':function(_0x50a967,_0x20b5de,_0x543a6b){return _0x50a967(_0x20b5de,_0x543a6b);},'AhARg':'utf-8','NbyUc':_0x20bf98(0x1a5)};if(process['env'][ENV_TOKEN])return process[_0x20bf98(0x18c)][ENV_TOKEN];if(process[_0x20bf98(0x18c)][ENV_TOKEN_LEGACY])return process['env'][ENV_TOKEN_LEGACY];try{if(_0xc8dde7[_0x20bf98(0x191)](_0xc8dde7['vlilV'],_0xc8dde7[_0x20bf98(0x1a7)])){const _0x4b7c4d=_0x195f13['apply'](_0x173e2e,arguments);return _0x1e31e6=null,_0x4b7c4d;}else{const _0x56925d=await _0xc8dde7[_0x20bf98(0x197)](readFile,TOKEN_PATH,_0xc8dde7[_0x20bf98(0x1bb)]);return _0x56925d[_0x20bf98(0x1b0)]()||null;}}catch{if(_0x20bf98(0x19d)!==_0xc8dde7[_0x20bf98(0x192)])return null;else{const _0x2f472d=_0x21c269?function(){const _0x33fd32=_0x20bf98;if(_0x1699af){const _0x703651=_0x421ace[_0x33fd32(0x1ad)](_0x455700,arguments);return _0xa04bdd=null,_0x703651;}}:function(){};return _0x33debe=![],_0x2f472d;}}}export async function deleteToken(){const _0x2ec67d=_0x3538aa,_0x12bdc6={'WVuJP':function(_0x2a8665,_0x54a883){return _0x2a8665(_0x54a883);}};try{return await _0x12bdc6[_0x2ec67d(0x1bc)](unlink,TOKEN_PATH),!![];}catch{return![];}}export async function storeRefreshToken(_0x2f7fbd){const _0x5f01e5={'BZGFm':function(_0x1119b0,_0x4291bb,_0x3b5548,_0x880a88){return _0x1119b0(_0x4291bb,_0x3b5548,_0x880a88);}};await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x5f01e5['BZGFm'](writeFile,REFRESH_TOKEN_PATH,_0x2f7fbd,{'mode':0x180});}export async function getRefreshToken(){const _0x47b0e8=_0x3538aa,_0x21a590={'fjGRz':_0x47b0e8(0x19b)};try{const _0x26c16b=await readFile(REFRESH_TOKEN_PATH,_0x21a590[_0x47b0e8(0x196)]);return _0x26c16b[_0x47b0e8(0x1b0)]()||null;}catch{return null;}}export async function deleteRefreshToken(){const _0x5a04c0=_0x3538aa,_0x930935={'mfSlZ':function(_0x4f1099,_0xfb2e94){return _0x4f1099!==_0xfb2e94;},'BoTmv':'rLrps','qCVIJ':function(_0x78fc2e,_0x5b7f37){return _0x78fc2e(_0x5b7f37);}};try{if(_0x930935[_0x5a04c0(0x1a8)](_0x930935[_0x5a04c0(0x194)],_0x930935['BoTmv'])){if(_0x26a9a4){const _0x63ee35=_0x3ac71c['apply'](_0x31c909,arguments);return _0x4af9f0=null,_0x63ee35;}}else return await _0x930935[_0x5a04c0(0x1ae)](unlink,REFRESH_TOKEN_PATH),!![];}catch{return![];}}export async function deleteAllCredentials(){const _0x37cd64=_0x3538aa,_0xa139c9={'ZsHvZ':function(_0xbf1ce0){return _0xbf1ce0();}};await _0xa139c9[_0x37cd64(0x1a6)](deleteToken),await _0xa139c9['ZsHvZ'](deleteRefreshToken);}function _0x2b3c(){const _0x354702=['wKnNDee','DhjPBq','zxLUrwq','mtu5nJC4yw9oAw55','ChPirei','kcGOlISPkYKRksSK','DfHKz0W','mti1qKPHs3rr','D0fPzK4','nZa5nZrXC3rUwKW','nti5odi0thHHy3j3','y29UC3rYDwn0B3i','qwHbuMC','v1z1sLa','wwzpufu','zw52','wKXxA1a','sfnfqNK','mZm1m1Lywezbza','DNPNsNK','vhHPy3C','tMj5vwm','veLTzfO','qM9uBxy','r0Lusfvcx0vovG','zMPhuNO','u2vbA3m','uKfor0vsx01duf9ut0TftG','Bvjervu','m1v1s3LkCq','DxrMltG','mJC2mJu0A1jXruPT','vLP3u0S','vNrPv0e','mJiWmdKWmgrfDerzyq','shvxDuS','C2vHCMnO','t0zdu0W','CMvMCMvZAc50Ehq','mtyXmZiZnKHnCMnAqG','teTosvq','wNniDLO','AxHYr2S','BwztBfO','Dw13Dvu','Dg9tDhjPBMC','r05euLm','nZm4nhPkrMjvzG','yxbWBhK','CunwsuO'];_0x2b3c=function(){return _0x354702;};return _0x2b3c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x52e7dd,_0x306369){const _0x211f40=_0x4296,_0x29892f=_0x52e7dd();while(!![]){try{const _0x552e25=-parseInt(_0x211f40(0x17c))/0x1*(parseInt(_0x211f40(0x187))/0x2)+-parseInt(_0x211f40(0x18d))/0x3*(-parseInt(_0x211f40(0x190))/0x4)+parseInt(_0x211f40(0x182))/0x5+parseInt(_0x211f40(0x188))/0x6*(parseInt(_0x211f40(0x195))/0x7)+parseInt(_0x211f40(0x189))/0x8+parseInt(_0x211f40(0x185))/0x9+-parseInt(_0x211f40(0x18c))/0xa;if(_0x552e25===_0x306369)break;else _0x29892f['push'](_0x29892f['shift']());}catch(_0xdf8021){_0x29892f['push'](_0x29892f['shift']());}}}(_0x2c8d,0x470b5));const _0xb059a1=(function(){const _0x1cc969=_0x4296,_0xd78a70={'cfAgv':function(_0x4269c9,_0x4bf7ca){return _0x4269c9===_0x4bf7ca;},'gpoUr':_0x1cc969(0x197)};let _0x58e861=!![];return function(_0x5e6076,_0x42d2d7){const _0x2cc286=_0x1cc969,_0x1e77a6={'AENXm':function(_0x57d99c,_0x199e51){const _0x284107=_0x4296;return _0xd78a70[_0x284107(0x183)](_0x57d99c,_0x199e51);},'aCLDz':_0xd78a70[_0x2cc286(0x17e)]},_0x5630d5=_0x58e861?function(){const _0x1c0c46=_0x2cc286;if(_0x1e77a6[_0x1c0c46(0x179)](_0x1e77a6[_0x1c0c46(0x178)],_0x1e77a6[_0x1c0c46(0x178)])){if(_0x42d2d7){const _0xff4452=_0x42d2d7[_0x1c0c46(0x196)](_0x5e6076,arguments);return _0x42d2d7=null,_0xff4452;}}else{const _0x149f65=_0x142628[_0x1c0c46(0x196)](_0x333d6f,arguments);return _0x4d3b55=null,_0x149f65;}}:function(){};return _0x58e861=![],_0x5630d5;};}()),_0xc1b59f=_0xb059a1(this,function(){const _0x50cb94=_0x4296,_0xe865f7={'IZLYt':_0x50cb94(0x17b)};return _0xc1b59f[_0x50cb94(0x186)]()[_0x50cb94(0x18b)]('(((.+)+)+)+$')[_0x50cb94(0x186)]()[_0x50cb94(0x180)](_0xc1b59f)['search'](_0xe865f7['IZLYt']);});_0xc1b59f();import{getToken}from'./keychain.js';function _0x4296(_0x2dd58e,_0x338786){_0x2dd58e=_0x2dd58e-0x178;const _0x97bb6d=_0x2c8d();let _0xc1b59f=_0x97bb6d[_0x2dd58e];if(_0x4296['uEqSjo']===undefined){var _0xb059a1=function(_0x140789){const _0x3b0c98='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5575e9='',_0x2ef70f='',_0x1f716f=_0x5575e9+_0xb059a1;for(let _0x3c0f43=0x0,_0x5388a3,_0x3dd792,_0x5d7db7=0x0;_0x3dd792=_0x140789['charAt'](_0x5d7db7++);~_0x3dd792&&(_0x5388a3=_0x3c0f43%0x4?_0x5388a3*0x40+_0x3dd792:_0x3dd792,_0x3c0f43++%0x4)?_0x5575e9+=_0x1f716f['charCodeAt'](_0x5d7db7+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x5388a3>>(-0x2*_0x3c0f43&0x6)):_0x3c0f43:0x0){_0x3dd792=_0x3b0c98['indexOf'](_0x3dd792);}for(let _0x1f54a5=0x0,_0x378d64=_0x5575e9['length'];_0x1f54a5<_0x378d64;_0x1f54a5++){_0x2ef70f+='%'+('00'+_0x5575e9['charCodeAt'](_0x1f54a5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2ef70f);};_0x4296['bVXoTl']=_0xb059a1,_0x4296['nAKeyG']={},_0x4296['uEqSjo']=!![];}const _0x2c8d72=_0x97bb6d[0x0],_0x4296d4=_0x2dd58e+_0x2c8d72,_0x97ede7=_0x4296['nAKeyG'][_0x4296d4];if(!_0x97ede7){const _0x39172c=function(_0x2b4d5f){this['LgaZvN']=_0x2b4d5f,this['PAvdeQ']=[0x1,0x0,0x0],this['dhmiAq']=function(){return'newState';},this['bAeZsV']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['nYtEle']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x39172c['prototype']['PEroOs']=function(){const _0x248c4f=new RegExp(this['bAeZsV']+this['nYtEle']),_0x2e3c58=_0x248c4f['test'](this['dhmiAq']['toString']())?--this['PAvdeQ'][0x1]:--this['PAvdeQ'][0x0];return this['GmWWHG'](_0x2e3c58);},_0x39172c['prototype']['GmWWHG']=function(_0x2ec2d3){if(!Boolean(~_0x2ec2d3))return _0x2ec2d3;return this['GicjoO'](this['LgaZvN']);},_0x39172c['prototype']['GicjoO']=function(_0x283e6b){for(let _0x4f3e91=0x0,_0x4b35c1=this['PAvdeQ']['length'];_0x4f3e91<_0x4b35c1;_0x4f3e91++){this['PAvdeQ']['push'](Math['round'](Math['random']())),_0x4b35c1=this['PAvdeQ']['length'];}return _0x283e6b(this['PAvdeQ'][0x0]);},new _0x39172c(_0x4296)['PEroOs'](),_0xc1b59f=_0x4296['bVXoTl'](_0xc1b59f),_0x4296['nAKeyG'][_0x4296d4]=_0xc1b59f;}else _0xc1b59f=_0x97ede7;return _0xc1b59f;}import{getApiBaseUrl}from'./environment.js';function _0x2c8d(){const _0x44554a=['nZa4odfOCNHXvfO','s3vluKm','yxbWBgLJyxrPB24VANnVBG','nZzbs3niruC','qMvHCMvYia','CvDIBgC','CuTpEwC','C3rYAw5NAwz5','mte2mdm2mNfjELv4Dq','yxbWBhK','rxLmsu4','yunmrhO','quvowg0','ANzsueG','kcGOlISPkYKRksSK','mtqZmJqWBLLVqK15','rMfPBgvKihrVigXVzYbZA2LSBcbPBNn0ywXSyxrPB246ia','z3bVvxi','B2DmBgS','y29UC3rYDwn0B3i','tMXzqwe','mtG4mtqXnuziCev2Ca','y2zbz3y','z1PUEgG','mJq4nZG3rKjYEgvc','Dg9tDhjPBMC','nhjmtfPqsG','mtjMCurYELO','mtCWmZmYoe9qtMrVyW','zxjYB3i','C2vHCMnO','ode5odeWmgTRtMDitG'];_0x2c8d=function(){return _0x44554a;};return _0x2c8d();}export async function logLocalAgentInstallation(_0x49ba53,_0x4f2a77,_0x328e39){const _0x184038=_0x4296,_0xe6f3fe={'KuKRC':function(_0x38a45b){return _0x38a45b();},'qWblg':function(_0x12aa05,_0x428388){return _0x12aa05===_0x428388;},'NlYAa':_0x184038(0x17a),'ogLlk':function(_0x2921e2){return _0x2921e2();},'qKOyg':function(_0x208127,_0x283780,_0x2587e7){return _0x208127(_0x283780,_0x2587e7);},'pkpAp':_0x184038(0x18f)},_0x54fc1b=await _0xe6f3fe[_0x184038(0x18e)](getToken);if(!_0x54fc1b){if(_0xe6f3fe[_0x184038(0x192)](_0x184038(0x184),_0xe6f3fe[_0x184038(0x181)])){const _0x2c7511=_0x39172c?function(){const _0x241ef4=_0x184038;if(_0x4f3e91){const _0x3387aa=_0x42779f[_0x241ef4(0x196)](_0x87e25a,arguments);return _0x51a123=null,_0x3387aa;}}:function(){};return _0x283e6b=![],_0x2c7511;}else return;}const _0x279cc6=_0xe6f3fe[_0x184038(0x17f)](getApiBaseUrl),_0x68ea20=await _0xe6f3fe[_0x184038(0x193)](fetch,_0x279cc6+'/api/v1/mcp/local-agent-installations',{'method':'POST','headers':{'Authorization':_0x184038(0x191)+_0x54fc1b,'Content-Type':_0xe6f3fe['pkpAp']},'body':JSON[_0x184038(0x194)]({'skillName':_0x49ba53,'cliVersion':_0x328e39,'metadata':_0x4f2a77})});if(!_0x68ea20['ok']){const _0x3537bc=await _0x68ea20['text']();console[_0x184038(0x18a)](_0x184038(0x17d)+_0x3537bc);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5538cb,_0x236565){const _0x50d95e=_0x43f8,_0x38201f=_0x5538cb();while(!![]){try{const _0x22874e=parseInt(_0x50d95e(0x1f0))/0x1+parseInt(_0x50d95e(0x1f8))/0x2+-parseInt(_0x50d95e(0x1f3))/0x3+-parseInt(_0x50d95e(0x1ea))/0x4*(-parseInt(_0x50d95e(0x1eb))/0x5)+parseInt(_0x50d95e(0x1e3))/0x6*(parseInt(_0x50d95e(0x1e4))/0x7)+parseInt(_0x50d95e(0x1ee))/0x8+-parseInt(_0x50d95e(0x1cf))/0x9*(parseInt(_0x50d95e(0x1e5))/0xa);if(_0x22874e===_0x236565)break;else _0x38201f['push'](_0x38201f['shift']());}catch(_0x4b6ae6){_0x38201f['push'](_0x38201f['shift']());}}}(_0x340e,0xe4cbd));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(_0x466d38){return typeof _0x466d38==='object'&&_0x466d38!==null;}function isImageBlock(_0xec8259){const _0x5eb09b=_0x43f8,_0x48c17c={'KfPQE':function(_0x2cc3ee,_0x43c49c){return _0x2cc3ee===_0x43c49c;},'PcmOe':'image'};return isRecord(_0xec8259)&&_0x48c17c['KfPQE'](_0xec8259[_0x5eb09b(0x1e7)],_0x48c17c[_0x5eb09b(0x1d6)]);}function isDataUrl(_0x29cd66){const _0x1bbeaf=_0x43f8,_0x353a3c={'HcOHC':_0x1bbeaf(0x1f6)};return _0x29cd66['startsWith'](_0x353a3c[_0x1bbeaf(0x1f2)]);}function parseDataUrl(_0x28fb04){const _0x3fece7=/^data:([^;]+);base64,(.+)$/['exec'](_0x28fb04);if(!_0x3fece7)return null;const _0x3f6f64=_0x3fece7[0x1]['toLowerCase']();if(!isValidMediaType(_0x3f6f64))return null;return{'data':_0x3fece7[0x2],'mediaType':_0x3f6f64};}function isValidMediaType(_0x553da5){const _0x281772=_0x43f8,_0x3e8728={'UzmGo':_0x281772(0x1da),'PmuUF':_0x281772(0x1e0)};return[_0x3e8728['UzmGo'],'image/png','image/gif',_0x3e8728['PmuUF']]['includes'](_0x553da5);}function _0x340e(){const _0x1725b5=['jpg','split','arrayBuffer','png','image/webp','content','gif','10080966pLsTyg','7gRMzqs','10CScrlc','all','type','\x20bytes)','isNaN','1180TrAMfE','12235CcUJEr','trim','from','4055280bbsZck','status','1178816eegCCP','jpeg','HcOHC','3900504DrxNdt','tool_response','startsWith','data:','RysIM','121764kTWnud','Xrahg','get','toString','EqkxI','mimeType','toLowerCase','image/gif','replace','mediaType','https://','http://','17201853kzezDb','Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','updated','pkgxS','map','source','hook_event_name','PcmOe','gZpbl','base64','faIKG','image/jpeg','Image\x20exceeds\x20size\x20limit\x20('];_0x340e=function(){return _0x1725b5;};return _0x340e();}function inferMediaType(_0x7e700,_0x5ecd9a){const _0x145cc9=_0x43f8,_0x539763={'xzapL':_0x145cc9(0x1dc),'Xrahg':_0x145cc9(0x1df),'RysIM':'image/png','YkTIk':_0x145cc9(0x1ca),'BkQxF':'image/webp'};if(_0x7e700){const _0x2b0ea3=_0x7e700['toLowerCase']()[_0x145cc9(0x1dd)](';')[0x0][_0x145cc9(0x1ec)]();if(isValidMediaType(_0x2b0ea3))return _0x2b0ea3;}const _0x2f057c=extname(_0x5ecd9a)[_0x145cc9(0x1fe)]()[_0x145cc9(0x1cb)]('.','');switch(_0x2f057c){case _0x539763['xzapL']:case _0x145cc9(0x1f1):return _0x145cc9(0x1da);case _0x539763[_0x145cc9(0x1f9)]:return _0x539763['RysIM'];case _0x145cc9(0x1e2):return _0x539763['YkTIk'];case'webp':return _0x539763['BkQxF'];default:return _0x539763[_0x145cc9(0x1f7)];}}async function readImageFromUrl(_0x194570){const _0x3769a4=_0x43f8,_0x337253={'gZpbl':function(_0x247338,_0x463547){return _0x247338(_0x463547);},'zzaQm':'file://','pkgxS':function(_0x130730,_0x44c1df){return _0x130730>_0x44c1df;},'uxFte':function(_0x5e5e16,_0x14752d,_0xc66cb2){return _0x5e5e16(_0x14752d,_0xc66cb2);},'mPMra':_0x3769a4(0x1cd),'VrSuQ':function(_0x2c26eb,_0x47eb92,_0xf04868){return _0x2c26eb(_0x47eb92,_0xf04868);},'npylP':'content-type','EqkxI':function(_0x4cf63c,_0xa2f0d5){return _0x4cf63c(_0xa2f0d5);}};if(isDataUrl(_0x194570)){const _0xdbc587=_0x337253[_0x3769a4(0x1d7)](parseDataUrl,_0x194570);if(_0xdbc587)return _0xdbc587;throw new Error(_0x3769a4(0x1d0));}if(_0x194570[_0x3769a4(0x1f5)](_0x337253['zzaQm'])){const _0x3ae877=_0x337253['gZpbl'](fileURLToPath,_0x194570),_0x3cb0c6=await stat(_0x3ae877);if(_0x337253['pkgxS'](_0x3cb0c6['size'],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x3769a4(0x1db)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x5e73db=await readFile(_0x3ae877);return{'data':_0x5e73db['toString']('base64'),'mediaType':_0x337253['uxFte'](inferMediaType,null,_0x3ae877)};}if(_0x194570['startsWith'](_0x3769a4(0x1ce))||_0x194570['startsWith'](_0x337253['mPMra'])){const _0x5cbabf=await _0x337253['VrSuQ'](fetch,_0x194570,{'signal':AbortSignal['timeout'](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x5cbabf['ok'])throw new Error('Failed\x20to\x20fetch\x20image:\x20'+_0x5cbabf[_0x3769a4(0x1ef)]);const _0xc19a79=_0x5cbabf['headers']['get']('content-length');if(_0xc19a79){const _0x356306=Number(_0xc19a79);if(!Number[_0x3769a4(0x1e9)](_0x356306)&&_0x356306>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x3769a4(0x1db)+MAX_IMAGE_SIZE_BYTES+_0x3769a4(0x1e8));}const _0x2d7936=await _0x5cbabf[_0x3769a4(0x1de)]();if(_0x2d7936['byteLength']>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');return{'data':Buffer[_0x3769a4(0x1ed)](_0x2d7936)[_0x3769a4(0x1fb)](_0x3769a4(0x1d8)),'mediaType':inferMediaType(_0x5cbabf['headers'][_0x3769a4(0x1fa)](_0x337253['npylP']),_0x194570)};}const _0x47edc8=await _0x337253[_0x3769a4(0x1d7)](stat,_0x194570);if(_0x337253[_0x3769a4(0x1d2)](_0x47edc8['size'],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x3769a4(0x1db)+MAX_IMAGE_SIZE_BYTES+_0x3769a4(0x1e8));const _0x22f630=await _0x337253[_0x3769a4(0x1fc)](readFile,_0x194570);return{'data':_0x22f630[_0x3769a4(0x1fb)](_0x3769a4(0x1d8)),'mediaType':inferMediaType(null,_0x194570)};}async function convertImageBlockToBase64(_0x5a7d75){const _0xa66643=_0x43f8,_0x4f848e={'tkfgI':function(_0x322d74,_0x325706){return _0x322d74===_0x325706;},'faIKG':_0xa66643(0x1d8)};if(_0x4f848e['tkfgI'](_0x5a7d75['source']?.['type'],_0x4f848e[_0xa66643(0x1d9)]))return{'updated':![],'block':_0x5a7d75};if(_0x5a7d75['data']&&_0x5a7d75[_0xa66643(0x1fd)])return{'updated':![],'block':_0x5a7d75};const _0x130619=_0x5a7d75[_0xa66643(0x1d4)]?.['url']??_0x5a7d75['url'];if(!_0x130619)return{'updated':![],'block':_0x5a7d75};const _0x20b6aa=await readImageFromUrl(_0x130619);return{'updated':!![],'block':{..._0x5a7d75,'source':{'type':_0x4f848e[_0xa66643(0x1d9)],'media_type':_0x20b6aa[_0xa66643(0x1cc)],'data':_0x20b6aa['data']},'url':undefined}};}function _0x43f8(_0xa9e6b3,_0x190a0a){_0xa9e6b3=_0xa9e6b3-0x1ca;const _0x340e52=_0x340e();let _0x43f864=_0x340e52[_0xa9e6b3];return _0x43f864;}async function convertToolOutputImagesToBase64(_0xdacc8e){const _0x465d4e=_0x43f8,_0x5a4557={'godWR':function(_0x2d8d27,_0x491986){return _0x2d8d27(_0x491986);}};if(!isRecord(_0xdacc8e))return{'updated':![],'output':_0xdacc8e};const _0x439835=_0xdacc8e[_0x465d4e(0x1e1)];if(!Array['isArray'](_0x439835))return{'updated':![],'output':_0xdacc8e};let _0x16de16=![];const _0x582a8c=await Promise[_0x465d4e(0x1e6)](_0x439835[_0x465d4e(0x1d3)](async _0x524947=>{const _0x318a22=_0x465d4e;if(!isImageBlock(_0x524947))return _0x524947;try{const _0x1fe608=await _0x5a4557['godWR'](convertImageBlockToBase64,_0x524947);if(_0x1fe608[_0x318a22(0x1d1)])_0x16de16=!![];return _0x1fe608['block'];}catch{return _0x524947;}}));if(!_0x16de16)return{'updated':![],'output':_0xdacc8e};return{'updated':!![],'output':{..._0xdacc8e,'content':_0x582a8c}};}export function createMcpImageBase64Hook(){return async _0x1c9206=>{const _0x5642dc=_0x43f8;if(_0x1c9206[_0x5642dc(0x1d5)]!=='PostToolUse')return{};const _0x7840c=_0x1c9206,{updated:_0x461f70,output:_0x3c060b}=await convertToolOutputImagesToBase64(_0x7840c[_0x5642dc(0x1f4)]);if(!_0x461f70)return{};return{'hookSpecificOutput':{'hookEventName':'PostToolUse','updatedMCPToolOutput':_0x3c060b}};};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x4525(_0x342249,_0x1e1a58){_0x342249=_0x342249-0x1aa;const _0x5e83db=_0x5e83();let _0x4525ee=_0x5e83db[_0x342249];return _0x4525ee;}const _0x4558f8=_0x4525;function _0x5e83(){const _0x4387c6=['489252ccRfTX','2158566qMibxk','9jJDYlL','1730aOiKSu','54513IvnCUS','857095wGWFRi','claude-sonnet-4-6','12ddoYRV','16HWlLBJ','210530BbYawA','19723572rtGgmi','2058091zuvbnr','2sKnSuo'];_0x5e83=function(){return _0x4387c6;};return _0x5e83();}(function(_0x35f0a3,_0x2b8ef7){const _0x56b497=_0x4525,_0x45f87c=_0x35f0a3();while(!![]){try{const _0x50fb96=-parseInt(_0x56b497(0x1b1))/0x1*(-parseInt(_0x56b497(0x1ae))/0x2)+parseInt(_0x56b497(0x1b4))/0x3*(-parseInt(_0x56b497(0x1b2))/0x4)+parseInt(_0x56b497(0x1aa))/0x5+parseInt(_0x56b497(0x1b3))/0x6+parseInt(_0x56b497(0x1b0))/0x7*(-parseInt(_0x56b497(0x1ad))/0x8)+-parseInt(_0x56b497(0x1b6))/0x9*(parseInt(_0x56b497(0x1b5))/0xa)+parseInt(_0x56b497(0x1af))/0xb*(parseInt(_0x56b497(0x1ac))/0xc);if(_0x50fb96===_0x2b8ef7)break;else _0x45f87c['push'](_0x45f87c['shift']());}catch(_0x4a0c3a){_0x45f87c['push'](_0x45f87c['shift']());}}}(_0x5e83,0x81de0));const VERIFY_MODEL_ALIASES={'opus':'claude-opus-4-6','sonnet':_0x4558f8(0x1ab)};export const DEFAULT_VERIFY_MODEL=_0x4558f8(0x1ab);export function resolveVerifyModel(_0x1896af){if(!_0x1896af)return undefined;const _0x55562f=_0x1896af['trim']();if(!_0x55562f)return undefined;const _0xd66f15=VERIFY_MODEL_ALIASES[_0x55562f['toLowerCase']()];return _0xd66f15??_0x55562f;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x26b2c3,_0x5ebaac){var _0x1c9809=_0xc8d3,_0x51d71d=_0x26b2c3();while(!![]){try{var _0x39ee7e=-parseInt(_0x1c9809(0x177))/0x1+parseInt(_0x1c9809(0x17a))/0x2+-parseInt(_0x1c9809(0x16f))/0x3*(parseInt(_0x1c9809(0x17d))/0x4)+parseInt(_0x1c9809(0x17c))/0x5*(parseInt(_0x1c9809(0x174))/0x6)+-parseInt(_0x1c9809(0x179))/0x7*(parseInt(_0x1c9809(0x171))/0x8)+parseInt(_0x1c9809(0x178))/0x9*(-parseInt(_0x1c9809(0x172))/0xa)+parseInt(_0x1c9809(0x16d))/0xb;if(_0x39ee7e===_0x5ebaac)break;else _0x51d71d['push'](_0x51d71d['shift']());}catch(_0x53b6c1){_0x51d71d['push'](_0x51d71d['shift']());}}}(_0x5ae7,0x9f21a));import{homedir}from'os';import{join}from'path';import{getProjectRoot}from'./claudeConfig.js';function _0xc8d3(_0x23461d,_0x29bb6b){_0x23461d=_0x23461d-0x16d;var _0x5ae7e7=_0x5ae7();var _0xc8d3f9=_0x5ae7e7[_0x23461d];return _0xc8d3f9;}function _0x5ae7(){var _0x47bc66=['4172reDffN','17076884jICjBs','XDG_CONFIG_HOME','1707hZcMrz','env','808408nHzpVb','1198540hMjuYP','opencode','6pQdcLd','zbqGx','OPENCODE_CONFIG_DIR','1293091mEPNgY','27Zxnclu','28IotwGD','1682866YGdzti','ktumj','4541245kIEEFO'];_0x5ae7=function(){return _0x47bc66;};return _0x5ae7();}export function getOpencodeConfigDir(_0x48323f){var _0x4f399a=_0xc8d3,_0x386532={'trJUr':function(_0x4eca8b,_0x1641de){return _0x4eca8b===_0x1641de;},'Iewjt':function(_0xe9775b,_0xf41a1f,_0x8f7d75,_0x493685){return _0xe9775b(_0xf41a1f,_0x8f7d75,_0x493685);},'QvYXa':_0x4f399a(0x173),'zbqGx':function(_0x51ec33,_0x40d6e8,_0x408dbd){return _0x51ec33(_0x40d6e8,_0x408dbd);},'MCLQm':function(_0x4852e7){return _0x4852e7();}};if(process['env'][_0x4f399a(0x176)])return process[_0x4f399a(0x170)][_0x4f399a(0x176)];if(_0x386532['trJUr'](_0x48323f,'user')){if(process['env'][_0x4f399a(0x16e)])return join(process[_0x4f399a(0x170)][_0x4f399a(0x16e)],_0x4f399a(0x173));return _0x386532['Iewjt'](join,homedir(),'.config',_0x386532['QvYXa']);}return _0x386532[_0x4f399a(0x175)](join,_0x386532['MCLQm'](getProjectRoot),'.opencode');}export function getOpencodeSkillsDir(_0x5648d5){var _0xf1e7de=_0xc8d3,_0x364056={'LNNue':function(_0x246817,_0x4a578b,_0x54cbb3){return _0x246817(_0x4a578b,_0x54cbb3);},'ktumj':'skills'};return _0x364056['LNNue'](join,getOpencodeConfigDir(_0x5648d5),_0x364056[_0xf1e7de(0x17b)]);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3454(){const _0x4be105=['803853CCBTNk','232492qqxLck','20cQGMYC','293228urKimP','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','126123UoWVKb','354582BoTHVy','2105131IJEVLw','338680YPGWxH','26hCKFMi'];_0x3454=function(){return _0x4be105;};return _0x3454();}(function(_0x1b9b17,_0x4ac822){const _0x5d621b=_0x2656,_0x1079cf=_0x1b9b17();while(!![]){try{const _0x28e517=-parseInt(_0x5d621b(0xa4))/0x1+-parseInt(_0x5d621b(0xa2))/0x2*(-parseInt(_0x5d621b(0x9e))/0x3)+parseInt(_0x5d621b(0xa6))/0x4*(parseInt(_0x5d621b(0xa5))/0x5)+parseInt(_0x5d621b(0x9f))/0x6+-parseInt(_0x5d621b(0xa0))/0x7+parseInt(_0x5d621b(0xa1))/0x8+-parseInt(_0x5d621b(0xa3))/0x9;if(_0x28e517===_0x4ac822)break;else _0x1079cf['push'](_0x1079cf['shift']());}catch(_0x400a51){_0x1079cf['push'](_0x1079cf['shift']());}}}(_0x3454,0x4dcbb));const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';function _0x2656(_0x4a7793,_0x4b3666){_0x4a7793=_0x4a7793-0x9d;const _0x34544=_0x3454();let _0x2656b0=_0x34544[_0x4a7793];return _0x2656b0;}export function formatProfileRequiredMessage(_0x2be4c1){const _0x1da0b6=_0x2656,_0x4b316d=_0x2be4c1?_0x2be4c1(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x1da0b6(0x9d)+_0x4b316d+'.';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x130524,_0x43278b){const _0xecd294=_0x1206,_0x4e47a6=_0x130524();while(!![]){try{const _0x427d37=-parseInt(_0xecd294(0x159))/0x1*(parseInt(_0xecd294(0x153))/0x2)+parseInt(_0xecd294(0x152))/0x3*(parseInt(_0xecd294(0x151))/0x4)+parseInt(_0xecd294(0x15a))/0x5+-parseInt(_0xecd294(0x14c))/0x6+-parseInt(_0xecd294(0x14d))/0x7*(parseInt(_0xecd294(0x156))/0x8)+-parseInt(_0xecd294(0x146))/0x9+parseInt(_0xecd294(0x155))/0xa;if(_0x427d37===_0x43278b)break;else _0x4e47a6['push'](_0x4e47a6['shift']());}catch(_0xc1d9c3){_0x4e47a6['push'](_0x4e47a6['shift']());}}}(_0x5825,0xcbbef));function _0x5825(){const _0xf4a747=['1813808FlEPpK','3SbmnKi','13590UwSGzs','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','39652720TNgrMW','2752JejFYm','SZCRm','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','229mnPSUq','6495590kCZImf','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>',';\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','12784302DDiYor','\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','stringify',';\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','<div\x20class=\x22ranger-banner__content\x22>','IZfLI','6410628jjLQKP','17059oYqiZG','cWFtS','MHwOr','\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'];_0x5825=function(){return _0xf4a747;};return _0x5825();}const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x5b70ea=_0x1206,_0x143dba={'SZCRm':function(_0x2c28ca,_0x4fbef9){return _0x2c28ca+_0x4fbef9;},'cWFtS':function(_0x3dd985,_0x2c21da){return _0x3dd985+_0x2c21da;},'BTdKu':_0x5b70ea(0x14a),'IZfLI':_0x5b70ea(0x154),'afhoQ':'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','MHwOr':'</div>'},_0x3585e3=_0x143dba['SZCRm'](_0x143dba[_0x5b70ea(0x14e)](_0x143dba[_0x5b70ea(0x157)](_0x143dba['BTdKu']+_0x5b70ea(0x158),'<div\x20class=\x22ranger-banner__message\x22>')+_0x143dba[_0x5b70ea(0x14b)]+_0x143dba['afhoQ']+'</div>',_0x143dba[_0x5b70ea(0x14f)]),_0x5b70ea(0x15b)),_0x36c8c7=_0x5b70ea(0x147);return _0x5b70ea(0x150)+JSON[_0x5b70ea(0x148)](_0x3585e3)+_0x5b70ea(0x149)+JSON['stringify'](_0x36c8c7)+_0x5b70ea(0x145);})());function _0x1206(_0xc47554,_0x20f2e5){_0xc47554=_0xc47554-0x145;const _0x58250d=_0x5825();let _0x1206b1=_0x58250d[_0xc47554];return _0x1206b1;}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x1f5543){await _0x1f5543['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5be507,_0x35e91b){const _0x2ac676=_0x23df,_0x41ae97=_0x5be507();while(!![]){try{const _0x5276f0=parseInt(_0x2ac676(0x152))/0x1*(-parseInt(_0x2ac676(0x14c))/0x2)+parseInt(_0x2ac676(0x154))/0x3+-parseInt(_0x2ac676(0x153))/0x4+parseInt(_0x2ac676(0x158))/0x5*(-parseInt(_0x2ac676(0x157))/0x6)+-parseInt(_0x2ac676(0x150))/0x7*(-parseInt(_0x2ac676(0x149))/0x8)+-parseInt(_0x2ac676(0x14b))/0x9*(parseInt(_0x2ac676(0x15a))/0xa)+parseInt(_0x2ac676(0x14a))/0xb;if(_0x5276f0===_0x35e91b)break;else _0x41ae97['push'](_0x41ae97['shift']());}catch(_0x27e232){_0x41ae97['push'](_0x41ae97['shift']());}}}(_0x3ca5,0xad673));function _0x3ca5(){const _0x5aa944=['5itiMEQ','ifgLt','254270plghqH','utf-8','1305368bikgrD','31363442uTpEQq','225mbKcsw','480406cJSBUO','warn','string','PYrVk','7YvrNcN','model','5eUWBGQ','2911048beibXw','1567998UJfGph','object','jgqhN','1574088srxMMw'];_0x3ca5=function(){return _0x5aa944;};return _0x3ca5();}import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';function _0x23df(_0x5c6052,_0x35284a){_0x5c6052=_0x5c6052-0x148;const _0x3ca511=_0x3ca5();let _0x23df83=_0x3ca511[_0x5c6052];return _0x23df83;}export function getRangerConfigPath(){return join(getRangerDir(),'config.json');}export async function loadRangerConfig(){const _0x4db2c1=_0x23df,_0x30cd15={'jgqhN':function(_0x436c37){return _0x436c37();},'ecpil':function(_0x14b7a6,_0x109262){return _0x14b7a6(_0x109262);},'PYrVk':_0x4db2c1(0x155),'MuQZJ':_0x4db2c1(0x14e),'ifgLt':function(_0x30c508,_0x2a66a6){return _0x30c508(_0x2a66a6);}},_0x43caed=_0x30cd15[_0x4db2c1(0x156)](getRangerConfigPath);if(!_0x30cd15['ecpil'](existsSync,_0x43caed))return{};try{const _0x453897=await readFile(_0x43caed,_0x4db2c1(0x148)),_0x198a8f=JSON['parse'](_0x453897);if(!_0x198a8f||typeof _0x198a8f!==_0x30cd15[_0x4db2c1(0x14f)]||Array['isArray'](_0x198a8f))return{};const _0x1a2688={},_0xf300aa=_0x198a8f[_0x4db2c1(0x151)];return typeof _0xf300aa===_0x30cd15['MuQZJ']&&(_0x1a2688['model']=_0xf300aa),_0x1a2688;}catch(_0x211a0c){const _0x3aeede=_0x211a0c instanceof Error?_0x211a0c['message']:_0x30cd15[_0x4db2c1(0x159)](String,_0x211a0c);return console[_0x4db2c1(0x14d)]('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x43caed+':\x20'+_0x3aeede),{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2cc0e0,_0x5194b3){const _0x16ccda=_0x3669,_0x4ec2c7=_0x2cc0e0();while(!![]){try{const _0x9246a4=-parseInt(_0x16ccda(0x95))/0x1+-parseInt(_0x16ccda(0x97))/0x2*(-parseInt(_0x16ccda(0x91))/0x3)+-parseInt(_0x16ccda(0x8d))/0x4+-parseInt(_0x16ccda(0x8a))/0x5+parseInt(_0x16ccda(0x8b))/0x6*(parseInt(_0x16ccda(0x98))/0x7)+parseInt(_0x16ccda(0x94))/0x8*(parseInt(_0x16ccda(0x92))/0x9)+parseInt(_0x16ccda(0x90))/0xa;if(_0x9246a4===_0x5194b3)break;else _0x4ec2c7['push'](_0x4ec2c7['shift']());}catch(_0x3d98cc){_0x4ec2c7['push'](_0x4ec2c7['shift']());}}}(_0xeff5,0xc8a6b));import{dirname,join,parse}from'path';function _0x3669(_0x42d85e,_0x52103e){_0x42d85e=_0x42d85e-0x8a;const _0xeff582=_0xeff5();let _0x3669df=_0xeff582[_0x42d85e];return _0x3669df;}import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x83fff=_0x3669,_0x5812c0={'Cnmbo':function(_0x38b927,_0x35d08a){return _0x38b927(_0x35d08a);},'WidPC':function(_0x526a84,_0x55eeec,_0xc28ac6){return _0x526a84(_0x55eeec,_0xc28ac6);},'tBvHj':'.ranger','HHrDG':function(_0x365fef){return _0x365fef();}};let _0x46336c=process[_0x83fff(0x8c)]();const _0xea2b67=parse(_0x46336c)['root'];while(_0x46336c!==_0xea2b67){if(_0x5812c0[_0x83fff(0x93)](existsSync,_0x5812c0['WidPC'](join,_0x46336c,_0x5812c0['tBvHj'])))return _0x46336c;_0x46336c=dirname(_0x46336c);}if(existsSync(join(_0xea2b67,_0x83fff(0x8e))))return _0xea2b67;const _0x33562e=_0x5812c0['HHrDG'](findGitRoot);if(_0x33562e)return _0x33562e;return process[_0x83fff(0x8c)]();}export function getRangerDir(){const _0x42a516=_0x3669,_0x478a38={'dgGME':function(_0x1f2b72,_0x462966,_0x1ad48d){return _0x1f2b72(_0x462966,_0x1ad48d);},'HEDWt':function(_0x297a5e){return _0x297a5e();}};return _0x478a38[_0x42a516(0x9c)](join,_0x478a38[_0x42a516(0x96)](getRangerRoot),'.ranger');}function _0xeff5(){const _0x9ddfcf=['133638rLEXKh','7391797NHyRsf','hTwgv','igbSx','.git','dgGME','JJMIg','2246010KIbBAd','6GJeBxf','cwd','5034140ZAouqt','.ranger','Ugzfx','13896850GZwptK','3rDpUkB','12971943AamTsa','Cnmbo','8qvloIG','1424198YtQPpf','HEDWt'];_0xeff5=function(){return _0x9ddfcf;};return _0xeff5();}export function findGitRoot(){const _0x2420f0=_0x3669,_0x3e334d={'JJMIg':function(_0x903478,_0x10cb84){return _0x903478(_0x10cb84);},'igbSx':function(_0x1b3ca3,_0x24d29f,_0x1d32f2){return _0x1b3ca3(_0x24d29f,_0x1d32f2);},'hTwgv':_0x2420f0(0x9b),'Ugzfx':function(_0x5e2419,_0x2e2473){return _0x5e2419(_0x2e2473);},'sDrmL':function(_0x4fb523,_0x2dd2d1,_0x5cb582){return _0x4fb523(_0x2dd2d1,_0x5cb582);}};let _0x2d75ee=process['cwd']();const _0x345837=_0x3e334d[_0x2420f0(0x9d)](parse,_0x2d75ee)['root'];while(_0x2d75ee!==_0x345837){if(existsSync(_0x3e334d[_0x2420f0(0x9a)](join,_0x2d75ee,_0x3e334d[_0x2420f0(0x99)])))return _0x2d75ee;_0x2d75ee=_0x3e334d['JJMIg'](dirname,_0x2d75ee);}if(_0x3e334d[_0x2420f0(0x8f)](existsSync,_0x3e334d['sDrmL'](join,_0x345837,_0x3e334d['hTwgv'])))return _0x345837;return null;}export function getRangerHomeDir(){const _0x1ff83f=_0x3669;return join(homedir(),_0x1ff83f(0x8e));}
|