lightrun 1.59.2 → 1.60.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/src/agent/agent-logger.js +1 -1
- package/build/src/agent/blocklisting/blocklisting-patterns.js +1 -1
- package/build/src/agent/blocklisting/dummy-blocklist-manager.js +1 -1
- package/build/src/agent/blocklisting/patterns-blocklist-manager.js +1 -1
- package/build/src/agent/config.js +1 -1
- package/build/src/agent/configuration-provider.js +1 -1
- package/build/src/agent/controller.js +1 -1
- package/build/src/agent/debuglet-helpers/createDebuggee.js +1 -1
- package/build/src/agent/debuglet-helpers/createDebuggeeMetadata.js +1 -1
- package/build/src/agent/debuglet-helpers/createUniquifier.js +1 -1
- package/build/src/agent/debuglet-helpers/delimit.js +1 -1
- package/build/src/agent/debuglet-helpers/format.js +1 -1
- package/build/src/agent/debuglet-helpers/getAgentConfig.js +1 -1
- package/build/src/agent/debuglet-helpers/getPlatform.js +1 -1
- package/build/src/agent/debuglet-helpers/limitConfig.js +1 -1
- package/build/src/agent/debuglet-helpers/mapSubtract.js +1 -1
- package/build/src/agent/debuglet-helpers/normalizeConfig.js +1 -1
- package/build/src/agent/debuglet-helpers/tokenize.js +1 -1
- package/build/src/agent/debuglet.js +1 -1
- package/build/src/agent/environment-metadata.js +1 -1
- package/build/src/agent/io/file-index.js +1 -1
- package/build/src/agent/io/scan-results.js +1 -1
- package/build/src/agent/io/scanner.js +1 -1
- package/build/src/agent/io/sourcemapper.js +1 -1
- package/build/src/agent/leaky-bucket.js +1 -1
- package/build/src/agent/log-data.js +1 -1
- package/build/src/agent/piping-manager.js +1 -1
- package/build/src/agent/quota-manager.js +1 -1
- package/build/src/agent/reduction/redaction-manager-re2js.js +1 -1
- package/build/src/agent/reduction/redaction-manager.js +1 -1
- package/build/src/agent/state/inspector-state.js +1 -1
- package/build/src/agent/state/legacy-state.js +1 -1
- package/build/src/agent/util/debug-assert.js +1 -1
- package/build/src/agent/util/utils.js +1 -1
- package/build/src/agent/util/validator.js +1 -1
- package/build/src/agent/v8/debugapi.js +1 -1
- package/build/src/agent/v8/inspector-debugapi.js +1 -1
- package/build/src/agent/v8/legacy-debugapi.js +1 -1
- package/build/src/agent/v8/v8inspector.js +1 -1
- package/build/src/client/stackdriver/debug.js +1 -1
- package/build/src/client/stackdriver/status-message.js +1 -1
- package/build/src/debuggee.js +1 -1
- package/build/src/gcp.js +1 -1
- package/build/src/index.js +1 -1
- package/build/src/lambda.js +1 -1
- package/build/src/resources/version.txt +1 -1
- package/build/src/types/lightrun.js +1 -1
- package/build/src/types/stackdriver.js +1 -1
- package/build/src/types/v8.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16_0x1e03d4=a16_0x5ed6;function a16_0x5ed6(_0x5b8d4c,_0x56e945){const _0x39724b=a16_0x1c70();return a16_0x5ed6=function(_0x59c0fc,_0x1b93e1){_0x59c0fc=_0x59c0fc-0x1ce;let _0x1c70bc=_0x39724b[_0x59c0fc];return _0x1c70bc;},a16_0x5ed6(_0x5b8d4c,_0x56e945);}(function(_0xe6fb13,_0x35ad41){const _0xf4fef1=a16_0x5ed6,_0x176078=_0xe6fb13();while(!![]){try{const _0x23fd32=-parseInt(_0xf4fef1(0x1d3))/0x1*(-parseInt(_0xf4fef1(0x1e0))/0x2)+parseInt(_0xf4fef1(0x208))/0x3+-parseInt(_0xf4fef1(0x1e6))/0x4*(-parseInt(_0xf4fef1(0x20a))/0x5)+parseInt(_0xf4fef1(0x1f5))/0x6*(parseInt(_0xf4fef1(0x1f0))/0x7)+parseInt(_0xf4fef1(0x1dc))/0x8+parseInt(_0xf4fef1(0x1d1))/0x9+-parseInt(_0xf4fef1(0x1e7))/0xa*(parseInt(_0xf4fef1(0x1e3))/0xb);if(_0x23fd32===_0x35ad41)break;else _0x176078['push'](_0x176078['shift']());}catch(_0x3e0164){_0x176078['push'](_0x176078['shift']());}}}(a16_0x1c70,0xd7a46));function a16_0x1c70(){const _0x3268e7=['agentLogTargetDir','AGENT_LOG_LEVEL','forEach','LIGHTRUN_WAIT_FOR_INIT','constructor','agentLogMaxFileCount','AGENT_LOG_MAX_FILE_SIZE_MB','validateConfig','limitConfig','(((.+)+)+)+$','LIGHTRUN_METADATA_FILE','LIGHTRUN_SECRET','metadata','LIGHTRUN_AGENT_CONFIG','version','AGENT_LOG_MAX_FILE_COUNT','getBooleanValue','1617888LlZwNo','GAE_MODULE_NAME','90fXYGsI','./limitConfig','LIGHTRUN_PROXY_HOST','./getAgentConfig','inner','1889217ecmgGx','toString','25TVLmTD','split','agentLog','unversioned','extend','../config','configSchema','serviceContext','LIGHTRUN_PROXY_USERNAME','4860048Bzqjkf','GAE_MINOR_VERSION','path','GAE_MODULE_VERSION','130138SCcIHq','LIGHTRUN_TAGS','filter','48040795ReHzYQ','agentLogLevel','message','238008bcRBaz','10wgpyyq','LIGHTRUN_API_ENDPOINT','search','env','defaultConfig','validateSync','normalizeConfig','NO_CHECK_CERTIFICATE','service','2790991gSsaIL','../util/utils','AGENT_LOG_TARGET_DIR','registration','LIGHTRUN_STD_ERR_THRESHOLD','18lOkJfA','GAE_SERVICE'];a16_0x1c70=function(){return _0x3268e7;};return a16_0x1c70();}const a16_0x1b93e1=(function(){let _0x5f3ba2=!![];return function(_0x1e9540,_0x2379f1){const _0x5e82dc=_0x5f3ba2?function(){if(_0x2379f1){const _0x4d278d=_0x2379f1['apply'](_0x1e9540,arguments);return _0x2379f1=null,_0x4d278d;}}:function(){};return _0x5f3ba2=![],_0x5e82dc;};}()),a16_0x59c0fc=a16_0x1b93e1(this,function(){const _0x305c36=a16_0x5ed6;return a16_0x59c0fc['toString']()['search']('(((.+)+)+)+$')[_0x305c36(0x1d2)]()[_0x305c36(0x1fb)](a16_0x59c0fc)[_0x305c36(0x1e9)](_0x305c36(0x200));});a16_0x59c0fc();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['normalizeConfig']=exports['validateConfig']=void 0x0;const extend=require(a16_0x1e03d4(0x1d7)),config_1=require(a16_0x1e03d4(0x1d8)),utils_1=require(a16_0x1e03d4(0x1f1)),getAgentConfig_1=require(a16_0x1e03d4(0x1cf)),limitConfig_1=require(a16_0x1e03d4(0x20b)),validateConfig=_0x238dfa=>{const _0x14bf5f=a16_0x1e03d4,_0x4f9ac5={};try{config_1[_0x14bf5f(0x1d9)][_0x14bf5f(0x1ec)](_0x238dfa,{'abortEarly':![]});}catch(_0x270ab9){_0x270ab9[_0x14bf5f(0x1d0)][_0x14bf5f(0x1e2)](_0x3bdf12=>_0x3bdf12[_0x14bf5f(0x1de)]&&_0x3bdf12[_0x14bf5f(0x1e5)])[_0x14bf5f(0x1f9)](_0xfe73aa=>{const _0x27846c=_0x14bf5f;_0x4f9ac5[_0xfe73aa['path']]=_0xfe73aa[_0x27846c(0x1e5)];});}return _0x4f9ac5;};exports[a16_0x1e03d4(0x1fe)]=validateConfig;const normalizeConfig=_0x3f61ed=>{const _0x274cc5=a16_0x1e03d4,_0x10211c={'serviceContext':{'service':process[_0x274cc5(0x1ea)][_0x274cc5(0x1f6)]||process[_0x274cc5(0x1ea)][_0x274cc5(0x209)]||process[_0x274cc5(0x1ea)]['K_SERVICE'],'version':process['env']['GAE_VERSION']||process[_0x274cc5(0x1ea)][_0x274cc5(0x1df)]||process[_0x274cc5(0x1ea)]['K_REVISION'],'minorVersion_':process[_0x274cc5(0x1ea)]['GAE_DEPLOYMENT_ID']||process[_0x274cc5(0x1ea)][_0x274cc5(0x1dd)]},'metadata':{'filename':process[_0x274cc5(0x1ea)][_0x274cc5(0x201)],'registration':{}},'lightrunSecret':process[_0x274cc5(0x1ea)][_0x274cc5(0x202)],'apiEndpoint':process['env'][_0x274cc5(0x1e8)],'noCheckCertificate':(0x0,utils_1[_0x274cc5(0x207)])(process[_0x274cc5(0x1ea)][_0x274cc5(0x1ee)]),'fetchBreakpointsOnce':(0x0,utils_1[_0x274cc5(0x207)])(process[_0x274cc5(0x1ea)]['FETCH_BREAKPOINTS_ONCE']),'lightrunWaitForInit':(0x0,utils_1[_0x274cc5(0x207)])(process[_0x274cc5(0x1ea)][_0x274cc5(0x1fa)]),'lightrunInitWaitTimeMs':process['env']['LIGHTRUN_INIT_WAIT_TIME_MS'],'agentLog':_0x3f61ed?.[_0x274cc5(0x1d5)]||{},'proxy':{'host':process[_0x274cc5(0x1ea)][_0x274cc5(0x1ce)],'port':parseInt(process[_0x274cc5(0x1ea)]['LIGHTRUN_PROXY_PORT']||'')||undefined,'username':process[_0x274cc5(0x1ea)][_0x274cc5(0x1db)],'password':process[_0x274cc5(0x1ea)]['LIGHTRUN_PROXY_PASSWORD']}};process[_0x274cc5(0x1ea)]['LIGHTRUN_STD_ERR_THRESHOLD']!==undefined&&(_0x10211c[_0x274cc5(0x1d5)]['stdErrThreshold']=process[_0x274cc5(0x1ea)][_0x274cc5(0x1f4)]);process[_0x274cc5(0x1ea)]['AGENT_LOG_LEVEL']!==undefined&&(_0x10211c[_0x274cc5(0x1d5)][_0x274cc5(0x1e4)]=process[_0x274cc5(0x1ea)][_0x274cc5(0x1f8)]);process['env'][_0x274cc5(0x1f2)]!==undefined&&(_0x10211c[_0x274cc5(0x1d5)][_0x274cc5(0x1f7)]=process[_0x274cc5(0x1ea)][_0x274cc5(0x1f2)]);process[_0x274cc5(0x1ea)]['AGENT_LOG_MAX_FILE_COUNT']!==undefined&&(_0x10211c[_0x274cc5(0x1d5)][_0x274cc5(0x1fc)]=parseInt(process[_0x274cc5(0x1ea)][_0x274cc5(0x206)]));process['env'][_0x274cc5(0x1fd)]!==undefined&&(_0x10211c['agentLog']['agentLogMaxFileSizeMb']=parseInt(process[_0x274cc5(0x1ea)][_0x274cc5(0x1fd)]));process[_0x274cc5(0x1ea)]['FUNCTION_NAME']&&(_0x10211c[_0x274cc5(0x1da)][_0x274cc5(0x1ef)]=process[_0x274cc5(0x1ea)]['FUNCTION_NAME'],_0x10211c[_0x274cc5(0x1da)][_0x274cc5(0x205)]=_0x274cc5(0x1d6));process[_0x274cc5(0x1ea)][_0x274cc5(0x1e1)]&&(_0x10211c[_0x274cc5(0x203)][_0x274cc5(0x1f3)]={'tags':process['env'][_0x274cc5(0x1e1)][_0x274cc5(0x1d4)](',')});const _0x360d84=(0x0,getAgentConfig_1['getAgentConfig'])(process[_0x274cc5(0x1ea)][_0x274cc5(0x204)]||_0x3f61ed?.['agentConfigFile']||config_1[_0x274cc5(0x1eb)]['agentConfigFile']),_0xb2d1a5=(0x0,limitConfig_1[_0x274cc5(0x1ff)])(extend(!![],{},config_1[_0x274cc5(0x1eb)],_0x360d84,_0x3f61ed,_0x10211c)),_0x15190a=(0x0,exports[_0x274cc5(0x1fe)])(_0xb2d1a5);return{..._0xb2d1a5,'errors':_0x15190a};};exports[a16_0x1e03d4(0x1ed)]=normalizeConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a17_0x110406=a17_0x4b3c;function a17_0x4b3c(_0x4d5020,_0x3d09d1){const _0x2d8719=a17_0x536a();return a17_0x4b3c=function(_0x4e8c7e,_0x38274e){_0x4e8c7e=_0x4e8c7e-0xa8;let _0x536a21=_0x2d8719[_0x4e8c7e];return _0x536a21;},a17_0x4b3c(_0x4d5020,_0x3d09d1);}(function(_0x5d2edb,_0x35315a){const _0x9079b=a17_0x4b3c,_0x3480c3=_0x5d2edb();while(!![]){try{const _0x5620b4=parseInt(_0x9079b(0xab))/0x1+-parseInt(_0x9079b(0xae))/0x2+-parseInt(_0x9079b(0xb6))/0x3+parseInt(_0x9079b(0xac))/0x4*(-parseInt(_0x9079b(0xad))/0x5)+parseInt(_0x9079b(0xb4))/0x6*(-parseInt(_0x9079b(0xb1))/0x7)+-parseInt(_0x9079b(0xaf))/0x8+-parseInt(_0x9079b(0xb3))/0x9*(-parseInt(_0x9079b(0xb5))/0xa);if(_0x5620b4===_0x35315a)break;else _0x3480c3['push'](_0x3480c3['shift']());}catch(_0x842e51){_0x3480c3['push'](_0x3480c3['shift']());}}}(a17_0x536a,0x4cb81));const a17_0x38274e=(function(){let _0x59b660=!![];return function(_0x29fd72,_0x2190de){const _0x5ed5ff=_0x59b660?function(){const _0x1f6a68=a17_0x4b3c;if(_0x2190de){const _0x145aef=_0x2190de[_0x1f6a68(0xaa)](_0x29fd72,arguments);return _0x2190de=null,_0x145aef;}}:function(){};return _0x59b660=![],_0x5ed5ff;};}()),a17_0x4e8c7e=a17_0x38274e(this,function(){const _0x546b4d=a17_0x4b3c;return a17_0x4e8c7e[_0x546b4d(0xa8)]()['search'](_0x546b4d(0xb2))['toString']()['constructor'](a17_0x4e8c7e)['search'](_0x546b4d(0xb2));});a17_0x4e8c7e();'use strict';function a17_0x536a(){const _0x350f46=['74174beNPEB','34408GLNLxx','105AzmLTY','842316cpvBlr','3808480kZogPo','length','42oDaJLK','(((.+)+)+)+$','9117081XRNYiY','158736jcItIl','20NQytve','1648065MIPZOn','__esModule','toString','push','apply'];a17_0x536a=function(){return _0x350f46;};return a17_0x536a();}Object['defineProperty'](exports,a17_0x110406(0xb7),{'value':!![]}),exports['tokenize']=void 0x0;const delimit_1=require('./delimit'),tokenize=(_0x4722c8,_0xe1b139)=>{const _0x146ebb=a17_0x110406;let _0x3487cd=(0x0,delimit_1['delimit'])(_0x4722c8,'$$');for(let _0xf0b577=_0xe1b139-0x1;_0xf0b577>=0x0;_0xf0b577--){const _0x25e53d=[];for(let _0xbf6531=0x0;_0xbf6531<_0x3487cd[_0x146ebb(0xb0)];_0xbf6531++){_0x3487cd[_0xbf6531]['v']?_0x25e53d[_0x146ebb(0xa9)](_0x3487cd[_0xbf6531]):_0x25e53d['push'](...(0x0,delimit_1['delimit'])(_0x3487cd[_0xbf6531],'$'+_0xf0b577));}_0x3487cd=_0x25e53d;}return _0x3487cd;};exports['tokenize']=tokenize;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a18_0x24a08b=a18_0x64c1;(function(_0x395b84,_0x2bf451){const _0x425e49=a18_0x64c1,_0x345a15=_0x395b84();while(!![]){try{const _0x24d3b6=-parseInt(_0x425e49(0x229))/0x1*(-parseInt(_0x425e49(0x1da))/0x2)+-parseInt(_0x425e49(0x1e4))/0x3*(-parseInt(_0x425e49(0x25a))/0x4)+parseInt(_0x425e49(0x2a9))/0x5+-parseInt(_0x425e49(0x2c8))/0x6+parseInt(_0x425e49(0x235))/0x7+-parseInt(_0x425e49(0x21d))/0x8*(parseInt(_0x425e49(0x211))/0x9)+-parseInt(_0x425e49(0x20d))/0xa;if(_0x24d3b6===_0x2bf451)break;else _0x345a15['push'](_0x345a15['shift']());}catch(_0x854bcf){_0x345a15['push'](_0x345a15['shift']());}}}(a18_0x2fac,0x2299b));const a18_0x3695d0=(function(){let _0x3c2dfc=!![];return function(_0x393de3,_0x1f33c0){const _0x31a8e9=_0x3c2dfc?function(){if(_0x1f33c0){const _0x5378a4=_0x1f33c0['apply'](_0x393de3,arguments);return _0x1f33c0=null,_0x5378a4;}}:function(){};return _0x3c2dfc=![],_0x31a8e9;};}()),a18_0x49933f=a18_0x3695d0(this,function(){const _0x55ecaf=a18_0x64c1;return a18_0x49933f[_0x55ecaf(0x217)]()[_0x55ecaf(0x276)](_0x55ecaf(0x265))[_0x55ecaf(0x217)]()[_0x55ecaf(0x2a3)](a18_0x49933f)['search'](_0x55ecaf(0x265));});function a18_0x2fac(){const _0x2477d5=['promisify','javascriptFileExtensions','globalPipingStatus','agentLogTargetDir','Private\x20accessor\x20was\x20defined\x20without\x20a\x20setter','Cannot\x20write\x20private\x20member\x20to\x20an\x20object\x20whose\x20class\x20did\x20not\x20declare\x20it','inspect','format','stdErrThreshold','isDisabled','GAE_MINOR_VERSION','seconds','Active\x20Breakpoints:\x20\x0a','./environment-metadata','\x20caseInsensitive:\x20','function','posix','forEach','216lMuGKI','createPerBreakpointConditionQuota','Breakpoint','maxRequestRetryDelaySeconds','emit','keys','redactionEnabled','logMainConfigParams','./reduction/redaction-manager-re2js','breakpoint\x20id:\x20%s,\x0a\x09type:\x20%s\x0a\x09location:\x20%s','path','(((.+)+)+)+$','setLevel','\x09Notifying\x20server\x20about\x20error\x20for\x20','Disabled\x20by\x20the\x20server','Malformed\x20source-context.json\x20file:\x20','agentLogLevel','setPatterns','parameters','Debuglet','fetcherActive','StatusMessage','do\x20this.','./config','createTime','Agent\x20log\x20level\x20is\x20switched\x20to\x20default\x20(','DEBUG','enable','search','mainModule','beforeExit','GAE-','initError','ALLOW_EXPRESSIONS_MESSAGE','debuggee','Scheduling\x20registration\x20in\x20','Redactions:\x20\x0a\x09','Agent\x20log\x20level\x20is\x20switched\x20to\x20DEBUG','collectAndSendLog','expirationTime','blacklist','Blacklist:\x20\x0a\x09','createDebuggee','findFiles','map','prettyError','.\x20Retrying\x20in\x20','set','isRunning','assert','deregister','replaceRedactedByValue','./io/scanner','Breakpoint\x20hit!:\x20','now','Registered\x20as\x20debuggee:\x20','bind','description','isReadyManager','allowExpressions','Noting\x20to\x20stop,\x20agent\x20is\x20not\x20running','getProps','register','Use\x20config\x20`allowRootAsWorkingDirectory`\x20if\x20you\x20really\x20want\x20to\x20','Unknown\x20agentLogLevel\x20','fetchBreakpointsOnce','util','existsSync','__classPrivateFieldSet','extend','listBreakpoints','breakpoints','\x09Invalid\x20list\x20response:\x20empty\x20body.\x20Retrying\x20in\x20','constructor','type','NOT_SET','Unique\x20ID\x20for\x20this\x20Application:\x20','scan','clearTransmissionTimeout','846315QUfDCJ','packageInfo','./debuglet-helpers/normalizeConfig','\x20completed.','debug','Debuggee\x20is\x20not\x20registered','debuglet','isReady','replace','workingDirectory','./quota-manager','Failed\x20to\x20register\x20debuggee:\x20','Error\x20processing\x20the\x20sourcemaps.','logger','waitExpired','SIGQUIT','expressions','readFile','\x20accepted\x20by\x20agent','Private\x20accessor\x20was\x20defined\x20without\x20a\x20getter','\x20(type:\x20','UNSPECIFIED','EventEmitter','./io/file-index','Lightrun\x20Debugger\x20is\x20attached\x20to\x20','mapFiles','error','pipingStatus','shouldRedactByName','isRedactionActive','once','1080942cftNeH','mapSubtract','parse','./v8/debugapi','breakpointUpdateIntervalSec','enqueueBreakpointUpdate','backoff','has','warn','disable','sourceMapDiagnostics','wait','setBlocklistManager','logLevel','version','activeBreakpointMap','quota','\x09adding\x20breakpoint','remainingHits','6250CXFsmu','hash','condition','filename','Debuglet\x20not\x20running','then','./io/sourcemapper','info','getLevel','Scanner','4647hlwKri','APP_ONLY','promise','location','to\x20avoid\x20a\x20scan\x20of\x20the\x20entire\x20filesystem\x20for\x20JavaScript\x20files.\x20','normalizeConfig','get','\x0a\x09createdTime:\x20','Fetching\x20breakpoints','LOG','SIGTERM','quotaCheck','concat','quotaRecoverySeconds','create','BREAKPOINT_ACTION_MESSAGE','stop','object','kill','\x0a\x09condition:\x20','Blacklist\x20Exceptions:\x20\x0a\x09','Working\x20directory:\x20','sep','getBlocklist','isFinalState','QuotaManager','start','clear','pipingManager','breakpoint_set','filter','promiseResolve','collectLogRequestId','action','errors','pid','Found\x20breakpoint\x20with\x20invalid\x20action:','isOutOfQuota','addAndPipeLog','Cannot\x20read\x20private\x20member\x20from\x20an\x20object\x20whose\x20class\x20did\x20not\x20declare\x20it','LOGPOINT:\x20','178130qvjaKS','call','cwd','REDACTED_PLACEHOLDER','18BoyMAM','reporting\x20breakpoint\x20','extraPaths','caseInsensitive','agentLog','internal','toString','normalize','\x09updating\x20breakpoint\x20data\x20on\x20server\x20(no\x20errors)\x20for','log','setCustomLogLevel','config','682120scswTA','ConfigurationProvider','./controller','sourceContext','Error\x20scanning\x20the\x20filesystem.','all','breakpointExpirationSec','blacklist_exception','clientConnectionTimeoutInSeconds','satisfies','logs\x20path\x20not\x20defined\x20or\x20log\x20file\x20does\x20not\x20exits','./debuglet-helpers/createDebuggee','61vSxrvj','length','\x20to\x20','NODE_VERSION_MESSAGE','default','../types/stackdriver','getSourceContextFromFile','ignoreQuota','\x09successfully\x20added\x20breakpoint','push','message','env','466823ukjvUE','./debuglet-helpers/mapSubtract','js.map','join','__classPrivateFieldGet','FileIndex','status','unref','resolve','stringify','AGENT_LOG_FILE','split','pipeLogs','entries','value','remotelyDisabled','pattern','removeBreakpoint','CAPTURE'];a18_0x2fac=function(){return _0x2477d5;};return a18_0x2fac();}a18_0x49933f();'use strict';var __classPrivateFieldSet=this&&this[a18_0x24a08b(0x29e)]||function(_0x5c0995,_0x3b0aaf,_0x45316b,_0x409658,_0xcee9c0){const _0x16a665=a18_0x24a08b;if(_0x409658==='m')throw new TypeError('Private\x20method\x20is\x20not\x20writable');if(_0x409658==='a'&&!_0xcee9c0)throw new TypeError(_0x16a665(0x24c));if(typeof _0x3b0aaf===_0x16a665(0x257)?_0x5c0995!==_0x3b0aaf||!_0xcee9c0:!_0x3b0aaf['has'](_0x5c0995))throw new TypeError(_0x16a665(0x24d));return _0x409658==='a'?_0xcee9c0['call'](_0x5c0995,_0x45316b):_0xcee9c0?_0xcee9c0['value']=_0x45316b:_0x3b0aaf[_0x16a665(0x289)](_0x5c0995,_0x45316b),_0x45316b;},__classPrivateFieldGet=this&&this[a18_0x24a08b(0x239)]||function(_0x557b9a,_0x55781a,_0x17eb5e,_0x24ef16){const _0x47bc47=a18_0x24a08b;if(_0x17eb5e==='a'&&!_0x24ef16)throw new TypeError(_0x47bc47(0x2bc));if(typeof _0x55781a===_0x47bc47(0x257)?_0x557b9a!==_0x55781a||!_0x24ef16:!_0x55781a[_0x47bc47(0x1ce)](_0x557b9a))throw new TypeError(_0x47bc47(0x20b));return _0x17eb5e==='m'?_0x24ef16:_0x17eb5e==='a'?_0x24ef16[_0x47bc47(0x20e)](_0x557b9a):_0x24ef16?_0x24ef16[_0x47bc47(0x243)]:_0x55781a[_0x47bc47(0x1ea)](_0x557b9a);},_Debuglet_instances,_a,_Debuglet_debug,_Debuglet_v8debug,_Debuglet_running,_Debuglet_controller,_Debuglet_completedBreakpointMap,_Debuglet_breakpointFetchedTimestamp,_Debuglet_breakpointFetched,_Debuglet_debuggeeRegistered,_Debuglet_nextEnableTimeout,_Debuglet_debuggeEnvironmentProperties,_Debuglet_scanner,_Debuglet_quotaManager,_Debuglet_blocklistManager,_Debuglet_redactionManager,_Debuglet_configProvider,_Debuglet_buildRegExp,_Debuglet_registerSignals,_Debuglet_register_,_Debuglet_scheduleRegistration_,_Debuglet_scheduleBreakpointFetch_,_Debuglet_updatePromise,_Debuglet_updateActiveBreakpoints_,_Debuglet_convertBreakpointListToMap_,_Debuglet_removeBreakpoint_,_Debuglet_addBreakpoint_,_Debuglet_updateBreakpoint_,_Debuglet_reportBreakpointAccepted_,_Debuglet_rejectBreakpoint_,_Debuglet_expireOldBreakpoints,_Debuglet_getOldBreakpoints,_Debuglet_getBlocklist,_Debuglet_getRedactions,_Debuglet_stringify;Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Debuglet']=exports['CachedPromise']=void 0x0;const assert=require(a18_0x24a08b(0x28b)),events_1=require('events'),extend=require(a18_0x24a08b(0x29f)),fs=require('fs'),path=require('path'),util=require(a18_0x24a08b(0x29c)),status_message_1=require('../client/stackdriver/status-message'),stackdriver_1=require(a18_0x24a08b(0x22e)),agent_logger_1=require('./agent-logger'),config_1=require(a18_0x24a08b(0x271)),controller_1=require(a18_0x24a08b(0x21f)),SourceMapper=require(a18_0x24a08b(0x1e0)),debugapi=require(a18_0x24a08b(0x1ca)),piping_manager_1=require('./piping-manager'),quota_manager_1=require(a18_0x24a08b(0x2b3)),patterns_blocklist_manager_1=require('./blocklisting/patterns-blocklist-manager'),scanner_1=require(a18_0x24a08b(0x28e)),environment_metadata_1=require(a18_0x24a08b(0x255)),file_index_1=require(a18_0x24a08b(0x2c0)),utils_1=require('./util/utils'),redaction_manager_1=require('./reduction/redaction-manager'),configuration_provider_1=require('./configuration-provider'),normalizeConfig_1=require(a18_0x24a08b(0x2ab)),mapSubtract_1=require(a18_0x24a08b(0x236)),format_1=require('./debuglet-helpers/format'),createDebuggee_1=require(a18_0x24a08b(0x228)),readFilep=util[a18_0x24a08b(0x248)](fs[a18_0x24a08b(0x2ba)]),PROMISE_RESOLVE_CUT_OFF_IN_MILLISECONDS=(0x28+0x21c)/0x2*0x3e8,formatBreakpoint=(_0x1ab2ad,_0x5b0b5f)=>{const _0x5d0c3a=a18_0x24a08b;let _0x944a18=_0x1ab2ad+util[_0x5d0c3a(0x24f)](_0x5d0c3a(0x263),_0x5b0b5f['id'],_0x5b0b5f[_0x5d0c3a(0x205)],util['inspect'](_0x5b0b5f[_0x5d0c3a(0x1e7)]));if(_0x5b0b5f[_0x5d0c3a(0x272)]){const _0x4fce96=Number(_0x5b0b5f[_0x5d0c3a(0x272)][_0x5d0c3a(0x253)]),_0x52c476=new Date(_0x4fce96*0x3e8);_0x944a18+=_0x5d0c3a(0x1eb)+_0x52c476[_0x5d0c3a(0x217)]();}return _0x5b0b5f[_0x5d0c3a(0x1dc)]&&(_0x944a18+=_0x5d0c3a(0x1f7)+util[_0x5d0c3a(0x24e)](_0x5b0b5f[_0x5d0c3a(0x1dc)])),_0x5b0b5f[_0x5d0c3a(0x2b9)]&&(_0x944a18+='\x0a\x09expressions:\x20'+util[_0x5d0c3a(0x24e)](_0x5b0b5f[_0x5d0c3a(0x2b9)])),_0x944a18;},formatBreakpoints=(_0x3787c0,_0x560f2a)=>{const _0x4175d8=a18_0x24a08b;return _0x3787c0+Object[_0x4175d8(0x25f)](_0x560f2a)[_0x4175d8(0x286)](_0x2cb003=>{return formatBreakpoint('',_0x560f2a[_0x2cb003]);})['join']('\x0a');};function a18_0x64c1(_0x2c4e45,_0x358f30){const _0x2d647e=a18_0x2fac();return a18_0x64c1=function(_0x49933f,_0x3695d0){_0x49933f=_0x49933f-0x1c9;let _0x2fac23=_0x2d647e[_0x49933f];return _0x2fac23;},a18_0x64c1(_0x2c4e45,_0x358f30);}class CachedPromise{constructor(){const _0x3fed2d=a18_0x24a08b;this[_0x3fed2d(0x203)]=null,this[_0x3fed2d(0x1e6)]=new Promise(_0x2aa028=>{this['promiseResolve']=_0x2aa028;});}[a18_0x24a08b(0x1ea)](){return this['promise'];}[a18_0x24a08b(0x23d)](){const _0x42d58e=a18_0x24a08b;this[_0x42d58e(0x203)]&&(this[_0x42d58e(0x203)](),this[_0x42d58e(0x203)]=null);}}exports['CachedPromise']=CachedPromise;class IsReadyImpl{constructor(_0x5cd732){const _0x296d53=a18_0x24a08b;this[_0x296d53(0x2af)]=_0x5cd732;}[a18_0x24a08b(0x2b0)](){const _0x240c52=a18_0x24a08b;return this[_0x240c52(0x2af)][_0x240c52(0x2b0)]();}}class Debuglet extends events_1[a18_0x24a08b(0x2bf)]{constructor(_0x106b4b,_0x21c943){const _0x4b9905=a18_0x24a08b;super(),_Debuglet_instances['add'](this),_Debuglet_debug[_0x4b9905(0x289)](this,void 0x0),_Debuglet_v8debug[_0x4b9905(0x289)](this,void 0x0),_Debuglet_running[_0x4b9905(0x289)](this,void 0x0),_Debuglet_controller[_0x4b9905(0x289)](this,void 0x0),_Debuglet_completedBreakpointMap[_0x4b9905(0x289)](this,void 0x0),_Debuglet_breakpointFetchedTimestamp[_0x4b9905(0x289)](this,void 0x0),_Debuglet_breakpointFetched[_0x4b9905(0x289)](this,void 0x0),_Debuglet_debuggeeRegistered[_0x4b9905(0x289)](this,void 0x0),_Debuglet_nextEnableTimeout[_0x4b9905(0x289)](this,null),this[_0x4b9905(0x294)]=new IsReadyImpl(this),_Debuglet_debuggeEnvironmentProperties[_0x4b9905(0x289)](this,void 0x0),_Debuglet_scanner['set'](this,void 0x0),_Debuglet_quotaManager[_0x4b9905(0x289)](this,void 0x0),_Debuglet_blocklistManager['set'](this,void 0x0),_Debuglet_redactionManager['set'](this,void 0x0),_Debuglet_configProvider[_0x4b9905(0x289)](this,void 0x0),this[_0x4b9905(0x21c)]=(0x0,normalizeConfig_1[_0x4b9905(0x1e9)])(_0x21c943),__classPrivateFieldSet(this,_Debuglet_configProvider,new configuration_provider_1[(_0x4b9905(0x21e))](this['config']),'f'),__classPrivateFieldSet(this,_Debuglet_debug,_0x106b4b,'f'),__classPrivateFieldSet(this,_Debuglet_v8debug,null,'f'),__classPrivateFieldSet(this,_Debuglet_running,![],'f'),this[_0x4b9905(0x26e)]=![],this[_0x4b9905(0x2b6)]=agent_logger_1[_0x4b9905(0x22d)]['createLogger'](this[_0x4b9905(0x21c)][_0x4b9905(0x215)]['agentLogTargetDir'],this[_0x4b9905(0x21c)]['agentLog']['agentLogMaxFileSizeMb'],this[_0x4b9905(0x21c)][_0x4b9905(0x215)]['agentLogMaxFileCount'],this[_0x4b9905(0x21c)][_0x4b9905(0x215)]['agentLogLevel'],this['config'][_0x4b9905(0x215)][_0x4b9905(0x250)]),(0x0,config_1[_0x4b9905(0x261)])(this['config'],this[_0x4b9905(0x2b6)]),__classPrivateFieldSet(this,_Debuglet_debuggeEnvironmentProperties,new environment_metadata_1['EnvironmentMetadata'](this['logger'])[_0x4b9905(0x297)](),'f'),__classPrivateFieldSet(this,_Debuglet_controller,new controller_1['Controller'](__classPrivateFieldGet(this,_Debuglet_debug,'f'),this[_0x4b9905(0x21c)],this[_0x4b9905(0x2b6)]),'f'),__classPrivateFieldSet(this,_Debuglet_scanner,new scanner_1[(_0x4b9905(0x1e3))](this[_0x4b9905(0x2b6)]),'f'),this['debuggee']=null,this['activeBreakpointMap']={},__classPrivateFieldSet(this,_Debuglet_completedBreakpointMap,{},'f'),__classPrivateFieldSet(this,_Debuglet_breakpointFetched,null,'f'),__classPrivateFieldSet(this,_Debuglet_breakpointFetchedTimestamp,-Infinity,'f'),__classPrivateFieldSet(this,_Debuglet_debuggeeRegistered,new CachedPromise(),'f'),__classPrivateFieldSet(this,_Debuglet_quotaManager,new quota_manager_1[(_0x4b9905(0x1fd))](this[_0x4b9905(0x2b6)],this[_0x4b9905(0x21c)]),'f'),this['pipingManager']=new piping_manager_1['PipingManager'](_0x4b9905(0x1e5),__classPrivateFieldGet(this,_Debuglet_controller,'f'),this[_0x4b9905(0x21c)]);}async[a18_0x24a08b(0x285)](_0x22fc7a,_0x102205){const _0x4dd350=a18_0x24a08b,_0x1587e4=_0x22fc7a[_0x4dd350(0x2b2)],_0x3ee749=await __classPrivateFieldGet(this,_Debuglet_scanner,'f')[_0x4dd350(0x2a7)](_0x1587e4,__classPrivateFieldGet(_a,_a,'m',_Debuglet_buildRegExp)[_0x4dd350(0x20e)](_a,_0x22fc7a[_0x4dd350(0x249)][_0x4dd350(0x1f0)](_0x4dd350(0x237))),_0x102205,_0x22fc7a[_0x4dd350(0x213)]),_0x1df719=_0x3ee749['selectStats'](__classPrivateFieldGet(_a,_a,'m',_Debuglet_buildRegExp)[_0x4dd350(0x20e)](_a,_0x22fc7a[_0x4dd350(0x249)])),_0x5c1ddd=file_index_1[_0x4dd350(0x23a)]['fromFileStats'](_0x1df719),_0xa38ec7=_0x3ee749['selectFiles'](/.js.map$/,process[_0x4dd350(0x20f)]()),_0x5b877c=_0x3ee749[_0x4dd350(0x206)]();return{'mapFiles':_0xa38ec7,'errors':_0x5b877c,'jsFileIndex':_0x5c1ddd,'hash':_0x3ee749[_0x4dd350(0x1db)]};}async[a18_0x24a08b(0x1fe)](){const _0x5d4048=a18_0x24a08b,_0x212de2=this,_0x37f395=_0x212de2[_0x5d4048(0x21c)][_0x5d4048(0x2b2)];if(!_0x212de2['config']['allowRootAsWorkingDirectory']&&path[_0x5d4048(0x238)](_0x37f395,'..')===_0x37f395){const _0x5f836f='The\x20working\x20directory\x20is\x20a\x20root\x20directory.\x20Disabling\x20'+_0x5d4048(0x1e8)+_0x5d4048(0x299)+_0x5d4048(0x270);_0x212de2[_0x5d4048(0x2b6)][_0x5d4048(0x2c3)](_0x5f836f),_0x212de2['emit'](_0x5d4048(0x27a),new Error(_0x5f836f));return;}let _0x396947;process[_0x5d4048(0x234)][_0x5d4048(0x252)]&&(_0x396947=_0x5d4048(0x279)+process['env'][_0x5d4048(0x252)]);let _0x1ca688,_0x30f988=_0x396947||'';try{_0x1ca688=await this[_0x5d4048(0x285)](_0x212de2[_0x5d4048(0x21c)],_0x396947),_0x1ca688[_0x5d4048(0x206)][_0x5d4048(0x259)](_0x212de2[_0x5d4048(0x2b6)][_0x5d4048(0x1cf)]);}catch(_0x56d851){_0x212de2[_0x5d4048(0x2b6)][_0x5d4048(0x2c3)](_0x5d4048(0x221),_0x56d851),_0x212de2[_0x5d4048(0x25e)](_0x5d4048(0x27a),_0x56d851);return;}try{const _0x744e0=await SourceMapper[_0x5d4048(0x1f2)](_0x212de2[_0x5d4048(0x2b6)],_0x1ca688[_0x5d4048(0x2c2)],_0x212de2[_0x5d4048(0x21c)][_0x5d4048(0x216)]?.[_0x5d4048(0x1d1)]);__classPrivateFieldSet(_0x212de2,_Debuglet_v8debug,debugapi[_0x5d4048(0x1f2)](_0x212de2['logger'],_0x212de2[_0x5d4048(0x21c)],_0x1ca688['jsFileIndex'],_0x744e0,__classPrivateFieldGet(this,_Debuglet_quotaManager,'f')),'f'),_0x30f988=_0x396947||_0x1ca688['hash'];}catch(_0x5b0fb9){_0x212de2[_0x5d4048(0x2b6)][_0x5d4048(0x2c3)](_0x5d4048(0x2b5),_0x5b0fb9),_0x212de2['logger']['info'](JSON[_0x5d4048(0x23e)](_0x5b0fb9)),_0x212de2[_0x5d4048(0x25e)](_0x5d4048(0x27a),_0x5b0fb9);}_0x212de2[_0x5d4048(0x2b6)][_0x5d4048(0x1e1)](_0x5d4048(0x2a6)+_0x30f988);const _0x5222f7=(0x0,utils_1['readFullVersion'])(_0x212de2[_0x5d4048(0x2b6)])[_0x5d4048(0x2b1)]('\x0a','');_0x212de2[_0x5d4048(0x2b6)]['info']('Initializing\x20Node.js\x20agent\x20version:\x20'+_0x5222f7);let _0x202638;try{_0x202638=_0x212de2[_0x5d4048(0x21c)][_0x5d4048(0x220)]||await _a[_0x5d4048(0x22f)]();}catch(_0x164b42){}_0x212de2['logger'][_0x5d4048(0x1e1)](_0x5d4048(0x2c1)+process[_0x5d4048(0x277)]?.[_0x5d4048(0x1dd)]),_0x212de2[_0x5d4048(0x2b6)][_0x5d4048(0x2ad)](_0x5d4048(0x1f9)+_0x37f395),_0x212de2[_0x5d4048(0x2b6)][_0x5d4048(0x2ad)]('Starting\x20debuggee'),__classPrivateFieldSet(_0x212de2,_Debuglet_running,!![],'f'),_0x212de2[_0x5d4048(0x27c)]=(0x0,createDebuggee_1[_0x5d4048(0x284)])(_0x30f988,_0x212de2[_0x5d4048(0x21c)],_0x202638,__classPrivateFieldGet(_0x212de2,_Debuglet_debug,'f')[_0x5d4048(0x2aa)],_0x5222f7,_0x212de2[_0x5d4048(0x2b6)],__classPrivateFieldGet(_0x212de2,_Debuglet_debuggeEnvironmentProperties,'f'),undefined),__classPrivateFieldGet(_0x212de2,_Debuglet_instances,'m',_Debuglet_registerSignals)[_0x5d4048(0x20e)](_0x212de2),__classPrivateFieldGet(_0x212de2,_Debuglet_instances,'m',_Debuglet_register_)[_0x5d4048(0x20e)](_0x212de2),_0x212de2[_0x5d4048(0x25e)]('started');}[a18_0x24a08b(0x2b0)](){const _0x362eef=a18_0x24a08b;if(Date['now']()<__classPrivateFieldGet(this,_Debuglet_breakpointFetchedTimestamp,'f')+PROMISE_RESOLVE_CUT_OFF_IN_MILLISECONDS)return Promise['resolve']();else{if(__classPrivateFieldGet(this,_Debuglet_breakpointFetched,'f'))return __classPrivateFieldGet(this,_Debuglet_breakpointFetched,'f')['get']();return __classPrivateFieldSet(this,_Debuglet_breakpointFetched,new CachedPromise(),'f'),__classPrivateFieldGet(this,_Debuglet_debuggeeRegistered,'f')[_0x362eef(0x1ea)]()[_0x362eef(0x1df)](()=>{const _0x16dbfc=_0x362eef;__classPrivateFieldGet(this,_Debuglet_instances,'m',_Debuglet_scheduleBreakpointFetch_)[_0x16dbfc(0x20e)](this,0x0,!![]);}),__classPrivateFieldGet(this,_Debuglet_breakpointFetched,'f')[_0x362eef(0x1ea)]();}}static async['getSourceContextFromFile'](){const _0x60575=a18_0x24a08b,_0x3b8658=await readFilep('source-context.json','utf8');try{return JSON[_0x60575(0x1c9)](_0x3b8658);}catch(_0x3311d3){throw new Error(_0x60575(0x269)+_0x3311d3);}}[a18_0x24a08b(0x28a)](){return __classPrivateFieldGet(this,_Debuglet_running,'f');}[a18_0x24a08b(0x1f4)](){const _0x4e121f=a18_0x24a08b;if(!__classPrivateFieldGet(this,_Debuglet_running,'f')){this[_0x4e121f(0x2b6)][_0x4e121f(0x2ad)](_0x4e121f(0x296));return;}this[_0x4e121f(0x2b6)][_0x4e121f(0x2ad)]('Stopping\x20Debuglet'),__classPrivateFieldGet(this,_Debuglet_nextEnableTimeout,'f')&&(clearTimeout(__classPrivateFieldGet(this,_Debuglet_nextEnableTimeout,'f')),__classPrivateFieldSet(this,_Debuglet_nextEnableTimeout,null,'f')),__classPrivateFieldGet(this,_Debuglet_controller,'f')?.[_0x4e121f(0x2a8)](),__classPrivateFieldSet(this,_Debuglet_running,![],'f'),this[_0x4e121f(0x25e)]('stopped');}[a18_0x24a08b(0x21b)](_0x44af0e){const _0x320040=a18_0x24a08b,_0x204271=this[_0x320040(0x2b6)]['getInitialLevel']();if(_0x204271===_0x320040(0x2ad))return;switch(_0x44af0e){case _0x320040(0x274):this[_0x320040(0x2b6)]['getLevel']()!=='debug'&&(this[_0x320040(0x2b6)][_0x320040(0x266)](_0x320040(0x2ad)),this[_0x320040(0x2b6)]['debug'](_0x320040(0x27f)));break;case _0x320040(0x2a5):case undefined:this['logger'][_0x320040(0x1e2)]()===_0x320040(0x2ad)&&(this[_0x320040(0x2b6)][_0x320040(0x266)](_0x204271),this['logger'][_0x320040(0x1e1)](_0x320040(0x273)+_0x204271+')'));break;default:this[_0x320040(0x2b6)][_0x320040(0x1cf)](_0x320040(0x29a)+_0x44af0e);}}}exports[a18_0x24a08b(0x26d)]=Debuglet,(_a=Debuglet,_Debuglet_debug=new WeakMap(),_Debuglet_v8debug=new WeakMap(),_Debuglet_running=new WeakMap(),_Debuglet_controller=new WeakMap(),_Debuglet_completedBreakpointMap=new WeakMap(),_Debuglet_breakpointFetchedTimestamp=new WeakMap(),_Debuglet_breakpointFetched=new WeakMap(),_Debuglet_debuggeeRegistered=new WeakMap(),_Debuglet_nextEnableTimeout=new WeakMap(),_Debuglet_debuggeEnvironmentProperties=new WeakMap(),_Debuglet_scanner=new WeakMap(),_Debuglet_quotaManager=new WeakMap(),_Debuglet_blocklistManager=new WeakMap(),_Debuglet_redactionManager=new WeakMap(),_Debuglet_configProvider=new WeakMap(),_Debuglet_instances=new WeakSet(),_Debuglet_buildRegExp=function _Debuglet_buildRegExp(_0x51906f){const _0x1b586b=a18_0x24a08b;return new RegExp(_0x51906f[_0x1b586b(0x286)](_0xf42631=>_0xf42631+'$')['join']('|'));},_Debuglet_registerSignals=function _Debuglet_registerSignals(){const _0x16b43e=a18_0x24a08b,_0x5d7eb8=[_0x16b43e(0x1ee),'SIGINT',_0x16b43e(0x2b8)];_0x5d7eb8[_0x16b43e(0x259)](_0x5a3af2=>{const _0x1b882b=_0x16b43e;process[_0x1b882b(0x2c7)](_0x5a3af2,()=>{const _0x4a782d=_0x1b882b;__classPrivateFieldGet(this,_Debuglet_controller,'f')[_0x4a782d(0x28c)](this[_0x4a782d(0x27c)],()=>{const _0x397e2b=_0x4a782d;process[_0x397e2b(0x1f6)](process[_0x397e2b(0x207)],_0x5a3af2);});});}),process['once'](_0x16b43e(0x278),()=>{const _0x5a4bce=_0x16b43e;__classPrivateFieldGet(this,_Debuglet_controller,'f')[_0x5a4bce(0x28c)](this[_0x5a4bce(0x27c)],()=>{});});},_Debuglet_register_=function _Debuglet_register_(){const _0x189f51=a18_0x24a08b;__classPrivateFieldGet(this,_Debuglet_instances,'m',_Debuglet_scheduleRegistration_)[_0x189f51(0x20e)](this,0x0);},_Debuglet_scheduleRegistration_=function _Debuglet_scheduleRegistration_(_0x4eb4f4){const _0x18a7b1=a18_0x24a08b,_0x4ffdae=this;_0x4ffdae[_0x18a7b1(0x2b6)][_0x18a7b1(0x2ad)](_0x4eb4f4?_0x18a7b1(0x27d)+_0x4eb4f4+'s':'Registering\x20debuggee');function _0x879e33(_0x2a740b,_0x464e38,_0x2eabf7=![]){const _0x52ce10=_0x18a7b1,_0x17e72d=_0x4ffdae['debuggee']?.['id']?'Failed\x20to\x20re-register\x20debuggee\x20'+_0x4ffdae['debuggee']?.['id']+':\x20'+(0x0,utils_1[_0x52ce10(0x287)])(_0x2a740b):_0x52ce10(0x2b4)+(0x0,utils_1[_0x52ce10(0x287)])(_0x2a740b);_0x4ffdae['logger']['error'](_0x17e72d),_0x464e38&&!_0x2eabf7&&_0x4ffdae[_0x52ce10(0x2b6)][_0x52ce10(0x2c3)]('Result:\x20\x0a',_0x464e38),__classPrivateFieldGet(_0x4ffdae,_Debuglet_instances,'m',_Debuglet_scheduleRegistration_)['call'](_0x4ffdae,(0x0,utils_1['backoff'])(_0x4eb4f4,_0x4ffdae[_0x52ce10(0x21c)]['internal'][_0x52ce10(0x25d)]));}setTimeout(()=>{const _0x5e8e22=_0x18a7b1;if(!__classPrivateFieldGet(_0x4ffdae,_Debuglet_running,'f')){_0x879e33(new Error(_0x5e8e22(0x1de)));return;}__classPrivateFieldGet(_0x4ffdae,_Debuglet_controller,'f')[_0x5e8e22(0x298)](_0x4ffdae['debuggee'],(_0x3f2873,_0x1623fe,_0x4bdd19=![])=>{const _0x218d60=_0x5e8e22;if(_0x3f2873){_0x879e33(_0x3f2873,_0x1623fe,_0x4bdd19);return;}if(_0x1623fe[_0x218d60(0x27c)][_0x218d60(0x251)]){_0x879e33(new Error(_0x218d60(0x268))),_0x4ffdae[_0x218d60(0x25e)](_0x218d60(0x244));return;}const _0x59fd4b=_0x1623fe['debuggee']['id'];_0x4ffdae[_0x218d60(0x2b6)][_0x218d60(0x1e1)](_0x218d60(0x291)+_0x59fd4b),_0x4ffdae['debuggee']['id']=_0x59fd4b;const _0x1d88da=[__classPrivateFieldGet(_0x4ffdae,_Debuglet_instances,'m',_Debuglet_getBlocklist)[_0x218d60(0x292)](_0x4ffdae)(_0x4ffdae[_0x218d60(0x27c)]['id'])];_0x4ffdae[_0x218d60(0x21c)][_0x218d60(0x260)]&&_0x1d88da['push'](__classPrivateFieldGet(_0x4ffdae,_Debuglet_instances,'m',_Debuglet_getRedactions)[_0x218d60(0x292)](_0x4ffdae)(_0x4ffdae[_0x218d60(0x27c)]['id'])),Promise[_0x218d60(0x222)](_0x1d88da)['then'](()=>{const _0x3f6f4e=_0x218d60;_0x4ffdae['emit']('registered',_0x59fd4b),__classPrivateFieldGet(_0x4ffdae,_Debuglet_debuggeeRegistered,'f')['resolve'](),__classPrivateFieldGet(_0x4ffdae,_Debuglet_v8debug,'f')?.[_0x3f6f4e(0x1d3)](__classPrivateFieldGet(_0x4ffdae,_Debuglet_blocklistManager,'f')),!_0x4ffdae[_0x3f6f4e(0x26e)]&&__classPrivateFieldGet(_0x4ffdae,_Debuglet_instances,'m',_Debuglet_scheduleBreakpointFetch_)[_0x3f6f4e(0x20e)](_0x4ffdae,0x0,this['config'][_0x3f6f4e(0x29b)],_0x1623fe?.[_0x3f6f4e(0x225)]);},_0xbb74d3=>{_0x879e33(_0xbb74d3);});});},_0x4eb4f4*0x3e8)[_0x18a7b1(0x23c)]();},_Debuglet_scheduleBreakpointFetch_=function _Debuglet_scheduleBreakpointFetch_(_0x465fb0,_0x4abe3d,_0x4be13f){const _0x5e7ff6=a18_0x24a08b,_0x52c1dd=this;!_0x4abe3d&&(_0x52c1dd['fetcherActive']=!![]),setTimeout(()=>{const _0x34cb19=a18_0x64c1;if(!__classPrivateFieldGet(_0x52c1dd,_Debuglet_running,'f'))return;!_0x4abe3d&&assert(_0x52c1dd[_0x34cb19(0x26e)]),_0x52c1dd[_0x34cb19(0x2b6)][_0x34cb19(0x2ad)](_0x34cb19(0x1ec)),__classPrivateFieldGet(_0x52c1dd,_Debuglet_controller,'f')[_0x34cb19(0x2a0)](_0x52c1dd['debuggee'],(_0x31cb7a,_0x53c04a,_0x52f10f)=>{const _0x190b35=_0x34cb19;if(_0x53c04a?.[_0x190b35(0x23b)]===0x194){_0x52c1dd[_0x190b35(0x2b6)][_0x190b35(0x1e1)](_0x190b35(0x2ae)),_0x52c1dd['fetcherActive']=![],__classPrivateFieldGet(_0x52c1dd,_Debuglet_instances,'m',_Debuglet_updatePromise)['call'](_0x52c1dd),__classPrivateFieldGet(_0x52c1dd,_Debuglet_instances,'m',_Debuglet_register_)[_0x190b35(0x20e)](_0x52c1dd);return;}if(_0x31cb7a){const _0x32a2a5=(0x0,utils_1[_0x190b35(0x1cd)])(_0x465fb0,_0x52c1dd[_0x190b35(0x21c)]['internal'][_0x190b35(0x25d)]);_0x52c1dd[_0x190b35(0x2b6)][_0x190b35(0x2c3)]('\x09Got\x20error\x20from\x20server.\x20status:\x20'+_0x53c04a?.[_0x190b35(0x23b)]+'.\x20message:\x20'+_0x31cb7a[_0x190b35(0x233)]+_0x190b35(0x288)+_0x32a2a5+'s'),__classPrivateFieldGet(_0x52c1dd,_Debuglet_instances,'m',_Debuglet_scheduleBreakpointFetch_)[_0x190b35(0x20e)](_0x52c1dd,_0x32a2a5,_0x4abe3d,_0x4be13f);return;}_0x52c1dd[_0x190b35(0x2b6)][_0x190b35(0x2ad)]('\x09'+_0x53c04a['status']+_0x190b35(0x2ac));if(!_0x52f10f){const _0xbe1f8e=_0x52c1dd[_0x190b35(0x21c)][_0x190b35(0x1cb)];_0x52c1dd[_0x190b35(0x2b6)][_0x190b35(0x2c3)](_0x190b35(0x2a2)+_0xbe1f8e+'s'),__classPrivateFieldGet(_0x52c1dd,_Debuglet_instances,'m',_Debuglet_scheduleBreakpointFetch_)[_0x190b35(0x20e)](_0x52c1dd,_0xbe1f8e,_0x4abe3d,_0x4be13f);return;}this[_0x190b35(0x21b)](_0x52f10f[_0x190b35(0x26a)]);if(_0x52f10f[_0x190b35(0x2b7)]){_0x52c1dd['logger'][_0x190b35(0x1e1)]('\x09Long\x20poll\x20completed.'),__classPrivateFieldGet(_0x52c1dd,_Debuglet_instances,'m',_Debuglet_scheduleBreakpointFetch_)[_0x190b35(0x20e)](_0x52c1dd,0x0,_0x4abe3d,_0x4be13f);return;}if(_0x52f10f[_0x190b35(0x241)]&&_0x52f10f[_0x190b35(0x241)]!==_0x190b35(0x2a5)){const _0x15b7cc=this[_0x190b35(0x200)][_0x190b35(0x24a)];_0x15b7cc!==_0x52f10f['pipeLogs']&&(this[_0x190b35(0x2b6)][_0x190b35(0x2ad)]('Switching\x20globalPiping\x20status\x20from\x20'+_0x15b7cc+_0x190b35(0x22b)+_0x52f10f['pipeLogs']),this[_0x190b35(0x200)][_0x190b35(0x24a)]=_0x52f10f[_0x190b35(0x241)]);}if(_0x52f10f[_0x190b35(0x280)]&&_0x52f10f['collectLogRequestId']!==_0x52c1dd['collectLogRequestId']){_0x52c1dd[_0x190b35(0x204)]=_0x52f10f['collectLogRequestId'];const _0x18796b=_0x52c1dd['config'][_0x190b35(0x215)][_0x190b35(0x24b)]&&path[_0x190b35(0x238)](_0x52c1dd[_0x190b35(0x21c)][_0x190b35(0x215)]['agentLogTargetDir'],agent_logger_1['default'][_0x190b35(0x23f)]);_0x18796b&&fs[_0x190b35(0x29d)](_0x18796b)?setTimeout(()=>__classPrivateFieldGet(_0x52c1dd,_Debuglet_controller,'f')['sendAgentLogsToServer'](_0x52c1dd[_0x190b35(0x27c)],_0x52f10f['collectLogRequestId'],_0x18796b)):_0x52c1dd['logger'][_0x190b35(0x1e1)]('Ignoring\x20request\x20to\x20collect\x20logs\x20with\x20id\x20'+_0x52f10f[_0x190b35(0x204)]+'\x20because\x20'+_0x190b35(0x227));}const _0x82e1f6=(_0x52f10f[_0x190b35(0x2a1)]||[])[_0x190b35(0x286)](_0x2eb96b=>new stackdriver_1[(_0x190b35(0x25c))](_0x2eb96b))[_0x190b35(0x202)](_0x3201c7=>{const _0x55e9ad=_0x190b35,_0x385e26=_0x3201c7[_0x55e9ad(0x205)]||_0x55e9ad(0x247);if(__classPrivateFieldGet(_0x52c1dd,_Debuglet_completedBreakpointMap,'f')[_0x3201c7['id']])return![];if(_0x385e26!==_0x55e9ad(0x247)&&_0x385e26!=='LOG')return _0x52c1dd['logger'][_0x55e9ad(0x1cf)](_0x55e9ad(0x208),_0x385e26),_0x3201c7['status']=new status_message_1[(_0x55e9ad(0x26f))](status_message_1[_0x55e9ad(0x26f)]['UNSPECIFIED'],utils_1[_0x55e9ad(0x206)][_0x55e9ad(0x1f3)],!![]),__classPrivateFieldGet(_0x52c1dd,_Debuglet_instances,'m',_Debuglet_rejectBreakpoint_)[_0x55e9ad(0x20e)](_0x52c1dd,_0x3201c7),![];return!![];}),_0x1ee893=__classPrivateFieldGet(_0x52c1dd,_Debuglet_instances,'m',_Debuglet_getOldBreakpoints)[_0x190b35(0x20e)](_0x52c1dd);let _0x1988bf=_0x1ee893['length']>0x0;__classPrivateFieldGet(_0x52c1dd,_Debuglet_instances,'m',_Debuglet_expireOldBreakpoints)[_0x190b35(0x20e)](_0x52c1dd,_0x1ee893),_0x1988bf=_0x1988bf||__classPrivateFieldGet(_0x52c1dd,_Debuglet_instances,'m',_Debuglet_updateActiveBreakpoints_)[_0x190b35(0x20e)](_0x52c1dd,_0x82e1f6),_0x52c1dd['emit']('breakpoints_fetched',_0x82e1f6['length']);_0x1988bf&&_0x52c1dd[_0x190b35(0x2b6)][_0x190b35(0x2ad)](formatBreakpoints(_0x190b35(0x254),_0x52c1dd[_0x190b35(0x1d6)]));__classPrivateFieldSet(_0x52c1dd,_Debuglet_breakpointFetchedTimestamp,Date['now'](),'f');_0x4abe3d?__classPrivateFieldGet(_0x52c1dd,_Debuglet_breakpointFetched,'f')&&(__classPrivateFieldGet(_0x52c1dd,_Debuglet_breakpointFetched,'f')[_0x190b35(0x23d)](),__classPrivateFieldSet(_0x52c1dd,_Debuglet_breakpointFetched,null,'f')):__classPrivateFieldGet(_0x52c1dd,_Debuglet_instances,'m',_Debuglet_scheduleBreakpointFetch_)[_0x190b35(0x20e)](_0x52c1dd,0x0,_0x4abe3d,_0x4be13f);return;},_0x4be13f);},_0x465fb0*0x3e8)[_0x5e7ff6(0x23c)]();},_Debuglet_updatePromise=function _Debuglet_updatePromise(){const _0x58d1e4=a18_0x24a08b;__classPrivateFieldSet(this,_Debuglet_debuggeeRegistered,new CachedPromise(),'f'),__classPrivateFieldGet(this,_Debuglet_breakpointFetched,'f')&&(__classPrivateFieldGet(this,_Debuglet_breakpointFetched,'f')[_0x58d1e4(0x23d)](),__classPrivateFieldSet(this,_Debuglet_breakpointFetched,null,'f'));},_Debuglet_updateActiveBreakpoints_=function _Debuglet_updateActiveBreakpoints_(_0x8de980){const _0x4d71a2=a18_0x24a08b,_0x4b18ce=this,_0x996936=__classPrivateFieldGet(this,_Debuglet_instances,'m',_Debuglet_convertBreakpointListToMap_)[_0x4d71a2(0x20e)](this,_0x8de980);let _0x38f7fd=![];return _0x8de980['forEach'](_0x3f66a2=>{const _0x5e173f=_0x4d71a2;!__classPrivateFieldGet(_0x4b18ce,_Debuglet_completedBreakpointMap,'f')[_0x3f66a2['id']]&&!_0x4b18ce[_0x5e173f(0x1d6)][_0x3f66a2['id']]&&(__classPrivateFieldGet(_0x4b18ce,_Debuglet_instances,'m',_Debuglet_addBreakpoint_)[_0x5e173f(0x20e)](_0x4b18ce,_0x3f66a2,_0x29c637=>{const _0x450e20=_0x5e173f;_0x29c637&&__classPrivateFieldGet(_0x4b18ce,_Debuglet_instances,'m',_Debuglet_updateBreakpoint_)[_0x450e20(0x20e)](_0x4b18ce,_0x3f66a2,!![],![]);}),_0x38f7fd=!![],__classPrivateFieldGet(this,_Debuglet_quotaManager,'f')[_0x5e173f(0x25b)](_0x3f66a2['id'])),__classPrivateFieldGet(_0x4b18ce,_Debuglet_quotaManager,'f')['setIgnoreQuota'](_0x3f66a2['id'],_0x3f66a2[_0x5e173f(0x230)]),_0x4b18ce[_0x5e173f(0x200)]['setPipingStatus'](_0x3f66a2['id'],_0x3f66a2[_0x5e173f(0x2c4)]);}),(0x0,mapSubtract_1[_0x4d71a2(0x2c9)])(__classPrivateFieldGet(this,_Debuglet_completedBreakpointMap,'f'),_0x996936)[_0x4d71a2(0x259)](_0x209cb7=>{delete __classPrivateFieldGet(_0x4b18ce,_Debuglet_completedBreakpointMap,'f')[_0x209cb7['id']],_0x38f7fd=!![];}),(0x0,mapSubtract_1[_0x4d71a2(0x2c9)])(this['activeBreakpointMap'],_0x996936)['forEach'](_0x3a2c3a=>{const _0x369b1a=_0x4d71a2;__classPrivateFieldGet(this,_Debuglet_instances,'m',_Debuglet_removeBreakpoint_)[_0x369b1a(0x20e)](this,_0x3a2c3a,!![]),_0x38f7fd=!![];}),_0x38f7fd&&_0x4b18ce['logger'][_0x4d71a2(0x2ad)](formatBreakpoints('Server\x20breakpoints:\x0a',_0x996936)),_0x38f7fd;},_Debuglet_convertBreakpointListToMap_=function _Debuglet_convertBreakpointListToMap_(_0x308bad){const _0x23cc4e={};return _0x308bad['forEach'](_0x52da49=>{_0x23cc4e[_0x52da49['id']]=_0x52da49;}),_0x23cc4e;},_Debuglet_removeBreakpoint_=function _Debuglet_removeBreakpoint_(_0x2b62c3,_0xf1ee1a){const _0x5d75ec=a18_0x24a08b;this[_0x5d75ec(0x2b6)][_0x5d75ec(0x1e1)]('\x09remove\x20breakpoint',_0x2b62c3),__classPrivateFieldGet(this,_Debuglet_quotaManager,'f')['removePerBreakpointQuota'](_0x2b62c3['id']),this[_0x5d75ec(0x200)][_0x5d75ec(0x246)](_0x2b62c3['id']),delete this[_0x5d75ec(0x1d6)][_0x2b62c3['id']],_0xf1ee1a&&__classPrivateFieldGet(this,_Debuglet_v8debug,'f')&&__classPrivateFieldGet(this,_Debuglet_v8debug,'f')[_0x5d75ec(0x1ff)](_0x2b62c3,_0x3f8197=>{const _0x305d14=_0x5d75ec;if(_0x3f8197)this[_0x305d14(0x2b6)][_0x305d14(0x2c3)](_0x3f8197);});},_Debuglet_addBreakpoint_=function _Debuglet_addBreakpoint_(_0x500ea1,_0x5c9f1a){const _0x9d4cfd=a18_0x24a08b,_0x6133a1=this;_0x6133a1[_0x9d4cfd(0x2b6)][_0x9d4cfd(0x1e1)](_0x9d4cfd(0x1d8),_0x500ea1);if(!_0x6133a1[_0x9d4cfd(0x21c)][_0x9d4cfd(0x295)]&&(_0x500ea1[_0x9d4cfd(0x1dc)]||_0x500ea1[_0x9d4cfd(0x2b9)])){_0x6133a1[_0x9d4cfd(0x2b6)][_0x9d4cfd(0x2c3)](utils_1[_0x9d4cfd(0x206)][_0x9d4cfd(0x27b)][_0x9d4cfd(0x293)]||''),_0x500ea1[_0x9d4cfd(0x23b)]=new status_message_1[(_0x9d4cfd(0x26f))](status_message_1[_0x9d4cfd(0x26f)][_0x9d4cfd(0x2be)],utils_1[_0x9d4cfd(0x206)]['ALLOW_EXPRESSIONS_MESSAGE'],!![]),setImmediate(()=>{const _0x152686=_0x9d4cfd;_0x5c9f1a(utils_1[_0x152686(0x206)][_0x152686(0x27b)]);});return;}if((0x0,utils_1[_0x9d4cfd(0x226)])(process['version'],'5.2\x20||\x20<4')){const _0x5218e6=utils_1['errors'][_0x9d4cfd(0x22c)];_0x6133a1['logger'][_0x9d4cfd(0x2c3)](_0x5218e6),_0x500ea1['status']=new status_message_1['StatusMessage'](status_message_1[_0x9d4cfd(0x26f)]['UNSPECIFIED'],_0x5218e6,!![]),setImmediate(()=>{_0x5c9f1a(_0x5218e6);});return;}const _0xb9f8f8=_0x500ea1[_0x9d4cfd(0x272)]?Number(_0x500ea1[_0x9d4cfd(0x272)][_0x9d4cfd(0x253)]):Date[_0x9d4cfd(0x290)]()/0x3e8,_0x3a8224=_0x500ea1['expirationSeconds']||_0x6133a1[_0x9d4cfd(0x21c)][_0x9d4cfd(0x223)];_0x500ea1[_0x9d4cfd(0x281)]=_0xb9f8f8+_0x3a8224,_0x500ea1[_0x9d4cfd(0x1e7)]?.[_0x9d4cfd(0x264)]&&(_0x500ea1[_0x9d4cfd(0x1e7)][_0x9d4cfd(0x264)]=path[_0x9d4cfd(0x218)](_0x500ea1[_0x9d4cfd(0x1e7)]['path']),path[_0x9d4cfd(0x1fa)]===path[_0x9d4cfd(0x258)][_0x9d4cfd(0x1fa)]&&(_0x500ea1[_0x9d4cfd(0x1e7)][_0x9d4cfd(0x264)]=_0x500ea1['location'][_0x9d4cfd(0x264)][_0x9d4cfd(0x240)]('\x5c')[_0x9d4cfd(0x238)](path[_0x9d4cfd(0x1fa)]))),__classPrivateFieldGet(_0x6133a1,_Debuglet_v8debug,'f')['set'](_0x500ea1,_0x200a60=>{const _0x278e81=_0x9d4cfd;if(_0x200a60){_0x5c9f1a(_0x200a60);return;}_0x6133a1[_0x278e81(0x2b6)][_0x278e81(0x1e1)](_0x278e81(0x231),_0x500ea1),_0x6133a1[_0x278e81(0x1d6)][_0x500ea1['id']]=_0x500ea1,_0x500ea1[_0x278e81(0x205)]===_0x278e81(0x1ed)?__classPrivateFieldGet(_0x6133a1,_Debuglet_v8debug,'f')[_0x278e81(0x21a)](_0x500ea1,(_0x266753,_0x352749)=>{const _0x40ce5d=_0x278e81,_0x221b5d=_0x352749[_0x40ce5d(0x286)](_0x28d573=>__classPrivateFieldGet(_0x6133a1,_Debuglet_instances,'m',_Debuglet_stringify)[_0x40ce5d(0x20e)](_0x6133a1,_0x28d573)),_0x42ffc9=(0x0,format_1[_0x40ce5d(0x24f)])(_0x266753,_0x221b5d),_0x58370b=_0x40ce5d(0x20c)+(__classPrivateFieldGet(_0x6133a1,_Debuglet_redactionManager,'f')?.[_0x40ce5d(0x28d)](_0x42ffc9)||_0x42ffc9),_0x5ba258=__classPrivateFieldGet(this,_Debuglet_quotaManager,'f')[_0x40ce5d(0x1ef)](_0x58370b,_0x500ea1['id']);if(_0x5ba258){const _0x4dbbbd=_0x5ba258[_0x40ce5d(0x233)],_0x1ca68a=_0x5ba258[_0x40ce5d(0x209)];let _0xd6edec,_0x11678b;!__classPrivateFieldGet(this,_Debuglet_redactionManager,'f')?.[_0x40ce5d(0x2c6)]()&&!_0x1ca68a&&(_0xd6edec='LOGPOINT:\x20'+_0x266753,_0x11678b=_0x221b5d);_0x6133a1['pipingManager'][_0x40ce5d(0x20a)](_0x6133a1['debuggee'],_0x500ea1['id'],_0x4dbbbd,_0x500ea1[_0x40ce5d(0x1d4)],_0xd6edec,_0x11678b);if(_0x1ca68a)__classPrivateFieldGet(_0x6133a1,_Debuglet_v8debug,'f')?.[_0x40ce5d(0x1d0)](),__classPrivateFieldGet(this,_Debuglet_nextEnableTimeout,'f')&&clearTimeout(__classPrivateFieldGet(this,_Debuglet_nextEnableTimeout,'f')),__classPrivateFieldSet(this,_Debuglet_nextEnableTimeout,setTimeout(()=>{const _0x38ea5e=_0x40ce5d;__classPrivateFieldGet(_0x6133a1,_Debuglet_v8debug,'f')?.[_0x38ea5e(0x275)](),__classPrivateFieldSet(_0x6133a1,_Debuglet_nextEnableTimeout,null,'f');},_0x6133a1[_0x40ce5d(0x21c)][_0x40ce5d(0x1d7)][_0x40ce5d(0x1f1)]*0x3e8),'f');else _0x4dbbbd?.[_0x40ce5d(0x22a)]===0x0&&__classPrivateFieldGet(_0x6133a1,_Debuglet_v8debug,'f')?.['disable']();}},()=>{return __classPrivateFieldGet(_0x6133a1,_Debuglet_completedBreakpointMap,'f')[_0x500ea1['id']];},_0x219af9=>{const _0xd7c06d=_0x278e81;if(_0x219af9){_0x6133a1['logger'][_0xd7c06d(0x2c3)](_0x219af9),_0x5c9f1a(_0x219af9);return;}}):__classPrivateFieldGet(_0x6133a1,_Debuglet_v8debug,'f')[_0x278e81(0x1d2)](_0x500ea1,_0x515f90=>{const _0x349467=_0x278e81;if(_0x515f90){setImmediate(()=>{const _0x2f8042=a18_0x64c1;_0x6133a1[_0x2f8042(0x2b6)][_0x2f8042(0x2c3)](_0x515f90),_0x5c9f1a(_0x515f90);});return;}_0x6133a1[_0x349467(0x2b6)]['info'](_0x349467(0x28f),_0x500ea1),__classPrivateFieldGet(_0x6133a1,_Debuglet_instances,'m',_Debuglet_updateBreakpoint_)[_0x349467(0x20e)](_0x6133a1,_0x500ea1,__classPrivateFieldGet(_0x6133a1,_Debuglet_v8debug,'f')[_0x349467(0x1d9)](_0x500ea1['id'])<=0x0);}),__classPrivateFieldGet(_0x6133a1,_Debuglet_instances,'m',_Debuglet_reportBreakpointAccepted_)['call'](_0x6133a1,_0x500ea1);}),this['emit'](_0x9d4cfd(0x201));},_Debuglet_updateBreakpoint_=function _Debuglet_updateBreakpoint_(_0x42b127,_0x505c8f,_0x59560b=!![]){const _0x48317c=a18_0x24a08b,_0x109092=this;if(_0x42b127[_0x48317c(0x23b)]&&_0x42b127[_0x48317c(0x23b)]['isError']){let _0x246b84=_0x42b127['status']?.[_0x48317c(0x293)]?.[_0x48317c(0x24f)]||'';_0x42b127['status']?.['description']?.[_0x48317c(0x26c)]&&(_0x246b84+=':\x20'+_0x42b127[_0x48317c(0x23b)]?.[_0x48317c(0x293)]?.['parameters']['toString']()),_0x109092['logger'][_0x48317c(0x1cf)](_0x48317c(0x267)+_0x42b127+'.\x20Error:\x20'+_0x246b84);}else _0x109092[_0x48317c(0x2b6)][_0x48317c(0x1e1)](_0x48317c(0x219),_0x42b127);_0x505c8f&&(__classPrivateFieldGet(_0x109092,_Debuglet_completedBreakpointMap,'f')[_0x42b127['id']]=!![],__classPrivateFieldGet(_0x109092,_Debuglet_instances,'m',_Debuglet_removeBreakpoint_)['call'](_0x109092,_0x42b127,_0x59560b)),__classPrivateFieldGet(_0x109092,_Debuglet_controller,'f')['enqueueBreakpointUpdate'](_0x109092['debuggee'],extend(!![],{},_0x42b127));},_Debuglet_reportBreakpointAccepted_=function _Debuglet_reportBreakpointAccepted_(_0x529f49){const _0x4b8229=a18_0x24a08b,_0x54a7e8=this;_0x54a7e8[_0x4b8229(0x2b6)][_0x4b8229(0x2ad)](_0x4b8229(0x212)+_0x529f49+_0x4b8229(0x2bb));const _0x216908=extend(!![],{},_0x529f49);_0x216908[_0x4b8229(0x1fc)]=![],_0x216908['status']=new status_message_1[(_0x4b8229(0x26f))](status_message_1[_0x4b8229(0x26f)]['UNSPECIFIED'],undefined,![],!![]),__classPrivateFieldGet(_0x54a7e8,_Debuglet_controller,'f')[_0x4b8229(0x1cc)](_0x54a7e8[_0x4b8229(0x27c)],_0x216908);},_Debuglet_rejectBreakpoint_=function _Debuglet_rejectBreakpoint_(_0x225c68){const _0x2ace65=a18_0x24a08b,_0x1eb157=this;this[_0x2ace65(0x2b6)][_0x2ace65(0x1e1)]('rejecting\x20breakpoint',_0x225c68),__classPrivateFieldGet(_0x1eb157,_Debuglet_completedBreakpointMap,'f')[_0x225c68['id']]=!![],__classPrivateFieldGet(_0x1eb157,_Debuglet_controller,'f')[_0x2ace65(0x1cc)](_0x1eb157['debuggee'],_0x225c68);},_Debuglet_expireOldBreakpoints=function _Debuglet_expireOldBreakpoints(_0x178b21){const _0x21037d=a18_0x24a08b,_0x8598e3=this;_0x178b21[_0x21037d(0x259)](_0x2b4fdf=>{const _0x5f0598=_0x21037d;_0x8598e3[_0x5f0598(0x2b6)]['info']('Expiring\x20breakpoint',_0x2b4fdf),__classPrivateFieldGet(_0x8598e3,_Debuglet_completedBreakpointMap,'f')[_0x2b4fdf['id']]=!![],__classPrivateFieldGet(_0x8598e3,_Debuglet_instances,'m',_Debuglet_removeBreakpoint_)[_0x5f0598(0x20e)](_0x8598e3,_0x2b4fdf,!![]);});},_Debuglet_getOldBreakpoints=function _Debuglet_getOldBreakpoints(){const _0x269455=a18_0x24a08b,_0x159ddb=Date['now']()/0x3e8;return Object['values'](this['activeBreakpointMap'])[_0x269455(0x202)](_0x35d33b=>_0x35d33b[_0x269455(0x281)]?_0x35d33b[_0x269455(0x281)]<_0x159ddb:![]);},_Debuglet_getBlocklist=async function _Debuglet_getBlocklist(_0x12a073){const _0x425114=a18_0x24a08b,_0x339a77=await __classPrivateFieldGet(this,_Debuglet_controller,'f')[_0x425114(0x1fb)](_0x12a073),_0x160ce9=_0x339a77[_0x425114(0x282)],_0x348f01=_0x339a77[_0x425114(0x224)];_0x160ce9&&_0x160ce9[_0x425114(0x22a)]&&this[_0x425114(0x2b6)]['debug'](_0x425114(0x283),_0x160ce9[_0x425114(0x238)]('\x0a\x09')),_0x348f01&&_0x348f01[_0x425114(0x22a)]&&this[_0x425114(0x2b6)]['debug'](_0x425114(0x1f8),_0x348f01['join']('\x0a\x09')),__classPrivateFieldSet(this,_Debuglet_blocklistManager,new patterns_blocklist_manager_1['PatternsBlocklistManager'](_0x160ce9,_0x348f01,this[_0x425114(0x21c)]),'f');},_Debuglet_getRedactions=async function _Debuglet_getRedactions(_0x2ae49c){const _0x265984=a18_0x24a08b,_0x41b561=await __classPrivateFieldGet(this,_Debuglet_controller,'f')['getRedactions'](_0x2ae49c);_0x41b561?.[_0x265984(0x22a)]&&this[_0x265984(0x2b6)][_0x265984(0x2ad)](_0x265984(0x27e),_0x41b561[_0x265984(0x286)](_0x22cd4e=>'name:\x20'+_0x22cd4e['name']+_0x265984(0x2bd)+_0x22cd4e[_0x265984(0x2a4)]+'):\x20pattern:\x20'+_0x22cd4e[_0x265984(0x245)]+_0x265984(0x256)+_0x22cd4e[_0x265984(0x214)])['join']('\x0a\x09'));if((0x0,utils_1['satisfies'])(process[_0x265984(0x1d5)],'>=12')){const {RedactionManagerRE2JS:_0x100da7}=await Promise['resolve']()['then'](()=>require(_0x265984(0x262)));__classPrivateFieldSet(this,_Debuglet_redactionManager,new _0x100da7(this['logger']),'f'),__classPrivateFieldGet(this,_Debuglet_redactionManager,'f')?.[_0x265984(0x26b)](_0x41b561);}},_Debuglet_stringify=function _Debuglet_stringify(_0x39065a){const _0x427205=a18_0x24a08b;if(!_0x39065a)return JSON[_0x427205(0x23e)](_0x39065a,(_0x4009e8,_0x40753d)=>_0x40753d===undefined?'undefined':_0x40753d);if(Array['isArray'](_0x39065a)){const _0x522db6=[];for(const _0x22a30f of _0x39065a){_0x522db6[_0x427205(0x232)](__classPrivateFieldGet(this,_Debuglet_instances,'m',_Debuglet_stringify)[_0x427205(0x20e)](this,_0x22a30f));}return'['+_0x522db6[_0x427205(0x238)](',\x20')+']';}if(typeof _0x39065a===_0x427205(0x1f5)){const _0x1e3aa2=Object[_0x427205(0x242)](_0x39065a)[_0x427205(0x286)](([_0x1a3d67,_0x4e86af])=>{const _0x31d9d7=_0x427205,_0x1ba8ce=__classPrivateFieldGet(this,_Debuglet_redactionManager,'f')?.[_0x31d9d7(0x2c5)](_0x1a3d67)?redaction_manager_1[_0x31d9d7(0x210)]:__classPrivateFieldGet(this,_Debuglet_instances,'m',_Debuglet_stringify)[_0x31d9d7(0x20e)](this,_0x4e86af);return JSON[_0x31d9d7(0x23e)](_0x1a3d67)+':\x20'+_0x1ba8ce;})[_0x427205(0x238)](',\x20');return'{'+_0x1e3aa2+'}';}return JSON[_0x427205(0x23e)](_0x39065a);});
|
|
1
|
+
const a18_0x10263f=a18_0x4c67;(function(_0xad1f41,_0x28925c){const _0x3f1260=a18_0x4c67,_0x572383=_0xad1f41();while(!![]){try{const _0x3ecef1=parseInt(_0x3f1260(0x191))/0x1+parseInt(_0x3f1260(0x1de))/0x2+-parseInt(_0x3f1260(0x162))/0x3*(parseInt(_0x3f1260(0x19c))/0x4)+parseInt(_0x3f1260(0x1ac))/0x5*(parseInt(_0x3f1260(0x11e))/0x6)+-parseInt(_0x3f1260(0x1f5))/0x7*(parseInt(_0x3f1260(0x1b2))/0x8)+-parseInt(_0x3f1260(0x1ef))/0x9*(parseInt(_0x3f1260(0x1ec))/0xa)+parseInt(_0x3f1260(0x17e))/0xb*(-parseInt(_0x3f1260(0x1e4))/0xc);if(_0x3ecef1===_0x28925c)break;else _0x572383['push'](_0x572383['shift']());}catch(_0x1d050e){_0x572383['push'](_0x572383['shift']());}}}(a18_0xb5dd,0xceba1));function a18_0xb5dd(){const _0x1e3d25=['Failed\x20to\x20register\x20debuggee:\x20','CachedPromise','5.2\x20||\x20<4','seconds','concat','waitExpired','createPerBreakpointConditionQuota','Debuglet','logger','started','beforeExit','satisfies','stopped','\x0a\x09expressions:\x20','CAPTURE','\x09remove\x20breakpoint','\x09Invalid\x20list\x20response:\x20empty\x20body.\x20Retrying\x20in\x20','message','./debuglet-helpers/format','default','Ignoring\x20request\x20to\x20collect\x20logs\x20with\x20id\x20','globalPipingStatus','all','pid','then','join','call','maxRequestRetryDelaySeconds','location','breakpoint_set','):\x20pattern:\x20','pipingManager','DEBUG','error','./blocklisting/patterns-blocklist-manager','events','promise','setPipingStatus','1908024WhgPgK','The\x20working\x20directory\x20is\x20a\x20root\x20directory.\x20Disabling\x20','parameters','source-context.json','setPatterns','PatternsBlocklistManager','getSourceContextFromFile','values','./environment-metadata','errors','ALLOW_EXPRESSIONS_MESSAGE','Server\x20breakpoints:\x0a','Breakpoint\x20hit!:\x20','Scheduling\x20registration\x20in\x20','Disabled\x20by\x20the\x20server','stop','extraPaths','./debuglet-helpers/normalizeConfig','enqueueBreakpointUpdate','NODE_VERSION_MESSAGE','SIGINT','normalize','debug','removePerBreakpointQuota','Failed\x20to\x20re-register\x20debuggee\x20','entries','filter','condition','22pLJMoj','logLevel','expressions','stdErrThreshold','\x0a\x09condition:\x20','backoff','prettyError','existsSync','Agent\x20log\x20level\x20is\x20switched\x20to\x20default\x20(','log','Active\x20Breakpoints:\x20\x0a','./io/scanner','keys','\x20because\x20','description','./quota-manager','toString','quota','getBlocklist','910779zomZMs','forEach','normalizeConfig','Expiring\x20breakpoint','util','now','workingDirectory','PipingManager','APP_ONLY','status','Blacklist:\x20\x0a\x09','4FEHcGG','agentLogTargetDir','createTime','path','agentLog','selectFiles','isOutOfQuota','fetcherActive','cwd','__classPrivateFieldSet','activeBreakpointMap','length','once','Debuglet\x20not\x20running','(((.+)+)+)+$','hash','8350uLdOOp','./io/file-index','__esModule','config','\x09Got\x20error\x20from\x20server.\x20status:\x20','BREAKPOINT_ACTION_MESSAGE','25072AvhPYe','undefined','push','breakpoints','pipeLogs','collectAndSendLog','env','sendAgentLogsToServer','constructor','./configuration-provider','.\x20Retrying\x20in\x20','debuggee','GAE_MINOR_VERSION','apply','resolve','enable','NOT_SET','setBlocklistManager','clear','../client/stackdriver/status-message','Blacklist\x20Exceptions:\x20\x0a\x09','getRedactions','isArray','replaceRedactedByValue','posix','setIgnoreQuota','get','breakpoints_fetched','map','name','format','add','inspect','pattern','GAE-','promisify','unref','isFinalState','disable','has','deregister','Scanner','./debuglet-helpers/mapSubtract','Private\x20accessor\x20was\x20defined\x20without\x20a\x20getter','1578110VBnwHb','Breakpoint','expirationTime','Redactions:\x20\x0a\x09','register','name:\x20','1502736DzEemt','isError','\x09updating\x20breakpoint\x20data\x20on\x20server\x20(no\x20errors)\x20for','value','bind','Stopping\x20Debuglet','create','sep','3110YiIMVM','./piping-manager','internal','26127lnDqVO','setCustomLogLevel','collectLogRequestId','version','reporting\x20breakpoint\x20','Cannot\x20write\x20private\x20member\x20to\x20an\x20object\x20whose\x20class\x20did\x20not\x20declare\x20it','602YRERjg','./debuglet-helpers/createDebuggee','jsFileIndex','set','LOG','warn','to\x20avoid\x20a\x20scan\x20of\x20the\x20entire\x20filesystem\x20for\x20JavaScript\x20files.\x20','findFiles','registered','Cannot\x20read\x20private\x20member\x20from\x20an\x20object\x20whose\x20class\x20did\x20not\x20declare\x20it','search','Error\x20scanning\x20the\x20filesystem.','FileIndex','mainModule','addAndPipeLog','sourceMapDiagnostics','SIGTERM','javascriptFileExtensions','stringify','__classPrivateFieldGet','REDACTED_PLACEHOLDER','ConfigurationProvider','UNSPECIFIED','Use\x20config\x20`allowRootAsWorkingDirectory`\x20if\x20you\x20really\x20want\x20to\x20','createLogger','logMainConfigParams','do\x20this.','agentLogLevel','info','Private\x20method\x20is\x20not\x20writable','StatusMessage','\x20accepted\x20by\x20agent','mapFiles','\x0a\x09createdTime:\x20','readFile','./controller','./reduction/redaction-manager','js.map','Unknown\x20agentLogLevel\x20','clearTransmissionTimeout','assert','.\x20message:\x20','setLevel','kill','blacklist_exception','caseInsensitive','expirationSeconds','4332tmHCVT','sourceContext','action','logs\x20path\x20not\x20defined\x20or\x20log\x20file\x20does\x20not\x20exits','shouldRedactByName','mapSubtract','getLevel','Found\x20breakpoint\x20with\x20invalid\x20action:','EventEmitter','isReady','\x09Notifying\x20server\x20about\x20error\x20for\x20','isRunning','fetchBreakpointsOnce','parse','wait','Result:\x20\x0a','LOGPOINT:\x20','promiseResolve','emit','\x09Long\x20poll\x20completed.','getInitialLevel','removeBreakpoint','readFullVersion','Working\x20directory:\x20','\x09successfully\x20added\x20breakpoint','createDebuggee','Malformed\x20source-context.json\x20file:\x20','Switching\x20globalPiping\x20status\x20from\x20','Registering\x20debuggee','EnvironmentMetadata'];a18_0xb5dd=function(){return _0x1e3d25;};return a18_0xb5dd();}const a18_0x3dd4be=(function(){let _0x52ba8a=!![];return function(_0x1fb9e6,_0x4c47c6){const _0x378474=_0x52ba8a?function(){const _0x180a3f=a18_0x4c67;if(_0x4c47c6){const _0x29867d=_0x4c47c6[_0x180a3f(0x1bf)](_0x1fb9e6,arguments);return _0x4c47c6=null,_0x29867d;}}:function(){};return _0x52ba8a=![],_0x378474;};}()),a18_0x582fcf=a18_0x3dd4be(this,function(){const _0x204da3=a18_0x4c67;return a18_0x582fcf[_0x204da3(0x18e)]()[_0x204da3(0x1ff)]('(((.+)+)+)+$')[_0x204da3(0x18e)]()[_0x204da3(0x1ba)](a18_0x582fcf)[_0x204da3(0x1ff)](_0x204da3(0x1aa));});a18_0x582fcf();function a18_0x4c67(_0x36020b,_0x2722e9){const _0x1e43a8=a18_0xb5dd();return a18_0x4c67=function(_0x582fcf,_0x3dd4be){_0x582fcf=_0x582fcf-0xfd;let _0xb5dd35=_0x1e43a8[_0x582fcf];return _0xb5dd35;},a18_0x4c67(_0x36020b,_0x2722e9);}'use strict';var __classPrivateFieldSet=this&&this[a18_0x10263f(0x1a5)]||function(_0x11a4c6,_0x1e1585,_0x2444b6,_0x2bdfbf,_0x548439){const _0x533cff=a18_0x10263f;if(_0x2bdfbf==='m')throw new TypeError(_0x533cff(0x10c));if(_0x2bdfbf==='a'&&!_0x548439)throw new TypeError('Private\x20accessor\x20was\x20defined\x20without\x20a\x20setter');if(typeof _0x1e1585==='function'?_0x11a4c6!==_0x1e1585||!_0x548439:!_0x1e1585[_0x533cff(0x1d9)](_0x11a4c6))throw new TypeError(_0x533cff(0x1f4));return _0x2bdfbf==='a'?_0x548439['call'](_0x11a4c6,_0x2444b6):_0x548439?_0x548439[_0x533cff(0x1e7)]=_0x2444b6:_0x1e1585[_0x533cff(0x1f8)](_0x11a4c6,_0x2444b6),_0x2444b6;},__classPrivateFieldGet=this&&this[a18_0x10263f(0x102)]||function(_0x599943,_0x41ecbf,_0x2fe9f1,_0x3596a8){const _0x383ab9=a18_0x10263f;if(_0x2fe9f1==='a'&&!_0x3596a8)throw new TypeError(_0x383ab9(0x1dd));if(typeof _0x41ecbf==='function'?_0x599943!==_0x41ecbf||!_0x3596a8:!_0x41ecbf[_0x383ab9(0x1d9)](_0x599943))throw new TypeError(_0x383ab9(0x1fe));return _0x2fe9f1==='m'?_0x3596a8:_0x2fe9f1==='a'?_0x3596a8[_0x383ab9(0x156)](_0x599943):_0x3596a8?_0x3596a8['value']:_0x41ecbf[_0x383ab9(0x1cc)](_0x599943);},_Debuglet_instances,_a,_Debuglet_debug,_Debuglet_v8debug,_Debuglet_running,_Debuglet_controller,_Debuglet_completedBreakpointMap,_Debuglet_breakpointFetchedTimestamp,_Debuglet_breakpointFetched,_Debuglet_debuggeeRegistered,_Debuglet_nextEnableTimeout,_Debuglet_debuggeEnvironmentProperties,_Debuglet_scanner,_Debuglet_quotaManager,_Debuglet_blocklistManager,_Debuglet_redactionManager,_Debuglet_configProvider,_Debuglet_buildRegExp,_Debuglet_registerSignals,_Debuglet_register_,_Debuglet_scheduleRegistration_,_Debuglet_scheduleBreakpointFetch_,_Debuglet_updatePromise,_Debuglet_updateActiveBreakpoints_,_Debuglet_convertBreakpointListToMap_,_Debuglet_removeBreakpoint_,_Debuglet_addBreakpoint_,_Debuglet_updateBreakpoint_,_Debuglet_reportBreakpointAccepted_,_Debuglet_rejectBreakpoint_,_Debuglet_expireOldBreakpoints,_Debuglet_getOldBreakpoints,_Debuglet_getBlocklist,_Debuglet_getRedactions,_Debuglet_stringify;Object['defineProperty'](exports,a18_0x10263f(0x1ae),{'value':!![]}),exports[a18_0x10263f(0x143)]=exports[a18_0x10263f(0x13d)]=void 0x0;const assert=require(a18_0x10263f(0x117)),events_1=require(a18_0x10263f(0x15f)),extend=require('extend'),fs=require('fs'),path=require(a18_0x10263f(0x19f)),util=require(a18_0x10263f(0x195)),status_message_1=require(a18_0x10263f(0x1c5)),stackdriver_1=require('../types/stackdriver'),agent_logger_1=require('./agent-logger'),config_1=require('./config'),controller_1=require(a18_0x10263f(0x112)),SourceMapper=require('./io/sourcemapper'),debugapi=require('./v8/debugapi'),piping_manager_1=require(a18_0x10263f(0x1ed)),quota_manager_1=require(a18_0x10263f(0x18d)),patterns_blocklist_manager_1=require(a18_0x10263f(0x15e)),scanner_1=require(a18_0x10263f(0x189)),environment_metadata_1=require(a18_0x10263f(0x16a)),file_index_1=require(a18_0x10263f(0x1ad)),utils_1=require('./util/utils'),redaction_manager_1=require(a18_0x10263f(0x113)),configuration_provider_1=require(a18_0x10263f(0x1bb)),normalizeConfig_1=require(a18_0x10263f(0x173)),mapSubtract_1=require(a18_0x10263f(0x1dc)),format_1=require(a18_0x10263f(0x14e)),createDebuggee_1=require(a18_0x10263f(0x1f6)),readFilep=util[a18_0x10263f(0x1d5)](fs[a18_0x10263f(0x111)]),PROMISE_RESOLVE_CUT_OFF_IN_MILLISECONDS=(0x28+0x21c)/0x2*0x3e8,formatBreakpoint=(_0x4cfd7a,_0x3ec754)=>{const _0x6a2def=a18_0x10263f;let _0x36bb0f=_0x4cfd7a+util[_0x6a2def(0x1d0)]('breakpoint\x20id:\x20%s,\x0a\x09type:\x20%s\x0a\x09location:\x20%s',_0x3ec754['id'],_0x3ec754[_0x6a2def(0x120)],util[_0x6a2def(0x1d2)](_0x3ec754[_0x6a2def(0x158)]));if(_0x3ec754[_0x6a2def(0x19e)]){const _0x495fac=Number(_0x3ec754['createTime'][_0x6a2def(0x13f)]),_0x1d35d1=new Date(_0x495fac*0x3e8);_0x36bb0f+=_0x6a2def(0x110)+_0x1d35d1[_0x6a2def(0x18e)]();}return _0x3ec754['condition']&&(_0x36bb0f+=_0x6a2def(0x182)+util[_0x6a2def(0x1d2)](_0x3ec754[_0x6a2def(0x17d)])),_0x3ec754[_0x6a2def(0x180)]&&(_0x36bb0f+=_0x6a2def(0x149)+util[_0x6a2def(0x1d2)](_0x3ec754['expressions'])),_0x36bb0f;},formatBreakpoints=(_0x751ad8,_0x32c6d5)=>{const _0xb59de1=a18_0x10263f;return _0x751ad8+Object[_0xb59de1(0x18a)](_0x32c6d5)[_0xb59de1(0x1ce)](_0x2baf25=>{return formatBreakpoint('',_0x32c6d5[_0x2baf25]);})[_0xb59de1(0x155)]('\x0a');};class CachedPromise{constructor(){const _0x3bcb94=a18_0x10263f;this['promiseResolve']=null,this[_0x3bcb94(0x160)]=new Promise(_0x5d0728=>{this['promiseResolve']=_0x5d0728;});}[a18_0x10263f(0x1cc)](){const _0x43a5b8=a18_0x10263f;return this[_0x43a5b8(0x160)];}[a18_0x10263f(0x1c0)](){const _0x2d4f46=a18_0x10263f;this['promiseResolve']&&(this[_0x2d4f46(0x12f)](),this[_0x2d4f46(0x12f)]=null);}}exports[a18_0x10263f(0x13d)]=CachedPromise;class IsReadyImpl{constructor(_0x518228){this['debuglet']=_0x518228;}[a18_0x10263f(0x127)](){const _0xef3565=a18_0x10263f;return this['debuglet'][_0xef3565(0x127)]();}}class Debuglet extends events_1[a18_0x10263f(0x126)]{constructor(_0x3a03a2,_0x3e85c6){const _0x43371b=a18_0x10263f;super(),_Debuglet_instances[_0x43371b(0x1d1)](this),_Debuglet_debug[_0x43371b(0x1f8)](this,void 0x0),_Debuglet_v8debug[_0x43371b(0x1f8)](this,void 0x0),_Debuglet_running[_0x43371b(0x1f8)](this,void 0x0),_Debuglet_controller['set'](this,void 0x0),_Debuglet_completedBreakpointMap[_0x43371b(0x1f8)](this,void 0x0),_Debuglet_breakpointFetchedTimestamp['set'](this,void 0x0),_Debuglet_breakpointFetched['set'](this,void 0x0),_Debuglet_debuggeeRegistered['set'](this,void 0x0),_Debuglet_nextEnableTimeout[_0x43371b(0x1f8)](this,null),this['isReadyManager']=new IsReadyImpl(this),_Debuglet_debuggeEnvironmentProperties[_0x43371b(0x1f8)](this,void 0x0),_Debuglet_scanner['set'](this,void 0x0),_Debuglet_quotaManager[_0x43371b(0x1f8)](this,void 0x0),_Debuglet_blocklistManager[_0x43371b(0x1f8)](this,void 0x0),_Debuglet_redactionManager[_0x43371b(0x1f8)](this,void 0x0),_Debuglet_configProvider[_0x43371b(0x1f8)](this,void 0x0),this[_0x43371b(0x1af)]=(0x0,normalizeConfig_1[_0x43371b(0x193)])(_0x3e85c6),__classPrivateFieldSet(this,_Debuglet_configProvider,new configuration_provider_1[(_0x43371b(0x104))](this[_0x43371b(0x1af)]),'f'),__classPrivateFieldSet(this,_Debuglet_debug,_0x3a03a2,'f'),__classPrivateFieldSet(this,_Debuglet_v8debug,null,'f'),__classPrivateFieldSet(this,_Debuglet_running,![],'f'),this[_0x43371b(0x1a3)]=![],this[_0x43371b(0x144)]=agent_logger_1[_0x43371b(0x14f)][_0x43371b(0x107)](this[_0x43371b(0x1af)]['agentLog']['agentLogTargetDir'],this[_0x43371b(0x1af)][_0x43371b(0x1a0)]['agentLogMaxFileSizeMb'],this['config'][_0x43371b(0x1a0)]['agentLogMaxFileCount'],this['config'][_0x43371b(0x1a0)][_0x43371b(0x10a)],this[_0x43371b(0x1af)]['agentLog'][_0x43371b(0x181)]),(0x0,config_1[_0x43371b(0x108)])(this[_0x43371b(0x1af)],this[_0x43371b(0x144)]),__classPrivateFieldSet(this,_Debuglet_debuggeEnvironmentProperties,new environment_metadata_1[(_0x43371b(0x13b))](this[_0x43371b(0x144)])['getProps'](),'f'),__classPrivateFieldSet(this,_Debuglet_controller,new controller_1['Controller'](__classPrivateFieldGet(this,_Debuglet_debug,'f'),this[_0x43371b(0x1af)],this[_0x43371b(0x144)]),'f'),__classPrivateFieldSet(this,_Debuglet_scanner,new scanner_1[(_0x43371b(0x1db))](this['logger']),'f'),this[_0x43371b(0x1bd)]=null,this[_0x43371b(0x1a6)]={},__classPrivateFieldSet(this,_Debuglet_completedBreakpointMap,{},'f'),__classPrivateFieldSet(this,_Debuglet_breakpointFetched,null,'f'),__classPrivateFieldSet(this,_Debuglet_breakpointFetchedTimestamp,-Infinity,'f'),__classPrivateFieldSet(this,_Debuglet_debuggeeRegistered,new CachedPromise(),'f'),__classPrivateFieldSet(this,_Debuglet_quotaManager,new quota_manager_1['QuotaManager'](this[_0x43371b(0x144)],this[_0x43371b(0x1af)]),'f'),this[_0x43371b(0x15b)]=new piping_manager_1[(_0x43371b(0x198))](_0x43371b(0x199),__classPrivateFieldGet(this,_Debuglet_controller,'f'),this[_0x43371b(0x1af)]);}async['findFiles'](_0x5ee1d8,_0x2a2f24){const _0x4ef556=a18_0x10263f,_0x4331aa=_0x5ee1d8['workingDirectory'],_0x2878db=await __classPrivateFieldGet(this,_Debuglet_scanner,'f')['scan'](_0x4331aa,__classPrivateFieldGet(_a,_a,'m',_Debuglet_buildRegExp)[_0x4ef556(0x156)](_a,_0x5ee1d8[_0x4ef556(0x100)][_0x4ef556(0x140)](_0x4ef556(0x114))),_0x2a2f24,_0x5ee1d8[_0x4ef556(0x172)]),_0x16c81a=_0x2878db['selectStats'](__classPrivateFieldGet(_a,_a,'m',_Debuglet_buildRegExp)['call'](_a,_0x5ee1d8[_0x4ef556(0x100)])),_0x4d8248=file_index_1[_0x4ef556(0x201)]['fromFileStats'](_0x16c81a),_0x4943ad=_0x2878db[_0x4ef556(0x1a1)](/.js.map$/,process[_0x4ef556(0x1a4)]()),_0x513d86=_0x2878db[_0x4ef556(0x16b)]();return{'mapFiles':_0x4943ad,'errors':_0x513d86,'jsFileIndex':_0x4d8248,'hash':_0x2878db[_0x4ef556(0x1ab)]};}async['start'](){const _0x1aa2eb=a18_0x10263f,_0x1655a7=this,_0x24b1be=_0x1655a7[_0x1aa2eb(0x1af)][_0x1aa2eb(0x197)];if(!_0x1655a7[_0x1aa2eb(0x1af)]['allowRootAsWorkingDirectory']&&path[_0x1aa2eb(0x155)](_0x24b1be,'..')===_0x24b1be){const _0x3a8feb=_0x1aa2eb(0x163)+_0x1aa2eb(0x1fb)+_0x1aa2eb(0x106)+_0x1aa2eb(0x109);_0x1655a7[_0x1aa2eb(0x144)][_0x1aa2eb(0x15d)](_0x3a8feb),_0x1655a7[_0x1aa2eb(0x130)]('initError',new Error(_0x3a8feb));return;}let _0x57462b;process[_0x1aa2eb(0x1b8)][_0x1aa2eb(0x1be)]&&(_0x57462b=_0x1aa2eb(0x1d4)+process[_0x1aa2eb(0x1b8)][_0x1aa2eb(0x1be)]);let _0x3b6358,_0x3ff904=_0x57462b||'';try{_0x3b6358=await this[_0x1aa2eb(0x1fc)](_0x1655a7[_0x1aa2eb(0x1af)],_0x57462b),_0x3b6358[_0x1aa2eb(0x16b)][_0x1aa2eb(0x192)](_0x1655a7[_0x1aa2eb(0x144)][_0x1aa2eb(0x1fa)]);}catch(_0x6dfc57){_0x1655a7[_0x1aa2eb(0x144)]['error'](_0x1aa2eb(0x200),_0x6dfc57),_0x1655a7[_0x1aa2eb(0x130)]('initError',_0x6dfc57);return;}try{const _0x371e46=await SourceMapper[_0x1aa2eb(0x1ea)](_0x1655a7[_0x1aa2eb(0x144)],_0x3b6358[_0x1aa2eb(0x10f)],_0x1655a7['config'][_0x1aa2eb(0x1ee)]?.[_0x1aa2eb(0xfe)]);__classPrivateFieldSet(_0x1655a7,_Debuglet_v8debug,debugapi[_0x1aa2eb(0x1ea)](_0x1655a7[_0x1aa2eb(0x144)],_0x1655a7[_0x1aa2eb(0x1af)],_0x3b6358[_0x1aa2eb(0x1f7)],_0x371e46,__classPrivateFieldGet(this,_Debuglet_quotaManager,'f')),'f'),_0x3ff904=_0x57462b||_0x3b6358[_0x1aa2eb(0x1ab)];}catch(_0x5d46e1){_0x1655a7[_0x1aa2eb(0x144)]['error']('Error\x20processing\x20the\x20sourcemaps.',_0x5d46e1),_0x1655a7[_0x1aa2eb(0x144)][_0x1aa2eb(0x10b)](JSON[_0x1aa2eb(0x101)](_0x5d46e1)),_0x1655a7[_0x1aa2eb(0x130)]('initError',_0x5d46e1);}_0x1655a7[_0x1aa2eb(0x144)][_0x1aa2eb(0x10b)]('Unique\x20ID\x20for\x20this\x20Application:\x20'+_0x3ff904);const _0x4b2e60=(0x0,utils_1[_0x1aa2eb(0x134)])(_0x1655a7[_0x1aa2eb(0x144)])['replace']('\x0a','');_0x1655a7[_0x1aa2eb(0x144)][_0x1aa2eb(0x10b)]('Initializing\x20Node.js\x20agent\x20version:\x20'+_0x4b2e60);let _0x54d710;try{_0x54d710=_0x1655a7[_0x1aa2eb(0x1af)][_0x1aa2eb(0x11f)]||await _a[_0x1aa2eb(0x168)]();}catch(_0x59fc07){}_0x1655a7['logger'][_0x1aa2eb(0x10b)]('Lightrun\x20Debugger\x20is\x20attached\x20to\x20'+process[_0x1aa2eb(0x202)]?.['filename']),_0x1655a7[_0x1aa2eb(0x144)][_0x1aa2eb(0x178)](_0x1aa2eb(0x135)+_0x24b1be),_0x1655a7[_0x1aa2eb(0x144)][_0x1aa2eb(0x178)]('Starting\x20debuggee'),__classPrivateFieldSet(_0x1655a7,_Debuglet_running,!![],'f'),_0x1655a7['debuggee']=(0x0,createDebuggee_1[_0x1aa2eb(0x137)])(_0x3ff904,_0x1655a7[_0x1aa2eb(0x1af)],_0x54d710,__classPrivateFieldGet(_0x1655a7,_Debuglet_debug,'f')['packageInfo'],_0x4b2e60,_0x1655a7[_0x1aa2eb(0x144)],__classPrivateFieldGet(_0x1655a7,_Debuglet_debuggeEnvironmentProperties,'f'),undefined),__classPrivateFieldGet(_0x1655a7,_Debuglet_instances,'m',_Debuglet_registerSignals)[_0x1aa2eb(0x156)](_0x1655a7),__classPrivateFieldGet(_0x1655a7,_Debuglet_instances,'m',_Debuglet_register_)[_0x1aa2eb(0x156)](_0x1655a7),_0x1655a7[_0x1aa2eb(0x130)](_0x1aa2eb(0x145));}[a18_0x10263f(0x127)](){const _0x5e338f=a18_0x10263f;if(Date[_0x5e338f(0x196)]()<__classPrivateFieldGet(this,_Debuglet_breakpointFetchedTimestamp,'f')+PROMISE_RESOLVE_CUT_OFF_IN_MILLISECONDS)return Promise['resolve']();else{if(__classPrivateFieldGet(this,_Debuglet_breakpointFetched,'f'))return __classPrivateFieldGet(this,_Debuglet_breakpointFetched,'f')[_0x5e338f(0x1cc)]();return __classPrivateFieldSet(this,_Debuglet_breakpointFetched,new CachedPromise(),'f'),__classPrivateFieldGet(this,_Debuglet_debuggeeRegistered,'f')[_0x5e338f(0x1cc)]()[_0x5e338f(0x154)](()=>{const _0x4cdf7e=_0x5e338f;__classPrivateFieldGet(this,_Debuglet_instances,'m',_Debuglet_scheduleBreakpointFetch_)[_0x4cdf7e(0x156)](this,0x0,!![]);}),__classPrivateFieldGet(this,_Debuglet_breakpointFetched,'f')[_0x5e338f(0x1cc)]();}}static async[a18_0x10263f(0x168)](){const _0x41375b=a18_0x10263f,_0x9b8090=await readFilep(_0x41375b(0x165),'utf8');try{return JSON[_0x41375b(0x12b)](_0x9b8090);}catch(_0x24ba59){throw new Error(_0x41375b(0x138)+_0x24ba59);}}[a18_0x10263f(0x129)](){return __classPrivateFieldGet(this,_Debuglet_running,'f');}[a18_0x10263f(0x171)](){const _0x9b8463=a18_0x10263f;if(!__classPrivateFieldGet(this,_Debuglet_running,'f')){this[_0x9b8463(0x144)][_0x9b8463(0x178)]('Noting\x20to\x20stop,\x20agent\x20is\x20not\x20running');return;}this[_0x9b8463(0x144)][_0x9b8463(0x178)](_0x9b8463(0x1e9)),__classPrivateFieldGet(this,_Debuglet_nextEnableTimeout,'f')&&(clearTimeout(__classPrivateFieldGet(this,_Debuglet_nextEnableTimeout,'f')),__classPrivateFieldSet(this,_Debuglet_nextEnableTimeout,null,'f')),__classPrivateFieldGet(this,_Debuglet_controller,'f')?.[_0x9b8463(0x116)](),__classPrivateFieldSet(this,_Debuglet_running,![],'f'),this[_0x9b8463(0x130)](_0x9b8463(0x148));}[a18_0x10263f(0x1f0)](_0x4f95d6){const _0x5f19d3=a18_0x10263f,_0x239a23=this['logger'][_0x5f19d3(0x132)]();if(_0x239a23===_0x5f19d3(0x178))return;switch(_0x4f95d6){case _0x5f19d3(0x15c):this[_0x5f19d3(0x144)]['getLevel']()!==_0x5f19d3(0x178)&&(this[_0x5f19d3(0x144)][_0x5f19d3(0x119)]('debug'),this[_0x5f19d3(0x144)][_0x5f19d3(0x178)]('Agent\x20log\x20level\x20is\x20switched\x20to\x20DEBUG'));break;case _0x5f19d3(0x1c2):case undefined:this['logger'][_0x5f19d3(0x124)]()===_0x5f19d3(0x178)&&(this['logger'][_0x5f19d3(0x119)](_0x239a23),this[_0x5f19d3(0x144)][_0x5f19d3(0x10b)](_0x5f19d3(0x186)+_0x239a23+')'));break;default:this[_0x5f19d3(0x144)]['warn'](_0x5f19d3(0x115)+_0x4f95d6);}}}exports[a18_0x10263f(0x143)]=Debuglet,(_a=Debuglet,_Debuglet_debug=new WeakMap(),_Debuglet_v8debug=new WeakMap(),_Debuglet_running=new WeakMap(),_Debuglet_controller=new WeakMap(),_Debuglet_completedBreakpointMap=new WeakMap(),_Debuglet_breakpointFetchedTimestamp=new WeakMap(),_Debuglet_breakpointFetched=new WeakMap(),_Debuglet_debuggeeRegistered=new WeakMap(),_Debuglet_nextEnableTimeout=new WeakMap(),_Debuglet_debuggeEnvironmentProperties=new WeakMap(),_Debuglet_scanner=new WeakMap(),_Debuglet_quotaManager=new WeakMap(),_Debuglet_blocklistManager=new WeakMap(),_Debuglet_redactionManager=new WeakMap(),_Debuglet_configProvider=new WeakMap(),_Debuglet_instances=new WeakSet(),_Debuglet_buildRegExp=function _Debuglet_buildRegExp(_0xd77a27){const _0x5473c0=a18_0x10263f;return new RegExp(_0xd77a27[_0x5473c0(0x1ce)](_0x1ed055=>_0x1ed055+'$')[_0x5473c0(0x155)]('|'));},_Debuglet_registerSignals=function _Debuglet_registerSignals(){const _0x50ed73=a18_0x10263f,_0x20316b=[_0x50ed73(0xff),_0x50ed73(0x176),'SIGQUIT'];_0x20316b[_0x50ed73(0x192)](_0x511541=>{const _0x16e739=_0x50ed73;process[_0x16e739(0x1a8)](_0x511541,()=>{__classPrivateFieldGet(this,_Debuglet_controller,'f')['deregister'](this['debuggee'],()=>{const _0x2a7a05=a18_0x4c67;process[_0x2a7a05(0x11a)](process[_0x2a7a05(0x153)],_0x511541);});});}),process[_0x50ed73(0x1a8)](_0x50ed73(0x146),()=>{const _0x122149=_0x50ed73;__classPrivateFieldGet(this,_Debuglet_controller,'f')[_0x122149(0x1da)](this[_0x122149(0x1bd)],()=>{});});},_Debuglet_register_=function _Debuglet_register_(){const _0x3ab5af=a18_0x10263f;__classPrivateFieldGet(this,_Debuglet_instances,'m',_Debuglet_scheduleRegistration_)[_0x3ab5af(0x156)](this,0x0);},_Debuglet_scheduleRegistration_=function _Debuglet_scheduleRegistration_(_0x254fd9){const _0x42fcad=a18_0x10263f,_0x18c9d8=this;_0x18c9d8['logger'][_0x42fcad(0x178)](_0x254fd9?_0x42fcad(0x16f)+_0x254fd9+'s':_0x42fcad(0x13a));function _0x13f1d8(_0xeeb355,_0x4ca44d,_0x1cffe1=![]){const _0x170305=_0x42fcad,_0x1ae05d=_0x18c9d8[_0x170305(0x1bd)]?.['id']?_0x170305(0x17a)+_0x18c9d8[_0x170305(0x1bd)]?.['id']+':\x20'+(0x0,utils_1[_0x170305(0x184)])(_0xeeb355):_0x170305(0x13c)+(0x0,utils_1['prettyError'])(_0xeeb355);_0x18c9d8[_0x170305(0x144)][_0x170305(0x15d)](_0x1ae05d),_0x4ca44d&&!_0x1cffe1&&_0x18c9d8['logger'][_0x170305(0x15d)](_0x170305(0x12d),_0x4ca44d),__classPrivateFieldGet(_0x18c9d8,_Debuglet_instances,'m',_Debuglet_scheduleRegistration_)[_0x170305(0x156)](_0x18c9d8,(0x0,utils_1[_0x170305(0x183)])(_0x254fd9,_0x18c9d8[_0x170305(0x1af)][_0x170305(0x1ee)][_0x170305(0x157)]));}setTimeout(()=>{const _0xebb2b1=_0x42fcad;if(!__classPrivateFieldGet(_0x18c9d8,_Debuglet_running,'f')){_0x13f1d8(new Error(_0xebb2b1(0x1a9)));return;}__classPrivateFieldGet(_0x18c9d8,_Debuglet_controller,'f')[_0xebb2b1(0x1e2)](_0x18c9d8[_0xebb2b1(0x1bd)],(_0xdf819d,_0x16ecad,_0x5b1313=![])=>{const _0x37e645=_0xebb2b1;if(_0xdf819d){_0x13f1d8(_0xdf819d,_0x16ecad,_0x5b1313);return;}if(_0x16ecad[_0x37e645(0x1bd)]['isDisabled']){_0x13f1d8(new Error(_0x37e645(0x170))),_0x18c9d8[_0x37e645(0x130)]('remotelyDisabled');return;}const _0x118e9c=_0x16ecad[_0x37e645(0x1bd)]['id'];_0x18c9d8['logger'][_0x37e645(0x10b)]('Registered\x20as\x20debuggee:\x20'+_0x118e9c),_0x18c9d8[_0x37e645(0x1bd)]['id']=_0x118e9c;const _0x149cb2=[__classPrivateFieldGet(_0x18c9d8,_Debuglet_instances,'m',_Debuglet_getBlocklist)[_0x37e645(0x1e8)](_0x18c9d8)(_0x18c9d8[_0x37e645(0x1bd)]['id'])];_0x18c9d8[_0x37e645(0x1af)]['redactionEnabled']&&_0x149cb2[_0x37e645(0x1b4)](__classPrivateFieldGet(_0x18c9d8,_Debuglet_instances,'m',_Debuglet_getRedactions)[_0x37e645(0x1e8)](_0x18c9d8)(_0x18c9d8[_0x37e645(0x1bd)]['id'])),Promise[_0x37e645(0x152)](_0x149cb2)[_0x37e645(0x154)](()=>{const _0x2f4c48=_0x37e645;_0x18c9d8['emit'](_0x2f4c48(0x1fd),_0x118e9c),__classPrivateFieldGet(_0x18c9d8,_Debuglet_debuggeeRegistered,'f')[_0x2f4c48(0x1c0)](),__classPrivateFieldGet(_0x18c9d8,_Debuglet_v8debug,'f')?.[_0x2f4c48(0x1c3)](__classPrivateFieldGet(_0x18c9d8,_Debuglet_blocklistManager,'f')),!_0x18c9d8['fetcherActive']&&__classPrivateFieldGet(_0x18c9d8,_Debuglet_instances,'m',_Debuglet_scheduleBreakpointFetch_)[_0x2f4c48(0x156)](_0x18c9d8,0x0,this['config'][_0x2f4c48(0x12a)],_0x16ecad?.['clientConnectionTimeoutInSeconds']);},_0x58be76=>{_0x13f1d8(_0x58be76);});});},_0x254fd9*0x3e8)['unref']();},_Debuglet_scheduleBreakpointFetch_=function _Debuglet_scheduleBreakpointFetch_(_0xb85c7d,_0x226f86,_0x539f9f){const _0xe0a5f9=a18_0x10263f,_0x48f7b0=this;!_0x226f86&&(_0x48f7b0['fetcherActive']=!![]),setTimeout(()=>{const _0x2f5a9e=a18_0x4c67;if(!__classPrivateFieldGet(_0x48f7b0,_Debuglet_running,'f'))return;!_0x226f86&&assert(_0x48f7b0[_0x2f5a9e(0x1a3)]),_0x48f7b0[_0x2f5a9e(0x144)][_0x2f5a9e(0x178)]('Fetching\x20breakpoints'),__classPrivateFieldGet(_0x48f7b0,_Debuglet_controller,'f')['listBreakpoints'](_0x48f7b0['debuggee'],(_0x14b53e,_0x583e87,_0x5ec1cb)=>{const _0x5c8ad5=_0x2f5a9e;if(_0x583e87?.[_0x5c8ad5(0x19a)]===0x194){_0x48f7b0[_0x5c8ad5(0x144)][_0x5c8ad5(0x10b)]('Debuggee\x20is\x20not\x20registered'),_0x48f7b0[_0x5c8ad5(0x1a3)]=![],__classPrivateFieldGet(_0x48f7b0,_Debuglet_instances,'m',_Debuglet_updatePromise)[_0x5c8ad5(0x156)](_0x48f7b0),__classPrivateFieldGet(_0x48f7b0,_Debuglet_instances,'m',_Debuglet_register_)[_0x5c8ad5(0x156)](_0x48f7b0);return;}if(_0x14b53e){const _0x2762e8=(0x0,utils_1[_0x5c8ad5(0x183)])(_0xb85c7d,_0x48f7b0[_0x5c8ad5(0x1af)][_0x5c8ad5(0x1ee)][_0x5c8ad5(0x157)]);_0x48f7b0['logger']['error'](_0x5c8ad5(0x1b0)+_0x583e87?.['status']+_0x5c8ad5(0x118)+_0x14b53e['message']+_0x5c8ad5(0x1bc)+_0x2762e8+'s'),__classPrivateFieldGet(_0x48f7b0,_Debuglet_instances,'m',_Debuglet_scheduleBreakpointFetch_)[_0x5c8ad5(0x156)](_0x48f7b0,_0x2762e8,_0x226f86,_0x539f9f);return;}_0x48f7b0['logger'][_0x5c8ad5(0x178)]('\x09'+_0x583e87[_0x5c8ad5(0x19a)]+'\x20completed.');if(!_0x5ec1cb){const _0x259230=_0x48f7b0[_0x5c8ad5(0x1af)]['breakpointUpdateIntervalSec'];_0x48f7b0[_0x5c8ad5(0x144)][_0x5c8ad5(0x15d)](_0x5c8ad5(0x14c)+_0x259230+'s'),__classPrivateFieldGet(_0x48f7b0,_Debuglet_instances,'m',_Debuglet_scheduleBreakpointFetch_)[_0x5c8ad5(0x156)](_0x48f7b0,_0x259230,_0x226f86,_0x539f9f);return;}this[_0x5c8ad5(0x1f0)](_0x5ec1cb[_0x5c8ad5(0x10a)]);if(_0x5ec1cb[_0x5c8ad5(0x141)]){_0x48f7b0[_0x5c8ad5(0x144)][_0x5c8ad5(0x10b)](_0x5c8ad5(0x131)),__classPrivateFieldGet(_0x48f7b0,_Debuglet_instances,'m',_Debuglet_scheduleBreakpointFetch_)[_0x5c8ad5(0x156)](_0x48f7b0,0x0,_0x226f86,_0x539f9f);return;}if(_0x5ec1cb[_0x5c8ad5(0x1b6)]&&_0x5ec1cb[_0x5c8ad5(0x1b6)]!=='NOT_SET'){const _0x424d2d=this[_0x5c8ad5(0x15b)][_0x5c8ad5(0x151)];_0x424d2d!==_0x5ec1cb[_0x5c8ad5(0x1b6)]&&(this['logger'][_0x5c8ad5(0x178)](_0x5c8ad5(0x139)+_0x424d2d+'\x20to\x20'+_0x5ec1cb['pipeLogs']),this[_0x5c8ad5(0x15b)][_0x5c8ad5(0x151)]=_0x5ec1cb['pipeLogs']);}if(_0x5ec1cb[_0x5c8ad5(0x1b7)]&&_0x5ec1cb[_0x5c8ad5(0x1f1)]!==_0x48f7b0[_0x5c8ad5(0x1f1)]){_0x48f7b0[_0x5c8ad5(0x1f1)]=_0x5ec1cb[_0x5c8ad5(0x1f1)];const _0xf1e40c=_0x48f7b0[_0x5c8ad5(0x1af)][_0x5c8ad5(0x1a0)][_0x5c8ad5(0x19d)]&&path[_0x5c8ad5(0x155)](_0x48f7b0[_0x5c8ad5(0x1af)]['agentLog']['agentLogTargetDir'],agent_logger_1['default']['AGENT_LOG_FILE']);_0xf1e40c&&fs[_0x5c8ad5(0x185)](_0xf1e40c)?setTimeout(()=>__classPrivateFieldGet(_0x48f7b0,_Debuglet_controller,'f')[_0x5c8ad5(0x1b9)](_0x48f7b0[_0x5c8ad5(0x1bd)],_0x5ec1cb['collectLogRequestId'],_0xf1e40c)):_0x48f7b0[_0x5c8ad5(0x144)]['info'](_0x5c8ad5(0x150)+_0x5ec1cb['collectLogRequestId']+_0x5c8ad5(0x18b)+_0x5c8ad5(0x121));}const _0x1d4e5f=(_0x5ec1cb[_0x5c8ad5(0x1b5)]||[])[_0x5c8ad5(0x1ce)](_0x5c02e1=>new stackdriver_1[(_0x5c8ad5(0x1df))](_0x5c02e1))[_0x5c8ad5(0x17c)](_0x39132f=>{const _0x42d4f6=_0x5c8ad5,_0x58348e=_0x39132f[_0x42d4f6(0x120)]||_0x42d4f6(0x14a);if(__classPrivateFieldGet(_0x48f7b0,_Debuglet_completedBreakpointMap,'f')[_0x39132f['id']])return![];if(_0x58348e!==_0x42d4f6(0x14a)&&_0x58348e!==_0x42d4f6(0x1f9))return _0x48f7b0['logger'][_0x42d4f6(0x1fa)](_0x42d4f6(0x125),_0x58348e),_0x39132f[_0x42d4f6(0x19a)]=new status_message_1[(_0x42d4f6(0x10d))](status_message_1['StatusMessage']['UNSPECIFIED'],utils_1[_0x42d4f6(0x16b)][_0x42d4f6(0x1b1)],!![]),__classPrivateFieldGet(_0x48f7b0,_Debuglet_instances,'m',_Debuglet_rejectBreakpoint_)['call'](_0x48f7b0,_0x39132f),![];return!![];}),_0x1120b5=__classPrivateFieldGet(_0x48f7b0,_Debuglet_instances,'m',_Debuglet_getOldBreakpoints)[_0x5c8ad5(0x156)](_0x48f7b0);let _0x3f4b14=_0x1120b5[_0x5c8ad5(0x1a7)]>0x0;__classPrivateFieldGet(_0x48f7b0,_Debuglet_instances,'m',_Debuglet_expireOldBreakpoints)['call'](_0x48f7b0,_0x1120b5),_0x3f4b14=_0x3f4b14||__classPrivateFieldGet(_0x48f7b0,_Debuglet_instances,'m',_Debuglet_updateActiveBreakpoints_)[_0x5c8ad5(0x156)](_0x48f7b0,_0x1d4e5f),_0x48f7b0[_0x5c8ad5(0x130)](_0x5c8ad5(0x1cd),_0x1d4e5f[_0x5c8ad5(0x1a7)]);_0x3f4b14&&_0x48f7b0[_0x5c8ad5(0x144)][_0x5c8ad5(0x178)](formatBreakpoints(_0x5c8ad5(0x188),_0x48f7b0['activeBreakpointMap']));__classPrivateFieldSet(_0x48f7b0,_Debuglet_breakpointFetchedTimestamp,Date[_0x5c8ad5(0x196)](),'f');_0x226f86?__classPrivateFieldGet(_0x48f7b0,_Debuglet_breakpointFetched,'f')&&(__classPrivateFieldGet(_0x48f7b0,_Debuglet_breakpointFetched,'f')[_0x5c8ad5(0x1c0)](),__classPrivateFieldSet(_0x48f7b0,_Debuglet_breakpointFetched,null,'f')):__classPrivateFieldGet(_0x48f7b0,_Debuglet_instances,'m',_Debuglet_scheduleBreakpointFetch_)[_0x5c8ad5(0x156)](_0x48f7b0,0x0,_0x226f86,_0x539f9f);return;},_0x539f9f);},_0xb85c7d*0x3e8)[_0xe0a5f9(0x1d6)]();},_Debuglet_updatePromise=function _Debuglet_updatePromise(){const _0x413a20=a18_0x10263f;__classPrivateFieldSet(this,_Debuglet_debuggeeRegistered,new CachedPromise(),'f'),__classPrivateFieldGet(this,_Debuglet_breakpointFetched,'f')&&(__classPrivateFieldGet(this,_Debuglet_breakpointFetched,'f')[_0x413a20(0x1c0)](),__classPrivateFieldSet(this,_Debuglet_breakpointFetched,null,'f'));},_Debuglet_updateActiveBreakpoints_=function _Debuglet_updateActiveBreakpoints_(_0x374e62){const _0x16507f=a18_0x10263f,_0x37f7ab=this,_0x95ab66=__classPrivateFieldGet(this,_Debuglet_instances,'m',_Debuglet_convertBreakpointListToMap_)[_0x16507f(0x156)](this,_0x374e62);let _0x195307=![];return _0x374e62[_0x16507f(0x192)](_0x26f583=>{const _0x2cf4da=_0x16507f;!__classPrivateFieldGet(_0x37f7ab,_Debuglet_completedBreakpointMap,'f')[_0x26f583['id']]&&!_0x37f7ab['activeBreakpointMap'][_0x26f583['id']]&&(__classPrivateFieldGet(_0x37f7ab,_Debuglet_instances,'m',_Debuglet_addBreakpoint_)[_0x2cf4da(0x156)](_0x37f7ab,_0x26f583,_0x32ea59=>{const _0x5ed370=_0x2cf4da;_0x32ea59&&__classPrivateFieldGet(_0x37f7ab,_Debuglet_instances,'m',_Debuglet_updateBreakpoint_)[_0x5ed370(0x156)](_0x37f7ab,_0x26f583,!![],![]);}),_0x195307=!![],__classPrivateFieldGet(this,_Debuglet_quotaManager,'f')[_0x2cf4da(0x142)](_0x26f583['id'])),__classPrivateFieldGet(_0x37f7ab,_Debuglet_quotaManager,'f')[_0x2cf4da(0x1cb)](_0x26f583['id'],_0x26f583['ignoreQuota']),_0x37f7ab[_0x2cf4da(0x15b)][_0x2cf4da(0x161)](_0x26f583['id'],_0x26f583['pipingStatus']);}),(0x0,mapSubtract_1['mapSubtract'])(__classPrivateFieldGet(this,_Debuglet_completedBreakpointMap,'f'),_0x95ab66)['forEach'](_0x4fbea7=>{delete __classPrivateFieldGet(_0x37f7ab,_Debuglet_completedBreakpointMap,'f')[_0x4fbea7['id']],_0x195307=!![];}),(0x0,mapSubtract_1[_0x16507f(0x123)])(this['activeBreakpointMap'],_0x95ab66)[_0x16507f(0x192)](_0x5c0cbb=>{const _0x49431a=_0x16507f;__classPrivateFieldGet(this,_Debuglet_instances,'m',_Debuglet_removeBreakpoint_)[_0x49431a(0x156)](this,_0x5c0cbb,!![]),_0x195307=!![];}),_0x195307&&_0x37f7ab[_0x16507f(0x144)]['debug'](formatBreakpoints(_0x16507f(0x16d),_0x95ab66)),_0x195307;},_Debuglet_convertBreakpointListToMap_=function _Debuglet_convertBreakpointListToMap_(_0x214724){const _0x31a1ff=a18_0x10263f,_0x4a569e={};return _0x214724[_0x31a1ff(0x192)](_0x4d0f0c=>{_0x4a569e[_0x4d0f0c['id']]=_0x4d0f0c;}),_0x4a569e;},_Debuglet_removeBreakpoint_=function _Debuglet_removeBreakpoint_(_0x392499,_0x35bd2c){const _0x11b850=a18_0x10263f;this[_0x11b850(0x144)][_0x11b850(0x10b)](_0x11b850(0x14b),_0x392499),__classPrivateFieldGet(this,_Debuglet_quotaManager,'f')[_0x11b850(0x179)](_0x392499['id']),this['pipingManager'][_0x11b850(0x133)](_0x392499['id']),delete this[_0x11b850(0x1a6)][_0x392499['id']],_0x35bd2c&&__classPrivateFieldGet(this,_Debuglet_v8debug,'f')&&__classPrivateFieldGet(this,_Debuglet_v8debug,'f')[_0x11b850(0x1c4)](_0x392499,_0x5d4b97=>{const _0x34f023=_0x11b850;if(_0x5d4b97)this[_0x34f023(0x144)][_0x34f023(0x15d)](_0x5d4b97);});},_Debuglet_addBreakpoint_=function _Debuglet_addBreakpoint_(_0x5e55d9,_0x10415c){const _0x3def0c=a18_0x10263f,_0x53c160=this;_0x53c160['logger'][_0x3def0c(0x10b)]('\x09adding\x20breakpoint',_0x5e55d9);if(!_0x53c160[_0x3def0c(0x1af)]['allowExpressions']&&(_0x5e55d9['condition']||_0x5e55d9[_0x3def0c(0x180)])){_0x53c160[_0x3def0c(0x144)][_0x3def0c(0x15d)](utils_1['errors'][_0x3def0c(0x16c)][_0x3def0c(0x18c)]||''),_0x5e55d9['status']=new status_message_1[(_0x3def0c(0x10d))](status_message_1[_0x3def0c(0x10d)][_0x3def0c(0x105)],utils_1[_0x3def0c(0x16b)][_0x3def0c(0x16c)],!![]),setImmediate(()=>{const _0x190f59=_0x3def0c;_0x10415c(utils_1[_0x190f59(0x16b)]['ALLOW_EXPRESSIONS_MESSAGE']);});return;}if((0x0,utils_1['satisfies'])(process[_0x3def0c(0x1f2)],_0x3def0c(0x13e))){const _0x3d36fc=utils_1['errors'][_0x3def0c(0x175)];_0x53c160['logger'][_0x3def0c(0x15d)](_0x3d36fc),_0x5e55d9[_0x3def0c(0x19a)]=new status_message_1[(_0x3def0c(0x10d))](status_message_1[_0x3def0c(0x10d)]['UNSPECIFIED'],_0x3d36fc,!![]),setImmediate(()=>{_0x10415c(_0x3d36fc);});return;}const _0x3b9583=_0x5e55d9[_0x3def0c(0x19e)]?Number(_0x5e55d9[_0x3def0c(0x19e)][_0x3def0c(0x13f)]):Date[_0x3def0c(0x196)]()/0x3e8,_0x568d0c=_0x5e55d9[_0x3def0c(0x11d)]||_0x53c160['config']['breakpointExpirationSec'];_0x5e55d9['expirationTime']=_0x3b9583+_0x568d0c,_0x5e55d9[_0x3def0c(0x158)]?.[_0x3def0c(0x19f)]&&(_0x5e55d9[_0x3def0c(0x158)][_0x3def0c(0x19f)]=path[_0x3def0c(0x177)](_0x5e55d9[_0x3def0c(0x158)][_0x3def0c(0x19f)]),path[_0x3def0c(0x1eb)]===path[_0x3def0c(0x1ca)][_0x3def0c(0x1eb)]&&(_0x5e55d9[_0x3def0c(0x158)][_0x3def0c(0x19f)]=_0x5e55d9[_0x3def0c(0x158)][_0x3def0c(0x19f)]['split']('\x5c')[_0x3def0c(0x155)](path[_0x3def0c(0x1eb)]))),__classPrivateFieldGet(_0x53c160,_Debuglet_v8debug,'f')['set'](_0x5e55d9,_0x556797=>{const _0x12682a=_0x3def0c;if(_0x556797){_0x10415c(_0x556797);return;}_0x53c160[_0x12682a(0x144)][_0x12682a(0x10b)](_0x12682a(0x136),_0x5e55d9),_0x53c160[_0x12682a(0x1a6)][_0x5e55d9['id']]=_0x5e55d9,_0x5e55d9[_0x12682a(0x120)]==='LOG'?__classPrivateFieldGet(_0x53c160,_Debuglet_v8debug,'f')[_0x12682a(0x187)](_0x5e55d9,(_0x17d7b8,_0x318d51)=>{const _0x218230=_0x12682a,_0x2190e9=_0x318d51[_0x218230(0x1ce)](_0xf4699f=>__classPrivateFieldGet(_0x53c160,_Debuglet_instances,'m',_Debuglet_stringify)[_0x218230(0x156)](_0x53c160,_0xf4699f)),_0x43cd38=(0x0,format_1[_0x218230(0x1d0)])(_0x17d7b8,_0x2190e9),_0x49b7ee=_0x218230(0x12e)+(__classPrivateFieldGet(_0x53c160,_Debuglet_redactionManager,'f')?.[_0x218230(0x1c9)](_0x43cd38)||_0x43cd38),_0x16d63e=__classPrivateFieldGet(this,_Debuglet_quotaManager,'f')['quotaCheck'](_0x49b7ee,_0x5e55d9['id']);if(_0x16d63e){const _0x454e36=_0x16d63e[_0x218230(0x14d)],_0x217cdb=_0x16d63e[_0x218230(0x1a2)];let _0xef109e,_0x11ae87;!__classPrivateFieldGet(this,_Debuglet_redactionManager,'f')?.['isRedactionActive']()&&!_0x217cdb&&(_0xef109e=_0x218230(0x12e)+_0x17d7b8,_0x11ae87=_0x2190e9);_0x53c160['pipingManager'][_0x218230(0xfd)](_0x53c160['debuggee'],_0x5e55d9['id'],_0x454e36,_0x5e55d9[_0x218230(0x17f)],_0xef109e,_0x11ae87);if(_0x217cdb)__classPrivateFieldGet(_0x53c160,_Debuglet_v8debug,'f')?.[_0x218230(0x1d8)](),__classPrivateFieldGet(this,_Debuglet_nextEnableTimeout,'f')&&clearTimeout(__classPrivateFieldGet(this,_Debuglet_nextEnableTimeout,'f')),__classPrivateFieldSet(this,_Debuglet_nextEnableTimeout,setTimeout(()=>{const _0xc30c8c=_0x218230;__classPrivateFieldGet(_0x53c160,_Debuglet_v8debug,'f')?.[_0xc30c8c(0x1c1)](),__classPrivateFieldSet(_0x53c160,_Debuglet_nextEnableTimeout,null,'f');},_0x53c160['config'][_0x218230(0x18f)]['quotaRecoverySeconds']*0x3e8),'f');else _0x454e36?.[_0x218230(0x1a7)]===0x0&&__classPrivateFieldGet(_0x53c160,_Debuglet_v8debug,'f')?.['disable']();}},()=>{return __classPrivateFieldGet(_0x53c160,_Debuglet_completedBreakpointMap,'f')[_0x5e55d9['id']];},_0x268211=>{const _0x556c34=_0x12682a;if(_0x268211){_0x53c160['logger'][_0x556c34(0x15d)](_0x268211),_0x10415c(_0x268211);return;}}):__classPrivateFieldGet(_0x53c160,_Debuglet_v8debug,'f')[_0x12682a(0x12c)](_0x5e55d9,_0x206a8d=>{const _0x35bd65=_0x12682a;if(_0x206a8d){setImmediate(()=>{const _0x32e4fb=a18_0x4c67;_0x53c160[_0x32e4fb(0x144)][_0x32e4fb(0x15d)](_0x206a8d),_0x10415c(_0x206a8d);});return;}_0x53c160[_0x35bd65(0x144)][_0x35bd65(0x10b)](_0x35bd65(0x16e),_0x5e55d9),__classPrivateFieldGet(_0x53c160,_Debuglet_instances,'m',_Debuglet_updateBreakpoint_)['call'](_0x53c160,_0x5e55d9,__classPrivateFieldGet(_0x53c160,_Debuglet_v8debug,'f')['remainingHits'](_0x5e55d9['id'])<=0x0);}),__classPrivateFieldGet(_0x53c160,_Debuglet_instances,'m',_Debuglet_reportBreakpointAccepted_)[_0x12682a(0x156)](_0x53c160,_0x5e55d9);}),this[_0x3def0c(0x130)](_0x3def0c(0x159));},_Debuglet_updateBreakpoint_=function _Debuglet_updateBreakpoint_(_0x8b6c3a,_0x526c14,_0x241941=!![]){const _0x430ad6=a18_0x10263f,_0x47a65b=this;if(_0x8b6c3a[_0x430ad6(0x19a)]&&_0x8b6c3a[_0x430ad6(0x19a)][_0x430ad6(0x1e5)]){let _0xbc8a1e=_0x8b6c3a['status']?.['description']?.['format']||'';_0x8b6c3a['status']?.['description']?.[_0x430ad6(0x164)]&&(_0xbc8a1e+=':\x20'+_0x8b6c3a[_0x430ad6(0x19a)]?.['description']?.['parameters']['toString']()),_0x47a65b['logger'][_0x430ad6(0x1fa)](_0x430ad6(0x128)+_0x8b6c3a+'.\x20Error:\x20'+_0xbc8a1e);}else _0x47a65b[_0x430ad6(0x144)][_0x430ad6(0x10b)](_0x430ad6(0x1e6),_0x8b6c3a);_0x526c14&&(__classPrivateFieldGet(_0x47a65b,_Debuglet_completedBreakpointMap,'f')[_0x8b6c3a['id']]=!![],__classPrivateFieldGet(_0x47a65b,_Debuglet_instances,'m',_Debuglet_removeBreakpoint_)[_0x430ad6(0x156)](_0x47a65b,_0x8b6c3a,_0x241941)),__classPrivateFieldGet(_0x47a65b,_Debuglet_controller,'f')[_0x430ad6(0x174)](_0x47a65b[_0x430ad6(0x1bd)],extend(!![],{},_0x8b6c3a));},_Debuglet_reportBreakpointAccepted_=function _Debuglet_reportBreakpointAccepted_(_0x2097d2){const _0x41cda4=a18_0x10263f,_0x30d35b=this;_0x30d35b[_0x41cda4(0x144)][_0x41cda4(0x178)](_0x41cda4(0x1f3)+_0x2097d2+_0x41cda4(0x10e));const _0x46815d=extend(!![],{},_0x2097d2);_0x46815d[_0x41cda4(0x1d7)]=![],_0x46815d[_0x41cda4(0x19a)]=new status_message_1['StatusMessage'](status_message_1[_0x41cda4(0x10d)][_0x41cda4(0x105)],undefined,![],!![]),__classPrivateFieldGet(_0x30d35b,_Debuglet_controller,'f')[_0x41cda4(0x174)](_0x30d35b[_0x41cda4(0x1bd)],_0x46815d);},_Debuglet_rejectBreakpoint_=function _Debuglet_rejectBreakpoint_(_0x272b49){const _0x257503=a18_0x10263f,_0x389571=this;this[_0x257503(0x144)]['info']('rejecting\x20breakpoint',_0x272b49),__classPrivateFieldGet(_0x389571,_Debuglet_completedBreakpointMap,'f')[_0x272b49['id']]=!![],__classPrivateFieldGet(_0x389571,_Debuglet_controller,'f')['enqueueBreakpointUpdate'](_0x389571['debuggee'],_0x272b49);},_Debuglet_expireOldBreakpoints=function _Debuglet_expireOldBreakpoints(_0xdfb753){const _0xd96cbd=a18_0x10263f,_0x2a7f77=this;_0xdfb753[_0xd96cbd(0x192)](_0x1d2b3b=>{const _0x4b3451=_0xd96cbd;_0x2a7f77[_0x4b3451(0x144)][_0x4b3451(0x10b)](_0x4b3451(0x194),_0x1d2b3b),__classPrivateFieldGet(_0x2a7f77,_Debuglet_completedBreakpointMap,'f')[_0x1d2b3b['id']]=!![],__classPrivateFieldGet(_0x2a7f77,_Debuglet_instances,'m',_Debuglet_removeBreakpoint_)[_0x4b3451(0x156)](_0x2a7f77,_0x1d2b3b,!![]);});},_Debuglet_getOldBreakpoints=function _Debuglet_getOldBreakpoints(){const _0x1f72ff=a18_0x10263f,_0x3668ce=Date[_0x1f72ff(0x196)]()/0x3e8;return Object[_0x1f72ff(0x169)](this[_0x1f72ff(0x1a6)])[_0x1f72ff(0x17c)](_0x4c47b1=>_0x4c47b1[_0x1f72ff(0x1e0)]?_0x4c47b1[_0x1f72ff(0x1e0)]<_0x3668ce:![]);},_Debuglet_getBlocklist=async function _Debuglet_getBlocklist(_0x57bf4a){const _0x4fa541=a18_0x10263f,_0x53b8a1=await __classPrivateFieldGet(this,_Debuglet_controller,'f')[_0x4fa541(0x190)](_0x57bf4a),_0x553e91=_0x53b8a1['blacklist'],_0x3fd3fc=_0x53b8a1[_0x4fa541(0x11b)];_0x553e91&&_0x553e91[_0x4fa541(0x1a7)]&&this[_0x4fa541(0x144)]['debug'](_0x4fa541(0x19b),_0x553e91[_0x4fa541(0x155)]('\x0a\x09')),_0x3fd3fc&&_0x3fd3fc[_0x4fa541(0x1a7)]&&this[_0x4fa541(0x144)][_0x4fa541(0x178)](_0x4fa541(0x1c6),_0x3fd3fc[_0x4fa541(0x155)]('\x0a\x09')),__classPrivateFieldSet(this,_Debuglet_blocklistManager,new patterns_blocklist_manager_1[(_0x4fa541(0x167))](_0x553e91,_0x3fd3fc,this[_0x4fa541(0x1af)]),'f');},_Debuglet_getRedactions=async function _Debuglet_getRedactions(_0xd0556b){const _0x1a7270=a18_0x10263f,_0x49a5b7=await __classPrivateFieldGet(this,_Debuglet_controller,'f')[_0x1a7270(0x1c7)](_0xd0556b);_0x49a5b7?.[_0x1a7270(0x1a7)]&&this['logger']['debug'](_0x1a7270(0x1e1),_0x49a5b7[_0x1a7270(0x1ce)](_0x400f29=>_0x1a7270(0x1e3)+_0x400f29[_0x1a7270(0x1cf)]+'\x20(type:\x20'+_0x400f29['type']+_0x1a7270(0x15a)+_0x400f29[_0x1a7270(0x1d3)]+'\x20caseInsensitive:\x20'+_0x400f29[_0x1a7270(0x11c)])['join']('\x0a\x09'));if((0x0,utils_1[_0x1a7270(0x147)])(process[_0x1a7270(0x1f2)],'>=12')){const {RedactionManagerRE2JS:_0x1b192c}=await Promise[_0x1a7270(0x1c0)]()['then'](()=>require('./reduction/redaction-manager-re2js'));__classPrivateFieldSet(this,_Debuglet_redactionManager,new _0x1b192c(this['logger']),'f'),__classPrivateFieldGet(this,_Debuglet_redactionManager,'f')?.[_0x1a7270(0x166)](_0x49a5b7);}},_Debuglet_stringify=function _Debuglet_stringify(_0x229229){const _0x18e366=a18_0x10263f;if(!_0x229229)return JSON[_0x18e366(0x101)](_0x229229,(_0x270a0b,_0x29a145)=>_0x29a145===undefined?_0x18e366(0x1b3):_0x29a145);if(Array[_0x18e366(0x1c8)](_0x229229)){const _0x4243d4=[];for(const _0x6ef828 of _0x229229){_0x4243d4['push'](__classPrivateFieldGet(this,_Debuglet_instances,'m',_Debuglet_stringify)[_0x18e366(0x156)](this,_0x6ef828));}return'['+_0x4243d4['join'](',\x20')+']';}if(typeof _0x229229==='object'){const _0x211314=Object[_0x18e366(0x17b)](_0x229229)[_0x18e366(0x1ce)](([_0x35ca27,_0x231585])=>{const _0x18d881=_0x18e366,_0x2dfde8=__classPrivateFieldGet(this,_Debuglet_redactionManager,'f')?.[_0x18d881(0x122)](_0x35ca27)?redaction_manager_1[_0x18d881(0x103)]:__classPrivateFieldGet(this,_Debuglet_instances,'m',_Debuglet_stringify)[_0x18d881(0x156)](this,_0x231585);return JSON[_0x18d881(0x101)](_0x35ca27)+':\x20'+_0x2dfde8;})[_0x18e366(0x155)](',\x20');return'{'+_0x211314+'}';}return JSON[_0x18e366(0x101)](_0x229229);});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a19_0x49ff(){const _0x39c3db=['(((.+)+)+)+$','procArch','arm64','utf-8','host','435884OsfJTG','windows','env','node','isInDocker','apply','defineProperty','runtimeEnvironmentInfo','readFileSync','21LZuQrE','length','_osRelease','pid','_cachedOsRelease','577809BtTUdm','linuxDistroName','assert','getProps','set','Node.js\x20','37640lgfOjb','Windows','agentOS','7lYyTny','_logger','osVersion','x32','error','/etc/os-release','cpus','release','arch','platform','linux','36BBwSEH','split','get','isInK8s','\x20on\x20','toString','match','systemTotalMemoryBytes','constructor','__esModule','MacOS','1683366HuTlOh','4805464cvQgOi','trim','replace','90bEqBHO','1255775sbDMMY','5Xymiar','runtimeEnvironmentVersion','x64','arm','738331LPwDJv','Linux','version','search'];a19_0x49ff=function(){return _0x39c3db;};return a19_0x49ff();}const a19_0x137401=a19_0x3e8b;(function(_0x2307b2,_0x38e329){const _0x3f693b=a19_0x3e8b,_0x58402f=_0x2307b2();while(!![]){try{const _0x26a52a=-parseInt(_0x3f693b(0xcd))/0x1+parseInt(_0x3f693b(0xdb))/0x2+-parseInt(_0x3f693b(0xe4))/0x3*(-parseInt(_0x3f693b(0xef))/0x4)+-parseInt(_0x3f693b(0xce))/0x5*(-parseInt(_0x3f693b(0xc8))/0x6)+parseInt(_0x3f693b(0xf2))/0x7*(parseInt(_0x3f693b(0xc9))/0x8)+parseInt(_0x3f693b(0xe9))/0x9*(parseInt(_0x3f693b(0xcc))/0xa)+-parseInt(_0x3f693b(0xd2))/0xb*(-parseInt(_0x3f693b(0xfd))/0xc);if(_0x26a52a===_0x38e329)break;else _0x58402f['push'](_0x58402f['shift']());}catch(_0x2be8d1){_0x58402f['push'](_0x58402f['shift']());}}}(a19_0x49ff,0xa8145));function a19_0x3e8b(_0x46ddf4,_0x15262c){const _0x3d6bd1=a19_0x49ff();return a19_0x3e8b=function(_0x5a31cf,_0x2fdb94){_0x5a31cf=_0x5a31cf-0xc3;let _0x49ffe1=_0x3d6bd1[_0x5a31cf];return _0x49ffe1;},a19_0x3e8b(_0x46ddf4,_0x15262c);}Object[a19_0x137401(0xe1)](exports,a19_0x137401(0xc6),{'value':!![]}),exports['EnvironmentMetadata']=void 0x0;const os_1=require('os'),fs_1=require('fs'),assert=require(a19_0x137401(0xeb));var OS;(function(_0x47d6fc){const _0xb05588=a19_0x137401;_0x47d6fc[_0xb05588(0xd3)]=_0xb05588(0xfc),_0x47d6fc[_0xb05588(0xf0)]=_0xb05588(0xdc),_0x47d6fc['MacOS']='mac';}(OS||(OS={})));var ProcArch;(function(_0x4b8fac){const _0x40efd7=a19_0x137401,_0x393702=(function(){let _0x236498=!![];return function(_0x9dd300,_0x563096){const _0x563920=_0x236498?function(){const _0x4f199c=a19_0x3e8b;if(_0x563096){const _0x10d082=_0x563096[_0x4f199c(0xe0)](_0x9dd300,arguments);return _0x563096=null,_0x10d082;}}:function(){};return _0x236498=![],_0x563920;};}()),_0x36fdf5=_0x393702(this,function(){const _0x3a457f=a19_0x3e8b;return _0x36fdf5['toString']()[_0x3a457f(0xd5)]('(((.+)+)+)+$')[_0x3a457f(0x102)]()[_0x3a457f(0xc5)](_0x36fdf5)['search'](_0x3a457f(0xd6));});_0x36fdf5(),_0x4b8fac['x64']=_0x40efd7(0xd0),_0x4b8fac[_0x40efd7(0xf5)]=_0x40efd7(0xf5),_0x4b8fac[_0x40efd7(0xd1)]=_0x40efd7(0xd1),_0x4b8fac[_0x40efd7(0xd8)]=_0x40efd7(0xd8);}(ProcArch||(ProcArch={})));const PlatformToOsMap={'linux':OS[a19_0x137401(0xd3)],'win32':OS[a19_0x137401(0xf0)],'darwin':OS[a19_0x137401(0xc7)]},ArchToProcArchMap={'x32':ProcArch[a19_0x137401(0xf5)],'x64':ProcArch['x64'],'arm':ProcArch[a19_0x137401(0xd1)],'arm64':ProcArch[a19_0x137401(0xd8)]};class EnvironmentMetadata{constructor(_0x19690c){const _0x502e82=a19_0x137401;assert(_0x19690c!==null),this[_0x502e82(0xf3)]=_0x19690c;}get[a19_0x137401(0xcf)](){const _0x3a7663=a19_0x137401;try{const _0x3f8be=process['versions'][_0x3a7663(0xde)][_0x3a7663(0xc3)](/(\d+\.\d+)\..*/);if(_0x3f8be)return _0x3f8be[0x1];}catch(_0x230da6){this[_0x3a7663(0xf3)][_0x3a7663(0xf6)](_0x230da6);}return;}get[a19_0x137401(0xe2)](){const _0x3b4279=a19_0x137401;return _0x3b4279(0xee)+process[_0x3b4279(0xd4)]+_0x3b4279(0x101)+(0x0,os_1['platform'])()+'\x20'+(0x0,os_1[_0x3b4279(0xf9)])();}get[a19_0x137401(0xe7)](){const _0x429f52=a19_0x137401;return process[_0x429f52(0xe7)]['toString']();}get[a19_0x137401(0xd7)](){const _0x543fa8=a19_0x137401;return ArchToProcArchMap[process[_0x543fa8(0xfa)]]||process['arch'];}get['cpuCoreCount'](){const _0x19964e=a19_0x137401;return(0x0,os_1[_0x19964e(0xf8)])()[_0x19964e(0xe5)];}get['systemTotalMemoryBytes'](){return(0x0,os_1['totalmem'])();}get[a19_0x137401(0xda)](){return(0x0,os_1['hostname'])();}get[a19_0x137401(0xf1)](){const _0x52917d=a19_0x137401;return PlatformToOsMap[(0x0,os_1[_0x52917d(0xfb)])()]||(0x0,os_1[_0x52917d(0xfb)])();}get[a19_0x137401(0xf4)](){const _0x7b546f=a19_0x137401;try{if(this[_0x7b546f(0xf1)]===OS['Linux'])return this['_osRelease'][_0x7b546f(0xff)]('VERSION_ID')||(0x0,os_1['release'])();return(0x0,os_1[_0x7b546f(0xf9)])();}catch(_0x2ab5d7){this[_0x7b546f(0xf3)][_0x7b546f(0xf6)](_0x2ab5d7);}return;}get[a19_0x137401(0xea)](){const _0x10e301=a19_0x137401;return this[_0x10e301(0xf1)]===OS[_0x10e301(0xd3)]&&this[_0x10e301(0xe6)][_0x10e301(0xff)]('ID')||'';}get[a19_0x137401(0xdf)](){const _0x2bca50=a19_0x137401;return this[_0x2bca50(0xf1)]===OS['Linux']?(0x0,fs_1['existsSync'])('/.dockerenv'):![];}get['isInK8s'](){const _0x3fac11=a19_0x137401;return!!process[_0x3fac11(0xdd)]['KUBERNETES_SERVICE_HOST'];}get['_osRelease'](){const _0x257fbe=a19_0x137401;if(!this[_0x257fbe(0xe8)]){this['_cachedOsRelease']=new Map();try{if(this[_0x257fbe(0xf1)]===OS[_0x257fbe(0xd3)]){const _0x4999a0=(0x0,fs_1[_0x257fbe(0xe3)])(_0x257fbe(0xf7),_0x257fbe(0xd9));_0x4999a0[_0x257fbe(0xfe)](/\r?\n/)['forEach'](_0x41c70e=>{const _0x515c84=_0x257fbe,[_0xc4cf6b,_0x2ecfe1]=_0x41c70e[_0x515c84(0xca)]()[_0x515c84(0xfe)]('=');this['_cachedOsRelease']?.[_0x515c84(0xed)](_0xc4cf6b,_0x2ecfe1?.[_0x515c84(0xcb)](/^"|"$/g,'')||'');});}}catch(_0x4e6463){this['_logger']['warn']('Failed\x20to\x20open\x20and\x20parse\x20/etc/os-release',_0x4e6463);}}return this['_cachedOsRelease'];}[a19_0x137401(0xec)](){const _0x159ad9=a19_0x137401;return{'runtimeEnvironmentVersion':this[_0x159ad9(0xcf)],'runtimeEnvironmentInfo':this[_0x159ad9(0xe2)],'pid':this[_0x159ad9(0xe7)],'cpuCoreCount':this['cpuCoreCount'],'systemTotalMemoryBytes':this[_0x159ad9(0xc4)],'host':this['host'],'agentOS':this[_0x159ad9(0xf1)],'osVersion':this[_0x159ad9(0xf4)],'linuxDistroName':this[_0x159ad9(0xea)]||undefined,'isInDocker':this[_0x159ad9(0xdf)],'isInK8s':this[_0x159ad9(0x100)],'procArch':this[_0x159ad9(0xd7)]};}}exports['EnvironmentMetadata']=EnvironmentMetadata;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a20_0x19dcba=a20_0x51f3;(function(_0x17875d,_0xea7b42){const _0x58b168=a20_0x51f3,_0x38e1c1=_0x17875d();while(!![]){try{const _0x5d250d=parseInt(_0x58b168(0xa2))/0x1*(-parseInt(_0x58b168(0xae))/0x2)+-parseInt(_0x58b168(0xc0))/0x3+-parseInt(_0x58b168(0xa5))/0x4*(-parseInt(_0x58b168(0xb8))/0x5)+parseInt(_0x58b168(0xc1))/0x6*(parseInt(_0x58b168(0xb4))/0x7)+-parseInt(_0x58b168(0xb5))/0x8*(parseInt(_0x58b168(0xbc))/0x9)+parseInt(_0x58b168(0xa1))/0xa+parseInt(_0x58b168(0xb2))/0xb;if(_0x5d250d===_0xea7b42)break;else _0x38e1c1['push'](_0x38e1c1['shift']());}catch(_0x58e193){_0x38e1c1['push'](_0x38e1c1['shift']());}}}(a20_0x8a8f,0xe5f52));const a20_0x87513c=(function(){let _0x2e9681=!![];return function(_0x4321ae,_0x5a50f2){const _0x3f38d9=_0x2e9681?function(){const _0x1c9cd3=a20_0x51f3;if(_0x5a50f2){const _0x1b58e5=_0x5a50f2[_0x1c9cd3(0xac)](_0x4321ae,arguments);return _0x5a50f2=null,_0x1b58e5;}}:function(){};return _0x2e9681=![],_0x3f38d9;};}()),a20_0x48abc8=a20_0x87513c(this,function(){const _0x3aa946=a20_0x51f3;return a20_0x48abc8[_0x3aa946(0xab)]()[_0x3aa946(0xb7)](_0x3aa946(0xaa))[_0x3aa946(0xab)]()[_0x3aa946(0xb0)](a20_0x48abc8)[_0x3aa946(0xb7)](_0x3aa946(0xaa));});a20_0x48abc8();function a20_0x51f3(_0x59e153,_0xf226c9){const _0x402196=a20_0x8a8f();return a20_0x51f3=function(_0x48abc8,_0x87513c){_0x48abc8=_0x48abc8-0x9e;let _0x8a8fc6=_0x402196[_0x48abc8];return _0x8a8fc6;},a20_0x51f3(_0x59e153,_0xf226c9);}'use strict';Object[a20_0x19dcba(0xa0)](exports,a20_0x19dcba(0xc2),{'value':!![]}),exports[a20_0x19dcba(0xb6)]=void 0x0;const path=require(a20_0x19dcba(0xad));class FileIndex{constructor(_0x321d1d){const _0x55552c=a20_0x19dcba;this['_fileStats']=_0x321d1d,this[_0x55552c(0xc3)]=new Map();}static[a20_0x19dcba(0xbf)](_0xb2b9bc){const _0x4c952b=a20_0x19dcba,_0x3aeb65=new FileIndex(_0xb2b9bc);return _0x3aeb65[_0x4c952b(0x9e)](Object[_0x4c952b(0xb9)](_0xb2b9bc)||[]),_0x3aeb65;}static[a20_0x19dcba(0xbd)](_0x56a4af){const _0x21136d=new FileIndex(undefined);return _0x21136d['buildIndex'](_0x56a4af||[]),_0x21136d;}get['fileStats'](){return this['_fileStats']||{};}[a20_0x19dcba(0xa7)](_0x445f81){const _0x9b4920=a20_0x19dcba,_0x4caf8b=this['search'](_0x445f81);if(!_0x4caf8b||_0x4caf8b[_0x9b4920(0xaf)]===0x0)return[];const _0x45e3ca=[..._0x4caf8b]['map'](_0x2ac779=>_0x2ac779['length']),_0x510508=Math[_0x9b4920(0xa4)](..._0x45e3ca),_0x3fdb70=[..._0x4caf8b][_0x9b4920(0xa3)](_0x317022=>_0x317022[_0x9b4920(0xa6)]===_0x510508);return _0x3fdb70;}['buildIndex'](_0x419933){const _0x57a411=a20_0x19dcba;for(const _0x121cb0 of _0x419933){for(const _0x57a8fe of this['generateSubPaths'](_0x121cb0)){let _0x5cba9c=this[_0x57a411(0xc3)][_0x57a411(0xa8)](_0x57a8fe);_0x5cba9c===undefined&&(_0x5cba9c=new Set(),this['fileIndex']['set'](_0x57a8fe,_0x5cba9c)),_0x5cba9c[_0x57a411(0xbe)](_0x121cb0);}}}[a20_0x19dcba(0x9f)](_0x422299){const _0x35545b=a20_0x19dcba;_0x422299=this[_0x35545b(0xa9)](_0x422299);const _0xb68c97=[_0x422299];while(_0x422299[_0x35545b(0xba)](path[_0x35545b(0xb3)])>=0x0){_0x422299=_0x422299['substring'](_0x422299[_0x35545b(0xba)](path[_0x35545b(0xb3)])+path[_0x35545b(0xb3)][_0x35545b(0xa6)],_0x422299[_0x35545b(0xa6)]),_0xb68c97[_0x35545b(0xbb)](_0x422299);}return _0xb68c97;}[a20_0x19dcba(0xb7)](_0x124c2d){const _0x415e15=a20_0x19dcba;if(!_0x124c2d)return undefined;_0x124c2d=this['stripStartingSep'](_0x124c2d);for(const _0x73db61 of this[_0x415e15(0x9f)](_0x124c2d)){if(this['fileIndex']['has'](_0x73db61))return this['fileIndex'][_0x415e15(0xa8)](_0x73db61);}return undefined;}[a20_0x19dcba(0xa9)](_0x2989a0){const _0x445079=a20_0x19dcba;if(_0x2989a0&&(_0x2989a0[0x0]==='/'||_0x2989a0[0x0]==='\x5c'))return _0x2989a0[_0x445079(0xb1)](0x1);return _0x2989a0;}}function a20_0x8a8f(){const _0x4f0705=['__esModule','fileIndex','buildIndex','generateSubPaths','defineProperty','7850810vqYtmW','18EzfJjD','filter','min','4INCjeW','length','findShortestFuzzyMatches','get','stripStartingSep','(((.+)+)+)+$','toString','apply','path','145690KBizpH','size','constructor','substr','25304763qbSDiW','sep','7Zmdrpk','4856llmQnI','FileIndex','search','1365955YmpJov','keys','indexOf','push','16371FTnmyi','fromFileList','add','fromFileStats','3492126oLlGCD','6975516SNvPIx'];a20_0x8a8f=function(){return _0x4f0705;};return a20_0x8a8f();}exports[a20_0x19dcba(0xb6)]=FileIndex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a21_0x584b4a=a21_0x51d6;(function(_0x475172,_0x386b93){const _0x42e7b3=a21_0x51d6,_0xf75c9a=_0x475172();while(!![]){try{const _0x255fd2=-parseInt(_0x42e7b3(0xaa))/0x1+parseInt(_0x42e7b3(0xb6))/0x2+parseInt(_0x42e7b3(0xb8))/0x3*(-parseInt(_0x42e7b3(0xaf))/0x4)+parseInt(_0x42e7b3(0xa7))/0x5+-parseInt(_0x42e7b3(0xb9))/0x6+-parseInt(_0x42e7b3(0xb2))/0x7+-parseInt(_0x42e7b3(0xb5))/0x8*(-parseInt(_0x42e7b3(0xb1))/0x9);if(_0x255fd2===_0x386b93)break;else _0xf75c9a['push'](_0xf75c9a['shift']());}catch(_0x4c9e26){_0xf75c9a['push'](_0xf75c9a['shift']());}}}(a21_0x4342,0xbaa44));const a21_0x1d565b=(function(){let _0x350ece=!![];return function(_0xa160eb,_0x5803cd){const _0x1e3bf4=_0x350ece?function(){const _0x1e3a67=a21_0x51d6;if(_0x5803cd){const _0x219602=_0x5803cd[_0x1e3a67(0xbc)](_0xa160eb,arguments);return _0x5803cd=null,_0x219602;}}:function(){};return _0x350ece=![],_0x1e3bf4;};}()),a21_0x36b9b2=a21_0x1d565b(this,function(){const _0x5cb327=a21_0x51d6;return a21_0x36b9b2['toString']()[_0x5cb327(0xab)](_0x5cb327(0xc1))[_0x5cb327(0xb0)]()['constructor'](a21_0x36b9b2)[_0x5cb327(0xab)](_0x5cb327(0xc1));});a21_0x36b9b2();'use strict';Object[a21_0x584b4a(0xad)](exports,a21_0x584b4a(0xac),{'value':!![]}),exports['ScanResultsImpl']=void 0x0;const path=require(a21_0x584b4a(0xb4));function a21_0x51d6(_0x2d9059,_0x498580){const _0x52e5de=a21_0x4342();return a21_0x51d6=function(_0x36b9b2,_0x1d565b){_0x36b9b2=_0x36b9b2-0xa4;let _0x4342da=_0x52e5de[_0x36b9b2];return _0x4342da;},a21_0x51d6(_0x2d9059,_0x498580);}function a21_0x4342(){const _0x39d642=['(((.+)+)+)+$','sep','selectFiles','forEach','985290GDPJAS','test','map','519036mpimBL','search','__esModule','defineProperty','errorMap','40lsPpZU','toString','198PYOkGN','9906176VggmUy','ScanResultsImpl','path','1554472YSrGif','167524jqPJJg','filter','168363opcofn','7774320VMwYjG','all','errors','apply','hash','keys','stats','normalize'];a21_0x4342=function(){return _0x39d642;};return a21_0x4342();}class ScanResultsImpl{constructor(_0x19e19b,_0x390fb5,_0x565bb6){const _0x48bd00=a21_0x584b4a;this[_0x48bd00(0xbf)]=_0x19e19b,this['errorMap']=_0x390fb5,this[_0x48bd00(0xbd)]=_0x565bb6;}[a21_0x584b4a(0xbb)](){const _0xc01678=a21_0x584b4a;return this[_0xc01678(0xae)];}[a21_0x584b4a(0xba)](){const _0x3bb21d=a21_0x584b4a;return this[_0x3bb21d(0xbf)];}['selectStats'](_0x2b05a0){const _0x283edb=a21_0x584b4a,_0x1f69f1={};return Object[_0x283edb(0xbe)](this[_0x283edb(0xbf)])[_0x283edb(0xa6)](_0x490cf3=>{const _0x3419e7=_0x283edb;_0x2b05a0['test'](_0x490cf3)&&(_0x1f69f1[_0x490cf3]=this[_0x3419e7(0xbf)][_0x490cf3]);}),_0x1f69f1;}[a21_0x584b4a(0xa5)](_0x3dcb35,_0x96a656){const _0x5655aa=a21_0x584b4a;return _0x96a656=path['normalize'](_0x96a656+path[_0x5655aa(0xa4)]),Object[_0x5655aa(0xbe)](this[_0x5655aa(0xbf)])[_0x5655aa(0xb7)](_0x4f1a78=>{const _0x378703=_0x5655aa;return _0x4f1a78&&_0x3dcb35[_0x378703(0xa8)](_0x4f1a78);})[_0x5655aa(0xa9)](_0x25d60e=>{const _0x407c6f=_0x5655aa;return path[_0x407c6f(0xc0)](_0x25d60e)['replace'](_0x96a656,'');});}}exports[a21_0x584b4a(0xb3)]=ScanResultsImpl;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a22_0x38028b=a22_0x5428;(function(_0x226291,_0x20c30a){const _0x314147=a22_0x5428,_0x47ee98=_0x226291();while(!![]){try{const _0x385766=parseInt(_0x314147(0x117))/0x1+parseInt(_0x314147(0x136))/0x2*(parseInt(_0x314147(0x133))/0x3)+parseInt(_0x314147(0x111))/0x4*(-parseInt(_0x314147(0x120))/0x5)+-parseInt(_0x314147(0x12f))/0x6*(-parseInt(_0x314147(0x109))/0x7)+parseInt(_0x314147(0x112))/0x8*(-parseInt(_0x314147(0x10b))/0x9)+-parseInt(_0x314147(0x102))/0xa+parseInt(_0x314147(0x11b))/0xb*(parseInt(_0x314147(0xfc))/0xc);if(_0x385766===_0x20c30a)break;else _0x47ee98['push'](_0x47ee98['shift']());}catch(_0x1ed9b0){_0x47ee98['push'](_0x47ee98['shift']());}}}(a22_0x4978,0xa84c4));const a22_0x5e3799=(function(){let _0x51ade0=!![];return function(_0x4890da,_0x55f252){const _0x47be77=_0x51ade0?function(){const _0x43b296=a22_0x5428;if(_0x55f252){const _0x215f02=_0x55f252[_0x43b296(0x12e)](_0x4890da,arguments);return _0x55f252=null,_0x215f02;}}:function(){};return _0x51ade0=![],_0x47be77;};}()),a22_0x2cafbf=a22_0x5e3799(this,function(){const _0x5bbaa4=a22_0x5428;return a22_0x2cafbf[_0x5bbaa4(0x101)]()['search'](_0x5bbaa4(0x11f))[_0x5bbaa4(0x101)]()[_0x5bbaa4(0x119)](a22_0x2cafbf)[_0x5bbaa4(0x107)](_0x5bbaa4(0x11f));});a22_0x2cafbf();function a22_0x4978(){const _0x386c2a=['.git','error','data','sha1','scan','Scanner','can\x27t\x20access\x20path:\x20[','path','info','pipe','end','apply','3414CLCZus','hex','addFilesFromDir','statsForFile','79119ZAhleI','warn','test','6KsAbEf','defineProperty','EMPTY-no-js-files','156wEPtRv','SHA1-','],\x20due\x20to\x20lack\x20of\x20read\x20permissions','basename','directory','toString','3177550oSjDBg','logger','file','Specified\x20extraPaths\x20does\x20not\x20exist!','computeStats','search','findFiles','13342ZoWcFM','resolve','36216ZiCdAA','node_modules','ScanResultsImpl','constants','crypto','hash','2513812pCuQoW','1504lYpySS','open','push','split','startsWith','1031401zxijnC','digest','constructor','Indexing\x20files\x20in\x20','698489uWLWWd','addFilesFromDir\x20requires\x20a\x20searchDir\x20argument','from','R_OK','(((.+)+)+)+$','10dksvcC','length','join'];a22_0x4978=function(){return _0x386c2a;};return a22_0x4978();}'use strict';Object[a22_0x38028b(0x137)](exports,'__esModule',{'value':!![]}),exports[a22_0x38028b(0x128)]=void 0x0;function a22_0x5428(_0x394400,_0x3a25d5){const _0x110e53=a22_0x4978();return a22_0x5428=function(_0x2cafbf,_0x5e3799){_0x2cafbf=_0x2cafbf-0xfc;let _0x4978d7=_0x110e53[_0x2cafbf];return _0x4978d7;},a22_0x5428(_0x394400,_0x3a25d5);}const crypto=require(a22_0x38028b(0x10f)),fs=require('fs'),path=require(a22_0x38028b(0x12a)),scan_results_1=require('./scan-results');class Scanner{constructor(_0x3a7ed0){this['logger']=_0x3a7ed0;}async[a22_0x38028b(0x127)](_0x5a7244,_0x292dde,_0x390ee6,_0x360ce4){const _0x48b070=a22_0x38028b,_0xca8a47=await this[_0x48b070(0x108)](_0x5a7244,_0x292dde,_0x360ce4);return this[_0x48b070(0x106)](_0xca8a47,_0x390ee6);}[a22_0x38028b(0x106)](_0x5d047d,_0x4cfee4){return new Promise(async _0x3e5753=>{const _0x5addb3=a22_0x5428;if(_0x5d047d[_0x5addb3(0x121)]===0x0){_0x3e5753(new scan_results_1[(_0x5addb3(0x10d))]({},new Map(),_0x5addb3(0x138)));return;}const _0x4f9b5b=[],_0x5b5510={},_0x2f2ae6=new Map();for(const _0xda2721 of _0x5d047d){try{const _0x1d702f=await this[_0x5addb3(0x132)](_0xda2721,!_0x4cfee4);!_0x4cfee4&&_0x4f9b5b[_0x5addb3(0x114)](_0x1d702f[_0x5addb3(0x110)]),_0x5b5510[_0xda2721]=_0x1d702f;}catch(_0x5c355e){_0x2f2ae6['set'](_0xda2721,_0x5c355e);}}let _0x3a5d3a;if(!_0x4cfee4){const _0xb93f4e=_0x4f9b5b['sort']()[_0x5addb3(0x122)](),_0x2c76d9=crypto['createHash'](_0x5addb3(0x126))['update'](_0xb93f4e)[_0x5addb3(0x118)](_0x5addb3(0x130));_0x3a5d3a=_0x5addb3(0xfd)+_0x2c76d9;}else _0x3a5d3a=_0x4cfee4;_0x3e5753(new scan_results_1[(_0x5addb3(0x10d))](_0x5b5510,_0x2f2ae6,_0x3a5d3a));});}async['findFiles'](_0xbb1603,_0x768eb5,_0x47aa78){const _0x57d651=a22_0x38028b,_0x365c68=new Set();await this[_0x57d651(0x131)](_0x365c68,_0xbb1603,_0x768eb5);for(const _0xae475 of _0x47aa78??[]){if(_0xae475){const _0x3e1e4c=path['resolve'](_0xae475);try{await this[_0x57d651(0x131)](_0x365c68,_0x3e1e4c,_0x768eb5);}catch(_0x46d9fa){this[_0x57d651(0x103)]['error'](_0x57d651(0x105),_0x46d9fa);continue;}}}return Array[_0x57d651(0x11d)](_0x365c68);}static['hasReadAccess'](_0x3c3ad8){const _0x4bef0c=a22_0x38028b;try{return fs['accessSync'](_0x3c3ad8,fs[_0x4bef0c(0x10e)][_0x4bef0c(0x11e)]),!![];}catch(_0x5902da){return![];}}async['addFilesFromDir'](_0x487ca4,_0x3ca6c5,_0x2b9e99){return new Promise((_0x5a209a,_0x46da62)=>{const _0x2c1a70=a22_0x5428;let _0xceb10a;if(!_0x3ca6c5){_0x46da62(new Error(_0x2c1a70(0x11c)));return;}this[_0x2c1a70(0x103)][_0x2c1a70(0x12b)](_0x2c1a70(0x11a)+path[_0x2c1a70(0x10a)](_0x3ca6c5));const _0x29050e=findit(_0x3ca6c5);_0x29050e['on'](_0x2c1a70(0x124),_0x342630=>{_0xceb10a=_0x342630;return;}),_0x29050e['on'](_0x2c1a70(0x100),(_0x1cdfd0,_0x31b549,_0x32b913)=>{const _0xa35d8e=_0x2c1a70,_0x24fd1e=path[_0xa35d8e(0xff)](_0x1cdfd0);!Scanner['hasReadAccess'](_0x1cdfd0)&&(this['logger'][_0xa35d8e(0x134)](_0xa35d8e(0x129)+path[_0xa35d8e(0x10a)](_0x1cdfd0)+_0xa35d8e(0xfe)),_0x32b913()),(_0x24fd1e===_0xa35d8e(0x123)||_0x24fd1e===_0xa35d8e(0x10c))&&(!path['resolve'](_0x3ca6c5)[_0xa35d8e(0x116)](path[_0xa35d8e(0x10a)](_0x1cdfd0))&&_0x32b913());}),_0x29050e['on'](_0x2c1a70(0x104),_0x5aa327=>{const _0x45290b=_0x2c1a70;_0x2b9e99[_0x45290b(0x135)](_0x5aa327)&&_0x487ca4['add'](_0x5aa327);}),_0x29050e['on'](_0x2c1a70(0x12d),()=>{_0xceb10a?_0x46da62(_0xceb10a):_0x5a209a();});});}async[a22_0x38028b(0x132)](_0x5aef5d,_0x3d417e){return new Promise((_0x26dd38,_0x54a2d2)=>{const _0x112675=a22_0x5428,_0x38ff79=fs['createReadStream'](_0x5aef5d);_0x38ff79['on'](_0x112675(0x124),_0x9edc06=>{_0x54a2d2(_0x9edc06);}),_0x38ff79['on'](_0x112675(0x113),()=>{const _0x27e9f6=_0x112675;let _0x1c6478;_0x3d417e&&(_0x1c6478=crypto['createHash'](_0x27e9f6(0x126)));let _0x49af7d=0x0,_0x5b4900;const _0x14b452=_0x38ff79[_0x27e9f6(0x12c)](split());_0x14b452['on'](_0x27e9f6(0x124),_0x4097ae=>{_0x5b4900=_0x4097ae;}),_0x14b452['on'](_0x27e9f6(0x125),_0x2cc846=>{_0x3d417e&&_0x1c6478['update'](_0x2cc846),_0x49af7d++;}),_0x14b452['on'](_0x27e9f6(0x12d),()=>{const _0x25677c=_0x27e9f6;if(_0x5b4900)_0x54a2d2(_0x5b4900);else{const _0x34b1=_0x3d417e?_0x1c6478['digest'](_0x25677c(0x130)):undefined;_0x26dd38({'hash':_0x34b1,'lines':_0x49af7d});}});});});}}exports['Scanner']=Scanner;const findit=require('findit2'),split=require(a22_0x38028b(0x115));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a23_0x3d88ac=a23_0x1822;(function(_0x2f3ac9,_0x4422b1){const _0x302017=a23_0x1822,_0x5ee4a7=_0x2f3ac9();while(!![]){try{const _0x101115=parseInt(_0x302017(0x16f))/0x1+parseInt(_0x302017(0x174))/0x2+parseInt(_0x302017(0x15f))/0x3+parseInt(_0x302017(0x16e))/0x4*(parseInt(_0x302017(0x173))/0x5)+parseInt(_0x302017(0x17f))/0x6*(parseInt(_0x302017(0x163))/0x7)+-parseInt(_0x302017(0x16d))/0x8+parseInt(_0x302017(0x145))/0x9*(-parseInt(_0x302017(0x176))/0xa);if(_0x101115===_0x4422b1)break;else _0x5ee4a7['push'](_0x5ee4a7['shift']());}catch(_0x54c744){_0x5ee4a7['push'](_0x5ee4a7['shift']());}}}(a23_0x1e8d,0x3eabf));const a23_0x496376=(function(){let _0x19dfbe=!![];return function(_0x2bda01,_0x55c395){const _0xed28d1=_0x19dfbe?function(){const _0x12310d=a23_0x1822;if(_0x55c395){const _0x4e7d97=_0x55c395[_0x12310d(0x186)](_0x2bda01,arguments);return _0x55c395=null,_0x4e7d97;}}:function(){};return _0x19dfbe=![],_0xed28d1;};}()),a23_0x1183f6=a23_0x496376(this,function(){const _0x126f29=a23_0x1822;return a23_0x1183f6[_0x126f29(0x15e)]()[_0x126f29(0x151)](_0x126f29(0x182))['toString']()[_0x126f29(0x15b)](a23_0x1183f6)[_0x126f29(0x151)](_0x126f29(0x182));});a23_0x1183f6();'use strict';function a23_0x1e8d(){const _0x4d4e93=['282752JHjyMO','readFile','60810JqoLuR','fromFileList','findInSources','p-limit','column','substring','sourcemap\x20file\x20','dirname','set','5364xFGVYU','findShortestFuzzyMatches','create','(((.+)+)+)+$','promisify','path','sort','apply','infoMap','801kaQRuS','length','file','defineProperty','toLowerCase','join','map','stringify','FileIndex','No\x20sources\x20listed\x20in\x20the\x20sourcemap\x20file\x20','SourceMapper','The\x20path\x20','search','source-map','sources','mappingInfo','generatedPositionFor','debug','Failed\x20to\x20process\x20a\x20source\x20map\x20file','./file-index','utf8','has','constructor','reduce','util','toString','628155FPcZIh','__esModule','from','.map','3052vVVTni','line','logger','all','relative','get','endsWith','normalize','webpack://','getMappingInfo','2974192KBebsC','172568IhQAkH','256573zsiKQh','error','startsWith','keys','20WneYxg'];a23_0x1e8d=function(){return _0x4d4e93;};return a23_0x1e8d();}Object[a23_0x3d88ac(0x148)](exports,a23_0x3d88ac(0x160),{'value':!![]}),exports[a23_0x3d88ac(0x181)]=exports[a23_0x3d88ac(0x14f)]=void 0x0;const fs=require('fs'),pLimit=require(a23_0x3d88ac(0x179)),path=require(a23_0x3d88ac(0x184)),util_1=require(a23_0x3d88ac(0x15d)),sourceMap=require(a23_0x3d88ac(0x152)),file_index_1=require(a23_0x3d88ac(0x158)),CONCURRENCY=0xa,WEBPACK_PREFIX=a23_0x3d88ac(0x16b),readFilep=(0x0,util_1[a23_0x3d88ac(0x183)])(fs[a23_0x3d88ac(0x175)]),MAP_EXT=a23_0x3d88ac(0x162);function a23_0x1822(_0x38db47,_0x242a74){const _0x3af3b8=a23_0x1e8d();return a23_0x1822=function(_0x1183f6,_0x496376){_0x1183f6=_0x1183f6-0x145;let _0x1e8d53=_0x3af3b8[_0x1183f6];return _0x1e8d53;},a23_0x1822(_0x38db47,_0x242a74);}async function processSourcemap(_0x3116cd,_0x353ceb,_0x2da822,_0x246aef){const _0x24685a=a23_0x3d88ac;_0x246aef&&_0x3116cd[_0x24685a(0x156)]('Processing\x20',_0x2da822);if(!_0x2da822||!_0x2da822[_0x24685a(0x169)](MAP_EXT))throw new Error(_0x24685a(0x150)+_0x2da822+'\x20does\x20not\x20specify\x20a\x20sourcemap\x20file');_0x2da822=path[_0x24685a(0x16a)](_0x2da822);let _0x326551;try{_0x326551=await readFilep(_0x2da822,_0x24685a(0x159));}catch(_0x58cf26){throw new Error('Could\x20not\x20read\x20sourcemap\x20file\x20'+_0x2da822+':\x20'+_0x58cf26);}let _0x558194;try{_0x558194=new sourceMap['SourceMapConsumer'](_0x326551);}catch(_0x1a0a07){_0x3116cd[_0x24685a(0x170)]('Failed\x20to\x20parse\x20source\x20map\x20file\x20'+_0x2da822+':\x20'+_0x1a0a07),_0x3116cd['error'](JSON[_0x24685a(0x14c)](_0x1a0a07)),_0x246aef&&_0x3116cd[_0x24685a(0x156)]('CONTENT',_0x326551);throw new Error('An\x20error\x20occurred\x20while\x20reading\x20the\x20'+_0x24685a(0x17c)+_0x2da822+':\x20'+_0x1a0a07);}const _0xf359e5=_0x558194[_0x24685a(0x147)]?_0x558194[_0x24685a(0x147)]:path['basename'](_0x2da822,_0x24685a(0x162)),_0x69e1a9=path['dirname'](_0x2da822),_0x1bc754=path[_0x24685a(0x16a)](path['join'](_0x69e1a9,_0xf359e5)),_0x372854=_0x558194['sources']['filter'](_0x572c61=>!!_0x572c61)[_0x24685a(0x185)]((_0x59ea49,_0x765527)=>_0x59ea49[_0x24685a(0x146)]-_0x765527['length']),_0x395169=_0x372854[_0x24685a(0x14b)](_0x1d0c13=>{const _0x1bef17=_0x24685a;if(_0x1d0c13[_0x1bef17(0x149)]()[_0x1bef17(0x171)](WEBPACK_PREFIX))return _0x1d0c13[_0x1bef17(0x17b)](WEBPACK_PREFIX[_0x1bef17(0x146)]);return _0x1d0c13;})[_0x24685a(0x14b)](_0x274b96=>{const _0x2b4d85=_0x24685a;return path[_0x2b4d85(0x16a)](path[_0x2b4d85(0x14a)](_0x69e1a9,_0x274b96));});if(_0x395169[_0x24685a(0x146)]===0x0)throw new Error(_0x24685a(0x14e)+_0x2da822);for(const _0x1aa835 of _0x395169){_0x246aef&&_0x3116cd['info'](path[_0x24685a(0x16a)](_0x1aa835),'FOUND\x20IN',_0x2da822),_0x353ceb[_0x24685a(0x17e)](path['normalize'](_0x1aa835),{'outputFile':_0x1bc754,'mapFile':_0x2da822,'mapConsumer':_0x558194,'sources':_0x372854});}_0x3116cd[_0x24685a(0x156)]('Map\x20file\x20processed:\x20',_0x2da822);}class SourceMapper{constructor(_0x569451){const _0x2a6d70=a23_0x3d88ac;this[_0x2a6d70(0x165)]=_0x569451,this[_0x2a6d70(0x187)]=new Map();}['getMappingInfo'](_0x12c957){const _0xe9d35b=a23_0x3d88ac;if(this[_0xe9d35b(0x187)][_0xe9d35b(0x15a)](path[_0xe9d35b(0x16a)](_0x12c957)))return{'entry':this[_0xe9d35b(0x187)][_0xe9d35b(0x168)](_0x12c957),'matchedPath':path['normalize'](_0x12c957)};const _0x47c8bc=file_index_1[_0xe9d35b(0x14d)][_0xe9d35b(0x177)](Array[_0xe9d35b(0x161)](this[_0xe9d35b(0x187)][_0xe9d35b(0x172)]()))[_0xe9d35b(0x180)](_0x12c957);if(_0x47c8bc[_0xe9d35b(0x146)]===0x1)return{'entry':this[_0xe9d35b(0x187)][_0xe9d35b(0x168)](_0x47c8bc[0x0]),'matchedPath':_0x47c8bc[0x0]};return null;}['hasMappingInfo'](_0x1e1bce){const _0x1b8c89=a23_0x3d88ac;return this[_0x1b8c89(0x16c)](_0x1e1bce)!==null;}[a23_0x3d88ac(0x154)](_0x33bac7,_0x51854d,_0x109b0b){const _0x293e85=a23_0x3d88ac;_0x33bac7=path[_0x293e85(0x16a)](_0x33bac7);const _0x26efaa=this[_0x293e85(0x16c)](_0x33bac7);if(!_0x26efaa)return null;const {entry:_0x76a0fe,matchedPath:_0x2e54ce}=_0x26efaa,_0xb3fc66=path[_0x293e85(0x167)](path[_0x293e85(0x17d)](_0x76a0fe['mapFile']),_0x2e54ce)['replace'](/\\/g,'/');let _0xb38c65=this['findInSources'](_0x76a0fe,_0xb3fc66);_0xb38c65=_0xb38c65||this[_0x293e85(0x178)](_0x76a0fe,_0x33bac7);const _0x1d30b0={'source':_0xb38c65||_0xb3fc66,'line':_0x51854d+0x1,'column':_0x109b0b},_0x28a7a5=_0x76a0fe['mapConsumer'],_0x3255ce=_0x28a7a5['allGeneratedPositionsFor'](_0x1d30b0),_0x19dbb4=_0x3255ce&&_0x3255ce[_0x293e85(0x146)]>0x0?_0x3255ce[_0x293e85(0x15c)]((_0x34013a,_0x515de3)=>{const _0x12f462=_0x293e85;return _0x515de3[_0x12f462(0x164)]<_0x34013a[_0x12f462(0x164)]?_0x515de3:_0x34013a;}):_0x28a7a5[_0x293e85(0x155)](_0x1d30b0);return{'file':_0x76a0fe['outputFile'],'line':_0x19dbb4[_0x293e85(0x164)],'column':_0x19dbb4[_0x293e85(0x17a)]};}[a23_0x3d88ac(0x178)](_0x555755,_0x4d5e72){const _0x19186e=a23_0x3d88ac;for(const _0x2d12be of _0x555755[_0x19186e(0x153)]){if(_0x2d12be[_0x19186e(0x169)](_0x4d5e72))return _0x2d12be;}return undefined;}}exports[a23_0x3d88ac(0x14f)]=SourceMapper;async function create(_0x124bdf,_0x263844,_0x5d5675){const _0xf3769d=a23_0x3d88ac;_0x124bdf['debug']('Creating\x20SourceMapper');const _0x374824=new SourceMapper(_0x124bdf);_0x124bdf['debug']('Parsing\x20source\x20map\x20files',_0x263844[_0xf3769d(0x146)]);const _0x53598e=async _0x2ac515=>{const _0x447470=_0xf3769d;try{await processSourcemap(_0x124bdf,_0x374824['infoMap'],_0x2ac515,_0x5d5675);}catch(_0x17e017){_0x124bdf['error'](_0x447470(0x157),_0x2ac515,_0x17e017),_0x124bdf[_0x447470(0x170)](JSON['stringify'](_0x17e017));}};if(_0x5d5675)for(const _0x1d3ec1 of _0x263844){await _0x53598e(_0x1d3ec1);}else{const _0x2f78f6=pLimit(CONCURRENCY),_0x182764=_0x263844['map'](_0x15b82b=>_0x2f78f6(()=>_0x53598e(_0x15b82b)));await Promise[_0xf3769d(0x166)](_0x182764);}return _0x374824;}exports[a23_0x3d88ac(0x181)]=create;
|