@ranger-testing/ranger-cli 2.3.1 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -0
- 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
|
+
const _0x4705cb=_0xca5d;(function(_0x277b78,_0x347e41){const _0x472386=_0xca5d,_0x41e056=_0x277b78();while(!![]){try{const _0x487728=-parseInt(_0x472386(0x11f))/0x1+parseInt(_0x472386(0x123))/0x2*(-parseInt(_0x472386(0x122))/0x3)+-parseInt(_0x472386(0x11d))/0x4*(-parseInt(_0x472386(0x11b))/0x5)+parseInt(_0x472386(0x121))/0x6*(-parseInt(_0x472386(0x11e))/0x7)+-parseInt(_0x472386(0x124))/0x8+parseInt(_0x472386(0x119))/0x9*(parseInt(_0x472386(0x11a))/0xa)+parseInt(_0x472386(0x11c))/0xb;if(_0x487728===_0x347e41)break;else _0x41e056['push'](_0x41e056['shift']());}catch(_0x3fbb1f){_0x41e056['push'](_0x41e056['shift']());}}}(_0x1781,0xd8339));const DEFAULT_PROFILE_COMMAND=_0x4705cb(0x120);function _0xca5d(_0x2cd339,_0x2798bc){_0x2cd339=_0x2cd339-0x119;const _0x1781fe=_0x1781();let _0xca5d58=_0x1781fe[_0x2cd339];return _0xca5d58;}export function formatProfileRequiredMessage(_0x521f1c){const _0x21c82b=_0x521f1c?_0x521f1c(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20'+_0x21c82b+'.';}function _0x1781(){const _0x5b0bf1=['2IPQMUc','2195784yEBVMD','981819kEVMRQ','10SOqYji','25MFYDrr','24372876KentFo','1336060nveYqY','85589sWusih','1152816SNdkWb','ranger\x20profile\x20add\x20local','12OVKjWl','4972734MRrIDB'];_0x1781=function(){return _0x5b0bf1;};return _0x1781();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x373c(_0x14b325,_0x5ea9a3){_0x14b325=_0x14b325-0x1e9;const _0x4fb7ec=_0x4fb7();let _0x373c72=_0x4fb7ec[_0x14b325];return _0x373c72;}(function(_0x5e3a27,_0x58f5a9){const _0x4ee419=_0x373c,_0x199b82=_0x5e3a27();while(!![]){try{const _0x3b6ed3=-parseInt(_0x4ee419(0x1ef))/0x1*(-parseInt(_0x4ee419(0x1ea))/0x2)+-parseInt(_0x4ee419(0x1f7))/0x3*(-parseInt(_0x4ee419(0x1f5))/0x4)+-parseInt(_0x4ee419(0x1f6))/0x5*(parseInt(_0x4ee419(0x1f2))/0x6)+parseInt(_0x4ee419(0x1f4))/0x7+-parseInt(_0x4ee419(0x1ed))/0x8+-parseInt(_0x4ee419(0x1ec))/0x9+parseInt(_0x4ee419(0x1e9))/0xa*(parseInt(_0x4ee419(0x1f3))/0xb);if(_0x3b6ed3===_0x58f5a9)break;else _0x199b82['push'](_0x199b82['shift']());}catch(_0x1d099c){_0x199b82['push'](_0x199b82['shift']());}}}(_0x4fb7,0x82308));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x20133d=_0x373c,_0x26eb38={'QQqdL':function(_0x676197,_0xe9cb16){return _0x676197+_0xe9cb16;},'WSRHe':function(_0x47581d,_0x2b8fb2){return _0x47581d+_0x2b8fb2;},'iCiMp':function(_0x47bd00,_0x1b5eeb){return _0x47bd00+_0x1b5eeb;},'ePnVb':'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','GUHOg':'</div>','FVZUQ':'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'},_0x8b3245=_0x26eb38['QQqdL'](_0x26eb38['WSRHe'](_0x26eb38['iCiMp']('<div\x20class=\x22ranger-banner__content\x22>'+_0x26eb38[_0x20133d(0x1f1)]+'<div\x20class=\x22ranger-banner__message\x22>',_0x20133d(0x1ee)),'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>')+_0x26eb38['GUHOg'],_0x20133d(0x1f0))+_0x26eb38['FVZUQ'],_0x1da797=_0x20133d(0x1f8);return'\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'+JSON['stringify'](_0x8b3245)+';\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'+JSON[_0x20133d(0x1eb)](_0x1da797)+';\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';})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}function _0x4fb7(){const _0x589939=['<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','500275AaFVvl','</div>','ePnVb','6WOPJHJ','7685733xgnGJz','3534244FCLCGF','64YJOTVY','2141395IMNKtf','90483ERcGxX','\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','10qEjfzz','2GdAjqY','stringify','2370258zuoiRU','7692392cWIvdX'];_0x4fb7=function(){return _0x589939;};return _0x4fb7();}export async function addProfileSetupBanner(_0x9f2312){await _0x9f2312['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x41eb7a,_0x82fd52){const _0x59265d=_0x7051,_0x46ebc0=_0x41eb7a();while(!![]){try{const _0x28a69b=-parseInt(_0x59265d(0x1b8))/0x1*(parseInt(_0x59265d(0x1b2))/0x2)+-parseInt(_0x59265d(0x1b6))/0x3*(parseInt(_0x59265d(0x1af))/0x4)+-parseInt(_0x59265d(0x1b9))/0x5*(parseInt(_0x59265d(0x1ae))/0x6)+parseInt(_0x59265d(0x1bd))/0x7+-parseInt(_0x59265d(0x1b1))/0x8*(-parseInt(_0x59265d(0x1c4))/0x9)+parseInt(_0x59265d(0x1b5))/0xa*(-parseInt(_0x59265d(0x1bc))/0xb)+parseInt(_0x59265d(0x1bf))/0xc;if(_0x28a69b===_0x82fd52)break;else _0x46ebc0['push'](_0x46ebc0['shift']());}catch(_0x2ce612){_0x46ebc0['push'](_0x46ebc0['shift']());}}}(_0x4aef,0x76d62));import{readFile}from'fs/promises';function _0x7051(_0x270f1b,_0x536624){_0x270f1b=_0x270f1b-0x1ae;const _0x4aef80=_0x4aef();let _0x705171=_0x4aef80[_0x270f1b];return _0x705171;}function _0x4aef(){const _0x5a0dfa=['model','kWwJI','30MAxueu','3cvSZJh','object','9byOjRj','50opZpak','BmxKf','utf-8','1875368mQBVZW','5018475MfHSzD','GRvzT','12082788FsOhoA','string','isArray','ktelg','parse','2538QxbhfK','539052MmEKXr','687292sGZpvf','config.json','21624AwJIEb','92802RqVFrL'];_0x4aef=function(){return _0x5a0dfa;};return _0x4aef();}import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x10f883=_0x7051,_0x6d7a79={'BmxKf':function(_0x47df21){return _0x47df21();}};return join(_0x6d7a79[_0x10f883(0x1ba)](getRangerDir),_0x10f883(0x1b0));}export async function loadRangerConfig(){const _0x168a1d=_0x7051,_0x4ff315={'BFcym':function(_0x45806e){return _0x45806e();},'oOElK':function(_0x33ef50,_0x155fb7){return _0x33ef50(_0x155fb7);},'ktelg':function(_0x2c1adb,_0x279d50){return _0x2c1adb!==_0x279d50;},'GRvzT':function(_0x285bdb,_0x3a74d9){return _0x285bdb===_0x3a74d9;},'kWwJI':function(_0x56c977,_0x33dbcb){return _0x56c977 instanceof _0x33dbcb;}},_0x15ca47=_0x4ff315['BFcym'](getRangerConfigPath);if(!_0x4ff315['oOElK'](existsSync,_0x15ca47))return{};try{const _0x70b9c4=await readFile(_0x15ca47,_0x168a1d(0x1bb)),_0x2b1996=JSON[_0x168a1d(0x1c3)](_0x70b9c4);if(!_0x2b1996||_0x4ff315[_0x168a1d(0x1c2)](typeof _0x2b1996,_0x168a1d(0x1b7))||Array[_0x168a1d(0x1c1)](_0x2b1996))return{};const _0x2a50d0={},_0x58a4e=_0x2b1996['model'];return _0x4ff315[_0x168a1d(0x1be)](typeof _0x58a4e,_0x168a1d(0x1c0))&&(_0x2a50d0[_0x168a1d(0x1b3)]=_0x58a4e),_0x2a50d0;}catch(_0x2eec88){const _0x1b923d=_0x4ff315[_0x168a1d(0x1b4)](_0x2eec88,Error)?_0x2eec88['message']:String(_0x2eec88);return console['warn']('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x15ca47+':\x20'+_0x1b923d),{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x393e77,_0x5636ae){const _0x24342f=_0x4e03,_0x595529=_0x393e77();while(!![]){try{const _0x1eed89=parseInt(_0x24342f(0x1b0))/0x1*(-parseInt(_0x24342f(0x1af))/0x2)+parseInt(_0x24342f(0x1ba))/0x3*(-parseInt(_0x24342f(0x1b3))/0x4)+parseInt(_0x24342f(0x1b9))/0x5*(parseInt(_0x24342f(0x1b5))/0x6)+parseInt(_0x24342f(0x1b7))/0x7+-parseInt(_0x24342f(0x1bc))/0x8*(-parseInt(_0x24342f(0x1ab))/0x9)+-parseInt(_0x24342f(0x1be))/0xa*(parseInt(_0x24342f(0x1bd))/0xb)+parseInt(_0x24342f(0x1b6))/0xc*(parseInt(_0x24342f(0x1b4))/0xd);if(_0x1eed89===_0x5636ae)break;else _0x595529['push'](_0x595529['shift']());}catch(_0x51aa93){_0x595529['push'](_0x595529['shift']());}}}(_0x2afe,0x1bdec));import{dirname,join,parse}from'path';function _0x4e03(_0x1ca064,_0x4536eb){_0x1ca064=_0x1ca064-0x1aa;const _0x2afe0d=_0x2afe();let _0x4e0302=_0x2afe0d[_0x1ca064];return _0x4e0302;}import{existsSync}from'fs';function _0x2afe(){const _0x3d44a1=['117VlODCh','30yACPVb','516084dkvHYU','709625fZTMmS','Ssinl','23340TetQzp','8661YIkaNY','YgkIl','32UuXLvi','33LsxUGU','609560DVVjoj','InJox','BOttX','179883msFgVb','cwd','PBDWO','REUsD','50ZRAjaJ','3589rOyHBY','uvxyC','.ranger','284zUxPWs'];_0x2afe=function(){return _0x3d44a1;};return _0x2afe();}import{homedir}from'os';export function getRangerRoot(){const _0x21ea44=_0x4e03,_0xed9578={'REUsD':function(_0xb810f9,_0x4bbfb4){return _0xb810f9(_0x4bbfb4);},'PBDWO':function(_0x2d6a29,_0x176169){return _0x2d6a29!==_0x176169;},'YgkIl':function(_0x8b2094,_0x319966){return _0x8b2094(_0x319966);},'BOttX':'.ranger'};let _0x39dd70=process['cwd']();const _0x4eba97=_0xed9578[_0x21ea44(0x1ae)](parse,_0x39dd70)['root'];while(_0xed9578[_0x21ea44(0x1ad)](_0x39dd70,_0x4eba97)){if(_0xed9578[_0x21ea44(0x1bb)](existsSync,join(_0x39dd70,'.ranger')))return _0x39dd70;_0x39dd70=_0xed9578['YgkIl'](dirname,_0x39dd70);}if(existsSync(join(_0x4eba97,_0xed9578[_0x21ea44(0x1aa)])))return _0x4eba97;const _0x34ac5b=findGitRoot();if(_0x34ac5b)return _0x34ac5b;return process[_0x21ea44(0x1ac)]();}export function getRangerDir(){const _0x4fd97d=_0x4e03,_0x7bcf7e={'uvxyC':function(_0x1a5778){return _0x1a5778();}};return join(_0x7bcf7e[_0x4fd97d(0x1b1)](getRangerRoot),_0x4fd97d(0x1b2));}export function findGitRoot(){const _0x21e241=_0x4e03,_0x3cb3fc={'RNmKd':function(_0x28005e,_0x4ed788){return _0x28005e(_0x4ed788);},'JbkGQ':function(_0x7eba72,_0x8cbbb4){return _0x7eba72(_0x8cbbb4);},'InJox':'.git'};let _0x2fbed5=process['cwd']();const _0x29eb75=parse(_0x2fbed5)['root'];while(_0x2fbed5!==_0x29eb75){if(existsSync(join(_0x2fbed5,'.git')))return _0x2fbed5;_0x2fbed5=_0x3cb3fc['RNmKd'](dirname,_0x2fbed5);}if(_0x3cb3fc['JbkGQ'](existsSync,join(_0x29eb75,_0x3cb3fc[_0x21e241(0x1bf)])))return _0x29eb75;return null;}export function getRangerHomeDir(){const _0x583785=_0x4e03,_0xa8257c={'Ssinl':function(_0x174deb){return _0x174deb();}};return join(_0xa8257c[_0x583785(0x1b8)](homedir),_0x583785(0x1b2));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3de847,_0x34ddbb){const _0x2ffc95=_0x1326,_0x1c0e5b=_0x3de847();while(!![]){try{const _0x3e9334=-parseInt(_0x2ffc95(0x1eb))/0x1+parseInt(_0x2ffc95(0x1ed))/0x2*(parseInt(_0x2ffc95(0x1f4))/0x3)+parseInt(_0x2ffc95(0x1d7))/0x4*(parseInt(_0x2ffc95(0x1db))/0x5)+-parseInt(_0x2ffc95(0x1cf))/0x6*(-parseInt(_0x2ffc95(0x1e9))/0x7)+-parseInt(_0x2ffc95(0x1ee))/0x8+parseInt(_0x2ffc95(0x1f2))/0x9+-parseInt(_0x2ffc95(0x1e3))/0xa;if(_0x3e9334===_0x34ddbb)break;else _0x1c0e5b['push'](_0x1c0e5b['shift']());}catch(_0x3152dc){_0x1c0e5b['push'](_0x1c0e5b['shift']());}}}(_0x2afb,0x4170c));import{readdir}from'fs/promises';function _0x2afb(){const _0x265f85=['###\x20Issues\x20Found\x20(','toUpperCase','**Status:**\x20','####\x20','sort','length','includes','4359820zwIgBV','BLOCKER','push','relativePath','**Screenshot:**','**Full\x20Trace:**\x20[View\x20in\x20Playwright\x20Trace\x20Viewer](','42ukUgtE','###\x20Summary','63537fXTlzo','join','47258YFgCnk','2628336hAgKaC','##\x20Task','---','screenshot','2093553mFBDwI','dnABC','45WNMCHs','###\x20','159468fOtSYo','map','jXIyh','#\x20Verification\x20Report','filename','**URL:**\x20','filter','MAJOR','10060MixiqO','**Generated:**\x20','split','severity','695akineT'];_0x2afb=function(){return _0x265f85;};return _0x2afb();}function _0x1326(_0x2b1a07,_0x4854cb){_0x2b1a07=_0x2b1a07-0x1ce;const _0x2afbd8=_0x2afb();let _0x1326df=_0x2afbd8[_0x2b1a07];return _0x1326df;}import{join}from'path';import{existsSync}from'fs';export async function collectScreenshots(_0x3badb1){const _0x28e04f=_0x1326,_0x5ce353={'pQESW':function(_0x4b7ba2,_0x42ec08){return _0x4b7ba2(_0x42ec08);},'jGDCc':function(_0x31f8c5,_0x4c4f8c,_0x363d92){return _0x31f8c5(_0x4c4f8c,_0x363d92);}},_0x5955d4=[],_0x52508d=[];if(!_0x5ce353['pQESW'](existsSync,_0x3badb1))return{'screenshots':_0x5955d4,'paths':_0x52508d};const _0x1ca73d=await readdir(_0x3badb1),_0x52acda=_0x1ca73d[_0x28e04f(0x1d5)](_0x2c14c6=>/\.(png|jpg|jpeg|gif|webp)$/i['test'](_0x2c14c6))[_0x28e04f(0x1e0)]();for(const _0x37af52 of _0x52acda){const _0x2ee621=_0x5ce353['jGDCc'](join,_0x3badb1,_0x37af52);_0x5955d4['push']({'filename':_0x37af52,'path':_0x2ee621,'relativePath':'./'+_0x37af52}),_0x52508d['push'](_0x2ee621);}return{'screenshots':_0x5955d4,'paths':_0x52508d};}function getSeverityEmoji(_0x1791a7){const _0x1aba33=_0x1326;switch(_0x1791a7){case _0x1aba33(0x1e4):return'🔴';case _0x1aba33(0x1d6):return'🟠';default:return'⚪';}}function formatScreenshotCaption(_0x34cdc5){const _0x27405e=_0x1326,_0x1f373e=_0x34cdc5['replace'](/\.(png|jpg|jpeg|gif|webp)$/i,''),_0x235922=_0x1f373e['replace'](/^\d+-/,'');return _0x235922[_0x27405e(0x1d9)]('-')[_0x27405e(0x1d0)](_0x36ec3c=>_0x36ec3c['charAt'](0x0)[_0x27405e(0x1dd)]()+_0x36ec3c['slice'](0x1))[_0x27405e(0x1ec)]('\x20');}export function generateMarkdownReport(_0x3935ed){const _0x2d1a70=_0x1326,_0x407f5c={'pIguK':function(_0x2e5e70,_0x430c53){return _0x2e5e70/_0x430c53;},'dnABC':'PASSED','jXIyh':function(_0x2893b3,_0x5834ae){return _0x2893b3>_0x5834ae;},'lMGCh':function(_0x4f0263,_0xb4d36c){return _0x4f0263(_0xb4d36c);}},{sessionId:_0x2d386e,task:_0x1072b6,url:_0x276b2a,success:_0x5a3cfd,summary:_0x38351a,issues:_0x57f317,screenshots:_0x4cebbd,durationMs:_0x101a20,traceViewerUrl:_0x2518dc}=_0x3935ed,_0x1f12b6=new Date()['toISOString'](),_0x51dec4=_0x407f5c['pIguK'](_0x101a20,0x3e8)['toFixed'](0x1),_0x179c6c=[];_0x179c6c['push'](_0x2d1a70(0x1d2)),_0x179c6c['push'](''),_0x179c6c[_0x2d1a70(0x1e5)]('**Session:**\x20`'+_0x2d386e+'`'),_0x179c6c[_0x2d1a70(0x1e5)](_0x2d1a70(0x1d8)+_0x1f12b6),_0x179c6c['push']('**Duration:**\x20'+_0x51dec4+'s'),_0x179c6c[_0x2d1a70(0x1e5)](''),_0x179c6c['push'](_0x2d1a70(0x1ef)),_0x179c6c[_0x2d1a70(0x1e5)](''),_0x179c6c['push'](_0x2d1a70(0x1d4)+_0x276b2a),_0x179c6c['push'](''),_0x179c6c[_0x2d1a70(0x1e5)]('>\x20'+_0x1072b6),_0x179c6c['push'](''),_0x179c6c[_0x2d1a70(0x1e5)]('##\x20Result'),_0x179c6c[_0x2d1a70(0x1e5)]('');const _0xd69cfe=_0x5a3cfd?'✅':'❌';_0x179c6c['push'](_0x2d1a70(0x1de)+_0xd69cfe+'\x20'+(_0x5a3cfd?_0x407f5c[_0x2d1a70(0x1f3)]:'ISSUES\x20FOUND')),_0x179c6c[_0x2d1a70(0x1e5)](''),_0x179c6c['push'](_0x2d1a70(0x1ea)),_0x179c6c[_0x2d1a70(0x1e5)](''),_0x179c6c['push'](_0x38351a),_0x179c6c['push']('');if(_0x57f317&&_0x57f317['length']>0x0){_0x179c6c['push'](_0x2d1a70(0x1dc)+_0x57f317[_0x2d1a70(0x1e1)]+')'),_0x179c6c['push']('');for(const _0x3ff110 of _0x57f317){const _0x21c7eb=getSeverityEmoji(_0x3ff110[_0x2d1a70(0x1da)]);_0x179c6c[_0x2d1a70(0x1e5)](_0x2d1a70(0x1df)+_0x21c7eb+'\x20['+_0x3ff110['severity']+']\x20Issue'),_0x179c6c[_0x2d1a70(0x1e5)](''),_0x179c6c[_0x2d1a70(0x1e5)](_0x3ff110['description']),_0x179c6c['push']('');if(_0x3ff110[_0x2d1a70(0x1f1)]){const _0x29f68a=_0x3ff110[_0x2d1a70(0x1f1)],_0x3dbf5d=_0x4cebbd['find'](_0x567203=>_0x567203[_0x2d1a70(0x1d3)]===_0x29f68a||_0x567203['filename'][_0x2d1a70(0x1e2)](_0x29f68a));_0x3dbf5d&&(_0x179c6c[_0x2d1a70(0x1e5)](_0x2d1a70(0x1e7)),_0x179c6c[_0x2d1a70(0x1e5)](''),_0x179c6c['push'](']+')'),_0x179c6c[_0x2d1a70(0x1e5)](''));}}}if(_0x407f5c[_0x2d1a70(0x1d1)](_0x4cebbd[_0x2d1a70(0x1e1)],0x0)){_0x179c6c[_0x2d1a70(0x1e5)]('##\x20Screenshots\x20('+_0x4cebbd[_0x2d1a70(0x1e1)]+')'),_0x179c6c[_0x2d1a70(0x1e5)]('');for(const _0x1270c of _0x4cebbd){const _0x40ba9b=_0x407f5c['lMGCh'](formatScreenshotCaption,_0x1270c[_0x2d1a70(0x1d3)]);_0x179c6c['push'](_0x2d1a70(0x1ce)+_0x40ba9b),_0x179c6c['push'](''),_0x179c6c['push']('!['+_0x1270c['filename']+']('+_0x1270c[_0x2d1a70(0x1e6)]+')'),_0x179c6c['push']('');}}return _0x2518dc&&(_0x179c6c[_0x2d1a70(0x1e5)](_0x2d1a70(0x1f0)),_0x179c6c[_0x2d1a70(0x1e5)](''),_0x179c6c['push'](_0x2d1a70(0x1e8)+_0x2518dc+')'),_0x179c6c[_0x2d1a70(0x1e5)]('')),_0x179c6c['join']('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x1313(_0x56156c,_0x5d9337){_0x56156c=_0x56156c-0xd9;const _0x406e85=_0x406e();let _0x1313e4=_0x406e85[_0x56156c];return _0x1313e4;}(function(_0x48b61c,_0x13ff9e){const _0x311bb7=_0x1313,_0x463509=_0x48b61c();while(!![]){try{const _0x279bf2=-parseInt(_0x311bb7(0xdc))/0x1*(parseInt(_0x311bb7(0xe9))/0x2)+parseInt(_0x311bb7(0xe0))/0x3*(parseInt(_0x311bb7(0xd9))/0x4)+parseInt(_0x311bb7(0xe4))/0x5*(parseInt(_0x311bb7(0xe3))/0x6)+-parseInt(_0x311bb7(0xe2))/0x7*(parseInt(_0x311bb7(0xdf))/0x8)+-parseInt(_0x311bb7(0xe7))/0x9*(-parseInt(_0x311bb7(0xda))/0xa)+parseInt(_0x311bb7(0xdb))/0xb*(-parseInt(_0x311bb7(0xdd))/0xc)+parseInt(_0x311bb7(0xe5))/0xd*(parseInt(_0x311bb7(0xe1))/0xe);if(_0x279bf2===_0x13ff9e)break;else _0x463509['push'](_0x463509['shift']());}catch(_0x4b8d59){_0x463509['push'](_0x463509['shift']());}}}(_0x406e,0xefa1c));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x406e(){const _0x3c03aa=['\x20failed\x20(attempt\x20','128882qaSLGi','3788HHWZGU','10AJYPhj','44TAoohp','16IzYvOg','3135036sfAOBl','error','40mTilLO','1233rgUYXh','24942092gFdlBb','1862126lWHZyo','3156HoxgtU','12395sYJwAN','13TgEroh','),\x20retrying\x20in\x20','8216469kpWCLv'];_0x406e=function(){return _0x3c03aa;};return _0x406e();}export async function withRetry(_0x5e0ee6,_0x4a426d){const _0x9f30b=_0x1313,_0x2a4a21=_0x4a426d?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x2935e3=_0x4a426d?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x3e1aea;for(let _0x1e2264=0x0;_0x1e2264<=_0x2a4a21;_0x1e2264++){try{return await _0x5e0ee6();}catch(_0x41fc5f){_0x3e1aea=_0x41fc5f instanceof Error?_0x41fc5f:new Error(String(_0x41fc5f));if(_0x1e2264<_0x2a4a21){const _0x489b51=_0x2935e3*Math['pow'](0x2,_0x1e2264);_0x4a426d?.['label']&&console[_0x9f30b(0xde)](_0x4a426d['label']+_0x9f30b(0xe8)+(_0x1e2264+0x1)+'/'+(_0x2a4a21+0x1)+_0x9f30b(0xe6)+_0x489b51+'ms...'),await new Promise(_0x394da4=>setTimeout(_0x394da4,_0x489b51));}}}throw _0x3e1aea;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0xdd1f(_0x4fde07,_0x1a0289){_0x4fde07=_0x4fde07-0x1d3;const _0x58a4dc=_0x58a4();let _0xdd1ffb=_0x58a4dc[_0x4fde07];return _0xdd1ffb;}function _0x58a4(){const _0xe9c481=['trim','utf-8','stringify','TRjwh','4SVQHHB','NITAf','lastPlanReminderAt','join','currentBranch','502uuMJBd','lastEnabledSessionClearedAt','UACdU','git\x20rev-parse\x20--abbrev-ref\x20HEAD','lJxhI','master','QYVZz','odKkU','main','3471819WIHRdX','xLAon','389TCzQgK','ECuBu','glkVU','enabled','sessions','clear','MilvH','9053FnRLuf','uMjIG','6115060KlhPeR','registeredAt','vStHb','6006717HxUZci','dPBXG','fSDaZ','cNkpr','existsSync','XegaN','.ranger_cache.json','31308xpexCh','toISOString','vkCqI','3315486UVtBzx','1992280mFLvuA','PhgBv','10curbiM','readFileSync','branches','BnNgR','mkdirSync','featureId','10CNvFkm'];_0x58a4=function(){return _0xe9c481;};return _0x58a4();}const _0x22c762=_0xdd1f;(function(_0x27ccfa,_0xb9210b){const _0x142e61=_0xdd1f,_0x1b307a=_0x27ccfa();while(!![]){try{const _0x4b1b0e=-parseInt(_0x142e61(0x1ef))/0x1*(-parseInt(_0x142e61(0x1e4))/0x2)+-parseInt(_0x142e61(0x1ed))/0x3*(-parseInt(_0x142e61(0x1df))/0x4)+parseInt(_0x142e61(0x1d4))/0x5*(parseInt(_0x142e61(0x205))/0x6)+parseInt(_0x142e61(0x1f8))/0x7+parseInt(_0x142e61(0x206))/0x8+parseInt(_0x142e61(0x1fb))/0x9*(-parseInt(_0x142e61(0x1da))/0xa)+parseInt(_0x142e61(0x1f6))/0xb*(-parseInt(_0x142e61(0x202))/0xc);if(_0x4b1b0e===_0xb9210b)break;else _0x1b307a['push'](_0x1b307a['shift']());}catch(_0x170321){_0x1b307a['push'](_0x1b307a['shift']());}}}(_0x58a4,0xa31a5));import*as _0x3d8f50 from'fs';import*as _0x4701a7 from'path';import*as _0x559989 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x4701a7[_0x22c762(0x1e2)](_0x559989['homedir'](),'.claude',_0x22c762(0x201));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x3d815c=_0x22c762,_0x18abe0={'BnNgR':function(_0x34ced1){return _0x34ced1();}};try{if(_0x3d8f50['existsSync'](CACHE_FILE)){const _0xafab77=JSON['parse'](_0x3d8f50[_0x3d815c(0x1d5)](CACHE_FILE,_0x3d815c(0x1dc)));return{'version':0x3,'sessions':_0xafab77['sessions']||{},'branches':_0xafab77['branches']||{},'lastEnabledSessionClearedAt':_0xafab77['lastEnabledSessionClearedAt']};}}catch{}return _0x18abe0[_0x3d815c(0x1d7)](createEmptyCache);}function saveCache(_0x4317d5){const _0x4e24ea=_0x22c762;try{const _0x4721ec=_0x4701a7['dirname'](CACHE_FILE);!_0x3d8f50[_0x4e24ea(0x1ff)](_0x4721ec)&&_0x3d8f50[_0x4e24ea(0x1d8)](_0x4721ec,{'recursive':!![]}),_0x3d8f50['writeFileSync'](CACHE_FILE,JSON[_0x4e24ea(0x1dd)](_0x4317d5,null,0x2));}catch{}}export function getCurrentBranch(){const _0x3015be=_0x22c762,_0x3b72cf={'glkVU':function(_0x568b05,_0x5ec725,_0x4febf5){return _0x568b05(_0x5ec725,_0x4febf5);},'UKixD':_0x3015be(0x1e7),'vStHb':_0x3015be(0x1dc),'lbSqH':'pipe'};try{const _0x77fbfe=_0x3b72cf[_0x3015be(0x1f1)](execSync,_0x3b72cf['UKixD'],{'encoding':_0x3b72cf[_0x3015be(0x1fa)],'stdio':['pipe',_0x3b72cf['lbSqH'],'pipe']})[_0x3015be(0x1db)]();if(!_0x77fbfe||_0x77fbfe==='HEAD')return null;return _0x77fbfe;}catch{return null;}}export function enableBranch(_0x2757dc){const _0x16e0b1=_0x22c762,_0x5f26a8={'fSDaZ':function(_0x3f705b,_0x9d3519){return _0x3f705b(_0x9d3519);}},_0x4a5e08=loadCache();_0x4a5e08[_0x16e0b1(0x1d6)][_0x2757dc]=!![],_0x5f26a8[_0x16e0b1(0x1fd)](saveCache,_0x4a5e08);}export function disableBranch(_0x442bb1){const _0x4ab76b=_0x22c762,_0x30f319=loadCache();delete _0x30f319[_0x4ab76b(0x1d6)][_0x442bb1],saveCache(_0x30f319);}export function isBranchEnabled(_0x366daa){const _0x1cda4d=_0x22c762,_0x7fad09={'TRjwh':function(_0x5a025f,_0x1cb014){return _0x5a025f===_0x1cb014;}},_0x20c884=loadCache();return _0x7fad09[_0x1cda4d(0x1de)](_0x20c884[_0x1cda4d(0x1d6)][_0x366daa],!![]);}function getOrCreateSession(_0x29c9f6,_0x4621d5){const _0x31e7ab=_0x22c762;return!_0x29c9f6[_0x31e7ab(0x1f3)][_0x4621d5]&&(_0x29c9f6[_0x31e7ab(0x1f3)][_0x4621d5]={}),_0x29c9f6['sessions'][_0x4621d5];}export function enableSession(_0x3befdd){const _0x6b8b5b=_0x22c762,_0x1bac76={'xLAon':function(_0x5ae171){return _0x5ae171();},'snnFN':function(_0xfb056f,_0x372f97,_0x57d14b){return _0xfb056f(_0x372f97,_0x57d14b);},'XegaN':function(_0xfac26e,_0x4158e7){return _0xfac26e!==_0x4158e7;}},_0x54627d=_0x1bac76['xLAon'](loadCache),_0x2300f5=_0x1bac76['snnFN'](getOrCreateSession,_0x54627d,_0x3befdd);_0x2300f5[_0x6b8b5b(0x1f2)]=!![];const _0x49d736=_0x1bac76[_0x6b8b5b(0x1ee)](getCurrentBranch);_0x49d736&&_0x1bac76[_0x6b8b5b(0x200)](_0x49d736,_0x6b8b5b(0x1ec))&&_0x1bac76['XegaN'](_0x49d736,'master')&&(_0x54627d['branches'][_0x49d736]=!![],_0x2300f5['currentBranch']=_0x49d736),saveCache(_0x54627d);}export function isSessionEnabled(_0x5f3318){const _0x4b389=_0x22c762,_0x55a3ce={'jbomb':function(_0x40cfbb,_0x4355be){return _0x40cfbb===_0x4355be;}},_0x5167e7=loadCache(),_0x1da75a=getCurrentBranch();if(!_0x1da75a||_0x1da75a===_0x4b389(0x1ec)||_0x1da75a===_0x4b389(0x1e9))return _0x5167e7['sessions'][_0x5f3318]?.[_0x4b389(0x1f2)]===!![];const _0x429e5e=_0x55a3ce['jbomb'](_0x5167e7['branches'][_0x1da75a],!![]),_0x48d7b4=_0x5167e7[_0x4b389(0x1f3)][_0x5f3318]?.['enabled']===!![];return _0x429e5e||_0x48d7b4;}export function disableSession(_0x2f1488){const _0x4a3fba=_0x22c762,_0x921347={'vkCqI':function(_0x10cb1d,_0x49f942,_0x32e0ff){return _0x10cb1d(_0x49f942,_0x32e0ff);},'cNkpr':function(_0x3fad68,_0x5dc928){return _0x3fad68(_0x5dc928);}},_0x4ef552=loadCache(),_0xec60d8=_0x921347[_0x4a3fba(0x204)](getOrCreateSession,_0x4ef552,_0x2f1488);_0xec60d8[_0x4a3fba(0x1f2)]=![],_0x921347[_0x4a3fba(0x1fe)](saveCache,_0x4ef552);}export function updateBranchTracking(_0x1d1c3d){const _0x390e88=_0x22c762,_0x5e89c2={'uMjIG':function(_0xf5acf5,_0x1aa439){return _0xf5acf5===_0x1aa439;},'ECuBu':'main','Jikyu':'master'},_0x21fa76=loadCache(),_0x100abb=_0x21fa76['sessions'][_0x1d1c3d];if(!_0x100abb?.['enabled'])return;const _0x47e357=getCurrentBranch();if(!_0x47e357||_0x5e89c2[_0x390e88(0x1f7)](_0x47e357,_0x5e89c2[_0x390e88(0x1f0)])||_0x47e357===_0x5e89c2['Jikyu'])return;_0x100abb[_0x390e88(0x1e3)]!==_0x47e357&&(_0x21fa76['branches'][_0x47e357]=!![],_0x100abb['currentBranch']=_0x47e357,saveCache(_0x21fa76));}export function initBranchTracking(_0x386c6d){const _0x2eb98a=_0x22c762,_0x2bdbc1={'jXaIA':function(_0x407ff9){return _0x407ff9();},'NITAf':function(_0x4b6b10,_0x447c7b){return _0x4b6b10===_0x447c7b;},'dPBXG':_0x2eb98a(0x1ec)},_0x18053c=_0x2bdbc1['jXaIA'](loadCache),_0x4974ab=getCurrentBranch();if(!_0x4974ab||_0x2bdbc1[_0x2eb98a(0x1e0)](_0x4974ab,_0x2bdbc1[_0x2eb98a(0x1fc)])||_0x2bdbc1[_0x2eb98a(0x1e0)](_0x4974ab,_0x2eb98a(0x1e9)))return;if(_0x2bdbc1['NITAf'](_0x18053c[_0x2eb98a(0x1d6)][_0x4974ab],!![])){const _0x2401f7=getOrCreateSession(_0x18053c,_0x386c6d);_0x2401f7[_0x2eb98a(0x1f2)]=!![],_0x2401f7[_0x2eb98a(0x1e3)]=_0x4974ab,saveCache(_0x18053c);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x268f70){const _0x4497f3=_0x22c762,_0x75619c=loadCache(),_0x4671be=_0x75619c['sessions'][_0x268f70];_0x4671be?.[_0x4497f3(0x1f2)]&&(_0x75619c['lastEnabledSessionClearedAt']=Date['now'](),saveCache(_0x75619c));}export function shouldAutoEnableAfterClear(_0x15e06d){const _0x4a2278=_0x22c762,_0x2eebbd={'asYxr':_0x4a2278(0x1f4),'NNZMl':function(_0x1a1ad3){return _0x1a1ad3();}};if(_0x15e06d!==_0x2eebbd['asYxr'])return![];const _0x64f161=_0x2eebbd['NNZMl'](loadCache),_0x333eb4=_0x64f161[_0x4a2278(0x1e5)];if(!_0x333eb4)return![];const _0x320eb1=Date['now']()-_0x333eb4;return _0x320eb1<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x126354){const _0x13a3de=_0x22c762,_0x50c585={'MilvH':function(_0x4214de,_0x52a882,_0x1da363){return _0x4214de(_0x52a882,_0x1da363);},'vcQCF':function(_0x5848d3,_0x44f04c){return _0x5848d3!==_0x44f04c;},'lJxhI':_0x13a3de(0x1e9),'EMPFF':function(_0x3fffd5,_0x1918b8){return _0x3fffd5(_0x1918b8);}},_0x149eba=loadCache(),_0x3c2941=_0x50c585[_0x13a3de(0x1f5)](getOrCreateSession,_0x149eba,_0x126354);_0x3c2941[_0x13a3de(0x1f2)]=!![];const _0x3267ee=getCurrentBranch();_0x3267ee&&_0x3267ee!=='main'&&_0x50c585['vcQCF'](_0x3267ee,_0x50c585[_0x13a3de(0x1e8)])&&(_0x3c2941[_0x13a3de(0x1e3)]=_0x3267ee),delete _0x149eba[_0x13a3de(0x1e5)],_0x50c585['EMPFF'](saveCache,_0x149eba);}export function registerSession(_0x409627,_0x41e105){const _0xf9d5dc=_0x22c762,_0x1fa43b={'rSPCH':function(_0x5346f1){return _0x5346f1();},'jTGLN':function(_0x40aa29,_0x598534,_0x45338a){return _0x40aa29(_0x598534,_0x45338a);}},_0x265a17=_0x1fa43b['rSPCH'](loadCache),_0x488125=_0x1fa43b['jTGLN'](getOrCreateSession,_0x265a17,_0x409627);_0x488125[_0xf9d5dc(0x1d9)]=_0x41e105,_0x488125[_0xf9d5dc(0x1f9)]=new Date()[_0xf9d5dc(0x203)](),saveCache(_0x265a17);}export function getSessionEntry(_0x2b34a2){const _0x4211db=_0x22c762,_0x2050dc={'XHfOf':function(_0x51c46b){return _0x51c46b();}},_0x20898d=_0x2050dc['XHfOf'](loadCache),_0x2da9d3=_0x20898d['sessions'][_0x2b34a2];if(_0x2da9d3?.[_0x4211db(0x1d9)]&&_0x2da9d3?.['registeredAt'])return{'featureId':_0x2da9d3['featureId'],'registeredAt':_0x2da9d3[_0x4211db(0x1f9)]};return null;}export function unregisterSession(_0x231e92){const _0x47ab6b=_0x22c762,_0x3ae18a={'koBpY':function(_0x434370){return _0x434370();},'CtjoM':function(_0x109e19,_0x40d326){return _0x109e19(_0x40d326);}},_0x413b53=_0x3ae18a['koBpY'](loadCache),_0x164386=_0x413b53[_0x47ab6b(0x1f3)][_0x231e92];_0x164386&&(delete _0x164386[_0x47ab6b(0x1d9)],delete _0x164386[_0x47ab6b(0x1f9)],_0x3ae18a['CtjoM'](saveCache,_0x413b53));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x235758){const _0x592796=_0x22c762,_0x18f585={'odKkU':function(_0x3e1587,_0x45fa32){return _0x3e1587>=_0x45fa32;},'QYVZz':function(_0x4a0109,_0x317dab){return _0x4a0109(_0x317dab);}},_0x32fb4c=loadCache(),_0xbfd4ea=getOrCreateSession(_0x32fb4c,_0x235758),_0x2a669f=_0xbfd4ea[_0x592796(0x1e1)]||0x0,_0x408de5=Date['now']();if(_0x18f585[_0x592796(0x1eb)](_0x408de5-_0x2a669f,PLAN_REMINDER_INTERVAL_MS))return _0xbfd4ea['lastPlanReminderAt']=_0x408de5,_0x18f585[_0x592796(0x1ea)](saveCache,_0x32fb4c),!![];return![];}export function hasSessionBeenPrompted(_0x2a7115){const _0x3c7c05=_0x22c762,_0x91d627={'IoGzJ':function(_0x676036){return _0x676036();},'jZlQi':function(_0x339ef2,_0x3130ed){return _0x339ef2===_0x3130ed;}},_0x28c8bd=_0x91d627['IoGzJ'](loadCache);return _0x91d627['jZlQi'](_0x28c8bd[_0x3c7c05(0x1f3)][_0x2a7115]?.['prompted'],!![]);}export function markSessionPrompted(_0x337071){const _0x48bb9b=_0x22c762,_0x216d5f={'UACdU':function(_0x809af8,_0x174d46,_0x4ac2d4){return _0x809af8(_0x174d46,_0x4ac2d4);},'PhgBv':function(_0x413b76,_0xff4089){return _0x413b76(_0xff4089);}},_0x5035ae=loadCache(),_0x2cbaf5=_0x216d5f[_0x48bb9b(0x1e6)](getOrCreateSession,_0x5035ae,_0x337071);_0x2cbaf5['prompted']=!![],_0x216d5f[_0x48bb9b(0x1d3)](saveCache,_0x5035ae);}export function getCacheFile(){return CACHE_FILE;}
|
|
1
|
+
const _0xcd620c=_0x170b;(function(_0x43abcd,_0x2c7bbd){const _0x1896f9=_0x170b,_0x3b3fe4=_0x43abcd();while(!![]){try{const _0x5c856d=parseInt(_0x1896f9(0x14f))/0x1*(parseInt(_0x1896f9(0x163))/0x2)+-parseInt(_0x1896f9(0x162))/0x3*(parseInt(_0x1896f9(0x16f))/0x4)+-parseInt(_0x1896f9(0x16b))/0x5+-parseInt(_0x1896f9(0x150))/0x6*(-parseInt(_0x1896f9(0x157))/0x7)+-parseInt(_0x1896f9(0x146))/0x8+parseInt(_0x1896f9(0x16a))/0x9*(parseInt(_0x1896f9(0x167))/0xa)+parseInt(_0x1896f9(0x151))/0xb*(-parseInt(_0x1896f9(0x175))/0xc);if(_0x5c856d===_0x2c7bbd)break;else _0x3b3fe4['push'](_0x3b3fe4['shift']());}catch(_0x59ed93){_0x3b3fe4['push'](_0x3b3fe4['shift']());}}}(_0x5c36,0x20c19));import*as _0x5903d1 from'fs';import*as _0x24a72f from'path';import*as _0xaaf4b5 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x24a72f[_0xcd620c(0x15d)](_0xaaf4b5[_0xcd620c(0x173)](),_0xcd620c(0x158),'.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x33aaa4=_0xcd620c,_0x1dd7f2={'UwmqN':'utf-8','PjhIa':function(_0x310206){return _0x310206();}};try{if(_0x5903d1['existsSync'](CACHE_FILE)){const _0x55ceab=JSON[_0x33aaa4(0x170)](_0x5903d1['readFileSync'](CACHE_FILE,_0x1dd7f2[_0x33aaa4(0x16c)]));return{'version':0x3,'sessions':_0x55ceab[_0x33aaa4(0x143)]||{},'branches':_0x55ceab[_0x33aaa4(0x171)]||{},'lastEnabledSessionClearedAt':_0x55ceab['lastEnabledSessionClearedAt']};}}catch{}return _0x1dd7f2['PjhIa'](createEmptyCache);}function saveCache(_0x322fe0){const _0x189a37=_0xcd620c;try{const _0x2b858a=_0x24a72f['dirname'](CACHE_FILE);!_0x5903d1['existsSync'](_0x2b858a)&&_0x5903d1['mkdirSync'](_0x2b858a,{'recursive':!![]}),_0x5903d1['writeFileSync'](CACHE_FILE,JSON[_0x189a37(0x168)](_0x322fe0,null,0x2));}catch{}}export function getCurrentBranch(){const _0xfcb4b1=_0xcd620c,_0x43b74a={'NgbSE':_0xfcb4b1(0x145),'aKfyK':'pipe'};try{const _0xdd2698=execSync(_0x43b74a['NgbSE'],{'encoding':'utf-8','stdio':[_0x43b74a[_0xfcb4b1(0x149)],_0x43b74a['aKfyK'],_0xfcb4b1(0x159)]})['trim']();if(!_0xdd2698||_0xdd2698===_0xfcb4b1(0x15c))return null;return _0xdd2698;}catch{return null;}}export function enableBranch(_0x4bea66){const _0x20a34a=loadCache();_0x20a34a['branches'][_0x4bea66]=!![],saveCache(_0x20a34a);}export function disableBranch(_0x3e8435){const _0x42e03d=_0xcd620c,_0x18da50={'jAOLZ':function(_0x2eaccb){return _0x2eaccb();},'dYxjv':function(_0x6e816d,_0xa8b781){return _0x6e816d(_0xa8b781);}},_0x1459af=_0x18da50[_0x42e03d(0x148)](loadCache);delete _0x1459af[_0x42e03d(0x171)][_0x3e8435],_0x18da50['dYxjv'](saveCache,_0x1459af);}export function isBranchEnabled(_0xd7d7b9){const _0x387e94=_0xcd620c,_0x2a559f={'gwJmv':function(_0x1efb08){return _0x1efb08();}},_0x443727=_0x2a559f['gwJmv'](loadCache);return _0x443727[_0x387e94(0x171)][_0xd7d7b9]===!![];}function getOrCreateSession(_0x3a7fbc,_0x56b2ec){const _0x176fe1=_0xcd620c;return!_0x3a7fbc[_0x176fe1(0x143)][_0x56b2ec]&&(_0x3a7fbc['sessions'][_0x56b2ec]={}),_0x3a7fbc['sessions'][_0x56b2ec];}export function enableSession(_0x477bb3){const _0x4cb19b=_0xcd620c,_0x1f75e2={'llVLF':function(_0x1bfa8f){return _0x1bfa8f();},'YVIeF':function(_0xb1d6ea,_0x5c1b6e,_0x1bc618){return _0xb1d6ea(_0x5c1b6e,_0x1bc618);},'qdlfl':function(_0x19d71c,_0x5daef0){return _0x19d71c!==_0x5daef0;},'hlbTr':_0x4cb19b(0x15f),'bQctA':function(_0x5f1bed,_0x49795c){return _0x5f1bed(_0x49795c);}},_0x185e76=_0x1f75e2['llVLF'](loadCache),_0x36ca03=_0x1f75e2['YVIeF'](getOrCreateSession,_0x185e76,_0x477bb3);_0x36ca03['enabled']=!![];const _0xa1cbe=getCurrentBranch();_0xa1cbe&&_0x1f75e2['qdlfl'](_0xa1cbe,'main')&&_0xa1cbe!==_0x1f75e2['hlbTr']&&(_0x185e76[_0x4cb19b(0x171)][_0xa1cbe]=!![],_0x36ca03['currentBranch']=_0xa1cbe),_0x1f75e2[_0x4cb19b(0x161)](saveCache,_0x185e76);}export function isSessionEnabled(_0x55664b){const _0x567607=_0xcd620c,_0x44af6d={'ruTgZ':function(_0x130e66){return _0x130e66();},'CmQUg':function(_0x22da43,_0x4fbbd1){return _0x22da43===_0x4fbbd1;},'Tviub':function(_0x3d2744,_0x114413){return _0x3d2744===_0x114413;},'lmziQ':_0x567607(0x15f),'jAMbE':function(_0x51dc36,_0x3e8944){return _0x51dc36===_0x3e8944;},'IvUBf':function(_0x4e55fd,_0x33c7eb){return _0x4e55fd||_0x33c7eb;}},_0x26614d=_0x44af6d[_0x567607(0x156)](loadCache),_0x204b20=_0x44af6d['ruTgZ'](getCurrentBranch);if(!_0x204b20||_0x44af6d[_0x567607(0x14e)](_0x204b20,_0x567607(0x155))||_0x44af6d['Tviub'](_0x204b20,_0x44af6d[_0x567607(0x165)]))return _0x26614d['sessions'][_0x55664b]?.['enabled']===!![];const _0x3ebe5b=_0x44af6d[_0x567607(0x15b)](_0x26614d[_0x567607(0x171)][_0x204b20],!![]),_0xf8dd00=_0x26614d[_0x567607(0x143)][_0x55664b]?.[_0x567607(0x172)]===!![];return _0x44af6d['IvUBf'](_0x3ebe5b,_0xf8dd00);}export function disableSession(_0x4c5fcc){const _0x59a4d8=_0xcd620c,_0x1f719b={'FsaAi':function(_0x4f48aa,_0x22a9ba){return _0x4f48aa(_0x22a9ba);}},_0xb9615=loadCache(),_0x3c55dd=getOrCreateSession(_0xb9615,_0x4c5fcc);_0x3c55dd[_0x59a4d8(0x172)]=![],_0x1f719b[_0x59a4d8(0x166)](saveCache,_0xb9615);}function _0x5c36(){const _0x123655=['now','currentBranch','16uVtYgK','parse','branches','enabled','homedir','oeuhp','12cWKVtS','sessions','lastPlanReminderAt','git\x20rev-parse\x20--abbrev-ref\x20HEAD','268968YExhCj','featureId','jAOLZ','aKfyK','AcKCK','lastEnabledSessionClearedAt','GDiBl','emKpJ','CmQUg','5373OMprHc','143178lxginE','1912999oMJsPv','gLHPE','DIldJ','LuQFa','main','ruTgZ','42jhOpDz','.claude','pipe','clear','jAMbE','HEAD','join','TzZhx','master','prompted','bQctA','65220RDZxjM','54AfGlHd','lastStopReminderAt','lmziQ','FsaAi','4970kdHaCv','stringify','registeredAt','3231HAvwTy','190065LOHOFt','UwmqN'];_0x5c36=function(){return _0x123655;};return _0x5c36();}export function updateBranchTracking(_0x4be38d){const _0x13a4aa=_0xcd620c,_0x430a40={'gLHPE':function(_0x470216){return _0x470216();},'AcKCK':_0x13a4aa(0x155),'DIldJ':function(_0x1774f3,_0x40753d){return _0x1774f3(_0x40753d);}},_0x5b685d=_0x430a40[_0x13a4aa(0x152)](loadCache),_0x17025d=_0x5b685d['sessions'][_0x4be38d];if(!_0x17025d?.[_0x13a4aa(0x172)])return;const _0x512149=_0x430a40['gLHPE'](getCurrentBranch);if(!_0x512149||_0x512149===_0x430a40[_0x13a4aa(0x14a)]||_0x512149==='master')return;_0x17025d[_0x13a4aa(0x16e)]!==_0x512149&&(_0x5b685d['branches'][_0x512149]=!![],_0x17025d[_0x13a4aa(0x16e)]=_0x512149,_0x430a40[_0x13a4aa(0x153)](saveCache,_0x5b685d));}function _0x170b(_0x3a9bfc,_0x13bac0){_0x3a9bfc=_0x3a9bfc-0x143;const _0x5c362b=_0x5c36();let _0x170b8d=_0x5c362b[_0x3a9bfc];return _0x170b8d;}export function initBranchTracking(_0x18b093){const _0x1615e8=_0xcd620c,_0x224b8c={'ruhwx':function(_0x521bb6,_0x4a0915){return _0x521bb6===_0x4a0915;}},_0x27c4b2=loadCache(),_0x4ed411=getCurrentBranch();if(!_0x4ed411||_0x4ed411==='main'||_0x224b8c['ruhwx'](_0x4ed411,'master'))return;if(_0x27c4b2[_0x1615e8(0x171)][_0x4ed411]===!![]){const _0x4e6004=getOrCreateSession(_0x27c4b2,_0x18b093);_0x4e6004['enabled']=!![],_0x4e6004['currentBranch']=_0x4ed411,saveCache(_0x27c4b2);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x402935){const _0x3c2a3a=_0xcd620c,_0x35d8dd={'LuQFa':function(_0x1c072a,_0x411150){return _0x1c072a(_0x411150);}},_0x78215a=loadCache(),_0xf84858=_0x78215a['sessions'][_0x402935];_0xf84858?.[_0x3c2a3a(0x172)]&&(_0x78215a['lastEnabledSessionClearedAt']=Date['now'](),_0x35d8dd[_0x3c2a3a(0x154)](saveCache,_0x78215a));}export function shouldAutoEnableAfterClear(_0x1b3ad5){const _0x322ff1=_0xcd620c,_0x4d0d1c={'YIloa':function(_0x5e8ce2,_0x102443){return _0x5e8ce2-_0x102443;}};if(_0x1b3ad5!==_0x322ff1(0x15a))return![];const _0x454c66=loadCache(),_0x2ecfa2=_0x454c66[_0x322ff1(0x14b)];if(!_0x2ecfa2)return![];const _0x2bfe3b=_0x4d0d1c['YIloa'](Date['now'](),_0x2ecfa2);return _0x2bfe3b<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x483013){const _0x4b2927=_0xcd620c,_0x2f5d7e={'iCNCO':function(_0xe23f45){return _0xe23f45();},'pStcZ':'master'},_0x16dbaa=_0x2f5d7e['iCNCO'](loadCache),_0x3b90aa=getOrCreateSession(_0x16dbaa,_0x483013);_0x3b90aa['enabled']=!![];const _0x50c3eb=_0x2f5d7e['iCNCO'](getCurrentBranch);_0x50c3eb&&_0x50c3eb!==_0x4b2927(0x155)&&_0x50c3eb!==_0x2f5d7e['pStcZ']&&(_0x3b90aa[_0x4b2927(0x16e)]=_0x50c3eb),delete _0x16dbaa[_0x4b2927(0x14b)],saveCache(_0x16dbaa);}export function registerSession(_0x5506bd,_0x2642e6){const _0x4c702b=_0xcd620c,_0x2850dd={'oeuhp':function(_0x21dc65,_0x1d3572){return _0x21dc65(_0x1d3572);}},_0x58bb12=loadCache(),_0x21047e=getOrCreateSession(_0x58bb12,_0x5506bd);_0x21047e[_0x4c702b(0x147)]=_0x2642e6,_0x21047e['registeredAt']=new Date()['toISOString'](),_0x2850dd[_0x4c702b(0x174)](saveCache,_0x58bb12);}export function getSessionEntry(_0x26db13){const _0x5434d5=_0xcd620c,_0x253b5a={'GDiBl':function(_0x4b1325){return _0x4b1325();}},_0x1e1ae8=_0x253b5a[_0x5434d5(0x14c)](loadCache),_0x357513=_0x1e1ae8['sessions'][_0x26db13];if(_0x357513?.['featureId']&&_0x357513?.['registeredAt'])return{'featureId':_0x357513['featureId'],'registeredAt':_0x357513['registeredAt']};return null;}export function unregisterSession(_0x458199){const _0x84297b=_0xcd620c,_0x13c9cd=loadCache(),_0x1fa295=_0x13c9cd['sessions'][_0x458199];_0x1fa295&&(delete _0x1fa295[_0x84297b(0x147)],delete _0x1fa295[_0x84297b(0x169)],saveCache(_0x13c9cd));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x4c2927){const _0x90f9ea=_0xcd620c,_0x480614={'YEPGZ':function(_0x5c45f5){return _0x5c45f5();},'TzZhx':function(_0x2ce376,_0x47561c,_0x1d38d9){return _0x2ce376(_0x47561c,_0x1d38d9);}},_0x6576d1=_0x480614['YEPGZ'](loadCache),_0x7538d=_0x480614[_0x90f9ea(0x15e)](getOrCreateSession,_0x6576d1,_0x4c2927),_0x39fd74=_0x7538d['lastPlanReminderAt']||0x0,_0x2dafb7=Date[_0x90f9ea(0x16d)]();if(_0x2dafb7-_0x39fd74>=PLAN_REMINDER_INTERVAL_MS)return _0x7538d[_0x90f9ea(0x144)]=_0x2dafb7,saveCache(_0x6576d1),!![];return![];}export function shouldShowStopReminder(_0x1dcc7c){const _0x16d72c=_0xcd620c,_0xfba7bc={'emKpJ':function(_0x37d66b,_0x3d4aed){return _0x37d66b>=_0x3d4aed;},'GgQJt':function(_0x18198d,_0x2b9038){return _0x18198d-_0x2b9038;}},_0x278152=loadCache(),_0x47bb01=getOrCreateSession(_0x278152,_0x1dcc7c),_0x14a51b=_0x47bb01[_0x16d72c(0x164)]||0x0,_0x1d5718=Date['now']();if(_0xfba7bc[_0x16d72c(0x14d)](_0xfba7bc['GgQJt'](_0x1d5718,_0x14a51b),STOP_REMINDER_INTERVAL_MS))return _0x47bb01[_0x16d72c(0x164)]=_0x1d5718,saveCache(_0x278152),!![];return![];}export function hasSessionBeenPrompted(_0x5e28dc){const _0x2b6852=_0xcd620c,_0x6850da=loadCache();return _0x6850da[_0x2b6852(0x143)][_0x5e28dc]?.[_0x2b6852(0x160)]===!![];}export function markSessionPrompted(_0x244730){const _0x11dedf=_0xcd620c,_0x3fc2f7={'aoAHP':function(_0x21e14e){return _0x21e14e();},'JfTWl':function(_0x41aecf,_0x313371,_0x2e0b66){return _0x41aecf(_0x313371,_0x2e0b66);}},_0x22ee9c=_0x3fc2f7['aoAHP'](loadCache),_0x1a2ea9=_0x3fc2f7['JfTWl'](getOrCreateSession,_0x22ee9c,_0x244730);_0x1a2ea9[_0x11dedf(0x160)]=!![],saveCache(_0x22ee9c);}export function getCacheFile(){return CACHE_FILE;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2837b3=_0x3740;(function(_0x334288,_0x44a81c){const _0x2d7567=_0x3740,_0x5751c6=_0x334288();while(!![]){try{const _0x20c755=parseInt(_0x2d7567(0x1be))/0x1+parseInt(_0x2d7567(0x18d))/0x2*(-parseInt(_0x2d7567(0x186))/0x3)+-parseInt(_0x2d7567(0x18a))/0x4*(parseInt(_0x2d7567(0x174))/0x5)+parseInt(_0x2d7567(0x1a6))/0x6*(parseInt(_0x2d7567(0x16c))/0x7)+parseInt(_0x2d7567(0x17d))/0x8+-parseInt(_0x2d7567(0x1bb))/0x9*(-parseInt(_0x2d7567(0x1b4))/0xa)+parseInt(_0x2d7567(0x1ba))/0xb;if(_0x20c755===_0x44a81c)break;else _0x5751c6['push'](_0x5751c6['shift']());}catch(_0x5d0790){_0x5751c6['push'](_0x5751c6['shift']());}}}(_0x41a3,0x6690c));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(_0x225e93){const _0x34b311=_0x3740,_0x3d79ac={'dqFon':function(_0xa3beb3,_0x3d335b,_0x14a22c,_0x3e7584){return _0xa3beb3(_0x3d335b,_0x14a22c,_0x3e7584);},'vwpww':function(_0x55ed9a,_0x203319,_0xea7ca4){return _0x55ed9a(_0x203319,_0xea7ca4);},'RgGkG':function(_0x6d9ab3,_0x2136c3){return _0x6d9ab3(_0x2136c3);},'hjeSP':function(_0x464bbb,_0x262ef){return _0x464bbb(_0x262ef);},'IvUQi':function(_0x48162,_0x3d27e4){return _0x48162!==_0x3d27e4;},'yOQyr':function(_0x3c597a,_0x25c8ba){return _0x3c597a(_0x25c8ba);}},_0x36047f=getRangerDir(),_0x4cfdaf=_0x3d79ac['dqFon'](join,_0x36047f,'ci',_0x225e93),_0x5e4043=join(_0x36047f,_0x34b311(0x160),_0x225e93),_0x47201c=_0x3d79ac[_0x34b311(0x16f)](join,_0x36047f,_0x225e93),_0x36700d=join(_0x36047f,_0x34b311(0x160)),_0x1e7f24=join(_0x36047f,'ci');if(existsSync(_0x4cfdaf))return _0x4cfdaf;if(_0x3d79ac['RgGkG'](existsSync,_0x5e4043))return _0x5e4043;if(_0x3d79ac[_0x34b311(0x161)](existsSync,_0x47201c)&&(_0x47201c!==_0x36700d&&_0x3d79ac['IvUQi'](_0x47201c,_0x1e7f24)?!![]:_0x3d79ac['yOQyr'](hasLegacyProfileFiles,_0x47201c)))return _0x47201c;return _0x5e4043;}function _0x41a3(){const _0x2a5ca4=['install','dtqHW','3098128FAGuQy','9ohZZQD','mmVAg','aycRa','279538caAGIQ','QmFCs','blqWC','MKoDD','YSOJb','zGxbd','xKEkA','local','hjeSP','cWBfH','--allow-running-insecure-content','FVjIw','contextOptions','isArray','QrujZ','chromium','--unsafely-treat-insecure-origin-as-secure=http://localhost','push','string','91QAukbE','clipboard-write','TZcEw','vwpww','RGWAk','fcSdo','ranger-config','object','35AbNSVZ','storageStatePath','safeMode','ranger-auth-','auth.json','stringify','location','entries','yiShR','470520NCbyVB','VjjAW','length','SMxlW','aUZsG','UNphT','FXfSF','jLwNi','args','1561947mzfawW','WJcrz','join','DXTVC','116016mrFBHL','locations','aoRIn','2ByBBKA','oLUaS','path','vMnWS','GBjIk','WNBWp','userAgent','configPath','auth.json.enc','headers','oqnFj','keys','allowInsecureLocalhost','none','ENOENT','getuid','replace','storageState','-cli.json','allow','YsXRu','file','ncmQE','GUfwb','warn','103722XVdYmT','wykux','cdpEndpoint','split','headless','--disable-setuid-sandbox','chmKm','map','srxEz','settings.json','extraHTTPHeaders','ainiG','tabs','BuLwd','2990530Txlknx','\x20is\x20not\x20set','includes','filter'];_0x41a3=function(){return _0x2a5ca4;};return _0x41a3();}export function findExistingEnv(_0x44accb,_0x5825f4){const _0x279586=_0x3740,_0x17bcbc={'ZGiEc':function(_0x5a034c){return _0x5a034c();},'dtqHW':'legacy','kukYT':function(_0x153db3,_0x1bc306,_0x22f0c0){return _0x153db3(_0x1bc306,_0x22f0c0);},'FXfSF':function(_0x21d9f6,_0x5892cf,_0x539c15,_0x14bcb4){return _0x21d9f6(_0x5892cf,_0x539c15,_0x14bcb4);},'MKoDD':_0x279586(0x160)},_0x19099f=_0x17bcbc['ZGiEc'](getRangerDir),_0x1d6412=_0x5825f4?.[_0x279586(0x18b)]??['ci','local',_0x17bcbc['dtqHW']],_0x186803=_0x17bcbc['kukYT'](join,_0x19099f,'local'),_0x4f3fad=join(_0x19099f,'ci'),_0x936c20=[{'location':'ci','path':_0x17bcbc[_0x279586(0x183)](join,_0x19099f,'ci',_0x44accb)},{'location':_0x17bcbc['MKoDD'],'path':_0x17bcbc[_0x279586(0x183)](join,_0x19099f,_0x17bcbc[_0x279586(0x1c1)],_0x44accb)},{'location':_0x17bcbc[_0x279586(0x1b9)],'path':join(_0x19099f,_0x44accb)}];for(const _0x2e86fc of _0x936c20){if(_0x1d6412['includes'](_0x2e86fc['location'])&&existsSync(_0x2e86fc[_0x279586(0x18f)])){if(_0x2e86fc[_0x279586(0x17a)]==='legacy'&&(_0x2e86fc[_0x279586(0x18f)]===_0x186803||_0x2e86fc[_0x279586(0x18f)]===_0x4f3fad)&&!hasLegacyProfileFiles(_0x2e86fc[_0x279586(0x18f)]))continue;return{'path':_0x2e86fc['path'],'location':_0x2e86fc[_0x279586(0x17a)]};}}return null;}function hasLegacyProfileFiles(_0x4098c6){const _0x5e72e1=_0x3740,_0x47f8a3={'ncmQE':function(_0x3c863b,_0x331fe1,_0x917ef1){return _0x3c863b(_0x331fe1,_0x917ef1);},'pHTza':_0x5e72e1(0x178)};return existsSync(_0x47f8a3[_0x5e72e1(0x1a3)](join,_0x4098c6,_0x5e72e1(0x1af)))||existsSync(join(_0x4098c6,_0x47f8a3['pHTza']))||existsSync(join(_0x4098c6,'auth.json.enc'));}export function isEnvCi(_0x554b94){const _0xe844f7=_0x3740,_0xce9043={'vMnWS':function(_0x2bcfd5){return _0x2bcfd5();}};return existsSync(join(_0xce9043[_0xe844f7(0x190)](getRangerDir),'ci',_0x554b94));}export async function cleanupTempFiles(_0xef05d3){const _0x124e62=_0x3740,_0xdbb5c9={'jEKkt':function(_0x92d4d3,_0xa797f4){return _0x92d4d3!==_0xa797f4;}},_0x1e2172=[_0xef05d3['tempAuthPath'],_0xef05d3[_0x124e62(0x194)]]['filter'](Boolean);await Promise['all'](_0x1e2172[_0x124e62(0x1ad)](_0x3ec50f=>unlink(_0x3ec50f)['catch'](_0x2a505f=>{const _0x583728=_0x124e62;_0xdbb5c9['jEKkt'](_0x2a505f['code'],_0x583728(0x19b))&&console[_0x583728(0x1a5)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x3ec50f+':',_0x2a505f['message']);})));}export function getSettingsPath(_0x28d2c0){const _0x5ae06e=_0x3740,_0xa7cfe0={'SMyoD':function(_0xb9b0ff,_0x3c9880,_0x149ed4){return _0xb9b0ff(_0x3c9880,_0x149ed4);},'WNBWp':function(_0x12ef8f,_0x3f5a8a){return _0x12ef8f(_0x3f5a8a);}};return _0xa7cfe0['SMyoD'](join,_0xa7cfe0[_0x5ae06e(0x192)](getEnvDir,_0x28d2c0),'settings.json');}export async function loadSettings(_0x1c9cfb){const _0x265c0e={'LUDnx':function(_0x5ba396,_0x288a92,_0x1d7f18){return _0x5ba396(_0x288a92,_0x1d7f18);}},_0x253c6f=getSettingsPath(_0x1c9cfb);if(!existsSync(_0x253c6f))return{};try{const _0x368078=await _0x265c0e['LUDnx'](readFile,_0x253c6f,'utf-8');return JSON['parse'](_0x368078);}catch{return{};}}export async function saveSettings(_0x2c7072,_0x51cd38){const _0x3b4669=_0x3740,_0x383abe={'srxEz':function(_0x44d0e5,_0x10291e){return _0x44d0e5(_0x10291e);}},_0x15716e=getSettingsPath(_0x2c7072),_0x4594f5=dirname(_0x15716e);!_0x383abe[_0x3b4669(0x1ae)](existsSync,_0x4594f5)&&await mkdir(_0x4594f5,{'recursive':!![]}),await writeFile(_0x15716e,JSON['stringify'](_0x51cd38,null,0x2));}export function resolveEnvVars(_0x2c694f){const _0x1601f4=_0x3740,_0x3b1ebc={'yFaUr':function(_0x7e6fbb,_0x304836){return _0x7e6fbb===_0x304836;}};if(typeof _0x2c694f===_0x1601f4(0x16b))return _0x2c694f[_0x1601f4(0x19d)](/\$\{(\w+)\}/g,(_0x57b12d,_0x3c186a)=>{const _0x5535f8=_0x1601f4,_0x4974bb=process['env'][_0x3c186a];if(_0x3b1ebc['yFaUr'](_0x4974bb,undefined))throw new Error('Environment\x20variable\x20'+_0x3c186a+_0x5535f8(0x1b5));return _0x4974bb;});if(Array[_0x1601f4(0x166)](_0x2c694f))return _0x2c694f['map'](resolveEnvVars);if(_0x2c694f&&typeof _0x2c694f==='object')return Object['fromEntries'](Object['entries'](_0x2c694f)[_0x1601f4(0x1ad)](([_0x177f8f,_0x3badb7])=>[_0x177f8f,resolveEnvVars(_0x3badb7)]));return _0x2c694f;}const isRecord=_0x33be67=>typeof _0x33be67===_0x2837b3(0x173)&&_0x33be67!==null&&!Array[_0x2837b3(0x166)](_0x33be67),asRecord=_0x2aed54=>isRecord(_0x2aed54)?_0x2aed54:undefined,mergeHeaders=(_0x167c16,_0x1cb9bb)=>{const _0x3c33a9=_0x2837b3,_0x1781de={'xKEkA':function(_0x19ed6f,_0x3e6ce8){return _0x19ed6f??_0x3e6ce8;}},_0x225185={..._0x167c16??{},..._0x1781de[_0x3c33a9(0x1c4)](_0x1cb9bb,{})};return Object[_0x3c33a9(0x198)](_0x225185)[_0x3c33a9(0x17f)]?_0x225185:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=['--disable-web-security',_0x2837b3(0x163),_0x2837b3(0x169)];function _0x3740(_0x5ce13c,_0x59d37f){_0x5ce13c=_0x5ce13c-0x160;const _0x41a317=_0x41a3();let _0x374050=_0x41a317[_0x5ce13c];return _0x374050;}export function buildBrowserOptionsFromSettings(_0x7c38a0,_0x509489={}){const _0x49b9f6=_0x2837b3,_0x54d975={'WJcrz':function(_0x47d4f1,_0x4b86c2){return _0x47d4f1===_0x4b86c2;},'hZlAC':'boolean','pgSaP':function(_0x5de7ed,_0x27c119){return _0x5de7ed(_0x27c119);}},_0x13110d=asRecord(_0x7c38a0['browser']),_0x4b76fc={...asRecord(_0x13110d?.['launchOptions'])??{}};_0x54d975[_0x49b9f6(0x187)](typeof _0x509489['headless'],_0x54d975['hZlAC'])&&(_0x4b76fc['headless']=_0x509489[_0x49b9f6(0x1aa)]);if(_0x7c38a0[_0x49b9f6(0x176)]){const _0x259317=_0x4b76fc[_0x49b9f6(0x185)]??[],_0x2506bb=SAFE_MODE_ARGS['filter'](_0x41548f=>!_0x259317[_0x49b9f6(0x1b6)](_0x41548f));_0x4b76fc[_0x49b9f6(0x185)]=[..._0x259317,..._0x2506bb];}if(_0x7c38a0[_0x49b9f6(0x199)]){const _0x571323=_0x4b76fc['args']??[],_0x5ebfd9=ALLOW_LOCALHOST_ARGS['filter'](_0x4f470f=>!_0x571323[_0x49b9f6(0x1b6)](_0x4f470f));_0x4b76fc['args']=[..._0x571323,..._0x5ebfd9];}const _0x422207={...asRecord(_0x13110d?.['contextOptions'])??{}};_0x54d975['WJcrz'](typeof _0x7c38a0['userAgent'],_0x49b9f6(0x16b))&&(_0x422207[_0x49b9f6(0x193)]=_0x7c38a0[_0x49b9f6(0x193)]);const _0x29c5de=mergeHeaders(asRecord(_0x422207[_0x49b9f6(0x1b0)]),_0x54d975['pgSaP'](asRecord,_0x7c38a0['headers']));return _0x29c5de?_0x422207['extraHTTPHeaders']=_0x29c5de:delete _0x422207[_0x49b9f6(0x1b0)],_0x509489['storageStatePath']&&(_0x422207[_0x49b9f6(0x19e)]=_0x509489[_0x49b9f6(0x175)]),{'launchOptions':_0x4b76fc,'contextOptions':_0x422207};}export async function buildPlaywrightConfig(_0x3b399f,_0x1b2e28,_0x128739,_0x431327){const _0x1c76de=_0x2837b3,_0x17c27a={'oLUaS':function(_0x2be798,_0x1a0940,_0x5277fc){return _0x2be798(_0x1a0940,_0x5277fc);},'wykux':function(_0x17ad50,_0xfe268d){return _0x17ad50===_0xfe268d;},'RGWAk':'--disable-setuid-sandbox','fcSdo':_0x1c76de(0x16d),'BuLwd':function(_0x33e22b,_0x406b0f,_0x4aa1de){return _0x33e22b(_0x406b0f,_0x4aa1de);},'VjjAW':'auth.json.enc','YsXRu':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','QmFCs':function(_0x217a79,_0x110ad1){return _0x217a79 instanceof _0x110ad1;},'mmVAg':function(_0x430a0d,_0x216bf7){return _0x430a0d(_0x216bf7);},'TZkml':function(_0xe74ac6){return _0xe74ac6();},'aUZsG':'core','cWBfH':_0x1c76de(0x1b2),'bzMBG':_0x1c76de(0x1b8),'blqWC':'pdf','zGxbd':'vision','yiShR':_0x1c76de(0x1a0),'LJGLq':function(_0x44b261,_0xe7932){return _0x44b261===_0xe7932;},'yqCmL':function(_0x1e16ed,_0x5f07fb){return _0x1e16ed(_0x5f07fb);}},_0x1f030b=getEnvDir(_0x1b2e28),_0x963860=_0x17c27a[_0x1c76de(0x1b3)](join,_0x1f030b,_0x17c27a[_0x1c76de(0x17e)]),_0x2c6382=_0x17c27a[_0x1c76de(0x18e)](join,_0x1f030b,'auth.json');let _0x5e7f62,_0x3771be;if(existsSync(_0x963860))try{const _0x3bc455=await getToken();if(!_0x3bc455)throw new Error(_0x17c27a[_0x1c76de(0x1a1)]);const _0x5cc009=await readFile(_0x963860),_0x57dbb2=_0x17c27a[_0x1c76de(0x18e)](decrypt,_0x5cc009,_0x3bc455);_0x3771be=join(tmpdir(),_0x1c76de(0x177)+Date['now']()+'.json'),await writeFile(_0x3771be,_0x57dbb2),_0x5e7f62=_0x3771be;}catch(_0x3a9f47){const _0x44b777=_0x17c27a[_0x1c76de(0x1bf)](_0x3a9f47,Error)?_0x3a9f47['message']:String(_0x3a9f47);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x44b777);}else _0x17c27a[_0x1c76de(0x1bc)](existsSync,_0x2c6382)&&(_0x5e7f62=_0x2c6382);const _0x163ffe=_0x128739||_0x17c27a['TZkml'](randomUUID),_0x2501e5=join(getRangerDir(),'sessions',_0x163ffe),_0x5880ea=Boolean(_0x3b399f[_0x1c76de(0x1a8)]),_0x8d7d9d=_0x5880ea?{'browserName':'chromium','cdpEndpoint':_0x3b399f['cdpEndpoint']}:((()=>{const _0x232343=_0x1c76de,{launchOptions:_0x1ec984,contextOptions:_0x17c24c}=_0x17c27a[_0x232343(0x18e)](buildBrowserOptionsFromSettings,_0x3b399f,{'headless':_0x431327?![]:_0x3b399f['headless']??!![],'storageStatePath':_0x5e7f62});if(_0x17c27a[_0x232343(0x1a7)](process[_0x232343(0x19c)]?.(),0x0)){const _0x4d798a=['--no-sandbox',_0x17c27a[_0x232343(0x170)]],_0xdce33c=_0x1ec984[_0x232343(0x185)]??[],_0x5dddcc=_0x4d798a['filter'](_0x5ddb1a=>!_0xdce33c[_0x232343(0x1b6)](_0x5ddb1a));_0x1ec984[_0x232343(0x185)]=[..._0xdce33c,..._0x5dddcc];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x1ec984,'contextOptions':{..._0x17c24c,'permissions':['clipboard-read',_0x17c27a[_0x232343(0x171)]],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x35b876={'name':_0x1b2e28,'browser':_0x8d7d9d,'capabilities':[_0x17c27a[_0x1c76de(0x181)],_0x17c27a[_0x1c76de(0x162)],_0x17c27a['bzMBG'],_0x17c27a[_0x1c76de(0x1c0)],_0x17c27a[_0x1c76de(0x1c3)]],'imageResponses':_0x17c27a[_0x1c76de(0x17c)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x2501e5};if(!_0x5880ea){const _0x4de5f5=_0x35b876['browser'],_0x55f6d1=_0x4de5f5[_0x1c76de(0x165)];if(_0x17c27a['LJGLq'](_0x55f6d1['userAgent'],undefined))delete _0x55f6d1[_0x1c76de(0x193)];if(_0x55f6d1['storageState']===undefined)delete _0x55f6d1['storageState'];}const _0x5e5a81=join(tmpdir(),'ranger-config');!_0x17c27a['yqCmL'](existsSync,_0x5e5a81)&&await mkdir(_0x5e5a81,{'recursive':!![]});const _0x105e7f=join(_0x5e5a81,_0x1b2e28+'-'+Date['now']()+'.json');return await writeFile(_0x105e7f,JSON[_0x1c76de(0x179)](_0x35b876,null,0x2)),{'configPath':_0x105e7f,'tempAuthPath':_0x3771be};}export async function buildPlaywrightCliConfig(_0x248116,_0x5ce8ab,_0x5cb6da,_0x200a40){const _0x5b0026=_0x2837b3,_0x421bf8={'GUfwb':function(_0x154b09,_0x4c42a7,_0xb2a93e){return _0x154b09(_0x4c42a7,_0xb2a93e);},'AYGXi':'--no-sandbox','YSOJb':_0x5b0026(0x1ab),'oqnFj':_0x5b0026(0x168),'QrujZ':'clipboard-read','UNphT':function(_0x54aa4d,_0x3b9756,_0x574ae1){return _0x54aa4d(_0x3b9756,_0x574ae1);},'WmJCW':_0x5b0026(0x178),'SMxlW':function(_0x4fa51a,_0x4b9856){return _0x4fa51a(_0x4b9856);},'PBzkD':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','aycRa':function(_0x58d453){return _0x58d453();},'aCvTQ':function(_0x5cd0df,_0x45e45a){return _0x5cd0df instanceof _0x45e45a;},'ypMQl':function(_0x4026d0,_0x984ded){return _0x4026d0(_0x984ded);},'chmKm':function(_0x333827){return _0x333827();},'WSwXY':function(_0x1bd146,_0x12c84f){return _0x1bd146===_0x12c84f;},'mBQAJ':function(_0x26ffd1){return _0x26ffd1();},'QUKTD':function(_0xb6cc72,_0x479fee,_0x5ca253){return _0xb6cc72(_0x479fee,_0x5ca253);}},_0xd7233b=getEnvDir(_0x5ce8ab),_0x27e3d6=_0x421bf8[_0x5b0026(0x1a4)](join,_0xd7233b,_0x5b0026(0x195)),_0x5d387b=_0x421bf8[_0x5b0026(0x182)](join,_0xd7233b,_0x421bf8['WmJCW']);let _0x1f3f7c,_0x1797b9;if(_0x421bf8[_0x5b0026(0x180)](existsSync,_0x27e3d6))try{const _0x30ff46=await getToken();if(!_0x30ff46)throw new Error(_0x421bf8['PBzkD']);const _0x14a740=await readFile(_0x27e3d6),_0x1f0924=_0x421bf8[_0x5b0026(0x182)](decrypt,_0x14a740,_0x30ff46);_0x1797b9=join(_0x421bf8[_0x5b0026(0x1bd)](tmpdir),_0x5b0026(0x177)+Date['now']()+'.json'),await writeFile(_0x1797b9,_0x1f0924),_0x1f3f7c=_0x1797b9;}catch(_0x175728){const _0x2be834=_0x421bf8['aCvTQ'](_0x175728,Error)?_0x175728['message']:_0x421bf8['ypMQl'](String,_0x175728);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x2be834);}else existsSync(_0x5d387b)&&(_0x1f3f7c=_0x5d387b);const _0x185e7e=_0x5cb6da||_0x421bf8[_0x5b0026(0x1ac)](randomUUID),_0x590f70=join(getRangerDir(),'sessions',_0x185e7e),_0x1728b3=Boolean(_0x248116[_0x5b0026(0x1a8)]),_0x540d2=_0x1728b3?{'browserName':_0x5b0026(0x168),'cdpEndpoint':_0x248116[_0x5b0026(0x1a8)]}:((()=>{const _0x3a281a=_0x5b0026,{launchOptions:_0x10d596,contextOptions:_0x43f048}=_0x421bf8[_0x3a281a(0x1a4)](buildBrowserOptionsFromSettings,_0x248116,{'headless':_0x200a40?![]:_0x248116[_0x3a281a(0x1aa)]??!![],'storageStatePath':_0x1f3f7c});if(process['getuid']?.()===0x0){const _0x366fde=[_0x421bf8['AYGXi'],_0x421bf8[_0x3a281a(0x1c2)]],_0x402c93=_0x10d596['args']??[],_0x51f9ad=_0x366fde[_0x3a281a(0x1b7)](_0x2fdaf6=>!_0x402c93['includes'](_0x2fdaf6));_0x10d596['args']=[..._0x402c93,..._0x51f9ad];}return{'isolated':!![],'browserName':_0x421bf8[_0x3a281a(0x197)],'launchOptions':_0x10d596,'contextOptions':{..._0x43f048,'permissions':[_0x421bf8[_0x3a281a(0x167)],_0x3a281a(0x16d)],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x1728b3){const _0x22ec65=_0x540d2['contextOptions'];if(_0x421bf8['WSwXY'](_0x22ec65[_0x5b0026(0x193)],undefined))delete _0x22ec65['userAgent'];if(_0x22ec65['storageState']===undefined)delete _0x22ec65['storageState'];}const _0x48bab3={'browser':_0x540d2,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x590f70,'outputMode':_0x5b0026(0x1a2),'codegen':_0x5b0026(0x19a)},_0x3fda48=_0x421bf8['UNphT'](join,_0x421bf8['mBQAJ'](tmpdir),_0x5b0026(0x172));!existsSync(_0x3fda48)&&await _0x421bf8['QUKTD'](mkdir,_0x3fda48,{'recursive':!![]});const _0x64b194=join(_0x3fda48,_0x5ce8ab+'-'+Date['now']()+_0x5b0026(0x19f));return await writeFile(_0x64b194,JSON['stringify'](_0x48bab3,null,0x2)),{'configPath':_0x64b194,'tempAuthPath':_0x1797b9};}export function getNestedValue(_0x2fea9f,_0x46d307){const _0x3c5cab=_0x2837b3,_0x778e63={'IACVz':_0x3c5cab(0x173)},_0x7dd063=parseKeyPath(_0x46d307);let _0x7581ac=_0x2fea9f;for(const _0x56d965 of _0x7dd063){if(_0x7581ac===null||_0x7581ac===undefined||typeof _0x7581ac!==_0x778e63['IACVz'])return undefined;_0x7581ac=_0x7581ac[_0x56d965];}return _0x7581ac;}export function setNestedValue(_0x59fec7,_0x24cd38,_0x4999a7){const _0x25df7e=_0x2837b3,_0x31ed25={'jxHwf':function(_0x127378,_0xa0315d){return _0x127378(_0xa0315d);},'RPNkw':function(_0x19d85f,_0x52bb0b){return _0x19d85f<_0x52bb0b;},'DXTVC':function(_0x1998aa,_0x213770){return _0x1998aa-_0x213770;},'GBjIk':function(_0x31c860,_0x43abac){return _0x31c860!==_0x43abac;},'cTDny':_0x25df7e(0x173)},_0x317a7e=_0x31ed25['jxHwf'](parseKeyPath,_0x24cd38);let _0x55e1ab=_0x59fec7;for(let _0x48efa8=0x0;_0x31ed25['RPNkw'](_0x48efa8,_0x31ed25[_0x25df7e(0x189)](_0x317a7e[_0x25df7e(0x17f)],0x1));_0x48efa8++){const _0x1e4e63=_0x317a7e[_0x48efa8];(!(_0x1e4e63 in _0x55e1ab)||_0x31ed25[_0x25df7e(0x191)](typeof _0x55e1ab[_0x1e4e63],_0x31ed25['cTDny']))&&(_0x55e1ab[_0x1e4e63]={}),_0x55e1ab=_0x55e1ab[_0x1e4e63];}_0x55e1ab[_0x317a7e[_0x31ed25['DXTVC'](_0x317a7e['length'],0x1)]]=_0x4999a7;}export function deleteNestedValue(_0x2f3972,_0x56744e){const _0x20bbfa=_0x2837b3,_0x569047={'pffcW':function(_0x3ad9bb,_0x3c1eff){return _0x3ad9bb===_0x3c1eff;},'JhUcx':function(_0x4f783b,_0xdd19c){return _0x4f783b!==_0xdd19c;},'UPzmf':function(_0x19f752,_0x4b8934){return _0x19f752-_0x4b8934;},'FVjIw':function(_0x1ea13c,_0x595adb){return _0x1ea13c in _0x595adb;}},_0x1b214b=parseKeyPath(_0x56744e);let _0x53ce00=_0x2f3972;for(let _0x5760d7=0x0;_0x5760d7<_0x1b214b['length']-0x1;_0x5760d7++){if(_0x569047['pffcW'](_0x53ce00,null)||_0x569047['pffcW'](_0x53ce00,undefined)||_0x569047['JhUcx'](typeof _0x53ce00,'object'))return![];_0x53ce00=_0x53ce00[_0x1b214b[_0x5760d7]];}if(_0x53ce00===null||_0x53ce00===undefined||_0x569047['JhUcx'](typeof _0x53ce00,'object'))return![];const _0x4a0a2e=_0x1b214b[_0x569047['UPzmf'](_0x1b214b['length'],0x1)];if(_0x569047[_0x20bbfa(0x164)](_0x4a0a2e,_0x53ce00))return delete _0x53ce00[_0x4a0a2e],!![];return![];}function parseKeyPath(_0x30e672){const _0x30cfb3=_0x2837b3,_0x4382c2={'ainiG':'header'},_0x4bf493=_0x30e672[_0x30cfb3(0x1a9)]('.');return _0x4bf493[0x0]===_0x4382c2[_0x30cfb3(0x1b1)]&&(_0x4bf493[0x0]=_0x30cfb3(0x196)),_0x4bf493;}export function formatSettings(_0x357996,_0x39ea39=0x0){const _0x1d1bac=_0x2837b3,_0x1e69e3={'jLwNi':function(_0x2b7b14,_0x1769eb){return _0x2b7b14===_0x1769eb;},'aoRIn':'object','TZcEw':function(_0x34f855,_0x1f92b6){return _0x34f855!==_0x1f92b6;}},_0x559cde=[],_0x4fdb2d='\x20\x20'['repeat'](_0x39ea39);for(const [_0x192b56,_0x1f5012]of Object[_0x1d1bac(0x17b)](_0x357996)){if(_0x1f5012===undefined)continue;if(_0x1e69e3[_0x1d1bac(0x184)](typeof _0x1f5012,_0x1e69e3[_0x1d1bac(0x18c)])&&_0x1e69e3[_0x1d1bac(0x16e)](_0x1f5012,null)){_0x559cde[_0x1d1bac(0x16a)](''+_0x4fdb2d+_0x192b56+':');for(const [_0x15ae07,_0x28335d]of Object[_0x1d1bac(0x17b)](_0x1f5012)){_0x559cde['push'](_0x4fdb2d+'\x20\x20'+_0x15ae07+':\x20'+_0x28335d);}}else _0x559cde[_0x1d1bac(0x16a)](''+_0x4fdb2d+_0x192b56+':\x20'+_0x1f5012);}return _0x559cde[_0x1d1bac(0x188)]('\x0a');}
|
|
1
|
+
const _0x124c79=_0x29a4;(function(_0x540e8e,_0x4be7be){const _0xce79af=_0x29a4,_0x522bc2=_0x540e8e();while(!![]){try{const _0x2a319c=-parseInt(_0xce79af(0xc2))/0x1+-parseInt(_0xce79af(0xaa))/0x2+-parseInt(_0xce79af(0x98))/0x3*(-parseInt(_0xce79af(0xeb))/0x4)+-parseInt(_0xce79af(0xc9))/0x5*(parseInt(_0xce79af(0xbd))/0x6)+-parseInt(_0xce79af(0xd5))/0x7*(-parseInt(_0xce79af(0x99))/0x8)+parseInt(_0xce79af(0x8c))/0x9+parseInt(_0xce79af(0xe9))/0xa*(parseInt(_0xce79af(0xc4))/0xb);if(_0x2a319c===_0x4be7be)break;else _0x522bc2['push'](_0x522bc2['shift']());}catch(_0x46cca2){_0x522bc2['push'](_0x522bc2['shift']());}}}(_0x2b39,0x964c7));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';function _0x2b39(){const _0x5f3963=['DfuIq','allowInsecureLocalhost','kGlfT','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','EUeDQ','configPath','70uFQdKn','cdpEndpoint','--disable-web-security','CeRao','headless','eEHhG','now','--disable-setuid-sandbox','string','location','push','WRwCv','LOegK','lKWCK','dBSXY','aNOEK','path','QecVJ','repeat','chromium','1210gsBedC','NHSpf','308668ezjqIF','UdBVH','args','xclAW','--no-sandbox','stringify','core','tDTlg','EObrU','sessions','1478322UrbdOQ','Environment\x20variable\x20','XzwFr','aSuis','all','HHxHY','utf-8','auth.json.enc','headers','Failed\x20to\x20decrypt\x20auth\x20state:\x20','.json','LvbQW','21KLBrIP','35864NPmmqA','phxUR','QdJMm','split','VBStW','clipboard-write','ranger-auth-','file','storageState','JEwTo','launchOptions','userAgent','GyFTs','WoIVZ','DPBOw','isArray','auth.json','245156Nariqn','settings.json','none','clipboard-read','ENOENT','nabuB','kbIVw','entries','extraHTTPHeaders','local','LeNPZ','ijUXX','object','contextOptions','join','warn','--unsafely-treat-insecure-origin-as-secure=http://localhost','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','bPNhn','6WrySMG','catch','install','ranger-config','parse','1166604wwmowF','sqICH','189321pBAYCy','code','--allow-running-insecure-content','ovmLD','includes','4634915KoAGlN','lbTdq','kqKIY','QIrkE','storageStatePath','filter'];_0x2b39=function(){return _0x5f3963;};return _0x2b39();}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(_0x2cc511){const _0x45b320=_0x29a4,_0x578e67={'xHnLs':function(_0x49a5b2,_0x3e8964,_0x34d1fc,_0x1546d6){return _0x49a5b2(_0x3e8964,_0x34d1fc,_0x1546d6);},'qopdk':_0x45b320(0xb3),'BZLbw':function(_0x28a634,_0x353908,_0x547974){return _0x28a634(_0x353908,_0x547974);},'fgkCO':function(_0x1707f8,_0x26abc7,_0x3f9a87){return _0x1707f8(_0x26abc7,_0x3f9a87);},'EUeDQ':function(_0x58e672,_0x515607){return _0x58e672(_0x515607);},'kbIVw':function(_0x490964,_0x1308e1){return _0x490964!==_0x1308e1;}},_0x479d9e=getRangerDir(),_0x4d480c=join(_0x479d9e,'ci',_0x2cc511),_0x26c195=_0x578e67['xHnLs'](join,_0x479d9e,_0x578e67['qopdk'],_0x2cc511),_0x3c7633=join(_0x479d9e,_0x2cc511),_0x174131=_0x578e67['BZLbw'](join,_0x479d9e,_0x578e67['qopdk']),_0x3258d1=_0x578e67['fgkCO'](join,_0x479d9e,'ci');if(existsSync(_0x4d480c))return _0x4d480c;if(_0x578e67[_0x45b320(0xd3)](existsSync,_0x26c195))return _0x26c195;if(existsSync(_0x3c7633)&&(_0x3c7633!==_0x174131&&_0x578e67[_0x45b320(0xb0)](_0x3c7633,_0x3258d1)?!![]:hasLegacyProfileFiles(_0x3c7633)))return _0x3c7633;return _0x26c195;}export function findExistingEnv(_0x1fc949,_0x457000){const _0x2f0482=_0x29a4,_0x49e948={'oodaw':function(_0x1fb496){return _0x1fb496();},'jhfUM':'legacy','XzwFr':_0x2f0482(0xb3),'vUsng':function(_0x23c63b,_0x780989,_0x10b659){return _0x23c63b(_0x780989,_0x10b659);},'scSoa':function(_0x7370db,_0x46dae5){return _0x7370db===_0x46dae5;},'phxUR':function(_0x4f5500,_0xf491e1){return _0x4f5500(_0xf491e1);}},_0x3f21b9=_0x49e948['oodaw'](getRangerDir),_0x35b223=_0x457000?.['locations']??['ci',_0x2f0482(0xb3),_0x49e948['jhfUM']],_0x157790=join(_0x3f21b9,'local'),_0x415442=join(_0x3f21b9,'ci'),_0x565e1c=[{'location':'ci','path':join(_0x3f21b9,'ci',_0x1fc949)},{'location':_0x49e948['XzwFr'],'path':join(_0x3f21b9,_0x49e948[_0x2f0482(0x8e)],_0x1fc949)},{'location':_0x49e948['jhfUM'],'path':_0x49e948['vUsng'](join,_0x3f21b9,_0x1fc949)}];for(const _0x510d73 of _0x565e1c){if(_0x35b223[_0x2f0482(0xc8)](_0x510d73[_0x2f0482(0xde)])&&existsSync(_0x510d73[_0x2f0482(0xe5)])){if(_0x510d73[_0x2f0482(0xde)]==='legacy'&&(_0x49e948['scSoa'](_0x510d73[_0x2f0482(0xe5)],_0x157790)||_0x510d73['path']===_0x415442)&&!_0x49e948[_0x2f0482(0x9a)](hasLegacyProfileFiles,_0x510d73['path']))continue;return{'path':_0x510d73[_0x2f0482(0xe5)],'location':_0x510d73['location']};}}return null;}function hasLegacyProfileFiles(_0x395108){const _0x2bca58=_0x29a4,_0x2d1c1e={'ibDCF':function(_0x2e20e5,_0x36f57a){return _0x2e20e5(_0x36f57a);},'kqKIY':_0x2bca58(0x93)};return _0x2d1c1e['ibDCF'](existsSync,join(_0x395108,_0x2bca58(0xab)))||_0x2d1c1e['ibDCF'](existsSync,join(_0x395108,'auth.json'))||existsSync(join(_0x395108,_0x2d1c1e[_0x2bca58(0xcb)]));}export function isEnvCi(_0x53488d){const _0x3d616e={'upIYC':function(_0xec7fb3,_0x44cf0a){return _0xec7fb3(_0x44cf0a);},'EUAVo':function(_0xc6528f,_0x4d11d0,_0x3e7700,_0x1b87b3){return _0xc6528f(_0x4d11d0,_0x3e7700,_0x1b87b3);}};return _0x3d616e['upIYC'](existsSync,_0x3d616e['EUAVo'](join,getRangerDir(),'ci',_0x53488d));}export async function cleanupTempFiles(_0x3c9a34){const _0x2a08b9=_0x29a4,_0x4f362a={'sySet':_0x2a08b9(0xae)},_0x6a617=[_0x3c9a34['tempAuthPath'],_0x3c9a34[_0x2a08b9(0xd4)]][_0x2a08b9(0xce)](Boolean);await Promise[_0x2a08b9(0x90)](_0x6a617['map'](_0x4acfb6=>unlink(_0x4acfb6)[_0x2a08b9(0xbe)](_0x12e2c0=>{const _0x2e54c4=_0x2a08b9;_0x12e2c0[_0x2e54c4(0xc5)]!==_0x4f362a['sySet']&&console[_0x2e54c4(0xb9)](_0x2e54c4(0xbb)+_0x4acfb6+':',_0x12e2c0['message']);})));}export function getSettingsPath(_0x49149f){const _0x4d6819=_0x29a4,_0x41f64b={'xclAW':function(_0xa64bbd,_0x32e77a,_0x413b4c){return _0xa64bbd(_0x32e77a,_0x413b4c);}};return _0x41f64b[_0x4d6819(0x85)](join,getEnvDir(_0x49149f),'settings.json');}export async function loadSettings(_0x4722fc){const _0x48b3ef=_0x29a4,_0x64b27a=getSettingsPath(_0x4722fc);if(!existsSync(_0x64b27a))return{};try{const _0x5abeda=await readFile(_0x64b27a,_0x48b3ef(0x92));return JSON[_0x48b3ef(0xc1)](_0x5abeda);}catch{return{};}}export async function saveSettings(_0x5d9d01,_0x5a5676){const _0x5b3624=_0x29a4,_0x5b3580={'GyFTs':function(_0x95a91,_0x5be501){return _0x95a91(_0x5be501);}},_0x12c848=_0x5b3580[_0x5b3624(0xa5)](getSettingsPath,_0x5d9d01),_0x4fd818=dirname(_0x12c848);!existsSync(_0x4fd818)&&await mkdir(_0x4fd818,{'recursive':!![]}),await writeFile(_0x12c848,JSON['stringify'](_0x5a5676,null,0x2));}export function resolveEnvVars(_0x27318e){const _0x93b09c=_0x29a4,_0x2bf00e={'aQATT':function(_0x315b8c,_0x84e54a){return _0x315b8c===_0x84e54a;},'bPNhn':_0x93b09c(0xdd),'DfuIq':_0x93b09c(0xb6)};if(typeof _0x27318e===_0x2bf00e[_0x93b09c(0xbc)])return _0x27318e['replace'](/\$\{(\w+)\}/g,(_0x460702,_0x15c3d0)=>{const _0x2cc697=_0x93b09c,_0x51447d=process['env'][_0x15c3d0];if(_0x2bf00e['aQATT'](_0x51447d,undefined))throw new Error(_0x2cc697(0x8d)+_0x15c3d0+'\x20is\x20not\x20set');return _0x51447d;});if(Array[_0x93b09c(0xa8)](_0x27318e))return _0x27318e['map'](resolveEnvVars);if(_0x27318e&&typeof _0x27318e===_0x2bf00e[_0x93b09c(0xcf)])return Object['fromEntries'](Object[_0x93b09c(0xb1)](_0x27318e)['map'](([_0x1c6c52,_0x2fae99])=>[_0x1c6c52,resolveEnvVars(_0x2fae99)]));return _0x27318e;}const isRecord=_0x14af7c=>typeof _0x14af7c==='object'&&_0x14af7c!==null&&!Array['isArray'](_0x14af7c),asRecord=_0x5901b5=>isRecord(_0x5901b5)?_0x5901b5:undefined,mergeHeaders=(_0x1ff56a,_0x1bcfba)=>{const _0x46749c=_0x29a4,_0x5892ff={'UdBVH':function(_0x132c02,_0x3fed9e){return _0x132c02??_0x3fed9e;}},_0x1f4213={..._0x1ff56a??{},..._0x5892ff[_0x46749c(0x83)](_0x1bcfba,{})};return Object['keys'](_0x1f4213)['length']?_0x1f4213:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=[_0x124c79(0xd7),_0x124c79(0xc6),_0x124c79(0xba)];export function buildBrowserOptionsFromSettings(_0x2e2cc3,_0x28fd95={}){const _0x1996ae=_0x124c79,_0x3dd929={'lKWCK':function(_0xd7c1f6,_0x1eb29a){return _0xd7c1f6(_0x1eb29a);},'QAkNd':function(_0x5a4bcf,_0x283770){return _0x5a4bcf(_0x283770);},'THTCk':'string','tDTlg':function(_0x4a383e,_0x3bfcc0){return _0x4a383e(_0x3bfcc0);}},_0x1df2e7=asRecord(_0x2e2cc3['browser']),_0xb72d56={..._0x3dd929[_0x1996ae(0xe2)](asRecord,_0x1df2e7?.[_0x1996ae(0xa3)])??{}};typeof _0x28fd95[_0x1996ae(0xd9)]==='boolean'&&(_0xb72d56[_0x1996ae(0xd9)]=_0x28fd95['headless']);if(_0x2e2cc3['safeMode']){const _0x3593e2=_0xb72d56['args']??[],_0x62e8c6=SAFE_MODE_ARGS['filter'](_0x2cecf2=>!_0x3593e2[_0x1996ae(0xc8)](_0x2cecf2));_0xb72d56['args']=[..._0x3593e2,..._0x62e8c6];}if(_0x2e2cc3[_0x1996ae(0xd0)]){const _0x171919=_0xb72d56[_0x1996ae(0x84)]??[],_0x240ff2=ALLOW_LOCALHOST_ARGS[_0x1996ae(0xce)](_0x45f9b4=>!_0x171919[_0x1996ae(0xc8)](_0x45f9b4));_0xb72d56['args']=[..._0x171919,..._0x240ff2];}const _0x44b0e3={..._0x3dd929['QAkNd'](asRecord,_0x1df2e7?.['contextOptions'])??{}};typeof _0x2e2cc3['userAgent']===_0x3dd929['THTCk']&&(_0x44b0e3['userAgent']=_0x2e2cc3[_0x1996ae(0xa4)]);const _0x189b00=mergeHeaders(_0x3dd929[_0x1996ae(0x89)](asRecord,_0x44b0e3['extraHTTPHeaders']),_0x3dd929[_0x1996ae(0xe2)](asRecord,_0x2e2cc3[_0x1996ae(0x94)]));return _0x189b00?_0x44b0e3[_0x1996ae(0xb2)]=_0x189b00:delete _0x44b0e3['extraHTTPHeaders'],_0x28fd95['storageStatePath']&&(_0x44b0e3['storageState']=_0x28fd95[_0x1996ae(0xcd)]),{'launchOptions':_0xb72d56,'contextOptions':_0x44b0e3};}export async function buildPlaywrightConfig(_0xfdb1a0,_0x138cff,_0xebb8b3,_0x89346c){const _0x1a04b2=_0x124c79,_0x50d5dc={'dBSXY':function(_0x3dd3ec,_0x9b5b2c){return _0x3dd3ec===_0x9b5b2c;},'ovmLD':_0x1a04b2(0x86),'QecVJ':'--disable-setuid-sandbox','WoIVZ':'chromium','uqRKX':'auth.json','ijUXX':function(_0x194dcd){return _0x194dcd();},'LeNPZ':function(_0x4c0045,_0x58cadb){return _0x4c0045(_0x58cadb);},'WkIaP':function(_0x105af2,_0x2e02f,_0x29cd18,_0x1eaef7){return _0x105af2(_0x2e02f,_0x29cd18,_0x1eaef7);},'gAgmy':function(_0x1d439c,_0x219c94){return _0x1d439c(_0x219c94);},'PDNVX':_0x1a04b2(0x88),'QdJMm':'tabs','cjYeL':_0x1a04b2(0xbf),'JEwTo':'vision','aSuis':'allow','LOegK':function(_0x127fa2,_0x1ad27c,_0x226e68){return _0x127fa2(_0x1ad27c,_0x226e68);},'zNrBK':function(_0xd72cd1){return _0xd72cd1();},'Acdfl':function(_0x3d3010,_0x515686,_0x18970f){return _0x3d3010(_0x515686,_0x18970f);}},_0x5defb3=getEnvDir(_0x138cff),_0x2a47c5=join(_0x5defb3,_0x1a04b2(0x93)),_0x1d1b6f=join(_0x5defb3,_0x50d5dc['uqRKX']);let _0x32ec18,_0x36a570;if(existsSync(_0x2a47c5))try{const _0x3b4fd1=await _0x50d5dc[_0x1a04b2(0xb5)](getToken);if(!_0x3b4fd1)throw new Error(_0x1a04b2(0xd2));const _0x36fa48=await readFile(_0x2a47c5),_0x27dd81=decrypt(_0x36fa48,_0x3b4fd1);_0x36a570=join(tmpdir(),_0x1a04b2(0x9f)+Date[_0x1a04b2(0xdb)]()+'.json'),await writeFile(_0x36a570,_0x27dd81),_0x32ec18=_0x36a570;}catch(_0x55a83e){const _0x5dae4c=_0x55a83e instanceof Error?_0x55a83e['message']:String(_0x55a83e);throw new Error(_0x1a04b2(0x95)+_0x5dae4c);}else _0x50d5dc[_0x1a04b2(0xb4)](existsSync,_0x1d1b6f)&&(_0x32ec18=_0x1d1b6f);const _0x23a809=_0xebb8b3||randomUUID(),_0xc0acb3=_0x50d5dc['WkIaP'](join,_0x50d5dc['ijUXX'](getRangerDir),'sessions',_0x23a809),_0x56b61e=_0x50d5dc['gAgmy'](Boolean,_0xfdb1a0[_0x1a04b2(0xd6)]),_0x291de9=_0x56b61e?{'browserName':_0x50d5dc[_0x1a04b2(0xa6)],'cdpEndpoint':_0xfdb1a0['cdpEndpoint']}:((()=>{const _0x282467=_0x1a04b2,{launchOptions:_0x3e4a25,contextOptions:_0x3dd159}=buildBrowserOptionsFromSettings(_0xfdb1a0,{'headless':_0x89346c?![]:_0xfdb1a0['headless']??!![],'storageStatePath':_0x32ec18});if(_0x50d5dc[_0x282467(0xe3)](process['getuid']?.(),0x0)){const _0x271844=[_0x50d5dc[_0x282467(0xc7)],_0x50d5dc[_0x282467(0xe6)]],_0x42416e=_0x3e4a25[_0x282467(0x84)]??[],_0xbcc2f3=_0x271844[_0x282467(0xce)](_0xf3cba7=>!_0x42416e[_0x282467(0xc8)](_0xf3cba7));_0x3e4a25[_0x282467(0x84)]=[..._0x42416e,..._0xbcc2f3];}return{'isolated':!![],'browserName':_0x50d5dc[_0x282467(0xa6)],'launchOptions':_0x3e4a25,'contextOptions':{..._0x3dd159,'permissions':['clipboard-read',_0x282467(0x9e)],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x3b7b46={'name':_0x138cff,'browser':_0x291de9,'capabilities':[_0x50d5dc['PDNVX'],_0x50d5dc[_0x1a04b2(0x9b)],_0x50d5dc['cjYeL'],'pdf',_0x50d5dc[_0x1a04b2(0xa2)]],'imageResponses':_0x50d5dc[_0x1a04b2(0x8f)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0xc0acb3};if(!_0x56b61e){const _0x2eb7f0=_0x3b7b46['browser'],_0x29f9ce=_0x2eb7f0['contextOptions'];if(_0x29f9ce['userAgent']===undefined)delete _0x29f9ce['userAgent'];if(_0x29f9ce[_0x1a04b2(0xa1)]===undefined)delete _0x29f9ce['storageState'];}const _0x389821=_0x50d5dc[_0x1a04b2(0xe1)](join,_0x50d5dc['zNrBK'](tmpdir),_0x1a04b2(0xc0));!existsSync(_0x389821)&&await _0x50d5dc[_0x1a04b2(0xe1)](mkdir,_0x389821,{'recursive':!![]});const _0x3121c2=join(_0x389821,_0x138cff+'-'+Date[_0x1a04b2(0xdb)]()+'.json');return await _0x50d5dc['Acdfl'](writeFile,_0x3121c2,JSON['stringify'](_0x3b7b46,null,0x2)),{'configPath':_0x3121c2,'tempAuthPath':_0x36a570};}export async function buildPlaywrightCliConfig(_0x5d25a6,_0x18146f,_0x5f3ba7,_0x3ee5d3){const _0x3ae955=_0x124c79,_0x4c0dbb={'VBStW':function(_0x45d26f,_0x46fc7c,_0x227b72){return _0x45d26f(_0x46fc7c,_0x227b72);},'WRwCv':function(_0x313c06,_0x57f796){return _0x313c06===_0x57f796;},'vXiNi':'--no-sandbox','kGlfT':'chromium','NHSpf':'auth.json.enc','lbTdq':_0x3ae955(0xa9),'eEHhG':function(_0x4ea490,_0x566051){return _0x4ea490(_0x566051);},'QIrkE':function(_0x138f96,_0x63c49a,_0x123f0a){return _0x138f96(_0x63c49a,_0x123f0a);},'apYJn':function(_0x276e30,_0x3f34d1,_0xf5004e){return _0x276e30(_0x3f34d1,_0xf5004e);},'nabuB':function(_0x3637ee,_0x2a3e96){return _0x3637ee instanceof _0x2a3e96;},'yNnuX':function(_0x1279e4){return _0x1279e4();},'zRHZF':function(_0x526114,_0x348756,_0x3db327,_0x1a29cd){return _0x526114(_0x348756,_0x3db327,_0x1a29cd);},'ozdUq':_0x3ae955(0xa0),'pxTKO':_0x3ae955(0xac)},_0x3dee1f=getEnvDir(_0x18146f),_0x118695=join(_0x3dee1f,_0x4c0dbb[_0x3ae955(0xea)]),_0x42bc6e=join(_0x3dee1f,_0x4c0dbb[_0x3ae955(0xca)]);let _0x43c8bd,_0x25e44c;if(_0x4c0dbb[_0x3ae955(0xda)](existsSync,_0x118695))try{const _0x583372=await getToken();if(!_0x583372)throw new Error(_0x3ae955(0xd2));const _0x5a2012=await _0x4c0dbb[_0x3ae955(0xda)](readFile,_0x118695),_0x3466b4=_0x4c0dbb[_0x3ae955(0xcc)](decrypt,_0x5a2012,_0x583372);_0x25e44c=_0x4c0dbb['VBStW'](join,tmpdir(),_0x3ae955(0x9f)+Date[_0x3ae955(0xdb)]()+_0x3ae955(0x96)),await _0x4c0dbb['apYJn'](writeFile,_0x25e44c,_0x3466b4),_0x43c8bd=_0x25e44c;}catch(_0x59b3a6){const _0x378b40=_0x4c0dbb[_0x3ae955(0xaf)](_0x59b3a6,Error)?_0x59b3a6['message']:_0x4c0dbb[_0x3ae955(0xda)](String,_0x59b3a6);throw new Error(_0x3ae955(0x95)+_0x378b40);}else existsSync(_0x42bc6e)&&(_0x43c8bd=_0x42bc6e);const _0x423d38=_0x5f3ba7||_0x4c0dbb['yNnuX'](randomUUID),_0x192a4d=_0x4c0dbb['zRHZF'](join,getRangerDir(),_0x3ae955(0x8b),_0x423d38),_0x3a0652=Boolean(_0x5d25a6['cdpEndpoint']),_0x9b8d66=_0x3a0652?{'browserName':_0x3ae955(0xe8),'cdpEndpoint':_0x5d25a6['cdpEndpoint']}:((()=>{const _0x6e2806=_0x3ae955,{launchOptions:_0x34a94b,contextOptions:_0x46c2f9}=_0x4c0dbb[_0x6e2806(0x9d)](buildBrowserOptionsFromSettings,_0x5d25a6,{'headless':_0x3ee5d3?![]:_0x5d25a6[_0x6e2806(0xd9)]??!![],'storageStatePath':_0x43c8bd});if(_0x4c0dbb[_0x6e2806(0xe0)](process['getuid']?.(),0x0)){const _0x9c188c=[_0x4c0dbb['vXiNi'],_0x6e2806(0xdc)],_0x5e0167=_0x34a94b[_0x6e2806(0x84)]??[],_0x423ee3=_0x9c188c['filter'](_0x2d7501=>!_0x5e0167[_0x6e2806(0xc8)](_0x2d7501));_0x34a94b['args']=[..._0x5e0167,..._0x423ee3];}return{'isolated':!![],'browserName':_0x4c0dbb[_0x6e2806(0xd1)],'launchOptions':_0x34a94b,'contextOptions':{..._0x46c2f9,'permissions':[_0x6e2806(0xad),_0x6e2806(0x9e)],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x3a0652){const _0xe45e4f=_0x9b8d66[_0x3ae955(0xb7)];if(_0xe45e4f[_0x3ae955(0xa4)]===undefined)delete _0xe45e4f['userAgent'];if(_0x4c0dbb[_0x3ae955(0xe0)](_0xe45e4f[_0x3ae955(0xa1)],undefined))delete _0xe45e4f[_0x3ae955(0xa1)];}const _0x25c8fb={'browser':_0x9b8d66,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x192a4d,'outputMode':_0x4c0dbb['ozdUq'],'codegen':_0x4c0dbb['pxTKO']},_0x5385c0=join(_0x4c0dbb['yNnuX'](tmpdir),_0x3ae955(0xc0));!_0x4c0dbb['eEHhG'](existsSync,_0x5385c0)&&await _0x4c0dbb['QIrkE'](mkdir,_0x5385c0,{'recursive':!![]});const _0x4a1026=join(_0x5385c0,_0x18146f+'-'+Date['now']()+'-cli.json');return await _0x4c0dbb['apYJn'](writeFile,_0x4a1026,JSON[_0x3ae955(0x87)](_0x25c8fb,null,0x2)),{'configPath':_0x4a1026,'tempAuthPath':_0x25e44c};}export function getNestedValue(_0xf687fc,_0x4b0338){const _0x1e49b7=_0x124c79,_0x46ba62={'aNOEK':function(_0x5e0af7,_0x3d1bd3){return _0x5e0af7!==_0x3d1bd3;}},_0x4ca990=parseKeyPath(_0x4b0338);let _0x4bfb5d=_0xf687fc;for(const _0x14c787 of _0x4ca990){if(_0x4bfb5d===null||_0x4bfb5d===undefined||_0x46ba62[_0x1e49b7(0xe4)](typeof _0x4bfb5d,'object'))return undefined;_0x4bfb5d=_0x4bfb5d[_0x14c787];}return _0x4bfb5d;}function _0x29a4(_0x253c1f,_0x323adc){_0x253c1f=_0x253c1f-0x83;const _0x2b39a=_0x2b39();let _0x29a45b=_0x2b39a[_0x253c1f];return _0x29a45b;}export function setNestedValue(_0x3085de,_0x1f0125,_0xe0db25){const _0x5af606=_0x124c79,_0x4890fe={'DPBOw':function(_0x5ee8b8,_0x4b02cf){return _0x5ee8b8(_0x4b02cf);},'CeRao':function(_0x4170b4,_0x523dce){return _0x4170b4<_0x523dce;},'LvbQW':function(_0x230427,_0x50f955){return _0x230427!==_0x50f955;},'oKCES':'object'},_0xf3219c=_0x4890fe[_0x5af606(0xa7)](parseKeyPath,_0x1f0125);let _0xc19cb8=_0x3085de;for(let _0x10ba50=0x0;_0x4890fe[_0x5af606(0xd8)](_0x10ba50,_0xf3219c['length']-0x1);_0x10ba50++){const _0x5d96f8=_0xf3219c[_0x10ba50];(!(_0x5d96f8 in _0xc19cb8)||_0x4890fe[_0x5af606(0x97)](typeof _0xc19cb8[_0x5d96f8],_0x4890fe['oKCES']))&&(_0xc19cb8[_0x5d96f8]={}),_0xc19cb8=_0xc19cb8[_0x5d96f8];}_0xc19cb8[_0xf3219c[_0xf3219c['length']-0x1]]=_0xe0db25;}export function deleteNestedValue(_0x4b1404,_0xc0c471){const _0x243793=_0x124c79,_0x387151={'sqICH':function(_0x1594a2,_0x3d7c97){return _0x1594a2===_0x3d7c97;},'EObrU':'object','HHxHY':function(_0x5ebac7,_0x21a1ad){return _0x5ebac7 in _0x21a1ad;}},_0x3495a6=parseKeyPath(_0xc0c471);let _0xb35a1=_0x4b1404;for(let _0x535cd0=0x0;_0x535cd0<_0x3495a6['length']-0x1;_0x535cd0++){if(_0x387151['sqICH'](_0xb35a1,null)||_0xb35a1===undefined||typeof _0xb35a1!==_0x387151[_0x243793(0x8a)])return![];_0xb35a1=_0xb35a1[_0x3495a6[_0x535cd0]];}if(_0xb35a1===null||_0x387151[_0x243793(0xc3)](_0xb35a1,undefined)||typeof _0xb35a1!==_0x387151['EObrU'])return![];const _0x399914=_0x3495a6[_0x3495a6['length']-0x1];if(_0x387151[_0x243793(0x91)](_0x399914,_0xb35a1))return delete _0xb35a1[_0x399914],!![];return![];}function parseKeyPath(_0x161d6a){const _0x3ae07e=_0x124c79,_0x1734ff={'IEXKB':_0x3ae07e(0x94)},_0x5ba331=_0x161d6a[_0x3ae07e(0x9c)]('.');return _0x5ba331[0x0]==='header'&&(_0x5ba331[0x0]=_0x1734ff['IEXKB']),_0x5ba331;}export function formatSettings(_0x485326,_0x24782f=0x0){const _0x2b95e1=_0x124c79,_0x2a9025={'hfbQo':'object'},_0x2266ca=[],_0x678d1c='\x20\x20'[_0x2b95e1(0xe7)](_0x24782f);for(const [_0x2b33b8,_0x4c5033]of Object[_0x2b95e1(0xb1)](_0x485326)){if(_0x4c5033===undefined)continue;if(typeof _0x4c5033===_0x2a9025['hfbQo']&&_0x4c5033!==null){_0x2266ca['push'](''+_0x678d1c+_0x2b33b8+':');for(const [_0xcfff41,_0x48be31]of Object['entries'](_0x4c5033)){_0x2266ca['push'](_0x678d1c+'\x20\x20'+_0xcfff41+':\x20'+_0x48be31);}}else _0x2266ca[_0x2b95e1(0xdf)](''+_0x678d1c+_0x2b33b8+':\x20'+_0x4c5033);}return _0x2266ca[_0x2b95e1(0xb8)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x342581,_0x1d2e89){const _0x2d045c=_0xf1e0,_0x48d5a3=_0x342581();while(!![]){try{const _0x8e243d=-parseInt(_0x2d045c(0xa3))/0x1*(-parseInt(_0x2d045c(0xa5))/0x2)+-parseInt(_0x2d045c(0xa8))/0x3*(-parseInt(_0x2d045c(0x9e))/0x4)+-parseInt(_0x2d045c(0x9f))/0x5*(parseInt(_0x2d045c(0xa4))/0x6)+parseInt(_0x2d045c(0xa0))/0x7*(parseInt(_0x2d045c(0x9c))/0x8)+-parseInt(_0x2d045c(0xa2))/0x9+parseInt(_0x2d045c(0xa7))/0xa+parseInt(_0x2d045c(0xa1))/0xb*(parseInt(_0x2d045c(0xa6))/0xc);if(_0x8e243d===_0x1d2e89)break;else _0x48d5a3['push'](_0x48d5a3['shift']());}catch(_0x520dd9){_0x48d5a3['push'](_0x48d5a3['shift']());}}}(_0x26c4,0xf127c));import{readFileSync}from'fs';import{dirname,join}from'path';function _0x26c4(){const _0x315ddb=['115963kXocvi','1932cyAQFY','16jukTuK','12qWgsAd','3015230LJiCNH','183WNyzqc','40yjrgEL','iLONV','9808mhPmQz','5695fQtEBm','1202264jhxDlx','2734677IHAHXZ','10184724DmwlLC'];_0x26c4=function(){return _0x315ddb;};return _0x26c4();}function _0xf1e0(_0x13b13a,_0x20836a){_0x13b13a=_0x13b13a-0x9c;const _0x26c4cb=_0x26c4();let _0xf1e0ce=_0x26c4cb[_0x13b13a];return _0xf1e0ce;}import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x17d1db){const _0x19338b=_0xf1e0,_0x4be55b={'iLONV':'utf-8'},_0x1e71f0=join(__dirname,'..','..','skills'),_0x171c03=join(_0x1e71f0,_0x17d1db);try{return readFileSync(_0x171c03,_0x4be55b[_0x19338b(0x9d)]);}catch{return'';}}export function getRangerSkillContent(){const _0x1f3337={'rAcKr':'ranger/SKILL.md'};return readSkillContent(_0x1f3337['rAcKr']);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5dafc7=_0x1f80;(function(_0x416e8e,_0x54b7ac){const _0x101d50=_0x1f80,_0x4ad8ac=_0x416e8e();while(!![]){try{const _0x17e994=-parseInt(_0x101d50(0x18a))/0x1*(parseInt(_0x101d50(0x181))/0x2)+parseInt(_0x101d50(0x161))/0x3+-parseInt(_0x101d50(0x179))/0x4*(parseInt(_0x101d50(0x16c))/0x5)+parseInt(_0x101d50(0x176))/0x6+-parseInt(_0x101d50(0x162))/0x7*(-parseInt(_0x101d50(0x16d))/0x8)+parseInt(_0x101d50(0x163))/0x9+parseInt(_0x101d50(0x168))/0xa;if(_0x17e994===_0x54b7ac)break;else _0x4ad8ac['push'](_0x4ad8ac['shift']());}catch(_0x303e5e){_0x4ad8ac['push'](_0x4ad8ac['shift']());}}}(_0x4a9c,0x29c11));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';function _0x4a9c(){const _0x165cf7=['JfGYX','SKILL.md','521300GQWbSj','bSltl','catch','warn','1547705QicgQY','8EfzYwE','\x20\x20Location:\x20','oxBsn','jBqgJ','push','join','NGtAV','mLdWk','EsUXJ','1745010DkgnhB','match','isDirectory','4IYBzqq','skills','mBTzH','\x20\x20Installed\x20skill:\x20','dhhQm','QxbpD','\x20\x20Skill\x20not\x20found:\x20','.md','50494IJXZbi','GOsBE','bug-bash','JsRWR','ztCIg','trim','uqBam','BhJze','feature-tracker','1pPHAwB','log','105207VqqJQa','37331CtygBy','1102014dPWrEt','endsWith','\x20\x20Files:\x20'];_0x4a9c=function(){return _0x165cf7;};return _0x4a9c();}import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=['ranger'];export const DEPRECATED_SKILLS=['e2e-test-recommender',_0x5dafc7(0x183),_0x5dafc7(0x189)];function _0x1f80(_0x20886c,_0x4bf86b){_0x20886c=_0x20886c-0x161;const _0x4a9c88=_0x4a9c();let _0x1f80c1=_0x4a9c88[_0x20886c];return _0x1f80c1;}export async function installSkill(_0x2e9876,_0x2aa653={}){const _0x16e925=_0x5dafc7,_0x40f266={'KTWIT':'project','mLdWk':'claude','yRPtb':function(_0x3bcdec){return _0x3bcdec();},'uqBam':function(_0x305741,_0xd447b1,_0x3580a2){return _0x305741(_0xd447b1,_0x3580a2);},'jBqgJ':function(_0xc0e9be,_0x4a58fe){return _0xc0e9be(_0x4a58fe);},'dhhQm':function(_0x3195be,_0x2e4665,_0xbeeb37){return _0x3195be(_0x2e4665,_0xbeeb37);},'mBTzH':'SKILL.md','JsRWR':function(_0x25ce72,_0x4d685e){return _0x25ce72(_0x4d685e);},'ztCIg':function(_0x3cec17,_0x32e959){return _0x3cec17===_0x32e959;},'GOsBE':'opencode','EsUXJ':function(_0x4c9aee,_0x230181){return _0x4c9aee(_0x230181);},'bSltl':function(_0x10223a,_0x93b697){return _0x10223a(_0x93b697);},'BhJze':'utf-8','OkFWQ':function(_0x244ad1,_0xb36d07,_0xcb6104){return _0x244ad1(_0xb36d07,_0xcb6104);},'aKuPe':function(_0x47887d,_0x4624a3,_0x1f9641,_0x4766ba){return _0x47887d(_0x4624a3,_0x1f9641,_0x4766ba);},'JfGYX':function(_0x2d471a,_0x8a6030,_0x5d7fdd,_0x2836d2){return _0x2d471a(_0x8a6030,_0x5d7fdd,_0x2836d2);}},{level:level=_0x40f266['KTWIT'],cliVersion:_0x1cf81e,platform:platform=_0x40f266[_0x16e925(0x174)]}=_0x2aa653,_0x5203e5=_0x40f266['yRPtb'](getSourceSkillsDir),_0x4bb047=_0x40f266[_0x16e925(0x187)](join,_0x5203e5,_0x2e9876),_0x4777c7=_0x40f266['uqBam'](join,_0x5203e5,_0x2e9876+_0x16e925(0x180)),_0x265aa0=existsSync(_0x4bb047)&&_0x40f266[_0x16e925(0x170)](statSync,_0x4bb047)[_0x16e925(0x178)]()&&_0x40f266[_0x16e925(0x170)](existsSync,_0x40f266['dhhQm'](join,_0x4bb047,_0x40f266['mBTzH'])),_0x3d65ee=_0x40f266[_0x16e925(0x184)](existsSync,_0x4777c7);if(!_0x265aa0&&!_0x3d65ee)return console[_0x16e925(0x16b)](_0x16e925(0x17f)+_0x2e9876),![];const _0x11aa8e=_0x40f266[_0x16e925(0x185)](platform,_0x40f266[_0x16e925(0x182)])?_0x40f266['EsUXJ'](getOpencodeSkillsDir,level):_0x40f266[_0x16e925(0x169)](getSkillsDir,level),_0x5968d1=join(_0x11aa8e,_0x2e9876);await mkdir(_0x5968d1,{'recursive':!![]});let _0x127439,_0x3fb813=[];if(_0x265aa0){const _0x45988e=await _0x40f266[_0x16e925(0x175)](readdir,_0x4bb047),_0x15e725=_0x45988e['filter'](_0x4bd075=>_0x4bd075[_0x16e925(0x164)]('.md'));for(const _0x3a0e44 of _0x15e725){const _0x482b6e=_0x40f266[_0x16e925(0x17d)](join,_0x4bb047,_0x3a0e44),_0x47b6c9=join(_0x5968d1,_0x3a0e44);await copyFile(_0x482b6e,_0x47b6c9),_0x3fb813[_0x16e925(0x171)](_0x3a0e44);}_0x127439=await _0x40f266['uqBam'](readFile,join(_0x4bb047,_0x16e925(0x167)),_0x40f266[_0x16e925(0x188)]);}else{_0x127439=await _0x40f266['OkFWQ'](readFile,_0x4777c7,'utf-8');const _0x505368=join(_0x5968d1,_0x40f266['mBTzH']);await _0x40f266['aKuPe'](writeFile,_0x505368,_0x127439,_0x40f266[_0x16e925(0x188)]),_0x3fb813['push'](_0x40f266[_0x16e925(0x17b)]);}const {name:_0x44aac3}=parseFrontmatter(_0x127439);return console[_0x16e925(0x18b)](_0x16e925(0x17c)+_0x44aac3),console['log'](_0x16e925(0x16e)+_0x5968d1),_0x3fb813['length']>0x1&&console[_0x16e925(0x18b)](_0x16e925(0x165)+_0x3fb813[_0x16e925(0x172)](',\x20')),_0x40f266[_0x16e925(0x166)](logLocalAgentInstallation,_0x2e9876,{'skillDisplayName':_0x44aac3,'installLevel':level},_0x1cf81e)[_0x16e925(0x16a)](()=>{}),!![];}function getSourceSkillsDir(){const _0x250847=_0x5dafc7,_0x1fb9fd={'vChby':function(_0x3aaee8,_0x170c77,_0x2e1a01,_0x26a8f2,_0x7ee4a1,_0x5027ba){return _0x3aaee8(_0x170c77,_0x2e1a01,_0x26a8f2,_0x7ee4a1,_0x5027ba);},'jROwS':_0x250847(0x17a),'oxBsn':function(_0x2ba83c,_0x952c26){return _0x2ba83c(_0x952c26);}},_0x4187e8=[join(__dirname,'..','..',_0x250847(0x17a)),_0x1fb9fd['vChby'](join,__dirname,'..','..','..',_0x1fb9fd['jROwS'])];for(const _0x344396 of _0x4187e8){if(_0x1fb9fd[_0x250847(0x16f)](existsSync,_0x344396))return _0x344396;}return _0x4187e8[0x0];}function parseFrontmatter(_0x1b8dcd){const _0x2e7be2=_0x5dafc7,_0x49dc2e=_0x1b8dcd['match'](/^---\n([\s\S]+?)\n---/);if(!_0x49dc2e)throw new Error('Invalid\x20skill\x20frontmatter');const _0x3da7a0=_0x49dc2e[0x1],_0x47e047=_0x3da7a0[_0x2e7be2(0x177)](/name:\s*(.+)/),_0x5349e1=_0x3da7a0[_0x2e7be2(0x177)](/description:\s*"?(.+?)"?\n/);return{'name':_0x47e047?.[0x1][_0x2e7be2(0x186)]()||'','description':_0x5349e1?.[0x1][_0x2e7be2(0x186)]()||''};}export async function removeSkill(_0x44ace8,_0x3d05e5){const _0x35eb60=_0x5dafc7,_0x58c2f7={'NGtAV':function(_0x56d36d,_0x295126){return _0x56d36d(_0x295126);},'QxbpD':function(_0x150fad,_0x9f9a54,_0x14443c){return _0x150fad(_0x9f9a54,_0x14443c);}},_0x11a936=getSkillsDir(_0x3d05e5),_0x3b9dd8=join(_0x11a936,_0x44ace8);if(!_0x58c2f7[_0x35eb60(0x173)](existsSync,_0x3b9dd8))return![];try{return await _0x58c2f7[_0x35eb60(0x17e)](rm,_0x3b9dd8,{'recursive':!![]}),console[_0x35eb60(0x18b)]('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x44ace8),!![];}catch{return console['warn']('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x44ace8),![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x27837a=_0x29e6;(function(_0x1a7f46,_0x4c88cf){const _0x8b4ae=_0x29e6,_0x3d6151=_0x1a7f46();while(!![]){try{const _0x272fc1=parseInt(_0x8b4ae(0x106))/0x1*(parseInt(_0x8b4ae(0xc3))/0x2)+-parseInt(_0x8b4ae(0xf6))/0x3+parseInt(_0x8b4ae(0xde))/0x4*(parseInt(_0x8b4ae(0xdf))/0x5)+parseInt(_0x8b4ae(0xf2))/0x6+-parseInt(_0x8b4ae(0xca))/0x7+-parseInt(_0x8b4ae(0x100))/0x8+parseInt(_0x8b4ae(0xfe))/0x9;if(_0x272fc1===_0x4c88cf)break;else _0x3d6151['push'](_0x3d6151['shift']());}catch(_0x5c3207){_0x3d6151['push'](_0x3d6151['shift']());}}}(_0x1ba1,0x73ab1));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(_0x583b7b,_0xd28ecb){const _0x48d640=_0x29e6,_0x51ba5a={'kXwFi':function(_0x10c2c6,_0x3acc60){return _0x10c2c6>=_0x3acc60;},'rnvBp':function(_0x203771,_0x41fc20){return _0x203771<=_0x41fc20;},'myuCm':function(_0x1fb499,_0xeadf7a){return _0x1fb499+_0xeadf7a;},'oiVXY':function(_0x84456c,_0x50c934){return _0x84456c&_0x50c934;},'GSdRu':function(_0x135914,_0x9293ad){return _0x135914-_0x9293ad;},'SbWcy':function(_0x36c3d6,_0x5e8cc7){return _0x36c3d6<_0x5e8cc7;},'wYqyM':function(_0x2be269,_0x397676){return _0x2be269*_0x397676;}};if(_0x51ba5a[_0x48d640(0xe3)](_0xd28ecb,_0x583b7b['length']))return[0x0,0x0];const _0x2e0eaa=_0x583b7b[_0xd28ecb];let _0x245f26=0x1,_0x4a6ef5=0x80;while(_0x51ba5a[_0x48d640(0xff)](_0x245f26,0x8)&&!(_0x2e0eaa&_0x4a6ef5)){_0x245f26++,_0x4a6ef5>>=0x1;}if(_0x51ba5a[_0x48d640(0x109)](_0xd28ecb,_0x245f26)>_0x583b7b[_0x48d640(0xdb)])return[0x0,0x0];let _0x21983c=_0x51ba5a[_0x48d640(0x104)](_0x2e0eaa,_0x51ba5a[_0x48d640(0xeb)](_0x4a6ef5,0x1));for(let _0x152c76=0x1;_0x51ba5a['SbWcy'](_0x152c76,_0x245f26);_0x152c76++){_0x21983c=_0x51ba5a[_0x48d640(0xd1)](_0x21983c,0x100)+_0x583b7b[_0xd28ecb+_0x152c76];}return[_0x21983c,_0x245f26];}function readId(_0x4f198d,_0x489bf4){const _0x4db61b={'uRABx':function(_0x3600c6,_0x28edb4){return _0x3600c6>=_0x28edb4;},'tLalw':function(_0x17a029,_0x30f1f7){return _0x17a029+_0x30f1f7;}};if(_0x489bf4>=_0x4f198d['length'])return[0x0,0x0];const _0x49672b=_0x4f198d[_0x489bf4];let _0x209490;if(_0x49672b>=0x80)_0x209490=0x1;else{if(_0x49672b>=0x40)_0x209490=0x2;else{if(_0x4db61b['uRABx'](_0x49672b,0x20))_0x209490=0x3;else{if(_0x49672b>=0x10)_0x209490=0x4;else return[_0x49672b,0x1];}}}if(_0x4db61b['tLalw'](_0x489bf4,_0x209490)>_0x4f198d['length'])return[0x0,0x0];let _0x3f82a1=0x0;for(let _0xc8a2d4=0x0;_0xc8a2d4<_0x209490;_0xc8a2d4++){_0x3f82a1=_0x3f82a1*0x100+_0x4f198d[_0x489bf4+_0xc8a2d4];}return[_0x3f82a1,_0x209490];}function readUint(_0x394f1e,_0x1d4135,_0x348d35){const _0x40221c=_0x29e6,_0x434817={'lwemc':function(_0xec78e,_0x53dfbb){return _0xec78e<_0x53dfbb;},'QYuhb':function(_0x18dd1d,_0x287074){return _0x18dd1d+_0x287074;},'mucRH':function(_0x2f567f,_0x17a24a){return _0x2f567f*_0x17a24a;}};let _0x45f0ef=0x0;for(let _0xaee820=0x0;_0x434817['lwemc'](_0xaee820,_0x348d35);_0xaee820++){_0x45f0ef=_0x434817[_0x40221c(0x103)](_0x434817[_0x40221c(0xd3)](_0x45f0ef,0x100),_0x394f1e[_0x1d4135+_0xaee820]);}return _0x45f0ef;}function _0x29e6(_0x56ec18,_0x5a6241){_0x56ec18=_0x56ec18-0xbd;const _0x1ba1a6=_0x1ba1();let _0x29e64d=_0x1ba1a6[_0x56ec18];return _0x29e64d;}function isUnknownSize(_0x26580e,_0x362f65){const _0x2e0375=_0x29e6,_0x37ab15={'cERQO':function(_0x3577b9,_0x3b2657){return _0x3577b9===_0x3b2657;},'QtQmp':function(_0x516b20,_0x73ba9b){return _0x516b20-_0x73ba9b;}};return _0x37ab15[_0x2e0375(0xf5)](_0x26580e,_0x37ab15['QtQmp'](Math[_0x2e0375(0xfa)](0x2,0x7*_0x362f65),0x1));}function writeVint(_0x4ba7ce,_0x2f88ba){const _0x11096e=_0x29e6,_0x20c521={'GTsvl':function(_0x56ffd4,_0x35c106){return _0x56ffd4||_0x35c106;},'kgcow':function(_0x4881f8,_0x5daa57){return _0x4881f8<_0x5daa57;},'ZWLxC':function(_0x3bf39f,_0x7674dd){return _0x3bf39f*_0x7674dd;},'ibrPe':function(_0x5b088,_0x5219c7){return _0x5b088<<_0x5219c7;}};let _0x11ac8f=_0x20c521[_0x11096e(0xee)](_0x2f88ba,0x1);while(_0x20c521[_0x11096e(0xec)](Math['pow'](0x2,_0x20c521[_0x11096e(0xe0)](0x7,_0x11ac8f))-0x2,_0x4ba7ce))_0x11ac8f++;const _0x518526=Buffer[_0x11096e(0xe8)](_0x11ac8f);for(let _0x375775=_0x11ac8f-0x1;_0x375775>=0x0;_0x375775--){_0x518526[_0x375775]=_0x4ba7ce&0xff,_0x4ba7ce=Math[_0x11096e(0xbd)](_0x4ba7ce/0x100);}return _0x518526[0x0]|=_0x20c521[_0x11096e(0xfd)](0x1,0x8-_0x11ac8f),_0x518526;}function writeUint(_0x19b084,_0x46d956){const _0x49d83a=_0x29e6,_0x22b03b={'OYXrr':function(_0x17afaa,_0x548a98){return _0x17afaa-_0x548a98;},'UofVx':function(_0x516da6,_0x572141){return _0x516da6&_0x572141;},'uUCkO':function(_0x55cced,_0x5870ca){return _0x55cced/_0x5870ca;}},_0x2e4e11=Buffer['alloc'](_0x46d956);for(let _0x21e8de=_0x22b03b[_0x49d83a(0xcd)](_0x46d956,0x1);_0x21e8de>=0x0;_0x21e8de--){_0x2e4e11[_0x21e8de]=_0x22b03b[_0x49d83a(0xc6)](_0x19b084,0xff),_0x19b084=Math['floor'](_0x22b03b['uUCkO'](_0x19b084,0x100));}return _0x2e4e11;}function writeUnknownSizeVint(_0x494dbf){const _0x42d227=_0x29e6,_0x3415fc=Buffer[_0x42d227(0xe8)](_0x494dbf,0xff);return _0x3415fc[0x0]=0xff>>_0x494dbf-0x1,_0x3415fc;}function uintSize(_0x54a022){const _0x4f460c=_0x29e6,_0xf6d46e={'FBsBY':function(_0x173e8c,_0x1278ef){return _0x173e8c===_0x1278ef;},'FHlzs':function(_0x2f4f50,_0x46f122){return _0x2f4f50>_0x46f122;},'xbkpk':function(_0x1b7daa,_0x11af6e){return _0x1b7daa/_0x11af6e;}};if(_0xf6d46e[_0x4f460c(0xf8)](_0x54a022,0x0))return 0x1;let _0x564bab=0x0,_0x799c7f=_0x54a022;while(_0xf6d46e[_0x4f460c(0xfc)](_0x799c7f,0x0)){_0x564bab++,_0x799c7f=Math['floor'](_0xf6d46e['xbkpk'](_0x799c7f,0x100));}return _0x564bab;}function findTimestampScale(_0xfd92c6,_0x3cf42e){const _0x1e2ee4=_0x29e6,_0x48d571={'xtyWf':function(_0x49dbe9,_0x2537e7,_0x1905cd){return _0x49dbe9(_0x2537e7,_0x1905cd);},'SMOyZ':function(_0x238064,_0x535aab){return _0x238064+_0x535aab;},'nMfOH':function(_0x2c9ce4,_0x58e8e1){return _0x2c9ce4===_0x58e8e1;},'zIjMv':function(_0x2f734a,_0x2aad18){return _0x2f734a+_0x2aad18;},'eLkQI':function(_0x4b0cd6,_0x456bfa){return _0x4b0cd6===_0x456bfa;},'AhBfK':function(_0x844b50,_0x14e723){return _0x844b50+_0x14e723;},'znbth':function(_0x7afb25,_0x2e1524){return _0x7afb25+_0x2e1524;}};let _0x2e2972=_0x3cf42e;const _0x256f2a=Math['min'](_0xfd92c6[_0x1e2ee4(0xdb)],_0x3cf42e+0x2710);while(_0x2e2972<_0x256f2a){const [_0x385c47,_0x4b432b]=_0x48d571['xtyWf'](readId,_0xfd92c6,_0x2e2972),[_0x330da5,_0xb6b0d]=readVint(_0xfd92c6,_0x48d571[_0x1e2ee4(0xcf)](_0x2e2972,_0x4b432b));if(_0x48d571[_0x1e2ee4(0xf1)](_0x385c47,ID_INFO)){let _0x2cd7a6=_0x48d571[_0x1e2ee4(0xe9)](_0x2e2972,_0x4b432b)+_0xb6b0d;const _0x247fe2=_0x2cd7a6+_0x330da5;while(_0x2cd7a6<_0x247fe2){const [_0x3df2eb,_0xee518c]=_0x48d571[_0x1e2ee4(0xce)](readId,_0xfd92c6,_0x2cd7a6),[_0x5b8b53,_0x863ae9]=_0x48d571[_0x1e2ee4(0xce)](readVint,_0xfd92c6,_0x2cd7a6+_0xee518c);if(_0x48d571[_0x1e2ee4(0xd7)](_0x3df2eb,ID_TIMESTAMP_SCALE))return readUint(_0xfd92c6,_0x48d571[_0x1e2ee4(0xe4)](_0x2cd7a6+_0xee518c,_0x863ae9),_0x5b8b53);_0x2cd7a6+=_0xee518c+_0x863ae9+_0x5b8b53;}break;}if(_0x385c47===ID_CLUSTER)break;if(isUnknownSize(_0x330da5,_0xb6b0d))break;_0x2e2972+=_0x48d571[_0x1e2ee4(0x107)](_0x48d571['AhBfK'](_0x4b432b,_0xb6b0d),_0x330da5);}return 0xf4240;}function findFirstClusterOffset(_0x1bed11,_0x1a1354){const _0x1e3f70=_0x29e6,_0x53b925={'GTunb':function(_0x50d9ab,_0xea3d40){return _0x50d9ab<_0xea3d40;},'VwOOv':function(_0x38c008,_0x512e6a){return _0x38c008===_0x512e6a;},'wLfgs':function(_0x1f6adb,_0x511570,_0x18b395){return _0x1f6adb(_0x511570,_0x18b395);},'btVSJ':function(_0x3d4c7d,_0x3c2da6){return _0x3d4c7d+_0x3c2da6;},'aKsms':function(_0x584413,_0xbd80e,_0x30fb7a){return _0x584413(_0xbd80e,_0x30fb7a);}};let _0x3c9bf8=_0x1a1354;while(_0x53b925['GTunb'](_0x3c9bf8,_0x1bed11['length'])){const [_0x37061e,_0xd33379]=readId(_0x1bed11,_0x3c9bf8);if(_0x53b925['VwOOv'](_0x37061e,ID_CLUSTER))return _0x3c9bf8;const [_0x21a8e2,_0x44a8b5]=_0x53b925['wLfgs'](readVint,_0x1bed11,_0x53b925['btVSJ'](_0x3c9bf8,_0xd33379));if(_0x53b925[_0x1e3f70(0xf3)](isUnknownSize,_0x21a8e2,_0x44a8b5))return _0x3c9bf8;_0x3c9bf8+=_0xd33379+_0x44a8b5+_0x21a8e2;}return _0x1bed11[_0x1e3f70(0xdb)];}function findClusterEnd(_0x224add,_0x404e50,_0x1c9479,_0x31ed06){const _0x398d23=_0x29e6,_0x40121e={'RToVX':function(_0x2332f1,_0x35d9eb){return _0x2332f1-_0x35d9eb;},'TvqsF':function(_0x5b8efb,_0x5ace51,_0x8890ca){return _0x5b8efb(_0x5ace51,_0x8890ca);}};if(!isUnknownSize(_0x1c9479,_0x31ed06))return _0x404e50+_0x1c9479;const _0x5adef9=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x32c271=_0x404e50;while(_0x32c271<_0x40121e['RToVX'](_0x224add['length'],0x4)){const [_0x291934,_0x3ff1b6]=_0x40121e['TvqsF'](readId,_0x224add,_0x32c271);if(_0x5adef9[_0x398d23(0xd2)](_0x291934))return _0x32c271;const [_0x5821fb,_0x4783df]=readVint(_0x224add,_0x32c271+_0x3ff1b6);if(isUnknownSize(_0x5821fb,_0x4783df))return _0x224add['length'];_0x32c271+=_0x3ff1b6+_0x4783df+_0x5821fb;}return _0x224add[_0x398d23(0xdb)];}function extractClusters(_0x2bf839,_0x5cc9fd){const _0x16273f=_0x29e6,_0x177069={'yHGfp':function(_0x273d45,_0x5dbf89,_0x1a5173){return _0x273d45(_0x5dbf89,_0x1a5173);},'oMzeS':function(_0x525bce,_0xb06fc6){return _0x525bce+_0xb06fc6;},'EsRBY':function(_0x5c6521,_0xc05461){return _0x5c6521+_0xc05461;},'MpDST':function(_0x5d2e05,_0x3ddd00){return _0x5d2e05+_0x3ddd00;},'cJGYV':function(_0x1e001f,_0x45232f,_0x4f8f63,_0x9a032d,_0xb5a766){return _0x1e001f(_0x45232f,_0x4f8f63,_0x9a032d,_0xb5a766);},'bwoFI':function(_0x376b86,_0x4ea81e){return _0x376b86<_0x4ea81e;},'sPPvN':function(_0x3cd967,_0x36f072,_0x3e3301){return _0x3cd967(_0x36f072,_0x3e3301);},'NJVyl':function(_0x207581,_0x4a552c){return _0x207581===_0x4a552c;},'lvbEw':function(_0x3be290,_0x315b80,_0xe53eec,_0x20b58b){return _0x3be290(_0x315b80,_0xe53eec,_0x20b58b);},'TnaVK':function(_0x530061,_0x2f747c){return _0x530061+_0x2f747c;},'fFVxe':function(_0x487ce4,_0x2ce0e6){return _0x487ce4>=_0x2ce0e6;},'pEwqq':function(_0xb02bca,_0x4e0338){return _0xb02bca+_0x4e0338;},'WWyra':function(_0x4ed56f,_0x136edb){return _0x4ed56f+_0x136edb;},'Yqjdf':function(_0x1e7766,_0x143ae1){return _0x1e7766+_0x143ae1;},'NPHPQ':function(_0x326a32,_0x1095f3){return _0x326a32===_0x1095f3;}},_0x1e13ff=[],_0x19b354=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x15f382=0x0;while(_0x15f382<_0x2bf839[_0x16273f(0xdb)]){const _0x2a15dd=_0x2bf839['indexOf'](_0x19b354,_0x15f382);if(_0x2a15dd===-0x1)break;const [_0x51c8e0,_0x10ed63]=_0x177069[_0x16273f(0xf4)](readId,_0x2bf839,_0x2a15dd);if(_0x51c8e0!==ID_CLUSTER){_0x15f382=_0x2a15dd+0x1;continue;}const [_0x3fbd1d,_0x2f28a1]=readVint(_0x2bf839,_0x177069[_0x16273f(0xc9)](_0x2a15dd,_0x10ed63)),_0xd8fcdb=_0x177069[_0x16273f(0xcb)](_0x177069[_0x16273f(0xed)](_0x2a15dd,_0x10ed63),_0x2f28a1),_0xe78d62=_0x177069[_0x16273f(0xd9)](findClusterEnd,_0x2bf839,_0xd8fcdb,_0x3fbd1d,_0x2f28a1);let _0x4d1764=_0xd8fcdb,_0x4d1014=0x0,_0x5860c6=0x2,_0x4e626e=![],_0x9091ed=Buffer['alloc'](0x0),_0x459a3e=Buffer[_0x16273f(0xe8)](0x0);while(_0x177069[_0x16273f(0xd8)](_0x4d1764,_0xe78d62)){const [_0x4f8aa4,_0x5374b5]=_0x177069[_0x16273f(0xe5)](readId,_0x2bf839,_0x4d1764),[_0x465476,_0x284dec]=_0x177069[_0x16273f(0xe5)](readVint,_0x2bf839,_0x177069['oMzeS'](_0x4d1764,_0x5374b5));if(_0x177069['NJVyl'](_0x4f8aa4,ID_TIMESTAMP)){_0x4d1014=_0x177069[_0x16273f(0xe2)](readUint,_0x2bf839,_0x177069['TnaVK'](_0x177069[_0x16273f(0xc9)](_0x4d1764,_0x5374b5),_0x284dec),_0x465476),_0x5860c6=_0x465476,_0x4e626e=!![],_0x9091ed=_0x2bf839[_0x16273f(0xc2)](_0xd8fcdb,_0x4d1764);const _0x4f6cd9=_0x177069['MpDST'](_0x4d1764,_0x5374b5)+_0x284dec+_0x465476;_0x459a3e=_0x2bf839[_0x16273f(0xc2)](_0x4f6cd9,_0xe78d62);break;}if(_0x177069['NJVyl'](_0x4f8aa4,ID_CLUSTER))break;if(isUnknownSize(_0x465476,_0x284dec))break;_0x4d1764+=_0x177069[_0x16273f(0xed)](_0x5374b5+_0x284dec,_0x465476);}!_0x4e626e&&(_0x459a3e=_0x2bf839[_0x16273f(0xc2)](_0xd8fcdb,_0xe78d62));let _0x38c845=_0x4d1014;_0x4d1764=_0xd8fcdb;while(_0x4d1764<_0xe78d62){const [_0x13d583,_0x3c4d45]=readId(_0x2bf839,_0x4d1764),[_0x4597fa,_0x15c551]=_0x177069[_0x16273f(0xe5)](readVint,_0x2bf839,_0x177069[_0x16273f(0xcb)](_0x4d1764,_0x3c4d45));if(_0x177069[_0x16273f(0xcc)](_0x13d583,ID_SIMPLE_BLOCK)&&_0x177069[_0x16273f(0x10a)](_0x4597fa,0x4)){const _0x5c3262=_0x177069[_0x16273f(0x105)](_0x4d1764+_0x3c4d45,_0x15c551),[,_0x2f7e2]=_0x177069['yHGfp'](readVint,_0x2bf839,_0x5c3262),_0x35f0b9=_0x2bf839['readInt16BE'](_0x177069[_0x16273f(0xd5)](_0x5c3262,_0x2f7e2)),_0x11ee7c=_0x177069[_0x16273f(0xdc)](_0x4d1014,_0x35f0b9);if(_0x11ee7c>_0x38c845)_0x38c845=_0x11ee7c;}if(_0x177069['NPHPQ'](_0x13d583,ID_CLUSTER))break;if(_0x177069[_0x16273f(0xe5)](isUnknownSize,_0x4597fa,_0x15c551))break;_0x4d1764+=_0x3c4d45+_0x15c551+_0x4597fa;}_0x1e13ff[_0x16273f(0xfb)]({'timestamp':_0x4d1014,'maxTicks':_0x38c845,'bodyBeforeTimestamp':_0x9091ed,'bodyAfterTimestamp':_0x459a3e,'timestampElementSize':_0x5860c6}),_0x15f382=_0xe78d62;}return _0x1e13ff;}function parseWebm(_0x57d336){const _0x3b1204=_0x29e6,_0x31326c={'RYSEU':function(_0x23d694,_0x212deb,_0x29ab5a){return _0x23d694(_0x212deb,_0x29ab5a);},'YVXZt':function(_0x53a45b,_0x455d5d){return _0x53a45b+_0x455d5d;},'JxzPj':function(_0x2528c7,_0x53a764,_0x21306d){return _0x2528c7(_0x53a764,_0x21306d);},'UliWH':function(_0x25a7fb,_0x53e16a,_0x38a93c){return _0x25a7fb(_0x53e16a,_0x38a93c);}};let _0x23b2f4=0x0;const [,_0x18618e]=readId(_0x57d336,_0x23b2f4),[_0x580c20,_0x397bad]=_0x31326c[_0x3b1204(0xc1)](readVint,_0x57d336,_0x23b2f4+_0x18618e);_0x23b2f4+=_0x31326c[_0x3b1204(0xbf)](_0x31326c['YVXZt'](_0x18618e,_0x397bad),_0x580c20);const [_0x210dfa,_0x2abc4]=_0x31326c[_0x3b1204(0xea)](readId,_0x57d336,_0x23b2f4);if(_0x210dfa!==ID_SEGMENT)return null;const [,_0x36b734]=_0x31326c[_0x3b1204(0xea)](readVint,_0x57d336,_0x23b2f4+_0x2abc4),_0x5915e7=_0x31326c['YVXZt'](_0x23b2f4,_0x2abc4)+_0x36b734,_0x3f2863=findTimestampScale(_0x57d336,_0x5915e7),_0x3dfa78=_0x31326c['UliWH'](findFirstClusterOffset,_0x57d336,_0x5915e7),_0x4d860a=_0x57d336[_0x3b1204(0xc2)](0x0,_0x3dfa78),_0x3d88f5=extractClusters(_0x57d336,_0x3f2863);let _0x5de562=0x0;for(const _0x4a537c of _0x3d88f5){if(_0x4a537c[_0x3b1204(0xc5)]>_0x5de562)_0x5de562=_0x4a537c[_0x3b1204(0xc5)];}return{'header':_0x4d860a,'clusters':_0x3d88f5,'timestampScale':_0x3f2863,'maxTimestampTicks':_0x5de562};}function buildCluster(_0x3f20a6,_0x594755,_0x148db7){const _0x4aa041=_0x29e6,_0x2183f5=Buffer['from']([0x1f,0x43,0xb6,0x75]),_0x5a7734=Math[_0x4aa041(0xe6)](0x4,uintSize(_0x3f20a6)),_0xc35474=Buffer[_0x4aa041(0xd4)]([Buffer['from']([ID_TIMESTAMP]),writeVint(_0x5a7734),writeUint(_0x3f20a6,_0x5a7734)]),_0x355050=Buffer[_0x4aa041(0xd4)]([_0x594755,_0xc35474,_0x148db7]),_0x14299c=writeVint(_0x355050[_0x4aa041(0xdb)]);return Buffer['concat']([_0x2183f5,_0x14299c,_0x355050]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x561e1e){const _0x468b5b=_0x29e6,_0x2736b6={'QfhZJ':function(_0x166a05,_0x431ea7,_0x56ffc4){return _0x166a05(_0x431ea7,_0x56ffc4);},'wzoGJ':function(_0x1e1c86,_0x59c704){return _0x1e1c86+_0x59c704;},'HHIHr':function(_0x5139de,_0x54e115){return _0x5139de+_0x54e115;},'jIpVk':function(_0x2753f3,_0x158a05){return _0x2753f3(_0x158a05);},'ROuEL':function(_0x3de112,_0x28bdae){return _0x3de112+_0x28bdae;},'hqibD':function(_0xea38ac,_0x2bc110){return _0xea38ac===_0x2bc110;},'FqLls':function(_0x52a208,_0x5973b1){return _0x52a208+_0x5973b1;},'eOKTy':function(_0x54cc81,_0x499e20){return _0x54cc81+_0x499e20;},'nSFum':function(_0x4ef74c,_0x489ae8){return _0x4ef74c<_0x489ae8;},'mkStO':function(_0x8ccc90,_0x34ae69,_0x1f4b15){return _0x8ccc90(_0x34ae69,_0x1f4b15);},'SozAA':function(_0x4d54ee,_0x333eb4){return _0x4d54ee!==_0x333eb4;},'DliOy':function(_0x37c22e,_0x57db38){return _0x37c22e+_0x57db38;}},_0x1095fa=Buffer[_0x468b5b(0xd0)](_0x561e1e);let _0x3dc6dd=0x0;const [,_0x378ebf]=readId(_0x1095fa,_0x3dc6dd),[_0x25156a,_0x4941a4]=_0x2736b6['QfhZJ'](readVint,_0x1095fa,_0x3dc6dd+_0x378ebf),_0x3f64c0=_0x2736b6['wzoGJ'](_0x2736b6['HHIHr'](_0x3dc6dd,_0x378ebf),_0x4941a4)+_0x25156a,[,_0x3afa8e]=readId(_0x1095fa,_0x3f64c0),[,_0xaff666]=readVint(_0x1095fa,_0x2736b6['wzoGJ'](_0x3f64c0,_0x3afa8e)),_0x5fb547=_0x3f64c0+_0x3afa8e+_0xaff666,_0x3b8a77=_0x2736b6['jIpVk'](writeUnknownSizeVint,_0xaff666);_0x3b8a77[_0x468b5b(0xf9)](_0x1095fa,_0x2736b6[_0x468b5b(0xc4)](_0x3f64c0,_0x3afa8e));let _0x1dd9a3=_0x5fb547;const _0x19602a=Math['min'](_0x1095fa[_0x468b5b(0xdb)],_0x2736b6['ROuEL'](_0x5fb547,0x2710));while(_0x1dd9a3<_0x19602a){const [_0x50eb89,_0x23e349]=readId(_0x1095fa,_0x1dd9a3),[_0x411424,_0x4def04]=readVint(_0x1095fa,_0x1dd9a3+_0x23e349);if(_0x2736b6[_0x468b5b(0x101)](_0x50eb89,ID_CLUSTER))break;if(_0x2736b6[_0x468b5b(0xbe)](isUnknownSize,_0x411424,_0x4def04))break;if(_0x50eb89===ID_INFO){const _0x5eec3=_0x2736b6[_0x468b5b(0xc8)](_0x2736b6['eOKTy'](_0x1dd9a3,_0x23e349),_0x4def04),_0x5987f8=_0x5eec3+_0x411424,_0x30b468=[];let _0x48c9f9=_0x5eec3;while(_0x2736b6['nSFum'](_0x48c9f9,_0x5987f8)){const [_0x271328,_0x20c208]=readId(_0x1095fa,_0x48c9f9),[_0x2a20b6,_0x17db4d]=_0x2736b6['mkStO'](readVint,_0x1095fa,_0x48c9f9+_0x20c208),_0x4470e9=_0x2736b6['HHIHr'](_0x20c208,_0x17db4d)+_0x2a20b6;_0x2736b6[_0x468b5b(0xf0)](_0x271328,ID_DURATION)&&_0x30b468[_0x468b5b(0xfb)](_0x1095fa[_0x468b5b(0xc2)](_0x48c9f9,_0x48c9f9+_0x4470e9)),_0x48c9f9+=_0x4470e9;}const _0x131475=Buffer['concat'](_0x30b468),_0x4af92a=Buffer['concat']([_0x1095fa['slice'](_0x1dd9a3,_0x2736b6[_0x468b5b(0xe7)](_0x1dd9a3,_0x23e349)),writeVint(_0x131475['length'],_0x4def04)]);return Buffer['concat']([_0x1095fa[_0x468b5b(0xc2)](0x0,_0x1dd9a3),_0x4af92a,_0x131475,_0x1095fa['slice'](_0x5987f8)]);}_0x1dd9a3+=_0x2736b6['DliOy'](_0x23e349,_0x4def04)+_0x411424;}return _0x1095fa;}export function stitchWebmFiles(_0x40a7a6,_0x147923){const _0x2cf929=_0x29e6,_0xb00ccc={'gaHbY':function(_0x326fda,_0x18ec94){return _0x326fda<=_0x18ec94;},'MvjMw':function(_0xf3e0d3,_0x2b4b53){return _0xf3e0d3(_0x2b4b53);},'GqnSw':function(_0x434884,_0x50b099){return _0x434884===_0x50b099;},'yoXKs':function(_0x2e6050,_0x2ca4a2){return _0x2e6050+_0x2ca4a2;}};if(_0xb00ccc['gaHbY'](_0x40a7a6['length'],0x1))return![];const _0x459398=[];for(const _0x4d2465 of _0x40a7a6){const _0x46aea5=_0xb00ccc['MvjMw'](readFileSync,_0x4d2465),_0x20d113=_0xb00ccc[_0x2cf929(0xda)](parseWebm,_0x46aea5);if(!_0x20d113||_0xb00ccc['GqnSw'](_0x20d113[_0x2cf929(0xc0)]['length'],0x0))return![];_0x459398[_0x2cf929(0xfb)](_0x20d113);}const _0x465e74=_0x459398[0x0],_0x4fd966=rebuildHeaderWithoutDuration(_0x465e74['header']),_0x2f9951=[_0x4fd966];let _0x28fe55=0x0;for(let _0x1019cd=0x0;_0x1019cd<_0x459398[_0x2cf929(0xdb)];_0x1019cd++){const _0x243b85=_0x459398[_0x1019cd];for(const _0x3d2429 of _0x243b85['clusters']){const _0x4c8529=_0x3d2429[_0x2cf929(0x102)]+_0x28fe55;_0x2f9951['push'](buildCluster(_0x4c8529,_0x3d2429[_0x2cf929(0xd6)],_0x3d2429['bodyAfterTimestamp']));}const _0x1c3d89=0x1e;_0x28fe55+=_0xb00ccc['yoXKs'](_0x243b85['maxTimestampTicks'],_0x1c3d89);}return writeFileSync(_0x147923,Buffer['concat'](_0x2f9951)),!![];}if(process[_0x27837a(0xe1)][0x1]?.['endsWith']('stitchWebmFiles.ts')||process['argv'][0x1]?.[_0x27837a(0xc7)](_0x27837a(0xf7))){const args=process['argv'][_0x27837a(0xc2)](0x2);args['length']<0x3&&(console[_0x27837a(0x108)]('Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>'),process[_0x27837a(0xef)](0x1));const output=args[args[_0x27837a(0xdb)]-0x1],inputs=args[_0x27837a(0xc2)](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x27837a(0xdd)]('Stitched\x20'+inputs['length']+'\x20files\x20->\x20'+output):console['log']('Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.');}function _0x1ba1(){const _0x121032=['slice','332FKdjqq','HHIHr','maxTicks','UofVx','endsWith','FqLls','oMzeS','1521436uMpdtk','EsRBY','NJVyl','OYXrr','xtyWf','SMOyZ','from','wYqyM','has','mucRH','concat','WWyra','bodyBeforeTimestamp','eLkQI','bwoFI','cJGYV','MvjMw','length','Yqjdf','log','1228qtOfGi','5515nZgrRT','ZWLxC','argv','lvbEw','kXwFi','AhBfK','sPPvN','max','wzoGJ','alloc','zIjMv','JxzPj','GSdRu','kgcow','MpDST','GTsvl','exit','SozAA','nMfOH','187752RrQJvA','aKsms','yHGfp','cERQO','2229093QunPyd','stitchWebmFiles.js','FBsBY','copy','pow','push','FHlzs','ibrPe','11069667clCXSh','rnvBp','1327088IeyLBl','hqibD','timestamp','QYuhb','oiVXY','pEwqq','1WiInSl','znbth','error','myuCm','fFVxe','floor','QfhZJ','YVXZt','clusters','RYSEU'];_0x1ba1=function(){return _0x121032;};return _0x1ba1();}
|
|
1
|
+
const _0x4d14b1=_0x140a;(function(_0x152dc2,_0x2ed228){const _0x1813cb=_0x140a,_0x98c7aa=_0x152dc2();while(!![]){try{const _0x41837e=parseInt(_0x1813cb(0x108))/0x1*(-parseInt(_0x1813cb(0xdc))/0x2)+parseInt(_0x1813cb(0xd5))/0x3*(parseInt(_0x1813cb(0xe8))/0x4)+parseInt(_0x1813cb(0xd2))/0x5*(-parseInt(_0x1813cb(0xdd))/0x6)+-parseInt(_0x1813cb(0xf8))/0x7*(parseInt(_0x1813cb(0xf4))/0x8)+-parseInt(_0x1813cb(0x115))/0x9*(parseInt(_0x1813cb(0xd7))/0xa)+-parseInt(_0x1813cb(0xcd))/0xb+parseInt(_0x1813cb(0xd4))/0xc*(parseInt(_0x1813cb(0xe2))/0xd);if(_0x41837e===_0x2ed228)break;else _0x98c7aa['push'](_0x98c7aa['shift']());}catch(_0x20bc2f){_0x98c7aa['push'](_0x98c7aa['shift']());}}}(_0x5426,0x3135f));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 _0x140a(_0x49d150,_0x20ef9c){_0x49d150=_0x49d150-0xcc;const _0x5426af=_0x5426();let _0x140aac=_0x5426af[_0x49d150];return _0x140aac;}function readVint(_0x27750c,_0x3c7722){const _0x5be956=_0x140a,_0x2f54f6={'nAdYg':function(_0xf596d,_0x2364c8){return _0xf596d>=_0x2364c8;},'UjkWE':function(_0x1b11ce,_0x50db26){return _0x1b11ce<=_0x50db26;},'OYjxN':function(_0x5a9ef5,_0x10ebfb){return _0x5a9ef5&_0x10ebfb;},'RrwQC':function(_0x5af66e,_0x4b08ef){return _0x5af66e>_0x4b08ef;},'AQmrU':function(_0x20abb2,_0x490c2f){return _0x20abb2-_0x490c2f;},'wkQog':function(_0x2f8ed4,_0x1777cb){return _0x2f8ed4+_0x1777cb;},'nWiJg':function(_0x2e75c4,_0x1a1fe6){return _0x2e75c4*_0x1a1fe6;}};if(_0x2f54f6['nAdYg'](_0x3c7722,_0x27750c[_0x5be956(0x107)]))return[0x0,0x0];const _0x4cc634=_0x27750c[_0x3c7722];let _0x1a74d8=0x1,_0x221dc8=0x80;while(_0x2f54f6['UjkWE'](_0x1a74d8,0x8)&&!_0x2f54f6[_0x5be956(0x10a)](_0x4cc634,_0x221dc8)){_0x1a74d8++,_0x221dc8>>=0x1;}if(_0x2f54f6[_0x5be956(0xfa)](_0x3c7722+_0x1a74d8,_0x27750c[_0x5be956(0x107)]))return[0x0,0x0];let _0x16e295=_0x4cc634&_0x2f54f6['AQmrU'](_0x221dc8,0x1);for(let _0x138971=0x1;_0x138971<_0x1a74d8;_0x138971++){_0x16e295=_0x2f54f6['wkQog'](_0x2f54f6[_0x5be956(0xd1)](_0x16e295,0x100),_0x27750c[_0x3c7722+_0x138971]);}return[_0x16e295,_0x1a74d8];}function readId(_0x2b0299,_0x54b4d5){const _0x58dd60=_0x140a,_0x124cf0={'LdRex':function(_0x2ff527,_0x5d2bf7){return _0x2ff527>=_0x5d2bf7;},'pTPUF':function(_0x1a9a19,_0xee397e){return _0x1a9a19>=_0xee397e;},'rzShP':function(_0x160b37,_0x47cb02){return _0x160b37+_0x47cb02;},'NqzZs':function(_0x1dc3f0,_0x252923){return _0x1dc3f0+_0x252923;}};if(_0x124cf0[_0x58dd60(0xe4)](_0x54b4d5,_0x2b0299[_0x58dd60(0x107)]))return[0x0,0x0];const _0x51665d=_0x2b0299[_0x54b4d5];let _0x1bff24;if(_0x124cf0[_0x58dd60(0xe4)](_0x51665d,0x80))_0x1bff24=0x1;else{if(_0x51665d>=0x40)_0x1bff24=0x2;else{if(_0x51665d>=0x20)_0x1bff24=0x3;else{if(_0x124cf0[_0x58dd60(0xe9)](_0x51665d,0x10))_0x1bff24=0x4;else return[_0x51665d,0x1];}}}if(_0x54b4d5+_0x1bff24>_0x2b0299['length'])return[0x0,0x0];let _0x392c3f=0x0;for(let _0x5d7373=0x0;_0x5d7373<_0x1bff24;_0x5d7373++){_0x392c3f=_0x124cf0['rzShP'](_0x392c3f*0x100,_0x2b0299[_0x124cf0['NqzZs'](_0x54b4d5,_0x5d7373)]);}return[_0x392c3f,_0x1bff24];}function readUint(_0xd5578a,_0x5d2194,_0x516d6b){const _0x232281=_0x140a,_0x596ad6={'LuanU':function(_0x49ac15,_0x49360a){return _0x49ac15*_0x49360a;},'lgPaH':function(_0x2292e6,_0x3b146a){return _0x2292e6+_0x3b146a;}};let _0x4823aa=0x0;for(let _0x3c006a=0x0;_0x3c006a<_0x516d6b;_0x3c006a++){_0x4823aa=_0x596ad6['LuanU'](_0x4823aa,0x100)+_0xd5578a[_0x596ad6[_0x232281(0xe5)](_0x5d2194,_0x3c006a)];}return _0x4823aa;}function isUnknownSize(_0x26d687,_0x1aec79){const _0x5c3b75={'cRMMH':function(_0xbf71f8,_0x30e559){return _0xbf71f8===_0x30e559;}};return _0x5c3b75['cRMMH'](_0x26d687,Math['pow'](0x2,0x7*_0x1aec79)-0x1);}function writeVint(_0x450dca,_0x36a5e3){const _0x4363a9=_0x140a,_0x438bda={'BtwPW':function(_0x5bc9fa,_0x4eeece){return _0x5bc9fa||_0x4eeece;},'lrNWo':function(_0x2d9ca1,_0x149034){return _0x2d9ca1-_0x149034;}};let _0x23d1dd=_0x438bda[_0x4363a9(0xf1)](_0x36a5e3,0x1);while(Math[_0x4363a9(0x100)](0x2,0x7*_0x23d1dd)-0x2<_0x450dca)_0x23d1dd++;const _0x1888ff=Buffer[_0x4363a9(0x10f)](_0x23d1dd);for(let _0x28416b=_0x438bda['lrNWo'](_0x23d1dd,0x1);_0x28416b>=0x0;_0x28416b--){_0x1888ff[_0x28416b]=_0x450dca&0xff,_0x450dca=Math[_0x4363a9(0x104)](_0x450dca/0x100);}return _0x1888ff[0x0]|=0x1<<0x8-_0x23d1dd,_0x1888ff;}function writeUint(_0x11261f,_0x323320){const _0x40c198=_0x140a,_0x1ab73d={'AQFpg':function(_0x2c7a24,_0xe6c2a0){return _0x2c7a24-_0xe6c2a0;},'jThVx':function(_0x3035a2,_0xe4b649){return _0x3035a2/_0xe4b649;}},_0x232f51=Buffer['alloc'](_0x323320);for(let _0x480e10=_0x1ab73d[_0x40c198(0xf7)](_0x323320,0x1);_0x480e10>=0x0;_0x480e10--){_0x232f51[_0x480e10]=_0x11261f&0xff,_0x11261f=Math['floor'](_0x1ab73d[_0x40c198(0xfb)](_0x11261f,0x100));}return _0x232f51;}function writeUnknownSizeVint(_0x1837ae){const _0x243ba2=_0x140a,_0x2d1b6d={'FHijY':function(_0x5502a2,_0x1b9385){return _0x5502a2>>_0x1b9385;},'CQaoq':function(_0x51d2fe,_0x3b307f){return _0x51d2fe-_0x3b307f;}},_0x4fe737=Buffer[_0x243ba2(0x10f)](_0x1837ae,0xff);return _0x4fe737[0x0]=_0x2d1b6d[_0x243ba2(0xda)](0xff,_0x2d1b6d[_0x243ba2(0x10c)](_0x1837ae,0x1)),_0x4fe737;}function uintSize(_0x41f0f3){const _0x513ae2=_0x140a,_0x1720b3={'SPzZl':function(_0x4d576b,_0x2f9e32){return _0x4d576b===_0x2f9e32;},'bAsph':function(_0x13acf2,_0x1f2b31){return _0x13acf2/_0x1f2b31;}};if(_0x1720b3[_0x513ae2(0xd3)](_0x41f0f3,0x0))return 0x1;let _0x5b5a40=0x0,_0x2e0e01=_0x41f0f3;while(_0x2e0e01>0x0){_0x5b5a40++,_0x2e0e01=Math[_0x513ae2(0x104)](_0x1720b3['bAsph'](_0x2e0e01,0x100));}return _0x5b5a40;}function findTimestampScale(_0x5d25c7,_0x5d0a42){const _0x4a5059=_0x140a,_0x31e45e={'yTqpK':function(_0x18ecf0,_0x170501){return _0x18ecf0<_0x170501;},'NTzou':function(_0x2227e7,_0x52e9f1){return _0x2227e7===_0x52e9f1;},'eMJQO':function(_0x38fe67,_0x1212b4){return _0x38fe67+_0x1212b4;},'fsJpo':function(_0x10852a,_0xa5ded2){return _0x10852a+_0xa5ded2;},'HNBHT':function(_0x12621d,_0x58f7db,_0x2536ac){return _0x12621d(_0x58f7db,_0x2536ac);},'Cmfno':function(_0x4f4951,_0x3ceb47){return _0x4f4951+_0x3ceb47;}};let _0x997226=_0x5d0a42;const _0x2fa7da=Math['min'](_0x5d25c7['length'],_0x5d0a42+0x2710);while(_0x31e45e['yTqpK'](_0x997226,_0x2fa7da)){const [_0x118e24,_0x68380e]=readId(_0x5d25c7,_0x997226),[_0x7e3abe,_0x30f134]=readVint(_0x5d25c7,_0x997226+_0x68380e);if(_0x31e45e[_0x4a5059(0xfd)](_0x118e24,ID_INFO)){let _0x427e50=_0x31e45e[_0x4a5059(0xdb)](_0x31e45e['fsJpo'](_0x997226,_0x68380e),_0x30f134);const _0x5c6760=_0x31e45e[_0x4a5059(0xfe)](_0x427e50,_0x7e3abe);while(_0x427e50<_0x5c6760){const [_0x301fb9,_0x176dd0]=_0x31e45e[_0x4a5059(0x114)](readId,_0x5d25c7,_0x427e50),[_0x12e104,_0x5effeb]=readVint(_0x5d25c7,_0x427e50+_0x176dd0);if(_0x301fb9===ID_TIMESTAMP_SCALE)return readUint(_0x5d25c7,_0x31e45e[_0x4a5059(0xdb)](_0x31e45e['fsJpo'](_0x427e50,_0x176dd0),_0x5effeb),_0x12e104);_0x427e50+=_0x31e45e['Cmfno'](_0x31e45e[_0x4a5059(0xdb)](_0x176dd0,_0x5effeb),_0x12e104);}break;}if(_0x31e45e['NTzou'](_0x118e24,ID_CLUSTER))break;if(isUnknownSize(_0x7e3abe,_0x30f134))break;_0x997226+=_0x31e45e[_0x4a5059(0xff)](_0x68380e+_0x30f134,_0x7e3abe);}return 0xf4240;}function findFirstClusterOffset(_0x102a9f,_0x518cfd){const _0x454ae1=_0x140a,_0x2f6d6f={'klRSG':function(_0x1d4254,_0xe66b08){return _0x1d4254<_0xe66b08;},'EJvho':function(_0x17cf30,_0x3c97b8,_0x551767){return _0x17cf30(_0x3c97b8,_0x551767);},'aAesf':function(_0x37fafa,_0x5f5c83,_0xa3e6c7){return _0x37fafa(_0x5f5c83,_0xa3e6c7);},'tDhOt':function(_0x514011,_0x5be38c){return _0x514011+_0x5be38c;}};let _0x59755a=_0x518cfd;while(_0x2f6d6f[_0x454ae1(0xdf)](_0x59755a,_0x102a9f['length'])){const [_0x4fe4e9,_0xa7da9b]=_0x2f6d6f[_0x454ae1(0xd6)](readId,_0x102a9f,_0x59755a);if(_0x4fe4e9===ID_CLUSTER)return _0x59755a;const [_0x3566c9,_0x5573ad]=_0x2f6d6f['aAesf'](readVint,_0x102a9f,_0x59755a+_0xa7da9b);if(isUnknownSize(_0x3566c9,_0x5573ad))return _0x59755a;_0x59755a+=_0x2f6d6f['tDhOt'](_0xa7da9b,_0x5573ad)+_0x3566c9;}return _0x102a9f['length'];}function findClusterEnd(_0x25ae69,_0x30c8f0,_0x5970db,_0x5e2237){const _0x1c9f05=_0x140a,_0x57a1e0={'AaFDU':function(_0x22f227,_0x4673bf,_0x1f52f1){return _0x22f227(_0x4673bf,_0x1f52f1);},'GPQoe':function(_0x12a596,_0x5d89bc){return _0x12a596<_0x5d89bc;},'JUMfP':function(_0x492e5f,_0x35c29a){return _0x492e5f-_0x35c29a;},'odPgE':function(_0x3df4f4,_0x50b32a){return _0x3df4f4+_0x50b32a;}};if(!_0x57a1e0['AaFDU'](isUnknownSize,_0x5970db,_0x5e2237))return _0x30c8f0+_0x5970db;const _0xc22f8=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x2a6391=_0x30c8f0;while(_0x57a1e0['GPQoe'](_0x2a6391,_0x57a1e0[_0x1c9f05(0xd8)](_0x25ae69['length'],0x4))){const [_0x4da89f,_0x765dd0]=readId(_0x25ae69,_0x2a6391);if(_0xc22f8[_0x1c9f05(0xce)](_0x4da89f))return _0x2a6391;const [_0x1714b2,_0x2f8e24]=readVint(_0x25ae69,_0x2a6391+_0x765dd0);if(isUnknownSize(_0x1714b2,_0x2f8e24))return _0x25ae69[_0x1c9f05(0x107)];_0x2a6391+=_0x57a1e0[_0x1c9f05(0x109)](_0x765dd0+_0x2f8e24,_0x1714b2);}return _0x25ae69[_0x1c9f05(0x107)];}function extractClusters(_0x3d5182,_0x34fab8){const _0x21caad=_0x140a,_0x3fe301={'cMYps':function(_0x1d1c6f,_0xef5f48){return _0x1d1c6f<_0xef5f48;},'DqUyx':function(_0x16186a,_0x49641c){return _0x16186a===_0x49641c;},'AfXFU':function(_0x788a,_0x2017ce,_0x4daece){return _0x788a(_0x2017ce,_0x4daece);},'sHTKR':function(_0x247b7d,_0x1a763b){return _0x247b7d+_0x1a763b;},'Yjwlt':function(_0x5488f6,_0x3a3fa4){return _0x5488f6+_0x3a3fa4;},'hFFRA':function(_0x4f3dfe,_0x9fa831){return _0x4f3dfe+_0x9fa831;},'WNfZR':function(_0x860112,_0x3160ef){return _0x860112+_0x3160ef;},'fkuWT':function(_0x5b3070,_0x10169c){return _0x5b3070+_0x10169c;}},_0x396a11=[],_0x39fb3d=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x2aa4ac=0x0;while(_0x3fe301['cMYps'](_0x2aa4ac,_0x3d5182['length'])){const _0x570c11=_0x3d5182[_0x21caad(0xd0)](_0x39fb3d,_0x2aa4ac);if(_0x3fe301[_0x21caad(0xcc)](_0x570c11,-0x1))break;const [_0x2105f7,_0x4d7268]=readId(_0x3d5182,_0x570c11);if(_0x2105f7!==ID_CLUSTER){_0x2aa4ac=_0x570c11+0x1;continue;}const [_0x5bd3f3,_0x3eb5d2]=_0x3fe301[_0x21caad(0x10e)](readVint,_0x3d5182,_0x570c11+_0x4d7268),_0x1bc335=_0x570c11+_0x4d7268+_0x3eb5d2,_0x248b3f=findClusterEnd(_0x3d5182,_0x1bc335,_0x5bd3f3,_0x3eb5d2);let _0x106d5d=_0x1bc335,_0xef7c23=0x0,_0xe887d0=0x2,_0x250d7f=![],_0x23ba02=Buffer['alloc'](0x0),_0x180ce5=Buffer[_0x21caad(0x10f)](0x0);while(_0x3fe301['cMYps'](_0x106d5d,_0x248b3f)){const [_0xb942ac,_0x3c12b4]=readId(_0x3d5182,_0x106d5d),[_0x4032f2,_0x4bdd5a]=readVint(_0x3d5182,_0x106d5d+_0x3c12b4);if(_0xb942ac===ID_TIMESTAMP){_0xef7c23=readUint(_0x3d5182,_0x3fe301['sHTKR'](_0x106d5d+_0x3c12b4,_0x4bdd5a),_0x4032f2),_0xe887d0=_0x4032f2,_0x250d7f=!![],_0x23ba02=_0x3d5182[_0x21caad(0xf6)](_0x1bc335,_0x106d5d);const _0x13481c=_0x3fe301[_0x21caad(0xee)](_0x3fe301['Yjwlt'](_0x106d5d+_0x3c12b4,_0x4bdd5a),_0x4032f2);_0x180ce5=_0x3d5182['slice'](_0x13481c,_0x248b3f);break;}if(_0xb942ac===ID_CLUSTER)break;if(_0x3fe301['AfXFU'](isUnknownSize,_0x4032f2,_0x4bdd5a))break;_0x106d5d+=_0x3fe301['Yjwlt'](_0x3fe301['sHTKR'](_0x3c12b4,_0x4bdd5a),_0x4032f2);}!_0x250d7f&&(_0x180ce5=_0x3d5182[_0x21caad(0xf6)](_0x1bc335,_0x248b3f));let _0x1f62ca=_0xef7c23;_0x106d5d=_0x1bc335;while(_0x3fe301['cMYps'](_0x106d5d,_0x248b3f)){const [_0x5b1074,_0x17276c]=readId(_0x3d5182,_0x106d5d),[_0x6c34c9,_0x55937a]=readVint(_0x3d5182,_0x3fe301[_0x21caad(0xe7)](_0x106d5d,_0x17276c));if(_0x5b1074===ID_SIMPLE_BLOCK&&_0x6c34c9>=0x4){const _0x407e55=_0x3fe301['Yjwlt'](_0x3fe301['WNfZR'](_0x106d5d,_0x17276c),_0x55937a),[,_0x277e58]=readVint(_0x3d5182,_0x407e55),_0x290508=_0x3d5182[_0x21caad(0xeb)](_0x407e55+_0x277e58),_0x560cc7=_0xef7c23+_0x290508;if(_0x560cc7>_0x1f62ca)_0x1f62ca=_0x560cc7;}if(_0x3fe301['DqUyx'](_0x5b1074,ID_CLUSTER))break;if(isUnknownSize(_0x6c34c9,_0x55937a))break;_0x106d5d+=_0x3fe301[_0x21caad(0xef)](_0x3fe301['fkuWT'](_0x17276c,_0x55937a),_0x6c34c9);}_0x396a11['push']({'timestamp':_0xef7c23,'maxTicks':_0x1f62ca,'bodyBeforeTimestamp':_0x23ba02,'bodyAfterTimestamp':_0x180ce5,'timestampElementSize':_0xe887d0}),_0x2aa4ac=_0x248b3f;}return _0x396a11;}function parseWebm(_0x86291e){const _0x491522=_0x140a,_0x41fe76={'qSsSM':function(_0x5b894d,_0x46b2d3,_0x2cf384){return _0x5b894d(_0x46b2d3,_0x2cf384);},'UiWSp':function(_0x14a01d,_0x4598fc){return _0x14a01d+_0x4598fc;},'NEItQ':function(_0x5525aa,_0x2328ff,_0x2b89d3){return _0x5525aa(_0x2328ff,_0x2b89d3);},'cTPmC':function(_0x26c862,_0x389649,_0x35afa7){return _0x26c862(_0x389649,_0x35afa7);},'ZFDwb':function(_0x3c7a49,_0x2e359e){return _0x3c7a49>_0x2e359e;}};let _0x20c70b=0x0;const [,_0x4bb952]=readId(_0x86291e,_0x20c70b),[_0x16ad7a,_0x1b0c44]=_0x41fe76['qSsSM'](readVint,_0x86291e,_0x20c70b+_0x4bb952);_0x20c70b+=_0x41fe76[_0x491522(0xf9)](_0x4bb952+_0x1b0c44,_0x16ad7a);const [_0x54f332,_0x538bce]=readId(_0x86291e,_0x20c70b);if(_0x54f332!==ID_SEGMENT)return null;const [,_0xae5c00]=_0x41fe76['NEItQ'](readVint,_0x86291e,_0x41fe76[_0x491522(0xf9)](_0x20c70b,_0x538bce)),_0x5efc3f=_0x20c70b+_0x538bce+_0xae5c00,_0x328019=findTimestampScale(_0x86291e,_0x5efc3f),_0x408342=_0x41fe76[_0x491522(0xea)](findFirstClusterOffset,_0x86291e,_0x5efc3f),_0x254159=_0x86291e[_0x491522(0xf6)](0x0,_0x408342),_0x5998d3=extractClusters(_0x86291e,_0x328019);let _0x2dad02=0x0;for(const _0x49974a of _0x5998d3){if(_0x41fe76[_0x491522(0x110)](_0x49974a['maxTicks'],_0x2dad02))_0x2dad02=_0x49974a[_0x491522(0x112)];}return{'header':_0x254159,'clusters':_0x5998d3,'timestampScale':_0x328019,'maxTimestampTicks':_0x2dad02};}function _0x5426(){const _0x1bc6a4=['AQFpg','140YLPWoT','UiWSp','RrwQC','jThVx','VqeGZ','NTzou','fsJpo','Cmfno','pow','endsWith','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','stitchWebmFiles.js','floor','stitchWebmFiles.ts','KhFDl','length','1xJrXiT','odPgE','OYjxN','min','CQaoq','XoEJw','AfXFU','alloc','ZFDwb','elPdn','maxTicks','LiBgD','HNBHT','7380GGnWkK','bodyBeforeTimestamp','DqUyx','1933756zNqgMq','has','timestamp','indexOf','nWiJg','59525TFWqLX','SPzZl','124248BZbGpu','1085487HFjgyO','EJvho','250MSiuRC','JUMfP','wlWpk','FHijY','eMJQO','148498MDTOfM','6PSCpcq','argv','klRSG','header','maxTimestampTicks','156ZDCdAP','concat','LdRex','lgPaH','max','hFFRA','4yxhhue','pTPUF','cTPmC','readInt16BE','clusters','QpBKK','sHTKR','WNfZR','gmTjs','BtwPW','log','copy','824CUqroj','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','slice'];_0x5426=function(){return _0x1bc6a4;};return _0x5426();}function buildCluster(_0xb1d357,_0x17b4ef,_0x514809){const _0x5e2a62=_0x140a,_0x11076a={'LiBgD':function(_0x40a3f0,_0x1e4953,_0x57672c){return _0x40a3f0(_0x1e4953,_0x57672c);},'mTJrp':function(_0x20009d,_0x4c4bbd){return _0x20009d(_0x4c4bbd);}},_0x19e667=Buffer['from']([0x1f,0x43,0xb6,0x75]),_0x569b70=Math[_0x5e2a62(0xe6)](0x4,uintSize(_0xb1d357)),_0x4fa2a7=Buffer['concat']([Buffer['from']([ID_TIMESTAMP]),writeVint(_0x569b70),_0x11076a[_0x5e2a62(0x113)](writeUint,_0xb1d357,_0x569b70)]),_0x3d91c8=Buffer[_0x5e2a62(0xe3)]([_0x17b4ef,_0x4fa2a7,_0x514809]),_0x74c8ea=_0x11076a['mTJrp'](writeVint,_0x3d91c8['length']);return Buffer['concat']([_0x19e667,_0x74c8ea,_0x3d91c8]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x259913){const _0x4581e6=_0x140a,_0x194403={'XoEJw':function(_0x422dfb,_0x5eb786,_0x1e83dd){return _0x422dfb(_0x5eb786,_0x1e83dd);},'elPdn':function(_0x2c0d35,_0x2b13f8){return _0x2c0d35+_0x2b13f8;},'gmTjs':function(_0x8fb5a9,_0x304ddd,_0x4275ec){return _0x8fb5a9(_0x304ddd,_0x4275ec);},'KhFDl':function(_0x345dea,_0x5c9f8c){return _0x345dea+_0x5c9f8c;},'Ujvsq':function(_0x128e00,_0x33e11a){return _0x128e00(_0x33e11a);},'QvfJA':function(_0x19e9f2,_0x10e7ab){return _0x19e9f2+_0x10e7ab;},'wlWpk':function(_0xceb5fc,_0x14bf47){return _0xceb5fc===_0x14bf47;},'VqeGZ':function(_0x277bef,_0x3a6395){return _0x277bef+_0x3a6395;},'KhvxU':function(_0x53b8ab,_0x2990a2){return _0x53b8ab+_0x2990a2;}},_0x5e9557=Buffer['from'](_0x259913);let _0x490107=0x0;const [,_0x22ef53]=_0x194403[_0x4581e6(0x10d)](readId,_0x5e9557,_0x490107),[_0x5d0594,_0x20f826]=readVint(_0x5e9557,_0x490107+_0x22ef53),_0x4809c6=_0x194403['elPdn'](_0x194403['elPdn'](_0x490107,_0x22ef53),_0x20f826)+_0x5d0594,[,_0xd97e94]=_0x194403[_0x4581e6(0xf0)](readId,_0x5e9557,_0x4809c6),[,_0x264507]=readVint(_0x5e9557,_0x194403['KhFDl'](_0x4809c6,_0xd97e94)),_0x599f06=_0x4809c6+_0xd97e94+_0x264507,_0x166880=_0x194403['Ujvsq'](writeUnknownSizeVint,_0x264507);_0x166880[_0x4581e6(0xf3)](_0x5e9557,_0x4809c6+_0xd97e94);let _0x2416dc=_0x599f06;const _0x5c03f9=Math[_0x4581e6(0x10b)](_0x5e9557[_0x4581e6(0x107)],_0x194403[_0x4581e6(0x111)](_0x599f06,0x2710));while(_0x2416dc<_0x5c03f9){const [_0x13ed7a,_0x48287f]=_0x194403['gmTjs'](readId,_0x5e9557,_0x2416dc),[_0x2eb8d3,_0x16fe96]=readVint(_0x5e9557,_0x194403['QvfJA'](_0x2416dc,_0x48287f));if(_0x194403[_0x4581e6(0xd9)](_0x13ed7a,ID_CLUSTER))break;if(isUnknownSize(_0x2eb8d3,_0x16fe96))break;if(_0x13ed7a===ID_INFO){const _0xa9add9=_0x194403[_0x4581e6(0x106)](_0x2416dc,_0x48287f)+_0x16fe96,_0x43057c=_0xa9add9+_0x2eb8d3,_0x3d3ff6=[];let _0x3463dd=_0xa9add9;while(_0x3463dd<_0x43057c){const [_0x1f3261,_0x306220]=_0x194403[_0x4581e6(0xf0)](readId,_0x5e9557,_0x3463dd),[_0x1a2030,_0x2c9e6f]=readVint(_0x5e9557,_0x3463dd+_0x306220),_0x5b5713=_0x306220+_0x2c9e6f+_0x1a2030;_0x1f3261!==ID_DURATION&&_0x3d3ff6['push'](_0x5e9557[_0x4581e6(0xf6)](_0x3463dd,_0x194403[_0x4581e6(0xfc)](_0x3463dd,_0x5b5713))),_0x3463dd+=_0x5b5713;}const _0x4160f9=Buffer[_0x4581e6(0xe3)](_0x3d3ff6),_0x51526a=Buffer[_0x4581e6(0xe3)]([_0x5e9557[_0x4581e6(0xf6)](_0x2416dc,_0x2416dc+_0x48287f),writeVint(_0x4160f9['length'],_0x16fe96)]);return Buffer['concat']([_0x5e9557[_0x4581e6(0xf6)](0x0,_0x2416dc),_0x51526a,_0x4160f9,_0x5e9557['slice'](_0x43057c)]);}_0x2416dc+=_0x194403['KhvxU'](_0x194403[_0x4581e6(0xfc)](_0x48287f,_0x16fe96),_0x2eb8d3);}return _0x5e9557;}export function stitchWebmFiles(_0x13efe8,_0x42fd7d){const _0x2e0f97=_0x140a,_0x22c454={'QpBKK':function(_0x10d961,_0x34867c){return _0x10d961(_0x34867c);},'ZEjWb':function(_0x1f995a,_0x159f88){return _0x1f995a+_0x159f88;},'zfoNT':function(_0x5d938b,_0x1b6804,_0x3036ed,_0x30e258){return _0x5d938b(_0x1b6804,_0x3036ed,_0x30e258);}};if(_0x13efe8[_0x2e0f97(0x107)]<=0x1)return![];const _0x3f15ac=[];for(const _0x1c6d92 of _0x13efe8){const _0x16612f=readFileSync(_0x1c6d92),_0x30a745=parseWebm(_0x16612f);if(!_0x30a745||_0x30a745[_0x2e0f97(0xec)]['length']===0x0)return![];_0x3f15ac['push'](_0x30a745);}const _0x3a5e07=_0x3f15ac[0x0],_0x26423d=_0x22c454[_0x2e0f97(0xed)](rebuildHeaderWithoutDuration,_0x3a5e07[_0x2e0f97(0xe0)]),_0x549e1c=[_0x26423d];let _0x37fe52=0x0;for(let _0x114b53=0x0;_0x114b53<_0x3f15ac['length'];_0x114b53++){const _0x34ada7=_0x3f15ac[_0x114b53];for(const _0x22854b of _0x34ada7[_0x2e0f97(0xec)]){const _0x15af23=_0x22c454['ZEjWb'](_0x22854b[_0x2e0f97(0xcf)],_0x37fe52);_0x549e1c['push'](_0x22c454['zfoNT'](buildCluster,_0x15af23,_0x22854b[_0x2e0f97(0x116)],_0x22854b['bodyAfterTimestamp']));}const _0x5ec15a=0x1e;_0x37fe52+=_0x34ada7[_0x2e0f97(0xe1)]+_0x5ec15a;}return writeFileSync(_0x42fd7d,Buffer['concat'](_0x549e1c)),!![];}if(process['argv'][0x1]?.[_0x4d14b1(0x101)](_0x4d14b1(0x105))||process[_0x4d14b1(0xde)][0x1]?.['endsWith'](_0x4d14b1(0x103))){const args=process['argv'][_0x4d14b1(0xf6)](0x2);args[_0x4d14b1(0x107)]<0x3&&(console['error'](_0x4d14b1(0x102)),process['exit'](0x1));const output=args[args[_0x4d14b1(0x107)]-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x4d14b1(0xf2)]('Stitched\x20'+inputs['length']+'\x20files\x20->\x20'+output):console[_0x4d14b1(0xf2)](_0x4d14b1(0xf5));}
|