@ranger-testing/ranger-cli 2.4.6 → 2.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/setup/claude.js +1 -1
  25. package/build/commands/setup/opencode.js +1 -1
  26. package/build/commands/setupCi.js +1 -1
  27. package/build/commands/skillup.js +1 -1
  28. package/build/commands/start.js +1 -1
  29. package/build/commands/status.js +1 -1
  30. package/build/commands/update.js +1 -1
  31. package/build/commands/updateEnv.js +1 -1
  32. package/build/commands/useEnv.js +1 -1
  33. package/build/commands/utils/activeProfile.js +1 -1
  34. package/build/commands/utils/agentEnv.js +1 -1
  35. package/build/commands/utils/browserSessionsApi.js +1 -1
  36. package/build/commands/utils/claudeConfig.js +1 -1
  37. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  38. package/build/commands/utils/claudePlugin.js +1 -1
  39. package/build/commands/utils/crypto.js +1 -1
  40. package/build/commands/utils/desirePathLog.js +1 -1
  41. package/build/commands/utils/deviceAuth.js +1 -1
  42. package/build/commands/utils/environment.js +1 -1
  43. package/build/commands/utils/featureApi.js +1 -1
  44. package/build/commands/utils/featureReportGenerator.js +1 -1
  45. package/build/commands/utils/fixWebmDuration.js +1 -1
  46. package/build/commands/utils/git.js +1 -1
  47. package/build/commands/utils/keychain.js +1 -1
  48. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  49. package/build/commands/utils/mcpImageBase64.js +1 -1
  50. package/build/commands/utils/model.js +1 -1
  51. package/build/commands/utils/opencodeConfig.js +1 -1
  52. package/build/commands/utils/playwrightCli.js +1 -1
  53. package/build/commands/utils/profileMessages.js +1 -1
  54. package/build/commands/utils/profileSetupBanner.js +1 -1
  55. package/build/commands/utils/rangerConfig.js +1 -1
  56. package/build/commands/utils/rangerRoot.js +1 -1
  57. package/build/commands/utils/reportGenerator.js +1 -1
  58. package/build/commands/utils/retry.js +1 -1
  59. package/build/commands/utils/sessionCache.js +1 -1
  60. package/build/commands/utils/settings.js +1 -1
  61. package/build/commands/utils/skillContent.js +1 -1
  62. package/build/commands/utils/skills.js +1 -1
  63. package/build/commands/utils/stitchWebmFiles.js +1 -1
  64. package/build/commands/utils/telemetry.js +1 -1
  65. package/build/commands/utils/tokenRefresh.js +1 -1
  66. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  67. package/build/commands/utils/userApi.js +1 -1
  68. package/build/commands/utils/version.js +1 -1
  69. package/build/commands/verifyFeature.js +1 -1
  70. package/build/commands/verifyFeatureCli.js +1 -1
  71. package/build/commands/verifyInBrowser.js +1 -1
  72. package/build/skills/ranger/SKILL.md +38 -41
  73. package/build/skills/ranger/create.md +5 -13
  74. package/build/skills/ranger/feedback.md +3 -3
  75. package/build/skills/ranger/start.md +13 -13
  76. package/build/skills/ranger/verify.md +15 -28
  77. package/package.json +5 -3
  78. package/scripts/postinstall.js +4 -1
