@ranger-testing/ranger-cli 2.2.2 → 2.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/featureReportGenerator.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/git.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/reportGenerator.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyInBrowser.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x21f27e,_0x59d7c9){const _0x2a0490=_0x1e7b,_0x36d747=_0x21f27e();while(!![]){try{const _0x4883a5=-parseInt(_0x2a0490(0x13b))/0x1+-parseInt(_0x2a0490(0x13c))/0x2*(parseInt(_0x2a0490(0x136))/0x3)+-parseInt(_0x2a0490(0x137))/0x4*(-parseInt(_0x2a0490(0x132))/0x5)+parseInt(_0x2a0490(0x135))/0x6+-parseInt(_0x2a0490(0x140))/0x7*(-parseInt(_0x2a0490(0x133))/0x8)+parseInt(_0x2a0490(0x141))/0x9*(-parseInt(_0x2a0490(0x13e))/0xa)+-parseInt(_0x2a0490(0x13d))/0xb;if(_0x4883a5===_0x59d7c9)break;else _0x36d747['push'](_0x36d747['shift']());}catch(_0x197b2c){_0x36d747['push'](_0x36d747['shift']());}}}(_0x3610,0x43f24));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x3dad61,_0x1dec8f){const _0x181449=_0x1e7b,_0x4889f1={'KYtHe':function(_0x2ab269,_0x4c7bc1){return _0x2ab269<=_0x4c7bc1;},'rBhEy':function(_0x2fe75a,_0x3152ba){return _0x2fe75a<_0x3152ba;},'Mbedz':function(_0x25a087,_0x15af73){return _0x25a087+_0x15af73;}},_0x1c45e4=_0x1dec8f?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x4190c9=_0x1dec8f?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x4a7355;for(let _0x506de9=0x0;_0x4889f1[_0x181449(0x13a)](_0x506de9,_0x1c45e4);_0x506de9++){try{return await _0x3dad61();}catch(_0x4d8ba6){_0x4a7355=_0x4d8ba6 instanceof Error?_0x4d8ba6:new Error(String(_0x4d8ba6));if(_0x4889f1['rBhEy'](_0x506de9,_0x1c45e4)){const _0x14719a=_0x4190c9*Math[_0x181449(0x139)](0x2,_0x506de9);_0x1dec8f?.['label']&&console['error'](_0x1dec8f[_0x181449(0x138)]+'\x20failed\x20(attempt\x20'+(_0x506de9+0x1)+'/'+_0x4889f1[_0x181449(0x134)](_0x1c45e4,0x1)+_0x181449(0x13f)+_0x14719a+'ms...'),await new Promise(_0x5bbc55=>setTimeout(_0x5bbc55,_0x14719a));}}}throw _0x4a7355;}function _0x1e7b(_0x5e1fca,_0x37d6f7){_0x5e1fca=_0x5e1fca-0x132;const _0x3610f7=_0x3610();let _0x1e7bd6=_0x3610f7[_0x5e1fca];return _0x1e7bd6;}function _0x3610(){const _0x25f193=['750972LCtQeK','label','pow','KYtHe','61034UJACpd','23080VSWDwg','1821754SDIAlU','2756370VFOatT','),\x20retrying\x20in\x20','7KwvrNE','9cpLBLA','10pDVFAD','3266584ewCllr','Mbedz','1296264LVfvKP','57tCkUtQ'];_0x3610=function(){return _0x25f193;};return _0x3610();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5b0641=_0x51db;(function(_0x24560c,_0x3e7691){const _0x5a565c=_0x51db,_0x14fe3e=_0x24560c();while(!![]){try{const _0x5b12b9=parseInt(_0x5a565c(0x19e))/0x1+parseInt(_0x5a565c(0x1a3))/0x2*(parseInt(_0x5a565c(0x1a9))/0x3)+-parseInt(_0x5a565c(0x19a))/0x4+-parseInt(_0x5a565c(0x194))/0x5*(-parseInt(_0x5a565c(0x1a2))/0x6)+-parseInt(_0x5a565c(0x1b3))/0x7*(-parseInt(_0x5a565c(0x1bc))/0x8)+-parseInt(_0x5a565c(0x1b5))/0x9+-parseInt(_0x5a565c(0x1a4))/0xa;if(_0x5b12b9===_0x3e7691)break;else _0x14fe3e['push'](_0x14fe3e['shift']());}catch(_0x316fa3){_0x14fe3e['push'](_0x14fe3e['shift']());}}}(_0x3730,0xb9919));import*as _0x5f1e73 from'fs';import*as _0x12860f from'path';import*as _0x582e1e from'os';import{execSync}from'child_process';const CACHE_FILE=_0x12860f[_0x5b0641(0x1a0)](_0x582e1e['homedir'](),_0x5b0641(0x1b9),_0x5b0641(0x1bd));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x556200=_0x5b0641,_0x28eb4a={'Vowjx':_0x556200(0x195)};try{if(_0x5f1e73[_0x556200(0x191)](CACHE_FILE)){const _0x2a02b1=JSON['parse'](_0x5f1e73['readFileSync'](CACHE_FILE,_0x28eb4a[_0x556200(0x1b6)]));return{'version':0x3,'sessions':_0x2a02b1['sessions']||{},'branches':_0x2a02b1['branches']||{},'lastEnabledSessionClearedAt':_0x2a02b1[_0x556200(0x1ab)]};}}catch{}return createEmptyCache();}function _0x51db(_0x13c20a,_0x4e47b2){_0x13c20a=_0x13c20a-0x18b;const _0x3730f2=_0x3730();let _0x51dbb2=_0x3730f2[_0x13c20a];return _0x51dbb2;}function saveCache(_0x581bf2){const _0x850b2d=_0x5b0641;try{const _0x35f25a=_0x12860f[_0x850b2d(0x1ac)](CACHE_FILE);!_0x5f1e73[_0x850b2d(0x191)](_0x35f25a)&&_0x5f1e73['mkdirSync'](_0x35f25a,{'recursive':!![]}),_0x5f1e73[_0x850b2d(0x1b8)](CACHE_FILE,JSON['stringify'](_0x581bf2,null,0x2));}catch{}}export function getCurrentBranch(){const _0x3eb293=_0x5b0641,_0x7130e2={'cZmgZ':'pipe','BuBBq':'HEAD'};try{const _0x358a3d=execSync('git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':_0x3eb293(0x195),'stdio':['pipe',_0x7130e2['cZmgZ'],_0x3eb293(0x18f)]})['trim']();if(!_0x358a3d||_0x358a3d===_0x7130e2[_0x3eb293(0x199)])return null;return _0x358a3d;}catch{return null;}}export function enableBranch(_0x4a8cda){const _0x5012c8=_0x5b0641,_0x4eb44c={'mQHoB':function(_0x2cb8a1){return _0x2cb8a1();},'hoqlI':function(_0x1281d1,_0x5bd31c){return _0x1281d1(_0x5bd31c);}},_0x58e237=_0x4eb44c['mQHoB'](loadCache);_0x58e237[_0x5012c8(0x193)][_0x4a8cda]=!![],_0x4eb44c['hoqlI'](saveCache,_0x58e237);}export function disableBranch(_0x47068e){const _0x5ce7d9=_0x5b0641,_0x84c2c1={'MOgmF':function(_0x5e4e9c){return _0x5e4e9c();},'VLIiN':function(_0x4c8f39,_0xa769ce){return _0x4c8f39(_0xa769ce);}},_0x317f27=_0x84c2c1[_0x5ce7d9(0x1aa)](loadCache);delete _0x317f27[_0x5ce7d9(0x193)][_0x47068e],_0x84c2c1['VLIiN'](saveCache,_0x317f27);}export function isBranchEnabled(_0x22237a){const _0x34af52=loadCache();return _0x34af52['branches'][_0x22237a]===!![];}function getOrCreateSession(_0x375f7e,_0x3b17f6){const _0x2a79eb=_0x5b0641;return!_0x375f7e['sessions'][_0x3b17f6]&&(_0x375f7e[_0x2a79eb(0x1a6)][_0x3b17f6]={}),_0x375f7e[_0x2a79eb(0x1a6)][_0x3b17f6];}export function enableSession(_0x4a8872){const _0x21ccee=_0x5b0641,_0x34e88d={'ALlqN':function(_0x1d2630){return _0x1d2630();},'ErSXD':function(_0x4b29ba,_0x2bcbee,_0x44b2ca){return _0x4b29ba(_0x2bcbee,_0x44b2ca);},'WPcMm':function(_0x338be1){return _0x338be1();},'qREfm':function(_0x1bf000,_0x312beb){return _0x1bf000!==_0x312beb;},'qJnCB':_0x21ccee(0x198)},_0x3f5726=_0x34e88d[_0x21ccee(0x196)](loadCache),_0x2bc08f=_0x34e88d['ErSXD'](getOrCreateSession,_0x3f5726,_0x4a8872);_0x2bc08f[_0x21ccee(0x1b0)]=!![];const _0x59890e=_0x34e88d['WPcMm'](getCurrentBranch);_0x59890e&&_0x34e88d[_0x21ccee(0x18b)](_0x59890e,_0x34e88d[_0x21ccee(0x1a7)])&&_0x59890e!==_0x21ccee(0x1b4)&&(_0x3f5726[_0x21ccee(0x193)][_0x59890e]=!![],_0x2bc08f['currentBranch']=_0x59890e),saveCache(_0x3f5726);}export function isSessionEnabled(_0x4f5095){const _0x1edd0a=_0x5b0641,_0x5e60d3={'LSkcm':function(_0x1214f0){return _0x1214f0();},'YssSh':function(_0x8ba2ad,_0x1210bc){return _0x8ba2ad===_0x1210bc;},'WwEpG':function(_0x2de420,_0x4c5739){return _0x2de420===_0x4c5739;},'MHOCj':function(_0x136b72,_0x36c002){return _0x136b72===_0x36c002;}},_0x12369f=loadCache(),_0x1b086f=_0x5e60d3['LSkcm'](getCurrentBranch);if(!_0x1b086f||_0x5e60d3['YssSh'](_0x1b086f,'main')||_0x5e60d3['WwEpG'](_0x1b086f,_0x1edd0a(0x1b4)))return _0x5e60d3['MHOCj'](_0x12369f['sessions'][_0x4f5095]?.[_0x1edd0a(0x1b0)],!![]);const _0x4782b6=_0x12369f['branches'][_0x1b086f]===!![],_0x28bc42=_0x12369f['sessions'][_0x4f5095]?.['enabled']===!![];return _0x4782b6||_0x28bc42;}export function disableSession(_0x2a98c1){const _0x5c0ea7=_0x5b0641,_0x478de1={'jvBFw':function(_0x2281d2,_0x19a4a4){return _0x2281d2(_0x19a4a4);}},_0x34ac68=loadCache(),_0x374a2b=getOrCreateSession(_0x34ac68,_0x2a98c1);_0x374a2b[_0x5c0ea7(0x1b0)]=![],_0x478de1['jvBFw'](saveCache,_0x34ac68);}export function updateBranchTracking(_0x4097cf){const _0x2d4634=_0x5b0641,_0x8dcfa8={'eGtxa':function(_0x4260e5){return _0x4260e5();},'txgHz':function(_0x3fbd1a,_0x11b4ad){return _0x3fbd1a===_0x11b4ad;},'xpYrU':function(_0x527e6f,_0x483661){return _0x527e6f===_0x483661;},'HjmQP':'master','VIByx':function(_0x44c53d,_0x3231d1){return _0x44c53d!==_0x3231d1;}},_0x3100d0=loadCache(),_0x19366f=_0x3100d0['sessions'][_0x4097cf];if(!_0x19366f?.[_0x2d4634(0x1b0)])return;const _0x107a73=_0x8dcfa8['eGtxa'](getCurrentBranch);if(!_0x107a73||_0x8dcfa8[_0x2d4634(0x1b1)](_0x107a73,'main')||_0x8dcfa8[_0x2d4634(0x1af)](_0x107a73,_0x8dcfa8[_0x2d4634(0x19f)]))return;_0x8dcfa8['VIByx'](_0x19366f['currentBranch'],_0x107a73)&&(_0x3100d0[_0x2d4634(0x193)][_0x107a73]=!![],_0x19366f['currentBranch']=_0x107a73,saveCache(_0x3100d0));}export function initBranchTracking(_0x437437){const _0x266bb8=_0x5b0641,_0x47da0b={'rgHih':function(_0xd7a9bd){return _0xd7a9bd();},'qCErr':'main','bCUBj':function(_0x4f9de8,_0x221a11){return _0x4f9de8===_0x221a11;},'kxwzd':function(_0x34e09c,_0x56b719){return _0x34e09c===_0x56b719;}},_0x3a635c=loadCache(),_0x8df0b5=_0x47da0b['rgHih'](getCurrentBranch);if(!_0x8df0b5||_0x8df0b5===_0x47da0b[_0x266bb8(0x18d)]||_0x47da0b['bCUBj'](_0x8df0b5,'master'))return;if(_0x47da0b['kxwzd'](_0x3a635c['branches'][_0x8df0b5],!![])){const _0x4416e0=getOrCreateSession(_0x3a635c,_0x437437);_0x4416e0[_0x266bb8(0x1b0)]=!![],_0x4416e0['currentBranch']=_0x8df0b5,saveCache(_0x3a635c);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x2e0536){const _0x3bf64b=_0x5b0641,_0x9d38d1=loadCache(),_0x36d8af=_0x9d38d1[_0x3bf64b(0x1a6)][_0x2e0536];_0x36d8af?.['enabled']&&(_0x9d38d1[_0x3bf64b(0x1ab)]=Date['now'](),saveCache(_0x9d38d1));}export function shouldAutoEnableAfterClear(_0x1a128e){const _0x684895=_0x5b0641,_0x209f4d={'VnMTo':_0x684895(0x1bb),'erVYI':function(_0x2c2ba0){return _0x2c2ba0();}};if(_0x1a128e!==_0x209f4d['VnMTo'])return![];const _0xaac8a8=_0x209f4d[_0x684895(0x1ba)](loadCache),_0x55ba6f=_0xaac8a8['lastEnabledSessionClearedAt'];if(!_0x55ba6f)return![];const _0x29f9ba=Date['now']()-_0x55ba6f;return _0x29f9ba<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x5088a9){const _0x2883ec=_0x5b0641,_0x512961={'hCSrq':function(_0x3db530,_0xce806a,_0x16f427){return _0x3db530(_0xce806a,_0x16f427);},'KMRuJ':function(_0x5b6f31,_0x27245e){return _0x5b6f31!==_0x27245e;},'vRXty':_0x2883ec(0x198),'qgMOK':function(_0x15214d,_0x494e9e){return _0x15214d!==_0x494e9e;},'SEgfi':_0x2883ec(0x1b4),'PCCmo':function(_0x2ccdfb,_0x2898a8){return _0x2ccdfb(_0x2898a8);}},_0x1449ee=loadCache(),_0x2f2cd0=_0x512961[_0x2883ec(0x190)](getOrCreateSession,_0x1449ee,_0x5088a9);_0x2f2cd0['enabled']=!![];const _0x3d6a03=getCurrentBranch();_0x3d6a03&&_0x512961[_0x2883ec(0x1b2)](_0x3d6a03,_0x512961[_0x2883ec(0x1b7)])&&_0x512961[_0x2883ec(0x1ae)](_0x3d6a03,_0x512961[_0x2883ec(0x1a8)])&&(_0x2f2cd0[_0x2883ec(0x18c)]=_0x3d6a03),delete _0x1449ee['lastEnabledSessionClearedAt'],_0x512961['PCCmo'](saveCache,_0x1449ee);}export function registerSession(_0x53b470,_0x502359){const _0x337356=_0x5b0641,_0x449152={'HRcQB':function(_0x400a56){return _0x400a56();}},_0x4c3b47=_0x449152[_0x337356(0x1a5)](loadCache),_0x3e11fb=getOrCreateSession(_0x4c3b47,_0x53b470);_0x3e11fb[_0x337356(0x19b)]=_0x502359,_0x3e11fb[_0x337356(0x19d)]=new Date()['toISOString'](),saveCache(_0x4c3b47);}export function getSessionEntry(_0x5d2eeb){const _0x41ddc9=_0x5b0641,_0x3e895a=loadCache(),_0xe4d5f4=_0x3e895a['sessions'][_0x5d2eeb];if(_0xe4d5f4?.['featureId']&&_0xe4d5f4?.['registeredAt'])return{'featureId':_0xe4d5f4[_0x41ddc9(0x19b)],'registeredAt':_0xe4d5f4[_0x41ddc9(0x19d)]};return null;}export function unregisterSession(_0x484ba8){const _0x2a9cb9=_0x5b0641,_0x391043={'FPEek':function(_0x4dbce4,_0x53783d){return _0x4dbce4(_0x53783d);}},_0xe31920=loadCache(),_0xc828a2=_0xe31920['sessions'][_0x484ba8];_0xc828a2&&(delete _0xc828a2[_0x2a9cb9(0x19b)],delete _0xc828a2['registeredAt'],_0x391043[_0x2a9cb9(0x197)](saveCache,_0xe31920));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x279d96){const _0x468633=_0x5b0641,_0x209bfe={'pVDFm':function(_0x350dd3,_0x27a275,_0x5bd7ec){return _0x350dd3(_0x27a275,_0x5bd7ec);},'qgIAF':function(_0x5dcf78,_0x48ba93){return _0x5dcf78-_0x48ba93;}},_0x5b463e=loadCache(),_0x39ee52=_0x209bfe[_0x468633(0x192)](getOrCreateSession,_0x5b463e,_0x279d96),_0x25f20e=_0x39ee52[_0x468633(0x1ad)]||0x0,_0x523dbd=Date['now']();if(_0x209bfe[_0x468633(0x19c)](_0x523dbd,_0x25f20e)>=PLAN_REMINDER_INTERVAL_MS)return _0x39ee52[_0x468633(0x1ad)]=_0x523dbd,saveCache(_0x5b463e),!![];return![];}export function hasSessionBeenPrompted(_0x2b7734){const _0x268464=_0x5b0641,_0x501b97={'BoDwV':function(_0xd7f78a){return _0xd7f78a();},'cBXwQ':function(_0x2f3c25,_0x60b0d7){return _0x2f3c25===_0x60b0d7;}},_0x15a45c=_0x501b97['BoDwV'](loadCache);return _0x501b97[_0x268464(0x1a1)](_0x15a45c[_0x268464(0x1a6)][_0x2b7734]?.[_0x268464(0x18e)],!![]);}function _0x3730(){const _0x4c14cd=['featureId','qgIAF','registeredAt','544809bZgtqr','HjmQP','join','cBXwQ','29946yuNcpF','3398zouivr','6653620hGdFjj','HRcQB','sessions','qJnCB','SEgfi','1206ABngXf','MOgmF','lastEnabledSessionClearedAt','dirname','lastPlanReminderAt','qgMOK','xpYrU','enabled','txgHz','KMRuJ','7112sVsvwV','master','6740055IFPzxq','Vowjx','vRXty','writeFileSync','.claude','erVYI','clear','9264yVrres','.ranger_cache.json','qREfm','currentBranch','qCErr','prompted','pipe','hCSrq','existsSync','pVDFm','branches','445WauXfm','utf-8','ALlqN','FPEek','main','BuBBq','2696752GLxXPp'];_0x3730=function(){return _0x4c14cd;};return _0x3730();}export function markSessionPrompted(_0x328b7e){const _0x465761={'IilDN':function(_0x5c303f,_0x47db63){return _0x5c303f(_0x47db63);}},_0x7ae34f=loadCache(),_0x3ce38d=getOrCreateSession(_0x7ae34f,_0x328b7e);_0x3ce38d['prompted']=!![],_0x465761['IilDN'](saveCache,_0x7ae34f);}export function getCacheFile(){return CACHE_FILE;}
|
|
1
|
+
const _0x7a4352=_0x3fd2;(function(_0x5c1a06,_0x4a76eb){const _0x533982=_0x3fd2,_0x219413=_0x5c1a06();while(!![]){try{const _0xdf7f4c=-parseInt(_0x533982(0xb7))/0x1+parseInt(_0x533982(0xbb))/0x2*(parseInt(_0x533982(0xbd))/0x3)+-parseInt(_0x533982(0xaf))/0x4*(-parseInt(_0x533982(0xa4))/0x5)+-parseInt(_0x533982(0xd5))/0x6*(-parseInt(_0x533982(0xd3))/0x7)+parseInt(_0x533982(0xc7))/0x8+parseInt(_0x533982(0xb3))/0x9*(-parseInt(_0x533982(0xb1))/0xa)+-parseInt(_0x533982(0xd6))/0xb;if(_0xdf7f4c===_0x4a76eb)break;else _0x219413['push'](_0x219413['shift']());}catch(_0x1df50e){_0x219413['push'](_0x219413['shift']());}}}(_0x5ebd,0x2a944));import*as _0x338bd5 from'fs';import*as _0x41c9d8 from'path';import*as _0x41009c from'os';import{execSync}from'child_process';const CACHE_FILE=_0x41c9d8[_0x7a4352(0xac)](_0x41009c['homedir'](),_0x7a4352(0xa6),_0x7a4352(0xb6));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x5f4b72=_0x7a4352,_0x49ea9c={'nzKvw':function(_0x43c3de){return _0x43c3de();}};try{if(_0x338bd5['existsSync'](CACHE_FILE)){const _0x4e0521=JSON['parse'](_0x338bd5['readFileSync'](CACHE_FILE,'utf-8'));return{'version':0x3,'sessions':_0x4e0521['sessions']||{},'branches':_0x4e0521[_0x5f4b72(0xc8)]||{},'lastEnabledSessionClearedAt':_0x4e0521[_0x5f4b72(0xd0)]};}}catch{}return _0x49ea9c['nzKvw'](createEmptyCache);}function saveCache(_0x16cf3f){const _0x1c8632=_0x7a4352;try{const _0x50228f=_0x41c9d8['dirname'](CACHE_FILE);!_0x338bd5[_0x1c8632(0xc9)](_0x50228f)&&_0x338bd5[_0x1c8632(0xa8)](_0x50228f,{'recursive':!![]}),_0x338bd5[_0x1c8632(0xa9)](CACHE_FILE,JSON['stringify'](_0x16cf3f,null,0x2));}catch{}}export function getCurrentBranch(){const _0x56f323=_0x7a4352,_0x218715={'FrUwQ':function(_0x4390dc,_0x44c465,_0x34c9b9){return _0x4390dc(_0x44c465,_0x34c9b9);},'rGGRA':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','TbkQF':'utf-8','QxFII':_0x56f323(0xc2),'MMKUD':function(_0x4ebd5b,_0xfdd39){return _0x4ebd5b===_0xfdd39;},'rOVmq':_0x56f323(0xd9)};try{const _0x488df0=_0x218715[_0x56f323(0xd1)](execSync,_0x218715[_0x56f323(0xad)],{'encoding':_0x218715['TbkQF'],'stdio':[_0x218715['QxFII'],_0x218715[_0x56f323(0xb0)],_0x56f323(0xc2)]})[_0x56f323(0xb5)]();if(!_0x488df0||_0x218715[_0x56f323(0xb2)](_0x488df0,_0x218715['rOVmq']))return null;return _0x488df0;}catch{return null;}}export function enableBranch(_0x52dbdb){const _0x5c8d1e=_0x7a4352,_0x467f58={'ZHtVe':function(_0x50cfa3){return _0x50cfa3();},'mpGqV':function(_0x23b062,_0x14f49c){return _0x23b062(_0x14f49c);}},_0x58f0e0=_0x467f58[_0x5c8d1e(0xb4)](loadCache);_0x58f0e0['branches'][_0x52dbdb]=!![],_0x467f58['mpGqV'](saveCache,_0x58f0e0);}function _0x5ebd(){const _0x41428f=['FrUwQ','currentBranch','35qNVmMN','toISOString','330288sfyubv','1854292wuTFQo','uIoGI','master','HEAD','ZAUre','bVbkj','Tgtru','jYBAe','5XJSnCV','IWykP','.claude','lastPlanReminderAt','mkdirSync','writeFileSync','prompted','PwXQs','join','rGGRA','sGmAN','557500FrNjqk','QxFII','1640xLPdvX','MMKUD','4014mPTgTp','ZHtVe','trim','.ranger_cache.json','341653BGogTr','Wwyjx','SUfZz','now','2zhAhIy','featureId','289512dAJXZV','miChQ','registeredAt','JSVga','usAro','pipe','cjdGw','MAQge','nVoaN','enabled','1973232SVLUrX','branches','existsSync','uxmpH','main','gCvtw','JbBJW','sessions','FeksI','lastEnabledSessionClearedAt'];_0x5ebd=function(){return _0x41428f;};return _0x5ebd();}export function disableBranch(_0x1b9a67){const _0x2a6cf=_0x7a4352,_0x5567fe={'JSVga':function(_0x28f33e){return _0x28f33e();},'CbdCs':function(_0x68987a,_0x2f5af6){return _0x68987a(_0x2f5af6);}},_0x421802=_0x5567fe[_0x2a6cf(0xc0)](loadCache);delete _0x421802[_0x2a6cf(0xc8)][_0x1b9a67],_0x5567fe['CbdCs'](saveCache,_0x421802);}export function isBranchEnabled(_0x2a9a4a){const _0x453999=_0x7a4352,_0x219bbd=loadCache();return _0x219bbd[_0x453999(0xc8)][_0x2a9a4a]===!![];}function getOrCreateSession(_0x6db78c,_0x12cf5e){const _0x11e012=_0x7a4352;return!_0x6db78c['sessions'][_0x12cf5e]&&(_0x6db78c[_0x11e012(0xce)][_0x12cf5e]={}),_0x6db78c['sessions'][_0x12cf5e];}export function enableSession(_0x282683){const _0x3350ad=_0x7a4352,_0x281f1b={'Tgtru':function(_0x4cdba4){return _0x4cdba4();},'QxqFd':function(_0x334455,_0x23fec1){return _0x334455(_0x23fec1);}},_0x155d9c=_0x281f1b[_0x3350ad(0xdc)](loadCache),_0xa02d76=getOrCreateSession(_0x155d9c,_0x282683);_0xa02d76['enabled']=!![];const _0x44fb0e=_0x281f1b[_0x3350ad(0xdc)](getCurrentBranch);_0x44fb0e&&_0x44fb0e!==_0x3350ad(0xcb)&&_0x44fb0e!==_0x3350ad(0xd8)&&(_0x155d9c[_0x3350ad(0xc8)][_0x44fb0e]=!![],_0xa02d76[_0x3350ad(0xd2)]=_0x44fb0e),_0x281f1b['QxqFd'](saveCache,_0x155d9c);}function _0x3fd2(_0x2542bd,_0x2720ae){_0x2542bd=_0x2542bd-0xa3;const _0x5ebd59=_0x5ebd();let _0x3fd2b5=_0x5ebd59[_0x2542bd];return _0x3fd2b5;}export function isSessionEnabled(_0x222e85){const _0x1a98a9=_0x7a4352,_0x5cc208={'zRZEw':function(_0x35f86e,_0x5b98fb){return _0x35f86e===_0x5b98fb;},'vRuvh':_0x1a98a9(0xcb),'SUfZz':function(_0x4ecc95,_0x2012d){return _0x4ecc95===_0x2012d;},'sGmAN':_0x1a98a9(0xd8),'uIoGI':function(_0x25eb6b,_0x1a451b){return _0x25eb6b===_0x1a451b;},'GPhVD':function(_0x4e9f3d,_0x4eef86){return _0x4e9f3d||_0x4eef86;}},_0x1b95de=loadCache(),_0x44b72d=getCurrentBranch();if(!_0x44b72d||_0x5cc208['zRZEw'](_0x44b72d,_0x5cc208['vRuvh'])||_0x5cc208[_0x1a98a9(0xb9)](_0x44b72d,_0x5cc208[_0x1a98a9(0xae)]))return _0x5cc208[_0x1a98a9(0xb9)](_0x1b95de[_0x1a98a9(0xce)][_0x222e85]?.['enabled'],!![]);const _0x57b91f=_0x1b95de['branches'][_0x44b72d]===!![],_0xc77abc=_0x5cc208[_0x1a98a9(0xd7)](_0x1b95de[_0x1a98a9(0xce)][_0x222e85]?.['enabled'],!![]);return _0x5cc208['GPhVD'](_0x57b91f,_0xc77abc);}export function disableSession(_0x502a9e){const _0x17979f=_0x7a4352,_0x402a20={'JbBJW':function(_0x1dfa74,_0x4e57ab){return _0x1dfa74(_0x4e57ab);}},_0xdf9cf5=loadCache(),_0x186070=getOrCreateSession(_0xdf9cf5,_0x502a9e);_0x186070['enabled']=![],_0x402a20[_0x17979f(0xcd)](saveCache,_0xdf9cf5);}export function updateBranchTracking(_0x53d80e){const _0x4be1fb=_0x7a4352,_0x4c01ce={'cjdGw':function(_0x3e16df,_0x19eed4){return _0x3e16df===_0x19eed4;},'GHrmi':'master','MAQge':function(_0x5f5ae2,_0x59e5c7){return _0x5f5ae2!==_0x59e5c7;}},_0x49b345=loadCache(),_0x18a721=_0x49b345[_0x4be1fb(0xce)][_0x53d80e];if(!_0x18a721?.['enabled'])return;const _0xa0b0e8=getCurrentBranch();if(!_0xa0b0e8||_0xa0b0e8===_0x4be1fb(0xcb)||_0x4c01ce[_0x4be1fb(0xc3)](_0xa0b0e8,_0x4c01ce['GHrmi']))return;_0x4c01ce[_0x4be1fb(0xc4)](_0x18a721['currentBranch'],_0xa0b0e8)&&(_0x49b345[_0x4be1fb(0xc8)][_0xa0b0e8]=!![],_0x18a721[_0x4be1fb(0xd2)]=_0xa0b0e8,saveCache(_0x49b345));}export function initBranchTracking(_0x31d1a6){const _0x12f5c6=_0x7a4352,_0x4b67ba={'FeksI':function(_0x299dbf){return _0x299dbf();},'PwXQs':_0x12f5c6(0xd8),'nVoaN':function(_0x2ba2aa,_0x6c4539){return _0x2ba2aa===_0x6c4539;},'IWykP':function(_0xe61024,_0x22b49c){return _0xe61024(_0x22b49c);}},_0x5a81f2=_0x4b67ba[_0x12f5c6(0xcf)](loadCache),_0x1043bf=getCurrentBranch();if(!_0x1043bf||_0x1043bf==='main'||_0x1043bf===_0x4b67ba[_0x12f5c6(0xab)])return;if(_0x4b67ba[_0x12f5c6(0xc5)](_0x5a81f2[_0x12f5c6(0xc8)][_0x1043bf],!![])){const _0x4b9f75=getOrCreateSession(_0x5a81f2,_0x31d1a6);_0x4b9f75[_0x12f5c6(0xc6)]=!![],_0x4b9f75[_0x12f5c6(0xd2)]=_0x1043bf,_0x4b67ba[_0x12f5c6(0xa5)](saveCache,_0x5a81f2);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x1f020e){const _0x5d66a8=_0x7a4352,_0x12e245=loadCache(),_0x135fb1=_0x12e245[_0x5d66a8(0xce)][_0x1f020e];_0x135fb1?.[_0x5d66a8(0xc6)]&&(_0x12e245[_0x5d66a8(0xd0)]=Date['now'](),saveCache(_0x12e245));}export function shouldAutoEnableAfterClear(_0x170532){const _0x3a6ac0=_0x7a4352,_0x210adf={'EMKRP':function(_0x1de7dc,_0x1542c4){return _0x1de7dc!==_0x1542c4;},'gCvtw':function(_0xeb439d,_0x65a3a7){return _0xeb439d-_0x65a3a7;}};if(_0x210adf['EMKRP'](_0x170532,'clear'))return![];const _0x3687e9=loadCache(),_0x564f19=_0x3687e9[_0x3a6ac0(0xd0)];if(!_0x564f19)return![];const _0x569c83=_0x210adf[_0x3a6ac0(0xcc)](Date['now'](),_0x564f19);return _0x569c83<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x3f9e57){const _0x12dc73=_0x7a4352,_0x30057e={'TtDJy':function(_0x4b7429){return _0x4b7429();},'Wwyjx':_0x12dc73(0xcb),'OlRiX':function(_0x88a172,_0x34780b){return _0x88a172!==_0x34780b;},'miChQ':function(_0x4c804b,_0x1c739f){return _0x4c804b(_0x1c739f);}},_0x19484a=_0x30057e['TtDJy'](loadCache),_0x18f9e3=getOrCreateSession(_0x19484a,_0x3f9e57);_0x18f9e3[_0x12dc73(0xc6)]=!![];const _0x36e896=getCurrentBranch();_0x36e896&&_0x36e896!==_0x30057e[_0x12dc73(0xb8)]&&_0x30057e['OlRiX'](_0x36e896,'master')&&(_0x18f9e3[_0x12dc73(0xd2)]=_0x36e896),delete _0x19484a[_0x12dc73(0xd0)],_0x30057e[_0x12dc73(0xbe)](saveCache,_0x19484a);}export function registerSession(_0x5e8791,_0x1144bb){const _0x4ff8f5=_0x7a4352,_0x55cd60={'OUJRV':function(_0x19e034,_0x439db6,_0x4b5f54){return _0x19e034(_0x439db6,_0x4b5f54);},'WreHB':function(_0x43fefd,_0x46b9ba){return _0x43fefd(_0x46b9ba);}},_0xf6e11b=loadCache(),_0x878b14=_0x55cd60['OUJRV'](getOrCreateSession,_0xf6e11b,_0x5e8791);_0x878b14[_0x4ff8f5(0xbc)]=_0x1144bb,_0x878b14['registeredAt']=new Date()[_0x4ff8f5(0xd4)](),_0x55cd60['WreHB'](saveCache,_0xf6e11b);}export function getSessionEntry(_0x572683){const _0x48814e=_0x7a4352,_0x273781={'bVbkj':function(_0x4d8bac){return _0x4d8bac();}},_0x4cbfe1=_0x273781[_0x48814e(0xdb)](loadCache),_0x3fc614=_0x4cbfe1['sessions'][_0x572683];if(_0x3fc614?.[_0x48814e(0xbc)]&&_0x3fc614?.[_0x48814e(0xbf)])return{'featureId':_0x3fc614['featureId'],'registeredAt':_0x3fc614[_0x48814e(0xbf)]};return null;}export function unregisterSession(_0x29575c){const _0x15fc7f=_0x7a4352,_0x5ea275={'jYBAe':function(_0x2a2c2c,_0x3378b7){return _0x2a2c2c(_0x3378b7);}},_0x49069f=loadCache(),_0x3dd613=_0x49069f['sessions'][_0x29575c];_0x3dd613&&(delete _0x3dd613['featureId'],delete _0x3dd613[_0x15fc7f(0xbf)],_0x5ea275[_0x15fc7f(0xa3)](saveCache,_0x49069f));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x5d04dc){const _0x57bb56=_0x7a4352,_0xe791a4={'XHXQt':function(_0x181294){return _0x181294();},'uxmpH':function(_0x412669,_0x7ecce4,_0x165c9f){return _0x412669(_0x7ecce4,_0x165c9f);},'QYANW':function(_0x546b0b,_0xea9357){return _0x546b0b-_0xea9357;}},_0x409539=_0xe791a4['XHXQt'](loadCache),_0x10ccab=_0xe791a4[_0x57bb56(0xca)](getOrCreateSession,_0x409539,_0x5d04dc),_0x61256d=_0x10ccab['lastPlanReminderAt']||0x0,_0x4f4ee9=Date[_0x57bb56(0xba)]();if(_0xe791a4['QYANW'](_0x4f4ee9,_0x61256d)>=PLAN_REMINDER_INTERVAL_MS)return _0x10ccab[_0x57bb56(0xa7)]=_0x4f4ee9,saveCache(_0x409539),!![];return![];}export function hasSessionBeenPrompted(_0x4ae36f){const _0x208054=_0x7a4352,_0x51e078={'usAro':function(_0x541dd9,_0x27db51){return _0x541dd9===_0x27db51;}},_0x5af89a=loadCache();return _0x51e078[_0x208054(0xc1)](_0x5af89a[_0x208054(0xce)][_0x4ae36f]?.['prompted'],!![]);}export function markSessionPrompted(_0x12ffcd){const _0x44cb2b=_0x7a4352,_0x2a6c08={'ZAUre':function(_0x34e4b5,_0x2d3e8a){return _0x34e4b5(_0x2d3e8a);}},_0x560112=loadCache(),_0x152ef0=getOrCreateSession(_0x560112,_0x12ffcd);_0x152ef0[_0x44cb2b(0xaa)]=!![],_0x2a6c08[_0x44cb2b(0xda)](saveCache,_0x560112);}export function getCacheFile(){return CACHE_FILE;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4bccb9=_0x2a4d;(function(_0x644685,_0x290cda){const _0x16b921=_0x2a4d,_0x567783=_0x644685();while(!![]){try{const _0x5e9e8c=parseInt(_0x16b921(0xde))/0x1*(-parseInt(_0x16b921(0xc9))/0x2)+-parseInt(_0x16b921(0xcf))/0x3+-parseInt(_0x16b921(0xd1))/0x4*(-parseInt(_0x16b921(0x9d))/0x5)+-parseInt(_0x16b921(0xef))/0x6*(-parseInt(_0x16b921(0xd7))/0x7)+-parseInt(_0x16b921(0xb4))/0x8+parseInt(_0x16b921(0xa7))/0x9+parseInt(_0x16b921(0xbc))/0xa;if(_0x5e9e8c===_0x290cda)break;else _0x567783['push'](_0x567783['shift']());}catch(_0x28b682){_0x567783['push'](_0x567783['shift']());}}}(_0xc1f1,0xa1353));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(_0x232861){const _0x302295=_0x2a4d,_0x4f4142={'RDZBE':function(_0x58d230){return _0x58d230();},'BDbar':function(_0x512ee4,_0x3e078e,_0x232bc4,_0x284f7d){return _0x512ee4(_0x3e078e,_0x232bc4,_0x284f7d);},'ZdkNC':_0x302295(0xb9),'drmna':function(_0x2a9bf8,_0x2bcc27,_0x8b0043){return _0x2a9bf8(_0x2bcc27,_0x8b0043);},'hnRCE':function(_0x41a3e8,_0x1b2181,_0x1f28d8){return _0x41a3e8(_0x1b2181,_0x1f28d8);},'PmMHc':function(_0x2dd50b,_0xe7da4d){return _0x2dd50b!==_0xe7da4d;},'fxMia':function(_0x6945e0,_0x50c72e){return _0x6945e0!==_0x50c72e;}},_0x540634=_0x4f4142['RDZBE'](getRangerDir),_0x4ba156=join(_0x540634,'ci',_0x232861),_0x246057=_0x4f4142[_0x302295(0xe7)](join,_0x540634,_0x4f4142['ZdkNC'],_0x232861),_0x74ea70=_0x4f4142[_0x302295(0x93)](join,_0x540634,_0x232861),_0x4086e1=_0x4f4142[_0x302295(0xca)](join,_0x540634,_0x4f4142[_0x302295(0xf2)]),_0x266b19=join(_0x540634,'ci');if(existsSync(_0x4ba156))return _0x4ba156;if(existsSync(_0x246057))return _0x246057;if(existsSync(_0x74ea70)&&(_0x4f4142[_0x302295(0xed)](_0x74ea70,_0x4086e1)&&_0x4f4142[_0x302295(0xb3)](_0x74ea70,_0x266b19)?!![]:hasLegacyProfileFiles(_0x74ea70)))return _0x74ea70;return _0x246057;}export function findExistingEnv(_0x298ab6,_0x10ac35){const _0x30bcac=_0x2a4d,_0x32da38={'PlOgr':'local','jFnUy':function(_0x34bf02,_0x533f88,_0xbcb767){return _0x34bf02(_0x533f88,_0xbcb767);},'qUOmt':function(_0x16db17,_0x23496e,_0x332959,_0x181497){return _0x16db17(_0x23496e,_0x332959,_0x181497);},'siFdo':'legacy','JWoAR':function(_0x3b72ad,_0x204323,_0x1abbdd){return _0x3b72ad(_0x204323,_0x1abbdd);},'GjUjG':function(_0x31d38e,_0x54448d){return _0x31d38e(_0x54448d);},'BRiPB':function(_0x3e558c,_0x5d3521){return _0x3e558c===_0x5d3521;}},_0xba912f=getRangerDir(),_0x2f4ee1=_0x10ac35?.[_0x30bcac(0xf1)]??['ci',_0x32da38['PlOgr'],_0x30bcac(0xd4)],_0x1585d6=join(_0xba912f,_0x32da38[_0x30bcac(0xa8)]),_0x231184=_0x32da38[_0x30bcac(0xb2)](join,_0xba912f,'ci'),_0x11b6da=[{'location':'ci','path':_0x32da38[_0x30bcac(0xc4)](join,_0xba912f,'ci',_0x298ab6)},{'location':_0x32da38[_0x30bcac(0xa8)],'path':join(_0xba912f,_0x30bcac(0xb9),_0x298ab6)},{'location':_0x32da38['siFdo'],'path':_0x32da38['JWoAR'](join,_0xba912f,_0x298ab6)}];for(const _0x15bc24 of _0x11b6da){if(_0x2f4ee1['includes'](_0x15bc24['location'])&&_0x32da38[_0x30bcac(0xa0)](existsSync,_0x15bc24['path'])){if(_0x15bc24[_0x30bcac(0xdc)]===_0x32da38[_0x30bcac(0xf0)]&&(_0x15bc24['path']===_0x1585d6||_0x32da38['BRiPB'](_0x15bc24[_0x30bcac(0xb5)],_0x231184))&&!hasLegacyProfileFiles(_0x15bc24[_0x30bcac(0xb5)]))continue;return{'path':_0x15bc24[_0x30bcac(0xb5)],'location':_0x15bc24['location']};}}return null;}function hasLegacyProfileFiles(_0x4a1e52){const _0x51a20f=_0x2a4d,_0xcb0238={'fnaYu':function(_0x25d051,_0x393319){return _0x25d051(_0x393319);},'bMIUd':function(_0x18ef10,_0x275cee,_0x1b52c2){return _0x18ef10(_0x275cee,_0x1b52c2);},'Hqkli':function(_0xcd668d,_0x4ec554){return _0xcd668d(_0x4ec554);},'kizwY':'auth.json','rFzWO':'auth.json.enc'};return _0xcb0238[_0x51a20f(0xec)](existsSync,_0xcb0238[_0x51a20f(0x9a)](join,_0x4a1e52,'settings.json'))||_0xcb0238['Hqkli'](existsSync,join(_0x4a1e52,_0xcb0238[_0x51a20f(0xbf)]))||_0xcb0238[_0x51a20f(0xec)](existsSync,join(_0x4a1e52,_0xcb0238[_0x51a20f(0xa9)]));}export function isEnvCi(_0x211d9c){const _0x23b663=_0x2a4d,_0x42f3e8={'dsJIU':function(_0x31130a,_0x2d4c99){return _0x31130a(_0x2d4c99);},'aMQRz':function(_0x15753c){return _0x15753c();}};return _0x42f3e8[_0x23b663(0x9f)](existsSync,join(_0x42f3e8[_0x23b663(0x94)](getRangerDir),'ci',_0x211d9c));}export async function cleanupTempFiles(_0x33ea25){const _0x34bc15=_0x2a4d,_0x34a2dd={'RfzMN':function(_0x4e8530,_0x455b16){return _0x4e8530!==_0x455b16;}},_0x1b7ae2=[_0x33ea25['tempAuthPath'],_0x33ea25['configPath']]['filter'](Boolean);await Promise['all'](_0x1b7ae2[_0x34bc15(0xd8)](_0x5bc2e6=>unlink(_0x5bc2e6)[_0x34bc15(0xc2)](_0x4aff3f=>{const _0x22d919=_0x34bc15;_0x34a2dd['RfzMN'](_0x4aff3f[_0x22d919(0xeb)],'ENOENT')&&console[_0x22d919(0xb8)](_0x22d919(0xe5)+_0x5bc2e6+':',_0x4aff3f['message']);})));}export function getSettingsPath(_0x33ab78){const _0x3126bb=_0x2a4d,_0x2e3e03={'SRNra':function(_0x3725c4,_0x318fbf,_0x130aef){return _0x3725c4(_0x318fbf,_0x130aef);},'cplwg':'settings.json'};return _0x2e3e03[_0x3126bb(0xce)](join,getEnvDir(_0x33ab78),_0x2e3e03['cplwg']);}export async function loadSettings(_0x4755b4){const _0x3c287c=_0x2a4d,_0x209583={'NqmBi':function(_0x378425,_0x42d00d){return _0x378425(_0x42d00d);},'eyfHJ':function(_0x264a76,_0x5cc4ff,_0x51bdb8){return _0x264a76(_0x5cc4ff,_0x51bdb8);}},_0x277ae4=getSettingsPath(_0x4755b4);if(!_0x209583[_0x3c287c(0xd0)](existsSync,_0x277ae4))return{};try{const _0x39ba6f=await _0x209583['eyfHJ'](readFile,_0x277ae4,'utf-8');return JSON[_0x3c287c(0xcd)](_0x39ba6f);}catch{return{};}}export async function saveSettings(_0xe615ab,_0x26d7b9){const _0xe88c5f=_0x2a4d,_0x4d4bb7={'DbRqo':function(_0x114294,_0x5d3e8d){return _0x114294(_0x5d3e8d);},'hvVcg':function(_0x361c81,_0x32e741,_0x1a66e1){return _0x361c81(_0x32e741,_0x1a66e1);}},_0x2c4925=getSettingsPath(_0xe615ab),_0xcf6aee=dirname(_0x2c4925);!_0x4d4bb7[_0xe88c5f(0xb6)](existsSync,_0xcf6aee)&&await _0x4d4bb7[_0xe88c5f(0x97)](mkdir,_0xcf6aee,{'recursive':!![]}),await writeFile(_0x2c4925,JSON['stringify'](_0x26d7b9,null,0x2));}export function resolveEnvVars(_0x21c1a5){const _0x370550=_0x2a4d,_0x4c31e6={'HElvU':function(_0x210313,_0x157894){return _0x210313===_0x157894;},'tuwuJ':_0x370550(0xe4),'tCaDq':_0x370550(0x96)};if(typeof _0x21c1a5===_0x4c31e6[_0x370550(0xcc)])return _0x21c1a5[_0x370550(0x99)](/\$\{(\w+)\}/g,(_0x5e2ff6,_0x4956e0)=>{const _0x278cbb=_0x370550,_0x1379ad=process['env'][_0x4956e0];if(_0x4c31e6['HElvU'](_0x1379ad,undefined))throw new Error('Environment\x20variable\x20'+_0x4956e0+_0x278cbb(0x9e));return _0x1379ad;});if(Array['isArray'](_0x21c1a5))return _0x21c1a5['map'](resolveEnvVars);if(_0x21c1a5&&_0x4c31e6[_0x370550(0xc3)](typeof _0x21c1a5,_0x4c31e6[_0x370550(0xbe)]))return Object['fromEntries'](Object['entries'](_0x21c1a5)[_0x370550(0xd8)](([_0x497bbc,_0x3ca7df])=>[_0x497bbc,resolveEnvVars(_0x3ca7df)]));return _0x21c1a5;}const isRecord=_0x2af2ff=>typeof _0x2af2ff==='object'&&_0x2af2ff!==null&&!Array['isArray'](_0x2af2ff),asRecord=_0x43e96e=>isRecord(_0x43e96e)?_0x43e96e:undefined,mergeHeaders=(_0x4b32eb,_0x5efc3a)=>{const _0x3dc3d5={..._0x4b32eb??{},..._0x5efc3a??{}};return Object['keys'](_0x3dc3d5)['length']?_0x3dc3d5:undefined;},ALLOW_LOCALHOST_ARGS=[_0x4bccb9(0xcb),_0x4bccb9(0xd3),'--unsafely-treat-insecure-origin-as-secure=http://localhost'];export function buildBrowserOptionsFromSettings(_0x570d00,_0x50859d={}){const _0x2cbe65=_0x4bccb9,_0x2248aa={'QiMdI':function(_0x3bd288,_0xc309a9){return _0x3bd288(_0xc309a9);},'GRwkX':function(_0x5a4e5c,_0x5280d9){return _0x5a4e5c===_0x5280d9;},'pkgPo':_0x2cbe65(0xf4),'AjElW':function(_0x379179,_0x13f575){return _0x379179(_0x13f575);}},_0x3375b8=asRecord(_0x570d00[_0x2cbe65(0xc1)]),_0x1a9552={..._0x2248aa[_0x2cbe65(0xe3)](asRecord,_0x3375b8?.[_0x2cbe65(0xb7)])??{}};_0x2248aa[_0x2cbe65(0xf3)](typeof _0x50859d['headless'],_0x2248aa['pkgPo'])&&(_0x1a9552['headless']=_0x50859d['headless']);if(_0x570d00[_0x2cbe65(0xc8)]){const _0x48d353=_0x1a9552['args']??[],_0x2a164b=ALLOW_LOCALHOST_ARGS['filter'](_0x183b02=>!_0x48d353['includes'](_0x183b02));_0x1a9552['args']=[..._0x48d353,..._0x2a164b];}const _0x1e2db2={...asRecord(_0x3375b8?.['contextOptions'])??{}};typeof _0x570d00['userAgent']==='string'&&(_0x1e2db2['userAgent']=_0x570d00[_0x2cbe65(0xe1)]);const _0xcc15b5=mergeHeaders(asRecord(_0x1e2db2['extraHTTPHeaders']),_0x2248aa['AjElW'](asRecord,_0x570d00['headers']));return _0xcc15b5?_0x1e2db2[_0x2cbe65(0xaf)]=_0xcc15b5:delete _0x1e2db2['extraHTTPHeaders'],_0x50859d['storageStatePath']&&(_0x1e2db2['storageState']=_0x50859d[_0x2cbe65(0xd5)]),{'launchOptions':_0x1a9552,'contextOptions':_0x1e2db2};}export async function buildPlaywrightConfig(_0x5a6cb1,_0x4d2ee6,_0x23eb6e,_0x53f3af){const _0x38ecd1=_0x4bccb9,_0x1de524={'bjamr':function(_0x2260d5,_0x2f9adb,_0x2982a4){return _0x2260d5(_0x2f9adb,_0x2982a4);},'IziFF':function(_0x27a0aa,_0x191ebc){return _0x27a0aa===_0x191ebc;},'LBDkU':'auth.json.enc','Jwabu':_0x38ecd1(0xe6),'GhsmV':_0x38ecd1(0xd2),'vxjEv':function(_0x4d5af6,_0xa366f0,_0x22e8b7){return _0x4d5af6(_0xa366f0,_0x22e8b7);},'EqQZu':function(_0x2a9594,_0x522d19){return _0x2a9594(_0x522d19);},'Lgiqm':function(_0x561ada){return _0x561ada();},'upJHu':function(_0xf8be81){return _0xf8be81();},'kDeZn':'sessions','jGpDq':function(_0x171bb7,_0x4c7ce9){return _0x171bb7(_0x4c7ce9);},'wZqgW':'core','GqbJB':'tabs','gYNbT':'install','tyObu':function(_0x479252,_0x216ecb){return _0x479252(_0x216ecb);},'DgkWG':function(_0x89aceb,_0x17dc2b,_0x30abf4){return _0x89aceb(_0x17dc2b,_0x30abf4);}},_0x1dbd6d=getEnvDir(_0x4d2ee6),_0x1a9756=join(_0x1dbd6d,_0x1de524[_0x38ecd1(0xe9)]),_0x1001b6=join(_0x1dbd6d,_0x1de524['Jwabu']);let _0x2321f1,_0x2168b6;if(existsSync(_0x1a9756))try{const _0x3507fd=await getToken();if(!_0x3507fd)throw new Error(_0x1de524['GhsmV']);const _0x55c6a7=await readFile(_0x1a9756),_0x45de52=decrypt(_0x55c6a7,_0x3507fd);_0x2168b6=join(tmpdir(),_0x38ecd1(0xe8)+Date['now']()+'.json'),await _0x1de524[_0x38ecd1(0xd9)](writeFile,_0x2168b6,_0x45de52),_0x2321f1=_0x2168b6;}catch(_0x1554e9){const _0x1a0d19=_0x1554e9 instanceof Error?_0x1554e9[_0x38ecd1(0xdd)]:String(_0x1554e9);throw new Error(_0x38ecd1(0xbd)+_0x1a0d19);}else _0x1de524[_0x38ecd1(0xd6)](existsSync,_0x1001b6)&&(_0x2321f1=_0x1001b6);const _0xbd04b7=_0x23eb6e||_0x1de524[_0x38ecd1(0xdb)](randomUUID),_0x214c87=join(_0x1de524['upJHu'](getRangerDir),_0x1de524[_0x38ecd1(0xa3)],_0xbd04b7),_0xcb29ba=_0x1de524[_0x38ecd1(0xe0)](Boolean,_0x5a6cb1[_0x38ecd1(0x9c)]),_0x283c64=_0xcb29ba?{'browserName':_0x38ecd1(0xad),'cdpEndpoint':_0x5a6cb1['cdpEndpoint']}:((()=>{const _0x5e404c=_0x38ecd1,{launchOptions:_0x276ad1,contextOptions:_0x40f81b}=_0x1de524['bjamr'](buildBrowserOptionsFromSettings,_0x5a6cb1,{'headless':_0x53f3af?![]:_0x5a6cb1[_0x5e404c(0xae)]??!![],'storageStatePath':_0x2321f1});if(_0x1de524['IziFF'](process['getuid']?.(),0x0)){const _0x3879de=[_0x5e404c(0xb0),_0x5e404c(0xa4)],_0x5e9cda=_0x276ad1[_0x5e404c(0xbb)]??[],_0x12e7f3=_0x3879de['filter'](_0x531e13=>!_0x5e9cda['includes'](_0x531e13));_0x276ad1['args']=[..._0x5e9cda,..._0x12e7f3];}return{'isolated':!![],'browserName':_0x5e404c(0xad),'launchOptions':_0x276ad1,'contextOptions':{..._0x40f81b,'permissions':['clipboard-read',_0x5e404c(0xba)],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x435a81={'name':_0x4d2ee6,'browser':_0x283c64,'capabilities':[_0x1de524['wZqgW'],_0x1de524['GqbJB'],_0x1de524['gYNbT'],'pdf',_0x38ecd1(0xaa)],'imageResponses':_0x38ecd1(0xea),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x214c87};if(!_0xcb29ba){const _0x44ba9c=_0x435a81[_0x38ecd1(0xc1)],_0x5cdcc4=_0x44ba9c['contextOptions'];if(_0x1de524[_0x38ecd1(0xa2)](_0x5cdcc4[_0x38ecd1(0xe1)],undefined))delete _0x5cdcc4['userAgent'];if(_0x5cdcc4[_0x38ecd1(0x98)]===undefined)delete _0x5cdcc4[_0x38ecd1(0x98)];}const _0x59e61e=join(tmpdir(),_0x38ecd1(0xda));!_0x1de524['tyObu'](existsSync,_0x59e61e)&&await _0x1de524[_0x38ecd1(0xc0)](mkdir,_0x59e61e,{'recursive':!![]});const _0x42d046=join(_0x59e61e,_0x4d2ee6+'-'+Date[_0x38ecd1(0xac)]()+'.json');return await writeFile(_0x42d046,JSON[_0x38ecd1(0xc5)](_0x435a81,null,0x2)),{'configPath':_0x42d046,'tempAuthPath':_0x2168b6};}export function getNestedValue(_0x1e3f18,_0x1eb712){const _0x3a81c4=_0x4bccb9,_0x4ec384={'HogvG':function(_0x27ff4d,_0x251b48){return _0x27ff4d(_0x251b48);},'eFzpY':function(_0x551f7b,_0x43c05d){return _0x551f7b===_0x43c05d;},'Ccqef':function(_0x4c7de2,_0x54c560){return _0x4c7de2!==_0x54c560;}},_0x46ffc5=_0x4ec384['HogvG'](parseKeyPath,_0x1eb712);let _0x53767f=_0x1e3f18;for(const _0x119ce8 of _0x46ffc5){if(_0x4ec384['eFzpY'](_0x53767f,null)||_0x53767f===undefined||_0x4ec384[_0x3a81c4(0xc7)](typeof _0x53767f,'object'))return undefined;_0x53767f=_0x53767f[_0x119ce8];}return _0x53767f;}export function setNestedValue(_0x10f18f,_0x508415,_0x42cf93){const _0x3dd556=_0x4bccb9,_0x2f267d={'WSsEQ':function(_0x17deb8,_0x8e5a){return _0x17deb8-_0x8e5a;}},_0x552bb1=parseKeyPath(_0x508415);let _0x5f1f32=_0x10f18f;for(let _0xc7d069=0x0;_0xc7d069<_0x552bb1['length']-0x1;_0xc7d069++){const _0x1123e1=_0x552bb1[_0xc7d069];(!(_0x1123e1 in _0x5f1f32)||typeof _0x5f1f32[_0x1123e1]!==_0x3dd556(0x96))&&(_0x5f1f32[_0x1123e1]={}),_0x5f1f32=_0x5f1f32[_0x1123e1];}_0x5f1f32[_0x552bb1[_0x2f267d[_0x3dd556(0xa5)](_0x552bb1[_0x3dd556(0xab)],0x1)]]=_0x42cf93;}function _0x2a4d(_0x4e3fb8,_0x55f6be){_0x4e3fb8=_0x4e3fb8-0x93;const _0xc1f1be=_0xc1f1();let _0x2a4df9=_0xc1f1be[_0x4e3fb8];return _0x2a4df9;}export function deleteNestedValue(_0x130631,_0xf2d230){const _0x2c8ab1=_0x4bccb9,_0x226aa6={'sDlus':function(_0x59bf2f,_0x412836){return _0x59bf2f(_0x412836);},'fOlhy':function(_0x5a78cd,_0x2a91ea){return _0x5a78cd<_0x2a91ea;},'KGwiv':function(_0x26260c,_0x5c9890){return _0x26260c===_0x5c9890;},'xVOKJ':function(_0x2fef7e,_0x5e116f){return _0x2fef7e===_0x5e116f;},'PweIN':function(_0x58e42b,_0xf54d69){return _0x58e42b-_0xf54d69;}},_0xf83ded=_0x226aa6['sDlus'](parseKeyPath,_0xf2d230);let _0x77fe7e=_0x130631;for(let _0x496b2e=0x0;_0x226aa6[_0x2c8ab1(0xdf)](_0x496b2e,_0xf83ded['length']-0x1);_0x496b2e++){if(_0x226aa6[_0x2c8ab1(0xa6)](_0x77fe7e,null)||_0x77fe7e===undefined||typeof _0x77fe7e!==_0x2c8ab1(0x96))return![];_0x77fe7e=_0x77fe7e[_0xf83ded[_0x496b2e]];}if(_0x226aa6['xVOKJ'](_0x77fe7e,null)||_0x77fe7e===undefined||typeof _0x77fe7e!=='object')return![];const _0x5704ee=_0xf83ded[_0x226aa6[_0x2c8ab1(0xa1)](_0xf83ded[_0x2c8ab1(0xab)],0x1)];if(_0x5704ee in _0x77fe7e)return delete _0x77fe7e[_0x5704ee],!![];return![];}function parseKeyPath(_0x1be17e){const _0x409c52=_0x4bccb9,_0x4f9aba={'aIEky':function(_0x939ac9,_0x1000b3){return _0x939ac9===_0x1000b3;},'inYqR':'header','qDLDz':'headers'},_0x5272f8=_0x1be17e[_0x409c52(0xc6)]('.');return _0x4f9aba['aIEky'](_0x5272f8[0x0],_0x4f9aba['inYqR'])&&(_0x5272f8[0x0]=_0x4f9aba[_0x409c52(0xee)]),_0x5272f8;}export function formatSettings(_0x448f0a,_0x40868e=0x0){const _0x4e1ce5=_0x4bccb9,_0x35531c={'XpmCl':function(_0x5da295,_0x4f751a){return _0x5da295===_0x4f751a;},'ZcFim':function(_0x4a0f30,_0x267554){return _0x4a0f30!==_0x267554;}},_0xc886ea=[],_0x284af6='\x20\x20'['repeat'](_0x40868e);for(const [_0x101000,_0x2325e0]of Object['entries'](_0x448f0a)){if(_0x35531c['XpmCl'](_0x2325e0,undefined))continue;if(typeof _0x2325e0===_0x4e1ce5(0x96)&&_0x35531c[_0x4e1ce5(0x95)](_0x2325e0,null)){_0xc886ea[_0x4e1ce5(0xe2)](''+_0x284af6+_0x101000+':');for(const [_0x5def13,_0x4c4ebb]of Object[_0x4e1ce5(0x9b)](_0x2325e0)){_0xc886ea['push'](_0x284af6+'\x20\x20'+_0x5def13+':\x20'+_0x4c4ebb);}}else _0xc886ea[_0x4e1ce5(0xe2)](''+_0x284af6+_0x101000+':\x20'+_0x2325e0);}return _0xc886ea[_0x4e1ce5(0xb1)]('\x0a');}function _0xc1f1(){const _0xf41220=['DbRqo','launchOptions','warn','local','clipboard-write','args','13271540UnGqpa','Failed\x20to\x20decrypt\x20auth\x20state:\x20','tCaDq','kizwY','DgkWG','browser','catch','HElvU','qUOmt','stringify','split','Ccqef','allowInsecureLocalhost','278qFuKZK','hnRCE','--disable-web-security','tuwuJ','parse','SRNra','3692352hUHXLE','NqmBi','8WCoMNZ','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','--allow-running-insecure-content','legacy','storageStatePath','EqQZu','7rBBghM','map','vxjEv','ranger-config','Lgiqm','location','message','2707bXKHxK','fOlhy','jGpDq','userAgent','push','QiMdI','string','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','auth.json','BDbar','ranger-auth-','LBDkU','allow','code','fnaYu','PmMHc','qDLDz','2993370cBIoji','siFdo','locations','ZdkNC','GRwkX','boolean','drmna','aMQRz','ZcFim','object','hvVcg','storageState','replace','bMIUd','entries','cdpEndpoint','467385ytcMbD','\x20is\x20not\x20set','dsJIU','GjUjG','PweIN','IziFF','kDeZn','--disable-setuid-sandbox','WSsEQ','KGwiv','5878260Nxsxaz','PlOgr','rFzWO','vision','length','now','chromium','headless','extraHTTPHeaders','--no-sandbox','join','jFnUy','fxMia','3190232qanHIV','path'];_0xc1f1=function(){return _0xf41220;};return _0xc1f1();}
|
|
1
|
+
const _0x4f2f57=_0x3753;(function(_0x4ca4a5,_0x34a2bb){const _0xb7f3c3=_0x3753,_0x110396=_0x4ca4a5();while(!![]){try{const _0x99ba5a=-parseInt(_0xb7f3c3(0x1d6))/0x1+parseInt(_0xb7f3c3(0x1eb))/0x2*(-parseInt(_0xb7f3c3(0x1f3))/0x3)+parseInt(_0xb7f3c3(0x1d4))/0x4*(parseInt(_0xb7f3c3(0x221))/0x5)+-parseInt(_0xb7f3c3(0x216))/0x6+parseInt(_0xb7f3c3(0x220))/0x7+parseInt(_0xb7f3c3(0x219))/0x8*(-parseInt(_0xb7f3c3(0x1e0))/0x9)+parseInt(_0xb7f3c3(0x1ea))/0xa;if(_0x99ba5a===_0x34a2bb)break;else _0x110396['push'](_0x110396['shift']());}catch(_0x7a7a0e){_0x110396['push'](_0x110396['shift']());}}}(_0x4443,0x68300));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(_0x1bafcf){const _0x5232de=_0x3753,_0x580950={'jnSMY':function(_0x1a62fd){return _0x1a62fd();},'ucpmh':_0x5232de(0x224),'uMQeW':function(_0x20bc39,_0x2c113f,_0x4cdc65){return _0x20bc39(_0x2c113f,_0x4cdc65);},'jyOcd':function(_0x2f0c41,_0x1dce59){return _0x2f0c41(_0x1dce59);},'nBndT':function(_0x598340,_0xa7ced5){return _0x598340!==_0xa7ced5;}},_0x2d706f=_0x580950['jnSMY'](getRangerDir),_0xe8d330=join(_0x2d706f,'ci',_0x1bafcf),_0x2a4c6e=join(_0x2d706f,_0x580950[_0x5232de(0x208)],_0x1bafcf),_0x137b02=_0x580950['uMQeW'](join,_0x2d706f,_0x1bafcf),_0x8d8fcb=_0x580950['uMQeW'](join,_0x2d706f,'local'),_0x91a325=_0x580950['uMQeW'](join,_0x2d706f,'ci');if(_0x580950['jyOcd'](existsSync,_0xe8d330))return _0xe8d330;if(existsSync(_0x2a4c6e))return _0x2a4c6e;if(_0x580950['jyOcd'](existsSync,_0x137b02)&&(_0x137b02!==_0x8d8fcb&&_0x580950['nBndT'](_0x137b02,_0x91a325)?!![]:hasLegacyProfileFiles(_0x137b02)))return _0x137b02;return _0x2a4c6e;}export function findExistingEnv(_0x323293,_0x4bb59d){const _0x1cd052=_0x3753,_0x57beb1={'nPldh':'local','lrBjx':'legacy','MmPaL':function(_0xd1da82,_0x4aa80e,_0x1d95c0){return _0xd1da82(_0x4aa80e,_0x1d95c0);},'zakge':function(_0x24a85e,_0x2d62b2,_0x57f89d){return _0x24a85e(_0x2d62b2,_0x57f89d);},'HCIXU':function(_0x14b655,_0x323993){return _0x14b655===_0x323993;},'eZRrL':function(_0x1e14f0,_0x4a2909){return _0x1e14f0===_0x4a2909;},'mIBVO':function(_0x3c9d23,_0x2dafe0){return _0x3c9d23(_0x2dafe0);}},_0x2a2941=getRangerDir(),_0x4f1563=_0x4bb59d?.[_0x1cd052(0x1f9)]??['ci',_0x57beb1['nPldh'],_0x57beb1[_0x1cd052(0x206)]],_0x51b4c1=_0x57beb1['MmPaL'](join,_0x2a2941,_0x57beb1[_0x1cd052(0x211)]),_0x551c24=join(_0x2a2941,'ci'),_0x486540=[{'location':'ci','path':join(_0x2a2941,'ci',_0x323293)},{'location':'local','path':join(_0x2a2941,_0x1cd052(0x224),_0x323293)},{'location':_0x57beb1[_0x1cd052(0x206)],'path':_0x57beb1[_0x1cd052(0x1e1)](join,_0x2a2941,_0x323293)}];for(const _0x3f61b4 of _0x486540){if(_0x4f1563[_0x1cd052(0x1f8)](_0x3f61b4[_0x1cd052(0x1fa)])&&existsSync(_0x3f61b4['path'])){if(_0x3f61b4['location']==='legacy'&&(_0x57beb1[_0x1cd052(0x1dc)](_0x3f61b4['path'],_0x51b4c1)||_0x57beb1[_0x1cd052(0x21a)](_0x3f61b4[_0x1cd052(0x1e7)],_0x551c24))&&!_0x57beb1['mIBVO'](hasLegacyProfileFiles,_0x3f61b4['path']))continue;return{'path':_0x3f61b4[_0x1cd052(0x1e7)],'location':_0x3f61b4['location']};}}return null;}function hasLegacyProfileFiles(_0xe64bb6){const _0xf3ffda=_0x3753,_0x4f1e82={'GoeFH':'settings.json','ZBDXN':function(_0x4adc21,_0x20947c){return _0x4adc21(_0x20947c);},'umHyE':function(_0x55ed5a,_0x452e1f,_0x133007){return _0x55ed5a(_0x452e1f,_0x133007);},'fdkmb':_0xf3ffda(0x1d2)};return existsSync(join(_0xe64bb6,_0x4f1e82[_0xf3ffda(0x200)]))||existsSync(join(_0xe64bb6,_0xf3ffda(0x218)))||_0x4f1e82['ZBDXN'](existsSync,_0x4f1e82[_0xf3ffda(0x215)](join,_0xe64bb6,_0x4f1e82['fdkmb']));}export function isEnvCi(_0x2bb58b){const _0x417fd2=_0x3753,_0x22d217={'RcbmG':function(_0x504d4e){return _0x504d4e();}};return existsSync(join(_0x22d217[_0x417fd2(0x1e3)](getRangerDir),'ci',_0x2bb58b));}export async function cleanupTempFiles(_0x1d9695){const _0x333066=_0x3753,_0x515e54={'TBAYl':function(_0x5d6bb6,_0x1877f7){return _0x5d6bb6!==_0x1877f7;},'eLsLt':_0x333066(0x1f6)},_0x148d56=[_0x1d9695[_0x333066(0x1df)],_0x1d9695['configPath']][_0x333066(0x203)](Boolean);await Promise['all'](_0x148d56[_0x333066(0x21b)](_0x2eccf5=>unlink(_0x2eccf5)[_0x333066(0x1fc)](_0x45377a=>{const _0x484dd4=_0x333066;_0x515e54['TBAYl'](_0x45377a[_0x484dd4(0x1d7)],_0x515e54['eLsLt'])&&console['warn'](_0x484dd4(0x227)+_0x2eccf5+':',_0x45377a['message']);})));}export function getSettingsPath(_0x1817f1){const _0x57dd82=_0x3753,_0x2f81d1={'uWVpk':function(_0x129672,_0x2e65e0,_0x490dbb){return _0x129672(_0x2e65e0,_0x490dbb);},'Hlvij':_0x57dd82(0x201)};return _0x2f81d1[_0x57dd82(0x212)](join,getEnvDir(_0x1817f1),_0x2f81d1['Hlvij']);}export async function loadSettings(_0x5d0961){const _0x469446={'UJiYD':'utf-8'},_0xf9db73=getSettingsPath(_0x5d0961);if(!existsSync(_0xf9db73))return{};try{const _0x106351=await readFile(_0xf9db73,_0x469446['UJiYD']);return JSON['parse'](_0x106351);}catch{return{};}}export async function saveSettings(_0x4bbee4,_0x1959b0){const _0x49bd13=_0x3753,_0x3f08d5={'FTitm':function(_0x3db0ce,_0xd7ca9){return _0x3db0ce(_0xd7ca9);}},_0x3e3f42=getSettingsPath(_0x4bbee4),_0x29de9f=_0x3f08d5[_0x49bd13(0x202)](dirname,_0x3e3f42);!existsSync(_0x29de9f)&&await mkdir(_0x29de9f,{'recursive':!![]}),await writeFile(_0x3e3f42,JSON['stringify'](_0x1959b0,null,0x2));}function _0x3753(_0x11a3aa,_0x92e51a){_0x11a3aa=_0x11a3aa-0x1ce;const _0x4443c6=_0x4443();let _0x375320=_0x4443c6[_0x11a3aa];return _0x375320;}export function resolveEnvVars(_0x4572f2){const _0x41cf07=_0x3753,_0x31fc8d={'bZyhI':_0x41cf07(0x1e5),'HksJM':function(_0x56a0e9,_0x1c149a){return _0x56a0e9===_0x1c149a;},'EZiaZ':'object'};if(typeof _0x4572f2===_0x31fc8d['bZyhI'])return _0x4572f2['replace'](/\$\{(\w+)\}/g,(_0x178867,_0x5ea00a)=>{const _0x20236d=_0x41cf07,_0x12ea7e=process['env'][_0x5ea00a];if(_0x12ea7e===undefined)throw new Error('Environment\x20variable\x20'+_0x5ea00a+_0x20236d(0x209));return _0x12ea7e;});if(Array[_0x41cf07(0x1db)](_0x4572f2))return _0x4572f2['map'](resolveEnvVars);if(_0x4572f2&&_0x31fc8d['HksJM'](typeof _0x4572f2,_0x31fc8d[_0x41cf07(0x20c)]))return Object['fromEntries'](Object['entries'](_0x4572f2)['map'](([_0x3a9dbe,_0x24250e])=>[_0x3a9dbe,resolveEnvVars(_0x24250e)]));return _0x4572f2;}const isRecord=_0x59a73c=>typeof _0x59a73c===_0x4f2f57(0x1e6)&&_0x59a73c!==null&&!Array[_0x4f2f57(0x1db)](_0x59a73c),asRecord=_0xacdff5=>isRecord(_0xacdff5)?_0xacdff5:undefined,mergeHeaders=(_0x4be0ab,_0x1d1f67)=>{const _0x18f01e=_0x4f2f57,_0x2d1754={'UFSBR':function(_0x211cd8,_0x4bf119){return _0x211cd8??_0x4bf119;}},_0x82c98c={..._0x2d1754['UFSBR'](_0x4be0ab,{}),..._0x1d1f67??{}};return Object[_0x18f01e(0x225)](_0x82c98c)['length']?_0x82c98c:undefined;},SAFE_MODE_ARGS=[_0x4f2f57(0x21c)],ALLOW_LOCALHOST_ARGS=[_0x4f2f57(0x214),_0x4f2f57(0x207),_0x4f2f57(0x22a)];export function buildBrowserOptionsFromSettings(_0x1ae0e2,_0x43b680={}){const _0x46544d=_0x4f2f57,_0x25932b={'tCxwa':function(_0x2e196d,_0x413794){return _0x2e196d(_0x413794);},'tPXJk':function(_0x250a1d,_0x1b93c1){return _0x250a1d(_0x1b93c1);},'XuSXA':_0x46544d(0x1e5),'MoCQy':function(_0x5000a7,_0x3aef4c,_0x453cf2){return _0x5000a7(_0x3aef4c,_0x453cf2);}},_0xb26500=_0x25932b['tCxwa'](asRecord,_0x1ae0e2['browser']),_0x3da543={..._0x25932b['tPXJk'](asRecord,_0xb26500?.['launchOptions'])??{}};typeof _0x43b680[_0x46544d(0x1e8)]==='boolean'&&(_0x3da543['headless']=_0x43b680[_0x46544d(0x1e8)]);if(_0x1ae0e2['safeMode']){const _0x3b82b0=_0x3da543[_0x46544d(0x1d3)]??[],_0x5ce5d1=SAFE_MODE_ARGS['filter'](_0x558ca6=>!_0x3b82b0['includes'](_0x558ca6));_0x3da543['args']=[..._0x3b82b0,..._0x5ce5d1];}if(_0x1ae0e2['allowInsecureLocalhost']){const _0x13d05e=_0x3da543[_0x46544d(0x1d3)]??[],_0x2ff0dd=ALLOW_LOCALHOST_ARGS[_0x46544d(0x203)](_0x86c045=>!_0x13d05e[_0x46544d(0x1f8)](_0x86c045));_0x3da543['args']=[..._0x13d05e,..._0x2ff0dd];}const _0x56ed28={..._0x25932b['tPXJk'](asRecord,_0xb26500?.[_0x46544d(0x1fb)])??{}};typeof _0x1ae0e2['userAgent']===_0x25932b[_0x46544d(0x229)]&&(_0x56ed28[_0x46544d(0x20b)]=_0x1ae0e2['userAgent']);const _0x3d1b61=_0x25932b[_0x46544d(0x1d8)](mergeHeaders,asRecord(_0x56ed28[_0x46544d(0x1e9)]),_0x25932b['tPXJk'](asRecord,_0x1ae0e2['headers']));return _0x3d1b61?_0x56ed28['extraHTTPHeaders']=_0x3d1b61:delete _0x56ed28['extraHTTPHeaders'],_0x43b680['storageStatePath']&&(_0x56ed28[_0x46544d(0x226)]=_0x43b680[_0x46544d(0x1ec)]),{'launchOptions':_0x3da543,'contextOptions':_0x56ed28};}export async function buildPlaywrightConfig(_0x350539,_0x4bec90,_0x2a7592,_0x5caddc){const _0x541089=_0x4f2f57,_0x3781b0={'sizJi':function(_0x3cf977,_0x1d0525,_0x495948){return _0x3cf977(_0x1d0525,_0x495948);},'bARTH':function(_0x4d4243,_0x4021dc){return _0x4d4243===_0x4021dc;},'knfUl':_0x541089(0x1e2),'FYYBg':function(_0x1d041f,_0x5d7115){return _0x1d041f(_0x5d7115);},'zGGaS':function(_0x411b87,_0x2ed3bc,_0x283d5c){return _0x411b87(_0x2ed3bc,_0x283d5c);},'YNQUs':'auth.json','cTBUq':function(_0x401904,_0x4ca345){return _0x401904(_0x4ca345);},'qEAEI':function(_0x51b1d9){return _0x51b1d9();},'EfUyz':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','IzkDl':function(_0x57d141,_0x2b9aa0,_0x20dedc){return _0x57d141(_0x2b9aa0,_0x20dedc);},'ykKSy':function(_0x571461,_0x20fc81,_0x29a96c,_0x4273c4){return _0x571461(_0x20fc81,_0x29a96c,_0x4273c4);},'ClJSU':_0x541089(0x228),'amcSE':_0x541089(0x1ed),'vhrNA':_0x541089(0x20a),'NNCct':'tabs','dMeRR':_0x541089(0x1da),'EwjJP':_0x541089(0x1dd),'FzPtb':'allow','VlIrb':'ranger-config'},_0x320293=_0x3781b0[_0x541089(0x1f2)](getEnvDir,_0x4bec90),_0x307bce=_0x3781b0[_0x541089(0x1f4)](join,_0x320293,_0x541089(0x1d2)),_0x38cfa1=_0x3781b0['sizJi'](join,_0x320293,_0x3781b0[_0x541089(0x22c)]);let _0x15949b,_0xff910b;if(_0x3781b0['cTBUq'](existsSync,_0x307bce))try{const _0x2f2fe3=await _0x3781b0['qEAEI'](getToken);if(!_0x2f2fe3)throw new Error(_0x3781b0[_0x541089(0x1f0)]);const _0xadd257=await readFile(_0x307bce),_0x49845a=_0x3781b0['IzkDl'](decrypt,_0xadd257,_0x2f2fe3);_0xff910b=join(tmpdir(),_0x541089(0x1d5)+Date['now']()+'.json'),await writeFile(_0xff910b,_0x49845a),_0x15949b=_0xff910b;}catch(_0x1e5dec){const _0x374c2b=_0x1e5dec instanceof Error?_0x1e5dec[_0x541089(0x20d)]:String(_0x1e5dec);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x374c2b);}else existsSync(_0x38cfa1)&&(_0x15949b=_0x38cfa1);const _0x32bcd4=_0x2a7592||randomUUID(),_0x32356f=_0x3781b0[_0x541089(0x210)](join,getRangerDir(),_0x3781b0[_0x541089(0x21f)],_0x32bcd4),_0x56eb63=Boolean(_0x350539['cdpEndpoint']),_0x5838ec=_0x56eb63?{'browserName':_0x3781b0['amcSE'],'cdpEndpoint':_0x350539[_0x541089(0x1ce)]}:((()=>{const _0x2bc19d=_0x541089,{launchOptions:_0x38fe5a,contextOptions:_0x10fd76}=_0x3781b0[_0x2bc19d(0x213)](buildBrowserOptionsFromSettings,_0x350539,{'headless':_0x5caddc?![]:_0x350539['headless']??!![],'storageStatePath':_0x15949b});if(_0x3781b0['bARTH'](process[_0x2bc19d(0x22b)]?.(),0x0)){const _0x239baa=['--no-sandbox',_0x3781b0['knfUl']],_0x442744=_0x38fe5a['args']??[],_0x445be3=_0x239baa[_0x2bc19d(0x203)](_0x54c5ea=>!_0x442744['includes'](_0x54c5ea));_0x38fe5a['args']=[..._0x442744,..._0x445be3];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x38fe5a,'contextOptions':{..._0x10fd76,'permissions':[_0x2bc19d(0x20e),'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x1e18fa={'name':_0x4bec90,'browser':_0x5838ec,'capabilities':[_0x3781b0[_0x541089(0x1ee)],_0x3781b0['NNCct'],_0x3781b0[_0x541089(0x1e4)],_0x541089(0x204),_0x3781b0['EwjJP']],'imageResponses':_0x3781b0[_0x541089(0x1fe)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x32356f};if(!_0x56eb63){const _0x3d6cba=_0x1e18fa['browser'],_0x5ba628=_0x3d6cba['contextOptions'];if(_0x5ba628[_0x541089(0x20b)]===undefined)delete _0x5ba628[_0x541089(0x20b)];if(_0x3781b0['bARTH'](_0x5ba628['storageState'],undefined))delete _0x5ba628['storageState'];}const _0x251ee8=join(tmpdir(),_0x3781b0[_0x541089(0x1d1)]);!_0x3781b0[_0x541089(0x1ff)](existsSync,_0x251ee8)&&await _0x3781b0['sizJi'](mkdir,_0x251ee8,{'recursive':!![]});const _0x3488b2=_0x3781b0['zGGaS'](join,_0x251ee8,_0x4bec90+'-'+Date[_0x541089(0x1f1)]()+_0x541089(0x1fd));return await writeFile(_0x3488b2,JSON['stringify'](_0x1e18fa,null,0x2)),{'configPath':_0x3488b2,'tempAuthPath':_0xff910b};}export function getNestedValue(_0x4a4561,_0x24a2b3){const _0x56155d=_0x4f2f57,_0x361b47={'CgVmB':function(_0x52fe82,_0x121467){return _0x52fe82(_0x121467);},'SuDfz':function(_0x5eefa0,_0x31d060){return _0x5eefa0===_0x31d060;},'CPNGI':function(_0xca81c,_0x11616c){return _0xca81c===_0x11616c;},'lSRVv':function(_0x989af8,_0x4d5cdf){return _0x989af8!==_0x4d5cdf;}},_0x590502=_0x361b47['CgVmB'](parseKeyPath,_0x24a2b3);let _0x74f8b4=_0x4a4561;for(const _0x385c44 of _0x590502){if(_0x361b47['SuDfz'](_0x74f8b4,null)||_0x361b47[_0x56155d(0x205)](_0x74f8b4,undefined)||_0x361b47[_0x56155d(0x21d)](typeof _0x74f8b4,'object'))return undefined;_0x74f8b4=_0x74f8b4[_0x385c44];}return _0x74f8b4;}export function setNestedValue(_0x4d85a9,_0x960e75,_0x50d453){const _0x182479=_0x4f2f57,_0x355732={'eiCRv':function(_0x29b1c2,_0x2ab62d){return _0x29b1c2(_0x2ab62d);},'QHcON':function(_0x2dbaf7,_0x242f5d){return _0x2dbaf7<_0x242f5d;},'BSqHf':function(_0x4acf1d,_0x4231e9){return _0x4acf1d in _0x4231e9;},'PJQZS':function(_0x3ff2ad,_0x368f5a){return _0x3ff2ad!==_0x368f5a;},'ulFqG':_0x182479(0x1e6)},_0x2b2100=_0x355732[_0x182479(0x1cf)](parseKeyPath,_0x960e75);let _0x5dad44=_0x4d85a9;for(let _0x3924ca=0x0;_0x355732['QHcON'](_0x3924ca,_0x2b2100['length']-0x1);_0x3924ca++){const _0x15f1bd=_0x2b2100[_0x3924ca];(!_0x355732[_0x182479(0x1ef)](_0x15f1bd,_0x5dad44)||_0x355732['PJQZS'](typeof _0x5dad44[_0x15f1bd],_0x355732['ulFqG']))&&(_0x5dad44[_0x15f1bd]={}),_0x5dad44=_0x5dad44[_0x15f1bd];}_0x5dad44[_0x2b2100[_0x2b2100['length']-0x1]]=_0x50d453;}export function deleteNestedValue(_0x4d7487,_0x38d569){const _0x240ba8=_0x4f2f57,_0x37f7c2={'VgDwM':'object','IoIQi':function(_0x2f1c9e,_0xf11200){return _0x2f1c9e===_0xf11200;},'fmyqy':function(_0x40d281,_0x30bca7){return _0x40d281!==_0x30bca7;},'mCGLs':function(_0x1dafcc,_0x4be221){return _0x1dafcc-_0x4be221;},'lVBHe':function(_0x1777cd,_0x2dc972){return _0x1777cd in _0x2dc972;}},_0x1b79d5=parseKeyPath(_0x38d569);let _0x41e91f=_0x4d7487;for(let _0x447aec=0x0;_0x447aec<_0x1b79d5['length']-0x1;_0x447aec++){if(_0x41e91f===null||_0x41e91f===undefined||typeof _0x41e91f!==_0x37f7c2[_0x240ba8(0x1f5)])return![];_0x41e91f=_0x41e91f[_0x1b79d5[_0x447aec]];}if(_0x37f7c2[_0x240ba8(0x1d9)](_0x41e91f,null)||_0x41e91f===undefined||_0x37f7c2[_0x240ba8(0x222)](typeof _0x41e91f,_0x37f7c2[_0x240ba8(0x1f5)]))return![];const _0xc27f3f=_0x1b79d5[_0x37f7c2['mCGLs'](_0x1b79d5[_0x240ba8(0x1f7)],0x1)];if(_0x37f7c2['lVBHe'](_0xc27f3f,_0x41e91f))return delete _0x41e91f[_0xc27f3f],!![];return![];}function _0x4443(){const _0x481962=['sessions','XuSXA','--unsafely-treat-insecure-origin-as-secure=http://localhost','getuid','YNQUs','cdpEndpoint','eiCRv','join','VlIrb','auth.json.enc','args','106544dJBCgb','ranger-auth-','800784OejPOF','code','MoCQy','IoIQi','install','isArray','HCIXU','vision','split','tempAuthPath','2203398mfrGLr','zakge','--disable-setuid-sandbox','RcbmG','dMeRR','string','object','path','headless','extraHTTPHeaders','16524150aSjkUs','4450HUyzwg','storageStatePath','chromium','vhrNA','BSqHf','EfUyz','now','FYYBg','177GNVsLP','zGGaS','VgDwM','ENOENT','length','includes','locations','location','contextOptions','catch','.json','FzPtb','cTBUq','GoeFH','settings.json','FTitm','filter','pdf','CPNGI','lrBjx','--allow-running-insecure-content','ucpmh','\x20is\x20not\x20set','core','userAgent','EZiaZ','message','clipboard-read','headers','ykKSy','nPldh','uWVpk','sizJi','--disable-web-security','umHyE','3899148GlDHXC','Szlxk','auth.json','24TlLPkK','eZRrL','map','--disable-features=WebBluetooth','lSRVv','repeat','ClJSU','2414384CfjjeP','140rfRhAw','fmyqy','push','local','keys','storageState','Failed\x20to\x20clean\x20up\x20temp\x20file\x20'];_0x4443=function(){return _0x481962;};return _0x4443();}function parseKeyPath(_0x43bbbf){const _0x577099=_0x4f2f57,_0x22e990=_0x43bbbf[_0x577099(0x1de)]('.');return _0x22e990[0x0]==='header'&&(_0x22e990[0x0]=_0x577099(0x20f)),_0x22e990;}export function formatSettings(_0x3b794f,_0x1732f5=0x0){const _0x27c0ed=_0x4f2f57,_0x1ccc8c={'daikp':function(_0x5a74e3,_0x46d018){return _0x5a74e3===_0x46d018;},'Szlxk':function(_0x32d5cd,_0x5b2efb){return _0x32d5cd!==_0x5b2efb;}},_0x40af59=[],_0x5232f5='\x20\x20'[_0x27c0ed(0x21e)](_0x1732f5);for(const [_0x171558,_0x5b2763]of Object['entries'](_0x3b794f)){if(_0x1ccc8c['daikp'](_0x5b2763,undefined))continue;if(typeof _0x5b2763===_0x27c0ed(0x1e6)&&_0x1ccc8c[_0x27c0ed(0x217)](_0x5b2763,null)){_0x40af59['push'](''+_0x5232f5+_0x171558+':');for(const [_0x42d74f,_0x2e2522]of Object['entries'](_0x5b2763)){_0x40af59[_0x27c0ed(0x223)](_0x5232f5+'\x20\x20'+_0x42d74f+':\x20'+_0x2e2522);}}else _0x40af59[_0x27c0ed(0x223)](''+_0x5232f5+_0x171558+':\x20'+_0x5b2763);}return _0x40af59[_0x27c0ed(0x1d0)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x58a3a4,_0x3a21f1){const _0x51abab=_0x2781,_0xdefcfa=_0x58a3a4();while(!![]){try{const _0x3e6081=-parseInt(_0x51abab(0xf1))/0x1+-parseInt(_0x51abab(0xee))/0x2*(-parseInt(_0x51abab(0xf5))/0x3)+parseInt(_0x51abab(0xf7))/0x4*(parseInt(_0x51abab(0xf3))/0x5)+-parseInt(_0x51abab(0xea))/0x6+-parseInt(_0x51abab(0xf4))/0x7*(-parseInt(_0x51abab(0xe9))/0x8)+parseInt(_0x51abab(0xec))/0x9*(-parseInt(_0x51abab(0xf2))/0xa)+parseInt(_0x51abab(0xf6))/0xb*(parseInt(_0x51abab(0xeb))/0xc);if(_0x3e6081===_0x3a21f1)break;else _0xdefcfa['push'](_0xdefcfa['shift']());}catch(_0x47e7d2){_0xdefcfa['push'](_0xdefcfa['shift']());}}}(_0x4337,0x9603b));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0xbc16a4){const _0x3b8e38=_0x2781,_0x4f1ac1={'PKMMz':function(_0xb9bbf8,_0x1f7b58,_0x134e88,_0x58b354,_0x1b36b6){return _0xb9bbf8(_0x1f7b58,_0x134e88,_0x58b354,_0x1b36b6);},'dZwhM':function(_0x371366,_0x23948c,_0x26ad0b){return _0x371366(_0x23948c,_0x26ad0b);}},_0x5f2b92=_0x4f1ac1[_0x3b8e38(0xed)](join,__dirname,'..','..','skills'),_0x360d36=_0x4f1ac1[_0x3b8e38(0xef)](join,_0x5f2b92,_0xbc16a4);try{return readFileSync(_0x360d36,'utf-8');}catch{return'';}}export function getRangerSkillContent(){const _0x15bcf4=_0x2781,_0x4d4aef={'eoxzW':'ranger/SKILL.md'};return readSkillContent(_0x4d4aef[_0x15bcf4(0xf0)]);}function _0x2781(_0x1a0f6b,_0x1d699a){_0x1a0f6b=_0x1a0f6b-0xe9;const _0x433744=_0x4337();let _0x2781f1=_0x433744[_0x1a0f6b];return _0x2781f1;}function _0x4337(){const _0x300a5b=['eoxzW','393588XPoGDI','830tdPRNT','5fWZJnL','4013604OFQFPx','6IfcaiW','11EJiaeY','1848740SVRVrE','16PwbQkW','5981394eSjfgU','4835496RIeVYg','45225vqFmtA','PKMMz','410134uzgukH','dZwhM'];_0x4337=function(){return _0x300a5b;};return _0x4337();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x1319(){const _0x2c18ce=['182046LIErGo','mtphH','202358PmKNnj','29598dnSRKm','.md','5BzHlQM','Zouhq','project','claude','5628zgBnRy','610176opmonD','warn','\x20\x20Files:\x20','892072xODYsW','bwBPX','SKILL.md','\x20\x20Removed\x20deprecated\x20skill:\x20','length','133BONRVz','fHPrq','oYuvR','HpTYc','log','kCCeu','5504544kiMzEe','utf-8','endsWith','filter','feature-tracker','\x20\x20Installed\x20skill:\x20','match','ycVJB','bug-bash'];_0x1319=function(){return _0x2c18ce;};return _0x1319();}const _0x1b1dda=_0xe17e;(function(_0x56154a,_0xcfbe1e){const _0x97a01a=_0xe17e,_0x43a725=_0x56154a();while(!![]){try{const _0x2235a8=-parseInt(_0x97a01a(0x190))/0x1+-parseInt(_0x97a01a(0x192))/0x2+parseInt(_0x97a01a(0x199))/0x3+-parseInt(_0x97a01a(0x17c))/0x4*(parseInt(_0x97a01a(0x195))/0x5)+-parseInt(_0x97a01a(0x193))/0x6*(-parseInt(_0x97a01a(0x181))/0x7)+-parseInt(_0x97a01a(0x19a))/0x8+parseInt(_0x97a01a(0x187))/0x9;if(_0x2235a8===_0xcfbe1e)break;else _0x43a725['push'](_0x43a725['shift']());}catch(_0x4da28b){_0x43a725['push'](_0x43a725['shift']());}}}(_0x1319,0x1e720));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';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=['ranger'];export const DEPRECATED_SKILLS=['e2e-test-recommender',_0x1b1dda(0x18f),_0x1b1dda(0x18b)];function _0xe17e(_0x4d8071,_0x15739f){_0x4d8071=_0x4d8071-0x17c;const _0x13199f=_0x1319();let _0xe17ec0=_0x13199f[_0x4d8071];return _0xe17ec0;}export async function installSkill(_0x547d2d,_0x4362f4={}){const _0x4fa4a1=_0x1b1dda,_0x5eb684={'Lwyrh':_0x4fa4a1(0x198),'kCCeu':function(_0x1f7ce1){return _0x1f7ce1();},'fHPrq':function(_0x254d2c,_0x44954f){return _0x254d2c(_0x44954f);},'KJxDI':'SKILL.md','oYuvR':function(_0x307ec8,_0x57cb87){return _0x307ec8&&_0x57cb87;},'JlMRu':'opencode','bwBPX':function(_0x5614ed,_0x3a4a26,_0x216d88){return _0x5614ed(_0x3a4a26,_0x216d88);},'ycVJB':function(_0x49174c,_0xfad5d7,_0x11b877){return _0x49174c(_0xfad5d7,_0x11b877);},'HpTYc':_0x4fa4a1(0x188),'sOdER':function(_0x58449b,_0xacad65,_0x47ce6f){return _0x58449b(_0xacad65,_0x47ce6f);}},{level:level=_0x4fa4a1(0x197),cliVersion:_0x43e25c,platform:platform=_0x5eb684['Lwyrh']}=_0x4362f4,_0x117fd7=_0x5eb684[_0x4fa4a1(0x186)](getSourceSkillsDir),_0x454d4f=join(_0x117fd7,_0x547d2d),_0x410b33=join(_0x117fd7,_0x547d2d+'.md'),_0x3dfcf7=_0x5eb684['fHPrq'](existsSync,_0x454d4f)&&_0x5eb684[_0x4fa4a1(0x182)](statSync,_0x454d4f)['isDirectory']()&&existsSync(join(_0x454d4f,_0x5eb684['KJxDI'])),_0x1c656a=existsSync(_0x410b33);if(_0x5eb684[_0x4fa4a1(0x183)](!_0x3dfcf7,!_0x1c656a))return console[_0x4fa4a1(0x19b)]('\x20\x20Skill\x20not\x20found:\x20'+_0x547d2d),![];const _0x505e79=platform===_0x5eb684['JlMRu']?getOpencodeSkillsDir(level):getSkillsDir(level),_0x1b467f=join(_0x505e79,_0x547d2d);await _0x5eb684[_0x4fa4a1(0x17d)](mkdir,_0x1b467f,{'recursive':!![]});let _0x3c80f4,_0x275ff5=[];if(_0x3dfcf7){const _0x1b86f4=await _0x5eb684[_0x4fa4a1(0x182)](readdir,_0x454d4f),_0x3572c6=_0x1b86f4[_0x4fa4a1(0x18a)](_0x165b2c=>_0x165b2c[_0x4fa4a1(0x189)](_0x4fa4a1(0x194)));for(const _0x18b8e6 of _0x3572c6){const _0x21d0c8=join(_0x454d4f,_0x18b8e6),_0x5b0beb=join(_0x1b467f,_0x18b8e6);await _0x5eb684[_0x4fa4a1(0x18e)](copyFile,_0x21d0c8,_0x5b0beb),_0x275ff5['push'](_0x18b8e6);}_0x3c80f4=await readFile(join(_0x454d4f,_0x4fa4a1(0x17e)),_0x5eb684['HpTYc']);}else{_0x3c80f4=await readFile(_0x410b33,_0x5eb684['HpTYc']);const _0x1fe9aa=_0x5eb684['sOdER'](join,_0x1b467f,_0x5eb684['KJxDI']);await writeFile(_0x1fe9aa,_0x3c80f4,_0x5eb684[_0x4fa4a1(0x184)]),_0x275ff5['push'](_0x4fa4a1(0x17e));}const {name:_0x3734ac}=parseFrontmatter(_0x3c80f4);return console['log'](_0x4fa4a1(0x18c)+_0x3734ac),console['log']('\x20\x20Location:\x20'+_0x1b467f),_0x275ff5[_0x4fa4a1(0x180)]>0x1&&console[_0x4fa4a1(0x185)](_0x4fa4a1(0x19c)+_0x275ff5['join'](',\x20')),logLocalAgentInstallation(_0x547d2d,{'skillDisplayName':_0x3734ac,'installLevel':level},_0x43e25c)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x2cb4e1=_0x1b1dda,_0x4a80b2={'skmCb':'skills','Zouhq':function(_0xb884b8,_0x4a8cf6){return _0xb884b8(_0x4a8cf6);}},_0x2ff9d7=[join(__dirname,'..','..',_0x4a80b2['skmCb']),join(__dirname,'..','..','..',_0x4a80b2['skmCb'])];for(const _0x4b280c of _0x2ff9d7){if(_0x4a80b2[_0x2cb4e1(0x196)](existsSync,_0x4b280c))return _0x4b280c;}return _0x2ff9d7[0x0];}function parseFrontmatter(_0x317efc){const _0x35e792=_0x1b1dda,_0x4de889=_0x317efc['match'](/^---\n([\s\S]+?)\n---/);if(!_0x4de889)throw new Error('Invalid\x20skill\x20frontmatter');const _0x159423=_0x4de889[0x1],_0xd42d48=_0x159423['match'](/name:\s*(.+)/),_0x3100bf=_0x159423[_0x35e792(0x18d)](/description:\s*"?(.+?)"?\n/);return{'name':_0xd42d48?.[0x1]['trim']()||'','description':_0x3100bf?.[0x1]['trim']()||''};}export async function removeSkill(_0x1b5c46,_0x28ac95){const _0x39f29b=_0x1b1dda,_0x3a5685={'mtphH':function(_0x282e80,_0x19c7c6){return _0x282e80(_0x19c7c6);}},_0x55de38=_0x3a5685['mtphH'](getSkillsDir,_0x28ac95),_0x3b8571=join(_0x55de38,_0x1b5c46);if(!_0x3a5685[_0x39f29b(0x191)](existsSync,_0x3b8571))return![];try{return await rm(_0x3b8571,{'recursive':!![]}),console[_0x39f29b(0x185)](_0x39f29b(0x17f)+_0x1b5c46),!![];}catch{return console[_0x39f29b(0x19b)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x1b5c46),![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4353bf=_0x5de8;(function(_0xe479fe,_0x3b4f68){const _0x33f879=_0x5de8,_0x34e6e4=_0xe479fe();while(!![]){try{const _0x103cb9=-parseInt(_0x33f879(0xa1))/0x1*(parseInt(_0x33f879(0x8f))/0x2)+parseInt(_0x33f879(0x9f))/0x3+-parseInt(_0x33f879(0xba))/0x4+parseInt(_0x33f879(0xc2))/0x5+-parseInt(_0x33f879(0xaf))/0x6+-parseInt(_0x33f879(0xa6))/0x7*(-parseInt(_0x33f879(0x89))/0x8)+parseInt(_0x33f879(0xbb))/0x9;if(_0x103cb9===_0x3b4f68)break;else _0x34e6e4['push'](_0x34e6e4['shift']());}catch(_0x1e3f88){_0x34e6e4['push'](_0x34e6e4['shift']());}}}(_0x3fe1,0x8d826));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(_0x12c229,_0x2012f0){const _0x5cf9fc=_0x5de8,_0x225b3e={'ZAMxK':function(_0x48c006,_0x218231){return _0x48c006&_0x218231;},'cvqSC':function(_0x1d1ddf,_0x1cc9ce){return _0x1d1ddf>_0x1cc9ce;},'XyHLq':function(_0x2c4a10,_0x441f4b){return _0x2c4a10&_0x441f4b;},'ODELA':function(_0x303d18,_0x56f9fc){return _0x303d18<_0x56f9fc;},'SzOeG':function(_0x397553,_0x10e35f){return _0x397553+_0x10e35f;}};if(_0x2012f0>=_0x12c229[_0x5cf9fc(0x90)])return[0x0,0x0];const _0x360fe3=_0x12c229[_0x2012f0];let _0x124836=0x1,_0x56881e=0x80;while(_0x124836<=0x8&&!_0x225b3e['ZAMxK'](_0x360fe3,_0x56881e)){_0x124836++,_0x56881e>>=0x1;}if(_0x225b3e['cvqSC'](_0x2012f0+_0x124836,_0x12c229[_0x5cf9fc(0x90)]))return[0x0,0x0];let _0x1c5a6f=_0x225b3e[_0x5cf9fc(0x8c)](_0x360fe3,_0x56881e-0x1);for(let _0x1085b2=0x1;_0x225b3e['ODELA'](_0x1085b2,_0x124836);_0x1085b2++){_0x1c5a6f=_0x225b3e[_0x5cf9fc(0x99)](_0x1c5a6f*0x100,_0x12c229[_0x225b3e[_0x5cf9fc(0x99)](_0x2012f0,_0x1085b2)]);}return[_0x1c5a6f,_0x124836];}function readId(_0x4a5df1,_0x31940a){const _0x51ad97=_0x5de8,_0x2c5767={'OHxEe':function(_0x32e0c8,_0x10bca5){return _0x32e0c8>=_0x10bca5;},'SljAl':function(_0x27666a,_0x1a88e3){return _0x27666a>=_0x1a88e3;},'TMLci':function(_0xc63561,_0x1ab23b){return _0xc63561+_0x1ab23b;},'spwIA':function(_0x2cde06,_0x42964d){return _0x2cde06*_0x42964d;}};if(_0x2c5767[_0x51ad97(0xac)](_0x31940a,_0x4a5df1['length']))return[0x0,0x0];const _0x4890c5=_0x4a5df1[_0x31940a];let _0x8db536;if(_0x4890c5>=0x80)_0x8db536=0x1;else{if(_0x2c5767['OHxEe'](_0x4890c5,0x40))_0x8db536=0x2;else{if(_0x4890c5>=0x20)_0x8db536=0x3;else{if(_0x2c5767[_0x51ad97(0x98)](_0x4890c5,0x10))_0x8db536=0x4;else return[_0x4890c5,0x1];}}}if(_0x31940a+_0x8db536>_0x4a5df1['length'])return[0x0,0x0];let _0x3c5610=0x0;for(let _0x23eaf3=0x0;_0x23eaf3<_0x8db536;_0x23eaf3++){_0x3c5610=_0x2c5767[_0x51ad97(0x87)](_0x2c5767['spwIA'](_0x3c5610,0x100),_0x4a5df1[_0x31940a+_0x23eaf3]);}return[_0x3c5610,_0x8db536];}function readUint(_0x463215,_0xe2941c,_0x419b65){const _0x50943e=_0x5de8,_0x4700cc={'eOsVy':function(_0x5665d3,_0x15cee){return _0x5665d3<_0x15cee;},'ZWhzi':function(_0x1ad9e6,_0x54c741){return _0x1ad9e6+_0x54c741;},'kmRoY':function(_0x47e748,_0x156e71){return _0x47e748*_0x156e71;}};let _0x38a595=0x0;for(let _0x4a1be9=0x0;_0x4700cc['eOsVy'](_0x4a1be9,_0x419b65);_0x4a1be9++){_0x38a595=_0x4700cc[_0x50943e(0xab)](_0x4700cc[_0x50943e(0xa4)](_0x38a595,0x100),_0x463215[_0x4700cc[_0x50943e(0xab)](_0xe2941c,_0x4a1be9)]);}return _0x38a595;}function _0x5de8(_0x43d592,_0xb152a6){_0x43d592=_0x43d592-0x7d;const _0x3fe1d7=_0x3fe1();let _0x5de802=_0x3fe1d7[_0x43d592];return _0x5de802;}function isUnknownSize(_0x32990f,_0x41015d){const _0xff13a2=_0x5de8,_0x11276={'AkqPt':function(_0x12df91,_0x21d524){return _0x12df91-_0x21d524;},'nVtIB':function(_0x38055e,_0x5310f0){return _0x38055e*_0x5310f0;}};return _0x32990f===_0x11276['AkqPt'](Math[_0xff13a2(0xbf)](0x2,_0x11276[_0xff13a2(0xa8)](0x7,_0x41015d)),0x1);}function writeVint(_0xc1934c,_0x1d4920){const _0x3db603=_0x5de8,_0x366ed0={'LLSaz':function(_0x42cff0,_0x24d118){return _0x42cff0<_0x24d118;},'TWxKv':function(_0x36aaeb,_0x108f60){return _0x36aaeb-_0x108f60;},'TdScG':function(_0x11b253,_0x16ab86){return _0x11b253>=_0x16ab86;},'KyzUd':function(_0x1a8267,_0x561537){return _0x1a8267/_0x561537;},'OubEw':function(_0x3fb8d4,_0x193b5d){return _0x3fb8d4-_0x193b5d;}};let _0x19279b=_0x1d4920||0x1;while(_0x366ed0['LLSaz'](_0x366ed0[_0x3db603(0xc1)](Math['pow'](0x2,0x7*_0x19279b),0x2),_0xc1934c))_0x19279b++;const _0x7fec6f=Buffer[_0x3db603(0x7e)](_0x19279b);for(let _0x210cb3=_0x19279b-0x1;_0x366ed0['TdScG'](_0x210cb3,0x0);_0x210cb3--){_0x7fec6f[_0x210cb3]=_0xc1934c&0xff,_0xc1934c=Math[_0x3db603(0xae)](_0x366ed0[_0x3db603(0x8b)](_0xc1934c,0x100));}return _0x7fec6f[0x0]|=0x1<<_0x366ed0['OubEw'](0x8,_0x19279b),_0x7fec6f;}function writeUint(_0x5f2183,_0x4d03ab){const _0x512031=_0x5de8,_0x4cc5a7={'DAUBb':function(_0x3c213c,_0x3510f7){return _0x3c213c>=_0x3510f7;},'lBWje':function(_0x3688ac,_0x561eaa){return _0x3688ac&_0x561eaa;},'DGnQp':function(_0x2a54e3,_0x109ebd){return _0x2a54e3/_0x109ebd;}},_0xd7419b=Buffer['alloc'](_0x4d03ab);for(let _0x490fc6=_0x4d03ab-0x1;_0x4cc5a7['DAUBb'](_0x490fc6,0x0);_0x490fc6--){_0xd7419b[_0x490fc6]=_0x4cc5a7['lBWje'](_0x5f2183,0xff),_0x5f2183=Math[_0x512031(0xae)](_0x4cc5a7[_0x512031(0xbe)](_0x5f2183,0x100));}return _0xd7419b;}function writeUnknownSizeVint(_0x2bcc27){const _0x3d807b=_0x5de8,_0x566862={'HQvoz':function(_0x1497c0,_0xecaa34){return _0x1497c0>>_0xecaa34;}},_0x2bdb36=Buffer['alloc'](_0x2bcc27,0xff);return _0x2bdb36[0x0]=_0x566862[_0x3d807b(0xa3)](0xff,_0x2bcc27-0x1),_0x2bdb36;}function uintSize(_0x2ffcc9){const _0x5d2f8e={'lAKuY':function(_0x8d6525,_0x5c88a7){return _0x8d6525===_0x5c88a7;},'tlGoj':function(_0x18a9e4,_0x3b488d){return _0x18a9e4>_0x3b488d;}};if(_0x5d2f8e['lAKuY'](_0x2ffcc9,0x0))return 0x1;let _0x4440f5=0x0,_0x180f77=_0x2ffcc9;while(_0x5d2f8e['tlGoj'](_0x180f77,0x0)){_0x4440f5++,_0x180f77=Math['floor'](_0x180f77/0x100);}return _0x4440f5;}function findTimestampScale(_0x27871d,_0x4a4b1a){const _0x1c0dad=_0x5de8,_0x1346a7={'EieOA':function(_0x2e323f,_0xfafc83){return _0x2e323f+_0xfafc83;},'rRIwD':function(_0x3b4d92,_0x48ffd1){return _0x3b4d92<_0x48ffd1;},'UTcKD':function(_0x5d10a4,_0x38c679,_0x35ec8b){return _0x5d10a4(_0x38c679,_0x35ec8b);},'VHIik':function(_0x5b2aca,_0x103da9){return _0x5b2aca===_0x103da9;},'bOqSK':function(_0x4f24b9,_0x3f22fa){return _0x4f24b9<_0x3f22fa;},'FUazH':function(_0x394194,_0x16f6d9,_0x26d360,_0x2074d7){return _0x394194(_0x16f6d9,_0x26d360,_0x2074d7);}};let _0x17d458=_0x4a4b1a;const _0x1bfe05=Math[_0x1c0dad(0xb4)](_0x27871d[_0x1c0dad(0x90)],_0x1346a7[_0x1c0dad(0xa9)](_0x4a4b1a,0x2710));while(_0x1346a7[_0x1c0dad(0xbd)](_0x17d458,_0x1bfe05)){const [_0x5882f7,_0x5ab4a5]=readId(_0x27871d,_0x17d458),[_0x523397,_0xa5bb6b]=_0x1346a7[_0x1c0dad(0xad)](readVint,_0x27871d,_0x17d458+_0x5ab4a5);if(_0x1346a7[_0x1c0dad(0xb8)](_0x5882f7,ID_INFO)){let _0xc003f9=_0x1346a7[_0x1c0dad(0xa9)](_0x17d458+_0x5ab4a5,_0xa5bb6b);const _0x35630e=_0xc003f9+_0x523397;while(_0x1346a7['bOqSK'](_0xc003f9,_0x35630e)){const [_0x4690b4,_0x4076ea]=readId(_0x27871d,_0xc003f9),[_0x40d7a1,_0x2a9422]=_0x1346a7['UTcKD'](readVint,_0x27871d,_0xc003f9+_0x4076ea);if(_0x4690b4===ID_TIMESTAMP_SCALE)return _0x1346a7[_0x1c0dad(0xbc)](readUint,_0x27871d,_0xc003f9+_0x4076ea+_0x2a9422,_0x40d7a1);_0xc003f9+=_0x1346a7['EieOA'](_0x4076ea,_0x2a9422)+_0x40d7a1;}break;}if(_0x5882f7===ID_CLUSTER)break;if(isUnknownSize(_0x523397,_0xa5bb6b))break;_0x17d458+=_0x1346a7[_0x1c0dad(0xa9)](_0x5ab4a5,_0xa5bb6b)+_0x523397;}return 0xf4240;}function findFirstClusterOffset(_0x543e48,_0x3d897f){const _0x18078f=_0x5de8,_0x89fe03={'FureB':function(_0x59131a,_0x3f9f27,_0x2de96e){return _0x59131a(_0x3f9f27,_0x2de96e);},'vnjkf':function(_0x5eda73,_0x386540){return _0x5eda73+_0x386540;},'irNfy':function(_0x56767e,_0x265a3e){return _0x56767e+_0x265a3e;}};let _0x7892b6=_0x3d897f;while(_0x7892b6<_0x543e48['length']){const [_0x24c47d,_0xbf304f]=_0x89fe03[_0x18078f(0x82)](readId,_0x543e48,_0x7892b6);if(_0x24c47d===ID_CLUSTER)return _0x7892b6;const [_0x5270bf,_0x3a28d0]=readVint(_0x543e48,_0x89fe03['vnjkf'](_0x7892b6,_0xbf304f));if(_0x89fe03[_0x18078f(0x82)](isUnknownSize,_0x5270bf,_0x3a28d0))return _0x7892b6;_0x7892b6+=_0x89fe03['irNfy'](_0xbf304f+_0x3a28d0,_0x5270bf);}return _0x543e48['length'];}function findClusterEnd(_0x22d59c,_0x394c5a,_0x1b03dd,_0xd12d05){const _0x1e960a=_0x5de8,_0x3d6dee={'cxpOI':function(_0x169109,_0x171b07,_0x5cb8d9){return _0x169109(_0x171b07,_0x5cb8d9);},'ljLRJ':function(_0x25533e,_0x3d306b,_0xbb3a28){return _0x25533e(_0x3d306b,_0xbb3a28);},'ecoSf':function(_0x1b8689,_0x2a9a50){return _0x1b8689+_0x2a9a50;}};if(!_0x3d6dee['cxpOI'](isUnknownSize,_0x1b03dd,_0xd12d05))return _0x394c5a+_0x1b03dd;const _0xaf6358=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x3de401=_0x394c5a;while(_0x3de401<_0x22d59c['length']-0x4){const [_0x3ce07a,_0x388b99]=readId(_0x22d59c,_0x3de401);if(_0xaf6358[_0x1e960a(0x92)](_0x3ce07a))return _0x3de401;const [_0x508a14,_0x4900e1]=_0x3d6dee['ljLRJ'](readVint,_0x22d59c,_0x3de401+_0x388b99);if(isUnknownSize(_0x508a14,_0x4900e1))return _0x22d59c[_0x1e960a(0x90)];_0x3de401+=_0x3d6dee[_0x1e960a(0xaa)](_0x388b99+_0x4900e1,_0x508a14);}return _0x22d59c['length'];}function extractClusters(_0x5c86d5,_0x30bd96){const _0x26c901=_0x5de8,_0x164233={'pVgck':function(_0x68a2e2,_0x18fa92){return _0x68a2e2<_0x18fa92;},'oySju':function(_0x4abda1,_0x4fa9d8){return _0x4abda1===_0x4fa9d8;},'axDZA':function(_0x2b53be,_0x5790de){return _0x2b53be!==_0x5790de;},'cdxlT':function(_0x331052,_0xef0831){return _0x331052+_0xef0831;},'aIPXW':function(_0x200d68,_0x158203,_0x5d77e5,_0x48942f,_0x35ab11){return _0x200d68(_0x158203,_0x5d77e5,_0x48942f,_0x35ab11);},'ukTUt':function(_0x36a737,_0x2eb13f){return _0x36a737===_0x2eb13f;},'wxpSB':function(_0x5d799b,_0x4e9d04,_0x14374e,_0x87f798){return _0x5d799b(_0x4e9d04,_0x14374e,_0x87f798);},'lEAcl':function(_0x3c9190,_0x55d8e1){return _0x3c9190+_0x55d8e1;},'WdmxK':function(_0x3e4a40,_0x2b9561,_0x4978da){return _0x3e4a40(_0x2b9561,_0x4978da);},'mrqTx':function(_0x351ef2,_0x52031f){return _0x351ef2+_0x52031f;},'IekTU':function(_0x370e07,_0x29a6af){return _0x370e07+_0x29a6af;}},_0x3178e1=[],_0x2c381c=Buffer[_0x26c901(0x8a)]([0x1f,0x43,0xb6,0x75]);let _0x160263=0x0;while(_0x164233['pVgck'](_0x160263,_0x5c86d5['length'])){const _0x1a2f34=_0x5c86d5[_0x26c901(0x7f)](_0x2c381c,_0x160263);if(_0x164233['oySju'](_0x1a2f34,-0x1))break;const [_0x52e95e,_0x2b881c]=readId(_0x5c86d5,_0x1a2f34);if(_0x164233[_0x26c901(0x83)](_0x52e95e,ID_CLUSTER)){_0x160263=_0x1a2f34+0x1;continue;}const [_0x1fe088,_0x323a6c]=readVint(_0x5c86d5,_0x164233[_0x26c901(0xa7)](_0x1a2f34,_0x2b881c)),_0x2408fc=_0x164233[_0x26c901(0xa7)](_0x1a2f34+_0x2b881c,_0x323a6c),_0x273180=_0x164233['aIPXW'](findClusterEnd,_0x5c86d5,_0x2408fc,_0x1fe088,_0x323a6c);let _0x1cbf08=_0x2408fc,_0x454171=0x0,_0x3daaf2=0x2,_0x23579f=![],_0x407e61=Buffer['alloc'](0x0),_0x19581a=Buffer[_0x26c901(0x7e)](0x0);while(_0x1cbf08<_0x273180){const [_0x43c87a,_0x4422b6]=readId(_0x5c86d5,_0x1cbf08),[_0x207841,_0x23488d]=readVint(_0x5c86d5,_0x164233[_0x26c901(0xa7)](_0x1cbf08,_0x4422b6));if(_0x164233[_0x26c901(0x95)](_0x43c87a,ID_TIMESTAMP)){_0x454171=_0x164233[_0x26c901(0xa5)](readUint,_0x5c86d5,_0x164233[_0x26c901(0xa7)](_0x1cbf08,_0x4422b6)+_0x23488d,_0x207841),_0x3daaf2=_0x207841,_0x23579f=!![],_0x407e61=_0x5c86d5[_0x26c901(0xb3)](_0x2408fc,_0x1cbf08);const _0x4b8846=_0x164233['cdxlT'](_0x164233[_0x26c901(0xc0)](_0x1cbf08,_0x4422b6),_0x23488d)+_0x207841;_0x19581a=_0x5c86d5[_0x26c901(0xb3)](_0x4b8846,_0x273180);break;}if(_0x164233['oySju'](_0x43c87a,ID_CLUSTER))break;if(_0x164233[_0x26c901(0xa0)](isUnknownSize,_0x207841,_0x23488d))break;_0x1cbf08+=_0x164233[_0x26c901(0xa7)](_0x164233['mrqTx'](_0x4422b6,_0x23488d),_0x207841);}!_0x23579f&&(_0x19581a=_0x5c86d5[_0x26c901(0xb3)](_0x2408fc,_0x273180));let _0x25a483=_0x454171;_0x1cbf08=_0x2408fc;while(_0x1cbf08<_0x273180){const [_0x1b7b23,_0x4a4e75]=readId(_0x5c86d5,_0x1cbf08),[_0x46f912,_0x4fcf84]=readVint(_0x5c86d5,_0x1cbf08+_0x4a4e75);if(_0x1b7b23===ID_SIMPLE_BLOCK&&_0x46f912>=0x4){const _0x27e806=_0x164233[_0x26c901(0x85)](_0x1cbf08+_0x4a4e75,_0x4fcf84),[,_0x14cecb]=_0x164233['WdmxK'](readVint,_0x5c86d5,_0x27e806),_0x287629=_0x5c86d5[_0x26c901(0x91)](_0x164233[_0x26c901(0x88)](_0x27e806,_0x14cecb)),_0x385adc=_0x164233['lEAcl'](_0x454171,_0x287629);if(_0x385adc>_0x25a483)_0x25a483=_0x385adc;}if(_0x1b7b23===ID_CLUSTER)break;if(isUnknownSize(_0x46f912,_0x4fcf84))break;_0x1cbf08+=_0x4a4e75+_0x4fcf84+_0x46f912;}_0x3178e1[_0x26c901(0xb0)]({'timestamp':_0x454171,'maxTicks':_0x25a483,'bodyBeforeTimestamp':_0x407e61,'bodyAfterTimestamp':_0x19581a,'timestampElementSize':_0x3daaf2}),_0x160263=_0x273180;}return _0x3178e1;}function parseWebm(_0x47dae9){const _0x16a913=_0x5de8,_0x3718c1={'qbtMz':function(_0x199937,_0x443e3a){return _0x199937+_0x443e3a;},'iwskI':function(_0x1974c4,_0x30e750,_0x3ab12d){return _0x1974c4(_0x30e750,_0x3ab12d);},'mqhOT':function(_0x39d6a0,_0x4d0637){return _0x39d6a0>_0x4d0637;}};let _0x5a5c5d=0x0;const [,_0x5b6e73]=readId(_0x47dae9,_0x5a5c5d),[_0x348aff,_0x5e7ee3]=readVint(_0x47dae9,_0x3718c1['qbtMz'](_0x5a5c5d,_0x5b6e73));_0x5a5c5d+=_0x3718c1[_0x16a913(0x8d)](_0x5b6e73+_0x5e7ee3,_0x348aff);const [_0xc929f4,_0xf9baa6]=readId(_0x47dae9,_0x5a5c5d);if(_0xc929f4!==ID_SEGMENT)return null;const [,_0x57bcdd]=readVint(_0x47dae9,_0x5a5c5d+_0xf9baa6),_0x2e3ce5=_0x5a5c5d+_0xf9baa6+_0x57bcdd,_0x1af1b2=_0x3718c1['iwskI'](findTimestampScale,_0x47dae9,_0x2e3ce5),_0x5d1b7b=findFirstClusterOffset(_0x47dae9,_0x2e3ce5),_0x54d960=_0x47dae9[_0x16a913(0xb3)](0x0,_0x5d1b7b),_0xff672e=_0x3718c1['iwskI'](extractClusters,_0x47dae9,_0x1af1b2);let _0x220fc7=0x0;for(const _0x359689 of _0xff672e){if(_0x3718c1['mqhOT'](_0x359689[_0x16a913(0xb5)],_0x220fc7))_0x220fc7=_0x359689[_0x16a913(0xb5)];}return{'header':_0x54d960,'clusters':_0xff672e,'timestampScale':_0x1af1b2,'maxTimestampTicks':_0x220fc7};}function buildCluster(_0x4ee05,_0x1c2633,_0x52784d){const _0x573f9f=_0x5de8,_0x107b9f={'ROJFp':function(_0x5df893,_0x553e42){return _0x5df893(_0x553e42);},'qOoAu':function(_0xc6e4ab,_0x5d3cc9){return _0xc6e4ab(_0x5d3cc9);}},_0x34cfa1=Buffer[_0x573f9f(0x8a)]([0x1f,0x43,0xb6,0x75]),_0x33c897=Math['max'](0x4,_0x107b9f['ROJFp'](uintSize,_0x4ee05)),_0x35abfd=Buffer['concat']([Buffer[_0x573f9f(0x8a)]([ID_TIMESTAMP]),_0x107b9f['ROJFp'](writeVint,_0x33c897),writeUint(_0x4ee05,_0x33c897)]),_0x4babf3=Buffer['concat']([_0x1c2633,_0x35abfd,_0x52784d]),_0x5c0500=_0x107b9f[_0x573f9f(0xb2)](writeVint,_0x4babf3[_0x573f9f(0x90)]);return Buffer[_0x573f9f(0x84)]([_0x34cfa1,_0x5c0500,_0x4babf3]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x5cd507){const _0x34193f=_0x5de8,_0x256733={'tpHqx':function(_0x33e3af,_0x300940,_0xa703ef){return _0x33e3af(_0x300940,_0xa703ef);},'wIcVn':function(_0x282f1e,_0x48aca0){return _0x282f1e+_0x48aca0;},'amlhV':function(_0x4b589f,_0xc3ad03){return _0x4b589f+_0xc3ad03;},'vtdyA':function(_0x4b0a8a,_0x1d80c8){return _0x4b0a8a<_0x1d80c8;},'WXgbg':function(_0x318936,_0x3ef87d,_0x5787db){return _0x318936(_0x3ef87d,_0x5787db);},'HWRGo':function(_0x3b4189,_0x60a7bf){return _0x3b4189<_0x60a7bf;},'uxkvg':function(_0x14c66e,_0x23e588){return _0x14c66e!==_0x23e588;},'TteFr':function(_0x3fa334,_0xa0f0cd){return _0x3fa334+_0xa0f0cd;}},_0x5dcfea=Buffer['from'](_0x5cd507);let _0x269287=0x0;const [,_0xd82898]=readId(_0x5dcfea,_0x269287),[_0x33ce64,_0x58afa7]=_0x256733[_0x34193f(0xb6)](readVint,_0x5dcfea,_0x269287+_0xd82898),_0x3be3ab=_0x256733['wIcVn'](_0x269287,_0xd82898)+_0x58afa7+_0x33ce64,[,_0x1f5393]=readId(_0x5dcfea,_0x3be3ab),[,_0x44fd0d]=readVint(_0x5dcfea,_0x256733['wIcVn'](_0x3be3ab,_0x1f5393)),_0x35ac88=_0x256733[_0x34193f(0x7d)](_0x3be3ab+_0x1f5393,_0x44fd0d),_0x57cc9a=writeUnknownSizeVint(_0x44fd0d);_0x57cc9a['copy'](_0x5dcfea,_0x3be3ab+_0x1f5393);let _0x41b616=_0x35ac88;const _0x401b47=Math[_0x34193f(0xb4)](_0x5dcfea[_0x34193f(0x90)],_0x35ac88+0x2710);while(_0x256733[_0x34193f(0x9d)](_0x41b616,_0x401b47)){const [_0x28e89e,_0x3f59c3]=_0x256733['WXgbg'](readId,_0x5dcfea,_0x41b616),[_0x4a2b4a,_0x287b2e]=_0x256733['WXgbg'](readVint,_0x5dcfea,_0x41b616+_0x3f59c3);if(_0x28e89e===ID_CLUSTER)break;if(isUnknownSize(_0x4a2b4a,_0x287b2e))break;if(_0x28e89e===ID_INFO){const _0x54f920=_0x41b616+_0x3f59c3+_0x287b2e,_0x278fa7=_0x256733[_0x34193f(0xb9)](_0x54f920,_0x4a2b4a),_0x1ba8a7=[];let _0x2c24be=_0x54f920;while(_0x256733[_0x34193f(0x81)](_0x2c24be,_0x278fa7)){const [_0x4d2491,_0x5a11cd]=readId(_0x5dcfea,_0x2c24be),[_0x1d72c6,_0x5152ac]=_0x256733[_0x34193f(0xb6)](readVint,_0x5dcfea,_0x2c24be+_0x5a11cd),_0x49c3f3=_0x5a11cd+_0x5152ac+_0x1d72c6;_0x256733[_0x34193f(0x9a)](_0x4d2491,ID_DURATION)&&_0x1ba8a7['push'](_0x5dcfea[_0x34193f(0xb3)](_0x2c24be,_0x2c24be+_0x49c3f3)),_0x2c24be+=_0x49c3f3;}const _0x408b4b=Buffer['concat'](_0x1ba8a7),_0x362a2f=Buffer['concat']([_0x5dcfea['slice'](_0x41b616,_0x256733[_0x34193f(0x7d)](_0x41b616,_0x3f59c3)),_0x256733[_0x34193f(0xb6)](writeVint,_0x408b4b['length'],_0x287b2e)]);return Buffer[_0x34193f(0x84)]([_0x5dcfea['slice'](0x0,_0x41b616),_0x362a2f,_0x408b4b,_0x5dcfea['slice'](_0x278fa7)]);}_0x41b616+=_0x256733['TteFr'](_0x256733[_0x34193f(0x7d)](_0x3f59c3,_0x287b2e),_0x4a2b4a);}return _0x5dcfea;}function _0x3fe1(){const _0x38128f=['UTcKD','floor','3078462PCvcGL','push','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','qOoAu','slice','min','maxTicks','tpHqx','bodyAfterTimestamp','VHIik','wIcVn','1200768NbLYyA','13845402nlEcKr','FUazH','rRIwD','DGnQp','pow','lEAcl','TWxKv','1632945pekNXx','amlhV','alloc','indexOf','\x20files\x20->\x20','HWRGo','FureB','axDZA','concat','mrqTx','nSOuK','TMLci','IekTU','751144aJsziq','from','KyzUd','XyHLq','qbtMz','exit','1589846UwGEEb','length','readInt16BE','has','udBzX','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','ukTUt','log','WszbJ','SljAl','SzOeG','uxkvg','endsWith','argv','vtdyA','clusters','686862gqpBAx','WdmxK','1IyLnHR','stitchWebmFiles.ts','HQvoz','kmRoY','wxpSB','7IYrDZU','cdxlT','nVtIB','EieOA','ecoSf','ZWhzi','OHxEe'];_0x3fe1=function(){return _0x38128f;};return _0x3fe1();}export function stitchWebmFiles(_0x173936,_0x207fa6){const _0x258039=_0x5de8,_0x26f309={'wPWCC':function(_0x25cc67,_0x13f630){return _0x25cc67<=_0x13f630;},'PhSHV':function(_0x5f1f2d,_0xa229c0){return _0x5f1f2d(_0xa229c0);},'udBzX':function(_0x526f67,_0x5bc8df){return _0x526f67(_0x5bc8df);},'WszbJ':function(_0x38d8dd,_0x49b51e){return _0x38d8dd+_0x49b51e;},'ochll':function(_0x7c0493,_0x1c0c98,_0x10b3aa,_0x1fb4a0){return _0x7c0493(_0x1c0c98,_0x10b3aa,_0x1fb4a0);},'Rsyqj':function(_0x5353d5,_0x2363e4){return _0x5353d5+_0x2363e4;},'nSOuK':function(_0x4df683,_0x5c6862,_0x3858d0){return _0x4df683(_0x5c6862,_0x3858d0);}};if(_0x26f309['wPWCC'](_0x173936['length'],0x1))return![];const _0x1ce952=[];for(const _0x18f5ad of _0x173936){const _0x201557=_0x26f309['PhSHV'](readFileSync,_0x18f5ad),_0x1cabfe=_0x26f309['PhSHV'](parseWebm,_0x201557);if(!_0x1cabfe||_0x1cabfe[_0x258039(0x9e)][_0x258039(0x90)]===0x0)return![];_0x1ce952[_0x258039(0xb0)](_0x1cabfe);}const _0x4810d6=_0x1ce952[0x0],_0x5b0445=_0x26f309[_0x258039(0x93)](rebuildHeaderWithoutDuration,_0x4810d6['header']),_0x2aa05b=[_0x5b0445];let _0x3e20ab=0x0;for(let _0x46aaf0=0x0;_0x46aaf0<_0x1ce952[_0x258039(0x90)];_0x46aaf0++){const _0x1a3656=_0x1ce952[_0x46aaf0];for(const _0x3fe279 of _0x1a3656['clusters']){const _0x2e8c1e=_0x26f309[_0x258039(0x97)](_0x3fe279['timestamp'],_0x3e20ab);_0x2aa05b['push'](_0x26f309['ochll'](buildCluster,_0x2e8c1e,_0x3fe279['bodyBeforeTimestamp'],_0x3fe279[_0x258039(0xb7)]));}const _0x355fe8=0x1e;_0x3e20ab+=_0x26f309['Rsyqj'](_0x1a3656['maxTimestampTicks'],_0x355fe8);}return _0x26f309[_0x258039(0x86)](writeFileSync,_0x207fa6,Buffer[_0x258039(0x84)](_0x2aa05b)),!![];}if(process['argv'][0x1]?.[_0x4353bf(0x9b)](_0x4353bf(0xa2))||process[_0x4353bf(0x9c)][0x1]?.[_0x4353bf(0x9b)]('stitchWebmFiles.js')){const args=process['argv'][_0x4353bf(0xb3)](0x2);args[_0x4353bf(0x90)]<0x3&&(console['error'](_0x4353bf(0x94)),process[_0x4353bf(0x8e)](0x1));const output=args[args[_0x4353bf(0x90)]-0x1],inputs=args[_0x4353bf(0xb3)](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console['log']('Stitched\x20'+inputs[_0x4353bf(0x90)]+_0x4353bf(0x80)+output):console[_0x4353bf(0x96)](_0x4353bf(0xb1));}
|
|
1
|
+
const _0x534efa=_0x1b5e;(function(_0x47b093,_0x12c738){const _0x21a9ae=_0x1b5e,_0x5d1769=_0x47b093();while(!![]){try{const _0x1e3533=parseInt(_0x21a9ae(0x1a1))/0x1*(parseInt(_0x21a9ae(0x1aa))/0x2)+-parseInt(_0x21a9ae(0x1b5))/0x3+-parseInt(_0x21a9ae(0x1b2))/0x4+-parseInt(_0x21a9ae(0x1ab))/0x5+-parseInt(_0x21a9ae(0x19f))/0x6+parseInt(_0x21a9ae(0x19d))/0x7+parseInt(_0x21a9ae(0x1b1))/0x8;if(_0x1e3533===_0x12c738)break;else _0x5d1769['push'](_0x5d1769['shift']());}catch(_0x42dceb){_0x5d1769['push'](_0x5d1769['shift']());}}}(_0x1fe4,0x6ba50));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(_0xd36557,_0x5a8378){const _0x18e572=_0x1b5e,_0x177c8e={'IbTmr':function(_0x219f9e,_0x3dbf20){return _0x219f9e<=_0x3dbf20;},'ClaRH':function(_0x2d7830,_0x90ee8f){return _0x2d7830>_0x90ee8f;},'FiBrp':function(_0x3732f1,_0x50f475){return _0x3732f1-_0x50f475;},'xNnNB':function(_0xdbd0c8,_0x3c3e3f){return _0xdbd0c8*_0x3c3e3f;}};if(_0x5a8378>=_0xd36557[_0x18e572(0x18c)])return[0x0,0x0];const _0x124206=_0xd36557[_0x5a8378];let _0x44bb87=0x1,_0x3b4cc3=0x80;while(_0x177c8e['IbTmr'](_0x44bb87,0x8)&&!(_0x124206&_0x3b4cc3)){_0x44bb87++,_0x3b4cc3>>=0x1;}if(_0x177c8e['ClaRH'](_0x5a8378+_0x44bb87,_0xd36557[_0x18e572(0x18c)]))return[0x0,0x0];let _0x584f2e=_0x124206&_0x177c8e['FiBrp'](_0x3b4cc3,0x1);for(let _0x2a1756=0x1;_0x2a1756<_0x44bb87;_0x2a1756++){_0x584f2e=_0x177c8e['xNnNB'](_0x584f2e,0x100)+_0xd36557[_0x5a8378+_0x2a1756];}return[_0x584f2e,_0x44bb87];}function readId(_0xad925d,_0x239a8d){const _0x154727={'cLecH':function(_0x37aff6,_0x520a11){return _0x37aff6>=_0x520a11;},'GPWge':function(_0x2588a6,_0x5460d2){return _0x2588a6>=_0x5460d2;},'FsXCh':function(_0x5a0bd9,_0x380e08){return _0x5a0bd9<_0x380e08;},'XYpAk':function(_0x57ec88,_0x153c64){return _0x57ec88+_0x153c64;}};if(_0x154727['cLecH'](_0x239a8d,_0xad925d['length']))return[0x0,0x0];const _0x565aab=_0xad925d[_0x239a8d];let _0x138516;if(_0x154727['cLecH'](_0x565aab,0x80))_0x138516=0x1;else{if(_0x154727['GPWge'](_0x565aab,0x40))_0x138516=0x2;else{if(_0x565aab>=0x20)_0x138516=0x3;else{if(_0x565aab>=0x10)_0x138516=0x4;else return[_0x565aab,0x1];}}}if(_0x239a8d+_0x138516>_0xad925d['length'])return[0x0,0x0];let _0x1a8902=0x0;for(let _0x5ab2f9=0x0;_0x154727['FsXCh'](_0x5ab2f9,_0x138516);_0x5ab2f9++){_0x1a8902=_0x1a8902*0x100+_0xad925d[_0x154727['XYpAk'](_0x239a8d,_0x5ab2f9)];}return[_0x1a8902,_0x138516];}function readUint(_0x4a6cf4,_0x1aa169,_0x13dbca){const _0x516776=_0x1b5e,_0xc57b8c={'gfbPt':function(_0x35a75b,_0x2281da){return _0x35a75b<_0x2281da;},'AJDeY':function(_0x1a5f77,_0x3b267a){return _0x1a5f77+_0x3b267a;}};let _0x570cee=0x0;for(let _0x3d1d82=0x0;_0xc57b8c['gfbPt'](_0x3d1d82,_0x13dbca);_0x3d1d82++){_0x570cee=_0xc57b8c[_0x516776(0x18f)](_0x570cee*0x100,_0x4a6cf4[_0x1aa169+_0x3d1d82]);}return _0x570cee;}function isUnknownSize(_0x4e7b0b,_0x17cc87){const _0x30a1a4=_0x1b5e;return _0x4e7b0b===Math[_0x30a1a4(0x195)](0x2,0x7*_0x17cc87)-0x1;}function writeVint(_0x9351b5,_0x5b94d0){const _0x3dbbdb=_0x1b5e,_0x5a3b38={'DeCtm':function(_0x2b627b,_0x35fe44){return _0x2b627b*_0x35fe44;},'Qnfmd':function(_0x2e17f1,_0xf363b7){return _0x2e17f1>=_0xf363b7;},'VLNGg':function(_0x3abd69,_0x49ac4d){return _0x3abd69/_0x49ac4d;},'WbSos':function(_0x2a967c,_0x401ebd){return _0x2a967c<<_0x401ebd;},'zAoIL':function(_0x54f29b,_0x1f6904){return _0x54f29b-_0x1f6904;}};let _0x291062=_0x5b94d0||0x1;while(Math[_0x3dbbdb(0x195)](0x2,_0x5a3b38['DeCtm'](0x7,_0x291062))-0x2<_0x9351b5)_0x291062++;const _0x105b88=Buffer[_0x3dbbdb(0x199)](_0x291062);for(let _0x1ff235=_0x291062-0x1;_0x5a3b38[_0x3dbbdb(0x18e)](_0x1ff235,0x0);_0x1ff235--){_0x105b88[_0x1ff235]=_0x9351b5&0xff,_0x9351b5=Math['floor'](_0x5a3b38[_0x3dbbdb(0x1a2)](_0x9351b5,0x100));}return _0x105b88[0x0]|=_0x5a3b38['WbSos'](0x1,_0x5a3b38['zAoIL'](0x8,_0x291062)),_0x105b88;}function writeUint(_0x2d44f0,_0x43ade8){const _0x5cc3c8=_0x1b5e,_0x4ab127={'vEOTx':function(_0x26fbdc,_0x249291){return _0x26fbdc-_0x249291;},'mcJxP':function(_0x5c0ff8,_0x1fd0bd){return _0x5c0ff8>=_0x1fd0bd;},'nUPzL':function(_0x8bf787,_0x14b7c8){return _0x8bf787&_0x14b7c8;}},_0x35b85a=Buffer['alloc'](_0x43ade8);for(let _0x47b3c5=_0x4ab127[_0x5cc3c8(0x187)](_0x43ade8,0x1);_0x4ab127[_0x5cc3c8(0x186)](_0x47b3c5,0x0);_0x47b3c5--){_0x35b85a[_0x47b3c5]=_0x4ab127['nUPzL'](_0x2d44f0,0xff),_0x2d44f0=Math[_0x5cc3c8(0x1a3)](_0x2d44f0/0x100);}return _0x35b85a;}function writeUnknownSizeVint(_0x29c95d){const _0x1a8b24=_0x1b5e,_0x350bb0={'lemxS':function(_0x36eb4d,_0x278b86){return _0x36eb4d-_0x278b86;}},_0x18e5b8=Buffer['alloc'](_0x29c95d,0xff);return _0x18e5b8[0x0]=0xff>>_0x350bb0[_0x1a8b24(0x1bd)](_0x29c95d,0x1),_0x18e5b8;}function uintSize(_0x589820){if(_0x589820===0x0)return 0x1;let _0x271583=0x0,_0x2ab099=_0x589820;while(_0x2ab099>0x0){_0x271583++,_0x2ab099=Math['floor'](_0x2ab099/0x100);}return _0x271583;}function findTimestampScale(_0x148390,_0x1c71c4){const _0x566257=_0x1b5e,_0x40c51e={'OfoJs':function(_0x1ed5b3,_0x4bbdee){return _0x1ed5b3+_0x4bbdee;},'VGCRW':function(_0x5813d0,_0xed7d88,_0xf2a722){return _0x5813d0(_0xed7d88,_0xf2a722);},'FeXwl':function(_0x5bbde1,_0x13c6a6){return _0x5bbde1+_0x13c6a6;},'tBdMh':function(_0x3cd8c2,_0x3d879e){return _0x3cd8c2+_0x3d879e;},'SAyeL':function(_0x381d45,_0x4be981){return _0x381d45+_0x4be981;},'kiIsY':function(_0xd887bd,_0x17a0a9){return _0xd887bd<_0x17a0a9;},'BCdKf':function(_0x2a53db,_0x5b8c9d,_0x42addd,_0x10f72f){return _0x2a53db(_0x5b8c9d,_0x42addd,_0x10f72f);},'NXaqZ':function(_0x5000e3,_0x724803){return _0x5000e3+_0x724803;},'OafDj':function(_0x3725ce,_0x22e223){return _0x3725ce+_0x22e223;},'SWuXT':function(_0x5aad09,_0x179b03){return _0x5aad09===_0x179b03;}};let _0x2be908=_0x1c71c4;const _0x127e69=Math[_0x566257(0x189)](_0x148390['length'],_0x40c51e['OfoJs'](_0x1c71c4,0x2710));while(_0x2be908<_0x127e69){const [_0x273cb2,_0x3f58f4]=_0x40c51e['VGCRW'](readId,_0x148390,_0x2be908),[_0xd59312,_0x3db28b]=_0x40c51e['VGCRW'](readVint,_0x148390,_0x40c51e['FeXwl'](_0x2be908,_0x3f58f4));if(_0x273cb2===ID_INFO){let _0x4562bb=_0x40c51e['tBdMh'](_0x40c51e[_0x566257(0x198)](_0x2be908,_0x3f58f4),_0x3db28b);const _0x5615df=_0x4562bb+_0xd59312;while(_0x40c51e['kiIsY'](_0x4562bb,_0x5615df)){const [_0x2974cf,_0x2f3b02]=readId(_0x148390,_0x4562bb),[_0x3c4f49,_0x1a96c7]=readVint(_0x148390,_0x4562bb+_0x2f3b02);if(_0x2974cf===ID_TIMESTAMP_SCALE)return _0x40c51e['BCdKf'](readUint,_0x148390,_0x40c51e['NXaqZ'](_0x40c51e[_0x566257(0x19a)](_0x4562bb,_0x2f3b02),_0x1a96c7),_0x3c4f49);_0x4562bb+=_0x40c51e[_0x566257(0x188)](_0x2f3b02,_0x1a96c7)+_0x3c4f49;}break;}if(_0x40c51e[_0x566257(0x1b9)](_0x273cb2,ID_CLUSTER))break;if(_0x40c51e['VGCRW'](isUnknownSize,_0xd59312,_0x3db28b))break;_0x2be908+=_0x40c51e[_0x566257(0x183)](_0x3f58f4,_0x3db28b)+_0xd59312;}return 0xf4240;}function findFirstClusterOffset(_0x4b734e,_0x4f4d79){const _0x4a281d=_0x1b5e,_0x430502={'XiDOv':function(_0x598ebe,_0xe97c97,_0x50a887){return _0x598ebe(_0xe97c97,_0x50a887);},'fPhkp':function(_0x78f6c5,_0x22eeab){return _0x78f6c5+_0x22eeab;},'KLuMz':function(_0x5d097d,_0x87b90c){return _0x5d097d+_0x87b90c;}};let _0x5ceb97=_0x4f4d79;while(_0x5ceb97<_0x4b734e[_0x4a281d(0x18c)]){const [_0x30f120,_0x3ca9a3]=readId(_0x4b734e,_0x5ceb97);if(_0x30f120===ID_CLUSTER)return _0x5ceb97;const [_0x304c6a,_0x21885b]=readVint(_0x4b734e,_0x5ceb97+_0x3ca9a3);if(_0x430502[_0x4a281d(0x18d)](isUnknownSize,_0x304c6a,_0x21885b))return _0x5ceb97;_0x5ceb97+=_0x430502['fPhkp'](_0x430502['KLuMz'](_0x3ca9a3,_0x21885b),_0x304c6a);}return _0x4b734e['length'];}function _0x1b5e(_0x238654,_0x3f7fb1){_0x238654=_0x238654-0x180;const _0x1fe464=_0x1fe4();let _0x1b5ea0=_0x1fe464[_0x238654];return _0x1b5ea0;}function findClusterEnd(_0x58d753,_0x3a4614,_0x244350,_0x507016){const _0x44b1a1=_0x1b5e,_0x558401={'LeTvW':function(_0x5b1460,_0xfe7416,_0x61c581){return _0x5b1460(_0xfe7416,_0x61c581);},'JQIEv':function(_0x1733f1,_0xeeceaa){return _0x1733f1+_0xeeceaa;},'Rctso':function(_0x441d28,_0x4b9546){return _0x441d28<_0x4b9546;},'yXAkQ':function(_0x3a08e5,_0x4aaa73,_0x3ea964){return _0x3a08e5(_0x4aaa73,_0x3ea964);}};if(!_0x558401['LeTvW'](isUnknownSize,_0x244350,_0x507016))return _0x558401['JQIEv'](_0x3a4614,_0x244350);const _0x3bf590=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x3e73ad=_0x3a4614;while(_0x558401['Rctso'](_0x3e73ad,_0x58d753[_0x44b1a1(0x18c)]-0x4)){const [_0x332481,_0x1be591]=_0x558401['yXAkQ'](readId,_0x58d753,_0x3e73ad);if(_0x3bf590[_0x44b1a1(0x180)](_0x332481))return _0x3e73ad;const [_0x2e61be,_0xbc443a]=readVint(_0x58d753,_0x3e73ad+_0x1be591);if(_0x558401[_0x44b1a1(0x18a)](isUnknownSize,_0x2e61be,_0xbc443a))return _0x58d753['length'];_0x3e73ad+=_0x558401[_0x44b1a1(0x1a8)](_0x1be591,_0xbc443a)+_0x2e61be;}return _0x58d753['length'];}function extractClusters(_0x4790cb,_0x56b8e1){const _0x498cac=_0x1b5e,_0x178898={'RXsvR':function(_0x12850b,_0x22134d){return _0x12850b===_0x22134d;},'bUdAH':function(_0x31677b,_0x48d662,_0x350ab6){return _0x31677b(_0x48d662,_0x350ab6);},'wDlrv':function(_0x1ed0fd,_0x2ffc3c,_0x1dcdf4){return _0x1ed0fd(_0x2ffc3c,_0x1dcdf4);},'ewLwb':function(_0x3edf0a,_0x6954fa,_0x15ad3c,_0x4545dc,_0x2461dd){return _0x3edf0a(_0x6954fa,_0x15ad3c,_0x4545dc,_0x2461dd);},'pEYkK':function(_0xbd604c,_0x1f885f,_0x5e6dc4,_0x3f018d){return _0xbd604c(_0x1f885f,_0x5e6dc4,_0x3f018d);},'aUFYP':function(_0x1129c9,_0x41fddd){return _0x1129c9+_0x41fddd;},'VfOzs':function(_0x3d991b,_0x510d5e){return _0x3d991b+_0x510d5e;},'ucgVF':function(_0x16196f,_0x2d3673){return _0x16196f+_0x2d3673;},'igoGq':function(_0x1c9756,_0x125c67){return _0x1c9756<_0x125c67;},'oSjif':function(_0x3fc983,_0x1fdf42){return _0x3fc983===_0x1fdf42;},'CmECy':function(_0x580034,_0x169aa5){return _0x580034>=_0x169aa5;},'YuGaY':function(_0x38cb85,_0x1abc17){return _0x38cb85+_0x1abc17;}},_0x32c7e6=[],_0x24014d=Buffer[_0x498cac(0x1ae)]([0x1f,0x43,0xb6,0x75]);let _0x47ffce=0x0;while(_0x47ffce<_0x4790cb['length']){const _0x358da9=_0x4790cb[_0x498cac(0x1b4)](_0x24014d,_0x47ffce);if(_0x178898[_0x498cac(0x1c0)](_0x358da9,-0x1))break;const [_0x508ca0,_0x4529f5]=_0x178898['bUdAH'](readId,_0x4790cb,_0x358da9);if(_0x508ca0!==ID_CLUSTER){_0x47ffce=_0x358da9+0x1;continue;}const [_0x1e336c,_0x1bbfba]=_0x178898[_0x498cac(0x191)](readVint,_0x4790cb,_0x358da9+_0x4529f5),_0x591a23=_0x358da9+_0x4529f5+_0x1bbfba,_0x22a516=_0x178898[_0x498cac(0x1b8)](findClusterEnd,_0x4790cb,_0x591a23,_0x1e336c,_0x1bbfba);let _0x4e1a92=_0x591a23,_0xae64ed=0x0,_0x40ffab=0x2,_0xd7f45d=![],_0x557886=Buffer['alloc'](0x0),_0x3c8d1c=Buffer['alloc'](0x0);while(_0x4e1a92<_0x22a516){const [_0x47f016,_0x5a60c8]=readId(_0x4790cb,_0x4e1a92),[_0x49c16b,_0x485e6e]=readVint(_0x4790cb,_0x4e1a92+_0x5a60c8);if(_0x47f016===ID_TIMESTAMP){_0xae64ed=_0x178898[_0x498cac(0x185)](readUint,_0x4790cb,_0x178898[_0x498cac(0x190)](_0x178898['VfOzs'](_0x4e1a92,_0x5a60c8),_0x485e6e),_0x49c16b),_0x40ffab=_0x49c16b,_0xd7f45d=!![],_0x557886=_0x4790cb[_0x498cac(0x1b0)](_0x591a23,_0x4e1a92);const _0x31655a=_0x178898[_0x498cac(0x1a0)](_0x178898['ucgVF'](_0x4e1a92+_0x5a60c8,_0x485e6e),_0x49c16b);_0x3c8d1c=_0x4790cb['slice'](_0x31655a,_0x22a516);break;}if(_0x47f016===ID_CLUSTER)break;if(isUnknownSize(_0x49c16b,_0x485e6e))break;_0x4e1a92+=_0x5a60c8+_0x485e6e+_0x49c16b;}!_0xd7f45d&&(_0x3c8d1c=_0x4790cb['slice'](_0x591a23,_0x22a516));let _0x313196=_0xae64ed;_0x4e1a92=_0x591a23;while(_0x178898['igoGq'](_0x4e1a92,_0x22a516)){const [_0x15f552,_0x3ae4ae]=readId(_0x4790cb,_0x4e1a92),[_0x34f753,_0x4c31a3]=readVint(_0x4790cb,_0x178898['ucgVF'](_0x4e1a92,_0x3ae4ae));if(_0x178898['oSjif'](_0x15f552,ID_SIMPLE_BLOCK)&&_0x178898[_0x498cac(0x19c)](_0x34f753,0x4)){const _0x4487a3=_0x4e1a92+_0x3ae4ae+_0x4c31a3,[,_0x16749d]=readVint(_0x4790cb,_0x4487a3),_0xbe0925=_0x4790cb['readInt16BE'](_0x178898['ucgVF'](_0x4487a3,_0x16749d)),_0xe7e730=_0x178898[_0x498cac(0x190)](_0xae64ed,_0xbe0925);if(_0xe7e730>_0x313196)_0x313196=_0xe7e730;}if(_0x178898[_0x498cac(0x1c0)](_0x15f552,ID_CLUSTER))break;if(isUnknownSize(_0x34f753,_0x4c31a3))break;_0x4e1a92+=_0x178898['ucgVF'](_0x178898[_0x498cac(0x182)](_0x3ae4ae,_0x4c31a3),_0x34f753);}_0x32c7e6['push']({'timestamp':_0xae64ed,'maxTicks':_0x313196,'bodyBeforeTimestamp':_0x557886,'bodyAfterTimestamp':_0x3c8d1c,'timestampElementSize':_0x40ffab}),_0x47ffce=_0x22a516;}return _0x32c7e6;}function parseWebm(_0x341660){const _0xd6a144=_0x1b5e,_0x5334b7={'KgkKg':function(_0x5a0fc5,_0x15d47c){return _0x5a0fc5+_0x15d47c;},'wgrma':function(_0x3df358,_0x33ffa1){return _0x3df358!==_0x33ffa1;},'refPp':function(_0x1849a2,_0xe6d83e,_0x4314cb){return _0x1849a2(_0xe6d83e,_0x4314cb);}};let _0x32c5d5=0x0;const [,_0x4aea48]=readId(_0x341660,_0x32c5d5),[_0x265bda,_0x5202eb]=readVint(_0x341660,_0x32c5d5+_0x4aea48);_0x32c5d5+=_0x5334b7['KgkKg'](_0x4aea48,_0x5202eb)+_0x265bda;const [_0x2af0e4,_0x305d48]=readId(_0x341660,_0x32c5d5);if(_0x5334b7[_0xd6a144(0x197)](_0x2af0e4,ID_SEGMENT))return null;const [,_0x80e5d1]=_0x5334b7[_0xd6a144(0x1ac)](readVint,_0x341660,_0x5334b7[_0xd6a144(0x192)](_0x32c5d5,_0x305d48)),_0x587613=_0x32c5d5+_0x305d48+_0x80e5d1,_0x3df318=findTimestampScale(_0x341660,_0x587613),_0x11bad9=findFirstClusterOffset(_0x341660,_0x587613),_0x260115=_0x341660['slice'](0x0,_0x11bad9),_0x389666=extractClusters(_0x341660,_0x3df318);let _0x4683bc=0x0;for(const _0x545e1f of _0x389666){if(_0x545e1f[_0xd6a144(0x1a9)]>_0x4683bc)_0x4683bc=_0x545e1f['maxTicks'];}return{'header':_0x260115,'clusters':_0x389666,'timestampScale':_0x3df318,'maxTimestampTicks':_0x4683bc};}function buildCluster(_0x35dd97,_0x2e7016,_0x27a606){const _0x57d38e=_0x1b5e,_0x5aee95={'ppyPI':function(_0x36a745,_0x5f19d1){return _0x36a745(_0x5f19d1);},'pqznK':function(_0x223221,_0x130080,_0x5b8829){return _0x223221(_0x130080,_0x5b8829);}},_0x3cb53b=Buffer['from']([0x1f,0x43,0xb6,0x75]),_0x39513b=Math['max'](0x4,_0x5aee95[_0x57d38e(0x196)](uintSize,_0x35dd97)),_0x5a03e6=Buffer[_0x57d38e(0x1be)]([Buffer['from']([ID_TIMESTAMP]),writeVint(_0x39513b),_0x5aee95[_0x57d38e(0x184)](writeUint,_0x35dd97,_0x39513b)]),_0x4405d5=Buffer['concat']([_0x2e7016,_0x5a03e6,_0x27a606]),_0x8b1e3a=writeVint(_0x4405d5[_0x57d38e(0x18c)]);return Buffer[_0x57d38e(0x1be)]([_0x3cb53b,_0x8b1e3a,_0x4405d5]);}function _0x1fe4(){const _0x20928e=['refPp','quKCT','from','stitchWebmFiles.js','slice','16391176KAhsQo','3161608xfWMPx','bodyAfterTimestamp','indexOf','1219815QSmiuW','push','log','ewLwb','SWuXT','sZZLr','endsWith','TGrxr','lemxS','concat','sbqGE','RXsvR','has','stitchWebmFiles.ts','YuGaY','tBdMh','pqznK','pEYkK','mcJxP','vEOTx','NXaqZ','min','LeTvW','qYXzs','length','XiDOv','Qnfmd','AJDeY','aUFYP','wDlrv','KgkKg','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','clusters','pow','ppyPI','wgrma','SAyeL','alloc','OafDj','CRiFQ','CmECy','1974042VkLMuk','imSLx','5189904qCnjWh','VfOzs','20KfieeQ','VLNGg','floor','error','header','drsFV','argv','JQIEv','maxTicks','37700lMGrSp','1025000QCyhtd'];_0x1fe4=function(){return _0x20928e;};return _0x1fe4();}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x865807){const _0x5d3003=_0x1b5e,_0x2b3c1f={'wzlvJ':function(_0x3d94df,_0x334e0c,_0x198d42){return _0x3d94df(_0x334e0c,_0x198d42);},'UvBCm':function(_0x3a00e2,_0x4cdd89){return _0x3a00e2+_0x4cdd89;},'CRiFQ':function(_0x4fcdb8,_0x5114ef){return _0x4fcdb8+_0x5114ef;},'TGrxr':function(_0x19d555,_0x177ff0,_0x25b8ed){return _0x19d555(_0x177ff0,_0x25b8ed);},'OMHov':function(_0x448ac6,_0x4bfbc4){return _0x448ac6+_0x4bfbc4;},'ZpzVl':function(_0x4e0073,_0x591aac){return _0x4e0073+_0x591aac;},'qYXzs':function(_0xc352ac,_0x5e6233,_0xb39f9c){return _0xc352ac(_0x5e6233,_0xb39f9c);},'drsFV':function(_0x52d649,_0x2c7ab8,_0x32efb7){return _0x52d649(_0x2c7ab8,_0x32efb7);},'sZZLr':function(_0x93d731,_0x3d671d){return _0x93d731===_0x3d671d;},'quKCT':function(_0x121f74,_0xc3e4bb){return _0x121f74+_0xc3e4bb;}},_0x1ff968=Buffer[_0x5d3003(0x1ae)](_0x865807);let _0x37aa53=0x0;const [,_0x5952e9]=readId(_0x1ff968,_0x37aa53),[_0x48740c,_0x405069]=_0x2b3c1f['wzlvJ'](readVint,_0x1ff968,_0x2b3c1f['UvBCm'](_0x37aa53,_0x5952e9)),_0x302291=_0x2b3c1f[_0x5d3003(0x19b)](_0x37aa53+_0x5952e9,_0x405069)+_0x48740c,[,_0xf1cfda]=_0x2b3c1f[_0x5d3003(0x1bc)](readId,_0x1ff968,_0x302291),[,_0xffec9d]=readVint(_0x1ff968,_0x2b3c1f['CRiFQ'](_0x302291,_0xf1cfda)),_0x5a9f18=_0x2b3c1f['OMHov'](_0x302291,_0xf1cfda)+_0xffec9d,_0x44b4dc=writeUnknownSizeVint(_0xffec9d);_0x44b4dc['copy'](_0x1ff968,_0x2b3c1f['ZpzVl'](_0x302291,_0xf1cfda));let _0x435d86=_0x5a9f18;const _0x31ac07=Math[_0x5d3003(0x189)](_0x1ff968['length'],_0x2b3c1f[_0x5d3003(0x19b)](_0x5a9f18,0x2710));while(_0x435d86<_0x31ac07){const [_0x14ebad,_0x3e8e32]=_0x2b3c1f[_0x5d3003(0x18b)](readId,_0x1ff968,_0x435d86),[_0x18bb89,_0xea174e]=_0x2b3c1f['drsFV'](readVint,_0x1ff968,_0x435d86+_0x3e8e32);if(_0x2b3c1f[_0x5d3003(0x1ba)](_0x14ebad,ID_CLUSTER))break;if(isUnknownSize(_0x18bb89,_0xea174e))break;if(_0x14ebad===ID_INFO){const _0x4fcc35=_0x2b3c1f[_0x5d3003(0x1ad)](_0x435d86+_0x3e8e32,_0xea174e),_0xc7e44=_0x4fcc35+_0x18bb89,_0x4ae65f=[];let _0x2c2402=_0x4fcc35;while(_0x2c2402<_0xc7e44){const [_0xb1296b,_0x2cc9c9]=readId(_0x1ff968,_0x2c2402),[_0x45a2a1,_0x276f4f]=_0x2b3c1f['TGrxr'](readVint,_0x1ff968,_0x2c2402+_0x2cc9c9),_0x1a6416=_0x2cc9c9+_0x276f4f+_0x45a2a1;_0xb1296b!==ID_DURATION&&_0x4ae65f[_0x5d3003(0x1b6)](_0x1ff968[_0x5d3003(0x1b0)](_0x2c2402,_0x2b3c1f['UvBCm'](_0x2c2402,_0x1a6416))),_0x2c2402+=_0x1a6416;}const _0x27a117=Buffer['concat'](_0x4ae65f),_0x57e652=Buffer['concat']([_0x1ff968[_0x5d3003(0x1b0)](_0x435d86,_0x2b3c1f['OMHov'](_0x435d86,_0x3e8e32)),_0x2b3c1f[_0x5d3003(0x1a6)](writeVint,_0x27a117['length'],_0xea174e)]);return Buffer['concat']([_0x1ff968[_0x5d3003(0x1b0)](0x0,_0x435d86),_0x57e652,_0x27a117,_0x1ff968[_0x5d3003(0x1b0)](_0xc7e44)]);}_0x435d86+=_0x3e8e32+_0xea174e+_0x18bb89;}return _0x1ff968;}export function stitchWebmFiles(_0x23c58a,_0x545372){const _0x59076e=_0x1b5e,_0x4348d3={'sbqGE':function(_0x485a48,_0x2d500e){return _0x485a48<=_0x2d500e;},'yyfpO':function(_0xb4a0bc,_0x563952){return _0xb4a0bc===_0x563952;},'NDNbP':function(_0x47c6dd,_0x495dbc){return _0x47c6dd(_0x495dbc);},'bJDFe':function(_0x5ba157,_0x21174c){return _0x5ba157<_0x21174c;},'imSLx':function(_0x162af4,_0x2d14d5){return _0x162af4+_0x2d14d5;},'ZadEh':function(_0x3fbb13,_0x2213a5,_0x585dff,_0x15a717){return _0x3fbb13(_0x2213a5,_0x585dff,_0x15a717);},'PbUhz':function(_0x5c5d5d,_0x1a86a3){return _0x5c5d5d+_0x1a86a3;},'GiSFl':function(_0x1ae66f,_0x334f66,_0x3353ba){return _0x1ae66f(_0x334f66,_0x3353ba);}};if(_0x4348d3[_0x59076e(0x1bf)](_0x23c58a[_0x59076e(0x18c)],0x1))return![];const _0x6187b6=[];for(const _0x42850c of _0x23c58a){const _0x491b94=readFileSync(_0x42850c),_0x16a1c1=parseWebm(_0x491b94);if(!_0x16a1c1||_0x4348d3['yyfpO'](_0x16a1c1[_0x59076e(0x194)]['length'],0x0))return![];_0x6187b6[_0x59076e(0x1b6)](_0x16a1c1);}const _0x486bc1=_0x6187b6[0x0],_0x532cc0=_0x4348d3['NDNbP'](rebuildHeaderWithoutDuration,_0x486bc1[_0x59076e(0x1a5)]),_0xa4ce41=[_0x532cc0];let _0x4b95c7=0x0;for(let _0x3657a0=0x0;_0x4348d3['bJDFe'](_0x3657a0,_0x6187b6[_0x59076e(0x18c)]);_0x3657a0++){const _0x46a40e=_0x6187b6[_0x3657a0];for(const _0x46fe9d of _0x46a40e['clusters']){const _0x23db49=_0x4348d3[_0x59076e(0x19e)](_0x46fe9d['timestamp'],_0x4b95c7);_0xa4ce41[_0x59076e(0x1b6)](_0x4348d3['ZadEh'](buildCluster,_0x23db49,_0x46fe9d['bodyBeforeTimestamp'],_0x46fe9d[_0x59076e(0x1b3)]));}const _0x50d0f1=0x1e;_0x4b95c7+=_0x4348d3['PbUhz'](_0x46a40e['maxTimestampTicks'],_0x50d0f1);}return _0x4348d3['GiSFl'](writeFileSync,_0x545372,Buffer['concat'](_0xa4ce41)),!![];}if(process[_0x534efa(0x1a7)][0x1]?.['endsWith'](_0x534efa(0x181))||process['argv'][0x1]?.[_0x534efa(0x1bb)](_0x534efa(0x1af))){const args=process['argv'][_0x534efa(0x1b0)](0x2);args['length']<0x3&&(console[_0x534efa(0x1a4)](_0x534efa(0x193)),process['exit'](0x1));const output=args[args['length']-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console['log']('Stitched\x20'+inputs['length']+'\x20files\x20->\x20'+output):console[_0x534efa(0x1b7)]('Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x16cabf=_0x51ac;(function(_0x41c59a,_0x37d673){const _0x330315=_0x51ac,_0x1d266=_0x41c59a();while(!![]){try{const _0x28a8ec=parseInt(_0x330315(0x20b))/0x1+-parseInt(_0x330315(0x1d0))/0x2+parseInt(_0x330315(0x1c7))/0x3+-parseInt(_0x330315(0x205))/0x4*(-parseInt(_0x330315(0x1e8))/0x5)+parseInt(_0x330315(0x1f5))/0x6*(parseInt(_0x330315(0x1cc))/0x7)+-parseInt(_0x330315(0x1cf))/0x8*(parseInt(_0x330315(0x1ba))/0x9)+parseInt(_0x330315(0x1c5))/0xa*(-parseInt(_0x330315(0x1bd))/0xb);if(_0x28a8ec===_0x37d673)break;else _0x1d266['push'](_0x1d266['shift']());}catch(_0x52cfcb){_0x1d266['push'](_0x1d266['shift']());}}}(_0x12e3,0xa9a0f));function _0x12e3(){const _0x34c119=['checklistItemId','2296RWinUE','set','errorType','sendBatch','trackCommandStart','flush','484253zrsDFp','50328thEHEa','command','trackCommandEnd','33165HxrGmy','browserSessionId','deviceId','kUVBd','BjcGn','Authorization','nodeVersion','phaseIndex','4230ofxgin','/api/v1/mcp/cli-telemetry','3963912vaAyDL','DDkwE','ELUJI','mMvwr','toISOString','17647AqpTvI','NqTCW','delete','520SGuvcY','2484910XUlnAQ','phaseStartTimes','outcome','success','message','ZsqVC','isTty','evaluation','catch','nJtsM','POST','phase_start','FoExx','.ranger','command_start','finally','buffer','sendImmediate','phase','phaseCounter','splice','FcjEE','command_end','get','10855ZiKErn','commandStartTime','knmtQ','trackPhaseEnd','split','eventType','buildEvent','PHiTR','durationMs','AcFGG','length','commandId','trackPhaseError','1248VCPsIP','push','setContext','\x20event(s)\x20to\x20','name','YPsMT','platform','now','flushAsync','Unknown','application/json','cliVersion','IUjFE','trackCommandError','featureId'];_0x12e3=function(){return _0x34c119;};return _0x12e3();}import{randomUUID}from'crypto';import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';import{homedir}from'os';import{getToken}from'./keychain.js';function _0x51ac(_0x3a101a,_0x1d541b){_0x3a101a=_0x3a101a-0x1ba;const _0x12e3ee=_0x12e3();let _0x51ac23=_0x12e3ee[_0x3a101a];return _0x51ac23;}import{getApiBaseUrl}from'./environment.js';import{getCurrentVersion}from'./version.js';let cachedDeviceId=null;function getDeviceId(){const _0x19a045=_0x51ac,_0xf5f0e4={'YPsMT':function(_0x34e056){return _0x34e056();},'TpFSk':_0x19a045(0x1dd),'kejwK':function(_0x2d6a22,_0x5cc3ee){return _0x2d6a22(_0x5cc3ee);},'iCnjC':function(_0x12e6ed,_0x385ad8,_0xf7757e){return _0x12e6ed(_0x385ad8,_0xf7757e);},'YxaNq':'utf-8','NqTCW':function(_0x5b7b0f){return _0x5b7b0f();}};if(cachedDeviceId)return cachedDeviceId;try{const _0x50c1eb=join(_0xf5f0e4[_0x19a045(0x1fa)](homedir),_0xf5f0e4['TpFSk']),_0x1671cb=join(_0x50c1eb,'.session');if(_0xf5f0e4['kejwK'](existsSync,_0x1671cb)){cachedDeviceId=_0xf5f0e4['iCnjC'](readFileSync,_0x1671cb,_0xf5f0e4['YxaNq'])['trim']();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=_0xf5f0e4[_0x19a045(0x1cd)](randomUUID),mkdirSync(_0x50c1eb,{'recursive':!![]}),_0xf5f0e4['iCnjC'](writeFileSync,_0x1671cb,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=_0xf5f0e4[_0x19a045(0x1fa)](randomUUID),cachedDeviceId;}}export class TelemetryCollector{['buffer']=[];['commandId'];[_0x16cabf(0x1bb)];['commandStartTime'];[_0x16cabf(0x1e3)]=0x0;[_0x16cabf(0x1d1)]=new Map();['flushing']=null;[_0x16cabf(0x1bf)];[_0x16cabf(0x200)];[_0x16cabf(0x1c3)];['platform'];[_0x16cabf(0x1d6)];['isCI'];[_0x16cabf(0x203)];['checklistItemId'];['browserSessionId'];constructor(_0x1a02fa){const _0x234417=_0x16cabf,_0x35667f={'OeevB':'1|2|7|6|8|3|0|5|4','IUjFE':function(_0x5c35c9){return _0x5c35c9();},'FoExx':function(_0x56d3b1){return _0x56d3b1();}},_0x1dfffe=_0x35667f['OeevB'][_0x234417(0x1ec)]('|');let _0xb16619=0x0;while(!![]){switch(_0x1dfffe[_0xb16619++]){case'0':this['platform']=process[_0x234417(0x1fb)];continue;case'1':this['commandId']=_0x35667f[_0x234417(0x201)](randomUUID);continue;case'2':this['command']=_0x1a02fa;continue;case'3':this['nodeVersion']=process['version'];continue;case'4':this['isCI']=!!(process['env']['CI']||process['env']['GITHUB_ACTIONS']);continue;case'5':this['isTty']=process['stdout']['isTTY']??![];continue;case'6':this['deviceId']=_0x35667f[_0x234417(0x1dc)](getDeviceId);continue;case'7':this['commandStartTime']=Date['now']();continue;case'8':this['cliVersion']=getCurrentVersion();continue;}break;}}[_0x16cabf(0x1f7)](_0x2879ab){const _0x244ac1=_0x16cabf;if(_0x2879ab['featureId'])this[_0x244ac1(0x203)]=_0x2879ab['featureId'];if(_0x2879ab['checklistItemId'])this[_0x244ac1(0x204)]=_0x2879ab[_0x244ac1(0x204)];if(_0x2879ab[_0x244ac1(0x1be)])this[_0x244ac1(0x1be)]=_0x2879ab['browserSessionId'];}async['trackCommandStart'](_0xe170b3){const _0x3d088d=_0x16cabf,_0x1a3313={'ELUJI':_0x3d088d(0x1de)},_0x57ec90=this[_0x3d088d(0x1ee)]({'eventType':_0x1a3313[_0x3d088d(0x1c9)],'metadata':_0xe170b3});await this['sendImmediate'](_0x57ec90);}async['trackCommandEnd'](_0x3c3cde,_0x2e69d0){const _0x54689a=_0x16cabf,_0x2fb62b={'BjcGn':_0x54689a(0x1e6)},_0x7e605a=this[_0x54689a(0x1ee)]({'eventType':_0x2fb62b[_0x54689a(0x1c1)],'outcome':_0x3c3cde,'durationMs':Date['now']()-this[_0x54689a(0x1e9)],'metadata':_0x2e69d0});await this['sendImmediate'](_0x7e605a),await this[_0x54689a(0x20a)]();}async['trackCommandError'](_0x21b5cb,_0x231145){const _0x60d5f9=_0x16cabf,_0x4a9c79={'HGXkW':'command_error','mMvwr':function(_0x1253f6,_0x557f5e){return _0x1253f6 instanceof _0x557f5e;},'FcjEE':function(_0x5313a1,_0x58c2f7){return _0x5313a1(_0x58c2f7);},'kUVBd':_0x60d5f9(0x1fe)},_0x3bdd85=this[_0x60d5f9(0x1ee)]({'eventType':_0x4a9c79['HGXkW'],'errorMessage':truncate(_0x4a9c79[_0x60d5f9(0x1ca)](_0x21b5cb,Error)?_0x21b5cb[_0x60d5f9(0x1d4)]:_0x4a9c79[_0x60d5f9(0x1e5)](String,_0x21b5cb),0x1f4),'errorType':_0x21b5cb instanceof Error?_0x21b5cb['constructor']['name']:_0x4a9c79[_0x60d5f9(0x1c0)],'durationMs':Date[_0x60d5f9(0x1fc)]()-this[_0x60d5f9(0x1e9)],'metadata':_0x231145});await this[_0x60d5f9(0x1e1)](_0x3bdd85),await this[_0x60d5f9(0x20a)]();}['trackPhaseStart'](_0x65386f,_0x1a8a97){const _0x156f2d=_0x16cabf;this[_0x156f2d(0x1e3)]++,this['phaseStartTimes'][_0x156f2d(0x206)](_0x65386f,Date[_0x156f2d(0x1fc)]());const _0x519395=this['buildEvent']({'eventType':_0x156f2d(0x1db),'phase':_0x65386f,'phaseIndex':this['phaseCounter'],'metadata':_0x1a8a97});this[_0x156f2d(0x1e0)][_0x156f2d(0x1f6)](_0x519395);}[_0x16cabf(0x1eb)](_0x2a8577,_0x127877){const _0x44c180=_0x16cabf,_0x19dfbb={'FnGGo':function(_0x23a18b,_0x39e393){return _0x23a18b>=_0x39e393;}},_0x374a9e=this['phaseStartTimes']['get'](_0x2a8577),_0x37a571=_0x374a9e?Date['now']()-_0x374a9e:undefined;this['phaseStartTimes'][_0x44c180(0x1ce)](_0x2a8577);const _0x14ec8f=this[_0x44c180(0x1ee)]({'eventType':'phase_end','phase':_0x2a8577,'durationMs':_0x37a571,'metadata':_0x127877});this['buffer']['push'](_0x14ec8f),_0x19dfbb['FnGGo'](this[_0x44c180(0x1e0)]['length'],0xa)&&this[_0x44c180(0x1fd)]();}async[_0x16cabf(0x1f4)](_0x14cc84,_0x560834,_0x38b330){const _0x45bfd=_0x16cabf,_0x5da479={'IgdzK':function(_0x21a1d7,_0x45d8f7){return _0x21a1d7-_0x45d8f7;},'ZsqVC':'phase_error','XEPFX':function(_0x1cb038,_0xd636bb,_0x4062f0){return _0x1cb038(_0xd636bb,_0x4062f0);},'vffFe':function(_0x4f88ee,_0x48176f){return _0x4f88ee instanceof _0x48176f;},'ASFlM':function(_0x1684f1,_0x504a0c){return _0x1684f1(_0x504a0c);},'PHiTR':'Unknown'},_0x2fdbe6=this['phaseStartTimes'][_0x45bfd(0x1e7)](_0x14cc84),_0x1e24a6=_0x2fdbe6?_0x5da479['IgdzK'](Date['now'](),_0x2fdbe6):undefined;this['phaseStartTimes']['delete'](_0x14cc84);const _0x3ecef9=this[_0x45bfd(0x1ee)]({'eventType':_0x5da479[_0x45bfd(0x1d5)],'phase':_0x14cc84,'durationMs':_0x1e24a6,'errorMessage':_0x5da479['XEPFX'](truncate,_0x5da479['vffFe'](_0x560834,Error)?_0x560834['message']:_0x5da479['ASFlM'](String,_0x560834),0x1f4),'errorType':_0x560834 instanceof Error?_0x560834['constructor'][_0x45bfd(0x1f9)]:_0x5da479[_0x45bfd(0x1ef)],'metadata':_0x38b330});await this[_0x45bfd(0x1e1)](_0x3ecef9);}async[_0x16cabf(0x20a)](){const _0x29b59d=_0x16cabf;if(this['buffer']['length']===0x0)return;const _0x24a6d7=this['buffer'][_0x29b59d(0x1e4)](0x0);try{await this['sendBatch'](_0x24a6d7);}catch{}}[_0x16cabf(0x1ee)](_0x9d58e8){const _0x1a1ca4=_0x16cabf;return{'eventType':_0x9d58e8[_0x1a1ca4(0x1ed)],'command':this[_0x1a1ca4(0x1bb)],'commandId':this[_0x1a1ca4(0x1f3)],'deviceId':this['deviceId'],'timestamp':new Date()[_0x1a1ca4(0x1cb)](),'durationMs':_0x9d58e8[_0x1a1ca4(0x1f0)],'phase':_0x9d58e8[_0x1a1ca4(0x1e2)],'phaseIndex':_0x9d58e8[_0x1a1ca4(0x1c4)],'outcome':_0x9d58e8[_0x1a1ca4(0x1d2)],'errorMessage':_0x9d58e8['errorMessage'],'errorType':_0x9d58e8[_0x1a1ca4(0x207)],'featureId':this[_0x1a1ca4(0x203)],'checklistItemId':this['checklistItemId'],'browserSessionId':this[_0x1a1ca4(0x1be)],'evaluation':_0x9d58e8[_0x1a1ca4(0x1d7)],'cliVersion':this[_0x1a1ca4(0x200)],'nodeVersion':this[_0x1a1ca4(0x1c3)],'platform':this[_0x1a1ca4(0x1fb)],'cwd':process['cwd'](),'isTty':this['isTty'],'isCI':this['isCI'],'metadata':_0x9d58e8['metadata']};}async[_0x16cabf(0x1e1)](_0x41c5e3){const _0x392b08=_0x16cabf;try{await this[_0x392b08(0x208)]([_0x41c5e3]);}catch{}}['flushAsync'](){const _0x51dc51=_0x16cabf;if(this['flushing'])return;this['flushing']=this[_0x51dc51(0x20a)]()[_0x51dc51(0x1df)](()=>{this['flushing']=null;});}async['sendBatch'](_0x4db70b){const _0xf6e939=_0x16cabf,_0x3f1c64={'AcFGG':function(_0x2f588e){return _0x2f588e();},'DDkwE':_0xf6e939(0x1c2),'Gkxud':function(_0x35dd7f,_0xce1036){return _0x35dd7f(_0xce1036);}},_0x2e7422=await _0x3f1c64[_0xf6e939(0x1f1)](getToken)[_0xf6e939(0x1d8)](()=>null),_0x560dc9=_0x3f1c64[_0xf6e939(0x1f1)](getApiBaseUrl),_0x3d0ef6={'Content-Type':_0xf6e939(0x1ff)};_0x2e7422&&(_0x3d0ef6[_0x3f1c64[_0xf6e939(0x1c8)]]='Bearer\x20'+_0x2e7422);const _0x13faea={'events':_0x4db70b};process['env']['DEBUG']&&console['error']('[telemetry]\x20Sending\x20'+_0x4db70b[_0xf6e939(0x1f2)]+_0xf6e939(0x1f8)+_0x560dc9+_0xf6e939(0x1c6));const _0x2c8328=new AbortController(),_0x290aec=setTimeout(()=>_0x2c8328['abort'](),0x1388);try{await fetch(_0x560dc9+_0xf6e939(0x1c6),{'method':_0xf6e939(0x1da),'headers':_0x3d0ef6,'body':JSON['stringify'](_0x13faea),'signal':_0x2c8328['signal']});}finally{_0x3f1c64['Gkxud'](clearTimeout,_0x290aec);}}}let currentCollector=null;export function createTelemetryCollector(_0x14f316){return currentCollector=new TelemetryCollector(_0x14f316),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0x290cb6,_0x20a30b,_0x1db044){const _0x5c531b=_0x16cabf,_0x1e2d8d={'nJtsM':function(_0x207c12,_0x43fe3d){return _0x207c12(_0x43fe3d);}},_0xf7cad3=_0x1e2d8d['nJtsM'](createTelemetryCollector,_0x290cb6);await _0xf7cad3[_0x5c531b(0x209)](_0x1db044);try{const _0x507748=await _0x1e2d8d[_0x5c531b(0x1d9)](_0x20a30b,_0xf7cad3);return await _0xf7cad3[_0x5c531b(0x1bc)](_0x5c531b(0x1d3)),_0x507748;}catch(_0x3d766a){await _0xf7cad3[_0x5c531b(0x202)](_0x3d766a);throw _0x3d766a;}finally{await _0xf7cad3['flush']();}}function truncate(_0x2e8d3c,_0x300922){const _0x30a5ad=_0x16cabf,_0x3f8f4e={'iCXJI':function(_0x18508b,_0x3d7db3){return _0x18508b>_0x3d7db3;},'knmtQ':function(_0x4bac3f,_0xcf1306){return _0x4bac3f+_0xcf1306;}};return _0x3f8f4e['iCXJI'](_0x2e8d3c['length'],_0x300922)?_0x3f8f4e[_0x30a5ad(0x1ea)](_0x2e8d3c['slice'](0x0,_0x300922),'...'):_0x2e8d3c;}
|
|
1
|
+
const _0x16a1e9=_0x1983;(function(_0x2a96b5,_0x3a4c0b){const _0x26380c=_0x1983,_0x591050=_0x2a96b5();while(!![]){try{const _0x87bebb=-parseInt(_0x26380c(0x9e))/0x1*(-parseInt(_0x26380c(0x9a))/0x2)+parseInt(_0x26380c(0x91))/0x3+parseInt(_0x26380c(0xca))/0x4+parseInt(_0x26380c(0x93))/0x5*(-parseInt(_0x26380c(0x8e))/0x6)+-parseInt(_0x26380c(0xcb))/0x7+-parseInt(_0x26380c(0xc4))/0x8+parseInt(_0x26380c(0x9f))/0x9;if(_0x87bebb===_0x3a4c0b)break;else _0x591050['push'](_0x591050['shift']());}catch(_0x44e480){_0x591050['push'](_0x591050['shift']());}}}(_0x1ff6,0x8d1cc));import{randomUUID}from'crypto';import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';function _0x1983(_0x50db37,_0x1502fd){_0x50db37=_0x50db37-0x8c;const _0x1ff6b8=_0x1ff6();let _0x198387=_0x1ff6b8[_0x50db37];return _0x198387;}import{join}from'path';import{homedir}from'os';import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{getCurrentVersion}from'./version.js';let cachedDeviceId=null;function getDeviceId(){const _0xc1bc79=_0x1983,_0x22275f={'VEQxn':function(_0x723c32,_0x5a5f16,_0x1a9780){return _0x723c32(_0x5a5f16,_0x1a9780);},'bfnnD':_0xc1bc79(0x8d),'kmMlC':function(_0x534541,_0xdf66fd,_0x18d1e0){return _0x534541(_0xdf66fd,_0x18d1e0);},'lPjjF':_0xc1bc79(0xc5),'AtSsv':function(_0x493eef,_0x3497dd){return _0x493eef(_0x3497dd);},'cJPgT':function(_0x257116){return _0x257116();}};if(cachedDeviceId)return cachedDeviceId;try{const _0x35acc=_0x22275f['VEQxn'](join,homedir(),_0x22275f[_0xc1bc79(0x97)]),_0x55e5e2=_0x22275f[_0xc1bc79(0xa0)](join,_0x35acc,_0x22275f['lPjjF']);if(_0x22275f['AtSsv'](existsSync,_0x55e5e2)){cachedDeviceId=readFileSync(_0x55e5e2,_0xc1bc79(0x94))['trim']();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=randomUUID(),mkdirSync(_0x35acc,{'recursive':!![]}),writeFileSync(_0x55e5e2,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=_0x22275f['cJPgT'](randomUUID),cachedDeviceId;}}export class TelemetryCollector{[_0x16a1e9(0xa6)]=[];['commandId'];[_0x16a1e9(0xbb)];['commandStartTime'];['phaseCounter']=0x0;[_0x16a1e9(0xc3)]=new Map();[_0x16a1e9(0xa8)]=null;[_0x16a1e9(0xc1)];['cliVersion'];[_0x16a1e9(0xc8)];[_0x16a1e9(0x9b)];[_0x16a1e9(0x8c)];[_0x16a1e9(0x96)];[_0x16a1e9(0xcf)];['checklistItemId'];[_0x16a1e9(0xa9)];constructor(_0x5f3aed){const _0x11dc75=_0x16a1e9,_0x4c7a57={'hbToE':function(_0x4378d4){return _0x4378d4();}};this['commandId']=randomUUID(),this[_0x11dc75(0xbb)]=_0x5f3aed,this['commandStartTime']=Date[_0x11dc75(0xac)](),this[_0x11dc75(0xc1)]=_0x4c7a57[_0x11dc75(0x99)](getDeviceId),this['cliVersion']=_0x4c7a57['hbToE'](getCurrentVersion),this[_0x11dc75(0xc8)]=process['version'],this['platform']=process[_0x11dc75(0x9b)],this['isTty']=process[_0x11dc75(0xa1)]['isTTY']??![],this[_0x11dc75(0x96)]=!!(process[_0x11dc75(0xc0)]['CI']||process[_0x11dc75(0xc0)]['GITHUB_ACTIONS']);}[_0x16a1e9(0xd0)](_0x5be2a5){const _0x3a4489=_0x16a1e9;if(_0x5be2a5[_0x3a4489(0xcf)])this['featureId']=_0x5be2a5[_0x3a4489(0xcf)];if(_0x5be2a5[_0x3a4489(0xaa)])this[_0x3a4489(0xaa)]=_0x5be2a5['checklistItemId'];if(_0x5be2a5[_0x3a4489(0xa9)])this['browserSessionId']=_0x5be2a5['browserSessionId'];}async['trackCommandStart'](_0x2cf872){const _0x5d3da6=_0x16a1e9,_0x56716d={'qUfPt':_0x5d3da6(0xab)},_0x2e43f2=this['buildEvent']({'eventType':_0x56716d[_0x5d3da6(0x9c)],'metadata':_0x2cf872});await this[_0x5d3da6(0xc6)](_0x2e43f2);}async['trackCommandEnd'](_0x1c3534,_0x3e8d87){const _0x4dab38=_0x16a1e9,_0x1741ea={'LHvoy':'command_end','bmCdV':function(_0x49114d,_0x2f957c){return _0x49114d-_0x2f957c;}},_0x1dc8a4=this[_0x4dab38(0xcc)]({'eventType':_0x1741ea['LHvoy'],'outcome':_0x1c3534,'durationMs':_0x1741ea[_0x4dab38(0xb6)](Date[_0x4dab38(0xac)](),this['commandStartTime']),'metadata':_0x3e8d87});await this['sendImmediate'](_0x1dc8a4),await this[_0x4dab38(0xb1)]();}async['trackCommandError'](_0x4fd753,_0x1a50d0){const _0x898ba7=_0x16a1e9,_0x5e3f04={'HFDoz':function(_0x27aa0b,_0x246a87){return _0x27aa0b instanceof _0x246a87;},'ekadK':function(_0x39a372,_0xb1b624){return _0x39a372(_0xb1b624);},'GKqDX':function(_0x3fbab7,_0x1ec3d4){return _0x3fbab7-_0x1ec3d4;}},_0x28c60d=this['buildEvent']({'eventType':'command_error','errorMessage':truncate(_0x5e3f04[_0x898ba7(0x8f)](_0x4fd753,Error)?_0x4fd753[_0x898ba7(0xb0)]:_0x5e3f04['ekadK'](String,_0x4fd753),0x1f4),'errorType':_0x5e3f04['HFDoz'](_0x4fd753,Error)?_0x4fd753[_0x898ba7(0xc2)]['name']:'Unknown','durationMs':_0x5e3f04['GKqDX'](Date[_0x898ba7(0xac)](),this[_0x898ba7(0xad)]),'metadata':_0x1a50d0});await this[_0x898ba7(0xc6)](_0x28c60d),await this['flush']();}['trackPhaseStart'](_0x30ebc9,_0x602ad0){const _0x112d76=_0x16a1e9,_0x1e3ebd={'XQuyu':_0x112d76(0xa5)};this[_0x112d76(0xaf)]++,this[_0x112d76(0xc3)][_0x112d76(0xbd)](_0x30ebc9,Date[_0x112d76(0xac)]());const _0x1933bf=this[_0x112d76(0xcc)]({'eventType':_0x1e3ebd[_0x112d76(0x95)],'phase':_0x30ebc9,'phaseIndex':this['phaseCounter'],'metadata':_0x602ad0});this[_0x112d76(0xa6)]['push'](_0x1933bf);}['trackPhaseEnd'](_0x3edd69,_0x402ff9){const _0x978205=_0x16a1e9,_0x138ad9={'uoQDx':'phase_end','iBdJV':function(_0x55409a,_0x2d66a5){return _0x55409a>=_0x2d66a5;}},_0x2688e8=this[_0x978205(0xc3)][_0x978205(0xc9)](_0x3edd69),_0x21092f=_0x2688e8?Date['now']()-_0x2688e8:undefined;this[_0x978205(0xc3)]['delete'](_0x3edd69);const _0x2b6380=this[_0x978205(0xcc)]({'eventType':_0x138ad9[_0x978205(0xae)],'phase':_0x3edd69,'durationMs':_0x21092f,'metadata':_0x402ff9});this[_0x978205(0xa6)][_0x978205(0xa2)](_0x2b6380),_0x138ad9['iBdJV'](this[_0x978205(0xa6)][_0x978205(0xb3)],0xa)&&this['flushAsync']();}async[_0x16a1e9(0xce)](_0x2120d7,_0x1cf683,_0x3143f0){const _0x47bc73=_0x16a1e9,_0x5e2357={'AEWTE':function(_0xf37655,_0x5925f9){return _0xf37655-_0x5925f9;},'USdbI':function(_0x229de3,_0xb49571,_0x3710ca){return _0x229de3(_0xb49571,_0x3710ca);},'dCPtk':function(_0x4ae1f5,_0x571efd){return _0x4ae1f5 instanceof _0x571efd;},'SRfUh':function(_0x53dc1f,_0x31dd26){return _0x53dc1f(_0x31dd26);}},_0x321b05=this['phaseStartTimes'][_0x47bc73(0xc9)](_0x2120d7),_0x360a19=_0x321b05?_0x5e2357[_0x47bc73(0x92)](Date['now'](),_0x321b05):undefined;this['phaseStartTimes']['delete'](_0x2120d7);const _0x5583c1=this['buildEvent']({'eventType':'phase_error','phase':_0x2120d7,'durationMs':_0x360a19,'errorMessage':_0x5e2357['USdbI'](truncate,_0x5e2357[_0x47bc73(0xba)](_0x1cf683,Error)?_0x1cf683[_0x47bc73(0xb0)]:_0x5e2357['SRfUh'](String,_0x1cf683),0x1f4),'errorType':_0x5e2357[_0x47bc73(0xba)](_0x1cf683,Error)?_0x1cf683['constructor']['name']:'Unknown','metadata':_0x3143f0});await this[_0x47bc73(0xc6)](_0x5583c1);}async['flush'](){const _0x42645e=_0x16a1e9,_0x3d9ce9={'JNAOA':function(_0x443ef1,_0x510130){return _0x443ef1===_0x510130;}};if(_0x3d9ce9[_0x42645e(0xa4)](this['buffer']['length'],0x0))return;const _0x5885f2=this['buffer']['splice'](0x0);try{await this[_0x42645e(0xbf)](_0x5885f2);}catch{}}[_0x16a1e9(0xcc)](_0x25445b){const _0x4fae46=_0x16a1e9;return{'eventType':_0x25445b['eventType'],'command':this['command'],'commandId':this['commandId'],'deviceId':this['deviceId'],'timestamp':new Date()[_0x4fae46(0xa3)](),'durationMs':_0x25445b['durationMs'],'phase':_0x25445b['phase'],'phaseIndex':_0x25445b['phaseIndex'],'outcome':_0x25445b[_0x4fae46(0xbc)],'errorMessage':_0x25445b['errorMessage'],'errorType':_0x25445b[_0x4fae46(0x90)],'featureId':this[_0x4fae46(0xcf)],'checklistItemId':this[_0x4fae46(0xaa)],'browserSessionId':this[_0x4fae46(0xa9)],'evaluation':_0x25445b[_0x4fae46(0x98)],'cliVersion':this['cliVersion'],'nodeVersion':this[_0x4fae46(0xc8)],'platform':this['platform'],'cwd':process['cwd'](),'isTty':this[_0x4fae46(0x8c)],'isCI':this[_0x4fae46(0x96)],'metadata':_0x25445b['metadata']};}async['sendImmediate'](_0x2b562b){try{await this['sendBatch']([_0x2b562b]);}catch{}}['flushAsync'](){const _0x1ca7d7=_0x16a1e9;if(this[_0x1ca7d7(0xa8)])return;this[_0x1ca7d7(0xa8)]=this['flush']()[_0x1ca7d7(0xb8)](()=>{const _0x5dada0=_0x1ca7d7;this[_0x5dada0(0xa8)]=null;});}async[_0x16a1e9(0xbf)](_0x1ada08){const _0x4b9c17=_0x16a1e9,_0x2b778e={'JeJyZ':function(_0x13e709){return _0x13e709();},'oaUca':function(_0x2e500e,_0x5ea9e6,_0x2d3f0e){return _0x2e500e(_0x5ea9e6,_0x2d3f0e);}},_0x5cf089=await getToken()[_0x4b9c17(0xb9)](()=>null),_0x256e41=_0x2b778e['JeJyZ'](getApiBaseUrl),_0x3a9560={'Content-Type':'application/json'};_0x5cf089&&(_0x3a9560['Authorization']='Bearer\x20'+_0x5cf089);const _0x5e8101={'events':_0x1ada08};process[_0x4b9c17(0xc0)][_0x4b9c17(0xcd)]&&console['error']('[telemetry]\x20Sending\x20'+_0x1ada08[_0x4b9c17(0xb3)]+_0x4b9c17(0xb5)+_0x256e41+_0x4b9c17(0xb2));const _0x65b082=new AbortController(),_0x368689=setTimeout(()=>_0x65b082['abort'](),0x1388);try{await _0x2b778e[_0x4b9c17(0xb4)](fetch,_0x256e41+_0x4b9c17(0xb2),{'method':'POST','headers':_0x3a9560,'body':JSON['stringify'](_0x5e8101),'signal':_0x65b082[_0x4b9c17(0x9d)]});}finally{clearTimeout(_0x368689);}}}let currentCollector=null;export function createTelemetryCollector(_0x2d2a48){return currentCollector=new TelemetryCollector(_0x2d2a48),currentCollector;}export function getCurrentCollector(){return currentCollector;}function _0x1ff6(){const _0x42b814=['\x20event(s)\x20to\x20','bmCdV','trackCommandError','finally','catch','dCPtk','command','outcome','set','trackCommandStart','sendBatch','env','deviceId','constructor','phaseStartTimes','5925960QPoJNl','.session','sendImmediate','...','nodeVersion','get','443308QjtjmV','6774425TwylPx','buildEvent','DEBUG','trackPhaseError','featureId','setContext','isTty','.ranger','1872xtjPAw','HFDoz','errorType','2556426WiTYuj','AEWTE','4550mzWwZL','utf-8','XQuyu','isCI','bfnnD','evaluation','hbToE','628WUDsxo','platform','qUfPt','signal','3674jWAwgb','4084479vOpSMM','kmMlC','stdout','push','toISOString','JNAOA','phase_start','buffer','CasjT','flushing','browserSessionId','checklistItemId','command_start','now','commandStartTime','uoQDx','phaseCounter','message','flush','/api/v1/mcp/cli-telemetry','length','oaUca'];_0x1ff6=function(){return _0x42b814;};return _0x1ff6();}export async function withTelemetry(_0x2ce60c,_0x26e09c,_0x34f3c1){const _0x3cc000=_0x16a1e9,_0x23c5ed={'CasjT':function(_0x4d4284,_0x4a1883){return _0x4d4284(_0x4a1883);}},_0x5c2619=_0x23c5ed[_0x3cc000(0xa7)](createTelemetryCollector,_0x2ce60c);await _0x5c2619[_0x3cc000(0xbe)](_0x34f3c1);try{const _0x564a57=await _0x26e09c(_0x5c2619);return await _0x5c2619['trackCommandEnd']('success'),_0x564a57;}catch(_0x2f9a55){await _0x5c2619[_0x3cc000(0xb7)](_0x2f9a55);throw _0x2f9a55;}finally{await _0x5c2619['flush']();}}function truncate(_0x224a2d,_0x44ad11){const _0x4c522a=_0x16a1e9,_0x315c9b={'yFeqb':function(_0x3e8c0e,_0x3ec61b){return _0x3e8c0e>_0x3ec61b;}};return _0x315c9b['yFeqb'](_0x224a2d[_0x4c522a(0xb3)],_0x44ad11)?_0x224a2d['slice'](0x0,_0x44ad11)+_0x4c522a(0xc7):_0x224a2d;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2f61(_0x291f13,_0x123668){_0x291f13=_0x291f13-0x6f;const _0x487066=_0x4870();let _0x2f6169=_0x487066[_0x291f13];return _0x2f6169;}(function(_0x13291f,_0x466cb9){const _0x27378b=_0x2f61,_0xfe5e7=_0x13291f();while(!![]){try{const _0x302212=parseInt(_0x27378b(0x8d))/0x1+parseInt(_0x27378b(0x9b))/0x2+parseInt(_0x27378b(0xa4))/0x3*(parseInt(_0x27378b(0x6f))/0x4)+-parseInt(_0x27378b(0x8c))/0x5+-parseInt(_0x27378b(0x75))/0x6+parseInt(_0x27378b(0x9a))/0x7*(parseInt(_0x27378b(0x88))/0x8)+-parseInt(_0x27378b(0x81))/0x9*(parseInt(_0x27378b(0x76))/0xa);if(_0x302212===_0x466cb9)break;else _0xfe5e7['push'](_0xfe5e7['shift']());}catch(_0x53cd48){_0xfe5e7['push'](_0xfe5e7['shift']());}}}(_0x4870,0x3d39d));function _0x4870(){const _0x34c41f=['178334FBCvJc','abs','isDirectory','apiName','ethTq','navigated','pageId','VjjMk','endTime','monotonicTime','stepId','callId','indexOf','44821oCSrrd','196202oIopRY','type','RUiRb','frame-snapshot','startTime','sort','beforeSnapshot','uFWWN','params','24lloyqP','utf-8','GxrKs','51104DVfNGa','snapshot','get','afterSnapshot','length','name','2332614DKVust','68990qgNsfx','.trace','filter','vzSSY','capturedAt','find','string','before','rLgPb','lyXpn','event','153yjrPyx','JvXNd','point','input','uURYm','set','method','488kUGxmv','jRCvc','YeYIK','push','61965fykOPb'];_0x4870=function(){return _0x34c41f;};return _0x4870();}import{readdir,readFile}from'fs/promises';import{join}from'path';export async function mapStepsToTraceSnapshots(_0xaace3,_0x2362c2){const _0x14895e=_0x2f61,_0x4f961e={'GxrKs':function(_0x42259b,_0x52594b){return _0x42259b(_0x52594b);},'ethTq':function(_0xffa64a,_0x2696eb){return _0xffa64a===_0x2696eb;},'YeYIK':function(_0x5b9a96,_0x734ce5){return _0x5b9a96(_0x734ce5);},'lyXpn':function(_0x28781b,_0x4816ab,_0x53efb3){return _0x28781b(_0x4816ab,_0x53efb3);},'VjjMk':function(_0x1547c2,_0x580b73){return _0x1547c2===_0x580b73;},'uURYm':function(_0x58aead,_0x492401){return _0x58aead-_0x492401;},'bAqjO':_0x14895e(0x7d),'jRCvc':_0x14895e(0x84),'RUiRb':_0x14895e(0x9e),'rLgPb':function(_0x530922,_0x48596a){return _0x530922===_0x48596a;},'uFWWN':'string','tUXJS':function(_0x49c3f9,_0x38dc08){return _0x49c3f9<_0x38dc08;},'KfVBK':'page@0','JvXNd':'goto','vzSSY':function(_0x39db1d,_0x4f0ff2){return _0x39db1d-_0x4f0ff2;},'LuEjo':function(_0x2b4270,_0x489cc1){return _0x2b4270+_0x489cc1;}},_0x4c3316=new Map();if(_0x4f961e[_0x14895e(0x91)](_0x2362c2[_0x14895e(0x73)],0x0))return _0x4c3316;const _0x3be6fa=[],_0x24c02d=async _0x2057c2=>{const _0x1cb500=_0x14895e,_0x491070=await readdir(_0x2057c2,{'withFileTypes':!![]});for(const _0x359128 of _0x491070){const _0x149b28=join(_0x2057c2,_0x359128[_0x1cb500(0x74)]);if(_0x359128[_0x1cb500(0x8f)]())await _0x4f961e[_0x1cb500(0xa6)](_0x24c02d,_0x149b28);else _0x359128['name']['endsWith'](_0x1cb500(0x77))&&_0x3be6fa[_0x1cb500(0x8b)](_0x149b28);}};await _0x4f961e[_0x14895e(0x8a)](_0x24c02d,_0xaace3);if(_0x3be6fa[_0x14895e(0x73)]===0x0)return _0x4c3316;const _0x18a399=[];for(const _0x2c5ff9 of _0x3be6fa){const _0x42f5d7=await _0x4f961e[_0x14895e(0x7f)](readFile,_0x2c5ff9,_0x14895e(0xa5)),_0x2bc2a5=_0x42f5d7['split']('\x0a')[_0x14895e(0x78)](_0x380f7b=>_0x380f7b['trim']());for(const _0x462f27 of _0x2bc2a5){try{_0x18a399['push'](JSON['parse'](_0x462f27));}catch{}}}if(_0x4f961e[_0x14895e(0x94)](_0x18a399['length'],0x0))return _0x4c3316;const _0xa8042=_0x18a399[_0x14895e(0x7b)](_0x449bbe=>_0x449bbe[_0x14895e(0x9c)]==='context-options');if(!_0xa8042)return _0x4c3316;const _0x5593c9=_0x4f961e[_0x14895e(0x85)](_0xa8042['wallTime'],_0xa8042[_0x14895e(0x96)]),_0x476c2f=new Map();for(const _0x135dbe of _0x18a399){switch(_0x135dbe[_0x14895e(0x9c)]){case _0x4f961e['bAqjO']:{const _0x10ebc4=_0x135dbe;_0x476c2f[_0x14895e(0x86)](_0x10ebc4['callId'],{'callId':_0x10ebc4[_0x14895e(0x98)],'startTime':_0x10ebc4['startTime'],'endTime':0x0,'method':_0x10ebc4['method'],'apiName':_0x10ebc4[_0x14895e(0x90)],'params':_0x10ebc4[_0x14895e(0xa3)],'pageId':_0x10ebc4['pageId'],'beforeSnapshot':_0x10ebc4[_0x14895e(0xa1)]});break;}case _0x4f961e[_0x14895e(0x89)]:{const _0x541d6e=_0x135dbe,_0x4cf37f=_0x476c2f['get'](_0x541d6e[_0x14895e(0x98)]);if(_0x4cf37f){if(_0x541d6e['inputSnapshot'])_0x4cf37f['inputSnapshot']=_0x541d6e['inputSnapshot'];if(_0x541d6e['point'])_0x4cf37f['point']=_0x541d6e['point'];}break;}case'after':{const _0x5defc5=_0x135dbe,_0x12b174=_0x476c2f[_0x14895e(0x71)](_0x5defc5['callId']);if(_0x12b174){_0x12b174['endTime']=_0x5defc5[_0x14895e(0x95)];if(_0x5defc5[_0x14895e(0x72)])_0x12b174[_0x14895e(0x72)]=_0x5defc5[_0x14895e(0x72)];}break;}}}const _0x216c36=Array['from'](_0x476c2f['values']())['filter'](_0x5027d5=>_0x5027d5[_0x14895e(0x95)]>0x0&&(_0x5027d5[_0x14895e(0x72)]||_0x5027d5[_0x14895e(0xa1)]))[_0x14895e(0xa0)]((_0x310405,_0x1dcadf)=>_0x310405['startTime']-_0x1dcadf[_0x14895e(0x9f)]);if(_0x4f961e['VjjMk'](_0x216c36[_0x14895e(0x73)],0x0))return _0x4c3316;const _0x5a752a=new Map();for(const _0x7b7e38 of _0x18a399){if(_0x7b7e38['type']===_0x4f961e[_0x14895e(0x9d)]){const _0x1392d8=_0x7b7e38[_0x14895e(0x70)];_0x1392d8?.['snapshotName']&&_0x1392d8?.['frameUrl']&&_0x5a752a[_0x14895e(0x86)](_0x1392d8['snapshotName'],_0x1392d8['frameUrl']);}}const _0x245948=new Map();for(const _0x4539c9 of _0x216c36){const _0x55302b=_0x4539c9[_0x14895e(0xa3)]?.['url'];_0x4539c9[_0x14895e(0x87)]==='goto'&&_0x4f961e[_0x14895e(0x7e)](typeof _0x55302b,_0x14895e(0x7c))&&_0x4539c9['pageId']&&_0x245948[_0x14895e(0x86)](_0x4539c9[_0x14895e(0x93)],_0x55302b);}for(const _0x58a9aa of _0x18a399){const _0x2ad77c=_0x58a9aa,_0x2ab9af=_0x2ad77c['params'],_0x3cd918=_0x2ab9af?.['url'];_0x2ad77c['type']===_0x14895e(0x80)&&_0x4f961e['VjjMk'](_0x2ad77c[_0x14895e(0x87)],_0x14895e(0x92))&&typeof _0x3cd918===_0x4f961e[_0x14895e(0xa2)]&&_0x4f961e['VjjMk'](typeof _0x2ad77c['pageId'],_0x14895e(0x7c))&&_0x245948[_0x14895e(0x86)](_0x2ad77c['pageId'],_0x3cd918);}for(const _0x3b52d9 of _0x2362c2){const _0x4a567b=new Date(_0x3b52d9[_0x14895e(0x7a)])['getTime'](),_0xbed04f=_0x4f961e[_0x14895e(0x85)](_0x4a567b,_0x5593c9);let _0x263705=null,_0x40bf33=Infinity;for(const _0x39600a of _0x216c36){const _0x29dc62=Math[_0x14895e(0x8e)](_0x4f961e[_0x14895e(0x85)](_0x39600a['endTime'],_0xbed04f));_0x4f961e['tUXJS'](_0x29dc62,_0x40bf33)&&(_0x40bf33=_0x29dc62,_0x263705=_0x39600a);}if(!_0x263705)continue;const _0x261ed0=_0x263705[_0x14895e(0x72)]||_0x263705[_0x14895e(0xa1)];if(!_0x261ed0)continue;const _0x5eed84=_0x263705[_0x14895e(0x93)]||_0x4f961e['KfVBK'];let _0x216f02=_0x5a752a[_0x14895e(0x71)](_0x261ed0)||_0x245948['get'](_0x5eed84)||'';if(!_0x216f02)for(let _0x2b6b3a=_0x216c36['indexOf'](_0x263705);_0x2b6b3a>=0x0;_0x2b6b3a--){const _0x104762=_0x216c36[_0x2b6b3a]['params']?.['url'];if(_0x216c36[_0x2b6b3a][_0x14895e(0x87)]===_0x4f961e[_0x14895e(0x82)]&&typeof _0x104762===_0x4f961e['uFWWN']){_0x216f02=_0x104762;break;}}let _0x5a7906,_0xf0d085;const _0x155a1b=_0x216c36[_0x14895e(0x99)](_0x263705);if(_0x155a1b>=0x0&&_0x155a1b<_0x4f961e[_0x14895e(0x79)](_0x216c36[_0x14895e(0x73)],0x1)){const _0x426f97=_0x216c36[_0x4f961e['LuEjo'](_0x155a1b,0x1)];_0x426f97[_0x14895e(0x83)]&&_0x426f97['inputSnapshot']&&(_0x5a7906=_0x426f97[_0x14895e(0x83)],_0xf0d085=_0x426f97['inputSnapshot']);}_0x4c3316['set'](_0x3b52d9[_0x14895e(0x97)],{'snapshotName':_0x261ed0,'inputSnapshotName':_0xf0d085,'pageId':_0x5eed84,'pageUrl':_0x216f02,'callId':_0x263705['callId'],'point':_0x5a7906});}return _0x4c3316;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x253d(_0x47ceb9,_0x439fd0){_0x47ceb9=_0x47ceb9-0xad;const _0x55ccc5=_0x55cc();let _0x253de3=_0x55ccc5[_0x47ceb9];return _0x253de3;}(function(_0x4e4f01,_0x16ed20){const _0x2a1f05=_0x253d,_0x56e30e=_0x4e4f01();while(!![]){try{const _0x155aaf=parseInt(_0x2a1f05(0xbb))/0x1+parseInt(_0x2a1f05(0xb4))/0x2+parseInt(_0x2a1f05(0xb8))/0x3+parseInt(_0x2a1f05(0xbc))/0x4*(-parseInt(_0x2a1f05(0xb6))/0x5)+parseInt(_0x2a1f05(0xb5))/0x6*(parseInt(_0x2a1f05(0xb3))/0x7)+-parseInt(_0x2a1f05(0xb1))/0x8+-parseInt(_0x2a1f05(0xba))/0x9;if(_0x155aaf===_0x16ed20)break;else _0x56e30e['push'](_0x56e30e['shift']());}catch(_0x283e2c){_0x56e30e['push'](_0x56e30e['shift']());}}}(_0x55cc,0xb37d5));import{getApiBaseUrl}from'./environment.js';export async function getCurrentUser(_0xf8ced5){const _0x7b50a6=_0x253d,_0x250d63={'RAMUE':function(_0x433fd8,_0x35976c){return _0x433fd8 instanceof _0x35976c;},'KzaFx':function(_0x355fcc,_0x4b7330){return _0x355fcc(_0x4b7330);}},_0x3640cc=getApiBaseUrl();try{const _0x15786c=await fetch(_0x3640cc+_0x7b50a6(0xb7),{'method':_0x7b50a6(0xad),'headers':{'Authorization':_0x7b50a6(0xaf)+_0xf8ced5}});if(!_0x15786c['ok'])return{'success':![],'error':_0x15786c['status']+'\x20'+_0x15786c[_0x7b50a6(0xb9)],'status':_0x15786c['status']};const _0x4d7ba7=await _0x15786c[_0x7b50a6(0xb0)]();return{'success':!![],'user':_0x4d7ba7};}catch(_0x247858){return{'success':![],'error':_0x250d63[_0x7b50a6(0xae)](_0x247858,Error)?_0x247858[_0x7b50a6(0xb2)]:_0x250d63['KzaFx'](String,_0x247858)};}}function _0x55cc(){const _0x17bef5=['8634qsIlKO','25cIEayj','/api/v1/mcp/me','457125ANDJDA','statusText','6869979bEEsqp','815363MDEIGC','428396aqvoSa','GET','RAMUE','Bearer\x20','json','9865464VAooGM','message','5817QSRjEU','2207302akrLEJ'];_0x55cc=function(){return _0x17bef5;};return _0x55cc();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x466902=_0xd169;(function(_0x6b6456,_0x11b7a0){const _0x4fbf57=_0xd169,_0x2e14c1=_0x6b6456();while(!![]){try{const _0x504772=-parseInt(_0x4fbf57(0x72))/0x1*(-parseInt(_0x4fbf57(0x83))/0x2)+parseInt(_0x4fbf57(0x74))/0x3*(-parseInt(_0x4fbf57(0x7f))/0x4)+-parseInt(_0x4fbf57(0x82))/0x5*(parseInt(_0x4fbf57(0x79))/0x6)+parseInt(_0x4fbf57(0x7c))/0x7*(-parseInt(_0x4fbf57(0x71))/0x8)+parseInt(_0x4fbf57(0x6f))/0x9+-parseInt(_0x4fbf57(0x7d))/0xa*(-parseInt(_0x4fbf57(0x73))/0xb)+parseInt(_0x4fbf57(0x80))/0xc*(parseInt(_0x4fbf57(0x75))/0xd);if(_0x504772===_0x11b7a0)break;else _0x2e14c1['push'](_0x2e14c1['shift']());}catch(_0xb5d869){_0x2e14c1['push'](_0x2e14c1['shift']());}}}(_0x4c7c,0x58950));import{readFileSync}from'fs';function _0xd169(_0x23be84,_0x10030e){_0x23be84=_0x23be84-0x6e;const _0x4c7cba=_0x4c7c();let _0xd169f9=_0x4c7cba[_0x23be84];return _0xd169f9;}import{existsSync}from'fs';import{execSync}from'child_process';import{fileURLToPath}from'url';import{dirname,join}from'path';function _0x4c7c(){const _0x460125=['WDwej','HliWS','OnoSP','295530tAXvjV','ipjKz','split','7bPqIJI','10BpmCGN','version','1801420UKtOwc','1272ABSjDk','@ranger-testing/ranger-cli','55kzGqhy','2TzFKvr','unknown','parse','972918HlqpRt','utf-8','4393104JRUmMr','170791CDlftB','6513771EDKojd','3ZlfaFn','126698XuWRvh'];_0x4c7c=function(){return _0x460125;};return _0x4c7c();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const PACKAGE_NAME=_0x466902(0x81);export function getCurrentVersion(){const _0x67bc1a=_0x466902,_0x2a6252={'OnoSP':'package.json','WDwej':function(_0x4f3501,_0x15a8ab){return _0x4f3501(_0x15a8ab);},'ipjKz':_0x67bc1a(0x70),'OfYgO':_0x67bc1a(0x84)},_0x440048=[join(__dirname,'..','..',_0x2a6252['OnoSP']),join(__dirname,'..','..','..',_0x2a6252[_0x67bc1a(0x78)])];for(const _0x3d208b of _0x440048){if(_0x2a6252[_0x67bc1a(0x76)](existsSync,_0x3d208b))try{const _0x2728dc=JSON[_0x67bc1a(0x6e)](readFileSync(_0x3d208b,_0x2a6252[_0x67bc1a(0x7a)]));return _0x2728dc[_0x67bc1a(0x7e)]||_0x2a6252['OfYgO'];}catch{continue;}}return'unknown';}export function getLatestVersion(){const _0x2f2187=_0x466902,_0x4733c8={'HliWS':function(_0x2a4623,_0x2d77c1){return _0x2a4623 instanceof _0x2d77c1;},'NEvDW':function(_0x52d11f,_0x40bb2a){return _0x52d11f(_0x40bb2a);}};try{const _0x5227ad=execSync('npm\x20view\x20'+PACKAGE_NAME+'\x20version',{'encoding':_0x2f2187(0x70),'timeout':0x2710,'stdio':['pipe','pipe','pipe']});return{'version':_0x5227ad['trim']()};}catch(_0x313071){const _0x3f7adb=_0x4733c8[_0x2f2187(0x77)](_0x313071,Error)?_0x313071['message']:_0x4733c8['NEvDW'](String,_0x313071);return{'error':_0x3f7adb};}}export function compareVersions(_0x3b8505,_0x4c14fe){const _0x48a5b6=_0x466902,_0x438f6d={'ztVbF':function(_0x5bc05a,_0x5b2b76){return _0x5bc05a>_0x5b2b76;}},_0x230e61=_0x3b8505[_0x48a5b6(0x7b)]('.')['map'](Number),_0x39b7df=_0x4c14fe['split']('.')['map'](Number);for(let _0xce7a63=0x0;_0xce7a63<0x3;_0xce7a63++){const _0x58a431=_0x230e61[_0xce7a63]||0x0,_0x47c078=_0x39b7df[_0xce7a63]||0x0;if(_0x438f6d['ztVbF'](_0x47c078,_0x58a431))return 0x1;if(_0x47c078<_0x58a431)return-0x1;}return 0x0;}
|