@ranger-testing/ranger-cli 2.3.2 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/featureReportGenerator.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/git.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -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 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyInBrowser.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2ce136,_0x363b44){const _0x5c9d01=_0x38bd,_0x10f008=_0x2ce136();while(!![]){try{const _0x4c6487=parseInt(_0x5c9d01(0xca))/0x1+-parseInt(_0x5c9d01(0xc9))/0x2*(-parseInt(_0x5c9d01(0xc3))/0x3)+-parseInt(_0x5c9d01(0xc8))/0x4*(-parseInt(_0x5c9d01(0xcc))/0x5)+-parseInt(_0x5c9d01(0xc7))/0x6+parseInt(_0x5c9d01(0xcb))/0x7+parseInt(_0x5c9d01(0xc5))/0x8+-parseInt(_0x5c9d01(0xc4))/0x9*(parseInt(_0x5c9d01(0xcd))/0xa);if(_0x4c6487===_0x363b44)break;else _0x10f008['push'](_0x10f008['shift']());}catch(_0x588124){_0x10f008['push'](_0x10f008['shift']());}}}(_0x15e2,0x65e62));function _0x15e2(){const _0x4adefa=['15122718Ikdjrn','2793504zjLnNt','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','4778814ASBZFe','9496NCmtnZ','197066UxFeaH','688225nfaORv','5626481mJWnFo','765XDfzkp','10mWXgMK','21orvHjA'];_0x15e2=function(){return _0x4adefa;};return _0x15e2();}const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';function _0x38bd(_0xed1299,_0xcfa4a9){_0xed1299=_0xed1299-0xc3;const _0x15e2f2=_0x15e2();let _0x38bdb2=_0x15e2f2[_0xed1299];return _0x38bdb2;}export function formatProfileRequiredMessage(_0x27d19e){const _0x30814a=_0x38bd,_0x5e56ce=_0x27d19e?_0x27d19e(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x30814a(0xc6)+_0x5e56ce+'.';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x27e3(){const _0x5e1df4=['384905HsyCQY','</div>','kPUgZ','yafMS','71PltkHD','mkqVp','18392jsWliM','stringify','1335483zkvfpw','<div\x20class=\x22ranger-banner__content\x22>','\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','70vFfJFZ','3720276BwDwAR','1134736vPvqya','1125864BXdsuG',';\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','paBcT','20lkQcrh','\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','214242LLKafs'];_0x27e3=function(){return _0x5e1df4;};return _0x27e3();}(function(_0x7ab7f5,_0x1ec2a3){const _0x2152a8=_0x1de4,_0x2c5319=_0x7ab7f5();while(!![]){try{const _0x2bcdc3=-parseInt(_0x2152a8(0x1b6))/0x1*(parseInt(_0x2152a8(0x1a4))/0x2)+parseInt(_0x2152a8(0x1ac))/0x3+parseInt(_0x2152a8(0x1aa))/0x4+-parseInt(_0x2152a8(0x1b2))/0x5+parseInt(_0x2152a8(0x1b1))/0x6*(parseInt(_0x2152a8(0x1a9))/0x7)+-parseInt(_0x2152a8(0x1ab))/0x8+-parseInt(_0x2152a8(0x1a6))/0x9*(parseInt(_0x2152a8(0x1af))/0xa);if(_0x2bcdc3===_0x1ec2a3)break;else _0x2c5319['push'](_0x2c5319['shift']());}catch(_0x1bdc11){_0x2c5319['push'](_0x2c5319['shift']());}}}(_0x27e3,0x7895a));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x1f9a79=_0x1de4,_0x52d412={'yafMS':function(_0x501105,_0x112136){return _0x501105+_0x112136;},'mkqVp':function(_0x1b11e,_0x55d976){return _0x1b11e+_0x55d976;},'paBcT':'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','kPUgZ':'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','AfSlc':'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'},_0x5e29a1=_0x52d412[_0x1f9a79(0x1b5)](_0x52d412['yafMS'](_0x52d412[_0x1f9a79(0x1b7)](_0x1f9a79(0x1a7)+_0x52d412[_0x1f9a79(0x1ae)]+'<div\x20class=\x22ranger-banner__message\x22>','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>')+_0x52d412[_0x1f9a79(0x1b4)],'</div>')+_0x1f9a79(0x1b3),_0x52d412['AfSlc']),_0x177864=_0x1f9a79(0x1b0);return _0x1f9a79(0x1a8)+JSON['stringify'](_0x5e29a1)+_0x1f9a79(0x1ad)+JSON[_0x1f9a79(0x1a5)](_0x177864)+';\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';})());function _0x1de4(_0x25b432,_0x1f59dd){_0x25b432=_0x25b432-0x1a4;const _0x27e385=_0x27e3();let _0x1de43d=_0x27e385[_0x25b432];return _0x1de43d;}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x44d58c){await _0x44d58c['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4c3e87,_0xd8b58f){const _0x17cdae=_0x1632,_0x2d1129=_0x4c3e87();while(!![]){try{const _0x20d146=-parseInt(_0x17cdae(0x13f))/0x1+-parseInt(_0x17cdae(0x144))/0x2*(-parseInt(_0x17cdae(0x141))/0x3)+parseInt(_0x17cdae(0x146))/0x4+-parseInt(_0x17cdae(0x14b))/0x5+-parseInt(_0x17cdae(0x14d))/0x6*(parseInt(_0x17cdae(0x143))/0x7)+-parseInt(_0x17cdae(0x14e))/0x8*(-parseInt(_0x17cdae(0x14a))/0x9)+parseInt(_0x17cdae(0x149))/0xa;if(_0x20d146===_0xd8b58f)break;else _0x2d1129['push'](_0x2d1129['shift']());}catch(_0x275120){_0x2d1129['push'](_0x2d1129['shift']());}}}(_0x35d4,0x7a1b5));import{readFile}from'fs/promises';import{existsSync}from'fs';function _0x1632(_0x38d2ba,_0x153a64){_0x38d2ba=_0x38d2ba-0x13f;const _0x35d479=_0x35d4();let _0x1632d1=_0x35d479[_0x38d2ba];return _0x1632d1;}import{join}from'path';import{getRangerDir}from'./rangerRoot.js';function _0x35d4(){const _0x7aeab7=['6buyIyU','1892456dJkspp','object','GgRsc','string','715528hzTqZO','warn','52890WrKita','message','5649077MuFPKj','62jHtXgQ','isArray','2152272XVzVeq','parse','utf-8','6195240iSgFLk','36HhYeSh','3138310lHPzUl','model'];_0x35d4=function(){return _0x7aeab7;};return _0x35d4();}export function getRangerConfigPath(){const _0x4cec08={'cfbdx':function(_0x123e48,_0x27420a,_0x35099c){return _0x123e48(_0x27420a,_0x35099c);},'qDqeC':function(_0x13d7e4){return _0x13d7e4();},'wGokk':'config.json'};return _0x4cec08['cfbdx'](join,_0x4cec08['qDqeC'](getRangerDir),_0x4cec08['wGokk']);}export async function loadRangerConfig(){const _0x5ac345=_0x1632,_0xa7a669={'vvFTs':function(_0x3b7988,_0x498f96){return _0x3b7988(_0x498f96);},'WurNt':_0x5ac345(0x14f),'GgRsc':_0x5ac345(0x151)},_0x24cf17=getRangerConfigPath();if(!_0xa7a669['vvFTs'](existsSync,_0x24cf17))return{};try{const _0x25f1de=await readFile(_0x24cf17,_0x5ac345(0x148)),_0x6c1d2=JSON[_0x5ac345(0x147)](_0x25f1de);if(!_0x6c1d2||typeof _0x6c1d2!==_0xa7a669['WurNt']||Array[_0x5ac345(0x145)](_0x6c1d2))return{};const _0x3c5b48={},_0x11bdef=_0x6c1d2[_0x5ac345(0x14c)];return typeof _0x11bdef===_0xa7a669[_0x5ac345(0x150)]&&(_0x3c5b48['model']=_0x11bdef),_0x3c5b48;}catch(_0x3ddefb){const _0x52003f=_0x3ddefb instanceof Error?_0x3ddefb[_0x5ac345(0x142)]:_0xa7a669['vvFTs'](String,_0x3ddefb);return console[_0x5ac345(0x140)]('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x24cf17+':\x20'+_0x52003f),{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x49cb25,_0x330d1d){const _0x21294f=_0x9592,_0x3cb323=_0x49cb25();while(!![]){try{const _0x5e37a5=parseInt(_0x21294f(0x14f))/0x1+parseInt(_0x21294f(0x14c))/0x2+parseInt(_0x21294f(0x152))/0x3*(-parseInt(_0x21294f(0x14b))/0x4)+parseInt(_0x21294f(0x148))/0x5+parseInt(_0x21294f(0x142))/0x6+parseInt(_0x21294f(0x143))/0x7+-parseInt(_0x21294f(0x14e))/0x8*(parseInt(_0x21294f(0x145))/0x9);if(_0x5e37a5===_0x330d1d)break;else _0x3cb323['push'](_0x3cb323['shift']());}catch(_0x2118b4){_0x3cb323['push'](_0x3cb323['shift']());}}}(_0x3226,0x43ebb));function _0x3226(){const _0x1f1ab4=['bvTcl','2935809inXdxT','.ranger','eBCqp','633280fhCkEt','.git','imFNA','2111024AInDJj','909880DSFtnf','cOglt','16vfxeBG','346114zZEngo','RMImH','cwd','3lUZAOI','487176yMMMjp','3146185RqyFmQ'];_0x3226=function(){return _0x1f1ab4;};return _0x3226();}import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x50d377=_0x9592,_0x3038cd={'bvTcl':function(_0x49b48c,_0x2fccc8){return _0x49b48c(_0x2fccc8);}};let _0x20decd=process['cwd']();const _0x4ce16a=_0x3038cd['bvTcl'](parse,_0x20decd)['root'];while(_0x20decd!==_0x4ce16a){if(_0x3038cd[_0x50d377(0x144)](existsSync,join(_0x20decd,_0x50d377(0x146))))return _0x20decd;_0x20decd=dirname(_0x20decd);}if(existsSync(join(_0x4ce16a,'.ranger')))return _0x4ce16a;const _0x1e26f4=findGitRoot();if(_0x1e26f4)return _0x1e26f4;return process['cwd']();}function _0x9592(_0x16a2a8,_0x56e868){_0x16a2a8=_0x16a2a8-0x142;const _0x322606=_0x3226();let _0x959242=_0x322606[_0x16a2a8];return _0x959242;}export function getRangerDir(){const _0x2e8850=_0x9592,_0x46b8c6={'imFNA':function(_0x1ce6d4){return _0x1ce6d4();}};return join(_0x46b8c6[_0x2e8850(0x14a)](getRangerRoot),_0x2e8850(0x146));}export function findGitRoot(){const _0x4efa40=_0x9592,_0x22cc3d={'cOglt':_0x4efa40(0x149),'eBCqp':function(_0x5cd4a8,_0x4399f3){return _0x5cd4a8(_0x4399f3);}};let _0x24e053=process[_0x4efa40(0x151)]();const _0x4cfed8=parse(_0x24e053)['root'];while(_0x24e053!==_0x4cfed8){if(existsSync(join(_0x24e053,_0x22cc3d[_0x4efa40(0x14d)])))return _0x24e053;_0x24e053=dirname(_0x24e053);}if(_0x22cc3d[_0x4efa40(0x147)](existsSync,join(_0x4cfed8,'.git')))return _0x4cfed8;return null;}export function getRangerHomeDir(){const _0x40b4af=_0x9592,_0x30a3a0={'RMImH':function(_0x458901,_0x9f689a,_0x1b1a8e){return _0x458901(_0x9f689a,_0x1b1a8e);}};return _0x30a3a0[_0x40b4af(0x150)](join,homedir(),_0x40b4af(0x146));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5a0972,_0x454493){const _0xe4a0f8=_0x5926,_0x4bbff4=_0x5a0972();while(!![]){try{const _0x24fc4f=parseInt(_0xe4a0f8(0x127))/0x1+parseInt(_0xe4a0f8(0x12b))/0x2+parseInt(_0xe4a0f8(0x142))/0x3+-parseInt(_0xe4a0f8(0x147))/0x4*(parseInt(_0xe4a0f8(0x137))/0x5)+-parseInt(_0xe4a0f8(0x129))/0x6*(-parseInt(_0xe4a0f8(0x128))/0x7)+parseInt(_0xe4a0f8(0x148))/0x8+-parseInt(_0xe4a0f8(0x12c))/0x9;if(_0x24fc4f===_0x454493)break;else _0x4bbff4['push'](_0x4bbff4['shift']());}catch(_0x2a8c1e){_0x4bbff4['push'](_0x4bbff4['shift']());}}}(_0x1a13,0xaffd5));function _0x5926(_0x4477b0,_0x1d14cd){_0x4477b0=_0x4477b0-0x127;const _0x1a1329=_0x1a13();let _0x592691=_0x1a1329[_0x4477b0];return _0x592691;}import{readdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';function _0x1a13(){const _0x5dade5=['631452NVawYc','**Status:**\x20','toUpperCase','filename','##\x20Screenshots\x20(','8MekPrd','7583384xRMHAi','push','length','fFfAB','MAJOR','**Duration:**\x20','1115236gvFteK','7MmEgyt','4241670drkhWw','relativePath','670946jjzlKA','17154234ZFkPDC','replace','**Full\x20Trace:**\x20[View\x20in\x20Playwright\x20Trace\x20Viewer](','sort',']\x20Issue','toISOString','**Generated:**\x20','toFixed','##\x20Task','filter','screenshot','1722955PAniVQ','##\x20Result','URQSm','---','**Screenshot:**','includes','###\x20','###\x20Summary','severity','#\x20Verification\x20Report','test'];_0x1a13=function(){return _0x5dade5;};return _0x1a13();}export async function collectScreenshots(_0xaa6871){const _0x4e72a6=_0x5926,_0x31cc49=[],_0xe47b47=[];if(!existsSync(_0xaa6871))return{'screenshots':_0x31cc49,'paths':_0xe47b47};const _0x44099f=await readdir(_0xaa6871),_0x553173=_0x44099f[_0x4e72a6(0x135)](_0x3ececa=>/\.(png|jpg|jpeg|gif|webp)$/i[_0x4e72a6(0x141)](_0x3ececa))[_0x4e72a6(0x12f)]();for(const _0x1afd66 of _0x553173){const _0x49787a=join(_0xaa6871,_0x1afd66);_0x31cc49['push']({'filename':_0x1afd66,'path':_0x49787a,'relativePath':'./'+_0x1afd66}),_0xe47b47['push'](_0x49787a);}return{'screenshots':_0x31cc49,'paths':_0xe47b47};}function getSeverityEmoji(_0xd68020){const _0x326cf7=_0x5926,_0x5cfbcf={'URQSm':'BLOCKER'};switch(_0xd68020){case _0x5cfbcf[_0x326cf7(0x139)]:return'🔴';case _0x326cf7(0x14c):return'🟠';default:return'⚪';}}function formatScreenshotCaption(_0x1e7294){const _0x1effe8=_0x5926,_0xe9c217=_0x1e7294[_0x1effe8(0x12d)](/\.(png|jpg|jpeg|gif|webp)$/i,''),_0x4f452f=_0xe9c217['replace'](/^\d+-/,'');return _0x4f452f['split']('-')['map'](_0x56fb7f=>_0x56fb7f['charAt'](0x0)[_0x1effe8(0x144)]()+_0x56fb7f['slice'](0x1))['join']('\x20');}export function generateMarkdownReport(_0x1356cd){const _0x20180b=_0x5926,_0x4f0ed3={'MuliQ':function(_0x41e892,_0x329d35){return _0x41e892/_0x329d35;},'diDZg':'ISSUES\x20FOUND','fFfAB':function(_0x44efc9,_0x521055){return _0x44efc9>_0x521055;},'IKRWU':function(_0x5b301d,_0xb1a879){return _0x5b301d(_0xb1a879);}},{sessionId:_0x24d872,task:_0x17b882,url:_0x399050,success:_0xfe6a5d,summary:_0x2a2149,issues:_0x228b33,screenshots:_0x3ea973,durationMs:_0x3f6a26,traceViewerUrl:_0x29f421}=_0x1356cd,_0x4d7436=new Date()[_0x20180b(0x131)](),_0x3da82f=_0x4f0ed3['MuliQ'](_0x3f6a26,0x3e8)[_0x20180b(0x133)](0x1),_0x23488a=[];_0x23488a[_0x20180b(0x149)](_0x20180b(0x140)),_0x23488a['push'](''),_0x23488a[_0x20180b(0x149)]('**Session:**\x20`'+_0x24d872+'`'),_0x23488a['push'](_0x20180b(0x132)+_0x4d7436),_0x23488a[_0x20180b(0x149)](_0x20180b(0x14d)+_0x3da82f+'s'),_0x23488a[_0x20180b(0x149)](''),_0x23488a[_0x20180b(0x149)](_0x20180b(0x134)),_0x23488a['push'](''),_0x23488a[_0x20180b(0x149)]('**URL:**\x20'+_0x399050),_0x23488a[_0x20180b(0x149)](''),_0x23488a['push']('>\x20'+_0x17b882),_0x23488a['push'](''),_0x23488a[_0x20180b(0x149)](_0x20180b(0x138)),_0x23488a['push']('');const _0x16964e=_0xfe6a5d?'✅':'❌';_0x23488a[_0x20180b(0x149)](_0x20180b(0x143)+_0x16964e+'\x20'+(_0xfe6a5d?'PASSED':_0x4f0ed3['diDZg'])),_0x23488a['push'](''),_0x23488a['push'](_0x20180b(0x13e)),_0x23488a[_0x20180b(0x149)](''),_0x23488a['push'](_0x2a2149),_0x23488a['push']('');if(_0x228b33&&_0x4f0ed3[_0x20180b(0x14b)](_0x228b33[_0x20180b(0x14a)],0x0)){_0x23488a['push']('###\x20Issues\x20Found\x20('+_0x228b33[_0x20180b(0x14a)]+')'),_0x23488a['push']('');for(const _0x3dbbf2 of _0x228b33){const _0xff609d=_0x4f0ed3['IKRWU'](getSeverityEmoji,_0x3dbbf2[_0x20180b(0x13f)]);_0x23488a['push']('####\x20'+_0xff609d+'\x20['+_0x3dbbf2['severity']+_0x20180b(0x130)),_0x23488a['push'](''),_0x23488a['push'](_0x3dbbf2['description']),_0x23488a['push']('');if(_0x3dbbf2[_0x20180b(0x136)]){const _0x292cb7=_0x3dbbf2[_0x20180b(0x136)],_0x246e2e=_0x3ea973['find'](_0x1b8e41=>_0x1b8e41['filename']===_0x292cb7||_0x1b8e41[_0x20180b(0x145)][_0x20180b(0x13c)](_0x292cb7));_0x246e2e&&(_0x23488a['push'](_0x20180b(0x13b)),_0x23488a['push'](''),_0x23488a['push'](']+')'),_0x23488a[_0x20180b(0x149)](''));}}}if(_0x4f0ed3[_0x20180b(0x14b)](_0x3ea973[_0x20180b(0x14a)],0x0)){_0x23488a[_0x20180b(0x149)](_0x20180b(0x146)+_0x3ea973[_0x20180b(0x14a)]+')'),_0x23488a[_0x20180b(0x149)]('');for(const _0x1be86c of _0x3ea973){const _0x5bd1b6=_0x4f0ed3['IKRWU'](formatScreenshotCaption,_0x1be86c[_0x20180b(0x145)]);_0x23488a[_0x20180b(0x149)](_0x20180b(0x13d)+_0x5bd1b6),_0x23488a['push'](''),_0x23488a[_0x20180b(0x149)]('!['+_0x1be86c['filename']+']('+_0x1be86c['relativePath']+')'),_0x23488a['push']('');}}return _0x29f421&&(_0x23488a['push'](_0x20180b(0x13a)),_0x23488a[_0x20180b(0x149)](''),_0x23488a['push'](_0x20180b(0x12e)+_0x29f421+')'),_0x23488a['push']('')),_0x23488a['join']('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x40a58f,_0x374c51){const _0x42a7c8=_0x380f,_0x2a92af=_0x40a58f();while(!![]){try{const _0x3431bf=parseInt(_0x42a7c8(0x77))/0x1+parseInt(_0x42a7c8(0x79))/0x2*(parseInt(_0x42a7c8(0x7c))/0x3)+-parseInt(_0x42a7c8(0x75))/0x4*(-parseInt(_0x42a7c8(0x7e))/0x5)+parseInt(_0x42a7c8(0x72))/0x6+-parseInt(_0x42a7c8(0x78))/0x7+-parseInt(_0x42a7c8(0x76))/0x8+-parseInt(_0x42a7c8(0x7b))/0x9;if(_0x3431bf===_0x374c51)break;else _0x2a92af['push'](_0x2a92af['shift']());}catch(_0x54f792){_0x2a92af['push'](_0x2a92af['shift']());}}}(_0x57ec,0xc25a2));function _0x380f(_0x4ead6b,_0x4c53cd){_0x4ead6b=_0x4ead6b-0x72;const _0x57ec6c=_0x57ec();let _0x380f48=_0x57ec6c[_0x4ead6b];return _0x380f48;}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x2384c6,_0x22ecc8){const _0x12cd2f=_0x380f,_0x39a2f7={'UefmP':function(_0x413b45){return _0x413b45();},'htYuo':function(_0x36f1b6,_0x13d1c5){return _0x36f1b6 instanceof _0x13d1c5;},'eTQEP':function(_0x3ce78b,_0x2e9f96){return _0x3ce78b*_0x2e9f96;}},_0x397b10=_0x22ecc8?.['maxRetries']??DEFAULT_MAX_RETRIES,_0xafe087=_0x22ecc8?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x3f072e;for(let _0x22cff6=0x0;_0x22cff6<=_0x397b10;_0x22cff6++){try{return await _0x39a2f7['UefmP'](_0x2384c6);}catch(_0x26d3ca){_0x3f072e=_0x39a2f7[_0x12cd2f(0x7f)](_0x26d3ca,Error)?_0x26d3ca:new Error(String(_0x26d3ca));if(_0x22cff6<_0x397b10){const _0x2b7000=_0x39a2f7[_0x12cd2f(0x74)](_0xafe087,Math['pow'](0x2,_0x22cff6));_0x22ecc8?.[_0x12cd2f(0x73)]&&console[_0x12cd2f(0x7d)](_0x22ecc8['label']+'\x20failed\x20(attempt\x20'+(_0x22cff6+0x1)+'/'+(_0x397b10+0x1)+'),\x20retrying\x20in\x20'+_0x2b7000+_0x12cd2f(0x7a)),await new Promise(_0x33a544=>setTimeout(_0x33a544,_0x2b7000));}}}throw _0x3f072e;}function _0x57ec(){const _0x34dcf7=['error','310PRRUQB','htYuo','3984336hsMDmO','label','eTQEP','82936MrEJLq','344968fZJDwV','548017KuBHuF','8037050LLIeCA','398xeJXSy','ms...','9402822iWaWbu','8058sBkjuu'];_0x57ec=function(){return _0x34dcf7;};return _0x57ec();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x18238e=_0xedf2;(function(_0x5ba58f,_0x19fc03){const _0x44804d=_0xedf2,_0x41355a=_0x5ba58f();while(!![]){try{const _0x1f1f08=parseInt(_0x44804d(0x222))/0x1+-parseInt(_0x44804d(0x20b))/0x2+-parseInt(_0x44804d(0x210))/0x3+parseInt(_0x44804d(0x1f9))/0x4+parseInt(_0x44804d(0x21d))/0x5*(-parseInt(_0x44804d(0x218))/0x6)+-parseInt(_0x44804d(0x1f6))/0x7+parseInt(_0x44804d(0x224))/0x8*(parseInt(_0x44804d(0x202))/0x9);if(_0x1f1f08===_0x19fc03)break;else _0x41355a['push'](_0x41355a['shift']());}catch(_0xd62e25){_0x41355a['push'](_0x41355a['shift']());}}}(_0x44d2,0xef707));import*as _0x2ea803 from'fs';import*as _0x476632 from'path';import*as _0x29f8b1 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x476632['join'](_0x29f8b1[_0x18238e(0x1f5)](),_0x18238e(0x229),'.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x77545b=_0x18238e;try{if(_0x2ea803[_0x77545b(0x21f)](CACHE_FILE)){const _0x4c1de1=JSON[_0x77545b(0x20a)](_0x2ea803[_0x77545b(0x214)](CACHE_FILE,'utf-8'));return{'version':0x3,'sessions':_0x4c1de1['sessions']||{},'branches':_0x4c1de1['branches']||{},'lastEnabledSessionClearedAt':_0x4c1de1['lastEnabledSessionClearedAt']};}}catch{}return createEmptyCache();}function saveCache(_0x5c4859){const _0x466353=_0x18238e;try{const _0x1368e9=_0x476632['dirname'](CACHE_FILE);!_0x2ea803[_0x466353(0x21f)](_0x1368e9)&&_0x2ea803[_0x466353(0x20f)](_0x1368e9,{'recursive':!![]}),_0x2ea803[_0x466353(0x213)](CACHE_FILE,JSON[_0x466353(0x21b)](_0x5c4859,null,0x2));}catch{}}export function getCurrentBranch(){const _0x58c8a7=_0x18238e,_0x1802d3={'CYkvV':'utf-8','mZcBS':_0x58c8a7(0x212)};try{const _0x3f3043=execSync(_0x58c8a7(0x219),{'encoding':_0x1802d3[_0x58c8a7(0x203)],'stdio':[_0x58c8a7(0x22a),'pipe','pipe']})[_0x58c8a7(0x226)]();if(!_0x3f3043||_0x3f3043===_0x1802d3[_0x58c8a7(0x228)])return null;return _0x3f3043;}catch{return null;}}export function enableBranch(_0xa6cacc){const _0x2be736=_0x18238e,_0x496210={'xLQxj':function(_0x415f2d){return _0x415f2d();},'BevRQ':function(_0x8fa672,_0x4754b6){return _0x8fa672(_0x4754b6);}},_0x3850e4=_0x496210[_0x2be736(0x209)](loadCache);_0x3850e4['branches'][_0xa6cacc]=!![],_0x496210['BevRQ'](saveCache,_0x3850e4);}export function disableBranch(_0x5bbe92){const _0x4040fb={'Ehdhl':function(_0x2249bc,_0x47126e){return _0x2249bc(_0x47126e);}},_0x106c2a=loadCache();delete _0x106c2a['branches'][_0x5bbe92],_0x4040fb['Ehdhl'](saveCache,_0x106c2a);}export function isBranchEnabled(_0x4c69d3){const _0x8ef07d=_0x18238e,_0x3d4e09={'JBNNg':function(_0x2e8f0e){return _0x2e8f0e();},'OxuhM':function(_0x53eb7a,_0x1fcb28){return _0x53eb7a===_0x1fcb28;}},_0x3a3bf4=_0x3d4e09[_0x8ef07d(0x1f8)](loadCache);return _0x3d4e09[_0x8ef07d(0x21c)](_0x3a3bf4[_0x8ef07d(0x1ff)][_0x4c69d3],!![]);}function getOrCreateSession(_0x174cc3,_0x4afaa8){const _0x33886c=_0x18238e;return!_0x174cc3[_0x33886c(0x200)][_0x4afaa8]&&(_0x174cc3['sessions'][_0x4afaa8]={}),_0x174cc3['sessions'][_0x4afaa8];}export function enableSession(_0x2d005c){const _0x56149c=_0x18238e,_0x2c9874={'CcoZg':function(_0x2f0c53,_0x5f4272,_0x8955a9){return _0x2f0c53(_0x5f4272,_0x8955a9);},'NYzJD':function(_0x34440d){return _0x34440d();},'TZbYV':'main','ICXPu':'master','xFooY':function(_0x160254,_0x349baa){return _0x160254(_0x349baa);}},_0x5acf9d=loadCache(),_0x28fba2=_0x2c9874[_0x56149c(0x225)](getOrCreateSession,_0x5acf9d,_0x2d005c);_0x28fba2['enabled']=!![];const _0x5b5130=_0x2c9874['NYzJD'](getCurrentBranch);_0x5b5130&&_0x5b5130!==_0x2c9874['TZbYV']&&_0x5b5130!==_0x2c9874[_0x56149c(0x215)]&&(_0x5acf9d[_0x56149c(0x1ff)][_0x5b5130]=!![],_0x28fba2[_0x56149c(0x1f4)]=_0x5b5130),_0x2c9874[_0x56149c(0x220)](saveCache,_0x5acf9d);}export function isSessionEnabled(_0x57fc2d){const _0x78f903=_0x18238e,_0x51a8fd={'WoaHc':function(_0x44afb8,_0x5d7eff){return _0x44afb8===_0x5d7eff;},'lylqE':function(_0x14d385,_0x5bb720){return _0x14d385||_0x5bb720;}},_0x50c251=loadCache(),_0x34bdff=getCurrentBranch();if(!_0x34bdff||_0x34bdff==='main'||_0x34bdff===_0x78f903(0x204))return _0x50c251[_0x78f903(0x200)][_0x57fc2d]?.[_0x78f903(0x211)]===!![];const _0x1162e5=_0x51a8fd['WoaHc'](_0x50c251[_0x78f903(0x1ff)][_0x34bdff],!![]),_0x3d7c3c=_0x50c251[_0x78f903(0x200)][_0x57fc2d]?.[_0x78f903(0x211)]===!![];return _0x51a8fd['lylqE'](_0x1162e5,_0x3d7c3c);}export function disableSession(_0x83c5f9){const _0x18b9ab=loadCache(),_0x3de860=getOrCreateSession(_0x18b9ab,_0x83c5f9);_0x3de860['enabled']=![],saveCache(_0x18b9ab);}export function updateBranchTracking(_0x1381d2){const _0x4fc8b1=_0x18238e,_0x253d69={'xwEuR':function(_0x8a9229){return _0x8a9229();},'aNUbV':_0x4fc8b1(0x216),'WlvDp':function(_0x1cf2ea,_0x4618e6){return _0x1cf2ea===_0x4618e6;},'jlVoG':function(_0x453896,_0x333acf){return _0x453896!==_0x333acf;}},_0x17390f=_0x253d69['xwEuR'](loadCache),_0x39a3ec=_0x17390f[_0x4fc8b1(0x200)][_0x1381d2];if(!_0x39a3ec?.[_0x4fc8b1(0x211)])return;const _0x387dd0=_0x253d69['xwEuR'](getCurrentBranch);if(!_0x387dd0||_0x387dd0===_0x253d69[_0x4fc8b1(0x21a)]||_0x253d69['WlvDp'](_0x387dd0,'master'))return;_0x253d69[_0x4fc8b1(0x221)](_0x39a3ec['currentBranch'],_0x387dd0)&&(_0x17390f[_0x4fc8b1(0x1ff)][_0x387dd0]=!![],_0x39a3ec[_0x4fc8b1(0x1f4)]=_0x387dd0,saveCache(_0x17390f));}export function initBranchTracking(_0x2e9f00){const _0xb16909=_0x18238e,_0x3dd953={'XcRDm':function(_0x35a61c){return _0x35a61c();},'KbBDv':function(_0x476572,_0x517999){return _0x476572===_0x517999;},'AqsKk':function(_0x2fd2a5,_0x30df19,_0x250313){return _0x2fd2a5(_0x30df19,_0x250313);}},_0x3e7012=_0x3dd953[_0xb16909(0x1f7)](loadCache),_0x2ccace=_0x3dd953['XcRDm'](getCurrentBranch);if(!_0x2ccace||_0x2ccace==='main'||_0x3dd953[_0xb16909(0x201)](_0x2ccace,_0xb16909(0x204)))return;if(_0x3dd953[_0xb16909(0x201)](_0x3e7012['branches'][_0x2ccace],!![])){const _0x3bae6e=_0x3dd953['AqsKk'](getOrCreateSession,_0x3e7012,_0x2e9f00);_0x3bae6e['enabled']=!![],_0x3bae6e['currentBranch']=_0x2ccace,saveCache(_0x3e7012);}}function _0xedf2(_0x19ca9d,_0x34b0a4){_0x19ca9d=_0x19ca9d-0x1f4;const _0x44d260=_0x44d2();let _0xedf228=_0x44d260[_0x19ca9d];return _0xedf228;}function _0x44d2(){const _0x1a69d8=['9194427jenIRo','CYkvV','master','prompted','DPFzD','owEln','toISOString','xLQxj','parse','59748stQnqF','now','registeredAt','JCrEL','mkdirSync','1414680VwwWgl','enabled','HEAD','writeFileSync','readFileSync','ICXPu','main','wmvKm','12MJzCGs','git\x20rev-parse\x20--abbrev-ref\x20HEAD','aNUbV','stringify','OxuhM','2397035yMonnv','featureId','existsSync','xFooY','jlVoG','1654136fyPbNl','TlhHO','8oizBhW','CcoZg','trim','eeWSG','mZcBS','.claude','pipe','currentBranch','homedir','7904141eVCnRW','XcRDm','JBNNg','3577660OzTGph','lastEnabledSessionClearedAt','bZQgU','VfLOK','dlZHo','zrfqR','branches','sessions','KbBDv'];_0x44d2=function(){return _0x1a69d8;};return _0x44d2();}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x1f62e6){const _0x22878e=_0x18238e,_0x3b3ab7={'ZHqCx':function(_0x36c17d){return _0x36c17d();}},_0x572bb3=_0x3b3ab7['ZHqCx'](loadCache),_0x5040b8=_0x572bb3[_0x22878e(0x200)][_0x1f62e6];_0x5040b8?.['enabled']&&(_0x572bb3[_0x22878e(0x1fa)]=Date[_0x22878e(0x20c)](),saveCache(_0x572bb3));}export function shouldAutoEnableAfterClear(_0x1225e3){const _0x7827e0=_0x18238e,_0x2c59df={'JCrEL':function(_0x10d87a,_0x5d63fe){return _0x10d87a!==_0x5d63fe;},'bOssf':'clear','OxOPu':function(_0x4ff066){return _0x4ff066();},'owEln':function(_0x2e56cc,_0x4e99df){return _0x2e56cc<=_0x4e99df;}};if(_0x2c59df[_0x7827e0(0x20e)](_0x1225e3,_0x2c59df['bOssf']))return![];const _0x30679f=_0x2c59df['OxOPu'](loadCache),_0xe9fe58=_0x30679f['lastEnabledSessionClearedAt'];if(!_0xe9fe58)return![];const _0x19b263=Date[_0x7827e0(0x20c)]()-_0xe9fe58;return _0x2c59df[_0x7827e0(0x207)](_0x19b263,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x20e28e){const _0x35d7d3=_0x18238e,_0x14c0d4={'eeWSG':function(_0x1ff799,_0x5cae03,_0x43a8d1){return _0x1ff799(_0x5cae03,_0x43a8d1);},'WoLGI':function(_0x54cfb0){return _0x54cfb0();},'lYAbr':function(_0x277285,_0xd9e0d4){return _0x277285!==_0xd9e0d4;},'dlZHo':_0x35d7d3(0x216),'mXtQR':'master'},_0x1ca995=loadCache(),_0x53ea3a=_0x14c0d4[_0x35d7d3(0x227)](getOrCreateSession,_0x1ca995,_0x20e28e);_0x53ea3a['enabled']=!![];const _0x4e73bb=_0x14c0d4['WoLGI'](getCurrentBranch);_0x4e73bb&&_0x14c0d4['lYAbr'](_0x4e73bb,_0x14c0d4[_0x35d7d3(0x1fd)])&&_0x4e73bb!==_0x14c0d4['mXtQR']&&(_0x53ea3a['currentBranch']=_0x4e73bb),delete _0x1ca995[_0x35d7d3(0x1fa)],saveCache(_0x1ca995);}export function registerSession(_0x7ba0bb,_0x48bbf0){const _0x2ab68c=_0x18238e,_0x5d7685=loadCache(),_0x3db19e=getOrCreateSession(_0x5d7685,_0x7ba0bb);_0x3db19e['featureId']=_0x48bbf0,_0x3db19e[_0x2ab68c(0x20d)]=new Date()[_0x2ab68c(0x208)](),saveCache(_0x5d7685);}export function getSessionEntry(_0x2ddd62){const _0x5935ca=_0x18238e,_0x48c139={'wmvKm':function(_0x45647a){return _0x45647a();}},_0x328659=_0x48c139[_0x5935ca(0x217)](loadCache),_0xbd23ce=_0x328659['sessions'][_0x2ddd62];if(_0xbd23ce?.['featureId']&&_0xbd23ce?.['registeredAt'])return{'featureId':_0xbd23ce[_0x5935ca(0x21e)],'registeredAt':_0xbd23ce[_0x5935ca(0x20d)]};return null;}export function unregisterSession(_0x56febe){const _0x957bfe=_0x18238e,_0x474175=loadCache(),_0x25d8c0=_0x474175['sessions'][_0x56febe];_0x25d8c0&&(delete _0x25d8c0['featureId'],delete _0x25d8c0[_0x957bfe(0x20d)],saveCache(_0x474175));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x51e263){const _0x47472a=_0x18238e,_0x5e4a41={'DPFzD':function(_0x1f6dd4){return _0x1f6dd4();},'urbbI':function(_0x12f2f1,_0x2cd6db){return _0x12f2f1-_0x2cd6db;},'VfLOK':function(_0x1c1d38,_0x8e95e1){return _0x1c1d38(_0x8e95e1);}},_0x55ef0a=_0x5e4a41[_0x47472a(0x206)](loadCache),_0x190049=getOrCreateSession(_0x55ef0a,_0x51e263),_0x31c312=_0x190049['lastPlanReminderAt']||0x0,_0x39833c=Date['now']();if(_0x5e4a41['urbbI'](_0x39833c,_0x31c312)>=PLAN_REMINDER_INTERVAL_MS)return _0x190049['lastPlanReminderAt']=_0x39833c,_0x5e4a41[_0x47472a(0x1fc)](saveCache,_0x55ef0a),!![];return![];}export function shouldShowStopReminder(_0x119cb7){const _0x46a393=_0x18238e,_0x50f36a={'eYMnL':function(_0x269ba9){return _0x269ba9();},'zrfqR':function(_0x2bdefe,_0x2579ba,_0x4adaea){return _0x2bdefe(_0x2579ba,_0x4adaea);},'BaQCT':function(_0x28a9bc,_0x15aa6a){return _0x28a9bc-_0x15aa6a;},'pwMoA':function(_0x5eecb1,_0x4ced6c){return _0x5eecb1(_0x4ced6c);}},_0xd7bfb5=_0x50f36a['eYMnL'](loadCache),_0x570477=_0x50f36a[_0x46a393(0x1fe)](getOrCreateSession,_0xd7bfb5,_0x119cb7),_0x4e9bcd=_0x570477['lastStopReminderAt']||0x0,_0x4a2f19=Date['now']();if(_0x50f36a['BaQCT'](_0x4a2f19,_0x4e9bcd)>=STOP_REMINDER_INTERVAL_MS)return _0x570477['lastStopReminderAt']=_0x4a2f19,_0x50f36a['pwMoA'](saveCache,_0xd7bfb5),!![];return![];}export function hasSessionBeenPrompted(_0x2a8d03){const _0x13188e=_0x18238e,_0x29d95c={'TlhHO':function(_0x2d8fcc){return _0x2d8fcc();},'bZQgU':function(_0x19aa4a,_0x24a4bb){return _0x19aa4a===_0x24a4bb;}},_0x23e851=_0x29d95c[_0x13188e(0x223)](loadCache);return _0x29d95c[_0x13188e(0x1fb)](_0x23e851[_0x13188e(0x200)][_0x2a8d03]?.['prompted'],!![]);}export function markSessionPrompted(_0x4fea64){const _0x3146ed=_0x18238e,_0x2190ac={'VpwGT':function(_0x3e4ce7){return _0x3e4ce7();}},_0x5af61e=_0x2190ac['VpwGT'](loadCache),_0x453f7a=getOrCreateSession(_0x5af61e,_0x4fea64);_0x453f7a[_0x3146ed(0x205)]=!![],saveCache(_0x5af61e);}export function getCacheFile(){return CACHE_FILE;}
|
|
1
|
+
const _0x323696=_0x3ecc;(function(_0x18c5b7,_0x4d45f7){const _0x40a4d7=_0x3ecc,_0xaab34a=_0x18c5b7();while(!![]){try{const _0xfde477=-parseInt(_0x40a4d7(0x16a))/0x1*(-parseInt(_0x40a4d7(0x172))/0x2)+-parseInt(_0x40a4d7(0x16e))/0x3+parseInt(_0x40a4d7(0x160))/0x4*(parseInt(_0x40a4d7(0x14d))/0x5)+parseInt(_0x40a4d7(0x162))/0x6*(parseInt(_0x40a4d7(0x163))/0x7)+parseInt(_0x40a4d7(0x150))/0x8*(parseInt(_0x40a4d7(0x149))/0x9)+parseInt(_0x40a4d7(0x159))/0xa+-parseInt(_0x40a4d7(0x16d))/0xb;if(_0xfde477===_0x4d45f7)break;else _0xaab34a['push'](_0xaab34a['shift']());}catch(_0x42075b){_0xaab34a['push'](_0xaab34a['shift']());}}}(_0x5e82,0xdd003));import*as _0x2f45cc from'fs';import*as _0x3ec97c from'path';import*as _0x4d83a0 from'os';function _0x5e82(){const _0x51b8d5=['lastEnabledSessionClearedAt','UFDyZ','zipNf','10637910FBdacb','master','Sayzm','sessions','JPqYT','hwUhI','toISOString','8feRAGM','currentBranch','4795338zkggjN','7TDQnJX','HEkvo','readFileSync','MXqEG','pbKvk','utf-8','HEAD','86551fNyTnt','PxMjz','branches','44785510yHrxtn','1736130QIHJBW','main','.ranger_cache.json','fDpgS','26VluVrN','mkdirSync','.claude','pipe','writeFileSync','clear','bypWL','enabled','lastPlanReminderAt','now','CkPHt','QKkYD','registeredAt','sQUfs','tAiZX','19071AclNFQ','lastStopReminderAt','existsSync','GBKMz','2073955UAyMwc','featureId','mLcDk','6560lNrBXy','ASIts','mQSVK','UuDbb','ITjZw','prompted'];_0x5e82=function(){return _0x51b8d5;};return _0x5e82();}import{execSync}from'child_process';const CACHE_FILE=_0x3ec97c['join'](_0x4d83a0['homedir'](),_0x323696(0x174),_0x323696(0x170));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x119476=_0x323696,_0x4158b1={'HEkvo':_0x119476(0x168)};try{if(_0x2f45cc[_0x119476(0x14b)](CACHE_FILE)){const _0x387d84=JSON['parse'](_0x2f45cc[_0x119476(0x165)](CACHE_FILE,_0x4158b1[_0x119476(0x164)]));return{'version':0x3,'sessions':_0x387d84[_0x119476(0x15c)]||{},'branches':_0x387d84[_0x119476(0x16c)]||{},'lastEnabledSessionClearedAt':_0x387d84[_0x119476(0x156)]};}}catch{}return createEmptyCache();}function saveCache(_0x2fbc13){const _0x2218f3=_0x323696;try{const _0x12a135=_0x3ec97c['dirname'](CACHE_FILE);!_0x2f45cc[_0x2218f3(0x14b)](_0x12a135)&&_0x2f45cc[_0x2218f3(0x173)](_0x12a135,{'recursive':!![]}),_0x2f45cc[_0x2218f3(0x176)](CACHE_FILE,JSON['stringify'](_0x2fbc13,null,0x2));}catch{}}export function getCurrentBranch(){const _0x41b5d2=_0x323696,_0x152c4f={'WPFMO':function(_0x5c635d,_0x34b3c4,_0x243194){return _0x5c635d(_0x34b3c4,_0x243194);},'bsnis':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','ITjZw':'pipe','PIcRx':function(_0xe4cb3,_0x364d54){return _0xe4cb3===_0x364d54;},'UKOko':_0x41b5d2(0x169)};try{const _0x4ca67=_0x152c4f['WPFMO'](execSync,_0x152c4f['bsnis'],{'encoding':'utf-8','stdio':[_0x152c4f[_0x41b5d2(0x154)],_0x41b5d2(0x175),_0x41b5d2(0x175)]})['trim']();if(!_0x4ca67||_0x152c4f['PIcRx'](_0x4ca67,_0x152c4f['UKOko']))return null;return _0x4ca67;}catch{return null;}}export function enableBranch(_0x1a02a4){const _0x134229={'UULPq':function(_0x30f111,_0xfc0477){return _0x30f111(_0xfc0477);}},_0x21986f=loadCache();_0x21986f['branches'][_0x1a02a4]=!![],_0x134229['UULPq'](saveCache,_0x21986f);}export function disableBranch(_0x31a6b6){const _0x1b48a7=_0x323696,_0x10ce80={'Kuvrx':function(_0xe90b,_0x211b1d){return _0xe90b(_0x211b1d);}},_0x1280d4=loadCache();delete _0x1280d4[_0x1b48a7(0x16c)][_0x31a6b6],_0x10ce80['Kuvrx'](saveCache,_0x1280d4);}export function isBranchEnabled(_0x11156a){const _0x157b8e=_0x323696,_0x2550f7=loadCache();return _0x2550f7[_0x157b8e(0x16c)][_0x11156a]===!![];}function getOrCreateSession(_0x3e1b45,_0x15ea10){const _0x22536e=_0x323696;return!_0x3e1b45['sessions'][_0x15ea10]&&(_0x3e1b45[_0x22536e(0x15c)][_0x15ea10]={}),_0x3e1b45[_0x22536e(0x15c)][_0x15ea10];}export function enableSession(_0x33fd88){const _0x25cc7c=_0x323696,_0x7ef99a={'hwUhI':function(_0x1a7209){return _0x1a7209();},'AbwVk':_0x25cc7c(0x15a),'bypWL':function(_0x10ab08,_0x65e494){return _0x10ab08(_0x65e494);}},_0x5d774a=loadCache(),_0x5abb81=getOrCreateSession(_0x5d774a,_0x33fd88);_0x5abb81['enabled']=!![];const _0x5a8a36=_0x7ef99a[_0x25cc7c(0x15e)](getCurrentBranch);_0x5a8a36&&_0x5a8a36!=='main'&&_0x5a8a36!==_0x7ef99a['AbwVk']&&(_0x5d774a['branches'][_0x5a8a36]=!![],_0x5abb81[_0x25cc7c(0x161)]=_0x5a8a36),_0x7ef99a[_0x25cc7c(0x178)](saveCache,_0x5d774a);}export function isSessionEnabled(_0x259b3e){const _0x353e22=_0x323696,_0x5d7cfd={'WLhpT':function(_0x5e71f9){return _0x5e71f9();},'Sayzm':function(_0x38db65){return _0x38db65();},'MPmMU':'main','dmwYC':function(_0x41f570,_0x339b41){return _0x41f570===_0x339b41;},'CkPHt':function(_0x288057,_0x2c0b9c){return _0x288057===_0x2c0b9c;},'ASIts':function(_0x33cea2,_0x46bc82){return _0x33cea2||_0x46bc82;}},_0x23744f=_0x5d7cfd['WLhpT'](loadCache),_0x3512bb=_0x5d7cfd[_0x353e22(0x15b)](getCurrentBranch);if(!_0x3512bb||_0x3512bb===_0x5d7cfd['MPmMU']||_0x3512bb===_0x353e22(0x15a))return _0x5d7cfd['dmwYC'](_0x23744f['sessions'][_0x259b3e]?.[_0x353e22(0x179)],!![]);const _0x25f9c1=_0x23744f[_0x353e22(0x16c)][_0x3512bb]===!![],_0x51e2bb=_0x5d7cfd[_0x353e22(0x17c)](_0x23744f[_0x353e22(0x15c)][_0x259b3e]?.['enabled'],!![]);return _0x5d7cfd[_0x353e22(0x151)](_0x25f9c1,_0x51e2bb);}export function disableSession(_0x209684){const _0x349f83=_0x323696,_0x2e9e2c={'qKBNo':function(_0x443b2b,_0x11b249){return _0x443b2b(_0x11b249);}},_0x1042cb=loadCache(),_0x53d0a7=getOrCreateSession(_0x1042cb,_0x209684);_0x53d0a7[_0x349f83(0x179)]=![],_0x2e9e2c['qKBNo'](saveCache,_0x1042cb);}export function updateBranchTracking(_0x1ecf8f){const _0x5286b7=_0x323696,_0x10a694={'zipNf':'main'},_0x3ed70d=loadCache(),_0x2cfaf5=_0x3ed70d[_0x5286b7(0x15c)][_0x1ecf8f];if(!_0x2cfaf5?.[_0x5286b7(0x179)])return;const _0x246027=getCurrentBranch();if(!_0x246027||_0x246027===_0x10a694[_0x5286b7(0x158)]||_0x246027==='master')return;_0x2cfaf5[_0x5286b7(0x161)]!==_0x246027&&(_0x3ed70d[_0x5286b7(0x16c)][_0x246027]=!![],_0x2cfaf5['currentBranch']=_0x246027,saveCache(_0x3ed70d));}export function initBranchTracking(_0x5791f5){const _0x13d5c2=_0x323696,_0x4a05d9={'fDpgS':function(_0xaf6d52){return _0xaf6d52();},'trOXb':function(_0x1657fc,_0x5bd0f5){return _0x1657fc===_0x5bd0f5;},'mQSVK':'master','kWWiQ':function(_0x1f82e4,_0x5afae0,_0x273b26){return _0x1f82e4(_0x5afae0,_0x273b26);},'UuDbb':function(_0x14c645,_0x27be79){return _0x14c645(_0x27be79);}},_0x28538d=_0x4a05d9[_0x13d5c2(0x171)](loadCache),_0xe8a9e6=getCurrentBranch();if(!_0xe8a9e6||_0xe8a9e6===_0x13d5c2(0x16f)||_0x4a05d9['trOXb'](_0xe8a9e6,_0x4a05d9[_0x13d5c2(0x152)]))return;if(_0x28538d[_0x13d5c2(0x16c)][_0xe8a9e6]===!![]){const _0x2d0afd=_0x4a05d9['kWWiQ'](getOrCreateSession,_0x28538d,_0x5791f5);_0x2d0afd['enabled']=!![],_0x2d0afd[_0x13d5c2(0x161)]=_0xe8a9e6,_0x4a05d9[_0x13d5c2(0x153)](saveCache,_0x28538d);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;function _0x3ecc(_0x120ecf,_0x31cff4){_0x120ecf=_0x120ecf-0x148;const _0x5e8291=_0x5e82();let _0x3ecc71=_0x5e8291[_0x120ecf];return _0x3ecc71;}export function recordEnabledSessionCleared(_0x45145d){const _0x4a34fc=_0x323696,_0x8e7673={'mLcDk':function(_0x38e0f0){return _0x38e0f0();}},_0x39d0c1=_0x8e7673[_0x4a34fc(0x14f)](loadCache),_0x4b199e=_0x39d0c1['sessions'][_0x45145d];_0x4b199e?.[_0x4a34fc(0x179)]&&(_0x39d0c1[_0x4a34fc(0x156)]=Date[_0x4a34fc(0x17b)](),saveCache(_0x39d0c1));}export function shouldAutoEnableAfterClear(_0x25f746){const _0x11f5d5=_0x323696,_0x48426f={'GtsfF':_0x11f5d5(0x177),'PxMjz':function(_0xb88d0c,_0x28099a){return _0xb88d0c<=_0x28099a;}};if(_0x25f746!==_0x48426f['GtsfF'])return![];const _0x262517=loadCache(),_0x31aea7=_0x262517['lastEnabledSessionClearedAt'];if(!_0x31aea7)return![];const _0x3a6258=Date[_0x11f5d5(0x17b)]()-_0x31aea7;return _0x48426f[_0x11f5d5(0x16b)](_0x3a6258,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x5818a9){const _0x153aa1=_0x323696,_0x5de5e5={'JPqYT':function(_0x5e5563,_0x3382a4,_0x508889){return _0x5e5563(_0x3382a4,_0x508889);},'LqIXG':_0x153aa1(0x16f),'tAiZX':function(_0x568230,_0x46cb76){return _0x568230!==_0x46cb76;},'GBKMz':'master','pbKvk':function(_0x1d4c06,_0x59a9a5){return _0x1d4c06(_0x59a9a5);}},_0x1fcb02=loadCache(),_0x2fc6a1=_0x5de5e5[_0x153aa1(0x15d)](getOrCreateSession,_0x1fcb02,_0x5818a9);_0x2fc6a1['enabled']=!![];const _0x381761=getCurrentBranch();_0x381761&&_0x381761!==_0x5de5e5['LqIXG']&&_0x5de5e5[_0x153aa1(0x148)](_0x381761,_0x5de5e5[_0x153aa1(0x14c)])&&(_0x2fc6a1['currentBranch']=_0x381761),delete _0x1fcb02['lastEnabledSessionClearedAt'],_0x5de5e5[_0x153aa1(0x167)](saveCache,_0x1fcb02);}export function registerSession(_0x56cafe,_0x128022){const _0x16bab3=_0x323696,_0x34b606={'MXqEG':function(_0x43608d,_0x410ab1){return _0x43608d(_0x410ab1);}},_0x293f4e=loadCache(),_0x2d6a10=getOrCreateSession(_0x293f4e,_0x56cafe);_0x2d6a10[_0x16bab3(0x14e)]=_0x128022,_0x2d6a10['registeredAt']=new Date()[_0x16bab3(0x15f)](),_0x34b606[_0x16bab3(0x166)](saveCache,_0x293f4e);}export function getSessionEntry(_0x5ab8e8){const _0x1d0a90=_0x323696,_0x332259={'HbELA':function(_0x395c66){return _0x395c66();}},_0x3da86c=_0x332259['HbELA'](loadCache),_0x151dbc=_0x3da86c[_0x1d0a90(0x15c)][_0x5ab8e8];if(_0x151dbc?.['featureId']&&_0x151dbc?.[_0x1d0a90(0x17e)])return{'featureId':_0x151dbc[_0x1d0a90(0x14e)],'registeredAt':_0x151dbc['registeredAt']};return null;}export function unregisterSession(_0x3a8868){const _0x21f50f=_0x323696,_0x9cbc87={'tkLdi':function(_0x73f7e2){return _0x73f7e2();}},_0x3731ca=_0x9cbc87['tkLdi'](loadCache),_0x5380d2=_0x3731ca['sessions'][_0x3a8868];_0x5380d2&&(delete _0x5380d2['featureId'],delete _0x5380d2[_0x21f50f(0x17e)],saveCache(_0x3731ca));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x8859a7){const _0x15cfcd=_0x323696,_0x377a08={'GqFqX':function(_0x3b8689){return _0x3b8689();},'UFDyZ':function(_0x57dc6c,_0x10e0f8){return _0x57dc6c>=_0x10e0f8;},'sQUfs':function(_0x487c6d,_0xc34d0f){return _0x487c6d-_0xc34d0f;}},_0x518043=_0x377a08['GqFqX'](loadCache),_0x272c70=getOrCreateSession(_0x518043,_0x8859a7),_0x35b742=_0x272c70[_0x15cfcd(0x17a)]||0x0,_0x4ae4a7=Date['now']();if(_0x377a08[_0x15cfcd(0x157)](_0x377a08[_0x15cfcd(0x17f)](_0x4ae4a7,_0x35b742),PLAN_REMINDER_INTERVAL_MS))return _0x272c70[_0x15cfcd(0x17a)]=_0x4ae4a7,saveCache(_0x518043),!![];return![];}export function shouldShowStopReminder(_0x550919){const _0x1d6e0a=_0x323696,_0x23fe22=loadCache(),_0x582197=getOrCreateSession(_0x23fe22,_0x550919),_0x19df7f=_0x582197[_0x1d6e0a(0x14a)]||0x0,_0x3573c9=Date[_0x1d6e0a(0x17b)]();if(_0x3573c9-_0x19df7f>=STOP_REMINDER_INTERVAL_MS)return _0x582197['lastStopReminderAt']=_0x3573c9,saveCache(_0x23fe22),!![];return![];}export function hasSessionBeenPrompted(_0xa1397){const _0x346bfe=_0x323696,_0x9fc8de={'WNggN':function(_0x4117e0){return _0x4117e0();}},_0xaa245e=_0x9fc8de['WNggN'](loadCache);return _0xaa245e['sessions'][_0xa1397]?.[_0x346bfe(0x155)]===!![];}export function markSessionPrompted(_0x1ec8f9){const _0x329f03=_0x323696,_0x3468bf={'QKkYD':function(_0x5d808c,_0x1f540e,_0x2c22af){return _0x5d808c(_0x1f540e,_0x2c22af);},'HxzEb':function(_0x575fc7,_0x5c521c){return _0x575fc7(_0x5c521c);}},_0x5b5d6c=loadCache(),_0x1e42a5=_0x3468bf[_0x329f03(0x17d)](getOrCreateSession,_0x5b5d6c,_0x1ec8f9);_0x1e42a5[_0x329f03(0x155)]=!![],_0x3468bf['HxzEb'](saveCache,_0x5b5d6c);}export function getCacheFile(){return CACHE_FILE;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x26bbff=_0x57c5;(function(_0x1d9f1a,_0x1240aa){const _0x22fbb3=_0x57c5,_0x41d521=_0x1d9f1a();while(!![]){try{const _0x4c8b8c=-parseInt(_0x22fbb3(0x134))/0x1*(parseInt(_0x22fbb3(0x114))/0x2)+-parseInt(_0x22fbb3(0x122))/0x3*(parseInt(_0x22fbb3(0x11c))/0x4)+-parseInt(_0x22fbb3(0x131))/0x5*(parseInt(_0x22fbb3(0x167))/0x6)+parseInt(_0x22fbb3(0x145))/0x7+-parseInt(_0x22fbb3(0x12d))/0x8*(parseInt(_0x22fbb3(0x11b))/0x9)+parseInt(_0x22fbb3(0x116))/0xa+parseInt(_0x22fbb3(0x15b))/0xb*(parseInt(_0x22fbb3(0x133))/0xc);if(_0x4c8b8c===_0x1240aa)break;else _0x41d521['push'](_0x41d521['shift']());}catch(_0x199d61){_0x41d521['push'](_0x41d521['shift']());}}}(_0x21dc,0x6cc7d));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir}from'./rangerRoot.js';function _0x21dc(){const _0x177891=['fromEntries','420456kQYQUX','mISRk','jINRI','settings.json','uIkIe','object','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','GPuhV','userAgent','headers','args','30776jpZmgE','ENOENT','isArray','Failed\x20to\x20decrypt\x20auth\x20state:\x20','2881435fvmOSm','TKkye','11455932xjxxDZ','858629IOPIkf','CNfWL','contextOptions','keys','lcuhp','RSkCx','FwhYJ','code','utf-8','extraHTTPHeaders','HIcBi','getuid','ZgYHL','kTBhN','clipboard-write','push','map','5330192FTDRYd','zCLSx','COiYG','clipboard-read','cwSKu','zCihc','safeMode','ranger-config','core','cJRFV','chromium','storageState','headless','--no-sandbox','kYOwj','auth.json','local','UHrDf','--disable-setuid-sandbox','stringify','NVrjK','path','11zWSqNf','now','entries','browser','EGysy','XvnSJ','pxaLr','launchOptions','location','TLyVi','length','tabs','6pqmNKB','BTVFG','storageStatePath','includes','FWNNM','\x20is\x20not\x20set','message','catch','JSvbc','tempAuthPath','tBETh','kLbtl','cdpEndpoint','YQWAC','--disable-web-security','BhHSF','file','aoauI','2WjqpvP','BtITz','8156400HYdZxx','filter','aBODF','EbvFz','izTbv','540dbupSp','12zZPuFX','vRPZo','hYZjm','-cli.json','--allow-running-insecure-content'];_0x21dc=function(){return _0x177891;};return _0x21dc();}export function getEnvDir(_0x2d8f20){const _0x1b495f=_0x57c5,_0x4d6f76={'EGysy':function(_0x419554){return _0x419554();},'RSkCx':function(_0x3cc79d,_0x165941,_0x24c00a,_0x57d70a){return _0x3cc79d(_0x165941,_0x24c00a,_0x57d70a);},'DTtLK':_0x1b495f(0x155),'ZFfpX':function(_0x3b7357,_0x235521,_0x5b3a10){return _0x3b7357(_0x235521,_0x5b3a10);},'cwSKu':function(_0x3a4e1a,_0x1056fe){return _0x3a4e1a(_0x1056fe);}},_0x4e5fa1=_0x4d6f76[_0x1b495f(0x15f)](getRangerDir),_0xa12da1=_0x4d6f76[_0x1b495f(0x139)](join,_0x4e5fa1,'ci',_0x2d8f20),_0x3930ad=join(_0x4e5fa1,_0x4d6f76['DTtLK'],_0x2d8f20),_0x17eef0=join(_0x4e5fa1,_0x2d8f20),_0x4eb309=_0x4d6f76['ZFfpX'](join,_0x4e5fa1,_0x4d6f76['DTtLK']),_0x4ae454=_0x4d6f76['ZFfpX'](join,_0x4e5fa1,'ci');if(existsSync(_0xa12da1))return _0xa12da1;if(existsSync(_0x3930ad))return _0x3930ad;if(existsSync(_0x17eef0)&&(_0x17eef0!==_0x4eb309&&_0x17eef0!==_0x4ae454?!![]:_0x4d6f76[_0x1b495f(0x149)](hasLegacyProfileFiles,_0x17eef0)))return _0x17eef0;return _0x3930ad;}export function findExistingEnv(_0x47b7d9,_0x4fc146){const _0x137956=_0x57c5,_0x2f8f7c={'TKkye':function(_0x58a83b){return _0x58a83b();},'FwhYJ':'legacy','kYOwj':'local','jLWXC':function(_0x4dc026,_0x491f54,_0x1faa1f,_0xac6b20){return _0x4dc026(_0x491f54,_0x1faa1f,_0xac6b20);},'uLoTl':function(_0x4c410c,_0x1f95aa){return _0x4c410c===_0x1f95aa;},'HIcBi':function(_0x329a19,_0x4c6773){return _0x329a19(_0x4c6773);}},_0x47ea36=_0x2f8f7c[_0x137956(0x132)](getRangerDir),_0xebdaa3=_0x4fc146?.['locations']??['ci','local',_0x2f8f7c[_0x137956(0x13a)]],_0x2deff9=join(_0x47ea36,_0x2f8f7c[_0x137956(0x153)]),_0x29aae9=join(_0x47ea36,'ci'),_0x1524be=[{'location':'ci','path':join(_0x47ea36,'ci',_0x47b7d9)},{'location':_0x137956(0x155),'path':_0x2f8f7c['jLWXC'](join,_0x47ea36,_0x2f8f7c[_0x137956(0x153)],_0x47b7d9)},{'location':'legacy','path':join(_0x47ea36,_0x47b7d9)}];for(const _0x268bca of _0x1524be){if(_0xebdaa3[_0x137956(0x16a)](_0x268bca['location'])&&existsSync(_0x268bca[_0x137956(0x15a)])){if(_0x268bca[_0x137956(0x163)]===_0x2f8f7c[_0x137956(0x13a)]&&(_0x268bca['path']===_0x2deff9||_0x2f8f7c['uLoTl'](_0x268bca[_0x137956(0x15a)],_0x29aae9))&&!_0x2f8f7c[_0x137956(0x13e)](hasLegacyProfileFiles,_0x268bca[_0x137956(0x15a)]))continue;return{'path':_0x268bca[_0x137956(0x15a)],'location':_0x268bca[_0x137956(0x163)]};}}return null;}function hasLegacyProfileFiles(_0x25aed3){const _0x2805fc=_0x57c5,_0x307bb6={'hYZjm':function(_0xb29258,_0x256340,_0x4516cd){return _0xb29258(_0x256340,_0x4516cd);},'TeioW':function(_0x52c870,_0x4afd93){return _0x52c870(_0x4afd93);}};return existsSync(_0x307bb6[_0x2805fc(0x11e)](join,_0x25aed3,_0x2805fc(0x125)))||_0x307bb6['TeioW'](existsSync,_0x307bb6['hYZjm'](join,_0x25aed3,'auth.json'))||existsSync(_0x307bb6['hYZjm'](join,_0x25aed3,'auth.json.enc'));}export function isEnvCi(_0x336c8d){const _0x50e575={'dVPLB':function(_0x119b4e,_0x4007b9,_0x228e58,_0x66bd38){return _0x119b4e(_0x4007b9,_0x228e58,_0x66bd38);}};return existsSync(_0x50e575['dVPLB'](join,getRangerDir(),'ci',_0x336c8d));}export async function cleanupTempFiles(_0x29511b){const _0x2cc539=_0x57c5,_0x2f20fe=[_0x29511b[_0x2cc539(0x10b)],_0x29511b['configPath']][_0x2cc539(0x117)](Boolean);await Promise['all'](_0x2f20fe['map'](_0x28c4eb=>unlink(_0x28c4eb)[_0x2cc539(0x16e)](_0x2ad71a=>{const _0x39c2f3=_0x2cc539;_0x2ad71a[_0x39c2f3(0x13b)]!==_0x39c2f3(0x12e)&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x28c4eb+':',_0x2ad71a[_0x39c2f3(0x16d)]);})));}export function getSettingsPath(_0x36ef21){const _0x1b2851=_0x57c5,_0xa77187={'zCLSx':function(_0x3f2c94,_0x577238,_0x45eb3d){return _0x3f2c94(_0x577238,_0x45eb3d);},'BtITz':function(_0x2e9545,_0x3434b7){return _0x2e9545(_0x3434b7);},'NVrjK':'settings.json'};return _0xa77187[_0x1b2851(0x146)](join,_0xa77187[_0x1b2851(0x115)](getEnvDir,_0x36ef21),_0xa77187[_0x1b2851(0x159)]);}export async function loadSettings(_0x2f50a9){const _0x5bf919=_0x57c5,_0x817870={'JSvbc':function(_0x13626a,_0x1da62b){return _0x13626a(_0x1da62b);},'aoauI':function(_0x218672,_0x471fd2,_0x1c1b72){return _0x218672(_0x471fd2,_0x1c1b72);}},_0x445d38=getSettingsPath(_0x2f50a9);if(!_0x817870[_0x5bf919(0x10a)](existsSync,_0x445d38))return{};try{const _0x111304=await _0x817870[_0x5bf919(0x113)](readFile,_0x445d38,_0x5bf919(0x13c));return JSON['parse'](_0x111304);}catch{return{};}}export async function saveSettings(_0x7f6443,_0x21610a){const _0x52ebf9={'yRuWz':function(_0x48d5ea,_0x3abd58,_0x4bd3ca){return _0x48d5ea(_0x3abd58,_0x4bd3ca);}},_0xc62392=getSettingsPath(_0x7f6443),_0x2fc6d4=dirname(_0xc62392);!existsSync(_0x2fc6d4)&&await mkdir(_0x2fc6d4,{'recursive':!![]}),await _0x52ebf9['yRuWz'](writeFile,_0xc62392,JSON['stringify'](_0x21610a,null,0x2));}export function resolveEnvVars(_0x20c031){const _0x87bac2=_0x57c5,_0x5b7051={'XenFt':function(_0x9e1685,_0x345067){return _0x9e1685===_0x345067;}};if(_0x5b7051['XenFt'](typeof _0x20c031,'string'))return _0x20c031['replace'](/\$\{(\w+)\}/g,(_0x57349a,_0xd34734)=>{const _0x4b17eb=_0x57c5,_0x129928=process['env'][_0xd34734];if(_0x129928===undefined)throw new Error('Environment\x20variable\x20'+_0xd34734+_0x4b17eb(0x16c));return _0x129928;});if(Array[_0x87bac2(0x12f)](_0x20c031))return _0x20c031[_0x87bac2(0x144)](resolveEnvVars);if(_0x20c031&&typeof _0x20c031==='object')return Object[_0x87bac2(0x121)](Object[_0x87bac2(0x15d)](_0x20c031)[_0x87bac2(0x144)](([_0x585c3e,_0x1730c0])=>[_0x585c3e,resolveEnvVars(_0x1730c0)]));return _0x20c031;}const isRecord=_0x38fc3d=>typeof _0x38fc3d==='object'&&_0x38fc3d!==null&&!Array['isArray'](_0x38fc3d),asRecord=_0x56c508=>isRecord(_0x56c508)?_0x56c508:undefined,mergeHeaders=(_0x132b3d,_0x1a0e75)=>{const _0xc5d5b7=_0x57c5,_0x221c16={'ExkPw':function(_0x34cd77,_0x5f23c9){return _0x34cd77??_0x5f23c9;}},_0x314c71={..._0x132b3d??{},..._0x221c16['ExkPw'](_0x1a0e75,{})};return Object[_0xc5d5b7(0x137)](_0x314c71)[_0xc5d5b7(0x165)]?_0x314c71:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=[_0x26bbff(0x110),_0x26bbff(0x120),'--unsafely-treat-insecure-origin-as-secure=http://localhost'];export function buildBrowserOptionsFromSettings(_0x571141,_0x1cc313={}){const _0x43d231=_0x26bbff,_0x309c6c={'COiYG':function(_0x50ffb4,_0x4f2b65){return _0x50ffb4(_0x4f2b65);},'HqRBt':function(_0x464862,_0x15f521){return _0x464862===_0x15f521;},'tarSS':function(_0x317b2b,_0x161267,_0x161629){return _0x317b2b(_0x161267,_0x161629);},'BTVFG':function(_0x393960,_0x102fc4){return _0x393960(_0x102fc4);}},_0x5bb201=_0x309c6c['COiYG'](asRecord,_0x571141[_0x43d231(0x15e)]),_0x19984a={...asRecord(_0x5bb201?.[_0x43d231(0x162)])??{}};_0x309c6c['HqRBt'](typeof _0x1cc313['headless'],'boolean')&&(_0x19984a[_0x43d231(0x151)]=_0x1cc313[_0x43d231(0x151)]);if(_0x571141[_0x43d231(0x14b)]){const _0x26e803=_0x19984a['args']??[],_0x3303e9=SAFE_MODE_ARGS['filter'](_0x1a81cf=>!_0x26e803[_0x43d231(0x16a)](_0x1a81cf));_0x19984a[_0x43d231(0x12c)]=[..._0x26e803,..._0x3303e9];}if(_0x571141['allowInsecureLocalhost']){const _0x8b2f19=_0x19984a[_0x43d231(0x12c)]??[],_0xc110a=ALLOW_LOCALHOST_ARGS['filter'](_0x13aa7c=>!_0x8b2f19['includes'](_0x13aa7c));_0x19984a['args']=[..._0x8b2f19,..._0xc110a];}const _0x279733={..._0x309c6c[_0x43d231(0x147)](asRecord,_0x5bb201?.['contextOptions'])??{}};typeof _0x571141[_0x43d231(0x12a)]==='string'&&(_0x279733['userAgent']=_0x571141[_0x43d231(0x12a)]);const _0x1c5a2c=_0x309c6c['tarSS'](mergeHeaders,_0x309c6c[_0x43d231(0x168)](asRecord,_0x279733['extraHTTPHeaders']),asRecord(_0x571141[_0x43d231(0x12b)]));return _0x1c5a2c?_0x279733[_0x43d231(0x13d)]=_0x1c5a2c:delete _0x279733['extraHTTPHeaders'],_0x1cc313[_0x43d231(0x169)]&&(_0x279733[_0x43d231(0x150)]=_0x1cc313['storageStatePath']),{'launchOptions':_0x19984a,'contextOptions':_0x279733};}export async function buildPlaywrightConfig(_0x53b12e,_0x3a0c7d,_0x2655de,_0x373389){const _0x5289fb=_0x26bbff,_0x418410={'FHaaY':function(_0xc5dcd9,_0x4ee284){return _0xc5dcd9===_0x4ee284;},'ZgYHL':_0x5289fb(0x152),'zCihc':'--disable-setuid-sandbox','kTBhN':function(_0x47cbf1,_0x2f4894,_0x22ad19){return _0x47cbf1(_0x2f4894,_0x22ad19);},'AgkAf':_0x5289fb(0x154),'WuekR':function(_0x289aca){return _0x289aca();},'CcUxk':function(_0x5854db,_0x408070){return _0x5854db(_0x408070);},'eDnPy':function(_0x1375cc,_0x327c9b,_0x11c323){return _0x1375cc(_0x327c9b,_0x11c323);},'mISRk':function(_0x34a1c5,_0x2beb3a){return _0x34a1c5(_0x2beb3a);},'XvnSJ':function(_0x55341d,_0x11f542,_0x36f03e,_0x395e73){return _0x55341d(_0x11f542,_0x36f03e,_0x395e73);},'CNfWL':_0x5289fb(0x14d),'EbvFz':_0x5289fb(0x166),'bIGXQ':'pdf','ewpkZ':function(_0x47de9c){return _0x47de9c();},'lcuhp':'ranger-config','acFZx':function(_0x250796,_0x4fae1c){return _0x250796(_0x4fae1c);}},_0x5442b8=getEnvDir(_0x3a0c7d),_0x18190f=_0x418410[_0x5289fb(0x141)](join,_0x5442b8,'auth.json.enc'),_0x13de5f=_0x418410[_0x5289fb(0x141)](join,_0x5442b8,_0x418410['AgkAf']);let _0x44990e,_0x2a44b0;if(existsSync(_0x18190f))try{const _0x347769=await _0x418410['WuekR'](getToken);if(!_0x347769)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x15970c=await _0x418410['CcUxk'](readFile,_0x18190f),_0x1c9816=decrypt(_0x15970c,_0x347769);_0x2a44b0=join(_0x418410['WuekR'](tmpdir),'ranger-auth-'+Date[_0x5289fb(0x15c)]()+'.json'),await _0x418410['eDnPy'](writeFile,_0x2a44b0,_0x1c9816),_0x44990e=_0x2a44b0;}catch(_0x28669b){const _0xd384a2=_0x28669b instanceof Error?_0x28669b[_0x5289fb(0x16d)]:_0x418410[_0x5289fb(0x123)](String,_0x28669b);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0xd384a2);}else _0x418410['CcUxk'](existsSync,_0x13de5f)&&(_0x44990e=_0x13de5f);const _0x5504fe=_0x2655de||randomUUID(),_0x38c362=_0x418410[_0x5289fb(0x160)](join,getRangerDir(),'sessions',_0x5504fe),_0xa34f9b=Boolean(_0x53b12e[_0x5289fb(0x10e)]),_0x186569=_0xa34f9b?{'browserName':_0x5289fb(0x14f),'cdpEndpoint':_0x53b12e['cdpEndpoint']}:((()=>{const _0x1348c6=_0x5289fb,{launchOptions:_0x24181a,contextOptions:_0x2716a2}=buildBrowserOptionsFromSettings(_0x53b12e,{'headless':_0x373389?![]:_0x53b12e[_0x1348c6(0x151)]??!![],'storageStatePath':_0x44990e});if(_0x418410['FHaaY'](process[_0x1348c6(0x13f)]?.(),0x0)){const _0x92b75d=[_0x418410[_0x1348c6(0x140)],_0x418410[_0x1348c6(0x14a)]],_0x44c8c6=_0x24181a['args']??[],_0x51d267=_0x92b75d['filter'](_0x53f242=>!_0x44c8c6['includes'](_0x53f242));_0x24181a[_0x1348c6(0x12c)]=[..._0x44c8c6,..._0x51d267];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x24181a,'contextOptions':{..._0x2716a2,'permissions':['clipboard-read',_0x1348c6(0x142)],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x10f6ff={'name':_0x3a0c7d,'browser':_0x186569,'capabilities':[_0x418410[_0x5289fb(0x135)],_0x418410[_0x5289fb(0x119)],'install',_0x418410['bIGXQ'],'vision'],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x38c362};if(!_0xa34f9b){const _0x469644=_0x10f6ff['browser'],_0x76dc4a=_0x469644[_0x5289fb(0x136)];if(_0x76dc4a[_0x5289fb(0x12a)]===undefined)delete _0x76dc4a[_0x5289fb(0x12a)];if(_0x76dc4a[_0x5289fb(0x150)]===undefined)delete _0x76dc4a[_0x5289fb(0x150)];}const _0x52917d=_0x418410[_0x5289fb(0x141)](join,_0x418410['ewpkZ'](tmpdir),_0x418410[_0x5289fb(0x138)]);!_0x418410['acFZx'](existsSync,_0x52917d)&&await mkdir(_0x52917d,{'recursive':!![]});const _0x16128b=_0x418410['kTBhN'](join,_0x52917d,_0x3a0c7d+'-'+Date[_0x5289fb(0x15c)]()+'.json');return await writeFile(_0x16128b,JSON[_0x5289fb(0x158)](_0x10f6ff,null,0x2)),{'configPath':_0x16128b,'tempAuthPath':_0x2a44b0};}function _0x57c5(_0x136b14,_0xaca01b){_0x136b14=_0x136b14-0x10a;const _0x21dc26=_0x21dc();let _0x57c553=_0x21dc26[_0x136b14];return _0x57c553;}export async function buildPlaywrightCliConfig(_0x17338f,_0x56ecba,_0x321c22,_0x1456c5){const _0x45664b=_0x26bbff,_0x46879f={'cJRFV':function(_0x16f7ab,_0x4b167f,_0x451e0a){return _0x16f7ab(_0x4b167f,_0x451e0a);},'HPwXq':'--no-sandbox','arTaW':_0x45664b(0x157),'izTbv':'chromium','tWbOQ':'auth.json.enc','Krxar':function(_0x493127,_0x40515b){return _0x493127(_0x40515b);},'kLbtl':function(_0x322fc5){return _0x322fc5();},'GPuhV':_0x45664b(0x128),'jINRI':function(_0x524025,_0x16284d){return _0x524025 instanceof _0x16284d;},'gCjAq':function(_0x5f21b2,_0x985a31,_0x23f1bd,_0x95971e){return _0x5f21b2(_0x985a31,_0x23f1bd,_0x95971e);},'QJihV':'sessions','aBODF':function(_0x3d9b2,_0x157b40){return _0x3d9b2===_0x157b40;},'UHrDf':_0x45664b(0x112),'FWNNM':function(_0x5a55e0,_0x2606b2,_0x285655){return _0x5a55e0(_0x2606b2,_0x285655);}},_0x16aff1=getEnvDir(_0x56ecba),_0x426c68=join(_0x16aff1,_0x46879f['tWbOQ']),_0x1ffe7f=_0x46879f[_0x45664b(0x14e)](join,_0x16aff1,_0x45664b(0x154));let _0x59812f,_0x497fd9;if(_0x46879f['Krxar'](existsSync,_0x426c68))try{const _0x502e41=await _0x46879f[_0x45664b(0x10d)](getToken);if(!_0x502e41)throw new Error(_0x46879f[_0x45664b(0x129)]);const _0x5dec38=await readFile(_0x426c68),_0xe20bba=decrypt(_0x5dec38,_0x502e41);_0x497fd9=join(_0x46879f[_0x45664b(0x10d)](tmpdir),'ranger-auth-'+Date['now']()+'.json'),await _0x46879f['cJRFV'](writeFile,_0x497fd9,_0xe20bba),_0x59812f=_0x497fd9;}catch(_0x55d94c){const _0x31ea5b=_0x46879f[_0x45664b(0x124)](_0x55d94c,Error)?_0x55d94c['message']:String(_0x55d94c);throw new Error(_0x45664b(0x130)+_0x31ea5b);}else existsSync(_0x1ffe7f)&&(_0x59812f=_0x1ffe7f);const _0x36d317=_0x321c22||randomUUID(),_0x4e4537=_0x46879f['gCjAq'](join,getRangerDir(),_0x46879f['QJihV'],_0x36d317),_0x21c9ac=Boolean(_0x17338f['cdpEndpoint']),_0x2faa0e=_0x21c9ac?{'browserName':_0x46879f[_0x45664b(0x11a)],'cdpEndpoint':_0x17338f[_0x45664b(0x10e)]}:((()=>{const _0x87f7ca=_0x45664b,{launchOptions:_0x564f6c,contextOptions:_0x290289}=_0x46879f[_0x87f7ca(0x14e)](buildBrowserOptionsFromSettings,_0x17338f,{'headless':_0x1456c5?![]:_0x17338f['headless']??!![],'storageStatePath':_0x59812f});if(process[_0x87f7ca(0x13f)]?.()===0x0){const _0x1f3d78=[_0x46879f['HPwXq'],_0x46879f['arTaW']],_0x4b269f=_0x564f6c['args']??[],_0x474dcc=_0x1f3d78[_0x87f7ca(0x117)](_0x1965bf=>!_0x4b269f['includes'](_0x1965bf));_0x564f6c[_0x87f7ca(0x12c)]=[..._0x4b269f,..._0x474dcc];}return{'isolated':!![],'browserName':_0x46879f['izTbv'],'launchOptions':_0x564f6c,'contextOptions':{..._0x290289,'permissions':[_0x87f7ca(0x148),'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x21c9ac){const _0x4f0310=_0x2faa0e[_0x45664b(0x136)];if(_0x46879f[_0x45664b(0x118)](_0x4f0310['userAgent'],undefined))delete _0x4f0310['userAgent'];if(_0x46879f['aBODF'](_0x4f0310[_0x45664b(0x150)],undefined))delete _0x4f0310[_0x45664b(0x150)];}const _0x1825ab={'browser':_0x2faa0e,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4e4537,'outputMode':_0x46879f[_0x45664b(0x156)],'codegen':'none'},_0x2ff165=_0x46879f[_0x45664b(0x14e)](join,tmpdir(),_0x45664b(0x14c));!existsSync(_0x2ff165)&&await _0x46879f[_0x45664b(0x16b)](mkdir,_0x2ff165,{'recursive':!![]});const _0x2e463b=join(_0x2ff165,_0x56ecba+'-'+Date['now']()+_0x45664b(0x11f));return await writeFile(_0x2e463b,JSON['stringify'](_0x1825ab,null,0x2)),{'configPath':_0x2e463b,'tempAuthPath':_0x497fd9};}export function getNestedValue(_0x3112b2,_0x1a5e5c){const _0x36f7a7=_0x26bbff,_0x1a871f={'BhHSF':function(_0x3a59b4,_0x36f96c){return _0x3a59b4(_0x36f96c);},'bZJTN':function(_0x5e6047,_0x4c66e1){return _0x5e6047!==_0x4c66e1;}},_0x4a1ae9=_0x1a871f[_0x36f7a7(0x111)](parseKeyPath,_0x1a5e5c);let _0x3c0b5e=_0x3112b2;for(const _0x1595b2 of _0x4a1ae9){if(_0x3c0b5e===null||_0x3c0b5e===undefined||_0x1a871f['bZJTN'](typeof _0x3c0b5e,_0x36f7a7(0x127)))return undefined;_0x3c0b5e=_0x3c0b5e[_0x1595b2];}return _0x3c0b5e;}export function setNestedValue(_0x37d25f,_0x3f159d,_0x166ab2){const _0x2f62d3=_0x26bbff,_0x2f675b={'vRPZo':function(_0x26783d,_0x3f7f79){return _0x26783d-_0x3f7f79;},'tXmFM':function(_0x11ea4f,_0x5e80fc){return _0x11ea4f in _0x5e80fc;},'tBETh':function(_0x46d61c,_0x11a32){return _0x46d61c!==_0x11a32;},'pxaLr':'object','qksvF':function(_0x470acd,_0x3e577f){return _0x470acd-_0x3e577f;}},_0x48d60e=parseKeyPath(_0x3f159d);let _0x135d80=_0x37d25f;for(let _0x42ba3a=0x0;_0x42ba3a<_0x2f675b[_0x2f62d3(0x11d)](_0x48d60e['length'],0x1);_0x42ba3a++){const _0x3a3610=_0x48d60e[_0x42ba3a];(!_0x2f675b['tXmFM'](_0x3a3610,_0x135d80)||_0x2f675b[_0x2f62d3(0x10c)](typeof _0x135d80[_0x3a3610],_0x2f675b[_0x2f62d3(0x161)]))&&(_0x135d80[_0x3a3610]={}),_0x135d80=_0x135d80[_0x3a3610];}_0x135d80[_0x48d60e[_0x2f675b['qksvF'](_0x48d60e['length'],0x1)]]=_0x166ab2;}export function deleteNestedValue(_0x40ca10,_0x2ad076){const _0x2881fe=_0x26bbff,_0x156622={'eVgmr':function(_0x3f90f1,_0x22e78f){return _0x3f90f1(_0x22e78f);},'mNUvc':function(_0x17cd86,_0x33cbf7){return _0x17cd86<_0x33cbf7;},'uIkIe':function(_0x1344a0,_0x58c59c){return _0x1344a0-_0x58c59c;},'TLyVi':function(_0x23354a,_0x1c8413){return _0x23354a===_0x1c8413;},'OLSRX':function(_0x121df3,_0x9e621b){return _0x121df3!==_0x9e621b;},'YQWAC':_0x2881fe(0x127),'fKwRB':function(_0x9b432d,_0xb1c22e){return _0x9b432d!==_0xb1c22e;}},_0x3a6c07=_0x156622['eVgmr'](parseKeyPath,_0x2ad076);let _0x8f7a3=_0x40ca10;for(let _0xf7d9a5=0x0;_0x156622['mNUvc'](_0xf7d9a5,_0x156622['uIkIe'](_0x3a6c07['length'],0x1));_0xf7d9a5++){if(_0x156622[_0x2881fe(0x164)](_0x8f7a3,null)||_0x8f7a3===undefined||_0x156622['OLSRX'](typeof _0x8f7a3,_0x156622[_0x2881fe(0x10f)]))return![];_0x8f7a3=_0x8f7a3[_0x3a6c07[_0xf7d9a5]];}if(_0x8f7a3===null||_0x8f7a3===undefined||_0x156622['fKwRB'](typeof _0x8f7a3,_0x2881fe(0x127)))return![];const _0x5062e0=_0x3a6c07[_0x156622[_0x2881fe(0x126)](_0x3a6c07[_0x2881fe(0x165)],0x1)];if(_0x5062e0 in _0x8f7a3)return delete _0x8f7a3[_0x5062e0],!![];return![];}function parseKeyPath(_0x1b3881){const _0x48cd83={'fErCW':'header','tbrbE':'headers'},_0x2c7062=_0x1b3881['split']('.');return _0x2c7062[0x0]===_0x48cd83['fErCW']&&(_0x2c7062[0x0]=_0x48cd83['tbrbE']),_0x2c7062;}export function formatSettings(_0x11d3e7,_0x37caef=0x0){const _0x216298=_0x26bbff,_0x337b36={'HtffR':function(_0x4976de,_0x132024){return _0x4976de===_0x132024;},'HRqpI':_0x216298(0x127)},_0x1963ba=[],_0xee6b32='\x20\x20'['repeat'](_0x37caef);for(const [_0xe4013f,_0x5d2b04]of Object[_0x216298(0x15d)](_0x11d3e7)){if(_0x337b36['HtffR'](_0x5d2b04,undefined))continue;if(typeof _0x5d2b04===_0x337b36['HRqpI']&&_0x5d2b04!==null){_0x1963ba['push'](''+_0xee6b32+_0xe4013f+':');for(const [_0x284478,_0x312529]of Object['entries'](_0x5d2b04)){_0x1963ba[_0x216298(0x143)](_0xee6b32+'\x20\x20'+_0x284478+':\x20'+_0x312529);}}else _0x1963ba['push'](''+_0xee6b32+_0xe4013f+':\x20'+_0x5d2b04);}return _0x1963ba['join']('\x0a');}
|
|
1
|
+
const _0x31ea3a=_0x5f0e;(function(_0x406b56,_0x5bcd48){const _0xb8738e=_0x5f0e,_0x402594=_0x406b56();while(!![]){try{const _0x225011=-parseInt(_0xb8738e(0x91))/0x1+parseInt(_0xb8738e(0x84))/0x2+-parseInt(_0xb8738e(0xd2))/0x3*(-parseInt(_0xb8738e(0xcf))/0x4)+parseInt(_0xb8738e(0xa1))/0x5*(parseInt(_0xb8738e(0xa7))/0x6)+-parseInt(_0xb8738e(0x85))/0x7+parseInt(_0xb8738e(0x79))/0x8+parseInt(_0xb8738e(0xa4))/0x9;if(_0x225011===_0x5bcd48)break;else _0x402594['push'](_0x402594['shift']());}catch(_0x3c1d51){_0x402594['push'](_0x402594['shift']());}}}(_0x52fd,0xee993));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir}from'./rangerRoot.js';export function getEnvDir(_0x3d7fd1){const _0x431096=_0x5f0e,_0x66d14e={'mrtdX':function(_0x3c0cf3,_0x2e428f,_0x171bd0,_0x45661f){return _0x3c0cf3(_0x2e428f,_0x171bd0,_0x45661f);},'qQqYj':'local','Afxqy':function(_0x355e0c,_0xb179b9,_0xd857c){return _0x355e0c(_0xb179b9,_0xd857c);},'tOyLd':function(_0x333cc4,_0x547052){return _0x333cc4(_0x547052);},'Epazg':function(_0x49ef6f,_0x4e0194){return _0x49ef6f(_0x4e0194);},'HFGLt':function(_0x215c8c,_0x44dc1e){return _0x215c8c(_0x44dc1e);}},_0x321431=getRangerDir(),_0x51be4b=join(_0x321431,'ci',_0x3d7fd1),_0x22d2c8=_0x66d14e[_0x431096(0x67)](join,_0x321431,_0x66d14e[_0x431096(0x6b)],_0x3d7fd1),_0x42c48b=join(_0x321431,_0x3d7fd1),_0x496704=_0x66d14e[_0x431096(0xcc)](join,_0x321431,_0x66d14e[_0x431096(0x6b)]),_0x206cf7=_0x66d14e['Afxqy'](join,_0x321431,'ci');if(_0x66d14e[_0x431096(0xad)](existsSync,_0x51be4b))return _0x51be4b;if(_0x66d14e[_0x431096(0xc9)](existsSync,_0x22d2c8))return _0x22d2c8;if(existsSync(_0x42c48b)&&(_0x42c48b!==_0x496704&&_0x42c48b!==_0x206cf7?!![]:_0x66d14e[_0x431096(0xac)](hasLegacyProfileFiles,_0x42c48b)))return _0x42c48b;return _0x22d2c8;}export function findExistingEnv(_0x58d9f4,_0x68b62a){const _0x3f25ff=_0x5f0e,_0x32c235={'VmwiZ':function(_0x1c6fae){return _0x1c6fae();},'pWzPk':_0x3f25ff(0x71),'CumNg':function(_0xf6a233,_0x3d8d8b,_0x3bebc5){return _0xf6a233(_0x3d8d8b,_0x3bebc5);},'CbGCr':_0x3f25ff(0x82),'HxdWK':function(_0x26f9e2,_0x36b460,_0x5bb1db){return _0x26f9e2(_0x36b460,_0x5bb1db);},'yVYwa':function(_0x1a4727,_0x4d7858){return _0x1a4727===_0x4d7858;},'yUgJQ':function(_0x258150,_0x2aa4dd){return _0x258150(_0x2aa4dd);}},_0x554bfc=_0x32c235['VmwiZ'](getRangerDir),_0x5e4c90=_0x68b62a?.[_0x3f25ff(0xb8)]??['ci',_0x32c235[_0x3f25ff(0x99)],_0x3f25ff(0x82)],_0x59b331=_0x32c235['CumNg'](join,_0x554bfc,_0x3f25ff(0x71)),_0x451d3b=join(_0x554bfc,'ci'),_0x30b9b8=[{'location':'ci','path':join(_0x554bfc,'ci',_0x58d9f4)},{'location':_0x3f25ff(0x71),'path':join(_0x554bfc,_0x3f25ff(0x71),_0x58d9f4)},{'location':_0x32c235[_0x3f25ff(0x9f)],'path':_0x32c235['HxdWK'](join,_0x554bfc,_0x58d9f4)}];for(const _0x2bf427 of _0x30b9b8){if(_0x5e4c90['includes'](_0x2bf427['location'])&&existsSync(_0x2bf427[_0x3f25ff(0x7d)])){if(_0x32c235['yVYwa'](_0x2bf427[_0x3f25ff(0xd3)],_0x3f25ff(0x82))&&(_0x2bf427['path']===_0x59b331||_0x2bf427[_0x3f25ff(0x7d)]===_0x451d3b)&&!_0x32c235['yUgJQ'](hasLegacyProfileFiles,_0x2bf427['path']))continue;return{'path':_0x2bf427['path'],'location':_0x2bf427['location']};}}return null;}function hasLegacyProfileFiles(_0x13c93f){const _0x966c4c=_0x5f0e,_0xad8427={'TnNtS':function(_0x1ef3aa,_0x543817,_0x491a22){return _0x1ef3aa(_0x543817,_0x491a22);},'EhWlK':'settings.json','IQBHK':function(_0x19a781,_0x4780c8){return _0x19a781(_0x4780c8);}};return existsSync(_0xad8427[_0x966c4c(0xc4)](join,_0x13c93f,_0xad8427[_0x966c4c(0x7e)]))||existsSync(_0xad8427['TnNtS'](join,_0x13c93f,'auth.json'))||_0xad8427['IQBHK'](existsSync,join(_0x13c93f,'auth.json.enc'));}export function isEnvCi(_0x42b778){const _0x335389={'HownJ':function(_0x44fdd1,_0x3141f0){return _0x44fdd1(_0x3141f0);},'DoZZM':function(_0x317a56,_0x1c3d33,_0x33db38,_0x2070d0){return _0x317a56(_0x1c3d33,_0x33db38,_0x2070d0);}};return _0x335389['HownJ'](existsSync,_0x335389['DoZZM'](join,getRangerDir(),'ci',_0x42b778));}export async function cleanupTempFiles(_0x5b06f0){const _0x14b4cd=_0x5f0e,_0x352532={'KnWDS':function(_0xc70aa2,_0x3be380){return _0xc70aa2!==_0x3be380;}},_0x197097=[_0x5b06f0['tempAuthPath'],_0x5b06f0[_0x14b4cd(0x7c)]][_0x14b4cd(0x68)](Boolean);await Promise[_0x14b4cd(0x7a)](_0x197097[_0x14b4cd(0x9b)](_0x36d93e=>unlink(_0x36d93e)[_0x14b4cd(0xd4)](_0x55bbe4=>{const _0x5ea453=_0x14b4cd;_0x352532['KnWDS'](_0x55bbe4['code'],_0x5ea453(0xc7))&&console['warn'](_0x5ea453(0xbe)+_0x36d93e+':',_0x55bbe4['message']);})));}export function getSettingsPath(_0x33ba9d){const _0x226de6=_0x5f0e,_0x28ab09={'CKCxQ':'settings.json'};return join(getEnvDir(_0x33ba9d),_0x28ab09[_0x226de6(0x89)]);}function _0x5f0e(_0x33458f,_0x565fb4){_0x33458f=_0x33458f-0x67;const _0x52fd5a=_0x52fd();let _0x5f0ed4=_0x52fd5a[_0x33458f];return _0x5f0ed4;}export async function loadSettings(_0x58e5f9){const _0x5190e5=_0x5f0e,_0x5964ff={'lgYuU':function(_0x4a216e,_0x4b6241){return _0x4a216e(_0x4b6241);},'WKdMX':function(_0x508037,_0x35804e){return _0x508037(_0x35804e);},'AtpCX':function(_0x51f6d8,_0x98124,_0xf8eb33){return _0x51f6d8(_0x98124,_0xf8eb33);},'ifoNK':_0x5190e5(0xd5)},_0x1001ce=_0x5964ff['lgYuU'](getSettingsPath,_0x58e5f9);if(!_0x5964ff[_0x5190e5(0xba)](existsSync,_0x1001ce))return{};try{const _0x4e3c51=await _0x5964ff['AtpCX'](readFile,_0x1001ce,_0x5964ff['ifoNK']);return JSON[_0x5190e5(0xc5)](_0x4e3c51);}catch{return{};}}export async function saveSettings(_0xbad29d,_0x458d4d){const _0xac182e=_0x5f0e,_0x53b0b9={'zulfX':function(_0x6efe42,_0x3d5aa9){return _0x6efe42(_0x3d5aa9);},'KNdhj':function(_0x523e4e,_0x23e735,_0xe075f3){return _0x523e4e(_0x23e735,_0xe075f3);}},_0x512f11=_0x53b0b9[_0xac182e(0x69)](getSettingsPath,_0xbad29d),_0x31048f=dirname(_0x512f11);!_0x53b0b9[_0xac182e(0x69)](existsSync,_0x31048f)&&await _0x53b0b9['KNdhj'](mkdir,_0x31048f,{'recursive':!![]}),await _0x53b0b9[_0xac182e(0xca)](writeFile,_0x512f11,JSON[_0xac182e(0x7f)](_0x458d4d,null,0x2));}export function resolveEnvVars(_0x140aba){const _0x4fe4a3=_0x5f0e,_0x24926c={'vEspi':'object'};if(typeof _0x140aba==='string')return _0x140aba[_0x4fe4a3(0x8f)](/\$\{(\w+)\}/g,(_0xb1ee0c,_0x178f29)=>{const _0x19328a=_0x4fe4a3,_0x2df9ee=process[_0x19328a(0x6d)][_0x178f29];if(_0x2df9ee===undefined)throw new Error(_0x19328a(0x92)+_0x178f29+_0x19328a(0xa9));return _0x2df9ee;});if(Array['isArray'](_0x140aba))return _0x140aba[_0x4fe4a3(0x9b)](resolveEnvVars);if(_0x140aba&&typeof _0x140aba===_0x24926c['vEspi'])return Object['fromEntries'](Object['entries'](_0x140aba)['map'](([_0x4b9c7f,_0xba4baf])=>[_0x4b9c7f,resolveEnvVars(_0xba4baf)]));return _0x140aba;}const isRecord=_0x3104e4=>typeof _0x3104e4==='object'&&_0x3104e4!==null&&!Array[_0x31ea3a(0xa3)](_0x3104e4),asRecord=_0x52d848=>isRecord(_0x52d848)?_0x52d848:undefined,mergeHeaders=(_0x5cc912,_0x1c0655)=>{const _0x2f831f=_0x31ea3a,_0x4428fd={'xjdTV':function(_0x23df1a,_0x5d3813){return _0x23df1a??_0x5d3813;},'MDCWV':function(_0x125fa4,_0x45dbb1){return _0x125fa4??_0x45dbb1;}},_0x5e6209={..._0x4428fd['xjdTV'](_0x5cc912,{}),..._0x4428fd['MDCWV'](_0x1c0655,{})};return Object['keys'](_0x5e6209)[_0x2f831f(0x83)]?_0x5e6209:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=[_0x31ea3a(0x8d),'--allow-running-insecure-content','--unsafely-treat-insecure-origin-as-secure=http://localhost'];export function buildBrowserOptionsFromSettings(_0x55eb83,_0x2dea7f={}){const _0x4ae245=_0x31ea3a,_0x132524={'CahKb':function(_0x248769,_0x555853){return _0x248769(_0x555853);},'uggeN':function(_0x41ee30,_0x561087){return _0x41ee30===_0x561087;},'ANfMI':_0x4ae245(0xcb),'CmNFJ':function(_0x42c4b1,_0x4165ac,_0x12170d){return _0x42c4b1(_0x4165ac,_0x12170d);}},_0x5a05a8=_0x132524[_0x4ae245(0x8c)](asRecord,_0x55eb83['browser']),_0x4dbb26={...asRecord(_0x5a05a8?.[_0x4ae245(0xbb)])??{}};_0x132524[_0x4ae245(0xb3)](typeof _0x2dea7f['headless'],_0x132524['ANfMI'])&&(_0x4dbb26[_0x4ae245(0xce)]=_0x2dea7f[_0x4ae245(0xce)]);if(_0x55eb83[_0x4ae245(0x6a)]){const _0x44c185=_0x4dbb26['args']??[],_0x492914=SAFE_MODE_ARGS[_0x4ae245(0x68)](_0x48fb15=>!_0x44c185[_0x4ae245(0xab)](_0x48fb15));_0x4dbb26[_0x4ae245(0x97)]=[..._0x44c185,..._0x492914];}if(_0x55eb83[_0x4ae245(0x9e)]){const _0x2f9f04=_0x4dbb26[_0x4ae245(0x97)]??[],_0x48785e=ALLOW_LOCALHOST_ARGS[_0x4ae245(0x68)](_0x57e330=>!_0x2f9f04[_0x4ae245(0xab)](_0x57e330));_0x4dbb26['args']=[..._0x2f9f04,..._0x48785e];}const _0xbc46b6={...asRecord(_0x5a05a8?.['contextOptions'])??{}};typeof _0x55eb83[_0x4ae245(0x77)]==='string'&&(_0xbc46b6[_0x4ae245(0x77)]=_0x55eb83[_0x4ae245(0x77)]);const _0x4a2ba2=_0x132524['CmNFJ'](mergeHeaders,asRecord(_0xbc46b6[_0x4ae245(0x9a)]),asRecord(_0x55eb83[_0x4ae245(0xa0)]));return _0x4a2ba2?_0xbc46b6[_0x4ae245(0x9a)]=_0x4a2ba2:delete _0xbc46b6[_0x4ae245(0x9a)],_0x2dea7f['storageStatePath']&&(_0xbc46b6[_0x4ae245(0xaf)]=_0x2dea7f[_0x4ae245(0xcd)]),{'launchOptions':_0x4dbb26,'contextOptions':_0xbc46b6};}export async function buildPlaywrightConfig(_0x31227f,_0x5cbb85,_0x2d21f8,_0x4c1ae5){const _0x4152d7=_0x31ea3a,_0x4ec892={'ZjyVi':function(_0x196fc8,_0x2ce9d0,_0x1bfb11){return _0x196fc8(_0x2ce9d0,_0x1bfb11);},'dLTIM':_0x4152d7(0x7b),'CFoNN':_0x4152d7(0xae),'loJLW':function(_0x5b6714,_0x2c23cf,_0x21ddc6){return _0x5b6714(_0x2c23cf,_0x21ddc6);},'EfCQp':function(_0x3edf21,_0x47e803){return _0x3edf21(_0x47e803);},'vFuOY':function(_0x4608d8){return _0x4608d8();},'UHfAG':function(_0x167d5c,_0x1413d6,_0x1b4c13,_0x1cb159){return _0x167d5c(_0x1413d6,_0x1b4c13,_0x1cb159);},'wJzFS':'sessions','NdYvY':_0x4152d7(0x73),'ToXyU':_0x4152d7(0xd1),'YdDSX':function(_0x3eebb4,_0x1b63f7){return _0x3eebb4===_0x1b63f7;},'fDKSR':_0x4152d7(0xc3),'ehtLe':function(_0x442fb0,_0x138431,_0x28a3fd){return _0x442fb0(_0x138431,_0x28a3fd);}},_0x55286e=getEnvDir(_0x5cbb85),_0x3a97fc=join(_0x55286e,_0x4ec892['CFoNN']),_0x4bc9c2=_0x4ec892[_0x4152d7(0x6e)](join,_0x55286e,'auth.json');let _0x426fa9,_0xaed4af;if(_0x4ec892['EfCQp'](existsSync,_0x3a97fc))try{const _0x36ff9e=await getToken();if(!_0x36ff9e)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x3d2bd5=await readFile(_0x3a97fc),_0x1e7601=decrypt(_0x3d2bd5,_0x36ff9e);_0xaed4af=join(_0x4ec892['vFuOY'](tmpdir),'ranger-auth-'+Date['now']()+'.json'),await _0x4ec892[_0x4152d7(0x6e)](writeFile,_0xaed4af,_0x1e7601),_0x426fa9=_0xaed4af;}catch(_0x46b5e0){const _0x6301a3=_0x46b5e0 instanceof Error?_0x46b5e0['message']:String(_0x46b5e0);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x6301a3);}else existsSync(_0x4bc9c2)&&(_0x426fa9=_0x4bc9c2);const _0x172546=_0x2d21f8||randomUUID(),_0x33f75c=_0x4ec892[_0x4152d7(0x88)](join,_0x4ec892[_0x4152d7(0xa2)](getRangerDir),_0x4ec892['wJzFS'],_0x172546),_0x4d05fd=_0x4ec892[_0x4152d7(0x90)](Boolean,_0x31227f['cdpEndpoint']),_0x362423=_0x4d05fd?{'browserName':_0x4152d7(0xb2),'cdpEndpoint':_0x31227f[_0x4152d7(0xc8)]}:((()=>{const _0x22a785=_0x4152d7,{launchOptions:_0x13f811,contextOptions:_0x1f4628}=_0x4ec892['ZjyVi'](buildBrowserOptionsFromSettings,_0x31227f,{'headless':_0x4c1ae5?![]:_0x31227f['headless']??!![],'storageStatePath':_0x426fa9});if(process['getuid']?.()===0x0){const _0x14e4a1=['--no-sandbox','--disable-setuid-sandbox'],_0x333cc6=_0x13f811[_0x22a785(0x97)]??[],_0x3ff0fd=_0x14e4a1[_0x22a785(0x68)](_0x2f25e2=>!_0x333cc6['includes'](_0x2f25e2));_0x13f811[_0x22a785(0x97)]=[..._0x333cc6,..._0x3ff0fd];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x13f811,'contextOptions':{..._0x1f4628,'permissions':[_0x4ec892['dLTIM'],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x569846={'name':_0x5cbb85,'browser':_0x362423,'capabilities':[_0x4ec892['NdYvY'],_0x4152d7(0x6f),_0x4152d7(0x70),_0x4152d7(0xb0),_0x4ec892['ToXyU']],'imageResponses':_0x4152d7(0xbf),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x33f75c};if(!_0x4d05fd){const _0x40bde7=_0x569846['browser'],_0x147171=_0x40bde7['contextOptions'];if(_0x4ec892['YdDSX'](_0x147171['userAgent'],undefined))delete _0x147171[_0x4152d7(0x77)];if(_0x147171['storageState']===undefined)delete _0x147171[_0x4152d7(0xaf)];}const _0x3f5000=join(tmpdir(),_0x4ec892['fDKSR']);!existsSync(_0x3f5000)&&await _0x4ec892['ZjyVi'](mkdir,_0x3f5000,{'recursive':!![]});const _0x54ed8c=join(_0x3f5000,_0x5cbb85+'-'+Date[_0x4152d7(0xa8)]()+'.json');return await _0x4ec892['ehtLe'](writeFile,_0x54ed8c,JSON[_0x4152d7(0x7f)](_0x569846,null,0x2)),{'configPath':_0x54ed8c,'tempAuthPath':_0xaed4af};}export async function buildPlaywrightCliConfig(_0x3dcaea,_0x2d8d5b,_0x5610c7,_0x5423e7){const _0x216fa6=_0x31ea3a,_0x12687c={'CXdGa':function(_0x1a56d2,_0x225efb,_0x363301){return _0x1a56d2(_0x225efb,_0x363301);},'aBNYQ':function(_0xd1f5b9,_0x160211){return _0xd1f5b9===_0x160211;},'IzocM':'--disable-setuid-sandbox','vryRI':'clipboard-write','QDrSR':function(_0xa72d51,_0x5e5596){return _0xa72d51(_0x5e5596);},'xUAdz':_0x216fa6(0x74),'PtDuC':function(_0x3c18f2){return _0x3c18f2();},'MRaph':function(_0x55e324,_0x7ce8d0){return _0x55e324 instanceof _0x7ce8d0;},'Zowoc':function(_0x65f5fb,_0x12570a,_0x49886c,_0x2b11d4){return _0x65f5fb(_0x12570a,_0x49886c,_0x2b11d4);},'bzjyX':_0x216fa6(0x8a),'wDsfR':function(_0x9fb443,_0x153469){return _0x9fb443(_0x153469);},'Hodjq':'file','fnmFI':'none','uzqwq':'ranger-config','fymHM':function(_0x18e97d,_0x2e0160){return _0x18e97d(_0x2e0160);}},_0x3ad21d=_0x12687c[_0x216fa6(0xc6)](getEnvDir,_0x2d8d5b),_0x532f4c=join(_0x3ad21d,'auth.json.enc'),_0x2d6e33=join(_0x3ad21d,_0x12687c[_0x216fa6(0xc2)]);let _0x55ba9c,_0x2f6361;if(_0x12687c[_0x216fa6(0xc6)](existsSync,_0x532f4c))try{const _0x3463a3=await _0x12687c['PtDuC'](getToken);if(!_0x3463a3)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x2dedc2=await _0x12687c['QDrSR'](readFile,_0x532f4c),_0x8f869d=_0x12687c[_0x216fa6(0x87)](decrypt,_0x2dedc2,_0x3463a3);_0x2f6361=_0x12687c[_0x216fa6(0x87)](join,tmpdir(),_0x216fa6(0x94)+Date[_0x216fa6(0xa8)]()+_0x216fa6(0x9c)),await writeFile(_0x2f6361,_0x8f869d),_0x55ba9c=_0x2f6361;}catch(_0x48a0bc){const _0x5234de=_0x12687c['MRaph'](_0x48a0bc,Error)?_0x48a0bc[_0x216fa6(0xa6)]:_0x12687c['QDrSR'](String,_0x48a0bc);throw new Error(_0x216fa6(0xaa)+_0x5234de);}else existsSync(_0x2d6e33)&&(_0x55ba9c=_0x2d6e33);const _0x3c15d0=_0x5610c7||randomUUID(),_0xfe610f=_0x12687c[_0x216fa6(0x75)](join,_0x12687c['PtDuC'](getRangerDir),_0x12687c['bzjyX'],_0x3c15d0),_0x237c05=_0x12687c[_0x216fa6(0x78)](Boolean,_0x3dcaea['cdpEndpoint']),_0x2cc7d6=_0x237c05?{'browserName':_0x216fa6(0xb2),'cdpEndpoint':_0x3dcaea[_0x216fa6(0xc8)]}:((()=>{const _0x5eeca0=_0x216fa6,{launchOptions:_0x1e44db,contextOptions:_0x50b1fc}=_0x12687c['CXdGa'](buildBrowserOptionsFromSettings,_0x3dcaea,{'headless':_0x5423e7?![]:_0x3dcaea[_0x5eeca0(0xce)]??!![],'storageStatePath':_0x55ba9c});if(_0x12687c['aBNYQ'](process['getuid']?.(),0x0)){const _0xe57319=['--no-sandbox',_0x12687c[_0x5eeca0(0xb5)]],_0x578b0e=_0x1e44db[_0x5eeca0(0x97)]??[],_0x15cc1c=_0xe57319['filter'](_0x474b6c=>!_0x578b0e['includes'](_0x474b6c));_0x1e44db[_0x5eeca0(0x97)]=[..._0x578b0e,..._0x15cc1c];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x1e44db,'contextOptions':{..._0x50b1fc,'permissions':[_0x5eeca0(0x7b),_0x12687c[_0x5eeca0(0xc0)]],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x237c05){const _0x5d6590=_0x2cc7d6['contextOptions'];if(_0x12687c['aBNYQ'](_0x5d6590[_0x216fa6(0x77)],undefined))delete _0x5d6590[_0x216fa6(0x77)];if(_0x5d6590[_0x216fa6(0xaf)]===undefined)delete _0x5d6590[_0x216fa6(0xaf)];}const _0x233f7b={'browser':_0x2cc7d6,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0xfe610f,'outputMode':_0x12687c['Hodjq'],'codegen':_0x12687c[_0x216fa6(0x98)]},_0x4aa309=_0x12687c['CXdGa'](join,tmpdir(),_0x12687c[_0x216fa6(0xbd)]);!_0x12687c[_0x216fa6(0xb6)](existsSync,_0x4aa309)&&await _0x12687c['CXdGa'](mkdir,_0x4aa309,{'recursive':!![]});const _0x3a6509=join(_0x4aa309,_0x2d8d5b+'-'+Date['now']()+_0x216fa6(0x95));return await writeFile(_0x3a6509,JSON['stringify'](_0x233f7b,null,0x2)),{'configPath':_0x3a6509,'tempAuthPath':_0x2f6361};}export function getNestedValue(_0x19f012,_0xc09713){const _0x3e48db=_0x31ea3a,_0x334be1={'bPzyV':function(_0x1ce470,_0x3d9e37){return _0x1ce470(_0x3d9e37);},'wgqlh':_0x3e48db(0xb4)},_0x35d21b=_0x334be1[_0x3e48db(0xb1)](parseKeyPath,_0xc09713);let _0x1c999a=_0x19f012;for(const _0x2f80ff of _0x35d21b){if(_0x1c999a===null||_0x1c999a===undefined||typeof _0x1c999a!==_0x334be1[_0x3e48db(0xd0)])return undefined;_0x1c999a=_0x1c999a[_0x2f80ff];}return _0x1c999a;}export function setNestedValue(_0x4c402b,_0x3c744e,_0xc77174){const _0x597fd4=_0x31ea3a,_0x46a89b={'HdCDJ':function(_0x3ec6c8,_0x459d0d){return _0x3ec6c8(_0x459d0d);},'wQGBJ':function(_0x144986,_0x415751){return _0x144986<_0x415751;},'ypugi':function(_0x3607dc,_0x48bfac){return _0x3607dc-_0x48bfac;},'waZLs':function(_0x43f8bc,_0x2e0c93){return _0x43f8bc!==_0x2e0c93;},'dgQGH':'object'},_0x1cfa6e=_0x46a89b['HdCDJ'](parseKeyPath,_0x3c744e);let _0x20ddf6=_0x4c402b;for(let _0x966def=0x0;_0x46a89b[_0x597fd4(0xa5)](_0x966def,_0x46a89b[_0x597fd4(0x81)](_0x1cfa6e[_0x597fd4(0x83)],0x1));_0x966def++){const _0x21a979=_0x1cfa6e[_0x966def];(!(_0x21a979 in _0x20ddf6)||_0x46a89b[_0x597fd4(0x6c)](typeof _0x20ddf6[_0x21a979],_0x46a89b[_0x597fd4(0x8e)]))&&(_0x20ddf6[_0x21a979]={}),_0x20ddf6=_0x20ddf6[_0x21a979];}_0x20ddf6[_0x1cfa6e[_0x46a89b[_0x597fd4(0x81)](_0x1cfa6e[_0x597fd4(0x83)],0x1)]]=_0xc77174;}export function deleteNestedValue(_0x2b3a96,_0x2df5df){const _0xcaba25=_0x31ea3a,_0x4c574f={'eaTrY':function(_0x2670c1,_0x264e5e){return _0x2670c1(_0x264e5e);},'AUwYW':function(_0x4825ed,_0x1af3d6){return _0x4825ed<_0x1af3d6;},'mSknJ':function(_0x402aa1,_0x598412){return _0x402aa1===_0x598412;},'DbYUj':function(_0x4288ec,_0x1ba978){return _0x4288ec!==_0x1ba978;},'nqfFI':function(_0x28492b,_0x16ed13){return _0x28492b-_0x16ed13;}},_0x195db4=_0x4c574f[_0xcaba25(0xb9)](parseKeyPath,_0x2df5df);let _0x38d407=_0x2b3a96;for(let _0x5e76b6=0x0;_0x4c574f[_0xcaba25(0x72)](_0x5e76b6,_0x195db4[_0xcaba25(0x83)]-0x1);_0x5e76b6++){if(_0x38d407===null||_0x4c574f[_0xcaba25(0x80)](_0x38d407,undefined)||_0x4c574f[_0xcaba25(0x8b)](typeof _0x38d407,_0xcaba25(0xb4)))return![];_0x38d407=_0x38d407[_0x195db4[_0x5e76b6]];}if(_0x4c574f[_0xcaba25(0x80)](_0x38d407,null)||_0x38d407===undefined||typeof _0x38d407!=='object')return![];const _0xeb5b3b=_0x195db4[_0x4c574f['nqfFI'](_0x195db4[_0xcaba25(0x83)],0x1)];if(_0xeb5b3b in _0x38d407)return delete _0x38d407[_0xeb5b3b],!![];return![];}function _0x52fd(){const _0x3f5b83=['utf-8','mrtdX','filter','zulfX','safeMode','qQqYj','waZLs','env','loJLW','tabs','install','local','AUwYW','core','auth.json','Zowoc','KrMdm','userAgent','wDsfR','11525672ifKYgI','all','clipboard-read','configPath','path','EhWlK','stringify','mSknJ','ypugi','legacy','length','936882zeOQXN','12950931cLgYTF','entries','CXdGa','UHfAG','CKCxQ','sessions','DbYUj','CahKb','--disable-web-security','dgQGH','replace','EfCQp','1297136YXSoqo','Environment\x20variable\x20','repeat','ranger-auth-','-cli.json','push','args','fnmFI','pWzPk','extraHTTPHeaders','map','.json','vRGzK','allowInsecureLocalhost','CbGCr','headers','5ZcopAc','vFuOY','isArray','3156228ceIvDq','wQGBJ','message','6670662QQODRA','now','\x20is\x20not\x20set','Failed\x20to\x20decrypt\x20auth\x20state:\x20','includes','HFGLt','tOyLd','auth.json.enc','storageState','pdf','bPzyV','chromium','uggeN','object','IzocM','fymHM','setupHeader','locations','eaTrY','WKdMX','launchOptions','join','uzqwq','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','allow','vryRI','split','xUAdz','ranger-config','TnNtS','parse','QDrSR','ENOENT','cdpEndpoint','Epazg','KNdhj','boolean','Afxqy','storageStatePath','headless','8532kdQuZb','wgqlh','vision','1059IwJCqS','location','catch'];_0x52fd=function(){return _0x3f5b83;};return _0x52fd();}function parseKeyPath(_0x1969d6){const _0x2ce72d=_0x31ea3a,_0x5b2bfd={'vRGzK':'header','LQoLD':'setupHeaders'},_0x4a8908=_0x1969d6[_0x2ce72d(0xc1)]('.');return _0x4a8908[0x0]===_0x5b2bfd[_0x2ce72d(0x9d)]&&(_0x4a8908[0x0]='headers'),_0x4a8908[0x0]===_0x2ce72d(0xb7)&&(_0x4a8908[0x0]=_0x5b2bfd['LQoLD']),_0x4a8908;}export function formatSettings(_0x5527b6,_0x4d7bb4=0x0){const _0x34dcda=_0x31ea3a,_0x40b776={'YGNeu':function(_0x26017c,_0x3618a0){return _0x26017c===_0x3618a0;},'KrMdm':function(_0x505793,_0x2116ef){return _0x505793!==_0x2116ef;}},_0x1f39d8=[],_0x10b078='\x20\x20'[_0x34dcda(0x93)](_0x4d7bb4);for(const [_0x2499e9,_0x11b759]of Object['entries'](_0x5527b6)){if(_0x40b776['YGNeu'](_0x11b759,undefined))continue;if(_0x40b776['YGNeu'](typeof _0x11b759,'object')&&_0x40b776[_0x34dcda(0x76)](_0x11b759,null)){_0x1f39d8[_0x34dcda(0x96)](''+_0x10b078+_0x2499e9+':');for(const [_0x1099a5,_0x24a3f8]of Object[_0x34dcda(0x86)](_0x11b759)){_0x1f39d8['push'](_0x10b078+'\x20\x20'+_0x1099a5+':\x20'+_0x24a3f8);}}else _0x1f39d8[_0x34dcda(0x96)](''+_0x10b078+_0x2499e9+':\x20'+_0x11b759);}return _0x1f39d8[_0x34dcda(0xbc)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4bc876,_0x65181d){const _0x266c8b=_0x112a,_0x5d4ccd=_0x4bc876();while(!![]){try{const _0x527a24=-parseInt(_0x266c8b(0x8d))/0x1+-parseInt(_0x266c8b(0x91))/0x2+parseInt(_0x266c8b(0x93))/0x3+parseInt(_0x266c8b(0x92))/0x4*(parseInt(_0x266c8b(0x8f))/0x5)+-parseInt(_0x266c8b(0x94))/0x6*(parseInt(_0x266c8b(0x90))/0x7)+parseInt(_0x266c8b(0x96))/0x8*(-parseInt(_0x266c8b(0x8e))/0x9)+-parseInt(_0x266c8b(0x98))/0xa*(-parseInt(_0x266c8b(0x97))/0xb);if(_0x527a24===_0x65181d)break;else _0x5d4ccd['push'](_0x5d4ccd['shift']());}catch(_0xeb96f9){_0x5d4ccd['push'](_0x5d4ccd['shift']());}}}(_0x4301,0xde039));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';function _0x112a(_0x323ae7,_0x234bb6){_0x323ae7=_0x323ae7-0x8d;const _0x4301b0=_0x4301();let _0x112ac4=_0x4301b0[_0x323ae7];return _0x112ac4;}function _0x4301(){const _0x22da6b=['787048fhIzhh','1507yUxyaX','317430bDGUqV','1620155SRyEqK','18yQjohk','730YZVJoP','35cSfrLH','2726590nEWeEL','1800YEAxas','2682225pkHXTM','1462782nGdJiL','skills'];_0x4301=function(){return _0x22da6b;};return _0x4301();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0xd50855){const _0x283ad8=_0x112a,_0x4aab9f={'xVAyV':function(_0x5c3a6a,_0x5f4094,_0x254e8b,_0x41d524,_0x27b94e){return _0x5c3a6a(_0x5f4094,_0x254e8b,_0x41d524,_0x27b94e);}},_0x315633=_0x4aab9f['xVAyV'](join,__dirname,'..','..',_0x283ad8(0x95)),_0x36067e=join(_0x315633,_0xd50855);try{return readFileSync(_0x36067e,'utf-8');}catch{return'';}}export function getRangerSkillContent(){const _0x278686={'GwJxn':'ranger/SKILL.md'};return readSkillContent(_0x278686['GwJxn']);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x171a16=_0x3a51;(function(_0x52d8bc,_0x3222f0){const _0x59240b=_0x3a51,_0x4dde26=_0x52d8bc();while(!![]){try{const _0x127a60=parseInt(_0x59240b(0x95))/0x1+-parseInt(_0x59240b(0x8c))/0x2+-parseInt(_0x59240b(0x87))/0x3+-parseInt(_0x59240b(0x8b))/0x4*(-parseInt(_0x59240b(0x86))/0x5)+parseInt(_0x59240b(0x81))/0x6*(-parseInt(_0x59240b(0x84))/0x7)+parseInt(_0x59240b(0x94))/0x8*(parseInt(_0x59240b(0x9c))/0x9)+parseInt(_0x59240b(0x80))/0xa*(parseInt(_0x59240b(0x98))/0xb);if(_0x127a60===_0x3222f0)break;else _0x4dde26['push'](_0x4dde26['shift']());}catch(_0x50821a){_0x4dde26['push'](_0x4dde26['shift']());}}}(_0x4d33,0xd4575));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';function _0x3a51(_0x1e46f4,_0x598366){_0x1e46f4=_0x1e46f4-0x7e;const _0x4d33d7=_0x4d33();let _0x3a51f2=_0x4d33d7[_0x1e46f4];return _0x3a51f2;}import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';function _0x4d33(){const _0x854ee8=['7qvTpIJ','EfNrJ','10yzMCSB','3718071nyHbPc','\x20\x20Files:\x20','log','push','1723336cKiTbn','1508932dLvAYr','claude','skills','join','isDirectory','warn','endsWith','cAkMP','352TTenkq','60711nWyNiH','xtgfo','haJPR','99wDgpCy','\x20\x20Installed\x20skill:\x20','match','catch','64809LFAwvd','ranger','project','filter','xvNyZ','xOLOt','2657440lCvjCq','4604082xzaIaF','bug-bash','SKILL.md'];_0x4d33=function(){return _0x854ee8;};return _0x4d33();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x171a16(0x9d)];export const DEPRECATED_SKILLS=['e2e-test-recommender',_0x171a16(0x82),'feature-tracker'];export async function installSkill(_0x2b338c,_0x216ec7={}){const _0x50d597=_0x171a16,_0x29a4f1={'ZHlvG':_0x50d597(0x9e),'xtgfo':function(_0xcd4ab1,_0x4fb699,_0xf0a0ef){return _0xcd4ab1(_0x4fb699,_0xf0a0ef);},'ATNuF':function(_0x23a990,_0x5c4d69){return _0x23a990&&_0x5c4d69;},'TqqiM':function(_0xd65a13,_0x155d82){return _0xd65a13===_0x155d82;},'cAkMP':'opencode','CmiQA':function(_0x4949ee,_0x5af1c1,_0x4f7029){return _0x4949ee(_0x5af1c1,_0x4f7029);},'haJPR':function(_0x433e75,_0x1d11b2,_0x8f4598){return _0x433e75(_0x1d11b2,_0x8f4598);},'LgEbp':'utf-8','eImaD':function(_0xaae7cc,_0x392e9b,_0x1b6fc3){return _0xaae7cc(_0x392e9b,_0x1b6fc3);},'EfNrJ':function(_0x2ca7ea,_0x2e881a){return _0x2ca7ea>_0x2e881a;}},{level:level=_0x29a4f1['ZHlvG'],cliVersion:_0x209799,platform:platform=_0x50d597(0x8d)}=_0x216ec7,_0x10869a=getSourceSkillsDir(),_0x436973=_0x29a4f1[_0x50d597(0x96)](join,_0x10869a,_0x2b338c),_0x25b60d=join(_0x10869a,_0x2b338c+'.md'),_0x16bd11=existsSync(_0x436973)&&statSync(_0x436973)[_0x50d597(0x90)]()&&existsSync(join(_0x436973,_0x50d597(0x83))),_0x25de4e=existsSync(_0x25b60d);if(_0x29a4f1['ATNuF'](!_0x16bd11,!_0x25de4e))return console['warn']('\x20\x20Skill\x20not\x20found:\x20'+_0x2b338c),![];const _0x3f783b=_0x29a4f1['TqqiM'](platform,_0x29a4f1[_0x50d597(0x93)])?getOpencodeSkillsDir(level):getSkillsDir(level),_0x36f345=join(_0x3f783b,_0x2b338c);await _0x29a4f1['xtgfo'](mkdir,_0x36f345,{'recursive':!![]});let _0x5150cd,_0x1b8f8c=[];if(_0x16bd11){const _0xff9a4a=await readdir(_0x436973),_0x594a10=_0xff9a4a[_0x50d597(0x9f)](_0x4759fe=>_0x4759fe[_0x50d597(0x92)]('.md'));for(const _0x46cbe7 of _0x594a10){const _0x32a22d=join(_0x436973,_0x46cbe7),_0x13fbbb=join(_0x36f345,_0x46cbe7);await _0x29a4f1['CmiQA'](copyFile,_0x32a22d,_0x13fbbb),_0x1b8f8c['push'](_0x46cbe7);}_0x5150cd=await _0x29a4f1[_0x50d597(0x96)](readFile,_0x29a4f1[_0x50d597(0x97)](join,_0x436973,_0x50d597(0x83)),_0x29a4f1['LgEbp']);}else{_0x5150cd=await _0x29a4f1['eImaD'](readFile,_0x25b60d,'utf-8');const _0x41df88=join(_0x36f345,'SKILL.md');await writeFile(_0x41df88,_0x5150cd,_0x29a4f1['LgEbp']),_0x1b8f8c[_0x50d597(0x8a)](_0x50d597(0x83));}const {name:_0xd29c71}=parseFrontmatter(_0x5150cd);return console[_0x50d597(0x89)](_0x50d597(0x99)+_0xd29c71),console[_0x50d597(0x89)]('\x20\x20Location:\x20'+_0x36f345),_0x29a4f1[_0x50d597(0x85)](_0x1b8f8c['length'],0x1)&&console[_0x50d597(0x89)](_0x50d597(0x88)+_0x1b8f8c[_0x50d597(0x8f)](',\x20')),logLocalAgentInstallation(_0x2b338c,{'skillDisplayName':_0xd29c71,'installLevel':level},_0x209799)[_0x50d597(0x9b)](()=>{}),!![];}function getSourceSkillsDir(){const _0x5dcf8e=_0x171a16,_0xcbaa70={'xOLOt':_0x5dcf8e(0x8e)},_0x5913f4=[join(__dirname,'..','..',_0xcbaa70[_0x5dcf8e(0x7f)]),join(__dirname,'..','..','..','skills')];for(const _0x5400f4 of _0x5913f4){if(existsSync(_0x5400f4))return _0x5400f4;}return _0x5913f4[0x0];}function parseFrontmatter(_0x3059dc){const _0x29851c=_0x171a16,_0x5dee37={'xvNyZ':'Invalid\x20skill\x20frontmatter'},_0x6c8af7=_0x3059dc[_0x29851c(0x9a)](/^---\n([\s\S]+?)\n---/);if(!_0x6c8af7)throw new Error(_0x5dee37[_0x29851c(0x7e)]);const _0x2acb5e=_0x6c8af7[0x1],_0x384b21=_0x2acb5e['match'](/name:\s*(.+)/),_0x2342c3=_0x2acb5e[_0x29851c(0x9a)](/description:\s*"?(.+?)"?\n/);return{'name':_0x384b21?.[0x1]['trim']()||'','description':_0x2342c3?.[0x1]['trim']()||''};}export async function removeSkill(_0x2c7d2c,_0x146ada){const _0x21d39b=_0x171a16,_0x3f014f={'CQRsm':function(_0x32db8b,_0xa6b10e){return _0x32db8b(_0xa6b10e);},'BdWeD':function(_0x5165a4,_0x2d9e43,_0x294756){return _0x5165a4(_0x2d9e43,_0x294756);}},_0x5f0bd1=_0x3f014f['CQRsm'](getSkillsDir,_0x146ada),_0x606b0e=_0x3f014f['BdWeD'](join,_0x5f0bd1,_0x2c7d2c);if(!existsSync(_0x606b0e))return![];try{return await _0x3f014f['BdWeD'](rm,_0x606b0e,{'recursive':!![]}),console['log']('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x2c7d2c),!![];}catch{return console[_0x21d39b(0x91)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x2c7d2c),![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3c98a4=_0x274a;(function(_0x413fc2,_0x4c655b){const _0x41c341=_0x274a,_0x1f85b5=_0x413fc2();while(!![]){try{const _0x3a552a=-parseInt(_0x41c341(0x160))/0x1*(-parseInt(_0x41c341(0x1a5))/0x2)+parseInt(_0x41c341(0x17b))/0x3*(parseInt(_0x41c341(0x191))/0x4)+-parseInt(_0x41c341(0x196))/0x5+-parseInt(_0x41c341(0x18f))/0x6*(parseInt(_0x41c341(0x178))/0x7)+parseInt(_0x41c341(0x182))/0x8+parseInt(_0x41c341(0x16c))/0x9+-parseInt(_0x41c341(0x188))/0xa;if(_0x3a552a===_0x4c655b)break;else _0x1f85b5['push'](_0x1f85b5['shift']());}catch(_0x4904bf){_0x1f85b5['push'](_0x1f85b5['shift']());}}}(_0x3ef0,0xe3a97));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x49ad0d,_0x5bd4f5){const _0x1f8f87=_0x274a,_0x2a5654={'ZMZhe':function(_0x4aa939,_0x1f4e17){return _0x4aa939-_0x1f4e17;}};if(_0x5bd4f5>=_0x49ad0d[_0x1f8f87(0x18a)])return[0x0,0x0];const _0x578f88=_0x49ad0d[_0x5bd4f5];let _0x44304a=0x1,_0x35045e=0x80;while(_0x44304a<=0x8&&!(_0x578f88&_0x35045e)){_0x44304a++,_0x35045e>>=0x1;}if(_0x5bd4f5+_0x44304a>_0x49ad0d['length'])return[0x0,0x0];let _0x12cd55=_0x578f88&_0x2a5654['ZMZhe'](_0x35045e,0x1);for(let _0x11cb37=0x1;_0x11cb37<_0x44304a;_0x11cb37++){_0x12cd55=_0x12cd55*0x100+_0x49ad0d[_0x5bd4f5+_0x11cb37];}return[_0x12cd55,_0x44304a];}function readId(_0x360e7c,_0x1c392b){const _0x1f11fe=_0x274a,_0x43be53={'deKYi':function(_0x4124ad,_0x565ba4){return _0x4124ad>=_0x565ba4;},'PKkzl':function(_0x2a56d8,_0x438ac0){return _0x2a56d8>_0x438ac0;},'WnYJi':function(_0x4915f8,_0x49cfea){return _0x4915f8+_0x49cfea;},'Aiftk':function(_0x40d185,_0x1c8dd9){return _0x40d185<_0x1c8dd9;},'IaUvV':function(_0x2cc756,_0x426b28){return _0x2cc756*_0x426b28;}};if(_0x43be53[_0x1f11fe(0x16f)](_0x1c392b,_0x360e7c[_0x1f11fe(0x18a)]))return[0x0,0x0];const _0x3c8e4b=_0x360e7c[_0x1c392b];let _0x2ef330;if(_0x3c8e4b>=0x80)_0x2ef330=0x1;else{if(_0x3c8e4b>=0x40)_0x2ef330=0x2;else{if(_0x3c8e4b>=0x20)_0x2ef330=0x3;else{if(_0x3c8e4b>=0x10)_0x2ef330=0x4;else return[_0x3c8e4b,0x1];}}}if(_0x43be53['PKkzl'](_0x43be53['WnYJi'](_0x1c392b,_0x2ef330),_0x360e7c[_0x1f11fe(0x18a)]))return[0x0,0x0];let _0x180599=0x0;for(let _0x13a2d2=0x0;_0x43be53[_0x1f11fe(0x16d)](_0x13a2d2,_0x2ef330);_0x13a2d2++){_0x180599=_0x43be53[_0x1f11fe(0x173)](_0x180599,0x100)+_0x360e7c[_0x1c392b+_0x13a2d2];}return[_0x180599,_0x2ef330];}function readUint(_0x3ad45a,_0x1d8f9b,_0x217dab){const _0x590376={'SdiEj':function(_0x3397b7,_0x1533a5){return _0x3397b7*_0x1533a5;},'NOKbJ':function(_0x2dc131,_0x51bd4d){return _0x2dc131+_0x51bd4d;}};let _0x25250b=0x0;for(let _0x112cc2=0x0;_0x112cc2<_0x217dab;_0x112cc2++){_0x25250b=_0x590376['SdiEj'](_0x25250b,0x100)+_0x3ad45a[_0x590376['NOKbJ'](_0x1d8f9b,_0x112cc2)];}return _0x25250b;}function _0x274a(_0x22394b,_0x3d92bf){_0x22394b=_0x22394b-0x160;const _0x3ef006=_0x3ef0();let _0x274a4a=_0x3ef006[_0x22394b];return _0x274a4a;}function isUnknownSize(_0x2f826c,_0x13f375){const _0x4f180c=_0x274a;return _0x2f826c===Math[_0x4f180c(0x17c)](0x2,0x7*_0x13f375)-0x1;}function writeVint(_0x372acf,_0x27e01c){const _0x28c17e=_0x274a,_0x26443e={'qdFbn':function(_0x4b79a9,_0x42393a){return _0x4b79a9||_0x42393a;},'iPKHH':function(_0xe5118e,_0x5e2a1f){return _0xe5118e*_0x5e2a1f;},'uOrtP':function(_0xe0a9c4,_0x582e8a){return _0xe0a9c4-_0x582e8a;},'EVIEQ':function(_0x144256,_0x941398){return _0x144256>=_0x941398;}};let _0x297c9e=_0x26443e['qdFbn'](_0x27e01c,0x1);while(Math['pow'](0x2,_0x26443e['iPKHH'](0x7,_0x297c9e))-0x2<_0x372acf)_0x297c9e++;const _0x2878de=Buffer['alloc'](_0x297c9e);for(let _0x4e74a1=_0x26443e['uOrtP'](_0x297c9e,0x1);_0x26443e[_0x28c17e(0x181)](_0x4e74a1,0x0);_0x4e74a1--){_0x2878de[_0x4e74a1]=_0x372acf&0xff,_0x372acf=Math['floor'](_0x372acf/0x100);}return _0x2878de[0x0]|=0x1<<0x8-_0x297c9e,_0x2878de;}function writeUint(_0x3b1e88,_0x34691d){const _0x524e0a=_0x274a,_0x39cc58={'DXYDG':function(_0x154a82,_0x5bfacd){return _0x154a82/_0x5bfacd;}},_0x90424f=Buffer[_0x524e0a(0x17f)](_0x34691d);for(let _0x3ce12e=_0x34691d-0x1;_0x3ce12e>=0x0;_0x3ce12e--){_0x90424f[_0x3ce12e]=_0x3b1e88&0xff,_0x3b1e88=Math[_0x524e0a(0x17a)](_0x39cc58['DXYDG'](_0x3b1e88,0x100));}return _0x90424f;}function _0x3ef0(){const _0x550917=['juPgH','87734FwOfSM','LtkLF','pjGhB','2BKKeWT','spTTX','pdjsW','clusters','hXRrX','bodyBeforeTimestamp','maxTimestampTicks','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','timestamp','Sgang','ElhRf','ULTTu','12911274WVKhtS','Aiftk','oDWQr','deKYi','eUKyL','push','concat','IaUvV','HXmWG','oBIam','min','endsWith','2179310hMIQYy','OSdjB','floor','16959vBcAOS','pow','XubDB','slice','alloc','argv','EVIEQ','12105544zrYVRZ','stitchWebmFiles.ts','ICCMs','JJZPu','KQlHS','from','5595220oyNtzn','EcqgP','length','indexOf','KtjEp','SWclZ','FcCyJ','6nSsHPK','QlVAq','8mJFWof','bjvZI','yZoXK','log','VHlAG','6217320GGzTkU','header','XgozJ','CVsdS','xicTm','hCCUQ','readInt16BE','DbHir','has','fYdDy','uUrkt','Stitched\x20','eGTuG','MGUBS'];_0x3ef0=function(){return _0x550917;};return _0x3ef0();}function writeUnknownSizeVint(_0x5bd77c){const _0x27c42d=_0x274a,_0x59ec8f={'xicTm':function(_0x394419,_0x2723a3){return _0x394419>>_0x2723a3;},'VHlAG':function(_0x488d6d,_0x45eed6){return _0x488d6d-_0x45eed6;}},_0x13c4ae=Buffer['alloc'](_0x5bd77c,0xff);return _0x13c4ae[0x0]=_0x59ec8f[_0x27c42d(0x19a)](0xff,_0x59ec8f[_0x27c42d(0x195)](_0x5bd77c,0x1)),_0x13c4ae;}function uintSize(_0x306752){const _0x156bab=_0x274a,_0x13e9a6={'KQlHS':function(_0x3e0496,_0x382ac6){return _0x3e0496>_0x382ac6;}};if(_0x306752===0x0)return 0x1;let _0x2c9203=0x0,_0x56c5b8=_0x306752;while(_0x13e9a6[_0x156bab(0x186)](_0x56c5b8,0x0)){_0x2c9203++,_0x56c5b8=Math['floor'](_0x56c5b8/0x100);}return _0x2c9203;}function findTimestampScale(_0x35d8e5,_0x2f6af3){const _0x2a8fdd=_0x274a,_0x4174c4={'OoVyA':function(_0x1ba65c,_0x5d1081){return _0x1ba65c<_0x5d1081;},'MGUBS':function(_0x523b47,_0x41a563){return _0x523b47+_0x41a563;},'oBIam':function(_0x2b2e18,_0x363d6c,_0x26cc02){return _0x2b2e18(_0x363d6c,_0x26cc02);},'rZvKF':function(_0x47c2bb,_0x519bb6){return _0x47c2bb+_0x519bb6;},'EcqgP':function(_0x444614,_0x528061){return _0x444614+_0x528061;},'NMKzY':function(_0x30da67,_0x179cbf){return _0x30da67+_0x179cbf;},'oDWQr':function(_0xa6fa8f,_0x373750){return _0xa6fa8f+_0x373750;}};let _0x17f3af=_0x2f6af3;const _0x45638c=Math[_0x2a8fdd(0x176)](_0x35d8e5['length'],_0x2f6af3+0x2710);while(_0x4174c4['OoVyA'](_0x17f3af,_0x45638c)){const [_0x277ad0,_0xe3cf93]=readId(_0x35d8e5,_0x17f3af),[_0xd4266c,_0x40da04]=readVint(_0x35d8e5,_0x4174c4['MGUBS'](_0x17f3af,_0xe3cf93));if(_0x277ad0===ID_INFO){let _0x579f55=_0x4174c4[_0x2a8fdd(0x1a3)](_0x17f3af+_0xe3cf93,_0x40da04);const _0x42eccf=_0x579f55+_0xd4266c;while(_0x579f55<_0x42eccf){const [_0x1d2ee7,_0x5d6238]=_0x4174c4[_0x2a8fdd(0x175)](readId,_0x35d8e5,_0x579f55),[_0x58b6a7,_0xdfdab2]=readVint(_0x35d8e5,_0x4174c4['MGUBS'](_0x579f55,_0x5d6238));if(_0x1d2ee7===ID_TIMESTAMP_SCALE)return readUint(_0x35d8e5,_0x4174c4['rZvKF'](_0x4174c4[_0x2a8fdd(0x1a3)](_0x579f55,_0x5d6238),_0xdfdab2),_0x58b6a7);_0x579f55+=_0x4174c4[_0x2a8fdd(0x189)](_0x5d6238,_0xdfdab2)+_0x58b6a7;}break;}if(_0x277ad0===ID_CLUSTER)break;if(isUnknownSize(_0xd4266c,_0x40da04))break;_0x17f3af+=_0x4174c4['NMKzY'](_0x4174c4[_0x2a8fdd(0x16e)](_0xe3cf93,_0x40da04),_0xd4266c);}return 0xf4240;}function findFirstClusterOffset(_0x5ef003,_0x2ca3ba){const _0xaedb32=_0x274a,_0x3e15ac={'DbHir':function(_0x59480c,_0x502949){return _0x59480c<_0x502949;},'pdjsW':function(_0x1a66c0,_0x24e388,_0x44be29){return _0x1a66c0(_0x24e388,_0x44be29);},'OSdjB':function(_0x2ba176,_0x1b898d){return _0x2ba176===_0x1b898d;},'sVJCH':function(_0x305655,_0x2908b1){return _0x305655+_0x2908b1;},'spTTX':function(_0x39b3ac,_0x2477c2){return _0x39b3ac+_0x2477c2;}};let _0x396c1e=_0x2ca3ba;while(_0x3e15ac[_0xaedb32(0x19d)](_0x396c1e,_0x5ef003['length'])){const [_0x43ba5f,_0x1e806e]=_0x3e15ac[_0xaedb32(0x162)](readId,_0x5ef003,_0x396c1e);if(_0x3e15ac[_0xaedb32(0x179)](_0x43ba5f,ID_CLUSTER))return _0x396c1e;const [_0x52509e,_0x5eed1b]=_0x3e15ac['pdjsW'](readVint,_0x5ef003,_0x396c1e+_0x1e806e);if(isUnknownSize(_0x52509e,_0x5eed1b))return _0x396c1e;_0x396c1e+=_0x3e15ac['sVJCH'](_0x3e15ac[_0xaedb32(0x161)](_0x1e806e,_0x5eed1b),_0x52509e);}return _0x5ef003['length'];}function findClusterEnd(_0x416b0c,_0x45c468,_0x11af04,_0x56861c){const _0x5099a3=_0x274a,_0xb1d724={'CJVHo':function(_0x3333c3,_0x576ec5){return _0x3333c3+_0x576ec5;},'hXRrX':function(_0x5e5cdb,_0x295a77){return _0x5e5cdb-_0x295a77;},'eGTuG':function(_0x648ecc,_0x234287,_0x37ef62){return _0x648ecc(_0x234287,_0x37ef62);},'tOrYm':function(_0x1d2f75,_0x5ec983){return _0x1d2f75+_0x5ec983;}};if(!isUnknownSize(_0x11af04,_0x56861c))return _0xb1d724['CJVHo'](_0x45c468,_0x11af04);const _0x4f7404=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x1d6edd=_0x45c468;while(_0x1d6edd<_0xb1d724[_0x5099a3(0x164)](_0x416b0c['length'],0x4)){const [_0x4bd860,_0x866943]=_0xb1d724[_0x5099a3(0x1a2)](readId,_0x416b0c,_0x1d6edd);if(_0x4f7404[_0x5099a3(0x19e)](_0x4bd860))return _0x1d6edd;const [_0x17bd8b,_0x43a102]=readVint(_0x416b0c,_0x1d6edd+_0x866943);if(isUnknownSize(_0x17bd8b,_0x43a102))return _0x416b0c[_0x5099a3(0x18a)];_0x1d6edd+=_0xb1d724['tOrYm'](_0xb1d724['tOrYm'](_0x866943,_0x43a102),_0x17bd8b);}return _0x416b0c[_0x5099a3(0x18a)];}function extractClusters(_0x1cbd7d,_0x4c3333){const _0x446a18=_0x274a,_0x2a69c9={'fYdDy':function(_0x1ea6ea,_0x2d771a){return _0x1ea6ea<_0x2d771a;},'uUrkt':function(_0x41ec8c,_0x3ec68b){return _0x41ec8c===_0x3ec68b;},'IwVag':function(_0x2140e3,_0x35dda4){return _0x2140e3!==_0x35dda4;},'RxmXi':function(_0x481261,_0xaa3481){return _0x481261+_0xaa3481;},'MmGDy':function(_0x288d96,_0x27fd0b){return _0x288d96+_0x27fd0b;},'QlVAq':function(_0x5d1035,_0x20b600,_0x3b7451){return _0x5d1035(_0x20b600,_0x3b7451);},'eqcvE':function(_0x13d6db,_0xe84b98){return _0x13d6db+_0xe84b98;},'Sgang':function(_0x1a4aa8,_0x1eb00b){return _0x1a4aa8+_0x1eb00b;},'GUiFi':function(_0x3d7cf2,_0x3123d3){return _0x3d7cf2+_0x3123d3;},'ICCMs':function(_0x3224c7,_0x190a86,_0x5a1c08){return _0x3224c7(_0x190a86,_0x5a1c08);},'zGeUJ':function(_0xff7a8e,_0x180b49){return _0xff7a8e>=_0x180b49;},'HennA':function(_0x1f6fd7,_0x189017,_0x131af3){return _0x1f6fd7(_0x189017,_0x131af3);},'drZrV':function(_0x399a63,_0xf2cb0e){return _0x399a63+_0xf2cb0e;}},_0x473c09=[],_0x317967=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x479d19=0x0;while(_0x2a69c9[_0x446a18(0x19f)](_0x479d19,_0x1cbd7d['length'])){const _0xd17b2b=_0x1cbd7d[_0x446a18(0x18b)](_0x317967,_0x479d19);if(_0x2a69c9['uUrkt'](_0xd17b2b,-0x1))break;const [_0xa80822,_0x397a0f]=readId(_0x1cbd7d,_0xd17b2b);if(_0x2a69c9['IwVag'](_0xa80822,ID_CLUSTER)){_0x479d19=_0x2a69c9['RxmXi'](_0xd17b2b,0x1);continue;}const [_0x1c10c1,_0x4e4f7d]=readVint(_0x1cbd7d,_0xd17b2b+_0x397a0f),_0x5d50c5=_0x2a69c9['MmGDy'](_0xd17b2b,_0x397a0f)+_0x4e4f7d,_0x58adc8=findClusterEnd(_0x1cbd7d,_0x5d50c5,_0x1c10c1,_0x4e4f7d);let _0x555136=_0x5d50c5,_0x5e09d8=0x0,_0x4f5bb8=0x2,_0x4e9899=![],_0x46377a=Buffer['alloc'](0x0),_0x1759bc=Buffer['alloc'](0x0);while(_0x555136<_0x58adc8){const [_0x1287aa,_0x1fa0dc]=readId(_0x1cbd7d,_0x555136),[_0x4d3851,_0x58aece]=_0x2a69c9[_0x446a18(0x190)](readVint,_0x1cbd7d,_0x2a69c9['eqcvE'](_0x555136,_0x1fa0dc));if(_0x1287aa===ID_TIMESTAMP){_0x5e09d8=readUint(_0x1cbd7d,_0x2a69c9['eqcvE'](_0x555136+_0x1fa0dc,_0x58aece),_0x4d3851),_0x4f5bb8=_0x4d3851,_0x4e9899=!![],_0x46377a=_0x1cbd7d['slice'](_0x5d50c5,_0x555136);const _0x57f72a=_0x2a69c9[_0x446a18(0x169)](_0x2a69c9[_0x446a18(0x169)](_0x555136,_0x1fa0dc)+_0x58aece,_0x4d3851);_0x1759bc=_0x1cbd7d['slice'](_0x57f72a,_0x58adc8);break;}if(_0x2a69c9[_0x446a18(0x1a0)](_0x1287aa,ID_CLUSTER))break;if(_0x2a69c9[_0x446a18(0x190)](isUnknownSize,_0x4d3851,_0x58aece))break;_0x555136+=_0x2a69c9['RxmXi'](_0x2a69c9['GUiFi'](_0x1fa0dc,_0x58aece),_0x4d3851);}!_0x4e9899&&(_0x1759bc=_0x1cbd7d['slice'](_0x5d50c5,_0x58adc8));let _0x8a9ab0=_0x5e09d8;_0x555136=_0x5d50c5;while(_0x555136<_0x58adc8){const [_0x56b7c8,_0x581060]=_0x2a69c9[_0x446a18(0x190)](readId,_0x1cbd7d,_0x555136),[_0x52e156,_0x240013]=_0x2a69c9['ICCMs'](readVint,_0x1cbd7d,_0x555136+_0x581060);if(_0x2a69c9['uUrkt'](_0x56b7c8,ID_SIMPLE_BLOCK)&&_0x2a69c9['zGeUJ'](_0x52e156,0x4)){const _0x403ff0=_0x2a69c9[_0x446a18(0x169)](_0x555136+_0x581060,_0x240013),[,_0x30eb35]=_0x2a69c9[_0x446a18(0x184)](readVint,_0x1cbd7d,_0x403ff0),_0xd9e552=_0x1cbd7d[_0x446a18(0x19c)](_0x403ff0+_0x30eb35),_0x34c3cf=_0x2a69c9['eqcvE'](_0x5e09d8,_0xd9e552);if(_0x34c3cf>_0x8a9ab0)_0x8a9ab0=_0x34c3cf;}if(_0x56b7c8===ID_CLUSTER)break;if(_0x2a69c9['HennA'](isUnknownSize,_0x52e156,_0x240013))break;_0x555136+=_0x2a69c9['drZrV'](_0x581060+_0x240013,_0x52e156);}_0x473c09['push']({'timestamp':_0x5e09d8,'maxTicks':_0x8a9ab0,'bodyBeforeTimestamp':_0x46377a,'bodyAfterTimestamp':_0x1759bc,'timestampElementSize':_0x4f5bb8}),_0x479d19=_0x58adc8;}return _0x473c09;}function parseWebm(_0x248995){const _0x1de503=_0x274a,_0x149dc6={'ULTTu':function(_0x4e82a3,_0xbf688f,_0x205d17){return _0x4e82a3(_0xbf688f,_0x205d17);},'LtkLF':function(_0x2f3839,_0x3468bb,_0xf83e9b){return _0x2f3839(_0x3468bb,_0xf83e9b);},'CVsdS':function(_0x32d70a,_0x8e1d92){return _0x32d70a+_0x8e1d92;},'ElhRf':function(_0x3532d7,_0x46fb92){return _0x3532d7+_0x46fb92;},'eUKyL':function(_0x3631fd,_0x7e84b5,_0x1df696){return _0x3631fd(_0x7e84b5,_0x1df696);}};let _0x51f434=0x0;const [,_0x201c3b]=_0x149dc6[_0x1de503(0x16b)](readId,_0x248995,_0x51f434),[_0x47bbbe,_0x50bdf6]=_0x149dc6[_0x1de503(0x1a6)](readVint,_0x248995,_0x51f434+_0x201c3b);_0x51f434+=_0x149dc6[_0x1de503(0x199)](_0x149dc6[_0x1de503(0x16a)](_0x201c3b,_0x50bdf6),_0x47bbbe);const [_0x40af46,_0x2f1631]=readId(_0x248995,_0x51f434);if(_0x40af46!==ID_SEGMENT)return null;const [,_0x209224]=_0x149dc6['ULTTu'](readVint,_0x248995,_0x51f434+_0x2f1631),_0x223828=_0x51f434+_0x2f1631+_0x209224,_0xdc5c14=_0x149dc6[_0x1de503(0x170)](findTimestampScale,_0x248995,_0x223828),_0x85b4e6=findFirstClusterOffset(_0x248995,_0x223828),_0x2d92c4=_0x248995[_0x1de503(0x17e)](0x0,_0x85b4e6),_0x28c2e7=_0x149dc6[_0x1de503(0x170)](extractClusters,_0x248995,_0xdc5c14);let _0x2369df=0x0;for(const _0x39543d of _0x28c2e7){if(_0x39543d['maxTicks']>_0x2369df)_0x2369df=_0x39543d['maxTicks'];}return{'header':_0x2d92c4,'clusters':_0x28c2e7,'timestampScale':_0xdc5c14,'maxTimestampTicks':_0x2369df};}function buildCluster(_0x2ef879,_0x308312,_0x3c7447){const _0x122862=_0x274a,_0x5a353b={'LrHrV':function(_0x1e7567,_0x403ddf){return _0x1e7567(_0x403ddf);}},_0xaf86a0=Buffer[_0x122862(0x187)]([0x1f,0x43,0xb6,0x75]),_0x2267b5=Math['max'](0x4,_0x5a353b['LrHrV'](uintSize,_0x2ef879)),_0x2b3438=Buffer['concat']([Buffer[_0x122862(0x187)]([ID_TIMESTAMP]),writeVint(_0x2267b5),writeUint(_0x2ef879,_0x2267b5)]),_0x153f70=Buffer[_0x122862(0x172)]([_0x308312,_0x2b3438,_0x3c7447]),_0x4b3893=_0x5a353b['LrHrV'](writeVint,_0x153f70[_0x122862(0x18a)]);return Buffer[_0x122862(0x172)]([_0xaf86a0,_0x4b3893,_0x153f70]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0xbff178){const _0x77faab=_0x274a,_0x14741e={'JJZPu':function(_0x1071be,_0x4032a6,_0x1866cb){return _0x1071be(_0x4032a6,_0x1866cb);},'hCCUQ':function(_0x54947a,_0x4f620a){return _0x54947a+_0x4f620a;},'juPgH':function(_0x43a3bd,_0x40734e){return _0x43a3bd(_0x40734e);},'AdWFv':function(_0x57cc43,_0x959453){return _0x57cc43+_0x959453;},'HXmWG':function(_0x51df9c,_0x252198){return _0x51df9c<_0x252198;},'FcCyJ':function(_0x4721a8,_0x29ab82,_0x147d8a){return _0x4721a8(_0x29ab82,_0x147d8a);},'pjGhB':function(_0x1c57af,_0x20851){return _0x1c57af+_0x20851;},'bjvZI':function(_0x168f09,_0x4296da){return _0x168f09===_0x4296da;},'KtjEp':function(_0x1a45c3,_0xc83c4b){return _0x1a45c3+_0xc83c4b;},'yZoXK':function(_0x2683c5,_0x512c30,_0x50d01){return _0x2683c5(_0x512c30,_0x50d01);},'XgozJ':function(_0x2d49a0,_0xf2f501,_0x3ba15a){return _0x2d49a0(_0xf2f501,_0x3ba15a);},'XPIrx':function(_0x400e59,_0x46cc23){return _0x400e59+_0x46cc23;},'ifCDK':function(_0x1c9516,_0x2b85bd){return _0x1c9516+_0x2b85bd;},'StFvv':function(_0x49411a,_0x48af1b){return _0x49411a+_0x48af1b;}},_0x537986=Buffer['from'](_0xbff178);let _0x16730d=0x0;const [,_0x2c3f35]=readId(_0x537986,_0x16730d),[_0xaef0cc,_0x3862f7]=readVint(_0x537986,_0x16730d+_0x2c3f35),_0x482d29=_0x16730d+_0x2c3f35+_0x3862f7+_0xaef0cc,[,_0x1bf6d6]=readId(_0x537986,_0x482d29),[,_0x2a4658]=_0x14741e[_0x77faab(0x185)](readVint,_0x537986,_0x14741e['hCCUQ'](_0x482d29,_0x1bf6d6)),_0x187798=_0x14741e['hCCUQ'](_0x14741e[_0x77faab(0x19b)](_0x482d29,_0x1bf6d6),_0x2a4658),_0x2167f4=_0x14741e[_0x77faab(0x1a4)](writeUnknownSizeVint,_0x2a4658);_0x2167f4['copy'](_0x537986,_0x14741e['AdWFv'](_0x482d29,_0x1bf6d6));let _0x34b648=_0x187798;const _0x4d0d71=Math[_0x77faab(0x176)](_0x537986[_0x77faab(0x18a)],_0x187798+0x2710);while(_0x14741e[_0x77faab(0x174)](_0x34b648,_0x4d0d71)){const [_0x5bb148,_0x1fdf35]=readId(_0x537986,_0x34b648),[_0x5e37d4,_0x15370c]=_0x14741e[_0x77faab(0x18e)](readVint,_0x537986,_0x14741e[_0x77faab(0x1a7)](_0x34b648,_0x1fdf35));if(_0x14741e[_0x77faab(0x192)](_0x5bb148,ID_CLUSTER))break;if(isUnknownSize(_0x5e37d4,_0x15370c))break;if(_0x14741e['bjvZI'](_0x5bb148,ID_INFO)){const _0x11b42d=_0x34b648+_0x1fdf35+_0x15370c,_0x3d2ccc=_0x14741e[_0x77faab(0x18c)](_0x11b42d,_0x5e37d4),_0x37c414=[];let _0x1ff537=_0x11b42d;while(_0x14741e[_0x77faab(0x174)](_0x1ff537,_0x3d2ccc)){const [_0x4c07ba,_0x59d064]=_0x14741e[_0x77faab(0x193)](readId,_0x537986,_0x1ff537),[_0x35311f,_0x4aa136]=_0x14741e[_0x77faab(0x198)](readVint,_0x537986,_0x14741e['XPIrx'](_0x1ff537,_0x59d064)),_0x384995=_0x14741e['ifCDK'](_0x14741e['KtjEp'](_0x59d064,_0x4aa136),_0x35311f);_0x4c07ba!==ID_DURATION&&_0x37c414['push'](_0x537986[_0x77faab(0x17e)](_0x1ff537,_0x1ff537+_0x384995)),_0x1ff537+=_0x384995;}const _0x27e9f0=Buffer[_0x77faab(0x172)](_0x37c414),_0x35f095=Buffer[_0x77faab(0x172)]([_0x537986[_0x77faab(0x17e)](_0x34b648,_0x14741e['StFvv'](_0x34b648,_0x1fdf35)),writeVint(_0x27e9f0[_0x77faab(0x18a)],_0x15370c)]);return Buffer[_0x77faab(0x172)]([_0x537986[_0x77faab(0x17e)](0x0,_0x34b648),_0x35f095,_0x27e9f0,_0x537986['slice'](_0x3d2ccc)]);}_0x34b648+=_0x1fdf35+_0x15370c+_0x5e37d4;}return _0x537986;}export function stitchWebmFiles(_0x1ada94,_0x3f6864){const _0x3b0209=_0x274a,_0x538f67={'XaLUf':function(_0x280240,_0x2f41a2){return _0x280240(_0x2f41a2);},'XubDB':function(_0x5e224e,_0x453ed2){return _0x5e224e(_0x453ed2);},'SWclZ':function(_0x5fc876,_0x3e3a4b){return _0x5fc876+_0x3e3a4b;}};if(_0x1ada94[_0x3b0209(0x18a)]<=0x1)return![];const _0x54fcad=[];for(const _0x2bd1d1 of _0x1ada94){const _0x3db360=_0x538f67['XaLUf'](readFileSync,_0x2bd1d1),_0x34525a=_0x538f67[_0x3b0209(0x17d)](parseWebm,_0x3db360);if(!_0x34525a||_0x34525a[_0x3b0209(0x163)]['length']===0x0)return![];_0x54fcad['push'](_0x34525a);}const _0x35e79e=_0x54fcad[0x0],_0x33a8ab=rebuildHeaderWithoutDuration(_0x35e79e[_0x3b0209(0x197)]),_0x16b83e=[_0x33a8ab];let _0x13e8e9=0x0;for(let _0x3a9fc5=0x0;_0x3a9fc5<_0x54fcad[_0x3b0209(0x18a)];_0x3a9fc5++){const _0x24d754=_0x54fcad[_0x3a9fc5];for(const _0x54f599 of _0x24d754['clusters']){const _0x291b79=_0x538f67[_0x3b0209(0x18d)](_0x54f599[_0x3b0209(0x168)],_0x13e8e9);_0x16b83e[_0x3b0209(0x171)](buildCluster(_0x291b79,_0x54f599[_0x3b0209(0x165)],_0x54f599['bodyAfterTimestamp']));}const _0x52c790=0x1e;_0x13e8e9+=_0x24d754[_0x3b0209(0x166)]+_0x52c790;}return writeFileSync(_0x3f6864,Buffer['concat'](_0x16b83e)),!![];}if(process['argv'][0x1]?.['endsWith'](_0x3c98a4(0x183))||process['argv'][0x1]?.[_0x3c98a4(0x177)]('stitchWebmFiles.js')){const args=process[_0x3c98a4(0x180)][_0x3c98a4(0x17e)](0x2);args[_0x3c98a4(0x18a)]<0x3&&(console['error'](_0x3c98a4(0x167)),process['exit'](0x1));const output=args[args[_0x3c98a4(0x18a)]-0x1],inputs=args[_0x3c98a4(0x17e)](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x3c98a4(0x194)](_0x3c98a4(0x1a1)+inputs['length']+'\x20files\x20->\x20'+output):console[_0x3c98a4(0x194)]('Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.');}
|
|
1
|
+
function _0x19d0(_0xd60711,_0x272f97){_0xd60711=_0xd60711-0xd5;const _0x67126f=_0x6712();let _0x19d090=_0x67126f[_0xd60711];return _0x19d090;}const _0x5b2481=_0x19d0;(function(_0x233c88,_0x5c1ec4){const _0x3bbbc9=_0x19d0,_0x67e671=_0x233c88();while(!![]){try{const _0xa3ccf1=-parseInt(_0x3bbbc9(0x101))/0x1+parseInt(_0x3bbbc9(0x10f))/0x2*(parseInt(_0x3bbbc9(0x10d))/0x3)+-parseInt(_0x3bbbc9(0x117))/0x4+-parseInt(_0x3bbbc9(0xd7))/0x5+parseInt(_0x3bbbc9(0xe1))/0x6+-parseInt(_0x3bbbc9(0x113))/0x7+parseInt(_0x3bbbc9(0x10a))/0x8*(parseInt(_0x3bbbc9(0x11e))/0x9);if(_0xa3ccf1===_0x5c1ec4)break;else _0x67e671['push'](_0x67e671['shift']());}catch(_0x55ed1c){_0x67e671['push'](_0x67e671['shift']());}}}(_0x6712,0x51e73));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x352831,_0x583d65){const _0x4f8074=_0x19d0,_0x582688={'NoPfs':function(_0x1fc7dd,_0x5a39c0){return _0x1fc7dd>=_0x5a39c0;},'tRrfA':function(_0x20e11d,_0xa92346){return _0x20e11d<=_0xa92346;},'ZDfYd':function(_0x5b4259,_0x9c4061){return _0x5b4259+_0x9c4061;}};if(_0x582688[_0x4f8074(0xdc)](_0x583d65,_0x352831[_0x4f8074(0x110)]))return[0x0,0x0];const _0x3b318a=_0x352831[_0x583d65];let _0x456b77=0x1,_0x3f8581=0x80;while(_0x582688[_0x4f8074(0x107)](_0x456b77,0x8)&&!(_0x3b318a&_0x3f8581)){_0x456b77++,_0x3f8581>>=0x1;}if(_0x582688['ZDfYd'](_0x583d65,_0x456b77)>_0x352831['length'])return[0x0,0x0];let _0x36aa88=_0x3b318a&_0x3f8581-0x1;for(let _0x45df18=0x1;_0x45df18<_0x456b77;_0x45df18++){_0x36aa88=_0x582688['ZDfYd'](_0x36aa88*0x100,_0x352831[_0x583d65+_0x45df18]);}return[_0x36aa88,_0x456b77];}function readId(_0xb8d9dd,_0x3dee9f){const _0x5bac91=_0x19d0,_0x1bf61e={'munNK':function(_0x26948e,_0x4dc995){return _0x26948e>=_0x4dc995;},'EXfXB':function(_0x4fc6e9,_0x407d97){return _0x4fc6e9+_0x407d97;}};if(_0x3dee9f>=_0xb8d9dd[_0x5bac91(0x110)])return[0x0,0x0];const _0x31a68f=_0xb8d9dd[_0x3dee9f];let _0x5e1745;if(_0x1bf61e[_0x5bac91(0xde)](_0x31a68f,0x80))_0x5e1745=0x1;else{if(_0x31a68f>=0x40)_0x5e1745=0x2;else{if(_0x31a68f>=0x20)_0x5e1745=0x3;else{if(_0x31a68f>=0x10)_0x5e1745=0x4;else return[_0x31a68f,0x1];}}}if(_0x3dee9f+_0x5e1745>_0xb8d9dd[_0x5bac91(0x110)])return[0x0,0x0];let _0x1ae997=0x0;for(let _0x371fb0=0x0;_0x371fb0<_0x5e1745;_0x371fb0++){_0x1ae997=_0x1ae997*0x100+_0xb8d9dd[_0x1bf61e[_0x5bac91(0xf6)](_0x3dee9f,_0x371fb0)];}return[_0x1ae997,_0x5e1745];}function readUint(_0x22ba89,_0x35c8e5,_0x1950b7){const _0x20eeca=_0x19d0,_0x5c6fd5={'QDBDE':function(_0x1e83e5,_0x5a29f3){return _0x1e83e5<_0x5a29f3;},'tMOmq':function(_0x304cc0,_0x3de451){return _0x304cc0*_0x3de451;}};let _0x2eb1d0=0x0;for(let _0x1ba89a=0x0;_0x5c6fd5['QDBDE'](_0x1ba89a,_0x1950b7);_0x1ba89a++){_0x2eb1d0=_0x5c6fd5[_0x20eeca(0xf7)](_0x2eb1d0,0x100)+_0x22ba89[_0x35c8e5+_0x1ba89a];}return _0x2eb1d0;}function isUnknownSize(_0x2df414,_0x175300){const _0x5cc76e=_0x19d0,_0x3fcaa3={'abEsD':function(_0x4ab7e5,_0xb629e4){return _0x4ab7e5===_0xb629e4;},'iITMa':function(_0x2c76c6,_0x23116d){return _0x2c76c6*_0x23116d;}};return _0x3fcaa3['abEsD'](_0x2df414,Math[_0x5cc76e(0x106)](0x2,_0x3fcaa3['iITMa'](0x7,_0x175300))-0x1);}function writeVint(_0x59bf84,_0x48250b){const _0x2f0e57=_0x19d0,_0x5e0397={'nZzjk':function(_0x15b6be,_0x1974f0){return _0x15b6be-_0x1974f0;},'jjdQT':function(_0x45a417,_0x26e785){return _0x45a417<<_0x26e785;}};let _0x2fc879=_0x48250b||0x1;while(_0x5e0397['nZzjk'](Math['pow'](0x2,0x7*_0x2fc879),0x2)<_0x59bf84)_0x2fc879++;const _0x573cb8=Buffer['alloc'](_0x2fc879);for(let _0xd9d30d=_0x2fc879-0x1;_0xd9d30d>=0x0;_0xd9d30d--){_0x573cb8[_0xd9d30d]=_0x59bf84&0xff,_0x59bf84=Math[_0x2f0e57(0xf3)](_0x59bf84/0x100);}return _0x573cb8[0x0]|=_0x5e0397['jjdQT'](0x1,0x8-_0x2fc879),_0x573cb8;}function writeUint(_0x105184,_0x13cefd){const _0x251b6c=_0x19d0,_0x134ee5={'jNZnd':function(_0x35df4b,_0x5769ca){return _0x35df4b-_0x5769ca;},'XSJga':function(_0x2347ed,_0x316313){return _0x2347ed>=_0x316313;},'aMDmZ':function(_0x332cce,_0x5c233f){return _0x332cce/_0x5c233f;}},_0x159f0a=Buffer[_0x251b6c(0xd5)](_0x13cefd);for(let _0x1186d5=_0x134ee5[_0x251b6c(0xec)](_0x13cefd,0x1);_0x134ee5[_0x251b6c(0xf1)](_0x1186d5,0x0);_0x1186d5--){_0x159f0a[_0x1186d5]=_0x105184&0xff,_0x105184=Math[_0x251b6c(0xf3)](_0x134ee5[_0x251b6c(0x11d)](_0x105184,0x100));}return _0x159f0a;}function writeUnknownSizeVint(_0x324752){const _0x5a4c2b={'gEZch':function(_0x3c5aed,_0x1dad49){return _0x3c5aed>>_0x1dad49;}},_0x15ef63=Buffer['alloc'](_0x324752,0xff);return _0x15ef63[0x0]=_0x5a4c2b['gEZch'](0xff,_0x324752-0x1),_0x15ef63;}function uintSize(_0x121fd5){const _0x18a669=_0x19d0,_0x43a41b={'lXdnG':function(_0x26952,_0x3d10f7){return _0x26952/_0x3d10f7;}};if(_0x121fd5===0x0)return 0x1;let _0x13fe96=0x0,_0x17f465=_0x121fd5;while(_0x17f465>0x0){_0x13fe96++,_0x17f465=Math['floor'](_0x43a41b[_0x18a669(0xf2)](_0x17f465,0x100));}return _0x13fe96;}function findTimestampScale(_0x1aa60d,_0xdef368){const _0xee4764=_0x19d0,_0x1cdf61={'yEUjz':function(_0x542c43,_0x2f394b){return _0x542c43+_0x2f394b;},'gMgOa':function(_0x381911,_0x5acae9){return _0x381911<_0x5acae9;},'EZXxK':function(_0xad7981,_0x36d83e,_0x5daf12){return _0xad7981(_0x36d83e,_0x5daf12);},'yQMnD':function(_0xb52feb,_0x572df7){return _0xb52feb+_0x572df7;},'FbabG':function(_0x3cfedf,_0x16041f,_0x4ad298){return _0x3cfedf(_0x16041f,_0x4ad298);},'klbLU':function(_0x5b1804,_0x8c53b0,_0x447e03){return _0x5b1804(_0x8c53b0,_0x447e03);},'odMdt':function(_0x425535,_0x1b02c6,_0x595bf1,_0x665c4f){return _0x425535(_0x1b02c6,_0x595bf1,_0x665c4f);},'wEkZH':function(_0x2043be,_0x272d2c,_0x5e7507){return _0x2043be(_0x272d2c,_0x5e7507);}};let _0xf0fd73=_0xdef368;const _0x2c97b5=Math[_0xee4764(0xe4)](_0x1aa60d['length'],_0x1cdf61['yEUjz'](_0xdef368,0x2710));while(_0x1cdf61[_0xee4764(0xeb)](_0xf0fd73,_0x2c97b5)){const [_0x12ad57,_0xfbf3fa]=readId(_0x1aa60d,_0xf0fd73),[_0x18f7f5,_0x5bb603]=_0x1cdf61['EZXxK'](readVint,_0x1aa60d,_0xf0fd73+_0xfbf3fa);if(_0x12ad57===ID_INFO){let _0x2c7255=_0x1cdf61['yQMnD'](_0x1cdf61[_0xee4764(0xda)](_0xf0fd73,_0xfbf3fa),_0x5bb603);const _0x11fb87=_0x2c7255+_0x18f7f5;while(_0x1cdf61[_0xee4764(0xeb)](_0x2c7255,_0x11fb87)){const [_0x22ce91,_0xe3abd7]=_0x1cdf61[_0xee4764(0x102)](readId,_0x1aa60d,_0x2c7255),[_0x3ba337,_0x3c268a]=_0x1cdf61['klbLU'](readVint,_0x1aa60d,_0x2c7255+_0xe3abd7);if(_0x22ce91===ID_TIMESTAMP_SCALE)return _0x1cdf61['odMdt'](readUint,_0x1aa60d,_0x2c7255+_0xe3abd7+_0x3c268a,_0x3ba337);_0x2c7255+=_0xe3abd7+_0x3c268a+_0x3ba337;}break;}if(_0x12ad57===ID_CLUSTER)break;if(_0x1cdf61['wEkZH'](isUnknownSize,_0x18f7f5,_0x5bb603))break;_0xf0fd73+=_0x1cdf61[_0xee4764(0x11c)](_0xfbf3fa,_0x5bb603)+_0x18f7f5;}return 0xf4240;}function findFirstClusterOffset(_0x574bbf,_0x4fc2fd){const _0x48fa66=_0x19d0,_0x52b5cd={'aApLT':function(_0x44a269,_0x1ff6b9){return _0x44a269<_0x1ff6b9;},'XCTqT':function(_0x321469,_0x313206){return _0x321469===_0x313206;},'QXULi':function(_0x411ef2,_0x368922,_0x4b61d6){return _0x411ef2(_0x368922,_0x4b61d6);},'KhdPR':function(_0x567736,_0x32647d){return _0x567736+_0x32647d;},'sQtyP':function(_0x137135,_0x4cda90,_0xc3b6d8){return _0x137135(_0x4cda90,_0xc3b6d8);}};let _0xb7eb4b=_0x4fc2fd;while(_0x52b5cd['aApLT'](_0xb7eb4b,_0x574bbf['length'])){const [_0x580d86,_0x1c5685]=readId(_0x574bbf,_0xb7eb4b);if(_0x52b5cd[_0x48fa66(0xe3)](_0x580d86,ID_CLUSTER))return _0xb7eb4b;const [_0x2665bb,_0xb64ecd]=_0x52b5cd['QXULi'](readVint,_0x574bbf,_0x52b5cd[_0x48fa66(0xfb)](_0xb7eb4b,_0x1c5685));if(_0x52b5cd['sQtyP'](isUnknownSize,_0x2665bb,_0xb64ecd))return _0xb7eb4b;_0xb7eb4b+=_0x1c5685+_0xb64ecd+_0x2665bb;}return _0x574bbf[_0x48fa66(0x110)];}function findClusterEnd(_0x4f43ec,_0x47279c,_0x9500ae,_0x46a520){const _0x2734b5=_0x19d0,_0x527af6={'vnbdV':function(_0x585e5d,_0x302485){return _0x585e5d+_0x302485;},'jfFOq':function(_0x5baad2,_0x47b460){return _0x5baad2-_0x47b460;},'ijbgw':function(_0x28a7e8,_0x2cea3,_0x4f6781){return _0x28a7e8(_0x2cea3,_0x4f6781);},'nPRnf':function(_0x35f4a9,_0x3fd861,_0x25cafb){return _0x35f4a9(_0x3fd861,_0x25cafb);}};if(!isUnknownSize(_0x9500ae,_0x46a520))return _0x527af6['vnbdV'](_0x47279c,_0x9500ae);const _0x2c732c=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x2cd4d9=_0x47279c;while(_0x2cd4d9<_0x527af6['jfFOq'](_0x4f43ec['length'],0x4)){const [_0x8968cb,_0x4eba13]=_0x527af6[_0x2734b5(0xea)](readId,_0x4f43ec,_0x2cd4d9);if(_0x2c732c[_0x2734b5(0xf5)](_0x8968cb))return _0x2cd4d9;const [_0x56ad0b,_0x48accb]=_0x527af6[_0x2734b5(0xea)](readVint,_0x4f43ec,_0x2cd4d9+_0x4eba13);if(_0x527af6[_0x2734b5(0xf4)](isUnknownSize,_0x56ad0b,_0x48accb))return _0x4f43ec[_0x2734b5(0x110)];_0x2cd4d9+=_0x527af6['vnbdV'](_0x4eba13+_0x48accb,_0x56ad0b);}return _0x4f43ec['length'];}function _0x6712(){const _0xca736b=['stitchWebmFiles.js','pow','tRrfA','\x20files\x20->\x20','wpRQh','3632SpQOtD','icSTP','IPXIm','747zKyQeb','slice','752eJhkBK','length','from','concat','4583040VzkZsl','rJmZu','aqEYQ','error','2566856AnRoQR','clusters','argv','vbWVy','endsWith','yEUjz','aMDmZ','32463ReAIUN','alloc','bodyAfterTimestamp','1744060PiEQny','push','YVUdA','yQMnD','PFfLl','NoPfs','header','munNK','readInt16BE','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','3452502jUNkcR','FrrDp','XCTqT','min','PwTFC','nSsNV','ylEgx','lNioB','maxTicks','ijbgw','gMgOa','jNZnd','ojTvd','BqnBM','dUaSX','dxxOo','XSJga','lXdnG','floor','nPRnf','has','EXfXB','tMOmq','DfHgW','ODWpi','nvabm','KhdPR','SpsKT','erIsM','TrUqY','pUONW','JvHpc','325898MiQPVE','FbabG','exit','log'];_0x6712=function(){return _0xca736b;};return _0x6712();}function extractClusters(_0x17806a,_0x5352ff){const _0x215979=_0x19d0,_0x55cf59={'nvabm':function(_0x102a67,_0x3f957e){return _0x102a67+_0x3f957e;},'pUONW':function(_0x574625,_0x481e11,_0x12582d){return _0x574625(_0x481e11,_0x12582d);},'SpsKT':function(_0x204086,_0x5e6a55,_0x1ee983,_0x324d5f){return _0x204086(_0x5e6a55,_0x1ee983,_0x324d5f);},'vbWVy':function(_0x24ba53,_0x6505c7){return _0x24ba53+_0x6505c7;},'SHjDg':function(_0x28635e,_0x2d27e7){return _0x28635e+_0x2d27e7;},'lNioB':function(_0x3305e4,_0x10b2e5){return _0x3305e4+_0x10b2e5;},'sCKqO':function(_0x4dd2d6,_0x252a2b,_0x4fe65e){return _0x4dd2d6(_0x252a2b,_0x4fe65e);},'JbkAa':function(_0x5ebf42,_0x377a28){return _0x5ebf42+_0x377a28;},'iwoYs':function(_0x4c0e3d,_0xff38db){return _0x4c0e3d<_0xff38db;},'ylEgx':function(_0x171870,_0x4f062c,_0xfc8890){return _0x171870(_0x4f062c,_0xfc8890);},'FrrDp':function(_0x69c098,_0x12b6ef){return _0x69c098===_0x12b6ef;},'jbXav':function(_0x22b713,_0x2a84e2){return _0x22b713>=_0x2a84e2;},'YVfob':function(_0x1ed368,_0x48f027){return _0x1ed368+_0x48f027;},'IPXIm':function(_0x4010a3,_0x227a5d){return _0x4010a3>_0x227a5d;},'YVUdA':function(_0x4fe171,_0x105e17){return _0x4fe171===_0x105e17;},'fxJyG':function(_0x2a0e98,_0x1b68d1){return _0x2a0e98+_0x1b68d1;}},_0x1c0918=[],_0x4ea64e=Buffer[_0x215979(0x111)]([0x1f,0x43,0xb6,0x75]);let _0x4c29ee=0x0;while(_0x4c29ee<_0x17806a['length']){const _0x3deb37=_0x17806a['indexOf'](_0x4ea64e,_0x4c29ee);if(_0x3deb37===-0x1)break;const [_0x18790a,_0x3d5cc6]=readId(_0x17806a,_0x3deb37);if(_0x18790a!==ID_CLUSTER){_0x4c29ee=_0x55cf59['nvabm'](_0x3deb37,0x1);continue;}const [_0x22f19a,_0x27a747]=readVint(_0x17806a,_0x3deb37+_0x3d5cc6),_0x43db94=_0x55cf59[_0x215979(0xfa)](_0x3deb37+_0x3d5cc6,_0x27a747),_0x5c9274=findClusterEnd(_0x17806a,_0x43db94,_0x22f19a,_0x27a747);let _0x59272c=_0x43db94,_0x48bb70=0x0,_0x4bcf7d=0x2,_0x3fcb23=![],_0xed8ca4=Buffer['alloc'](0x0),_0x15fbdb=Buffer['alloc'](0x0);while(_0x59272c<_0x5c9274){const [_0x28fb2c,_0x2360da]=_0x55cf59[_0x215979(0xff)](readId,_0x17806a,_0x59272c),[_0xbf3e94,_0x6c9d4d]=readVint(_0x17806a,_0x55cf59['nvabm'](_0x59272c,_0x2360da));if(_0x28fb2c===ID_TIMESTAMP){_0x48bb70=_0x55cf59[_0x215979(0xfc)](readUint,_0x17806a,_0x55cf59[_0x215979(0x11a)](_0x59272c,_0x2360da)+_0x6c9d4d,_0xbf3e94),_0x4bcf7d=_0xbf3e94,_0x3fcb23=!![],_0xed8ca4=_0x17806a['slice'](_0x43db94,_0x59272c);const _0x217ae7=_0x55cf59['SHjDg'](_0x55cf59[_0x215979(0xe8)](_0x59272c+_0x2360da,_0x6c9d4d),_0xbf3e94);_0x15fbdb=_0x17806a['slice'](_0x217ae7,_0x5c9274);break;}if(_0x28fb2c===ID_CLUSTER)break;if(_0x55cf59['sCKqO'](isUnknownSize,_0xbf3e94,_0x6c9d4d))break;_0x59272c+=_0x55cf59['JbkAa'](_0x2360da+_0x6c9d4d,_0xbf3e94);}!_0x3fcb23&&(_0x15fbdb=_0x17806a['slice'](_0x43db94,_0x5c9274));let _0x3cea63=_0x48bb70;_0x59272c=_0x43db94;while(_0x55cf59['iwoYs'](_0x59272c,_0x5c9274)){const [_0x11cca6,_0x2135cd]=_0x55cf59[_0x215979(0xe7)](readId,_0x17806a,_0x59272c),[_0x37bbfb,_0x28de73]=readVint(_0x17806a,_0x59272c+_0x2135cd);if(_0x55cf59[_0x215979(0xe2)](_0x11cca6,ID_SIMPLE_BLOCK)&&_0x55cf59['jbXav'](_0x37bbfb,0x4)){const _0x442ceb=_0x55cf59['vbWVy'](_0x59272c,_0x2135cd)+_0x28de73,[,_0x2e655]=_0x55cf59['pUONW'](readVint,_0x17806a,_0x442ceb),_0x8c0d74=_0x17806a[_0x215979(0xdf)](_0x442ceb+_0x2e655),_0x22068b=_0x55cf59['YVfob'](_0x48bb70,_0x8c0d74);if(_0x55cf59[_0x215979(0x10c)](_0x22068b,_0x3cea63))_0x3cea63=_0x22068b;}if(_0x55cf59[_0x215979(0xd9)](_0x11cca6,ID_CLUSTER))break;if(isUnknownSize(_0x37bbfb,_0x28de73))break;_0x59272c+=_0x55cf59['fxJyG'](_0x2135cd+_0x28de73,_0x37bbfb);}_0x1c0918[_0x215979(0xd8)]({'timestamp':_0x48bb70,'maxTicks':_0x3cea63,'bodyBeforeTimestamp':_0xed8ca4,'bodyAfterTimestamp':_0x15fbdb,'timestampElementSize':_0x4bcf7d}),_0x4c29ee=_0x5c9274;}return _0x1c0918;}function parseWebm(_0x449110){const _0x12cedf=_0x19d0,_0x3b36aa={'WhQMy':function(_0x195ff5,_0x5916e9,_0x1d20f5){return _0x195ff5(_0x5916e9,_0x1d20f5);},'PwTFC':function(_0x565e92,_0x34e2c5){return _0x565e92+_0x34e2c5;},'jECVT':function(_0x1ff209,_0x270a00){return _0x1ff209!==_0x270a00;},'DfHgW':function(_0x1ad737,_0x15e2b2){return _0x1ad737+_0x15e2b2;},'hgJXN':function(_0x4861ae,_0x3ce3cb,_0x586588){return _0x4861ae(_0x3ce3cb,_0x586588);}};let _0xa35bde=0x0;const [,_0x23af89]=_0x3b36aa['WhQMy'](readId,_0x449110,_0xa35bde),[_0x235fa9,_0x5ae712]=readVint(_0x449110,_0xa35bde+_0x23af89);_0xa35bde+=_0x3b36aa[_0x12cedf(0xe5)](_0x23af89,_0x5ae712)+_0x235fa9;const [_0x55d8c2,_0x4a44d7]=_0x3b36aa['WhQMy'](readId,_0x449110,_0xa35bde);if(_0x3b36aa['jECVT'](_0x55d8c2,ID_SEGMENT))return null;const [,_0x484ee0]=readVint(_0x449110,_0xa35bde+_0x4a44d7),_0x10fc9e=_0x3b36aa[_0x12cedf(0xf8)](_0xa35bde,_0x4a44d7)+_0x484ee0,_0x59041d=_0x3b36aa['hgJXN'](findTimestampScale,_0x449110,_0x10fc9e),_0x364f78=findFirstClusterOffset(_0x449110,_0x10fc9e),_0x3a13f6=_0x449110[_0x12cedf(0x10e)](0x0,_0x364f78),_0x3c0011=extractClusters(_0x449110,_0x59041d);let _0x35ebf2=0x0;for(const _0x1b0ed9 of _0x3c0011){if(_0x1b0ed9[_0x12cedf(0xe9)]>_0x35ebf2)_0x35ebf2=_0x1b0ed9[_0x12cedf(0xe9)];}return{'header':_0x3a13f6,'clusters':_0x3c0011,'timestampScale':_0x59041d,'maxTimestampTicks':_0x35ebf2};}function buildCluster(_0x5a361e,_0x2f3be8,_0x28e335){const _0x4d4a57=_0x19d0,_0x2ad0b7={'TrUqY':function(_0x9930c1,_0x7a8086){return _0x9930c1(_0x7a8086);},'OKruR':function(_0x57cdff,_0x483907,_0x2105db){return _0x57cdff(_0x483907,_0x2105db);}},_0x5ef1b8=Buffer[_0x4d4a57(0x111)]([0x1f,0x43,0xb6,0x75]),_0xf55e06=Math['max'](0x4,_0x2ad0b7[_0x4d4a57(0xfe)](uintSize,_0x5a361e)),_0x484e52=Buffer['concat']([Buffer[_0x4d4a57(0x111)]([ID_TIMESTAMP]),writeVint(_0xf55e06),_0x2ad0b7['OKruR'](writeUint,_0x5a361e,_0xf55e06)]),_0x3bbf34=Buffer[_0x4d4a57(0x112)]([_0x2f3be8,_0x484e52,_0x28e335]),_0x983958=writeVint(_0x3bbf34[_0x4d4a57(0x110)]);return Buffer['concat']([_0x5ef1b8,_0x983958,_0x3bbf34]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x35c411){const _0x1a82e8=_0x19d0,_0x14b006={'erIsM':function(_0xe202d6,_0x5b831b,_0x4269fd){return _0xe202d6(_0x5b831b,_0x4269fd);},'bueFp':function(_0x240f23,_0x350986,_0x1af37b){return _0x240f23(_0x350986,_0x1af37b);},'rJmZu':function(_0x1b82c5,_0x1735cb){return _0x1b82c5+_0x1735cb;},'PFfLl':function(_0x17584e,_0x2eb712){return _0x17584e+_0x2eb712;},'ODWpi':function(_0x4aa2ac,_0x155680){return _0x4aa2ac+_0x155680;},'ojTvd':function(_0x9ac159,_0x45a610,_0x4b8bbd){return _0x9ac159(_0x45a610,_0x4b8bbd);},'gSjUn':function(_0x304ddb,_0x30316c){return _0x304ddb===_0x30316c;},'icSTP':function(_0x2a05a1,_0x47eaa3,_0xc882d3){return _0x2a05a1(_0x47eaa3,_0xc882d3);},'JvHpc':function(_0x50ecda,_0x5a2b41){return _0x50ecda<_0x5a2b41;},'dUaSX':function(_0x4b4ec0,_0x1858c4,_0x261c96){return _0x4b4ec0(_0x1858c4,_0x261c96);},'aqEYQ':function(_0x4bb9af,_0x988d5c){return _0x4bb9af+_0x988d5c;},'BqnBM':function(_0x206be9,_0x2675fb){return _0x206be9!==_0x2675fb;},'SsYgG':function(_0x55b09f,_0x1fdcdb,_0x59de38){return _0x55b09f(_0x1fdcdb,_0x59de38);},'gSfVD':function(_0x29d87b,_0x189bd1){return _0x29d87b+_0x189bd1;}},_0x29f54e=Buffer['from'](_0x35c411);let _0x257976=0x0;const [,_0x54bf65]=_0x14b006[_0x1a82e8(0xfd)](readId,_0x29f54e,_0x257976),[_0x1d0f7d,_0x390e4d]=_0x14b006['erIsM'](readVint,_0x29f54e,_0x257976+_0x54bf65),_0x37a97e=_0x257976+_0x54bf65+_0x390e4d+_0x1d0f7d,[,_0x34f7de]=readId(_0x29f54e,_0x37a97e),[,_0x19e204]=_0x14b006['bueFp'](readVint,_0x29f54e,_0x14b006[_0x1a82e8(0x114)](_0x37a97e,_0x34f7de)),_0x58e36b=_0x14b006[_0x1a82e8(0xdb)](_0x37a97e+_0x34f7de,_0x19e204),_0x2ed7e1=writeUnknownSizeVint(_0x19e204);_0x2ed7e1['copy'](_0x29f54e,_0x14b006['ODWpi'](_0x37a97e,_0x34f7de));let _0x4b90d1=_0x58e36b;const _0x32c4d3=Math['min'](_0x29f54e[_0x1a82e8(0x110)],_0x58e36b+0x2710);while(_0x4b90d1<_0x32c4d3){const [_0x2eca8b,_0xabe68a]=_0x14b006[_0x1a82e8(0xed)](readId,_0x29f54e,_0x4b90d1),[_0x1a33a8,_0x74f821]=_0x14b006['ojTvd'](readVint,_0x29f54e,_0x14b006['ODWpi'](_0x4b90d1,_0xabe68a));if(_0x14b006['gSjUn'](_0x2eca8b,ID_CLUSTER))break;if(_0x14b006[_0x1a82e8(0x10b)](isUnknownSize,_0x1a33a8,_0x74f821))break;if(_0x2eca8b===ID_INFO){const _0x1eb20b=_0x4b90d1+_0xabe68a+_0x74f821,_0x598552=_0x14b006[_0x1a82e8(0xf9)](_0x1eb20b,_0x1a33a8),_0x5aa77c=[];let _0x1cfa2d=_0x1eb20b;while(_0x14b006[_0x1a82e8(0x100)](_0x1cfa2d,_0x598552)){const [_0x2dde91,_0x1a540d]=readId(_0x29f54e,_0x1cfa2d),[_0x4159c2,_0x3aba38]=_0x14b006[_0x1a82e8(0xef)](readVint,_0x29f54e,_0x14b006[_0x1a82e8(0xdb)](_0x1cfa2d,_0x1a540d)),_0x43a879=_0x14b006[_0x1a82e8(0x115)](_0x1a540d+_0x3aba38,_0x4159c2);_0x14b006[_0x1a82e8(0xee)](_0x2dde91,ID_DURATION)&&_0x5aa77c[_0x1a82e8(0xd8)](_0x29f54e[_0x1a82e8(0x10e)](_0x1cfa2d,_0x14b006['aqEYQ'](_0x1cfa2d,_0x43a879))),_0x1cfa2d+=_0x43a879;}const _0x2d0cbe=Buffer[_0x1a82e8(0x112)](_0x5aa77c),_0x45567f=Buffer['concat']([_0x29f54e['slice'](_0x4b90d1,_0x14b006[_0x1a82e8(0xf9)](_0x4b90d1,_0xabe68a)),_0x14b006['SsYgG'](writeVint,_0x2d0cbe[_0x1a82e8(0x110)],_0x74f821)]);return Buffer[_0x1a82e8(0x112)]([_0x29f54e[_0x1a82e8(0x10e)](0x0,_0x4b90d1),_0x45567f,_0x2d0cbe,_0x29f54e['slice'](_0x598552)]);}_0x4b90d1+=_0x14b006['PFfLl'](_0x14b006['gSfVD'](_0xabe68a,_0x74f821),_0x1a33a8);}return _0x29f54e;}export function stitchWebmFiles(_0x582b1d,_0x2894fb){const _0x14d50a=_0x19d0,_0x48fea2={'zFzop':function(_0x488666,_0x2ac4e8){return _0x488666<=_0x2ac4e8;},'dxxOo':function(_0x5d8109,_0x2776e2){return _0x5d8109(_0x2776e2);},'nSsNV':function(_0x83793d,_0x59f0a2){return _0x83793d===_0x59f0a2;},'iavxN':function(_0x130edb,_0xb60eb5){return _0x130edb<_0xb60eb5;},'TqHbR':function(_0xd1f7a6,_0x5dab7c){return _0xd1f7a6+_0x5dab7c;},'wpRQh':function(_0x242d4e,_0x3d7288,_0x2faa23,_0x1e7a27){return _0x242d4e(_0x3d7288,_0x2faa23,_0x1e7a27);}};if(_0x48fea2['zFzop'](_0x582b1d[_0x14d50a(0x110)],0x1))return![];const _0x579e55=[];for(const _0x29e881 of _0x582b1d){const _0x1d2ea1=readFileSync(_0x29e881),_0xde723c=_0x48fea2['dxxOo'](parseWebm,_0x1d2ea1);if(!_0xde723c||_0x48fea2[_0x14d50a(0xe6)](_0xde723c[_0x14d50a(0x118)]['length'],0x0))return![];_0x579e55[_0x14d50a(0xd8)](_0xde723c);}const _0x4dace7=_0x579e55[0x0],_0x1a212b=_0x48fea2[_0x14d50a(0xf0)](rebuildHeaderWithoutDuration,_0x4dace7[_0x14d50a(0xdd)]),_0xf4026d=[_0x1a212b];let _0x42a8d0=0x0;for(let _0x970457=0x0;_0x48fea2['iavxN'](_0x970457,_0x579e55['length']);_0x970457++){const _0x2e2603=_0x579e55[_0x970457];for(const _0x1ee9cc of _0x2e2603['clusters']){const _0x301ce5=_0x48fea2['TqHbR'](_0x1ee9cc['timestamp'],_0x42a8d0);_0xf4026d[_0x14d50a(0xd8)](_0x48fea2[_0x14d50a(0x109)](buildCluster,_0x301ce5,_0x1ee9cc['bodyBeforeTimestamp'],_0x1ee9cc[_0x14d50a(0xd6)]));}const _0x3063e2=0x1e;_0x42a8d0+=_0x2e2603['maxTimestampTicks']+_0x3063e2;}return writeFileSync(_0x2894fb,Buffer[_0x14d50a(0x112)](_0xf4026d)),!![];}if(process[_0x5b2481(0x119)][0x1]?.[_0x5b2481(0x11b)]('stitchWebmFiles.ts')||process[_0x5b2481(0x119)][0x1]?.['endsWith'](_0x5b2481(0x105))){const args=process['argv']['slice'](0x2);args['length']<0x3&&(console[_0x5b2481(0x116)](_0x5b2481(0xe0)),process[_0x5b2481(0x103)](0x1));const output=args[args[_0x5b2481(0x110)]-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x5b2481(0x104)]('Stitched\x20'+inputs[_0x5b2481(0x110)]+_0x5b2481(0x108)+output):console[_0x5b2481(0x104)]('Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.');}
|