@@ -1 +1 @@
1
- const _0x289797=_0x49c3;function _0x49c3(_0x4b091e,_0x26ad8a){_0x4b091e=_0x4b091e-0xb8;const _0x5da701=_0x5da7();let _0x49c3e5=_0x5da701[_0x4b091e];return _0x49c3e5;}(function(_0x530b68,_0x3e62d3){const _0x1b056b=_0x49c3,_0x56e9a8=_0x530b68();while(!![]){try{const _0x349ce2=-parseInt(_0x1b056b(0xc1))/0x1*(parseInt(_0x1b056b(0xc3))/0x2)+-parseInt(_0x1b056b(0xbd))/0x3*(-parseInt(_0x1b056b(0xc4))/0x4)+-parseInt(_0x1b056b(0xb8))/0x5+-parseInt(_0x1b056b(0xc5))/0x6+parseInt(_0x1b056b(0xb9))/0x7*(parseInt(_0x1b056b(0xbc))/0x8)+parseInt(_0x1b056b(0xc2))/0x9*(parseInt(_0x1b056b(0xbf))/0xa)+parseInt(_0x1b056b(0xba))/0xb*(-parseInt(_0x1b056b(0xbb))/0xc);if(_0x349ce2===_0x3e62d3)break;else _0x56e9a8['push'](_0x56e9a8['shift']());}catch(_0x1f21c6){_0x56e9a8['push'](_0x56e9a8['shift']());}}}(_0x5da7,0x9d030));const DEFAULT_PROFILE_COMMAND=_0x289797(0xbe);export function formatProfileRequiredMessage(_0x578455){const _0x5b3cf6=_0x289797,_0x4d6978={'GYKTA':function(_0x43986c,_0x5535da){return _0x43986c(_0x5535da);}},_0x1e3590=_0x578455?_0x4d6978[_0x5b3cf6(0xc0)](_0x578455,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'+_0x1e3590+'.';}function _0x5da7(){const _0x889681=['179824XGBDrm','261BNhais','2SCxbQF','36ELJqNI','1883196czuXru','1270575fGoqJk','7SPDgid','10005303NcjDxS','12BMArcM','10056624ZEGZmo','308589yDfoJo','ranger\x20profile\x20add\x20local','40570iVifZQ','GYKTA'];_0x5da7=function(){return _0x889681;};return _0x5da7();}
1
+ function _0x5c68(_0x5b27a6,_0x3f0aea){_0x5b27a6=_0x5b27a6-0x109;const _0x14355d=_0x1435();let _0x5c68f7=_0x14355d[_0x5b27a6];return _0x5c68f7;}function _0x1435(){const _0x59ca58=['1287472fSsowz','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','16392LwFBWo','9yexkkv','ranger\x20profile\x20add\x20local','2941470qboPAF','140liWiqx','40065swuPns','4069595qlSFBW','3619THzRqx','724810YAzOXL','257070chzLVv'];_0x1435=function(){return _0x59ca58;};return _0x1435();}const _0x4fe616=_0x5c68;(function(_0x12e304,_0x51825a){const _0x101c5d=_0x5c68,_0x481022=_0x12e304();while(!![]){try{const _0x412edf=parseInt(_0x101c5d(0x10d))/0x1+parseInt(_0x101c5d(0x10e))/0x2+-parseInt(_0x101c5d(0x109))/0x3*(parseInt(_0x101c5d(0x114))/0x4)+parseInt(_0x101c5d(0x10a))/0x5+parseInt(_0x101c5d(0x113))/0x6+parseInt(_0x101c5d(0x10b))/0x7*(-parseInt(_0x101c5d(0x110))/0x8)+parseInt(_0x101c5d(0x111))/0x9*(-parseInt(_0x101c5d(0x10c))/0xa);if(_0x412edf===_0x51825a)break;else _0x481022['push'](_0x481022['shift']());}catch(_0x19e7a2){_0x481022['push'](_0x481022['shift']());}}}(_0x1435,0x93e23));const DEFAULT_PROFILE_COMMAND=_0x4fe616(0x112);export function formatProfileRequiredMessage(_0x58e38b){const _0x49e8b2=_0x4fe616,_0x1c9080=_0x58e38b?_0x58e38b(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x49e8b2(0x10f)+_0x1c9080+'.';}
@@ -1 +1 @@
1
- function _0x1483(){const _0x4a00bd=['2641qmSqBS','2226615mhqiVn','160464pHESbD','8202971WsdTBH','3428700NhHCLP','stringify','iWXoz','dqWVS','nGeDj','\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','OFouT',';\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','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','515116qAGTRg','BmePh','PRnox','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','944044wMuIKU'];_0x1483=function(){return _0x4a00bd;};return _0x1483();}(function(_0x2257a1,_0xde4d7b){const _0x3f5815=_0x402c,_0x9914d0=_0x2257a1();while(!![]){try{const _0x539ccd=parseInt(_0x3f5815(0x1bd))/0x1+parseInt(_0x3f5815(0x1b8))/0x2+parseInt(_0x3f5815(0x1bf))/0x3+parseInt(_0x3f5815(0x1bc))/0x4+parseInt(_0x3f5815(0x1be))/0x5+parseInt(_0x3f5815(0x1c1))/0x6+-parseInt(_0x3f5815(0x1c0))/0x7;if(_0x539ccd===_0xde4d7b)break;else _0x9914d0['push'](_0x9914d0['shift']());}catch(_0x4b3c31){_0x9914d0['push'](_0x9914d0['shift']());}}}(_0x1483,0x6057a));function _0x402c(_0x282665,_0x2597c4){_0x282665=_0x282665-0x1b2;const _0x148319=_0x1483();let _0x402ce2=_0x148319[_0x282665];return _0x402ce2;}const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x7f9970=_0x402c,_0x42604d={'nGeDj':function(_0x2fdbb3,_0x1f70b7){return _0x2fdbb3+_0x1f70b7;},'PRnox':_0x7f9970(0x1b7),'OFouT':'<div\x20class=\x22ranger-banner__message\x22>','iWXoz':'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','dqWVS':'</div>','BmePh':'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'},_0x52a19a=_0x42604d[_0x7f9970(0x1b3)](_0x42604d['nGeDj']('<div\x20class=\x22ranger-banner__content\x22>',_0x42604d[_0x7f9970(0x1ba)])+_0x42604d[_0x7f9970(0x1b5)]+_0x7f9970(0x1bb)+_0x42604d[_0x7f9970(0x1c3)],_0x42604d['dqWVS'])+_0x42604d[_0x7f9970(0x1b2)]+_0x42604d[_0x7f9970(0x1b9)],_0x28187e='\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a';return _0x7f9970(0x1b4)+JSON[_0x7f9970(0x1c2)](_0x52a19a)+';\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['stringify'](_0x28187e)+_0x7f9970(0x1b6);})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x12a532){await _0x12a532['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
1
+ (function(_0x17053a,_0x1151a8){const _0x1d885e=_0x51b0,_0x405b23=_0x17053a();while(!![]){try{const _0x455509=parseInt(_0x1d885e(0xde))/0x1+parseInt(_0x1d885e(0xe1))/0x2+-parseInt(_0x1d885e(0xda))/0x3+parseInt(_0x1d885e(0xe3))/0x4+parseInt(_0x1d885e(0xdf))/0x5*(-parseInt(_0x1d885e(0xea))/0x6)+-parseInt(_0x1d885e(0xdb))/0x7*(parseInt(_0x1d885e(0xee))/0x8)+parseInt(_0x1d885e(0xe8))/0x9*(parseInt(_0x1d885e(0xed))/0xa);if(_0x455509===_0x1151a8)break;else _0x405b23['push'](_0x405b23['shift']());}catch(_0x47cbb7){_0x405b23['push'](_0x405b23['shift']());}}}(_0x424f,0xd19b1));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x531d09=_0x51b0,_0x1cd75e={'Wsyns':function(_0x5ad0f7,_0x1387a7){return _0x5ad0f7+_0x1387a7;},'TZZtP':_0x531d09(0xe7),'WwSdC':_0x531d09(0xe5),'ftISZ':'</div>'},_0x3440ed=_0x1cd75e[_0x531d09(0xec)]('<div\x20class=\x22ranger-banner__content\x22>'+_0x531d09(0xe2)+_0x1cd75e[_0x531d09(0xdc)],'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>')+_0x1cd75e[_0x531d09(0xe4)]+'</div>'+_0x1cd75e[_0x531d09(0xdd)]+_0x531d09(0xe9),_0x20959a=_0x531d09(0xeb);return _0x531d09(0xe6)+JSON[_0x531d09(0xd9)](_0x3440ed)+';\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[_0x531d09(0xd9)](_0x20959a)+_0x531d09(0xe0);})());function _0x424f(){const _0x42e458=['1639442ETmngs','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','873688WulDgp','WwSdC','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','\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','<div\x20class=\x22ranger-banner__message\x22>','9Rnpaxz','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','12COZhkJ','\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','Wsyns','22644930JMYudy','32DmApdQ','stringify','1543077BCkuaB','2658425PXqEXN','TZZtP','ftISZ','1201180codBuU','4029530veUbqf',';\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'];_0x424f=function(){return _0x42e458;};return _0x424f();}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}function _0x51b0(_0x23af6f,_0x22f006){_0x23af6f=_0x23af6f-0xd9;const _0x424f7b=_0x424f();let _0x51b091=_0x424f7b[_0x23af6f];return _0x51b091;}export async function addProfileSetupBanner(_0x1bde48){await _0x1bde48['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
@@ -1 +1 @@
1
- function _0x3980(){const _0x2c831c=['790380UKubKW','1614873dhjntx','warn','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','1234868OUNNEM','342344JUhEHK','ZHwOD','GabOj','202636jePaYG','550300pXHoRm','isArray','model','string','86wyUoGs','30yUcUGk','2762GjeChp','27UmzZYp'];_0x3980=function(){return _0x2c831c;};return _0x3980();}(function(_0xc383cd,_0x25d31b){const _0x14d4e8=_0x4231,_0x561de3=_0xc383cd();while(!![]){try{const _0x1ee17e=parseInt(_0x14d4e8(0x146))/0x1*(-parseInt(_0x14d4e8(0x144))/0x2)+parseInt(_0x14d4e8(0x149))/0x3+-parseInt(_0x14d4e8(0x13b))/0x4+parseInt(_0x14d4e8(0x140))/0x5+parseInt(_0x14d4e8(0x145))/0x6*(-parseInt(_0x14d4e8(0x13f))/0x7)+-parseInt(_0x14d4e8(0x13c))/0x8+-parseInt(_0x14d4e8(0x147))/0x9*(-parseInt(_0x14d4e8(0x148))/0xa);if(_0x1ee17e===_0x25d31b)break;else _0x561de3['push'](_0x561de3['shift']());}catch(_0x4523ad){_0x561de3['push'](_0x561de3['shift']());}}}(_0x3980,0x42071));import{readFile}from'fs/promises';function _0x4231(_0xa0c73a,_0x39ff81){_0xa0c73a=_0xa0c73a-0x139;const _0x39809b=_0x3980();let _0x423140=_0x39809b[_0xa0c73a];return _0x423140;}import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){return join(getRangerDir(),'config.json');}export async function loadRangerConfig(){const _0x459319=_0x4231,_0x53d4a2={'DGdfR':'utf-8','GabOj':_0x459319(0x143),'ZHwOD':function(_0x58f1d0,_0x35f8df){return _0x58f1d0(_0x35f8df);}},_0x580324=getRangerConfigPath();if(!existsSync(_0x580324))return{};try{const _0x574ea0=await readFile(_0x580324,_0x53d4a2['DGdfR']),_0x30260f=JSON['parse'](_0x574ea0);if(!_0x30260f||typeof _0x30260f!=='object'||Array[_0x459319(0x141)](_0x30260f))return{};const _0x13fd71={},_0x48715e=_0x30260f[_0x459319(0x142)];return typeof _0x48715e===_0x53d4a2[_0x459319(0x13e)]&&(_0x13fd71[_0x459319(0x142)]=_0x48715e),_0x13fd71;}catch(_0x33adb1){const _0x4af248=_0x33adb1 instanceof Error?_0x33adb1['message']:_0x53d4a2[_0x459319(0x13d)](String,_0x33adb1);return console[_0x459319(0x139)](_0x459319(0x13a)+_0x580324+':\x20'+_0x4af248),{};}}
1
+ (function(_0x5e379a,_0x1d2eb9){const _0x25b325=_0x3832,_0x25b381=_0x5e379a();while(!![]){try{const _0x1939ef=parseInt(_0x25b325(0xdf))/0x1+-parseInt(_0x25b325(0xe0))/0x2*(parseInt(_0x25b325(0xe1))/0x3)+parseInt(_0x25b325(0xe6))/0x4+parseInt(_0x25b325(0xde))/0x5+-parseInt(_0x25b325(0xe8))/0x6*(parseInt(_0x25b325(0xe5))/0x7)+parseInt(_0x25b325(0xea))/0x8*(parseInt(_0x25b325(0xec))/0x9)+-parseInt(_0x25b325(0xe4))/0xa;if(_0x1939ef===_0x1d2eb9)break;else _0x25b381['push'](_0x25b381['shift']());}catch(_0x24ed8e){_0x25b381['push'](_0x25b381['shift']());}}}(_0x3e17,0xb8a10));import{readFile}from'fs/promises';function _0x3e17(){const _0xa7b4a1=['1167233sGNscx','4394zmjTqq','1146erKZsK','object','model','17798730RlQdZH','2872597hWngiO','2850428LpBbNn','lMQdf','6ejUQSX','CdZtQ','1594744HEqcmb','string','36WuIDZJ','message','hlyzH','warn','5542630ZgabsZ'];_0x3e17=function(){return _0xa7b4a1;};return _0x3e17();}import{existsSync}from'fs';import{join}from'path';function _0x3832(_0x536ffe,_0x391b0b){_0x536ffe=_0x536ffe-0xde;const _0x3e17d5=_0x3e17();let _0x38329b=_0x3e17d5[_0x536ffe];return _0x38329b;}import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x42154c={'RRQBX':'config.json'};return join(getRangerDir(),_0x42154c['RRQBX']);}export async function loadRangerConfig(){const _0xbaff12=_0x3832,_0x59ec18={'CdZtQ':function(_0x4f115d,_0x5c9f84){return _0x4f115d(_0x5c9f84);},'dvTth':'utf-8','lSuEj':_0xbaff12(0xe2),'lMQdf':_0xbaff12(0xeb),'hlyzH':function(_0x4875c9,_0x2530d7){return _0x4875c9 instanceof _0x2530d7;}},_0x1df95d=getRangerConfigPath();if(!_0x59ec18[_0xbaff12(0xe9)](existsSync,_0x1df95d))return{};try{const _0x5ed0c6=await readFile(_0x1df95d,_0x59ec18['dvTth']),_0x317346=JSON['parse'](_0x5ed0c6);if(!_0x317346||typeof _0x317346!==_0x59ec18['lSuEj']||Array['isArray'](_0x317346))return{};const _0x346565={},_0x421bcf=_0x317346['model'];return typeof _0x421bcf===_0x59ec18[_0xbaff12(0xe7)]&&(_0x346565[_0xbaff12(0xe3)]=_0x421bcf),_0x346565;}catch(_0x2ff361){const _0x4927cd=_0x59ec18[_0xbaff12(0xee)](_0x2ff361,Error)?_0x2ff361[_0xbaff12(0xed)]:_0x59ec18['CdZtQ'](String,_0x2ff361);return console[_0xbaff12(0xef)]('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x1df95d+':\x20'+_0x4927cd),{};}}
@@ -1 +1 @@
1
- (function(_0x568dd2,_0x2ce881){const _0x1dec4e=_0x3a6e,_0x52c625=_0x568dd2();while(!![]){try{const _0x2b04e8=parseInt(_0x1dec4e(0x14d))/0x1*(-parseInt(_0x1dec4e(0x146))/0x2)+-parseInt(_0x1dec4e(0x149))/0x3+parseInt(_0x1dec4e(0x148))/0x4*(-parseInt(_0x1dec4e(0x142))/0x5)+-parseInt(_0x1dec4e(0x13c))/0x6*(parseInt(_0x1dec4e(0x140))/0x7)+parseInt(_0x1dec4e(0x145))/0x8+-parseInt(_0x1dec4e(0x13f))/0x9+parseInt(_0x1dec4e(0x141))/0xa*(parseInt(_0x1dec4e(0x13d))/0xb);if(_0x2b04e8===_0x2ce881)break;else _0x52c625['push'](_0x52c625['shift']());}catch(_0x1694e5){_0x52c625['push'](_0x52c625['shift']());}}}(_0xdf68,0x276d0));import{dirname,join,parse}from'path';function _0xdf68(){const _0x1a0673=['IAhjI','EsqNB','248657nzCCnZ','mCwNl','cwd','884478AZLeAL','4945413tjyVJK','.ranger','631503dmcJMO','14FhbAjC','20bFlAWx','465zsiesb','TKzQh','toCko','1044232rZAKNO','2qKTeuU','pSlAo','3452zxGyWM','522894hIqkUe','GyxWq'];_0xdf68=function(){return _0x1a0673;};return _0xdf68();}import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x146e96=_0x3a6e,_0x45cfc={'UwLUX':function(_0x42a264,_0x3a2f68){return _0x42a264(_0x3a2f68);},'RQMaV':function(_0x40631f,_0x3302a8){return _0x40631f(_0x3302a8);},'IAhjI':function(_0xb3ffb1,_0x3b51fc,_0x5bae4c){return _0xb3ffb1(_0x3b51fc,_0x5bae4c);},'EsqNB':_0x146e96(0x13e),'GyxWq':function(_0x43daa7){return _0x43daa7();}};let _0x1daf3=process[_0x146e96(0x14f)]();const _0x5f6960=_0x45cfc['UwLUX'](parse,_0x1daf3)['root'];while(_0x1daf3!==_0x5f6960){if(_0x45cfc['RQMaV'](existsSync,_0x45cfc[_0x146e96(0x14b)](join,_0x1daf3,_0x45cfc[_0x146e96(0x14c)])))return _0x1daf3;_0x1daf3=dirname(_0x1daf3);}if(existsSync(join(_0x5f6960,'.ranger')))return _0x5f6960;const _0x495abf=_0x45cfc[_0x146e96(0x14a)](findGitRoot);if(_0x495abf)return _0x495abf;return process['cwd']();}export function getRangerDir(){const _0x3b0942=_0x3a6e,_0x150383={'TKzQh':function(_0x11eb36,_0x129c60,_0x6aa2d2){return _0x11eb36(_0x129c60,_0x6aa2d2);},'DsAKm':function(_0x59999c){return _0x59999c();},'SBljD':'.ranger'};return _0x150383[_0x3b0942(0x143)](join,_0x150383['DsAKm'](getRangerRoot),_0x150383['SBljD']);}export function findGitRoot(){const _0xa0fbdf=_0x3a6e,_0x23d0ef={'lLrwQ':function(_0x57c4ba,_0x31692b){return _0x57c4ba!==_0x31692b;},'toCko':function(_0x8366e4,_0xff1c0,_0x2a4bf7){return _0x8366e4(_0xff1c0,_0x2a4bf7);},'mCwNl':function(_0x3e6684,_0x4140b0){return _0x3e6684(_0x4140b0);},'pSlAo':function(_0x50b00e,_0x4cdb3f,_0x3767ff){return _0x50b00e(_0x4cdb3f,_0x3767ff);}};let _0xf7716b=process[_0xa0fbdf(0x14f)]();const _0x77d723=parse(_0xf7716b)['root'];while(_0x23d0ef['lLrwQ'](_0xf7716b,_0x77d723)){if(existsSync(_0x23d0ef[_0xa0fbdf(0x144)](join,_0xf7716b,'.git')))return _0xf7716b;_0xf7716b=_0x23d0ef[_0xa0fbdf(0x14e)](dirname,_0xf7716b);}if(_0x23d0ef[_0xa0fbdf(0x14e)](existsSync,_0x23d0ef[_0xa0fbdf(0x147)](join,_0x77d723,'.git')))return _0x77d723;return null;}function _0x3a6e(_0x17f734,_0x31b603){_0x17f734=_0x17f734-0x13c;const _0xdf68ca=_0xdf68();let _0x3a6ec3=_0xdf68ca[_0x17f734];return _0x3a6ec3;}export function getRangerHomeDir(){const _0x2cd740={'OPQfL':function(_0x269e65){return _0x269e65();},'AqbXM':'.ranger'};return join(_0x2cd740['OPQfL'](homedir),_0x2cd740['AqbXM']);}
1
+ function _0x1f69(){const _0x40b647=['.ranger','203802duzfTK','446795MYRHSf','5552397maEkpb','1345256RsSNbJ','BQfOv','mrvhH','3croKzP','143mPPjRk','mFuVK','1563720iDlvaq','root','8kBfmxw','.git','64VHHogC','3338268dJDcNW','342078EWkTdd','cwd','33EgkhJz','56FeJJhP','elNmx','qNLHi'];_0x1f69=function(){return _0x40b647;};return _0x1f69();}(function(_0x18bf48,_0x40bbc5){const _0x3b6bf7=_0x4702,_0x3ebbbd=_0x18bf48();while(!![]){try{const _0x4f24bd=-parseInt(_0x3b6bf7(0x1a0))/0x1+parseInt(_0x3b6bf7(0x19d))/0x2*(-parseInt(_0x3b6bf7(0x1a3))/0x3)+-parseInt(_0x3b6bf7(0x1aa))/0x4*(parseInt(_0x3b6bf7(0x19e))/0x5)+-parseInt(_0x3b6bf7(0x1ac))/0x6*(parseInt(_0x3b6bf7(0x1af))/0x7)+-parseInt(_0x3b6bf7(0x1a8))/0x8*(-parseInt(_0x3b6bf7(0x19f))/0x9)+parseInt(_0x3b6bf7(0x1a6))/0xa*(parseInt(_0x3b6bf7(0x1ae))/0xb)+parseInt(_0x3b6bf7(0x1ab))/0xc*(parseInt(_0x3b6bf7(0x1a4))/0xd);if(_0x4f24bd===_0x40bbc5)break;else _0x3ebbbd['push'](_0x3ebbbd['shift']());}catch(_0xb95a7e){_0x3ebbbd['push'](_0x3ebbbd['shift']());}}}(_0x1f69,0xc6843));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x14c59c=_0x4702,_0x460ade={'mUpfc':function(_0x44c589,_0x5cca91){return _0x44c589(_0x5cca91);},'jzTUZ':_0x14c59c(0x19c),'VqSNE':function(_0xc280c,_0x380fbd){return _0xc280c(_0x380fbd);},'mOxiS':function(_0xd64f56,_0x462173,_0x5c018e){return _0xd64f56(_0x462173,_0x5c018e);}};let _0x55ed16=process['cwd']();const _0x1b676f=parse(_0x55ed16)[_0x14c59c(0x1a7)];while(_0x55ed16!==_0x1b676f){if(_0x460ade['mUpfc'](existsSync,join(_0x55ed16,_0x460ade['jzTUZ'])))return _0x55ed16;_0x55ed16=dirname(_0x55ed16);}if(_0x460ade['VqSNE'](existsSync,_0x460ade['mOxiS'](join,_0x1b676f,_0x460ade['jzTUZ'])))return _0x1b676f;const _0x2a7640=findGitRoot();if(_0x2a7640)return _0x2a7640;return process['cwd']();}function _0x4702(_0x146dd3,_0xb2956f){_0x146dd3=_0x146dd3-0x19c;const _0x1f6901=_0x1f69();let _0x470215=_0x1f6901[_0x146dd3];return _0x470215;}export function getRangerDir(){const _0x53c744=_0x4702,_0x819162={'mFuVK':function(_0x3ceee8,_0x2c36e5,_0x56af00){return _0x3ceee8(_0x2c36e5,_0x56af00);},'mrvhH':function(_0x1974c3){return _0x1974c3();},'qjbDb':_0x53c744(0x19c)};return _0x819162[_0x53c744(0x1a5)](join,_0x819162[_0x53c744(0x1a2)](getRangerRoot),_0x819162['qjbDb']);}export function findGitRoot(){const _0x5e9390=_0x4702,_0x33792c={'qNLHi':function(_0x12ca7f,_0x21f05d){return _0x12ca7f(_0x21f05d);},'xDkyo':function(_0x3af053,_0x37456c){return _0x3af053(_0x37456c);},'elNmx':_0x5e9390(0x1a9),'BQfOv':function(_0x3f0c6a,_0x2bfb77,_0x441963){return _0x3f0c6a(_0x2bfb77,_0x441963);}};let _0x582cd4=process[_0x5e9390(0x1ad)]();const _0x436e95=_0x33792c['qNLHi'](parse,_0x582cd4)['root'];while(_0x582cd4!==_0x436e95){if(_0x33792c['xDkyo'](existsSync,join(_0x582cd4,_0x33792c['elNmx'])))return _0x582cd4;_0x582cd4=dirname(_0x582cd4);}if(_0x33792c[_0x5e9390(0x1b1)](existsSync,_0x33792c[_0x5e9390(0x1a1)](join,_0x436e95,_0x33792c[_0x5e9390(0x1b0)])))return _0x436e95;return null;}export function getRangerHomeDir(){const _0x262c2b=_0x4702,_0x404226={'CRGhk':function(_0x10b678,_0x4c4d84,_0x338540){return _0x10b678(_0x4c4d84,_0x338540);},'iBkCA':function(_0x383b6c){return _0x383b6c();}};return _0x404226['CRGhk'](join,_0x404226['iBkCA'](homedir),_0x262c2b(0x19c));}
@@ -1 +1 @@
1
- (function(_0x338e44,_0x34c18b){const _0x4e49c7=_0xd7bf,_0x12934e=_0x338e44();while(!![]){try{const _0xcb0ad0=-parseInt(_0x4e49c7(0x1e6))/0x1*(parseInt(_0x4e49c7(0x201))/0x2)+-parseInt(_0x4e49c7(0x1ec))/0x3*(parseInt(_0x4e49c7(0x1f5))/0x4)+-parseInt(_0x4e49c7(0x200))/0x5*(parseInt(_0x4e49c7(0x1fc))/0x6)+-parseInt(_0x4e49c7(0x1f6))/0x7*(parseInt(_0x4e49c7(0x1f1))/0x8)+-parseInt(_0x4e49c7(0x1f8))/0x9+-parseInt(_0x4e49c7(0x1f7))/0xa*(parseInt(_0x4e49c7(0x1ed))/0xb)+-parseInt(_0x4e49c7(0x1eb))/0xc*(-parseInt(_0x4e49c7(0x1f4))/0xd);if(_0xcb0ad0===_0x34c18b)break;else _0x12934e['push'](_0x12934e['shift']());}catch(_0x1a86aa){_0x12934e['push'](_0x12934e['shift']());}}}(_0x4b49,0xa0f54));import{readdir}from'fs/promises';function _0x4b49(){const _0x581f6b=['gdQoB','101628QaAJit','39mDTGkR','9025082exbDNv','push','##\x20Result','**URL:**\x20','4800mzpDYc','length','join','6253BpygxZ','60328DOuwLu','1435ZLnpRL','10oRszCk','10761543TUcWKN','###\x20','BLOCKER','description','1552422ynCQed','sort','relativePath','**Full\x20Trace:**\x20[View\x20in\x20Playwright\x20Trace\x20Viewer](','5zPZUdj','18434pLkgqE','includes','filename','####\x20','**Screenshot:**','replace','##\x20Task','**Status:**\x20','PEMbX','**Duration:**\x20','severity','MAJOR','89ymAdiU','filter','screenshot','ynvta'];_0x4b49=function(){return _0x581f6b;};return _0x4b49();}import{join}from'path';import{existsSync}from'fs';export async function collectScreenshots(_0x27576b){const _0x1e69b1=_0xd7bf,_0x80edae={'PEMbX':function(_0x249254,_0x4f7d15,_0x15aeaa){return _0x249254(_0x4f7d15,_0x15aeaa);}},_0x359acf=[],_0x53dd48=[];if(!existsSync(_0x27576b))return{'screenshots':_0x359acf,'paths':_0x53dd48};const _0x3dd9d7=await readdir(_0x27576b),_0x4ed4cf=_0x3dd9d7[_0x1e69b1(0x1e7)](_0x5ba868=>/\.(png|jpg|jpeg|gif|webp)$/i['test'](_0x5ba868))[_0x1e69b1(0x1fd)]();for(const _0x476155 of _0x4ed4cf){const _0x548eee=_0x80edae[_0x1e69b1(0x1e2)](join,_0x27576b,_0x476155);_0x359acf[_0x1e69b1(0x1ee)]({'filename':_0x476155,'path':_0x548eee,'relativePath':'./'+_0x476155}),_0x53dd48['push'](_0x548eee);}return{'screenshots':_0x359acf,'paths':_0x53dd48};}function _0xd7bf(_0x410643,_0x238531){_0x410643=_0x410643-0x1df;const _0x4b492c=_0x4b49();let _0xd7bf91=_0x4b492c[_0x410643];return _0xd7bf91;}function getSeverityEmoji(_0x334012){const _0xd918e9=_0xd7bf;switch(_0x334012){case _0xd918e9(0x1fa):return'🔴';case _0xd918e9(0x1e5):return'🟠';default:return'⚪';}}function formatScreenshotCaption(_0x4c4d17){const _0x5e172b=_0xd7bf,_0xe1c326=_0x4c4d17['replace'](/\.(png|jpg|jpeg|gif|webp)$/i,''),_0x146b2b=_0xe1c326[_0x5e172b(0x1df)](/^\d+-/,'');return _0x146b2b['split']('-')['map'](_0x4e7b80=>_0x4e7b80['charAt'](0x0)['toUpperCase']()+_0x4e7b80['slice'](0x1))['join']('\x20');}export function generateMarkdownReport(_0x3b68da){const _0x2779b4=_0xd7bf,_0x13b2b3={'ynvta':function(_0x105274,_0xd2c9bc){return _0x105274>_0xd2c9bc;},'gdQoB':function(_0xdf6982,_0x367cea){return _0xdf6982(_0x367cea);}},{sessionId:_0x47504c,task:_0x1d378e,url:_0x586e86,success:_0x13fd7b,summary:_0x144784,issues:_0x349aa8,screenshots:_0x4500e2,durationMs:_0x500867,traceViewerUrl:_0x6e944c}=_0x3b68da,_0xbffff5=new Date()['toISOString'](),_0xa74cb4=(_0x500867/0x3e8)['toFixed'](0x1),_0x579e4a=[];_0x579e4a['push']('#\x20Verification\x20Report'),_0x579e4a['push'](''),_0x579e4a['push']('**Session:**\x20`'+_0x47504c+'`'),_0x579e4a['push']('**Generated:**\x20'+_0xbffff5),_0x579e4a[_0x2779b4(0x1ee)](_0x2779b4(0x1e3)+_0xa74cb4+'s'),_0x579e4a[_0x2779b4(0x1ee)](''),_0x579e4a['push'](_0x2779b4(0x1e0)),_0x579e4a[_0x2779b4(0x1ee)](''),_0x579e4a['push'](_0x2779b4(0x1f0)+_0x586e86),_0x579e4a['push'](''),_0x579e4a['push']('>\x20'+_0x1d378e),_0x579e4a['push'](''),_0x579e4a['push'](_0x2779b4(0x1ef)),_0x579e4a['push']('');const _0x5b8517=_0x13fd7b?'✅':'❌';_0x579e4a[_0x2779b4(0x1ee)](_0x2779b4(0x1e1)+_0x5b8517+'\x20'+(_0x13fd7b?'PASSED':'ISSUES\x20FOUND')),_0x579e4a['push'](''),_0x579e4a[_0x2779b4(0x1ee)]('###\x20Summary'),_0x579e4a['push'](''),_0x579e4a[_0x2779b4(0x1ee)](_0x144784),_0x579e4a['push']('');if(_0x349aa8&&_0x13b2b3['ynvta'](_0x349aa8['length'],0x0)){_0x579e4a['push']('###\x20Issues\x20Found\x20('+_0x349aa8[_0x2779b4(0x1f2)]+')'),_0x579e4a[_0x2779b4(0x1ee)]('');for(const _0x1cfd0d of _0x349aa8){const _0x293483=getSeverityEmoji(_0x1cfd0d[_0x2779b4(0x1e4)]);_0x579e4a[_0x2779b4(0x1ee)](_0x2779b4(0x204)+_0x293483+'\x20['+_0x1cfd0d['severity']+']\x20Issue'),_0x579e4a['push'](''),_0x579e4a[_0x2779b4(0x1ee)](_0x1cfd0d[_0x2779b4(0x1fb)]),_0x579e4a[_0x2779b4(0x1ee)]('');if(_0x1cfd0d['screenshot']){const _0x1753ce=_0x1cfd0d[_0x2779b4(0x1e8)],_0x333fbc=_0x4500e2['find'](_0x45ac53=>_0x45ac53['filename']===_0x1753ce||_0x45ac53['filename'][_0x2779b4(0x202)](_0x1753ce));_0x333fbc&&(_0x579e4a[_0x2779b4(0x1ee)](_0x2779b4(0x205)),_0x579e4a[_0x2779b4(0x1ee)](''),_0x579e4a[_0x2779b4(0x1ee)]('!['+_0x1753ce+']('+_0x333fbc[_0x2779b4(0x1fe)]+')'),_0x579e4a['push'](''));}}}if(_0x13b2b3[_0x2779b4(0x1e9)](_0x4500e2[_0x2779b4(0x1f2)],0x0)){_0x579e4a['push']('##\x20Screenshots\x20('+_0x4500e2['length']+')'),_0x579e4a[_0x2779b4(0x1ee)]('');for(const _0x49c428 of _0x4500e2){const _0x3ae8b4=_0x13b2b3[_0x2779b4(0x1ea)](formatScreenshotCaption,_0x49c428[_0x2779b4(0x203)]);_0x579e4a[_0x2779b4(0x1ee)](_0x2779b4(0x1f9)+_0x3ae8b4),_0x579e4a[_0x2779b4(0x1ee)](''),_0x579e4a[_0x2779b4(0x1ee)]('!['+_0x49c428[_0x2779b4(0x203)]+']('+_0x49c428['relativePath']+')'),_0x579e4a[_0x2779b4(0x1ee)]('');}}return _0x6e944c&&(_0x579e4a['push']('---'),_0x579e4a[_0x2779b4(0x1ee)](''),_0x579e4a[_0x2779b4(0x1ee)](_0x2779b4(0x1ff)+_0x6e944c+')'),_0x579e4a[_0x2779b4(0x1ee)]('')),_0x579e4a[_0x2779b4(0x1f3)]('\x0a');}
1
+ (function(_0x273ae7,_0x1e8bf2){const _0x3f5c9e=_0x309b,_0x2d4044=_0x273ae7();while(!![]){try{const _0x2fc52c=-parseInt(_0x3f5c9e(0x1f6))/0x1*(-parseInt(_0x3f5c9e(0x1ed))/0x2)+-parseInt(_0x3f5c9e(0x1f2))/0x3*(parseInt(_0x3f5c9e(0x1ec))/0x4)+parseInt(_0x3f5c9e(0x1ee))/0x5*(parseInt(_0x3f5c9e(0x1f7))/0x6)+-parseInt(_0x3f5c9e(0x1f5))/0x7+parseInt(_0x3f5c9e(0x1e9))/0x8*(-parseInt(_0x3f5c9e(0x1ff))/0x9)+-parseInt(_0x3f5c9e(0x1e2))/0xa+parseInt(_0x3f5c9e(0x1df))/0xb;if(_0x2fc52c===_0x1e8bf2)break;else _0x2d4044['push'](_0x2d4044['shift']());}catch(_0x31ed40){_0x2d4044['push'](_0x2d4044['shift']());}}}(_0x33d6,0xe00f3));function _0x309b(_0x1fd268,_0xdfcd2f){_0x1fd268=_0x1fd268-0x1dd;const _0x33d6b2=_0x33d6();let _0x309b4b=_0x33d6b2[_0x1fd268];return _0x309b4b;}import{readdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';export async function collectScreenshots(_0x28602a){const _0xfc6b6e=_0x309b,_0x5ef793={'VNniN':function(_0x5ce927,_0x2311c3,_0x24487a){return _0x5ce927(_0x2311c3,_0x24487a);}},_0x1f718a=[],_0x42e9ff=[];if(!existsSync(_0x28602a))return{'screenshots':_0x1f718a,'paths':_0x42e9ff};const _0x1f46de=await readdir(_0x28602a),_0x4436f2=_0x1f46de['filter'](_0x1db57=>/\.(png|jpg|jpeg|gif|webp)$/i['test'](_0x1db57))['sort']();for(const _0xb343a of _0x4436f2){const _0x2e870f=_0x5ef793[_0xfc6b6e(0x1f8)](join,_0x28602a,_0xb343a);_0x1f718a[_0xfc6b6e(0x1ea)]({'filename':_0xb343a,'path':_0x2e870f,'relativePath':'./'+_0xb343a}),_0x42e9ff[_0xfc6b6e(0x1ea)](_0x2e870f);}return{'screenshots':_0x1f718a,'paths':_0x42e9ff};}function getSeverityEmoji(_0x1210e9){const _0x5232c4=_0x309b,_0x5c966a={'YAjom':_0x5232c4(0x200)};switch(_0x1210e9){case _0x5232c4(0x1e3):return'🔴';case _0x5c966a['YAjom']:return'🟠';default:return'⚪';}}function formatScreenshotCaption(_0x3c7624){const _0xa88c98=_0x309b,_0x3aed4b=_0x3c7624['replace'](/\.(png|jpg|jpeg|gif|webp)$/i,''),_0x111b09=_0x3aed4b['replace'](/^\d+-/,'');return _0x111b09[_0xa88c98(0x1eb)]('-')[_0xa88c98(0x1fa)](_0x19e76c=>_0x19e76c[_0xa88c98(0x1f4)](0x0)[_0xa88c98(0x1de)]()+_0x19e76c[_0xa88c98(0x1e0)](0x1))['join']('\x20');}export function generateMarkdownReport(_0x413168){const _0x47148d=_0x309b,_0x5c7691={'YFqTH':function(_0x1e5459,_0x914395){return _0x1e5459>_0x914395;},'bdmdf':function(_0x86e88b,_0x32c4e3){return _0x86e88b(_0x32c4e3);}},{sessionId:_0x45a975,task:_0x584369,url:_0x573178,success:_0x2c46c3,summary:_0x51c1d2,issues:_0x483360,screenshots:_0x557176,durationMs:_0x63eeb1,traceViewerUrl:_0x5a423b}=_0x413168,_0x1c8717=new Date()['toISOString'](),_0x1852da=(_0x63eeb1/0x3e8)['toFixed'](0x1),_0x3bcf58=[];_0x3bcf58['push']('#\x20Verification\x20Report'),_0x3bcf58['push'](''),_0x3bcf58[_0x47148d(0x1ea)](_0x47148d(0x1fc)+_0x45a975+'`'),_0x3bcf58['push']('**Generated:**\x20'+_0x1c8717),_0x3bcf58['push']('**Duration:**\x20'+_0x1852da+'s'),_0x3bcf58['push'](''),_0x3bcf58[_0x47148d(0x1ea)]('##\x20Task'),_0x3bcf58[_0x47148d(0x1ea)](''),_0x3bcf58['push']('**URL:**\x20'+_0x573178),_0x3bcf58['push'](''),_0x3bcf58[_0x47148d(0x1ea)]('>\x20'+_0x584369),_0x3bcf58[_0x47148d(0x1ea)](''),_0x3bcf58['push'](_0x47148d(0x1e6)),_0x3bcf58['push']('');const _0x47f29a=_0x2c46c3?'✅':'❌';_0x3bcf58[_0x47148d(0x1ea)](_0x47148d(0x1e7)+_0x47f29a+'\x20'+(_0x2c46c3?_0x47148d(0x1ef):'ISSUES\x20FOUND')),_0x3bcf58['push'](''),_0x3bcf58['push']('###\x20Summary'),_0x3bcf58['push'](''),_0x3bcf58['push'](_0x51c1d2),_0x3bcf58[_0x47148d(0x1ea)]('');if(_0x483360&&_0x5c7691[_0x47148d(0x1f1)](_0x483360['length'],0x0)){_0x3bcf58['push'](_0x47148d(0x1dd)+_0x483360[_0x47148d(0x1f0)]+')'),_0x3bcf58[_0x47148d(0x1ea)]('');for(const _0x1a3bfd of _0x483360){const _0x3f3d4b=_0x5c7691['bdmdf'](getSeverityEmoji,_0x1a3bfd[_0x47148d(0x1e5)]);_0x3bcf58[_0x47148d(0x1ea)](_0x47148d(0x1e1)+_0x3f3d4b+'\x20['+_0x1a3bfd['severity']+_0x47148d(0x1fb)),_0x3bcf58['push'](''),_0x3bcf58['push'](_0x1a3bfd['description']),_0x3bcf58['push']('');if(_0x1a3bfd['screenshot']){const _0x36ba84=_0x1a3bfd[_0x47148d(0x1fe)],_0x1b515c=_0x557176[_0x47148d(0x1e4)](_0x27fcc5=>_0x27fcc5[_0x47148d(0x1f9)]===_0x36ba84||_0x27fcc5['filename'][_0x47148d(0x1f3)](_0x36ba84));_0x1b515c&&(_0x3bcf58['push']('**Screenshot:**'),_0x3bcf58[_0x47148d(0x1ea)](''),_0x3bcf58['push']('!['+_0x36ba84+']('+_0x1b515c[_0x47148d(0x1e8)]+')'),_0x3bcf58[_0x47148d(0x1ea)](''));}}}if(_0x5c7691['YFqTH'](_0x557176[_0x47148d(0x1f0)],0x0)){_0x3bcf58[_0x47148d(0x1ea)]('##\x20Screenshots\x20('+_0x557176['length']+')'),_0x3bcf58[_0x47148d(0x1ea)]('');for(const _0x3d2197 of _0x557176){const _0x40ae47=formatScreenshotCaption(_0x3d2197['filename']);_0x3bcf58['push']('###\x20'+_0x40ae47),_0x3bcf58['push'](''),_0x3bcf58[_0x47148d(0x1ea)]('!['+_0x3d2197['filename']+']('+_0x3d2197['relativePath']+')'),_0x3bcf58['push']('');}}return _0x5a423b&&(_0x3bcf58[_0x47148d(0x1ea)]('---'),_0x3bcf58[_0x47148d(0x1ea)](''),_0x3bcf58[_0x47148d(0x1ea)](_0x47148d(0x1fd)+_0x5a423b+')'),_0x3bcf58['push']('')),_0x3bcf58['join']('\x0a');}function _0x33d6(){const _0x1cc7cf=['###\x20Issues\x20Found\x20(','toUpperCase','17034501KaIjKA','slice','####\x20','17364820fOHyQS','BLOCKER','find','severity','##\x20Result','**Status:**\x20','relativePath','1123944NfrFxG','push','split','4DnnXTq','17614uBrZUd','5OCKiss','PASSED','length','YFqTH','1751214BmrCOL','includes','charAt','2867214SpDuAA','105THrUWL','10417290KJObwB','VNniN','filename','map',']\x20Issue','**Session:**\x20`','**Full\x20Trace:**\x20[View\x20in\x20Playwright\x20Trace\x20Viewer](','screenshot','36uTSGJr','MAJOR'];_0x33d6=function(){return _0x1cc7cf;};return _0x33d6();}
@@ -1 +1 @@
1
- function _0x5ccf(){const _0x2f72dd=['SsBna','7328528tEwiys','\x20failed\x20(attempt\x20','447926kLQvLC','1289040JReuem','error','8YfXYQz','3617908cAfgxJ','baseDelayMs','1738041iIsSzs','label','304787ZRqcAw','pow','157260HQpxEd'];_0x5ccf=function(){return _0x2f72dd;};return _0x5ccf();}(function(_0x212520,_0x5e0f7a){const _0x2388b5=_0x3b6b,_0x5eb79b=_0x212520();while(!![]){try{const _0x34795d=-parseInt(_0x2388b5(0x1d6))/0x1+parseInt(_0x2388b5(0x1ce))/0x2+parseInt(_0x2388b5(0x1d4))/0x3+-parseInt(_0x2388b5(0x1d1))/0x4*(-parseInt(_0x2388b5(0x1d8))/0x5)+parseInt(_0x2388b5(0x1cf))/0x6+parseInt(_0x2388b5(0x1d2))/0x7+-parseInt(_0x2388b5(0x1cc))/0x8;if(_0x34795d===_0x5e0f7a)break;else _0x5eb79b['push'](_0x5eb79b['shift']());}catch(_0x1238ef){_0x5eb79b['push'](_0x5eb79b['shift']());}}}(_0x5ccf,0x5c0d5));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x3b6b(_0x19f3fa,_0x28cb8e){_0x19f3fa=_0x19f3fa-0x1cc;const _0x5ccfea=_0x5ccf();let _0x3b6b92=_0x5ccfea[_0x19f3fa];return _0x3b6b92;}export async function withRetry(_0x4c4ddc,_0x44da9c){const _0x4d4f14=_0x3b6b,_0x581b25={'SsBna':function(_0x9cc778,_0x439709){return _0x9cc778(_0x439709);},'ViqDb':function(_0x3711c6,_0x4607d4){return _0x3711c6+_0x4607d4;}},_0x327cfb=_0x44da9c?.['maxRetries']??DEFAULT_MAX_RETRIES,_0xdc0661=_0x44da9c?.[_0x4d4f14(0x1d3)]??DEFAULT_BASE_DELAY_MS;let _0x5c31ea;for(let _0x4ee4d3=0x0;_0x4ee4d3<=_0x327cfb;_0x4ee4d3++){try{return await _0x4c4ddc();}catch(_0x182e59){_0x5c31ea=_0x182e59 instanceof Error?_0x182e59:new Error(_0x581b25[_0x4d4f14(0x1d9)](String,_0x182e59));if(_0x4ee4d3<_0x327cfb){const _0x246504=_0xdc0661*Math[_0x4d4f14(0x1d7)](0x2,_0x4ee4d3);_0x44da9c?.['label']&&console[_0x4d4f14(0x1d0)](_0x44da9c[_0x4d4f14(0x1d5)]+_0x4d4f14(0x1cd)+_0x581b25['ViqDb'](_0x4ee4d3,0x1)+'/'+(_0x327cfb+0x1)+'),\x20retrying\x20in\x20'+_0x246504+'ms...'),await new Promise(_0x35224c=>setTimeout(_0x35224c,_0x246504));}}}throw _0x5c31ea;}
1
+ (function(_0xbddd87,_0x43419f){const _0x2c7cde=_0x25eb,_0x2f069a=_0xbddd87();while(!![]){try{const _0x4873b0=-parseInt(_0x2c7cde(0x1a2))/0x1+parseInt(_0x2c7cde(0x1ac))/0x2*(-parseInt(_0x2c7cde(0x1a8))/0x3)+-parseInt(_0x2c7cde(0x1a5))/0x4*(parseInt(_0x2c7cde(0x1a6))/0x5)+-parseInt(_0x2c7cde(0x1ad))/0x6*(parseInt(_0x2c7cde(0x1a4))/0x7)+parseInt(_0x2c7cde(0x1a3))/0x8+parseInt(_0x2c7cde(0x19f))/0x9+parseInt(_0x2c7cde(0x1ab))/0xa;if(_0x4873b0===_0x43419f)break;else _0x2f069a['push'](_0x2f069a['shift']());}catch(_0x92d9c3){_0x2f069a['push'](_0x2f069a['shift']());}}}(_0x338d,0x79a42));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x338d(){const _0x94afea=['3300384PJJZaP','6575219oJhqoo','663848kcUgSX','10KVfyIM','label','137523fEECVD','baseDelayMs','maxRetries','20353850iAOrkR','30QFYrCh','6DRtlzE','6740775BrrSXJ','error','pow','739810JIuTAh'];_0x338d=function(){return _0x94afea;};return _0x338d();}function _0x25eb(_0x84950a,_0x3f7a53){_0x84950a=_0x84950a-0x19f;const _0x338db9=_0x338d();let _0x25eb6c=_0x338db9[_0x84950a];return _0x25eb6c;}export async function withRetry(_0x4eaac2,_0x2219c2){const _0x1ae592=_0x25eb,_0x2571ab={'QKcsj':function(_0x34d333,_0x1f751c){return _0x34d333 instanceof _0x1f751c;},'FjlBH':function(_0x1e6c06,_0x3f5c88){return _0x1e6c06*_0x3f5c88;}},_0x1312d4=_0x2219c2?.[_0x1ae592(0x1aa)]??DEFAULT_MAX_RETRIES,_0xa84981=_0x2219c2?.[_0x1ae592(0x1a9)]??DEFAULT_BASE_DELAY_MS;let _0x390320;for(let _0x2c86f1=0x0;_0x2c86f1<=_0x1312d4;_0x2c86f1++){try{return await _0x4eaac2();}catch(_0x2c808d){_0x390320=_0x2571ab['QKcsj'](_0x2c808d,Error)?_0x2c808d:new Error(String(_0x2c808d));if(_0x2c86f1<_0x1312d4){const _0x46f05f=_0x2571ab['FjlBH'](_0xa84981,Math[_0x1ae592(0x1a1)](0x2,_0x2c86f1));_0x2219c2?.[_0x1ae592(0x1a7)]&&console[_0x1ae592(0x1a0)](_0x2219c2['label']+'\x20failed\x20(attempt\x20'+(_0x2c86f1+0x1)+'/'+(_0x1312d4+0x1)+'),\x20retrying\x20in\x20'+_0x46f05f+'ms...'),await new Promise(_0x34f210=>setTimeout(_0x34f210,_0x46f05f));}}}throw _0x390320;}
@@ -1 +1 @@
1
- const _0x7d69f4=_0x5073;(function(_0x2e87fe,_0x4db20e){const _0x35fc66=_0x5073,_0x240c80=_0x2e87fe();while(!![]){try{const _0xf190fc=parseInt(_0x35fc66(0x199))/0x1+-parseInt(_0x35fc66(0x196))/0x2*(parseInt(_0x35fc66(0x184))/0x3)+parseInt(_0x35fc66(0x1a1))/0x4*(-parseInt(_0x35fc66(0x1a2))/0x5)+parseInt(_0x35fc66(0x1a7))/0x6+parseInt(_0x35fc66(0x193))/0x7+parseInt(_0x35fc66(0x19f))/0x8*(parseInt(_0x35fc66(0x18d))/0x9)+parseInt(_0x35fc66(0x195))/0xa;if(_0xf190fc===_0x4db20e)break;else _0x240c80['push'](_0x240c80['shift']());}catch(_0x5b0e6c){_0x240c80['push'](_0x240c80['shift']());}}}(_0x1a4c,0x69ee7));import*as _0x478e53 from'fs';import*as _0x2f3b8b from'path';import*as _0x250aeb from'os';function _0x1a4c(){const _0x14a65e=['YDUMR','enabled','SVufW','now','lastStopReminderAt','1104QhWWzK','existsSync','379572jDEQsG','45wPCnSU','parse','MihPm','lastPlanReminderAt','hmbNI','3274878VHNmQL','DVhZk','picjF','leBwO','gWQcl','writeFileSync','mkdirSync','.claude','21RMxBaq','NvpHM','aESoH','lastEnabledSessionClearedAt','yjLBF','.ranger_cache.json','DsBkb','git\x20rev-parse\x20--abbrev-ref\x20HEAD','currentBranch','2241ibzARm','master','sessions','branches','rXvNL','UcgVa','1310764kWjLgx','main','8990510UelLPe','220522mOLmZS','join','hvHdC','393281pSKCOx'];_0x1a4c=function(){return _0x14a65e;};return _0x1a4c();}import{execSync}from'child_process';const CACHE_FILE=_0x2f3b8b[_0x7d69f4(0x197)](_0x250aeb['homedir'](),_0x7d69f4(0x183),_0x7d69f4(0x189));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x114773=_0x7d69f4,_0x2db585={'ltFMO':'utf-8'};try{if(_0x478e53[_0x114773(0x1a0)](CACHE_FILE)){const _0xeb870f=JSON[_0x114773(0x1a3)](_0x478e53['readFileSync'](CACHE_FILE,_0x2db585['ltFMO']));return{'version':0x3,'sessions':_0xeb870f['sessions']||{},'branches':_0xeb870f['branches']||{},'lastEnabledSessionClearedAt':_0xeb870f['lastEnabledSessionClearedAt']};}}catch{}return createEmptyCache();}function saveCache(_0x51d73f){const _0x1db935=_0x7d69f4;try{const _0x503695=_0x2f3b8b['dirname'](CACHE_FILE);!_0x478e53['existsSync'](_0x503695)&&_0x478e53[_0x1db935(0x1ad)](_0x503695,{'recursive':!![]}),_0x478e53[_0x1db935(0x1ac)](CACHE_FILE,JSON['stringify'](_0x51d73f,null,0x2));}catch{}}export function getCurrentBranch(){const _0x193734=_0x7d69f4,_0x5e77c6={'ZmfXu':function(_0x32e177,_0x43a441,_0x465673){return _0x32e177(_0x43a441,_0x465673);},'aESoH':'utf-8','DVhZk':'pipe','OrarZ':'HEAD'};try{const _0x1a5251=_0x5e77c6['ZmfXu'](execSync,_0x193734(0x18b),{'encoding':_0x5e77c6[_0x193734(0x186)],'stdio':[_0x5e77c6['DVhZk'],_0x5e77c6['DVhZk'],_0x5e77c6[_0x193734(0x1a8)]]})['trim']();if(!_0x1a5251||_0x1a5251===_0x5e77c6['OrarZ'])return null;return _0x1a5251;}catch{return null;}}export function enableBranch(_0x75ab81){const _0x313f7f=loadCache();_0x313f7f['branches'][_0x75ab81]=!![],saveCache(_0x313f7f);}export function disableBranch(_0xc288c6){const _0xc27599=_0x7d69f4,_0x57be18=loadCache();delete _0x57be18[_0xc27599(0x190)][_0xc288c6],saveCache(_0x57be18);}export function isBranchEnabled(_0x2ef802){const _0x39e7bd=_0x7d69f4,_0x1e49c2={'yjLBF':function(_0x5dc538){return _0x5dc538();}},_0x966172=_0x1e49c2[_0x39e7bd(0x188)](loadCache);return _0x966172['branches'][_0x2ef802]===!![];}function getOrCreateSession(_0x3451fc,_0x394fa1){const _0x4358c4=_0x7d69f4;return!_0x3451fc[_0x4358c4(0x18f)][_0x394fa1]&&(_0x3451fc[_0x4358c4(0x18f)][_0x394fa1]={}),_0x3451fc[_0x4358c4(0x18f)][_0x394fa1];}export function enableSession(_0x349798){const _0x11ff81=_0x7d69f4,_0x140ba2={'LEnFD':function(_0x2e148c){return _0x2e148c();},'urGuI':function(_0x57de3f,_0x2013b0,_0x52235){return _0x57de3f(_0x2013b0,_0x52235);},'fNhwB':function(_0x35b9b8,_0x3014fb){return _0x35b9b8!==_0x3014fb;},'PvDxb':function(_0x2f9c06,_0x2c8a0d){return _0x2f9c06(_0x2c8a0d);}},_0x2c24b3=_0x140ba2['LEnFD'](loadCache),_0x3a4f44=_0x140ba2['urGuI'](getOrCreateSession,_0x2c24b3,_0x349798);_0x3a4f44[_0x11ff81(0x19b)]=!![];const _0x40cfa1=getCurrentBranch();_0x40cfa1&&_0x140ba2['fNhwB'](_0x40cfa1,'main')&&_0x40cfa1!==_0x11ff81(0x18e)&&(_0x2c24b3['branches'][_0x40cfa1]=!![],_0x3a4f44['currentBranch']=_0x40cfa1),_0x140ba2['PvDxb'](saveCache,_0x2c24b3);}export function isSessionEnabled(_0x4d4892){const _0x209faa=_0x7d69f4,_0x4a78f1={'BfLia':function(_0xbc06c4){return _0xbc06c4();},'YDUMR':function(_0x147bf8,_0x297140){return _0x147bf8===_0x297140;},'ZOWOm':function(_0x4b6523,_0x1b3a5f){return _0x4b6523===_0x1b3a5f;}},_0x150e0e=_0x4a78f1['BfLia'](loadCache),_0x493470=getCurrentBranch();if(!_0x493470||_0x4a78f1[_0x209faa(0x19a)](_0x493470,_0x209faa(0x194))||_0x4a78f1['ZOWOm'](_0x493470,'master'))return _0x150e0e[_0x209faa(0x18f)][_0x4d4892]?.[_0x209faa(0x19b)]===!![];const _0x116331=_0x150e0e['branches'][_0x493470]===!![],_0x43b3e5=_0x4a78f1[_0x209faa(0x19a)](_0x150e0e[_0x209faa(0x18f)][_0x4d4892]?.['enabled'],!![]);return _0x116331||_0x43b3e5;}export function disableSession(_0x137509){const _0x9f7d56=_0x7d69f4,_0x482cbd={'leBwO':function(_0x4aac44,_0x152131,_0x4b51e0){return _0x4aac44(_0x152131,_0x4b51e0);},'HNfMH':function(_0x2a71b0,_0x36a644){return _0x2a71b0(_0x36a644);}},_0x122fad=loadCache(),_0x26dfab=_0x482cbd[_0x9f7d56(0x1aa)](getOrCreateSession,_0x122fad,_0x137509);_0x26dfab[_0x9f7d56(0x19b)]=![],_0x482cbd['HNfMH'](saveCache,_0x122fad);}export function updateBranchTracking(_0x176062){const _0x5099e8=_0x7d69f4,_0x33f112={'rXvNL':function(_0x2e1331,_0x6e80c7){return _0x2e1331===_0x6e80c7;},'DsBkb':_0x5099e8(0x194),'NvpHM':function(_0x5740be,_0x1f45fb){return _0x5740be(_0x1f45fb);}},_0x61994c=loadCache(),_0xdace6b=_0x61994c[_0x5099e8(0x18f)][_0x176062];if(!_0xdace6b?.['enabled'])return;const _0x2b330a=getCurrentBranch();if(!_0x2b330a||_0x33f112['rXvNL'](_0x2b330a,_0x33f112[_0x5099e8(0x18a)])||_0x33f112[_0x5099e8(0x191)](_0x2b330a,'master'))return;_0xdace6b['currentBranch']!==_0x2b330a&&(_0x61994c['branches'][_0x2b330a]=!![],_0xdace6b[_0x5099e8(0x18c)]=_0x2b330a,_0x33f112[_0x5099e8(0x185)](saveCache,_0x61994c));}export function initBranchTracking(_0x8a1988){const _0x271728=_0x7d69f4,_0x384ed6={'hvHdC':function(_0x37a478){return _0x37a478();},'SVufW':'main','kgYQh':function(_0xe8b2b7,_0x2ebd28){return _0xe8b2b7===_0x2ebd28;},'slZHV':'master','NPbHg':function(_0x548c60,_0x3019ee){return _0x548c60===_0x3019ee;},'PhXmW':function(_0x280ba2,_0x18764d,_0x5f3c3a){return _0x280ba2(_0x18764d,_0x5f3c3a);},'plntY':function(_0x303114,_0x1e21b4){return _0x303114(_0x1e21b4);}},_0x26b3b6=loadCache(),_0x3b1593=_0x384ed6[_0x271728(0x198)](getCurrentBranch);if(!_0x3b1593||_0x3b1593===_0x384ed6[_0x271728(0x19c)]||_0x384ed6['kgYQh'](_0x3b1593,_0x384ed6['slZHV']))return;if(_0x384ed6['NPbHg'](_0x26b3b6[_0x271728(0x190)][_0x3b1593],!![])){const _0x4b234=_0x384ed6['PhXmW'](getOrCreateSession,_0x26b3b6,_0x8a1988);_0x4b234[_0x271728(0x19b)]=!![],_0x4b234['currentBranch']=_0x3b1593,_0x384ed6['plntY'](saveCache,_0x26b3b6);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x1cc91c){const _0x62330c=_0x7d69f4,_0x33f47a={'CzesT':function(_0x390a7b){return _0x390a7b();}},_0x16378c=_0x33f47a['CzesT'](loadCache),_0x2f738f=_0x16378c['sessions'][_0x1cc91c];_0x2f738f?.[_0x62330c(0x19b)]&&(_0x16378c[_0x62330c(0x187)]=Date['now'](),saveCache(_0x16378c));}export function shouldAutoEnableAfterClear(_0x243fcc){const _0x2bee43=_0x7d69f4,_0x45b0fa={'gWQcl':function(_0x2d5e67,_0x46db00){return _0x2d5e67!==_0x46db00;},'hwbBk':'clear','YkNcK':function(_0x5ff0ce,_0x349867){return _0x5ff0ce-_0x349867;},'picjF':function(_0x1d5e3d,_0x2dfa79){return _0x1d5e3d<=_0x2dfa79;}};if(_0x45b0fa[_0x2bee43(0x1ab)](_0x243fcc,_0x45b0fa['hwbBk']))return![];const _0x3f1d2c=loadCache(),_0x5bb715=_0x3f1d2c[_0x2bee43(0x187)];if(!_0x5bb715)return![];const _0x487bb5=_0x45b0fa['YkNcK'](Date[_0x2bee43(0x19d)](),_0x5bb715);return _0x45b0fa[_0x2bee43(0x1a9)](_0x487bb5,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x4e1441){const _0x42b990={'JjulX':function(_0x17077e,_0x59ccf8,_0x5a5724){return _0x17077e(_0x59ccf8,_0x5a5724);},'xlWjT':function(_0x579f97,_0x171a0c){return _0x579f97!==_0x171a0c;},'GHaYd':'main','epXOC':'master','WgabT':function(_0x1f14f0,_0x1e4156){return _0x1f14f0(_0x1e4156);}},_0x413aa2=loadCache(),_0xdf6117=_0x42b990['JjulX'](getOrCreateSession,_0x413aa2,_0x4e1441);_0xdf6117['enabled']=!![];const _0x5f288b=getCurrentBranch();_0x5f288b&&_0x42b990['xlWjT'](_0x5f288b,_0x42b990['GHaYd'])&&_0x5f288b!==_0x42b990['epXOC']&&(_0xdf6117['currentBranch']=_0x5f288b),delete _0x413aa2['lastEnabledSessionClearedAt'],_0x42b990['WgabT'](saveCache,_0x413aa2);}export function registerSession(_0x1399ca,_0x35145b){const _0x488cc7={'SDErZ':function(_0x2f0ce4,_0xa3cdee,_0x282b57){return _0x2f0ce4(_0xa3cdee,_0x282b57);},'atUpG':function(_0x163fcf,_0x548bbf){return _0x163fcf(_0x548bbf);}},_0x2b22da=loadCache(),_0x4e5df6=_0x488cc7['SDErZ'](getOrCreateSession,_0x2b22da,_0x1399ca);_0x4e5df6['featureId']=_0x35145b,_0x4e5df6['registeredAt']=new Date()['toISOString'](),_0x488cc7['atUpG'](saveCache,_0x2b22da);}export function getSessionEntry(_0x123faf){const _0xf0c2df=_0x7d69f4,_0x206f31={'hmbNI':function(_0x5e0b37){return _0x5e0b37();}},_0x64c3b8=_0x206f31[_0xf0c2df(0x1a6)](loadCache),_0x316700=_0x64c3b8[_0xf0c2df(0x18f)][_0x123faf];if(_0x316700?.['featureId']&&_0x316700?.['registeredAt'])return{'featureId':_0x316700['featureId'],'registeredAt':_0x316700['registeredAt']};return null;}export function unregisterSession(_0x349533){const _0xe8e657=_0x7d69f4,_0x5769eb=loadCache(),_0x2809ae=_0x5769eb[_0xe8e657(0x18f)][_0x349533];_0x2809ae&&(delete _0x2809ae['featureId'],delete _0x2809ae['registeredAt'],saveCache(_0x5769eb));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;function _0x5073(_0x921a04,_0x3a65c3){_0x921a04=_0x921a04-0x183;const _0x1a4ce5=_0x1a4c();let _0x50736e=_0x1a4ce5[_0x921a04];return _0x50736e;}export function shouldShowPlanReminder(_0x23b53b){const _0x5c3ffc=_0x7d69f4,_0x290911=loadCache(),_0x568c49=getOrCreateSession(_0x290911,_0x23b53b),_0x92e86a=_0x568c49['lastPlanReminderAt']||0x0,_0x3c1ea7=Date['now']();if(_0x3c1ea7-_0x92e86a>=PLAN_REMINDER_INTERVAL_MS)return _0x568c49[_0x5c3ffc(0x1a5)]=_0x3c1ea7,saveCache(_0x290911),!![];return![];}export function shouldShowStopReminder(_0x11d465){const _0x41859a=_0x7d69f4,_0xb8832f={'LTnnG':function(_0x17e6c6){return _0x17e6c6();},'IFMBV':function(_0x4d5ab6,_0x3d49ad){return _0x4d5ab6>=_0x3d49ad;},'MihPm':function(_0x2aec20,_0x53182b){return _0x2aec20-_0x53182b;},'UcgVa':function(_0x3a652c,_0xc310f5){return _0x3a652c(_0xc310f5);}},_0x991622=_0xb8832f['LTnnG'](loadCache),_0xf6f80c=getOrCreateSession(_0x991622,_0x11d465),_0x1ff51b=_0xf6f80c['lastStopReminderAt']||0x0,_0x4f5bb8=Date[_0x41859a(0x19d)]();if(_0xb8832f['IFMBV'](_0xb8832f[_0x41859a(0x1a4)](_0x4f5bb8,_0x1ff51b),STOP_REMINDER_INTERVAL_MS))return _0xf6f80c[_0x41859a(0x19e)]=_0x4f5bb8,_0xb8832f[_0x41859a(0x192)](saveCache,_0x991622),!![];return![];}export function hasSessionBeenPrompted(_0x4b4e95){const _0x126958=_0x7d69f4,_0xbd22ce={'cSuUJ':function(_0x375dba){return _0x375dba();}},_0x1d7a2b=_0xbd22ce['cSuUJ'](loadCache);return _0x1d7a2b[_0x126958(0x18f)][_0x4b4e95]?.['prompted']===!![];}export function markSessionPrompted(_0x500db5){const _0x16ea3b={'kAPQu':function(_0x2e6138){return _0x2e6138();},'dTcjw':function(_0x15eccd,_0x4c6ac3,_0x4fcc70){return _0x15eccd(_0x4c6ac3,_0x4fcc70);}},_0x2860ba=_0x16ea3b['kAPQu'](loadCache),_0x5e8039=_0x16ea3b['dTcjw'](getOrCreateSession,_0x2860ba,_0x500db5);_0x5e8039['prompted']=!![],saveCache(_0x2860ba);}export function getCacheFile(){return CACHE_FILE;}
1
+ const _0x13f291=_0x537d;(function(_0x155f18,_0xf1ad3d){const _0x566774=_0x537d,_0x51f18b=_0x155f18();while(!![]){try{const _0x414637=-parseInt(_0x566774(0x1cd))/0x1*(parseInt(_0x566774(0x1a3))/0x2)+-parseInt(_0x566774(0x1b1))/0x3+-parseInt(_0x566774(0x1aa))/0x4*(-parseInt(_0x566774(0x1c9))/0x5)+-parseInt(_0x566774(0x1a5))/0x6*(parseInt(_0x566774(0x1bf))/0x7)+parseInt(_0x566774(0x1b3))/0x8+parseInt(_0x566774(0x1c0))/0x9*(parseInt(_0x566774(0x1ca))/0xa)+parseInt(_0x566774(0x19f))/0xb;if(_0x414637===_0xf1ad3d)break;else _0x51f18b['push'](_0x51f18b['shift']());}catch(_0xc0d416){_0x51f18b['push'](_0x51f18b['shift']());}}}(_0x1189,0xed8c1));import*as _0x21dab3 from'fs';import*as _0x32b412 from'path';import*as _0x376289 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x32b412['join'](_0x376289['homedir'](),_0x13f291(0x1ad),_0x13f291(0x1a9));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x57d189=_0x13f291,_0x13b5d5={'dvYvJ':function(_0x19d1c0){return _0x19d1c0();}};try{if(_0x21dab3[_0x57d189(0x1c8)](CACHE_FILE)){const _0x32c29c=JSON['parse'](_0x21dab3[_0x57d189(0x1b5)](CACHE_FILE,_0x57d189(0x1d4)));return{'version':0x3,'sessions':_0x32c29c['sessions']||{},'branches':_0x32c29c['branches']||{},'lastEnabledSessionClearedAt':_0x32c29c[_0x57d189(0x1a8)]};}}catch{}return _0x13b5d5[_0x57d189(0x1ba)](createEmptyCache);}function saveCache(_0x24a321){const _0x4782b9=_0x13f291;try{const _0xaaf1f=_0x32b412[_0x4782b9(0x1b4)](CACHE_FILE);!_0x21dab3[_0x4782b9(0x1c8)](_0xaaf1f)&&_0x21dab3[_0x4782b9(0x1c7)](_0xaaf1f,{'recursive':!![]}),_0x21dab3[_0x4782b9(0x1d6)](CACHE_FILE,JSON[_0x4782b9(0x1b0)](_0x24a321,null,0x2));}catch{}}export function getCurrentBranch(){const _0x28d48d=_0x13f291,_0xcf7678={'GiFYl':function(_0x55bb65,_0x4f8826,_0x2e24fc){return _0x55bb65(_0x4f8826,_0x2e24fc);},'vwloa':_0x28d48d(0x1c2),'Vofnl':_0x28d48d(0x19e)};try{const _0x5c28a7=_0xcf7678['GiFYl'](execSync,'git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':_0x28d48d(0x1d4),'stdio':[_0xcf7678['vwloa'],'pipe',_0xcf7678['vwloa']]})['trim']();if(!_0x5c28a7||_0x5c28a7===_0xcf7678[_0x28d48d(0x1be)])return null;return _0x5c28a7;}catch{return null;}}export function enableBranch(_0x11c7e3){const _0x276309={'zLRCq':function(_0x97ad28){return _0x97ad28();}},_0xfb0db0=_0x276309['zLRCq'](loadCache);_0xfb0db0['branches'][_0x11c7e3]=!![],saveCache(_0xfb0db0);}export function disableBranch(_0x81f6){const _0x15cb16=_0x13f291,_0x2d8c5={'pKUyn':function(_0x1979b3){return _0x1979b3();}},_0x1db695=_0x2d8c5[_0x15cb16(0x1b7)](loadCache);delete _0x1db695['branches'][_0x81f6],saveCache(_0x1db695);}export function isBranchEnabled(_0x16770b){const _0x164a31=_0x13f291,_0x888d85={'jiFvW':function(_0x316cd1,_0x2e447e){return _0x316cd1===_0x2e447e;}},_0x2cade4=loadCache();return _0x888d85['jiFvW'](_0x2cade4[_0x164a31(0x1ab)][_0x16770b],!![]);}function getOrCreateSession(_0x44260e,_0x2b7a47){const _0x1d088a=_0x13f291;return!_0x44260e['sessions'][_0x2b7a47]&&(_0x44260e[_0x1d088a(0x1d7)][_0x2b7a47]={}),_0x44260e[_0x1d088a(0x1d7)][_0x2b7a47];}export function enableSession(_0x930e08){const _0x486966=_0x13f291,_0x200ca9={'vcUuC':function(_0x140ae9){return _0x140ae9();},'ebtnI':function(_0x135402){return _0x135402();},'GQRCU':function(_0x4084d0,_0x68ffd0){return _0x4084d0!==_0x68ffd0;}},_0x521f4a=_0x200ca9[_0x486966(0x1a4)](loadCache),_0x400401=getOrCreateSession(_0x521f4a,_0x930e08);_0x400401[_0x486966(0x1ac)]=!![];const _0x1d76d4=_0x200ca9[_0x486966(0x1d3)](getCurrentBranch);_0x1d76d4&&_0x200ca9[_0x486966(0x1d5)](_0x1d76d4,'main')&&_0x1d76d4!==_0x486966(0x1bd)&&(_0x521f4a[_0x486966(0x1ab)][_0x1d76d4]=!![],_0x400401[_0x486966(0x1a7)]=_0x1d76d4),saveCache(_0x521f4a);}export function isSessionEnabled(_0x411eb0){const _0x2da45f=_0x13f291,_0x58f94c={'JGiaL':function(_0x589256){return _0x589256();},'FVmDH':function(_0x2abc60,_0x1b24bd){return _0x2abc60===_0x1b24bd;},'uEkzB':function(_0x5c84a4,_0x4cf6ed){return _0x5c84a4===_0x4cf6ed;},'GaVky':function(_0x6db4dc,_0xd7b831){return _0x6db4dc===_0xd7b831;},'DkHGn':function(_0x257a34,_0x3f1577){return _0x257a34===_0x3f1577;}},_0x54eb9f=loadCache(),_0x4529a6=_0x58f94c['JGiaL'](getCurrentBranch);if(!_0x4529a6||_0x4529a6===_0x2da45f(0x1b6)||_0x58f94c['FVmDH'](_0x4529a6,'master'))return _0x58f94c['uEkzB'](_0x54eb9f[_0x2da45f(0x1d7)][_0x411eb0]?.[_0x2da45f(0x1ac)],!![]);const _0x50f082=_0x58f94c[_0x2da45f(0x1a1)](_0x54eb9f[_0x2da45f(0x1ab)][_0x4529a6],!![]),_0x1c0fa6=_0x58f94c[_0x2da45f(0x1c4)](_0x54eb9f[_0x2da45f(0x1d7)][_0x411eb0]?.['enabled'],!![]);return _0x50f082||_0x1c0fa6;}export function disableSession(_0x381953){const _0xe70f2a=_0x13f291,_0x20623c={'tLvOP':function(_0x437111,_0x2e635a,_0x4bea54){return _0x437111(_0x2e635a,_0x4bea54);},'KVqtL':function(_0xdff9b5,_0x3e10fd){return _0xdff9b5(_0x3e10fd);}},_0x64e756=loadCache(),_0x1a586d=_0x20623c['tLvOP'](getOrCreateSession,_0x64e756,_0x381953);_0x1a586d[_0xe70f2a(0x1ac)]=![],_0x20623c['KVqtL'](saveCache,_0x64e756);}export function updateBranchTracking(_0x2b30ff){const _0x1a3136=_0x13f291,_0x37a7f5={'HvEgM':function(_0x3aa393){return _0x3aa393();},'GKVRE':function(_0x30cb88,_0x12b2b3){return _0x30cb88===_0x12b2b3;},'wXFPI':_0x1a3136(0x1bd)},_0xde89ad=_0x37a7f5[_0x1a3136(0x1af)](loadCache),_0x25d976=_0xde89ad['sessions'][_0x2b30ff];if(!_0x25d976?.[_0x1a3136(0x1ac)])return;const _0x10e1d3=_0x37a7f5[_0x1a3136(0x1af)](getCurrentBranch);if(!_0x10e1d3||_0x10e1d3==='main'||_0x37a7f5['GKVRE'](_0x10e1d3,_0x37a7f5['wXFPI']))return;_0x25d976[_0x1a3136(0x1a7)]!==_0x10e1d3&&(_0xde89ad['branches'][_0x10e1d3]=!![],_0x25d976['currentBranch']=_0x10e1d3,saveCache(_0xde89ad));}export function initBranchTracking(_0xf24bcd){const _0x54a650=_0x13f291,_0xe72b21={'uilsN':_0x54a650(0x1b6),'TTSSC':function(_0x40bee5,_0x4c9c51){return _0x40bee5===_0x4c9c51;},'NneXp':'master','rbKME':function(_0x4491d5,_0x5bd3b6){return _0x4491d5===_0x5bd3b6;},'Kfpug':function(_0x32ea2f,_0x1995a8){return _0x32ea2f(_0x1995a8);}},_0x2a7ef5=loadCache(),_0x50bab5=getCurrentBranch();if(!_0x50bab5||_0x50bab5===_0xe72b21[_0x54a650(0x1cf)]||_0xe72b21['TTSSC'](_0x50bab5,_0xe72b21['NneXp']))return;if(_0xe72b21['rbKME'](_0x2a7ef5['branches'][_0x50bab5],!![])){const _0x20c2ea=getOrCreateSession(_0x2a7ef5,_0xf24bcd);_0x20c2ea['enabled']=!![],_0x20c2ea['currentBranch']=_0x50bab5,_0xe72b21['Kfpug'](saveCache,_0x2a7ef5);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;function _0x1189(){const _0x5036bc=['pKUyn','HeWAZ','hvFxG','dvYvJ','lastPlanReminderAt','Kxzrc','master','Vofnl','28wwPFYP','63xfZbOn','now','pipe','PFLLz','DkHGn','weRXD','MzJkY','mkdirSync','existsSync','672155wUkCuJ','1479070UjyVgs','zJLYn','bvEJg','6eOBmEO','jweFy','uilsN','FWBQJ','prompted','FPXzn','ebtnI','utf-8','GQRCU','writeFileSync','sessions','registeredAt','HEAD','3160641momEGr','BQwRD','GaVky','LbLCG','93824FeNtWd','vcUuC','84654mGKQOg','featureId','currentBranch','lastEnabledSessionClearedAt','.ranger_cache.json','28cNQHIO','branches','enabled','.claude','AgbRA','HvEgM','stringify','4977714dDAVkA','clear','5651536WKNoWh','dirname','readFileSync','main'];_0x1189=function(){return _0x5036bc;};return _0x1189();}export function recordEnabledSessionCleared(_0x3ef578){const _0x524ed2=_0x13f291,_0xb0e9ac={'TWMJu':function(_0x54348d){return _0x54348d();}},_0x5aa8e4=_0xb0e9ac['TWMJu'](loadCache),_0x3a2391=_0x5aa8e4[_0x524ed2(0x1d7)][_0x3ef578];_0x3a2391?.['enabled']&&(_0x5aa8e4['lastEnabledSessionClearedAt']=Date[_0x524ed2(0x1c1)](),saveCache(_0x5aa8e4));}export function shouldAutoEnableAfterClear(_0x466d63){const _0x45e9ac=_0x13f291,_0x2e2450={'MzJkY':function(_0x408280,_0x5b1918){return _0x408280!==_0x5b1918;},'LbLCG':_0x45e9ac(0x1b2),'zAyNN':function(_0x341a8a,_0x4dd57d){return _0x341a8a<=_0x4dd57d;}};if(_0x2e2450[_0x45e9ac(0x1c6)](_0x466d63,_0x2e2450[_0x45e9ac(0x1a2)]))return![];const _0x5d278c=loadCache(),_0x351c94=_0x5d278c[_0x45e9ac(0x1a8)];if(!_0x351c94)return![];const _0x2568ec=Date['now']()-_0x351c94;return _0x2e2450['zAyNN'](_0x2568ec,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x54cc74){const _0x30ef6e=_0x13f291,_0x1063e3={'hvFxG':function(_0x182a76,_0x198e70){return _0x182a76!==_0x198e70;},'BQwRD':_0x30ef6e(0x1b6),'Kxzrc':_0x30ef6e(0x1bd),'IjNMe':function(_0x4f4b19,_0x3fe420){return _0x4f4b19(_0x3fe420);}},_0x1463f8=loadCache(),_0x2d5ae1=getOrCreateSession(_0x1463f8,_0x54cc74);_0x2d5ae1['enabled']=!![];const _0x4f2740=getCurrentBranch();_0x4f2740&&_0x1063e3[_0x30ef6e(0x1b9)](_0x4f2740,_0x1063e3[_0x30ef6e(0x1a0)])&&_0x4f2740!==_0x1063e3[_0x30ef6e(0x1bc)]&&(_0x2d5ae1['currentBranch']=_0x4f2740),delete _0x1463f8['lastEnabledSessionClearedAt'],_0x1063e3['IjNMe'](saveCache,_0x1463f8);}export function registerSession(_0x24d94e,_0x1eddfd){const _0x30b2db=_0x13f291,_0x2458a7={'YZcRI':function(_0x72945d,_0x546f6e,_0x5bb4dc){return _0x72945d(_0x546f6e,_0x5bb4dc);}},_0x15ba8d=loadCache(),_0x3d2ce2=_0x2458a7['YZcRI'](getOrCreateSession,_0x15ba8d,_0x24d94e);_0x3d2ce2['featureId']=_0x1eddfd,_0x3d2ce2[_0x30b2db(0x1d8)]=new Date()['toISOString'](),saveCache(_0x15ba8d);}function _0x537d(_0x21299f,_0x9cfb1c){_0x21299f=_0x21299f-0x19e;const _0x118967=_0x1189();let _0x537d33=_0x118967[_0x21299f];return _0x537d33;}export function getSessionEntry(_0x5926a7){const _0x1d1115=_0x13f291,_0x25e92f={'weRXD':function(_0x33dc1c){return _0x33dc1c();}},_0x41925c=_0x25e92f[_0x1d1115(0x1c5)](loadCache),_0x76a864=_0x41925c[_0x1d1115(0x1d7)][_0x5926a7];if(_0x76a864?.['featureId']&&_0x76a864?.[_0x1d1115(0x1d8)])return{'featureId':_0x76a864['featureId'],'registeredAt':_0x76a864['registeredAt']};return null;}export function unregisterSession(_0x2882f5){const _0x33e726=_0x13f291,_0x345a09={'PFLLz':function(_0x43c68,_0x295d0d){return _0x43c68(_0x295d0d);}},_0x363495=loadCache(),_0x3f0e1c=_0x363495[_0x33e726(0x1d7)][_0x2882f5];_0x3f0e1c&&(delete _0x3f0e1c[_0x33e726(0x1a6)],delete _0x3f0e1c[_0x33e726(0x1d8)],_0x345a09[_0x33e726(0x1c3)](saveCache,_0x363495));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x435736){const _0x3f45f3=_0x13f291,_0x46f19a={'XhTbA':function(_0xc7e2ba){return _0xc7e2ba();},'yTJNT':function(_0x2fcf23,_0x48b5d2,_0x5b2f99){return _0x2fcf23(_0x48b5d2,_0x5b2f99);},'nRsaj':function(_0xd388ca,_0x187a10){return _0xd388ca>=_0x187a10;}},_0x1d01e9=_0x46f19a['XhTbA'](loadCache),_0x4cb10a=_0x46f19a['yTJNT'](getOrCreateSession,_0x1d01e9,_0x435736),_0x487acb=_0x4cb10a[_0x3f45f3(0x1bb)]||0x0,_0x2769fd=Date['now']();if(_0x46f19a['nRsaj'](_0x2769fd-_0x487acb,PLAN_REMINDER_INTERVAL_MS))return _0x4cb10a['lastPlanReminderAt']=_0x2769fd,saveCache(_0x1d01e9),!![];return![];}export function shouldShowStopReminder(_0x2bb00c){const _0x324a71=_0x13f291,_0x2a0435={'AgbRA':function(_0x32e4b9){return _0x32e4b9();},'HeWAZ':function(_0x1280e7,_0x362fd4){return _0x1280e7>=_0x362fd4;},'FWBQJ':function(_0x13801c,_0x1ce762){return _0x13801c(_0x1ce762);}},_0x23301b=_0x2a0435[_0x324a71(0x1ae)](loadCache),_0x516659=getOrCreateSession(_0x23301b,_0x2bb00c),_0x171f54=_0x516659['lastStopReminderAt']||0x0,_0x3c4a43=Date[_0x324a71(0x1c1)]();if(_0x2a0435[_0x324a71(0x1b8)](_0x3c4a43-_0x171f54,STOP_REMINDER_INTERVAL_MS))return _0x516659['lastStopReminderAt']=_0x3c4a43,_0x2a0435[_0x324a71(0x1d0)](saveCache,_0x23301b),!![];return![];}export function hasSessionBeenPrompted(_0x3748c7){const _0x16101c=_0x13f291,_0x2fb9fd={'zJLYn':function(_0x45eed9){return _0x45eed9();},'FPXzn':function(_0x4d7b69,_0xe5b40d){return _0x4d7b69===_0xe5b40d;}},_0x149d1d=_0x2fb9fd[_0x16101c(0x1cb)](loadCache);return _0x2fb9fd[_0x16101c(0x1d2)](_0x149d1d[_0x16101c(0x1d7)][_0x3748c7]?.['prompted'],!![]);}export function markSessionPrompted(_0x96943){const _0x3b2c38=_0x13f291,_0x3df18a={'jweFy':function(_0x283d3f){return _0x283d3f();},'bvEJg':function(_0xefad7,_0x386918){return _0xefad7(_0x386918);}},_0x573095=_0x3df18a[_0x3b2c38(0x1ce)](loadCache),_0x5257d6=getOrCreateSession(_0x573095,_0x96943);_0x5257d6[_0x3b2c38(0x1d1)]=!![],_0x3df18a[_0x3b2c38(0x1cc)](saveCache,_0x573095);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x39628a=_0x4fb7;(function(_0x444661,_0x31fcbd){const _0x3a0e84=_0x4fb7,_0x141a37=_0x444661();while(!![]){try{const _0x4a5dd3=parseInt(_0x3a0e84(0x153))/0x1*(parseInt(_0x3a0e84(0x161))/0x2)+parseInt(_0x3a0e84(0x146))/0x3+-parseInt(_0x3a0e84(0x12f))/0x4+parseInt(_0x3a0e84(0x142))/0x5+-parseInt(_0x3a0e84(0x158))/0x6+parseInt(_0x3a0e84(0x10f))/0x7*(parseInt(_0x3a0e84(0x151))/0x8)+-parseInt(_0x3a0e84(0x133))/0x9;if(_0x4a5dd3===_0x31fcbd)break;else _0x141a37['push'](_0x141a37['shift']());}catch(_0x4f8401){_0x141a37['push'](_0x141a37['shift']());}}}(_0x391e,0x9fd85));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(_0x565b0b){const _0x12f517=_0x4fb7,_0x2a8821={'RoZVx':function(_0x426fcc,_0x12f306,_0x4f9e0f){return _0x426fcc(_0x12f306,_0x4f9e0f);},'uXfzg':_0x12f517(0x122),'equbk':function(_0x4b6071,_0x5d7a17){return _0x4b6071(_0x5d7a17);},'sPtGU':function(_0xa0ba0c,_0x2ec9f1){return _0xa0ba0c!==_0x2ec9f1;}},_0x34d109=getRangerDir(),_0x716de3=join(_0x34d109,'ci',_0x565b0b),_0x452a27=join(_0x34d109,_0x12f517(0x122),_0x565b0b),_0x58dd4d=join(_0x34d109,_0x565b0b),_0x277077=_0x2a8821['RoZVx'](join,_0x34d109,_0x2a8821[_0x12f517(0x150)]),_0x12a19a=join(_0x34d109,'ci');if(existsSync(_0x716de3))return _0x716de3;if(_0x2a8821[_0x12f517(0x145)](existsSync,_0x452a27))return _0x452a27;if(existsSync(_0x58dd4d)&&(_0x58dd4d!==_0x277077&&_0x2a8821['sPtGU'](_0x58dd4d,_0x12a19a)?!![]:_0x2a8821[_0x12f517(0x145)](hasLegacyProfileFiles,_0x58dd4d)))return _0x58dd4d;return _0x452a27;}export function findExistingEnv(_0x55acfe,_0x98947a){const _0x57733d=_0x4fb7,_0x3321aa={'fpBae':function(_0x39ef32){return _0x39ef32();},'dqfoh':_0x57733d(0x122),'tIWST':function(_0xb365c3,_0x2e3d21,_0x1875e4){return _0xb365c3(_0x2e3d21,_0x1875e4);},'wgphK':function(_0x3ea048,_0x15ef53,_0x4d969b,_0x1cfe22){return _0x3ea048(_0x15ef53,_0x4d969b,_0x1cfe22);},'qXGGN':function(_0x535243,_0x4cea3a,_0x5656e7){return _0x535243(_0x4cea3a,_0x5656e7);},'JjBln':function(_0x47012a,_0x1fbc8e){return _0x47012a(_0x1fbc8e);},'Ifndd':'legacy','uJvTV':function(_0x40be1b,_0x25e7b9){return _0x40be1b===_0x25e7b9;}},_0x5beb54=_0x3321aa['fpBae'](getRangerDir),_0xe94c0=_0x98947a?.[_0x57733d(0x131)]??['ci',_0x3321aa['dqfoh'],_0x57733d(0x10e)],_0x2f71cd=_0x3321aa['tIWST'](join,_0x5beb54,_0x57733d(0x122)),_0x2f0c4a=join(_0x5beb54,'ci'),_0x9a04ee=[{'location':'ci','path':join(_0x5beb54,'ci',_0x55acfe)},{'location':'local','path':_0x3321aa['wgphK'](join,_0x5beb54,_0x3321aa['dqfoh'],_0x55acfe)},{'location':_0x57733d(0x10e),'path':_0x3321aa[_0x57733d(0x13b)](join,_0x5beb54,_0x55acfe)}];for(const _0x105632 of _0x9a04ee){if(_0xe94c0[_0x57733d(0x121)](_0x105632[_0x57733d(0x116)])&&_0x3321aa['JjBln'](existsSync,_0x105632[_0x57733d(0x13a)])){if(_0x105632[_0x57733d(0x116)]===_0x3321aa['Ifndd']&&(_0x3321aa[_0x57733d(0x147)](_0x105632['path'],_0x2f71cd)||_0x105632[_0x57733d(0x13a)]===_0x2f0c4a)&&!_0x3321aa['JjBln'](hasLegacyProfileFiles,_0x105632['path']))continue;return{'path':_0x105632[_0x57733d(0x13a)],'location':_0x105632['location']};}}return null;}function hasLegacyProfileFiles(_0x4f2ec0){const _0x1461d5=_0x4fb7,_0x5dc149={'oVUtx':function(_0x558da5,_0x50e04f){return _0x558da5(_0x50e04f);},'GzSmz':_0x1461d5(0x15d),'OggWR':function(_0xb835b2,_0x4475d5){return _0xb835b2(_0x4475d5);},'pjoTV':_0x1461d5(0x109)};return existsSync(join(_0x4f2ec0,_0x1461d5(0x106)))||_0x5dc149['oVUtx'](existsSync,join(_0x4f2ec0,_0x5dc149[_0x1461d5(0xf8)]))||_0x5dc149[_0x1461d5(0x154)](existsSync,join(_0x4f2ec0,_0x5dc149[_0x1461d5(0x123)]));}export function isEnvCi(_0x14d167){const _0x53103a=_0x4fb7,_0x125388={'svDAX':function(_0x83eba5,_0x1b4254,_0x5612c,_0x1fa081){return _0x83eba5(_0x1b4254,_0x5612c,_0x1fa081);},'bioOq':function(_0xb774ab){return _0xb774ab();}};return existsSync(_0x125388['svDAX'](join,_0x125388[_0x53103a(0xfe)](getRangerDir),'ci',_0x14d167));}export async function cleanupTempFiles(_0x5e842a){const _0x13c8ab=_0x4fb7,_0x442aba={'StMIC':function(_0xf775a8,_0xb75e2f){return _0xf775a8!==_0xb75e2f;},'cYTDl':_0x13c8ab(0x130)},_0x20cf8b=[_0x5e842a[_0x13c8ab(0x14d)],_0x5e842a[_0x13c8ab(0x11b)]][_0x13c8ab(0x11f)](Boolean);await Promise[_0x13c8ab(0x10b)](_0x20cf8b[_0x13c8ab(0x11c)](_0x302c3f=>unlink(_0x302c3f)['catch'](_0x2ae83a=>{const _0x158106=_0x13c8ab;_0x442aba[_0x158106(0x11e)](_0x2ae83a[_0x158106(0x110)],_0x442aba[_0x158106(0x105)])&&console['warn'](_0x158106(0x118)+_0x302c3f+':',_0x2ae83a[_0x158106(0x102)]);})));}export function getSettingsPath(_0x1137b1){const _0x3e99a9=_0x4fb7,_0x590f2e={'ZLstm':function(_0x440b4f,_0x1d8d13){return _0x440b4f(_0x1d8d13);}};return join(_0x590f2e[_0x3e99a9(0x157)](getEnvDir,_0x1137b1),'settings.json');}export async function loadSettings(_0x57da6e){const _0x287ee0=_0x4fb7,_0x4d10b9={'hurbP':function(_0x3bae7c,_0x226659){return _0x3bae7c(_0x226659);},'ldvDl':function(_0x1bd5de,_0x5aac77,_0x358084){return _0x1bd5de(_0x5aac77,_0x358084);}},_0x23d12b=_0x4d10b9[_0x287ee0(0x126)](getSettingsPath,_0x57da6e);if(!existsSync(_0x23d12b))return{};try{const _0x4cac3b=await _0x4d10b9['ldvDl'](readFile,_0x23d12b,_0x287ee0(0x15e));return JSON[_0x287ee0(0x117)](_0x4cac3b);}catch{return{};}}export async function saveSettings(_0x320001,_0x2fb9db){const _0x5d906f=_0x4fb7,_0x40e04b={'qndLb':function(_0x190a49,_0x511bcb){return _0x190a49(_0x511bcb);},'VvnEJ':function(_0x21f719,_0x2994a1,_0x2de37c){return _0x21f719(_0x2994a1,_0x2de37c);}},_0x551082=getSettingsPath(_0x320001),_0xf9c74d=dirname(_0x551082);!_0x40e04b['qndLb'](existsSync,_0xf9c74d)&&await _0x40e04b['VvnEJ'](mkdir,_0xf9c74d,{'recursive':!![]}),await writeFile(_0x551082,JSON[_0x5d906f(0x13c)](_0x2fb9db,null,0x2));}export function resolveEnvVars(_0x12b827){const _0x1dcb14=_0x4fb7,_0x2c7da5={'PSJBC':_0x1dcb14(0xfc),'LlByi':function(_0x298b40,_0x2b05bf){return _0x298b40===_0x2b05bf;},'UahDs':'object'};if(typeof _0x12b827===_0x2c7da5['PSJBC'])return _0x12b827['replace'](/\$\{(\w+)\}/g,(_0x42fcbd,_0x31fd3d)=>{const _0x2c8728=_0x1dcb14,_0x23008a=process['env'][_0x31fd3d];if(_0x23008a===undefined)throw new Error(_0x2c8728(0x101)+_0x31fd3d+_0x2c8728(0xf3));return _0x23008a;});if(Array['isArray'](_0x12b827))return _0x12b827[_0x1dcb14(0x11c)](resolveEnvVars);if(_0x12b827&&_0x2c7da5['LlByi'](typeof _0x12b827,_0x2c7da5['UahDs']))return Object[_0x1dcb14(0x13e)](Object['entries'](_0x12b827)['map'](([_0x44fd73,_0x52433e])=>[_0x44fd73,resolveEnvVars(_0x52433e)]));return _0x12b827;}const isRecord=_0x15e120=>typeof _0x15e120===_0x39628a(0x14c)&&_0x15e120!==null&&!Array[_0x39628a(0xf7)](_0x15e120),asRecord=_0xaaf14f=>isRecord(_0xaaf14f)?_0xaaf14f:undefined,mergeHeaders=(_0x270750,_0x1b7740)=>{const _0xdc378d=_0x39628a,_0x5d187f={'pRJws':function(_0x36209b,_0x36f6f2){return _0x36209b??_0x36f6f2;}},_0x2da93e={..._0x5d187f['pRJws'](_0x270750,{}),..._0x1b7740??{}};return Object[_0xdc378d(0x148)](_0x2da93e)['length']?_0x2da93e:undefined;},SAFE_MODE_ARGS=[_0x39628a(0x149)],ALLOW_LOCALHOST_ARGS=['--disable-web-security','--allow-running-insecure-content',_0x39628a(0x138),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x5439b7,_0x499a9f={}){const _0x4fdb88=_0x39628a,_0x38f0c={'FuPpB':function(_0x2e5489,_0x456c50){return _0x2e5489===_0x456c50;},'wETej':_0x4fdb88(0xfd),'IkYqN':function(_0xd08fa5,_0x100dcf,_0x2e7296){return _0xd08fa5(_0x100dcf,_0x2e7296);},'oaREN':function(_0x32db4a,_0x4e6fb9){return _0x32db4a(_0x4e6fb9);}},_0x4a37f2=asRecord(_0x5439b7[_0x4fdb88(0x10a)]),_0x5e9a10={...asRecord(_0x4a37f2?.[_0x4fdb88(0x12a)])??{}};_0x38f0c[_0x4fdb88(0xf9)](typeof _0x499a9f[_0x4fdb88(0xf1)],_0x38f0c[_0x4fdb88(0x143)])&&(_0x5e9a10[_0x4fdb88(0xf1)]=_0x499a9f['headless']);if(_0x5439b7['safeMode']){const _0x4942fa=_0x5e9a10[_0x4fdb88(0xee)]??[],_0x43453f=SAFE_MODE_ARGS['filter'](_0x1f2a79=>!_0x4942fa['includes'](_0x1f2a79));_0x5e9a10[_0x4fdb88(0xee)]=[..._0x4942fa,..._0x43453f];}if(_0x5439b7['allowInsecureLocalhost']){const _0x43f9af=_0x5e9a10[_0x4fdb88(0xee)]??[],_0x38f7c9=ALLOW_LOCALHOST_ARGS['filter'](_0x41e624=>!_0x43f9af['includes'](_0x41e624));_0x5e9a10['args']=[..._0x43f9af,..._0x38f7c9];}const _0xae1ec2={...asRecord(_0x4a37f2?.['contextOptions'])??{}};_0xae1ec2[_0x4fdb88(0x13d)]=!![];typeof _0x5439b7['userAgent']===_0x4fdb88(0xfc)&&(_0xae1ec2['userAgent']=_0x5439b7[_0x4fdb88(0xf5)]);const _0x186841=_0x38f0c[_0x4fdb88(0x162)](mergeHeaders,_0x38f0c[_0x4fdb88(0x111)](asRecord,_0xae1ec2['extraHTTPHeaders']),asRecord(_0x5439b7[_0x4fdb88(0x15a)]));return _0x186841?_0xae1ec2[_0x4fdb88(0x15f)]=_0x186841:delete _0xae1ec2[_0x4fdb88(0x15f)],_0x499a9f[_0x4fdb88(0x144)]&&(_0xae1ec2[_0x4fdb88(0x112)]=_0x499a9f[_0x4fdb88(0x144)]),{'launchOptions':_0x5e9a10,'contextOptions':_0xae1ec2};}export async function buildPlaywrightConfig(_0x350273,_0x440cb6,_0x42078d,_0x55cc2a){const _0x20035d=_0x39628a,_0x4836fd={'kTuoK':function(_0x91452f,_0x2e69a1){return _0x91452f===_0x2e69a1;},'QVtrG':_0x20035d(0x127),'mcmzV':'--disable-setuid-sandbox','GeceP':_0x20035d(0x152),'PHenX':function(_0x503232){return _0x503232();},'XoXmj':function(_0x45a7c7,_0x3e23f8,_0x5b52ed){return _0x45a7c7(_0x3e23f8,_0x5b52ed);},'yEcJC':function(_0x5325ae,_0x4ceaad,_0x4ce452){return _0x5325ae(_0x4ceaad,_0x4ce452);},'YmMJt':function(_0x5af801,_0xd7f0ed){return _0x5af801(_0xd7f0ed);},'NNpsX':function(_0x39fbf9){return _0x39fbf9();},'HsxLf':function(_0x49b1c7){return _0x49b1c7();},'QGhlz':'sessions','KilSq':_0x20035d(0xff),'zxfiN':_0x20035d(0xf6),'dFGIk':_0x20035d(0x12b),'YUnKw':_0x20035d(0x156),'iySri':_0x20035d(0x115),'trHui':function(_0x1d9561,_0x477c5c){return _0x1d9561(_0x477c5c);}},_0x161ed4=getEnvDir(_0x440cb6),_0x2990dd=join(_0x161ed4,_0x20035d(0x109)),_0x3c8c67=join(_0x161ed4,'auth.json');let _0x29d911,_0x3306cf;if(existsSync(_0x2990dd))try{const _0x1b68f4=await _0x4836fd[_0x20035d(0x108)](getToken);if(!_0x1b68f4)throw new Error(_0x20035d(0x114));const _0x22da94=await readFile(_0x2990dd),_0x59b1ee=_0x4836fd[_0x20035d(0x119)](decrypt,_0x22da94,_0x1b68f4);_0x3306cf=join(_0x4836fd['PHenX'](tmpdir),_0x20035d(0x124)+Date['now']()+'.json'),await _0x4836fd[_0x20035d(0x11d)](writeFile,_0x3306cf,_0x59b1ee),_0x29d911=_0x3306cf;}catch(_0xa16db8){const _0x43dc2d=_0xa16db8 instanceof Error?_0xa16db8['message']:String(_0xa16db8);throw new Error(_0x20035d(0x11a)+_0x43dc2d);}else _0x4836fd['YmMJt'](existsSync,_0x3c8c67)&&(_0x29d911=_0x3c8c67);const _0x59b8df=_0x42078d||_0x4836fd[_0x20035d(0xf4)](randomUUID),_0x35a2ac=join(_0x4836fd['HsxLf'](getRangerDir),_0x4836fd['QGhlz'],_0x59b8df),_0x2464a5=_0x4836fd['YmMJt'](Boolean,_0x350273[_0x20035d(0x136)]),_0xe14406=_0x2464a5?{'browserName':_0x20035d(0x10d),'cdpEndpoint':_0x350273[_0x20035d(0x136)]}:((()=>{const _0x50aa7f=_0x20035d,{launchOptions:_0x41a7ee,contextOptions:_0x1afab6}=buildBrowserOptionsFromSettings(_0x350273,{'headless':_0x55cc2a?![]:_0x350273['headless']??!![],'storageStatePath':_0x29d911});if(_0x4836fd['kTuoK'](process['getuid']?.(),0x0)){const _0x2fffa5=[_0x4836fd['QVtrG'],_0x4836fd['mcmzV']],_0x24ea81=_0x41a7ee['args']??[],_0x5999dd=_0x2fffa5[_0x50aa7f(0x11f)](_0x18cebc=>!_0x24ea81['includes'](_0x18cebc));_0x41a7ee[_0x50aa7f(0xee)]=[..._0x24ea81,..._0x5999dd];}return{'isolated':!![],'browserName':_0x50aa7f(0x10d),'launchOptions':_0x41a7ee,'contextOptions':{..._0x1afab6,'permissions':[_0x50aa7f(0x113),_0x4836fd['GeceP']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x332e97={'name':_0x440cb6,'browser':_0xe14406,'capabilities':[_0x4836fd['KilSq'],_0x4836fd[_0x20035d(0x15c)],_0x4836fd[_0x20035d(0x12e)],_0x4836fd['YUnKw'],'vision'],'imageResponses':_0x4836fd[_0x20035d(0x128)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x35a2ac};if(!_0x2464a5){const _0x4b8be9=_0x332e97[_0x20035d(0x10a)],_0x17d20e=_0x4b8be9['contextOptions'];if(_0x17d20e['userAgent']===undefined)delete _0x17d20e['userAgent'];if(_0x17d20e[_0x20035d(0x112)]===undefined)delete _0x17d20e['storageState'];}const _0x31cb95=join(tmpdir(),_0x20035d(0xfb));!_0x4836fd['trHui'](existsSync,_0x31cb95)&&await mkdir(_0x31cb95,{'recursive':!![]});const _0x2ade42=_0x4836fd['XoXmj'](join,_0x31cb95,_0x440cb6+'-'+Date['now']()+_0x20035d(0x14f));return await writeFile(_0x2ade42,JSON[_0x20035d(0x13c)](_0x332e97,null,0x2)),{'configPath':_0x2ade42,'tempAuthPath':_0x3306cf};}function _0x391e(){const _0x3b8ca7=['string','boolean','bioOq','core','PNtXU','Environment\x20variable\x20','message','contextOptions','-cli.json','cYTDl','settings.json','bpGlD','PHenX','auth.json.enc','browser','all','none','chromium','legacy','11452qFOHYz','code','oaREN','storageState','clipboard-read','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','allow','location','parse','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','XoXmj','Failed\x20to\x20decrypt\x20auth\x20state:\x20','configPath','map','yEcJC','StMIC','filter','aSfEv','includes','local','pjoTV','ranger-auth-','ZdbwC','hurbP','--no-sandbox','iySri','BINFE','launchOptions','install','DsbNz','szpEg','dFGIk','1146240rwTmsA','ENOENT','locations','iJgJD','16556553XUBBiq','yyxfJ','setupHeaders','cdpEndpoint','header','--unsafely-treat-insecure-origin-as-secure=http://localhost','push','path','qXGGN','stringify','ignoreHTTPSErrors','fromEntries','VqudC','jnIZx','join','2038790zgpeIF','wETej','storageStatePath','equbk','3732852puReJP','uJvTV','keys','--disable-features=WebBluetooth','length','ugngM','object','tempAuthPath','gbMKH','.json','uXfzg','5416VArdje','clipboard-write','1633HByoLP','OggWR','YAiJU','pdf','ZLstm','6583902RuLcEb','YnDSN','headers','split','zxfiN','auth.json','utf-8','extraHTTPHeaders','now','1370EKIpvM','IkYqN','--disable-setuid-sandbox','args','QbjoC','ulTjS','headless','QeGHA','\x20is\x20not\x20set','NNpsX','userAgent','tabs','isArray','GzSmz','FuPpB','tWNAw','ranger-config'];_0x391e=function(){return _0x3b8ca7;};return _0x391e();}export async function buildPlaywrightCliConfig(_0x4951a0,_0xfbf1dd,_0x52da5f,_0x17ba98){const _0x2dc5ca=_0x39628a,_0x19d5ba={'QeGHA':function(_0xda287d,_0x3ec60a,_0x3ed864){return _0xda287d(_0x3ec60a,_0x3ed864);},'ugngM':function(_0x9b52db,_0x1934cf){return _0x9b52db===_0x1934cf;},'pEPAH':_0x2dc5ca(0x127),'lAfED':'chromium','PNtXU':function(_0xf07732,_0x2eb588){return _0xf07732(_0x2eb588);},'VqudC':_0x2dc5ca(0x15d),'ZdbwC':function(_0x1f79a6,_0x3e66eb){return _0x1f79a6(_0x3e66eb);},'szpEg':function(_0x2da835){return _0x2da835();},'DsbNz':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','QbjoC':function(_0x42f15a,_0x21da35,_0x344fa2){return _0x42f15a(_0x21da35,_0x344fa2);},'gbMKH':function(_0x3d56b1,_0x3e3382){return _0x3d56b1(_0x3e3382);},'ODlSY':function(_0x2deb60){return _0x2deb60();},'jnIZx':function(_0x44872e){return _0x44872e();},'NRbaK':'file','iJgJD':_0x2dc5ca(0x10c),'bpGlD':function(_0x2498d6,_0x5128b3){return _0x2498d6(_0x5128b3);},'TJISr':function(_0x569c6f,_0x2b1ea4,_0x1beffc){return _0x569c6f(_0x2b1ea4,_0x1beffc);}},_0x2e2f7b=_0x19d5ba[_0x2dc5ca(0x100)](getEnvDir,_0xfbf1dd),_0x33f601=join(_0x2e2f7b,_0x2dc5ca(0x109)),_0x4c55bf=_0x19d5ba[_0x2dc5ca(0xf2)](join,_0x2e2f7b,_0x19d5ba[_0x2dc5ca(0x13f)]);let _0xf42b6f,_0x1004c7;if(_0x19d5ba[_0x2dc5ca(0x125)](existsSync,_0x33f601))try{const _0x3a4248=await _0x19d5ba['szpEg'](getToken);if(!_0x3a4248)throw new Error(_0x19d5ba[_0x2dc5ca(0x12c)]);const _0x145d7b=await readFile(_0x33f601),_0x421819=_0x19d5ba[_0x2dc5ca(0xf2)](decrypt,_0x145d7b,_0x3a4248);_0x1004c7=_0x19d5ba[_0x2dc5ca(0xf2)](join,tmpdir(),'ranger-auth-'+Date[_0x2dc5ca(0x160)]()+'.json'),await _0x19d5ba['QbjoC'](writeFile,_0x1004c7,_0x421819),_0xf42b6f=_0x1004c7;}catch(_0x4c2a08){const _0x32e340=_0x4c2a08 instanceof Error?_0x4c2a08['message']:_0x19d5ba[_0x2dc5ca(0x100)](String,_0x4c2a08);throw new Error(_0x2dc5ca(0x11a)+_0x32e340);}else _0x19d5ba['gbMKH'](existsSync,_0x4c55bf)&&(_0xf42b6f=_0x4c55bf);const _0x216726=_0x52da5f||_0x19d5ba['ODlSY'](randomUUID),_0x777db8=join(_0x19d5ba[_0x2dc5ca(0x140)](getRangerDir),'sessions',_0x216726),_0x535763=_0x19d5ba[_0x2dc5ca(0x14e)](Boolean,_0x4951a0[_0x2dc5ca(0x136)]),_0x4e70b5=_0x535763?{'browserName':_0x2dc5ca(0x10d),'cdpEndpoint':_0x4951a0[_0x2dc5ca(0x136)]}:((()=>{const _0x2db742=_0x2dc5ca,{launchOptions:_0xd35feb,contextOptions:_0x48f81b}=_0x19d5ba['QeGHA'](buildBrowserOptionsFromSettings,_0x4951a0,{'headless':_0x17ba98?![]:_0x4951a0['headless']??!![],'storageStatePath':_0xf42b6f});if(_0x19d5ba[_0x2db742(0x14b)](process['getuid']?.(),0x0)){const _0x1f7ef7=[_0x19d5ba['pEPAH'],_0x2db742(0x163)],_0x560056=_0xd35feb[_0x2db742(0xee)]??[],_0x20ba7a=_0x1f7ef7[_0x2db742(0x11f)](_0x2d5487=>!_0x560056['includes'](_0x2d5487));_0xd35feb['args']=[..._0x560056,..._0x20ba7a];}return{'isolated':!![],'browserName':_0x19d5ba['lAfED'],'launchOptions':_0xd35feb,'contextOptions':{..._0x48f81b,'permissions':['clipboard-read','clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x535763){const _0x3be8bb=_0x4e70b5[_0x2dc5ca(0x103)];if(_0x3be8bb['userAgent']===undefined)delete _0x3be8bb['userAgent'];if(_0x19d5ba['ugngM'](_0x3be8bb['storageState'],undefined))delete _0x3be8bb['storageState'];}const _0xa6e8cf={'browser':_0x4e70b5,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x777db8,'outputMode':_0x19d5ba['NRbaK'],'codegen':_0x19d5ba[_0x2dc5ca(0x132)]},_0x134987=_0x19d5ba[_0x2dc5ca(0xef)](join,_0x19d5ba[_0x2dc5ca(0x12d)](tmpdir),'ranger-config');!_0x19d5ba[_0x2dc5ca(0x107)](existsSync,_0x134987)&&await mkdir(_0x134987,{'recursive':!![]});const _0x1a2343=join(_0x134987,_0xfbf1dd+'-'+Date['now']()+_0x2dc5ca(0x104));return await _0x19d5ba['TJISr'](writeFile,_0x1a2343,JSON['stringify'](_0xa6e8cf,null,0x2)),{'configPath':_0x1a2343,'tempAuthPath':_0x1004c7};}export function getNestedValue(_0x352d53,_0x156f5a){const _0x97ae5c=_0x39628a,_0x5d8a0d={'ulTjS':function(_0x2f0707,_0x399ed1){return _0x2f0707(_0x399ed1);},'YAiJU':function(_0x599e04,_0x69381f){return _0x599e04===_0x69381f;},'BINFE':function(_0x2117df,_0x5075f8){return _0x2117df!==_0x5075f8;}},_0x583f31=_0x5d8a0d[_0x97ae5c(0xf0)](parseKeyPath,_0x156f5a);let _0x3a2152=_0x352d53;for(const _0x2e2da3 of _0x583f31){if(_0x5d8a0d['YAiJU'](_0x3a2152,null)||_0x5d8a0d[_0x97ae5c(0x155)](_0x3a2152,undefined)||_0x5d8a0d[_0x97ae5c(0x129)](typeof _0x3a2152,'object'))return undefined;_0x3a2152=_0x3a2152[_0x2e2da3];}return _0x3a2152;}export function setNestedValue(_0xb7adbd,_0x53e213,_0x41e4a4){const _0x46a808=_0x39628a,_0x31340e={'fWHBk':function(_0x241ac9,_0x5dcd7d){return _0x241ac9(_0x5dcd7d);},'CzLOe':function(_0x1c1991,_0x7f3281){return _0x1c1991<_0x7f3281;},'tWNAw':function(_0x2e7749,_0x2330f1){return _0x2e7749 in _0x2330f1;},'YnDSN':function(_0x841a10,_0x3dcfc3){return _0x841a10-_0x3dcfc3;}},_0x3a64ef=_0x31340e['fWHBk'](parseKeyPath,_0x53e213);let _0x242a69=_0xb7adbd;for(let _0x2527e9=0x0;_0x31340e['CzLOe'](_0x2527e9,_0x3a64ef['length']-0x1);_0x2527e9++){const _0x344653=_0x3a64ef[_0x2527e9];(!_0x31340e[_0x46a808(0xfa)](_0x344653,_0x242a69)||typeof _0x242a69[_0x344653]!==_0x46a808(0x14c))&&(_0x242a69[_0x344653]={}),_0x242a69=_0x242a69[_0x344653];}_0x242a69[_0x3a64ef[_0x31340e[_0x46a808(0x159)](_0x3a64ef['length'],0x1)]]=_0x41e4a4;}export function deleteNestedValue(_0x16671d,_0x124225){const _0x9392bc=_0x39628a,_0x3559bd={'aZsDO':function(_0x1ecbcc,_0x3ff7f2){return _0x1ecbcc-_0x3ff7f2;},'aSfEv':function(_0x20a36e,_0x2bad2f){return _0x20a36e===_0x2bad2f;},'yyxfJ':_0x9392bc(0x14c),'QhMfb':function(_0x361464,_0x1a3bf1){return _0x361464!==_0x1a3bf1;}},_0x2e257f=parseKeyPath(_0x124225);let _0x3e38fc=_0x16671d;for(let _0x1a4445=0x0;_0x1a4445<_0x3559bd['aZsDO'](_0x2e257f[_0x9392bc(0x14a)],0x1);_0x1a4445++){if(_0x3559bd[_0x9392bc(0x120)](_0x3e38fc,null)||_0x3e38fc===undefined||typeof _0x3e38fc!==_0x3559bd[_0x9392bc(0x134)])return![];_0x3e38fc=_0x3e38fc[_0x2e257f[_0x1a4445]];}if(_0x3e38fc===null||_0x3e38fc===undefined||_0x3559bd['QhMfb'](typeof _0x3e38fc,_0x3559bd[_0x9392bc(0x134)]))return![];const _0xa138ae=_0x2e257f[_0x2e257f['length']-0x1];if(_0xa138ae in _0x3e38fc)return delete _0x3e38fc[_0xa138ae],!![];return![];}function parseKeyPath(_0x147d85){const _0x151f46=_0x39628a,_0x7baa8e={'QIgIW':function(_0x416a44,_0x3e6665){return _0x416a44===_0x3e6665;},'DmadB':'setupHeader'},_0x35f1ff=_0x147d85[_0x151f46(0x15b)]('.');return _0x7baa8e['QIgIW'](_0x35f1ff[0x0],_0x151f46(0x137))&&(_0x35f1ff[0x0]='headers'),_0x7baa8e['QIgIW'](_0x35f1ff[0x0],_0x7baa8e['DmadB'])&&(_0x35f1ff[0x0]=_0x151f46(0x135)),_0x35f1ff;}function _0x4fb7(_0x56f97b,_0x518ff9){_0x56f97b=_0x56f97b-0xee;const _0x391ebe=_0x391e();let _0x4fb7dc=_0x391ebe[_0x56f97b];return _0x4fb7dc;}export function formatSettings(_0xa163a1,_0x476485=0x0){const _0x45b535=_0x39628a,_0x50ffb6={'tmlZY':function(_0x438604,_0x189bac){return _0x438604===_0x189bac;}},_0x4e6634=[],_0x469bab='\x20\x20'['repeat'](_0x476485);for(const [_0x5c24c7,_0x546fa4]of Object['entries'](_0xa163a1)){if(_0x50ffb6['tmlZY'](_0x546fa4,undefined))continue;if(typeof _0x546fa4==='object'&&_0x546fa4!==null){_0x4e6634[_0x45b535(0x139)](''+_0x469bab+_0x5c24c7+':');for(const [_0xe742c3,_0x55b2e1]of Object['entries'](_0x546fa4)){_0x4e6634['push'](_0x469bab+'\x20\x20'+_0xe742c3+':\x20'+_0x55b2e1);}}else _0x4e6634[_0x45b535(0x139)](''+_0x469bab+_0x5c24c7+':\x20'+_0x546fa4);}return _0x4e6634[_0x45b535(0x141)]('\x0a');}
1
+ const _0x189951=_0x3cba;(function(_0x44af4f,_0x4d5f59){const _0x3f120a=_0x3cba,_0x51ae08=_0x44af4f();while(!![]){try{const _0x4567b5=parseInt(_0x3f120a(0x16d))/0x1+parseInt(_0x3f120a(0x123))/0x2+-parseInt(_0x3f120a(0x158))/0x3+parseInt(_0x3f120a(0x15b))/0x4+-parseInt(_0x3f120a(0x133))/0x5+parseInt(_0x3f120a(0x15d))/0x6*(parseInt(_0x3f120a(0x178))/0x7)+-parseInt(_0x3f120a(0x16b))/0x8;if(_0x4567b5===_0x4d5f59)break;else _0x51ae08['push'](_0x51ae08['shift']());}catch(_0x336153){_0x51ae08['push'](_0x51ae08['shift']());}}}(_0x16d8,0x99787));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';function _0x3cba(_0x1115e6,_0x138ae3){_0x1115e6=_0x1115e6-0x120;const _0x16d873=_0x16d8();let _0x3cbaf3=_0x16d873[_0x1115e6];return _0x3cbaf3;}import{getToken}from'./keychain.js';import{getRangerDir}from'./rangerRoot.js';export function getEnvDir(_0x31ea4b){const _0x243d7e=_0x3cba,_0x55ae2a={'OOARp':function(_0x46589e){return _0x46589e();},'yJOMO':function(_0x28f496,_0x378b55,_0x2650ff,_0x531e57){return _0x28f496(_0x378b55,_0x2650ff,_0x531e57);},'jFuvy':'local','zyPxR':function(_0x16cac8,_0x32327d,_0x1c918e){return _0x16cac8(_0x32327d,_0x1c918e);},'nZjLO':function(_0x3d7b80,_0x36a3e3){return _0x3d7b80(_0x36a3e3);},'CfNqu':function(_0x88e735,_0x1e8721){return _0x88e735(_0x1e8721);},'AfMUy':function(_0x383f2f,_0x15e403){return _0x383f2f!==_0x15e403;},'cwwFa':function(_0x2b2628,_0x5e351c){return _0x2b2628!==_0x5e351c;},'nNKbm':function(_0x565bc5,_0x586b7a){return _0x565bc5(_0x586b7a);}},_0xa314c3=_0x55ae2a['OOARp'](getRangerDir),_0x203c8f=join(_0xa314c3,'ci',_0x31ea4b),_0xf1fead=_0x55ae2a['yJOMO'](join,_0xa314c3,_0x55ae2a[_0x243d7e(0x169)],_0x31ea4b),_0x2ceb55=join(_0xa314c3,_0x31ea4b),_0x2d713c=_0x55ae2a['zyPxR'](join,_0xa314c3,_0x243d7e(0x162)),_0x54c6f2=_0x55ae2a['zyPxR'](join,_0xa314c3,'ci');if(existsSync(_0x203c8f))return _0x203c8f;if(_0x55ae2a['nZjLO'](existsSync,_0xf1fead))return _0xf1fead;if(_0x55ae2a[_0x243d7e(0x13a)](existsSync,_0x2ceb55)&&(_0x55ae2a['AfMUy'](_0x2ceb55,_0x2d713c)&&_0x55ae2a[_0x243d7e(0x12d)](_0x2ceb55,_0x54c6f2)?!![]:_0x55ae2a['nNKbm'](hasLegacyProfileFiles,_0x2ceb55)))return _0x2ceb55;return _0xf1fead;}function _0x16d8(){const _0x28ce52=['7jkTtos','pySUT','--allow-running-insecure-content','\x20is\x20not\x20set','rTWGZ','--disable-setuid-sandbox','keys','allowInsecureLocalhost','install','settings.json','rQXdi','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','headless','ekjVH','header','wLyra','storageState','HYBnZ','catch','now','stringify','vision','launchOptions','args','286130zhRurc','rhDkP','.json','ranger-auth-','sdNNw','WzrMC','safeMode','ranger-config','JDJQV','length','cwwFa','xfoqB','clipboard-read','message','code','chromium','1845930MNOhVS','join','cdpEndpoint','location','none','auth.json','clipboard-write','CfNqu','browser','XbBNq','eiinA','ytVuH','path','wfmBy','--no-sandbox','Failed\x20to\x20decrypt\x20auth\x20state:\x20','LYeEx','UkJJB','hJHOh','gkUCA','uxtwB','QdjGa','XXvrr','entries','hAVfl','slwaK','storageStatePath','all','yIxMp','FkELL','mwbWs','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','tempAuthPath','extraHTTPHeaders','hkSaK','object','string','3557313FbXGKb','sessions','includes','3360244xziqAM','AQnUV','1439322iTkyIQ','setupHeader','Bkyff','contextOptions','boolean','local','cExnn','XYCUD','map','irksN','spqnP','userAgent','jFuvy','jygKq','2254072BEJkfQ','dmAKG','1242318woeBae','fromEntries','XYEzQ','vehKG','IdcTW','parse','filter','env','Navov','ENOENT','IWWsf'];_0x16d8=function(){return _0x28ce52;};return _0x16d8();}export function findExistingEnv(_0x396b89,_0x4206cf){const _0x599a00=_0x3cba,_0x182672={'fFlJV':'local','IdcTW':'legacy','WzrMC':function(_0x33ccff,_0x3c4ed5,_0x3d1354){return _0x33ccff(_0x3c4ed5,_0x3d1354);},'xfoqB':function(_0x15092f,_0xd3ceea,_0xcb5857,_0x11677c){return _0x15092f(_0xd3ceea,_0xcb5857,_0x11677c);},'rhDkP':function(_0xf91df4,_0x365548,_0xc32d90){return _0xf91df4(_0x365548,_0xc32d90);},'Navov':function(_0x17d5f8,_0x126ff3){return _0x17d5f8(_0x126ff3);},'spqnP':function(_0x12a38a,_0x217803){return _0x12a38a(_0x217803);}},_0x2652f5=getRangerDir(),_0x144023=_0x4206cf?.['locations']??['ci',_0x182672['fFlJV'],_0x182672[_0x599a00(0x171)]],_0x4e1e9c=_0x182672[_0x599a00(0x128)](join,_0x2652f5,_0x599a00(0x162)),_0x1f71bd=join(_0x2652f5,'ci'),_0x22a28b=[{'location':'ci','path':_0x182672[_0x599a00(0x12e)](join,_0x2652f5,'ci',_0x396b89)},{'location':_0x599a00(0x162),'path':join(_0x2652f5,_0x182672['fFlJV'],_0x396b89)},{'location':_0x182672[_0x599a00(0x171)],'path':_0x182672[_0x599a00(0x124)](join,_0x2652f5,_0x396b89)}];for(const _0x14f81b of _0x22a28b){if(_0x144023[_0x599a00(0x15a)](_0x14f81b[_0x599a00(0x136)])&&_0x182672[_0x599a00(0x175)](existsSync,_0x14f81b[_0x599a00(0x13f)])){if(_0x14f81b['location']===_0x182672[_0x599a00(0x171)]&&(_0x14f81b['path']===_0x4e1e9c||_0x14f81b[_0x599a00(0x13f)]===_0x1f71bd)&&!_0x182672[_0x599a00(0x167)](hasLegacyProfileFiles,_0x14f81b[_0x599a00(0x13f)]))continue;return{'path':_0x14f81b['path'],'location':_0x14f81b[_0x599a00(0x136)]};}}return null;}function hasLegacyProfileFiles(_0x46749a){const _0xf148ff=_0x3cba,_0x4fb54a={'sdNNw':function(_0x3fa8c0,_0x26dc1d){return _0x3fa8c0(_0x26dc1d);},'vehKG':function(_0x1da7ee,_0x29b922,_0x5702bb){return _0x1da7ee(_0x29b922,_0x5702bb);}};return existsSync(join(_0x46749a,'settings.json'))||existsSync(join(_0x46749a,_0xf148ff(0x138)))||_0x4fb54a[_0xf148ff(0x127)](existsSync,_0x4fb54a[_0xf148ff(0x170)](join,_0x46749a,'auth.json.enc'));}export function isEnvCi(_0x1d8291){const _0x59380d=_0x3cba,_0x3d94dc={'hkSaK':function(_0x5b07c6,_0x11a3f9,_0x2af6f2,_0x91a5d2){return _0x5b07c6(_0x11a3f9,_0x2af6f2,_0x91a5d2);},'XYCUD':function(_0x2b02b7){return _0x2b02b7();}};return existsSync(_0x3d94dc[_0x59380d(0x155)](join,_0x3d94dc[_0x59380d(0x164)](getRangerDir),'ci',_0x1d8291));}export async function cleanupTempFiles(_0x5ef9f6){const _0x115b3c=_0x3cba,_0x338ded={'GSyvH':function(_0x196b38,_0x4f596a){return _0x196b38!==_0x4f596a;}},_0x37fb58=[_0x5ef9f6[_0x115b3c(0x153)],_0x5ef9f6['configPath']]['filter'](Boolean);await Promise[_0x115b3c(0x14e)](_0x37fb58['map'](_0x11c24e=>unlink(_0x11c24e)[_0x115b3c(0x18a)](_0x12cc78=>{const _0x137f2d=_0x115b3c;_0x338ded['GSyvH'](_0x12cc78[_0x137f2d(0x131)],_0x137f2d(0x176))&&console['warn'](_0x137f2d(0x183)+_0x11c24e+':',_0x12cc78[_0x137f2d(0x130)]);})));}export function getSettingsPath(_0x3a9d54){const _0x5da744=_0x3cba,_0x57d57e={'gkUCA':_0x5da744(0x181)};return join(getEnvDir(_0x3a9d54),_0x57d57e[_0x5da744(0x146)]);}export async function loadSettings(_0x2e8319){const _0x414ba9=_0x3cba,_0x2aac76={'rQXdi':function(_0x40756e,_0xbe1d4){return _0x40756e(_0xbe1d4);},'ePdvP':function(_0x457c37,_0x23e994,_0x5ba473){return _0x457c37(_0x23e994,_0x5ba473);}},_0xeb52e6=_0x2aac76[_0x414ba9(0x182)](getSettingsPath,_0x2e8319);if(!_0x2aac76['rQXdi'](existsSync,_0xeb52e6))return{};try{const _0x317200=await _0x2aac76['ePdvP'](readFile,_0xeb52e6,'utf-8');return JSON[_0x414ba9(0x172)](_0x317200);}catch{return{};}}export async function saveSettings(_0x3f25f8,_0x9106c3){const _0x41f18f=_0x3cba,_0x29e709={'nACDg':function(_0x1ef463,_0x59b1b6){return _0x1ef463(_0x59b1b6);},'HVhAM':function(_0x2e4dc1,_0x574b69,_0x552bf9){return _0x2e4dc1(_0x574b69,_0x552bf9);}},_0x4aa25c=_0x29e709['nACDg'](getSettingsPath,_0x3f25f8),_0x551ce1=dirname(_0x4aa25c);!existsSync(_0x551ce1)&&await _0x29e709['HVhAM'](mkdir,_0x551ce1,{'recursive':!![]}),await writeFile(_0x4aa25c,JSON[_0x41f18f(0x18c)](_0x9106c3,null,0x2));}export function resolveEnvVars(_0xb4e84c){const _0x489703=_0x3cba,_0x34f06b={'exirg':_0x489703(0x157),'UEdQU':function(_0x266f65,_0x926594){return _0x266f65===_0x926594;},'XYEzQ':_0x489703(0x156)};if(typeof _0xb4e84c===_0x34f06b['exirg'])return _0xb4e84c['replace'](/\$\{(\w+)\}/g,(_0x32a7f2,_0x142607)=>{const _0xa1b213=_0x489703,_0x502585=process[_0xa1b213(0x174)][_0x142607];if(_0x502585===undefined)throw new Error('Environment\x20variable\x20'+_0x142607+_0xa1b213(0x17b));return _0x502585;});if(Array['isArray'](_0xb4e84c))return _0xb4e84c[_0x489703(0x165)](resolveEnvVars);if(_0xb4e84c&&_0x34f06b['UEdQU'](typeof _0xb4e84c,_0x34f06b[_0x489703(0x16f)]))return Object[_0x489703(0x16e)](Object['entries'](_0xb4e84c)[_0x489703(0x165)](([_0x3fdc50,_0x47cc43])=>[_0x3fdc50,resolveEnvVars(_0x47cc43)]));return _0xb4e84c;}const isRecord=_0x5d1b5e=>typeof _0x5d1b5e==='object'&&_0x5d1b5e!==null&&!Array['isArray'](_0x5d1b5e),asRecord=_0x2ac167=>isRecord(_0x2ac167)?_0x2ac167:undefined,mergeHeaders=(_0x3b2c9b,_0xfd50b5)=>{const _0x2bae79=_0x3cba,_0x57c02f={..._0x3b2c9b??{},..._0xfd50b5??{}};return Object[_0x2bae79(0x17e)](_0x57c02f)['length']?_0x57c02f:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=['--disable-web-security',_0x189951(0x17a),'--unsafely-treat-insecure-origin-as-secure=http://localhost','--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x532e9e,_0x580b4a={}){const _0xc81cef=_0x189951,_0x3e2dd5={'QdjGa':_0xc81cef(0x161),'wfmBy':function(_0x169778,_0xa3d76){return _0x169778===_0xa3d76;},'mwbWs':_0xc81cef(0x157),'kclkZ':function(_0x1c5d6a,_0x3fbfb0){return _0x1c5d6a(_0x3fbfb0);}},_0x284a68=asRecord(_0x532e9e[_0xc81cef(0x13b)]),_0x19700a={...asRecord(_0x284a68?.[_0xc81cef(0x121)])??{}};typeof _0x580b4a['headless']===_0x3e2dd5[_0xc81cef(0x148)]&&(_0x19700a[_0xc81cef(0x184)]=_0x580b4a['headless']);if(_0x532e9e[_0xc81cef(0x129)]){const _0x4df390=_0x19700a[_0xc81cef(0x122)]??[],_0x3ca0b9=SAFE_MODE_ARGS[_0xc81cef(0x173)](_0x479cb9=>!_0x4df390['includes'](_0x479cb9));_0x19700a[_0xc81cef(0x122)]=[..._0x4df390,..._0x3ca0b9];}if(_0x532e9e[_0xc81cef(0x17f)]){const _0x5d6517=_0x19700a[_0xc81cef(0x122)]??[],_0x1a02e2=ALLOW_LOCALHOST_ARGS[_0xc81cef(0x173)](_0x29c33a=>!_0x5d6517['includes'](_0x29c33a));_0x19700a[_0xc81cef(0x122)]=[..._0x5d6517,..._0x1a02e2];}const _0xb0bf27={...asRecord(_0x284a68?.['contextOptions'])??{}};_0xb0bf27['ignoreHTTPSErrors']=!![];_0x3e2dd5[_0xc81cef(0x140)](typeof _0x532e9e[_0xc81cef(0x168)],_0x3e2dd5[_0xc81cef(0x151)])&&(_0xb0bf27[_0xc81cef(0x168)]=_0x532e9e['userAgent']);const _0x2652f9=mergeHeaders(_0x3e2dd5['kclkZ'](asRecord,_0xb0bf27['extraHTTPHeaders']),asRecord(_0x532e9e['headers']));return _0x2652f9?_0xb0bf27[_0xc81cef(0x154)]=_0x2652f9:delete _0xb0bf27['extraHTTPHeaders'],_0x580b4a[_0xc81cef(0x14d)]&&(_0xb0bf27['storageState']=_0x580b4a['storageStatePath']),{'launchOptions':_0x19700a,'contextOptions':_0xb0bf27};}export async function buildPlaywrightConfig(_0x60dbce,_0x64e606,_0x44aad3,_0x24a3de){const _0x109bb5=_0x189951,_0x3a4e48={'FkELL':function(_0x5f5b7d,_0x395255,_0x1eb573){return _0x5f5b7d(_0x395255,_0x1eb573);},'SxYAc':_0x109bb5(0x132),'YHMHa':'auth.json.enc','irksN':_0x109bb5(0x138),'skJmH':_0x109bb5(0x152),'Bkyff':function(_0x3ff94f){return _0x3ff94f();},'eiinA':function(_0x523127,_0x583fc0,_0x2160af){return _0x523127(_0x583fc0,_0x2160af);},'pySUT':function(_0x610e06,_0x5647d2){return _0x610e06(_0x5647d2);},'nCuKq':function(_0x292e69,_0x23ff40,_0x1f3e70,_0x46b244){return _0x292e69(_0x23ff40,_0x1f3e70,_0x46b244);},'XbBNq':_0x109bb5(0x159),'wLyra':'core','jygKq':'tabs','hPWZV':'pdf','rTWGZ':_0x109bb5(0x120),'XXvrr':function(_0x552792,_0x37965c){return _0x552792===_0x37965c;},'UkJJB':function(_0x324e36,_0x88a6d6,_0x242e73){return _0x324e36(_0x88a6d6,_0x242e73);}},_0x351254=getEnvDir(_0x64e606),_0x3d728b=join(_0x351254,_0x3a4e48['YHMHa']),_0x48380f=join(_0x351254,_0x3a4e48[_0x109bb5(0x166)]);let _0x706e62,_0x3630a0;if(existsSync(_0x3d728b))try{const _0x455206=await getToken();if(!_0x455206)throw new Error(_0x3a4e48['skJmH']);const _0x167361=await readFile(_0x3d728b),_0x1350ba=decrypt(_0x167361,_0x455206);_0x3630a0=_0x3a4e48['FkELL'](join,_0x3a4e48[_0x109bb5(0x15f)](tmpdir),'ranger-auth-'+Date['now']()+_0x109bb5(0x125)),await _0x3a4e48[_0x109bb5(0x13d)](writeFile,_0x3630a0,_0x1350ba),_0x706e62=_0x3630a0;}catch(_0x318fcd){const _0x2b60d6=_0x318fcd instanceof Error?_0x318fcd[_0x109bb5(0x130)]:_0x3a4e48[_0x109bb5(0x179)](String,_0x318fcd);throw new Error(_0x109bb5(0x142)+_0x2b60d6);}else existsSync(_0x48380f)&&(_0x706e62=_0x48380f);const _0x2be22b=_0x44aad3||randomUUID(),_0x157796=_0x3a4e48['nCuKq'](join,getRangerDir(),_0x3a4e48[_0x109bb5(0x13c)],_0x2be22b),_0x2350b4=_0x3a4e48['pySUT'](Boolean,_0x60dbce['cdpEndpoint']),_0x352dc9=_0x2350b4?{'browserName':_0x3a4e48['SxYAc'],'cdpEndpoint':_0x60dbce['cdpEndpoint']}:((()=>{const _0x3d5ce7=_0x109bb5,{launchOptions:_0x1103d7,contextOptions:_0x1c3008}=_0x3a4e48['FkELL'](buildBrowserOptionsFromSettings,_0x60dbce,{'headless':_0x24a3de?![]:_0x60dbce['headless']??!![],'storageStatePath':_0x706e62});if(process['getuid']?.()===0x0){const _0x6c0564=['--no-sandbox',_0x3d5ce7(0x17d)],_0x38a644=_0x1103d7[_0x3d5ce7(0x122)]??[],_0x40f576=_0x6c0564[_0x3d5ce7(0x173)](_0x33a4ca=>!_0x38a644['includes'](_0x33a4ca));_0x1103d7[_0x3d5ce7(0x122)]=[..._0x38a644,..._0x40f576];}return{'isolated':!![],'browserName':_0x3a4e48['SxYAc'],'launchOptions':_0x1103d7,'contextOptions':{..._0x1c3008,'permissions':['clipboard-read','clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x62bf6d={'name':_0x64e606,'browser':_0x352dc9,'capabilities':[_0x3a4e48[_0x109bb5(0x187)],_0x3a4e48[_0x109bb5(0x16a)],_0x109bb5(0x180),_0x3a4e48['hPWZV'],_0x3a4e48[_0x109bb5(0x17c)]],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x157796};if(!_0x2350b4){const _0x283550=_0x62bf6d['browser'],_0x3e17e4=_0x283550[_0x109bb5(0x160)];if(_0x3a4e48[_0x109bb5(0x149)](_0x3e17e4['userAgent'],undefined))delete _0x3e17e4['userAgent'];if(_0x3e17e4['storageState']===undefined)delete _0x3e17e4[_0x109bb5(0x188)];}const _0x2190fa=join(_0x3a4e48[_0x109bb5(0x15f)](tmpdir),'ranger-config');!existsSync(_0x2190fa)&&await mkdir(_0x2190fa,{'recursive':!![]});const _0x3c9d79=_0x3a4e48[_0x109bb5(0x144)](join,_0x2190fa,_0x64e606+'-'+Date[_0x109bb5(0x18b)]()+_0x109bb5(0x125));return await _0x3a4e48[_0x109bb5(0x150)](writeFile,_0x3c9d79,JSON[_0x109bb5(0x18c)](_0x62bf6d,null,0x2)),{'configPath':_0x3c9d79,'tempAuthPath':_0x3630a0};}export async function buildPlaywrightCliConfig(_0x5c35a,_0x94b603,_0x23b3fb,_0x2f6b77){const _0xc1082c=_0x189951,_0x4fac85={'yIxMp':function(_0x489533,_0x3bdeae,_0x9c559b){return _0x489533(_0x3bdeae,_0x9c559b);},'ytVuH':_0xc1082c(0x141),'ekjVH':_0xc1082c(0x132),'CGkDR':_0xc1082c(0x139),'OwSLt':'auth.json.enc','NjeYT':function(_0x4f09f7){return _0x4f09f7();},'ZeLoJ':function(_0x1359ec,_0x490125){return _0x1359ec(_0x490125);},'hAVfl':function(_0x4f5b93,_0x3da302,_0x842e1d){return _0x4f5b93(_0x3da302,_0x842e1d);},'eKcHc':function(_0x116438,_0x165d29){return _0x116438 instanceof _0x165d29;},'TjnYC':function(_0x455e28,_0x484a7c,_0x4e3a96,_0x10eb57){return _0x455e28(_0x484a7c,_0x4e3a96,_0x10eb57);},'HYBnZ':'file','SVkhZ':_0xc1082c(0x137),'uxtwB':function(_0x346431){return _0x346431();},'PBVGh':function(_0x2f4f5d,_0x1e2374){return _0x2f4f5d(_0x1e2374);},'JDJQV':function(_0x4a88f1,_0x1f9761,_0xdacaa7){return _0x4a88f1(_0x1f9761,_0xdacaa7);}},_0x47520f=getEnvDir(_0x94b603),_0x59b2be=_0x4fac85[_0xc1082c(0x14f)](join,_0x47520f,_0x4fac85['OwSLt']),_0x677364=_0x4fac85[_0xc1082c(0x14f)](join,_0x47520f,'auth.json');let _0x14af55,_0x184c79;if(existsSync(_0x59b2be))try{const _0x59f671=await _0x4fac85['NjeYT'](getToken);if(!_0x59f671)throw new Error(_0xc1082c(0x152));const _0x71e790=await _0x4fac85['ZeLoJ'](readFile,_0x59b2be),_0x24fac3=_0x4fac85['yIxMp'](decrypt,_0x71e790,_0x59f671);_0x184c79=_0x4fac85[_0xc1082c(0x14b)](join,tmpdir(),_0xc1082c(0x126)+Date[_0xc1082c(0x18b)]()+'.json'),await writeFile(_0x184c79,_0x24fac3),_0x14af55=_0x184c79;}catch(_0x160105){const _0x428ef1=_0x4fac85['eKcHc'](_0x160105,Error)?_0x160105['message']:String(_0x160105);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x428ef1);}else _0x4fac85['ZeLoJ'](existsSync,_0x677364)&&(_0x14af55=_0x677364);const _0x5995ea=_0x23b3fb||randomUUID(),_0x4d39cd=_0x4fac85['TjnYC'](join,getRangerDir(),'sessions',_0x5995ea),_0x1b4de2=Boolean(_0x5c35a[_0xc1082c(0x135)]),_0x4037e2=_0x1b4de2?{'browserName':'chromium','cdpEndpoint':_0x5c35a['cdpEndpoint']}:((()=>{const _0x3ce826=_0xc1082c,{launchOptions:_0x1f2112,contextOptions:_0x5aec1f}=_0x4fac85[_0x3ce826(0x14f)](buildBrowserOptionsFromSettings,_0x5c35a,{'headless':_0x2f6b77?![]:_0x5c35a['headless']??!![],'storageStatePath':_0x14af55});if(process['getuid']?.()===0x0){const _0x4cf98d=[_0x4fac85[_0x3ce826(0x13e)],'--disable-setuid-sandbox'],_0x21cb69=_0x1f2112[_0x3ce826(0x122)]??[],_0x2e1268=_0x4cf98d[_0x3ce826(0x173)](_0x25e1c2=>!_0x21cb69[_0x3ce826(0x15a)](_0x25e1c2));_0x1f2112[_0x3ce826(0x122)]=[..._0x21cb69,..._0x2e1268];}return{'isolated':!![],'browserName':_0x4fac85[_0x3ce826(0x185)],'launchOptions':_0x1f2112,'contextOptions':{..._0x5aec1f,'permissions':[_0x3ce826(0x12f),_0x4fac85['CGkDR']],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x1b4de2){const _0xabc8e8=_0x4037e2['contextOptions'];if(_0xabc8e8['userAgent']===undefined)delete _0xabc8e8[_0xc1082c(0x168)];if(_0xabc8e8['storageState']===undefined)delete _0xabc8e8['storageState'];}const _0x475756={'browser':_0x4037e2,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4d39cd,'outputMode':_0x4fac85[_0xc1082c(0x189)],'codegen':_0x4fac85['SVkhZ']},_0x59850d=join(_0x4fac85[_0xc1082c(0x147)](tmpdir),_0xc1082c(0x12a));!_0x4fac85['PBVGh'](existsSync,_0x59850d)&&await mkdir(_0x59850d,{'recursive':!![]});const _0xcbb983=_0x4fac85[_0xc1082c(0x12b)](join,_0x59850d,_0x94b603+'-'+Date['now']()+'-cli.json');return await writeFile(_0xcbb983,JSON[_0xc1082c(0x18c)](_0x475756,null,0x2)),{'configPath':_0xcbb983,'tempAuthPath':_0x184c79};}export function getNestedValue(_0x517633,_0x1c7267){const _0x59dd30=_0x189951,_0x106ea3={'waqcW':function(_0x41b29a,_0x38e8f2){return _0x41b29a(_0x38e8f2);},'slwaK':function(_0x5b9894,_0x5a290b){return _0x5b9894===_0x5a290b;}},_0x31d144=_0x106ea3['waqcW'](parseKeyPath,_0x1c7267);let _0x7beed=_0x517633;for(const _0x43a04e of _0x31d144){if(_0x106ea3[_0x59dd30(0x14c)](_0x7beed,null)||_0x7beed===undefined||typeof _0x7beed!==_0x59dd30(0x156))return undefined;_0x7beed=_0x7beed[_0x43a04e];}return _0x7beed;}export function setNestedValue(_0x27919a,_0x597aa6,_0x482718){const _0x11b876=_0x189951,_0x15d8d9={'cExuO':function(_0x364412,_0x301ccd){return _0x364412(_0x301ccd);},'hJHOh':function(_0x2b863f,_0x51f753){return _0x2b863f<_0x51f753;},'dItrk':function(_0x110608,_0xa785f2){return _0x110608-_0xa785f2;},'AQnUV':function(_0x4a5a2c,_0x256b78){return _0x4a5a2c in _0x256b78;},'rVsOF':function(_0x3518fc,_0x33dd13){return _0x3518fc!==_0x33dd13;},'nLeWI':'object','KIWdc':function(_0x3396aa,_0xa37fa){return _0x3396aa-_0xa37fa;}},_0x14d87c=_0x15d8d9['cExuO'](parseKeyPath,_0x597aa6);let _0x26276b=_0x27919a;for(let _0x3e6130=0x0;_0x15d8d9[_0x11b876(0x145)](_0x3e6130,_0x15d8d9['dItrk'](_0x14d87c['length'],0x1));_0x3e6130++){const _0x25ecc4=_0x14d87c[_0x3e6130];(!_0x15d8d9[_0x11b876(0x15c)](_0x25ecc4,_0x26276b)||_0x15d8d9['rVsOF'](typeof _0x26276b[_0x25ecc4],_0x15d8d9['nLeWI']))&&(_0x26276b[_0x25ecc4]={}),_0x26276b=_0x26276b[_0x25ecc4];}_0x26276b[_0x14d87c[_0x15d8d9['KIWdc'](_0x14d87c['length'],0x1)]]=_0x482718;}export function deleteNestedValue(_0x4e3d59,_0x4483e0){const _0x31df1f=_0x189951,_0x5ed8da={'aZpju':function(_0x540198,_0x1b3e12){return _0x540198(_0x1b3e12);},'RGFao':function(_0x2bbdb9,_0x53ab48){return _0x2bbdb9<_0x53ab48;},'siWag':function(_0x5c02b9,_0x1fc6f9){return _0x5c02b9-_0x1fc6f9;},'cExnn':function(_0xfc88ad,_0x1a48c4){return _0xfc88ad===_0x1a48c4;},'OMZND':function(_0x260c54,_0x1372e){return _0x260c54!==_0x1372e;},'LYeEx':function(_0x37cfc2,_0x441fd4){return _0x37cfc2 in _0x441fd4;}},_0x16aecb=_0x5ed8da['aZpju'](parseKeyPath,_0x4483e0);let _0x2a1330=_0x4e3d59;for(let _0x351d8c=0x0;_0x5ed8da['RGFao'](_0x351d8c,_0x5ed8da['siWag'](_0x16aecb[_0x31df1f(0x12c)],0x1));_0x351d8c++){if(_0x5ed8da[_0x31df1f(0x163)](_0x2a1330,null)||_0x2a1330===undefined||_0x5ed8da['OMZND'](typeof _0x2a1330,_0x31df1f(0x156)))return![];_0x2a1330=_0x2a1330[_0x16aecb[_0x351d8c]];}if(_0x2a1330===null||_0x2a1330===undefined||typeof _0x2a1330!=='object')return![];const _0x598be7=_0x16aecb[_0x16aecb[_0x31df1f(0x12c)]-0x1];if(_0x5ed8da[_0x31df1f(0x143)](_0x598be7,_0x2a1330))return delete _0x2a1330[_0x598be7],!![];return![];}function parseKeyPath(_0x30a8bd){const _0x1b8fdd=_0x189951,_0x2f7ffa={'XIrUa':function(_0x1b11d7,_0x314ac8){return _0x1b11d7===_0x314ac8;},'BJHZO':_0x1b8fdd(0x186),'XkZeb':'setupHeaders'},_0x37b8c7=_0x30a8bd['split']('.');return _0x2f7ffa['XIrUa'](_0x37b8c7[0x0],_0x2f7ffa['BJHZO'])&&(_0x37b8c7[0x0]='headers'),_0x37b8c7[0x0]===_0x1b8fdd(0x15e)&&(_0x37b8c7[0x0]=_0x2f7ffa['XkZeb']),_0x37b8c7;}export function formatSettings(_0xfd019c,_0x221594=0x0){const _0x31bae9=_0x189951,_0x37bfeb={'IWWsf':function(_0x128211,_0x3c0062){return _0x128211===_0x3c0062;},'dmAKG':'object'},_0x4cd766=[],_0x477c32='\x20\x20'['repeat'](_0x221594);for(const [_0x6b6f50,_0x5ab870]of Object[_0x31bae9(0x14a)](_0xfd019c)){if(_0x37bfeb[_0x31bae9(0x177)](_0x5ab870,undefined))continue;if(typeof _0x5ab870===_0x37bfeb[_0x31bae9(0x16c)]&&_0x5ab870!==null){_0x4cd766['push'](''+_0x477c32+_0x6b6f50+':');for(const [_0xf0dfb0,_0x42aaa3]of Object[_0x31bae9(0x14a)](_0x5ab870)){_0x4cd766['push'](_0x477c32+'\x20\x20'+_0xf0dfb0+':\x20'+_0x42aaa3);}}else _0x4cd766['push'](''+_0x477c32+_0x6b6f50+':\x20'+_0x5ab870);}return _0x4cd766[_0x31bae9(0x134)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x4430c2,_0x5b1624){const _0x1f96ef=_0x3795,_0x59fe88=_0x4430c2();while(!![]){try{const _0x5cfb76=parseInt(_0x1f96ef(0x1ea))/0x1+-parseInt(_0x1f96ef(0x1e9))/0x2+parseInt(_0x1f96ef(0x1ec))/0x3+parseInt(_0x1f96ef(0x1ee))/0x4+parseInt(_0x1f96ef(0x1ef))/0x5+parseInt(_0x1f96ef(0x1eb))/0x6+-parseInt(_0x1f96ef(0x1e8))/0x7;if(_0x5cfb76===_0x5b1624)break;else _0x59fe88['push'](_0x59fe88['shift']());}catch(_0x13cb55){_0x59fe88['push'](_0x59fe88['shift']());}}}(_0x744e,0xb3528));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function _0x3795(_0x4e5886,_0x567f8a){_0x4e5886=_0x4e5886-0x1e8;const _0x744eeb=_0x744e();let _0x379528=_0x744eeb[_0x4e5886];return _0x379528;}export function readSkillContent(_0x4aba73){const _0x21e676=_0x3795,_0x5a1089={'ZqseW':'skills','YCNmK':function(_0x18f477,_0x515ece,_0x212144){return _0x18f477(_0x515ece,_0x212144);},'vttDV':'utf-8'},_0xe4133a=join(__dirname,'..','..',_0x5a1089['ZqseW']),_0x5774e1=_0x5a1089['YCNmK'](join,_0xe4133a,_0x4aba73);try{return readFileSync(_0x5774e1,_0x5a1089[_0x21e676(0x1ed)]);}catch{return'';}}export function getRangerSkillContent(){return readSkillContent('ranger/SKILL.md');}function _0x744e(){const _0x3ed701=['4535105PzacxA','20996773EHdcug','466396dvACyK','1076687KqHOqt','7809378zqUQFO','164922YSNToJ','vttDV','2507984bpEfIU'];_0x744e=function(){return _0x3ed701;};return _0x744e();}
1
+ (function(_0x31e3a7,_0x129ab4){const _0x342f9f=_0x4a1d,_0x34ff51=_0x31e3a7();while(!![]){try{const _0x1af692=-parseInt(_0x342f9f(0xbc))/0x1*(-parseInt(_0x342f9f(0xc0))/0x2)+parseInt(_0x342f9f(0xb6))/0x3*(-parseInt(_0x342f9f(0xc2))/0x4)+parseInt(_0x342f9f(0xbd))/0x5*(-parseInt(_0x342f9f(0xc1))/0x6)+-parseInt(_0x342f9f(0xb9))/0x7+-parseInt(_0x342f9f(0xb8))/0x8*(-parseInt(_0x342f9f(0xbe))/0x9)+parseInt(_0x342f9f(0xb7))/0xa+parseInt(_0x342f9f(0xba))/0xb;if(_0x1af692===_0x129ab4)break;else _0x34ff51['push'](_0x34ff51['shift']());}catch(_0xcb34bf){_0x34ff51['push'](_0x34ff51['shift']());}}}(_0x330c,0x3011f));import{readFileSync}from'fs';function _0x4a1d(_0x335eff,_0x51a966){_0x335eff=_0x335eff-0xb6;const _0x330cb7=_0x330c();let _0x4a1db4=_0x330cb7[_0x335eff];return _0x4a1db4;}import{dirname,join}from'path';function _0x330c(){const _0x4a49af=['21484LvZSaz','201isIOWB','740330IJaUcR','56jwxiwV','1722098IXgEmC','8381164VNAMRi','ranger/SKILL.md','3678nuChYp','401510DplWrf','190611UKVcSF','skills','76AWoiCk','24dqMLZE'];_0x330c=function(){return _0x4a49af;};return _0x330c();}import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x5ea120){const _0x263e88=_0x4a1d,_0x24091b={'Ltxsm':_0x263e88(0xbf)},_0x2c8db8=join(__dirname,'..','..',_0x24091b['Ltxsm']),_0x46b306=join(_0x2c8db8,_0x5ea120);try{return readFileSync(_0x46b306,'utf-8');}catch{return'';}}export function getRangerSkillContent(){const _0x19d9be=_0x4a1d,_0x1500b4={'QbwdF':function(_0x147aab,_0xa96cd7){return _0x147aab(_0xa96cd7);}};return _0x1500b4['QbwdF'](readSkillContent,_0x19d9be(0xbb));}
@@ -1 +1 @@
1
- const _0x2f4eef=_0x42e1;(function(_0x2ba860,_0x4e6fb9){const _0x41ed3d=_0x42e1,_0x1c7cae=_0x2ba860();while(!![]){try{const _0x509359=-parseInt(_0x41ed3d(0x8a))/0x1*(-parseInt(_0x41ed3d(0x91))/0x2)+parseInt(_0x41ed3d(0x82))/0x3+parseInt(_0x41ed3d(0x98))/0x4*(parseInt(_0x41ed3d(0x85))/0x5)+-parseInt(_0x41ed3d(0x94))/0x6+-parseInt(_0x41ed3d(0x92))/0x7+-parseInt(_0x41ed3d(0x83))/0x8*(-parseInt(_0x41ed3d(0x9b))/0x9)+-parseInt(_0x41ed3d(0x86))/0xa*(parseInt(_0x41ed3d(0x8f))/0xb);if(_0x509359===_0x4e6fb9)break;else _0x1c7cae['push'](_0x1c7cae['shift']());}catch(_0x3656bf){_0x1c7cae['push'](_0x1c7cae['shift']());}}}(_0x49e5,0x6e4bb));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';function _0x42e1(_0x587464,_0x48a9b7){_0x587464=_0x587464-0x7e;const _0x49e56a=_0x49e5();let _0x42e1a1=_0x49e56a[_0x587464];return _0x42e1a1;}import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';function _0x49e5(){const _0x156806=['WjSGd','.md','log','join','skills','1611960FCsMte','5502488BnVGtZ','isDirectory','30aGyngd','2824690CazXng','length','catch','opencode','11497KKaDzQ','\x20\x20Location:\x20','qAKrV','filter','yeqDe','11AztFGh','ZmHYF','2hyYaho','5092465EtdJOT','utf-8','2953446gIhuCn','AvEAs','ranger','SKILL.md','478232MwmCqv','Invalid\x20skill\x20frontmatter','nawoL','9ucojyv','warn','push','match'];_0x49e5=function(){return _0x156806;};return _0x49e5();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x2f4eef(0x96)];export const DEPRECATED_SKILLS=['e2e-test-recommender','bug-bash','feature-tracker'];export async function installSkill(_0x6b7f65,_0x428973={}){const _0x5cdea5=_0x2f4eef,_0x30dc1e={'EwflX':'claude','xeKfV':function(_0x561c73,_0x4266e2){return _0x561c73(_0x4266e2);},'qAKrV':function(_0x29295d,_0x55e918){return _0x29295d(_0x55e918);},'nawoL':function(_0x524ce8,_0x269cbc,_0x3dffc1){return _0x524ce8(_0x269cbc,_0x3dffc1);},'rJKqp':function(_0x90c025,_0xf8f633){return _0x90c025&&_0xf8f633;},'FhZfZ':function(_0x1db111,_0x5aa91b){return _0x1db111===_0x5aa91b;},'yeqDe':_0x5cdea5(0x89),'ZmHYF':function(_0x1753d7,_0x193ac4,_0x26f676){return _0x1753d7(_0x193ac4,_0x26f676);},'RVhWC':function(_0x1ce57f,_0x59f5a4){return _0x1ce57f(_0x59f5a4);},'AvEAs':'SKILL.md','PcvXO':_0x5cdea5(0x93),'dSTyP':function(_0x19e9d5,_0x422864,_0x5e594e,_0x3b8e7a){return _0x19e9d5(_0x422864,_0x5e594e,_0x3b8e7a);},'WjSGd':function(_0x37b16a,_0x20537c,_0x1f0258,_0x19c822){return _0x37b16a(_0x20537c,_0x1f0258,_0x19c822);}},{level:level='project',cliVersion:_0x211722,platform:platform=_0x30dc1e['EwflX']}=_0x428973,_0x4142c1=getSourceSkillsDir(),_0xa0f80e=join(_0x4142c1,_0x6b7f65),_0x12c3a7=join(_0x4142c1,_0x6b7f65+_0x5cdea5(0x7e)),_0x5a46cf=_0x30dc1e['xeKfV'](existsSync,_0xa0f80e)&&_0x30dc1e[_0x5cdea5(0x8c)](statSync,_0xa0f80e)[_0x5cdea5(0x84)]()&&existsSync(_0x30dc1e['nawoL'](join,_0xa0f80e,'SKILL.md')),_0x540c20=_0x30dc1e['xeKfV'](existsSync,_0x12c3a7);if(_0x30dc1e['rJKqp'](!_0x5a46cf,!_0x540c20))return console['warn']('\x20\x20Skill\x20not\x20found:\x20'+_0x6b7f65),![];const _0x103b6f=_0x30dc1e['FhZfZ'](platform,_0x30dc1e[_0x5cdea5(0x8e)])?getOpencodeSkillsDir(level):_0x30dc1e['qAKrV'](getSkillsDir,level),_0x3a0046=_0x30dc1e['ZmHYF'](join,_0x103b6f,_0x6b7f65);await _0x30dc1e['nawoL'](mkdir,_0x3a0046,{'recursive':!![]});let _0x3caa2b,_0x3f9b5e=[];if(_0x5a46cf){const _0xb6e38=await _0x30dc1e['RVhWC'](readdir,_0xa0f80e),_0x436bfa=_0xb6e38[_0x5cdea5(0x8d)](_0x6a918c=>_0x6a918c['endsWith'](_0x5cdea5(0x7e)));for(const _0x25d8ac of _0x436bfa){const _0x36da5f=_0x30dc1e[_0x5cdea5(0x90)](join,_0xa0f80e,_0x25d8ac),_0x344802=join(_0x3a0046,_0x25d8ac);await copyFile(_0x36da5f,_0x344802),_0x3f9b5e[_0x5cdea5(0x9d)](_0x25d8ac);}_0x3caa2b=await readFile(join(_0xa0f80e,_0x30dc1e[_0x5cdea5(0x95)]),_0x30dc1e['PcvXO']);}else{_0x3caa2b=await _0x30dc1e[_0x5cdea5(0x9a)](readFile,_0x12c3a7,'utf-8');const _0x196875=join(_0x3a0046,_0x30dc1e['AvEAs']);await _0x30dc1e['dSTyP'](writeFile,_0x196875,_0x3caa2b,_0x5cdea5(0x93)),_0x3f9b5e[_0x5cdea5(0x9d)](_0x5cdea5(0x97));}const {name:_0x2cc538}=parseFrontmatter(_0x3caa2b);return console['log']('\x20\x20Installed\x20skill:\x20'+_0x2cc538),console['log'](_0x5cdea5(0x8b)+_0x3a0046),_0x3f9b5e[_0x5cdea5(0x87)]>0x1&&console[_0x5cdea5(0x7f)]('\x20\x20Files:\x20'+_0x3f9b5e[_0x5cdea5(0x80)](',\x20')),_0x30dc1e[_0x5cdea5(0x9f)](logLocalAgentInstallation,_0x6b7f65,{'skillDisplayName':_0x2cc538,'installLevel':level},_0x211722)[_0x5cdea5(0x88)](()=>{}),!![];}function getSourceSkillsDir(){const _0x1daf22=_0x2f4eef,_0x2fd41a={'Ftugb':function(_0x241cb3,_0x79d5cd,_0x13510a,_0x10e75d,_0x4d06d0){return _0x241cb3(_0x79d5cd,_0x13510a,_0x10e75d,_0x4d06d0);}},_0xc4b24d=[_0x2fd41a['Ftugb'](join,__dirname,'..','..',_0x1daf22(0x81)),join(__dirname,'..','..','..','skills')];for(const _0x5a018c of _0xc4b24d){if(existsSync(_0x5a018c))return _0x5a018c;}return _0xc4b24d[0x0];}function parseFrontmatter(_0x326ce7){const _0x212d68=_0x2f4eef,_0xc63c86={'UrrVZ':_0x212d68(0x99)},_0x5c5d67=_0x326ce7[_0x212d68(0x9e)](/^---\n([\s\S]+?)\n---/);if(!_0x5c5d67)throw new Error(_0xc63c86['UrrVZ']);const _0x510428=_0x5c5d67[0x1],_0x100e20=_0x510428[_0x212d68(0x9e)](/name:\s*(.+)/),_0x38ec13=_0x510428[_0x212d68(0x9e)](/description:\s*"?(.+?)"?\n/);return{'name':_0x100e20?.[0x1]['trim']()||'','description':_0x38ec13?.[0x1]['trim']()||''};}export async function removeSkill(_0x181b14,_0x35230f){const _0x1076b4=_0x2f4eef,_0x594084={'lpLSz':function(_0x24cd70,_0x5dc116){return _0x24cd70(_0x5dc116);},'azwZY':function(_0x116317,_0x19608f){return _0x116317(_0x19608f);}},_0x5693b7=_0x594084['lpLSz'](getSkillsDir,_0x35230f),_0x3c4dca=join(_0x5693b7,_0x181b14);if(!_0x594084['azwZY'](existsSync,_0x3c4dca))return![];try{return await rm(_0x3c4dca,{'recursive':!![]}),console[_0x1076b4(0x7f)]('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x181b14),!![];}catch{return console[_0x1076b4(0x9c)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x181b14),![];}}
1
+ function _0x132b(_0x26402f,_0x423fc3){_0x26402f=_0x26402f-0xcc;const _0x3bd1dc=_0x3bd1();let _0x132be3=_0x3bd1dc[_0x26402f];return _0x132be3;}const _0x215a0f=_0x132b;(function(_0x442dde,_0x123e7a){const _0x1b674b=_0x132b,_0x1c57f6=_0x442dde();while(!![]){try{const _0x43a529=-parseInt(_0x1b674b(0xda))/0x1*(parseInt(_0x1b674b(0xe4))/0x2)+-parseInt(_0x1b674b(0xdb))/0x3+-parseInt(_0x1b674b(0xd2))/0x4+parseInt(_0x1b674b(0xcf))/0x5*(parseInt(_0x1b674b(0xef))/0x6)+-parseInt(_0x1b674b(0xdc))/0x7+parseInt(_0x1b674b(0xd7))/0x8*(-parseInt(_0x1b674b(0xec))/0x9)+parseInt(_0x1b674b(0xdf))/0xa;if(_0x43a529===_0x123e7a)break;else _0x1c57f6['push'](_0x1c57f6['shift']());}catch(_0x9dd06c){_0x1c57f6['push'](_0x1c57f6['shift']());}}}(_0x3bd1,0x88522));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';function _0x3bd1(){const _0x18ee90=['27atxfME','sqYuN','skills','7170bvVwdK','XXXJk','FjsOT','e2e-test-recommender','bug-bash','SKILL.md','4445Nylvxt','warn','isDirectory','111888gOGAjn','length','UHPRP','mwgzr','match','1702120ZVsrGo','\x20\x20Removed\x20deprecated\x20skill:\x20','GtoOy','178838MGYMws','3048096DNeajX','1930425AKVrxH','filter','log','25271170okzBOq','endsWith','YxPNc','.md','KdkoB','12cWziNy','trim','ddLXT','ranger','CgIbm','utf-8','gCObb','feature-tracker'];_0x3bd1=function(){return _0x18ee90;};return _0x3bd1();}import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x215a0f(0xe7)];export const DEPRECATED_SKILLS=[_0x215a0f(0xcc),_0x215a0f(0xcd),_0x215a0f(0xeb)];export async function installSkill(_0x103d28,_0x483c3d={}){const _0x1353e3=_0x215a0f,_0x12abd2={'FjsOT':'project','KdkoB':'claude','gCObb':function(_0x3bcefb,_0x2af466,_0xfa673d){return _0x3bcefb(_0x2af466,_0xfa673d);},'GtoOy':function(_0xc8edf4,_0x1ebc55){return _0xc8edf4(_0x1ebc55);},'YuBJn':function(_0x4338b9,_0x323a63){return _0x4338b9(_0x323a63);},'xjWHU':function(_0x1bbe9a,_0x1de48a){return _0x1bbe9a(_0x1de48a);},'mwgzr':function(_0x3beea4,_0x3cd6b3,_0x59e300){return _0x3beea4(_0x3cd6b3,_0x59e300);},'CgIbm':function(_0x263d64,_0x4852a3){return _0x263d64&&_0x4852a3;},'QnWmQ':function(_0x3ec19a,_0x325d39){return _0x3ec19a(_0x325d39);},'tetrm':function(_0x1a7255,_0x85036a){return _0x1a7255(_0x85036a);},'UHPRP':function(_0x569ed5,_0x5bbd0e){return _0x569ed5(_0x5bbd0e);}},{level:level=_0x12abd2[_0x1353e3(0xf1)],cliVersion:_0x13e4c1,platform:platform=_0x12abd2[_0x1353e3(0xe3)]}=_0x483c3d,_0x214ac6=getSourceSkillsDir(),_0x23d893=_0x12abd2['gCObb'](join,_0x214ac6,_0x103d28),_0x2f6993=join(_0x214ac6,_0x103d28+_0x1353e3(0xe2)),_0x16f522=_0x12abd2[_0x1353e3(0xd9)](existsSync,_0x23d893)&&_0x12abd2['YuBJn'](statSync,_0x23d893)[_0x1353e3(0xd1)]()&&_0x12abd2['xjWHU'](existsSync,_0x12abd2[_0x1353e3(0xd5)](join,_0x23d893,'SKILL.md')),_0x812012=_0x12abd2['xjWHU'](existsSync,_0x2f6993);if(_0x12abd2[_0x1353e3(0xe8)](!_0x16f522,!_0x812012))return console[_0x1353e3(0xd0)]('\x20\x20Skill\x20not\x20found:\x20'+_0x103d28),![];const _0x56db19=platform==='opencode'?_0x12abd2['GtoOy'](getOpencodeSkillsDir,level):_0x12abd2['QnWmQ'](getSkillsDir,level),_0x4d4c9b=_0x12abd2['mwgzr'](join,_0x56db19,_0x103d28);await _0x12abd2['mwgzr'](mkdir,_0x4d4c9b,{'recursive':!![]});let _0x413b3a,_0x58faa4=[];if(_0x16f522){const _0x5d175a=await _0x12abd2['tetrm'](readdir,_0x23d893),_0x15dd35=_0x5d175a[_0x1353e3(0xdd)](_0x1b0e06=>_0x1b0e06[_0x1353e3(0xe0)]('.md'));for(const _0x529afa of _0x15dd35){const _0x2963b1=_0x12abd2[_0x1353e3(0xd5)](join,_0x23d893,_0x529afa),_0x1d7ab9=join(_0x4d4c9b,_0x529afa);await copyFile(_0x2963b1,_0x1d7ab9),_0x58faa4['push'](_0x529afa);}_0x413b3a=await readFile(_0x12abd2[_0x1353e3(0xea)](join,_0x23d893,_0x1353e3(0xce)),_0x1353e3(0xe9));}else{_0x413b3a=await _0x12abd2['gCObb'](readFile,_0x2f6993,_0x1353e3(0xe9));const _0x3a2c22=join(_0x4d4c9b,_0x1353e3(0xce));await writeFile(_0x3a2c22,_0x413b3a,_0x1353e3(0xe9)),_0x58faa4['push'](_0x1353e3(0xce));}const {name:_0x12238f}=_0x12abd2[_0x1353e3(0xd4)](parseFrontmatter,_0x413b3a);return console['log']('\x20\x20Installed\x20skill:\x20'+_0x12238f),console[_0x1353e3(0xde)]('\x20\x20Location:\x20'+_0x4d4c9b),_0x58faa4[_0x1353e3(0xd3)]>0x1&&console[_0x1353e3(0xde)]('\x20\x20Files:\x20'+_0x58faa4['join'](',\x20')),logLocalAgentInstallation(_0x103d28,{'skillDisplayName':_0x12238f,'installLevel':level},_0x13e4c1)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x4863a5=_0x215a0f,_0xf37a85={'IeeyJ':function(_0x4bb97e,_0x22953c,_0x57651f,_0x2b1ffc,_0x31e432){return _0x4bb97e(_0x22953c,_0x57651f,_0x2b1ffc,_0x31e432);},'sqYuN':_0x4863a5(0xee),'YxPNc':function(_0x81a297,_0x4ae65f){return _0x81a297(_0x4ae65f);}},_0x3bd76b=[_0xf37a85['IeeyJ'](join,__dirname,'..','..',_0xf37a85[_0x4863a5(0xed)]),join(__dirname,'..','..','..',_0xf37a85['sqYuN'])];for(const _0x17d0ad of _0x3bd76b){if(_0xf37a85[_0x4863a5(0xe1)](existsSync,_0x17d0ad))return _0x17d0ad;}return _0x3bd76b[0x0];}function parseFrontmatter(_0xf58633){const _0x199ed3=_0x215a0f,_0x41e421=_0xf58633['match'](/^---\n([\s\S]+?)\n---/);if(!_0x41e421)throw new Error('Invalid\x20skill\x20frontmatter');const _0x4b1a19=_0x41e421[0x1],_0x1c1c35=_0x4b1a19[_0x199ed3(0xd6)](/name:\s*(.+)/),_0x322c88=_0x4b1a19[_0x199ed3(0xd6)](/description:\s*"?(.+?)"?\n/);return{'name':_0x1c1c35?.[0x1][_0x199ed3(0xe5)]()||'','description':_0x322c88?.[0x1]['trim']()||''};}export async function removeSkill(_0x1affab,_0x434a7e){const _0x5f0d71=_0x215a0f,_0x4b3515={'XXXJk':function(_0x1a718c,_0x4d0b22){return _0x1a718c(_0x4d0b22);},'ddLXT':function(_0x5d28f3,_0x48c118,_0x4e023c){return _0x5d28f3(_0x48c118,_0x4e023c);}},_0x1eee95=_0x4b3515[_0x5f0d71(0xf0)](getSkillsDir,_0x434a7e),_0x5f01a4=join(_0x1eee95,_0x1affab);if(!existsSync(_0x5f01a4))return![];try{return await _0x4b3515[_0x5f0d71(0xe6)](rm,_0x5f01a4,{'recursive':!![]}),console['log'](_0x5f0d71(0xd8)+_0x1affab),!![];}catch{return console['warn']('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x1affab),![];}}
@@ -1 +1 @@
1
- const _0x1305ed=_0x53ff;(function(_0x24b891,_0xcc082b){const _0x303c67=_0x53ff,_0x1a0b07=_0x24b891();while(!![]){try{const _0x581036=parseInt(_0x303c67(0x13c))/0x1*(parseInt(_0x303c67(0x13d))/0x2)+parseInt(_0x303c67(0x116))/0x3+-parseInt(_0x303c67(0x156))/0x4*(parseInt(_0x303c67(0x122))/0x5)+parseInt(_0x303c67(0x134))/0x6+parseInt(_0x303c67(0x131))/0x7*(parseInt(_0x303c67(0x113))/0x8)+-parseInt(_0x303c67(0x12f))/0x9+-parseInt(_0x303c67(0x12c))/0xa;if(_0x581036===_0xcc082b)break;else _0x1a0b07['push'](_0x1a0b07['shift']());}catch(_0x2e466d){_0x1a0b07['push'](_0x1a0b07['shift']());}}}(_0x4b59,0x9d810));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(_0x16953f,_0x519609){const _0x1449b5=_0x53ff,_0x557f35={'kZwcN':function(_0x162e54,_0x3f3acc){return _0x162e54&_0x3f3acc;},'psugb':function(_0xecbc97,_0x29fd21){return _0xecbc97+_0x29fd21;},'aLJpH':function(_0x2eb4fb,_0x3c49fe){return _0x2eb4fb&_0x3c49fe;},'cfFXQ':function(_0x3cf459,_0x3bd932){return _0x3cf459-_0x3bd932;},'rjkBJ':function(_0xf9b82f,_0x5a70f8){return _0xf9b82f*_0x5a70f8;}};if(_0x519609>=_0x16953f['length'])return[0x0,0x0];const _0x3e4b37=_0x16953f[_0x519609];let _0x502841=0x1,_0x454d5a=0x80;while(_0x502841<=0x8&&!_0x557f35['kZwcN'](_0x3e4b37,_0x454d5a)){_0x502841++,_0x454d5a>>=0x1;}if(_0x557f35[_0x1449b5(0x115)](_0x519609,_0x502841)>_0x16953f[_0x1449b5(0x14b)])return[0x0,0x0];let _0x4971bd=_0x557f35[_0x1449b5(0x125)](_0x3e4b37,_0x557f35[_0x1449b5(0x14d)](_0x454d5a,0x1));for(let _0x2d10a1=0x1;_0x2d10a1<_0x502841;_0x2d10a1++){_0x4971bd=_0x557f35[_0x1449b5(0x115)](_0x557f35[_0x1449b5(0x137)](_0x4971bd,0x100),_0x16953f[_0x519609+_0x2d10a1]);}return[_0x4971bd,_0x502841];}function _0x53ff(_0xb9c279,_0x5255d9){_0xb9c279=_0xb9c279-0x10f;const _0x4b5988=_0x4b59();let _0x53ff64=_0x4b5988[_0xb9c279];return _0x53ff64;}function readId(_0x5de2f8,_0xf0394f){const _0x13568f=_0x53ff,_0x1e849a={'zYOXm':function(_0x3f4808,_0x33f9ae){return _0x3f4808>=_0x33f9ae;},'WXgjL':function(_0xa05a79,_0x56c80c){return _0xa05a79>=_0x56c80c;},'gnIDx':function(_0x2d8078,_0x2d884b){return _0x2d8078>_0x2d884b;},'brstr':function(_0xa5fdd,_0x527f00){return _0xa5fdd+_0x527f00;},'UpAZg':function(_0x2bb95a,_0x40c97a){return _0x2bb95a<_0x40c97a;},'AZtUI':function(_0x8abd78,_0x860756){return _0x8abd78*_0x860756;}};if(_0xf0394f>=_0x5de2f8['length'])return[0x0,0x0];const _0x1dc270=_0x5de2f8[_0xf0394f];let _0x1b6634;if(_0x1e849a['zYOXm'](_0x1dc270,0x80))_0x1b6634=0x1;else{if(_0x1dc270>=0x40)_0x1b6634=0x2;else{if(_0x1e849a['WXgjL'](_0x1dc270,0x20))_0x1b6634=0x3;else{if(_0x1dc270>=0x10)_0x1b6634=0x4;else return[_0x1dc270,0x1];}}}if(_0x1e849a[_0x13568f(0x159)](_0x1e849a[_0x13568f(0x11c)](_0xf0394f,_0x1b6634),_0x5de2f8[_0x13568f(0x14b)]))return[0x0,0x0];let _0x900f78=0x0;for(let _0x4c3e5f=0x0;_0x1e849a['UpAZg'](_0x4c3e5f,_0x1b6634);_0x4c3e5f++){_0x900f78=_0x1e849a[_0x13568f(0x11c)](_0x1e849a['AZtUI'](_0x900f78,0x100),_0x5de2f8[_0xf0394f+_0x4c3e5f]);}return[_0x900f78,_0x1b6634];}function readUint(_0x3b5e4f,_0x63d401,_0x55af18){const _0x21eedc={'WabDR':function(_0x1b6914,_0x5eb5d7){return _0x1b6914*_0x5eb5d7;},'fueVt':function(_0x5f03df,_0x3a9b58){return _0x5f03df+_0x3a9b58;}};let _0x3edfbf=0x0;for(let _0x2a934b=0x0;_0x2a934b<_0x55af18;_0x2a934b++){_0x3edfbf=_0x21eedc['WabDR'](_0x3edfbf,0x100)+_0x3b5e4f[_0x21eedc['fueVt'](_0x63d401,_0x2a934b)];}return _0x3edfbf;}function isUnknownSize(_0x27965d,_0x44887c){const _0x3a036d=_0x53ff,_0x4a6a61={'jDkRp':function(_0x3cfec9,_0x2bbcaf){return _0x3cfec9===_0x2bbcaf;}};return _0x4a6a61[_0x3a036d(0x119)](_0x27965d,Math[_0x3a036d(0x14a)](0x2,0x7*_0x44887c)-0x1);}function writeVint(_0x423158,_0x259eb7){const _0x8ce54=_0x53ff,_0x4c0b2b={'mmPHJ':function(_0x3a5dfc,_0x1b9e3f){return _0x3a5dfc<_0x1b9e3f;},'syWZA':function(_0x1f9c8e,_0x4c53c3){return _0x1f9c8e-_0x4c53c3;},'Tkhtq':function(_0x466407,_0x3faac0){return _0x466407&_0x3faac0;}};let _0x9325e9=_0x259eb7||0x1;while(_0x4c0b2b[_0x8ce54(0x114)](_0x4c0b2b['syWZA'](Math[_0x8ce54(0x14a)](0x2,0x7*_0x9325e9),0x2),_0x423158))_0x9325e9++;const _0x3c56a7=Buffer['alloc'](_0x9325e9);for(let _0x2d9627=_0x4c0b2b['syWZA'](_0x9325e9,0x1);_0x2d9627>=0x0;_0x2d9627--){_0x3c56a7[_0x2d9627]=_0x4c0b2b[_0x8ce54(0x129)](_0x423158,0xff),_0x423158=Math['floor'](_0x423158/0x100);}return _0x3c56a7[0x0]|=0x1<<_0x4c0b2b['syWZA'](0x8,_0x9325e9),_0x3c56a7;}function _0x4b59(){const _0x59f545=['jYJqV','cfFXQ','FjqBg','alloc','maxTicks','zxjgP','YWShj','prZVq','maxTimestampTicks','ktSbx','11220YwsTIE','Iuidm','tlwNz','gnIDx','hSpNb','QBNZo','cRgCT','IbVEa','floor','24MgDxTA','mmPHJ','psugb','3229995yhSGiR','bodyAfterTimestamp','clusters','jDkRp','Stitched\x20','LVnxY','brstr','BEkpa','concat','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','slice','endsWith','70pCjIEZ','xOule','bodyBeforeTimestamp','aLJpH','push','jutZT','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','Tkhtq','RcTwb','min','24599520rflNAZ','stitchWebmFiles.js','iMHJj','310140LTkHkZ','PGRlB','1182986XDLAsk','argv','kAOtT','3036048gFZPyI','indexOf','bjwQB','rjkBJ','GhdVY','DUgKl','\x20files\x20->\x20','TxJsd','155593vymJOY','14ZhOKXX','dDHXS','error','from','iWYju','oFyWA','KhhRV','fFGcc','zZGXy','log','gzpoY','BhtGJ','gqazu','pow','length'];_0x4b59=function(){return _0x59f545;};return _0x4b59();}function writeUint(_0x2aaf26,_0x3f0f40){const _0x2ccfbd=_0x53ff,_0x5c02f8={'YWShj':function(_0x3ba1ba,_0x1f4adf){return _0x3ba1ba&_0x1f4adf;},'ktSbx':function(_0x3a6cde,_0x4817c1){return _0x3a6cde/_0x4817c1;}},_0x345a8f=Buffer['alloc'](_0x3f0f40);for(let _0x45335e=_0x3f0f40-0x1;_0x45335e>=0x0;_0x45335e--){_0x345a8f[_0x45335e]=_0x5c02f8[_0x2ccfbd(0x152)](_0x2aaf26,0xff),_0x2aaf26=Math[_0x2ccfbd(0x112)](_0x5c02f8[_0x2ccfbd(0x155)](_0x2aaf26,0x100));}return _0x345a8f;}function writeUnknownSizeVint(_0x4192c2){const _0x504108=_0x53ff,_0x3bd8cf={'gEfNd':function(_0x46a22e,_0x2b4434){return _0x46a22e>>_0x2b4434;}},_0x767812=Buffer[_0x504108(0x14f)](_0x4192c2,0xff);return _0x767812[0x0]=_0x3bd8cf['gEfNd'](0xff,_0x4192c2-0x1),_0x767812;}function uintSize(_0x4e32b0){const _0x41e8de={'MOtRv':function(_0x4765a2,_0x5e7f1e){return _0x4765a2>_0x5e7f1e;},'nLbaX':function(_0x598f51,_0x1c1dd7){return _0x598f51/_0x1c1dd7;}};if(_0x4e32b0===0x0)return 0x1;let _0x4c0623=0x0,_0x20b455=_0x4e32b0;while(_0x41e8de['MOtRv'](_0x20b455,0x0)){_0x4c0623++,_0x20b455=Math['floor'](_0x41e8de['nLbaX'](_0x20b455,0x100));}return _0x4c0623;}function findTimestampScale(_0x24c771,_0x3c3ed1){const _0x43dd11=_0x53ff,_0x28779b={'BlYNg':function(_0x5eb2c0,_0x17d856){return _0x5eb2c0<_0x17d856;},'uYAFq':function(_0x40fa14,_0x52c5cf,_0x469859){return _0x40fa14(_0x52c5cf,_0x469859);},'prZVq':function(_0x4580d9,_0x35c42a){return _0x4580d9===_0x35c42a;},'KhhRV':function(_0x30d497,_0x45f932){return _0x30d497+_0x45f932;},'zZGXy':function(_0x2749d8,_0x14e601,_0x3dcf56){return _0x2749d8(_0x14e601,_0x3dcf56);},'qrEXE':function(_0x51d903,_0x3eca51,_0x26fba2,_0x4aaa8b){return _0x51d903(_0x3eca51,_0x26fba2,_0x4aaa8b);},'OrzXn':function(_0x17a473,_0x3fe186){return _0x17a473+_0x3fe186;},'oefZo':function(_0xf36898,_0x35033d){return _0xf36898===_0x35033d;},'XzxoK':function(_0x12b2f8,_0x555f9b){return _0x12b2f8+_0x555f9b;}};let _0x385515=_0x3c3ed1;const _0x158ce8=Math['min'](_0x24c771['length'],_0x3c3ed1+0x2710);while(_0x28779b['BlYNg'](_0x385515,_0x158ce8)){const [_0x3ed03a,_0x9084fc]=readId(_0x24c771,_0x385515),[_0x157d50,_0x1a9385]=_0x28779b['uYAFq'](readVint,_0x24c771,_0x385515+_0x9084fc);if(_0x28779b['prZVq'](_0x3ed03a,ID_INFO)){let _0x186814=_0x28779b['KhhRV'](_0x385515,_0x9084fc)+_0x1a9385;const _0x301fee=_0x28779b[_0x43dd11(0x143)](_0x186814,_0x157d50);while(_0x186814<_0x301fee){const [_0x3e9eb6,_0x3335b0]=readId(_0x24c771,_0x186814),[_0xf647e1,_0x5183e6]=_0x28779b[_0x43dd11(0x145)](readVint,_0x24c771,_0x28779b['KhhRV'](_0x186814,_0x3335b0));if(_0x28779b[_0x43dd11(0x153)](_0x3e9eb6,ID_TIMESTAMP_SCALE))return _0x28779b['qrEXE'](readUint,_0x24c771,_0x28779b['OrzXn'](_0x186814+_0x3335b0,_0x5183e6),_0xf647e1);_0x186814+=_0x3335b0+_0x5183e6+_0xf647e1;}break;}if(_0x28779b['oefZo'](_0x3ed03a,ID_CLUSTER))break;if(_0x28779b['zZGXy'](isUnknownSize,_0x157d50,_0x1a9385))break;_0x385515+=_0x28779b['XzxoK'](_0x9084fc+_0x1a9385,_0x157d50);}return 0xf4240;}function findFirstClusterOffset(_0x4ac6a3,_0x550b8c){const _0x2118a1=_0x53ff,_0x217aa6={'iWYju':function(_0x524761,_0x4d663e,_0x54055d){return _0x524761(_0x4d663e,_0x54055d);},'jYJqV':function(_0x1ed4c6,_0x3e145a){return _0x1ed4c6+_0x3e145a;},'AAQZg':function(_0x4a26e4,_0xdff9a6){return _0x4a26e4+_0xdff9a6;}};let _0x565d7b=_0x550b8c;while(_0x565d7b<_0x4ac6a3[_0x2118a1(0x14b)]){const [_0x119f97,_0x33a036]=_0x217aa6['iWYju'](readId,_0x4ac6a3,_0x565d7b);if(_0x119f97===ID_CLUSTER)return _0x565d7b;const [_0x19e23a,_0x53ae20]=_0x217aa6[_0x2118a1(0x141)](readVint,_0x4ac6a3,_0x217aa6[_0x2118a1(0x14c)](_0x565d7b,_0x33a036));if(isUnknownSize(_0x19e23a,_0x53ae20))return _0x565d7b;_0x565d7b+=_0x217aa6['jYJqV'](_0x217aa6['AAQZg'](_0x33a036,_0x53ae20),_0x19e23a);}return _0x4ac6a3['length'];}function findClusterEnd(_0x338266,_0x1812bf,_0x4cfd4b,_0x11238e){const _0x5998af={'tvFbB':function(_0x33c2c0,_0x27e0a2){return _0x33c2c0+_0x27e0a2;},'RJfKA':function(_0x35a75d,_0x37fdb3,_0x3d4833){return _0x35a75d(_0x37fdb3,_0x3d4833);},'SmkrD':function(_0x5c0be0,_0x376106){return _0x5c0be0+_0x376106;}};if(!isUnknownSize(_0x4cfd4b,_0x11238e))return _0x5998af['tvFbB'](_0x1812bf,_0x4cfd4b);const _0x4752d8=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x2052db=_0x1812bf;while(_0x2052db<_0x338266['length']-0x4){const [_0xdbc191,_0x1de94c]=readId(_0x338266,_0x2052db);if(_0x4752d8['has'](_0xdbc191))return _0x2052db;const [_0x587a92,_0x5bc261]=_0x5998af['RJfKA'](readVint,_0x338266,_0x2052db+_0x1de94c);if(_0x5998af['RJfKA'](isUnknownSize,_0x587a92,_0x5bc261))return _0x338266['length'];_0x2052db+=_0x5998af['SmkrD'](_0x5998af['SmkrD'](_0x1de94c,_0x5bc261),_0x587a92);}return _0x338266['length'];}function extractClusters(_0x181611,_0x35d083){const _0x1c6ac1=_0x53ff,_0x1b8332={'bjwQB':function(_0x4533f4,_0x1ea94f){return _0x4533f4===_0x1ea94f;},'jutZT':function(_0xa6313b,_0x1ecd10){return _0xa6313b!==_0x1ecd10;},'RyTYm':function(_0x51f352,_0xd32c3b,_0x2fc2eb){return _0x51f352(_0xd32c3b,_0x2fc2eb);},'TxJsd':function(_0x5a5cbc,_0xda2796){return _0x5a5cbc+_0xda2796;},'gzpoY':function(_0x39ced6,_0x586a7e){return _0x39ced6<_0x586a7e;},'xOule':function(_0x2638f6,_0x24d87c,_0x2269b3){return _0x2638f6(_0x24d87c,_0x2269b3);},'RcTwb':function(_0xd8487,_0x47ff22,_0x341fc1){return _0xd8487(_0x47ff22,_0x341fc1);},'xlUWr':function(_0xc44c96,_0x10805a){return _0xc44c96+_0x10805a;},'gBjEE':function(_0x300417,_0x20a97a){return _0x300417+_0x20a97a;},'fFGcc':function(_0x395f6d,_0xd0ee71,_0x36fabc){return _0x395f6d(_0xd0ee71,_0x36fabc);},'Iuidm':function(_0x337365,_0x531db){return _0x337365+_0x531db;},'BhtGJ':function(_0x1e6ef1,_0x325f82){return _0x1e6ef1+_0x325f82;},'tlwNz':function(_0x3f4946,_0x4870d8,_0x512982){return _0x3f4946(_0x4870d8,_0x512982);},'yMreS':function(_0x1085f5,_0x101f8f){return _0x1085f5>=_0x101f8f;},'hSpNb':function(_0x125027,_0x5f5d3c){return _0x125027+_0x5f5d3c;},'iMHJj':function(_0x4bf7c0,_0x32f2a9){return _0x4bf7c0===_0x32f2a9;},'GhdVY':function(_0x2ed576,_0x27bdcd,_0x23fa45){return _0x2ed576(_0x27bdcd,_0x23fa45);},'BEkpa':function(_0x178c7b,_0x19faf4){return _0x178c7b+_0x19faf4;},'gqazu':function(_0x1475ea,_0x36b767){return _0x1475ea+_0x36b767;}},_0x2119ca=[],_0x2a3a5e=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x201f71=0x0;while(_0x201f71<_0x181611[_0x1c6ac1(0x14b)]){const _0x4124ff=_0x181611[_0x1c6ac1(0x135)](_0x2a3a5e,_0x201f71);if(_0x1b8332['bjwQB'](_0x4124ff,-0x1))break;const [_0x41f559,_0x34f5de]=readId(_0x181611,_0x4124ff);if(_0x1b8332[_0x1c6ac1(0x127)](_0x41f559,ID_CLUSTER)){_0x201f71=_0x4124ff+0x1;continue;}const [_0x145888,_0x37761e]=_0x1b8332['RyTYm'](readVint,_0x181611,_0x1b8332[_0x1c6ac1(0x13b)](_0x4124ff,_0x34f5de)),_0x31af63=_0x4124ff+_0x34f5de+_0x37761e,_0x5ed955=findClusterEnd(_0x181611,_0x31af63,_0x145888,_0x37761e);let _0x17668d=_0x31af63,_0x175937=0x0,_0x2dfb5e=0x2,_0x12782d=![],_0x29f0f7=Buffer['alloc'](0x0),_0x4e3aea=Buffer[_0x1c6ac1(0x14f)](0x0);while(_0x1b8332[_0x1c6ac1(0x147)](_0x17668d,_0x5ed955)){const [_0x5452ac,_0x2ba347]=_0x1b8332[_0x1c6ac1(0x123)](readId,_0x181611,_0x17668d),[_0xdec44f,_0x5083fb]=_0x1b8332[_0x1c6ac1(0x12a)](readVint,_0x181611,_0x1b8332['xlUWr'](_0x17668d,_0x2ba347));if(_0x1b8332[_0x1c6ac1(0x136)](_0x5452ac,ID_TIMESTAMP)){_0x175937=readUint(_0x181611,_0x1b8332['TxJsd'](_0x1b8332['gBjEE'](_0x17668d,_0x2ba347),_0x5083fb),_0xdec44f),_0x2dfb5e=_0xdec44f,_0x12782d=!![],_0x29f0f7=_0x181611['slice'](_0x31af63,_0x17668d);const _0x18c00a=_0x1b8332[_0x1c6ac1(0x13b)](_0x17668d,_0x2ba347)+_0x5083fb+_0xdec44f;_0x4e3aea=_0x181611['slice'](_0x18c00a,_0x5ed955);break;}if(_0x1b8332[_0x1c6ac1(0x136)](_0x5452ac,ID_CLUSTER))break;if(_0x1b8332[_0x1c6ac1(0x144)](isUnknownSize,_0xdec44f,_0x5083fb))break;_0x17668d+=_0x1b8332[_0x1c6ac1(0x157)](_0x1b8332[_0x1c6ac1(0x148)](_0x2ba347,_0x5083fb),_0xdec44f);}!_0x12782d&&(_0x4e3aea=_0x181611[_0x1c6ac1(0x120)](_0x31af63,_0x5ed955));let _0x5cb6b7=_0x175937;_0x17668d=_0x31af63;while(_0x1b8332[_0x1c6ac1(0x147)](_0x17668d,_0x5ed955)){const [_0x41a315,_0x1feafe]=readId(_0x181611,_0x17668d),[_0xb933cc,_0x1dd63d]=_0x1b8332[_0x1c6ac1(0x158)](readVint,_0x181611,_0x17668d+_0x1feafe);if(_0x1b8332['bjwQB'](_0x41a315,ID_SIMPLE_BLOCK)&&_0x1b8332['yMreS'](_0xb933cc,0x4)){const _0x53338a=_0x17668d+_0x1feafe+_0x1dd63d,[,_0x2d994f]=readVint(_0x181611,_0x53338a),_0x3d6f0b=_0x181611['readInt16BE'](_0x1b8332['Iuidm'](_0x53338a,_0x2d994f)),_0x5f14fa=_0x1b8332[_0x1c6ac1(0x15a)](_0x175937,_0x3d6f0b);if(_0x5f14fa>_0x5cb6b7)_0x5cb6b7=_0x5f14fa;}if(_0x1b8332[_0x1c6ac1(0x12e)](_0x41a315,ID_CLUSTER))break;if(_0x1b8332[_0x1c6ac1(0x138)](isUnknownSize,_0xb933cc,_0x1dd63d))break;_0x17668d+=_0x1b8332[_0x1c6ac1(0x11d)](_0x1b8332[_0x1c6ac1(0x149)](_0x1feafe,_0x1dd63d),_0xb933cc);}_0x2119ca['push']({'timestamp':_0x175937,'maxTicks':_0x5cb6b7,'bodyBeforeTimestamp':_0x29f0f7,'bodyAfterTimestamp':_0x4e3aea,'timestampElementSize':_0x2dfb5e}),_0x201f71=_0x5ed955;}return _0x2119ca;}function parseWebm(_0x12ee7d){const _0x185678=_0x53ff,_0x54eaa1={'hEyuj':function(_0x3ab775,_0x245ddf,_0x5e71f8){return _0x3ab775(_0x245ddf,_0x5e71f8);},'oFyWA':function(_0x56cb14,_0x3a5c97){return _0x56cb14+_0x3a5c97;},'kAOtT':function(_0x224da2,_0x56f9e5){return _0x224da2+_0x56f9e5;},'QBNZo':function(_0x301b9c,_0x2856b0){return _0x301b9c!==_0x2856b0;},'PGRlB':function(_0x3c60c1,_0x13117b){return _0x3c60c1+_0x13117b;},'dDHXS':function(_0x5bb85f,_0x4718ad){return _0x5bb85f>_0x4718ad;}};let _0x29b2c2=0x0;const [,_0xceed38]=_0x54eaa1['hEyuj'](readId,_0x12ee7d,_0x29b2c2),[_0x35174f,_0xf2c269]=readVint(_0x12ee7d,_0x29b2c2+_0xceed38);_0x29b2c2+=_0x54eaa1['oFyWA'](_0x54eaa1[_0x185678(0x133)](_0xceed38,_0xf2c269),_0x35174f);const [_0x4561ce,_0x367258]=readId(_0x12ee7d,_0x29b2c2);if(_0x54eaa1[_0x185678(0x10f)](_0x4561ce,ID_SEGMENT))return null;const [,_0x50561d]=readVint(_0x12ee7d,_0x29b2c2+_0x367258),_0x35b729=_0x54eaa1[_0x185678(0x142)](_0x54eaa1[_0x185678(0x130)](_0x29b2c2,_0x367258),_0x50561d),_0x36ce3d=findTimestampScale(_0x12ee7d,_0x35b729),_0x14619d=findFirstClusterOffset(_0x12ee7d,_0x35b729),_0x5a98f8=_0x12ee7d['slice'](0x0,_0x14619d),_0x459f40=extractClusters(_0x12ee7d,_0x36ce3d);let _0x16ac04=0x0;for(const _0xa43e99 of _0x459f40){if(_0x54eaa1[_0x185678(0x13e)](_0xa43e99['maxTicks'],_0x16ac04))_0x16ac04=_0xa43e99[_0x185678(0x150)];}return{'header':_0x5a98f8,'clusters':_0x459f40,'timestampScale':_0x36ce3d,'maxTimestampTicks':_0x16ac04};}function buildCluster(_0x4b01fe,_0xbd4c32,_0x10ec5e){const _0x23a56b=_0x53ff,_0x4b40a6={'nRFIg':function(_0x35edfa,_0x5519b8,_0x4adf01){return _0x35edfa(_0x5519b8,_0x4adf01);},'zpSFZ':function(_0x420bb2,_0x5300c7){return _0x420bb2(_0x5300c7);}},_0x40ee0c=Buffer['from']([0x1f,0x43,0xb6,0x75]),_0x424dc9=Math['max'](0x4,uintSize(_0x4b01fe)),_0x410973=Buffer[_0x23a56b(0x11e)]([Buffer[_0x23a56b(0x140)]([ID_TIMESTAMP]),writeVint(_0x424dc9),_0x4b40a6['nRFIg'](writeUint,_0x4b01fe,_0x424dc9)]),_0x3c8d91=Buffer['concat']([_0xbd4c32,_0x410973,_0x10ec5e]),_0x7ebf14=_0x4b40a6['zpSFZ'](writeVint,_0x3c8d91['length']);return Buffer[_0x23a56b(0x11e)]([_0x40ee0c,_0x7ebf14,_0x3c8d91]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x32e487){const _0x3d4be4=_0x53ff,_0x1a740e={'cRgCT':function(_0x24c90d,_0x318b85){return _0x24c90d+_0x318b85;},'DUgKl':function(_0x44a915,_0x2e3259,_0x159139){return _0x44a915(_0x2e3259,_0x159139);},'ARdBr':function(_0x3a6f3b,_0x8299a2){return _0x3a6f3b+_0x8299a2;},'LVnxY':function(_0x4332a7,_0x41f004){return _0x4332a7+_0x41f004;},'FjqBg':function(_0x573eeb,_0x4ffa8e){return _0x573eeb<_0x4ffa8e;}},_0x35e8e5=Buffer[_0x3d4be4(0x140)](_0x32e487);let _0x563b10=0x0;const [,_0x1ddda2]=readId(_0x35e8e5,_0x563b10),[_0x1d7a97,_0x30e7d5]=readVint(_0x35e8e5,_0x563b10+_0x1ddda2),_0x4e1329=_0x1a740e['cRgCT'](_0x1a740e[_0x3d4be4(0x110)](_0x563b10+_0x1ddda2,_0x30e7d5),_0x1d7a97),[,_0x223d03]=_0x1a740e[_0x3d4be4(0x139)](readId,_0x35e8e5,_0x4e1329),[,_0x2395c2]=readVint(_0x35e8e5,_0x4e1329+_0x223d03),_0x10733c=_0x1a740e[_0x3d4be4(0x110)](_0x4e1329+_0x223d03,_0x2395c2),_0x497aa4=writeUnknownSizeVint(_0x2395c2);_0x497aa4['copy'](_0x35e8e5,_0x1a740e['ARdBr'](_0x4e1329,_0x223d03));let _0x2010ee=_0x10733c;const _0x4db180=Math[_0x3d4be4(0x12b)](_0x35e8e5[_0x3d4be4(0x14b)],_0x1a740e['LVnxY'](_0x10733c,0x2710));while(_0x2010ee<_0x4db180){const [_0x12b59d,_0x188eb9]=_0x1a740e[_0x3d4be4(0x139)](readId,_0x35e8e5,_0x2010ee),[_0x397cca,_0x1f88ea]=readVint(_0x35e8e5,_0x1a740e[_0x3d4be4(0x11b)](_0x2010ee,_0x188eb9));if(_0x12b59d===ID_CLUSTER)break;if(isUnknownSize(_0x397cca,_0x1f88ea))break;if(_0x12b59d===ID_INFO){const _0xa8f75b=_0x2010ee+_0x188eb9+_0x1f88ea,_0x4c8012=_0xa8f75b+_0x397cca,_0x23e62d=[];let _0x5eb6f5=_0xa8f75b;while(_0x1a740e[_0x3d4be4(0x14e)](_0x5eb6f5,_0x4c8012)){const [_0x2b4742,_0x27637e]=readId(_0x35e8e5,_0x5eb6f5),[_0x33bc03,_0x4e875b]=readVint(_0x35e8e5,_0x5eb6f5+_0x27637e),_0x3b0659=_0x1a740e['LVnxY'](_0x27637e,_0x4e875b)+_0x33bc03;_0x2b4742!==ID_DURATION&&_0x23e62d['push'](_0x35e8e5['slice'](_0x5eb6f5,_0x5eb6f5+_0x3b0659)),_0x5eb6f5+=_0x3b0659;}const _0x129b21=Buffer['concat'](_0x23e62d),_0x741e08=Buffer['concat']([_0x35e8e5[_0x3d4be4(0x120)](_0x2010ee,_0x2010ee+_0x188eb9),writeVint(_0x129b21[_0x3d4be4(0x14b)],_0x1f88ea)]);return Buffer[_0x3d4be4(0x11e)]([_0x35e8e5['slice'](0x0,_0x2010ee),_0x741e08,_0x129b21,_0x35e8e5['slice'](_0x4c8012)]);}_0x2010ee+=_0x1a740e[_0x3d4be4(0x110)](_0x1a740e[_0x3d4be4(0x11b)](_0x188eb9,_0x1f88ea),_0x397cca);}return _0x35e8e5;}export function stitchWebmFiles(_0x35ace4,_0x5c6df9){const _0x38f5a6=_0x53ff,_0x4fbe1e={'EZnFX':function(_0x1b0162,_0x17ccca){return _0x1b0162(_0x17ccca);},'zxjgP':function(_0x4eed58,_0x5422cb){return _0x4eed58(_0x5422cb);},'IbVEa':function(_0x57c82f,_0x4f2e8b){return _0x57c82f===_0x4f2e8b;},'EHIxD':function(_0x3e5efd,_0x152e83,_0x49000d){return _0x3e5efd(_0x152e83,_0x49000d);}};if(_0x35ace4['length']<=0x1)return![];const _0xe789da=[];for(const _0x4c73fd of _0x35ace4){const _0x459412=_0x4fbe1e['EZnFX'](readFileSync,_0x4c73fd),_0x52ca63=_0x4fbe1e[_0x38f5a6(0x151)](parseWebm,_0x459412);if(!_0x52ca63||_0x4fbe1e[_0x38f5a6(0x111)](_0x52ca63['clusters'][_0x38f5a6(0x14b)],0x0))return![];_0xe789da['push'](_0x52ca63);}const _0xf620da=_0xe789da[0x0],_0x333135=rebuildHeaderWithoutDuration(_0xf620da['header']),_0x2ab5a6=[_0x333135];let _0x10ef59=0x0;for(let _0x1ed365=0x0;_0x1ed365<_0xe789da['length'];_0x1ed365++){const _0x56caf4=_0xe789da[_0x1ed365];for(const _0x1f731e of _0x56caf4[_0x38f5a6(0x118)]){const _0x117c65=_0x1f731e['timestamp']+_0x10ef59;_0x2ab5a6[_0x38f5a6(0x126)](buildCluster(_0x117c65,_0x1f731e[_0x38f5a6(0x124)],_0x1f731e[_0x38f5a6(0x117)]));}const _0x123ecb=0x1e;_0x10ef59+=_0x56caf4[_0x38f5a6(0x154)]+_0x123ecb;}return _0x4fbe1e['EHIxD'](writeFileSync,_0x5c6df9,Buffer[_0x38f5a6(0x11e)](_0x2ab5a6)),!![];}if(process[_0x1305ed(0x132)][0x1]?.[_0x1305ed(0x121)]('stitchWebmFiles.ts')||process[_0x1305ed(0x132)][0x1]?.['endsWith'](_0x1305ed(0x12d))){const args=process['argv']['slice'](0x2);args[_0x1305ed(0x14b)]<0x3&&(console[_0x1305ed(0x13f)](_0x1305ed(0x128)),process['exit'](0x1));const output=args[args['length']-0x1],inputs=args[_0x1305ed(0x120)](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console['log'](_0x1305ed(0x11a)+inputs[_0x1305ed(0x14b)]+_0x1305ed(0x13a)+output):console[_0x1305ed(0x146)](_0x1305ed(0x11f));}
1
+ const _0x504252=_0x1444;(function(_0x3f3446,_0x454502){const _0x32105e=_0x1444,_0x8d446c=_0x3f3446();while(!![]){try{const _0x469d64=parseInt(_0x32105e(0x236))/0x1*(parseInt(_0x32105e(0x21e))/0x2)+parseInt(_0x32105e(0x1f7))/0x3+-parseInt(_0x32105e(0x1fc))/0x4+parseInt(_0x32105e(0x235))/0x5+-parseInt(_0x32105e(0x23f))/0x6*(parseInt(_0x32105e(0x22e))/0x7)+parseInt(_0x32105e(0x23b))/0x8+parseInt(_0x32105e(0x200))/0x9*(-parseInt(_0x32105e(0x233))/0xa);if(_0x469d64===_0x454502)break;else _0x8d446c['push'](_0x8d446c['shift']());}catch(_0x16b098){_0x8d446c['push'](_0x8d446c['shift']());}}}(_0x5098,0xdc60c));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 _0x5098(){const _0x309b4e=['pow','min','clusters','TuWDQ','14SOVBCP','endsWith','SktcR','vtrSo','LmRYl','6718520NSfoTm','deRjV','296100zedUzT','1hMbGxO','wOkzb','stitchWebmFiles.ts','QSPUg','yWIAh','10376960VKFwqZ','PrZMm','PRhGT','bodyBeforeTimestamp','547056VzxNuK','DSudu','QEOlh','log','maxTimestampTicks','tSrab','slice','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','2369118ZzoLBz','KEggb','error','AtzUx','PIfdU','4295948WQvenC','alloc','UPtWL','from','18Tcnmld','UNleD','tEOVN','CWFGA','header','FMDZJ','length','UfONY','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','argv','stitchWebmFiles.js','FvJkn','UtEmn','bodyAfterTimestamp','VnEqj','fArqT','push','JUYhE','VDyeS','XnaLZ','LSbok','fbdkO','DTlHl','iVGIh','cpKQI','Pfbnb','bpVJm','qteZT','xQqkg','bjHpr','2713330wRDnsx','wxBOz','nhPiH','GPIKq','ZyLOV','eUGda','dnUrl','floor','hgdOg','TLvyx','JHhIb','concat'];_0x5098=function(){return _0x309b4e;};return _0x5098();}function readVint(_0x3fc156,_0x5a527c){const _0x4e3a64=_0x1444,_0x5e2aa7={'alklq':function(_0xd1aa0c,_0x31d54d){return _0xd1aa0c>=_0x31d54d;},'eAcQc':function(_0x3ccb6c,_0x5683a5){return _0x3ccb6c&_0x5683a5;},'XUkuZ':function(_0x5058e8,_0x2aceec){return _0x5058e8<_0x2aceec;},'iVGIh':function(_0x49cf73,_0x30480c){return _0x49cf73+_0x30480c;}};if(_0x5e2aa7['alklq'](_0x5a527c,_0x3fc156['length']))return[0x0,0x0];const _0x38339b=_0x3fc156[_0x5a527c];let _0x5eea98=0x1,_0x27c27a=0x80;while(_0x5eea98<=0x8&&!_0x5e2aa7['eAcQc'](_0x38339b,_0x27c27a)){_0x5eea98++,_0x27c27a>>=0x1;}if(_0x5a527c+_0x5eea98>_0x3fc156['length'])return[0x0,0x0];let _0x2d9092=_0x5e2aa7['eAcQc'](_0x38339b,_0x27c27a-0x1);for(let _0x5f4e2f=0x1;_0x5e2aa7['XUkuZ'](_0x5f4e2f,_0x5eea98);_0x5f4e2f++){_0x2d9092=_0x5e2aa7[_0x4e3a64(0x217)](_0x2d9092*0x100,_0x3fc156[_0x5e2aa7[_0x4e3a64(0x217)](_0x5a527c,_0x5f4e2f)]);}return[_0x2d9092,_0x5eea98];}function _0x1444(_0x5ec0b8,_0x130722){_0x5ec0b8=_0x5ec0b8-0x1f4;const _0x509843=_0x5098();let _0x144472=_0x509843[_0x5ec0b8];return _0x144472;}function readId(_0x437de8,_0x5f3bf3){const _0x786976=_0x1444,_0x1387b0={'TuWDQ':function(_0x2bb062,_0x2e69e7){return _0x2bb062>=_0x2e69e7;},'IxAxL':function(_0x1727b5,_0x561339){return _0x1727b5>=_0x561339;},'JUYhE':function(_0x31496c,_0x4c0ca2){return _0x31496c+_0x4c0ca2;}};if(_0x5f3bf3>=_0x437de8['length'])return[0x0,0x0];const _0x5c8faa=_0x437de8[_0x5f3bf3];let _0x11875e;if(_0x1387b0[_0x786976(0x22d)](_0x5c8faa,0x80))_0x11875e=0x1;else{if(_0x1387b0['IxAxL'](_0x5c8faa,0x40))_0x11875e=0x2;else{if(_0x1387b0['IxAxL'](_0x5c8faa,0x20))_0x11875e=0x3;else{if(_0x1387b0[_0x786976(0x22d)](_0x5c8faa,0x10))_0x11875e=0x4;else return[_0x5c8faa,0x1];}}}if(_0x5f3bf3+_0x11875e>_0x437de8['length'])return[0x0,0x0];let _0x539fc7=0x0;for(let _0x1215e7=0x0;_0x1215e7<_0x11875e;_0x1215e7++){_0x539fc7=_0x1387b0[_0x786976(0x211)](_0x539fc7*0x100,_0x437de8[_0x5f3bf3+_0x1215e7]);}return[_0x539fc7,_0x11875e];}function readUint(_0x1cf122,_0x1983ff,_0x43d7b9){const _0x572047=_0x1444,_0x2c717d={'aNnbZ':function(_0x5c6d52,_0x59dac9){return _0x5c6d52<_0x59dac9;},'wOkzb':function(_0x409c9e,_0x1a8ef2){return _0x409c9e+_0x1a8ef2;}};let _0x559ef4=0x0;for(let _0x24e436=0x0;_0x2c717d['aNnbZ'](_0x24e436,_0x43d7b9);_0x24e436++){_0x559ef4=_0x2c717d[_0x572047(0x237)](_0x559ef4*0x100,_0x1cf122[_0x1983ff+_0x24e436]);}return _0x559ef4;}function isUnknownSize(_0x108d02,_0x423382){const _0x3fc734=_0x1444,_0x3b23ad={'cpKQI':function(_0x564158,_0x26ae85){return _0x564158===_0x26ae85;},'PRhGT':function(_0xb061bd,_0x14e6ef){return _0xb061bd-_0x14e6ef;},'voJSW':function(_0xa9213e,_0x397c73){return _0xa9213e*_0x397c73;}};return _0x3b23ad[_0x3fc734(0x218)](_0x108d02,_0x3b23ad[_0x3fc734(0x23d)](Math['pow'](0x2,_0x3b23ad['voJSW'](0x7,_0x423382)),0x1));}function writeVint(_0x2da48b,_0x34f48b){const _0x4c05cd=_0x1444,_0x15548e={'VnEqj':function(_0x303343,_0x5dc135){return _0x303343||_0x5dc135;},'bjHpr':function(_0x252114,_0x1ff995){return _0x252114*_0x1ff995;},'GPIKq':function(_0x38d003,_0x179caf){return _0x38d003-_0x179caf;},'QKLlO':function(_0x5755cb,_0x25828d){return _0x5755cb>=_0x25828d;},'DTlHl':function(_0x55dfb5,_0x52942f){return _0x55dfb5/_0x52942f;}};let _0x4cdd42=_0x15548e[_0x4c05cd(0x20e)](_0x34f48b,0x1);while(Math[_0x4c05cd(0x22a)](0x2,_0x15548e[_0x4c05cd(0x21d)](0x7,_0x4cdd42))-0x2<_0x2da48b)_0x4cdd42++;const _0x4c8ed1=Buffer[_0x4c05cd(0x1fd)](_0x4cdd42);for(let _0x483455=_0x15548e[_0x4c05cd(0x221)](_0x4cdd42,0x1);_0x15548e['QKLlO'](_0x483455,0x0);_0x483455--){_0x4c8ed1[_0x483455]=_0x2da48b&0xff,_0x2da48b=Math[_0x4c05cd(0x225)](_0x15548e[_0x4c05cd(0x216)](_0x2da48b,0x100));}return _0x4c8ed1[0x0]|=0x1<<_0x15548e[_0x4c05cd(0x221)](0x8,_0x4cdd42),_0x4c8ed1;}function writeUint(_0xec6376,_0x5e8f87){const _0x2334fe=_0x1444,_0x271c95=Buffer[_0x2334fe(0x1fd)](_0x5e8f87);for(let _0x2a1858=_0x5e8f87-0x1;_0x2a1858>=0x0;_0x2a1858--){_0x271c95[_0x2a1858]=_0xec6376&0xff,_0xec6376=Math['floor'](_0xec6376/0x100);}return _0x271c95;}function writeUnknownSizeVint(_0x415d02){const _0x4032a2={'QUwIo':function(_0x4affe4,_0x3f9d57){return _0x4affe4>>_0x3f9d57;}},_0x41273d=Buffer['alloc'](_0x415d02,0xff);return _0x41273d[0x0]=_0x4032a2['QUwIo'](0xff,_0x415d02-0x1),_0x41273d;}function uintSize(_0x22022d){const _0x13239b=_0x1444,_0x43a24d={'eUGda':function(_0x2d2b49,_0x548ed5){return _0x2d2b49/_0x548ed5;}};if(_0x22022d===0x0)return 0x1;let _0x26f4cd=0x0,_0x3af74a=_0x22022d;while(_0x3af74a>0x0){_0x26f4cd++,_0x3af74a=Math['floor'](_0x43a24d[_0x13239b(0x223)](_0x3af74a,0x100));}return _0x26f4cd;}function findTimestampScale(_0x89f25d,_0x53fd60){const _0x49f94b=_0x1444,_0x43edc5={'wxBOz':function(_0x3257fb,_0x20c1f8){return _0x3257fb+_0x20c1f8;},'GDKwL':function(_0x1c2ed9,_0xe30b26){return _0x1c2ed9<_0xe30b26;},'DSudu':function(_0x2050e8,_0x266da7,_0x1e36c4){return _0x2050e8(_0x266da7,_0x1e36c4);},'OXLIr':function(_0x581ad2,_0x48ee95){return _0x581ad2+_0x48ee95;},'XIeFU':function(_0x116009,_0x6dd73a,_0x28e11f){return _0x116009(_0x6dd73a,_0x28e11f);},'qteZT':function(_0x1ea861,_0x161762,_0x11f6bb){return _0x1ea861(_0x161762,_0x11f6bb);},'nhPiH':function(_0x548949,_0x2c999b){return _0x548949+_0x2c999b;},'TLvyx':function(_0x4cc402,_0x2b7d23){return _0x4cc402===_0x2b7d23;},'tSrab':function(_0x41b1a4,_0x57b833,_0x3eb6be,_0x368670){return _0x41b1a4(_0x57b833,_0x3eb6be,_0x368670);},'EEiQB':function(_0x297788,_0x2b393e){return _0x297788===_0x2b393e;}};let _0x3319a8=_0x53fd60;const _0x45e264=Math['min'](_0x89f25d[_0x49f94b(0x206)],_0x43edc5[_0x49f94b(0x21f)](_0x53fd60,0x2710));while(_0x43edc5['GDKwL'](_0x3319a8,_0x45e264)){const [_0x575307,_0x31346d]=_0x43edc5[_0x49f94b(0x240)](readId,_0x89f25d,_0x3319a8),[_0x1f2729,_0x25ba60]=readVint(_0x89f25d,_0x43edc5['wxBOz'](_0x3319a8,_0x31346d));if(_0x575307===ID_INFO){let _0x23e491=_0x3319a8+_0x31346d+_0x25ba60;const _0x49aaf1=_0x43edc5['OXLIr'](_0x23e491,_0x1f2729);while(_0x23e491<_0x49aaf1){const [_0x3eb946,_0x2ad298]=_0x43edc5['XIeFU'](readId,_0x89f25d,_0x23e491),[_0x277dd6,_0x135653]=_0x43edc5[_0x49f94b(0x21b)](readVint,_0x89f25d,_0x43edc5['nhPiH'](_0x23e491,_0x2ad298));if(_0x43edc5[_0x49f94b(0x227)](_0x3eb946,ID_TIMESTAMP_SCALE))return _0x43edc5[_0x49f94b(0x1f4)](readUint,_0x89f25d,_0x43edc5[_0x49f94b(0x220)](_0x23e491+_0x2ad298,_0x135653),_0x277dd6);_0x23e491+=_0x43edc5['wxBOz'](_0x2ad298,_0x135653)+_0x277dd6;}break;}if(_0x43edc5['EEiQB'](_0x575307,ID_CLUSTER))break;if(_0x43edc5[_0x49f94b(0x21b)](isUnknownSize,_0x1f2729,_0x25ba60))break;_0x3319a8+=_0x43edc5['OXLIr'](_0x31346d,_0x25ba60)+_0x1f2729;}return 0xf4240;}function findFirstClusterOffset(_0x165608,_0x599889){const _0x29fc85=_0x1444,_0x27046a={'QEOlh':function(_0x2443ce,_0x1f6e07){return _0x2443ce===_0x1f6e07;},'SktcR':function(_0x235513,_0x47d60a,_0x57c0dc){return _0x235513(_0x47d60a,_0x57c0dc);},'Ncryu':function(_0x3e1333,_0x21a42a){return _0x3e1333+_0x21a42a;},'bcHJa':function(_0x2e6758,_0x3522e6){return _0x2e6758+_0x3522e6;}};let _0x417e3b=_0x599889;while(_0x417e3b<_0x165608['length']){const [_0x4b62d5,_0x2e5d1d]=readId(_0x165608,_0x417e3b);if(_0x27046a[_0x29fc85(0x241)](_0x4b62d5,ID_CLUSTER))return _0x417e3b;const [_0x389bd5,_0x277093]=_0x27046a[_0x29fc85(0x230)](readVint,_0x165608,_0x27046a['Ncryu'](_0x417e3b,_0x2e5d1d));if(_0x27046a[_0x29fc85(0x230)](isUnknownSize,_0x389bd5,_0x277093))return _0x417e3b;_0x417e3b+=_0x27046a['bcHJa'](_0x2e5d1d,_0x277093)+_0x389bd5;}return _0x165608[_0x29fc85(0x206)];}function findClusterEnd(_0x1ff479,_0x3d25ed,_0x3531be,_0x58de0c){const _0xbc481a=_0x1444,_0x304bb2={'VDyeS':function(_0x4bdd2d,_0x32f73e,_0x198716){return _0x4bdd2d(_0x32f73e,_0x198716);},'FvJkn':function(_0x3cf0ee,_0x5e0741){return _0x3cf0ee+_0x5e0741;}};if(!_0x304bb2[_0xbc481a(0x212)](isUnknownSize,_0x3531be,_0x58de0c))return _0x3d25ed+_0x3531be;const _0x3b73d3=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x52903f=_0x3d25ed;while(_0x52903f<_0x1ff479[_0xbc481a(0x206)]-0x4){const [_0x4d8933,_0x12f641]=_0x304bb2['VDyeS'](readId,_0x1ff479,_0x52903f);if(_0x3b73d3['has'](_0x4d8933))return _0x52903f;const [_0x269c7f,_0x222035]=_0x304bb2['VDyeS'](readVint,_0x1ff479,_0x52903f+_0x12f641);if(isUnknownSize(_0x269c7f,_0x222035))return _0x1ff479[_0xbc481a(0x206)];_0x52903f+=_0x304bb2[_0xbc481a(0x20b)](_0x12f641+_0x222035,_0x269c7f);}return _0x1ff479['length'];}function extractClusters(_0x2bf94f,_0x14408e){const _0x53ead3=_0x1444,_0x555461={'jawQd':function(_0x138c16,_0x5dc026){return _0x138c16===_0x5dc026;},'UPtWL':function(_0x3a9ec2,_0x39af77,_0x1fd785){return _0x3a9ec2(_0x39af77,_0x1fd785);},'PIfdU':function(_0x4bf5ee,_0x55cbc4){return _0x4bf5ee+_0x55cbc4;},'tEOVN':function(_0x56e94b,_0x291918){return _0x56e94b+_0x291918;},'LmRYl':function(_0x106434,_0x3f7bf3,_0x597c5e,_0x3f49b3,_0x5f3481){return _0x106434(_0x3f7bf3,_0x597c5e,_0x3f49b3,_0x5f3481);},'yWIAh':function(_0x4b919d,_0x38a84f,_0x21ce59){return _0x4b919d(_0x38a84f,_0x21ce59);},'yHgwF':function(_0x243b16,_0x1349a0){return _0x243b16+_0x1349a0;},'xQqkg':function(_0x4fd5cf,_0x53bc0f){return _0x4fd5cf+_0x53bc0f;},'CeIgV':function(_0x4c1052,_0x46e139){return _0x4c1052===_0x46e139;},'deRjV':function(_0x26095d,_0x5ce27c){return _0x26095d<_0x5ce27c;},'wfcpn':function(_0x5c3a6d,_0x25a407){return _0x5c3a6d+_0x25a407;},'mRKcN':function(_0x58992a,_0x262c14){return _0x58992a>=_0x262c14;},'CWFGA':function(_0x587892,_0x494f08){return _0x587892+_0x494f08;},'LSbok':function(_0x3f4f61,_0x3c0ca0){return _0x3f4f61===_0x3c0ca0;}},_0x2f0879=[],_0xa3f635=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x302691=0x0;while(_0x302691<_0x2bf94f[_0x53ead3(0x206)]){const _0x1a4677=_0x2bf94f['indexOf'](_0xa3f635,_0x302691);if(_0x555461['jawQd'](_0x1a4677,-0x1))break;const [_0x580283,_0x3421a6]=_0x555461[_0x53ead3(0x1fe)](readId,_0x2bf94f,_0x1a4677);if(_0x580283!==ID_CLUSTER){_0x302691=_0x1a4677+0x1;continue;}const [_0x4bece7,_0x3a6e2b]=_0x555461['UPtWL'](readVint,_0x2bf94f,_0x555461['PIfdU'](_0x1a4677,_0x3421a6)),_0xcc98b2=_0x555461[_0x53ead3(0x202)](_0x1a4677+_0x3421a6,_0x3a6e2b),_0x54f55a=_0x555461[_0x53ead3(0x232)](findClusterEnd,_0x2bf94f,_0xcc98b2,_0x4bece7,_0x3a6e2b);let _0x21e16d=_0xcc98b2,_0x3c7677=0x0,_0x4829c7=0x2,_0x3eed36=![],_0x5b144a=Buffer[_0x53ead3(0x1fd)](0x0),_0x345d5b=Buffer[_0x53ead3(0x1fd)](0x0);while(_0x21e16d<_0x54f55a){const [_0x20b834,_0x5b4608]=_0x555461[_0x53ead3(0x1fe)](readId,_0x2bf94f,_0x21e16d),[_0x69e23,_0x2199c3]=_0x555461[_0x53ead3(0x23a)](readVint,_0x2bf94f,_0x21e16d+_0x5b4608);if(_0x20b834===ID_TIMESTAMP){_0x3c7677=readUint(_0x2bf94f,_0x555461[_0x53ead3(0x1fb)](_0x21e16d+_0x5b4608,_0x2199c3),_0x69e23),_0x4829c7=_0x69e23,_0x3eed36=!![],_0x5b144a=_0x2bf94f['slice'](_0xcc98b2,_0x21e16d);const _0x37a83b=_0x555461['yHgwF'](_0x555461[_0x53ead3(0x21c)](_0x21e16d+_0x5b4608,_0x2199c3),_0x69e23);_0x345d5b=_0x2bf94f['slice'](_0x37a83b,_0x54f55a);break;}if(_0x555461['CeIgV'](_0x20b834,ID_CLUSTER))break;if(isUnknownSize(_0x69e23,_0x2199c3))break;_0x21e16d+=_0x5b4608+_0x2199c3+_0x69e23;}!_0x3eed36&&(_0x345d5b=_0x2bf94f['slice'](_0xcc98b2,_0x54f55a));let _0x3d6fa9=_0x3c7677;_0x21e16d=_0xcc98b2;while(_0x555461[_0x53ead3(0x234)](_0x21e16d,_0x54f55a)){const [_0x5152c8,_0xcc7109]=readId(_0x2bf94f,_0x21e16d),[_0x388522,_0x59f0b0]=readVint(_0x2bf94f,_0x555461['wfcpn'](_0x21e16d,_0xcc7109));if(_0x5152c8===ID_SIMPLE_BLOCK&&_0x555461['mRKcN'](_0x388522,0x4)){const _0x14c3fd=_0x555461[_0x53ead3(0x203)](_0x21e16d,_0xcc7109)+_0x59f0b0,[,_0x246014]=readVint(_0x2bf94f,_0x14c3fd),_0x262eaf=_0x2bf94f['readInt16BE'](_0x14c3fd+_0x246014),_0xc65345=_0x3c7677+_0x262eaf;if(_0xc65345>_0x3d6fa9)_0x3d6fa9=_0xc65345;}if(_0x555461[_0x53ead3(0x214)](_0x5152c8,ID_CLUSTER))break;if(isUnknownSize(_0x388522,_0x59f0b0))break;_0x21e16d+=_0xcc7109+_0x59f0b0+_0x388522;}_0x2f0879['push']({'timestamp':_0x3c7677,'maxTicks':_0x3d6fa9,'bodyBeforeTimestamp':_0x5b144a,'bodyAfterTimestamp':_0x345d5b,'timestampElementSize':_0x4829c7}),_0x302691=_0x54f55a;}return _0x2f0879;}function parseWebm(_0x36f02d){const _0x3a2432=_0x1444,_0x2cd9d9={'bpVJm':function(_0x575f13,_0x5538ef,_0x2b4039){return _0x575f13(_0x5538ef,_0x2b4039);},'XnaLZ':function(_0x47f163,_0x34186b){return _0x47f163!==_0x34186b;},'AtzUx':function(_0x49473c,_0x22824f){return _0x49473c+_0x22824f;},'drePg':function(_0x60bdc0,_0x17b4bc,_0x1029ce){return _0x60bdc0(_0x17b4bc,_0x1029ce);},'Pfbnb':function(_0xed7583,_0x3686e9){return _0xed7583>_0x3686e9;}};let _0x2fccbc=0x0;const [,_0x262d8f]=readId(_0x36f02d,_0x2fccbc),[_0x21f2eb,_0x2c41e3]=_0x2cd9d9['bpVJm'](readVint,_0x36f02d,_0x2fccbc+_0x262d8f);_0x2fccbc+=_0x262d8f+_0x2c41e3+_0x21f2eb;const [_0x584edd,_0x11a634]=readId(_0x36f02d,_0x2fccbc);if(_0x2cd9d9[_0x3a2432(0x213)](_0x584edd,ID_SEGMENT))return null;const [,_0x3c1cc2]=_0x2cd9d9[_0x3a2432(0x21a)](readVint,_0x36f02d,_0x2cd9d9[_0x3a2432(0x1fa)](_0x2fccbc,_0x11a634)),_0x270705=_0x2cd9d9[_0x3a2432(0x1fa)](_0x2fccbc+_0x11a634,_0x3c1cc2),_0x550027=findTimestampScale(_0x36f02d,_0x270705),_0x4931a3=_0x2cd9d9['drePg'](findFirstClusterOffset,_0x36f02d,_0x270705),_0x5caf93=_0x36f02d['slice'](0x0,_0x4931a3),_0x307fe1=extractClusters(_0x36f02d,_0x550027);let _0x315dce=0x0;for(const _0x3e1951 of _0x307fe1){if(_0x2cd9d9[_0x3a2432(0x219)](_0x3e1951['maxTicks'],_0x315dce))_0x315dce=_0x3e1951['maxTicks'];}return{'header':_0x5caf93,'clusters':_0x307fe1,'timestampScale':_0x550027,'maxTimestampTicks':_0x315dce};}function buildCluster(_0x3f23f7,_0x4ea04c,_0x30e9dd){const _0x21d72c=_0x1444,_0x4d41b2={'fbdkO':function(_0x2fdab5,_0x34f62a,_0x4a21e2){return _0x2fdab5(_0x34f62a,_0x4a21e2);},'FMDZJ':function(_0x22533d,_0x10cd2f){return _0x22533d(_0x10cd2f);}},_0x83bd75=Buffer[_0x21d72c(0x1ff)]([0x1f,0x43,0xb6,0x75]),_0x50b908=Math['max'](0x4,uintSize(_0x3f23f7)),_0x88c00d=Buffer[_0x21d72c(0x229)]([Buffer['from']([ID_TIMESTAMP]),writeVint(_0x50b908),_0x4d41b2[_0x21d72c(0x215)](writeUint,_0x3f23f7,_0x50b908)]),_0x7a5b30=Buffer['concat']([_0x4ea04c,_0x88c00d,_0x30e9dd]),_0x17669a=_0x4d41b2[_0x21d72c(0x205)](writeVint,_0x7a5b30['length']);return Buffer['concat']([_0x83bd75,_0x17669a,_0x7a5b30]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x2ab91a){const _0x3876a5=_0x1444,_0x363c8b={'fArqT':function(_0x50b921,_0x73550e){return _0x50b921+_0x73550e;},'PdWLA':function(_0x328822,_0x2bdd1f){return _0x328822+_0x2bdd1f;},'hbDnV':function(_0x1830d7,_0x38d135){return _0x1830d7+_0x38d135;},'UfONY':function(_0x8dc18b,_0x5cb6d9,_0x460249){return _0x8dc18b(_0x5cb6d9,_0x460249);},'KEggb':function(_0x5b40b2,_0x3393ee){return _0x5b40b2(_0x3393ee);},'UtEmn':function(_0x13db08,_0x222400){return _0x13db08+_0x222400;},'UNleD':function(_0x133f75,_0x1191c2){return _0x133f75===_0x1191c2;},'vtrSo':function(_0x3b11f9,_0x1c9aae){return _0x3b11f9+_0x1c9aae;},'hgdOg':function(_0x346007,_0x1d6dcd){return _0x346007+_0x1d6dcd;},'AkvEO':function(_0x33a1cf,_0x5c2449){return _0x33a1cf<_0x5c2449;},'ZyLOV':function(_0x4ce141,_0x47c71e,_0xe5a5a2){return _0x4ce141(_0x47c71e,_0xe5a5a2);},'PrZMm':function(_0x29d130,_0x30b0b5){return _0x29d130!==_0x30b0b5;},'fwzKz':function(_0xa03005,_0x2293a6){return _0xa03005+_0x2293a6;}},_0x153218=Buffer[_0x3876a5(0x1ff)](_0x2ab91a);let _0x504550=0x0;const [,_0x5b9749]=readId(_0x153218,_0x504550),[_0x54b7ce,_0x29f7bf]=readVint(_0x153218,_0x363c8b[_0x3876a5(0x20f)](_0x504550,_0x5b9749)),_0x5d4b06=_0x363c8b['PdWLA'](_0x363c8b['hbDnV'](_0x504550+_0x5b9749,_0x29f7bf),_0x54b7ce),[,_0x371597]=_0x363c8b['UfONY'](readId,_0x153218,_0x5d4b06),[,_0x2d1180]=readVint(_0x153218,_0x363c8b['fArqT'](_0x5d4b06,_0x371597)),_0x404093=_0x5d4b06+_0x371597+_0x2d1180,_0x513241=_0x363c8b[_0x3876a5(0x1f8)](writeUnknownSizeVint,_0x2d1180);_0x513241['copy'](_0x153218,_0x363c8b['PdWLA'](_0x5d4b06,_0x371597));let _0x228a35=_0x404093;const _0x1d8968=Math[_0x3876a5(0x22b)](_0x153218[_0x3876a5(0x206)],_0x404093+0x2710);while(_0x228a35<_0x1d8968){const [_0x14ca2c,_0x23d4be]=readId(_0x153218,_0x228a35),[_0x578661,_0x4c53f3]=readVint(_0x153218,_0x363c8b[_0x3876a5(0x20c)](_0x228a35,_0x23d4be));if(_0x14ca2c===ID_CLUSTER)break;if(_0x363c8b[_0x3876a5(0x207)](isUnknownSize,_0x578661,_0x4c53f3))break;if(_0x363c8b[_0x3876a5(0x201)](_0x14ca2c,ID_INFO)){const _0x18f4d1=_0x363c8b[_0x3876a5(0x231)](_0x363c8b[_0x3876a5(0x226)](_0x228a35,_0x23d4be),_0x4c53f3),_0x4e1522=_0x18f4d1+_0x578661,_0x2737d5=[];let _0x438fec=_0x18f4d1;while(_0x363c8b['AkvEO'](_0x438fec,_0x4e1522)){const [_0x2d5e0f,_0x51a256]=readId(_0x153218,_0x438fec),[_0x32a07f,_0x2e8e22]=_0x363c8b['ZyLOV'](readVint,_0x153218,_0x363c8b['PdWLA'](_0x438fec,_0x51a256)),_0x261e1f=_0x51a256+_0x2e8e22+_0x32a07f;_0x363c8b[_0x3876a5(0x23c)](_0x2d5e0f,ID_DURATION)&&_0x2737d5[_0x3876a5(0x210)](_0x153218[_0x3876a5(0x1f5)](_0x438fec,_0x363c8b['fArqT'](_0x438fec,_0x261e1f))),_0x438fec+=_0x261e1f;}const _0xadcc0c=Buffer[_0x3876a5(0x229)](_0x2737d5),_0x366f5d=Buffer[_0x3876a5(0x229)]([_0x153218['slice'](_0x228a35,_0x228a35+_0x23d4be),_0x363c8b[_0x3876a5(0x222)](writeVint,_0xadcc0c['length'],_0x4c53f3)]);return Buffer[_0x3876a5(0x229)]([_0x153218[_0x3876a5(0x1f5)](0x0,_0x228a35),_0x366f5d,_0xadcc0c,_0x153218[_0x3876a5(0x1f5)](_0x4e1522)]);}_0x228a35+=_0x363c8b['fwzKz'](_0x23d4be+_0x4c53f3,_0x578661);}return _0x153218;}export function stitchWebmFiles(_0x3326f7,_0x254291){const _0x5bf46f=_0x1444,_0x145ce3={'QSPUg':function(_0xf8bb71,_0x329533){return _0xf8bb71(_0x329533);},'dnUrl':function(_0x1c689b,_0x441fa4){return _0x1c689b===_0x441fa4;},'wHkgQ':function(_0x4e8bbf,_0x4bca89){return _0x4e8bbf+_0x4bca89;},'JHhIb':function(_0x2f6102,_0xfb186e,_0x27f3b3){return _0x2f6102(_0xfb186e,_0x27f3b3);}};if(_0x3326f7[_0x5bf46f(0x206)]<=0x1)return![];const _0x228b24=[];for(const _0x32728e of _0x3326f7){const _0x5de80a=_0x145ce3['QSPUg'](readFileSync,_0x32728e),_0x1d61f4=_0x145ce3['QSPUg'](parseWebm,_0x5de80a);if(!_0x1d61f4||_0x145ce3[_0x5bf46f(0x224)](_0x1d61f4[_0x5bf46f(0x22c)][_0x5bf46f(0x206)],0x0))return![];_0x228b24[_0x5bf46f(0x210)](_0x1d61f4);}const _0x1f2b50=_0x228b24[0x0],_0x34ea63=_0x145ce3[_0x5bf46f(0x239)](rebuildHeaderWithoutDuration,_0x1f2b50[_0x5bf46f(0x204)]),_0x3017ec=[_0x34ea63];let _0x3a8d17=0x0;for(let _0xead7f8=0x0;_0xead7f8<_0x228b24['length'];_0xead7f8++){const _0x2361b8=_0x228b24[_0xead7f8];for(const _0x4df80f of _0x2361b8[_0x5bf46f(0x22c)]){const _0xbac1ff=_0x145ce3['wHkgQ'](_0x4df80f['timestamp'],_0x3a8d17);_0x3017ec['push'](buildCluster(_0xbac1ff,_0x4df80f[_0x5bf46f(0x23e)],_0x4df80f[_0x5bf46f(0x20d)]));}const _0x29ab9f=0x1e;_0x3a8d17+=_0x2361b8[_0x5bf46f(0x243)]+_0x29ab9f;}return _0x145ce3[_0x5bf46f(0x228)](writeFileSync,_0x254291,Buffer['concat'](_0x3017ec)),!![];}if(process[_0x504252(0x209)][0x1]?.['endsWith'](_0x504252(0x238))||process[_0x504252(0x209)][0x1]?.[_0x504252(0x22f)](_0x504252(0x20a))){const args=process[_0x504252(0x209)][_0x504252(0x1f5)](0x2);args[_0x504252(0x206)]<0x3&&(console[_0x504252(0x1f9)](_0x504252(0x1f6)),process['exit'](0x1));const output=args[args[_0x504252(0x206)]-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console['log']('Stitched\x20'+inputs['length']+'\x20files\x20->\x20'+output):console[_0x504252(0x242)](_0x504252(0x208));}